blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 131 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 32 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 313 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7be1863de48a0601543e3e86213664197d14561 | 2d99021fc18dd709ca5dc2f9c1c4272b81e54e2b | /app/src/main/java/com/theflopguyproductions/ticktrack/utils/database/TickTrackFirebaseDatabase.java | dfa0c3a5bb3122f2b5a89d37e9c3c6b2152ea16e | [
"Apache-2.0"
] | permissive | JansenSmith/TickTrack-RealtimeBudget | b2a932bdf5d151cb08253fa053c63e567b6acc59 | 56052528e6095534c4037f44b6a11d0601dd6f1e | refs/heads/master | 2023-03-18T19:45:31.506426 | 2020-10-04T08:39:00 | 2020-10-04T08:39:00 | 570,986,861 | 1 | 0 | Apache-2.0 | 2022-11-26T19:30:22 | 2022-11-26T19:30:21 | null | UTF-8 | Java | false | false | 17,269 | java | package com.theflopguyproductions.ticktrack.utils.database;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.util.Log;
import androidx.core.os.BuildCompat;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.theflopguyproductions.ticktrack.counter.CounterBackupData;
import com.theflopguyproductions.ticktrack.receivers.BackupScheduleReceiver;
import com.theflopguyproductions.ticktrack.settings.SettingsData;
import com.theflopguyproductions.ticktrack.timer.data.TimerBackupData;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Random;
public class TickTrackFirebaseDatabase {
private SharedPreferences sharedPreferences;
private Context context;
public SharedPreferences getSharedPref(Context context){
Context storageContext;
if (BuildCompat.isAtLeastN()) {
final Context deviceContext = context.createDeviceProtectedStorageContext();
if (!deviceContext.moveSharedPreferencesFrom(context,
"TickTrackData")) {
Log.w("TAG", "Failed to migrate shared preferences.");
}
storageContext = deviceContext;
} else {
storageContext = context;
}
return storageContext
.getSharedPreferences("TickTrackData", Context.MODE_PRIVATE);
}
public TickTrackFirebaseDatabase(Context context) {
this.context = context;
Context storageContext;
if (Build.VERSION.SDK_INT >= 24) {
final Context deviceContext = context.createDeviceProtectedStorageContext();
if (!deviceContext.moveSharedPreferencesFrom(context,
"TickTrackData")) {
Log.w("TAG", "Failed to migrate shared preferences.");
}
storageContext = deviceContext;
} else {
storageContext = context;
}
sharedPreferences = storageContext
.getSharedPreferences("TickTrackData", Context.MODE_PRIVATE);
}
public void storeCurrentUserEmail(String email){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString("currentUserEmail", email);
editor.apply();
}
public String getCurrentUserEmail(){
return sharedPreferences.getString("currentUserEmail","Add an account");
}
public void setPreferencesDataBackup(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("preferencesDataBackup", id);
editor.apply();
}
public void setRestoreInitMode(int value){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("restoreInitMode", value);
editor.apply();
}
public int isRestoreInitMode(){
return sharedPreferences.getInt("restoreInitMode",0);
}
public void setRestoreMode(boolean value){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("restoreMode", value);
editor.apply();
}
public boolean isRestoreMode(){
return sharedPreferences.getBoolean("restoreMode",false);
}
public void setBackupMode(boolean value){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("backupMode", value);
editor.apply();
}
public boolean isBackupMode(){
return sharedPreferences.getBoolean("backupMode",false);
}
public void setCounterDataRestore(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("foundCounterDataBackup", id);
editor.apply();
}
public boolean isCounterDataRestored(){
return sharedPreferences.getBoolean("foundCounterDataBackup",false);
}
public void setTimerDataRestore(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("foundTimerDataBackup", id);
editor.apply();
}
public boolean isTimerDataRestored(){
return sharedPreferences.getBoolean("foundTimerDataBackup",false);
}
public void setCounterDataRestoreError(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("foundCounterDataBackupError", id);
editor.apply();
}
public boolean isCounterDataRestoreError(){
return sharedPreferences.getBoolean("foundCounterDataBackupError",false);
}
public void setTimerDataBackupError(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("foundTimerDataBackupError", id);
editor.apply();
}
public boolean isTimerDataRestoreError(){
return sharedPreferences.getBoolean("foundTimerDataBackupError",false);
}
public void foundPreferencesDataBackup(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("foundPreferencesDataBackup", id);
editor.apply();
}
public boolean hasPreferencesDataBackup(){
return sharedPreferences.getBoolean("foundPreferencesDataBackup",false);
}
public void setRestoreThemeMode(int mode){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("restoreThemeMode", mode);
editor.apply();
}
public int getRestoreThemeMode(){
return sharedPreferences.getInt("restoreThemeMode",-1);
}
public void completeTimerDataRestore(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("completeTimerDataRestore", id);
editor.apply();
}
public boolean isTimerDataRestoreComplete(){
return sharedPreferences.getBoolean("completeTimerDataRestore",false);
}
public void completePreferencesDataRestore(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("completePreferencesDataRestore", id);
editor.apply();
}
public boolean isPreferencesDataRestoreComplete(){
return sharedPreferences.getBoolean("completePreferencesDataRestore",false);
}
public void storeRetrievedTimerCount(int id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("retrievedTimerCount", id);
editor.apply();
}
public int getRetrievedTimerCount(){
return sharedPreferences.getInt("retrievedTimerCount",-1);
}
public void storeRetrievedCounterCount(int id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("retrievedCounterCount", id);
editor.apply();
}
public int getRetrievedCounterCount(){
return sharedPreferences.getInt("retrievedCounterCount",-1);
}
public void storeRetrievedLastBackupTime(long timeStamp){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putLong("retrievedLastBackupTime", timeStamp);
editor.apply();
}
public long getRetrievedLastBackupTime(){
return sharedPreferences.getLong("retrievedLastBackupTime", -1);
}
public void storeSettingsRestoredData(ArrayList<SettingsData> settingsData){
SharedPreferences.Editor editor = sharedPreferences.edit();
Gson gson = new Gson();
String json = gson.toJson(settingsData);
editor.putString("settingsRestoreData", json);
editor.apply();
}
public ArrayList<SettingsData> retrieveSettingsRestoredData(){
Gson gson = new Gson();
String json = sharedPreferences.getString("settingsRestoreData", null);
Type type = new TypeToken<ArrayList<SettingsData>>() {}.getType();
ArrayList<SettingsData> settingsData = gson.fromJson(json, type);
if(settingsData == null){
settingsData = new ArrayList<>();
}
return settingsData;
}
public void setRestoreCompleteStatus(int mode){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("RestoreCompleteStatus", mode);
editor.apply();
}
public int getRestoreCompleteStatus(){
return sharedPreferences.getInt("RestoreCompleteStatus",0);
}
public void setCounterDownloadStatus(int mode){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("CounterDownloadStatus", mode);
editor.apply();
}
public int getCounterDownloadStatus(){
return sharedPreferences.getInt("CounterDownloadStatus",0);
}
public void setTimerDownloadStatus(int mode){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putInt("TimerDownloadStatus", mode);
editor.apply();
}
public int getTimerDownloadStatus(){
return sharedPreferences.getInt("TimerDownloadStatus",0);
}
public void storeBackupTimerList(ArrayList<TimerBackupData> timerDataArrayList){
SharedPreferences.Editor editor = sharedPreferences.edit();
Gson gson = new Gson();
String json = gson.toJson(timerDataArrayList);
editor.putString("TimerBackupData", json);
editor.apply();
}
public ArrayList<TimerBackupData> retrieveBackupTimerList(){
Gson gson = new Gson();
String json = sharedPreferences.getString("TimerBackupData", null);
Type type = new TypeToken<ArrayList<TimerBackupData>>() {}.getType();
ArrayList<TimerBackupData> timerDataArrayList = gson.fromJson(json, type);
if(timerDataArrayList == null){
timerDataArrayList = new ArrayList<>();
}
return timerDataArrayList;
}
public void storeBackupCounterList(ArrayList<CounterBackupData> counterBackupData){
SharedPreferences.Editor editor = sharedPreferences.edit();
Gson gson = new Gson();
String json = gson.toJson(counterBackupData);
editor.putString("CounterBackupData", json);
editor.apply();
}
public ArrayList<CounterBackupData> retrieveBackupCounterList(){
Gson gson = new Gson();
String json = sharedPreferences.getString("TimerBackupData", null);
Type type = new TypeToken<ArrayList<CounterBackupData>>() {}.getType();
ArrayList<CounterBackupData> counterBackupData = gson.fromJson(json, type);
if(counterBackupData == null){
counterBackupData = new ArrayList<>();
}
return counterBackupData;
}
public void storeCounterRestoreString(String counterData){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString("counterRestoreString", counterData);
editor.apply();
}
public String getCounterRestoreString(){
return sharedPreferences.getString("counterRestoreString", null);
}
public void storeTimerRestoreString(String timerData){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString("timerRestoreString", timerData);
editor.apply();
}
public String getTimerRestoreString(){
return sharedPreferences.getString("timerRestoreString", null);
}
public void setCounterBackupComplete(boolean value){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("counterBackupComplete", value);
editor.apply();
}
public boolean isCounterBackupComplete(){
return sharedPreferences.getBoolean("counterBackupComplete", false);
}
public void setTimerBackupComplete(boolean value){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("timerBackupComplete", value);
editor.apply();
}
public boolean isTimerBackupComplete(){
return sharedPreferences.getBoolean("timerBackupComplete", false);
}
public void setSettingsBackupComplete(boolean value){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("settingsBackupComplete", value);
editor.apply();
}
public boolean isSettingsBackupComplete(){
return sharedPreferences.getBoolean("settingsBackupComplete", false);
}
public void setBackUpAlarm(boolean isNowBackup){
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(System.currentTimeMillis());
Random r = new Random();
int hourRandom = r.nextInt(24);
int minuteRandom = r.nextInt(59);
int localHourPicked = new TickTrackDatabase(context).getBackupHour();
int localMinutePicked = new TickTrackDatabase(context).getBackupMinute();
if(localHourPicked==-1){
new TickTrackDatabase(context).storeBackupHour(hourRandom);
}
if(localMinutePicked==-1){
new TickTrackDatabase(context).storeBackupMinute(minuteRandom);
}
calendar.set(Calendar.HOUR_OF_DAY, hourRandom);
calendar.set(Calendar.MINUTE, minuteRandom);
calendar.set(Calendar.SECOND, 0);
int intervalRange = new TickTrackDatabase(context).getSyncFrequency();
long intervalTimeInMillis;
if(intervalRange== SettingsData.Frequency.DAILY.getCode()){
if(Calendar.getInstance().after(calendar)){
calendar.add(Calendar.DATE, 1);
}
intervalTimeInMillis = 24*60*60*1000L;
} else if(intervalRange== SettingsData.Frequency.MONTHLY.getCode()){
calendar.set(Calendar.DAY_OF_MONTH, 1);
if(Calendar.getInstance().after(calendar)){
calendar.add(Calendar.MONTH, 1);
}
intervalTimeInMillis = 30*24*60*60*1000L;
} else if(intervalRange== SettingsData.Frequency.WEEKLY.getCode()){
calendar.set(Calendar.DAY_OF_WEEK, 1);
if(Calendar.getInstance().after(calendar)){
calendar.add(Calendar.WEEK_OF_YEAR, 1);
}
intervalTimeInMillis = 7*24*60*60*1000L;
} else {
if(Calendar.getInstance().after(calendar)){
calendar.add(Calendar.DATE, 1);
}
intervalTimeInMillis = 24*60*60*1000L;
}
AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(BackupScheduleReceiver.START_BACKUP_SCHEDULE);
intent.setClassName("com.theflopguyproductions.ticktrack", "com.theflopguyproductions.ticktrack.receivers.BackupScheduleReceiver");
intent.setPackage("com.theflopguyproductions.ticktrack");
// intent.setClass(context, BackupScheduleReceiver.class);
// intent.setAction(BackupScheduleReceiver.START_BACKUP_SCHEDULE);
// intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
PendingIntent alarmPendingIntent = PendingIntent.getBroadcast(context, 212206, intent, 0);
alarmManager.setRepeating(
AlarmManager.RTC,
calendar.getTimeInMillis(),
intervalTimeInMillis,
// System.currentTimeMillis()+(1000*60*10),
// 10*60*1000,
alarmPendingIntent
);
if(isNowBackup){
Intent intentNow = new Intent(BackupScheduleReceiver.START_BACKUP_SCHEDULE);
intentNow.setClassName("com.theflopguyproductions.ticktrack", "com.theflopguyproductions.ticktrack.receivers.BackupScheduleReceiver");
intentNow.setPackage("com.theflopguyproductions.ticktrack");
context.sendBroadcast(intentNow);
}
}
public void cancelBackUpAlarm(){
AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(context, BackupScheduleReceiver.class);
intent.setAction(BackupScheduleReceiver.START_BACKUP_SCHEDULE);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
PendingIntent alarmPendingIntent = PendingIntent.getBroadcast(context, 212206, intent, 0);
alarmManager.cancel(alarmPendingIntent);
}
public void setDriveLinkFail(boolean id){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("setDriveLinkFail", id);
editor.apply();
}
public boolean isDriveLinkFail(){
return sharedPreferences.getBoolean("setDriveLinkFail",false);
}
public void setRetryAlarm() {
AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(BackupScheduleReceiver.START_BACKUP_SCHEDULE);
intent.setClassName("com.theflopguyproductions.ticktrack", "com.theflopguyproductions.ticktrack.receivers.BackupScheduleReceiver");
intent.setPackage("com.theflopguyproductions.ticktrack");
PendingIntent alarmPendingIntent = PendingIntent.getBroadcast(context, 825417, intent, 0);
alarmManager.setExact(
AlarmManager.RTC,
System.currentTimeMillis()+(1000*60*5),
alarmPendingIntent);
}
}
| [
"theflopguymail@gmail.com"
] | theflopguymail@gmail.com |
8f915eb0854ff0a7a465d7d02ca5b755cee34d88 | d2104a217e8d501d5e644b49c5919eb3bbaa0f3e | /src/main/java/com/wonderlabz/bankservice/entities/Transactions.java | 30d3a33ae8a49c0b1a60645557889779c983aec3 | [] | no_license | JuvieJavaRed/bankservice | 4385a7b7b0c2dd02bf2a79353a893493a033ace6 | 859817a648c3a4e83a202bf5fef6a459692aa68d | refs/heads/main | 2023-07-25T00:30:14.474421 | 2021-09-06T07:32:54 | 2021-09-06T07:32:54 | 403,333,200 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 950 | java | package com.wonderlabz.bankservice.entities;
import com.wonderlabz.bankservice.util.AccounTypes;
import lombok.Data;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Entity
@Data
@Table(name = "transactions")
public class Transactions {
@Id
@Column(name="transactionId")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long transactionId;
@Column(name ="email")
private String email;
@Column(name="transactionDate")
private LocalDateTime localDate;
@Column (name="accountType")
private AccounTypes accountType;
@Column (name ="accountNumber")
private long accountNumber;
@Column(name="openingBalance")
private BigDecimal openingBalance;
@Column(name = "withdrawal")
private BigDecimal withdrawal;
@Column(name="deposit")
private BigDecimal deposit;
@Column(name = "balance")
private BigDecimal balance;
}
| [
"mthokozisi.nyoni@gmail.com"
] | mthokozisi.nyoni@gmail.com |
a5f9b37f28d39a8f4f2d83365a0631d0177afb98 | 22e3736f49c7cda093a7f7768efde2a50e702d99 | /projects/core/src/main/java/am/app/mappingEngine/qualityEvaluation/metrics/IntraCouplingQualityMetric.java | 003943cb4844dcd1e4704386c454b8fbe46ef564 | [
"NCSA"
] | permissive | agreementmaker/agreementmaker | 66e5b96573da5845b2cfdb9bb63c7080fbccff27 | 4c5504573a45391c1d635c19b3e57435d7ed3433 | refs/heads/master | 2021-06-16T22:14:02.830469 | 2021-03-01T05:09:56 | 2021-03-01T05:09:56 | 41,654,345 | 35 | 27 | NOASSERTION | 2021-03-01T05:07:31 | 2015-08-31T03:43:06 | Java | UTF-8 | Java | false | false | 2,021 | java | package am.app.mappingEngine.qualityEvaluation.metrics;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import am.app.mappingEngine.AbstractMatcher;
import am.app.mappingEngine.Mapping;
import am.app.mappingEngine.qualityEvaluation.AbstractQualityMetric;
import am.app.mappingEngine.qualityEvaluation.QualityEvaluationData;
import am.app.mappingEngine.similarityMatrix.SimilarityMatrix;
import am.app.ontology.Node;
public class IntraCouplingQualityMetric extends AbstractQualityMetric
{
private HashMap<Node, Integer> hm=new HashMap<>();
public HashMap<Node, Integer> getHm() {
return hm;
}
/**
* FIXME Implements metric for property also
*
*/
@Override
public QualityEvaluationData getQuality(AbstractMatcher matcher) throws Exception
{
QualityEvaluationData q = new QualityEvaluationData();
q.setLocal(false); // this is a Global Quality Metric
List<Node> ndList=new ArrayList<Node>();
// Compute the Global Quality for the matrix
Node nd;
int tmp;
// Take the similarity matrix of the matcher
SimilarityMatrix sm = matcher.getClassesMatrix();
for(int i=0;i<sm.getRows();i++)
{
// For Each row take the column with the higher value
Mapping[] maxMapping = sm.getRowMaxValues(i, 1);
nd= maxMapping[0].getEntity2();
// count the different elements found
if(hm.containsKey(nd))
{
tmp=hm.get(nd).intValue();
hm.put(nd, new Integer(++tmp));
}
else
{
ndList.add(nd);
hm.put(nd, new Integer(1));
}
}
//divide the different element found per the total amount of element
//a good matcher should be have few similar elements
//System.out.println("Different "+hm.size());
//System.out.println("Total "+sm.getRows());
q.setGlobalClassMeasure((double)hm.size()/sm.getRows());
/*
double[] localMeasure=new double[sm.getRows()];
for (int i=0;i<ndList.size();i++)
{
localMeasure[i]=hm.get[i].intValue()/sm.getRows();
}
q.setLocalPropMeasures(localMeasure);
*/
return q;
}
}
| [
"f.loprete87@gmail.com"
] | f.loprete87@gmail.com |
ce4099908741e6e5009e43d6e7651cd7252a9540 | eb01f13f69dade82c4b091d9f1226e701335d436 | /jQunitRunner/src/main/java/net/daverix/jQunitRunner/JavascriptRunner.java | 9f8dfbaa49e5131f891eea6c308de5f9cce7935b | [
"Apache-2.0"
] | permissive | daverix/jQunitRunner | 6f99d6ef50cedde0e2be5a1b01eb1bd30eaf18ec | 480d4a6fdcc66e56e408603474ecf4c778a48f2d | refs/heads/master | 2016-09-10T18:42:23.384625 | 2013-09-12T09:42:48 | 2013-09-12T09:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,030 | java | package net.daverix.jQunitRunner;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.ScriptableObject;
/**
* Created by david.laurell on 2013-09-04.
*
* This code is copied from MWL's source code: https://bitbucket.org/pocketmobile/mwl/src/ada018e8d3270087fa37ee5f78ec97a230938bb7/src/Android/BusinessRule/src/se/pocketmobile/mwl/businessrule/RhinoBusinessRuleEngine.java?at=develop
*/
public class JavascriptRunner implements IJavascriptRunner {
private static final String JAVA_SCRIPT = "javaScript";
public void runScript(String script) throws JavascriptRunnerException {
try {
final Context context = Context.enter();
context.setOptimizationLevel(-1);
final ScriptableObject scriptableObject = context.initStandardObjects();
context.evaluateString(scriptableObject, script, JAVA_SCRIPT, 1, null);
} catch (Exception e) {
throw new JavascriptRunnerException("Error calling javascript " + script, e);
}
}
}
| [
"david.laurell@pocketmobile.se"
] | david.laurell@pocketmobile.se |
e9e975611f1b8bb1be318cce14edccab5201153f | 21a494fe72980f6f1465d9611328e2240f2b566a | /src/com/topnews/adapter/NewsAdapter.java | cf25dbc515962a973142dc75284d387556da4e5c | [] | no_license | szwork2013/TopNews-3 | e69609ec05485bf535b7743bb38cb883ed37f11a | 5ba19b5339bc3f909ce86f85086aa783d44c01bf | refs/heads/master | 2020-04-03T09:50:20.023385 | 2016-04-27T14:10:03 | 2016-04-27T14:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,404 | java | package com.topnews.adapter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.zip.Inflater;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
import com.topnews.R;
import com.topnews.bean.NewsItem;
import com.topnews.tool.Constants;
import com.topnews.tool.DateTools;
import com.topnews.tool.Options;
import com.topnews.view.HeadListView;
import com.topnews.view.HeadListView.HeaderAdapter;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.drawable.ColorDrawable;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import android.widget.SectionIndexer;
import android.widget.TextView;
import android.widget.AbsListView.OnScrollListener;
public class NewsAdapter extends BaseAdapter implements SectionIndexer, HeaderAdapter, OnScrollListener{
List<NewsItem> newsList;
Activity activity;
LayoutInflater inflater = null;
protected ImageLoader imageLoader = ImageLoader.getInstance();
DisplayImageOptions options;
/** 弹出的更多选择框 */
private PopupWindow popupWindow;
private List<Integer> mPositions;
private List<String> mSections;
public NewsAdapter(Activity activity, ArrayList<NewsItem> newsList) {
this.activity = activity;
this.newsList = newsList;
inflater = LayoutInflater.from(activity);
options = Options.getListOptions();
initPopWindow();
initDateHead();
}
public void setNewsList(List<NewsItem> newsList) {
this.newsList = newsList;
}
private void initDateHead() {
mSections = new ArrayList<String>();
mPositions= new ArrayList<Integer>();
for(int i = 0; i <newsList.size();i++){
if(i == 0){
mSections.add(DateTools.getSection(String.valueOf(newsList.get(i).getPublishTime())));
mPositions.add(i);
continue;
}
if(i != newsList.size()){
if(!newsList.get(i).getPublishTime().equals(newsList.get(i - 1).getPublishTime())){
mSections.add(DateTools.getSection(String.valueOf(newsList.get(i).getPublishTime())));
mPositions.add(i);
}
}
}
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return newsList == null ? 0 : newsList.size();
}
@Override
public NewsItem getItem(int position) {
// TODO Auto-generated method stub
if (newsList != null && newsList.size() != 0) {
return newsList.get(position);
}
return null;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
ViewHolder mHolder;
View view = convertView;
if (view == null) {
view = inflater.inflate(R.layout.list_item, null);
mHolder = new ViewHolder();
mHolder.item_layout = (LinearLayout)view.findViewById(R.id.item_layout);
mHolder.comment_layout = (RelativeLayout)view.findViewById(R.id.comment_layout);
mHolder.item_title = (TextView)view.findViewById(R.id.item_title);
mHolder.item_source = (TextView)view.findViewById(R.id.item_source);
mHolder.list_item_local = (TextView)view.findViewById(R.id.list_item_local);
mHolder.comment_count = (TextView)view.findViewById(R.id.comment_count);
mHolder.publish_time = (TextView)view.findViewById(R.id.publish_time);
mHolder.item_abstract = (TextView)view.findViewById(R.id.item_abstract);
mHolder.alt_mark = (ImageView)view.findViewById(R.id.alt_mark);
mHolder.right_image = (ImageView)view.findViewById(R.id.right_image);
mHolder.item_image_layout = (LinearLayout)view.findViewById(R.id.item_image_layout);
mHolder.item_image_0 = (ImageView)view.findViewById(R.id.item_image_0);
mHolder.item_image_1 = (ImageView)view.findViewById(R.id.item_image_1);
mHolder.item_image_2 = (ImageView)view.findViewById(R.id.item_image_2);
mHolder.large_image = (ImageView)view.findViewById(R.id.large_image);
mHolder.popicon = (ImageView)view.findViewById(R.id.popicon);
mHolder.comment_content = (TextView)view.findViewById(R.id.comment_content);
mHolder.right_padding_view = (View)view.findViewById(R.id.right_padding_view);
//头部的日期部分
mHolder.layout_list_section = (LinearLayout)view.findViewById(R.id.layout_list_section);
mHolder.section_text = (TextView)view.findViewById(R.id.section_text);
mHolder.section_day = (TextView)view.findViewById(R.id.section_day);
view.setTag(mHolder);
} else {
mHolder = (ViewHolder) view.getTag();
}
//获取position对应的数据
NewsItem news = getItem(position);
long secondsAgo = System.currentTimeMillis() / 1000 -news.getPublishTime();
if(secondsAgo/(60*60) >= 1){
mHolder.publish_time.setText(secondsAgo/(60*60) + "小时前");
}else if(secondsAgo/(60*60) <1 && secondsAgo/60 >=1 ){
mHolder.publish_time.setText(secondsAgo/60 + "分钟前");
}else{
mHolder.publish_time.setText("刚刚");
}
mHolder.item_title.setText(news.getTitle());
mHolder.item_source.setText(news.getSource());
mHolder.comment_count.setText("评论" + news.getCommentNum());
List<String> imgUrlList = news.getPicList();
mHolder.popicon.setVisibility(View.VISIBLE);
mHolder.comment_count.setVisibility(View.VISIBLE);
mHolder.right_padding_view.setVisibility(View.VISIBLE);
if(imgUrlList !=null && imgUrlList.size() !=0){
if(imgUrlList.size() == 1){
mHolder.item_image_layout.setVisibility(View.GONE);
//是否是大图
if(news.getIsLarge()){
mHolder.large_image.setVisibility(View.VISIBLE);
mHolder.right_image.setVisibility(View.GONE);
imageLoader.displayImage(imgUrlList.get(0), mHolder.large_image, options);
mHolder.popicon.setVisibility(View.GONE);
mHolder.comment_count.setVisibility(View.GONE);
mHolder.right_padding_view.setVisibility(View.GONE);
}else{
mHolder.large_image.setVisibility(View.GONE);
mHolder.right_image.setVisibility(View.VISIBLE);
imageLoader.displayImage(imgUrlList.get(0), mHolder.right_image, options);
}
}else{
mHolder.large_image.setVisibility(View.GONE);
mHolder.right_image.setVisibility(View.GONE);
mHolder.item_image_layout.setVisibility(View.VISIBLE);
imageLoader.displayImage(imgUrlList.get(0), mHolder.item_image_0, options);
imageLoader.displayImage(imgUrlList.get(1), mHolder.item_image_1, options);
imageLoader.displayImage(imgUrlList.get(2), mHolder.item_image_2, options);
}
}else{
mHolder.large_image.setVisibility(View.GONE);
mHolder.right_image.setVisibility(View.GONE);
mHolder.item_image_layout.setVisibility(View.GONE);
}
int markResID = getAltMarkResID(news.getMark(),news.getCollectStatus());
if(markResID != -1){
mHolder.alt_mark.setVisibility(View.VISIBLE);
mHolder.alt_mark.setImageResource(markResID);
}else{
mHolder.alt_mark.setVisibility(View.GONE);
}
//判断该新闻概述是否为空
if (!TextUtils.isEmpty(news.getNewsAbstract())) {
mHolder.item_abstract.setVisibility(View.GONE);
// mHolder.item_abstract.setText(news.getNewsAbstract());
} else {
mHolder.item_abstract.setVisibility(View.GONE);
}
//判断该新闻是否是特殊标记的,推广等,为空就是新闻
if(!TextUtils.isEmpty(news.getLocal())){
mHolder.list_item_local.setVisibility(View.VISIBLE);
mHolder.list_item_local.setText(news.getLocal());
}else{
mHolder.list_item_local.setVisibility(View.GONE);
}
//判断评论字段是否为空,不为空显示对应布局
if(!TextUtils.isEmpty(news.getComment())){
//news.getLocal() != null &&
mHolder.comment_layout.setVisibility(View.VISIBLE);
mHolder.comment_content.setText(news.getComment());
}else{
mHolder.comment_layout.setVisibility(View.GONE);
}
//判断该新闻是否已读
if(!news.getReadStatus()){
mHolder.item_layout.setSelected(true);
}else{
mHolder.item_layout.setSelected(false);
}
//设置+按钮点击效果
mHolder.popicon.setOnClickListener(new popAction(position));
//头部的相关东西
int section = getSectionForPosition(position);
if (getPositionForSection(section) == position) {
mHolder.layout_list_section.setVisibility(View.VISIBLE);
// head_title.setText(news.getDate());
mHolder.section_text.setText(mSections.get(section));
mHolder.section_day.setText("今天");
} else {
mHolder.layout_list_section.setVisibility(View.GONE);
}
return view;
}
static class ViewHolder {
LinearLayout item_layout;
//title
TextView item_title;
//图片源
TextView item_source;
//类似推广之类的标签
TextView list_item_local;
//评论数量
TextView comment_count;
//发布时间
TextView publish_time;
//新闻摘要
TextView item_abstract;
//右上方TAG标记图片
ImageView alt_mark;
//右边图片
ImageView right_image;
//3张图片布局
LinearLayout item_image_layout; //3张图片时候的布局
ImageView item_image_0;
ImageView item_image_1;
ImageView item_image_2;
//大图的图片的话布局
ImageView large_image;
//pop按钮
ImageView popicon;
//评论布局
RelativeLayout comment_layout;
TextView comment_content;
//paddingview
View right_padding_view;
//头部的日期部分
LinearLayout layout_list_section;
TextView section_text;
TextView section_day;
}
/** 根据属性获取对应的资源ID */
public int getAltMarkResID(int mark,boolean isfavor){
if(isfavor){
return R.drawable.ic_mark_favor;
}
switch (mark) {
case Constants.mark_recom:
return R.drawable.ic_mark_recommend;
case Constants.mark_hot:
return R.drawable.ic_mark_hot;
case Constants.mark_frist:
return R.drawable.ic_mark_first;
case Constants.mark_exclusive:
return R.drawable.ic_mark_exclusive;
case Constants.mark_favor:
return R.drawable.ic_mark_favor;
default:
break;
}
return -1;
}
/** popWindow 关闭按钮 */
private ImageView btn_pop_close;
/**
* 初始化弹出的pop
* */
private void initPopWindow() {
View popView = inflater.inflate(R.layout.list_item_pop, null);
popupWindow = new PopupWindow(popView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
popupWindow.setBackgroundDrawable(new ColorDrawable(0));
//设置popwindow出现和消失动画
popupWindow.setAnimationStyle(R.style.PopMenuAnimation);
btn_pop_close = (ImageView) popView.findViewById(R.id.btn_pop_close);
}
/**
* 显示popWindow
* */
public void showPop(View parent, int x, int y,int postion) {
//设置popwindow显示位置
popupWindow.showAtLocation(parent, 0, x, y);
//获取popwindow焦点
popupWindow.setFocusable(true);
//设置popwindow如果点击外面区域,便关闭。
popupWindow.setOutsideTouchable(true);
popupWindow.update();
if (popupWindow.isShowing()) {
}
btn_pop_close.setOnClickListener(new OnClickListener() {
public void onClick(View paramView) {
popupWindow.dismiss();
}
});
}
/**
* 每个ITEM中more按钮对应的点击动作
* */
public class popAction implements OnClickListener{
int position;
public popAction(int position){
this.position = position;
}
@Override
public void onClick(View v) {
int[] arrayOfInt = new int[2];
//获取点击按钮的坐标
v.getLocationOnScreen(arrayOfInt);
int x = arrayOfInt[0];
int y = arrayOfInt[1];
showPop(v, x , y, position);
}
}
/* 是不是城市频道, true:是 false :不是*/
public boolean isCityChannel = false;
/* 是不是第一个ITEM, true:是 false :不是*/
public boolean isfirst = true;
/*
* 设置是不是特殊的频道(城市频道)
*/
public void setCityChannel(boolean iscity){
isCityChannel = iscity;
}
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
}
//滑动监听
@Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
// TODO Auto-generated method stub
if (view instanceof HeadListView) {
Log.d("first", "first:" + view.getFirstVisiblePosition());
if(isCityChannel){
if(view.getFirstVisiblePosition() == 0){
isfirst = true;
}else{
isfirst = false;
}
((HeadListView) view).configureHeaderView(firstVisibleItem - 1);
}else{
((HeadListView) view).configureHeaderView(firstVisibleItem);
}
}
}
@Override
public int getHeaderState(int position) {
// TODO Auto-generated method stub
int realPosition = position;
if(isCityChannel){
if(isfirst){
return HEADER_GONE;
}
}
if (realPosition < 0 || position >= getCount()) {
return HEADER_GONE;
}
int section = getSectionForPosition(realPosition);
int nextSectionPosition = getPositionForSection(section + 1);
if (nextSectionPosition != -1
&& realPosition == nextSectionPosition - 1) {
return HEADER_PUSHED_UP;
}
return HEADER_VISIBLE;
}
@Override
public void configureHeader(View header, int position, int alpha) {
int realPosition = position;
int section = getSectionForPosition(realPosition);
String title = (String) getSections()[section];
((TextView) header.findViewById(R.id.section_text)).setText(title);
((TextView) header.findViewById(R.id.section_day)).setText("今天");
}
@Override
public Object[] getSections() {
// TODO Auto-generated method stub
return mSections.toArray();
}
@Override
public int getPositionForSection(int sectionIndex) {
if (sectionIndex < 0 || sectionIndex >= mPositions.size()) {
return -1;
}
return mPositions.get(sectionIndex);
}
@Override
public int getSectionForPosition(int position) {
if (position < 0 || position >= getCount()) {
return -1;
}
int index = Arrays.binarySearch(mPositions.toArray(), position);
return index >= 0 ? index : -index - 2;
}
}
| [
"milotian1988@gmail.com"
] | milotian1988@gmail.com |
920faa5d9ae3c207f58b0266b8e11cb6d030f8c0 | b9c3acb4735b8abda8b70460181825d9ba736d1b | /ViewPagerIndicatorsLibraries/app/src/main/java/eu/dubedout/vincent/viewpagerindicatorslibraries/architecture/OnObjectClick.java | a52dd403c842d2ed935de85d1d8b171dab25f7a6 | [
"Apache-2.0"
] | permissive | vdubedout/ViewPagerIndicators-Libraries | d021c79cfaf05cd0c50bff997c58537b2736ce1a | a56a9ce15af1209340109804e71e21c6b70fb3f1 | refs/heads/master | 2021-01-10T22:53:02.760753 | 2016-11-13T17:05:14 | 2016-11-13T17:05:14 | 70,340,235 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 145 | java | package eu.dubedout.vincent.viewpagerindicatorslibraries.architecture;
public interface OnObjectClick<T> {
public void onClick(T object);
}
| [
"vincent.dubedout@gmail.com"
] | vincent.dubedout@gmail.com |
e7cca45059e096766b559cd841ef290d867786fe | 15b2dae3afb3bfe6aecadaba607e4d9baf12ac26 | /src/main/java/frc/robot/commands/flywheel/FlywheelShootOff.java | 6a9ca2e0f8b097c39d77a88ca67f542700bfa079 | [] | no_license | FRC-Team-3140/frc-2020 | fd683dbeb2de1056280b46550cb053266718da09 | af7dafcb45fafd2a49394a38044b1feb4f9991fb | refs/heads/main | 2021-09-27T19:31:15.088829 | 2021-09-21T21:36:51 | 2021-09-21T21:36:51 | 232,444,386 | 2 | 0 | null | 2021-09-25T14:06:43 | 2020-01-08T00:35:15 | Java | UTF-8 | Java | false | false | 1,286 | java | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot.commands.flywheel;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.RobotContainer;
public class FlywheelShootOff extends CommandBase {
public FlywheelShootOff() {
addRequirements(RobotContainer.fw);
addRequirements(RobotContainer.fd);
}
// Called when the command is initially scheduled.
@Override
public void initialize() {
}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
RobotContainer.fw.shootOff();
RobotContainer.fd.stopFeed();
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {
}
// Returns true when the command should end.
@Override
public boolean isFinished() {
return true;
}
}
| [
"sponnan2007@gmail.com"
] | sponnan2007@gmail.com |
518640ae2659810fe53aff3c1257ec594f6d7cac | 26687220989f747813dcac8efe4224d5da57186a | /ProvaEOA - Trabalho/src/provaeoa/trabalho/Registro.java | f67d5d0d2d2ee197f538bf9e9ca3499b6f937c24 | [] | no_license | LucasPLTC/ProvaAQR | d06cdb7a1bcf4107e1e95dcebad3c46df58df608 | 91439e669c83d7448b755a7fe729682468814129 | refs/heads/master | 2020-03-18T13:18:22.829045 | 2018-06-01T03:19:51 | 2018-06-01T03:19:51 | 134,774,551 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,701 | 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 provaeoa.trabalho;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.charset.Charset;
/**
*
* @author Lucas Carvalho
*/
public class Registro {
private String chave;
private String nome;
private String email;
private String telefone;
public Registro(String chave, String nome, String email,String telefone){
this.chave = chave;
this.nome = nome;
this.email = email;
this.telefone = telefone;
}
public Registro(){
}
public void leRegistro(DataInput in)throws IOException{
byte chave[] = new byte[8];
byte nome[] = new byte[40];
byte email[] = new byte[40];
byte telefone[] = new byte[12];
in.readFully(chave);
in.readFully(nome);
in.readFully(email);
in.readFully(telefone);
in.readByte();
in.readByte();
Charset enc = Charset.forName("ISO-8859-1");
this.chave = new String(chave,enc);
this.nome = new String(nome,enc);
this.email = new String(email,enc);
this.telefone = new String(telefone,enc);
}
public boolean terminaCom(String a, String b){
a = a.trim();
boolean result = false;
if(a.endsWith(b)){
result = true;
}
return result;
}
public void escreveEndereco(DataOutput dout) throws IOException
{
Charset enc = Charset.forName("ISO-8859-1");
dout.write(this.chave.getBytes(enc));
dout.write(this.nome.getBytes(enc));
dout.write(this.email.getBytes(enc));
dout.write(this.telefone.getBytes(enc));
dout.write(" \n".getBytes(enc));
}
public String getChave() {
return chave;
}
public void setChave(String chave) {
this.chave = chave;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getTelefone() {
return telefone;
}
public void setTelefone(String telefone) {
this.telefone = telefone;
}
}
| [
"noreply@github.com"
] | LucasPLTC.noreply@github.com |
e88ea0201d75004fb73a0c534878db4f89961e8b | f249c74908a8273fdc58853597bd07c2f9a60316 | /protobuf/target/generated-sources/protobuf/java/cn/edu/cug/cs/gtl/protos/Color3fOrBuilder.java | 285e02137735f898486538ee6c8e039470e641b8 | [
"MIT"
] | permissive | zhaohhit/gtl-java | 4819d7554f86e3c008e25a884a3a7fb44bae97d0 | 63581c2bfca3ea989a4ba1497dca5e3c36190d46 | refs/heads/master | 2020-08-10T17:58:53.937394 | 2019-10-30T03:06:06 | 2019-10-30T03:06:06 | 214,390,871 | 1 | 0 | MIT | 2019-10-30T03:06:08 | 2019-10-11T09:00:26 | null | UTF-8 | Java | false | true | 555 | java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cn/edu/cug/cs/gtl/protos/color.proto
package cn.edu.cug.cs.gtl.protos;
public interface Color3fOrBuilder extends
// @@protoc_insertion_point(interface_extends:cn.edu.cug.cs.gtl.protos.Color3f)
com.google.protobuf.MessageOrBuilder {
/**
* <code>float r = 1;</code>
* @return The r.
*/
float getR();
/**
* <code>float g = 2;</code>
* @return The g.
*/
float getG();
/**
* <code>float b = 3;</code>
* @return The b.
*/
float getB();
}
| [
"zwhe@cug.edu.cn"
] | zwhe@cug.edu.cn |
8ea7083c91a54ab04571b264558f47cfa8fd24a2 | e2002504fcabb601b76a889d5cfe87c94afcba0a | /src/main/java/com/zzr/util/page/PagerResult.java | 4e256627922b40fc8f30d42054e242d28488f3aa | [] | no_license | takeMeFlyToAir/look | 1b40eb67c28efdf35a52bdca4ef95bd8d0368989 | 72235963e13aba802d500b9bb04126fc4e01f644 | refs/heads/master | 2020-03-18T08:38:13.553533 | 2018-05-23T07:40:11 | 2018-05-23T07:40:11 | 134,513,058 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,253 | java | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.zzr.util.page;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
public class PagerResult<T> implements Serializable {
private static final long serialVersionUID = 3141067807832984876L;
private int limit;
private int offset;
private List<T> rows;
private int total;
private String toUrl;
private int count;
private List<T> data;
private int code=0; //状态码, 0表示成功
private String msg; //提示信息
public PagerResult() {
this.limit = 10;
this.offset = 0;
this.rows = Collections.emptyList();
}
public PagerResult(int limit) {
this.limit = 10;
this.offset = 0;
this.rows = Collections.emptyList();
this.setLimit(limit);
}
public PagerResult(int limit, int offset) {
this(limit);
this.setOffset(offset);
}
public PagerResult(int limit, int offset, String toUrl) {
this(limit, offset);
this.toUrl = toUrl;
}
public int getLimit() {
return this.limit;
}
public void setLimit(int limit) {
if(limit > 0) {
this.limit = limit;
}
}
public int getOffset() {
return this.offset;
}
public void setOffset(int offset) {
if(offset < 0) {
offset = 0;
}
this.offset = offset;
}
public int getCode() {
return code;
}
public String getMsg() {
return msg;
}
public List<T> getRows() {
return this.rows;
}
public int getCount() {
return this.total;
}
public List<T> getData() {
return this.rows;
}
public List<T> getResult() {
return this.rows;
}
public void setRows(List<T> rows) {
this.rows = rows;
}
public int getTotal() {
return this.total;
}
public int getTotalRows() {
return this.total;
}
public void setTotal(int total) {
this.total = total;
}
public String getToUrl() {
return this.toUrl;
}
public void setToUrl(String toUrl) {
this.toUrl = toUrl;
}
public int getPageCount() {
return this.getTotal() % this.getLimit() == 0?this.getTotal() / this.getLimit():this.getTotal() / this.getLimit() + 1;
}
public int getPageSize() {
return this.limit;
}
public int getPageNo() {
return this.getOffset() % this.getLimit() == 0?this.getOffset() / this.getLimit() + 1:this.getOffset() / this.getLimit();
}
public <K> PagerResult<K> clonePagerResult(PagerResult<K> result) {
if(result == null) {
result = new PagerResult();
}
result.limit = this.limit;
result.total = this.total;
result.offset = this.offset;
result.toUrl = this.toUrl;
return result;
}
public static <T> PagerResult<T> emptyPagerResult() {
PagerResult result = new PagerResult();
result.setTotal(0);
return result;
}
public interface Converter<T, K> {
K convert(T var1);
}
}
| [
"2861914597@qq.com"
] | 2861914597@qq.com |
408a1e0183b4fb6b4b448303c05f194c79a81ba1 | cc6631bcbc18ee1af1a3f9220cf777e386fbcb61 | /imooc-coupon-service/coupon-template/src/main/java/com/imooc/coupon/entity/CouponTemplate.java | da450cd0704ff3187986784b279ef43acb214737 | [] | no_license | liukaijunabc123/imooc-coupon | 496c1945950a5dcc5b0e5a76e2f4149dc8e4c8e3 | 82c8861430b82515ca9787006ec5b98757054e18 | refs/heads/master | 2023-01-04T04:47:45.588952 | 2020-10-30T01:54:58 | 2020-10-30T01:54:58 | 306,333,270 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,999 | java | package com.imooc.coupon.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.imooc.coupon.constant.CouponCategory;
import com.imooc.coupon.constant.DistributeTarget;
import com.imooc.coupon.constant.ProductLine;
import com.imooc.coupon.converter.CouponCategoryConverter;
import com.imooc.coupon.converter.DistributeTargetConverter;
import com.imooc.coupon.converter.ProductLineConverter;
import com.imooc.coupon.converter.Ruleconverter;
import com.imooc.coupon.serialize.CouponTemplateSerialize;
import com.imooc.coupon.vo.TemplateRule;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* 优惠券模版实体类定义
* 基础属性 + 规则属性
*
* @AUTHOR zhangxf
* @CREATE 2020-02-12 14:28
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "coupon_template")
@JsonSerialize(using = CouponTemplateSerialize.class)
public class CouponTemplate implements Serializable {
/**
* 自增主键
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
@Basic
private Integer id;
/**
* 是否是可用状态
*/
@Column(name = "available", nullable = false)
private Boolean available;
/**
* 是否过期
*/
@Column(name = "expired", nullable = false)
private Boolean expired;
/**
* 优惠券名称
*/
@Column(name = "name", nullable = false)
private String name;
/**
* 优惠券logo
*/
@Column(name = "logo", nullable = false)
private String logo;
/**
* 优惠券描述
*/
@Column(name = "intro", nullable = false)
private String desc;
/**
* 优惠券分类
*/
@Convert(converter = CouponCategoryConverter.class)
@Column(name = "category", nullable = false)
private CouponCategory category;
/**
* 产品线
*/
@Convert(converter = ProductLineConverter.class)
@Column(name = "product_line", nullable = false)
private ProductLine productLine;
/**
* 总数
*/
@Column(name = "coupon_count", nullable = false)
private Integer count;
/**
* 创建时间
*/
@CreatedDate
@Column(name = "create_time", nullable = false)
private Date createTime;
/**
* 创建用户
*/
@Column(name = "user_id", nullable = false)
private Long userId;
/**
* 优惠券模版编码
*/
@Column(name = "template_key", nullable = false)
private String key;
/**
* 目标用户
*/
@Convert(converter = DistributeTargetConverter.class)
@Column(name = "target", nullable = false)
private DistributeTarget target;
/**
* 优惠券规则
*/
@Convert(converter = Ruleconverter.class)
@Column(name = "rule", nullable = false)
private TemplateRule rule;
public CouponTemplate(String name, String logo, String desc, String category,
Integer productLine, Integer count, Long userId, Integer target, TemplateRule rule) {
this.available = false;
this.expired = false;
this.name = name;
this.logo = logo;
this.desc = desc;
this.category = CouponCategory.of(category);
this.productLine = ProductLine.of(productLine);
this.count = count;
this.userId = userId;
//优惠券唯一编码 = 4(产品线和类型)+ 8(日期:20200212)+ id(扩充为4位)
this.key = productLine.toString() + category + new SimpleDateFormat("yyyyMMdd").format(new Date());
this.target = DistributeTarget.of(target);
this.rule = rule;
}
}
| [
"1432716099@qq.com"
] | 1432716099@qq.com |
8772f2e7047cb53f3230c539d259311bf0484f8b | 26e1305ef590eb3d5073abf62f0be9a0d4ad974e | /Metawear-AndroidStarter-master/app/src/main/java/com/mbientlab/metawear/starter/LocalFileHandler.java | 65a921303cd3ba2394f6e1eaf2930794abe50584 | [] | no_license | PsuMobileHealth/DataCollector | fbd2bd19cc8d9e7f58349d8262ef6b4af5b7ee67 | 30721f3d71b4c5cb60d54935378120e741984b40 | refs/heads/master | 2020-06-13T07:09:14.880692 | 2017-03-23T19:07:37 | 2017-03-23T19:07:37 | 75,415,955 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,359 | java | package com.mbientlab.metawear.starter;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* Created by toopazo on 05-01-2017.
*/
public class LocalFileHandler {
private static final String LOG_TAG = CommonUtils.BASE_TAG + CommonUtils.SEPARATOR + LocalFileHandler.class.getName();
File mfile;
FileWriter mwriter;
/* Checks if external storage is available for read and write */
public boolean isExternalStorageWritable() {
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
return true;
}
return false;
}
/* Checks if external storage is available to at least read */
public boolean isExternalStorageReadable() {
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state) ||
Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
return true;
}
return false;
}
public File getDocumentsStorageDir(String documentName) {
// Get the directory for the user's public pictures directory.
File file = new File(Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_DOCUMENTS), documentName);
if (!file.mkdirs()) {
Log.e(LOG_TAG, "Directory not created");
}
return file;
}
public void createFile (String fname){
boolean value = isExternalStorageReadable();
if(value == false){return ;}//null;}
value = isExternalStorageWritable();
if(value == false){return ;}//null;}
String foldername = "";
this.mfile = getDocumentsStorageDir(foldername);
if (!mfile.exists()) {
mfile.mkdirs();
}
mfile = new File(mfile, fname);
String path = this.mfile.getAbsolutePath();
String arg = "fd path is " + path;
Log.i(LOG_TAG, arg);
}
public void append_line_data(String arg){
try {
this.mwriter = new FileWriter(this.mfile, true);
this.mwriter.append(arg+"\r\n");
this.mwriter.flush();
this.mwriter.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"Tomas opazo toro"
] | Tomas opazo toro |
c9129361c665ad9b55a10384bed2b74c3328cfee | 73bfb749e599a6941693ede9ef0dfb9908edcf5a | /src/java/com/eschao/android/widget/pageflip/GLViewRect.java | c854586e04f6a900213bb28b70d239bb7925b558 | [] | no_license | hyunwoongko/still-alive | 745fdda34874a535254c460c1278c9f8bd340422 | bccb63dae0796e58db0ee023b1dc6dbd890bdb8e | refs/heads/master | 2022-04-02T15:10:04.981658 | 2020-01-19T14:03:26 | 2020-01-19T14:03:26 | 176,560,708 | 4 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,729 | java | package com.eschao.android.widget.pageflip;
public final class GLViewRect {
float bottom;
float halfH;
float halfW;
float height;
float left;
float marginL;
float marginR;
float right;
float surfaceH;
float surfaceW;
float top;
float width;
public GLViewRect() {
this.left = 0.0f;
this.right = 0.0f;
this.top = 0.0f;
this.bottom = 0.0f;
this.width = 0.0f;
this.height = 0.0f;
this.halfW = 0.0f;
this.halfH = 0.0f;
this.marginL = 0.0f;
this.marginR = 0.0f;
this.surfaceW = 0.0f;
this.surfaceH = 0.0f;
}
public GLViewRect(float f, float f2, float f3, float f4) {
set(f, f2, f3, f4);
}
public GLViewRect setMargin(float f, float f2) {
return set(this.surfaceW, this.surfaceH, f, f2);
}
public GLViewRect set(float f, float f2) {
return set(f, f2, this.marginL, this.marginR);
}
public GLViewRect set(float f, float f2, float f3, float f4) {
this.surfaceW = f;
this.surfaceH = f2;
this.marginL = f3;
this.marginR = f4;
this.width = (f - f3) - f4;
this.height = f2;
this.halfW = this.width * 0.5f;
this.halfH = this.height * 0.5f;
this.left = (-this.halfW) + f3;
this.right = this.halfW - f4;
this.top = this.halfH;
this.bottom = -this.halfH;
return this;
}
public float minOfWH() {
return this.width > this.height ? this.width : this.height;
}
public float toOpenGLX(float f) {
return f - this.halfW;
}
public float toOpenGLY(float f) {
return this.halfH - f;
}
}
| [
"gusdnd852@naver.com"
] | gusdnd852@naver.com |
ed5e92df6f4601bec723fe2e81fb116347e4ff64 | 64d94b1988569ba69d43a9160eb9250a99fb6074 | /krm-debezium/src/main/java/com/shahinnazarov/edd/krm/services/consumers/EmailSentNotificationConsumer.java | 4e472e1c7f0ff3d9119061b09a5ba445abbc51be | [] | no_license | nazarov-pro/edd | 6325186b826461e60eb49bbf5ac622af6ee7b537 | 95ccee139cb064c39aed15c9efd68a329fbcb5db | refs/heads/master | 2023-04-01T22:29:59.972576 | 2021-04-18T06:00:13 | 2021-04-18T06:00:13 | 357,163,725 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 701 | java | package com.shahinnazarov.edd.krm.services.consumers;
import com.shahinnazarov.edd.krm.utils.Constants;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.listener.MessageListener;
import org.springframework.stereotype.Service;
@Service(Constants.BEAN_SEND_EMAIL_NOTIFICATION_CONSUMER)
@RequiredArgsConstructor
@Slf4j
public class EmailSentNotificationConsumer implements MessageListener<String, String> {
@Override
public void onMessage(ConsumerRecord<String, String> data) {
log.info("Send email event received: value: {}, key: {}", data.value(), data.key());
}
}
| [
"me@shahinnazarov.com"
] | me@shahinnazarov.com |
d9c888eb6fb5e970191a41d5eb002cd09691b8d6 | 13c2d3db2d49c40c74c2e6420a9cd89377f1c934 | /program_data/JavaProgramData/91/993.java | 0e5f60048bfc7e4b7d517c23498c18f31723bbee | [
"MIT"
] | permissive | qiuchili/ggnn_graph_classification | c2090fefe11f8bf650e734442eb96996a54dc112 | 291ff02404555511b94a4f477c6974ebd62dcf44 | refs/heads/master | 2021-10-18T14:54:26.154367 | 2018-10-21T23:34:14 | 2018-10-21T23:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 579 | java | package <missing>;
public class GlobalMembers
{
public static int Main()
{
String s = new String(new char[150]);
final String word = "";
int k;
int m;
int n;
int i;
int j;
String point;
s = new Scanner(System.in).nextLine();
k = s.length();
point = s.charAt(0);
for (i = 0;i <= k - 2;i++)
{
word = tangible.StringFunctions.changeCharacter(word, i, *(point.Substring(i)) + (*(point.Substring(i) + 1)));
}
word = tangible.StringFunctions.changeCharacter(word, k - 1, s.charAt(0) + s.charAt(k - 1));
System.out.println(word);
return 0;
}
}
| [
"y.yu@open.ac.uk"
] | y.yu@open.ac.uk |
f6e0bb058e91f804fcad1566ce4d3ae8dd48df56 | 183e75366b62bf47fd33b79b1450fbf96025522b | /src/main/java/br/com/desenvolve/web/rest/vm/package-info.java | 91bf49860a87acda25c3755937b103967fc71c71 | [] | no_license | stegelfelipe/jhteste | c51e33c7b0a7fa7792ceee30cfeace29fa37f104 | 44948df78bd9dfc19bf246d34d98d6a9e586516e | refs/heads/master | 2020-05-17T10:38:51.767150 | 2019-04-26T16:42:42 | 2019-04-26T16:42:42 | 183,663,207 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 99 | java | /**
* View Models used by Spring MVC REST controllers.
*/
package br.com.desenvolve.web.rest.vm;
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
a841651a1ee2862b6b6f6d8ba620a8f81b8d7afb | 89a7dd6d5237f1f45f5e4efd38e2efd6f9177a4f | /app/src/test/java/manifoldcom/manifold/ExampleUnitTest.java | 2f86dd23e9c9a61868ae2339d5ffe9e9b874b303 | [] | no_license | juanse962/Manifold | 417851b5f3c9c6f10429825218cbe72571327f61 | 9fbea30bc2e710ee736d29b0f72628f71ad4e454 | refs/heads/master | 2021-05-16T09:52:51.827687 | 2017-09-24T15:32:48 | 2017-09-24T15:32:48 | 104,615,610 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 398 | java | package manifoldcom.manifold;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"jgomez40@eafit.edu.co"
] | jgomez40@eafit.edu.co |
d863028b172e3b2e209e325ebdd796712aade6a6 | 9cc88f10640562693fa301b81d61ca911b9f50cf | /BackEnd/TeethUp/src/main/java/com/TeethUp/Facade/ws/ClinicaFacade.java | 5a4db8f7519b1e750a63c07040b77601a2a498fd | [] | no_license | Elivando/IFTM---Desenvolvimento-Sistemas | 38a61e73d71da962a83560d87b9481b647dff4cb | 596bdace7a22cf5527936174cc15873027e37194 | refs/heads/master | 2020-03-22T12:34:02.301475 | 2018-07-07T03:17:08 | 2018-07-07T03:17:08 | 140,047,861 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,121 | java | package com.TeethUp.Facade.ws;
import java.util.List;
import javax.inject.Inject;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import com.TeethUp.model.Clinica;
import com.TeethUp.serviceBusiness.ClinicaServiceBusiness;
@WebService(serviceName = "ws/clinica")
public class ClinicaFacade {
@Inject
private ClinicaServiceBusiness ClinicaServiceBusiness;
@WebMethod
public List<Clinica> getClinicas() {
List<Clinica> clinicas = ClinicaServiceBusiness.getClinicas();
return clinicas;
}
@WebMethod
public Clinica getClinicaId(@WebParam(name = "codigoClinica") Integer id) {
Clinica c = ClinicaServiceBusiness.getClinicaId(id);
return c;
}
@WebMethod
public void excluirClinica(@WebParam(name = "codigoClinica") Integer id) {
ClinicaServiceBusiness.excluirClinica(id);
}
@WebMethod
public void atualizarClinica(@WebParam(name = "Clinica") Clinica clinica) {
ClinicaServiceBusiness.atualizarClinica(clinica);
}
@WebMethod
public void salvarClinica(@WebParam(name = "Clinica") Clinica clinica) {
ClinicaServiceBusiness.salvarClinica(clinica);
}
}
| [
"gogs@fake.local"
] | gogs@fake.local |
16f66eaa53f3e379b8f7599735545713d59439c5 | 13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3 | /crash-reproduction-new-fitness/results/TIME-7b-3-15-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage/org/joda/time/format/DateTimeParserBucket$SavedField_ESTest_scaffolding.java | fa5ce7d9af232349095b2a14659471600e99b3b8 | [
"MIT",
"CC-BY-4.0"
] | permissive | STAMP-project/Botsing-basic-block-coverage-application | 6c1095c6be945adc0be2b63bbec44f0014972793 | 80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da | refs/heads/master | 2022-07-28T23:05:55.253779 | 2022-04-20T13:54:11 | 2022-04-20T13:54:11 | 285,771,370 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,759 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun May 17 13:22:53 UTC 2020
*/
package org.joda.time.format;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DateTimeParserBucket$SavedField_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.joda.time.format.DateTimeParserBucket$SavedField";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DateTimeParserBucket$SavedField_ESTest_scaffolding.class.getClassLoader() ,
"org.joda.time.DateTimeZone",
"org.joda.time.field.TestBaseDateTimeField$MockStandardBaseDateTimeField",
"org.joda.time.TestAbstractPartial$MockProperty0Field",
"org.joda.time.field.TestOffsetDateTimeField$MockStandardDateTimeField",
"org.joda.time.field.AbstractPartialFieldProperty",
"org.joda.time.field.StrictDateTimeField",
"org.joda.time.field.TestPreciseDateTimeField$MockPreciseDateTimeField",
"org.joda.time.TestMutableInterval_Basics",
"org.joda.time.TestDateMidnight_Basics",
"org.joda.time.MockZone",
"org.joda.time.TestMutableInterval_Constructors$MockInterval",
"org.joda.time.DateTimeFieldType$StandardDateTimeFieldType",
"org.joda.time.TestPeriod_Basics",
"org.joda.time.chrono.BasicChronology$HalfdayField",
"org.joda.time.format.DateTimeFormatterBuilder$TwoDigitYear",
"org.joda.time.LocalDate$Property",
"org.joda.time.chrono.BasicChronology$YearInfo",
"org.joda.time.field.UnsupportedDurationField",
"org.joda.time.format.PeriodFormatterBuilder$CompositeAffix",
"org.joda.time.ReadWritableInterval",
"org.joda.time.format.PeriodFormatterBuilder",
"org.joda.time.TestDateTimeZone$MockDateTimeZone",
"org.joda.time.format.DateTimePrinter",
"org.joda.time.base.BaseLocal",
"org.joda.time.chrono.ISOChronology",
"org.joda.time.chrono.LenientChronology",
"org.joda.time.format.PeriodFormatterBuilder$FieldFormatter",
"org.joda.time.TestBasePartial$MockPartial",
"org.joda.time.field.DividedDateTimeField",
"org.joda.time.TestMutableInterval_Updates$MockBadInterval",
"org.joda.time.chrono.ZonedChronology",
"org.joda.time.format.DateTimeFormatterBuilder$TimeZoneOffset",
"org.joda.time.field.BaseDateTimeField",
"org.joda.time.field.ZeroIsMaxDateTimeField",
"org.joda.time.field.TestPreciseDurationDateTimeField$MockPreciseDurationDateTimeField",
"org.joda.time.base.BaseInterval",
"org.joda.time.Duration",
"org.joda.time.format.FormatUtils",
"org.joda.time.format.PeriodFormatter",
"org.joda.time.TestLocalDateTime_Basics$MockInstant",
"org.joda.time.Interval",
"org.joda.time.base.AbstractInstant",
"org.joda.time.field.TestOffsetDateTimeField",
"org.joda.time.tz.DateTimeZoneBuilder",
"org.joda.time.format.DateTimeParserBucket",
"org.joda.time.ReadWritablePeriod",
"org.joda.time.LocalDateTime",
"org.joda.time.tz.FixedDateTimeZone",
"org.joda.time.base.BasePeriod$1",
"org.joda.time.TestMutableDateTime_Basics$MockEqualsChronology",
"org.joda.time.format.PeriodPrinter",
"org.joda.time.field.PreciseDateTimeField",
"org.joda.time.field.TestPreciseDurationDateTimeField",
"org.joda.time.chrono.LimitChronology$LimitException",
"org.joda.time.base.BaseDuration",
"org.joda.time.field.DecoratedDateTimeField",
"org.joda.time.Months",
"org.joda.time.format.DateTimeFormatterBuilder$TimeZoneId",
"org.joda.time.YearMonthDay",
"org.joda.time.TestDateTime_Basics$MockEqualsChronology",
"org.joda.time.format.DateTimeParser",
"org.joda.time.format.DateTimeFormatterBuilder$CharacterLiteral",
"org.joda.time.YearMonth",
"org.joda.time.chrono.GJChronology$CutoverField",
"org.joda.time.LocalTime$Property",
"org.joda.time.field.OffsetDateTimeField",
"org.joda.time.DateTime$Property",
"org.joda.time.Years",
"org.joda.time.DateTimeField",
"org.joda.time.field.FieldUtils",
"org.joda.time.TestInstant_Basics",
"org.joda.time.Partial",
"org.joda.time.field.SkipDateTimeField",
"org.joda.time.field.TestPreciseDurationDateTimeField$MockCountingDurationField",
"org.joda.time.base.AbstractPeriod",
"org.joda.time.chrono.GJDayOfWeekDateTimeField",
"org.joda.time.DateTimeUtils$SystemMillisProvider",
"org.joda.time.IllegalFieldValueException",
"org.joda.time.IllegalInstantException",
"org.joda.time.field.TestBaseDateTimeField",
"org.joda.time.format.DateTimeFormatterBuilder$Composite",
"org.joda.time.format.DateTimeFormatterBuilder$UnpaddedNumber",
"org.joda.time.field.ImpreciseDateTimeField$LinkedDurationField",
"org.joda.time.TestDateMidnight_Basics$MockInstant",
"org.joda.time.format.DateTimeFormat$StyleFormatter",
"org.joda.time.ReadablePeriod",
"org.joda.time.TestAbstractPartial$MockProperty0",
"org.joda.time.chrono.ZonedChronology$ZonedDateTimeField",
"org.joda.time.TestAbstractPartial$MockProperty1",
"org.joda.time.chrono.GregorianChronology",
"org.joda.time.TestMutablePeriod_Basics",
"org.joda.time.TestMutableInterval_Updates",
"org.joda.time.field.TestPreciseDurationDateTimeField$MockStandardBaseDateTimeField",
"org.joda.time.chrono.GJChronology$LinkedDurationField",
"org.joda.time.Minutes",
"org.joda.time.format.DateTimeFormatterBuilder$PaddedNumber",
"org.joda.time.chrono.BasicMonthOfYearDateTimeField",
"org.joda.time.base.AbstractPartial",
"org.joda.time.base.BasePartial",
"org.joda.time.base.BaseDateTime",
"org.joda.time.base.AbstractDuration",
"org.joda.time.DateTimeUtils",
"org.joda.time.LocalTime",
"org.joda.time.base.AbstractInterval",
"org.joda.time.Hours",
"org.joda.time.TestMonthDay_Basics",
"org.joda.time.TestMonthDay_Basics$MockMD",
"org.joda.time.base.BasePeriod",
"org.joda.time.field.DecoratedDurationField",
"org.joda.time.tz.DateTimeZoneBuilder$DSTZone",
"org.joda.time.field.TestPreciseDateTimeField$MockCountingDurationField",
"org.joda.time.TestDuration_Basics$MockMutableDuration",
"org.joda.time.TimeOfDay",
"org.joda.time.format.ISOPeriodFormat",
"org.joda.time.Partial$Property",
"org.joda.time.field.ImpreciseDateTimeField",
"org.joda.time.chrono.CopticChronology",
"org.joda.time.field.PreciseDurationField",
"org.joda.time.TestInstant_Basics$MockInstant",
"org.joda.time.tz.DateTimeZoneBuilder$OfYear",
"org.joda.time.ReadableDuration",
"org.joda.time.chrono.BasicGJChronology",
"org.joda.convert.ToString",
"org.joda.time.format.DateTimeFormatterBuilder$NumberFormatter",
"org.joda.time.DurationField",
"org.joda.time.format.DateTimeFormatter",
"org.joda.convert.FromString",
"org.joda.time.format.DateTimeFormatterBuilder$TimeZoneName",
"org.joda.time.chrono.IslamicChronology$LeapYearPatternType",
"org.joda.time.DateTime",
"org.joda.time.field.DelegatedDurationField",
"org.joda.time.format.PeriodFormatterBuilder$SimpleAffix",
"org.joda.time.ReadWritableDateTime",
"org.joda.time.chrono.ZonedChronology$ZonedDurationField",
"org.joda.time.Instant",
"org.joda.time.format.PeriodFormatterBuilder$Separator",
"org.joda.time.chrono.LimitChronology$LimitDurationField",
"org.joda.time.TestDateTimeZone",
"org.joda.time.TestBaseSingleFieldPeriod$Single",
"org.joda.time.chrono.BasicDayOfYearDateTimeField",
"org.joda.time.DurationFieldType$StandardDurationFieldType",
"org.joda.time.TestMutableDateTime_Basics",
"org.joda.time.chrono.BuddhistChronology",
"org.joda.time.TestLocalTime_Basics$MockInstant",
"org.joda.time.format.DateTimeFormatterBuilder$StringLiteral",
"org.joda.time.tz.DateTimeZoneBuilder$Recurrence",
"org.joda.time.field.TestPreciseDurationDateTimeField$MockZeroDurationField",
"org.joda.time.DateTimeUtils$MillisProvider",
"org.joda.time.chrono.GJYearOfEraDateTimeField",
"org.joda.time.Seconds",
"org.joda.time.TestDateTime_Basics",
"org.joda.time.field.RemainderDateTimeField",
"org.joda.time.TestTimeOfDay_Basics$MockInstant",
"org.joda.time.JodaTimePermission",
"org.joda.time.chrono.BasicWeekOfWeekyearDateTimeField",
"org.joda.time.DateTimeFieldType",
"org.joda.time.convert.MockBadChronology",
"org.joda.time.format.DateTimeFormatterBuilder$Fraction",
"org.joda.time.format.DateTimeFormatterBuilder$FixedNumber",
"org.joda.time.TestMutablePeriod_Basics$MockMutablePeriod",
"org.joda.time.MutableDateTime$Property",
"org.joda.time.TestAbstractPartial$MockProperty0Chrono",
"org.joda.time.chrono.LimitChronology$LimitDateTimeField",
"org.joda.time.ReadableInterval",
"org.joda.time.tz.DateTimeZoneBuilder$PrecalculatedZone",
"org.joda.time.field.LenientDateTimeField",
"org.joda.time.field.SkipUndoDateTimeField",
"org.joda.time.base.AbstractDateTime",
"org.joda.time.field.TestBaseDateTimeField$MockBaseDateTimeField",
"org.joda.time.field.DelegatedDateTimeField",
"org.joda.time.chrono.BasicChronology",
"org.joda.time.chrono.BasicYearDateTimeField",
"org.joda.time.TestTimeOfDay_Basics",
"org.joda.time.TestAbstractPartial$MockPartial",
"org.joda.time.field.TestBaseDateTimeField$MockCountingDurationField",
"org.joda.time.TestMutableInterval_Constructors",
"org.joda.time.format.DateTimeFormatterBuilder",
"org.joda.time.chrono.EthiopicChronology",
"org.joda.time.tz.CachedDateTimeZone$Info",
"org.joda.time.PeriodType",
"org.joda.time.field.MillisDurationField",
"org.joda.time.MockNullZoneChronology",
"org.joda.time.chrono.GJChronology",
"org.joda.time.TestYearMonthDay_Basics$MockInstant",
"org.joda.time.chrono.IslamicChronology",
"org.joda.time.LocalDateTime$Property",
"org.joda.time.format.DateTimeFormatterBuilder$TextField",
"org.joda.time.chrono.BasicFixedMonthChronology",
"org.joda.time.field.UnsupportedDateTimeField",
"org.joda.time.chrono.ISOYearOfEraDateTimeField",
"org.joda.time.field.ScaledDurationField",
"org.joda.time.TestAbstractPartial$MockProperty0Val",
"org.joda.time.TestMutableDateTime_Basics$MockInstant",
"org.joda.time.field.PreciseDurationDateTimeField",
"org.joda.time.MonthDay",
"org.joda.time.MutablePeriod",
"org.joda.time.TestInterval_Constructors$MockInterval",
"org.joda.time.MutableDateTime",
"org.joda.time.tz.CachedDateTimeZone",
"org.joda.time.TestBaseSingleFieldPeriod",
"org.joda.time.ReadableDateTime",
"org.joda.time.TestLocalTime_Basics",
"org.joda.time.format.PeriodFormatterBuilder$Literal",
"org.joda.time.field.TestPreciseDateTimeField$MockStandardDateTimeField",
"org.joda.time.format.PeriodParser",
"org.joda.time.format.PeriodFormatterBuilder$PluralAffix",
"org.joda.time.TestInterval_Basics",
"org.joda.time.DateMidnight",
"org.joda.time.TestYearMonth_Basics$MockYM",
"org.joda.time.chrono.GJMonthOfYearDateTimeField",
"org.joda.time.TestYearMonth_Basics",
"org.joda.time.chrono.BasicWeekyearDateTimeField",
"org.joda.time.Days",
"org.joda.time.field.TestPreciseDurationDateTimeField$MockImpreciseDurationField",
"org.joda.time.field.TestPreciseDateTimeField",
"org.joda.time.format.DateTimeFormatterBuilder$MatchingParser",
"org.joda.time.chrono.BasicSingleEraDateTimeField",
"org.joda.time.format.DateTimeFormat",
"org.joda.time.TestDuration_Basics",
"org.joda.time.field.TestPreciseDateTimeField$MockImpreciseDurationField",
"org.joda.time.YearMonth$Property",
"org.joda.time.chrono.LimitChronology",
"org.joda.time.tz.UTCProvider",
"org.joda.time.ReadableInstant",
"org.joda.time.base.BaseSingleFieldPeriod",
"org.joda.time.TestLocalDate_Basics",
"org.joda.time.TestDateTime_Basics$MockInstant",
"org.joda.time.tz.DefaultNameProvider",
"org.joda.time.tz.Provider",
"org.joda.time.field.TestBaseDateTimeField$MockPartial",
"org.joda.time.chrono.AssembledChronology$Fields",
"org.joda.time.DurationFieldType",
"org.joda.time.ReadWritableInstant",
"org.joda.time.MutableInterval",
"org.joda.time.tz.NameProvider",
"org.joda.time.TestLocalDateTime_Basics",
"org.joda.time.TestMutableInterval_Basics$MockInterval",
"org.joda.time.TestBasePartial",
"org.joda.time.field.TestOffsetDateTimeField$MockOffsetDateTimeField",
"org.joda.time.chrono.AssembledChronology",
"org.joda.time.TestAbstractPartial",
"org.joda.time.TestYearMonthDay_Basics",
"org.joda.time.TestInterval_Constructors",
"org.joda.time.chrono.StrictChronology",
"org.joda.time.chrono.GJEraDateTimeField",
"org.joda.time.tz.ZoneInfoProvider",
"org.joda.time.DateTimeZone$1",
"org.joda.time.chrono.BaseChronology",
"org.joda.time.chrono.JulianChronology",
"org.joda.time.Period",
"org.joda.time.Weeks",
"org.joda.time.Chronology",
"org.joda.time.format.PeriodFormatterBuilder$Composite",
"org.joda.time.field.TestPreciseDateTimeField$MockZeroDurationField",
"org.joda.time.field.AbstractReadableInstantFieldProperty",
"org.joda.time.format.PeriodFormatterBuilder$PeriodFieldAffix",
"org.joda.time.TestPeriod_Basics$MockPeriod",
"org.joda.time.TestInterval_Basics$MockInterval",
"org.joda.time.format.DateTimeParserBucket$SavedField",
"org.joda.time.LocalDate",
"org.joda.time.MockPartial",
"org.joda.time.chrono.BasicDayOfMonthDateTimeField",
"org.joda.time.MonthDay$Property",
"org.joda.time.TestLocalDate_Basics$MockInstant",
"org.joda.time.ReadablePartial",
"org.joda.time.chrono.GJChronology$ImpreciseCutoverField",
"org.joda.time.field.BaseDurationField",
"org.joda.time.TestDuration_Basics$MockDuration"
);
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
063b43d6e8f0c5a9afff0367a9d86309e4105ee4 | 43b4ca44ec5edc7272207b265e6e4710df4a2e07 | /src/main/java/net/latin/server/utils/clonarUseCases/domain/ClonarUseCases.java | a0ed063f6b0fab8ef39265721b9cc6ec95b1c020 | [] | no_license | andrescirulo/LNWFramework_v3 | 152e7055065927fecc96fd1e4534ccd7caeae245 | 5f449c9378c564bbaa36a4d37b78e2230365386d | refs/heads/master | 2020-07-23T14:08:29.568027 | 2016-12-30T17:08:23 | 2016-12-30T17:08:23 | 73,807,732 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,447 | java | package net.latin.server.utils.clonarUseCases.domain;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.latin.server.utils.caseMaker.domain.CaseMaker;
import net.latin.server.utils.caseMaker.domain.fileMaker.XslUtils;
import net.latin.server.utils.projectData.Nodo;
import net.latin.server.utils.projectData.ProjectData;
import net.latin.server.utils.projectData.UseCaseData;
/**
*
* @author Maxi Ariosti
*/
public class ClonarUseCases {
private static ClonarUseCases instance;
public static ClonarUseCases getInstance(){
if(instance==null){
instance = new ClonarUseCases();
}
return instance;
}
/**Se encarga de hacer rename a todos los archivos del Caso de uso, mas los de configuración
*
* @param oldCaseName nombre del Caso de Uso Ej: perfilAlta
* @param clonCaseName nombre del Caso de Uso Ej: perfilBaja
* @param projectPath
* @param projectData
*/
public String clonarUseCases (String caseName,String clonCaseName, String projectPath, ProjectData projectData) {
String text;
List<String> pages = new ArrayList<String>(); ;
CaseMaker caseMaker = new CaseMaker();
UseCaseData useCase = this.getUseCase(projectData.getUseCases(), caseName);
for (Nodo page : useCase.getPages()) {
pages.add(page.getName());
}
text = caseMaker.makeUseCase(clonCaseName, pages);
this.clonarArchivosUseCase(caseName,clonCaseName,projectData);
return text;
}
/**
*
* @param caseName nombre del Caso de Uso Ej: perfilAlta
* @param clonCaseName nombre del Caso de Uso Ej: perfilBaja
* @param projectData
*/
private void clonarArchivosUseCase(String caseName, String clonCaseName, ProjectData projectData) {
List pagesUseCase;
UseCaseData useCase;
useCase = this.getUseCase(projectData.getUseCases(), caseName);
if(useCase == null) {
System.err.println("ERROR: No exite Caso de Uso <"+ caseName + "> se cancela la Clonación.");
return;
}
String clientPath = useCase.getAbsoluteClientPath();
String serverPath = useCase.getAbsoluteServerPath();
clientPath = clientPath.replaceAll(caseName, clonCaseName);
serverPath = serverPath.replaceAll(caseName, clonCaseName);
pagesUseCase = useCase.getPages();
//**************************************************
// C L I E N T
//**************************************************
System.out.println(" **** CLONANDO CLIENT *****" + '\n');
// this.clonarDirectorio(clientPath);
// this.clonarDirectorio(clientPath + "\\constants");
// this.clonarDirectorio(clientPath + "\\pages");
// this.clonarDirectorio(clientPath + "\\rpc");
//*****************
// Clono pages
//*****************
for (Iterator iterator = pagesUseCase.iterator(); iterator.hasNext();) {
Nodo page = (Nodo) iterator.next();
this.clonFile(caseName,clonCaseName,page,projectData);
}
//****************
// Clono rpc
//****************
this.clonFile(caseName,clonCaseName,useCase.getRemoteProcesureCall(),projectData);
this.clonFile(caseName,clonCaseName,useCase.getRemoteProcedureCallAsynch(),projectData);
//***********************
// Clono constants
//************************
this.clonFile(caseName,clonCaseName,useCase.getConstants(),projectData);
//***********************
// Clono Group.java
//************************
this.clonFile(caseName,clonCaseName,useCase.getGroup(),projectData);
//**************************************************
// S E R V E R
//**************************************************
System.out.println(" **** ARCHIVOS EN SERVER *****" + '\n');
this.clonarDirectorio(serverPath);
this.clonFile(caseName,clonCaseName,useCase.getServerUseCase(),projectData);
}
/** Modifica el contenido de un archivo reemplando las distintas variantes
* que puede presentar el viejo nombre del caso de uso por su nuevo nombre.
*
* @param caseName nombre del Caso de Uso Ej: perfilAlta
* @param clonCaseName nombre del Caso de Uso Ej: perfilBaja
* @param nodo Datos del archivo a modificar
* @param projectData
* @return true se modifico el archivo, de lo contrario false
*/
private boolean clonFile(String caseName, String clonCaseName,Nodo nodo,ProjectData projectData) {
int matches = 0;
BufferedReader input = null;
String line;
StringBuffer output = new StringBuffer();
String serverName = caseName.substring(0,1).toUpperCase() + caseName.substring(1) + "Case";
String clonServerName = clonCaseName.substring(0,1).toUpperCase() + clonCaseName.substring(1) + "Case";
String groupName = caseName.substring(0,1).toUpperCase() + caseName.substring(1) + "Group";
String clonGroupName = clonCaseName.substring(0,1).toUpperCase() + clonCaseName.substring(1) + "Group";
//
// String groupNamePunto = caseName.substring(0,1).toUpperCase() + caseName.substring(1) + "Group.";
// String clonGroupNamePunto = clonCaseName.substring(0,1).toUpperCase() + clonCaseName.substring(1) + "Group.";
String capitalizeName = XslUtils.capitalize(caseName);
String clonCapitalizeName = XslUtils.capitalize(clonCaseName);
String constantName = XslUtils.toConstantFormat(caseName);
String clonConstantName = XslUtils.toConstantFormat(clonCaseName);
String filePath = nodo.getAbsolutePath();
input = bufferedReaderFile(filePath,projectData.getName(),projectData.getController().getName());
if(input == null) {
return false;
}
try {
while ((line = input.readLine())!= null){
// EJ. si busco "perfilAlta" cambia por "perfilBaja"
if ( line.contains(caseName)) {
line = line.replaceAll(caseName, clonCaseName);
matches++;
}
// EJ. si busco "PerfilAltaGroup." cambia por "PerfilBajaGroup."
// if ( line.contains(groupNamePunto)) {
// line = line.replaceAll(groupNamePunto, clonGroupNamePunto);
// matches++;
// }
// EJ. si busco "PerfilAlta" cambia por "PerfilBaja"
if( line.contains(capitalizeName)) {
line = line.replaceAll(capitalizeName, clonCapitalizeName);
matches++;
}
// EJ. si busco "PerfilAltaGroup " cambia por "PerfilBajaGroup "
if ( line.contains(groupName)) {
line = line.replaceAll(groupName, clonGroupName);
matches++;
}
// EJ. si busco "PERFIL_ALTA" cambia por "PERFIL_BAJA"
if( line.contains(constantName)) {
line = line.replaceAll(constantName, clonConstantName);
matches++;
}
// EJ. si busco "PerfilAltaCase" cambia por "PerfilBajaCase"
if( line.contains(serverName)) {
line = line.replaceAll(serverName, clonServerName);
matches++;
}
output.append(line);
output.append('\n');
}
input.close();
} catch (IOException e) {
e.printStackTrace();
}
filePath = filePath.replaceAll(caseName, clonCaseName);
filePath = filePath.replaceAll(capitalizeName, clonCapitalizeName);
if (this.createAndWriteFile (filePath, output)) {
System.out.println("Archivo Clonado en: " + filePath);
return false;
}
return true;
}
/**Crea a un direcotrio clonado
*
*/
private boolean clonarDirectorio( String clonPath) {
try {
File clon = new File(clonPath);
clon.mkdir();
return true;
}catch (SecurityException e) {
System.err.println("> ERROR al crear: " + clonPath);
}
return false;
}
/**
* Devulve un objeto UseCaseData si es que el nombre del Caso se encuentra en la lista de Casos de Uso
* @param useCases Lista de Casos de Usos del tipo UseCaseData
* @param caseNameDelete nombre del Caso de Uso Ej: perfilAlta
* @return un UseCaseData si exite, null caso contrario
*/
private UseCaseData getUseCase(List<UseCaseData> useCases, String caseNameDelete) {
UseCaseData caseFound = null;
for (Iterator iterator = useCases.iterator(); iterator.hasNext();) {
UseCaseData useCase = (UseCaseData) iterator.next();
if (caseNameDelete.equals(useCase.getNombre())) {
caseFound = useCase;
}
}
return caseFound;
}
/**Abre un determinado archivo para su lectura
*
* @param filePath
* @param projectName
* @param projectUseCaseName
* @return null si hubo un error al intentar abrirlo, sino un BufferReader
*/
private BufferedReader bufferedReaderFile(String filePath, String projectName,String projectUseCaseName) {
BufferedReader input = null;
try {
input = new BufferedReader( new FileReader(filePath) );
} catch (FileNotFoundException e) {
System.err.println("> ERROR: " + projectName + " no posee el archivo " + projectUseCaseName );
System.err.println("> ERROR-ARCHIVO: " + filePath );
return null;
}
return input;
}
/** Crear y Escribe un archivo
*
* @param filePath
* @param output
* @return true si puedo crear y escribir el archivo, false si hubo algun error
*/
private boolean createAndWriteFile(String filePath, StringBuffer output) {
// create and write a new file
try
{
File file = new File(filePath);
file.createNewFile();
BufferedWriter outfile = new BufferedWriter(new FileWriter(filePath));
outfile.write(output.toString());
outfile.close();
return true;
}
catch (IOException e) {
System.err.println("> ERROR: No creó el archivo " + filePath );
e.printStackTrace(); }
return false;
}
}
| [
"andres.cirulo@gmail.com"
] | andres.cirulo@gmail.com |
0a5035446003dbf7c2846a5ab82fa434c1b9a642 | 23a758183e0b2fb68411bb9ebef34d2fd0f813c0 | /JavaPrj_13/源码/JavaPrj_13/src/HibernateDao/Warehouse.java | 23b8e6bd1a962e579bf84d00d03ff863a588053d | [] | no_license | 582496630/Project-20 | 9e46726f9038a271d01aa5cb71993fc617122196 | a39ade4cf17087152840a2bb5ae791cffffc07d8 | refs/heads/master | 2020-04-05T11:45:29.771596 | 2017-07-10T07:55:07 | 2017-07-10T07:55:07 | 81,189,379 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,297 | java | package HibernateDao;
import java.util.HashSet;
import java.util.Set;
/**
* Warehouse generated by MyEclipse Persistence Tools
*/
public class Warehouse implements java.io.Serializable {
// Fields
private String wareId;
private String wareDesc;
private String wareAdrr;
private String valEmp;
private String fax;
private String phone;
private Set inventorytags = new HashSet(0);
private Set eceipts = new HashSet(0);
private Set warehouseItems = new HashSet(0);
private Set iusses = new HashSet(0);
private Set itemlocations = new HashSet(0);
private Set physicsdatas = new HashSet(0);
private Set itemlocations_1 = new HashSet(0);
// Constructors
/** default constructor */
public Warehouse() {
}
/** minimal constructor */
public Warehouse(String wareId) {
this.wareId = wareId;
}
/** full constructor */
public Warehouse(String wareId, String wareDesc, String wareAdrr,
String valEmp, String fax, String phone, Set inventorytags,
Set eceipts, Set warehouseItems, Set iusses, Set itemlocations,
Set physicsdatas, Set itemlocations_1) {
this.wareId = wareId;
this.wareDesc = wareDesc;
this.wareAdrr = wareAdrr;
this.valEmp = valEmp;
this.fax = fax;
this.phone = phone;
this.inventorytags = inventorytags;
this.eceipts = eceipts;
this.warehouseItems = warehouseItems;
this.iusses = iusses;
this.itemlocations = itemlocations;
this.physicsdatas = physicsdatas;
this.itemlocations_1 = itemlocations_1;
}
// Property accessors
public String getWareId() {
return this.wareId;
}
public void setWareId(String wareId) {
this.wareId = wareId;
}
public String getWareDesc() {
return this.wareDesc;
}
public void setWareDesc(String wareDesc) {
this.wareDesc = wareDesc;
}
public String getWareAdrr() {
return this.wareAdrr;
}
public void setWareAdrr(String wareAdrr) {
this.wareAdrr = wareAdrr;
}
public String getValEmp() {
return this.valEmp;
}
public void setValEmp(String valEmp) {
this.valEmp = valEmp;
}
public String getFax() {
return this.fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Set getInventorytags() {
return this.inventorytags;
}
public void setInventorytags(Set inventorytags) {
this.inventorytags = inventorytags;
}
public Set getEceipts() {
return this.eceipts;
}
public void setEceipts(Set eceipts) {
this.eceipts = eceipts;
}
public Set getWarehouseItems() {
return this.warehouseItems;
}
public void setWarehouseItems(Set warehouseItems) {
this.warehouseItems = warehouseItems;
}
public Set getIusses() {
return this.iusses;
}
public void setIusses(Set iusses) {
this.iusses = iusses;
}
public Set getItemlocations() {
return this.itemlocations;
}
public void setItemlocations(Set itemlocations) {
this.itemlocations = itemlocations;
}
public Set getPhysicsdatas() {
return this.physicsdatas;
}
public void setPhysicsdatas(Set physicsdatas) {
this.physicsdatas = physicsdatas;
}
public Set getItemlocations_1() {
return this.itemlocations_1;
}
public void setItemlocations_1(Set itemlocations_1) {
this.itemlocations_1 = itemlocations_1;
}
} | [
"582496630@qq.com"
] | 582496630@qq.com |
1dc3397aece9d23457e3c4c4270be5f56bbf04d7 | 48997cc32a3072d1866472cbbd9863491ef0e95e | /app/src/main/java/testtribehired/titinkurniat/com/testtribehired/JsonParse.java | b02e8907fdd64ea302ebd1c6096d681cb89fc77b | [] | no_license | titin/tribegoogleplus | 6c2628c03ac117d676dba811ea211bc328d3cc80 | b7964b7efedf24082375399bf1f3ca75c54d1639 | refs/heads/master | 2021-01-20T18:33:11.669391 | 2016-06-24T20:18:18 | 2016-06-24T20:18:18 | 61,910,362 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,107 | java | package testtribehired.titinkurniat.com.testtribehired;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
public class JsonParse {
public JsonParse() {
}
public List<AreaModel> getParseJsonWCF(String s) {
List<AreaModel> ListData = new ArrayList<AreaModel>();
try {
URL js = new URL(Const.URL_JSON_ARRAY);
URLConnection jc = js.openConnection();
BufferedReader reader = new BufferedReader(new InputStreamReader(jc.getInputStream()));
String line = reader.readLine();
JSONArray jsonArray = new JSONArray(line);
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject r = jsonArray.getJSONObject(i);
ListData.add(new AreaModel(r.getString("area"), r.getString("city")));
}
} catch (Exception e1) {
e1.printStackTrace();
}
return ListData;
}
}
| [
"ttnkurniati@gmail.com"
] | ttnkurniati@gmail.com |
cbbb0baf7eddac262dc546fa5d397472daf5bb3e | 07daf7ea6fb4e556a81b3de5e54493d412dae29e | /app/src/main/java/com/cjt/employment/ui/activity/ProjectActivity.java | ab9f5c838c1ffd5d47e2d7e739a9b7b1da28b478 | [] | no_license | my1622/Employment | a275b3de7d1cc2d9fb4dadc6be659e0239216037 | 958c809890e8542628bb0d6723d56aaf542ad9c5 | refs/heads/master | 2020-04-05T03:17:43.135610 | 2017-04-06T07:54:48 | 2017-04-06T07:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,423 | java | package com.cjt.employment.ui.activity;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.cjt.employment.R;
import com.cjt.employment.adapter.EducationAdapter;
import com.cjt.employment.adapter.ProjectAdapter;
import com.cjt.employment.bean.Education;
import com.cjt.employment.bean.Project;
import com.cjt.employment.common.Config;
import com.cjt.employment.presenter.ProjectPresenter;
import com.cjt.employment.ui.view.ProjectView;
import java.util.ArrayList;
import java.util.List;
public class ProjectActivity extends BaseActivity<ProjectActivity,ProjectPresenter> implements ProjectView {
private RecyclerView recyclerview_project;
private ProjectAdapter mProjectAdapter;
private List<Project.DataBean> datas;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_project);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setTitle("项目经历");
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
initData();
initView();
}
@Override
protected void onStart() {
super.onStart();
getPresenter().getProjectList("getProjectList", Config.getValueByKey(this,Config.KEY_USERID));
}
private void initData() {
datas = new ArrayList<>();
}
private void initView() {
recyclerview_project= (RecyclerView) findViewById(R.id.recyclerview_project);
recyclerview_project.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
mProjectAdapter=new ProjectAdapter(datas,this,null);
recyclerview_project.setAdapter(mProjectAdapter);
}
@Override
protected ProjectPresenter creatPresenter() {
return new ProjectPresenter();
}
@Override
public void getProjectSuccess(List<Project.DataBean> data) {
mProjectAdapter.updata(data);
}
@Override
public void showProgressBar() {
}
@Override
public void hideProgressBar() {
}
}
| [
"445263848@qq.com"
] | 445263848@qq.com |
6cc4317c3ad331a7c28e427920e895d66b401202 | ca957060b411c88be41dfbf5dffa1fea2744f4a5 | /src/org/sosy_lab/cpachecker/cpa/location/LocationTransferRelation.java | 5b734df1bc2db37f6af96a6decb775474794f4f5 | [
"Apache-2.0"
] | permissive | 45258E9F/IntPTI | 62f705f539038f9457c818d515c81bf4621d7c85 | e5dda55aafa2da3d977a9a62ad0857746dae3fe1 | refs/heads/master | 2020-12-30T14:34:30.174963 | 2018-06-01T07:32:07 | 2018-06-01T07:32:07 | 91,068,091 | 4 | 6 | null | null | null | null | UTF-8 | Java | false | false | 2,703 | java | /*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.cpa.location;
import org.sosy_lab.cpachecker.cfa.model.CFAEdge;
import org.sosy_lab.cpachecker.cfa.model.CFANode;
import org.sosy_lab.cpachecker.cfa.model.MultiEdge;
import org.sosy_lab.cpachecker.core.interfaces.AbstractState;
import org.sosy_lab.cpachecker.core.interfaces.Precision;
import org.sosy_lab.cpachecker.core.interfaces.TransferRelation;
import org.sosy_lab.cpachecker.cpa.location.LocationState.LocationStateFactory;
import org.sosy_lab.cpachecker.exceptions.CPATransferException;
import org.sosy_lab.cpachecker.util.CFAUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class LocationTransferRelation implements TransferRelation {
private final LocationStateFactory factory;
public LocationTransferRelation(LocationStateFactory pFactory) {
factory = pFactory;
}
@Override
public Collection<LocationState> getAbstractSuccessorsForEdge(
AbstractState element, List<AbstractState> otherStates, Precision prec, CFAEdge cfaEdge) {
LocationState inputElement = (LocationState) element;
CFANode node = inputElement.getLocationNode();
if (CFAUtils.allLeavingEdges(node).contains(cfaEdge)) {
return Collections.singleton(factory.getState(cfaEdge.getSuccessor()));
} else if (node.getNumLeavingEdges() == 1
&& node.getLeavingEdge(0) instanceof MultiEdge) {
// maybe we are "entering" a MultiEdge via it's first component edge
MultiEdge multiEdge = (MultiEdge) node.getLeavingEdge(0);
if (multiEdge.getEdges().get(0).equals(cfaEdge)) {
return Collections.singleton(factory.getState(cfaEdge.getSuccessor()));
}
}
return Collections.emptySet();
}
@Override
public Collection<LocationState> getAbstractSuccessors(
AbstractState element,
List<AbstractState> otherStates, Precision prec) throws CPATransferException {
CFANode node = ((LocationState) element).getLocationNode();
List<LocationState> allSuccessors = new ArrayList<>(node.getNumLeavingEdges());
for (CFANode successor : CFAUtils.successorsOf(node)) {
allSuccessors.add(factory.getState(successor));
}
return allSuccessors;
}
@Override
public Collection<? extends AbstractState> strengthen(
AbstractState element,
List<AbstractState> otherElements, CFAEdge cfaEdge, Precision precision) {
return null;
}
}
| [
"chengxi09@gmail.com"
] | chengxi09@gmail.com |
80c81182907b8b4473f983a181fb17302b381f02 | 62c2871a7cced3fe1ba0cc3a7b38251ee4dfc8ef | /EnvironmentalProtectionInt/src/main/java/com/tengdi/environmentalprotectionint/modules/cominfo/controller/CominfoMeasureOtherwasteController.java | f83cc840c7c27a53d2992b07973d8da8d0217bd7 | [] | no_license | amazingyanghui/Environment | 54c06c1a5467626b278d405fbb1b2c4e6c2606ef | 6e80c1de434e15c3a40ea2d7c2174065d4fd28a2 | refs/heads/master | 2020-05-17T07:33:32.997114 | 2019-05-04T07:06:04 | 2019-05-04T07:06:04 | 183,582,100 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,654 | java | package com.tengdi.environmentalprotectionint.modules.cominfo.controller;
import com.tengdi.core.utils.DateUtils;
import com.tengdi.core.validator.ValidatorUtils;
import com.tengdi.core.validator.group.AddGroup;
import com.tengdi.core.validator.group.UpdateGroup;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import com.tengdi.userauthenuuid.common.annotation.SysLog;
import com.tengdi.userauthenuuid.modules.sys.controller.BaseController;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import com.tengdi.core.utils.LayUiDataUtils;
import com.tengdi.environmentalprotectionint.modules.cominfo.entity.CominfoMeasureOtherwasteEntity;
import com.tengdi.environmentalprotectionint.modules.cominfo.service.CominfoMeasureOtherwasteService;
import com.tengdi.core.utils.PageUtils;
import com.tengdi.core.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/**
* 其他治理设施
*
* @author tengdi
* @email
* @date 2018-08-02 17:43:20
*/
@RestController
@RequestMapping("market/cominfomeasureotherwaste")
@Api(tags="其他治理设施")
public class CominfoMeasureOtherwasteController extends BaseController{
@Autowired
private CominfoMeasureOtherwasteService cominfoMeasureOtherwasteService;
/**
* 列表
*/
@GetMapping
@ApiOperation("列表")
public String list(@RequestParam Map<String, Object> params){
PageUtils page = cominfoMeasureOtherwasteService.queryPage(params);
return LayUiDataUtils.converPageJsonObjForLayUi(page).toString();
}
/**
* 列表
*/
@GetMapping("/list")
@ApiOperation("列表")
public String queryList(@RequestParam Map<String, Object> params){
List<CominfoMeasureOtherwasteEntity> list= cominfoMeasureOtherwasteService.queryList(params);
return LayUiDataUtils.converJsonObjForLayUi(JSONArray.fromObject(list)).toString();
}
/**
* 信息
*/
@GetMapping("/{pid}")
@ApiOperation("信息")
public R info(@PathVariable("pid") String pid){
CominfoMeasureOtherwasteEntity cominfoMeasureOtherwaste = cominfoMeasureOtherwasteService.selectById(pid);
return R.ok().put("cominfoMeasureWastewater", cominfoMeasureOtherwaste);
}
/**
* 根据公司id获取其他治理设施
*/
@GetMapping("/dataById/{cid}")
@ApiOperation("根据公司id获取其他治理设施")
@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "cid", value = "公司id", required = false), })
public String dataById(@PathVariable("cid") String cid){
List<CominfoMeasureOtherwasteEntity> list = cominfoMeasureOtherwasteService.dataById(cid);
return LayUiDataUtils.converJsonObjForLayUi(JSONArray.fromObject(list)).toString();
}
/**
* 保存其他治理设施
*/
@PostMapping
@ApiOperation("保存其他治理设施")
@Transactional(rollbackFor = {Exception.class})
@SysLog(value = "保存其他治理设施")
public R save(@RequestBody CominfoMeasureOtherwasteEntity cominfoMeasureOtherwaste){
ValidatorUtils.validateEntity(cominfoMeasureOtherwaste, AddGroup.class);
cominfoMeasureOtherwaste.setCreatedate(DateUtils.getStringDate());
cominfoMeasureOtherwaste.setUpdatedate(DateUtils.getStringDate());
cominfoMeasureOtherwasteService.insert(cominfoMeasureOtherwaste);
return R.ok();
}
/**
* 修改其他治理设施
*/
@PutMapping
@ApiOperation("修改其他治理设施")
@Transactional(rollbackFor = {Exception.class})
@SysLog(value = "修改其他治理设施")
public R update(@RequestBody CominfoMeasureOtherwasteEntity cominfoMeasureOtherwaste){
ValidatorUtils.validateEntity(cominfoMeasureOtherwaste, UpdateGroup.class);
cominfoMeasureOtherwaste.setUpdatedate(DateUtils.getStringDate());
cominfoMeasureOtherwasteService.updateById(cominfoMeasureOtherwaste);
return R.ok();
}
/**
* 删除其他治理设施
*/
@DeleteMapping
@ApiOperation("删除其他治理设施")
@Transactional(rollbackFor = {Exception.class})
@SysLog(value = "删除其他治理设施")
public R delete(@RequestBody String[] pids){
cominfoMeasureOtherwasteService.deleteBatchIds(Arrays.asList(pids));
return R.ok();
}
}
| [
"1184824816@qq.com"
] | 1184824816@qq.com |
073baeec27417b31094518d2692b6959b8b5fcb5 | 96602275a8a9fdd18552df60d3b4ae4fa21034e9 | /resteasy-jaxrs-testsuite/src/test/java/org/jboss/resteasy/test/nextgen/client/WebTargetUnitTest.java | d4069936510bd51c4e52783e880fc1fb46b10509 | [
"Apache-2.0"
] | permissive | tedwon/Resteasy | 03bb419dc9f74ea406dc1ea29d8a6b948b2228a8 | 38badcb8c2daae2a77cea9e7d70a550449550c49 | refs/heads/master | 2023-01-18T22:03:43.256889 | 2016-06-29T15:37:45 | 2016-06-29T15:37:45 | 62,353,131 | 0 | 0 | NOASSERTION | 2023-01-02T22:02:20 | 2016-07-01T01:29:16 | Java | UTF-8 | Java | false | false | 3,750 | java | package org.jboss.resteasy.test.nextgen.client;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import java.util.HashMap;
import java.util.Map;
import static org.jboss.resteasy.test.TestPortProvider.generateURL;
/**
* Tests for methods of WebTarget
*
* @author <a href="mailto:kanovotn@redhat.com">Katerina Novotna</a>
* @version $Revision: 1 $
*/
public class WebTargetUnitTest {
static Client client;
@BeforeClass
public static void setupClient()
{
client = ClientBuilder.newClient();
}
@AfterClass
public static void close()
{
client.close();
}
/*
* Create WebTarget Instance from another base WebTarget instance, resolve template from decoded characters
*/
@Test
public void testResolveTemplateDecoded()
{
final String a = "a%20%3F/*/";
final String b = "/b/";
WebTarget base = client.target(generateURL("/") + "users/{username}");
WebTarget created = base.path("{id}");
String r2 = created.resolveTemplate("username", a).resolveTemplate("id", b).getUri().toString();
Assert.assertEquals(generateURL("/") + "users/a%2520%253F%2F*%2F/%2Fb%2F", r2);
}
/*
* Create WebTarget Instance from another base WebTarget instance, resolve template from encoded characters
*/
@Test
public void testResolveTemplateEncoded()
{
final String a = "a%20%3F/*/";
final String b = "/b/";
WebTarget base = client.target(generateURL("/") + "users/{username}");
WebTarget created = base.path("{id}");
String r = created.resolveTemplateFromEncoded("username", a).resolveTemplateFromEncoded("id", b).getUri().toString();
Assert.assertEquals(generateURL("/") + "users/a%20%3F%2F*%2F/%2Fb%2F", r);
}
/*
* Create WebTarget Instance from another base WebTarget instance, resolve templates with empty map
*/
@Test
public void testResolveTemplatesEmptyMap()
{
WebTarget base = client.target(generateURL("/") + "users/{username}");
WebTarget created = base.path("{id}/{question}/{question}");
// Create and fill map
Map<String, Object> values = new HashMap<String, Object>();
WebTarget result = created.resolveTemplates(values);
Assert.assertEquals(result, created);
}
/*
* Create WebTarget Instance from another base WebTarget instance, test resolveTemplate for NullPointerException
*/
@Test(expected=NullPointerException.class)
public void testResolveTemplateNull()
{
WebTarget base = client.target(generateURL("/") + "users/{username}");
WebTarget created = base.path("{id}");
created.resolveTemplate(null, null);
}
/*
* Create WebTarget Instance from another base WebTarget instance, test NullPointerException
*/
@Test(expected=NullPointerException.class)
public void testQueryParamNullPointer()
{
WebTarget base = client.target(generateURL("/") + "users/{username}");
WebTarget created = base.path("param/{id}");
created.queryParam("q", "a", null, "b", null);
}
/*
* Create WebTarget Instance from another base WebTarget instance, call MatrixParam with null argument
*/
@Test(expected=NullPointerException.class)
public void testMatrixParamNullPointer()
{
WebTarget base = client.target(generateURL("/") + "users/{username}");
WebTarget created = base.path("matrix/{id}");
created.matrixParam("m1", "a", null, "b", null);
}
}
| [
"kanovotn@dhcp-10-40-5-34.brq.redhat.com"
] | kanovotn@dhcp-10-40-5-34.brq.redhat.com |
430cdb3381c36486af9f937eac1457deabd46c44 | 7ebfc9e651fefad56676c37f7a62fb7b22b525be | /baseproject-framework-admin/src/main/java/com/baseproject/framework/admin/util/HttpUtils.java | eef57b275d161fa2d39840fa2650ab51e9f65e75 | [] | no_license | yelanting/ManagePlatformBaseProjectFramework | a92ca5089d4a9729da245432ed1e0eb902022668 | 0069349422ec065b687f7d817a8675917f98094f | refs/heads/master | 2023-01-03T11:47:23.572249 | 2019-11-19T08:55:22 | 2019-11-19T08:55:22 | 222,648,949 | 0 | 0 | null | 2022-12-10T07:13:39 | 2019-11-19T08:42:32 | Java | UTF-8 | Java | false | false | 1,225 | java | package com.baseproject.framework.admin.util;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import com.alibaba.fastjson.JSONObject;
import com.baseproject.framework.core.http.HttpResult;
/**
* HTTP工具类
* @author Administrator
* @date Jan 19, 2019
*/
public class HttpUtils {
/**
* 获取HttpServletRequest对象
* @return
*/
public static HttpServletRequest getHttpServletRequest() {
return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
}
/**
* 输出信息到浏览器
* @param response
* @param message
* @throws IOException
*/
public static void print(HttpServletResponse response, int code, String msg) throws IOException {
response.setContentType("application/json; charset=utf-8");
HttpResult result = HttpResult.error(code, msg);
String json = JSONObject.toJSONString(result);
response.getWriter().print(json);
response.getWriter().flush();
response.getWriter().close();
}
}
| [
"sunlpmail@126.com"
] | sunlpmail@126.com |
f3c8419083fff460d0c2464c6bd0a04b8d307255 | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/dashboard/DashboardUsageStatsUtils.java | 462c18ea33dd44c6e027d4fceee32a138ec6806c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Java | false | false | 14,144 | java | package com.linkedin.datahub.graphql.resolvers.dashboard;
import com.google.common.collect.ImmutableList;
import com.linkedin.common.urn.Urn;
import com.linkedin.data.template.StringArray;
import com.linkedin.datahub.graphql.generated.CorpUser;
import com.linkedin.datahub.graphql.generated.DashboardUsageAggregation;
import com.linkedin.datahub.graphql.generated.DashboardUsageAggregationMetrics;
import com.linkedin.datahub.graphql.generated.DashboardUsageMetrics;
import com.linkedin.datahub.graphql.generated.DashboardUsageQueryResultAggregations;
import com.linkedin.datahub.graphql.generated.DashboardUserUsageCounts;
import com.linkedin.datahub.graphql.generated.WindowDuration;
import com.linkedin.datahub.graphql.types.dashboard.mappers.DashboardUsageMetricMapper;
import com.linkedin.metadata.Constants;
import com.linkedin.metadata.aspect.EnvelopedAspect;
import com.linkedin.metadata.query.filter.Condition;
import com.linkedin.metadata.query.filter.ConjunctiveCriterion;
import com.linkedin.metadata.query.filter.ConjunctiveCriterionArray;
import com.linkedin.metadata.query.filter.Criterion;
import com.linkedin.metadata.query.filter.CriterionArray;
import com.linkedin.metadata.query.filter.Filter;
import com.linkedin.metadata.timeseries.TimeseriesAspectService;
import com.linkedin.timeseries.AggregationSpec;
import com.linkedin.timeseries.AggregationType;
import com.linkedin.timeseries.CalendarInterval;
import com.linkedin.timeseries.GenericTable;
import com.linkedin.timeseries.GroupingBucket;
import com.linkedin.timeseries.GroupingBucketType;
import com.linkedin.timeseries.TimeWindowSize;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class DashboardUsageStatsUtils {
public static final String ES_FIELD_URN = "urn";
public static final String ES_FIELD_TIMESTAMP = "timestampMillis";
public static final String ES_FIELD_EVENT_GRANULARITY = "eventGranularity";
public static final String ES_NULL_VALUE = "NULL";
public static List<DashboardUsageMetrics> getDashboardUsageMetrics(
String dashboardUrn,
Long maybeStartTimeMillis,
Long maybeEndTimeMillis,
Integer maybeLimit,
TimeseriesAspectService timeseriesAspectService) {
List<DashboardUsageMetrics> dashboardUsageMetrics;
try {
Filter filter = createUsageFilter(dashboardUrn, null, null, false);
List<EnvelopedAspect> aspects = timeseriesAspectService.getAspectValues(
Urn.createFromString(dashboardUrn),
Constants.DASHBOARD_ENTITY_NAME,
Constants.DASHBOARD_USAGE_STATISTICS_ASPECT_NAME,
maybeStartTimeMillis,
maybeEndTimeMillis,
maybeLimit,
filter);
dashboardUsageMetrics = aspects.stream().map(DashboardUsageMetricMapper::map).collect(Collectors.toList());
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Invalid resource", e);
}
return dashboardUsageMetrics;
}
public static DashboardUsageQueryResultAggregations getAggregations(
Filter filter,
List<DashboardUsageAggregation> dailyUsageBuckets,
TimeseriesAspectService timeseriesAspectService) {
List<DashboardUserUsageCounts> userUsageCounts = getUserUsageCounts(filter, timeseriesAspectService);
DashboardUsageQueryResultAggregations aggregations = new DashboardUsageQueryResultAggregations();
aggregations.setUsers(userUsageCounts);
aggregations.setUniqueUserCount(userUsageCounts.size());
// Compute total viewsCount and executionsCount for queries time range from the buckets itself.
// We want to avoid issuing an additional query with a sum aggregation.
Integer totalViewsCount = null;
Integer totalExecutionsCount = null;
for (DashboardUsageAggregation bucket : dailyUsageBuckets) {
if (bucket.getMetrics().getExecutionsCount() != null) {
if (totalExecutionsCount == null) {
totalExecutionsCount = 0;
}
totalExecutionsCount += bucket.getMetrics().getExecutionsCount();
}
if (bucket.getMetrics().getViewsCount() != null) {
if (totalViewsCount == null) {
totalViewsCount = 0;
}
totalViewsCount += bucket.getMetrics().getViewsCount();
}
}
aggregations.setExecutionsCount(totalExecutionsCount);
aggregations.setViewsCount(totalViewsCount);
return aggregations;
}
public static List<DashboardUsageAggregation> getBuckets(
Filter filter,
String dashboardUrn,
TimeseriesAspectService timeseriesAspectService) {
AggregationSpec usersCountAggregation =
new AggregationSpec().setAggregationType(AggregationType.SUM).setFieldPath("uniqueUserCount");
AggregationSpec viewsCountAggregation =
new AggregationSpec().setAggregationType(AggregationType.SUM).setFieldPath("viewsCount");
AggregationSpec executionsCountAggregation =
new AggregationSpec().setAggregationType(AggregationType.SUM).setFieldPath("executionsCount");
AggregationSpec usersCountCardinalityAggregation =
new AggregationSpec().setAggregationType(AggregationType.CARDINALITY).setFieldPath("uniqueUserCount");
AggregationSpec viewsCountCardinalityAggregation =
new AggregationSpec().setAggregationType(AggregationType.CARDINALITY).setFieldPath("viewsCount");
AggregationSpec executionsCountCardinalityAggregation =
new AggregationSpec().setAggregationType(AggregationType.CARDINALITY).setFieldPath("executionsCount");
AggregationSpec[] aggregationSpecs =
new AggregationSpec[]{usersCountAggregation, viewsCountAggregation, executionsCountAggregation,
usersCountCardinalityAggregation, viewsCountCardinalityAggregation, executionsCountCardinalityAggregation};
GenericTable dailyStats = timeseriesAspectService.getAggregatedStats(Constants.DASHBOARD_ENTITY_NAME,
Constants.DASHBOARD_USAGE_STATISTICS_ASPECT_NAME, aggregationSpecs, filter,
createUsageGroupingBuckets(CalendarInterval.DAY));
List<DashboardUsageAggregation> buckets = new ArrayList<>();
for (StringArray row : dailyStats.getRows()) {
DashboardUsageAggregation usageAggregation = new DashboardUsageAggregation();
usageAggregation.setBucket(Long.valueOf(row.get(0)));
usageAggregation.setDuration(WindowDuration.DAY);
usageAggregation.setResource(dashboardUrn);
DashboardUsageAggregationMetrics usageAggregationMetrics = new DashboardUsageAggregationMetrics();
if (!row.get(1).equals(ES_NULL_VALUE) && !row.get(4).equals(ES_NULL_VALUE)) {
try {
if (Integer.valueOf(row.get(4)) != 0) {
usageAggregationMetrics.setUniqueUserCount(Integer.valueOf(row.get(1)));
}
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to convert uniqueUserCount from ES to int", e);
}
}
if (!row.get(2).equals(ES_NULL_VALUE) && !row.get(5).equals(ES_NULL_VALUE)) {
try {
if (Integer.valueOf(row.get(5)) != 0) {
usageAggregationMetrics.setViewsCount(Integer.valueOf(row.get(2)));
}
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to convert viewsCount from ES to int", e);
}
}
if (!row.get(3).equals(ES_NULL_VALUE) && !row.get(5).equals(ES_NULL_VALUE)) {
try {
if (Integer.valueOf(row.get(6)) != 0) {
usageAggregationMetrics.setExecutionsCount(Integer.valueOf(row.get(3)));
}
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to convert executionsCount from ES to object", e);
}
}
usageAggregation.setMetrics(usageAggregationMetrics);
buckets.add(usageAggregation);
}
return buckets;
}
public static List<DashboardUserUsageCounts> getUserUsageCounts(Filter filter, TimeseriesAspectService timeseriesAspectService) {
// Sum aggregation on userCounts.count
AggregationSpec sumUsageCountsCountAggSpec =
new AggregationSpec().setAggregationType(AggregationType.SUM).setFieldPath("userCounts.usageCount");
AggregationSpec sumViewCountsCountAggSpec =
new AggregationSpec().setAggregationType(AggregationType.SUM).setFieldPath("userCounts.viewsCount");
AggregationSpec sumExecutionCountsCountAggSpec =
new AggregationSpec().setAggregationType(AggregationType.SUM).setFieldPath("userCounts.executionsCount");
AggregationSpec usageCountsCardinalityAggSpec =
new AggregationSpec().setAggregationType(AggregationType.CARDINALITY).setFieldPath("userCounts.usageCount");
AggregationSpec viewCountsCardinalityAggSpec =
new AggregationSpec().setAggregationType(AggregationType.CARDINALITY).setFieldPath("userCounts.viewsCount");
AggregationSpec executionCountsCardinalityAggSpec =
new AggregationSpec().setAggregationType(AggregationType.CARDINALITY)
.setFieldPath("userCounts.executionsCount");
AggregationSpec[] aggregationSpecs =
new AggregationSpec[]{sumUsageCountsCountAggSpec, sumViewCountsCountAggSpec, sumExecutionCountsCountAggSpec,
usageCountsCardinalityAggSpec, viewCountsCardinalityAggSpec, executionCountsCardinalityAggSpec};
// String grouping bucket on userCounts.user
GroupingBucket userGroupingBucket =
new GroupingBucket().setKey("userCounts.user").setType(GroupingBucketType.STRING_GROUPING_BUCKET);
GroupingBucket[] groupingBuckets = new GroupingBucket[]{userGroupingBucket};
// Query backend
GenericTable result = timeseriesAspectService.getAggregatedStats(Constants.DASHBOARD_ENTITY_NAME,
Constants.DASHBOARD_USAGE_STATISTICS_ASPECT_NAME, aggregationSpecs, filter, groupingBuckets);
// Process response
List<DashboardUserUsageCounts> userUsageCounts = new ArrayList<>();
for (StringArray row : result.getRows()) {
DashboardUserUsageCounts userUsageCount = new DashboardUserUsageCounts();
CorpUser partialUser = new CorpUser();
partialUser.setUrn(row.get(0));
userUsageCount.setUser(partialUser);
if (!row.get(1).equals(ES_NULL_VALUE) && !row.get(4).equals(ES_NULL_VALUE)) {
try {
if (Integer.valueOf(row.get(4)) != 0) {
userUsageCount.setUsageCount(Integer.valueOf(row.get(1)));
}
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to convert user usage count from ES to int", e);
}
}
if (!row.get(2).equals(ES_NULL_VALUE) && row.get(5).equals(ES_NULL_VALUE)) {
try {
if (Integer.valueOf(row.get(5)) != 0) {
userUsageCount.setViewsCount(Integer.valueOf(row.get(2)));
}
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to convert user views count from ES to int", e);
}
}
if (!row.get(3).equals(ES_NULL_VALUE) && !row.get(6).equals(ES_NULL_VALUE)) {
try {
if (Integer.valueOf(row.get(6)) != 0) {
userUsageCount.setExecutionsCount(Integer.valueOf(row.get(3)));
}
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to convert user executions count from ES to int", e);
}
}
userUsageCounts.add(userUsageCount);
}
// Sort in descending order
userUsageCounts.sort((a, b) -> (b.getUsageCount() - a.getUsageCount()));
return userUsageCounts;
}
private static GroupingBucket[] createUsageGroupingBuckets(CalendarInterval calenderInterval) {
GroupingBucket timestampBucket = new GroupingBucket();
timestampBucket.setKey(ES_FIELD_TIMESTAMP)
.setType(GroupingBucketType.DATE_GROUPING_BUCKET)
.setTimeWindowSize(new TimeWindowSize().setMultiple(1).setUnit(calenderInterval));
return new GroupingBucket[]{timestampBucket};
}
public static Filter createUsageFilter(
String dashboardUrn,
Long startTime,
Long endTime,
boolean byBucket) {
Filter filter = new Filter();
final ArrayList<Criterion> criteria = new ArrayList<>();
// Add filter for urn == dashboardUrn
Criterion dashboardUrnCriterion =
new Criterion().setField(ES_FIELD_URN).setCondition(Condition.EQUAL).setValue(dashboardUrn);
criteria.add(dashboardUrnCriterion);
if (startTime != null) {
// Add filter for start time
Criterion startTimeCriterion = new Criterion().setField(ES_FIELD_TIMESTAMP)
.setCondition(Condition.GREATER_THAN_OR_EQUAL_TO)
.setValue(Long.toString(startTime));
criteria.add(startTimeCriterion);
}
if (endTime != null) {
// Add filter for end time
Criterion endTimeCriterion = new Criterion().setField(ES_FIELD_TIMESTAMP)
.setCondition(Condition.LESS_THAN_OR_EQUAL_TO)
.setValue(Long.toString(endTime));
criteria.add(endTimeCriterion);
}
if (byBucket) {
// Add filter for presence of eventGranularity - only consider bucket stats and not absolute stats
// since unit is mandatory, we assume if eventGranularity contains unit, then it is not null
Criterion onlyTimeBucketsCriterion =
new Criterion().setField(ES_FIELD_EVENT_GRANULARITY).setCondition(Condition.CONTAIN).setValue("unit");
criteria.add(onlyTimeBucketsCriterion);
} else {
// Add filter for absence of eventGranularity - only consider absolute stats
Criterion excludeTimeBucketsCriterion =
new Criterion().setField(ES_FIELD_EVENT_GRANULARITY).setCondition(Condition.IS_NULL).setValue("");
criteria.add(excludeTimeBucketsCriterion);
}
filter.setOr(new ConjunctiveCriterionArray(
ImmutableList.of(new ConjunctiveCriterion().setAnd(new CriterionArray(criteria)))));
return filter;
}
public static Long timeMinusOneMonth(long time) {
final long oneHourMillis = 60 * 60 * 1000;
final long oneDayMillis = 24 * oneHourMillis;
return time - (31 * oneDayMillis + 1);
}
private DashboardUsageStatsUtils() { }
}
| [
"noreply@github.com"
] | RyanHolstien.noreply@github.com |
237ca72a8369f91630116bcd9c39d30ea762dfee | a2272f1002da68cc554cd57bf9470322a547c605 | /src/jdk/jdk.crypto.cryptoki/sun/security/pkcs11/P11TlsKeyMaterialGenerator.java | 764c6bce7b8d3448d434a724725e11bfffa067fe | [] | no_license | framework-projects/java | 50af8953ab46c509432c467c9ad69cc63818fa63 | 2d131cb46f232d3bf909face20502e4ba4b84db0 | refs/heads/master | 2023-06-28T05:08:00.482568 | 2021-08-04T08:42:32 | 2021-08-04T08:42:32 | 312,414,414 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,569 | java | /*
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.security.pkcs11;
import java.security.spec.AlgorithmParameterSpec;
import static sun.security.pkcs11.TemplateManager.*;
import static sun.security.pkcs11.wrapper.PKCS11Constants.*;
/**
* KeyGenerator to calculate the SSL/TLS key material (cipher keys and ivs,
* mac keys) from the master secret.
*
* @author Andreas Sterbenz
* @since 1.6
*/
public final class P11TlsKeyMaterialGenerator extends KeyGeneratorSpi {
private final static String MSG = "TlsKeyMaterialGenerator must be "
+ "initialized using a TlsKeyMaterialParameterSpec";
// token instance
private final Token token;
// algorithm name
private final String algorithm;
// mechanism id
private long mechanism;
private int tlsVersion;
// parameter spec
@SuppressWarnings("deprecation")
private TlsKeyMaterialParameterSpec spec;
// master secret as a P11Key
private P11Key p11Key;
// whether SSLv3 is supported
private final boolean supportSSLv3;
P11TlsKeyMaterialGenerator(Token token, String algorithm, long mechanism)
throws PKCS11Exception {
super();
this.token = token;
this.algorithm = algorithm;
this.mechanism = mechanism;
// Given the current lookup order specified in SunPKCS11.java,
// if CKM_SSL3_KEY_AND_MAC_DERIVE is not used to construct this object,
// it means that this mech is disabled or unsupported.
this.supportSSLv3 = (mechanism == CKM_SSL3_KEY_AND_MAC_DERIVE);
}
protected void engineInit(SecureRandom random) {
throw new InvalidParameterException(MSG);
}
@SuppressWarnings("deprecation")
protected void engineInit(AlgorithmParameterSpec params,
SecureRandom random) throws InvalidAlgorithmParameterException {
if (params instanceof TlsKeyMaterialParameterSpec == false) {
throw new InvalidAlgorithmParameterException(MSG);
}
TlsKeyMaterialParameterSpec spec = (TlsKeyMaterialParameterSpec)params;
tlsVersion = (spec.getMajorVersion() << 8) | spec.getMinorVersion();
if ((tlsVersion == 0x0300 && !supportSSLv3) ||
(tlsVersion < 0x0300) || (tlsVersion > 0x0303)) {
throw new InvalidAlgorithmParameterException
("Only" + (supportSSLv3? " SSL 3.0,": "") +
" TLS 1.0, TLS 1.1 and TLS 1.2 are supported (" +
tlsVersion + ")");
}
try {
p11Key = P11SecretKeyFactory.convertKey
(token, spec.getMasterSecret(), "TlsMasterSecret");
} catch (InvalidKeyException e) {
throw new InvalidAlgorithmParameterException("init() failed", e);
}
this.spec = spec;
if (tlsVersion == 0x0300) {
mechanism = CKM_SSL3_KEY_AND_MAC_DERIVE;
} else if (tlsVersion == 0x0301 || tlsVersion == 0x0302) {
mechanism = CKM_TLS_KEY_AND_MAC_DERIVE;
}
}
protected void engineInit(int keysize, SecureRandom random) {
throw new InvalidParameterException(MSG);
}
@SuppressWarnings("deprecation")
protected SecretKey engineGenerateKey() {
if (spec == null) {
throw new IllegalStateException
("TlsKeyMaterialGenerator must be initialized");
}
int macBits = spec.getMacKeyLength() << 3;
int ivBits = spec.getIvLength() << 3;
int expandedKeyBits = spec.getExpandedCipherKeyLength() << 3;
int keyBits = spec.getCipherKeyLength() << 3;
boolean isExportable;
if (expandedKeyBits != 0) {
isExportable = true;
} else {
isExportable = false;
expandedKeyBits = keyBits;
}
CK_SSL3_RANDOM_DATA random = new CK_SSL3_RANDOM_DATA
(spec.getClientRandom(), spec.getServerRandom());
Object params = null;
CK_MECHANISM ckMechanism = null;
if (tlsVersion < 0x0303) {
params = new CK_SSL3_KEY_MAT_PARAMS
(macBits, keyBits, ivBits, isExportable, random);
ckMechanism = new CK_MECHANISM(mechanism, (CK_SSL3_KEY_MAT_PARAMS)params);
} else if (tlsVersion == 0x0303) {
params = new CK_TLS12_KEY_MAT_PARAMS
(macBits, keyBits, ivBits, isExportable, random,
Functions.getHashMechId(spec.getPRFHashAlg()));
ckMechanism = new CK_MECHANISM(mechanism, (CK_TLS12_KEY_MAT_PARAMS)params);
}
String cipherAlgorithm = spec.getCipherAlgorithm();
long keyType = P11SecretKeyFactory.getKeyType(cipherAlgorithm);
if (keyType < 0) {
if (keyBits != 0) {
throw new ProviderException
("Unknown algorithm: " + spec.getCipherAlgorithm());
} else {
// NULL encryption ciphersuites
keyType = CKK_GENERIC_SECRET;
}
}
Session session = null;
try {
session = token.getObjSession();
CK_ATTRIBUTE[] attributes;
if (keyBits != 0) {
attributes = new CK_ATTRIBUTE[] {
new CK_ATTRIBUTE(CKA_CLASS, CKO_SECRET_KEY),
new CK_ATTRIBUTE(CKA_KEY_TYPE, keyType),
new CK_ATTRIBUTE(CKA_VALUE_LEN, expandedKeyBits >> 3),
};
} else {
// ciphersuites with NULL ciphers
attributes = new CK_ATTRIBUTE[0];
}
attributes = token.getAttributes
(O_GENERATE, CKO_SECRET_KEY, keyType, attributes);
// the returned keyID is a dummy, ignore
long p11KeyID = p11Key.getKeyID();
try {
token.p11.C_DeriveKey(session.id(),
ckMechanism, p11KeyID, attributes);
} finally {
p11Key.releaseKeyID();
}
CK_SSL3_KEY_MAT_OUT out = null;
if (params instanceof CK_SSL3_KEY_MAT_PARAMS) {
out = ((CK_SSL3_KEY_MAT_PARAMS)params).pReturnedKeyMaterial;
} else if (params instanceof CK_TLS12_KEY_MAT_PARAMS) {
out = ((CK_TLS12_KEY_MAT_PARAMS)params).pReturnedKeyMaterial;
}
// Note that the MAC keys do not inherit all attributes from the
// template, but they do inherit the sensitive/extractable/token
// flags, which is all P11Key cares about.
SecretKey clientMacKey, serverMacKey;
// The MAC size may be zero for GCM mode.
//
// PKCS11 does not support GCM mode as the author made the comment,
// so the macBits is unlikely to be zero. It's only a place holder.
if (macBits != 0) {
clientMacKey = P11Key.secretKey
(session, out.hClientMacSecret, "MAC", macBits, attributes);
serverMacKey = P11Key.secretKey
(session, out.hServerMacSecret, "MAC", macBits, attributes);
} else {
clientMacKey = null;
serverMacKey = null;
}
SecretKey clientCipherKey, serverCipherKey;
if (keyBits != 0) {
clientCipherKey = P11Key.secretKey(session, out.hClientKey,
cipherAlgorithm, expandedKeyBits, attributes);
serverCipherKey = P11Key.secretKey(session, out.hServerKey,
cipherAlgorithm, expandedKeyBits, attributes);
} else {
clientCipherKey = null;
serverCipherKey = null;
}
IvParameterSpec clientIv = (out.pIVClient == null)
? null : new IvParameterSpec(out.pIVClient);
IvParameterSpec serverIv = (out.pIVServer == null)
? null : new IvParameterSpec(out.pIVServer);
return new TlsKeyMaterialSpec(clientMacKey, serverMacKey,
clientCipherKey, clientIv, serverCipherKey, serverIv);
} catch (Exception e) {
throw new ProviderException("Could not generate key", e);
} finally {
token.releaseSession(session);
}
}
}
| [
"chovavea@outlook.com"
] | chovavea@outlook.com |
63118408a255ba17fc899882f21866cfed51b574 | 8501e286832a36ed033b4220fb5e281f4b57e585 | /Sample8_2_圆锥体/app/src/main/java/com/bn/Sample8_2/MySurfaceView.java | 8cc0a7a91a588c302d4a2e05cc0897fa6a60569f | [] | no_license | CatDroid/OpenGLES3xGame | f8b2e88dffdbac67078c04f166f2fc42cf92cc67 | 6e066ceeb238836c623135871674337b4a8b4992 | refs/heads/master | 2021-05-16T15:30:08.674603 | 2020-12-20T09:32:28 | 2020-12-20T09:32:28 | 119,228,042 | 24 | 9 | null | null | null | null | UTF-8 | Java | false | false | 6,499 | java | package com.bn.Sample8_2;
import java.io.IOException;
import java.io.InputStream;
import android.opengl.GLES30;
import android.opengl.GLSurfaceView;
import android.opengl.GLUtils;
import android.view.MotionEvent;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
class MySurfaceView extends GLSurfaceView {
private final float TOUCH_SCALE_FACTOR = 180.0f/320;//角度缩放比例
private float mPreviousY;//上次的触控位置Y坐标
private float mPreviousX;//上次的触控位置X坐标
private SceneRenderer mRenderer;//场景渲染器
int textureId; //系统分配的纹理id
boolean drawWhatFlag=true; //绘制线填充方式的标志位
boolean lightFlag=true; //光照旋转的标志位
public MySurfaceView(Context context) {
super(context);
this.setEGLContextClientVersion(3); //设置使用OPENGL ES3.0
mRenderer = new SceneRenderer(); //创建场景渲染器
setRenderer(mRenderer); //设置渲染器
setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);//设置渲染模式为主动渲染
}
//触摸事件回调方法
@Override
public boolean onTouchEvent(MotionEvent e) {
float y = e.getY();
float x = e.getX();
switch (e.getAction()) {
case MotionEvent.ACTION_MOVE:
float dy = y - mPreviousY;//计算触控笔Y位移
float dx = x - mPreviousX;//计算触控笔X位移
mRenderer.cone.yAngle += dx * TOUCH_SCALE_FACTOR;//设置绕y轴旋转角度
mRenderer.cone.zAngle+= dy * TOUCH_SCALE_FACTOR;//设置绕z轴旋转角度
mRenderer.conel.yAngle += dx * TOUCH_SCALE_FACTOR;//设置绕y轴旋转角度
mRenderer.conel.zAngle+= dy * TOUCH_SCALE_FACTOR;//设置绕z轴旋转角度
}
mPreviousY = y;//记录触控笔位置
mPreviousX = x;//记录触控笔位置
return true;
}
private class SceneRenderer implements GLSurfaceView.Renderer
{
Cone cone;
ConeL conel;
public void onDrawFrame(GL10 gl)
{
//清除深度缓冲与颜色缓冲
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
//保护现场
MatrixState.pushMatrix();
MatrixState.translate(0, 0, -10);
if(drawWhatFlag)
{
cone.drawSelf();
}
else
{
conel.drawSelf();
}
MatrixState.popMatrix();
}
public void onSurfaceChanged(GL10 gl, int width, int height) {
//设置视窗大小及位置
GLES30.glViewport(0, 0, width, height);
//计算GLSurfaceView的宽高比
float ratio= (float) width / height;
//调用此方法计算产生透视投影矩阵
MatrixState.setProjectFrustum(-ratio, ratio, -1, 1, 4f, 100);
//调用此方法产生摄像机9参数位置矩阵
MatrixState.setCamera(0,0,8.0f,0f,0f,0f,0f,1.0f,0.0f);
//初始化光源
MatrixState.setLightLocation(10 , 0 , -10);
//启动一个线程定时修改灯光的位置
new Thread()
{
public void run()
{
float redAngle = 0;
while(lightFlag)
{
//根据角度计算灯光的位置
redAngle=(redAngle+5)%360;
float rx=(float) (15*Math.sin(Math.toRadians(redAngle)));
float rz=(float) (15*Math.cos(Math.toRadians(redAngle)));
MatrixState.setLightLocation(rx, 0, rz);
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}.start();
}
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
//设置屏幕背景色RGBA
GLES30.glClearColor(0.0f,0.0f,0.0f, 1.0f);
//启用深度测试
GLES30.glEnable(GLES30.GL_DEPTH_TEST);
//设置为打开背面剪裁
GLES30.glEnable(GLES30.GL_CULL_FACE);
//初始化变换矩阵
MatrixState.setInitStack();
//加载纹理
textureId=initTexture(R.drawable.android_robot0);
//创建圆锥对象
cone = new Cone(MySurfaceView.this,1,1.6f,3.9f,36,textureId,textureId);
//创建圆锥骨架对象
conel= new ConeL(MySurfaceView.this,1,1.6f,3.9f,36);
}
}
public int initTexture(int drawableId)//textureId
{
//生成纹理ID
int[] textures = new int[1];
GLES30.glGenTextures
(
1, //产生的纹理id的数量
textures, //纹理id的数组
0 //偏移量
);
int textureId=textures[0];
GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, textureId);
GLES30.glTexParameterf(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_MIN_FILTER,GLES30.GL_NEAREST);
GLES30.glTexParameterf(GLES30.GL_TEXTURE_2D,GLES30.GL_TEXTURE_MAG_FILTER,GLES30.GL_LINEAR);
GLES30.glTexParameterf(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_S,GLES30.GL_CLAMP_TO_EDGE);
GLES30.glTexParameterf(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_T,GLES30.GL_CLAMP_TO_EDGE);
//通过输入流加载图片===============begin===================
InputStream is = this.getResources().openRawResource(drawableId);
Bitmap bitmapTmp;
try
{
bitmapTmp = BitmapFactory.decodeStream(is);
}
finally
{
try
{
is.close();
}
catch(IOException e)
{
e.printStackTrace();
}
}
//通过输入流加载图片===============end=====================
//实际加载纹理
GLUtils.texImage2D
(
GLES30.GL_TEXTURE_2D, //纹理类型,在OpenGL ES中必须为GL10.GL_TEXTURE_2D
0, //纹理的层次,0表示基本图像层,可以理解为直接贴图
bitmapTmp, //纹理图像
0 //纹理边框尺寸
);
bitmapTmp.recycle(); //纹理加载成功后释放图片
return textureId;
}
}
| [
"1198432354@qq.com"
] | 1198432354@qq.com |
d11566b3456e2f1f2c92b2e8be08b1431b61cbde | b54980b4a7ecc18991a13939e987db06623155b4 | /samples/gwt2chat/app/gwt/longPolling/client/ChatRoomService.java | 865d3a41430c5f0c00ac31f85eecf244a3f04028 | [] | no_license | VijayEluri/play-gwt2 | 029ce7844b7eb927e3f200782e101fbd5600f8d0 | 232bdb6fc5d78e4fc9aef91f5b390f3b786a7233 | refs/heads/master | 2020-05-20T11:02:25.339103 | 2012-10-07T21:37:17 | 2012-10-07T21:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 599 | java | package gwt.longPolling.client;
import java.util.List;
import shared.events.Event;
import shared.events.EventDummy;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* The client side stub for the RPC service.
*/
@RemoteServiceRelativePath("chatroom")
public interface ChatRoomService extends RemoteService {
EventDummy dummy(EventDummy dummy);
void say(String message, String user) throws IllegalArgumentException;
public List<Event> waitMessages(Long lastReceived)
throws IllegalArgumentException;
}
| [
"vincent.buzzano@gmail.com"
] | vincent.buzzano@gmail.com |
f3b78ee317f7ffcbcad952978e2cd1c0957fa667 | 723fd77bbb8c532c16e467f0689cf579ff730b9b | /Module3_web_case_study/FuramaResort/src/main/java/model/responsitory/service/ServiceResponsitory.java | 43f2f47a61e5431a953c30bddef57f095a1934d3 | [] | no_license | nhkhanh6398/A2010I1_NguyenHuuKhanh | a4d23e0e9e00eb14186077c629d0af91d22b0336 | 0220559c19467533534c73997af2531cc52ef045 | refs/heads/main | 2023-08-14T08:02:13.722516 | 2021-09-15T15:24:39 | 2021-09-15T15:24:39 | 309,373,995 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 313 | java | package model.responsitory.service;
import model.bean.Service;
import java.util.List;
public interface ServiceResponsitory {
List<Service> listAll();
boolean save(Service service);
boolean update(int id, Service service);
boolean delete(int id);
List<Service> seacrhService(String name);
}
| [
"nhkhanh6398@gmail.com"
] | nhkhanh6398@gmail.com |
28c45684499c7070497de652c59fbf9f290334bc | 623420aa5796292c92e1ed93b845ab7e0b7c4633 | /Lab02/src/lab02/Lab02.java | 471b2413512fb7ca03576176de734b5c21990555 | [] | no_license | Sirisap22/java-practices | d0b3f20716fb7a50be429d6e6a0d556fbeef7b19 | 82ebcfebc608acf05c9d698ec8f3d4a7a42ca6cc | refs/heads/main | 2023-03-04T03:35:16.870259 | 2021-02-16T10:22:49 | 2021-02-16T10:22:49 | 328,944,208 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 663 | 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 lab02;
import lab02.FutureDates;
import lab02.ScissorRockPaperGame;
import lab02.DayOfTheWeek;
import lab02.DisplayPyramid;
/**
*
* @author Sirisap Siripattanakul
*/
public class Lab02 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
//new FutureDates().start();
//new ScissorRockPaperGame().start();
//new DayOfTheWeek().start();
new DisplayPyramid().start();
}
}
| [
"58851659+Sirisap22@users.noreply.github.com"
] | 58851659+Sirisap22@users.noreply.github.com |
e5ec4429723da000d2e82f8d7a360b0b3b386072 | f906eae49a9edb6e95fe596134a5d90e02414ee0 | /Project/AllTogether/app/src/main/java/com/example/k/alltogether/alltogether/SelectModeDialog.java | a85fc83872f3c789295df9d025447007c0cadb6d | [] | no_license | sc545/Main | c25a89b177dd010d5ce07d14f64d308ee82ff505 | bae3f8ccd88142bb4aac8c5ccab3cd66c072a03e | refs/heads/master | 2021-01-10T04:02:57.023112 | 2015-11-26T14:34:21 | 2015-11-26T14:34:21 | 43,680,949 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,329 | java | package com.example.k.alltogether.alltogether;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import com.example.k.alltogether.R;
/**
* Created by K on 2015-11-19.
*/
public class SelectModeDialog extends Dialog {
MainActivity mainActivity;
Button btnMode1, btnMode2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
if(MainActivity.SIZE == 0)
setContentView(R.layout.select_mode_dailog);
else
setContentView(R.layout.select_mode_dailog_tab);
btnMode1 = (Button) findViewById(R.id.btn1);
btnMode2 = (Button) findViewById(R.id.btn2);
btnMode1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(mainActivity.getApplicationContext(), GameStageActivity.class);
i.putExtra("MusicBgmState", mainActivity.m_bMusicBgmState);
i.putExtra("MusicEffectState", mainActivity.m_bMusicEffectState);
mainActivity.startActivity(i);
mainActivity.finish();
}
});
btnMode2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(mainActivity.getApplicationContext(), SelectImageActivity.class);
i.putExtra("screenWidth", mainActivity.SCREENWIDTH);
mainActivity.startActivity(i);
mainActivity.finish();
}
});
}
SelectModeDialog(Context context, MainActivity mainActivity){
super(context);
this.mainActivity = mainActivity;
}
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {// 뒤로가기 누를시
dismiss();
}
return false;
}
}
| [
"sc545545@naver.com"
] | sc545545@naver.com |
a64bded51402b2e8ec413e33642924d7b7339170 | 6cc2595fb4fce1646d623a702ff37a20598da7a4 | /schema/ab-products/solutions/common/src/main/com/archibus/app/solution/common/webservice/document/client/CopyIntoItems.java | df64860be9efb006779ea552508967573ae26d3e | [] | no_license | ShyLee/gcu | 31581b4ff583c04edc64ed78132c0505b4820b89 | 21a3f9a0fc6e4902ea835707a1ec01823901bfc3 | refs/heads/master | 2020-03-13T11:43:41.450995 | 2018-04-27T04:51:27 | 2018-04-27T04:51:27 | 131,106,455 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,740 | java |
package com.archibus.app.solution.common.webservice.document.client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SourceUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="DestinationUrls" type="{http://schemas.microsoft.com/sharepoint/soap/}DestinationUrlCollection" minOccurs="0"/>
* <element name="Fields" type="{http://schemas.microsoft.com/sharepoint/soap/}FieldInformationCollection" minOccurs="0"/>
* <element name="Stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sourceUrl",
"destinationUrls",
"fields",
"stream"
})
@XmlRootElement(name = "CopyIntoItems")
public class CopyIntoItems {
@XmlElement(name = "SourceUrl")
protected String sourceUrl;
@XmlElement(name = "DestinationUrls")
protected DestinationUrlCollection destinationUrls;
@XmlElement(name = "Fields")
protected FieldInformationCollection fields;
@XmlElement(name = "Stream")
protected byte[] stream;
/**
* Gets the value of the sourceUrl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSourceUrl() {
return sourceUrl;
}
/**
* Sets the value of the sourceUrl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSourceUrl(String value) {
this.sourceUrl = value;
}
/**
* Gets the value of the destinationUrls property.
*
* @return
* possible object is
* {@link DestinationUrlCollection }
*
*/
public DestinationUrlCollection getDestinationUrls() {
return destinationUrls;
}
/**
* Sets the value of the destinationUrls property.
*
* @param value
* allowed object is
* {@link DestinationUrlCollection }
*
*/
public void setDestinationUrls(DestinationUrlCollection value) {
this.destinationUrls = value;
}
/**
* Gets the value of the fields property.
*
* @return
* possible object is
* {@link FieldInformationCollection }
*
*/
public FieldInformationCollection getFields() {
return fields;
}
/**
* Sets the value of the fields property.
*
* @param value
* allowed object is
* {@link FieldInformationCollection }
*
*/
public void setFields(FieldInformationCollection value) {
this.fields = value;
}
/**
* Gets the value of the stream property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getStream() {
return stream;
}
/**
* Sets the value of the stream property.
*
* @param value
* allowed object is
* byte[]
*/
public void setStream(byte[] value) {
this.stream = ((byte[]) value);
}
}
| [
"lixinwo@vip.qq.com"
] | lixinwo@vip.qq.com |
ac073c614ddd5d399bb6c48be79dfced150511e3 | 10607a07f93e716782116364e02c335acbebb21d | /src/oracle/jdbc/driver/NTFXSEvent.java | 1a6df4f7bc61bcf48eca8ce76a483bedd34a106d | [] | no_license | hyee/ojdbc6-11.2.0.2.0.src | c9a70e83e21c4235d56088fc5dd728bda7b44e7b | 41eef5e34775532c7aec2f03d41d360152676e00 | refs/heads/master | 2020-05-09T18:04:09.105850 | 2019-02-28T21:01:30 | 2019-02-28T21:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,121 | java | package oracle.jdbc.driver;
import java.io.IOException;
import java.sql.SQLException;
import oracle.jdbc.internal.KeywordValueLong;
import oracle.jdbc.internal.XSEvent;
class NTFXSEvent extends XSEvent
{
private final byte[] sid_kpuzxsss;
private final KeywordValueLongI[] sess_kpuzxsss;
private final int flg_kpuzxsss;
private static final String _Copyright_2007_Oracle_All_Rights_Reserved_ = null;
public static final String BUILD_DATE = "Sat_Aug_14_12:18:34_PDT_2010";
public static final boolean TRACE = false;
NTFXSEvent(T4CConnection paramT4CConnection)
throws SQLException, IOException
{
super(paramT4CConnection);
T4CMAREngine localT4CMAREngine = paramT4CConnection.getMarshalEngine();
this.sid_kpuzxsss = localT4CMAREngine.unmarshalDALC();
int i = (int)localT4CMAREngine.unmarshalUB4();
int j = (byte)localT4CMAREngine.unmarshalUB1();
this.sess_kpuzxsss = new KeywordValueLongI[i];
for (int k = 0; k < i; k++)
{
this.sess_kpuzxsss[k] = KeywordValueLongI.unmarshal(localT4CMAREngine);
}
this.flg_kpuzxsss = ((int)localT4CMAREngine.unmarshalUB4());
}
public byte[] getSessionId()
{
return this.sid_kpuzxsss;
}
public KeywordValueLong[] getDetails()
{
return (KeywordValueLong[])this.sess_kpuzxsss;
}
public int getFlags()
{
return this.flg_kpuzxsss;
}
public String toString()
{
StringBuffer localStringBuffer = new StringBuffer();
localStringBuffer.append("sid_kpuzxsss : " + NTFAQEvent.byteBufferToHexString(this.sid_kpuzxsss, 50) + "\n");
localStringBuffer.append("sess_kpuzxsss : \n");
localStringBuffer.append(" size : " + this.sess_kpuzxsss.length + "\n");
for (int i = 0; i < this.sess_kpuzxsss.length; i++)
{
localStringBuffer.append(" sess_kpuzxsss #" + i + " : \n");
if (this.sess_kpuzxsss[i] == null)
localStringBuffer.append("null\n");
else
localStringBuffer.append(this.sess_kpuzxsss[i].toString());
}
localStringBuffer.append("flg_kpuzxsss : " + this.flg_kpuzxsss + "\n");
return localStringBuffer.toString();
}
} | [
"charlietang98@gmail.com"
] | charlietang98@gmail.com |
993a7e0ac51fa088778082be4295bd9def6cd6cc | ae623a01a4bbb097d0baac648f2aa0f2a10e1213 | /helloScheduler/src/main/java/hello/app/util/BatchConnection.java | c9f513b0708f393a257f673bcccf0b6bc9c1f404 | [] | no_license | applifireAlgo/hello-test | d93e420315ac064cd390616eedefdd92dd3d4856 | 1a639271fb13b36dbedb035000b2f67fde3da268 | refs/heads/master | 2021-01-10T13:56:25.991034 | 2015-10-19T14:56:16 | 2015-10-19T14:56:16 | 44,541,533 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,613 | java | package hello.app.util;
import java.io.IOException;
import java.net.HttpURLConnection;
public class BatchConnection {
public HttpURLConnection openConnection(String urlString,String urlParameter,String methodType) throws Exception
{
try
{
java.net.URL url;
java.net.HttpURLConnection connection = null;
String targetURL =urlString;
String urlParameters = urlParameter;
url = new java.net.URL(targetURL);
connection = (java.net.HttpURLConnection) url.openConnection();
connection.setRequestMethod(methodType);
connection.setRequestProperty("Content-Type", "application/json");
connection.setRequestProperty("Job-Execution", "true");
connection.setRequestProperty("Content-Length", Integer.toString(urlParameters.getBytes().length));
connection.setRequestProperty("Content-Language", "en-US");
connection.setUseCaches(false);
connection.setDoInput(true);
connection.setDoOutput(true);
return connection;
}
catch(IOException e)
{
throw e;
}
}
public HttpURLConnection sendPayLoad(HttpURLConnection connection,String urlParameters) throws IOException
{
try
{
java.io.DataOutputStream wr = new java.io.DataOutputStream(connection.getOutputStream());
wr.writeBytes(urlParameters);
wr.flush();
wr.close();
return connection;
}
catch(IOException e)
{
throw e;
}
}
public HttpURLConnection getResponse(HttpURLConnection connection) throws IOException
{
try
{
java.io.InputStream is = connection.getInputStream();
java.io.BufferedReader rd = new java.io.BufferedReader(new java.io.InputStreamReader(is));
String line;
StringBuffer response = new StringBuffer();
while ((line = rd.readLine()) != null) {
response.append(line);
response.append('\r');
}
rd.close();
System.out.println("message=" + response.toString());
return connection;
}
catch(IOException e)
{
throw e;
}
}
public void closeConnection(HttpURLConnection connection) throws Exception
{
try
{
if (connection != null) {
connection.disconnect();
}
}
catch(Exception e)
{
throw e;
}
}
}
| [
"isha@isha-To-be-filled-by-O-E-M"
] | isha@isha-To-be-filled-by-O-E-M |
7517174a136677494633a6bc0c6e624ec4431695 | 232ed4a9e36f31b477a8134a519868d08d8b5706 | /student/422. Valid Word Square/Solution.java | 05d5b55a96069051e03d41bf13e058d507bfd73a | [] | no_license | JasonHan0929/Leetcode | db64d1ccfe22c03c2e2bdce40b9c67d05d7ce3d6 | e2a519e9b8d3fa9184088367a7c1c13150acc719 | refs/heads/master | 2022-09-17T00:14:44.740346 | 2020-06-05T08:01:33 | 2020-06-05T08:01:33 | 68,149,275 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 549 | java | class Solution {
public boolean validWordSquare(List<String> words) {
for (int i = 0; i < words.size(); i++) {
String word = words.get(i);
for (int j = 0; j < word.length(); j++) { // j = i could not work because the length of the words will not be same
if (j >= words.size()) return false;
String otherWord = words.get(j);
if (otherWord.length() <= i || word.charAt(j) != otherWord.charAt(i)) return false;
}
}
return true;
}
}
| [
"jasonhan0929@hotmail.com"
] | jasonhan0929@hotmail.com |
82a468a7a54ae1b873549f5e9224edd70d0ce6b6 | 202d53914700939d6d12380d02ede8d962c14b60 | /FastCampus_170517 복사본/Mybbs/src/com/junhee/mybbs/view/BbsInput.java | 025bd218b484e06db3d96fa3db9ecb5ec88e8c52 | [] | no_license | jhlee910609/FastCampus_study | 2867d7aef496fdb2c6eb0ad582bcef0022c6ed7a | 2f5de4937e578e57390b83aa51fe0bb9c9612865 | refs/heads/master | 2020-12-30T16:48:05.954439 | 2017-08-26T14:33:13 | 2017-08-26T14:33:13 | 91,034,637 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 700 | java | package com.junhee.mybbs.view;
import java.util.Scanner;
import com.junhee.mybbs.model.Bbs;
public class BbsInput {
// 이전에 만든 Scanner 객체를 인자로 넣어둠
public Bbs proccess(Scanner scanner) {
System.out.println("제목을 입력하세요.");
String title = scanner.nextLine();
System.out.println("작성자를 입력하세요.");
String author = scanner.nextLine();
System.out.println("내용을 입력하세요.");
String content = scanner.nextLine();
Bbs bbs = new Bbs();
bbs.setTitle(title);
bbs.setAuthor(author);
bbs.setContent(content);
return bbs;
}
}
/*
* System.out.println(" "); enter = \r\n
*/
// 객체 자체를 bbs에 넘겨줌
| [
"jhlee910609@gmail.com"
] | jhlee910609@gmail.com |
4bbb8194e99a661d459768053d2709a33ddcac39 | d40a3f4ce7200725e42866cc10c47401a3acdd66 | /server-core/src/main/java/io/onedev/server/buildspec/step/StepTemplate.java | faa4885eb6572ef4fb8517ca87eb70b17c486db4 | [
"MIT"
] | permissive | antoine2142/OneDevSonarCloud | 6867a6f584a4502433d25e278b357c57efcd2fb8 | 48e38b9a4262f3f9ff2d2a0642dad24731a529d5 | refs/heads/main | 2023-04-16T17:29:02.418408 | 2021-04-15T00:11:29 | 2021-04-15T00:11:29 | 357,666,591 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,248 | java | package io.onedev.server.buildspec.step;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import org.hibernate.validator.constraints.NotEmpty;
import io.onedev.server.buildspec.NamedElement;
import io.onedev.server.buildspec.job.paramspec.ParamSpec;
import io.onedev.server.web.editable.annotation.Editable;
@Editable
public class StepTemplate implements NamedElement, Serializable {
private static final long serialVersionUID = 1L;
private String name;
private List<Step> steps = new ArrayList<>();
private List<ParamSpec> paramSpecs = new ArrayList<>();
@Editable(order=100)
@NotEmpty
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Editable(order=200, name="Steps to Execute")
public List<Step> getSteps() {
return steps;
}
public void setSteps(List<Step> steps) {
this.steps = steps;
}
@Editable(order=300, name="Parameter Specs", description="Optionally define parameter specifications of the step template")
@Valid
public List<ParamSpec> getParamSpecs() {
return paramSpecs;
}
public void setParamSpecs(List<ParamSpec> paramSpecs) {
this.paramSpecs = paramSpecs;
}
}
| [
"antoinekop@gmail.com"
] | antoinekop@gmail.com |
bdcd6c0c72936356808fc7d88de15abc38ede6f0 | a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb | /eventbridge-20200401/src/main/java/com/aliyun/eventbridge20200401/models/CreateEventStreamingShrinkRequest.java | 8bd8eee16a6da926eef8d3012b16e1f2f5a3965c | [
"Apache-2.0"
] | permissive | aliyun/alibabacloud-java-sdk | 83a6036a33c7278bca6f1bafccb0180940d58b0b | 008923f156adf2e4f4785a0419f60640273854ec | refs/heads/master | 2023-09-01T04:10:33.640756 | 2023-09-01T02:40:45 | 2023-09-01T02:40:45 | 288,968,318 | 40 | 45 | null | 2023-06-13T02:47:13 | 2020-08-20T09:51:08 | Java | UTF-8 | Java | false | false | 2,265 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.eventbridge20200401.models;
import com.aliyun.tea.*;
public class CreateEventStreamingShrinkRequest extends TeaModel {
@NameInMap("Description")
public String description;
@NameInMap("EventStreamingName")
public String eventStreamingName;
@NameInMap("FilterPattern")
public String filterPattern;
@NameInMap("RunOptions")
public String runOptionsShrink;
@NameInMap("Sink")
public String sinkShrink;
@NameInMap("Source")
public String sourceShrink;
public static CreateEventStreamingShrinkRequest build(java.util.Map<String, ?> map) throws Exception {
CreateEventStreamingShrinkRequest self = new CreateEventStreamingShrinkRequest();
return TeaModel.build(map, self);
}
public CreateEventStreamingShrinkRequest setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public CreateEventStreamingShrinkRequest setEventStreamingName(String eventStreamingName) {
this.eventStreamingName = eventStreamingName;
return this;
}
public String getEventStreamingName() {
return this.eventStreamingName;
}
public CreateEventStreamingShrinkRequest setFilterPattern(String filterPattern) {
this.filterPattern = filterPattern;
return this;
}
public String getFilterPattern() {
return this.filterPattern;
}
public CreateEventStreamingShrinkRequest setRunOptionsShrink(String runOptionsShrink) {
this.runOptionsShrink = runOptionsShrink;
return this;
}
public String getRunOptionsShrink() {
return this.runOptionsShrink;
}
public CreateEventStreamingShrinkRequest setSinkShrink(String sinkShrink) {
this.sinkShrink = sinkShrink;
return this;
}
public String getSinkShrink() {
return this.sinkShrink;
}
public CreateEventStreamingShrinkRequest setSourceShrink(String sourceShrink) {
this.sourceShrink = sourceShrink;
return this;
}
public String getSourceShrink() {
return this.sourceShrink;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
41bef9aef087761a0109f25e4c1fa97083fdab21 | c4771b4fe031c44d4039ca024bc93f5931539535 | /src/main/java/com/sweetkrista/redstonesensor/proxy/ServerProxy.java | 85c07b1e0173cd34fcf4a3dd1789914833b8d24f | [
"Apache-2.0"
] | permissive | sweetkristas/RedstoneSensor | 83abadc112dc47d7f7ea34deb5adf95d19ae278e | a051a208bb82ecfae8c97a73efc686e57e44e24d | refs/heads/master | 2021-01-10T03:11:14.921518 | 2015-09-27T19:03:34 | 2015-09-27T19:03:34 | 43,094,280 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 96 | java | package com.sweetkrista.redstonesensor.proxy;
public class ServerProxy extends CommonProxy {
}
| [
"sweet.kristas@gmail.com"
] | sweet.kristas@gmail.com |
ccef59592254bd12a91351c78916d8131bacbf2d | 1a37f3187e104252980d41ff5b436c6708c2ec06 | /gobang-api/src/main/java/top/naccl/gobang/model/entity/Room.java | 1c0c804b3fda39956beaeea6845c0a9572e8788e | [
"MIT"
] | permissive | tanbinh123/gobang | 0d0eb1b80be7648d5a4609508215afc5ed709763 | 1abc92d2d74790385fcca963950f7579ae53ada3 | refs/heads/main | 2023-09-05T09:25:10.271389 | 2021-10-29T10:52:38 | 2021-10-29T10:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 369 | java | package top.naccl.gobang.model.entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* @Description: 游戏房间
* @Author: Naccl
* @Date: 2020-11-10
*/
@NoArgsConstructor
@Getter
@Setter
@ToString
public class Room {
private String owner;
private String player;
private boolean isPlaying = false;
}
| [
"admin@naccl.top"
] | admin@naccl.top |
dc894219ecb205395fe023b1100385eebe9bad5d | dca76b392d9b90ee9d6122b5232ac678377898d8 | /src/main/java/at/salzburgresearch/vgi/vgianalyticsframework/activityanalysis/service/IVgiAnalysisAction.java | 5ffa1ccd507719ecbd791731b508d47b6cd04caa | [
"Apache-2.0"
] | permissive | emplexed/vgi-analytics-framework | 95acdec0ef710b4fad019e4686a7352c60541d11 | 0127ba6ef9c6066aff0181a27d60e379b5218bfb | refs/heads/master | 2022-01-25T14:22:14.163027 | 2018-07-25T09:08:15 | 2018-07-25T09:08:15 | 49,703,581 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,027 | java | /** Copyright 2017, Simon Gröchenig, Salzburg Research Forschungsgesellschaft m.b.H.
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 at.salzburgresearch.vgi.vgianalyticsframework.activityanalysis.service;
import java.io.File;
import java.util.Date;
import at.salzburgresearch.vgi.vgianalyticsframework.activityanalysis.model.vgi.IVgiAction;
public interface IVgiAnalysisAction {
void analyze(IVgiAction action, Date date);
void write(File path);
void reset();
void addToProcessingTime(long l);
long getProcessingTime();
}
| [
"SGroechenig@gmx.at"
] | SGroechenig@gmx.at |
7f3cfe5b1458f93aaa8c213703be174610c25da5 | c32bb5a20b26d473a61594d4dedb10a26d25d2a2 | /src/lexer/json/TokenValidator.java | c8e355054e24a8b5ae2565879942822cb793dc60 | [] | no_license | LorenaAcosta/lexer-json | 1736fdc844e7ed78ee679025a5e110460e3734bc | 841b772c511ebd72932108499ebcf7ddf6dd1ba9 | refs/heads/master | 2021-08-15T18:24:25.883994 | 2017-09-25T00:35:38 | 2017-09-25T00:35:38 | 104,692,820 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 576 | 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 lexer.json;
/**
*
* @author Lore
*/
public class TokenValidator {
int pos;
boolean valido;
public int getPos() {
return pos;
}
public void setPos(int pos) {
this.pos = pos;
}
public boolean isValido() {
return valido;
}
public void setValido(boolean valido) {
this.valido = valido;
}
}
| [
"lorena.acosta95@gmail.com"
] | lorena.acosta95@gmail.com |
23095c1cfac7ce78d35820a4277e9481223ec818 | d190e0618f78297dc128f89d5cad5e58cb1433d5 | /FragmentToFragmentCommunication/app/src/main/java/com/example/fragmenttofragmentcommunication/FragmentA.java | be7d03a6ac06be9d4cc030edca60a03abd0091d5 | [] | no_license | MostafaAkash/Android | de62a6ca1460729d3b8eea911266eb3383952c82 | 250a1649ec6154baf976cad2d96a208305fd8c88 | refs/heads/master | 2020-09-19T10:46:43.165907 | 2019-11-26T17:43:53 | 2019-11-26T17:43:53 | 224,226,365 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,812 | java | package com.example.fragmenttofragmentcommunication;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
public class FragmentA extends Fragment {
private FragmentAListener listener;
private EditText editText;
private Button btn;
public interface FragmentAListener{
void onInputASent(CharSequence input);
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_a,container,false);
editText = v.findViewById(R.id.edit_text_id_fragment_a_ac);
btn = v.findViewById(R.id.ok_btn_id_fragment_a_ac);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
CharSequence input = editText.getText();
listener.onInputASent(input);
}
});
return v;
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
if(context instanceof FragmentAListener)
{
listener = (FragmentAListener) context;
}
else
{
throw new RuntimeException(context.toString()+" Must have to implement FragmentAListener");
}
}
public void updateEditText(CharSequence newText)
{
editText.setText(newText);
}
@Override
public void onDestroy() {
super.onDestroy();
listener = null;
}
}
| [
"mostafacse01@gmail.com"
] | mostafacse01@gmail.com |
ca8c6d2300c7d45033fbf4676d04835973a92982 | 1d9536408950a0a6ebb637c20492657bfe8af94c | /code_forces/Div2/contest/C/Link_Cut_Centroids.java | edc8e3cf84b9cb0881baf37d9c33d35d1d01a794 | [] | no_license | atish1999/Testing_knowledge | 2d5c5b9b53afb3d560454056b35850d1cb87aae1 | b31dc0e185458c576737a888549d838a091c1939 | refs/heads/master | 2023-07-16T03:24:32.236832 | 2021-09-04T02:16:21 | 2021-09-04T02:16:21 | 302,491,537 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,886 | java | package code_forces.Div2.contest.C;
import java.util.*;
import java.io.*;
public class Link_Cut_Centroids {
static int mod = (int) (1e9 + 7);
public static void main(String[] args) throws java.lang.Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer s = new StringTokenizer(br.readLine());
}
static class CP {
static long binary_Expo(long a, long b) { // calculating a^b
long res = 1;
while (b != 0) {
if ((b & 1) == 1) {
res *= a;
--b;
}
a *= a;
b /= 2;
}
return res;
}
static long Modular_Expo(long a, long b) {
long res = 1;
while (b != 0) {
if ((b & 1) == 1) {
res = (res * a) % mod;
--b;
}
a = (a * a) % mod;
b /= 2;
}
return res;
}
static long gcd(long a, long b) {// here b is the remainder
if (b == 0)
return a; //because each time b will divide a.
return gcd(b, a % b);
}
static long ceil_div(long a, long b) { // a numerator b denominator
return (a + b - 1) / b;
}
static int getIthBitFromInt(int bits, int i) {
return (bits >> (i - 1)) & 1;
}
static int upper_Bound(int a[], int x) {//closest to the left+1
int l = -1, r = a.length;
while (l + 1 < r) {
int m = (l + r) >>> 1;
if (a[m] <= x)
l = m;
else
r = m;
}
return l + 1;
}
static int lower_Bound(int a[], int x) {//closest to the right
int l = -1, r = a.length;
while (l + 1 < r) {
int m = (l + r) >>> 1;
if (a[m] >= x)
r = m;
else
l = m;
}
return r;
}
static void sort(int a[]) {
PriorityQueue<Integer> q = new PriorityQueue<>();
for (int i = 0; i < a.length; i++)
q.add(a[i]);
for (int i = 0; i < a.length; i++)
a[i] = q.poll();
}
}
}
| [
"atishnaskar1999@gmail.com"
] | atishnaskar1999@gmail.com |
1201856cbef497329b91b6eafc693919379916f4 | cbd7cfffac6292230e65771a9ef937c032457e01 | /src/main/java/bean/Classes.java | cfd964a7f9b2d25e517f5202dd4ea7f939d6aa82 | [] | no_license | promid/myBatis | d14411b096b1ea5f4d7d610bdc04b160ac0c7ba8 | b5146555495b2051a218e093e1995edd1441ea9b | refs/heads/master | 2021-01-11T09:26:07.669604 | 2016-12-22T01:34:36 | 2016-12-22T01:34:36 | 77,099,711 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 975 | java | package bean;
import java.util.List;
public class Classes {
private int id;
private String name;
private Teacher teacher;
private List<Student> list;
public Classes(int id, String name, Teacher teacher, List<Student> list) {
super();
this.id = id;
this.name = name;
this.teacher = teacher;
this.list = list;
}
public Classes(int id, String name, Teacher teacher) {
super();
this.id = id;
this.name = name;
this.teacher = teacher;
}
public Classes() {
super();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Teacher getTeacher() {
return teacher;
}
public void setTeacher(Teacher teacher) {
this.teacher = teacher;
}
@Override
public String toString() {
return "Classes [id=" + id + ", name=" + name + ", teacher=" + teacher
+ ", Student list=" + list + "]";
}
}
| [
"350758787@qq.com"
] | 350758787@qq.com |
f32275b167658932019b1ac6cf8692b9a3746662 | ceab19a7632794a11896cdef7037725550b5269f | /src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/tableeditor/variables/DictVariableDetailCellEditorEntry.java | 8082c955ffc1a639a5373c08de0b562416bc133f | [
"Apache-2.0"
] | permissive | aihuasxy/RED | 79729b0b8c9b8b3c837b7fc6eaff3010aaa25ebf | aab80218fa42656310ca1ee97b87c039ae988a0a | refs/heads/master | 2021-01-13T04:25:20.808371 | 2017-01-10T13:28:14 | 2017-01-10T13:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,281 | java | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.tableeditor.variables;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.TraverseEvent;
import org.eclipse.swt.events.TraverseListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.rf.ide.core.testdata.model.table.variables.DictionaryVariable.DictionaryKeyValuePair;
import org.robotframework.ide.eclipse.main.plugin.RedImages;
import org.robotframework.red.graphics.ImagesManager;
import org.robotframework.red.jface.assist.AssistantContext;
import org.robotframework.red.jface.assist.RedContentProposalAdapter.RedContentProposalListener;
import org.robotframework.red.nattable.edit.AssistanceSupport;
import org.robotframework.red.nattable.edit.AssistanceSupport.NatTableAssistantContext;
import org.robotframework.red.nattable.edit.CellEditorValueValidator;
import org.robotframework.red.nattable.edit.DefaultRedCellEditorValueValidator;
import org.robotframework.red.nattable.edit.DetailCellEditorEntry;
import org.robotframework.red.swt.LabelsMeasurer;
import com.google.common.base.Optional;
/**
* @author Michal Anglart
*
*/
class DictVariableDetailCellEditorEntry extends DetailCellEditorEntry<DictionaryKeyValuePair> {
private final AssistanceSupport assistSupport;
private String keyText;
private String valueText;
private Text textEdit;
DictVariableDetailCellEditorEntry(final Composite parent, final int column, final int row,
final AssistanceSupport assistSupport, final Color hoverColor, final Color selectionColor) {
super(parent, column, row, hoverColor, selectionColor);
this.assistSupport = assistSupport;
addPaintListener(new DictElementPainter());
GridLayoutFactory.fillDefaults().extendedMargins(0, HOVER_BLOCK_WIDTH, 0, 0).applyTo(this);
}
@Override
protected CellEditorValueValidator<String> getValidator() {
return new DefaultRedCellEditorValueValidator();
}
@Override
public void openForEditing() {
super.openForEditing();
textEdit = new Text(this, SWT.BORDER);
final String toEdit = keyText + (valueText.isEmpty() ? "" : "=" + valueText);
textEdit.setText(toEdit);
textEdit.setSelection(textEdit.getText().length());
textEdit.addFocusListener(new FocusAdapter() {
@Override
public void focusLost(final FocusEvent e) {
commitEdit();
}
});
textEdit.addTraverseListener(new TraverseListener() {
@Override
public void keyTraversed(final TraverseEvent e) {
if (assistSupport.areContentProposalsShown()) {
return;
}
if (e.keyCode == SWT.ESC) {
cancelEdit();
} else if (e.keyCode == SWT.CR || e.keyCode == SWT.KEYPAD_CR) {
commitEdit();
}
}
});
validationJobScheduler.armRevalidationOn(textEdit);
final AssistantContext context = new NatTableAssistantContext(column, row);
assistSupport.install(textEdit, context, Optional.<RedContentProposalListener> absent());
GridDataFactory.fillDefaults().grab(true, false).indent(5, 2).applyTo(textEdit);
layout();
select(true);
textEdit.setFocus();
}
@Override
protected String getNewValue() {
return textEdit.getText();
}
@Override
protected void closeEditing() {
super.closeEditing();
if (textEdit != null && !textEdit.isDisposed()) {
textEdit.dispose();
}
redraw();
}
@Override
public void update(final DictionaryKeyValuePair detail) {
keyText = detail.getKey().getText();
valueText = detail.getValue().getText();
setToolTipText(keyText + " --> " + valueText);
redraw();
}
private class DictElementPainter extends EntryControlPainter {
@Override
protected void paintForeground(final int width, final int height, final GC bufferGC) {
final int mid = width / 2;
final int spacingAroundImage = 8;
final int keyLimit = mid - 2 * 4 - spacingAroundImage;
final int keyX = 4;
if (bufferGC.textExtent(keyText).x < keyLimit) {
bufferGC.drawText(keyText, keyX, 4);
} else {
final String suffix = "...";
final int suffixLength = bufferGC.textExtent(suffix).x;
bufferGC.drawText(LabelsMeasurer.cutTextToRender(bufferGC, keyText, keyLimit - suffixLength) + suffix,
keyX, 4);
}
if (isHovered()) {
bufferGC.drawImage(ImagesManager.getImage(RedImages.getDictionaryMappingImage()), mid - spacingAroundImage, 4);
} else {
bufferGC.drawImage(ImagesManager.getImage(RedImages.getGreyedImage(RedImages.getDictionaryMappingImage())),
mid - spacingAroundImage, 4);
}
final int valueLimit = mid - HOVER_BLOCK_WIDTH - 4 - spacingAroundImage;
final int valueX = mid + spacingAroundImage + 4;
if (bufferGC.textExtent(valueText).x < valueLimit) {
bufferGC.drawText(valueText, valueX, 4);
} else {
final String suffix = "...";
final int suffixLength = bufferGC.textExtent(suffix).x;
bufferGC.drawText(
LabelsMeasurer.cutTextToRender(bufferGC, valueText, valueLimit - suffixLength) + suffix, valueX,
4);
}
}
}
}
| [
"test009@nsn.com.not.available"
] | test009@nsn.com.not.available |
821986a93a214ab6c716acca37ccf9652262b1cd | 9fbd21c0ffd2dee3378529ba43a729a70bbe0f5f | /app/src/main/java/com/example/scorekeeper/MainActivity.java | 9e16176d5bc298cd98be3b9dd5fa1391ead1c7c9 | [] | no_license | Green-Shovel-Knight/Scorekeeper | db288b3b46bb5a333ca2ca49bbf5009cc814551f | c3204d6d19f79c7904b4fd38bd5c206355a2b7fc | refs/heads/master | 2020-08-07T10:58:41.207575 | 2019-10-07T15:43:32 | 2019-10-07T15:43:32 | 213,423,128 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,143 | java | package com.example.scorekeeper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatDelegate;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private int mScore1;
private int mScore2;
private TextView mScoreText1;
private TextView mScoreText2;
static final String STATE_SCORE_1 = "Team 1 Score";
static final String STATE_SCORE_2 = "Team 2 Score";
public void decreaseScore(View view) {
int viewID = view.getId();
switch (viewID){
case R.id.decreaseTeam1:
mScore1--;
mScoreText1.setText(String.valueOf(mScore1));
break;
case R.id.decreaseTeam2:
mScore2--;
mScoreText2.setText(String.valueOf(mScore2));
}
}
public void increaseScore(View view){
int viewID = view.getId();
switch(viewID){
case R.id.increaseTeam1:
mScore1++;
mScoreText1.setText(String.valueOf(mScore1));
break;
case R.id.increaseTeam2:
mScore2++;
mScoreText2.setText(String.valueOf(mScore2));
}
}
@Override
protected void onSaveInstanceState(Bundle outState) {
outState.putInt(STATE_SCORE_1, mScore1);
outState.putInt(STATE_SCORE_2, mScore2);
super.onSaveInstanceState(outState);}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if(item.getItemId()==R.id.night_mode){
int nightMode = AppCompatDelegate.getDefaultNightMode();
if (nightMode == AppCompatDelegate.MODE_NIGHT_YES) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
}else {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
}
recreate();
}
return true;
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main_menu, menu);
int nightMode = AppCompatDelegate.getDefaultNightMode();
if(nightMode == AppCompatDelegate.MODE_NIGHT_YES){
menu.findItem(R.id.night_mode).setTitle(R.string.day_mode);
} else{
menu.findItem(R.id.night_mode).setTitle(R.string.night_mode);
}
return true;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Find the TextViews by ID
mScoreText1 = findViewById(R.id.score_1);
mScoreText2 = findViewById(R.id.score_2);
if (savedInstanceState != null) {
mScore1 = savedInstanceState.getInt(STATE_SCORE_1);
mScore2 = savedInstanceState.getInt(STATE_SCORE_2);
mScoreText1.setText(String.valueOf(mScore1));
mScoreText2.setText(String.valueOf(mScore2));
}}}
| [
"51963321+Green-Shovel-Knight@users.noreply.github.com"
] | 51963321+Green-Shovel-Knight@users.noreply.github.com |
907bf5e2b1eae6fa3e6f453f34e573ee62cd6614 | bd79cc5eb4759dd2634acc094ceef435e8203d2f | /smtp-service/src/main/java/com/opencryptotrade/smtpservice/SmtpServiceApplication.java | 3affe505fa3047a5f356f83eadfce247bedf07aa | [] | no_license | develnk/opencryptotrade | ca6b839549a128b4928c13bdaf5dfa7b58f3c353 | 69eb3004edaef365e4ae75f36039f77aad613e76 | refs/heads/master | 2022-12-05T03:11:48.469761 | 2022-11-21T09:11:35 | 2022-11-21T09:11:35 | 163,105,260 | 3 | 0 | null | 2022-11-23T22:22:16 | 2018-12-25T18:57:53 | Java | UTF-8 | Java | false | false | 963 | java | package com.opencryptotrade.smtpservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableJpaRepositories({
"com.opencryptotrade.common.user.repository"
})
@EntityScan({
"com.opencryptotrade.commons.user.domain"
})
@ComponentScan({
"com.opencryptotrade.smtpservice",
"com.opencryptotrade.common.user.config"
})
public class SmtpServiceApplication {
public static void main(String[] args) {
SpringApplication.run(SmtpServiceApplication.class, args);
}
}
| [
"develnk@gmail.com"
] | develnk@gmail.com |
f13c27fcacc988dc3124184cfa8c6988f95eb545 | b6947a1ce570d4483ff51a63ea6d032768bc1d08 | /src/jcifs/smb/NtTransQuerySecurityDesc.java | 6c6e425d77573b2c0447c1cd04f06458ac7afb0f | [] | no_license | reverseengineeringer/net.cloudpath.xpressconnect | 930cbc1efd0aa9997b68f0da58503cd618099bf0 | bcf8adaabba321daeb72ebd810b6f47e854d7795 | refs/heads/master | 2020-05-30T21:47:22.299105 | 2014-09-29T02:23:37 | 2014-09-29T02:23:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,552 | java | package jcifs.smb;
import jcifs.util.Hexdump;
class NtTransQuerySecurityDesc extends SmbComNtTransaction
{
int fid;
int securityInformation;
NtTransQuerySecurityDesc(int paramInt1, int paramInt2)
{
this.fid = paramInt1;
this.securityInformation = paramInt2;
this.command = -96;
this.function = 6;
this.setupCount = 0;
this.totalDataCount = 0;
this.maxParameterCount = 4;
this.maxDataCount = 32768;
this.maxSetupCount = 0;
}
int readDataWireFormat(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
{
return 0;
}
int readParametersWireFormat(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
{
return 0;
}
int readSetupWireFormat(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
{
return 0;
}
public String toString()
{
return new String("NtTransQuerySecurityDesc[" + super.toString() + ",fid=0x" + Hexdump.toHexString(this.fid, 4) + ",securityInformation=0x" + Hexdump.toHexString(this.securityInformation, 8) + "]");
}
int writeDataWireFormat(byte[] paramArrayOfByte, int paramInt)
{
return 0;
}
int writeParametersWireFormat(byte[] paramArrayOfByte, int paramInt)
{
writeInt2(this.fid, paramArrayOfByte, paramInt);
int i = paramInt + 2;
int j = i + 1;
paramArrayOfByte[i] = 0;
int k = j + 1;
paramArrayOfByte[j] = 0;
writeInt4(this.securityInformation, paramArrayOfByte, k);
return k + 4 - paramInt;
}
int writeSetupWireFormat(byte[] paramArrayOfByte, int paramInt)
{
return 0;
}
} | [
"reverseengineeringer@hackeradmin.com"
] | reverseengineeringer@hackeradmin.com |
7b33e7c558a64ab60f724b57ee1047ab226aebc0 | ce0cdea1ebcedfdd1c18bcd73b74c564397ad3e4 | /src/main/java/com/solid/principles/design/app/dip/impresora/good/Documentocontable.java | 928eda9ee37bdf7d37ade86f9b5cfce247008f69 | [] | no_license | lgutierrez1982/principios-solid | 6574053582f1f043a4739efacafc5365571f6e9b | 4b27f9d76cdafc67d00198b20515ad5a0676c174 | refs/heads/master | 2023-08-24T16:56:22.279079 | 2021-10-22T20:12:11 | 2021-10-22T20:12:11 | 418,547,787 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 666 | java | package com.solid.principles.design.app.dip.impresora.good;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDate;
@Getter @Setter
//al implementar la interfaz
//las clases de alto nivel depende de una abstraccion
public abstract class Documentocontable implements IImprimible{
protected String sigla;
public Integer numero;
public LocalDate fecha;
public Double importe;
public Documentocontable(Integer numero, LocalDate fecha, Double importe) {
this.numero = numero;
this.fecha = fecha;
this.importe = importe;
}
public abstract Double total();
public abstract void imprimir();
}
| [
"lgutierrez1982œgmail.com"
] | lgutierrez1982œgmail.com |
1a06455244b2d4767a2577b129bde090983b8c4a | 3357a403a72db0dfcff1444ebb09362e58936ca9 | /JavaPractice/src/org/dimigo/oop/Car.java | 5fbd32a145a346589133226dab86596c96e75a80 | [] | no_license | HD152509/JavaPractice | 266e64201060e03c1882f921e0b661715514c8b6 | 6832982cdfef4261fb9bec4605132c8f724867e1 | refs/heads/master | 2020-05-20T20:42:16.750859 | 2017-06-15T00:18:30 | 2017-06-15T00:18:30 | 84,521,486 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,332 | java | /**
*
*/
package org.dimigo.oop;
/**
* <pre>
* org.dimigo.oop
* |_Car
*
* 1. 개요 :
* 2. 작성일 : 2017. 3. 23.
* </pre>
*
* @author : duddn
* @version : 1.0
*/
public class Car {
private String company;
private String model;
private String color;
private int maxSpeed;
private int price;
public String getCompany() {
return company;
}
public String getModel() {
return model;
}
public String getColor() {
return color;
}
public int getMaxSpeed() {
return maxSpeed;
}
public int getPrice() {
return price;
}
public void setCompany(String newcompany) {
company = newcompany;
}
public void setModel(String newmodel) {
model = newmodel;
}
public void setColor(String newcolor) {
color = newcolor;
}
public void setMaxSpeed(int newmaxSpeed) {
maxSpeed = newmaxSpeed;
}
public void setPrice(int newPrice)
{
price = newPrice;
}
public void information(Car Carinfo)
{
System.out.println("제조사명 : " + Carinfo.company);
System.out.println("모델명 : " + Carinfo.model);
System.out.println("색상 : " + Carinfo.color);
System.out.println("최대속도 : " + Carinfo.maxSpeed + "km");
System.out.println("가격 : " + String.format("%,d",Carinfo.price) + "원");
}
}
| [
"duddn@DESKTOP-M8DSSAL"
] | duddn@DESKTOP-M8DSSAL |
f67476bf0bc9323a9664eddffcb928e4df310f3e | fe1fbc97b57c5f663392cbd2a30dd6019d0cfc9b | /platforms/platforms-core/src/main/java/com/platforms/core/utils/ClassUtils.java | 538bbc59fc47eabd597487ceac1b6809544dfd19 | [] | no_license | amon256/platforms | 026f64b83013d4a1022dc0ca3607b28fe3140128 | b244c1cf53f74c1d84ebad9dda18d3da92001b56 | refs/heads/master | 2021-01-10T13:45:17.907971 | 2015-11-10T06:18:09 | 2015-11-10T06:20:56 | 45,892,012 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,412 | java | /**
* ClassUtils.java
* create by FengMy at 2014年7月28日
*/
package com.platforms.core.utils;
import java.lang.reflect.Field;
import java.util.LinkedList;
import java.util.List;
import org.apache.commons.lang.StringUtils;
/**
* 描述:class工具类
* @author FengMy
* @since 2014年7月28日
*/
public class ClassUtils {
/**
* 根据属性名查找属性
* @param bean
* @param fieldName
* @return
*/
public static Field getField(Object bean,String fieldName){
Field field = null;
List<Field> fields = null;
Class<?> clazz = bean.getClass();
if(!StringUtils.isEmpty(fieldName)){
String[] fieldAttr = fieldName.split("\\.");
for(String fname : fieldAttr){
field = null;
if(fname != null && !"".equals(fname)){
fields = getFields(clazz);
for(Field f : fields){
if(f.getName().equals(fname)){
field = f;
clazz = f.getType();
}
}
}
}
}
return field;
}
/**
* 获取类的所有属性,包含父类属性
* @param clazz
* @return
*/
public static List<Field> getFields(Class<?> clazz){
List<Field> fields = new LinkedList<Field>();
if(clazz != Object.class){
fields.addAll(getFields(clazz.getSuperclass()));
}
Field[] jfields = clazz.getDeclaredFields();
for(Field f : jfields){
fields.add(f);
}
return fields;
}
}
| [
"amon256@126.com"
] | amon256@126.com |
de71900eea2210ec8892fdaff08704fcf7e4a7dc | 49433263dddaa834b7be5e21a591db5176775fbb | /SpringCore/SpringCoreDemo/src/main/java/com/techstack/spring/di/circular/ClassB.java | c551c1c2a938c3a2d498ece332266225868a5a79 | [] | no_license | andrewsselvaraj/spring-boot-demo | 120f3427fdf5be89e017729b1c0d09b2b28ebbb1 | a13741d8c4e7b603aa6eaf0f6013d20808637143 | refs/heads/master | 2022-09-10T05:49:30.078730 | 2020-06-03T16:20:22 | 2020-06-03T16:20:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 221 | java | /**
*
*/
package com.techstack.spring.di.circular;
/**
* @author KARTHIKEYAN N
*
*/
public class ClassB {
private ClassA classA;
public ClassB(ClassA classA) {
this.classA = classA;
}
}
| [
"karthikeyan.ng@gmail.com"
] | karthikeyan.ng@gmail.com |
bfa66f65d6d20c559b638d81a338abdb4552996e | 63a215fcd5d77aaa3c499ceb114b6d4f7f69554c | /Smallest of four Numbers/Main.java | 2312efed57f4e1468c8f4522c615d6188e22c6eb | [] | no_license | dheepamu/Playground | 93152cfaf47e79787642c880fa4e7ef5750c907d | d838e88bfc6610b72dc9a466752b543455f5a2cd | refs/heads/master | 2020-06-09T12:53:48.685992 | 2019-07-21T15:52:25 | 2019-07-21T15:52:25 | 193,440,880 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 269 | java | #include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a<b&&a<c&&a<d)
{
printf("%d",a);
}
else if(b<c&&b<d)
{
printf("%d",b);
}
else if(c<d)
{
printf("%d",c);
}
else
printf("%d",d);
return 0;
}
| [
"52148794+dheepamu@users.noreply.github.com"
] | 52148794+dheepamu@users.noreply.github.com |
af6780ea50d616c246db3c46479917cd4ada8c2f | f185a4949b46620e8d9671e578bff660fc15e4c1 | /ddzw/src/main/java/org/lc/com/ddzw/widget/AgentWeb/FileUpLoadChooserImpl.java | 4dc23b1fba2c926e6d6661904c9debf3cba30ebb | [] | no_license | alex0403/ziyuexs | 5940a7bff008e04a2b0a184e6b60901bd4c4b9a7 | 867c8cfc64177c719cb5a804f2c332d7e1f52e39 | refs/heads/master | 2021-07-07T03:03:06.684755 | 2017-10-01T02:01:11 | 2017-10-01T02:01:30 | 105,413,206 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,574 | java | package org.lc.com.ddzw.widget.AgentWeb;
import android.app.Activity;
import android.content.ClipData;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AlertDialog;
import android.text.TextUtils;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import static org.lc.com.ddzw.widget.AgentWeb.ActionActivity.KEY_ACTION;
import static org.lc.com.ddzw.widget.AgentWeb.ActionActivity.KEY_FROM_INTENTION;
import static org.lc.com.ddzw.widget.AgentWeb.ActionActivity.KEY_URI;
import static org.lc.com.ddzw.widget.AgentWeb.ActionActivity.start;
/**
* Created by cenxiaozhong on 2017/5/22.
*/
public class FileUpLoadChooserImpl implements IFileUploadChooser {
private Activity mActivity;
private ValueCallback<Uri> mUriValueCallback;
private ValueCallback<Uri[]> mUriValueCallbacks;
public static final int REQUEST_CODE = 0x254;
private boolean isL = false;
private WebChromeClient.FileChooserParams mFileChooserParams;
private JsChannelCallback mJsChannelCallback;
private boolean jsChannel = false;
private AlertDialog mAlertDialog;
private static final String TAG = FileUpLoadChooserImpl.class.getSimpleName();
private DefaultMsgConfig.ChromeClientMsgCfg.FileUploadMsgConfig mFileUploadMsgConfig;
private Uri mUri;
private WebView mWebView;
private boolean cameraState = false;
private PermissionInterceptor mPermissionInterceptor;
private int FROM_INTENTION_CODE = 21;
public FileUpLoadChooserImpl(Builder builder) {
this.mActivity = builder.mActivity;
this.mUriValueCallback = builder.mUriValueCallback;
this.mUriValueCallbacks = builder.mUriValueCallbacks;
this.isL = builder.isL;
this.jsChannel = builder.jsChannel;
this.mFileChooserParams = builder.mFileChooserParams;
this.mJsChannelCallback = builder.mJsChannelCallback;
this.mFileUploadMsgConfig = builder.mFileUploadMsgConfig;
this.mWebView = builder.mWebView;
this.mPermissionInterceptor = builder.mPermissionInterceptor;
}
@Override
public void openFileChooser() {
if (!AgentWebUtils.isUIThread()) {
AgentWebUtils.runInUiThread(new Runnable() {
@Override
public void run() {
openFileChooser();
}
});
return;
}
openFileChooserInternal();
}
private void fileChooser() {
List<String> permission = null;
if (AgentWebUtils.getDeniedPermissions(mActivity, AgentWebPermissions.STORAGE).isEmpty()) {
touchOffFileChooserAction();
} else {
ActionActivity.Action mAction = ActionActivity.Action.createPermissionsAction(AgentWebPermissions.STORAGE);
mAction.setFromIntention(FROM_INTENTION_CODE >> 2);
ActionActivity.setPermissionListener(mPermissionListener);
start(mActivity, mAction);
}
}
private void touchOffFileChooserAction() {
ActionActivity.Action mAction = new ActionActivity.Action();
mAction.setAction(ActionActivity.Action.ACTION_FILE);
ActionActivity.setFileDataListener(getFileDataListener());
mActivity.startActivity(new Intent(mActivity, ActionActivity.class).putExtra(KEY_ACTION, mAction));
}
private ActionActivity.FileDataListener getFileDataListener() {
return new ActionActivity.FileDataListener() {
@Override
public void onFileDataResult(int requestCode, int resultCode, Intent data) {
LogUtils.i(TAG, "request:" + requestCode + " resultCode:" + resultCode);
fetchFilePathFromIntent(requestCode, resultCode, data);
}
};
}
private void openFileChooserInternal() {
if (mAlertDialog == null)
mAlertDialog = new AlertDialog.Builder(mActivity)//
.setSingleChoiceItems(mFileUploadMsgConfig.getMedias(), -1, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
mAlertDialog.dismiss();
LogUtils.i(TAG, "which:" + which);
if (which == 1) {
cameraState = false;
fileChooser();
} else {
cameraState = true;
onCameraAction();
}
}
}).setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
cancel();
}
}).create();
mAlertDialog.show();
}
private void onCameraAction() {
if (mActivity == null)
return;
if (mPermissionInterceptor != null) {
if (mPermissionInterceptor.intercept(FileUpLoadChooserImpl.this.mWebView.getUrl(), AgentWebPermissions.CAMERA, "camera")) {
cancel();
return;
}
}
ActionActivity.Action mAction = new ActionActivity.Action();
List<String> deniedPermissions = null;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !(deniedPermissions = checkNeedPermission()).isEmpty()) {
mAction.setAction(ActionActivity.Action.ACTION_PERMISSION);
mAction.setPermissions(deniedPermissions.toArray(new String[]{}));
mAction.setFromIntention(FROM_INTENTION_CODE >> 3);
ActionActivity.setPermissionListener(this.mPermissionListener);
start(mActivity, mAction);
} else {
openCameraAction();
}
}
private List<String> checkNeedPermission() {
List<String> deniedPermissions = new ArrayList<>();
if (ContextCompat.checkSelfPermission(mActivity, AgentWebPermissions.CAMERA[0]) != PackageManager.PERMISSION_GRANTED) {
deniedPermissions.add(AgentWebPermissions.CAMERA[0]);
}
for (int i = 0; i < AgentWebPermissions.STORAGE.length; i++) {
if (ContextCompat.checkSelfPermission(mActivity, AgentWebPermissions.STORAGE[i]) != PackageManager.PERMISSION_GRANTED) {
deniedPermissions.add(AgentWebPermissions.STORAGE[i]);
}
}
return deniedPermissions;
}
private void openCameraAction() {
ActionActivity.Action mAction = new ActionActivity.Action();
mAction.setAction(ActionActivity.Action.ACTION_CAMERA);
ActionActivity.setFileDataListener(this.getFileDataListener());
start(mActivity, mAction);
}
private ActionActivity.PermissionListener mPermissionListener = new ActionActivity.PermissionListener() {
@Override
public void onRequestPermissionsResult(@NonNull String[] permissions, @NonNull int[] grantResults, Bundle extras) {
boolean tag = true;
for (int i = 0; i < permissions.length; i++) {
if (grantResults[0] != PackageManager.PERMISSION_GRANTED) {
tag = false;
break;
}
}
permissionResult(tag, extras.getInt(KEY_FROM_INTENTION));
}
};
private void permissionResult(boolean grant, int from_intention) {
if (from_intention == FROM_INTENTION_CODE >> 2) {
if (grant) {
touchOffFileChooserAction();
} else {
cancel();
LogUtils.i(TAG, "permission denied");
}
} else if (from_intention == FROM_INTENTION_CODE >> 3) {
if (grant)
openCameraAction();
else {
cancel();
LogUtils.i(TAG, "permission denied");
}
}
}
@Override
public void fetchFilePathFromIntent(int requestCode, int resultCode, Intent data) {
LogUtils.i(TAG, "request:" + requestCode + " result:" + resultCode + " data:" + data);
if (REQUEST_CODE != requestCode)
return;
if (resultCode == Activity.RESULT_CANCELED) {
cancel();
return;
}
if (resultCode == Activity.RESULT_OK) {
if (isL)
handleAboveL(cameraState ? new Uri[]{data.getParcelableExtra(KEY_URI)} : processData(data));
else if (jsChannel)
convertFileAndCallBack(cameraState ? new Uri[]{data.getParcelableExtra(KEY_URI)} : processData(data));
else {
if (cameraState && mUriValueCallback != null)
mUriValueCallback.onReceiveValue((Uri) data.getParcelableExtra(KEY_URI));
else
handleBelowLData(data);
}
}
}
private void cancel() {
if (jsChannel) {
mJsChannelCallback.call(null);
return;
}
if (mUriValueCallback != null)
mUriValueCallback.onReceiveValue(null);
if (mUriValueCallbacks != null)
mUriValueCallbacks.onReceiveValue(null);
return;
}
private void handleBelowLData(Intent data) {
Uri mUri = data == null ? null : data.getData();
LogUtils.i(TAG, "handleBelowLData -- >uri:" + mUri + " mUriValueCallback:" + mUriValueCallback);
if (mUriValueCallback != null)
mUriValueCallback.onReceiveValue(mUri);
}
private Uri[] processData(Intent data) {
Uri[] datas = null;
if (data == null) {
return datas;
}
String target = data.getDataString();
if (!TextUtils.isEmpty(target)) {
return datas = new Uri[]{Uri.parse(target)};
}
ClipData mClipData = null;
if (mClipData != null && mClipData.getItemCount() > 0) {
datas = new Uri[mClipData.getItemCount()];
for (int i = 0; i < mClipData.getItemCount(); i++) {
ClipData.Item mItem = mClipData.getItemAt(i);
datas[i] = mItem.getUri();
}
}
return datas;
}
private void convertFileAndCallBack(final Uri[] uris) {
String[] paths = null;
if (uris == null || uris.length == 0 || (paths = AgentWebUtils.uriToPath(mActivity, uris)) == null || paths.length == 0) {
mJsChannelCallback.call(null);
return;
}
new CovertFileThread(this.mJsChannelCallback, paths).start();
}
private void handleAboveL(Uri[] datas) {
if (mUriValueCallbacks == null)
return;
mUriValueCallbacks.onReceiveValue(datas == null ? new Uri[]{} : datas);
}
static class CovertFileThread extends Thread {
private JsChannelCallback mJsChannelCallback;
private String[] paths;
private CovertFileThread(JsChannelCallback jsChannelCallback, String[] paths) {
this.mJsChannelCallback = jsChannelCallback;
this.paths = paths;
}
@Override
public void run() {
try {
Queue<FileParcel> mQueue = AgentWebUtils.convertFile(paths);
String result = AgentWebUtils.convertFileParcelObjectsToJson(mQueue);
LogUtils.i(TAG, "result:" + result);
if (mJsChannelCallback != null)
mJsChannelCallback.call(result);
} catch (Exception e) {
e.printStackTrace();
}
}
}
interface JsChannelCallback {
void call(String value);
}
public static final class Builder {
private Activity mActivity;
private ValueCallback<Uri> mUriValueCallback;
private ValueCallback<Uri[]> mUriValueCallbacks;
private boolean isL = false;
private WebChromeClient.FileChooserParams mFileChooserParams;
private JsChannelCallback mJsChannelCallback;
private boolean jsChannel = false;
private DefaultMsgConfig.ChromeClientMsgCfg.FileUploadMsgConfig mFileUploadMsgConfig;
private WebView mWebView;
private PermissionInterceptor mPermissionInterceptor;
public Builder setPermissionInterceptor(PermissionInterceptor permissionInterceptor) {
mPermissionInterceptor = permissionInterceptor;
return this;
}
public Builder setActivity(Activity activity) {
mActivity = activity;
return this;
}
public Builder setUriValueCallback(ValueCallback<Uri> uriValueCallback) {
mUriValueCallback = uriValueCallback;
isL = false;
jsChannel = false;
mUriValueCallbacks = null;
mJsChannelCallback = null;
return this;
}
public Builder setUriValueCallbacks(ValueCallback<Uri[]> uriValueCallbacks) {
mUriValueCallbacks = uriValueCallbacks;
isL = true;
mUriValueCallback = null;
mJsChannelCallback = null;
jsChannel = false;
return this;
}
public Builder setFileChooserParams(WebChromeClient.FileChooserParams fileChooserParams) {
mFileChooserParams = fileChooserParams;
return this;
}
public Builder setJsChannelCallback(JsChannelCallback jsChannelCallback) {
mJsChannelCallback = jsChannelCallback;
jsChannel = true;
mUriValueCallback = null;
mUriValueCallbacks = null;
return this;
}
public Builder setFileUploadMsgConfig(DefaultMsgConfig.ChromeClientMsgCfg.FileUploadMsgConfig fileUploadMsgConfig) {
mFileUploadMsgConfig = fileUploadMsgConfig;
return this;
}
public Builder setWebView(WebView webView) {
mWebView = webView;
return this;
}
public FileUpLoadChooserImpl build() {
return new FileUpLoadChooserImpl(this);
}
}
}
| [
"liucheng1986"
] | liucheng1986 |
1ef7896ab6da6223b83effb192d10d03fda9e1da | 3067ff6b64c87ea9b7706d9af5369c0f1f34cb4d | /Android_file/Android01/app/src/test/java/tw/com/lccnet/app/android01/ExampleUnitTest.java | 669759f258c999f238d3d0a4fac4149d058b8134 | [] | no_license | qasw77564/AndroidPractice | 777b4da47e067d40359d0387adabaa6340f1eb57 | 3b6e48f4d46ddf576be62ef24c780efb9d8d4038 | refs/heads/master | 2020-04-07T11:37:25.306792 | 2018-11-23T09:17:51 | 2018-11-23T09:17:51 | 158,333,895 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 421 | java | package tw.com.lccnet.app.android01;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"qasw77564@gmail.com"
] | qasw77564@gmail.com |
26ea1dcc2c4c36ce4b14eece968b621863acf177 | 35d7fc161e1843f16d971cca95895187fd1bc3d6 | /src/Watch_information.java | ee0bc7746bb8e6bd759371dbb373ff6b6935ceb2 | [] | no_license | so-coolboy/-swing- | df502725ab2ee469eca8614380a47d4638f719ff | 00afdfb4596677e2cdf9d97958e51cad86660022 | refs/heads/master | 2021-05-05T11:22:53.414701 | 2018-01-20T01:37:57 | 2018-01-20T01:37:57 | 118,196,524 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 2,672 | java | import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JTextArea;
import javax.swing.ImageIcon;
import javax.swing.JButton;
public class Watch_information {
private JFrame frame;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Watch_information window = new Watch_information();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public Watch_information() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setBounds(200, 200, 900, 600);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
ImageIcon icon = new ImageIcon("./6.jpg");
JLabel label1 = new JLabel(icon);
label1.setBounds(0,0,frame.getWidth(),frame.getHeight());
//获取窗口的第二层,将label放入
frame.getLayeredPane().add(label1,new Integer(Integer.MIN_VALUE));
//获取frame的顶层容器,并设置为透明
JPanel j=(JPanel)frame.getContentPane();
j.setOpaque(false);
JPanel panel=new JPanel();
panel.setForeground(new Color(255, 0, 0));
//必须设置为透明的。否则看不到图片
panel.setOpaque(false);
frame.getContentPane().add(panel);
frame.getContentPane().add(panel);
panel.setLayout(null);
JLabel label = new JLabel("\u516C\u544A\u5982\u4E0B\uFF1A");
label.setForeground(Color.RED);
label.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
}
});
label.setFont(new Font("楷体", Font.PLAIN, 30));
label.setBounds(372, 163, 164, 58);
frame.getContentPane().add(label);
JTextArea textArea = new JTextArea();
textArea.setBounds(336, 231, 225, 109);
frame.getContentPane().add(textArea);
JButton button = new JButton("\u8FD4\u56DE");
button.setForeground(Color.RED);
button.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
Studentview window = new Studentview();
window.frame.setVisible(true);
frame.dispose();
}
});
button.setFont(new Font("楷体", Font.PLAIN, 15));
button.setBounds(508, 373, 93, 23);
frame.getContentPane().add(button);
}
}
| [
"www"
] | www |
9a826e12c3a1d866c3feafea38bd07dafbc93a4a | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-Jackson-JsonLd/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/IPressure_Sensor.java | 97f98e04ee9f0f03bf83ed8cd5147cd60072d58e | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 978 | java | /**
* This file is automatically generated by OLGA
* @author OLGA
* @version 1.0
*/
package brickschema.org.schema._1_0_2.Brick;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldId;
import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldProperty;
import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldType;
import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldLink;
import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldPropertyType;
import brick.jsonld.util.RefId;
import brickschema.org.schema._1_0_2.Brick.ISensor;
public interface IPressure_Sensor extends ISensor {
/**
* @return RefId
*/
@JsonIgnore
public RefId getRefId();
}
| [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
02e36d5e3691064f84f193b1f7581135f860d727 | 0bdb2015505cbcf2542fb27cdd734ffeaa371a7c | /src/plunder/java/main/MapManager.java | 5aec46783d77a14c9333edd4013f6bd715eeb8b3 | [] | no_license | Kylevw/Plunder | a30f6b44f0ae84fa5e234f0167a6897f1b3f77f9 | 0eec2b449df206136036e5ba9878952580f4e652 | refs/heads/master | 2021-01-17T06:07:35.014685 | 2016-07-27T21:25:30 | 2016-07-27T21:25:30 | 53,563,880 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,358 | 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 plunder.java.main;
import grid.Grid;
import java.awt.Graphics2D;
import java.awt.Point;
import java.util.ArrayList;
import static plunder.java.main.EntityManager.player;
import static plunder.java.main.Environment.DEFAULT_WINDOW_HEIGHT;
import static plunder.java.main.Environment.DEFAULT_WINDOW_WIDTH;
/**
*
* @author Kyle
*/
public class MapManager {
public static Grid environmentGrid;
public static void updateGrid(double xScreens, double yScreens) {
if (xScreens < 1) xScreens = 1;
if (yScreens < 1) yScreens = 1;
int x = (int) (xScreens * DEFAULT_WINDOW_WIDTH);
int y = (int) (yScreens * DEFAULT_WINDOW_HEIGHT);
environmentGrid.setPosition(new Point(-(x / 2), -(y / 2)));
environmentGrid.setColumns(x / environmentGrid.getCellWidth());
environmentGrid.setRows(y / environmentGrid.getCellHeight());
if (player != null) player.setScreenLimiter(
environmentGrid.getGridSize().width - DEFAULT_WINDOW_WIDTH,
environmentGrid.getGridSize().height - DEFAULT_WINDOW_HEIGHT);
int[][] mapData = new int[environmentGrid.getColumns()][environmentGrid.getRows()];
for (int i = 0; i < mapData.length; i++) {
mapData[i][0] = 1;
mapData[i][mapData[0].length - 1] = 1;
mapData[i][1] = 2;
mapData[i][mapData[0].length - 2] = 3;
}
for (int i = 0; i < mapData[0].length; i++) {
mapData[0][i] = 1;
mapData[mapData.length - 1][i] = 1;
if (i > 0 && i < (mapData[0].length - 1)) {
mapData[1][i] = 4;
mapData[mapData.length - 2][i] = 5;
}
}
mapData[1][1] = 6;
mapData[1][mapData[0].length - 2] = 7;
mapData[mapData.length - 2][1] = 8;
mapData[mapData.length - 2][mapData[0].length - 2] = 9;
TileMap.setMap(mapData);
}
public void addTile(TileID tileID, int x, int y) {
}
public void timerTaskHandler() {
}
public void drawTiles(Graphics2D graphics) {
}
}
| [
"Kyle@Kyles-MacBook-Pro.local"
] | Kyle@Kyles-MacBook-Pro.local |
eef11d468318bfec1bc763656843807445e6871c | 8c133abc4c27d8e80d5a38e14a54650bf1ff04bb | /factory_mode/src/com/allifinance/method/Meal_M.java | 890856d5ac62f3f9c7c50dbdd673c6191070668e | [] | no_license | lvqz123/design_mode | 85b14f06a737dd74ff16a3964e5ee8a86cc2785c | f7dd23b7bcf1579eab132c6dcbe2279ab87f1b9b | refs/heads/master | 2022-01-21T06:24:43.346762 | 2019-07-24T06:07:17 | 2019-07-24T06:07:17 | 198,132,085 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 149 | java | /**
* @author: lvqz
* @date: 2019/7/18
* @time: 10:53
*/
package com.allifinance.method;
public interface Meal_M {
public void cook();
}
| [
"lvqz@allinfinance.com"
] | lvqz@allinfinance.com |
2e89546cd08ece0f2807d816552dd603a2960176 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/24/24_25cd2f8eafba4f74bd08b207fc7c592d079b60b1/CVSMergeContext/24_25cd2f8eafba4f74bd08b207fc7c592d079b60b1_CVSMergeContext_s.java | ad1d2912ad97051b7b7391312f72e1ce7cba6daa | [] | 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 | 7,718 | java | /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.internal.ccvs.ui.mappings;
import org.eclipse.core.resources.*;
import org.eclipse.core.resources.mapping.ResourceTraversal;
import org.eclipse.core.runtime.*;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.core.diff.IDiffNode;
import org.eclipse.team.core.mapping.IMergeContext;
import org.eclipse.team.core.mapping.IResourceMappingScope;
import org.eclipse.team.core.synchronize.SyncInfo;
import org.eclipse.team.core.synchronize.SyncInfoFilter;
import org.eclipse.team.core.synchronize.SyncInfoFilter.ContentComparisonSyncInfoFilter;
import org.eclipse.team.internal.ccvs.core.*;
import org.eclipse.team.internal.ccvs.core.client.PruneFolderVisitor;
import org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot;
import org.eclipse.team.internal.ccvs.core.resources.EclipseSynchronizer;
import org.eclipse.team.internal.ccvs.ui.Policy;
import org.eclipse.team.internal.ccvs.ui.subscriber.WorkspaceSynchronizeParticipant;
import org.eclipse.team.internal.core.diff.ResourceDiffTree;
import org.eclipse.team.internal.core.diff.SyncInfoToDiffConverter;
import org.eclipse.team.ui.operations.MergeContext;
import org.eclipse.team.ui.synchronize.ResourceScope;
public class CVSMergeContext extends MergeContext {
private WorkspaceSynchronizeParticipant participant;
private final SyncInfoToDiffConverter converter;
public static IMergeContext createContext(IResourceMappingScope scope, IProgressMonitor monitor) {
WorkspaceSynchronizeParticipant participant = new WorkspaceSynchronizeParticipant(new ResourceScope(scope.getRoots()));
participant.refreshNow(participant.getResources(), NLS.bind("Preparing to merge {0}", new String[] { "TODO: mapping description for CVS merge context initialization" }), monitor);
ResourceDiffTree tree = new ResourceDiffTree();
SyncInfoToDiffConverter converter = new SyncInfoToDiffConverter(participant.getSyncInfoSet(), tree);
converter.connect(monitor);
participant.getSubscriberSyncInfoCollector().waitForCollector(monitor);
return new CVSMergeContext(THREE_WAY, participant, scope, converter);
}
protected CVSMergeContext(String type, WorkspaceSynchronizeParticipant participant, IResourceMappingScope input, SyncInfoToDiffConverter converter) {
super(input, type, participant.getSyncInfoSet(), converter.getTree());
this.participant = participant;
this.converter = converter;
}
public void markAsMerged(final IDiffNode node, final boolean inSyncHint, IProgressMonitor monitor) throws CoreException {
run(new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
// Get the latest sync info for the file (i.e. not what is in the set).
// We do this because the client may have modified the file since the
// set was populated.
IResource resource = getDiffTree().getResource(node);
if (resource.getType() != IResource.FILE)
return;
SyncInfo info = getSyncInfo(resource);
if (info instanceof CVSSyncInfo) {
CVSSyncInfo cvsInfo = (CVSSyncInfo) info;
cvsInfo.makeOutgoing(monitor);
if (inSyncHint) {
// Compare the contents of the file with the remote
// and make the file in-sync if they match
ContentComparisonSyncInfoFilter comparator = new SyncInfoFilter.ContentComparisonSyncInfoFilter(false);
if (resource.getType() == IResource.FILE && info.getRemote() != null) {
if (comparator.compareContents((IFile)resource, info.getRemote(), Policy.subMonitorFor(monitor, 100))) {
ICVSFile cvsFile = CVSWorkspaceRoot.getCVSFileFor((IFile)resource);
cvsFile.checkedIn(null, false /* not a commit */);
}
}
}
}
}
}, getMergeRule(node), IResource.NONE, monitor);
}
/* (non-Javadoc)
* @see org.eclipse.team.core.mapping.MergeContext#merge(org.eclipse.team.core.diff.IDiffNode, boolean, org.eclipse.core.runtime.IProgressMonitor)
*/
public IStatus merge(IDiffNode delta, boolean force, IProgressMonitor monitor) throws CoreException {
IStatus status = super.merge(delta, force, monitor);
if (status.isOK() && delta.getKind() == IDiffNode.REMOVED) {
IResource resource = getDiffTree().getResource(delta);
if (resource.getType() == IResource.FILE && !resource.exists()) {
// TODO: This behavior is specific to an update from the same branch
ICVSResource localResource = CVSWorkspaceRoot.getCVSResourceFor(resource);
localResource.unmanage(monitor);
}
pruneEmptyParents(new IDiffNode[] { delta });
}
return status;
}
private void pruneEmptyParents(IDiffNode[] deltas) throws CVSException {
// TODO: A more explicit tie in to the pruning mechanism would be preferable.
// i.e. I don't like referencing the option and visitor directly
if (!CVSProviderPlugin.getPlugin().getPruneEmptyDirectories()) return;
ICVSResource[] cvsResources = new ICVSResource[deltas.length];
for (int i = 0; i < cvsResources.length; i++) {
cvsResources[i] = CVSWorkspaceRoot.getCVSResourceFor(getDiffTree().getResource(deltas[i]));
}
new PruneFolderVisitor().visit(
CVSWorkspaceRoot.getCVSFolderFor(ResourcesPlugin.getWorkspace().getRoot()),
cvsResources);
}
public void dispose() {
converter.dispose();
participant.dispose();
super.dispose();
}
public SyncInfo getSyncInfo(IResource resource) throws CoreException {
return participant.getSubscriber().getSyncInfo(resource);
}
public void refresh(ResourceTraversal[] traversals, int flags, IProgressMonitor monitor) throws CoreException {
// TODO: Shouldn't need to use a scope here
IResource[] resources = getScope().getRoots();
participant.refreshNow(resources, "TODO: CVS Merge Context Refresh", monitor);
}
/* (non-Javadoc)
* @see org.eclipse.team.core.mapping.MergeContext#run(org.eclipse.core.resources.IWorkspaceRunnable, org.eclipse.core.runtime.jobs.ISchedulingRule, int, org.eclipse.core.runtime.IProgressMonitor)
*/
public void run(final IWorkspaceRunnable runnable, final ISchedulingRule rule, int flags, IProgressMonitor monitor) throws CoreException {
super.run(new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
EclipseSynchronizer.getInstance().run(rule, new ICVSRunnable(){
public void run(IProgressMonitor monitor) throws CVSException {
try {
runnable.run(monitor);
} catch (CoreException e) {
throw CVSException.wrapException(e);
}
}
}, monitor);
}
}, rule, flags, monitor);
// TODO: wait for the collector so that clients will have an up-to-date diff tree
participant.getSubscriberSyncInfoCollector().waitForCollector(monitor);
}
/* (non-Javadoc)
* @see org.eclipse.team.core.mapping.MergeContext#getMergeRule(org.eclipse.core.resources.IResource)
*/
public ISchedulingRule getMergeRule(IDiffNode node) {
// Return the project since that is what the EclipseSynchronize needs
return getDiffTree().getResource(node).getProject();
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
431d44509662d223f4fa500620cb0533049d3f0f | 7430eea6a2c43f2cb978f91e0bc7302fa8d82ade | /Plugins/DefaultQuestionCriteriaHandlers/src/pals/plugins/handlers/defaultqch/questions/QuestionHelper.java | 81a76a385053430b24824e0940b8dfa7a154fa11 | [
"MIT"
] | permissive | marcuscraske/pals | 6ac497b2b7f67090b001b63e0be654b5696c54ee | acb97459d54a754be88a60382a763a7d8589f3f4 | refs/heads/master | 2022-02-22T18:12:52.049209 | 2014-05-24T01:10:24 | 2014-05-24T01:10:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,262 | java | package pals.plugins.handlers.defaultqch.questions;
import java.io.File;
import java.io.Serializable;
import pals.base.Storage;
import pals.base.assessment.Question;
import pals.base.web.WebRequestData;
import pals.base.web.security.CSRF;
/**
* A helper class for question classes, intended to reduce repetitive code.
*/
public class QuestionHelper
{
protected static <T extends Serializable> void handle_questionEditPostback(WebRequestData data, Question q, String title, String description, T qdata)
{
// Validate request
if(!CSRF.isSecure(data))
data.setTemplateData("error", "Invalid request; please try again or contact an administrator!");
else
{
// Update model
q.setTitle(title);
q.setDescription(description);
// Persist the model
q.setData(qdata);
Question.PersistStatus psq = q.persist(data.getConnector());
switch(psq)
{
default:
data.setTemplateData("error", psq.getText(q));
break;
case Success:
data.setTemplateData("success", psq.getText(q));
break;
}
}
}
}
| [
"limpygnome@gmail.com"
] | limpygnome@gmail.com |
f4f7614bf264eff806eb7da01f35802427a0fecc | 15fb83a4b88786f5fdff7b689c470594eee69339 | /src/main/java/com/seveniu/web/DownloadApi.java | 462c7bd9f0e54cedd113b411092e104a1bc95571 | [] | no_license | seveniu/FileDownload | f8e90194d94c3af457350b416ebeafd739e0f42d | 78fcb2d4366a27fa52a7c2c5a42949816ac84456 | refs/heads/master | 2021-01-17T16:11:55.787215 | 2017-08-21T16:15:29 | 2017-08-21T16:15:29 | 64,982,726 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,176 | java | package com.seveniu.web;
import com.fasterxml.jackson.core.type.TypeReference;
import com.seveniu.fileDownloader.FileDownloadManager;
import com.seveniu.fileDownloader.Result;
import com.seveniu.util.Json;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/**
* Created by seveniu
* on 7/16/16.
*/
@Controller
@RequestMapping("/api/download")
public class DownloadApi {
@Autowired
FileDownloadManager fileDownloadManager;
@RequestMapping(value = "/", method = RequestMethod.POST, produces = "text/json;charset=UTF-8")
@ResponseBody
public String getAll(String urls, @RequestBody String urlsBody) {
String urlJson;
if (StringUtils.isEmpty(urls)) {
urlJson = urlsBody;
} else {
urlJson = urls;
}
if (StringUtils.isEmpty(urlJson)) {
return "[]";
}
urlJson = urlJson.trim();
if (urlJson.length() == 0) {
return "[]";
}
List<String> urlList = Json.toObject(urls, new TypeReference<List<String>>() {
});
try {
Map<String, Result> results = fileDownloadManager.download(urlList);
return Json.toJson(results);
} catch (InterruptedException e) {
e.printStackTrace();
return "[]";
}
}
@RequestMapping(value = "/", method = RequestMethod.GET, produces = "text/json;charset=UTF-8")
@ResponseBody
public String get(String url) {
try {
Map<String, Result> results = fileDownloadManager.download(Collections.singletonList(url));
return Json.toJson(results);
} catch (InterruptedException e) {
e.printStackTrace();
return "[]";
}
}
}
| [
"prime3721@gmail.com"
] | prime3721@gmail.com |
d83f5e7e8f9fd0844b188a25f1b2d527aedf047a | f7e5cac7ff45301634afab4edf7116824ed80cfb | /src/main/java/de/codecentric/microservice/controller/MyServiceJavaController.java | 2be104aa490e3c55896cd419b71e5f0f467c7dee | [] | no_license | bnord01/spring-boot-scala | e4d429f59b52626b6cc2e162cdad690ef2c7463d | 2f6bf2cc2185acb49f26f67bda6755dc28162e50 | refs/heads/master | 2023-08-29T11:10:16.925594 | 2021-11-17T15:23:13 | 2021-11-17T15:23:13 | 429,096,104 | 0 | 0 | null | 2021-11-17T15:17:19 | 2021-11-17T15:17:18 | null | UTF-8 | Java | false | false | 897 | java | package de.codecentric.microservice.controller;
import de.codecentric.microservice.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class MyServiceJavaController {
private final MyService myService;
@Autowired
public MyServiceJavaController(MyService myService) {
this.myService = myService;
}
@RequestMapping(path = "/testjava", method = RequestMethod.GET, produces = MediaType.TEXT_PLAIN_VALUE)
@ResponseBody
public String handleRequest() {
return "Hallo from a Java controller! " + myService.getMessage();
}
}
| [
"bjoern.jacobs@codecentric.de"
] | bjoern.jacobs@codecentric.de |
37f9abed53d619a6c0508defd1b24edf2ec0603d | a61c2bba3440d097f64e381c24584867970833c0 | /version2/src/beans/Producto.java | 4e12d65be7c5f2cc8bbe2236ff6ef72a483ae58a | [] | no_license | FreddyValdivia/web2 | 9a31ca83db4932131012bf3f4c96b6a5e11abc8e | 210a2763a0ebe46a546440a775f25b71ddf52bb4 | refs/heads/master | 2016-09-05T23:49:00.099836 | 2015-07-23T05:40:04 | 2015-07-23T05:40:04 | 38,331,859 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 737 | java | package beans;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable
public class Producto {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long key;
@Persistent
private String nombre;
@Persistent
private String costo;
public Producto(String nombre,String costo){
this.nombre = nombre;
this.costo = costo;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getCosto() {
return costo;
}
public void setCosto(String costo) {
this.costo = costo;
}
}
| [
"fredd.valdivia@gmail.com"
] | fredd.valdivia@gmail.com |
9212078b2157b052f455f5149bd09f9d0f61cd8b | 70b9bab6f98745f16c146001a57486c6aa47332a | /mymall-product/src/main/java/de/killbuqs/mall/product/dao/CategoryDao.java | 8bd0c4eb71e6ec8c1cf0a0ffd7d71e82626dfe82 | [
"Apache-2.0"
] | permissive | clarklj001/mymall | e3ca41711b83683d92ea1924e403a1071408bd05 | 26755e554adbb16aaaecbe83d19593d994d0202a | refs/heads/master | 2023-05-13T20:57:49.593061 | 2021-06-03T18:35:46 | 2021-06-03T18:35:46 | 347,691,320 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 385 | java | package de.killbuqs.mall.product.dao;
import de.killbuqs.mall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品三级分类
*
* @author jlong
* @email jie.long@killbuqs.de
* @date 2021-03-14 21:40:00
*/
@Mapper
public interface CategoryDao extends BaseMapper<CategoryEntity> {
}
| [
"jie.long@killbuqs.de"
] | jie.long@killbuqs.de |
acb0abc8382de041ec9926e80b778443d97796aa | c4638fb5cd103f3727a9f34c48fcce2d781ace4f | /src/main/java/com/wondersgroup/human/repository/ofcflow/ResignPlanRepository.java | aaaaf1d4f66a60fcbadb1f82e770d05ce4b3c4ad | [] | no_license | elang3000/human | 78befe2a4ed6b99abba5ba6a6350c98c00182159 | 74a7c764a287c513422edb3d30827c2b1ca6290f | refs/heads/master | 2020-04-04T09:31:40.587628 | 2019-01-10T09:33:17 | 2019-01-10T09:33:17 | 155,821,905 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 955 | java | /**
* Copyright © 2018 . All rights reserved.万达信息股份有限公司
*
* 文件名: ResignPlanRepository.java
* 工程名: human
* 包名: com.wondersgroup.human.repository.ofcflow
* 描述: TODO
* 创建人: lihao
* 创建时间: 2018年12月20日 上午11:08:23
* 版本号: V1.0
* 修改人:lihao
* 修改时间:2018年12月20日 上午11:08:23
* 修改任务号
* 修改内容:TODO
*/
package com.wondersgroup.human.repository.ofcflow;
import com.wondersgroup.framework.core.dao.GenericRepository;
import com.wondersgroup.human.bo.ofcflow.ResignPlan;
/**
* @ClassName: ResignPlanRepository
* @Description: 辞职批次数据库操作接口
* @author: lihao
* @date: 2018年12月20日 上午11:08:23
* @version [版本号, YYYY-MM-DD]
* @see [相关类/方法]
* @since [产品/模块版本]
*/
public interface ResignPlanRepository extends GenericRepository<ResignPlan>{
}
| [
"40287742+elang3000@users.noreply.github.com"
] | 40287742+elang3000@users.noreply.github.com |
877c0f0aa34c8cd670fa01f75152211355440915 | 0ada114b40fa7d79d625eccd4584d21987520540 | /imgurUpload/app/src/main/java/engidea/imgurupload/utils/NotificationHelper.java | 68b028f746c8842b37ea10582d6992f41213c87f | [] | no_license | Vitaliy-B/imgur-upload | 8e8da6d5812bfafeeed2f017332be8d71d32176f | 9ddec18be56419bf4c0dd1b8b5f53ca2d4257fde | refs/heads/master | 2020-12-03T12:55:39.374870 | 2020-01-02T07:26:38 | 2020-01-02T07:26:38 | 231,325,281 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,174 | java | package engidea.imgurupload.utils;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import androidx.core.app.NotificationCompat;
import java.lang.ref.WeakReference;
import engidea.imgurupload.R;
import engidea.imgurupload.model.imgurmodel.ImageResponse;
public class NotificationHelper {
private final static String TAG = "ei_i";
private static final String NOTIF_CH_DEF = "NOTIF_CH_DEF";
private WeakReference<Context> mContext;
public NotificationHelper(Context context) {
this.mContext = new WeakReference<>(context);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel notifCh = new NotificationChannel(NOTIF_CH_DEF,
context.getString(R.string.notification_ch_def_name),
NotificationManager.IMPORTANCE_DEFAULT);
notifCh.setDescription(context.getString(R.string.notification_ch_def_desc));
NotificationManager notifMngr = context.getSystemService(NotificationManager.class);
if (notifMngr != null) {
notifMngr.createNotificationChannel(notifCh);
}
}
}
public void createUploadingNotification() {
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(mContext.get(), NOTIF_CH_DEF);
mBuilder.setSmallIcon(android.R.drawable.ic_menu_upload);
mBuilder.setContentTitle(mContext.get().getString(R.string.notification_progress));
mBuilder.setAutoCancel(true);
NotificationManager mNotificationManager =
(NotificationManager) mContext.get().getSystemService(Context.NOTIFICATION_SERVICE);
if (mNotificationManager == null) {
aLog.w(TAG, "mNotificationManager == null");
} else {
mNotificationManager.notify(mContext.get().getString(R.string.app_name).hashCode(), mBuilder.build());
}
}
public void createUploadedNotification(ImageResponse response) {
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(mContext.get(), NOTIF_CH_DEF);
mBuilder.setSmallIcon(android.R.drawable.ic_menu_gallery);
mBuilder.setContentTitle(mContext.get().getString(R.string.notifaction_success));
mBuilder.setContentText(response.data.link);
Intent resultIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(response.data.link));
PendingIntent intent = PendingIntent.getActivity(mContext.get(), 0, resultIntent, 0);
mBuilder.setContentIntent(intent);
mBuilder.setAutoCancel(true);
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setDataAndType(Uri.parse(response.data.link), "text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, response.data.link);
shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
NotificationManager mNotificationManager =
(NotificationManager) mContext.get().getSystemService(Context.NOTIFICATION_SERVICE);
if (mNotificationManager == null) {
aLog.w(TAG, "mNotificationManager == null");
} else {
mNotificationManager.notify(mContext.get().getString(R.string.app_name).hashCode(), mBuilder.build());
}
}
public void createFailedUploadNotification() {
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(mContext.get(), NOTIF_CH_DEF);
mBuilder.setSmallIcon(android.R.drawable.ic_dialog_alert);
mBuilder.setContentTitle(mContext.get().getString(R.string.notification_fail));
mBuilder.setAutoCancel(true);
NotificationManager mNotificationManager =
(NotificationManager) mContext.get().getSystemService(Context.NOTIFICATION_SERVICE);
if (mNotificationManager == null) {
aLog.w(TAG, "mNotificationManager == null");
} else {
mNotificationManager.notify(mContext.get().getString(R.string.app_name).hashCode(), mBuilder.build());
}
}
}
| [
"Vitaliy-B@example.org"
] | Vitaliy-B@example.org |
ed2edfeb6e7717f8efd7429bad4579a907b753b2 | 4ab6982eb78b36fd509118e56df24975b91acc0e | /src/main/java/uy/edu/um/db/Showroom.java | 785f0a88a426104c7fbc9adc14f2cda117413569 | [] | no_license | jpereira1976/dbII-um | 21431b63251a70427d15625ef0de996d91b9c7eb | 0ca5187afdfddb7fba393b68e5a83e59f0734cb1 | refs/heads/master | 2020-03-26T22:30:56.315543 | 2018-11-11T17:36:18 | 2018-11-11T17:36:18 | 145,465,100 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 967 | java | package uy.edu.um.db;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity(name="SHOWROOM_LIST_ANN")
@Table(name="SHOWROM_LIST_ANN")
public class Showroom {
@Id
@Column(name="SHOWROOM_ID")
@GeneratedValue(strategy=GenerationType.AUTO)
Integer id;
String manager;
String location;
@OneToMany
@JoinTable
(name="SHOWROOM_CAR_SET_ANN_JOINTABLE",
joinColumns = @JoinColumn(name="SHOWROOM_ID")
)
@Cascade(CascadeType.ALL)
List<Car> cars;
}
| [
"jpereira@geocom.com.uy"
] | jpereira@geocom.com.uy |
3a6afabdffb6cabe68d6941d3b29fe91c9f52906 | 038ee6b20cae51169a2ed4ed64a7b8e99b5cbaad | /schemaOrgDomaConv/src/org/kyojo/schemaOrg/m3n3/doma/core/container/GeographicAreaConverter.java | a53134938475c754e8be241d1d1d187a7cddec8f | [
"Apache-2.0"
] | permissive | nagaikenshin/schemaOrg | 3dec1626781913930da5585884e3484e0b525aea | 4c9d6d098a2741c2dc2a814f1c708ee55c36e9a8 | refs/heads/master | 2021-06-25T04:52:49.995840 | 2019-05-12T06:22:37 | 2019-05-12T06:22:37 | 134,319,974 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 595 | java | package org.kyojo.schemaorg.m3n3.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n3.core.impl.GEOGRAPHIC_AREA;
import org.kyojo.schemaorg.m3n3.core.Container.GeographicArea;
@ExternalDomain
public class GeographicAreaConverter implements DomainConverter<GeographicArea, String> {
@Override
public String fromDomainToValue(GeographicArea domain) {
return domain.getNativeValue();
}
@Override
public GeographicArea fromValueToDomain(String value) {
return new GEOGRAPHIC_AREA(value);
}
}
| [
"nagai@nagaikenshin.com"
] | nagai@nagaikenshin.com |
bac1ef16e5845ddcbe0c1b238ba5628e9ba96021 | f037ff00e278405d2a26484a6222729428182c08 | /src/Book.java | 5c5dd20fea860d7ff774c174f1bd557b3e3f4265 | [] | no_license | dlvakalucifer/eBookReader | 9df519545687fa19bd326f6f44b9cad33191bc55 | 639d25721d1ff51b879cb7583349f19b2361a813 | refs/heads/master | 2022-09-08T11:07:54.590391 | 2020-05-29T03:52:57 | 2020-05-29T03:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,823 | java | import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
/**
*
* Class which interact with Database class to get and manipulate data for Book and snippet table
*
*/
public class Book {
private Database db;
private Logger log;
Book()
{
log = Logger.getInstance();
db = Database.getInstance();
}
//To check if the book is present in the Database
public ArrayList<ArrayList<Object>> checkBookInDatabase(String bookPath)
{
String query = String.format("Select * from books where path=\"%s\"",bookPath);
System.out.println("Executing this query "+query);
log.info("Executing this query -"+query);
return db.selectQuery(query);
}
// To add the book in Database if it is not present
public int addBookToDatabse(String bookPath)
{
String query = String.format("Insert into Books(path) values(\"%s\")",bookPath);
System.out.println("Executing this query "+query);
log.info("Executing this query -"+query);
return db.insertQuery(query);
}
// To get the bookmark of the book opened
public int getBookmark(String bookPath)
{
ArrayList<ArrayList<Object>> results = checkBookInDatabase(bookPath);
int bookmark=2;
try {
if(results.size()==0)
{
log.info("Book is not present in database");
log.info("Lets add the book to database");
addBookToDatabse(bookPath);
return bookmark;
}
bookmark = (Integer) results.get(0).get(2);
} catch (Exception e) {
log.info("Exception occur in getBookmark "+e.getMessage());
System.out.println("Exception occur in getBookMark "+e.getMessage());
}
return bookmark;
}
// To set the bookmark when user click on back button
public void setBookmark(String bookPath, int bookmark)
{
String query = String.format("Update Books set bookmark= %d where path=\"%s\"",bookmark,bookPath);
if(db.updateQuery(query))
{
log.info("Bookmark set for the book");
}
else
System.out.println("Bookmark did not set for the book.");
}
//To get the bookid from the database
public int getBookID(String bookPath)
{
ArrayList<ArrayList<Object>> results = checkBookInDatabase(bookPath);
int bookId=0;
try {
bookId = (Integer) results.get(0).get(0);
} catch (Exception e) {
log.info("Exception occur while getting BookID "+e.getMessage());
System.out.println("Exception occur while getting BookID "+e.getMessage());
}
return bookId;
}
// To add new snippet for a book from the Database
public void addSnippet(String bookPath,int offset,int length,int pageNumber)
{
int bookId =getBookID(bookPath);
try {
if(bookId==0)
throw new IllegalStateException("The book is not added in the Database");
log.info("Adding new snippet to the database");
String query = String.format("Insert into Snippet(page,offset,length,book_id) values(%d,%d,%d,%d)",pageNumber,offset, length, bookId );
db.insertQuery(query);
} catch (Exception e) {
log.info("Exception occur while getting BookID "+e.getMessage());
System.out.println("Exception occur while getting BookID "+e.getMessage());
}
}
//To get Snippet List for the book from the Database
public ArrayList<int[]> getSnippetList(String bookPath)
{
int bookId =getBookID(bookPath);
ArrayList<int[]> SnippetList = new ArrayList<int[]>();
try {
if(bookId==0)
throw new IllegalStateException("The book is not added in the Database");
log.info("Getting SnippetList for bookPath "+bookPath);
String query = "Select page, offset, length from Snippet where book_id = "+bookId;
ArrayList<ArrayList<Object>> results = db.selectQuery(query);
for(int i=0;i<results.size();i++)
{
int[] local = new int[3];
local[0]= (Integer) results.get(i).get(0);
local[1]=(Integer) results.get(i).get(1);
local[2]=(Integer) results.get(i).get(2);
SnippetList.add(local);
}
} catch (Exception e) {
log.info("Exception occur while gettingSnippetList "+e.getMessage());
System.out.println("Exception occur while gettingSnippetList "+e.getMessage());
}
return SnippetList;
}
// To remove Snippet from the book from the database
public void removeSnippet(String bookPath,int offset, int length,int pageNumber)
{
int bookId =getBookID(bookPath);
try {
if(bookId==0)
throw new IllegalStateException("The book is not added in the Database");
log.info("Deleting snippet from the database");
String query = String.format("Delete from Snippet where book_id = %d and offset = %d and length = %d and page= %d",bookId,offset,length,pageNumber);
db.deleteQuery(query);
} catch (Exception e) {
log.info("Exception occur while getting BookID "+e.getMessage());
System.out.println("Exception occur while getting BookID "+e.getMessage());
}
}
}
| [
"55259994+nikhiljain217@users.noreply.github.com"
] | 55259994+nikhiljain217@users.noreply.github.com |
a2c59a9dbec8a55f79c052c9c1dca8dda175f632 | 1c04bd67314df06419966713c0155231c07a65e6 | /jpa/src/test/java/com/dayatang/jpa/QuerySettingsTest.java | 0c0f1134e01fbb2ddee0f35ed55c1db36fa46f72 | [] | no_license | zoopnin/dddlib | 224cb8c21e967c03ba29f8ae1d4af643faa2e29a | d037477fde11160915995bbba1ff21465236a606 | refs/heads/master | 2020-12-01T11:42:41.726160 | 2013-12-27T07:35:50 | 2013-12-27T07:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,521 | java | /**
*
*/
package com.dayatang.jpa;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.transaction.SystemException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.dayatang.commons.domain.Dictionary;
import com.dayatang.commons.domain.DictionaryCategory;
import com.dayatang.domain.AbstractEntity;
import com.dayatang.domain.Criterions;
import com.dayatang.domain.InstanceFactory;
import com.dayatang.domain.QuerySettings;
/**
*
* @author yang
*/
public class QuerySettingsTest extends AbstractIntegrationTest {
private QuerySettings<Dictionary> settings;
private DictionaryCategory gender;
private DictionaryCategory education;
private Dictionary male;
private Dictionary female;
private Dictionary undergraduate;
private Criterions criterions = Criterions.singleton();
@Before
public void setUp() {
super.setUp();
settings = QuerySettings.create(Dictionary.class);
gender = createCategory("gender", 1);
education = createCategory("education", 2);
male = createDictionary("01", "男", gender, 100, "01");
female = createDictionary("02", "女", gender, 150, "01");
undergraduate = createDictionary("01", "本科", education, 200, "05");
}
@Test
public void testEq() {
settings.eq("category", gender);
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testNotEq() {
settings.notEq("category", gender);
List<Dictionary> results = repository.find(settings);
Dictionary dictionary = results.get(0);
assertEquals(education, dictionary.getCategory());
}
@Test
public void testGe() {
settings.ge("sortOrder", 150);
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertTrue(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testGt() {
settings.gt("sortOrder", 150);
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertFalse(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testLe() {
settings.le("sortOrder", 150);
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testLt() {
settings.lt("sortOrder", 150);
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertFalse(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testEqProp() {
settings.eqProp("code", "parentCode");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertFalse(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testNotEqProp() {
settings.notEqProp("code", "parentCode");
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertTrue(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testGtProp() {
settings.gtProp("code", "parentCode");
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testGeProp() {
settings.geProp("code", "parentCode");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testLtProp() {
settings.ltProp("code", "parentCode");
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertFalse(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testLeProp() {
settings.leProp("code", "parentCode");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertFalse(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testSizeEq() {
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.sizeEq("dictionaries", 2);
List<DictionaryCategory> results = repository.find(settings);
assertTrue(results.contains(gender));
assertFalse(results.contains(education));
}
@Test
public void testSizeNotEq() {
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.sizeNotEq("dictionaries", 2);
List<DictionaryCategory> results = repository.find(settings);
assertFalse(results.contains(gender));
assertTrue(results.contains(education));
}
@Test
public void testSizeGt() {
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.sizeGt("dictionaries", 1);
List<DictionaryCategory> results = repository.find(settings);
assertTrue(results.contains(gender));
assertFalse(results.contains(education));
}
@Test
public void testSizeGe() {
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.sizeGe("dictionaries", 2);
List<DictionaryCategory> results = repository.find(settings);
assertTrue(results.contains(gender));
assertFalse(results.contains(education));
}
@Test
public void testSizeLt() {
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.sizeLt("dictionaries", 2);
List<DictionaryCategory> results = repository.find(settings);
assertFalse(results.contains(gender));
assertTrue(results.contains(education));
}
@Test
public void testSizeLe() {
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.sizeLe("dictionaries", 2);
List<DictionaryCategory> results = repository.find(settings);
assertTrue(results.contains(gender));
assertTrue(results.contains(education));
}
@Test
public void testIsEmpty() {
DictionaryCategory empty = createCategory("a", 3);
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.isEmpty("dictionaries");
List<DictionaryCategory> results = repository.find(settings);
assertTrue(results.contains(empty));
assertFalse(results.contains(gender));
assertFalse(results.contains(education));
}
@Test
public void testNotEmpty() {
DictionaryCategory empty = createCategory("a", 3);
QuerySettings<DictionaryCategory> settings = QuerySettings.create(DictionaryCategory.class);
settings.notEmpty("dictionaries");
List<DictionaryCategory> results = repository.find(settings);
assertFalse(results.contains(empty));
assertTrue(results.contains(gender));
assertTrue(results.contains(education));
}
@Test
public void testContainsText() {
settings.containsText("text", "科");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(undergraduate));
assertFalse(results.contains(male));
assertFalse(results.contains(female));
}
@Test
public void testStartsWithText() {
settings.startsWithText("text", "本");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(undergraduate));
settings = QuerySettings.create(Dictionary.class).startsWithText("text", "科");
results = repository.find(settings);
assertFalse(results.contains(undergraduate));
}
@Test
public void testInEntity() {
Set<DictionaryCategory> params = new HashSet<DictionaryCategory>();
params.add(education);
params.add(gender);
settings.in("category", params);
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testInString() {
Set<String> params = new HashSet<String>();
params.add("男");
params.add("女");
settings.in("text", params);
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testInNull() {
Collection<Object> value = null;
settings.in("id", value);
List<Dictionary> results = repository.find(settings);
assertTrue(results.isEmpty());
}
@SuppressWarnings("unchecked")
@Test
public void testInEmpty() {
settings.in("id", Collections.EMPTY_LIST);
List<Dictionary> results = repository.find(settings);
assertTrue(results.isEmpty());
}
@Test
public void testNotInEntity() {
Set<Long> params = new HashSet<Long>();
params.add(male.getId());
params.add(female.getId());
settings.notIn("id", params);
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertFalse(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testNotInString() {
Set<String> params = new HashSet<String>();
params.add("男");
params.add("女");
settings.notIn("text", params);
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertFalse(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testNotInNull() {
Collection<Object> value = null;
settings.notIn("id", value);
List<Dictionary> results = repository.find(settings);
assertFalse(results.isEmpty());
}
@SuppressWarnings("unchecked")
@Test
public void testNotInEmpty() {
settings.notIn("id", Collections.EMPTY_LIST);
List<Dictionary> results = repository.find(settings);
assertFalse(results.isEmpty());
}
@Test
public void testIsNull() {
settings.isNull("description");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testNotNull() {
settings.notNull("text");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertTrue(results.contains(undergraduate));
}
@Test
public void testBetween() {
settings.between("parentCode", "01", "02");
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testAnd() {
settings.and(criterions.eq("code", "01"), criterions.eq("category", gender));
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertFalse(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testOr() {
settings.or(criterions.eq("text", "男"), criterions.eq("sortOrder", 150));
List<Dictionary> results = repository.find(settings);
assertTrue(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testNot() {
settings.not(criterions.eq("code", "01"));
List<Dictionary> results = repository.find(settings);
assertFalse(results.contains(male));
assertTrue(results.contains(female));
assertFalse(results.contains(undergraduate));
}
@Test
public void testFindPaging() {
createDictionary("08", "xyz", education, 150, "01");
createDictionary("09", "xyy", education, 160, "02");
settings.setFirstResult(1).setMaxResults(2);
List<Dictionary> results = repository.find(settings);
assertEquals(2, results.size());
}
@Test
public void testFindOrder() {
settings.asc("sortOrder");
List<Dictionary> results = repository.find(settings);
assertTrue(results.indexOf(male) < results.indexOf(female));
assertTrue(results.indexOf(female) < results.indexOf(undergraduate));
settings = QuerySettings.create(Dictionary.class).desc("sortOrder");
results = repository.find(settings);
assertTrue(results.indexOf(male) > results.indexOf(female));
assertTrue(results.indexOf(female) > results.indexOf(undergraduate));
}
//@Test
public void testAlias() {
List<Dictionary> results = repository.find(settings.eq("category.name", education));
Dictionary graduate = Dictionary.get(4L);
assertTrue(results.contains(graduate));
Dictionary doctor = Dictionary.get(46L);
assertFalse(results.contains(doctor));
}
private DictionaryCategory createCategory(String name, int sortOrder) {
DictionaryCategory category = new DictionaryCategory();
category.setName(name);
category.setSortOrder(sortOrder);
entityManager.persist(category);
return category;
}
private Dictionary createDictionary(String code, String text, DictionaryCategory category, int sortOrder,
String parentCode) {
Dictionary dictionary = new Dictionary(code, text, category);
dictionary.setSortOrder(sortOrder);
dictionary.setParentCode(parentCode);
entityManager.persist(dictionary);
return dictionary;
}
}
| [
"gdyangyu@gmail.com"
] | gdyangyu@gmail.com |
1553b1300fef6ff3e051252184c69f583a97809f | 5cc4701fc22ca1d78c5abc3bc51f58dbdf393a57 | /AddSession.java | c87ae3fd99eb8a0a5c7d5a9f684d3fea79e5e849 | [] | no_license | younesDev00/Cinema-managment-system | b0a0b7c0d48963c63e1f5b62c76541711157601f | bf0b936762c145cbcee6ecbbdc69b3b8aeb43085 | refs/heads/master | 2020-08-11T19:49:15.046825 | 2019-10-12T09:21:26 | 2019-10-12T09:21:26 | 214,617,500 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,843 | java | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import model.*;
public class AddSession extends CustomPanel implements MyObserver
{
private Cinema cinema;
private JLabel nmLab = new JLabel("Session Name: ");
private JTextField nmText = new JTextField(15);
private JLabel theatreLab = new JLabel("Theatre id: ");
private JTextField theatreText = new JTextField(15);
private JLabel movieLab = new JLabel("Movie id: ");
private JTextField movieText = new JTextField(5);
private JLabel timeLab = new JLabel("Time: ");
private JTextField timeText = new JTextField(5);
private JLabel regularLab = new JLabel("Regular cost: ");
private JTextField regularText = new JTextField(5);
private JLabel goldLab = new JLabel("gold cost: ");
private JTextField goldText = new JTextField(5);
private JButton set = new JButton("Add Session");
private JLabel show = new JLabel(" ");
public void update()
{
}
public AddSession(Cinema cinema)
{
this.cinema = cinema;
setup();
build();
}
private void setup()
{
set.addActionListener(new SetListener());
}
private void build()
{
add(nmLab );
add(nmText );
add(theatreLab );
add(theatreText );
add(movieLab );
add(movieText );
add(timeLab);
add( timeText);
add(regularLab );
add(regularText );
add(goldLab );
add(goldText );
add(set );
add(show );
}
private class SetListener implements ActionListener {
public void actionPerformed(ActionEvent e)
{
String mName = theatreText.getText();
int movieId = Integer.parseInt(movieText.getText());
if(cinema.findMov(movieId) == false){
JOptionPane.showMessageDialog(null, "error with Movies id");
}
int theatreId = Integer.parseInt(theatreText.getText());
if(cinema.findThe(theatreId) == false){
JOptionPane.showMessageDialog(null, "error with theatre id");
}
int time = Integer.parseInt(timeText.getText());
int regular = Integer.parseInt(regularText.getText());
int gold = Integer.parseInt(goldText.getText());
boolean nmId = cinema.addSession(mName, movieId, theatreId, time, gold, regular);
if(nmId)
{
JOptionPane.showMessageDialog(null, "session added");
show.setText("The Theatre " + mName + " Has been added ");
}else
{
JOptionPane.showMessageDialog(null, "Not vacant");
show.setText("Not vacant");
}
}
}
}
| [
"13768282@student.uts.edu.au"
] | 13768282@student.uts.edu.au |
0ce1fab11394c5e72ca2bf2a9ba3b8cadb1099ef | c5a66af9da4e37e9bf3b1c208f1957b2dd4b8e69 | /reactnative/android/app/src/main/java/com/test/typescript/MainActivity.java | 318aea76d9a84011025fa965ba68b808cccd73b2 | [] | no_license | panwrona/TypescriptTest | a884d4d469b04f39429929b026952b6234c361cf | a671b875b33a73c6b085e9c073a9d11eebef6cc4 | refs/heads/master | 2022-03-30T21:33:47.867560 | 2020-02-14T12:01:21 | 2020-02-14T12:01:21 | 240,498,173 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 374 | java | package com.test.typescript;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "TypescriptTest";
}
}
| [
"mariusz.brona@gmail.com"
] | mariusz.brona@gmail.com |
3ccf0d20f241db9b65b02deed6d6f39de5662b54 | 4a98b58840269063f3f57feed0a3f8a4c8891811 | /src/main/java/fr/yas/matchup/controllers/ProMatchingHomeController.java | 8a5a94eb2cf689f13abdfe95ed4e48ede72b0813 | [] | no_license | LadyLithie/POEC-MatchUp | a5ae8b47dfedfaf9459bcb3e3e64315befb2c545 | 77bbf682229a47e40edaf2e9a7d0b0213e1bb98b | refs/heads/master | 2021-07-02T08:10:17.835122 | 2017-09-19T08:12:13 | 2017-09-19T08:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,330 | java | /**
*
*/
package fr.yas.matchup.controllers;
import java.awt.GridBagConstraints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JFrame;
import javax.swing.ListModel;
import fr.yas.matchup.database.CandidateDAO;
import fr.yas.matchup.entities.Candidate;
import fr.yas.matchup.entities.Enterprise;
import fr.yas.matchup.entities.Headhunter;
import fr.yas.matchup.entities.Proposal;
import fr.yas.matchup.entities.RegisteredUser;
import fr.yas.matchup.entities.Skill;
import fr.yas.matchup.entities.base.BaseEntity;
import fr.yas.matchup.managers.MatchManager;
import fr.yas.matchup.managers.Matching;
import fr.yas.matchup.managers.ViewsManager;
import fr.yas.matchup.views.ProMatchingHomeView;
import fr.yas.matchup.views.panels.MatchedCandidate;
import fr.yas.matchup.views.panels.PanelJobToMatch;
import fr.yas.matchup.views.panels.PanelMatchResume;
/**
* @author Audrey
*
*/
public class ProMatchingHomeController extends BaseController {
private RegisteredUser user;
private List<PanelJobToMatch> panelJobToMatchs;
private List<BaseEntity> candidates;
private MatchedCandidate detail;
private boolean enMatching = false;
/**
*
*/
public ProMatchingHomeController(JFrame jFrame) {
super();
super.frame = jFrame;
super.view = new ProMatchingHomeView(jFrame);
}
/*
* (non-Javadoc)
*
* @see fr.yas.matchup.controllers.BaseController#initView()
*/
@Override
public void initView() {
ProMatchingHomeView view = (ProMatchingHomeView) getView();
user = (RegisteredUser) getViewDatas().get(ViewsDatasTerms.CURRENT_USER);
setButtonsVisible(enMatching);
view.getMenuBar().getLblUserName().setText(user.getName());
if (((user instanceof Enterprise) && !((Enterprise) user).getJobs().isEmpty())
|| ((user instanceof Headhunter) && !((Headhunter) user).getJobs().isEmpty())) {
// local list to avoid complication/doubleness
List<Proposal> list;
if (user instanceof Enterprise) {
list = ((Enterprise) user).getJobs();
} else {
list = ((Headhunter) user).getJobs();
}
// Create the jobs panel and add them to both the view and the listing for use
// in initevent()
panelJobToMatchs = new ArrayList<>();
for (Proposal job : list) {
PanelJobToMatch pJob = new PanelJobToMatch(job);
GridBagConstraints gbc_pJob = new GridBagConstraints();
gbc_pJob.anchor = GridBagConstraints.NORTHWEST;
gbc_pJob.fill = GridBagConstraints.HORIZONTAL;
gbc_pJob.gridx = 0;
// gbc_pJob.gridy = GridBagConstraints.RELATIVE; //below the last one
view.getPanelListJobs().add(pJob, gbc_pJob);
panelJobToMatchs.add(pJob);
}
}
}
/*
* (non-Javadoc)
*
* @see fr.yas.matchup.controllers.BaseController#initEvent()
*/
@Override
public void initEvent() {
ProMatchingHomeView view = (ProMatchingHomeView) getView();
/*
* MenuBar
*/
view.getMenuBar().getNavigationBar().getBtnGoToProfil().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
if (user instanceof Enterprise) {
ViewsManager.getInstance().next(new CompanyController(frame));
} else {
ViewsManager.getInstance().next(new HeadhunterController(frame));
}
}
});
/*
* List of jobs
*/
CandidateDAO cDao = new CandidateDAO();
candidates = new ArrayList<>();
for (BaseEntity cUser : cDao.get()) {
if (!((Candidate) cUser).getSkills().isEmpty()) {
candidates.add(cUser);
}
}
if (!panelJobToMatchs.isEmpty()) {
for (PanelJobToMatch panelJobToMatch : panelJobToMatchs) {
panelJobToMatch.getBtnSeeMore().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (!enMatching) {
enMatching = true;
setButtonsVisible(enMatching);
}
/*
* Ceci est juste pour visuel de test sera remplacé par un panel de resultat
*/
view.getLblResult()
.setText("<html><h1>Matching en cours</h1>job : " + panelJobToMatch.getJob().getId()
+ " - " + panelJobToMatch.getJob().getName() + "</html>");
view.getPanelResult().removeAll();
/*
* Start matching
*/
MatchManager jobMatcher = new MatchManager(candidates, panelJobToMatch.getJob());
for (Matching match : jobMatcher.basic()) {
//Show the result
PanelMatchResume mResume = new PanelMatchResume(match.getCandidate());
mResume.getMatchResult().setText(String.valueOf(match.getPercentage()) + "%");
mResume.getLblName().setText("<html>" + match.getCandidate().getFirstname() + "<br />"
+ match.getCandidate().getLastname() + "</html>");
view.getPanelResult().add(mResume);
mResume.getBtnSeeNewMatch().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Candidate matched = (Candidate) mResume.getMatched();
if (detail == null) {
MatchedCandidate content = new MatchedCandidate();
view.getPanelPreview().add(content);
detail = content;
}
setPanelVisible(false);
detail.getTextFieldEmail().setText(matched.getEmail());
detail.getTextFieldMatching().setText(match.getPercentage() + "%");
detail.getTextFieldNom().setText(matched.getLastname());
detail.getTextFieldPrenom().setText(matched.getFirstname());
detail.getTextFieldPhone().setText(matched.getPhone());
ListModel<String> listModel = new DefaultListModel<>();
for (Skill skill : matched.getSkills()) {
((DefaultListModel<String>) listModel).addElement(skill.getName() + "(" + skill.getSkillType() + ")");
}
detail.getList().setModel(listModel);
// set the button activity
view.getBtnListe().setEnabled(true);
view.getBtnMore().setEnabled(false);
}
});
}
}
});
ActionListener[] aEs = view.getBtnMore().getActionListeners();
if (aEs.length == 0) {
// affiche le detail du dernier candidat visité si présent
view.getBtnMore().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
view.getBtnListe().setEnabled(true);
view.getBtnMore().setEnabled(false);
setPanelVisible(false);
view.getPanelPreview().revalidate();
}
});
}
aEs = view.getBtnListe().getActionListeners();
if (aEs.length == 0) {
view.getBtnListe().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// set the button activity
view.getBtnListe().setEnabled(false);
view.getBtnMore().setEnabled(true);
setPanelVisible(true);
view.getPanelPreview().revalidate();
}
});
}
}
}
}
private void setButtonsVisible(boolean b) {
((ProMatchingHomeView) view).getBtnListe().setVisible(b);
((ProMatchingHomeView) view).getBtnMore().setVisible(b);
}
private void setPanelVisible(boolean b) {
((ProMatchingHomeView) view).getPanelResult().setVisible(b);
detail.setVisible(!b);
}
}
| [
"ladylithie@gmail.com"
] | ladylithie@gmail.com |
99d38d7458945b595cb90729382c1464728ea729 | c7d798fe911ba30c9d6817ebf68ecb6406fb5bd7 | /test/src/test/java/io/norberg/automatter/ListFieldBuilderTest.java | 57200a9ba68a506102796e6743d8604d902ced94 | [
"Apache-2.0"
] | permissive | odsod/auto-matter | 528c6c2d3f721604483c8e8d32c1aeca926677c3 | ef93472670600f57a8b1e98dd57c53e29076958f | refs/heads/master | 2021-01-20T21:56:34.760325 | 2015-03-19T00:43:56 | 2015-03-19T00:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,454 | java | package io.norberg.automatter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.List;
import java.util.Map;
import static java.util.Arrays.asList;
import static org.hamcrest.Matchers.emptyCollectionOf;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class ListFieldBuilderTest {
public @Rule ExpectedException expectedException = ExpectedException.none();
@AutoMatter
interface Lists {
List<String> apples();
List<Integer> oxen();
List<Integer> serial();
List<Map<String, Integer>> maps();
}
ListsBuilder builder;
@Before
public void setUp() {
builder = new ListsBuilder();
}
@Test
public void testDefaults() {
assertThat(builder.apples(), is(emptyCollectionOf(String.class)));
final Lists lists = builder.build();
assertThat(lists.apples(), is(emptyCollectionOf(String.class)));
}
@Test
public void verifyBuilderListIsMutable() {
builder.apple("red");
final List<String> apples = builder.apples();
apples.remove("red");
apples.add("green");
assertThat(builder.apples(), is(asList("green")));
final Lists lists = builder.build();
assertThat(lists.apples(), is(asList("green")));
}
@Test
public void verifyMutatingBuilderListDoesNotChangeValue() {
final Lists lists1 = builder
.apples("red")
.build();
builder.apple("green");
final Lists lists2 = builder.build();
assertThat(lists1.apples(), is(asList("red")));
assertThat(lists2.apples(), is(asList("red", "green")));
}
@Test(expected = UnsupportedOperationException.class)
public void verifyValueListIsImmutable1() {
final Lists lists = builder
.apple("red").apple("green")
.build();
lists.apples().remove("red");
}
@Test(expected = UnsupportedOperationException.class)
public void verifyValueListIsImmutable2() {
final Lists lists = builder
.apple("red").apple("green")
.build();
lists.apples().add("blue");
}
@Test(expected = UnsupportedOperationException.class)
public void verifyValueListIsImmutable3() {
final Lists lists = builder
.apple("red").apple("green")
.build();
lists.apples().clear();
}
@Test
public void testEnglishPlurals() {
final Lists lists = builder.ox(17).ox(4711).build();
assertThat(lists.oxen(), is(asList(17, 4711)));
}
@Test
public void testSingular() {
final Lists lists = builder.serial(1, 2, 3,4).build();
assertThat(lists.serial(), is(asList(1, 2, 3, 4)));
}
@Test
public void verifyAddingNullThrowsNPE() {
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("apple");
builder.apple(null);
}
@Test
public void verifySettingNullIterableThrowsNPE() {
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("apples");
builder.apples((Iterable<String>)null);
}
@Test
public void verifySettingNullArrayThrowsNPE() {
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("apples");
builder.apples((String[])null);
}
@Test
public void verifySettingExtendingValue() {
builder.maps(ImmutableList.of(ImmutableMap.of("foo", 17)));
}
}
| [
"daniel.norberg@gmail.com"
] | daniel.norberg@gmail.com |
b163d51a5379506458dcc230c4c0ec55325cd21b | 0df43ba35e758bb88077bf25f82642baf0d8b2e5 | /Java MVC Frameworks - Spring/Exercises/ResidentEvil-SpringSecurity/src/main/java/org/softuni/app/models/dto/users/RoleDto.java | 6afeb56fe4f26525ce875d81982fd6c929f225a0 | [] | no_license | vonrepiks/Java-Web-May-2018 | 7fc751f880d3d65f509d3e7666e7e84898138bcd | 97a824d56af57803c62b35cd6febb821ad8838a4 | refs/heads/master | 2020-03-17T23:56:10.655221 | 2018-08-02T02:19:34 | 2018-08-02T02:19:34 | 134,068,919 | 1 | 3 | null | null | null | null | UTF-8 | Java | false | false | 446 | java | package org.softuni.app.models.dto.users;
import org.softuni.app.annotations.ValidateAuthority;
public class RoleDto {
@ValidateAuthority(acceptedValues={"USER", "MODERATOR", "ADMIN"}, message="Invalid dataType")
private String authority;
public RoleDto() {
}
public String getAuthority() {
return this.authority;
}
public void setAuthority(String authority) {
this.authority = authority;
}
} | [
"ico_skipernov@abv.bg"
] | ico_skipernov@abv.bg |
e51b0ada99d7c4b0b15370487afa66dbaca41fc1 | 5b924d164b5303f5c49a952d673ce71cb3de89a5 | /Musicat/app/src/main/java/com/example/android/musicat/musicAdapter.java | f229cc890fa88986cbbc359dae36076c91da9839 | [] | no_license | Hesham-XQ/Guardian | 93051455039abf2d3a85bf73106a8352b0cd7381 | d8c1341933171591f30e78c0ef65777b9e4a5492 | refs/heads/master | 2021-04-12T10:53:22.996526 | 2018-04-02T15:27:57 | 2018-04-02T15:27:57 | 126,652,612 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,230 | java | package com.example.android.musicat;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
/**
* Created by SAMO on 3/1/2018.
*/
public class musicAdapter extends ArrayAdapter {
public musicAdapter( Context context,ArrayList<music> pMusic) {
super(context,0, pMusic);
}
public View getView(int position, View convertView, ViewGroup parent) {
View listItemView = convertView;
if(listItemView == null) {
listItemView = LayoutInflater.from(getContext()).inflate(
R.layout.list_item, parent, false);
}
music my_music = (music) getItem(position);
TextView songTitle = (TextView) listItemView.findViewById(R.id.song);
songTitle.setText(my_music.getSong());
TextView artistTitle = (TextView) listItemView.findViewById(R.id.artist);
artistTitle.setText(my_music.getArtist());
return listItemView;
}
}
| [
"example@example.com"
] | example@example.com |
c30e4e8dd812d5cac054e0914db66e81852fd2e8 | d3f56fafa196fda1bf23a21815db2e9560d8b20f | /oracle-310-code/204.java | 46cf1eb1f8d9089560782353ed4f89ffd2213be3 | [
"MIT"
] | permissive | masud-technope/NLP2API-Replication-Package | 63433ba06057648eb98a24d8f7a627c2a41bfed0 | d92967be1f50b9bdc0d1fe6fe84226692c281c18 | refs/heads/master | 2021-06-20T16:32:28.868829 | 2020-12-31T19:12:30 | 2020-12-31T19:12:30 | 137,817,880 | 7 | 3 | null | null | null | null | UTF-8 | Java | false | false | 1,134 | java | /* w w w.java2 s.c o m*/
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
public class Main {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame();
frame.add(new TestImage());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
});
}
}
class TestImage extends JPanel {
private static final int SCREEN_WIDTH = 256;
BufferedImage img;
public TestImage() {
try {
img = ImageIO.read(getClass().getResource("resources/yourimage.png"));
} catch (IOException ex) {
System.err.println("Could not load image");
}
}
protected void paintComponent(Graphics g) {
super.paintComponent(g);
g.drawImage(img, 0, 0, this);
}
public Dimension getPreferredSize() {
return new Dimension(SCREEN_WIDTH, SCREEN_WIDTH);
}
}
| [
"masudcseku@gmail.com"
] | masudcseku@gmail.com |
11ca66d0ecbd346a37bb271be72ec2cb37e5ad8a | 4a627a99cdf202019fa4088ca23316e9cc427e7b | /nyd-cash-zeus/nyd-cash-zeus-model/src/main/java/com/nyd/zeus/model/helibao/vo/pay/req/chanpay/PayConfigFileSearchForm.java | c86e21d60b6f40ac769088c63f99d22ae0dde561 | [] | no_license | P79N6A/zlqb | 4bdcc62db76f8b4fdd4176c06812c9bd8ac2148b | 66a8781e74216ead7ea4969d89972c16e9d45b54 | refs/heads/master | 2020-07-13T14:18:36.941485 | 2019-08-26T12:22:20 | 2019-08-26T12:22:20 | 205,096,175 | 0 | 1 | null | 2019-08-29T06:30:30 | 2019-08-29T06:30:30 | null | UTF-8 | Java | false | false | 1,636 | java | package com.nyd.zeus.model.helibao.vo.pay.req.chanpay;
import com.nyd.zeus.model.common.BaseSearchForm;
public class PayConfigFileSearchForm extends BaseSearchForm {
private String id; //业务主键
private String code; //富友商户对应code
private String memberId; //商户号
private String version; //版本号
private String pubKey; //公钥
private String prdKey; //私钥
private String payUrl; //富友请求url
private String payKey; //密钥
private String channel; //
public String getId() {
return this.id;
}
public void setId(String id) {
this.id=id;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code=code;
}
public String getMemberId() {
return this.memberId;
}
public void setMemberId(String memberId) {
this.memberId=memberId;
}
public String getVersion() {
return this.version;
}
public void setVersion(String version) {
this.version=version;
}
public String getPubKey() {
return this.pubKey;
}
public void setPubKey(String pubKey) {
this.pubKey=pubKey;
}
public String getPrdKey() {
return this.prdKey;
}
public void setPrdKey(String prdKey) {
this.prdKey=prdKey;
}
public String getPayUrl() {
return payUrl;
}
public void setPayUrl(String payUrl) {
this.payUrl = payUrl;
}
public String getPayKey() {
return payKey;
}
public void setPayKey(String payKey) {
this.payKey = payKey;
}
public String getChannel() {
return this.channel;
}
public void setChannel(String channel) {
this.channel=channel;
}
}
| [
"hhh@d55a9f32-8471-450d-bba4-b89e090b5caa"
] | hhh@d55a9f32-8471-450d-bba4-b89e090b5caa |
227c01f35068544fb81ea057b52de843214e395a | 07c4b475de17657af9492607e313ecca31b68f3f | /src/test/java/test/com/efrat/example/devops/echoServerFEApp/resources/echoHealthCheck/EchoHealthCheckTest.java | 569c6fa56c4c7b2f5e6fd3f0665937506e5df3f9 | [
"BSL-1.0"
] | permissive | demo4echo/echofe | 64e8e3fae90cfcaa183c1c452d08dc843c058b1b | c82af27c36d6c4fdd9ca5df461e67de65e7fef57 | refs/heads/master | 2022-12-02T22:53:55.085881 | 2020-08-19T08:22:23 | 2020-08-19T08:22:23 | 175,197,779 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,984 | java | /**
*
*/
package test.com.efrat.example.devops.echoServerFEApp.resources.echoHealthCheck;
import static org.junit.Assert.*;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.efrat.example.devops.echoServerFEApp.resources.echoHealthCheck.EchoHealthCheckResource;
/**
* @author tmeltse
*
*/
public class EchoHealthCheckTest
{
// Need to take this externally to a file
// public static final String BASE_URI = "http://192.168.99.100:9999";
// public static final String BASE_URI = "http://192.168.99.100:30999";
/**
* @throws java.lang.Exception
*/
@BeforeClass
public static void setUpBeforeClass() throws Exception
{
}
/**
* @throws java.lang.Exception
*/
@AfterClass
public static void tearDownAfterClass() throws Exception
{
}
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception
{
}
/**
* @throws java.lang.Exception
*/
@After
public void tearDown() throws Exception
{
}
/**
* Test method for {@link com.efrat.example.devops.echoServerFEApp.resources.echoHealthCheck.EchoHealthCheckResource#getROOT()}.
*/
@Test
public final void testGetEchoHealthCheck()
{
System.out.println("com.efrat.echofe.serviceEndPoint.internal system property value is: [" + System.getProperty("com.efrat.echofe.serviceEndPoint.internal") + "]");
System.out.println("com.efrat.echofe.serviceEndPoint.external system property value is: [" + System.getProperty("com.efrat.echofe.serviceEndPoint.external") + "]");
// String baseURI = System.getProperty("com.efrat.echofe.serviceEndPoint",BASE_URI);
// String baseURI = System.getProperty("com.efrat.echofe.serviceEndPoint");
String internalBaseURI = System.getProperty("com.efrat.echofe.serviceEndPoint.internal");
String externalBaseURI = System.getProperty("com.efrat.echofe.serviceEndPoint.external");
String baseURI = internalBaseURI;
// Resolve correct service end point and update if running outside the cluster
boolean isRunningOutsideTheCluster = System.getenv().containsKey("MARK_OFF_CLUSTER_INVOCATION_ENV_VAR");
if (isRunningOutsideTheCluster == true)
{
baseURI = externalBaseURI;
System.out.println("Found MARK_OFF_CLUSTER_INVOCATION_ENV_VAR environment variable - invoking the test in off cluster mode!");
}
System.out.println("baseURI is set as: [" + baseURI + "]");
assertNotNull(baseURI);
WebTarget target = ClientBuilder
.newClient()
.target(baseURI)
.path(EchoHealthCheckResource.SELF_PATH);
String responseAsString = target.request(MediaType.TEXT_PLAIN).get(String.class);
assertEquals(EchoHealthCheckResource.GET_RESPONSE,responseAsString);
}
}
| [
"admin@example.com"
] | admin@example.com |
b24081551e115602e0dae9254d8525db75abf9ed | 281c5bd10fd1a5bcad95ffa3a40d5c2fbfec9976 | /spring_app7/src/dao/MySqlDAO.java | 629199000d3452e096d3e6a833415d877d79b106 | [] | no_license | ybk2810/STS_workspace | 67b77022bb4f416b177d66169b4624e8cd2e46ae | 9f3e335546e3103fe1673dc2d51dd9350c6ab09f | refs/heads/master | 2020-04-08T23:18:56.307934 | 2018-11-30T12:21:09 | 2018-11-30T12:21:09 | 159,819,751 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 751 | java | package dao;
import java.util.ArrayList;
import dto.DeptDTO;
public class MySqlDAO implements CommonDAO {
@Override
public void connect() {
System.out.println("MySpl DB접속");
}
@Override
public void insert(DeptDTO dto) {
System.out.println("MySpl 추가");
}
@Override
public void update(DeptDTO dto) {
System.out.println("MySpl 수정");
}
@Override
public void delete(int no) {
System.out.println("MySpl 삭제");
}
@Override
public ArrayList<DeptDTO> selectAll() {
System.out.println("MySpl 전체조회");
return null;
}
@Override
public DeptDTO selectOne(int no) {
System.out.println("MySpl 1건조회");
return null;
}
@Override
public void close() {
System.out.println("MySpl 닫기");
}
}
| [
"40554896+ybk2810@users.noreply.github.com"
] | 40554896+ybk2810@users.noreply.github.com |
2985a2da9137905e92eee6269ec3f9b54bcb31d7 | 11db65a1c81fed9f332d9ee1704f9e810dbf1ff4 | /DASI/Periode1/code/Gustatif/src/main/java/fr/insalyon/dasi/gustatif/dao/CommandeDao.java | db0f3a23bdd9df1a7b61bfff21013cd76bb774b3 | [] | no_license | NicolasGripont/B3125 | 241988ffa6f510cde62fa915ab5dcfc9a2614c5f | b1fc97d85c277dadcd4f133b121d6e82fae53211 | refs/heads/master | 2021-01-18T22:03:59.443600 | 2017-04-06T19:00:17 | 2017-04-06T19:00:17 | 47,985,592 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,502 | 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 fr.insalyon.dasi.gustatif.dao;
import fr.insalyon.dasi.gustatif.metier.modele.Commande;
import fr.insalyon.dasi.gustatif.metier.modele.Livreur;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
/**
*
* @author Nico
*/
public class CommandeDao {
public void create(Commande commande) throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
try {
em.persist(commande);
}
catch(Exception e) {
throw e;
}
}
public Commande update(Commande commande) throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
try {
commande = em.merge(commande);
}
catch(Exception e){
throw e;
}
return commande;
}
public Commande findById(Long id) throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
Commande commande = null;
try {
commande = em.find(Commande.class, id);
}
catch(Exception e) {
throw e;
}
return commande;
}
public Commande findNotEndedByLivreur(Livreur livreur) throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
Commande commande = null;
List<Commande> commandes = null;
try {
Query q = em.createQuery("SELECT c FROM Commande c WHERE c.dateFin "
+ "IS NULL AND c.livreur = :livreur");
q.setParameter("livreur", livreur);
commandes = (List<Commande>) q.getResultList();
if(!commandes.isEmpty()) {
commande = commandes.get(0);
}
}
catch(Exception e) {
throw e;
}
return commande;
}
public List<Commande> findAll() throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
List<Commande> commandes = null;
try {
Query q = em.createQuery("SELECT c FROM Commande c");
commandes = (List<Commande>) q.getResultList();
}
catch(Exception e) {
throw e;
}
return commandes;
}
public List<Commande> findByLivreurID(Long livreurId) throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
List<Commande> commandes = null;
try {
Livreur l = em.find(Livreur.class, livreurId);
if(l != null)
{
commandes = l.getCommandes();
if(commandes.isEmpty())
{
commandes = null;
}
}
}
catch(Exception e) {
throw e;
}
return commandes;
}
public List<Commande> findAllNotEnded() throws Throwable {
EntityManager em = JpaUtil.obtenirEntityManager();
List<Commande> commandes = null;
try {
Query q = em.createQuery("SELECT c FROM Commande c WHERE "
+ "c.dateFin IS NULL");
commandes = (List<Commande>) q.getResultList();
}
catch(Exception e) {
throw e;
}
return commandes;
}
}
| [
"Nicolas.Gripont@insa-lyon.fr"
] | Nicolas.Gripont@insa-lyon.fr |
16ac8c4689132433c440680e3038af9afc4d1f56 | 645b0a51c6d77621b3cecb77fff50913a6cb7397 | /bmss/bmss-frist-leetcode/src/main/java/com/bmss/test/dubbo/degsignModel/Observer/Test.java | 20a7d33c020a2b8b9df2d160b9a40c23115a688f | [] | no_license | fxwhu/demo | b94299049dc31c63ca356b040c8ea867ffefb141 | 2a3964b8199c57b981a957a8ca7bcd87c2aafe57 | refs/heads/master | 2021-01-20T03:39:48.217231 | 2017-07-12T02:53:10 | 2017-07-12T02:53:10 | 89,569,647 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 414 | java | package com.bmss.test.dubbo.degsignModel.Observer;
/**
* Created by fengxuan1 on 2016/10/21.
*/
public class Test {
public static void main(String[] args) {
Watched watched = new ConcertWatched();
Watcher a = new WatcherA();
Watcher b = new WatcherB();
watched.addWatcher(a);
watched.addWatcher(b);
watched.notifyWatcher("watche say i am changing");
}
}
| [
"fengxuan1@lenovo.com"
] | fengxuan1@lenovo.com |
2bba57dfa4d3e57711ce2e712efc96f8da5e7b3c | 33654a38c7d600ce3da55d3733db27f0242d52c1 | /webnew/src/main/java/es/cj/controller/EditarLibro.java | 2a3811032aafae74684989ee91c66277fdf24d12 | [] | no_license | josemmduarte/webalpha | d242dd5c83f61092e01d81117932ae40f2fb9d11 | 43af41350b0ebf097971fcc11680bbbe22f21fd6 | refs/heads/master | 2020-04-17T08:30:26.387987 | 2019-03-05T13:37:31 | 2019-03-05T13:37:31 | 166,414,997 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Java | false | false | 3,702 | java | package es.cj.controller;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;
import es.cj.bean.Conexion;
import es.cj.bean.Pelicula;
import es.cj.bean.Usuario;
import es.cj.dao.LibroDAO;
import es.cj.dao.LibroDAOImpl;
/**
* Servlet implementation class EditarLibro
*/
@MultipartConfig
public class EditarLibro extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public EditarLibro() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.getWriter().append("Served at: ").append(request.getContextPath());
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String titulo = request.getParameter("titulo");
String director = request.getParameter("director");
String sinopsis = request.getParameter("sinopsis");
int anyo = Integer.parseInt(request.getParameter("anyo"));
String uuid = request.getParameter("uuid");
HttpSession session = request.getSession();
int idUsuario = ((Usuario) session.getAttribute("usuarioWeb")).getIdUsuario();
// Portada
Part filePart = request.getPart("portada");
InputStream inputS = null;
ByteArrayOutputStream os = null;
Pelicula lib = null;
if (!getFileName(filePart).equals("")) {
inputS = filePart.getInputStream();
// Escalar la imagen
BufferedImage imageBuffer = ImageIO.read(inputS);
Image tmp = imageBuffer.getScaledInstance(640, 640, BufferedImage.SCALE_FAST);
BufferedImage buffered = new BufferedImage(640, 640, BufferedImage.TYPE_INT_RGB);
buffered.getGraphics().drawImage(tmp, 0, 0, null);
os = new ByteArrayOutputStream();
ImageIO.write(buffered, "jpg", os);
lib = new Pelicula(titulo, director, anyo, os.toByteArray(), uuid, idUsuario, sinopsis);
} else {
lib = new Pelicula(titulo, director, anyo, null, uuid, idUsuario, sinopsis);
}
LibroDAO lDAO = new LibroDAOImpl();
// Conexión con la base de datos
// Voy a capturar los datos del web.xml
ServletContext sc = getServletContext();
String usu = sc.getInitParameter("usuario");
String pass = sc.getInitParameter("password");
String driver = sc.getInitParameter("driver");
String bd = sc.getInitParameter("database");
// Crear un objeto de tipo Conexion con los datos anteriores
Conexion con = new Conexion(usu, pass, driver, bd);
lDAO.actualizar(con, lib);
response.sendRedirect("jsp/detalle.jsp?uuid="+uuid);
}
private String getFileName(Part filePart) {
for (String content : filePart.getHeader("content-disposition").split(";")) {
if (content.trim().startsWith("filename")) {
return content.substring(content.indexOf("=") + 1).trim().replace("\"", "");
}
}
return null;
}
} | [
"Onii@192.168.1.5"
] | Onii@192.168.1.5 |
cc62a0c4351fe76ab417faaf4ec40227b75e3246 | d71e879b3517cf4fccde29f7bf82cff69856cfcd | /ExtractedJars/RT_News_com.rt.mobile.english/javafiles/android/support/v7/media/RemotePlaybackClient$ActionReceiver.java | d87bfbbf4e6d57b778a7ec4ed346ec76a7aae59c | [
"MIT"
] | permissive | Andreas237/AndroidPolicyAutomation | b8e949e072d08cf6c6166c3f15c9c63379b8f6ce | c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a | refs/heads/master | 2020-04-10T02:14:08.789751 | 2019-05-16T19:29:11 | 2019-05-16T19:29:11 | 160,739,088 | 5 | 1 | null | null | null | null | UTF-8 | Java | false | false | 16,554 | java | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v7.media;
import android.content.*;
import android.util.Log;
// Referenced classes of package android.support.v7.media:
// RemotePlaybackClient, MediaSessionStatus, MediaItemStatus
private final class RemotePlaybackClient$ActionReceiver extends BroadcastReceiver
{
public void onReceive(Context context, Intent intent)
{
context = ((Context) (intent.getStringExtra("android.media.intent.extra.SESSION_ID")));
// 0 0:aload_2
// 1 1:ldc1 #31 <String "android.media.intent.extra.SESSION_ID">
// 2 3:invokevirtual #37 <Method String Intent.getStringExtra(String)>
// 3 6:astore_1
if(context != null && ((String) (context)).equals(((Object) (mSessionId))))
//* 4 7:aload_1
//* 5 8:ifnull 403
//* 6 11:aload_1
//* 7 12:aload_0
//* 8 13:getfield #23 <Field RemotePlaybackClient this$0>
//* 9 16:getfield #40 <Field String RemotePlaybackClient.mSessionId>
//* 10 19:invokevirtual #46 <Method boolean String.equals(Object)>
//* 11 22:ifne 28
//* 12 25:goto 403
{
MediaSessionStatus mediasessionstatus = MediaSessionStatus.fromBundle(intent.getBundleExtra("android.media.intent.extra.SESSION_STATUS"));
// 13 28:aload_2
// 14 29:ldc1 #48 <String "android.media.intent.extra.SESSION_STATUS">
// 15 31:invokevirtual #52 <Method android.os.Bundle Intent.getBundleExtra(String)>
// 16 34:invokestatic #58 <Method MediaSessionStatus MediaSessionStatus.fromBundle(android.os.Bundle)>
// 17 37:astore_3
Object obj = ((Object) (intent.getAction()));
// 18 38:aload_2
// 19 39:invokevirtual #62 <Method String Intent.getAction()>
// 20 42:astore 4
if(((String) (obj)).equals("android.support.v7.media.actions.ACTION_ITEM_STATUS_CHANGED"))
//* 21 44:aload 4
//* 22 46:ldc1 #11 <String "android.support.v7.media.actions.ACTION_ITEM_STATUS_CHANGED">
//* 23 48:invokevirtual #46 <Method boolean String.equals(Object)>
//* 24 51:ifeq 220
{
obj = ((Object) (intent.getStringExtra("android.media.intent.extra.ITEM_ID")));
// 25 54:aload_2
// 26 55:ldc1 #64 <String "android.media.intent.extra.ITEM_ID">
// 27 57:invokevirtual #37 <Method String Intent.getStringExtra(String)>
// 28 60:astore 4
if(obj == null)
//* 29 62:aload 4
//* 30 64:ifnonnull 76
{
Log.w("RemotePlaybackClient", "Discarding spurious status callback with missing item id.");
// 31 67:ldc1 #66 <String "RemotePlaybackClient">
// 32 69:ldc1 #68 <String "Discarding spurious status callback with missing item id.">
// 33 71:invokestatic #74 <Method int Log.w(String, String)>
// 34 74:pop
return;
// 35 75:return
}
MediaItemStatus mediaitemstatus = MediaItemStatus.fromBundle(intent.getBundleExtra("android.media.intent.extra.ITEM_STATUS"));
// 36 76:aload_2
// 37 77:ldc1 #76 <String "android.media.intent.extra.ITEM_STATUS">
// 38 79:invokevirtual #52 <Method android.os.Bundle Intent.getBundleExtra(String)>
// 39 82:invokestatic #81 <Method MediaItemStatus MediaItemStatus.fromBundle(android.os.Bundle)>
// 40 85:astore 5
if(mediaitemstatus == null)
//* 41 87:aload 5
//* 42 89:ifnonnull 101
{
Log.w("RemotePlaybackClient", "Discarding spurious status callback with missing item status.");
// 43 92:ldc1 #66 <String "RemotePlaybackClient">
// 44 94:ldc1 #83 <String "Discarding spurious status callback with missing item status.">
// 45 96:invokestatic #74 <Method int Log.w(String, String)>
// 46 99:pop
return;
// 47 100:return
}
if(RemotePlaybackClient.DEBUG)
//* 48 101:getstatic #87 <Field boolean RemotePlaybackClient.DEBUG>
//* 49 104:ifeq 189
{
StringBuilder stringbuilder1 = new StringBuilder();
// 50 107:new #89 <Class StringBuilder>
// 51 110:dup
// 52 111:invokespecial #90 <Method void StringBuilder()>
// 53 114:astore 6
stringbuilder1.append("Received item status callback: sessionId=");
// 54 116:aload 6
// 55 118:ldc1 #92 <String "Received item status callback: sessionId=">
// 56 120:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 57 123:pop
stringbuilder1.append(((String) (context)));
// 58 124:aload 6
// 59 126:aload_1
// 60 127:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 61 130:pop
stringbuilder1.append(", sessionStatus=");
// 62 131:aload 6
// 63 133:ldc1 #98 <String ", sessionStatus=">
// 64 135:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 65 138:pop
stringbuilder1.append(((Object) (mediasessionstatus)));
// 66 139:aload 6
// 67 141:aload_3
// 68 142:invokevirtual #101 <Method StringBuilder StringBuilder.append(Object)>
// 69 145:pop
stringbuilder1.append(", itemId=");
// 70 146:aload 6
// 71 148:ldc1 #103 <String ", itemId=">
// 72 150:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 73 153:pop
stringbuilder1.append(((String) (obj)));
// 74 154:aload 6
// 75 156:aload 4
// 76 158:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 77 161:pop
stringbuilder1.append(", itemStatus=");
// 78 162:aload 6
// 79 164:ldc1 #105 <String ", itemStatus=">
// 80 166:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 81 169:pop
stringbuilder1.append(((Object) (mediaitemstatus)));
// 82 170:aload 6
// 83 172:aload 5
// 84 174:invokevirtual #101 <Method StringBuilder StringBuilder.append(Object)>
// 85 177:pop
Log.d("RemotePlaybackClient", stringbuilder1.toString());
// 86 178:ldc1 #66 <String "RemotePlaybackClient">
// 87 180:aload 6
// 88 182:invokevirtual #108 <Method String StringBuilder.toString()>
// 89 185:invokestatic #111 <Method int Log.d(String, String)>
// 90 188:pop
}
if(mStatusCallback != null)
//* 91 189:aload_0
//* 92 190:getfield #23 <Field RemotePlaybackClient this$0>
//* 93 193:getfield #115 <Field RemotePlaybackClient$StatusCallback RemotePlaybackClient.mStatusCallback>
//* 94 196:ifnull 402
{
mStatusCallback.onItemStatusChanged(intent.getExtras(), ((String) (context)), mediasessionstatus, ((String) (obj)), mediaitemstatus);
// 95 199:aload_0
// 96 200:getfield #23 <Field RemotePlaybackClient this$0>
// 97 203:getfield #115 <Field RemotePlaybackClient$StatusCallback RemotePlaybackClient.mStatusCallback>
// 98 206:aload_2
// 99 207:invokevirtual #119 <Method android.os.Bundle Intent.getExtras()>
// 100 210:aload_1
// 101 211:aload_3
// 102 212:aload 4
// 103 214:aload 5
// 104 216:invokevirtual #125 <Method void RemotePlaybackClient$StatusCallback.onItemStatusChanged(android.os.Bundle, String, MediaSessionStatus, String, MediaItemStatus)>
return;
// 105 219:return
}
} else
if(((String) (obj)).equals("android.support.v7.media.actions.ACTION_SESSION_STATUS_CHANGED"))
//* 106 220:aload 4
//* 107 222:ldc1 #17 <String "android.support.v7.media.actions.ACTION_SESSION_STATUS_CHANGED">
//* 108 224:invokevirtual #46 <Method boolean String.equals(Object)>
//* 109 227:ifeq 326
{
if(mediasessionstatus == null)
//* 110 230:aload_3
//* 111 231:ifnonnull 243
{
Log.w("RemotePlaybackClient", "Discarding spurious media status callback with missing session status.");
// 112 234:ldc1 #66 <String "RemotePlaybackClient">
// 113 236:ldc1 #127 <String "Discarding spurious media status callback with missing session status.">
// 114 238:invokestatic #74 <Method int Log.w(String, String)>
// 115 241:pop
return;
// 116 242:return
}
if(RemotePlaybackClient.DEBUG)
//* 117 243:getstatic #87 <Field boolean RemotePlaybackClient.DEBUG>
//* 118 246:ifeq 299
{
obj = ((Object) (new StringBuilder()));
// 119 249:new #89 <Class StringBuilder>
// 120 252:dup
// 121 253:invokespecial #90 <Method void StringBuilder()>
// 122 256:astore 4
((StringBuilder) (obj)).append("Received session status callback: sessionId=");
// 123 258:aload 4
// 124 260:ldc1 #129 <String "Received session status callback: sessionId=">
// 125 262:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 126 265:pop
((StringBuilder) (obj)).append(((String) (context)));
// 127 266:aload 4
// 128 268:aload_1
// 129 269:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 130 272:pop
((StringBuilder) (obj)).append(", sessionStatus=");
// 131 273:aload 4
// 132 275:ldc1 #98 <String ", sessionStatus=">
// 133 277:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 134 280:pop
((StringBuilder) (obj)).append(((Object) (mediasessionstatus)));
// 135 281:aload 4
// 136 283:aload_3
// 137 284:invokevirtual #101 <Method StringBuilder StringBuilder.append(Object)>
// 138 287:pop
Log.d("RemotePlaybackClient", ((StringBuilder) (obj)).toString());
// 139 288:ldc1 #66 <String "RemotePlaybackClient">
// 140 290:aload 4
// 141 292:invokevirtual #108 <Method String StringBuilder.toString()>
// 142 295:invokestatic #111 <Method int Log.d(String, String)>
// 143 298:pop
}
if(mStatusCallback != null)
//* 144 299:aload_0
//* 145 300:getfield #23 <Field RemotePlaybackClient this$0>
//* 146 303:getfield #115 <Field RemotePlaybackClient$StatusCallback RemotePlaybackClient.mStatusCallback>
//* 147 306:ifnull 402
{
mStatusCallback.onSessionStatusChanged(intent.getExtras(), ((String) (context)), mediasessionstatus);
// 148 309:aload_0
// 149 310:getfield #23 <Field RemotePlaybackClient this$0>
// 150 313:getfield #115 <Field RemotePlaybackClient$StatusCallback RemotePlaybackClient.mStatusCallback>
// 151 316:aload_2
// 152 317:invokevirtual #119 <Method android.os.Bundle Intent.getExtras()>
// 153 320:aload_1
// 154 321:aload_3
// 155 322:invokevirtual #133 <Method void RemotePlaybackClient$StatusCallback.onSessionStatusChanged(android.os.Bundle, String, MediaSessionStatus)>
return;
// 156 325:return
}
} else
if(((String) (obj)).equals("android.support.v7.media.actions.ACTION_MESSAGE_RECEIVED"))
//* 157 326:aload 4
//* 158 328:ldc1 #14 <String "android.support.v7.media.actions.ACTION_MESSAGE_RECEIVED">
//* 159 330:invokevirtual #46 <Method boolean String.equals(Object)>
//* 160 333:ifeq 402
{
if(RemotePlaybackClient.DEBUG)
//* 161 336:getstatic #87 <Field boolean RemotePlaybackClient.DEBUG>
//* 162 339:ifeq 373
{
StringBuilder stringbuilder = new StringBuilder();
// 163 342:new #89 <Class StringBuilder>
// 164 345:dup
// 165 346:invokespecial #90 <Method void StringBuilder()>
// 166 349:astore_3
stringbuilder.append("Received message callback: sessionId=");
// 167 350:aload_3
// 168 351:ldc1 #135 <String "Received message callback: sessionId=">
// 169 353:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 170 356:pop
stringbuilder.append(((String) (context)));
// 171 357:aload_3
// 172 358:aload_1
// 173 359:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 174 362:pop
Log.d("RemotePlaybackClient", stringbuilder.toString());
// 175 363:ldc1 #66 <String "RemotePlaybackClient">
// 176 365:aload_3
// 177 366:invokevirtual #108 <Method String StringBuilder.toString()>
// 178 369:invokestatic #111 <Method int Log.d(String, String)>
// 179 372:pop
}
if(mOnMessageReceivedListener != null)
//* 180 373:aload_0
//* 181 374:getfield #23 <Field RemotePlaybackClient this$0>
//* 182 377:getfield #139 <Field RemotePlaybackClient$OnMessageReceivedListener RemotePlaybackClient.mOnMessageReceivedListener>
//* 183 380:ifnull 402
mOnMessageReceivedListener.onMessageReceived(((String) (context)), intent.getBundleExtra("android.media.intent.extra.MESSAGE"));
// 184 383:aload_0
// 185 384:getfield #23 <Field RemotePlaybackClient this$0>
// 186 387:getfield #139 <Field RemotePlaybackClient$OnMessageReceivedListener RemotePlaybackClient.mOnMessageReceivedListener>
// 187 390:aload_1
// 188 391:aload_2
// 189 392:ldc1 #141 <String "android.media.intent.extra.MESSAGE">
// 190 394:invokevirtual #52 <Method android.os.Bundle Intent.getBundleExtra(String)>
// 191 397:invokeinterface #147 <Method void RemotePlaybackClient$OnMessageReceivedListener.onMessageReceived(String, android.os.Bundle)>
}
return;
// 192 402:return
} else
{
intent = ((Intent) (new StringBuilder()));
// 193 403:new #89 <Class StringBuilder>
// 194 406:dup
// 195 407:invokespecial #90 <Method void StringBuilder()>
// 196 410:astore_2
((StringBuilder) (intent)).append("Discarding spurious status callback with missing or invalid session id: sessionId=");
// 197 411:aload_2
// 198 412:ldc1 #149 <String "Discarding spurious status callback with missing or invalid session id: sessionId=">
// 199 414:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 200 417:pop
((StringBuilder) (intent)).append(((String) (context)));
// 201 418:aload_2
// 202 419:aload_1
// 203 420:invokevirtual #96 <Method StringBuilder StringBuilder.append(String)>
// 204 423:pop
Log.w("RemotePlaybackClient", ((StringBuilder) (intent)).toString());
// 205 424:ldc1 #66 <String "RemotePlaybackClient">
// 206 426:aload_2
// 207 427:invokevirtual #108 <Method String StringBuilder.toString()>
// 208 430:invokestatic #74 <Method int Log.w(String, String)>
// 209 433:pop
return;
// 210 434:return
}
}
public static final String ACTION_ITEM_STATUS_CHANGED = "android.support.v7.media.actions.ACTION_ITEM_STATUS_CHANGED";
public static final String ACTION_MESSAGE_RECEIVED = "android.support.v7.media.actions.ACTION_MESSAGE_RECEIVED";
public static final String ACTION_SESSION_STATUS_CHANGED = "android.support.v7.media.actions.ACTION_SESSION_STATUS_CHANGED";
final RemotePlaybackClient this$0;
RemotePlaybackClient$ActionReceiver()
{
this$0 = RemotePlaybackClient.this;
// 0 0:aload_0
// 1 1:aload_1
// 2 2:putfield #23 <Field RemotePlaybackClient this$0>
super();
// 3 5:aload_0
// 4 6:invokespecial #26 <Method void BroadcastReceiver()>
// 5 9:return
}
}
| [
"silenta237@gmail.com"
] | silenta237@gmail.com |
067c207b33459ec7f22af40f4da4ab7d875820d7 | 538830c2482b12492cb18bb6c97e9d108a42d77b | /uploader/build/generated/source/r/debug/com/ivanov/tech/connection/R.java | 9fe209a16276629378f53eed719b8381dfa511ba | [] | no_license | Igorpi25/AndroidStudioProfile | 57a6205694c18e83a7c447ac06c5068ff476f299 | 1dde6c0b0718a0db36e39e98b2a7ec1b4b24c89a | refs/heads/master | 2021-01-02T08:48:59.948395 | 2017-08-02T05:29:43 | 2017-08-02T05:29:43 | 99,066,268 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 84,367 | 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.ivanov.tech.connection;
public final class R {
public static final class anim {
public static int abc_fade_in = 0x7f040000;
public static int abc_fade_out = 0x7f040001;
public static int abc_grow_fade_in_from_bottom = 0x7f040002;
public static int abc_popup_enter = 0x7f040003;
public static int abc_popup_exit = 0x7f040004;
public static int abc_shrink_fade_out_from_bottom = 0x7f040005;
public static int abc_slide_in_bottom = 0x7f040006;
public static int abc_slide_in_top = 0x7f040007;
public static int abc_slide_out_bottom = 0x7f040008;
public static int abc_slide_out_top = 0x7f040009;
}
public static final class attr {
public static int actionBarDivider = 0x7f01003b;
public static int actionBarItemBackground = 0x7f01003c;
public static int actionBarPopupTheme = 0x7f010035;
public static int actionBarSize = 0x7f01003a;
public static int actionBarSplitStyle = 0x7f010037;
public static int actionBarStyle = 0x7f010036;
public static int actionBarTabBarStyle = 0x7f010031;
public static int actionBarTabStyle = 0x7f010030;
public static int actionBarTabTextStyle = 0x7f010032;
public static int actionBarTheme = 0x7f010038;
public static int actionBarWidgetTheme = 0x7f010039;
public static int actionButtonStyle = 0x7f010055;
public static int actionDropDownStyle = 0x7f010051;
public static int actionLayout = 0x7f0100a3;
public static int actionMenuTextAppearance = 0x7f01003d;
public static int actionMenuTextColor = 0x7f01003e;
public static int actionModeBackground = 0x7f010041;
public static int actionModeCloseButtonStyle = 0x7f010040;
public static int actionModeCloseDrawable = 0x7f010043;
public static int actionModeCopyDrawable = 0x7f010045;
public static int actionModeCutDrawable = 0x7f010044;
public static int actionModeFindDrawable = 0x7f010049;
public static int actionModePasteDrawable = 0x7f010046;
public static int actionModePopupWindowStyle = 0x7f01004b;
public static int actionModeSelectAllDrawable = 0x7f010047;
public static int actionModeShareDrawable = 0x7f010048;
public static int actionModeSplitBackground = 0x7f010042;
public static int actionModeStyle = 0x7f01003f;
public static int actionModeWebSearchDrawable = 0x7f01004a;
public static int actionOverflowButtonStyle = 0x7f010033;
public static int actionOverflowMenuStyle = 0x7f010034;
public static int actionProviderClass = 0x7f0100a5;
public static int actionViewClass = 0x7f0100a4;
public static int activityChooserViewStyle = 0x7f01005d;
public static int alertDialogButtonGroupStyle = 0x7f010080;
public static int alertDialogCenterButtons = 0x7f010081;
public static int alertDialogStyle = 0x7f01007f;
public static int alertDialogTheme = 0x7f010082;
public static int allowStacking = 0x7f010094;
public static int arrowHeadLength = 0x7f01009b;
public static int arrowShaftLength = 0x7f01009c;
public static int autoCompleteTextViewStyle = 0x7f010087;
public static int background = 0x7f01000c;
public static int backgroundSplit = 0x7f01000e;
public static int backgroundStacked = 0x7f01000d;
public static int backgroundTint = 0x7f0100cf;
public static int backgroundTintMode = 0x7f0100d0;
public static int barLength = 0x7f01009d;
public static int borderlessButtonStyle = 0x7f01005a;
public static int buttonBarButtonStyle = 0x7f010057;
public static int buttonBarNegativeButtonStyle = 0x7f010085;
public static int buttonBarNeutralButtonStyle = 0x7f010086;
public static int buttonBarPositiveButtonStyle = 0x7f010084;
public static int buttonBarStyle = 0x7f010056;
public static int buttonPanelSideLayout = 0x7f01001f;
public static int buttonStyle = 0x7f010088;
public static int buttonStyleSmall = 0x7f010089;
public static int buttonTint = 0x7f010095;
public static int buttonTintMode = 0x7f010096;
public static int checkboxStyle = 0x7f01008a;
public static int checkedTextViewStyle = 0x7f01008b;
public static int closeIcon = 0x7f0100ad;
public static int closeItemLayout = 0x7f01001c;
public static int collapseContentDescription = 0x7f0100c6;
public static int collapseIcon = 0x7f0100c5;
public static int color = 0x7f010097;
public static int colorAccent = 0x7f010078;
public static int colorButtonNormal = 0x7f01007c;
public static int colorControlActivated = 0x7f01007a;
public static int colorControlHighlight = 0x7f01007b;
public static int colorControlNormal = 0x7f010079;
public static int colorPrimary = 0x7f010076;
public static int colorPrimaryDark = 0x7f010077;
public static int colorSwitchThumbNormal = 0x7f01007d;
public static int commitIcon = 0x7f0100b2;
public static int contentInsetEnd = 0x7f010017;
public static int contentInsetLeft = 0x7f010018;
public static int contentInsetRight = 0x7f010019;
public static int contentInsetStart = 0x7f010016;
public static int controlBackground = 0x7f01007e;
public static int customNavigationLayout = 0x7f01000f;
public static int defaultQueryHint = 0x7f0100ac;
public static int dialogPreferredPadding = 0x7f01004f;
public static int dialogTheme = 0x7f01004e;
public static int displayOptions = 0x7f010005;
public static int divider = 0x7f01000b;
public static int dividerHorizontal = 0x7f01005c;
public static int dividerPadding = 0x7f0100a1;
public static int dividerVertical = 0x7f01005b;
public static int drawableSize = 0x7f010099;
public static int drawerArrowStyle = 0x7f010000;
public static int dropDownListViewStyle = 0x7f01006e;
public static int dropdownListPreferredItemHeight = 0x7f010052;
public static int editTextBackground = 0x7f010063;
public static int editTextColor = 0x7f010062;
public static int editTextStyle = 0x7f01008c;
public static int elevation = 0x7f01001a;
public static int expandActivityOverflowButtonDrawable = 0x7f01001e;
public static int gapBetweenBars = 0x7f01009a;
public static int goIcon = 0x7f0100ae;
public static int height = 0x7f010001;
public static int hideOnContentScroll = 0x7f010015;
public static int homeAsUpIndicator = 0x7f010054;
public static int homeLayout = 0x7f010010;
public static int icon = 0x7f010009;
public static int iconifiedByDefault = 0x7f0100aa;
public static int imageButtonStyle = 0x7f010064;
public static int indeterminateProgressStyle = 0x7f010012;
public static int initialActivityCount = 0x7f01001d;
public static int isLightTheme = 0x7f010002;
public static int itemPadding = 0x7f010014;
public static int layout = 0x7f0100a9;
public static int listChoiceBackgroundIndicator = 0x7f010075;
public static int listDividerAlertDialog = 0x7f010050;
public static int listItemLayout = 0x7f010023;
public static int listLayout = 0x7f010020;
public static int listPopupWindowStyle = 0x7f01006f;
public static int listPreferredItemHeight = 0x7f010069;
public static int listPreferredItemHeightLarge = 0x7f01006b;
public static int listPreferredItemHeightSmall = 0x7f01006a;
public static int listPreferredItemPaddingLeft = 0x7f01006c;
public static int listPreferredItemPaddingRight = 0x7f01006d;
public static int logo = 0x7f01000a;
public static int logoDescription = 0x7f0100c9;
public static int maxButtonHeight = 0x7f0100c4;
public static int measureWithLargestChild = 0x7f01009f;
public static int multiChoiceItemLayout = 0x7f010021;
public static int navigationContentDescription = 0x7f0100c8;
public static int navigationIcon = 0x7f0100c7;
public static int navigationMode = 0x7f010004;
public static int overlapAnchor = 0x7f0100a7;
public static int paddingEnd = 0x7f0100cd;
public static int paddingStart = 0x7f0100cc;
public static int panelBackground = 0x7f010072;
public static int panelMenuListTheme = 0x7f010074;
public static int panelMenuListWidth = 0x7f010073;
public static int popupMenuStyle = 0x7f010060;
public static int popupTheme = 0x7f01001b;
public static int popupWindowStyle = 0x7f010061;
public static int preserveIconSpacing = 0x7f0100a6;
public static int progressBarPadding = 0x7f010013;
public static int progressBarStyle = 0x7f010011;
public static int queryBackground = 0x7f0100b4;
public static int queryHint = 0x7f0100ab;
public static int radioButtonStyle = 0x7f01008d;
public static int ratingBarStyle = 0x7f01008e;
public static int ratingBarStyleIndicator = 0x7f01008f;
public static int ratingBarStyleSmall = 0x7f010090;
public static int searchHintIcon = 0x7f0100b0;
public static int searchIcon = 0x7f0100af;
public static int searchViewStyle = 0x7f010068;
public static int seekBarStyle = 0x7f010091;
public static int selectableItemBackground = 0x7f010058;
public static int selectableItemBackgroundBorderless = 0x7f010059;
public static int showAsAction = 0x7f0100a2;
public static int showDividers = 0x7f0100a0;
public static int showText = 0x7f0100bc;
public static int singleChoiceItemLayout = 0x7f010022;
public static int spinBars = 0x7f010098;
public static int spinnerDropDownItemStyle = 0x7f010053;
public static int spinnerStyle = 0x7f010092;
public static int splitTrack = 0x7f0100bb;
public static int srcCompat = 0x7f010024;
public static int state_above_anchor = 0x7f0100a8;
public static int submitBackground = 0x7f0100b5;
public static int subtitle = 0x7f010006;
public static int subtitleTextAppearance = 0x7f0100be;
public static int subtitleTextColor = 0x7f0100cb;
public static int subtitleTextStyle = 0x7f010008;
public static int suggestionRowLayout = 0x7f0100b3;
public static int switchMinWidth = 0x7f0100b9;
public static int switchPadding = 0x7f0100ba;
public static int switchStyle = 0x7f010093;
public static int switchTextAppearance = 0x7f0100b8;
public static int textAllCaps = 0x7f010025;
public static int textAppearanceLargePopupMenu = 0x7f01004c;
public static int textAppearanceListItem = 0x7f010070;
public static int textAppearanceListItemSmall = 0x7f010071;
public static int textAppearanceSearchResultSubtitle = 0x7f010066;
public static int textAppearanceSearchResultTitle = 0x7f010065;
public static int textAppearanceSmallPopupMenu = 0x7f01004d;
public static int textColorAlertDialogListItem = 0x7f010083;
public static int textColorSearchUrl = 0x7f010067;
public static int theme = 0x7f0100ce;
public static int thickness = 0x7f01009e;
public static int thumbTextPadding = 0x7f0100b7;
public static int title = 0x7f010003;
public static int titleMarginBottom = 0x7f0100c3;
public static int titleMarginEnd = 0x7f0100c1;
public static int titleMarginStart = 0x7f0100c0;
public static int titleMarginTop = 0x7f0100c2;
public static int titleMargins = 0x7f0100bf;
public static int titleTextAppearance = 0x7f0100bd;
public static int titleTextColor = 0x7f0100ca;
public static int titleTextStyle = 0x7f010007;
public static int toolbarNavigationButtonStyle = 0x7f01005f;
public static int toolbarStyle = 0x7f01005e;
public static int track = 0x7f0100b6;
public static int voiceIcon = 0x7f0100b1;
public static int windowActionBar = 0x7f010026;
public static int windowActionBarOverlay = 0x7f010028;
public static int windowActionModeOverlay = 0x7f010029;
public static int windowFixedHeightMajor = 0x7f01002d;
public static int windowFixedHeightMinor = 0x7f01002b;
public static int windowFixedWidthMajor = 0x7f01002a;
public static int windowFixedWidthMinor = 0x7f01002c;
public static int windowMinWidthMajor = 0x7f01002e;
public static int windowMinWidthMinor = 0x7f01002f;
public static int windowNoTitle = 0x7f010027;
}
public static final class bool {
public static int abc_action_bar_embed_tabs = 0x7f060003;
public static int abc_action_bar_embed_tabs_pre_jb = 0x7f060001;
public static int abc_action_bar_expanded_action_views_exclusive = 0x7f060004;
public static int abc_allow_stacked_button_bar = 0x7f060000;
public static int abc_config_actionMenuItemAllCaps = 0x7f060005;
public static int abc_config_allowActionMenuItemTextWithIcon = 0x7f060002;
public static int abc_config_closeDialogWhenTouchOutside = 0x7f060006;
public static int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f060007;
}
public static final class color {
public static int abc_background_cache_hint_selector_material_dark = 0x7f0a004c;
public static int abc_background_cache_hint_selector_material_light = 0x7f0a004d;
public static int abc_color_highlight_material = 0x7f0a004e;
public static int abc_input_method_navigation_guard = 0x7f0a0000;
public static int abc_primary_text_disable_only_material_dark = 0x7f0a004f;
public static int abc_primary_text_disable_only_material_light = 0x7f0a0050;
public static int abc_primary_text_material_dark = 0x7f0a0051;
public static int abc_primary_text_material_light = 0x7f0a0052;
public static int abc_search_url_text = 0x7f0a0053;
public static int abc_search_url_text_normal = 0x7f0a0001;
public static int abc_search_url_text_pressed = 0x7f0a0002;
public static int abc_search_url_text_selected = 0x7f0a0003;
public static int abc_secondary_text_material_dark = 0x7f0a0054;
public static int abc_secondary_text_material_light = 0x7f0a0055;
public static int accent_material_dark = 0x7f0a0004;
public static int accent_material_light = 0x7f0a0005;
public static int background_floating_material_dark = 0x7f0a0006;
public static int background_floating_material_light = 0x7f0a0007;
public static int background_material_dark = 0x7f0a0008;
public static int background_material_light = 0x7f0a0009;
public static int bright_foreground_disabled_material_dark = 0x7f0a000a;
public static int bright_foreground_disabled_material_light = 0x7f0a000b;
public static int bright_foreground_inverse_material_dark = 0x7f0a000c;
public static int bright_foreground_inverse_material_light = 0x7f0a000d;
public static int bright_foreground_material_dark = 0x7f0a000e;
public static int bright_foreground_material_light = 0x7f0a000f;
public static int button_material_dark = 0x7f0a0010;
public static int button_material_light = 0x7f0a0011;
public static int color_focused = 0x7f0a0012;
public static int color_gray = 0x7f0a0013;
public static int color_gray_dark = 0x7f0a0014;
public static int color_gray_light = 0x7f0a0015;
public static int color_gray_medial = 0x7f0a0016;
public static int color_green = 0x7f0a0017;
public static int color_overlay_black = 0x7f0a0018;
public static int color_overlay_white = 0x7f0a0019;
public static int color_pink = 0x7f0a001a;
public static int color_red = 0x7f0a001b;
public static int color_text_black = 0x7f0a001c;
public static int color_text_gray = 0x7f0a001d;
public static int color_text_white = 0x7f0a001e;
public static int color_transparent = 0x7f0a001f;
public static int color_white = 0x7f0a0020;
public static int color_window_gray = 0x7f0a0021;
public static int color_window_red = 0x7f0a0022;
public static int color_window_white = 0x7f0a0023;
public static int dim_foreground_disabled_material_dark = 0x7f0a0024;
public static int dim_foreground_disabled_material_light = 0x7f0a0025;
public static int dim_foreground_material_dark = 0x7f0a0026;
public static int dim_foreground_material_light = 0x7f0a0027;
public static int foreground_material_dark = 0x7f0a0028;
public static int foreground_material_light = 0x7f0a0029;
public static int highlighted_text_material_dark = 0x7f0a002a;
public static int highlighted_text_material_light = 0x7f0a002b;
public static int hint_foreground_material_dark = 0x7f0a002c;
public static int hint_foreground_material_light = 0x7f0a002d;
public static int material_blue_grey_800 = 0x7f0a002e;
public static int material_blue_grey_900 = 0x7f0a002f;
public static int material_blue_grey_950 = 0x7f0a0030;
public static int material_deep_teal_200 = 0x7f0a0031;
public static int material_deep_teal_500 = 0x7f0a0032;
public static int material_grey_100 = 0x7f0a0033;
public static int material_grey_300 = 0x7f0a0034;
public static int material_grey_50 = 0x7f0a0035;
public static int material_grey_600 = 0x7f0a0036;
public static int material_grey_800 = 0x7f0a0037;
public static int material_grey_850 = 0x7f0a0038;
public static int material_grey_900 = 0x7f0a0039;
public static int primary_dark_material_dark = 0x7f0a003a;
public static int primary_dark_material_light = 0x7f0a003b;
public static int primary_material_dark = 0x7f0a003c;
public static int primary_material_light = 0x7f0a003d;
public static int primary_text_default_material_dark = 0x7f0a003e;
public static int primary_text_default_material_light = 0x7f0a003f;
public static int primary_text_disabled_material_dark = 0x7f0a0040;
public static int primary_text_disabled_material_light = 0x7f0a0041;
public static int ripple_material_dark = 0x7f0a0042;
public static int ripple_material_light = 0x7f0a0043;
public static int secondary_text_default_material_dark = 0x7f0a0044;
public static int secondary_text_default_material_light = 0x7f0a0045;
public static int secondary_text_disabled_material_dark = 0x7f0a0046;
public static int secondary_text_disabled_material_light = 0x7f0a0047;
public static int switch_thumb_disabled_material_dark = 0x7f0a0048;
public static int switch_thumb_disabled_material_light = 0x7f0a0049;
public static int switch_thumb_material_dark = 0x7f0a0056;
public static int switch_thumb_material_light = 0x7f0a0057;
public static int switch_thumb_normal_material_dark = 0x7f0a004a;
public static int switch_thumb_normal_material_light = 0x7f0a004b;
}
public static final class dimen {
public static int abc_action_bar_content_inset_material = 0x7f07000d;
public static int abc_action_bar_default_height_material = 0x7f070001;
public static int abc_action_bar_default_padding_end_material = 0x7f07000e;
public static int abc_action_bar_default_padding_start_material = 0x7f07000f;
public static int abc_action_bar_icon_vertical_padding_material = 0x7f070011;
public static int abc_action_bar_overflow_padding_end_material = 0x7f070012;
public static int abc_action_bar_overflow_padding_start_material = 0x7f070013;
public static int abc_action_bar_progress_bar_size = 0x7f070002;
public static int abc_action_bar_stacked_max_height = 0x7f070014;
public static int abc_action_bar_stacked_tab_max_width = 0x7f070015;
public static int abc_action_bar_subtitle_bottom_margin_material = 0x7f070016;
public static int abc_action_bar_subtitle_top_margin_material = 0x7f070017;
public static int abc_action_button_min_height_material = 0x7f070018;
public static int abc_action_button_min_width_material = 0x7f070019;
public static int abc_action_button_min_width_overflow_material = 0x7f07001a;
public static int abc_alert_dialog_button_bar_height = 0x7f070000;
public static int abc_button_inset_horizontal_material = 0x7f07001b;
public static int abc_button_inset_vertical_material = 0x7f07001c;
public static int abc_button_padding_horizontal_material = 0x7f07001d;
public static int abc_button_padding_vertical_material = 0x7f07001e;
public static int abc_config_prefDialogWidth = 0x7f070005;
public static int abc_control_corner_material = 0x7f07001f;
public static int abc_control_inset_material = 0x7f070020;
public static int abc_control_padding_material = 0x7f070021;
public static int abc_dialog_fixed_height_major = 0x7f070006;
public static int abc_dialog_fixed_height_minor = 0x7f070007;
public static int abc_dialog_fixed_width_major = 0x7f070008;
public static int abc_dialog_fixed_width_minor = 0x7f070009;
public static int abc_dialog_list_padding_vertical_material = 0x7f070022;
public static int abc_dialog_min_width_major = 0x7f07000a;
public static int abc_dialog_min_width_minor = 0x7f07000b;
public static int abc_dialog_padding_material = 0x7f070023;
public static int abc_dialog_padding_top_material = 0x7f070024;
public static int abc_disabled_alpha_material_dark = 0x7f070025;
public static int abc_disabled_alpha_material_light = 0x7f070026;
public static int abc_dropdownitem_icon_width = 0x7f070027;
public static int abc_dropdownitem_text_padding_left = 0x7f070028;
public static int abc_dropdownitem_text_padding_right = 0x7f070029;
public static int abc_edit_text_inset_bottom_material = 0x7f07002a;
public static int abc_edit_text_inset_horizontal_material = 0x7f07002b;
public static int abc_edit_text_inset_top_material = 0x7f07002c;
public static int abc_floating_window_z = 0x7f07002d;
public static int abc_list_item_padding_horizontal_material = 0x7f07002e;
public static int abc_panel_menu_list_width = 0x7f07002f;
public static int abc_search_view_preferred_width = 0x7f070030;
public static int abc_search_view_text_min_width = 0x7f07000c;
public static int abc_seekbar_track_background_height_material = 0x7f070031;
public static int abc_seekbar_track_progress_height_material = 0x7f070032;
public static int abc_select_dialog_padding_start_material = 0x7f070033;
public static int abc_switch_padding = 0x7f070010;
public static int abc_text_size_body_1_material = 0x7f070034;
public static int abc_text_size_body_2_material = 0x7f070035;
public static int abc_text_size_button_material = 0x7f070036;
public static int abc_text_size_caption_material = 0x7f070037;
public static int abc_text_size_display_1_material = 0x7f070038;
public static int abc_text_size_display_2_material = 0x7f070039;
public static int abc_text_size_display_3_material = 0x7f07003a;
public static int abc_text_size_display_4_material = 0x7f07003b;
public static int abc_text_size_headline_material = 0x7f07003c;
public static int abc_text_size_large_material = 0x7f07003d;
public static int abc_text_size_medium_material = 0x7f07003e;
public static int abc_text_size_menu_material = 0x7f07003f;
public static int abc_text_size_small_material = 0x7f070040;
public static int abc_text_size_subhead_material = 0x7f070041;
public static int abc_text_size_subtitle_material_toolbar = 0x7f070003;
public static int abc_text_size_title_material = 0x7f070042;
public static int abc_text_size_title_material_toolbar = 0x7f070004;
public static int button_dialog_corner_radius = 0x7f070043;
public static int button_dialog_padding = 0x7f070044;
public static int disabled_alpha_material_dark = 0x7f070045;
public static int disabled_alpha_material_light = 0x7f070046;
public static int edittext_dialog_corner_radius = 0x7f070047;
public static int edittext_dialog_padding = 0x7f070048;
public static int edittext_dialog_padding_separator = 0x7f070049;
public static int edittext_dialog_stroke_width = 0x7f07004a;
public static int highlight_alpha_material_colored = 0x7f07004b;
public static int highlight_alpha_material_dark = 0x7f07004c;
public static int highlight_alpha_material_light = 0x7f07004d;
public static int notification_large_icon_height = 0x7f07004e;
public static int notification_large_icon_width = 0x7f07004f;
public static int notification_subtext_size = 0x7f070050;
public static int widget_edittext_padding = 0x7f070051;
public static int widget_height = 0x7f070052;
public static int widget_width_long = 0x7f070053;
public static int widget_width_medial = 0x7f070054;
public static int widget_width_small = 0x7f070055;
public static int widget_width_small_big = 0x7f070056;
public static int window_dialog_pading = 0x7f070057;
public static int window_pading = 0x7f070058;
}
public static final class drawable {
public static int abc_ab_share_pack_mtrl_alpha = 0x7f020000;
public static int abc_action_bar_item_background_material = 0x7f020001;
public static int abc_btn_borderless_material = 0x7f020002;
public static int abc_btn_check_material = 0x7f020003;
public static int abc_btn_check_to_on_mtrl_000 = 0x7f020004;
public static int abc_btn_check_to_on_mtrl_015 = 0x7f020005;
public static int abc_btn_colored_material = 0x7f020006;
public static int abc_btn_default_mtrl_shape = 0x7f020007;
public static int abc_btn_radio_material = 0x7f020008;
public static int abc_btn_radio_to_on_mtrl_000 = 0x7f020009;
public static int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a;
public static int abc_btn_rating_star_off_mtrl_alpha = 0x7f02000b;
public static int abc_btn_rating_star_on_mtrl_alpha = 0x7f02000c;
public static int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000d;
public static int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000e;
public static int abc_cab_background_internal_bg = 0x7f02000f;
public static int abc_cab_background_top_material = 0x7f020010;
public static int abc_cab_background_top_mtrl_alpha = 0x7f020011;
public static int abc_control_background_material = 0x7f020012;
public static int abc_dialog_material_background_dark = 0x7f020013;
public static int abc_dialog_material_background_light = 0x7f020014;
public static int abc_edit_text_material = 0x7f020015;
public static int abc_ic_ab_back_mtrl_am_alpha = 0x7f020016;
public static int abc_ic_clear_mtrl_alpha = 0x7f020017;
public static int abc_ic_commit_search_api_mtrl_alpha = 0x7f020018;
public static int abc_ic_go_search_api_mtrl_alpha = 0x7f020019;
public static int abc_ic_menu_copy_mtrl_am_alpha = 0x7f02001a;
public static int abc_ic_menu_cut_mtrl_alpha = 0x7f02001b;
public static int abc_ic_menu_moreoverflow_mtrl_alpha = 0x7f02001c;
public static int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001d;
public static int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001e;
public static int abc_ic_menu_share_mtrl_alpha = 0x7f02001f;
public static int abc_ic_search_api_mtrl_alpha = 0x7f020020;
public static int abc_ic_star_black_16dp = 0x7f020021;
public static int abc_ic_star_black_36dp = 0x7f020022;
public static int abc_ic_star_half_black_16dp = 0x7f020023;
public static int abc_ic_star_half_black_36dp = 0x7f020024;
public static int abc_ic_voice_search_api_mtrl_alpha = 0x7f020025;
public static int abc_item_background_holo_dark = 0x7f020026;
public static int abc_item_background_holo_light = 0x7f020027;
public static int abc_list_divider_mtrl_alpha = 0x7f020028;
public static int abc_list_focused_holo = 0x7f020029;
public static int abc_list_longpressed_holo = 0x7f02002a;
public static int abc_list_pressed_holo_dark = 0x7f02002b;
public static int abc_list_pressed_holo_light = 0x7f02002c;
public static int abc_list_selector_background_transition_holo_dark = 0x7f02002d;
public static int abc_list_selector_background_transition_holo_light = 0x7f02002e;
public static int abc_list_selector_disabled_holo_dark = 0x7f02002f;
public static int abc_list_selector_disabled_holo_light = 0x7f020030;
public static int abc_list_selector_holo_dark = 0x7f020031;
public static int abc_list_selector_holo_light = 0x7f020032;
public static int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033;
public static int abc_popup_background_mtrl_mult = 0x7f020034;
public static int abc_ratingbar_full_material = 0x7f020035;
public static int abc_ratingbar_indicator_material = 0x7f020036;
public static int abc_ratingbar_small_material = 0x7f020037;
public static int abc_scrubber_control_off_mtrl_alpha = 0x7f020038;
public static int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020039;
public static int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f02003a;
public static int abc_scrubber_primary_mtrl_alpha = 0x7f02003b;
public static int abc_scrubber_track_mtrl_alpha = 0x7f02003c;
public static int abc_seekbar_thumb_material = 0x7f02003d;
public static int abc_seekbar_track_material = 0x7f02003e;
public static int abc_spinner_mtrl_am_alpha = 0x7f02003f;
public static int abc_spinner_textfield_background_material = 0x7f020040;
public static int abc_switch_thumb_material = 0x7f020041;
public static int abc_switch_track_mtrl_alpha = 0x7f020042;
public static int abc_tab_indicator_material = 0x7f020043;
public static int abc_tab_indicator_mtrl_alpha = 0x7f020044;
public static int abc_text_cursor_material = 0x7f020045;
public static int abc_textfield_activated_mtrl_alpha = 0x7f020046;
public static int abc_textfield_default_mtrl_alpha = 0x7f020047;
public static int abc_textfield_search_activated_mtrl_alpha = 0x7f020048;
public static int abc_textfield_search_default_mtrl_alpha = 0x7f020049;
public static int abc_textfield_search_material = 0x7f02004a;
public static int drawable_button_dialog = 0x7f02004b;
public static int drawable_button_dialog_alter = 0x7f02004c;
public static int drawable_button_dialog_alter_default = 0x7f02004d;
public static int drawable_button_dialog_alter_pressed = 0x7f02004e;
public static int drawable_button_dialog_default = 0x7f02004f;
public static int drawable_button_dialog_pressed = 0x7f020050;
public static int drawable_edittext = 0x7f020051;
public static int drawable_edittext_default = 0x7f020052;
public static int ic_launcher = 0x7f020053;
public static int notification_template_icon_bg = 0x7f020056;
}
public static final class id {
public static int TextView01 = 0x7f0b0052;
public static int action0 = 0x7f0b0074;
public static int action_bar = 0x7f0b0041;
public static int action_bar_activity_content = 0x7f0b0000;
public static int action_bar_container = 0x7f0b0040;
public static int action_bar_root = 0x7f0b003c;
public static int action_bar_spinner = 0x7f0b0001;
public static int action_bar_subtitle = 0x7f0b0022;
public static int action_bar_title = 0x7f0b0021;
public static int action_context_bar = 0x7f0b0042;
public static int action_divider = 0x7f0b0078;
public static int action_menu_divider = 0x7f0b0002;
public static int action_menu_presenter = 0x7f0b0003;
public static int action_mode_bar = 0x7f0b003e;
public static int action_mode_bar_stub = 0x7f0b003d;
public static int action_mode_close_button = 0x7f0b0023;
public static int activity_chooser_view_content = 0x7f0b0024;
public static int alertTitle = 0x7f0b0030;
public static int always = 0x7f0b001c;
public static int beginning = 0x7f0b0019;
public static int buttonPanel = 0x7f0b002b;
public static int cancel_action = 0x7f0b0075;
public static int checkbox = 0x7f0b0039;
public static int chronometer = 0x7f0b007b;
public static int collapseActionView = 0x7f0b001d;
public static int contentPanel = 0x7f0b0031;
public static int custom = 0x7f0b0037;
public static int customPanel = 0x7f0b0036;
public static int decor_content_parent = 0x7f0b003f;
public static int default_activity_button = 0x7f0b0027;
public static int disableHome = 0x7f0b000c;
public static int edit_query = 0x7f0b0043;
public static int end = 0x7f0b001a;
public static int end_padder = 0x7f0b0080;
public static int expand_activities_button = 0x7f0b0025;
public static int expanded_menu = 0x7f0b0038;
public static int fragment_connection_button_cancel = 0x7f0b0064;
public static int fragment_connection_button_confirm = 0x7f0b0066;
public static int fragment_connection_edittext_code = 0x7f0b0065;
public static int fragment_connection_layout_dimming = 0x7f0b0062;
public static int fragment_connection_server_button_retry = 0x7f0b0068;
public static int fragment_connection_server_layout_dimming = 0x7f0b0067;
public static int fragment_connection_server_textview_message = 0x7f0b0063;
public static int home = 0x7f0b0004;
public static int homeAsUp = 0x7f0b000d;
public static int icon = 0x7f0b0029;
public static int ifRoom = 0x7f0b001e;
public static int image = 0x7f0b0026;
public static int info = 0x7f0b007f;
public static int line1 = 0x7f0b0079;
public static int line3 = 0x7f0b007d;
public static int listMode = 0x7f0b0009;
public static int list_item = 0x7f0b0028;
public static int main_container = 0x7f0b0051;
public static int media_actions = 0x7f0b0077;
public static int middle = 0x7f0b001b;
public static int multiply = 0x7f0b0014;
public static int never = 0x7f0b001f;
public static int none = 0x7f0b000e;
public static int normal = 0x7f0b000a;
public static int parentPanel = 0x7f0b002d;
public static int progress_circular = 0x7f0b0005;
public static int progress_horizontal = 0x7f0b0006;
public static int radio = 0x7f0b003b;
public static int screen = 0x7f0b0015;
public static int scrollIndicatorDown = 0x7f0b0035;
public static int scrollIndicatorUp = 0x7f0b0032;
public static int scrollView = 0x7f0b0033;
public static int search_badge = 0x7f0b0045;
public static int search_bar = 0x7f0b0044;
public static int search_button = 0x7f0b0046;
public static int search_close_btn = 0x7f0b004b;
public static int search_edit_frame = 0x7f0b0047;
public static int search_go_btn = 0x7f0b004d;
public static int search_mag_icon = 0x7f0b0048;
public static int search_plate = 0x7f0b0049;
public static int search_src_text = 0x7f0b004a;
public static int search_voice_btn = 0x7f0b004e;
public static int select_dialog_listview = 0x7f0b004f;
public static int shortcut = 0x7f0b003a;
public static int showCustom = 0x7f0b000f;
public static int showHome = 0x7f0b0010;
public static int showTitle = 0x7f0b0011;
public static int spacer = 0x7f0b002c;
public static int split_action_bar = 0x7f0b0007;
public static int src_atop = 0x7f0b0016;
public static int src_in = 0x7f0b0017;
public static int src_over = 0x7f0b0018;
public static int status_bar_latest_event_content = 0x7f0b0076;
public static int submit_area = 0x7f0b004c;
public static int tabMode = 0x7f0b000b;
public static int text = 0x7f0b007e;
public static int text2 = 0x7f0b007c;
public static int textSpacerNoButtons = 0x7f0b0034;
public static int textView1 = 0x7f0b0054;
public static int time = 0x7f0b007a;
public static int title = 0x7f0b002a;
public static int title_template = 0x7f0b002f;
public static int topPanel = 0x7f0b002e;
public static int top_container = 0x7f0b0050;
public static int up = 0x7f0b0008;
public static int useLogo = 0x7f0b0012;
public static int withText = 0x7f0b0020;
public static int wrap_content = 0x7f0b0013;
}
public static final class integer {
public static int abc_config_activityDefaultDur = 0x7f090001;
public static int abc_config_activityShortDur = 0x7f090002;
public static int abc_max_action_buttons = 0x7f090000;
public static int cancel_button_image_alpha = 0x7f090003;
public static int status_bar_notification_info_maxnum = 0x7f090004;
}
public static final class layout {
public static int abc_action_bar_title_item = 0x7f030000;
public static int abc_action_bar_up_container = 0x7f030001;
public static int abc_action_bar_view_list_nav_layout = 0x7f030002;
public static int abc_action_menu_item_layout = 0x7f030003;
public static int abc_action_menu_layout = 0x7f030004;
public static int abc_action_mode_bar = 0x7f030005;
public static int abc_action_mode_close_item_material = 0x7f030006;
public static int abc_activity_chooser_view = 0x7f030007;
public static int abc_activity_chooser_view_list_item = 0x7f030008;
public static int abc_alert_dialog_button_bar_material = 0x7f030009;
public static int abc_alert_dialog_material = 0x7f03000a;
public static int abc_dialog_title_material = 0x7f03000b;
public static int abc_expanded_menu_layout = 0x7f03000c;
public static int abc_list_menu_item_checkbox = 0x7f03000d;
public static int abc_list_menu_item_icon = 0x7f03000e;
public static int abc_list_menu_item_layout = 0x7f03000f;
public static int abc_list_menu_item_radio = 0x7f030010;
public static int abc_popup_menu_item_layout = 0x7f030011;
public static int abc_screen_content_include = 0x7f030012;
public static int abc_screen_simple = 0x7f030013;
public static int abc_screen_simple_overlay_action_mode = 0x7f030014;
public static int abc_screen_toolbar = 0x7f030015;
public static int abc_search_dropdown_item_icons_2line = 0x7f030016;
public static int abc_search_view = 0x7f030017;
public static int abc_select_dialog_material = 0x7f030018;
public static int activity_main = 0x7f03001a;
public static int fragment_demo = 0x7f03001c;
public static int fragment_no_connection = 0x7f03001e;
public static int fragment_no_server_responding = 0x7f03001f;
public static int notification_media_action = 0x7f030023;
public static int notification_media_cancel_action = 0x7f030024;
public static int notification_template_big_media = 0x7f030025;
public static int notification_template_big_media_narrow = 0x7f030026;
public static int notification_template_lines = 0x7f030027;
public static int notification_template_media = 0x7f030028;
public static int notification_template_part_chronometer = 0x7f030029;
public static int notification_template_part_time = 0x7f03002a;
public static int select_dialog_item_material = 0x7f03002b;
public static int select_dialog_multichoice_material = 0x7f03002c;
public static int select_dialog_singlechoice_material = 0x7f03002d;
public static int support_simple_spinner_dropdown_item = 0x7f03002e;
}
public static final class string {
public static int abc_action_bar_home_description = 0x7f050000;
public static int abc_action_bar_home_description_format = 0x7f050001;
public static int abc_action_bar_home_subtitle_description_format = 0x7f050002;
public static int abc_action_bar_up_description = 0x7f050003;
public static int abc_action_menu_overflow_description = 0x7f050004;
public static int abc_action_mode_done = 0x7f050005;
public static int abc_activity_chooser_view_see_all = 0x7f050006;
public static int abc_activitychooserview_choose_application = 0x7f050007;
public static int abc_capital_off = 0x7f050008;
public static int abc_capital_on = 0x7f050009;
public static int abc_search_hint = 0x7f05000a;
public static int abc_searchview_description_clear = 0x7f05000b;
public static int abc_searchview_description_query = 0x7f05000c;
public static int abc_searchview_description_search = 0x7f05000d;
public static int abc_searchview_description_submit = 0x7f05000e;
public static int abc_searchview_description_voice = 0x7f05000f;
public static int abc_shareactionprovider_share_with = 0x7f050010;
public static int abc_shareactionprovider_share_with_application = 0x7f050011;
public static int abc_toolbar_collapse_description = 0x7f050012;
public static int app_name = 0x7f050014;
public static int connection_button_cancel = 0x7f050015;
public static int connection_button_confirm = 0x7f050016;
public static int connection_server_button_retry = 0x7f050017;
public static int connection_server_textview_message = 0x7f050018;
public static int connection_textview_message = 0x7f050019;
public static int logo = 0x7f050020;
public static int status_bar_notification_info_overflow = 0x7f050013;
public static int subs = 0x7f05002c;
}
public static final class style {
public static int AlertDialog_AppCompat = 0x7f080086;
public static int AlertDialog_AppCompat_Light = 0x7f080087;
public static int Animation_AppCompat_Dialog = 0x7f080088;
public static int Animation_AppCompat_DropDownUp = 0x7f080089;
public static int AppBaseTheme = 0x7f08008a;
public static int AppTheme = 0x7f08008b;
public static int Base_AlertDialog_AppCompat = 0x7f08008c;
public static int Base_AlertDialog_AppCompat_Light = 0x7f08008d;
public static int Base_Animation_AppCompat_Dialog = 0x7f08008e;
public static int Base_Animation_AppCompat_DropDownUp = 0x7f08008f;
public static int Base_DialogWindowTitleBackground_AppCompat = 0x7f080091;
public static int Base_DialogWindowTitle_AppCompat = 0x7f080090;
public static int Base_TextAppearance_AppCompat = 0x7f080036;
public static int Base_TextAppearance_AppCompat_Body1 = 0x7f080037;
public static int Base_TextAppearance_AppCompat_Body2 = 0x7f080038;
public static int Base_TextAppearance_AppCompat_Button = 0x7f080020;
public static int Base_TextAppearance_AppCompat_Caption = 0x7f080039;
public static int Base_TextAppearance_AppCompat_Display1 = 0x7f08003a;
public static int Base_TextAppearance_AppCompat_Display2 = 0x7f08003b;
public static int Base_TextAppearance_AppCompat_Display3 = 0x7f08003c;
public static int Base_TextAppearance_AppCompat_Display4 = 0x7f08003d;
public static int Base_TextAppearance_AppCompat_Headline = 0x7f08003e;
public static int Base_TextAppearance_AppCompat_Inverse = 0x7f08000b;
public static int Base_TextAppearance_AppCompat_Large = 0x7f08003f;
public static int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f08000c;
public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f080040;
public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f080041;
public static int Base_TextAppearance_AppCompat_Medium = 0x7f080042;
public static int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f08000d;
public static int Base_TextAppearance_AppCompat_Menu = 0x7f080043;
public static int Base_TextAppearance_AppCompat_SearchResult = 0x7f080092;
public static int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f080044;
public static int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f080045;
public static int Base_TextAppearance_AppCompat_Small = 0x7f080046;
public static int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f08000e;
public static int Base_TextAppearance_AppCompat_Subhead = 0x7f080047;
public static int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f08000f;
public static int Base_TextAppearance_AppCompat_Title = 0x7f080048;
public static int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f080010;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f08007f;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f080049;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f08004a;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f08004b;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f08004c;
public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f08004d;
public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f08004e;
public static int Base_TextAppearance_AppCompat_Widget_Button = 0x7f08004f;
public static int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f080080;
public static int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f080093;
public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f080050;
public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f080051;
public static int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f080052;
public static int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f080053;
public static int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f080094;
public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f080054;
public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f080055;
public static int Base_ThemeOverlay_AppCompat = 0x7f08009d;
public static int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f08009e;
public static int Base_ThemeOverlay_AppCompat_Dark = 0x7f08009f;
public static int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0800a0;
public static int Base_ThemeOverlay_AppCompat_Light = 0x7f0800a1;
public static int Base_Theme_AppCompat = 0x7f080056;
public static int Base_Theme_AppCompat_CompactMenu = 0x7f080095;
public static int Base_Theme_AppCompat_Dialog = 0x7f080011;
public static int Base_Theme_AppCompat_DialogWhenLarge = 0x7f080001;
public static int Base_Theme_AppCompat_Dialog_Alert = 0x7f080096;
public static int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f080097;
public static int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f080098;
public static int Base_Theme_AppCompat_Light = 0x7f080057;
public static int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f080099;
public static int Base_Theme_AppCompat_Light_Dialog = 0x7f080012;
public static int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f080002;
public static int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f08009a;
public static int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f08009b;
public static int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f08009c;
public static int Base_V11_Theme_AppCompat_Dialog = 0x7f080013;
public static int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f080014;
public static int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f08001c;
public static int Base_V12_Widget_AppCompat_EditText = 0x7f08001d;
public static int Base_V21_Theme_AppCompat = 0x7f080058;
public static int Base_V21_Theme_AppCompat_Dialog = 0x7f080059;
public static int Base_V21_Theme_AppCompat_Light = 0x7f08005a;
public static int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f08005b;
public static int Base_V22_Theme_AppCompat = 0x7f08007d;
public static int Base_V22_Theme_AppCompat_Light = 0x7f08007e;
public static int Base_V23_Theme_AppCompat = 0x7f080081;
public static int Base_V23_Theme_AppCompat_Light = 0x7f080082;
public static int Base_V7_Theme_AppCompat = 0x7f0800a2;
public static int Base_V7_Theme_AppCompat_Dialog = 0x7f0800a3;
public static int Base_V7_Theme_AppCompat_Light = 0x7f0800a4;
public static int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0800a5;
public static int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0800a6;
public static int Base_V7_Widget_AppCompat_EditText = 0x7f0800a7;
public static int Base_Widget_AppCompat_ActionBar = 0x7f0800a8;
public static int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0800a9;
public static int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0800aa;
public static int Base_Widget_AppCompat_ActionBar_TabText = 0x7f08005c;
public static int Base_Widget_AppCompat_ActionBar_TabView = 0x7f08005d;
public static int Base_Widget_AppCompat_ActionButton = 0x7f08005e;
public static int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f08005f;
public static int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f080060;
public static int Base_Widget_AppCompat_ActionMode = 0x7f0800ab;
public static int Base_Widget_AppCompat_ActivityChooserView = 0x7f0800ac;
public static int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f08001e;
public static int Base_Widget_AppCompat_Button = 0x7f080061;
public static int Base_Widget_AppCompat_ButtonBar = 0x7f080065;
public static int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0800ae;
public static int Base_Widget_AppCompat_Button_Borderless = 0x7f080062;
public static int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f080063;
public static int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0800ad;
public static int Base_Widget_AppCompat_Button_Colored = 0x7f080083;
public static int Base_Widget_AppCompat_Button_Small = 0x7f080064;
public static int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f080066;
public static int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f080067;
public static int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0800af;
public static int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f080000;
public static int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0800b0;
public static int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f080068;
public static int Base_Widget_AppCompat_EditText = 0x7f08001f;
public static int Base_Widget_AppCompat_ImageButton = 0x7f080069;
public static int Base_Widget_AppCompat_Light_ActionBar = 0x7f0800b1;
public static int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0800b2;
public static int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0800b3;
public static int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f08006a;
public static int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f08006b;
public static int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f08006c;
public static int Base_Widget_AppCompat_Light_PopupMenu = 0x7f08006d;
public static int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f08006e;
public static int Base_Widget_AppCompat_ListPopupWindow = 0x7f08006f;
public static int Base_Widget_AppCompat_ListView = 0x7f080070;
public static int Base_Widget_AppCompat_ListView_DropDown = 0x7f080071;
public static int Base_Widget_AppCompat_ListView_Menu = 0x7f080072;
public static int Base_Widget_AppCompat_PopupMenu = 0x7f080073;
public static int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f080074;
public static int Base_Widget_AppCompat_PopupWindow = 0x7f0800b4;
public static int Base_Widget_AppCompat_ProgressBar = 0x7f080015;
public static int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f080016;
public static int Base_Widget_AppCompat_RatingBar = 0x7f080075;
public static int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f080084;
public static int Base_Widget_AppCompat_RatingBar_Small = 0x7f080085;
public static int Base_Widget_AppCompat_SearchView = 0x7f0800b5;
public static int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0800b6;
public static int Base_Widget_AppCompat_SeekBar = 0x7f080076;
public static int Base_Widget_AppCompat_Spinner = 0x7f080077;
public static int Base_Widget_AppCompat_Spinner_Underlined = 0x7f080003;
public static int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f080078;
public static int Base_Widget_AppCompat_Toolbar = 0x7f0800b7;
public static int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f080079;
public static int Platform_AppCompat = 0x7f080017;
public static int Platform_AppCompat_Light = 0x7f080018;
public static int Platform_ThemeOverlay_AppCompat = 0x7f08007a;
public static int Platform_ThemeOverlay_AppCompat_Dark = 0x7f08007b;
public static int Platform_ThemeOverlay_AppCompat_Light = 0x7f08007c;
public static int Platform_V11_AppCompat = 0x7f080019;
public static int Platform_V11_AppCompat_Light = 0x7f08001a;
public static int Platform_V14_AppCompat = 0x7f080021;
public static int Platform_V14_AppCompat_Light = 0x7f080022;
public static int Platform_Widget_AppCompat_Spinner = 0x7f08001b;
public static int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f080028;
public static int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f080029;
public static int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f08002a;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f08002b;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f08002c;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f08002d;
public static int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f080033;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f08002e;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f08002f;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f080030;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f080031;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f080032;
public static int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f080034;
public static int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f080035;
public static int TextAppearance_AppCompat = 0x7f0800b8;
public static int TextAppearance_AppCompat_Body1 = 0x7f0800b9;
public static int TextAppearance_AppCompat_Body2 = 0x7f0800ba;
public static int TextAppearance_AppCompat_Button = 0x7f0800bb;
public static int TextAppearance_AppCompat_Caption = 0x7f0800bc;
public static int TextAppearance_AppCompat_Display1 = 0x7f0800bd;
public static int TextAppearance_AppCompat_Display2 = 0x7f0800be;
public static int TextAppearance_AppCompat_Display3 = 0x7f0800bf;
public static int TextAppearance_AppCompat_Display4 = 0x7f0800c0;
public static int TextAppearance_AppCompat_Headline = 0x7f0800c1;
public static int TextAppearance_AppCompat_Inverse = 0x7f0800c2;
public static int TextAppearance_AppCompat_Large = 0x7f0800c3;
public static int TextAppearance_AppCompat_Large_Inverse = 0x7f0800c4;
public static int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0800c5;
public static int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0800c6;
public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0800c7;
public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0800c8;
public static int TextAppearance_AppCompat_Medium = 0x7f0800c9;
public static int TextAppearance_AppCompat_Medium_Inverse = 0x7f0800ca;
public static int TextAppearance_AppCompat_Menu = 0x7f0800cb;
public static int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0800cc;
public static int TextAppearance_AppCompat_SearchResult_Title = 0x7f0800cd;
public static int TextAppearance_AppCompat_Small = 0x7f0800ce;
public static int TextAppearance_AppCompat_Small_Inverse = 0x7f0800cf;
public static int TextAppearance_AppCompat_Subhead = 0x7f0800d0;
public static int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0800d1;
public static int TextAppearance_AppCompat_Title = 0x7f0800d2;
public static int TextAppearance_AppCompat_Title_Inverse = 0x7f0800d3;
public static int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0800d4;
public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0800d5;
public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0800d6;
public static int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0800d7;
public static int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0800d8;
public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0800d9;
public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0800da;
public static int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0800db;
public static int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0800dc;
public static int TextAppearance_AppCompat_Widget_Button = 0x7f0800dd;
public static int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0800de;
public static int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0800df;
public static int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0800e0;
public static int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0800e1;
public static int TextAppearance_AppCompat_Widget_Switch = 0x7f0800e2;
public static int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0800e3;
public static int TextAppearance_StatusBar_EventContent = 0x7f080023;
public static int TextAppearance_StatusBar_EventContent_Info = 0x7f080024;
public static int TextAppearance_StatusBar_EventContent_Line2 = 0x7f080025;
public static int TextAppearance_StatusBar_EventContent_Time = 0x7f080026;
public static int TextAppearance_StatusBar_EventContent_Title = 0x7f080027;
public static int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0800e4;
public static int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0800e5;
public static int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0800e6;
public static int ThemeOverlay_AppCompat = 0x7f0800f5;
public static int ThemeOverlay_AppCompat_ActionBar = 0x7f0800f6;
public static int ThemeOverlay_AppCompat_Dark = 0x7f0800f7;
public static int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0800f8;
public static int ThemeOverlay_AppCompat_Light = 0x7f0800f9;
public static int Theme_AppCompat = 0x7f0800e7;
public static int Theme_AppCompat_CompactMenu = 0x7f0800e8;
public static int Theme_AppCompat_DayNight = 0x7f080004;
public static int Theme_AppCompat_DayNight_DarkActionBar = 0x7f080005;
public static int Theme_AppCompat_DayNight_Dialog = 0x7f080006;
public static int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f080009;
public static int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f080007;
public static int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f080008;
public static int Theme_AppCompat_DayNight_NoActionBar = 0x7f08000a;
public static int Theme_AppCompat_Dialog = 0x7f0800e9;
public static int Theme_AppCompat_DialogWhenLarge = 0x7f0800ec;
public static int Theme_AppCompat_Dialog_Alert = 0x7f0800ea;
public static int Theme_AppCompat_Dialog_MinWidth = 0x7f0800eb;
public static int Theme_AppCompat_Light = 0x7f0800ed;
public static int Theme_AppCompat_Light_DarkActionBar = 0x7f0800ee;
public static int Theme_AppCompat_Light_Dialog = 0x7f0800ef;
public static int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0800f2;
public static int Theme_AppCompat_Light_Dialog_Alert = 0x7f0800f0;
public static int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0800f1;
public static int Theme_AppCompat_Light_NoActionBar = 0x7f0800f3;
public static int Theme_AppCompat_NoActionBar = 0x7f0800f4;
public static int Widget_AppCompat_ActionBar = 0x7f0800fa;
public static int Widget_AppCompat_ActionBar_Solid = 0x7f0800fb;
public static int Widget_AppCompat_ActionBar_TabBar = 0x7f0800fc;
public static int Widget_AppCompat_ActionBar_TabText = 0x7f0800fd;
public static int Widget_AppCompat_ActionBar_TabView = 0x7f0800fe;
public static int Widget_AppCompat_ActionButton = 0x7f0800ff;
public static int Widget_AppCompat_ActionButton_CloseMode = 0x7f080100;
public static int Widget_AppCompat_ActionButton_Overflow = 0x7f080101;
public static int Widget_AppCompat_ActionMode = 0x7f080102;
public static int Widget_AppCompat_ActivityChooserView = 0x7f080103;
public static int Widget_AppCompat_AutoCompleteTextView = 0x7f080104;
public static int Widget_AppCompat_Button = 0x7f080105;
public static int Widget_AppCompat_ButtonBar = 0x7f08010b;
public static int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f08010c;
public static int Widget_AppCompat_Button_Borderless = 0x7f080106;
public static int Widget_AppCompat_Button_Borderless_Colored = 0x7f080107;
public static int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f080108;
public static int Widget_AppCompat_Button_Colored = 0x7f080109;
public static int Widget_AppCompat_Button_Small = 0x7f08010a;
public static int Widget_AppCompat_CompoundButton_CheckBox = 0x7f08010d;
public static int Widget_AppCompat_CompoundButton_RadioButton = 0x7f08010e;
public static int Widget_AppCompat_CompoundButton_Switch = 0x7f08010f;
public static int Widget_AppCompat_DrawerArrowToggle = 0x7f080110;
public static int Widget_AppCompat_DropDownItem_Spinner = 0x7f080111;
public static int Widget_AppCompat_EditText = 0x7f080112;
public static int Widget_AppCompat_ImageButton = 0x7f080113;
public static int Widget_AppCompat_Light_ActionBar = 0x7f080114;
public static int Widget_AppCompat_Light_ActionBar_Solid = 0x7f080115;
public static int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f080116;
public static int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f080117;
public static int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f080118;
public static int Widget_AppCompat_Light_ActionBar_TabText = 0x7f080119;
public static int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f08011a;
public static int Widget_AppCompat_Light_ActionBar_TabView = 0x7f08011b;
public static int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f08011c;
public static int Widget_AppCompat_Light_ActionButton = 0x7f08011d;
public static int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f08011e;
public static int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f08011f;
public static int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f080120;
public static int Widget_AppCompat_Light_ActivityChooserView = 0x7f080121;
public static int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f080122;
public static int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f080123;
public static int Widget_AppCompat_Light_ListPopupWindow = 0x7f080124;
public static int Widget_AppCompat_Light_ListView_DropDown = 0x7f080125;
public static int Widget_AppCompat_Light_PopupMenu = 0x7f080126;
public static int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f080127;
public static int Widget_AppCompat_Light_SearchView = 0x7f080128;
public static int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f080129;
public static int Widget_AppCompat_ListPopupWindow = 0x7f08012a;
public static int Widget_AppCompat_ListView = 0x7f08012b;
public static int Widget_AppCompat_ListView_DropDown = 0x7f08012c;
public static int Widget_AppCompat_ListView_Menu = 0x7f08012d;
public static int Widget_AppCompat_PopupMenu = 0x7f08012e;
public static int Widget_AppCompat_PopupMenu_Overflow = 0x7f08012f;
public static int Widget_AppCompat_PopupWindow = 0x7f080130;
public static int Widget_AppCompat_ProgressBar = 0x7f080131;
public static int Widget_AppCompat_ProgressBar_Horizontal = 0x7f080132;
public static int Widget_AppCompat_RatingBar = 0x7f080133;
public static int Widget_AppCompat_RatingBar_Indicator = 0x7f080134;
public static int Widget_AppCompat_RatingBar_Small = 0x7f080135;
public static int Widget_AppCompat_SearchView = 0x7f080136;
public static int Widget_AppCompat_SearchView_ActionBar = 0x7f080137;
public static int Widget_AppCompat_SeekBar = 0x7f080138;
public static int Widget_AppCompat_Spinner = 0x7f080139;
public static int Widget_AppCompat_Spinner_DropDown = 0x7f08013a;
public static int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f08013b;
public static int Widget_AppCompat_Spinner_Underlined = 0x7f08013c;
public static int Widget_AppCompat_TextView_SpinnerItem = 0x7f08013d;
public static int Widget_AppCompat_Toolbar = 0x7f08013e;
public static int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f08013f;
public static int style_button_dialog = 0x7f080140;
public static int style_button_dialog_alter = 0x7f080141;
public static int style_edittext_dialog = 0x7f080142;
}
public static final class styleable {
public static int[] ActionBar = { 0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f010054 };
public static int[] ActionBarLayout = { 0x010100b3 };
public static int ActionBarLayout_android_layout_gravity = 0;
public static int ActionBar_background = 10;
public static int ActionBar_backgroundSplit = 12;
public static int ActionBar_backgroundStacked = 11;
public static int ActionBar_contentInsetEnd = 21;
public static int ActionBar_contentInsetLeft = 22;
public static int ActionBar_contentInsetRight = 23;
public static int ActionBar_contentInsetStart = 20;
public static int ActionBar_customNavigationLayout = 13;
public static int ActionBar_displayOptions = 3;
public static int ActionBar_divider = 9;
public static int ActionBar_elevation = 24;
public static int ActionBar_height = 0;
public static int ActionBar_hideOnContentScroll = 19;
public static int ActionBar_homeAsUpIndicator = 26;
public static int ActionBar_homeLayout = 14;
public static int ActionBar_icon = 7;
public static int ActionBar_indeterminateProgressStyle = 16;
public static int ActionBar_itemPadding = 18;
public static int ActionBar_logo = 8;
public static int ActionBar_navigationMode = 2;
public static int ActionBar_popupTheme = 25;
public static int ActionBar_progressBarPadding = 17;
public static int ActionBar_progressBarStyle = 15;
public static int ActionBar_subtitle = 4;
public static int ActionBar_subtitleTextStyle = 6;
public static int ActionBar_title = 1;
public static int ActionBar_titleTextStyle = 5;
public static int[] ActionMenuItemView = { 0x0101013f };
public static int ActionMenuItemView_android_minWidth = 0;
public static int[] ActionMenuView = { };
public static int[] ActionMode = { 0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c, 0x7f01000e, 0x7f01001c };
public static int ActionMode_background = 3;
public static int ActionMode_backgroundSplit = 4;
public static int ActionMode_closeItemLayout = 5;
public static int ActionMode_height = 0;
public static int ActionMode_subtitleTextStyle = 2;
public static int ActionMode_titleTextStyle = 1;
public static int[] ActivityChooserView = { 0x7f01001d, 0x7f01001e };
public static int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
public static int ActivityChooserView_initialActivityCount = 0;
public static int[] AlertDialog = { 0x010100f2, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023 };
public static int AlertDialog_android_layout = 0;
public static int AlertDialog_buttonPanelSideLayout = 1;
public static int AlertDialog_listItemLayout = 5;
public static int AlertDialog_listLayout = 2;
public static int AlertDialog_multiChoiceItemLayout = 3;
public static int AlertDialog_singleChoiceItemLayout = 4;
public static int[] AppCompatImageView = { 0x01010119, 0x7f010024 };
public static int AppCompatImageView_android_src = 0;
public static int AppCompatImageView_srcCompat = 1;
public static int[] AppCompatTextView = { 0x01010034, 0x7f010025 };
public static int AppCompatTextView_android_textAppearance = 0;
public static int AppCompatTextView_textAllCaps = 1;
public static int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093 };
public static int AppCompatTheme_actionBarDivider = 23;
public static int AppCompatTheme_actionBarItemBackground = 24;
public static int AppCompatTheme_actionBarPopupTheme = 17;
public static int AppCompatTheme_actionBarSize = 22;
public static int AppCompatTheme_actionBarSplitStyle = 19;
public static int AppCompatTheme_actionBarStyle = 18;
public static int AppCompatTheme_actionBarTabBarStyle = 13;
public static int AppCompatTheme_actionBarTabStyle = 12;
public static int AppCompatTheme_actionBarTabTextStyle = 14;
public static int AppCompatTheme_actionBarTheme = 20;
public static int AppCompatTheme_actionBarWidgetTheme = 21;
public static int AppCompatTheme_actionButtonStyle = 49;
public static int AppCompatTheme_actionDropDownStyle = 45;
public static int AppCompatTheme_actionMenuTextAppearance = 25;
public static int AppCompatTheme_actionMenuTextColor = 26;
public static int AppCompatTheme_actionModeBackground = 29;
public static int AppCompatTheme_actionModeCloseButtonStyle = 28;
public static int AppCompatTheme_actionModeCloseDrawable = 31;
public static int AppCompatTheme_actionModeCopyDrawable = 33;
public static int AppCompatTheme_actionModeCutDrawable = 32;
public static int AppCompatTheme_actionModeFindDrawable = 37;
public static int AppCompatTheme_actionModePasteDrawable = 34;
public static int AppCompatTheme_actionModePopupWindowStyle = 39;
public static int AppCompatTheme_actionModeSelectAllDrawable = 35;
public static int AppCompatTheme_actionModeShareDrawable = 36;
public static int AppCompatTheme_actionModeSplitBackground = 30;
public static int AppCompatTheme_actionModeStyle = 27;
public static int AppCompatTheme_actionModeWebSearchDrawable = 38;
public static int AppCompatTheme_actionOverflowButtonStyle = 15;
public static int AppCompatTheme_actionOverflowMenuStyle = 16;
public static int AppCompatTheme_activityChooserViewStyle = 57;
public static int AppCompatTheme_alertDialogButtonGroupStyle = 92;
public static int AppCompatTheme_alertDialogCenterButtons = 93;
public static int AppCompatTheme_alertDialogStyle = 91;
public static int AppCompatTheme_alertDialogTheme = 94;
public static int AppCompatTheme_android_windowAnimationStyle = 1;
public static int AppCompatTheme_android_windowIsFloating = 0;
public static int AppCompatTheme_autoCompleteTextViewStyle = 99;
public static int AppCompatTheme_borderlessButtonStyle = 54;
public static int AppCompatTheme_buttonBarButtonStyle = 51;
public static int AppCompatTheme_buttonBarNegativeButtonStyle = 97;
public static int AppCompatTheme_buttonBarNeutralButtonStyle = 98;
public static int AppCompatTheme_buttonBarPositiveButtonStyle = 96;
public static int AppCompatTheme_buttonBarStyle = 50;
public static int AppCompatTheme_buttonStyle = 100;
public static int AppCompatTheme_buttonStyleSmall = 101;
public static int AppCompatTheme_checkboxStyle = 102;
public static int AppCompatTheme_checkedTextViewStyle = 103;
public static int AppCompatTheme_colorAccent = 84;
public static int AppCompatTheme_colorButtonNormal = 88;
public static int AppCompatTheme_colorControlActivated = 86;
public static int AppCompatTheme_colorControlHighlight = 87;
public static int AppCompatTheme_colorControlNormal = 85;
public static int AppCompatTheme_colorPrimary = 82;
public static int AppCompatTheme_colorPrimaryDark = 83;
public static int AppCompatTheme_colorSwitchThumbNormal = 89;
public static int AppCompatTheme_controlBackground = 90;
public static int AppCompatTheme_dialogPreferredPadding = 43;
public static int AppCompatTheme_dialogTheme = 42;
public static int AppCompatTheme_dividerHorizontal = 56;
public static int AppCompatTheme_dividerVertical = 55;
public static int AppCompatTheme_dropDownListViewStyle = 74;
public static int AppCompatTheme_dropdownListPreferredItemHeight = 46;
public static int AppCompatTheme_editTextBackground = 63;
public static int AppCompatTheme_editTextColor = 62;
public static int AppCompatTheme_editTextStyle = 104;
public static int AppCompatTheme_homeAsUpIndicator = 48;
public static int AppCompatTheme_imageButtonStyle = 64;
public static int AppCompatTheme_listChoiceBackgroundIndicator = 81;
public static int AppCompatTheme_listDividerAlertDialog = 44;
public static int AppCompatTheme_listPopupWindowStyle = 75;
public static int AppCompatTheme_listPreferredItemHeight = 69;
public static int AppCompatTheme_listPreferredItemHeightLarge = 71;
public static int AppCompatTheme_listPreferredItemHeightSmall = 70;
public static int AppCompatTheme_listPreferredItemPaddingLeft = 72;
public static int AppCompatTheme_listPreferredItemPaddingRight = 73;
public static int AppCompatTheme_panelBackground = 78;
public static int AppCompatTheme_panelMenuListTheme = 80;
public static int AppCompatTheme_panelMenuListWidth = 79;
public static int AppCompatTheme_popupMenuStyle = 60;
public static int AppCompatTheme_popupWindowStyle = 61;
public static int AppCompatTheme_radioButtonStyle = 105;
public static int AppCompatTheme_ratingBarStyle = 106;
public static int AppCompatTheme_ratingBarStyleIndicator = 107;
public static int AppCompatTheme_ratingBarStyleSmall = 108;
public static int AppCompatTheme_searchViewStyle = 68;
public static int AppCompatTheme_seekBarStyle = 109;
public static int AppCompatTheme_selectableItemBackground = 52;
public static int AppCompatTheme_selectableItemBackgroundBorderless = 53;
public static int AppCompatTheme_spinnerDropDownItemStyle = 47;
public static int AppCompatTheme_spinnerStyle = 110;
public static int AppCompatTheme_switchStyle = 111;
public static int AppCompatTheme_textAppearanceLargePopupMenu = 40;
public static int AppCompatTheme_textAppearanceListItem = 76;
public static int AppCompatTheme_textAppearanceListItemSmall = 77;
public static int AppCompatTheme_textAppearanceSearchResultSubtitle = 66;
public static int AppCompatTheme_textAppearanceSearchResultTitle = 65;
public static int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
public static int AppCompatTheme_textColorAlertDialogListItem = 95;
public static int AppCompatTheme_textColorSearchUrl = 67;
public static int AppCompatTheme_toolbarNavigationButtonStyle = 59;
public static int AppCompatTheme_toolbarStyle = 58;
public static int AppCompatTheme_windowActionBar = 2;
public static int AppCompatTheme_windowActionBarOverlay = 4;
public static int AppCompatTheme_windowActionModeOverlay = 5;
public static int AppCompatTheme_windowFixedHeightMajor = 9;
public static int AppCompatTheme_windowFixedHeightMinor = 7;
public static int AppCompatTheme_windowFixedWidthMajor = 6;
public static int AppCompatTheme_windowFixedWidthMinor = 8;
public static int AppCompatTheme_windowMinWidthMajor = 10;
public static int AppCompatTheme_windowMinWidthMinor = 11;
public static int AppCompatTheme_windowNoTitle = 3;
public static int[] ButtonBarLayout = { 0x7f010094 };
public static int ButtonBarLayout_allowStacking = 0;
public static int[] CompoundButton = { 0x01010107, 0x7f010095, 0x7f010096 };
public static int CompoundButton_android_button = 0;
public static int CompoundButton_buttonTint = 1;
public static int CompoundButton_buttonTintMode = 2;
public static int[] DrawerArrowToggle = { 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e };
public static int DrawerArrowToggle_arrowHeadLength = 4;
public static int DrawerArrowToggle_arrowShaftLength = 5;
public static int DrawerArrowToggle_barLength = 6;
public static int DrawerArrowToggle_color = 0;
public static int DrawerArrowToggle_drawableSize = 2;
public static int DrawerArrowToggle_gapBetweenBars = 3;
public static int DrawerArrowToggle_spinBars = 1;
public static int DrawerArrowToggle_thickness = 7;
public static int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f01000b, 0x7f01009f, 0x7f0100a0, 0x7f0100a1 };
public static int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 };
public static int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static int LinearLayoutCompat_Layout_android_layout_height = 2;
public static int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static int LinearLayoutCompat_Layout_android_layout_width = 1;
public static int LinearLayoutCompat_android_baselineAligned = 2;
public static int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static int LinearLayoutCompat_android_gravity = 0;
public static int LinearLayoutCompat_android_orientation = 1;
public static int LinearLayoutCompat_android_weightSum = 4;
public static int LinearLayoutCompat_divider = 5;
public static int LinearLayoutCompat_dividerPadding = 8;
public static int LinearLayoutCompat_measureWithLargestChild = 6;
public static int LinearLayoutCompat_showDividers = 7;
public static int[] ListPopupWindow = { 0x010102ac, 0x010102ad };
public static int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
public static int MenuGroup_android_checkableBehavior = 5;
public static int MenuGroup_android_enabled = 0;
public static int MenuGroup_android_id = 1;
public static int MenuGroup_android_menuCategory = 3;
public static int MenuGroup_android_orderInCategory = 4;
public static int MenuGroup_android_visible = 2;
public static int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5 };
public static int MenuItem_actionLayout = 14;
public static int MenuItem_actionProviderClass = 16;
public static int MenuItem_actionViewClass = 15;
public static int MenuItem_android_alphabeticShortcut = 9;
public static int MenuItem_android_checkable = 11;
public static int MenuItem_android_checked = 3;
public static int MenuItem_android_enabled = 1;
public static int MenuItem_android_icon = 0;
public static int MenuItem_android_id = 2;
public static int MenuItem_android_menuCategory = 5;
public static int MenuItem_android_numericShortcut = 10;
public static int MenuItem_android_onClick = 12;
public static int MenuItem_android_orderInCategory = 6;
public static int MenuItem_android_title = 7;
public static int MenuItem_android_titleCondensed = 8;
public static int MenuItem_android_visible = 4;
public static int MenuItem_showAsAction = 13;
public static int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f0100a6 };
public static int MenuView_android_headerBackground = 4;
public static int MenuView_android_horizontalDivider = 2;
public static int MenuView_android_itemBackground = 5;
public static int MenuView_android_itemIconDisabledAlpha = 6;
public static int MenuView_android_itemTextAppearance = 1;
public static int MenuView_android_verticalDivider = 3;
public static int MenuView_android_windowAnimationStyle = 0;
public static int MenuView_preserveIconSpacing = 7;
public static int[] PopupWindow = { 0x01010176, 0x7f0100a7 };
public static int[] PopupWindowBackgroundState = { 0x7f0100a8 };
public static int PopupWindowBackgroundState_state_above_anchor = 0;
public static int PopupWindow_android_popupBackground = 0;
public static int PopupWindow_overlapAnchor = 1;
public static int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5 };
public static int SearchView_android_focusable = 0;
public static int SearchView_android_imeOptions = 3;
public static int SearchView_android_inputType = 2;
public static int SearchView_android_maxWidth = 1;
public static int SearchView_closeIcon = 8;
public static int SearchView_commitIcon = 13;
public static int SearchView_defaultQueryHint = 7;
public static int SearchView_goIcon = 9;
public static int SearchView_iconifiedByDefault = 5;
public static int SearchView_layout = 4;
public static int SearchView_queryBackground = 15;
public static int SearchView_queryHint = 6;
public static int SearchView_searchHintIcon = 11;
public static int SearchView_searchIcon = 10;
public static int SearchView_submitBackground = 16;
public static int SearchView_suggestionRowLayout = 14;
public static int SearchView_voiceIcon = 12;
public static int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f01001b };
public static int Spinner_android_dropDownWidth = 3;
public static int Spinner_android_entries = 0;
public static int Spinner_android_popupBackground = 1;
public static int Spinner_android_prompt = 2;
public static int Spinner_popupTheme = 4;
public static int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb, 0x7f0100bc };
public static int SwitchCompat_android_textOff = 1;
public static int SwitchCompat_android_textOn = 0;
public static int SwitchCompat_android_thumb = 2;
public static int SwitchCompat_showText = 9;
public static int SwitchCompat_splitTrack = 8;
public static int SwitchCompat_switchMinWidth = 6;
public static int SwitchCompat_switchPadding = 7;
public static int SwitchCompat_switchTextAppearance = 5;
public static int SwitchCompat_thumbTextPadding = 4;
public static int SwitchCompat_track = 3;
public static int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f010025 };
public static int TextAppearance_android_shadowColor = 4;
public static int TextAppearance_android_shadowDx = 5;
public static int TextAppearance_android_shadowDy = 6;
public static int TextAppearance_android_shadowRadius = 7;
public static int TextAppearance_android_textColor = 3;
public static int TextAppearance_android_textSize = 0;
public static int TextAppearance_android_textStyle = 2;
public static int TextAppearance_android_typeface = 1;
public static int TextAppearance_textAllCaps = 8;
public static int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010003, 0x7f010006, 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001b, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb };
public static int Toolbar_android_gravity = 0;
public static int Toolbar_android_minHeight = 1;
public static int Toolbar_collapseContentDescription = 19;
public static int Toolbar_collapseIcon = 18;
public static int Toolbar_contentInsetEnd = 6;
public static int Toolbar_contentInsetLeft = 7;
public static int Toolbar_contentInsetRight = 8;
public static int Toolbar_contentInsetStart = 5;
public static int Toolbar_logo = 4;
public static int Toolbar_logoDescription = 22;
public static int Toolbar_maxButtonHeight = 17;
public static int Toolbar_navigationContentDescription = 21;
public static int Toolbar_navigationIcon = 20;
public static int Toolbar_popupTheme = 9;
public static int Toolbar_subtitle = 3;
public static int Toolbar_subtitleTextAppearance = 11;
public static int Toolbar_subtitleTextColor = 24;
public static int Toolbar_title = 2;
public static int Toolbar_titleMarginBottom = 16;
public static int Toolbar_titleMarginEnd = 14;
public static int Toolbar_titleMarginStart = 13;
public static int Toolbar_titleMarginTop = 15;
public static int Toolbar_titleMargins = 12;
public static int Toolbar_titleTextAppearance = 10;
public static int Toolbar_titleTextColor = 23;
public static int[] View = { 0x01010000, 0x010100da, 0x7f0100cc, 0x7f0100cd, 0x7f0100ce };
public static int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0100cf, 0x7f0100d0 };
public static int ViewBackgroundHelper_android_background = 0;
public static int ViewBackgroundHelper_backgroundTint = 1;
public static int ViewBackgroundHelper_backgroundTintMode = 2;
public static int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 };
public static int ViewStubCompat_android_id = 0;
public static int ViewStubCompat_android_inflatedId = 2;
public static int ViewStubCompat_android_layout = 1;
public static int View_android_focusable = 1;
public static int View_android_theme = 0;
public static int View_paddingEnd = 3;
public static int View_paddingStart = 2;
public static int View_theme = 4;
}
}
| [
"igorpi25@gmail.com"
] | igorpi25@gmail.com |
0312756d551c963aa3337071cb2cb357d9ed851a | 99aab4f8141af98602630bb530ddca8fc8e4c4c8 | /src/main/java/io/github/cristaling/swegg/backend/web/requests/UUIDRequest.java | 43d5a5960ac57fa7944fe1755a6363d6e369fec1 | [] | no_license | ciprifodor/SWEgg-BackEnd | 0da076a3d46a0d5d32983f511e3cb7e455d13dd8 | 2fcdba2cab3fb170adbfd8b0a2df51090edc9687 | refs/heads/master | 2022-01-04T19:43:49.973982 | 2019-05-21T13:59:51 | 2019-05-21T13:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 311 | java | package io.github.cristaling.swegg.backend.web.requests;
import java.util.UUID;
public class UUIDRequest {
UUID uuid;
public UUIDRequest() {
}
public UUIDRequest(UUID uuid) {
this.uuid = uuid;
}
public UUID getUuid() {
return uuid;
}
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
}
| [
"iovarares@gmail.com"
] | iovarares@gmail.com |
acded0f0e9fae11e54ea7589917dfefe338bef16 | 16be4b5d7b111dae18a4117b0dcf434cf44e4215 | /src/main/java/q050/Q004_MedianOfTwoSortedArrays.java | 4328df1ab93723517b904b649faef73ac9263939 | [
"MIT"
] | permissive | sunxuia/leetcode-solution-java | a3d8d680fabc014216ef9837d119b02acde923b5 | 2794f83c9e80574f051c00b8a24c6a307bccb6c5 | refs/heads/master | 2022-11-12T13:31:04.464274 | 2022-11-09T14:20:28 | 2022-11-09T14:20:28 | 219,247,361 | 1 | 0 | MIT | 2020-10-26T10:55:12 | 2019-11-03T03:43:25 | Java | UTF-8 | Java | false | false | 5,333 | java | package q050;
import org.junit.runner.RunWith;
import util.runner.Answer;
import util.runner.LeetCodeRunner;
import util.runner.TestData;
import util.runner.data.DataExpectation;
/**
* There are two sorted arrays nums1 and nums2 of size m and n respectively.
*
* Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
*
* You may assume nums1 and nums2 cannot be both empty.
*
* Example 1:
*
* nums1 = [1, 3]
* nums2 = [2]
*
* The median is 2.0
*
* Example 2:
*
* nums1 = [1, 2]
* nums2 = [3, 4]
*
* The median is (2 + 3)/2 = 2.5
*/
@RunWith(LeetCodeRunner.class)
public class Q004_MedianOfTwoSortedArrays {
/**
* 这题的目的就是寻找2 个有序数组合起来的中位数(如果中位数有2 个则取2 个数的平均值).
* 主要的想法就是将2 个数组划分为2 块, 左边右边的数量相等, 左边一块的最大值< 右边一块的最小值,
* 然后中间的数字(或左边最大和右边最小的平均数)就是需要的结果了.
*/
@Answer
public double findMedianSortedArrays(int[] nums1, int[] nums2) {
// 确保nums1 的大小小于nums2.
// 这样在下面计算的时候就不会出现超过范围的情况了.
if (nums1.length > nums2.length) {
int[] t = nums1;
nums1 = nums2;
nums2 = t;
}
int start = 0, end = nums1.length;
while (start <= end) {
// 尝试划分边界, 让左右两边的数量相等, (如果总数是奇数的话, 左边界可能会比右边界多1 个数字)
// i 表示nums1 中的右边界. i 的范围就在[0, nums1.length]
int i = (start + end) / 2;
// j 表示nums2 中的右边界. 由于nums1.length <= nums2.length,
// 所以j 的范围永远在[0, nums2.length].
int j = (nums1.length + nums2.length + 1) / 2 - i;
// 重新确定边界, 让左边的最大值 < 右边的最小值
if (i < end && nums2[j - 1] > nums1[i]) {
// 左边界最大值 > 右边界最小值, 且i 还有前进空间.
start = i + 1;
} else if (i > start && nums1[i - 1] > nums2[j]) {
// 左边界最大值 > 右边界最小值, 且i 还有后退空间.
end = i - 1;
} else {
// 边界确定
// 找到左边界的最大值(如果总数为奇数的话, 就是中间的中位数)
int maxLeft;
if (i == 0) {
maxLeft = nums2[j - 1];
} else if (j == 0) {
maxLeft = nums1[i - 1];
} else {
maxLeft = Math.max(nums1[i - 1], nums2[j - 1]);
}
if ((nums1.length + nums2.length) % 2 == 1) {
return maxLeft;
}
// 找到右边界的最小值.
int minRight;
if (i == nums1.length) {
minRight = nums2[j];
} else if (j == nums2.length) {
minRight = nums1[i];
} else {
minRight = Math.min(nums1[i], nums2[j]);
}
return (maxLeft + minRight) / 2.0;
}
}
throw new RuntimeException("should not run to here");
}
@TestData
public DataExpectation example1 = DataExpectation.builder()
.addArgument(new int[]{1, 3})
.addArgument(new int[]{2})
.expect(2.0)
.build();
@TestData
public DataExpectation example2 = DataExpectation.builder()
.addArgument(new int[]{1, 2})
.addArgument(new int[]{3, 4})
.expect(2.5)
.build();
@TestData
public DataExpectation normal1 = DataExpectation.builder()
.addArgument(new int[]{1, 2, 3})
.addArgument(new int[]{4, 5, 6})
.expect(3.5)
.build();
@TestData
public DataExpectation normal2 = DataExpectation.builder()
.addArgument(new int[]{4, 5, 6})
.addArgument(new int[]{1, 2, 3})
.expect(3.5)
.build();
@TestData
public DataExpectation normal3 = DataExpectation.builder()
.addArgument(new int[]{1, 2, 3, 4})
.addArgument(new int[]{5, 6, 7})
.expect(4.0)
.build();
@TestData
public DataExpectation normal4 = DataExpectation.builder()
.addArgument(new int[]{1, 1})
.addArgument(new int[]{1, 2})
.expect(1.0)
.build();
@TestData
public DataExpectation normal5 = DataExpectation.builder()
.addArgument(new int[]{1, 3, 5, 7, 9})
.addArgument(new int[]{2, 4, 6, 8})
.expect(5.0)
.build();
@TestData
public DataExpectation border1 = DataExpectation.builder()
.addArgument(new int[]{1})
.addArgument(new int[]{})
.expect(1.0)
.build();
@TestData
public DataExpectation border2 = DataExpectation.builder()
.addArgument(new int[]{})
.addArgument(new int[]{2, 3})
.expect(2.5)
.build();
}
| [
"ntsunxu@163.com"
] | ntsunxu@163.com |
2e00fe19fe811a51ff59346c5fa2c11166927eda | f114e5f6e60460dd30b958d318aef767d6bc037d | /src/test/java/com/noorteck/selenium/day7/ListOfElements.java | 5de592c1c13282628b3d35b7f7ef9c9cbe219d84 | [] | no_license | DenisP4/Selenium | 89ac8694ab5b5d3cc23fbfa6b5bb2a1da6524e5d | edc57e2444a474ffdd8b26146d88109166a22181 | refs/heads/master | 2022-11-28T04:28:51.668345 | 2020-07-07T23:50:24 | 2020-07-07T23:50:24 | 273,716,376 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,266 | java | package com.noorteck.selenium.day7;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class ListOfElements {
public static void main(String[] args) throws InterruptedException {
String chromeKey= "webdriver.chrome.driver";
String chromePath="src\\test\\resources\\driver\\chromedriver.exe";
//set up property
System.setProperty("webdriver.chrome.driver",
"src\\test\\resources\\driver\\chromedriver.exe");
String url="https://learn.letskodeit.com/p/practice";
System.setProperty(chromeKey, chromePath);
//create driver object
WebDriver driver=new ChromeDriver();
//maximize the windows
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get(url);
//
List<WebElement> radioBtnList= driver.findElements(By.xpath("//input[@type='radio']"));
System.out.println("Size of List:"+radioBtnList.size());
for(WebElement radioBtn: radioBtnList ) {
radioBtn.click();
Thread.sleep(3000);
}
}
}
| [
"dennn@DESKTOP-2N6ADQC"
] | dennn@DESKTOP-2N6ADQC |
a22a72f403d214fb8225c673f9728f3257441980 | e3da6c5cf21d7a3d99f99909571531509ac608c6 | /src/test/java/com/crimsonobject/bowling/MainTest.java | dc54ba5895b651d4a5b3ca4f29dc9f840bb0d6cc | [] | no_license | CrimsonObject/bowling-scoring-java | b053d3e1015ca531512d0d65faf8ed127b04343e | df50af7ec95bdd3f63a46eda51c0307965c30c90 | refs/heads/master | 2021-01-10T18:19:49.010272 | 2016-04-10T21:21:08 | 2016-04-10T21:21:08 | 55,864,679 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,922 | java | package com.crimsonobject.bowling;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
import com.crimsonobject.game.LinkedListBowling;
import com.crimsonobject.objects.Player;
public class MainTest {
private static Player player1 = new Player("Tom");
private static List<Player> playerList = new ArrayList<Player>();
@BeforeClass
public static void setUpBeforeClass() throws Exception {
playerList.add(player1);
}
@Test
public void testTwoThrowsNotSpareOrStrike() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 8);
game.throwBall(player1, (short) 0);
assertEquals(8, game.getPlayerScore(player1));
}
@Test
public void testSpareScoreOnFirstFrame() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 1);
game.throwBall(player1, (short) 9);
game.throwBall(player1, (short) 5);
assertEquals(15, game.getPlayerScore(player1));
}
@Test
public void testOneStrikeThanNothingNextFrame() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 0);
game.throwBall(player1, (short) 0);
assertEquals(10, game.getPlayerScore(player1));
}
@Test
public void testOneStrikeThan9NextFrame() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 4);
game.throwBall(player1, (short) 5);
assertEquals(28, game.getPlayerScore(player1));
}
@Test
public void testThreeStrikesInARow() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
assertEquals(30, game.getPlayerScore(player1));
}
@Test
public void testTwoStrikesThanNothingNextFrame() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 1);
game.throwBall(player1, (short) 2);
assertEquals(21, game.getPlayerScore(player1,1));
assertEquals(34, game.getPlayerScore(player1,2));
assertEquals(37, game.getPlayerScore(player1,3));
assertEquals(21+13+3, game.getPlayerScore(player1));
}
@Test
public void testTwoStrikesThanSpare() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 1);
game.throwBall(player1, (short) 9);
assertEquals(21, game.getPlayerScore(player1,1));
assertEquals(41, game.getPlayerScore(player1,2));
assertEquals(-1, game.getPlayerScore(player1,3));
assertEquals(21+20, game.getPlayerScore(player1));
}
@Test
public void testEightFramesOfStrike() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
assertEquals(240, game.getPlayerScore(player1));
}
@Test
public void testNineFramesOfStrike() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
assertEquals(270, game.getPlayerScore(player1));
}
@Test
public void testOnlyOneMissedPin() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 9);
assertEquals(299, game.getPlayerScore(player1));
}
@Test
public void testSpareLastThrow() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 9);
game.throwBall(player1, (short) 1);
assertEquals(289, game.getPlayerScore(player1));
}
@Test
public void testPerfectGame() {
LinkedListBowling game = new LinkedListBowling(playerList);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
game.throwBall(player1, (short) 10);
assertEquals(300, game.getPlayerScore(player1));
}
}
| [
"kevin2112@gmail.com"
] | kevin2112@gmail.com |
db10da544cd38c7598688fc9da071c68a1c761d5 | 1881ab2fcb57a4fe9a4f80bc0c59f4fed2c76123 | /javers-core/src/main/java/org/javers/core/diff/appenders/OptionalChangeAppender.java | fd52a1ae6fc67cd6616e19bb4e3b65987663c9fc | [
"Apache-2.0"
] | permissive | ofbusiness/javers | c2c874f292ff53bdf24c9d3e3d1e2dd32ed68403 | 73ab2431d50466441a19f5a4a0720e6705261924 | refs/heads/master | 2021-06-21T00:10:59.150444 | 2021-01-06T10:26:22 | 2021-01-06T10:26:22 | 139,723,049 | 1 | 0 | Apache-2.0 | 2021-01-06T10:26:23 | 2018-07-04T13:03:37 | Java | UTF-8 | Java | false | false | 2,838 | java | package org.javers.core.diff.appenders;
import org.javers.common.exception.JaversException;
import org.javers.core.diff.NodePair;
import org.javers.core.diff.changetype.PropertyChange;
import org.javers.core.diff.changetype.ReferenceChange;
import org.javers.core.diff.changetype.ValueChange;
import org.javers.core.metamodel.object.GlobalId;
import org.javers.core.metamodel.object.GlobalIdFactory;
import org.javers.core.metamodel.type.*;
import java.util.Objects;
import java.util.Optional;
import static org.javers.common.exception.JaversExceptionCode.UNSUPPORTED_OPTIONAL_CONTENT_TYPE;
/**
* @author bartosz.walacik
*/
public class OptionalChangeAppender extends CorePropertyChangeAppender<PropertyChange> {
private final GlobalIdFactory globalIdFactory;
private final TypeMapper typeMapper;
public OptionalChangeAppender(GlobalIdFactory globalIdFactory, TypeMapper typeMapper) {
this.globalIdFactory = globalIdFactory;
this.typeMapper = typeMapper;
}
@Override
public boolean supports(JaversType propertyType) {
return propertyType instanceof OptionalType;
}
@Override
public PropertyChange calculateChanges(NodePair pair, JaversProperty property) {
OptionalType optionalType = ((JaversProperty) property).getType();
JaversType contentType = typeMapper.getJaversType(optionalType.getItemType());
Optional leftOptional = normalize((Optional) pair.getLeftPropertyValue(property));
Optional rightOptional = normalize((Optional) pair.getRightPropertyValue(property));
if (contentType instanceof ManagedType){
GlobalId leftId = getAndDehydrate(leftOptional, contentType);
GlobalId rightId = getAndDehydrate(rightOptional, contentType);
if (Objects.equals(leftId, rightId)) {
return null;
}
return new ReferenceChange(pair.getGlobalId(), property.getName(), leftId, rightId,
pair.getLeftPropertyValue(property), pair.getRightPropertyValue(property));
}
if (contentType instanceof PrimitiveOrValueType) {
if (leftOptional.equals(rightOptional)) {
return null;
}
return new ValueChange(pair.getGlobalId(), property.getName(), leftOptional, rightOptional);
}
throw new JaversException(UNSUPPORTED_OPTIONAL_CONTENT_TYPE, contentType);
}
private GlobalId getAndDehydrate(Optional optional, final JaversType contentType){
return (GlobalId) optional
.map(o -> globalIdFactory.dehydrate(o, contentType, null))
.orElse(null);
}
private Optional normalize(Optional optional) {
if (optional == null) {
return Optional.empty();
}
return optional;
}
}
| [
"bwalacik@gmail.com"
] | bwalacik@gmail.com |
40bbe2bc6346ec2c720c2ca84cf1145b85a037ec | 9f537441670f3eb280856c3f1cd4c5e52ba72258 | /Idea/lesson1/src/core.java | 8c3a3c9dd5a5c738beb0a816167708ccfdb2e330 | [] | no_license | Destered/AISD | 54dc428c53102e44dfa686bb3a1828af57529a82 | 4f0e0b69d2166387e59efd571d0b9b3483ff0d16 | refs/heads/master | 2022-07-04T14:28:05.898814 | 2020-05-14T13:20:45 | 2020-05-14T13:20:45 | 245,888,125 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 323 | java | public class core {
public static void main(String[] args) {
List l = new List();
l.addElements(10);
l.addElements(9);
l.addElements(8);
l.addElements(7);
l.addElements(6);
l.addElements(5);
l.listOut();
l.reverse();
l.listOut();
}
}
| [
"timba1721@mail.ru"
] | timba1721@mail.ru |
32240571de47b5d79c0b63981623715266f0ef22 | 498b654f33384af7b662e7fc392908cf340be87e | /src/main/java/com/xiaobin/example/pojo/Resource.java | 97639b8f36c74fd05036607473488cdc60f9158d | [] | no_license | xiaobin3/springBootDemo | 841f9ea66c32e57d802e393cafe65d0b49800856 | 9943d8b2d19e1233ef9912a58d454d9e6451b22b | refs/heads/master | 2020-03-15T20:16:56.036679 | 2018-05-07T10:43:18 | 2018-05-07T10:43:18 | 132,329,121 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,787 | java | package com.xiaobin.example.pojo;
import java.io.Serializable;
/**
* t_resource
* @author
*/
public class Resource implements Serializable {
/**
* 资源id
*/
private Long id;
/**
* url
*/
private String url;
/**
* 创建人
*/
private Long createUser;
/**
* 创建时间
*/
private Long createTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Resource other = (Resource) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
&& (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", url=").append(url);
sb.append(", createUser=").append(createUser);
sb.append(", createTime=").append(createTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
} | [
"xiaobin3@asiainfo.com"
] | xiaobin3@asiainfo.com |
a26528cda0f841a0626ed99ff309ce999dc77e02 | f2e1f651452f0968e4015762932d430b1e18d9e9 | /MiniSeconds/app/src/main/java/seveno/android/miniseconds/PicturePuzzle/PuzzlePreview.java | 0dec1179b4dd567136bd32369c5c76623e9e4437 | [] | no_license | kpnadmin/final_project | 05cb5c485c0ed6252d597ed5121b401c3cd86b66 | b49fbb004bab7f6862087bd0811b55b9fa05b97c | refs/heads/master | 2021-01-20T03:26:17.323469 | 2017-08-25T04:06:22 | 2017-08-25T04:06:22 | 101,363,927 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,710 | java | package seveno.android.miniseconds.PicturePuzzle;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextView;
import seveno.android.miniseconds.R;
public class PuzzlePreview extends AppCompatActivity {
private Handler p_1_handler;
private ImageView sparty_first;
private TextView txt_puzzle_content;
private static long prevTime;
private static long timeTakenMillis;
private static long elapsedTime;
private int T_score;
private TextView wait_puzzle;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_puzzle_preview);
sparty_first = (ImageView) findViewById(R.id.sparty_first);
Intent intent = getIntent();
/*
intent.putExtra("seveno.android.miniseconds.PicturePuzzle.PuzzlePreview.initialTime",initialTime);
intent.putExtra("seveno.android.miniseconds.PicturePuzzle.PuzzlePreview.tscore",T_score);
intent.putExtra("seveno.android.miniseconds.PicturePuzzle.PuzzlePreview.elapsedTime",elapsedTime);
*/
prevTime = intent.getLongExtra("seveno.android.miniseconds.speedyNum.ClearNumScreen.initialTime", 0);
int speedy_score = intent.getIntExtra("seveno.android.miniseconds.speedyNum.ClearNumScreen.tscore", T_score);
elapsedTime = intent.getLongExtra("seveno.android.miniseconds.PicturePuzzle.PuzzlePreview.elapsedTime", elapsedTime);
T_score = speedy_score;
// thread start
p_1_handler = new Handler();
p_1_handler.postDelayed(new Runnable() {
@Override
public void run() {
Intent intent = new Intent( getApplicationContext(), PicturePuzzleGame.class );
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("seveno.android.miniseconds.PicturePuzzle.PuzzleGame.puzzleTime", timeTakenMillis);
intent.putExtra("seveno.android.miniseconds.PicturePuzzle.PuzzleGame.tscore2", T_score);
intent.putExtra("seveno.android.miniseconds.PicturePuzzle.PuzzleGame.elapsedTime", elapsedTime);
startActivity(intent);
// 액티비티 이동시 페이드인/아웃 효과를 보여준다. 즉, 인트로
// 화면에 부드럽게 사라진다.
overridePendingTransition(android.R.anim.fade_in,
android.R.anim.fade_out);
p_1_handler.removeMessages(0);
finish();
}
}, 3000);
}
}
| [
"kpn@naver.com"
] | kpn@naver.com |
d813fe6e00602c1bbcc0adc8fab6a2715d80cf24 | c7f3c1d3bebcffa03e02f07ae44313691096b3ac | /src/main/java/org/mule/extension/compression/internal/gzip/GzipCompressorInputStream.java | 9b5f7d356d05bad877aca08198fdd53dd384aa23 | [] | no_license | mulesoft/mule-compression-module | e971add798ae3147a23a0c8087140d5236dde8c9 | f129981430bc050eac22696d3ff244bdac055df1 | refs/heads/main | 2023-08-25T23:30:53.411289 | 2023-02-14T04:03:24 | 2023-02-14T04:03:24 | 132,614,718 | 2 | 3 | null | 2023-09-14T19:35:54 | 2018-05-08T13:41:38 | Java | UTF-8 | Java | false | false | 5,637 | java | /*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.extension.compression.internal.gzip;
import static java.util.zip.Deflater.DEFAULT_COMPRESSION;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.CRC32;
import java.util.zip.CheckedInputStream;
import java.util.zip.Deflater;
import java.util.zip.DeflaterInputStream;
/**
* Implements an input stream for compressing input data in the GZIP compression format.
*
* @since 1.0
*/
public class GzipCompressorInputStream extends DeflaterInputStream {
// GZIP header magic number.
private final static int GZIP_MAGIC = 0x8b1f;
// Writes GZIP member header.
private final static byte[] HEADER = {
(byte) GZIP_MAGIC, // Magic number (short)
(byte) (GZIP_MAGIC >> 8), // Magic number (short)
Deflater.DEFLATED, // Compression method (CM)
0, // Flags (FLG)
0, // Modification time MTIME (int)
0, // Modification time MTIME (int)
0, // Modification time MTIME (int)
0, // Modification time MTIME (int)
0, // Extra flags (XFLG)
0 // Operating system (OS)
};
// Trailer length in bytes.
private final static int TRAILER_LENGTH = 8;
// If true, the GZIP trailer has been written.
private boolean trailerWritten = false;
// Internal buffer for GZIP header and trailer.
private final Buffer buffer;
/**
* Helper inner class containing the length and position of the internal buffer.
*/
private class Buffer {
public byte[] data;
public int position;
public int length;
/**
* Creates a new buffer initializing it with the GZIP header content.
*/
public Buffer() {
data = new byte[Math.max(HEADER.length, TRAILER_LENGTH)];
System.arraycopy(HEADER, 0, data, 0, HEADER.length);
position = 0;
length = HEADER.length;
}
/**
* Returns the amount of bytes that are left to be read from the buffer.
*
* @return The byte counts to be read.
*/
int getByteCountRemainder() {
return length - position;
}
}
/**
* Creates a new {@link GzipCompressorInputStream} from an uncompressed {@link InputStream}.
*
* @param in The uncompressed {@link InputStream}.
*/
public GzipCompressorInputStream(InputStream in) {
super(new CheckedInputStream(in, new CRC32()), new Deflater(DEFAULT_COMPRESSION, true));
buffer = new Buffer();
}
@Override
public int read(byte b[], int off, int len) throws IOException {
// Check if there are bytes left to be read from the internal buffer. This is used to provide the header
// or trailer, and always takes precedence.
int count;
if (buffer.getByteCountRemainder() > 0) {
// Write data from the internal buffer into b.
count = Math.min(len, buffer.getByteCountRemainder());
System.arraycopy(buffer.data, buffer.position, b, off, count);
// Advance the internal buffer position as "count" bytes have already been read.
buffer.position += count;
return count;
}
// Attempt to read compressed input data.
count = super.read(b, off, len);
if (count > 0) {
return count;
}
/* If the stream has reached completion, write out the GZIP trailer and re-attempt
* the read */
if (count <= 0 && !trailerWritten) {
buffer.position = 0;
buffer.length = writeTrailer(buffer.data, buffer.position);
trailerWritten = true;
return read(b, off, len);
} else {
return count;
}
}
/**
* Writes GZIP member trailer to a byte array, starting at a given offset.
*
* @param buf The buffer to write the trailer to.
* @param offset The offset from which to start writing.
* @return The amount of bytes that were written.
* @throws IOException If an I/O error is produced.
*/
private int writeTrailer(byte[] buf, int offset) throws IOException {
int count = writeInt((int) ((CheckedInputStream) this.in).getChecksum().getValue(), buf, offset); // CRC-32 of uncompr. data
count += writeInt(def.getTotalIn(), buf, offset + 4); // Number of uncompr. bytes
return count;
}
/**
* Writes integer in Intel byte order to a byte array, starting at a given offset.
*
* @param i The integer to write.
* @param buf The buffer to write the integer to.
* @param offset The offset from which to start writing.
* @return The amount of bytes written.
* @throws IOException If an I/O error is produced.
*/
private int writeInt(int i, byte[] buf, int offset) throws IOException {
int count = writeShort(i & 0xffff, buf, offset);
count += writeShort((i >> 16) & 0xffff, buf, offset + 2);
return count;
}
/**
* Writes short integer in Intel byte order to a byte array, starting at a given offset.
*
* @param s The short to write.
* @param buf The buffer to write the integer to.
* @param offset The offset from which to start writing.
* @return The amount of bytes written.
* @throws IOException If an I/O error is produced.
*/
private int writeShort(int s, byte[] buf, int offset) throws IOException {
buf[offset] = (byte) (s & 0xff);
buf[offset + 1] = (byte) ((s >> 8) & 0xff);
return 2;
}
@Override
public void close() throws IOException {
super.close();
// Since the deflater is not the default one, it must be closed explicitly
def.end();
}
}
| [
"noreply@github.com"
] | mulesoft.noreply@github.com |
3294a34d3895b6e4eb78390f65b45da13e7ab551 | 5fd93c17db61d26a8862769238d12fb1f59970e2 | /0167. Two Sum II - Input array is sorted/Two Sum II - Input array is sorted.java | 501128a50cef579323af741ffe22a36aa28029d2 | [] | no_license | lwx940710/Leetcode | d9b2f5621f3e2d9b893c8b10480272a91e16cc78 | 1b56f23d3724b42b33e124134c2464934362b97b | refs/heads/master | 2020-04-18T00:39:07.662075 | 2019-03-15T03:02:56 | 2019-03-15T03:02:56 | 167,085,717 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 535 | java | class Solution {
public int[] twoSum(int[] numbers, int target) {
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
int[] result = new int[2];
for (int i = 0; i < numbers.length; i++) {
if (map.containsKey(target - numbers[i])) {
result[0] = map.get(target - numbers[i]);
result[1] = i + 1;
return result;
} else {
map.put(numbers[i], i + 1);
}
}
return null;
}
} | [
"lwx940710@gmail.com"
] | lwx940710@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.