blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
51
| license_type
stringclasses 2
values | repo_name
stringlengths 5
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
80
| visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 131
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
9.45M
| extension
stringclasses 32
values | content
stringlengths 3
9.45M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
309154a957c5285b2eee23433866f837fefa0c1d | 5c0eb380c9f1632f526f0b1a05df98a5fd693c40 | /src/main/java/com/inmind/mybatis/entity/TaskPropertyPO.java | c9f6f9c94d468d6e52610a737fd639ff8a0a6bbe | [] | no_license | fenghuoliuli/HiggsAutomation | e29b1291ec214cd031ef21dd812437e7e4fbe019 | b32591fdd85ed1e303c0508cb1c54c4e47f4278f | refs/heads/master | 2020-04-06T04:07:29.276617 | 2017-02-24T14:14:53 | 2017-02-24T14:14:53 | 83,041,239 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,083 | java | package com.inmind.mybatis.entity;
import java.util.Date;
public class TaskPropertyPO {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.name
*
* @mbg.generated
*/
private String name;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.code
*
* @mbg.generated
*/
private String code;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.task_type
*
* @mbg.generated
*/
private Integer taskType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.interval_time
*
* @mbg.generated
*/
private Integer intervalTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.dead_time
*
* @mbg.generated
*/
private String deadTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.remind_time
*
* @mbg.generated
*/
private String remindTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.show_order
*
* @mbg.generated
*/
private Integer showOrder;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.task_group_code
*
* @mbg.generated
*/
private String taskGroupCode;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.created_by
*
* @mbg.generated
*/
private Long createdBy;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.updated_by
*
* @mbg.generated
*/
private Long updatedBy;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.created_at
*
* @mbg.generated
*/
private Date createdAt;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.updated_at
*
* @mbg.generated
*/
private Date updatedAt;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.project_roles
*
* @mbg.generated
*/
private String projectRoles;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.helper_role
*
* @mbg.generated
*/
private String helperRole;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.prop_status
*
* @mbg.generated
*/
private Integer propStatus;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column task_property.pot_co_role
*
* @mbg.generated
*/
private String potCoRole;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.id
*
* @return the value of task_property.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.id
*
* @param id the value for task_property.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.name
*
* @return the value of task_property.name
*
* @mbg.generated
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.name
*
* @param name the value for task_property.name
*
* @mbg.generated
*/
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.code
*
* @return the value of task_property.code
*
* @mbg.generated
*/
public String getCode() {
return code;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.code
*
* @param code the value for task_property.code
*
* @mbg.generated
*/
public void setCode(String code) {
this.code = code == null ? null : code.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.task_type
*
* @return the value of task_property.task_type
*
* @mbg.generated
*/
public Integer getTaskType() {
return taskType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.task_type
*
* @param taskType the value for task_property.task_type
*
* @mbg.generated
*/
public void setTaskType(Integer taskType) {
this.taskType = taskType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.interval_time
*
* @return the value of task_property.interval_time
*
* @mbg.generated
*/
public Integer getIntervalTime() {
return intervalTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.interval_time
*
* @param intervalTime the value for task_property.interval_time
*
* @mbg.generated
*/
public void setIntervalTime(Integer intervalTime) {
this.intervalTime = intervalTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.dead_time
*
* @return the value of task_property.dead_time
*
* @mbg.generated
*/
public String getDeadTime() {
return deadTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.dead_time
*
* @param deadTime the value for task_property.dead_time
*
* @mbg.generated
*/
public void setDeadTime(String deadTime) {
this.deadTime = deadTime == null ? null : deadTime.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.remind_time
*
* @return the value of task_property.remind_time
*
* @mbg.generated
*/
public String getRemindTime() {
return remindTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.remind_time
*
* @param remindTime the value for task_property.remind_time
*
* @mbg.generated
*/
public void setRemindTime(String remindTime) {
this.remindTime = remindTime == null ? null : remindTime.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.show_order
*
* @return the value of task_property.show_order
*
* @mbg.generated
*/
public Integer getShowOrder() {
return showOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.show_order
*
* @param showOrder the value for task_property.show_order
*
* @mbg.generated
*/
public void setShowOrder(Integer showOrder) {
this.showOrder = showOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.task_group_code
*
* @return the value of task_property.task_group_code
*
* @mbg.generated
*/
public String getTaskGroupCode() {
return taskGroupCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.task_group_code
*
* @param taskGroupCode the value for task_property.task_group_code
*
* @mbg.generated
*/
public void setTaskGroupCode(String taskGroupCode) {
this.taskGroupCode = taskGroupCode == null ? null : taskGroupCode.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.created_by
*
* @return the value of task_property.created_by
*
* @mbg.generated
*/
public Long getCreatedBy() {
return createdBy;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.created_by
*
* @param createdBy the value for task_property.created_by
*
* @mbg.generated
*/
public void setCreatedBy(Long createdBy) {
this.createdBy = createdBy;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.updated_by
*
* @return the value of task_property.updated_by
*
* @mbg.generated
*/
public Long getUpdatedBy() {
return updatedBy;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.updated_by
*
* @param updatedBy the value for task_property.updated_by
*
* @mbg.generated
*/
public void setUpdatedBy(Long updatedBy) {
this.updatedBy = updatedBy;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.created_at
*
* @return the value of task_property.created_at
*
* @mbg.generated
*/
public Date getCreatedAt() {
return createdAt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.created_at
*
* @param createdAt the value for task_property.created_at
*
* @mbg.generated
*/
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.updated_at
*
* @return the value of task_property.updated_at
*
* @mbg.generated
*/
public Date getUpdatedAt() {
return updatedAt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.updated_at
*
* @param updatedAt the value for task_property.updated_at
*
* @mbg.generated
*/
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.project_roles
*
* @return the value of task_property.project_roles
*
* @mbg.generated
*/
public String getProjectRoles() {
return projectRoles;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.project_roles
*
* @param projectRoles the value for task_property.project_roles
*
* @mbg.generated
*/
public void setProjectRoles(String projectRoles) {
this.projectRoles = projectRoles == null ? null : projectRoles.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.helper_role
*
* @return the value of task_property.helper_role
*
* @mbg.generated
*/
public String getHelperRole() {
return helperRole;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.helper_role
*
* @param helperRole the value for task_property.helper_role
*
* @mbg.generated
*/
public void setHelperRole(String helperRole) {
this.helperRole = helperRole == null ? null : helperRole.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.prop_status
*
* @return the value of task_property.prop_status
*
* @mbg.generated
*/
public Integer getPropStatus() {
return propStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.prop_status
*
* @param propStatus the value for task_property.prop_status
*
* @mbg.generated
*/
public void setPropStatus(Integer propStatus) {
this.propStatus = propStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column task_property.pot_co_role
*
* @return the value of task_property.pot_co_role
*
* @mbg.generated
*/
public String getPotCoRole() {
return potCoRole;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column task_property.pot_co_role
*
* @param potCoRole the value for task_property.pot_co_role
*
* @mbg.generated
*/
public void setPotCoRole(String potCoRole) {
this.potCoRole = potCoRole == null ? null : potCoRole.trim();
}
} | [
"[email protected]"
] | |
f744755e0e5f70ecd8ae3b0fe4af5ecdfe9aa7e4 | 05f0196b073f4f5114b1eb7d66c27e3202aa68f3 | /src/main/java/per/even/HouseObserver/common/model/vo/CountyPriceInfo.java | 7b1bb75bf21aa1bdafbba63b9d80dd97073e379d | [] | no_license | Even-github/HouseObserver | bb5ada7a2d07bc654a45f7a4d2edf3e0c86a82b7 | 003971cd4f758121a9cfc97d2248c40a8b4738af | refs/heads/master | 2021-05-12T17:42:41.171845 | 2018-05-10T17:14:08 | 2018-05-10T17:14:08 | 117,052,101 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 869 | java | package per.even.HouseObserver.common.model.vo;
public class CountyPriceInfo {
private String county; // 区/县
private Double averagePrice; //省平均房价
private Double weekGrowthRate; //比上周增长率
private String statisticalTime; //统计时间
public String getCounty() {
return county;
}
public void setCounty(String county) {
this.county = county;
}
public Double getAveragePrice() {
return averagePrice;
}
public void setAveragePrice(Double averagePrice) {
this.averagePrice = averagePrice;
}
public Double getWeekGrowthRate() {
return weekGrowthRate;
}
public void setWeekGrowthRate(Double weekGrowthRate) {
this.weekGrowthRate = weekGrowthRate;
}
public String getStatisticalTime() {
return statisticalTime;
}
public void setStatisticalTime(String statisticalTime) {
this.statisticalTime = statisticalTime;
}
}
| [
"[email protected]"
] | |
60a7d1ab9f13a03bccc9b51d721d84be4a7193ab | 4230825cc6777a7c129a13074bf1f49593f74a8f | /src/main/java/com/example/hibernate/xml/inheritence/OneTablePerSubClassInheritance/model/CreditCard.java | 4b3c87b986809d344eeeb5f8737ea4a3122f18cc | [] | no_license | tarunguptap/java-gradle | 0fc84278eea4b1207e777a3a7dcf9e0a3fa64881 | 57c0f16a687770ff453e55945c9dc5209701abd5 | refs/heads/master | 2021-08-18T16:04:45.869447 | 2020-04-15T05:01:03 | 2020-04-15T05:01:03 | 61,531,457 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 479 | java | package com.example.hibernate.xml.inheritence.OneTablePerSubClassInheritance.model;
public class CreditCard extends Payment{
private static final long serialVersionUID = 1L;
private String creditCardType;
/**
* @return the creditCardType
*/
public String getCreditCardType() {
return creditCardType;
}
/**
* @param creditCardType the creditCardType to set
*/
public void setCreditCardType(String creditCardType) {
this.creditCardType = creditCardType;
}
} | [
"[email protected]"
] | |
a63622657edd42362780958dc110cda7e3227450 | cc6ee83715ab514f4539b892c0d477f7829d5520 | /yuliang/src/com/zykj/yuliang/utils/ShapeImageView.java | 07c2a1799713ca2a5641b12134f19b7c0e346375 | [] | no_license | wyxhome/YuLiang | 160f4f2d2e8c30776825cdc234c71295412a84f2 | 49255c11ad24be8bfef67761a489fee8789303ca | refs/heads/master | 2021-01-10T01:17:39.127667 | 2016-01-13T08:47:54 | 2016-01-13T08:47:54 | 47,370,974 | 0 | 1 | null | null | null | null | GB18030 | Java | false | false | 10,497 | java | package com.zykj.yuliang.utils;
import com.zykj.yuliang.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Bitmap.Config;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.util.AttributeSet;
import android.widget.ImageView;
/**
*
* @author Joker_Ya
*
*/
public class ShapeImageView extends ImageView {
private Context mContext;
private int border_size = 0;// 边框厚度
private int in_border_color = 0;// 内圆边框颜色
private int out_border_color = 0;// 外圆边框颜色
private int defColor = 0xFFFFFFFF;// 默认颜色
private int width = 0;// 控件的宽度
private int height = 0;// 控件的高度
private String shape_type = "";// 形状的类型
public ShapeImageView(Context context) {
super(context);
// TODO Auto-generated constructor stub
this.mContext = context;
}
public ShapeImageView(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
this.mContext = context;
setAttributes(attrs);
}
public ShapeImageView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
this.mContext = context;
setAttributes(attrs);
}
/**
* 获得自定义属性
*
* @param attrs
*/
private void setAttributes(AttributeSet attrs) {
// TODO Auto-generated method stub
TypedArray mArray = mContext.obtainStyledAttributes(attrs,
R.styleable.shapeimageview);
// 得到边框厚度,否则返回0
border_size = mArray.getDimensionPixelSize(
R.styleable.shapeimageview_border_size, 0);
// 得到内边框颜色,否则返回默认颜色
in_border_color = mArray.getColor(
R.styleable.shapeimageview_in_border_color, defColor);
// 得到外边框颜色,否则返回默认颜色
out_border_color = mArray.getColor(
R.styleable.shapeimageview_out_border_color, defColor);
// 得到形状的类型
shape_type = mArray.getString(R.styleable.shapeimageview_shape_type);
mArray.recycle();// 回收mArray
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
// super.onDraw(canvas); 必须去掉该行或注释掉,否则会出现两张图片
// 得到传入的图片
Drawable drawable = getDrawable();
if (drawable == null) {
return;
}
if (getWidth() == 0 || getHeight() == 0) {
return;
}
this.measure(0, 0);
if (drawable.getClass() == NinePatchDrawable.class) {// 如果该传入图片是.9格式的图片
return;
}
// 将图片转为位图
Bitmap mBitmap = ((BitmapDrawable) drawable).getBitmap();
Bitmap cpBitmap = mBitmap.copy(Bitmap.Config.ARGB_8888, true);
// 得到画布宽高
width = getWidth();
height = getHeight();
int radius = 0;//
// 判断是否是圆形
if ("round".equals(shape_type)) {
// 如果内圆边框和外圆边框的颜色不等于默认颜色,则说明该圆有两个边框
if (in_border_color != defColor && out_border_color != defColor) {
// 计算出半径
radius = (width < height ? width : height) / 2 - 2
* border_size;
// 画内圆边框
drawCircleBorder(canvas, radius + border_size / 2,
in_border_color);
// 画外圆边框
drawCircleBorder(canvas,
radius + border_size + border_size / 2,
out_border_color);
}// 如果内圆边框颜色不等于默认颜色,则说明该圆有一个边框
else if (in_border_color != defColor
&& out_border_color == defColor) {
radius = (width < height ? width : height) / 2 - border_size;
drawCircleBorder(canvas, radius + border_size / 2,
in_border_color);
}// 如果外圆边框颜色不等于默认颜色,则说明该圆有一个边框
else if (in_border_color == defColor
&& out_border_color != defColor) {
radius = (width < height ? width : height) / 2 - border_size;
drawCircleBorder(canvas, radius + border_size / 2,
out_border_color);
} else {// 没有边框
radius = (width < height ? width : height) / 2;
}
} else {
radius = (width < height ? width : height) / 2;
}
Bitmap shapeBitmap = drawShapeBitmap(cpBitmap, radius);
canvas.drawBitmap(shapeBitmap, width / 2 - radius, height / 2 - radius,
null);
}
/**
* 画出指定形状的图片
*
* @param cpBitmap
* @param radius
* @return
*/
private Bitmap drawShapeBitmap(Bitmap bmp, int radius) {
// TODO Auto-generated method stub
Bitmap squareBitmap;// 根据传入的位图截取合适的正方形位图
Bitmap scaledBitmap;// 根据diameter对截取的正方形位图进行缩放
int diameter = radius * 2;
// 传入位图的宽高
int w = bmp.getWidth();
int h = bmp.getHeight();
// 为了防止宽高不相等,造成圆形图片变形,因此截取长方形中处于中间位置最大的正方形图片
int squarewidth = 0, squareheight = 0;// 矩形的宽高
int x = 0, y = 0;
if (h > w) {// 如果高>宽
squarewidth = squareheight = w;
x = 0;
y = (h - w) / 2;
// 截取正方形图片
squareBitmap = Bitmap.createBitmap(bmp, x, y, squarewidth,
squareheight);
} else if (h < w) {// 如果宽>高
squarewidth = squareheight = h;
x = (w - h) / 2;
y = 0;
squareBitmap = Bitmap.createBitmap(bmp, x, y, squarewidth,
squareheight);
} else {
squareBitmap = bmp;
}
// 对squareBitmap进行缩放为diameter边长的正方形位图
if (squareBitmap.getWidth() != diameter
|| squareBitmap.getHeight() != diameter) {
scaledBitmap = Bitmap.createScaledBitmap(squareBitmap, diameter,
diameter, true);
} else {
scaledBitmap = squareBitmap;
}
Bitmap outputbmp = Bitmap.createBitmap(scaledBitmap.getWidth(),
scaledBitmap.getHeight(), Config.ARGB_8888);
Canvas canvas = new Canvas(outputbmp);// 创建一个相同大小的画布
Paint paint = new Paint();// 定义画笔
paint.setAntiAlias(true);// 设置抗锯齿
paint.setFilterBitmap(true);
paint.setDither(true);
canvas.drawARGB(0, 0, 0, 0);
Path path = new Path();
path.moveTo(diameter, diameter / 2);
path.lineTo(diameter, diameter);
path.lineTo(diameter / 2, diameter);
path.close();
canvas.drawPath(path, paint);
// if ("star".equals(shape_type)) {// 如果绘制的形状为五角星形
// Path path = new Path();
// float radian = degree2Radian(36);// 36为五角星的角度
// float radius_in = (float) (radius * Math.sin(radian / 2) / Math
// .cos(radian)); // 中间五边形的半径
//
// path.moveTo((float) (radius * Math.cos(radian / 2)), 0);// 此点为多边形的起点
// path.lineTo((float) (radius * Math.cos(radian / 2) + radius_in
// * Math.sin(radian)),
// (float) (radius - radius * Math.sin(radian / 2)));
// path.lineTo((float) (radius * Math.cos(radian / 2) * 2),
// (float) (radius - radius * Math.sin(radian / 2)));
// path.lineTo((float) (radius * Math.cos(radian / 2) + radius_in
// * Math.cos(radian / 2)),
// (float) (radius + radius_in * Math.sin(radian / 2)));
// path.lineTo(
// (float) (radius * Math.cos(radian / 2) + radius
// * Math.sin(radian)), (float) (radius + radius
// * Math.cos(radian)));
// path.lineTo((float) (radius * Math.cos(radian / 2)),
// (float) (radius + radius_in));
// path.lineTo(
// (float) (radius * Math.cos(radian / 2) - radius
// * Math.sin(radian)), (float) (radius + radius
// * Math.cos(radian)));
// path.lineTo((float) (radius * Math.cos(radian / 2) - radius_in
// * Math.cos(radian / 2)),
// (float) (radius + radius_in * Math.sin(radian / 2)));
// path.lineTo(0, (float) (radius - radius * Math.sin(radian / 2)));
// path.lineTo((float) (radius * Math.cos(radian / 2) - radius_in
// * Math.sin(radian)),
// (float) (radius - radius * Math.sin(radian / 2)));
//
// path.close();// 使这些点构成封闭的多边形
// canvas.drawPath(path, paint);
// } else if ("triangle".equals(shape_type)) {// 如果绘制的形状为三角形
// Path path = new Path();
//
// path.moveTo(diameter, 0);
// path.lineTo(diameter, diameter);
// path.lineTo(0, diameter);
//
// path.close();
// canvas.drawPath(path, paint);
// } else if ("heart".equals(shape_type)) {// 如果绘制的形状为心形
// Path path = new Path();
//
// path.moveTo(diameter / 2, diameter / 5);
// path.quadTo(diameter, 0, diameter / 2, diameter / 1.0f);
// path.quadTo(0, 0, diameter / 2, diameter / 5);
//
// path.close();
// canvas.drawPath(path, paint);
// } else {// 这是默认形状,圆形
// // 绘制圆形
// canvas.drawCircle(scaledBitmap.getWidth() / 2,
// scaledBitmap.getHeight() / 2, scaledBitmap.getWidth() / 2,
// paint);
// }
// 设置Xfermode的Mode
paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
canvas.drawBitmap(scaledBitmap, 0, 0, paint);
bmp = null;
squareBitmap = null;
scaledBitmap = null;
return outputbmp;
}
/**
* 角度转弧度公式
*
* @param degree
* @return
*/
private float degree2Radian(int degree) {
// TODO Auto-generated method stub
return (float) (Math.PI * degree / 180);
}
/**
* 如果图片为圆形,这该方法为画出圆形图片的有色边框
*
* @param canvas
* @param radius
* 边框半径
* @param color
* 边框颜色
*/
private void drawCircleBorder(Canvas canvas, int radius, int color) {
// TODO Auto-generated method stub
Paint paint = new Paint();
paint.setAntiAlias(true);// 抗锯齿
paint.setFilterBitmap(true);
paint.setDither(true);
paint.setColor(color);// 设置画笔颜色
paint.setStyle(Paint.Style.STROKE);// 设置画笔的style为STROKE:空心
paint.setStrokeWidth(border_size);// 设置画笔的宽度
// 画出空心圆,也就是边框
canvas.drawCircle(width / 2, height / 2, radius, paint);
}
}
| [
"[email protected]"
] | |
bb8cf0ac2b1a28fad1ad33e2872d5c01bf45a476 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_1/java/sharingan/Prob2A.java | 08eec92aba8e48766df96e3cd31f95b391722804 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Java | false | false | 1,277 | java | import java.math.BigInteger;
import java.util.Scanner;
public class Prob2A {
static BigInteger sqrt(BigInteger n) {
BigInteger a = BigInteger.ONE;
BigInteger b = new BigInteger(n.shiftRight(5).add(new BigInteger("8")).toString());
while(b.compareTo(a) >= 0) {
BigInteger mid = new BigInteger(a.add(b).shiftRight(1).toString());
if(mid.multiply(mid).compareTo(n) > 0) b = mid.subtract(BigInteger.ONE);
else a = mid.add(BigInteger.ONE);
}
return a.subtract(BigInteger.ONE);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int T =scan.nextInt();
for(int tt=0;tt<T;tt++)
{
long r= scan.nextLong();
long t =scan.nextLong();
long b= 2*r+1-2;
long a =2 ;
long c=t;
BigInteger bb = new BigInteger(Long.toString(b));
bb=bb.multiply(bb);
BigInteger cc = new BigInteger(Long.toString(c));
cc=cc.multiply(new BigInteger("8"));
bb=bb.add(cc);
bb =sqrt(bb);
BigInteger bbb = new BigInteger(Long.toString(b));
bb=bb.subtract(bbb);
bb=bb.divide(new BigInteger("4"));
long q = 0;
q= Long.parseLong( bb.toString());
q=(long)(Math.floor(q));
System.out.println("Case #"+tt+": "+q);
}
scan.close();
}
}
| [
"[email protected]"
] | |
7dc9f3479be7cee2d7e89f94421d929e1a48c70f | 2976433a213f354b6d387e1d957192a9871f7e40 | /Java/file_handling/CreateFile.java | ba29fc49b240e79cf8c9b616694a0d5a443853a9 | [] | no_license | saurabh-kumar88/Coding-Practice- | 90a6f6b8feb7a1d2316451b31c646a48dc6f9bf9 | 48f0bac728745c8978468974d55025da86f29486 | refs/heads/master | 2023-02-15T00:19:47.411973 | 2020-10-06T15:48:46 | 2020-10-06T15:48:46 | 280,220,900 | 0 | 1 | null | 2021-01-06T09:15:21 | 2020-07-16T17:51:29 | JavaScript | UTF-8 | Java | false | false | 662 | java | package file_handling;
import java.io.File;
import java.io.IOException;
public class CreateFile
{
public static void main (String[] args) {
try
{
File myFile = new File("my_first_file.txt");
if(myFile.createNewFile())
{
System.out.println("File created : " + myFile.getName());
}
else
{
System.out.println("File already exists. ");
}
}catch(IOException e)
{
System.out.println("Some thing went wrong??");
e.printStackTrace();
}
}
} | [
"[email protected]"
] | |
34fbfa2dbebde132fa079dbb62d338b78cb0fb7d | 89e1811c3293545c83966995cb000c88fc95fa79 | /MCHH-boss/src/main/java/com/threefiveninetong/mchh/childCare/controller/ChildrenPsychologicalBehaviorInfoController.java | 69428a7f1b0cc51f0175620fde5e33f970f25654 | [] | no_license | wxddong/MCHH-parent | 9cafcff20d2f36b5d528fd8dd608fa9547327486 | 2898fdf4e778afc01b850d003899f25005b8e415 | refs/heads/master | 2021-01-01T17:25:29.109072 | 2017-07-23T02:28:59 | 2017-07-23T02:28:59 | 96,751,862 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,979 | java | /**
* Copyright © 2016 三五九通. All rights reserved.
* @Title: ChildrenPsychologicalBehaviorInfoController.java
* @Prject: MCHH-boss
* @Package: com.threefiveninetong.mchh.childCare.controller
* @Description: TODO
* @author: dingjh
* @date: 2016-11-07 10:17:33
* @version: V1.0
*/
package com.threefiveninetong.mchh.childCare.controller;
import javax.annotation.Resource;
import java.util.Map;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.threefiveninetong.mchh.childCare.po.ChildrenPsychologicalBehaviorInfoPO;
import com.threefiveninetong.mchh.childCare.vo.ChildrenPsychologicalBehaviorInfoVO;
import com.threefiveninetong.mchh.childCare.service.ChildrenPsychologicalBehaviorInfoService;
import com.threefiveninetong.mchh.util.Page;
import com.threefiveninetong.mchh.core.page.Model;
/**
* @ClassName: ChildrenPsychologicalBehaviorInfoController
* @Description: TODO
* @author: dingjh
* @date: 2016-11-07 10:17:33
*/
@Controller
@RequestMapping("/com/threefiveninetong/mchh/childCare/childrenpsychologicalbehaviorinfo")
public class ChildrenPsychologicalBehaviorInfoController {
private static final Logger log =Logger.getLogger(ChildrenPsychologicalBehaviorInfoController.class);
@Resource
private ChildrenPsychologicalBehaviorInfoService childrenPsychologicalBehaviorInfoService;
/**
* CHILDREN_PSYCHOLOGICAL_BEHAVIOR_INFO 列表视图
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
public String listChildrenPsychologicalBehaviorInfoView() {
log.debug("request page: /sysset/childrenPsychologicalBehaviorInfo/childrenPsychologicalBehaviorInfo_list");
return "sysset/childrenPsychologicalBehaviorInfo/childrenPsychologicalBehaviorInfo_list";
}
/**
* CHILDREN_PSYCHOLOGICAL_BEHAVIOR_INFO 列表数据
* @param reqs
* @param page
* @return
*/
@ResponseBody
@RequestMapping(value = "/list", method = RequestMethod.POST)
public Model listChildrenPsychologicalBehaviorInfoActoin(@RequestParam Map<String, Object> reqs, Page<ChildrenPsychologicalBehaviorInfoPO> page) {
log.debug("request data: listChildrenPsychologicalBehaviorInfo");
Model model = new Model();
try {
childrenPsychologicalBehaviorInfoService.listForPage(reqs, page);
} catch (Exception e) {
e.printStackTrace();
}
model.setPage(page);
return model;
}
/**
* CHILDREN_PSYCHOLOGICAL_BEHAVIOR_INFO 添加
*
* @param childrenPsychologicalBehaviorInfoVO
* @return
*/
@ResponseBody
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Model addChildrenPsychologicalBehaviorInfoActoin(ChildrenPsychologicalBehaviorInfoVO childrenPsychologicalBehaviorInfoVO) {
Model model = new Model();
model.set("msg", "true");
try {
ChildrenPsychologicalBehaviorInfoPO childrenPsychologicalBehaviorInfoPO = new ChildrenPsychologicalBehaviorInfoPO();
BeanUtils.copyProperties(childrenPsychologicalBehaviorInfoPO, childrenPsychologicalBehaviorInfoVO);
childrenPsychologicalBehaviorInfoService.create(childrenPsychologicalBehaviorInfoPO);
} catch (Exception e) {
e.printStackTrace();
model.set("msg", "false");
}
return model;
}
/**
* CHILDREN_PSYCHOLOGICAL_BEHAVIOR_INFO 修改
*
* @param childrenPsychologicalBehaviorInfoVO
* @return
*/
@ResponseBody
@RequestMapping(value = "/update", method = RequestMethod.POST)
public Model updateChildrenPsychologicalBehaviorInfoActoin(ChildrenPsychologicalBehaviorInfoVO childrenPsychologicalBehaviorInfoVO) {
Model model = new Model();
model.set("msg", "true");
try {
ChildrenPsychologicalBehaviorInfoPO childrenPsychologicalBehaviorInfoPO = new ChildrenPsychologicalBehaviorInfoPO();
BeanUtils.copyProperties(childrenPsychologicalBehaviorInfoPO, childrenPsychologicalBehaviorInfoVO);
childrenPsychologicalBehaviorInfoService.update(childrenPsychologicalBehaviorInfoPO);
} catch (Exception e) {
e.printStackTrace();
model.set("msg", "false");
}
return model;
}
/**
* CHILDREN_PSYCHOLOGICAL_BEHAVIOR_INFO 删除
*
* @param childrenPsychologicalBehaviorInfoIds
* @return
*/
@ResponseBody
@RequestMapping(value = "/del", method = RequestMethod.POST, produces = "application/json")
public Model delChildrenPsychologicalBehaviorInfoAction(@RequestParam("childrenPsychologicalBehaviorInfoIds") String childrenPsychologicalBehaviorInfoIds) {
Model model = new Model();
model.set("msg", "true");
try {
childrenPsychologicalBehaviorInfoService.deletes(childrenPsychologicalBehaviorInfoIds.split(","));
} catch (Exception e) {
e.printStackTrace();
model.set("msg", "false");
}
return model;
}
} | [
"[email protected]"
] | |
586b0fc3c5a4e4e4af777ebe6b78cd2f4a52e1f7 | 78df1f36998cbcd3dbaa767683bdfa8b12b040ac | /src/main/java/com/wxj/App.java | c8d8095451fa79f0e7bd86f0d97053c48f0a8eb1 | [] | no_license | bzdjsmmzwxj/chatroom_plus | 02508547b9eefa3a61f952164e0fb43ac5997865 | ccdf64aca6876415a77e0747bd1df26e81718cf7 | refs/heads/master | 2022-07-02T15:36:33.574115 | 2019-08-30T08:39:28 | 2019-08-30T08:39:28 | 205,340,430 | 0 | 0 | null | 2022-06-21T01:46:47 | 2019-08-30T08:34:51 | Java | UTF-8 | Java | false | false | 170 | java | package com.wxj;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| [
"[email protected]"
] | |
14b9feb32c419ebf4e2446793c155935228011fd | dd03ef60217a05403514ba324b063c08222ce902 | /guis/MainForGUIs.java | 797014f3ee413c82661ee257049a046b8f374251 | [
"MIT"
] | permissive | TheWaySheGoes/Java-how-to | 03d86370274059ed4611726cd81819482f4805bd | a980309f919e94fc24429a3cd248d98b10a6a098 | refs/heads/master | 2020-03-22T11:49:31.353938 | 2018-08-16T08:58:34 | 2018-08-16T08:58:34 | 139,997,907 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 657 | java | package guis;
import javax.swing.JFrame;
/* FaceBook group: Programming
* GitHub : Java how to
* this starts the GUI. You can make you own Frame but it has to have
* some properties
*/
public class MainForGUIs {
public static void main(String[] args) {
JFrame frame= new JFrame();
frame.setBounds(0,0,325,250); // must have this for gui to work
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLayout(null);
frame.add(new LoginGUI());
frame.setVisible(true);
frame.setResizable(false); // doesnt allow for resizing the window
frame.setLocationRelativeTo(null); // shows in the middle
}
}
| [
"[email protected]"
] | |
6a40d65c60727d22dbe94d8543756bdba8806ba4 | 83813ed39c7acdc17f2d18cabf1bc2c37c22d951 | /src/main/java/com/microservice/counth/CountH/controller/TitularController.java | 5ee78933d5d2aa37e0da980eb51c72471477867a | [] | no_license | davisvitate/MSSavingsaccount | 0831413282fb8524ef7f7eab39d695983f150207 | d5ca976ef9d264ea183e68dc35166093a8e6f47d | refs/heads/master | 2020-11-30T09:59:52.922060 | 2020-01-06T21:14:00 | 2020-01-06T21:14:00 | 230,370,765 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,013 | java | package com.microservice.counth.CountH.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.microservice.counth.CountH.model.Titular;
import com.microservice.counth.CountH.services.CountHServices;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@RestController
@RequestMapping("/counth/titular")
public class TitularController {
@Autowired
private CountHServices service;
@GetMapping
public Mono<ResponseEntity<Flux<Titular>>> listaTitular(){
return Mono.just(
ResponseEntity.ok()
.contentType(MediaType.APPLICATION_JSON_UTF8)
.body(service.findAllTitular())
);
}
@RequestMapping(value = "/id/{id}", method = RequestMethod.GET)
@ResponseBody
public Mono<Titular> findById(@PathVariable("id") String id) {
return service.findByIdTitular(id);
}
@PostMapping
public Mono<Titular> create(@RequestBody Titular monotitular){
return service.saveTitular(monotitular);
}
@DeleteMapping("/{id}")
public Mono<ResponseEntity<Void>> eliminar(@PathVariable String id){
return service.findByIdTitular(id).flatMap(p ->{
return service.deleteTitular(p).then(Mono.just(new ResponseEntity<Void>(HttpStatus.NO_CONTENT)));
}).defaultIfEmpty(new ResponseEntity<Void>(HttpStatus.NOT_FOUND));
}
}
| [
"[email protected]"
] | |
7e14af38fb8943925f7852c3d098d12f4f58f176 | 250af56ba4c26aa4a1a7feea5ee0c0709620fde1 | /src/main/java/com/hobbyger/com/web/rest/vm/ManagedUserVM.java | b136749974cc8ae59a77f47fb020d35ff10d762d | [] | no_license | xavivg/jhipster-sample-application | 48339e03672c10180abd350399f03b7849fabad8 | 712ed416aad7d0efd85b5292ab40234d6142cfa6 | refs/heads/master | 2020-05-07T10:04:02.440294 | 2019-04-09T16:02:22 | 2019-04-09T16:02:22 | 180,403,578 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 838 | java | package com.hobbyger.com.web.rest.vm;
import com.hobbyger.com.service.dto.UserDTO;
import javax.validation.constraints.Size;
/**
* View Model extending the UserDTO, which is meant to be used in the user management UI.
*/
public class ManagedUserVM extends UserDTO {
public static final int PASSWORD_MIN_LENGTH = 4;
public static final int PASSWORD_MAX_LENGTH = 100;
@Size(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH)
private String password;
public ManagedUserVM() {
// Empty constructor needed for Jackson.
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "ManagedUserVM{" +
"} " + super.toString();
}
}
| [
"[email protected]"
] | |
967378ea37d0e11113f61bda1ce8c5836b874aa6 | 125af5bae85eba5fa8368c4111cc26f3e43ab6c8 | /app/src/main/java/com/fubang/lihaovv/ui/PersonActivity.java | b38159a25f29a76ddf4ef6af8be7381a8f45d5d0 | [] | no_license | jackycaojiaqi/LihaoVV | a3779e45f71f84e2c82b193fd4fa3e7d63ea426d | ea819f460f5202ac0a6f89bc09cbcf62cff9c973 | refs/heads/master | 2021-01-23T11:33:27.609769 | 2017-07-10T08:49:45 | 2017-07-10T08:49:45 | 93,148,307 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,515 | java | package com.fubang.lihaovv.ui;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.fubang.lihaovv.R;
import com.xlg.android.protocol.LogonResponse;
import com.zhuyunjian.library.StartUtil;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import org.simple.eventbus.EventBus;
import org.simple.eventbus.Subscriber;
@EActivity(R.layout.activity_person)
public class PersonActivity extends BaseActivity {
@ViewById(R.id.person_calias)
TextView caliasTv;
@ViewById(R.id.person_id)
TextView idTv;
@ViewById(R.id.person_level)
TextView levelTv;
@ViewById(R.id.person_deposit)
TextView depositTv;
@ViewById(R.id.person_kbi)
TextView kbiTv;
@ViewById(R.id.person_cidiograph)
TextView cidiographTv;
@ViewById(R.id.person_score)
TextView scoreTv;
@ViewById(R.id.person_back_btn)
ImageView backImage;
@Override
public void before() {
EventBus.getDefault().register(this);
}
@Override
public void initView() {
caliasTv.setText(StartUtil.getUserName(this));
idTv.setText(StartUtil.getUserId(this));
levelTv.setText(StartUtil.getUserLevel(this));
depositTv.setText(StartUtil.getUserDeposit(this));
kbiTv.setText(StartUtil.getUserKbi(this));
cidiographTv.setText(StartUtil.getUserCidiograph(this));
scoreTv.setText(StartUtil.getUserScore(this));
backImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
// new Thread(new Runnable() {
// @Override
// public void run() {
// new LoginMain(Integer.parseInt(StartUtil.getUserId(PersonActivity.this)),StartUtil.getUserPwd(PersonActivity.this)).start(Integer.parseInt(StartUtil.getUserId(PersonActivity.this)),StartUtil.getUserPwd(PersonActivity.this));
// }
// }).start();
}
@Override
protected void onDestroy() {
super.onDestroy();
EventBus.getDefault().unregister(this);
}
@Subscriber(tag = "login_success")
public void loginSuccess(LogonResponse res){
Log.d("123",res.getCalias()+"-----------kb");
if (res != null){
kbiTv.setText(res.getNk()+"");
}
}
}
| [
"[email protected]"
] | |
181a78609cd70f4731c9e93efa29a34019718eb5 | d0113423634b396f1460c4ed36384019c054abcb | /src/main/java/com/ollieread/technomagi/block/BlockHardlight.java | d5e82985fc0f16d6fff634f94160a4d7c2ccad63 | [] | no_license | Mrkwtkr/TechnoMagi | daaeaec5cfd116cd052e0fe121bdbf19f2ce9e1b | 4a097dee9b8e885e2b075aff5a59fc6121f85028 | refs/heads/master | 2021-01-17T18:24:59.459801 | 2014-09-24T19:40:47 | 2014-09-24T19:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,465 | java | package com.ollieread.technomagi.block;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockHardlight extends BlockTM
{
public BlockHardlight(String name)
{
super(Material.rock, name);
setLightOpacity(0);
setBlockUnbreakable();
}
@SideOnly(Side.CLIENT)
public void getSubBlocks(Item item, CreativeTabs tab, List list)
{
list.add(new ItemStack(this, 1, 0));
list.add(new ItemStack(this, 1, 1));
list.add(new ItemStack(this, 1, 2));
list.add(new ItemStack(this, 1, 3));
}
public boolean isOpaqueCube()
{
return false;
}
public boolean canSilkHarvest()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
@SideOnly(Side.CLIENT)
public int getRenderBlockPass()
{
return -1;
}
public int getLightValue()
{
return 15;
}
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side)
{
Block block = world.getBlock(x, y, z);
return block == this ? false : true;
}
}
| [
"[email protected]"
] | |
88fd6bf86ad0b84267758eefaabea7e1e9de83df | 1b4b702198157891c3241b4f922502dc1b4c2d47 | /app/src/main/java/com/srit/market/home/ui/home/HomeViewModel.java | 0f05338b81951993bece534b6ffca2e124b087e2 | [] | no_license | ammaralwaeli/Market | d944064599ce89134d363ac3293b9c48bbc31c80 | 02aaf1f4db1821bbdb95dfec526d53ee63870706 | refs/heads/master | 2022-12-04T21:52:11.001202 | 2020-08-23T12:49:27 | 2020-08-23T12:49:27 | 287,070,032 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 620 | java | package com.srit.market.home.ui.home;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.srit.market.helpers.MyResponse;
public class HomeViewModel extends ViewModel {
private MutableLiveData<MyResponse> mutableLiveData;
public void init() {
if (mutableLiveData != null) {
return;
}
HomeRepository homeRepository = HomeRepository.getInstance();
mutableLiveData = homeRepository.getCategory();
}
LiveData<MyResponse> getHomeRepository() {
return mutableLiveData;
}
} | [
"[email protected]"
] | |
f05eb2f9475d75e47f5de60930a9cfc1e35c266c | 4f0b700c37d988a679c331ff4abefff3114e765e | /src/main/java/com/example/calendario/services/PessoaService.java | b0326a99bcf792e8d101f5a3e48ee05154291c51 | [] | no_license | guigon95/agenda_spring | 26b201783f40eefadab2b9850c8af533f53e78dd | f8949da5eb3fea424d86fc25625b7826cf45f76d | refs/heads/main | 2023-06-18T05:09:55.235561 | 2021-07-07T22:54:05 | 2021-07-07T22:54:05 | 383,941,988 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 994 | java | package com.example.calendario.services;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.calendario.pessoa.Pessoa;
import com.example.calendario.repository.PessoaRepository;
import com.example.calendario.services.exceptions.ObjectNotFoundException;
@Service
public class PessoaService {
@Autowired
PessoaRepository pessoaRepository;
public List<Pessoa> findAll() {
return pessoaRepository.findAll();
}
public Pessoa findById(Long idPessoa) {
Optional<Pessoa> pessoa = pessoaRepository.findById(idPessoa);
return pessoa.orElseThrow(() -> new ObjectNotFoundException(
"Objeto não encontrado! Id: " + idPessoa + ", Tipo:" + Pessoa.class.getName()));
}
public Pessoa save(Pessoa pessoa) {
pessoa.setIdPessoa(null);
return pessoaRepository.save(pessoa);
}
public void delete(Pessoa pessoa) {
pessoaRepository.delete(pessoa);
}
}
| [
"[email protected]"
] | |
faae1e919fa064ad01d0a2742435f5f0d1e9fda7 | ac3ebb0f7a4df7081b1c16e8ec0c7d89dbd3b5be | /src/main/java/ru/antowka/tomodoro/factory/ResourcesFactory.java | fbff60f8b00985ae751f13cee99433ed72b4b6d1 | [] | no_license | Antowka/tomodoro | e852a58648c10a55b8cf502c4c02a606c4a04535 | 77e89c9113681a7793373f0a82dcad9e4ca5e4dc | refs/heads/master | 2020-07-01T17:09:30.556984 | 2017-06-22T19:38:16 | 2017-06-22T19:38:16 | 74,269,102 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 576 | java | package ru.antowka.tomodoro.factory;
import ru.antowka.tomodoro.infrastructure.Resources;
/**
* Factory for resources
*/
public class ResourcesFactory implements Factory<Resources>{
private static ResourcesFactory instance;
private Resources product;
public static ResourcesFactory getInstance() {
if(instance == null) {
instance = new ResourcesFactory();
instance.product = new Resources();
}
return instance;
}
@Override
public Resources getInstanceProduct() {
return product;
}
}
| [
"[email protected]"
] | |
4323491c5198a79dcd4ed3390b507185f72be779 | 6c0ae319c1457400605bb513776bd9ba7586a90b | /root/lineland.java | a91167c8d2e4ec1b538a062cc6e22b6c00ecaae3 | [] | no_license | bhi5hmaraj/Online_Judge | b5ae5e9544da413d5a501a97eda06bec01bde11a | 91020905821abfcefdebbf83e82f82d6fb75dd94 | refs/heads/master | 2016-08-11T21:22:29.345483 | 2016-02-16T12:05:01 | 2016-02-16T12:05:01 | 48,239,179 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,146 | java | import java.util.*;
import java.io.*;
public class lineland
{
public static void main(String args[])
{
MyScanner s1=new MyScanner();
PrintWriter out=new PrintWriter(new BufferedOutputStream(System.out), true);
StringBuffer sb=new StringBuffer();
int len=s1.nextInt();
int arr[]=new int[len];
for(int i=0;i<len;i++)
{
arr[i]=s1.nextInt();
}
int adj_l,adj_r,end_l=arr[0],end_r=arr[len-1];
for(int i=0;i<len;i++)
{
if(i==0)
{
adj_r=arr[1];
sb.append((adj_r-arr[i])+" "+(end_r-arr[i])+"\n");
}
else if(i==len-1)
{
adj_l=arr[len-2];
sb.append((arr[i]-adj_l)+" "+(arr[i]-end_l)+"\n");
}
else
{
adj_l=arr[i-1];
adj_r=arr[i+1];
sb.append(Math.min((arr[i]-adj_l),(adj_r-arr[i]))+" "+Math.max((arr[i]-end_l),end_r-arr[i])+"\n");
}
}
out.println(sb);
out.close();
}
}
class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() { return Integer.parseInt(next()); }
long nextLong() { return Long.parseLong(next()); }
double nextDouble() { return Double.parseDouble(next()); }
String nextLine(){
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
} | [
"[email protected]"
] | |
6f42b278835dad7b1921f04c21244e0679c7afd8 | 75a5bc581705f522b891a59068c79444d16f2173 | /template/android/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/com/facebook/share/R.java | 1f7399a47d8478bb6692b9af89c2878acdc692a8 | [
"MIT"
] | permissive | danilosampaio/marte | 9e37d39ade1bcb6486684f9843b871b56cc81fa1 | 97acd792e7ff5ebcd173a506bb2688a71e5cf3e1 | refs/heads/master | 2023-02-01T20:25:05.549776 | 2020-05-12T15:35:21 | 2020-05-12T15:35:21 | 237,780,188 | 0 | 0 | MIT | 2023-01-05T07:53:22 | 2020-02-02T14:05:07 | Java | UTF-8 | Java | false | false | 126,114 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.facebook.share;
public final class R {
private R() {}
public static final class anim {
private anim() {}
public static final int abc_fade_in = 0x7f010000;
public static final int abc_fade_out = 0x7f010001;
public static final int abc_grow_fade_in_from_bottom = 0x7f010002;
public static final int abc_popup_enter = 0x7f010003;
public static final int abc_popup_exit = 0x7f010004;
public static final int abc_shrink_fade_out_from_bottom = 0x7f010005;
public static final int abc_slide_in_bottom = 0x7f010006;
public static final int abc_slide_in_top = 0x7f010007;
public static final int abc_slide_out_bottom = 0x7f010008;
public static final int abc_slide_out_top = 0x7f010009;
}
public static final class attr {
private attr() {}
public static final int actionBarDivider = 0x7f030000;
public static final int actionBarItemBackground = 0x7f030001;
public static final int actionBarPopupTheme = 0x7f030002;
public static final int actionBarSize = 0x7f030003;
public static final int actionBarSplitStyle = 0x7f030004;
public static final int actionBarStyle = 0x7f030005;
public static final int actionBarTabBarStyle = 0x7f030006;
public static final int actionBarTabStyle = 0x7f030007;
public static final int actionBarTabTextStyle = 0x7f030008;
public static final int actionBarTheme = 0x7f030009;
public static final int actionBarWidgetTheme = 0x7f03000a;
public static final int actionButtonStyle = 0x7f03000b;
public static final int actionDropDownStyle = 0x7f03000c;
public static final int actionLayout = 0x7f03000d;
public static final int actionMenuTextAppearance = 0x7f03000e;
public static final int actionMenuTextColor = 0x7f03000f;
public static final int actionModeBackground = 0x7f030010;
public static final int actionModeCloseButtonStyle = 0x7f030011;
public static final int actionModeCloseDrawable = 0x7f030012;
public static final int actionModeCopyDrawable = 0x7f030013;
public static final int actionModeCutDrawable = 0x7f030014;
public static final int actionModeFindDrawable = 0x7f030015;
public static final int actionModePasteDrawable = 0x7f030016;
public static final int actionModePopupWindowStyle = 0x7f030017;
public static final int actionModeSelectAllDrawable = 0x7f030018;
public static final int actionModeShareDrawable = 0x7f030019;
public static final int actionModeSplitBackground = 0x7f03001a;
public static final int actionModeStyle = 0x7f03001b;
public static final int actionModeWebSearchDrawable = 0x7f03001c;
public static final int actionOverflowButtonStyle = 0x7f03001d;
public static final int actionOverflowMenuStyle = 0x7f03001e;
public static final int actionProviderClass = 0x7f03001f;
public static final int actionViewClass = 0x7f030020;
public static final int activityChooserViewStyle = 0x7f030021;
public static final int alertDialogButtonGroupStyle = 0x7f030025;
public static final int alertDialogCenterButtons = 0x7f030026;
public static final int alertDialogStyle = 0x7f030027;
public static final int alertDialogTheme = 0x7f030028;
public static final int allowStacking = 0x7f030029;
public static final int alpha = 0x7f03002a;
public static final int alphabeticModifiers = 0x7f03002b;
public static final int arrowHeadLength = 0x7f03002c;
public static final int arrowShaftLength = 0x7f03002d;
public static final int autoCompleteTextViewStyle = 0x7f03002e;
public static final int autoSizeMaxTextSize = 0x7f03002f;
public static final int autoSizeMinTextSize = 0x7f030030;
public static final int autoSizePresetSizes = 0x7f030031;
public static final int autoSizeStepGranularity = 0x7f030032;
public static final int autoSizeTextType = 0x7f030033;
public static final int background = 0x7f030034;
public static final int backgroundSplit = 0x7f030036;
public static final int backgroundStacked = 0x7f030037;
public static final int backgroundTint = 0x7f030038;
public static final int backgroundTintMode = 0x7f030039;
public static final int barLength = 0x7f03003a;
public static final int borderlessButtonStyle = 0x7f030042;
public static final int buttonBarButtonStyle = 0x7f030050;
public static final int buttonBarNegativeButtonStyle = 0x7f030051;
public static final int buttonBarNeutralButtonStyle = 0x7f030052;
public static final int buttonBarPositiveButtonStyle = 0x7f030053;
public static final int buttonBarStyle = 0x7f030054;
public static final int buttonGravity = 0x7f030056;
public static final int buttonPanelSideLayout = 0x7f030058;
public static final int buttonStyle = 0x7f030059;
public static final int buttonStyleSmall = 0x7f03005a;
public static final int buttonTint = 0x7f03005b;
public static final int buttonTintMode = 0x7f03005c;
public static final int cardBackgroundColor = 0x7f03005d;
public static final int cardCornerRadius = 0x7f03005e;
public static final int cardElevation = 0x7f03005f;
public static final int cardMaxElevation = 0x7f030060;
public static final int cardPreventCornerOverlap = 0x7f030061;
public static final int cardUseCompatPadding = 0x7f030062;
public static final int checkboxStyle = 0x7f030064;
public static final int checkedTextViewStyle = 0x7f030069;
public static final int closeIcon = 0x7f03007c;
public static final int closeItemLayout = 0x7f030083;
public static final int collapseContentDescription = 0x7f030084;
public static final int collapseIcon = 0x7f030085;
public static final int color = 0x7f030088;
public static final int colorAccent = 0x7f030089;
public static final int colorBackgroundFloating = 0x7f03008a;
public static final int colorButtonNormal = 0x7f03008b;
public static final int colorControlActivated = 0x7f03008c;
public static final int colorControlHighlight = 0x7f03008d;
public static final int colorControlNormal = 0x7f03008e;
public static final int colorError = 0x7f03008f;
public static final int colorPrimary = 0x7f030090;
public static final int colorPrimaryDark = 0x7f030091;
public static final int colorSwitchThumbNormal = 0x7f030093;
public static final int com_facebook_auxiliary_view_position = 0x7f030094;
public static final int com_facebook_foreground_color = 0x7f030096;
public static final int com_facebook_horizontal_alignment = 0x7f030097;
public static final int com_facebook_object_id = 0x7f03009b;
public static final int com_facebook_object_type = 0x7f03009c;
public static final int com_facebook_style = 0x7f03009e;
public static final int commitIcon = 0x7f0300a0;
public static final int contentDescription = 0x7f0300a1;
public static final int contentInsetEnd = 0x7f0300a2;
public static final int contentInsetEndWithActions = 0x7f0300a3;
public static final int contentInsetLeft = 0x7f0300a4;
public static final int contentInsetRight = 0x7f0300a5;
public static final int contentInsetStart = 0x7f0300a6;
public static final int contentInsetStartWithNavigation = 0x7f0300a7;
public static final int contentPadding = 0x7f0300a8;
public static final int contentPaddingBottom = 0x7f0300a9;
public static final int contentPaddingLeft = 0x7f0300aa;
public static final int contentPaddingRight = 0x7f0300ab;
public static final int contentPaddingTop = 0x7f0300ac;
public static final int controlBackground = 0x7f0300ae;
public static final int customNavigationLayout = 0x7f0300b5;
public static final int defaultQueryHint = 0x7f0300b6;
public static final int dialogPreferredPadding = 0x7f0300b8;
public static final int dialogTheme = 0x7f0300b9;
public static final int displayOptions = 0x7f0300ba;
public static final int divider = 0x7f0300bb;
public static final int dividerHorizontal = 0x7f0300bc;
public static final int dividerPadding = 0x7f0300bd;
public static final int dividerVertical = 0x7f0300be;
public static final int drawableSize = 0x7f0300c3;
public static final int drawerArrowStyle = 0x7f0300c8;
public static final int dropDownListViewStyle = 0x7f0300c9;
public static final int dropdownListPreferredItemHeight = 0x7f0300ca;
public static final int editTextBackground = 0x7f0300cb;
public static final int editTextColor = 0x7f0300cc;
public static final int editTextStyle = 0x7f0300cd;
public static final int elevation = 0x7f0300ce;
public static final int expandActivityOverflowButtonDrawable = 0x7f0300d3;
public static final int font = 0x7f0300ec;
public static final int fontFamily = 0x7f0300ed;
public static final int fontProviderAuthority = 0x7f0300ee;
public static final int fontProviderCerts = 0x7f0300ef;
public static final int fontProviderFetchStrategy = 0x7f0300f0;
public static final int fontProviderFetchTimeout = 0x7f0300f1;
public static final int fontProviderPackage = 0x7f0300f2;
public static final int fontProviderQuery = 0x7f0300f3;
public static final int fontStyle = 0x7f0300f4;
public static final int fontWeight = 0x7f0300f6;
public static final int gapBetweenBars = 0x7f0300f8;
public static final int goIcon = 0x7f0300f9;
public static final int height = 0x7f0300fb;
public static final int hideOnContentScroll = 0x7f030100;
public static final int homeAsUpIndicator = 0x7f030105;
public static final int homeLayout = 0x7f030106;
public static final int icon = 0x7f030108;
public static final int iconTint = 0x7f03010e;
public static final int iconTintMode = 0x7f03010f;
public static final int iconifiedByDefault = 0x7f030110;
public static final int imageButtonStyle = 0x7f030111;
public static final int indeterminateProgressStyle = 0x7f030112;
public static final int initialActivityCount = 0x7f030113;
public static final int isLightTheme = 0x7f030115;
public static final int itemPadding = 0x7f03011c;
public static final int layout = 0x7f030125;
public static final int listChoiceBackgroundIndicator = 0x7f030134;
public static final int listDividerAlertDialog = 0x7f030137;
public static final int listItemLayout = 0x7f030138;
public static final int listLayout = 0x7f030139;
public static final int listMenuViewStyle = 0x7f03013a;
public static final int listPopupWindowStyle = 0x7f03013b;
public static final int listPreferredItemHeight = 0x7f03013c;
public static final int listPreferredItemHeightLarge = 0x7f03013d;
public static final int listPreferredItemHeightSmall = 0x7f03013e;
public static final int listPreferredItemPaddingLeft = 0x7f030140;
public static final int listPreferredItemPaddingRight = 0x7f030141;
public static final int logo = 0x7f030143;
public static final int logoDescription = 0x7f030144;
public static final int maxButtonHeight = 0x7f030148;
public static final int measureWithLargestChild = 0x7f03014a;
public static final int multiChoiceItemLayout = 0x7f03014c;
public static final int navigationContentDescription = 0x7f03014d;
public static final int navigationIcon = 0x7f03014e;
public static final int navigationMode = 0x7f03014f;
public static final int numericModifiers = 0x7f030151;
public static final int overlapAnchor = 0x7f030152;
public static final int paddingBottomNoButtons = 0x7f030154;
public static final int paddingEnd = 0x7f030155;
public static final int paddingStart = 0x7f030156;
public static final int paddingTopNoTitle = 0x7f030157;
public static final int panelBackground = 0x7f030158;
public static final int panelMenuListTheme = 0x7f030159;
public static final int panelMenuListWidth = 0x7f03015a;
public static final int popupMenuStyle = 0x7f030162;
public static final int popupTheme = 0x7f030163;
public static final int popupWindowStyle = 0x7f030164;
public static final int preserveIconSpacing = 0x7f030165;
public static final int progressBarPadding = 0x7f03016b;
public static final int progressBarStyle = 0x7f03016c;
public static final int queryBackground = 0x7f03016d;
public static final int queryHint = 0x7f03016e;
public static final int radioButtonStyle = 0x7f03016f;
public static final int ratingBarStyle = 0x7f030170;
public static final int ratingBarStyleIndicator = 0x7f030171;
public static final int ratingBarStyleSmall = 0x7f030172;
public static final int searchHintIcon = 0x7f030188;
public static final int searchIcon = 0x7f030189;
public static final int searchViewStyle = 0x7f03018a;
public static final int seekBarStyle = 0x7f03018b;
public static final int selectableItemBackground = 0x7f03018c;
public static final int selectableItemBackgroundBorderless = 0x7f03018d;
public static final int showAsAction = 0x7f03018e;
public static final int showDividers = 0x7f03018f;
public static final int showText = 0x7f030191;
public static final int showTitle = 0x7f030192;
public static final int singleChoiceItemLayout = 0x7f030193;
public static final int spinBars = 0x7f030199;
public static final int spinnerDropDownItemStyle = 0x7f03019a;
public static final int spinnerStyle = 0x7f03019b;
public static final int splitTrack = 0x7f03019c;
public static final int srcCompat = 0x7f03019d;
public static final int state_above_anchor = 0x7f03019f;
public static final int subMenuArrow = 0x7f0301a8;
public static final int submitBackground = 0x7f0301a9;
public static final int subtitle = 0x7f0301aa;
public static final int subtitleTextAppearance = 0x7f0301ab;
public static final int subtitleTextColor = 0x7f0301ac;
public static final int subtitleTextStyle = 0x7f0301ad;
public static final int suggestionRowLayout = 0x7f0301ae;
public static final int switchMinWidth = 0x7f0301af;
public static final int switchPadding = 0x7f0301b0;
public static final int switchStyle = 0x7f0301b1;
public static final int switchTextAppearance = 0x7f0301b2;
public static final int textAllCaps = 0x7f0301cd;
public static final int textAppearanceLargePopupMenu = 0x7f0301d8;
public static final int textAppearanceListItem = 0x7f0301d9;
public static final int textAppearanceListItemSecondary = 0x7f0301da;
public static final int textAppearanceListItemSmall = 0x7f0301db;
public static final int textAppearancePopupMenuHeader = 0x7f0301dd;
public static final int textAppearanceSearchResultSubtitle = 0x7f0301de;
public static final int textAppearanceSearchResultTitle = 0x7f0301df;
public static final int textAppearanceSmallPopupMenu = 0x7f0301e0;
public static final int textColorAlertDialogListItem = 0x7f0301e3;
public static final int textColorSearchUrl = 0x7f0301e4;
public static final int theme = 0x7f0301e9;
public static final int thickness = 0x7f0301ea;
public static final int thumbTextPadding = 0x7f0301eb;
public static final int thumbTint = 0x7f0301ec;
public static final int thumbTintMode = 0x7f0301ed;
public static final int tickMark = 0x7f0301ee;
public static final int tickMarkTint = 0x7f0301ef;
public static final int tickMarkTintMode = 0x7f0301f0;
public static final int tint = 0x7f0301f1;
public static final int tintMode = 0x7f0301f2;
public static final int title = 0x7f0301f3;
public static final int titleMargin = 0x7f0301f5;
public static final int titleMarginBottom = 0x7f0301f6;
public static final int titleMarginEnd = 0x7f0301f7;
public static final int titleMarginStart = 0x7f0301f8;
public static final int titleMarginTop = 0x7f0301f9;
public static final int titleMargins = 0x7f0301fa;
public static final int titleTextAppearance = 0x7f0301fb;
public static final int titleTextColor = 0x7f0301fc;
public static final int titleTextStyle = 0x7f0301fd;
public static final int toolbarNavigationButtonStyle = 0x7f0301ff;
public static final int toolbarStyle = 0x7f030200;
public static final int tooltipForegroundColor = 0x7f030201;
public static final int tooltipFrameBackground = 0x7f030202;
public static final int tooltipText = 0x7f030203;
public static final int track = 0x7f030204;
public static final int trackTint = 0x7f030205;
public static final int trackTintMode = 0x7f030206;
public static final int voiceIcon = 0x7f03020b;
public static final int windowActionBar = 0x7f03020c;
public static final int windowActionBarOverlay = 0x7f03020d;
public static final int windowActionModeOverlay = 0x7f03020e;
public static final int windowFixedHeightMajor = 0x7f03020f;
public static final int windowFixedHeightMinor = 0x7f030210;
public static final int windowFixedWidthMajor = 0x7f030211;
public static final int windowFixedWidthMinor = 0x7f030212;
public static final int windowMinWidthMajor = 0x7f030213;
public static final int windowMinWidthMinor = 0x7f030214;
public static final int windowNoTitle = 0x7f030215;
}
public static final class bool {
private bool() {}
public static final int abc_action_bar_embed_tabs = 0x7f040000;
public static final int abc_allow_stacked_button_bar = 0x7f040001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f040002;
}
public static final class color {
private color() {}
public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000;
public static final int abc_background_cache_hint_selector_material_light = 0x7f050001;
public static final int abc_btn_colored_borderless_text_material = 0x7f050002;
public static final int abc_btn_colored_text_material = 0x7f050003;
public static final int abc_color_highlight_material = 0x7f050004;
public static final int abc_hint_foreground_material_dark = 0x7f050005;
public static final int abc_hint_foreground_material_light = 0x7f050006;
public static final int abc_input_method_navigation_guard = 0x7f050007;
public static final int abc_primary_text_disable_only_material_dark = 0x7f050008;
public static final int abc_primary_text_disable_only_material_light = 0x7f050009;
public static final int abc_primary_text_material_dark = 0x7f05000a;
public static final int abc_primary_text_material_light = 0x7f05000b;
public static final int abc_search_url_text = 0x7f05000c;
public static final int abc_search_url_text_normal = 0x7f05000d;
public static final int abc_search_url_text_pressed = 0x7f05000e;
public static final int abc_search_url_text_selected = 0x7f05000f;
public static final int abc_secondary_text_material_dark = 0x7f050010;
public static final int abc_secondary_text_material_light = 0x7f050011;
public static final int abc_tint_btn_checkable = 0x7f050012;
public static final int abc_tint_default = 0x7f050013;
public static final int abc_tint_edittext = 0x7f050014;
public static final int abc_tint_seek_thumb = 0x7f050015;
public static final int abc_tint_spinner = 0x7f050016;
public static final int abc_tint_switch_track = 0x7f050017;
public static final int accent_material_dark = 0x7f050018;
public static final int accent_material_light = 0x7f050019;
public static final int background_floating_material_dark = 0x7f05001a;
public static final int background_floating_material_light = 0x7f05001b;
public static final int background_material_dark = 0x7f05001c;
public static final int background_material_light = 0x7f05001d;
public static final int bright_foreground_disabled_material_dark = 0x7f05001e;
public static final int bright_foreground_disabled_material_light = 0x7f05001f;
public static final int bright_foreground_inverse_material_dark = 0x7f050020;
public static final int bright_foreground_inverse_material_light = 0x7f050021;
public static final int bright_foreground_material_dark = 0x7f050022;
public static final int bright_foreground_material_light = 0x7f050023;
public static final int button_material_dark = 0x7f050028;
public static final int button_material_light = 0x7f050029;
public static final int cardview_dark_background = 0x7f05002a;
public static final int cardview_light_background = 0x7f05002b;
public static final int cardview_shadow_end_color = 0x7f05002c;
public static final int cardview_shadow_start_color = 0x7f05002d;
public static final int com_facebook_blue = 0x7f05002f;
public static final int com_facebook_button_background_color = 0x7f050030;
public static final int com_facebook_button_background_color_disabled = 0x7f050031;
public static final int com_facebook_button_background_color_pressed = 0x7f050032;
public static final int com_facebook_button_send_background_color = 0x7f050033;
public static final int com_facebook_button_send_background_color_pressed = 0x7f050034;
public static final int com_facebook_button_text_color = 0x7f050035;
public static final int com_facebook_device_auth_text = 0x7f050036;
public static final int com_facebook_likeboxcountview_border_color = 0x7f050037;
public static final int com_facebook_likeboxcountview_text_color = 0x7f050038;
public static final int com_facebook_likeview_text_color = 0x7f050039;
public static final int com_facebook_messenger_blue = 0x7f05003a;
public static final int com_facebook_primary_button_disabled_text_color = 0x7f05003b;
public static final int com_facebook_primary_button_pressed_text_color = 0x7f05003c;
public static final int com_facebook_primary_button_text_color = 0x7f05003d;
public static final int com_facebook_send_button_text_color = 0x7f05003e;
public static final int com_smart_login_code = 0x7f05003f;
public static final int dim_foreground_disabled_material_dark = 0x7f05004d;
public static final int dim_foreground_disabled_material_light = 0x7f05004e;
public static final int dim_foreground_material_dark = 0x7f05004f;
public static final int dim_foreground_material_light = 0x7f050050;
public static final int foreground_material_dark = 0x7f050053;
public static final int foreground_material_light = 0x7f050054;
public static final int highlighted_text_material_dark = 0x7f050055;
public static final int highlighted_text_material_light = 0x7f050056;
public static final int material_blue_grey_800 = 0x7f050057;
public static final int material_blue_grey_900 = 0x7f050058;
public static final int material_blue_grey_950 = 0x7f050059;
public static final int material_deep_teal_200 = 0x7f05005a;
public static final int material_deep_teal_500 = 0x7f05005b;
public static final int material_grey_100 = 0x7f05005c;
public static final int material_grey_300 = 0x7f05005d;
public static final int material_grey_50 = 0x7f05005e;
public static final int material_grey_600 = 0x7f05005f;
public static final int material_grey_800 = 0x7f050060;
public static final int material_grey_850 = 0x7f050061;
public static final int material_grey_900 = 0x7f050062;
public static final int notification_action_color_filter = 0x7f05007d;
public static final int notification_icon_bg_color = 0x7f05007e;
public static final int notification_material_background_media_default_color = 0x7f05007f;
public static final int primary_dark_material_dark = 0x7f050080;
public static final int primary_dark_material_light = 0x7f050081;
public static final int primary_material_dark = 0x7f050082;
public static final int primary_material_light = 0x7f050083;
public static final int primary_text_default_material_dark = 0x7f050084;
public static final int primary_text_default_material_light = 0x7f050085;
public static final int primary_text_disabled_material_dark = 0x7f050086;
public static final int primary_text_disabled_material_light = 0x7f050087;
public static final int ripple_material_dark = 0x7f050088;
public static final int ripple_material_light = 0x7f050089;
public static final int secondary_text_default_material_dark = 0x7f05008a;
public static final int secondary_text_default_material_light = 0x7f05008b;
public static final int secondary_text_disabled_material_dark = 0x7f05008c;
public static final int secondary_text_disabled_material_light = 0x7f05008d;
public static final int switch_thumb_disabled_material_dark = 0x7f05008e;
public static final int switch_thumb_disabled_material_light = 0x7f05008f;
public static final int switch_thumb_material_dark = 0x7f050090;
public static final int switch_thumb_material_light = 0x7f050091;
public static final int switch_thumb_normal_material_dark = 0x7f050092;
public static final int switch_thumb_normal_material_light = 0x7f050093;
public static final int tooltip_background_dark = 0x7f050094;
public static final int tooltip_background_light = 0x7f050095;
}
public static final class dimen {
private dimen() {}
public static final int abc_action_bar_content_inset_material = 0x7f060000;
public static final int abc_action_bar_content_inset_with_nav = 0x7f060001;
public static final int abc_action_bar_default_height_material = 0x7f060002;
public static final int abc_action_bar_default_padding_end_material = 0x7f060003;
public static final int abc_action_bar_default_padding_start_material = 0x7f060004;
public static final int abc_action_bar_elevation_material = 0x7f060005;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060006;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f060007;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f060008;
public static final int abc_action_bar_stacked_max_height = 0x7f060009;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000a;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000b;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000c;
public static final int abc_action_button_min_height_material = 0x7f06000d;
public static final int abc_action_button_min_width_material = 0x7f06000e;
public static final int abc_action_button_min_width_overflow_material = 0x7f06000f;
public static final int abc_alert_dialog_button_bar_height = 0x7f060010;
public static final int abc_button_inset_horizontal_material = 0x7f060012;
public static final int abc_button_inset_vertical_material = 0x7f060013;
public static final int abc_button_padding_horizontal_material = 0x7f060014;
public static final int abc_button_padding_vertical_material = 0x7f060015;
public static final int abc_cascading_menus_min_smallest_width = 0x7f060016;
public static final int abc_config_prefDialogWidth = 0x7f060017;
public static final int abc_control_corner_material = 0x7f060018;
public static final int abc_control_inset_material = 0x7f060019;
public static final int abc_control_padding_material = 0x7f06001a;
public static final int abc_dialog_fixed_height_major = 0x7f06001c;
public static final int abc_dialog_fixed_height_minor = 0x7f06001d;
public static final int abc_dialog_fixed_width_major = 0x7f06001e;
public static final int abc_dialog_fixed_width_minor = 0x7f06001f;
public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f060020;
public static final int abc_dialog_list_padding_top_no_title = 0x7f060021;
public static final int abc_dialog_min_width_major = 0x7f060022;
public static final int abc_dialog_min_width_minor = 0x7f060023;
public static final int abc_dialog_padding_material = 0x7f060024;
public static final int abc_dialog_padding_top_material = 0x7f060025;
public static final int abc_dialog_title_divider_material = 0x7f060026;
public static final int abc_disabled_alpha_material_dark = 0x7f060027;
public static final int abc_disabled_alpha_material_light = 0x7f060028;
public static final int abc_dropdownitem_icon_width = 0x7f060029;
public static final int abc_dropdownitem_text_padding_left = 0x7f06002a;
public static final int abc_dropdownitem_text_padding_right = 0x7f06002b;
public static final int abc_edit_text_inset_bottom_material = 0x7f06002c;
public static final int abc_edit_text_inset_horizontal_material = 0x7f06002d;
public static final int abc_edit_text_inset_top_material = 0x7f06002e;
public static final int abc_floating_window_z = 0x7f06002f;
public static final int abc_list_item_padding_horizontal_material = 0x7f060033;
public static final int abc_panel_menu_list_width = 0x7f060034;
public static final int abc_progress_bar_height_material = 0x7f060035;
public static final int abc_search_view_preferred_height = 0x7f060036;
public static final int abc_search_view_preferred_width = 0x7f060037;
public static final int abc_seekbar_track_background_height_material = 0x7f060038;
public static final int abc_seekbar_track_progress_height_material = 0x7f060039;
public static final int abc_select_dialog_padding_start_material = 0x7f06003a;
public static final int abc_switch_padding = 0x7f06003b;
public static final int abc_text_size_body_1_material = 0x7f06003c;
public static final int abc_text_size_body_2_material = 0x7f06003d;
public static final int abc_text_size_button_material = 0x7f06003e;
public static final int abc_text_size_caption_material = 0x7f06003f;
public static final int abc_text_size_display_1_material = 0x7f060040;
public static final int abc_text_size_display_2_material = 0x7f060041;
public static final int abc_text_size_display_3_material = 0x7f060042;
public static final int abc_text_size_display_4_material = 0x7f060043;
public static final int abc_text_size_headline_material = 0x7f060044;
public static final int abc_text_size_large_material = 0x7f060045;
public static final int abc_text_size_medium_material = 0x7f060046;
public static final int abc_text_size_menu_header_material = 0x7f060047;
public static final int abc_text_size_menu_material = 0x7f060048;
public static final int abc_text_size_small_material = 0x7f060049;
public static final int abc_text_size_subhead_material = 0x7f06004a;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f06004b;
public static final int abc_text_size_title_material = 0x7f06004c;
public static final int abc_text_size_title_material_toolbar = 0x7f06004d;
public static final int cardview_compat_inset_shadow = 0x7f060050;
public static final int cardview_default_elevation = 0x7f060051;
public static final int cardview_default_radius = 0x7f060052;
public static final int com_facebook_auth_dialog_corner_radius = 0x7f060053;
public static final int com_facebook_auth_dialog_corner_radius_oversized = 0x7f060054;
public static final int com_facebook_button_corner_radius = 0x7f060055;
public static final int com_facebook_likeboxcountview_border_radius = 0x7f060057;
public static final int com_facebook_likeboxcountview_border_width = 0x7f060058;
public static final int com_facebook_likeboxcountview_caret_height = 0x7f060059;
public static final int com_facebook_likeboxcountview_caret_width = 0x7f06005a;
public static final int com_facebook_likeboxcountview_text_padding = 0x7f06005b;
public static final int com_facebook_likeboxcountview_text_size = 0x7f06005c;
public static final int com_facebook_likeview_edge_padding = 0x7f06005d;
public static final int com_facebook_likeview_internal_padding = 0x7f06005e;
public static final int com_facebook_likeview_text_size = 0x7f06005f;
public static final int compat_button_inset_horizontal_material = 0x7f060063;
public static final int compat_button_inset_vertical_material = 0x7f060064;
public static final int compat_button_padding_horizontal_material = 0x7f060065;
public static final int compat_button_padding_vertical_material = 0x7f060066;
public static final int compat_control_corner_material = 0x7f060067;
public static final int disabled_alpha_material_dark = 0x7f060096;
public static final int disabled_alpha_material_light = 0x7f060097;
public static final int highlight_alpha_material_colored = 0x7f06009b;
public static final int highlight_alpha_material_dark = 0x7f06009c;
public static final int highlight_alpha_material_light = 0x7f06009d;
public static final int hint_alpha_material_dark = 0x7f06009e;
public static final int hint_alpha_material_light = 0x7f06009f;
public static final int hint_pressed_alpha_material_dark = 0x7f0600a0;
public static final int hint_pressed_alpha_material_light = 0x7f0600a1;
public static final int notification_action_icon_size = 0x7f0600d5;
public static final int notification_action_text_size = 0x7f0600d6;
public static final int notification_big_circle_margin = 0x7f0600d7;
public static final int notification_content_margin_start = 0x7f0600d8;
public static final int notification_large_icon_height = 0x7f0600d9;
public static final int notification_large_icon_width = 0x7f0600da;
public static final int notification_main_column_padding_top = 0x7f0600db;
public static final int notification_media_narrow_margin = 0x7f0600dc;
public static final int notification_right_icon_size = 0x7f0600dd;
public static final int notification_right_side_padding_top = 0x7f0600de;
public static final int notification_small_icon_background_padding = 0x7f0600df;
public static final int notification_small_icon_size_as_large = 0x7f0600e0;
public static final int notification_subtext_size = 0x7f0600e1;
public static final int notification_top_pad = 0x7f0600e2;
public static final int notification_top_pad_large_text = 0x7f0600e3;
public static final int tooltip_corner_radius = 0x7f0600e8;
public static final int tooltip_horizontal_padding = 0x7f0600e9;
public static final int tooltip_margin = 0x7f0600ea;
public static final int tooltip_precise_anchor_extra_offset = 0x7f0600eb;
public static final int tooltip_precise_anchor_threshold = 0x7f0600ec;
public static final int tooltip_vertical_padding = 0x7f0600ed;
public static final int tooltip_y_offset_non_touch = 0x7f0600ee;
public static final int tooltip_y_offset_touch = 0x7f0600ef;
}
public static final class drawable {
private drawable() {}
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070006;
public static final int abc_action_bar_item_background_material = 0x7f070007;
public static final int abc_btn_borderless_material = 0x7f070008;
public static final int abc_btn_check_material = 0x7f070009;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f07000b;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f07000c;
public static final int abc_btn_colored_material = 0x7f07000d;
public static final int abc_btn_default_mtrl_shape = 0x7f07000e;
public static final int abc_btn_radio_material = 0x7f07000f;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f070011;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f070012;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f070013;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f070014;
public static final int abc_cab_background_internal_bg = 0x7f070015;
public static final int abc_cab_background_top_material = 0x7f070016;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f070017;
public static final int abc_control_background_material = 0x7f070018;
public static final int abc_dialog_material_background = 0x7f070019;
public static final int abc_edit_text_material = 0x7f07001a;
public static final int abc_ic_ab_back_material = 0x7f07001b;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f07001c;
public static final int abc_ic_clear_material = 0x7f07001d;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f07001e;
public static final int abc_ic_go_search_api_material = 0x7f07001f;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f070020;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f070021;
public static final int abc_ic_menu_overflow_material = 0x7f070022;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f070023;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f070024;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f070025;
public static final int abc_ic_search_api_material = 0x7f070026;
public static final int abc_ic_star_black_16dp = 0x7f070027;
public static final int abc_ic_star_black_36dp = 0x7f070028;
public static final int abc_ic_star_black_48dp = 0x7f070029;
public static final int abc_ic_star_half_black_16dp = 0x7f07002a;
public static final int abc_ic_star_half_black_36dp = 0x7f07002b;
public static final int abc_ic_star_half_black_48dp = 0x7f07002c;
public static final int abc_ic_voice_search_api_material = 0x7f07002d;
public static final int abc_item_background_holo_dark = 0x7f07002e;
public static final int abc_item_background_holo_light = 0x7f07002f;
public static final int abc_list_divider_mtrl_alpha = 0x7f070031;
public static final int abc_list_focused_holo = 0x7f070032;
public static final int abc_list_longpressed_holo = 0x7f070033;
public static final int abc_list_pressed_holo_dark = 0x7f070034;
public static final int abc_list_pressed_holo_light = 0x7f070035;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f070036;
public static final int abc_list_selector_background_transition_holo_light = 0x7f070037;
public static final int abc_list_selector_disabled_holo_dark = 0x7f070038;
public static final int abc_list_selector_disabled_holo_light = 0x7f070039;
public static final int abc_list_selector_holo_dark = 0x7f07003a;
public static final int abc_list_selector_holo_light = 0x7f07003b;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f07003c;
public static final int abc_popup_background_mtrl_mult = 0x7f07003d;
public static final int abc_ratingbar_indicator_material = 0x7f07003e;
public static final int abc_ratingbar_material = 0x7f07003f;
public static final int abc_ratingbar_small_material = 0x7f070040;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f070041;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070042;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f070043;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f070044;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f070045;
public static final int abc_seekbar_thumb_material = 0x7f070046;
public static final int abc_seekbar_tick_mark_material = 0x7f070047;
public static final int abc_seekbar_track_material = 0x7f070048;
public static final int abc_spinner_mtrl_am_alpha = 0x7f070049;
public static final int abc_spinner_textfield_background_material = 0x7f07004a;
public static final int abc_switch_thumb_material = 0x7f07004b;
public static final int abc_switch_track_mtrl_alpha = 0x7f07004c;
public static final int abc_tab_indicator_material = 0x7f07004d;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f07004e;
public static final int abc_text_cursor_material = 0x7f07004f;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f070050;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f070051;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f070052;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f070053;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f070054;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f070055;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f070056;
public static final int abc_textfield_default_mtrl_alpha = 0x7f070057;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070058;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070059;
public static final int abc_textfield_search_material = 0x7f07005a;
public static final int abc_vector_test = 0x7f07005b;
public static final int com_facebook_auth_dialog_background = 0x7f070066;
public static final int com_facebook_auth_dialog_cancel_background = 0x7f070067;
public static final int com_facebook_auth_dialog_header_background = 0x7f070068;
public static final int com_facebook_button_background = 0x7f070069;
public static final int com_facebook_button_icon = 0x7f07006a;
public static final int com_facebook_button_like_background = 0x7f07006b;
public static final int com_facebook_button_like_icon_selected = 0x7f07006c;
public static final int com_facebook_button_send_background = 0x7f07006d;
public static final int com_facebook_button_send_icon_blue = 0x7f07006e;
public static final int com_facebook_button_send_icon_white = 0x7f07006f;
public static final int com_facebook_close = 0x7f070070;
public static final int com_facebook_favicon_blue = 0x7f070071;
public static final int com_facebook_send_button_icon = 0x7f070074;
public static final int notification_action_background = 0x7f070089;
public static final int notification_bg = 0x7f07008a;
public static final int notification_bg_low = 0x7f07008b;
public static final int notification_bg_low_normal = 0x7f07008c;
public static final int notification_bg_low_pressed = 0x7f07008d;
public static final int notification_bg_normal = 0x7f07008e;
public static final int notification_bg_normal_pressed = 0x7f07008f;
public static final int notification_icon_background = 0x7f070090;
public static final int notification_template_icon_bg = 0x7f070091;
public static final int notification_template_icon_low_bg = 0x7f070092;
public static final int notification_tile_bg = 0x7f070093;
public static final int notify_panel_notification_icon_bg = 0x7f070094;
public static final int tooltip_frame_dark = 0x7f070096;
public static final int tooltip_frame_light = 0x7f070097;
}
public static final class id {
private id() {}
public static final int action0 = 0x7f08002d;
public static final int action_bar = 0x7f08002e;
public static final int action_bar_activity_content = 0x7f08002f;
public static final int action_bar_container = 0x7f080030;
public static final int action_bar_root = 0x7f080031;
public static final int action_bar_spinner = 0x7f080032;
public static final int action_bar_subtitle = 0x7f080033;
public static final int action_bar_title = 0x7f080034;
public static final int action_container = 0x7f080035;
public static final int action_context_bar = 0x7f080036;
public static final int action_divider = 0x7f080037;
public static final int action_image = 0x7f080038;
public static final int action_menu_divider = 0x7f080039;
public static final int action_menu_presenter = 0x7f08003a;
public static final int action_mode_bar = 0x7f08003b;
public static final int action_mode_bar_stub = 0x7f08003c;
public static final int action_mode_close_button = 0x7f08003d;
public static final int action_text = 0x7f08003e;
public static final int actions = 0x7f08003f;
public static final int activity_chooser_view_content = 0x7f080040;
public static final int add = 0x7f080041;
public static final int alertTitle = 0x7f080042;
public static final int async = 0x7f080045;
public static final int blocking = 0x7f080049;
public static final int bottom = 0x7f08004a;
public static final int box_count = 0x7f08004b;
public static final int button = 0x7f080051;
public static final int buttonPanel = 0x7f080052;
public static final int cancel_action = 0x7f080053;
public static final int cancel_button = 0x7f080054;
public static final int center = 0x7f080056;
public static final int checkbox = 0x7f08005b;
public static final int chronometer = 0x7f08005d;
public static final int com_facebook_device_auth_instructions = 0x7f080063;
public static final int com_facebook_fragment_container = 0x7f080064;
public static final int com_facebook_login_fragment_progress_bar = 0x7f080065;
public static final int com_facebook_smart_instructions_0 = 0x7f080066;
public static final int com_facebook_smart_instructions_or = 0x7f080067;
public static final int confirmation_code = 0x7f08006b;
public static final int contentPanel = 0x7f08006e;
public static final int custom = 0x7f080070;
public static final int customPanel = 0x7f080071;
public static final int decor_content_parent = 0x7f080072;
public static final int default_activity_button = 0x7f080073;
public static final int edit_query = 0x7f08007c;
public static final int end_padder = 0x7f08007e;
public static final int expand_activities_button = 0x7f080082;
public static final int expanded_menu = 0x7f080083;
public static final int forever = 0x7f08008f;
public static final int home = 0x7f080094;
public static final int icon = 0x7f080096;
public static final int icon_group = 0x7f080097;
public static final int image = 0x7f080099;
public static final int info = 0x7f08009a;
public static final int inline = 0x7f08009b;
public static final int italic = 0x7f08009c;
public static final int left = 0x7f0800a1;
public static final int line1 = 0x7f0800a2;
public static final int line3 = 0x7f0800a3;
public static final int listMode = 0x7f0800a4;
public static final int list_item = 0x7f0800a5;
public static final int media_actions = 0x7f0800a7;
public static final int message = 0x7f0800a8;
public static final int multiply = 0x7f0800ad;
public static final int none = 0x7f0800b1;
public static final int normal = 0x7f0800b2;
public static final int notification_background = 0x7f0800b3;
public static final int notification_main_column = 0x7f0800b4;
public static final int notification_main_column_container = 0x7f0800b5;
public static final int open_graph = 0x7f0800b8;
public static final int page = 0x7f0800ba;
public static final int parentPanel = 0x7f0800bc;
public static final int progress_bar = 0x7f0800bf;
public static final int progress_circular = 0x7f0800c0;
public static final int progress_horizontal = 0x7f0800c1;
public static final int radio = 0x7f0800c2;
public static final int right = 0x7f0800c4;
public static final int right_icon = 0x7f0800c5;
public static final int right_side = 0x7f0800c6;
public static final int screen = 0x7f0800d2;
public static final int scrollIndicatorDown = 0x7f0800d4;
public static final int scrollIndicatorUp = 0x7f0800d5;
public static final int scrollView = 0x7f0800d6;
public static final int search_badge = 0x7f0800d8;
public static final int search_bar = 0x7f0800d9;
public static final int search_button = 0x7f0800da;
public static final int search_close_btn = 0x7f0800db;
public static final int search_edit_frame = 0x7f0800dc;
public static final int search_go_btn = 0x7f0800dd;
public static final int search_mag_icon = 0x7f0800de;
public static final int search_plate = 0x7f0800df;
public static final int search_src_text = 0x7f0800e0;
public static final int search_voice_btn = 0x7f0800e1;
public static final int select_dialog_listview = 0x7f0800e2;
public static final int shortcut = 0x7f0800e4;
public static final int spacer = 0x7f0800ee;
public static final int split_action_bar = 0x7f0800ef;
public static final int src_atop = 0x7f0800f0;
public static final int src_in = 0x7f0800f1;
public static final int src_over = 0x7f0800f2;
public static final int standard = 0x7f0800f3;
public static final int status_bar_latest_event_content = 0x7f0800f5;
public static final int submenuarrow = 0x7f0800f7;
public static final int submit_area = 0x7f0800f8;
public static final int tabMode = 0x7f0800f9;
public static final int tag_transition_group = 0x7f0800ff;
public static final int text = 0x7f080102;
public static final int text2 = 0x7f080103;
public static final int textSpacerNoButtons = 0x7f080104;
public static final int textSpacerNoTitle = 0x7f080105;
public static final int time = 0x7f08010b;
public static final int title = 0x7f08010c;
public static final int titleDividerNoCustom = 0x7f08010d;
public static final int title_template = 0x7f08010e;
public static final int top = 0x7f08010f;
public static final int topPanel = 0x7f080110;
public static final int uniform = 0x7f080118;
public static final int unknown = 0x7f080119;
public static final int up = 0x7f08011b;
public static final int wrap_content = 0x7f080122;
}
public static final class integer {
private integer() {}
public static final int abc_config_activityDefaultDur = 0x7f090000;
public static final int abc_config_activityShortDur = 0x7f090001;
public static final int cancel_button_image_alpha = 0x7f090004;
public static final int config_tooltipAnimTime = 0x7f090005;
public static final int status_bar_notification_info_maxnum = 0x7f090010;
}
public static final class layout {
private layout() {}
public static final int abc_action_bar_title_item = 0x7f0b0000;
public static final int abc_action_bar_up_container = 0x7f0b0001;
public static final int abc_action_menu_item_layout = 0x7f0b0002;
public static final int abc_action_menu_layout = 0x7f0b0003;
public static final int abc_action_mode_bar = 0x7f0b0004;
public static final int abc_action_mode_close_item_material = 0x7f0b0005;
public static final int abc_activity_chooser_view = 0x7f0b0006;
public static final int abc_activity_chooser_view_list_item = 0x7f0b0007;
public static final int abc_alert_dialog_button_bar_material = 0x7f0b0008;
public static final int abc_alert_dialog_material = 0x7f0b0009;
public static final int abc_alert_dialog_title_material = 0x7f0b000a;
public static final int abc_dialog_title_material = 0x7f0b000c;
public static final int abc_expanded_menu_layout = 0x7f0b000d;
public static final int abc_list_menu_item_checkbox = 0x7f0b000e;
public static final int abc_list_menu_item_icon = 0x7f0b000f;
public static final int abc_list_menu_item_layout = 0x7f0b0010;
public static final int abc_list_menu_item_radio = 0x7f0b0011;
public static final int abc_popup_menu_header_item_layout = 0x7f0b0012;
public static final int abc_popup_menu_item_layout = 0x7f0b0013;
public static final int abc_screen_content_include = 0x7f0b0014;
public static final int abc_screen_simple = 0x7f0b0015;
public static final int abc_screen_simple_overlay_action_mode = 0x7f0b0016;
public static final int abc_screen_toolbar = 0x7f0b0017;
public static final int abc_search_dropdown_item_icons_2line = 0x7f0b0018;
public static final int abc_search_view = 0x7f0b0019;
public static final int abc_select_dialog_material = 0x7f0b001a;
public static final int com_facebook_activity_layout = 0x7f0b001e;
public static final int com_facebook_device_auth_dialog_fragment = 0x7f0b001f;
public static final int com_facebook_login_fragment = 0x7f0b0020;
public static final int com_facebook_smart_device_dialog_fragment = 0x7f0b0021;
public static final int notification_action = 0x7f0b0036;
public static final int notification_action_tombstone = 0x7f0b0037;
public static final int notification_media_action = 0x7f0b0038;
public static final int notification_media_cancel_action = 0x7f0b0039;
public static final int notification_template_big_media = 0x7f0b003a;
public static final int notification_template_big_media_custom = 0x7f0b003b;
public static final int notification_template_big_media_narrow = 0x7f0b003c;
public static final int notification_template_big_media_narrow_custom = 0x7f0b003d;
public static final int notification_template_custom_big = 0x7f0b003e;
public static final int notification_template_icon_group = 0x7f0b003f;
public static final int notification_template_lines_media = 0x7f0b0040;
public static final int notification_template_media = 0x7f0b0041;
public static final int notification_template_media_custom = 0x7f0b0042;
public static final int notification_template_part_chronometer = 0x7f0b0043;
public static final int notification_template_part_time = 0x7f0b0044;
public static final int select_dialog_item_material = 0x7f0b0048;
public static final int select_dialog_multichoice_material = 0x7f0b0049;
public static final int select_dialog_singlechoice_material = 0x7f0b004a;
public static final int support_simple_spinner_dropdown_item = 0x7f0b004b;
}
public static final class string {
private string() {}
public static final int abc_action_bar_home_description = 0x7f0d0000;
public static final int abc_action_bar_up_description = 0x7f0d0001;
public static final int abc_action_menu_overflow_description = 0x7f0d0002;
public static final int abc_action_mode_done = 0x7f0d0003;
public static final int abc_activity_chooser_view_see_all = 0x7f0d0004;
public static final int abc_activitychooserview_choose_application = 0x7f0d0005;
public static final int abc_capital_off = 0x7f0d0006;
public static final int abc_capital_on = 0x7f0d0007;
public static final int abc_search_hint = 0x7f0d0012;
public static final int abc_searchview_description_clear = 0x7f0d0013;
public static final int abc_searchview_description_query = 0x7f0d0014;
public static final int abc_searchview_description_search = 0x7f0d0015;
public static final int abc_searchview_description_submit = 0x7f0d0016;
public static final int abc_searchview_description_voice = 0x7f0d0017;
public static final int abc_shareactionprovider_share_with = 0x7f0d0018;
public static final int abc_shareactionprovider_share_with_application = 0x7f0d0019;
public static final int abc_toolbar_collapse_description = 0x7f0d001a;
public static final int com_facebook_device_auth_instructions = 0x7f0d003d;
public static final int com_facebook_image_download_unknown_error = 0x7f0d003e;
public static final int com_facebook_internet_permission_error_message = 0x7f0d003f;
public static final int com_facebook_internet_permission_error_title = 0x7f0d0040;
public static final int com_facebook_like_button_liked = 0x7f0d0041;
public static final int com_facebook_like_button_not_liked = 0x7f0d0042;
public static final int com_facebook_loading = 0x7f0d0043;
public static final int com_facebook_loginview_cancel_action = 0x7f0d0044;
public static final int com_facebook_loginview_log_in_button = 0x7f0d0045;
public static final int com_facebook_loginview_log_in_button_continue = 0x7f0d0046;
public static final int com_facebook_loginview_log_in_button_long = 0x7f0d0047;
public static final int com_facebook_loginview_log_out_action = 0x7f0d0048;
public static final int com_facebook_loginview_log_out_button = 0x7f0d0049;
public static final int com_facebook_loginview_logged_in_as = 0x7f0d004a;
public static final int com_facebook_loginview_logged_in_using_facebook = 0x7f0d004b;
public static final int com_facebook_send_button_text = 0x7f0d004c;
public static final int com_facebook_share_button_text = 0x7f0d004d;
public static final int com_facebook_smart_device_instructions = 0x7f0d004e;
public static final int com_facebook_smart_device_instructions_or = 0x7f0d004f;
public static final int com_facebook_smart_login_confirmation_cancel = 0x7f0d0050;
public static final int com_facebook_smart_login_confirmation_continue_as = 0x7f0d0051;
public static final int com_facebook_smart_login_confirmation_title = 0x7f0d0052;
public static final int com_facebook_tooltip_default = 0x7f0d0053;
public static final int search_menu_title = 0x7f0d006c;
public static final int status_bar_notification_info_overflow = 0x7f0d0074;
}
public static final class style {
private style() {}
public static final int AlertDialog_AppCompat = 0x7f0e0000;
public static final int AlertDialog_AppCompat_Light = 0x7f0e0001;
public static final int Animation_AppCompat_Dialog = 0x7f0e0002;
public static final int Animation_AppCompat_DropDownUp = 0x7f0e0003;
public static final int Animation_AppCompat_Tooltip = 0x7f0e0004;
public static final int Base_AlertDialog_AppCompat = 0x7f0e0008;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0e0009;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0e000a;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0e000b;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f0e000c;
public static final int Base_CardView = 0x7f0e000d;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0e000f;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0e000e;
public static final int Base_TextAppearance_AppCompat = 0x7f0e0010;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0e0011;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0e0012;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f0e0013;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0e0014;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0e0015;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0e0016;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0e0017;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0e0018;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0e0019;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0e001a;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f0e001b;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0e001c;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e001d;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e001e;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0e001f;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0e0020;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0e0021;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0e0022;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e0023;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0e0024;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f0e0025;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0e0026;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0e0027;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e0028;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f0e0029;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0e002a;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0e002b;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e002c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e002d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e002f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e0030;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e0031;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e0032;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0e0033;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e0034;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e0035;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e0036;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e0037;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e0038;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e0039;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e003a;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0e003b;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e003c;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e003d;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e003e;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e003f;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0e005f;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0e0060;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0e0061;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e0062;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0e0063;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0064;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0e0065;
public static final int Base_Theme_AppCompat = 0x7f0e0040;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0e0041;
public static final int Base_Theme_AppCompat_Dialog = 0x7f0e0042;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0e0046;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0e0043;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0e0044;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0e0045;
public static final int Base_Theme_AppCompat_Light = 0x7f0e0047;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0e0048;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0e0049;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e004d;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0e004a;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0e004b;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e004c;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0e0075;
public static final int Base_V21_Theme_AppCompat = 0x7f0e0071;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0e0072;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f0e0073;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0e0074;
public static final int Base_V22_Theme_AppCompat = 0x7f0e0076;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f0e0077;
public static final int Base_V23_Theme_AppCompat = 0x7f0e0078;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f0e0079;
public static final int Base_V26_Theme_AppCompat = 0x7f0e007a;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f0e007b;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0e007c;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0e0083;
public static final int Base_V7_Theme_AppCompat = 0x7f0e007f;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0e0080;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0e0081;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0e0082;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0084;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0e0085;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0e0086;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0e0087;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0e0088;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0e0089;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0e008a;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0e008b;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f0e008c;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0e008d;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0e008e;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0e008f;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0e0090;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0091;
public static final int Base_Widget_AppCompat_Button = 0x7f0e0092;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0e0098;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e0099;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0e0093;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0094;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e0095;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0e0096;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f0e0097;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e009a;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e009b;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0e009c;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0e009d;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0e009e;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0e009f;
public static final int Base_Widget_AppCompat_EditText = 0x7f0e00a0;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f0e00a1;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0e00a2;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e00a3;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e00a4;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e00a5;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e00a6;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e00a7;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0e00a8;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e00a9;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0e00aa;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0e00ab;
public static final int Base_Widget_AppCompat_ListView = 0x7f0e00ac;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0e00ad;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0e00ae;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0e00af;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0e00b0;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0e00b1;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0e00b2;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e00b3;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f0e00b4;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0e00b5;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0e00b6;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0e00b7;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0e00b8;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f0e00b9;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0e00ba;
public static final int Base_Widget_AppCompat_Spinner = 0x7f0e00bb;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0e00bc;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0e00be;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0e00bf;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e00c0;
public static final int CardView = 0x7f0e00c7;
public static final int CardView_Dark = 0x7f0e00c8;
public static final int CardView_Light = 0x7f0e00c9;
public static final int Platform_AppCompat = 0x7f0e00ce;
public static final int Platform_AppCompat_Light = 0x7f0e00cf;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f0e00d4;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0e00d5;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0e00d6;
public static final int Platform_V21_AppCompat = 0x7f0e00d7;
public static final int Platform_V21_AppCompat_Light = 0x7f0e00d8;
public static final int Platform_V25_AppCompat = 0x7f0e00d9;
public static final int Platform_V25_AppCompat_Light = 0x7f0e00da;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f0e00db;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0e00dc;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0e00dd;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0e00de;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0e00df;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0e00e0;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0e00e3;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0e00ea;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0e00e5;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0e00e6;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0e00e7;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0e00e8;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0e00e9;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0e00eb;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0e00ec;
public static final int TextAppearance_AppCompat = 0x7f0e00f1;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0e00f2;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0e00f3;
public static final int TextAppearance_AppCompat_Button = 0x7f0e00f4;
public static final int TextAppearance_AppCompat_Caption = 0x7f0e00f5;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0e00f6;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0e00f7;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0e00f8;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0e00f9;
public static final int TextAppearance_AppCompat_Headline = 0x7f0e00fa;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0e00fb;
public static final int TextAppearance_AppCompat_Large = 0x7f0e00fc;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0e00fd;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0e00fe;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0e00ff;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e0100;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e0101;
public static final int TextAppearance_AppCompat_Medium = 0x7f0e0102;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0e0103;
public static final int TextAppearance_AppCompat_Menu = 0x7f0e0104;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e0105;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0e0106;
public static final int TextAppearance_AppCompat_Small = 0x7f0e0107;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0e0108;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0e0109;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e010a;
public static final int TextAppearance_AppCompat_Title = 0x7f0e010b;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0e010c;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f0e010d;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e010e;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e010f;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e0110;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e0111;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e0112;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e0113;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0e0114;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e0115;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0e0116;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0e0117;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e0118;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e0119;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e011a;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e011b;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e011c;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e011d;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e011e;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0e011f;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e0120;
public static final int TextAppearance_Compat_Notification = 0x7f0e0121;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0e0122;
public static final int TextAppearance_Compat_Notification_Info_Media = 0x7f0e0123;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0e0124;
public static final int TextAppearance_Compat_Notification_Line2_Media = 0x7f0e0125;
public static final int TextAppearance_Compat_Notification_Media = 0x7f0e0126;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0e0127;
public static final int TextAppearance_Compat_Notification_Time_Media = 0x7f0e0128;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0e0129;
public static final int TextAppearance_Compat_Notification_Title_Media = 0x7f0e012a;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e0142;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e0143;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e0144;
public static final int ThemeOverlay_AppCompat = 0x7f0e017d;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0e017e;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f0e017f;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e0180;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0e0183;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0184;
public static final int ThemeOverlay_AppCompat_Light = 0x7f0e0185;
public static final int Theme_AppCompat = 0x7f0e0146;
public static final int Theme_AppCompat_CompactMenu = 0x7f0e0147;
public static final int Theme_AppCompat_DayNight = 0x7f0e0148;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0e0149;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0e014a;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0e014d;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0e014b;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0e014c;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0e014e;
public static final int Theme_AppCompat_Dialog = 0x7f0e014f;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0e0152;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f0e0150;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0e0151;
public static final int Theme_AppCompat_Light = 0x7f0e0153;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0e0154;
public static final int Theme_AppCompat_Light_Dialog = 0x7f0e0155;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e0158;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0e0156;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e0157;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0e0159;
public static final int Theme_AppCompat_NoActionBar = 0x7f0e015a;
public static final int Widget_AppCompat_ActionBar = 0x7f0e0192;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0e0193;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0e0194;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0e0195;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0e0196;
public static final int Widget_AppCompat_ActionButton = 0x7f0e0197;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0198;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0e0199;
public static final int Widget_AppCompat_ActionMode = 0x7f0e019a;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f0e019b;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0e019c;
public static final int Widget_AppCompat_Button = 0x7f0e019d;
public static final int Widget_AppCompat_ButtonBar = 0x7f0e01a3;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e01a4;
public static final int Widget_AppCompat_Button_Borderless = 0x7f0e019e;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0e019f;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e01a0;
public static final int Widget_AppCompat_Button_Colored = 0x7f0e01a1;
public static final int Widget_AppCompat_Button_Small = 0x7f0e01a2;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e01a5;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e01a6;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0e01a7;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0e01a8;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0e01a9;
public static final int Widget_AppCompat_EditText = 0x7f0e01aa;
public static final int Widget_AppCompat_ImageButton = 0x7f0e01ab;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f0e01ac;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e01ad;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0e01ae;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e01af;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0e01b0;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e01b1;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e01b2;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e01b3;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0e01b4;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f0e01b5;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0e01b6;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0e01b7;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0e01b8;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0e01b9;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0e01ba;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0e01bb;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0e01bc;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0e01bd;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0e01be;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e01bf;
public static final int Widget_AppCompat_Light_SearchView = 0x7f0e01c0;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0e01c1;
public static final int Widget_AppCompat_ListMenuView = 0x7f0e01c2;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f0e01c3;
public static final int Widget_AppCompat_ListView = 0x7f0e01c4;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f0e01c5;
public static final int Widget_AppCompat_ListView_Menu = 0x7f0e01c6;
public static final int Widget_AppCompat_PopupMenu = 0x7f0e01c7;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0e01c8;
public static final int Widget_AppCompat_PopupWindow = 0x7f0e01c9;
public static final int Widget_AppCompat_ProgressBar = 0x7f0e01ca;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e01cb;
public static final int Widget_AppCompat_RatingBar = 0x7f0e01cc;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0e01cd;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f0e01ce;
public static final int Widget_AppCompat_SearchView = 0x7f0e01cf;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0e01d0;
public static final int Widget_AppCompat_SeekBar = 0x7f0e01d1;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0e01d2;
public static final int Widget_AppCompat_Spinner = 0x7f0e01d3;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0e01d4;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0e01d5;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0e01d6;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0e01d8;
public static final int Widget_AppCompat_Toolbar = 0x7f0e01d9;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e01da;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0e01db;
public static final int Widget_Compat_NotificationActionText = 0x7f0e01dc;
public static final int com_facebook_activity_theme = 0x7f0e020c;
public static final int com_facebook_auth_dialog = 0x7f0e020d;
public static final int com_facebook_auth_dialog_instructions_textview = 0x7f0e020e;
public static final int com_facebook_button = 0x7f0e020f;
public static final int com_facebook_button_like = 0x7f0e0210;
public static final int com_facebook_button_send = 0x7f0e0211;
public static final int com_facebook_button_share = 0x7f0e0212;
}
public static final class styleable {
private styleable() {}
public static final int[] ActionBar = { 0x7f030034, 0x7f030036, 0x7f030037, 0x7f0300a2, 0x7f0300a3, 0x7f0300a4, 0x7f0300a5, 0x7f0300a6, 0x7f0300a7, 0x7f0300b5, 0x7f0300ba, 0x7f0300bb, 0x7f0300ce, 0x7f0300fb, 0x7f030100, 0x7f030105, 0x7f030106, 0x7f030108, 0x7f030112, 0x7f03011c, 0x7f030143, 0x7f03014f, 0x7f030163, 0x7f03016b, 0x7f03016c, 0x7f0301aa, 0x7f0301ad, 0x7f0301f3, 0x7f0301fd };
public static final int ActionBar_background = 0;
public static final int ActionBar_backgroundSplit = 1;
public static final int ActionBar_backgroundStacked = 2;
public static final int ActionBar_contentInsetEnd = 3;
public static final int ActionBar_contentInsetEndWithActions = 4;
public static final int ActionBar_contentInsetLeft = 5;
public static final int ActionBar_contentInsetRight = 6;
public static final int ActionBar_contentInsetStart = 7;
public static final int ActionBar_contentInsetStartWithNavigation = 8;
public static final int ActionBar_customNavigationLayout = 9;
public static final int ActionBar_displayOptions = 10;
public static final int ActionBar_divider = 11;
public static final int ActionBar_elevation = 12;
public static final int ActionBar_height = 13;
public static final int ActionBar_hideOnContentScroll = 14;
public static final int ActionBar_homeAsUpIndicator = 15;
public static final int ActionBar_homeLayout = 16;
public static final int ActionBar_icon = 17;
public static final int ActionBar_indeterminateProgressStyle = 18;
public static final int ActionBar_itemPadding = 19;
public static final int ActionBar_logo = 20;
public static final int ActionBar_navigationMode = 21;
public static final int ActionBar_popupTheme = 22;
public static final int ActionBar_progressBarPadding = 23;
public static final int ActionBar_progressBarStyle = 24;
public static final int ActionBar_subtitle = 25;
public static final int ActionBar_subtitleTextStyle = 26;
public static final int ActionBar_title = 27;
public static final int ActionBar_titleTextStyle = 28;
public static final int[] ActionBarLayout = { 0x10100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int[] ActionMenuItemView = { 0x101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMode = { 0x7f030034, 0x7f030036, 0x7f030083, 0x7f0300fb, 0x7f0301ad, 0x7f0301fd };
public static final int ActionMode_background = 0;
public static final int ActionMode_backgroundSplit = 1;
public static final int ActionMode_closeItemLayout = 2;
public static final int ActionMode_height = 3;
public static final int ActionMode_subtitleTextStyle = 4;
public static final int ActionMode_titleTextStyle = 5;
public static final int[] ActivityChooserView = { 0x7f0300d3, 0x7f030113 };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x10100f2, 0x7f030057, 0x7f030058, 0x7f030138, 0x7f030139, 0x7f03014c, 0x7f030192, 0x7f030193 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonIconDimen = 1;
public static final int AlertDialog_buttonPanelSideLayout = 2;
public static final int AlertDialog_listItemLayout = 3;
public static final int AlertDialog_listLayout = 4;
public static final int AlertDialog_multiChoiceItemLayout = 5;
public static final int AlertDialog_showTitle = 6;
public static final int AlertDialog_singleChoiceItemLayout = 7;
public static final int[] AppCompatImageView = { 0x1010119, 0x7f03019d, 0x7f0301f1, 0x7f0301f2 };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int AppCompatImageView_tint = 2;
public static final int AppCompatImageView_tintMode = 3;
public static final int[] AppCompatSeekBar = { 0x1010142, 0x7f0301ee, 0x7f0301ef, 0x7f0301f0 };
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = { 0x1010034, 0x101016d, 0x101016e, 0x101016f, 0x1010170, 0x1010392, 0x1010393 };
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int[] AppCompatTextView = { 0x1010034, 0x7f03002f, 0x7f030030, 0x7f030031, 0x7f030032, 0x7f030033, 0x7f0300bf, 0x7f0300c0, 0x7f0300c1, 0x7f0300c2, 0x7f0300c4, 0x7f0300c5, 0x7f0300c6, 0x7f0300c7, 0x7f0300ea, 0x7f0300ed, 0x7f0300f5, 0x7f030124, 0x7f030132, 0x7f0301cd, 0x7f0301e7 };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
public static final int AppCompatTextView_autoSizePresetSizes = 3;
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
public static final int AppCompatTextView_autoSizeTextType = 5;
public static final int AppCompatTextView_drawableBottomCompat = 6;
public static final int AppCompatTextView_drawableEndCompat = 7;
public static final int AppCompatTextView_drawableLeftCompat = 8;
public static final int AppCompatTextView_drawableRightCompat = 9;
public static final int AppCompatTextView_drawableStartCompat = 10;
public static final int AppCompatTextView_drawableTint = 11;
public static final int AppCompatTextView_drawableTintMode = 12;
public static final int AppCompatTextView_drawableTopCompat = 13;
public static final int AppCompatTextView_firstBaselineToTopHeight = 14;
public static final int AppCompatTextView_fontFamily = 15;
public static final int AppCompatTextView_fontVariationSettings = 16;
public static final int AppCompatTextView_lastBaselineToBottomHeight = 17;
public static final int AppCompatTextView_lineHeight = 18;
public static final int AppCompatTextView_textAllCaps = 19;
public static final int AppCompatTextView_textLocale = 20;
public static final int[] AppCompatTheme = { 0x1010057, 0x10100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030021, 0x7f030025, 0x7f030026, 0x7f030027, 0x7f030028, 0x7f03002e, 0x7f030042, 0x7f030050, 0x7f030051, 0x7f030052, 0x7f030053, 0x7f030054, 0x7f030059, 0x7f03005a, 0x7f030064, 0x7f030069, 0x7f030089, 0x7f03008a, 0x7f03008b, 0x7f03008c, 0x7f03008d, 0x7f03008e, 0x7f03008f, 0x7f030090, 0x7f030091, 0x7f030093, 0x7f0300ae, 0x7f0300b7, 0x7f0300b8, 0x7f0300b9, 0x7f0300bc, 0x7f0300be, 0x7f0300c9, 0x7f0300ca, 0x7f0300cb, 0x7f0300cc, 0x7f0300cd, 0x7f030105, 0x7f030111, 0x7f030134, 0x7f030135, 0x7f030136, 0x7f030137, 0x7f03013a, 0x7f03013b, 0x7f03013c, 0x7f03013d, 0x7f03013e, 0x7f03013f, 0x7f030140, 0x7f030141, 0x7f030142, 0x7f030158, 0x7f030159, 0x7f03015a, 0x7f030162, 0x7f030164, 0x7f03016f, 0x7f030170, 0x7f030171, 0x7f030172, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03019a, 0x7f03019b, 0x7f0301b1, 0x7f0301d8, 0x7f0301d9, 0x7f0301da, 0x7f0301db, 0x7f0301dd, 0x7f0301de, 0x7f0301df, 0x7f0301e0, 0x7f0301e3, 0x7f0301e4, 0x7f0301ff, 0x7f030200, 0x7f030201, 0x7f030202, 0x7f03020a, 0x7f03020c, 0x7f03020d, 0x7f03020e, 0x7f03020f, 0x7f030210, 0x7f030211, 0x7f030212, 0x7f030213, 0x7f030214, 0x7f030215 };
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_actionBarDivider = 2;
public static final int AppCompatTheme_actionBarItemBackground = 3;
public static final int AppCompatTheme_actionBarPopupTheme = 4;
public static final int AppCompatTheme_actionBarSize = 5;
public static final int AppCompatTheme_actionBarSplitStyle = 6;
public static final int AppCompatTheme_actionBarStyle = 7;
public static final int AppCompatTheme_actionBarTabBarStyle = 8;
public static final int AppCompatTheme_actionBarTabStyle = 9;
public static final int AppCompatTheme_actionBarTabTextStyle = 10;
public static final int AppCompatTheme_actionBarTheme = 11;
public static final int AppCompatTheme_actionBarWidgetTheme = 12;
public static final int AppCompatTheme_actionButtonStyle = 13;
public static final int AppCompatTheme_actionDropDownStyle = 14;
public static final int AppCompatTheme_actionMenuTextAppearance = 15;
public static final int AppCompatTheme_actionMenuTextColor = 16;
public static final int AppCompatTheme_actionModeBackground = 17;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 18;
public static final int AppCompatTheme_actionModeCloseDrawable = 19;
public static final int AppCompatTheme_actionModeCopyDrawable = 20;
public static final int AppCompatTheme_actionModeCutDrawable = 21;
public static final int AppCompatTheme_actionModeFindDrawable = 22;
public static final int AppCompatTheme_actionModePasteDrawable = 23;
public static final int AppCompatTheme_actionModePopupWindowStyle = 24;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 25;
public static final int AppCompatTheme_actionModeShareDrawable = 26;
public static final int AppCompatTheme_actionModeSplitBackground = 27;
public static final int AppCompatTheme_actionModeStyle = 28;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 29;
public static final int AppCompatTheme_actionOverflowButtonStyle = 30;
public static final int AppCompatTheme_actionOverflowMenuStyle = 31;
public static final int AppCompatTheme_activityChooserViewStyle = 32;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33;
public static final int AppCompatTheme_alertDialogCenterButtons = 34;
public static final int AppCompatTheme_alertDialogStyle = 35;
public static final int AppCompatTheme_alertDialogTheme = 36;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 37;
public static final int AppCompatTheme_borderlessButtonStyle = 38;
public static final int AppCompatTheme_buttonBarButtonStyle = 39;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
public static final int AppCompatTheme_buttonBarStyle = 43;
public static final int AppCompatTheme_buttonStyle = 44;
public static final int AppCompatTheme_buttonStyleSmall = 45;
public static final int AppCompatTheme_checkboxStyle = 46;
public static final int AppCompatTheme_checkedTextViewStyle = 47;
public static final int AppCompatTheme_colorAccent = 48;
public static final int AppCompatTheme_colorBackgroundFloating = 49;
public static final int AppCompatTheme_colorButtonNormal = 50;
public static final int AppCompatTheme_colorControlActivated = 51;
public static final int AppCompatTheme_colorControlHighlight = 52;
public static final int AppCompatTheme_colorControlNormal = 53;
public static final int AppCompatTheme_colorError = 54;
public static final int AppCompatTheme_colorPrimary = 55;
public static final int AppCompatTheme_colorPrimaryDark = 56;
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
public static final int AppCompatTheme_controlBackground = 58;
public static final int AppCompatTheme_dialogCornerRadius = 59;
public static final int AppCompatTheme_dialogPreferredPadding = 60;
public static final int AppCompatTheme_dialogTheme = 61;
public static final int AppCompatTheme_dividerHorizontal = 62;
public static final int AppCompatTheme_dividerVertical = 63;
public static final int AppCompatTheme_dropDownListViewStyle = 64;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65;
public static final int AppCompatTheme_editTextBackground = 66;
public static final int AppCompatTheme_editTextColor = 67;
public static final int AppCompatTheme_editTextStyle = 68;
public static final int AppCompatTheme_homeAsUpIndicator = 69;
public static final int AppCompatTheme_imageButtonStyle = 70;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71;
public static final int AppCompatTheme_listChoiceIndicatorMultipleAnimated = 72;
public static final int AppCompatTheme_listChoiceIndicatorSingleAnimated = 73;
public static final int AppCompatTheme_listDividerAlertDialog = 74;
public static final int AppCompatTheme_listMenuViewStyle = 75;
public static final int AppCompatTheme_listPopupWindowStyle = 76;
public static final int AppCompatTheme_listPreferredItemHeight = 77;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 78;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 79;
public static final int AppCompatTheme_listPreferredItemPaddingEnd = 80;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 81;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 82;
public static final int AppCompatTheme_listPreferredItemPaddingStart = 83;
public static final int AppCompatTheme_panelBackground = 84;
public static final int AppCompatTheme_panelMenuListTheme = 85;
public static final int AppCompatTheme_panelMenuListWidth = 86;
public static final int AppCompatTheme_popupMenuStyle = 87;
public static final int AppCompatTheme_popupWindowStyle = 88;
public static final int AppCompatTheme_radioButtonStyle = 89;
public static final int AppCompatTheme_ratingBarStyle = 90;
public static final int AppCompatTheme_ratingBarStyleIndicator = 91;
public static final int AppCompatTheme_ratingBarStyleSmall = 92;
public static final int AppCompatTheme_searchViewStyle = 93;
public static final int AppCompatTheme_seekBarStyle = 94;
public static final int AppCompatTheme_selectableItemBackground = 95;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 96;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 97;
public static final int AppCompatTheme_spinnerStyle = 98;
public static final int AppCompatTheme_switchStyle = 99;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 100;
public static final int AppCompatTheme_textAppearanceListItem = 101;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 102;
public static final int AppCompatTheme_textAppearanceListItemSmall = 103;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 104;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 105;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 106;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 107;
public static final int AppCompatTheme_textColorAlertDialogListItem = 108;
public static final int AppCompatTheme_textColorSearchUrl = 109;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 110;
public static final int AppCompatTheme_toolbarStyle = 111;
public static final int AppCompatTheme_tooltipForegroundColor = 112;
public static final int AppCompatTheme_tooltipFrameBackground = 113;
public static final int AppCompatTheme_viewInflaterClass = 114;
public static final int AppCompatTheme_windowActionBar = 115;
public static final int AppCompatTheme_windowActionBarOverlay = 116;
public static final int AppCompatTheme_windowActionModeOverlay = 117;
public static final int AppCompatTheme_windowFixedHeightMajor = 118;
public static final int AppCompatTheme_windowFixedHeightMinor = 119;
public static final int AppCompatTheme_windowFixedWidthMajor = 120;
public static final int AppCompatTheme_windowFixedWidthMinor = 121;
public static final int AppCompatTheme_windowMinWidthMajor = 122;
public static final int AppCompatTheme_windowMinWidthMinor = 123;
public static final int AppCompatTheme_windowNoTitle = 124;
public static final int[] ButtonBarLayout = { 0x7f030029 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CardView = { 0x101013f, 0x1010140, 0x7f03005d, 0x7f03005e, 0x7f03005f, 0x7f030060, 0x7f030061, 0x7f030062, 0x7f0300a8, 0x7f0300a9, 0x7f0300aa, 0x7f0300ab, 0x7f0300ac };
public static final int CardView_android_minWidth = 0;
public static final int CardView_android_minHeight = 1;
public static final int CardView_cardBackgroundColor = 2;
public static final int CardView_cardCornerRadius = 3;
public static final int CardView_cardElevation = 4;
public static final int CardView_cardMaxElevation = 5;
public static final int CardView_cardPreventCornerOverlap = 6;
public static final int CardView_cardUseCompatPadding = 7;
public static final int CardView_contentPadding = 8;
public static final int CardView_contentPaddingBottom = 9;
public static final int CardView_contentPaddingLeft = 10;
public static final int CardView_contentPaddingRight = 11;
public static final int CardView_contentPaddingTop = 12;
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f03002a };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] CompoundButton = { 0x1010107, 0x7f030055, 0x7f03005b, 0x7f03005c };
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonCompat = 1;
public static final int CompoundButton_buttonTint = 2;
public static final int CompoundButton_buttonTintMode = 3;
public static final int[] DrawerArrowToggle = { 0x7f03002c, 0x7f03002d, 0x7f03003a, 0x7f030088, 0x7f0300c3, 0x7f0300f8, 0x7f030199, 0x7f0301ea };
public static final int DrawerArrowToggle_arrowHeadLength = 0;
public static final int DrawerArrowToggle_arrowShaftLength = 1;
public static final int DrawerArrowToggle_barLength = 2;
public static final int DrawerArrowToggle_color = 3;
public static final int DrawerArrowToggle_drawableSize = 4;
public static final int DrawerArrowToggle_gapBetweenBars = 5;
public static final int DrawerArrowToggle_spinBars = 6;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] FontFamily = { 0x7f0300ee, 0x7f0300ef, 0x7f0300f0, 0x7f0300f1, 0x7f0300f2, 0x7f0300f3 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f0300ec, 0x7f0300f4, 0x7f0300f5, 0x7f0300f6, 0x7f030207 };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] LinearLayoutCompat = { 0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f0300bb, 0x7f0300bd, 0x7f03014a, 0x7f03018f };
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 6;
public static final int LinearLayoutCompat_measureWithLargestChild = 7;
public static final int LinearLayoutCompat_showDividers = 8;
public static final int[] LinearLayoutCompat_Layout = { 0x10100b3, 0x10100f4, 0x10100f5, 0x1010181 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int[] ListPopupWindow = { 0x10102ac, 0x10102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0 };
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_visible = 2;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int[] MenuItem = { 0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3, 0x10101e4, 0x10101e5, 0x101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f03002b, 0x7f0300a1, 0x7f03010e, 0x7f03010f, 0x7f030151, 0x7f03018e, 0x7f030203 };
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_actionLayout = 13;
public static final int MenuItem_actionProviderClass = 14;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_alphabeticModifiers = 16;
public static final int MenuItem_contentDescription = 17;
public static final int MenuItem_iconTint = 18;
public static final int MenuItem_iconTintMode = 19;
public static final int MenuItem_numericModifiers = 20;
public static final int MenuItem_showAsAction = 21;
public static final int MenuItem_tooltipText = 22;
public static final int[] MenuView = { 0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f030165, 0x7f0301a8 };
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] PopupWindow = { 0x1010176, 0x10102c9, 0x7f030152 };
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] PopupWindowBackgroundState = { 0x7f03019f };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] RecycleListView = { 0x7f030154, 0x7f030157 };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] SearchView = { 0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f03007c, 0x7f0300a0, 0x7f0300b6, 0x7f0300f9, 0x7f030110, 0x7f030125, 0x7f03016d, 0x7f03016e, 0x7f030188, 0x7f030189, 0x7f0301a9, 0x7f0301ae, 0x7f03020b };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_closeIcon = 4;
public static final int SearchView_commitIcon = 5;
public static final int SearchView_defaultQueryHint = 6;
public static final int SearchView_goIcon = 7;
public static final int SearchView_iconifiedByDefault = 8;
public static final int SearchView_layout = 9;
public static final int SearchView_queryBackground = 10;
public static final int SearchView_queryHint = 11;
public static final int SearchView_searchHintIcon = 12;
public static final int SearchView_searchIcon = 13;
public static final int SearchView_submitBackground = 14;
public static final int SearchView_suggestionRowLayout = 15;
public static final int SearchView_voiceIcon = 16;
public static final int[] Spinner = { 0x10100b2, 0x1010176, 0x101017b, 0x1010262, 0x7f030163 };
public static final int Spinner_android_entries = 0;
public static final int Spinner_android_popupBackground = 1;
public static final int Spinner_android_prompt = 2;
public static final int Spinner_android_dropDownWidth = 3;
public static final int Spinner_popupTheme = 4;
public static final int[] SwitchCompat = { 0x1010124, 0x1010125, 0x1010142, 0x7f030191, 0x7f03019c, 0x7f0301af, 0x7f0301b0, 0x7f0301b2, 0x7f0301eb, 0x7f0301ec, 0x7f0301ed, 0x7f030204, 0x7f030205, 0x7f030206 };
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 3;
public static final int SwitchCompat_splitTrack = 4;
public static final int SwitchCompat_switchMinWidth = 5;
public static final int SwitchCompat_switchPadding = 6;
public static final int SwitchCompat_switchTextAppearance = 7;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 9;
public static final int SwitchCompat_thumbTintMode = 10;
public static final int SwitchCompat_track = 11;
public static final int SwitchCompat_trackTint = 12;
public static final int SwitchCompat_trackTintMode = 13;
public static final int[] TextAppearance = { 0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x101009a, 0x101009b, 0x1010161, 0x1010162, 0x1010163, 0x1010164, 0x10103ac, 0x1010585, 0x7f0300ed, 0x7f0300f5, 0x7f0301cd, 0x7f0301e7 };
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textColorHint = 4;
public static final int TextAppearance_android_textColorLink = 5;
public static final int TextAppearance_android_shadowColor = 6;
public static final int TextAppearance_android_shadowDx = 7;
public static final int TextAppearance_android_shadowDy = 8;
public static final int TextAppearance_android_shadowRadius = 9;
public static final int TextAppearance_android_fontFamily = 10;
public static final int TextAppearance_android_textFontWeight = 11;
public static final int TextAppearance_fontFamily = 12;
public static final int TextAppearance_fontVariationSettings = 13;
public static final int TextAppearance_textAllCaps = 14;
public static final int TextAppearance_textLocale = 15;
public static final int[] Toolbar = { 0x10100af, 0x1010140, 0x7f030056, 0x7f030084, 0x7f030085, 0x7f0300a2, 0x7f0300a3, 0x7f0300a4, 0x7f0300a5, 0x7f0300a6, 0x7f0300a7, 0x7f030143, 0x7f030144, 0x7f030148, 0x7f03014b, 0x7f03014d, 0x7f03014e, 0x7f030163, 0x7f0301aa, 0x7f0301ab, 0x7f0301ac, 0x7f0301f3, 0x7f0301f5, 0x7f0301f6, 0x7f0301f7, 0x7f0301f8, 0x7f0301f9, 0x7f0301fa, 0x7f0301fb, 0x7f0301fc };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 2;
public static final int Toolbar_collapseContentDescription = 3;
public static final int Toolbar_collapseIcon = 4;
public static final int Toolbar_contentInsetEnd = 5;
public static final int Toolbar_contentInsetEndWithActions = 6;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 9;
public static final int Toolbar_contentInsetStartWithNavigation = 10;
public static final int Toolbar_logo = 11;
public static final int Toolbar_logoDescription = 12;
public static final int Toolbar_maxButtonHeight = 13;
public static final int Toolbar_menu = 14;
public static final int Toolbar_navigationContentDescription = 15;
public static final int Toolbar_navigationIcon = 16;
public static final int Toolbar_popupTheme = 17;
public static final int Toolbar_subtitle = 18;
public static final int Toolbar_subtitleTextAppearance = 19;
public static final int Toolbar_subtitleTextColor = 20;
public static final int Toolbar_title = 21;
public static final int Toolbar_titleMargin = 22;
public static final int Toolbar_titleMarginBottom = 23;
public static final int Toolbar_titleMarginEnd = 24;
public static final int Toolbar_titleMarginStart = 25;
public static final int Toolbar_titleMarginTop = 26;
public static final int Toolbar_titleMargins = 27;
public static final int Toolbar_titleTextAppearance = 28;
public static final int Toolbar_titleTextColor = 29;
public static final int[] View = { 0x1010000, 0x10100da, 0x7f030155, 0x7f030156, 0x7f0301e9 };
public static final int View_android_theme = 0;
public static final int View_android_focusable = 1;
public static final int View_paddingEnd = 2;
public static final int View_paddingStart = 3;
public static final int View_theme = 4;
public static final int[] ViewBackgroundHelper = { 0x10100d4, 0x7f030038, 0x7f030039 };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 0x10100d0, 0x10100f2, 0x10100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_layout = 1;
public static final int ViewStubCompat_android_inflatedId = 2;
public static final int[] com_facebook_like_view = { 0x7f030094, 0x7f030096, 0x7f030097, 0x7f03009b, 0x7f03009c, 0x7f03009e };
public static final int com_facebook_like_view_com_facebook_auxiliary_view_position = 0;
public static final int com_facebook_like_view_com_facebook_foreground_color = 1;
public static final int com_facebook_like_view_com_facebook_horizontal_alignment = 2;
public static final int com_facebook_like_view_com_facebook_object_id = 3;
public static final int com_facebook_like_view_com_facebook_object_type = 4;
public static final int com_facebook_like_view_com_facebook_style = 5;
}
}
| [
"[email protected]"
] | |
012b8c1c227ea0b98e6563674cb33cdb150fb926 | ab11d504865e338dc3ad6d8c31b844fa7292fec0 | /modules/escritor-sb/escritor-sb-api/src/main/java/escritorSb/service/persistence/EscritorUtil.java | 6b6da8b46b9f255fe9b567dd3c92cdd7fcce8f80 | [] | no_license | issagar/LiferayPruebas | a8c7007553b4e6f23e8316045c7c69c64b622076 | 239157dd52f93139b23533e05a631a57da46b975 | refs/heads/master | 2020-04-01T23:01:57.699819 | 2018-11-15T07:33:50 | 2018-11-15T07:33:50 | 153,737,916 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 47,706 | java | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package escritorSb.service.persistence;
import aQute.bnd.annotation.ProviderType;
import com.liferay.osgi.util.ServiceTrackerFactory;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;
import escritorSb.model.Escritor;
import org.osgi.util.tracker.ServiceTracker;
import java.util.List;
/**
* The persistence utility for the escritor service. This utility wraps {@link escritorSb.service.persistence.impl.EscritorPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author Brian Wing Shun Chan
* @see EscritorPersistence
* @see escritorSb.service.persistence.impl.EscritorPersistenceImpl
* @generated
*/
@ProviderType
public class EscritorUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel)
*/
public static void clearCache(Escritor escritor) {
getPersistence().clearCache(escritor);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List<Escritor> findWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List<Escritor> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end) {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List<Escritor> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence()
.findWithDynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel)
*/
public static Escritor update(Escritor escritor) {
return getPersistence().update(escritor);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static Escritor update(Escritor escritor,
ServiceContext serviceContext) {
return getPersistence().update(escritor, serviceContext);
}
/**
* Returns all the escritors where uuid = ?.
*
* @param uuid the uuid
* @return the matching escritors
*/
public static List<Escritor> findByUuid(java.lang.String uuid) {
return getPersistence().findByUuid(uuid);
}
/**
* Returns a range of all the escritors where uuid = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @return the range of matching escritors
*/
public static List<Escritor> findByUuid(java.lang.String uuid, int start,
int end) {
return getPersistence().findByUuid(uuid, start, end);
}
/**
* Returns an ordered range of all the escritors where uuid = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching escritors
*/
public static List<Escritor> findByUuid(java.lang.String uuid, int start,
int end, OrderByComparator<Escritor> orderByComparator) {
return getPersistence().findByUuid(uuid, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the escritors where uuid = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching escritors
*/
public static List<Escritor> findByUuid(java.lang.String uuid, int start,
int end, OrderByComparator<Escritor> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findByUuid(uuid, start, end, orderByComparator,
retrieveFromCache);
}
/**
* Returns the first escritor in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByUuid_First(java.lang.String uuid,
OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().findByUuid_First(uuid, orderByComparator);
}
/**
* Returns the first escritor in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByUuid_First(java.lang.String uuid,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence().fetchByUuid_First(uuid, orderByComparator);
}
/**
* Returns the last escritor in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByUuid_Last(java.lang.String uuid,
OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().findByUuid_Last(uuid, orderByComparator);
}
/**
* Returns the last escritor in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByUuid_Last(java.lang.String uuid,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
}
/**
* Returns the escritors before and after the current escritor in the ordered set where uuid = ?.
*
* @param escritorId the primary key of the current escritor
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next escritor
* @throws NoSuchEscritorException if a escritor with the primary key could not be found
*/
public static Escritor[] findByUuid_PrevAndNext(long escritorId,
java.lang.String uuid, OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence()
.findByUuid_PrevAndNext(escritorId, uuid, orderByComparator);
}
/**
* Removes all the escritors where uuid = ? from the database.
*
* @param uuid the uuid
*/
public static void removeByUuid(java.lang.String uuid) {
getPersistence().removeByUuid(uuid);
}
/**
* Returns the number of escritors where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching escritors
*/
public static int countByUuid(java.lang.String uuid) {
return getPersistence().countByUuid(uuid);
}
/**
* Returns the escritor where uuid = ? and groupId = ? or throws a {@link NoSuchEscritorException} if it could not be found.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByUUID_G(java.lang.String uuid, long groupId)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().findByUUID_G(uuid, groupId);
}
/**
* Returns the escritor where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByUUID_G(java.lang.String uuid, long groupId) {
return getPersistence().fetchByUUID_G(uuid, groupId);
}
/**
* Returns the escritor where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param uuid the uuid
* @param groupId the group ID
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByUUID_G(java.lang.String uuid, long groupId,
boolean retrieveFromCache) {
return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
}
/**
* Removes the escritor where uuid = ? and groupId = ? from the database.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the escritor that was removed
*/
public static Escritor removeByUUID_G(java.lang.String uuid, long groupId)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().removeByUUID_G(uuid, groupId);
}
/**
* Returns the number of escritors where uuid = ? and groupId = ?.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the number of matching escritors
*/
public static int countByUUID_G(java.lang.String uuid, long groupId) {
return getPersistence().countByUUID_G(uuid, groupId);
}
/**
* Returns all the escritors where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the matching escritors
*/
public static List<Escritor> findByUuid_C(java.lang.String uuid,
long companyId) {
return getPersistence().findByUuid_C(uuid, companyId);
}
/**
* Returns a range of all the escritors where uuid = ? and companyId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @return the range of matching escritors
*/
public static List<Escritor> findByUuid_C(java.lang.String uuid,
long companyId, int start, int end) {
return getPersistence().findByUuid_C(uuid, companyId, start, end);
}
/**
* Returns an ordered range of all the escritors where uuid = ? and companyId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching escritors
*/
public static List<Escritor> findByUuid_C(java.lang.String uuid,
long companyId, int start, int end,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence()
.findByUuid_C(uuid, companyId, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the escritors where uuid = ? and companyId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching escritors
*/
public static List<Escritor> findByUuid_C(java.lang.String uuid,
long companyId, int start, int end,
OrderByComparator<Escritor> orderByComparator, boolean retrieveFromCache) {
return getPersistence()
.findByUuid_C(uuid, companyId, start, end,
orderByComparator, retrieveFromCache);
}
/**
* Returns the first escritor in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByUuid_C_First(java.lang.String uuid,
long companyId, OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence()
.findByUuid_C_First(uuid, companyId, orderByComparator);
}
/**
* Returns the first escritor in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByUuid_C_First(java.lang.String uuid,
long companyId, OrderByComparator<Escritor> orderByComparator) {
return getPersistence()
.fetchByUuid_C_First(uuid, companyId, orderByComparator);
}
/**
* Returns the last escritor in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByUuid_C_Last(java.lang.String uuid,
long companyId, OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence()
.findByUuid_C_Last(uuid, companyId, orderByComparator);
}
/**
* Returns the last escritor in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByUuid_C_Last(java.lang.String uuid,
long companyId, OrderByComparator<Escritor> orderByComparator) {
return getPersistence()
.fetchByUuid_C_Last(uuid, companyId, orderByComparator);
}
/**
* Returns the escritors before and after the current escritor in the ordered set where uuid = ? and companyId = ?.
*
* @param escritorId the primary key of the current escritor
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next escritor
* @throws NoSuchEscritorException if a escritor with the primary key could not be found
*/
public static Escritor[] findByUuid_C_PrevAndNext(long escritorId,
java.lang.String uuid, long companyId,
OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence()
.findByUuid_C_PrevAndNext(escritorId, uuid, companyId,
orderByComparator);
}
/**
* Removes all the escritors where uuid = ? and companyId = ? from the database.
*
* @param uuid the uuid
* @param companyId the company ID
*/
public static void removeByUuid_C(java.lang.String uuid, long companyId) {
getPersistence().removeByUuid_C(uuid, companyId);
}
/**
* Returns the number of escritors where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the number of matching escritors
*/
public static int countByUuid_C(java.lang.String uuid, long companyId) {
return getPersistence().countByUuid_C(uuid, companyId);
}
/**
* Returns all the escritors where nombre = ?.
*
* @param nombre the nombre
* @return the matching escritors
*/
public static List<Escritor> findByNombre(java.lang.String nombre) {
return getPersistence().findByNombre(nombre);
}
/**
* Returns a range of all the escritors where nombre = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param nombre the nombre
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @return the range of matching escritors
*/
public static List<Escritor> findByNombre(java.lang.String nombre,
int start, int end) {
return getPersistence().findByNombre(nombre, start, end);
}
/**
* Returns an ordered range of all the escritors where nombre = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param nombre the nombre
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching escritors
*/
public static List<Escritor> findByNombre(java.lang.String nombre,
int start, int end, OrderByComparator<Escritor> orderByComparator) {
return getPersistence()
.findByNombre(nombre, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the escritors where nombre = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param nombre the nombre
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching escritors
*/
public static List<Escritor> findByNombre(java.lang.String nombre,
int start, int end, OrderByComparator<Escritor> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findByNombre(nombre, start, end, orderByComparator,
retrieveFromCache);
}
/**
* Returns the first escritor in the ordered set where nombre = ?.
*
* @param nombre the nombre
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByNombre_First(java.lang.String nombre,
OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().findByNombre_First(nombre, orderByComparator);
}
/**
* Returns the first escritor in the ordered set where nombre = ?.
*
* @param nombre the nombre
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByNombre_First(java.lang.String nombre,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence().fetchByNombre_First(nombre, orderByComparator);
}
/**
* Returns the last escritor in the ordered set where nombre = ?.
*
* @param nombre the nombre
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching escritor
* @throws NoSuchEscritorException if a matching escritor could not be found
*/
public static Escritor findByNombre_Last(java.lang.String nombre,
OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().findByNombre_Last(nombre, orderByComparator);
}
/**
* Returns the last escritor in the ordered set where nombre = ?.
*
* @param nombre the nombre
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching escritor, or <code>null</code> if a matching escritor could not be found
*/
public static Escritor fetchByNombre_Last(java.lang.String nombre,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence().fetchByNombre_Last(nombre, orderByComparator);
}
/**
* Returns the escritors before and after the current escritor in the ordered set where nombre = ?.
*
* @param escritorId the primary key of the current escritor
* @param nombre the nombre
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next escritor
* @throws NoSuchEscritorException if a escritor with the primary key could not be found
*/
public static Escritor[] findByNombre_PrevAndNext(long escritorId,
java.lang.String nombre, OrderByComparator<Escritor> orderByComparator)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence()
.findByNombre_PrevAndNext(escritorId, nombre,
orderByComparator);
}
/**
* Removes all the escritors where nombre = ? from the database.
*
* @param nombre the nombre
*/
public static void removeByNombre(java.lang.String nombre) {
getPersistence().removeByNombre(nombre);
}
/**
* Returns the number of escritors where nombre = ?.
*
* @param nombre the nombre
* @return the number of matching escritors
*/
public static int countByNombre(java.lang.String nombre) {
return getPersistence().countByNombre(nombre);
}
/**
* Caches the escritor in the entity cache if it is enabled.
*
* @param escritor the escritor
*/
public static void cacheResult(Escritor escritor) {
getPersistence().cacheResult(escritor);
}
/**
* Caches the escritors in the entity cache if it is enabled.
*
* @param escritors the escritors
*/
public static void cacheResult(List<Escritor> escritors) {
getPersistence().cacheResult(escritors);
}
/**
* Creates a new escritor with the primary key. Does not add the escritor to the database.
*
* @param escritorId the primary key for the new escritor
* @return the new escritor
*/
public static Escritor create(long escritorId) {
return getPersistence().create(escritorId);
}
/**
* Removes the escritor with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param escritorId the primary key of the escritor
* @return the escritor that was removed
* @throws NoSuchEscritorException if a escritor with the primary key could not be found
*/
public static Escritor remove(long escritorId)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().remove(escritorId);
}
public static Escritor updateImpl(Escritor escritor) {
return getPersistence().updateImpl(escritor);
}
/**
* Returns the escritor with the primary key or throws a {@link NoSuchEscritorException} if it could not be found.
*
* @param escritorId the primary key of the escritor
* @return the escritor
* @throws NoSuchEscritorException if a escritor with the primary key could not be found
*/
public static Escritor findByPrimaryKey(long escritorId)
throws escritorSb.exception.NoSuchEscritorException {
return getPersistence().findByPrimaryKey(escritorId);
}
/**
* Returns the escritor with the primary key or returns <code>null</code> if it could not be found.
*
* @param escritorId the primary key of the escritor
* @return the escritor, or <code>null</code> if a escritor with the primary key could not be found
*/
public static Escritor fetchByPrimaryKey(long escritorId) {
return getPersistence().fetchByPrimaryKey(escritorId);
}
public static java.util.Map<java.io.Serializable, Escritor> fetchByPrimaryKeys(
java.util.Set<java.io.Serializable> primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* Returns all the escritors.
*
* @return the escritors
*/
public static List<Escritor> findAll() {
return getPersistence().findAll();
}
/**
* Returns a range of all the escritors.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @return the range of escritors
*/
public static List<Escritor> findAll(int start, int end) {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the escritors.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of escritors
*/
public static List<Escritor> findAll(int start, int end,
OrderByComparator<Escritor> orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Returns an ordered range of all the escritors.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of escritors
*/
public static List<Escritor> findAll(int start, int end,
OrderByComparator<Escritor> orderByComparator, boolean retrieveFromCache) {
return getPersistence()
.findAll(start, end, orderByComparator, retrieveFromCache);
}
/**
* Removes all the escritors from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of escritors.
*
* @return the number of escritors
*/
public static int countAll() {
return getPersistence().countAll();
}
/**
* Returns the primaryKeys of libros associated with the escritor.
*
* @param pk the primary key of the escritor
* @return long[] of the primaryKeys of libros associated with the escritor
*/
public static long[] getLibroPrimaryKeys(long pk) {
return getPersistence().getLibroPrimaryKeys(pk);
}
/**
* Returns all the libros associated with the escritor.
*
* @param pk the primary key of the escritor
* @return the libros associated with the escritor
*/
public static List<escritorSb.model.Libro> getLibros(long pk) {
return getPersistence().getLibros(pk);
}
/**
* Returns a range of all the libros associated with the escritor.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param pk the primary key of the escritor
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @return the range of libros associated with the escritor
*/
public static List<escritorSb.model.Libro> getLibros(long pk, int start,
int end) {
return getPersistence().getLibros(pk, start, end);
}
/**
* Returns an ordered range of all the libros associated with the escritor.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link EscritorModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param pk the primary key of the escritor
* @param start the lower bound of the range of escritors
* @param end the upper bound of the range of escritors (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of libros associated with the escritor
*/
public static List<escritorSb.model.Libro> getLibros(long pk, int start,
int end, OrderByComparator<escritorSb.model.Libro> orderByComparator) {
return getPersistence().getLibros(pk, start, end, orderByComparator);
}
/**
* Returns the number of libros associated with the escritor.
*
* @param pk the primary key of the escritor
* @return the number of libros associated with the escritor
*/
public static int getLibrosSize(long pk) {
return getPersistence().getLibrosSize(pk);
}
/**
* Returns <code>true</code> if the libro is associated with the escritor.
*
* @param pk the primary key of the escritor
* @param libroPK the primary key of the libro
* @return <code>true</code> if the libro is associated with the escritor; <code>false</code> otherwise
*/
public static boolean containsLibro(long pk, long libroPK) {
return getPersistence().containsLibro(pk, libroPK);
}
/**
* Returns <code>true</code> if the escritor has any libros associated with it.
*
* @param pk the primary key of the escritor to check for associations with libros
* @return <code>true</code> if the escritor has any libros associated with it; <code>false</code> otherwise
*/
public static boolean containsLibros(long pk) {
return getPersistence().containsLibros(pk);
}
/**
* Adds an association between the escritor and the libro. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libroPK the primary key of the libro
*/
public static void addLibro(long pk, long libroPK) {
getPersistence().addLibro(pk, libroPK);
}
/**
* Adds an association between the escritor and the libro. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libro the libro
*/
public static void addLibro(long pk, escritorSb.model.Libro libro) {
getPersistence().addLibro(pk, libro);
}
/**
* Adds an association between the escritor and the libros. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libroPKs the primary keys of the libros
*/
public static void addLibros(long pk, long[] libroPKs) {
getPersistence().addLibros(pk, libroPKs);
}
/**
* Adds an association between the escritor and the libros. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libros the libros
*/
public static void addLibros(long pk, List<escritorSb.model.Libro> libros) {
getPersistence().addLibros(pk, libros);
}
/**
* Clears all associations between the escritor and its libros. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor to clear the associated libros from
*/
public static void clearLibros(long pk) {
getPersistence().clearLibros(pk);
}
/**
* Removes the association between the escritor and the libro. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libroPK the primary key of the libro
*/
public static void removeLibro(long pk, long libroPK) {
getPersistence().removeLibro(pk, libroPK);
}
/**
* Removes the association between the escritor and the libro. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libro the libro
*/
public static void removeLibro(long pk, escritorSb.model.Libro libro) {
getPersistence().removeLibro(pk, libro);
}
/**
* Removes the association between the escritor and the libros. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libroPKs the primary keys of the libros
*/
public static void removeLibros(long pk, long[] libroPKs) {
getPersistence().removeLibros(pk, libroPKs);
}
/**
* Removes the association between the escritor and the libros. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libros the libros
*/
public static void removeLibros(long pk, List<escritorSb.model.Libro> libros) {
getPersistence().removeLibros(pk, libros);
}
/**
* Sets the libros associated with the escritor, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libroPKs the primary keys of the libros to be associated with the escritor
*/
public static void setLibros(long pk, long[] libroPKs) {
getPersistence().setLibros(pk, libroPKs);
}
/**
* Sets the libros associated with the escritor, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the escritor
* @param libros the libros to be associated with the escritor
*/
public static void setLibros(long pk, List<escritorSb.model.Libro> libros) {
getPersistence().setLibros(pk, libros);
}
public static java.util.Set<java.lang.String> getBadColumnNames() {
return getPersistence().getBadColumnNames();
}
public static EscritorPersistence getPersistence() {
return _serviceTracker.getService();
}
private static ServiceTracker<EscritorPersistence, EscritorPersistence> _serviceTracker =
ServiceTrackerFactory.open(EscritorPersistence.class);
} | [
"[email protected]"
] | |
52f37444c426b8232305552b9ed58f19b65582f3 | d04ecfacb4bcdea0559663a10fb5103194f8a2a9 | /app/src/main/java/com/coolweather/android/db/Province.java | 745b81626d3483ab4c5d1f3f719b0c060dd98702 | [
"Apache-2.0"
] | permissive | chenzhenmiao/coolweather | cc930b0ba1290dd787988bcea42a6317c264d053 | 02b3116e478175036b6d95678b38273dfb1e68ae | refs/heads/master | 2021-01-20T00:28:47.941272 | 2017-04-28T16:38:47 | 2017-04-28T16:38:47 | 89,137,867 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 707 | java | package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by vhj on 2017/4/23.
*/
public class Province extends DataSupport {
private int id;
private String provinceName;
private int provinceCode;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getProvinceName() {
return provinceName;
}
public void setProvinceName(String provinceName) {
this.provinceName = provinceName;
}
public int getProvinceCode() {
return provinceCode;
}
public void setProvinceCode(int provinceCode) {
this.provinceCode = provinceCode;
}
}
| [
"[email protected]"
] | |
d02d75bfd7864a00b75d8fba81b6f1864dd7e7ca | b4c7dc30cb0e006b9e468c9f2b43619c2d9d476f | /src/main/java/com/yangyang/seckill/redis/RedisConfig.java | e7af9cee86faad10c14b4d07dade772d6fb2750c | [] | no_license | fanyh123/seckill-demo | 72a2ecc8ee80f4896f611f71581e26be2697db1b | d70b4e02b54358d833470d7244a0efac66fa9fe1 | refs/heads/master | 2020-03-22T01:42:28.464360 | 2018-07-01T11:44:37 | 2018-07-01T11:44:37 | 139,324,393 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,573 | java | package com.yangyang.seckill.redis;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix="redis")
public class RedisConfig {
private String host;
private int port;
private int timeout;
private String password;
private int poolMaxTotal;
private int poolMaxIdel;
private int poolMaxWait;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public int getTimeout() {
return timeout;
}
public void setTimeout(int timeout) {
this.timeout = timeout;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getPoolMaxTotal() {
return poolMaxTotal;
}
public void setPoolMaxTotal(int poolMaxTotal) {
this.poolMaxTotal = poolMaxTotal;
}
public int getPoolMaxIdel() {
return poolMaxIdel;
}
public void setPoolMaxIdel(int poolMaxIdel) {
this.poolMaxIdel = poolMaxIdel;
}
public int getPoolMaxWait() {
return poolMaxWait;
}
public void setPoolMaxWait(int poolMaxWait) {
this.poolMaxWait = poolMaxWait;
}
}
| [
"[email protected]"
] | |
1143aaafbeb994bb47a9427cf330682ffe5ca2f2 | d155efd39e6b4ea99543e5cc6da1327f211f1590 | /web-serviceClient/src/wsns/ExameService.java | 9eb32e16126e0bbd73f8220147a26c23276007d9 | [] | no_license | adriianareis/age | a93f4a7cae9318c92e11ed2958eb1d36b013a210 | 0822c4a116bba36c3bb0fccc1bf6990cc53c74f6 | refs/heads/master | 2020-05-30T19:17:37.605782 | 2019-06-05T03:35:30 | 2019-06-05T03:35:30 | 189,920,400 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 463 | java | /**
* ExameService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package wsns;
public interface ExameService extends java.rmi.Remote {
public int deleteExames(int[] idsExames) throws java.rmi.RemoteException;
public int mergeExames(wsns.Exame[] exames) throws java.rmi.RemoteException;
public wsns.Exame[] getExames() throws java.rmi.RemoteException;
}
| [
"[email protected]"
] | |
356a8c121510f505eb002de5678310967b4aeab2 | 0602f1d2246ae66287df55e991d03854e7ca1461 | /app/src/main/java/com/nick/documents/tile/DropDownTileView.java | d9fb04bfef0660089abffe6a8e1f634d1250cff3 | [
"Apache-2.0"
] | permissive | NickAndroid/Documents | 02777606c82a71349c724630d2c3c8d528e08983 | 1341a244c7cd6e75ed6a324bc14adf8df4610e07 | refs/heads/master | 2021-01-10T15:52:47.689251 | 2015-12-18T16:18:36 | 2015-12-18T16:18:36 | 48,243,337 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,267 | java | package com.nick.documents.tile;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.RelativeLayout;
import android.widget.Spinner;
import com.nick.documents.R;
import java.util.ArrayList;
import java.util.List;
public class DropDownTileView extends TileView {
Spinner mSpinner;
public DropDownTileView(Context context) {
super(context);
}
public DropDownTileView(Context context, AttributeSet attrs) {
super(context, attrs);
}
private void initDropdown() {
mSpinner = new Spinner(getContext());
mSpinner.setVisibility(INVISIBLE);
mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View v, int position, long id) {
onDropdownItemSelected(position, true);
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
// noop
}
});
}
public void onDropdownItemSelected(int position, boolean fromSpinner) {
}
@Override
protected void onBindActionView(RelativeLayout container) {
initDropdown();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(getContext(),
android.R.layout.simple_spinner_item, onCreateDropDownList());
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mSpinner.setAdapter(adapter);
int dropDownWidth = getResources().getDimensionPixelSize(R.dimen.drop_down_width);
container.addView(mSpinner, generateCenterParams(dropDownWidth,
ViewGroup.LayoutParams.WRAP_CONTENT));
}
protected List<String> onCreateDropDownList() {
List<String> list = new ArrayList<String>();
list.add("Android");
list.add("Blackberry");
list.add("Cherry");
list.add("Duck");
list.add("Female");
return list;
}
@Override
public void onClick(View v) {
super.onClick(v);
mSpinner.performClick();
}
}
| [
"[email protected]"
] | |
3af28e48a1e0ef755b0e9d38c70378133c9d178d | a60fc6d892c061cb75d2cb1e75caf4ae7ffc4b04 | /nn/java/bp/DataUtil2.java | 8ec0f29a598598126abb1d74ce8425c372340c54 | [] | no_license | crystal0913/AI | d011552abf9484cb11bf35730b2a16ba7ab0e41f | b3fcc3986b1ca34e7d2d1b299366c7c9cbbc4b17 | refs/heads/master | 2020-03-18T08:51:19.904127 | 2019-03-14T09:56:44 | 2019-03-14T09:56:44 | 134,531,412 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,751 | java | package com.mlearn.bp;
import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import com.tsinghuabigdata.common.utils.FileUtils;
import com.tsinghuabigdata.common.utils.ListUtils;
import javax.annotation.Nullable;
import java.io.File;
import java.util.List;
public class DataUtil2 {
public static List<DataNode> getDatas(File file) {
List<String> strings = FileUtils.readFileToList(file);
List<DataNode> datas = Lists.newArrayListWithCapacity(strings.size());
for (String str : strings) {
String[] sp = str.split("_");
List<Float> floats = ListUtils.map(Splitter.on(",").split(sp[0]), new Function<String, Float>() {
@Nullable
public Float apply(String s) {
return Float.parseFloat(s)/50;
}
});
datas.add(new DataNode(floats, Integer.parseInt(sp[1])));
}
return datas;
}
public static List<DataNode> getDatasQType(File file) {
List<String> strings = FileUtils.readFileToList(file);
List<DataNode> datas = Lists.newArrayListWithCapacity(strings.size());
for (String str : strings) {
if (str.startsWith("###"))
continue;
String s = str.substring(2, str.length() - 1);
List<Float> floats = ListUtils.map(Splitter.on(",").split(s), new Function<String, Float>() {
@Nullable
public Float apply(String s) {
return Float.parseFloat(s);
}
});
datas.add(new DataNode(floats, Integer.parseInt(str.substring(0,1))));
}
return datas;
}
}
| [
"[email protected]"
] | |
a90c9f7e38ed01b9eb9c29fb3fed1f85ea198068 | 6d3c233072042d60b4ef318eb2c6a914c32eabb8 | /Beans/RGFaune/RgClassificationFaune.java | 9cae18dcdd511f88d60b6e4251726fc1cc0e34c0 | [] | no_license | sahnounbesma/BioDevAppFaune | bf3020fb4e2d8538783e9cfb4ea730e7c78f864e | a38b948ee379199678896e53bc5ef1e0b4b9eef3 | refs/heads/master | 2020-07-31T01:02:53.225773 | 2019-09-23T18:52:33 | 2019-09-23T18:52:33 | 210,426,935 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,040 | java | package RGFaune;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity (name= "RgClassificationFaune")
@Table (name="\"RG\".\"RgClassificationFaune\"")
@NamedQuery(name="RgClassificationFaune.find", query="SELECT u FROM RgClassificationFaune u WHERE u.num_niveau = :num_niveau AND u.parent_id = :parent_id")
public class RgClassificationFaune implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Integer id;
@Column
private String nom;
@Column
private String nom_niveau;
@Column
private String description;
@Column
private String image;
@Column
private Integer num_niveau;
@Column
private Integer parent_id;
@Column
private Integer nb_especes;
public RgClassificationFaune() {
}
public Integer getId() {
return id;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getNom_niveau() {
return nom_niveau;
}
public void setNom_niveau(String nom_niveau) {
this.nom_niveau = nom_niveau;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public Integer getNum_niveau() {
return num_niveau;
}
public void setNum_niveau(Integer num_niveau) {
this.num_niveau = num_niveau;
}
public Integer getParent_id() {
return parent_id;
}
public void setParent_id(Integer parent_id) {
this.parent_id = parent_id;
}
public Integer getNb_especes() {
return nb_especes;
}
public void setNb_especes(Integer nb_especes) {
this.nb_especes = nb_especes;
}
}
| [
"[email protected]"
] | |
667a0d1629237df34abc30ab1989cbd0ed2c5f78 | 027e713d403e139f2a4015590bbcbe556ac19728 | /src/br/org/cesar/jedje/javame/JEdjeCanvas.java | c010bd115cd54279e825d42a6e15b91f68d61c85 | [] | no_license | dpsm/jedje | c64d80be9dded9c22e5d7b752c5b107ba7e03a6a | aa747589650435e5b4812dabbbef8b6fa3383ac6 | refs/heads/master | 2018-12-29T19:33:25.934144 | 2009-02-02T14:21:09 | 2009-02-02T14:21:09 | 97,355 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 10,481 | java | /**
* Copyright (c) 2008 David Marques.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Marques - Adding EPL headers.
*/
package br.org.cesar.jedje.javame;
import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import br.org.cesar.jedje.JEdjeException;
import br.org.cesar.jedje.compiler.grammar.JEdjeCollection;
import br.org.cesar.jedje.compiler.grammar.JEdjeColor;
import br.org.cesar.jedje.compiler.grammar.JEdjeDescription;
import br.org.cesar.jedje.compiler.grammar.JEdjeDescriptionImage;
import br.org.cesar.jedje.compiler.grammar.JEdjeDescriptionText;
import br.org.cesar.jedje.compiler.grammar.JEdjeGroup;
import br.org.cesar.jedje.compiler.grammar.JEdjeImage;
import br.org.cesar.jedje.compiler.grammar.JEdjePart;
import br.org.cesar.jedje.compiler.grammar.JEdjeRel;
import br.org.cesar.jedje.compiler.grammar.JEdjeTuple;
import br.org.cesar.jedje.compiler.parser.JEdjeParser;
import br.org.cesar.jedje.compiler.parser.JEdjeScanner;
/**
* JEdjeCanvas class is an implementation of an Edje surface for
* Java ME applications.
* <br>
* It will draw the specified group from the specified collection.
*
* @author <a href="[email protected]">David Marques</a>
*/
public class JEdjeCanvas extends Canvas {
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
private JEdjeCollection collection;
private JEdjeGroup group;
private Vector stack;
// Static --------------------------------------------------------
// Constructors --------------------------------------------------
public JEdjeCanvas(String _edje, String _group) throws JEdjeException {
InputStream stream = this.getClass().getResourceAsStream(_edje);
if (stream == null) {
throw new JEdjeException("Unable to load " + _edje + " edje file.");
}
try {
JEdjeScanner scanner = new JEdjeScanner(stream);
JEdjeParser parser = new JEdjeParser(scanner);
this.collection = parser.parseDocument();
this.loadEdjeGroup(_group);
} catch (IOException e) {
throw new JEdjeException("Unable to parse " + _edje + " edje file.");
}
this.stack = new Vector();
}
// Public --------------------------------------------------------
/**
* @return the collection
*/
public JEdjeCollection getDataCollection() {
return collection;
}
// X implementation ----------------------------------------------
// Y overrides ---------------------------------------------------
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
protected final void paint(Graphics g) {
JEdjePart[] parts = this.group.getParts();
int color = g.getColor();
Font font = g.getFont();
this.stack.removeAllElements();
for (int i = 0; i < parts.length; i++) {
JEdjeCanvasObject object = new JEdjeCanvasObject(parts[i]);
this.drawPart(g, object);
this.stack.addElement(object);
g.setColor(color);
g.setFont(font);
}
this.paintImpl(g);
}
protected void paintImpl(Graphics g) {
}
/* (non-Javadoc)
* @see javax.microedition.lcdui.Canvas#pointerPressed(int, int)
*/
protected void pointerPressed(int x, int y) {
JEdjeCanvasObject obj = getSource(x, y);
if (obj != null) {
this.pointerPressedEvent(obj.getPart(), x - obj.getX(), y - obj.getY());
} else {
super.pointerPressed(x, y);
}
}
/**
* Called when a pointer press event occurs on the part.
*
* @param part source part.
* @param x relative to part position.
* @param y relative to part position.
*/
protected void pointerPressedEvent(JEdjePart part, int x, int y) {
}
/* (non-Javadoc)
* @see javax.microedition.lcdui.Canvas#pointerReleased(int, int)
*/
protected void pointerReleased(int x, int y) {
JEdjeCanvasObject obj = getSource(x, y);
if (obj != null) {
this.pointerReleasedEvent(obj.getPart(), x - obj.getX(), y - obj.getY());
} else {
super.pointerReleased(x, y);
}
}
/**
* Called when a pointer release event occurs on the part.
*
* @param part source part.
* @param x relative to part position.
* @param y relative to part position.
*/
protected void pointerReleasedEvent(JEdjePart part, int x, int y) {
}
// Private -------------------------------------------------------
private JEdjeCanvasObject getSource(int x, int y) {
JEdjeCanvasObject target = null;
int size = this.stack.size();
for (int i = size - 1; i >= 0x00; i--) {
JEdjeCanvasObject obj = (JEdjeCanvasObject) this.stack.elementAt(i);
if (x >= obj.getX() && x <= obj.getX() + obj.getWidth()&&
y >= obj.getY() && y <= obj.getY() + obj.getHeight()) {
target = obj;
break;
}
}
return target;
}
private void loadEdjeGroup(String name) throws JEdjeException {
JEdjeGroup[] groups = this.collection.getGroups();
for (int i = 0; i < groups.length; i++) {
JEdjeGroup group = groups[i];
if (group.getName().equals(name)) {
this.group = group;
break;
}
}
if (this.group == null) {
throw new JEdjeException("Unable to load group " + name + ".");
}
}
private void drawPart(Graphics g, JEdjeCanvasObject object) {
JEdjePart part = object.getPart();
JEdjeDescription current = part.getCurrent();
if (current != null && current.isVisible()) {
JEdjeColor color = current.getColor();
if (color != null) {
g.setColor(color.getR(), color.getG(), color.getB());
}
JEdjeRel rel1 = current.getRel1();
JEdjeRel rel2 = current.getRel2();
switch (part.getType()) {
case JEdjePart.IMAGE:
drawImage(g, object, current, rel1, current.getAlign());
break;
case JEdjePart.RECT:
drawRect(g, object, current, rel1, rel2, current.getAlign());
break;
case JEdjePart.TEXT:
drawText(g, object, current, rel1, current.getAlign());
break;
}
}
}
private void drawText(Graphics g, JEdjeCanvasObject object, JEdjeDescription current, JEdjeRel rel1, JEdjeTuple align) {
JEdjeDescriptionText text = current.getText();
if (text == null) {
return;
}
Font font = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_PLAIN, Font.SIZE_SMALL);
int size = text.getSize();
int[] sizes = {Font.SIZE_MEDIUM, Font.SIZE_LARGE};
for (int i = 0; i < sizes.length; i++) {
Font f = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_PLAIN, sizes[i]);
if (f.getSize() > size) {
break;
} else {
font = f;
}
}
JEdjeColor color = current.getColor();
if (color != null) {
g.setColor(color.getR(), color.getG(), color.getB());
}
if (font != null) {
g.setFont(font);
}
int[] coords1 = parseRel(rel1);
if (align != null) {
float hAlign = align.getHorizontal();
float vAlign = align.getVetical();
coords1[0] -= font.stringWidth(text.getValue()) * hAlign;
coords1[1] -= font.getSize() * vAlign;
}
object.setX(coords1[0]);
object.setY(coords1[1]);
object.setWidth(font.stringWidth(text.getValue()));
object.setHeight(font.getSize());
g.drawString(text.getValue(), object.getX(), object.getY(), 0x00);
}
private void drawImage(Graphics g, JEdjeCanvasObject object, JEdjeDescription current, JEdjeRel rel1, JEdjeTuple align) {
JEdjeDescriptionImage image = current.getImage();
if (image == null) {
return;
}
JEdjeImage normal = image.getNormal();
if (normal != null) {
try {
Image img = Image.createImage(normal.getName());
if (rel1 == null) {
rel1 = new JEdjeRel(new JEdjeTuple(0, 0), new JEdjeTuple(0, 0), null, null, null);
}
int[] coords1 = this.parseRel(rel1);
if (align != null) {
float hAlign = align.getHorizontal();
float vAlign = align.getVetical();
coords1[0] -= img.getWidth() * hAlign;
coords1[1] -= img.getHeight() * vAlign;
}
object.setX(coords1[0]);
object.setY(coords1[1]);
object.setWidth(img.getWidth());
object.setHeight(img.getHeight());
g.drawImage(img, object.getX(), object.getY(), 0);
} catch (IOException e) {
e.printStackTrace();
}
}
}
private void drawRect(Graphics g, JEdjeCanvasObject object, JEdjeDescription current, JEdjeRel rel1, JEdjeRel rel2, JEdjeTuple align) {
if (rel1 == null) {
rel1 = new JEdjeRel(new JEdjeTuple(0, 0), new JEdjeTuple(0, 0), null, null, null);
}
if (rel2 == null) {
rel2 = new JEdjeRel(new JEdjeTuple(1, 1), new JEdjeTuple(0, 0), null, null, null);
}
int[] coords1 = parseRel(rel1);
int[] coords2 = parseRel(rel2);
if (align != null) {
float hAlign = align.getHorizontal();
float vAlign = align.getVetical();
coords1[0] -= (coords2[0] - coords1[0]) * hAlign;
coords2[0] -= (coords2[0] - coords1[0]) * hAlign;
coords1[1] -= (coords2[1] - coords1[1]) * vAlign;
coords2[1] -= (coords2[1] - coords1[1]) * vAlign;
}
object.setX(coords1[0]);
object.setY(coords1[1]);
object.setWidth(coords2[0] - coords1[0]);
object.setHeight(coords2[1] - coords1[1]);
g.fillRect(object.getX(), object.getY(), object.getWidth(), object.getHeight());
}
private int[] parseRel(JEdjeRel rel) {
int[] coords = new int[2];
JEdjeTuple relative = rel.getRelative();
JEdjeTuple offset = rel.getOffset();
if (rel.getTo() == null) {
coords[0] = (int) Math.floor(this.getWidth() * relative.getHorizontal() + offset.getHorizontal());
coords[1] = (int) Math.floor(this.getHeight() * relative.getVetical() + offset.getVetical());
} else {
JEdjeDescription description = rel.getTo().getCurrent();
if (description != null) {
int[] pCoords1 = parseRel(description.getRel1());
int[] pCoords2 = parseRel(description.getRel2());
int wParent = pCoords2[0] - pCoords1[0];
int hParent = pCoords2[1] - pCoords1[1];
coords[0] = pCoords1[0] + (int) Math.floor(wParent * relative.getHorizontal() + offset.getHorizontal());
coords[1] = pCoords1[1] + (int) Math.floor(hParent * relative.getVetical() + offset.getVetical());
}
}
return coords;
}
}
| [
"[email protected]"
] | |
c8d2868712e8aa9caa151ef405a2a0d8a35e8ccd | 206fd87f791eec84a1ccd64f16e0df2c8fa10dd2 | /rpc-netty/src/main/java/com/hireek/protocol/RequestHolder.java | 6a9e1819fe08e97fb5c0ed5dbebb030e69631eea | [
"Apache-2.0"
] | permissive | Hireek/rpc | 2be160fafebb394ceeb8192880e3fcf08cf88dcf | 3934f4fb5ad016332887aadad1797af6b6245f10 | refs/heads/master | 2023-09-06T02:44:07.532117 | 2021-11-18T07:01:25 | 2021-11-18T07:01:25 | 428,615,094 | 0 | 0 | null | 2021-11-18T07:01:26 | 2021-11-16T10:44:04 | Java | UTF-8 | Java | false | false | 407 | java | package com.hireek.protocol;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
/**
* 描述
*
* @Author Hireek
* @Date: 2021/11/16 23:19
*/
public class RequestHolder {
public static final AtomicLong REQUEST_ID = new AtomicLong();
public static final Map<Long, RpcFuture<Response>> REQUEST_MAP = new ConcurrentHashMap<>();
}
| [
"[email protected]"
] | |
7f49e8238f476691b848d922f3e809c9a918fd86 | 2e8d3c4392de44d7648408eed774599ca8a97fd7 | /project/src/main/java/com/spring/CustomersRepository.java | 121892d7e99cf400415c16c87583a5f0470382af | [] | no_license | Susmitha-56/Training | 7e4ae2647332f4c1aaa7c14414ae9eb31edd9565 | eb68ec993cbe5e85d89c3f190fc2a16e7960f20f | refs/heads/master | 2022-12-03T01:16:23.854043 | 2019-08-28T10:19:14 | 2019-08-28T10:19:14 | 204,844,119 | 0 | 0 | null | 2022-11-24T08:34:37 | 2019-08-28T03:54:46 | JavaScript | UTF-8 | Java | false | false | 204 | java | package com.spring;
import org.springframework.data.jpa.repository.JpaRepository;
import com.spring.entity.Customers;
public interface CustomersRepository extends JpaRepository<Customers, String> {
}
| [
"[email protected]"
] | |
fe0193743ab584c47ae63709f563d7454467709c | 56c4da1496a63686637a739bac7acc83cd8c1964 | /app/src/androidTest/java/com/orogersilva/facedetection/ExampleInstrumentedTest.java | fafc5207c49d86ee1c88e9540a6f78e5128e4db6 | [] | no_license | orogersilva/face-detection-android | ce200087df3891e9d7dee12b84be5c9fa8a9d880 | 4443252dc4d4f88dbb9da1eb441c15a8b6ce1a99 | refs/heads/master | 2020-01-23T22:05:25.481461 | 2016-11-23T21:58:26 | 2016-11-23T21:58:26 | 74,613,556 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 762 | java | package com.orogersilva.facedetection;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.orogersilva.facedetection", appContext.getPackageName());
}
}
| [
"[email protected]"
] | |
83365fca165b6e6f28a7e5a29d92b4d680ab8c40 | 9d0517091fe2313c40bcc88a7c82218030d2075c | /providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountApi.java | 05f01e0e8c2649b823fad9089d6c83579690d72e | [
"Apache-2.0"
] | permissive | nucoupons/Mobile_Applications | 5c63c8d97f48e1051049c5c3b183bbbaae1fa6e6 | 62239dd0f17066c12a86d10d26bef350e6e9bd43 | refs/heads/master | 2020-12-04T11:49:53.121041 | 2020-01-04T12:00:04 | 2020-01-04T12:00:04 | 231,754,011 | 0 | 0 | Apache-2.0 | 2020-01-04T12:02:30 | 2020-01-04T11:46:54 | Java | UTF-8 | Java | false | false | 2,782 | 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.jclouds.softlayer.features;
import java.util.Set;
import javax.inject.Named;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
import org.jclouds.http.filters.BasicAuthentication;
import org.jclouds.rest.annotations.Fallback;
import org.jclouds.rest.annotations.QueryParams;
import org.jclouds.rest.annotations.RequestFilters;
import org.jclouds.softlayer.domain.VirtualGuest;
import org.jclouds.softlayer.domain.VirtualGuestBlockDeviceTemplateGroup;
/**
* Provides access to Account via their REST API.
* <p/>
*
* @see <a href="http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest_Block_Device_Template_Group" />
*/
@RequestFilters(BasicAuthentication.class)
@Path("/v{jclouds.api-version}")
@Consumes(MediaType.APPLICATION_JSON)
public interface AccountApi {
String GUEST_MASK = "children.blockDevices.diskImage.softwareReferences.softwareDescription";
String LIST_GUEST_MASK = "powerState;operatingSystem.passwords;datacenter;billingItem;blockDevices" +
".diskImage;tagReferences";
/**
* @return an account's associated virtual guest objects.
*/
@Named("Account:listVirtualGuest")
@GET
@Path("/SoftLayer_Account/VirtualGuests")
@QueryParams(keys = "objectMask", values = LIST_GUEST_MASK)
@Fallback(EmptySetOnNotFoundOr404.class)
Set<VirtualGuest> listVirtualGuests();
/**
* @return retrieve block device groups for an account (private images)
* @see <a href="http://sldn.softlayer.com/reference/services/SoftLayer_Account/getBlockDeviceTemplateGroups/" />
*/
@Named("Account:getBlockDeviceTemplateGroups")
@GET
@Path("/SoftLayer_Account/getBlockDeviceTemplateGroups")
@QueryParams(keys = "objectMask", values = GUEST_MASK)
@Fallback(EmptySetOnNotFoundOr404.class)
Set<VirtualGuestBlockDeviceTemplateGroup> getBlockDeviceTemplateGroups();
}
| [
"Administrator@fdp"
] | Administrator@fdp |
c5c657ea41e9153d7fed289aa56346db9938a0e5 | 324b972f38da040b2a13fedeced27242f1aa9b49 | /lcode/src/lcode/AddDigits.java | 1ec3ad0a504497f6f2be9e43912772806f9be7fc | [] | no_license | smeng-study/leetcode | 7ec5e8c1a3d203475ae53cf60eece8b83d0fc7ef | b43005ddd987087674eacf0fb2cb407ddffd173c | refs/heads/master | 2021-01-11T07:05:35.853781 | 2016-10-26T19:36:09 | 2016-10-26T19:36:09 | 70,173,935 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 670 | java | package lcode;
/**
* 258. Add Digits
* @author smeng
*
*/
//Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
//
//For example:
//
//Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it.
public class AddDigits {
public static int addDigits(int num) {
int res = 0;
while(num>0){
res += num%10;
num /= 10;
}
if(res>=10) {
return addDigits(res);
}else {
return res;
}
//num==0? 0:(num%9==0? 9:num%9);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
int num = 38;
System.out.println(addDigits(num));
}
}
| [
"[email protected]"
] | |
44452feb7935cd844ed0ad2012be349d833c1989 | 3328f9479df311be7a809e4818f608e837e31f7e | /src/com/cpc/oa/dao/impl/DepartmentDaoImpl.java | 142a802e397532e88daae055042ede8869c76dfc | [] | no_license | Chu2015/Office-Automation | 8551dd5d568877f35da883f3d1e45ced0691ae00 | 2b74b641d2a5bca0f49ded12d0bafc0a0789b2a8 | refs/heads/master | 2021-01-12T02:22:01.877940 | 2017-02-24T09:25:44 | 2017-02-24T09:25:44 | 78,507,766 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 316 | java | package com.cpc.oa.dao.impl;
import org.springframework.stereotype.Repository;
import com.cpc.oa.base.DaoSupportImpl;
import com.cpc.oa.dao.DepartmentDao;
import com.cpc.oa.domain.Department;
@Deprecated
@Repository
public class DepartmentDaoImpl extends DaoSupportImpl<Department> implements DepartmentDao{
}
| [
"[email protected]"
] | |
a204186283be4574ad0d978aed214fff84f9bc94 | 28e3c520a541f2b74b995499b1ec326db1d43169 | /src/main/java/com/chw/spb/config/BeetlTemplateConfig.java | 01df3f144993cbb753ed9dbcf06338471fb5e8a7 | [] | no_license | chenhuwo/myspb | 8b8f4386f4fda374541c6354e468e8c3c5c602e0 | 1e53a26785ab331b741579ae96dd8c22c259f24f | refs/heads/master | 2021-07-06T03:27:11.388195 | 2017-09-25T02:03:05 | 2017-09-25T02:03:05 | 104,688,938 | 0 | 1 | null | 2017-09-25T02:03:06 | 2017-09-25T01:16:47 | JavaScript | UTF-8 | Java | false | false | 2,348 | java | package com.chw.spb.config;
import org.beetl.core.GroupTemplate;
import org.beetl.core.resource.ClasspathResourceLoader;
import org.beetl.ext.spring.BeetlGroupUtilConfiguration;
import org.beetl.ext.spring.BeetlSpringViewResolver;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternUtils;
/**
*
* @author chw
*
*/
@Configuration
public class BeetlTemplateConfig {
@Value("${beetl.templatesPath:templates}")
String templatesPath;// 模板根目录
@Value("${beetl.suffix:html}")
String suffix;// 模板后缀
@Bean(initMethod = "init", name = "beetlConfig")
@ConditionalOnMissingBean(name = { "beetlConfig" })
public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration() {
BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration();
try {
ClasspathResourceLoader cploder = new ClasspathResourceLoader(BeetlTemplateConfig.class.getClassLoader(),templatesPath);
beetlGroupUtilConfiguration.setResourceLoader(cploder);
return beetlGroupUtilConfiguration;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@Bean(name = "beetlViewResolver")
@ConditionalOnMissingBean(name = { "beetlViewResolver" })
public BeetlSpringViewResolver getBeetlSpringViewResolver(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
beetlSpringViewResolver.setViewNames("*."+suffix);
beetlSpringViewResolver.setOrder(0);
beetlSpringViewResolver.setConfig(beetlGroupUtilConfiguration);
return beetlSpringViewResolver;
}
@Bean(name = "groupTemplate")
public GroupTemplate getGroupTemplate(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
return beetlGroupUtilConfiguration.getGroupTemplate();
}
}
| [
"admin"
] | admin |
1943a88fc39fe4f9d9b2f8d2c9ccf582537a9d4a | eb61e1ca3d5e4c26272204b8d129fa36b5016980 | /model/src/org/bogdanbuduroiu/auction/model/comms/message/RegistrationRequest.java | dde374d43319ba0fe36b0bcaf359ec82fd935385 | [] | no_license | bruvduroiu/Charity-Auction-CW | 97dce300f7c2c19c8f70a0d41cafa98a35b88a20 | fc3a1d2e8dd37ddd85695e6f7d45784bdae6c3a5 | refs/heads/master | 2021-05-31T14:52:46.744788 | 2016-05-11T16:46:45 | 2016-05-11T16:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 625 | java | package org.bogdanbuduroiu.auction.model.comms.message;
import org.bogdanbuduroiu.auction.model.User;
import java.io.Serializable;
/**
* Created by bogdanbuduroiu on 23.04.16.
*/
public class RegistrationRequest extends Message implements Serializable {
private User user;
private char[] password;
public RegistrationRequest(User user, char[] password) {
super(user, MessageType.REGISTRATION_REQUEST);
this.user = user;
this.password = password;
}
public User getUser() {
return this.user;
}
public char[] getPassword() {
return password;
}
}
| [
"[email protected]"
] | |
00d20d03cb307095a42239129233e792720264d0 | 9b56eef7f0555419ae8246517b76bd01446fd53b | /06-02/src/Yawn.java | 9641b13633aeffe134442f3ce1f45f85d5f19878 | [] | no_license | dea1495/workspace | 6a3c5371e3b13d154477ece7b5dd7824a790fa11 | b64302a32229c85bcd482e10b0e460c761f9ce0a | refs/heads/master | 2021-01-10T11:54:39.811934 | 2016-01-05T04:10:26 | 2016-01-05T04:10:26 | 49,037,567 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 322 | java | import static java.lang.System.out;
class Yawn {
public static void main(String args[]) {
for (int count = 1; count <= 10; count++) {
out.print("The value of count is ");
out.print(count);
out.println(".");
}
out.println("Done!");
}
}
| [
"[email protected]"
] | |
fc2008aecb317672ebca65ccc6cc30e03a2f9d27 | a68221db9cab2ed5d99d5c2f73707a765ee478f3 | /src/main/java/services/encodeURL/common/URL.java | ea25392c5675a896f4fda91b1713bbbdede91e30 | [] | no_license | VedangJoshi/url-shortener | 6d181d4e106f298abc6abef76460de8211719bcf | 08237407f86b1fd17dfcc26ee5acf726871e35a6 | refs/heads/master | 2021-01-22T04:10:58.202787 | 2017-06-11T21:42:55 | 2017-06-11T21:42:55 | 92,439,957 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,679 | 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 services.encodeURL.common;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;
import java.util.Date;
/**
* POJO for encoded URL.
*/
public class URL implements Serializable {
private String url;
private StringBuilder hashedUrl = new StringBuilder();
private Date creationDate;
private Date expiryDate;
public URL(String url) {
this.url = url;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public Date getExpiryDate() {
return expiryDate;
}
public void setExpiryDate(Date expiryDate) {
this.expiryDate = expiryDate;
}
}
| [
"[email protected]"
] | |
3dbf4bfb1f8b44fa70610cef3ad6b12965136411 | e69b0a7561f172706462b54ccfcba77a7543e4f6 | /vks-infrastructure-service/src/main/java/eu/ioannidis/vks/infrastructureservice/controllers/OemController.java | 300373de4f7596e0b04f850749edd711594d17a9 | [] | no_license | ioannidis/knowledge-base-information-system | 0dbc32d1c40a1719e41743255a676851cd10e920 | 23188ea1ca896099a0ec70c7f0cd3993e5891d6c | refs/heads/master | 2022-10-09T19:16:18.589069 | 2020-04-02T10:01:14 | 2020-04-02T10:01:14 | 251,694,560 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,011 | java | package eu.ioannidis.vks.infrastructureservice.controllers;
import eu.ioannidis.vks.infrastructureservice.models.entities.OemEntity;
import eu.ioannidis.vks.infrastructureservice.services.OemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@RestController
@RequestMapping(OemController.BASE_URL)
public class OemController {
static final String BASE_URL = "/v1/oems";
private OemService oemService;
@Autowired
public OemController(OemService oemService) {
this.oemService = oemService;
}
@GetMapping()
public Collection<OemEntity> getSystems() {
return oemService.findAll();
}
@GetMapping("/{id}")
public ResponseEntity<OemEntity> getSystem(@PathVariable String id) {
return oemService.findById(UUID.fromString(id))
.map(x -> new ResponseEntity<OemEntity>(x, HttpStatus.OK))
.orElse(new ResponseEntity<OemEntity>(HttpStatus.NOT_FOUND));
}
@PostMapping
public OemEntity createSystem(@Valid @RequestBody OemEntity systemEntity) {
return oemService.save(systemEntity);
}
@PutMapping
public ResponseEntity updateSystem(@Valid @RequestBody OemEntity systemEntity) {
return new ResponseEntity(HttpStatus.NOT_IMPLEMENTED);
}
@DeleteMapping("/{id}")
public void deleteSystem(@PathVariable String id) {
oemService.deleteById(UUID.fromString(id));
}
public boolean existsById(String id) {
return oemService.existsById(UUID.fromString(id));
}
@GetMapping("/count")
public Map<String, Long> count() {
Map<String, Long> count = new HashMap<>();
count.put("count", oemService.count());
return count;
}
}
| [
"[email protected]"
] | |
51d809c920717b58e06a7fb178f8cd87447463d0 | 2babcecf61c3587cdb140e97fc22faf01ed3cabe | /app/build/generated/source/r/debug/android/support/v7/recyclerview/R.java | af9b503d83d1d4f2869a77000f7bd6fb8f24f8a2 | [] | no_license | sunseter/PopularMovieYuba | 8741a2143adfa1c1fd80341eb6fb31edcf2b487f | a59339016885009ae652d5cb95c761aa2da0ee13 | refs/heads/master | 2021-09-01T19:32:48.884666 | 2017-12-28T12:47:20 | 2017-12-28T12:47:20 | 112,357,395 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,589 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.recyclerview;
public final class R {
public static final class attr {
public static final int fastScrollEnabled = 0x7f020069;
public static final int fastScrollHorizontalThumbDrawable = 0x7f02006a;
public static final int fastScrollHorizontalTrackDrawable = 0x7f02006b;
public static final int fastScrollVerticalThumbDrawable = 0x7f02006c;
public static final int fastScrollVerticalTrackDrawable = 0x7f02006d;
public static final int layoutManager = 0x7f02007c;
public static final int reverseLayout = 0x7f0200cf;
public static final int spanCount = 0x7f0200db;
public static final int stackFromEnd = 0x7f0200e1;
}
public static final class dimen {
public static final int fastscroll_default_thickness = 0x7f05004c;
public static final int fastscroll_margin = 0x7f05004d;
public static final int fastscroll_minimum_range = 0x7f05004e;
public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f050056;
public static final int item_touch_helper_swipe_escape_max_velocity = 0x7f050057;
public static final int item_touch_helper_swipe_escape_velocity = 0x7f050058;
}
public static final class id {
public static final int item_touch_helper_previous_elevation = 0x7f070033;
}
public static final class styleable {
public static final int[] RecyclerView = { 0x010100c4, 0x010100f1, 0x7f020069, 0x7f02006a, 0x7f02006b, 0x7f02006c, 0x7f02006d, 0x7f02007c, 0x7f0200cf, 0x7f0200db, 0x7f0200e1 };
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_android_descendantFocusability = 1;
public static final int RecyclerView_fastScrollEnabled = 2;
public static final int RecyclerView_fastScrollHorizontalThumbDrawable = 3;
public static final int RecyclerView_fastScrollHorizontalTrackDrawable = 4;
public static final int RecyclerView_fastScrollVerticalThumbDrawable = 5;
public static final int RecyclerView_fastScrollVerticalTrackDrawable = 6;
public static final int RecyclerView_layoutManager = 7;
public static final int RecyclerView_reverseLayout = 8;
public static final int RecyclerView_spanCount = 9;
public static final int RecyclerView_stackFromEnd = 10;
}
}
| [
"[email protected]"
] | |
d670ebcc85519ae7dd36e370e77f81ae11bd6ad1 | ca8925cc3881d9bcf127a76bc40615c1aa488f24 | /exemplar/java/hibernate/HibernateAnnotatedExample/src/main/java/nox/apycazo/hibernateannotatedexample/App.java | a6379c74ef5fd2c2c9dc1979cfa1b9d3efd05196 | [] | no_license | apycazo/legacy | 40f0eacd1e37c991a4c7d18f05f4d5522b7c6c1c | 771da39b4e6673d03e98437335bf5efb29d593ff | refs/heads/master | 2021-06-12T06:19:18.882716 | 2017-01-09T22:00:23 | 2017-01-09T22:00:23 | 61,744,302 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,812 | java | package nox.apycazo.hibernateannotatedexample;
import java.util.Date;
import java.util.List;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.hibernate.Session;
public class App
{
public static void main( String[] args ) {
BasicConfigurator.configure();
Logger.getRootLogger().setLevel(Level.INFO);
new App().test();
}
public void test() {
// Se inserta
Long id = insertFlight();
insertFlight();
insertFlight();
insertFlight();
// Se consulta y muestra por pantalla
listFlights();
// Se modifica
updateFlight(id);
// Se vuelve a consultar y mostrar por pantalla
listFlights();
}
private void updateFlight(Long id) {
Session s = HibernateUtil.getSession();
s.beginTransaction();
Flight vuelo = (Flight) s.load(Flight.class, id);
vuelo.setFirstname("Nombre cambiado");
s.getTransaction().commit();
}
private void listFlights() {
Session s = HibernateUtil.getSession();
s.beginTransaction();
List<Flight> vuelos = s.createQuery("from Flight").list();
for (Flight vuelo : vuelos)
System.out.println(vuelo.toString());
s.getTransaction().commit();
}
private Long insertFlight() {
// Se obtiene la sesion
Session s = HibernateUtil.getSession();
s.beginTransaction();
// Se instancia la clase Flight y se rellenan sus datos
Flight f = new Flight();
f.setFirstname("Nombre vuelo");
f.setFecha(new Date());
// Se salva en base de datos
s.save(f);
s.getTransaction().commit();
return f.getId();
}
}
| [
"[email protected]"
] | |
fafba035db9ff4ecb941b6f64d4d43dae2fc82d4 | 08de5bd843bfca04a61d6a6aa16f860346340288 | /build/generated-sources/ap-source-output/com/kenexx/model/UserProfile_.java | a5a31f0cc12966bdbd1fc99038e1c40ffaa6c9cf | [] | no_license | aceankit99/barcodetocloud | b2ba296bbd1bff808ac81b8516b2288555ec529b | 0805bc580d552e49b02eaf50157caa7a4181353f | refs/heads/master | 2020-04-24T18:24:59.016150 | 2019-02-23T06:30:28 | 2019-02-23T06:30:28 | 172,178,926 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,111 | java | package com.kenexx.model;
import com.kenexx.model.Plans;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2019-02-21T10:12:21")
@StaticMetamodel(UserProfile.class)
public class UserProfile_ {
public static volatile SingularAttribute<UserProfile, String> password;
public static volatile SingularAttribute<UserProfile, String> address;
public static volatile SingularAttribute<UserProfile, String> gender;
public static volatile SingularAttribute<UserProfile, String> phone;
public static volatile SingularAttribute<UserProfile, String> forgetPasswordCode;
public static volatile SingularAttribute<UserProfile, Plans> planId;
public static volatile SingularAttribute<UserProfile, String> forgetPasswordRequest;
public static volatile SingularAttribute<UserProfile, Long> id;
public static volatile SingularAttribute<UserProfile, String> userName;
public static volatile SingularAttribute<UserProfile, String> email;
} | [
"[email protected]"
] | |
193e3ecebabb07e9560cd4a3affc48349765242e | fe2ea7b6b816564e54d83675664aab45db493496 | /src/com/bridgelabz/datastructureprograms/Node.java | fe05d4de542dff5f0e3540e8f4d899ed83368424 | [] | no_license | kshitijapatil31/DataStructurePrograms | c5560e3700f7cda76e69f074981ec10219cd5ae4 | 7f247b42724925834924abb37bc30d526978d4de | refs/heads/master | 2023-07-16T11:33:31.301930 | 2021-08-29T09:34:09 | 2021-08-29T09:34:09 | 400,583,761 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 161 | java | package com.bridgelabz.datastructureprograms;
public class Node <T>{
int data;
Node next;
public Node(int data) {
this.data=data;
this.next=null;
}
}
| [
"[email protected]"
] | |
965429f19a19b34fd48329ec21a0b6b15cc2e23a | d320407150666ec2b697be38a001372ca7e34ace | /admin_user.java | ca9ac19ccec6f348e319fc213327b070629b5e4a | [] | no_license | bhumil2210/Import_Export | 9f4613a30afa730ae798fa162ee39284879d96db | 6eda72000f3718e2854f2bc48faf58093003a0af | refs/heads/master | 2020-03-15T07:51:12.897186 | 2018-05-23T16:45:19 | 2018-05-23T16:45:19 | 132,038,602 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,340 | 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.
*/
/**
*
* @author BHUMIL
*/
public class admin_user extends javax.swing.JFrame {
/**
* Creates new form admin_user
*/
public admin_user() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel3 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox<>();
jComboBox2 = new javax.swing.JComboBox<>();
jComboBox3 = new javax.swing.JComboBox<>();
jButton3 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jComboBox4 = new javax.swing.JComboBox<>();
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stock-photo-container-cargo-ship-and-cargo-plane-with-working-crane-bridge-in-seaport-logistic-import-export-461429113.jpg"))); // NOI18N
jLabel3.setText("jLabel3");
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jButton3.setText("ADMIN");
jButton3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 90, 70, 39));
jLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 24)); // NOI18N
jLabel1.setText(" BS ENTERPRISES");
getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 291, 47));
jComboBox4.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "NEW", "EXISTING" }));
jComboBox4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jComboBox4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox4ActionPerformed(evt);
}
});
getContentPane().add(jComboBox4, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 90, 70, 39));
pack();
}// </editor-fold>//GEN-END:initComponents
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
// TODO add your handling code here:
setVisible(false);
admin_sign_in f1=new admin_sign_in();
f1.setVisible(true);
}//GEN-LAST:event_jButton3ActionPerformed
private void jComboBox4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox4ActionPerformed
// TODO add your handling code here:
String a=jComboBox4.getSelectedItem().toString();
System.out.println(a);
if("NEW".equals(a))
{
setVisible(false);
USER_UI n=new USER_UI();
n.setVisible(true);
}
else if("EXISTING".equals(a))
{
setVisible(false);
update n=new update();
n.setVisible(true);
}
}//GEN-LAST:event_jComboBox4ActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(admin_user.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(admin_user.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(admin_user.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(admin_user.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new admin_user().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton3;
private javax.swing.JComboBox<String> jComboBox1;
private javax.swing.JComboBox<String> jComboBox2;
private javax.swing.JComboBox<String> jComboBox3;
private javax.swing.JComboBox<String> jComboBox4;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel3;
// End of variables declaration//GEN-END:variables
}
| [
"[email protected]"
] | |
43b66e679bc018719009d5c3e5d3f3ebe8270508 | 189946700776039f2c39d56a0702fa5374f20e12 | /lcm-common/src/main/java/nl/kpmg/lcm/server/data/ProgressIndication.java | ac219eadedf793858365217c2421000cf2371f38 | [
"Apache-2.0"
] | permissive | lipengyu/LocalCatalogManager | 0aeb858342cb99b950fba00786558b74eb1f9af2 | 3c13add9dbf0af38fe37476da23bc963487d0076 | refs/heads/master | 2020-05-30T19:39:58.358125 | 2017-02-24T10:54:03 | 2017-02-24T10:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,609 | java | /*
* Copyright 2017 KPMG N.V. (unless otherwise stated).
*
* 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 nl.kpmg.lcm.server.data;
import java.util.Date;
/**
*
* @author shristov
*/
public class ProgressIndication {
private String message;
/**
* The time this indication was generated.
*/
private Date timestamp;
public ProgressIndication() {}
public ProgressIndication(String message, Date timestamp) {
this.message = message;
this.timestamp = timestamp;
}
public ProgressIndication(String message) {
this(message, new Date());
}
/**
* @return the message
*/
public String getMessage() {
return message;
}
/**
* @param message the message to set
*/
public void setMessage(String message) {
this.message = message;
}
@Override
public String toString() {
return message;
}
/**
* @return the timestamp
*/
public Date getTimestamp() {
return timestamp;
}
/**
* @param timestamp the timestamp to set
*/
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
}
| [
"[email protected]"
] | |
22721df68a976ebf34a36afb7938f88af6fa81ac | a4ccf60f2bc927c67fc19683eef8420be2f5b233 | /P1_T01G01/src/as_project/Sockets.java | 7a6cfdc6abb255b628e4e3399455e8c3ea127f10 | [] | no_license | gabrielrsilva11/AS_Project | b72a90ae90e4500902e83035e09c9ba91cd78cba | 7ac5b56b5f0acb9dd11d46b79b34f3d32e487b60 | refs/heads/master | 2021-02-10T06:56:22.793274 | 2020-05-30T15:39:43 | 2020-05-30T15:39:43 | 244,358,548 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,913 | java | package as_project;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* Sockets - Responsible for handling the sockets, creating server and client connections as well
* as sending messages
*
* @author Gabriel Silva
* @author Manuel Marcos
*
*/
public class Sockets {
/**
* Accepts connections to the server socket
*/
private Socket socketServer = null;
/**
* Socket to start client connections
*/
private Socket socketClient = null;
/**
* Creates a server socket
*/
private ServerSocket server = null;
/**
* Stream used to send messages
*/
private DataOutputStream output = null;
/**
* Creates an instance of Sockets
*/
public Sockets(){
}
/**
* Method to get the socketServer variable
* @return socketServer variable
*/
public Socket getSocketServer(){
return socketServer;
}
/**
* Starts a server connection in a specified port
* @param port port in which to start the server
*/
public void startServer(int port){
try{
server = new ServerSocket(port);
socketServer = server.accept();
}catch(IOException e){
System.out.println(e);
}
}
/**
* Starts a client connection in a specified IP and port
* @param ip IP in which to initialize the client
* @param port port to connect to
*/
public void startClient(String ip, int port){
try{
socketClient = new Socket(ip, port);
output = new DataOutputStream(socketClient.getOutputStream());
}catch(UnknownHostException u){
System.out.println(u);
}catch(IOException i){
System.out.println(i);
}
}
/**
* Sends a message through to a server through the clientServer socket
* @param message message to send
*/
public void sendMessage(String message){
try{
output.writeUTF(message);
}catch(IOException i){
System.out.println(i);
}
}
/**
* Closes the connection to the client connection
*/
public void closeClientConnection(){
try{
socketClient.close();
output.close();
}catch(IOException i){
System.out.println(i);
}
}
/**
* Closes the connection to the server connection
*/
public void closeServerConnection(){
try{
server.close();
socketServer.close();
}catch(IOException i){
System.out.println(i);
}
}
/**
* Closes both the client and the server connection
*/
public void closeAllConnections(){
closeClientConnection();
closeServerConnection();
}
}
| [
"[email protected]"
] | |
688e07be4a011d1aa961688c31218098a0bfa434 | 4b3fd4dfa2a9caaf8849c148c94889842079a2db | /src/main/java/com/example/taxtool/entity/TargetManageRecord.java | b4592ca673d6ae14840b1e590a16972bed6efdaf | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lyingfromyou/tax-tool | 43210af03ab92939de6e7aef23f1fb36a2911f07 | e90b5725de60b5af4222909bf086f080cccdf56e | refs/heads/master | 2023-01-29T10:21:11.481032 | 2023-01-10T06:34:57 | 2023-01-10T06:34:57 | 202,489,940 | 0 | 0 | Apache-2.0 | 2023-01-10T06:35:52 | 2019-08-15T06:54:28 | Java | UTF-8 | Java | false | false | 1,543 | java | package com.example.taxtool.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
@ApiModel(value = "TargetManageRecord对象", description = "目标管理填写记录")
public class TargetManageRecord implements Serializable {
@TableId(type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "绩效配置id")
private Long performanceConfigId;
@ApiModelProperty(value = "上月工作内容")
private String lastMonthWorkContent;
@ApiModelProperty(value = "上月完成情况")
private String lastMonthCompletion;
@ApiModelProperty(value = "目标完成率")
private Integer achievementRate;
@ApiModelProperty(value = "上月工作自评")
private String selfEvaluation;
@ApiModelProperty(value = "本月工作目标")
private String workGoals;
@ApiModelProperty(value = "本月工作计划")
private String workPlan;
@ApiModelProperty(value = "审核状态,0:待审核,1:审核完成,2:拒绝")
private Integer status;
@ApiModelProperty("提交记录id")
private Long recordId;
@ApiModelProperty(value = "监督人")
@TableField(exist = false)
private Long supervisor;
@TableField(exist = false)
@ApiModelProperty(value = "审批人")
private Long approver;
}
| [
"[email protected]"
] | |
7569251b2d11132b7c7a5f97f6bae610a66ec3dd | 7fb3d2b4246c5516406bb98ec97f91507b4dc387 | /tm-util/src/main/java/com/tm/util/validations/Validator.java | 6503d870675ac3af429aed9a52e2fcd828eea3fe | [] | no_license | nitw-shobhit/TM | 12086560d7964a43f9464cf4087d849e500a796b | bc308fbd3f5c19a6605509bc023b432773c90ab4 | refs/heads/master | 2021-01-21T12:32:05.898909 | 2016-05-18T10:00:36 | 2016-05-18T10:00:36 | 41,180,958 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 105 | java | package com.tm.util.validations;
public interface Validator {
Error validate(Object objToValidate);
}
| [
"[email protected]"
] | |
f1b720daa0bf28a78ed06bce5b14dfd20909c3e3 | ae5b7ce5f4c080bc2435eeaf8ecde5458ee849f7 | /Task11EmployeesJuniorJavaDeveloper/src/test/java/com/javaweb/AppTest.java | 5f802a8d16f5b07dfd44c96711bfd06b52d7b359 | [] | no_license | itcherry/TrainingJavaWebDevelopnemt | f1a13ef32015e59c8ec16f9720ddf7bd56848036 | 7c58126b1e1a1ad22a6cd26bbe24ef0b09fa8873 | refs/heads/master | 2021-06-15T03:59:23.155701 | 2017-01-17T11:55:53 | 2017-01-17T11:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 640 | java | package com.javaweb;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple Main.
*/
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 );
}
}
| [
"[email protected]"
] | |
5a5469bb2c92723d1368089b1abb634373fc04c3 | 4034a59a42524b6b3582cceeb19025e26bc56d81 | /training/src/test/java/com/slksoft/training/MathUtilsTest.java | 8289a2c6052080fca265b8ee1da89423457e727b | [] | no_license | kayartaya-vinod/2019_10_SLK_BOOTCAMP | 7a8ef0d962f4232792d39152790abe4227e0614e | 0aff15cf9b3d6ebc060fb2a4fb464ca2f84001be | refs/heads/master | 2020-08-05T23:02:57.894125 | 2019-11-04T09:55:22 | 2019-11-04T09:55:22 | 212,747,091 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 451 | java | package com.slksoft.training;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class MathUtilsTest {
@Test
public void testFactorialPositive() {
long expected = 120;
long actual = MathUtils.factorial(5);
assertEquals(expected, actual);
}
@Test
public void testFactorialNegative() {
long expected = -120;
long actual = MathUtils.factorial(-5);
assertEquals(expected, actual);
}
}
| [
"[email protected]"
] | |
cc5bad336b95a9ce412e94889ba47f06d46f5a18 | 6f2f019a9ad1fba1399a19a26f0752ad0ee5ae72 | /base-spring-boot-jpa-project/common-lib/src/main/java/com/ms/core/common/websocket/HelloMessage.java | 41946ebf548ddd5e1d0521ae5ae25d0c2a54e71a | [] | no_license | jclmon/spring-projects | 03aecd8f1215fa1ddec44684ab60b27baf25a6e7 | 36c61e7b76d4b509240572e8de378609babefe45 | refs/heads/master | 2022-12-01T10:33:31.405837 | 2021-10-29T06:40:01 | 2021-10-29T06:40:01 | 242,692,551 | 0 | 0 | null | 2022-11-24T08:36:54 | 2020-02-24T09:16:44 | Java | UTF-8 | Java | false | false | 301 | java | package com.ms.core.common.websocket;
public class HelloMessage {
private String name;
public HelloMessage() {
}
public HelloMessage(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} | [
"[email protected]"
] | |
5f89f10a7639f2141a9ce7ce5da1ba31950dfaa5 | cd69642454fa61ec86edb58c2d6f6a5ae94278f7 | /ThreeSum.java | 0d9f3b0f030f4c63e2796c5159fe9bb828457fdc | [] | no_license | wugeo0824/brain-teasers | 63eccaeeea5280bde36130d7bcc735673efd3922 | b5102bfc18ce2288badc73a18c218bf8a1452a6f | refs/heads/master | 2020-12-01T20:52:05.096422 | 2019-12-29T15:07:41 | 2019-12-29T15:09:35 | 230,766,034 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,076 | java | class Solution {
public List<List<Integer>> threeSum(int[] nums) {
int length = nums.length;
List<List<Integer>> result = new ArrayList();
Arrays.sort(nums);
for (int i = 0; i < length; i++) {
if (i > 0 && nums[i] == nums[i-1]) continue;
int low = i + 1;
int high = length - 1;
int target = 0 - nums[i];
while (low < high) {
if (nums[low] + nums[high] == target) {
result.add(Arrays.asList(nums[i], nums[low], nums[high]));
while(low < high && nums[low] == nums[low + 1]) {
low++;
}
while(low < high && nums[high] == nums[high - 1]) {
high--;
}
low++;
high--;
} else if (nums[low] + nums[high] < target) {
low++;
} else {
high--;
}
}
}
return result;
}
} | [
"[email protected]"
] | |
a9c4e502466e81c387be0fde2cf988abe1497b1b | 7c5bf14368149e301ed826f6d6e550e1560559cd | /src/org/mystic/utility/MobUpdateList.java | 86e6dce698f8c93099c43a7cbfa35224050a1698 | [] | no_license | Rune-Status/vl1-mystic | 812b08b3c1be5852e180a970bd18ce77b96de732 | 4415156ba0a9779c9c045313eb2e653a597b3b07 | refs/heads/master | 2020-03-27T06:46:10.725767 | 2018-08-24T06:29:36 | 2018-08-24T06:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,955 | java | package org.mystic.utility;
import java.util.List;
import java.util.Queue;
import java.util.Vector;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.mystic.game.model.entity.npc.Npc;
/**
* A linked list of (@UpdateableMob)s that contains no duplicates
*
* @author Michael Sasse
*
*/
public class MobUpdateList {
/**
* The list
*/
private final List<UpdateableMob> list = new Vector<UpdateableMob>();
/**
* The queues to dictate modification
*/
private final Queue<UpdateableMob> incr = new ConcurrentLinkedQueue<UpdateableMob>();
private final Queue<UpdateableMob> decr = new ConcurrentLinkedQueue<UpdateableMob>();
private final Queue<UpdateableMob> remove = new ConcurrentLinkedQueue<UpdateableMob>();
/**
* Creates a new (@MobUpdateList)
*/
public MobUpdateList() {
}
/**
* Adds a mob, or increments the view count
*/
private void add(UpdateableMob u) {
int i = list.indexOf(u);
if (i > -1) {
list.get(i).viewed += 1;
} else {
list.add(u);
}
}
public void decr(Npc mob) {
decr.add(new UpdateableMob(mob));
}
/**
* Removes the mob
*/
private void definiteRemove(UpdateableMob u) {
list.remove(u);
}
/**
* Gets the list of mobs
*/
public List<UpdateableMob> getList() {
return list;
}
public void incr(Npc mob) {
incr.add(new UpdateableMob(mob));
}
/**
* Processes modifications to list
*/
public final void process() {
UpdateableMob a = null;
while ((a = incr.poll()) != null) {
add(a);
}
while ((a = decr.poll()) != null) {
remove(a);
}
while ((a = remove.poll()) != null) {
definiteRemove(a);
}
}
/**
* Removes a mob or decrements the view count
*/
private void remove(UpdateableMob u) {
int i = list.indexOf(u);
if (i > -1) {
UpdateableMob l = list.get(i);
l.viewed--;
if (l.viewed <= 0) {
list.remove(u);
}
}
}
public void toRemoval(Npc mob) {
remove.add(new UpdateableMob(mob));
}
} | [
"[email protected]"
] | |
49e903876593f0b6071ec3d256286cda76673c3c | 2ad9374e1b26d79fee73ea45bf0311f8361a4038 | /Calculator-GUI/src/StringCalculatorTest.java | d321acb5c4763e58b5d9d3166d1718807a75666d | [] | no_license | shogo54/java-swing-calculator | 22729748285e952593bea9ed8f51cce1981aadc1 | 7acdad3c23a2bea50efe6bc8257ba49a94e4cc48 | refs/heads/master | 2020-03-19T01:07:43.456120 | 2018-05-31T13:27:54 | 2018-05-31T13:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,035 | java | import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class StringCalculatorTest {
StringCalculator sc;
@Before
public void setUp() throws Exception {
sc=new StringCalculator();
}
@Test
public void test() {
assertEquals(8, sc.execute("5+3"));
assertEquals(15, sc.execute("5*3"));
assertEquals(2, sc.execute("5-3"));
assertEquals(5, sc.execute("15/3"));
assertEquals(3, sc.execute("5*3-8/2*3"));
/*
sc.convert("5+3");
assertEquals(2, sc.nums.size());
assertEquals(5,(int) sc.nums.get(0));
assertEquals(3,(int) sc.nums.get(1));
assertEquals(1, sc.ops.size());
assertEquals('+', (char) sc.ops.get(0));
assertEquals(0, sc.opOrder.size());
sc.sortOperator();
assertEquals(2, sc.nums.size());
assertEquals(5,(int) sc.nums.get(0));
assertEquals(3,(int) sc.nums.get(1));
assertEquals(1, sc.ops.size());
assertEquals('+', (char) sc.ops.get(0));
assertEquals(1, sc.opOrder.size());
assertEquals(0, (int) sc.opOrder.get(0));
sc.calculate();
*/
}
}
| [
"[email protected]"
] | |
b4cffc64fa903ece0eeefaeef77c7c5e1779f79b | 32c05251ac61420f4262c88643ed39623e7b5cfc | /src/com/github/onlynight/datamodeldesign/module/main/data/MainActivityRepository.java | d911ed564bc81b2d2d3303fbad407ffe328fb011 | [] | no_license | onlynight/DataModelDesign | 3dc5302e21b993653d815ad5fcc673779e6355ed | e2264c8fcbe7b0bb713a07e9631e135813e23f3b | refs/heads/master | 2021-01-19T05:23:50.183985 | 2017-04-07T03:29:46 | 2017-04-07T03:29:46 | 87,430,419 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,750 | java | package com.github.onlynight.datamodeldesign.module.main.data;
import com.github.onlynight.datamodeldesign.data.BaseDataSource;
import com.github.onlynight.datamodeldesign.data.OnRequestListener;
import com.github.onlynight.datamodeldesign.data.SimpleRepository;
import com.github.onlynight.datamodeldesign.module.main.data.source.KLineDataSource;
import com.github.onlynight.datamodeldesign.module.main.data.source.NewsDataSource;
import com.sun.istack.internal.NotNull;
/**
* Created by lion on 2017/4/6.
* main activity repository
*/
public class MainActivityRepository extends SimpleRepository {
/**
* you should define data source type here.
*/
public static final int DATA_TYPE_NEWS = 0;
public static final int DATA_TYPE_KLINE = 1;
private NewsDataSource newsDataSource;
private KLineDataSource kLineDataSource;
/**
* this method just help you create data source.
*
* @param type you should define it in your class and return different with this type.
* @return specific data source
*/
@Override
public BaseDataSource getDataSource(int type) {
switch (type) {
case DATA_TYPE_NEWS:
if (newsDataSource == null) {
newsDataSource = new NewsDataSource();
}
return newsDataSource;
case DATA_TYPE_KLINE:
if (kLineDataSource == null) {
kLineDataSource = new KLineDataSource();
}
return kLineDataSource;
}
return null;
}
@Override
public void getData(int type, @NotNull OnRequestListener listener,
Object... args) {
switch (type) {
case DATA_TYPE_NEWS:
getData(getDataSource(type), listener, args);
break;
case DATA_TYPE_KLINE:
getData(getDataSource(type), listener, args);
break;
}
}
@Override
public void getLocalDataFirst(int type, @NotNull OnRequestListener listener, Object... args) {
switch (type) {
case DATA_TYPE_NEWS:
getLocalDataFirst(getDataSource(type), listener, args);
break;
case DATA_TYPE_KLINE:
getLocalDataFirst(getDataSource(type), listener, args);
break;
}
}
public void getNews(int page, int size,
@NotNull OnRequestListener<News> listener) {
getData(DATA_TYPE_NEWS, listener, page, size);
}
public void getKLine(long time,
@NotNull OnRequestListener<KLine> listener) {
getLocalDataFirst(DATA_TYPE_KLINE, listener, time);
}
}
| [
"[email protected]"
] | |
a10d4778d629aa23b1c9a845d3899f9f5c03c6cd | 6648787acb6c2b4e3cd720d2343de91b29e0fac6 | /src/test/java/org/example/sweater/MessageControllerTest.java | 659e2b91a32ebd7e9938383649673385739d7f7d | [] | no_license | ramilyamar/Message_App | 0bea8b9b1922a762fd22efefce4433b2cc8afab9 | 9998c569e31f40e50a45a0268cb10e80783dc233 | refs/heads/master | 2020-11-29T22:56:23.398997 | 2020-01-09T13:34:52 | 2020-01-09T13:34:52 | 230,233,789 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,436 | java | package org.example.sweater;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.test.context.support.WithUserDetails;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder;
import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.csrf;
import static org.springframework.security.test.web.servlet.response.SecurityMockMvcResultMatchers.authenticated;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.multipart;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.xpath;
@RunWith(SpringRunner.class)
@SpringBootTest
@ContextConfiguration
@AutoConfigureMockMvc
@WithUserDetails("u")
@TestPropertySource("/application-test.properties")
@Sql(value = {"/create-user-before.sql", "/messages-list-before.sql"},
executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@Sql(value = {"/messages-list-after.sql", "/create-user-after.sql"},
executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
public class MessageControllerTest {
@Autowired
private MockMvc mockMvc;
@Test
public void mainPageTest() throws Exception {
this.mockMvc.perform(get("/main"))
.andDo(print())
.andExpect(authenticated())
.andExpect(xpath("//div[@id='navbarSupportedContent']/div").string("u"));
}
@Test
public void messageListTest() throws Exception {
this.mockMvc.perform(get("/main"))
.andDo(print())
.andExpect(authenticated())
.andExpect(xpath("//div[@id='message-list']/div").nodeCount(4));
}
@Test
public void filterMessageTest() throws Exception {
this.mockMvc.perform(get("/main").param("filter", "one"))
.andDo(print())
.andExpect(authenticated())
.andExpect(xpath("//div[@id='message-list']/div").nodeCount(2))
.andExpect(xpath("//div[@id='message-list']/div[@data-id=1]").exists())
.andExpect(xpath("//div[@id='message-list']/div[@data-id=3]").exists());
}
@Test
public void addMessageToListTest() throws Exception {
MockHttpServletRequestBuilder multipart = multipart("/main")
.file("file", "123".getBytes())
.param("text", "five")
.param("tag", "new one")
.with(csrf());
this.mockMvc.perform(multipart)
.andDo(print())
.andExpect(authenticated())
.andExpect(xpath("//*[@id='message-list']/div").nodeCount(5))
.andExpect(xpath("//*[@id='message-list']/div[@data-id=10]").exists());
}
}
| [
"[email protected]"
] | |
f968004b7b58fbbf14b4933f195eace047874f6b | ae7f0fd6a74e2466336bc7797afbdeba81e7d3e1 | /CustomerCRUDJSF-ejb/build/generated-sources/ap-source-output/customerjsf/entity/MicroMarket_.java | 5a1890dc7116a14bc614b0c87ae6477cdad0ccd8 | [] | no_license | dlt96/CustomerCRUDjsf | ce8f24937899818d59885a1662da25497b4639ce | 054d019324166ef73b9f6cea9c0aa7a67960df0c | refs/heads/master | 2021-01-24T06:47:45.914817 | 2017-06-04T14:39:08 | 2017-06-04T14:39:08 | 93,319,436 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 805 | java | package customerjsf.entity;
import customerjsf.entity.Customer;
import javax.annotation.Generated;
import javax.persistence.metamodel.CollectionAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2017-06-02T17:14:11")
@StaticMetamodel(MicroMarket.class)
public class MicroMarket_ {
public static volatile SingularAttribute<MicroMarket, Double> areaLength;
public static volatile SingularAttribute<MicroMarket, String> zipCode;
public static volatile SingularAttribute<MicroMarket, Double> areaWidth;
public static volatile CollectionAttribute<MicroMarket, Customer> customerCollection;
public static volatile SingularAttribute<MicroMarket, Double> radius;
} | [
"[email protected]"
] | |
5ebedfa66b4a30cad5ae15ed46c1a2ac7ab5904e | 79a6d190cb3956c4a979393c5d5ecff1a49553c8 | /ratedialog/src/main/java/com/mbh/ratedialog/RateDialog.java | c4c6f628b023839b8fd2f4c45777568358227f73 | [
"Apache-2.0"
] | permissive | iballan/RateDialog | 2188908ab5aa95b1d8e5759ac28d43ae5a788ddd | 417fa7fabceea7a6aea129ba3f5332948b801862 | refs/heads/master | 2021-01-11T02:06:08.035405 | 2016-10-13T13:44:52 | 2016-10-13T13:44:52 | 70,808,751 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,236 | java | package com.mbh.ratedialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.util.Log;
import android.view.View;
import java.util.Date;
import static android.content.ContentValues.TAG;
/**
* Created By MBH on 2016-10-13.
*/
public class RateDialog {
private static final String PREF_NAME = "RateAzkari";
private static final String KEY_INSTALL_DATE = "mbh_install_date";
private static final String KEY_LAUNCH_TIMES = "mbh_launch_times";
private static final String KEY_OPT_OUT = "mbh_opt_out";
private static final String KEY_IS_REMIND_LATER = "mbh_remind_me";
private static Date mInstallDate = new Date();
private static int mLaunchTimes = 0;
private static boolean mOptOut = false;
private static Config sConfig = new Config();
/**
* If true, print LogCat
*/
private static final boolean DEBUG = false;
/**
* Initialize RateThisApp configuration.
*
* @param config Configuration object.
*/
private static void init(Config config) {
sConfig = config;
}
/**
* Initialize and start the dialog if needed
* @param config : RateDialog.Config which contains all information needed for RateDialog
* @param context: Context
* @return true if needs to show, false if not yet
*/
public static boolean onStart(Config config, Context context){
init(config);
onStart(context);
return showRateDialogIfNeeded(context);
}
/**
* Call this API when the launcher activity is launched.<br>
* It is better to call this API in onStart() of the launcher activity.
*
* @param context Context
*/
private static void onStart(Context context) {
SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
// If it is the first launch, save the date in shared preference.
if (pref.getLong(KEY_INSTALL_DATE, 0) == 0L) {
Date now = new Date();
editor.putLong(KEY_INSTALL_DATE, now.getTime());
log("First install: " + now.toString());
}
// Increment launch times
int launchTimes = pref.getInt(KEY_LAUNCH_TIMES, 0);
launchTimes++;
editor.putInt(KEY_LAUNCH_TIMES, launchTimes);
log("Launch times; " + launchTimes);
editor.commit();
mInstallDate = new Date(pref.getLong(KEY_INSTALL_DATE, 0));
mLaunchTimes = pref.getInt(KEY_LAUNCH_TIMES, 0);
mOptOut = pref.getBoolean(KEY_OPT_OUT, false);
printStatus(context);
}
/**
* Show the rate dialog if the criteria is satisfied.
*
* @param context Context
* @return true if shown, false otherwise.
*/
private static boolean showRateDialogIfNeeded(final Context context) {
if (shouldShowRateDialog()) {
showRateDialog(context);
return true;
} else {
return false;
}
}
/**
* Check whether the rate dialog shoule be shown or not
*
* @return
*/
private static boolean shouldShowRateDialog() {
if (mOptOut) {
return false;
} else {
if (mLaunchTimes >= sConfig.mCriteriaLaunchTimes) {
return true;
}
long threshold = sConfig.mCriteriaInstallDays * 24 * 60 * 60 * 1000L; // msec
if (new Date().getTime() - mInstallDate.getTime() >= threshold) {
return true;
}
return false;
}
}
/**
* Show the rate dialog
*
* @param context
*/
public static void showRateDialog(final Context context) {
if (sConfig == null || sConfig.mTitleId == 0 || sConfig.mMessageId == 0)
return;
final MaterialDialog mMaterialDialog = new MaterialDialog(context);
mMaterialDialog
.setTitle(sConfig.mTitleId)
.setMessage(sConfig.mMessageId)
//mMaterialDialog.setBackgroundResource(R.drawable.background);
.setPositiveButton(sConfig.mOkButton, new View.OnClickListener() {
@Override public void onClick(View v) {
String appPackage = context.getPackageName();
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/apps/details?id="
+ appPackage));
context.startActivity(intent);
setOptOut(context, true);
mMaterialDialog.dismiss();
}
})
.setNegativeButton(sConfig.mRemindMeLater,
new View.OnClickListener() {
@Override public void onClick(View v) {
clearSharedPreferences(context);
mMaterialDialog.dismiss();
}
})
.setNeutralButton(sConfig.mNoThanks, new View.OnClickListener() {
@Override
public void onClick(View view) {
clearSharedPreferences(context);
mMaterialDialog.dismiss();
}
})
.setCanceledOnTouchOutside(true)
.setOnDismissListener(
new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
// No Thanks
//setOptOut(context, true);
clearSharedPreferences(context);
mMaterialDialog.dismiss();
}
})
.setCanceledOnTouchOutside(true)
.show();
}
/**
* Clear data in shared preferences.<br>
* This API is called when the rate dialog is approved or canceled.
*
* @param context
*/
private static void clearSharedPreferences(Context context) {
SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
editor.remove(KEY_INSTALL_DATE);
editor.remove(KEY_LAUNCH_TIMES);
editor.commit();
}
/**
* Set opt out flag. If it is true, the rate dialog will never shown unless app data is cleared.
*
* @param context
* @param optOut
*/
private static void setOptOut(final Context context, boolean optOut) {
SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
editor.putBoolean(KEY_OPT_OUT, optOut);
editor.commit();
}
/**
* Print values in SharedPreferences (used for debug)
*
* @param context
*/
private static void printStatus(final Context context) {
SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
log("*** RateThisApp Status ***");
log("Install Date: " + new Date(pref.getLong(KEY_INSTALL_DATE, 0)));
log("Launch Times: " + pref.getInt(KEY_LAUNCH_TIMES, 0));
log("Opt out: " + pref.getBoolean(KEY_OPT_OUT, false));
}
/**
* Print log if enabled
*
* @param message
*/
private static void log(String message) {
if (DEBUG) {
Log.v(TAG, message);
}
}
/**
* RateThisApp configuration.
*/
public static class Config {
private int mCriteriaInstallDays;
private int mCriteriaLaunchTimes;
private int mOkButton = 0;
private int mRemindMeLater = 0;
private int mNoThanks = 0;
private int mTitleId = 0;
private int mMessageId = 0;
/**
* Constructor with default criteria.
*/
public Config() {
// every 7 days, or 15 app launches
this(7, 15);
}
/**
* Constructor.
*
* @param criteriaInstallDays
* @param criteriaLaunchTimes
*/
public Config(int criteriaInstallDays, int criteriaLaunchTimes) {
this.mCriteriaInstallDays = criteriaInstallDays;
this.mCriteriaLaunchTimes = criteriaLaunchTimes;
}
/**
* Show dialog after installation with how many days
* @param criteriaInstallDays
*/
public void setInstallDays(int criteriaInstallDays){
this.mCriteriaInstallDays = criteriaInstallDays;
}
/**
* Show dialog after how many launch times
* @param criteriaLaunchTimes
*/
public void setLaunchTimes(int criteriaLaunchTimes){
this.mCriteriaLaunchTimes = criteriaLaunchTimes;
}
/**
* Set title string ID.
*
* @param stringId
*/
public void setTitle(int stringId) {
this.mTitleId = stringId;
}
/**
* Set message string ID.
*
* @param stringId
*/
public void setMessage(int stringId) {
this.mMessageId = stringId;
}
/**
* Set Rate Us now message.
*
* @param mOkButton
*/
public void setmOkButton(int mOkButton) {
this.mOkButton = mOkButton;
}
/**
* Set RemindMeLater message.
*
* @param mRemindMeLater
*/
public void setmRemindMeLater(int mRemindMeLater) {
this.mRemindMeLater = mRemindMeLater;
}
/**
* Set NoThanks message.
*
* @param mNoThanks
*/
public void setmNoThanks(int mNoThanks) {
this.mNoThanks = mNoThanks;
}
}
}
| [
"[email protected]"
] | |
b02a8f99cc60ac7623c26ae3b25273c949a5379d | 78f1d662189a6241c9385cb87eb60f713dfb22b3 | /src/main/java/com/webank/webase/stat/data/mapper/NetWorkDataMapper.java | b284097c45b63a0d18f14a3300b1081d9beeea07 | [
"Apache-2.0"
] | permissive | InnochainTech/WeBASE-Stat | bbae6c803891e7867e6275cf273db3caf9f615e7 | 648c1cd3ffbfff180dc9440a249cf48163571947 | refs/heads/master | 2023-02-21T05:08:34.029844 | 2021-01-21T06:57:37 | 2021-01-21T06:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,356 | java | /**
* Copyright 2014-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.webank.webase.stat.data.mapper;
import com.webank.webase.stat.base.entity.BaseQueryParam;
import com.webank.webase.stat.data.entity.TbNetWorkData;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* mapper for table tb_network_data.
*/
@Repository
public interface NetWorkDataMapper {
/**
* add info
*/
int add(TbNetWorkData data);
/**
* getList.
*/
TbNetWorkData getMaxData(@Param("frontId") Integer frontId, @Param("groupId") Integer groupId);
/**
* getCount.
*/
int getCount(BaseQueryParam queryParam);
/**
* getList.
*/
List<TbNetWorkData> getList(BaseQueryParam queryParam);
}
| [
"[email protected]"
] | |
5382b764ff4ec8b0a126c71556fc38df33961ce5 | 19fd1670ceeae48b2daa186da86bcdfd22a4124f | /src/main/java/com/adfer/repository/ConfigurationRepository.java | 3c32ecfda465ff5116d46985c58d067533142958 | [] | no_license | adfer/perfumy_v2 | c6e076f35cf973975d625a04f6b3627433339c9c | 2a9e47f210f683032332c294a5e15bdd001131f0 | refs/heads/master | 2021-06-10T15:17:15.894576 | 2016-12-18T20:07:18 | 2016-12-18T20:07:18 | 74,409,720 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 334 | java | package com.adfer.repository;
import com.adfer.entity.Configuration;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
/**
* Created by adrianferenc on 08.11.2016.
*/
@Repository
public interface ConfigurationRepository extends CrudRepository<Configuration, Integer> {
}
| [
"[email protected]"
] | |
add3d642bbb58a6e1aa3f6cdad9b2222745de96b | f5d0a0d77b8229fed78e474df6b8f23b3d71335a | /empleados/src/empleados/Empleados.java | 4f25ee265d771ce3cebaaa8e1510abe942ae74d1 | [] | no_license | rafael13em/empleados | d5460e7a1007354be8a611ce2d6e06d6035882d3 | 8026c643615cfb9a700166051d4311804323e4ab | refs/heads/master | 2020-04-26T17:33:10.180906 | 2019-03-04T09:49:39 | 2019-03-04T09:49:39 | 173,717,612 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,129 | java | package empleados;
public class Empleados {
private int id;
private String nombre;
private String apellido1;
private String apellido2;
private String direccion;
private String tfno;
public Empleados(int i, String n, String ap1, String ap2, String dir, String t)
{
this.id = i;
this.nombre = n;
this.apellido1 = ap1;
this.apellido2 = ap2;
this.direccion = dir;
this.tfno = t;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getApellido1() {
return apellido1;
}
public void setApellido1(String apellido1) {
this.apellido1 = apellido1;
}
public String getApellido2() {
return apellido2;
}
public void setApellido2(String apellido2) {
this.apellido2 = apellido2;
}
public String getDireccion() {
return direccion;
}
public void setDireccion(String direccion) {
this.direccion = direccion;
}
public String getTfno() {
return tfno;
}
public void setTfno(String tfno) {
this.tfno = tfno;
}
}
| [
""
] | |
af13a4b11f16b43c806f6cfc0ed41efaffc19c39 | faa1e003b5e11b74bce10de7f46fd13aa9a40b82 | /app/build/generated/source/buildConfig/debug/org/yanzi/playcamera_v2/BuildConfig.java | a8472ba0d1862b9d0120e39d16fabc5f3098a1c9 | [] | no_license | yansc2007/PlayCamera2_master | cf4a3e3efe9224382412533afe8fc2202b3209e8 | 1bb4caa161106c3b3f62cb8713a976d559e60b3b | refs/heads/master | 2021-01-01T04:36:57.118482 | 2017-07-14T07:58:35 | 2017-07-14T07:58:35 | 97,208,375 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 453 | java | /**
* Automatically generated file. DO NOT MODIFY
*/
package org.yanzi.playcamera_v2;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "org.yanzi.playcamera_v2";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
}
| [
"[email protected]"
] | |
abd5a5b51254509cbada211972c3f554ccdf55d1 | e072d34d3e7471e7ad0722db2e7782e00b5f8e7b | /java/org/metasyntactic/automata/compiler/java/parser/JavaGrammar.java | aef44c46b1fa180097c72fc92d92caa9a93105f9 | [
"Apache-2.0"
] | permissive | runt18/metasyntactic | 4f18fd4644300ec8e97af885e0f0070e420d197c | 908ea84b51fcaead0a9051235d4967ccec0fb066 | refs/heads/master | 2021-01-10T04:32:55.077423 | 2016-03-22T18:40:13 | 2016-03-22T18:40:13 | 49,944,612 | 0 | 0 | null | 2016-03-22T18:40:14 | 2016-01-19T10:19:06 | C++ | UTF-8 | Java | false | false | 44,439 | java | package org.metasyntactic.automata.compiler.java.parser;
import org.metasyntactic.automata.compiler.framework.parsers.packrat.PackratGrammar;
import org.metasyntactic.automata.compiler.framework.parsers.packrat.Rule;
import org.metasyntactic.automata.compiler.framework.parsers.packrat.expressions.Expression;
import static org.metasyntactic.automata.compiler.framework.parsers.packrat.expressions.Expression.*;
import org.metasyntactic.automata.compiler.java.scanner.IdentifierToken;
import org.metasyntactic.automata.compiler.java.scanner.JavaToken;
import org.metasyntactic.automata.compiler.java.scanner.keywords.*;
import org.metasyntactic.automata.compiler.java.scanner.literals.LiteralToken;
import org.metasyntactic.automata.compiler.java.scanner.operators.*;
import org.metasyntactic.automata.compiler.java.scanner.separators.*;
import static org.metasyntactic.utilities.ReflectionUtilities.getSimpleName;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
/** @author [email protected] (Cyrus Najmabadi) */
public class JavaGrammar extends PackratGrammar<JavaToken.Type> {
private final static Rule javaStartRule;
private final static Set<Rule> javaRules;
static {
SeparatorToken.getSeparators();
OperatorToken.getOperators();
KeywordToken.getKeywords();
javaStartRule = new Rule("CompilationUnit",
sequence(optional(variable("PackageDeclaration")),
repetition(variable("ImportDeclaration")),
repetition(variable("TypeDeclaration")), endOfTokens()));
javaRules = new LinkedHashSet<Rule>();
javaRules.add(javaStartRule);
Set<Rule> rules = javaRules;
addCompilationUnit(rules);
addClassDeclaration(rules);
addInterfaceDeclaration(rules);
addEnumDeclaration(rules);
addAnnotationDeclaration(rules);
addMemberDeclarations(rules);
addTypes(rules);
addAnnotation(rules);
addStatements(rules);
addExpressions(rules);
addArrays(rules);
}
private static void addArrays(Set<Rule> rules) {
rules.add(new Rule("ArrayInitializer",
sequence(token(LeftCurlySeparatorToken.instance),
optionalDelimitedList(variable("VariableInitializer"),
token(CommaSeparatorToken.instance),
true),
token(RightCurlySeparatorToken.instance))));
rules.add(new Rule("VariableInitializer", choice(variable("ArrayInitializer"), variable("Expression"))));
}
private static void addTypes(Set<Rule> rules) {
rules.add(new Rule("TypeParameters",
sequence(token(LessThanOperatorToken.instance),
delimitedList(variable("TypeParameter"), token(CommaSeparatorToken.instance)),
token(GreaterThanOperatorToken.instance))));
rules.add(new Rule("TypeParameter",
sequence(identifier(),
optional(variable("TypeBound")))));
rules.add(new Rule("TypeBound",
sequence(token(ExtendsKeywordToken.instance),
delimitedList(variable("ClassOrInterfaceType"),
token(BitwiseAndOperatorToken.instance)))));
rules.add(new Rule("Type",
choice(variable("ReferenceType"),
variable("PrimitiveType"))));
rules.add(new Rule("ReferenceType",
choice(variable("PrimitiveArrayReferenceType"),
variable("ClassOrInterfaceReferenceType"))));
rules.add(new Rule("PrimitiveArrayReferenceType",
sequence(variable("PrimitiveType"),
oneOrMore(variable("BracketPair")))));
rules.add(new Rule("ClassOrInterfaceReferenceType",
sequence(variable("ClassOrInterfaceType"),
repetition(variable("BracketPair")))));
rules.add(new Rule("ClassOrInterfaceType",
// Identifier [TypeArguments] { . Identifier [TypeArguments]}
delimitedList(variable("SingleClassOrInterfaceType"),
token(DotSeparatorToken.instance))));
rules.add(new Rule("SingleClassOrInterfaceType",
sequence(identifier(),
optional(variable("TypeArguments")))));
rules.add(new Rule("TypeArguments",
sequence(token(LessThanOperatorToken.instance),
delimitedList(variable("TypeArgument"), token(CommaSeparatorToken.instance)),
token(GreaterThanOperatorToken.instance))));
rules.add(new Rule("TypeArgument",
choice(variable("ReferenceType"),
variable("WildcardTypeArgument"))));
rules.add(new Rule("WildcardTypeArgument",
choice(
variable("ExtendsWildcardTypeArgument"),
variable("SuperWildcardTypeArgument"),
variable("OpenWildcardTypeArgument"))));
rules.add(new Rule("ExtendsWildcardTypeArgument",
sequence(token(QuestionMarkOperatorToken.instance),
token(ExtendsKeywordToken.instance),
variable("ReferenceType"))));
rules.add(new Rule("SuperWildcardTypeArgument",
sequence(token(QuestionMarkOperatorToken.instance),
token(SuperKeywordToken.instance),
variable("ReferenceType"))));
rules.add(new Rule("OpenWildcardTypeArgument",
token(QuestionMarkOperatorToken.instance)));
rules.add(new Rule("NonWildcardTypeArguments",
sequence(token(LessThanOperatorToken.instance),
delimitedList(variable("ReferenceType"), token(CommaSeparatorToken.instance)),
token(GreaterThanOperatorToken.instance))));
rules.add(new Rule("PrimitiveType",
choice(token(ByteKeywordToken.instance), token(ShortKeywordToken.instance),
token(CharKeywordToken.instance), token(IntKeywordToken.instance),
token(LongKeywordToken.instance), token(FloatKeywordToken.instance),
token(DoubleKeywordToken.instance), token(BooleanKeywordToken.instance),
token(VoidKeywordToken.instance))));
}
private static void addEnumDeclaration(Set<Rule> rules) {
rules.add(new Rule("EnumDeclaration",
sequence(variable("Modifiers"),
token(EnumKeywordToken.instance),
identifier(),
optional(variable("Interfaces")),
variable("EnumBody"))));
rules.add(new Rule("EnumBody",
sequence(token(LeftCurlySeparatorToken.instance),
optionalDelimitedList(variable("EnumConstant"), token(CommaSeparatorToken.instance), true),
optional(token(SemicolonSeparatorToken.instance)),
repetition(variable("ClassBodyDeclaration")),
token(RightCurlySeparatorToken.instance))));
rules.add(new Rule("EnumConstant",
sequence(repetition(variable("Annotation")),
identifier(),
optional(variable("Arguments")),
optional(variable("ClassOrInterfaceBody")))));
rules.add(new Rule("Arguments",
sequence(token(LeftParenthesisSeparatorToken.instance),
optional(variable("DelimitedExpressionList")),
token(RightParenthesisSeparatorToken.instance))));
}
private static void addAnnotationDeclaration(Set<Rule> rules) {
rules.add(new Rule("AnnotationDeclaration",
sequence(variable("Modifiers"),
token(AtSeparatorToken.instance),
token(InterfaceKeywordToken.instance),
identifier(),
variable("AnnotationBody"))));
rules.add(new Rule("AnnotationBody",
sequence(token(LeftCurlySeparatorToken.instance),
repetition(variable("AnnotationElementDeclaration")),
token(RightCurlySeparatorToken.instance))));
rules.add(new Rule("AnnotationElementDeclaration",
choice(variable("AnnotationDefaultDeclaration"),
variable("ClassOrInterfaceMemberDeclaration"))));
rules.add(new Rule("AnnotationDefaultDeclaration",
sequence(variable("Modifiers"),
variable("Type"),
identifier(),
token(LeftParenthesisSeparatorToken.instance),
token(RightParenthesisSeparatorToken.instance),
token(DefaultKeywordToken.instance),
variable("ElementValue"))));
}
private static void addMemberDeclarations(Set<Rule> rules) {
rules.add(new Rule("ClassOrInterfaceMemberDeclaration",
choice(variable("FieldDeclaration"),
variable("MethodDeclaration"),
variable("TypeDeclaration"))));
rules.add(new Rule("ConstructorDeclaration",
sequence(variable("Modifiers"),
optional(variable("TypeParameters")),
identifier(),
token(LeftParenthesisSeparatorToken.instance),
optionalDelimitedList(variable("FormalParameter"), token(CommaSeparatorToken.instance)),
token(RightParenthesisSeparatorToken.instance),
optional(variable("Throws")),
variable("Block"))));
rules.add(new Rule("FieldDeclaration",
sequence(variable("Modifiers"),
variable("Type"),
delimitedList(variable("VariableDeclarator"), token(CommaSeparatorToken.instance)),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("VariableDeclarator",
choice(variable("VariableDeclaratorIdAndAssignment"),
variable("VariableDeclaratorId"))));
rules.add(new Rule("VariableDeclaratorIdAndAssignment",
sequence(variable("VariableDeclaratorId"),
token(EqualsOperatorToken.instance),
variable("VariableDeclaratorAssignment"))));
rules.add(new Rule("VariableDeclaratorAssignment",
choice(variable("Expression"),
variable("ArrayInitializer"))));
rules.add(new Rule("VariableDeclaratorId",
sequence(identifier(),
repetition(variable("BracketPair")))));
rules.add(new Rule("BracketPair",
sequence(token(LeftBracketSeparatorToken.instance),
token(RightBracketSeparatorToken.instance))));
rules.add(new Rule("MethodDeclaration",
sequence(variable("Modifiers"),
optional(variable("TypeParameters")),
variable("Type"),
identifier(),
token(LeftParenthesisSeparatorToken.instance),
optionalDelimitedList(variable("FormalParameter"), token(CommaSeparatorToken.instance)),
token(RightParenthesisSeparatorToken.instance),
repetition(variable("BracketPair")),
optional(variable("Throws")),
variable("MethodBody"))));
rules.add(new Rule("MethodBody",
choice(variable("Block"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("FormalParameter",
sequence(variable("Modifiers"),
variable("Type"),
optional(token(EllipsisSeparatorToken.instance)),
variable("VariableDeclaratorId"))));
rules.add(new Rule("Throws",
sequence(token(ThrowsKeywordToken.instance),
delimitedList(variable("ClassOrInterfaceType"), token(CommaSeparatorToken.instance)))));
}
private static Expression literal() {
return type(getSimpleName(LiteralToken.class), LiteralToken.getLiteralValues());
}
private static void addExpressions(Set<Rule> rules) {
rules.add(new Rule("Expression",
delimitedList(variable("Expression1"), variable("AssignmentOperator"))));
/*
choice(
variable("AssignmentExpression"),
variable("Expression1"))
));
rules.add(new Rule("AssignmentExpression",
sequence(
variable("Expression1"),
variable("AssignmentOperator"),
variable("Expression1")
)));
*/
rules.add(new Rule("AssignmentOperator",
choice(token(EqualsOperatorToken.instance),
token(PlusEqualsOperatorToken.instance),
token(MinusEqualsOperatorToken.instance),
token(TimesEqualsOperatorToken.instance),
token(DivideEqualsOperatorToken.instance),
token(AndEqualsOperatorToken.instance),
token(OrEqualsOperatorToken.instance),
token(ExclusiveOrEqualsOperatorToken.instance),
token(ModulusEqualsOperatorToken.instance),
token(LeftShiftEqualsOperatorToken.instance),
token(RightShiftEqualsOperatorToken.instance),
token(BitwiseRightShiftEqualsOperatorToken.instance))));
rules.add(new Rule("Expression1",
choice(variable("TernaryExpression"),
variable("Expression2"))));
rules.add(new Rule("TernaryExpression",
sequence(variable("Expression2"),
token(QuestionMarkOperatorToken.instance),
variable("Expression"),
token(ColonOperatorToken.instance),
variable("Expression1"))));
rules.add(new Rule("Expression2",
choice(variable("BinaryExpression"),
variable("Expression3"))));
rules.add(new Rule("BinaryExpression",
sequence(variable("Expression3"),
oneOrMore(variable("BinaryExpressionRest")))));
rules.add(new Rule("BinaryExpressionRest",
choice(variable("InfixOperatorBinaryExpressionRest"),
variable("InstanceofOperatorBinaryExpressionRest"))));
rules.add(new Rule("InfixOperatorBinaryExpressionRest",
sequence(variable("InfixOperator"),
variable("Expression3"))));
rules.add(new Rule("InstanceofOperatorBinaryExpressionRest",
sequence(token(InstanceofKeywordToken.instance),
variable("Type"))));
rules.add(new Rule("InfixOperator",
choice(token(LogicalOrOperatorToken.instance),
token(LogicalAndOperatorToken.instance),
token(BitwiseOrOperatorToken.instance),
token(BitwiseExclusiveOrOperatorToken.instance),
token(BitwiseAndOperatorToken.instance),
token(EqualsEqualsOperatorToken.instance),
token(NotEqualsOperatorToken.instance),
token(LessThanOperatorToken.instance),
token(LessThanOrEqualsOperatorToken.instance),
token(GreaterThanOrEqualsOperatorToken.instance),
token(LeftShiftOperatorToken.instance),
variable("UnsignedRightShift"),
variable("SignedRightShift"),
token(GreaterThanOperatorToken.instance),
token(PlusOperatorToken.instance),
token(MinusOperatorToken.instance),
token(TimesOperatorToken.instance),
token(DivideOperatorToken.instance),
token(ModulusOperatorToken.instance))));
rules.add(new Rule("UnsignedRightShift",
sequence(token(GreaterThanOperatorToken.instance),
token(GreaterThanOperatorToken.instance),
token(GreaterThanOperatorToken.instance))));
rules.add(new Rule("SignedRightShift",
sequence(token(GreaterThanOperatorToken.instance),
token(GreaterThanOperatorToken.instance))));
rules.add(new Rule("Expression3",
choice(variable("PrefixExpression"),
variable("PossibleCastExpression"),
variable("PrimaryExpression"))));
rules.add(new Rule("PrefixExpression",
sequence(variable("PrefixOperator"),
variable("Expression3"))));
rules.add(new Rule("PrefixOperator",
choice(token(IncrementOperatorToken.instance),
token(DecrementOperatorToken.instance),
token(LogicalNotOperatorToken.instance),
token(BitwiseNotOperatorToken.instance),
token(PlusOperatorToken.instance),
token(MinusOperatorToken.instance))));
rules.add(new Rule("PossibleCastExpression",
choice(variable("PossibleCastExpression_Type"),
variable("PossibleCastExpression_Expression"))));
rules.add(new Rule("PossibleCastExpression_Type",
sequence(token(LeftParenthesisSeparatorToken.instance),
variable("Type"),
token(RightParenthesisSeparatorToken.instance),
variable("Expression3"))));
rules.add(new Rule("PossibleCastExpression_Expression",
sequence(token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
variable("Expression3"))));
rules.add(new Rule("PrimaryExpression",
sequence(variable("ValueExpression"),
repetition(variable("Selector")),
optional(variable("PostfixOperator")))));
rules.add(new Rule("PostfixOperator",
choice(token(IncrementOperatorToken.instance),
token(DecrementOperatorToken.instance))));
rules.add(new Rule("ValueExpression",
choice(variable("ParenthesizedExpression"),
variable("MethodInvocation"),
variable("ThisConstructorInvocation"),
variable("SuperConstructorInvocation"),
token(ThisKeywordToken.instance),
token(SuperKeywordToken.instance),
variable("ClassAccess"),
literal(),
identifier(),
variable("CreationExpression"))));
rules.add(new Rule("ClassAccess",
sequence(variable("Type"),
token(DotSeparatorToken.instance),
token(ClassKeywordToken.instance))));
rules.add(new Rule("Selector",
choice(variable("DotSelector"),
variable("ArraySelector"))));
rules.add(new Rule("DotSelector",
sequence(token(DotSeparatorToken.instance),
variable("ValueExpression"))));
rules.add(new Rule("ArraySelector",
sequence(token(LeftBracketSeparatorToken.instance),
variable("Expression"),
token(RightBracketSeparatorToken.instance))));
rules.add(new Rule("ParenthesizedExpression",
sequence(token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance))));
rules.add(new Rule("MethodInvocation",
sequence(optional(variable("NonWildcardTypeArguments")),
identifier(),
variable("Arguments"))));
rules.add(new Rule("ThisConstructorInvocation",
sequence(token(ThisKeywordToken.instance),
variable("Arguments"))));
rules.add(new Rule("SuperConstructorInvocation",
sequence(token(SuperKeywordToken.instance),
variable("Arguments"))));
rules.add(new Rule("CreationExpression",
choice(variable("ObjectCreationExpression"),
variable("ArrayCreationExpression"))));
rules.add(new Rule("ObjectCreationExpression",
sequence(token(NewKeywordToken.instance),
optional(variable("NonWildcardTypeArguments")),
variable("ClassOrInterfaceType"),
variable("Arguments"),
optional(variable("ClassBody")))));
rules.add(new Rule("ArrayCreationExpression",
sequence(token(NewKeywordToken.instance),
variable("ArrayCreationType"),
oneOrMore(variable("DimensionExpression")),
optional(variable("ArrayInitializer")))));
rules.add(new Rule("ArrayCreationType",
choice(variable("ClassOrInterfaceType"),
variable("PrimitiveType"))));
rules.add(new Rule("DimensionExpression",
sequence(token(LeftBracketSeparatorToken.instance),
optional(variable("Expression")),
token(RightBracketSeparatorToken.instance))));
}
private static void addStatements(Set<Rule> rules) {
rules.add(new Rule("Block",
sequence(token(LeftCurlySeparatorToken.instance),
repetition(variable("BlockStatement")),
token(RightCurlySeparatorToken.instance))));
rules.add(new Rule("BlockStatement",
choice(variable("LocalVariableDeclarationStatement"),
variable("ClassDeclaration"),
variable("Statement"))));
rules.add(new Rule("LocalVariableDeclarationStatement",
sequence(variable("LocalVariableDeclaration"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("LocalVariableDeclaration",
sequence(variable("Modifiers"),
variable("Type"),
delimitedList(variable("VariableDeclarator"), token(CommaSeparatorToken.instance)))));
rules.add(new Rule("Statement",
choice(variable("Block"), variable("EmptyStatement"),
variable("ExpressionStatement"), variable("AssertStatement"),
variable("SwitchStatement"), variable("DoStatement"),
variable("BreakStatement"), variable("ContinueStatement"),
variable("ReturnStatement"), variable("SynchronizedStatement"),
variable("ThrowStatement"), variable("TryStatement"),
variable("LabeledStatement"), variable("IfStatement"),
variable("WhileStatement"), variable("ForStatement"))));
rules.add(new Rule("EmptyStatement",
token(SemicolonSeparatorToken.instance)));
rules.add(new Rule("LabeledStatement",
sequence(identifier(),
token(ColonOperatorToken.instance),
variable("Statement"))));
rules.add(new Rule("ExpressionStatement",
sequence(variable("Expression"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("IfStatement",
sequence(token(IfKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
variable("Statement"),
optional(variable("ElseStatement")))));
rules.add(new Rule("ElseStatement",
sequence(token(ElseKeywordToken.instance),
variable("Statement"))));
rules.add(new Rule("AssertStatement",
choice(variable("MessageAssertStatement"),
variable("SimpleAssertStatement"))));
rules.add(new Rule("MessageAssertStatement",
sequence(token(AssertKeywordToken.instance),
variable("Expression"),
token(ColonOperatorToken.instance),
variable("Expression"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("SimpleAssertStatement",
sequence(token(AssertKeywordToken.instance),
variable("Expression"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("SwitchStatement",
sequence(token(SwitchKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
token(LeftCurlySeparatorToken.instance),
repetition(variable("SwitchBlockStatementGroup")),
repetition(variable("SwitchLabel")),
token(RightCurlySeparatorToken.instance))));
rules.add(new Rule("SwitchBlockStatementGroup",
sequence(oneOrMore(variable("SwitchLabel")),
oneOrMore(variable("BlockStatement")))));
rules.add(new Rule("SwitchLabel",
choice(variable("CaseSwitchLabel"),
variable("DefaultSwitchLabel"))));
rules.add(new Rule("CaseSwitchLabel",
sequence(token(CaseKeywordToken.instance),
variable("Expression"),
token(ColonOperatorToken.instance))));
rules.add(new Rule("DefaultSwitchLabel",
sequence(token(DefaultKeywordToken.instance),
token(ColonOperatorToken.instance))));
rules.add(new Rule("WhileStatement",
sequence(token(WhileKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
variable("Statement"))));
rules.add(new Rule("DoStatement",
sequence(token(DoKeywordToken.instance),
variable("Statement"),
token(WhileKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("ForStatement",
choice(variable("BasicForStatement"),
variable("EnhancedForStatement"))));
rules.add(new Rule("BasicForStatement",
sequence(token(ForKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
optional(variable("ForInitializer")),
token(SemicolonSeparatorToken.instance),
optional(variable("Expression")),
token(SemicolonSeparatorToken.instance),
optional(variable("DelimitedExpressionList")),
token(RightParenthesisSeparatorToken.instance),
variable("Statement"))));
rules.add(new Rule("ForInitializer",
choice(variable("LocalVariableDeclaration"),
variable("DelimitedExpressionList"))));
rules.add(new Rule("DelimitedExpressionList",
delimitedList(variable("Expression"),
token(CommaSeparatorToken.instance))));
rules.add(new Rule("EnhancedForStatement",
sequence(token(ForKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("Modifiers"),
variable("Type"),
identifier(),
token(ColonOperatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
variable("Statement"))));
rules.add(new Rule("BreakStatement",
sequence(token(BreakKeywordToken.instance),
optional(identifier()),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("ContinueStatement",
sequence(token(ContinueKeywordToken.instance),
optional(identifier()),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("ReturnStatement",
sequence(token(ReturnKeywordToken.instance),
optional(variable("Expression")),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("ThrowStatement",
sequence(token(ThrowKeywordToken.instance),
optional(variable("Expression")),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("SynchronizedStatement",
sequence(token(SynchronizedKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("Expression"),
token(RightParenthesisSeparatorToken.instance),
variable("Block"))));
rules.add(new Rule("TryStatement",
choice(variable("TryStatementWithFinally"),
variable("TryStatementWithoutFinally"))));
rules.add(new Rule("TryStatementWithFinally",
sequence(token(TryKeywordToken.instance),
variable("Block"),
repetition(variable("CatchClause")),
token(FinallyKeywordToken.instance),
variable("Block"))));
rules.add(new Rule("TryStatementWithoutFinally",
sequence(token(TryKeywordToken.instance),
variable("Block"),
oneOrMore(variable("CatchClause")))));
rules.add(new Rule("CatchClause",
sequence(token(CatchKeywordToken.instance),
token(LeftParenthesisSeparatorToken.instance),
variable("FormalParameter"),
token(RightParenthesisSeparatorToken.instance),
variable("Block"))));
}
private static Expression identifier() {
return type(getSimpleName(IdentifierToken.class), IdentifierToken.getTypeValue());
}
private static void addInterfaceDeclaration(Set<Rule> rules) {
rules.add(new Rule("InterfaceDeclaration",
choice(variable("NormalInterfaceDeclaration"),
variable("AnnotationDeclaration"))));
rules.add(new Rule("NormalInterfaceDeclaration",
sequence(variable("Modifiers"),
token(InterfaceKeywordToken.instance),
identifier(),
optional(variable("TypeParameters")),
optional(variable("ExtendsInterfaces")),
variable("ClassOrInterfaceBody"))));
rules.add(new Rule("ExtendsInterfaces",
sequence(token(ExtendsKeywordToken.instance),
delimitedList(variable("ClassOrInterfaceType"), token(CommaSeparatorToken.instance)))));
rules.add(new Rule("ClassOrInterfaceBody",
sequence(token(LeftCurlySeparatorToken.instance),
repetition(variable("ClassOrInterfaceMemberDeclaration")),
token(RightCurlySeparatorToken.instance))));
}
private static void addClassDeclaration(Set<Rule> rules) {
rules.add(new Rule("ClassDeclaration",
choice(variable("NormalClassDeclaration"),
variable("EnumDeclaration"))));
rules.add(new Rule("NormalClassDeclaration",
sequence(variable("Modifiers"),
token(ClassKeywordToken.instance),
identifier(),
optional(variable("TypeParameters")),
optional(variable("Super")),
optional(variable("Interfaces")),
variable("ClassBody"))));
rules.add(new Rule("Modifiers",
repetition(variable("Modifier"))));
rules.add(new Rule("Modifier",
choice(variable("Annotation"), token(PublicKeywordToken.instance),
token(ProtectedKeywordToken.instance), token(PrivateKeywordToken.instance),
token(StaticKeywordToken.instance), token(AbstractKeywordToken.instance),
token(FinalKeywordToken.instance), token(NativeKeywordToken.instance),
token(SynchronizedKeywordToken.instance),
token(TransientKeywordToken.instance), token(VolatileKeywordToken.instance),
token(StrictfpKeywordToken.instance))));
rules.add(new Rule("Super",
sequence(token(ExtendsKeywordToken.instance),
variable("ClassOrInterfaceType"))));
rules.add(new Rule("Interfaces",
sequence(token(ImplementsKeywordToken.instance),
delimitedList(variable("ClassOrInterfaceType"), token(CommaSeparatorToken.instance)))));
rules.add(new Rule("ClassBody",
sequence(token(LeftCurlySeparatorToken.instance),
repetition(variable("ClassBodyDeclaration")),
token(RightCurlySeparatorToken.instance))));
rules.add(new Rule("ClassBodyDeclaration",
choice(variable("ClassOrInterfaceMemberDeclaration"),
variable("Block"),
variable("StaticInitializer"),
variable("ConstructorDeclaration"))));
rules.add(new Rule("StaticInitializer",
sequence(token(StaticKeywordToken.instance),
variable("Block"))));
}
private static Expression optionalDelimitedList(Expression element, Expression delimiter) {
return optional(delimitedList(element, delimiter));
}
private static Expression optionalDelimitedList(Expression element, Expression delimiter, boolean allowsTrailingDelimiter) {
return optional(delimitedList(element, delimiter, allowsTrailingDelimiter));
}
private static void addCompilationUnit(Set<Rule> rules) {
rules.add(new Rule("PackageDeclaration",
sequence(repetition(variable("Annotation")),
token(PackageKeywordToken.instance),
variable("QualifiedIdentifier"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("QualifiedIdentifier",
delimitedList(identifier(), token(DotSeparatorToken.instance))));
rules.add(new Rule("ImportDeclaration",
choice(variable("SingleTypeImportDeclaration"),
variable("TypeImportOnDemandDeclaration"),
variable("SingleStaticImportDeclaration"),
variable("StaticImportOnDemandDeclaration"))));
rules.add(new Rule("SingleTypeImportDeclaration",
sequence(token(ImportKeywordToken.instance),
variable("QualifiedIdentifier"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("TypeImportOnDemandDeclaration",
sequence(token(ImportKeywordToken.instance),
variable("QualifiedIdentifier"),
token(DotSeparatorToken.instance),
token(TimesOperatorToken.instance),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("SingleStaticImportDeclaration",
sequence(token(ImportKeywordToken.instance),
token(StaticKeywordToken.instance),
variable("QualifiedIdentifier"),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("StaticImportOnDemandDeclaration",
sequence(token(ImportKeywordToken.instance),
token(StaticKeywordToken.instance),
variable("QualifiedIdentifier"),
token(DotSeparatorToken.instance),
token(TimesOperatorToken.instance),
token(SemicolonSeparatorToken.instance))));
rules.add(new Rule("TypeDeclaration",
choice(variable("ClassDeclaration"),
variable("InterfaceDeclaration"),
token(SemicolonSeparatorToken.instance))));
}
private static void addAnnotation(Set<Rule> rules) {
rules.add(new Rule("Annotation",
choice(variable("NormalAnnotation"),
variable("SingleElementAnnotation"),
variable("MarkerAnnotation"))));
rules.add(new Rule("NormalAnnotation",
sequence(token(AtSeparatorToken.instance),
variable("QualifiedIdentifier"),
token(LeftParenthesisSeparatorToken.instance),
optionalDelimitedList(variable("ElementValuePair"),
token(CommaSeparatorToken.instance)),
token(RightParenthesisSeparatorToken.instance))));
rules.add(new Rule("ElementValuePair",
sequence(identifier(),
token(EqualsOperatorToken.instance),
variable("ElementValue"))));
rules.add(new Rule("SingleElementAnnotation",
sequence(token(AtSeparatorToken.instance),
variable("QualifiedIdentifier"),
token(LeftParenthesisSeparatorToken.instance),
variable("ElementValue"),
token(RightParenthesisSeparatorToken.instance))));
rules.add(
new Rule("MarkerAnnotation",
sequence(token(AtSeparatorToken.instance),
variable("QualifiedIdentifier"))));
rules.add(new Rule("ElementValue",
choice(variable("Annotation"),
variable("Expression"),
variable("ElementValueArrayInitializer"))));
rules.add(new Rule("ElementValueArrayInitializer",
sequence(token(LeftCurlySeparatorToken.instance),
optionalDelimitedList(variable("ElementValue"),
token(CommaSeparatorToken.instance),
true),
optional(token(CommaSeparatorToken.instance)),
token(RightCurlySeparatorToken.instance))));
}
public static final JavaGrammar instance = new JavaGrammar();
private JavaGrammar() {
super(javaStartRule, javaRules);
}
public JavaToken.Type getTokenFromTerminal(int type) {
return JavaToken.Type.values()[type];
}
protected Set<Integer> getTerminalsWorker() {
return JavaToken.getValues();
}
protected double prefixCost(List<Integer> tokens) {
if (tokens == null) {
return Float.MAX_VALUE;
}
double cost = 0;
for (int terminal : tokens) {
JavaToken.Type token = getTokenFromTerminal(terminal);
// @ means annotation, and we never really want to insert that.
if (token == JavaToken.Type.AtSeparator) {
cost += 100;
} else if (token == JavaToken.Type.Identifier) {
cost += 0.75;
} else {
cost++;
}
}
return cost;
}
} | [
"cyrus.najmabadi@d0982328-d147-0410-9e64-db1d7fe6b3aa"
] | cyrus.najmabadi@d0982328-d147-0410-9e64-db1d7fe6b3aa |
139272a6594ddfbdba1a88c1806623bcbd83dea6 | 4b100ae461cae856312f72dbcd6db3b365369d19 | /clouddesigner/org.occiware.clouddesigner.occi.monitoring.ext.connector.backend/src/org/occiware/clouddesigner/occi/monitoring/ext/connector/backend/utils/metric/CPUPercentMetric.java | 8807435f36f4e85d155adae73902afa2f9f0747d | [] | no_license | occiware/ecore | b82642219bc738b050116db38fed7ecad56eee1e | d63cd110f60efdc773d165ee86b607ec4a4d5172 | refs/heads/master | 2021-01-23T11:34:07.724745 | 2017-09-19T15:10:43 | 2017-09-19T15:10:43 | 30,288,774 | 13 | 17 | null | 2017-08-08T09:52:15 | 2015-02-04T08:22:39 | Java | UTF-8 | Java | false | false | 1,199 | java | /**
* Copyright (c) 2017 Inria
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* - Christophe Gourdin <[email protected]>
*
*/
package org.occiware.clouddesigner.occi.monitoring.ext.connector.backend.utils.metric;
import org.occiware.clouddesigner.occi.monitoring.ext.connector.backend.CollectorType;
import org.occiware.driver.ssh.SSHShellThread;
public class CPUPercentMetric extends SSHMetric {
public CPUPercentMetric(String name) {
super(name);
setOutputNames(new String[] { CollectorType.MIXIN_METRIC_CPU_PERCENT });
}
public CPUPercentMetric(String name, SSHShellThread monitor) {
super(name, monitor);
setOutputNames(new String[] { CollectorType.MIXIN_METRIC_CPU_PERCENT });
}
@Override
public String get(String channelName) throws NoSuchFieldException {
String value = super.get(channelName);
// System.out.println("Value from cpupercentmetric: " + value + " -->
// from channel name : " + channelName);
return value;
}
}
| [
"[email protected]"
] | |
4c82e8ba62c3e92d59752e517d160912b4865d2e | d1f2e3fbf6246f679ea12fce5ac732c07301c545 | /src/main/java/com/example/challengeAlkemy/controller/RestExceptionHandler.java | 61716ac3837690bc0141a98f658693ae9d7d0165 | [] | no_license | Celeste-Miranda/challengeAlkemy | 25f4c4944123925795fbace576840a0f5890376a | 3063abcf6b9acf1950158f777e07a8982c1fb718 | refs/heads/main | 2023-08-05T00:51:03.790260 | 2021-09-05T01:40:57 | 2021-09-05T01:40:57 | 403,185,077 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,987 | java |
package com.example.challengeAlkemy.controller;
import com.example.challengeAlkemy.exception.ErrorApp;
import com.example.challengeAlkemy.exception.InvalidDataException;
import java.util.Date;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.stream.Collectors;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
@ControllerAdvice
public class RestExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler
protected ResponseEntity<ErrorApp> handleException(NoSuchElementException exc) {
HttpStatus httpStatus = HttpStatus.BAD_REQUEST;
return buildResponseEntity(httpStatus, exc);
}
@ExceptionHandler
protected ResponseEntity<ErrorApp> handleException(DuplicateKeyException exc) {
HttpStatus httpStatus = HttpStatus.BAD_REQUEST;
return buildResponseEntity(httpStatus, exc);
}
@ExceptionHandler
protected ResponseEntity<ErrorApp> handleException(IllegalArgumentException exc) {
HttpStatus httpStatus = HttpStatus.BAD_REQUEST;
return buildResponseEntity(httpStatus, exc);
}
@ExceptionHandler
protected ResponseEntity<ErrorApp> handleException(InvalidDataException exc) {
HttpStatus httpStatus = HttpStatus.BAD_REQUEST;
List<String> errors = exc.getResult().getFieldErrors().stream().map(FieldError::getDefaultMessage)
.collect(Collectors.toList());
return buildResponseEntity(httpStatus, new RuntimeException("Data enviada es invalida"), errors);
}
@ExceptionHandler
protected ResponseEntity<ErrorApp> handleException(MethodArgumentTypeMismatchException exc) {
HttpStatus httpStatus = HttpStatus.BAD_REQUEST;
return buildResponseEntity(httpStatus, new RuntimeException("Tipo de Argumento invalido"));
}
@ExceptionHandler
protected ResponseEntity<ErrorApp> handleException(Exception exc) {
HttpStatus httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
return buildResponseEntity(httpStatus, new RuntimeException("Se presento un problema, reporte e intente luego."));
}
private ResponseEntity<ErrorApp> buildResponseEntity(HttpStatus httpStatus, Exception exc) {
return buildResponseEntity(httpStatus, exc, null);
}
private ResponseEntity<ErrorApp> buildResponseEntity(HttpStatus httpStatus, Exception exc, List<String> errors) {
ErrorApp error = new ErrorApp();
error.setMessage( exc.getMessage());
error.setStatus(httpStatus.value());
error.setTimestamp(new Date());
error.setErrors(errors);
return new ResponseEntity<>(error, httpStatus);
}
}
| [
"[email protected]"
] | |
68265972a77f266c0b5207b2b22773ba64ce08fa | adf92315aa1c1db44ada6fb92365b9b663dd2d5b | /src/br/com/fabianodarolt/pousada/Model/UnidadeHabitacional.java | 429216a253c2acc95d6ae665ca62a845ee759df5 | [] | no_license | fdarolt/Projeto-Pousada-2-Entrega-Endere-o | 1946052beaa70983da28fe495368204cc05b057a | 2be6db4919526f2cb847592c1064dd8d7d2c3c6a | refs/heads/master | 2021-01-23T13:58:57.967737 | 2013-10-28T23:11:30 | 2013-10-28T23:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,604 | java | package br.com.fabianodarolt.pousada.Model;
public class UnidadeHabitacional {
//INSTANCIAR ATRIBUTOS
private int idUnidadeHabitacional;
private String nomeUnidade;
private String categoriaUnidade;
private String descricaoUnidade;
private double valorUnidadeUnidade;
private double margemLucroUnidade;
private double valorFinalUnidade;
//GERAR CONSTRUTOR
public UnidadeHabitacional() {
}
//INSTANCIAR METODOS ACESSORES
public int getId() {
return idUnidadeHabitacional;
}
public void setId(int id) {
this.idUnidadeHabitacional = idUnidadeHabitacional;
}
public String getNomeUnidade() {
return nomeUnidade;
}
public void setNomeUnidade(String nomeUnidade) {
this.nomeUnidade = nomeUnidade;
}
public String getCategoriaUnidade() {
return categoriaUnidade;
}
public void setCategoriaUnidade(String categoriaUnidade) {
this.categoriaUnidade = categoriaUnidade;
}
public String getDescricaoUnidade() {
return descricaoUnidade;
}
public void setDescricaoUnidade(String descricaoUnidade) {
this.descricaoUnidade = descricaoUnidade;
}
//INSTANCIAR METODO TO STRING
@Override
public String toString() {
return "UnidadeHabitacional{" + "idUnidadeHabitacional=" + idUnidadeHabitacional + ", nomeUnidade=" + nomeUnidade + ", categoriaUnidade=" + categoriaUnidade + ", descricaoUnidade=" + descricaoUnidade + '}';
}
}
| [
"Fabiano@Fabiano-Laptop"
] | Fabiano@Fabiano-Laptop |
bfd269fdbef30f0d23bdc9bb23bb04a934f4f61b | bb9963521503d04f64271afb269abdb633491661 | /src/main/java/com/maps/web/rest/errors/ExceptionTranslator.java | 8f28752bdc750ff613ea139d5dd6a03c96a122bc | [] | no_license | BulkSecurityGeneratorProject/maps | dc831c936d9602b5c1f08a7538752d09bf499861 | d13759a21fff6a0dab36daa173a5b00d3fb8f7f4 | refs/heads/master | 2022-12-09T04:16:26.019548 | 2016-02-29T17:54:01 | 2016-02-29T17:54:01 | 296,591,002 | 0 | 0 | null | 2020-09-18T10:37:07 | 2020-09-18T10:37:06 | null | UTF-8 | Java | false | false | 2,537 | java | package com.maps.web.rest.errors;
import java.util.List;
import org.springframework.dao.ConcurrencyFailureException;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.HttpRequestMethodNotSupportedException;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.*;
/**
* Controller advice to translate the server side exceptions to client-friendly json structures.
*/
@ControllerAdvice
public class ExceptionTranslator {
@ExceptionHandler(ConcurrencyFailureException.class)
@ResponseStatus(HttpStatus.CONFLICT)
@ResponseBody
public ErrorDTO processConcurencyError(ConcurrencyFailureException ex) {
return new ErrorDTO(ErrorConstants.ERR_CONCURRENCY_FAILURE);
}
@ExceptionHandler(MethodArgumentNotValidException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
@ResponseBody
public ErrorDTO processValidationError(MethodArgumentNotValidException ex) {
BindingResult result = ex.getBindingResult();
List<FieldError> fieldErrors = result.getFieldErrors();
return processFieldErrors(fieldErrors);
}
@ExceptionHandler(CustomParameterizedException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
@ResponseBody
public ParameterizedErrorDTO processParameterizedValidationError(CustomParameterizedException ex) {
return ex.getErrorDTO();
}
@ExceptionHandler(AccessDeniedException.class)
@ResponseStatus(HttpStatus.FORBIDDEN)
@ResponseBody
public ErrorDTO processAccessDeniedExcpetion(AccessDeniedException e) {
return new ErrorDTO(ErrorConstants.ERR_ACCESS_DENIED, e.getMessage());
}
private ErrorDTO processFieldErrors(List<FieldError> fieldErrors) {
ErrorDTO dto = new ErrorDTO(ErrorConstants.ERR_VALIDATION);
for (FieldError fieldError : fieldErrors) {
dto.add(fieldError.getObjectName(), fieldError.getField(), fieldError.getCode());
}
return dto;
}
@ExceptionHandler(HttpRequestMethodNotSupportedException.class)
@ResponseBody
@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)
public ErrorDTO processMethodNotSupportedException(HttpRequestMethodNotSupportedException exception) {
return new ErrorDTO(ErrorConstants.ERR_METHOD_NOT_SUPPORTED, exception.getMessage());
}
}
| [
"[email protected]"
] | |
f88ca56bbc57fe45fd8a2701dbe874e5a95606d4 | 8619daabb4f8a799e23bc65aa50988301f8f86f2 | /app/src/main/java/com/ostan/cachemanagement/examples/MainActivity.java | 3686c04db54d7ed073cc94c2a477fdd8f05aff84 | [] | no_license | ostanmarc/CacheManagement | 2279cdcc20ad02a392c4b5b9cd991f13403903f9 | 848c6f7fe5c75352bf1cd1675da65a563301102f | refs/heads/master | 2021-01-10T06:02:54.179186 | 2016-03-14T22:30:15 | 2016-03-14T22:30:15 | 53,896,776 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,673 | java | package com.ostan.cachemanagement.examples;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import com.ostan.cachemanagement.R;
import com.ostan.cachemanagement.cache.ImageCacheableTask;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
final ImageView imageView = (ImageView) findViewById(R.id.imageView);
// Example 1:
ImageCacheableTask.setNetworkImageToView(this,
"http://voices.nationalgeographic.com/files/2014/08/NationalGeographic_1272918.jpg",
imageView, R.mipmap.ic_launcher, R.mipmap.ic_launcher);
// Example 2:
new ImageCacheableTask<Drawable>(this, new ImageCacheableTask.DataReceivedCallback<Drawable>() {
@Override
public void onDataReceived(Drawable data) {
imageView.setImageDrawable(data);
}
}).execute("http://voices.nationalgeographic.com/files/2014/08/NationalGeographic_1272918.jpg");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
| [
"[email protected]"
] | |
b333da8a794256823924e594c5f4e2c9e5fabbb4 | 3c432492088225019ccd691aa17c9d099fd14fd9 | /app/src/main/java/app/patikab/elayang/CommentActivity.java | e9c2e4541997683892770a915a8dd10a84b0c4e2 | [
"MIT"
] | permissive | NovaSampoerna24/elayang-pati | e3f46a6d35d2a88fdc8b19170146fbed81d1bc28 | 7bbe39b82ac95d122596ac3190822ceb1b824365 | refs/heads/master | 2021-01-04T16:09:43.226111 | 2020-02-15T01:52:40 | 2020-02-15T01:52:40 | 240,629,316 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,438 | java | package app.patikab.elayang;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import com.android.volley.Request;
import com.google.gson.Gson;
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 app.patikab.elayang.adapter.ListCommentAdapter;
import app.patikab.elayang.jsonReq.AddKomentar;
import app.patikab.elayang.jsonReq.ListKomentar;
import app.patikab.elayang.model.Comment;
import app.patikab.elayang.util.Config;
import app.patikab.elayang.util.Endpoint;
import app.patikab.elayang.util.RequestHandler;
public class CommentActivity extends AppCompatActivity implements ListCommentAdapter.ICommentAdapter, RequestHandler.IParse {
@BindView(R.id.editTextKomentar)
EditText etKomentar;
@BindView(R.id.buttonSend)
ImageView btnSend;
@BindView(R.id.recyclerViewComment)
RecyclerView rvComment;
ListCommentAdapter commentAdapter;
List<Comment> comments = new ArrayList<>();
String idSurat = null;
String idDispo = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comment);
ButterKnife.bind(this);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
commentAdapter = new ListCommentAdapter(this, this, comments);
LinearLayoutManager layoutManager = new LinearLayoutManager(this);
layoutManager.setReverseLayout(false);
layoutManager.setStackFromEnd(true);
rvComment.setLayoutManager(layoutManager);
rvComment.setAdapter(commentAdapter);
idSurat = getIntent().getStringExtra(Config.INTENT_ID_MAIL);
idDispo = getIntent().getStringExtra(Config.INTENT_ID_DISPO);
btnSend.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!etKomentar.getText().toString().isEmpty()) {
reqAddComment();
}
}
});
reqListComment();
}
private void reqListComment() {
ListKomentar listKomentar = new ListKomentar();
listKomentar.setId_surat_masuk(idSurat);
listKomentar.setId_disposisi(idDispo);
listKomentar.setPage("1");
listKomentar.setLimit("100");
String jsonReq = new Gson().toJson(listKomentar);
try {
RequestHandler handler = new RequestHandler(this, this);
handler.request(Request.Method.GET, Endpoint.KOMENTAR_LIST, new JSONObject(jsonReq));
} catch (JSONException e) {
e.printStackTrace();
}
}
private void reqAddComment() {
AddKomentar addKomentar = new AddKomentar();
addKomentar.setId_surat_masuk(idSurat);
addKomentar.setId_disposisi(idDispo);
addKomentar.setIsi_komentar(etKomentar.getText().toString());
String jsonReq = new Gson().toJson(addKomentar);
try {
RequestHandler handler = new RequestHandler(this, this);
handler.request(Request.Method.POST, Endpoint.KOMENTAR_ADD, new JSONObject(jsonReq));
} catch (JSONException e) {
e.printStackTrace();
}
}
@Override
public void onClick(String id, String data, View view) {
}
@Override
public void parseResponses(Boolean isSuccess, String method, String data) {
if (isSuccess) {
if (method.equals(Endpoint.KOMENTAR_LIST)) {
try {
JSONObject object = new JSONObject(data);
JSONArray array = object.getJSONObject("data").getJSONArray("data");
for (int i = 0; i < array.length(); i++) {
JSONObject o = array.getJSONObject(i);
JSONObject oProfile = o.getJSONObject("pengirim_");
Comment comment = new Comment();
comment.setId(o.getString("id"));
comment.setIsi_komentar(o.getString("isi_komentar"));
comment.setTgl(o.getString("tgl"));
comment.setNama_lengkap(oProfile.getString("nama_lengkap"));
comment.setNip(oProfile.getString("nip"));
comments.add(comment);
}
commentAdapter.notifyDataSetChanged();
rvComment.scrollToPosition(comments.size() - 1);
} catch (JSONException e) {
e.printStackTrace();
}
} else if (method.equals(Endpoint.KOMENTAR_ADD)) {
etKomentar.setText("");
comments.clear();
reqListComment();
}
}
}
}
| [
"[email protected]"
] | |
fd66568619e936e75e74a57be5dc0b670646a8cd | 04f90b7629c64ae4cd123fc96d0208f8b2590c3e | /src/main/java/org/vaporwarecorp/doorbell/config/AsyncConfiguration.java | d7a94cf7e71c02c80fbf4b53198f047e8f50ee0a | [] | no_license | jreyes/edison-doorbell-application | c030fb20b60ed9a3738e2fa00b5f9145176ab9bd | fb530a66a9f0b061272750a37a3955968cf69859 | refs/heads/master | 2021-01-21T14:24:27.128254 | 2017-06-22T14:12:52 | 2017-06-24T00:16:21 | 95,277,637 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,785 | java | package org.vaporwarecorp.doorbell.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.AsyncConfigurer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.vaporwarecorp.doorbell.config.async.ExceptionHandlingAsyncTaskExecutor;
import java.util.concurrent.Executor;
@Configuration
@EnableAsync
@EnableScheduling
public class AsyncConfiguration implements AsyncConfigurer {
// ------------------------------ FIELDS ------------------------------
private final Logger log = LoggerFactory.getLogger(AsyncConfiguration.class);
// ------------------------ INTERFACE METHODS ------------------------
// --------------------- Interface AsyncConfigurer ---------------------
@Override
@Bean(name = "taskExecutor")
public Executor getAsyncExecutor() {
log.debug("Creating Async Task Executor");
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(2);
executor.setMaxPoolSize(50);
executor.setQueueCapacity(10000);
executor.setThreadNamePrefix("doorbell-Executor-");
return new ExceptionHandlingAsyncTaskExecutor(executor);
}
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
return new SimpleAsyncUncaughtExceptionHandler();
}
} | [
"[email protected]"
] | |
34148b681367d992ebb7e10874d78d6b92d055d3 | 8df7bde9412f18ca8e1a3a9a0cb76fd6f0a45206 | /urms_common/src/main/java/com/urms/config/CorsConfig.java | 9ed317c1c2cceca41c0872bf62afff9beb440462 | [] | no_license | xuliu242/mianshi | 443a4a5dfa2066433213f7bbcbd954a3bd66f0eb | 56881c03bea3bd627cd246b117479c4a5c7df120 | refs/heads/master | 2023-05-10T19:35:18.974977 | 2021-04-15T06:24:47 | 2021-04-15T06:24:47 | 371,714,335 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 646 | java | package com.urms.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS")
.allowCredentials(true)
.maxAge(3600)
.allowedHeaders("*");
}
}
| [
"[email protected]"
] | |
cded935c479a6a772db73feb55ce307d964ced1d | ba3f66699640a28517f935a827ba5c15f4f52050 | /src/main/java/com/iftm/course/resources/exceptions/ValidationError.java | 2d25bfef209d7ba17077c4aedda2c987c3858adb | [] | no_license | oliveiralex/coursePDS1 | 0bf19b4ac02b46737b9479e652faae21734076b1 | de7cb72196dec180bad8f06b26ad6c0a9946dd5a | refs/heads/master | 2023-02-03T19:10:55.663154 | 2020-12-18T21:49:12 | 2020-12-18T21:49:12 | 307,872,904 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 658 | java | package com.iftm.course.resources.exceptions;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
public class ValidationError extends StandardError {
private static final long serialVersionUID = 1L;
private List<FieldMessage> errors = new ArrayList<>();
public ValidationError() {
}
public ValidationError(Instant timestamp, Integer status, String error, String message, String path) {
super(timestamp, status, error, message, path);
}
public List<FieldMessage> getErrors() {
return errors;
}
public void addError(String fieldName, String message) {
errors.add(new FieldMessage(fieldName, message));
}
}
| [
"[email protected]"
] | |
44755d2d7984940830844bf97ede5d41cf520090 | 5bf02afa00f91044f6eed8651df82b8079517c79 | /server-main/src/main/java/com/hjz/utils/exception/GlobalExceptionHandler.java | ea6ab7ae5862ca7e2ebe7fe6baa748476b76a504 | [
"Apache-2.0"
] | permissive | Eternally8/springboot-hjz | 822d24b84af9f12bcf2c74ab6ef1374595d2d9e7 | a4e5587236a061eadd6c72dfed0de8fc9cddbccf | refs/heads/main | 2023-07-30T15:04:39.837121 | 2021-09-13T02:51:23 | 2021-09-13T02:51:23 | 405,812,081 | 0 | 0 | Apache-2.0 | 2021-09-13T02:48:04 | 2021-09-13T02:48:04 | null | UTF-8 | Java | false | false | 891 | java | package com.hjz.utils.exception;
import com.hjz.model.ResultEnum;
import com.hjz.utils.reqResult.ResponseEntityDto;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import javax.validation.ValidationException;
@RestControllerAdvice
public class GlobalExceptionHandler {
@ExceptionHandler({ValidationException.class})
public ResponseEntityDto paramExceptionHandler(ValidationException e) {
// 判断异常中是否有错误信息,如果存在就使用异常中的消息,否则使用默认消息
if (!StringUtils.isEmpty(e.getMessage())) {
return new ResponseEntityDto(ResultEnum.PARAMETER_ERROR.getCode(), e.getMessage());
}
return new ResponseEntityDto(ResultEnum.PARAMETER_ERROR.getCode());
}
}
| [
"[email protected]"
] | |
f38be42a0235e14324645399db2787ab1653615d | 78536acdf770eec86183c456597eec4ae2793fcc | /src/ejerciciosuno/EjercicioDieciocho.java | c3ab9f404b87cd6e4ff2e001bc3d4378acf72b73 | [] | no_license | programaharnina2021/La-clase-String | ff25ae49a33bed96b679ca152b286588bf85960b | cc4af1369603e4d7dfe89d4512e0899e8c24bbfa | refs/heads/master | 2023-03-10T17:23:12.710419 | 2021-02-23T11:20:43 | 2021-02-23T11:20:43 | 339,712,175 | 0 | 3 | null | null | null | null | UTF-8 | Java | false | false | 295 | java | package ejerciciosuno;
public class EjercicioDieciocho {
public static void main(String[] args) {
String cadena=" muchos espacios en blanco al inicio y al final ";
System.out.println("comienzo:"+cadena+":final");
System.out.println("comienzo:"+cadena.trim()+":final");
}
}
| [
"estar@minuevo"
] | estar@minuevo |
d8dd10ea202bd71c2f4c3e17139c43dfe1287485 | da74fe272988660a9056b06cb47282ec9e892687 | /MySpring/src/main/java/com/suguowen/service/DepartmentService.java | 422fcfea3deb4e2bba153414f34ab130241c20c3 | [] | no_license | 413162826/workspace | dc6ea18496ee876d51cfcf0cb45c4e99757a47d4 | 3d4ddd97a83f38a58749bc591f9714ef1b67ddd8 | refs/heads/master | 2020-04-09T05:31:27.280210 | 2018-12-02T16:35:31 | 2018-12-02T16:35:31 | 160,067,914 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 600 | java | package com.suguowen.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.suguowen.bean.Department;
import com.suguowen.bean.DepartmentExample;
import com.suguowen.bean.Employee;
import com.suguowen.dao.DepartmentMapper;
@Service
public class DepartmentService {
@Autowired
private DepartmentMapper deptmentMapper;
public List<Department> getDepts() {
System.out.println("=========进入service=======");
List<Department> list = deptmentMapper.selectByExample(null);
return list;
}
}
| [
"[email protected]"
] | |
17fcaf30d39c5aa343b8c5ea1fde7eba96aff2aa | 2869fc39e2e63d994d5dd8876476e473cb8d3986 | /Super_back/src/java/com/lvmama/back/sweb/util/marketing/AddReportToPageResult.java | bc89e657b3475925de36f559ba01c42cb41ab74e | [] | no_license | kavt/feiniu_pet | bec739de7c4e2ee896de50962dbd5fb6f1e28fe9 | 82963e2e87611442d9b338d96e0343f67262f437 | refs/heads/master | 2020-12-25T17:45:16.166052 | 2016-06-13T10:02:42 | 2016-06-13T10:02:42 | 61,026,061 | 0 | 0 | null | 2016-06-13T10:02:01 | 2016-06-13T10:02:01 | null | UTF-8 | Java | false | false | 2,430 | java | package com.lvmama.back.sweb.util.marketing;
/**
* AddReportToPageResult.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
public class AddReportToPageResult implements java.io.Serializable {
public AddReportToPageResult() {
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof AddReportToPageResult)) return false;
AddReportToPageResult other = (AddReportToPageResult) 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(AddReportToPageResult.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn://oracle.bi.webservices/v7", ">addReportToPageResult"));
}
/**
* 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);
}
}
| [
"[email protected]"
] | |
ef7ca7ba8d30830b855cd76c5b66e9ed73b22b7c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_1/java/Karian/Osmos.java | 23415f3f8cb48179a150949cf75ea929c8d29580 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Java | false | false | 2,467 | java | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Osmos {
/**
* @param args
*/
public static void main(String[] args) throws NumberFormatException, IOException {
// open file and create a buffered reader
FileReader input = new FileReader(args[0]);
BufferedReader buffer = new BufferedReader(input);
//read the number of testcases
int max = Integer.parseInt(buffer.readLine().trim());
// read a line and call the solving procedure for a single test case. We expect back the result as a string
for (int i = 1; i <= max; i++) {
System.out.println("Case #"+i+": " + solve(buffer));
}
}
public static int solve(BufferedReader buffer) throws IOException
{
String input = buffer.readLine().trim();
String[] split = input.split("\\s+");
int A = Integer.parseInt(split[0]);
int N = Integer.parseInt(split[1]);
input = buffer.readLine().trim();
if (A == 1)
{
return N;
}
split = input.split("\\s+");
int[] size = new int[N];
for(int i = 0; i < N; i++)
{
size[i] = Integer.parseInt(split[i]);
}
quickSort(size);
int answer = N;
int added = 0;
for (int i = 0; i < N; i++)
{
if((N - i + added) < answer)
{
answer = N - i + added;
}
if (added > answer)
{
return answer;
}
while(size[i] >= A)
{
added++;
A = 2 * A - 1;
}
if (A <= 1000000)
{
A += size[i];
}
}
if(added < answer)
{
answer = added;
}
return answer;
}
public static void quickSort(int[] a)
{
quickSort(a,0,a.length - 1);
}
public static void quickSort(int[] a, int p, int r)
{
if(p<r)
{
int q=partition(a,p,r);
quickSort(a,p,q);
quickSort(a,q+1,r);
}
}
private static int partition(int[] a, int p, int r) {
int x = a[p];
int i = p-1 ;
int j = r+1 ;
while (true) {
i++;
while ( i< r && a[i] < x)
i++;
j--;
while (j>p && a[j] > x)
j--;
if (i < j)
swap(a, i, j);
else
return j;
}
}
private static void swap(int[] a, int i, int j) {
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
| [
"[email protected]"
] | |
9f72746dc09ccfd793588b8d35e08c8ed4dc6412 | c96a88a068a1aed86fb81ec8b05911bc11783a77 | /shanks-user_manual-module/src/es/upm/dit/gsi/shanks/tutorial/model/element/links/portrayal/EthernetLink2DPortrayal.java | 4d4aa10152d26ea5fbbee62eae9fcbfb2fd128e7 | [] | no_license | alvarocarrera/Shanks-modules | 3351888b8ff939dc42cb03694b627708a1e09068 | ed438a1c365c3f7bf8dad1007ab78c9378924a49 | refs/heads/master | 2020-04-11T08:05:28.196867 | 2013-06-14T07:42:03 | 2013-06-14T07:42:03 | 10,683,794 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,360 | java | package es.upm.dit.gsi.shanks.tutorial.model.element.links.portrayal;
import java.awt.Color;
import java.awt.Graphics2D;
import java.util.HashMap;
import sim.field.network.Edge;
import sim.portrayal.DrawInfo2D;
import sim.portrayal.network.EdgeDrawInfo2D;
import es.upm.dit.gsi.shanks.model.element.link.Link;
import es.upm.dit.gsi.shanks.model.element.link.portrayal.Link2DPortrayal;
import es.upm.dit.gsi.shanks.model.element.link.test.MyLink;
import es.upm.dit.gsi.shanks.tutorial.model.element.links.EthernetLink;
/**
*
* @author Daniel Lara
*
*/
public class EthernetLink2DPortrayal extends Link2DPortrayal{
private static final long serialVersionUID = -7612525235009977268L;
/* (non-Javadoc)
* @see es.upm.dit.gsi.shanks.model.element.link.portrayal.Link2DPortrayal#draw(java.lang.Object, java.awt.Graphics2D, sim.portrayal.DrawInfo2D)
*/
public void draw(Object object, Graphics2D graphics, DrawInfo2D info) {
Edge e = (Edge) object;
Link link = (Link) e.getInfo();
this.drawSimpleLink(link, object, graphics, info);
}
/**
* @param link
* @param object
* @param graphics
* @param info
*/
private void drawSimpleLink(Link link, Object object, Graphics2D graphics,
DrawInfo2D info) {
EdgeDrawInfo2D ei = (EdgeDrawInfo2D) info;
final int startX = (int) ei.draw.x;
final int startY = (int) ei.draw.y;
final int endX = (int) ei.secondPoint.x;
final int endY = (int) ei.secondPoint.y;
final int midX = (int) (ei.draw.x + ei.secondPoint.x) / 2;
final int midY = (int) (ei.draw.y + ei.secondPoint.y) / 2;
graphics.setColor(Color.black);
HashMap<String, Boolean> status = link.getStatus();
if (status.get(EthernetLink.STATUS_OK)) {
graphics.setColor(Color.green);
} else if (status.get(EthernetLink.STATUS_BROKEN)) {
graphics.setColor(Color.red);
}else if(status.get(EthernetLink.STATUS_DAMAGED)){
graphics.setColor(Color.blue);
}
graphics.drawLine(startX, startY, endX, endY);
graphics.setColor(Color.blue);
graphics.setFont(labelFont);
int width = graphics.getFontMetrics().stringWidth(link.getID());
graphics.drawString(link.getID(), midX - width / 2, midY);
}
}
| [
"[email protected]"
] | |
059fe725f1b653a0506e9a28a2ea47af1bce3f22 | 16bfbb87921e4bf87bbb79cdb3b642df4d6ee0d4 | /src/test/java/com/pingpong/standard/StandardWorkingTest.java | 145a39961d4c083fb1d563275e7dab20d038642b | [
"MIT"
] | permissive | trofimovep/nio-gc-free | 4824203ecea0f1eeac6acf9763acc569a797840f | 128e264cc8715dba3e578255a74bf28d22ee9399 | refs/heads/master | 2022-12-12T02:18:13.675587 | 2020-09-08T19:49:58 | 2020-09-08T19:49:58 | 289,341,642 | 1 | 0 | null | 2020-09-08T19:37:04 | 2020-08-21T18:45:11 | Java | UTF-8 | Java | false | false | 1,170 | java | package com.pingpong.standard;
import com.pingpong.standard.client.StandardNioClient;
import com.pingpong.standard.server.StandardNioServer;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static com.pingpong.ConnectionInfo.PING;
import static com.pingpong.ConnectionInfo.PONG;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class StandardWorkingTest {
@Test
public void test() throws InterruptedException {
// given
int messagesAmount = 10_000;
StandardNioServer server = new StandardNioServer(messagesAmount);
StandardNioClient client = new StandardNioClient(messagesAmount);
//when
server.start();
Thread.sleep(1_000);
client.start();
client.join();
server.join();
// then
Assertions.assertAll(
() -> assertEquals(messagesAmount, client.getSent()),
() -> assertEquals(messagesAmount, client.getGot()),
() -> assertEquals(messagesAmount + 1, server.getSent()),
() -> assertEquals(messagesAmount + 1, server.getGot())
);
}
}
| [
"[email protected]"
] | |
2b31de957111b59fbb9f27344006c735267fbd37 | 5b4fc32e93215142dc1c80b0f8c5d83f41efc3ab | /src/hotel/model/RadnoMjesto.java | 3b9694124ab6f87c6fbe7cc8cbb2043a9f09f9bf | [] | no_license | marijatomic/hotel | 80226d7b559356415d72b831f4fb742975e68095 | 939158923ee3dceb2464be3098fe58e20e49665c | refs/heads/master | 2021-01-26T07:26:21.724907 | 2020-07-04T11:30:31 | 2020-07-04T11:30:31 | 243,364,856 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,689 | 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 hotel.model;
import static hotel.model.Baza.connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
public class RadnoMjesto {
private int id;
private String mjesto;
private String opis;
public static final int ID=1;
public static final int MJESTO=2;
public static final int OPIS=3;
public static final int RM=1;
public RadnoMjesto() {
this.id = 0;
this.mjesto = "";
this.opis = "";
}
public RadnoMjesto(String mjesto) {
this.mjesto = mjesto;
}
public RadnoMjesto(String mjesto, String opis) {
this.mjesto = mjesto;
this.opis = opis;
}
public RadnoMjesto(int id, String mjesto, String opis) {
this.id = id;
this.mjesto = mjesto;
this.opis = opis;
}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public String getMjesto() {
return mjesto;
}
public void setMjesto(String mjesto) {
this.mjesto = mjesto;
}
public String getOpis() {
return opis;
}
public void setOpis(String opis) {
this.opis = opis;
}
public void spasi() {
try {
Baza.spoji();
PreparedStatement statement = connection.prepareStatement("INSERT INTO r_mjesto VALUES(null, ?,?)");
statement.setString(1, this.mjesto);
statement.setString(2, this.opis);
statement.executeUpdate();
Baza.odspoji();
} catch (SQLException ex) {
System.out.println("Došlo je do greške!" + ex.getMessage());
}
}
public void uredi() {
Baza.spoji();
try {
PreparedStatement ps = connection.prepareStatement("UPDATE r_mjesto SET mjesto=?, opis=? WHERE id = ?");
ps.setString(1, this.mjesto);
ps.setString(2, this.opis);
ps.setInt(3, this.id);
ps.executeUpdate();
} catch (SQLException ex) {
System.out.println("Došlo je do greške!" + ex.getMessage());
}
Baza.odspoji();
}
public void izbrisi() {
Baza.spoji();
try {
PreparedStatement ps = connection.prepareStatement("DELETE FROM r_mjesto WHERE id = ?");
ps.setInt(1, this.id);
ps.executeUpdate();
} catch (SQLException ex) {
System.out.println("Došlo je do greške!" + ex.getMessage());
}
Baza.odspoji();
}
//metoda koja vraća sva radna mjesta
public static ObservableList<RadnoMjesto> vratiSvaRadnaMjesta () {
ObservableList<RadnoMjesto> mjesto = FXCollections.observableArrayList();
try {
Baza.spoji();
PreparedStatement st= connection.prepareStatement("SELECT * FROM r_mjesto");
ResultSet rs= st.executeQuery();
while (rs.next()) {
RadnoMjesto rm;
rm = new RadnoMjesto(rs.getInt(ID), rs.getString(MJESTO), rs.getString(OPIS));
mjesto.add(rm);
}
Baza.odspoji();
} catch (SQLException ex) {
}
return mjesto;
}
//metoda koja vraća sve nazive radnih mjesta
public static ObservableList<RadnoMjesto> vratiNaziveRadnihMjesta () {
ObservableList<RadnoMjesto> mjesto = FXCollections.observableArrayList();
try {
Baza.spoji();
PreparedStatement st = connection.prepareStatement("SELECT mjesto FROM r_mjesto");
ResultSet rs= st.executeQuery();
while (rs.next()) {
RadnoMjesto rm;
rm = new RadnoMjesto(rs.getString(RM));
mjesto.add(rm);
}
Baza.odspoji();
} catch (SQLException ex) {
}
return mjesto;
}
//metoda vraća id prosljeđenog radnog mjesta
public int vratiId(String rm) throws SQLException {
Baza.spoji();
PreparedStatement ps = connection.prepareStatement("SELECT id FROM r_mjesto WHERE mjesto = ?");
ps.setString(1, rm);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
return rs.getInt(1);
}
return 0;
}
@Override
public String toString(){
return this.mjesto;
}
}
| [
"[email protected]"
] | |
2d6068b7a44775cdd37ed72d667bfb23419ca496 | 8f69decab4ab2196ff7effa9f3f389283db2de88 | /src/test/java/ru/job4j/collection/LexSortTest.java | e9b0f3fb85f232f8eef5de1ffe900870824e3f54 | [] | no_license | RInZ26/job4j | 592643026caf59d0fc0167e62f1c612d43448c9a | 22f21942568f099a4e24b4f736f2b2892a959bb1 | refs/heads/master | 2021-03-17T14:36:04.441977 | 2020-05-18T06:30:50 | 2020-05-18T06:30:50 | 246,994,857 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 439 | java | package ru.job4j.collection;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.is;
import org.junit.Test;
import java.util.Arrays;
public class LexSortTest {
@Test
public void sortNum1and2and10() {
String[] input = {
"10. Task.",
"1. Task.",
"2. Task."
};
String[] out = {
"1. Task.",
"2. Task.",
"10. Task."
};
Arrays.sort(input, new LexSort());
assertThat(input, is(out));
}
} | [
"[email protected]"
] | |
094a882d497986e33a31a691771c40bb64005b06 | 96d5186ac9fb7f3b95bd364591021e5eda84671f | /by/etc/class_task/aggregation_composition/task_five/TypeOfTour.java | c8210f45e1168c48cdd1ea5ca240d68a0757fc19 | [] | no_license | bzsh/Epam_preWeb | 0f84625543f1d66a9b6f9c80964457b7dafdad2e | d6e0d1aa506388d294efd187e30fa877a873ac1c | refs/heads/master | 2022-12-07T01:04:15.448571 | 2020-08-31T12:08:48 | 2020-08-31T12:08:48 | 192,613,251 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 702 | java | package by.etc.class_task.aggregation_composition.task_five;
public enum TypeOfTour {
REST("отдых"),
EXCURSIONS("экскурсии"),
HEALTH("лечение"),
SHOPPING("шопинг"),
CRUISE("круиз");
private String title;
TypeOfTour(String title) {
this.title = title;
}
@Override
public String toString() {
return title;
}
public static String getTypes(){
TypeOfTour[] types = TypeOfTour.values();
String str = "";
for(int i = 0; i < types.length; i++){
str += "Тип : " + "\"" + types[i].name() + "\"" + " - " + types[i].toString() + "\n";
}
return str;
}
}
| [
"[email protected]"
] | |
89d89715dae56fbd7f9045bb27370bc789d9f591 | 9e19709059aac72eedd9e76f8d841c9231c560ca | /ProjectFiles/ShopkeeperApp_ProjectFiles/app/src/main/java/com/example/munna/shopkeeperapp/SendToken.java | 7d21eee1f4f97ed2545861f0718c1b53fb06226e | [] | no_license | RevenantRage/Appathon_Codefest17 | 2072bd2cfa27f816a61897b5ca3bb1e2dfc5cd5c | 24248c6e6ced0cdd0d61c73a4186b320475c68e5 | refs/heads/master | 2021-07-01T07:12:25.322766 | 2017-09-21T17:24:18 | 2017-09-21T17:24:18 | 104,373,497 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 813 | java | package com.example.munna.shopkeeperapp;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
/**
* Created by AbhishekSharma on 10/3/2016.
*/
public class SendToken extends StringRequest {
private static final String REGISTER_REQUEST_URL = "http://thinkers.890m.com/GCM_Scripts/GCMInsertShop.php";
private Map<String, String> params;
public SendToken(String mail, String token, Response.Listener<String> listener) {
super(Method.POST, REGISTER_REQUEST_URL, listener, null);
params = new HashMap<>();
params.put("email", mail);
params.put("token",token);
}
@Override
public Map<String, String> getParams() {
return params;
}
} | [
"[email protected]"
] | |
b4f54437c5bb1a732b90ac97022956e07aacdc1d | e43d17b1107c9f2fc2f75c2e6d77a9346cfaf181 | /src/main/java/com/hdmon/uaa/service/package-info.java | c7fa9c9d4c28a57f5bac844090eb7143229d6231 | [] | no_license | BulkSecurityGeneratorProject10/uaa | 0f680c75241ba2b0835a50d3f5acaa998b6822ac | 2fa9fd5fb26b2909b4fa1e5d7a041641e252f09c | refs/heads/master | 2022-12-15T00:32:31.409349 | 2018-07-24T08:53:16 | 2018-07-24T08:53:16 | 296,592,487 | 0 | 0 | null | 2020-09-18T10:44:48 | 2020-09-18T10:44:47 | null | UTF-8 | Java | false | false | 63 | java | /**
* Service layer beans.
*/
package com.hdmon.uaa.service;
| [
"[email protected]"
] | |
ef6d10592e421a6294f3940ea9a410cb3cb0641b | 51d336e50ab0c099d8ac8de2602585d312c691cd | /src/test/java/win/doyto/query/util/BeanUtilTest.java | e118a96f52c0676b8c2f880c222ace9451100018 | [
"Apache-2.0"
] | permissive | opings/doyto-query | a5a4bec52471b5b4810ab4c8c774ddd9e0942fca | ffedb624a239c8a551e6473a8d2619b1f57ed696 | refs/heads/master | 2022-04-14T00:30:48.785420 | 2020-04-04T02:15:16 | 2020-04-04T02:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 946 | java | package win.doyto.query.util;
import org.junit.jupiter.api.Test;
import win.doyto.query.demo.module.menu.MenuEntity;
import win.doyto.query.demo.module.menu.MenuRequest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
/**
* BeanUtilTest
*
* @author f0rb on 2020-04-02
*/
class BeanUtilTest {
@Test
void copyTo() {
MenuRequest menuRequest = new MenuRequest();
menuRequest.setId(1);
menuRequest.setMenuName("submenu");
MenuEntity menuEntity = new MenuEntity();
menuEntity.setId(1);
menuEntity.setMenuName("menu");
menuEntity.setMemo("a menu");
MenuEntity newMenuEntity = BeanUtil.copyTo(menuRequest, menuEntity);
assertEquals(Integer.valueOf(1), newMenuEntity.getId());
assertEquals("submenu", newMenuEntity.getMenuName());
assertNull(newMenuEntity.getMemo());
}
} | [
"[email protected]"
] | |
08a385997c288d8f57f3f97b2c931a6825d18d12 | 7091134f1825d13f4c6910933d2248528ebd21a8 | /dd/src/com/bb/dd/fragment/RuteFragment.java | cf32d22fa6095c368376de34e6cdfe2266bbd182 | [] | no_license | balancejia/balancejiaGit | 365c235200de6f34478c4dbb719d5636efc1272c | 3473518bb3d88c62e54f0575df08dfbc7252c3a5 | refs/heads/master | 2021-01-25T12:13:58.361133 | 2015-04-21T07:02:31 | 2015-04-21T07:02:31 | 27,327,756 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 18,480 | java | package com.bb.dd.fragment;
import java.util.ArrayList;
import java.util.List;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Handler;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.baidu.mapapi.search.MKAddrInfo;
import com.baidu.mapapi.search.MKBusLineResult;
import com.baidu.mapapi.search.MKDrivingRouteResult;
import com.baidu.mapapi.search.MKPoiInfo;
import com.baidu.mapapi.search.MKPoiResult;
import com.baidu.mapapi.search.MKSearch;
import com.baidu.mapapi.search.MKSearchListener;
import com.baidu.mapapi.search.MKShareUrlResult;
import com.baidu.mapapi.search.MKSuggestionResult;
import com.baidu.mapapi.search.MKTransitRouteResult;
import com.baidu.mapapi.search.MKWalkingRouteResult;
import com.baidu.platform.comapi.basestruct.GeoPoint;
import com.bb.dd.BikeApplication;
import com.bb.dd.R;
import com.bb.dd.RuteMapChoosePtActivity;
import com.bb.dd.RuteSearchActivity;
import com.bb.dd.adapter.RuteSearchAdapter;
import com.bb.dd.dao.BikeOverlayDao;
import com.bb.dd.modle.BikeSite_Lite;
import com.bb.dd.modle.RuteView;
import com.bb.dd.util.BadHandler;
import com.bb.dd.util.Cons;
import com.bb.dd.util.Util;
public class RuteFragment extends AbstractFragment {
private static final String TAG = RuteFragment.class.getName();
private EditText et_start, et_end;
private LinearLayout ivStartSet, ivEndSet;
private String start, end;
private LinearLayout ll_counterchange;
private ListView lv_rute;
private DoSearch doSearch;
boolean isExit = false;
private List<BikeSite_Lite> searchSites = new ArrayList<BikeSite_Lite>();
private RuteSearchAdapter searchAdapter;
private static final int SEARCH_ET_IS_NULL = 0;
private static final int SEARCH_FINISH = 1;
private static final int SEARCH_FINISH_ERROR = 2;
private static final int SEARCH_FOR_NULL = 3;
private String startAddr,endAddr,address;
private Double startlatitude,startlongitude,endlatitude,endlongitude,latitude,longitude;
private int etId = 1;
private Button ruteSearch;
private int startflag = 4;
private int endFlag = 4;
private int ruteFlag = 4;
private int exchangeFlag=0;
private int changePlaceFlag = 0;
private ImageView ivPointStart,ivPointEnd;
private RuteView ruteView;
private MKSearch mSearch = null;
private String city="太原市";
public RuteFragment(Context context) {
super(context);
}
public RuteFragment(Context context,RuteView _ruteView) {
super(context);
ruteView=_ruteView;
}
@Override
public View getView() {
BadHandler.getInstance().init(_context);
rootView = inflat(R.layout.rute);
initView();
initBaiDuPioSearch();
return rootView;
}
@Override
public void closed() {
}
private void initView() {
et_start = (EditText) rootView.findViewById(R.id.rute_et_start);
et_end = (EditText) rootView.findViewById(R.id.rute_et_end);
ivStartSet = (LinearLayout) rootView
.findViewById(R.id.rute_iv_left_start_set);
ivEndSet = (LinearLayout) rootView.findViewById(R.id.rute_iv_left_end_set);
ll_counterchange = (LinearLayout) rootView
.findViewById(R.id.rute_counterchange);
ivPointStart=(ImageView)rootView.findViewById(R.id.rute_location_start);
ivPointEnd=(ImageView)rootView.findViewById(R.id.rute_location_end);
lv_rute = (ListView) rootView.findViewById(R.id.rute_listview);
searchAdapter = new RuteSearchAdapter(_context, searchSites);
lv_rute.setAdapter(searchAdapter);
if(ruteView!=null){
if(ruteView.getFlag()==1){
startflag=2;
startAddr=ruteView.getStartAddress();
startlatitude=ruteView.getStartlatitude();
startlongitude=ruteView.getStartlongitude();
et_start.setText(startAddr);
if(Cons.ruteMapChoosePt==2){
endAddr=Cons.ruteAddress;
endlatitude=Cons.ruteLatitude;
endlongitude=Cons.ruteLongitude;
Cons.ruteMapChoosePt=0;
et_end.setText(endAddr);
}else{
Cons.ruteMapChoosePt=1;
Cons.ruteAddress=startAddr;
Cons.ruteLatitude=startlatitude;
Cons.ruteLongitude=startlongitude;
}
}else if(ruteView.getFlag()==2){
endFlag=2;
endAddr=ruteView.getEndAddress();
endlatitude=ruteView.getEndlatitude();
endlongitude=ruteView.getEndlongitude();
et_end.setText(endAddr);
if(Cons.ruteMapChoosePt==1){
startAddr=Cons.ruteAddress;
startlatitude=Cons.ruteLatitude;
startlongitude=Cons.ruteLongitude;
Cons.ruteMapChoosePt=0;
et_start.setText(startAddr);
}else{
Cons.ruteMapChoosePt=2;
Cons.ruteAddress=endAddr;
Cons.ruteLatitude=endlatitude;
Cons.ruteLongitude=endlongitude;
}
}else{
startAddr=ruteView.getStartAddress();
startlatitude=ruteView.getStartlatitude();
startlongitude=ruteView.getStartlongitude();
et_start.setText(startAddr);
endAddr=ruteView.getEndAddress();
endlatitude=ruteView.getEndlatitude();
endlongitude=ruteView.getEndlongitude();
et_end.setText(endAddr);
}
}
ll_counterchange.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
exchangeFlag=1;
searchSites.clear();
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
start = et_start.getText().toString();
end = et_end.getText().toString();
et_start.setText(end);
et_end.setText(start);
latitude=startlatitude;
longitude=startlongitude;
startlatitude=endlatitude;
startlongitude=endlongitude;
endlatitude=latitude;
endlongitude=longitude;
address=startAddr;
startAddr=endAddr;
endAddr=address;
ruteFlag=startflag;
startflag=endFlag;
endFlag=ruteFlag;
//TODO 切换起终点逻辑测试
/*String msg = "latitude:"+latitude+"\n"
+"longitude:"+longitude+"\n"
+"startlatitude:"+startlatitude+"\n"
+"startlongitude:"+startlongitude+"\n"
+"endlatitude:"+endlatitude+"\n"
+"endlongitude:"+endlongitude+"\n"
+"address:"+address+"\n"
+"startAddr:"+startAddr+"\n"
+"endAddr:"+endAddr+"\n"
+"ruteFlag:"+ruteFlag+"\n"
+"startflag:"+startflag+"\n"
+"endFlag:"+endFlag+"\n";
Log.i("ttt", msg);*/
}
});
lv_rute.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapter, View arg1,
int postion, long arg3) {
isExit = false;
BikeSite_Lite site = (BikeSite_Lite) adapter
.getItemAtPosition(postion);
Double latitude = Double.parseDouble(site.getSign4().trim()) * 1E6;
Double longitude = Double.parseDouble(site.getSign3().trim()) * 1E6;
GeoPoint point = new GeoPoint(longitude.intValue(), latitude
.intValue());
if (etId == 0) {
startlatitude = Double.valueOf(point.getLatitudeE6());
startlongitude = Double.valueOf(point.getLongitudeE6());
startflag=1;
et_start.setText(site.getBikesiteName());
startAddr = site.getBikesiteName();
} else {
endlatitude =Double.valueOf(point.getLatitudeE6());;
endlongitude = Double.valueOf(point.getLongitudeE6());
endFlag=1;
et_end.setText(site.getBikesiteName());
endAddr = site.getBikesiteName();
}
searchSites.clear();
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
}
});
ruteSearch = (Button) rootView.findViewById(R.id.rute_search);
ruteSearch.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String startEt = getEditValue(et_start);
String endEt = getEditValue(et_end);
if ("".equalsIgnoreCase(startEt) || "".equalsIgnoreCase(endEt)) {
handler.sendEmptyMessage(SEARCH_ET_IS_NULL);
} else {
RuteView ruteView=new RuteView();
ruteView.setStartAddress(startAddr);
ruteView.setEndAddress(endAddr);
ruteView.setStartlatitude(startlatitude);
ruteView.setStartlongitude(startlongitude);
ruteView.setEndlatitude(endlatitude);
ruteView.setEndlongitude(endlongitude);
Intent intent = new Intent(_context,
RuteSearchActivity.class);
intent.putExtra("ruteView", ruteView);
//TODO 测试
// Log.i("ttt", ruteView.toString());
_context.startActivity(intent);
}
}
});
ivStartSet.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
showDialog(1);
}
});
ivEndSet.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
showDialog(2);
}
});
et_start.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (startflag == 4 || startflag == 1 || startflag == 3) {
et_start.setText("");
}
searchSites.clear();
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
}
});
et_end.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (endFlag == 4 || endFlag == 1 || endFlag == 3) {
et_end.setText("");
}
searchSites.clear();
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
}
});
et_start.addTextChangedListener(new TextWatch(etId));
et_end.addTextChangedListener(new TextWatch());
ivPointStart.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
startflag=2;
String endEt = getEditValue(et_end);
if(!("".equalsIgnoreCase(endEt))){
Cons.ruteMapChoosePt=2;
Cons.ruteAddress=endAddr;
Cons.ruteLatitude=endlatitude;
Cons.ruteLongitude=endlongitude;
}
Intent intent=new Intent();
intent.setClass(_context, RuteMapChoosePtActivity.class);
intent.putExtra("flag", "start");
_context.startActivity(intent);
}
});
ivPointEnd.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String startEt = getEditValue(et_start);
if(!("".equalsIgnoreCase(startEt))){
Cons.ruteMapChoosePt=1;
Cons.ruteAddress=startAddr;
Cons.ruteLatitude=startlatitude;
Cons.ruteLongitude=startlongitude;
}
endFlag=2;
Intent intent=new Intent();
intent.setClass(_context, RuteMapChoosePtActivity.class);
intent.putExtra("flag", "end");
_context.startActivity(intent);
}
});
}
private void initBaiDuPioSearch() {
BikeApplication app =BikeApplication.getInstance();
mSearch = new MKSearch();
mSearch.init(app.mBMapManager, new MKSearchListener(){
//在此处理详情页结果
@Override
public void onGetPoiDetailSearchResult(int type, int error) {
}
/**
* 在此处理poi搜索结果
*/
public void onGetPoiResult(MKPoiResult res, int type, int error) {
// 错误号可参考MKEvent中的定义
if (error != 0 || res == null) {
return;
}
ArrayList<MKPoiInfo> mkPois = res.getAllPoi();
if(null!=mkPois&&mkPois.size()>0){
for(MKPoiInfo info:mkPois){
BikeSite_Lite bikeSite_Lite=new BikeSite_Lite();
bikeSite_Lite.setBikesiteName(info.name);
bikeSite_Lite.setSign3(String.valueOf(info.pt.getLatitudeE6()/1e6));
bikeSite_Lite.setSign4(String.valueOf(info.pt.getLongitudeE6()/1e6));
bikeSite_Lite.setBikesiteId("");
searchSites.add(bikeSite_Lite);
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
}
}
}
public void onGetDrivingRouteResult(MKDrivingRouteResult res,
int error) {
}
public void onGetTransitRouteResult(MKTransitRouteResult res,
int error) {
}
public void onGetWalkingRouteResult(MKWalkingRouteResult res,
int error) {
}
public void onGetAddrResult(MKAddrInfo res, int error) {
}
public void onGetBusDetailResult(MKBusLineResult result, int iError) {
}
@Override
public void onGetSuggestionResult(MKSuggestionResult res, int arg1) {
}
@Override
public void onGetShareUrlResult(MKShareUrlResult arg0,
int arg1, int arg2) {
// TODO Auto-generated method stub
}
});
}
private void showDialog(final int ivflag){
new AlertDialog.Builder(_context)
.setTitle("请选择")
.setIcon(android.R.drawable.ic_dialog_info)
.setSingleChoiceItems(
new String[] { "我的位置", "站点编号或名称", "地图上选点",
"地点名称" }, 0,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int which) {
if(ivflag==1){
startflag = which;
switch (startflag) {
case 0:
et_start.setText("我的位置");
startlatitude=Double.valueOf(Cons.locPoint.getLatitudeE6());
startlongitude=Double.valueOf(Cons.locPoint.getLongitudeE6());
startAddr="我的位置";
break;
case 1:
et_start.setText("");
et_start.setHint("请输入站点编号或名称");
break;
case 2:
et_start.setText("");
et_start.setHint("请点击后面位置图标,在地图上选点");
break;
case 3:
et_start.setText("");
et_start.setHint("请输入地点名称");
break;
}
}else{
endFlag = which;
switch (endFlag) {
case 0:
et_end.setText("我的位置");
endlatitude=Double.valueOf(Cons.locPoint.getLatitudeE6());
endlongitude=Double.valueOf(Cons.locPoint.getLongitudeE6());
endAddr="我的位置";
break;
case 1:
et_end.setText("");
et_end.setHint("请输入站点编号或名称");
break;
case 2:
et_end.setText("");
et_end.setHint("请点击后面位置图标,在地图上选点");
break;
case 3:
et_end.setText("");
et_end.setHint("请输入地点名称");
break;
}
}
dialog.dismiss();
}
}).setNegativeButton("取消", null).show();
}
private class TextWatch implements TextWatcher {
private int id;
public TextWatch() {
super();
}
public TextWatch(int etId) {
super();
this.id = etId;
}
@Override
public void afterTextChanged(Editable s) {
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before,
int count) {
isExit = true;
/*if (doSearch == null) {
doSearch = new DoSearch();
}*/
if (id == 1) {
if (startflag == 4 || startflag == 1 || startflag == 3) {
new DoSearch(s.toString());
}else{
//doSearch.excute("");
}
etId = 0;
} else {
if (endFlag == 4 || endFlag == 1 || endFlag == 3) {
new DoSearch(s.toString());
}else{
//doSearch.excute("");
}
etId = 1;
}
}
}
private class DoSearch extends Thread {
//Object key = new Object();
private String value;
private BikeOverlayDao dao;
String[] colums = { "bikesite_id", "bikesite_name" };
private DoSearch(String values) {
value=values;
dao = new BikeOverlayDao();
start();
}
@Override
public void run() {
/*while (isExit) {
synchronized (key) {
try {
key.wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}*/
if (null != value) {
if ("".equals(value.trim())) {
searchSites.clear();
handler.sendEmptyMessage(SEARCH_FOR_NULL);
} else {
searchSites.clear();
if(startflag==3&&etId==0){
mSearch.poiSearchInCity(city,
value);
}else if(endFlag==3&&etId==1){
mSearch.poiSearchInCity(city,
value);
}
String likeValue = "%" + value + "%";
List<BikeSite_Lite> sites = dao.query4Like(colums,
likeValue, likeValue);
if (null != sites && 0 != sites.size()) {
searchSites.addAll(sites);
sites.clear();
sites = null;
handler.sendEmptyMessage(SEARCH_FINISH);
} else {
if(startflag==3||endFlag==3){
handler.sendEmptyMessage(SEARCH_FINISH);
}else{
handler.sendEmptyMessage(SEARCH_FINISH_ERROR);
if(exchangeFlag==1){
exchangeFlag=0;
}else{
//TODO 注释清空代码
/*if (etId == 0) {
startAddr = null;
startlatitude=null;
startlongitude=null;
} else {
endAddr = null;
endlatitude=null;
endlongitude=null;
}*/
}
}
}
}
}
//}
}
/*public void excute(String var) {
value = var;
//Util.l("-------startflag-----"+startflag+"------endFlag-----"+endFlag+"------etId-----"+etId);
synchronized (key) {
key.notify();
}
}*/
}
/**
* 消息处理
*/
private Handler handler = new Handler() {
public void handleMessage(android.os.Message msg) {
switch (msg.what) {
case SEARCH_ET_IS_NULL:
Util.t("请输入搜索路线的起点和终点");
searchSites.clear();
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
break;
case SEARCH_FINISH:
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
break;
case SEARCH_FINISH_ERROR:
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
break;
case SEARCH_FOR_NULL:
searchAdapter.set_sites(searchSites);
searchAdapter.notifyDataSetChanged();
break;
}
}
};
public String getEditValue(EditText ed) {
return ed.getText().toString().trim();
}
}
| [
"[email protected]"
] | |
9018a5b38e9487269f9fe4657199b7dbefa3cb85 | 09812e79264e95e76aefa86046177882ca237887 | /Libraryproducerapplication/src/main/java/org/Student/Controller/Resourcecontroller.java | 120194e1ada1a67b952b0d907180641a146daa1f | [] | no_license | sandeepjr123/Springboot-POC | 05d77732157d0acf004dc7040fa9a9393714d91c | 5ceded20ad9ec5873390572b870ef7cc3fc119a5 | refs/heads/master | 2020-06-26T23:40:35.357098 | 2019-08-27T10:32:25 | 2019-08-27T10:32:25 | 199,789,680 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,517 | java | package org.Student.Controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.Student.Model.Topic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.utils.FallbackMethod;
@RestController
public class Resourcecontroller {
@Autowired
private RestTemplate restTemplate;
@RequestMapping("/Gettopics")
@HystrixCommand(fallbackMethod = "callStudentServiceAndGetData_Fallback")
public List<Topic> GetallTopics() {
List<Topic> topic = (List<Topic>) restTemplate.getForObject("http://localhost:8098/Topics", List.class);
return topic;
}
@RequestMapping("/Fallback")
public List<Topic> Fallback() {
List<Topic> topics =new ArrayList<>(Arrays.asList(
new Topic ("mpmc","mathsphy","Science"),
new Topic ("EGC","ELE","matScience")
));
return topics;
}
private List<Topic> callStudentServiceAndGetData_Fallback() {
List<Topic> topic = (List<Topic>) restTemplate.getForObject("http://localhost:8003/Fallback", List.class);
System.out.println("Fallback method invoked and primary details returned");
return topic;
}
}
| [
"[email protected]"
] | |
c9d8be66301e1970d135171fcde90c376cf492ba | e5aff8036370e75c6ba0063b34d204b10cc52145 | /LHS Adventure/src/Game.java | b5f6a345c624de49fc10f523d3ab7e6a09353f89 | [] | no_license | VikDaCoder/AP-CS-Code | b690a38d74b837f88d3a866986af3092bcf9609d | 5c96dad8d9b267ec6fed977b94b6954c5571ddfc | refs/heads/master | 2021-01-23T05:29:39.963276 | 2017-05-31T17:51:19 | 2017-05-31T17:51:19 | 92,972,114 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,346 | java | import java.util.*;
public class Game
{
Player player;
private Scanner in;
public Game() {
in = new Scanner(System.in);
player = new Player();
createRooms();
}
/** Creates Room objects and sets exits to create the game world */
private void createRooms()
{
//create Rooms
Room rotunda = new Room("A large, echoing rotunda");
Room principalsOffice = new Room("The principal's office");
Room entryWay = new Room("School entryway");
Room outside = new Room("Outside Liberty HS");
Room classRoom = new Room("Hallways for most classes");
Room cafeteria = new Room("School cafeteria");
Room band = new Room("Band Hallway");
Item book = new Item("book" , 5);
Item laptop = new Item("laptop", 13);
Item tray = new Item("tray",15);
Item binder = new Item("binder", 9);
Item saxophone = new Item("saxophone", 24);
Item chair = new Item("chair", 17);
Item table = new Item("Table" , 20);
//set exits for Rooms
outside.setExits("north",entryWay);
entryWay.setExits("north",rotunda);
entryWay.setExits("south",outside);
entryWay.setExits("east",principalsOffice);
principalsOffice.setExits("west", entryWay);
rotunda.setExits("south", entryWay);
rotunda.setExits("north", cafeteria);
rotunda.setExits("west", classRoom);
rotunda.setExits("east", band);
classRoom.setExits("east", rotunda);
cafeteria.setExits("south", rotunda);
band.setExits("west", rotunda);
entryWay.addItem(laptop);
principalsOffice.addItem(chair);
rotunda.addItem(table);
classRoom.addItem(binder);
classRoom.addItem(book);
cafeteria.addItem(tray);
band.addItem(saxophone);
//initialize game's starting room
player.setCurrentRoom(outside);
}
private void printWelcome()
{
System.out.println("Welcome to LHS adventure!");
System.out.println("At the moment, it's a very boring adventure");
System.out.println("There are items stored around the school.");
System.out.println("Every Item has its own weight. YOU NEED A WEIGHT OF 46 TO WIN!");
System.out.println("Type 'help' if you need help\n");
System.out.println("You are here >>> " + player.getCurrentRoom().getDescription());
}
private void printHelp()
{
System.out.println("You are alone, you are lost.");
System.out.println("You wander around LHS.");
System.out.println("Your commands are >>> " + Command.getCommandsString());
}
/** Takes a Command object and attempts to process it as a game command */
private boolean processCommand(Command command) {
boolean finished = false;
if (command.isUnknown()){
System.out.println("I don't know what you mean...");
return false;
}
String commandWord = command.getCommandWord();
if (commandWord.equalsIgnoreCase("help")) {
printHelp();
}
if (commandWord.equalsIgnoreCase("go")) {
goRoom(command);
}
if (commandWord.equalsIgnoreCase("quit")) {
finished = quit(command);
}
if (commandWord.equalsIgnoreCase("back")) {
goBack();
}
if (commandWord.equalsIgnoreCase("take")) {
take(command);
}
if (commandWord.equalsIgnoreCase("drop")) {
drop(command);
}
return finished;
}
/** Attempts to move the player to another Room based on their Command */
private void goRoom(Command command) {
if (command.getSecondWord() == null){
System.out.println("Go where?");
}
else {
String direction = command.getSecondWord();
if (direction.equalsIgnoreCase("back")) goBack();
Room nextRoom = null;
nextRoom = player.getCurrentRoom().getExit(direction.toLowerCase());
if (nextRoom == null && !direction.equalsIgnoreCase("back")) System.out.println("There is no door!");
else if (!direction.equalsIgnoreCase("back")){
player.setCurrentRoom(nextRoom);
System.out.println("\nYou are here >>> " + player.getCurrentRoom().getDescription());
}
}
}
/** Returns true if the user is wanting to quit */
private boolean quit(Command command) {
if (command.getSecondWord() != null) {
System.out.println("Quit what?");
return false;
}
System.out.println("Thanks for playing, goobbye.");
return true;
}
public void goBack() {
player.setCurrentRoom(player.getPreviousRoom());
System.out.println("You are here >>> " + player.getCurrentRoom().getDescription());
}
public void drop(Command c) {
String item = c.getSecondWord();
if (item == null) System.out.println("Drop what?");
ArrayList<Item> items = player.getPlayerItems();
boolean hasItem = false;
Item toRemove = null;
for (Item i : items) {
if (item.equalsIgnoreCase(i.getDescription())){
hasItem = true;
toRemove = i;
}
}
if (hasItem) {
player.getCurrentRoom().addItem(toRemove);
player.dropItem(toRemove);
}
else System.out.println("That item is not in this room!");
}
public void take(Command c) {
String item = c.getSecondWord();
if (item == null) System.out.println("Take what?");
ArrayList<Item> items = player.getCurrentRoom().getItems();
boolean hasItem = false;
Item toRemove = null;
for (Item i : items) {
if (item.equalsIgnoreCase(i.getDescription())){
hasItem = true;
toRemove = i;
}
}
if (hasItem) {
player.getCurrentRoom().takeItem(toRemove);
player.takeItem(toRemove);
}
else System.out.println("That item is not in this room!");
}
/** This method starts the game, continuing until the user wants to quit */
public void play() {
printWelcome();
boolean finished = false;
while(!finished) {
if (player.getWeight() == 46) {
System.out.println("Congratulations! You have achieved a weight of 46.");
break;
}
System.out.println("\nThese are your exits >>> " + player.getCurrentRoom().getExitString());
System.out.println("These are the items in this Room >>> " + player.getCurrentRoom().roomItemsToString());
System.out.println("These are items on you >>>" + player.playerItemsToString());
System.out.print("This is your current weight >>>" + player.getWeight() + "\n>");
String line = in.nextLine();
Scanner tokenizer = new Scanner(line);
String command = null,second = null;
if (tokenizer.hasNext()) command = tokenizer.next();
if (tokenizer.hasNext()) second = tokenizer.next();
Command c = new Command(command,second);
finished = processCommand(c);
}
}
} | [
"[email protected]"
] | |
f58f2e13cb4540732a447c64809b9eaf0679955b | a540e962dbf0df854afc493b624702dc758faa7d | /Final/SimpleThesMin/app/src/main/java/nz/ac/wew248/simplethesmin/IViewModel.java | b69dfbc9ec7029a872a62673543effe7fe17ddbb | [] | no_license | WesleyNZ/TheseusMinotaurJava | ceaabdcf3b042ac2c32f6d7e9f39b630746e051d | 91d1b9c7748088553a08cd06cecae83f3d24a245 | refs/heads/master | 2020-03-24T23:31:40.352101 | 2018-08-01T10:35:37 | 2018-08-01T10:35:37 | 143,140,211 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 783 | java | package nz.ac.wew248.simplethesmin;
import android.content.Context;
import java.io.FileOutputStream;
import nz.ac.wew248.simplethesmin.model.IObserver;
import nz.ac.wew248.simplethesmin.model.Point;
import nz.ac.wew248.simplethesmin.model.Wall;
public interface IViewModel {
// void setContext(Context context);
void setMazeGame();
void attach(IObserver observer);
Point getTheseus();
Point getMinotaur();
Wall[][] getLeft();
Wall[][] getUp();
Point getExit();
void moveLeft();
void moveRight();
void moveUp();
void moveDown();
void pauseMove();
int getMoveCount();
void reset();
void undo();
void loadLevel(String level);
void saveGame(FileOutputStream file);
boolean getWin();
boolean getLose();
}
| [
"[email protected]"
] | |
3a30e50b8d088e22ec16abaebdcf514359502266 | a1c68447f468c47207b34ca270db97713062e5f8 | /library/src/main/java/com/mikephil/charting/data/LineRadarDataSet.java | 65ec94eadd77fe2936cc000cd7fa44596c4916e2 | [
"Apache-2.0"
] | permissive | jokeog/ProjectCalendae | a54126bd9bd83c25feb6007562fadf7ae3e32679 | d2f600dd4a0af15e33204d0e0f5ec224e3ff312b | refs/heads/master | 2021-01-10T09:59:13.605684 | 2016-04-03T19:05:24 | 2016-04-03T19:05:24 | 50,764,108 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,761 | java |
package com.mikephil.charting.data;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import com.mikephil.charting.interfaces.datasets.ILineRadarDataSet;
import com.mikephil.charting.utils.Utils;
import java.util.List;
/**
* Base dataset for line and radar DataSets.
*
* @author Philipp Jahoda
*/
public abstract class LineRadarDataSet<T extends Entry> extends LineScatterCandleRadarDataSet<T> implements ILineRadarDataSet<T> {
/**
* the color that is used for filling the line surface
*/
private int mFillColor = Color.rgb(140, 234, 255);
/**
* the drawable to be used for filling the line surface
*/
protected Drawable mFillDrawable;
/**
* transparency used for filling line surface
*/
private int mFillAlpha = 85;
/**
* the width of the drawn data lines
*/
private float mLineWidth = 2.5f;
/**
* if true, the data will also be drawn filled
*/
private boolean mDrawFilled = false;
public LineRadarDataSet(List<T> yVals, String label) {
super(yVals, label);
}
@Override
public int getFillColor() {
return mFillColor;
}
/**
* Sets the color that is used for filling the area below the line.
* Resets an eventually set "fillDrawable".
*
* @param color
*/
public void setFillColor(int color) {
mFillColor = color;
mFillDrawable = null;
}
@Override
public Drawable getFillDrawable() {
return mFillDrawable;
}
/**
* Sets the drawable to be used to fill the area below the line.
*
* @param drawable
*/
public void setFillDrawable(Drawable drawable) {
this.mFillDrawable = drawable;
}
@Override
public int getFillAlpha() {
return mFillAlpha;
}
/**
* sets the alpha value (transparency) that is used for filling the line
* surface (0-255), default: 85
*
* @param alpha
*/
public void setFillAlpha(int alpha) {
mFillAlpha = alpha;
}
/**
* set the line width of the chart (min = 0.2f, max = 10f); default 1f NOTE:
* thinner line == better performance, thicker line == worse performance
*
* @param width
*/
public void setLineWidth(float width) {
if (width < 0.2f)
width = 0.2f;
if (width > 10.0f)
width = 10.0f;
mLineWidth = Utils.convertDpToPixel(width);
}
@Override
public float getLineWidth() {
return mLineWidth;
}
@Override
public void setDrawFilled(boolean filled) {
mDrawFilled = filled;
}
@Override
public boolean isDrawFilledEnabled() {
return mDrawFilled;
}
}
| [
"[email protected]"
] | |
669a11ef844ea785ff63e929190af4d86281c4ef | 85c8bcde3fad200d12461964b562ad01fd76651f | /src/main/java/org/zella/utils/Utils.java | 3903aa757f7afee7b17964eaa2b736e45b26403b | [
"Apache-2.0"
] | permissive | zella/victorina-funny-bot | 7124c3b7a39f54102ad76a295c2319f170b9dfc8 | 42eabd428885406f4cf655b2d87334127c60c33d | refs/heads/master | 2021-01-20T09:32:10.308931 | 2017-05-04T12:53:42 | 2017-05-04T12:53:42 | 90,262,260 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,974 | java | package org.zella.utils;
import org.zella.config.IConfig;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Random;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;
/**
* @author zella.
*/
public class Utils {
/**
* шанс события
*
* @param zeroToOne [0.0f .. 1.0f]
* @return
*/
public static boolean shouldHappens(float zeroToOne) {
Random r = new Random();
return r.nextFloat() < zeroToOne;
}
private static final long MEGABYTE = 1024L * 1024L;
/**
* Returns a pseudo-random number between min and max, inclusive.
* The difference between min and max can be at most
* <code>Integer.MAX_VALUE - 1</code>.
*
* @param min Minimum value
* @param max Maximum value. Must be greater than min.
* @return Integer between min and max, inclusive.
* @see java.util.Random#nextInt(int)
*/
public static int randInt(int min, int max) {
// NOTE: This will (intentionally) not run as written so that folks
// copy-pasting have to think about how to initialize their
// Random instance. Initialization of the Random instance is outside
// the main scope of the question, but some decent options are to have
// a field that is initialized once and then re-used as needed or to
// use ThreadLocalRandom (if using at least Java 1.7).
Random rand = ThreadLocalRandom.current();
// nextInt is normally exclusive of the top value,
// so add 1 to make it inclusive
int randomNum = rand.nextInt((max - min) + 1) + min;
return randomNum;
}
public static int randInRange(IConfig.Range range) {
return randInt(range.min, range.max);
}
public static int[] shuffleArray(int[] ar) {
// If running on Java 6 or older, use `new Random()` on RHS here
Random rnd = ThreadLocalRandom.current();
for (int i = ar.length - 1; i > 0; i--) {
int index = rnd.nextInt(i + 1);
// Simple swap
int a = ar[index];
ar[index] = ar[i];
ar[i] = a;
}
return ar;
}
public static long[] randomLongs(final long count, final long min, final long max) {
final Random rand = ThreadLocalRandom.current();
//TODO test for max and minimum values
final long[] randomNum = rand.longs(count, min, max + 1).toArray();
return randomNum;
}
//TODO not tested
public static long[] randomLongsNonDuplicates(final long count, final long min, final long max) {
ThreadLocalRandom rng = ThreadLocalRandom.current();
// Note: use LinkedHashSet to maintain insertion order
//TODO not efficient
Set<Long> generated = new LinkedHashSet<>();
while (generated.size() < count) {
Long next = randLong(rng, min, max);
generated.add(next);
}
return generated.stream().mapToLong(i -> i).toArray();
}
private static long randLong(Random random, long min, long max) {
//TODO swith impl
return min + ((long) (random.nextDouble() * (max + 1 - min)));
}
private static String generateString(Random rng, String characters, int length) {
char[] text = new char[length];
for (int i = 0; i < length; i++) {
text[i] = characters.charAt(rng.nextInt(characters.length()));
}
return new String(text);
}
public static String generateString(int length) {
return generateString(ThreadLocalRandom.current(), "abcdefghi123456zxcv", length);
}
public static long bytesToMegabytes(long bytes) {
return bytes / MEGABYTE;
}
public static <T> T randomElement(Collection<T> coll) {
int num = (int) (Math.random() * coll.size());
for (T t : coll) if (--num < 0) return t;
throw new AssertionError();
}
}
| [
"[email protected]"
] | |
ddfab13a0187ede66aec7db822ca491e5ee0058e | 52f760f6499c1c05be400c50eacd5491ca691a17 | /src/graphTheory/utils/Triplet.java | 7d368b88ad5ca8b0d81662e2c11a2473f31320ff | [] | no_license | zhouwubai/HurricaneStoryline | e81c299e6a37e0591658b5d563e3ccdf31b63056 | 467d01a1f4bd63130ea2ecf7a17cb0aaf8f0bef4 | refs/heads/master | 2020-05-17T20:01:13.471437 | 2014-04-17T14:15:20 | 2014-04-17T14:15:20 | 12,333,867 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,416 | java | package graphTheory.utils;
/**
* A class implementing a 3-upplet of any classes T U and V
*
* @author Watel Dimitri
*
* @param <T>
* @param <U>
* @param <V>
*/
public class Triplet<T, U, V> {
public T first;
public U second;
public V third;
public Triplet(T f, U s, V t) {
first = f;
second = s;
third = t;
}
public String toString() {
StringBuilder s = new StringBuilder();
s.append('[');
s.append(first);
s.append(',');
s.append(second);
s.append(',');
s.append(third);
s.append(']');
return s.toString();
}
public int hashCode() {
int i1 = (first == null) ? 0 : first.hashCode();
int i2 = (second == null) ? 0 : second.hashCode();
int i3 = (third == null) ? 0 : third.hashCode();
return (i1 ^ i2) ^ i3;
}
@SuppressWarnings("unchecked")
public boolean equals(Object o) {
if (o instanceof Triplet) {
Triplet<T, U, V> t = (Triplet<T, U, V>) o;
return (first == null && t.first == null)
|| (first != null && first.equals(t.first))
&& (second == null && t.second == null)
|| (second != null && second.equals(t.second))
&& (third == null && t.third == null)
|| (third != null && third.equals(t.third));
}
return false;
}
@SuppressWarnings("unchecked")
public Object clone() {
try {
return (Triplet<T, U, V>) super.clone();
} catch (CloneNotSupportedException e) {
e.printStackTrace();
}
return null;
}
} | [
"[email protected]"
] | |
80d1b891e464bb98fe055a1b688fad3b22b8d400 | 1018cc72a29b6ef62b49880ed3c1962747d9055f | /app/src/main/java/com/example/catchat/ui/tools/ToolsViewModel.java | 11640f709ac5f6da9c95030f3c3e18d359217ce1 | [] | no_license | VBeegle/FragmentsAndNavigation | ea1d14c93bfeb6ddd85cd1a0892dd7960206f1b7 | 5372c766efbaa925d413159efe43fa31daea5090 | refs/heads/master | 2020-09-01T22:54:04.237222 | 2019-11-01T23:55:31 | 2019-11-01T23:55:31 | 219,079,211 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 446 | java | package com.example.catchat.ui.tools;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class ToolsViewModel extends ViewModel {
private MutableLiveData<String> mText;
public ToolsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("This is tools fragment");
}
public LiveData<String> getText() {
return mText;
}
} | [
"[email protected]"
] | |
952ae1e4a0200244f9136f0642ee9550fe7988ad | bc16e6bd095f5a002f7251ed7f7e51758668925f | /app/src/main/java/com/example/myapplication/MainActivity.java | a84c1b6a63be8fa106a94cab7043e96f41e2ad30 | [] | no_license | JanePlatonova/puzzle | bad5109416e4b68ff2fcefaceece07dd52c16db8 | fd975709eedb98fc9ba6b7abd1a146ab10de7222 | refs/heads/master | 2022-04-19T22:48:07.274734 | 2020-04-14T19:51:02 | 2020-04-14T19:51:02 | 255,708,934 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,433 | java | package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
public class MainActivity extends AppCompatActivity implements View.OnClickListener{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.layout_frame);
setContentView(R.layout.layout_relative);
View v11=(View) findViewById(R.id.view11);
View v12=(View)findViewById(R.id.view12);
View v13=(View)findViewById(R.id.view13);
View v21=(View)findViewById(R.id.view21);
View v22=(View)findViewById(R.id.view22);
View v23=(View)findViewById(R.id.view23);
v11.setOnClickListener(this);
v12.setOnClickListener(this);
v13.setOnClickListener(this);
v21.setOnClickListener(this);
v22.setOnClickListener(this);
v23.setOnClickListener(this);
}
private int orientation;
@Override
public void onClick(View v) {
v.setVisibility(View.INVISIBLE);
}
@Override
protected void onStop() {
Log.i("e","stop");
super.onStop();
}
@Override
protected void onResume() {
Log.i("44444444444","resume");
super.onResume();
}
}
| [
"[email protected]"
] | |
3cf4610f3da155ab0b57998e319320608393137e | 7b595de746020353259f2a4d58fc4d3b0e232ea3 | /app/src/androidTest/java/com/era/nightdozor/ExampleInstrumentedTest.java | 94f2cb444a1d06b66ec0e267b0e828cd2e0c8143 | [] | no_license | Abror96/NightDozor | 935c003d36d0ec936e0763bfe9def2922236a19e | a0a9ba89fe7108e8acce2b013409b2682cee2520 | refs/heads/master | 2020-06-25T18:03:33.183536 | 2020-06-02T11:08:05 | 2020-06-02T11:08:05 | 199,385,106 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 706 | java | package com.era.nightdozor;
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.era.nightdozor", appContext.getPackageName());
}
}
| [
"[email protected]"
] | |
c8aa3dc8d6d20cb6cb7b9b275020a5e9963d640f | 6b2ab23d370ad89194898f27f942d59551d86b5f | /mqtt_jmeter/src/main/java/net/xmeter/samplers/mqtt/fuse/FuseMQTTSpi.java | bdda210cec3de92b73bf8733c6919c402bd7aff4 | [
"Apache-2.0"
] | permissive | emqx/mqtt-jmeter | 2e32f0b591d6e7feb2b5bc8a29620f2bbbb8a1c2 | ae280a8ce008568a1db2776ee12088d2dedfcc27 | refs/heads/master | 2023-09-02T06:00:26.646941 | 2023-01-12T14:49:46 | 2023-07-26T02:07:16 | 79,292,397 | 231 | 125 | Apache-2.0 | 2023-07-26T02:07:18 | 2017-01-18T01:51:43 | Java | UTF-8 | Java | false | false | 268 | java | package net.xmeter.samplers.mqtt.fuse;
import net.xmeter.samplers.mqtt.MQTTFactory;
import net.xmeter.samplers.mqtt.MQTTSpi;
public class FuseMQTTSpi implements MQTTSpi {
@Override
public MQTTFactory factory() {
return new FuseMQTTFactory();
}
}
| [
"[email protected]"
] | |
e8bdd57503e20680eadc9accc51d6d828c2adda5 | 77270c8e299b23694a33a43b2cd957a8e1022d13 | /src/main/java/com/gmail/filimon24/adelin/labactivitytracker/business/service/AttendanceService.java | 0b9bc74702d5ec6a946a692c9a38019cd1acc9ce | [] | no_license | AdelinFilimon/Lab-Activity-Tracker | fa32423ae1d02abd49243c74ca4f8221c4e06c96 | 7eaf6a4d063621a88e56def4fa6ccdfc65a64766 | refs/heads/main | 2023-05-04T15:52:37.078522 | 2021-05-09T08:23:59 | 2021-05-09T08:23:59 | 354,966,666 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,433 | java | package com.gmail.filimon24.adelin.labactivitytracker.business.service;
import com.gmail.filimon24.adelin.labactivitytracker.business.exception.AttendanceAlreadyExistsException;
import com.gmail.filimon24.adelin.labactivitytracker.business.exception.AttendanceNotFoundException;
import com.gmail.filimon24.adelin.labactivitytracker.business.finder.EntityFromDtoFinder;
import com.gmail.filimon24.adelin.labactivitytracker.business.mapper.AttendanceMapper;
import com.gmail.filimon24.adelin.labactivitytracker.business.mapper.LaboratoryClassMapper;
import com.gmail.filimon24.adelin.labactivitytracker.business.mapper.StudentMapper;
import com.gmail.filimon24.adelin.labactivitytracker.model.AttendanceDto;
import com.gmail.filimon24.adelin.labactivitytracker.model.LaboratoryClassDto;
import com.gmail.filimon24.adelin.labactivitytracker.model.StudentDto;
import com.gmail.filimon24.adelin.labactivitytracker.persistence.AttendanceRepository;
import com.gmail.filimon24.adelin.labactivitytracker.persistence.model.Attendance;
import com.gmail.filimon24.adelin.labactivitytracker.persistence.model.AttendanceId;
import com.gmail.filimon24.adelin.labactivitytracker.persistence.model.AttendanceType;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.stream.Collectors;
@Service
@RequiredArgsConstructor
public class AttendanceService implements BasicService<AttendanceDto, AttendanceId>, UpdateEntityService<AttendanceDto, AttendanceId> {
private final AttendanceRepository attendanceRepository;
private final AttendanceMapper attendanceMapper;
private final StudentMapper studentMapper;
private final EntityFromDtoFinder entityFinder;
private final LaboratoryClassMapper laboratoryClassMapper;
@Override
public Object create(Object attendance) {
AttendanceDto attendanceDto = (AttendanceDto) attendance;
StudentDto studentDto = studentMapper.entityToDataAccess(entityFinder.findStudent(attendanceDto.getStudent()));
LaboratoryClassDto laboratoryClassDto = laboratoryClassMapper.entityToDataAccess(entityFinder.findLaboratoryClass(attendanceDto.getLaboratoryClass()));
AttendanceId attendanceId = AttendanceId.builder()
.student(studentDto.getId())
.laboratoryClass(laboratoryClassDto.getId())
.build();
if (attendanceRepository.existsById(attendanceId)) throw new AttendanceAlreadyExistsException(attendanceId);
attendanceDto.setStudent(studentDto);
attendanceDto.setLaboratoryClass(laboratoryClassDto);
Attendance attendanceDao = attendanceRepository.save(attendanceMapper.dataAccessToEntity(attendanceDto));
return attendanceMapper.entityToDataAccess(attendanceDao);
}
@Override
public AttendanceDto get(AttendanceId id) {
Attendance attendance = attendanceRepository.findById(id)
.orElseThrow(() -> new AttendanceNotFoundException(id));
return attendanceMapper.entityToDataAccess(attendance);
}
@Override
public List<AttendanceDto> getAll() {
return attendanceRepository.findAll()
.stream()
.map(attendanceMapper::entityToDataAccess)
.collect(Collectors.toList());
}
@Override
public void update(AttendanceId attendanceId, AttendanceDto attendanceDto) {
Attendance attendance = attendanceRepository.findById(attendanceId)
.orElseThrow(() -> new AttendanceNotFoundException(attendanceId));
if (attendanceDto.getAttendance() != null) {
attendance.setAttendance(AttendanceType.valueOf(attendanceDto.getAttendance()));
}
attendanceRepository.save(attendance);
}
@Override
public void delete(AttendanceId attendanceId) {
if (!attendanceRepository.existsById(attendanceId)) throw new AttendanceNotFoundException(attendanceId);
attendanceRepository.deleteById(attendanceId);
}
@Override
public void deleteAll() {
attendanceRepository.deleteAll();
}
public List<AttendanceDto> getAttendancesByLabId(Long laboratoryClassId) {
return attendanceRepository.findAttendancesByLaboratoryClassId(laboratoryClassId)
.stream()
.map(attendanceMapper::entityToDataAccess)
.collect(Collectors.toList());
}
}
| [
"[email protected]"
] | |
5915b5acc3b815f9fa9f0f34bec3a8c6ed11e93e | 72cb7730dced238faeef1714f19d0a4886a16654 | /src/day47_constructors/Student.java | a669c410f8e0dac59703296d87ec86770bc2c171 | [] | no_license | ablaziz/java-programming | 4f7e9902f29838893cc2f6be6b427a5881e06f67 | eb8ef853d5a26ba51241810206df270167eb7b56 | refs/heads/master | 2023-06-16T12:17:12.485081 | 2021-07-14T02:29:30 | 2021-07-14T02:29:30 | 371,526,788 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 541 | java | package day47_constructors;
public class Student {
//no args constructor
public Student(){
System.out.println("no-args constructor");
}
public Student (String name){
System.out.println("name param constructor | name = " +name);
}
// constructor with age
public Student(int age){
System.out.println("age param constructor | age = " +age);
}
public Student(String name, int age){
System.out.println("name and age param constructor name | age = " +age + "," + name);
}
}
| [
"[email protected]"
] | |
fa4afed817b130ccfeed19b33c1967986595a6ff | 19fbf6b9ab335165380b85f92e31438ff0511269 | /src/main/java/utils/HttpClientRequest.java | 822fdeb6168d14e2a79fa82228ffe6561a837759 | [] | no_license | chamil321/IntegrationTestSuite | 33f4b37385552c11a08a747c72998c1d26c21f9e | f4bf46ff8821954bd9ac992226bcf74b93de143c | refs/heads/master | 2022-12-20T19:47:04.867762 | 2019-06-16T06:51:57 | 2019-06-16T06:51:57 | 192,159,096 | 0 | 0 | null | 2022-02-09T22:37:46 | 2019-06-16T06:43:27 | Ballerina | UTF-8 | Java | false | false | 15,503 | java | package utils;/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 io.netty.handler.codec.http.HttpHeaderNames;
import io.netty.handler.codec.http.HttpHeaderValues;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.HttpURLConnection;
import java.net.ProtocolException;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
* This class can be used to send http request.
*/
public class HttpClientRequest {
private static final Logger LOG = LoggerFactory.getLogger(HttpClientRequest.class);
private static final int DEFAULT_READ_TIMEOUT = 30000;
/**
* Sends an HTTP GET request to a url.
*
* @param requestUrl - The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @param headers - http request header map
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the GET request
*/
public static HttpResponse doGet(String requestUrl, Map<String, String> headers)
throws IOException {
return executeRequestWithoutRequestBody(TestConstant.HTTP_METHOD_GET, requestUrl, headers);
}
/**
* Sends an HTTP GET request to a url.
*
* @param requestUrl - The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @param readTimeout - The read timeout of the request
* @param responseBuilder - Function that allows customizing reading/returning the actual response payload
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the GET request
*/
public static HttpResponse doGet(String requestUrl, int readTimeout, CheckedFunction responseBuilder)
throws IOException {
return executeRequestWithoutRequestBody(TestConstant.HTTP_METHOD_GET, requestUrl, new HashMap<String, String>(), readTimeout,
responseBuilder);
}
/**
* Sends an HTTP GET request to a url.
*
* @param requestUrl - The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the GET request
*/
public static HttpResponse doGet(String requestUrl) throws IOException {
return doGet(requestUrl, new HashMap<String, String>());
}
/**
* Sends an HTTP GET request to a url. In case of IOException, instead of printing the stacktrace that error
* will get bubbled up to the caller.
*
* @param requestUrl The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @param throwError Boolean representing whether the error should be thrown instead of printing the stack trace
* @return utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the GET request or in case an error response is received
*/
public static HttpResponse doGet(String requestUrl, boolean throwError) throws IOException {
return executeRequestWithoutRequestBody(TestConstant.HTTP_METHOD_GET, requestUrl, new HashMap<String, String>(), throwError);
}
/**
* Send an HTTP POST request to a service.
*
* @param endpoint - service endpoint
* @param postBody - message payload
* @param headers http request headers map
* @return - utils.HttpResponse from end point
* @throws IOException If an error occurs while sending the GET request
*/
public static HttpResponse doPost(String endpoint, String postBody, Map<String, String> headers)
throws IOException {
HttpURLConnection urlConnection = null;
try {
urlConnection = getURLConnection(endpoint);
setHeadersAndMethod(urlConnection, headers, TestConstant.HTTP_METHOD_POST);
OutputStream out = urlConnection.getOutputStream();
try {
Writer writer = new OutputStreamWriter(out, TestConstant.CHARSET_NAME);
writer.write(postBody);
writer.close();
} finally {
out.close();
}
return buildResponse(urlConnection);
} finally {
if (urlConnection != null) {
urlConnection.disconnect();
}
}
}
/**
* Sends an HTTP OPTIONS request to a url.
*
* @param requestUrl - The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @param headers http request headers map
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the OPTIONS request
*/
public static HttpResponse doOptions(String requestUrl, Map<String, String> headers) throws IOException {
return executeRequestWithoutRequestBody(TestConstant.HTTP_METHOD_OPTIONS, requestUrl, headers);
}
/**
* Sends an HTTP HEAD request to a url.
*
* @param requestUrl - The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the HEAD request
*/
public static HttpResponse doHead(String requestUrl) throws IOException {
return doHead(requestUrl, new HashMap<String, String>());
}
/**
* Sends an HTTP HEAD request to a url.
*
* @param requestUrl - The URL of the service. (Example: "http://www.yahoo.com/search?params=value")
* @param headers - http request header map
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the HEAD request
*/
public static HttpResponse doHead(String requestUrl, Map<String, String> headers) throws IOException {
HttpURLConnection conn = null;
HttpResponse httpResponse;
try {
conn = getURLConnection(requestUrl);
setHeadersAndMethod(conn, headers, TestConstant.HTTP_METHOD_HEAD);
conn.connect();
httpResponse = new HttpResponse(null, conn.getResponseCode());
httpResponse.setHeaders(readHeaders(conn));
httpResponse.setResponseMessage(conn.getResponseMessage());
return httpResponse;
} finally {
if (conn != null) {
conn.disconnect();
}
}
}
private static HttpResponse executeRequestWithoutRequestBody(String method, String requestUrl, Map<String
, String> headers) throws IOException {
return executeRequestWithoutRequestBody(method, requestUrl, headers, DEFAULT_READ_TIMEOUT,
defaultResponseBuilder);
}
private static HttpResponse executeRequestWithoutRequestBody(String method, String requestUrl, Map<String
, String> headers, boolean throwError) throws IOException {
return executeRequestWithoutRequestBody(method, requestUrl, headers, DEFAULT_READ_TIMEOUT,
defaultResponseBuilder, throwError);
}
private static HttpResponse executeRequestWithoutRequestBody(String method, String requestUrl,
Map<String, String> headers, int readTimeout, CheckedFunction responseBuilder) throws IOException {
HttpURLConnection conn = null;
try {
conn = getURLConnection(requestUrl, readTimeout);
setHeadersAndMethod(conn, headers, method);
conn.connect();
return buildResponse(conn, responseBuilder, false);
} finally {
if (conn != null) {
conn.disconnect();
}
}
}
private static HttpResponse executeRequestWithoutRequestBody(String method, String requestUrl,
Map<String, String> headers, int readTimeout,
CheckedFunction responseBuilder, boolean throwError)
throws IOException {
HttpURLConnection conn = null;
try {
conn = getURLConnection(requestUrl, readTimeout);
setHeadersAndMethod(conn, headers, method);
conn.connect();
return buildResponse(conn, responseBuilder, throwError);
} finally {
if (conn != null) {
conn.disconnect();
}
}
}
private static HttpURLConnection getURLConnection(String requestUrl) throws IOException {
return getURLConnection(requestUrl, DEFAULT_READ_TIMEOUT);
}
private static HttpURLConnection getURLConnection(String requestUrl, int readTimeout) throws IOException {
URL url = new URL(requestUrl);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setReadTimeout(readTimeout);
conn.setConnectTimeout(15000);
conn.setDoInput(true);
conn.setUseCaches(false);
conn.setAllowUserInteraction(false);
return conn;
}
private static Map<String, String> readHeaders(URLConnection urlConnection) {
Iterator<String> itr = urlConnection.getHeaderFields().keySet().iterator();
Map<String, String> headers = new HashMap();
while (itr.hasNext()) {
String key = itr.next();
if (key != null) {
headers.put(key, urlConnection.getHeaderField(key));
}
}
return headers;
}
private static void setHeadersAndMethod(HttpURLConnection conn, Map<String, String> headers, String method)
throws ProtocolException {
for (Map.Entry<String, String> e : headers.entrySet()) {
conn.addRequestProperty(e.getKey(), e.getValue());
}
conn.setRequestMethod(method);
}
private static HttpResponse buildResponse(HttpURLConnection conn) throws IOException {
return buildResponse(conn, defaultResponseBuilder, false);
}
private static HttpResponse buildResponse(HttpURLConnection conn,
CheckedFunction<BufferedReader, String> responseBuilder,
boolean throwError) throws IOException {
HttpResponse httpResponse;
BufferedReader rd = null;
String responseData;
try {
rd = new BufferedReader(new InputStreamReader(conn.getInputStream()
, Charset.defaultCharset()));
responseData = responseBuilder.apply(rd);
} catch (IOException ex) {
if (conn.getErrorStream() == null) {
if (throwError) {
throw ex;
} else {
LOG.error("Error in building HTTP response", ex.getMessage());
return null;
}
}
rd = new BufferedReader(new InputStreamReader(conn.getErrorStream()
, Charset.defaultCharset()));
String line;
StringBuilder sb = new StringBuilder();
while ((line = rd.readLine()) != null) {
sb.append(line);
}
responseData = sb.toString();
} finally {
if (rd != null) {
rd.close();
}
}
Map<String, String> responseHeaders = readHeaders(conn);
httpResponse = new HttpResponse(responseData, conn.getResponseCode(), responseHeaders);
httpResponse.setResponseMessage(conn.getResponseMessage());
return httpResponse;
}
private static CheckedFunction<BufferedReader, String> defaultResponseBuilder = ((bufferedReader) -> {
String line;
StringBuilder sb = new StringBuilder();
while ((line = bufferedReader.readLine()) != null) {
sb.append(line);
}
return sb.toString();
});
/**
* This is a custom functional interface which allows defining a method that throws an IOException.
*
* @param <T> Input parameter type
* @param <R> Return type
*/
@FunctionalInterface
public interface CheckedFunction<T, R> {
R apply(T t) throws IOException;
}
/**
* Sends multipart/form-data requests.
*
* @param requestUrl - The URL of the service
* @param headers - http request header map
* @param formData - map of form data
* @return - utils.HttpResponse from the end point
* @throws IOException If an error occurs while sending the GET request
*/
public static HttpResponse doMultipartFormData(String requestUrl, Map<String, String> headers,
Map<String, String> formData) throws IOException {
String boundary = "---" + System.currentTimeMillis() + "---";
String lineFeed = "\r\n";
HttpURLConnection urlConnection = null;
try {
urlConnection = getURLConnection(requestUrl);
setHeadersAndMethod(urlConnection, headers, TestConstant.HTTP_METHOD_POST);
urlConnection.setUseCaches(false);
urlConnection.setDoInput(true);
urlConnection.setRequestProperty(HttpHeaderNames.CONTENT_TYPE.toString(),
HttpHeaderValues.MULTIPART_FORM_DATA + "; boundary=" + boundary);
try (OutputStream out = urlConnection.getOutputStream()) {
Writer writer = new OutputStreamWriter(out, TestConstant.CHARSET_NAME);
for (Map.Entry<String, String> data : formData.entrySet()) {
writer.append("--" + boundary).append(lineFeed);
writer.append("Content-Disposition: form-data; name=\"" + data.getKey() + "\"")
.append(lineFeed);
writer.append(HttpHeaderNames.CONTENT_TYPE.toString() + ":" + HttpHeaderValues.TEXT_PLAIN +
"; charset=" + TestConstant.CHARSET_NAME).append(lineFeed);
writer.append(lineFeed);
writer.append(data.getValue()).append(lineFeed);
writer.flush();
}
writer.append(lineFeed).flush();
writer.append("--" + boundary + "--").append(lineFeed);
writer.close();
}
return buildResponse(urlConnection);
} finally {
if (urlConnection != null) {
urlConnection.disconnect();
}
}
}
}
| [
"[email protected]"
] | |
ca6877441ef13e63cec430dcdc95ed5aa2ad14ab | ddca0b74f958181ca7291cabd1e9bbebacf18829 | /src/main/java/com/yuqincar/action/common/BaseAction.java | a53bee21f587ee0bc8f3a5beadea2088a775eecc | [] | no_license | cqucuimao/SSH-Project | 39083fdd606c7285f3294a95470b0ea37f5a6901 | 701b5ba0c47465f5391b4905fd1567bfc53f9a5b | refs/heads/master | 2021-06-16T06:05:35.417709 | 2017-04-25T06:04:12 | 2017-04-25T06:04:12 | 89,456,486 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 1,974 | java | package com.yuqincar.action.common;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.ParameterizedType;
import javax.annotation.Resource;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.yuqincar.service.privilege.DepartmentService;
import com.yuqincar.service.privilege.RoleService;
import com.yuqincar.service.privilege.UserService;
import com.yuqincar.utils.HttpMethod;
import com.yuqincar.utils.TextResolve;
public abstract class BaseAction extends ActionSupport {
public BaseAction() {
}
public TextResolve tr = new TextResolve();
protected HttpServletRequest request = (HttpServletRequest) ActionContext.getContext()
.get(ServletActionContext.HTTP_REQUEST);
protected HttpServletResponse response = (HttpServletResponse) ActionContext.getContext()
.get(ServletActionContext.HTTP_RESPONSE);
protected ServletContext context=ServletActionContext.getServletContext();
protected int pageNum = 1; // 当前页,默认为第1页
public int getPageNum() {
return pageNum;
}
public void setPageNum(int pageNum) {
this.pageNum = pageNum;
}
//输出json到web页面
public void writeJson(String json) {
PrintWriter out;
// 不加可能会造成前端无法识别
response.setContentType("text/json");
// 第二句不加可能会有乱码
response.setCharacterEncoding("utf-8");
try {
out = response.getWriter();
out.write(json);
out.flush();
out.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public TextResolve getTr() {
return tr;
}
public void setTr(TextResolve tr) {
this.tr = tr;
}
}
| [
"chenhengxin@138713d6-2722-b04c-9809-0d1aa3304408"
] | chenhengxin@138713d6-2722-b04c-9809-0d1aa3304408 |
77838c6bb1dd2f9f7aafbd1c72e4a83d79585412 | aa5f25d714519ccfda2a89f382dfcefe1b3642fc | /trunk/dmisArea/src/com/techstar/dmis/service/IDdPremethodService.java | ca81e2dd0b57d956b9bf5b18095b8d46b483df4c | [] | no_license | BGCX261/zhouwei-repository-svn-to-git | 2b85060757568fadc0d45b526e2546ed1965d48a | cd7f50db245727418d5f1c0061681c11703d073e | refs/heads/master | 2021-01-23T03:44:27.914196 | 2015-08-25T15:45:29 | 2015-08-25T15:45:29 | 41,599,666 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,759 | java | package com.techstar.dmis.service;
import java.util.List;
import java.util.Collection;
import com.techstar.framework.dao.model.QueryListObj;
import com.techstar.dmis.dto.DdPremethodDto;
//注册子表DAO
import com.techstar.dmis.dto.DdMoutageplanDto;
import com.techstar.dmis.dto.DdEnsuringpsmanageDto;
//please add your business methods start
// to do it
//add your business method end
/**
* 业务对象服务接口类
* @author
* @date
*/
public interface IDdPremethodService {
public void addDdPremethod(DdPremethodDto dto);
/**
* 进行增加或修改操作业务处理
*
* @param dto
*DdPremethodDto 业务传输对象
*
*/
public void saveOrUpdateDdPremethod(DdPremethodDto dto);
public void saveOrUpdateDdPremethod(List dtos);
public QueryListObj listDdPremethodByHQL(String hql);
/**
* 进行加载的业务操作
* @param ddPremethodId
* Integer 主键值ֵ
*/
public DdPremethodDto loadDdPremethod(String ddPremethodId);
/**
* 删除指定的业务
* @param ddPremethodId
* Integer 主键值ֵ
*/
public void deleteDdPremethod(String ddPremethodId);
/**
* 删除指定的业务集合
**/
public void deleteDdPremethod(List dtos);
/**
* 进行申请查询操作业务处理
*/
/**
* 进行申请查询操作业务处理(分页)
*
* @return QueryListObj 封装了结果集及记录总数的对象
*/
public QueryListObj listDdPremethod();
public QueryListObj listDdPremethodByHql(String hql);
public QueryListObj getDdPremethodByHql(String hql,int beginPage, int pageSize,String sql);
//please add your business methods start
// to do it
//add your business method end
//子表处理DAO
public QueryListObj listDdMoutageplan();
public void saveOrUpdateDdMoutageplan(DdMoutageplanDto dto);
public void deleteDdMoutageplan(String fmonthplanno);
public DdMoutageplanDto loadDdMoutageplan(String fmonthplanno);
public QueryListObj listDdMoutageplanByHql(String hql);
public void saveOrUpdateDdMoutageplan(List dtos);
public void deleteDdMoutageplan(List dtos);
public QueryListObj listDdEnsuringpsmanage();
public void saveOrUpdateDdEnsuringpsmanage(DdEnsuringpsmanageDto dto);
public void deleteDdEnsuringpsmanage(String fid);
public DdEnsuringpsmanageDto loadDdEnsuringpsmanage(String fid);
public QueryListObj listDdEnsuringpsmanageByHql(String hql);
public void saveOrUpdateDdEnsuringpsmanage(List dtos);
public void deleteDdEnsuringpsmanage(List dtos);
//please add your business methods start
// to do it
//add your business method end
}
| [
"[email protected]"
] | |
622415198ac6231d66473f745eca776f9db66bf2 | de5c28cab9712dfddb0ebc16e2f1882bbdc14df3 | /NNS/src/nNS/Household.java | 662507ab1b46685ce643032794afcceaf0a0c6c0 | [] | no_license | sesmar/NNS | 2a60113d2bd348f051f43825fa2e11686a61bac9 | 1f32bca422c9fc236694868084a788c092382f32 | refs/heads/master | 2020-05-01T20:05:47.683944 | 2015-04-30T17:53:02 | 2015-04-30T17:53:02 | 13,921,831 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,266 | java | package nNS;
import java.util.ArrayList;
import java.util.List;
import repast.simphony.random.RandomHelper;
import repast.simphony.space.continuous.ContinuousSpace;
import repast.simphony.space.graph.Network;
import repast.simphony.space.graph.RepastEdge;
import repast.simphony.space.grid.Grid;
import repast.simphony.util.ContextUtils;
import repast.simphony.context.Context;
import repast.simphony.engine.schedule.ScheduledMethod;
import repast.simphony.engine.environment.RunEnvironment;
public class Household extends Agent {
private double _reservationWage;
private double _currentWage;
private boolean _employed;
private Firm _employer = null;
private RepastEdge<Object> _employmentEdge = null;
protected List<TradeConnection> tradeConnections = new ArrayList<TradeConnection>();
protected List<Firm> tradingFirms = new ArrayList<Firm>();
public Household(ContinuousSpace<Object> space, Grid<Object> grid, double liquidity, double reservationWage){
super(space, grid, liquidity);
this._reservationWage = reservationWage;
this._currentWage = 0;
_employed = false;
}
@ScheduledMethod(start = 1, interval = 1)
public void step(){
double tickCount = RunEnvironment.getInstance().getCurrentSchedule().getTickCount();
Context<Object> context = ContextUtils.getContext(this);
List<Firm> firms = new ArrayList<Firm>();
List<Firm> hiringFirms = new ArrayList<Firm>();
for(Object obj : _grid.getObjects()){
if (obj instanceof Firm){
if (((Firm)obj).isHiring()){
hiringFirms.add((Firm)obj);
}
firms.add((Firm)obj);
}
}
if (tickCount % NNSBuilder.PeriodLength == 0){
determineTradeConnections(firms, context);
}
seekEmployment(hiringFirms, context);
purchaseGoods(context);
}
public void seekEmployment(List<Firm> firms, Context<Object> context){
if (!_employed || _currentWage < _reservationWage){
if (firms.size() > 0){
int index = RandomHelper.nextIntFromTo(0, firms.size() - 1);
Firm firm = firms.get(index);
if (!_employed || firm.getWage() > _reservationWage){
Network<Object> net = (Network<Object>)context.getProjection("employment network");
_employmentEdge = net.addEdge(firm, this);
if (firm.hireEmployee(this))
{
_employer = firm;
_employed = true;
_currentWage = firm.getWage();
}
}
}
}
}
public void determineTradeConnections(List<Firm> firms, Context<Object> context){
while (tradeConnections.size() < NNSBuilder.MaxNumberOfTradeConnections){
if (firms.size() > 0){
int index = RandomHelper.nextIntFromTo(0, firms.size() - 1);
Firm firm = firms.get(index);
if (!tradingFirms.contains(firm)){
TradeConnection tradeConnection = new TradeConnection();
Network<Object> net = (Network<Object>)context.getProjection("trade network");
tradeConnection.edge = net.addEdge(this, firm);
tradeConnection.firm = firm;
tradingFirms.add(firm);
tradeConnections.add(tradeConnection);
}
}
}
}
protected void purchaseGoods(Context<Object> context){
int numberOfGoods = RandomHelper.nextIntFromTo(0, NNSBuilder.DemandForGoods);
for(int i = 0; i < numberOfGoods; i++){
if (tradeConnections.size() > 0){
int index = RandomHelper.nextIntFromTo(0, tradeConnections.size() - 1);
TradeConnection tc = tradeConnections.get(index);
Firm firm = tc.firm;
if(_liquidity > firm.getPrice()){
if (firm.purchaseGood()){
_liquidity -= firm.getPrice();
} else {
Network<Object> net = (Network<Object>)context.getProjection("trade network");
net.removeEdge(tc.edge);
tradeConnections.remove(tc);
tradingFirms.remove(firm);
}
}
}
}
}
public void fire(){
if (_employmentEdge != null){
Context<Object> context = ContextUtils.getContext(this);
Network<Object> net = (Network<Object>)context.getProjection("employment network");
net.removeEdge(_employmentEdge);
_employmentEdge = null;
}
_employer = null;
_employed = false;
_currentWage = 0;
}
@Override
public String toString(){
return "Household";
}
public boolean isEmployed(){
return _employed;
}
public double getWage(){
return _currentWage;
}
} | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.