blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
51
| license_type
stringclasses 2
values | repo_name
stringlengths 5
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
80
| visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 131
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
9.45M
| extension
stringclasses 32
values | content
stringlengths 3
9.45M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28c085718c286a190b87d4662fafa379ff5dd265 | ba9be0a78c52e48a5577689dd351d4ff29f28d2f | /src/pack1/RotateSquare.java | 1750c55ddaaaa0b743dc55b41eac4291ca5daff3 | [] | no_license | Will1195/GPX-Repo | 42960bf72ad02fdbe75cfc84f55b29aae0b10c99 | 46fda17cffae8a2857cc7b57a2d72f6e7c191adf | refs/heads/master | 2021-01-12T14:16:19.854042 | 2016-10-04T20:26:47 | 2016-10-04T20:26:47 | 70,002,533 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,386 | java | package pack1;
import javax.swing.*;
import java.awt.Graphics;
public class RotateSquare extends JFrame {
// Liang listing 14.3
public RotateSquare() {
add(new DrawPanel());
}
public static void main(String[] args) {
RotateSquare frame = new RotateSquare();
frame.setTitle("RotateSquare");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(1000, 700);
frame.setLocationRelativeTo(null); // Center the frame
frame.setVisible(true);
}
class DrawPanel extends JPanel {
S2 S = new S2(50,50,200,400);
V2 A=new V2(2,2);
V2 B=new V2(4,2);
V2 C=new V2(4,4);
V2 D=new V2(2,4);
V2 R=A.add(B).add(C).add(D).div(4);
double phi=Math.PI/3;
M2 M=new M2(Math.cos(phi), -Math.sin(phi),
Math.sin(phi), Math.cos(phi));
V2 Am=M.mul(A.sub(R)).add(R);
V2 Bm=M.mul(B.sub(R)).add(R);
V2 Cm=M.mul(C.sub(R)).add(R);
V2 Dm=M.mul(D.sub(R)).add(R);
protected void paintComponent(Graphics g) {
super.paintComponent(g);
S.drawaxis(g);
S.drawline(g, A, B);
S.drawline(g, B, C);
S.drawline(g, C, D);
S.drawline(g, D, A);
S.drawpoint(g, R);
S.drawline(g, Am, Bm);
S.drawline(g, Bm, Cm);
S.drawline(g, Cm, Dm);
S.drawline(g, Dm, Am);
}
}
}
| [
"[email protected]"
] | |
2f794aa99c7c7f74fb2ff1ecb0c37de110a94188 | 2905ab13085cf90fa3ff02eabb635ffb80421121 | /ivanhoe/src/edu/virginia/speclab/ivanhoe/server/mapper/converter/IvanhoeDataConverter.java | 8825f4be9ef931390aa360525852f8f6004599d8 | [] | no_license | waynegraham/ivanhoe | 8474eccd2eb05e30d16eef9ad4425e71fca65b12 | dfe05439f7e75298a4b38313d5fe904998dbda42 | refs/heads/master | 2020-05-31T00:45:22.000842 | 2010-03-23T15:28:59 | 2010-03-23T15:28:59 | 32,215,670 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,749 | java | /*
* Created on Nov 23, 2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package edu.virginia.speclab.ivanhoe.server.mapper.converter;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import java.util.Properties;
import edu.virginia.speclab.ivanhoe.server.exception.MapperException;
import edu.virginia.speclab.ivanhoe.server.game.IvanhoeServer;
import edu.virginia.speclab.ivanhoe.server.mapper.UserMapper;
import edu.virginia.speclab.ivanhoe.shared.data.User;
import edu.virginia.speclab.ivanhoe.shared.database.DBManager;
/**
* @author Nick
*
* This class provides a useful framework for performing migrations of legacy databases to newer versions of the database.
*
*/
public class IvanhoeDataConverter
{
private Properties properties;
protected int lookupDocumentID( String documentName ) throws MapperException
{
int docID = -1;
PreparedStatement stmt = null;
ResultSet results = null;
try
{
String sqlCommand = "SELECT id FROM document WHERE title=?";
stmt = DBManager.instance.getConnection().prepareStatement(sqlCommand);
stmt.setString(1,documentName);
results = stmt.executeQuery();
if( results.next() )
{
docID = results.getInt("id");
}
}
catch (SQLException e)
{
throw new MapperException("Error looking up document id: "+e);
}
finally
{
DBManager.instance.close(stmt);
DBManager.instance.close(results);
}
return docID;
}
protected void addHistoryEntry( String historyInfo, String versionInfo ) throws MapperException
{
PreparedStatement pstmt = null;
try
{
String sqlCommand = "insert into db_history (entry_date, entry, host_version) values (?, ?, ?)";
pstmt = DBManager.instance.getConnection().prepareStatement(sqlCommand);
pstmt.setString(1, DBManager.formatDate(new Date()) );
pstmt.setString(2, historyInfo );
pstmt.setString(3, versionInfo );
pstmt.executeUpdate();
}
catch (SQLException e)
{
throw new MapperException("Insert of history entry failed: " + e);
}
finally
{
DBManager.instance.close(pstmt);
}
}
protected int lookupRoleID( int playerID, int gameID ) throws MapperException
{
int roleID = -1;
PreparedStatement stmt = null;
ResultSet results = null;
try
{
String sqlCommand = "SELECT fk_role_id FROM player_game_role "+
"WHERE fk_player_id=? AND fk_game_id=?";
stmt = DBManager.instance.getConnection().prepareStatement(sqlCommand);
stmt.setInt(1,playerID);
stmt.setInt(2,gameID);
results = stmt.executeQuery();
if( results.next() )
{
roleID = results.getInt("fk_role_id");
}
}
catch (SQLException e)
{
throw new MapperException("Error looking up role id: "+e);
}
finally
{
DBManager.instance.close(stmt);
DBManager.instance.close(results);
}
return roleID;
}
protected int lookupRoleID( int moveID ) throws MapperException
{
int roleID = -1;
PreparedStatement stmt = null;
ResultSet results = null;
try
{
String sqlCommand = "SELECT * FROM move WHERE id=?";
stmt = DBManager.instance.getConnection().prepareStatement(sqlCommand);
stmt.setInt(1,moveID);
results = stmt.executeQuery();
if( results.next() )
{
roleID = results.getInt("fk_role_id");
}
}
catch (SQLException e)
{
throw new MapperException("Error looking up role id: "+e);
}
finally
{
DBManager.instance.close(stmt);
DBManager.instance.close(results);
}
return roleID;
}
protected int lookupMoveID( int actionID ) throws MapperException
{
int moveID = -1;
PreparedStatement stmt = null;
ResultSet results = null;
try
{
String sqlCommand = "SELECT * FROM move_action WHERE fk_action_id=?";
stmt = DBManager.instance.getConnection().prepareStatement(sqlCommand);
stmt.setInt(1,actionID);
results = stmt.executeQuery();
if( results.next() )
{
moveID = results.getInt("fk_move_id");
}
}
catch (SQLException e)
{
throw new MapperException("Error looking up move id: "+e);
}
finally
{
DBManager.instance.close(stmt);
DBManager.instance.close(results);
}
return moveID;
}
protected int lookupRoleID( String playerName, String title, int gameID ) throws MapperException
{
User user = UserMapper.getByName(playerName);
int userID = user.getId();
return lookupRoleID(userID,gameID);
}
protected int lookupGameID( int documentID ) throws MapperException
{
int gameID = -1;
PreparedStatement stmt = null;
ResultSet results = null;
try
{
String sqlCommand = "SELECT * FROM discourse_field WHERE fk_document_id=?";
stmt = DBManager.instance.getConnection().prepareStatement(sqlCommand);
stmt.setInt(1,documentID);
results = stmt.executeQuery();
if( results.next() )
{
gameID = results.getInt("fk_game_id");
}
}
catch (SQLException e)
{
throw new MapperException("Error looking up game id: "+e);
}
finally
{
DBManager.instance.close(stmt);
DBManager.instance.close(results);
}
return gameID;
}
public void setUp()
{
IvanhoeServer.initLogging(true);
properties = IvanhoeServer.loadIvanhoeProperties();
// connect DB
String dbNameProp = properties.getProperty("dbName");
String hostProp = properties.getProperty("dbHost");
String userProp = properties.getProperty("dbUser");
String passProp = properties.getProperty("dbPass");
if (DBManager.instance.connect(
hostProp, userProp, passProp, dbNameProp) == false)
{
throw new RuntimeException("Unable to connect DB");
}
}
public void tearDown() throws Exception
{
DBManager.instance.disconnect();
}
public final Properties getProperties()
{
return properties;
}
}
| [
"nicklaiacona@c161d011-2726-0410-8d5a-8f576c7000fa"
] | nicklaiacona@c161d011-2726-0410-8d5a-8f576c7000fa |
f59536ecddc79cde32cb7cbc423ef020979b9dfb | 24e80f65c7ab62bf8ae4f28753d8809e43bbb29c | /app/src/main/java/ac/airconditionsuit/app/activity/QRCodeActivity.java | 12153dd243b3b30093b5208583befb2f5370014d | [] | no_license | xiaoyi2015/Hisense_Demo | f234391fbb2fc7874178777ecea0a293d3b11475 | f2ec900bd5f0e946be076833e4f85b298d5e0588 | refs/heads/master | 2021-01-13T13:34:05.386098 | 2016-04-01T18:17:01 | 2016-04-01T18:17:01 | 76,365,519 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,692 | java | package ac.airconditionsuit.app.activity;
import ac.airconditionsuit.app.Constant;
import ac.airconditionsuit.app.MyApp;
import ac.airconditionsuit.app.entity.Connection;
import ac.airconditionsuit.app.entity.Device;
import ac.airconditionsuit.app.network.HttpClient;
import ac.airconditionsuit.app.network.response.GetChatTokenResponse;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import ac.airconditionsuit.app.R;
import ac.airconditionsuit.app.UIManager;
import ac.airconditionsuit.app.listener.MyOnClickListener;
import ac.airconditionsuit.app.view.CommonTopBar;
import android.widget.ImageView;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.QRCodeWriter;
import com.loopj.android.http.RequestParams;
import java.io.UnsupportedEncodingException;
/**
* Created by Administrator on 2015/10/21.
*/
public class QRCodeActivity extends BaseActivity {
private MyOnClickListener myOnClickListener = new MyOnClickListener() {
@Override
public void onClick(View v) {
super.onClick(v);
switch (v.getId()) {
case R.id.left_icon:
finish();
break;
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_qr_code);
super.onCreate(savedInstanceState);
CommonTopBar commonTopBar = getCommonTopBar();
commonTopBar.setTitle(getString(R.string.qr_code));
switch (UIManager.UITYPE) {
case 1:
commonTopBar.setLeftIconView(R.drawable.top_bar_back_hit);
break;
case 2:
commonTopBar.setLeftIconView(R.drawable.top_bar_back_dc);
break;
default:
commonTopBar.setLeftIconView(R.drawable.top_bar_back_dc);
break;
}
commonTopBar.setIconView(myOnClickListener, null);
showQRCode();
}
void showQRCode() {
RequestParams params = new RequestParams();
params.put(Constant.REQUEST_PARAMS_KEY_METHOD, Constant.REQUEST_PARAMS_VALUE_METHOD_CHAT);
params.put(Constant.REQUEST_PARAMS_KEY_TYPE, Constant.REQUEST_PARAMS_VALUE_TYPE_GET_CHAT_TOKEN);
params.put(Constant.REQUEST_PARAMS_KEY_DEVICE_ID, MyApp.getApp().getServerConfigManager().getCurrentChatId());
HttpClient.get(params, GetChatTokenResponse.class, new HttpClient.JsonResponseHandler<GetChatTokenResponse>() {
@Override
public void onSuccess(GetChatTokenResponse response) {
Connection hostDeviceInfo = MyApp.getApp().getServerConfigManager().getCurrentHostDeviceInfo();
Device.QRCode qrCode = new Device.QRCode(hostDeviceInfo.getChat_id());
qrCode.setT(response.getT());
qrCode.setMac(hostDeviceInfo.getMac());
qrCode.setName(hostDeviceInfo.getName());
qrCode.setAddress(hostDeviceInfo.getAddress());
qrCode.setCreator_cust_id(hostDeviceInfo.getCreator_cust_id());
qrCode.setHome(MyApp.getApp().getServerConfigManager().getHome().getName());
QRCodeWriter writer = new QRCodeWriter();
try {
String content;
try {
content = new String(qrCode.toJsonString().getBytes("UTF-8"), "ISO-8859-1");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
return;
}
BitMatrix bitMatrix = writer.encode(content, BarcodeFormat.QR_CODE, 1024, 1024);
int width = bitMatrix.getWidth();
int height = bitMatrix.getHeight();
Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
bmp.setPixel(x, y, bitMatrix.get(x, y) ? Color.BLACK : Color.WHITE);
}
}
((ImageView) findViewById(R.id.QRCode)).setImageBitmap(bmp);
} catch (WriterException e) {
Log.e(TAG, "gen qrcode failed");
e.printStackTrace();
}
}
@Override
public void onFailure(Throwable throwable) {
}
});
}
}
| [
"[email protected]"
] | |
6115f7f5103734476416e2822613ed2537aed773 | b99b7a412603236e278fbba66d4ee183fa10d203 | /org.nextframework.controller/src/org/nextframework/controller/json/JacksonJsonTranslator.java | 4f9ca2a1f712a04443bfd730807b9bc50d74aa2c | [] | no_license | next-projects/nextframework | 9efd2ed2ef66b5eb9c9c3b61f4733ab76027da56 | eefe6dd0f5a129fb67dc7682b6cc16fec5f5da00 | refs/heads/master | 2023-08-11T03:39:15.739226 | 2023-08-10T19:25:04 | 2023-08-10T19:25:04 | 39,656,685 | 3 | 0 | null | 2021-09-09T14:05:29 | 2015-07-24T20:46:54 | Java | UTF-8 | Java | false | false | 2,707 | java | package org.nextframework.controller.json;
import java.io.StringWriter;
import java.io.Writer;
import java.util.List;
import java.util.TimeZone;
import org.nextframework.exception.NextException;
import org.nextframework.types.Cep;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.type.CollectionType;
import com.github.jonpeterson.jackson.module.versioning.VersioningModule;
public class JacksonJsonTranslator implements JsonTranslator {
public ObjectMapper createObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(Include.NON_NULL);
mapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true);
mapper.configure(SerializationFeature.USE_EQUALITY_FOR_OBJECT_ID, true);
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.setTimeZone(TimeZone.getDefault());
//mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE);
//See https://github.com/jonpeterson/jackson-module-model-versioning
mapper.registerModule(new VersioningModule());
SimpleModule nextModule = new SimpleModule("NextModule", new Version(1, 0, 0, null, "org.nextframework", "next-controller"));
nextModule.addSerializer(Cep.class, new CepSerializer());
nextModule.addDeserializer(Cep.class, new CepDeserializer());
nextModule.addSerializer(Throwable.class, new ThrowableSerializer());
mapper.registerModule(nextModule);
return mapper;
}
public String toJson(Object o) {
ObjectMapper mapper = createObjectMapper();
Writer strWriter = new StringWriter();
try {
mapper.writeValue(strWriter, o);
} catch (Exception e) {
throw new NextException("Error transforming object to json.", e);
}
return strWriter.toString();
}
public <E> E fromJson(String json, Class<E> type) {
ObjectMapper mapper = createObjectMapper();
try {
return mapper.readValue(json, type);
} catch (Exception e) {
throw new NextException("Error transforming json to object.", e);
}
}
public <E> List<E> fromJsonAsList(String json, Class<E> type) {
ObjectMapper mapper = createObjectMapper();
try {
CollectionType ctype = mapper.getTypeFactory().constructCollectionType(List.class, type);
return mapper.readValue(json, ctype);
} catch (Exception e) {
throw new NextException("Error transforming json to object.", e);
}
}
} | [
"[email protected]"
] | |
0b03e13f487785cbbd696bfeec894bb4b0653689 | 1e2ccab41d2fe549d7f2b592765414c4af68e249 | /Programacion/S1/Proyecto Programacion 3/src/fl_18131288_proyecto_03/FL_18131288_Proyecto_03.java | 99de8bb2069ea5bd43cde6563e7e2dd504e7950e | [] | no_license | ahedeijack/java_apps | ede91ce1b6b75be5e1e15973208fce9ed397d22e | b0c9aa6d7b60117617380ea86b9f770e86b1e6bb | refs/heads/main | 2023-06-11T04:06:05.070777 | 2021-06-28T23:02:16 | 2021-06-28T23:02:16 | 373,020,212 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 455 | 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 fl_18131288_proyecto_03;
/**
*
* @author Ahedeijak
*/
public class FL_18131288_Proyecto_03 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
| [
"[email protected]"
] | |
f936acd562bcd179528c764637e96ebc45afaffe | dd765227426a350af9b0392c9a237504b2cf41ef | /app/src/test/java/com/examples/smriti_rawat/myweatherapp/ExampleUnitTest.java | 9a76cfbe46310aec4665e4c4161a7f9eb1cdb9a2 | [] | no_license | iamsmriti/MyWeatherApp | 0df639d302f0ae8418ef71c2b9780d988a157700 | 5769091499c038b13fdb4f68aae09337e2148ea3 | refs/heads/master | 2020-12-30T13:40:24.963655 | 2017-05-21T12:01:01 | 2017-05-21T12:01:01 | 91,244,249 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 416 | java | package com.examples.smriti_rawat.myweatherapp;
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);
}
} | [
"[email protected]"
] | |
9aec0d1646b903af74fa3f5628949f061fd9ebcc | e01b346fa048b74f6d206a657c8654c1a9c594bb | /src/main/java/com/operation/domain/YyAdminUser.java | d98c9ac16dd0b8483f4ee510f21701428eee8e97 | [] | no_license | rhxt888/rhxtune-operation | 8c8ed951d92e7ea901826bcb53db507d1fd0dda0 | e356f91078986d32a51b6a6683a4762d1295fabd | refs/heads/master | 2021-01-10T05:07:58.574172 | 2016-03-16T14:23:56 | 2016-03-16T14:23:56 | 54,078,848 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,514 | java | package com.operation.domain;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import java.util.Date;
/**
* @author : Hui.Wang [[email protected]]
* @version : 1.0
* @created on : 2016-02-29, 下午7:29
* @copyright : Copyright(c) 2015 北京瑞华信通信息技术有限公司
*/
@Entity(value = "yy_adminUser",noClassnameStored = true)
public class YyAdminUser {
@Id
private ObjectId id;
private String email;
private String password;
private Integer userType;
private String screenName;
private String avatar;
private Long createTime;
private Long lastSigninTime;
private String lastSigninIp;
private String lastAgents;
private String role; //admin, operation
private long signinCount;
private boolean isDeleted;
public long getSigninCount() {
return signinCount;
}
public void setSigninCount(long signinCount) {
this.signinCount = signinCount;
}
public ObjectId getId() {
return id;
}
public void setId(ObjectId id) {
this.id = id;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
public String getScreenName() {
return screenName;
}
public void setScreenName(String screenName) {
this.screenName = screenName;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Long getLastSigninTime() {
return lastSigninTime;
}
public void setLastSigninTime(Long lastSigninTime) {
this.lastSigninTime = lastSigninTime;
}
public String getLastSigninIp() {
return lastSigninIp;
}
public void setLastSigninIp(String lastSigninIp) {
this.lastSigninIp = lastSigninIp;
}
public String getLastAgents() {
return lastAgents;
}
public void setLastAgents(String lastAgents) {
this.lastAgents = lastAgents;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public boolean isDeleted() {
return isDeleted;
}
public void setDeleted(boolean deleted) {
isDeleted = deleted;
}
@Override
public String toString() {
return "YyAdminUser{" +
"id=" + id +
", email='" + email + '\'' +
", password='" + password + '\'' +
", userType=" + userType +
", screenName='" + screenName + '\'' +
", avatar='" + avatar + '\'' +
", createTime=" + createTime +
", lastSigninTime=" + lastSigninTime +
", lastSigninIp='" + lastSigninIp + '\'' +
", lastAgents='" + lastAgents + '\'' +
", role='" + role + '\'' +
'}';
}
}
| [
"[email protected]"
] | |
6deb9476217902bbffd9b8762e1c81bb959a18bc | d62b79bbecf6bd5c8b8d0a92427c3dbd5f145510 | /.idea/Lab4/TestLab4.java | 0e8bea072eca07d383e53f9b1f72c26b964f0711 | [] | no_license | carlsondj3/CSIT150 | 322c2e6e2d7664c699c2c6112c0f31fd4debe160 | 333b02031d4c6b1d4ee96a2a876bebc483700202 | refs/heads/master | 2021-04-18T20:30:33.859551 | 2018-05-07T07:28:34 | 2018-05-07T07:28:34 | 126,270,832 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,332 | java | /**
* Test the Faculty, Employee classes and Rules interface
*
* @author harmssk
*/
public class TestLab4 {
public static void main(String[] args) {
System.out.println("********** Faculty Class Test Start **********");
// Create a faculty member and his/her set of courses
System.out.println("Faculty test, should show name and courses.");
String[] testCourses = new String[]{"150", "441"};
Faculty sherri = new Faculty("Sherri", 65000, testCourses);
System.out.println(sherri);//be sure you have a toString method for faculty
System.out.println("Faculty get name and get salary tests.");
System.out.println("Faculty Name: " + sherri.getName()); // print the faculty name
System.out.println("Faculty Salary: " + sherri.getSalary()); // print the salary of faculty
System.out.println("Test faculty constructor, should show name and courses (should NOT contain XYZ).");
testCourses[1] = "XYZ";
System.out.println(sherri);
System.out.println("Test faculty getCourses should show name and courses (should NOT contain ABC).");
testCourses = sherri.getCourses(); //remember to return a copy
testCourses[1] = "ABC";
System.out.println(sherri);
System.out.println("See the copy of the faculty's getCourses (should contain ABC).");
for (String c : testCourses) {
System.out.print(c + " ");
}
System.out.println();
System.out.println("Test faculty set courses, should show name and courses (should contain three new courses).");
String addCourses[] = {"130", "425", "834"}; // create courses array
sherri.setCourses(addCourses); // set the courses for faculty
System.out.println(sherri);
System.out.println("Test faculty set courses, should show name and courses (should NOT contain PQR).");
addCourses[1] = "PQR";
System.out.println(sherri);
System.out.println("********** Faculty Class Test End **********");
System.out.println();
System.out.println("********** Faculty as Employee Test Begin **************************");
// Create a faculty member as an Employee
System.out.println("Test faculty as an employee. Should show name and courses.");
String[] shahramCourses = new String[]{"188", "223", "448"};
Employee shahram = new Faculty("Shahram", 65000, shahramCourses);
System.out.println(shahram);
System.out.println("Test faculty as an employee get name and get salary tests.");
System.out.println("Employee Name: " + shahram.getName()); // print the faculty name
System.out.println("Employee Salary: " + shahram.getSalary()); // print the salary of faculty
System.out.println("Test faculty as an employee, get courses.");
if (shahram instanceof Faculty)// why is this needed?
{
testCourses = ((Faculty) shahram).getCourses();//cast
for (String c : testCourses)
System.out.print(c + " ");
System.out.println();
System.out.println("Test faculty set courses, should show name and courses (should contain four new courses).");
String springCourses[] = {"111", "301", "428", "458"}; // create courses array
((Faculty) shahram).setCourses(springCourses); // set the courses for faculty
System.out.println(shahram);
}
System.out.println("******** Faculty as Employee Test End **************************");
System.out.println();
System.out.println("********** Faculty as a member of Rules interface Test Begin **************************");
// Create a faculty member as an Rules
System.out.println("Test faculty as a member of Rules interface. Should show name and courses.");
String[] johnCourses = new String[]{"180", "330", "408"};
Rules john = new Faculty("John", 65000, johnCourses);
System.out.println(john);
System.out.println("Test faculty as an a member of Rules interface get name and get salary tests.");
System.out.println("Rules Name: " + john.getName()); // print the faculty name
System.out.println("Rules Salary: " + john.getSalary()); // print the salary of faculty
System.out.println("Test faculty as a member of Rules interface, get courses.");
if (john instanceof Faculty) {
testCourses = ((Faculty) john).getCourses(); //cast
for (String c : testCourses)
System.out.print(c + " ");
System.out.println();
}
System.out.println("Test faculty set courses, should show name and courses (should contain three new courses).");
String fallCourses[] = {"330", "404", "496-497"}; // create courses array
((Faculty) john).setCourses(fallCourses); // set the courses for faculty
System.out.println(john);
System.out.println("********** Faculty as a member of Rules interface Test End **************************");
System.out.println();
System.out.println("********** Employee Test Begin **************************");
System.out.println("Employee test, should show name and salary.");
Employee marla = new Employee("Marla", 35000); // employee object
System.out.println(marla);
System.out.println("Employee get name and get salary tests.");
System.out.println("Employee Name: " + marla.getName());
System.out.println("Employee Salary: " + marla.getSalary());
System.out.println("******** Employee Test End **************************");
System.out.println();
System.out.println("********** Employee as a member of Rules Interface Test Begin **************************");
System.out.println("Rules test, should show name and salary.");
Rules ben = new Employee("Ben", 25000); // employee object
System.out.println(ben.toString());
System.out.println("Rules get name and get salary tests.");
System.out.println("Rules Name: " + ben.getName());
System.out.println("Rules Salary: " + ben.getSalary());
System.out.println("********** Employee as a member of Rules Interface Test End **************************");
}
}
| [
"[email protected]"
] | |
adb3a02edbcce1cf805245d60a979c025420eaed | 48de5e36d38ce9e963494019027f6eb71ee74b4d | /API/bukkit/src/main/java/net/astrocube/api/bukkit/game/match/control/MatchScheduler.java | d38336117643451da3438e525ab439e2d068cdac | [] | no_license | AstroCube/Centauri | 9f164fd95e6701123f964b3c450d0ccda7f96da0 | 33f2aa487684dac0bd6c7d8df6c7da39b3355128 | refs/heads/master | 2023-07-16T23:45:30.139947 | 2021-02-27T22:50:08 | 2021-02-27T22:50:08 | 285,154,162 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 645 | java | package net.astrocube.api.bukkit.game.match.control;
import net.astrocube.api.bukkit.game.matchmaking.MatchmakingRequest;
import net.astrocube.api.bukkit.virtual.game.match.Match;
/**
* Interface to define a certain {@link Match} scheduler
* that can generate one or many matches and
* emit results depending on its creation.
*/
public interface MatchScheduler {
/**
* Run the {@link Match} scheduler.
* @param request to generate matchmaking if needed.
*/
void schedule(MatchmakingRequest request) throws Exception;
/**
* Run the {@link Match} scheduler.
*/
void schedule() throws Exception;
}
| [
"[email protected]"
] | |
4a5ea2ef13b0038f3b2515abc8dbb382d74e1061 | af95a70254ed4b7ef050108f5f4cdcb07b5c62f9 | /Sever/LoginServer.java | ea5e9b8ad1863faf0e66fb432f4cf74a1030e706 | [] | no_license | picus3/Thing-A-Doo | 2e8c77d9a929fd7bf2d7e15c497fca42ffb282e7 | 09732fe8e8273402b837256055384257bc708ce6 | refs/heads/master | 2020-07-14T00:03:00.268597 | 2016-09-12T08:13:44 | 2016-09-12T08:13:44 | 67,960,831 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,158 | java | package Server;
//THIS Will be the first thread opened when a user logins and will handle of the
//The Logining In
import Client.Activity;
import Client.Conversation;
import Client.Group;
import Client.MessageObject;
import Client.User;
import javafx.util.Pair;
import utility.Search;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.math.BigInteger;
import java.net.Socket;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.sql.Time;
import java.util.Vector;
//It will then create an instance of a Main Page which will then handle the rest
//of the program from the server side
public class LoginServer extends Thread {
public int ID = -1;
public boolean loggedin = false; //Will be false until successful setting ID
private Socket s;
private ObjectInputStream ois;
private ObjectOutputStream oos;
private User u;
private MainServer parent;
public LoginServer(Socket s, MainServer m) {
this.s = s;
parent = m;
try {
ois = new ObjectInputStream(s.getInputStream());
oos = new ObjectOutputStream(s.getOutputStream());
} catch (IOException e) {
System.out.println("IOE in LoginServer constructor: " + e.getMessage());
e.printStackTrace();
}
}
//MainPage
@Override
public void run() {
Object obj;
try {
while (true) {
obj = ois.readObject();
if (obj instanceof String) {
System.out.println(System.currentTimeMillis());
String username = (String)obj;
//Will Handle New User Creation
if (username.equals(new String("NewUser"))) {
u = createUser();
if (u == null) {
//If it fails
sendMessage(new String("Failed Creation"));
}
else {
sendMessage(u);
loggedin = true;
}
}
else {
u = login(username);
if (u == null) {
sendMessage(new String("Failed Login"));
}
else {
System.out.println("Login Succed: " + System.currentTimeMillis());
sendMessage(u);
loggedin = true;
}
}
}
else if (obj instanceof User) {
if (((User)obj).username == null) {
sendMessage(getUser(((User)obj).userID));
}
else if (((User)obj).userID == -1) {
sendMessage(getUserFromName(((User)obj).username));
}
else {
updateUser((User)obj);
}
}
else if (obj instanceof Group) {
if (((Group)obj).name == null) {
//Gets Group
sendMessage(getGroup(((Group)obj).ID));
}
else {
//Creates Group
sendMessage(createGroup((Group)obj));
}
}
else if (obj instanceof Activity) {
if (((Activity)obj).name == null) {
System.out.print("Group ID: " + ((Activity)obj).ID);
sendMessage(getActivity(((Activity)obj).ID));
}
else if (((Activity)obj).creator == -1) {
deleteActivity(obj);
}
else {
sendMessage(createActivity((Activity)obj));
}
}
else if (obj instanceof MessageObject) {
MessageObject m = (MessageObject)obj;
for (int i = 0; i < m.people.size(); i++) {
if (!parent.SendMessage(m.people.get(i).userID, m)) {
User recipient = getUser(m.people.get(i).userID);
//GROUP MESSAGE
//UPDATE GROUP IN HERE PLUS PUSH THE MESSAGE!
if (m.people.size() > 1) {
//Do Nothing
}
//INDIVIUAL MESSAGE
else {
System.out.println("Updating Conversation of User");
boolean hasconversation = false;
recipient.newMessages = new Boolean(true);
for (int j = 0; j < recipient.messages.size(); j++) {
if (recipient.messages.get(j).otherID == m.sender.userID) {
recipient.messages.get(j).addMessage(m);
hasconversation = true;
}
}
if (!hasconversation) {
System.out.println("Creating new Conversation");;
Conversation c = new Conversation(m.sender, recipient);
c.addMessage(m);
recipient.messages.addElement(c);
System.out.println(recipient.firstName + " Has Conversations: " + recipient.messages.size());
}
updateUser(recipient);
User temp = getUser(recipient.userID);
System.out.println("User Updated");
System.out.println(temp.firstName + " Has Conversations: " + temp.messages.size());
}
if (m.people.size() > 1) {
String username = m.sender.firstName + " " + m.sender.lastName;
String chatToAdd = username + ": " + m.message + "\n";
Group g = getGroup(m.GroupID);
g.chat = g.chat + chatToAdd;
g.notificaton = true;
createGroup(g);
}
}
}
}
else if (obj instanceof Vector<?>) {
Object thing = ((Vector<?>)obj).get(0);
if (thing instanceof Integer) {
//Doing Locaiton Search
sendMessage(categorySearch(obj));
}
if (thing instanceof String) {
//Doing Keyword Search
sendMessage(keywordSearch(obj));
}
}
else if (obj instanceof Integer) {
//Doing Categories search
sendMessage(locationSearch(obj));
}
}
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
parent.remove(this);
e.printStackTrace();
}
finally {
if (s != null) {
try {
s.close();
} catch (IOException ioe) {
System.out.println("IOE closing socket: " + ioe.getMessage());
}
}
if (oos != null) {
try {
oos.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
if (ois != null) {
try {
ois.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
private void deleteActivity(Object obj) {
DataMain m = new DataMain();
m.Connect();
m.delete(obj);
m.Stop();
}
//This will send all necessary Info to the clients.
public void sendMessage(Object message) {
try {
if (message == null) { return;}
oos.writeObject(message);
oos.flush();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private User login(String username) {
User u = (User) getUserFromName(username);
DataMain m = new DataMain();
m.Connect();
String password = m.getPass(u.userID);
Object pass = null;
m.Stop();
try {
pass = ois.readObject();
try {
MessageDigest md = MessageDigest.getInstance("MD5");
md.reset();
md.update(((String) pass).getBytes());
byte[] digest = md.digest();
BigInteger bigInt = new BigInteger(1,digest);
pass = bigInt.toString(16);
} catch (NoSuchAlgorithmException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (ClassNotFoundException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (password.equals((String)pass)) {
ID = u.userID;
System.out.println("Login of: " + u.firstName + " " + u.lastName + " Suceeded");
return u;
}
else {
System.out.println("Login of: " + username + " Failed");
return null;
}
}
private User getUserFromName(String username) {
DataMain m = new DataMain();
m.Connect();
User u = m.getUserFromName(username);
System.out.println(u.toString());
m.Stop();
return u;
}
private User getUser(int userID) {
DataMain m = new DataMain();
m.Connect();
User u = m.getUser(userID);
m.Stop();
return u;
}
private Group getGroup(int ID) {
DataMain m = new DataMain();
m.Connect();
Group u = m.getGroup(ID);
m.Stop();
System.out.println(u.toString());
return u;
}
private Activity getActivity(int ID) {
DataMain m = new DataMain();
m.Connect();
Activity u = m.getActivity(ID);
System.out.println("Got Activity: " + u.name);
m.Stop();
return u;
}
//Will be Called if User Pushes new User Button
//Will return true if it works
public User createUser() {
DataMain m = new DataMain();
m.Connect();
try {
Object user = ois.readObject();
ID = m.addUser((User)user);
m.Stop();
((User)user).userID = ID;
return (User)user;
} catch (ClassNotFoundException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return null;
}
}
private void updateUser(User obj) {
DataMain m = new DataMain();
m.Connect();
((User)obj).lastlogin = (int) System.currentTimeMillis();
m.updateUser(obj);
m.Stop();
}
private Group createGroup(Group obj) {
DataMain m = new DataMain();
m.Connect();
Group g = m.getGroup(((Group)obj).ID);
if (g == null) {
int ID = m.addGroup(obj);
m.Stop();
obj.ID = ID;
for (int i = 0; i < ((Group)obj).members.size(); i++) {
if (((Group)obj).members.get(i).userID != u.userID) {
parent.SendMessage(((Group)obj).members.get(i).userID, obj);
}
}
return obj;
}
else {
m.updateGroup(obj);
m.Stop();
return obj;
}
}
private Activity createActivity(Activity obj) {
DataMain m = new DataMain();
m.Connect();
Activity g = m.getActivity(((Activity)obj).ID);
if (g == null) {
int ID = m.addActivity(obj);
m.Stop();
obj.ID = ID;
return obj;
}
else {
m.updateActivity(obj);
m.Stop();
return obj;
}
}
private Object locationSearch(Object obj) {
DataMain m = new DataMain();
m.Connect();
Vector<Pair<Integer, Integer>> results = m.locationSearch((Integer)obj);
m.Stop();
return results;
}
private Object keywordSearch(Object obj) {
DataMain m = new DataMain();
m.Connect();
Vector<Integer> results = m.keywordSerch((Vector)obj);
m.Stop();
return results;
}
private Object categorySearch(Object obj) {
DataMain m = new DataMain();
m.Connect();
Vector<Integer> results = m.categorySearch((Vector)obj);
m.Stop();
return results;
}
}
| [
"[email protected]"
] | |
fc101883082ce28da365c8dbdc2f1f24e2002534 | 3594448733852bd020e7325d78c1aed2a6df11ad | /imagelib/src/androidTest/java/com/gaurav/imagelib/ExampleInstrumentedTest.java | e2c9ac496c1486f8554e584b2c6c128d33b7f934 | [] | no_license | gaurav-mishra8/Kotlin-Coroutines-Sample | f979aa677771815293eca0abbbf5101639acbd6a | 336a60f10af38fa18bc23e5394ea47c062962397 | refs/heads/master | 2020-03-29T22:47:08.519527 | 2018-09-26T14:33:53 | 2018-09-26T14:33:53 | 150,440,291 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 719 | java | package com.gaurav.imagelib;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.gaurav.imagelib.test", appContext.getPackageName());
}
}
| [
"[email protected]"
] | |
bbf9d597e04d0a3ea783db15ee744d9be901d219 | e3afd98573934e3daed69fffc854e36ff522b135 | /eclipse/Iterators/src/Wednesday/Wednesday.java | 514842cd522aad1dd42d1a1d20e69f18fa0aa57a | [] | no_license | 1903mar11spark/OlesonW | 04e22438c936f8880d7501b0dcb3b9d481c47364 | 4086aaea1ec57f55891ebd9e6076c896c5fadf20 | refs/heads/master | 2020-05-01T18:35:00.374363 | 2019-04-22T18:31:36 | 2019-04-22T18:31:36 | 177,627,161 | 0 | 0 | null | 2019-03-25T23:59:18 | 2019-03-25T16:47:52 | CSS | UTF-8 | Java | false | false | 120 | java | package Wednesday;
import java.lang.*;
public class Wednesday {
static void funWithEqualsAndHashcode() {
}
}
| [
"[email protected]"
] | |
b67d4349d2e7b6a9db59e20fd74da00cfadb5384 | 881976bd836ffa1caeee33ea5993ba622b6819a9 | /QiPai-Area/src/com/yaowan/server/game/event/DoudizhuDaoEvent.java | 618a4ef2e4a17adb1e3ac6cebcf239f2f05870f5 | [] | no_license | kate2014/QiPaiFramework | 21d6672bc76f20704e5f6f0689e2ad81dbb24040 | 14b27f81ca6c1a7ca261a755c1ac04f9249876f0 | refs/heads/master | 2021-01-24T01:27:54.041292 | 2017-05-08T15:12:20 | 2017-05-08T15:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,903 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.yaowan.server.game.event;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.yaowan.csv.cache.DoudizhuRoomCache;
import com.yaowan.csv.entity.DoudizhuRoomCsv;
import com.yaowan.framework.core.events.Event;
import com.yaowan.framework.core.events.handler.EventHandlerAdapter;
import com.yaowan.framework.util.LogUtil;
import com.yaowan.framework.util.TimeUtil;
import com.yaowan.protobuf.game.GDouDiZhu.DouDiZhuAction;
import com.yaowan.protobuf.game.GDouDiZhu.GMsg_12012004;
import com.yaowan.server.game.event.type.HandleType;
import com.yaowan.server.game.function.RoleFunction;
import com.yaowan.server.game.function.ZTDoudizhuFunction;
import com.yaowan.server.game.model.struct.ZTDoudizhuRole;
import com.yaowan.server.game.model.struct.ZTDoudizhuTable;
import com.yaowan.server.game.rule.ZTDoudizhuAiRule;
import com.yaowan.server.game.rule.ZTDoudizhuRule;
/**
*
*
* @author zane
*/
@Component
public class DoudizhuDaoEvent extends EventHandlerAdapter {
@Autowired
private ZTDoudizhuFunction doudizhuFunction;
@Autowired
private RoleFunction roleFunction;
@Autowired
private DoudizhuRoomCache doudizhuRoomCache;
@Override
public int execute(Event event) {
ZTDoudizhuTable table = (ZTDoudizhuTable) event.getParam()[0];
int seat = table.getLastPlaySeat();
ZTDoudizhuRole role = table.getMembers().get(
table.getLastPlaySeat() - 1);
GMsg_12012004.Builder builder = GMsg_12012004.newBuilder();
DouDiZhuAction action = null;
int handleType = 0;
if (seat == table.getOwner()) {
if (table.getDaoCount() >= 1) {// 只有倒了才能拉
action = DouDiZhuAction.GA_PULL;
handleType = HandleType.DOUDIZHU_LA_NO;
} else {
action = DouDiZhuAction.GA_PLAYING;
handleType = HandleType.DOUDIZHU_PAI;
}
} else {
// List<Integer> pai = role.getPai();
// List<Card> cardList = new ArrayList<Card>();
// for (Integer integer : pai) {
// cardList.add(new Card(integer));
// }
// if (table.getZhuaType() != 1) {// 闷抓不倒
// /*if (ZTDoudizhuRule.dao(cardList)) {
//
// * doudizhuFunction.dealDao(table, 1); // 必倒通知
// * GMsg_12012011.Builder builder2 =
// * GMsg_12012011.newBuilder(); builder2.setAction(2);
// * roleFunction
// * .sendMessageToPlayer(role.getRole().getRole().getRid(),
// * builder2.build());
//
//
// doudizhuFunction.processAction(table, DouDiZhuAction.GA_LOOK_CARD, seat,
// HandleType.DOUDIZHU_BI_DAO, System.currentTimeMillis() + 300);
// return 0;
// }*/
// }
action = DouDiZhuAction.GA_UPSIDE;
// if(table.getMembers().get(seat-1).getRole().isRobot() && ZTDoudizhuRule.include2WangAnd4ErOfGt3(table.getMembers().get(seat-1).getCards())){
// handleType = HandleType.DOUDIZHU_TO_DAO;
// }
//是否机器人
boolean isRobot = table.getMembers().get(seat-1).getRole().isRobot();
//机器人是否作弊
boolean isCheat = table.getMembers().get(seat-1).getRole().isCheat();
//是否大牌大于3
boolean isBigCardOverThree = ZTDoudizhuAiRule.getBigCardNum(table.getMembers().get(seat-1).getPai()) >= 4;
//是否权重大于3
boolean isWeightOverThree = ZTDoudizhuAiRule.getWeight(table.getMembers().get(seat-1).getPai(), table.getPais(), table, role) >= 3;
if(isRobot && !isCheat && isBigCardOverThree){
handleType = HandleType.DOUDIZHU_TO_DAO;
}else if(isRobot && isCheat && isWeightOverThree){
handleType = HandleType.DOUDIZHU_TO_DAO;
} else{
handleType = HandleType.DOUDIZHU_DAO_NO;
}
}
DoudizhuRoomCsv doudizhuRoomCsv = doudizhuRoomCache.getConfig(table
.getGame().getRoomType());
builder.setCurrentSeat(seat);
builder.setAction(action);
if(doudizhuRoomCsv != null){
builder.setWaitTime(TimeUtil.time() + doudizhuRoomCsv.getCatchTime());
}else{
builder.setWaitTime(TimeUtil.time() + 1000);
}
roleFunction.sendMessageToPlayers(table.getGame().getRoles(),
builder.build());
long time = System.currentTimeMillis() + 1000;
if(doudizhuRoomCsv != null){
time = System.currentTimeMillis() + 1000 * doudizhuRoomCsv.getCatchTime();
}else{
time = time + 1000;
}
if (role.getRole().isRobot()) {
time = System.currentTimeMillis() + 1000;
}
if (handleType == HandleType.DOUDIZHU_PAI) {
time = System.currentTimeMillis() + 500;
}
doudizhuFunction.tableToWait(table, table.getLastPlaySeat(),
table.getNextPlaySeat(), handleType, time);
LogUtil.info(table.getGame().getRoomId() + " seat " + seat + " "
+ action);
return 0;
}
@Override
public int getHandle() {
return HandleType.DOUDIZHU_DAO;
}
}
| [
"[email protected]"
] | |
4f3a462d04b60162740032faaeccf54ed74baa97 | d2560f2743aee9be35a487fc8c7dc2e2f941e76c | /src/main/java/edu/escuelaing/AREP/HttpStockService.java | 1761cf83159f0a78d14efab37f520d9a683ca930 | [
"MIT"
] | permissive | 2146013/introductionMaven | 72efab0b2169b8a6b8bb87bb74e1a5b511b0aa3f | 228d601210a7b741a5e1a6dce41545ab1e1577e0 | refs/heads/main | 2023-07-17T18:34:53.932346 | 2021-08-25T02:26:03 | 2021-08-25T02:26:03 | 397,669,372 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,631 | java | package edu.escuelaing.AREP;
import spark.Request;
import spark.Response;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public abstract class HttpStockService {
private static final HttpStockService _instance = createService();
private static final HttpStockService _instanceIcl = createCloud();
private static final String USER_AGENT = "Mozilla/5.0";
public static HttpStockService getService(){
return _instance;
}
public static HttpStockService getixCloud(){
return _instanceIcl;
}
public static HttpStockService createCloud(){
return new IEXCloudHttpStockService() ;
}
public static HttpStockService createService(){
return new AlphaAdvantageHttpStockService();
}
public String getStockJSON(Request req) throws IOException {
String time = req.queryParams("time");
String stock = req.queryParams("stock");
String responseStr = "None";
URL obj = new URL(getURL(time,stock));
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("User-Agent", USER_AGENT);
//The following invocation perform the connection implicitly before getting the code
int responseCode = con.getResponseCode();
System.out.println("GET Response Code :: " + responseCode);
if (responseCode == HttpURLConnection.HTTP_OK) { // success
BufferedReader in = new BufferedReader(new InputStreamReader(
con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
responseStr = response.toString();
// print result
System.out.println(responseStr);
} else {
System.out.println("GET request not worked");
}
System.out.println("GET DONE");
return responseStr;
}
/* private static String inputDataPage(Request req, Response res) {
String pageContent
= "<!DOCTYPE html>"
+ "<html>"
+ "<body>"
+ "<h2>HTML Forms</h2>"
+ "<form action=\"/results\">"
+ " First name:<br>"
+ " <input type=\"text\" name=\"firstname\" value=\"Mickey\">"
+ " <br>"
+ " Last name:<br>"
+ " <input type=\"text\" name=\"lastname\" value=\"Mouse\">"
+ " <br><br>"
+ " <input type=\"submit\" value=\"Submit\">"
+ "</form>"
+ "<p>If you click the \"Submit\" button, the form-data will be sent to a page called \"/results\".</p>"
+ "</body>"
+ "</html>";
return pageContent;
}
*/
private static String resultsPage(Request req, Response res) {
return req.queryParams("firstname") + " " +
req.queryParams("lastname");
}
public String getStockInfoAsJSONiex(Request req) throws IOException {
String time = req.queryParams("time");
String stock = req.queryParams("stock");
String responseStr = "None";
URL obj = new URL(getURL(time,stock));
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("User-Agent", USER_AGENT);
//The following invocation perform the connection implicitly before getting the code
int responseCode = con.getResponseCode();
System.out.println("GET Response Code :: " + responseCode);
if (responseCode == HttpURLConnection.HTTP_OK) { // success
BufferedReader in = new BufferedReader(new InputStreamReader(
con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
responseStr = response.toString();
// print result
System.out.println(responseStr);
} else {
System.out.println("GET request not worked");
}
System.out.println("GET DONE");
return responseStr;
}
abstract public String getURL(String time,String stock);
}
| [
"[email protected]"
] | |
95aa81a89c3ff45f4db128798fc56d56e9407bc7 | be6a4b13f72844e45265bb3ca866ee748512beff | /app/src/main/java/com/example/secureEye/Interface/UpdatePhoneResult.java | a13c7640b666b6eff0762ef2692491e620661568 | [] | no_license | sharmajisantosh/SecureEye | 133d4e512f70bc9eab6c8159bc8033f55e431c63 | f7228e422f30744a4b8be7432581acfcfedf4ff8 | refs/heads/master | 2020-12-23T00:57:18.077972 | 2019-06-15T12:30:40 | 2019-06-15T12:30:40 | 236,982,969 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 242 | java | package com.example.secureEye.Interface;
import com.google.android.gms.tasks.Task;
import androidx.annotation.NonNull;
public interface UpdatePhoneResult {
void onSuccess(@NonNull Task<Void> task);
void onFailed(String result);
}
| [
"[email protected]"
] | |
711956233b62cab717a33ad8b16d7ffa24590c85 | b527e775ebb833405adfa2fb41428f74cb617c9f | /src/main/java/endorphin/service/impl/LoginLogServiceImpl.java | 9914c617734f34e539dbea09207ec8735e3c699a | [
"MIT"
] | permissive | allen0010910/ssm5 | 3696c0e203baef936d315d2fcef2ba85732f8ab3 | c661c1201daab110b71ea011e02ce9c1869cbd9e | refs/heads/master | 2022-12-22T10:39:15.225025 | 2019-06-03T07:15:54 | 2019-06-03T07:15:54 | 195,447,911 | 0 | 0 | MIT | 2022-12-15T23:57:48 | 2019-07-05T17:46:19 | JavaScript | UTF-8 | Java | false | false | 799 | java | package endorphin.service.impl;
import endorphin.dao.UserLoginLogDao;
import endorphin.domain.UserLoginLog;
import endorphin.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* LoginLogServiceImpl
*
* @author igaozp
* @version 1.0
* @since 2016
*/
@Service
public class LoginLogServiceImpl implements LoginLogService {
private final UserLoginLogDao userLoginLogDao;
@Autowired
public LoginLogServiceImpl(UserLoginLogDao userLoginLogDao) {
this.userLoginLogDao = userLoginLogDao;
}
@Override
public void listAllUserLoginLog() { }
@Override
public void addUserLoginLog(UserLoginLog userLoginLog) {
userLoginLogDao.addUserLoginLog(userLoginLog);
}
}
| [
"[email protected]"
] | |
9776e80e48c3898f61e4b255bc41854bc5b16ca7 | cfa9d3ed69bf73172c3b1d6a0f2cb6660c976b93 | /j2se/LGame-j2se-0.3.1/src/org/loon/framework/javase/game/srpg/actor/SRPGActor.java | e8bdc063dfab165aa5b4c702764e9abbbd73a541 | [] | no_license | jackyglony/loon-simple | 7f3c6fd49a05de28daff0495a202d281a18706ce | cbf9c70e41ef5421bc1a5bb55939aa527aac675d | refs/heads/master | 2020-12-25T12:18:22.710566 | 2013-06-30T03:11:06 | 2013-06-30T03:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,820 | java | package org.loon.framework.javase.game.srpg.actor;
import org.loon.framework.javase.game.action.sprite.AnimationHelper;
import org.loon.framework.javase.game.core.LRelease;
import org.loon.framework.javase.game.core.graphics.Screen;
import org.loon.framework.javase.game.core.graphics.opengl.GLColor;
import org.loon.framework.javase.game.core.graphics.opengl.GLEx;
import org.loon.framework.javase.game.core.graphics.opengl.LTexture;
import org.loon.framework.javase.game.srpg.SRPGType;
/**
* Copyright 2008 - 2011
*
* 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.
*
* @project loonframework
* @author chenpeng
* @email:[email protected]
* @version 0.1
*/
public class SRPGActor implements LRelease {
private int posX, posY, tileWidth, tileHeight;
private int move_direction;
private int max_frame, frame;
private int direction, animation, changeble, actionCount;
private boolean isEnd, isAttack, isAction, isAnimation, isAutoEnd;
private boolean isVisible, isExist;
private SRPGStatus status;
private LTexture[] actionImage;
private AnimationHelper move, attack;
public SRPGActor(String name, String fileName, int index, int level,
int team, int tileWidth, int tileHeight) {
this(SRPGActorFactory.makeActorStatus(name, index, level, team),
AnimationHelper.makeRMVXObject(fileName), null, tileWidth,
tileHeight);
}
public SRPGActor(String name, int index, int level, int team,
AnimationHelper animation, int tileWidth, int tileHeight) {
this(SRPGActorFactory.makeActorStatus(name, index, level, team),
animation, null, tileWidth, tileHeight);
}
public SRPGActor(SRPGStatus status, AnimationHelper animation,
int tileWidth, int tileHeight) {
this(status, animation, null, tileWidth, tileHeight);
}
public SRPGActor(SRPGStatus status, AnimationHelper mv,
AnimationHelper atk, int tileWidth, int tileHeight) {
this.max_frame = 0;
this.frame = 0;
this.tileWidth = tileWidth;
this.tileHeight = tileHeight;
this.move = mv;
if (atk == null) {
attack = mv;
} else {
attack = atk;
}
this.direction = SRPGType.MOVE_DOWN;
this.animation = 25;
this.changeble = animation;
this.actionCount = 0;
this.isAnimation = true;
this.isVisible = true;
this.isExist = true;
if (status != null) {
this.status = status;
} else {
this.status = new SRPGStatus();
this.isVisible = false;
this.isExist = false;
}
}
SRPGActor() {
}
/**
* 获得移动图像
*
* @param direction
* @return
*/
public LTexture[] getAnimationImages(final AnimationHelper o, final int d) {
LTexture[] result = null;
switch (d) {
// 向下移动
case SRPGType.MOVE_DOWN:
result = o.downImages;
break;
// 向上移动
case SRPGType.MOVE_UP:
result = o.upImages;
break;
// 向左移动
case SRPGType.MOVE_LEFT:
result = o.leftImages;
break;
// 向右移动
case SRPGType.MOVE_RIGHT:
result = o.rightImages;
break;
default:
result = o.downImages;
}
return result;
}
/**
* 返回当前动作图像
*
* @return
*/
public LTexture getActionImage() {
if (actionImage != null) {
return actionImage[actionCount];
}
return null;
}
/**
* 返回一副静止的角色画面
*
* @return
*/
public LTexture getImage() {
LTexture[] img = getAnimationImages(move, SRPGType.MOVE_DOWN);
if (img != null) {
return img[actionImage.length / 2];
}
return null;
}
/**
* 获得当前角色是否处于活动状态
*
* @return
*/
public boolean getStatus() {
return frame < max_frame && status != null && status.action != 0;
}
/**
* 延迟当前角色的移动
*
*/
public void waitMove() {
for (; getStatus();) {
}
}
/**
* 延迟指定Screen的刷新
*
* @param screen
*/
public void waitMove(final Screen screen) {
for (; getStatus();) {
try {
screen.wait();
} catch (Exception ex) {
}
}
}
/**
* 让当前角色向指定方向移动指定帧数
*
* @param d
* @param frame
*/
public void moveActorShow(int d, int frame) {
if (getStatus()) {
return;
} else {
moveActor(d, frame);
isAnimation = true;
isAutoEnd = true;
return;
}
}
/**
* 让当前角色向指定方向移动指定帧数
*
* @param d
* @param frame
*/
public void moveActor(int d, int frame) {
if (getStatus()) {
return;
} else {
moveActorOnly(d, frame);
direction = d;
return;
}
}
/**
* 让当前角色向指定方向移动指定帧数
*
* @param d
* @param f
*/
public void moveActorOnly(int d, int f) {
if (getStatus()) {
return;
}
this.frame = 0;
this.max_frame = f;
switch (d) {
case SRPGType.MOVE_LEFT:
posX--;
break;
case SRPGType.MOVE_RIGHT:
posX++;
break;
case SRPGType.MOVE_UP:
posY--;
break;
case SRPGType.MOVE_DOWN:
posY++;
break;
}
this.move_direction = d;
}
/**
* 查询指定X,Y坐标所对应的移动方向
*
* @param x
* @param y
* @return
*/
public int findDirection(int x, int y) {
int nx = x - posX;
int ny = y - posY;
int tx = nx;
int ty = ny;
if (tx < 0) {
tx *= -1;
}
if (ty < 0) {
ty *= -1;
}
if (tx > ty) {
return nx >= 0 ? SRPGType.MOVE_RIGHT : SRPGType.MOVE_LEFT;
}
if (tx < ty) {
return ny >= 0 ? SRPGType.MOVE_DOWN : SRPGType.MOVE_UP;
}
if (nx < 0 && ny < 0) {
if (direction == SRPGType.MOVE_RIGHT) {
return SRPGType.MOVE_UP;
}
if (direction == SRPGType.MOVE_DOWN) {
return SRPGType.MOVE_LEFT;
}
} else if (nx > 0 && ny < 0) {
if (direction == SRPGType.MOVE_LEFT) {
return SRPGType.MOVE_UP;
}
if (direction == SRPGType.MOVE_DOWN) {
return SRPGType.MOVE_RIGHT;
}
} else if (nx < 0 && ny > 0) {
if (direction == SRPGType.MOVE_RIGHT) {
return SRPGType.MOVE_DOWN;
}
if (direction == SRPGType.MOVE_UP) {
return SRPGType.MOVE_LEFT;
}
} else if (nx > 0 && ny > 0) {
if (direction == SRPGType.MOVE_LEFT) {
return SRPGType.MOVE_DOWN;
}
if (direction == SRPGType.MOVE_UP) {
return SRPGType.MOVE_RIGHT;
}
}
return direction;
}
/**
* 获得指定SRPG角色所对应的移动方向
*
* @param actor
* @return
*/
public int getDirectionStatus(SRPGActor actor) {
int d = actor.getDirection();
int newd = actor.findDirection(getPosX(), getPosY());
if (d == newd) {
return SRPGType.MOVE_DOWN;
}
return (d != SRPGType.MOVE_UP || newd != SRPGType.MOVE_DOWN)
&& (d != SRPGType.MOVE_DOWN || newd != SRPGType.MOVE_UP)
&& (d != SRPGType.MOVE_RIGHT || newd != SRPGType.MOVE_LEFT)
&& (d != SRPGType.MOVE_LEFT || newd != SRPGType.MOVE_RIGHT) ? SRPGType.MOVE_LEFT
: SRPGType.MOVE_RIGHT;
}
/**
* 获得受到攻击后的角色方向
*
* @param d
* @return
*/
public final static int matchDirection(final int d) {
int result = 0;
switch (d) {
case SRPGType.MOVE_UP:
result = SRPGType.MOVE_DOWN;
break;
case SRPGType.MOVE_DOWN:
result = SRPGType.MOVE_UP;
break;
case SRPGType.MOVE_LEFT:
result = SRPGType.MOVE_RIGHT;
break;
case SRPGType.MOVE_RIGHT:
result = SRPGType.MOVE_LEFT;
break;
}
return result;
}
/**
* 转换图像帧到下一个
*
*/
public void next() {
if (!isVisible()) {
return;
} else {
frame++;
return;
}
}
/**
* 绘制角色
*
* @param g
* @param x
* @param y
*/
private void drawActor(GLEx g, int x, int y) {
boolean isMoving = (this.status.action != 0);
// 攻击动画
if (isAttack) {
actionImage = getAnimationImages(attack, direction);
if (actionCount >= actionImage.length - 1) {
setAttack(false);
}
// 事件动画
} else if (isAction) {
actionImage = getAnimationImages(attack, direction);
// 移动动画
} else {
actionImage = getAnimationImages(move, direction);
}
// 变更动作
if (isAnimation && animation > 0 && isMoving) {
changeble--;
if (changeble <= 0) {
changeble = animation;
actionCount++;
if (actionCount >= actionImage.length) {
actionCount = 0;
}
}
}
if (!getStatus() && isAutoEnd) {
this.isAutoEnd = false;
this.max_frame = 0;
this.frame = 0;
}
LTexture img = actionImage[actionCount];
// 移动中(此处可能会修改加入特殊效果)
if (isMoving) {
g.drawTexture(img, x + (tileWidth - img.getWidth()) / 2, y
+ (tileHeight - img.getHeight()) / 2);
// 角色行动完毕
} else if (isEnd) {
g.drawTexture(img, x + (tileWidth - img.getWidth()) / 2, y
+ (tileHeight - img.getHeight()) / 2, GLColor.gray);
// 其它情况
} else {
g.drawTexture(img, x + (tileWidth - img.getWidth()) / 2, y
+ (tileHeight - img.getHeight()) / 2);
}
if (!g.isAlpha()) {
g.glUpdateModulate(1, 1, 1, 1);
}
}
/**
* 绘制当前角色到游戏屏幕
*
* @param g
* @param x
* @param y
*/
public void draw(final GLEx g, int x, int y) {
if (isVisible()) {
drawActor(g, drawX() - x, drawY() - y);
}
}
/**
* 获得实际定位用的X坐标
*
* @return
*/
public int drawX() {
int x = posX * tileWidth;
if (getStatus()) {
int j = (frame * tileWidth) / max_frame;
switch (move_direction) {
case SRPGType.MOVE_LEFT:
x += tileWidth - j;
break;
case SRPGType.MOVE_RIGHT:
x -= tileWidth - j;
break;
}
}
return x;
}
/**
* 获得实际定位用的Y坐标
*
* @return
*/
public int drawY() {
int y = posY * tileHeight;
if (getStatus()) {
int j = (frame * tileHeight) / max_frame;
switch (move_direction) {
case SRPGType.MOVE_UP:
y += tileHeight - j;
break;
case SRPGType.MOVE_DOWN:
y -= tileHeight - j;
break;
}
}
return y;
}
public boolean isAttack() {
return isAttack;
}
public void setAttack(boolean attack) {
this.isAttack = attack;
}
public boolean isAction() {
return isAction;
}
public void setAction(boolean action) {
this.isAction = action;
}
public boolean isActionEnd() {
return isEnd;
}
public void setActionEnd(boolean e) {
isEnd = e;
}
public void setPosX(int x) {
max_frame = 0;
posX = x;
}
public void setPosY(int y) {
max_frame = 0;
posY = y;
}
public void setPos(int x, int y) {
setPosX(x);
setPosY(y);
}
public void setPos(int[] res) {
setPosX(res[0]);
setPosY(res[1]);
}
public int getPosX() {
return posX;
}
public int getPosY() {
return posY;
}
public int[] getPos() {
int[] res = new int[2];
res[0] = getPosX();
res[1] = getPosY();
return res;
}
public boolean isVisible() {
return isExist && isVisible;
}
public void setVisible(boolean flag) {
isVisible = flag;
}
public boolean isExist() {
return isExist;
}
public void setExist(boolean flag) {
isExist = flag;
}
public void setDirection(int d) {
this.direction = d;
}
public int getDirection() {
return direction;
}
public void setCount(int i) {
actionCount = i;
}
public int getCount() {
return actionCount;
}
public void setAnimation(boolean flag) {
isAnimation = flag;
}
public boolean isAnimation() {
return isAnimation;
}
public void setAnimationFrame(int i) {
animation = i;
changeble = i;
}
public int getAnimationFrame() {
return animation;
}
public void setActorStatus(SRPGStatus status) {
this.status = status;
}
public SRPGStatus getActorStatus() {
return this.status;
}
public int getTileHeight() {
return tileHeight;
}
public void setTileHeight(int tileHeight) {
this.tileHeight = tileHeight;
}
public int getTileWidth() {
return tileWidth;
}
public void setTileWidth(int tileWidth) {
this.tileWidth = tileWidth;
}
public void dispose() {
}
}
| [
"loontest@282ca0c4-f913-11dd-a8e2-f7cb3c35fcff"
] | loontest@282ca0c4-f913-11dd-a8e2-f7cb3c35fcff |
0355c6f4dcb1d5a808afacd60ae22e444fed68f6 | 51b78ddf571485e5b4998d79fcf30cfba9015023 | /src/main/java/Vinculador/Fecha.java | 47ed19f53a35c72ed8f5074155ef0f5d2b00f6b4 | [] | no_license | AnelloJM/APIVinculador | cdd31a9239937baefd1e7d661873ddb151709450 | 221261a8d1fb6808fffe7c350ef04d9a6cdaebac | refs/heads/master | 2023-01-23T12:38:48.842650 | 2020-12-05T12:28:25 | 2020-12-05T12:28:25 | 298,078,704 | 0 | 1 | null | 2020-12-04T23:55:41 | 2020-09-23T19:50:32 | Java | UTF-8 | Java | false | false | 4,291 | java | package Vinculador;
import Estructuras.IngresoEgreso;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.concurrent.atomic.AtomicInteger;
public class Fecha implements CriterioVinculador {
ArrayList<IngresoEgreso> egresos = null;
public ArrayList<IngresoEgreso> getEgresos() {
return egresos;
}
public void setEgresos(ArrayList<IngresoEgreso> egresos) {
this.egresos = egresos;
}
public ArrayList<IngresoEgreso> getIngresos() {
return ingresos;
}
public void setIngresos(ArrayList<IngresoEgreso> ingresos) {
this.ingresos = ingresos;
}
ArrayList<IngresoEgreso> ingresos = null;
@Override
public String ejecutarCriterio() {
this.ordenarPorFecha(this.getEgresos());
this.ordenarPorFecha(this.getIngresos());
return this.asignarEgresosIngresos(this.getEgresos(),this.getIngresos());
}
@Override
public void setCriteriosVinculados(ArrayList<String> criteriosDeMix) {
}
public void ordenarPorFecha( ArrayList<IngresoEgreso> ingresosegresos ) {
Collections.sort(ingresosegresos,new Comparator<IngresoEgreso>() {
public int compare(IngresoEgreso ingEgre1, IngresoEgreso ingEgre2) {
return ingEgre1.getFecha().compareTo(ingEgre2.getFecha());
}
});
}
private String asignarEgresosIngresos(ArrayList<IngresoEgreso> egresos, ArrayList<IngresoEgreso> ingresos) {
ArrayList<ArrayList<Integer>> arrayDeRespuesta = new ArrayList<ArrayList<Integer>>();
ingresos.forEach(ingreso -> arrayDeRespuesta.add(this.asignar(egresos,ingreso)));
int cantidadDeIngresos=ingresos.size();
String response="";
for (int i = 0; i < cantidadDeIngresos; i++) {
ArrayList<Integer> respuesta = arrayDeRespuesta.get(i);
if (i < cantidadDeIngresos-1){
response=
response
.concat("{\n\"IDIngreso\":")
.concat(String.valueOf(ingresos.get(i).getId()))
.concat(",\n")
.concat("\"IDSEgresos\":[")
.concat(this.arrayDeEgresos(respuesta))
.concat("]\n},");
} else {
response=
response
.concat("{\n\"IDIngreso\":")
.concat(String.valueOf(ingresos.get(i).getId()))
.concat(",\n")
.concat("\"IDSEgresos\":[")
.concat(this.arrayDeEgresos(respuesta))
.concat("]\n}");
}
}
return response;
}
private String arrayDeEgresos(ArrayList<Integer> egresos) {
String respuesta="";
int total = egresos.size();
for (int i = 0; i < total; i++) {
if (!(total-1 == i)){
respuesta=respuesta.concat(String.valueOf(egresos.get(i))).concat(",\n");
} else {
respuesta=respuesta.concat(String.valueOf(egresos.get(i)));
}
}
egresos.clear();
return respuesta;
}
private ArrayList<Integer> asignar(ArrayList<IngresoEgreso> egresos, IngresoEgreso ingreso) {
AtomicInteger contador = new AtomicInteger();
contador.set(0);
ArrayList<Integer> response = new ArrayList<>();
egresos.forEach(egreso -> contador.set(this.sumarA(contador.get(), ingreso, egreso, response)));
response.forEach(idEgreso -> this.eliminarDeLista(idEgreso,egresos));
return response;
}
private void eliminarDeLista(Integer idEgreso, ArrayList<IngresoEgreso> egresos) {
egresos.removeIf(egreso -> egreso.getId() == idEgreso);
}
private int sumarA(int contador, IngresoEgreso ingreso, IngresoEgreso egreso, ArrayList<Integer> respuesta) {
if (egreso.getMonto() + contador <= ingreso.getMonto()){
respuesta.add(egreso.getId());
return egreso.getMonto() + contador;
} else {
return contador;
}
}
}
| [
"[email protected]"
] | |
948f1cca227cd504ad6a15ab18d07c10c5d30ee1 | 22e8d75b9d5a7bf076fa91eb5dbb4c0b58b42286 | /webbeans-impl/src/main/java/org/apache/webbeans/proxy/OwbDecoratorProxy.java | e6c6b5f41a40e7b686ec218fd8174911e150f573 | [
"Apache-2.0"
] | permissive | apache/openwebbeans | 56888af1999edf5d22dc47ed5a87bfd8559ebe5e | 01245cf8ef0baaa9cd31342b0cdb075d314b6ef9 | refs/heads/main | 2023-08-31T23:32:19.832431 | 2023-02-25T12:58:57 | 2023-02-25T12:58:57 | 1,302,095 | 50 | 72 | Apache-2.0 | 2023-06-27T07:29:08 | 2011-01-28T08:00:11 | Java | UTF-8 | Java | false | false | 1,005 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.proxy;
import java.io.Serializable;
/**
* <p>Interface for all OpenWebBeans abstract Decorator subclasses.
*/
public interface OwbDecoratorProxy extends Serializable
{
}
| [
"[email protected]"
] | |
06e032e743e2c67cdd1afa7b18b9c41aab72e115 | 4dd876e6ce5b0ec0be1a66101dfe28209fd27298 | /eureka-service/src/test/java/com/avijit/stock/eurekaservice/EurekaServiceApplicationTests.java | 10fe10ff71c648712c5a0b0d1b9f1bbd2ca9b240 | [] | no_license | AaviJit/Assignment | 62b5652fb59a94e02e181213735648fd5dda4382 | d5c513b591a5d8112d44df63d48087ead0513b31 | refs/heads/master | 2020-03-23T12:43:12.077349 | 2018-07-19T12:36:25 | 2018-07-19T12:36:25 | 141,577,117 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 354 | java | package com.avijit.stock.eurekaservice;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class EurekaServiceApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"[email protected]"
] | |
88a9c52b4044712232211d7de8beaf306591ac66 | cd1beb449926580c6dc146a444c3ade8a2316021 | /workspace JUnit/Examples/src/Result.java | 5812a5abe26e1ff1b86c734f48e4577ac05a1721 | [] | no_license | garchit33/Workpace | c312de8af173b517e418acfc396d9a047fda625d | 7f2269e0565c21e6a9d6e16cb1a7a3300efd48d8 | refs/heads/master | 2022-05-08T21:43:55.279227 | 2022-03-11T16:35:28 | 2022-03-11T16:35:28 | 207,780,958 | 0 | 0 | null | 2022-03-11T16:35:49 | 2019-09-11T10:03:28 | Java | UTF-8 | Java | false | false | 1,145 | java | import java.util.Scanner;
interface S {
public int Rectangle(int l, int b);
public int Square(int a);
default double triangle(double base, double height){
return (0.5*base*height);
}
}
class CalArea1 implements S{
@Override
public int Rectangle(int l, int b) {
// TODO Auto-generated method stub
return l*b;
}
@Override
public int Square(int a) {
// TODO Auto-generated method stub
return a*a;
}
}
public class Result{
public static void main(String args[]) {
CalArea1 ca = new CalArea1();
Scanner sc = new Scanner(System.in);
System.out.println("Enter the length and breadth of rectangle : ");
int l = sc.nextInt();
int b = sc.nextInt();
System.out.println("Area of Rectangle is : "+ca.Rectangle(l, b));
System.out.println("Enter the side of Square");
int s = sc.nextInt();
System.out.println("Area of Square is : "+ca.Square(s));
System.out.println("Enter the base of triangle : ");
double base = sc.nextDouble();
System.out.println("Enter the height of triangle : ");
double height = sc.nextDouble();
System.out.println("Area of Triangle is : "+ca.triangle(base,height));
}
} | [
"[email protected]"
] | |
d9ea7c98abf1be982884659332a8d22440bc44bc | 3750a7935c11db01c51959c411a627a5992ff803 | /Framework.Text/src/main/java/sep/framework/text/match/BoyerMoore.java | e1906ebfb89905d7ce37af3a53bf58c3a4585f68 | [] | no_license | evangg/CodeSet | 12e8e3084cd00222a5b3affa1badf8396bc7f7ba | d0010f31d8b91f81e2913f8eba19064a2a6970d2 | refs/heads/master | 2021-01-23T20:55:17.913664 | 2013-03-28T07:50:06 | 2013-03-28T07:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,217 | java | package sep.framework.text.match;
final class BoyerMoore extends StringMatcher implements Cloneable {
private final int[] right = new int[radix]; // the bad-character skip array
public BoyerMoore(final CharSequence pattern) {
super(pattern);
}
public BoyerMoore(final CharSequence pattern, final int radix) {
super(pattern, radix);
}
@Override
protected void buildPattern() {
// position of rightmost occurrence of c in the pattern
for (int i = 0; i < radix; i++) {
right[i] = -1;
}
for (int i = 0; i < patternLength; i++) {
right[pattern.charAt(i)] = i;
}
}
@Override
public int search(final CharSequence targetContent) {
final int contentLength = targetContent.length();
int skip;
for (int i = 0; i <= contentLength - patternLength; i += skip) {
skip = 0;
for (int j = patternLength - 1; j >= 0; j--) {
if (pattern.charAt(j) != pattern.charAt(i + j)) {
skip = Math.max(1, j - right[pattern.charAt(i + j)]);
break;
}
}
if (skip == 0) {
return i; // found
}
}
return contentLength; // not found
}
@Override
public BoyerMoore clone() {
return new BoyerMoore(pattern, radix);
}
}
| [
"[email protected]"
] | |
c39545dce2ac3b00c969a7e67fa9fc83d88847ed | 0036aba73c506a4718dfd95c966c08226e495971 | /master_thesis/tools/PNG2PDF/src/DirFilter.java | 3cea2b710cc5f8ff8bff2ef30d6989d5d6fd3cdf | [] | no_license | shanboli/shanbolihomepage | 9567f7dbce8457439fdaf7a57709cacf034ea16e | 6b2cbbe7aabe62d4da1ac3aeafe6063c1a904b22 | refs/heads/master | 2021-01-10T20:14:20.987883 | 2012-05-09T14:27:56 | 2012-05-09T14:27:56 | 2,207,800 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 391 | java | import java.io.FilenameFilter;
import java.io.File;
import java.util.regex.Pattern;
class DirFilter implements FilenameFilter {
private Pattern pattern;
public DirFilter(String regex) {
pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
}
public boolean accept(File dir, String name) {
return pattern.matcher(name).matches();
}
} | [
"[email protected]"
] | |
389385448dcb139c42d51f9b4a0820404e559f2e | f73de5e21894419bf9485920fb8a821850a0fd1f | /TopAlbumsDemoApp/src/main/java/com/demo/albums/service/IRequestCounterService.java | 8f730141f5e39edcc4956cdef5952276be3c0180 | [] | no_license | ComaCola/topAlbums | fe1458174dcc359fee5b17c13c3e36714c0c9fc6 | 307956cdc625c135f3fa62d6ac05dd8c0ae3987e | refs/heads/main | 2023-02-24T02:32:32.306314 | 2021-01-26T22:23:05 | 2021-01-26T22:23:05 | 332,318,845 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 447 | java | package com.demo.albums.service;
/**
*
* @author Deividas
*/
public interface IRequestCounterService {
void incrementCachedRequestCounter();
void incrementNewRequestCounter();
void incrementRequestAfterLimitCounter();
void resetRequestCounters();
boolean isRequestLimitExceeded();
long getRequestLimit();
long getNewRequestCount();
long getCachedRequestCount();
long getRequestAfterLimitCount();
}
| [
"[email protected]"
] | |
244ffd3acd9d59910301f115ec64bcca0170f152 | 26183990a4c6b9f6104e6404ee212239da2d9f62 | /components/resource_management/src/java/tests/com/topcoder/management/resource/accuracytests/AccuracyTestHelper.java | d7ad0ddefc6423bf34228d6b2dc55ede1b1e97ab | [] | no_license | topcoder-platform/tc-java-components | 34c5798ece342a9f1804daeb5acc3ea4b0e0765b | 51b204566eb0df3902624c15f4fb69b5f99dc61b | refs/heads/dev | 2023-08-08T22:09:32.765506 | 2022-02-25T06:23:56 | 2022-02-25T06:23:56 | 138,811,944 | 0 | 8 | null | 2022-02-23T21:06:12 | 2018-06-27T01:10:36 | Rich Text Format | UTF-8 | Java | false | false | 4,342 | java | /*
* Copyright (C) 2006 TopCoder Inc., All Rights Reserved.
*/
package com.topcoder.management.resource.accuracytests;
import com.topcoder.util.config.ConfigManager;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Iterator;
/**
* <p>
* Helper class to simplify the accuracy testing.
* </p>
* @author TCSDEVELOPER
* @version 1.0
*/
final class AccuracyTestHelper {
/**
* <p>
* The private constructor to avoid creating instance of this class.
* </p>
*/
private AccuracyTestHelper() {
}
/**
* <p>
* Clear the namespaces in ConfigManager.
* </p>
* @throws Exception if configuration could not be clear.
*/
public static void clearNamespace() throws Exception {
ConfigManager cm = ConfigManager.getInstance();
Iterator it = cm.getAllNamespaces();
while (it.hasNext()) {
cm.removeNamespace((String) it.next());
}
}
/**
* <p>
* Clear the given tables from the database.
* </p>
* @param conn the Connection to execute.
* @param tables the array of table name to clear.
* @throws Exception if any error occurs.
*/
public static void clearTables(Connection conn, String[] tables) throws Exception {
Statement stmt = conn.createStatement();
try {
for (int i = 0; i < tables.length; i++) {
stmt.executeUpdate("DELETE FROM " + tables[i]);
}
} finally {
stmt.close();
}
}
/**
* <p>
* Convert the content of the given file to string.
* </p>
* @param filename the file to read.
* @return the content of the file.
* @throws Exception any exception occurs.
*/
public static String fileToString(String filename) throws Exception {
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(new File(filename))));
StringBuffer sb = new StringBuffer();
// Buffer for reading.
char[] buffer = new char[1024];
int k = 0;
// Read characters and append to string buffer
while ((k = reader.read(buffer)) != -1) {
sb.append(buffer, 0, k);
}
return sb.toString();
} finally {
reader.close();
}
}
/**
* <p>
* Run the sql statements in the specified file.
* </p>
* @param conn the Connection to execute.
* @param fileName the file of sqls.
* @throws Exception any exception occurs.
*/
public static void runSqlFromFile(Connection conn, String fileName) throws Exception {
Statement stmt = conn.createStatement();
try {
String[] sqls = fileToString(fileName).split("\\;");
// execute each sql.
for (int i = 0; i < sqls.length; i++) {
if (sqls[i].trim().length() > 0) {
stmt.execute(sqls[i]);
}
}
} finally {
stmt.close();
}
}
/**
* <p>
* Gets the record size from the database with the given table.
* </p>
* @param conn the Connection to execute.
* @param tableName the table name (tracking_info).
* @return the size of the record in given table.
* @throws Exception if any error occurs.
*/
public static int getTableSize(Connection conn, String tableName) throws Exception {
Statement statement = null;
ResultSet rs = null;
try {
statement = conn.createStatement();
rs = statement.executeQuery("SELECT COUNT(*) FROM " + tableName);
// return the size here.
rs.next();
return rs.getInt(1);
} finally {
if (rs != null) {
rs.close();
}
if (statement != null) {
statement.close();
}
}
}
}
| [
"[email protected]"
] | |
a7169bc4336dfc806131339fc97f7bad65f99327 | 8eb9afa414d5d6bebd421ffe7d35c48dd24e7ebd | /mobile/src/main/java/org/feona/pojo/Msg.java | f1b573c9f1c711017a05af83a3f1f66d7b6208ae | [] | no_license | kefei0324/_39suo | 556c24a5d55b7e4fae87dd981cf450a9eaeb40af | ffc68351454938843038b22cbd5fd4f2a6132e32 | refs/heads/master | 2021-08-10T22:05:41.245943 | 2017-11-13T01:08:52 | 2017-11-13T01:08:52 | 109,863,663 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,523 | java | package org.feona.pojo;
import java.util.Date;
public class Msg {
private Integer id;
private String data1;
private String data2;
private String data3;
private String data4;
private String data5;
private String data6;
private String data7;
private String data8;
private String data9;
private String data10;
private String data11;
private Date createtime;
private Date updatetime;
private Integer deviceid;
private Integer accountid;
private Integer status;
private String devicename;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getData1() {
return data1;
}
public void setData1(String data1) {
this.data1 = data1 == null ? null : data1.trim();
}
public String getData2() {
return data2;
}
public void setData2(String data2) {
this.data2 = data2 == null ? null : data2.trim();
}
public String getData3() {
return data3;
}
public void setData3(String data3) {
this.data3 = data3 == null ? null : data3.trim();
}
public String getData4() {
return data4;
}
public void setData4(String data4) {
this.data4 = data4 == null ? null : data4.trim();
}
public String getData5() {
return data5;
}
public void setData5(String data5) {
this.data5 = data5 == null ? null : data5.trim();
}
public String getData6() {
return data6;
}
public void setData6(String data6) {
this.data6 = data6 == null ? null : data6.trim();
}
public String getData7() {
return data7;
}
public void setData7(String data7) {
this.data7 = data7 == null ? null : data7.trim();
}
public String getData8() {
return data8;
}
public void setData8(String data8) {
this.data8 = data8 == null ? null : data8.trim();
}
public String getData9() {
return data9;
}
public void setData9(String data9) {
this.data9 = data9 == null ? null : data9.trim();
}
public String getData10() {
return data10;
}
public void setData10(String data10) {
this.data10 = data10 == null ? null : data10.trim();
}
public String getData11() {
return data11;
}
public void setData11(String data11) {
this.data11 = data11 == null ? null : data11.trim();
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
public Integer getDeviceid() {
return deviceid;
}
public void setDeviceid(Integer deviceid) {
this.deviceid = deviceid;
}
public Integer getAccountid() {
return accountid;
}
public void setAccountid(Integer accountid) {
this.accountid = accountid;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getDevicename() {
return devicename;
}
public void setDevicename(String devicename) {
this.devicename = devicename == null ? null : devicename.trim();
}
} | [
"[email protected]"
] | |
61d27f68c0773e2e4b05463ce9f56447f9c1c8d6 | 0afb41a3074630f0b2ebdf735ab426c8ad2eba18 | /Fibonacci.java | 33829fba47cf77f7817521ff1d7810a0e2f0ceba | [] | no_license | manuTRON/fibonacci | 49b07ab8142ec4706895cbd0e3e0cd9f4b4a22e3 | 8b4bfc239bc2bb86b960a49b1ed522cb4e321f74 | refs/heads/main | 2023-09-02T05:10:34.248755 | 2021-10-17T14:38:04 | 2021-10-17T14:38:04 | 418,150,463 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 387 | java | package assignment9;
public class Fibonacci {
public static void main(String args[]) {
printFibo(8);
}
public static int fibo(int num) {
if (num == 1 || num == 2) {
return 1;
}
return fibo(num - 1) + fibo(num - 2);
}
public static void printFibo(int num) {
if (num == 0) {
return;
} else {
printFibo(num - 1);
System.out.print(fibo(num) + " ");
}
}
}
| [
"[email protected]"
] | |
3911f9da94f72eacad298dcf78d833ea26e2b279 | f54c16756d703432d3c809f6b35358215e7ba599 | /sisarq/src/main/java/sisarq/rest/RESTfulHelloWorld.java | d482eaad422a203e58c305799f26941e8c62f68a | [] | no_license | cdmontanezg/sisarq | 4b197fbc46cb6e92f1da272712a0827f09f05baa | 0a9a6531920dfc4df73e8f8570809d3fb09cc18a | refs/heads/master | 2021-01-10T13:28:40.278028 | 2015-11-11T21:29:49 | 2015-11-11T21:29:49 | 44,151,773 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 513 | java | package sisarq.rest;
import java.util.Date;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
@Path("/")
public class RESTfulHelloWorld
{
@GET
@Produces("text/html")
public Response getStartingPage()
{
String output = "<h1>Hello World!<h1>" +
"<p>RESTful Service is running ... <br>Ping @ " + new Date().toString() + "</p<br>";
return Response.status(200).entity(output).build();
}
} | [
"[email protected]"
] | |
efc8e3632283c25bac75edf9a4dea9c4e58a0553 | 1ed6a958ab46c4ddf0794f4e2f01811bf00df36c | /Acme-Explorer/src/main/java/utilities/GenerateRepositoryService.java | c972ccb0c0199e7e4ed525f52790d19a7a536a6b | [] | no_license | MrMJ06/ProyectosDP | 3042d5a6af0eedabcecf97d8ef4df3592830a868 | 4c766fedcf7a2d82d9e3010239d81b0661483f9f | refs/heads/master | 2021-05-04T05:34:38.552264 | 2018-03-02T11:00:44 | 2018-03-02T11:00:44 | 120,339,531 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,940 | java |
package utilities;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class GenerateRepositoryService {
public static void main(final String[] args) {
final List<String> l = new ArrayList<String>();
l.add("ObjetoEjemplo");
GenerateRepositoryService.generateRepositories(l);
GenerateRepositoryService.generateServices(l);
}
// Repositories Generation Methods --------------------------------------------------
private static void generateRepositories(final List<String> l) {
for (final String s : l)
GenerateRepositoryService.generateRepository(s);
}
private static void generateRepository(final String s) {
final String sr = "\r\npackage repositories;\r\n\r\nimport org.springframework.data.jpa.repository." + "JpaRepository;\r\nimport org.springframework.stereotype.Repository;\r\n\r\nimport domain." + s + ";\r\n\r\n@Repository\r\npublic interface "
+ s + "Repository extends JpaRepository<" + s + ", Integer> {\r\n\r\n}";
final File file = new File("src//main//java//repositories//" + s + "Repository.java");
try {
GenerateRepositoryService.writeFile(file, sr);
} catch (final IOException e) {
e.printStackTrace();
}
}
// Service Generation Methods --------------------------------------------------
private static void generateServices(final List<String> l) {
for (final String s : l)
GenerateRepositoryService.generateService(s);
}
private static void generateService(final String s) {
final String sr = "package services;\r\n\r\nimport java.util.Collection;\r\n\r\nimport javax.transaction.Transactional;\r\n\r\nimport org.springf"
+ "ramework.beans.factory.annotation.Autowired;\r\nimport org.springframework.stereotype.Service;\r\nimport org.springframework.util.Assert;\r\n\r\nimport repositories."
+ s
+ "Repository;\r\nimport domain."
+ s
+ ";\r\n\r\n@Service\r\n@Transactional\r\npublic class "
+ s
+ "Service {\r\n\r\n\t// Managed repository --------------------------------------------------\r\n\r\n\t@Autowired\r\n\tprivate "
+ s
+ "Repository\t"
+ GenerateRepositoryService.toCase(s)
+ "Repository;\r\n\r\n\r\n\t// Supporting services --------------------------------------------------\r\n\r\n\t// Simple CRUD methods --------------------------------------------------\r\n\r\n\tpublic "
+ s
+ " create() {\r\n\t\t"
+ s
+ " result;\r\n\r\n\t\tresult = new "
+ s
+ "();\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tpublic Collection<"
+ s
+ "> findAll() {\r\n\r\n\t\tCollection<"
+ s
+ "> result;\r\n\r\n\t\tAssert.notNull(this."
+ GenerateRepositoryService.toCase(s)
+ "Repository);\r\n\t\tresult = this."
+ GenerateRepositoryService.toCase(s)
+ "Repository.findAll();\r\n\t\tAssert.notNull(result);\r\n\r\n\t\treturn result;\r\n\r\n\t}\r\n\r\n\tpublic "
+ s
+ " findOne(final int "
+ GenerateRepositoryService.toCase(s)
+ "Id) {\r\n\r\n\t\t"
+ s
+ " result;\r\n\r\n\t\tresult = this."
+ GenerateRepositoryService.toCase(s)
+ "Repository.findOne("
+ GenerateRepositoryService.toCase(s)
+ "Id);\r\n\r\n\t\treturn result;\r\n\r\n\t}\r\n\r\n\tpublic "
+ s
+ " save(final "
+ s
+ " "
+ GenerateRepositoryService.toCase(s)
+ ") {\r\n\r\n\t\tassert "
+ GenerateRepositoryService.toCase(s)
+ " != null;\r\n\r\n\t\t"
+ s
+ " result;\r\n\r\n\t\tresult = this."
+ GenerateRepositoryService.toCase(s)
+ "Repository.save("
+ GenerateRepositoryService.toCase(s)
+ ");\r\n\r\n\t\treturn result;\r\n\r\n\t}\r\n\r\n\tpublic void delete(final "
+ s
+ " "
+ GenerateRepositoryService.toCase(s)
+ ") {\r\n\r\n\t\tassert "
+ GenerateRepositoryService.toCase(s)
+ " != null;\r\n\t\tassert "
+ GenerateRepositoryService.toCase(s)
+ ".getId() != 0;\r\n\r\n\t\tAssert.isTrue(this."
+ GenerateRepositoryService.toCase(s)
+ "Repository.exists("
+ GenerateRepositoryService.toCase(s)
+ ".getId()));\r\n\r\n\t\tthis."
+ GenerateRepositoryService.toCase(s)
+ "Repository.delete("
+ GenerateRepositoryService.toCase(s)
+ ");\r\n\r\n\t}\r\n}\r\n";
final File file = new File("src//main//java//services//" + s + "Service.java");
try {
GenerateRepositoryService.writeFile(file, sr);
} catch (final IOException e) {
e.printStackTrace();
}
}
// Auxiliary Methods --------------------------------------------------
private static String toCase(final String s) {
final String res = s.substring(0, 1).toLowerCase() + s.substring(1);
return res;
}
private static void writeFile(final File file, final String s) throws IOException {
file.getParentFile().mkdirs();
file.delete();
file.createNewFile();
final FileWriter fw = new FileWriter(file);
final BufferedWriter out = new BufferedWriter(fw);
out.write(s);
out.newLine();
out.flush();
out.close();
}
}
| [
"[email protected]"
] | |
6d1ff6a452516d7b63588dd79113c97f86d86b93 | 373d47aecfa88b43c9dc5635ba7ecb608f02e5bc | /api/src/main/java/com/ecom/web/dto/ListingDtoReq.java | 0837a949b5792ae010d097a2d6065accb73f21c6 | [
"MIT"
] | permissive | jmavs21/e-commerce | 2e9af28ea39d04a43b46e078531e7a36ea2a1e23 | b4fe0281206642941af2a94fb34de3ee5629011e | refs/heads/master | 2023-03-29T14:08:41.601584 | 2021-04-07T23:26:49 | 2021-04-07T23:26:49 | 318,045,622 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 518 | java | package com.ecom.web.dto;
import java.util.List;
import javax.validation.constraints.NotBlank;
import org.springframework.web.multipart.MultipartFile;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class ListingDtoReq {
@NotBlank private String title;
private String description;
private List<MultipartFile> images;
@NotBlank private String price;
@NotBlank private String categoryId;
private String location;
public ListingDtoReq() {}
}
| [
"[email protected]"
] | |
3efe73a8b4b86b8ec0fe6d08219c121439df0246 | cb802cd7858f0c87c2e6b3fc2f87999de506b34b | /LibrarySystem/src/classes/Book.java | 8a494f036acf0774ea5cfd4c7a037140e3add907 | [
"MIT"
] | permissive | AP-Atul/Library-Management-System | f32a62daa7614f8895fd6938a3a6c4efba0cf81b | f0d8159b8fd04c2c995d2ffc5fc8468e6f931972 | refs/heads/master | 2021-06-24T05:44:26.750003 | 2020-11-21T12:48:32 | 2020-11-21T12:48:32 | 153,056,067 | 5 | 2 | null | null | null | null | UTF-8 | Java | false | false | 4,135 | java | package classes;
import java.util.*;
import java.net.*;
import java.io.*;
public class Book implements Serializable {
String bname, author, publ;
int quantity;
private Socket socket = null;
private ObjectInputStream inputStream = null;
private ObjectOutputStream outputStream = null;
private static final long serialVersionUID = 1L;
Scanner sc = new Scanner(System.in);
final HashSet<Book> hs = new HashSet<Book>();
Iterator<Book> it;
Book b;
public void add_books() {
System.out.println("Enter the book name ::");
bname = sc.next();
System.out.println("Enter the author name ::");
author = sc.next();
System.out.println("Enter the publication name ::");
publ = sc.next();
System.out.println("Enter number of copies ::");
quantity = sc.nextInt();
if (BookDB.save(bname, author, publ, quantity) == 0)
System.out.println("Book Added Successfully");
else
System.out.println("Book Not Added Successfully");
}
public void display_books() {
if (BookDB.disp() == 0)
System.out.println("No data found");
}
public boolean search_book() {
String key;
it = hs.iterator();
System.out.println("Enter the name of the book to search ::");
key = sc.next();
if (BookDB.search(key)) {
System.out.println("Book Found");
return true;
} else {
System.out.println("Book Not Found");
return false;
}
}
public void update_book() {
String key;
it = hs.iterator();
System.out.println("Enter the name of the book to search ::");
key = sc.next();
if (BookDB.del(key) == 0) {
System.out.println("Enter the author name ::");
author = sc.next();
System.out.println("Enter the publication name ::");
publ = sc.next();
System.out.println("Enter number of copies ::");
quantity = sc.nextInt();
if (BookDB.save(bname, author, publ, quantity) == 0)
System.out.println("Book Added Successfully");
} else
System.out.println("Book does not exists");
}
public void del_book() {
String key;
System.out.println("Enter the name of the book to search ::");
key = sc.next();
if (BookDB.del(key) == 0)
System.out.println("Book deleted successfully");
else
System.out.println("Book does not exist");
}
public void communicate(Book b) {
try {
socket = new Socket("localHost", 4045);
System.out.println("Connected");
inputStream = new ObjectInputStream(socket.getInputStream());
outputStream = new ObjectOutputStream(socket.getOutputStream());
while (!socket.isClosed()) {
String option = (String) inputStream.readObject();
// Checking the request made
// Sending all Books
if (option.toUpperCase().equals("ALL")) {
System.out.println("Option recieved for all books");
if (hs.size() == 0)
outputStream.writeObject(null);
else
outputStream.writeObject("all ok");
it = hs.iterator();
while (it.hasNext()) {
b = new Book();
b = it.next();
outputStream.writeObject(b.bname);
outputStream.writeObject(b.author);
outputStream.writeObject(b.publ);
outputStream.writeObject(b.quantity);
}
}
// Sending particular book
else if (option.toUpperCase().equals("SEARCH")) {
String key = (String) inputStream.readObject();
System.out.println("Option recieved for search");
it = hs.iterator();
if (hs.size() == 0)
outputStream.writeObject(null);
else
outputStream.writeObject("all ok");
int f = 0;// no book found
while (it.hasNext()) {
b = new Book();
b = it.next();
if (b.bname.equals(key)) {
outputStream.writeObject(b.bname);
outputStream.writeObject(b.author);
outputStream.writeObject(b.publ);
outputStream.writeObject(b.quantity);
f = 1;
}
}
if (f == 0) {
System.out.println("Book not found");
}
}
socket.close();
} // while end
} catch (Exception e) {
System.out.println("Data cannot be sent");
}
}
}
| [
"[email protected]"
] | |
2bd7a8407d68295535922af8e069ecdd4a59ee97 | 500e48856bad304354f81c0ec076007cbb1895d6 | /app/src/main/java/com/mvp/lee/mvpplayer/data/MusicItem.java | 03dbb2633a78aff647606b3b5879c0e9bf20c344 | [] | no_license | Dabin22/MP3Player | 7f2000117838fe4308d77694ec79244fc51a75f5 | ac08dcfb39bc8ab44b309cf9045176d668e65bd3 | refs/heads/master | 2021-01-23T07:44:01.639447 | 2017-03-28T09:08:37 | 2017-03-28T09:08:37 | 86,436,742 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,003 | java | package com.mvp.lee.mvpplayer.data;
import android.graphics.Bitmap;
import android.net.Uri;
/**
* Created by Lee on 2017-03-28.
*/
public class MusicItem {
private String music_id;
private Bitmap album_id;
private String title;
private String singer;
private Uri uri;
public String getMusic_id() {
return music_id;
}
public void setMusic_id(String music_id) {
this.music_id = music_id;
}
public Bitmap getAlbum_id() {
return album_id;
}
public void setAlbum_id(Bitmap album_id) {
this.album_id = album_id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSinger() {
return singer;
}
public void setSinger(String singer) {
this.singer = singer;
}
public Uri getUri() {
return uri;
}
public void setUri(Uri uri) {
this.uri = uri;
}
}
| [
"[email protected]"
] | |
2a8d977e87f8e1fc29120ebfe4399cc031f77208 | 50571369b68b63f475194325b3b97de8e098a848 | /src/com/zd/DAO/impl/ArticleTagRefImpl.java | 9ce88cf7f44505201e1e67ffb64e474ecaf751aa | [] | no_license | TanZD/blog | ea6c9a830fc7d066cf4acff58c056d4a78639e98 | 0e71a96261426697f24c431aa863c71a53eaa001 | refs/heads/master | 2022-10-03T20:10:37.318482 | 2020-06-10T07:51:30 | 2020-06-10T07:51:30 | 258,716,556 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,503 | java | package com.zd.DAO.impl;
import org.springframework.stereotype.Repository;
import com.zd.DAO.ArticleTagRef;
@Repository("ArticleTagRef")
public class ArticleTagRefImpl extends BaseDAOImpl implements ArticleTagRef {
@Override
public Integer deleteByArticleId(int article_id) {
String sql = "DELETE FROM article_tag_ref WHERE article_id=:a_id";
return getSession().createSQLQuery(sql).setParameter("a_id", article_id).executeUpdate();
}
@Override
public Integer deleteByTagId(int tag_id) {
String sql = "DELETE FROM article_tag_ref WHERE tag_id=:t_id";
return getSession().createSQLQuery(sql).setParameter("t_id", tag_id).executeUpdate();
}
@Override
public Integer getCountByArticleId(int article_id) {
String sql = "SELECT COUNT(*) FROM article_tag_ref WHERE article_id=:a_id";
Object object = getSession().createSQLQuery(sql).setParameter("a_id", article_id).list().get(0);
return Integer.valueOf(object.toString());
}
@Override
public Integer getCountByTagId(int tag_id) {
String sql = "SELECT COUNT(*) FROM article_tag_ref WHERE tag_id=:t_id";
Object object = getSession().createSQLQuery(sql).setParameter("t_id", tag_id).list().get(0);
return Integer.valueOf(object.toString());
}
@Override
public Integer add(int article_id, int tag_id) {
String sql = "INSERT INTO article_tag_ref(article_id,tag_id) VALUES(:a_id,:t_id)";
return getSession().createSQLQuery(sql).setParameter("a_id", article_id).setParameter("t_id", tag_id)
.executeUpdate();
}
}
| [
"[email protected]"
] | |
8b83797ceb89e2bc4d37b06f5df5d8d7a20366a2 | 533b5712c85c3fb29d78cb00e671784a2433ca66 | /src/com/syntax/class19/CalculateMilage.java | e50111143fe693a92af39d59011925c61ee180e7 | [] | no_license | HafizullahQambari/MyBasicJavaProject | 0914a193f982b111528ec098c199277ef5c29794 | 3a26b321c3c6890e9eb7b62eab8243fd0fa22876 | refs/heads/master | 2021-04-14T15:07:34.124930 | 2020-05-09T18:57:05 | 2020-05-09T18:57:05 | 249,240,375 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,606 | java | package com.syntax.class19;
import java.util.Scanner;
public class CalculateMilage
{
public static void main(String[] args)
{
float AvgMPG = 0;
int MilesDriven = 0;
int totalTrips = 0;
int GallonsUsed = 0;
int totalMilesPerGallon = 0;
int MilesPerGallon = 0;
Scanner input = new Scanner(System.in);
System.out.println("Enter Miles Driven or -1 to quit: ");
MilesDriven = input.nextInt();
System.out.println("Enter Gallons used to fill tank or -1 to quit: ");
GallonsUsed = input.nextInt();
while ( MilesDriven != -1)
{
MilesPerGallon = MilesDriven / GallonsUsed;
System.out.println("Miles Per Gallon for this trip: " +MilesPerGallon);
totalMilesPerGallon = MilesPerGallon + totalMilesPerGallon;
totalTrips = totalTrips + 1;
System.out.println("Enter Miles Driven or -1 to quit: ");
MilesDriven = input.nextInt();
System.out.println("Enter Gallons used to fill tank or -1 to quit: ");
GallonsUsed = input.nextInt();
}
if (totalTrips != 0)
{
System.out.println("Number of trips taken: "+ totalTrips);
AvgMPG = (float) totalMilesPerGallon / totalTrips;
System.out.println("Total Miles Per Gallon for all trips is :" +totalMilesPerGallon);
System.out.println("Average Miles Per Gallon Per Trip is :" +AvgMPG);
}
else
System.out.println("No data entered");
}
} | [
"[email protected]"
] | |
5d8e02557a98cccc2af9ca13742d97c9df6cd61f | 28ca9560bcfb3929bc1116a28ed403afc2fcb89e | /branches/desync/zofar.presentation.surveyEngine.ui-desync/src/main/java/de/his/zofar/presentation/surveyengine/ui/renderer/display/TableRenderer.java | 3aad6cffdaa3c4d219203bdc594dc076d7a1e4b1 | [] | no_license | dzhw/zofar | 57bfce7de413e11ca5e5463b655642a05fc7e117 | fb8fc9fce622e3d472e310cd072f9ca83ea50611 | refs/heads/master | 2023-08-10T12:16:22.837000 | 2023-07-25T10:43:57 | 2023-07-25T10:43:57 | 96,410,596 | 26 | 2 | null | 2022-06-21T06:52:06 | 2017-07-06T09:04:49 | null | UTF-8 | Java | false | false | 7,403 | java | /*START HEADER*/
/* Zofar Survey System
* Copyright (C) 2014 Deutsches Zentrum für Hochschul- und Wissenschaftsforschung
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*STOP HEADER*/
package de.his.zofar.presentation.surveyengine.ui.renderer.display;
import java.io.IOException;
import java.util.List;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
import javax.faces.render.Renderer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.his.zofar.presentation.surveyengine.ui.components.display.UIDisplayTable;
import de.his.zofar.presentation.surveyengine.ui.components.display.UIDisplayTableBody;
import de.his.zofar.presentation.surveyengine.ui.components.display.UIDisplayTableHeader;
import de.his.zofar.presentation.surveyengine.ui.components.display.UIDisplayTableItem;
import de.his.zofar.presentation.surveyengine.ui.components.display.UIDisplayTableRow;
/**
* @author meisner
*
*/
@FacesRenderer(componentFamily = UIDisplayTable.COMPONENT_FAMILY, rendererType = TableRenderer.RENDERER_TYPE)
public class TableRenderer extends Renderer {
private static final Logger LOGGER = LoggerFactory
.getLogger(TableRenderer.class);
public static final String RENDERER_TYPE = "org.zofar.display.table";
private int rowCounter;
public TableRenderer() {
super();
}
@Override
public void encodeBegin(FacesContext context, UIComponent component)
throws IOException {
if(component == null)return;
if (!component.isRendered())return;
final ResponseWriter writer = context.getResponseWriter();
writer.startElement("table", component);
writer.writeAttribute("id", component.getClientId(), null);
writer.writeAttribute("style","vertical-align:middle;text-align:center;", null);
writer.writeAttribute("class","zo-display-table", null);
}
@Override
public void encodeChildren(FacesContext context, UIComponent component)
throws IOException {
if(component == null)return;
if (!component.isRendered())return;
this.encodeChildrenHelper(context, component, component.getChildren(),retrieveColumnCount(component));
}
private int retrieveColumnCount(
final UIComponent component) throws IOException {
int count = 0;
for (final UIComponent child : component.getChildren()) {
if((UIDisplayTableHeader.class).isAssignableFrom(child.getClass())){
int headerCount = child.getChildCount();
count = Math.max(count, headerCount);
}
if((UIDisplayTableBody.class).isAssignableFrom(child.getClass())){
int maxItemCount = 0;
for (final UIComponent row : child.getChildren()) {
maxItemCount = Math.max(row.getChildCount(), maxItemCount);
}
count = Math.max(count, maxItemCount);
}
}
return count;
}
private void encodeChildrenHelper(final FacesContext context,
final UIComponent component, final List<UIComponent> children,final int colCount) throws IOException {
final ResponseWriter writer = context.getResponseWriter();
for (final UIComponent child : children) {
if((UIDisplayTableHeader.class).isAssignableFrom(child.getClass()))addHeader(context,(UIDisplayTableHeader)child,writer,colCount);
if((UIDisplayTableBody.class).isAssignableFrom(child.getClass()))addBody(context,(UIDisplayTableBody)child,writer,colCount);
}
}
@Override
public void encodeEnd(FacesContext context, UIComponent component)
throws IOException {
if(component == null)return;
if (!component.isRendered())return;
final ResponseWriter writer = context.getResponseWriter();
writer.endElement("table");
}
private void addHeader(final FacesContext context,final UIDisplayTableHeader component,final ResponseWriter writer,final int colCount) throws IOException{
if(component == null)return;
if (!component.isRendered())return;
writer.startElement("tr", component);
writer.writeAttribute("id", component.getClientId(), null);
int lft = 0;
for (final UIComponent child : component.getChildren()) {
writer.startElement("th", component);
writer.writeAttribute("style","padding:4px;vertical-align:middle;text-align:center;", null);
writer.writeAttribute("class","zo-display-table-header-item", null);
writer.writeAttribute("id", child.getClientId(), null);
child.encodeAll(context);
writer.endElement("th");
lft = lft + 1;
}
while(lft < colCount){
writer.startElement("th", component);
writer.writeAttribute("style","padding:4px;vertical-align:middle;text-align:center;", null);
writer.writeAttribute("class","zo-display-table-header-item zo-display-table-header-item-empty", null);
writer.endElement("th");
lft = lft + 1;
}
writer.endElement("tr");
}
private void addBody(final FacesContext context,final UIDisplayTableBody component,final ResponseWriter writer,final int colCount) throws IOException{
if(component == null)return;
if (!component.isRendered())return;
rowCounter=0;
for (final UIComponent child : component.getChildren()) {
if((UIDisplayTableRow.class).isAssignableFrom(child.getClass()))addRow(context,(UIDisplayTableRow)child,writer,colCount);
}
}
private void addRow(final FacesContext context,final UIDisplayTableRow component,final ResponseWriter writer,final int colCount) throws IOException{
if(component == null)return;
if (!component.isRendered())return;
writer.startElement("tr", component);
writer.writeAttribute("id", component.getClientId(), null);
writer.writeAttribute("class", "zo-display-row-"+rowCounter, null);
int lft = 0;
for (final UIComponent child : component.getChildren()) {
if((UIDisplayTableItem.class).isAssignableFrom(child.getClass())){
addItem(context,(UIDisplayTableItem)child,writer,colCount);
lft = lft + 1;
}
}
while(lft < colCount){
writer.startElement("td", component);
writer.writeAttribute("style","padding:4px;vertical-align:middle;text-align:center;", null);
writer.writeAttribute("class","zo-display-table-body-item zo-display-table-body-item-empty", null);
writer.endElement("td");
lft = lft + 1;
}
writer.endElement("tr");
rowCounter++;
}
private void addItem(final FacesContext context,final UIDisplayTableItem component,final ResponseWriter writer,final int colCount) throws IOException{
if(component == null)return;
if (!component.isRendered())return;
writer.startElement("td", component);
writer.writeAttribute("id", component.getClientId(), null);
writer.writeAttribute("style","padding:4px;vertical-align:middle;text-align:center;", null);
writer.writeAttribute("class","zo-display-table-body-item", null);
for (final UIComponent child : component.getChildren()) {
child.encodeAll(context);
}
writer.endElement("td");
}
@Override
public boolean getRendersChildren() {
return true;
}
}
| [
"meisner@DZHW0409"
] | meisner@DZHW0409 |
b0ad05627f25e146e0c22fa74ab171d0af342629 | 5a261f113661e732e052e202ddf55616d8202912 | /app/src/main/java/com/example/PriceAlert2020/MainActivity.java | 3f8eadcd374b56bcb06563a4bcd2134316e64abe | [] | no_license | CxHx/DebugApp | 98f84fcb66db9825623c410e91ff038c5841e536 | d8c2912faa665cd853d6bd4c418cbd339e9bf24f | refs/heads/master | 2022-08-24T02:14:22.403930 | 2020-05-17T08:53:57 | 2020-05-17T08:53:57 | 264,437,684 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 532 | java | package com.example.PriceAlert2020;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void goNext(View view) {
Intent intent = new Intent(this, ProfilePage.class);
startActivity(intent);
}
}
| [
"[email protected]"
] | |
2bc5e4f3c0adf07ed4454cc383e62be393aa24ee | a389fac72faa6f9ba4f8aa9f70d9e6a4cb7bb462 | /Chapter 06/Ch06/src/main/java/org/packt/hotel/portal/service/UserService.java | 21b09718f463901d4b756db2463a44e547defe5e | [
"MIT"
] | permissive | PacktPublishing/Spring-MVC-Blueprints | a0e481dd7a8977a64fa4aa0876ab48b5c78139d0 | 14fe9a0889c75f31014f2ebdb2184f40cd7e1da0 | refs/heads/master | 2023-03-13T01:47:20.470661 | 2023-01-30T09:03:09 | 2023-01-30T09:03:09 | 65,816,732 | 27 | 42 | MIT | 2023-02-22T03:32:27 | 2016-08-16T12:04:50 | Java | UTF-8 | Java | false | false | 416 | java | package org.packt.hotel.portal.service;
import java.util.List;
import org.packt.hotel.portal.model.form.JoinUserProfileForm;
import org.packt.hotel.portal.model.form.LoginForm;
import org.packt.hotel.portal.model.form.ProfileForm;
public interface UserService {
public void addUser(ProfileForm form);
public List<JoinUserProfileForm> getUserProfiles();
public boolean checkUser(LoginForm loginForm);
}
| [
"[email protected]"
] | |
7a58c6a733337c13ad617101d322d5b712ba1bc8 | d42c50e69fcb74bc56687ca413a28efc0f54c55f | /kodilla-patterns2/src/test/java/com/kodilla/patterns2/adapter/company/SalaryAdapterTestSuite.java | fc88d6c0aad21217784a453dc2d2d8d8bdb50456 | [] | no_license | KatarzynaStaniak/katarzyna-staniak-kodilla-java | fe3372474b9f07269dc85be8fdd21c74e3e16814 | c3be5c01979f462dff23dfd0dfd33e99fc79026a | refs/heads/master | 2020-04-19T10:49:41.394238 | 2019-06-25T12:12:46 | 2019-06-25T12:12:46 | 168,150,851 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 610 | java | package com.kodilla.patterns2.adapter.company;
import com.kodilla.patterns2.adapter.company.oldhrsystem.Workers;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class SalaryAdapterTestSuite {
@Test
public void testTotalSalary() {
//Given
Workers workers = new Workers();
SalaryAdapter salaryAdapter = new SalaryAdapter();
//When
double totalSalary = salaryAdapter.TotalSalary(workers.getWorkers(), workers.getSalaries());
//Then
System.out.println(totalSalary);
assertEquals(totalSalary, 27750, 0);
}
}
| [
"[email protected]"
] | |
6a60690da13c30c2eca87724ab99c6eb1e918064 | 14c5694fcd6adeefdaf2f03d22a2dcc7d82f4704 | /Sprinkles/src/framework/Disabled.java | 32c66fe477b164e9a00cc61da84927cb6e29667a | [] | no_license | Spectrum3847/Robot-Sprinkles | 3da7289daf831cf7cbf6187a90ce75f892396dba | cb4cd1b9977bea10bab1a9c23a2dd9f6b88c23aa | refs/heads/master | 2021-01-10T22:10:06.405021 | 2014-07-18T00:43:43 | 2014-07-18T00:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 677 | java | package framework;
import commands.CommandBase;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
* @author matthew
*/
public class Disabled {
static int t = 0;
static boolean b = true;
public static void init() {
Scheduler.getInstance().removeAll();
}
public static void periodic() {
//Flash a light on the dashboard while disabled, know that the dashboard is refreshing.
if (t > 20) {
t = 0;
b = !b;
SmartDashboard.putBoolean("Disabled Toggle", b);
}
t++;
}
public static void continuous() {
}
}
| [
"[email protected]"
] | |
0935b21734569d8c16b1d24304f6edcc66227c6d | b1ec13f18d4cec98bde3006044fa9c83bb568846 | /personcatch/src/test/java/com/shouqi/lib/personcatch/ExampleUnitTest.java | efa4c6d0f4892116652e7b511e92a766f9bb2f26 | [] | no_license | fangligen/mirrorlauncher | 23d5a364a517a4a99385bfee9d26d5dc42318504 | b3d9cc37a70af321f57adc56391960eb0c57592d | refs/heads/master | 2020-07-16T16:36:10.404445 | 2019-09-02T09:43:03 | 2019-09-02T09:43:03 | 205,825,276 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 375 | java | package com.shouqi.lib.personcatch;
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() {
assertEquals(4, 2 + 2);
}
} | [
"[email protected]"
] | |
0975a40b20eb5f9a791cea802abd56ce8ece2287 | be13aad294545af7f471146d7aa43e46820941de | /outsource/user-edge-service/src/main/java/com/user/redis/RedisConfig.java | 5910ccf0608d73e73b7f6eae224fb49221177c13 | [] | no_license | 929314401/my-compele | 514a4b016b6e0206851d4bce7875651a2d4ab596 | 3beb8d3de8dfc07326fcc57e61840af41bf024dc | refs/heads/master | 2020-05-07T13:59:08.887039 | 2019-04-10T12:07:04 | 2019-04-10T12:07:04 | 180,571,199 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,707 | java | package com.user.redis;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.cache.RedisCacheManager;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.jedis.JedisConnection;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
/**
* Redis缓存配置类
*/
@Configuration
@EnableCaching
public class RedisConfig extends CachingConfigurerSupport {
@Value("${spring.redis.host}")
private String host;
@Value("${spring.redis.port}")
private int port;
@Value("${spring.redis.timeout}")
private int timeout;
//缓存管理器
@Bean
public CacheManager cacheManager(RedisTemplate redisTemplate) {
RedisCacheManager cacheManager = new RedisCacheManager(redisTemplate);
//设置缓存过期时间
cacheManager.setDefaultExpiration(10000);
return cacheManager;
}
@Bean
public JedisConnectionFactory redisConnectionFactory() {
JedisConnectionFactory factory = new JedisConnectionFactory();
factory.setHostName(host);
factory.setPort(port);
factory.setTimeout(timeout);
return factory;
}
@Bean
public RedisTemplate<String, String> redisTemplate(RedisConnectionFactory factory){
StringRedisTemplate template = new StringRedisTemplate(factory);
setSerializer(template);//设置序列化工具
template.afterPropertiesSet();
return template;
}
private void setSerializer(StringRedisTemplate template){
Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class);
ObjectMapper om = new ObjectMapper();
om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
jackson2JsonRedisSerializer.setObjectMapper(om);
template.setValueSerializer(jackson2JsonRedisSerializer);
}
}
| [
"[email protected]"
] | |
d93182f907b411085492641e005eb45f7df4881d | 1065089498b9f87457f53e257d6498b9b154fd83 | /2.JavaCore/src/com/javarush/task/task16/task1612/Solution.java | 4009c398116d98086cfb44edffa11f14875a9cb4 | [] | no_license | Bassadanza/JavaRushTasks | f9746d53320655523309ca7350a262174e34edd1 | c48c40ccc99d61e18c5b0cbfb32a67471c6bed53 | refs/heads/master | 2021-08-31T14:18:49.052596 | 2017-12-21T13:43:52 | 2017-12-21T13:43:52 | 115,024,319 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,800 | java | package com.javarush.task.task16.task1612;
/*
Stopwatch (Секундомер)
*/
public class Solution {
public static volatile boolean isStopped = false;
public static void main(String[] args) throws InterruptedException {
Runner ivanov = new Runner("Ivanov", 4);
Runner petrov = new Runner("Petrov", 2);
//на старт!
//внимание!
//марш!
ivanov.start();
petrov.start();
Thread.sleep(2000);
isStopped = true;
Thread.sleep(1000);
}
public static class Stopwatch extends Thread {
private Runner owner;
private int stepNumber;
public Stopwatch(Runner runner) {
this.owner = runner;
}
public void run() {
try {
while (!isStopped) {
doStep();
}
} catch (InterruptedException e) {
}
}
private void doStep() throws InterruptedException {
stepNumber++;
long a = (long) owner.getSpeed();
Thread.sleep(1000/a);
//add your code here - добавь код тут
System.out.println(owner.getName() + " делает шаг №" + stepNumber + "!");
}
}
public static class Runner {
Stopwatch stopwatch;
private String name;
private int speed;
public Runner(String name, int speed) {
this.name = name;
this.speed = speed;
this.stopwatch = new Stopwatch(this);
}
public String getName() {
return name;
}
public int getSpeed() {
return speed;
}
public void start() {
stopwatch.start();
}
}
}
| [
"[email protected]"
] | |
c3f5b99d5d669f84308c6f967b509ac3073cafde | f471386e783bec20633c1f5ec0aaf992303246de | /bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/KubernetesNetworkConfig.java | 981f0b876a88a6b20bf0fc831124b7c9f4b9f1fd | [
"Apache-2.0",
"UPL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hasmukh-dalsaniya/oci-java-sdk-1 | 8f3804107a0aae7f079b4c394b4d86bbe5ec04c5 | ff5762be0400cfb1a45edbebac73457654ca5eab | refs/heads/master | 2020-03-27T23:37:07.149447 | 2018-08-23T18:25:06 | 2018-08-23T18:25:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,356 | java | /**
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
*/
package com.oracle.bmc.containerengine.model;
/**
* The properties that define the network configuration for Kubernetes.
* <br/>
* Note: This model distinguishes fields that are {@code null} because they are unset from fields that are explicitly
* set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a set of all
* explicitly set fields called {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods
* are implemented to take {@link #__explicitlySet__} into account. The constructor, on the other hand, does not
* set {@link #__explicitlySet__} (since the constructor cannot distinguish explicit {@code null} from unset
* {@code null}). As a consequence, objects should always be created or deserialized using the {@link Builder}.
**/
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222")
@lombok.Value
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = KubernetesNetworkConfig.Builder.class
)
@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
public class KubernetesNetworkConfig {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
@com.fasterxml.jackson.annotation.JsonProperty("podsCidr")
private String podsCidr;
public Builder podsCidr(String podsCidr) {
this.podsCidr = podsCidr;
this.__explicitlySet__.add("podsCidr");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("servicesCidr")
private String servicesCidr;
public Builder servicesCidr(String servicesCidr) {
this.servicesCidr = servicesCidr;
this.__explicitlySet__.add("servicesCidr");
return this;
}
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set<String> __explicitlySet__ = new java.util.HashSet<String>();
public KubernetesNetworkConfig build() {
KubernetesNetworkConfig __instance__ =
new KubernetesNetworkConfig(podsCidr, servicesCidr);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(KubernetesNetworkConfig o) {
Builder copiedBuilder = podsCidr(o.getPodsCidr()).servicesCidr(o.getServicesCidr());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
}
}
/**
* Create a new builder.
*/
public static Builder builder() {
return new Builder();
}
/**
* The CIDR block for Kubernetes pods.
**/
@com.fasterxml.jackson.annotation.JsonProperty("podsCidr")
String podsCidr;
/**
* The CIDR block for Kubernetes services.
**/
@com.fasterxml.jackson.annotation.JsonProperty("servicesCidr")
String servicesCidr;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set<String> __explicitlySet__ = new java.util.HashSet<String>();
}
| [
"[email protected]"
] | |
55c271d86f014cffeccebce92096b48ae82d97ac | 96076d7e0205cae44df4497df26377db731fc0f0 | /app/src/main/java/com/rockerhieu/emojicon/EmojiView.java | b5e2b20fece07fa8d9a26bb8ff51712f59711065 | [] | no_license | CiaoIM/emojicon | afd62e120802ce25fd368c985ea5c2b102f3a6b3 | 4c9a3fdee34f03c5aface82c826ca97fefc2ce64 | refs/heads/master | 2020-12-25T13:34:28.223040 | 2016-08-05T08:05:27 | 2016-08-05T08:05:27 | 65,000,816 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,678 | java | package com.rockerhieu.emojicon;
import android.content.Context;
import android.database.DataSetObserver;
import android.graphics.drawable.GradientDrawable;
import android.os.Handler;
import android.os.SystemClock;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.LinearLayout;
import com.rockerhieu.emojicon.emoji.Emojicon;
import com.rockerhieu.emojicon.emoji.Nature;
import com.rockerhieu.emojicon.emoji.Objects;
import com.rockerhieu.emojicon.emoji.People;
import com.rockerhieu.emojicon.emoji.Places;
import com.rockerhieu.emojicon.emoji.Symbols;
import java.util.ArrayList;
/**
* Created by kuFEAR on 7/30/14.
*/
public class EmojiView extends LinearLayout {
private onEmojiClickListener onEmojiClickListener;
public static final int EMOJI_DARK_STYLE = 0;
public static final int EMOJI_LIGHT_STYLE = 1;
private static final int[] icons = {
R.drawable.ic_emoji_people_light,
R.drawable.ic_emoji_nature_light,
R.drawable.ic_emoji_objects_light,
R.drawable.ic_emoji_places_light,
R.drawable.ic_emoji_symbols_light};
private static final Emojicon[][] emojiData = {
People.DATA,
Nature.DATA,
Objects.DATA,
Places.DATA,
Symbols.DATA
};
private ArrayList<GridView> views = new ArrayList<GridView>();
// Views
private ViewPager emojisPager;
private PagerSlidingTabStrip tabs;
public EmojiView(Context context, int style, onEmojiClickListener onEmojiClickListener) {
super(context);
this.onEmojiClickListener = onEmojiClickListener;
setup(context, style);
}
public EmojiView(Context context, int style, AttributeSet attrs, onEmojiClickListener onEmojiClickListener) {
super(context, attrs);
this.onEmojiClickListener = onEmojiClickListener;
setup(context, style);
}
/* SETUP EMOJI VIEW */
private void setup(Context context, int style) {
// Set Views and viewParams
setOrientation(VERTICAL);
switch (style) {
case EMOJI_DARK_STYLE:
// Light emoji background
setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-14145496, -16777216}));
break;
case EMOJI_LIGHT_STYLE:
//Dark emoji background
setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{0xffffffff, 0xffffffff}));
break;
}
LayoutInflater inflater = LayoutInflater.from(context);
View view = inflater.inflate(R.layout.emojicons, this, true);
emojisPager = (ViewPager) findViewById(R.id.emojis_pager);
tabs = (PagerSlidingTabStrip) view.findViewById(R.id.tabs);
if (isInEditMode()) return;
// Set Emoji pages
for (Emojicon[] emojicons : emojiData) {
View gridViewItem = inflater.inflate(R.layout.emojicon_grid, this, false);
GridView gridView = (GridView) gridViewItem.findViewById(R.id.Emoji_GridView);
gridView.setAdapter(new EmojiAdapter(context, emojicons, onEmojiClickListener));
views.add(gridView);
}
emojisPager.setAdapter(new EmojisPagerAdapter());
tabs.setViewPager(emojisPager);
tabs.setShouldExpand(true);
tabs.setIndicatorColor(0xff33b5e5);
tabs.setIndicatorHeight(6);
tabs.setUnderlineHeight(6);
tabs.setUnderlineColor(0x66000000);
tabs.setTabBackground(0);
// Backspace onClickListener
view.findViewById(R.id.emoji_backspace).setOnTouchListener(new RepeatListener(1000, 50, new OnClickListener() {
@Override
public void onClick(View v) {
onEmojiClickListener.onBackspace();
}
}));
}
/**
* Input method for add emoji to EditText, should be call by onEmojiSelected(Emojicon)
*/
public static void input(EditText editText, Emojicon emojicon) {
if (editText == null || emojicon == null) {
return;
}
int start = editText.getSelectionStart();
int end = editText.getSelectionEnd();
if (start < 0) {
editText.append(emojicon.getEmoji());
} else {
editText.getText().replace(
Math.min(start, end),
Math.max(start, end),
emojicon.getEmoji(),
0,
emojicon.getEmoji().length()
);
}
}
public void setOnEmojiClickListener(onEmojiClickListener paramOnEmojiClickListener) {
this.onEmojiClickListener = paramOnEmojiClickListener;
}
private class EmojisPagerAdapter extends PagerAdapter implements PagerSlidingTabStrip.IconTabProvider {
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
View localObject = views.get(position);
container.removeView(localObject);
}
public int getPageIconResId(int position) {
return icons[position];
}
@Override
public int getItemPosition(Object object) {
return super.getItemPosition(object);
}
public EmojisPagerAdapter() {
super();
}
@Override
public int getCount() {
return icons.length;
}
@Override
public boolean isViewFromObject(View view, Object object) {
return view == object;
}
@Override
public void unregisterDataSetObserver(DataSetObserver observer) {
if (observer != null) {
super.unregisterDataSetObserver(observer);
}
}
@Override
public Object instantiateItem(ViewGroup container, int position) {
View localObject = views.get(position);
container.addView(localObject);
return localObject;
}
}
/**
* A class, that can be used as a TouchListener on any view (e.g. a Button).
* It cyclically runs a clickListener, emulating keyboard-like behaviour. First
* click is fired immediately, next before initialInterval, and subsequent before
* normalInterval.
* <p/>
* <p>Interval is scheduled before the onClick completes, so it has to run fast.
* If it runs slow, it does not generate skipped onClicks.
*/
public static class RepeatListener implements View.OnTouchListener {
private Handler handler = new Handler();
private int initialInterval;
private final int normalInterval;
private final View.OnClickListener clickListener;
private Runnable handlerRunnable = new Runnable() {
@Override
public void run() {
if (downView == null) {
return;
}
handler.removeCallbacksAndMessages(downView);
handler.postAtTime(this, downView, SystemClock.uptimeMillis() + normalInterval);
clickListener.onClick(downView);
}
};
private View downView;
/**
* @param initialInterval The interval before first click event
* @param normalInterval The interval before second and subsequent click
* events
* @param clickListener The OnClickListener, that will be called
* periodically
*/
public RepeatListener(int initialInterval, int normalInterval,
View.OnClickListener clickListener) {
if (clickListener == null)
throw new IllegalArgumentException("null runnable");
if (initialInterval < 0 || normalInterval < 0)
throw new IllegalArgumentException("negative interval");
this.initialInterval = initialInterval;
this.normalInterval = normalInterval;
this.clickListener = clickListener;
}
public boolean onTouch(View view, MotionEvent motionEvent) {
switch (motionEvent.getAction()) {
case MotionEvent.ACTION_DOWN:
downView = view;
handler.removeCallbacks(handlerRunnable);
handler.postAtTime(
handlerRunnable, downView, SystemClock.uptimeMillis() + initialInterval);
clickListener.onClick(view);
return true;
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_OUTSIDE:
handler.removeCallbacksAndMessages(downView);
downView = null;
return true;
}
return false;
}
}
public static abstract interface onEmojiClickListener {
public abstract void onBackspace();
public abstract void onEmojiSelected(Emojicon emojicon);
}
} | [
"[email protected]"
] | |
4ac21f6e772659fa11fdeff26d9b71c54b5c6a5a | 0e6dec4743b2e806397b82f4243d7cf5712617d2 | /src/main/java/com/basementcrew/ld32/data/loaders/SequenceLoader.java | ff1c2b535f52c70feabebb7612413fe004e898e2 | [
"MIT"
] | permissive | BasementCrewOmega/LD32 | 5f40e485570582ad81f75fdaf816986a6b569653 | 0022249de94a3d0c90da8d8dcbd242f8608af7f2 | refs/heads/master | 2021-01-23T07:21:23.468259 | 2015-04-21T01:06:06 | 2015-04-21T01:06:06 | 34,148,363 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 726 | java | package com.basementcrew.ld32.data.loaders;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.sound.midi.InvalidMidiDataException;
import javax.sound.midi.MidiSystem;
import javax.sound.midi.Sequence;
import bropals.lib.simplegame.io.AssetLoader;
import bropals.lib.simplegame.logger.ErrorLogger;
public class SequenceLoader extends AssetLoader<Sequence> {
@Override
public void loadAsset(String key, InputStream is) {
try {
is = new BufferedInputStream(is);
Sequence seq = MidiSystem.getSequence(is);
add(key, seq);
} catch (InvalidMidiDataException | IOException e) {
e.printStackTrace(ErrorLogger.getErr());
}
}
}
| [
"[email protected]"
] | |
f96bebe53094b4e1c37935647d1c0ab0ff6b0990 | 4eeee0ea6ea1cf836c4137a8781d9cf14d38b356 | /artisan_order/order-server/src/main/java/com/artisan/order/form/OrderForm.java | 761cdbd18281bdf0e75500d329b769587905075c | [] | no_license | cruelmurder/springcloud-micro-o2o | 27fe275959ff362171a61f706329e75b14e75690 | 5174fa11096c24b578942523339948b589d26ae0 | refs/heads/master | 2023-06-01T01:21:02.523088 | 2019-04-15T01:12:14 | 2019-04-15T01:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,084 | java | package com.artisan.order.form;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import java.util.List;
@Data
public class OrderForm {
/**
* 对应
*
* {
* "name": "xxx",
* "phone": "xxxx",
* "address": "xxxx",
* "openid": "xxxx", //用户的微信openid
* "items": [
* {
* "productId": "xxxxxx",
* "productQuantity": 2 //购买数量
* }
* ]
* }
*
*
*
*/
/**
* 买家姓名
*/
@NotEmpty(message = "姓名必填")
private String name;
/**
* 买家手机号
*/
@NotEmpty(message = "手机号必填")
private String phone;
/**
* 买家地址
*/
@NotEmpty(message = "地址必填")
private String address;
/**
* 买家微信openid
*/
@NotEmpty(message = "openid必填")
private String openid;
/**
* 购物车
*/
@NotEmpty(message = "购物车不能为空")
private String items;
}
| [
"[email protected]"
] | |
395c50592c83d5809c9eb13d131d8d4fafade43f | 3b91ed788572b6d5ac4db1bee814a74560603578 | /com/tencent/mm/plugin/appbrand/ui/AppBrandTBSDownloadProxyUI$3.java | 934c274121803aaa295b6794f1561129bbf82dda | [] | no_license | linsir6/WeChat_java | a1deee3035b555fb35a423f367eb5e3e58a17cb0 | 32e52b88c012051100315af6751111bfb6697a29 | refs/heads/master | 2020-05-31T05:40:17.161282 | 2018-08-28T02:07:02 | 2018-08-28T02:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,018 | java | package com.tencent.mm.plugin.appbrand.ui;
import android.content.Intent;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.xweb.x5.sdk.f.a;
class AppBrandTBSDownloadProxyUI$3 implements a {
final /* synthetic */ AppBrandTBSDownloadProxyUI gws;
AppBrandTBSDownloadProxyUI$3(AppBrandTBSDownloadProxyUI appBrandTBSDownloadProxyUI) {
this.gws = appBrandTBSDownloadProxyUI;
}
public final void onNeedDownloadFinish(boolean z, int i) {
if (!z || i < 36824) {
x.i("MicroMsg.AppBrandTBSDownloadProxyUI", "try to get need download fail result %s version %d", new Object[]{Boolean.valueOf(z), Integer.valueOf(i)});
this.gws.setResult(0, new Intent());
this.gws.finish();
return;
}
x.i("MicroMsg.AppBrandTBSDownloadProxyUI", "try to get need download success result %s version %d", new Object[]{Boolean.valueOf(z), Integer.valueOf(i)});
ah.A(new 1(this));
}
}
| [
"[email protected]"
] | |
94aff6352d2645fbb2cfed2f8a9607100a5c51b0 | cd42c06af1c56ccabaec971fdc7923f5a7359f29 | /src/main/java/com/asiainfo/huxin/webservice/exception/StudentException.java | 2f27f5e24872138c39ed59efcb80f370706fe5ec | [] | no_license | huxin889/webservice | 3cddc1ef6e7daae9a3df5c85dbf0c7e877a3748e | a4ddb1ea77ce93386c6574282e02709fbe120921 | refs/heads/master | 2016-09-12T11:00:40.497486 | 2016-05-12T02:42:45 | 2016-05-12T02:42:45 | 58,598,718 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 235 | java | package com.asiainfo.huxin.webservice.exception;
public class StudentException extends RuntimeException {
private static final long serialVersionUID = -3146897461766145886L;
public StudentException (String msg){
super(msg);
}
}
| [
"[email protected]"
] | |
be57e826f219bfcdcb6a0a2700ef25d73c092eb4 | 578a93131902626d32ee7ceb4ddbf49d3386892d | /src/com/casic27/platform/util/ValuesHandler.java | 99e9bd1d203ca057b65904f6f620f783dc16a3f4 | [] | no_license | darknessitachi/kcPlatform | 0bf061ae3a914242f3c968f57ca2110ffcb309e4 | f7ee9b92dada46d3e10d7a4b8414cf1669a7541d | refs/heads/master | 2021-01-21T05:29:07.981525 | 2015-09-21T11:21:44 | 2015-09-21T11:21:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,374 | java | /**
* @(#)com.casic27.platform.util.ValuesHandler.java
* 版权声明 航天光达科技有限公司, 版权所有 违者必究
*
*<br> Copyright:: Copyright (c) 2012
*<br> Company: 航天光达科技有限公司
*<br> Date:Apr 12, 2012
*————————————————————————————————————
*修改记录
* 修改者:
* 修改时间:
* 修改原因:
*—————————————————————————————————————
*/
package com.casic27.platform.util;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
public class ValuesHandler {
public static Integer parseString2Integer(String str) {
Integer i = null;
if (StringUtils.isNotBlank(str)) {
i = Integer.valueOf(str);
}
return i;
}
public static Map<String, Object> convertFrom(Map<String, String> map) {
Map<String, Object> result = new HashMap<String, Object>();
Set<String> keySet = map.keySet();
Iterator<String> keyIts = keySet.iterator();
String key = null;
String value = null;
while (keyIts.hasNext()) {
key = keyIts.next();
value = map.get(key);
result.put(key, value);
}
return result;
}
}
| [
"[email protected]"
] | |
72defd93cca037fcb10d9e7f7918d393bb64cc31 | b004934b4ab1ce84770af26e67d59beff23a50fb | /tests/testPullUpGen/test43/test/B.java | 32eb4a74b3c3dc603b5b61c8caaebfd160dcf0ae | [
"Apache-2.0"
] | permissive | Julien-Cohen/pullupgen | cbeeb60f1d9338e58d00a083910970ba8567152b | 1ddcbe8651279b502d1dc32c553acca34caf566e | refs/heads/master | 2021-07-20T16:32:23.012737 | 2021-02-17T17:51:13 | 2021-02-17T17:51:13 | 7,051,101 | 1 | 1 | Apache-2.0 | 2021-02-15T12:36:15 | 2012-12-07T09:50:47 | Java | UTF-8 | Java | false | false | 175 | java | package testPullUpGen.test43.test;
public class B implements I {
public int m(Boolean i){
return 1;
}
public int n(Boolean i){
return 1;
}
}
| [
"[email protected]"
] | |
fcec926188191dd6a37307198be3805fd932a546 | b43b6a4eb288c4bbaf5a8ef68b75e36544e428b6 | /yueqingRMS/src/main/java/com/yueqingRMS/platform/util/UnZipHelper.java | 727c8aefef5f35880f4d2b7122c11b6405a0a1d9 | [] | no_license | 503935949/yueqingRMS | d6949f4f4144394e6ed452b295946a7a2819ef42 | 689050e2a632b292a26413d6143827254dafafa5 | refs/heads/dev | 2022-12-23T20:51:57.177627 | 2019-06-11T00:38:43 | 2019-06-11T00:38:43 | 140,082,316 | 0 | 0 | null | 2022-12-16T04:31:23 | 2018-07-07T12:26:57 | JavaScript | UTF-8 | Java | false | false | 1,935 | java | //package com.yueqingRMS.util;
//
//import java.io.File;
//
//import org.apache.tools.ant.Project;
//import org.apache.tools.ant.taskdefs.Expand;
//
//
///**
//*
//* 项目名称:yueqingRMS
//* 类名称:UnZipHelper
//* 类描述:
//* 创建人:林曌
//* 创建时间:2017年8月10日 下午5:18:46
//* 修改人: 解压zip格式压缩包
//* 修改时间:2017年8月10日 下午5:18:46
//* 修改备注:
//* @version
//*
//*/
//public class UnZipHelper {
// /**
// * 解压zip格式压缩包
// * 对应的是ant.jar
// */
// public static void unzip(String sourceZip, String destDir) throws Exception {
// try {
// Project p = new Project();
// Expand e = new Expand();
// e.setProject(p);
// e.setSrc(new File(sourceZip));
// e.setOverwrite(false);
// e.setDest(new File(destDir));
// /*
// ant下的zip工具默认压缩编码为UTF-8编码,
// 而winRAR软件压缩是用的windows默认的GBK或者GB2312编码
// 所以解压缩时要制定编码格式
// */
// e.setEncoding("gbk");
// e.execute();
// } catch (Exception e) {
// throw e;
// }
// }
//
// /**
// * 解压缩
// * @param sourceFile zip源文件
// * @param destDir 解压后指定路径
// * @throws Exception
// */
// public static void deCompress(String sourceFile) throws Exception {
// String destDir = sourceFile.substring(0, sourceFile.lastIndexOf("."));
// //保证文件夹路径最后是"/"或者"\"
// char lastChar = destDir.charAt(destDir.length() - 1);
// if (lastChar != '/' && lastChar != '\\') {
// destDir += File.separator;
// }
// //根据类型,进行相应的解压缩
// String type = sourceFile.substring(sourceFile.lastIndexOf(".") + 1);
// if (type.equals("zip")) {
// UnZipHelper.unzip(sourceFile, destDir);
// } else {
// throw new Exception("只支持zip格式的压缩包!");
// }
// }
//
//}
//
| [
"[email protected]"
] | |
8c17a3469bd44a5faf1d7c139909396686f01ffe | 0e75c351a295c16fcf8206891843270bf59ddc7e | /13-ClientSocket/src/br/com/fiap/socket/Client.java | 39d413a423575402a10e513426b0f54a1fa583c8 | [] | no_license | ViniciusSevero/Fiap-2TDSF-EAD | b6de306ccdb9ac13e94ea41247acc8dd91064a4f | 029341399867087dce76512a66763d7509fed78a | refs/heads/master | 2021-01-13T05:25:55.522760 | 2017-05-12T12:31:24 | 2017-05-12T12:31:24 | 81,437,053 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 451 | java | package br.com.fiap.socket;
import java.io.ObjectOutputStream;
import java.net.Socket;
import br.com.fiap.bean.Cliente;
public class Client {
public static void main(String[] args) throws Exception{
Socket socket = new Socket("10.3.2.41",123);
ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());
Cliente cliente = new Cliente("Teste","123");
outputStream.writeObject(cliente);
socket.close();
}
}
| [
"[email protected]"
] | |
069b930a3dc6b6210b66d6cd4f1628e8faff0757 | 23926816619019ecb8357c59cd5a125d2afa37dc | /app/src/androidTest/java/com/example/cloneicaller/ExampleInstrumentedTest.java | 9491facfe07bb92418ce09cf380b79b1cd9547ed | [] | no_license | JeffKi11er/CloneiCaller | c706bc6301b5471af953e561989ffefdaefd884d | 6f7668714da271651b9f2e74b62677c6027f5722 | refs/heads/master | 2022-12-07T23:18:38.324734 | 2020-08-31T06:08:10 | 2020-08-31T06:08:10 | 291,628,697 | 0 | 0 | null | 2020-08-31T06:08:12 | 2020-08-31T06:02:51 | null | UTF-8 | Java | false | false | 782 | java | package com.example.cloneicaller;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented fragment_block, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under fragment_block.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.cloneicaller", appContext.getPackageName());
}
} | [
"[email protected]"
] | |
32601f898750b56dbbe35761caa45bb1c7471ff6 | 0cc6e6c16bf427ca9afba6b835d1eb406702e8c8 | /Core/java/com/l2jserver/gameserver/model/MacroList.java | a869a969456b9320fc50fa44903adace78d70a2a | [] | no_license | Kryspo/blaion | a19087d1533d763d977d4dcc8235a2d1a61890b8 | 7e34627b01f30aacc290b87e1ad69e81b9e9cc33 | refs/heads/master | 2020-03-21T15:01:15.618199 | 2018-06-28T07:35:50 | 2018-06-28T07:35:50 | 138,689,668 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,505 | java | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.model;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import java.util.logging.Level;
import java.util.logging.Logger;
import javolution.util.FastList;
import javolution.util.FastMap;
import com.l2jserver.L2DatabaseFactory;
import com.l2jserver.gameserver.model.L2Macro.L2MacroCmd;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.SendMacroList;
import com.l2jserver.util.StringUtil;
/**
* This class ...
* @version $Revision: 1.1.2.1.2.2 $ $Date: 2005/03/02 15:38:41 $
*/
public class MacroList
{
private static Logger _log = Logger.getLogger(MacroList.class.getName());
private final L2PcInstance _owner;
private int _revision;
private int _macroId;
private final Map<Integer, L2Macro> _macroses = new FastMap<>();
public MacroList(L2PcInstance owner)
{
_owner = owner;
_revision = 1;
_macroId = 1000;
}
public int getRevision()
{
return _revision;
}
public L2Macro[] getAllMacroses()
{
return _macroses.values().toArray(new L2Macro[_macroses.size()]);
}
public L2Macro getMacro(int id)
{
return _macroses.get(id - 1);
}
public void registerMacro(L2Macro macro)
{
if (macro.id == 0)
{
macro.id = _macroId++;
while (_macroses.get(macro.id) != null)
{
macro.id = _macroId++;
}
_macroses.put(macro.id, macro);
registerMacroInDb(macro);
}
else
{
L2Macro old = _macroses.put(macro.id, macro);
if (old != null)
{
deleteMacroFromDb(old);
}
registerMacroInDb(macro);
}
sendUpdate();
}
public void deleteMacro(int id)
{
L2Macro toRemove = _macroses.get(id);
if (toRemove != null)
{
deleteMacroFromDb(toRemove);
}
_macroses.remove(id);
L2ShortCut[] allShortCuts = _owner.getAllShortCuts();
for (L2ShortCut sc : allShortCuts)
{
if ((sc.getId() == id) && (sc.getType() == L2ShortCut.TYPE_MACRO))
{
_owner.deleteShortCut(sc.getSlot(), sc.getPage());
}
}
sendUpdate();
}
public void sendUpdate()
{
_revision++;
L2Macro[] all = getAllMacroses();
if (all.length == 0)
{
_owner.sendPacket(new SendMacroList(_revision, all.length, null));
}
else
{
for (L2Macro m : all)
{
_owner.sendPacket(new SendMacroList(_revision, all.length, m));
}
}
}
private void registerMacroInDb(L2Macro macro)
{
Connection con = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
PreparedStatement statement = con.prepareStatement("INSERT INTO character_macroses (charId,id,icon,name,descr,acronym,commands) values(?,?,?,?,?,?,?)");
statement.setInt(1, _owner.getObjectId());
statement.setInt(2, macro.id);
statement.setInt(3, macro.icon);
statement.setString(4, macro.name);
statement.setString(5, macro.descr);
statement.setString(6, macro.acronym);
final StringBuilder sb = new StringBuilder(300);
for (L2MacroCmd cmd : macro.commands)
{
StringUtil.append(sb, String.valueOf(cmd.type), ",", String.valueOf(cmd.d1), ",", String.valueOf(cmd.d2));
if ((cmd.cmd != null) && (cmd.cmd.length() > 0))
{
StringUtil.append(sb, ",", cmd.cmd);
}
sb.append(';');
}
if (sb.length() > 255)
{
sb.setLength(255);
}
statement.setString(7, sb.toString());
statement.execute();
statement.close();
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not store macro:", e);
}
finally
{
L2DatabaseFactory.close(con);
}
}
/**
* @param shortcut
*/
private void deleteMacroFromDb(L2Macro macro)
{
Connection con = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
PreparedStatement statement = con.prepareStatement("DELETE FROM character_macroses WHERE charId=? AND id=?");
statement.setInt(1, _owner.getObjectId());
statement.setInt(2, macro.id);
statement.execute();
statement.close();
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not delete macro:", e);
}
finally
{
L2DatabaseFactory.close(con);
}
}
public void restore()
{
_macroses.clear();
Connection con = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
PreparedStatement statement = con.prepareStatement("SELECT charId, id, icon, name, descr, acronym, commands FROM character_macroses WHERE charId=?");
statement.setInt(1, _owner.getObjectId());
ResultSet rset = statement.executeQuery();
while (rset.next())
{
int id = rset.getInt("id");
int icon = rset.getInt("icon");
String name = rset.getString("name");
String descr = rset.getString("descr");
String acronym = rset.getString("acronym");
List<L2MacroCmd> commands = FastList.newInstance();
StringTokenizer st1 = new StringTokenizer(rset.getString("commands"), ";");
while (st1.hasMoreTokens())
{
StringTokenizer st = new StringTokenizer(st1.nextToken(), ",");
if (st.countTokens() < 3)
{
continue;
}
int type = Integer.parseInt(st.nextToken());
int d1 = Integer.parseInt(st.nextToken());
int d2 = Integer.parseInt(st.nextToken());
String cmd = "";
if (st.hasMoreTokens())
{
cmd = st.nextToken();
}
L2MacroCmd mcmd = new L2MacroCmd(commands.size(), type, d1, d2, cmd);
commands.add(mcmd);
}
L2Macro m = new L2Macro(id, icon, name, descr, acronym, commands.toArray(new L2MacroCmd[commands.size()]));
FastList.recycle((FastList<?>) commands);
_macroses.put(m.id, m);
}
rset.close();
statement.close();
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not store shortcuts:", e);
}
finally
{
L2DatabaseFactory.close(con);
}
}
}
| [
"[email protected]"
] | |
f750cf419ba9b7c5adc99052d73656666b00ebbf | c05744d9d8f5b1ca344ae5f2057257c6f7bc67c7 | /src/main/java/com/courseara/FibonacciLastDigit.java | fb787649ef871c7aaa5d32ed4f3e620f78566884 | [] | no_license | mdashikalikhan/JavaVariousPerspective | 8b7731726ae163dc6384dc3c403b926ce955be30 | 558c1540c23e688ac7427db2e4bfc4d009a934d6 | refs/heads/master | 2023-05-11T14:24:30.343834 | 2023-04-26T11:26:57 | 2023-04-26T11:26:57 | 115,000,504 | 2 | 0 | null | 2022-11-08T16:15:21 | 2017-12-21T11:52:09 | Java | UTF-8 | Java | false | false | 510 | java | package com.courseara;
import java.util.Scanner;
public class FibonacciLastDigit {
private static int[] arrFib;
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int num1 = scn.nextInt();
scn.close();
arrFib = new int[num1 + 1];
arrFib[0] = 0;
arrFib[1] = 1;
for(int i=2; i<=num1; i++) {
arrFib[i] = (arrFib[i-1] + arrFib[i-2])%10;
}
System.out.println(arrFib[num1]);
}
}
| [
"[email protected]"
] | |
f54cc3e001965eaee600dc800bb44b2a63e12916 | 75bd12a3ad1e5f603d0efc94e0dfa008c144279c | /app/src/main/java/com/dyna/dyna/Activities/Login.java | 9ba7d64d3309e664888696f0b7a91ab20d0e61f7 | [] | no_license | kevinjmz/Dyna | 24a8cb0fecbd4fa437dd2e331a01c44a3ffded9b | 25aa592fbd975faf9ec89775ea0b29c41507b0b1 | refs/heads/master | 2020-12-30T14:19:10.086119 | 2019-03-10T04:38:59 | 2019-03-10T04:38:59 | 91,302,865 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,301 | java | package com.dyna.dyna.Activities;
import android.app.Activity;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.dyna.dyna.R;
import com.facebook.AccessToken;
import com.facebook.CallbackManager;
import com.facebook.FacebookCallback;
import com.facebook.FacebookException;
import com.facebook.login.LoginResult;
import com.facebook.login.widget.LoginButton;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthCredential;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FacebookAuthProvider;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import java.io.Serializable;
public class Login extends Activity implements Serializable {
private EditText mEmailField;
private EditText mPasswordField;
private Button mLoginBtn;
private FirebaseAuth mAuth;
private FirebaseAuth.AuthStateListener mAuthListener;
//for FB
private CallbackManager mCallbackManager;
@Override
protected void onCreate(Bundle savedInstanceState) {
mAuth = FirebaseAuth.getInstance();
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login2);
mEmailField = findViewById(R.id.emailField);
mPasswordField = findViewById(R.id.passwordField);
mLoginBtn = findViewById(R.id.loginBtn);
mAuthListener = new FirebaseAuth.AuthStateListener() {
@Override
public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
if (firebaseAuth.getCurrentUser() != null) {
//if user has logged in with right credentials
// startActivity(new Intent(Login.this, MapsActivity.class));
}
}
};
mLoginBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startSignIn();
}
});
// Initialize Facebook Login button
mCallbackManager = CallbackManager.Factory.create();
LoginButton loginButton = findViewById(R.id.fblogin_button);
loginButton.setReadPermissions("email", "public_profile");
loginButton.registerCallback(mCallbackManager, new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
Log.d("Developer", "facebook:onSuccess:" + loginResult);
handleFacebookAccessToken(loginResult.getAccessToken());
}
@Override
public void onCancel() {
Log.d("Developer", "facebook:onCancel");
// ...
}
@Override
public void onError(FacebookException error) {
Log.d("Developer", "facebook:onError", error);
// ...
}
});
}
@Override
protected void onStart() {
super.onStart();
mAuth.addAuthStateListener(mAuthListener);
//To check if already logged in
FirebaseUser currentUser = mAuth.getCurrentUser();
if (currentUser != null) {
Toast.makeText(this, "You have already logged in", Toast.LENGTH_SHORT).show();
}
}
private void updateUI(FirebaseUser currentUser) {
// Toast.makeText(this,"Hello "+currentUser.getDisplayName(),Toast.LENGTH_LONG).show();
Intent mapsActivityIntent = new Intent(Login.this, MapsActivity.class);
startActivity(mapsActivityIntent);
finish();
}
private void startSignIn() {
String email = mEmailField.getText().toString();
String password = mPasswordField.getText().toString();
if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password)) {
Toast.makeText(Login.this, "Fields are empty ", Toast.LENGTH_LONG).show();
} else {
mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (!task.isSuccessful()) {
Toast.makeText(Login.this, "Sign In Problem", Toast.LENGTH_LONG).show();
}
}
});
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// Pass the activity result back to the Facebook SDK
mCallbackManager.onActivityResult(requestCode, resultCode, data);
}
private void handleFacebookAccessToken(AccessToken token) {
Log.d("Developer", "handleFacebookAccessToken:" + token);
AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());
mAuth.signInWithCredential(credential)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
Log.d("Developer", "signInWithCredential:success");
FirebaseUser user = mAuth.getCurrentUser();
Toast.makeText(Login.this, "Signed in", Toast.LENGTH_LONG).show();
} else {
// If sign in fails, display a message to the user.
Log.w("Developer", "signInWithCredential:failure", task.getException());
Toast.makeText(Login.this, "Authentication failed.",
Toast.LENGTH_SHORT).show();
// updateUI(null);
}
// ...
}
});
}
} | [
"[email protected]"
] | |
c0ee2fda1c8447fe1e64ebce7682f277043166b9 | bef84b0948a7155d469e22e2735ee4e92f6340e9 | /lp-simulation-environment/monitoring/src/main/java/eu/learnpad/simulator/mon/impl/ComplexEventProcessorImpl.java | 99c2ef84ead640400f146be110672db008cce68c | [] | no_license | ISTI-FMT/learnpad | 1d400574bdcd4b959c3d47782cdb6fdc746f6d35 | 9613c4fff666b9aaf0fdee034891160e211d55d4 | refs/heads/master | 2020-12-25T11:20:56.773117 | 2016-02-12T13:14:13 | 2016-02-12T13:14:13 | 51,608,545 | 0 | 0 | null | 2016-02-12T18:43:11 | 2016-02-12T18:43:11 | null | UTF-8 | Java | false | false | 10,998 | java | /*
* GLIMPSE: A generic and flexible monitoring infrastructure.
* For further information: http://labsewiki.isti.cnr.it/labse/tools/glimpse/public/main
*
* Copyright (C) 2011 Software Engineering Laboratory - ISTI CNR - Pisa - Italy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package eu.learnpad.simulator.mon.impl;
import java.util.Properties;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;
import javax.jms.Session;
import javax.jms.Topic;
import javax.jms.TopicConnection;
import javax.jms.TopicConnectionFactory;
import javax.jms.TopicPublisher;
import javax.jms.TopicSession;
import javax.jms.TopicSubscriber;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.apache.commons.net.ntp.TimeStamp;
import org.drools.KnowledgeBase;
import org.drools.KnowledgeBaseConfiguration;
import org.drools.KnowledgeBaseFactory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderError;
import org.drools.builder.KnowledgeBuilderErrors;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.conf.EventProcessingOption;
import org.drools.io.Resource;
import org.drools.io.ResourceFactory;
import org.drools.runtime.StatefulKnowledgeSession;
import org.drools.runtime.rule.WorkingMemoryEntryPoint;
import eu.learnpad.simulator.mon.buffer.EventsBuffer;
import eu.learnpad.simulator.mon.cep.ComplexEventProcessor;
import eu.learnpad.simulator.mon.event.GlimpseBaseEvent;
import eu.learnpad.simulator.mon.event.GlimpseBaseEventBPMN;
import eu.learnpad.simulator.mon.event.GlimpseBaseEventChoreos;
import eu.learnpad.simulator.mon.exceptions.UnknownMethodCallRuleException;
import eu.learnpad.simulator.mon.rules.DroolsRulesManager;
import eu.learnpad.simulator.mon.rules.RulesManager;
import eu.learnpad.simulator.mon.utils.DebugMessages;
public class ComplexEventProcessorImpl extends ComplexEventProcessor implements MessageListener {
private String topic;
private TopicConnection connection;
private Topic connectionTopic;
private TopicSession publishSession;
private TopicSession subscribeSession;
@SuppressWarnings("unused")
private TopicPublisher tPub;
private TopicSubscriber tSub;
private KnowledgeBase knowledgeBase;
private StatefulKnowledgeSession ksession;
private WorkingMemoryEntryPoint eventStream;
private KnowledgeBuilder knowledgeBuilder;
public ComplexEventProcessorImpl(Properties settings, EventsBuffer<GlimpseBaseEvent<?>> buffer, TopicConnectionFactory connectionFact,
InitialContext initConn) {
this.topic = settings.getProperty("probeTopic");
init(connectionFact,initConn);
}
public void init(TopicConnectionFactory connectionFact,
InitialContext initConn) {
try {
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Creating connection object ");
connection = connectionFact.createTopicConnection();
DebugMessages.ok();
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Creating public session object ");
publishSession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
DebugMessages.ok();
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Creating subscribe object ");
subscribeSession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
DebugMessages.ok();
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Setting up reading topic ");
connectionTopic = (Topic) initConn.lookup(topic);
tSub = subscribeSession.createSubscriber(connectionTopic, null,true);
DebugMessages.ok();
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Setting up destination topic ");
connectionTopic = publishSession.createTopic(this.topic);
tPub = publishSession.createPublisher(connectionTopic);
DebugMessages.ok();
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Reading knowledge base ");
knowledgeBase = createKnowledgeBase();
ksession = knowledgeBase.newStatefulKnowledgeSession();
ksession.setGlobal("EVENTS EntryPoint", eventStream);
eventStream = ksession.getWorkingMemoryEntryPoint("DEFAULT");
cepRuleManager = new DroolsRulesManager(knowledgeBuilder, knowledgeBase, ksession);
DebugMessages.ok();
} catch (JMSException e) {
DebugMessages.println(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(),e.getMessage());
} catch (NamingException e) {
DebugMessages.println(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(),e.getMessage());
}
}
public void run()
{
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), "Starting connection ");
try {
if (connection == null) {
System.out.println("Unable to connect to ActiveMQ instance or connection parameters wrong.\nPlease check and restart GLIMPSE.");
System.exit(0);
}
connection.start();
DebugMessages.ok();
tSub.setMessageListener(this);
DebugMessages.line();
while (this.getState() == State.RUNNABLE) {
Thread.sleep(20);
ksession.fireAllRules();
}
} catch (JMSException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
@Override
public void onMessage(Message arg0) {
ObjectMessage msg = (ObjectMessage) arg0;
try {
GlimpseBaseEvent<?> receivedEvent = (GlimpseBaseEvent<?>) msg.getObject();
if (eventStream != null && receivedEvent != null) {
try {
eventStream.insert(receivedEvent);
if (receivedEvent instanceof GlimpseBaseEventChoreos<?>) {
DebugMessages.println(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(),
"receives:\n" +
"eventData: " + receivedEvent.getEventData() + "\n" +
"eventName: " + receivedEvent.getEventName() + "\n" +
"timestamp: " + receivedEvent.getTimeStamp() + "\n" +
"machineIP: " + ((GlimpseBaseEventChoreos<?>) receivedEvent).getMachineIP() + "\n" +
"choreographySource: " + ((GlimpseBaseEventChoreos<?>) receivedEvent).getChoreographySource());
} else
if (receivedEvent instanceof GlimpseBaseEventBPMN<?>) {
DebugMessages.println(
TimeStamp.getCurrentTime(), this.getClass().getSimpleName(),
"receives:\n" +
"eventData: " + receivedEvent.getEventData() + "\n" +
"eventName: " + receivedEvent.getEventName() + "\n" +
"timestamp: " + receivedEvent.getTimeStamp() + "\n" +
"sessionID: " + ((GlimpseBaseEventBPMN<?>) receivedEvent).getSessionID() + "\n" +
"assigneeID: " + ((GlimpseBaseEventBPMN<?>) receivedEvent).getAssigneeID() + "\n" +
"roleID: " + ((GlimpseBaseEventBPMN<?>) receivedEvent).getRoleID() + "\n" +
"taskID: " + ((GlimpseBaseEventBPMN<?>) receivedEvent).getTaskID() + "\n" +
"subProcessID: " + ((GlimpseBaseEventBPMN<?>) receivedEvent).getSubProcessID() + "\n" +
"desideredCompletionTime: " + ((GlimpseBaseEventBPMN<?>) receivedEvent).getDesideredCompletionTime()
);
} else {
DebugMessages.println(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(),
"receives:\n" +
"eventData: " + receivedEvent.getEventData() + "\n" +
"eventName: " + receivedEvent.getEventName() + "\n" +
"timestamp: " + receivedEvent.getTimeStamp());
}
DebugMessages.line();
} catch(org.drools.RuntimeDroolsException droolsCrashException) {
DebugMessages.println(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), droolsCrashException.getMessage());
new UnknownMethodCallRuleException();
}
}
} catch (JMSException e) {
e.printStackTrace();
}
catch(ClassCastException ex) {
DebugMessages.println(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(), ex.getMessage());
}
}
private KnowledgeBase createKnowledgeBase() {
try
{
KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
config.setOption(EventProcessingOption.STREAM);
/* Using knowledge builder to create a knowledgePackage using provided resources (drl file)
* after the creation the knowledgePackage contained into the knowledge builder will be putted
* into the knowledgeBase using the method addKnowledgePackages(knowledgeBuilder.getKnowledgePackages())
*/
//if needed, uncomment to set up manually the knowledge builder properties
// Properties confProp = new Properties();
// confProp.setProperty("drools.dialect.default", "MVEL");
// confProp.setProperty("drools.dialect.mvel.strict", "FALSE");
// PackageBuilderConfiguration conf = new PackageBuilderConfiguration(confProp);
// knowledgeBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(conf);
knowledgeBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
String firstRuleToLoad =
"import eu.learnpad.simulator.mon.event.GlimpseBaseEventAbstract; " +
"declare GlimpseBaseEventAbstract " +
"@role( event ) " +
"@timestamp( timeStamp ) " +
"end";
byte[] firstRuleToLoadByteArray = firstRuleToLoad.getBytes();
Resource drlToLoad = ResourceFactory.newByteArrayResource(firstRuleToLoadByteArray);
try {
knowledgeBuilder.add(drlToLoad,ResourceType.DRL);
} catch(Exception asd) {
System.out.println(asd.getMessage());
}
KnowledgeBuilderErrors errors = knowledgeBuilder.getErrors();
if (errors.size() > 0) {
for (KnowledgeBuilderError error : errors) {
System.err.println(error);
}
throw new IllegalArgumentException("Could not parse knowledge.");
}
knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(config);
knowledgeBase.addKnowledgePackages(knowledgeBuilder.getKnowledgePackages());
return knowledgeBase;
}
catch (NullPointerException e) {
System.out.println(e.getMessage());
System.out.println(e.getCause());
DebugMessages.print(TimeStamp.getCurrentTime(), this.getClass().getSimpleName(),e.getMessage());
return null;
}
}
@Override
public void setMetric() {
}
public RulesManager getRuleManager() {
return this.cepRuleManager;
}
}
| [
"[email protected]"
] | |
5930a2dee4618acfcda64c634adc6923dda6ae9e | c1da9b7d9699fbbc935fcb5eb7b7c7d680f1fb94 | /src/question/Question081.java | 35b1167580c08b56f113bbdaa47a6a36f0df3764 | [] | no_license | buraequete/projectEuler | dd5df720d1ecf6033bca184b3c3cd8981bf13759 | 386c44e5956758e590267791256a8802871a272a | refs/heads/master | 2021-06-18T12:00:36.324985 | 2017-06-22T05:51:17 | 2017-06-22T05:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,253 | java | package question;
import helper.ResultHelper;
import helper.TimeHelper;
import java.io.File;
import java.util.Scanner;
public class Question081 {
static int result, size = 80, border = size - 1, matrix[][];
public static void main(String[] args) {
TimeHelper.start();
matrix = new Question081().parseFile();
go();
ResultHelper.printOut("Result is " + result);
TimeHelper.stop();
}
int[][] parseFile() {
int matrix[][] = new int[size][size], i = 0, j;
File file = new File(getClass().getClassLoader().getResource("p081_matrix.txt").getFile());
try (Scanner scanner = new Scanner(file)) {
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
j = 0;
for (String val : line.split(",")) {
matrix[i][j++] = Integer.parseInt(val);
}
i++;
}
scanner.close();
} catch (Exception e) {
//
}
return matrix;
}
static void go() {
for (int i = border; i >= 0; i--) {
for (int j = border; j >= 0; j--) {
matrix[i][j] += Math.min(getMatrixValue(i, j + 1), getMatrixValue(i + 1, j));
}
}
result = matrix[0][0] - Integer.MAX_VALUE;
}
static int getMatrixValue(int i, int j) {
try {
return matrix[i][j];
} catch (Exception e) {
return Integer.MAX_VALUE;
}
}
} | [
"[email protected]"
] | |
795daf9d62015de15fa7882afa4da8dc67ef3733 | 0c1331a9cd968170e788f40fa5ddc65ef30e5350 | /src/FacadeDesignPattern/HardDrive.java | 306c02eba0e2dac0b5c3f72c3777600f7aa0b97d | [] | no_license | PurpleVen/DesignPattern | 4c5d0b9a64352c8b9c223868879414f54ed8f086 | d8f39bbf652642ee23ec8ec4bc079e6c00405dba | refs/heads/master | 2023-08-27T22:59:41.526389 | 2021-11-14T11:44:49 | 2021-11-14T11:44:49 | 426,137,439 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 145 | java | package FacadeDesignPattern;
public class HardDrive {
public byte[] read(long Iba, int size) {
return new byte[]{'f', 'z'};
}
}
| [
"[email protected]"
] | |
76f640263b82f847fced2537142cbcca9edbf9b6 | 9254e7279570ac8ef687c416a79bb472146e9b35 | /pai-dlc-20201203/src/main/java/com/aliyun/pai_dlc20201203/models/ListWorkspacesResponse.java | 1f9ee719ef4d6ff37e80feff6d4d822fe7390856 | [
"Apache-2.0"
] | permissive | lquterqtd/alibabacloud-java-sdk | 3eaa17276dd28004dae6f87e763e13eb90c30032 | 3e5dca8c36398469e10cdaaa34c314ae0bb640b4 | refs/heads/master | 2023-08-12T13:56:26.379027 | 2021-10-19T07:22:15 | 2021-10-19T07:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,056 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.pai_dlc20201203.models;
import com.aliyun.tea.*;
public class ListWorkspacesResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public ListWorkspacesResponseBody body;
public static ListWorkspacesResponse build(java.util.Map<String, ?> map) throws Exception {
ListWorkspacesResponse self = new ListWorkspacesResponse();
return TeaModel.build(map, self);
}
public ListWorkspacesResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ListWorkspacesResponse setBody(ListWorkspacesResponseBody body) {
this.body = body;
return this;
}
public ListWorkspacesResponseBody getBody() {
return this.body;
}
}
| [
"[email protected]"
] | |
73de547f15f74b9a4913dde2af956da2de36ba51 | 1a575b3066976191b42bd731e0b2acbfd7b86013 | /eCard-Parent/ecard-core/src/main/java/com/ecard/core/vo/CardInfoDetailResponse.java | 1e42ecd8be9eacdb9d67c81810a89a947af132de | [] | no_license | lebabach/ibs | 21e8a4f87cf4fa6f4a485f0e22d57068a2ebb4d4 | e0c6b2809b224ed868ef694fc02cff4dcf1ef6a1 | refs/heads/master | 2021-07-24T21:01:37.253701 | 2015-10-05T10:08:42 | 2015-10-05T10:08:42 | 109,240,972 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 911 | java | /*
* CardInfoDetailResponse
*/
package com.ecard.core.vo;
/**
*
* @author vinhla
*/
public class CardInfoDetailResponse extends AbstractCommonRes {
private CardInfoDetail cardInfoDetail;
private UserInfoDetail ownerInfoDetail;
/**
* @return the cardInfoDetail
*/
public CardInfoDetail getCardInfoDetail() {
return cardInfoDetail;
}
/**
* @param cardInfoDetail the cardInfoDetail to set
*/
public void setCardInfoDetail(CardInfoDetail cardInfoDetail) {
this.cardInfoDetail = cardInfoDetail;
}
/**
* @return the ownerInfoDetail
*/
public UserInfoDetail getOwnerInfoDetail() {
return ownerInfoDetail;
}
/**
* @param ownerInfoDetail the ownerInfoDetail to set
*/
public void setOwnerInfoDetail(UserInfoDetail ownerInfoDetail) {
this.ownerInfoDetail = ownerInfoDetail;
}
}
| [
"[email protected]"
] | |
334ca126da289f479596795c9fa61f7ee8420045 | d3ed1b7ff4cec2df0b5a2590890f1811b1848db6 | /src/library/vo/ReserveVO.java | 7d32d8bfd7eb2069e2155449d8acb375d244b53b | [] | no_license | JangJur/LibraryJSP | ebd3c8841f7002fea5cf1e550c008ea7a4e374c9 | e7e462fe4b06fc39ad2613115f2e6c163b847ec0 | refs/heads/master | 2020-08-13T10:07:39.559124 | 2019-07-19T09:33:22 | 2019-07-19T09:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 490 | java | package library.vo;
public class ReserveVO {
String stu_id;
int book_num;
String Reserve_date;
public String getStu_id() {
return stu_id;
}
public void setStu_id(String stu_id) {
this.stu_id = stu_id;
}
public int getBook_num() {
return book_num;
}
public void setBook_num(int book_num) {
this.book_num = book_num;
}
public String getReserve_date() {
return Reserve_date;
}
public void setReserve_date(String reserve_date) {
Reserve_date = reserve_date;
}
}
| [
"[email protected]"
] | |
2c03b788d63d0d5327f673dd83aa2b3a610c3620 | 69dd9fbdaa6ec3fcd474514a10a5d81e974bb30b | /src/main/java/com/tetris/game/Board.java | 1a7ee6150f034ba0ff3c648f1fb8b6ce22be675d | [] | no_license | SergeyPentsov/tetris | deac3a7416248616f35e6b15a61d5d8bcccafbbc | 7be311a8a97fe8be0e105884e1028ff1b150dc00 | refs/heads/master | 2022-02-21T13:58:38.237399 | 2020-01-24T18:53:03 | 2020-01-24T18:53:03 | 224,914,141 | 1 | 0 | null | 2022-02-10T02:45:00 | 2019-11-29T19:50:11 | Java | UTF-8 | Java | false | false | 3,139 | java | package com.tetris.game;
import com.tetris.builder.FigureBuilder;
import com.tetris.game.handler.MoveEventType;
import com.tetris.model.GameState;
import com.tetris.model.Point;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.tetris.game.handler.MoveEventType.MOVE_DOWN;
import static com.tetris.model.GameState.ACTIVE;
@Slf4j
public class Board {
private final int height;
private final int width;
private final List<Point> fillPoints = new ArrayList<>();
private Figure activeFigure;
private final FigureBuilder figureBuilder;
private final Point startFigurePoint;
public Board(int height, int width, FigureBuilder figureBuilder) {
this.height = height;
this.width = width;
this.figureBuilder = figureBuilder;
this.startFigurePoint = new Point(width / 2, 0);
this.activeFigure = figureBuilder.next(startFigurePoint);
}
public GameState doGame(MoveEventType moveEvent) {
Figure nextFigure = activeFigure.getNewFigureByMoveEventType(moveEvent);
boolean isInvalidMove = !isValidFigureCoordinatesWithinBoard(nextFigure) || !isFigureNotTouchFillPoints(nextFigure);
if (isInvalidMove && moveEvent == MOVE_DOWN) {
log.debug("Add figure to fill points {}", activeFigure);
addFigurePointsToFillPoints(activeFigure);
activeFigure = figureBuilder.next(startFigurePoint);
log.debug("Change figure state on the board. New state {}", activeFigure);
return ACTIVE;
}
if (isInvalidMove) {
return ACTIVE;
}
activeFigure = nextFigure;
return ACTIVE;
}
public boolean isFigureNotTouchFillPoints(Figure figure) {
return figure.getPointsByBoardCoordinates().stream().noneMatch(fillPoints::contains);
}
public boolean isValidFigureCoordinatesWithinBoard(Figure figure) {
return figure.getPointsByBoardCoordinates().stream().
noneMatch(point -> point.getX() < 0 || point.getX() > width - 1 || point.getY() > height - 1);
}
public void addFigurePointsToFillPoints(Figure figure) {
fillPoints.addAll(figure.getPointsByBoardCoordinates());
}
public String getStringState() {
char[][] charBoard = new char[height][width];
fillPoints.forEach(point -> charBoard[point.getY()][point.getX()] = '#');
activeFigure.getPointsByBoardCoordinates().forEach(point -> charBoard[point.getY()][point.getX()] = 'X');
StringBuilder builder = new StringBuilder();
for (int i = 0; i < height; i++) {
builder.append('-');
}
builder.append('\n');
Arrays.stream(charBoard).forEach(chars -> {
builder.append('|');
for (char character : chars) {
builder.append(character);
}
builder.append('|');
builder.append('\n');
});
for (int i = 0; i < height; i++) {
builder.append('-');
}
return builder.toString();
}
}
| [
"[email protected]"
] | |
84087257091fe7c5031bc691c717b8db34575737 | 20e91a21532fbeaa4ffd555483ec7bed6bf5b7e9 | /target/generated-sources/kogito/org/acme/GreetingsModelInput.java | 72b281120aef9149603efa89e2fd8ff19333857a | [] | no_license | pmalan/travel-example | a1ff0285113c8afee62c684a1c01de83cdf74650 | 2e32af85b5558048f9951b400b7f337b0127759f | refs/heads/master | 2022-11-10T06:53:33.389606 | 2020-06-26T00:10:11 | 2020-06-26T00:10:11 | 275,038,381 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 581 | java | package org.acme;
import java.util.Map;
import java.util.HashMap;
@org.kie.internal.kogito.codegen.Generated(value = "kogito-codegen", reference = "greetings", name = "Greetings", hidden = true)
public class GreetingsModelInput implements org.kie.kogito.Model {
@Override
public Map<String, Object> toMap() {
Map<String, Object> params = new HashMap();
return params;
}
@Override
public void fromMap(Map<String, Object> params) {
fromMap(null, params);
}
public void fromMap(String id, Map<String, Object> params) {
}
}
| [
"[email protected]"
] | |
06318b3b5a288d6841125d1bd5aafd7d520a7ffd | 560511d66ac984cb29fbaef435fffd4130b9aa1a | /app/src/test/java/de/example/frank/services/ExampleUnitTest.java | adb9772d694f5312bb62f3c3dde5a1fee758801c | [] | no_license | SoftdeveloperNeumann/Services | 31a92d63d8837a4450ce4d3d51d43eefde7e687a | 06fdc96eca0b09f7c1e3a8a9145066bf9f3daaca | refs/heads/master | 2021-01-11T05:50:19.431718 | 2016-09-30T12:25:25 | 2016-09-30T12:25:25 | 69,647,704 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 403 | java | package de.example.frank.services;
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);
}
} | [
"[email protected]"
] | |
7d0ecbb5529030d63932c4ce022362484ed9af25 | 61ac3430f5ab6f3ed095534045d54f2dc40ffd4b | /src/main/java/switchtwentytwenty/project/controllers/icontrollers/IGetFamilyCategoriesTreeController.java | d29d07425a8009eb51389cd74feaf392615549ba | [] | no_license | nunocasteleira/switch-2020-group1 | 53fcda9a891c2c847fc0aa0d7893975ce735d54e | ee15e495dda09397052e961e053d365b02241204 | refs/heads/main | 2023-06-12T11:26:52.733943 | 2021-07-09T13:11:57 | 2021-07-09T13:11:57 | 384,439,845 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 423 | java | package switchtwentytwenty.project.controllers.icontrollers;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
public interface IGetFamilyCategoriesTreeController {
@GetMapping("/categories/{familyId}")
ResponseEntity<Object> getFamilyCategoriesTree(@PathVariable("familyId") long familyId);
}
| [
"[email protected]"
] | |
34d8d515109864c93c69dd4ab6bb310c50f4aff6 | d8ac5736a298ba519cccb82b7e870d30bbc3d857 | /app/src/androidTest/java/com/dreamfactory/novax/ExampleInstrumentedTest.java | 0fead844ce0406840fbc385113fd6133fec54a08 | [] | no_license | wepobid/NovaX | e01698b27c56f79cc9b63d61ad65bfcd396667cb | 968ef768a452a228416c4280c475f2538a62bf1f | refs/heads/master | 2020-07-06T21:46:29.921188 | 2019-06-11T14:22:47 | 2019-06-11T14:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 728 | java | package com.dreamfactory.novax;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.dreamfactory.novax", appContext.getPackageName());
}
}
| [
"[email protected]"
] | |
c3e43bd4d10e8adf0b6ed5f202ec854b2cecd564 | dd0973d1d130e23296864c50792e52ec70755dc7 | /src/main/java/in/nareshit/raghu/service/IUserService.java | 93719da179f5a86e4f7cf86faea81eca9f486721 | [] | no_license | Ganesh-java-code/Health-care | f1c6a0cda2b2afeb9b4eed86402c32aa7b7e26d2 | 55cfceefa5906350f2bc66a9debe69d2f6ef3bb8 | refs/heads/master | 2023-08-30T16:03:28.604085 | 2021-11-09T16:24:08 | 2021-11-09T16:24:08 | 426,291,143 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 259 | java | package in.nareshit.raghu.service;
import java.util.Optional;
import in.nareshit.raghu.entity.User;
public interface IUserService {
Long saveUser(User user);
Optional<User> findByUsername(String username);
void updateUserPwd(String pwd,Long userId);
}
| [
"[email protected]"
] | |
74dffb0112aac8514116473c9ee2828d0b44446a | 773ee122a3d106dafea03a5ce4f2da5a55091fed | /model/src/main/java/com/yeren/dao/impl/UserDaoImpl.java | f9fc7b56cffeb7b6dcdcd08ac0f8c616dfede224 | [] | no_license | yeren108/seckill | e91b38893b2b1c2752351cd2085e96e990e2cd44 | 1ccc8c87ffb7f841c661eccf6ede3e6e824ee31c | refs/heads/master | 2020-03-09T09:10:06.914424 | 2018-12-17T09:49:36 | 2018-12-17T09:49:36 | 128,706,292 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,261 | java | package com.yeren.dao.impl;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import com.yeren.dao.UserDao;
import com.yeren.mode.User;
@Repository
public class UserDaoImpl implements UserDao{
private static final Logger logger = LoggerFactory.getLogger(UserDaoImpl.class);
@Autowired
@Qualifier("sessionFactory")
SessionFactory sf;
public boolean save(User user) {
Session session = sf.openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.save(user);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
return false;
} finally {
session.close();
}
return true;
}
public boolean delete(Integer id) {
Session session = sf.openSession();
Transaction tx = null;
int executeUpdate = 0;
try {
tx = session.beginTransaction();
String hql = "delete from User where id=:id";
org.hibernate.Query query = session.createQuery(hql);
query.setInteger("id", id);
executeUpdate = query.executeUpdate();
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
System.out.println();
return false;
} finally {
session.close();
}
return true;
}
public boolean update(User user) {
Session session = sf.openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.update(user);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
return false;
} finally {
session.close();
}
return true;
}
public User findById(Integer id) {
Session session = sf.openSession();
List<User> list = null;
try {
String hql = "from User where id=:id";
org.hibernate.Query query = session.createQuery(hql);
query.setInteger("id", id);
list = query.list();
return list.get(0);
} catch (RuntimeException e) {
e.printStackTrace();
} finally {
session.close();
}
return null;
}
}
| [
"[email protected]"
] | |
7486867cc8a97bd79036d0ffd4ba203d6d05815b | 0d98c61b6b03a5421260ea6d776568ccf7250c15 | /src/main/java/seedu/address/storage/finance/JsonAdaptedIncomeLogEntry.java | 6513b2d0198e7d86929a891baa4d6073f9895dfb | [
"MIT"
] | permissive | tuandingwei/main | 18cbfb6eb34fa743e478ddc58e29c410ef3d3eba | 9ea993de495ec30d83894f81c633e5462588e5e2 | refs/heads/master | 2020-07-24T17:19:17.690752 | 2019-11-11T15:05:15 | 2019-11-11T15:05:15 | 207,994,051 | 1 | 0 | NOASSERTION | 2019-09-12T07:47:14 | 2019-09-12T07:47:14 | null | UTF-8 | Java | false | false | 4,850 | java | package seedu.address.storage.finance;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.finance.attributes.Amount;
import seedu.address.model.finance.attributes.Category;
import seedu.address.model.finance.attributes.Description;
import seedu.address.model.finance.attributes.Person;
import seedu.address.model.finance.attributes.TransactionDate;
import seedu.address.model.finance.attributes.TransactionMethod;
import seedu.address.model.finance.logentry.IncomeLogEntry;
import seedu.address.model.finance.logentry.LogEntry;
/**
* Jackson-friendly version of {@link IncomeLogEntry}.
*/
class JsonAdaptedIncomeLogEntry extends JsonAdaptedLogEntry {
private final String logEntryType;
private final String from;
/**
* Constructs a {@code JsonAdaptedIncomeLogEntry} with the given log entry details.
*/
@JsonCreator
public JsonAdaptedIncomeLogEntry(@JsonProperty("amount") String amount,
@JsonProperty("transactionDate") String tDate,
@JsonProperty("description") String desc,
@JsonProperty("transactionMethod") String tMethod,
@JsonProperty("categories") List<JsonAdaptedCategory> categories,
@JsonProperty("logEntryType") String logEntryType,
@JsonProperty("from") String from) {
super(amount, tDate, desc, tMethod, categories);
this.logEntryType = logEntryType;
this.from = from;
}
/**
* Converts a given {@code IncomeLogEntry} into this class for Jackson use.
*/
public JsonAdaptedIncomeLogEntry(IncomeLogEntry source) {
super(source);
logEntryType = source.getLogEntryType();
from = source.getFrom().name;
}
/**
* Converts this Jackson-friendly adapted log entry object into the model's {@code IncomeLogEntry} object.
*
* @throws IllegalValueException if there were any data constraints violated in the adapted log entry.
*/
public LogEntry toModelType() throws IllegalValueException {
if (amount == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT, Amount.class.getSimpleName()));
}
if (!Amount.isValidAmount(amount)) {
throw new IllegalValueException(Amount.MESSAGE_CONSTRAINTS);
}
final Amount modelAmount = new Amount(amount);
if (tDate == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT,
TransactionDate.class.getSimpleName()));
}
if (!TransactionDate.isValidTransactionDate(tDate)) {
throw new IllegalValueException(TransactionDate.MESSAGE_CONSTRAINTS);
}
final TransactionDate modelTransactionDate = new TransactionDate(tDate);
if (desc == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT,
Description.class.getSimpleName()));
}
if (!Description.isValidDescription(desc)) {
throw new IllegalValueException(Description.MESSAGE_CONSTRAINTS);
}
final Description modelDescription = new Description(desc);
if (tMethod == null) {
throw new IllegalValueException(
String.format(MISSING_FIELD_MESSAGE_FORMAT, TransactionMethod.class.getSimpleName()));
}
if (!TransactionMethod.isValidTransactionMet(tMethod)) {
throw new IllegalValueException(TransactionMethod.MESSAGE_CONSTRAINTS);
}
final TransactionMethod modelTransactionMethod = new TransactionMethod(tMethod);
final List<Category> logEntryCategories = new ArrayList<>();
for (JsonAdaptedCategory cat : categories) {
logEntryCategories.add(cat.toModelType());
}
final Set<Category> modelLogEntryCategories = new HashSet<>(logEntryCategories);
assert logEntryType != null;
if (from == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT,
Person.class.getSimpleName()));
}
if (!Person.isValidName(from)) {
throw new IllegalValueException(Person.MESSAGE_CONSTRAINTS);
}
final Person modelPerson = new Person(from);
return new IncomeLogEntry(modelAmount, modelTransactionDate, modelDescription,
modelTransactionMethod, modelLogEntryCategories, modelPerson);
}
}
| [
"[email protected]"
] | |
034e3b0ac9cd7d033e5edb877c06e665c8fa9589 | ee7036801d678d41402e0d926ee6d65d6e547605 | /src/main/java/com/example/redislearning/baseutil/RedisPoolUtil.java | 10f29d98678b0c80ac341ebad9fabda1a53f5f56 | [] | no_license | changeword/redis-learning | 59bb167595c88c9fdeb5a1f0137028b3bfb2d930 | 561e4ba0fa6942ef491cf1b82f1e41d55b3ebe9a | refs/heads/master | 2020-03-15T21:27:24.139674 | 2018-05-06T16:14:59 | 2018-05-06T16:14:59 | 132,355,355 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,168 | java | package com.example.redislearning.baseutil;
import redis.clients.jedis.Jedis;
public class RedisPoolUtil {
private static RedisPool redisPool;
public static String get(String key){
Jedis jedis = null;
String result = null;
try {
jedis = RedisPool.getJedis();
} catch (Exception e) {
e.printStackTrace();
} finally {
if(jedis != null){
jedis.close();
}
return result;
}
}
public static Long setnx(String key,String value){
Jedis jedis = null;
Long result = null;
try {
jedis = RedisPool.getJedis();
result = jedis.setnx(key,value);
} catch (Exception e) {
e.printStackTrace();
} finally {
if(jedis != null){
jedis.close();
}
return result;
}
}
public static String getSet(String key,String value){
Jedis jedis = null;
String result = null;
try {
jedis = RedisPool.getJedis();
result = jedis.getSet(key,value);
} catch (Exception e) {
e.printStackTrace();
} finally {
if(jedis != null){
jedis.close();
}
return result;
}
}
public static Long expire(String key,int seconds){
Jedis jedis = null;
Long result = null;
try {
jedis = RedisPool.getJedis();
result = jedis.expire(key,seconds);
} catch (Exception e) {
e.printStackTrace();
} finally {
if(jedis != null){
jedis.close();
}
return result;
}
}
public static Long del(String key){
Jedis jedis = null;
Long result = null;
try {
jedis = RedisPool.getJedis();
result = jedis.del(key);
} catch (Exception e) {
e.printStackTrace();
} finally {
if(jedis != null){
jedis.close();
}
return result;
}
}
}
| [
"[email protected]"
] | |
3111c87de289a68f47349f467b09cec7df009d0b | 687ff0d0d864e237775dc0f53be65a63f84bae19 | /app/src/main/java/com/example/ge/soum_up/storage/UserLocalStore.java | 7ebbdec824fce8c0ba1aff8232b80871d93a4b4e | [] | no_license | bill25/Soum_UP | b896c4c41a56d4c9c6fb99599a5998a25fd6d28b | b8aebafbdf85b11779f60533e3da136391930730 | refs/heads/master | 2021-01-13T05:25:53.557414 | 2017-02-11T09:59:42 | 2017-02-11T09:59:42 | 81,440,825 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,421 | java | package com.example.ge.soum_up.storage;
/**
* Created by GE on 09/02/2017.
*/
import android.content.Context;
import android.content.SharedPreferences;
import com.example.ge.soum_up.model.User;
public class UserLocalStore {
public static final String SP_Name="userDetails";
SharedPreferences userLocalDatabase;
public UserLocalStore(Context context) {
userLocalDatabase = context.getSharedPreferences(SP_Name,0);
}
public void storeUserData(User user)
{try {
SharedPreferences.Editor spEditor = userLocalDatabase.edit();
spEditor.putInt("user_ID",user.getUser_ID());
spEditor.putString("nom",user.getNom());
spEditor.putString("prenom",user.getPrenom());
spEditor.putInt("age", user.getAge());
spEditor.putString("username", user.getUsername());
spEditor.putString("email", user.getEmail());
spEditor.putString("adresse", user.getAdresse());
spEditor.putString("mdp",user.getMdp());
spEditor.putString("sexe",user.getSexe());
spEditor.commit();
}catch (Exception e){}
}
public User getLoggedInUser (){
int user_ID = userLocalDatabase.getInt("user_ID", 1);
String nom = userLocalDatabase.getString("nom", "");
String prenom = userLocalDatabase.getString("prenom", "");
int age = userLocalDatabase.getInt("age", 1);
String username = userLocalDatabase.getString("username", "");
String email = userLocalDatabase.getString("email","");
String adresse = userLocalDatabase.getString("adresse","");
String mdp = userLocalDatabase.getString("mdp","");
String sexe = userLocalDatabase.getString("sexe","");
User storedUser = new User(user_ID,nom,prenom,age,username,email,adresse,mdp,sexe);
return storedUser;
}
public void setUserLoggedIn(boolean LoggedIn)
{
SharedPreferences.Editor spEditor = userLocalDatabase.edit();
spEditor.putBoolean("LoggedIn",LoggedIn);
spEditor.commit();
}
public void clearUserData()
{
SharedPreferences.Editor spEditor = userLocalDatabase.edit();
spEditor.clear();
spEditor.commit();
}
public boolean getUserLoggedIn ()
{
if (userLocalDatabase.getBoolean("LoggedIn",false)== true)
return true;
else {
return false;
}
}
} | [
"[email protected]"
] | |
071c8876628f12055ef44aba8af68b790ae81f1d | 8edcf09973f8f17cefeec345af5f38afc7c6e982 | /app/src/main/java/ru/borisenko/gennady/sportmonitor/models/TrainingComplex.java | 80aae7f19210c514a96b8a90d2265af70d493f81 | [] | no_license | Aneg/SportMonitor | 495fb977c8f820bddfc92b066a3bc0e8d14046d4 | 44f9abd1b792b667f302c2a3405613f7443e51b5 | refs/heads/master | 2020-04-17T03:57:58.604590 | 2016-10-05T03:15:50 | 2016-10-05T03:15:50 | 66,748,437 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,572 | java | package ru.borisenko.gennady.sportmonitor.models;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "training_complex")
public class TrainingComplex {
public final static String TRAINING_ID_FIELD_NAME = "training_id";
public final static String COMPLEX_ID_FIELD_NAME = "complex_id";
/**
* This id is generated by the database and set on the object when it is passed to the create method. An id is
* needed in case we need to update or delete this object in the future.
*/
@DatabaseField(generatedId = true)
private int id;
// This is a foreign object which just stores the id from the User object in this table.
@DatabaseField(foreign = true, columnName = TRAINING_ID_FIELD_NAME)
private Training training;
// This is a foreign object which just stores the id from the Post object in this table.
@DatabaseField(foreign = true, columnName = COMPLEX_ID_FIELD_NAME)
private Complex complex;
TrainingComplex() {
// for ormlite
}
public TrainingComplex(Training training, Complex complex) {
this.training = training;
this.complex = complex;
}
public int getId() {
return id;
}
public Training getTraining() {
return training;
}
public void setTraining(Training training) {
this.training = training;
}
public Complex getComplex() {
return complex;
}
public void setComplex(Complex complex) {
this.complex = complex;
}
}
| [
"[email protected]"
] | |
d77f0d6f8d18aced1f1afaa1dbfe951bcd2259a6 | aae7358b0ed1093872f143ab54a3b5ee87c16c28 | /hlib/src/main/java/kr/ac/hansung/domain/Member.java | c684355c18d297baac4d1d76717d611611c212f2 | [] | no_license | kimtm60/SW2016 | ab02ecb7b35acd4cca9ca3dbe2d0b924ef8cac18 | 70f72e6fe428c62df5ff770d063efe5b4f89f41d | refs/heads/master | 2021-01-21T13:52:40.016477 | 2016-06-01T06:15:30 | 2016-06-01T06:15:30 | 53,386,263 | 1 | 2 | null | 2016-05-10T05:44:57 | 2016-03-08T05:50:10 | null | UTF-8 | Java | false | false | 717 | java | package kr.ac.hansung.domain;
public class Member {
private String memberId;
private String password;
private int coffeePoint;
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getCoffeePoint() {
return coffeePoint;
}
public void setCoffeePoint(int coffeePoint) {
this.coffeePoint = coffeePoint;
}
public Member(String memberID, String password) {
super();
this.memberId = memberId;
this.password = password;
this.coffeePoint = coffeePoint;
}
public Member() {
}
}
| [
"[email protected]"
] | |
c62d0f133f61ea1fccce83c2ee5dee2b91a50451 | d122fd101337a56bc1ec33028c5b583a2eee5c29 | /slimchat-service-core/src/main/java/com/onlythenaive/casestudy/slimchat/service/core/domain/message/MessagePersisterBean.java | ef131372dc6d00a0923330bd89a34881f4c24e70 | [
"MIT"
] | permissive | onlythenaive/casestudy-slimchat | f77e5915c82a206f58fcb713d9a2b2ad0e705d0b | 2d494866d40008ae6a90a3921341887e93a1eefc | refs/heads/master | 2020-03-26T20:02:19.172662 | 2018-09-07T22:06:30 | 2018-09-07T22:06:30 | 145,300,654 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 729 | java | package com.onlythenaive.casestudy.slimchat.service.core.domain.message;
import org.springframework.stereotype.Service;
import com.onlythenaive.casestudy.slimchat.service.core.utility.persistence.GenericPersisterBean;
/**
* Chat message persister implementation.
*
* @author Ilia Gubarev
*/
@Service
public class MessagePersisterBean extends GenericPersisterBean<MessageEntity> implements MessagePersister {
@Override
public String getEntityName() {
return MessageEntity.NAME;
}
@Override
public Class<MessageEntity> getEntityType() {
return MessageEntity.class;
}
@Override
protected void beforeInsert(MessageEntity entity) {
super.beforeInsert(entity);
}
}
| [
"[email protected]"
] | |
6db50ba47be7dfe4e70e30ee75db10bb9c3fc20b | 327a9a7f69f1980f801abded062a5deabd7a1516 | /hbn_app002/src/com/sairam/pojo/Employee.java | 529da62aab4c80b317223dc206eb566205c94039 | [] | no_license | sairampython203/Java_hbn | c792c1465e026a64f41ce31a05664cd594867ad4 | ecaeb8755fcdb9d5657c2d4e8a0fa6f539e1c4d5 | refs/heads/main | 2022-12-30T19:17:14.927120 | 2020-10-16T03:54:28 | 2020-10-16T03:54:28 | 303,397,752 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,358 | java | package com.sairam.pojo;
import javax.persistence.*;
@Entity
@Table(name="employee")
public class Employee {
@Id
@Column(name="EID", length=5)
private String eid;
@Column(name="ENAME", length=10)
private String ename;
@Column(name="ESAL", length=6)
private float esal;
@Column(name="EADDR", length=10)
private String eaddr;
@OneToOne(cascade= CascadeType.ALL)
private Account acc;
public Employee() {
super();
}
public Employee(String eid, String ename, float esal, String eaddr, Account acc) {
this.eid = eid;
this.ename = ename;
this.esal = esal;
this.eaddr = eaddr;
this.acc = acc;
}
public String getEid() {
return eid;
}
public void setEid(String eid) {
this.eid = eid;
}
public String getEname() {
return ename;
}
public void setEname(String ename) {
this.ename = ename;
}
public float getEsal() {
return esal;
}
public void setEsal(float esal) {
this.esal = esal;
}
public String getEaddr() {
return eaddr;
}
public void setEaddr(String eaddr) {
this.eaddr = eaddr;
}
public Account getAcc() {
return acc;
}
public void setAcc(Account acc) {
this.acc = acc;
}
}
| [
"[email protected]"
] | |
aa47d6e8bc2452363878c5ed6f8d5a4685c6ac82 | 44f99ced8beee004ad9c7b460e84f1663b1838f6 | /src/main/java/com/learn/designpattern/adapter/PowerAdapter.java | b842dff310c78f8def180480427426fd5e4d5b7a | [
"Apache-2.0"
] | permissive | chainren/design-pattern | a0839ae4dd1d31fb3130ae19a773ef0f3d060b3d | 215ab551752415bc88ede58200ddb2e90828f7a0 | refs/heads/master | 2020-12-30T12:11:45.268828 | 2017-05-18T03:02:45 | 2017-05-18T03:02:45 | 91,412,209 | 1 | 0 | Apache-2.0 | 2020-10-12T22:04:43 | 2017-05-16T03:57:40 | Java | UTF-8 | Java | false | false | 427 | java | package com.learn.designpattern.adapter;
/**
* 中国制造的电源适配器,以转换日产电源,使其符合中国电压标准
*
* @author chenrg
* @date 2017年5月5日
*/
public class PowerAdapter extends JapanStandardPower implements IChinaStandardPower {
public void chargeBy220Volt() {
super.chargeBy100Volt();
System.out.println("do something for convert adapter,now it can be used 220 volt");
}
}
| [
"[email protected]"
] | |
a9656dfe13d6e6ffea90d28b3f3cd824985877f3 | d2e8f12ab959541ca98359e399e50ec4642d58b8 | /lux-common/src/main/java/com/tencloud/lux/security/common/util/UUIDUtils.java | 92f2c2553af0286d50593157af15887a28630dc9 | [
"Apache-2.0"
] | permissive | iXLucius/lux-cloud | 3eea168f74bbcb076b75515553393f4308ddb349 | dfc85b813eed353fa0502d37b5b72585115f7dc7 | refs/heads/master | 2021-09-13T18:37:54.916448 | 2018-05-03T06:09:49 | 2018-05-03T06:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 943 | java | package com.tencloud.lux.security.common.util;
import java.util.UUID;
public class UUIDUtils {
public static String[] chars = new String[] { "a", "b", "c", "d", "e", "f",
"g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s",
"t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5",
"6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I",
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
"W", "X", "Y", "Z" };
public static String generateShortUuid() {
StringBuffer shortBuffer = new StringBuffer();
String uuid = UUID.randomUUID().toString().replace("-", "");
for (int i = 0; i < 8; i++) {
String str = uuid.substring(i * 4, i * 4 + 4);
int x = Integer.parseInt(str, 16);
shortBuffer.append(chars[x % 0x3E]);
}
return shortBuffer.toString();
}
}
| [
"[email protected]"
] | |
9df6c5758c617ba607b006d97c6a7583498945c3 | f93f6f0a868ad95d9ece6b59b4d7a23923e35c0e | /src/main/java/xyz/koral/compute/java/Cache.java | 7727d7cddadaa709f9c678ba3ee75bedd5ba9138 | [] | no_license | criscris/koral | 1f51d0609f9a4736e5ac4c459dc1d4bfc6b96b98 | 8a8cbf3e3f9dad3f88a07ae039bdd8866be64794 | refs/heads/master | 2021-01-17T08:07:21.392987 | 2018-10-25T15:52:55 | 2018-10-25T15:52:55 | 35,338,325 | 1 | 1 | null | 2016-07-12T15:21:28 | 2015-05-09T17:35:47 | Java | UTF-8 | Java | false | false | 883 | java | package xyz.koral.compute.java;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.stream.Stream;
import xyz.koral.compute.Tuple2;
import xyz.koral.compute.config.DataFormat;
public class Cache
{
Map<String, Tuple2<Object, DataFormat>> uriToSource = new HashMap<>();
public boolean exists(String uri)
{
return uriToSource.containsKey(uri);
}
public void add(String uri, Object source, DataFormat format)
{
// no stream (potentially too big and no common generic type (potential type matching issue)
if (source instanceof Stream ||
source instanceof Iterable ||
source instanceof Iterator) return;
uriToSource.put(uri, new Tuple2<>(source, format));
}
public Object value(String uri)
{
return uriToSource.get(uri)._1;
}
public DataFormat format(String uri)
{
return uriToSource.get(uri)._2;
}
} | [
"[email protected]"
] | |
85bc98f3c15616e7f42a8e23ca1ecf7d67ccea07 | caae2db323eb2fb3352d9d5e4d5845d52779df41 | /src/main/java/com/nsa/mhasite/controllers/ApplicantController.java | beabc9c0a7d0b5ede8ae2c1c8b9ee508305d7513 | [] | no_license | pedrogomesiv/Demo_MHA_Website | 538915a019034c48e97a954d462124b4971d956e | 668d4f9e7e428816017e6c1590f05f8a40577ad8 | refs/heads/master | 2022-12-03T16:36:32.161644 | 2020-08-20T13:04:06 | 2020-08-20T13:04:06 | 289,007,927 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,196 | java | package com.nsa.mhasite.controllers;
import com.nsa.mhasite.domain.RegisterForm;
import com.nsa.mhasite.domain.User;
import com.nsa.mhasite.domain.VolunteerApplicant;
import com.nsa.mhasite.domain.VolunteerUser;
import com.nsa.mhasite.services.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Calendar;
import java.util.Date;
import java.util.Optional;
@Controller
@RequestMapping("/applicant")
public class ApplicantController {
static final Logger LOG = LoggerFactory.getLogger(ApplicantController.class);
private VolunteerService vService;
private VolunteerApplicantsService vAppsService;
private UserRegistrationService uRegService;
private UserService uService;
private UserRoleService uRoleService;
@Autowired
public ApplicantController(VolunteerService vService, UserRegistrationService uRegService, VolunteerApplicantsService vAppsService, UserService uService, UserRoleService uRoleService) {
this.vService = vService;
this.uRegService = uRegService;
this.vAppsService = vAppsService;
this.uService = uService;
this.uRoleService = uRoleService;
}
@RequestMapping(path = "/accept/{id}", method = RequestMethod.GET)
public String acceptApplicantMakeNewVolunteerUser(@PathVariable Long id, Model model) {
LOG.debug("Handling /applicant/accept");
LOG.debug(id.toString());
VolunteerApplicant vol = this.vAppsService.findByVolunteerAppId(id);
LOG.debug(vol.toString());
String mhaT = setBasedOnIfTrueOrFalse(vol.getMha_tennant());
String prevV = setBasedOnIfTrueOrFalse(vol.getPrevious_volunteer());
String conds = setBasedOnIfTrueOrFalse(vol.getConditions());
String meds = setBasedOnIfTrueOrFalse(vol.getMedication());
String allers = setBasedOnIfTrueOrFalse(vol.getAllergies());
Date todaysDate = new Date();
RegisterForm newVolunteer = new RegisterForm(todaysDate, vol.getFirstName(), vol.getLastName(), vol.getAddress_line_one(), vol.getAddress_line_two(),
vol.getCity(), vol.getPostcode(), vol.getPhone(), vol.getEmergency_number(), vol.getUsername(), mhaT, prevV,
vol.getVolunteer_experience(), conds, vol.getCondition_details(), meds, vol.getMedication_details(),
allers, vol.getAllergy_details());
String userRegResult = uRegService.registerUser(newVolunteer);
if(userRegResult.isEmpty()){
LOG.debug("user registration failed");
}
else{
LOG.debug("user registration success, temp password is: "+userRegResult);
}
//Finally, remove applicant's details.
Integer resultOfDeletion = this.vAppsService.deleteByVolunteerID(id);
LOG.debug("Rows affected by deletion: " + resultOfDeletion);
model.addAttribute("volunteer", vol);
model.addAttribute("content", "volunteerCreatedSuccessfully");
return "adminMenu";
}
public String setBasedOnIfTrueOrFalse(Boolean item) {
if (item == true) {
return "yes";
} else {
return "false";
}
}
@RequestMapping(path = "/decline/{id}", method = RequestMethod.GET)
public String declineApplicant(@PathVariable Long id, Model model) {
LOG.debug("Handling /applicant/decline");
LOG.debug(id.toString());
VolunteerApplicant vol = this.vAppsService.findByVolunteerAppId(id);
LOG.debug(vol.toString());
LOG.debug("Removing applicant.");
Integer resultOfDeletion = this.vAppsService.deleteByVolunteerID(id);
LOG.debug("Rows affected by deletion: " + resultOfDeletion);
model.addAttribute("content", "adminApplicants");
return "adminMenu";
}
}
| [
"[email protected]"
] | |
8bf79fd8f6b9b588083f5e31b4e17f49e0e168cd | 6b83984ff783452c3e9aa2b7a1d16192b351a60a | /question0152_maximum_product_subarray/Solution3.java | 5b45bf1020d2ff21a6898b39cfec7cb9751ba2dc | [] | no_license | 617076674/LeetCode | aeedf17d7cd87b9e59e0a107cd6af5ce9bac64f8 | 0718538ddb79e71fec9a330ea27524a60eb60259 | refs/heads/master | 2022-05-13T18:29:44.982447 | 2022-04-13T01:03:28 | 2022-04-13T01:03:28 | 146,989,451 | 207 | 58 | null | null | null | null | UTF-8 | Java | false | false | 828 | java | package question0152_maximum_product_subarray;
/**
* 状态压缩。
*
* 时间复杂度是 O(n),其中 n 为 nums 数组的长度。空间复杂度是 O(1)。
*
* 执行用时:2ms,击败92.58%。消耗内存:40MB,击败6.67%。
*/
public class Solution3 {
public int maxProduct(int[] nums) {
int result = nums[0], max = nums[0], min = nums[0];
for (int i = 1; i < nums.length; i++) {
if (nums[i] >= 0) {
max = Math.max(max * nums[i], nums[i]);
min = Math.min(min * nums[i], nums[i]);
} else {
int tmp = max;
max = Math.max(min * nums[i], nums[i]);
min = Math.min(tmp * nums[i], nums[i]);
}
result = Math.max(result, max);
}
return result;
}
} | [
"[email protected]"
] | |
03990d2b14f83c9c432ce726a6c6458f5e2b62c0 | b793752e175a59dcafec8e6d5f70b1a63ec9fe28 | /src/main/java/com/desktop/rbac/action/UserAction.java | 9d8d5410b388af7ef11aa8cfcaaf02dd8915f9e8 | [] | no_license | scucode/desktop | 0284b9ba754797db82bdcc2149dd07c0e19bf12e | 2251f9d469df2e9cb2ed6161fa1483a38e09ab2e | refs/heads/master | 2021-05-26T18:17:28.231354 | 2013-11-23T17:19:51 | 2013-11-23T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 683 | java | package com.desktop.rbac.action;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.desktop.action.BaseAction;
import com.desktop.rbac.model.Department;
import com.desktop.rbac.model.EndUser;
@Controller("userAction")
@Scope("prototype")
public class UserAction extends BaseAction {
private static final long serialVersionUID = 1L;
private EndUser endUser=new EndUser();
@Override
public Object getModel() {
String deptId = request.getParameter("foreignKey");
Department dept = new Department();
dept.setDeptId(deptId);
endUser.setDepartment(dept);
return endUser;
}
}
| [
"[email protected]"
] | |
fea29aca7dfa56846325bf67f45b505d8942b4b2 | b9afcb4c67627aeb130ef97521d51b1e99490374 | /src/main/java/pl/marlena/Condition.java | a4c994b28edab3e45302cdf0afa480d635ef4e14 | [] | no_license | mulawa/pulse | 7fc97f9077cf794e0ba34fa7c01f4774e19c7b16 | 9761ad262866a8ad8504e42f8c86256a4c005ac1 | refs/heads/master | 2021-09-01T19:32:55.248732 | 2017-12-28T12:59:26 | 2017-12-28T12:59:26 | 115,622,426 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 100 | java | package pl.marlena;
public enum Condition {
EXTRA, GREAT, GOOD, OVERUSUAL, BASIC, WEAK, BAD
}
| [
"[email protected]"
] | |
7ae858d62247159bb3e2d54df634688c5841f243 | 47bd92b0ec19cef05398478e93f141e985cc0e05 | /comparer/comparer.model/comparer.model.config/comparer.model.config.repository/src/main/java/com/comparadorad/bet/comparer/model/repository/AbstractCfgSynonymsRepositoryCustomImpl.java | 8736c258ddcb4bdd4ad2c1f0c01c1106bfe08427 | [] | no_license | chuguet/my-comparer | f43c0c3dbf7f635864bbf346c0c11c455f3cb831 | 471e7d83d1c5c5400f90d901faa4f24f8e755490 | refs/heads/master | 2021-01-15T21:03:21.584668 | 2014-08-07T08:57:20 | 2014-08-07T08:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,844 | java | /**
*
* Copyright (C) FACTORIA ETSIA S.L.
* All Rights Reserved.
* www.factoriaetsia.com
*
*/
package com.comparadorad.bet.comparer.model.repository;
import static org.springframework.data.mongodb.core.query.Criteria.where;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.data.mongodb.core.query.Query;
import com.comparadorad.bet.comparer.model.config.bean.AbstractCfgSynonymWord;
import com.comparadorad.bet.comparer.model.config.bean.ICfgSynonyms;
import com.comparadorad.bet.comparer.model.core.repository.AbstractRepository;
import com.comparadorad.bet.comparer.util.commons.lang.TokenWordUtil;
/**
* The Class AbstractCfgRepository.
*
* @param <T>
* the generic type
*/
abstract class AbstractCfgSynonymsRepositoryCustomImpl<T extends ICfgSynonyms>
extends AbstractRepository<T> implements ISynonymsRepository<T> {
private static final Log LOG = LogFactory
.getLog(AbstractCfgSynonymsRepositoryCustomImpl.class);
/**
* Custom find by key words.
*
* @param keywords
* the keywords
* @return the list {@inheritDoc}
*/
@Override
public List<T> customFindByKeyWords(String[] keywords) {
Query q1 = new Query(where("synonimWords._keywords").in(keywords)
.and(getActiveAndCondition()).ne("false"));
LOG.info(q1.getQueryObject());
return getMongoTemplate().find(q1, getModelClass());
}
/** {@inheritDoc} */
@Override
public List<T> customFindByname(String name) {
Query query1 = new Query(where("synonimWords.word").is(name)
.and(getActiveAndCondition()).ne("false"));
LOG.info(query1.getQueryObject());
return getMongoTemplate().find(query1, getModelClass());
}
@Override
public List<T> customFindAll() {
return getMongoTemplate().findAll(getModelClass());
}
/**
* Gets the model class.
*
* @return the model class
*/
protected abstract Class<T> getModelClass();
/**
* Save.
*
* @param <S>
* the generic type
* @param entities
* the entities
* @return the iterable
*/
public <S extends T> Iterable<S> save(Iterable<S> entities) {
for (S s : entities) {
save(s);
}
return entities;
}
/**
* Save.
*
* @param entity
* the entity {@inheritDoc}
*/
public void save(T entity) {
if (entity instanceof ICfgSynonyms) {
List<AbstractCfgSynonymWord> synonymWords = ((ICfgSynonyms) entity)
.getSynonimWords();
if (synonymWords != null) {
for (AbstractCfgSynonymWord synonymWord : synonymWords) {
String[] tokens = TokenWordUtil.createTokens(synonymWord
.getWord());
synonymWord.setKeywords(tokens);
}
}
}
super.save(entity);
}
}
| [
"[email protected]@7daf7316-15a6-36d4-e5e8-a3ca7c335dfd"
] | [email protected]@7daf7316-15a6-36d4-e5e8-a3ca7c335dfd |
1ae80dd6208fa1e255a450e5d48004428a51edf9 | d314f4b6ad9715b12ca05b0966e6095c7053c5a0 | /core/src/gwtcog/core/mathutil/IntRange.java | bfd6f13dbac6684b523ef68eb114bd12aae9ee5a | [] | no_license | MichielVdAnker/gwtcog | d2b46be0f27413e50b829b6d9cbcd16b5a2d2e54 | 795047ced68048e142561f7f4ad99a3dde9b63ee | refs/heads/master | 2021-01-23T12:34:45.840098 | 2013-05-11T14:27:40 | 2013-05-11T14:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,022 | java | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* For more information on Heaton Research copyrights, licenses
* and trademarks visit:
* http://www.heatonresearch.com/copyright
*/
package gwtcog.core.mathutil;
/**
* A range of integers.
*/
public class IntRange {
/**
* The low end of the range.
*/
private int high;
/**
* The high end of the range.
*/
private int low;
/**
* Construct an integer range.
*
* @param theHigh
* The high end of the range.
* @param theLow
* The low end of the range.
*/
public IntRange(final int theHigh, final int theLow) {
super();
this.high = theHigh;
this.low = theLow;
}
/**
* @return The high end of the range.
*/
public final int getHigh() {
return this.high;
}
/**
* @return The low end of the range.
*/
public final int getLow() {
return this.low;
}
/**
* Set the high end of the range.
*
* @param theHigh
* The high end of the range.
*/
public final void setHigh(final int theHigh) {
this.high = theHigh;
}
/**
* Set the low end of the range.
*
* @param theLow
* The low end of the range.
*/
public final void setLow(final int theLow) {
this.low = theLow;
}
}
| [
"[email protected]"
] | |
1132bc5fe3e776e4cfba1495dabd22fe20c8df4e | 71360761ed54dacbbc5de02eeec73d3ed55713fa | /cinder-service/src/main/java/xdata/etl/cinder/service/kafka/WatchDogManagerRMIService.java | e511a04d4c161418458641813c175d9f6f946472 | [] | no_license | wowcinder/cinder | 6dc18525c04ce6994ca3fa0842c00eeb1d4c3d23 | c0f51882e5ccd64037a23354ea21313cb07148c4 | refs/heads/master | 2021-01-01T18:48:28.447178 | 2013-10-18T09:49:13 | 2013-10-18T09:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 480 | java | /*
* Copyright (C) 2013 BEIJING UNION VOOLE TECHNOLOGY CO., LTD
*/
package xdata.etl.cinder.service.kafka;
/**
* @author XuehuiHe
* @date 2013年10月11日
*/
public interface WatchDogManagerRMIService {
/**
* @param clientIp
* @param rmiPort
* @return
*/
Integer login(String clientIp, Integer rmiPort);
/**
* @param clientIp
*/
void logoff(String clientIp);
/**
* @param clientIp
*/
void tick(String clientIp);
}
| [
"[email protected]"
] | |
0e1efb2ff1493d21e6dac4def8c8322de754eac2 | 349df551c5c3e432af94fab6a68d96cb60d9d88b | /src/main/java/apps/g0rba4ev/servlet/admin/ChangeUserPwdServlet.java | a1300e4a3ea69329040efd884d8a7d5152cd97b6 | [] | no_license | netcracker-edu/2020-msk-survey-app | 8d7413996145405533ab71ddccb1ef6ea3fb1dc5 | 0f56bc76af7216ac1bc6d7b8a3ce090fbbc52e8d | refs/heads/master | 2023-07-26T07:47:48.418357 | 2021-09-10T23:05:20 | 2021-09-10T23:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,531 | java | package apps.g0rba4ev.servlet.admin;
import apps.g0rba4ev.dao.UserDAO;
import apps.g0rba4ev.domain.User;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet("/admin/changeUserPwd")
public class ChangeUserPwdServlet extends HttpServlet {
private UserDAO uDAO;
@Override
public void init() {
uDAO = new UserDAO();
}
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String login = req.getParameter("login");
String password = req.getParameter("password");
if ( login != null && password != null && !login.isEmpty() && !password.isEmpty() ) {
User user = uDAO.findByLogin(login);
if (user != null) {
user.setPassword(password);
uDAO.update(user);
resp.setStatus(HttpServletResponse.SC_OK);
resp.setHeader("Message", "Password changed successfully");
} else {
resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);
resp.setHeader("Message", "User with this login does not exist");
}
} else {
resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);
resp.setHeader("Message", "One of fields either login or password is empty");
}
}
}
| [
"[email protected]"
] | |
5ddf5c8228afd5b643658b6af03e6230ea7c3cce | fb8b0bc7545faad050978256c838680521452f57 | /src/main/java/com/henriquetavares/cursomc/CursomcApplication.java | 819f394e1e62c848caf02a5d3040559f937acce8 | [] | no_license | tavareshenrique/spring-boot-ionic-backend | ef4fb120fd3e95582e7fb5278fb872c2f1ddb830 | f7216f0bd7a6b91033d0910e0870cad5ef72a752 | refs/heads/master | 2020-03-27T14:18:52.606003 | 2018-09-18T00:42:37 | 2018-09-18T00:42:37 | 146,656,144 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 491 | java | package com.henriquetavares.cursomc;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CursomcApplication implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(CursomcApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
}
}
| [
"[email protected]"
] | |
b907cb398559fc65a53c272897297092f9182f7a | d80987742071fa3e2628ed6079ee6af78b2a0a8e | /src/test/java/com/test/structureOfData/lafore/code/sort/MergeSortTest.java | 59423c0be38050fc3eea83732cf6a58662c6a7f1 | [] | no_license | devasterus/algorithms | 3e440a73b1cabbf59c8ed3dfa636b9534479fcf9 | 596e9394263eb987b5a8ff6b041052e64a1c09ba | refs/heads/master | 2023-03-16T02:18:57.971810 | 2019-09-04T13:03:35 | 2019-09-04T13:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 420 | java | package com.test.structureOfData.lafore.code.sort;
import com.test.structureOfData.util.Data;
import org.junit.Assert;
import org.junit.Test;
public class MergeSortTest {
@Test
public void sort(){
Integer [] actual = Data.getIntegerReverseArray(9);
Integer [] expected = Data.getIntegerNaturalArray(9);
MergeSort.sort(actual);
Assert.assertArrayEquals(expected,actual);
}
}
| [
"[email protected]"
] | |
565672e715a76c5e073b438df49035ff53d8c5c7 | a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb | /taihao-20210331/src/main/java/com/aliyun/taihao20210331/models/AutoScalingConfig.java | bf6f9ad03e2d67b2af03464b3903ec52643ed78c | [
"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,024 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.taihao20210331.models;
import com.aliyun.tea.*;
public class AutoScalingConfig extends TeaModel {
// autoScalingMetricNames
@NameInMap("autoScalingMetricNames")
public java.util.List<String> autoScalingMetricNames;
// loadMeasureMetricName
@NameInMap("loadMeasureMetricName")
public String loadMeasureMetricName;
// maxAdjustmentValue
@NameInMap("maxAdjustmentValue")
public Integer maxAdjustmentValue;
// supportDecommissionWithGraceful
@NameInMap("supportDecommissionWithGraceful")
public Boolean supportDecommissionWithGraceful;
public static AutoScalingConfig build(java.util.Map<String, ?> map) throws Exception {
AutoScalingConfig self = new AutoScalingConfig();
return TeaModel.build(map, self);
}
public AutoScalingConfig setAutoScalingMetricNames(java.util.List<String> autoScalingMetricNames) {
this.autoScalingMetricNames = autoScalingMetricNames;
return this;
}
public java.util.List<String> getAutoScalingMetricNames() {
return this.autoScalingMetricNames;
}
public AutoScalingConfig setLoadMeasureMetricName(String loadMeasureMetricName) {
this.loadMeasureMetricName = loadMeasureMetricName;
return this;
}
public String getLoadMeasureMetricName() {
return this.loadMeasureMetricName;
}
public AutoScalingConfig setMaxAdjustmentValue(Integer maxAdjustmentValue) {
this.maxAdjustmentValue = maxAdjustmentValue;
return this;
}
public Integer getMaxAdjustmentValue() {
return this.maxAdjustmentValue;
}
public AutoScalingConfig setSupportDecommissionWithGraceful(Boolean supportDecommissionWithGraceful) {
this.supportDecommissionWithGraceful = supportDecommissionWithGraceful;
return this;
}
public Boolean getSupportDecommissionWithGraceful() {
return this.supportDecommissionWithGraceful;
}
}
| [
"[email protected]"
] | |
246fc96b6636b2d204e076a63dd9d032cdd4c36c | b77536cb2b777a32dc4b22cbb24d9f597053f20e | /chapter_001/src/main/java/ru/job4j/calculate/package-info.java | d6ac8f5e2f27a3a0bbfa9ef302733b3ffb06154f | [
"Apache-2.0"
] | permissive | MaksShevchenko/job4j | 5322c77b41b87a3ceeb7badee31a9d1b5bac2a9d | 600429212d10d6b091336da4cf60c20c54d910be | refs/heads/master | 2021-06-30T00:57:48.255769 | 2019-09-03T19:51:47 | 2019-09-03T19:51:47 | 176,772,381 | 0 | 0 | Apache-2.0 | 2020-10-13T12:37:10 | 2019-03-20T16:16:55 | Java | UTF-8 | Java | false | false | 151 | java | /**
* Package for calculate task.
*
* @author Maks Shevchenko ([email protected])
* @version $Id$
* @since 25.03.2019
*/
package ru.job4j.calculate; | [
"[email protected]"
] | |
b56639e1431d4d89e9d6df4fb6d925f6fa7ec788 | 835b058fd6fad40fd03c5b3789bbe788407e5f0c | /src/main/java/ru/verlioka/cmf/appservices/vsidorenkov/controllers/Criteria/CriteriaRequest2.java | 954259a0ae38e7604e46792f52f731df6eb7e24f | [] | no_license | AlekseevaKseniya/verliqps | 89a2d440b426b88a5f47bc4a0149d5edc6d5408b | f35a87f4d8625d2cf23b61716b8cc60cea0dd503 | refs/heads/master | 2021-09-06T21:18:47.211126 | 2018-02-11T15:15:24 | 2018-02-11T15:15:24 | 114,676,118 | 0 | 0 | null | 2017-12-18T18:46:49 | 2017-12-18T18:46:49 | null | UTF-8 | Java | false | false | 1,424 | java | package ru.verlioka.cmf.appservices.vsidorenkov.controllers.Criteria;
import java.util.Date;
public class CriteriaRequest2 {
private Date order_date;
private String client_fio;
private String client_address;
private String client_phone;
private int order_price;
private int delivery_price;
public Date getOrder_date() {
return order_date;
}
public void setOrder_date(Date order_date) {
this.order_date = order_date;
}
public String getClient_fio() {
return client_fio;
}
public void setClient_fio(String client_fio) {
this.client_fio = client_fio;
}
public String getClient_address() {
return client_address;
}
public void setClient_address(String client_address) {
this.client_address = client_address;
}
public String getClient_phone() {
return client_phone;
}
public void setClient_phone(String client_phone) {
this.client_phone = client_phone;
}
public int getOrder_price() {
return order_price;
}
public void setOrder_price(int order_price) {
this.order_price = order_price;
}
public int getDelivery_price() {
return delivery_price;
}
public void setDelivery_price(int delivery_price) {
this.delivery_price = delivery_price;
}
} | [
"[email protected]"
] | |
fb1795a3c5811e1cd97f5d9a0c9182cc3f70ca94 | 8d9f458204edef309bd761943d3613ac22dcd370 | /venus-web/src/main/java/com/smartdata/venus/uc/core/thymeleaf/utility/LogUtil.java | b2ff8469a3cf1481ba5b7e4640bbfff07303295a | [] | no_license | lookhua/venus | e1def966a76b624b71b6363c1ff85f96149b70dc | d242c0ab5bba330eda729b4f4a9d03aeb23170e4 | refs/heads/master | 2020-04-09T13:07:10.386557 | 2019-01-29T12:23:14 | 2019-01-29T12:23:14 | 160,367,299 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,160 | java | package com.smartdata.venus.uc.core.thymeleaf.utility;
import com.smartdata.core.utils.ReflexBeanUtil;
import com.smartdata.venus.uc.core.utils.SpringContextUtil;
import com.smartdata.venus.uc.domain.ActionLog;
import com.smartdata.venus.uc.system.service.ActionLogService;
import javax.persistence.Table;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
/**
* @author khlu
* @date 2018/10/16
*/
public class LogUtil {
/**
* 获取实体对象的日志
* @param entity 实体对象
*/
public List<ActionLog> entityList(Object entity){
ActionLogService actionLogService = SpringContextUtil.getBean(ActionLogService.class);
Table table = entity.getClass().getAnnotation(Table.class);
String tableName = table.name();
try {
Object object = ReflexBeanUtil.getField(entity, "id");
Long entityId = Long.valueOf(String.valueOf(object));
return actionLogService.getDataLogList(tableName, entityId);
} catch (InvocationTargetException | IllegalAccessException e) {
e.printStackTrace();
}
return null;
}
}
| [
"2560636051"
] | 2560636051 |
aefb6a4977d50ba47115d97704b140795bbf04d7 | b47689f777e4e2acddca490722b3851b8bdd5a03 | /app/src/main/java/com/thoughtworks/todo/dagger/annotations/qualifiers/TodoActivityQualifier.java | d673b238936f6a4f9c531235ad259e0133d42d1d | [] | no_license | EktaRobo/Todo | ff6657212d14b4f1fbc8131c298f8ca40e55ede4 | 27af14bbc130fb9cc8c87b48def3e5a211059712 | refs/heads/master | 2020-08-03T02:48:48.973096 | 2019-09-29T04:54:37 | 2019-09-29T04:54:37 | 211,602,289 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 202 | java | package com.thoughtworks.todo.dagger.annotations.qualifiers;
import java.lang.annotation.Documented;
import javax.inject.Qualifier;
@Documented
@Qualifier
public @interface TodoActivityQualifier {
}
| [
"[email protected]"
] | |
2c1b65f4e7f8ec1cf9a196f5b92d6780580827ac | bfca8db3a70bb29c9578a89dfc24c8c809898f96 | /AtendimentoMobile/app/src/main/java/br/com/eric/atendimentomobile/activities/TabAdapter.java | ca75fefb03b864b08bdde79741727149b5e01f5a | [] | no_license | ericfujii/atendimento-mobile | 2387704a4e1d6946be4b05e14a052a3774e4928a | b45ed7bc8aa3ab74cabdd65816c026cc86caa2ca | refs/heads/master | 2021-01-21T14:02:11.298244 | 2016-06-05T21:41:52 | 2016-06-05T21:41:52 | 36,728,305 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,443 | java | package br.com.eric.atendimentomobile.activities;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import java.util.List;
/**
* Created by eric on 27-02-2015.
*/
public class TabAdapter extends FragmentStatePagerAdapter {
private List<String> titles; // This will Store the Titles of the Tabs which are Going to be passed when ViewPagerAdapter is created
private List<Fragment> fragments;
private int NumbOfTabs; // Store the number of tabs, this will also be passed when the ViewPagerAdapter is created
// Build a Constructor and assign the passed Values to appropriate values in the class
public TabAdapter(FragmentManager fm, List<String> titles, List<Fragment> fragments) {
super(fm);
this.titles = titles;
this.fragments = fragments;
this.NumbOfTabs = fragments.size();
}
//This method return the fragment for the every position in the View Pager
@Override
public Fragment getItem(int position) {
return fragments.get(position);
}
// This method return the titles for the Tabs in the Tab Strip
@Override
public CharSequence getPageTitle(int position) {
return titles.get(position);
}
// This method return the Number of tabs for the tabs Strip
@Override
public int getCount() {
return NumbOfTabs;
}
}
| [
"[email protected]"
] | |
fa71cf7399a0f441da16fda4b195b1dac4be9074 | 7d8261bb8f492d7c736da765015fa439197eddb1 | /app/src/main/java/com/zwh/mvparms/eyepetizer/mvp/ui/activity/VideoFullCreenActivity.java | 22331ea10fda275759fb5d341b43be3f35a973f1 | [
"Apache-2.0"
] | permissive | jiangxuwe/Aurora | 8d445d627cd90645b510dda1dd3693514b41d68e | c11e10ff60294fa036dd0076d9cf50fb2a96c9a8 | refs/heads/master | 2021-05-29T00:23:33.619021 | 2018-09-20T08:23:21 | 2018-09-20T08:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,529 | java | package com.zwh.mvparms.eyepetizer.mvp.ui.activity;
import android.os.Bundle;
import android.view.View;
import com.jess.arms.di.component.AppComponent;
import com.shuyu.gsyvideoplayer.listener.LockClickListener;
import com.shuyu.gsyvideoplayer.utils.OrientationUtils;
import com.shuyu.gsyvideoplayer.video.base.GSYVideoPlayer;
import com.zwh.annotation.apt.Extra;
import com.zwh.annotation.apt.Router;
import com.zwh.mvparms.eyepetizer.R;
import com.zwh.mvparms.eyepetizer.app.constants.Constants;
import com.zwh.mvparms.eyepetizer.mvp.ui.widget.video.SampleVideo;
import com.zwh.mvparms.eyepetizer.mvp.ui.widget.video.listener.SampleListener;
import butterknife.BindView;
@Router(Constants.FULL_VIDEO)
public class VideoFullCreenActivity extends BaseActivity {
@BindView(R.id.video_player)
public SampleVideo detailPlayer;
@Extra(Constants.VIDEO_URL)
public String url;
OrientationUtils orientationUtils;
@Override
public void setupActivityComponent(AppComponent appComponent) {
}
@Override
public int initView(Bundle savedInstanceState) {
return R.layout.activity_video_fullscreen;
}
@Override
public void initData(Bundle savedInstanceState) {
initMedia();
}
private void initMedia() {
detailPlayer.setBottomProgressBarDrawable(getResources().getDrawable(R.drawable.progress_video));
detailPlayer.setBottomShowProgressBarDrawable(getResources().getDrawable(R.drawable.progress_video), getResources().getDrawable(R.drawable.video_seek_thumb));
detailPlayer.setUp(url, true,"");
detailPlayer.getBackButton().setVisibility(View.VISIBLE);
detailPlayer.setIsTouchWiget(true);
orientationUtils = new OrientationUtils(this, detailPlayer);
detailPlayer.getFullscreenButton().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
orientationUtils.resolveByClick();
}
});
detailPlayer.getBackButton().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
//关闭自动旋转
detailPlayer.setRotateViewAuto(false);
detailPlayer.setLockLand(false);
detailPlayer.setShowFullAnimation(false);
detailPlayer.setNeedLockFull(true);
detailPlayer.setSeekRatio(1);
//detailPlayer.setOpenPreView(false);
detailPlayer.getFullscreenButton().setVisibility(View.GONE);
detailPlayer.setStandardVideoAllCallBack(new SampleListener() {
@Override
public void onPrepared(String url, Object... objects) {
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
}
@Override
public void onAutoComplete(String url, Object... objects) {
super.onAutoComplete(url, objects);
}
@Override
public void onClickStartError(String url, Object... objects) {
super.onClickStartError(url, objects);
}
@Override
public void onQuitFullscreen(String url, Object... objects) {
super.onQuitFullscreen(url, objects);
if (orientationUtils != null) {
orientationUtils.backToProtVideo();
}
}
});
detailPlayer.setLockClickListener(new LockClickListener() {
@Override
public void onClick(View view, boolean lock) {
if (orientationUtils != null) {
//配合下方的onConfigurationChanged
orientationUtils.setEnable(!lock);
}
}
});
detailPlayer.startPlayLogic();
}
@Override
protected void onPause() {
super.onPause();
detailPlayer.onVideoPause();
}
@Override
protected boolean isDisplayHomeAsUpEnabled() {
return false;
}
@Override
protected void onResume() {
super.onResume();
detailPlayer.onVideoResume();
}
@Override
protected void onDestroy() {
GSYVideoPlayer.releaseAllVideos();
//GSYPreViewManager.instance().releaseMediaPlayer();
if (orientationUtils != null)
orientationUtils.releaseListener();
super.onDestroy();
}
}
| [
"[email protected]"
] | |
dd3c9bb29e69c51a97dc066d785be817998e4e76 | 8ccd1c071b19388f1f2e92c5e5dbedc78fead327 | /src/main/java/ohos/com/sun/org/apache/xml/internal/res/XMLErrorResources_de.java | 19670f94703110e1f0edbb7f8dd42b639b39593c | [] | no_license | yearsyan/Harmony-OS-Java-class-library | d6c135b6a672c4c9eebf9d3857016995edeb38c9 | 902adac4d7dca6fd82bb133c75c64f331b58b390 | refs/heads/main | 2023-06-11T21:41:32.097483 | 2021-06-24T05:35:32 | 2021-06-24T05:35:32 | 379,816,304 | 6 | 3 | null | null | null | null | UTF-8 | Java | false | false | 14,719 | java | package ohos.com.sun.org.apache.xml.internal.res;
import java.util.ListResourceBundle;
public class XMLErrorResources_de extends ListResourceBundle {
public static final String ER_ARG_LOCALNAME_INVALID = "ER_ARG_LOCALNAME_INVALID";
public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
public static final String ER_AXIS_NOT_SUPPORTED = "ER_AXIS_NOT_SUPPORTED";
public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = "ER_AXIS_TRAVERSER_NOT_SUPPORTED";
public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = "ER_BUFFER_SIZE_LESSTHAN_ZERO";
public static final String ER_CANNOT_CHANGE_WHILE_PARSING = "ER_CANNOT_CHANGE_WHILE_PARSING";
public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = "ER_CANNOT_INIT_URI_EMPTY_PARMS";
public static final String ER_CANNOT_OVERWRITE_CAUSE = "ER_CANNOT_OVERWRITE_CAUSE";
public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = "ER_CHUNKEDINTARRAY_NOT_SUPPORTED";
public static final String ER_COJOINROUTINESET_FAILED = "ER_COJOINROUTINESET_FAILED";
public static final String ER_COROUTINE_CO_EXIT = "ER_COROUTINE_CO_EXIT";
public static final String ER_COROUTINE_NOT_AVAIL = "ER_COROUTINE_NOT_AVAIL";
public static final String ER_COROUTINE_PARAM = "ER_COROUTINE_PARAM";
public static final String ER_COULD_NOT_INIT_PARSER = "ER_COULD_NOT_INIT_PARSER";
public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = "ER_COULD_NOT_LOAD_METHOD_PROPERTY";
public static final String ER_COULD_NOT_LOAD_RESOURCE = "ER_COULD_NOT_LOAD_RESOURCE";
public static final String ER_COULD_NOT_RESOLVE_NODE = "ER_COULD_NOT_RESOLVE_NODE";
public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = "ER_CREATEDOCUMENT_NOT_SUPPORTED";
public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = "ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER";
public static final String ER_EXCEPTION_CREATING_POOL = "ER_EXCEPTION_CREATING_POOL";
public static final String ER_FRAG_FOR_GENERIC_URI = "ER_FRAG_FOR_GENERIC_URI";
public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR";
public static final String ER_FRAG_WHEN_PATH_NULL = "ER_FRAG_WHEN_PATH_NULL";
public static final String ER_FUNCTION_NOT_SUPPORTED = "ER_FUNCTION_NOT_SUPPORTED";
public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = "ER_HOST_ADDRESS_NOT_WELLFORMED";
public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = "ER_ILLEGAL_ATTRIBUTE_POSITION";
public static final String ER_ILLEGAL_CHARACTER = "ER_ILLEGAL_CHARACTER";
public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = "ER_INCRSAXSRCFILTER_NOT_RESTARTABLE";
public static final String ER_INVALID_PORT = "ER_INVALID_PORT";
public static final String ER_INVALID_UTF16_SURROGATE = "ER_INVALID_UTF16_SURROGATE";
public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = "ER_ITERATOR_AXIS_NOT_IMPLEMENTED";
public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = "ER_ITERATOR_CLONE_NOT_SUPPORTED";
public static final String ER_LOCATION_UNKNOWN = "ER_LOCATION_UNKNOWN";
public static final String ER_METHOD_NOT_SUPPORTED = "ER_METHOD_NOT_SUPPORTED";
public static final String ER_NAMESPACE_PREFIX = "ER_NAMESPACE_PREFIX";
public static final String ER_NAME_CANT_START_WITH_COLON = "ER_NAME_CANT_START_WITH_COLON";
public static final String ER_NODE_NON_NULL = "ER_NODE_NON_NULL";
public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED";
public static final String ER_NO_DEFAULT_IMPL = "ER_NO_DEFAULT_IMPL";
public static final String ER_NO_DTMIDS_AVAIL = "ER_NO_DTMIDS_AVAIL";
public static final String ER_NO_FRAGMENT_STRING_IN_PATH = "ER_NO_FRAGMENT_STRING_IN_PATH";
public static final String ER_NO_PARSE_CALL_WHILE_PARSING = "ER_NO_PARSE_CALL_WHILE_PARSING";
public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST";
public static final String ER_NO_QUERY_STRING_IN_PATH = "ER_NO_QUERY_STRING_IN_PATH";
public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI";
public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI";
public static final String ER_NO_USERINFO_IF_NO_HOST = "ER_NO_USERINFO_IF_NO_HOST";
public static final String ER_OFFSET_BIGGER_THAN_SLOT = "ER_OFFSET_BIGGER_THAN_SLOT";
public static final String ER_OIERROR = "ER_OIERROR";
public static final String ER_PARSER_DOTERMINATE_ANSWERS = "ER_PARSER_DOTERMINATE_ANSWERS";
public static final String ER_PARSER_IN_USE = "ER_PARSER_IN_USE";
public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE";
public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR";
public static final String ER_PORT_WHEN_HOST_NULL = "ER_PORT_WHEN_HOST_NULL";
public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
public static final String ER_RESOURCE_COULD_NOT_FIND = "ER_RESOURCE_COULD_NOT_FIND";
public static final String ER_RESOURCE_COULD_NOT_LOAD = "ER_RESOURCE_COULD_NOT_LOAD";
public static final String ER_SCHEME_FROM_NULL_STRING = "ER_SCHEME_FROM_NULL_STRING";
public static final String ER_SCHEME_NOT_CONFORMANT = "ER_SCHEME_NOT_CONFORMANT";
public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED";
public static final String ER_SELF_CAUSATION_NOT_PERMITTED = "ER_SELF_CAUSATION_NOT_PERMITTED";
public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = "ER_SERIALIZER_NOT_CONTENTHANDLER";
public static final String ER_STARTPARSE_NEEDS_SAXPARSER = "ER_STARTPARSE_NEEDS_SAXPARSER";
public static final String ER_STARTPARSE_WHILE_PARSING = "ER_STARTPARSE_WHILE_PARSING";
public static final String ER_STRAY_ATTRIBUTE = "ER_STRAY_ATTIRBUTE";
public static final String ER_STRAY_NAMESPACE = "ER_STRAY_NAMESPACE";
public static final String ER_SYSTEMID_UNKNOWN = "ER_SYSTEMID_UNKNOWN";
public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = "ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED";
public static final String ER_UNKNOWN_AXIS_TYPE = "ER_UNKNOWN_AXIS_TYPE";
public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = "ER_XMLRDR_NOT_BEFORE_STARTPARSE";
public static final int MAX_CODE = 61;
public static final int MAX_MESSAGES = 62;
public static final int MAX_OTHERS = 4;
public static final int MAX_WARNING = 0;
private static final Object[][] contents = {new Object[]{"ER0000", "{0}"}, new Object[]{"ER_FUNCTION_NOT_SUPPORTED", "Funktion nicht unterstützt."}, new Object[]{"ER_CANNOT_OVERWRITE_CAUSE", "Ursache kann nicht überschrieben werden"}, new Object[]{"ER_NO_DEFAULT_IMPL", "Keine Standardimplementierung gefunden "}, new Object[]{"ER_CHUNKEDINTARRAY_NOT_SUPPORTED", "ChunkedIntArray({0}) derzeit nicht unterstützt"}, new Object[]{"ER_OFFSET_BIGGER_THAN_SLOT", "Offset größer als Slot"}, new Object[]{"ER_COROUTINE_NOT_AVAIL", "Coroutine nicht verfügbar; ID={0}"}, new Object[]{"ER_COROUTINE_CO_EXIT", "CoroutineManager hat co_exit()-Anforderung erhalten"}, new Object[]{"ER_COJOINROUTINESET_FAILED", "co_joinCoroutineSet() nicht erfolgreich"}, new Object[]{"ER_COROUTINE_PARAM", "Coroutine-Parameterfehler ({0})"}, new Object[]{"ER_PARSER_DOTERMINATE_ANSWERS", "\nUNEXPECTED: Parser doTerminate antwortet {0}"}, new Object[]{"ER_NO_PARSE_CALL_WHILE_PARSING", "\"parse\" darf während des Parsing nicht aufgerufen werden"}, new Object[]{"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED", "Fehler: Typisierter Iterator für Achse {0} nicht implementiert"}, new Object[]{"ER_ITERATOR_AXIS_NOT_IMPLEMENTED", "Fehler: Iterator für Achse {0} nicht implementiert "}, new Object[]{"ER_ITERATOR_CLONE_NOT_SUPPORTED", "Iteratorclone nicht unterstützt"}, new Object[]{"ER_UNKNOWN_AXIS_TYPE", "Unbekannter Achsendurchlauftyp: {0}"}, new Object[]{"ER_AXIS_NOT_SUPPORTED", "Achsen-Traverser nicht unterstützt: {0}"}, new Object[]{"ER_NO_DTMIDS_AVAIL", "Keine weiteren DTM-IDs verfügbar"}, new Object[]{"ER_NOT_SUPPORTED", "Nicht unterstützt: {0}"}, new Object[]{"ER_NODE_NON_NULL", "Knoten darf nicht null sein für getDTMHandleFromNode"}, new Object[]{"ER_COULD_NOT_RESOLVE_NODE", "Knoten konnte nicht in Handle aufgelöst werden"}, new Object[]{"ER_STARTPARSE_WHILE_PARSING", "\"startParse\" darf während des Parsing nicht aufgerufen werden"}, new Object[]{"ER_STARTPARSE_NEEDS_SAXPARSER", "startParse erfordert einen SAXParser ungleich null"}, new Object[]{"ER_COULD_NOT_INIT_PARSER", "Parser konnte nicht initialisiert werden mit"}, new Object[]{"ER_EXCEPTION_CREATING_POOL", "Ausnahme beim Erstellen einer neuen Instanz für Pool"}, new Object[]{"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE", "Pfad enthält eine ungültige Escapesequenz"}, new Object[]{"ER_SCHEME_REQUIRED", "Schema ist erforderlich."}, new Object[]{"ER_NO_SCHEME_IN_URI", "Kein Schema gefunden in URI: {0}"}, new Object[]{"ER_NO_SCHEME_INURI", "Kein Schema gefunden in URI"}, new Object[]{"ER_PATH_INVALID_CHAR", "Pfad enthält ungültiges Zeichen: {0}"}, new Object[]{"ER_SCHEME_FROM_NULL_STRING", "Schema kann nicht von Nullzeichenfolge festgelegt werden"}, new Object[]{"ER_SCHEME_NOT_CONFORMANT", "Schema ist nicht konform."}, new Object[]{"ER_HOST_ADDRESS_NOT_WELLFORMED", "Host ist keine wohlgeformte Adresse"}, new Object[]{"ER_PORT_WHEN_HOST_NULL", "Port kann nicht festgelegt werden, wenn der Host null ist"}, new Object[]{"ER_INVALID_PORT", "Ungültige Portnummer"}, new Object[]{"ER_FRAG_FOR_GENERIC_URI", "Fragment kann nur für einen generischen URI festgelegt werden"}, new Object[]{"ER_FRAG_WHEN_PATH_NULL", "Fragment kann nicht festgelegt werden, wenn der Pfad null ist"}, new Object[]{"ER_FRAG_INVALID_CHAR", "Fragment enthält ein ungültiges Zeichen"}, new Object[]{"ER_PARSER_IN_USE", "Parser wird bereits verwendet"}, new Object[]{"ER_CANNOT_CHANGE_WHILE_PARSING", "{0} {1} kann während Parsing nicht geändert werden"}, new Object[]{"ER_SELF_CAUSATION_NOT_PERMITTED", "Selbstkausalität nicht zulässig"}, new Object[]{"ER_NO_USERINFO_IF_NO_HOST", "Benutzerinformationen können nicht angegeben werden, wenn der Host nicht angegeben wurde"}, new Object[]{"ER_NO_PORT_IF_NO_HOST", "Port kann nicht angegeben werden, wenn der Host nicht angegeben wurde"}, new Object[]{"ER_NO_QUERY_STRING_IN_PATH", "Abfragezeichenfolge kann nicht im Pfad und in der Abfragezeichenfolge angegeben werden"}, new Object[]{"ER_NO_FRAGMENT_STRING_IN_PATH", "Fragment kann nicht im Pfad und im Fragment angegeben werden"}, new Object[]{"ER_CANNOT_INIT_URI_EMPTY_PARMS", "URI kann nicht mit leeren Parametern initialisiert werden"}, new Object[]{"ER_METHOD_NOT_SUPPORTED", "Methode noch nicht unterstützt "}, new Object[]{"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE", "IncrementalSAXSource_Filter kann derzeit nicht neu gestartet werden"}, new Object[]{"ER_XMLRDR_NOT_BEFORE_STARTPARSE", "XMLReader nicht vor startParse-Anforderung"}, new Object[]{"ER_AXIS_TRAVERSER_NOT_SUPPORTED", "Achsen-Traverser nicht unterstützt: {0}"}, new Object[]{"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER", "ListingErrorHandler mit Null-PrintWriter erstellt."}, new Object[]{"ER_SYSTEMID_UNKNOWN", "SystemId unbekannt"}, new Object[]{"ER_LOCATION_UNKNOWN", "Fehlerposition unbekannt"}, new Object[]{"ER_PREFIX_MUST_RESOLVE", "Präfix muss in Namespace aufgelöst werden: {0}"}, new Object[]{"ER_CREATEDOCUMENT_NOT_SUPPORTED", "createDocument() nicht in XPathContext unterstützt."}, new Object[]{"ER_CHILD_HAS_NO_OWNER_DOCUMENT", "Untergeordnetes Attribut hat kein Eigentümerdokument."}, new Object[]{"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT", "Untergeordnetes Attribut hat kein Eigentümerdokumentelement."}, new Object[]{"ER_CANT_OUTPUT_TEXT_BEFORE_DOC", "Warnung: Text kann nicht vor Dokumentelement ausgegeben werden. Wird ignoriert..."}, new Object[]{"ER_CANT_HAVE_MORE_THAN_ONE_ROOT", "Mehrere Roots für ein DOM nicht zulässig."}, new Object[]{"ER_ARG_LOCALNAME_NULL", "Argument \"localName\" ist null"}, new Object[]{"ER_ARG_LOCALNAME_INVALID", "Localname in QNAME muss ein gültiger NCName sein"}, new Object[]{"ER_ARG_PREFIX_INVALID", "Präfix in QNAME muss ein gültiger NCName sein"}, new Object[]{"ER_NAME_CANT_START_WITH_COLON", "Name darf nicht mit einem Doppelpunkt beginnen"}, new Object[]{"BAD_CODE", "Parameter für createMessage war außerhalb des gültigen Bereichs"}, new Object[]{"FORMAT_FAILED", "Ausnahme bei messageFormat-Aufruf ausgelöst"}, new Object[]{"line", "Zeilennummer"}, new Object[]{"column", "Spaltennummer"}, new Object[]{"ER_SERIALIZER_NOT_CONTENTHANDLER", "Serializer-Klasse \"{0}\" implementiert ohos.org.xml.sax.ContentHandler nicht."}, new Object[]{"ER_RESOURCE_COULD_NOT_FIND", "Ressource [ {0} ] konnte nicht gefunden werden.\n {1}"}, new Object[]{"ER_RESOURCE_COULD_NOT_LOAD", "Ressource [ {0} ] konnte nicht geladen werden: {1} \n {2} \t {3}"}, new Object[]{"ER_BUFFER_SIZE_LESSTHAN_ZERO", "Puffergröße <=0"}, new Object[]{"ER_INVALID_UTF16_SURROGATE", "Ungültige UTF-16-Ersetzung festgestellt: {0}?"}, new Object[]{"ER_OIERROR", "I/O-Fehler"}, new Object[]{"ER_ILLEGAL_ATTRIBUTE_POSITION", "Attribut {0} kann nicht nach untergeordneten Knoten oder vor dem Erstellen eines Elements hinzugefügt werden. Attribut wird ignoriert."}, new Object[]{"ER_NAMESPACE_PREFIX", "Namespace für Präfix \"{0}\" wurde nicht deklariert."}, new Object[]{"ER_STRAY_ATTIRBUTE", "Attribut \"{0}\" außerhalb des Elements."}, new Object[]{"ER_STRAY_NAMESPACE", "Namespace-Deklaration {0}={1} außerhalb des Elements."}, new Object[]{"ER_COULD_NOT_LOAD_RESOURCE", "\"{0}\" konnte nicht geladen werden (CLASSPATH prüfen). Die Standardwerte werden verwendet"}, new Object[]{"ER_ILLEGAL_CHARACTER", "Versuch, Zeichen mit Integralwert {0} auszugeben, das nicht in der speziellen Ausgabecodierung von {1} dargestellt wird."}, new Object[]{"ER_COULD_NOT_LOAD_METHOD_PROPERTY", "Property-Datei \"{0}\" konnte für Ausgabemethode \"{1}\" nicht geladen werden (CLASSPATH prüfen)"}};
/* access modifiers changed from: protected */
public Object[][] getContents() {
return contents;
}
}
| [
"[email protected]"
] | |
3756fe466e9d67fb2b5a280965360658275ab8c8 | 8c8d7354c5261124f86b0ddc87d6dfacba37e12a | /DallasCowboysApp/build/android/gen/android/support/v7/appcompat/R.java | d8ce9c5247922d26cce7381f399259a6618e99a7 | [
"Apache-2.0"
] | permissive | RubioErik/MIU | a8012c3106ea873c1f999c947cab1f93450ba42c | 533ea6f46e1fec4c998e93d9cfba48c0d9515a14 | refs/heads/master | 2016-09-06T17:25:39.932218 | 2014-11-15T16:09:04 | 2014-11-15T16:09:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 176,827 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.appcompat;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f040000;
public static final int abc_fade_out=0x7f040001;
public static final int abc_slide_in_bottom=0x7f040002;
public static final int abc_slide_in_top=0x7f040003;
public static final int abc_slide_out_bottom=0x7f040004;
public static final int abc_slide_out_top=0x7f040005;
}
public static final class attr {
/** Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarDivider=0x7f01000f;
/** Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=0x7f010010;
/** Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionBarSize=0x7f01000e;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f01000c;
/** Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f01000b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f010008;
/** Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=0x7f010007;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabTextStyle=0x7f010009;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f01000d;
/** Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=0x7f010016;
/** Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionDropDownStyle=0x7f010047;
/** An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionLayout=0x7f01004e;
/** TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionMenuTextAppearance=0x7f010011;
/** Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010012;
/** Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=0x7f01003c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f01003b;
/** Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01003e;
/** Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f010040;
/** Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01003f;
/** Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010044;
/** Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010041;
/** PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010046;
/** Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010042;
/** Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010043;
/** Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01003d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f01003a;
/** Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeWebSearchDrawable=0x7f010045;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01000a;
/** The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f010050;
/** The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=0x7f01004f;
/** Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int activityChooserViewStyle=0x7f01006c;
/** Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int background=0x7f01002f;
/** Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f010031;
/** Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f010030;
/** A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarButtonStyle=0x7f010018;
/** A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f010017;
/** Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f010032;
/** Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int disableChildrenWhenDisabled=0x7f010054;
/** Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=0x7f010028;
/** Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int divider=0x7f01002e;
/** A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f01001b;
/** Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f010056;
/** A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f01001a;
/** ListPopupWindow comaptibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dropDownListViewStyle=0x7f010021;
/** The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=0x7f010048;
/** The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=0x7f01006b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010026;
/** Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=0x7f010013;
/** Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeLayout=0x7f010033;
/** Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f01002c;
/** The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f01005a;
/** Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int indeterminateProgressStyle=0x7f010035;
/** The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f01006a;
/** Specifies whether the theme is light, otherwise it is dark.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010059;
/** Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=0x7f010037;
/** Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f010022;
/** The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f01001c;
/** A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f01001e;
/** A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f01001d;
/** The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f01001f;
/** The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=0x7f010020;
/** Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int logo=0x7f01002d;
/** The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
*/
public static final int navigationMode=0x7f010027;
/** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingEnd=0x7f010039;
/** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f010038;
/** Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelMenuListTheme=0x7f01004b;
/** Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=0x7f01004a;
/** Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupMenuStyle=0x7f010049;
/** Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupPromptView=0x7f010053;
/** Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int progressBarPadding=0x7f010036;
/** Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int progressBarStyle=0x7f010034;
/** The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int prompt=0x7f010051;
/** An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f01005b;
/** SearchView dropdown background
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchDropdownBackground=0x7f01005c;
/** The list item height for search results. @hide
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int searchResultListItemHeight=0x7f010065;
/** SearchView AutoCompleteTextView style
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewAutoCompleteTextView=0x7f010069;
/** SearchView close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewCloseIcon=0x7f01005d;
/** SearchView query refinement icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewEditQuery=0x7f010061;
/** SearchView query refinement icon background
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewEditQueryBackground=0x7f010062;
/** SearchView Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewGoIcon=0x7f01005e;
/** SearchView Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewSearchIcon=0x7f01005f;
/** SearchView text field background for the left section
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewTextField=0x7f010063;
/** SearchView text field background for the right section
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewTextFieldRight=0x7f010064;
/** SearchView Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewVoiceIcon=0x7f010060;
/** A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010019;
/** How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
*/
public static final int showAsAction=0x7f01004d;
/** Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f010055;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=0x7f010058;
/** Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
*/
public static final int spinnerMode=0x7f010052;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerStyle=0x7f010057;
/** Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=0x7f010029;
/** Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=0x7f01002b;
/** Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f01006d;
/** Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=0x7f010014;
/** The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItem=0x7f010023;
/** The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItemSmall=0x7f010024;
/** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultSubtitle=0x7f010067;
/** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultTitle=0x7f010066;
/** Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSmallPopupMenu=0x7f010015;
/** Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=0x7f010068;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=0x7f010025;
/** Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f01002a;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010000;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010001;
/** A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010006;
/** A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010004;
/** A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010003;
/** A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010005;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowSplitActionBar=0x7f010002;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f060000;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f060001;
/** Whether action menu items should be displayed in ALLCAPS or not.
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources.
*/
public static final int abc_config_actionMenuItemAllCaps=0x7f060005;
/** Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited.
Whether action menu items should obey the "withText" showAsAction.
This may be set to false for situations where space is
extremely limited.
*/
public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f060004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f060003;
public static final int abc_split_action_bar_is_narrow=0x7f060002;
}
public static final class color {
public static final int abc_search_url_text_holo=0x7f070003;
public static final int abc_search_url_text_normal=0x7f070000;
public static final int abc_search_url_text_pressed=0x7f070002;
public static final int abc_search_url_text_selected=0x7f070001;
}
public static final class dimen {
/** Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
*/
public static final int abc_action_bar_default_height=0x7f080002;
/** Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding=0x7f080003;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f08000a;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f080009;
/** Maximum width for a stacked action bar tab. This prevents
action bar tabs from becoming too wide on a wide screen when only
a few are present.
*/
public static final int abc_action_bar_stacked_tab_max_width=0x7f080001;
/** Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin=0x7f080007;
/** Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
*/
public static final int abc_action_bar_subtitle_text_size=0x7f080005;
/** Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin=0x7f080006;
/** Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
*/
public static final int abc_action_bar_title_text_size=0x7f080004;
/** Minimum width for an action button in the menu area of an action bar
Minimum width for an action button in the menu area of an action bar
Minimum width for an action button in the menu area of an action bar
*/
public static final int abc_action_button_min_width=0x7f080008;
/** The maximum width we would prefer dialogs to be. 0 if there is no
maximum (let them grow as large as the screen). Actual values are
specified for -large and -xlarge configurations.
see comment in values/config.xml
see comment in values/config.xml
*/
public static final int abc_config_prefDialogWidth=0x7f080000;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f080010;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f08000e;
public static final int abc_dropdownitem_text_padding_right=0x7f08000f;
public static final int abc_panel_menu_list_width=0x7f08000b;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f08000d;
/** Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
*/
public static final int abc_search_view_text_min_width=0x7f08000c;
/** The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_major=0x7f080013;
/** The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_minor=0x7f080014;
/** The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_major=0x7f080011;
/** The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_minor=0x7f080012;
}
public static final class drawable {
public static final int abc_ab_bottom_solid_dark_holo=0x7f020000;
public static final int abc_ab_bottom_solid_light_holo=0x7f020001;
public static final int abc_ab_bottom_transparent_dark_holo=0x7f020002;
public static final int abc_ab_bottom_transparent_light_holo=0x7f020003;
public static final int abc_ab_share_pack_holo_dark=0x7f020004;
public static final int abc_ab_share_pack_holo_light=0x7f020005;
public static final int abc_ab_solid_dark_holo=0x7f020006;
public static final int abc_ab_solid_light_holo=0x7f020007;
public static final int abc_ab_stacked_solid_dark_holo=0x7f020008;
public static final int abc_ab_stacked_solid_light_holo=0x7f020009;
public static final int abc_ab_stacked_transparent_dark_holo=0x7f02000a;
public static final int abc_ab_stacked_transparent_light_holo=0x7f02000b;
public static final int abc_ab_transparent_dark_holo=0x7f02000c;
public static final int abc_ab_transparent_light_holo=0x7f02000d;
public static final int abc_cab_background_bottom_holo_dark=0x7f02000e;
public static final int abc_cab_background_bottom_holo_light=0x7f02000f;
public static final int abc_cab_background_top_holo_dark=0x7f020010;
public static final int abc_cab_background_top_holo_light=0x7f020011;
public static final int abc_ic_ab_back_holo_dark=0x7f020012;
public static final int abc_ic_ab_back_holo_light=0x7f020013;
public static final int abc_ic_cab_done_holo_dark=0x7f020014;
public static final int abc_ic_cab_done_holo_light=0x7f020015;
public static final int abc_ic_clear=0x7f020016;
public static final int abc_ic_clear_disabled=0x7f020017;
public static final int abc_ic_clear_holo_light=0x7f020018;
public static final int abc_ic_clear_normal=0x7f020019;
public static final int abc_ic_clear_search_api_disabled_holo_light=0x7f02001a;
public static final int abc_ic_clear_search_api_holo_light=0x7f02001b;
public static final int abc_ic_commit_search_api_holo_dark=0x7f02001c;
public static final int abc_ic_commit_search_api_holo_light=0x7f02001d;
public static final int abc_ic_go=0x7f02001e;
public static final int abc_ic_go_search_api_holo_light=0x7f02001f;
public static final int abc_ic_menu_moreoverflow_normal_holo_dark=0x7f020020;
public static final int abc_ic_menu_moreoverflow_normal_holo_light=0x7f020021;
public static final int abc_ic_menu_share_holo_dark=0x7f020022;
public static final int abc_ic_menu_share_holo_light=0x7f020023;
public static final int abc_ic_search=0x7f020024;
public static final int abc_ic_search_api_holo_light=0x7f020025;
public static final int abc_ic_voice_search=0x7f020026;
public static final int abc_ic_voice_search_api_holo_light=0x7f020027;
public static final int abc_item_background_holo_dark=0x7f020028;
public static final int abc_item_background_holo_light=0x7f020029;
public static final int abc_list_divider_holo_dark=0x7f02002a;
public static final int abc_list_divider_holo_light=0x7f02002b;
public static final int abc_list_focused_holo=0x7f02002c;
public static final int abc_list_longpressed_holo=0x7f02002d;
public static final int abc_list_pressed_holo_dark=0x7f02002e;
public static final int abc_list_pressed_holo_light=0x7f02002f;
public static final int abc_list_selector_background_transition_holo_dark=0x7f020030;
public static final int abc_list_selector_background_transition_holo_light=0x7f020031;
public static final int abc_list_selector_disabled_holo_dark=0x7f020032;
public static final int abc_list_selector_disabled_holo_light=0x7f020033;
public static final int abc_list_selector_holo_dark=0x7f020034;
public static final int abc_list_selector_holo_light=0x7f020035;
public static final int abc_menu_dropdown_panel_holo_dark=0x7f020036;
public static final int abc_menu_dropdown_panel_holo_light=0x7f020037;
public static final int abc_menu_hardkey_panel_holo_dark=0x7f020038;
public static final int abc_menu_hardkey_panel_holo_light=0x7f020039;
public static final int abc_search_dropdown_dark=0x7f02003a;
public static final int abc_search_dropdown_light=0x7f02003b;
public static final int abc_spinner_ab_default_holo_dark=0x7f02003c;
public static final int abc_spinner_ab_default_holo_light=0x7f02003d;
public static final int abc_spinner_ab_disabled_holo_dark=0x7f02003e;
public static final int abc_spinner_ab_disabled_holo_light=0x7f02003f;
public static final int abc_spinner_ab_focused_holo_dark=0x7f020040;
public static final int abc_spinner_ab_focused_holo_light=0x7f020041;
public static final int abc_spinner_ab_holo_dark=0x7f020042;
public static final int abc_spinner_ab_holo_light=0x7f020043;
public static final int abc_spinner_ab_pressed_holo_dark=0x7f020044;
public static final int abc_spinner_ab_pressed_holo_light=0x7f020045;
public static final int abc_tab_indicator_ab_holo=0x7f020046;
public static final int abc_tab_selected_focused_holo=0x7f020047;
public static final int abc_tab_selected_holo=0x7f020048;
public static final int abc_tab_selected_pressed_holo=0x7f020049;
public static final int abc_tab_unselected_pressed_holo=0x7f02004a;
public static final int abc_textfield_search_default_holo_dark=0x7f02004b;
public static final int abc_textfield_search_default_holo_light=0x7f02004c;
public static final int abc_textfield_search_right_default_holo_dark=0x7f02004d;
public static final int abc_textfield_search_right_default_holo_light=0x7f02004e;
public static final int abc_textfield_search_right_selected_holo_dark=0x7f02004f;
public static final int abc_textfield_search_right_selected_holo_light=0x7f020050;
public static final int abc_textfield_search_selected_holo_dark=0x7f020051;
public static final int abc_textfield_search_selected_holo_light=0x7f020052;
public static final int abc_textfield_searchview_holo_dark=0x7f020053;
public static final int abc_textfield_searchview_holo_light=0x7f020054;
public static final int abc_textfield_searchview_right_holo_dark=0x7f020055;
public static final int abc_textfield_searchview_right_holo_light=0x7f020056;
public static final int appicon=0x7f020057;
public static final int background=0x7f020058;
public static final int btn_check_buttonless_on_64=0x7f020059;
public static final int btn_more_64=0x7f02005a;
public static final int disclosure_64=0x7f02005b;
}
public static final class id {
public static final int action_bar=0x7f05001c;
public static final int action_bar_activity_content=0x7f050015;
public static final int action_bar_container=0x7f05001b;
public static final int action_bar_overlay_layout=0x7f05001f;
public static final int action_bar_root=0x7f05001a;
public static final int action_bar_subtitle=0x7f050023;
public static final int action_bar_title=0x7f050022;
public static final int action_context_bar=0x7f05001d;
public static final int action_menu_divider=0x7f050016;
public static final int action_menu_presenter=0x7f050017;
public static final int action_mode_close_button=0x7f050024;
public static final int activity_chooser_view_content=0x7f050025;
public static final int always=0x7f05000b;
public static final int beginning=0x7f050011;
public static final int checkbox=0x7f05002d;
public static final int collapseActionView=0x7f05000d;
public static final int default_activity_button=0x7f050028;
public static final int dialog=0x7f05000e;
public static final int disableHome=0x7f050008;
public static final int dropdown=0x7f05000f;
public static final int edit_query=0x7f050030;
public static final int end=0x7f050013;
public static final int expand_activities_button=0x7f050026;
public static final int expanded_menu=0x7f05002c;
public static final int home=0x7f050014;
public static final int homeAsUp=0x7f050005;
public static final int icon=0x7f05002a;
public static final int ifRoom=0x7f05000a;
public static final int image=0x7f050027;
public static final int listMode=0x7f050001;
public static final int list_item=0x7f050029;
public static final int middle=0x7f050012;
public static final int never=0x7f050009;
public static final int none=0x7f050010;
public static final int normal=0x7f050000;
public static final int progress_circular=0x7f050018;
public static final int progress_horizontal=0x7f050019;
public static final int radio=0x7f05002f;
public static final int search_badge=0x7f050032;
public static final int search_bar=0x7f050031;
public static final int search_button=0x7f050033;
public static final int search_close_btn=0x7f050038;
public static final int search_edit_frame=0x7f050034;
public static final int search_go_btn=0x7f05003a;
public static final int search_mag_icon=0x7f050035;
public static final int search_plate=0x7f050036;
public static final int search_src_text=0x7f050037;
public static final int search_voice_btn=0x7f05003b;
public static final int shortcut=0x7f05002e;
public static final int showCustom=0x7f050007;
public static final int showHome=0x7f050004;
public static final int showTitle=0x7f050006;
public static final int split_action_bar=0x7f05001e;
public static final int submit_area=0x7f050039;
public static final int tabMode=0x7f050002;
public static final int titanium_ui_list_header_or_footer_title=0x7f05003c;
public static final int titanium_ui_list_item_accessoryType=0x7f05003e;
public static final int titanium_ui_list_item_content=0x7f05003d;
public static final int title=0x7f05002b;
public static final int top_action_bar=0x7f050020;
public static final int up=0x7f050021;
public static final int useLogo=0x7f050003;
public static final int withText=0x7f05000c;
}
public static final class integer {
/** The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
*/
public static final int abc_max_action_buttons=0x7f090000;
}
public static final class layout {
public static final int abc_action_bar_decor=0x7f030000;
public static final int abc_action_bar_decor_include=0x7f030001;
public static final int abc_action_bar_decor_overlay=0x7f030002;
public static final int abc_action_bar_home=0x7f030003;
public static final int abc_action_bar_tab=0x7f030004;
public static final int abc_action_bar_tabbar=0x7f030005;
public static final int abc_action_bar_title_item=0x7f030006;
public static final int abc_action_bar_view_list_nav_layout=0x7f030007;
public static final int abc_action_menu_item_layout=0x7f030008;
public static final int abc_action_menu_layout=0x7f030009;
public static final int abc_action_mode_bar=0x7f03000a;
public static final int abc_action_mode_close_item=0x7f03000b;
public static final int abc_activity_chooser_view=0x7f03000c;
public static final int abc_activity_chooser_view_include=0x7f03000d;
public static final int abc_activity_chooser_view_list_item=0x7f03000e;
public static final int abc_expanded_menu_layout=0x7f03000f;
public static final int abc_list_menu_item_checkbox=0x7f030010;
public static final int abc_list_menu_item_icon=0x7f030011;
public static final int abc_list_menu_item_layout=0x7f030012;
public static final int abc_list_menu_item_radio=0x7f030013;
public static final int abc_popup_menu_item_layout=0x7f030014;
public static final int abc_search_dropdown_item_icons_2line=0x7f030015;
public static final int abc_search_view=0x7f030016;
public static final int abc_simple_decor=0x7f030017;
public static final int support_simple_spinner_dropdown_item=0x7f030018;
public static final int titanium_tabgroup=0x7f030019;
public static final int titanium_ui_list_header_or_footer=0x7f03001a;
public static final int titanium_ui_list_item=0x7f03001b;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0a0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0a0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0a0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0a000a;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0a0009;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0a0006;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0a0005;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0a0004;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0a0007;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0a0008;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0a000c;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0a000b;
public static final int app_name=0x7f0a000d;
}
public static final class style {
/** Mimic text appearance in select_dialog_item.xml
*/
public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0b0063;
public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0b006d;
public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0b006f;
/** Search View result styles
*/
public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0b006e;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0b0069;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0b006a;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0b0070;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0b0072;
/**
TextAppearance.Holo.Light.SearchResult.* are private so we extend from the default
versions instead (which are exactly the same).
*/
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title=0x7f0b0071;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0b006b;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0b006c;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0035;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0034;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0030;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0031;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0033;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b0032;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b001a;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0006;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0008;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0007;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b001e;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0020;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b001d;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b001f;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0b0054;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0b0056;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0b0058;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0b0055;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0b0057;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0b0051;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0b0053;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0b0050;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0b0052;
public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0b0061;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0021;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b002e;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b002f;
public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0b0062;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b0028;
/** Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme.
Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat=0x7f0b0077;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_Base_CompactMenu=0x7f0b0083;
public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0b0084;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0b007c;
public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0b007d;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b007a;
public static final int Theme_AppCompat_Fullscreen=0x7f0b008b;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0b0078;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b0079;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b007b;
public static final int Theme_AppCompat_Translucent=0x7f0b008d;
public static final int Theme_AppCompat_Translucent_NoTitleBar=0x7f0b008e;
public static final int Theme_AppCompat_Translucent_NoTitleBar_Fullscreen=0x7f0b008f;
/** Base platform-dependent theme
*/
public static final int Theme_Base=0x7f0b007e;
/** Base platform-dependent theme providing an action bar in a dark-themed activity.
Base platform-dependent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_Base_AppCompat=0x7f0b0080;
public static final int Theme_Base_AppCompat_Dialog_FixedSize=0x7f0b0087;
public static final int Theme_Base_AppCompat_Dialog_Light_FixedSize=0x7f0b0088;
public static final int Theme_Base_AppCompat_DialogWhenLarge=0x7f0b0085;
/**
As we have defined the theme in values-large (for compat) and values-large takes precedence
over values-v14, we need to reset back to the Holo parent in values-large-v14. As the themes
in values-v14 & values-large-v14 are exactly the same, these "double base" themes can be
inherited from in both values-v14 and values-large-v14.
*/
public static final int Theme_Base_AppCompat_DialogWhenLarge_Base=0x7f0b0089;
/** Base platform-dependent theme providing an action bar in a light-themed activity.
Base platform-dependent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_Base_AppCompat_Light=0x7f0b0081;
/** Base platform-dependent theme providing a dark action bar in a light-themed activity.
Base platform-dependent theme providing a dark action bar in a light-themed activity.
*/
public static final int Theme_Base_AppCompat_Light_DarkActionBar=0x7f0b0082;
public static final int Theme_Base_AppCompat_Light_DialogWhenLarge=0x7f0b0086;
public static final int Theme_Base_AppCompat_Light_DialogWhenLarge_Base=0x7f0b008a;
/** Base platform-dependent theme providing a light-themed activity.
*/
public static final int Theme_Base_Light=0x7f0b007f;
public static final int Theme_Titanium=0x7f0b008c;
/** Styles in here can be extended for customisation in your application. Each utilises
one of the Base styles. If Holo themes are available on the current platform version
they will be used instead of the compat styles.
*/
public static final int Widget_AppCompat_ActionBar=0x7f0b0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b0011;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0017;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b0014;
public static final int Widget_AppCompat_ActionButton=0x7f0b000b;
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000d;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000f;
public static final int Widget_AppCompat_ActionMode=0x7f0b001b;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0b0038;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b0036;
public static final int Widget_AppCompat_Base_ActionBar=0x7f0b003a;
public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0b003c;
public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0b0045;
public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0b004b;
public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0b0048;
/** Action Button Styles
*/
public static final int Widget_AppCompat_Base_ActionButton=0x7f0b003f;
public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0b0041;
public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0b0043;
public static final int Widget_AppCompat_Base_ActionMode=0x7f0b004e;
public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0b0075;
/** AutoCompleteTextView styles (for SearchView)
*/
public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0b0073;
public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0b005d;
/** Popup Menu
*/
public static final int Widget_AppCompat_Base_ListPopupWindow=0x7f0b0065;
/** Spinner Widgets
*/
public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0b005f;
public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0b0064;
public static final int Widget_AppCompat_Base_PopupMenu=0x7f0b0067;
public static final int Widget_AppCompat_Base_ProgressBar=0x7f0b005a;
/** Progress Bar
*/
public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0b0059;
/** Action Bar Spinner Widgets
*/
public static final int Widget_AppCompat_Base_Spinner=0x7f0b005b;
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b0024;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b0004;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0012;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0018;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0019;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0015;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0016;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0b000c;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b000e;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b0010;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b001c;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0039;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b0037;
public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0b003b;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0b003d;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0b003e;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0b0046;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0b0047;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0b004c;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0b004d;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0b0049;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0b004a;
public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0b0040;
public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0b0042;
public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0b0044;
public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0b004f;
public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0b0076;
public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0b0074;
public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0b005e;
public static final int Widget_AppCompat_Light_Base_ListPopupWindow=0x7f0b0066;
public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0b0060;
public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0b0068;
public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0b005c;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0025;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b002a;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b0027;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b002c;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b0023;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0029;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0b0026;
public static final int Widget_AppCompat_ListView_Menu=0x7f0b002d;
public static final int Widget_AppCompat_PopupMenu=0x7f0b002b;
public static final int Widget_AppCompat_ProgressBar=0x7f0b000a;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0009;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0022;
}
public static final class styleable {
/** ============================================
Attributes used to style the Action Bar.
These should be set on your theme; the default actionBarStyle will
propagate them to the correct elements as needed.
Please Note: when overriding attributes for an ActionBar style
you must specify each attribute twice: once with the "android:"
namespace prefix and once without.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background com.dallascowboys:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.dallascowboys:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.dallascowboys:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.dallascowboys:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.dallascowboys:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.dallascowboys:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_height com.dallascowboys:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.dallascowboys:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon com.dallascowboys:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.dallascowboys:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.dallascowboys:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo com.dallascowboys:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.dallascowboys:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.dallascowboys:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.dallascowboys:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.dallascowboys:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.dallascowboys:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.dallascowboys:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.dallascowboys:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_height
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028,
0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c,
0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030,
0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034,
0x7f010035, 0x7f010036, 0x7f010037
};
/**
<p>
@attr description
Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:background
*/
public static final int ActionBar_background = 10;
/**
<p>
@attr description
Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 12;
/**
<p>
@attr description
Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 11;
/**
<p>
@attr description
Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 13;
/**
<p>
@attr description
Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.dallascowboys:displayOptions
*/
public static final int ActionBar_displayOptions = 3;
/**
<p>
@attr description
Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:divider
*/
public static final int ActionBar_divider = 9;
/**
<p>
@attr description
Specifies a fixed height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:height
*/
public static final int ActionBar_height = 1;
/**
<p>
@attr description
Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:homeLayout
*/
public static final int ActionBar_homeLayout = 14;
/**
<p>
@attr description
Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:icon
*/
public static final int ActionBar_icon = 7;
/**
<p>
@attr description
Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 16;
/**
<p>
@attr description
Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:itemPadding
*/
public static final int ActionBar_itemPadding = 18;
/**
<p>
@attr description
Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:logo
*/
public static final int ActionBar_logo = 8;
/**
<p>
@attr description
The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.dallascowboys:navigationMode
*/
public static final int ActionBar_navigationMode = 2;
/**
<p>
@attr description
Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 17;
/**
<p>
@attr description
Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 15;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:subtitle
*/
public static final int ActionBar_subtitle = 4;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 6;
/**
<p>
@attr description
Specifies title text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:titleTextStyle
*/
public static final int ActionBar_titleTextStyle = 5;
/** Valid LayoutParams for views placed in the action bar as custom views.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static final int ActionBarLayout_android_layout_gravity = 0;
/** These attributes are meant to be specified and customized by the app.
The system will read and apply them as needed. These attributes control
properties of the activity window, such as whether an action bar should
be present and whether it should overlay content.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBar com.dallascowboys:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.dallascowboys:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor com.dallascowboys:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMinor com.dallascowboys:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedWidthMajor com.dallascowboys:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedWidthMinor com.dallascowboys:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowSplitActionBar com.dallascowboys:windowSplitActionBar}</code></td><td></td></tr>
</table>
@see #ActionBarWindow_windowActionBar
@see #ActionBarWindow_windowActionBarOverlay
@see #ActionBarWindow_windowFixedHeightMajor
@see #ActionBarWindow_windowFixedHeightMinor
@see #ActionBarWindow_windowFixedWidthMajor
@see #ActionBarWindow_windowFixedWidthMinor
@see #ActionBarWindow_windowSplitActionBar
*/
public static final int[] ActionBarWindow = {
0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003,
0x7f010004, 0x7f010005, 0x7f010006
};
/**
<p>This symbol is the offset where the {@link com.dallascowboys.R.attr#windowActionBar}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.dallascowboys:windowActionBar
*/
public static final int ActionBarWindow_windowActionBar = 0;
/**
<p>This symbol is the offset where the {@link com.dallascowboys.R.attr#windowActionBarOverlay}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.dallascowboys:windowActionBarOverlay
*/
public static final int ActionBarWindow_windowActionBarOverlay = 1;
/**
<p>
@attr description
A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:windowFixedHeightMajor
*/
public static final int ActionBarWindow_windowFixedHeightMajor = 6;
/**
<p>
@attr description
A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:windowFixedHeightMinor
*/
public static final int ActionBarWindow_windowFixedHeightMinor = 4;
/**
<p>
@attr description
A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:windowFixedWidthMajor
*/
public static final int ActionBarWindow_windowFixedWidthMajor = 3;
/**
<p>
@attr description
A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:windowFixedWidthMinor
*/
public static final int ActionBarWindow_windowFixedWidthMinor = 5;
/**
<p>This symbol is the offset where the {@link com.dallascowboys.R.attr#windowSplitActionBar}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.dallascowboys:windowSplitActionBar
*/
public static final int ActionBarWindow_windowSplitActionBar = 2;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** Size of padding on either end of a divider.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background com.dallascowboys:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.dallascowboys:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_height com.dallascowboys:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.dallascowboys:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.dallascowboys:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f,
0x7f010031
};
/**
<p>
@attr description
Specifies a background for the action mode bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>
@attr description
Specifies a fixed height for the action mode bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.dallascowboys:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.dallascowboys:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f01006a, 0x7f01006b
};
/**
<p>
@attr description
The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps com.dallascowboys:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f01006d
};
/**
<p>
@attr description
Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This is a private symbol.
@attr name com.dallascowboys:textAllCaps
*/
public static final int CompatTextView_textAllCaps = 0;
/** Attributes that can be used with a LinearLayoutICS.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutICS_divider com.dallascowboys:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_dividerPadding com.dallascowboys:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_showDividers com.dallascowboys:showDividers}</code></td><td> Setting for which dividers to show.</td></tr>
</table>
@see #LinearLayoutICS_divider
@see #LinearLayoutICS_dividerPadding
@see #LinearLayoutICS_showDividers
*/
public static final int[] LinearLayoutICS = {
0x7f01002e, 0x7f010055, 0x7f010056
};
/**
<p>
@attr description
Drawable to use as a vertical divider between buttons.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:divider
*/
public static final int LinearLayoutICS_divider = 0;
/**
<p>
@attr description
Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:dividerPadding
*/
public static final int LinearLayoutICS_dividerPadding = 2;
/**
<p>
@attr description
Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.dallascowboys:showDividers
*/
public static final int LinearLayoutICS_showDividers = 1;
/** Base attributes that are available to all groups.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>
@attr description
Whether the items are capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkableBehavior}.
@attr name android:checkableBehavior
*/
public static final int MenuGroup_android_checkableBehavior = 5;
/**
<p>
@attr description
Whether the items are enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuGroup_android_enabled = 0;
/**
<p>
@attr description
The ID of the group.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuGroup_android_id = 1;
/**
<p>
@attr description
The category applied to all items within this group.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuGroup_android_menuCategory = 3;
/**
<p>
@attr description
The order within the category applied to all items within this group.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuGroup_android_orderInCategory = 4;
/**
<p>
@attr description
Whether the items are shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuGroup_android_visible = 2;
/** Base attributes that are available to all Item objects.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout com.dallascowboys:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.dallascowboys:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.dallascowboys:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction com.dallascowboys:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f01004d, 0x7f01004e, 0x7f01004f,
0x7f010050
};
/**
<p>
@attr description
An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.dallascowboys:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr>
<tr><td><code>{@link #MenuView_android_preserveIconSpacing android:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_preserveIconSpacing
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x01010435
};
/**
<p>
@attr description
Default background for the menu header.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#headerBackground}.
@attr name android:headerBackground
*/
public static final int MenuView_android_headerBackground = 4;
/**
<p>
@attr description
Default horizontal divider between rows of menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#horizontalDivider}.
@attr name android:horizontalDivider
*/
public static final int MenuView_android_horizontalDivider = 2;
/**
<p>
@attr description
Default background for each menu item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemBackground}.
@attr name android:itemBackground
*/
public static final int MenuView_android_itemBackground = 5;
/**
<p>
@attr description
Default disabled icon alpha for each menu item that shows an icon.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemIconDisabledAlpha}.
@attr name android:itemIconDisabledAlpha
*/
public static final int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>
@attr description
Default appearance of menu item text.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemTextAppearance}.
@attr name android:itemTextAppearance
*/
public static final int MenuView_android_itemTextAppearance = 1;
/**
<p>
@attr description
Whether space should be reserved in layout when an icon is missing.
<p>This is a private symbol.
@attr name android:preserveIconSpacing
*/
public static final int MenuView_android_preserveIconSpacing = 7;
/**
<p>
@attr description
Default vertical divider between menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#verticalDivider}.
@attr name android:verticalDivider
*/
public static final int MenuView_android_verticalDivider = 3;
/**
<p>
@attr description
Default animations for the menu.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#windowAnimationStyle}.
@attr name android:windowAnimationStyle
*/
public static final int MenuView_android_windowAnimationStyle = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.dallascowboys:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_queryHint com.dallascowboys:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr>
</table>
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_iconifiedByDefault
@see #SearchView_queryHint
*/
public static final int[] SearchView = {
0x0101011f, 0x01010220, 0x01010264, 0x7f01005a,
0x7f01005b
};
/**
<p>
@attr description
The IME options to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#imeOptions}.
@attr name android:imeOptions
*/
public static final int SearchView_android_imeOptions = 2;
/**
<p>
@attr description
The input type to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inputType}.
@attr name android:inputType
*/
public static final int SearchView_android_inputType = 1;
/**
<p>
@attr description
An optional maximum width of the SearchView.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#maxWidth}.
@attr name android:maxWidth
*/
public static final int SearchView_android_maxWidth = 0;
/**
<p>
@attr description
The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 3;
/**
<p>
@attr description
An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:queryHint
*/
public static final int SearchView_queryHint = 4;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.dallascowboys:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView com.dallascowboys:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt com.dallascowboys:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.dallascowboys:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr>
</table>
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x01010175, 0x01010176, 0x01010262,
0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052,
0x7f010053, 0x7f010054
};
/**
<p>
@attr description
Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int Spinner_android_dropDownHorizontalOffset = 4;
/**
<p>
@attr description
List selector to use for spinnerMode="dropdown" display.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownSelector}.
@attr name android:dropDownSelector
*/
public static final int Spinner_android_dropDownSelector = 1;
/**
<p>
@attr description
Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int Spinner_android_dropDownVerticalOffset = 5;
/**
<p>
@attr description
Width of the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownWidth}.
@attr name android:dropDownWidth
*/
public static final int Spinner_android_dropDownWidth = 3;
/**
<p>
@attr description
Gravity setting for positioning the currently selected item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#gravity}.
@attr name android:gravity
*/
public static final int Spinner_android_gravity = 0;
/**
<p>
@attr description
Background drawable to use for the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#popupBackground}.
@attr name android:popupBackground
*/
public static final int Spinner_android_popupBackground = 2;
/**
<p>
@attr description
Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:disableChildrenWhenDisabled
*/
public static final int Spinner_disableChildrenWhenDisabled = 9;
/**
<p>
@attr description
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:popupPromptView
*/
public static final int Spinner_popupPromptView = 8;
/**
<p>
@attr description
The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:prompt
*/
public static final int Spinner_prompt = 6;
/**
<p>
@attr description
Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.dallascowboys:spinnerMode
*/
public static final int Spinner_spinnerMode = 7;
/** These are the standard attributes that make up a complete theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle com.dallascowboys:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.dallascowboys:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.dallascowboys:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.dallascowboys:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.dallascowboys:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.dallascowboys:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
</table>
@see #Theme_actionDropDownStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
*/
public static final int[] Theme = {
0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a,
0x7f01004b, 0x7f01004c
};
/**
<p>
@attr description
Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:actionDropDownStyle
*/
public static final int Theme_actionDropDownStyle = 0;
/**
<p>
@attr description
The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:dropdownListPreferredItemHeight
*/
public static final int Theme_dropdownListPreferredItemHeight = 1;
/**
<p>
@attr description
Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 5;
/**
<p>
@attr description
Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:panelMenuListTheme
*/
public static final int Theme_panelMenuListTheme = 4;
/**
<p>
@attr description
Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:panelMenuListWidth
*/
public static final int Theme_panelMenuListWidth = 3;
/**
<p>
@attr description
Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.dallascowboys:popupMenuStyle
*/
public static final int Theme_popupMenuStyle = 2;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr>
<tr><td><code>{@link #View_paddingEnd com.dallascowboys:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart com.dallascowboys:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr>
</table>
@see #View_android_focusable
@see #View_paddingEnd
@see #View_paddingStart
*/
public static final int[] View = {
0x010100da, 0x7f010038, 0x7f010039
};
/**
<p>
@attr description
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling {@link android.view.View#requestFocus}, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#focusable}.
@attr name android:focusable
*/
public static final int View_android_focusable = 0;
/**
<p>
@attr description
Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.dallascowboys:paddingStart
*/
public static final int View_paddingStart = 1;
};
}
| [
"[email protected]"
] | |
d1dc5c52c0bcce0d2393cce547fb74a312dcb4f0 | ccace7925cbc81d3911296ffdc3a096ba3647e64 | /modules/lib/freemarker/impl/src/test/java/org/isisaddons/module/freemarker/dom/service/FreeMarkerServiceTest.java | 8947df6e5c653fb518b8ca5f59b18863d7b975b6 | [
"Apache-2.0"
] | permissive | alexdcarl/incode-platform | 27dd7f9e427a847f49d6db4eb80d1b7de1777e40 | b0e9bc8dc0aa7c3d277bb320a90198a72937fd31 | refs/heads/master | 2020-05-04T05:09:15.428035 | 2019-03-05T18:27:43 | 2019-03-05T18:27:43 | 178,980,570 | 2 | 0 | null | 2019-04-02T02:09:27 | 2019-04-02T02:09:26 | null | UTF-8 | Java | false | false | 4,035 | java | package org.isisaddons.module.freemarker.dom.service;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import org.jmock.auto.Mock;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.apache.isis.applib.services.config.ConfigurationService;
import org.apache.isis.core.unittestsupport.jmocking.JUnitRuleMockery2;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class FreeMarkerServiceTest {
@Rule
public ExpectedException expectedException = ExpectedException.none();
@Rule
public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);
@JUnitRuleMockery2.Ignoring
@Mock
ConfigurationService mockConfigurationService;
FreeMarkerService service;
@Before
public void setUp() throws Exception {
service = new FreeMarkerService();
service.configurationService = mockConfigurationService;
service.init(ImmutableMap.of(FreeMarkerService.JODA_SUPPORT_KEY, "true"));
}
@Test
public void using_properties() throws Exception {
// given
Map<String, String> properties = ImmutableMap.of("user", "John Doe");
// when
String merged = service.render("WelcomeUserTemplate:/GBR:", "<h1>Welcome ${user}!</h1>", properties);
// then
assertThat(merged, is("<h1>Welcome John Doe!</h1>"));
}
public static class UserDataModel {
private String user;
public String getUser() {
return user;
}
public void setUser(final String user) {
this.user = user;
}
}
@Test
public void using_data_model() throws Exception {
// given
final UserDataModel userDataModel = new UserDataModel();
userDataModel.setUser("John Doe");
// when
String merged = service.render("WelcomeUserTemplate:/GBR:", "<h1>Welcome ${user}!</h1>", userDataModel);
// then
assertThat(merged, is("<h1>Welcome John Doe!</h1>"));
}
@Test
public void caching() throws Exception {
// given
final UserDataModel userDataModel = new UserDataModel();
userDataModel.setUser("John Doe");
// when
String merged = service.render("WelcomeUserTemplate:/GBR:", "<h1>Welcome ${user}!</h1>", userDataModel);
// when (don't pass in any template cache)
String merged2 = service.render("WelcomeUserTemplate:/GBR:", "", userDataModel);
// then
assertThat(merged, is("<h1>Welcome John Doe!</h1>"));
assertThat(merged2, is("<h1>Welcome John Doe!</h1>"));
}
@Test
public void different_templates() throws Exception {
// given
final UserDataModel userDataModel = new UserDataModel();
userDataModel.setUser("John Doe");
// when
String merged = service.render("WelcomeUserTemplate:/GBR:", "<h1>Welcome ${user}!</h1>", userDataModel);
// when (don't pass in any template cache)
String merged2 = service.render("WelcomeUserTemplate:/FRA:", "<h1>Bonjour, ${user}</h1>", userDataModel);
// then
assertThat(merged, is("<h1>Welcome John Doe!</h1>"));
assertThat(merged2, is("<h1>Bonjour, John Doe</h1>"));
}
@Test
public void different_templates_per_versioning() throws Exception {
// given
final UserDataModel userDataModel = new UserDataModel();
userDataModel.setUser("John Doe");
// when
String merged = service.render("WelcomeUserTemplate:/GBR:1:", "<h1>Welcome ${user}!</h1>", userDataModel);
// when (bump the version)
String merged2 = service.render("WelcomeUserTemplate:/GBR:2:", "<h1>Hi there, ${user} !!!</h1>", userDataModel);
// then
assertThat(merged, is("<h1>Welcome John Doe!</h1>"));
assertThat(merged2, is("<h1>Hi there, John Doe !!!</h1>"));
}
}
| [
"[email protected]"
] | |
d3d26eee066f2101cfe98b37b771a2b1f9134348 | 89ec755ac5dd1ecee4a3ab9cb92f4cb7639cb391 | /src/main/java/com/registration/employee/ServletInitializer.java | 0207a8708060456069da6548f1e946c9e71a7248 | [] | no_license | RiddhikChaudhuri/EmployeePortal | 211dc8279f62b1a3d004560d6ae5f034f6422a0f | 45d5c148f9ecab404883377260da0edcb4016126 | refs/heads/master | 2020-03-31T00:56:08.710508 | 2018-10-05T20:23:55 | 2018-10-05T20:23:55 | 151,759,943 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 429 | java | package com.registration.employee;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(EmployeeRegistrationApplication.class);
}
}
| [
"[email protected]"
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.