blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2
values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 9.45M | extension stringclasses 28
values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
372432183c9e24adce9052b4003fdde70ba56f4d | 579f86b6c82531c8233d5581dc62634495722a8f | /app/src/main/java/com/example/taskmaster/TaskViewAdapter.java | 4ab0d2da1d0a53049875253c72304c013b11b3c5 | [] | no_license | AseelHamamreh/taskmaster-1 | 483b55791d5bb44f92d445edf652ba0857a75c55 | 29a9bb4cfed1339ae7a34bb2c086e80bbb2f8598 | refs/heads/main | 2023-07-19T17:17:42.608762 | 2021-09-01T11:02:33 | 2021-09-01T11:02:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,214 | java | package com.example.taskmaster;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
public class TaskViewAdapter extends RecyclerView.Adapter<TaskViewAdapter.ViewHolder> {
private final List<com.amplifyframework.datastore.generated.model.Task> taskList;
private OnTaskItemClickListener listener;
public interface OnTaskItemClickListener {
void onItemClicked(int position);
// void onDeleteItem(int position);
}
public TaskViewAdapter(List<com.amplifyframework.datastore.generated.model.Task> taskList, OnTaskItemClickListener listener) {
this.taskList = taskList;
this.listener = listener;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.task_layout, parent, false);
return new ViewHolder(view, listener);
}
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
com.amplifyframework.datastore.generated.model.Task task = taskList.get(position);
holder.title.setText(task.getTitle());
holder.state.setText(task.getState().toString());
}
@Override
public int getItemCount() {
return taskList.size();
}
static class ViewHolder extends RecyclerView.ViewHolder{
private final TextView title;
private TextView body;
private final TextView state;
ViewHolder(@NonNull View itemView, OnTaskItemClickListener listener) {
super(itemView);
title = itemView.findViewById(R.id.task_title);
state = itemView.findViewById(R.id.task_state);
itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
listener.onItemClicked(getAdapterPosition());
}
});
}
}
}
| [
"mahmoud.saadeh998@gmail.com"
] | mahmoud.saadeh998@gmail.com |
a47a7687902279bf9da5616767ad7088dc75c068 | 12371ac3b72f0ca0daa80c09beaf981659352e6c | /audit/impl/src/main/java/in/clouthink/synergy/audit/service/impl/AuthEventStatisticsServiceImpl.java | 96bb08e477126e6ad46ac21082ffc2d6ffc85306 | [
"Apache-2.0"
] | permissive | clouthink-in/synergy-backend | 99eb559403e9de136b15b08a853a1e022b72f840 | 39ebb3a23c3cb7cca75b249036833918b4dee5ba | refs/heads/master | 2021-05-01T18:07:56.518960 | 2018-07-23T13:26:58 | 2018-07-23T13:26:58 | 121,002,164 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,672 | java | package in.clouthink.synergy.audit.service.impl;
import in.clouthink.synergy.account.domain.model.User;
import in.clouthink.synergy.audit.domain.model.AggregationType;
import in.clouthink.synergy.audit.domain.model.AuthEvent;
import in.clouthink.synergy.audit.domain.model.AuthEventAggregation;
import in.clouthink.synergy.audit.exception.AuditEventException;
import in.clouthink.synergy.audit.repository.AuthEventAggregationRepository;
import in.clouthink.synergy.audit.repository.AuthEventRepository;
import in.clouthink.synergy.audit.service.AuthEventStatisticsService;
import in.clouthink.synergy.shared.DomainConstants;
import in.clouthink.synergy.shared.util.DateTimeUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Service
public class AuthEventStatisticsServiceImpl implements AuthEventStatisticsService {
private static final Log logger = LogFactory.getLog(AuthEventStatisticsServiceImpl.class);
@Autowired
private AuthEventRepository authEventRepository;
@Autowired
private AuthEventAggregationRepository authEventAggregationRepository;
@Override
public void statisticByDay(String realm, Date day) {
if (StringUtils.isEmpty(realm)) {
return;
}
if (day == null) {
return;
}
String aggregationKeyByDay = new SimpleDateFormat("yyyy-MM-dd").format(day);
logger.debug(String.format("statisticByDay : %s", aggregationKeyByDay));
Date startOfDay = DateTimeUtils.startOfDay(day);
Date endOfDay = DateTimeUtils.endOfDay(day);
List<AuthEvent> authEventList = authEventRepository.findListByLoginAtBetween(startOfDay, endOfDay);
AuthEventAggregation authEventAggregationByDay = authEventAggregationRepository.findByRealmAndAggregationTypeAndAggregationKey(
realm,
AggregationType.DAY,
aggregationKeyByDay);
if (authEventAggregationByDay == null) {
authEventAggregationByDay = new AuthEventAggregation();
authEventAggregationByDay.setAggregationType(AggregationType.DAY);
authEventAggregationByDay.setAggregationKey(aggregationKeyByDay);
}
long totalCountByDay = 0;
long errorCountByDay = 0;
for (AuthEvent authEvent : authEventList) {
totalCountByDay += 1;
if (!authEvent.isSucceed()) {
errorCountByDay += 1;
}
}
authEventAggregationByDay.setTotalCount(totalCountByDay);
authEventAggregationByDay.setErrorCount(errorCountByDay);
authEventAggregationRepository.save(authEventAggregationByDay);
}
@Override
public void statisticByMonth(String realm, Date dayOfMonth) {
if (StringUtils.isEmpty(realm)) {
return;
}
if (dayOfMonth == null) {
return;
}
String aggregationKeyByMonth = new SimpleDateFormat("yyyy-MM").format(dayOfMonth);
logger.debug(String.format("statisticByMonth : %s", aggregationKeyByMonth));
AuthEventAggregation authEventAggregationByMonth = authEventAggregationRepository.findByRealmAndAggregationTypeAndAggregationKey(
realm,
AggregationType.MONTH,
aggregationKeyByMonth);
if (authEventAggregationByMonth == null) {
authEventAggregationByMonth = new AuthEventAggregation();
authEventAggregationByMonth.setAggregationType(AggregationType.MONTH);
authEventAggregationByMonth.setAggregationKey(aggregationKeyByMonth);
}
List<AuthEventAggregation> authEventAggregationList = authEventAggregationRepository.findByRealmAndAggregationTypeAndAggregationKeyLike(
realm,
AggregationType.DAY,
aggregationKeyByMonth);
long totalCount = 0;
long errorCount = 0;
for (AuthEventAggregation authEventAggregation : authEventAggregationList) {
totalCount += authEventAggregation.getTotalCount();
errorCount += authEventAggregation.getErrorCount();
}
authEventAggregationByMonth.setTotalCount(totalCount);
authEventAggregationByMonth.setErrorCount(errorCount);
authEventAggregationRepository.save(authEventAggregationByMonth);
}
@Override
public void scanAllAuthEventsAndDoStatistics(String realm, User byWho) {
if (StringUtils.isEmpty(realm)) {
return;
}
if (!"administrator".equals(byWho.getUsername())) {
throw new AuditEventException("Only the administrator is allowed to access.");
}
long whenToStop = System.currentTimeMillis() - 100 * DomainConstants.HOW_LONG_OF_ONE_DAY;
Date day = new Date();
for (; day.getTime() > whenToStop; ) {
statisticByDay(realm, day);
statisticByMonth(realm, day);
day = new Date(day.getTime() - DomainConstants.HOW_LONG_OF_ONE_DAY);
}
}
}
| [
"melthaw@gmail.com"
] | melthaw@gmail.com |
6820b76c1d9be086dbda07a8b3996ca83e8a2a4c | 3a50eef11ab966fc32dabbc4397e73b3271497c3 | /src/main/java/com/alberto/aaentornos/domain/Patinete.java | ab99257e7f95c82ce6c25c15a6a2381e2b95651b | [] | no_license | albertrodtab/GesFlota | 0f182b0097d4be31288fcef9e058715ef3e735b6 | 2b182bf4d80240da68006ad253bd6e00b5d74b3e | refs/heads/develop | 2023-04-08T09:57:10.403538 | 2021-04-21T18:59:13 | 2021-04-21T18:59:13 | 353,791,574 | 0 | 0 | null | 2021-04-21T18:59:14 | 2021-04-01T18:29:12 | Java | UTF-8 | Java | false | false | 1,359 | java | package com.alberto.aaentornos.domain;
public class Patinete extends Vehiculo{
private boolean electrico;
private boolean incluyeCasco;
private Float potencia;
public Patinete(String marca, String modelo, int kms, String anoFabricacion, String numBastidor, boolean alquilado,
boolean incluyeCasco, Float potencia, boolean electrico) {
super(marca, modelo, kms, anoFabricacion, numBastidor, alquilado);
this.incluyeCasco = incluyeCasco;
this.potencia = potencia;
this.electrico = electrico;
}
public Patinete(){
}
public boolean isElectrico() {
return electrico;
}
public void setElectrico(boolean electrico) {
this.electrico = electrico;
}
public boolean isIncluyeCasco() {
return incluyeCasco;
}
public void setIncluyeCasco(boolean incluyeCasco) {
this.incluyeCasco = incluyeCasco;
}
public Float getPotencia() {
return potencia;
}
public void setPotencia(Float potencia) {
this.potencia = potencia;
}
@Override
public String toString() {
return super.toString().replace("Vehículo: ", "Patinete: ")
+ ", incluye casco= " + incluyeCasco
+ ", potencia= " + potencia
+ ", eléctrico= " + electrico;
}
}
| [
"albertrodtab@gmail.com"
] | albertrodtab@gmail.com |
8c80e7bd70b6a2c46947f7db9be37852aac77251 | 455bcd0be7ff90a832a1b202f998f3c7edf542a8 | /app/src/main/java/com/xiangmu/l/view/LyricShowView.java | ad9dbb4220675f2f7cfc1119d5429584b0aec444 | [] | no_license | 821193332/Mobile2 | 2e2c37f12ced3d0c052178f571723f2e5ce4ec55 | 406d9a5ffca3213fad768050dd5e6a31c7ed91ba | refs/heads/master | 2021-01-11T20:14:18.175294 | 2017-01-16T07:43:08 | 2017-01-16T07:43:08 | 79,073,167 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,274 | java | package com.xiangmu.l.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.TextView;
import com.xiangmu.l.bean.LyricBean;
import com.xiangmu.l.utils.DensityUtil;
import java.util.ArrayList;
public class LyricShowView extends TextView {
private final Context mContext;
private int width;
private int height;
private ArrayList<LyricBean> lyricBeen;
private Paint paint;
private Paint nopaint;
/**
* 歌词的索引
*/
private int index = 0;
private float textHeight;
/**
* 歌曲当前播放的进程
*/
private int currentPosition;
private float sleepTime;
private float timePoint;
public LyricShowView(Context context, AttributeSet attrs) {
super(context, attrs);
this.mContext = context;
textHeight = DensityUtil.dip2px(mContext,20);
initView();
}
private void initView() {
//创建画笔
paint = new Paint();
paint.setTextSize(DensityUtil.dip2px(mContext,16));
paint.setColor(Color.GREEN);
paint.setTextAlign(Paint.Align.CENTER);
paint.setAntiAlias(true);
nopaint = new Paint();
nopaint.setTextSize(DensityUtil.dip2px(mContext,16));
nopaint.setColor(Color.WHITE);
nopaint.setTextAlign(Paint.Align.CENTER);
nopaint.setAntiAlias(true);
// lyricBeen = new ArrayList<>();
// //添加歌词列表
// LyricBean lyricBean = new LyricBean();
// for (int i = 0; i < 1000; i++) {
// //歌词内容
// lyricBean.setContent("aaaaaaaaaaa" + i);
// //休眠时间
// lyricBean.setSleepTime(i + 1000);
// //时间戳
// lyricBean.setTimePoint(i * 1000);
// //添加到集合中
// lyricBeen.add(lyricBean);
// //重新创建
// lyricBean = new LyricBean();
//
// }
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
width = w;
height = h;
}
/**
* 绘制歌词
*/
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (lyricBeen != null && lyricBeen.size() > 0) {
if(index != lyricBeen.size()-1){
float plush = 0;
if(sleepTime==0){
plush = 0;
}else{
// 这一句花的时间: 这一句休眠时间 = 这一句要移动的距离:总距离(行高)
//这一句要移动的距离 = (这一句花的时间/这一句休眠时间) * 总距离(行高)
plush = ((currentPosition-timePoint)/sleepTime)*textHeight;
}
canvas.translate(0,-plush);
}
//绘制歌词
//当前句-绿色
String content = lyricBeen.get(index).getContent();
canvas.drawText(content, width / 2, height / 2, paint);
//绘制前面部分
float tempY = height / 2;
for (int i = index - 1; i >= 0; i--) {
tempY = tempY - textHeight;
if (tempY < 0) {
break;
}
String preContent = lyricBeen.get(i).getContent();
canvas.drawText(preContent, width / 2, tempY, nopaint);
}
//绘制后面部分
tempY = height / 2;
for (int i = index + 1; i < lyricBeen.size(); i++) {
tempY = tempY + textHeight;
if (tempY > height) {
break;
}
String nextContent = lyricBeen.get(i).getContent();
canvas.drawText(nextContent, width / 2, tempY, nopaint);
}
} else {
//没有歌词
canvas.drawText("没有找到歌词...", width / 2, height / 2, paint);
}
}
/**
* 根据当前播放的位置,计算高亮哪句,并且与歌曲播放同步
*
* @param currentPosition
*/
public void setNextShowLyric(int currentPosition) {
this.currentPosition = currentPosition;
if(lyricBeen ==null || lyricBeen.size()==0)
return;
for (int i=1;i<lyricBeen.size();i++){
if(currentPosition <lyricBeen.get(i).getTimePoint()){
int indexTemp = i - 1;
if(currentPosition >= lyricBeen.get(indexTemp).getTimePoint()){
//就我们要找的高亮的哪句
index = indexTemp;//某一句歌词的索引
sleepTime = lyricBeen.get(indexTemp).getSleepTime();
timePoint = lyricBeen.get(indexTemp).getTimePoint();
}
}else{
index = i;
}
}
invalidate();//强制绘制
}
/**
* 设置歌词列表
* @param lyricBeens
*/
public void setLyrics(ArrayList<LyricBean> lyricBeens) {
this.lyricBeen = lyricBeens;
}
}
| [
"bieweiwoku@163.com"
] | bieweiwoku@163.com |
018f2c37e507b33cee1c53238eee7f869dd1d210 | 74e85f5d83fde8e50bb1efc417067d71eda5816e | /app/src/main/java/com/juns/wechat/view/fragment/Fragment_Msg.java | 0b34881c9721a558e498438204b53d112da52235 | [] | no_license | cgw668/MyWeiChat | 28579388002bbb8ef5a62c9f1e3ea280cffb2893 | 525a565d771f4bf8117ad536638077bf43028626 | refs/heads/master | 2021-01-10T13:29:02.655330 | 2016-02-25T09:52:16 | 2016-02-25T09:52:16 | 52,510,003 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,984 | java | package com.juns.wechat.view.fragment;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Hashtable;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.easemob.chat.EMChatManager;
import com.easemob.chat.EMConversation;
import com.easemob.chat.EMMessage;
import com.juns.wechat.Constants;
import com.juns.wechat.GloableParams;
import com.juns.wechat.MainActivity;
import com.juns.wechat.R;
import com.juns.wechat.adpter.NewMsgAdpter;
import com.juns.wechat.bean.GroupInfo;
import com.juns.wechat.bean.PublicMsgInfo;
import com.juns.wechat.bean.User;
import com.juns.wechat.chat.ChatActivity;
import com.juns.wechat.common.NetUtil;
import com.juns.wechat.common.Utils;
import com.juns.wechat.view.activity.PublishMsgListActivity;
//消息
public class Fragment_Msg extends Fragment implements OnClickListener,
OnItemClickListener {
private Activity ctx;
private View layout, layout_head;;
public RelativeLayout errorItem;
public TextView errorText;
private ListView lvContact;
private NewMsgAdpter adpter;
private List<EMConversation> conversationList = new ArrayList<EMConversation>();
public MainActivity parentActivity;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (layout == null) {
ctx = this.getActivity();
parentActivity = (MainActivity) getActivity();
layout = ctx.getLayoutInflater().inflate(R.layout.fragment_msg,
null);
lvContact = (ListView) layout.findViewById(R.id.listview);
errorItem = (RelativeLayout) layout
.findViewById(R.id.rl_error_item);
errorText = (TextView) errorItem
.findViewById(R.id.tv_connect_errormsg);
setOnListener();
} else {
ViewGroup parent = (ViewGroup) layout.getParent();
if (parent != null) {
parent.removeView(layout);
}
}
return layout;
}
@Override
public void onResume() {
super.onResume();
conversationList.clear();
initViews();
}
/**
* 刷新页面
*/
public void refresh() {
conversationList.clear();
initViews();
}
private void initViews() {
conversationList.addAll(loadConversationsWithRecentChat());
if (conversationList != null && conversationList.size() > 0) {
layout.findViewById(R.id.txt_nochat).setVisibility(View.GONE);
adpter = new NewMsgAdpter(getActivity(), conversationList);
// TODO 加载订阅号信息 ,增加一个Item
// if (GloableParams.isHasPulicMsg) {
EMConversation nee = new EMConversation("100000");
conversationList.add(0, nee);
String time = Utils.getValue(getActivity(), "Time");
String content = Utils.getValue(getActivity(), "Content");
time = "下午 02:45";
content = "[腾讯娱乐] 赵薇炒股日赚74亿";
PublicMsgInfo msgInfo = new PublicMsgInfo();
msgInfo.setContent(content);
msgInfo.setMsg_ID("12");
msgInfo.setTime(time);
adpter.setPublicMsg(msgInfo);
// }
lvContact.setAdapter(adpter);
} else {
layout.findViewById(R.id.txt_nochat).setVisibility(View.VISIBLE);
}
}
/**
* 获取所有会话
*
* @param
* @return +
*/
private List<EMConversation> loadConversationsWithRecentChat() {
// 获取所有会话,包括陌生人
Hashtable<String, EMConversation> conversations = EMChatManager
.getInstance().getAllConversations();
List<EMConversation> list = new ArrayList<EMConversation>();
// 过滤掉messages seize为0的conversation
for (EMConversation conversation : conversations.values()) {
if (conversation.getAllMessages().size() != 0)
list.add(conversation);
}
// 排序
sortConversationByLastChatTime(list);
return list;
}
/**
* 根据最后一条消息的时间排序
*
* @param conversationList
*/
private void sortConversationByLastChatTime(
List<EMConversation> conversationList) {
Collections.sort(conversationList, new Comparator<EMConversation>() {
@Override
public int compare(final EMConversation con1,
final EMConversation con2) {
EMMessage con2LastMessage = con2.getLastMessage();
EMMessage con1LastMessage = con1.getLastMessage();
if (con2LastMessage.getMsgTime() == con1LastMessage
.getMsgTime()) {
return 0;
} else if (con2LastMessage.getMsgTime() > con1LastMessage
.getMsgTime()) {
return 1;
} else {
return -1;
}
}
});
}
private void setOnListener() {
lvContact.setOnItemClickListener(this);
errorItem.setOnClickListener(this);
}
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position,
long arg3) {
if (adpter.PublicMsg != null && position == 0) {
// 打开订阅号列表页面
Utils.start_Activity(getActivity(), PublishMsgListActivity.class);
} else {
((MainActivity) getActivity()).updateUnreadLabel();
EMConversation conversation = conversationList.get(position);
Intent intent = new Intent(getActivity(), ChatActivity.class);
Hashtable<String, String> ChatRecord = adpter.getChatRecord();
if (ChatRecord != null) {
if (conversation.isGroup()) {
GroupInfo info = GloableParams.GroupInfos.get(conversation
.getUserName());
if (info != null) {
intent.putExtra(Constants.TYPE,
ChatActivity.CHATTYPE_GROUP);
intent.putExtra(Constants.GROUP_ID, info.getGroup_id());
intent.putExtra(Constants.NAME, info.getGroup_name());// 设置标题
getActivity().startActivity(intent);
} else {
intent.putExtra(Constants.TYPE,
ChatActivity.CHATTYPE_GROUP);
intent.putExtra(Constants.GROUP_ID, info.getGroup_id());
intent.putExtra(Constants.NAME, R.string.group_chats);// 设置标题
getActivity().startActivity(intent);
}
} else {
User user = GloableParams.Users.get(conversation
.getUserName());
if (user != null) {
intent.putExtra(Constants.NAME, user.getUserName());// 设置昵称
intent.putExtra(Constants.TYPE,
ChatActivity.CHATTYPE_SINGLE);
intent.putExtra(Constants.User_ID,
conversation.getUserName());
getActivity().startActivity(intent);
} else {
intent.putExtra(Constants.NAME, "好友");
intent.putExtra(Constants.TYPE,
ChatActivity.CHATTYPE_SINGLE);
intent.putExtra(Constants.User_ID,
conversation.getUserName());
getActivity().startActivity(intent);
}
}
}
}
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.rl_error_item:
NetUtil.openSetNetWork(getActivity());
break;
default:
break;
}
}
}
| [
"2446564680@qq.com"
] | 2446564680@qq.com |
8d139c65839b76ec07172782080abbed64ba705b | 20ffc4c15b42845f7b6fe05c00dde2a0a5ab4db6 | /HolaWorldUno/gen/com/example/holaworlduno/R.java | 9b53227ee1e747937ddfb8d6463d8b662a312d2e | [] | no_license | ngSliver/HolaWorld | aedff0fc65c2341f3af5bf2e054d22cce01736fe | dea6ec7c6ed025d93af8b527bca89557a0a57a1f | refs/heads/master | 2021-01-19T08:15:47.057373 | 2014-10-03T16:59:06 | 2014-10-03T16:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 181,541 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.example.holaworlduno;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f040000;
public static final int abc_fade_out=0x7f040001;
public static final int abc_slide_in_bottom=0x7f040002;
public static final int abc_slide_in_top=0x7f040003;
public static final int abc_slide_out_bottom=0x7f040004;
public static final int abc_slide_out_top=0x7f040005;
}
public static final class attr {
/** Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarDivider=0x7f01000f;
/** Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=0x7f010010;
/** Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionBarSize=0x7f01000e;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f01000c;
/** Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f01000b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f010008;
/** Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=0x7f010007;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabTextStyle=0x7f010009;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f01000d;
/** Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=0x7f010016;
/** Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionDropDownStyle=0x7f010047;
/** An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionLayout=0x7f01004e;
/** TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionMenuTextAppearance=0x7f010011;
/** Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010012;
/** Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=0x7f01003c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f01003b;
/** Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01003e;
/** Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f010040;
/** Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01003f;
/** Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010044;
/** Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010041;
/** PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010046;
/** Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010042;
/** Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010043;
/** Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01003d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f01003a;
/** Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeWebSearchDrawable=0x7f010045;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01000a;
/** The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f010050;
/** The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=0x7f01004f;
/** Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int activityChooserViewStyle=0x7f01006c;
/** Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int background=0x7f01002f;
/** Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f010031;
/** Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f010030;
/** A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarButtonStyle=0x7f010018;
/** A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f010017;
/** Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f010032;
/** Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int disableChildrenWhenDisabled=0x7f010054;
/** Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=0x7f010028;
/** Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int divider=0x7f01002e;
/** A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f01001b;
/** Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f010056;
/** A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f01001a;
/** ListPopupWindow comaptibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dropDownListViewStyle=0x7f010021;
/** The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=0x7f010048;
/** The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=0x7f01006b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010026;
/** Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=0x7f010013;
/** Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeLayout=0x7f010033;
/** Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f01002c;
/** The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f01005a;
/** Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int indeterminateProgressStyle=0x7f010035;
/** The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f01006a;
/** Specifies whether the theme is light, otherwise it is dark.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010059;
/** Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=0x7f010037;
/** Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f010022;
/** The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f01001c;
/** A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f01001e;
/** A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f01001d;
/** The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f01001f;
/** The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=0x7f010020;
/** Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int logo=0x7f01002d;
/** The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
*/
public static final int navigationMode=0x7f010027;
/** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingEnd=0x7f010039;
/** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f010038;
/** Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelMenuListTheme=0x7f01004b;
/** Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=0x7f01004a;
/** Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupMenuStyle=0x7f010049;
/** Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupPromptView=0x7f010053;
/** Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int progressBarPadding=0x7f010036;
/** Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int progressBarStyle=0x7f010034;
/** The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int prompt=0x7f010051;
/** An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f01005b;
/** SearchView dropdown background
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchDropdownBackground=0x7f01005c;
/** The list item height for search results. @hide
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int searchResultListItemHeight=0x7f010065;
/** SearchView AutoCompleteTextView style
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewAutoCompleteTextView=0x7f010069;
/** SearchView close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewCloseIcon=0x7f01005d;
/** SearchView query refinement icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewEditQuery=0x7f010061;
/** SearchView query refinement icon background
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewEditQueryBackground=0x7f010062;
/** SearchView Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewGoIcon=0x7f01005e;
/** SearchView Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewSearchIcon=0x7f01005f;
/** SearchView text field background for the left section
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewTextField=0x7f010063;
/** SearchView text field background for the right section
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewTextFieldRight=0x7f010064;
/** SearchView Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewVoiceIcon=0x7f010060;
/** A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010019;
/** How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
*/
public static final int showAsAction=0x7f01004d;
/** Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f010055;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=0x7f010058;
/** Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
*/
public static final int spinnerMode=0x7f010052;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerStyle=0x7f010057;
/** Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=0x7f010029;
/** Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=0x7f01002b;
/** Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f01006d;
/** Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=0x7f010014;
/** The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItem=0x7f010023;
/** The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItemSmall=0x7f010024;
/** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultSubtitle=0x7f010067;
/** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultTitle=0x7f010066;
/** Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSmallPopupMenu=0x7f010015;
/** Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=0x7f010068;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=0x7f010025;
/** Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f01002a;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010000;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010001;
/** A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010006;
/** A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010004;
/** A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010003;
/** A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010005;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowSplitActionBar=0x7f010002;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f060000;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f060001;
/** Whether action menu items should be displayed in ALLCAPS or not.
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources.
*/
public static final int abc_config_actionMenuItemAllCaps=0x7f060005;
/** Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited.
Whether action menu items should obey the "withText" showAsAction.
This may be set to false for situations where space is
extremely limited.
*/
public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f060004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f060003;
public static final int abc_split_action_bar_is_narrow=0x7f060002;
}
public static final class color {
public static final int abc_search_url_text_holo=0x7f070003;
public static final int abc_search_url_text_normal=0x7f070000;
public static final int abc_search_url_text_pressed=0x7f070002;
public static final int abc_search_url_text_selected=0x7f070001;
}
public static final class dimen {
/** Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
*/
public static final int abc_action_bar_default_height=0x7f080002;
/** Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding=0x7f080003;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f08000a;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f080009;
/** Maximum width for a stacked action bar tab. This prevents
action bar tabs from becoming too wide on a wide screen when only
a few are present.
*/
public static final int abc_action_bar_stacked_tab_max_width=0x7f080001;
/** Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin=0x7f080007;
/** Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
*/
public static final int abc_action_bar_subtitle_text_size=0x7f080005;
/** Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin=0x7f080006;
/** Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
*/
public static final int abc_action_bar_title_text_size=0x7f080004;
/** Minimum width for an action button in the menu area of an action bar
Minimum width for an action button in the menu area of an action bar
Minimum width for an action button in the menu area of an action bar
*/
public static final int abc_action_button_min_width=0x7f080008;
/** The maximum width we would prefer dialogs to be. 0 if there is no
maximum (let them grow as large as the screen). Actual values are
specified for -large and -xlarge configurations.
see comment in values/config.xml
see comment in values/config.xml
*/
public static final int abc_config_prefDialogWidth=0x7f080000;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f080010;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f08000e;
public static final int abc_dropdownitem_text_padding_right=0x7f08000f;
public static final int abc_panel_menu_list_width=0x7f08000b;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f08000d;
/** Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
*/
public static final int abc_search_view_text_min_width=0x7f08000c;
/** Default screen margins, per the Android Design guidelines.
Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
*/
public static final int activity_horizontal_margin=0x7f080015;
public static final int activity_vertical_margin=0x7f080016;
/** The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_major=0x7f080013;
/** The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_minor=0x7f080014;
/** The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_major=0x7f080011;
/** The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_minor=0x7f080012;
}
public static final class drawable {
public static final int abc_ab_bottom_solid_dark_holo=0x7f020000;
public static final int abc_ab_bottom_solid_light_holo=0x7f020001;
public static final int abc_ab_bottom_transparent_dark_holo=0x7f020002;
public static final int abc_ab_bottom_transparent_light_holo=0x7f020003;
public static final int abc_ab_share_pack_holo_dark=0x7f020004;
public static final int abc_ab_share_pack_holo_light=0x7f020005;
public static final int abc_ab_solid_dark_holo=0x7f020006;
public static final int abc_ab_solid_light_holo=0x7f020007;
public static final int abc_ab_stacked_solid_dark_holo=0x7f020008;
public static final int abc_ab_stacked_solid_light_holo=0x7f020009;
public static final int abc_ab_stacked_transparent_dark_holo=0x7f02000a;
public static final int abc_ab_stacked_transparent_light_holo=0x7f02000b;
public static final int abc_ab_transparent_dark_holo=0x7f02000c;
public static final int abc_ab_transparent_light_holo=0x7f02000d;
public static final int abc_cab_background_bottom_holo_dark=0x7f02000e;
public static final int abc_cab_background_bottom_holo_light=0x7f02000f;
public static final int abc_cab_background_top_holo_dark=0x7f020010;
public static final int abc_cab_background_top_holo_light=0x7f020011;
public static final int abc_ic_ab_back_holo_dark=0x7f020012;
public static final int abc_ic_ab_back_holo_light=0x7f020013;
public static final int abc_ic_cab_done_holo_dark=0x7f020014;
public static final int abc_ic_cab_done_holo_light=0x7f020015;
public static final int abc_ic_clear=0x7f020016;
public static final int abc_ic_clear_disabled=0x7f020017;
public static final int abc_ic_clear_holo_light=0x7f020018;
public static final int abc_ic_clear_normal=0x7f020019;
public static final int abc_ic_clear_search_api_disabled_holo_light=0x7f02001a;
public static final int abc_ic_clear_search_api_holo_light=0x7f02001b;
public static final int abc_ic_commit_search_api_holo_dark=0x7f02001c;
public static final int abc_ic_commit_search_api_holo_light=0x7f02001d;
public static final int abc_ic_go=0x7f02001e;
public static final int abc_ic_go_search_api_holo_light=0x7f02001f;
public static final int abc_ic_menu_moreoverflow_normal_holo_dark=0x7f020020;
public static final int abc_ic_menu_moreoverflow_normal_holo_light=0x7f020021;
public static final int abc_ic_menu_share_holo_dark=0x7f020022;
public static final int abc_ic_menu_share_holo_light=0x7f020023;
public static final int abc_ic_search=0x7f020024;
public static final int abc_ic_search_api_holo_light=0x7f020025;
public static final int abc_ic_voice_search=0x7f020026;
public static final int abc_ic_voice_search_api_holo_light=0x7f020027;
public static final int abc_item_background_holo_dark=0x7f020028;
public static final int abc_item_background_holo_light=0x7f020029;
public static final int abc_list_divider_holo_dark=0x7f02002a;
public static final int abc_list_divider_holo_light=0x7f02002b;
public static final int abc_list_focused_holo=0x7f02002c;
public static final int abc_list_longpressed_holo=0x7f02002d;
public static final int abc_list_pressed_holo_dark=0x7f02002e;
public static final int abc_list_pressed_holo_light=0x7f02002f;
public static final int abc_list_selector_background_transition_holo_dark=0x7f020030;
public static final int abc_list_selector_background_transition_holo_light=0x7f020031;
public static final int abc_list_selector_disabled_holo_dark=0x7f020032;
public static final int abc_list_selector_disabled_holo_light=0x7f020033;
public static final int abc_list_selector_holo_dark=0x7f020034;
public static final int abc_list_selector_holo_light=0x7f020035;
public static final int abc_menu_dropdown_panel_holo_dark=0x7f020036;
public static final int abc_menu_dropdown_panel_holo_light=0x7f020037;
public static final int abc_menu_hardkey_panel_holo_dark=0x7f020038;
public static final int abc_menu_hardkey_panel_holo_light=0x7f020039;
public static final int abc_search_dropdown_dark=0x7f02003a;
public static final int abc_search_dropdown_light=0x7f02003b;
public static final int abc_spinner_ab_default_holo_dark=0x7f02003c;
public static final int abc_spinner_ab_default_holo_light=0x7f02003d;
public static final int abc_spinner_ab_disabled_holo_dark=0x7f02003e;
public static final int abc_spinner_ab_disabled_holo_light=0x7f02003f;
public static final int abc_spinner_ab_focused_holo_dark=0x7f020040;
public static final int abc_spinner_ab_focused_holo_light=0x7f020041;
public static final int abc_spinner_ab_holo_dark=0x7f020042;
public static final int abc_spinner_ab_holo_light=0x7f020043;
public static final int abc_spinner_ab_pressed_holo_dark=0x7f020044;
public static final int abc_spinner_ab_pressed_holo_light=0x7f020045;
public static final int abc_tab_indicator_ab_holo=0x7f020046;
public static final int abc_tab_selected_focused_holo=0x7f020047;
public static final int abc_tab_selected_holo=0x7f020048;
public static final int abc_tab_selected_pressed_holo=0x7f020049;
public static final int abc_tab_unselected_pressed_holo=0x7f02004a;
public static final int abc_textfield_search_default_holo_dark=0x7f02004b;
public static final int abc_textfield_search_default_holo_light=0x7f02004c;
public static final int abc_textfield_search_right_default_holo_dark=0x7f02004d;
public static final int abc_textfield_search_right_default_holo_light=0x7f02004e;
public static final int abc_textfield_search_right_selected_holo_dark=0x7f02004f;
public static final int abc_textfield_search_right_selected_holo_light=0x7f020050;
public static final int abc_textfield_search_selected_holo_dark=0x7f020051;
public static final int abc_textfield_search_selected_holo_light=0x7f020052;
public static final int abc_textfield_searchview_holo_dark=0x7f020053;
public static final int abc_textfield_searchview_holo_light=0x7f020054;
public static final int abc_textfield_searchview_right_holo_dark=0x7f020055;
public static final int abc_textfield_searchview_right_holo_light=0x7f020056;
public static final int ic_launcher=0x7f020057;
}
public static final class id {
public static final int action_bar=0x7f05001c;
public static final int action_bar_activity_content=0x7f050015;
public static final int action_bar_container=0x7f05001b;
public static final int action_bar_overlay_layout=0x7f05001f;
public static final int action_bar_root=0x7f05001a;
public static final int action_bar_subtitle=0x7f050023;
public static final int action_bar_title=0x7f050022;
public static final int action_context_bar=0x7f05001d;
public static final int action_menu_divider=0x7f050016;
public static final int action_menu_presenter=0x7f050017;
public static final int action_mode_close_button=0x7f050024;
public static final int action_settings=0x7f05003c;
public static final int activity_chooser_view_content=0x7f050025;
public static final int always=0x7f05000b;
public static final int beginning=0x7f050011;
public static final int checkbox=0x7f05002d;
public static final int collapseActionView=0x7f05000d;
public static final int default_activity_button=0x7f050028;
public static final int dialog=0x7f05000e;
public static final int disableHome=0x7f050008;
public static final int dropdown=0x7f05000f;
public static final int edit_query=0x7f050030;
public static final int end=0x7f050013;
public static final int expand_activities_button=0x7f050026;
public static final int expanded_menu=0x7f05002c;
public static final int home=0x7f050014;
public static final int homeAsUp=0x7f050005;
public static final int icon=0x7f05002a;
public static final int ifRoom=0x7f05000a;
public static final int image=0x7f050027;
public static final int listMode=0x7f050001;
public static final int list_item=0x7f050029;
public static final int middle=0x7f050012;
public static final int never=0x7f050009;
public static final int none=0x7f050010;
public static final int normal=0x7f050000;
public static final int progress_circular=0x7f050018;
public static final int progress_horizontal=0x7f050019;
public static final int radio=0x7f05002f;
public static final int search_badge=0x7f050032;
public static final int search_bar=0x7f050031;
public static final int search_button=0x7f050033;
public static final int search_close_btn=0x7f050038;
public static final int search_edit_frame=0x7f050034;
public static final int search_go_btn=0x7f05003a;
public static final int search_mag_icon=0x7f050035;
public static final int search_plate=0x7f050036;
public static final int search_src_text=0x7f050037;
public static final int search_voice_btn=0x7f05003b;
public static final int shortcut=0x7f05002e;
public static final int showCustom=0x7f050007;
public static final int showHome=0x7f050004;
public static final int showTitle=0x7f050006;
public static final int split_action_bar=0x7f05001e;
public static final int submit_area=0x7f050039;
public static final int tabMode=0x7f050002;
public static final int title=0x7f05002b;
public static final int top_action_bar=0x7f050020;
public static final int up=0x7f050021;
public static final int useLogo=0x7f050003;
public static final int withText=0x7f05000c;
}
public static final class integer {
/** The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
*/
public static final int abc_max_action_buttons=0x7f090000;
}
public static final class layout {
public static final int abc_action_bar_decor=0x7f030000;
public static final int abc_action_bar_decor_include=0x7f030001;
public static final int abc_action_bar_decor_overlay=0x7f030002;
public static final int abc_action_bar_home=0x7f030003;
public static final int abc_action_bar_tab=0x7f030004;
public static final int abc_action_bar_tabbar=0x7f030005;
public static final int abc_action_bar_title_item=0x7f030006;
public static final int abc_action_bar_view_list_nav_layout=0x7f030007;
public static final int abc_action_menu_item_layout=0x7f030008;
public static final int abc_action_menu_layout=0x7f030009;
public static final int abc_action_mode_bar=0x7f03000a;
public static final int abc_action_mode_close_item=0x7f03000b;
public static final int abc_activity_chooser_view=0x7f03000c;
public static final int abc_activity_chooser_view_include=0x7f03000d;
public static final int abc_activity_chooser_view_list_item=0x7f03000e;
public static final int abc_expanded_menu_layout=0x7f03000f;
public static final int abc_list_menu_item_checkbox=0x7f030010;
public static final int abc_list_menu_item_icon=0x7f030011;
public static final int abc_list_menu_item_layout=0x7f030012;
public static final int abc_list_menu_item_radio=0x7f030013;
public static final int abc_popup_menu_item_layout=0x7f030014;
public static final int abc_search_dropdown_item_icons_2line=0x7f030015;
public static final int abc_search_view=0x7f030016;
public static final int abc_simple_decor=0x7f030017;
public static final int activity_main=0x7f030018;
public static final int support_simple_spinner_dropdown_item=0x7f030019;
}
public static final class menu {
public static final int main=0x7f0c0000;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0a0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0a0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0a0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0a000a;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0a0009;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0a0006;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0a0005;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0a0004;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0a0007;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0a0008;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0a000c;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0a000b;
public static final int action_settings=0x7f0a000f;
public static final int app_name=0x7f0a000d;
public static final int hello_world=0x7f0a000e;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f0b008b;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f0b008c;
/** Mimic text appearance in select_dialog_item.xml
*/
public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0b0063;
public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0b006d;
public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0b006f;
/** Search View result styles
*/
public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0b006e;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0b0069;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0b006a;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0b0070;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0b0072;
/**
TextAppearance.Holo.Light.SearchResult.* are private so we extend from the default
versions instead (which are exactly the same).
*/
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title=0x7f0b0071;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0b006b;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0b006c;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0035;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0034;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0030;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0031;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0033;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b0032;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b001a;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0006;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0008;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0007;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b001e;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0020;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b001d;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b001f;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0b0054;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0b0056;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0b0058;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0b0055;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0b0057;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0b0051;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0b0053;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0b0050;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0b0052;
public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0b0061;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0021;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b002e;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b002f;
public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0b0062;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b0028;
/** Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme.
Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat=0x7f0b0077;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_Base_CompactMenu=0x7f0b0083;
public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0b0084;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0b007c;
public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0b007d;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b007a;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0b0078;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b0079;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b007b;
/** Base platform-dependent theme
*/
public static final int Theme_Base=0x7f0b007e;
/** Base platform-dependent theme providing an action bar in a dark-themed activity.
Base platform-dependent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_Base_AppCompat=0x7f0b0080;
public static final int Theme_Base_AppCompat_Dialog_FixedSize=0x7f0b0087;
public static final int Theme_Base_AppCompat_Dialog_Light_FixedSize=0x7f0b0088;
public static final int Theme_Base_AppCompat_DialogWhenLarge=0x7f0b0085;
/**
As we have defined the theme in values-large (for compat) and values-large takes precedence
over values-v14, we need to reset back to the Holo parent in values-large-v14. As the themes
in values-v14 & values-large-v14 are exactly the same, these "double base" themes can be
inherited from in both values-v14 and values-large-v14.
*/
public static final int Theme_Base_AppCompat_DialogWhenLarge_Base=0x7f0b0089;
/** Base platform-dependent theme providing an action bar in a light-themed activity.
Base platform-dependent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_Base_AppCompat_Light=0x7f0b0081;
/** Base platform-dependent theme providing a dark action bar in a light-themed activity.
Base platform-dependent theme providing a dark action bar in a light-themed activity.
*/
public static final int Theme_Base_AppCompat_Light_DarkActionBar=0x7f0b0082;
public static final int Theme_Base_AppCompat_Light_DialogWhenLarge=0x7f0b0086;
public static final int Theme_Base_AppCompat_Light_DialogWhenLarge_Base=0x7f0b008a;
/** Base platform-dependent theme providing a light-themed activity.
*/
public static final int Theme_Base_Light=0x7f0b007f;
/** Styles in here can be extended for customisation in your application. Each utilises
one of the Base styles. If Holo themes are available on the current platform version
they will be used instead of the compat styles.
*/
public static final int Widget_AppCompat_ActionBar=0x7f0b0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b0011;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0017;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b0014;
public static final int Widget_AppCompat_ActionButton=0x7f0b000b;
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000d;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000f;
public static final int Widget_AppCompat_ActionMode=0x7f0b001b;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0b0038;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b0036;
public static final int Widget_AppCompat_Base_ActionBar=0x7f0b003a;
public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0b003c;
public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0b0045;
public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0b004b;
public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0b0048;
/** Action Button Styles
*/
public static final int Widget_AppCompat_Base_ActionButton=0x7f0b003f;
public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0b0041;
public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0b0043;
public static final int Widget_AppCompat_Base_ActionMode=0x7f0b004e;
public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0b0075;
/** AutoCompleteTextView styles (for SearchView)
*/
public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0b0073;
public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0b005d;
/** Popup Menu
*/
public static final int Widget_AppCompat_Base_ListPopupWindow=0x7f0b0065;
/** Spinner Widgets
*/
public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0b005f;
public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0b0064;
public static final int Widget_AppCompat_Base_PopupMenu=0x7f0b0067;
public static final int Widget_AppCompat_Base_ProgressBar=0x7f0b005a;
/** Progress Bar
*/
public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0b0059;
/** Action Bar Spinner Widgets
*/
public static final int Widget_AppCompat_Base_Spinner=0x7f0b005b;
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b0024;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b0004;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0012;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0018;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0019;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0015;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0016;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0b000c;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b000e;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b0010;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b001c;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0039;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b0037;
public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0b003b;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0b003d;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0b003e;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0b0046;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0b0047;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0b004c;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0b004d;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0b0049;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0b004a;
public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0b0040;
public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0b0042;
public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0b0044;
public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0b004f;
public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0b0076;
public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0b0074;
public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0b005e;
public static final int Widget_AppCompat_Light_Base_ListPopupWindow=0x7f0b0066;
public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0b0060;
public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0b0068;
public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0b005c;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0025;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b002a;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b0027;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b002c;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b0023;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0029;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0b0026;
public static final int Widget_AppCompat_ListView_Menu=0x7f0b002d;
public static final int Widget_AppCompat_PopupMenu=0x7f0b002b;
public static final int Widget_AppCompat_ProgressBar=0x7f0b000a;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0009;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0022;
}
public static final class styleable {
/** ============================================
Attributes used to style the Action Bar.
These should be set on your theme; the default actionBarStyle will
propagate them to the correct elements as needed.
Please Note: when overriding attributes for an ActionBar style
you must specify each attribute twice: once with the "android:"
namespace prefix and once without.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background com.example.holaworlduno:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.example.holaworlduno:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.example.holaworlduno:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.example.holaworlduno:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.example.holaworlduno:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.example.holaworlduno:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_height com.example.holaworlduno:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.example.holaworlduno:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon com.example.holaworlduno:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.example.holaworlduno:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.example.holaworlduno:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo com.example.holaworlduno:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.example.holaworlduno:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.example.holaworlduno:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.example.holaworlduno:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.example.holaworlduno:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.example.holaworlduno:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.example.holaworlduno:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.example.holaworlduno:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_height
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028,
0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c,
0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030,
0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034,
0x7f010035, 0x7f010036, 0x7f010037
};
/**
<p>
@attr description
Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:background
*/
public static final int ActionBar_background = 10;
/**
<p>
@attr description
Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 12;
/**
<p>
@attr description
Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 11;
/**
<p>
@attr description
Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 13;
/**
<p>
@attr description
Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.example.holaworlduno:displayOptions
*/
public static final int ActionBar_displayOptions = 3;
/**
<p>
@attr description
Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:divider
*/
public static final int ActionBar_divider = 9;
/**
<p>
@attr description
Specifies a fixed height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:height
*/
public static final int ActionBar_height = 1;
/**
<p>
@attr description
Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:homeLayout
*/
public static final int ActionBar_homeLayout = 14;
/**
<p>
@attr description
Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:icon
*/
public static final int ActionBar_icon = 7;
/**
<p>
@attr description
Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 16;
/**
<p>
@attr description
Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:itemPadding
*/
public static final int ActionBar_itemPadding = 18;
/**
<p>
@attr description
Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:logo
*/
public static final int ActionBar_logo = 8;
/**
<p>
@attr description
The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.example.holaworlduno:navigationMode
*/
public static final int ActionBar_navigationMode = 2;
/**
<p>
@attr description
Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 17;
/**
<p>
@attr description
Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 15;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:subtitle
*/
public static final int ActionBar_subtitle = 4;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 6;
/**
<p>
@attr description
Specifies title text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:titleTextStyle
*/
public static final int ActionBar_titleTextStyle = 5;
/** Valid LayoutParams for views placed in the action bar as custom views.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static final int ActionBarLayout_android_layout_gravity = 0;
/** These attributes are meant to be specified and customized by the app.
The system will read and apply them as needed. These attributes control
properties of the activity window, such as whether an action bar should
be present and whether it should overlay content.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBar com.example.holaworlduno:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.example.holaworlduno:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor com.example.holaworlduno:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMinor com.example.holaworlduno:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedWidthMajor com.example.holaworlduno:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedWidthMinor com.example.holaworlduno:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowSplitActionBar com.example.holaworlduno:windowSplitActionBar}</code></td><td></td></tr>
</table>
@see #ActionBarWindow_windowActionBar
@see #ActionBarWindow_windowActionBarOverlay
@see #ActionBarWindow_windowFixedHeightMajor
@see #ActionBarWindow_windowFixedHeightMinor
@see #ActionBarWindow_windowFixedWidthMajor
@see #ActionBarWindow_windowFixedWidthMinor
@see #ActionBarWindow_windowSplitActionBar
*/
public static final int[] ActionBarWindow = {
0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003,
0x7f010004, 0x7f010005, 0x7f010006
};
/**
<p>This symbol is the offset where the {@link com.example.holaworlduno.R.attr#windowActionBar}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.example.holaworlduno:windowActionBar
*/
public static final int ActionBarWindow_windowActionBar = 0;
/**
<p>This symbol is the offset where the {@link com.example.holaworlduno.R.attr#windowActionBarOverlay}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.example.holaworlduno:windowActionBarOverlay
*/
public static final int ActionBarWindow_windowActionBarOverlay = 1;
/**
<p>
@attr description
A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:windowFixedHeightMajor
*/
public static final int ActionBarWindow_windowFixedHeightMajor = 6;
/**
<p>
@attr description
A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:windowFixedHeightMinor
*/
public static final int ActionBarWindow_windowFixedHeightMinor = 4;
/**
<p>
@attr description
A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:windowFixedWidthMajor
*/
public static final int ActionBarWindow_windowFixedWidthMajor = 3;
/**
<p>
@attr description
A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:windowFixedWidthMinor
*/
public static final int ActionBarWindow_windowFixedWidthMinor = 5;
/**
<p>This symbol is the offset where the {@link com.example.holaworlduno.R.attr#windowSplitActionBar}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.example.holaworlduno:windowSplitActionBar
*/
public static final int ActionBarWindow_windowSplitActionBar = 2;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** Size of padding on either end of a divider.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background com.example.holaworlduno:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.example.holaworlduno:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_height com.example.holaworlduno:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.example.holaworlduno:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.example.holaworlduno:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f,
0x7f010031
};
/**
<p>
@attr description
Specifies a background for the action mode bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>
@attr description
Specifies a fixed height for the action mode bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.example.holaworlduno:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.example.holaworlduno:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f01006a, 0x7f01006b
};
/**
<p>
@attr description
The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps com.example.holaworlduno:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f01006d
};
/**
<p>
@attr description
Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:textAllCaps
*/
public static final int CompatTextView_textAllCaps = 0;
/** Attributes that can be used with a LinearLayoutICS.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutICS_divider com.example.holaworlduno:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_dividerPadding com.example.holaworlduno:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_showDividers com.example.holaworlduno:showDividers}</code></td><td> Setting for which dividers to show.</td></tr>
</table>
@see #LinearLayoutICS_divider
@see #LinearLayoutICS_dividerPadding
@see #LinearLayoutICS_showDividers
*/
public static final int[] LinearLayoutICS = {
0x7f01002e, 0x7f010055, 0x7f010056
};
/**
<p>
@attr description
Drawable to use as a vertical divider between buttons.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:divider
*/
public static final int LinearLayoutICS_divider = 0;
/**
<p>
@attr description
Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:dividerPadding
*/
public static final int LinearLayoutICS_dividerPadding = 2;
/**
<p>
@attr description
Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.example.holaworlduno:showDividers
*/
public static final int LinearLayoutICS_showDividers = 1;
/** Base attributes that are available to all groups.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>
@attr description
Whether the items are capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkableBehavior}.
@attr name android:checkableBehavior
*/
public static final int MenuGroup_android_checkableBehavior = 5;
/**
<p>
@attr description
Whether the items are enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuGroup_android_enabled = 0;
/**
<p>
@attr description
The ID of the group.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuGroup_android_id = 1;
/**
<p>
@attr description
The category applied to all items within this group.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuGroup_android_menuCategory = 3;
/**
<p>
@attr description
The order within the category applied to all items within this group.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuGroup_android_orderInCategory = 4;
/**
<p>
@attr description
Whether the items are shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuGroup_android_visible = 2;
/** Base attributes that are available to all Item objects.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout com.example.holaworlduno:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.example.holaworlduno:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.example.holaworlduno:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction com.example.holaworlduno:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f01004d, 0x7f01004e, 0x7f01004f,
0x7f010050
};
/**
<p>
@attr description
An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.example.holaworlduno:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr>
<tr><td><code>{@link #MenuView_android_preserveIconSpacing android:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_preserveIconSpacing
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x01010438
};
/**
<p>
@attr description
Default background for the menu header.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#headerBackground}.
@attr name android:headerBackground
*/
public static final int MenuView_android_headerBackground = 4;
/**
<p>
@attr description
Default horizontal divider between rows of menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#horizontalDivider}.
@attr name android:horizontalDivider
*/
public static final int MenuView_android_horizontalDivider = 2;
/**
<p>
@attr description
Default background for each menu item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemBackground}.
@attr name android:itemBackground
*/
public static final int MenuView_android_itemBackground = 5;
/**
<p>
@attr description
Default disabled icon alpha for each menu item that shows an icon.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemIconDisabledAlpha}.
@attr name android:itemIconDisabledAlpha
*/
public static final int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>
@attr description
Default appearance of menu item text.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemTextAppearance}.
@attr name android:itemTextAppearance
*/
public static final int MenuView_android_itemTextAppearance = 1;
/**
<p>
@attr description
Whether space should be reserved in layout when an icon is missing.
<p>This is a private symbol.
@attr name android:preserveIconSpacing
*/
public static final int MenuView_android_preserveIconSpacing = 7;
/**
<p>
@attr description
Default vertical divider between menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#verticalDivider}.
@attr name android:verticalDivider
*/
public static final int MenuView_android_verticalDivider = 3;
/**
<p>
@attr description
Default animations for the menu.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#windowAnimationStyle}.
@attr name android:windowAnimationStyle
*/
public static final int MenuView_android_windowAnimationStyle = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.example.holaworlduno:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_queryHint com.example.holaworlduno:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr>
</table>
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_iconifiedByDefault
@see #SearchView_queryHint
*/
public static final int[] SearchView = {
0x0101011f, 0x01010220, 0x01010264, 0x7f01005a,
0x7f01005b
};
/**
<p>
@attr description
The IME options to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#imeOptions}.
@attr name android:imeOptions
*/
public static final int SearchView_android_imeOptions = 2;
/**
<p>
@attr description
The input type to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inputType}.
@attr name android:inputType
*/
public static final int SearchView_android_inputType = 1;
/**
<p>
@attr description
An optional maximum width of the SearchView.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#maxWidth}.
@attr name android:maxWidth
*/
public static final int SearchView_android_maxWidth = 0;
/**
<p>
@attr description
The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 3;
/**
<p>
@attr description
An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:queryHint
*/
public static final int SearchView_queryHint = 4;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.example.holaworlduno:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView com.example.holaworlduno:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt com.example.holaworlduno:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.example.holaworlduno:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr>
</table>
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x01010175, 0x01010176, 0x01010262,
0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052,
0x7f010053, 0x7f010054
};
/**
<p>
@attr description
Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int Spinner_android_dropDownHorizontalOffset = 4;
/**
<p>
@attr description
List selector to use for spinnerMode="dropdown" display.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownSelector}.
@attr name android:dropDownSelector
*/
public static final int Spinner_android_dropDownSelector = 1;
/**
<p>
@attr description
Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int Spinner_android_dropDownVerticalOffset = 5;
/**
<p>
@attr description
Width of the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownWidth}.
@attr name android:dropDownWidth
*/
public static final int Spinner_android_dropDownWidth = 3;
/**
<p>
@attr description
Gravity setting for positioning the currently selected item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#gravity}.
@attr name android:gravity
*/
public static final int Spinner_android_gravity = 0;
/**
<p>
@attr description
Background drawable to use for the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#popupBackground}.
@attr name android:popupBackground
*/
public static final int Spinner_android_popupBackground = 2;
/**
<p>
@attr description
Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:disableChildrenWhenDisabled
*/
public static final int Spinner_disableChildrenWhenDisabled = 9;
/**
<p>
@attr description
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:popupPromptView
*/
public static final int Spinner_popupPromptView = 8;
/**
<p>
@attr description
The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:prompt
*/
public static final int Spinner_prompt = 6;
/**
<p>
@attr description
Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.example.holaworlduno:spinnerMode
*/
public static final int Spinner_spinnerMode = 7;
/** These are the standard attributes that make up a complete theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle com.example.holaworlduno:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.example.holaworlduno:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.example.holaworlduno:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.example.holaworlduno:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.example.holaworlduno:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.example.holaworlduno:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
</table>
@see #Theme_actionDropDownStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
*/
public static final int[] Theme = {
0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a,
0x7f01004b, 0x7f01004c
};
/**
<p>
@attr description
Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:actionDropDownStyle
*/
public static final int Theme_actionDropDownStyle = 0;
/**
<p>
@attr description
The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:dropdownListPreferredItemHeight
*/
public static final int Theme_dropdownListPreferredItemHeight = 1;
/**
<p>
@attr description
Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 5;
/**
<p>
@attr description
Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:panelMenuListTheme
*/
public static final int Theme_panelMenuListTheme = 4;
/**
<p>
@attr description
Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:panelMenuListWidth
*/
public static final int Theme_panelMenuListWidth = 3;
/**
<p>
@attr description
Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.example.holaworlduno:popupMenuStyle
*/
public static final int Theme_popupMenuStyle = 2;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr>
<tr><td><code>{@link #View_paddingEnd com.example.holaworlduno:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart com.example.holaworlduno:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr>
</table>
@see #View_android_focusable
@see #View_paddingEnd
@see #View_paddingStart
*/
public static final int[] View = {
0x010100da, 0x7f010038, 0x7f010039
};
/**
<p>
@attr description
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling {@link android.view.View#requestFocus}, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#focusable}.
@attr name android:focusable
*/
public static final int View_android_focusable = 0;
/**
<p>
@attr description
Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.example.holaworlduno:paddingStart
*/
public static final int View_paddingStart = 1;
};
}
| [
"ngSlivers@gmail.com"
] | ngSlivers@gmail.com |
908b5e17729470697b98e91b030e1dc45c7f05d7 | 3e4af4a0bdb0af7fa1eb189bf57e478d0851c00d | /src/main/java/com/rackspacecloud/client/cloudfiles/FilesUtil.java | a4a0a75aea62a4cec61f6fb69906bce8da115798 | [
"MIT"
] | permissive | sacharya/java-cloudfiles | 1188e1f48bf0f2e0bb607c7ddcf416dbae9e83b3 | ee7c5f6c62541dc89a2fcfa28b7cf8ee1c67c142 | refs/heads/master | 2021-01-16T19:26:49.971451 | 2011-12-16T01:38:11 | 2011-12-16T01:38:11 | 2,934,297 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,567 | java | /*
* See COPYING for license information.
*/
package com.rackspacecloud.client.cloudfiles;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.IOException;
import java.util.Properties;
import org.apache.log4j.Logger;
/**
* Cloud Files utilities
*/
public class FilesUtil {
private static Logger logger = Logger.getLogger(FilesUtil.class);
/**
* The name of the properties file we're looking for
*/
private final static String file = "cloudfiles.properties";
/**
* A cache of the properties
*/
private static Properties props = null;
/**
* Find the properties file in the class path and load it.
*
* @throws IOException
*/
private static void loadPropertiesFromClasspath() throws IOException {
props = new Properties();
InputStream inputStream = FilesUtil.class.getClassLoader()
.getResourceAsStream(file);
if (inputStream == null) {
throw new FileNotFoundException("Property file '" + file
+ "' not found in the classpath");
}
props.load(inputStream);
}
/**
* Look up a property from the properties file.
*
* @param key The name of the property to be found
* @return The value of the property
*/
public static String getProperty(String key)
{
if (props == null)
{
try
{
loadPropertiesFromClasspath();
}
catch (Exception IOException)
{
logger.warn("Unable to load properties file.");
return null;
}
}
return props.getProperty(key);
}
/**
* Look up a property from the properties file.
*
* @param key The name of the property to be found
* @return The value of the property
*/
public static String getProperty(String key, String defaultValue)
{
if (props == null)
{
try
{
loadPropertiesFromClasspath();
}
catch (Exception IOException)
{
logger.warn("Unable to load properties file.");
return null;
}
}
return props.getProperty(key, defaultValue);
}
/**
* Looks up the value of a key from the properties file and converts it to an integer.
*
* @param key
* @return The value of that key
*/
public static int getIntProperty(String key) {
String property = getProperty(key);
if (property == null) {
logger.warn("Could not load integer property " + key);
return -1;
}
try {
return Integer.parseInt(property);
}
catch (NumberFormatException nfe) {
logger.warn("Invalid format for a number in properties file: " + property, nfe);
return -1;
}
}
}
| [
"lowell.vaughn@rackspace.com"
] | lowell.vaughn@rackspace.com |
57e21051e1847189b494d475e606779a90c96ab5 | 6d8f0f5b845058877642a7ade22c4262b1c2c064 | /src/com/test/collection/generics/ListGeneric3.java | 35784d095978d659a7467c279b7e71d2bcc0b8c3 | [] | no_license | govindarajcs/Core-Java | e506c944a56ffc84432ea648f15d58e5e77acb0f | 1e3665ce18241791f00e34d80a18b27d97dc4c7c | refs/heads/master | 2020-06-14T03:35:12.194892 | 2017-10-25T02:52:42 | 2017-10-25T02:52:42 | 75,522,008 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 345 | java | package com.test.collection.generics;
import java.util.ArrayList;
import java.util.List;
public class ListGeneric3 {
public static void main(String[] args) {
List<?> l = new ArrayList<String>();
l.add(null);
List<Integer> i = new ArrayList<Integer>();
i.add(1);
l=i;
}
} | [
"govindaraj_s04@infosys.com"
] | govindaraj_s04@infosys.com |
87628ef6df2a0c65e388f308846484e02c2ad791 | 1aae52ec39f62cf05b215d1ba31cd0e21450726b | /akos.socbs.opendai.esb.servis/.svn/pristine/87/87628ef6df2a0c65e388f308846484e02c2ad791.svn-base | 327a4994b01927f296420cf35da8c484249b69eb | [] | no_license | open-dai/ordu-pilot-pois | 75eaa0df16f8950dc1e704caa87a2a48f30aa04f | ae8cafd4b39bfe2aa66a33174a9e4c3f664667a0 | refs/heads/master | 2016-09-05T10:41:52.717150 | 2014-05-09T07:25:13 | 2014-05-09T07:25:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,448 | /**
* PropertyAddressType.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package GeoInfoMngmnt.PropertyMngmnt.V1;
public class PropertyAddressType extends GeoInfoMngmnt.PropertyMngmnt.V1.CadastralAddressType {
private java.lang.String parcelNumber;
public PropertyAddressType() {
}
public PropertyAddressType(
java.lang.String id,
java.lang.String createdBy,
java.lang.String createdDate,
java.lang.String updatedBy,
java.lang.String updatedDate,
java.lang.String plotNumber,
java.lang.String islandNumber,
java.lang.String parcelNumber) {
super(
id,
createdBy,
createdDate,
updatedBy,
updatedDate,
plotNumber,
islandNumber);
this.parcelNumber = parcelNumber;
}
/**
* Gets the parcelNumber value for this PropertyAddressType.
*
* @return parcelNumber
*/
public java.lang.String getParcelNumber() {
return parcelNumber;
}
/**
* Sets the parcelNumber value for this PropertyAddressType.
*
* @param parcelNumber
*/
public void setParcelNumber(java.lang.String parcelNumber) {
this.parcelNumber = parcelNumber;
}
}
| [
"kyildirici@ist-pcd064.sampas.com.tr"
] | kyildirici@ist-pcd064.sampas.com.tr | |
96fac487d5a18be23bbb7de0b5c5da1169a59d8d | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/4/4_0357eb9706059e391051fe928558938469b3cc29/TrackerService/4_0357eb9706059e391051fe928558938469b3cc29_TrackerService_t.java | 1dfcab0c158ada67b920684de6412cb0677484d8 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 8,123 | java | package com.example.tracker;
import java.util.List;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.util.Log;
import android.content.IntentFilter;
import android.content.BroadcastReceiver;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningAppProcessInfo;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.WindowManager;
import android.graphics.PixelFormat;
import android.view.View.OnTouchListener;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.provider.Settings.Secure;
public class TrackerService extends Service implements OnTouchListener{
private String TAG = this.getClass().getSimpleName();
public static String deviceID = null;
private BroadcastReceiver receiver = null;
private boolean isScreenOn = false;
private LinearLayout fakeLayout;
private WindowManager mWindowManager;
/** UserPresent is more important to flag to start or stop to track the user behavior */
private boolean isUserPresent = false;
/** Keep the previous "RecentTaskList" to compare with latest one,
* if not match, one application has been opened */
private List<ActivityManager.RecentTaskInfo> recentTaskListPrevious = null;
private SystemStatus previousStatus = SystemStatus.INAPP;
@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
deviceID = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);
Log.i(TAG, "DeviceID:" + deviceID);
Log.i(TAG, "Service onCreate: the number of processes is " + getTotalRunningApp());
/** Create and configure the fake layout for service */
fakeLayout = new LinearLayout(this);
LayoutParams layoutPrams = new LayoutParams(0, LayoutParams.MATCH_PARENT);
fakeLayout.setLayoutParams(layoutPrams);
fakeLayout.setOnTouchListener(this);
/** Fetch WindowManager and add fake layout to it */
mWindowManager = (WindowManager)getSystemService(WINDOW_SERVICE);
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
0,
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,
PixelFormat.TRANSLUCENT);
params.gravity = Gravity.LEFT | Gravity.TOP;
mWindowManager.addView(fakeLayout, params);
/** Initialize the recentTaskListPrevious */
updateRecentTaskListPrevious();
previousStatus = SystemStatus.INAPP;
/** Create the filter to contain three Actions: ScreenOn, ScreenOff, UserPresent */
IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON);
filter.addAction(Intent.ACTION_SCREEN_OFF);
filter.addAction(Intent.ACTION_USER_PRESENT);
/** Register the Broadcast Receiver to make it work */
receiver = new ScreenReceiver();
registerReceiver(receiver, filter);
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// TODO Auto-generated method stub
/** Phone has three state:
* Screen Off: turn off the screen
* Screen On:
* 1.User not Present: before unlock the phone;
* 2.User Present: phone unlocked.
*/
if(intent == null) {
return super.onStartCommand(intent, flags, startId);
}
isScreenOn = intent.getBooleanExtra("isScreenOn", true);
isUserPresent = intent.getBooleanExtra("isUserPresent", true);
if(isScreenOn) {
Log.i(TAG, "Screen is on!");
// AggregateMessages.addMessages("Screen is on!");
} else {
Log.i(TAG, "Screen is off!");
}
if(isUserPresent) {
Log.i(TAG, "User is present!");
// AggregateMessages.addMessages(deviceID);
AggregateMessages.addMessages("START", false);
/** Start the tracking */
} else {
Log.i(TAG, "User not present!");
// AggregateMessages.addMessages("User not present!");
/** Stop the tracking */
}
return super.onStartCommand(intent, flags, startId);
}
@Override
public void onDestroy() {
// TODO Auto-generated method stub
/** Before destroy to unregister the Broadcast Receiver first(Avoid memory leak)*/
unregisterReceiver(receiver);
if(mWindowManager != null) {
if(fakeLayout != null) {
mWindowManager.removeView(fakeLayout);
}
}
Log.i(TAG, "Boardcast Receiver Unregistered.");
super.onDestroy();
Log.i(TAG, "Service onDestroy.");
}
@Override
public boolean onTouch(View arg0, MotionEvent arg1) {
// TODO Auto-generated method stub
/** Delay 1 second to check the application status
* give application sometime to bring up or move to the front
*/
if(arg1.getAction() == MotionEvent.ACTION_OUTSIDE) {
/** Log the raw touch location data */
/** Test Result: always return (0,0), so gesture detection is not possible */
//Log.i(TAG, Float.toString(arg1.getRawX()));
//Log.i(TAG, Float.toString(arg1.getRawY()));
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
SystemStatus status = trackStatus();
Log.i(TAG, "Recorded Touch Outside the view.");
Log.i(TAG, "TimeStamp: " + System.nanoTime() + " Sys_Status:" + status);
AggregateMessages.addMessages("TimeStamp: " + System.nanoTime() + " Sys_Status:" + status, false);
}
}, 1000);
}
return true;
}
/** Return the number of running processes right now */
public int getTotalRunningApp() {
ActivityManager actvityManager = (ActivityManager) this.getSystemService( ACTIVITY_SERVICE );
List<RunningAppProcessInfo> procInfos = actvityManager.getRunningAppProcesses();
return procInfos.size();
}
public SystemStatus trackStatus() {
/** Get latest recentTaskList */
ActivityManager actvityManager = (ActivityManager) this.getSystemService( ACTIVITY_SERVICE );
List<ActivityManager.RecentTaskInfo> recentTaskList = actvityManager.getRecentTasks(5, ActivityManager.RECENT_IGNORE_UNAVAILABLE);
/** Compare the recentTaskList with previous */
/** Need to be optimized in the future */
for(int i = 0; i < recentTaskList.size(); i++) {
ActivityManager.RecentTaskInfo recent = recentTaskList.get(i);
/** Check the very first process */
if(i == 0) {
ActivityManager.RecentTaskInfo previous = recentTaskListPrevious.get(i);
Log.i(TAG, "Recent ID:" + recent.persistentId);
Log.i(TAG, "Previous Id:" + previous.persistentId);
if(recent.persistentId == 3) {
if(previousStatus == SystemStatus.INAPP) {
previousStatus = SystemStatus.MAINM;
recentTaskListPrevious = recentTaskList;
return SystemStatus.SWMAN;
} else {
previousStatus = SystemStatus.MAINM;
recentTaskListPrevious = recentTaskList;
return SystemStatus.MAINM;
}
} else {
if(previousStatus == SystemStatus.MAINM) {
previousStatus = SystemStatus.INAPP;
recentTaskListPrevious = recentTaskList;
return SystemStatus.SWAPP;
} else if(previousStatus == SystemStatus.INAPP) {
if(recent.persistentId == previous.persistentId) {
previousStatus = SystemStatus.INAPP;
recentTaskListPrevious = recentTaskList;
return SystemStatus.INAPP;
} else {
previousStatus = SystemStatus.INAPP;
recentTaskListPrevious = recentTaskList;
return SystemStatus.SWAPP;
}
}
}
}
}
return SystemStatus.ERROR;
}
public void updateRecentTaskListPrevious() {
ActivityManager actvityManager = (ActivityManager) this.getSystemService( ACTIVITY_SERVICE );
recentTaskListPrevious = actvityManager.getRecentTasks(5, ActivityManager.RECENT_IGNORE_UNAVAILABLE);
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
692c89ce56e49f4e6314aed0f1f986454bf0f82f | 4ef059de80aae7a7fb8d62772f74d2b096f39dc8 | /src/com/briup/Servlet/ForgetPasswdServlet.java | 4815039adaee9acf7a638415671b5b02044456d5 | [] | no_license | pyd950812/BookShopping_MyBatis | 86158a4e01ddb89d4781ba27e21251892e62d884 | 03034cf7af2742e71af19ec5257f19f03b4ada61 | refs/heads/master | 2021-07-20T05:34:01.743979 | 2017-10-27T07:36:11 | 2017-10-27T07:36:11 | 108,514,925 | 1 | 0 | null | null | null | null | GB18030 | Java | false | false | 1,340 | java | package com.briup.Servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.swing.JOptionPane;
import com.briup.Bean.UserBean;
import com.briup.Dao.UserDao;
@WebServlet("/ForgetPasswdServlet")
public class ForgetPasswdServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String name=request.getParameter("txtUser");
UserDao dao=new UserDao();
UserBean user=dao.findUserByName(name);
if(user==null){
JOptionPane.showMessageDialog(null, "用户名不存在,请重新输入!","提示",JOptionPane.WARNING_MESSAGE);
response.sendRedirect("forgetPassword.html");
}else {
HttpSession session=request.getSession();
session.setAttribute("user", user);
request.getRequestDispatcher("forgetPassword1.html").forward(request, response);
}
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}
}
| [
"939308479@qq.com"
] | 939308479@qq.com |
905ea6e36a488bbeda954392fd85c89e3d96d975 | fa36b73bf24289f28663178b6f4f8e3a1f20092c | /src/main/java/com/example/sweater/config/WebSecurityConfig.java | 89f0ebeeb7bcdaad824a0c42c3e7f4b93d0b6064 | [] | no_license | IlyZhilka/sweaterSecurity | 00151a9dba9efeeaf2800b3e4f624efdbc85c0bf | 70c757be9274ab669521cece6149694663b2f5ed | refs/heads/master | 2023-01-03T19:27:44.690889 | 2020-10-26T18:44:24 | 2020-10-26T18:44:24 | 302,323,391 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,667 | java | package com.example.sweater.config;
import com.example.sweater.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private UserService userService;
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/","/registration","/static/**","/activate/*").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login")
.permitAll()
.and()
.logout()
.permitAll();
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(userService)
.passwordEncoder(NoOpPasswordEncoder.getInstance());
}
} | [
"zhilcka.ilya@gmail.com"
] | zhilcka.ilya@gmail.com |
60aedb5eccef4549715aec87a5d9a8ae83bdf10f | 170d87b86841ddb0ed244afec178050ad4d69ce1 | /app/src/main/java/com/sergio/ejercicio_versiones/adaptador/AdaptadorVersiones.java | 3e085fc3afbfa686f7e54aa307c200d6a11ba408 | [] | no_license | SerkSanchez/Ejercicio_Versiones_DI | 4baa1e70d083972e8762945b66972444d2d36843 | fe90b57c43da0ef6b20d1fce6763d46e32fb996a | refs/heads/master | 2020-09-22T11:06:44.088840 | 2019-12-01T13:46:07 | 2019-12-01T13:46:07 | 225,168,553 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,450 | java | package com.sergio.ejercicio_versiones.adaptador;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import com.sergio.ejercicio_versiones.R;
import com.sergio.ejercicio_versiones.utils.Versiones;
public class AdaptadorVersiones extends BaseAdapter {
List<Versiones> listaVersiones;
Context context;
public AdaptadorVersiones(List lista_marcas, Context context) {
this.listaVersiones = lista_marcas;
this.context = context;
}
@Override
public int getCount() {
return listaVersiones.size();
}
@Override
public Object getItem(int i) {
return listaVersiones.get(i);
}
@Override
public long getItemId(int i) {
return i;
}
@Override
public View getView(int i, View v, ViewGroup viewGroup) {
if (v == null){
v = LayoutInflater.from(context).inflate(R.layout.listaversiones_layout, viewGroup,false);
}
Versiones marcaPosicion = listaVersiones.get(i);
TextView nombre = v.findViewById(R.id.nombre_version);
ImageView imagen = v.findViewById(R.id.image_version);
nombre.setText(marcaPosicion.getNombre());
imagen.setImageResource(marcaPosicion.getLogo());
return v;
}
} | [
"55162913+SerkSanchez@users.noreply.github.com"
] | 55162913+SerkSanchez@users.noreply.github.com |
56f05972d15783a85357bf2293c8ebc7cc39038d | 2eea38c0e09aa1eb4849a5db45856f968d05a2f3 | /src/main/java/controller/SandwichController.java | 62799c09bcb57d3ee1f956ce7fdf7d4f42fad8de | [] | no_license | huy8895/4.Sandwich-Condiments | 7ce297b8395cb462ae9895d85feff06fd63ff9c3 | 8f24ee03a1b4686cfc1f546e6e2ae1f7fcd02fa1 | refs/heads/master | 2022-12-10T13:07:19.296673 | 2020-09-14T10:08:34 | 2020-09-14T10:08:34 | 295,367,438 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 704 | java | package controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class SandwichController {
@GetMapping("/sandwich")
public String show(){
return "index";
}
@PostMapping("/save")
public String save(@RequestParam(value = "condiment" , required = false) String[] condiment, Model model){
model.addAttribute("condiment",condiment);
return "index";
}
}
| [
"huy8895@gmail.com"
] | huy8895@gmail.com |
51d31c319964f61c0263b3e81ff3072b715539c7 | b071851b3c7add242c14e627c59c955de8a1b5c1 | /aspti/src/main/java/com/railwayopt/model/clustering/kmeanspro/KMeansProClustering.java | 9253ab952eab74fba229e4139d9d49629739a615 | [] | no_license | AuthorSkN/railwayopt | e2407af8ee80e5e33db333f6b00fbfed98e51153 | e7e7493ede4a9393e3cba63806a8b14855ff2425 | refs/heads/master | 2020-03-18T09:01:52.913155 | 2018-09-24T04:10:16 | 2018-09-24T04:10:16 | 134,541,407 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,749 | java | package com.railwayopt.model.clustering.kmeanspro;
import com.railwayopt.model.clustering.*;
import com.railwayopt.model.location.Point;
import java.util.*;
public class KMeansProClustering implements Clustering {
private int k;
private List<Element> elements;
private List<ProjectionPoint> projectionPoints;
private KProInitializer clusterInitializer = new KProInitializer();
public KMeansProClustering(int k){
this.k = k;
}
@Override
public void setElements(List<Element> elements) {
this.elements = elements;
}
public void setProjectionPoints(List<ProjectionPoint> projectionPoints){
clusterInitializer.setProjectionPoints(projectionPoints);
this.projectionPoints = projectionPoints;
}
public List<Element> getElements() {
return elements;
}
public List<ProjectionPoint> getProjectionPoints() {
return projectionPoints;
}
public int getK() {
return k;
}
public KProInitializer getClusterInitializer() {
return clusterInitializer;
}
public void setClusterInitializer(KProInitializer clusterInitializer) {
this.clusterInitializer = clusterInitializer;
}
@Override
public List<? extends Cluster> clustering(){
List<ProjectedCluster> clusters = null;
try {
clusters = new LinkedList<>();
//Определение статических центов и начальных центров для дополнительных кластеров
List<ProjectionPoint> staticCentres = new LinkedList<>();
for (ProjectionPoint projectionPoint : projectionPoints) {
if (projectionPoint.isStaticCentre())
staticCentres.add(projectionPoint);
}
int additionalK = k - staticCentres.size();
clusterInitializer.setK(additionalK);
List<ProjectionPoint> initialProjectionsForAddClusters = clusterInitializer.getInitPoints();
//Инициализация кластеров
for (ProjectionPoint staticCentre : staticCentres) {
clusters.add(new ProjectedCluster(staticCentre));
}
for (ProjectionPoint additionalCentre : initialProjectionsForAddClusters) {
clusters.add(new ProjectedCluster(additionalCentre));
}
for (Element element : elements) {
Cluster nearestCluster = searchNearestCluster(element, clusters);
nearestCluster.addElement(element);
}
//Цикл оптимизации
/* int counterIteration = 1;
double criterion = 0.0;
SolutionAnalizer analizer = new SolutionAnalizer();
double firstFall = 0.0;*/
List<ProjectedCluster> prevClusters = new LinkedList<>();
while (!isEndOptimization(prevClusters, clusters)) {
/*criterion = analizer.getSumDistanceForClustering(clusters);
if (counterIteration == 1){
firstFall = criterion;
}else if (counterIteration == 2){
firstFall -= criterion;
}
System.out.println("итерация:"+counterIteration+" сумма расстояний:"+criterion);*/
//сохранение предыдущей итерации
prevClusters.clear();
for (ProjectedCluster cluster : clusters) {
prevClusters.add((ProjectedCluster) cluster.clone());
}
//Перепроецирование не статических кластеров
for(ProjectedCluster cluster: clusters){
if(!cluster.getCentre().isStaticCentre()){
projection(cluster, projectionPoints);
}
}
//Перепривязка элементов к новым проекциям
for(ProjectedCluster cluster: clusters){
cluster.clear();
}
for (Element element : elements) {
Cluster nearestCluster = searchNearestCluster(element, clusters);
nearestCluster.addElement(element);
}
/*counterIteration++;*/
}
/* System.out.println("Падение после первой итерации:"+firstFall);*/
}catch (Exception exc){
exc.printStackTrace();
}
return clusters;
}
public static Cluster searchNearestCluster(Element element, List<? extends Cluster> clusters){
Cluster nearestCluster = null;
double nearestDistance = Double.MAX_VALUE;
for(Cluster cluster: clusters){
double distance = element.distanceTo(cluster.getCentre());
if(distance < nearestDistance) {
nearestCluster = cluster;
nearestDistance = distance;
}
}
return nearestCluster;
}
public void projection(ProjectedCluster cluster, List<ProjectionPoint> projectionPoints){
if(cluster.getSize() != 0) {
Point realClusterCentre = cluster.getRealCentre();
double minDistance = Double.MAX_VALUE;
ProjectionPoint nearestProjectionPoint = null;
for (ProjectionPoint projectionPoint : projectionPoints) {
if (!projectionPoint.isStaticCentre()) {
double distance = realClusterCentre.distanceTo(projectionPoint);
if (distance < minDistance) {
minDistance = distance;
nearestProjectionPoint = projectionPoint;
}
}
}
cluster.setCentre(nearestProjectionPoint);
}
}
private boolean isEndOptimization(List<ProjectedCluster> prevClusters, List<ProjectedCluster> clusters){
if ((prevClusters == null) || (clusters == null))
return false;
if (prevClusters.size() != clusters.size()){
return false;
}
boolean res = true;
Map<ProjectionPoint, ProjectedCluster> mapClusters = new HashMap<>();
for(ProjectedCluster cluster: clusters){
mapClusters.put(cluster.getCentre(), cluster);
}
for(ProjectedCluster prevCluster: prevClusters){
ProjectedCluster cluster = mapClusters.get(prevCluster.getCentre());
if( !prevCluster.equals(cluster) ){
res = false;
break;
}
}
return res;
}
}
| [
"author.skn@gmail.com"
] | author.skn@gmail.com |
b8c59426ac7892167de5063ed3ed7a8bf85c005c | 4d017ef6ad6c6282a0fa65422e7c95d220edfe46 | /Java-OOP/Exam - 15 December 2019 High Quality Structure/src/aquarium/models/fish/SaltwaterFish.java | 6137ff57bb0d1d3ec1d3d0b0e4036bd885ee7103 | [] | no_license | Spand0x/SoftUni | 53e204929f21dc21fb92dee745aa4993ad0c9d0c | 40af6ae71acfb04506fdd407e17c0a13e97f1f5c | refs/heads/master | 2022-07-08T01:29:25.008798 | 2020-04-23T14:29:06 | 2020-04-23T14:29:06 | 231,943,127 | 0 | 0 | null | 2022-06-21T03:17:25 | 2020-01-05T16:13:56 | Java | UTF-8 | Java | false | false | 348 | java | package aquarium.models.fish;
public class SaltwaterFish extends BaseFish {
private static final int SIZE = 5;
public SaltwaterFish(String name, String species, double price) {
super(name, species, price);
super.setSize(SIZE);
}
@Override
public void eat() {
super.setSize(super.getSize()+2);
}
}
| [
"gexna97@gmail.com"
] | gexna97@gmail.com |
27cb54683a42eb074dc2e90ca314c097aef3ac2d | cf98db8ce442e8ff7e65a2e5a9716c3cdcdb1d1a | /app/src/main/java/com/android/safetycheck/service/EarthquakeService.java | 33c34075a1d990c5210f2eecf4194bb97fa82da2 | [] | no_license | yogeshpandey009/SafetyCheckAndroidApp | fb4c1445714a745d963d0131d954bf070a4fd3db | a26c5ebbfcaf83e271c0e46667ccc9ab111137ce | refs/heads/master | 2021-07-17T21:56:56.472510 | 2016-09-18T06:31:44 | 2016-09-18T06:31:44 | 56,960,970 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,840 | java | package com.android.safetycheck.service;
import android.app.IntentService;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.media.RingtoneManager;
import android.net.Uri;
import android.support.v4.app.NotificationCompat;
import com.android.safetycheck.R;
import com.android.safetycheck.app.MapActivity;
import com.android.safetycheck.data.EarthquakeContract.EarthquakeEntry;
import com.android.safetycheck.model.Earthquake;
import java.util.HashMap;
import java.util.List;
/**
* Copyright (c) 2016 Yogesh Pandey,
*
* 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.
*
* Created by yogeshpandey on 25/04/16.
*/
public class EarthquakeService extends IntentService {
private long[] mVibrationPattern = { 0, 200, 200, 300 };
private Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
// Must create a default constructor
public EarthquakeService() {
// Used to name the worker thread, important only for debugging.
super("EarthquakeService");
}
@Override
public void onCreate() {
super.onCreate(); // if you override onCreate(), make sure to call super().
// If a Context object is needed, call getApplicationContext() here.
}
@Override
protected void onHandleIntent(Intent intent) {
// This describes what will happen when service is triggered
loadEarthquakes();
}
private void loadEarthquakes() {
try {
MethodInformation mi = new MethodInformation(this, getString(R.string.defaultURL) + "earthquakes", "saveEarthquakes", new HashMap<String, String>());
AsyncCollectionConnect ac = (AsyncCollectionConnect) new AsyncCollectionConnect().execute(mi);
} catch (Exception ex) {
android.util.Log.w(this.getClass().getSimpleName(), "Exception creating adapter: " +
ex.getMessage());
}
}
public void saveEarthquakes(List<Earthquake> earthquakes) {
ContentResolver cr = getContentResolver();
for(Earthquake eq: earthquakes) {
String where = EarthquakeEntry.EQ_ID + " = ?";
Cursor query = cr.query(EarthquakeEntry.CONTENT_URI, null, where, new String[] { eq.getId() }, null);
if (query.getCount() == 0) {
long id = insertEarthquake(eq);
createNotification((int)id, R.drawable.ic_eq, eq);
}
}
}
private long insertEarthquake(Earthquake earthquake) {
ContentValues newValues = new ContentValues();
newValues.put(EarthquakeEntry.EQ_ID, earthquake.getId());
newValues.put(EarthquakeEntry.EQ_TIME, earthquake.getTime().getTime());
newValues.put(EarthquakeEntry.EQ_MAGNITUDE, earthquake.getMagnitude());
newValues.put(EarthquakeEntry.EQ_LATITUDE, earthquake.getLatitude());
newValues.put(EarthquakeEntry.EQ_LONGITUDE, earthquake.getLongitude());
newValues.put(EarthquakeEntry.EQ_DESC, earthquake.getDesc());
ContentResolver cr = getContentResolver();
Uri createdRow = cr.insert(EarthquakeEntry.CONTENT_URI, newValues);
return Long.valueOf(createdRow.getLastPathSegment());
}
// createNotification(56, R.drawable.ic_launcher, "New Message",
// "There is a new message from Bob!");
private void createNotification(int nId, int iconRes, Earthquake eq) {
String title = "New Earthquake detected!";
String txt = eq.getDesc();
//String body = eq.getLatitude() + " , " + eq.getLongitude();
// First let's define the intent to trigger when notification is selected
// Start out by creating a normal intent (in this case to open an activity)
Intent intent = new Intent(this, MapActivity.class);
intent.putExtra("action", "mapEarthquake");
intent.putExtra("earthquake", eq);
// Next, let's turn this into a PendingIntent using
int requestID = (int) System.currentTimeMillis();
//unique requestID to differentiate between various notification with same NotifId
int flags = PendingIntent.FLAG_CANCEL_CURRENT; // cancel old intent and create new one
PendingIntent pIntent = PendingIntent.getActivity(this, requestID, intent, flags);
// Now we can attach this to the notification using setContentIntent
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(
this).setSmallIcon(iconRes)//R.drawable.notification_icon
.setContentTitle(title)
.setContentIntent(pIntent)
.setVibrate(mVibrationPattern)
.setSound(soundUri)
.setStyle(new NotificationCompat.BigTextStyle().bigText(txt))
//.setLargeIcon(largeIcon)
.setAutoCancel(true);
//.setContentText(body);
NotificationManager mNotificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
// mId allows you to update the notification later on.
mNotificationManager.notify(nId, mBuilder.build());
}
}
| [
"yogeshpandey009@gmail.com"
] | yogeshpandey009@gmail.com |
8eb417753ad84d20315c9d9f626ac2390dd40287 | 54034718a3dfbabb4ea0224e3c8284ba9edb64fd | /Sqlconnectiotest/src/com/bin/sqlconnectiotest/BookComplaints.java | 2088b3051c446912a961500bb3410ce99619de80 | [] | no_license | abhiataero/android-testapp | d37384cfda88a0d18c26eb6ffa14257745eec79b | 97d7ca8199d1bc61d7fe8cb74e2405dfbc31877b | refs/heads/master | 2021-01-10T14:49:50.007745 | 2016-02-14T19:14:35 | 2016-02-14T19:14:35 | 51,709,024 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,285 | java | package com.bin.sqlconnectiotest;
import java.io.ByteArrayInputStream;
import java.nio.ByteBuffer;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.v7.app.ActionBarActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
@SuppressLint("NewApi")
public class BookComplaints extends ActionBarActivity {
EditText complid,complno,compldate,compltime,complloca,complbuild,complunit,complcontctno,complname,compldesc;
Button save,upload,capture;
byte[] array;
Connection con;
String clickflag="notclicked";
private static final int CAMERA_REQUEST = 1888;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_book_complaints);
// complid = (EditText) findViewById(R.id.compl_id);
complno = (EditText) findViewById(R.id.compl_no);
compldate = (EditText) findViewById(R.id.compl_date);
compltime = (EditText) findViewById(R.id.compl_time);
complloca = (EditText) findViewById(R.id.compl_location);
complbuild = (EditText) findViewById(R.id.compl_building);
complunit = (EditText) findViewById(R.id.compl_unit);
complcontctno = (EditText) findViewById(R.id.contact_no);
complname = (EditText) findViewById(R.id.compl_name);
compldesc = (EditText) findViewById(R.id.description);
save = (Button) findViewById(R.id.save);
upload = (Button) findViewById(R.id.upload);
capture = (Button) findViewById(R.id.capture);
addListenerOnuploadButton();
addListenerOncaptureButton();
addListenerOnButton();
}
private Connection CONN(){
StrictMode.ThreadPolicy policy=new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
Connection conn=null;
String connUrl=null;
String username,password,servername,dbname,instanceame;
username ="sa";
password = "supriya123";
servername="192.168.1.100";
dbname="test";
instanceame="MSSQLSERVER";
connUrl="jdbc:jtds:sqlserver://"+servername+"/"+dbname+";encrypt=false;user="+username+";password="+password+";";
try
{
Class.forName("net.sourceforge.jtds.jdbc.Driver").newInstance();
conn=DriverManager.getConnection(connUrl,username,password);
Log.w("connopen","now");
}
catch (ClassNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
catch(SQLException se)
{
Log.e("ERROR", se.getMessage());
Log.w("error",se.getMessage());
}
catch(Exception e){
Log.e("ERROR", e.getMessage());
Log.w("error",e.getMessage());
}
return conn;
}
public void callerror(String msg,final int flag)
{
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton("Ok",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
if(flag==0)
finish();
}
});
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();
}
public void addListenerOnButton() {
save.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
String success="";
Date date1 = null,date2=null;
con=CONN();
;
if(TextUtils.isEmpty(complno.getText())
||TextUtils.isEmpty(complunit.getText())
||TextUtils.isEmpty(complbuild.getText())
||TextUtils.isEmpty(compldate.getText())
||TextUtils.isEmpty(compltime.getText())
||TextUtils.isEmpty(complloca.getText())
||TextUtils.isEmpty(complname.getText())
||TextUtils.isEmpty(compldesc.getText())
||TextUtils.isEmpty(complcontctno.getText())==true)
callerror("above fields can not be empty",1);
else if(clickflag.equalsIgnoreCase("notclicked"))
callerror("please upload photo before saving",1);
else
{
if(con!=null)
{
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
date1 = dateFormat.parse(compldate.getText().toString()+" 00:00:00");
date2=dateFormat.parse(compldate.getText().toString()+" "+compltime.getText().toString());
} catch (ParseException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
String query = "insert into COMPLAINT_BOOKING ("+
// "[CMLT_ID]"+
"[CMLT_NO]"+
",[CMLT_DATE]"+
",[CMLT_TIME]"+
",[CMLT_LOCATION]"+
",[CMLT_BUILDING]"+
",[CMLT_UNIT]"+
",[CMLT_CONTACTNO]"+
",[CMLT_CONTACTNAME]"+
// ",[CMLT_DESCRIPTION]) values ("+ Integer.parseInt(complid.getText().toString())+","
",[CMLT_DESCRIPTION]) values ("
+ "'"+complno.getText().toString()+"',"
+ "'"+compldate.getText().toString()+" 00:00:00"+"',"
+ "'"+compldate.getText().toString()+" "+compltime.getText().toString()+"',"
+ "'"+complloca.getText().toString()+"',"
+ "'"+complbuild.getText().toString()+"',"
+ "'"+complunit.getText().toString()+"',"
+ "'"+complcontctno.getText().toString()+"',"
+ "'"+complname.getText().toString()+"',"
+ "'"+compldesc.getText().toString()+"'"
+ ")";
Statement stmt1,stmt2;
PreparedStatement stmt;
try {
stmt1 = con.createStatement();
int t=stmt1.executeUpdate(query);
String query1=
"SELECT [CMLT_ID] FROM COMPLAINT_BOOKING WHERE [CMLT_ID] not in (SELECT TOP (SELECT COUNT(1)-1 FROM COMPLAINT_BOOKING) [CMLT_ID] FROM COMPLAINT_BOOKING)";
stmt2= con.createStatement();
ResultSet rs = stmt2.executeQuery(query1);
String cmltid="";
while(rs.next())
{
cmltid=(rs.getString("CMLT_ID"));
}
stmt = con.prepareStatement("INSERT INTO COMPLAINT_IMAGE (CMLT_ID,COMLTIM_IMAGE) VALUES(?,?)");
ByteArrayInputStream bais = new ByteArrayInputStream(array);
stmt.setInt(1, Integer.parseInt(cmltid));
stmt.setBinaryStream(2, bais, array.length);
stmt.executeUpdate();
stmt.close();
System.out.print(t);
callerror("Record Inserted Successfully..!!",0);
} catch (SQLException e) {
callerror(e.getMessage(),1);
// TODO Auto-generated catch block
e.printStackTrace();
}
}
else
{
callerror("There is problem with server connection..",0);
}
try {
con.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}//onclick
});
}
public void addListenerOncaptureButton() {
capture.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
clickflag="clicked";
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, CAMERA_REQUEST);
}//onclick
});
}
public void addListenerOnuploadButton() {
upload.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
clickflag="clicked";
Intent pickPhoto = new Intent(
Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
startActivityForResult(pickPhoto , 1);
}//onclick
});
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK) {
Bitmap photo = (Bitmap) data.getExtras().get("data");
// byte[] immAsBytes =
int bytes = photo.getByteCount();
//or we can calculate bytes this way. Use a different value than 4 if you don't use 32bit images.
//int bytes = b.getWidth()*b.getHeight()*4;
ByteBuffer buffer = ByteBuffer.allocate(bytes); //Create a new buffer
photo.copyPixelsToBuffer(buffer); //Move the byte data to the buffer
array=buffer.array();
}
if (requestCode == 1 && resultCode == RESULT_OK){
Bitmap photo1 = (Bitmap) data.getExtras().get("data");
// byte[] immAsBytes =
int bytes1 = photo1.getByteCount();
//or we can calculate bytes this way. Use a different value than 4 if you don't use 32bit images.
//int bytes = b.getWidth()*b.getHeight()*4;
ByteBuffer buffer1 = ByteBuffer.allocate(bytes1); //Create a new buffer
photo1.copyPixelsToBuffer(buffer1); //Move the byte data to the buffer
array=buffer1.array();
}
/*byte[] array = buffer.array();
con=CONN();
if(con!=null)
{
PreparedStatement pstmt;
try {
pstmt = con.prepareStatement("INSERT INTO COMPLAINT_IMAGE (COMLTIM_ID,CMLT_ID,COMLTIM_IMAGE) VALUES(?,?,?)");
ByteArrayInputStream bais = new ByteArrayInputStream(array);
pstmt.setInt(1, 10);
pstmt.setInt(2, 45);
pstmt.setBinaryStream(3, bais, array.length);
pstmt.executeUpdate();
pstmt.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
else
{
callerror("There is problem with server connection..",0);
}
try {
con.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*/
}
}
| [
"abhiataero@gmail.com"
] | abhiataero@gmail.com |
b63b3ddc086a6321736deaeb8e49419964e26465 | 507e955ae210ca7edcde8bd19da0eccf4bbc00b8 | /src/main/java/ch/iterial/lignon/subscriptions/security/SecurityUtils.java | f9c8f8fec0b706738351b0b342ec725a9875f528 | [] | no_license | pkokorev/lignon-subscriptions | 62ae501796f0fd7e26fc0e389dfff524e4221bce | d488ede75c5d2ef60ebd87332cf2e7d7a348274a | refs/heads/master | 2021-06-30T18:46:53.414584 | 2018-08-06T14:48:07 | 2018-08-06T14:48:07 | 143,742,456 | 0 | 1 | null | 2020-09-18T13:34:07 | 2018-08-06T14:45:40 | Java | UTF-8 | Java | false | false | 2,991 | java | package ch.iterial.lignon.subscriptions.security;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Optional;
/**
* Utility class for Spring Security.
*/
public final class SecurityUtils {
private SecurityUtils() {
}
/**
* Get the login of the current user.
*
* @return the login of the current user
*/
public static Optional<String> getCurrentUserLogin() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> {
if (authentication.getPrincipal() instanceof UserDetails) {
UserDetails springSecurityUser = (UserDetails) authentication.getPrincipal();
return springSecurityUser.getUsername();
} else if (authentication.getPrincipal() instanceof String) {
return (String) authentication.getPrincipal();
}
return null;
});
}
/**
* Get the JWT of the current user.
*
* @return the JWT of the current user
*/
public static Optional<String> getCurrentUserJWT() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.filter(authentication -> authentication.getCredentials() instanceof String)
.map(authentication -> (String) authentication.getCredentials());
}
/**
* Check if a user is authenticated.
*
* @return true if the user is authenticated, false otherwise
*/
public static boolean isAuthenticated() {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> authentication.getAuthorities().stream()
.noneMatch(grantedAuthority -> grantedAuthority.getAuthority().equals(AuthoritiesConstants.ANONYMOUS)))
.orElse(false);
}
/**
* If the current user has a specific authority (security role).
* <p>
* The name of this method comes from the isUserInRole() method in the Servlet API
*
* @param authority the authority to check
* @return true if the current user has the authority, false otherwise
*/
public static boolean isCurrentUserInRole(String authority) {
SecurityContext securityContext = SecurityContextHolder.getContext();
return Optional.ofNullable(securityContext.getAuthentication())
.map(authentication -> authentication.getAuthorities().stream()
.anyMatch(grantedAuthority -> grantedAuthority.getAuthority().equals(authority)))
.orElse(false);
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
33163b62c1830b777ec45ac4528ba942acd859b8 | 1b40c217728e03dbd20b5a68d5c3ef8d1461daae | /fireturretlib/src/main/java/com/esli/fireturretlib/event/IEventListener.java | 06a27b03176e7894c2a7c295b94a64c6adc11f3f | [] | no_license | esligh/FireTurret | 6fcc33e59659c6c78731f412a920e1541c38ade9 | cfc8494e422b87cd669eb600e7fc93192ac3dff4 | refs/heads/master | 2020-05-09T16:00:35.423301 | 2019-04-25T13:09:50 | 2019-04-25T13:09:50 | 181,254,382 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 170 | java | package com.esli.fireturretlib.event;
/**
* Created by lisic on 2019/4/25.
*/
public interface IEventListener {
void onEvent(TurretEvent event);
}
| [
"529879878@qq.com"
] | 529879878@qq.com |
1b179465222981c891a46cf474654e60cab2542f | 7852965856eb8dccc839cae9ba444dd1403f4196 | /src/main/java/net/pterodactylus/util/cache/AbstractCache.java | bd7d4049b1ba65d5f0bc824835933036a7903456 | [] | no_license | Bombe/utils | 736ea9705cddbdd87813405e3b457d4232340241 | 34bdf5715414d1e69176e9e8044059849335dcc7 | refs/heads/master | 2021-01-19T01:10:38.194616 | 2019-11-29T09:04:11 | 2019-11-29T09:04:11 | 384,957 | 4 | 9 | null | 2020-10-13T09:51:36 | 2009-11-25T08:19:10 | Java | UTF-8 | Java | false | false | 1,819 | java | /*
* utils - AbstractCache.java - Copyright © 2009–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.pterodactylus.util.cache;
/**
* Abstract base implementation of a {@link Cache}. All implementations should
* extend this base class.
*
* @param <K>
* The type of the key
* @param <V>
* The value of the key
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public abstract class AbstractCache<K, V> implements Cache<K, V> {
/** The value retriever. */
private final ValueRetriever<K, V> valueRetriever;
/**
* Creates a new abstract cache.
*
* @param valueRetriever
* The value retriever
*/
protected AbstractCache(ValueRetriever<K, V> valueRetriever) {
this.valueRetriever = valueRetriever;
}
/**
* Retrieves a value from the value retriever.
*
* @param key
* The key of the value to retrieve
* @return The value of the key, or {@code null} if there is no value
* @throws CacheException
* if an error occurs retrieving the value
*/
protected CacheItem<V> retrieveValue(K key) throws CacheException {
return valueRetriever.retrieve(key);
}
}
| [
"bombe@pterodactylus.net"
] | bombe@pterodactylus.net |
c1eb772b3531a104686763848ffc3b43141183e8 | 8d8aebc819f5cd899d9c707647dae6f2b9b9ccb0 | /function/fun_ias_item.java | 1f5661da1a4f0e79e15e9f20900c01f151ddb6be | [] | no_license | kevinqianjiawen/transaction_code | 5978f208ca996a57cea634651e5a0dbee0b4c142 | f40a31a67bfd4b5e3ebf6bfa6b379d0f905060d2 | refs/heads/master | 2020-04-26T02:02:10.055377 | 2019-03-07T08:51:06 | 2019-03-07T08:51:06 | 173,222,254 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 805 | java | /**
* 说明:当组件将要失去焦点时触发该事件
*
* @param vertifyValue 需要验证的数据
* 如果科目为1211.2412,则发生额不能输
* @param ... 用户自定义参数值
* @author cao
*/
public boolean fun_ias_item(String vertifyValue,String...args){
logger.debug("进入OnVailidate事件处理,args["+args+"]");
//TODO 在下面编写处理代码
boolean ret;
//获取值,截取字符串
String a=fpl8_item_id.getValue().substring(0,4);
if((a.equals("1211"))||a.equals("2412"))
{
ret=SET_FIELD(null,"pluf15_amount_1",2);
ret=PUT_DISPLAY_VARIABLE("pluf15_amount_1",0,"0.00");
}
else
{
ret=SET_FIELD(null,"pluf15_amount_1",2);
}
return true;
} | [
"1642377@qq.com"
] | 1642377@qq.com |
08ab880909232b821ee384f9a35a07640c46a965 | 1ed04b3e2ee134b3014408d4d8741a4a7d19ea0d | /androdblite/src/androidTest/java/com/androdblite/repository/EntityRepository.java | a6c5444770afcef9bb4ba9252d2fa9cabed91388 | [
"Apache-2.0"
] | permissive | tgirard12/AndroDbLite | 3a74778ef2cd7d8b7a70e310de2886f09bcd5bac | 9989093798c4c5a3132575a64c0f886c71864756 | refs/heads/master | 2021-01-23T13:52:45.044664 | 2015-09-11T17:22:29 | 2015-09-11T17:22:29 | 38,151,774 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 117 | java | package com.androdblite.repository;
/**
* Created by tgirard on 30/06/15
*/
public interface EntityRepository {
}
| [
"thomas.girard12@gmail.com"
] | thomas.girard12@gmail.com |
debf73e7bf839229a2f887e3970c8492bc57a16a | c2e40bf05241d32e3bccc42fdc6f67714a84764c | /2021-July/22/src/kh/java/test/array/Test2.java | e750508f1ead56faea6c1b504df9324d45a0f6cc | [] | no_license | jinmae1/kh-assignment | 3830884776f26ca5af8a04ad235c65020dc7e9ca | 6d559077f69f208a59a01cb3a2d0cf0353c84e8f | refs/heads/master | 2023-07-31T19:44:48.830596 | 2021-09-08T15:48:05 | 2021-09-08T15:48:05 | 386,914,213 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 262 | java | package kh.java.test.array;
public class Test2 {
public static void main(String[] args) {
new Test2().test();
}
public void test() {
String[] strArr = { "딸기", "복숭아", "키위", "사과", "바나나" };
System.out.println(strArr[4]);
}
}
| [
"jinmae1@gmail.com"
] | jinmae1@gmail.com |
0964f2aee6169d53e76e1b1fc3eb409c37c1c4ab | 5058186e73cc6148987c87c0eb2a6a1917acdadf | /src/main/java/com/ketayao/fensy/mvc/FensyFilter.java | 3ec36c3840d2c8a86d61d94fa442871cceb99e23 | [
"Apache-2.0"
] | permissive | shaisxx/fensy | 470445e0e84f39045b350f684755a9936a95ecdb | 1be968e452dbb300473f72a485193b6f78a9318f | refs/heads/master | 2021-01-17T11:52:27.059054 | 2014-01-09T02:20:12 | 2014-01-09T02:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,457 | java | /**
* <pre>
* Copyright: Copyright(C) 2011-2012, ketayao.com
* Date: 2013年8月13日
* Author: <a href="mailto:ketayao@gmail.com">ketayao</a>
* Description:
*
* </pre>
**/
package com.ketayao.fensy.mvc;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ketayao.fensy.db.DBManager;
import com.ketayao.fensy.exception.FensyException;
import com.ketayao.fensy.exception.NotFoundTemplateException;
import com.ketayao.fensy.handler.ExceptionHandler;
import com.ketayao.fensy.handler.Handler;
import com.ketayao.fensy.mvc.interceptor.Interceptor;
import com.ketayao.fensy.mvc.view.JSPView;
import com.ketayao.fensy.mvc.view.View;
import com.ketayao.fensy.util.Exceptions;
/**
*
* @author <a href="mailto:ketayao@gmail.com">ketayao</a>
* @since 2013年8月13日 上午11:48:42
*/
public class FensyFilter implements Filter {
private final static Logger log = LoggerFactory.getLogger(FensyFilter.class);
private FensyAction fensyAction;
private ServletContext context;
private Handler exceptionHandler;
private final static String VIEW_INDEX = "/index";
private final static Map<String, PathView> template_cache = new HashMap<String, PathView>();
private String rootDomain = "ketayao.com";
private String default_base;
// 初始化Filter参数。
private HashMap<String, String> other_base = new HashMap<String, String>();
private List<String> ignoreURIs = new ArrayList<String>();
private List<String> ignoreExts = new ArrayList<String>();
private List<View> viewList = new ArrayList<View>();
private String templatePathPrefix;
@Override
public void init(FilterConfig cfg) throws ServletException {
this.context = cfg.getServletContext();
//模板存放路径
this.templatePathPrefix = cfg.getInitParameter("templatePathPrefix");
if (this.templatePathPrefix == null) {
this.templatePathPrefix = "/WEB-INF/www";
} else if (this.templatePathPrefix.endsWith("/")) {
this.templatePathPrefix = this.templatePathPrefix.substring(0,
this.templatePathPrefix.length() - 1);
}
//某些URL前缀不予处理(例如 /img/***)
String ignores = cfg.getInitParameter("ignore");
if(ignores != null) {
for(String ig : StringUtils.split(ignores, ',')) {
ignoreURIs.add(ig.trim());
}
}
//某些URL扩展名不予处理(例如 *.jpg)
ignores = cfg.getInitParameter("ignoreExts");
if(ignores != null) {
for(String ig : StringUtils.split(ignores, ',')) {
ignoreExts.add('.'+ig.trim());
}
}
//创建view,按顺序
String views = cfg.getInitParameter("viewList");
if(views != null) {
for(String view : StringUtils.split(views, ',')) {
try {
viewList.add((View)Class.forName(view).newInstance());
} catch (Exception e) {
throw new FensyException(e);
}
}
} else {
viewList.add(new JSPView());
}
//主域名,必须指定
String tmp = cfg.getInitParameter("domain");
if(StringUtils.isNotBlank(tmp))
rootDomain = tmp;
//二级域名和对应页面模板路径
@SuppressWarnings("unchecked")
Enumeration<String> names = cfg.getInitParameterNames();
while(names.hasMoreElements()){
String name = names.nextElement();
String v = cfg.getInitParameter(name);
if(v.endsWith("/"))
v = v.substring(0, v.length()-1);
if("ignore".equalsIgnoreCase(name) || "ignoreExts".equalsIgnoreCase(name))
continue;
if("default".equalsIgnoreCase(name))
default_base = templatePathPrefix + v;
else
other_base.put(name, templatePathPrefix + v);
}
//exceptionHandler
String eh = cfg.getInitParameter("exceptionHandler");
if (eh != null) {
try {
exceptionHandler = (Handler)Class.forName(eh).newInstance();
} catch (Exception e) {
exceptionHandler = new ExceptionHandler();
}
} else {
exceptionHandler = new ExceptionHandler();
}
// init fensyAction
String tmp2 = cfg.getInitParameter("packages");
List<String> actionPackages = Arrays.asList(StringUtils.split(tmp2,','));
String interceptorsString = cfg.getInitParameter("interceptors");
List<String> inter = Arrays.asList(StringUtils.split(interceptorsString,','));
List<Interceptor> interceptors = new ArrayList<Interceptor>(inter.size());
for (String in : inter) {
try {
interceptors.add((Interceptor)Class.forName(in).newInstance());
} catch (Exception e) {
log.error("HandlerInterceptors initialize error:" + Exceptions.getStackTraceAsString(e), e);
}
}
fensyAction = new FensyAction(this, actionPackages, interceptors, exceptionHandler);
}
@Override
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain)
throws IOException, ServletException {
//自动编码处理
HttpServletRequest request = (HttpServletRequest)req;
HttpServletResponse response = (HttpServletResponse)res;
RequestContext rc = RequestContext.begin(this.context, request, response);
String req_uri = rc.getURIAndExcludeContextPath();
try{
//过滤URL前缀
for(String ignoreURI : ignoreURIs){
if(req_uri.startsWith(ignoreURI)){
chain.doFilter(rc.getRequest(), rc.getResponse());
return ;
}
}
//过滤URL后缀
for(String ignoreExt : ignoreExts){
if(req_uri.endsWith(ignoreExt)){
chain.doFilter(rc.getRequest(), rc.getResponse());
return ;
}
}
fensyAction.process(rc);
//boolean handled = fensyAction.process(rc);
//if (handled) {
// return ;
//}
//process(rc, req_uri);
} catch (Exception e) {
//rc.error(500);
exceptionHandler.handle(rc, e);
} finally {
if(rc!=null) rc.end();
DBManager.closeConnection();
}
}
public boolean process(RequestContext rc, String req_uri) throws IOException, ServletException {
//rc.request().setAttribute(REQUEST_URI, req_uri);
String[] paths = StringUtils.split(req_uri, '/');
PathView pathView = _getTemplate(rc.getRequest(), paths, paths.length);
if (pathView == null) {
throw NotFoundTemplateException.build(req_uri, viewList);
}
pathView.getView().render(rc, pathView.getTemplatePath());
if (log.isInfoEnabled()) {
log.info("-->requestURI=" + req_uri + ";pathView=" + pathView);
}
return true;
}
private PathView _getTemplate(HttpServletRequest request, String[] paths, int idx_base) {
String baseTempalte = _getTemplateBase(request);
StringBuilder template = new StringBuilder(baseTempalte);
String the_path = null;
if (idx_base == 0) {//返回默认页面
the_path = template.toString() + VIEW_INDEX;
// } else if (idx_base == 1) { //返回模块默认的页面
// the_path = template.toString() + "/" + paths[0] + VIEW_INDEX;
} else {
for (int i = 0; i < idx_base; i++) {
template.append('/');
template.append(paths[i]);
}
the_path = template.toString();
}
PathView pathView = _queryFromCache(the_path);
if (pathView != null) {
String params = _makeQueryString(paths, idx_base);
pathView.setTemplatePath(the_path + pathView.getView().getExt() + params);
}
if (pathView == null && idx_base > 0) {
pathView = _getTemplate(request, paths, idx_base - 1);
}
return pathView;
}
/**
* http://my.ketayao.com/
* 组装查询参数
* @param paths
* @param idx_base
* @return
*/
private String _makeQueryString(String[] paths, int idx_base) {
StringBuilder params = new StringBuilder();
int idx = 1;
for (int i = idx_base; i < paths.length; i++) {
if (params.length() == 0)
params.append('?');
if (i > idx_base)
params.append('&');
params.append("p");
params.append(idx++);
params.append('=');
params.append(paths[i]);
}
return params.toString();
}
/**
* 得到域名base
* @param req
* @return
*/
private String _getTemplateBase(HttpServletRequest req) {
String base = null;
String prefix = req.getServerName().toLowerCase();
int idx = (rootDomain != null) ? prefix.indexOf(rootDomain) : 0;
if (idx > 0) {
prefix = prefix.substring(0, idx - 1);
base = other_base.get(prefix);
}
return (base == null) ? default_base : base;
}
/**
* 查询某个页面是否存在,如果存在则缓存此结果,并返回
* @param path
* @return
*/
private PathView _queryFromCache(String path) {
PathView pathView = template_cache.get(path);
if (pathView == null) {
for (View view : viewList) {
String pathAndExt = path + view.getExt();
File testFile = new File(context.getRealPath(pathAndExt));
boolean isExists = testFile.exists() && testFile.isFile();
if (isExists) {
pathView = new PathView(path, view);
template_cache.put(path, pathView);
break;
}
}
}
return pathView;
}
/**
*
* @see javax.servlet.Filter#destroy()
*/
@Override
public void destroy() {
if (fensyAction != null) {
fensyAction.destroy();
}
}
}
| [
"ketayao@gmail.com"
] | ketayao@gmail.com |
8b8d5be6b0fb082411047c97d3aca2da7f3c356a | fa51687f6aa32d57a9f5f4efc6dcfda2806f244d | /jdk8-src/src/main/java/org/omg/IOP/TaggedProfileHolder.java | 4451d4f05d89d022b87ac466e0e0d3242778545c | [] | no_license | yida-lxw/jdk8 | 44bad6ccd2d81099bea11433c8f2a0fc2e589eaa | 9f69e5f33eb5ab32e385301b210db1e49e919aac | refs/heads/master | 2022-12-29T23:56:32.001512 | 2020-04-27T04:14:10 | 2020-04-27T04:14:10 | 258,988,898 | 0 | 1 | null | 2020-10-13T21:32:05 | 2020-04-26T09:21:22 | Java | UTF-8 | Java | false | false | 965 | java | package org.omg.IOP;
/**
* org/omg/IOP/TaggedProfileHolder.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u212/12974/corba/src/share/classes/org/omg/PortableInterceptor/IOP.idl
* Monday, April 1, 2019 11:12:35 PM PDT
*/
public final class TaggedProfileHolder implements org.omg.CORBA.portable.Streamable {
public org.omg.IOP.TaggedProfile value = null;
public TaggedProfileHolder() {
}
public TaggedProfileHolder(org.omg.IOP.TaggedProfile initialValue) {
value = initialValue;
}
public void _read(org.omg.CORBA.portable.InputStream i) {
value = org.omg.IOP.TaggedProfileHelper.read(i);
}
public void _write(org.omg.CORBA.portable.OutputStream o) {
org.omg.IOP.TaggedProfileHelper.write(o, value);
}
public org.omg.CORBA.TypeCode _type() {
return org.omg.IOP.TaggedProfileHelper.type();
}
}
| [
"yida@caibeike.com"
] | yida@caibeike.com |
748c91ca410dfa66d6124727fe02eb21e9b9c0ad | 8bf9f472be45c46772580bc100a6025ee4157b26 | /app/src/main/java/com/example/twt/mobileplayer/view/VitamioVideoView.java | 756af0e480e50855f14fb10e1a1ef693dced467f | [] | no_license | twttwt/MobilePlayer | 60733fa70f974f986b7de4fb41eef4eac968247d | 60cc6278adabc559f2d1a415445208cfc22a070b | refs/heads/master | 2021-08-29T21:47:39.523568 | 2017-12-15T03:51:50 | 2017-12-15T03:51:50 | 96,532,610 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 878 | java | package com.example.twt.mobileplayer.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import io.vov.vitamio.widget.VideoView;
/**
* @author twt
* @version $Rev$
* @des ${TODO}
* @updateAuthor $Author$
* @updateDes ${TODO}
*/
public class VitamioVideoView extends VideoView {
public VitamioVideoView(Context context) {
super(context);
}
public VitamioVideoView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public VitamioVideoView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
public void setScreen(int width,int height) {
ViewGroup.LayoutParams params=getLayoutParams();
getLayoutParams().height=height;
getLayoutParams().width=width;
setLayoutParams(params);
}
}
| [
"673226778@qq.com"
] | 673226778@qq.com |
677340c44f973f7df042853d39e53a2d8d50f70e | 439f4df0affef61e575ab2fe58929f3b02808f62 | /src/main/java/com/cgomez/nb/classifier/nb/ResultItem.java | 323c5fbdf05991b140495f9ccb30ce659d9f15a3 | [] | no_license | andres1537/dl-author-name-disambiguation-methods | e82042b38c0ddb1b8c80617633f7472e6a058db8 | 9f6f93dcd1afac674494496601da446bc879ae7b | refs/heads/master | 2021-05-12T05:32:56.132435 | 2018-06-15T20:46:13 | 2018-06-15T20:46:13 | 117,194,939 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 502 | java | package com.cgomez.nb.classifier.nb;
public class ResultItem<T> {
private T cClass;
private double prob;
public ResultItem(T class1, double prob){
cClass = class1;
this.prob = prob;
}
public T getCClass(){
return cClass;
}
public void setCClass(T class1){
cClass = class1;
}
public double getProb(){
return prob;
}
public void setProb(double prob){
this.prob = prob;
}
}
| [
"andres1537@gmail.com"
] | andres1537@gmail.com |
39b77dcb37a61b54352135bbdbc6452c0b777216 | a9073c91eba52baf3ab20300573ce4fe5f105684 | /app/src/androidTest/java/com/example/rich/projectthur1209pm/ExampleInstrumentedTest.java | c6c2241e772a7638ec54641bc1fd8fae18a1adb7 | [] | no_license | RiMch/Thursday-Practice | d3d30f2daf42f5bb86e0d5aa59e63f3eb5478e5b | 75c3ea21384f511796bb842be4e265959c42806c | refs/heads/master | 2021-01-13T03:11:34.889767 | 2016-12-29T23:31:05 | 2016-12-29T23:31:05 | 77,646,352 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 772 | java | package com.example.rich.projectthur1209pm;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.rich.projectthur1209pm", appContext.getPackageName());
}
}
| [
"rich5671@verizon.net"
] | rich5671@verizon.net |
e37f786708422f0e4ba5763ff4c4040886c20fec | 8c085f12963e120be684f8a049175f07d0b8c4e5 | /castor/tags/tag_0_9_3_11/castor-2002/castor/src/main/org/exolab/castor/mapping/xml/types/AutoNamingTypeDescriptor.java | b1fa556bdfa356d7db253a62c4a068f971862512 | [] | no_license | alam93mahboob/castor | 9963d4110126b8f4ef81d82adfe62bab8c5f5bce | 974f853be5680427a195a6b8ae3ce63a65a309b6 | refs/heads/master | 2020-05-17T08:03:26.321249 | 2014-01-01T20:48:45 | 2014-01-01T20:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,120 | java | /*
* This class was automatically generated with
* <a href="http://castor.exolab.org">Castor 0.9.3.9+</a>, using an
* XML Schema.
* $Id$
*/
package org.exolab.castor.mapping.xml.types;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import org.exolab.castor.mapping.AccessMode;
import org.exolab.castor.mapping.ClassDescriptor;
import org.exolab.castor.mapping.FieldDescriptor;
import org.exolab.castor.xml.*;
import org.exolab.castor.xml.FieldValidator;
import org.exolab.castor.xml.TypeValidator;
import org.exolab.castor.xml.XMLFieldDescriptor;
import org.exolab.castor.xml.handlers.*;
import org.exolab.castor.xml.util.XMLFieldDescriptorImpl;
import org.exolab.castor.xml.validators.*;
/**
*
* @version $Revision$ $Date$
**/
public class AutoNamingTypeDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
private java.lang.String nsPrefix;
private java.lang.String nsURI;
private java.lang.String xmlName;
private org.exolab.castor.xml.XMLFieldDescriptor identity;
//----------------/
//- Constructors -/
//----------------/
public AutoNamingTypeDescriptor() {
super();
nsURI = "http://castor.exolab.org/";
xmlName = "auto-namingType";
XMLFieldDescriptorImpl desc = null;
XMLFieldHandler handler = null;
FieldValidator fieldValidator = null;
//-- initialize attribute descriptors
//-- initialize element descriptors
} //-- org.exolab.castor.mapping.xml.types.AutoNamingTypeDescriptor()
//-----------/
//- Methods -/
//-----------/
/**
**/
public org.exolab.castor.mapping.AccessMode getAccessMode()
{
return null;
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
/**
**/
public org.exolab.castor.mapping.ClassDescriptor getExtends()
{
return null;
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
/**
**/
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
{
return identity;
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
/**
**/
public java.lang.Class getJavaClass()
{
return org.exolab.castor.mapping.xml.types.AutoNamingType.class;
} //-- java.lang.Class getJavaClass()
/**
**/
public java.lang.String getNameSpacePrefix()
{
return nsPrefix;
} //-- java.lang.String getNameSpacePrefix()
/**
**/
public java.lang.String getNameSpaceURI()
{
return nsURI;
} //-- java.lang.String getNameSpaceURI()
/**
**/
public org.exolab.castor.xml.TypeValidator getValidator()
{
return this;
} //-- org.exolab.castor.xml.TypeValidator getValidator()
/**
**/
public java.lang.String getXMLName()
{
return xmlName;
} //-- java.lang.String getXMLName()
}
| [
"nobody@b24b0d9a-6811-0410-802a-946fa971d308"
] | nobody@b24b0d9a-6811-0410-802a-946fa971d308 |
d8619610fa3c10692b2c05d297d4852fdd6aef6c | e5a3950f08cd28b84969e1132e72ea83c44573e7 | /src/test/java/com/koray/searchbackend/SearchbackendApplicationTests.java | 08e5a6bed39a993615f9f0d89526e22c9e48c915 | [] | no_license | ciCciC/searchbooksbackend | 609f035fc4ae84268497478912da480541eacc11 | 779aef33a261169bcdf380dd19c048e56c64e286 | refs/heads/master | 2022-10-08T12:50:48.059781 | 2019-12-10T09:18:34 | 2019-12-10T09:18:34 | 227,067,938 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 231 | java | package com.koray.searchbackend;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SearchbackendApplicationTests {
@Test
void contextLoads() {
}
}
| [
"koraypoyraz1@hotmail.com"
] | koraypoyraz1@hotmail.com |
0cedb8db975c72a5ec41b0e3f3eef7041895b67a | 69c7381818fc448164237cffbcb7559e184c6d35 | /Game with shapes/Main.java | b0d657046badfc4e5a03200caf269998bd2ade7f | [] | no_license | lalith316/Playground | 9a78eccff94c5fc6bd2cfb46b60728606797285f | d85f06fc733551057c6b9eb298491f7d533fd47f | refs/heads/master | 2022-08-11T22:07:38.222764 | 2020-05-14T08:48:49 | 2020-05-14T08:48:49 | 263,583,906 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 233 | java | #include<iostream>
#include<cmath>
using namespace std;
int main()
{
int r,l;
cin>>r>>l;
int d;
d=2*r;
if(d == l)
cout<<"circle can be inside a square"<<endl;
else
cout<<"circle cannot be inside a square"<<endl;
} | [
"45367425+lalith316@users.noreply.github.com"
] | 45367425+lalith316@users.noreply.github.com |
6df07ef6299af3eb3f2afb2fd9e330341265c29d | 00e72b3e4af26394bd5bbb2bcc5582d71064eb4e | /app/src/main/java/com/example/clockon2/MedicamentActivity.java | b785e17236228f5dbe0754174c236eff4e83be8b | [] | no_license | souhakhelifi/projet-android | a07f777f083e3963f4ee2e448d930387b0532608 | eb31550f0285ae4b0ffb202e8471363898fb49b8 | refs/heads/master | 2023-01-29T21:08:25.503682 | 2020-12-17T19:48:29 | 2020-12-17T19:48:29 | 322,393,879 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,487 | java | package com.example.clockon2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.ContentValues;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
import com.example.clockon2.Med.MedActivity;
import com.example.clockon2.Med.Medicament;
import java.util.ArrayList;
public class MedicamentActivity extends AppCompatActivity {
DAO dao=new DAO();
Button btnAjout ;
TextView txtref;
ContentValues values ;
ListView lp;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_medicament);
btnAjout=(Button)findViewById(R.id.btnajout);
txtref=(TextView)findViewById(R.id.txtRef);
lp=(ListView)findViewById(R.id.lstM);
dao.openDB(this);
btnAjout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
values=new ContentValues();
values.put("ref_med",txtref.getText().toString());
long rowId=dao.insertMed(values);
if (rowId == -1) {
Toast.makeText(MedicamentActivity.this, "Ajout échoué !", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(MedicamentActivity.this, "Le médicament est ajouté avec succès!", Toast.LENGTH_LONG).show();
ArrayList<Medicament> a=new ArrayList<>();
ArrayList<String> str=new ArrayList<>();
a=dao.getMed(MedicamentActivity.this);
for(int i=0;i<a.size();i++){
str.add(a.get(i).getRef_med());
}
ArrayAdapter adapter=new ArrayAdapter(MedicamentActivity.this,android.R.layout.simple_list_item_1,str);
lp.setAdapter(adapter);
}
}
});
ArrayList<Medicament> a=new ArrayList<>();
ArrayList<String> str=new ArrayList<>();
a=dao.getMed(this);
for(int i=0;i<a.size();i++){
str.add(a.get(i).getRef_med());
}
ArrayAdapter adapter=new ArrayAdapter(MedicamentActivity.this,android.R.layout.simple_list_item_1,str);
lp.setAdapter(adapter);
}
}
| [
"souhakhelifi1996@gmail.com"
] | souhakhelifi1996@gmail.com |
880996b2c805d1c29163e721d3f4835fbefa4c44 | 8908c6b42e9671784d3808e16afc1e6e1aee5c8b | /src/main/java/co/com/retotecnicobanistmo/certification/reto/tasks/ConsumirGet.java | 022fa5c496d2ef78f45cfbc4d5cfce5f3990a8e7 | [] | no_license | AstridChavarria234/ARQUETIPO_SCREENPLAY | 698201ec165124e3402b8c36613d34a31d6c9051 | 037a2958c4f7b94c16e2897b125ba0f8819a58de | refs/heads/master | 2022-12-15T20:00:20.719580 | 2020-09-07T02:14:51 | 2020-09-07T02:14:51 | 293,399,810 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,198 | java | package co.com.retotecnicobanistmo.certification.reto.tasks;
import static net.serenitybdd.screenplay.Tasks.instrumented;
import co.com.retotecnicobanistmo.certification.reto.interactions.ConsumirServicio;
import co.com.retotecnicobanistmo.certification.reto.models.PlanSeleccionado;
import co.com.retotecnicobanistmo.certification.reto.utils.enums.EnumCredenciales;
import net.serenitybdd.rest.SerenityRest;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Performable;
import net.serenitybdd.screenplay.Task;
public class ConsumirGet implements Task {
@Override
public <T extends Actor> void performAs(T actor) {
actor.attemptsTo(
ConsumirServicio.getSimple(
"/apigateway-ayv-autos/ohs-autos/canal/TraditionalChannel/organizacion/Sura/planes",
EnumCredenciales.SERVICIOS_OHS));
actor.remember("response_planes", SerenityRest.lastResponse().as(PlanSeleccionado[].class));
PlanSeleccionado[] responsePlanes = actor.recall("response_planes");
System.out.print("Codigo canal" + responsePlanes[0].getNombrePlan());
}
public static Performable conCredenciales() {
return instrumented(ConsumirGet.class);
}
}
| [
"astridchavarriaserna@gmail.com"
] | astridchavarriaserna@gmail.com |
ebdb42e5c18eecf170b47475446aa62198a7d0fe | 540e3da08c58776ef5849564ed52c22cdeda8627 | /src/main/java/de/schauderhaft/db2locks/SafeRunnable.java | 5df4a4e6654e4de54d30527d189bc8dc930a7870 | [] | no_license | schauder/db2-locks | 8a0b35036da51602da937779e6e4fc999b6ccf63 | d07923d9515f112b8d672fff901fa57b1d0e3b2a | refs/heads/master | 2022-07-02T00:49:42.382813 | 2020-05-08T14:14:51 | 2020-05-08T14:14:51 | 262,281,269 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 897 | java | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.schauderhaft.db2locks;
public interface SafeRunnable extends Runnable {
@Override
default void run() {
try {
doRun();
} catch (Exception exception) {
throw new RuntimeException("Something went wrong.", exception);
}
}
void doRun() throws Exception;
}
| [
"jens@schauderhaft.de"
] | jens@schauderhaft.de |
28ce9ee99477a4633ad2ab100343d90ce069a5b3 | 04864d2b7d68cc1716a5972131f485e425488ada | /src/Preprossesing/StartPreprossesing.java | 6ab16a84ff5f156cb007fac7a85fdb163d79e2f1 | [] | no_license | abhijitanand/StoriesThatMatter | ee69b58469a24d6eb7557ce290cca0be68f96980 | 8246cd4f52e0c911a757031ed1fdad20190d4be0 | refs/heads/master | 2021-01-24T10:30:31.625305 | 2016-10-01T15:16:45 | 2016-10-01T15:16:45 | 69,731,530 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,619 | java | package Preprossesing;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.io.ObjectInputStream.GetField;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
public class StartPreprossesing {
public static void main(String[] args) {
String fileEntityDate = "./data/Baseline/fileEntityDate.csv";
String redirectFileEntityDate = "./data/Baseline/RedirectfileEntityDate.csv";
String storyMainArticle = "./data/WikipediaData/EventMainArticle1.csv";
String mappingFile = "./data/WikipediaData/EventMainArticle1.csv";
String TimeSeries = "C:\\Users\\aanand\\Documents\\NetBeansProjects\\aster\\data\\WikipediaData\\TimeSeries.csv";
String Redirect = "C:\\Users\\aanand\\Documents\\NetBeansProjects\\aster\\data\\WikipediaData\\RedirectStoryNames.csv";
//Here we assume that the fileEntityDate contains stories which are right i.e correct redirect story names
StartPreprossesing process = new StartPreprossesing();
//get Story list from fileEntityDate.
Set StoryList = process.getStoryListFromFile(fileEntityDate);
RedirectClass redirect = new RedirectClass();
//get redirects of stories and write to redirect file.
redirect.getRedirects(StoryList, Redirect);
//Change the story names to their redirected names and write to a file redirectFileEntityDate
process.writeRedirectFileEntityDate(fileEntityDate, Redirect, redirectFileEntityDate);
//get timeseries of stories and write to timeseries file.
Set newStoryList = process.getStoryListFromFile(fileEntityDate);
CreateTimeSeries time = new CreateTimeSeries();
time.getTimeSeries(newStoryList, TimeSeries);
}
Set getStoryListFromFile(String fileEntityDate)
{
String line = "";
BufferedReader br = null;
Set storyName = new HashSet();
try {
br = new BufferedReader(new FileReader(fileEntityDate));
while ((line = br.readLine()) != null) {
String story = line.split(";")[0].trim();
if (story.contains("#")) {
story = story.substring(0, story.indexOf("#"));
}
storyName.add(story);
}
} catch (IOException ex) {
Logger.getLogger(StartPreprossesing.class.getName()).log(
Level.SEVERE, null, ex);
}
return storyName;
}
void writeRedirectFileEntityDate(String fileEntityDate, String Redirect,String redirectFileEntityDate)
{
String line = "";
BufferedReader br = null;
RedirectClass red = new RedirectClass();
Map<String,String> RedirectStoryMap = red.returnRedirectMap(Redirect);
try {
File statText = new File(redirectFileEntityDate);
FileOutputStream is;
is = new FileOutputStream(statText);
OutputStreamWriter osw = new OutputStreamWriter(is);
Writer w = new BufferedWriter(osw);
br = new BufferedReader(new FileReader(fileEntityDate));
while ((line = br.readLine()) != null) {
String[] data = line.split(";");
String story = data[0].trim();
if (story.contains("#")) {
story = story.substring(0, story.indexOf("#"));
}
if(RedirectStoryMap.containsKey(story))
{
story = RedirectStoryMap.get(story);
}
w.write(story);
for(int i=1;i<data.length;i++)
{
w.write(";"+data[i]);
}
w.write("\n");
}
w.close();
} catch (IOException ex) {
Logger.getLogger(StartPreprossesing.class.getName()).log(
Level.SEVERE, null, ex);
}
}
}
| [
"aanand@student5.l3s.uni-hannover.de"
] | aanand@student5.l3s.uni-hannover.de |
5b8d3d5d57cc808f8feea829d60bcf0861163227 | bac2e472f4115cae60736365b6cd0fd4a3e24fbc | /S.I.N.A - CMR/src/br/com/sinamodel/interfaces/IUsuariosDAO.java | 3a41193447c4032e391c449b7428507a34466956 | [] | no_license | danilocaldas/sina-cmr-completo | 8b0f2c64e91f4d1449dd1df6a780f500d8ceba35 | b62bf049920c0ea6bb14689c247ea92d5111cee7 | refs/heads/master | 2021-01-13T01:41:56.131360 | 2014-02-26T19:20:04 | 2014-02-26T19:20:04 | 35,952,945 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 418 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.sinamodel.interfaces;
import br.com.sinamodel.entidades.Usuarios;
import java.util.List;
/**
*
* @author Danilo
*/
public interface IUsuariosDAO {
int save(Usuarios usuarios);
int update(Usuarios usuarios);
int delete(Long id);
List<Usuarios> listar();
}
| [
"dmcmaumau@gmail.com@7151bb61-e841-9f93-4661-804d4620b2f1"
] | dmcmaumau@gmail.com@7151bb61-e841-9f93-4661-804d4620b2f1 |
f877412bc302cf34ccfff2b571b2a2be47968fba | 8be8d7eca93eb92a44e2a92b1e704444f3aa2afb | /app/src/main/java/com/aanglearning/principalapp/messagegroup/MessageInteractor.java | a32984b0aac1ca165813c5c3be7baa321263e8bc | [] | no_license | vinkrish/principal-app | 9a74aa26c43d3f072a9ab1d47a8af169e31e3ce2 | b805fa65304eea3366ccf3cc88a3eb5be10f7bc0 | refs/heads/master | 2021-09-12T23:11:19.460536 | 2018-04-22T10:23:06 | 2018-04-22T10:23:06 | 90,535,555 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,224 | java | package com.aanglearning.principalapp.messagegroup;
import com.aanglearning.principalapp.model.DeletedMessage;
import com.aanglearning.principalapp.model.Message;
import java.util.List;
/**
* Created by Vinay on 07-04-2017.
*/
interface MessageInteractor {
interface OnFinishedListener {
void onError(String message);
void onMessageSaved(Message message);
void onRecentMessagesReceived(List<Message> messages);
void onMessageReceived(List<Message> messages);
void onMessageDeleted(DeletedMessage deletedMessage);
void onDeletedMessagesReceived(List<DeletedMessage> messages);
}
void saveMessage(Message message, MessageInteractor.OnFinishedListener listener);
void getRecentMessages(long groupId, long messageId, MessageInteractor.OnFinishedListener listener);
void getMessages(long groupId, MessageInteractor.OnFinishedListener listener);
void deleteMessage(DeletedMessage deletedMessage, MessageInteractor.OnFinishedListener listener);
void getRecentDeletedMessages(long groupId, long id, MessageInteractor.OnFinishedListener listener);
void getDeletedMessages(long groupId, MessageInteractor.OnFinishedListener listener);
}
| [
"vinaykrishna1989@gmail.com"
] | vinaykrishna1989@gmail.com |
c1eca6ba85da0bbc116d61c37339027a67d0b928 | dad07cdbb17ef1fe2a0a86fa252812dc91e4880b | /IFC_Source_Code/src/gui/main/listeners/SearchListener.java | 36658c00d1b6e1e27b79714d4b327c1f66e3d9b7 | [] | no_license | valerie-roske/IFC-Scheduler | 76ce3b75d1dd7cd76734df3d09527ecfc3745bcf | 4d03834a955eac5fe33ff812ffc79e7ec56ea9e7 | refs/heads/master | 2021-01-16T22:32:17.577099 | 2014-03-16T05:43:00 | 2014-03-16T05:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,250 | java | package gui.main.listeners;
import gui.main.MainWindow;
import gui.main.SearchPane;
import gui.main.SearchPane.AppointmentResultsTableModel;
import gui.main.SearchPane.PatientResultsTableModel;
import gui.sub.DisplayAppointmentConfirmationUI;
import gui.sub.DisplayAppointmentSearchUI;
import gui.sub.DisplayPatientSearchUI;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JTable;
import backend.DataService.DataServiceImpl;
import backend.DataTransferObjects.AppointmentDto;
import backend.DataTransferObjects.PatientDto;
/**
* Waits for mouse clicks on patients or appointments in the search results table. If a patient or appointment is double clicked,
* a pop up window displays more information about that patient or appointment.
*/
public class SearchListener extends MouseAdapter {
JTable owner;
Component parent;
MainWindow mw;
/**
* Constructor.
*
* @param owner - component that owns this listener (the patient or appointment results table of the SearchPane)
* @param parent - the parent of this listener (SearchPane)
*/
public SearchListener(JTable owner, Component parent, MainWindow mw) {
this.owner = owner;
this.parent = parent;
this.mw = mw;
}
/**
* Looks for double click events in order to display the pop up window with more patient or appointment information.
*/
public void mouseClicked(MouseEvent e) {
// Looking for double click events
if (e.getClickCount() >= 2) {
if (owner.getSelectedRow() >= 0) {
// The patient search results table was clicked
if (owner.getModel() instanceof PatientResultsTableModel) {
PatientDto pat = ((PatientResultsTableModel)owner.getModel()).getPatient(owner.getSelectedRow());
DisplayPatientSearchUI.ShowDialog(parent.getParent(), pat, mw);
SearchPane sp = (SearchPane) parent;
sp.resetModel();
// Otherwise the appointment search results table was clicked
} else {
AppointmentDto appt = ((AppointmentResultsTableModel)owner.getModel()).getAppointment(owner.getSelectedRow());
DisplayAppointmentSearchUI.ShowDialog(parent.getParent(), appt);
SearchPane sp = (SearchPane) parent;
sp.resetModel();
}
}
}
}
} | [
"jhl233@cornell.edu"
] | jhl233@cornell.edu |
8e7e471d169dd6460ad031b5cf145935f57a93cd | 2e9a86693b665b879c59b14dfd63c2c92acbf08a | /webconverter/decomiledJars/rt/sun/java2d/pipe/OutlineTextRenderer.java | e32c2421e36f9ed87b331d38e323be78c46800f5 | [] | no_license | shaikgsb/webproject-migration-code-java | 9e2271255077025111e7ea3f887af7d9368c6933 | 3b17211e497658c61435f6c0e118b699e7aa3ded | refs/heads/master | 2021-01-19T18:36:42.835783 | 2017-07-13T09:11:05 | 2017-07-13T09:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,850 | java | package sun.java2d.pipe;
import java.awt.Shape;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.font.TextLayout;
import java.awt.geom.AffineTransform;
import sun.java2d.SunGraphics2D;
import sun.java2d.loops.FontInfo;
public class OutlineTextRenderer
implements TextPipe
{
public static final int THRESHHOLD = 100;
public OutlineTextRenderer() {}
public void drawChars(SunGraphics2D paramSunGraphics2D, char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
String str = new String(paramArrayOfChar, paramInt1, paramInt2);
drawString(paramSunGraphics2D, str, paramInt3, paramInt4);
}
public void drawString(SunGraphics2D paramSunGraphics2D, String paramString, double paramDouble1, double paramDouble2)
{
if ("".equals(paramString)) {
return;
}
TextLayout localTextLayout = new TextLayout(paramString, paramSunGraphics2D.getFont(), paramSunGraphics2D.getFontRenderContext());
Shape localShape = localTextLayout.getOutline(AffineTransform.getTranslateInstance(paramDouble1, paramDouble2));
int i = paramSunGraphics2D.getFontInfo().aaHint;
int j = -1;
if ((i != 1) && (paramSunGraphics2D.antialiasHint != 2))
{
j = paramSunGraphics2D.antialiasHint;
paramSunGraphics2D.antialiasHint = 2;
paramSunGraphics2D.validatePipe();
}
else if ((i == 1) && (paramSunGraphics2D.antialiasHint != 1))
{
j = paramSunGraphics2D.antialiasHint;
paramSunGraphics2D.antialiasHint = 1;
paramSunGraphics2D.validatePipe();
}
paramSunGraphics2D.fill(localShape);
if (j != -1)
{
paramSunGraphics2D.antialiasHint = j;
paramSunGraphics2D.validatePipe();
}
}
public void drawGlyphVector(SunGraphics2D paramSunGraphics2D, GlyphVector paramGlyphVector, float paramFloat1, float paramFloat2)
{
Shape localShape = paramGlyphVector.getOutline(paramFloat1, paramFloat2);
int i = -1;
FontRenderContext localFontRenderContext = paramGlyphVector.getFontRenderContext();
boolean bool = localFontRenderContext.isAntiAliased();
if ((bool) && (paramSunGraphics2D.getGVFontInfo(paramGlyphVector.getFont(), localFontRenderContext).aaHint == 1)) {
bool = false;
}
if ((bool) && (paramSunGraphics2D.antialiasHint != 2))
{
i = paramSunGraphics2D.antialiasHint;
paramSunGraphics2D.antialiasHint = 2;
paramSunGraphics2D.validatePipe();
}
else if ((!bool) && (paramSunGraphics2D.antialiasHint != 1))
{
i = paramSunGraphics2D.antialiasHint;
paramSunGraphics2D.antialiasHint = 1;
paramSunGraphics2D.validatePipe();
}
paramSunGraphics2D.fill(localShape);
if (i != -1)
{
paramSunGraphics2D.antialiasHint = i;
paramSunGraphics2D.validatePipe();
}
}
}
| [
"Subbaraju.Gadiraju@Lnttechservices.com"
] | Subbaraju.Gadiraju@Lnttechservices.com |
5bd5e502d43121b728654cb95b32eb7c429122bd | 3e154589e24371d78a1854788b0e68e8e7783b18 | /src/main/java/javafrm/demo/controllers/Session2Controller.java | 29fba0cfb5c01a15697be13cbb83cd2e96672181 | [] | no_license | pqanh12344/Admin | 5cb19f2bdd2ffc72f3dcd44c822d5b65d5a3779b | 1660894c7deae521a8c1b8a1de808f61d7280d1a | refs/heads/master | 2023-03-31T09:26:47.226795 | 2021-04-03T16:00:24 | 2021-04-03T16:00:24 | 354,332,133 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,214 | java | package javafrm.demo.controllers;
import javafrm.demo.models.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@Controller
public class Session2Controller {
@GetMapping("/session2/load-view")
public String loadView(Model model){
model.addAttribute("greeting","Xin chao");
User user = new User();
user.address = "QN";
user.name = "Takamiya Mio";
model.addAttribute("user", user);
String[] languages = new String[]{
"PHP",
"JAVA",
"JS",
"CSS"
};
model.addAttribute("languages",languages);
return "session2/demo-view";
}
@PostMapping("/session2/handling-form")
public String handlingForm(User user,Model model){
model.addAttribute("user", user);
return "session2/show-data";
}
@GetMapping("/session2/show-form")
public String showForm(Model model){
User user = new User();
model.addAttribute("user",user);
return "session2/form";
}
}
| [
"="
] | = |
cd810b4d58fa47ac0cbc35fae9d9765bcab38e62 | 5b08a18538e30a959564d3ef6cd6e447e6f3f7d0 | /src/com/teamtreehouse/pomodoro/controllers/Home.java | 59c47769a4ef3a8090c7488f06eb2f50100b9907 | [] | no_license | carmital/PomodoroApp | 5d137a9c618f9d85ccbd9aa61100e890f8725c3e | 43001096ac49d4c48189dfdea57e28aa018700aa | refs/heads/master | 2020-12-31T05:10:07.732238 | 2016-05-26T20:00:18 | 2016-05-26T20:00:18 | 59,779,766 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,676 | java | package com.teamtreehouse.pomodoro.controllers;
import com.teamtreehouse.pomodoro.model.Attempt;
import com.teamtreehouse.pomodoro.model.AttemptKind;
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.layout.VBox;
import javafx.scene.media.AudioClip;
import javafx.util.Duration;
public class Home {
private final AudioClip mApplause;
@FXML
private VBox container;
@FXML
private Label title;
@FXML
private TextArea message;
private Attempt mCurrentAttempt;
private StringProperty mTimerText;
private Timeline mTimeline;
public Home() {
mTimerText = new SimpleStringProperty();
setTimerText(0);
mApplause = new AudioClip(getClass().getResource("/sounds/applause.mp3").toExternalForm());
}
public String getTimerText() {
return mTimerText.get();
}
public StringProperty timerTextProperty() {
return mTimerText;
}
public void setTimerText(String timerText) {
mTimerText.set(timerText);
}
public void setTimerText(int remainingSeconds) {
int minutes = remainingSeconds / 60;
int seconds = remainingSeconds % 60;
setTimerText(String.format("%02d:%02d", minutes, seconds));
}
private void prepareAttempt(AttemptKind kind) {
reset();
mCurrentAttempt = new Attempt(kind, "");
addAttemptStyle(kind);
title.setText(kind.getDisplayName());
setTimerText(mCurrentAttempt.getRemainingSeconds());
mTimeline = new Timeline();
mTimeline.setCycleCount(kind.getTotalSeconds());
mTimeline.getKeyFrames().add(new KeyFrame(Duration.seconds(1), e -> {
mCurrentAttempt.tick();
setTimerText(mCurrentAttempt.getRemainingSeconds());
}));
mTimeline.setOnFinished(e -> {
saveCurrentAttempt();
mApplause.play();
prepareAttempt(mCurrentAttempt.getKind() == AttemptKind.FOCUS ?
AttemptKind.BREAK : AttemptKind.FOCUS);
});
}
private void saveCurrentAttempt() {
mCurrentAttempt.setMessage(message.getText());
mCurrentAttempt.save();
}
private void reset() {
clearAttemptStyles();
if (mTimeline != null && mTimeline.getStatus() == Animation.Status.RUNNING) {
mTimeline.stop();
}
}
public void playTimer() {
container.getStyleClass().add("playing");
mTimeline.play();
}
public void pauseTimer() {
container.getStyleClass().remove("playing");
mTimeline.pause();
}
private void addAttemptStyle(AttemptKind kind) {
container.getStyleClass().add(kind.toString().toLowerCase());
}
private void clearAttemptStyles() {
container.getStyleClass().remove("playing");
for (AttemptKind kind : AttemptKind.values()) {
container.getStyleClass().remove(kind.toString().toLowerCase());
}
}
public void handleRestart(ActionEvent actionEvent) {
prepareAttempt(AttemptKind.FOCUS);
playTimer();
}
public void handlePlay(ActionEvent actionEvent) {
if (mCurrentAttempt == null) {
handleRestart(actionEvent);
} else {
playTimer();
}
}
public void handlePause(ActionEvent actionEvent) {
pauseTimer();
}
}
| [
"shibba1987@gmail.com"
] | shibba1987@gmail.com |
a79baf215164d73b02cac890dedafc87e0c1bb75 | 4efd7451d0c3ea6011e1a823afe8fde979e07d99 | /src/main/java/cn/pzhu/logistics/service/LinkService.java | 1447e5c1abc3a2cb33a439631fa94b516265051f | [] | no_license | LemonRayQ/log | a6a0d1a559abd3ab4f2bb445fba6545f78985857 | 3f38f68e4060c2d038046911442161af4af124ab | refs/heads/master | 2020-05-21T17:03:06.185285 | 2019-05-11T09:28:37 | 2019-05-11T09:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 357 | java | package cn.pzhu.logistics.service;
import cn.pzhu.logistics.pojo.Link;
import java.util.List;
/**
* @author Impassive_y
* @date 2018/11/8 21:21
*/
public interface LinkService {
boolean addLink(Link link);
List<Link> selectAllLink();
boolean deleteLink(int id);
List<Link> selectLinkWithName(String name);
Link jumpLink(int id);
}
| [
"yangbin51@outlook.com"
] | yangbin51@outlook.com |
8df6549ec042455ad4614ea0cce24af631c0cbf9 | ab3f1ada7e8aef55504e1ffa4ec6dc7e3fb56a37 | /src/cn/edu/lingnan/servlets/FindMusicServlet.java | 25629496d3735203a5aeb87e069a458b67437882 | [] | no_license | krisWeng/MusicSystem | bb7477a50b038ed1c341ff2c67a222b6ce3ea106 | 12051536aff6d5f4666515a5f181974a92439faf | refs/heads/master | 2020-06-13T08:27:29.225561 | 2019-07-01T05:00:49 | 2019-07-01T05:00:49 | 194,600,489 | 1 | 0 | null | null | null | null | GB18030 | Java | false | false | 935 | java | package cn.edu.lingnan.servlets;
import java.io.IOException;
import java.util.Vector;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import cn.edu.lingnan.dao.MusicDAO;
import cn.edu.lingnan.dto.MusicDTO;
public class FindMusicServlet extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
//1、从页面获取想要的数据
String Mname = null;
Mname = req.getParameter("Musicname");
System.out.println("要查询的歌曲名称:"+Mname);
MusicDAO ma = new MusicDAO();
Vector<MusicDTO> v = new Vector<MusicDTO>();
v = ma.findMusicByName(Mname);
HttpSession s = req.getSession();
s.setAttribute("onemusic", v);
resp.sendRedirect("showMusicServlet.jsp");
}
}
| [
"18475969926@163.com"
] | 18475969926@163.com |
564823a82036adbe20952ccbde8292eb3e5a6605 | 7e1dcc9e3fb39f18a4180e43cf25b5bce374ac5c | /src/main/java/pl/shalpuk/scooterService/converter/dto/TariffToDtoConverter.java | 16d1131afb64f267cc08e406793ac4e184f9c702 | [] | no_license | KirylShalpuk/ScooterSharing | aaada3a5ea9391de8fef25f55ed4a171306cb5ce | 591a0fbf52f38dbe06e19a4ebc85c3264677c37d | refs/heads/master | 2023-07-01T15:31:03.596144 | 2021-08-03T10:31:50 | 2021-08-03T10:31:50 | 386,370,298 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 514 | java | package pl.shalpuk.scooterService.converter.dto;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
import pl.shalpuk.scooterService.dto.TariffDto;
import pl.shalpuk.scooterService.model.Tariff;
@Component
public class TariffToDtoConverter implements ToDtoConverter<Tariff, TariffDto> {
@Override
public TariffDto convertToDto(Tariff entity) {
TariffDto dto = new TariffDto();
BeanUtils.copyProperties(entity, dto);
return dto;
}
}
| [
"kirill.shelpuk@gmail.com"
] | kirill.shelpuk@gmail.com |
9bf6de3d240d9fe38da131135784ad57bd3917a3 | ee007695608e038ee15c951946ef8e66a778f34f | /src/main/java/com/gupaoedu/f_decorator/BatterCake.java | f8de90a1e95a533c549c6264cafd87b2774eee58 | [] | no_license | xujiangjiangDp/gupaoedu | d6db05b4b411e4a4adc188c08724cf3be400f16f | 3342f08994f1d01e58177943220482c66bb5a9d8 | refs/heads/master | 2020-04-27T21:15:02.633370 | 2019-03-28T02:56:42 | 2019-03-28T02:56:42 | 174,689,481 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 145 | java | package com.gupaoedu.f_decorator;
public abstract class BatterCake {
public abstract String getMsg();
public abstract int getPrice();
}
| [
"xujiangjiang@datapipeline.com"
] | xujiangjiang@datapipeline.com |
a4c930d4b81eb84ad1d4f55aaa004f0610cae235 | 327d615dbf9e4dd902193b5cd7684dfd789a76b1 | /base_source_from_JADX/sources/com/unboundid/util/LDAPSDKException.java | c593b704effee962c46950ecd214c3a0f5eb96cd | [] | no_license | dnosauro/singcie | e53ce4c124cfb311e0ffafd55b58c840d462e96f | 34d09c2e2b3497dd452246b76646b3571a18a100 | refs/heads/main | 2023-01-13T23:17:49.094499 | 2020-11-20T10:46:19 | 2020-11-20T10:46:19 | 314,513,307 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 627 | java | package com.unboundid.util;
public abstract class LDAPSDKException extends Exception {
protected LDAPSDKException(String str) {
super(str);
}
protected LDAPSDKException(String str, Throwable th) {
super(str, th);
}
public String getExceptionMessage() {
String message = getMessage();
return message == null ? toString() : message;
}
public final String toString() {
StringBuilder sb = new StringBuilder();
toString(sb);
return sb.toString();
}
public void toString(StringBuilder sb) {
sb.append(super.toString());
}
}
| [
"dno_sauro@yahoo.it"
] | dno_sauro@yahoo.it |
aa119ede616bbbf5c553bcf499f80df7ddfd0df7 | ecdf387e88421ff8ebb49100ca0d5661aa7273c7 | /TianjianERP/src/com/matech/audit/service/rule/model/RuleTable.java | d3181f22b3758730232bcab417dc1498ff123742 | [] | no_license | littletanker/mt-TianjianERP | 1a9433ff8bad1aebceec5bdd721544e88d73e247 | ef0378918a72a321735ab4745455f6ebe5e04576 | refs/heads/master | 2021-01-18T17:11:33.639821 | 2013-09-04T09:01:24 | 2013-09-04T09:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,647 | java | package com.matech.audit.service.rule.model;
/**
* 指标设置的VO,表名为k_rule
* @author Administrator
*
*/
public class RuleTable {
private int autoid;
private String title;
private String type;
private String memo;
private String content;
private double orderid;
private String property;
private String refer1;
private String refer2;
private String refer0;
public RuleTable() {
// TODO Auto-generated constructor stub
}
public int getAutoid() {
return autoid;
}
public void setAutoid(int autoid) {
this.autoid = autoid;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public double getOrderid() {
return orderid;
}
public void setOrderid(double orderid) {
this.orderid = orderid;
}
public String getProperty() {
return property;
}
public void setProperty(String property) {
this.property = property;
}
public String getRefer1() {
return refer1;
}
public void setRefer1(String refer1) {
this.refer1 = refer1;
}
public String getRefer2() {
return refer2;
}
public void setRefer2(String refer2) {
this.refer2 = refer2;
}
public String getRefer0() {
return refer0;
}
public void setRefer0(String refer0) {
this.refer0 = refer0;
}
}
| [
"smartken0824@gmail.com"
] | smartken0824@gmail.com |
5794cd07ecc13f0891aeeddbab8fdfbbfcab9bd9 | d9fe876cbf3e30e5d826a3ca175e4f56b4c27d9b | /java_examples-Week1/map_demo/src/eg1/Demo1.java | 1b35f8a35842e6673fe3ece1277222cee4f050d7 | [] | no_license | shubha-rao24/roc_march_vinay_2021 | 828367a57a92c12c0509bfb80a589a703f0dfac8 | 3c2793b3e06146a6e61127bbcdc2fa4ded12623e | refs/heads/master | 2023-03-21T15:02:46.152412 | 2021-03-04T22:09:54 | 2021-03-04T22:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,963 | java | package eg1;
import java.util.Collections;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.TreeMap;
public class Demo1 {
public static void main(String[] args) {
Map<Integer, String> hm=new HashMap<>();
hm.put(100, "java");
hm.put(100, "java updated");
hm.put(null, "java");
hm.put(101, "java");
hm.put(999, "java");
hm.put(900, null);
hm.put(901, null);
hm.put(300, null);
hm.put(null, null);
System.out.println("hm : "+hm);
Map<Integer, String> lhm=new LinkedHashMap<>();
lhm.put(100, "java");
lhm.put(100, "java updated");
lhm.put(null, "java");
lhm.put(101, "java");
lhm.put(999, "java");
lhm.put(900, null);
lhm.put(901, null);
lhm.put(300, null);
lhm.put(null, null);
System.out.println("lhm : "+lhm);
//Map<Integer, String> tm=new TreeMap<>(); //ascending for key
Map<Integer, String> tm=new TreeMap<>(Collections.reverseOrder()); //descending for key
tm.put(100, "java");
tm.put(100, "java updated");
//tm.put(null, "java");
tm.put(101, "java");
tm.put(999, "java");
tm.put(900, null);
tm.put(901, null);
tm.put(300, null);
//tm.put(null, null);
System.out.println("tm : "+tm);
Map<Integer, String> ht=new Hashtable<>();
ht.put(100, "java");
ht.put(100, "java updated");
//ht.put(null, "java");
ht.put(101, "java");
ht.put(999, "java");
//ht.put(900, null);
//ht.put(901, null);
//ht.put(300, null);
//ht.put(null, null);
System.out.println("ht : "+ht);
System.out.println(ht.size());
System.out.println(ht.containsKey(12));
System.out.println(ht.containsKey(100));
System.out.println(ht.containsValue("java"));
System.out.println(ht.containsValue("jee"));
System.out.println(ht.get(100));
System.out.println(ht.get(10000));
ht.remove(100);
System.out.println(ht);
System.out.println(ht.keySet());
System.out.println(ht.values());
}
}
| [
"vinay.ingalahalli@revature.com"
] | vinay.ingalahalli@revature.com |
9582044d3223af5cbf17bd8cc0a44cc1553e409a | c9c896c92153dda83ba7777f281c884cd3391d2d | /server/src/main/java/com/yncrea/framework/services/IService.java | 505e72a67fcbea8e6e13be9c586f427e7bff7848 | [] | no_license | FlorentinDUBOIS/furry-octo-winner | 4a9fcce14bcc87e60c57359553bbad7eb498d772 | 96c9f91ffdbd46893f9a8cc4f7a5549ba6e9ed55 | refs/heads/master | 2021-05-01T02:07:10.842757 | 2017-06-10T13:18:26 | 2017-06-10T13:19:03 | 79,888,883 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 227 | java | package com.yncrea.framework.services;
public interface IService<T, U> {
public Iterable<T> find();
public T create(T entity);
public T findOne(U Id);
public T update(T entity);
public void delete(U Id);
}
| [
"duboiflorentin@gmail.com"
] | duboiflorentin@gmail.com |
b718757d9eebd4121716928d2adf8194a78e978e | 5795cb97f39f9775c640a6e6743d176fe9e7e267 | /src/main/java/com/sdetsg/utility/Utils.java | 3c4ba2f1b84d2cd4ffc1ed81c5148fc66325feb6 | [] | no_license | ignaciosraer/CodingChallenge | 7d1da5ca2dff003f6c7d1dd53bbeaa9d6668dbaf | 72aeccd6737a10ab0ebc08c3e39661cf84bcf88f | refs/heads/master | 2023-01-13T19:24:01.407365 | 2020-11-20T14:54:37 | 2020-11-20T14:54:37 | 314,372,083 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,699 | java | package com.sdetsg.utility;
import java.util.ArrayList;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.sdetsg.config.ProjectSettings;
public class Utils extends ProjectSettings {
/**
* Switches between tabs to the desired tab
* @param desiredTab (first tab is 0)
*/
public static void switchTabs(int desiredTab) {
ArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());
driver.switchTo().window(tabs.get(desiredTab));
}
/**
* Tries to find the given element every 500 milliseconds for a maximum amount of time
* @param waitTimeInSeconds
* @param element
*
*/
public static boolean waitUntilElementPresent(int waitTimeInSeconds, By element) {
return (new WebDriverWait(driver, java.time.Duration.ofSeconds(waitTimeInSeconds))).until(
(ExpectedConditions.visibilityOfElementLocated(element))) != null;
}
/**
* Waits until the given element is not present by trying to find it every 500 milliseconds for a maximum amount of time
* @param waitTimeInSeconds
* @param element
*
*/
public static boolean waitUntilElementNotPresent(int waitTimeInSeconds, By element) {
return (new WebDriverWait(driver, java.time.Duration.ofSeconds(waitTimeInSeconds))).until(
(ExpectedConditions.invisibilityOfElementLocated(element))) != null;
}
/**
* Scrolls page using javascript
* @param x
* @param y
*/
public static void scrollPageBy(int x, int y) {
((JavascriptExecutor) driver)
.executeScript("window.scrollBy("+ x +", "+ y +")");
}
}
| [
"israer@itx.com"
] | israer@itx.com |
f5f0882b3171646a48a5e5755dc06f87608e978a | bcf2435d194e24fd1c01ad51031f792e7792ac6e | /src/jvm/classloader/Main.java | c84e0ea3a9279b5908bfbd53f976406ea76d06e4 | [] | no_license | aspiringmaven/Multithreading | 30d7998fbcbe88052e85a71fb9e07e6c353e2775 | 2171eb3a494c672444f524008bdfb9df6adcd469 | refs/heads/master | 2021-04-29T11:31:29.534680 | 2019-02-21T14:20:43 | 2019-02-21T14:20:43 | 77,847,025 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 572 | java | package jvm.classloader;
public class Main {
public Main() {
// TODO Auto-generated constructor stub
}
public static void main(String[] args) {
Class<?> c = null;
MyClassLoader loader = new MyClassLoader();
try {
c = loader.loadClass("java7.cookbook.ClassA");
System.out.println();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
try {
System.out.println(c.getName() + " " + c.newInstance().getClass().getClassLoader());
} catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
}
}
| [
"sumitkkawatra@gmail.com"
] | sumitkkawatra@gmail.com |
62ac4aea6882c5da5487200aaa318fe4bd3c342f | 2d8ae5c968f99ccccad11e882cc62e4a6211738b | /kodilla-basic-tests/src/main/java/com/kodilla/abstracts/homework/Driver.java | 1291b70ad87ac22ebc2118724f89b48976dde88a | [] | no_license | Syriusz13/agnieszka_berkowska1-kodilla_tester | 1e528abb1c14402d9efdca5dafd2fc36729e3e76 | 86cd3b8ea6810b9628b02f02742af116bda47b3f | refs/heads/master | 2021-01-06T19:12:32.577458 | 2020-06-05T12:51:50 | 2020-06-05T12:51:50 | 241,454,525 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 138 | java | package com.kodilla.abstracts.homework;
public class Driver extends Job{
public Driver() {
super(6200, "trucking");
}
}
| [
"berkowskaagnieszka@gmail.com"
] | berkowskaagnieszka@gmail.com |
1fe8bde434610ff387265c997f224ada4d53e307 | 85423ae7916ae5a6f26fac22e8f83dd54f589e0d | /dcat-suite-cli/src/main/java/org/aksw/dcat_suite/cli/cmd/catalog/CmdMixinCatalogEngine.java | b61e5f944c6253bdb72ab5a43c18783152b59fd5 | [
"Apache-2.0"
] | permissive | SmartDataAnalytics/dcat-suite | e4c8b411170332fedf453fa5fc34e102ca0646ae | 9f87eb846955a738da135be00007298c640ddad3 | refs/heads/develop | 2023-04-15T04:12:09.494005 | 2023-04-01T22:19:31 | 2023-04-01T22:19:31 | 127,953,651 | 11 | 0 | Apache-2.0 | 2023-03-06T15:51:55 | 2018-04-03T18:46:46 | Java | UTF-8 | Java | false | false | 1,358 | java | package org.aksw.dcat_suite.cli.cmd.catalog;
import org.aksw.jenax.arq.datasource.RdfDataSourceSpecBasicFromMap;
import org.aksw.jenax.arq.datasource.RdfDataSourceSpecBasicMutable;
import picocli.CommandLine.Option;
public class CmdMixinCatalogEngine
extends RdfDataSourceSpecBasicFromMap
{
@Option(names = { "--cat-engine" }, description="SPARQL Engine. Supported: 'mem', 'tdb2', 'difs'")
@Override
public RdfDataSourceSpecBasicMutable setEngine(String engine) { return super.setEngine(engine); }
@Option(names = { "--cat-fs" }, description="FileSystem URL against which to interpret --db-location (e.g. for webdav, leave empty for local fs).")
@Override
public RdfDataSourceSpecBasicMutable setLocationContext(String locationContext) { return super.setLocationContext(locationContext); }
@Option(names = { "--cat-loc" }, description="Access location to the database; interpreted w.r.t. engine. May be an URL, directory or file.")
@Override
public RdfDataSourceSpecBasicMutable setLocation(String location) { return super.setLocation(location); }
@Option(names = { "--cat-loader" }, description="Wrap a datasource's default loading strategy with a different one. Supported values: sansa")
@Override
public RdfDataSourceSpecBasicMutable setLoader(String loader) {return super.setLoader(loader); }
}
| [
"RavenArkadon@googlemail.com"
] | RavenArkadon@googlemail.com |
efc14a3a0e23062229c2893f473085a883342475 | 8c9d57005136cbb03550c2016d6bdc1472f89e0c | /src/com/github/programmeerpiet1/scavangerhunt/assignments/domain/Piet.java | dabd9c7d6c92bd63352e96654ef21ac9467be1bc | [] | no_license | programmeerpiet1/scavanger-hunt-assignments | e54d6b92c5458150045b9d532526faedebdcaae1 | a25b1160b4269359aaac206ba9a1520d4456db52 | refs/heads/master | 2023-01-21T11:16:17.287680 | 2020-12-04T15:54:26 | 2020-12-04T15:54:26 | 318,000,656 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,321 | java | package com.github.programmeerpiet1.scavangerhunt.assignments.domain;
public class Piet {
private final String name;
private final int age;
private final Gender gender;
public Piet(final String name, final int age, final Gender gender) {
this.name = name;
this.age = age;
this.gender = gender;
}
public String getName() {
return name;
}
public String getFullName() {
return name + "piet";
}
public int getAge() {
return age;
}
public Gender getGender() {
return gender;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Piet piet = (Piet) o;
if (age != piet.age) return false;
if (!name.equals(piet.name)) return false;
return gender == piet.gender;
}
@Override
public int hashCode() {
int result = name.hashCode();
result = 31 * result + age;
result = 31 * result + gender.hashCode();
return result;
}
@Override
public String toString() {
return "Piet{" +
"name='" + name + '\'' +
", age=" + age +
", gender=" + gender +
'}';
}
}
| [
"programmeerpiet1@gmail.com"
] | programmeerpiet1@gmail.com |
9ea3f761dd72977348b66a14de8366c6df4e58de | 4f4ddc396fa1dfc874780895ca9b8ee4f7714222 | /src/java/com/gensym/classes/modules/jgidemo/EventSourceListener.java | bb4cee88f809923ee6add2d4b52337a5a4c66a92 | [] | no_license | UtsavChokshiCNU/GenSym-Test2 | 3214145186d032a6b5a7486003cef40787786ba0 | a48c806df56297019cfcb22862dd64609fdd8711 | refs/heads/master | 2021-01-23T23:14:03.559378 | 2017-09-09T14:20:09 | 2017-09-09T14:20:09 | 102,960,203 | 3 | 5 | null | null | null | null | UTF-8 | Java | false | false | 1,424 | java | /*
* Copyright (C) 1986-2017 Gensym Corporation.
* All Rights Reserved.
*
* EventSourceListener.java
*
* Description: Generated Interface file. Do not edit!
*
* Author: Gensym Corp.
*
* Version: 5.1 Rev. 1
*
* Date: Fri Sep 21 13:49:53 EDT 2007
*
*/
package com.gensym.classes.modules.jgidemo;
import com.gensym.classes.*;
import com.gensym.util.Structure;
import com.gensym.util.Sequence;
import com.gensym.util.Symbol;
import com.gensym.util.symbol.SystemAttributeSymbols;
import com.gensym.jgi.*;
import com.gensym.classes.Object;
public interface EventSourceListener extends com.gensym.classes.modules.g2evliss.G2EventListener {
public static final Symbol EVENT_SOURCE_LISTENER_ = Symbol.intern ("EVENT-SOURCE-LISTENER");
static final Symbol g2ClassName = EVENT_SOURCE_LISTENER_;
static final Symbol[] classInheritancePath = new Symbol[] {EVENT_SOURCE_LISTENER_, G2_EVENT_LISTENER_, OBJECT_, ITEM_, ENTITY_, BLOCK_, KB_FRAME_, SYSTEM_ITEM_, ROOT_};
static final Symbol[] staticAttributes = new Symbol[] {};
/**
* Auto Generated method for G2 Method
* EVENT-SOURCE-LISTENER::AN-EVENT
* @exception G2AccessException if there are any communication problems
* (this:CLASS EVENT-SOURCE-LISTENER,arg1:CLASS EVENT-SOURCE-EVENT) = ()
*/
public void anEvent(com.gensym.classes.modules.jgidemo.EventSourceEvent arg1) throws G2AccessException;
}
| [
"utsavchokshi@Utsavs-MacBook-Pro.local"
] | utsavchokshi@Utsavs-MacBook-Pro.local |
818b6f1827319a87922869a46faca8cfc4c36ad8 | 62c9c4de6a80b6267aea4d323be7b451c2f33d68 | /app/src/main/java/com/yang/net2request/getRosterJob/NTGetRosterJobReqBean.java | c4663ceda5302cfd95e2e91b3df1cc7148581fa0 | [] | no_license | ullambana0715/Transport | 65cb1bfdb5103f6b97b015b0612d17b2fa6d6a7b | 124dfdf54d14f1e3f17fb67eacdc7986fc30ea50 | refs/heads/master | 2021-05-12T17:19:39.183629 | 2019-01-11T09:33:31 | 2019-01-11T09:33:31 | 117,041,833 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 335 | java | package com.yang.net2request.getRosterJob;
import com.yang.net2request.NTReqBean;
/**
* Created by Administrator on 2016/9/9.
*/
public class NTGetRosterJobReqBean extends NTReqBean {
int jobId;
public int getJobId() {
return jobId;
}
public void setJobId(int jobId) {
this.jobId = jobId;
}
}
| [
"jinyu_yang@ssic.cn"
] | jinyu_yang@ssic.cn |
4b4a444ca3e3f2568f840f1ffb9cdbd7c3e8fe3d | b2d404847316d1267617f8913c5dabc34045ad26 | /java_sample_cplex/java_sample_cplex/java/LPex6.java | fff0cacf406bf7a03af7487de4d7345f1e54e041 | [] | no_license | Maxime63/ESDI | 359e685ba8d566938c809315e68c638102ff1d46 | c6cf3126f0257cc368480889b9a9cc0f3b9b364b | refs/heads/master | 2016-09-01T22:17:40.457191 | 2015-01-15T16:37:11 | 2015-01-15T16:37:11 | 26,681,146 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,502 | java | /* --------------------------------------------------------------------------
* File: LPex6.java
* Version 12.4
* --------------------------------------------------------------------------
* Licensed Materials - Property of IBM
* 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55
* Copyright IBM Corporation 2001, 2011. All Rights Reserved.
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with
* IBM Corp.
* --------------------------------------------------------------------------
*
* LPex6.java - Illustrates that optimal basis can be copied and
* used to start an optimization.
*/
import ilog.concert.*;
import ilog.cplex.*;
public class LPex6 {
public static void main(String[] args) {
try {
IloCplex cplex = new IloCplex();
IloNumVar[][] var = new IloNumVar[1][];
IloRange[][] rng = new IloRange[1][];
populateByRow(cplex, var, rng);
IloCplex.BasisStatus[] cstat = {
IloCplex.BasisStatus.AtUpper,
IloCplex.BasisStatus.Basic,
IloCplex.BasisStatus.Basic
};
IloCplex.BasisStatus[] rstat = {
IloCplex.BasisStatus.AtLower,
IloCplex.BasisStatus.AtLower
};
cplex.setBasisStatuses(var[0], cstat, rng[0], rstat);
if ( cplex.solve() ) {
System.out.println("Solution status = " + cplex.getStatus());
System.out.println("Solution value = " + cplex.getObjValue());
System.out.println("Iteration count = " + cplex.getNiterations64());
double[] x = cplex.getValues(var[0]);
double[] dj = cplex.getReducedCosts(var[0]);
double[] pi = cplex.getDuals(rng[0]);
double[] slack = cplex.getSlacks(rng[0]);
int nvars = x.length;
for (int j = 0; j < nvars; ++j) {
System.out.println("Variable " + j +
": Value = " + x[j] +
" Reduced cost = " + dj[j]);
}
int ncons = slack.length;
for (int i = 0; i < ncons; ++i) {
System.out.println("Constraint " + i +
": Slack = " + slack[i] +
" Pi = " + pi[i]);
}
}
cplex.end();
}
catch (IloException exc) {
System.err.println("Concert exception '" + exc + "' caught");
}
}
static void populateByRow(IloMPModeler model,
IloNumVar[][] var,
IloRange[][] rng) throws IloException {
double[] lb = {0.0, 0.0, 0.0};
double[] ub = {40.0, Double.MAX_VALUE, Double.MAX_VALUE};
var[0] = model.numVarArray(3, lb, ub);
double[] objvals = {1.0, 2.0, 3.0};
model.addMaximize(model.scalProd(var[0], objvals));
rng[0] = new IloRange[2];
rng[0][0] = model.addLe(model.sum(model.prod(-1.0, var[0][0]),
model.prod( 1.0, var[0][1]),
model.prod( 1.0, var[0][2])), 20.0);
rng[0][1] = model.addLe(model.sum(model.prod( 1.0, var[0][0]),
model.prod(-3.0, var[0][1]),
model.prod( 1.0, var[0][2])), 30.0);
}
}
| [
"maxime.avillach@hotmail.com"
] | maxime.avillach@hotmail.com |
3804819cb1e1d7cc14704cc089c6b46cfe130f19 | 1416d626491ad1df8b42e847738140e991dd3a58 | /common_base/src/main/java/wanandroid/li/com/common_base/utils/LogUtils.java | 2ce84d65a5e388ac7831e5abdc066c0925e4ca3f | [] | no_license | liguangze/wanAndroid | cefeb5ece36acae5c666598d448120d734eb3fc6 | 9aa460defdd179b83b1bc4bd25bf0c81031a377a | refs/heads/master | 2020-04-30T14:43:47.669870 | 2019-11-07T08:37:11 | 2019-11-07T08:37:11 | 176,900,307 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,794 | java | /*
* Copyright 2018 location
*
* 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 wanandroid.li.com.common_base.utils;
import android.text.TextUtils;
import android.util.Log;
/**
* 日志打印类
*/
public class LogUtils {
private static final int LIVE_V = Log.VERBOSE;
private static final int LIVE_D = Log.DEBUG;
private static final int LIVE_I = Log.INFO;
private static final int LIVE_W = Log.WARN;
private static final int LIVE_E = Log.ERROR;
private static boolean islogcat = true;
private static boolean isPrintClassName = true;
private static boolean isPrintLine = true;
public static void e(String tag, String message) {
log(LIVE_E, tag, message);
}
public static void e(String message) {
log(LIVE_E, null, message);
}
public static void v(String tag, String message) {
log(LIVE_V, tag, message);
}
public static void v(String message) {
log(LIVE_V, null, message);
}
public static void d(String tag, String message) {
log(LIVE_D, tag, message);
}
public static void d(String message) {
log(LIVE_D, null, message);
}
public static void i(String tag, String message) {
log(LIVE_I, tag, message);
}
public static void i(String message) {
log(LIVE_I, null, message);
}
public static void w(String tag, String message) {
log(LIVE_W, tag, message);
}
public static void w(String message) {
log(LIVE_W, null, message);
}
private static void log(int live, String tag, String message) {
if (!islogcat) return;
if (TextUtils.isEmpty(tag)) tag = getClassName();
if (isPrintLine) Log.println(live, tag, "--------------------------------------------");
if (isPrintClassName) Log.println(live, tag, callMethodAndLine());
Log.println(live, tag, message);
if (isPrintLine) Log.println(live, tag, "--------------------------------------------");
}
private static String getClassName() {
String result;
StackTraceElement thisMethodStack = (new Exception()).getStackTrace()[3];
result = thisMethodStack.getClassName();
int lastIndex = result.lastIndexOf(".");
result = result.substring(lastIndex + 1, result.length());
return result;
}
private static String callMethodAndLine() {
String result = "at .";
StackTraceElement thisMethodStack = (new Exception()).getStackTrace()[3];
// result += thisMethodStack.getClassName().lastIndexOf(".",1) + ".";
result += thisMethodStack.getMethodName();
result += "(" + thisMethodStack.getFileName();
result += ":" + thisMethodStack.getLineNumber() + ") ";
return result;
}
public static class LogUtilsBuilder {
public LogUtilsBuilder setisLogcat(boolean isLocat) {
LogUtils.islogcat = isLocat;
return this;
}
public LogUtilsBuilder setPrintLine(boolean isLine) {
LogUtils.isPrintLine = isLine;
return this;
}
public LogUtilsBuilder setPrintClass(boolean isclass) {
LogUtils.isPrintClassName = isclass;
return this;
}
}
}
| [
"liguangze@1rock.net"
] | liguangze@1rock.net |
28e6c9a992d2f8b6c57e1cdf93123424fa15627c | 84357e17fcbe626a3b5a6950cda3ef6c9993c784 | /hibernate_one_to_one/src/main/java/org/config/HibernateUtill.java | 9ed264b46dee2d01a6e375d99633942e7fd0616d | [] | no_license | mkindika/blog_repo | 84f8f396290ba042b5b22ff595486034c194acd8 | 3c5f5d5d8a36776f75d2d02a3dbb9364a48aa530 | refs/heads/master | 2021-07-13T11:55:02.908892 | 2017-10-13T03:03:34 | 2017-10-13T03:03:34 | 106,771,354 | 0 | 0 | null | 2017-10-13T03:02:01 | 2017-10-13T03:02:01 | null | UTF-8 | Java | false | false | 1,374 | java | package org.config;
import java.util.Properties;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
public class HibernateUtill
{
public static SessionFactory getSessionFactory()
{
Properties prop = new Properties();
prop.setProperty("connection.driver_class", "com.mysql.jdbc.Driver");
prop.setProperty("hibernate.connection.url", "jdbc:mysql://localhost:3306/buddy1");
prop.setProperty("hibernate.connection.username", "root");
prop.setProperty("hibernate.connection.password", "root");
prop.setProperty("hibernate.dialect", "org.hibernate.dialect.MySQLDialect");
prop.setProperty("hibernate.use_sql_comments", "true");
prop.setProperty("hibernate.show_sql", "true");
prop.setProperty("hibernate.format_sql", "true");
prop.setProperty("hibernate.hbm2ddl.auto", "update");
Configuration cfg = new Configuration();
cfg.addAnnotatedClass(org.entity.StudentDetails.class);
cfg.addAnnotatedClass(org.entity.Student.class);
cfg.setProperties(prop);
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder()
.applySettings(cfg.getProperties()).build();
return cfg.buildSessionFactory(serviceRegistry);
}
}
| [
"codedeal.blog@gmail.com"
] | codedeal.blog@gmail.com |
bbc996f9ffa4733d86c353d49206565709c95fd5 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/35/35_e6ee6da3b9b4d0b8cdaa1b0e083a11a0cfafd782/CBayesClassifier/35_e6ee6da3b9b4d0b8cdaa1b0e083a11a0cfafd782_CBayesClassifier_t.java | bc3371cb945edaf8581eb5f50354f6128f332ddc | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 5,124 | java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.mahout.classifier.cbayes;
import org.apache.hadoop.util.PriorityQueue;
import org.apache.mahout.classifier.ClassifierResult;
import org.apache.mahout.common.Classifier;
import org.apache.mahout.common.Model;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Deque;
/**
* Classifies documents based on a {@link CBayesModel}.
*/
public class CBayesClassifier implements Classifier{
/**
* Classify the document and return the top <code>numResults</code>
*
* @param model The model
* @param document The document to classify
* @param defaultCategory The default category to assign
* @param numResults The maximum number of results to return, ranked by score.
* Ties are broken by comparing the category
* @return A Collection of {@link org.apache.mahout.classifier.ClassifierResult}s.
*/
@Override
public Collection<ClassifierResult> classify(Model model, String[] document, String defaultCategory, int numResults) {
Collection<String> categories = model.getLabels();
PriorityQueue<ClassifierResult> pq = new ClassifierResultPriorityQueue(numResults);
ClassifierResult tmp;
for (String category : categories){
double prob = documentWeight(model, category, document);
if (prob < 0.0) {
tmp = new ClassifierResult(category, prob);
pq.insert(tmp);
}
}
Deque<ClassifierResult> result = new LinkedList<ClassifierResult>();
while ((tmp = pq.pop()) != null) {
result.addLast(tmp);
}
if (result.isEmpty()){
result.add(new ClassifierResult(defaultCategory, 0));
}
return result;
}
/**
* Classify the document according to the {@link org.apache.mahout.common.Model}
*
* @param model The trained {@link org.apache.mahout.common.Model}
* @param document The document to classify
* @param defaultCategory The default category to assign if one cannot be determined
* @return The single best category
*/
@Override
public ClassifierResult classify(Model model, String[] document, String defaultCategory) {
ClassifierResult result = new ClassifierResult(defaultCategory);
double min = 0.0;
Collection<String> categories = model.getLabels();
for (String category : categories) {
double prob = documentWeight(model, category, document);
if (prob < min) {
min = prob;
result.setLabel(category);
}
}
result.setScore(min);
return result;
}
/**
* Calculate the document weight as the multiplication of the
* {@link Model#featureWeight(String, String)} for each word given the label
*
* @param model The {@link org.apache.mahout.common.Model}
* @param label The label to calculate the probability of
* @param document The document
* @return The probability
* @see Model#featureWeight(String, String)
*/
@Override
public double documentWeight(Model model, String label, String[] document) {
Map<String, Integer[]> wordList = new HashMap<String, Integer[]>(1000);
for (String word : document) {
Integer [] count = wordList.get(word);
if (count == null) {
count = new Integer[1];
count[0] = 0;
wordList.put(word, count);
}
count[0]++;
}
double result = 0.0;
for (Map.Entry<String, Integer[]> entry : wordList.entrySet()) {
String word = entry.getKey();
int count = entry.getValue()[0];
result += count * model.featureWeight(label, word);
}
return result;
}
private static class ClassifierResultPriorityQueue extends PriorityQueue<ClassifierResult> {
private ClassifierResultPriorityQueue(int numResults) {
initialize(numResults);
}
@Override
protected boolean lessThan(Object a, Object b) {
ClassifierResult cr1 = (ClassifierResult) a;
ClassifierResult cr2 = (ClassifierResult) b;
double score1 = cr1.getScore();
double score2 = cr2.getScore();
return score1 == score2 ? cr1.getLabel().compareTo(cr2.getLabel()) < 0 : score1 < score2;
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
ca171fec168404228e2a610d96b9bcbc9e871acc | 3e94c451ef0fefa1f2d3c6e7e7fcd38d1626998b | /classwork/StatelessUnitTesting/src/test/java/com/mm/unittesting/eXERCISEa.java | 8d70a620821ae2f79fa1d48c9f53b69b512909b1 | [] | no_license | The-Software-Guild/git---github-mmelody588 | a607c5912fc3dadc283f7830e233a3020be68dda | fa7ee823d8fc9fb537ae089ccd8befbb22b16eba | refs/heads/main | 2023-07-06T15:29:35.224630 | 2021-08-12T20:24:18 | 2021-08-12T20:24:18 | 385,296,055 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,251 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mm.unittesting;
import static com.mm.unittesting.arrays.ArrayExerciseA.maxOfArray;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class eXERCISEa {
/*
TEST CASES:
* Example Results:
* maxOfArray( {1} ) -> 1
* maxOfArray( {3,4,5} ) -> 5
* maxOfArray( {-9000, -700, -50, -3} ) -> -3
*
*/
public eXERCISEa(){
}
@Test
public void testMaxSingleArray(){
int[] test1 = {1};
int result = maxOfArray(test1);
assertEquals(1, result,"This should be 1");
}
@Test
public void testMaxAllPositiveNums(){
int[] test2 = {3, 4, 5};
int result = maxOfArray(test2);
assertEquals(5, result,"This should be 5");
}
@Test
public void testMaxAllNegativeNums(){
int[] test3 = {-9000, -700, -50, -3};
int result = maxOfArray(test3);
assertEquals(-3, result,"This should be -3");
}
}
| [
"mmelody588@gmail.com"
] | mmelody588@gmail.com |
42ef11bdfba6dac24775b66ce8b827fbc302c89e | baf44f9e995c47b6baaa08de2e88c1e705baf8bb | /420-B20 (Programming II)/Labs/pDumaresq_B20_L04_Project/src/videoStoreSystem/Movie.java | 7a4bb4b42d9d6a50ce5c905b0459a17d2f84a93b | [] | no_license | nixin72/HC-Semester-2 | a78885ecec0c4bb2d03ad62f292f1f510cbea091 | b42dcd4420893478e7a22863095f1227a2d68c86 | refs/heads/master | 2021-10-26T20:16:29.062884 | 2019-04-14T05:07:14 | 2019-04-14T05:07:14 | 181,262,744 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,908 | java | package videoStoreSystem;
public class Movie extends Product
{
private String director;
public Movie()
{
super();
productNumber = "M" + productNumber;
director = "Unknown";
} // Movie()
public Movie(String t)
{
super(t);
productNumber = "M" + productNumber;
} // Movie(String)
public Movie(String t, int year, String c, String f)
{
super(t, year, c, f);
productNumber = "M" + productNumber;
} // Movie(String, int, String, String)
public Movie(String t, int year, String c, String f, String d)
{
super(t, year, c, f);
productNumber = "M" + productNumber;
setDirector(d);
} // Movie(String, int, String, String, String)
public void setDirector(String d)
{
director = d;
} // setDirector()
public String getDirector()
{
return director;
} // getDirector()
public void setCategoryCode(String categoryName)
{
if (categoryName.equalsIgnoreCase("Family"))
categoryCode = 1;
else
if (categoryName.equalsIgnoreCase("Action"))
categoryCode = 2;
else
if (categoryName.equalsIgnoreCase("Comedy"))
categoryCode = 3;
else
if (categoryName.equalsIgnoreCase("Western"))
categoryCode = 4;
else
if (categoryName.equalsIgnoreCase("Drama"))
categoryCode = 5;
else
if (categoryName.equalsIgnoreCase("Horror"))
categoryCode = 6;
else
if (categoryName.equalsIgnoreCase("Sci-fi"))
categoryCode = 7;
else
categoryCode = 0;
} //setCategoryCode(String)
@Override
public void setFormatCode(String formatName)
{
// TODO Auto-generated method stub
}
@Override
public String getFormat()
{
// TODO Auto-generated method stub
return null;
}
@Override
public String getCategory()
{
// TODO Auto-generated method stub
return null;
}
} // Movie class
| [
"phdumaresq@gmail.com"
] | phdumaresq@gmail.com |
3332688c9985ac99049c65fde29e6ba0a5c62ea5 | 26436ff3addc873d6ac30de8369f0dbf1faf1dac | /app/src/main/java/com/example/administrator/myapplication/Main2Activity.java | b142cfd103c6b44d762fd5dc3405401e1c0295f5 | [] | no_license | ppyJacK/UnitTest | 1a383bf823f343ed0421a775db71b5af99cd9ca4 | 9d20d1272e94655d8c52a95851f0f042236d50fb | refs/heads/master | 2020-05-03T03:27:26.128533 | 2019-03-29T12:08:51 | 2019-03-29T12:08:51 | 178,398,486 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 454 | java | package com.example.administrator.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;
public class Main2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
Toast.makeText(this,"Test finished",Toast.LENGTH_LONG).show();
}
}
| [
"534256893@qq.com"
] | 534256893@qq.com |
eaf5b3f1979a9bb6bbe1f7d2edc024e8276ef026 | 1d775442bddae72b5c290c3486f52e78ef41c1f5 | /Code/TippersEdgeFilter/src/main/java/edu/uci/cs237/tippersedge/cameras/CameraRestClient.java | f7630d8d273103c4d9504e8019e6a7721b5a5a32 | [] | no_license | jvmk/uci-cs237 | dbcf807a6664d288bbc630af16ebb8da842312e7 | 2e3ace5bcb86af8b19121b5806df002f9a7dcc14 | refs/heads/master | 2020-04-02T19:49:36.315464 | 2018-10-25T23:19:56 | 2018-10-25T23:19:56 | 154,747,801 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,460 | java | package edu.uci.cs237.tippersedge.cameras;
import edu.uci.cs237.tippersedge.SampleProvider;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
import java.awt.image.BufferedImage;
import java.io.*;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.time.Instant;
/**
* Concrete implementation of {@link ImageSupplier} targeting a real REST endpoint.
*
* @author Janus Varmarken {@literal <jvarmark@uci.edu>}.
*/
public class CameraRestClient implements ImageSupplier, SampleProvider<String> {
/**
* Cameras require HTTP Basic authentication, so an authenticator must be provided.
*/
private final Authenticator mAuthenticator = new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(CameraConfig.getCameraUsername(), CameraConfig.getCameraPassword().toCharArray());
}
};
public CameraRestClient() {
// Set system default authenticator.
Authenticator.setDefault(mAuthenticator);
}
@Override
public BufferedImage downloadImage(String webTargetUrl) throws IOException {
throw new UnsupportedOperationException("Work in progress, not yet implemented");
}
@Override
public boolean downloadAndStoreImage(String webTargetUrl, String fileName) throws IOException {
Client restClient = ClientBuilder.newClient();
Response response = restClient.target(webTargetUrl).request("image/jpeg").get();
// Create directories on filepath if they do not already exist.
new File(fileName).getParentFile().mkdirs();
// Use try-with-resource to automatically close streams upon leaving try block.
try (BufferedInputStream input = new BufferedInputStream(response.readEntity(InputStream.class));
BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(fileName))) {
byte[] buffer = new byte[8192];
int readBytes;
while ((readBytes = input.read(buffer)) != -1) {
output.write(buffer, 0, readBytes);
}
output.flush();
return true;
} catch (IOException ioe) {
ioe.printStackTrace();
return false;
}
}
@Override
public String sample() {
/*
* Put images in specified folder.
* An image is named using the pattern 'imgXXX.jpg' where XXX is the current system epoch (millisecond
* granularity). As such, if this method is called multiple times within a single millisecond, only the image
* fetched as part of the last call will be persisted as earlier images will be overwritten by that image.
* However, this will likely never be an issue as the network delay incurred by contacting the camera will
* almost certainly be greater than a single millisecond.
*/
String imgFilename = String.format("%s/img%d.jpg",
CameraConfig.getCameraOutputDirectory(), Instant.now().toEpochMilli());
boolean imgDownloaded;
try {
imgDownloaded = downloadAndStoreImage(CameraConfig.getCameraUrl(), imgFilename);
return imgDownloaded ? imgFilename : null;
} catch (IOException exc) {
exc.printStackTrace();
return null;
}
}
} | [
"varmarken@gmail.com"
] | varmarken@gmail.com |
39b0b4b5b4380a412795df1c273b51cb3ad21000 | ed3cb95dcc590e98d09117ea0b4768df18e8f99e | /project_1_1/src/b/j/h/j/Calc_1_1_19791.java | 5648be8c0af2c35d94ef10101f1dd873b830f2ac | [] | no_license | chalstrick/bigRepo1 | ac7fd5785d475b3c38f1328e370ba9a85a751cff | dad1852eef66fcec200df10083959c674fdcc55d | refs/heads/master | 2016-08-11T17:59:16.079541 | 2015-12-18T14:26:49 | 2015-12-18T14:26:49 | 48,244,030 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 134 | java | package b.j.h.j;
public class Calc_1_1_19791 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
| [
"christian.halstrick@sap.com"
] | christian.halstrick@sap.com |
84f2ea1247f676d864259357d7a527e0a1bbb137 | 55d87ea5c179ac9234c4ed710d98e44ce737aaec | /src/com/toexplore/interviewquestions/reverseString.java | 3a0e5483af1a096d90a66aa2ad4c0998ba088114 | [] | no_license | Toexplore/MyJava | 36b9ae0bcb37738f591b423593cc1a8d57af27ec | 554d77c2b480d6e6357ace365f6c2d43b2afe967 | refs/heads/master | 2020-04-15T06:57:26.085524 | 2015-04-15T03:37:07 | 2015-04-15T03:37:07 | 32,297,094 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 711 | java | /**
* Copyleft (C) 2014 ToExplore
*
* Email: wangf_solar@163.com
* QQ: 806241138
* WeiBo: ToExplore
* wechat: bigMufasa
*/
package com.toexplore.interviewquestions;
import java.util.Collection;
import java.util.Collections;
/**
* 1、翻转字符串,I am Jack --> Jack am I
*
*/
public class reverseString
{
public static void main(String[] args)
{
new reverseString().reverse("I am Jack", " ");
}
private static void reverse(String s, String separator)
{
String[] splitStrings = s.split(separator);
for (int i = splitStrings.length - 1; i >= 0; i--)
{
System.out.printf("%s ", splitStrings[i]);
}
}
}
| [
"wangf_solar@outlook.com"
] | wangf_solar@outlook.com |
ede88d353fe089c46bc2a685b38c24db774a85b6 | 70b95dd3086168f2d16055cc93ae7b3338472eb3 | /src/main/java/com/feisystems/bham/domain/AbstractProvider.java | 85269b7691b9b5e5260b87bc61e389ada9ae0887 | [] | no_license | utishrajk/cds | a15f0279a46d87cbfef481cf43a45bf7e96fda25 | 1fae7aa09f9ec49ad567065eb908a04dc66f1f4b | refs/heads/master | 2016-09-06T16:29:21.013976 | 2015-02-16T20:17:33 | 2015-02-16T20:17:33 | 30,886,183 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,170 | java | package com.feisystems.bham.domain;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Version;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.feisystems.bham.domain.reference.ProviderEntityType;
@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn
public abstract class AbstractProvider {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long id;
@Version
@Column(name = "version")
private Integer version;
/**
*/
@Size(min = 1, max = 30)
@NotNull
private String npi;
/**
*/
@Size(max = 30)
private String orgName;
/**
*/
@Enumerated
private ProviderEntityType providerEntityType;
/**
*/
@NotNull
@Size(max = 30)
private String firstLineMailingAddress;
/**
*/
@Size(max = 30)
private String secondLineMailingAddress;
/**
*/
@Size(max = 30)
@NotNull
private String mailingAddressCityName;
/**
*/
@Size(max = 30)
private String mailingAddressStateName;
/**
*/
@NotNull
@Size(max = 30)
private String mailingAddressPostalCode;
/**
*/
@NotNull
@Size(max = 30)
private String mailingAddressCountryCode;
/**
*/
@Size(max = 30)
private String mailingAddressTelephoneNumber;
/**
*/
@Size(max = 30)
private String mailingAddressFaxNumber;
/**
*/
@Size(max = 30)
private String firstLinePracticeLocationAddress;
/**
*/
@Size(max = 30)
private String secondLinePracticeLocationAddress;
/**
*/
@Size(max = 30)
private String practiceLocationAddressCityName;
/**
*/
@Size(max = 30)
private String practiceLocationAddressStateName;
/**
*/
@Size(max = 30)
private String practiceLocationAddressPostalCode;
/**
*/
@Size(max = 30)
private String practiceLocationAddressCountryCode;
@Pattern(regexp = "[a-zA-Z0-9.]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+")
@Column(unique=true)
private String email;
@Pattern(regexp = "^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]")
private String website;
/**
*/
@Size(max = 30)
private String practiceLocationAddressTelephoneNumber;
/**
*/
@Size(max = 30)
private String practiceLocationAddressFaxNumber;
/**
*/
@Size(max = 30)
private String enumerationDate;
/**
*/
@Size(max = 30)
private String lastUpdateDate;
@Size(max = 30)
private String nonUSState;
public String toString() {
return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getOrgName() {
return this.orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public Integer getVersion() {
return this.version;
}
public void setVersion(Integer version) {
this.version = version;
}
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getNpi() {
return this.npi;
}
public void setNpi(String npi) {
this.npi = npi;
}
public ProviderEntityType getProviderEntityType() {
return this.providerEntityType;
}
public void setProviderEntityType(ProviderEntityType providerEntityType) {
this.providerEntityType = providerEntityType;
}
public String getFirstLineMailingAddress() {
return this.firstLineMailingAddress;
}
public void setFirstLineMailingAddress(String firstLineMailingAddress) {
this.firstLineMailingAddress = firstLineMailingAddress;
}
public String getSecondLineMailingAddress() {
return this.secondLineMailingAddress;
}
public void setSecondLineMailingAddress(String secondLineMailingAddress) {
this.secondLineMailingAddress = secondLineMailingAddress;
}
public String getMailingAddressCityName() {
return this.mailingAddressCityName;
}
public void setMailingAddressCityName(String mailingAddressCityName) {
this.mailingAddressCityName = mailingAddressCityName;
}
public String getMailingAddressStateName() {
return this.mailingAddressStateName;
}
public void setMailingAddressStateName(String mailingAddressStateName) {
this.mailingAddressStateName = mailingAddressStateName;
}
public String getMailingAddressPostalCode() {
return this.mailingAddressPostalCode;
}
public void setMailingAddressPostalCode(String mailingAddressPostalCode) {
this.mailingAddressPostalCode = mailingAddressPostalCode;
}
public String getMailingAddressCountryCode() {
return this.mailingAddressCountryCode;
}
public void setMailingAddressCountryCode(String mailingAddressCountryCode) {
this.mailingAddressCountryCode = mailingAddressCountryCode;
}
public String getMailingAddressTelephoneNumber() {
return this.mailingAddressTelephoneNumber;
}
public void setMailingAddressTelephoneNumber(String mailingAddressTelephoneNumber) {
this.mailingAddressTelephoneNumber = mailingAddressTelephoneNumber;
}
public String getMailingAddressFaxNumber() {
return this.mailingAddressFaxNumber;
}
public void setMailingAddressFaxNumber(String mailingAddressFaxNumber) {
this.mailingAddressFaxNumber = mailingAddressFaxNumber;
}
public String getFirstLinePracticeLocationAddress() {
return this.firstLinePracticeLocationAddress;
}
public void setFirstLinePracticeLocationAddress(String firstLinePracticeLocationAddress) {
this.firstLinePracticeLocationAddress = firstLinePracticeLocationAddress;
}
public String getSecondLinePracticeLocationAddress() {
return this.secondLinePracticeLocationAddress;
}
public void setSecondLinePracticeLocationAddress(String secondLinePracticeLocationAddress) {
this.secondLinePracticeLocationAddress = secondLinePracticeLocationAddress;
}
public String getPracticeLocationAddressCityName() {
return this.practiceLocationAddressCityName;
}
public void setPracticeLocationAddressCityName(String practiceLocationAddressCityName) {
this.practiceLocationAddressCityName = practiceLocationAddressCityName;
}
public String getPracticeLocationAddressStateName() {
return this.practiceLocationAddressStateName;
}
public void setPracticeLocationAddressStateName(String practiceLocationAddressStateName) {
this.practiceLocationAddressStateName = practiceLocationAddressStateName;
}
public String getPracticeLocationAddressPostalCode() {
return this.practiceLocationAddressPostalCode;
}
public void setPracticeLocationAddressPostalCode(String practiceLocationAddressPostalCode) {
this.practiceLocationAddressPostalCode = practiceLocationAddressPostalCode;
}
public String getPracticeLocationAddressCountryCode() {
return this.practiceLocationAddressCountryCode;
}
public void setPracticeLocationAddressCountryCode(String practiceLocationAddressCountryCode) {
this.practiceLocationAddressCountryCode = practiceLocationAddressCountryCode;
}
public String getPracticeLocationAddressTelephoneNumber() {
return this.practiceLocationAddressTelephoneNumber;
}
public void setPracticeLocationAddressTelephoneNumber(String practiceLocationAddressTelephoneNumber) {
this.practiceLocationAddressTelephoneNumber = practiceLocationAddressTelephoneNumber;
}
public String getPracticeLocationAddressFaxNumber() {
return this.practiceLocationAddressFaxNumber;
}
public void setPracticeLocationAddressFaxNumber(String practiceLocationAddressFaxNumber) {
this.practiceLocationAddressFaxNumber = practiceLocationAddressFaxNumber;
}
public String getEnumerationDate() {
return this.enumerationDate;
}
public void setEnumerationDate(String enumerationDate) {
this.enumerationDate = enumerationDate;
}
public String getLastUpdateDate() {
return this.lastUpdateDate;
}
public void setLastUpdateDate(String lastUpdateDate) {
this.lastUpdateDate = lastUpdateDate;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((email == null) ? 0 : email.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((npi == null) ? 0 : npi.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
AbstractProvider other = (AbstractProvider) obj;
if (email == null) {
if (other.email != null)
return false;
} else if (!email.equals(other.email))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (npi == null) {
if (other.npi != null)
return false;
} else if (!npi.equals(other.npi))
return false;
return true;
}
public String getNonUSState() {
return nonUSState;
}
public void setNonUSState(String nonUSState) {
this.nonUSState = nonUSState;
}
}
| [
"utish.raj@gmail.com"
] | utish.raj@gmail.com |
8ecb22e176097536d7be862fd2ecf1d6ad85ea9b | 3f10689035ef418b1a5ba8714d2f69a855200997 | /src/Exo32.java | fd7d4febb60acf4573797c16fc68ddc09739e21f | [] | no_license | Sykoh-dev/Aglgo | a951e22d849e3179297d532cf9e3ec6aef26c071 | f1120c674c1a2bffafb2d7e37554092b37ffad04 | refs/heads/master | 2023-07-08T04:04:46.974283 | 2021-08-13T08:59:54 | 2021-08-13T08:59:54 | 395,584,537 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,718 | java | import java.util.Random;
import java.util.Scanner;
public class Exo32 {
public static void main(String[] args) {
//exo32-En considérant deux tableaux d'entiers (non triés),
//réalisez un algorithme qui place tous les éléments des deux
//tableaux dans un troisième. Ce dernier doit être trié une fois
//l'algorithme terminé. Notez que le tri doit être fait en même temps
//que la fusion des deux tableaux et pas après.
//Déclaration
int temp = 0, indice=0;
final int TAB1_TAILLE = 4; // nombre d'éléments dans le tableau 1
int[] tab1 = new int[TAB1_TAILLE];
final int TAB2_TAILLE = 4; // nombre d'éléments dans le tableau 2
int[] tab2 = new int[TAB2_TAILLE];
final int TAB3_TAILLE = 8; // nombre d'éléments dans le tableau 3
int[] tab3 = new int[TAB3_TAILLE];
Scanner sc = new Scanner(System.in);
System.out.println("Entrez les valeurs du tableau 1");
//Entrer des valeurs du tableau 1 + insertion dans le tableau 3
for ( int i = 0; i < TAB1_TAILLE; i++) {
tab1[i] = Integer.parseInt(sc.nextLine());
tab3[indice] = tab1[i];
System.out.print("[" + tab1[i] + "]");
indice++;
}
System.out.println("Entrez les valeurs du tableau 2");
//Entrer des valeurs du tableau 2 + insertion dans le tableau 3
for ( int i = 0; i < TAB2_TAILLE; i++) {
tab2[i] = Integer.parseInt(sc.nextLine());
tab3[indice] = tab2[i];
System.out.print("[" + tab2[i] + "]");
indice++;
}
//Triage du tableau 3
for ( int i = 0; i < TAB3_TAILLE-1; i++) {
//Boucle pour comparer les valeurs et les remettres dans l'orde
for ( indice = 1; indice < (TAB3_TAILLE); indice++) {
//Condition ( si I-1 est plus grand que I alors on l'inverse )
if (tab3[indice-1] > tab3[indice]){
temp = tab3[indice - 1];
tab3[indice - 1] = tab3[indice];
tab3[indice] = temp;
}
}
}
//Affichage des tableaux
System.out.println("Tableau 1");
for( int i = 0; i<TAB1_TAILLE;i++) {
System.out.print("[" + tab1[i] + "]");
}
System.out.println("\nTableau 2");
for( int i = 0; i<TAB2_TAILLE;i++) {
System.out.print("[" + tab2[i] + "]");
}
System.out.println("\nTableau 3");
for( int i = 0; i<TAB3_TAILLE;i++) {
System.out.print("[" + tab3[i] + "]");
}
}
}
| [
"jerome.widart@outlook.com"
] | jerome.widart@outlook.com |
29e369cf6e8c2b57f87a17f1448b2f2cef4e349b | 6ac1b7f6ef1542be7b5cc66fd4a5b62a90c1e071 | /src/eu/anastasis/tulliniHelpGest/utils/NextProFormaFunction.java | 85a95df4df9e40e93a9cd828cde25204fe10340d | [] | no_license | andreafrascari/contabilis | 0ed9b8d8ea38ea31c90a07817728b16da3bf1722 | d642688eef73584602d78411b424c3052311b025 | refs/heads/master | 2020-12-24T12:06:34.856428 | 2018-12-21T15:21:11 | 2018-12-21T15:21:11 | 73,070,548 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,744 | java | /**
* Questo file appartiene al progetto Sere-na - www.sere-na.it
*
* @copyright Anastasis Soc. Coop. - www.anastasis.it
*/
package eu.anastasis.tulliniHelpGest.utils;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import eu.anastasis.serena.common.SerenaDate;
import eu.anastasis.serena.exception.SerenaException;
import eu.anastasis.serena.presentation.functions.DefaultFunction;
import eu.anastasis.tulliniHelpGest.serenabeans.tullinihelpgest.MyProForma;
import eu.anastasis.tulliniHelpGest.serenabeans.tullinihelpgest.ProForma;
/**
* Gestore della funzione GET_URL_PARAM per ricavare un parametro dall'URL
* inserita dal client Es.: 🐌FUN_GET_URL_PARAM(param=a,
* pre=_a_ID/_c__system_cms_node/_a_ID/_v_)@
*
* @author mcarnazzo
*/
public class NextProFormaFunction extends DefaultFunction
{
private final static String FUNCTION_NAME = "FUN_NEXT_PROFORMA";
private final static String Competenza_Param = "competenza";
@Override
public String getFunctionName()
{
return FUNCTION_NAME;
}
@Override
public String doMethod(HttpServletRequest request, Map<String, String> params) throws SerenaException
{
String anno_contabile = new Integer(new SerenaDate().getYear()).toString();
final String competenza = retrieveParam(params, Competenza_Param , null);
if (competenza==null)
return MyProForma.getNextNumber(anno_contabile, request).toString();
else if (competenza.equals(ProForma.COMPETENZA__CONTABILIS))
return MyProForma.getNextNumberContabilis(anno_contabile, request).toString();
else if (competenza.equals(ProForma.COMPETENZA__STUDIO))
return MyProForma.getNextNumberStudio(anno_contabile, request).toString();
else return "competenza non riconosciuta";
}
}
| [
"afrascari@gmail.com"
] | afrascari@gmail.com |
2eb8b0145a6295f1ef0ad044e2132cf0337de4f9 | e72267e4c674dc3857dc91db556572534ecf6d29 | /mybatis-3-master/src/test/java/org/apache/ibatis/submitted/xml_external_ref/SameIdPetMapper.java | 89ef663f8859a28a51375ea81de6d1bca6f281dc | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | lydon-GH/mybatis-study | 4be7f279529a33ead3efa9cd79d60cd44d2184a9 | a8a89940bfa6bb790e78e1c28b0c7c0a5d69e491 | refs/heads/main | 2023-07-29T06:55:56.549751 | 2021-09-04T09:08:25 | 2021-09-04T09:08:25 | 403,011,812 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 787 | java | /*
* Copyright ${license.git.copyrightYears} the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ibatis.submitted.xml_external_ref;
public interface SameIdPetMapper {
Pet select(Integer id);
}
| [
"447172979@qq.com"
] | 447172979@qq.com |
c9a403098f163f467aaa843d569e9ba4e4f65eec | deaad87b62b56b3215336457605fc4d6e9efcc73 | /lius_shop_pay_plugin/lius_shop_unionpay_plugin/src/main/java/com/unionpay/acp/sdk/SecureUtil.java | 5f6426b8955c896b41bcde24acd4295a64820e33 | [] | no_license | liusheng1/lius_shop_parent | 115d86f30f468a949c30c8e4a6a767240c578e6f | 9e21f13b8b7524237a49211c4d79c6b83e5eb799 | refs/heads/master | 2022-06-23T14:56:21.529103 | 2019-09-24T14:23:21 | 2019-09-24T14:23:21 | 200,046,159 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,529 | java | /**
*
* Licensed Property to China UnionPay Co., Ltd.
*
* (C) Copyright of China UnionPay Co., Ltd. 2010
* All Rights Reserved.
*
*
* Modification History:
* =============================================================================
* Author Date Description
* ------------ ---------- ---------------------------------------------------
* xshu 2014-05-28 报文加密解密等操作的工具类
* =============================================================================
*/
package com.unionpay.acp.sdk;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.Signature;
import javax.crypto.Cipher;
import org.apache.commons.codec.binary.Base64;
import org.bouncycastle.crypto.digests.SM3Digest;
/**
*
* @ClassName SecureUtil
* @Description acpsdk安全算法工具类
* @date 2016-7-22 下午4:08:32
* 声明:以下代码只是为了方便接入方测试而提供的样例代码,商户可以根据自己需要,按照技术文档编写。该代码仅供参考,不提供编码,性能,规范性等方面的保障
*/
public class SecureUtil {
/**
* 算法常量: SHA1
*/
private static final String ALGORITHM_SHA1 = "SHA-1";
/**
* 算法常量: SHA256
*/
private static final String ALGORITHM_SHA256 = "SHA-256";
/**
* 算法常量:SHA1withRSA
*/
private static final String BC_PROV_ALGORITHM_SHA1RSA = "SHA1withRSA";
/**
* 算法常量:SHA256withRSA
*/
private static final String BC_PROV_ALGORITHM_SHA256RSA = "SHA256withRSA";
/**
* sm3计算后进行16进制转换
*
* @param data
* 待计算的数据
* @param encoding
* 编码
* @return 计算结果
*/
public static String sm3X16Str(String data, String encoding) {
byte[] bytes = sm3(data, encoding);
StringBuilder sm3StrBuff = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
if (Integer.toHexString(0xFF & bytes[i]).length() == 1) {
sm3StrBuff.append("0").append(
Integer.toHexString(0xFF & bytes[i]));
} else {
sm3StrBuff.append(Integer.toHexString(0xFF & bytes[i]));
}
}
return sm3StrBuff.toString();
}
/**
* sha1计算后进行16进制转换
*
* @param data
* 待计算的数据
* @param encoding
* 编码
* @return 计算结果
*/
public static byte[] sha1X16(String data, String encoding) {
byte[] bytes = sha1(data, encoding);
StringBuilder sha1StrBuff = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
if (Integer.toHexString(0xFF & bytes[i]).length() == 1) {
sha1StrBuff.append("0").append(
Integer.toHexString(0xFF & bytes[i]));
} else {
sha1StrBuff.append(Integer.toHexString(0xFF & bytes[i]));
}
}
try {
return sha1StrBuff.toString().getBytes(encoding);
} catch (UnsupportedEncodingException e) {
LogUtil.writeErrorLog(e.getMessage(), e);
return null;
}
}
/**
* sha256计算后进行16进制转换
*
* @param data
* 待计算的数据
* @param encoding
* 编码
* @return 计算结果
*/
public static String sha256X16Str(String data, String encoding) {
byte[] bytes = sha256(data, encoding);
StringBuilder sha256StrBuff = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
if (Integer.toHexString(0xFF & bytes[i]).length() == 1) {
sha256StrBuff.append("0").append(
Integer.toHexString(0xFF & bytes[i]));
} else {
sha256StrBuff.append(Integer.toHexString(0xFF & bytes[i]));
}
}
return sha256StrBuff.toString();
}
/**
* sha256计算后进行16进制转换
*
* @param data
* 待计算的数据
* @param encoding
* 编码
* @return 计算结果
*/
public static byte[] sha256X16(String data, String encoding) {
byte[] bytes = sha256(data, encoding);
StringBuilder sha256StrBuff = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
if (Integer.toHexString(0xFF & bytes[i]).length() == 1) {
sha256StrBuff.append("0").append(
Integer.toHexString(0xFF & bytes[i]));
} else {
sha256StrBuff.append(Integer.toHexString(0xFF & bytes[i]));
}
}
try {
return sha256StrBuff.toString().getBytes(encoding);
} catch (UnsupportedEncodingException e) {
LogUtil.writeErrorLog(e.getMessage(), e);
return null;
}
}
/**
* sha1计算.
*
* @param datas
* 待计算的数据
* @return 计算结果
*/
private static byte[] sha1(byte[] data) {
MessageDigest md = null;
try {
md = MessageDigest.getInstance(ALGORITHM_SHA1);
md.reset();
md.update(data);
return md.digest();
} catch (Exception e) {
LogUtil.writeErrorLog("SHA1计算失败", e);
return null;
}
}
/**
* sha256计算.
*
* @param datas
* 待计算的数据
* @return 计算结果
*/
private static byte[] sha256(byte[] data) {
MessageDigest md = null;
try {
md = MessageDigest.getInstance(ALGORITHM_SHA256);
md.reset();
md.update(data);
return md.digest();
} catch (Exception e) {
LogUtil.writeErrorLog("SHA256计算失败", e);
return null;
}
}
/**
* SM3计算.
*
* @param datas
* 待计算的数据
* @return 计算结果
*/
private static byte[] sm3(byte[] data) {
SM3Digest sm3 = new SM3Digest();
sm3.update(data, 0, data.length);
byte[] result = new byte[sm3.getDigestSize()];
sm3.doFinal(result, 0);
return result;
}
/**
* sha1计算
*
* @param datas
* 待计算的数据
* @param encoding
* 字符集编码
* @return
*/
private static byte[] sha1(String datas, String encoding) {
try {
return sha1(datas.getBytes(encoding));
} catch (UnsupportedEncodingException e) {
LogUtil.writeErrorLog("SHA1计算失败", e);
return null;
}
}
/**
* sha256计算
*
* @param datas
* 待计算的数据
* @param encoding
* 字符集编码
* @return
*/
private static byte[] sha256(String datas, String encoding) {
try {
return sha256(datas.getBytes(encoding));
} catch (UnsupportedEncodingException e) {
LogUtil.writeErrorLog("SHA256计算失败", e);
return null;
}
}
/**
* sm3计算
*
* @param datas
* 待计算的数据
* @param encoding
* 字符集编码
* @return
*/
private static byte[] sm3(String datas, String encoding) {
try {
return sm3(datas.getBytes(encoding));
} catch (UnsupportedEncodingException e) {
LogUtil.writeErrorLog("SM3计算失败", e);
return null;
}
}
/**
*
* @param privateKey
* @param data
* @return
* @throws Exception
*/
public static byte[] signBySoft(PrivateKey privateKey, byte[] data)
throws Exception {
byte[] result = null;
Signature st = Signature.getInstance(BC_PROV_ALGORITHM_SHA1RSA, "BC");
st.initSign(privateKey);
st.update(data);
result = st.sign();
return result;
}
/**
* @param privateKey
* @param data
* @return
* @throws Exception
*/
public static byte[] signBySoft256(PrivateKey privateKey, byte[] data)
throws Exception {
byte[] result = null;
Signature st = Signature.getInstance(BC_PROV_ALGORITHM_SHA256RSA, "BC");
st.initSign(privateKey);
st.update(data);
result = st.sign();
return result;
}
public static boolean validateSignBySoft(PublicKey publicKey,
byte[] signData, byte[] srcData) throws Exception {
Signature st = Signature.getInstance(BC_PROV_ALGORITHM_SHA1RSA, "BC");
st.initVerify(publicKey);
st.update(srcData);
return st.verify(signData);
}
public static boolean validateSignBySoft256(PublicKey publicKey,
byte[] signData, byte[] srcData) throws Exception {
Signature st = Signature.getInstance(BC_PROV_ALGORITHM_SHA256RSA, "BC");
st.initVerify(publicKey);
st.update(srcData);
return st.verify(signData);
}
/**
* 对数据通过公钥进行加密,并进行base64计算
*
* @param dataString
* 待处理数据
* @param encoding
* 字符编码
* @param key
* 公钥
* @return
*/
public static String encryptData(String dataString, String encoding,
PublicKey key) {
/** 使用公钥对密码加密 **/
byte[] data = null;
try {
data = encryptData(key, dataString.getBytes(encoding));
return new String(SecureUtil.base64Encode(data), encoding);
} catch (Exception e) {
LogUtil.writeErrorLog(e.getMessage(), e);
return "";
}
}
/**
* 对数据通过公钥进行加密,并进行base64计算
*
* @param dataString
* 待处理数据
* @param encoding
* 字符编码
* @param key
* 公钥
* @return
*/
public static String encryptPin(String accNo, String pin, String encoding,
PublicKey key) {
/** 使用公钥对密码加密 **/
byte[] data = null;
try {
data = pin2PinBlockWithCardNO(pin, accNo);
data = encryptData(key, data);
return new String(SecureUtil.base64Encode(data), encoding);
} catch (Exception e) {
LogUtil.writeErrorLog(e.getMessage(), e);
return "";
}
}
/**
* 通过私钥解密
*
* @param dataString
* base64过的数据
* @param encoding
* 编码
* @param key
* 私钥
* @return 解密后的数据
*/
public static String decryptData(String dataString, String encoding,
PrivateKey key) {
byte[] data = null;
try {
data = SecureUtil.base64Decode(dataString.getBytes(encoding));
data = decryptData(key, data);
return new String(data, encoding);
} catch (Exception e) {
LogUtil.writeErrorLog(e.getMessage(), e);
return "";
}
}
/**
* BASE64解码
*
* @param inputByte
* 待解码数据
* @return 解码后的数据
* @throws IOException
*/
public static byte[] base64Decode(byte[] inputByte) throws IOException {
return Base64.decodeBase64(inputByte);
}
/**
* BASE64编码
*
* @param inputByte
* 待编码数据
* @return 解码后的数据
* @throws IOException
*/
public static byte[] base64Encode(byte[] inputByte) throws IOException {
return Base64.encodeBase64(inputByte);
}
/**
* 加密除pin之外的其他信息
*
* @param publicKey
* @param plainData
* @return
* @throws Exception
*/
private static byte[] encryptData(PublicKey publicKey, byte[] plainData)
throws Exception {
try {
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding","BC");
cipher.init(Cipher.ENCRYPT_MODE, publicKey);
return cipher.doFinal(plainData);
} catch (Exception e) {
throw new Exception(e.getMessage());
}
}
/**
* @param privateKey
* @param cryptPin
* @return
* @throws Exception
*/
private static byte[] decryptData(PrivateKey privateKey, byte[] data)
throws Exception {
try {
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding","BC");
cipher.init(Cipher.DECRYPT_MODE, privateKey);
return cipher.doFinal(data);
} catch (Exception e) {
LogUtil.writeErrorLog("解密失败", e);
}
return null;
}
/**
*
* @param aPin
* @return
*/
private static byte[] pin2PinBlock(String aPin) {
int tTemp = 1;
int tPinLen = aPin.length();
byte[] tByte = new byte[8];
try {
/*******************************************************************
* if (tPinLen > 9) { tByte[0] = (byte) Integer.parseInt(new
* Integer(tPinLen) .toString(), 16); } else { tByte[0] = (byte)
* Integer.parseInt(new Integer(tPinLen) .toString(), 10); }
******************************************************************/
// tByte[0] = (byte) Integer.parseInt(new Integer(tPinLen).toString(),
// 10);
tByte[0] = (byte) Integer.parseInt(Integer.toString(tPinLen), 10);
if (tPinLen % 2 == 0) {
for (int i = 0; i < tPinLen;) {
String a = aPin.substring(i, i + 2);
tByte[tTemp] = (byte) Integer.parseInt(a, 16);
if (i == (tPinLen - 2)) {
if (tTemp < 7) {
for (int x = (tTemp + 1); x < 8; x++) {
tByte[x] = (byte) 0xff;
}
}
}
tTemp++;
i = i + 2;
}
} else {
for (int i = 0; i < tPinLen - 1;) {
String a;
a = aPin.substring(i, i + 2);
tByte[tTemp] = (byte) Integer.parseInt(a, 16);
if (i == (tPinLen - 3)) {
String b = aPin.substring(tPinLen - 1) + "F";
tByte[tTemp + 1] = (byte) Integer.parseInt(b, 16);
if ((tTemp + 1) < 7) {
for (int x = (tTemp + 2); x < 8; x++) {
tByte[x] = (byte) 0xff;
}
}
}
tTemp++;
i = i + 2;
}
}
} catch (Exception e) {
}
return tByte;
}
/**
*
* @param aPan
* @return
*/
private static byte[] formatPan(String aPan) {
int tPanLen = aPan.length();
byte[] tByte = new byte[8];
;
int temp = tPanLen - 13;
try {
tByte[0] = (byte) 0x00;
tByte[1] = (byte) 0x00;
for (int i = 2; i < 8; i++) {
String a = aPan.substring(temp, temp + 2);
tByte[i] = (byte) Integer.parseInt(a, 16);
temp = temp + 2;
}
} catch (Exception e) {
}
return tByte;
}
/**
*
* @param aPin
* @param aCardNO
* @return
*/
private static byte[] pin2PinBlockWithCardNO(String aPin, String aCardNO) {
byte[] tPinByte = pin2PinBlock(aPin);
if (aCardNO.length() == 11) {
aCardNO = "00" + aCardNO;
} else if (aCardNO.length() == 12) {
aCardNO = "0" + aCardNO;
}
byte[] tPanByte = formatPan(aCardNO);
byte[] tByte = new byte[8];
for (int i = 0; i < 8; i++) {
tByte[i] = (byte) (tPinByte[i] ^ tPanByte[i]);
}
return tByte;
}
/**
* luhn算法
*
* @param number
* @return
*/
public static int genLuhn(String number) {
number = number + "0";
int s1 = 0, s2 = 0;
String reverse = new StringBuffer(number).reverse().toString();
for (int i = 0; i < reverse.length(); i++) {
int digit = Character.digit(reverse.charAt(i), 10);
if (i % 2 == 0) {// this is for odd digits, they are 1-indexed in //
// the algorithm
s1 += digit;
} else {// add 2 * digit for 0-4, add 2 * digit - 9 for 5-9
s2 += 2 * digit;
if (digit >= 5) {
s2 -= 9;
}
}
}
int check = 10 - ((s1 + s2) % 10);
if (check == 10) {
check = 0;
}
return check;
}
}
| [
"mayikt@qq.com"
] | mayikt@qq.com |
83941848cb845edf37f5674a86a2f18011464de9 | 6d47d7125449ab037f2f3cd6842c2572707a1f7e | /app/build/generated/not_namespaced_r_class_sources/debug/r/androidx/asynclayoutinflater/R.java | 04e86b73d52ce99f642a4e4bacd772f3debd586e | [] | no_license | rogereichert/appandroidperguntas | 15238859b7cdfd4070bda42336078d0ff8948f23 | 0bb17bc00b4b0e4b711b358df240593857ba5e14 | refs/heads/master | 2020-09-16T18:25:59.919181 | 2019-11-25T03:21:59 | 2019-11-25T03:21:59 | 223,852,188 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,459 | 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 androidx.asynclayoutinflater;
public final class R {
private R() {}
public static final class attr {
private attr() {}
public static final int alpha = 0x7f020027;
public static final int font = 0x7f02007a;
public static final int fontProviderAuthority = 0x7f02007c;
public static final int fontProviderCerts = 0x7f02007d;
public static final int fontProviderFetchStrategy = 0x7f02007e;
public static final int fontProviderFetchTimeout = 0x7f02007f;
public static final int fontProviderPackage = 0x7f020080;
public static final int fontProviderQuery = 0x7f020081;
public static final int fontStyle = 0x7f020082;
public static final int fontVariationSettings = 0x7f020083;
public static final int fontWeight = 0x7f020084;
public static final int ttcIndex = 0x7f02013c;
}
public static final class color {
private color() {}
public static final int notification_action_color_filter = 0x7f04003f;
public static final int notification_icon_bg_color = 0x7f040040;
public static final int ripple_material_light = 0x7f04004a;
public static final int secondary_text_default_material_light = 0x7f04004c;
}
public static final class dimen {
private dimen() {}
public static final int compat_button_inset_horizontal_material = 0x7f05004b;
public static final int compat_button_inset_vertical_material = 0x7f05004c;
public static final int compat_button_padding_horizontal_material = 0x7f05004d;
public static final int compat_button_padding_vertical_material = 0x7f05004e;
public static final int compat_control_corner_material = 0x7f05004f;
public static final int compat_notification_large_icon_max_height = 0x7f050050;
public static final int compat_notification_large_icon_max_width = 0x7f050051;
public static final int notification_action_icon_size = 0x7f05005b;
public static final int notification_action_text_size = 0x7f05005c;
public static final int notification_big_circle_margin = 0x7f05005d;
public static final int notification_content_margin_start = 0x7f05005e;
public static final int notification_large_icon_height = 0x7f05005f;
public static final int notification_large_icon_width = 0x7f050060;
public static final int notification_main_column_padding_top = 0x7f050061;
public static final int notification_media_narrow_margin = 0x7f050062;
public static final int notification_right_icon_size = 0x7f050063;
public static final int notification_right_side_padding_top = 0x7f050064;
public static final int notification_small_icon_background_padding = 0x7f050065;
public static final int notification_small_icon_size_as_large = 0x7f050066;
public static final int notification_subtext_size = 0x7f050067;
public static final int notification_top_pad = 0x7f050068;
public static final int notification_top_pad_large_text = 0x7f050069;
}
public static final class drawable {
private drawable() {}
public static final int notification_action_background = 0x7f060057;
public static final int notification_bg = 0x7f060058;
public static final int notification_bg_low = 0x7f060059;
public static final int notification_bg_low_normal = 0x7f06005a;
public static final int notification_bg_low_pressed = 0x7f06005b;
public static final int notification_bg_normal = 0x7f06005c;
public static final int notification_bg_normal_pressed = 0x7f06005d;
public static final int notification_icon_background = 0x7f06005e;
public static final int notification_template_icon_bg = 0x7f06005f;
public static final int notification_template_icon_low_bg = 0x7f060060;
public static final int notification_tile_bg = 0x7f060061;
public static final int notify_panel_notification_icon_bg = 0x7f060062;
}
public static final class id {
private id() {}
public static final int action_container = 0x7f07000d;
public static final int action_divider = 0x7f07000f;
public static final int action_image = 0x7f070010;
public static final int action_text = 0x7f070016;
public static final int actions = 0x7f070017;
public static final int async = 0x7f07001d;
public static final int blocking = 0x7f070020;
public static final int chronometer = 0x7f070028;
public static final int forever = 0x7f07003c;
public static final int icon = 0x7f070042;
public static final int icon_group = 0x7f070043;
public static final int info = 0x7f070046;
public static final int italic = 0x7f070048;
public static final int line1 = 0x7f07004a;
public static final int line3 = 0x7f07004b;
public static final int normal = 0x7f070053;
public static final int notification_background = 0x7f070054;
public static final int notification_main_column = 0x7f070055;
public static final int notification_main_column_container = 0x7f070056;
public static final int right_icon = 0x7f07005f;
public static final int right_side = 0x7f070060;
public static final int tag_transition_group = 0x7f070080;
public static final int tag_unhandled_key_event_manager = 0x7f070081;
public static final int tag_unhandled_key_listeners = 0x7f070082;
public static final int text = 0x7f070084;
public static final int text2 = 0x7f070085;
public static final int time = 0x7f070088;
public static final int title = 0x7f070089;
}
public static final class integer {
private integer() {}
public static final int status_bar_notification_info_maxnum = 0x7f080004;
}
public static final class layout {
private layout() {}
public static final int notification_action = 0x7f09001d;
public static final int notification_action_tombstone = 0x7f09001e;
public static final int notification_template_custom_big = 0x7f09001f;
public static final int notification_template_icon_group = 0x7f090020;
public static final int notification_template_part_chronometer = 0x7f090021;
public static final int notification_template_part_time = 0x7f090022;
}
public static final class string {
private string() {}
public static final int status_bar_notification_info_overflow = 0x7f0b0029;
}
public static final class style {
private style() {}
public static final int TextAppearance_Compat_Notification = 0x7f0c00ec;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0c00ed;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0c00ee;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0c00ef;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0c00f0;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0c0158;
public static final int Widget_Compat_NotificationActionText = 0x7f0c0159;
}
public static final class styleable {
private styleable() {}
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f020027 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] FontFamily = { 0x7f02007c, 0x7f02007d, 0x7f02007e, 0x7f02007f, 0x7f020080, 0x7f020081 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f02007a, 0x7f020082, 0x7f020083, 0x7f020084, 0x7f02013c };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
}
}
| [
"rogereichert@gmail.com"
] | rogereichert@gmail.com |
8d81b0553c57f6c58388f33c121f3b87206e8967 | eb381cb6d3d6206dbc3cebbd4fd25adc98768b2d | /crf_mysql/src/main/java/com/gennlife/crf/crfLogic/SwingCrfLogicTools.java | 886f18540c41a72e9e03bbd79b93c64b66dbc0f8 | [] | no_license | wangmiao1218/crf_mysql | 4f03ee8797ee29c52e09903aa5a9d2e852cdb714 | 5d738ab305d74c395d241181397b71af9f9fb5da | refs/heads/master | 2021-01-01T04:33:34.264525 | 2019-04-09T02:07:41 | 2019-04-09T02:07:41 | 97,199,015 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,500 | java | package com.gennlife.crf.crfLogic;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import com.gennlife.crf.bean.Excel;
import com.gennlife.crf.utils.FileUtils;
import com.gennlife.crf.utils.ListAndStringUtils;
/**
* @Description: CrfLogic工具-1.0(crf逻辑测试)
* @author: wangmiao
* @Date: 2017年12月31日 下午11:25:38
*/
public class SwingCrfLogicTools extends JFrame implements ActionListener {
private static final long serialVersionUID = 1L;
JFrame mainframe;
JPanel panel;
//创建相关的Label标签
JLabel infilepath_labelExcel = new JLabel("crf文件(Excel):");
JLabel infilepath_labelJson = new JLabel("全量数据(Json):");
JLabel outfilepath_label = new JLabel("导出文件路径:");
//crf逻辑测试需要的地址
JLabel infilepath_labelMongo = new JLabel("mongodb(IP):");
JLabel infilepath_labelAuto = new JLabel("接口地址(http):");
JLabel infilepath_labelDisease = new JLabel("病种名称:");
//创建相关的文本域
JTextField infilepath_textfieldExcel = new JTextField(20);
JTextField infilepath_textfieldJson = new JTextField(20);
JTextField outfilepath_textfield = new JTextField(20);
//crf逻辑测试需要的地址
JTextField infilepath_textfieldMongo = new JTextField(20);
JTextField infilepath_textfieldAuto = new JTextField(20);
JTextField infilepath_textfieldDisease = new JTextField(20);
//创建滚动条以及输出文本域
JScrollPane jscrollPane;
JTextArea outtext_textarea = new JTextArea();
//创建按钮
JButton infilepath_buttonExcel = new JButton("...");
JButton infilepath_buttonJson = new JButton("...");
JButton outfilepath_button = new JButton("...");
JButton start_button = new JButton("开始");
//JButton start_button2 = new JButton("配置联动路径");
public void show(){
mainframe = new JFrame("TestCrfLogicTools-1.0");
// Setting the width and height of frame
mainframe.setSize(575, 480);
mainframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mainframe.setResizable(false);//固定窗体大小
Toolkit kit = Toolkit.getDefaultToolkit(); // 定义工具包
Dimension screenSize = kit.getScreenSize(); // 获取屏幕的尺寸
int screenWidth = screenSize.width/2; // 获取屏幕的宽
int screenHeight = screenSize.height/2; // 获取屏幕的高
int height = mainframe.getHeight(); //获取窗口高度
int width = mainframe.getWidth(); //获取窗口宽度
mainframe.setLocation(screenWidth-width/2, screenHeight-height/2);//将窗口设置到屏幕的中部
//窗体居中,c是Component类的父窗口
//mainframe.setLocationRelativeTo(c);
Image myimage=kit.getImage("resourse/hxlogo.gif"); //由tool获取图像
mainframe.setIconImage(myimage);
initPanel();//初始化面板
mainframe.add(panel);
mainframe.setVisible(true);
}
/* 创建面板,这个类似于 HTML 的 div 标签
* 我们可以创建多个面板并在 JFrame 中指定位置
* 面板中我们可以添加文本字段,按钮及其他组件。
*/
public void initPanel(){
this.panel = new JPanel();
panel.setLayout(null);
//this.panel = new JPanel(new GridLayout(3,2)); //创建3行3列的容器
/* 这个方法定义了组件的位置。
* setBounds(x, y, width, height)
* x 和 y 指定左上角的新位置,由 width 和 height 指定新的大小。
*/
infilepath_labelExcel.setBounds(10,20,120,25);
infilepath_textfieldExcel.setBounds(120,20,400,25);
infilepath_buttonExcel.setBounds(520,20, 30, 25);
infilepath_labelJson.setBounds(10,50,120,25);
infilepath_textfieldJson.setBounds(120,50,400,25);
infilepath_buttonJson.setBounds(520,50,30,25);
this.panel.add(infilepath_labelExcel);
this.panel.add(infilepath_textfieldExcel);
this.panel.add(infilepath_buttonExcel);
this.panel.add(infilepath_labelJson);
this.panel.add(infilepath_textfieldJson);
this.panel.add(infilepath_buttonJson);
outfilepath_label.setBounds(10,80,120,25);
outfilepath_textfield.setBounds(120,80,400,25);
outfilepath_button.setBounds(520,80,30,25);
this.panel.add(outfilepath_label);
this.panel.add(outfilepath_textfield);
this.panel.add(outfilepath_button);
//逻辑测试需要的地址
infilepath_labelMongo.setBounds(10,110,120,25);
infilepath_textfieldMongo.setBounds(120,110,400,25);
this.panel.add(infilepath_labelMongo);
this.panel.add(infilepath_textfieldMongo);
infilepath_labelAuto.setBounds(10,140,120,25);
infilepath_textfieldAuto.setBounds(120,140,400,25);
this.panel.add(infilepath_labelAuto);
this.panel.add(infilepath_textfieldAuto);
infilepath_labelDisease.setBounds(10,170,120,25);
infilepath_textfieldDisease.setBounds(120,170,400,25);
this.panel.add(infilepath_labelDisease);
this.panel.add(infilepath_textfieldDisease);
//crf逻辑测试,开始按钮
start_button.setBounds(10,210,115,25);
this.panel.add(start_button);
//联动路径
//start_button2.setBounds(160,110,115,25);
//this.panel.add(start_button2);
outtext_textarea.setEditable(false);
outtext_textarea.setFont(new Font("标楷体", Font.BOLD, 16));
jscrollPane = new JScrollPane(outtext_textarea);
jscrollPane.setBounds(10,240,550,200);
this.panel.add(jscrollPane);
//增加动作监听
infilepath_buttonExcel.addActionListener(this);
infilepath_buttonJson.addActionListener(this);
outfilepath_button.addActionListener(this);
start_button.addActionListener(this);
//start_button2.addActionListener(this);
}
/**
* 单击动作触发方法
* @param event
*/
@Override
public void actionPerformed(ActionEvent event) {
//配置英文名
if (event.getSource() == start_button) {
//页面显示
outtext_textarea.setText("若长时间无反应,则检查excel配置是否正确(再重新执行)。请稍后...");
//确认对话框弹出 //YES_NO_OPTION
int result = JOptionPane.showConfirmDialog(null, "请确认文件处于关闭状态,是否开始执行?", "确认", 0);
if (result == 1) {//是:0,否:1,取消:2
return;
}
//判断输入框不为空
if (infilepath_textfieldExcel.getText().equals("") ||
infilepath_textfieldJson.getText().equals("") ||
outfilepath_textfield.getText().equals("") ||
infilepath_textfieldMongo.getText().equals("") ||
infilepath_textfieldAuto.getText().equals("") ||
infilepath_textfieldDisease.getText().equals("")) {
JOptionPane.showMessageDialog(null, "输入框不能为空", "提示", 2);//弹出提示对话框,warning
return;
}else{
String infilepath_Excel = infilepath_textfieldExcel.getText().trim();
String infilepath_Json = infilepath_textfieldJson.getText().trim();
String outfilepath = outfilepath_textfield.getText().trim();
//输入文本
String infilepath_Mongo = infilepath_textfieldMongo.getText().trim();
String infilepath_Auto = infilepath_textfieldAuto.getText().trim();
String infilepath_Disease = infilepath_textfieldDisease.getText().trim();
//调用方法开始
//先把文件copy到输出路径
//然后执行方法
String outFilePath = ListAndStringUtils.stringReplaceReturnValue(outfilepath);
String fileName_Excel = ListAndStringUtils.stringToSubstringReturnFileName(infilepath_Excel);
String fileName_Json = ListAndStringUtils.stringToSubstringReturnFileName(infilepath_Json);
//先把文件copy到输出路径
try {
FileUtils.copyFile(ListAndStringUtils.stringReplaceReturnValue(infilepath_Excel), outFilePath+"\\\\"+fileName_Excel);
} catch (Exception e1) {
e1.printStackTrace();
}
try {
FileUtils.copyFile(ListAndStringUtils.stringReplaceReturnValue(infilepath_Json),outFilePath+"\\\\"+fileName_Json);
} catch (Exception e1) {
e1.printStackTrace();
}
Excel excel = new Excel(outFilePath,fileName_Excel, "Sheet1");
//处理后的json文件path
String path_Json = outFilePath+"\\\\"+fileName_Json;
try {
//调用方法_插入patientDetail
//CrfLogic.insertDatasIntoPatientDetailAndPostAndWritePatIntoExcel(excel, path_Json,infilepath_Mongo, infilepath_Auto, infilepath_Disease);
//使用心得逻辑
CrfLogic.addFirstPat_insertDatasIntoPatientDetailAndPostAndWritePatIntoExcel(excel, path_Json,infilepath_Mongo, infilepath_Auto, infilepath_Disease);
//调用方法_查询crfdata
CrfLogic.queryCrfdataByPatAndWriteResults(excel,infilepath_Mongo);
//===========改变名称 start=========
String newFileName_Excel=null;
File file=new File(outFilePath+"\\\\"+fileName_Excel);
newFileName_Excel = ListAndStringUtils.segmentFileAllNameToFileName(fileName_Excel);
newFileName_Excel = newFileName_Excel+"_"+new SimpleDateFormat("yyyyMMdd-HHmmss").format(new Date());
file.renameTo(new File(outFilePath+"\\\\"+newFileName_Excel+".xlsx"));
//===========改变名称 end=========
} catch (Exception e1) {
e1.printStackTrace();
}
//调用方法结束
//打开输出文件所在文件夹
result = JOptionPane.showConfirmDialog(null, "已完成!是否打开输出文件所在文件夹?", "确认", 0);//YES_NO_OPTION
if (result == 0) {//是:0,否:1,取消:2
try {
@SuppressWarnings("unused")
//调用cmd方法打开文件夹
Process process = Runtime.getRuntime().exec("cmd.exe /c start "+outFilePath);
} catch (IOException e) {
e.printStackTrace();
}
}
//页面显示
outtext_textarea.setText("ok...");
}
}else{
//判断三个选择按钮并对应操作
if(event.getSource() == infilepath_buttonExcel) {
File file = openChoseWindow(JFileChooser.FILES_ONLY);
if(file == null)
return;
infilepath_textfieldExcel.setText(file.getAbsolutePath());
outfilepath_textfield.setText(file.getParent()+"\\out");
}else if(event.getSource() == infilepath_buttonJson) {
File file = openChoseWindow(JFileChooser.FILES_ONLY);
if(file == null)
return;
infilepath_textfieldJson.setText(file.getAbsolutePath());
}else if(event.getSource() == outfilepath_button){
File file = openChoseWindow(JFileChooser.DIRECTORIES_ONLY);
if(file == null)
return;
outfilepath_textfield.setText(file.getAbsolutePath()+"\\out");
}
}
}
/**
* 打开选择文件窗口并返回文件
* @param type
* @return
*/
public File openChoseWindow(int type){
JFileChooser jfc=new JFileChooser();
jfc.setFileSelectionMode(type);//选择的文件类型(文件夹or文件)
jfc.showDialog(new JLabel(), "选择");
File file=jfc.getSelectedFile();
return file;
}
public void windowClosed(WindowEvent arg0) {
System.exit(0);
}
public void windowClosing(WindowEvent arg0) {
System.exit(0);
}
public static void main(String []args){
SwingCrfLogicTools f = new SwingCrfLogicTools();
f.show();
}
}
| [
"wangmiao1218@163.com"
] | wangmiao1218@163.com |
a504a89de47be59c03419d66687f1109404e7037 | c6aa94983f3c8f82954463af3972ae06b30396a7 | /microservice_mina_social_business_api/portal-api/src/main/java/com/channelsharing/hongqu/portal/api/service/impl/OrderInvoiceServiceImpl.java | e8136bdc551c94e069907e287c39b2f7e36a223a | [
"Apache-2.0"
] | permissive | dobulekill/jun_springcloud | f01358caacb1b04f57908dccc6432d0a5e17745e | 33248f65301741ed97a24b978a5c22d5d6c052fb | refs/heads/master | 2023-01-24T13:24:59.282130 | 2020-11-25T17:30:47 | 2020-11-25T17:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,131 | java | /**
* Copyright © 2016-2022 liuhangjun All rights reserved.
*/
package com.channelsharing.hongqu.portal.api.service.impl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.channelsharing.common.service.CrudServiceImpl;
import com.channelsharing.hongqu.portal.api.service.OrderInvoiceService;
import com.channelsharing.hongqu.portal.api.entity.OrderInvoice;
import com.channelsharing.hongqu.portal.api.dao.OrderInvoiceDao;
/**
* 订单发票Service
* @author Wujun
* @version 2018-07-29
*/
@Service
public class OrderInvoiceServiceImpl extends CrudServiceImpl<OrderInvoiceDao, OrderInvoice> implements OrderInvoiceService {
@Override
public OrderInvoice findOne(Long id) {
OrderInvoice entity = new OrderInvoice();
entity.setId(id);
return super.findOne(entity);
}
@Override
public OrderInvoice findOne(Long id , Long userId){
OrderInvoice entity = new OrderInvoice();
entity.setId(id);
entity.setUserId(userId);
return super.findOne(entity);
}
}
| [
"wujun728@hotmail.com"
] | wujun728@hotmail.com |
c38d75e3a40ebec4e6adf450c708dd3f3ed3bfea | 5b3124d08ed839e876de9f47af685589ccec5c9b | /ulearning-system-manage/src/test/java/com/ky/ulearning/system/common/util/FastDfsClientWrapperUtil.java | 9c22e4066c8c7e85f4e736e1cfccadc711162530 | [] | no_license | Hyidol/u-learning | b570b59ac6a7caed593d8105b462c9c4071661b7 | 859a5439e12a05eb2206817dfe68b46a5fdd67b0 | refs/heads/master | 2022-11-20T06:39:36.030533 | 2020-05-22T14:49:41 | 2020-05-22T14:49:41 | 299,804,019 | 0 | 1 | null | 2020-09-30T03:57:12 | 2020-09-30T03:57:11 | null | UTF-8 | Java | false | false | 2,628 | java | package com.ky.ulearning.system.common.util;
import com.github.tobato.fastdfs.domain.fdfs.StorePath;
import com.github.tobato.fastdfs.service.FastFileStorageClient;
import com.ky.ulearning.common.core.component.component.FastDfsClientWrapper;
import com.ky.ulearning.common.core.component.constant.DefaultConfigParameters;
import com.ky.ulearning.common.core.utils.EnvironmentAwareUtil;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.nio.charset.StandardCharsets;
/**
* @author luyuhao
* @since 20/01/28 22:32
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class FastDfsClientWrapperUtil {
@Autowired
private FastFileStorageClient fastFileStorageClient;
@Autowired
private FastDfsClientWrapper fastDfsClientWrapper;
@Autowired
private DefaultConfigParameters defaultConfigParameters;
@BeforeClass
public static void init() {
EnvironmentAwareUtil.adjust();
}
@Test
public void test01() throws FileNotFoundException {
File file = new File("D://Mydata//Picture//素材//头像1.png");
String fileName = file.getName();
String ext = fileName.substring(fileName.lastIndexOf(".") + 1);
FileInputStream inputStream = new FileInputStream(file);
StorePath storePath = fastFileStorageClient.uploadFile(inputStream, file.length(), ext, null);
System.out.println(storePath.getFullPath());
System.out.println(storePath.getPath());
System.out.println(storePath.getGroup());
}
@Test
public void test02() {
StorePath filePath = StorePath.parseFromUrl("http://darren1112.com:8888/group1/M00/00/00/L18Ofl43CXKAKzWUAADJdlf2uL8942.png");
fastFileStorageClient.deleteFile(filePath.getGroup(), filePath.getPath());
}
@Test
public void test03() {
String filePath = "http://darren1112.com:8888/group1/M00/00/00/L18Ofl4267qAcw1XAAB5tEHATng664.jpg";
byte[] download = fastDfsClientWrapper.download(filePath);
System.out.println(new String(download, StandardCharsets.UTF_8));
}
@Test
public void test04(){
String filePath = "http://darren1112.com:8888/group1/M00/00/00/L18Ofl4770qAQ1PTAADf0BgFB78109.jpg";
System.out.println(fastDfsClientWrapper.hasFile(filePath));
}
}
| [
"ludaye1112@163.com"
] | ludaye1112@163.com |
114dda767396656c6112d333e6f7fca29f83f0e6 | abb9782f1bc5fc758cca9aead5fb7e8b2a31922f | /app/src/main/java/com/example/testpayment/others/MainActivity.java | 9c5776bce08b44ba760f0c7595ea7c2100683bea | [] | no_license | ezzat2019/test_payment | e4dd920ad7bf1cf93cfc21f4bc74c8df3734fe60 | 7470fb544210697123818dddcb3bedd1e6f7d2c0 | refs/heads/master | 2023-02-04T21:30:43.251663 | 2020-12-14T07:14:33 | 2020-12-14T07:14:33 | 319,756,888 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,147 | java | package com.example.testpayment.others;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.appcompat.app.AppCompatActivity;
import com.example.testpayment.R;
import java.io.Serializable;
public class MainActivity extends AppCompatActivity implements Serializable {
Button btn_regit, btn_login;
EditText ed_login_phone,ed_login_pass;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
init();
btn_regit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(getApplicationContext(),SignupActivity.class));
}
});
}
private void init() {
btn_regit=findViewById(R.id.btn_reg_login);
btn_login=findViewById(R.id.btn_login);
ed_login_phone=findViewById(R.id.ed_login_phone);
ed_login_pass=findViewById(R.id.ed_login_pass);
}
}
| [
"coezz@yahoo.com"
] | coezz@yahoo.com |
fb64b66aac5583b44a2d9790228b647ba88a9720 | a5ed856055c66ae91bcf2ee0b72d0e518cbeaebe | /Java/Queue Reconstruction by Height.java | 52bfd5206045c176a564e38899daef6b21e56b4c | [] | no_license | BenjaminLiCN/LintCode | 31bd684b7f5ed44e7f4a98fe0515ead3dec519d1 | d5681481156fea26840fd4783ee627b0f7aa58cf | refs/heads/master | 2020-03-23T16:15:13.284780 | 2018-07-21T02:14:41 | 2018-07-21T02:14:41 | 141,800,453 | 2 | 0 | null | 2018-07-21T09:52:35 | 2018-07-21T09:52:35 | null | UTF-8 | Java | false | false | 3,115 | java | M
1516438554
tags: Greedy
别无他法, 只能写一遍例子, 找规律,然后greedy.
需要写一遍发现的规律比如: 从h大的开始排列, 先放入k小的. 写comparator的时候要注意正确性.
如果要sort, 并且灵活insert:用arrayList. 自己做一个object.
最后做那个'matchCount'的地方要思路清晰, 找到最正确的spot, 然后greedy insert.
O(n) space, O(nLog(n)) time, because of sorting.
可能有简化的余地, 代码有点太长.
比如试一试不用额外空间?
```
/*
Suppose you have a random list of people standing in a queue.
Each person is described by a pair of integers (h, k), where h is the height of the person
and k is the number of people in front of this person who have a height greater than or equal to h.
Write an algorithm to reconstruct the queue.
Note:
The number of people is less than 1,100.
Example
Input:
[[7,0], [4,4], [7,1], [5,0], [6,1], [5,2]]
Output:
[[5,0], [7,0], [5,2], [6,1], [4,4], [7,1]]
*/
/*
Thoughts:
Not having a great idea in mind, but we can pick each people and insert them into 'best at moment' spots.
Use arrayList<People> to make insertion easier.
Greedy solution.
*/
class Solution {
class People {
public int h;
public int k;
public People(int h, int k) {
this.h = h;
this.k = k;
}
}
public int[][] reconstructQueue(int[][] people) {
if (people == null || people.length == 0 || people[0] == null || people[0].length == 0) {
return people;
}
final int[][] result = new int[people.length][people[0].length];
// Set up the list and sort
final List<People> peopleList = new ArrayList<>();
for (int i = 0; i < people.length; i++) {
peopleList.add(new People(people[i][0], people[i][1]));
}
Collections.sort(peopleList, new Comparator<People>() {
public int compare(People p1, People p2) {
if (p1.h != p2.h) {
return p2.h - p1.h;
} else {
return p1.k - p2.k;
}
}
});
// Find correct index and insert
final List<People> resultList = new ArrayList<>();
for (int i = 0; i < peopleList.size(); i++) {
final People ppl = peopleList.get(i);
int insertIndex = findCorrectIndex(resultList, ppl.h, ppl.k);
resultList.add(insertIndex, ppl);
}
// Output result
for (int i = 0; i < resultList.size(); i++) {
result[i][0] = resultList.get(i).h;
result[i][1] = resultList.get(i).k;
}
return result;
}
public int findCorrectIndex(final List<People> peopleList, int h, int k) {
int matchCount = 0;
int index = 0;
for (; index < peopleList.size(); index++) {
final People ppl = peopleList.get(index);
matchCount += ppl.h >= h ? 1 : 0;
if (matchCount > k) {
return index;
}
}
return index;
}
}
``` | [
"wangdeve@gmail.com"
] | wangdeve@gmail.com |
7c93599103623664ff284fa51aa16296821eccaa | c0f6a80a8b9f8901832467d1b9bb703d9606f7db | /app/src/main/java/zelphinstudios/courseworkapp/game/gui/GUI.java | 13d04f0c84ae56bd01e82580f42eecc3fba873e4 | [] | no_license | NathanHeadley/AndroidNetworking | c5a79b80d58b95beb9e193a1b41877113ae20f17 | 0f743bc14cfb071b3273dbbc92041e8fb094988d | refs/heads/master | 2021-01-10T15:02:57.947648 | 2016-05-06T11:16:49 | 2016-05-06T11:16:49 | 55,788,672 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 927 | java | package zelphinstudios.courseworkapp.game.gui;
import android.graphics.Bitmap;
import java.util.Vector;
// Class to store GUIs
public class GUI extends BaseGUI {
// Variables
private Vector<Button> buttons = new Vector<>();
private Vector<TextField> textFields = new Vector<>();
// Constructor
public GUI(int x_, int y_, Bitmap background_, boolean visible_) {
x = x_;
y = y_;
bitmap = background_;
visible = visible_;
}
// Methods
public void addButton(Button button_) {
buttons.addElement(button_);
}
public void addTextField(TextField textField_) {
textFields.addElement(textField_);
}
// Getters
public Vector<Button> getButtons() {
return buttons;
}
public Vector<TextField> getTextFields() {
return textFields;
}
public Button getButton(int button_) {
return buttons.get(button_);
}
public TextField getTextField(int textField_) {
return textFields.get(textField_);
}
}
| [
"Nathanheadley1@gmail.com"
] | Nathanheadley1@gmail.com |
9e797f633d85dfc405dd2add3cc97748aad02075 | a37faac536120f7453efc6e70b34a7f469280c2d | /Junit/src/cn/itcast/reflect/Person.java | 599b6f7d7553b729f3b2eee31136675a256cdd71 | [] | no_license | good-and-more/java-study | 967e5a8abf2a5a0364f42a50a4c2473c1e430c2f | bcd3076c21e1cfd79fb58ed0eb93f903bef455af | refs/heads/master | 2023-01-21T09:52:32.185435 | 2020-11-17T03:15:13 | 2020-11-17T03:15:13 | 289,037,638 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,081 | java | package cn.itcast.reflect;
public class Person {
private String name;
private int age;
public String a;
protected String b;
String c;
private String d;
public Person() {
}
public Person(String name, int age) {
this.name = name;
this.age = age;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
@Override
public String toString() {
return "Person{" +
"name='" + name + '\'' +
", age=" + age +
", a='" + a + '\'' +
", b='" + b + '\'' +
", c='" + c + '\'' +
", d='" + d + '\'' +
'}';
}
public void eat(){
System.out.println("吃东西");
};
public void eat(String food){
System.out.println(food);
};
}
| [
"ilovesp20@outlook.com"
] | ilovesp20@outlook.com |
ff7c52e95917d57ddd3d27d374771f9b7382f62c | 6920a0d341da20bff26aab656585bf616d0d6cbf | /project/src/test/ga/replacement/TournamentPCTest.java | 99d8cd90f94c7238469de52213943cb3b28ba124 | [] | no_license | SaraTomillo/TFG_MetaheuristicFuzzyVRP | 1320a61219cf0b871803a1389fb702c0d91bfbf3 | 82d0ff7dcd09eb3aa5c9b82342ad25d2eec76575 | refs/heads/master | 2020-03-22T08:37:08.110376 | 2018-07-05T01:13:37 | 2018-07-05T01:13:37 | 139,778,392 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,672 | java | package test.ga.replacement;
import main.ga.creation.RandomPopulation;
import main.ga.crossover.OrderBasedCrossover;
import main.ga.replacement.TournamentPC;
import main.ga.selection.Tournament;
import main.tfn.TFN;
import main.vpr.Individual;
import main.vpr.Population;
import main.vpr.Problem;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static org.junit.Assert.*;
public class TournamentPCTest {
private final Tournament tournament;
private final OrderBasedCrossover orderBasedCrossover;
private final TournamentPC tournamentPC;
private final RandomPopulation randomPopulation;
private final Random random;
public TournamentPCTest() {
this.tournament = new Tournament(4);
this.random = new Random(1);
this.tournament.setRandom(random);
this.tournamentPC = new TournamentPC();
this.randomPopulation = new RandomPopulation();
this.randomPopulation.setRandom(random);
this.orderBasedCrossover = new OrderBasedCrossover();
this.orderBasedCrossover.setRandom(random);
}
@Test
public void testSelection() {
String[] clients = new String[] {"a", "b", "c", "d"};
Problem problem = new Problem(10, clients, new int[1], new TFN[11][11]);
Population population = randomPopulation.createInitialPopulation(problem, 2);
for(int i = 0; i < population.size(); i++){
population.get(i).setIdent(i);
}
Individual[] parents = tournament.selection(population);
parents[0].setFitness(10);
parents[1].setFitness(20);
Individual child1 = orderBasedCrossover.cross(parents[0], parents[1]);
child1.setFitness(5);
Individual child2 = orderBasedCrossover.cross(parents[1], parents[0]);
child2.setFitness(25);
List<Individual> aux = new ArrayList<>();
aux.add(child1);
aux.add(child2);
Population children = new Population(aux);
Population newPopulation = tournamentPC.replace(population, children);
assertNotNull(newPopulation);
assertNotEquals(newPopulation, population);
assertNotEquals(newPopulation, children);
assertEquals(2, newPopulation.size());
assertTrue(contains(newPopulation.getPopulation(), parents[0]));
assertTrue(contains(newPopulation.getPopulation(), child1));
}
private boolean contains(List<Individual> population, Individual individual) {
for(Individual ind : population) {
if(ind.equals(individual))
return true;
}
return false;
}
}
| [
"saragleztomillo@gmail.com"
] | saragleztomillo@gmail.com |
124b02ce2042e827f7f07f9617d140c362ced49c | 85fe2cf32021d9a8eebe4b8a24e981ccf700be42 | /QiuZhao/src/Shopee提前批/t1.java | 69b6dbc4e037e35fc82ae6ecb87bac8978b976c2 | [] | no_license | WanGeliang/QiuZhao | 2cfba899a3a278c5adbf7c6f8238d5138c499510 | 67b8499b90fc69bfbeccdee171a564e697018cb7 | refs/heads/master | 2023-07-14T19:32:11.036637 | 2021-08-31T08:30:46 | 2021-08-31T08:30:46 | 401,629,998 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,164 | java | package Shopee提前批;
import java.util.ArrayList;
import java.util.List;
/**
* @author Geliang
* @date 2021-07-19
* @slogan 致敬大师,致敬未来的你!
*/
public class t1 {
public static void main(String[] args) {
t1 me = new t1();
// System.out.println(me.getValue(3, 2));
// List<Integer> list = me.get(3, 2);
// for(int l:list) System.out.println(l);
System.out.println(me
.get(3,2));
}
public int getValue(int rowIndex, int columnIndex) {
// write code here
if(rowIndex/2>=columnIndex){
}else{
columnIndex=rowIndex+1-columnIndex;
}
int ans=1;
int add=rowIndex-2;
for(int i=1;i<=columnIndex-1;i++){
ans+=add;
add-=1;
}
return ans;
}
public int get(int rowIndex, int columnIndex){
List<Integer> ans=new ArrayList<>();
int N=rowIndex-1;
long pre=1;
ans.add(1);
for(int k=1;k<=N;k++){
long cur=pre*(N-k+1)/k;
ans.add((int) cur);
pre=cur;
}
return ans.get(columnIndex-1);
}
}
| [
"wgl0515@163.com"
] | wgl0515@163.com |
9b4c4d1583aa8d18d36efedb797e99002d1dbb55 | 6a1c8540e81a34e315e10c1a33a1202d2f8db8ce | /AdAdmin/src/main/cn/adwalker/model/finance/dao/impl/FinanceAwardDaoImpl.java | 90f523bb6184996b4510bbb317fd81d0bdf108f3 | [] | no_license | springwindyike/ad-server | 7624a3129c705ce5cd97bfe983704d1f29b09889 | c2878216505e5aea7222e830ad759a22fc6a22da | refs/heads/master | 2021-12-11T05:29:26.909006 | 2016-10-24T02:48:55 | 2016-10-24T02:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,035 | java | package cn.adwalker.model.finance.dao.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.stereotype.Repository;
import cn.adwalker.model.finance.dao.IFinanceAwardDao;
import cn.adwalker.model.finance.domain.DevFinanceAward;
import cn.adwalker.model.finance.domain.DevFinanceAwardVoLog;
@Repository("iFinanceAwardDao")
public class FinanceAwardDaoImpl implements IFinanceAwardDao {
@Resource
private JdbcTemplate jdbcTemplate;
@Resource
protected NamedParameterJdbcTemplate namedParameterJdbcTemplate;
@Override
public DevFinanceAward findByTime(String currentTime) {
StringBuffer sql = new StringBuffer();
sql.append("select * from t_manage_finance_award t where t.begin_day <='" + currentTime + " 00:00:00') and t.end_day >='" + currentTime + " 23:59:59')");
List<DevFinanceAward> objects = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<DevFinanceAward>(DevFinanceAward.class));
DevFinanceAward devFinanceAward = null;
if (objects != null && objects.size() > 0) {
devFinanceAward =objects.get(0);
return devFinanceAward;
}
return null;
}
@Override
public void insert(DevFinanceAwardVoLog awardVoLog) {
StringBuffer sql = new StringBuffer();
sql.append(" insert into T_MANAGE_FINANCE_AWARD_LOG(");
sql.append("dev_id,");
sql.append("dev_name,");
sql.append("app_id,");
sql.append("app_name,");
sql.append("award_money)");
sql.append(" values ( ");
sql.append(":dev_id,");
sql.append(":dev_name,");
sql.append(":app_id,");
sql.append(":app_name,");
sql.append(":award_money)");
namedParameterJdbcTemplate.update(sql.toString(), new BeanPropertySqlParameterSource(awardVoLog));
}
@Override
public DevFinanceAwardVoLog findByDevId(Long developerId) {
StringBuffer sql = new StringBuffer();
sql.append("select * from T_MANAGE_FINANCE_AWARD_LOG t where dev_id = '" + developerId + "'");
List<DevFinanceAwardVoLog> objects = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<DevFinanceAwardVoLog>(DevFinanceAwardVoLog.class));
DevFinanceAwardVoLog devFinanceAwardVoLog = null;
if (objects != null && objects.size() > 0) {
devFinanceAwardVoLog = (DevFinanceAwardVoLog) objects.get(0);
return devFinanceAwardVoLog;
}
return null;
}
@Override
public List<DevFinanceAward> findByDate(String startTime, String endTime) {
StringBuffer sql = new StringBuffer();
sql.append("select * from t_manage_finance_award t where (t.begin_day >='" + startTime + "' and t.begin_day <='" + endTime + "') or (t.begin_day <='" + startTime + "' and t.end_day >='" + startTime + "')");
List<DevFinanceAward> objects = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<DevFinanceAward>(DevFinanceAward.class));
List<DevFinanceAward> list = null;
if (objects != null && objects.size() > 0) {
list = objects;
return list;
}
return null;
}
@Override
public void insert(DevFinanceAward awardVo) {
StringBuffer sql = new StringBuffer();
sql.append(" insert into t_manage_finance_award(");
sql.append("award_money,");
sql.append("begin_day,");
sql.append("end_day)");
sql.append(" values ( ");
sql.append(":award_money,");
sql.append(":begin_day,");
sql.append(":end_day)");
jdbcTemplate.update(sql.toString(), new BeanPropertySqlParameterSource(awardVo));
}
@Override
public List<DevFinanceAward> findAll() {
StringBuffer sql = new StringBuffer();
sql.append("select * from t_manage_finance_award");
List<DevFinanceAward> objects = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<DevFinanceAward>(DevFinanceAward.class));
List<DevFinanceAward> list = null;
if (objects != null && objects.size() > 0) {
list = objects;
return list;
}
return null;
}
}
| [
"13565644@qq.com"
] | 13565644@qq.com |
3a22dc9f5ea2e460da1399d6dfe7a73d290efe57 | b1009d6b4f94f0cd1decfdaaf6e1248ca3579188 | /fad/floodlight-nofad/src/main/java/net/floodlightcontroller/packet/BSN.java | aeee6847872d1d2462223cac5a6b1d8fa6530465 | [
"Apache-2.0"
] | permissive | ZXYZXYZXYZXY/FAD | 64912086ee0a8803b7479df1cef6c8ec817b705c | 4deaf9566177f84e6879b780c5e8cb63af4dce3a | refs/heads/master | 2021-01-25T06:55:40.460809 | 2017-06-08T02:00:27 | 2017-06-08T02:00:27 | 93,624,128 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,188 | java | /**
* Copyright 2012, Big Switch Networks, Inc.
*
* 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 net.floodlightcontroller.packet;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import org.projectfloodlight.openflow.types.EthType;
/**
* @author Shudong Zhou (shudong.zhou@bigswitch.com)
*
*/
public class BSN extends BasePacket {
public static final int BSN_MAGIC = 0x20000604;
public static final short BSN_VERSION_CURRENT = 0x0;
public static final short BSN_TYPE_PROBE = 0x1;
public static final short BSN_TYPE_BDDP = 0x2;
public static Map<Short, Class<? extends IPacket>> typeClassMap;
static {
typeClassMap = new HashMap<Short, Class<? extends IPacket>>();
typeClassMap.put(BSN_TYPE_PROBE, BSNPROBE.class);
typeClassMap.put(BSN_TYPE_BDDP, LLDP.class);
}
protected short type;
protected short version;
public BSN() {
version = BSN_VERSION_CURRENT;
}
public BSN(short type) {
this.type = type;
version = BSN_VERSION_CURRENT;
}
public short getType() {
return type;
}
public BSN setType(short type) {
this.type = type;
return this;
}
public short getVersion() {
return version;
}
public BSN setVersion(short version) {
this.version = version;
return this;
}
@Override
public byte[] serialize() {
short length = 4 /* magic */ + 2 /* type */ + 2 /* version */;
byte[] payloadData = null;
if (this.payload != null) {
payload.setParent(this);
payloadData = payload.serialize();
length += payloadData.length;
}
byte[] data = new byte[length];
ByteBuffer bb = ByteBuffer.wrap(data);
bb.putInt(BSN_MAGIC);
bb.putShort(this.type);
bb.putShort(this.version);
if (payloadData != null)
bb.put(payloadData);
if (this.parent != null && this.parent instanceof Ethernet)
((Ethernet)this.parent).setEtherType(EthType.of(Ethernet.TYPE_BSN & 0xffff)); /* treat as unsigned */
return data;
}
@Override
public IPacket deserialize(byte[] data, int offset, int length)
throws PacketParsingException {
ByteBuffer bb = ByteBuffer.wrap(data, offset, length);
int magic = bb.getInt();
if (magic != BSN_MAGIC) {
throw new PacketParsingException("Invalid BSN magic " + magic);
}
this.type = bb.getShort();
this.version = bb.getShort();
if (this.version != BSN_VERSION_CURRENT) {
throw new PacketParsingException(
"Invalid BSN packet version " + this.version + ", should be "
+ BSN_VERSION_CURRENT);
}
IPacket payload;
if (typeClassMap.containsKey(this.type)) {
Class<? extends IPacket> clazz = typeClassMap.get(this.type);
try {
payload = clazz.newInstance();
} catch (Exception e) {
throw new RuntimeException("Error parsing payload for BSN packet" + e);
}
} else {
payload = new Data();
}
this.payload = payload.deserialize(data, bb.position(), bb.limit() - bb.position());
this.payload.setParent(this);
return this;
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
final int prime = 883;
int result = super.hashCode();
result = prime * result + version;
result = prime * result + type;
return result;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (!(obj instanceof BSN))
return false;
BSN other = (BSN) obj;
return (type == other.type &&
version == other.version);
}
public String toString() {
StringBuffer sb = new StringBuffer("\n");
sb.append("BSN packet");
if (typeClassMap.containsKey(this.type))
sb.append(" type: " + typeClassMap.get(this.type).getCanonicalName());
else
sb.append(" type: " + this.type);
return sb.toString();
}
}
| [
"2249602470@qq.com"
] | 2249602470@qq.com |
814b1a2413ba16de7eaa4651a23e38c236a39a34 | 995e655293513d0b9f93d62e28f74b436245ae74 | /src/com/htc/gc/companion/settings/ui/d.java | 92bf8b17c33eecbac2115250a206b1e14a12c8e4 | [] | no_license | JALsnipe/HTC-RE-YouTube-Live-Android | 796e7c97898cac41f0f53120e79cde90d3f2fab1 | f941b64ad6445c0a0db44318651dc76715291839 | refs/heads/master | 2021-01-17T09:46:50.725810 | 2015-01-09T23:32:14 | 2015-01-09T23:32:14 | 29,039,855 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 677 | java | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.htc.gc.companion.settings.ui;
import android.content.DialogInterface;
// Referenced classes of package com.htc.gc.companion.settings.ui:
// EnableBroadcastActivity
class d
implements android.content.DialogInterface.OnClickListener
{
final EnableBroadcastActivity a;
d(EnableBroadcastActivity enablebroadcastactivity)
{
a = enablebroadcastactivity;
super();
}
public void onClick(DialogInterface dialoginterface, int i)
{
}
}
| [
"josh.lieberman92@gmail.com"
] | josh.lieberman92@gmail.com |
a965b3c2f3d20d46cfcb3fc06f380a86f8f5b742 | e88abf08f2aad5aa2de9ee1dc9db25f679284ff1 | /src/com/example/dlcel2/MainActivity.java | 9bd153c574587c505a9b081c4ff55bf09df46961 | [] | no_license | sun1115/dlcel2 | 7ae6fa74e4e317318a691452ac10084f05d7cd6e | 7152aa945b9dd121c06056a48bb18cc276d2678b | refs/heads/master | 2021-01-02T22:45:14.110322 | 2012-11-06T01:26:39 | 2012-11-06T01:26:39 | null | 0 | 0 | null | null | null | null | UHC | Java | false | false | 1,488 | java | package com.example.dlcel2;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
public class MainActivity extends Activity implements OnClickListener{
ImageView img_c, img_u;
Button btn;
TextView txt;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
img_c = (ImageView)findViewById(R.id.imageView1);
img_u = (ImageView)findViewById(R.id.imageView2);
btn = (Button)findViewById(R.id.button1);
txt = (TextView)findViewById(R.id.textView4);
btn.setOnClickListener(this);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
public void onClick(View arg0) {
// TODO Auto-generated method stub
int rand_c = (int)Math.round(Math.random()*5);
int rand_u = (int)Math.round(Math.random()*5);
img_c.setImageResource(R.drawable.dice21+rand_c);
img_u.setImageResource(R.drawable.dice21+rand_u);
if(rand_c>rand_u)
txt.setText("컴퓨터가 이겼습니다.");
else if(rand_u>rand_c)
txt.setText("사용자가 이겼습니다.");
else
txt.setText("비겼습니다.");
}
}
| [
"admin@ST-09"
] | admin@ST-09 |
5dfef450ba8cfcfbfdac31f54388c0887b60ea68 | 965f9c3a1666403bebb13c0ff0729658b35d4570 | /src/main/java/com/bingbing/paper/enumType/EnumBase.java | 347c7f87c00f1333213178ead2bda0a26de12a61 | [] | no_license | Caleder/paper | 0f5f292699cb7cfa1c6f6c6c4db16397f7db7696 | 84ada3012313819a18de167d68e063ed170f4ce0 | refs/heads/master | 2023-04-11T08:50:45.918579 | 2021-04-25T09:50:30 | 2021-04-25T09:50:30 | 358,104,557 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 451 | java | package com.bingbing.paper.enumType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonGetter;
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public interface EnumBase<T> {
/**
*
*
* @return
*/
@JsonGetter("name")
public String name();
/**
*
*
* @return
*/
@JsonGetter("message")
public String message();
/**
*
* @return
*/
@JsonGetter("value")
public T value();
}
| [
"1923943662@qq.com"
] | 1923943662@qq.com |
2f3ba22b30e510232e5e5dc51613a702bc8d046f | 8c956057579b6e4e357424ca312bec55a294b3ee | /ITTC.DataMIning.Core/src/AlgorithmManagement/IProcessManager.java | 9b233d048c702cb43ba8fd037a96c0883446c266 | [] | no_license | SuperAshan/ReposDataMining | fba46458fb6a3d05092b028df5da99a8920b7b99 | acc289c0cc73e258ec972ca4b1f98b122ace2f70 | refs/heads/master | 2021-01-15T13:11:13.004945 | 2013-12-25T02:03:59 | 2013-12-25T02:03:59 | 15,427,864 | 2 | 2 | null | null | null | null | UTF-8 | Java | false | false | 836 | java | package AlgorithmManagement;
import java.util.List;
public interface IProcessManager
{
// / <summary>
// / 当前已经加入的处理方法集合
// / </summary>
Iterable<IDataPorcess> CurrentProcessCollections = null;
// / 通过名称获取处理方法实例
// / </summary>
// / <param name="name"></param>
// / <returns></returns>
IDataPorcess GetOneInstance(String name, Boolean isAddToList);
// / <summary>
// / 开始一项处理任务
// / </summary>
// / <param name="methodNames">任务名称列表</param>
// / <param name="dataSourceName">处理的数据集名称</param>
void LoadOneTask(List<String> methodNames, String dataSourceName,
boolean shouldStart);
// / <summary>
// / 删除一个任务
// / </summary>
// / <param name="process"></param>
void RemoveOneTask(IDataPorcess process);
}
| [
"weitao@weitao-SH67H3.(none)"
] | weitao@weitao-SH67H3.(none) |
1874d982b1e5b8339f0be2ac40a3297e7b060ad2 | e205b58216daf6c02197673fa18af07534752590 | /CommandPattern/src/Main.java | dbea02cafda1a0a674332d916ebbc045ca122cf3 | [] | no_license | bydoov/design-patterns | 6ab58d9bcd51dd54ce3df540389ba96d4c88509e | 933acc80635c6f407ec72d721de5745daafc8a47 | refs/heads/master | 2022-11-06T16:44:56.015126 | 2020-06-21T09:12:39 | 2020-06-21T09:12:39 | 254,641,822 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 546 | java |
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Instructor instructor = new Instructor();
Trainee trainee = new Trainee();
Viewer v1 = new Viewer(trainee);
Viewer v2 = new Viewer(trainee);
Viewer v3 = new Viewer(trainee);
Command changeTrainingToLegni = new Lqgai(trainee);
Command changeTrainingToStani = new Stavai(trainee);
instructor.setCommand(changeTrainingToLegni);
instructor.ChangeTraining();
instructor.setCommand(changeTrainingToStani);
instructor.ChangeTraining();
}
}
| [
"kristian4o98@abv.bg"
] | kristian4o98@abv.bg |
c48290557a5f42ece67d782671d1bdb2625ec26d | 25df1b9632b429d85f0579e59e08586abf751b15 | /Spring/SpringBootWebJDBC/src/main/java/com/example/demo/SpringBootWebJdbcApplication.java | 1c883599f09e68859e98013310c01bd41a77be28 | [] | no_license | kbagyemfra/JavaRepo | 0fc6da167aa87191de22b1e32dee5af9dfc2bb28 | 8fa70c2b66a00bf425d8ca6e38c06c0e363db653 | refs/heads/main | 2023-06-21T04:40:29.326043 | 2021-07-30T20:16:03 | 2021-07-30T20:16:03 | 391,177,323 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 331 | java | package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootWebJdbcApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootWebJdbcApplication.class, args);
}
}
| [
"kbagyemfra@pop-os.localdomain"
] | kbagyemfra@pop-os.localdomain |
419efc51d2de345b5b00b48ed14fb6315853376e | 90571b8e3d7e55af4da61ab73be2d6d8a5a125d6 | /src/main/java/pl/pawel/cqrs/service/PersonService.java | 5949a782e69fce6f46e642e7c4a8774dbdb70fcc | [] | no_license | PawelTo/people-service | 1db990a89d2cc79d5b8f5327b785764428812c1f | ee5de7f29fe3dd3d9fba163caa2812542c846691 | refs/heads/master | 2023-05-31T04:22:51.038151 | 2021-06-22T18:56:08 | 2021-06-22T18:56:08 | 317,396,698 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 568 | java | package pl.pawel.cqrs.service;
import pl.pawel.cqrs.controllers.form.PersonForm;
import pl.pawel.cqrs.controllers.view.PersonView;
import pl.pawel.cqrs.persistence.aggregatestatistic.PersonAggregateStatistics;
import java.util.List;
import java.util.Optional;
public interface PersonService {
PersonView createPerson(PersonForm personForm);
List<PersonView> getAllByName(String name);
List<PersonView> getAll();
List<PersonAggregateStatistics> getAverageSalary();
Optional<PersonAggregateStatistics> getAverageSalaryFor(String name);
}
| [
"pawel.toporowicz@gmail.com"
] | pawel.toporowicz@gmail.com |
b70d48f16f21f9e178df0474623eb81fcbc9b705 | 9a135ab421af8f603bbee06ce6678e16d34601ec | /app/src/main/java/com/hubbox/collectpoint/app/LoginActivity.java | 31ce7c15b217faa53445db776f420ef677152d2d | [] | no_license | v-makarenko/collect_point_hub_box | 388bf4090abd4c55c1359cc5ce8a873b012ad70a | ffad4c77dc69db9495262c6c01a507119492848b | refs/heads/master | 2021-01-19T04:12:58.779455 | 2016-05-03T19:23:33 | 2016-05-03T19:23:33 | 59,963,616 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 757 | java | package com.hubbox.collectpoint.app;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class LoginActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
findViewById(R.id.login_btn).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
((HubBoxApplication)getApplication()).login();
Intent next = new Intent(LoginActivity.this, MainActivity.class);
startActivity(next);
}
});
}
}
| [
"vladimir@makarenko.io"
] | vladimir@makarenko.io |
e0c21c6dc8fd2e4e74f776ca109df3a7355e59de | a784ee7a52920243822dcc2a1ecf7e139ee2668c | /Pro5_igbinake.java | 30825cdfb4eac0afdf2f0e90a0674e839445e034 | [] | no_license | oghosa/TSP-Solver | 2a1fe53375f4c2ae3c284425bd1cf189950da83c | 966a9ff3ca2674e032ac35def11ecc297f5addfd | refs/heads/master | 2020-05-18T10:33:01.201775 | 2015-02-04T07:31:33 | 2015-02-04T07:31:33 | 30,287,361 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,786 | java | import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class Pro5_igbinake {
public static void main(String[] args) {
ArrayList<Graph> G = new ArrayList<Graph>();
NNSolver NN = new NNSolver();
NNFLSolver FL = new NNFLSolver();
NISolver NI = new NISolver();
boolean quit = false;
do{
String menuChoice = getMenuChoice();
performMenuSelection(menuChoice, G, NN, FL, NI);
}while (!quit);
}
public static void displayMenu(){
//Display the menu.
System.out.println(" JAVA TRAVELING SALESMAN PROBLEM V2");
System.out.println("L - Load graphs from file");
System.out.println("I - Display graph info");
System.out.println("C - Clear all graphs");
System.out.println("R - Run all algorithms");
System.out.println("D - Display algorithm performance");
System.out.println("X - Compare average algorithm performance");
System.out.println("Q - Quit");
System.out.println("");
System.out.print("Enter choice: ");
}
public static String getMenuChoice(){
String menuChoice = "";
boolean valid;
do {
valid = true;
displayMenu();
menuChoice = BasicFunctions.getString();
if (valid && (menuChoice.equalsIgnoreCase("L") )) {
menuChoice = "L";
}
else if (valid && (menuChoice.equalsIgnoreCase("I") )) {
menuChoice = "I";
}
else if (valid && (menuChoice.equalsIgnoreCase("C") )) {
menuChoice = "C";
}
else if (valid && (menuChoice.equalsIgnoreCase("R") )) {
menuChoice = "R";
}
else if (valid && (menuChoice.equalsIgnoreCase("D") )) {
menuChoice = "D";
}
else if (valid && (menuChoice.equalsIgnoreCase("X") )) {
menuChoice = "X";
}
else if (valid && (menuChoice.equalsIgnoreCase("Q") )) {
menuChoice = "Q";
}
else {
valid = false;
System.out.printf("\nERROR: Invalid menu choice!\n\n", menuChoice);
}
} while (!valid);
return menuChoice;
}
public static void performMenuSelection(String menuChoice, ArrayList<Graph> G, NNSolver NN, NNFLSolver FL, NISolver NI) {
//L---Load graphs from file
if (menuChoice.equalsIgnoreCase("L")){
if (loadFile(G) == true){
loadSolvers(G, NN, FL, NI);
}
}
//I---Display graph info if graph is loaded
else if (menuChoice.equalsIgnoreCase("I")){
if(isGraphLoaded(G)){
displayGraphs(G);
}
}
//C---Clear all graphs if graph is loaded
else if (menuChoice.equalsIgnoreCase("C")){
if(isGraphLoaded(G)){
clearAllGraphs(G, NN, FL, NI);
}
}
//R---Run nearest neighbor algorithm if graph is loaded
else if (menuChoice.equalsIgnoreCase("R")){
if(isGraphLoaded(G)){
runAll(G, NN, FL, NI);
}
}
//D---Display algorithm performance results exist
else if (menuChoice.equalsIgnoreCase("D")){
if(NN.hasResults() || FL.hasResults() || NI.hasResults()){
printAll(NN, FL, NI);
}
else{
System.out.print("\nERROR: Results do not exist for all algorithms!\n\n");
}
}
//C---Compare average algorithm performance
else if (menuChoice.equalsIgnoreCase("X")){
if(NN.hasResults() || FL.hasResults() || NI.hasResults()){
compare(NN, FL, NI);
}
else{
System.out.print("\nERROR: Results do not exist for all algorithms!\n\n");
}
}
//Q---Quit program
else {
quitProgram();
}
}
public static boolean loadFile(ArrayList<Graph> G) {
//Read in graphs from a user-specified file.
int num_graphsToLoad = 0;
int num_graphsLoaded = 0;
//get filename from user
System.out.println();
System.out.print("Enter file name (0 to cancel): ");
String filename = BasicFunctions.getString();
//Exit if '0' is entered
if ( filename.equals("0")){
System.out.print("\nFile loading process canceled.\n\n");
return false;
}
else {
//Try to load graphs from file
try {
BufferedReader fin = new BufferedReader(new FileReader(filename));
String line;
//File Loading process begins
do{
line = fin.readLine();
if (line != null){
//Increase count of graphs in file at start of every graph
num_graphsToLoad++;
//number of cities
int n = Integer.parseInt(line);
Graph graph = new Graph(n);
//Read Node lines
for(int i = 0; i < n; i++){
line = fin.readLine();
String [] nodeLine = line.split(",");
String name = nodeLine[0];
Double lat = Double.parseDouble(nodeLine[1]);
Double lon = Double.parseDouble(nodeLine[2]);
Node city = new Node(name, lat, lon);
graph.addNode(city);
}
//Read Arc Lines
for (int i = 0; i < n-1; i++){
line = fin.readLine();
String [] arcLine1 = line.split(",");
int [] arcLine = BasicFunctions.convertStringToIntArray(arcLine1);
for (int j = 0; j < arcLine.length; j++){
//DB---System.out.printf("i - %d j - %d\n", i, arcLine[j]);
graph.setArc(i, arcLine[j]-1, true);
}
}
//If graph is valid add to arrayList
if (graph.isValid()){
//DB---System.out.printf("Graph %d is valid\n", num_graphsToLoad);
graph.updateArcsCost();
graph.updateArcsCount();
G.add(graph);
//Increase count of number of graphs loaded
num_graphsLoaded++;
}
else{
//DB---System.out.printf("Graph %d is NOT valid\n", num_graphsToLoad);
}
//Read empty line
line = fin.readLine();
}
}while(line != null);
fin.close();
} catch (FileNotFoundException e) {
System.out.print("\nERROR: File not found!\n\n");
return false;
} catch(IOException e){
System.out.printf("\nERROR: IO exception!\n\n");
return false;
}
}
//Print number of graphs loaded
System.out.printf("\n%d of %d graphs loaded!\n", num_graphsLoaded, num_graphsToLoad);
System.out.println();
return true;
}
public static void loadSolvers(ArrayList<Graph> G, NNSolver NN, NNFLSolver FL, NISolver NI) {
//Initialize Solvers with ArrayList of graphs
NN.init(G);
FL.init(G);
NI.init(G);
}
public static void displayGraphs(ArrayList<Graph> G) {
//Display summary info for each graph, and allow user to select graphs to see detailed info.
int graphChoice;
do {
System.out.println();
printGraphSummary(G);
graphChoice = BasicFunctions.getInteger("Enter graph to see details (0 to quit): ", 0, G.size());
if (graphChoice != 0){
G.get(graphChoice-1).print();
System.out.println();
}
}while (graphChoice != 0);
System.out.println();
}
public static void clearAllGraphs(ArrayList<Graph> G, NNSolver NN, NNFLSolver FL, NISolver NI) {
//Clears all graphs in graph array and resets solver
G.clear();
resetAll(NN, FL, NI);
System.out.println("\nAll graphs cleared.\n");
}
public static void resetAll(NNSolver NN, NNFLSolver FL, NISolver NI){
// Reset all solvers.
NN.reset();
FL.reset();
NI.reset();
}
public static void runAll(ArrayList<Graph> G, NNSolver NN, NNFLSolver FL, NISolver NI){
//Run all solvers on all graphs.
boolean suppressOutput = true;
System.out.println();
for (int i = 0; i < G.size(); i++ ){
//System.out.println("NN__" + (i+1));
NN.run(G, i, suppressOutput);
if(NN.getSolnFound(i) == false){
System.out.printf("ERROR: NN did not find a TSP route for Graph %d!\n", (i+1));
}
}
System.out.println("Nearest neighbor algorithm done.\n");
for (int i = 0; i < G.size(); i++ ){
//System.out.println("FL__" + (i+1));
FL.run(G, i, suppressOutput);
if(FL.getSolnFound(i) == false){
System.out.printf("ERROR: NN-FL did not find a TSP route for Graph %d!\n", (i+1));
}
}
System.out.println("Nearest neighbor first-last algorithm done.\n");
for (int i = 0; i < G.size(); i++ ){
//System.out.println("NI__" + (i+1));
NI.run(G, i, suppressOutput);
if(NI.getSolnFound(i) == false){
System.out.printf("ERROR: NI did not find a TSP route for Graph %d!\n", (i+1));
}
}
System.out.println("Node insertion algorithm done.\n");
}
public static void printAll(NNSolver NN, NNFLSolver FL, NISolver NI){
// Print the detailed results and statistics summaries for all algorithms.
System.out.println();
NN.printAll();
NN.printStats();
System.out.printf("Success rate: %.1f%%\n\n", (100 * NN.successRate()));
System.out.println();
FL.printAll();
FL.printStats();
System.out.printf("Success rate: %.1f%%\n\n", (100 * FL.successRate()));
System.out.println();
NI.printAll();
NI.printStats();
System.out.printf("Success rate: %.1f%%\n\n", (100 * NI.successRate()));
}
public static void compare(NNSolver NN, NNFLSolver FL, NISolver NI){
// Compare the performance of the algorithms and pick winners.
double NNavgCost = NN.avgCost();
double NNavgTime = NN.avgTime();
double NNsuccessRate = 100*NN.successRate();
double FLavgCost = FL.avgCost();
double FLavgTime = FL.avgTime();
double FLsuccessRate = 100*FL.successRate();
double NIavgCost = NI.avgCost();
double NIavgTime = NI.avgTime();
double NIsuccessRate = 100*NI.successRate();
String solvers[] = {"NN", "NN-FL", "NI"};
String winners[] = new String[3];
double costs[] = {NNavgCost, FLavgCost, NIavgCost};
double minCost = BasicFunctions.min(costs);
String costWinnerStr = null;
double times[] = {NNavgTime, FLavgTime, NIavgTime};
double minTime = BasicFunctions.min(times);
String timesWinnerStr = null;
double successs[] = {NNsuccessRate, FLsuccessRate, NIsuccessRate};
double maxSuccess = BasicFunctions.max(successs);
String SuccessWinnerStr = null;
String overallWinner = "Unclear";
//Finding cost Winner
for (int i = 2; i >= 0; i-- ){
if (costs[i] == minCost){
if (i == 0)
costWinnerStr = "NN";
else if (i == 1)
costWinnerStr = "NN-FL";
else if (i == 2)
costWinnerStr = "NI";
}
}
//Finding time Winner
for (int i = 2; i >= 0; i-- ){
if (times[i] == minTime){
if (i == 0)
timesWinnerStr = "NN";
else if (i == 1)
timesWinnerStr = "NN-FL";
else if (i == 2)
timesWinnerStr = "NI";
}
}
//Finding Success Winner
for (int i = 2; i >= 0; i-- ){
if (successs[i] == maxSuccess){
if (i == 0)
SuccessWinnerStr = "NN";
else if (i == 1)
SuccessWinnerStr = "NN-FL";
else if (i == 2)
SuccessWinnerStr = "NI";
}
}
//Setting Winners
for (int i = 0; i < winners.length; i++ ){
if (i == 0)
winners[i] = costWinnerStr;
else if (i == 1)
winners[i] = timesWinnerStr;
else if (i == 2)
winners[i] = SuccessWinnerStr;
}
//Finding Overall Winner
for (String solver : solvers){
int count = 0;
for (String winner : winners){
if (solver.equals(winner)){
count ++;
if (count == 3){
overallWinner = solver;
}
}
}
}
System.out.println();
System.out.println("------------------------------------------------------------");
System.out.println(" Cost (km) Comp time (ms) Success rate (%)");
System.out.println("------------------------------------------------------------");
System.out.printf("NN%18.2f%19.3f%21.1f\n", NNavgCost, NNavgTime, NNsuccessRate);
System.out.printf("NN-FL%15.2f%19.3f%21.1f\n", FLavgCost, FLavgTime, FLsuccessRate);
System.out.printf("NI%18.2f%19.3f%21.1f\n", NIavgCost, NIavgTime, NIsuccessRate);
System.out.println("------------------------------------------------------------");
System.out.printf("Winner%14s%19s%21s\n", winners[0], winners[1], winners[2]);
System.out.println("------------------------------------------------------------");
System.out.printf("Overall winner: %s\n", overallWinner);
System.out.println();
}
public static void quitProgram() {
//Quit Program Method
System.out.println("\nCiao!");
System.exit(0);
}
public static void printGraphSummary(ArrayList<Graph> G) {
//Prints summary of graph array
System.out.println("GRAPH SUMMARY");
System.out.println("No. # nodes # arcs");
System.out.println("------------------------");
for(Graph graph : G){
int index = G.indexOf(graph) + 1;
System.out.printf("%3d%11d%10d\n", index, graph.getN(), graph.getM());
}
System.out.println();
}
public static boolean isGraphLoaded (ArrayList<Graph> G) {
//Check if graph is loaded
if (G.isEmpty()){
System.out.print("\nERROR: No graphs have been loaded!\n\n");
return false;
}
return true;
}
}
| [
"Oghosa@Oghosas-MacBook-Pro.local"
] | Oghosa@Oghosas-MacBook-Pro.local |
4f0cb3c98aea3e542e37f23a6fbb7d32c7f8ca50 | 216a869c86d8a299a2424b2784b8088a052d2efa | /app/src/main/java/project/chasemvp/Model/Events/Socket/SocketEventDistance.java | 4a5a5f26e27234734098aa57c30924020371329b | [] | no_license | Meabo/Chase-Android | 4447e8740ecca07bd08de17fce801d024bfd7f5d | 4b7d41bd516d93371d519c947060680c4a814bc2 | refs/heads/master | 2020-04-08T20:18:24.141058 | 2018-11-29T16:19:27 | 2018-11-29T16:19:27 | 159,693,411 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 307 | java | package project.chasemvp.Model.Events.Socket;
/**
* Created by Mehdi on 22/06/2017.
*/
public class SocketEventDistance
{
double distance;
public double getDistance() {
return distance;
}
public SocketEventDistance(double distance) {
this.distance = distance;
}
}
| [
"aboumehdi.pro@gmail.com"
] | aboumehdi.pro@gmail.com |
c4761c2f39085e561dc579988966eeda9b7fc802 | 7d8dbbcf8fe91b295d6ca8b431d7b5622fca6c30 | /bean/src/main/java/com/example/bean/ResultUtil.java | 9a56eaa44ef06ab9fca8b0ba4b1653a768c3b4ab | [
"MIT"
] | permissive | OnlyIsssilence/spring-boot-modules | 23ec3f7953d079ae05a7e9cb58cd17d1dc0e780c | da3f7662f1371c8ac20e3a73667d74f6df0830bf | refs/heads/master | 2020-07-06T22:53:59.295324 | 2018-08-13T03:20:17 | 2018-08-13T03:20:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 804 | java | package com.example.bean;
import com.alibaba.fastjson.JSON;
public class ResultUtil {
public static Object success(Object object){
Result result=new Result();
result.setCode(0);
result.setMsg(ResultEnums.CODE_SUCCESS.getMsg());
result.setData(object);
return JSON.toJSON(result);
}
public static Object success(){
return success(null);
}
public static Object error(Integer code){
Result result=new Result();
result.setCode(code);
result.setMsg(ResultEnums.msg(code));
return JSON.toJSON(result);
}
public static Object error(Integer code,String msg){
Result result=new Result();
result.setCode(code);
result.setMsg(msg);
return JSON.toJSON(result);
}
}
| [
"51103942@qq.com"
] | 51103942@qq.com |
7fe59588e47fcc916c45ca24ac4a0af0dcbc27e0 | 5ee98105bd14150cfc7fb08c22874d5bdb6a3934 | /src/main/java/DietRunner.java | 8dd5ebf762418f75a500255ef37a693a342ea6e2 | [] | no_license | orhanbalci/fuzzy_moae | a23d13a27d92733cb5a94bd48dce4b21a92bee9f | 8de731b27649ca80c64281d168ca458d44bf765c | refs/heads/master | 2021-09-09T09:26:32.249202 | 2018-03-14T19:21:39 | 2018-03-14T19:21:39 | 108,642,756 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,200 | java | import java.util.List;
import org.uma.jmetal.algorithm.Algorithm;
import org.uma.jmetal.algorithm.multiobjective.nsgaii.NSGAIIBuilder;
import org.uma.jmetal.operator.CrossoverOperator;
import org.uma.jmetal.operator.MutationOperator;
import org.uma.jmetal.operator.SelectionOperator;
import org.uma.jmetal.operator.impl.crossover.SinglePointCrossover;
import org.uma.jmetal.operator.impl.mutation.BitFlipMutation;
import org.uma.jmetal.operator.impl.selection.BinaryTournamentSelection;
import org.uma.jmetal.problem.Problem;
import org.uma.jmetal.runner.AbstractAlgorithmRunner;
import org.uma.jmetal.solution.BinarySolution;
import org.uma.jmetal.util.AlgorithmRunner;
import org.uma.jmetal.util.JMetalLogger;
import org.uma.jmetal.util.ProblemUtils;
public class DietRunner extends AbstractAlgorithmRunner {
public static void run() {
Problem<BinarySolution> problem;
Algorithm<List<BinarySolution>> algorithm;
CrossoverOperator<BinarySolution> crossover;
MutationOperator<BinarySolution> mutation;
SelectionOperator<List<BinarySolution>, BinarySolution> selection;
String problemName = "net.orhanbalci.fuzzymoea.problem.DietProblem";
problem = ProblemUtils.<BinarySolution>loadProblem(problemName);
double crossoverProbability = 0.9;
// double crossoverDistributionIndex = 20.0;
crossover = new SinglePointCrossover(crossoverProbability);
double mutationProbability = 1.0 / problem.getNumberOfVariables();
// double mutatationDistributionIndex = 20.0;
mutation = new BitFlipMutation(mutationProbability);
selection = new BinaryTournamentSelection<BinarySolution>();
algorithm =
new NSGAIIBuilder<BinarySolution>(problem, crossover, mutation)
.setSelectionOperator(selection)
.setMaxEvaluations(25000)
.setPopulationSize(100)
.build();
AlgorithmRunner algorithmRunner = new AlgorithmRunner.Executor(algorithm).execute();
List<BinarySolution> population = algorithm.getResult();
long computingTime = algorithmRunner.getComputingTime();
JMetalLogger.logger.info("Total execution time : " + computingTime + "ms");
printFinalSolutionSet(population);
}
}
| [
"orhanbalci@gmail.com"
] | orhanbalci@gmail.com |
5f0161e6bbb917b1b2b69836a0a1121f72275680 | 5eda5d5684ff59cb3056ef7b3c67f7c53bb8cba6 | /src/curso/util/util.java | 7f86a2415d750dc9edb8d6390015b55842ae1d74 | [] | no_license | bryan201887/POO1 | 0235ec136e23c04e396102e4372709802eee5375 | 0c0f869c693c57a10b18dfe88b0cbc511b6ea2f0 | refs/heads/master | 2022-11-25T07:01:08.625735 | 2020-07-26T05:47:28 | 2020-07-26T05:47:28 | 282,584,188 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 283 | java |
package curso.util;
/**
*
* @author Bryan Villacicencio
*/
public class util {
public static String url = "jdbc:postgresql://localhost:5432/cursoonline";
public static String user = "postgres";
public static String password = "1234";
}
| [
"bryan.villavicencios@ug.edu.ec"
] | bryan.villavicencios@ug.edu.ec |
95b531d21deefac040cb592ee1adff13c4893446 | a3ae2b20d1dd230404cc86148fa83725670a46fc | /ri.api.manager/src/main/java/org/universAAL/ri/api/manager/push/PushHTTP.java | d7eb4c6c51f14dd347d91e7d84b1dd1a6d81c555 | [
"Apache-2.0"
] | permissive | HalasNet/remote | c6d011303da6bee776170826e6edb5845310974b | 1128120d40bc690d0ffd1a526af06c20bcecd559 | refs/heads/master | 2021-01-13T12:44:24.777389 | 2016-10-24T10:51:06 | 2016-10-24T10:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,808 | java | /*
Copyright 2014 ITACA-TSB, http://www.tsb.upv.es
Instituto Tecnologico de Aplicaciones de Comunicacion
Avanzadas - Grupo Tecnologias para la Salud y el
Bienestar (TSB)
See the NOTICE file distributed with this work for additional
information regarding copyright ownership
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.universAAL.ri.api.manager.push;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.universAAL.middleware.context.ContextEvent;
import org.universAAL.middleware.rdf.Resource;
import org.universAAL.middleware.rdf.TypeMapper;
import org.universAAL.middleware.service.CallStatus;
import org.universAAL.middleware.service.ServiceCall;
import org.universAAL.middleware.service.ServiceResponse;
import org.universAAL.middleware.service.owls.process.OutputBinding;
import org.universAAL.middleware.service.owls.process.ProcessOutput;
import org.universAAL.ri.api.manager.Activator;
import org.universAAL.ri.api.manager.Configuration;
import org.universAAL.ri.api.manager.RemoteAPI;
import org.universAAL.ri.api.manager.exceptions.PushException;
import org.universAAL.ri.api.manager.server.Base64;
/**
* Class that manages the push of callbacks to client remote node endpoints
* using HTTP.
* @author alfiva
*
*/
public class PushHTTP {
/**
* Build a Context Event callback message and send it to the client remote
* node endpoint through HTTP.
*
* @param remoteid
* The client remote node endpoint
* @param event
* The serialized Context Event to send
* @param toURI
*/
public static void sendC(String remoteid, ContextEvent event, String toURI) throws PushException {
StringBuilder strb = new StringBuilder();
strb.append(RemoteAPI.KEY_METHOD).append("=").append(RemoteAPI.METHOD_SENDC)
.append("&").append(RemoteAPI.KEY_PARAM).append("=").append(Activator.getParser().serialize(event))
.append("&").append(RemoteAPI.KEY_TO).append("=").append(toURI)
.append("&").append(ContextEvent.PROP_RDF_SUBJECT).append("=").append(event.getSubjectURI())
.append("&").append(ContextEvent.PROP_RDF_PREDICATE).append("=").append(event.getRDFPredicate())
.append("&").append(ContextEvent.PROP_RDF_OBJECT).append("=").append(event.getRDFObject().toString());
if(Configuration.getLogDebug()){
Activator.logI("PushHTTP.sendC", "Sending message to remote node > SENDC, body: "+strb.toString());
}
try {
send(remoteid, strb.toString());
} catch (MalformedURLException e) {
throw new PushException("Unable to send message to malformed URL: "+e.getMessage());
} catch (IOException e) {
throw new PushException("Unable to send message through communication channel: "+e.getMessage());
}
}
/**
* Build a ServiceCall callback message and send it to the client remote
* node endpoint through HTTP.
*
* @param remoteid
* The client remote node endpoint
* @param call
* The serialized Service Call to send
* @param toURI
* @return The Service Response that the client remote node will have sent
* as response to the callback
*/
public static ServiceResponse callS(String remoteid, ServiceCall call, String toURI) throws PushException {
ServiceResponse sr = new ServiceResponse(CallStatus.serviceSpecificFailure);
StringBuilder strb = new StringBuilder();
strb.append(RemoteAPI.KEY_METHOD).append("=").append(RemoteAPI.METHOD_CALLS)
.append("&").append(RemoteAPI.KEY_PARAM).append("=").append(Activator.getParser().serialize(call))
.append("&").append(RemoteAPI.KEY_TO).append("=").append(toURI);
List inputs = (List) call.getProperty(ServiceCall.PROP_OWLS_PERFORM_HAS_DATA_FROM);
if (inputs != null) {
for (Iterator i = inputs.iterator(); i.hasNext();) {
Resource binding = (Resource) i.next(), in = (Resource) binding
.getProperty(OutputBinding.PROP_OWLS_BINDING_TO_PARAM);
if (in != null) {
strb.append("&").append(in.getURI()).append("=")
.append(call.getInputValue(in.getURI()));
}
}
}
if(Configuration.getLogDebug()){
Activator.logI("PushHTTP.callS", "Sending message to remote node > CALLS, body: " + strb.toString());
}
try {
String response = send(remoteid, strb.toString());
InputStreamReader ir = new InputStreamReader(
new ByteArrayInputStream(response.getBytes()));
BufferedReader br = new BufferedReader(ir);
String line;
line = br.readLine();
while (line != null && !line.equals(RemoteAPI.FLAG_TURTLE)) {
String[] parts = line.split("=", 2);
if (parts.length == 2) {
if (!parts[0].equals(RemoteAPI.KEY_STATUS)) { //If status, we already handle with the serialized
String[] resource = parts[1].split("@", 2);
if (resource.length != 2)
throw new PushException("Required Outputs are not properly defined. " +
"They must be in the form instanceURI@typeURI");
if(resource[0].startsWith("[")){//Its a list
String[] list=resource[0].replace("[", "").replace("]","").trim().split(",");
ArrayList listouts=new ArrayList(list.length);
for(int i=0;i<list.length;i++){
if (resource[1].startsWith("http://www.w3.org/2001/XMLSchema")) {//Its datatypes
listouts.add(TypeMapper.getJavaInstance(resource[0], resource[1]));
}else{//Its resources
listouts.add(Resource.getResource(resource[1], resource[0]));
}
}
sr.addOutput(new ProcessOutput(parts[0],listouts));
}else{
if(resource[1].startsWith("http://www.w3.org/2001/XMLSchema")){
sr.addOutput(new ProcessOutput(parts[0],TypeMapper.getJavaInstance(resource[0], resource[1])));
}else{
sr.addOutput(new ProcessOutput(parts[0], Resource.getResource(resource[1], resource[0])));
}
}
}
}
line = br.readLine();
}
strb = new StringBuilder();
while (line != null) {
// We only get here if there was something after TURTLE (and there was TURTLE)
line = br.readLine();
if (line != null)
strb.append(line);
}
br.close();
String serialized = strb.toString();
if (serialized.length() > 1) {
Object parsedsr = Activator.getParser().deserialize(serialized);
if (parsedsr instanceof ServiceResponse) {
return (ServiceResponse) parsedsr;
}
}
sr = new ServiceResponse(CallStatus.succeeded);
} catch (MalformedURLException e) {
sr = new ServiceResponse(CallStatus.serviceSpecificFailure);
e.printStackTrace();
} catch (SocketTimeoutException e) {
sr = new ServiceResponse(CallStatus.responseTimedOut);
e.printStackTrace();
} catch (IOException e) {
sr = new ServiceResponse(CallStatus.serviceSpecificFailure);
e.printStackTrace();
}
return sr;
}
/**
* Method that performs the actual sending of a HTTP POST request to the
* client remote node endpoint.
*
* @param remoteid
* The client remote node endpoint
* @param body
* The body of the HTTP POST, containing the formatted parameters
* @return The String representation of the HTTP response, which will be
* empty for Context Event callbacks
* @throws IOException
* If there was a problem in the connection sending or receivng
* information
* @throws MalformedURLException
* If the URL to the client remote node endpoint could not be
* built
*/
private static String send(String remoteid, String body) throws IOException, MalformedURLException {
URL url = new URL(remoteid);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
String auth=Base64.encodeBytes(("Basic "+Configuration.getServerUSR()+":"+Configuration.getServerPWD()).getBytes("UTF-8"));
byte[] data = body.getBytes(Charset.forName("UTF-8"));
conn.setRequestMethod("POST");
conn.setInstanceFollowRedirects(false);
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setUseCaches(false);
conn.setReadTimeout(30000);
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
conn.setRequestProperty("charset", "utf-8");
conn.setRequestProperty("Content-Length", "" + Integer.toString(data.length));
conn.setRequestProperty("Authorization", auth);
// conn.getOutputStream().write(data);
// conn.disconnect();
DataOutputStream wr = new DataOutputStream(conn.getOutputStream());
wr.write(data);
wr.flush();
wr.close();
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line, response = "";
while ((line = rd.readLine()) != null) {
response = response + line + "\n";
}
rd.close();
return response;
}
}
| [
"alfiva@itaca.upv.es"
] | alfiva@itaca.upv.es |
fde054384c6e193e7d88c16d91b174112a242483 | 12da9d5cfaec4a452dbce1941c016b0d6aff3a88 | /LC 241 Different Ways to Add Parentheses/code.java | f4d39530d34d5f8f4e9e884d24d9578a1c73cf6a | [] | no_license | dxxConan/Leetcode-interesting-questions | 42d83afdd0cfe17e5ed837ce67e46aed1917e2e8 | f82d660a9bc08de618bf0d230e7446a4144a2c13 | refs/heads/master | 2021-01-20T14:47:28.404420 | 2017-10-09T22:21:37 | 2017-10-09T22:21:37 | 90,660,984 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,234 | java | public List<Integer> diffWaysToCompute(String input) {
List<Integer> result = new ArrayList<>();
for(int i = 0; i < input.length(); i++){
char c = input.charAt(i);
if(c == '-' || c == '+' || c == '*'){
String firstPart = input.substring(0, i);
String secondPart = input.substring(i+1);
List<Integer> firstPartResult = diffWaysToCompute(firstPart);
List<Integer> secondPartResult = diffWaysToCompute(secondPart);
//add all possible combinations to result
for(int first : firstPartResult){
for(int second: secondPartResult){
if(c == '-'){
result.add(first - second);
}else if(c == '+'){
result.add(first + second);
}else if(c == '*'){
result.add(first * second);
}
}
}
}
}
//only a number without any operation sign
if (result.size() == 0){
result.add(Integer.parseInt(input));
}
return result;
} | [
"dxx140230@utdallas.edu"
] | dxx140230@utdallas.edu |
171b1c1fa5d6c456d881316edd80a03847ec6f3a | ef28a315822294b1cd4c1627b042071639e2085b | /ParentParadiseWeb/src/com/project/pp/main/Member.java | e940236948827b513a0060d0139c5d29ad038eff | [] | no_license | BP104-PP/ParentParadise | dc4168d31a2c378a4f6a57350192c4d03c022872 | 6d4ea82f621c17f1d9a1a861f91c23bc95238fe0 | refs/heads/master | 2021-05-14T10:39:24.171072 | 2018-01-11T05:29:52 | 2018-01-11T05:29:52 | 116,360,163 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,945 | java | package com.project.pp.main;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.project.pp.utl.DbUtl;
public class Member {
private int member_no;
private String acc_code;
private String last_name;
private String first_name;
private String mb_sex;
private String mb_phone;
private String city_code;
private String dist_code;
private Blob mb_photo;
public Member getMemberInfo(int memberNo) {
Member mb = new Member();
String sql = "SELECT * " + " FROM member" + " WHERE member_no = ?";
System.out.println("SQL command: " + sql);
Connection conn = null;
PreparedStatement pstamt = null;
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection(DbUtl.URL, DbUtl.USER, DbUtl.PASSWORD);
pstamt = conn.prepareStatement(sql);
pstamt.setInt(1, memberNo);
ResultSet rs = pstamt.executeQuery();
rs.next();
mb.setMember_no(memberNo);
mb.setAcc_code(rs.getString("acc_code"));
mb.setLast_name(rs.getString("last_name"));
mb.setFirst_name(rs.getString("first_name"));
mb.setMb_sex(rs.getString("mb_sex"));
mb.setMb_phone(rs.getString("mb_phone"));
mb.setCity_code(rs.getString("city_code"));
mb.setDist_code(rs.getString("dist_code"));
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (pstamt != null)
pstamt.close();
if (conn != null)
conn.close();
} catch (SQLException e) {
System.out.println("url: " + DbUtl.URL + ", user: " + DbUtl.USER + ", pwd: " + DbUtl.PASSWORD);
e.printStackTrace();
}
}
return mb;
}
public int getMebmer_no() {
return member_no;
}
public void setMember_no(int member_no) {
this.member_no = member_no;
}
public String getAcc_code() {
return acc_code;
}
public void setAcc_code(String acc_code) {
this.acc_code = acc_code;
}
public String getLast_name() {
return last_name;
}
public void setLast_name(String last_name) {
this.last_name = last_name;
}
public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public String getMb_sex() {
return mb_sex;
}
public void setMb_sex(String mb_sex) {
this.mb_sex = mb_sex;
}
public String getMb_phone() {
return mb_phone;
}
public void setMb_phone(String mb_phone) {
this.mb_phone = mb_phone;
}
public String getCity_code() {
return city_code;
}
public void setCity_code(String city_code) {
this.city_code = city_code;
}
public String getDist_code() {
return dist_code;
}
public void setDist_code(String dist_code) {
this.dist_code = dist_code;
}
public Date getMb_birthday() {
return mb_birthday;
}
public void setMb_birthday(Date mb_birthday) {
this.mb_birthday = mb_birthday;
}
private Date mb_birthday;
}
| [
"lin@linyuchengde-MacBook-Pro.local"
] | lin@linyuchengde-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.