hexsha
stringlengths
40
40
size
int64
3
1.05M
ext
stringclasses
1 value
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
5
1.02k
max_stars_repo_name
stringlengths
4
126
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
list
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
5
1.02k
max_issues_repo_name
stringlengths
4
114
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
list
max_issues_count
float64
1
92.2k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
5
1.02k
max_forks_repo_name
stringlengths
4
136
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
list
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
avg_line_length
float64
2.55
99.9
max_line_length
int64
3
1k
alphanum_fraction
float64
0.25
1
index
int64
0
1M
content
stringlengths
3
1.05M
3e0665bd325f9b8653d91eedd18b00511b5a67b2
1,083
java
Java
ucloud-sdk-java-usql/src/main/java/cn/ucloud/usql/model/EnableUSQLTokenResult.java
liuchangfitcloud/ucloud-sdk-java
ca370c2141527f713feb0c1548d8cc42a8687c2a
[ "Apache-2.0" ]
null
null
null
ucloud-sdk-java-usql/src/main/java/cn/ucloud/usql/model/EnableUSQLTokenResult.java
liuchangfitcloud/ucloud-sdk-java
ca370c2141527f713feb0c1548d8cc42a8687c2a
[ "Apache-2.0" ]
null
null
null
ucloud-sdk-java-usql/src/main/java/cn/ucloud/usql/model/EnableUSQLTokenResult.java
liuchangfitcloud/ucloud-sdk-java
ca370c2141527f713feb0c1548d8cc42a8687c2a
[ "Apache-2.0" ]
null
null
null
19.339286
63
0.628809
2,716
package cn.ucloud.usql.model; import cn.ucloud.common.pojo.BaseResponseResult; import com.google.gson.annotations.SerializedName; /** * @Description : 设置USQL授权的状态 结果类 * @Author : ucloud-sdk-generator * @Date : 2019-03-13 07:56 **/ public class EnableUSQLTokenResult extends BaseResponseResult { /** * API请求ID */ @SerializedName("Request") private String request; /** * 数据源名称, 如ufile */ @SerializedName("DataSource") private String dataSource; /** * true: 该授权已经启用 * false: 该授权已经关闭 */ @SerializedName("Enable") private Boolean enable; public String getRequest() { return this.request; } public void setRequest(String request) { this.request = request; } public String getDataSource() { return dataSource; } public void setDataSource(String dataSource) { this.dataSource = dataSource; } public Boolean getEnable() { return this.enable; } public void setEnable(Boolean enable) { this.enable = enable; } }
3e0666160ca48203f1c7fd882ba434259a85fac0
1,152
java
Java
enter/src/com/jeecg/entity/SysRoleRel.java
privatefinal/Workspaces
4ed97bf53dc4bd08d13cf9c978eb9aafac25e86d
[ "MIT" ]
null
null
null
enter/src/com/jeecg/entity/SysRoleRel.java
privatefinal/Workspaces
4ed97bf53dc4bd08d13cf9c978eb9aafac25e86d
[ "MIT" ]
null
null
null
enter/src/com/jeecg/entity/SysRoleRel.java
privatefinal/Workspaces
4ed97bf53dc4bd08d13cf9c978eb9aafac25e86d
[ "MIT" ]
null
null
null
32.914286
383
0.630208
2,717
package com.jeecg.entity; import com.base.entity.BaseEntity; public class SysRoleRel extends BaseEntity { private Integer roleId;// 角色主键 sys_role.id private Integer objId;// 关联主键 type=0管理sys_menu.id, type=1关联sys_user.id private Integer relType;// 关联类型 0=菜单,1=用户 /** * 枚举 * @author www.jeecg.org * */ public static enum RelType { MENU(0, "菜单"), USER(1,"用户"),BTN(2,"按钮"); public int key; public String value; private RelType(int key, String value) { this.key = key; this.value = value; } public static RelType get(int key) { RelType[] values = RelType.values(); for (RelType object : values) { if (object.key == key) { return object; } } return null; } } public Integer getRoleId() { return this.roleId; } public void setRoleId(Integer roleId) { this.roleId=roleId; } public Integer getObjId() { return this.objId; } public void setObjId(Integer objId) { this.objId=objId; } public Integer getRelType() { return this.relType; } public void setRelType(Integer relType) { this.relType=relType; } }
3e0666ca484e1dc8ae97cb507cb8427bdf08137f
4,492
java
Java
s1_eventos-back/src/main/java/co/edu/uniandes/csw/eventos/ejb/FacturaEntradaLogic.java
Uniandes-isis2603/s1_Eventos_201910
ef217517adabfd08ab51dcd724c2b806a363cfd3
[ "MIT" ]
null
null
null
s1_eventos-back/src/main/java/co/edu/uniandes/csw/eventos/ejb/FacturaEntradaLogic.java
Uniandes-isis2603/s1_Eventos_201910
ef217517adabfd08ab51dcd724c2b806a363cfd3
[ "MIT" ]
null
null
null
s1_eventos-back/src/main/java/co/edu/uniandes/csw/eventos/ejb/FacturaEntradaLogic.java
Uniandes-isis2603/s1_Eventos_201910
ef217517adabfd08ab51dcd724c2b806a363cfd3
[ "MIT" ]
null
null
null
40.836364
136
0.7313
2,718
/* MIT License Copyright (c) 2017 Universidad de los Andes - ISIS2603 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package co.edu.uniandes.csw.eventos.ejb; import co.edu.uniandes.csw.eventos.entities.EntradaEntity; import co.edu.uniandes.csw.eventos.entities.FacturaEntity; import co.edu.uniandes.csw.eventos.exceptions.BusinessLogicException; import co.edu.uniandes.csw.eventos.persistence.EntradaPersistence; import co.edu.uniandes.csw.eventos.persistence.FacturaPersistence; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.ejb.Stateless; import javax.inject.Inject; /** * Clase que implementa la conexion con la persistencia para la relación entre * la entidad de Factura y Entrada. * * @author ISIS2603 */ @Stateless public class FacturaEntradaLogic { private static final Logger LOGGER = Logger.getLogger(FacturaEntradaLogic.class.getName()); @Inject private FacturaPersistence facturaPersistence; @Inject private EntradaPersistence entradaPersistence; /** * Agregar un Entrada a la Factura * * @param facturasId El id de la Factura en la cual se va a guardar el * libro. * @param entrada * @return la entrada creado. */ public EntradaEntity addEntrada(Long facturasId, EntradaEntity entrada) { LOGGER.log(Level.INFO, "Inicia proceso de agregarle un libro a la Factura con id = {0}", facturasId); FacturaEntity facturaEntity = facturaPersistence.find(facturasId); entradaPersistence.create(entrada); facturaEntity.getEntradas().add(entrada); entrada.setFactura(facturaEntity); facturaPersistence.update(facturaEntity); // EntradaEntity entradaEntity = entradaPersistence.find(entradasId); //entradaEntity.setFactura(facturaEntity); LOGGER.log(Level.INFO, "Termina proceso de agregarle un libro a la Factura con id = {0}", facturasId); return entrada; } /** * Retorna todos los Entradas asociados a una Factura * * @param facturasId El ID de la Factura buscada * @return La lista de libros de la Factura */ public List<EntradaEntity> getEntradas(Long facturasId) { LOGGER.log(Level.INFO, "Inicia proceso de consultar los libros asociados a la Factura con id = {0}", facturasId); return facturaPersistence.find(facturasId).getEntradas(); } /** * Retorna un Entrada asociado a una Factura * * @param facturasId El id de la Factura a buscar. * @param entradasId El id dla entrada a buscar * @return la entrada encontrado dentro de la Factura. * @throws BusinessLogicException Si la entrada no se encuentra en la * Factura */ public EntradaEntity getEntrada(Long facturasId, Long entradasId) throws BusinessLogicException { LOGGER.log(Level.INFO, "Inicia proceso de consultar la entrada con id = {0} de la Factura con id = " + facturasId, entradasId); List<EntradaEntity> entradas = facturaPersistence.find(facturasId).getEntradas(); EntradaEntity entradaEntity = entradaPersistence.find(entradasId); int index = entradas.indexOf(entradaEntity); LOGGER.log(Level.INFO, "Termina proceso de consultar la entrada con id = {0} de la Factura con id = " + facturasId, entradasId); if (index >= 0) { return entradas.get(index); } throw new BusinessLogicException("la entrada no está asociado a la Factura"); } }
3e0666d9230591d1c5eb917b43c349b4b121739e
3,030
java
Java
src/main/java/ca/lukegrahamlandry/mercenaries/network/BuyNewMercPacket.java
LukeGrahamLandry/mercenaries-mod
a23a16c597516d266f6f848155e2ceeb9054337c
[ "MIT" ]
null
null
null
src/main/java/ca/lukegrahamlandry/mercenaries/network/BuyNewMercPacket.java
LukeGrahamLandry/mercenaries-mod
a23a16c597516d266f6f848155e2ceeb9054337c
[ "MIT" ]
null
null
null
src/main/java/ca/lukegrahamlandry/mercenaries/network/BuyNewMercPacket.java
LukeGrahamLandry/mercenaries-mod
a23a16c597516d266f6f848155e2ceeb9054337c
[ "MIT" ]
null
null
null
37.875
123
0.560396
2,719
package ca.lukegrahamlandry.mercenaries.network; import ca.lukegrahamlandry.mercenaries.MercConfig; import ca.lukegrahamlandry.mercenaries.SaveMercData; import ca.lukegrahamlandry.mercenaries.entity.MercenaryEntity; import ca.lukegrahamlandry.mercenaries.init.EntityInit; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.network.PacketBuffer; import net.minecraft.util.text.StringTextComponent; import net.minecraftforge.fml.network.NetworkEvent; import java.util.function.Supplier; // client -> server public class BuyNewMercPacket { public BuyNewMercPacket() { } public BuyNewMercPacket(PacketBuffer buf) { this(); } public static void toBytes(BuyNewMercPacket msg, PacketBuffer buf) { } public static void handle(BuyNewMercPacket msg, Supplier<NetworkEvent.Context> context) { context.get().enqueueWork(() -> { ServerPlayerEntity player = context.get().getSender(); // check if they can afford int cashHeld = 0; for (int i=0;i<player.inventory.getContainerSize();i++){ ItemStack stack = player.inventory.getItem(i); if (stack.getItem() == MercConfig.buyMercItem()){ cashHeld += stack.getCount(); } } int price = MercConfig.caclualteCurrentPrice(player); if (cashHeld >= price){ // pay for (int i=0;i<player.inventory.getContainerSize();i++){ ItemStack stack = player.inventory.getItem(i); if (stack.getItem() == MercConfig.buyMercItem()){ if (stack.getCount() > price){ stack.shrink(price); player.inventory.setItem(i, stack); price = 0; } else { price -= stack.getCount(); player.inventory.setItem(i, ItemStack.EMPTY); } if (price <= 0){ // consumed enough money break; } } } // create merc MercenaryEntity merc = EntityInit.MERCENARY.get().create(player.level); merc.setOwner(player); merc.setPos(player.getX(), player.getY(), player.getZ()); merc.villageLocation = player.blockPosition(); SaveMercData.get().addMerc(player, merc); player.level.addFreshEntity(merc); // alert player.displayClientMessage(new StringTextComponent("Hired new mercenary!"), true); } else { player.displayClientMessage(new StringTextComponent("You could not afford to hire a new mercenary"), true); } }); context.get().setPacketHandled(true); } }
3e0667849986d7d726fe23d30cfb3c7fc43c4d72
51
java
Java
src/main/java/winw/ai/perception/OCR.java
winwjava/winw-deep-learning
5ba7ded414bfb14abf13c6022f8e564455f9dd31
[ "Apache-2.0" ]
null
null
null
src/main/java/winw/ai/perception/OCR.java
winwjava/winw-deep-learning
5ba7ded414bfb14abf13c6022f8e564455f9dd31
[ "Apache-2.0" ]
1
2022-03-11T12:51:41.000Z
2022-03-14T01:37:41.000Z
src/main/java/winw/ai/perception/OCR.java
winwjava/winw-deep-learning
5ba7ded414bfb14abf13c6022f8e564455f9dd31
[ "Apache-2.0" ]
null
null
null
8.5
27
0.72549
2,720
package winw.ai.perception; public class OCR { }
3e066836883debbc65f877e734ae96ec7084299a
241
java
Java
src/main/java/com/github/lstephen/ootp/ai/io/Printable.java
lstephen/ootp-ai
a4898dfa0139f6fb8fb1e5f9b01d1398294ee4a4
[ "Apache-2.0" ]
null
null
null
src/main/java/com/github/lstephen/ootp/ai/io/Printable.java
lstephen/ootp-ai
a4898dfa0139f6fb8fb1e5f9b01d1398294ee4a4
[ "Apache-2.0" ]
39
2015-01-05T18:34:37.000Z
2018-03-30T20:18:10.000Z
src/main/java/com/github/lstephen/ootp/ai/io/Printable.java
lstephen/ootp-ai
a4898dfa0139f6fb8fb1e5f9b01d1398294ee4a4
[ "Apache-2.0" ]
1
2019-07-16T00:19:43.000Z
2019-07-16T00:19:43.000Z
20.083333
54
0.80083
2,721
package com.github.lstephen.ootp.ai.io; import java.io.PrintWriter; import javax.annotation.ParametersAreNonnullByDefault; /** @author lstephen */ @ParametersAreNonnullByDefault public interface Printable { void print(PrintWriter w); }
3e066881a4540a962bfd197cc32d919c82bf2d30
3,787
java
Java
src/main/java/com/dazito/oauthexample/service/FileService.java
karpovichDima/JDBC_oAuth2
0b3340c68779e9e801435c5d175b3d7deac8fa51
[ "MIT" ]
null
null
null
src/main/java/com/dazito/oauthexample/service/FileService.java
karpovichDima/JDBC_oAuth2
0b3340c68779e9e801435c5d175b3d7deac8fa51
[ "MIT" ]
null
null
null
src/main/java/com/dazito/oauthexample/service/FileService.java
karpovichDima/JDBC_oAuth2
0b3340c68779e9e801435c5d175b3d7deac8fa51
[ "MIT" ]
1
2020-04-25T10:30:57.000Z
2020-04-25T10:30:57.000Z
37.127451
135
0.713758
2,722
package com.dazito.oauthexample.service; import com.dazito.oauthexample.model.*; import com.dazito.oauthexample.service.dto.response.FileDeletedDto; import com.dazito.oauthexample.service.dto.response.FileUploadedDto; import com.dazito.oauthexample.utils.exception.AppException; import org.springframework.core.io.Resource; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; import java.nio.file.Path; import java.util.Optional; public interface FileService{ /** * upload multipart file * @param file which we want to upload on the server * @param parent_id this is the ID of the item in which we are putting the item(parent). * @return FileUploadedDto is a response object, which indicates that the file was successfully uploaded */ FileUploadedDto upload(MultipartFile file, Long parent_id) throws IOException, AppException; /** * download multipart file * @param uuid is uuid of the file which we want to download on the client */ Resource download(String uuid) throws IOException, AppException; /** * look for the Storage Element in different ways depending on the parameter passed * @param parentId this is the parent element by which we will search for the storage element * @param organization this is the organization by which we will search for the storage element * @return StorageElement is found object */ StorageElement findContentDependingOnTheParent(Long parentId, Organization organization) throws AppException; /** * generate uuid and convert to string * @return String uuid */ String generateStringUuid(); /** * generate uuid and convert to string * @param fileEntity file what been uploaded * @return FileUploadedDto is a response object, which indicates that the file was successfully uploaded */ FileUploadedDto buildFileUploadedDto(FileEntity fileEntity); /** * set the path to the file, depending on the role of the authorized user (for administrators, the common path, for users — unique) * @param currentUser is user whose role we will check * @param uuid is uuid of the file we downloaded * @return Path is a path to the file */ Path setFilePathDependingOnTheUserRole(AccountEntity currentUser, String uuid) throws AppException; /** * File search by id * @param id is id by which we will to find File * @return FileEntity */ FileEntity findById(Long id); /** * File search by name * @param name is name by which we will to find File * @return FileEntity */ FileEntity findByName(String name); /** * File search by uuid * @param uuid is uuid by which we will to find File * @return FileEntity */ FileEntity findByUUID(String uuid) throws AppException; /** * Get file from optional if optional is not null * @param fileOptional this is optional, which we check for null * @return FileEntity */ FileEntity getFileIfOptionalNotNull(Optional<FileEntity> fileOptional); /** * we load the new file on old uuid * @param file this is the file that we load * @param uuid this is the uuid to which we upload the new file * @return FileUploadedDto is a response object, which indicates that the file was successfully uploaded */ FileUploadedDto updateFile(MultipartFile file, String uuid) throws IOException, AppException; /** * delete the file by uuid * @param id is uuid by which we will to delete File * @return FileDeletedDto is a response object, which indicates that the file was successfully deleted */ FileDeletedDto delete(String id) throws IOException, AppException; }
3e066970cc68bdb9d68818f88484b82e504c17d6
601
java
Java
src/main/java/nuTinemCuFranta/plai/repositories/ProjectRepository.java
andrew-smalls/nu-tinem-cu-franta
47a1cce7810c187ceaad463fb175a836d7075429
[ "MIT" ]
null
null
null
src/main/java/nuTinemCuFranta/plai/repositories/ProjectRepository.java
andrew-smalls/nu-tinem-cu-franta
47a1cce7810c187ceaad463fb175a836d7075429
[ "MIT" ]
null
null
null
src/main/java/nuTinemCuFranta/plai/repositories/ProjectRepository.java
andrew-smalls/nu-tinem-cu-franta
47a1cce7810c187ceaad463fb175a836d7075429
[ "MIT" ]
null
null
null
30.05
73
0.767055
2,723
package nuTinemCuFranta.plai.repositories; import nuTinemCuFranta.plai.model.Project; import nuTinemCuFranta.plai.model.User; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import java.util.List; import java.util.Optional; public interface ProjectRepository extends CrudRepository<Project,Long> { List<Project> findByOrganizationId(Long orgId); @Query( value = "SELECT * FROM projects WHERE project_name = ?1", nativeQuery = true ) Optional<Project> findByProjectName(String projectName); }
3e066a23378e8ffda7551df0240b1e06f0e0c4df
1,897
java
Java
app/src/main/java/online/postboard/android/data/model/CommentDTO.java
ajaygeorge91/postboard_android
1799e1ce9e93aff82c15cf05d230c66c5c2a540d
[ "Apache-2.0" ]
null
null
null
app/src/main/java/online/postboard/android/data/model/CommentDTO.java
ajaygeorge91/postboard_android
1799e1ce9e93aff82c15cf05d230c66c5c2a540d
[ "Apache-2.0" ]
null
null
null
app/src/main/java/online/postboard/android/data/model/CommentDTO.java
ajaygeorge91/postboard_android
1799e1ce9e93aff82c15cf05d230c66c5c2a540d
[ "Apache-2.0" ]
null
null
null
23.419753
84
0.680021
2,724
package online.postboard.android.data.model; import java.io.Serializable; public class CommentDTO extends AnyItem implements Serializable { private String createdAt; private UserDTO createdBy; private UserCommentActivity userCommentActivity; private CommentMeta commentMeta; private String id; private String content; private PaginatedResult<SubCommentDTO> subCommentListP; private NodeLabel nodeLabel; public CommentDTO() { } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public String getCreatedAt() { return createdAt; } public void setCreatedBy(UserDTO createdBy) { this.createdBy = createdBy; } public UserDTO getCreatedBy() { return createdBy; } public void setUserCommentActivity(UserCommentActivity userCommentActivity) { this.userCommentActivity = userCommentActivity; } public UserCommentActivity getUserCommentActivity() { return userCommentActivity; } public void setCommentMeta(CommentMeta commentMeta) { this.commentMeta = commentMeta; } public CommentMeta getCommentMeta() { return commentMeta; } public void setId(String id) { this.id = id; } public String getId() { return id; } public void setContent(String content) { this.content = content; } public String getContent() { return content; } public void setSubCommentListP(PaginatedResult<SubCommentDTO> subCommentListP) { this.subCommentListP = subCommentListP; } public PaginatedResult<SubCommentDTO> getSubCommentListP() { return subCommentListP; } public NodeLabel getNodeLabel() { return nodeLabel; } public void setNodeLabel(NodeLabel nodeLabel) { this.nodeLabel = nodeLabel; } }
3e066a8e78bbf020f2f363b6c34b709eb5fb5e79
676
java
Java
no-binaries-in-codebase/textfile/src/main/java/com/ttulka/samples.textfile/TextFile.java
ribeaud/blog-code-samples
057f3a55ea70848f9c92270d5e41f03102444dd0
[ "MIT" ]
8
2019-08-10T05:22:25.000Z
2022-03-21T14:16:13.000Z
no-binaries-in-codebase/textfile/src/main/java/com/ttulka/samples.textfile/TextFile.java
ribeaud/blog-code-samples
057f3a55ea70848f9c92270d5e41f03102444dd0
[ "MIT" ]
8
2020-04-07T17:43:52.000Z
2021-01-06T18:19:15.000Z
no-binaries-in-codebase/textfile/src/main/java/com/ttulka/samples.textfile/TextFile.java
ttulka/blog-code-samples
b6704a2a37ac32b14f7b2a8ea8fa7e4544e39bb0
[ "MIT" ]
9
2019-08-10T05:22:45.000Z
2022-03-21T23:05:42.000Z
21.806452
75
0.628698
2,725
package com.ttulka.samples.textfile; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; public class TextFile { private final Path file; private final Charset charset; public TextFile(Path file) { this(file, Charset.forName("utf8")); } public TextFile(Path file, Charset charset) { this.file = file; this.charset = charset; } public final String content() { try { return Files.readString(file, charset); } catch (IOException e) { throw new RuntimeException("Could not read a file " + file, e); } } }
3e066a97a060408a500c40338bf35c060468e116
3,169
java
Java
utilities/src/main/java/io/syndesis/qe/utils/mqtt/MqttUtils.java
mmajerni/syndesis-qe
60d6b8e3e7dc6fa9065df6a951a291ae7d38a9c2
[ "Apache-2.0" ]
1
2019-04-04T05:20:37.000Z
2019-04-04T05:20:37.000Z
utilities/src/main/java/io/syndesis/qe/utils/mqtt/MqttUtils.java
mmajerni/syndesis-qe
60d6b8e3e7dc6fa9065df6a951a291ae7d38a9c2
[ "Apache-2.0" ]
1
2019-12-16T13:45:44.000Z
2019-12-17T16:29:22.000Z
utilities/src/main/java/io/syndesis/qe/utils/mqtt/MqttUtils.java
mmajerni/syndesis-qe
60d6b8e3e7dc6fa9065df6a951a291ae7d38a9c2
[ "Apache-2.0" ]
null
null
null
39.6125
112
0.660145
2,726
package io.syndesis.qe.utils.mqtt; import org.assertj.core.api.Assertions; import org.eclipse.paho.client.mqttv3.MqttClient; import org.eclipse.paho.client.mqttv3.MqttConnectOptions; import org.eclipse.paho.client.mqttv3.MqttException; import org.eclipse.paho.client.mqttv3.MqttMessage; import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence; import java.util.Optional; import io.syndesis.qe.accounts.Account; import io.syndesis.qe.accounts.AccountsDirectory; import lombok.extern.slf4j.Slf4j; @Slf4j public class MqttUtils { private static final String broker = "tcp://localhost:1883"; public MqttClient createReceiver(String clientName, String topic) throws MqttException { MqttClient sampleClient = new MqttClient(broker, clientName, new MemoryPersistence()); MqttConnectOptions connOpts = new MqttConnectOptions(); connOpts.setCleanSession(false); Optional<Account> optional = AccountsDirectory.getInstance().getAccount(Account.Name.MQTT); if (optional.isPresent()) { log.info("Setting username and password for QE MQTT client"); connOpts.setUserName(optional.get().getProperties().get("userName")); connOpts.setPassword(optional.get().getProperties().get("password").toCharArray()); } sampleClient.connect(connOpts); sampleClient.subscribe(topic, 1); sampleClient.setCallback(new Receiver(clientName)); return sampleClient; } public void sendMessage(String messageContent, String topic) { final String clientId = "syndesis-mqtt-sender"; MqttClient sampleClient = null; try { sampleClient = new MqttClient(broker, clientId, new MemoryPersistence()); MqttConnectOptions connOpts = new MqttConnectOptions(); connOpts.setCleanSession(false); Optional<Account> optional = AccountsDirectory.getInstance().getAccount(Account.Name.MQTT); if (optional.isPresent()) { log.info("Setting username and password for QE MQTT client"); connOpts.setUserName(optional.get().getProperties().get("userName")); connOpts.setPassword(optional.get().getProperties().get("password").toCharArray()); } sampleClient.connect(connOpts); MqttMessage message = new MqttMessage(messageContent.getBytes()); message.setQos(1); sampleClient.publish(topic, message); System.out.println("Message published from : " + clientId + " with payload of : " + messageContent); } catch (MqttException e) { e.printStackTrace(); Assertions.fail("Sending a message should not have thrown any exception."); } finally { closeClient(sampleClient); } } public void closeClient(MqttClient client) { try { if (client != null) { client.disconnect(); client.close(); } } catch (MqttException e) { e.printStackTrace(); Assertions.fail("There should be no error from Mqtt client!"); } } }
3e066ac6a9028677376de4108efcc06737c1bc5a
485
java
Java
src/main/java/br/com/atc/jdbc/GerarConexao.java
Edvan-Oliveira/Cadastro-de-Viagens
1ca0814b804a98825a8a29e130924a7b80ccaccf
[ "MIT" ]
1
2021-09-24T22:48:35.000Z
2021-09-24T22:48:35.000Z
src/main/java/br/com/atc/jdbc/GerarConexao.java
Edvan-Oliveira/Cadastro-de-Viagens
1ca0814b804a98825a8a29e130924a7b80ccaccf
[ "MIT" ]
4
2020-02-28T01:27:54.000Z
2022-02-16T01:02:12.000Z
src/main/java/br/com/atc/jdbc/GerarConexao.java
Edvan-Oliveira/Cadastro-de-Viagens
1ca0814b804a98825a8a29e130924a7b80ccaccf
[ "MIT" ]
null
null
null
21.086957
101
0.71134
2,727
package br.com.atc.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class GerarConexao { public Connection getConexao() { try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try { return DriverManager.getConnection("jdbc:postgresql://localhost:5432/atcCrud", "edvan", "junior"); } catch (SQLException e) { throw new RuntimeException(e); } } }
3e066b4ef37857afea7ae7ff5c4a1656cd038262
2,147
java
Java
src/acmtree/SearchEngineSimilarityMain3.java
tsungtingkuo/refinement
8dfc1efce7d49d85f00aa5f2c03b6b699dd6fe84
[ "BSD-3-Clause" ]
7
2015-10-02T20:59:01.000Z
2022-01-14T06:10:07.000Z
src/acmtree/SearchEngineSimilarityMain3.java
tsungtingkuo/refinement
8dfc1efce7d49d85f00aa5f2c03b6b699dd6fe84
[ "BSD-3-Clause" ]
null
null
null
src/acmtree/SearchEngineSimilarityMain3.java
tsungtingkuo/refinement
8dfc1efce7d49d85f00aa5f2c03b6b699dd6fe84
[ "BSD-3-Clause" ]
null
null
null
26.182927
123
0.56218
2,728
/** * */ package acmtree; import java.io.*; /** * @author Tim Kuo * */ public class SearchEngineSimilarityMain3 { /** * @param args */ public static void main(String[] args) throws Exception { SearchEngineSimilarity ses = new SearchEngineSimilarity(); //BufferedReader acm98 = new BufferedReader(new FileReader("ccs98_new_adjusted_deleted.txt")); BufferedReader acm98 = new BufferedReader(new FileReader("ccs98_pn100.txt")); String line,lineName; // also be file Name double sim; int low = Integer.parseInt(args[0]); int high = Integer.parseInt(args[1]); int part = Integer.parseInt(args[2]); int i=low; for (int j=0;j<low-1;j++){ lineName = acm98.readLine(); //skip line } int z = i; while(i <= high){ //File file = new File(i + "_1101_" + part + ".txt"); //File file = new File(i + "_340_" + part + ".txt"); File file = new File(i + "_100_" + part + ".txt"); if (!file.exists() || !file.isFile()) { System.out.println("File doesn\'t exist"); } else if(file.length()!=0){ i++; continue; } //Here we get the actual size //PrintWriter pw_label=new PrintWriter(new FileOutputStream (i + "_1101_" + part + ".txt")); //PrintWriter pw_label=new PrintWriter(new FileOutputStream (i + "_340_" + part + ".txt")); PrintWriter pw_label=new PrintWriter(new FileOutputStream (i + "_100_" + part + ".txt")); lineName = acm98.readLine(); System.out.println(lineName); BufferedReader acm91 = new BufferedReader(new FileReader("ccs91_preprocessed" + part + ".txt")); while (acm91.ready()){ line = acm91.readLine(); try{ sim = ses.getSimilarity("%22" + line.replace(' ', '+') + "%22" + "+" + "%22" + lineName.replace(' ', '+') + "%22"); } catch(Exception e){ sim=0.00; } System.out.println(sim); pw_label.println(sim); } i++; pw_label.close(); } System.out.println("Data Complete ! From " + z + " to " + high); } }
3e066db0722366b0b78f1728a21253bae4551ace
900
java
Java
src/test/java/co/ipregistry/api/client/options/HostnameOptionTest.java
ipregistry/ipregistry-java
e81479c4627640ce56e34cafccd14189e9f031cb
[ "Apache-2.0" ]
11
2019-07-03T13:07:03.000Z
2022-02-25T05:18:08.000Z
src/test/java/co/ipregistry/api/client/options/HostnameOptionTest.java
ipregistry/ipregistry-java
e81479c4627640ce56e34cafccd14189e9f031cb
[ "Apache-2.0" ]
27
2020-09-03T07:39:19.000Z
2022-03-28T21:07:08.000Z
src/test/java/co/ipregistry/api/client/options/HostnameOptionTest.java
ipregistry/ipregistry-java
e81479c4627640ce56e34cafccd14189e9f031cb
[ "Apache-2.0" ]
2
2019-10-22T22:07:46.000Z
2020-04-09T04:58:36.000Z
30
76
0.735556
2,729
/* * Copyright 2019 Ipregistry (https://ipregistry.co). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package co.ipregistry.api.client.options; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; class HostnameOptionTest { @Test void testHostnameOptionName() { Assertions.assertEquals(new HostnameOption(false).name, "hostname"); } }
3e066dd22fd6890316e1cf3f2adcb278b8bbf2bd
1,674
java
Java
springCloud/springcloud-consumer-dept-80/src/main/java/com/joker/springcloud/contoller/DeptConsumerController.java
jokerzzccc/sturdy-doodle
6456ce75883eda2b194fd8c39ed1c2ddb026fbf1
[ "Apache-2.0" ]
null
null
null
springCloud/springcloud-consumer-dept-80/src/main/java/com/joker/springcloud/contoller/DeptConsumerController.java
jokerzzccc/sturdy-doodle
6456ce75883eda2b194fd8c39ed1c2ddb026fbf1
[ "Apache-2.0" ]
null
null
null
springCloud/springcloud-consumer-dept-80/src/main/java/com/joker/springcloud/contoller/DeptConsumerController.java
jokerzzccc/sturdy-doodle
6456ce75883eda2b194fd8c39ed1c2ddb026fbf1
[ "Apache-2.0" ]
null
null
null
37.2
90
0.763441
2,730
package com.joker.springcloud.contoller; import com.joker.myrule.JokerRule; import com.joker.springcloud.pojo.Dept; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.loadbalancer.LoadBalanced; import org.springframework.cloud.netflix.ribbon.RibbonClient; import org.springframework.web.bind.annotation.*; import org.springframework.web.client.RestTemplate; import java.util.List; @RestController @RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = JokerRule.class) public class DeptConsumerController { //理解:消费者,不应该有service层,所以,要用Restful风格去请求 //RestTemplate : springboot的自带的模板,供我们直接调用,注册到spring中,就要去建一个config类 //三个参数:url,实体:(如果多个可以用放在map里),Class<T> responseType //说到底,RestTemplate 就是提供多种便捷访问远程http服务的方法,简单的Restful风格的服务模板 @Autowired private RestTemplate restTemplate; // private static final String REST_URL_PREFIX="http://localhost:8001"; //通过Ribbon 实现时,我们这里的地址应该时一个变量,通过服务名来访问 private static final String REST_URL_PREFIX="http://SPRINGCLOUD-PROVIDER-DEPT"; @RequestMapping("/consumer/dept/add") public boolean addDept(Dept dept){ return restTemplate.postForObject(REST_URL_PREFIX+"/dept/add",dept,Boolean.class); } //要去请求:http://localhost:8001/dept/list @RequestMapping("/consumer/dept/get/{id}") public Dept get(@PathVariable("id") Long id){ //因为服务端用的get,这里也只能用get方式 return restTemplate.getForObject(REST_URL_PREFIX+"/dept/get/"+id,Dept.class); } @RequestMapping("/consumer/dept/list") public List<Dept> queryAll(){ return restTemplate.getForObject(REST_URL_PREFIX+"/dept/list",List.class); } }
3e066e81581530b25e818ba973a78cb1624d1359
13,733
java
Java
#633 - Server/src/com/rs/game/player/controllers/Barrows.java
CSS-Lletya/open633
e512f3a8af1581427539bde4c535e6c117851dac
[ "Apache-2.0" ]
null
null
null
#633 - Server/src/com/rs/game/player/controllers/Barrows.java
CSS-Lletya/open633
e512f3a8af1581427539bde4c535e6c117851dac
[ "Apache-2.0" ]
null
null
null
#633 - Server/src/com/rs/game/player/controllers/Barrows.java
CSS-Lletya/open633
e512f3a8af1581427539bde4c535e6c117851dac
[ "Apache-2.0" ]
null
null
null
33.495122
588
0.664385
2,731
package com.rs.game.player.controllers; import java.util.ArrayList; import java.util.List; import com.rs.Settings; import com.rs.game.Entity; import com.rs.game.ForceTalk; import com.rs.game.Hit; import com.rs.game.Hit.HitLook; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.item.Item; import com.rs.game.npc.others.BarrowsBrother; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Utils; public final class Barrows extends Controller { private static final short[][] TUNNEL_CONFIG = { { 470, 479, 482, 476, 474 }, { 479, 477, 478, 480, 472 }, { 477, 471, 472, 476, 475, 478, 480, 477 } }; private static final int[] CRYPT_NPCS = { 1243, 1244, 1245, 1246, 1247, 1618, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 4920, 4921, 5381, 5422, 7637 }; //dont enable, not finished private static final boolean ENABLE_AKRISAE = false; private BarrowsBrother target; private int creatureCount; // they have to be handled by correct order // AHRIM // DHAROK // GUTHAN // KARIL // TORAG // VERAC private static enum Hills { //old verac 3578, 9706, 3 AHRIM_HILL(new WorldTile(3564, 3287, 0), new WorldTile(3557, 9703, 3)), DHAROK_HILL(new WorldTile(3573, 3296, 0), new WorldTile(3556, 9718, 3)), GUTHAN_HILL(new WorldTile(3574, 3279, 0), new WorldTile(3534, 9704, 3)), KARIL_HILL(new WorldTile(3563, 3276, 0), new WorldTile(3546, 9684, 3)), TORAG_HILL(new WorldTile(3553, 3281, 0), new WorldTile(3568, 9683, 3)), VERAC_HILL(new WorldTile(3556, 3296, 0), ENABLE_AKRISAE ? new WorldTile(4077, 5710, 0) : new WorldTile(3578, 9706, 3)); private WorldTile outBound; private WorldTile inside; // out bound since it not a full circle private Hills(WorldTile outBound, WorldTile in) { this.outBound = outBound; inside = in; } } public static boolean digIntoGrave(final Player player) { for (Hills hill : Hills.values()) { if (player.getPlane() == hill.outBound.getPlane() && player.getX() >= hill.outBound.getX() && player.getY() >= hill.outBound.getY() && player.getX() <= hill.outBound.getX() + 3 && player.getY() <= hill.outBound.getY() + 3) { player.useStairs(-1, hill.inside, 1, 2, "You've broken into a crypt."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { player.getControlerManager().startControler("Barrows"); } }); return true; } } return false; } @Override public boolean canAttack(Entity target) { if (target instanceof BarrowsBrother && target != this.target) { player.getPackets().sendGameMessage("This isn't your target."); return false; } return true; } private void exit(WorldTile outside) { player.setNextWorldTile(outside); leave(false); } private void leave(boolean logout) { if (target != null) { target.finish(); // target also calls removing hint icon at remove player.getPackets().sendGameMessage("We'll finish this later......."); } if (!logout) { for (int varBit : TUNNEL_CONFIG[getTunnelIndex()]) player.getVarsManager().sendVarBit(varBit, 0); player.getVarsManager().sendVar(1270, 0); player.getPackets().sendBlackOut(0); // unblacks minimap if (player.getHiddenBrother() == -1) player.getPackets().sendStopCameraShake(); else player.getInterfaceManager().removeOverlay(false); removeControler(); } } private int getTunnelIndex() { return (int) this.getArguments()[0]; } @Override public boolean sendDeath() { leave(false); return true; } @Override public void magicTeleported(int type) { leave(false); } public int getRandomBrother() { List<Integer> bros = new ArrayList<Integer>(); for (int i = 0; i < Hills.values().length; i++) { if (player.getKilledBarrowBrothers()[i] || player.getHiddenBrother() == i) continue; bros.add(i); } if (bros.isEmpty()) return -1; return bros.get(Utils.random(bros.size())); } private static final Item[] COMMUM_REWARDS = { new Item(558, 1795), new Item(562, 773), new Item(560, 391), new Item(565, 164), new Item(4740, 188) }; @SuppressWarnings("unused") // once i add the ring effect private static final Item[] RING_OF_WEALTH_REWARDS = { new Item(165, 1), new Item(159, 1), new Item(141, 1), new Item(129, 1), new Item(385, 4) }; private static final Item[] RARE_REWARDS = { new Item(1149, 1), new Item(987, 1), new Item(985, 1) }; private static final Item[] BARROW_REWARDS = { new Item(4708, 1), new Item(4710, 1), new Item(4712, 1), new Item(4714, 1), new Item(4716, 1), new Item(4718, 1), new Item(4720, 1), new Item(4722, 1), new Item(4724, 1), new Item(4726, 1), new Item(4728, 1), new Item(4730, 1), new Item(4732, 1), new Item(4734, 1), new Item(4736, 1), new Item(4738, 1), new Item(4745, 1), new Item(4747, 1), new Item(4749, 1), new Item(4751, 1), new Item(4753, 1), new Item(4755, 1), new Item(4757, 1), new Item(4759, 1), new Item(21736, 1), new Item(21744, 1), new Item(21752, 1), new Item(21760, 1) }; public void drop(Item item) { Item dropItem = new Item(item.getId(), Utils.random(item.getDefinitions().isStackable() ? item.getAmount() * Settings.DROP_QUANTITY_RATE : item.getAmount()) + 1); player.getInventory().addItemDrop(dropItem.getId(), dropItem.getAmount()); } public void sendReward() { double percentage = 0; for (boolean died : player.getKilledBarrowBrothers()) { if (died) percentage += 10; } percentage += (player.getBarrowsKillCount() / 10); if (percentage >= Math.random() * 100) { //reard barrows drop(BARROW_REWARDS[Utils.random(BARROW_REWARDS.length)]); } if (Utils.random(13) == 0) // rare drop(RARE_REWARDS[Utils.random(RARE_REWARDS.length)]); if (Utils.random(3) != 0) drop(COMMUM_REWARDS[Utils.random(COMMUM_REWARDS.length)]); // here reward other stuff normaly drop(new Item(995, 4162)); // money reward at least always } @Override public boolean processObjectClick1(WorldObject object) { if (object.getId() >= 6702 && object.getId() <= 6707) { WorldTile out = Hills.values()[object.getId() - 6702].outBound; // cant make a perfect middle since 3/ 2 wont make a real integer // number or wahtever u call it.. exit(new WorldTile(out.getX() + 1, out.getY() + 1, out.getPlane())); return false; } else if (object.getId() == 10284) { if (player.getHiddenBrother() == -1) {// reached chest player.getPackets().sendGameMessage("You found nothing."); return false; } if (!player.getKilledBarrowBrothers()[player.getHiddenBrother()]) sendTarget(player.getHiddenBrother() == 6 ? 14297 : 2025 + player.getHiddenBrother(), player); if (target != null) { player.getPackets().sendGameMessage("You found nothing."); return false; } sendReward(); player.getPackets().sendCameraShake(3, 12, 25, 12, 25); player.getInterfaceManager().removeOverlay(false); player.getPackets().sendSpawnedObject(new WorldObject(6775, 10, 0, 3551, 9695, 0)); player.resetBarrows(); return false; } else if (object.getId() == 6711) { player.useStairs(828, new WorldTile(3565, 3312, 0), 1, 2); leave(false); return false; } else if (object.getId() >= 6716 && object.getId() <= 6749) { boolean inBetween = player.getTemporaryAttributtes().get("between_barrow_door") != null; if (inBetween) player.getTemporaryAttributtes().remove("between_barrow_door"); else player.getTemporaryAttributtes().put("between_barrow_door", true); WorldTile walkTo; if (object.getRotation() == 0) walkTo = new WorldTile(object.getX() + (inBetween ? -1 : 1), object.getY(), 0); else if (object.getRotation() == 1) walkTo = new WorldTile(object.getX(), object.getY() - (inBetween ? -1 : 1), 0); else if (object.getRotation() == 2) walkTo = new WorldTile(object.getX() - (inBetween ? -1 : 1), object.getY(), 0); else walkTo = new WorldTile(object.getX(), object.getY() + (inBetween ? -1 : 1), 0); if (!World.isFloorFree(walkTo.getPlane(), walkTo.getX(), walkTo.getY())) return false; WorldObject opened = new WorldObject(object.getId(), object.getType(), object.getRotation() - 1, object.getX(), object.getY(), object.getPlane()); World.spawnObjectTemporary(opened, 600); player.addWalkSteps(walkTo.getX(), walkTo.getY(), -1, false); player.lock(3); player.getVarsManager().sendVar(1270, inBetween ? 0 : 1); if (player.getHiddenBrother() != -1) { int brother = getRandomBrother(); if (brother != -1) sendTarget(2025 + brother, walkTo); } return false; } else { int sarcoId = getSarcophagusId(object.getId()); if (sarcoId != -1) { if (sarcoId == player.getHiddenBrother()) player.getDialogueManager().startDialogue("BarrowsD"); else if (target != null || player.getKilledBarrowBrothers()[sarcoId]) player.getPackets().sendGameMessage("You found nothing."); else sendTarget(sarcoId == 6 ? 14297 : 2025 + sarcoId, player); return false; } } return true; }; public int getSarcophagusId(int objectId) { switch (objectId) { case 66017: return 0; case 63177: return 1; case 66020: return 2; case 66018: return 3; case 66019: return 4; case 66016: return 5; case 61189: return 6; default: return -1; } } public void targetDied() { player.getHintIconsManager().removeUnsavedHintIcon(); setBrotherSlained(target.getId() >= 14297 ? 6 : target.getId() - 2025); target = null; } public void targetFinishedWithoutDie() { player.getHintIconsManager().removeUnsavedHintIcon(); target = null; } public void setBrotherSlained(int index) { player.getKilledBarrowBrothers()[index] = true; sendBrotherSlain(index, true); } public void sendTarget(int id, WorldTile tile) { if (target != null) target.disapear(); target = new BarrowsBrother(id, tile, this); target.setTarget(player); target.setNextForceTalk(new ForceTalk("You dare disturb my rest!")); player.getHintIconsManager().addHintIcon(target, 1, -1, false); } public Barrows() { } // component 9, 10, 11 private int headComponentId; private int timer; public int getAndIncreaseHeadIndex() { Integer head = (Integer) player.getTemporaryAttributtes().remove("BarrowsHead"); if (head == null || head == player.getKilledBarrowBrothers().length - 1) head = 0; player.getTemporaryAttributtes().put("BarrowsHead", head + 1); return player.getKilledBarrowBrothers()[head] ? head : -1; } @Override public void process() { if (timer > 0) { timer--; return; } if (headComponentId == 0) { if (player.getHiddenBrother() == -1) { player.applyHit(new Hit(player, Utils.random(50) + 1, HitLook.REGULAR_DAMAGE)); resetHeadTimer(); return; } int headIndex = getAndIncreaseHeadIndex(); if (headIndex == -1) { resetHeadTimer(); return; } headComponentId = 9 + Utils.random(2); player.getPackets().sendItemOnIComponent(24, headComponentId, 4761 + headIndex, 0); player.getPackets().sendIComponentAnimation(9810, 24, headComponentId); int activeLevel = player.getPrayer().getPrayerpoints(); if (activeLevel > 0) { int level = player.getSkills().getLevelForXp(Skills.PRAYER) * 10; player.getPrayer().drainPrayer(level / 6); } timer = 3; } else { player.getPackets().sendItemOnIComponent(24, headComponentId, -1, 0); headComponentId = 0; resetHeadTimer(); } } public void resetHeadTimer() { timer = 20 + Utils.random(6); } @Override public void sendInterfaces() { if (player.getHiddenBrother() != -1) player.getInterfaceManager().setOverlay(24, false); } public void loadData() { resetHeadTimer(); if (getArguments().length == 1) creatureCount = 0; else creatureCount = 200; for (int i = 0; i < player.getKilledBarrowBrothers().length; i++) sendBrotherSlain(i, player.getKilledBarrowBrothers()[i]); sendCreaturesSlainCount(player.getBarrowsKillCount()); player.getPackets().sendBlackOut(2); // blacks minimap for (int varBit : TUNNEL_CONFIG[getTunnelIndex()]) player.getVarsManager().sendVarBit(varBit, 1); player.getVarsManager().sendVarBit(467, 1); } public void sendBrotherSlain(int index, boolean slain) { if (index == 6) return; player.getVarsManager().sendVarBit(457 + index, slain ? 1 : 0); } public void sendCreaturesSlainCount(int count) { player.getVarsManager().sendVarBit(464, count); } @Override public void start() { if (player.getHiddenBrother() == -1 || player.getHiddenBrother() == 6) player.setHiddenBrother(Utils.random(ENABLE_AKRISAE ? player.getKilledBarrowBrothers().length : 6)); setArguments(new Object[] { (int) Utils.random(TUNNEL_CONFIG.length), 0 }); loadData(); sendInterfaces(); } @Override public void processNPCDeath(int npcId) { for (int crypt_npc : CRYPT_NPCS) { if (npcId == crypt_npc) { creatureCount++; sendCreaturesSlainCount(creatureCount + 1); } } } @Override public boolean login() { if (player.getHiddenBrother() == -1) player.getPackets().sendCameraShake(3, 25, 50, 25, 50); loadData(); sendInterfaces(); return false; } @Override public boolean logout() { leave(true); this.setArguments(new Object[] { getArguments()[0], creatureCount }); return false; } @Override public void forceClose() { leave(true); } }
3e066f2c90e55568d4d7dd1899f96ba80801b589
2,414
java
Java
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/transform/DeletePartnerEventSourceRequestMarshaller.java
vinayakpokharkar/aws-sdk-java
fd409dee8ae23fb8953e0bb4dbde65536a7e0514
[ "Apache-2.0" ]
1
2022-01-04T04:11:16.000Z
2022-01-04T04:11:16.000Z
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/transform/DeletePartnerEventSourceRequestMarshaller.java
vinayakpokharkar/aws-sdk-java
fd409dee8ae23fb8953e0bb4dbde65536a7e0514
[ "Apache-2.0" ]
null
null
null
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/transform/DeletePartnerEventSourceRequestMarshaller.java
vinayakpokharkar/aws-sdk-java
fd409dee8ae23fb8953e0bb4dbde65536a7e0514
[ "Apache-2.0" ]
null
null
null
40.915254
157
0.75435
2,732
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloudwatchevents.model.transform; import javax.annotation.Generated; import com.amazonaws.SdkClientException; import com.amazonaws.services.cloudwatchevents.model.*; import com.amazonaws.protocol.*; import com.amazonaws.annotation.SdkInternalApi; /** * DeletePartnerEventSourceRequestMarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") @SdkInternalApi public class DeletePartnerEventSourceRequestMarshaller { private static final MarshallingInfo<String> NAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD) .marshallLocationName("Name").build(); private static final MarshallingInfo<String> ACCOUNT_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD) .marshallLocationName("Account").build(); private static final DeletePartnerEventSourceRequestMarshaller instance = new DeletePartnerEventSourceRequestMarshaller(); public static DeletePartnerEventSourceRequestMarshaller getInstance() { return instance; } /** * Marshall the given parameter object. */ public void marshall(DeletePartnerEventSourceRequest deletePartnerEventSourceRequest, ProtocolMarshaller protocolMarshaller) { if (deletePartnerEventSourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deletePartnerEventSourceRequest.getName(), NAME_BINDING); protocolMarshaller.marshall(deletePartnerEventSourceRequest.getAccount(), ACCOUNT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } } }
3e067164aee074661c8568f995b7413cd38905b6
6,808
java
Java
open-metadata-implementation/access-services/asset-lineage/asset-lineage-spring/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/server/spring/AssetLineageResource.java
christinesjx/egeria
5bd69ae80b736991bb8a65cd72dcc87e8ef7f51d
[ "CC-BY-4.0" ]
null
null
null
open-metadata-implementation/access-services/asset-lineage/asset-lineage-spring/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/server/spring/AssetLineageResource.java
christinesjx/egeria
5bd69ae80b736991bb8a65cd72dcc87e8ef7f51d
[ "CC-BY-4.0" ]
4
2019-10-23T08:30:20.000Z
2019-10-28T14:34:58.000Z
open-metadata-implementation/access-services/asset-lineage/asset-lineage-spring/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/server/spring/AssetLineageResource.java
christinesjx/egeria
5bd69ae80b736991bb8a65cd72dcc87e8ef7f51d
[ "CC-BY-4.0" ]
null
null
null
62.458716
159
0.679935
2,733
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.assetlineage.server.spring; import io.swagger.v3.oas.annotations.ExternalDocumentation; import io.swagger.v3.oas.annotations.tags.Tag; import org.odpi.openmetadata.accessservices.assetlineage.model.FindEntitiesParameters; import org.odpi.openmetadata.accessservices.assetlineage.server.AssetLineageRestServices; import org.odpi.openmetadata.commonservices.ffdc.rest.GUIDListResponse; import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder; import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus; import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.time.LocalDateTime; import java.util.List; @RestController @RequestMapping("/servers/{serverName}/open-metadata/access-services/asset-lineage/users/{userId}/") @Tag(name = "Asset Lineage OMAS", description = "The Asset Lineage OMAS provides services to query the lineage of business terms and data assets.", externalDocs = @ExternalDocumentation(description = "Asset Lineage Open Metadata Access Service (OMAS)", url = "https://egeria.odpi.org/open-metadata-implementation/access-services/asset-lineage/")) public class AssetLineageResource { private final AssetLineageRestServices restAPI = new AssetLineageRestServices(); /** * Scan the cohort based on the given entity type and publish the contexts for the found entities to the out topic * * @param serverName name of server instance to call * @param userId the name of the calling user * @param entityType the name of the relationship type * @param updatedAfterDate match entities updated starting from this date forward. The date must be provided in the ISO format * @param entitySubtypeGUIDs optional list of the unique identifiers (guids) for subtypes of the entityTypeGUID to * include in the search results. Null means all subtypes. * @param limitResultsByStatus By default, entities in all statuses are returned. However, it is possible * to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all * status values. * @param searchClassifications Optional list of entity classifications to match. * @param sequencingProperty String name of the entity property that is to be used to sequence the results. * Null means do not sequence on a property name (see SequencingOrder). * @param sequencingOrder Enum defining how the results should be ordered. * @return a list of unique identifiers (guids) of the available entities with the given type provided as a response */ @GetMapping(path = "/publish-entities/{entityType}") public GUIDListResponse publishEntities(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityType, @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime updatedAfterDate, @RequestParam(required = false) List<String> entitySubtypeGUIDs, @RequestParam(required = false) List<InstanceStatus> limitResultsByStatus, @RequestParam(required = false) SearchClassifications searchClassifications, @RequestParam(required = false) String sequencingProperty, @RequestParam(required = false) SequencingOrder sequencingOrder) { FindEntitiesParameters findEntitiesParameters = new FindEntitiesParameters.Builder() .withUpdatedAfter(updatedAfterDate) .withEntitySubtypeGUIDs(entitySubtypeGUIDs) .withLimitResultsByStatus(limitResultsByStatus) .withSearchClassifications(searchClassifications) .withSequencingProperty(sequencingProperty) .withSequencingOrder(sequencingOrder) .build(); return restAPI.publishEntities(serverName, userId, entityType, findEntitiesParameters); } /** * Find the entity by guid and publish the context for it * * @param serverName name of server instance to call * @param userId the name of the calling user * @param guid the guid of the entity to build context * @param entityType the name of the relationship type * @return a list of unique identifiers (guids) of the available entity with the given type provided as a response */ @GetMapping(path = "/publish-entity/{entityType}/{guid}") public GUIDListResponse publishEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid, @PathVariable String entityType) { return restAPI.publishEntity(serverName, userId, entityType, guid); } /** * Find the entity by guid and publish the asset context for it. It applies for data tables and files. * * @param serverName name of server instance to call * @param userId the name of the calling user * @param guid the guid of the entity to build context * @param entityType the name of the relationship type * @return a list of unique identifiers (guids) of the available entities that exist in the published context */ @GetMapping(path = "/publish-context/{entityType}/{guid}") public GUIDListResponse publishAssetContext(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid, @PathVariable String entityType) { return restAPI.publishAssetContext(serverName, userId, entityType, guid); } }
3e0671a818498fb9898a0db5f2ab24987f57d6ec
2,007
java
Java
src/java/main/examples/CPU.java
romario13/bonfire-java-examples
bed4370ec21bfdc290718f910dbb93302ed1c82b
[ "MIT" ]
null
null
null
src/java/main/examples/CPU.java
romario13/bonfire-java-examples
bed4370ec21bfdc290718f910dbb93302ed1c82b
[ "MIT" ]
null
null
null
src/java/main/examples/CPU.java
romario13/bonfire-java-examples
bed4370ec21bfdc290718f910dbb93302ed1c82b
[ "MIT" ]
null
null
null
21.126316
69
0.371201
2,734
package examples; /** */ public class CPU { public static final int SIZE = 16 * 1024 * 1024; public static final int SQRT_SIZE = (int) Math.sqrt(SIZE); public static boolean[] firstMethod() { boolean[] s = new boolean[SIZE]; for (int i = 2; i <= SQRT_SIZE; i++) { if (!s[i]) { for (int j = i * i; j < SIZE; j += i) { if (!s[j]) { s[j] = true; } } } } return s; } public static boolean[] secondMethod() { boolean[] s = new boolean[SIZE]; for (int i = 2; i <= SQRT_SIZE; i++) { if (!s[i]) { for (int j = i * i; j < SIZE; j += i) { if (!s[j]) { s[j] = true; } } } } return s; } public static boolean[] thirdMethod() { boolean[] s = new boolean[SIZE]; for (int i = 2; i <= SQRT_SIZE; i++) { if (!s[i]) { for (int j = i * i; j < SIZE; j += i) { if (!s[j]) { s[j] = true; } } } } return s; } public static void startThreads(Runnable task, int concurrency) { for (int i = 0; i < concurrency; i++) { new Thread(task).start(); } } public static void main(String[] args) { Runnable firstTask = () -> { while (true) { CPU.firstMethod(); } }; Runnable secondTask = () -> { while (true) { CPU.secondMethod(); } }; Runnable thirdTask = () -> { while (true) { CPU.thirdMethod(); } }; startThreads(firstTask, 1); startThreads(secondTask, 5); startThreads(thirdTask, 10); } }
3e067224bee5667c6ef37d2ad3a8e4ca9daa0793
2,466
java
Java
src/main/java/duke/command/home/HomeReportSpec.java
JeremyKwok/main
940b672bc6d179c002002bd4b8fca4e033ae9d57
[ "MIT" ]
null
null
null
src/main/java/duke/command/home/HomeReportSpec.java
JeremyKwok/main
940b672bc6d179c002002bd4b8fca4e033ae9d57
[ "MIT" ]
null
null
null
src/main/java/duke/command/home/HomeReportSpec.java
JeremyKwok/main
940b672bc6d179c002002bd4b8fca4e033ae9d57
[ "MIT" ]
null
null
null
37.363636
120
0.648013
2,735
package duke.command.home; import duke.DukeCore; import duke.command.ArgLevel; import duke.command.Switch; import duke.data.DukeObject; import duke.data.Patient; import duke.exception.DukeException; import duke.exception.DukeFatalException; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class HomeReportSpec extends HomeObjSpec { private static final HomeReportSpec spec = new HomeReportSpec(); public static HomeReportSpec getSpec() { return spec; } private HomeReportSpec() { cmdArgLevel = ArgLevel.OPTIONAL; initSwitches( new Switch("bed", String.class, true, ArgLevel.REQUIRED, "b"), new Switch("summary", String.class, true, ArgLevel.OPTIONAL, "sum") ); } @Override protected void executeWithObj(DukeCore core, DukeObject obj) throws DukeException { String header = "PATIENT REPORT"; String explanation = "This report shows all the data that was stored about a patient at the time the report was" + " created."; Patient patient = (Patient) obj; createReport(patient, header, explanation, cmd.getSwitchVal("summary")); core.updateUi("Patient report created for " + patient.getName()); } /** * Creates a report file for a patient. * @param patient The patient that the report will be created for. * @param header The header of the report. * @param explanation An explanation that describes what the report will contain. * @param summary A summary that the doctor can write for the report, for example why the report is written. */ public static void createReport(Patient patient, String header, String explanation, String summary) throws DukeFatalException { try { FileWriter fileWriter = new FileWriter("data/reports" + File.separator + patient.getName() + "-" + patient.getBedNo() + ".txt"); fileWriter.write(header + "\n\n" + explanation + "\n\n"); if (summary != null) { fileWriter.write("Report Summary: " + summary + "\n\n"); } fileWriter.write("Patient Data;\n"); fileWriter.write(patient.toReportString()); fileWriter.close(); } catch (IOException e) { throw new DukeFatalException("Unable to create report! Some data may have been lost,"); } } }
3e06723bc3b7053545b635e31a8038883a12bb53
1,022
java
Java
src/main/java/com/streever/iot/data/utility/generator/fields/IntegerField.java
dstreev/iot-data-utility
d9ad5250b59f456d906cc3cf706a82055b811c0a
[ "Apache-2.0" ]
3
2018-05-11T12:16:55.000Z
2020-08-28T20:15:53.000Z
src/main/java/com/streever/iot/data/utility/generator/fields/IntegerField.java
dstreev/iot-data-utility
d9ad5250b59f456d906cc3cf706a82055b811c0a
[ "Apache-2.0" ]
1
2022-02-03T11:14:43.000Z
2022-02-03T11:15:43.000Z
src/main/java/com/streever/iot/data/utility/generator/fields/IntegerField.java
dstreev/iot-data-utility
d9ad5250b59f456d906cc3cf706a82055b811c0a
[ "Apache-2.0" ]
2
2019-04-16T17:04:29.000Z
2020-08-27T14:35:43.000Z
23.767442
89
0.637965
2,736
package com.streever.iot.data.utility.generator.fields; import com.streever.iot.data.utility.generator.fields.support.Pool; import com.streever.iot.data.utility.generator.fields.support.Range; public class IntegerField extends FieldBase<Integer> { private Range<Integer> range = new Range(0, Integer.MAX_VALUE); private Pool<Integer> pool; public Range<Integer> getRange() { return range; } public void setRange(Range<Integer> range) { this.range = range; } public Pool<Integer> getPool() { return pool; } public void setPool(Pool<Integer> pool) { this.pool = pool; } protected Integer getDiff() { Integer rtn = range.getMax() - range.getMin(); return rtn; } @Override public boolean isNumber() { return true; } @Override public Integer getNext() { Integer rtn = (Integer) range.getMin() + randomizer.nextInt((Integer) getDiff()); setLast(rtn); return rtn; } }
3e06727653e00c763aeeec2bfc697da7dd12569d
144
java
Java
oop/Animal.java
netodeolino/algorithms
21005a10516885239e252bebae5fe427cbcc4a07
[ "MIT" ]
null
null
null
oop/Animal.java
netodeolino/algorithms
21005a10516885239e252bebae5fe427cbcc4a07
[ "MIT" ]
null
null
null
oop/Animal.java
netodeolino/algorithms
21005a10516885239e252bebae5fe427cbcc4a07
[ "MIT" ]
null
null
null
20.571429
39
0.611111
2,737
public abstract class Animal { public abstract void animalSound(); public void sleep() { System.out.println("Zzz"); } }
3e0672ec76f0c6060d1815e5005f66e0633d4c9a
11,797
java
Java
src/main/java/com/direwolf20/buildinggadgets/blocks/ConstructionBlock.java
Jorch72/DW20-BuildingGadgets
ac3654abc428fd6c8057e020a6a29e9c4b5da90d
[ "MIT" ]
1
2018-10-01T01:08:31.000Z
2018-10-01T01:08:31.000Z
src/main/java/com/direwolf20/buildinggadgets/blocks/ConstructionBlock.java
Jorch72/DW20-BuildingGadgets
ac3654abc428fd6c8057e020a6a29e9c4b5da90d
[ "MIT" ]
null
null
null
src/main/java/com/direwolf20/buildinggadgets/blocks/ConstructionBlock.java
Jorch72/DW20-BuildingGadgets
ac3654abc428fd6c8057e020a6a29e9c4b5da90d
[ "MIT" ]
null
null
null
40.539519
198
0.691701
2,738
package com.direwolf20.buildinggadgets.blocks; import com.direwolf20.buildinggadgets.BuildingGadgets; import com.direwolf20.buildinggadgets.ModItems; import com.direwolf20.buildinggadgets.blocks.Models.ConstructionBakedModel; import com.direwolf20.buildinggadgets.blocks.Models.ConstructionID; import com.direwolf20.buildinggadgets.blocks.Models.ConstructionProperty; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.state.BlockFaceShape; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.renderer.block.statemap.StateMapperBase; import net.minecraft.client.renderer.color.BlockColors; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumBlockRenderType; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.property.ExtendedBlockState; import net.minecraftforge.common.property.IExtendedBlockState; import net.minecraftforge.common.property.IUnlistedProperty; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import javax.annotation.Nullable; import java.util.List; import java.util.Random; public class ConstructionBlock extends Block implements ITileEntityProvider { public static final ConstructionProperty FACADEID = new ConstructionProperty("facadeid"); public static final PropertyBool BRIGHT = PropertyBool.create("bright"); public ConstructionBlock() { super(Material.ROCK); setHardness(2.0f); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); setUnlocalizedName(BuildingGadgets.MODID + ".constructionblock"); // Used for localization (en_US.lang) setRegistryName("constructionblock"); // The unique name (within your mod) that identifies this block setDefaultState(blockState.getBaseState().withProperty(BRIGHT, true)); } @SideOnly(Side.CLIENT) public void initModel() { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, new ModelResourceLocation(getRegistryName(), "inventory")); StateMapperBase ignoreState = new StateMapperBase() { @Override protected ModelResourceLocation getModelResourceLocation(IBlockState iBlockState) { return ConstructionBakedModel.modelFacade; } }; ModelLoader.setCustomStateMapper(this, ignoreState); } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return ModItems.constructionPaste; } @Override public boolean canSilkHarvest(World world, BlockPos pos, IBlockState state, EntityPlayer player) { return false; } @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new ConstructionBlockTileEntity(); } private static ConstructionBlockTileEntity getTE(World world, BlockPos pos) { return (ConstructionBlockTileEntity) world.getTileEntity(pos); } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) { //super.onBlockActivated(world, pos, state, player, hand, side, hitX, hitY, hitZ); /*ConstructionBlockTileEntity te = getTE(world, pos); ItemStack heldItem = player.getHeldItem(hand); IBlockState newState = Block.getBlockFromItem(heldItem.getItem()).getStateFromMeta(heldItem.getMetadata()); if (newState != null && newState != Blocks.AIR.getDefaultState()) { te.setBlockState(newState); te.setActualBlockState(newState); return true; } System.out.println("Failed: " + newState + ":" + te.getBlockState() + ":" + world.isRemote + ":" + te.getActualBlockState());*/ return false; } @Override public IBlockState getExtendedState(IBlockState state, IBlockAccess world, BlockPos pos) { IExtendedBlockState extendedBlockState = (IExtendedBlockState) super.getExtendedState(state, world, pos); IBlockState mimicBlock = getActualMimicBlock(world, pos); if (mimicBlock != null) { ConstructionID mimicID = new ConstructionID(mimicBlock); return extendedBlockState.withProperty(FACADEID, mimicID); } else { return extendedBlockState; } } @Nullable protected IBlockState getActualMimicBlock(IBlockAccess blockAccess, BlockPos pos) { try { TileEntity te = blockAccess.getTileEntity(pos); if (te instanceof ConstructionBlockTileEntity) { return ((ConstructionBlockTileEntity) te).getActualBlockState(); } else { return null; } } catch (Exception var8) { return null; } } @Override protected BlockStateContainer createBlockState() { IProperty<?>[] listedProperties = new IProperty<?>[]{BRIGHT}; IUnlistedProperty<?>[] unlistedProperties = new IUnlistedProperty<?>[]{FACADEID}; return new ExtendedBlockState(this, listedProperties, unlistedProperties); } @Override public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } @Override @SideOnly(Side.CLIENT) public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) { return true; // delegated to FacadeBakedModel#getQuads } @Override @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) { IBlockState mimicBlock = getActualMimicBlock(blockAccess, pos); return mimicBlock == null ? true : mimicBlock.getBlock().shouldSideBeRendered(mimicBlock, blockAccess, pos, side); } @Override public boolean isOpaqueCube(IBlockState p_isFullBlock_1_) { return false; } @Override public boolean isFullCube(IBlockState state) { return false; } @Override public int getLightOpacity(IBlockState state, IBlockAccess world, BlockPos pos) { Boolean bright = state.getValue(ConstructionBlock.BRIGHT); if (bright) { return 0; } return 255; } @Override public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face) { IBlockState mimicBlock = getActualMimicBlock(world, pos); return mimicBlock == null ? true : mimicBlock.getBlock().doesSideBlockRendering(mimicBlock, world, pos, face); } @SideOnly(Side.CLIENT) public void initColorHandler(BlockColors blockColors) { blockColors.registerBlockColorHandler((state, world, pos, tintIndex) -> { IBlockState mimicBlock = getActualMimicBlock(world, pos); return mimicBlock != null ? blockColors.colorMultiplier(mimicBlock, world, pos, tintIndex) : -1; }, this); } public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) { IBlockState mimicBlock = getActualMimicBlock(worldIn, pos); try { return mimicBlock == null ? BlockFaceShape.SOLID : mimicBlock.getBlock().getBlockFaceShape(worldIn, mimicBlock, pos, face); } catch (Exception var8) { return BlockFaceShape.SOLID; } } @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn, boolean isActualState) { IBlockState mimicBlock = getActualMimicBlock(worldIn, pos); if (mimicBlock == null) { super.addCollisionBoxToList(state, worldIn, pos, entityBox, collidingBoxes, entityIn, isActualState); } else { try { mimicBlock.getBlock().addCollisionBoxToList(mimicBlock, worldIn, pos, entityBox, collidingBoxes, entityIn, isActualState); } catch (Exception var8) { super.addCollisionBoxToList(state, worldIn, pos, entityBox, collidingBoxes, entityIn, isActualState); } } } @Override @Nullable public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) { IBlockState mimicBlock = getActualMimicBlock(worldIn, pos); if (mimicBlock == null) { return super.getBoundingBox(blockState, worldIn, pos); } else { try { return mimicBlock.getBlock().getBoundingBox(mimicBlock, worldIn, pos); } catch (Exception var8) { return super.getBoundingBox(blockState, worldIn, pos); } } } @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { IBlockState mimicBlock = getActualMimicBlock(source, pos); if (mimicBlock == null) { return super.getBoundingBox(state, source, pos); } else { try { return mimicBlock.getBlock().getBoundingBox(mimicBlock, source, pos); } catch (Exception var8) { return super.getBoundingBox(state, source, pos); } } } @Override @SideOnly(Side.CLIENT) public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos) { IBlockState mimicBlock = getActualMimicBlock(worldIn, pos); if (mimicBlock == null) { return super.getSelectedBoundingBox(state, worldIn, pos); } else { try { return mimicBlock.getBlock().getSelectedBoundingBox(mimicBlock, worldIn, pos); } catch (Exception var8) { return super.getSelectedBoundingBox(state, worldIn, pos); } } } @Override public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos) { IBlockState mimicBlock = getActualMimicBlock(world, pos); if (mimicBlock == null) { return super.isNormalCube(state, world, pos); } else { try { return mimicBlock.getBlock().isNormalCube(mimicBlock, world, pos); } catch (Exception var8) { return super.isNormalCube(state, world, pos); } } } @Override @SideOnly(Side.CLIENT) public float getAmbientOcclusionLightValue(IBlockState state) { Boolean bright = state.getValue(ConstructionBlock.BRIGHT); if (bright) { return 1f; } return 0.2f; } @Override public IBlockState getStateFromMeta(int meta) { return getDefaultState() .withProperty(BRIGHT, (meta == 0) ? false : true); } @Override public int getMetaFromState(IBlockState state) { return (state.getValue(BRIGHT) ? 1 : 0); } }
3e06735c36f570574658302baf555e91fe9c3495
594
java
Java
chameleon-core/src/main/java/fr/antoineaube/chameleon/core/pictures/exceptions/UnavailableOutputFormatException.java
AntoineAube/Chameleon
0510a9c742b18dc110ac21399d6c1fcdb6565d14
[ "MIT" ]
null
null
null
chameleon-core/src/main/java/fr/antoineaube/chameleon/core/pictures/exceptions/UnavailableOutputFormatException.java
AntoineAube/Chameleon
0510a9c742b18dc110ac21399d6c1fcdb6565d14
[ "MIT" ]
null
null
null
chameleon-core/src/main/java/fr/antoineaube/chameleon/core/pictures/exceptions/UnavailableOutputFormatException.java
AntoineAube/Chameleon
0510a9c742b18dc110ac21399d6c1fcdb6565d14
[ "MIT" ]
null
null
null
28.285714
98
0.747475
2,739
package fr.antoineaube.chameleon.core.pictures.exceptions; public class UnavailableOutputFormatException extends Exception { private final String outputFormat; private final String[] availableOutputFormat; public UnavailableOutputFormatException(String outputFormat, String[] availableOutputFormat) { this.outputFormat = outputFormat; this.availableOutputFormat = availableOutputFormat; } public String getOutputFormat() { return outputFormat; } public String[] getAvailableOutputFormat() { return availableOutputFormat; } }
3e067460bc4c27d056866a9b5851f0adc5aedf49
4,755
java
Java
CarFactory/src/main/java/com/solvd/carfactory/sax/UniversalSAX.java
sergiomarchio/SolvdTACourseProjects
a4eb85b26e3fa35c4365f1a0208d215c089250e3
[ "Apache-2.0" ]
null
null
null
CarFactory/src/main/java/com/solvd/carfactory/sax/UniversalSAX.java
sergiomarchio/SolvdTACourseProjects
a4eb85b26e3fa35c4365f1a0208d215c089250e3
[ "Apache-2.0" ]
null
null
null
CarFactory/src/main/java/com/solvd/carfactory/sax/UniversalSAX.java
sergiomarchio/SolvdTACourseProjects
a4eb85b26e3fa35c4365f1a0208d215c089250e3
[ "Apache-2.0" ]
1
2021-08-04T19:30:55.000Z
2021-08-04T19:30:55.000Z
38.04
105
0.584437
2,740
package com.solvd.carfactory.sax; import com.solvd.carfactory.models.location.City; import com.solvd.carfactory.models.location.Country; import org.apache.log4j.Logger; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.util.*; public class UniversalSAX<T> extends DefaultHandler { private final static Logger LOGGER = Logger.getLogger(UniversalSAX.class); private StringBuilder elementValue = new StringBuilder(); private Map<String, Class<?>> classes; private Stack<Map.Entry<String, Object>> objects; private T returnObject; public T getResult() { return returnObject; } @Override public void startDocument() throws SAXException { LOGGER.debug("Document started"); classes = ClassSet.getClassTags(); objects = new Stack<>(); } @Override public void startElement(String namespaceURI, String localName, String qName, Attributes attr) throws SAXException { elementValue.setLength(0); String debugLine = "<" + qName; // If this element is a complex element, creates object and stores it in the object stack if (classes.containsKey(qName)) { Object object; String id = attr.getValue("id"); try { object = classes.get(qName).getDeclaredConstructor().newInstance(); ObjectCreator.populateObject(object, "id", id); objects.push(new AbstractMap.SimpleEntry<>(qName, object)); } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { LOGGER.error("Error creating object of " + qName); } debugLine += " id = " + id; } else { Object parentObj = objects.peek().getValue(); // if this element is a list, gets the list from parentObject and stores in the obj stack Field listField = Arrays.stream(parentObj.getClass().getDeclaredFields()) .filter(f -> qName.equals(StringUtils.camelToSnake(f.getName())) && Collection.class.isAssignableFrom(f.getType())) .findFirst().orElse(null); if (listField != null) { String getter = "get" + StringUtils.snakeToCamel(qName); try { objects.push(new AbstractMap.SimpleEntry<>(qName, parentObj.getClass().getMethod(getter).invoke(parentObj))); } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { LOGGER.error("Error creating list " + qName + "\n" + e); } } } LOGGER.debug(debugLine + ">"); } @Override public void endElement(String uri, String localName, String qName) throws SAXException { String stringValue = elementValue.toString(); LOGGER.debug(stringValue.replace("\n", "") + "</" + qName + ">"); Object fieldValue; // If the ending element is complex, the value to populate is the object if (objects.peek().getKey().equals(qName)) { fieldValue = objects.pop().getValue(); } else { fieldValue = stringValue; } // If there is a parent object, populate field, else this is the full object to return if (objects.size() > 0) { // If parent object is a list, add element to the list Object parentObj = objects.peek().getValue(); if (Collection.class.isAssignableFrom(parentObj.getClass())){ try { parentObj.getClass().getMethod("add", Object.class).invoke(parentObj, fieldValue); } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } } else { ObjectCreator.populateObject(objects.peek().getValue(), qName, fieldValue); } } else { returnObject = (T) fieldValue; } elementValue.setLength(0); } @Override public void endDocument() throws SAXException { LOGGER.debug("Document ended"); } @Override public void characters(char[] ch, int start, int length) throws SAXException { elementValue.append(ch, start, length); } }
3e0674e6c310641f3972ee44c59e1eb30fa3b6aa
5,233
java
Java
imsdk/src/main/java/com/qunar/im/ui/activity/SearchChatingActivity.java
wittech/imsdk-android
65c021f796bc539f5bce58da9e11ab1fd52e2a50
[ "MIT" ]
66
2018-12-13T03:37:01.000Z
2022-03-15T02:01:28.000Z
imsdk/src/main/java/com/qunar/im/ui/activity/SearchChatingActivity.java
wittech/imsdk-android
65c021f796bc539f5bce58da9e11ab1fd52e2a50
[ "MIT" ]
12
2019-02-20T11:54:24.000Z
2020-04-22T01:19:17.000Z
imsdk/src/main/java/com/qunar/im/ui/activity/SearchChatingActivity.java
wittech/imsdk-android
65c021f796bc539f5bce58da9e11ab1fd52e2a50
[ "MIT" ]
42
2018-12-13T05:33:02.000Z
2021-09-29T03:42:37.000Z
35.842466
119
0.637684
2,741
package com.qunar.im.ui.activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.TextView; import com.facebook.drawee.view.SimpleDraweeView; import com.handmark.pulltorefresh.library.PullToRefreshListView; import com.qunar.im.ui.R; import com.qunar.im.ui.adapter.SearchChatingAdapter; import com.qunar.im.base.module.IMMessage; import com.qunar.im.ui.presenter.ISearchChatingPresenter; import com.qunar.im.ui.presenter.impl.SearchChatingPresenter; import com.qunar.im.ui.presenter.views.ISearchChatingView; import com.qunar.im.ui.util.ProfileUtils; import com.qunar.im.ui.view.MySearchView; import com.qunar.im.ui.view.QtSearchActionBar; import java.util.ArrayList; import java.util.List; /** * Created by xinbo.wang on 15-7-7. */ public class SearchChatingActivity extends IMBaseActivity implements ISearchChatingView { PullToRefreshListView search_result; TextView emptyView; SearchChatingAdapter adapter; QtSearchActionBar actionBar; ISearchChatingPresenter searchChatingPresenter; String jid; @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.atom_ui_activity_search_chating); bindViews(); injectExtras_(); searchChatingPresenter = new SearchChatingPresenter(); searchChatingPresenter.setSearchChatingView(this); initViews(); } private void bindViews() { emptyView = (TextView) findViewById(R.id.emptyView); search_result = (com.handmark.pulltorefresh.library.PullToRefreshListView) findViewById(R.id.search_result); } private void injectExtras_() { Bundle extras_ = getIntent().getExtras(); if (extras_!= null) { if (extras_.containsKey("jid")) { jid = extras_.getString("jid"); } } } void initViews() { actionBar= (QtSearchActionBar) this.findViewById(R.id.my_action_bar); setSupportActionBar(actionBar); getSupportActionBar().setDisplayShowTitleEnabled(false); emptyView.setVisibility(View.GONE); search_result.setVisibility(View.VISIBLE); search_result.setAlpha(0.5f); search_result.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Object obj = parent.getItemAtPosition(position); if(obj!=null) { IMMessage message = (IMMessage) obj; Intent intent = new Intent(SearchChatingActivity.this,LocalChatRecordActivity.class); intent.putExtra("jid",jid); intent.putExtra("selectedMsgTime",message.getTime().getTime()); startActivity(intent); finish(); } } }); actionBar.getSearchView().setOnQueryChangeListener(new MySearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String query) { searchChatingPresenter.doSearchChating(); return true; } @Override public boolean onQueryTextChange(String newText) { searchChatingPresenter.doSearchChating(); return true; } }); actionBar.getLeftLayout().setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { onBackPressed(); } }); actionBar.getSearchView().changeQueryHint("输入搜索内容"); actionBar.getSearchView().getEditFocus(); if (adapter == null) { adapter = new SearchChatingAdapter(this, new ArrayList<IMMessage>(), R.layout.atom_ui_item_search_chating); adapter.setGravatarHandler(new SearchChatingAdapter.GravatarHandler() { @Override public void requestGravatarEvent(final String fullName, final SimpleDraweeView view) { ProfileUtils.displayGravatarByFullname(fullName,view); } }); search_result.getRefreshableView().setAdapter(adapter); } } @Override public String getSearchTerm() { return actionBar.getSearchView().getQuery().toString(); } @Override public void setSearchResult(List<IMMessage> results) { adapter.setDatas(results); adapter.notifyDataSetChanged(); search_result.setVisibility(View.VISIBLE); if (!actionBar.getSearchView().getQuery().toString().isEmpty()) { //搜索栏不为空 search_result.setAlpha(1); if (results == null || results.isEmpty()) { //搜索结果为空 emptyView.setVisibility(View.VISIBLE); search_result.setVisibility(View.GONE); } } else { //搜索栏为空 search_result.setAlpha(0.5f); emptyView.setVisibility(View.GONE); } } @Override public String getSearchFrom() { return jid; } }
3e067558c5cb2e17e8decb56dc7344d91d0332eb
2,430
java
Java
src/java/com/echothree/model/control/item/common/transfer/ItemVolumeTransfer.java
echothreellc/echothree
1744df7654097cc000e5eca32de127b5dc745302
[ "Apache-2.0" ]
1
2020-09-01T08:39:01.000Z
2020-09-01T08:39:01.000Z
src/java/com/echothree/model/control/item/common/transfer/ItemVolumeTransfer.java
echothreellc/echothree
1744df7654097cc000e5eca32de127b5dc745302
[ "Apache-2.0" ]
null
null
null
src/java/com/echothree/model/control/item/common/transfer/ItemVolumeTransfer.java
echothreellc/echothree
1744df7654097cc000e5eca32de127b5dc745302
[ "Apache-2.0" ]
1
2020-05-31T08:34:46.000Z
2020-05-31T08:34:46.000Z
29.634146
122
0.62963
2,742
// -------------------------------------------------------------------------------- // Copyright 2002-2021 Echo Three, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // -------------------------------------------------------------------------------- package com.echothree.model.control.item.common.transfer; import com.echothree.model.control.uom.common.transfer.UnitOfMeasureTypeTransfer; import com.echothree.util.common.transfer.BaseTransfer; public class ItemVolumeTransfer extends BaseTransfer { private ItemTransfer item; private UnitOfMeasureTypeTransfer unitOfMeasureType; private String height; private String width; private String depth; /** Creates a new instance of ItemVolumeTransfer */ public ItemVolumeTransfer(ItemTransfer item, UnitOfMeasureTypeTransfer unitOfMeasureType, String height, String width, String depth) { this.item = item; this.unitOfMeasureType = unitOfMeasureType; this.height = height; this.width = width; this.depth = depth; } public ItemTransfer getItem() { return item; } public void setItem(ItemTransfer item) { this.item = item; } public UnitOfMeasureTypeTransfer getUnitOfMeasureType() { return unitOfMeasureType; } public void setUnitOfMeasureType(UnitOfMeasureTypeTransfer unitOfMeasureType) { this.unitOfMeasureType = unitOfMeasureType; } public String getHeight() { return height; } public void setHeight(String height) { this.height = height; } public String getWidth() { return width; } public void setWidth(String width) { this.width = width; } public String getDepth() { return depth; } public void setDepth(String depth) { this.depth = depth; } }
3e06789c00c2fa81ddf55bdad87d651685da53ad
5,180
java
Java
junx-sample/src/main/java/io/github/junxworks/junx/test/stat/prioritywindow/StatFunctionTest.java
junxworks/junx
12d95af1ec9946658c6e349c65559e5faf18a0a9
[ "Apache-2.0" ]
5
2018-07-13T08:56:34.000Z
2021-03-16T14:12:18.000Z
junx-sample/src/main/java/io/github/junxworks/junx/test/stat/prioritywindow/StatFunctionTest.java
junxworks/junx
12d95af1ec9946658c6e349c65559e5faf18a0a9
[ "Apache-2.0" ]
2
2020-09-19T05:59:37.000Z
2021-09-25T08:04:27.000Z
junx-sample/src/main/java/io/github/junxworks/junx/test/stat/prioritywindow/StatFunctionTest.java
junxworks/junx
12d95af1ec9946658c6e349c65559e5faf18a0a9
[ "Apache-2.0" ]
6
2018-09-29T08:46:18.000Z
2021-08-25T15:13:39.000Z
39.242424
89
0.67278
2,743
/* *************************************************************************************** * * @Title: StatFunctionTest.java * @Package io.github.junxworks.junx.test.stat * @Description: (用一句话描述该文件做什么) * @author: Michael * @date: 2018-7-13 15:20:15 * @version V1.0 * @Copyright: 2018 JunxWorks. All rights reserved. * * ---------------------------------------------------------------------------------- * 文件修改记录 * 文件版本: 修改人: 修改原因: *************************************************************************************** */ package io.github.junxworks.junx.test.stat.prioritywindow; import org.junit.Test; import io.github.junxworks.junx.stat.Stat; import io.github.junxworks.junx.stat.StatContext; import io.github.junxworks.junx.stat.StatDefinition; import io.github.junxworks.junx.stat.datawindow.DataBundle; import io.github.junxworks.junx.stat.datawindow.prioritywindow.Priorities; import io.github.junxworks.junx.stat.function.FuncDef; /** * 函数单元测试 * * @ClassName: StatFunctionTest * @author: Administrator * @date: 2017-11-22 20:15:27 * @since: v5.0 */ public class StatFunctionTest extends StatTest { @Test public void fifo() throws Exception { StatDefinition statDef = createStatModel(FuncDef.SUM, 3); statDef.setDataWindowPriorityType(Priorities.FIFO.toString()); Stat so = Stat.create(statDef); long timestamp = System.currentTimeMillis(); so.compose(new DataBundle(timestamp, 0.5f)); so.compose(new DataBundle(timestamp + 200000, 1)); so.compose(new DataBundle(timestamp + 300000, 2)); so.compose(new DataBundle(timestamp + 400000, 3)); so.compose(new DataBundle(timestamp + 500000, 4)); so.compose(new DataBundle(timestamp + 600000, 6)); StatContext ctx = new StatContext(); System.out.println(so.getValue(ctx)); } @Test public void filo() throws Exception { StatDefinition statDef = createStatModel(FuncDef.SUM, 3); statDef.setDataWindowPriorityType(Priorities.FILO.toString()); Stat so = Stat.create(statDef); long timestamp = System.currentTimeMillis(); so.compose(new DataBundle(timestamp, 0.5f)); so.compose(new DataBundle(timestamp + 200000, 1)); so.compose(new DataBundle(timestamp + 300000, 2)); so.compose(new DataBundle(timestamp + 400000, 3)); so.compose(new DataBundle(timestamp + 500000, 4)); so.compose(new DataBundle(timestamp + 600000, 6)); StatContext ctx = new StatContext(); System.out.println(so.getValue(ctx)); } @Test public void bigger() throws Exception { StatDefinition statDef = createStatModel(FuncDef.SUM, 5); statDef.setDataWindowPriorityType(Priorities.bigger.toString()); Stat so = Stat.create(statDef); long timestamp = System.currentTimeMillis(); so.compose(new DataBundle(timestamp, 0.5f)); so.compose(new DataBundle(timestamp + 200000, 1)); so.compose(new DataBundle(timestamp + 200000, 5)); so.compose(new DataBundle(timestamp + 200000, 2)); so.compose(new DataBundle(timestamp + 200000, 3)); so.compose(new DataBundle(timestamp + 200000, 4)); so.compose(new DataBundle(timestamp + 200000, 5)); so.compose(new DataBundle(timestamp + 300000, 6)); StatContext ctx = new StatContext(); System.out.println(so.getValue(ctx)); } @Test public void smaller() throws Exception { StatDefinition statDef = createStatModel(FuncDef.SUM, 6); statDef.setDataWindowPriorityType(Priorities.smaller.toString()); Stat so = Stat.create(statDef); long timestamp = System.currentTimeMillis(); so.compose(new DataBundle(timestamp, 0.5f)); so.compose(new DataBundle(timestamp + 200000, 1)); so.compose(new DataBundle(timestamp + 200000, 5)); so.compose(new DataBundle(timestamp + 200000, 2)); so.compose(new DataBundle(timestamp + 200000, 3)); so.compose(new DataBundle(timestamp + 200000, 4)); so.compose(new DataBundle(timestamp + 200000, 5)); so.compose(new DataBundle(timestamp + 300000, 6)); StatContext ctx = new StatContext(); System.out.println(so.getValue(ctx)); } @Test public void seriTest() throws Exception { StatDefinition statDef = createStatModel(FuncDef.SUM, 6); statDef.setDataWindowPriorityType(Priorities.smaller.toString()); Stat so = Stat.create(statDef); long timestamp = System.currentTimeMillis(); so.compose(new DataBundle(timestamp, 0.5f)); so.compose(new DataBundle(timestamp + 200000, 1)); so.compose(new DataBundle(timestamp + 200000, 5)); so.compose(new DataBundle(timestamp + 200000, 2)); so.compose(new DataBundle(timestamp + 200000, 3)); so.compose(new DataBundle(timestamp + 200000, 4)); so.compose(new DataBundle(timestamp + 200000, 5)); so.compose(new DataBundle(timestamp + 300000, 6)); StatContext ctx = new StatContext(); System.out.println(so.getValue(ctx)); byte[] data = so.toBytes(); System.out.println(data.length); StatDefinition statDef2 = createStatModel(FuncDef.SUM, 6); statDef2.setDataWindowPriorityType(Priorities.smaller.toString()); Stat so2 = Stat.create(statDef2); so2.readBytes(data); System.out.println(so2.getValue(ctx)); } }
3e067939827c221dba2db1606eb6f83d404ebe8b
647
java
Java
src/searchInsert/Main.java
youngjeff/javatest
2a966c7b83820043b2385636570f0f2dc9d651f0
[ "Apache-2.0" ]
null
null
null
src/searchInsert/Main.java
youngjeff/javatest
2a966c7b83820043b2385636570f0f2dc9d651f0
[ "Apache-2.0" ]
null
null
null
src/searchInsert/Main.java
youngjeff/javatest
2a966c7b83820043b2385636570f0f2dc9d651f0
[ "Apache-2.0" ]
null
null
null
20.870968
53
0.409583
2,744
package nod.searchInsert; public class Main { public static void main(String[] args) { int[] a = new int[]{1}; Solution sl = new Solution(); System.out.println(sl.searchInsert(a,2)); } } class Solution { public int searchInsert(int[] nums, int target) { int i; for(i=0;i<nums.length;) { if(nums[i] < target) { i++; continue; } else if (nums[i] == target) { return i; } else{ return i; } } return i; } }
3e0679a2c6174b919d28c21933a96c755495546f
1,018
java
Java
Client-Utils/src/main/java/edu/planon/lib/client/common/dto/PnQueryParamDTO.java
planon-community/planon-util-plugins
15a3155ca88baf9f62b028fb38e0be6a94e73f71
[ "MIT" ]
1
2021-01-25T13:02:47.000Z
2021-01-25T13:02:47.000Z
Client-Utils/src/main/java/edu/planon/lib/client/common/dto/PnQueryParamDTO.java
planon-community/planon-util-plugins
15a3155ca88baf9f62b028fb38e0be6a94e73f71
[ "MIT" ]
null
null
null
Client-Utils/src/main/java/edu/planon/lib/client/common/dto/PnQueryParamDTO.java
planon-community/planon-util-plugins
15a3155ca88baf9f62b028fb38e0be6a94e73f71
[ "MIT" ]
null
null
null
23.674419
93
0.751473
2,745
package edu.planon.lib.client.common.dto; import java.io.Serializable; import org.apache.wicket.extensions.markup.html.repeater.util.SortParam; public class PnQueryParamDTO implements Serializable { private static final long serialVersionUID = 1L; private final long page; private final long pageSize; private final SortParam<String> sortParam; public PnQueryParamDTO(long page, long pageSize, SortParam<String> sortParam) { this.page = page; this.pageSize = pageSize; this.sortParam = sortParam; } public PnQueryParamDTO(long page, long pageSize, String sortProperty, boolean isAscending) { this(page, pageSize, new SortParam<String>(sortProperty, isAscending)); } public long getPage() { return this.page; } public long getPageSize() { return this.pageSize; } public SortParam<String> getSort() { return this.sortParam; } public String getProperty() { return this.sortParam.getProperty(); } public boolean isAscending() { return this.sortParam.isAscending(); } }
3e067becbb3f8deed52f10ccf3fd03788c769fa7
18,763
java
Java
rocketmq-store/src/main/java/com/alibaba/rocketmq/store/MapedFileQueue.java
liudantop/mqstudy
ebaba87a1bfe000e91ee1cfa11ac04ec63788cc4
[ "Apache-2.0" ]
11
2017-10-11T14:55:37.000Z
2021-01-27T14:08:02.000Z
rocketmq-store/src/main/java/com/alibaba/rocketmq/store/MapedFileQueue.java
liudantop/mqstudy
ebaba87a1bfe000e91ee1cfa11ac04ec63788cc4
[ "Apache-2.0" ]
1
2019-08-21T12:35:28.000Z
2019-08-21T12:35:28.000Z
rocketmq-store/src/main/java/com/alibaba/rocketmq/store/MapedFileQueue.java
liudantop/mqstudy
ebaba87a1bfe000e91ee1cfa11ac04ec63788cc4
[ "Apache-2.0" ]
40
2017-05-24T02:35:36.000Z
2021-06-10T14:47:30.000Z
29.933014
161
0.521206
2,746
/** * Copyright (C) 2010-2013 Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.rocketmq.store; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.alibaba.rocketmq.common.UtilAll; import com.alibaba.rocketmq.common.constant.LoggerName; /** * 存储队列,数据定时删除,无限增长<br> * 队列是由多个文件组成 * * @author shijia.wxr<[email protected]> * @since 2013-7-21 */ public class MapedFileQueue { private static final Logger log = LoggerFactory.getLogger(LoggerName.StoreLoggerName); private static final Logger logError = LoggerFactory.getLogger(LoggerName.StoreErrorLoggerName); // 每次触发删除文件,最多删除多少个文件 private static final int DeleteFilesBatchMax = 10; // 文件存储位置 private final String storePath; // 每个文件的大小 private final int mapedFileSize; // 各个文件 private final List<MapedFile> mapedFiles = new ArrayList<MapedFile>(); // 读写锁(针对mapedFiles) private final ReadWriteLock readWriteLock = new ReentrantReadWriteLock(); // 预分配MapedFile对象服务 private final AllocateMapedFileService allocateMapedFileService; // 刷盘刷到哪里 private long committedWhere = 0; // 最后一条消息存储时间 private volatile long storeTimestamp = 0; public MapedFileQueue(final String storePath, int mapedFileSize, AllocateMapedFileService allocateMapedFileService) { this.storePath = storePath; this.mapedFileSize = mapedFileSize; this.allocateMapedFileService = allocateMapedFileService; } public MapedFile getMapedFileByTime(final long timestamp) { Object[] mfs = this.copyMapedFiles(0); if (null == mfs) return null; for (int i = 0; i < mfs.length; i++) { MapedFile mapedFile = (MapedFile) mfs[i]; if (mapedFile.getLastModifiedTimestamp() >= timestamp) { return mapedFile; } } return (MapedFile) mfs[mfs.length - 1]; } private Object[] copyMapedFiles(final int reservedMapedFiles) { Object[] mfs = null; try { this.readWriteLock.readLock().lock(); if (this.mapedFiles.size() <= reservedMapedFiles) { return null; } mfs = this.mapedFiles.toArray(); } catch (Exception e) { e.printStackTrace(); } finally { this.readWriteLock.readLock().unlock(); } return mfs; } /** * recover时调用,不需要加锁 */ public void truncateDirtyFiles(long offset) { List<MapedFile> willRemoveFiles = new ArrayList<MapedFile>(); for (MapedFile file : this.mapedFiles) { long fileTailOffset = file.getFileFromOffset() + this.mapedFileSize; if (fileTailOffset > offset) { if (offset >= file.getFileFromOffset()) { file.setWrotePostion((int) (offset % this.mapedFileSize)); file.setCommittedPosition((int) (offset % this.mapedFileSize)); } else { // 将文件删除掉 file.destroy(1000); willRemoveFiles.add(file); } } } this.deleteExpiredFile(willRemoveFiles); } /** * 删除文件只能从头开始删 */ private void deleteExpiredFile(List<MapedFile> files) { if (!files.isEmpty()) { try { this.readWriteLock.writeLock().lock(); for (MapedFile file : files) { if (!this.mapedFiles.remove(file)) { log.error("deleteExpiredFile remove failed."); break; } } } catch (Exception e) { log.error("deleteExpiredFile has exception.", e); } finally { this.readWriteLock.writeLock().unlock(); } } } public boolean load() { File dir = new File(this.storePath); File[] files = dir.listFiles(); if (files != null) { // ascending order Arrays.sort(files); for (File file : files) { // 校验文件大小是否匹配 if (file.length() != this.mapedFileSize) { log.warn(file + "\t" + file.length() + " length not matched message store config value, ignore it"); return true; } // 恢复队列 try { MapedFile mapedFile = new MapedFile(file.getPath(), mapedFileSize); mapedFile.setWrotePostion(this.mapedFileSize); mapedFile.setCommittedPosition(this.mapedFileSize); this.mapedFiles.add(mapedFile); log.info("load " + file.getPath() + " OK"); } catch (IOException e) { log.error("load file " + file + " error", e); return false; } } } return true; } /** * 刷盘进度落后了多少 */ public long howMuchFallBehind() { if (this.mapedFiles.isEmpty()) return 0; long committed = this.committedWhere; if (committed != 0) { MapedFile mapedFile = this.getLastMapedFile(); if (mapedFile != null) { return (mapedFile.getFileFromOffset() + mapedFile.getWrotePostion()) - committed; } } return 0; } public MapedFile getLastMapedFile() { return this.getLastMapedFile(0); } /** * 获取最后一个MapedFile对象,如果一个都没有,则新创建一个,如果最后一个写满了,则新创建一个 * * @param startOffset * 如果创建新的文件,起始offset * @return */ public MapedFile getLastMapedFile(final long startOffset) { long createOffset = -1; MapedFile mapedFileLast = null; { this.readWriteLock.readLock().lock(); if (this.mapedFiles.isEmpty()) { createOffset = startOffset - (startOffset % this.mapedFileSize); } else { mapedFileLast = this.mapedFiles.get(this.mapedFiles.size() - 1); } this.readWriteLock.readLock().unlock(); } if (mapedFileLast != null && mapedFileLast.isFull()) { createOffset = mapedFileLast.getFileFromOffset() + this.mapedFileSize; } if (createOffset != -1) { String nextFilePath = this.storePath + File.separator + UtilAll.offset2FileName(createOffset); String nextNextFilePath = this.storePath + File.separator + UtilAll.offset2FileName(createOffset + this.mapedFileSize); MapedFile mapedFile = null; if (this.allocateMapedFileService != null) { mapedFile = this.allocateMapedFileService.putRequestAndReturnMapedFile(nextFilePath, nextNextFilePath, this.mapedFileSize); } else { try { mapedFile = new MapedFile(nextFilePath, this.mapedFileSize); } catch (IOException e) { log.error("create mapedfile exception", e); } } if (mapedFile != null) { this.readWriteLock.writeLock().lock(); if (this.mapedFiles.isEmpty()) { mapedFile.setFirstCreateInQueue(true); } this.mapedFiles.add(mapedFile); this.readWriteLock.writeLock().unlock(); } return mapedFile; } return mapedFileLast; } /** * 获取队列的最小Offset,如果队列为空,则返回-1 */ public long getMinOffset() { try { this.readWriteLock.readLock().lock(); if (!this.mapedFiles.isEmpty()) { return this.mapedFiles.get(0).getFileFromOffset(); } } catch (Exception e) { log.error("getMinOffset has exception.", e); } finally { this.readWriteLock.readLock().unlock(); } return -1; } public long getMaxOffset() { try { this.readWriteLock.readLock().lock(); if (!this.mapedFiles.isEmpty()) { int lastIndex = this.mapedFiles.size() - 1; MapedFile mapedFile = this.mapedFiles.get(lastIndex); return mapedFile.getFileFromOffset() + mapedFile.getWrotePostion(); } } catch (Exception e) { log.error("getMinOffset has exception.", e); } finally { this.readWriteLock.readLock().unlock(); } return 0; } /** * 恢复时调用 */ public void deleteLastMapedFile() { if (!this.mapedFiles.isEmpty()) { int lastIndex = this.mapedFiles.size() - 1; MapedFile mapedFile = this.mapedFiles.get(lastIndex); mapedFile.destroy(1000); this.mapedFiles.remove(mapedFile); log.info("on recover, destroy a logic maped file " + mapedFile.getFileName()); } } /** * 根据文件过期时间来删除物理队列文件 */ public int deleteExpiredFileByTime(// final long expiredTime, // final int deleteFilesInterval, // final long intervalForcibly,// final boolean cleanImmediately// ) { Object[] mfs = this.copyMapedFiles(0); if (null == mfs) return 0; // 最后一个文件处于写状态,不能删除 int mfsLength = mfs.length - 1; int deleteCount = 0; List<MapedFile> files = new ArrayList<MapedFile>(); if (null != mfs) { for (int i = 0; i < mfsLength; i++) { MapedFile mapedFile = (MapedFile) mfs[i]; long liveMaxTimestamp = mapedFile.getLastModifiedTimestamp() + expiredTime; if (System.currentTimeMillis() >= liveMaxTimestamp// || cleanImmediately) { if (mapedFile.destroy(intervalForcibly)) { files.add(mapedFile); deleteCount++; if (files.size() >= DeleteFilesBatchMax) { break; } if (deleteFilesInterval > 0 && (i + 1) < mfsLength) { try { Thread.sleep(deleteFilesInterval); } catch (InterruptedException e) { } } } else { break; } } } } deleteExpiredFile(files); return deleteCount; } /** * 根据物理队列最小Offset来删除逻辑队列 * * @param offset * 物理队列最小offset */ public int deleteExpiredFileByOffset(long offset, int unitSize) { Object[] mfs = this.copyMapedFiles(0); List<MapedFile> files = new ArrayList<MapedFile>(); int deleteCount = 0; if (null != mfs) { // 最后一个文件处于写状态,不能删除 int mfsLength = mfs.length - 1; // 这里遍历范围 0 ... last - 1 for (int i = 0; i < mfsLength; i++) { boolean destroy = true; MapedFile mapedFile = (MapedFile) mfs[i]; SelectMapedBufferResult result = mapedFile.selectMapedBuffer(this.mapedFileSize - unitSize); if (result != null) { long maxOffsetInLogicQueue = result.getByteBuffer().getLong(); result.release(); // 当前文件是否可以删除 destroy = (maxOffsetInLogicQueue < offset); if (destroy) { log.info("physic min offset " + offset + ", logics in current mapedfile max offset " + maxOffsetInLogicQueue + ", delete it"); } } else { log.warn("this being not excuted forever."); break; } if (destroy && mapedFile.destroy(1000 * 60)) { files.add(mapedFile); deleteCount++; } else { break; } } } deleteExpiredFile(files); return deleteCount; } /** * 返回值表示是否全部刷盘完成 * * @return */ public boolean commit(final int flushLeastPages) { boolean result = true; MapedFile mapedFile = this.findMapedFileByOffset(this.committedWhere, true); if (mapedFile != null) { long tmpTimeStamp = mapedFile.getStoreTimestamp(); int offset = mapedFile.commit(flushLeastPages); long where = mapedFile.getFileFromOffset() + offset; result = (where == this.committedWhere); this.committedWhere = where; if (0 == flushLeastPages) { this.storeTimestamp = tmpTimeStamp; } } return result; } public MapedFile findMapedFileByOffset(final long offset, final boolean returnFirstOnNotFound) { try { this.readWriteLock.readLock().lock(); MapedFile mapedFile = this.getFirstMapedFile(); if (mapedFile != null) { int index = (int) ((offset / this.mapedFileSize) - (mapedFile.getFileFromOffset() / this.mapedFileSize)); if (index < 0 || index >= this.mapedFiles.size()) { logError .warn( "findMapedFileByOffset offset not matched, request Offset: {}, index: {}, mapedFileSize: {}, mapedFiles count: {}, StackTrace: {}",// offset,// index,// this.mapedFileSize,// this.mapedFiles.size(),// UtilAll.currentStackTrace()); } try { return this.mapedFiles.get(index); } catch (Exception e) { if (returnFirstOnNotFound) { return mapedFile; } } } } catch (Exception e) { log.error("findMapedFileByOffset Exception", e); } finally { this.readWriteLock.readLock().unlock(); } return null; } private MapedFile getFirstMapedFile() { if (this.mapedFiles.isEmpty()) { return null; } return this.mapedFiles.get(0); } public MapedFile getLastMapedFile2() { if (this.mapedFiles.isEmpty()) { return null; } return this.mapedFiles.get(this.mapedFiles.size() - 1); } public MapedFile findMapedFileByOffset(final long offset) { return findMapedFileByOffset(offset, false); } public long getMapedMemorySize() { long size = 0; Object[] mfs = this.copyMapedFiles(0); if (mfs != null) { for (Object mf : mfs) { if (((ReferenceResource) mf).isAvailable()) { size += this.mapedFileSize; } } } return size; } public boolean retryDeleteFirstFile(final long intervalForcibly) { MapedFile mapedFile = this.getFirstMapedFileOnLock(); if (mapedFile != null) { if (!mapedFile.isAvailable()) { log.warn("the mapedfile was destroyed once, but still alive, " + mapedFile.getFileName()); boolean result = mapedFile.destroy(intervalForcibly); if (result) { log.warn("the mapedfile redelete OK, " + mapedFile.getFileName()); List<MapedFile> tmps = new ArrayList<MapedFile>(); tmps.add(mapedFile); this.deleteExpiredFile(tmps); } else { log.warn("the mapedfile redelete Failed, " + mapedFile.getFileName()); } return result; } } return false; } public MapedFile getFirstMapedFileOnLock() { try { this.readWriteLock.readLock().lock(); return this.getFirstMapedFile(); } finally { this.readWriteLock.readLock().unlock(); } } /** * 关闭队列,队列数据还在,但是不能访问 */ public void shutdown(final long intervalForcibly) { this.readWriteLock.readLock().lock(); for (MapedFile mf : this.mapedFiles) { mf.shutdown(intervalForcibly); } this.readWriteLock.readLock().unlock(); } /** * 销毁队列,队列数据被删除,此函数有可能不成功 */ public void destroy() { this.readWriteLock.writeLock().lock(); for (MapedFile mf : this.mapedFiles) { mf.destroy(1000 * 3); } this.mapedFiles.clear(); this.committedWhere = 0; // delete parent directory File file = new File(storePath); if (file.isDirectory()) { file.delete(); } this.readWriteLock.writeLock().unlock(); } public long getCommittedWhere() { return committedWhere; } public void setCommittedWhere(long committedWhere) { this.committedWhere = committedWhere; } public long getStoreTimestamp() { return storeTimestamp; } public List<MapedFile> getMapedFiles() { return mapedFiles; } public int getMapedFileSize() { return mapedFileSize; } }
3e067bfccc634656b39ea511fa8fdbd689839592
2,675
java
Java
work/Catalina/localhost/_/org/apache/jsp/Welcome_jsp.java
buptn/CCNxTomcat
f029a531af1eb462553cb56b495ed0721d777eac
[ "Apache-2.0" ]
null
null
null
work/Catalina/localhost/_/org/apache/jsp/Welcome_jsp.java
buptn/CCNxTomcat
f029a531af1eb462553cb56b495ed0721d777eac
[ "Apache-2.0" ]
null
null
null
work/Catalina/localhost/_/org/apache/jsp/Welcome_jsp.java
buptn/CCNxTomcat
f029a531af1eb462553cb56b495ed0721d777eac
[ "Apache-2.0" ]
4
2015-12-12T14:16:08.000Z
2020-10-13T14:17:19.000Z
34.294872
164
0.671776
2,747
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class Welcome_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List _jspx_dependants; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.AnnotationProcessor _jsp_annotationprocessor; public Object getDependants() { return _jspx_dependants; } public void _jspInit() { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName()); } public void _jspDestroy() { } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("<body>\r\n"); out.write(" This is my JSP page. <br>\r\n"); out.write("\r\n"); out.write(" <form action=\"welcome\" method=\"get\">\r\n"); out.write("\r\n"); out.write(" <input type=\"text\" name=\"username\"><br>\r\n"); out.write("\r\n"); out.write(" <input type=\"submit\" value=\"submit\">\r\n"); out.write("\r\n"); out.write(" </form>\r\n"); out.write("\r\n"); out.write("</body> "); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else log(t.getMessage(), t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
3e067d2b3bacca625ff94aa27a8f059ddc8236e8
3,212
java
Java
src/main/java/com/opsmatters/newrelic/commands/synthetics/ListMonitors.java
opsmatters/newrelic-command
153a588cd489aa5696d1ba77d0bdfd51aee22f14
[ "Apache-2.0" ]
2
2018-02-28T11:33:11.000Z
2018-05-23T18:58:54.000Z
src/main/java/com/opsmatters/newrelic/commands/synthetics/ListMonitors.java
opsmatters/newrelic-command
153a588cd489aa5696d1ba77d0bdfd51aee22f14
[ "Apache-2.0" ]
null
null
null
src/main/java/com/opsmatters/newrelic/commands/synthetics/ListMonitors.java
opsmatters/newrelic-command
153a588cd489aa5696d1ba77d0bdfd51aee22f14
[ "Apache-2.0" ]
null
null
null
29.2
126
0.634807
2,748
/* * Copyright 2018 Gerald Curley * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.opsmatters.newrelic.commands.synthetics; import java.util.Collection; import java.util.logging.Logger; import org.apache.commons.cli.CommandLine; import com.google.common.base.Optional; import com.opsmatters.newrelic.api.NewRelicSyntheticsApi; import com.opsmatters.newrelic.api.model.synthetics.Monitor; import com.opsmatters.newrelic.commands.Opt; import com.opsmatters.newrelic.commands.BaseCommand; /** * Implements the New Relic command line option to list Synthetics monitors. * * @author Gerald Curley (opsmatters) */ public class ListMonitors extends BaseCommand { private static final Logger logger = Logger.getLogger(ListMonitors.class.getName()); private static final String NAME = "list_monitors"; private String name; private String type; /** * Default constructor. */ public ListMonitors() { options(); } /** * Returns the name of the command. * @return The name of the command */ public String getName() { return NAME; } /** * Sets the options for the command. */ @Override protected void options() { super.options(); addOption(Opt.NAME, "The name of the monitors"); addOption(Opt.TYPE, "The type of the monitors, either \"SIMPLE\", \"BROWSER\", \"SCRIPT_BROWSER\" or \"SCRIPT_API\""); } /** * Parse the command-specific options. * @param cli The parsed command line */ protected void parse(CommandLine cli) { // Name option if(hasOption(cli, Opt.NAME, false)) { name = getOptionValue(cli, Opt.NAME); logOptionValue(Opt.NAME, name); } // Type option if(hasOption(cli, Opt.TYPE, false)) { type = getOptionValue(cli, Opt.TYPE); // Check the value is valid if(Monitor.MonitorType.contains(type)) logOptionValue(Opt.TYPE, type); else logOptionInvalid(Opt.TYPE); } } /** * List the monitors. */ protected void execute() { NewRelicSyntheticsApi syntheticsApi = getSyntheticsApi(); if(verbose()) logger.info("Getting monitors: "+name+(type != null ? " ("+type+")":"")); Collection<Monitor> monitors = syntheticsApi.monitors().list(name, type, 0, 100); if(verbose()) logger.info("Found "+monitors.size()+" monitors"); for(Monitor monitor : monitors) logger.info(monitor.getId()+" - "+monitor.getName()+" ("+monitor.getType()+")"); } }
3e067d70beb13d5aedd17f72a872627b3acdb0bd
1,028
java
Java
05. Interfaces and Abstraction/src/militaryElite/classImpl/CommandoImpl.java
bborisov11/Java-OOP-Basics
5e671c013e5a018f081dd9c0cca518177f2c2250
[ "MIT" ]
null
null
null
05. Interfaces and Abstraction/src/militaryElite/classImpl/CommandoImpl.java
bborisov11/Java-OOP-Basics
5e671c013e5a018f081dd9c0cca518177f2c2250
[ "MIT" ]
null
null
null
05. Interfaces and Abstraction/src/militaryElite/classImpl/CommandoImpl.java
bborisov11/Java-OOP-Basics
5e671c013e5a018f081dd9c0cca518177f2c2250
[ "MIT" ]
null
null
null
30.235294
104
0.682879
2,749
package militaryElite.classImpl; import militaryElite.interfaces.Commando; import militaryElite.interfaces.Mission; import java.util.HashSet; import java.util.LinkedHashSet; public class CommandoImpl extends BaseSpecialisedSoldier implements Commando { private HashSet<Mission> missions; public CommandoImpl(int id, String firstName, String lastName, double salary, String currentCorps) { super(id, firstName, lastName, salary, currentCorps); this.missions = new LinkedHashSet<>(); } public HashSet<Mission> getMissions() { return missions; } @Override public String toString() { StringBuilder commando = new StringBuilder(); commando.append(super.toString()).append(System.lineSeparator()).append("Missions:") .append(this.missions.size() != 0 ? '\n' : ""); for (Mission mission : missions) { commando.append(mission.toString()).append(System.lineSeparator()); } return commando.toString(); } }
3e067e40d36284b4609dfd77075883a59992019c
5,296
java
Java
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/VarLenBinaryReader.java
jiang-wu/drill
c6c5d27d91468a29656bee2acba55d3321978aab
[ "Apache-2.0" ]
1
2018-05-08T13:48:07.000Z
2018-05-08T13:48:07.000Z
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/VarLenBinaryReader.java
jiang-wu/drill
c6c5d27d91468a29656bee2acba55d3321978aab
[ "Apache-2.0" ]
2
2018-02-02T22:45:53.000Z
2018-09-05T21:53:26.000Z
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/VarLenBinaryReader.java
jiang-wu/drill
c6c5d27d91468a29656bee2acba55d3321978aab
[ "Apache-2.0" ]
1
2016-03-23T00:21:58.000Z
2016-03-23T00:21:58.000Z
35.306667
117
0.720544
2,750
/* * 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.drill.exec.store.parquet.columnreaders; import com.google.common.base.Stopwatch; import com.google.common.collect.Lists; import org.apache.drill.common.exceptions.DrillRuntimeException; import org.apache.drill.exec.vector.ValueVector; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; public class VarLenBinaryReader { ParquetRecordReader parentReader; final List<VarLengthColumn<? extends ValueVector>> columns; final boolean useAsyncTasks; private final long targetRecordCount; public VarLenBinaryReader(ParquetRecordReader parentReader, List<VarLengthColumn<? extends ValueVector>> columns) { this.parentReader = parentReader; this.columns = columns; useAsyncTasks = parentReader.useAsyncColReader; // Can't read any more records than fixed width fields will fit. // Note: this calculation is very likely wrong; it is a simplified // version of earlier code, but probably needs even more attention. int totalFixedFieldWidth = parentReader.getBitWidthAllFixedFields() / 8; if (totalFixedFieldWidth == 0) { targetRecordCount = 0; } else { targetRecordCount = parentReader.getBatchSize() / totalFixedFieldWidth; } } /** * Reads as many variable length values as possible. * * @param recordsToReadInThisPass - the number of records recommended for reading form the reader * @param firstColumnStatus - a reference to the first column status in the Parquet file to grab metatdata from * @return - the number of fixed length fields that will fit in the batch * @throws IOException */ public long readFields(long recordsToReadInThisPass) throws IOException { // write the first 0 offset for (VarLengthColumn<?> columnReader : columns) { columnReader.reset(); } Stopwatch timer = Stopwatch.createStarted(); // Can't read any more records than fixed width fields will fit. if (targetRecordCount > 0) { recordsToReadInThisPass = Math.min(recordsToReadInThisPass, targetRecordCount); } long recordsReadInCurrentPass = determineSizesSerial(recordsToReadInThisPass); if(useAsyncTasks) { readRecordsParallel(recordsReadInCurrentPass); } else { readRecordsSerial(recordsReadInCurrentPass); } parentReader.parquetReaderStats.timeVarColumnRead.addAndGet(timer.elapsed(TimeUnit.NANOSECONDS)); return recordsReadInCurrentPass; } private long determineSizesSerial(long recordsToReadInThisPass) throws IOException { int recordsReadInCurrentPass = 0; top: do { for (VarLengthColumn<?> columnReader : columns) { // Return status is "done reading", meaning stop if true. if (columnReader.determineSize(recordsReadInCurrentPass)) { break top; } } for (VarLengthColumn<?> columnReader : columns) { columnReader.updateReadyToReadPosition(); columnReader.currDefLevel = -1; } recordsReadInCurrentPass++; } while (recordsReadInCurrentPass < recordsToReadInThisPass); return recordsReadInCurrentPass; } private void readRecordsSerial(long recordsReadInCurrentPass) { for (VarLengthColumn<?> columnReader : columns) { columnReader.readRecords(columnReader.pageReader.valuesReadyToRead); } for (VarLengthColumn<?> columnReader : columns) { columnReader.valueVec.getMutator().setValueCount((int)recordsReadInCurrentPass); } } private void readRecordsParallel(long recordsReadInCurrentPass){ ArrayList<Future<Integer>> futures = Lists.newArrayList(); for (VarLengthColumn<?> columnReader : columns) { Future<Integer> f = columnReader.readRecordsAsync(columnReader.pageReader.valuesReadyToRead); if (f != null) { futures.add(f); } } Exception exception = null; for(Future<Integer> f: futures){ if(exception != null) { f.cancel(true); } else { try { f.get(); } catch (Exception e) { f.cancel(true); exception = e; } } } for (VarLengthColumn<?> columnReader : columns) { columnReader.valueVec.getMutator().setValueCount((int)recordsReadInCurrentPass); } } protected void handleAndRaise(String s, Exception e) { String message = "Error in parquet record reader.\nMessage: " + s; throw new DrillRuntimeException(message, e); } }
3e067e58c5dbc529d8e7262c592e75c05dc9d6ab
8,572
java
Java
src/main/java/nz/govt/natlib/ndha/common/FileUtils.java
WebCuratorTool/webcurator-submit-to-rosetta
94e46c6fc420e3490b899670fa85303a7ee2ae13
[ "Apache-2.0" ]
29
2015-11-09T10:59:40.000Z
2020-02-17T09:32:50.000Z
src/main/java/nz/govt/natlib/ndha/common/FileUtils.java
WebCuratorTool/webcurator-submit-to-rosetta
94e46c6fc420e3490b899670fa85303a7ee2ae13
[ "Apache-2.0" ]
106
2015-11-17T02:12:04.000Z
2020-11-22T20:52:49.000Z
src/main/java/nz/govt/natlib/ndha/common/FileUtils.java
WebCuratorTool/webcurator-submit-to-rosetta
94e46c6fc420e3490b899670fa85303a7ee2ae13
[ "Apache-2.0" ]
18
2015-11-09T10:59:43.000Z
2020-11-10T13:20:25.000Z
28.765101
130
0.597643
2,751
/** * nz.govt.natlib.ndha.common.Common - Software License * * Copyright 2007/2008 National Library of New Zealand. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * or the file "LICENSE.txt" included with the software. * * 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. * * FileUtils.java * $Rev$ * PlayerM * 26/11/2007 * */ package nz.govt.natlib.ndha.common; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; /** * Some simple file utilities that aren't supplied natively in Java * renameFile * * @author PlayerM */ public class FileUtils { private final static Log log = LogFactory.getLog(FileUtils.class); /** * Obtains the file name from the fileIn parameter * Copies the file to the destination directory using the same file name * * @param fileFrom * @param destinationDirectory * @throws IOException */ public static void copyFileToDirectory(String fileFrom, String destinationDirectory) throws IOException { File inFile = new File(fileFrom); String fileName = inFile.getName(); copyFile(fileFrom, destinationDirectory + "/" + fileName); } /** * Copies a file from one place to another * * @param fileFrom full file name * @param fileTo full file name * @throws IOException */ public static void copyFile(String fileFrom, String fileTo) throws IOException { File in = new File(fileFrom); File out = new File(fileTo); copyFile(in, out); } /** * Name is self explanatory * * @param from * @param to * @throws IOException */ public static void copyFile(File from, File to) throws IOException { FileChannel inChannel = new FileInputStream(from).getChannel(); FileChannel outChannel = new FileOutputStream(to).getChannel(); try { inChannel.transferTo(0, inChannel.size(), outChannel); } catch (IOException e) { throw e; } finally { if (inChannel != null) inChannel.close(); if (outChannel != null) outChannel.close(); } } /** * @param fileFrom The abstract pathname of the file to be renamed * @param fileTo The new abstract pathname for the named file * @return <code>true</code> if and only if the renaming succeeded; * <code>false</code> otherwise * @throws SecurityException * @throws NullPointerException */ public static boolean renameFile(String fileFrom, String fileTo) throws SecurityException, NullPointerException, IOException { File in = new File(fileFrom); File out = new File(fileTo); return renameFile(in, out); } /** * @param from The abstract pathname of the file to be renamed * @param to The new abstract pathname for the named file * @return <code>true</code> if and only if the renaming succeeded; * <code>false</code> otherwise * @throws SecurityException * @throws NullPointerException */ public static boolean renameFile(File from, File to) throws SecurityException, NullPointerException, IOException { log.debug("Renaming file " + from.getAbsolutePath() + " to " + to.getAbsolutePath()); boolean success = from.renameTo(to); if (!success) { //Try copying & deleting it try { log.debug("Failed rename, try copy & delete?"); copyFile(from, to); deleteFileOrDirectoryRecursive(from); success = true; } catch (IOException ex) { throw ex; } } log.debug("Succeeded? " + success + ", from exists? " + from.exists() + ", to exists? " + to.exists()); return success; } /** * Recurse through children deleting all as we go * * @param dir */ public static void deleteFileOrDirectoryRecursive(String dir) { File theDir = new File(dir); if (theDir != null) { deleteFileOrDirectoryRecursive(theDir); } } /** * Recurse through children deleting all as we go * * @param dir */ public static void deleteFileOrDirectoryRecursive(File dir) { if (dir.isDirectory()) { for (File file : dir.listFiles()) { if (file.isDirectory()) { deleteFileOrDirectoryRecursive(file); } else { file.delete(); } } dir.delete(); } else { dir.delete(); } } /** * Recurse through parents making sure they all exist * * @param dir */ public static void ensureDirectoryExists(String dir) { File theDir = new File(dir); if (theDir != null) { ensureDirectoryExists(theDir); } } /** * Recurse through parents making sure they all exist * * @param dir */ public static void ensureDirectoryExists(File dir) { if (!dir.exists()) { File parent = dir.getParentFile(); ensureDirectoryExists(parent); dir.mkdir(); } } /** * Get the file name & suffix from a path * * @param path * @return */ public static String getFileName(String path) { return getFileName(new File(path)); } /** * Get the file name & suffix from a file * * @param file * @return */ public static String getFileName(File file) { return file.getName(); } /** * Get just the file name without a suffix from a path * * @param path * @return */ public static String getFileNameNoSuffix(String path) { return getFileNameNoSuffix(new File(path)); } /** * Get just the file name without a suffix from a file * * @param file * @return */ public static String getFileNameNoSuffix(File file) { String fileName = file.getName(); int dotPos = fileName.lastIndexOf("."); if (dotPos >= 0) { fileName = fileName.substring(0, dotPos); } return fileName; } /** * Get just the suffix of a file from a path * * @param path * @return */ public static String getFileSuffix(String path) { return getFileSuffix(new File(path)); } /** * Get just the suffix of a file from a file * * @param file * @return */ public static String getFileSuffix(File file) { String fileName = file.getName(); int dotPos = fileName.lastIndexOf("."); if (dotPos >= 0) { fileName = fileName.substring(dotPos + 1); } return fileName; } public static void removeFTPDirectory(FTPClient ftpClient, String directoryName) { try { ftpClient.changeWorkingDirectory(directoryName); for (FTPFile file : ftpClient.listFiles()) { if (file.isDirectory()) { FileUtils.removeFTPDirectory(ftpClient, file.getName()); } else { log.debug("Deleting " + file.getName()); ftpClient.deleteFile(file.getName()); } } ftpClient.changeWorkingDirectory(directoryName); ftpClient.changeToParentDirectory(); log.debug("Deleting " + directoryName); ftpClient.removeDirectory(directoryName); } catch (Exception ex) { } } public static String parseValidFileName(String inputText) { String rubbishString = "\\/:*?<>\"|"; String regexp = "[\\" + rubbishString + "]"; String result = inputText.replaceAll(regexp, ""); return result; } }
3e067e68e261d1228ff280b736dbcb5a1247d30e
397
java
Java
gulimall-member/src/main/java/com/gkhy/gulimall/member/dao/UserCollectSubjectDao.java
loongtop/LeoMall
93372e7bdc3b7335f2981102380091949b808027
[ "Apache-2.0" ]
null
null
null
gulimall-member/src/main/java/com/gkhy/gulimall/member/dao/UserCollectSubjectDao.java
loongtop/LeoMall
93372e7bdc3b7335f2981102380091949b808027
[ "Apache-2.0" ]
null
null
null
gulimall-member/src/main/java/com/gkhy/gulimall/member/dao/UserCollectSubjectDao.java
loongtop/LeoMall
93372e7bdc3b7335f2981102380091949b808027
[ "Apache-2.0" ]
1
2021-10-01T13:59:01.000Z
2021-10-01T13:59:01.000Z
22.111111
85
0.778894
2,752
package com.gkhy.gulimall.member.dao; import com.gkhy.gulimall.member.entity.UserCollectSubjectEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 关注活动表 * * @author leo * @email [email protected] * @date 2021-02-06 13:36:58 */ @Mapper public interface UserCollectSubjectDao extends BaseMapper<UserCollectSubjectEntity> { }
3e067f766c6abb0b95a348b548b99422e7827984
13,746
java
Java
typed-preferences/src/test/java/com/episode6/hackit/typed/preferences/TypedPrefsPrimitivesTest.java
episode6/typed
efee80bc91433662515754e6ddf3f14506ee6cac
[ "MIT" ]
null
null
null
typed-preferences/src/test/java/com/episode6/hackit/typed/preferences/TypedPrefsPrimitivesTest.java
episode6/typed
efee80bc91433662515754e6ddf3f14506ee6cac
[ "MIT" ]
null
null
null
typed-preferences/src/test/java/com/episode6/hackit/typed/preferences/TypedPrefsPrimitivesTest.java
episode6/typed
efee80bc91433662515754e6ddf3f14506ee6cac
[ "MIT" ]
null
null
null
23.025126
120
0.678379
2,753
package com.episode6.hackit.typed.preferences; import com.episode6.hackit.mockspresso.Mockspresso; import com.episode6.hackit.typed.testing.Rules; import org.junit.Rule; import org.junit.Test; import org.powermock.core.classloader.annotations.MockPolicy; import static org.fest.assertions.api.Assertions.assertThat; /** * Tests {@link TypedPrefsImpl} usage with Primitives */ @MockPolicy(SharedTestResources.MockPolicy.class) public class TypedPrefsPrimitivesTest { private static final PrefNamespace PREF_NAMESPACE = PrefNamespace.ROOT.extend("testNamespace").extend("subNamespace"); private static final PrefKey<Boolean> BOOL_PREF = PREF_NAMESPACE.key(Boolean.class) .named("testBool") .buildWithDefault(true); private static final OptPrefKey<Boolean> BOOL_NULL_PREF = PREF_NAMESPACE.key(Boolean.class) .named("testNullBool") .buildOptional(); private static final PrefKey<Float> FLOAT_PREF = PREF_NAMESPACE.key(Float.class) .named("testFloat") .buildWithDefault(1.2f); private static final OptPrefKey<Float> FLOAT_NULL_PREF = PREF_NAMESPACE.key(Float.class) .named("testNullFloat") .buildOptional(); private static final PrefKey<Integer> INT_PREF = PREF_NAMESPACE.key(Integer.class) .named("testInt") .buildWithDefault(3); private static final OptPrefKey<Integer> INT_NULL_PREF = PREF_NAMESPACE.key(Integer.class) .named("testNullInt") .buildOptional(); private static final PrefKey<Long> LONG_PREF = PREF_NAMESPACE.key(Long.class) .named("testLong") .buildWithDefault(123L); private static final OptPrefKey<Long> LONG_NULL_PREF = PREF_NAMESPACE.key(Long.class) .named("testNullLong") .buildOptional(); private static final PrefKey<String> STRING_PREF = PREF_NAMESPACE.key(String.class) .named("testString") .buildWithDefault("default"); private static final OptPrefKey<String> STRING_NULL_PREF = PREF_NAMESPACE.key(String.class) .named("testNullString") .buildOptional(); private static final PrefKey<Double> DOUBLE_PREF = PREF_NAMESPACE.key(Double.class) .named("testDouble") .buildWithDefault(1.2d); private static final OptPrefKey<Double> DOUBLE_NULL_PREF = PREF_NAMESPACE.key(Double.class) .named("testNullDouble") .buildOptional(); private final SharedTestResources t = new SharedTestResources(); @Rule public final Mockspresso.Rule mockspresso = Rules.mockspressoBuilder() .testResources(t) .buildRule(); @Test public void testBooleanDoesntExist() { boolean result = t.mTypedPrefs.get(BOOL_PREF); t.verifyPrefDidntExist(BOOL_PREF); assertThat(result).isTrue(); } @Test public void testBooleanDoesExist() { t.setupBooleanExists(BOOL_PREF, false); boolean result = t.mTypedPrefs.get(BOOL_PREF); t.verifyBooleanExisted(BOOL_PREF); assertThat(result).isFalse(); } @Test public void testSetBoolean() { t.mTypedPrefs.edit() .put(BOOL_PREF, false) .commit(); t.verifyBooleanWasSet(BOOL_PREF, false); } @Test public void testRemoveBoolean() { t.mTypedPrefs.edit() .remove(BOOL_PREF) .apply(); t.verifyPrefWasRemoved(BOOL_PREF); } @Test(expected = NullPointerException.class) public void testSetBooleanException() { t.mTypedPrefs.edit() .put(BOOL_PREF, null); } @Test public void testNullBooleanDoesntExist() { Boolean result = t.mTypedPrefs.get(BOOL_NULL_PREF); t.verifyPrefDidntExist(BOOL_NULL_PREF); assertThat(result).isNull(); } @Test public void testNullBooleanDoesExist() { t.setupBooleanExists(BOOL_NULL_PREF, true); Boolean result = t.mTypedPrefs.get(BOOL_NULL_PREF); t.verifyBooleanExisted(BOOL_NULL_PREF); assertThat(result) .isNotNull() .isTrue(); } @Test public void testSetNullBoolean() { t.mTypedPrefs.edit() .put(BOOL_NULL_PREF, false) .commit(); t.verifyBooleanWasSet(BOOL_NULL_PREF, false); } @Test public void testRemoveNullBoolean() { t.mTypedPrefs.edit() .remove(BOOL_NULL_PREF) .apply(); t.verifyPrefWasRemoved(BOOL_NULL_PREF); } @Test public void testSetNullBooleanNull() { t.mTypedPrefs.edit() .put(BOOL_NULL_PREF, null) .apply(); t.verifyPrefWasRemoved(BOOL_NULL_PREF); } @Test public void testFloatDoesntExist() { float result = t.mTypedPrefs.get(FLOAT_PREF); t.verifyPrefDidntExist(FLOAT_PREF); assertThat(result).isEqualTo(1.2f); } @Test public void testFloatDoesExist() { t.setupFloatExists(FLOAT_PREF, 3.5f); float result = t.mTypedPrefs.get(FLOAT_PREF); t.verifyFloatExisted(FLOAT_PREF); assertThat(result).isEqualTo(3.5f); } @Test public void testSetFloat() { t.mTypedPrefs.edit() .put(FLOAT_PREF, 7.6f) .commit(); t.verifyFloatWasSet(FLOAT_PREF, 7.6f); } @Test public void testRemoveFloat() { t.mTypedPrefs.edit() .remove(FLOAT_PREF) .apply(); t.verifyPrefWasRemoved(FLOAT_PREF); } @Test(expected = NullPointerException.class) public void testSetFloatException() { t.mTypedPrefs.edit() .put(FLOAT_PREF, null); } @Test public void testNullFloatDoesntExist() { Float result = t.mTypedPrefs.get(FLOAT_NULL_PREF); t.verifyPrefDidntExist(FLOAT_NULL_PREF); assertThat(result).isNull(); } @Test public void testNullFloatDoesExist() { t.setupFloatExists(FLOAT_NULL_PREF, 17.3f); Float result = t.mTypedPrefs.get(FLOAT_NULL_PREF); t.verifyFloatExisted(FLOAT_NULL_PREF); assertThat(result) .isNotNull() .isEqualTo(17.3f); } @Test public void testSetNullFloat() { t.mTypedPrefs.edit() .put(FLOAT_NULL_PREF, 13.3f) .commit(); t.verifyFloatWasSet(FLOAT_NULL_PREF, 13.3f); } @Test public void testRemoveNullFloat() { t.mTypedPrefs.edit() .remove(FLOAT_NULL_PREF) .apply(); t.verifyPrefWasRemoved(FLOAT_NULL_PREF); } @Test public void testSetNullFloatNull() { t.mTypedPrefs.edit() .put(FLOAT_NULL_PREF, null) .apply(); t.verifyPrefWasRemoved(FLOAT_NULL_PREF); } @Test public void testIntegerDoesntExist() { int result = t.mTypedPrefs.get(INT_PREF); t.verifyPrefDidntExist(INT_PREF); assertThat(result).isEqualTo(3); } @Test public void testIntegerDoesExist() { t.setupIntegerExists(INT_PREF, 7); int result = t.mTypedPrefs.get(INT_PREF); t.verifyIntegerExisted(INT_PREF); assertThat(result).isEqualTo(7); } @Test public void testSetInteger() { t.mTypedPrefs.edit() .put(INT_PREF, 12) .commit(); t.verifyIntegerWasSet(INT_PREF, 12); } @Test public void testRemoveInteger() { t.mTypedPrefs.edit() .remove(INT_PREF) .apply(); t.verifyPrefWasRemoved(INT_PREF); } @Test(expected = NullPointerException.class) public void testSetIntegerException() { t.mTypedPrefs.edit() .put(INT_PREF, null); } @Test public void testNullIntegerDoesntExist() { Integer result = t.mTypedPrefs.get(INT_NULL_PREF); t.verifyPrefDidntExist(INT_NULL_PREF); assertThat(result).isNull(); } @Test public void testNullIntegerDoesExist() { t.setupIntegerExists(INT_NULL_PREF, 18); Integer result = t.mTypedPrefs.get(INT_NULL_PREF); t.verifyIntegerExisted(INT_NULL_PREF); assertThat(result) .isNotNull() .isEqualTo(18); } @Test public void testSetNullInteger() { t.mTypedPrefs.edit() .put(INT_NULL_PREF, 22) .commit(); t.verifyIntegerWasSet(INT_NULL_PREF, 22); } @Test public void testRemoveNullInteger() { t.mTypedPrefs.edit() .remove(INT_NULL_PREF) .apply(); t.verifyPrefWasRemoved(INT_NULL_PREF); } @Test public void testSetNullIntegerNull() { t.mTypedPrefs.edit() .put(INT_NULL_PREF, null) .apply(); t.verifyPrefWasRemoved(INT_NULL_PREF); } @Test public void testLongDoesntExist() { long result = t.mTypedPrefs.get(LONG_PREF); t.verifyPrefDidntExist(LONG_PREF); assertThat(result).isEqualTo(123L); } @Test public void testLongDoesExist() { t.setupLongExists(LONG_PREF, 15L); long result = t.mTypedPrefs.get(LONG_PREF); t.verifyLongExisted(LONG_PREF); assertThat(result).isEqualTo(15L); } @Test public void testSetLong() { t.mTypedPrefs.edit() .put(LONG_PREF, 145L) .commit(); t.verifyLongWasSet(LONG_PREF, 145L); } @Test public void testRemoveLong() { t.mTypedPrefs.edit() .remove(LONG_PREF) .apply(); t.verifyPrefWasRemoved(LONG_PREF); } @Test(expected = NullPointerException.class) public void testSetLongException() { t.mTypedPrefs.edit() .put(LONG_PREF, null); } @Test public void testNullLongDoesntExist() { Long result = t.mTypedPrefs.get(LONG_NULL_PREF); t.verifyPrefDidntExist(LONG_NULL_PREF); assertThat(result).isNull(); } @Test public void testNullLongDoesExist() { t.setupLongExists(LONG_NULL_PREF, 173L); Long result = t.mTypedPrefs.get(LONG_NULL_PREF); t.verifyLongExisted(LONG_NULL_PREF); assertThat(result) .isNotNull() .isEqualTo(173L); } @Test public void testSetNullLong() { t.mTypedPrefs.edit() .put(LONG_NULL_PREF, 133L) .commit(); t.verifyLongWasSet(LONG_NULL_PREF, 133L); } @Test public void testRemoveNullLong() { t.mTypedPrefs.edit() .remove(LONG_NULL_PREF) .apply(); t.verifyPrefWasRemoved(LONG_NULL_PREF); } @Test public void testSetNullLongNull() { t.mTypedPrefs.edit() .put(LONG_NULL_PREF, null) .apply(); t.verifyPrefWasRemoved(LONG_NULL_PREF); } @Test public void testStringDoesntExist() { String result = t.mTypedPrefs.get(STRING_PREF); t.verifyPrefDidntExist(STRING_PREF); assertThat(result).isEqualTo("default"); } @Test public void testStringDoesExist() { t.setupStringExists(STRING_PREF, "sup"); String result = t.mTypedPrefs.get(STRING_PREF); t.verifyStringExisted(STRING_PREF); assertThat(result).isEqualTo("sup"); } @Test public void testSetString() { t.mTypedPrefs.edit() .put(STRING_PREF, "howdy") .commit(); t.verifyStringWasSet(STRING_PREF, "howdy"); } @Test public void testRemoveString() { t.mTypedPrefs.edit() .remove(STRING_PREF) .apply(); t.verifyPrefWasRemoved(STRING_PREF); } @Test(expected = NullPointerException.class) public void testSetStringException() { t.mTypedPrefs.edit() .put(STRING_PREF, null); } @Test public void testNullStringDoesntExist() { String result = t.mTypedPrefs.get(STRING_NULL_PREF); t.verifyPrefDidntExist(STRING_NULL_PREF); assertThat(result).isNull(); } @Test public void testNullStringDoesExist() { t.setupStringExists(STRING_NULL_PREF, "yooo"); String result = t.mTypedPrefs.get(STRING_NULL_PREF); t.verifyStringExisted(STRING_NULL_PREF); assertThat(result) .isNotNull() .isEqualTo("yooo"); } @Test public void testSetNullString() { t.mTypedPrefs.edit() .put(STRING_NULL_PREF, "hey now") .commit(); t.verifyStringWasSet(STRING_NULL_PREF, "hey now"); } @Test public void testRemoveNullString() { t.mTypedPrefs.edit() .remove(STRING_NULL_PREF) .apply(); t.verifyPrefWasRemoved(STRING_NULL_PREF); } @Test public void testSetNullStringNull() { t.mTypedPrefs.edit() .put(STRING_NULL_PREF, null) .apply(); t.verifyPrefWasRemoved(STRING_NULL_PREF); } @Test public void testDoubleDoesntExist() { double result = t.mTypedPrefs.get(DOUBLE_PREF); t.verifyPrefDidntExist(DOUBLE_PREF); assertThat(result).isEqualTo(1.2d); } @Test public void testDoubleDoesExist() { t.setupDoubleExists(DOUBLE_PREF, 3.5d); double result = t.mTypedPrefs.get(DOUBLE_PREF); t.verifyDoubleExisted(DOUBLE_PREF); assertThat(result).isEqualTo(3.5d); } @Test public void testSetDouble() { t.mTypedPrefs.edit() .put(DOUBLE_PREF, 7.6d) .commit(); t.verifyDoubleWasSet(DOUBLE_PREF, 7.6d); } @Test public void testDoubleRemoved() { t.mTypedPrefs.edit() .remove(DOUBLE_PREF) .apply(); t.verifyPrefWasRemoved(DOUBLE_PREF); } @Test(expected = NullPointerException.class) public void testSetDoubleException() { t.mTypedPrefs.edit() .put(DOUBLE_PREF, null); } @Test public void testNullDoubleDoesntExist() { Double result = t.mTypedPrefs.get(DOUBLE_NULL_PREF); t.verifyPrefDidntExist(DOUBLE_NULL_PREF); assertThat(result).isNull(); } @Test public void testNullDoubleDoesExist() { t.setupDoubleExists(DOUBLE_NULL_PREF, 17.3d); Double result = t.mTypedPrefs.get(DOUBLE_NULL_PREF); t.verifyDoubleExisted(DOUBLE_NULL_PREF); assertThat(result) .isNotNull() .isEqualTo(17.3d); } @Test public void testSetNullDouble() { t.mTypedPrefs.edit() .put(DOUBLE_NULL_PREF, 13.3d) .commit(); t.verifyDoubleWasSet(DOUBLE_NULL_PREF, 13.3d); } @Test public void testNullDoubleRemoved() { t.mTypedPrefs.edit() .remove(DOUBLE_NULL_PREF) .apply(); t.verifyPrefWasRemoved(DOUBLE_NULL_PREF); } @Test public void testSetNullDoubleNull() { t.mTypedPrefs.edit() .put(DOUBLE_NULL_PREF, null) .apply(); t.verifyPrefWasRemoved(DOUBLE_NULL_PREF); } }
3e067ff18dd012d334d61690ad386e36ee9461e2
991
java
Java
src/test/java/org/commcare/util/CollectionUtilsTest.java
dimagi/commcare-core
f15e37c497fd6a1fc4511b8902dc13634fe607e6
[ "Apache-2.0" ]
10
2017-03-24T20:26:54.000Z
2020-08-28T18:33:34.000Z
src/test/java/org/commcare/util/CollectionUtilsTest.java
dimagi/commcare-core
f15e37c497fd6a1fc4511b8902dc13634fe607e6
[ "Apache-2.0" ]
280
2016-06-27T14:46:57.000Z
2022-03-31T14:39:44.000Z
src/test/java/org/commcare/util/CollectionUtilsTest.java
dimagi/commcare-core
f15e37c497fd6a1fc4511b8902dc13634fe607e6
[ "Apache-2.0" ]
10
2016-07-19T05:53:07.000Z
2020-10-28T22:02:42.000Z
28.314286
75
0.64783
2,754
package org.commcare.util; import org.junit.Test; import java.util.ArrayList; import static org.junit.Assert.*; public class CollectionUtilsTest { @Test public void containsAny() { ArrayList<String> superList = new ArrayList(); superList.add("Apple"); superList.add("Mango"); superList.add("Banana"); assertFalse("Empty List can't contain any fruits from superList", CollectionUtils.containsAny(superList, new ArrayList<>())); ArrayList<String> subListOne = new ArrayList<>(); subListOne.add("Orange"); assertFalse("List doesn't contain any fruits from superList", CollectionUtils.containsAny(superList, subListOne)); ArrayList<String> subListTwo = new ArrayList<>(); subListTwo.add("Orange"); subListTwo.add("Mango"); assertTrue("List contains Mango from superList", CollectionUtils.containsAny(superList, subListTwo)); } }
3e0680ce1ec67ce1e90df07f2d65edc8c480cc91
6,207
java
Java
jxm-bd1/src/test/java/com/github/dabasan/jxm/bd1/BD1ManipulatorTest.java
Dabasan/jxm
364da07a29ef8359a7b5cd2bcffb92faa3916d04
[ "MIT" ]
null
null
null
jxm-bd1/src/test/java/com/github/dabasan/jxm/bd1/BD1ManipulatorTest.java
Dabasan/jxm
364da07a29ef8359a7b5cd2bcffb92faa3916d04
[ "MIT" ]
null
null
null
jxm-bd1/src/test/java/com/github/dabasan/jxm/bd1/BD1ManipulatorTest.java
Dabasan/jxm
364da07a29ef8359a7b5cd2bcffb92faa3916d04
[ "MIT" ]
null
null
null
31.190955
94
0.609473
2,755
package com.github.dabasan.jxm.bd1; import org.joml.Matrix4f; import java.io.IOException; import java.nio.file.Paths; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; /** * Test BD1Manipulator * * @author Daba */ public class BD1ManipulatorTest { private final String TARGET_DIR = "./Data/SnowBase"; private BD1Manipulator manipulator; public static void main(String[] args) { new BD1ManipulatorTest(); } public BD1ManipulatorTest() { var srcFilepath = Paths.get(TARGET_DIR, "map.bd1").toString(); try { manipulator = new BD1Manipulator(srcFilepath); } catch (IOException e) { e.printStackTrace(); return; } this.printNumBlocks(); this.printTextureFilenames(); this.createTransform(); this.createTranslate(); this.createRotX(); this.createRotY(); this.createRotZ(); this.createRot(); this.createRescale(); this.createInvertZ(); this.saveAsOBJ(); } private void printNumBlocks() { System.out.println("#Number of blocks"); System.out.println(manipulator.getNumBlocks()); } private void printTextureFilenames() { Map<Integer, String> origTextureFilenames = manipulator.getTextureFilenames(); System.out.println("#Texture filenames"); System.out.println("##getTextureFilename()"); for (int i = 0; i < 10; i++) { System.out.println(i + ": " + manipulator.getTextureFilename(i)); } System.out.println("##getTextureFilenames()"); manipulator.getTextureFilenames().forEach((k, v) -> System.out.println(k + ": " + v)); System.out.println("##setTextureFilename()"); System.out.println("New texture filenames are set"); for (int i = 0; i < 10; i++) { manipulator.setTextureFilename(i, "tex_" + i + ".jpg"); } manipulator.getTextureFilenames().forEach((k, v) -> System.out.println(k + ": " + v)); System.out.println("##setTextureFilenames()"); System.out.println("New texture filenames are set"); var textureFilenames = new HashMap<Integer, String>(); for (int i = 0; i < 10; i++) { textureFilenames.put(i, "texx_" + i + ".jpg"); } manipulator.setTextureFilenames(textureFilenames); manipulator.getTextureFilenames().forEach((k, v) -> System.out.println(k + ": " + v)); manipulator.setTextureFilenames(origTextureFilenames); } private void createTransform() { System.out.println("#transform()"); var mat = new Matrix4f().rotate((float) Math.PI / 4.0f, 1.0f, 0.0f, 0.0f) .rotate((float) Math.PI / 4.0f, 0.0f, 1.0f, 0.0f) .rotate((float) Math.PI / 4.0f, 0.0f, 0.0f, 1.0f).scale(1.0f, 2.0f, 1.0f); manipulator.transform(mat); var saveFilepath = Paths.get(TARGET_DIR, "transform.bd1").toString(); manipulator.saveAsBD1(saveFilepath); var invMat = mat.invert(); manipulator.transform(invMat); } private void createTranslate() { System.out.println("#translate()"); float amountX = 50.0f; float amountY = 50.0f; float amountZ = 50.0f; manipulator.translate(amountX, amountY, amountZ); var saveFilepath = Paths.get(TARGET_DIR, "translate.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.translate(-amountX, -amountY, -amountZ); } private void createRotX() { System.out.println("#rotX()"); float amount = (float) Math.PI / 4.0f; manipulator.rotX(amount); var saveFilepath = Paths.get(TARGET_DIR, "rot_x.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.rotX(-amount); } private void createRotY() { System.out.println("#rotY()"); float amount = (float) Math.PI / 4.0f; manipulator.rotY(amount); var saveFilepath = Paths.get(TARGET_DIR, "rot_y.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.rotY(-amount); } private void createRotZ() { System.out.println("#rotZ()"); float amount = (float) Math.PI / 4.0f; manipulator.rotZ(amount); var saveFilepath = Paths.get(TARGET_DIR, "rot_z.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.rotZ(-amount); } private void createRot() { System.out.println("#rot()"); var origBlocks = new ArrayList<BD1Block>(); manipulator.getBlocks().forEach(b -> origBlocks.add(new BD1Block(b))); float amount = (float) Math.PI / 4.0f; manipulator.rot(amount, 1.0f, 1.0f, 1.0f); var saveFilepath = Paths.get(TARGET_DIR, "rot.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.setBlocks(origBlocks); } private void createRescale() { System.out.println("#rescale()"); float scaleX = 2.0f; float scaleY = 2.0f; float scaleZ = 2.0f; manipulator.rescale(scaleX, scaleY, scaleZ); var saveFilepath = Paths.get(TARGET_DIR, "rescale.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.rescale(1.0f / scaleX, 1.0f / scaleY, 1.0f / scaleZ); } private void createInvertZ() { System.out.println("#invertZ()"); manipulator.invertZ(); var saveFilepath = Paths.get(TARGET_DIR, "invert_z.bd1").toString(); manipulator.saveAsBD1(saveFilepath); manipulator.invertZ(); } private void saveAsOBJ() { System.out.println("#saveAsOBJ()"); var objFilepath = Paths.get(TARGET_DIR, "map.obj").toString(); var mtlFilepath = Paths.get(TARGET_DIR, "map.mtl").toString(); manipulator.saveAsOBJ(objFilepath, mtlFilepath, "map.mtl", false); var objFilepath_2 = Paths.get(TARGET_DIR, "map_2.obj").toString(); var mtlFilepath_2 = Paths.get(TARGET_DIR, "map_2.mtl").toString(); manipulator.saveAsOBJ(objFilepath_2, mtlFilepath_2, "map_2.mtl", true); } }
3e0681a4b562c3edccc9d35cc445085bbaed3299
24,939
java
Java
src/test/java/ca/corefacility/bioinformatics/irida/service/impl/integration/SequencingObjectServiceImplIT.java
pvanheus/irida
88d17753f1989b85d41e8c0d815378592e0d3b2b
[ "Apache-2.0" ]
34
2015-11-24T21:45:20.000Z
2022-01-14T12:47:19.000Z
src/test/java/ca/corefacility/bioinformatics/irida/service/impl/integration/SequencingObjectServiceImplIT.java
pvanheus/irida
88d17753f1989b85d41e8c0d815378592e0d3b2b
[ "Apache-2.0" ]
636
2016-05-05T22:35:09.000Z
2022-03-23T19:46:21.000Z
src/test/java/ca/corefacility/bioinformatics/irida/service/impl/integration/SequencingObjectServiceImplIT.java
pvanheus/irida
88d17753f1989b85d41e8c0d815378592e0d3b2b
[ "Apache-2.0" ]
50
2016-06-29T18:16:30.000Z
2022-03-24T08:13:18.000Z
43.147059
135
0.790168
2,756
package ca.corefacility.bioinformatics.irida.service.impl.integration; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.io.OutputStream; import java.math.BigDecimal; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.zip.GZIPOutputStream; import org.apache.commons.io.FileUtils; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.test.context.support.WithMockUser; import org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestExecutionListeners; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.support.AnnotationConfigContextLoader; import org.springframework.test.context.support.DependencyInjectionTestExecutionListener; import com.github.springtestdbunit.DbUnitTestExecutionListener; import com.github.springtestdbunit.annotation.DatabaseOperation; import com.github.springtestdbunit.annotation.DatabaseSetup; import com.github.springtestdbunit.annotation.DatabaseTearDown; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import ca.corefacility.bioinformatics.irida.config.data.IridaApiJdbcDataSourceConfig; import ca.corefacility.bioinformatics.irida.config.services.IridaApiServicesConfig; import ca.corefacility.bioinformatics.irida.exceptions.ConcatenateException; import ca.corefacility.bioinformatics.irida.exceptions.DuplicateSampleException; import ca.corefacility.bioinformatics.irida.exceptions.EntityNotFoundException; import ca.corefacility.bioinformatics.irida.model.project.Project; import ca.corefacility.bioinformatics.irida.model.run.SequencingRun; import ca.corefacility.bioinformatics.irida.model.sample.CoverageQCEntry; import ca.corefacility.bioinformatics.irida.model.sample.FileProcessorErrorQCEntry; import ca.corefacility.bioinformatics.irida.model.sample.QCEntry; import ca.corefacility.bioinformatics.irida.model.sample.QCEntry.QCEntryStatus; import ca.corefacility.bioinformatics.irida.model.sample.Sample; import ca.corefacility.bioinformatics.irida.model.sample.SampleSequencingObjectJoin; import ca.corefacility.bioinformatics.irida.model.sequenceFile.OverrepresentedSequence; import ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFile; import ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFilePair; import ca.corefacility.bioinformatics.irida.model.sequenceFile.SequencingObject; import ca.corefacility.bioinformatics.irida.model.sequenceFile.SingleEndSequenceFile; import ca.corefacility.bioinformatics.irida.model.user.Role; import ca.corefacility.bioinformatics.irida.model.user.User; import ca.corefacility.bioinformatics.irida.model.workflow.analysis.AnalysisFastQC; import ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository; import ca.corefacility.bioinformatics.irida.service.AnalysisService; import ca.corefacility.bioinformatics.irida.service.ProjectService; import ca.corefacility.bioinformatics.irida.service.SequencingObjectService; import ca.corefacility.bioinformatics.irida.service.SequencingRunService; import ca.corefacility.bioinformatics.irida.service.sample.SampleService; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = { IridaApiServicesConfig.class, IridaApiJdbcDataSourceConfig.class }) @ActiveProfiles("it") @TestExecutionListeners({ DependencyInjectionTestExecutionListener.class, DbUnitTestExecutionListener.class, WithSecurityContextTestExecutionListener.class }) @DatabaseSetup("/ca/corefacility/bioinformatics/irida/service/impl/SequenceFileServiceImplIT.xml") @DatabaseTearDown(value = "/ca/corefacility/bioinformatics/irida/test/integration/TableReset.xml", type = DatabaseOperation.DELETE_ALL) public class SequencingObjectServiceImplIT { private static final Logger logger = LoggerFactory.getLogger(SequencingObjectServiceImplIT.class); private static final String SEQUENCE = "ACGTACGTN"; private static final byte[] FASTQ_FILE_CONTENTS = ("@testread\n" + SEQUENCE + "\n+\n?????????\n@testread2\n" + SEQUENCE + "\n+\n?????????").getBytes(); private static final String CHECKSUM = "85e440ab2f17636ab24b12e8e4b4d445b6131e7df785cbd02d56c2688eef55fb"; private static final String ZIPPED_CHECKSUM = "a2ff0d0790029822b4a2457a2912414ffc532136729ad2fd06efc70fe428ab32"; @Autowired private PasswordEncoder passwordEncoder; @Autowired private AnalysisService analysisService; @Autowired private SampleService sampleService; @Autowired private SampleRepository sampleRepository; @Autowired private SequencingObjectService objectService; @Autowired private SequencingRunService sequencingRunService; @Autowired private ProjectService projectService; @Autowired @Qualifier("sequenceFileBaseDirectory") private Path baseDirectory; @Before public void setUp() throws IOException { Files.createDirectories(baseDirectory); FileUtils.cleanDirectory(baseDirectory.toFile()); } private SequencingObjectServiceImplIT asRole(Role r, String username) { User u = new User(); u.setUsername(username); u.setPassword(passwordEncoder.encode("Password1!")); u.setSystemRole(r); UsernamePasswordAuthenticationToken auth = new UsernamePasswordAuthenticationToken(u, "Password1!", ImmutableList.of(r)); auth.setDetails(u); SecurityContextHolder.getContext().setAuthentication(auth); return this; } @Test @WithMockUser(username = "fbristow", roles = "SEQUENCER") public void testAddSequenceFilePairAsSequencer() throws IOException { SequenceFile file1 = createSequenceFile("file1"); SequenceFile file2 = createSequenceFile("file2"); SequenceFilePair sequenceFilePair = new SequenceFilePair(file1, file2); SequencingObject createSequenceFilePair = objectService.create(sequenceFilePair); assertTrue(createSequenceFilePair.getFiles().contains(file1)); assertTrue(createSequenceFilePair.getFiles().contains(file2)); } @Test @WithMockUser(username = "admin", roles = "ADMIN") public void testGetSequenceFilePairForSample() { Sample s = sampleService.read(2L); Set<Long> fileIds = Sets.newHashSet(3L, 4L); Collection<SampleSequencingObjectJoin> sequenceFilePairsForSample = objectService.getSequencesForSampleOfType(s, SequenceFilePair.class); assertEquals(1, sequenceFilePairsForSample.size()); SequencingObject pair = sequenceFilePairsForSample.iterator().next().getObject(); for (SequenceFile file : pair.getFiles()) { assertTrue("file id should be in set", fileIds.contains(file.getId())); fileIds.remove(file.getId()); } assertTrue("all file ids should have been found", fileIds.isEmpty()); } @Test @WithMockUser(username = "fbristow", roles = "SEQUENCER") public void testCreateSequenceFileInSample() throws IOException, InterruptedException { Sample s = sampleService.read(1L); SequenceFile sf = new SequenceFile(); Path sequenceFile = Files.createTempFile("TEMPORARY-SEQUENCE-FILE", ".gz"); OutputStream gzOut = new GZIPOutputStream(Files.newOutputStream(sequenceFile)); gzOut.write(FASTQ_FILE_CONTENTS); gzOut.close(); sf.setFile(sequenceFile); SingleEndSequenceFile so = new SingleEndSequenceFile(sf); objectService.createSequencingObjectInSample(so, s); SequencingRun mr = sequencingRunService.read(1L); sequencingRunService.addSequencingObjectToSequencingRun(mr, so); // Sleeping for a bit to let file processing run Thread.sleep(15000); Sample readSample = sampleService.read(s.getId()); List<QCEntry> qcEntries = sampleService.getQCEntriesForSample(readSample); assertEquals("should be one qc entries", 1, qcEntries.size()); QCEntry qcEntry = qcEntries.iterator().next(); assertTrue("should be coverage entry", qcEntry instanceof CoverageQCEntry); CoverageQCEntry coverage = (CoverageQCEntry) qcEntry; assertEquals("should be 18 bases", 18, coverage.getTotalBases()); } @Test @WithMockUser(username = "fbristow", roles = "SEQUENCER") public void testCreateCorruptSequenceFileInSample() throws IOException, InterruptedException { Sample s = sampleService.read(1L); SequenceFile sf = new SequenceFile(); Path sequenceFile = Files.createTempFile("TEMPORARY-SEQUENCE-FILE", ".gz"); OutputStream gzOut = Files.newOutputStream(sequenceFile); gzOut.write("not a file".getBytes()); gzOut.close(); sf.setFile(sequenceFile); SingleEndSequenceFile so = new SingleEndSequenceFile(sf); objectService.createSequencingObjectInSample(so, s); // Wait 15 seconds. file processing should have failed by then. Thread.sleep(15000); Sample readSample = sampleService.read(s.getId()); List<QCEntry> qcEntries = sampleService.getQCEntriesForSample(readSample); assertFalse("should be a qc entry", qcEntries.isEmpty()); QCEntry qc = qcEntries.iterator().next(); assertTrue("should be a FileProcessorErrorQCEntry", qc instanceof FileProcessorErrorQCEntry); } @Test @WithMockUser(username = "fbristow", roles = "SEQUENCER") public void testGetSequencefilesForSampleAsSequencer() throws IOException { Sample s = sampleService.read(1L); Collection<SampleSequencingObjectJoin> sequencingObjectsForSample = objectService .getSequencingObjectsForSample(s); assertEquals(1, sequencingObjectsForSample.size()); } @Test @WithMockUser(username = "admin", roles = "ADMIN") public void testGetUnpairedFilesForSample() { Sample s = sampleService.read(2L); Collection<SampleSequencingObjectJoin> sequencesForSampleOfType = objectService.getSequencesForSampleOfType(s, SingleEndSequenceFile.class); assertEquals(1, sequencesForSampleOfType.size()); SampleSequencingObjectJoin join = sequencesForSampleOfType.iterator().next(); assertEquals(Long.valueOf(4), join.getObject().getId()); } @Test @WithMockUser(username = "admin", roles = "ADMIN") public void testGetUnpairedFilesForSampleWithNoPairs() { Sample s = sampleService.read(1L); Collection<SampleSequencingObjectJoin> sequencesForSampleOfType = objectService.getSequencesForSampleOfType(s, SingleEndSequenceFile.class); assertEquals(1, sequencesForSampleOfType.size()); SampleSequencingObjectJoin join = sequencesForSampleOfType.iterator().next(); assertEquals(Long.valueOf(2), join.getObject().getId()); } @Test @WithMockUser(username = "fbristow", roles = "SEQUENCER") public void testCreateNotCompressedSequenceFile() throws IOException, InterruptedException { final Long expectedRevisionNumber = 1L; SequenceFile sf = createSequenceFile("file1"); Path sequenceFile = sf.getFile(); SingleEndSequenceFile singleEndSequenceFile = new SingleEndSequenceFile(sf); logger.trace("About to save the file."); SequencingObject sequencingObject = asRole(Role.ROLE_SEQUENCER, "fbristow").objectService .create(singleEndSequenceFile); logger.trace("Finished saving the file."); assertNotNull("ID wasn't assigned.", sequencingObject.getId()); // Sleeping for a bit to let file processing run Thread.sleep(15000); // figure out what the version number of the sequence file is (should be // 1; the file wasn't gzipped, but fastqc will have modified it.) SequencingObject readObject = null; do { readObject = asRole(Role.ROLE_ADMIN, "admin").objectService.read(sequencingObject.getId()); sf = readObject.getFiles().iterator().next(); if (sf.getFileRevisionNumber() < expectedRevisionNumber) { logger.info("Still waiting on thread to finish, having a bit of a sleep."); Thread.sleep(1000); } } while (sf.getFileRevisionNumber() < expectedRevisionNumber); assertEquals("Wrong version number after processing.", expectedRevisionNumber, sf.getFileRevisionNumber()); // verify the file checksum was taken properly assertEquals("checksum should be equal", CHECKSUM, sf.getUploadSha256()); AnalysisFastQC analysis = asRole(Role.ROLE_ADMIN, "admin").analysisService .getFastQCAnalysisForSequenceFile(readObject, sf.getId()); assertNotNull("FastQCAnalysis should have been created for the file.", analysis); Set<OverrepresentedSequence> overrepresentedSequences = analysis.getOverrepresentedSequences(); assertNotNull("No overrepresented sequences were found.", overrepresentedSequences); assertEquals("Wrong number of overrepresented sequences were found.", 1, overrepresentedSequences.size()); OverrepresentedSequence overrepresentedSequence = overrepresentedSequences.iterator().next(); assertEquals("Sequence was not the correct sequence.", SEQUENCE, overrepresentedSequence.getSequence()); assertEquals("The count was not correct.", 2, overrepresentedSequence.getOverrepresentedSequenceCount()); assertEquals("The percent was not correct.", new BigDecimal("100.00"), overrepresentedSequence.getPercentage()); // confirm that the file structure is correct Path idDirectory = baseDirectory.resolve(Paths.get(sf.getId().toString())); assertTrue("Revision directory doesn't exist.", Files.exists(idDirectory .resolve(Paths.get(sf.getFileRevisionNumber().toString(), sequenceFile.getFileName().toString())))); // no other files or directories should be beneath the ID directory int fileCount = 0; Iterator<Path> dir = Files.newDirectoryStream(idDirectory).iterator(); while (dir.hasNext()) { dir.next(); fileCount++; } assertEquals("Wrong number of directories beneath the id directory", 1, fileCount); } @Test @WithMockUser(username = "fbristow", roles = "SEQUENCER") public void testCreateCompressedSequenceFile() throws IOException, InterruptedException { final Long expectedRevisionNumber = 2L; SequenceFile sf = new SequenceFile(); Path sequenceFile = Files.createTempFile("TEMPORARY-SEQUENCE-FILE", ".gz"); OutputStream gzOut = new GZIPOutputStream(Files.newOutputStream(sequenceFile)); gzOut.write(FASTQ_FILE_CONTENTS); gzOut.close(); sf.setFile(sequenceFile); SingleEndSequenceFile singleEndSequenceFile = new SingleEndSequenceFile(sf); logger.trace("About to save the file."); SequencingObject sequencingObject = objectService.create(singleEndSequenceFile); logger.trace("Finished saving the file."); assertNotNull("ID wasn't assigned.", sequencingObject.getId()); // Sleeping for a bit to let file processing run Thread.sleep(10000); // figure out what the version number of the sequence file is (should be // 2; the file was gzipped) // get the MOST RECENT version of the sequence file from the database // (it will have been modified outside of the create method.) SequencingObject readObject = null; do { readObject = asRole(Role.ROLE_ADMIN, "admin").objectService.read(sequencingObject.getId()); sf = readObject.getFiles().iterator().next(); if (sf.getFileRevisionNumber() < expectedRevisionNumber) { logger.info("Still waiting on thread to finish, having a bit of a sleep."); Thread.sleep(1000); } } while (sf.getFileRevisionNumber() < expectedRevisionNumber); //one more sleep to make sure everything's settled Thread.sleep(1000); assertEquals("Wrong version number after processing.", expectedRevisionNumber, sf.getFileRevisionNumber()); assertFalse("File name is still gzipped.", sf.getFile().getFileName().toString().endsWith(".gz")); AnalysisFastQC analysis = asRole(Role.ROLE_ADMIN, "admin").analysisService .getFastQCAnalysisForSequenceFile(readObject, sf.getId()); // verify the file checksum was taken properly assertEquals("checksum should be equal", ZIPPED_CHECKSUM, sf.getUploadSha256()); Set<OverrepresentedSequence> overrepresentedSequences = analysis.getOverrepresentedSequences(); assertNotNull("No overrepresented sequences were found.", overrepresentedSequences); assertEquals("Wrong number of overrepresented sequences were found.", 1, overrepresentedSequences.size()); OverrepresentedSequence overrepresentedSequence = overrepresentedSequences.iterator().next(); assertEquals("Sequence was not the correct sequence.", SEQUENCE, overrepresentedSequence.getSequence()); assertEquals("The count was not correct.", 2, overrepresentedSequence.getOverrepresentedSequenceCount()); assertEquals("The percent was not correct.", new BigDecimal("100.00"), overrepresentedSequence.getPercentage()); // confirm that the file structure is correct String filename = sequenceFile.getFileName().toString(); filename = filename.substring(0, filename.lastIndexOf('.')); Path idDirectory = baseDirectory.resolve(Paths.get(sf.getId().toString())); assertTrue("Revision directory doesn't exist.", Files.exists(idDirectory.resolve(Paths.get(sf.getFileRevisionNumber().toString(), filename)))); // no other files or directories should be beneath the ID directory int fileCount = 0; Iterator<Path> dir = Files.newDirectoryStream(idDirectory).iterator(); while (dir.hasNext()) { dir.next(); fileCount++; } assertEquals("Wrong number of directories beneath the id directory", 2, fileCount); } @Test @WithMockUser(username = "fbristow1", roles = "USER") public void testReadSequenceFileAsUserWithPermissions() { assertNotNull(objectService.read(2L)); } @Test(expected = AccessDeniedException.class) @WithMockUser(username = "fbristow", roles = "USER") public void testReadSequenceFileAsUserNoPermissions() { objectService.read(2L); } @Test @WithMockUser(username = "fbristow1", roles = "USER") public void testReadOptionalProperties() { SequencingObject sequencingObject = objectService.read(2L); SequenceFile read = sequencingObject.getFileWithId(1L); assertEquals("5", read.getOptionalProperty("samplePlate")); assertEquals("10", read.getOptionalProperty("sampleWell")); } @Test @WithMockUser(username = "admin", roles = "ADMIN") public void testCoverage() throws IOException, InterruptedException { Project project = projectService.read(1L); project.setGenomeSize(3L); project.setMinimumCoverage(2); project = projectService.update(project); Sample s = sampleService.read(1L); SequenceFile sf = new SequenceFile(); Path sequenceFile = Files.createTempFile("TEMPORARY-SEQUENCE-FILE", ".gz"); OutputStream gzOut = new GZIPOutputStream(Files.newOutputStream(sequenceFile)); gzOut.write(FASTQ_FILE_CONTENTS); gzOut.close(); sf.setFile(sequenceFile); SingleEndSequenceFile so = new SingleEndSequenceFile(sf); objectService.createSequencingObjectInSample(so, s); SequencingRun mr = sequencingRunService.read(1L); sequencingRunService.addSequencingObjectToSequencingRun(mr, so); // Wait 15 seconds. file processing should have run by then. Thread.sleep(15000); Sample readSample = sampleService.read(s.getId()); List<QCEntry> qcEntries = sampleService.getQCEntriesForSample(readSample); assertEquals("should be one qc entry", 1, qcEntries.size()); QCEntry qcEntry = qcEntries.iterator().next(); qcEntry.addProjectSettings(project); assertTrue("should be coverage entry", qcEntry instanceof CoverageQCEntry); assertEquals("qc should have passed", QCEntryStatus.POSITIVE, qcEntry.getStatus()); assertEquals("should be 6x coverage", "6x", qcEntry.getMessage()); project.setMinimumCoverage(10); project = projectService.update(project); // Wait 10 seconds. file processing should have run by then. Thread.sleep(10000); qcEntries = sampleService.getQCEntriesForSample(readSample); assertEquals("should be one qc entry", 1, qcEntries.size()); qcEntry = qcEntries.iterator().next(); qcEntry.addProjectSettings(project); assertTrue("should be coverage entry", qcEntry instanceof CoverageQCEntry); assertEquals("qc should have failed", QCEntryStatus.NEGATIVE, qcEntry.getStatus()); } /** * Tests to make sure we get a properly constructed map of samples to sequencing objects. */ @Test @WithMockUser(username = "admin", roles = "ADMIN") public void testGetUniqueSamplesForSequencingObjectsSuccess() { SequencingObject s1 = objectService.read(1L); SequencingObject s2 = objectService.read(2L); Sample sa1 = sampleService.read(1L); Sample sa2 = sampleService.read(2L); Map<Sample, SequencingObject> sampleMap = objectService.getUniqueSamplesForSequencingObjects(Sets.newHashSet(s1,s2)); assertEquals("Incorrect number of results returned in sample map", 2, sampleMap.size()); assertEquals("Incorrect sequencing object mapped to sample", s2.getId(), sampleMap.get(sa1).getId()); assertEquals("Incorrect sequencing object mapped to sample", s1.getId(), sampleMap.get(sa2).getId()); } /** * Tests failure when a sample for one sequencing object does not exist. */ @Test(expected=EntityNotFoundException.class) @WithMockUser(username = "admin", roles = "ADMIN") public void testGetUniqueSamplesForSequencingObjectsFailNoSample() { SequencingObject s1 = objectService.read(1L); SequencingObject s2 = objectService.read(2L); sampleRepository.deleteById(1L); objectService.getUniqueSamplesForSequencingObjects(Sets.newHashSet(s1,s2)); } /** * Tests failure for duplicate samples in sequencing objects. */ @Test(expected=DuplicateSampleException.class) @WithMockUser(username = "admin", roles = "ADMIN") public void testGetUniqueSamplesForSequencingObjectsFailDuplicateSample() { SequencingObject s1 = objectService.read(1L); SequencingObject s4 = objectService.read(4L); objectService.getUniqueSamplesForSequencingObjects(Sets.newHashSet(s1,s4)); } @Test @WithMockUser(username = "admin", roles = "ADMIN") public void testConcatenateSequenceFiles() throws IOException, InterruptedException, ConcatenateException { String newFileName = "newname"; Sample sample = sampleService.read(1L); SequenceFile file1 = createSequenceFile("file1"); SequenceFile file2 = createSequenceFile("file2"); long originalLength = file1.getFile().toFile().length(); SequencingObject so1 = new SingleEndSequenceFile(file1); SequencingObject so2 = new SingleEndSequenceFile(file2); SampleSequencingObjectJoin join1 = objectService.createSequencingObjectInSample(so1, sample); SampleSequencingObjectJoin join2 = objectService.createSequencingObjectInSample(so2, sample); // Wait 5 seconds. file processing should have run by then. Thread.sleep(5000); // re-read the original files so file processing will be complete so1 = objectService.read(join1.getObject().getId()); so2 = objectService.read(join2.getObject().getId()); Collection<SampleSequencingObjectJoin> originalSeqs = objectService.getSequencingObjectsForSample(sample); List<SequencingObject> fileSet = Lists.newArrayList(so1, so2); SampleSequencingObjectJoin concatenateSequences = objectService.concatenateSequences(fileSet, newFileName, sample, false); // Wait 5 seconds. file processing should have run by then. Thread.sleep(5000); Collection<SampleSequencingObjectJoin> newSeqs = objectService.getSequencingObjectsForSample(sample); // re-read the concatenated file so file processing will be complete concatenateSequences = sampleService.getSampleForSequencingObject(concatenateSequences.getObject()); assertTrue("new seq collection should contain originals", newSeqs.containsAll(originalSeqs)); assertTrue("new seq collection should contain new object", newSeqs.contains(concatenateSequences)); assertEquals("new seq collection should have 1 more object", originalSeqs.size() + 1, newSeqs.size()); SequencingObject newSeqObject = concatenateSequences.getObject(); SequenceFile newFile = newSeqObject.getFiles().iterator().next(); assertTrue("new file should contain new name", newFile.getFileName().contains(newFileName)); long newFileSize = newFile.getFile().toFile().length(); assertEquals("new file should be 2x size of originals", originalLength * 2, newFileSize); } private SequenceFile createSequenceFile(String name) throws IOException{ Path sequenceFile = Files.createTempFile(name, ".fastq"); Files.write(sequenceFile, FASTQ_FILE_CONTENTS); return new SequenceFile(sequenceFile); } }
3e0681cac1d0f6c88683adc67c5003e45e5b0762
3,306
java
Java
dataprep-actions/src/main/java/org/talend/dataprep/transformation/actions/text/RemoveNonAlphaNumChars.java
ddstest/ddsprep
0b16d8487288df6ed71cdbac9c334a88195360af
[ "Apache-2.0" ]
null
null
null
dataprep-actions/src/main/java/org/talend/dataprep/transformation/actions/text/RemoveNonAlphaNumChars.java
ddstest/ddsprep
0b16d8487288df6ed71cdbac9c334a88195360af
[ "Apache-2.0" ]
null
null
null
dataprep-actions/src/main/java/org/talend/dataprep/transformation/actions/text/RemoveNonAlphaNumChars.java
ddstest/ddsprep
0b16d8487288df6ed71cdbac9c334a88195360af
[ "Apache-2.0" ]
null
null
null
34.8
122
0.697822
2,757
// ============================================================================ // // Copyright (C) 2006-2018 Talend Inc. - www.talend.com // // This source code is available under agreement available at // https://github.com/Talend/data-prep/blob/master/LICENSE // // You should have received a copy of the agreement // along with this program; if not, write to Talend SA // 9 rue Pages 92150 Suresnes, France // // ============================================================================ package org.talend.dataprep.transformation.actions.text; import static java.util.Collections.singletonList; import java.util.EnumSet; import java.util.List; import java.util.Locale; import java.util.Set; import org.apache.commons.lang.StringUtils; import org.talend.dataprep.api.action.Action; import org.talend.dataprep.api.dataset.ColumnMetadata; import org.talend.dataprep.api.dataset.row.DataSetRow; import org.talend.dataprep.api.type.Type; import org.talend.dataprep.parameters.Parameter; import org.talend.dataprep.transformation.actions.category.ActionCategory; import org.talend.dataprep.transformation.actions.common.AbstractActionMetadata; import org.talend.dataprep.transformation.actions.common.ActionsUtils; import org.talend.dataprep.transformation.actions.common.ColumnAction; import org.talend.dataprep.transformation.api.action.context.ActionContext; @Action(RemoveNonAlphaNumChars.ACTION_NAME) public class RemoveNonAlphaNumChars extends AbstractActionMetadata implements ColumnAction { /** * The action name. */ public static final String ACTION_NAME = "remove_non_alpha_num_chars"; //$NON-NLS-1$ protected static final String NEW_COLUMN_SUFFIX = "_only_alpha"; @Override public String getName() { return ACTION_NAME; } @Override public String getCategory(Locale locale) { return ActionCategory.STRINGS_ADVANCED.getDisplayName(locale); } @Override public boolean acceptField(ColumnMetadata column) { return Type.STRING.equals(Type.get(column.getType())); } private static final boolean CREATE_NEW_COLUMN_DEFAULT = false; @Override public List<Parameter> getParameters(Locale locale) { return ActionsUtils.appendColumnCreationParameter(super.getParameters(locale), locale, CREATE_NEW_COLUMN_DEFAULT); } @Override public void compile(ActionContext context) { super.compile(context); if (ActionsUtils.doesCreateNewColumn(context.getParameters(), CREATE_NEW_COLUMN_DEFAULT)) { ActionsUtils.createNewColumn(context, singletonList(ActionsUtils.additionalColumn().withName(context.getColumnName() + NEW_COLUMN_SUFFIX))); } } @Override public void applyOnColumn(DataSetRow row, ActionContext context) { final String columnId = context.getColumnId(); final String toCut = row.get(columnId); row.set(ActionsUtils.getTargetColumnId(context), apply(toCut)); } protected String apply(String from) { if (from == null) { return StringUtils.EMPTY; } return from.replaceAll("[[^\\p{IsAlnum}]&&[^\\p{IsWhite_Space}]]", ""); } @Override public Set<Behavior> getBehavior() { return EnumSet.of(Behavior.VALUES_COLUMN); } }
3e0681ce95f19e5866e85fbebb7c8576753243cd
3,767
java
Java
Saving Stacks/src/application/model/Home.java
ChelseaFlores/Saving-Stacks
bd387ea657194fa6301386dabfab289afaf61cb4
[ "Unlicense" ]
null
null
null
Saving Stacks/src/application/model/Home.java
ChelseaFlores/Saving-Stacks
bd387ea657194fa6301386dabfab289afaf61cb4
[ "Unlicense" ]
null
null
null
Saving Stacks/src/application/model/Home.java
ChelseaFlores/Saving-Stacks
bd387ea657194fa6301386dabfab289afaf61cb4
[ "Unlicense" ]
null
null
null
31.655462
94
0.662596
2,758
/** * Home takes care of converting the data for the pie chart * between weekly, monthly, and yearly * * @author Waewarin Chindarassami (fik450) */ package application.model; import java.util.ArrayList; import javafx.scene.chart.PieChart; public class Home { private static ArrayList<PieChart.Data> spending; public Home() { spending = new ArrayList<PieChart.Data>(); } /** * Changes all the goal amounts entered to be weekly * * @param goals GoalSet - HashMap of the goals * @return ArrayList<PieChart.Data> - ArrayList of the converted amounts */ public ArrayList<PieChart.Data> retrieveWeeklyData(GoalSet goals) { for(Integer key : goals.getGoalMap().keySet()) { if(goals.getGoalMap().get(key).getTime().equals("Weekly")) { double weekly = (goals.getGoalMap().get(key).getAmount()); spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), weekly)); } else if(goals.getGoalMap().get(key).getTime().equals("Monthly")) { double monthlyToWeekly = (goals.getGoalMap().get(key).getAmount()) / 4; spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), monthlyToWeekly)); } else if(goals.getGoalMap().get(key).getTime().equals("Yearly")) { double yearlyToWeekly = (goals.getGoalMap().get(key).getAmount()) / 52; spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), yearlyToWeekly)); } } return spending; } /** * Changes all the goal amounts entered to be monthly * * @param goals GoalSet - HashMap of the goals * @return ArrayList<PieChart.Data> - ArrayList of the converted amounts */ public ArrayList<PieChart.Data> retrieveMonthlyData(GoalSet goals) { for(Integer key : goals.getGoalMap().keySet()) { if(goals.getGoalMap().get(key).getTime().equals("Weekly")) { double weeklyToMonthly = (goals.getGoalMap().get(key).getAmount()) * 4; spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), weeklyToMonthly)); } else if(goals.getGoalMap().get(key).getTime().equals("Monthly")) { double monthly = goals.getGoalMap().get(key).getAmount(); spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), monthly)); } else if(goals.getGoalMap().get(key).getTime().equals("Yearly")) { double yearlyToMonthly = (goals.getGoalMap().get(key).getAmount()) / 12; spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), yearlyToMonthly)); } } return spending; } /** * Changes all the goal amounts entered to be yearly * * @param goals GoalSet - HashMap of the goals * @return ArrayList<PieChart.Data> - ArrayList of the converted amounts */ public ArrayList<PieChart.Data> retrieveYearlyData(GoalSet goals) { for(Integer key : goals.getGoalMap().keySet()) { if(goals.getGoalMap().get(key).getTime().equals("Weekly")) { double weeklyToYearly = (goals.getGoalMap().get(key).getAmount()) * 52; spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), weeklyToYearly)); } else if(goals.getGoalMap().get(key).getTime().equals("Monthly")) { double monthlyToYearly = (goals.getGoalMap().get(key).getAmount()) * 12; spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), monthlyToYearly)); } else if(goals.getGoalMap().get(key).getTime().equals("Yearly")) { double yearly = goals.getGoalMap().get(key).getAmount(); spending.add(new PieChart.Data(goals.getGoalMap().get(key).getTitle(), yearly)); } } return spending; } public ArrayList<PieChart.Data> getSpending() { return spending; } }
3e0682b763c36a2ad216936e52b66c01db89ae9d
85
java
Java
_src/Chapter 06/Ch06/src/main/java/org/packt/hotel/portal/model/form/package-info.java
paullewallencom/spring-978-1-7858-8827-4
c3217360777dc31ef4134403512f02492062323b
[ "Apache-2.0" ]
null
null
null
_src/Chapter 06/Ch06/src/main/java/org/packt/hotel/portal/model/form/package-info.java
paullewallencom/spring-978-1-7858-8827-4
c3217360777dc31ef4134403512f02492062323b
[ "Apache-2.0" ]
null
null
null
_src/Chapter 06/Ch06/src/main/java/org/packt/hotel/portal/model/form/package-info.java
paullewallencom/spring-978-1-7858-8827-4
c3217360777dc31ef4134403512f02492062323b
[ "Apache-2.0" ]
1
2019-05-21T08:10:46.000Z
2019-05-21T08:10:46.000Z
10.625
42
0.576471
2,759
/** * */ /** * @author sjctrags * */ package org.packt.hotel.portal.model.form;
3e0682f53cb1235dc7b862f9fabdb2f1407ce4ff
1,084
java
Java
src/main/java/com/example/application/views/util/PrinterReportJasper.java
ideat/kiosco
b16a0e7b611cba5c55cc4348031cf149175d9203
[ "Unlicense" ]
null
null
null
src/main/java/com/example/application/views/util/PrinterReportJasper.java
ideat/kiosco
b16a0e7b611cba5c55cc4348031cf149175d9203
[ "Unlicense" ]
null
null
null
src/main/java/com/example/application/views/util/PrinterReportJasper.java
ideat/kiosco
b16a0e7b611cba5c55cc4348031cf149175d9203
[ "Unlicense" ]
null
null
null
30.111111
138
0.71679
2,760
package com.example.application.views.util; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperPrint; import java.io.InputStream; import java.util.Collection; import java.util.Map; import java.util.Objects; public class PrinterReportJasper { public static byte[] imprimirComoPdf(InputStream istreams, Collection<?> datasources, Map<String, Object> params) throws JRException { Objects.requireNonNull(istreams,"'istreams' no puede ser omitido"); Objects.requireNonNull(datasources,"'datasources' no puede ser omitido"); ReportTemplateJrxml report = new ReportTemplateJrxml(istreams,datasources,params); JasperPrint jp = new JasperPrint(); jp = report.getReport(); return getReportPdf(jp); } public static byte[] getReportPdf(final JasperPrint jp) { try { return JasperExportManager.exportReportToPdf(jp); } catch (JRException e) { throw new RuntimeException(e); } } }
3e06831c04ba35b6f49f49899bf3bc07d034eed1
1,447
java
Java
CodeChef/ ZCO14001_ZCOPractice.java
SARTHAK-27/House-of-Codes
3ba987ea690faa8d009814fef41123fc70122aab
[ "MIT" ]
10
2020-10-06T05:03:25.000Z
2021-06-03T19:04:32.000Z
CodeChef/ ZCO14001_ZCOPractice.java
SARTHAK-27/House-of-Codes
3ba987ea690faa8d009814fef41123fc70122aab
[ "MIT" ]
27
2020-10-06T04:26:02.000Z
2021-03-25T11:06:30.000Z
CodeChef/ ZCO14001_ZCOPractice.java
SARTHAK-27/House-of-Codes
3ba987ea690faa8d009814fef41123fc70122aab
[ "MIT" ]
44
2018-10-26T19:34:41.000Z
2021-03-23T15:32:19.000Z
21.924242
69
0.55425
2,761
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone { public static BufferedReader reader; public static void main (String[] args) throws Exception { reader = new BufferedReader(new InputStreamReader(System.in)); String input[] = reader.readLine().split(" "); int N = Integer.parseInt(input[0]); int lane[] = new int[N]; int H = Integer.parseInt(input[1]); input = reader.readLine().split(" "); for(int k=0;k<N;k++){ lane[k] = Integer.parseInt(input[k]); } input = reader.readLine().split(" "); int move, crane_holding = 0, crane = 0; for(int k=0;k<input.length;k++){ move = Integer.parseInt(input[k]); if(move==0){ break; } switch(move){ case 1: if(crane>0){ crane -= 1; } break; case 2: if(crane<N-1){ crane +=1; } break; case 3: if(lane[crane]>0 && crane_holding == 0){ lane[crane] -= 1; crane_holding = 1; } break; case 4: if(lane[crane]<H && crane_holding == 1){ lane[crane] += 1; crane_holding = 0; } break; } // for( int j=0;j<lane.length;j++){ // System.out.print(lane[j] + " "); // } // System.out.println("-------- "+move); } for(int k=0;k<lane.length;k++){ System.out.print(lane[k] + " "); } } }
3e0683894c8cf0590c971b7c89625362c9d506df
449
java
Java
programacao-3/guiao11/ex1_parte1/Figura.java
andremourato/programacao
190cdf2f496a74913090ffbc1cf2bc159eb62b0e
[ "MIT" ]
15
2017-04-27T20:40:43.000Z
2020-10-09T09:24:01.000Z
programacao-3/guiao11/ex1_parte1/Figura.java
andremourato/programacao-1
190cdf2f496a74913090ffbc1cf2bc159eb62b0e
[ "MIT" ]
null
null
null
programacao-3/guiao11/ex1_parte1/Figura.java
andremourato/programacao-1
190cdf2f496a74913090ffbc1cf2bc159eb62b0e
[ "MIT" ]
3
2018-03-16T18:54:38.000Z
2021-07-09T11:58:41.000Z
22.45
90
0.703786
2,762
package aula11.ex1_parte1; public abstract class Figura implements Comparable<Figura> { private Ponto centro; public Figura(Ponto c){ centro = c; } public Ponto centro() { return centro; } public abstract double area(); public abstract double perimetro(); //Returns <0 if this < figura; Returns ==0 if this == figura; Returns >0 if this > figura public int compareTo(Figura figura){ return (int)(this.area()-figura.area()); } }
3e0683d5b74d7bcf0fe58059c53d3b5ae24adf7b
578
java
Java
src/test/java/com/kalessil/phpStorm/phpInspectionsEA/api/CascadeStringReplacementInspectorTest.java
angyvolin/phpinspectionsea
1043ee6f03917f8b95802f338f6f0ece917c36af
[ "MIT" ]
null
null
null
src/test/java/com/kalessil/phpStorm/phpInspectionsEA/api/CascadeStringReplacementInspectorTest.java
angyvolin/phpinspectionsea
1043ee6f03917f8b95802f338f6f0ece917c36af
[ "MIT" ]
null
null
null
src/test/java/com/kalessil/phpStorm/phpInspectionsEA/api/CascadeStringReplacementInspectorTest.java
angyvolin/phpinspectionsea
1043ee6f03917f8b95802f338f6f0ece917c36af
[ "MIT" ]
1
2020-10-07T09:18:04.000Z
2020-10-07T09:18:04.000Z
48.166667
100
0.823529
2,763
package com.kalessil.phpStorm.phpInspectionsEA.api; import com.intellij.testFramework.fixtures.CodeInsightFixtureTestCase; import com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage.CascadeStringReplacementInspector; final public class CascadeStringReplacementInspectorTest extends CodeInsightFixtureTestCase { public void testIfFindsAllPatterns() { myFixture.configureByFile("fixtures/api/cascade-str-replace.php"); myFixture.enableInspections(CascadeStringReplacementInspector.class); myFixture.testHighlighting(true, false, true); } }
3e0683fb408f236b390c25a7abae500cfcb6b775
553
java
Java
nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-config-client/src/main/java/io/nutz/demo/simple/MainLauncher.java
Rekoe/nutzboot
45fe5a6f3cd8681d026b05ce279b317b71d4f379
[ "Apache-2.0" ]
482
2017-10-20T07:15:32.000Z
2022-02-28T17:10:29.000Z
nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-config-client/src/main/java/io/nutz/demo/simple/MainLauncher.java
Rekoe/nutzboot
45fe5a6f3cd8681d026b05ce279b317b71d4f379
[ "Apache-2.0" ]
173
2017-11-07T09:04:09.000Z
2022-03-31T05:19:31.000Z
nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-config-client/src/main/java/io/nutz/demo/simple/MainLauncher.java
Rekoe/nutzboot
45fe5a6f3cd8681d026b05ce279b317b71d4f379
[ "Apache-2.0" ]
163
2017-10-20T07:15:58.000Z
2022-03-15T17:18:48.000Z
21.269231
58
0.746835
2,764
package io.nutz.demo.simple; import org.nutz.boot.NbApp; import org.nutz.ioc.impl.PropertiesProxy; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.Ok; @IocBean public class MainLauncher { @Inject protected PropertiesProxy conf; @Ok("json:full") @At("/config/getall") public PropertiesProxy getAll() { return conf; } public static void main(String[] args) throws Exception { new NbApp().setPrintProcDoc(true).run(); } }
3e06846a33270967c4e8ae8ed18288c910115f9f
2,517
java
Java
examples/nested-hybrid-java/src/main/java/taskflows/SyntheticTaskFlowTasks.java
bsc-wdc/distro-stream-lib
3e1d6a0d5f0b785043992b25e9b6167cf7d644b1
[ "Apache-2.0" ]
1
2019-09-17T13:36:05.000Z
2019-09-17T13:36:05.000Z
examples/nested-hybrid-java/src/main/java/taskflows/SyntheticTaskFlowTasks.java
cristianrcv/distro-stream-lib
d6c048fa26592fe0504c2cfb95afe5f5eb29d042
[ "Apache-2.0" ]
2
2021-12-10T01:23:10.000Z
2021-12-14T21:33:17.000Z
examples/nested-hybrid-java/src/main/java/taskflows/SyntheticTaskFlowTasks.java
cristianrcv/distro-stream-lib
d6c048fa26592fe0504c2cfb95afe5f5eb29d042
[ "Apache-2.0" ]
1
2021-12-13T15:41:17.000Z
2021-12-13T15:41:17.000Z
33.118421
109
0.657926
2,765
/* * Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package taskflows; import java.util.Random; import mains.MyElement; public class SyntheticTaskFlowTasks { /** * Processes the given element. * * @param input Element to process. * @param sleepBaseTime Process' base sleep time. * @param sleepRandomRange Sleep random range. * @return The output after processing the element. */ public static MyElement mapTask(MyElement input, int sleepBaseTime, int sleepRandomRange) { // Sleep to simulate computation try { Random randomGenerator = new Random(); int randomInt = randomGenerator.nextInt(sleepRandomRange); int sleepTime = sleepBaseTime + randomInt; Thread.sleep(sleepTime); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } // Create output object MyElement output = new MyElement(input.getInputFiles()); output.setProcessed(); return output; } /** * Merges the two given elements into the first one. * * @param elem1 First element to merge. * @param elem2 Second element to merge. * @param sleepBaseTime Merge's base sleep time. * @param sleepRandomRange Sleep random range. */ public static void mergeTask(MyElement elem1, MyElement elem2, int sleepBaseTime, int sleepRandomRange) { // Sleep to simulate computation try { Random randomGenerator = new Random(); int randomInt = randomGenerator.nextInt(sleepRandomRange); int sleepTime = sleepBaseTime + randomInt; Thread.sleep(sleepTime); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } // Update element 1 elem1.addInputFiles(elem2.getInputFiles()); elem1.setProcessed(); } }
3e0684dff9a351180525cb6c086d338478af1c85
3,110
java
Java
src/test/java/com/marklogic/client/ext/datamovement/job/ExportBatchesToDirectoryTest.java
marklogic-community/marklogic-data-movement-components
5b34f22ed15bce2335cd7d49467b6e6515237ab7
[ "Apache-2.0" ]
1
2019-01-11T20:06:18.000Z
2019-01-11T20:06:18.000Z
src/test/java/com/marklogic/client/ext/datamovement/job/ExportBatchesToDirectoryTest.java
marklogic-community/marklogic-data-movement-components
5b34f22ed15bce2335cd7d49467b6e6515237ab7
[ "Apache-2.0" ]
22
2018-03-07T22:37:20.000Z
2021-07-22T12:48:54.000Z
src/test/java/com/marklogic/client/ext/datamovement/job/ExportBatchesToDirectoryTest.java
marklogic-community/marklogic-data-movement-components
5b34f22ed15bce2335cd7d49467b6e6515237ab7
[ "Apache-2.0" ]
3
2018-02-27T19:35:44.000Z
2020-08-17T18:38:53.000Z
38.395062
105
0.669453
2,766
package com.marklogic.client.ext.datamovement.job; import com.marklogic.client.ext.datamovement.AbstractDataMovementTest; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.util.FileCopyUtils; import java.io.File; import java.util.Properties; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; public class ExportBatchesToDirectoryTest extends AbstractDataMovementTest { private File exportDir; private ExportBatchesToDirectoryJob job; @BeforeEach public void moreSetup() { writeDocuments("/test/three.xml", "/test/four.xml"); exportDir = new File("build/export-test/" + System.currentTimeMillis()); job = new ExportBatchesToDirectoryJob(exportDir); job.setWhereCollections(COLLECTION); job.setBatchSize(2); } @Test public void test() throws Exception { Properties props = new Properties(); props.setProperty("fileHeader", "<results>"); props.setProperty("fileFooter", "</results>"); props.setProperty("recordPrefix", "<wrapper>"); props.setProperty("recordSuffix", "</wrapper>"); props.setProperty("consistentSnapshot", "true"); job.configureJob(props); job.run(client); String text = new String(FileCopyUtils.copyToByteArray(new File(exportDir, "batch-1.xml"))); String otherText = new String(FileCopyUtils.copyToByteArray(new File(exportDir, "batch-2.xml"))); logger.info(text); logger.info(otherText); if (text.contains(FIRST_URI)) { verifyFileWithDocumentsOneAndTwo(text); verifyFileWithDocumentsThreeAndFour(otherText); } else { verifyFileWithDocumentsOneAndTwo(otherText); verifyFileWithDocumentsThreeAndFour(text); } } @Test public void customFileExtension() { job.getExportListener() .withFilenameExtension(".txt") .withFilenamePrefix("my-batch-"); job.run(client); assertTrue(new File(exportDir, "my-batch-1.txt").exists()); assertTrue(new File(exportDir, "my-batch-2.txt").exists()); assertFalse(new File(exportDir, "batch-1.xml").exists()); assertFalse(new File(exportDir, "batch-2.xml").exists()); } private void verifyFileWithDocumentsOneAndTwo(String text) { assertTrue(text.contains("<wrapper><test>" + FIRST_URI + "</test></wrapper>")); assertTrue(text.contains("<wrapper><test>" + SECOND_URI + "</test></wrapper>")); assertTrue(text.startsWith("<results><wrapper>")); assertTrue(text.endsWith("</wrapper></results>")); } private void verifyFileWithDocumentsThreeAndFour(String text) { assertTrue(text.contains("<wrapper><test>/test/three.xml</test></wrapper>")); assertTrue(text.contains("<wrapper><test>/test/four.xml</test></wrapper>")); assertTrue(text.startsWith("<results><wrapper>")); assertTrue(text.endsWith("</wrapper></results>")); } }
3e0685ec7c965f90c2a62b68f068389eceff6e01
4,362
java
Java
src/main/java/com/justjournal/core/MailSender.java
laffer1/justjournal
34cb56dca4fc4ca41e10418eee5bbddd89049f07
[ "BSD-2-Clause" ]
null
null
null
src/main/java/com/justjournal/core/MailSender.java
laffer1/justjournal
34cb56dca4fc4ca41e10418eee5bbddd89049f07
[ "BSD-2-Clause" ]
52
2018-12-03T23:13:17.000Z
2021-12-21T18:25:26.000Z
src/main/java/com/justjournal/core/MailSender.java
laffer1/justjournal
34cb56dca4fc4ca41e10418eee5bbddd89049f07
[ "BSD-2-Clause" ]
3
2017-07-19T19:42:35.000Z
2020-02-11T06:19:08.000Z
35.463415
98
0.716185
2,767
/* * Copyright (c) 2003-2021 Lucas Holt * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ package com.justjournal.core; import com.justjournal.model.QueueMail; import com.justjournal.repository.QueueMailRepository; import com.justjournal.utility.ForcedAuthenticator; import java.util.Date; import java.util.Properties; import javax.mail.Address; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Profile; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** * Send e-mail notifications for just journal from the mail queue. * * @author Lucas Holt * @version $Id: MailSender.java,v 1.8 2009/03/16 22:10:31 laffer1 Exp $ */ @Slf4j @Component @Profile("!test") public class MailSender { @Autowired private QueueMailRepository queueMailRepository; @Autowired private Settings set; @Scheduled(fixedDelay = 120000, initialDelay = 30000) public void send() { log.info("MailSender: Init"); try { final Properties props = new Properties(); props.put("mail.smtp.host", set.getMailHost()); props.put("mail.smtp.user", set.getMailUser()); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.port", set.getMailPort()); final Session s = Session.getInstance(props, new ForcedAuthenticator()); log.trace( "MailSender: " + set.getMailUser() + "@" + set.getMailHost() + ":" + set.getMailPort()); final Iterable<QueueMail> items = queueMailRepository.findAll(); log.trace("MailSender: Recordset loaded."); for (final QueueMail item : items) { if (sendMessage(s, item)) { queueMailRepository.deleteById(item.getId()); } } } catch (final Exception me) { log.error("MailSender: Exception", me); } } private boolean sendMessage(final Session s, final QueueMail item) { boolean sentok = true; try { final InternetAddress from = new InternetAddress(item.getFrom()); final InternetAddress to = new InternetAddress(item.getTo()); final MimeMessage message = new MimeMessage(s); message.setFrom(from); message.setRecipient(Message.RecipientType.TO, to); message.setSubject(item.getSubject()); message.setText(item.getBody()); message.setSentDate(new Date()); message.saveChanges(); final Address[] a = {to}; final Transport t = s.getTransport("smtp"); t.connect(); t.sendMessage(message, a); t.close(); } catch (final AddressException e) { sentok = false; log.error("MailSender: Invalid address. ", e); } catch (final MessagingException me) { sentok = false; log.error("MailSender: Send failed.", me); } return sentok; } }
3e068680249381c8aeadcaa6de847596c861f6cb
4,399
java
Java
src/main/java/de/tum/in/www1/artemis/domain/GroupNotification.java
ungaralex/ArTEMiS
b5317946eb3b6e4b6922893218c8a8b2bc1a8854
[ "MIT" ]
null
null
null
src/main/java/de/tum/in/www1/artemis/domain/GroupNotification.java
ungaralex/ArTEMiS
b5317946eb3b6e4b6922893218c8a8b2bc1a8854
[ "MIT" ]
null
null
null
src/main/java/de/tum/in/www1/artemis/domain/GroupNotification.java
ungaralex/ArTEMiS
b5317946eb3b6e4b6922893218c8a8b2bc1a8854
[ "MIT" ]
null
null
null
29.722973
123
0.660832
2,768
package de.tum.in.www1.artemis.domain; import java.io.Serializable; import java.time.ZonedDateTime; import java.util.Objects; import javax.persistence.*; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.google.gson.JsonObject; import de.tum.in.www1.artemis.domain.enumeration.GroupNotificationType; /** * A GroupNotification. */ @Entity @DiscriminatorValue(value = "G") public class GroupNotification extends Notification implements Serializable { private static final long serialVersionUID = 1L; @Enumerated(EnumType.STRING) @Column(name = "jhi_type") private GroupNotificationType type; @ManyToOne @JsonIgnoreProperties("groupNotifications") private Course course; // jhipster-needle-entity-add-field - JHipster will add fields here, do not remove public GroupNotificationType getType() { return type; } public GroupNotification type(GroupNotificationType type) { this.type = type; return this; } public void setType(GroupNotificationType type) { this.type = type; } public Course getCourse() { return course; } public GroupNotification course(Course course) { this.course = course; return this; } public GroupNotification() { } public GroupNotification(Course course, String title, String notificationText, User user, GroupNotificationType type) { this.setCourse(course); this.setType(type); this.setNotificationDate(ZonedDateTime.now()); this.setTitle(title); this.setText(notificationText); this.setAuthor(user); } public void setCourse(Course course) { this.course = course; } // jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GroupNotification groupNotification = (GroupNotification) o; if (groupNotification.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), groupNotification.getId()); } public String getExerciseCreatedTarget(Exercise exercise) { return getExerciseTarget(exercise, "exerciseCreated"); } public String getExerciseUpdatedTarget(Exercise exercise) { return getExerciseTarget(exercise, "exerciseUpdated"); } public String getExerciseAnswerTarget(Exercise exercise) { return getExerciseTarget(exercise, "newAnswer"); } public String getExerciseQuestionTarget(Exercise exercise) { return getExerciseTarget(exercise, "newQuestion"); } public String getLectureQuestionTarget(Lecture lecture) { return getLectureTarget(lecture, "newQuestion"); } public String getLectureAnswerTarget(Lecture lecture) { return getLectureTarget(lecture, "newAnswer"); } public String getAttachmentUpdated(Lecture lecture) { return getLectureTarget(lecture, "attachmentUpdated"); } public String getExerciseTarget(Exercise exercise, String message) { JsonObject target = new JsonObject(); target.addProperty("message", message); target.addProperty("id", exercise.getId()); target.addProperty("entity", "exercises"); target.addProperty("course", exercise.getCourse().getId()); target.addProperty("mainPage", "overview"); return target.toString(); } public String getLectureTarget(Lecture lecture, String message) { JsonObject target = new JsonObject(); target.addProperty("message", message); target.addProperty("id", lecture.getId()); target.addProperty("entity", "lectures"); target.addProperty("course", lecture.getCourse().getId()); target.addProperty("mainPage", "overview"); return target.toString(); } public String getTopic() { return "/topic/course/" + getCourse().getId() + "/" + getType(); } @Override public int hashCode() { return Objects.hashCode(getId()); } @Override public String toString() { return "GroupNotification{" + "id=" + getId() + ", type='" + getType() + "'" + "}"; } }
3e06872965aead1e921c8d70a2f2683ca1694cb3
1,942
java
Java
src/main/java/com/linepro/modellbahn/hateoas/ZugModelProcessor.java
linepro/ModellBahn
607b529e3bfa0979d6a63809bf440ebb16a35c76
[ "MIT" ]
null
null
null
src/main/java/com/linepro/modellbahn/hateoas/ZugModelProcessor.java
linepro/ModellBahn
607b529e3bfa0979d6a63809bf440ebb16a35c76
[ "MIT" ]
125
2018-09-05T19:08:42.000Z
2022-03-31T09:01:10.000Z
src/main/java/com/linepro/modellbahn/hateoas/ZugModelProcessor.java
linepro/ModellBahn
607b529e3bfa0979d6a63809bf440ebb16a35c76
[ "MIT" ]
1
2019-02-20T21:08:04.000Z
2019-02-20T21:08:04.000Z
37.346154
120
0.765705
2,769
package com.linepro.modellbahn.hateoas; import static com.linepro.modellbahn.ModellBahnApplication.PREFIX; import static com.linepro.modellbahn.controller.impl.ApiPaths.ADD_CONSIST; import static com.linepro.modellbahn.controller.impl.ApiPaths.ADD_ZUG; import static com.linepro.modellbahn.controller.impl.ApiPaths.DELETE_ZUG; import static com.linepro.modellbahn.controller.impl.ApiPaths.GET_ZUG; import static com.linepro.modellbahn.controller.impl.ApiPaths.SEARCH_ZUG; import static com.linepro.modellbahn.controller.impl.ApiPaths.UPDATE_ZUG; import static com.linepro.modellbahn.controller.impl.ApiRels.FAHRZEUGEN; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.hateoas.server.RepresentationModelProcessor; import org.springframework.stereotype.Component; import com.linepro.modellbahn.hateoas.impl.LinkTemplateImpl; import com.linepro.modellbahn.hateoas.impl.NamedModelProcessor; import com.linepro.modellbahn.model.ZugModel; @Lazy @Component(PREFIX + "ZugModelProcessor") public class ZugModelProcessor extends NamedModelProcessor<ZugModel> implements RepresentationModelProcessor<ZugModel> { private ZugConsistModelProcessor consistProcessor; @Autowired public ZugModelProcessor(ZugConsistModelProcessor consistProcessor) { super( ADD_ZUG, GET_ZUG, UPDATE_ZUG, DELETE_ZUG, SEARCH_ZUG, new LinkTemplateImpl(FAHRZEUGEN, ADD_CONSIST, EXTRACTOR) ); this.consistProcessor = consistProcessor; } @Override public ZugModel process(ZugModel model) { if (!CollectionUtils.isEmpty(model.getConsist())) { model.getConsist() .forEach(c -> consistProcessor.process(c)); } return super.process(model); } }
3e06877210aa9eacfdbd87971141de87bc405851
2,687
java
Java
simba-common/src/main/java/cn/ism/fw/simba/base/dao/mybatis/CustomBeanDefinitionRegistry.java
is-m/simba
094347a8b37987abd00e45b7a950586ad4536e14
[ "Apache-2.0" ]
3
2017-09-26T17:39:34.000Z
2019-02-20T01:27:38.000Z
simba-common/src/main/java/cn/ism/fw/simba/base/dao/mybatis/CustomBeanDefinitionRegistry.java
is-m/simba
094347a8b37987abd00e45b7a950586ad4536e14
[ "Apache-2.0" ]
1
2019-02-14T14:12:21.000Z
2019-02-14T14:12:21.000Z
simba-common/src/main/java/cn/ism/fw/simba/base/dao/mybatis/CustomBeanDefinitionRegistry.java
is-m/simba
094347a8b37987abd00e45b7a950586ad4536e14
[ "Apache-2.0" ]
3
2018-03-13T04:59:33.000Z
2021-04-10T11:10:44.000Z
40.712121
129
0.820246
2,770
package cn.ism.fw.simba.base.dao.mybatis; import java.io.IOException; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor; import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider; import org.springframework.core.type.classreading.MetadataReader; import org.springframework.core.type.classreading.MetadataReaderFactory; import org.springframework.core.type.filter.TypeFilter; import org.springframework.stereotype.Component; /** * 自定义的注册bean定义 * @since 2017年12月27日 * @author Administrator */ @Component public class CustomBeanDefinitionRegistry implements BeanDefinitionRegistryPostProcessor { private static final Logger LOG = LoggerFactory.getLogger(CustomBeanDefinitionRegistry.class); @Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { LOG.info("CustomBeanDefinitionRegistryPostProcessor.postProcessBeanFactory"); } @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException { LOG.info("CustomBeanDefinitionRegistryPostProcessor.postProcessBeanDefinitionRegistry"); // 注册所有没有实现类的Dao接口 // 获取指定DAO包下的所有接口 // 是否使用默认的filter,使用默认的filter意味着只扫描那些类上拥有Component、Service、Repository或Controller注解的类 /* boolean useDefaultFilters = false; String basePackage = "cn.ism.fw.simba.sitemap.dao"; // ClassPathScanningCandidateComponentProvider 可以根据一定的规则扫描类路径下满足特定条件的Class来作为候选的bean定义 ClassPathScanningCandidateComponentProvider beanScanner = new ClassPathScanningCandidateComponentProvider(useDefaultFilters); beanScanner.addIncludeFilter(new TypeFilter() { @Override public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException { return metadataReader.getClassMetadata().isConcrete(); } }); Set<BeanDefinition> beanDefinitions = beanScanner.findCandidateComponents(basePackage); for (BeanDefinition beanDefinition : beanDefinitions) { //beanName通常由对应的BeanNameGenerator来生成,比如Spring自带的AnnotationBeanNameGenerator、DefaultBeanNameGenerator等,也可以自己实现。 String beanName = beanDefinition.getBeanClassName(); registry.registerBeanDefinition(beanName, beanDefinition); } */ } }
3e06879b9d01f86323fbb851fea0156002fedfd8
2,730
java
Java
async/src/main/java/com/example/demo/domain/JpaConfig.java
hantsy/spring6-sandbox
1ec743b7549379087fb42086b8c2aa7d1c2bea9c
[ "Apache-2.0" ]
8
2021-12-30T04:51:56.000Z
2022-02-05T11:48:31.000Z
async/src/main/java/com/example/demo/domain/JpaConfig.java
hantsy/spring6-sandbox
1ec743b7549379087fb42086b8c2aa7d1c2bea9c
[ "Apache-2.0" ]
5
2021-12-30T04:07:14.000Z
2022-02-14T09:35:13.000Z
async/src/main/java/com/example/demo/domain/JpaConfig.java
hantsy/spring6-sandbox
1ec743b7549379087fb42086b8c2aa7d1c2bea9c
[ "Apache-2.0" ]
3
2022-01-01T16:08:51.000Z
2022-01-07T11:39:44.000Z
42.65625
123
0.79707
2,771
package com.example.demo.domain; import org.hibernate.jpa.HibernatePersistenceProvider; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.core.env.Environment; import org.springframework.orm.jpa.JpaTransactionManager; import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.support.TransactionTemplate; import javax.sql.DataSource; import java.util.Properties; @Configuration @EnableTransactionManagement @PropertySource(value = "classpath:/jpa.properties", ignoreResourceNotFound = true) public class JpaConfig { private static final String ENV_HIBERNATE_DIALECT = "hibernate.dialect"; private static final String ENV_HIBERNATE_HBM2DDL_AUTO = "hibernate.hbm2ddl.auto"; private static final String ENV_HIBERNATE_SHOW_SQL = "hibernate.show_sql"; private static final String ENV_HIBERNATE_FORMAT_SQL = "hibernate.format_sql"; @Autowired private Environment env; @Bean public LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource) { LocalContainerEntityManagerFactoryBean emf = new LocalContainerEntityManagerFactoryBean(); emf.setDataSource(dataSource); emf.setPackagesToScan("com.example.demo"); emf.setPersistenceProvider(new HibernatePersistenceProvider()); emf.setJpaProperties(jpaProperties()); return emf; } private Properties jpaProperties() { Properties extraProperties = new Properties(); extraProperties.put(ENV_HIBERNATE_FORMAT_SQL, env.getProperty(ENV_HIBERNATE_FORMAT_SQL)); extraProperties.put(ENV_HIBERNATE_SHOW_SQL, env.getProperty(ENV_HIBERNATE_SHOW_SQL)); extraProperties.put(ENV_HIBERNATE_HBM2DDL_AUTO, env.getProperty(ENV_HIBERNATE_HBM2DDL_AUTO)); if (env.getProperty(ENV_HIBERNATE_DIALECT) != null) { extraProperties.put(ENV_HIBERNATE_DIALECT, env.getProperty(ENV_HIBERNATE_DIALECT)); } return extraProperties; } @Bean public PlatformTransactionManager transactionManager(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean) { return new JpaTransactionManager(entityManagerFactoryBean.getObject()); } @Bean public TransactionTemplate transactionTemplate(PlatformTransactionManager txManager) { return new TransactionTemplate(txManager); } }
3e068852a1d940567bdc7f1802cd48313f6bc3e8
1,689
java
Java
dingo-server/coordinator/src/main/java/io/dingodb/server/coordinator/meta/ScheduleMetaAdaptor.java
wangzhen11aaa/dingo
980348a4ea63c3e0cefab42f13a37aae36b152c9
[ "Apache-2.0" ]
1
2022-03-07T04:49:02.000Z
2022-03-07T04:49:02.000Z
dingo-server/coordinator/src/main/java/io/dingodb/server/coordinator/meta/ScheduleMetaAdaptor.java
frankbaul/dingo
4ae009c812a0ff37e15e33dd1f81153e01ca3ac3
[ "Apache-2.0" ]
null
null
null
dingo-server/coordinator/src/main/java/io/dingodb/server/coordinator/meta/ScheduleMetaAdaptor.java
frankbaul/dingo
4ae009c812a0ff37e15e33dd1f81153e01ca3ac3
[ "Apache-2.0" ]
null
null
null
30.160714
75
0.778567
2,772
/* * Copyright 2021 DataCanvas * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.dingodb.server.coordinator.meta; import io.dingodb.raft.util.Endpoint; import io.dingodb.server.coordinator.GeneralId; import io.dingodb.server.coordinator.app.impl.RegionApp; import io.dingodb.server.coordinator.app.impl.RegionView; import io.dingodb.server.coordinator.namespace.Namespace; import io.dingodb.server.coordinator.namespace.NamespaceView; import io.dingodb.server.coordinator.resource.impl.ExecutorView; import java.util.concurrent.CompletableFuture; public interface ScheduleMetaAdaptor extends MetaAdaptor { NamespaceView namespaceView(); Namespace namespace(); RegionApp regionApp(GeneralId id); RegionView regionView(GeneralId id); ExecutorView executorView(GeneralId id); ExecutorView executorView(Endpoint endpoint); GeneralId storeId(Endpoint endpoint); void updateRegionView(RegionApp regionApp, RegionView regionView); void updateRegionApp(RegionApp regionApp); void updateExecutorView(ExecutorView executorView); CompletableFuture<Long> newResourceSeq(); CompletableFuture<Long> newAppSeq(); }
3e0688e46ffcbbabe963319f0122b2c879616414
841
java
Java
x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/wrapout/content/WrapOutReadCompleted.java
fancylou/o2oa
e7ec39fc586fab3d38b62415ed06448e6a9d6e26
[ "BSD-3-Clause" ]
1
2019-10-05T03:47:23.000Z
2019-10-05T03:47:23.000Z
x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/wrapout/content/WrapOutReadCompleted.java
Mendeling/o2oa
afd053e465b54b1b21b8db558bffbd93e7923b79
[ "BSD-3-Clause" ]
null
null
null
x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/wrapout/content/WrapOutReadCompleted.java
Mendeling/o2oa
afd053e465b54b1b21b8db558bffbd93e7923b79
[ "BSD-3-Clause" ]
null
null
null
21.564103
82
0.775268
2,773
package com.x.processplatform.assemble.surface.wrapout.content; import java.util.ArrayList; import java.util.List; import com.x.base.core.entity.JpaObject; import com.x.base.core.http.annotation.Wrap; import com.x.processplatform.assemble.surface.Control; import com.x.processplatform.core.entity.content.ReadCompleted; @Wrap(ReadCompleted.class) public class WrapOutReadCompleted extends ReadCompleted { private static final long serialVersionUID = -1305610937955675829L; public static List<String> Excludes = new ArrayList<>(JpaObject.FieldsInvisible); private Long rank; private Control control; public Long getRank() { return rank; } public void setRank(Long rank) { this.rank = rank; } public Control getControl() { return control; } public void setControl(Control control) { this.control = control; } }
3e068a0ca4dcd4afd3505f1b867c9f1b937bfbe5
8,010
java
Java
sia-task-client/sia-task-client-zookeeper/src/main/java/com/sia/task/hunter/aspect/OnlineTaskAspect4Scheduler.java
java-app-scans/sia-task
f0bb2c4fd40b752bbd571e17232db7c24ad041c4
[ "Apache-2.0" ]
1,882
2019-05-15T03:26:26.000Z
2022-03-30T16:40:55.000Z
sia-task-client/sia-task-client-zookeeper/src/main/java/com/sia/task/hunter/aspect/OnlineTaskAspect4Scheduler.java
roger68/sia-task
b1ec4d8c3f14665a557581d742dcc40b6a6cbded
[ "Apache-2.0" ]
80
2019-05-23T07:22:56.000Z
2021-07-24T04:03:30.000Z
sia-task-client/sia-task-client-zookeeper/src/main/java/com/sia/task/hunter/aspect/OnlineTaskAspect4Scheduler.java
roger68/sia-task
b1ec4d8c3f14665a557581d742dcc40b6a6cbded
[ "Apache-2.0" ]
607
2019-05-15T03:44:04.000Z
2022-03-08T04:13:06.000Z
34.826087
124
0.659551
2,774
/*- * << * task * == * Copyright (C) 2019 - 2020 sia * == * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * >> */ package com.sia.task.hunter.aspect; import com.sia.task.core.IMetadataUpload; import com.sia.task.core.http.SiaHttpResponse; import com.sia.task.core.task.SiaJobStatus; import com.sia.task.core.util.DateFormatHelper; import com.sia.task.core.util.JsonHelper; import com.sia.task.core.util.StringHelper; import com.sia.task.hunter.annotation.OnlineTask; import com.sia.task.integration.curator.properties.ZookeeperConfiguration; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * <p> * * @author huangqian * @author maozhengwei * version V1.0.0 * date 2020/5/11 11:11 上午 * </p> * @date 2018/6/29 11:07 * @description 补偿机制 * </p> * * <p> * Fixed an issue that caused the scheduler to fail to obtain exception information due to an exception being ignored **/ @Aspect public class OnlineTaskAspect4Scheduler { private static Logger log = LoggerFactory.getLogger(OnlineTaskAspect4Scheduler.class); private static Map<String, SiaJobStatus> runningTaskMap = new ConcurrentHashMap<>(); private static final String OnlineJobStatusKey = "OnlineJobStatus"; private static final String MqMessageKey = "MqMessage"; private static final String GroupNameKey = "GroupName"; private static final String ApplicationNameKey = "ApplicationName"; private static final String TaskNameKey = "TaskName"; private static final String HostKey = "Host"; private static final String RequestURLKey = "RequestURL"; private static final String DateKey = "Date"; @Resource IMetadataUpload upload; @Resource ZookeeperConfiguration configuration; @Pointcut("@annotation(onlineTask)") public void serviceStatistics(OnlineTask onlineTask) { } @Around(value = "serviceStatistics(onlineTask)") public Object around(ProceedingJoinPoint point, OnlineTask onlineTask) throws Throwable { //白名单检查 Object o; if (!checkAuth(onlineTask)) { return SiaHttpResponse.failure("This task is not authorized!"); } //单例单线程检查 if (configuration.isOnlinetaskSerial() && isSerial(onlineTask)) { ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); HttpServletRequest request = attributes.getRequest(); String task = point.getSignature().getDeclaringTypeName() + "." + point.getSignature().getName(); if (runningTaskMap.containsKey(task) && SiaJobStatus.RUNNING.equals(runningTaskMap.get(task))) { return SiaHttpResponse.failure("This task is running!"); } else { log.info(JsonHelper.toString(builtMqMessage(request, "Begin", "false"))); runningTaskMap.put(task, SiaJobStatus.RUNNING); o = point.proceed(); if (SiaJobStatus.RUNNING.equals(runningTaskMap.get(task))) { log.info(JsonHelper.toString(builtMqMessage(request, "Success", "false"))); runningTaskMap.put(task, SiaJobStatus.STOP); } return o; } } try { o = point.proceed(); } catch (Exception e) { return SiaHttpResponse.failure(e.getMessage(), "An - unknown exception occurred in the executor running task!"); } return o; } /** * 任务执行异常 * * @param joinPoint * @param ex * @param onlineTask */ @AfterThrowing(pointcut = "serviceStatistics(onlineTask)", throwing = "ex") public void throwss(JoinPoint joinPoint, Throwable ex, OnlineTask onlineTask) { ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); HttpServletRequest request = attributes.getRequest(); String task = joinPoint.getSignature().getDeclaringTypeName() + "." + joinPoint.getSignature().getName(); if (SiaJobStatus.RUNNING.equals(runningTaskMap.get(task))) { log.info(JsonHelper.toString(builtMqMessage(request, "Fail", "false"))); runningTaskMap.put(task, SiaJobStatus.STOP); } } /** * log message * * @param request * @param onlineJobStatusKey * @param mqMessage * @return */ public Map<String, String> builtMqMessage(HttpServletRequest request, String onlineJobStatusKey, String mqMessage) { Map<String, String> logMess = new HashMap<String, String>(8); logMess.put(GroupNameKey, configuration.getApplicationName().substring(0, configuration.getApplicationName().indexOf("-"))); logMess.put(ApplicationNameKey, configuration.getApplicationName()); logMess.put(TaskNameKey, configuration.getApplicationName() + ":" + request.getServletPath()); logMess.put(HostKey, configuration.getIPAddress() + ":" + configuration.getServerPort()); logMess.put(RequestURLKey, request.getRequestURL().toString()); logMess.put(DateKey, DateFormatHelper.format(new Date())); logMess.put(OnlineJobStatusKey, onlineJobStatusKey); logMess.put(MqMessageKey, mqMessage); return logMess; } /** * 是否开启单例线程管控 * * @param instance * @return */ private boolean isSerial(OnlineTask instance) { boolean flag = true; try { flag = instance.enableSerial(); } catch (Throwable e) { log.error("OnlineTask.enableSerial() throws :", e); } return flag; } /** * 检查调度器是否是合法的调度器 * * @param instance * @return */ private boolean checkAuth(OnlineTask instance) { if (isAuth(instance)) { ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder .getRequestAttributes(); HttpServletRequest request = attributes.getRequest(); String ip = request.getRemoteAddr(); log.info("who call me ? ->[" + ip + "]"); return shouldIAccept(ip); } return true; } private boolean isAuth(OnlineTask instance) { boolean flag = true; try { flag = instance.enableAuth(); } catch (Throwable e) { log.error("OnlineTask.enableAuth() throws :", e); } return flag; } private boolean shouldIAccept(String ip) { if (StringHelper.isEmpty(ip)) { return false; } List<String> whiteList = upload.loadAuthIpList(); if (whiteList == null) { return false; } for (String item : whiteList) { if (ip.equals(item)) { return true; } } return false; } }
3e068a270d89d378345c07f448bc2d5ab4ef8b9e
1,900
java
Java
src/main/java/net/voxelindustry/armedlogistics/common/entity/FacingCorner.java
VoxelIndustry/WoodenGears
7d9e8b4c8b01049c3344a9b48378ef64748e7214
[ "Apache-2.0" ]
1
2018-03-30T20:52:14.000Z
2018-03-30T20:52:14.000Z
src/main/java/net/voxelindustry/armedlogistics/common/entity/FacingCorner.java
VoxelIndustry/WoodenGears
7d9e8b4c8b01049c3344a9b48378ef64748e7214
[ "Apache-2.0" ]
21
2018-03-30T21:30:48.000Z
2018-04-02T17:19:26.000Z
src/main/java/net/voxelindustry/armedlogistics/common/entity/FacingCorner.java
VoxelIndustry/WoodenGears
7d9e8b4c8b01049c3344a9b48378ef64748e7214
[ "Apache-2.0" ]
null
null
null
32.20339
97
0.577368
2,775
package net.voxelindustry.armedlogistics.common.entity; import lombok.Getter; import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Vec3d; import static net.voxelindustry.armedlogistics.common.entity.EntityLogisticArm.RAIL_OFFSET; public enum FacingCorner { NORTH_EAST(RAIL_OFFSET, 0, 1 - RAIL_OFFSET), // NORTH_WEST(RAIL_OFFSET, 0, RAIL_OFFSET), // EAST_NORTH(1 - RAIL_OFFSET, 0, RAIL_OFFSET), // EAST_SOUTH(RAIL_OFFSET, 0, RAIL_OFFSET), // SOUTH_EAST(1 - RAIL_OFFSET, 0, 1 - RAIL_OFFSET), // SOUTH_WEST(1 - RAIL_OFFSET, 0, RAIL_OFFSET), // WEST_SOUTH(RAIL_OFFSET, 0, 1 - RAIL_OFFSET), // WEST_NORTH(1 - RAIL_OFFSET, 0, 1 - RAIL_OFFSET); // @Getter private Vec3d vector; FacingCorner(double x, double y, double z) { vector = new Vec3d(x, y, z); } public static FacingCorner fromFacings(Direction from, Direction to) { switch (from) { case NORTH: if (to == Direction.EAST) return NORTH_EAST; return NORTH_WEST; case SOUTH: if (to == Direction.EAST) return SOUTH_EAST; return SOUTH_WEST; case WEST: if (to == Direction.NORTH) return WEST_NORTH; return WEST_SOUTH; case EAST: if (to == Direction.NORTH) return EAST_NORTH; return EAST_SOUTH; } return null; } public static FacingCorner fromBlockPos(BlockPos from, BlockPos to) { return fromFacings(Direction.getFacingFromVector(from.getX(), from.getY(), from.getZ()), Direction.getFacingFromVector(to.getX(), to.getY(), to.getZ())); } }
3e068a2eea11f190e6696c6620fddd9a96a91403
1,562
java
Java
src/main/java/com/godcheese/tile/database/MySqlField.java
godcheese/tile
b4fd632bc6c7896ae43e1d4c659922c05b007d10
[ "MIT" ]
null
null
null
src/main/java/com/godcheese/tile/database/MySqlField.java
godcheese/tile
b4fd632bc6c7896ae43e1d4c659922c05b007d10
[ "MIT" ]
null
null
null
src/main/java/com/godcheese/tile/database/MySqlField.java
godcheese/tile
b4fd632bc6c7896ae43e1d4c659922c05b007d10
[ "MIT" ]
null
null
null
20.552632
68
0.573624
2,776
package com.godcheese.tile.database; /** * @author godcheese [[email protected]] * @date 2018-04-21 */ public class MySqlField implements DatabaseField { private String name; private SqlGenerateProperties.MySqlFieldType type; private int maxLength; private int minLength; private String comment; @Override public String getName() { return name; } @Override public void setName(String name) { this.name = name; } @Override public SqlGenerateProperties.MySqlFieldType getType() { return type; } @Override public void setType(SqlGenerateProperties.MySqlFieldType type) { this.type = type; } @Override public int getMaxLength() { return maxLength; } @Override public void setMaxLength(int maxLength) { this.maxLength = maxLength; } @Override public int getMinLength() { return minLength; } @Override public void setMinLength(int minLength) { this.minLength = minLength; } @Override public String getComment() { return comment; } @Override public void setComment(String comment) { this.comment = comment; } @Override public String toString() { return "MySqlField{" + "name='" + name + '\'' + ", type=" + type + ", maxLength=" + maxLength + ", minLength=" + minLength + ", comment='" + comment + '\'' + '}'; } }
3e068a6a0741345a04047070a3fd3da8b4a2e3af
884
java
Java
engine/src/main/java/org/terasology/world/generation/FacetBorder.java
rooterWhy/Terasology
a38d0c814009f83b27a13564d9b2429452c9dd50
[ "Apache-2.0", "CC-BY-4.0" ]
3
2016-05-14T22:55:53.000Z
2017-06-13T17:20:13.000Z
engine/src/main/java/org/terasology/world/generation/FacetBorder.java
rooterWhy/Terasology
a38d0c814009f83b27a13564d9b2429452c9dd50
[ "Apache-2.0", "CC-BY-4.0" ]
16
2016-05-01T03:22:35.000Z
2016-05-02T00:16:43.000Z
engine/src/main/java/org/terasology/world/generation/FacetBorder.java
rooterWhy/Terasology
a38d0c814009f83b27a13564d9b2429452c9dd50
[ "Apache-2.0", "CC-BY-4.0" ]
2
2017-12-11T22:08:35.000Z
2020-04-18T11:12:56.000Z
28.516129
75
0.737557
2,777
/* * Copyright 2014 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.terasology.world.generation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** */ @Retention(RetentionPolicy.RUNTIME) public @interface FacetBorder { int top() default 0; int bottom() default 0; int sides() default 0; }
3e068ad3e18f917ba2bb10845528b01b9cb672ac
3,344
java
Java
src/main/java/io/gitea/model/AddTimeOption.java
justusbunsi/java-gitea-api
86e509e65628cde2be32b554bc25228059f41805
[ "MIT" ]
19
2020-05-27T13:56:53.000Z
2022-03-10T21:57:30.000Z
src/main/java/io/gitea/model/AddTimeOption.java
justusbunsi/java-gitea-api
86e509e65628cde2be32b554bc25228059f41805
[ "MIT" ]
4
2019-10-15T07:50:28.000Z
2021-08-23T08:26:43.000Z
src/main/java/io/gitea/model/AddTimeOption.java
justusbunsi/java-gitea-api
86e509e65628cde2be32b554bc25228059f41805
[ "MIT" ]
12
2019-04-14T19:12:32.000Z
2021-08-21T18:30:12.000Z
23.384615
80
0.673146
2,778
/* * Gitea API. * This documentation describes the Gitea API. * * OpenAPI spec version: 1.16.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package io.gitea.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import org.threeten.bp.OffsetDateTime; /** * AddTimeOption options for adding time to an issue */ @ApiModel(description = "AddTimeOption options for adding time to an issue") public class AddTimeOption { @SerializedName("created") private OffsetDateTime created = null; @SerializedName("time") private Long time = null; @SerializedName("user_name") private String userName = null; public AddTimeOption created(OffsetDateTime created) { this.created = created; return this; } /** * Get created * @return created **/ @ApiModelProperty(value = "") public OffsetDateTime getCreated() { return created; } public void setCreated(OffsetDateTime created) { this.created = created; } public AddTimeOption time(Long time) { this.time = time; return this; } /** * time in seconds * @return time **/ @ApiModelProperty(required = true, value = "time in seconds") public Long getTime() { return time; } public void setTime(Long time) { this.time = time; } public AddTimeOption userName(String userName) { this.userName = userName; return this; } /** * User who spent the time (optional) * @return userName **/ @ApiModelProperty(value = "User who spent the time (optional)") public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AddTimeOption addTimeOption = (AddTimeOption) o; return Objects.equals(this.created, addTimeOption.created) && Objects.equals(this.time, addTimeOption.time) && Objects.equals(this.userName, addTimeOption.userName); } @Override public int hashCode() { return Objects.hash(created, time, userName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddTimeOption {\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
3e068b6bf1f6d0f772f84e56ac41c2a3151d7238
923
java
Java
src/main/java/com/hazerbaker/otodepom/repository/EnumerationRepository.java
hazerbaker/yakitanaliz
16670e1e576197392b2666cbaad3bb67b83ef46a
[ "Apache-2.0" ]
null
null
null
src/main/java/com/hazerbaker/otodepom/repository/EnumerationRepository.java
hazerbaker/yakitanaliz
16670e1e576197392b2666cbaad3bb67b83ef46a
[ "Apache-2.0" ]
45
2018-07-03T21:15:36.000Z
2019-01-17T14:24:12.000Z
src/main/java/com/hazerbaker/otodepom/repository/EnumerationRepository.java
hazerbaker/yakitanaliz
16670e1e576197392b2666cbaad3bb67b83ef46a
[ "Apache-2.0" ]
null
null
null
30.766667
88
0.819068
2,779
package com.hazerbaker.otodepom.repository; import java.util.List; import com.hazerbaker.otodepom.domain.Enumeration; import com.hazerbaker.otodepom.domain.enumeration.EnumerationType; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * Spring Data repository for the Enumeration entity. */ @Repository public interface EnumerationRepository extends JpaRepository<Enumeration, Long> { Page<Enumeration> findByTypeOrderByNameAsc(Pageable pageable, EnumerationType type); List<Enumeration> findByTypeOrderByNameAsc(EnumerationType type); Page<Enumeration> findByParentOrderByNameAsc(Pageable pageable, Enumeration parent); List<Enumeration> findByParentOrderByNameAsc(Enumeration parent); Enumeration findByName(String name); }
3e068bbf4466d5df424fc4ac28e7974cf3cfed86
2,275
java
Java
src/main/java/com/webstore/WebSecurityConfig.java
NightPlex/Blog-with-Spring-MVC-Thymeleaf
f668e5b9407e75623071331209a175eae6eb5fa4
[ "MIT" ]
null
null
null
src/main/java/com/webstore/WebSecurityConfig.java
NightPlex/Blog-with-Spring-MVC-Thymeleaf
f668e5b9407e75623071331209a175eae6eb5fa4
[ "MIT" ]
null
null
null
src/main/java/com/webstore/WebSecurityConfig.java
NightPlex/Blog-with-Spring-MVC-Thymeleaf
f668e5b9407e75623071331209a175eae6eb5fa4
[ "MIT" ]
null
null
null
30.333333
145
0.777143
2,780
package com.webstore; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.web.servlet.ServletListenerRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.core.session.SessionRegistry; import org.springframework.security.core.session.SessionRegistryImpl; import org.springframework.security.web.session.HttpSessionEventPublisher; import com.webstore.services.UserDetailServiceImpl; @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter{ // Give this bean for the spring security to handle users for authority @Autowired private UserDetailServiceImpl userDetailsService; @Bean public SessionRegistry sessionRegistry() { return new SessionRegistryImpl(); } @Bean public ServletListenerRegistrationBean<HttpSessionEventPublisher> httpSessionEventPublisher() { return new ServletListenerRegistrationBean<HttpSessionEventPublisher>(new HttpSessionEventPublisher()); } @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/fonts/**", "/img/**", "/css/**", "/js/**", "/users/register").permitAll() // Do i need to write this all ? Is there shorter way .antMatchers("/admin/**").hasRole("ADMIN") .anyRequest().authenticated() .and() .formLogin() .loginPage("/users/login") .permitAll() .and() .logout() .permitAll().and() .sessionManagement().maximumSessions(1) .sessionRegistry(sessionRegistry()); ; } @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService) ; // This is just a test will be changed later } }
3e068c01c2382a9566aa9fbfb08706be099882aa
2,879
java
Java
Learn from Map/App/LearnFromMap/src/org/buildmlearn/learnfrommap/questionmodule/QuestionRuleSelector.java
doniyorprince95/BuildmLearn
776212dbc00844f85a595f22c04f01cf91bf1023
[ "BSD-3-Clause" ]
13
2015-05-04T17:05:57.000Z
2018-11-09T20:07:18.000Z
Learn from Map/App/LearnFromMap/src/org/buildmlearn/learnfrommap/questionmodule/QuestionRuleSelector.java
doniyorprince95/BuildmLearn
776212dbc00844f85a595f22c04f01cf91bf1023
[ "BSD-3-Clause" ]
9
2015-02-15T11:37:32.000Z
2017-04-01T08:37:39.000Z
Learn from Map/App/LearnFromMap/src/org/buildmlearn/learnfrommap/questionmodule/QuestionRuleSelector.java
doniyorprince95/BuildmLearn
776212dbc00844f85a595f22c04f01cf91bf1023
[ "BSD-3-Clause" ]
42
2015-01-26T12:25:27.000Z
2020-06-20T17:41:07.000Z
21.014599
84
0.604724
2,781
package org.buildmlearn.learnfrommap.questionmodule; import java.util.ArrayList; import java.util.Random; public class QuestionRuleSelector { private ArrayList<XmlQuestion> mRules; public enum Rule {None, Classic, Category}; private Rule mRuleType; public static long lastSeed = 0; public QuestionRuleSelector(ArrayList<XmlQuestion> rules, Rule ruleType) { this.mRules = rules; this.mRuleType = ruleType; } public ArrayList<XmlQuestion> selectRules(int count) throws QuestionModuleException { ArrayList<XmlQuestion> selectedQuestion = new ArrayList<XmlQuestion>(); if(mRuleType == Rule.Classic) { boolean captialCheck = false; for(XmlQuestion question : mRules) { if(question.getAnswer().equals("country")) { mRules.remove(question); } } if(mRules.size() > count ) { for(int i =0; i<count; i++) { lastSeed = new java.util.Date().getTime() + lastSeed; Random random = new Random(lastSeed); int randomNo = random.nextInt(mRules.size()); XmlQuestion temp = mRules.get(randomNo); if(temp.getCode().equals("PPLC")) { if(!captialCheck) { captialCheck = true; selectedQuestion.add(mRules.get(randomNo)); mRules.remove(randomNo); } else { mRules.remove(randomNo); } } else { selectedQuestion.add(mRules.get(randomNo)); mRules.remove(randomNo); } } return selectedQuestion; } else { int capitalCount = 0; for(XmlQuestion question : mRules) { if(question.getCode().equals("PPLC")) { capitalCount++; } } if(capitalCount > 1) { Random random = new Random(lastSeed + new java.util.Date().getTime()); int selected = random.nextInt(capitalCount); for(int i=0; i<mRules.size(); i++) { if(i != selected) { mRules.remove(i); } } } if(mRules.size() > 0) { int extra = count - mRules.size(); selectedQuestion = mRules; for(int i =0; i<extra; i++) { lastSeed = new java.util.Date().getTime() + lastSeed; Random random = new Random(lastSeed); int next = random.nextInt(mRules.size()); XmlQuestion temp = mRules.get(next); if(temp.getCode().equals("PPLC")) { mRules.remove(i); } else { selectedQuestion.add(mRules.get(i)); } } return selectedQuestion; } else { throw new QuestionModuleException("Insufficient question rules in XML"); } } } else { //Normal Question for(int i =0; i<count; i++) { lastSeed = new java.util.Date().getTime() + lastSeed; Random random = new Random(lastSeed); int next = random.nextInt(mRules.size()); selectedQuestion.add(mRules.get(next)); } return selectedQuestion; } } }
3e068c28f84ea45878dc9faf11647108444a9e13
3,428
java
Java
server/src/main/java/com/linecorp/centraldogma/server/internal/storage/repository/git/CacheableCompareTreesCall.java
lujiefsi/centraldogma
88734739665dd405732a293b611d1ce1fc8b7037
[ "Apache-2.0" ]
1
2020-11-11T05:10:52.000Z
2020-11-11T05:10:52.000Z
server/src/main/java/com/linecorp/centraldogma/server/internal/storage/repository/git/CacheableCompareTreesCall.java
geminiKim/centraldogma
d8e49f2775c1c694c96373473e5238210cb91c74
[ "Apache-2.0" ]
null
null
null
server/src/main/java/com/linecorp/centraldogma/server/internal/storage/repository/git/CacheableCompareTreesCall.java
geminiKim/centraldogma
d8e49f2775c1c694c96373473e5238210cb91c74
[ "Apache-2.0" ]
1
2022-03-02T18:56:20.000Z
2022-03-02T18:56:20.000Z
31.163636
98
0.621645
2,782
/* * Copyright 2019 LINE Corporation * * LINE Corporation 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package com.linecorp.centraldogma.server.internal.storage.repository.git; import java.util.List; import java.util.Objects; import java.util.concurrent.CompletableFuture; import javax.annotation.Nullable; import org.eclipse.jgit.attributes.Attribute; import org.eclipse.jgit.diff.DiffEntry; import org.eclipse.jgit.revwalk.RevTree; import com.google.common.base.MoreObjects.ToStringHelper; import com.linecorp.centraldogma.server.internal.storage.repository.CacheableCall; import com.linecorp.centraldogma.server.storage.repository.Repository; final class CacheableCompareTreesCall extends CacheableCall<List<DiffEntry>> { private static final int SHA1_LEN = 20; @Nullable private final RevTree treeA; @Nullable private final RevTree treeB; private final int hashCode; CacheableCompareTreesCall(Repository repo, @Nullable RevTree treeA, @Nullable RevTree treeB) { super(repo); this.treeA = treeA; this.treeB = treeB; hashCode = Objects.hash(treeA, treeB) * 31 + System.identityHashCode(repo); } @Override protected int weigh(List<DiffEntry> value) { int weight = SHA1_LEN * 2; for (DiffEntry e : value) { if (e.getOldId() != null) { weight += SHA1_LEN; } if (e.getNewId() != null) { weight += SHA1_LEN; } if (e.getOldPath() != null) { weight += e.getOldPath().length(); } if (e.getNewPath() != null) { weight += e.getNewPath().length(); } final Attribute attr = e.getDiffAttribute(); if (attr != null) { if (attr.getKey() != null) { weight += attr.getKey().length(); } if (attr.getValue() != null) { weight += attr.getValue().length(); } } } return weight; } /** * Never invoked because {@link GitRepository} produces the value of this call. */ @Override public CompletableFuture<List<DiffEntry>> execute() { throw new IllegalStateException(); } @Override public int hashCode() { return hashCode; } @Override public boolean equals(Object o) { if (!super.equals(o)) { return false; } final CacheableCompareTreesCall that = (CacheableCompareTreesCall) o; return Objects.equals(treeA, that.treeA) && Objects.equals(treeB, that.treeB); } @Override protected void toString(ToStringHelper helper) { helper.add("treeA", treeA != null ? treeA.getName() : null) .add("treeB", treeB != null ? treeB.getName() : null); } }
3e068c5fcc7f5b669e97ddedf6172b2ef713b3d4
1,063
java
Java
main/plugins/org.talend.designer.components.libs/libs_src/salesforceBulkAPI/com/sforce/soap/partner/WebLinkWindowType.java
bgunics-talend/tdi-studio-se
3f54f55acb4d214f2d02532667bae98420068170
[ "Apache-2.0" ]
null
null
null
main/plugins/org.talend.designer.components.libs/libs_src/salesforceBulkAPI/com/sforce/soap/partner/WebLinkWindowType.java
bgunics-talend/tdi-studio-se
3f54f55acb4d214f2d02532667bae98420068170
[ "Apache-2.0" ]
null
null
null
main/plugins/org.talend.designer.components.libs/libs_src/salesforceBulkAPI/com/sforce/soap/partner/WebLinkWindowType.java
bgunics-talend/tdi-studio-se
3f54f55acb4d214f2d02532667bae98420068170
[ "Apache-2.0" ]
null
null
null
16.353846
74
0.60207
2,783
package com.sforce.soap.partner; import java.util.EnumSet; import java.util.HashMap; import java.util.Map; /** * Generated by SimpleTypeCodeGenerator.java. Please do not edit. */ public enum WebLinkWindowType { /** * Enumeration : newWindow */ newWindow("newWindow"), /** * Enumeration : sidebar */ sidebar("sidebar"), /** * Enumeration : noSidebar */ noSidebar("noSidebar"), /** * Enumeration : replace */ replace("replace"), /** * Enumeration : onClickJavaScript */ onClickJavaScript("onClickJavaScript"), ; public static Map<String, String> valuesToEnums; static { valuesToEnums = new HashMap<String, String>(); for (WebLinkWindowType e : EnumSet.allOf(WebLinkWindowType.class)) { valuesToEnums.put(e.toString(), e.name()); } } private String value; private WebLinkWindowType(String value) { this.value = value; } @Override public String toString() { return value; } }
3e068c834f5bc3b88ce2c5fc64afde3269e71f43
29,130
java
Java
scenarios-eclipse-project/src/kara/gamegrid/WorldSetup.java
marcojakob/gamegrid-kara
d336dbf3853f1b9a8dd2c14a1f531a8f43f1258e
[ "CC-BY-3.0" ]
5
2018-03-04T06:31:41.000Z
2018-12-18T11:35:19.000Z
scenarios-eclipse-project/src/kara/gamegrid/WorldSetup.java
marcojakob/gamegrid-kara
d336dbf3853f1b9a8dd2c14a1f531a8f43f1258e
[ "CC-BY-3.0" ]
null
null
null
scenarios-eclipse-project/src/kara/gamegrid/WorldSetup.java
marcojakob/gamegrid-kara
d336dbf3853f1b9a8dd2c14a1f531a8f43f1258e
[ "CC-BY-3.0" ]
2
2020-05-04T02:08:20.000Z
2020-11-01T20:50:23.000Z
28.985075
97
0.640302
2,784
package kara.gamegrid; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.filechooser.FileFilter; import kara.gamegrid.Kara.KaraDelegate; import ch.aplu.jgamegrid.Actor; import ch.aplu.jgamegrid.GGBitmap; /** * A WorldSetup contains information about the positions of the actors in the * world. A WorldSetup is immutable, i.e. after initialization it cannot be * changed. An immutable WorldSetup is easier to work with because we can be sure * that there will not be any side-effects if we make changes to any actors. And * we can always restore the initial WorldSetup. * <p> * Static helper methods are provided to create WorldSetups from a file and to * save them to a file. A text file can contain information for one or more * WorldSetup. A WorldSetup text file must have the following structure: * <p> * [titleKey]: World Setup Title<br> * [optionalAttribute1]: attribute<br> * [optionalAttribute2]: attribute<br> * [optionalAttributeN]: attribute<br> * <p> * After the titleKey and the optional attributes, the actor positions are * described with the following signs: * <ul> * <li>Kara: @ * <li>Tree: # * <li>Leaf: . * <li>Mushroom: $ * <li>Mushroom on Leaf: * * <li>Kara on Leaf: + * <li>Empty Field: Space * </ul> * <p> * A line starting with a Semicolon (;) is a comment and is ignored by the * parser. * * @author Marco Jakob (http://edu.makery.ch) */ public class WorldSetup { public static final char UNDEFINED = '?'; public static final char EMPTY = ' '; public static final char KARA = '@'; public static final char TREE = '#'; public static final char LEAF = '.'; public static final char MUSHROOM = '$'; public static final char MUSHROOM_LEAF = '*'; // Mushroom on a leaf public static final char KARA_LEAF = '+'; // Kara on a leaf public static final String WIDTH_KEY = "X:"; public static final String HEIGHT_KEY = "Y:"; /** * The world width */ private final int width; /** * The world height */ private final int height; /** * The key to recognize the start of the WorldSetup inside the file, e.g. * "World:". The characters following the key will be used as title. */ private final String titleKey; private final String title; private final String fileName; private final Map<String, String> attributes = new LinkedHashMap<String, String>(); /** * Actor positions with the outer List as line (y-position) and * the inner List as column (x-position). */ private final List<List<Character>> actorPositions = new ArrayList<List<Character>>(); /** * Constructor to be used by the Builder. */ private WorldSetup(Builder builder) { this.width = builder.width; this.height = builder.height; this.titleKey = builder.titleKey; this.title = builder.title; this.fileName = builder.fileName; // copy values to make shure we have an immutable WorldSetup for (Entry<String, String> entry : builder.attributes.entrySet()) { this.attributes.put(entry.getKey(), entry.getValue()); } for (List<Character> line : builder.actorPositions) { this.actorPositions.add(new ArrayList<Character>(line)); } } /** * This is a "copy constructor". * * @param worldSetup * the WorldSetup to copy into the new WorldSetup. */ public WorldSetup(WorldSetup worldSetup) { this(new Builder(worldSetup)); } /** * Returns the number of horizontal cells. * * @return */ public int getWidth() { return width; } /** * Returns the number of vertical cells. * * @return */ public int getHeight() { return height; } /** * Returns the title of the world setup. * * @return */ public String getTitle() { return title; } /** * Returns the title key that is used to identify the title inside the world * setup text file. * * @return */ public String getTitleKey() { return titleKey; } /** * Returns the filename of the file this WorldSetup was loaded from. May be * <code>null</code> if the WorldSetup was not loaded from a file. * * @return The filename or <code>null</code>. */ public String getFileName() { return fileName; } /** * Returns the attribute for the specified key. * * @param attributeKey * @return */ public String getAttribute(String attributeKey) { return attributes.get(attributeKey); } /** * Returns a copy of the attributes map. * * @return */ public Map<String, String> getAttributes() { // must be a copy of the real attributes map because otherwise // it would not be immutable. return new LinkedHashMap<String, String>(attributes); } /** * Returns the actor type as character (see class description). * * @param x * the x-position * @param y * the y-position * @return the actor char or {@link #UNDEFINED} if the position is not * defined. */ public char getActorTypeAt(int x, int y) { if (y >= 0 && y < actorPositions.size()) { List<Character> line = actorPositions.get(y); if (x >= 0 && x < line.size()) { return line.get(x); } } return UNDEFINED; } /** * Returns an image representation of this WorldSetup with all the actors. * * @param cellSize * The size of each cell of the grid. * @return */ public BufferedImage toImage(int cellSize) { GGBitmap img = new GGBitmap(width * cellSize, height * cellSize); for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { switch (this.getActorTypeAt(x, y)) { case WorldSetup.KARA: img.drawImage(WorldImages.ICON_MY_KARA, x * cellSize + 10, y * cellSize); break; case WorldSetup.TREE: img.drawImage(WorldImages.ICON_TREE, x * cellSize + 10, y * cellSize); break; case WorldSetup.LEAF: img.drawImage(WorldImages.ICON_LEAF, x * cellSize + 10, y * cellSize); break; case WorldSetup.MUSHROOM: img.drawImage(WorldImages.ICON_MUSHROOM, x * cellSize + 10, y * cellSize); break; case WorldSetup.MUSHROOM_LEAF: img.drawImage(WorldImages.ICON_LEAF, x * cellSize + 10, y * cellSize); img.drawImage(WorldImages.ICON_MUSHROOM_ON_TARGET, x * cellSize + 10, y * cellSize); break; case WorldSetup.KARA_LEAF: img.drawImage(WorldImages.ICON_LEAF, x * cellSize + 10, y * cellSize); img.drawImage(WorldImages.ICON_MY_KARA, x * cellSize + 10, y * cellSize); break; } } } return img.getBufferedImage(); } /** * Returns a ASCII String representation of this WorldSetup. * * @param printWidthAndHeight * if true, the width and height attributes are also added. * @return */ public String toASCIIText(boolean printWidthAndHeight) { StringBuffer buf = new StringBuffer(); buf.append(titleKey).append(' ').append(title).append('\n'); if (printWidthAndHeight) { buf.append(WIDTH_KEY).append(' ').append(width).append('\n'); buf.append(HEIGHT_KEY).append(' ').append(height).append('\n'); } for (Entry<String, String> entry : attributes.entrySet()) { buf.append(entry.getKey()).append(' ').append(entry.getValue()) .append('\n'); } for (List<Character> line : actorPositions) { for (Character character : line) { buf.append(character); } buf.append('\n'); } return buf.toString(); } @Override public String toString() { // Just return the title. This is used for drop down box when user needs // to choose between mutliple world setups. if (getFileName() != null) { return "<html>" + getTitle() + " <i>---> File: " + getFileName() + "</i></html>"; } return getTitle(); } /** * Parses (one or many) world setups from the specified file. The default * width and height attribute keys are used to get width and height from the * file. If those attributes are not defined in the text file, width and * height are determined from the actor positions. * <p> * Hint: If there are problems accessing a directory (e.g. on the web) then * only filenames without wildcards should be used! * * @param fileName * The filename of the world setup file, relative to the package * root or relative to the project root. Wildcards (? or *) may * be used. * @param titleKey * The key to recognize the start of the world setup inside the * file, e.g. "World:". The characters following the key will be * used as title. * @param attributeKeys * Keys for optional attributes, e.g. "Password:". * @return the world setups as an array * @throws IOException * Thrown if no file could be found or a file could not be read. */ public static WorldSetup[] parseFromFile(String fileName, String titleKey, String... attributeKeys) throws IOException { return parseFromFile(fileName, null, titleKey, -1, -1, attributeKeys); } /** * Parses (one or many) world setups from the specified file. The default * width and height attribute keys are used to get width and height from the * file. If those attributes are not defined in the text file, width and * height are determined from the actor positions. * <p> * Hint: If there are problems accessing a directory (e.g. on the web) then * only filenames without wildcards should be used! * * @param fileName * The filename of the world setup file, relative to the class, * relative to the package root or relative to the project root. * Wildcards (? or *) may be used. * @param clazz * The class used to get the relative path to the file or * <code>null</code> if the file should be retrieved relative to * the jar root or project root. * @param titleKey * The key to recognize the start of the world setup inside the * file, e.g. "World:". The characters following the key will be * used as title. * @param attributeKeys * Keys for optional attributes, e.g. "Password:". * @return the world setups as an array * @throws IOException * Thrown if no file could be found or a file could not be read. */ public static WorldSetup[] parseFromFile(String fileName, Class<?> clazz, String titleKey, String... attributeKeys) throws IOException { return parseFromFile(fileName, clazz, titleKey, -1, -1, attributeKeys); } /** * Parses (one or many) world setups from the specified file. * <p> * Hint: If there are problems accessing a directory (e.g. on the web) then * only filenames without wildcards should be used! * * @param fileName * The filename of the world setup file, relative to the class, * relative to the package root or relative to the project root. * Wildcards (? or *) may be used. * @param clazz * The class used to get the relative path to the file or * <code>null</code> if the file should be retrieved relative to * the jar root or project root. * @param titleKey * The key to recognize the start of the world setup inside the * file, e.g. "World:". The characters following the key will be * used as title. * @param worldWidth * the width or -1 if it should be specified through width * attribute or from length of actor lines in the file. * @param worldHeight * the height or -1 if it should be specified through height * attribute or from height of actor lines in the file. * @param attributeKeys * Keys for optional attributes, e.g. "Password:". * @return the world setups as an array * @throws IOException * Thrown if no file could be found or a file could not be read. * */ public static WorldSetup[] parseFromFile(String fileName, Class<?> clazz, String titleKey, int worldWidth, int worldHeight, String... attributeKeys) throws IOException { List<WorldSetup> result = new ArrayList<WorldSetup>(); boolean containsWildcards = fileName.indexOf('?') != -1 || fileName.indexOf('*') != -1; if (!containsWildcards) { // no wildcards --> try to load from stream InputStream stream; if (clazz != null) { stream = clazz.getResourceAsStream(fileName); } else { stream = WorldSetup.class.getResourceAsStream(fileName); } if (stream != null) { List<String> lines = FileUtils.readAllLines(stream); result.addAll(parseFromStrings(lines, titleKey, worldWidth, worldHeight, fileName, attributeKeys)); return result.toArray(new WorldSetup[result.size()]); } } // try to find files, possibly with wildcard List<File> matchingFiles = findMatchingFiles(fileName, clazz); if (matchingFiles.isEmpty()) { // no file found throw new FileNotFoundException("Could not find file: " + fileName); } for (File matchingFile : matchingFiles) { List<String> lines = FileUtils.readAllLines(matchingFile); result.addAll(parseFromStrings(lines, titleKey, worldWidth, worldHeight, matchingFile.getName(), attributeKeys)); } return result.toArray(new WorldSetup[result.size()]); } /** * Parses (one or many) world setups from the specified Strings. * * @param lines * A list of Strings containing the contents of a world setup * file. * @param titleKey * The key to recognize the start of the world setup inside the * file, e.g. "World:". The characters following the key will be * used as title. * @param worldWidth * the width or -1 if it should be specified through width * attribute or from length of actor lines in the file. * @param worldHeight * the height or -1 if it should be specified through height * attribute or from height of actor lines in the file. * @param fileName * The filename where the Strings were retrieved from or * <code>null</code>. * @param attributeKeys * Keys for optional attributes, e.g. "Password:". * @return the world setups as an array */ private static List<WorldSetup> parseFromStrings(List<String> lines, String titleKey, int worldWidth, int worldHeight, String fileName, String... attributeKeys) { List<WorldSetup> result = new ArrayList<WorldSetup>(); Builder currentBuilder = null; // Go trough all lines of the file for (String line : lines) { if (!line.startsWith(";")) { if (line.startsWith(titleKey)) { if (currentBuilder != null) { result.add(currentBuilder.build()); } currentBuilder = new Builder(titleKey); currentBuilder.setTitle(line.substring(titleKey.length()).trim()); currentBuilder.setFileName(fileName); if (worldWidth > -1 && worldHeight > -1) { currentBuilder.setWidth(worldWidth); currentBuilder.setHeight(worldHeight); } continue; } else if (currentBuilder == null) { continue; // continue until we have the first valid // world setup title key } if (line.startsWith(WIDTH_KEY)) { try { currentBuilder.setWidth(Integer.parseInt(line .substring(WIDTH_KEY.length()).trim())); continue; } catch (NumberFormatException e) { // do nothing } } if (line.startsWith(HEIGHT_KEY)) { try { currentBuilder .setHeight(Integer.parseInt(line .substring(HEIGHT_KEY.length()) .trim())); continue; } catch (NumberFormatException e) { // do nothing } } boolean foundAttribute = false; for (String attributeKey : attributeKeys) { if (line.startsWith(attributeKey)) { currentBuilder.addAttribute(attributeKey, line .substring(attributeKey.length()) .trim()); foundAttribute = true; break; } } if (foundAttribute) { continue; } if (line.matches("[@#.$\\s*+]*")) { currentBuilder.addActorLine(line); } } } // add the last world setup if (currentBuilder != null) { result.add(currentBuilder.build()); } return result; } /** * Tries to load the specified file (or files) either relative to the class, * relative to the package root or relative to the project root. * * @param fileName * The filename of the world setup file, possibly relative to the * clazz. Wildcards (? or *) may be used. * @param clazz * The class used to get the relative path to the file or * <code>null</code> if the file should be retrieved relative to * the jar root or project root. * @return the files or an empty list if none could be found. */ private static List<File> findMatchingFiles(String fileName, Class<?> clazz) { try { // Option 1: try to get file relative to class if (clazz != null) { File dir = new File(clazz.getResource(".").toURI()); List<File> files = FileUtils.scan(dir, fileName); if (!files.isEmpty()) { return files; } } // Option 2: try to get file relative to package root (may be inside jar) File dir2 = new File(Thread.currentThread().getContextClassLoader().getResource(".").toURI()); List<File> files2 = FileUtils.scan(dir2, fileName); if (!files2.isEmpty()) { return files2; } // Option 3: try to get file relative to project root (outside of jar) File dir3 = new File("."); List<File> files3 = FileUtils.scan(dir3, fileName); if (!files3.isEmpty()) { // Note: only get the first match return files3; } } catch (URISyntaxException e) { // do nothing e.printStackTrace(); } // Return empty list return new ArrayList<File>(); } /** * Creates a WorldSetup from all the actors in the list. An empty world * setup title is used. * * @param actors * @param worldWidth * @param worldHeight * @param titleKey * The key to recognize the start of the world setup inside the * file, e.g. "World:". * @return */ public static WorldSetup createFromActors(List<Actor> actors, int worldWidth, int worldHeight, String titleKey) { return createFromActors(actors, worldWidth, worldHeight, titleKey, "", null); } /** * Creates a WorldSetup from all the actors in the list. * * @param actors * @param worldWidth * @param worldHeight * @param titleKey * The key to recognize the start of the world setup inside the * file, e.g. "World:". * @param title * The title of the world setup * @param attributes * Attributes or an empty map if no attributes should be added. * @return */ public static WorldSetup createFromActors(List<Actor> actors, int worldWidth, int worldHeight, String titleKey, String title, Map<String, String> attributes) { Builder builder = new Builder(titleKey); builder.setWidth(worldWidth).setHeight(worldHeight).setTitle(title); if (attributes != null) { for (Entry<String, String> entry : attributes.entrySet()) { builder.addAttribute(entry.getKey(), entry.getValue()); } } if (actors != null) { for (Actor actor : actors) { builder.addFromActor(actor); } } return builder.build(); } /** * This is a builder class for WorldSetup according to the Builder design * pattern. The Builder helps us to step-by-step add new properties and * build an immutable WorldSetup at the end. */ public static class Builder { private final String titleKey; private int width = 0; private int height = 0; private String title = ""; private String fileName; private Map<String, String> attributes = new LinkedHashMap<String, String>(); private List<List<Character>> actorPositions = new ArrayList<List<Character>>(); /** * Default constructor. */ public Builder(String titleKey) { this.titleKey = titleKey; } /** * Copy constructor. */ public Builder(WorldSetup worldSetup) { width = worldSetup.getWidth(); height = worldSetup.getHeight(); titleKey = worldSetup.getTitleKey(); title = worldSetup.getTitle(); attributes = worldSetup.attributes; actorPositions = worldSetup.actorPositions; fileName = worldSetup.fileName; } public Builder setWidth(int width) { this.width = width; return this; } public Builder setHeight(int height) { this.height = height; return this; } public Builder setTitle(String title) { this.title = title; return this; } public Builder setFileName(String fileName) { this.fileName = fileName; return this; } public Builder addAttribute(String key, String value) { this.attributes.put(key, value); return this; } /** * Add a line of actors to the actor positions. * * @param actorLine * @return */ public Builder addActorLine(String actorLine) { List<Character> chars = new ArrayList<Character>(); for (char c : actorLine.toCharArray()) { chars.add(c); } this.actorPositions.add(chars); return this; } /** * Set the actor type at the specified position. */ public Builder setActorTypeAt(int x, int y, char actorType) { return setActorTypeAt(x, y, actorType, false); } /** * Set the actor type at the specified position. * * @param x * @param y * @param actorType * @param combine * if true, kara-leafs and mushroom-leafs are combined. * @return */ public Builder setActorTypeAt(int x, int y, char actorType, boolean combine) { while (actorPositions.size() <= y) { // the line (y) is not present yet, so create lines until we // reach it actorPositions.add(new ArrayList<Character>()); } // get the relevant line List<Character> line = actorPositions.get(y); while (line.size() <= x) { // fill with EMPTY characters until we reach position x line.add(EMPTY); } // now we can actually set the actor at x if (combine && isKaraLeaf(line.get(x), actorType)) { line.set(x, KARA_LEAF); } else if (combine && isMushroomLeaf(line.get(x), actorType)) { line.set(x, MUSHROOM_LEAF); } else { // just overwrite the current char line.set(x, actorType); } return this; } /** * Adds the actor position and type from information of the specified * actor. * * @param actor * @return */ public Builder addFromActor(Actor actor) { if (actor instanceof KaraDelegate) { setActorTypeAt(actor.getX(), actor.getY(), KARA, true); } else if (actor instanceof Tree) { setActorTypeAt(actor.getX(), actor.getY(), TREE, true); } else if (actor instanceof Leaf) { setActorTypeAt(actor.getX(), actor.getY(), LEAF, true); } else if (actor instanceof Mushroom) { setActorTypeAt(actor.getX(), actor.getY(), MUSHROOM, true); } return this; } /** * Returns true if the two chars are a kara and a leaf. */ private boolean isKaraLeaf(char first, char second) { return (first == LEAF && second == KARA) || (first == KARA && second == LEAF); } /** * Returns true if the two chars are a mushroom and a leaf. */ private boolean isMushroomLeaf(char first, char second) { return (first == MUSHROOM && second == KARA) || (first == KARA && second == MUSHROOM); } /** * Builds the (immutable) WorldSetup. * * @return */ public WorldSetup build() { if (width < 1) { // infer width from actor positions for (List<Character> line : actorPositions) { width = Math.max(width, line.size()); } } if (height < 1) { // infer height from actor positions height = actorPositions.size(); } return new WorldSetup(this); } } /** * Utility class for loading and saving files. */ public static class FileUtils { /** * Opens a file chooser dialog to ask the user for a filename. If * successful, the given content is written to the chosen text file. * * @param content * Content to write to the file * @throws IOException */ public static void saveToFileWithDialog(String content) throws IOException { File f = new File(new File(".").getCanonicalPath()); JFileChooser fileChooser = new JFileChooser(f); fileChooser.setFileFilter(new FileFilter() { @Override public String getDescription() { return "*.txt, *.TXT"; } @Override public boolean accept(File f) { if (f.isDirectory()) { return true; } String s = f.getName(); return s.endsWith(".txt") || s.endsWith(".TXT"); } }); int retrival = fileChooser.showSaveDialog(null); if (retrival == JFileChooser.APPROVE_OPTION) { File chosenFile = fileChooser.getSelectedFile(); if (chosenFile.exists()) { int option = JOptionPane .showConfirmDialog( null, "The file " + chosenFile + " exists already. Do you want to overwrite the existing file?", "File Exists", JOptionPane.YES_NO_OPTION); if (option != JOptionPane.YES_OPTION) { // abort return; } } // write to file if (!chosenFile.getName().endsWith(".txt") && !chosenFile.getName().endsWith(".TXT")) { chosenFile = new File(chosenFile.getAbsolutePath() + ".txt"); } FileUtils.writeToFile(chosenFile, content); } } /** * Scans through the directory using wild-card patterns. All files * matching the patterns are returned. * <ul> * <li>Use ? for one or no unknown character</li> * <li>Use * for zero or more unknown characters</li> * </ul> * * @param dir * the directory * @param patterns * the patterns that should be matched containing wild-cards. * @return */ public static List<File> scan(File dir, String... patterns) { List<File> result = new ArrayList<File>(); if (!dir.isDirectory()) { return result; } List<String> convertedPatterns = new ArrayList<String>(); for (String p : patterns) { p = p.replace(".", "\\."); p = p.replace("?", ".?"); p = p.replace("*", ".*"); convertedPatterns.add(p); } File[] filesInDir = dir.listFiles(); for (File currentFile : filesInDir) { if (matches(currentFile, convertedPatterns)) { result.add(currentFile); } } return result; } /** * Returns true if the filename of the file matches one of the patterns. * * @param file * @param convertedPatterns * @return */ private static boolean matches(File file, List<String> convertedPatterns) { for (String pattern : convertedPatterns) { if (file.getName().matches(pattern)) { return true; } } return false; } /** * Read all lines from a file. * * @param file * the file to read from * @return the lines from the file as a {@code List}. * * @throws IOException * if an I/O error occurs reading from the file. */ public static List<String> readAllLines(File file) throws IOException { return readAllLines(new FileInputStream(file)); } /** * Read all lines from an InputStream. * * @param stream * the stream to read from * @return the lines from the stream as a {@code List}. * * @throws IOException * if an I/O error occurs reading from the stream. */ public static List<String> readAllLines(InputStream stream) throws IOException { List<String> result = new ArrayList<String>(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(stream)); for (;;) { String line = reader.readLine(); if (line == null) { break; } result.add(line); } } finally { if (reader != null) { reader.close(); } } return result; } /** * Writes to the specified file. * * @param file * The file to write to * @param content * The content to write. * @throws IOException * if an I/O error occurs writing to the file. */ public static void writeToFile(File file, String content) throws IOException { FileWriter fstream = new FileWriter(file); BufferedWriter out = new BufferedWriter(fstream); try { out.write(content); out.flush(); } finally { // Close the output stream if (out != null) { out.close(); } } } } }
3e068d23f28982dcdd433a6783a8c50736bbd5f7
749
java
Java
src/test/java/cn/effine/dao/impl/spring/SigninHistoryTest.java
hieo/shopping
8a1a68000d47ee65d0adc20e2c93490c9e1d0eed
[ "MIT" ]
3
2015-11-16T14:13:59.000Z
2017-10-31T02:53:07.000Z
src/test/java/cn/effine/dao/impl/spring/SigninHistoryTest.java
effine/shopping
8a1a68000d47ee65d0adc20e2c93490c9e1d0eed
[ "MIT" ]
null
null
null
src/test/java/cn/effine/dao/impl/spring/SigninHistoryTest.java
effine/shopping
8a1a68000d47ee65d0adc20e2c93490c9e1d0eed
[ "MIT" ]
null
null
null
24.16129
83
0.698264
2,785
/** * @author effine * @Date 2015年11月13日 下午5:34:17 * @email iballader#gmail.com * @site http://www.effine.cn */ package cn.effine.dao.impl.spring; import cn.effine.dao.SigninHistoryDaoTest; import org.junit.Test; public class SigninHistoryTest extends DaoSupport implements SigninHistoryDaoTest { @Override @Test public void getSigninHistory() { // String sql = "select * from signin_history where id =?"; // Map<String,Object> obj = getJdbcTemplate().queryForMap(sql, 1); // System.out.println(obj); } @Test public void countSigninHistory() { // String sql = "select count(id) from signin_history"; // int times = getJdbcTemplate().queryForObject(sql, Integer.class); // System.out.println(times); } }
3e068dad5dc3ccbf433f941739c30ff0ca083f26
1,836
java
Java
shuffle-coordinator/src/main/java/com/alibaba/flink/shuffle/coordinator/utils/WorkerCheckerUtils.java
KarmaGYZ/flink-remote-shuffle
dd1916d0337bd21a93404a0d8c665b997eae0609
[ "Apache-2.0" ]
null
null
null
shuffle-coordinator/src/main/java/com/alibaba/flink/shuffle/coordinator/utils/WorkerCheckerUtils.java
KarmaGYZ/flink-remote-shuffle
dd1916d0337bd21a93404a0d8c665b997eae0609
[ "Apache-2.0" ]
null
null
null
shuffle-coordinator/src/main/java/com/alibaba/flink/shuffle/coordinator/utils/WorkerCheckerUtils.java
KarmaGYZ/flink-remote-shuffle
dd1916d0337bd21a93404a0d8c665b997eae0609
[ "Apache-2.0" ]
null
null
null
40.8
98
0.687908
2,786
/* * 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 com.alibaba.flink.shuffle.coordinator.utils; import com.alibaba.flink.shuffle.coordinator.worker.checker.ShuffleWorkerChecker; /** Utility methods to manipulate {@link ShuffleWorkerChecker}s. */ public class WorkerCheckerUtils { private static final long Kb = 1024; private static final long Mb = Kb * 1024; private static final long Gb = Mb * 1024; private static final long Tb = Gb * 1024; private static final long Pb = Tb * 1024; private static final long Eb = Pb * 1024; protected static final String[] BYTES_UNITS = new String[] {"", "K", "M", "G", "T", "P", "E"}; protected static final long[] BYTES_STEPS = new long[] {0, Kb, Mb, Gb, Tb, Pb, Eb}; public static String bytesToHumanReadable(long bytes) { for (int i = BYTES_UNITS.length - 1; i > 0; i--) { if (bytes > BYTES_STEPS[i]) { return String.format("%3.2f %s", (double) bytes / BYTES_STEPS[i], BYTES_UNITS[i]); } } return Long.toString(bytes); } }
3e068f2c6504c3863de0e2b417d96ec4d143356d
2,439
java
Java
java/tradingbot-core/src/main/java/com/precioustech/fxtrading/instrument/economicevent/InstrumentEconomicEvent.java
dataronio/book-code
3295c094e5a9a1b95a488f6a8c4874f75b1ebf13
[ "Apache-1.1" ]
73
2016-01-23T22:04:15.000Z
2022-02-24T18:49:13.000Z
java/tradingbot-core/src/main/java/com/precioustech/fxtrading/instrument/economicevent/InstrumentEconomicEvent.java
dataronio/book-code
3295c094e5a9a1b95a488f6a8c4874f75b1ebf13
[ "Apache-1.1" ]
5
2017-09-03T09:15:18.000Z
2019-05-19T14:12:14.000Z
java/tradingbot-core/src/main/java/com/precioustech/fxtrading/instrument/economicevent/InstrumentEconomicEvent.java
dataronio/book-code
3295c094e5a9a1b95a488f6a8c4874f75b1ebf13
[ "Apache-1.1" ]
49
2016-02-22T19:51:22.000Z
2022-03-11T09:57:38.000Z
25.946809
109
0.714227
2,787
package com.precioustech.fxtrading.instrument.economicevent; import org.joda.time.DateTime; public class InstrumentEconomicEvent { private final DateTime eventDate; private final String currency, eventDescription; private final InstrumentEconomicEventImpact eventImpact; private final String previous, actual, forecast; public InstrumentEconomicEvent(String currency, String eventDescription, DateTime eventDate, InstrumentEconomicEventImpact eventImpact, String previous, String actual, String forecast) { this.currency = currency; this.eventDescription = eventDescription; this.eventImpact = eventImpact; this.eventDate = eventDate; this.previous = previous; this.actual = actual; this.forecast = forecast; } public String getPrevious() { return previous; } public String getActual() { return actual; } public String getForecast() { return forecast; } public DateTime getEventDate() { return eventDate; } @Override public String toString() { return "InstrumentEconomicEvent [eventDate=" + eventDate + ", currency=" + currency + ", eventDescription=" + eventDescription + ", eventSignificance=" + eventImpact + "]"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((currency == null) ? 0 : currency.hashCode()); result = prime * result + ((eventDate == null) ? 0 : eventDate.hashCode()); result = prime * result + ((eventDescription == null) ? 0 : eventDescription.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; InstrumentEconomicEvent other = (InstrumentEconomicEvent) obj; if (currency == null) { if (other.currency != null) return false; } else if (!currency.equals(other.currency)) return false; if (eventDate == null) { if (other.eventDate != null) return false; } else if (!eventDate.equals(other.eventDate)) return false; if (eventDescription == null) { if (other.eventDescription != null) return false; } else if (!eventDescription.equals(other.eventDescription)) return false; return true; } public String getCurrency() { return currency; } public String getEventDescription() { return eventDescription; } public InstrumentEconomicEventImpact getEventImpact() { return eventImpact; } }
3e068f46dbf46e0ab41bfdb524103ecfacea5376
930
java
Java
server/src/test/java/com/github/baez90/training/server/jokes/JokesGeneratorTest.java
baez90/modern-java-training
6ff0216d9706e69ce36d1b95ff59c7610d0a9ff2
[ "Apache-2.0" ]
null
null
null
server/src/test/java/com/github/baez90/training/server/jokes/JokesGeneratorTest.java
baez90/modern-java-training
6ff0216d9706e69ce36d1b95ff59c7610d0a9ff2
[ "Apache-2.0" ]
null
null
null
server/src/test/java/com/github/baez90/training/server/jokes/JokesGeneratorTest.java
baez90/modern-java-training
6ff0216d9706e69ce36d1b95ff59c7610d0a9ff2
[ "Apache-2.0" ]
null
null
null
33.214286
104
0.762366
2,788
package com.github.baez90.training.server.jokes; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.ExecutionException; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; public class JokesGeneratorTest { private static final Logger logger = LoggerFactory.getLogger(JokesGeneratorTest.class); private final JokesGenerator jokesGenerator = new JokesGenerator(); @Test public void testLocalJokes_expectStreamOfJokes() { assertNotEquals(0, jokesGenerator.localJokes().count()); } @Test public void testOnlineJokes_expectAnyNonNullJoke() throws ExecutionException, InterruptedException { var joke = jokesGenerator.onlineJokes().findFirst().get().get().orElse(null); logger.info(joke.getJoke()); assertNotNull(joke); } }
3e068f9789634cb56294525f333c5428dcdcd385
275
java
Java
src/main/java/communication/cmm/model/User.java
HZshcl/community
9b40ebd8d4e768f3dda3cafceddeda69b199cde8
[ "Apache-2.0" ]
null
null
null
src/main/java/communication/cmm/model/User.java
HZshcl/community
9b40ebd8d4e768f3dda3cafceddeda69b199cde8
[ "Apache-2.0" ]
null
null
null
src/main/java/communication/cmm/model/User.java
HZshcl/community
9b40ebd8d4e768f3dda3cafceddeda69b199cde8
[ "Apache-2.0" ]
null
null
null
18.333333
32
0.723636
2,789
package communication.cmm.model; import lombok.Data; @Data public class User { private String id; private String name; private String accountId; private String token; private Long qmtCreate; private Long qmtModified; private String avatarUrl; }
3e068fa6396a0164405467c50ef5758f6f323959
10,210
java
Java
src/main/test/TestEntrega01/Entrega01Test.java
Jonathan-Vasquez/Algo3-Tp2-AlgoHoot
b70128a27a4f2997150361e3c5a8b9dc5dcdaf19
[ "MIT" ]
null
null
null
src/main/test/TestEntrega01/Entrega01Test.java
Jonathan-Vasquez/Algo3-Tp2-AlgoHoot
b70128a27a4f2997150361e3c5a8b9dc5dcdaf19
[ "MIT" ]
3
2020-07-26T15:49:50.000Z
2020-08-10T22:05:28.000Z
src/main/test/TestEntrega01/Entrega01Test.java
Jonathan-Vasquez/Algo3-Tp2-AlgoHoot
b70128a27a4f2997150361e3c5a8b9dc5dcdaf19
[ "MIT" ]
2
2020-07-27T21:24:35.000Z
2021-06-29T17:29:44.000Z
46.199095
144
0.742214
2,790
package TestEntrega01; import edu.fiuba.algo3.modelo.*; import org.junit.jupiter.api.Test; import java.util.ArrayList; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; public class Entrega01Test { @Test public void test01PreguntaDeVerdaderoFalsoPenalizablePuedeCrearseIndicandoleCualEsLaRespuestaCorrecta(){ //Arrange Opcion opcionCorrecta = new Opcion("si"); Opcion opcionIncorrecta = new Opcion("no"); ArrayList<Opcion> opcionesAMostrar = new ArrayList<>(); opcionesAMostrar.add(opcionCorrecta); opcionesAMostrar.add(opcionIncorrecta); ArrayList<Opcion> opcionesCorrectas = new ArrayList<>(); opcionesCorrectas.add(opcionCorrecta); ListaOpcionesParaPregunta listaDeOpciones = new ListaOpcionesParaPregunta(opcionesAMostrar, opcionesCorrectas); TipoPregunta tipoPreguntaVerdaderoFalsoPenalizable = new PreguntaVerdaderoFalsoPenalizable(); Pregunta unaPregunta = new Pregunta("se debe hacer test?", tipoPreguntaVerdaderoFalsoPenalizable, listaDeOpciones); //Act boolean resultado = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta); //Assert assertTrue(resultado); } @Test public void test02PreguntaDeVerdaderoFalsoPenalizableRecibeLasOpcionesElegidasPorLosJugadoresEntoncesAsignaBienSusPuntos(){ //Arrange Opcion opcionCorrecta = new Opcion("si"); Opcion opcionIncorrecta = new Opcion("no"); ArrayList<Opcion> opcionesAMostrar = new ArrayList<>(); opcionesAMostrar.add(opcionCorrecta); opcionesAMostrar.add(opcionIncorrecta); ArrayList<Opcion> opcionesCorrectas = new ArrayList<>(); opcionesCorrectas.add(opcionCorrecta); ListaOpcionesParaPregunta listaDeOpciones = new ListaOpcionesParaPregunta(opcionesAMostrar, opcionesCorrectas); TipoPregunta tipoPreguntaVerdaderoFalsoPenalizable = new PreguntaVerdaderoFalsoPenalizable(); Pregunta unaPregunta = new Pregunta("se debe testear?", tipoPreguntaVerdaderoFalsoPenalizable, listaDeOpciones); //jugadores eligen opciones ArrayList<Opcion> opcionesElegidasJugador1 = new ArrayList<>(); opcionesElegidasJugador1.add(opcionCorrecta); ArrayList<Opcion> opcionesElegidasJugador2 = new ArrayList<>(); opcionesElegidasJugador2.add(opcionIncorrecta); //Act int puntajeParaJugador1 = unaPregunta.obtenerPuntajeOpcionesElejidas(opcionesElegidasJugador1); int puntajeParaJugador2 = unaPregunta.obtenerPuntajeOpcionesElejidas(opcionesElegidasJugador2); //Assert assertEquals(1, puntajeParaJugador1); assertEquals(-1, puntajeParaJugador2); } @Test public void test03PreguntaMultipleChoiceClasicoPuedeCrearseIndicandoleCualEsLaRespuestaCorrecta(){ //Arrange Opcion opcionCorrecta1 = new Opcion("Chile"); Opcion opcionCorrecta2 = new Opcion("Ecuador"); Opcion opcionCorrecta3 = new Opcion("Argentina"); Opcion opcionIncorrecta = new Opcion("Estados Unidos"); ArrayList<Opcion> opcionesAMostrar = new ArrayList<>(); opcionesAMostrar.add(opcionCorrecta1); opcionesAMostrar.add(opcionCorrecta2); opcionesAMostrar.add(opcionCorrecta3); opcionesAMostrar.add(opcionIncorrecta); ArrayList<Opcion> opcionesCorrectas = new ArrayList<>(); opcionesCorrectas.add(opcionCorrecta1); opcionesCorrectas.add(opcionCorrecta2); opcionesCorrectas.add(opcionCorrecta3); ListaOpcionesParaPregunta listaDeOpciones = new ListaOpcionesParaPregunta(opcionesAMostrar, opcionesCorrectas); TipoPregunta tipoPreguntaMultipleChoice = new PreguntaMultipleChoice(); Pregunta unaPregunta = new Pregunta("Cuales son paises de Sud America?",tipoPreguntaMultipleChoice, listaDeOpciones ); //Act boolean contieneOpcionCorrecta1 = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta1); boolean contieneOpcionCorrecta2 = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta2); boolean contieneOpcionCorrecta3 = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta3); //Assert assertTrue(contieneOpcionCorrecta1); assertTrue(contieneOpcionCorrecta2); assertTrue(contieneOpcionCorrecta3); } @Test public void test04PreguntaMultipleChoiceClasicoRecibeLasOpcionesElegidasPorLosJugadoresEntoncesAsignaBienSusPuntos(){ //Arrange Opcion opcionCorrecta1 = new Opcion("chile"); Opcion opcionCorrecta2 = new Opcion("ecuador"); Opcion opcionIncorrecta = new Opcion("Estados Unidos"); Opcion opcionCorrecta3 = new Opcion("argentina"); ArrayList<Opcion> opcionesAMostrar = new ArrayList<>(); opcionesAMostrar.add(opcionCorrecta1); opcionesAMostrar.add(opcionCorrecta2); opcionesAMostrar.add(opcionIncorrecta); opcionesAMostrar.add(opcionCorrecta3); ArrayList<Opcion> opcionesCorrectas = new ArrayList<>(); opcionesCorrectas.add(opcionCorrecta1); opcionesCorrectas.add(opcionCorrecta2); opcionesCorrectas.add(opcionCorrecta3); ListaOpcionesParaPregunta listaDeOpciones = new ListaOpcionesParaPregunta(opcionesAMostrar, opcionesCorrectas); TipoPregunta tipoDePreguntaMultipleChoiceClasico = new PreguntaMultipleChoice(); Pregunta unaPregunta = new Pregunta("Cuales son paises de Sud America?", tipoDePreguntaMultipleChoiceClasico, listaDeOpciones); //jugadores eligen opciones: ArrayList<Opcion> opcionesElegidasJugador1 = new ArrayList<>(); opcionesElegidasJugador1.add(opcionCorrecta1); opcionesElegidasJugador1.add(opcionCorrecta2); opcionesElegidasJugador1.add(opcionCorrecta3); ArrayList<Opcion> opcionesElegidasJugador2 = new ArrayList<>(); opcionesElegidasJugador2.add(opcionCorrecta1); opcionesElegidasJugador2.add(opcionCorrecta3); opcionesElegidasJugador2.add(opcionIncorrecta); //Act int puntajeParaJugador1 = unaPregunta.obtenerPuntajeOpcionesElejidas(opcionesElegidasJugador1); int puntajeParaJugador2 = unaPregunta.obtenerPuntajeOpcionesElejidas(opcionesElegidasJugador2); //Assert assertEquals(1, puntajeParaJugador1); assertEquals(0, puntajeParaJugador2); } @Test public void test05PreguntaMultipleChoiceDePuntajeParcialPuedeCrearseIndicandoleCualEsLaRespuestaCorrecta(){ //Arrange Opcion opcionCorrecta1 = new Opcion("chile"); Opcion opcionCorrecta2 = new Opcion("ecuador"); Opcion opcionIncorrecta = new Opcion("Estados Unidos"); Opcion opcionCorrecta3 = new Opcion("argentina"); ArrayList<Opcion> opcionesAMostrar = new ArrayList<>(); opcionesAMostrar.add(opcionCorrecta1); opcionesAMostrar.add(opcionCorrecta2); opcionesAMostrar.add(opcionIncorrecta); opcionesAMostrar.add(opcionCorrecta3); ArrayList<Opcion> opcionesCorrectas = new ArrayList<>(); opcionesCorrectas.add(opcionCorrecta1); opcionesCorrectas.add(opcionCorrecta2); opcionesCorrectas.add(opcionCorrecta3); ListaOpcionesParaPregunta listaDeOpciones = new ListaOpcionesParaPregunta(opcionesAMostrar, opcionesCorrectas); TipoPregunta tipoPreguntaMultipleChoicePuntajeParcial = new PreguntaMultipleChoicePuntajeParcial(); Pregunta unaPregunta = new Pregunta("Cuales son paises de Sud America?", tipoPreguntaMultipleChoicePuntajeParcial, listaDeOpciones); //Act boolean contieneOpcionCorrecta1 = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta1); boolean contieneOpcionCorrecta2 = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta2); boolean contieneOpcionCorrecta3 = unaPregunta.getOpcionesCorrectas().contains(opcionCorrecta3); //Assert assertTrue(contieneOpcionCorrecta1); assertTrue(contieneOpcionCorrecta2); assertTrue(contieneOpcionCorrecta3); } @Test public void test06PreguntaMultipleChoiceDePuntajeParcialRecibeLasOpcionesElegidasPorLosJugadoresEntoncesAsignaBienSusPuntos(){ //Arrange Opcion opcionCorrecta1 = new Opcion("chile"); Opcion opcionCorrecta2 = new Opcion("ecuador"); Opcion opcionCorrecta3 = new Opcion("argentina"); Opcion opcionIncorrecta = new Opcion("Estados Unidos"); ArrayList<Opcion> opcionesAMostrar = new ArrayList<>(); opcionesAMostrar.add(opcionCorrecta1); opcionesAMostrar.add(opcionCorrecta2); opcionesAMostrar.add(opcionIncorrecta); opcionesAMostrar.add(opcionCorrecta3); ArrayList<Opcion> opcionesCorrectas = new ArrayList<>(); opcionesCorrectas.add(opcionCorrecta1); opcionesCorrectas.add(opcionCorrecta2); opcionesCorrectas.add(opcionCorrecta3); ListaOpcionesParaPregunta listaDeOpciones = new ListaOpcionesParaPregunta(opcionesAMostrar, opcionesCorrectas); TipoPregunta tipoDePreguntaMultipleChoiceDePuntajeParcial = new PreguntaMultipleChoicePuntajeParcial(); Pregunta unaPregunta = new Pregunta("Cuales son paises de Sud America?", tipoDePreguntaMultipleChoiceDePuntajeParcial, listaDeOpciones); //jugadores eligen opciones: ArrayList<Opcion> opcionesElegidasJugador1 = new ArrayList<>(); opcionesElegidasJugador1.add(opcionCorrecta1); opcionesElegidasJugador1.add(opcionCorrecta3); ArrayList<Opcion> opcionesElegidasJugador2 = new ArrayList<>(); opcionesElegidasJugador2.add(opcionCorrecta1); opcionesElegidasJugador2.add(opcionIncorrecta); opcionesElegidasJugador2.add(opcionCorrecta3); //Act int puntajeParaJugador1 = unaPregunta.obtenerPuntajeOpcionesElejidas(opcionesElegidasJugador1); int puntajeParaJugador2 = unaPregunta.obtenerPuntajeOpcionesElejidas(opcionesElegidasJugador2); //Assert assertEquals(2, puntajeParaJugador1); assertEquals(0, puntajeParaJugador2); } }
3e069101cd3cb0992763c729e757f84cb283495f
2,904
java
Java
src/main/java/com/itedya/guilds/daos/MemberDao.java
itedya/itedya-guilds
d29f3ce4a8f05eee58633e7d4439005d18f532be
[ "MIT" ]
1
2022-02-10T19:18:05.000Z
2022-02-10T19:18:05.000Z
src/main/java/com/itedya/guilds/daos/MemberDao.java
itedya/itedya-guilds
d29f3ce4a8f05eee58633e7d4439005d18f532be
[ "MIT" ]
1
2022-02-20T11:37:49.000Z
2022-02-20T11:37:49.000Z
src/main/java/com/itedya/guilds/daos/MemberDao.java
itedya/itedya-guilds
d29f3ce4a8f05eee58633e7d4439005d18f532be
[ "MIT" ]
1
2022-02-10T20:05:48.000Z
2022-02-10T20:05:48.000Z
29.938144
114
0.634642
2,791
package com.itedya.guilds.daos; import com.google.common.collect.Iterables; import com.google.gson.Gson; import com.itedya.guilds.Guilds; import com.itedya.guilds.models.Guild; import com.itedya.guilds.models.GuildHome; import com.itedya.guilds.models.Member; import org.bukkit.Bukkit; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import java.util.logging.Level; import java.util.stream.Collectors; public class MemberDao { private static MemberDao instance; public static MemberDao getInstance() { if (instance == null) instance = new MemberDao(); return instance; } private final Gson gson = new Gson(); private final Guilds plugin = Guilds.getPlugin(); private final Path path = Paths.get(plugin.getDataFolder().getPath(), "members.json"); private List<Member> data; private MemberDao() { try { plugin.saveResource("members.json", false); // read data FileReader fileReader = new FileReader(path.toString()); data = new CopyOnWriteArrayList<>(); data.addAll(Arrays.asList(gson.fromJson(fileReader, Member[].class))); fileReader.close(); // schedule data saver Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, () -> { try { saveData(); } catch (IOException e) { e.printStackTrace(); } }, 20 * 60, 20 * 60); } catch (IOException e) { plugin.getLogger().log(Level.SEVERE, "Server error!", e); } } public void close() throws IOException { saveData(); } private void saveData() throws IOException { FileWriter writer = new FileWriter(path.toString(), false); gson.toJson(data, writer); writer.flush(); writer.close(); } public Member add(Member member) { data.add(member); return member; } public void deleteByPlayerUuid(String playerUuid) { if (data.size() == 0) return; var member = data.stream().filter(ele -> ele.getPlayerUuid().equals(playerUuid)).findFirst().orElse(null); if (member == null) return; data.remove(member); } public void deleteByGuildId(Integer guildId) { data.removeIf(ele -> ele.getGuildId().equals(guildId)); } public Member getByPlayerUuid(String playerUuid) { return data.stream().filter(item -> item.getPlayerUuid().equals(playerUuid)).findFirst().orElse(null); } public List<Member> getByGuildId(Integer id) { return data.stream().filter(item -> item.getGuildId().equals(id)).collect(Collectors.toList()); } }
3e06917e1022c5a48d06000c443e230c134c758e
740
java
Java
IJPDS_Chapter3/src/Pratise33.java
xinlinrong/JAVA_IJPDS
56f95cdce6e75a5d6c4f4e329fbd1b86c98cd6d3
[ "BSD-3-Clause" ]
null
null
null
IJPDS_Chapter3/src/Pratise33.java
xinlinrong/JAVA_IJPDS
56f95cdce6e75a5d6c4f4e329fbd1b86c98cd6d3
[ "BSD-3-Clause" ]
null
null
null
IJPDS_Chapter3/src/Pratise33.java
xinlinrong/JAVA_IJPDS
56f95cdce6e75a5d6c4f4e329fbd1b86c98cd6d3
[ "BSD-3-Clause" ]
null
null
null
30.833333
74
0.487838
2,792
public class Pratise33 extends AbstractPratiseImpl { @Override public void run() { this.print("Enter a, b, c, d, e, f:"); double a = in.nextDouble(); double b = in.nextDouble(); double c = in.nextDouble(); double d = in.nextDouble(); double e = in.nextDouble(); double f = in.nextDouble(); double divNumber = a * d - b * c; if (Math.abs(divNumber) <= 1e-14) { this.print("The equation has no solution"); return; } else { double xVal = ((e * d) - (b * f)) / divNumber; double yVal = ((a * f) - (e * c)) / divNumber; this.print("x is %.6f and y is %.6f", xVal, yVal); } } }
3e0691c183bc04393d035d7ec8bae7bbdaec1c6f
14,166
java
Java
google/cloud/pubsublite/v1/google-cloud-pubsublite-v1-java/proto-google-cloud-pubsublite-v1-java/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/pubsublite/v1/google-cloud-pubsublite-v1-java/proto-google-cloud-pubsublite-v1-java/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/pubsublite/v1/google-cloud-pubsublite-v1-java/proto-google-cloud-pubsublite-v1-java/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
60.798283
101
0.78992
2,793
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; public final class CursorProto { private CursorProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\'google/cloud/pubsublite/v1/cursor.prot" + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + "i/annotations.proto\032\027google/api/client.p" + "roto\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\032\'google/cloud/p" + "ubsublite/v1/common.proto\"E\n\032InitialComm" + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + "esponse\"R\n\034SequencedCommitCursorRequest\022" + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + "treamingCommitCursorRequest\022I\n\007initial\030\001" + " \001(\01326.google.cloud.pubsublite.v1.Initia" + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + ".google.cloud.pubsublite.v1.SequencedCom" + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + "27.google.cloud.pubsublite.v1.InitialCom" + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + "ogle.cloud.pubsublite.v1.SequencedCommit" + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + "PartitionCursorsResponse\022F\n\021partition_cu" + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + "ursor\0228.google.cloud.pubsublite.v1.Strea" + "mingCommitCursorRequest\0329.google.cloud.p" + "ubsublite.v1.StreamingCommitCursorRespon" + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + ".pubsublite.v1.CommitCursorRequest\0320.goo" + "gle.cloud.pubsublite.v1.CommitCursorResp" + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + "rojects/*/locations/*/subscriptions/*}:c" + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + "7.google.cloud.pubsublite.v1.ListPartiti" + "onCursorsRequest\0328.google.cloud.pubsubli" + "te.v1.ListPartitionCursorsResponse\"S\202\323\344\223" + "\002D\022B/v1/cursor/{parent=projects/*/locati" + "ons/*/subscriptions/*}/cursors\332A\006parent\032" + "M\312A\031pubsublite.googleapis.com\322A.https://" + "www.googleapis.com/auth/cloud-platformB\325" + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + "rsorProtoP\001ZDgoogle.golang.org/genproto/" + "googleapis/cloud/pubsublite/v1;pubsublit" + "e\370\001\001\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Goog" + "le\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::" + "PubSubLite::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), }); internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, new java.lang.String[] { "Subscription", "Partition", }); internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, new java.lang.String[] { }); internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, new java.lang.String[] { "Cursor", }); internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, new java.lang.String[] { "AcknowledgedCommits", }); internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, new java.lang.String[] { "Initial", "Commit", "Request", }); internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, new java.lang.String[] { "Initial", "Commit", "Request", }); internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, new java.lang.String[] { "Subscription", "Partition", "Cursor", }); internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, new java.lang.String[] { }); internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, new java.lang.String[] { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, new java.lang.String[] { "Partition", "Cursor", }); internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, new java.lang.String[] { "PartitionCursors", "NextPageToken", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
3e0692b70e426b7ff72ebf98acc387fd9ec555b6
2,774
java
Java
tencentcloud-sdk-java-gaap/src/main/java/com/tencentcloudapi/gaap/v20180529/models/ProxyStatus.java
Chronos-Ye/tencentcloud-sdk-java
07e1d5d59359f81c894070be98262f0a1fbe2ebd
[ "Apache-2.0" ]
3
2020-07-28T07:46:56.000Z
2021-05-24T12:09:48.000Z
tencentcloud-sdk-java-gaap/src/main/java/com/tencentcloudapi/gaap/v20180529/models/ProxyStatus.java
Chronos-Ye/tencentcloud-sdk-java
07e1d5d59359f81c894070be98262f0a1fbe2ebd
[ "Apache-2.0" ]
null
null
null
tencentcloud-sdk-java-gaap/src/main/java/com/tencentcloudapi/gaap/v20180529/models/ProxyStatus.java
Chronos-Ye/tencentcloud-sdk-java
07e1d5d59359f81c894070be98262f0a1fbe2ebd
[ "Apache-2.0" ]
1
2021-03-23T03:19:20.000Z
2021-03-23T03:19:20.000Z
20.397059
83
0.710166
2,794
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.tencentcloudapi.gaap.v20180529.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class ProxyStatus extends AbstractModel{ /** * 通道实例ID。 */ @SerializedName("InstanceId") @Expose private String InstanceId; /** * 通道状态。 其中: RUNNING表示运行中; CREATING表示创建中; DESTROYING表示销毁中; OPENING表示开启中; CLOSING表示关闭中; CLOSED表示已关闭; ADJUSTING表示配置变更中; ISOLATING表示隔离中; ISOLATED表示已隔离; UNKNOWN表示未知状态。 */ @SerializedName("Status") @Expose private String Status; /** * Get 通道实例ID。 * @return InstanceId 通道实例ID。 */ public String getInstanceId() { return this.InstanceId; } /** * Set 通道实例ID。 * @param InstanceId 通道实例ID。 */ public void setInstanceId(String InstanceId) { this.InstanceId = InstanceId; } /** * Get 通道状态。 其中: RUNNING表示运行中; CREATING表示创建中; DESTROYING表示销毁中; OPENING表示开启中; CLOSING表示关闭中; CLOSED表示已关闭; ADJUSTING表示配置变更中; ISOLATING表示隔离中; ISOLATED表示已隔离; UNKNOWN表示未知状态。 * @return Status 通道状态。 其中: RUNNING表示运行中; CREATING表示创建中; DESTROYING表示销毁中; OPENING表示开启中; CLOSING表示关闭中; CLOSED表示已关闭; ADJUSTING表示配置变更中; ISOLATING表示隔离中; ISOLATED表示已隔离; UNKNOWN表示未知状态。 */ public String getStatus() { return this.Status; } /** * Set 通道状态。 其中: RUNNING表示运行中; CREATING表示创建中; DESTROYING表示销毁中; OPENING表示开启中; CLOSING表示关闭中; CLOSED表示已关闭; ADJUSTING表示配置变更中; ISOLATING表示隔离中; ISOLATED表示已隔离; UNKNOWN表示未知状态。 * @param Status 通道状态。 其中: RUNNING表示运行中; CREATING表示创建中; DESTROYING表示销毁中; OPENING表示开启中; CLOSING表示关闭中; CLOSED表示已关闭; ADJUSTING表示配置变更中; ISOLATING表示隔离中; ISOLATED表示已隔离; UNKNOWN表示未知状态。 */ public void setStatus(String Status) { this.Status = Status; } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "InstanceId", this.InstanceId); this.setParamSimple(map, prefix + "Status", this.Status); } }
3e0692bf2f5b54c48af81aa23b9c1cb4a0e116ea
2,604
java
Java
platforms/android/app/src/main/java/com/tns/gen/com/telerik/widget/autocomplete/AutoCompleteAdapter_vendor_108472_32_AutoCompleteAdapter.java
giim-mibd/app-ngx-client
dfb5edf7f95e0c1e2df2f2daa198a6f401ba950d
[ "MIT" ]
null
null
null
platforms/android/app/src/main/java/com/tns/gen/com/telerik/widget/autocomplete/AutoCompleteAdapter_vendor_108472_32_AutoCompleteAdapter.java
giim-mibd/app-ngx-client
dfb5edf7f95e0c1e2df2f2daa198a6f401ba950d
[ "MIT" ]
5
2020-05-11T20:20:00.000Z
2022-03-02T04:32:36.000Z
platforms/android/app/src/main/java/com/tns/gen/com/telerik/widget/autocomplete/AutoCompleteAdapter_vendor_108472_32_AutoCompleteAdapter.java
giim-mibd/app-ngx-client
dfb5edf7f95e0c1e2df2f2daa198a6f401ba950d
[ "MIT" ]
null
null
null
35.671233
86
0.722734
2,795
/* AUTO-GENERATED FILE. DO NOT MODIFY. * This class was automatically generated by the * static binding generator from the resources it found. * Please do not modify by hand. */ package com.tns.gen.com.telerik.widget.autocomplete; public class AutoCompleteAdapter_vendor_108472_32_AutoCompleteAdapter extends com.telerik.widget.autocomplete.AutoCompleteAdapter implements com.tns.NativeScriptHashCodeProvider { public AutoCompleteAdapter_vendor_108472_32_AutoCompleteAdapter( android.content.Context param_0, java.util.List<com.telerik.widget.autocomplete.TokenModel> param_1, java.lang.Integer param_2) { super(param_0, param_1, param_2); com.tns.Runtime.initInstance(this); } public AutoCompleteAdapter_vendor_108472_32_AutoCompleteAdapter( android.content.Context param_0, java.util.List<com.telerik.widget.autocomplete.TokenModel> param_1, com.telerik.widget.autocomplete.SuggestionItemViewHolder param_2) { super(param_0, param_1, param_2); com.tns.Runtime.initInstance(this); } public void filter(java.lang.String param_0) { java.lang.Object[] args = new java.lang.Object[1]; args[0] = param_0; com.tns.Runtime.callJSMethod(this, "filter", void.class, args); } public void onBindViewHolder( com.telerik.widget.autocomplete.SuggestionItemViewHolder param_0, int param_1) { java.lang.Object[] args = new java.lang.Object[2]; args[0] = param_0; args[1] = param_1; com.tns.Runtime.callJSMethod(this, "onBindViewHolder", void.class, args); } public com.telerik.widget.autocomplete.SuggestionItemViewHolder onCreateViewHolder( android.view.ViewGroup param_0, int param_1) { java.lang.Object[] args = new java.lang.Object[2]; args[0] = param_0; args[1] = param_1; return (com.telerik.widget.autocomplete.SuggestionItemViewHolder) com.tns.Runtime.callJSMethod( this, "onCreateViewHolder", com.telerik.widget.autocomplete.SuggestionItemViewHolder.class, args); } public void onBindViewHolder( com.telerik.widget.autocomplete.SuggestionItemViewHolder param_0, int param_1, java.util.List<java.lang.Object> param_2) { java.lang.Object[] args = new java.lang.Object[3]; args[0] = param_0; args[1] = param_1; args[2] = param_2; com.tns.Runtime.callJSMethod(this, "onBindViewHolder", void.class, args); } public int hashCode__super() { return super.hashCode(); } public boolean equals__super(java.lang.Object other) { return super.equals(other); } }
3e069360d49224d26de01a0d4ef0002970c665c2
2,467
java
Java
chapter_003/src/test/java/ru/chedmitriy/AbuseTest.java
CheRut/chedmitry
00d780fe0307aeb7e0cf2d1411128114678ae137
[ "Apache-2.0" ]
1
2019-05-16T19:32:33.000Z
2019-05-16T19:32:33.000Z
chapter_003/src/test/java/ru/chedmitriy/AbuseTest.java
CheRut/chedmitry
00d780fe0307aeb7e0cf2d1411128114678ae137
[ "Apache-2.0" ]
null
null
null
chapter_003/src/test/java/ru/chedmitriy/AbuseTest.java
CheRut/chedmitry
00d780fe0307aeb7e0cf2d1411128114678ae137
[ "Apache-2.0" ]
null
null
null
24.67
78
0.593433
2,797
package ru.chedmitriy; import org.junit.Before; import org.junit.Test; import ru.chedmitriy.abusesdropping.Abuse; import java.io.*; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; /** * @author Dmitry Cherutsa on 04.01.2017. * @version $Id$ * @project junior * @since 0.1 */ public class AbuseTest { /**. * out - параметр * выходного потока * */ OutputStream out; /**. * fileoutname - путь записи файла * */ final String fileoutname = "src/main/resources/abusesOut.txt"; /**. * fileinname - путь чтения файла * */ final String fileinname = "src/main/resources/abuses.txt"; /**. * параметр класса Abuse для * доступа к методу * dropAbuse * */ Abuse ab; /**. * массив "ненужных" строк * */ String[]abuse; /** * in - параметр входного * потока для чтения * строк файла * */ InputStream in; /** * in - параметр входного * потока для чтения * строк из нового файла * и проверки значений * */ InputStream inReadOut; /** * параметр для чтения * байтов * */ int readInt; /** * изменяемая строка * */ StringBuilder s = new StringBuilder(); @Before public void init() throws FileNotFoundException { ab = new Abuse(); abuse = new String[] {"two", "four", "five", "eight", "ten", "seven"}; in = new FileInputStream(new File(fileinname).getAbsolutePath()); out = new FileOutputStream(new File(fileoutname).getAbsolutePath()); inReadOut = new FileInputStream(new File(fileoutname).getAbsolutePath()); } /** * в данном тесте * я использую метод dropAbuse,чтобы * перезаписать файл abusesOut.txt * читаю его,вывожу строку * и сравниваю ее с true-параметром * и false-параметром*/ @Test public void dropAbuseTest() throws IOException { String actualTrue = "onethreesixnine"; String actualFalse = "onetwothreesixnine"; ab.dropAbuses(in, out, abuse); try { while ((readInt = inReadOut.read()) != -1) { s.append((char) readInt); } } catch (IOException ex) { System.out.println("Ошибка ввода/вывода"); ex.printStackTrace(); } assertTrue(actualTrue.equals(s.toString())); assertFalse(actualFalse.equals(s.toString())); } }
3e0693e2c3324ad8446fa2b146be3d1c155efe7b
25,814
java
Java
sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/RecoverableManagedDatabasesClientImpl.java
yiliuTo/azure-sdk-for-java
4536b6e99ded1b2b77f79bc2c31f42566c97b704
[ "MIT" ]
1,350
2015-01-17T05:22:05.000Z
2022-03-29T21:00:37.000Z
sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/RecoverableManagedDatabasesClientImpl.java
yiliuTo/azure-sdk-for-java
4536b6e99ded1b2b77f79bc2c31f42566c97b704
[ "MIT" ]
16,834
2015-01-07T02:19:09.000Z
2022-03-31T23:29:10.000Z
sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/RecoverableManagedDatabasesClientImpl.java
yiliuTo/azure-sdk-for-java
4536b6e99ded1b2b77f79bc2c31f42566c97b704
[ "MIT" ]
1,586
2015-01-02T01:50:28.000Z
2022-03-31T11:25:34.000Z
49.737958
119
0.660843
2,798
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.sql.implementation; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.sql.fluent.RecoverableManagedDatabasesClient; import com.azure.resourcemanager.sql.fluent.models.RecoverableManagedDatabaseInner; import com.azure.resourcemanager.sql.models.RecoverableManagedDatabaseListResult; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in RecoverableManagedDatabasesClient. */ public final class RecoverableManagedDatabasesClientImpl implements RecoverableManagedDatabasesClient { private final ClientLogger logger = new ClientLogger(RecoverableManagedDatabasesClientImpl.class); /** The proxy service used to perform REST calls. */ private final RecoverableManagedDatabasesService service; /** The service client containing this operation class. */ private final SqlManagementClientImpl client; /** * Initializes an instance of RecoverableManagedDatabasesClientImpl. * * @param client the instance of the service client containing this operation class. */ RecoverableManagedDatabasesClientImpl(SqlManagementClientImpl client) { this.service = RestProxy .create( RecoverableManagedDatabasesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** * The interface defining all the services for SqlManagementClientRecoverableManagedDatabases to be used by the * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SqlManagementClientR") private interface RecoverableManagedDatabasesService { @Headers({"Accept: application/json", "Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql" + "/managedInstances/{managedInstanceName}/recoverableDatabases") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono<Response<RecoverableManagedDatabaseListResult>> listByInstance( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("managedInstanceName") String managedInstanceName, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, Context context); @Headers({"Accept: application/json", "Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql" + "/managedInstances/{managedInstanceName}/recoverableDatabases/{recoverableDatabaseName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono<Response<RecoverableManagedDatabaseInner>> get( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("managedInstanceName") String managedInstanceName, @PathParam("recoverableDatabaseName") String recoverableDatabaseName, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, Context context); @Headers({"Accept: application/json", "Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono<Response<RecoverableManagedDatabaseListResult>> listByInstanceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } /** * Gets a list of recoverable managed databases. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<RecoverableManagedDatabaseInner>> listByInstanceSinglePageAsync( String resourceGroupName, String managedInstanceName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (managedInstanceName == null) { return Mono .error(new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2017-10-01-preview"; return FluxUtil .withContext( context -> service .listByInstance( this.client.getEndpoint(), resourceGroupName, managedInstanceName, this.client.getSubscriptionId(), apiVersion, context)) .<PagedResponse<RecoverableManagedDatabaseInner>>map( res -> new PagedResponseBase<>( res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); } /** * Gets a list of recoverable managed databases. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<RecoverableManagedDatabaseInner>> listByInstanceSinglePageAsync( String resourceGroupName, String managedInstanceName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (managedInstanceName == null) { return Mono .error(new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2017-10-01-preview"; context = this.client.mergeContext(context); return service .listByInstance( this.client.getEndpoint(), resourceGroupName, managedInstanceName, this.client.getSubscriptionId(), apiVersion, context) .map( res -> new PagedResponseBase<>( res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets a list of recoverable managed databases. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux<RecoverableManagedDatabaseInner> listByInstanceAsync( String resourceGroupName, String managedInstanceName) { return new PagedFlux<>( () -> listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName), nextLink -> listByInstanceNextSinglePageAsync(nextLink)); } /** * Gets a list of recoverable managed databases. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux<RecoverableManagedDatabaseInner> listByInstanceAsync( String resourceGroupName, String managedInstanceName, Context context) { return new PagedFlux<>( () -> listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName, context), nextLink -> listByInstanceNextSinglePageAsync(nextLink, context)); } /** * Gets a list of recoverable managed databases. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable<RecoverableManagedDatabaseInner> listByInstance( String resourceGroupName, String managedInstanceName) { return new PagedIterable<>(listByInstanceAsync(resourceGroupName, managedInstanceName)); } /** * Gets a list of recoverable managed databases. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable<RecoverableManagedDatabaseInner> listByInstance( String resourceGroupName, String managedInstanceName, Context context) { return new PagedIterable<>(listByInstanceAsync(resourceGroupName, managedInstanceName, context)); } /** * Gets a recoverable managed database. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param recoverableDatabaseName The recoverableDatabaseName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recoverable managed database. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<RecoverableManagedDatabaseInner>> getWithResponseAsync( String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (managedInstanceName == null) { return Mono .error(new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.")); } if (recoverableDatabaseName == null) { return Mono .error( new IllegalArgumentException("Parameter recoverableDatabaseName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2017-10-01-preview"; return FluxUtil .withContext( context -> service .get( this.client.getEndpoint(), resourceGroupName, managedInstanceName, recoverableDatabaseName, this.client.getSubscriptionId(), apiVersion, context)) .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); } /** * Gets a recoverable managed database. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param recoverableDatabaseName The recoverableDatabaseName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recoverable managed database. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<RecoverableManagedDatabaseInner>> getWithResponseAsync( String resourceGroupName, String managedInstanceName, String recoverableDatabaseName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (managedInstanceName == null) { return Mono .error(new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.")); } if (recoverableDatabaseName == null) { return Mono .error( new IllegalArgumentException("Parameter recoverableDatabaseName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2017-10-01-preview"; context = this.client.mergeContext(context); return service .get( this.client.getEndpoint(), resourceGroupName, managedInstanceName, recoverableDatabaseName, this.client.getSubscriptionId(), apiVersion, context); } /** * Gets a recoverable managed database. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param recoverableDatabaseName The recoverableDatabaseName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recoverable managed database. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono<RecoverableManagedDatabaseInner> getAsync( String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) { return getWithResponseAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName) .flatMap( (Response<RecoverableManagedDatabaseInner> res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { return Mono.empty(); } }); } /** * Gets a recoverable managed database. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param recoverableDatabaseName The recoverableDatabaseName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recoverable managed database. */ @ServiceMethod(returns = ReturnType.SINGLE) public RecoverableManagedDatabaseInner get( String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) { return getAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName).block(); } /** * Gets a recoverable managed database. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param recoverableDatabaseName The recoverableDatabaseName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a recoverable managed database. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response<RecoverableManagedDatabaseInner> getWithResponse( String resourceGroupName, String managedInstanceName, String recoverableDatabaseName, Context context) { return getWithResponseAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName, context).block(); } /** * Get the next page of items. * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<RecoverableManagedDatabaseInner>> listByInstanceNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } return FluxUtil .withContext(context -> service.listByInstanceNext(nextLink, context)) .<PagedResponse<RecoverableManagedDatabaseInner>>map( res -> new PagedResponseBase<>( res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); } /** * Get the next page of items. * * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of recoverable managed databases. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<RecoverableManagedDatabaseInner>> listByInstanceNextSinglePageAsync( String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } context = this.client.mergeContext(context); return service .listByInstanceNext(nextLink, context) .map( res -> new PagedResponseBase<>( res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } }
3e0694091a603eb22fc12986065471776279e55c
586
java
Java
common/src/main/java/mb/common/util/StreamIterable.java
molenzwiebel/common
3d70359335a25ecc2f7c5307466a491e4e1137ac
[ "Apache-2.0" ]
1
2021-09-27T22:35:06.000Z
2021-09-27T22:35:06.000Z
common/src/main/java/mb/common/util/StreamIterable.java
molenzwiebel/common
3d70359335a25ecc2f7c5307466a491e4e1137ac
[ "Apache-2.0" ]
null
null
null
common/src/main/java/mb/common/util/StreamIterable.java
molenzwiebel/common
3d70359335a25ecc2f7c5307466a491e4e1137ac
[ "Apache-2.0" ]
3
2021-08-11T11:53:53.000Z
2021-09-27T22:35:09.000Z
25.478261
119
0.686007
2,799
package mb.common.util; import java.util.Iterator; import java.util.stream.Stream; /** * An {@link Iterable} that wraps a stream. Because streams can only be iterated once, calling {@link #iterator()} more * than once may result in an {@link IllegalStateException} being thrown. * * @param <T> Type of elements. */ public class StreamIterable<T> implements Iterable<T> { private final Stream<T> stream; public StreamIterable(Stream<T> stream) { this.stream = stream; } @Override public Iterator<T> iterator() { return stream.iterator(); } }
3e0694a071840280432a5eeb4aba9970f77a8657
2,929
java
Java
thrums-validation-engine/src/test/java/no/thrums/validation/engine/keyword/object/MinPropertiesTest.java
thrums/thrums
6f042d02627bd3b792c8cf35ea5433ecfe6c5628
[ "Apache-2.0" ]
null
null
null
thrums-validation-engine/src/test/java/no/thrums/validation/engine/keyword/object/MinPropertiesTest.java
thrums/thrums
6f042d02627bd3b792c8cf35ea5433ecfe6c5628
[ "Apache-2.0" ]
null
null
null
thrums-validation-engine/src/test/java/no/thrums/validation/engine/keyword/object/MinPropertiesTest.java
thrums/thrums
6f042d02627bd3b792c8cf35ea5433ecfe6c5628
[ "Apache-2.0" ]
null
null
null
32.544444
88
0.611813
2,800
/** Copyright 2014-2016 Kristian Myrhaug Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package no.thrums.validation.engine.keyword.object; import no.thrums.validation.instance.Instance; import no.thrums.validation.engine.keyword.Helper; import no.thrums.validation.engine.keyword.Performer; import no.thrums.validation.engine.keyword.Utils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * @author Kristian Myrhaug * @since 2014-10-18 */ public class MinPropertiesTest { private Helper helper; @Before public void before() { helper = new Helper( new MinProperties() ); } @Test public void that_minProperties_keyword(){ Assert.assertTrue(Utils.isThrowsRuntimeException(new Performer() { @Override public void perform() { helper.validate("{\"minProperties\":[]}", "null"); } })); Assert.assertTrue(Utils.isThrowsRuntimeException(new Performer() { @Override public void perform() { helper.validate("{\"minProperties\":true}", "null"); } })); Assert.assertFalse(Utils.isThrowsRuntimeException(new Performer() { @Override public void perform() { helper.validate("{\"minProperties\":1}", "null"); } })); Assert.assertTrue(Utils.isThrowsRuntimeException(new Performer() { @Override public void perform() { helper.validate("{\"minProperties\":\"one\"}", "null"); } })); Assert.assertFalse(Utils.isThrowsRuntimeException(new Performer() { @Override public void perform() { helper.validate("{\"minProperties\":null}", "null"); } })); Assert.assertTrue(Utils.isThrowsRuntimeException(new Performer() { @Override public void perform() { helper.validate("{\"minProperties\":{}}", "null"); } })); } @Test public void test() { Instance schema = helper.instance("{\"minProperties\":1}"); Assert.assertFalse(helper.validate(schema, "{}").isEmpty()); Assert.assertTrue(helper.validate(schema, "{\"key1\":1}").isEmpty()); Assert.assertTrue(helper.validate(schema, "{\"key1\":1,\"key2\":2}").isEmpty()); } }
3e06959f514fe9eec8c509805e237c0d5bf30f2d
1,893
java
Java
src/main/java/org/wicketsample/Page1.java
shawnmckinney/wicket-sample
b1d83f2f4292162a561ead557ad76251b6b3c805
[ "Unlicense" ]
9
2016-05-08T14:53:47.000Z
2021-08-18T16:29:59.000Z
src/main/java/org/wicketsample/Page1.java
shawnmckinney/wicket-sample
b1d83f2f4292162a561ead557ad76251b6b3c805
[ "Unlicense" ]
null
null
null
src/main/java/org/wicketsample/Page1.java
shawnmckinney/wicket-sample
b1d83f2f4292162a561ead557ad76251b6b3c805
[ "Unlicense" ]
8
2015-08-19T22:26:43.000Z
2019-01-20T15:42:37.000Z
27.434783
74
0.545166
2,801
/* * This is free and unencumbered software released into the public domain. */ package org.wicketsample; import org.apache.wicket.ajax.AjaxRequestTarget; import com.googlecode.wicket.jquery.ui.form.button.IndicatingAjaxButton; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; //import org.apache.directory.fortress.web.control.FtIndicatingAjaxButton; /** * Wicket Sample Page 1 * * @author Shawn McKinney * @version $Rev$ */ public class Page1 extends WicketSampleBasePage { public Page1() { add( new Page1Form( "pageForm" ) ); } /** * Page 1 Form */ public class Page1Form extends Form { public Page1Form( String id ) { super( id ); add( new Label( "label1", "This is Page1" ) ); // TODO STEP: change to FtIndicatingAjaxButton: add( new IndicatingAjaxButton( "wspage1.button1" ) { @Override protected void onSubmit( AjaxRequestTarget target ) { logIt( target, "Page 1, Button 1 Pressed" ); } } ); // TODO STEP: change to FtIndicatingAjaxButton: add( new IndicatingAjaxButton( "wspage1.button2" ) { @Override protected void onSubmit( AjaxRequestTarget target ) { logIt( target, "Page 1, Button 2 Pressed" ); } } ); // TODO STEP: change to FtIndicatingAjaxButton: add( new IndicatingAjaxButton( "wspage1.button3" ) { @Override protected void onSubmit( AjaxRequestTarget target ) { logIt( target, "Page 1, Button 3 Pressed" ); } } ); } } }
3e069614afc381a6d2172841a433918ada229c27
507
java
Java
src/test/java/org/dynjs/runtime/WithStatementTest.java
build-test-conflicts/dynjs
4bc6715eff8768f8cd92c6a167d621bbfc1e1a91
[ "Apache-2.0" ]
177
2015-01-04T19:16:42.000Z
2022-03-29T03:36:45.000Z
src/test/java/org/dynjs/runtime/WithStatementTest.java
build-test-conflicts/dynjs
4bc6715eff8768f8cd92c6a167d621bbfc1e1a91
[ "Apache-2.0" ]
12
2015-01-08T18:26:35.000Z
2020-09-30T18:09:10.000Z
src/test/java/org/dynjs/runtime/WithStatementTest.java
build-test-conflicts/dynjs
4bc6715eff8768f8cd92c6a167d621bbfc1e1a91
[ "Apache-2.0" ]
67
2015-02-03T00:43:15.000Z
2022-03-02T01:38:09.000Z
23.045455
65
0.568047
2,802
package org.dynjs.runtime; import static org.fest.assertions.Assertions.*; import org.junit.Test; public class WithStatementTest extends AbstractDynJSTestSupport { @Test public void testBasicWith() { Object result = eval("var x = { fish: 'taco' };", "with(x) {", " cheese='cheddar'", " fish;", "}"); assertThat(result).isEqualTo("taco"); assertThat(eval("x.cheese")).isEqualTo(Types.UNDEFINED); } }
3e06963aebc6662f34782871bd31ff243ecb541b
15,193
java
Java
ratis-server/src/main/java/org/apache/ratis/server/raftlog/RaftLogBase.java
jojochuang/ratis
cec6b2191881c12c21ea93518d1ac18cbe894d9d
[ "Apache-2.0" ]
446
2017-02-01T16:53:04.000Z
2021-02-20T02:28:31.000Z
ratis-server/src/main/java/org/apache/ratis/server/raftlog/RaftLogBase.java
jojochuang/ratis
cec6b2191881c12c21ea93518d1ac18cbe894d9d
[ "Apache-2.0" ]
311
2018-08-20T21:53:23.000Z
2021-02-23T01:10:47.000Z
ratis-server/src/main/java/org/apache/ratis/server/raftlog/RaftLogBase.java
jojochuang/ratis
cec6b2191881c12c21ea93518d1ac18cbe894d9d
[ "Apache-2.0" ]
189
2017-02-01T16:53:13.000Z
2021-02-15T18:23:22.000Z
35.917258
111
0.708813
2,803
/* * 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.ratis.server.raftlog; import org.apache.ratis.conf.RaftProperties; import org.apache.ratis.proto.RaftProtos.LogEntryProto; import org.apache.ratis.protocol.RaftGroupMemberId; import org.apache.ratis.protocol.exceptions.StateMachineException; import org.apache.ratis.server.RaftConfiguration; import org.apache.ratis.server.RaftServerConfigKeys; import org.apache.ratis.server.protocol.TermIndex; import org.apache.ratis.statemachine.TransactionContext; import org.apache.ratis.thirdparty.com.google.protobuf.ByteString; import org.apache.ratis.util.AutoCloseableLock; import org.apache.ratis.util.JavaUtils; import org.apache.ratis.util.OpenCloseState; import org.apache.ratis.util.Preconditions; import org.apache.ratis.util.TimeDuration; import java.io.IOException; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeoutException; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.function.Consumer; import java.util.function.LongSupplier; /** * Base class of RaftLog. Currently we provide two types of RaftLog * implementation: * 1. MemoryRaftLog: all the log entries are stored in memory. This is only used * for testing. * 2. Segmented RaftLog: the log entries are persisted on disk, and are stored * in segments. */ public abstract class RaftLogBase implements RaftLog { private final Consumer<Object> infoIndexChange = s -> LOG.info("{}: {}", getName(), s); private final Consumer<Object> traceIndexChange = s -> LOG.trace("{}: {}", getName(), s); /** The least valid log index, i.e. the index used when writing to an empty log. */ public static final long LEAST_VALID_LOG_INDEX = 0L; public static final long INVALID_LOG_INDEX = LEAST_VALID_LOG_INDEX - 1; private final String name; /** * The largest committed index. Note the last committed log may be included * in the latest snapshot file. */ private final RaftLogIndex commitIndex; /** The last log index in snapshot */ private final RaftLogIndex snapshotIndex; private final RaftLogIndex purgeIndex; private final int purgeGap; private final RaftGroupMemberId memberId; private final int maxBufferSize; private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true); private final Runner runner = new Runner(this::getName); private final OpenCloseState state; private final LongSupplier getSnapshotIndexFromStateMachine; private volatile LogEntryProto lastMetadataEntry = null; protected RaftLogBase(RaftGroupMemberId memberId, LongSupplier getSnapshotIndexFromStateMachine, RaftProperties properties) { this.name = memberId + "-" + JavaUtils.getClassSimpleName(getClass()); this.memberId = memberId; long index = getSnapshotIndexFromStateMachine.getAsLong(); this.commitIndex = new RaftLogIndex("commitIndex", index); this.snapshotIndex = new RaftLogIndex("snapshotIndex", index); this.purgeIndex = new RaftLogIndex("purgeIndex", LEAST_VALID_LOG_INDEX - 1); this.purgeGap = RaftServerConfigKeys.Log.purgeGap(properties); this.maxBufferSize = RaftServerConfigKeys.Log.Appender.bufferByteLimit(properties).getSizeInt(); this.state = new OpenCloseState(getName()); this.getSnapshotIndexFromStateMachine = getSnapshotIndexFromStateMachine; } @Override public long getLastCommittedIndex() { return commitIndex.get(); } @Override public long getSnapshotIndex() { return snapshotIndex.get(); } public void checkLogState() { state.assertOpen(); } /** Is this log already opened? */ public boolean isOpened() { return state.isOpened(); } @Override public boolean updateCommitIndex(long majorityIndex, long currentTerm, boolean isLeader) { try(AutoCloseableLock writeLock = writeLock()) { final long oldCommittedIndex = getLastCommittedIndex(); final long newCommitIndex = Math.min(majorityIndex, getFlushIndex()); if (oldCommittedIndex < newCommitIndex) { if (!isLeader) { commitIndex.updateIncreasingly(newCommitIndex, traceIndexChange); return true; } // Only update last committed index for current term. See §5.4.2 in paper for details. final TermIndex entry = getTermIndex(newCommitIndex); if (entry != null && entry.getTerm() == currentTerm) { commitIndex.updateIncreasingly(newCommitIndex, traceIndexChange); return true; } } } return false; } protected void updateSnapshotIndexFromStateMachine() { updateSnapshotIndex(getSnapshotIndexFromStateMachine.getAsLong()); } @Override public void updateSnapshotIndex(long newSnapshotIndex) { try(AutoCloseableLock writeLock = writeLock()) { final long oldSnapshotIndex = getSnapshotIndex(); if (oldSnapshotIndex < newSnapshotIndex) { snapshotIndex.updateIncreasingly(newSnapshotIndex, infoIndexChange); } final long oldCommitIndex = getLastCommittedIndex(); if (oldCommitIndex < newSnapshotIndex) { commitIndex.updateIncreasingly(newSnapshotIndex, traceIndexChange); } } } @Override public final long append(long term, TransactionContext transaction) throws StateMachineException { return runner.runSequentially(() -> appendImpl(term, transaction)); } private long appendImpl(long term, TransactionContext operation) throws StateMachineException { checkLogState(); try(AutoCloseableLock writeLock = writeLock()) { final long nextIndex = getNextIndex(); // This is called here to guarantee strict serialization of callback executions in case // the SM wants to attach a logic depending on ordered execution in the log commit order. try { operation = operation.preAppendTransaction(); } catch (StateMachineException e) { throw e; } catch (IOException e) { throw new StateMachineException(memberId, e); } // build the log entry after calling the StateMachine final LogEntryProto e = operation.initLogEntry(term, nextIndex); int entrySize = e.getSerializedSize(); if (entrySize > maxBufferSize) { throw new StateMachineException(memberId, new RaftLogIOException( "Log entry size " + entrySize + " exceeds the max buffer limit of " + maxBufferSize)); } appendEntry(e); return nextIndex; } } @Override public final long appendMetadata(long term, long newCommitIndex) { return runner.runSequentially(() -> appendMetadataImpl(term, newCommitIndex)); } private long appendMetadataImpl(long term, long newCommitIndex) { checkLogState(); if (!shouldAppendMetadata(newCommitIndex)) { return INVALID_LOG_INDEX; } final LogEntryProto entry; final long nextIndex; try(AutoCloseableLock writeLock = writeLock()) { nextIndex = getNextIndex(); entry = LogProtoUtils.toLogEntryProto(newCommitIndex, term, nextIndex); appendEntry(entry); } lastMetadataEntry = entry; return nextIndex; } private boolean shouldAppendMetadata(long newCommitIndex) { if (newCommitIndex <= 0) { // do not log the first conf entry return false; } else if (Optional.ofNullable(lastMetadataEntry) .filter(e -> e.getIndex() == newCommitIndex || e.getMetadataEntry().getCommitIndex() >= newCommitIndex) .isPresent()) { //log neither lastMetadataEntry, nor entries with a smaller commit index. return false; } try { if (get(newCommitIndex).hasMetadataEntry()) { // do not log the metadata entry return false; } } catch(RaftLogIOException e) { LOG.error("Failed to get log entry for index " + newCommitIndex, e); } return true; } @Override public final long append(long term, RaftConfiguration configuration) { return runner.runSequentially(() -> appendImpl(term, configuration)); } private long appendImpl(long term, RaftConfiguration newConf) { checkLogState(); try(AutoCloseableLock writeLock = writeLock()) { final long nextIndex = getNextIndex(); appendEntry(LogProtoUtils.toLogEntryProto(newConf, term, nextIndex)); return nextIndex; } } @Override public final void open(long lastIndexInSnapshot, Consumer<LogEntryProto> consumer) throws IOException { openImpl(lastIndexInSnapshot, e -> { if (e.hasMetadataEntry()) { lastMetadataEntry = e; } else if (consumer != null) { consumer.accept(e); } }); Optional.ofNullable(lastMetadataEntry).ifPresent( e -> commitIndex.updateToMax(e.getMetadataEntry().getCommitIndex(), infoIndexChange)); state.open(); final long startIndex = getStartIndex(); if (startIndex > LEAST_VALID_LOG_INDEX) { purgeIndex.updateIncreasingly(startIndex - 1, infoIndexChange); } } protected void openImpl(long lastIndexInSnapshot, Consumer<LogEntryProto> consumer) throws IOException { } /** * Validate the term and index of entry w.r.t RaftLog */ protected void validateLogEntry(LogEntryProto entry) { if (entry.hasMetadataEntry()) { return; } long latestSnapshotIndex = getSnapshotIndex(); TermIndex lastTermIndex = getLastEntryTermIndex(); if (lastTermIndex != null) { long lastIndex = lastTermIndex.getIndex() > latestSnapshotIndex ? lastTermIndex.getIndex() : latestSnapshotIndex; Preconditions.assertTrue(entry.getTerm() >= lastTermIndex.getTerm(), "Entry term less than RaftLog's last term: %d, entry: %s", lastTermIndex.getTerm(), entry); Preconditions.assertTrue(entry.getIndex() == lastIndex + 1, "Difference between entry index and RaftLog's last index %d (or snapshot index %d) " + "is greater than 1, entry: %s", lastTermIndex.getIndex(), latestSnapshotIndex, entry); } else { Preconditions.assertTrue(entry.getIndex() == latestSnapshotIndex + 1, "Difference between entry index and RaftLog's latest snapshot index %d is greater than 1 " + "and in between log entries are not present, entry: %s", latestSnapshotIndex, entry); } } @Override public final CompletableFuture<Long> truncate(long index) { return runner.runSequentially(() -> truncateImpl(index)); } protected abstract CompletableFuture<Long> truncateImpl(long index); @Override public final CompletableFuture<Long> purge(long suggestedIndex) { final long lastPurge = purgeIndex.get(); if (suggestedIndex - lastPurge < purgeGap) { return CompletableFuture.completedFuture(lastPurge); } LOG.info("{}: purge {}", getName(), suggestedIndex); return purgeImpl(suggestedIndex).whenComplete((purged, e) -> { if (purged != null) { purgeIndex.updateToMax(purged, infoIndexChange); } if (e != null) { LOG.warn(getName() + ": Failed to purge " + suggestedIndex, e); } }); } protected abstract CompletableFuture<Long> purgeImpl(long index); @Override public final CompletableFuture<Long> appendEntry(LogEntryProto entry) { return runner.runSequentially(() -> appendEntryImpl(entry)); } protected abstract CompletableFuture<Long> appendEntryImpl(LogEntryProto entry); @Override public final List<CompletableFuture<Long>> append(LogEntryProto... entries) { return runner.runSequentially(() -> appendImpl(entries)); } protected abstract List<CompletableFuture<Long>> appendImpl(LogEntryProto... entries); @Override public String toString() { return getName() + ":" + state + ":c" + getLastCommittedIndex(); } public AutoCloseableLock readLock() { return AutoCloseableLock.acquire(lock.readLock()); } public AutoCloseableLock writeLock() { return AutoCloseableLock.acquire(lock.writeLock()); } public boolean hasWriteLock() { return this.lock.isWriteLockedByCurrentThread(); } public boolean hasReadLock() { return this.lock.getReadHoldCount() > 0 || hasWriteLock(); } @Override public void close() throws IOException { state.close(); } public String getName() { return name; } protected EntryWithData newEntryWithData(LogEntryProto logEntry, CompletableFuture<ByteString> future) { return new EntryWithDataImpl(logEntry, future); } /** * Holds proto entry along with future which contains read state machine data */ class EntryWithDataImpl implements EntryWithData { private final LogEntryProto logEntry; private final CompletableFuture<ByteString> future; EntryWithDataImpl(LogEntryProto logEntry, CompletableFuture<ByteString> future) { this.logEntry = logEntry; this.future = future; } @Override public int getSerializedSize() { return LogProtoUtils.getSerializedSize(logEntry); } @Override public LogEntryProto getEntry(TimeDuration timeout) throws RaftLogIOException, TimeoutException { LogEntryProto entryProto; if (future == null) { return logEntry; } try { entryProto = future.thenApply(data -> LogProtoUtils.addStateMachineData(data, logEntry)) .get(timeout.getDuration(), timeout.getUnit()); } catch (TimeoutException t) { final String err = getName() + ": Timeout readStateMachineData for " + toLogEntryString(logEntry); LOG.error(err, t); throw t; } catch (Exception e) { final String err = getName() + ": Failed readStateMachineData for " + toLogEntryString(logEntry); LOG.error(err, e); throw new RaftLogIOException(err, JavaUtils.unwrapCompletionException(e)); } // by this time we have already read the state machine data, // so the log entry data should be set now if (LogProtoUtils.isStateMachineDataEmpty(entryProto)) { final String err = getName() + ": State machine data not set for " + toLogEntryString(logEntry); LOG.error(err); throw new RaftLogIOException(err); } return entryProto; } @Override public String toString() { return toLogEntryString(logEntry); } } public String toLogEntryString(LogEntryProto logEntry) { return LogProtoUtils.toLogEntryString(logEntry); } }
3e0697a2bf13d50ebec14e88255f1b336af90d5b
4,055
java
Java
swsw-system/src/main/java/com/cdyw/swsw/system/app/util/TimeStampUtil.java
jovi521/swsw
bb82da37b80953340e6e20122da17851654c9e76
[ "Apache-2.0" ]
1
2021-06-08T08:35:58.000Z
2021-06-08T08:35:58.000Z
swsw-system/src/main/java/com/cdyw/swsw/system/app/util/TimeStampUtil.java
jovi521/swsw
bb82da37b80953340e6e20122da17851654c9e76
[ "Apache-2.0" ]
null
null
null
swsw-system/src/main/java/com/cdyw/swsw/system/app/util/TimeStampUtil.java
jovi521/swsw
bb82da37b80953340e6e20122da17851654c9e76
[ "Apache-2.0" ]
3
2021-04-01T14:26:39.000Z
2022-03-12T00:47:59.000Z
32.701613
120
0.637485
2,804
package com.cdyw.swsw.system.app.util; import cn.hutool.core.date.DateUtil; import java.time.Instant; import java.util.*; /** * @author jovi */ public class TimeStampUtil { public static List<Map<String, String>> timeStampToLocalDateTime(String startTime, String endTime) { List<Map<String, String>> resultList = new ArrayList<>(); Map<String, String> resultMap = new HashMap<>(16); Long startTimeL = Optional.ofNullable(startTime).map(Long::valueOf).orElse(null); Long endTimeL = Optional.ofNullable(endTime).map(Long::valueOf).orElse(null); String startTimeStr; String endTimeStr; if (startTimeL != null && endTimeL != null) { startTimeStr = DateUtil.formatLocalDateTime(DateUtil.toLocalDateTime(Instant.ofEpochSecond(startTimeL))); endTimeStr = DateUtil.formatLocalDateTime(DateUtil.toLocalDateTime(Instant.ofEpochSecond(endTimeL))); resultMap.put("startTimeStr", startTimeStr); resultMap.put("endTimeStr", endTimeStr); resultList.add(resultMap); } return resultList; } /** * 将毫秒的时间戳转化为格式化的时间字符串 * * @param timeStamp String * @return String */ public static String timeStampToLocalDateTimeStr(String timeStamp) { String result = null; Long timeStampL = Optional.ofNullable(timeStamp).map(Long::valueOf).orElse(null); if (timeStampL != null) { result = DateUtil.formatLocalDateTime(DateUtil.toLocalDateTime(Instant.ofEpochSecond(timeStampL))); } return result; } /** * 将毫秒的时间戳转化为yyyyMMdd格式化的时间字符串 * * @param timeStamp String * @return String */ public static String timeStampToYyyyMmDd(String timeStamp) { String result = null; Long timeStampL = Optional.ofNullable(timeStamp).map(Long::valueOf).orElse(null); if (timeStampL != null) { result = DateUtil.format(DateUtil.toLocalDateTime(Instant.ofEpochSecond(timeStampL)), "yyyyMMdd"); } return result; } /** * 将毫秒的时间戳转化为yyyy格式化的时间字符串 * * @param timeStamp String * @return String */ public static String timeStampToYyyy(String timeStamp) { String result = null; Long timeStampL = Optional.ofNullable(timeStamp).map(Long::valueOf).orElse(null); if (timeStampL != null) { result = DateUtil.format(DateUtil.toLocalDateTime(Instant.ofEpochSecond(timeStampL)), "yyyy"); } return result; } /** * 将毫秒的时间戳转化为指定格式的时间字符串 * * @param timeStamp 时间戳 * @param format 格式 * @return String */ public static String timeStampToTimeStr(Long timeStamp, String format) { String result = null; Long timeStampL = Optional.ofNullable(timeStamp).orElse(null); if (timeStampL != null) { result = DateUtil.format(DateUtil.toLocalDateTime(Instant.ofEpochSecond(timeStampL)), format); } return result; } /** * 将毫秒的时间戳转化为指定格式的本地时间字符串 * * @param timeStamp 时间戳 * @param format 格式 * @return String */ public static String timeStampToLocalTimeStr(Long timeStamp, String format) { String result = null; Long timeStampL = Optional.ofNullable(timeStamp).orElse(null); if (timeStampL != null) { result = DateUtil.format(DateUtil.toLocalDateTime(Instant.ofEpochSecond(timeStampL)).plusHours(8), format); } return result; } /** * 将毫秒的时间戳转化为指定格式的UTC时间字符串 * * @param timeStamp 时间戳 * @param format 格式 * @return String */ public static String timeStampToUtcTimeStr(Long timeStamp, String format) { String result = null; Long timeStampL = Optional.ofNullable(timeStamp).orElse(null); if (timeStampL != null) { result = DateUtil.format(DateUtil.toLocalDateTime(Instant.ofEpochSecond(timeStampL)).minusHours(8), format); } return result; } }
3e0697cfca2bd802277e733ff4083c078738b654
336
java
Java
app/src/main/java/com/notbytes/barcodereader/Model/Transportes.java
JuanHervasV/HitosScharffFinal
1a6a17caf6a3e24a9f831ff732fb5dc54ebaafb3
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/notbytes/barcodereader/Model/Transportes.java
JuanHervasV/HitosScharffFinal
1a6a17caf6a3e24a9f831ff732fb5dc54ebaafb3
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/notbytes/barcodereader/Model/Transportes.java
JuanHervasV/HitosScharffFinal
1a6a17caf6a3e24a9f831ff732fb5dc54ebaafb3
[ "Apache-2.0" ]
null
null
null
16.8
55
0.651786
2,805
package com.notbytes.barcodereader.Model; public class Transportes { private String Codigo; private String Descripcion; private String nvm; public Transportes(String Nvm) { nvm = Nvm; } public String codigo() { return Codigo; } public String descripcion() { return Descripcion; } }
3e0697f0602fef6a476f46ccc43f4a8e8c8c3b6b
374,455
java
Java
NaFunny/build/generated/source/r/release/com/nafunny/app/R.java
sergey-korchagin/funny
857e5f7dbb8d85e3869e86e8b77379e1e18a6328
[ "Apache-2.0" ]
null
null
null
NaFunny/build/generated/source/r/release/com/nafunny/app/R.java
sergey-korchagin/funny
857e5f7dbb8d85e3869e86e8b77379e1e18a6328
[ "Apache-2.0" ]
null
null
null
NaFunny/build/generated/source/r/release/com/nafunny/app/R.java
sergey-korchagin/funny
857e5f7dbb8d85e3869e86e8b77379e1e18a6328
[ "Apache-2.0" ]
null
null
null
58.481181
169
0.656226
2,806
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.nafunny.app; public final class R { public static final class anim { public static final int abc_fade_in=0x7f050000; public static final int abc_fade_out=0x7f050001; public static final int abc_grow_fade_in_from_bottom=0x7f050002; public static final int abc_popup_enter=0x7f050003; public static final int abc_popup_exit=0x7f050004; public static final int abc_shrink_fade_out_from_bottom=0x7f050005; public static final int abc_slide_in_bottom=0x7f050006; public static final int abc_slide_in_top=0x7f050007; public static final int abc_slide_out_bottom=0x7f050008; public static final int abc_slide_out_top=0x7f050009; public static final int shake=0x7f05000a; } public static final class attr { /** <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=0x7f010068; /** <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=0x7f010069; /** <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 actionBarPopupTheme=0x7f010062; /** <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>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>May 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>wrap_content</code></td><td>0</td><td></td></tr> </table> */ public static final int actionBarSize=0x7f010067; /** <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=0x7f010064; /** <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=0x7f010063; /** <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=0x7f01005e; /** <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=0x7f01005d; /** <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=0x7f01005f; /** <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 actionBarTheme=0x7f010065; /** <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=0x7f010066; /** <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=0x7f010082; /** <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=0x7f01007e; /** <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=0x7f010039; /** <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=0x7f01006a; /** <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=0x7f01006b; /** <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=0x7f01006e; /** <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=0x7f01006d; /** <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=0x7f010070; /** <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=0x7f010072; /** <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=0x7f010071; /** <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=0x7f010076; /** <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=0x7f010073; /** <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=0x7f010078; /** <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=0x7f010074; /** <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=0x7f010075; /** <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=0x7f01006f; /** <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=0x7f01006c; /** <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=0x7f010077; /** <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=0x7f010060; /** <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 actionOverflowMenuStyle=0x7f010061; /** <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=0x7f01003b; /** <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=0x7f01003a; /** <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=0x7f01008a; /** <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 adSize=0x7f01001f; /** <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 adSizes=0x7f010020; /** <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 adUnitId=0x7f010021; /** <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 alertDialogButtonGroupStyle=0x7f0100ac; /** <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 alertDialogCenterButtons=0x7f0100ad; /** <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 alertDialogStyle=0x7f0100ab; /** <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 alertDialogTheme=0x7f0100ae; /** <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 arrowHeadLength=0x7f01002e; /** <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 arrowShaftLength=0x7f01002f; /** <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 autoCompleteTextViewStyle=0x7f0100b3; /** <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=0x7f01000c; /** <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=0x7f01000e; /** <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=0x7f01000d; /** <p>Must 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 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 backgroundTint=0x7f0100cf; /** <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> */ public static final int backgroundTintMode=0x7f0100d0; /** <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 barLength=0x7f010030; /** <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 borderlessButtonStyle=0x7f010087; /** <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=0x7f010084; /** <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 buttonBarNegativeButtonStyle=0x7f0100b1; /** <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 buttonBarNeutralButtonStyle=0x7f0100b2; /** <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 buttonBarPositiveButtonStyle=0x7f0100b0; /** <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=0x7f010083; /** <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 buttonPanelSideLayout=0x7f010022; /** <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 buttonStyle=0x7f0100b4; /** <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 buttonStyleSmall=0x7f0100b5; /** <p>Must 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 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 buttonTint=0x7f010028; /** <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> */ public static final int buttonTintMode=0x7f010029; /** <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 checkboxStyle=0x7f0100b6; /** <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 checkedTextViewStyle=0x7f0100b7; /** <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 circleCrop=0x7f010037; /** <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 closeIcon=0x7f010043; /** <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 closeItemLayout=0x7f01001c; /** <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 collapseContentDescription=0x7f0100c6; /** <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 collapseIcon=0x7f0100c5; /** <p>Must 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 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 color=0x7f01002a; /** <p>Must 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 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 colorAccent=0x7f0100a4; /** <p>Must 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 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 colorButtonNormal=0x7f0100a8; /** <p>Must 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 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 colorControlActivated=0x7f0100a6; /** <p>Must 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 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 colorControlHighlight=0x7f0100a7; /** <p>Must 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 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 colorControlNormal=0x7f0100a5; /** <p>Must 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 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 colorPrimary=0x7f0100a2; /** <p>Must 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 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 colorPrimaryDark=0x7f0100a3; /** <p>Must 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 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 colorSwitchThumbNormal=0x7f0100a9; /** <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 commitIcon=0x7f010048; /** <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 contentInsetEnd=0x7f010017; /** <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 contentInsetLeft=0x7f010018; /** <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 contentInsetRight=0x7f010019; /** <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 contentInsetStart=0x7f010016; /** <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 controlBackground=0x7f0100aa; /** <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=0x7f01000f; /** <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 defaultQueryHint=0x7f010042; /** <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 dialogPreferredPadding=0x7f01007c; /** <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 dialogTheme=0x7f01007b; /** <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>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=0x7f010005; /** <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=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 dividerHorizontal=0x7f010089; /** <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=0x7f010034; /** <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=0x7f010088; /** <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 drawableSize=0x7f01002c; /** <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 drawerArrowStyle=0x7f010000; /** <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=0x7f01009a; /** <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=0x7f01007f; /** <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 editTextBackground=0x7f010090; /** <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 editTextColor=0x7f01008f; /** <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 editTextStyle=0x7f0100b8; /** <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 elevation=0x7f01001a; /** <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=0x7f01001e; /** <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 gapBetweenBars=0x7f01002d; /** <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 goIcon=0x7f010044; /** <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=0x7f010001; /** <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 hideOnContentScroll=0x7f010015; /** <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=0x7f010081; /** <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=0x7f010010; /** <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=0x7f010009; /** <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=0x7f010040; /** <p>Must be a floating point value, such as "<code>1.2</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 imageAspectRatio=0x7f010036; /** <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>none</code></td><td>0</td><td></td></tr> <tr><td><code>adjust_width</code></td><td>1</td><td></td></tr> <tr><td><code>adjust_height</code></td><td>2</td><td></td></tr> </table> */ public static final int imageAspectRatioAdjust=0x7f010035; /** <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=0x7f010012; /** <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=0x7f01001d; /** <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=0x7f010002; /** <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=0x7f010014; /** <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 layout=0x7f01003f; /** <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=0x7f0100a1; /** <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 listDividerAlertDialog=0x7f01007d; /** <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 listItemLayout=0x7f010026; /** <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 listLayout=0x7f010023; /** <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=0x7f01009b; /** <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=0x7f010095; /** <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=0x7f010097; /** <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=0x7f010096; /** <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=0x7f010098; /** <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=0x7f010099; /** <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=0x7f01000a; /** <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 logoDescription=0x7f0100c9; /** <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 maxButtonHeight=0x7f0100c4; /** <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 measureWithLargestChild=0x7f010032; /** <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 multiChoiceItemLayout=0x7f010024; /** <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 navigationContentDescription=0x7f0100c8; /** <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 navigationIcon=0x7f0100c7; /** <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></td></tr> <tr><td><code>listMode</code></td><td>1</td><td></td></tr> <tr><td><code>tabMode</code></td><td>2</td><td></td></tr> </table> */ public static final int navigationMode=0x7f010004; /** <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 overlapAnchor=0x7f01003d; /** <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=0x7f0100cd; /** <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=0x7f0100cc; /** <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 panelBackground=0x7f01009e; /** <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=0x7f0100a0; /** <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=0x7f01009f; /** <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=0x7f01008d; /** <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 popupTheme=0x7f01001b; /** <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 popupWindowStyle=0x7f01008e; /** <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 preserveIconSpacing=0x7f01003c; /** <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=0x7f010013; /** <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=0x7f010011; /** <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 queryBackground=0x7f01004a; /** <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=0x7f010041; /** <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 radioButtonStyle=0x7f0100b9; /** <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 ratingBarStyle=0x7f0100ba; /** <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 searchHintIcon=0x7f010046; /** <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 searchIcon=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 searchViewStyle=0x7f010094; /** <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=0x7f010085; /** <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 selectableItemBackgroundBorderless=0x7f010086; /** <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></td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td></td></tr> <tr><td><code>always</code></td><td>2</td><td></td></tr> <tr><td><code>withText</code></td><td>4</td><td></td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr> </table> */ public static final int showAsAction=0x7f010038; /** <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=0x7f010033; /** <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 showText=0x7f010052; /** <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 singleChoiceItemLayout=0x7f010025; /** <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 spinBars=0x7f01002b; /** <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=0x7f010080; /** <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=0x7f0100bb; /** <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 splitTrack=0x7f010051; /** <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 state_above_anchor=0x7f01003e; /** <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 submitBackground=0x7f01004b; /** <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=0x7f010006; /** <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 subtitleTextAppearance=0x7f0100be; /** <p>Must 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 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 subtitleTextColor=0x7f0100cb; /** <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=0x7f010008; /** <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 suggestionRowLayout=0x7f010049; /** <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 switchMinWidth=0x7f01004f; /** <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 switchPadding=0x7f010050; /** <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 switchStyle=0x7f0100bc; /** <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 switchTextAppearance=0x7f01004e; /** <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=0x7f010027; /** <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=0x7f010079; /** <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=0x7f01009c; /** <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=0x7f01009d; /** <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=0x7f010092; /** <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=0x7f010091; /** <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=0x7f01007a; /** <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 textColorAlertDialogListItem=0x7f0100af; /** <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=0x7f010093; /** <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 theme=0x7f0100ce; /** <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 thickness=0x7f010031; /** <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 thumbTextPadding=0x7f01004d; /** <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=0x7f010003; /** <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 titleMarginBottom=0x7f0100c3; /** <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 titleMarginEnd=0x7f0100c1; /** <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 titleMarginStart=0x7f0100c0; /** <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 titleMarginTop=0x7f0100c2; /** <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 titleMargins=0x7f0100bf; /** <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 titleTextAppearance=0x7f0100bd; /** <p>Must 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 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 titleTextColor=0x7f0100ca; /** <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=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 toolbarNavigationButtonStyle=0x7f01008c; /** <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 toolbarStyle=0x7f01008b; /** <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 track=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 voiceIcon=0x7f010047; /** <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=0x7f010053; /** <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=0x7f010055; /** <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 windowActionModeOverlay=0x7f010056; /** <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=0x7f01005a; /** <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=0x7f010058; /** <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=0x7f010057; /** <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=0x7f010059; /** <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 windowMinWidthMajor=0x7f01005b; /** <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 windowMinWidthMinor=0x7f01005c; /** <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 windowNoTitle=0x7f010054; } public static final class bool { public static final int abc_action_bar_embed_tabs=0x7f0b0002; public static final int abc_action_bar_embed_tabs_pre_jb=0x7f0b0000; public static final int abc_action_bar_expanded_action_views_exclusive=0x7f0b0003; public static final int abc_config_actionMenuItemAllCaps=0x7f0b0004; public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f0b0001; public static final int abc_config_closeDialogWhenTouchOutside=0x7f0b0005; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f0b0006; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark=0x7f0d003e; public static final int abc_background_cache_hint_selector_material_light=0x7f0d003f; public static final int abc_color_highlight_material=0x7f0d0040; public static final int abc_input_method_navigation_guard=0x7f0d0000; public static final int abc_primary_text_disable_only_material_dark=0x7f0d0041; public static final int abc_primary_text_disable_only_material_light=0x7f0d0042; public static final int abc_primary_text_material_dark=0x7f0d0043; public static final int abc_primary_text_material_light=0x7f0d0044; public static final int abc_search_url_text=0x7f0d0045; public static final int abc_search_url_text_normal=0x7f0d0001; public static final int abc_search_url_text_pressed=0x7f0d0002; public static final int abc_search_url_text_selected=0x7f0d0003; public static final int abc_secondary_text_material_dark=0x7f0d0046; public static final int abc_secondary_text_material_light=0x7f0d0047; public static final int accent_material_dark=0x7f0d0004; public static final int accent_material_light=0x7f0d0005; public static final int background_floating_material_dark=0x7f0d0006; public static final int background_floating_material_light=0x7f0d0007; public static final int background_material_dark=0x7f0d0008; public static final int background_material_light=0x7f0d0009; public static final int bright_foreground_disabled_material_dark=0x7f0d000a; public static final int bright_foreground_disabled_material_light=0x7f0d000b; public static final int bright_foreground_inverse_material_dark=0x7f0d000c; public static final int bright_foreground_inverse_material_light=0x7f0d000d; public static final int bright_foreground_material_dark=0x7f0d000e; public static final int bright_foreground_material_light=0x7f0d000f; public static final int button_material_dark=0x7f0d0010; public static final int button_material_light=0x7f0d0011; public static final int dim_foreground_disabled_material_dark=0x7f0d0012; public static final int dim_foreground_disabled_material_light=0x7f0d0013; public static final int dim_foreground_material_dark=0x7f0d0014; public static final int dim_foreground_material_light=0x7f0d0015; public static final int foreground_material_dark=0x7f0d0016; public static final int foreground_material_light=0x7f0d0017; public static final int highlighted_text_material_dark=0x7f0d0018; public static final int highlighted_text_material_light=0x7f0d0019; public static final int hint_foreground_material_dark=0x7f0d001a; public static final int hint_foreground_material_light=0x7f0d001b; public static final int material_blue_grey_800=0x7f0d001c; public static final int material_blue_grey_900=0x7f0d001d; public static final int material_blue_grey_950=0x7f0d001e; public static final int material_deep_teal_200=0x7f0d001f; public static final int material_deep_teal_500=0x7f0d0020; public static final int material_grey_100=0x7f0d0021; public static final int material_grey_300=0x7f0d0022; public static final int material_grey_50=0x7f0d0023; public static final int material_grey_600=0x7f0d0024; public static final int material_grey_800=0x7f0d0025; public static final int material_grey_850=0x7f0d0026; public static final int material_grey_900=0x7f0d0027; public static final int orange=0x7f0d0028; public static final int primary_dark_material_dark=0x7f0d0029; public static final int primary_dark_material_light=0x7f0d002a; public static final int primary_material_dark=0x7f0d002b; public static final int primary_material_light=0x7f0d002c; public static final int primary_text_default_material_dark=0x7f0d002d; public static final int primary_text_default_material_light=0x7f0d002e; public static final int primary_text_disabled_material_dark=0x7f0d002f; public static final int primary_text_disabled_material_light=0x7f0d0030; public static final int ripple_material_dark=0x7f0d0031; public static final int ripple_material_light=0x7f0d0032; public static final int secondary_text_default_material_dark=0x7f0d0033; public static final int secondary_text_default_material_light=0x7f0d0034; public static final int secondary_text_disabled_material_dark=0x7f0d0035; public static final int secondary_text_disabled_material_light=0x7f0d0036; public static final int switch_thumb_disabled_material_dark=0x7f0d0037; public static final int switch_thumb_disabled_material_light=0x7f0d0038; public static final int switch_thumb_material_dark=0x7f0d0048; public static final int switch_thumb_material_light=0x7f0d0049; public static final int switch_thumb_normal_material_dark=0x7f0d0039; public static final int switch_thumb_normal_material_light=0x7f0d003a; public static final int violet=0x7f0d003b; public static final int violet_transparent=0x7f0d003c; public static final int white=0x7f0d003d; } public static final class dimen { public static final int abc_action_bar_content_inset_material=0x7f09000b; public static final int abc_action_bar_default_height_material=0x7f090001; public static final int abc_action_bar_default_padding_end_material=0x7f09000c; public static final int abc_action_bar_default_padding_start_material=0x7f09000d; public static final int abc_action_bar_icon_vertical_padding_material=0x7f090010; public static final int abc_action_bar_overflow_padding_end_material=0x7f090011; public static final int abc_action_bar_overflow_padding_start_material=0x7f090012; public static final int abc_action_bar_progress_bar_size=0x7f090002; public static final int abc_action_bar_stacked_max_height=0x7f090013; public static final int abc_action_bar_stacked_tab_max_width=0x7f090014; public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f090015; public static final int abc_action_bar_subtitle_top_margin_material=0x7f090016; public static final int abc_action_button_min_height_material=0x7f090017; public static final int abc_action_button_min_width_material=0x7f090018; public static final int abc_action_button_min_width_overflow_material=0x7f090019; public static final int abc_alert_dialog_button_bar_height=0x7f090000; public static final int abc_button_inset_horizontal_material=0x7f09001a; public static final int abc_button_inset_vertical_material=0x7f09001b; public static final int abc_button_padding_horizontal_material=0x7f09001c; public static final int abc_button_padding_vertical_material=0x7f09001d; public static final int abc_config_prefDialogWidth=0x7f090005; public static final int abc_control_corner_material=0x7f09001e; public static final int abc_control_inset_material=0x7f09001f; public static final int abc_control_padding_material=0x7f090020; public static final int abc_dialog_list_padding_vertical_material=0x7f090021; public static final int abc_dialog_min_width_major=0x7f090022; public static final int abc_dialog_min_width_minor=0x7f090023; public static final int abc_dialog_padding_material=0x7f090024; public static final int abc_dialog_padding_top_material=0x7f090025; public static final int abc_disabled_alpha_material_dark=0x7f090026; public static final int abc_disabled_alpha_material_light=0x7f090027; public static final int abc_dropdownitem_icon_width=0x7f090028; public static final int abc_dropdownitem_text_padding_left=0x7f090029; public static final int abc_dropdownitem_text_padding_right=0x7f09002a; public static final int abc_edit_text_inset_bottom_material=0x7f09002b; public static final int abc_edit_text_inset_horizontal_material=0x7f09002c; public static final int abc_edit_text_inset_top_material=0x7f09002d; public static final int abc_floating_window_z=0x7f09002e; public static final int abc_list_item_padding_horizontal_material=0x7f09002f; public static final int abc_panel_menu_list_width=0x7f090030; public static final int abc_search_view_preferred_width=0x7f090031; public static final int abc_search_view_text_min_width=0x7f090006; public static final int abc_switch_padding=0x7f09000e; public static final int abc_text_size_body_1_material=0x7f090032; public static final int abc_text_size_body_2_material=0x7f090033; public static final int abc_text_size_button_material=0x7f090034; public static final int abc_text_size_caption_material=0x7f090035; public static final int abc_text_size_display_1_material=0x7f090036; public static final int abc_text_size_display_2_material=0x7f090037; public static final int abc_text_size_display_3_material=0x7f090038; public static final int abc_text_size_display_4_material=0x7f090039; public static final int abc_text_size_headline_material=0x7f09003a; public static final int abc_text_size_large_material=0x7f09003b; public static final int abc_text_size_medium_material=0x7f09003c; public static final int abc_text_size_menu_material=0x7f09003d; public static final int abc_text_size_small_material=0x7f09003e; public static final int abc_text_size_subhead_material=0x7f09003f; public static final int abc_text_size_subtitle_material_toolbar=0x7f090003; public static final int abc_text_size_title_material=0x7f090040; public static final int abc_text_size_title_material_toolbar=0x7f090004; public static final int activity_horizontal_margin=0x7f09000f; public static final int activity_vertical_margin=0x7f090041; public static final int dialog_fixed_height_major=0x7f090007; public static final int dialog_fixed_height_minor=0x7f090008; public static final int dialog_fixed_width_major=0x7f090009; public static final int dialog_fixed_width_minor=0x7f09000a; public static final int disabled_alpha_material_dark=0x7f090042; public static final int disabled_alpha_material_light=0x7f090043; public static final int highlight_alpha_material_colored=0x7f090044; public static final int highlight_alpha_material_dark=0x7f090045; public static final int highlight_alpha_material_light=0x7f090046; public static final int notification_large_icon_height=0x7f090047; public static final int notification_large_icon_width=0x7f090048; public static final int notification_subtext_size=0x7f090049; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha=0x7f020000; public static final int abc_action_bar_item_background_material=0x7f020001; public static final int abc_btn_borderless_material=0x7f020002; public static final int abc_btn_check_material=0x7f020003; public static final int abc_btn_check_to_on_mtrl_000=0x7f020004; public static final int abc_btn_check_to_on_mtrl_015=0x7f020005; public static final int abc_btn_colored_material=0x7f020006; public static final int abc_btn_default_mtrl_shape=0x7f020007; public static final int abc_btn_radio_material=0x7f020008; public static final int abc_btn_radio_to_on_mtrl_000=0x7f020009; public static final int abc_btn_radio_to_on_mtrl_015=0x7f02000a; public static final int abc_btn_rating_star_off_mtrl_alpha=0x7f02000b; public static final int abc_btn_rating_star_on_mtrl_alpha=0x7f02000c; public static final int abc_btn_switch_to_on_mtrl_00001=0x7f02000d; public static final int abc_btn_switch_to_on_mtrl_00012=0x7f02000e; public static final int abc_cab_background_internal_bg=0x7f02000f; public static final int abc_cab_background_top_material=0x7f020010; public static final int abc_cab_background_top_mtrl_alpha=0x7f020011; public static final int abc_control_background_material=0x7f020012; public static final int abc_dialog_material_background_dark=0x7f020013; public static final int abc_dialog_material_background_light=0x7f020014; public static final int abc_edit_text_material=0x7f020015; public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f020016; public static final int abc_ic_clear_mtrl_alpha=0x7f020017; public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020018; public static final int abc_ic_go_search_api_mtrl_alpha=0x7f020019; public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f02001a; public static final int abc_ic_menu_cut_mtrl_alpha=0x7f02001b; public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f02001c; public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001d; public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f02001e; public static final int abc_ic_menu_share_mtrl_alpha=0x7f02001f; public static final int abc_ic_search_api_mtrl_alpha=0x7f020020; public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f020021; public static final int abc_item_background_holo_dark=0x7f020022; public static final int abc_item_background_holo_light=0x7f020023; public static final int abc_list_divider_mtrl_alpha=0x7f020024; public static final int abc_list_focused_holo=0x7f020025; public static final int abc_list_longpressed_holo=0x7f020026; public static final int abc_list_pressed_holo_dark=0x7f020027; public static final int abc_list_pressed_holo_light=0x7f020028; public static final int abc_list_selector_background_transition_holo_dark=0x7f020029; public static final int abc_list_selector_background_transition_holo_light=0x7f02002a; public static final int abc_list_selector_disabled_holo_dark=0x7f02002b; public static final int abc_list_selector_disabled_holo_light=0x7f02002c; public static final int abc_list_selector_holo_dark=0x7f02002d; public static final int abc_list_selector_holo_light=0x7f02002e; public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f02002f; public static final int abc_popup_background_mtrl_mult=0x7f020030; public static final int abc_ratingbar_full_material=0x7f020031; public static final int abc_spinner_mtrl_am_alpha=0x7f020032; public static final int abc_spinner_textfield_background_material=0x7f020033; public static final int abc_switch_thumb_material=0x7f020034; public static final int abc_switch_track_mtrl_alpha=0x7f020035; public static final int abc_tab_indicator_material=0x7f020036; public static final int abc_tab_indicator_mtrl_alpha=0x7f020037; public static final int abc_text_cursor_material=0x7f020038; public static final int abc_textfield_activated_mtrl_alpha=0x7f020039; public static final int abc_textfield_default_mtrl_alpha=0x7f02003a; public static final int abc_textfield_search_activated_mtrl_alpha=0x7f02003b; public static final int abc_textfield_search_default_mtrl_alpha=0x7f02003c; public static final int abc_textfield_search_material=0x7f02003d; public static final int add_tmp_image=0x7f02003e; public static final int bars01_f_btm=0x7f02003f; public static final int bars01_f_top=0x7f020040; public static final int circle_corners=0x7f020041; public static final int common_full_open_on_phone=0x7f020042; public static final int common_ic_googleplayservices=0x7f020043; public static final int disconnected01=0x7f020044; public static final int iaicons_all_f_sttc=0x7f020045; public static final int iaicons_like_f_act=0x7f020046; public static final int iaicons_like_f_prsd=0x7f020047; public static final int iaicons_like_f_sttc=0x7f020048; public static final int iaicons_new_f_act=0x7f020049; public static final int iaicons_new_f_prsd=0x7f02004a; public static final int iaicons_new_f_sttc=0x7f02004b; public static final int iaicons_share_f_act=0x7f02004c; public static final int iaicons_share_f_prsd=0x7f02004d; public static final int iaicons_share_f_sttc=0x7f02004e; public static final int iaicons_top_f_act=0x7f02004f; public static final int iaicons_top_f_prsd=0x7f020050; public static final int iaicons_top_f_sttc=0x7f020051; public static final int iaiconsmenu01_invite_f=0x7f020052; public static final int iaiconsmenu01_nonews_f=0x7f020053; public static final int iaiconsmenu01_save_f=0x7f020054; public static final int iaiconsmenu01_sendus_f=0x7f020055; public static final int iaiconsmenu01_yesnews_f=0x7f020056; public static final int menu_circle=0x7f020057; public static final int new_selector=0x7f020058; public static final int notification_template_icon_bg=0x7f02005e; public static final int sergatalogo=0x7f020059; public static final int share_iconpng=0x7f02005a; public static final int share_selector=0x7f02005b; public static final int splash03_f_withouticon=0x7f02005c; public static final int top_selector=0x7f02005d; } public static final class id { public static final int action0=0x7f0e0066; public static final int action_bar=0x7f0e0040; public static final int action_bar_activity_content=0x7f0e0000; public static final int action_bar_container=0x7f0e003f; public static final int action_bar_root=0x7f0e003b; public static final int action_bar_spinner=0x7f0e0001; public static final int action_bar_subtitle=0x7f0e0024; public static final int action_bar_title=0x7f0e0023; public static final int action_context_bar=0x7f0e0041; public static final int action_divider=0x7f0e006a; public static final int action_menu_divider=0x7f0e0002; public static final int action_menu_presenter=0x7f0e0003; public static final int action_mode_bar=0x7f0e003d; public static final int action_mode_bar_stub=0x7f0e003c; public static final int action_mode_close_button=0x7f0e0025; public static final int action_settings=0x7f0e007c; public static final int activity_chooser_view_content=0x7f0e0026; public static final int adView=0x7f0e007b; public static final int adjust_height=0x7f0e001b; public static final int adjust_width=0x7f0e001c; public static final int alertTitle=0x7f0e0030; public static final int allPics=0x7f0e0065; public static final int always=0x7f0e001d; public static final int beginning=0x7f0e0018; public static final int bottomLayout=0x7f0e005d; public static final int btnLike=0x7f0e0061; public static final int btnMore=0x7f0e0059; public static final int btnNotSeen=0x7f0e005f; public static final int btnShare=0x7f0e005b; public static final int btnTop=0x7f0e005e; public static final int buttonPanel=0x7f0e0036; public static final int cancel_action=0x7f0e0067; public static final int checkbox=0x7f0e0038; public static final int chronometer=0x7f0e006d; public static final int collapseActionView=0x7f0e001e; public static final int contentPanel=0x7f0e0031; public static final int counterLayout=0x7f0e0063; public static final int custom=0x7f0e0035; public static final int customPanel=0x7f0e0034; public static final int decor_content_parent=0x7f0e003e; public static final int default_activity_button=0x7f0e0029; public static final int disableHome=0x7f0e000c; public static final int edit_query=0x7f0e0042; public static final int enablePush=0x7f0e0054; public static final int end=0x7f0e0019; public static final int end_padder=0x7f0e0072; public static final int errorLayout=0x7f0e0062; public static final int expand_activities_button=0x7f0e0027; public static final int expanded_menu=0x7f0e0037; public static final int frameLayout=0x7f0e0077; public static final int home=0x7f0e0004; public static final int homeAsUp=0x7f0e000d; public static final int icon=0x7f0e002b; public static final int ifRoom=0x7f0e001f; public static final int image=0x7f0e0028; public static final int imageView=0x7f0e0079; public static final int info=0x7f0e0071; public static final int inviteFriend=0x7f0e0052; public static final int likesCounter=0x7f0e0060; public static final int line1=0x7f0e006b; public static final int line3=0x7f0e006f; public static final int listMode=0x7f0e0009; public static final int list_item=0x7f0e002a; public static final int mainLinearLayout=0x7f0e0056; public static final int mainRelativeLayout=0x7f0e0055; public static final int media_actions=0x7f0e0069; public static final int menuLayout=0x7f0e004f; public static final int menu_item_share=0x7f0e007d; public static final int middle=0x7f0e001a; public static final int multiply=0x7f0e0013; public static final int never=0x7f0e0020; public static final int none=0x7f0e000e; public static final int normal=0x7f0e000a; public static final int parentPanel=0x7f0e002d; public static final int photos_image_pager=0x7f0e0057; public static final int picNumber=0x7f0e0064; public static final int progressBar=0x7f0e0074; public static final int progressBar2=0x7f0e0078; public static final int progress_circular=0x7f0e0005; public static final int progress_horizontal=0x7f0e0006; public static final int pushMenuIcon=0x7f0e0053; public static final int radio=0x7f0e003a; public static final int savePicture=0x7f0e0050; public static final int screen=0x7f0e0014; public static final int scrollView=0x7f0e0032; public static final int search_badge=0x7f0e0044; public static final int search_bar=0x7f0e0043; public static final int search_button=0x7f0e0045; public static final int search_close_btn=0x7f0e004a; public static final int search_edit_frame=0x7f0e0046; public static final int search_go_btn=0x7f0e004c; public static final int search_mag_icon=0x7f0e0047; public static final int search_plate=0x7f0e0048; public static final int search_src_text=0x7f0e0049; public static final int search_voice_btn=0x7f0e004d; public static final int select_dialog_listview=0x7f0e004e; public static final int sendUsPictre=0x7f0e0051; public static final int shortcut=0x7f0e0039; public static final int showCustom=0x7f0e000f; public static final int showHome=0x7f0e0010; public static final int showTitle=0x7f0e0011; public static final int smallImage=0x7f0e005c; public static final int split_action_bar=0x7f0e0007; public static final int src_atop=0x7f0e0015; public static final int src_in=0x7f0e0016; public static final int src_over=0x7f0e0017; public static final int status_bar_latest_event_content=0x7f0e0068; public static final int submit_area=0x7f0e004b; public static final int tabMode=0x7f0e000b; public static final int text=0x7f0e0070; public static final int text2=0x7f0e006e; public static final int textSpacerNoButtons=0x7f0e0033; public static final int textView=0x7f0e0076; public static final int textView2=0x7f0e007a; public static final int textView3=0x7f0e0075; public static final int textView4=0x7f0e005a; public static final int time=0x7f0e006c; public static final int title=0x7f0e002c; public static final int title_template=0x7f0e002f; public static final int topLayout=0x7f0e0058; public static final int topPanel=0x7f0e002e; public static final int touchImage=0x7f0e0073; public static final int up=0x7f0e0008; public static final int useLogo=0x7f0e0012; public static final int withText=0x7f0e0021; public static final int wrap_content=0x7f0e0022; } public static final class integer { public static final int abc_config_activityDefaultDur=0x7f0c0001; public static final int abc_config_activityShortDur=0x7f0c0002; public static final int abc_max_action_buttons=0x7f0c0000; public static final int cancel_button_image_alpha=0x7f0c0003; public static final int google_play_services_version=0x7f0c0004; public static final int status_bar_notification_info_maxnum=0x7f0c0005; } public static final class layout { public static final int abc_action_bar_title_item=0x7f040000; public static final int abc_action_bar_up_container=0x7f040001; public static final int abc_action_bar_view_list_nav_layout=0x7f040002; public static final int abc_action_menu_item_layout=0x7f040003; public static final int abc_action_menu_layout=0x7f040004; public static final int abc_action_mode_bar=0x7f040005; public static final int abc_action_mode_close_item_material=0x7f040006; public static final int abc_activity_chooser_view=0x7f040007; public static final int abc_activity_chooser_view_list_item=0x7f040008; public static final int abc_alert_dialog_material=0x7f040009; public static final int abc_dialog_title_material=0x7f04000a; public static final int abc_expanded_menu_layout=0x7f04000b; public static final int abc_list_menu_item_checkbox=0x7f04000c; public static final int abc_list_menu_item_icon=0x7f04000d; public static final int abc_list_menu_item_layout=0x7f04000e; public static final int abc_list_menu_item_radio=0x7f04000f; public static final int abc_popup_menu_item_layout=0x7f040010; public static final int abc_screen_content_include=0x7f040011; public static final int abc_screen_simple=0x7f040012; public static final int abc_screen_simple_overlay_action_mode=0x7f040013; public static final int abc_screen_toolbar=0x7f040014; public static final int abc_search_dropdown_item_icons_2line=0x7f040015; public static final int abc_search_view=0x7f040016; public static final int abc_select_dialog_material=0x7f040017; public static final int action_bar_layout=0x7f040018; public static final int activity_main=0x7f040019; public static final int dialog_list_item=0x7f04001a; public static final int menu_layout=0x7f04001b; public static final int not_shown_fragment=0x7f04001c; public static final int notification_media_action=0x7f04001d; public static final int notification_media_cancel_action=0x7f04001e; public static final int notification_template_big_media=0x7f04001f; public static final int notification_template_big_media_narrow=0x7f040020; public static final int notification_template_lines=0x7f040021; public static final int notification_template_media=0x7f040022; public static final int notification_template_part_chronometer=0x7f040023; public static final int notification_template_part_time=0x7f040024; public static final int photo_layout=0x7f040025; public static final int pictures_main_fragment=0x7f040026; public static final int select_dialog_item_material=0x7f040027; public static final int select_dialog_multichoice_material=0x7f040028; public static final int select_dialog_singlechoice_material=0x7f040029; public static final int settings_fragment=0x7f04002a; public static final int splash_screen_fragment=0x7f04002b; public static final int support_simple_spinner_dropdown_item=0x7f04002c; public static final int top_fragment=0x7f04002d; } public static final class menu { public static final int menu_main=0x7f0f0000; public static final int share_menu=0x7f0f0001; } public static final class mipmap { public static final int ic_launcher=0x7f030000; } public static final class raw { public static final int gtm_analytics=0x7f070000; } public static final class string { public static final int abc_action_bar_home_description=0x7f080000; public static final int abc_action_bar_home_description_format=0x7f080001; public static final int abc_action_bar_home_subtitle_description_format=0x7f080002; public static final int abc_action_bar_up_description=0x7f080003; public static final int abc_action_menu_overflow_description=0x7f080004; public static final int abc_action_mode_done=0x7f080005; public static final int abc_activity_chooser_view_see_all=0x7f080006; public static final int abc_activitychooserview_choose_application=0x7f080007; public static final int abc_search_hint=0x7f080008; public static final int abc_searchview_description_clear=0x7f080009; public static final int abc_searchview_description_query=0x7f08000a; public static final int abc_searchview_description_search=0x7f08000b; public static final int abc_searchview_description_submit=0x7f08000c; public static final int abc_searchview_description_voice=0x7f08000d; public static final int abc_shareactionprovider_share_with=0x7f08000e; public static final int abc_shareactionprovider_share_with_application=0x7f08000f; public static final int abc_toolbar_collapse_description=0x7f080010; public static final int accept=0x7f080030; public static final int action_settings=0x7f080031; public static final int app_name=0x7f080032; public static final int auth_google_play_services_client_facebook_display_name=0x7f080033; public static final int auth_google_play_services_client_google_display_name=0x7f080034; public static final int banner_ad_unit_id=0x7f080035; public static final int com_crashlytics_android_build_id=0x7f080036; public static final int common_android_wear_notification_needs_update_text=0x7f080011; public static final int common_android_wear_update_text=0x7f080012; public static final int common_android_wear_update_title=0x7f080013; public static final int common_google_play_services_api_unavailable_text=0x7f080014; public static final int common_google_play_services_enable_button=0x7f080015; public static final int common_google_play_services_enable_text=0x7f080016; public static final int common_google_play_services_enable_title=0x7f080017; public static final int common_google_play_services_error_notification_requested_by_msg=0x7f080018; public static final int common_google_play_services_install_button=0x7f080019; public static final int common_google_play_services_install_text_phone=0x7f08001a; public static final int common_google_play_services_install_text_tablet=0x7f08001b; public static final int common_google_play_services_install_title=0x7f08001c; public static final int common_google_play_services_invalid_account_text=0x7f08001d; public static final int common_google_play_services_invalid_account_title=0x7f08001e; public static final int common_google_play_services_needs_enabling_title=0x7f08001f; public static final int common_google_play_services_network_error_text=0x7f080020; public static final int common_google_play_services_network_error_title=0x7f080021; public static final int common_google_play_services_notification_needs_update_title=0x7f080022; public static final int common_google_play_services_notification_ticker=0x7f080023; public static final int common_google_play_services_sign_in_failed_text=0x7f080024; public static final int common_google_play_services_sign_in_failed_title=0x7f080025; public static final int common_google_play_services_unknown_issue=0x7f080026; public static final int common_google_play_services_unsupported_text=0x7f080027; public static final int common_google_play_services_unsupported_title=0x7f080028; public static final int common_google_play_services_update_button=0x7f080029; public static final int common_google_play_services_update_text=0x7f08002a; public static final int common_google_play_services_update_title=0x7f08002b; public static final int common_google_play_services_updating_text=0x7f08002c; public static final int common_google_play_services_updating_title=0x7f08002d; public static final int common_open_on_phone=0x7f08002e; public static final int create_calendar_message=0x7f080037; public static final int create_calendar_title=0x7f080038; public static final int decline=0x7f080039; public static final int gcm_defaultSenderId=0x7f08003a; public static final int interestial=0x7f08003b; public static final int parse_app_id=0x7f08003c; public static final int parse_client_key=0x7f08003d; public static final int share_image_text=0x7f08003e; public static final int status_bar_notification_info_overflow=0x7f08002f; public static final int store_picture_message=0x7f08003f; public static final int store_picture_title=0x7f080040; public static final int support_mail=0x7f080041; } public static final class style { public static final int AlertDialog_AppCompat=0x7f0a007a; public static final int AlertDialog_AppCompat_Light=0x7f0a007b; public static final int Animation_AppCompat_Dialog=0x7f0a007c; public static final int Animation_AppCompat_DropDownUp=0x7f0a007d; /** Customize your theme here. */ public static final int AppTheme=0x7f0a007e; public static final int Base_AlertDialog_AppCompat=0x7f0a007f; public static final int Base_AlertDialog_AppCompat_Light=0x7f0a0080; public static final int Base_Animation_AppCompat_Dialog=0x7f0a0081; public static final int Base_Animation_AppCompat_DropDownUp=0x7f0a0082; public static final int Base_DialogWindowTitle_AppCompat=0x7f0a0083; public static final int Base_DialogWindowTitleBackground_AppCompat=0x7f0a0084; public static final int Base_TextAppearance_AppCompat=0x7f0a002d; public static final int Base_TextAppearance_AppCompat_Body1=0x7f0a002e; public static final int Base_TextAppearance_AppCompat_Body2=0x7f0a002f; public static final int Base_TextAppearance_AppCompat_Button=0x7f0a0018; public static final int Base_TextAppearance_AppCompat_Caption=0x7f0a0030; public static final int Base_TextAppearance_AppCompat_Display1=0x7f0a0031; public static final int Base_TextAppearance_AppCompat_Display2=0x7f0a0032; public static final int Base_TextAppearance_AppCompat_Display3=0x7f0a0033; public static final int Base_TextAppearance_AppCompat_Display4=0x7f0a0034; public static final int Base_TextAppearance_AppCompat_Headline=0x7f0a0035; public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0a0003; public static final int Base_TextAppearance_AppCompat_Large=0x7f0a0036; public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0a0004; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a0037; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a0038; public static final int Base_TextAppearance_AppCompat_Medium=0x7f0a0039; public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0a0005; public static final int Base_TextAppearance_AppCompat_Menu=0x7f0a003a; public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0a0085; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a003b; public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0a003c; public static final int Base_TextAppearance_AppCompat_Small=0x7f0a003d; public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0a0006; public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0a003e; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0a0007; public static final int Base_TextAppearance_AppCompat_Title=0x7f0a003f; public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0a0008; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a0040; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a0041; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a0042; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a0043; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a0044; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a0045; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a0046; public static final int Base_TextAppearance_AppCompat_Widget_Button=0x7f0a0047; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a0076; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a0086; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a0048; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a0049; public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0a004a; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a004b; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a0087; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a004c; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a004d; public static final int Base_Theme_AppCompat=0x7f0a004e; public static final int Base_Theme_AppCompat_CompactMenu=0x7f0a0088; public static final int Base_Theme_AppCompat_Dialog=0x7f0a0009; public static final int Base_Theme_AppCompat_Dialog_Alert=0x7f0a0089; public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0a008a; public static final int Base_Theme_AppCompat_Dialog_MinWidth=0x7f0a008b; public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0a0001; public static final int Base_Theme_AppCompat_Light=0x7f0a004f; public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0a008c; public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0a000a; public static final int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0a008d; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0a008e; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a008f; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0a0002; public static final int Base_ThemeOverlay_AppCompat=0x7f0a0090; public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0a0091; public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0a0092; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a0093; public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0a0094; public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0a000b; public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0a000c; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f0a0014; public static final int Base_V12_Widget_AppCompat_EditText=0x7f0a0015; public static final int Base_V21_Theme_AppCompat=0x7f0a0050; public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0a0051; public static final int Base_V21_Theme_AppCompat_Light=0x7f0a0052; public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0a0053; public static final int Base_V22_Theme_AppCompat=0x7f0a0074; public static final int Base_V22_Theme_AppCompat_Light=0x7f0a0075; public static final int Base_V23_Theme_AppCompat=0x7f0a0077; public static final int Base_V23_Theme_AppCompat_Light=0x7f0a0078; public static final int Base_V7_Theme_AppCompat=0x7f0a0095; public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0a0096; public static final int Base_V7_Theme_AppCompat_Light=0x7f0a0097; public static final int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0a0098; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0a0099; public static final int Base_V7_Widget_AppCompat_EditText=0x7f0a009a; public static final int Base_Widget_AppCompat_ActionBar=0x7f0a009b; public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0a009c; public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0a009d; public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0a0054; public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0a0055; public static final int Base_Widget_AppCompat_ActionButton=0x7f0a0056; public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0a0057; public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0a0058; public static final int Base_Widget_AppCompat_ActionMode=0x7f0a009e; public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0a009f; public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0a0016; public static final int Base_Widget_AppCompat_Button=0x7f0a0059; public static final int Base_Widget_AppCompat_Button_Borderless=0x7f0a005a; public static final int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f0a005b; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a00a0; public static final int Base_Widget_AppCompat_Button_Colored=0x7f0a0079; public static final int Base_Widget_AppCompat_Button_Small=0x7f0a005c; public static final int Base_Widget_AppCompat_ButtonBar=0x7f0a005d; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a00a1; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f0a005e; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f0a005f; public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0a00a2; public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0a0000; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0a00a3; public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0a0060; public static final int Base_Widget_AppCompat_EditText=0x7f0a0017; public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0a00a4; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0a00a5; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a00a6; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0a0061; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a0062; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0a0063; public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0a0064; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a0065; public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0a0066; public static final int Base_Widget_AppCompat_ListView=0x7f0a0067; public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0a0068; public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0a0069; public static final int Base_Widget_AppCompat_PopupMenu=0x7f0a006a; public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0a006b; public static final int Base_Widget_AppCompat_PopupWindow=0x7f0a00a7; public static final int Base_Widget_AppCompat_ProgressBar=0x7f0a000d; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0a000e; public static final int Base_Widget_AppCompat_RatingBar=0x7f0a006c; public static final int Base_Widget_AppCompat_SearchView=0x7f0a00a8; public static final int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0a00a9; public static final int Base_Widget_AppCompat_Spinner=0x7f0a006d; public static final int Base_Widget_AppCompat_Spinner_Underlined=0x7f0a006e; public static final int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f0a006f; public static final int Base_Widget_AppCompat_Toolbar=0x7f0a00aa; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0070; public static final int CustomAlertDialogStyle=0x7f0a00ab; public static final int MyTheme=0x7f0a00ac; public static final int Platform_AppCompat=0x7f0a000f; public static final int Platform_AppCompat_Light=0x7f0a0010; public static final int Platform_ThemeOverlay_AppCompat=0x7f0a0071; public static final int Platform_ThemeOverlay_AppCompat_Dark=0x7f0a0072; public static final int Platform_ThemeOverlay_AppCompat_Light=0x7f0a0073; public static final int Platform_V11_AppCompat=0x7f0a0011; public static final int Platform_V11_AppCompat_Light=0x7f0a0012; public static final int Platform_V14_AppCompat=0x7f0a0019; public static final int Platform_V14_AppCompat_Light=0x7f0a001a; public static final int Platform_Widget_AppCompat_Spinner=0x7f0a0013; public static final int RtlOverlay_DialogWindowTitle_AppCompat=0x7f0a0020; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0a0021; public static final int RtlOverlay_Widget_AppCompat_ActionButton_Overflow=0x7f0a0022; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f0a0023; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0a0024; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0a0025; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0a0026; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0a0027; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0a0028; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0a0029; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0a002a; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0a002b; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0a002c; public static final int TextAppearance_AppCompat=0x7f0a00ad; public static final int TextAppearance_AppCompat_Body1=0x7f0a00ae; public static final int TextAppearance_AppCompat_Body2=0x7f0a00af; public static final int TextAppearance_AppCompat_Button=0x7f0a00b0; public static final int TextAppearance_AppCompat_Caption=0x7f0a00b1; public static final int TextAppearance_AppCompat_Display1=0x7f0a00b2; public static final int TextAppearance_AppCompat_Display2=0x7f0a00b3; public static final int TextAppearance_AppCompat_Display3=0x7f0a00b4; public static final int TextAppearance_AppCompat_Display4=0x7f0a00b5; public static final int TextAppearance_AppCompat_Headline=0x7f0a00b6; public static final int TextAppearance_AppCompat_Inverse=0x7f0a00b7; public static final int TextAppearance_AppCompat_Large=0x7f0a00b8; public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0a00b9; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0a00ba; public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0a00bb; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0a00bc; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0a00bd; public static final int TextAppearance_AppCompat_Medium=0x7f0a00be; public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0a00bf; public static final int TextAppearance_AppCompat_Menu=0x7f0a00c0; public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0a00c1; public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0a00c2; public static final int TextAppearance_AppCompat_Small=0x7f0a00c3; public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0a00c4; public static final int TextAppearance_AppCompat_Subhead=0x7f0a00c5; public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0a00c6; public static final int TextAppearance_AppCompat_Title=0x7f0a00c7; public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0a00c8; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0a00c9; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0a00ca; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0a00cb; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0a00cc; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0a00cd; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0a00ce; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0a00cf; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0a00d0; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0a00d1; public static final int TextAppearance_AppCompat_Widget_Button=0x7f0a00d2; public static final int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0a00d3; public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0a00d4; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0a00d5; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0a00d6; public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0a00d7; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0a00d8; public static final int TextAppearance_StatusBar_EventContent=0x7f0a001b; public static final int TextAppearance_StatusBar_EventContent_Info=0x7f0a001c; public static final int TextAppearance_StatusBar_EventContent_Line2=0x7f0a001d; public static final int TextAppearance_StatusBar_EventContent_Time=0x7f0a001e; public static final int TextAppearance_StatusBar_EventContent_Title=0x7f0a001f; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0a00d9; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0a00da; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0a00db; public static final int Theme_AppCompat=0x7f0a00dc; public static final int Theme_AppCompat_CompactMenu=0x7f0a00dd; public static final int Theme_AppCompat_Dialog=0x7f0a00de; public static final int Theme_AppCompat_Dialog_Alert=0x7f0a00df; public static final int Theme_AppCompat_Dialog_MinWidth=0x7f0a00e0; public static final int Theme_AppCompat_DialogWhenLarge=0x7f0a00e1; public static final int Theme_AppCompat_Light=0x7f0a00e2; public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0a00e3; public static final int Theme_AppCompat_Light_Dialog=0x7f0a00e4; public static final int Theme_AppCompat_Light_Dialog_Alert=0x7f0a00e5; public static final int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0a00e6; public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0a00e7; public static final int Theme_AppCompat_Light_NoActionBar=0x7f0a00e8; public static final int Theme_AppCompat_NoActionBar=0x7f0a00e9; public static final int Theme_IAPTheme=0x7f0a00ea; public static final int ThemeOverlay_AppCompat=0x7f0a00eb; public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0a00ec; public static final int ThemeOverlay_AppCompat_Dark=0x7f0a00ed; public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0a00ee; public static final int ThemeOverlay_AppCompat_Light=0x7f0a00ef; public static final int Widget_AppCompat_ActionBar=0x7f0a00f0; public static final int Widget_AppCompat_ActionBar_Solid=0x7f0a00f1; public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0a00f2; public static final int Widget_AppCompat_ActionBar_TabText=0x7f0a00f3; public static final int Widget_AppCompat_ActionBar_TabView=0x7f0a00f4; public static final int Widget_AppCompat_ActionButton=0x7f0a00f5; public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0a00f6; public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0a00f7; public static final int Widget_AppCompat_ActionMode=0x7f0a00f8; public static final int Widget_AppCompat_ActivityChooserView=0x7f0a00f9; public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0a00fa; public static final int Widget_AppCompat_Button=0x7f0a00fb; public static final int Widget_AppCompat_Button_Borderless=0x7f0a00fc; public static final int Widget_AppCompat_Button_Borderless_Colored=0x7f0a00fd; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0a00fe; public static final int Widget_AppCompat_Button_Colored=0x7f0a00ff; public static final int Widget_AppCompat_Button_Small=0x7f0a0100; public static final int Widget_AppCompat_ButtonBar=0x7f0a0101; public static final int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0a0102; public static final int Widget_AppCompat_CompoundButton_CheckBox=0x7f0a0103; public static final int Widget_AppCompat_CompoundButton_RadioButton=0x7f0a0104; public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0a0105; public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0a0106; public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0a0107; public static final int Widget_AppCompat_EditText=0x7f0a0108; public static final int Widget_AppCompat_Light_ActionBar=0x7f0a0109; public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0a010a; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0a010b; public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0a010c; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0a010d; public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0a010e; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0a010f; public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0a0110; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0a0111; public static final int Widget_AppCompat_Light_ActionButton=0x7f0a0112; public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0a0113; public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0a0114; public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0a0115; public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0a0116; public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0a0117; public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0a0118; public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0a0119; public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0a011a; public static final int Widget_AppCompat_Light_PopupMenu=0x7f0a011b; public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0a011c; public static final int Widget_AppCompat_Light_SearchView=0x7f0a011d; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0a011e; public static final int Widget_AppCompat_ListPopupWindow=0x7f0a011f; public static final int Widget_AppCompat_ListView=0x7f0a0120; public static final int Widget_AppCompat_ListView_DropDown=0x7f0a0121; public static final int Widget_AppCompat_ListView_Menu=0x7f0a0122; public static final int Widget_AppCompat_PopupMenu=0x7f0a0123; public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0a0124; public static final int Widget_AppCompat_PopupWindow=0x7f0a0125; public static final int Widget_AppCompat_ProgressBar=0x7f0a0126; public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0a0127; public static final int Widget_AppCompat_RatingBar=0x7f0a0128; public static final int Widget_AppCompat_SearchView=0x7f0a0129; public static final int Widget_AppCompat_SearchView_ActionBar=0x7f0a012a; public static final int Widget_AppCompat_Spinner=0x7f0a012b; public static final int Widget_AppCompat_Spinner_DropDown=0x7f0a012c; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0a012d; public static final int Widget_AppCompat_Spinner_Underlined=0x7f0a012e; public static final int Widget_AppCompat_TextView_SpinnerItem=0x7f0a012f; public static final int Widget_AppCompat_Toolbar=0x7f0a0130; public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0a0131; } public static final class xml { public static final int analytics=0x7f060000; } public static final class styleable { /** Attributes that can be used with a ActionBar. <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.nafunny.app:background}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit com.nafunny.app:backgroundSplit}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_backgroundStacked com.nafunny.app:backgroundStacked}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetEnd com.nafunny.app:contentInsetEnd}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetLeft com.nafunny.app:contentInsetLeft}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetRight com.nafunny.app:contentInsetRight}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_contentInsetStart com.nafunny.app:contentInsetStart}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout com.nafunny.app:customNavigationLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_displayOptions com.nafunny.app:displayOptions}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_divider com.nafunny.app:divider}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_elevation com.nafunny.app:elevation}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_height com.nafunny.app:height}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_hideOnContentScroll com.nafunny.app:hideOnContentScroll}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_homeAsUpIndicator com.nafunny.app:homeAsUpIndicator}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_homeLayout com.nafunny.app:homeLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_icon com.nafunny.app:icon}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.nafunny.app:indeterminateProgressStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_itemPadding com.nafunny.app:itemPadding}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_logo com.nafunny.app:logo}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_navigationMode com.nafunny.app:navigationMode}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_popupTheme com.nafunny.app:popupTheme}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_progressBarPadding com.nafunny.app:progressBarPadding}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_progressBarStyle com.nafunny.app:progressBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_subtitle com.nafunny.app:subtitle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle com.nafunny.app:subtitleTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_title com.nafunny.app:title}</code></td><td></td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle com.nafunny.app:titleTextStyle}</code></td><td></td></tr> </table> @see #ActionBar_background @see #ActionBar_backgroundSplit @see #ActionBar_backgroundStacked @see #ActionBar_contentInsetEnd @see #ActionBar_contentInsetLeft @see #ActionBar_contentInsetRight @see #ActionBar_contentInsetStart @see #ActionBar_customNavigationLayout @see #ActionBar_displayOptions @see #ActionBar_divider @see #ActionBar_elevation @see #ActionBar_height @see #ActionBar_hideOnContentScroll @see #ActionBar_homeAsUpIndicator @see #ActionBar_homeLayout @see #ActionBar_icon @see #ActionBar_indeterminateProgressStyle @see #ActionBar_itemPadding @see #ActionBar_logo @see #ActionBar_navigationMode @see #ActionBar_popupTheme @see #ActionBar_progressBarPadding @see #ActionBar_progressBarStyle @see #ActionBar_subtitle @see #ActionBar_subtitleTextStyle @see #ActionBar_title @see #ActionBar_titleTextStyle */ public static final int[] ActionBar = { 0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f010081 }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#background} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:background */ public static final int ActionBar_background = 10; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#backgroundSplit} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:backgroundSplit */ public static final int ActionBar_backgroundSplit = 12; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#backgroundStacked} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:backgroundStacked */ public static final int ActionBar_backgroundStacked = 11; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetEnd} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:contentInsetEnd */ public static final int ActionBar_contentInsetEnd = 21; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetLeft} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:contentInsetLeft */ public static final int ActionBar_contentInsetLeft = 22; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetRight} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:contentInsetRight */ public static final int ActionBar_contentInsetRight = 23; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetStart} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:contentInsetStart */ public static final int ActionBar_contentInsetStart = 20; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#customNavigationLayout} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:customNavigationLayout */ public static final int ActionBar_customNavigationLayout = 13; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#displayOptions} attribute's value can be found in the {@link #ActionBar} array. <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>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> @attr name com.nafunny.app:displayOptions */ public static final int ActionBar_displayOptions = 3; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#divider} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:divider */ public static final int ActionBar_divider = 9; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#elevation} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:elevation */ public static final int ActionBar_elevation = 24; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#height} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:height */ public static final int ActionBar_height = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#hideOnContentScroll} attribute's value can be found in the {@link #ActionBar} 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.nafunny.app:hideOnContentScroll */ public static final int ActionBar_hideOnContentScroll = 19; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#homeAsUpIndicator} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:homeAsUpIndicator */ public static final int ActionBar_homeAsUpIndicator = 26; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#homeLayout} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:homeLayout */ public static final int ActionBar_homeLayout = 14; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#icon} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:icon */ public static final int ActionBar_icon = 7; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#indeterminateProgressStyle} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:indeterminateProgressStyle */ public static final int ActionBar_indeterminateProgressStyle = 16; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#itemPadding} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:itemPadding */ public static final int ActionBar_itemPadding = 18; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#logo} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:logo */ public static final int ActionBar_logo = 8; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#navigationMode} attribute's value can be found in the {@link #ActionBar} array. <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></td></tr> <tr><td><code>listMode</code></td><td>1</td><td></td></tr> <tr><td><code>tabMode</code></td><td>2</td><td></td></tr> </table> @attr name com.nafunny.app:navigationMode */ public static final int ActionBar_navigationMode = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#popupTheme} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:popupTheme */ public static final int ActionBar_popupTheme = 25; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#progressBarPadding} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:progressBarPadding */ public static final int ActionBar_progressBarPadding = 17; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#progressBarStyle} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:progressBarStyle */ public static final int ActionBar_progressBarStyle = 15; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#subtitle} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:subtitle */ public static final int ActionBar_subtitle = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#subtitleTextStyle} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:subtitleTextStyle */ public static final int ActionBar_subtitleTextStyle = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#title} attribute's value can be found in the {@link #ActionBar} array. <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. @attr name com.nafunny.app:title */ public static final int ActionBar_title = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleTextStyle} attribute's value can be found in the {@link #ActionBar} array. <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>". @attr name com.nafunny.app:titleTextStyle */ public static final int ActionBar_titleTextStyle = 5; /** Attributes that can be used with a ActionBarLayout. <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; /** 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; /** Attributes that can be used with a ActionMenuView. */ 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.nafunny.app:background}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit com.nafunny.app:backgroundSplit}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_closeItemLayout com.nafunny.app:closeItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_height com.nafunny.app:height}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle com.nafunny.app:subtitleTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle com.nafunny.app:titleTextStyle}</code></td><td></td></tr> </table> @see #ActionMode_background @see #ActionMode_backgroundSplit @see #ActionMode_closeItemLayout @see #ActionMode_height @see #ActionMode_subtitleTextStyle @see #ActionMode_titleTextStyle */ public static final int[] ActionMode = { 0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c, 0x7f01000e, 0x7f01001c }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#background} attribute's value can be found in the {@link #ActionMode} array. <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>". @attr name com.nafunny.app:background */ public static final int ActionMode_background = 3; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#backgroundSplit} attribute's value can be found in the {@link #ActionMode} array. <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>". @attr name com.nafunny.app:backgroundSplit */ public static final int ActionMode_backgroundSplit = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#closeItemLayout} attribute's value can be found in the {@link #ActionMode} array. <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>". @attr name com.nafunny.app:closeItemLayout */ public static final int ActionMode_closeItemLayout = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#height} attribute's value can be found in the {@link #ActionMode} array. <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. @attr name com.nafunny.app:height */ public static final int ActionMode_height = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#subtitleTextStyle} attribute's value can be found in the {@link #ActionMode} array. <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>". @attr name com.nafunny.app:subtitleTextStyle */ public static final int ActionMode_subtitleTextStyle = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleTextStyle} attribute's value can be found in the {@link #ActionMode} array. <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>". @attr name com.nafunny.app:titleTextStyle */ public static final int ActionMode_titleTextStyle = 1; /** Attributes that can be used with 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.nafunny.app:expandActivityOverflowButtonDrawable}</code></td><td></td></tr> <tr><td><code>{@link #ActivityChooserView_initialActivityCount com.nafunny.app:initialActivityCount}</code></td><td></td></tr> </table> @see #ActivityChooserView_expandActivityOverflowButtonDrawable @see #ActivityChooserView_initialActivityCount */ public static final int[] ActivityChooserView = { 0x7f01001d, 0x7f01001e }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#expandActivityOverflowButtonDrawable} attribute's value can be found in the {@link #ActivityChooserView} array. <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>". @attr name com.nafunny.app:expandActivityOverflowButtonDrawable */ public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#initialActivityCount} attribute's value can be found in the {@link #ActivityChooserView} array. <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. @attr name com.nafunny.app:initialActivityCount */ public static final int ActivityChooserView_initialActivityCount = 0; /** Attributes that can be used with a AdsAttrs. <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 #AdsAttrs_adSize com.nafunny.app:adSize}</code></td><td></td></tr> <tr><td><code>{@link #AdsAttrs_adSizes com.nafunny.app:adSizes}</code></td><td></td></tr> <tr><td><code>{@link #AdsAttrs_adUnitId com.nafunny.app:adUnitId}</code></td><td></td></tr> </table> @see #AdsAttrs_adSize @see #AdsAttrs_adSizes @see #AdsAttrs_adUnitId */ public static final int[] AdsAttrs = { 0x7f01001f, 0x7f010020, 0x7f010021 }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#adSize} attribute's value can be found in the {@link #AdsAttrs} array. <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. @attr name com.nafunny.app:adSize */ public static final int AdsAttrs_adSize = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#adSizes} attribute's value can be found in the {@link #AdsAttrs} array. <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. @attr name com.nafunny.app:adSizes */ public static final int AdsAttrs_adSizes = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#adUnitId} attribute's value can be found in the {@link #AdsAttrs} array. <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. @attr name com.nafunny.app:adUnitId */ public static final int AdsAttrs_adUnitId = 2; /** Attributes that can be used with a AlertDialog. <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 #AlertDialog_android_layout android:layout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_buttonPanelSideLayout com.nafunny.app:buttonPanelSideLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_listItemLayout com.nafunny.app:listItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_listLayout com.nafunny.app:listLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_multiChoiceItemLayout com.nafunny.app:multiChoiceItemLayout}</code></td><td></td></tr> <tr><td><code>{@link #AlertDialog_singleChoiceItemLayout com.nafunny.app:singleChoiceItemLayout}</code></td><td></td></tr> </table> @see #AlertDialog_android_layout @see #AlertDialog_buttonPanelSideLayout @see #AlertDialog_listItemLayout @see #AlertDialog_listLayout @see #AlertDialog_multiChoiceItemLayout @see #AlertDialog_singleChoiceItemLayout */ public static final int[] AlertDialog = { 0x010100f2, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026 }; /** <p>This symbol is the offset where the {@link android.R.attr#layout} attribute's value can be found in the {@link #AlertDialog} array. @attr name android:layout */ public static final int AlertDialog_android_layout = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonPanelSideLayout} attribute's value can be found in the {@link #AlertDialog} array. <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>". @attr name com.nafunny.app:buttonPanelSideLayout */ public static final int AlertDialog_buttonPanelSideLayout = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listItemLayout} attribute's value can be found in the {@link #AlertDialog} array. <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>". @attr name com.nafunny.app:listItemLayout */ public static final int AlertDialog_listItemLayout = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listLayout} attribute's value can be found in the {@link #AlertDialog} array. <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>". @attr name com.nafunny.app:listLayout */ public static final int AlertDialog_listLayout = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#multiChoiceItemLayout} attribute's value can be found in the {@link #AlertDialog} array. <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>". @attr name com.nafunny.app:multiChoiceItemLayout */ public static final int AlertDialog_multiChoiceItemLayout = 3; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#singleChoiceItemLayout} attribute's value can be found in the {@link #AlertDialog} array. <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>". @attr name com.nafunny.app:singleChoiceItemLayout */ public static final int AlertDialog_singleChoiceItemLayout = 4; /** Attributes that can be used with a AppCompatTextView. <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 #AppCompatTextView_android_textAppearance android:textAppearance}</code></td><td></td></tr> <tr><td><code>{@link #AppCompatTextView_textAllCaps com.nafunny.app:textAllCaps}</code></td><td></td></tr> </table> @see #AppCompatTextView_android_textAppearance @see #AppCompatTextView_textAllCaps */ public static final int[] AppCompatTextView = { 0x01010034, 0x7f010027 }; /** <p>This symbol is the offset where the {@link android.R.attr#textAppearance} attribute's value can be found in the {@link #AppCompatTextView} array. @attr name android:textAppearance */ public static final int AppCompatTextView_android_textAppearance = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAllCaps} attribute's value can be found in the {@link #AppCompatTextView} array. <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>". @attr name com.nafunny.app:textAllCaps */ public static final int AppCompatTextView_textAllCaps = 1; /** Attributes that can be used with a CompoundButton. <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 #CompoundButton_android_button android:button}</code></td><td></td></tr> <tr><td><code>{@link #CompoundButton_buttonTint com.nafunny.app:buttonTint}</code></td><td></td></tr> <tr><td><code>{@link #CompoundButton_buttonTintMode com.nafunny.app:buttonTintMode}</code></td><td></td></tr> </table> @see #CompoundButton_android_button @see #CompoundButton_buttonTint @see #CompoundButton_buttonTintMode */ public static final int[] CompoundButton = { 0x01010107, 0x7f010028, 0x7f010029 }; /** <p>This symbol is the offset where the {@link android.R.attr#button} attribute's value can be found in the {@link #CompoundButton} array. @attr name android:button */ public static final int CompoundButton_android_button = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonTint} attribute's value can be found in the {@link #CompoundButton} array. <p>Must 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 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.nafunny.app:buttonTint */ public static final int CompoundButton_buttonTint = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonTintMode} attribute's value can be found in the {@link #CompoundButton} array. <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> @attr name com.nafunny.app:buttonTintMode */ public static final int CompoundButton_buttonTintMode = 2; /** Attributes that can be used with a DrawerArrowToggle. <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 #DrawerArrowToggle_arrowHeadLength com.nafunny.app:arrowHeadLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength com.nafunny.app:arrowShaftLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_barLength com.nafunny.app:barLength}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_color com.nafunny.app:color}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_drawableSize com.nafunny.app:drawableSize}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.nafunny.app:gapBetweenBars}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_spinBars com.nafunny.app:spinBars}</code></td><td></td></tr> <tr><td><code>{@link #DrawerArrowToggle_thickness com.nafunny.app:thickness}</code></td><td></td></tr> </table> @see #DrawerArrowToggle_arrowHeadLength @see #DrawerArrowToggle_arrowShaftLength @see #DrawerArrowToggle_barLength @see #DrawerArrowToggle_color @see #DrawerArrowToggle_drawableSize @see #DrawerArrowToggle_gapBetweenBars @see #DrawerArrowToggle_spinBars @see #DrawerArrowToggle_thickness */ public static final int[] DrawerArrowToggle = { 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031 }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#arrowHeadLength} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.nafunny.app:arrowHeadLength */ public static final int DrawerArrowToggle_arrowHeadLength = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#arrowShaftLength} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.nafunny.app:arrowShaftLength */ public static final int DrawerArrowToggle_arrowShaftLength = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#barLength} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.nafunny.app:barLength */ public static final int DrawerArrowToggle_barLength = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#color} attribute's value can be found in the {@link #DrawerArrowToggle} array. <p>Must 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 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.nafunny.app:color */ public static final int DrawerArrowToggle_color = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#drawableSize} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.nafunny.app:drawableSize */ public static final int DrawerArrowToggle_drawableSize = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#gapBetweenBars} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.nafunny.app:gapBetweenBars */ public static final int DrawerArrowToggle_gapBetweenBars = 3; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#spinBars} attribute's value can be found in the {@link #DrawerArrowToggle} 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.nafunny.app:spinBars */ public static final int DrawerArrowToggle_spinBars = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#thickness} attribute's value can be found in the {@link #DrawerArrowToggle} array. <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. @attr name com.nafunny.app:thickness */ public static final int DrawerArrowToggle_thickness = 7; /** Attributes that can be used with a LinearLayoutCompat. <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 #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_divider com.nafunny.app:divider}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.nafunny.app:dividerPadding}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.nafunny.app:measureWithLargestChild}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_showDividers com.nafunny.app:showDividers}</code></td><td></td></tr> </table> @see #LinearLayoutCompat_android_baselineAligned @see #LinearLayoutCompat_android_baselineAlignedChildIndex @see #LinearLayoutCompat_android_gravity @see #LinearLayoutCompat_android_orientation @see #LinearLayoutCompat_android_weightSum @see #LinearLayoutCompat_divider @see #LinearLayoutCompat_dividerPadding @see #LinearLayoutCompat_measureWithLargestChild @see #LinearLayoutCompat_showDividers */ public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f01000b, 0x7f010032, 0x7f010033, 0x7f010034 }; /** <p>This symbol is the offset where the {@link android.R.attr#baselineAligned} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:baselineAligned */ public static final int LinearLayoutCompat_android_baselineAligned = 2; /** <p>This symbol is the offset where the {@link android.R.attr#baselineAlignedChildIndex} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:baselineAlignedChildIndex */ public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; /** <p>This symbol is the offset where the {@link android.R.attr#gravity} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:gravity */ public static final int LinearLayoutCompat_android_gravity = 0; /** <p>This symbol is the offset where the {@link android.R.attr#orientation} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:orientation */ public static final int LinearLayoutCompat_android_orientation = 1; /** <p>This symbol is the offset where the {@link android.R.attr#weightSum} attribute's value can be found in the {@link #LinearLayoutCompat} array. @attr name android:weightSum */ public static final int LinearLayoutCompat_android_weightSum = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#divider} attribute's value can be found in the {@link #LinearLayoutCompat} array. <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>". @attr name com.nafunny.app:divider */ public static final int LinearLayoutCompat_divider = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dividerPadding} attribute's value can be found in the {@link #LinearLayoutCompat} array. <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. @attr name com.nafunny.app:dividerPadding */ public static final int LinearLayoutCompat_dividerPadding = 8; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#measureWithLargestChild} attribute's value can be found in the {@link #LinearLayoutCompat} 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.nafunny.app:measureWithLargestChild */ public static final int LinearLayoutCompat_measureWithLargestChild = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#showDividers} attribute's value can be found in the {@link #LinearLayoutCompat} array. <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> @attr name com.nafunny.app:showDividers */ public static final int LinearLayoutCompat_showDividers = 7; /** Attributes that can be used with a LinearLayoutCompat_Layout. <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 #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr> <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr> </table> @see #LinearLayoutCompat_Layout_android_layout_gravity @see #LinearLayoutCompat_Layout_android_layout_height @see #LinearLayoutCompat_Layout_android_layout_weight @see #LinearLayoutCompat_Layout_android_layout_width */ public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; /** <p>This symbol is the offset where the {@link android.R.attr#layout_gravity} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_gravity */ public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; /** <p>This symbol is the offset where the {@link android.R.attr#layout_height} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_height */ public static final int LinearLayoutCompat_Layout_android_layout_height = 2; /** <p>This symbol is the offset where the {@link android.R.attr#layout_weight} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_weight */ public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; /** <p>This symbol is the offset where the {@link android.R.attr#layout_width} attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. @attr name android:layout_width */ public static final int LinearLayoutCompat_Layout_android_layout_width = 1; /** Attributes that can be used with a ListPopupWindow. <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 #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></td></tr> <tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td></td></tr> </table> @see #ListPopupWindow_android_dropDownHorizontalOffset @see #ListPopupWindow_android_dropDownVerticalOffset */ public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; /** <p>This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset} attribute's value can be found in the {@link #ListPopupWindow} array. @attr name android:dropDownHorizontalOffset */ public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; /** <p>This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset} attribute's value can be found in the {@link #ListPopupWindow} array. @attr name android:dropDownVerticalOffset */ public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; /** Attributes that can be used with a LoadingImageView. <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 #LoadingImageView_circleCrop com.nafunny.app:circleCrop}</code></td><td></td></tr> <tr><td><code>{@link #LoadingImageView_imageAspectRatio com.nafunny.app:imageAspectRatio}</code></td><td></td></tr> <tr><td><code>{@link #LoadingImageView_imageAspectRatioAdjust com.nafunny.app:imageAspectRatioAdjust}</code></td><td></td></tr> </table> @see #LoadingImageView_circleCrop @see #LoadingImageView_imageAspectRatio @see #LoadingImageView_imageAspectRatioAdjust */ public static final int[] LoadingImageView = { 0x7f010035, 0x7f010036, 0x7f010037 }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#circleCrop} attribute's value can be found in the {@link #LoadingImageView} 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.nafunny.app:circleCrop */ public static final int LoadingImageView_circleCrop = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#imageAspectRatio} attribute's value can be found in the {@link #LoadingImageView} array. <p>Must be a floating point value, such as "<code>1.2</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.nafunny.app:imageAspectRatio */ public static final int LoadingImageView_imageAspectRatio = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#imageAspectRatioAdjust} attribute's value can be found in the {@link #LoadingImageView} array. <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>none</code></td><td>0</td><td></td></tr> <tr><td><code>adjust_width</code></td><td>1</td><td></td></tr> <tr><td><code>adjust_height</code></td><td>2</td><td></td></tr> </table> @attr name com.nafunny.app:imageAspectRatioAdjust */ public static final int LoadingImageView_imageAspectRatioAdjust = 0; /** Attributes that can be used with a MenuGroup. <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></td></tr> <tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td></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>This symbol is the offset where the {@link android.R.attr#checkableBehavior} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:checkableBehavior */ public static final int MenuGroup_android_checkableBehavior = 5; /** <p>This symbol is the offset where the {@link android.R.attr#enabled} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:enabled */ public static final int MenuGroup_android_enabled = 0; /** <p>This symbol is the offset where the {@link android.R.attr#id} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:id */ public static final int MenuGroup_android_id = 1; /** <p>This symbol is the offset where the {@link android.R.attr#menuCategory} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:menuCategory */ public static final int MenuGroup_android_menuCategory = 3; /** <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:orderInCategory */ public static final int MenuGroup_android_orderInCategory = 4; /** <p>This symbol is the offset where the {@link android.R.attr#visible} attribute's value can be found in the {@link #MenuGroup} array. @attr name android:visible */ public static final int MenuGroup_android_visible = 2; /** Attributes that can be used with a MenuItem. <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.nafunny.app:actionLayout}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass com.nafunny.app:actionProviderClass}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_actionViewClass com.nafunny.app:actionViewClass}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td></td></tr> <tr><td><code>{@link #MenuItem_showAsAction com.nafunny.app:showAsAction}</code></td><td></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, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionLayout} attribute's value can be found in the {@link #MenuItem} array. <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>". @attr name com.nafunny.app:actionLayout */ public static final int MenuItem_actionLayout = 14; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionProviderClass} attribute's value can be found in the {@link #MenuItem} array. <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. @attr name com.nafunny.app:actionProviderClass */ public static final int MenuItem_actionProviderClass = 16; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionViewClass} attribute's value can be found in the {@link #MenuItem} array. <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. @attr name com.nafunny.app:actionViewClass */ public static final int MenuItem_actionViewClass = 15; /** <p>This symbol is the offset where the {@link android.R.attr#alphabeticShortcut} attribute's value can be found in the {@link #MenuItem} array. @attr name android:alphabeticShortcut */ public static final int MenuItem_android_alphabeticShortcut = 9; /** <p>This symbol is the offset where the {@link android.R.attr#checkable} attribute's value can be found in the {@link #MenuItem} array. @attr name android:checkable */ public static final int MenuItem_android_checkable = 11; /** <p>This symbol is the offset where the {@link android.R.attr#checked} attribute's value can be found in the {@link #MenuItem} array. @attr name android:checked */ public static final int MenuItem_android_checked = 3; /** <p>This symbol is the offset where the {@link android.R.attr#enabled} attribute's value can be found in the {@link #MenuItem} array. @attr name android:enabled */ public static final int MenuItem_android_enabled = 1; /** <p>This symbol is the offset where the {@link android.R.attr#icon} attribute's value can be found in the {@link #MenuItem} array. @attr name android:icon */ public static final int MenuItem_android_icon = 0; /** <p>This symbol is the offset where the {@link android.R.attr#id} attribute's value can be found in the {@link #MenuItem} array. @attr name android:id */ public static final int MenuItem_android_id = 2; /** <p>This symbol is the offset where the {@link android.R.attr#menuCategory} attribute's value can be found in the {@link #MenuItem} array. @attr name android:menuCategory */ public static final int MenuItem_android_menuCategory = 5; /** <p>This symbol is the offset where the {@link android.R.attr#numericShortcut} attribute's value can be found in the {@link #MenuItem} array. @attr name android:numericShortcut */ public static final int MenuItem_android_numericShortcut = 10; /** <p>This symbol is the offset where the {@link android.R.attr#onClick} attribute's value can be found in the {@link #MenuItem} array. @attr name android:onClick */ public static final int MenuItem_android_onClick = 12; /** <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} attribute's value can be found in the {@link #MenuItem} array. @attr name android:orderInCategory */ public static final int MenuItem_android_orderInCategory = 6; /** <p>This symbol is the offset where the {@link android.R.attr#title} attribute's value can be found in the {@link #MenuItem} array. @attr name android:title */ public static final int MenuItem_android_title = 7; /** <p>This symbol is the offset where the {@link android.R.attr#titleCondensed} attribute's value can be found in the {@link #MenuItem} array. @attr name android:titleCondensed */ public static final int MenuItem_android_titleCondensed = 8; /** <p>This symbol is the offset where the {@link android.R.attr#visible} attribute's value can be found in the {@link #MenuItem} array. @attr name android:visible */ public static final int MenuItem_android_visible = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#showAsAction} attribute's value can be found in the {@link #MenuItem} array. <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></td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td></td></tr> <tr><td><code>always</code></td><td>2</td><td></td></tr> <tr><td><code>withText</code></td><td>4</td><td></td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr> </table> @attr name com.nafunny.app: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></td></tr> <tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> <tr><td><code>{@link #MenuView_preserveIconSpacing com.nafunny.app:preserveIconSpacing}</code></td><td></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_verticalDivider @see #MenuView_android_windowAnimationStyle @see #MenuView_preserveIconSpacing */ public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f01003c }; /** <p>This symbol is the offset where the {@link android.R.attr#headerBackground} attribute's value can be found in the {@link #MenuView} array. @attr name android:headerBackground */ public static final int MenuView_android_headerBackground = 4; /** <p>This symbol is the offset where the {@link android.R.attr#horizontalDivider} attribute's value can be found in the {@link #MenuView} array. @attr name android:horizontalDivider */ public static final int MenuView_android_horizontalDivider = 2; /** <p>This symbol is the offset where the {@link android.R.attr#itemBackground} attribute's value can be found in the {@link #MenuView} array. @attr name android:itemBackground */ public static final int MenuView_android_itemBackground = 5; /** <p>This symbol is the offset where the {@link android.R.attr#itemIconDisabledAlpha} attribute's value can be found in the {@link #MenuView} array. @attr name android:itemIconDisabledAlpha */ public static final int MenuView_android_itemIconDisabledAlpha = 6; /** <p>This symbol is the offset where the {@link android.R.attr#itemTextAppearance} attribute's value can be found in the {@link #MenuView} array. @attr name android:itemTextAppearance */ public static final int MenuView_android_itemTextAppearance = 1; /** <p>This symbol is the offset where the {@link android.R.attr#verticalDivider} attribute's value can be found in the {@link #MenuView} array. @attr name android:verticalDivider */ public static final int MenuView_android_verticalDivider = 3; /** <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} attribute's value can be found in the {@link #MenuView} array. @attr name android:windowAnimationStyle */ public static final int MenuView_android_windowAnimationStyle = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#preserveIconSpacing} attribute's value can be found in the {@link #MenuView} 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.nafunny.app:preserveIconSpacing */ public static final int MenuView_preserveIconSpacing = 7; /** Attributes that can be used with a PopupWindow. <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 #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr> <tr><td><code>{@link #PopupWindow_overlapAnchor com.nafunny.app:overlapAnchor}</code></td><td></td></tr> </table> @see #PopupWindow_android_popupBackground @see #PopupWindow_overlapAnchor */ public static final int[] PopupWindow = { 0x01010176, 0x7f01003d }; /** <p>This symbol is the offset where the {@link android.R.attr#popupBackground} attribute's value can be found in the {@link #PopupWindow} array. @attr name android:popupBackground */ public static final int PopupWindow_android_popupBackground = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#overlapAnchor} attribute's value can be found in the {@link #PopupWindow} 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.nafunny.app:overlapAnchor */ public static final int PopupWindow_overlapAnchor = 1; /** Attributes that can be used with a PopupWindowBackgroundState. <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 #PopupWindowBackgroundState_state_above_anchor com.nafunny.app:state_above_anchor}</code></td><td></td></tr> </table> @see #PopupWindowBackgroundState_state_above_anchor */ public static final int[] PopupWindowBackgroundState = { 0x7f01003e }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#state_above_anchor} attribute's value can be found in the {@link #PopupWindowBackgroundState} 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.nafunny.app:state_above_anchor */ public static final int PopupWindowBackgroundState_state_above_anchor = 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_focusable android:focusable}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_closeIcon com.nafunny.app:closeIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_commitIcon com.nafunny.app:commitIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_defaultQueryHint com.nafunny.app:defaultQueryHint}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_goIcon com.nafunny.app:goIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_iconifiedByDefault com.nafunny.app:iconifiedByDefault}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_layout com.nafunny.app:layout}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_queryBackground com.nafunny.app:queryBackground}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_queryHint com.nafunny.app:queryHint}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_searchHintIcon com.nafunny.app:searchHintIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_searchIcon com.nafunny.app:searchIcon}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_submitBackground com.nafunny.app:submitBackground}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_suggestionRowLayout com.nafunny.app:suggestionRowLayout}</code></td><td></td></tr> <tr><td><code>{@link #SearchView_voiceIcon com.nafunny.app:voiceIcon}</code></td><td></td></tr> </table> @see #SearchView_android_focusable @see #SearchView_android_imeOptions @see #SearchView_android_inputType @see #SearchView_android_maxWidth @see #SearchView_closeIcon @see #SearchView_commitIcon @see #SearchView_defaultQueryHint @see #SearchView_goIcon @see #SearchView_iconifiedByDefault @see #SearchView_layout @see #SearchView_queryBackground @see #SearchView_queryHint @see #SearchView_searchHintIcon @see #SearchView_searchIcon @see #SearchView_submitBackground @see #SearchView_suggestionRowLayout @see #SearchView_voiceIcon */ public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b }; /** <p>This symbol is the offset where the {@link android.R.attr#focusable} attribute's value can be found in the {@link #SearchView} array. @attr name android:focusable */ public static final int SearchView_android_focusable = 0; /** <p>This symbol is the offset where the {@link android.R.attr#imeOptions} attribute's value can be found in the {@link #SearchView} array. @attr name android:imeOptions */ public static final int SearchView_android_imeOptions = 3; /** <p>This symbol is the offset where the {@link android.R.attr#inputType} attribute's value can be found in the {@link #SearchView} array. @attr name android:inputType */ public static final int SearchView_android_inputType = 2; /** <p>This symbol is the offset where the {@link android.R.attr#maxWidth} attribute's value can be found in the {@link #SearchView} array. @attr name android:maxWidth */ public static final int SearchView_android_maxWidth = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#closeIcon} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:closeIcon */ public static final int SearchView_closeIcon = 8; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#commitIcon} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:commitIcon */ public static final int SearchView_commitIcon = 13; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#defaultQueryHint} attribute's value can be found in the {@link #SearchView} array. <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. @attr name com.nafunny.app:defaultQueryHint */ public static final int SearchView_defaultQueryHint = 7; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#goIcon} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:goIcon */ public static final int SearchView_goIcon = 9; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#iconifiedByDefault} attribute's value can be found in the {@link #SearchView} 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.nafunny.app:iconifiedByDefault */ public static final int SearchView_iconifiedByDefault = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#layout} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:layout */ public static final int SearchView_layout = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#queryBackground} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:queryBackground */ public static final int SearchView_queryBackground = 15; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#queryHint} attribute's value can be found in the {@link #SearchView} array. <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. @attr name com.nafunny.app:queryHint */ public static final int SearchView_queryHint = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#searchHintIcon} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:searchHintIcon */ public static final int SearchView_searchHintIcon = 11; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#searchIcon} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:searchIcon */ public static final int SearchView_searchIcon = 10; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#submitBackground} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:submitBackground */ public static final int SearchView_submitBackground = 16; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#suggestionRowLayout} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:suggestionRowLayout */ public static final int SearchView_suggestionRowLayout = 14; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#voiceIcon} attribute's value can be found in the {@link #SearchView} array. <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>". @attr name com.nafunny.app:voiceIcon */ public static final int SearchView_voiceIcon = 12; /** 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_dropDownWidth android:dropDownWidth}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_android_prompt android:prompt}</code></td><td></td></tr> <tr><td><code>{@link #Spinner_popupTheme com.nafunny.app:popupTheme}</code></td><td></td></tr> </table> @see #Spinner_android_dropDownWidth @see #Spinner_android_popupBackground @see #Spinner_android_prompt @see #Spinner_popupTheme */ public static final int[] Spinner = { 0x01010176, 0x0101017b, 0x01010262, 0x7f01001b }; /** <p>This symbol is the offset where the {@link android.R.attr#dropDownWidth} attribute's value can be found in the {@link #Spinner} array. @attr name android:dropDownWidth */ public static final int Spinner_android_dropDownWidth = 2; /** <p>This symbol is the offset where the {@link android.R.attr#popupBackground} attribute's value can be found in the {@link #Spinner} array. @attr name android:popupBackground */ public static final int Spinner_android_popupBackground = 0; /** <p>This symbol is the offset where the {@link android.R.attr#prompt} attribute's value can be found in the {@link #Spinner} array. @attr name android:prompt */ public static final int Spinner_android_prompt = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#popupTheme} attribute's value can be found in the {@link #Spinner} array. <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>". @attr name com.nafunny.app:popupTheme */ public static final int Spinner_popupTheme = 3; /** Attributes that can be used with a SwitchCompat. <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 #SwitchCompat_android_textOff android:textOff}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_showText com.nafunny.app:showText}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_splitTrack com.nafunny.app:splitTrack}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchMinWidth com.nafunny.app:switchMinWidth}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchPadding com.nafunny.app:switchPadding}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_switchTextAppearance com.nafunny.app:switchTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_thumbTextPadding com.nafunny.app:thumbTextPadding}</code></td><td></td></tr> <tr><td><code>{@link #SwitchCompat_track com.nafunny.app:track}</code></td><td></td></tr> </table> @see #SwitchCompat_android_textOff @see #SwitchCompat_android_textOn @see #SwitchCompat_android_thumb @see #SwitchCompat_showText @see #SwitchCompat_splitTrack @see #SwitchCompat_switchMinWidth @see #SwitchCompat_switchPadding @see #SwitchCompat_switchTextAppearance @see #SwitchCompat_thumbTextPadding @see #SwitchCompat_track */ public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f01004c, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052 }; /** <p>This symbol is the offset where the {@link android.R.attr#textOff} attribute's value can be found in the {@link #SwitchCompat} array. @attr name android:textOff */ public static final int SwitchCompat_android_textOff = 1; /** <p>This symbol is the offset where the {@link android.R.attr#textOn} attribute's value can be found in the {@link #SwitchCompat} array. @attr name android:textOn */ public static final int SwitchCompat_android_textOn = 0; /** <p>This symbol is the offset where the {@link android.R.attr#thumb} attribute's value can be found in the {@link #SwitchCompat} array. @attr name android:thumb */ public static final int SwitchCompat_android_thumb = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#showText} attribute's value can be found in the {@link #SwitchCompat} 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.nafunny.app:showText */ public static final int SwitchCompat_showText = 9; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#splitTrack} attribute's value can be found in the {@link #SwitchCompat} 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.nafunny.app:splitTrack */ public static final int SwitchCompat_splitTrack = 8; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#switchMinWidth} attribute's value can be found in the {@link #SwitchCompat} array. <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. @attr name com.nafunny.app:switchMinWidth */ public static final int SwitchCompat_switchMinWidth = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#switchPadding} attribute's value can be found in the {@link #SwitchCompat} array. <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. @attr name com.nafunny.app:switchPadding */ public static final int SwitchCompat_switchPadding = 7; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#switchTextAppearance} attribute's value can be found in the {@link #SwitchCompat} array. <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>". @attr name com.nafunny.app:switchTextAppearance */ public static final int SwitchCompat_switchTextAppearance = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#thumbTextPadding} attribute's value can be found in the {@link #SwitchCompat} array. <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. @attr name com.nafunny.app:thumbTextPadding */ public static final int SwitchCompat_thumbTextPadding = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#track} attribute's value can be found in the {@link #SwitchCompat} array. <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>". @attr name com.nafunny.app:track */ public static final int SwitchCompat_track = 3; /** Attributes that can be used with a TextAppearance. <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 #TextAppearance_android_textColor android:textColor}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_textSize android:textSize}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_textStyle android:textStyle}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_android_typeface android:typeface}</code></td><td></td></tr> <tr><td><code>{@link #TextAppearance_textAllCaps com.nafunny.app:textAllCaps}</code></td><td></td></tr> </table> @see #TextAppearance_android_textColor @see #TextAppearance_android_textSize @see #TextAppearance_android_textStyle @see #TextAppearance_android_typeface @see #TextAppearance_textAllCaps */ public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x7f010027 }; /** <p>This symbol is the offset where the {@link android.R.attr#textColor} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:textColor */ public static final int TextAppearance_android_textColor = 3; /** <p>This symbol is the offset where the {@link android.R.attr#textSize} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:textSize */ public static final int TextAppearance_android_textSize = 0; /** <p>This symbol is the offset where the {@link android.R.attr#textStyle} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:textStyle */ public static final int TextAppearance_android_textStyle = 2; /** <p>This symbol is the offset where the {@link android.R.attr#typeface} attribute's value can be found in the {@link #TextAppearance} array. @attr name android:typeface */ public static final int TextAppearance_android_typeface = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAllCaps} attribute's value can be found in the {@link #TextAppearance} array. <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>". @attr name com.nafunny.app:textAllCaps */ public static final int TextAppearance_textAllCaps = 4; /** Attributes that can be used with a 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_actionBarDivider com.nafunny.app:actionBarDivider}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarItemBackground com.nafunny.app:actionBarItemBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarPopupTheme com.nafunny.app:actionBarPopupTheme}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarSize com.nafunny.app:actionBarSize}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarSplitStyle com.nafunny.app:actionBarSplitStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarStyle com.nafunny.app:actionBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarTabBarStyle com.nafunny.app:actionBarTabBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarTabStyle com.nafunny.app:actionBarTabStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarTabTextStyle com.nafunny.app:actionBarTabTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarTheme com.nafunny.app:actionBarTheme}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionBarWidgetTheme com.nafunny.app:actionBarWidgetTheme}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionButtonStyle com.nafunny.app:actionButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionDropDownStyle com.nafunny.app:actionDropDownStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionMenuTextAppearance com.nafunny.app:actionMenuTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionMenuTextColor com.nafunny.app:actionMenuTextColor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeBackground com.nafunny.app:actionModeBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeCloseButtonStyle com.nafunny.app:actionModeCloseButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeCloseDrawable com.nafunny.app:actionModeCloseDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeCopyDrawable com.nafunny.app:actionModeCopyDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeCutDrawable com.nafunny.app:actionModeCutDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeFindDrawable com.nafunny.app:actionModeFindDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModePasteDrawable com.nafunny.app:actionModePasteDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModePopupWindowStyle com.nafunny.app:actionModePopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeSelectAllDrawable com.nafunny.app:actionModeSelectAllDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeShareDrawable com.nafunny.app:actionModeShareDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeSplitBackground com.nafunny.app:actionModeSplitBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeStyle com.nafunny.app:actionModeStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionModeWebSearchDrawable com.nafunny.app:actionModeWebSearchDrawable}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionOverflowButtonStyle com.nafunny.app:actionOverflowButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_actionOverflowMenuStyle com.nafunny.app:actionOverflowMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_activityChooserViewStyle com.nafunny.app:activityChooserViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_alertDialogButtonGroupStyle com.nafunny.app:alertDialogButtonGroupStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_alertDialogCenterButtons com.nafunny.app:alertDialogCenterButtons}</code></td><td></td></tr> <tr><td><code>{@link #Theme_alertDialogStyle com.nafunny.app:alertDialogStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_alertDialogTheme com.nafunny.app:alertDialogTheme}</code></td><td></td></tr> <tr><td><code>{@link #Theme_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr> <tr><td><code>{@link #Theme_autoCompleteTextViewStyle com.nafunny.app:autoCompleteTextViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_borderlessButtonStyle com.nafunny.app:borderlessButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonBarButtonStyle com.nafunny.app:buttonBarButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonBarNegativeButtonStyle com.nafunny.app:buttonBarNegativeButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonBarNeutralButtonStyle com.nafunny.app:buttonBarNeutralButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonBarPositiveButtonStyle com.nafunny.app:buttonBarPositiveButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonBarStyle com.nafunny.app:buttonBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonStyle com.nafunny.app:buttonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_buttonStyleSmall com.nafunny.app:buttonStyleSmall}</code></td><td></td></tr> <tr><td><code>{@link #Theme_checkboxStyle com.nafunny.app:checkboxStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_checkedTextViewStyle com.nafunny.app:checkedTextViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorAccent com.nafunny.app:colorAccent}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorButtonNormal com.nafunny.app:colorButtonNormal}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorControlActivated com.nafunny.app:colorControlActivated}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorControlHighlight com.nafunny.app:colorControlHighlight}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorControlNormal com.nafunny.app:colorControlNormal}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorPrimary com.nafunny.app:colorPrimary}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorPrimaryDark com.nafunny.app:colorPrimaryDark}</code></td><td></td></tr> <tr><td><code>{@link #Theme_colorSwitchThumbNormal com.nafunny.app:colorSwitchThumbNormal}</code></td><td></td></tr> <tr><td><code>{@link #Theme_controlBackground com.nafunny.app:controlBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_dialogPreferredPadding com.nafunny.app:dialogPreferredPadding}</code></td><td></td></tr> <tr><td><code>{@link #Theme_dialogTheme com.nafunny.app:dialogTheme}</code></td><td></td></tr> <tr><td><code>{@link #Theme_dividerHorizontal com.nafunny.app:dividerHorizontal}</code></td><td></td></tr> <tr><td><code>{@link #Theme_dividerVertical com.nafunny.app:dividerVertical}</code></td><td></td></tr> <tr><td><code>{@link #Theme_dropDownListViewStyle com.nafunny.app:dropDownListViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.nafunny.app:dropdownListPreferredItemHeight}</code></td><td></td></tr> <tr><td><code>{@link #Theme_editTextBackground com.nafunny.app:editTextBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_editTextColor com.nafunny.app:editTextColor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_editTextStyle com.nafunny.app:editTextStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_homeAsUpIndicator com.nafunny.app:homeAsUpIndicator}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.nafunny.app:listChoiceBackgroundIndicator}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listDividerAlertDialog com.nafunny.app:listDividerAlertDialog}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPopupWindowStyle com.nafunny.app:listPopupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPreferredItemHeight com.nafunny.app:listPreferredItemHeight}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPreferredItemHeightLarge com.nafunny.app:listPreferredItemHeightLarge}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPreferredItemHeightSmall com.nafunny.app:listPreferredItemHeightSmall}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPreferredItemPaddingLeft com.nafunny.app:listPreferredItemPaddingLeft}</code></td><td></td></tr> <tr><td><code>{@link #Theme_listPreferredItemPaddingRight com.nafunny.app:listPreferredItemPaddingRight}</code></td><td></td></tr> <tr><td><code>{@link #Theme_panelBackground com.nafunny.app:panelBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_panelMenuListTheme com.nafunny.app:panelMenuListTheme}</code></td><td></td></tr> <tr><td><code>{@link #Theme_panelMenuListWidth com.nafunny.app:panelMenuListWidth}</code></td><td></td></tr> <tr><td><code>{@link #Theme_popupMenuStyle com.nafunny.app:popupMenuStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_popupWindowStyle com.nafunny.app:popupWindowStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_radioButtonStyle com.nafunny.app:radioButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_ratingBarStyle com.nafunny.app:ratingBarStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_searchViewStyle com.nafunny.app:searchViewStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_selectableItemBackground com.nafunny.app:selectableItemBackground}</code></td><td></td></tr> <tr><td><code>{@link #Theme_selectableItemBackgroundBorderless com.nafunny.app:selectableItemBackgroundBorderless}</code></td><td></td></tr> <tr><td><code>{@link #Theme_spinnerDropDownItemStyle com.nafunny.app:spinnerDropDownItemStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_spinnerStyle com.nafunny.app:spinnerStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_switchStyle com.nafunny.app:switchStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textAppearanceLargePopupMenu com.nafunny.app:textAppearanceLargePopupMenu}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textAppearanceListItem com.nafunny.app:textAppearanceListItem}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textAppearanceListItemSmall com.nafunny.app:textAppearanceListItemSmall}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textAppearanceSearchResultSubtitle com.nafunny.app:textAppearanceSearchResultSubtitle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textAppearanceSearchResultTitle com.nafunny.app:textAppearanceSearchResultTitle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textAppearanceSmallPopupMenu com.nafunny.app:textAppearanceSmallPopupMenu}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textColorAlertDialogListItem com.nafunny.app:textColorAlertDialogListItem}</code></td><td></td></tr> <tr><td><code>{@link #Theme_textColorSearchUrl com.nafunny.app:textColorSearchUrl}</code></td><td></td></tr> <tr><td><code>{@link #Theme_toolbarNavigationButtonStyle com.nafunny.app:toolbarNavigationButtonStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_toolbarStyle com.nafunny.app:toolbarStyle}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowActionBar com.nafunny.app:windowActionBar}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowActionBarOverlay com.nafunny.app:windowActionBarOverlay}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowActionModeOverlay com.nafunny.app:windowActionModeOverlay}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowFixedHeightMajor com.nafunny.app:windowFixedHeightMajor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowFixedHeightMinor com.nafunny.app:windowFixedHeightMinor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowFixedWidthMajor com.nafunny.app:windowFixedWidthMajor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowFixedWidthMinor com.nafunny.app:windowFixedWidthMinor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowMinWidthMajor com.nafunny.app:windowMinWidthMajor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowMinWidthMinor com.nafunny.app:windowMinWidthMinor}</code></td><td></td></tr> <tr><td><code>{@link #Theme_windowNoTitle com.nafunny.app:windowNoTitle}</code></td><td></td></tr> </table> @see #Theme_actionBarDivider @see #Theme_actionBarItemBackground @see #Theme_actionBarPopupTheme @see #Theme_actionBarSize @see #Theme_actionBarSplitStyle @see #Theme_actionBarStyle @see #Theme_actionBarTabBarStyle @see #Theme_actionBarTabStyle @see #Theme_actionBarTabTextStyle @see #Theme_actionBarTheme @see #Theme_actionBarWidgetTheme @see #Theme_actionButtonStyle @see #Theme_actionDropDownStyle @see #Theme_actionMenuTextAppearance @see #Theme_actionMenuTextColor @see #Theme_actionModeBackground @see #Theme_actionModeCloseButtonStyle @see #Theme_actionModeCloseDrawable @see #Theme_actionModeCopyDrawable @see #Theme_actionModeCutDrawable @see #Theme_actionModeFindDrawable @see #Theme_actionModePasteDrawable @see #Theme_actionModePopupWindowStyle @see #Theme_actionModeSelectAllDrawable @see #Theme_actionModeShareDrawable @see #Theme_actionModeSplitBackground @see #Theme_actionModeStyle @see #Theme_actionModeWebSearchDrawable @see #Theme_actionOverflowButtonStyle @see #Theme_actionOverflowMenuStyle @see #Theme_activityChooserViewStyle @see #Theme_alertDialogButtonGroupStyle @see #Theme_alertDialogCenterButtons @see #Theme_alertDialogStyle @see #Theme_alertDialogTheme @see #Theme_android_windowAnimationStyle @see #Theme_android_windowIsFloating @see #Theme_autoCompleteTextViewStyle @see #Theme_borderlessButtonStyle @see #Theme_buttonBarButtonStyle @see #Theme_buttonBarNegativeButtonStyle @see #Theme_buttonBarNeutralButtonStyle @see #Theme_buttonBarPositiveButtonStyle @see #Theme_buttonBarStyle @see #Theme_buttonStyle @see #Theme_buttonStyleSmall @see #Theme_checkboxStyle @see #Theme_checkedTextViewStyle @see #Theme_colorAccent @see #Theme_colorButtonNormal @see #Theme_colorControlActivated @see #Theme_colorControlHighlight @see #Theme_colorControlNormal @see #Theme_colorPrimary @see #Theme_colorPrimaryDark @see #Theme_colorSwitchThumbNormal @see #Theme_controlBackground @see #Theme_dialogPreferredPadding @see #Theme_dialogTheme @see #Theme_dividerHorizontal @see #Theme_dividerVertical @see #Theme_dropDownListViewStyle @see #Theme_dropdownListPreferredItemHeight @see #Theme_editTextBackground @see #Theme_editTextColor @see #Theme_editTextStyle @see #Theme_homeAsUpIndicator @see #Theme_listChoiceBackgroundIndicator @see #Theme_listDividerAlertDialog @see #Theme_listPopupWindowStyle @see #Theme_listPreferredItemHeight @see #Theme_listPreferredItemHeightLarge @see #Theme_listPreferredItemHeightSmall @see #Theme_listPreferredItemPaddingLeft @see #Theme_listPreferredItemPaddingRight @see #Theme_panelBackground @see #Theme_panelMenuListTheme @see #Theme_panelMenuListWidth @see #Theme_popupMenuStyle @see #Theme_popupWindowStyle @see #Theme_radioButtonStyle @see #Theme_ratingBarStyle @see #Theme_searchViewStyle @see #Theme_selectableItemBackground @see #Theme_selectableItemBackgroundBorderless @see #Theme_spinnerDropDownItemStyle @see #Theme_spinnerStyle @see #Theme_switchStyle @see #Theme_textAppearanceLargePopupMenu @see #Theme_textAppearanceListItem @see #Theme_textAppearanceListItemSmall @see #Theme_textAppearanceSearchResultSubtitle @see #Theme_textAppearanceSearchResultTitle @see #Theme_textAppearanceSmallPopupMenu @see #Theme_textColorAlertDialogListItem @see #Theme_textColorSearchUrl @see #Theme_toolbarNavigationButtonStyle @see #Theme_toolbarStyle @see #Theme_windowActionBar @see #Theme_windowActionBarOverlay @see #Theme_windowActionModeOverlay @see #Theme_windowFixedHeightMajor @see #Theme_windowFixedHeightMinor @see #Theme_windowFixedWidthMajor @see #Theme_windowFixedWidthMinor @see #Theme_windowMinWidthMajor @see #Theme_windowMinWidthMinor @see #Theme_windowNoTitle */ public static final int[] Theme = { 0x01010057, 0x010100ae, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb, 0x7f0100bc }; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarDivider} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarDivider */ public static final int Theme_actionBarDivider = 23; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarItemBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarItemBackground */ public static final int Theme_actionBarItemBackground = 24; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarPopupTheme} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarPopupTheme */ public static final int Theme_actionBarPopupTheme = 17; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarSize} attribute's value can be found in the {@link #Theme} array. <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>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>May 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>wrap_content</code></td><td>0</td><td></td></tr> </table> @attr name com.nafunny.app:actionBarSize */ public static final int Theme_actionBarSize = 22; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarSplitStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarSplitStyle */ public static final int Theme_actionBarSplitStyle = 19; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarStyle */ public static final int Theme_actionBarStyle = 18; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarTabBarStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarTabBarStyle */ public static final int Theme_actionBarTabBarStyle = 13; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarTabStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarTabStyle */ public static final int Theme_actionBarTabStyle = 12; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarTabTextStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarTabTextStyle */ public static final int Theme_actionBarTabTextStyle = 14; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarTheme} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarTheme */ public static final int Theme_actionBarTheme = 20; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionBarWidgetTheme} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionBarWidgetTheme */ public static final int Theme_actionBarWidgetTheme = 21; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionButtonStyle */ public static final int Theme_actionButtonStyle = 49; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionDropDownStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionDropDownStyle */ public static final int Theme_actionDropDownStyle = 45; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionMenuTextAppearance} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionMenuTextAppearance */ public static final int Theme_actionMenuTextAppearance = 25; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionMenuTextColor} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionMenuTextColor */ public static final int Theme_actionMenuTextColor = 26; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeBackground */ public static final int Theme_actionModeBackground = 29; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeCloseButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeCloseButtonStyle */ public static final int Theme_actionModeCloseButtonStyle = 28; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeCloseDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeCloseDrawable */ public static final int Theme_actionModeCloseDrawable = 31; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeCopyDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeCopyDrawable */ public static final int Theme_actionModeCopyDrawable = 33; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeCutDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeCutDrawable */ public static final int Theme_actionModeCutDrawable = 32; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeFindDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeFindDrawable */ public static final int Theme_actionModeFindDrawable = 37; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModePasteDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModePasteDrawable */ public static final int Theme_actionModePasteDrawable = 34; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModePopupWindowStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModePopupWindowStyle */ public static final int Theme_actionModePopupWindowStyle = 39; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeSelectAllDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeSelectAllDrawable */ public static final int Theme_actionModeSelectAllDrawable = 35; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeShareDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeShareDrawable */ public static final int Theme_actionModeShareDrawable = 36; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeSplitBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeSplitBackground */ public static final int Theme_actionModeSplitBackground = 30; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeStyle */ public static final int Theme_actionModeStyle = 27; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionModeWebSearchDrawable} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionModeWebSearchDrawable */ public static final int Theme_actionModeWebSearchDrawable = 38; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionOverflowButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionOverflowButtonStyle */ public static final int Theme_actionOverflowButtonStyle = 15; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#actionOverflowMenuStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:actionOverflowMenuStyle */ public static final int Theme_actionOverflowMenuStyle = 16; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#activityChooserViewStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:activityChooserViewStyle */ public static final int Theme_activityChooserViewStyle = 57; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#alertDialogButtonGroupStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:alertDialogButtonGroupStyle */ public static final int Theme_alertDialogButtonGroupStyle = 91; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#alertDialogCenterButtons} attribute's value can be found in the {@link #Theme} 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.nafunny.app:alertDialogCenterButtons */ public static final int Theme_alertDialogCenterButtons = 92; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#alertDialogStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:alertDialogStyle */ public static final int Theme_alertDialogStyle = 90; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#alertDialogTheme} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:alertDialogTheme */ public static final int Theme_alertDialogTheme = 93; /** <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} attribute's value can be found in the {@link #Theme} array. @attr name android:windowAnimationStyle */ public static final int Theme_android_windowAnimationStyle = 1; /** <p>This symbol is the offset where the {@link android.R.attr#windowIsFloating} attribute's value can be found in the {@link #Theme} array. @attr name android:windowIsFloating */ public static final int Theme_android_windowIsFloating = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#autoCompleteTextViewStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:autoCompleteTextViewStyle */ public static final int Theme_autoCompleteTextViewStyle = 98; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#borderlessButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:borderlessButtonStyle */ public static final int Theme_borderlessButtonStyle = 54; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonBarButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonBarButtonStyle */ public static final int Theme_buttonBarButtonStyle = 51; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonBarNegativeButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonBarNegativeButtonStyle */ public static final int Theme_buttonBarNegativeButtonStyle = 96; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonBarNeutralButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonBarNeutralButtonStyle */ public static final int Theme_buttonBarNeutralButtonStyle = 97; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonBarPositiveButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonBarPositiveButtonStyle */ public static final int Theme_buttonBarPositiveButtonStyle = 95; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonBarStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonBarStyle */ public static final int Theme_buttonBarStyle = 50; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonStyle */ public static final int Theme_buttonStyle = 99; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#buttonStyleSmall} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:buttonStyleSmall */ public static final int Theme_buttonStyleSmall = 100; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#checkboxStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:checkboxStyle */ public static final int Theme_checkboxStyle = 101; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#checkedTextViewStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:checkedTextViewStyle */ public static final int Theme_checkedTextViewStyle = 102; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorAccent} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorAccent */ public static final int Theme_colorAccent = 83; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorButtonNormal} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorButtonNormal */ public static final int Theme_colorButtonNormal = 87; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorControlActivated} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorControlActivated */ public static final int Theme_colorControlActivated = 85; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorControlHighlight} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorControlHighlight */ public static final int Theme_colorControlHighlight = 86; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorControlNormal} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorControlNormal */ public static final int Theme_colorControlNormal = 84; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorPrimary} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorPrimary */ public static final int Theme_colorPrimary = 81; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorPrimaryDark} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorPrimaryDark */ public static final int Theme_colorPrimaryDark = 82; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#colorSwitchThumbNormal} attribute's value can be found in the {@link #Theme} array. <p>Must 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 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.nafunny.app:colorSwitchThumbNormal */ public static final int Theme_colorSwitchThumbNormal = 88; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#controlBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:controlBackground */ public static final int Theme_controlBackground = 89; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dialogPreferredPadding} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:dialogPreferredPadding */ public static final int Theme_dialogPreferredPadding = 43; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dialogTheme} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:dialogTheme */ public static final int Theme_dialogTheme = 42; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dividerHorizontal} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:dividerHorizontal */ public static final int Theme_dividerHorizontal = 56; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dividerVertical} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:dividerVertical */ public static final int Theme_dividerVertical = 55; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dropDownListViewStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:dropDownListViewStyle */ public static final int Theme_dropDownListViewStyle = 73; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#dropdownListPreferredItemHeight} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:dropdownListPreferredItemHeight */ public static final int Theme_dropdownListPreferredItemHeight = 46; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#editTextBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:editTextBackground */ public static final int Theme_editTextBackground = 63; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#editTextColor} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:editTextColor */ public static final int Theme_editTextColor = 62; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#editTextStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:editTextStyle */ public static final int Theme_editTextStyle = 103; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#homeAsUpIndicator} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:homeAsUpIndicator */ public static final int Theme_homeAsUpIndicator = 48; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listChoiceBackgroundIndicator} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:listChoiceBackgroundIndicator */ public static final int Theme_listChoiceBackgroundIndicator = 80; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listDividerAlertDialog} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:listDividerAlertDialog */ public static final int Theme_listDividerAlertDialog = 44; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listPopupWindowStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:listPopupWindowStyle */ public static final int Theme_listPopupWindowStyle = 74; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listPreferredItemHeight} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:listPreferredItemHeight */ public static final int Theme_listPreferredItemHeight = 68; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listPreferredItemHeightLarge} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:listPreferredItemHeightLarge */ public static final int Theme_listPreferredItemHeightLarge = 70; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listPreferredItemHeightSmall} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:listPreferredItemHeightSmall */ public static final int Theme_listPreferredItemHeightSmall = 69; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listPreferredItemPaddingLeft} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:listPreferredItemPaddingLeft */ public static final int Theme_listPreferredItemPaddingLeft = 71; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#listPreferredItemPaddingRight} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:listPreferredItemPaddingRight */ public static final int Theme_listPreferredItemPaddingRight = 72; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#panelBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:panelBackground */ public static final int Theme_panelBackground = 77; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#panelMenuListTheme} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:panelMenuListTheme */ public static final int Theme_panelMenuListTheme = 79; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#panelMenuListWidth} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:panelMenuListWidth */ public static final int Theme_panelMenuListWidth = 78; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#popupMenuStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:popupMenuStyle */ public static final int Theme_popupMenuStyle = 60; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#popupWindowStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:popupWindowStyle */ public static final int Theme_popupWindowStyle = 61; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#radioButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:radioButtonStyle */ public static final int Theme_radioButtonStyle = 104; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#ratingBarStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:ratingBarStyle */ public static final int Theme_ratingBarStyle = 105; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#searchViewStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:searchViewStyle */ public static final int Theme_searchViewStyle = 67; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#selectableItemBackground} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:selectableItemBackground */ public static final int Theme_selectableItemBackground = 52; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#selectableItemBackgroundBorderless} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:selectableItemBackgroundBorderless */ public static final int Theme_selectableItemBackgroundBorderless = 53; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#spinnerDropDownItemStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:spinnerDropDownItemStyle */ public static final int Theme_spinnerDropDownItemStyle = 47; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#spinnerStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:spinnerStyle */ public static final int Theme_spinnerStyle = 106; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#switchStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:switchStyle */ public static final int Theme_switchStyle = 107; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAppearanceLargePopupMenu} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textAppearanceLargePopupMenu */ public static final int Theme_textAppearanceLargePopupMenu = 40; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAppearanceListItem} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textAppearanceListItem */ public static final int Theme_textAppearanceListItem = 75; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAppearanceListItemSmall} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textAppearanceListItemSmall */ public static final int Theme_textAppearanceListItemSmall = 76; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAppearanceSearchResultSubtitle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textAppearanceSearchResultSubtitle */ public static final int Theme_textAppearanceSearchResultSubtitle = 65; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAppearanceSearchResultTitle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textAppearanceSearchResultTitle */ public static final int Theme_textAppearanceSearchResultTitle = 64; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textAppearanceSmallPopupMenu} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textAppearanceSmallPopupMenu */ public static final int Theme_textAppearanceSmallPopupMenu = 41; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textColorAlertDialogListItem} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textColorAlertDialogListItem */ public static final int Theme_textColorAlertDialogListItem = 94; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#textColorSearchUrl} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:textColorSearchUrl */ public static final int Theme_textColorSearchUrl = 66; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#toolbarNavigationButtonStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:toolbarNavigationButtonStyle */ public static final int Theme_toolbarNavigationButtonStyle = 59; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#toolbarStyle} attribute's value can be found in the {@link #Theme} array. <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>". @attr name com.nafunny.app:toolbarStyle */ public static final int Theme_toolbarStyle = 58; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowActionBar} attribute's value can be found in the {@link #Theme} 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.nafunny.app:windowActionBar */ public static final int Theme_windowActionBar = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowActionBarOverlay} attribute's value can be found in the {@link #Theme} 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.nafunny.app:windowActionBarOverlay */ public static final int Theme_windowActionBarOverlay = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowActionModeOverlay} attribute's value can be found in the {@link #Theme} 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.nafunny.app:windowActionModeOverlay */ public static final int Theme_windowActionModeOverlay = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowFixedHeightMajor} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:windowFixedHeightMajor */ public static final int Theme_windowFixedHeightMajor = 9; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowFixedHeightMinor} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:windowFixedHeightMinor */ public static final int Theme_windowFixedHeightMinor = 7; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowFixedWidthMajor} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:windowFixedWidthMajor */ public static final int Theme_windowFixedWidthMajor = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowFixedWidthMinor} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:windowFixedWidthMinor */ public static final int Theme_windowFixedWidthMinor = 8; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowMinWidthMajor} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:windowMinWidthMajor */ public static final int Theme_windowMinWidthMajor = 10; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowMinWidthMinor} attribute's value can be found in the {@link #Theme} array. <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. @attr name com.nafunny.app:windowMinWidthMinor */ public static final int Theme_windowMinWidthMinor = 11; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#windowNoTitle} attribute's value can be found in the {@link #Theme} 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.nafunny.app:windowNoTitle */ public static final int Theme_windowNoTitle = 3; /** Attributes that can be used with a Toolbar. <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 #Toolbar_android_gravity android:gravity}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_collapseContentDescription com.nafunny.app:collapseContentDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_collapseIcon com.nafunny.app:collapseIcon}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetEnd com.nafunny.app:contentInsetEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetLeft com.nafunny.app:contentInsetLeft}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetRight com.nafunny.app:contentInsetRight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_contentInsetStart com.nafunny.app:contentInsetStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_logo com.nafunny.app:logo}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_logoDescription com.nafunny.app:logoDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_maxButtonHeight com.nafunny.app:maxButtonHeight}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationContentDescription com.nafunny.app:navigationContentDescription}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_navigationIcon com.nafunny.app:navigationIcon}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_popupTheme com.nafunny.app:popupTheme}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitle com.nafunny.app:subtitle}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitleTextAppearance com.nafunny.app:subtitleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_subtitleTextColor com.nafunny.app:subtitleTextColor}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_title com.nafunny.app:title}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginBottom com.nafunny.app:titleMarginBottom}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginEnd com.nafunny.app:titleMarginEnd}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginStart com.nafunny.app:titleMarginStart}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMarginTop com.nafunny.app:titleMarginTop}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleMargins com.nafunny.app:titleMargins}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextAppearance com.nafunny.app:titleTextAppearance}</code></td><td></td></tr> <tr><td><code>{@link #Toolbar_titleTextColor com.nafunny.app:titleTextColor}</code></td><td></td></tr> </table> @see #Toolbar_android_gravity @see #Toolbar_android_minHeight @see #Toolbar_collapseContentDescription @see #Toolbar_collapseIcon @see #Toolbar_contentInsetEnd @see #Toolbar_contentInsetLeft @see #Toolbar_contentInsetRight @see #Toolbar_contentInsetStart @see #Toolbar_logo @see #Toolbar_logoDescription @see #Toolbar_maxButtonHeight @see #Toolbar_navigationContentDescription @see #Toolbar_navigationIcon @see #Toolbar_popupTheme @see #Toolbar_subtitle @see #Toolbar_subtitleTextAppearance @see #Toolbar_subtitleTextColor @see #Toolbar_title @see #Toolbar_titleMarginBottom @see #Toolbar_titleMarginEnd @see #Toolbar_titleMarginStart @see #Toolbar_titleMarginTop @see #Toolbar_titleMargins @see #Toolbar_titleTextAppearance @see #Toolbar_titleTextColor */ public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010003, 0x7f010006, 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001b, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb }; /** <p>This symbol is the offset where the {@link android.R.attr#gravity} attribute's value can be found in the {@link #Toolbar} array. @attr name android:gravity */ public static final int Toolbar_android_gravity = 0; /** <p>This symbol is the offset where the {@link android.R.attr#minHeight} attribute's value can be found in the {@link #Toolbar} array. @attr name android:minHeight */ public static final int Toolbar_android_minHeight = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#collapseContentDescription} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:collapseContentDescription */ public static final int Toolbar_collapseContentDescription = 19; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#collapseIcon} attribute's value can be found in the {@link #Toolbar} array. <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>". @attr name com.nafunny.app:collapseIcon */ public static final int Toolbar_collapseIcon = 18; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetEnd} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:contentInsetEnd */ public static final int Toolbar_contentInsetEnd = 6; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetLeft} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:contentInsetLeft */ public static final int Toolbar_contentInsetLeft = 7; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetRight} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:contentInsetRight */ public static final int Toolbar_contentInsetRight = 8; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#contentInsetStart} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:contentInsetStart */ public static final int Toolbar_contentInsetStart = 5; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#logo} attribute's value can be found in the {@link #Toolbar} array. <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>". @attr name com.nafunny.app:logo */ public static final int Toolbar_logo = 4; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#logoDescription} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:logoDescription */ public static final int Toolbar_logoDescription = 22; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#maxButtonHeight} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:maxButtonHeight */ public static final int Toolbar_maxButtonHeight = 17; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#navigationContentDescription} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:navigationContentDescription */ public static final int Toolbar_navigationContentDescription = 21; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#navigationIcon} attribute's value can be found in the {@link #Toolbar} array. <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>". @attr name com.nafunny.app:navigationIcon */ public static final int Toolbar_navigationIcon = 20; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#popupTheme} attribute's value can be found in the {@link #Toolbar} array. <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>". @attr name com.nafunny.app:popupTheme */ public static final int Toolbar_popupTheme = 9; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#subtitle} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:subtitle */ public static final int Toolbar_subtitle = 3; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#subtitleTextAppearance} attribute's value can be found in the {@link #Toolbar} array. <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>". @attr name com.nafunny.app:subtitleTextAppearance */ public static final int Toolbar_subtitleTextAppearance = 11; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#subtitleTextColor} attribute's value can be found in the {@link #Toolbar} array. <p>Must 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 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.nafunny.app:subtitleTextColor */ public static final int Toolbar_subtitleTextColor = 24; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#title} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:title */ public static final int Toolbar_title = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleMarginBottom} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:titleMarginBottom */ public static final int Toolbar_titleMarginBottom = 16; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleMarginEnd} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:titleMarginEnd */ public static final int Toolbar_titleMarginEnd = 14; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleMarginStart} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:titleMarginStart */ public static final int Toolbar_titleMarginStart = 13; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleMarginTop} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:titleMarginTop */ public static final int Toolbar_titleMarginTop = 15; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleMargins} attribute's value can be found in the {@link #Toolbar} array. <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. @attr name com.nafunny.app:titleMargins */ public static final int Toolbar_titleMargins = 12; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleTextAppearance} attribute's value can be found in the {@link #Toolbar} array. <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>". @attr name com.nafunny.app:titleTextAppearance */ public static final int Toolbar_titleTextAppearance = 10; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#titleTextColor} attribute's value can be found in the {@link #Toolbar} array. <p>Must 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 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.nafunny.app:titleTextColor */ public static final int Toolbar_titleTextColor = 23; /** 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></td></tr> <tr><td><code>{@link #View_android_theme android:theme}</code></td><td></td></tr> <tr><td><code>{@link #View_paddingEnd com.nafunny.app:paddingEnd}</code></td><td></td></tr> <tr><td><code>{@link #View_paddingStart com.nafunny.app:paddingStart}</code></td><td></td></tr> <tr><td><code>{@link #View_theme com.nafunny.app:theme}</code></td><td></td></tr> </table> @see #View_android_focusable @see #View_android_theme @see #View_paddingEnd @see #View_paddingStart @see #View_theme */ public static final int[] View = { 0x01010000, 0x010100da, 0x7f0100cc, 0x7f0100cd, 0x7f0100ce }; /** <p>This symbol is the offset where the {@link android.R.attr#focusable} attribute's value can be found in the {@link #View} array. @attr name android:focusable */ public static final int View_android_focusable = 1; /** <p>This symbol is the offset where the {@link android.R.attr#theme} attribute's value can be found in the {@link #View} array. @attr name android:theme */ public static final int View_android_theme = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#paddingEnd} attribute's value can be found in the {@link #View} array. <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. @attr name com.nafunny.app:paddingEnd */ public static final int View_paddingEnd = 3; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#paddingStart} attribute's value can be found in the {@link #View} array. <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. @attr name com.nafunny.app:paddingStart */ public static final int View_paddingStart = 2; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#theme} attribute's value can be found in the {@link #View} array. <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>". @attr name com.nafunny.app:theme */ public static final int View_theme = 4; /** Attributes that can be used with a ViewBackgroundHelper. <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 #ViewBackgroundHelper_android_background android:background}</code></td><td></td></tr> <tr><td><code>{@link #ViewBackgroundHelper_backgroundTint com.nafunny.app:backgroundTint}</code></td><td></td></tr> <tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode com.nafunny.app:backgroundTintMode}</code></td><td></td></tr> </table> @see #ViewBackgroundHelper_android_background @see #ViewBackgroundHelper_backgroundTint @see #ViewBackgroundHelper_backgroundTintMode */ public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0100cf, 0x7f0100d0 }; /** <p>This symbol is the offset where the {@link android.R.attr#background} attribute's value can be found in the {@link #ViewBackgroundHelper} array. @attr name android:background */ public static final int ViewBackgroundHelper_android_background = 0; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#backgroundTint} attribute's value can be found in the {@link #ViewBackgroundHelper} array. <p>Must 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 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.nafunny.app:backgroundTint */ public static final int ViewBackgroundHelper_backgroundTint = 1; /** <p>This symbol is the offset where the {@link com.nafunny.app.R.attr#backgroundTintMode} attribute's value can be found in the {@link #ViewBackgroundHelper} array. <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>src_over</code></td><td>3</td><td></td></tr> <tr><td><code>src_in</code></td><td>5</td><td></td></tr> <tr><td><code>src_atop</code></td><td>9</td><td></td></tr> <tr><td><code>multiply</code></td><td>14</td><td></td></tr> <tr><td><code>screen</code></td><td>15</td><td></td></tr> </table> @attr name com.nafunny.app:backgroundTintMode */ public static final int ViewBackgroundHelper_backgroundTintMode = 2; /** Attributes that can be used with a ViewStubCompat. <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 #ViewStubCompat_android_id android:id}</code></td><td></td></tr> <tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td></td></tr> <tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td></td></tr> </table> @see #ViewStubCompat_android_id @see #ViewStubCompat_android_inflatedId @see #ViewStubCompat_android_layout */ public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; /** <p>This symbol is the offset where the {@link android.R.attr#id} attribute's value can be found in the {@link #ViewStubCompat} array. @attr name android:id */ public static final int ViewStubCompat_android_id = 0; /** <p>This symbol is the offset where the {@link android.R.attr#inflatedId} attribute's value can be found in the {@link #ViewStubCompat} array. @attr name android:inflatedId */ public static final int ViewStubCompat_android_inflatedId = 2; /** <p>This symbol is the offset where the {@link android.R.attr#layout} attribute's value can be found in the {@link #ViewStubCompat} array. @attr name android:layout */ public static final int ViewStubCompat_android_layout = 1; }; }
3e0698fc86118a5748ceaa4eed075899125d6704
3,907
java
Java
utils/eclipselink.utils.workbench/mappingsplugin/source/org/eclipse/persistence/tools/workbench/mappingsplugin/ui/descriptor/xml/XmlInheritancePolicyPropertiesPage.java
brettdavidson3/eclipselink.runtime
a992a67ce49ca56117df4632c9c0c70938a0b28e
[ "BSD-3-Clause" ]
null
null
null
utils/eclipselink.utils.workbench/mappingsplugin/source/org/eclipse/persistence/tools/workbench/mappingsplugin/ui/descriptor/xml/XmlInheritancePolicyPropertiesPage.java
brettdavidson3/eclipselink.runtime
a992a67ce49ca56117df4632c9c0c70938a0b28e
[ "BSD-3-Clause" ]
null
null
null
utils/eclipselink.utils.workbench/mappingsplugin/source/org/eclipse/persistence/tools/workbench/mappingsplugin/ui/descriptor/xml/XmlInheritancePolicyPropertiesPage.java
brettdavidson3/eclipselink.runtime
a992a67ce49ca56117df4632c9c0c70938a0b28e
[ "BSD-3-Clause" ]
null
null
null
41.126316
165
0.739186
2,807
/******************************************************************************* * Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Oracle - initial API and implementation from Oracle TopLink ******************************************************************************/ package org.eclipse.persistence.tools.workbench.mappingsplugin.ui.descriptor.xml; import java.awt.Component; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.util.Collection; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.JPanel; import javax.swing.JRadioButton; import org.eclipse.persistence.tools.workbench.framework.context.WorkbenchContextHolder; import org.eclipse.persistence.tools.workbench.framework.uitools.GroupBox; import org.eclipse.persistence.tools.workbench.mappingsplugin.ui.descriptor.InheritancePolicyPropertiesPage; import org.eclipse.persistence.tools.workbench.uitools.app.PropertyValueModel; abstract class XmlInheritancePolicyPropertiesPage extends InheritancePolicyPropertiesPage { XmlInheritancePolicyPropertiesPage(PropertyValueModel nodeHolder, WorkbenchContextHolder contextHolder) { super(nodeHolder, contextHolder); } protected Component buildPage() { GridBagConstraints constraints = new GridBagConstraints(); JPanel contentPanel = new JPanel(new GridBagLayout()); contentPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); // Is Child widgets JRadioButton isChildRadioButton = buildRadioButton("IS_CHILD_DESC", buildIsChildDescriptorRadioButtonModel(getIsRootHolder())); addHelpTopicId(isChildRadioButton, helpTopicId() + ".isChild"); JPanel isChildPanel = buildIsChildPanel(getIsRootHolder().getValue() == Boolean.FALSE); addHelpTopicId(isChildPanel, helpTopicId() + ".isChild"); getIsRootHolder().addPropertyChangeListener(buildIsChildListener(isChildPanel)); // Is Root widgets JRadioButton isRootRadioButton = buildRadioButton("IS_ROOT_DESC", buildIsRootParentDescriptorRadioButtonModel(getIsRootHolder())); addHelpTopicId(isRootRadioButton, helpTopicId() + ".isRoot"); Collection isRootListeners = new Vector(); JPanel isRootPanel = buildIsRootPanel(isRootListeners); isRootListeners.add(classIndicatorPolicyPanel); // Add everything to the container GroupBox groupBox = new GroupBox ( isChildRadioButton, isChildPanel, isRootRadioButton, isRootPanel ); constraints.gridx = 0; constraints.gridy = 1; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.weightx = 1; constraints.weighty = 1; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.anchor = GridBagConstraints.PAGE_START; constraints.insets = new Insets(0, 0, 0, 0); contentPanel.add(groupBox, constraints); addHelpTopicId(getClassIndicatorPolicyPanel(), helpTopicId() + ".isRoot"); addHelpTopicId(contentPanel, helpTopicId()); addAllRootListeners(isRootListeners); return contentPanel; } private JPanel buildIsRootPanel(Collection isRootListeners) { classIndicatorPolicyPanel = new XmlClassIndicatorPolicySubPanel(getSelectionHolder(), getInheritancePolicyHolder(), getWorkbenchContextHolder(), isRootListeners); return classIndicatorPolicyPanel; } protected String helpTopicIdPrefix() { return "descriptor.xml"; } }
3e06991a82efd4887ceed5c4fa4cd3b43a92c087
6,520
java
Java
src/main/java/com/zacharytalis/alttextbot/utils/Toolbox.java
ZacharyTalis/AltTextBot
25d8b781138221aca752e1595a2dd307bac98523
[ "Apache-2.0" ]
2
2020-11-26T23:30:37.000Z
2021-05-04T03:14:18.000Z
src/main/java/com/zacharytalis/alttextbot/utils/Toolbox.java
ZacharyTalis/AltTextBot
25d8b781138221aca752e1595a2dd307bac98523
[ "Apache-2.0" ]
14
2020-09-17T16:58:00.000Z
2022-01-19T07:41:59.000Z
src/main/java/com/zacharytalis/alttextbot/utils/Toolbox.java
ZacharyTalis/AltTextBot
25d8b781138221aca752e1595a2dd307bac98523
[ "Apache-2.0" ]
null
null
null
33.782383
105
0.613957
2,808
package com.zacharytalis.alttextbot.utils; import com.google.common.base.Stopwatch; import com.zacharytalis.alttextbot.logging.LoggableLogger; import com.zacharytalis.alttextbot.logging.Logger; import com.zacharytalis.alttextbot.logging.PrefixingLogger; import com.zacharytalis.alttextbot.utils.functions.Runnables; import org.slf4j.LoggerFactory; import org.slf4j.helpers.MessageFormatter; import javax.tools.Tool; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Supplier; public class Toolbox { public record Caller(Class<?> callerClass) { static class InferenceException extends RuntimeException { InferenceException() { super("Failed to perform caller inference"); } } private static final List<Class<?>> EXCLUDE = List.of(Toolbox.class, Caller.class); private static Caller infer() throws InferenceException { final var walker = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE); final var callingClass = walker.walk( s -> s.map(StackWalker.StackFrame::getDeclaringClass) .filter(Caller::isRelevantClass) .findFirst() ); return callingClass.map(Caller::new).orElseThrow(InferenceException::new); } private static boolean isRelevantClass(Class<?> clazz) { return !EXCLUDE.contains(clazz); } } public static abstract class PerEnvRunner { private static final Supplier<PerEnvRunner> runnerFactory = Ref.currentEnv().isProduction() ? ProdRunner::new : TestingRunner::new; public static PerEnvRunner getInstance() { return runnerFactory.get(); } private static class ProdRunner extends PerEnvRunner { @Override public PerEnvRunner inTesting(Runnable run) { // Do nothing in Testing return this; } @Override public PerEnvRunner inProduction(Runnable run) { run.run(); return this; } } private static class TestingRunner extends PerEnvRunner { @Override public PerEnvRunner inTesting(Runnable run) { run.run(); return this; } @Override public PerEnvRunner inProduction(Runnable run) { // Do nothing in Production return this; } } public abstract PerEnvRunner inTesting(Runnable run); public abstract PerEnvRunner inProduction(Runnable run); } private static final HashMap<Class<?>, Logger> classLoggers = new HashMap<>(); private static final HashMap<String, Logger> namedLoggers = new HashMap<>(); public static Stopwatch timed(Runnable block) { final var watch = Stopwatch.createStarted(); block.run(); return watch; } public static <T> Stopwatch timed(Consumer<T> consumer, T arg) { return timed(Runnables.fromConsumer(consumer, arg)); } public static CompletableFuture<Void> completedFuture() { return CompletableFuture.completedFuture(null); } public static CompletableFuture<Void> voidFuture(CompletableFuture<?> future) { return CompletableFuture.allOf(future); } public static CompletableFuture<Void> nullFuture() { return CompletableFuture.completedFuture(null); } public static String loggerFormat(String format, Object... args) { toLoggableObjectArray(args); return MessageFormatter.arrayFormat(format, args).getMessage(); } public static void toLoggableObjectArray(Object[] objs) { for (int i = 0; i < objs.length; i++) objs[i] = fromLoggableObject(objs[i]); } public static Object fromLoggableObject(Object obj) { if (obj instanceof Loggable loggable) return loggable.toLoggerString(); return obj; } public static <T extends Throwable, U> Function<T, U> acceptAndRethrow(Consumer<T> consumer) { return throwable -> { consumer.accept(throwable); uncheckedThrow(throwable); return null; }; } public static void uncheckedThrow(Throwable t) { doUncheckedThrow(t); } @SuppressWarnings("unchecked") private static <T extends Throwable> void doUncheckedThrow(Throwable t) throws T { throw (T) t; } public static Logger getLogger(String name) { return namedLoggers.computeIfAbsent(name, n -> new LoggableLogger(LoggerFactory.getLogger(n))); } public static Logger inferLogger() throws Toolbox.Caller.InferenceException { return getLogger(Caller.infer().callerClass()); } public static Logger getLogger(Class<?> clazz) { return classLoggers.computeIfAbsent(clazz, c -> new LoggableLogger(LoggerFactory.getLogger(c))); } public static Logger getLogger(String name, String prefix) { final var botLogger = getLogger(name); if (botLogger instanceof PrefixingLogger logger && logger.getPrefix().equals(prefix)) return logger; else { final var logger = new PrefixingLogger(botLogger, prefix); namedLoggers.put(name, logger); return logger; } } public static Logger getLogger(Class<?> clazz, String prefix) { final var botLogger = getLogger(clazz); if (botLogger instanceof PrefixingLogger logger && logger.getPrefix().equals(prefix)) return logger; else { final var logger = new PrefixingLogger(botLogger, prefix); classLoggers.put(clazz, logger); return logger; } } public static void testingOnly(Runnable run) { if (Ref.currentEnv().isTesting()) { run.run(); } } public static PerEnvRunner perEnv() { return PerEnvRunner.getInstance(); } }
3e0699628252f69cae24cd9861fb8a4b71a5fc6c
259
java
Java
sdk/spring/azure-spring-cloud-test-eventhubs/src/test/java/com/microsoft/azure/eventhubs/Application.java
yiliuTo/azure-sdk-for-java
4536b6e99ded1b2b77f79bc2c31f42566c97b704
[ "MIT" ]
2
2020-12-08T18:36:16.000Z
2021-10-18T03:32:47.000Z
sdk/spring/azure-spring-cloud-test-eventhubs/src/test/java/com/microsoft/azure/eventhubs/Application.java
yiliuTo/azure-sdk-for-java
4536b6e99ded1b2b77f79bc2c31f42566c97b704
[ "MIT" ]
1
2020-12-08T02:42:55.000Z
2020-12-08T02:42:55.000Z
sdk/spring/azure-spring-cloud-test-eventhubs/src/test/java/com/microsoft/azure/eventhubs/Application.java
yiliuTo/azure-sdk-for-java
4536b6e99ded1b2b77f79bc2c31f42566c97b704
[ "MIT" ]
1
2022-01-31T19:22:33.000Z
2022-01-31T19:22:33.000Z
23.545455
68
0.814672
2,809
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.eventhubs; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { }
3e0699fa33dc15e8af3e857c609ce5def80c29ca
948
java
Java
curso-java-cod3r/exercicios/src/padroes/observer/Porteiro.java
PabloAlves/java
d913820a8a55b73d3e2655f0ac2c863d72b55a7a
[ "MIT" ]
1
2021-08-14T03:15:37.000Z
2021-08-14T03:15:37.000Z
curso-java-cod3r/exercicios/src/padroes/observer/Porteiro.java
PabloAlves/java
d913820a8a55b73d3e2655f0ac2c863d72b55a7a
[ "MIT" ]
null
null
null
curso-java-cod3r/exercicios/src/padroes/observer/Porteiro.java
PabloAlves/java
d913820a8a55b73d3e2655f0ac2c863d72b55a7a
[ "MIT" ]
null
null
null
21.066667
59
0.685654
2,810
package padroes.observer; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Scanner; public class Porteiro { private List<ObservadorChegadaAniversariante> observadores = new ArrayList<>(); public void registrarObservador( ObservadorChegadaAniversariante observador) { observadores.add(observador); } public void monitorar() { Scanner entrada = new Scanner(System.in); String valor = ""; while(!"sair".equalsIgnoreCase(valor)) { System.out.print("Aniversariante chegou? "); valor = entrada.nextLine(); if("sim".equalsIgnoreCase(valor)) { // Criar o evento EventoChegadaAniversariante evento = new EventoChegadaAniversariante(new Date()); // notificar os observadores! observadores.stream() .forEach(o -> o.chegou(evento)); valor = "sair"; } else { System.out.println("Alarme falso!"); } } entrada.close(); } }
3e069a121cedb131a0074603007e7fe983620fe4
4,372
java
Java
BookApp/src/main/java/com/example/android/BookApp/BookActivity.java
angelikii/BookApp
a9c09084d8680ad83f9e976ab66f5149904b4ed8
[ "Apache-2.0" ]
null
null
null
BookApp/src/main/java/com/example/android/BookApp/BookActivity.java
angelikii/BookApp
a9c09084d8680ad83f9e976ab66f5149904b4ed8
[ "Apache-2.0" ]
null
null
null
BookApp/src/main/java/com/example/android/BookApp/BookActivity.java
angelikii/BookApp
a9c09084d8680ad83f9e976ab66f5149904b4ed8
[ "Apache-2.0" ]
null
null
null
36.132231
107
0.683211
2,811
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.example.android.BookApp; import android.app.LoaderManager; import android.app.LoaderManager.LoaderCallbacks; import android.content.Context; import android.content.Loader; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ListView; import android.widget.TextView; import java.util.ArrayList; import java.util.List; import static android.view.View.GONE; public class BookActivity extends AppCompatActivity implements LoaderCallbacks<List<Book>> { private static final String GOOGLEBOOKS_URL = "https://www.googleapis.com/books/v1/volumes?q="; String userInput; TextView mEmptyStateView; private BookAdapter mAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.book_activity); // here we create and pass an adapter to our bookListView to inflate it ListView bookListView = (ListView) findViewById(R.id.list); mAdapter = new BookAdapter(this, new ArrayList<Book>()); bookListView.setAdapter(mAdapter); // we locate the search button and the EditText view in the UI Button goButton = (Button) findViewById(R.id.search_button); final EditText inputSearch = (EditText) findViewById(R.id.inputSearch); // we call the ConnectivityManager to check state of network connectivity ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); final NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); //we locate the empty state view mEmptyStateView = (TextView) findViewById(R.id.empty_state); //we create and initialize a Loader Manager final LoaderManager loaderManager = getLoaderManager(); loaderManager.initLoader(0, null, BookActivity.this); // when search button is pressed, the entry of the user is saved and if the network is ok.... goButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { userInput userInput = inputSearch.getText().toString().replace(" ", "+"); if (networkInfo != null && networkInfo.isConnected()) { getLoaderManager().restartLoader(0, null, BookActivity.this); } else { // we update empty state with no connection error message mEmptyStateView.setText(getString(R.string.NetworkError)); } } }); } @Override public Loader<List<Book>> onCreateLoader(int i, Bundle bundle) { //we create and load the loader with a valid url Log.v("BookActivity", "our url is " + GOOGLEBOOKS_URL + userInput); return new BookLoader(this, GOOGLEBOOKS_URL + userInput); } @Override public void onLoadFinished(Loader<List<Book>> loader, List<Book> books) { mAdapter.clear(); if (books != null && !books.isEmpty()) { //in case the previous search resulted in an empty state (no books) mEmptyStateView.setVisibility(GONE); //inflate list with adapter mAdapter.addAll(books); } else { mEmptyStateView.setVisibility(View.VISIBLE); mEmptyStateView.setText(getString(R.string.emptystate)); } } @Override public void onLoaderReset(Loader<List<Book>> loader) { mAdapter.clear(); } }
3e069a2bfadc6fea287b382f536ba07a36188470
6,530
java
Java
src/main/java/com/fast/rxjava2/operator/convert/FlatMap2.java
ybw2016/fast-rxjava
ea2151aea8a259d28c6305bf3920a9d5f494b346
[ "Apache-2.0" ]
null
null
null
src/main/java/com/fast/rxjava2/operator/convert/FlatMap2.java
ybw2016/fast-rxjava
ea2151aea8a259d28c6305bf3920a9d5f494b346
[ "Apache-2.0" ]
null
null
null
src/main/java/com/fast/rxjava2/operator/convert/FlatMap2.java
ybw2016/fast-rxjava
ea2151aea8a259d28c6305bf3920a9d5f494b346
[ "Apache-2.0" ]
null
null
null
41.858974
102
0.591118
2,812
package com.fast.rxjava2.operator.convert; import com.fast.rxjava2.BaseRunClass; import java.util.Arrays; import java.util.List; import java.util.concurrent.CountDownLatch; import io.reactivex.Observable; import io.reactivex.ObservableEmitter; import io.reactivex.ObservableOnSubscribe; import io.reactivex.ObservableSource; import io.reactivex.annotations.NonNull; import io.reactivex.functions.BiFunction; import io.reactivex.functions.Consumer; import io.reactivex.functions.Function; /** * @author bowen.yan * @date 2018-09-09 */ public class FlatMap2 extends BaseRunClass { public static void main(String[] args) { flatMap4Time(); } public static void flatMap1Time() { // 采用RxJava基于事件流的链式操作 Observable.create(new ObservableOnSubscribe<List<List<Integer>>>() { @Override public void subscribe(ObservableEmitter<List<List<Integer>>> emitter) throws Exception { List<Integer> list1 = Arrays.asList(1, 2, 3); List<Integer> list2 = Arrays.asList(777, 888, 999); List<List<Integer>> list = Arrays.asList(list1, list2); emitter.onNext(list); } // 采用flatMap()变换操作符 }).flatMap(new Function<List<List<Integer>>, ObservableSource<List<Integer>>>() { @Override public ObservableSource<List<Integer>> apply(List<List<Integer>> lists) throws Exception { return Observable.fromIterable(lists); } }).subscribe(new Consumer<List<Integer>>() { @Override public void accept(List<Integer> list) throws Exception { logger.info("accept data ->" + list); } }); } public static void flatMap2Time() { // 采用RxJava基于事件流的链式操作 Observable.create(new ObservableOnSubscribe<List<List<Integer>>>() { @Override public void subscribe(ObservableEmitter<List<List<Integer>>> emitter) throws Exception { List<Integer> list1 = Arrays.asList(1, 2, 3); List<Integer> list2 = Arrays.asList(777, 888, 999); List<List<Integer>> list = Arrays.asList(list1, list2); emitter.onNext(list); } // 采用flatMap()变换操作符 }).flatMap(new Function<List<List<Integer>>, ObservableSource<List<Integer>>>() { @Override public ObservableSource<List<Integer>> apply(List<List<Integer>> lists) throws Exception { return Observable.fromIterable(lists); } }).flatMap(new Function<List<Integer>, ObservableSource<Integer>>() { @Override public ObservableSource<Integer> apply(List<Integer> integers) throws Exception { return Observable.fromIterable(integers); } }).subscribe(new Consumer<Integer>() { @Override public void accept(Integer integer) throws Exception { logger.info("accept data ->" + integer); } }); } public static void flatMap3Time() { // 采用RxJava基于事件流的链式操作 Observable.create(new ObservableOnSubscribe<List<List<Integer>>>() { @Override public void subscribe(ObservableEmitter<List<List<Integer>>> emitter) throws Exception { List<Integer> list1 = Arrays.asList(1, 2, 3); List<Integer> list2 = Arrays.asList(777, 888, 999); List<List<Integer>> list = Arrays.asList(list1, list2); emitter.onNext(list); } // 采用flatMap()变换操作符 }).flatMap(new Function<List<List<Integer>>, ObservableSource<List<Integer>>>() { @Override public ObservableSource<List<Integer>> apply(List<List<Integer>> lists) throws Exception { return Observable.fromIterable(lists); } }).flatMap(new Function<List<Integer>, ObservableSource<Integer>>() { @Override public ObservableSource<Integer> apply(List<Integer> integers) throws Exception { return Observable.fromIterable(integers); } }).reduce(new BiFunction<Integer, Integer, Integer>() { // 在该复写方法中复写聚合的逻辑 @Override public Integer apply(@NonNull Integer s1, @NonNull Integer s2) throws Exception { logger.info("本次计算的数据是: " + s1 + " 乘 " + s2); return s1 * s2; // 本次聚合的逻辑是:全部数据相乘起来 // 原理:第1次取前2个数据相乘,之后每次获取到的数据 = 返回的数据x原始下1个数据每 } }).subscribe(new Consumer<Integer>() { @Override public void accept(@NonNull Integer s) throws Exception { logger.info("最终计算的结果是: " + s); } }); } public static void flatMap4Time() { CountDownLatch countDownLatch = new CountDownLatch(1); // 采用RxJava基于事件流的链式操作 // 在该复写方法中复写聚合的逻辑 Observable.create(new ObservableOnSubscribe<List<List<Integer>>>() { @Override public void subscribe(ObservableEmitter<List<List<Integer>>> emitter) throws Exception { List<Integer> list1 = Arrays.asList(1, 2, 3); List<Integer> list2 = Arrays.asList(777, 888, 999); List<List<Integer>> list = Arrays.asList(list1, list2); emitter.onNext(list); } // 采用flatMap()变换操作符 }).flatMap(new Function<List<List<Integer>>, ObservableSource<List<Integer>>>() { @Override public ObservableSource<List<Integer>> apply(List<List<Integer>> lists) throws Exception { return Observable.fromIterable(lists); } }).flatMap(new Function<List<Integer>, ObservableSource<Integer>>() { @Override public ObservableSource<Integer> apply(List<Integer> integers) throws Exception { return Observable.fromIterable(integers); } }).reduce(2, new BiFunction<Integer, Integer, Integer>() { @Override public Integer apply(Integer integer, Integer integer2) throws Exception { return integer * integer2; } }).subscribe(new Consumer<Integer>() { @Override public void accept(@NonNull Integer s) throws Exception { logger.info("最终计算的结果是: " + s); countDownLatch.countDown(); } }); await(countDownLatch); } }
3e069ad13e75661bf4300f93b7d554c4010e3be6
2,698
java
Java
kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/GroupVersionKind.java
OneCricketeer/kubernetes-client
15ba0dd6c7e452c8f53905f23e3c22d35e9b1d9b
[ "Apache-2.0" ]
2,460
2015-08-26T08:44:49.000Z
2022-03-31T09:52:23.000Z
kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/GroupVersionKind.java
OneCricketeer/kubernetes-client
15ba0dd6c7e452c8f53905f23e3c22d35e9b1d9b
[ "Apache-2.0" ]
3,934
2015-07-16T14:51:50.000Z
2022-03-31T20:14:44.000Z
kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/GroupVersionKind.java
OneCricketeer/kubernetes-client
15ba0dd6c7e452c8f53905f23e3c22d35e9b1d9b
[ "Apache-2.0" ]
1,259
2015-07-16T14:36:46.000Z
2022-03-31T09:52:26.000Z
24.752294
182
0.691253
2,813
package io.fabric8.kubernetes.api.model; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import io.sundr.builder.annotations.Buildable; import lombok.EqualsAndHashCode; import lombok.Setter; import lombok.ToString; import lombok.experimental.Accessors; @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "apiVersion", "kind", "metadata", "group", "version" }) @ToString @EqualsAndHashCode @Setter @Accessors(prefix = { "_", "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = true, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder") public class GroupVersionKind implements KubernetesResource { @JsonProperty("group") private String group; @JsonProperty("kind") private String kind; @JsonProperty("version") private String version; @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); /** * No args constructor for use in serialization * */ public GroupVersionKind() { } /** * * @param kind * @param version * @param group */ public GroupVersionKind(String group, String kind, String version) { super(); this.group = group; this.kind = kind; this.version = version; } @JsonProperty("group") public String getGroup() { return group; } @JsonProperty("group") public void setGroup(String group) { this.group = group; } @JsonProperty("kind") public String getKind() { return kind; } @JsonProperty("kind") public void setKind(String kind) { this.kind = kind; } @JsonProperty("version") public String getVersion() { return version; } @JsonProperty("version") public void setVersion(String version) { this.version = version; } @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } }
3e069b6e1e40a4926705f6ed44e3c2d4600760fc
1,158
java
Java
rest-sample/src/test/java/ru/stqa/pft/rest/RestTests.java
IrinIv/Java_course
6f1bafe742ea36693d43145b42763d9d03d52bca
[ "Apache-2.0" ]
1
2017-07-07T23:01:18.000Z
2017-07-07T23:01:18.000Z
rest-sample/src/test/java/ru/stqa/pft/rest/RestTests.java
IrinIv/Java_course
6f1bafe742ea36693d43145b42763d9d03d52bca
[ "Apache-2.0" ]
null
null
null
rest-sample/src/test/java/ru/stqa/pft/rest/RestTests.java
IrinIv/Java_course
6f1bafe742ea36693d43145b42763d9d03d52bca
[ "Apache-2.0" ]
null
null
null
24.125
93
0.698618
2,814
package ru.stqa.pft.rest; import com.google.gson.JsonElement; import org.testng.annotations.Test; import java.io.IOException; import java.net.MalformedURLException; import java.rmi.RemoteException; import java.util.Set; import static org.testng.Assert.assertEquals; /** * Created by IrinaIv on 7/6/2017. */ public class RestTests extends TestBase { @Test public void testCreateIssue() throws IOException { Set<Issue> oldIssues = app.rest().getIssues(); Issue newIssue = new Issue().withSubject("Test issue").withDescription("New test issue"); int issueId = app.rest().createIssue(newIssue); Set<Issue> newIssues = app.rest().getIssues(); oldIssues.add(newIssue.withId(issueId)); assertEquals(newIssues, oldIssues); } @Test public void testGetIssueId() throws IOException { Set<Issue> allIssues = app.rest().getIssues(); for (Issue issue : allIssues) { System.out.println(issue.getId()); } } @Test public void testGetAllIssue() throws IOException { Set<Issue> issues = app.rest().getIssues(); for (Issue issue : issues) { System.out.println(issue.toString()); } } }
3e069b718bedd9a4b124acac8ecd1783d5295fdf
1,615
java
Java
app/src/main/java/com/v41/tp3mobile/DeckManagementActivity.java
JonathanRN/TP3Mobile
b97321b41cb42051e866a357a7cd1743ee17098d
[ "MIT" ]
null
null
null
app/src/main/java/com/v41/tp3mobile/DeckManagementActivity.java
JonathanRN/TP3Mobile
b97321b41cb42051e866a357a7cd1743ee17098d
[ "MIT" ]
null
null
null
app/src/main/java/com/v41/tp3mobile/DeckManagementActivity.java
JonathanRN/TP3Mobile
b97321b41cb42051e866a357a7cd1743ee17098d
[ "MIT" ]
null
null
null
29.363636
83
0.686068
2,815
package com.v41.tp3mobile; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.ImageView; import android.widget.Toast; import java.util.LinkedList; import java.util.List; /** * Created by Jo on 2018-04-24. */ public class DeckManagementActivity extends AppCompatActivity { private ImageView imageView; private ImageView imageView2; private ImageView imageView3; private ImageView imageView4; private ImageView imageView5; private List<ImageView> imageViews; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.deck_management); imageView = findViewById(R.id.imageView); imageView2 = findViewById(R.id.imageView2); imageView3 = findViewById(R.id.imageView4); imageView4 = findViewById(R.id.imageView4); imageView5 = findViewById(R.id.imageView2); imageViews = new LinkedList<>(); imageViews.add(imageView); imageViews.add(imageView2); imageViews.add(imageView3); imageViews.add(imageView4); imageViews.add(imageView5); } public void onClickImageView(View view) { if (view.getId() == R.id.imageView) { Toast.makeText(this, "imageView 1 pressed", Toast.LENGTH_SHORT).show(); } else if (view.getId() == R.id.imageView2) { Toast.makeText(this, "imageView 2 pressed", Toast.LENGTH_SHORT).show(); } } }
3e069bdb157fd0cdc372f78ab18f486dd7ed84af
2,681
java
Java
auth/auth-service/src/main/java/com/kuartz/api/auth/entity/query/CompanyEntityQuery.java
kutay-celebi/oss-issue-tracker
d1b4d31807c633d2c37d617dcaf0e188e792bd27
[ "Apache-2.0" ]
null
null
null
auth/auth-service/src/main/java/com/kuartz/api/auth/entity/query/CompanyEntityQuery.java
kutay-celebi/oss-issue-tracker
d1b4d31807c633d2c37d617dcaf0e188e792bd27
[ "Apache-2.0" ]
54
2020-06-15T10:09:33.000Z
2020-08-15T23:00:39.000Z
auth/auth-service/src/main/java/com/kuartz/api/auth/entity/query/CompanyEntityQuery.java
kutay-celebi/oss-issue-tracker
d1b4d31807c633d2c37d617dcaf0e188e792bd27
[ "Apache-2.0" ]
null
null
null
33.098765
148
0.754196
2,816
package com.kuartz.api.auth.entity.query; import com.kuartz.api.auth.entity.CompanyEntity; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; import com.querydsl.core.types.dsl.BooleanPath; import com.querydsl.core.types.dsl.DateTimePath; import com.querydsl.core.types.dsl.EntityPathBase; import com.querydsl.core.types.dsl.NumberPath; import com.querydsl.core.types.dsl.PathInits; import com.querydsl.core.types.dsl.StringPath; import javax.annotation.Generated; import static com.querydsl.core.types.PathMetadataFactory.forVariable; /** * CompanyEntityQuery is a Querydsl query type for CompanyEntity */ @Generated("com.querydsl.codegen.EntitySerializer") public class CompanyEntityQuery extends EntityPathBase<CompanyEntity> { private static final long serialVersionUID = 1691326043L; private static final PathInits INITS = PathInits.DIRECT2; public static final CompanyEntityQuery companyEntity = new CompanyEntityQuery("companyEntity"); public final com.kuartz.core.data.jpa.entity.query.KuartzEntityQuery _super = new com.kuartz.core.data.jpa.entity.query.KuartzEntityQuery(this); public final ContactEntityQuery contact; public final StringPath country = createString("country"); //inherited public final DateTimePath<java.util.Date> createdAt = _super.createdAt; //inherited public final DateTimePath<java.util.Date> deletedAt = _super.deletedAt; //inherited public final NumberPath<Long> id = _super.id; //inherited public final BooleanPath isDeleted = _super.isDeleted; public final StringPath name = createString("name"); public final StringPath shortName = createString("shortName"); //inherited public final DateTimePath<java.util.Date> updatedAt = _super.updatedAt; //inherited public final StringPath uuid = _super.uuid; public CompanyEntityQuery(String variable) { this(CompanyEntity.class, forVariable(variable), INITS); } public CompanyEntityQuery(Path<? extends CompanyEntity> path) { this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); } public CompanyEntityQuery(PathMetadata metadata) { this(metadata, PathInits.getFor(metadata, INITS)); } public CompanyEntityQuery(PathMetadata metadata, PathInits inits) { this(CompanyEntity.class, metadata, inits); } public CompanyEntityQuery(Class<? extends CompanyEntity> type, PathMetadata metadata, PathInits inits) { super(type, metadata, inits); this.contact = inits.isInitialized("contact") ? new ContactEntityQuery(forProperty("contact")) : null; } }