blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
132 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
28 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
352
4163fcdadf65e7f3a52b7af2151f1ef10164bd2b
0fcec430f4113a6c56744b2d9d53577cee8b6ce6
/src/main/java/com/tugos/dst/admin/service/SettingService.java
86f7dad0a0f7726d49effcc25f149544f6b68b5e
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
non-one/dst-admin
b66cc8f0e0f11512225fa4e652ee1c5e06b31a30
8f0bb998767c683fb7b090a3eb1e170b3f9274c5
refs/heads/master
2023-09-02T09:36:07.834048
2021-11-16T01:34:54
2021-11-16T01:34:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
19,706
java
package com.tugos.dst.admin.service; import com.tugos.dst.admin.common.ResultVO; import com.tugos.dst.admin.config.I18nResourcesConfig; import com.tugos.dst.admin.enums.SettingTypeEnum; import com.tugos.dst.admin.enums.StartTypeEnum; import com.tugos.dst.admin.utils.DstConfigData; import com.tugos.dst.admin.utils.DstConstant; import com.tugos.dst.admin.utils.FileUtils; import com.tugos.dst.admin.utils.filter.SensitiveFilter; import com.tugos.dst.admin.vo.GameConfigVO; import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.stereotype.Service; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Locale; /** * @author qinming * @date 2020-05-16 * <p> 房间设置服务 </p> */ @Service @Slf4j public class SettingService { private HomeService homeService; @Value("${dst.filter.sensitive:true}") private Boolean filterFlag; @Value("${dst.max.snapshots:6}") private String maxSnapshots; @Value("${dst.master.port:10888}") private String masterPort; @Value("${dst.ground.port:10999}") private String groundPort; @Value("${dst.caves.port:10998}") private String cavesPort; /** * 保存戏设置 如果type为2 会启动新游戏 * * @param vo 信息 */ public ResultVO<String> saveConfig(GameConfigVO vo) throws Exception { this.filterSensitiveWords(vo); if (!this.checkConfigIsExists()) { return ResultVO.fail(I18nResourcesConfig.getMessage("tip.player.config.not.exist") + ":" + DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH); } //创建地面和洞穴的ini配置文件 this.createMasterServerIni(); this.createCavesServerIni(); //创建房间配置 this.createCluster(vo); //创建token配置 this.createToken(vo.getToken().trim()); //创建地面世界设置 this.createMasterMap(vo.getMasterMapData()); //创建洞穴世界设置 this.createCavesMap(vo.getCavesMapData()); //创建mod设置 this.createMod(vo.getModData()); if (SettingTypeEnum.START_GAME.type.equals(vo.getType())) { //启动新游戏 homeService.delRecord(); homeService.start(StartTypeEnum.START_ALL.type); } if (SettingTypeEnum.SAVE_RESTART.type.equals(vo.getType())){ homeService.start(StartTypeEnum.START_ALL.type); } return ResultVO.success(); } /** * 监测配置文件文件夹是否存在 * * @return true存在 */ private boolean checkConfigIsExists() { String filePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH; File file = new File(filePath); return file.exists(); } /** * 读取游戏配置 * * @return token配置不存在是返回null */ public GameConfigVO getConfig() throws Exception { if (!this.checkTokenIsExists()) { return null; } GameConfigVO gameConfigVO = new GameConfigVO(); String token = this.getToken(); gameConfigVO.setToken(token); List<String> clusterData = this.getClusterData(); if (CollectionUtils.isNotEmpty(clusterData)) { for (String e : clusterData) { if (StringUtils.isBlank(e)) { continue; } if (e.contains("game_mode")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setGameMode(split[1].trim()); } } if (e.contains("max_players")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setMaxPlayers(Integer.valueOf(split[1].trim())); } } if (e.contains("pvp")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setPvp(Boolean.valueOf(split[1].trim())); } } if (e.contains("cluster_intention")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setClusterIntention(split[1].trim()); } } if (e.contains("cluster_password")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setClusterPassword(split[1].trim()); } } if (e.contains("cluster_description")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setClusterDescription(split[1].trim()); } } if (e.contains("cluster_name")) { String[] split = e.split("="); if (StringUtils.isNotBlank(split[1])) { gameConfigVO.setClusterName(split[1].trim()); } } } } String masterMapData = this.getMasterMapData(); gameConfigVO.setMasterMapData(masterMapData); String cavesMapData = this.getCavesMapData(); gameConfigVO.setCavesMapData(cavesMapData); String modData = this.getModData(); gameConfigVO.setModData(modData); return gameConfigVO; } /** * 校验token文件是否已经存在 * * @return true 存在 */ private boolean checkTokenIsExists() { String filePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_CLUSTER_TOKEN; File file = new File(filePath); return file.exists(); } /** * 读取房间设置 * * @return 房间信息 */ public List<String> getClusterData() throws Exception { String filePath = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_CONFIG_PATH; List<String> configList = new ArrayList<>(); File file = new File(filePath); if (!file.exists()) { //不存在不管它 return configList; } BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8)); String tmp; //使用readLine方法,一次读一行 while ((tmp = br.readLine()) != null) { configList.add(tmp); } br.close(); return configList; } /** * 读取token设置 * * @return token */ public String getToken() throws Exception { String filePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_CLUSTER_TOKEN; return FileUtils.readFile(filePath); } /** * 生成地面 server.ini 端口号10998 * [NETWORK] * server_port = 10999 * * * [SHARD] * is_master = true * * * [ACCOUNT] * encode_user_path = true */ public void createMasterServerIni() throws Exception { String basePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH + DstConstant.SINGLE_SLASH + DstConstant.DST_MASTER; //创建地面设置的文件夹 FileUtils.mkdirs(basePath); String finalPath = basePath + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_SERVER_INI_NAME; log.info("生成地面 server.ini文件,{}", finalPath); List<String> ini = new ArrayList<>(); ini.add("[NETWORK]"); String groundPort = StringUtils.isNotBlank(DstConfigData.groundPort) ? DstConfigData.groundPort : this.groundPort; ini.add("server_port = " + groundPort); ini.add(""); ini.add(""); ini.add("[SHARD]"); ini.add("is_master = true"); ini.add(""); ini.add(""); ini.add("[ACCOUNT]"); ini.add("encode_user_path = true"); FileUtils.writeLineFile(finalPath, ini); } /** * 生成洞穴 server.ini 端口号:10999 * [SHARD] * is_master = true /false # 是否是 master 服务器,只能存在一个 true,其他全是 false * name = caves # 针对非 master 服务器的名称 * id = ??? # 随机生成,不用加入该属性 * <p> * [STEAM] * authentication_port = 8766 # Steam 用的端口,确保每个实例都不相同 * master_server_port = 27016 # Steam 用的端口,确保每个实例都不相同 * <p> * [NETWORK] * server_port = 10998 # 监听的 UDP 端口,只能介于 10998 - 11018 之间,确保每个实例都不相同 */ public void createCavesServerIni() throws Exception { String basePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH + "/" + DstConstant.DST_CAVES; //创建洞穴设置的文件夹 FileUtils.mkdirs(basePath); String finalPath = basePath + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_SERVER_INI_NAME; log.info("生成洞穴 server.ini文件,{}", finalPath); List<String> ini = new ArrayList<>(); ini.add("[NETWORK]"); String cavesPort = StringUtils.isNotBlank(DstConfigData.cavesPort) ? DstConfigData.cavesPort : this.cavesPort; ini.add("server_port = " + cavesPort); ini.add(""); ini.add(""); ini.add("[SHARD]"); ini.add("is_master = false"); ini.add("name = Caves"); ini.add("id = 10010"); ini.add(""); ini.add(""); ini.add("[ACCOUNT]"); ini.add("encode_user_path = true"); ini.add(""); ini.add(""); ini.add("[STEAM]"); ini.add("authentication_port = 8766"); ini.add("master_server_port = 27016"); FileUtils.writeLineFile(finalPath, ini); } /** * 生成cluster_token.txt 文件 */ private void createToken(String token) throws Exception { String filePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_CLUSTER_TOKEN; log.info("生成cluster_token.txt 文件,{}", filePath); FileUtils.writeFile(filePath, token); } /** * 生成游戏配置文件 cluster.ini * 位置:/home/ubuntu/.klei/DoNotStarveTogether/MyDediServer * [MISC] * max_snapshots = 6 # 最大快照数,决定了可回滚的天数 * console_enabled = true # 是否开启控制台 * <p> * [SHARD] * shard_enabled = true # 服务器共享,要开启洞穴服务器的必须启用 * bind_ip = 127.0.0.1 # 服务器监听的地址,当所有实例都运行在同一台机器时,可填写 127.0.0.1,会被 server .ini 覆盖 * master_ip = 127.0.0.1 # master 服务器的 IP,针对非 master 服务器,若与 master 服务器运行在同一台机器时,可填写 127.0.0.1,会被 server.ini 覆盖 * master_port = 10888 # 监听 master 服务器的 UDP 端口,所有连接至 master 服务器的非 master 服务器必须相同 * cluster_key = dst # 连接密码,每台服务器必须相同,会被 server.ini 覆盖 * <p> * [STEAM] * steam_group_only = false # 只允许某 Steam 组的成员加入 * steam_group_id = 0 # 指定某个 Steam 组,填写组 ID * steam_group_admins = false # 开启后,Steam 组的管理员拥有服务器的管理权限 * <p> * [NETWORK] * offline_server = false # 离线服务器,只有局域网用户能加入,并且所有依赖于 Steam 的任何功能都无效,比如说饰品掉落 * tick_rate = 15 # 每秒通信次数,越高游戏体验越好,但是会加大服务器负担 * whitelist_slots = 0 # 为白名单用户保留的游戏位 * cluster_password = # 游戏密码,不设置表示无密码 * cluster_name = ttionya test # 游戏房间名称 * cluster_description = description # 游戏房间描述 * lan_only_cluster = false # 局域网游戏 * cluster_intention = madness # 游戏偏好,可选 cooperative, competitive, social, or madness,随便设置 * autosaver_enabled = true # 自动保存 * <p> * [GAMEPLAY] * max_players = 16 # 最大游戏人数 * pvp = true # 能不能攻击其他玩家,能不能给其他玩家喂屎 * game_mode = survival # 游戏模式,可选 survival, endless or wilderness,与玩家死亡后的负面影响有关 * pause_when_empty = false # 没人服务器暂停,刷天数必备 * vote_kick_enabled = false # 投票踢人 */ private void createCluster(GameConfigVO vo) throws Exception { String filePath = DstConstant.ROOT_PATH + DstConstant.DST_USER_GAME_CONFG_PATH + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_CLUSTER_INI_NAME; log.info("生成游戏配置文件 cluster.ini文件,{}", filePath); LinkedList<String> list = new LinkedList<>(); list.add("[GAMEPLAY]"); list.add("game_mode = " + vo.getGameMode()); list.add("max_players = " + vo.getMaxPlayers()); list.add("pvp = " + vo.getPvp()); list.add("pause_when_empty = true"); list.add(""); list.add(""); list.add("[NETWORK]"); list.add("lan_only_cluster = false"); list.add("cluster_intention = " + vo.getClusterIntention()); String clusterPassword = vo.getClusterPassword(); if (StringUtils.isNotBlank(clusterPassword)) { //密码存在 clusterPassword = clusterPassword.trim(); list.add("cluster_password = " + clusterPassword); } else { list.add("cluster_password = "); } String clusterDescription = vo.getClusterDescription(); if (StringUtils.isNotBlank(clusterDescription)) { //密码存在 clusterDescription = clusterDescription.trim(); list.add("cluster_description = " + clusterDescription); } else { list.add("cluster_description = "); } list.add("cluster_name = " + vo.getClusterName()); list.add("offline_cluster = false"); //根据环境设置语言 Locale locale = LocaleContextHolder.getLocale(); list.add("cluster_language = " + locale.getLanguage()); list.add(""); list.add("[MISC]"); list.add("console_enabled = true"); list.add("max_snapshots = " + maxSnapshots); list.add(""); list.add(""); list.add("[SHARD]"); list.add("shard_enabled = true"); list.add("bind_ip = 127.0.0.1"); list.add("master_ip = 127.0.0.1"); String masterPort = StringUtils.isNotBlank(DstConfigData.masterPort) ? DstConfigData.masterPort : this.masterPort; list.add("master_port = " + masterPort); list.add("cluster_key = defaultPass"); StringBuffer sb = new StringBuffer(); list.forEach(e -> sb.append(e).append("\n")); FileUtils.writeFile(filePath, sb.toString()); } /** * 过滤敏感词 */ private GameConfigVO filterSensitiveWords(GameConfigVO vo) { if (!filterFlag) { return vo; } try { SensitiveFilter sensitiveFilter = SensitiveFilter.DEFAULT; if (StringUtils.isNotBlank(vo.getClusterName())) { String filter = sensitiveFilter.filter(vo.getClusterName(), '*'); vo.setClusterName(filter); } if (StringUtils.isNotBlank(vo.getClusterDescription())) { String filter = sensitiveFilter.filter(vo.getClusterDescription(), '*'); vo.setClusterDescription(filter); } } catch (Exception e) { log.error("过滤敏感词错误:", e); vo.setClusterName("饥荒世界"); vo.setClusterDescription(""); } return vo; } /** * 读取mod设置 */ public String getModData() throws Exception { String filePath = DstConstant.ROOT_PATH + DstConstant.SINGLE_SLASH + DstConstant.DST_USER_GAME_MASTER_MOD_PATH; return FileUtils.readFile(filePath); } /** * 读取地面世界设置 */ public String getMasterMapData() throws Exception { String filePath = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_MASTER_MAP_PATH; return FileUtils.readFile(filePath); } /** * 读取洞穴世界设置 */ public String getCavesMapData() throws Exception { String filePath = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_CAVES_MAP_PATH; return FileUtils.readFile(filePath); } /** * 将mod添加到地面和洞穴中 * * @param data mod设置 */ public void createMod(String data) throws Exception { String masterModeFile = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_MASTER_MOD_PATH; String cavesModeFile = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_CAVES_MOD_PATH; if (StringUtils.isNotBlank(data)) { FileUtils.writeFile(masterModeFile, data); FileUtils.writeFile(cavesModeFile, data); } else { //置空 FileUtils.writeFile(masterModeFile, ""); FileUtils.writeFile(cavesModeFile, ""); } } /** * 将地面世界设置添加到指定位置 * * @param data 地面设置 */ public void createMasterMap(String data) throws Exception { String filePath = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_MASTER_MAP_PATH; if (StringUtils.isNotBlank(data)) { FileUtils.writeFile(filePath, data); } else { //置空 FileUtils.writeFile(filePath, ""); } } /** * 将洞穴设置添加到指定位置 * * @param data 洞穴设置 */ public void createCavesMap(String data) throws Exception { String filePath = DstConstant.ROOT_PATH + "/" + DstConstant.DST_USER_GAME_CAVES_MAP_PATH; if (StringUtils.isNotBlank(data)) { FileUtils.writeFile(filePath, data); } else { //置空 FileUtils.writeFile(filePath, ""); } } @Autowired public void setHomeService(HomeService homeService) { this.homeService = homeService; } }
[ "1275737636@qq.com" ]
1275737636@qq.com
dbfb813c6ea895ff975b0c9cc286faac99d98e0f
916d1050a5fbc17cbc8265f4dd1ba3f83c752b8c
/LibraryDao.java
3c7752c9b127bae30758b3a40ac253891615024e
[]
no_license
CrazeWorker/FIR
ccb997b8ff0bfdb4895a96702d7da62bab2bffa5
7b099f2d4bde133a6ce640f835dd26a2a503e685
refs/heads/master
2022-12-23T19:00:42.818743
2019-06-01T07:32:37
2019-06-01T07:32:37
148,713,972
1
0
null
2022-12-16T11:34:09
2018-09-14T00:30:12
JavaScript
GB18030
Java
false
false
291
java
package Day_6_HomeWork; public interface LibraryDao { // 显示所有图书 void check(); // 添加图书 void add(); // 删除图书 void delete(); // 借出图书 void borrow(); // 归还图书 void giveBack(); // 展示界面 void show(); // 功能選擇 void useTool(); }
[ "43256115+CrazeWorker@users.noreply.github.com" ]
43256115+CrazeWorker@users.noreply.github.com
864440e89c4661ee56da00c6e13a672c1fdb1407
0ad159b0e9d720340733c7fba36914d86eb40676
/app/src/main/java/gamejam/spooked/com/spooked/PageAdapter.java
13fbf7b11b893b11f74e354a34a9cce5fa7c5412
[]
no_license
BredeFK/Spooked
5dfa99a338ac278591e6321e97ddf90c44c999b3
9df5f8d69d58961a58753f0835aad8b310ab5e18
refs/heads/master
2021-06-16T11:24:15.044761
2021-02-18T13:44:37
2021-02-18T13:44:37
148,821,130
0
0
null
null
null
null
UTF-8
Java
false
false
1,034
java
package gamejam.spooked.com.spooked; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.ArrayList; import java.util.List; public class PageAdapter extends FragmentPagerAdapter { private static final String TAG = "PageAdapter"; private final List<Fragment> fragmentList = new ArrayList<>(); private final List<String> fragmentTitleList = new ArrayList<>(); public PageAdapter(FragmentManager fragmentManager) { super(fragmentManager); } public void addFragment(Fragment fragment, String title) { fragmentList.add(fragment); fragmentTitleList.add(title); } @Override public CharSequence getPageTitle(int position) { return fragmentTitleList.get(position); } @Override public Fragment getItem(int position) { return fragmentList.get(position); } @Override public int getCount() { return fragmentList.size(); } }
[ "bredefk@stud.ntnu.no" ]
bredefk@stud.ntnu.no
a19056dd72d7dcdb5f9ab3af24227ac38144e090
f57e62a877b04a24a6d2b4a6960b5a6f2c5b9cad
/src/main/java/com/laonbud/feeltering/extract/urlinfo/ExtractTextnImage.java
1baf1f46d5b9c0777101721ee9e5583c5dedeaf4
[]
no_license
junya906s1/ExtractUrlInfo
51ba32692856aad3f433795c75bb4ffc9a740d1f
56502909c353632290216a2726581c3cea7866af
refs/heads/master
2021-01-01T03:59:24.523081
2016-04-27T04:51:45
2016-04-27T04:51:45
57,186,553
0
0
null
null
null
null
UTF-8
Java
false
false
3,796
java
package com.laonbud.feeltering.extract.urlinfo; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; /** * @author s1 * extract the text and image(depend on the text). * 2016_04_26 */ public class ExtractTextnImage { private Elements divs = new Elements(); private int longestNode; private String extractedTEXT = new String(); private String extractedIMAGE = new String(); private Element IMAGEfromSiblings = null; private Element IMAGEfromChildren = null; // extract the Text & Image public String extractTEXT(Document _doc){ divs = _doc.getElementsContainingOwnText(" "); longestNode = 0; for(Element div : divs){ if(div.hasText()){ if((div.text().length() + div.siblingElements().text().length()) > longestNode){ longestNode = div.text().length() + div.siblingElements().text().length(); // extract text extractedTEXT = div.parent().children().text(); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // extract img elements of siblings for(Element img : div.siblingElements().select("img")){ // 본문을 포함한 div의 형제노드에서 img가 있는 것을 찾음 if((img.attr("width") != "") && (img.attr("width").contains("%") != true)){ // img tag의 width 값이 없거나 %가 들어간 것 제외 (세번째 방식에서 처리할 것) String temp = img.attr("width").replace("px", ""); // img tag의 width 값에 px가 있으면 없앰 if(Integer.parseInt(temp) >= 200){ // width가 200이상인 img를 IMAGEfromSiblings에 저장 IMAGEfromSiblings = img.select("img").first(); // (밑에 extractIMAGE(Document _doc)에서 사용할 것) break; }else if(Integer.parseInt(temp) >= 150){ // width가 200이상이 없을 때 150 이상인 것을 찾고 img를 IMAGEfromSiblings에 저장 IMAGEfromSiblings = img.select("img").first(); break; } } // %를 포함한 것 우선 그냥 제외 (3번째 방법에서 찾을 수도 있으니) //else if((img.attr("width") != "") && (img.attr("width").contains("%") == true)){ // IMAGEfromSiblings = img.select("img"); } // extract img elements of children for(Element img : div.children().select("img")){ if((img.attr("width") != "") && (img.attr("width").contains("%") != true)){ String temp = img.attr("width").replace("px", ""); if(Integer.parseInt(temp) >= 200){ // width가 200이상인 img를 IMAGEfromChildre에 저장 IMAGEfromChildren = img.select("img").first(); // (밑에 extractIMAGE(Document _doc)에서 사용할 것) break; }else if(Integer.parseInt(temp) >= 150){ // width가 200이상이 없을 때 150 이상인 것을 찾고 img를 IMAGEfromChildre에 저장 IMAGEfromChildren = img.select("img").first(); break; } } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// } } } return extractedTEXT; } // if there is no image in meta data, call the Image // have to use after extractTEXT()!!!!!! public String extractIMAGE(Document _doc){ if(IMAGEfromSiblings != null){ extractedIMAGE = IMAGEfromSiblings.attr("abs:src"); //System.out.println("image from sibling node"); return extractedIMAGE; }else if(IMAGEfromSiblings == null && IMAGEfromChildren != null){ extractedIMAGE = IMAGEfromChildren.attr("abs:src"); //System.out.println("image from chidren node"); return extractedIMAGE; } return null; } }
[ "junya906@laonbud.com" ]
junya906@laonbud.com
74a140521ed3ee0cc8330b34b9d6324c99332ac8
2bc551f9c2ecb57ec0cb93ad18d3ce0bafbddb34
/mybatis/simple/src/main/java/test/model/StatusByAccount.java
c71397e9c377ddee052182f21ebf83ebe109c0d7
[]
no_license
YiboXu/JavaLearning
c42091d6ca115826c00aad2565d9d0f29b1f5f68
97b4769ebbe096e0ab07acb6889fb177e2ca5abe
refs/heads/master
2022-10-27T23:47:54.637565
2020-06-16T09:12:09
2020-06-16T09:12:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,831
java
package test.model; /** * * This class was generated by MyBatis Generator. * This class corresponds to the database table status_by_account */ public class StatusByAccount { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column status_by_account.USER * * @mbg.generated */ private String user; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column status_by_account.HOST * * @mbg.generated */ private String host; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column status_by_account.VARIABLE_NAME * * @mbg.generated */ private String variableName; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column status_by_account.VARIABLE_VALUE * * @mbg.generated */ private String variableValue; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column status_by_account.USER * * @return the value of status_by_account.USER * * @mbg.generated */ public String getUser() { return user; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column status_by_account.USER * * @param user the value for status_by_account.USER * * @mbg.generated */ public void setUser(String user) { this.user = user == null ? null : user.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column status_by_account.HOST * * @return the value of status_by_account.HOST * * @mbg.generated */ public String getHost() { return host; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column status_by_account.HOST * * @param host the value for status_by_account.HOST * * @mbg.generated */ public void setHost(String host) { this.host = host == null ? null : host.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column status_by_account.VARIABLE_NAME * * @return the value of status_by_account.VARIABLE_NAME * * @mbg.generated */ public String getVariableName() { return variableName; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column status_by_account.VARIABLE_NAME * * @param variableName the value for status_by_account.VARIABLE_NAME * * @mbg.generated */ public void setVariableName(String variableName) { this.variableName = variableName == null ? null : variableName.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column status_by_account.VARIABLE_VALUE * * @return the value of status_by_account.VARIABLE_VALUE * * @mbg.generated */ public String getVariableValue() { return variableValue; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column status_by_account.VARIABLE_VALUE * * @param variableValue the value for status_by_account.VARIABLE_VALUE * * @mbg.generated */ public void setVariableValue(String variableValue) { this.variableValue = variableValue == null ? null : variableValue.trim(); } }
[ "billtt@163.com" ]
billtt@163.com
bc3d220c64137775c9a656eb069410bd61ff2c13
26b36c18fbfe18d10fbeefabc74f8285265aff8c
/web/src/main/java/com/qq/tars/exception/DiskFullException.java
56695d9ae9acf3dc97175f7fb02695aed7ae4d9c
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSL-1.0", "Apache-2.0" ]
permissive
zhenshangxin/Tars
bb19473e083a1a3111cd8f2d517ac714a869b61f
bc0d89ac9df0d91136e1df444c70eba6220a8cb7
refs/heads/master
2021-11-24T13:37:18.035795
2018-01-26T02:08:40
2018-01-26T02:08:40
118,891,969
1
0
NOASSERTION
2021-11-02T10:19:25
2018-01-25T09:29:24
C++
UTF-8
Java
false
false
1,230
java
/* * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * * 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.qq.tars.exception; import com.qq.common.CodeEnableException; public class DiskFullException extends CodeEnableException { public DiskFullException(Throwable cause) { super(cause); } public DiskFullException() { } public DiskFullException(String message) { super(message); } public DiskFullException(String message, Throwable cause) { super(message, cause); } @Override public String getCode() { return "10010000"; } }
[ "suziliu@tencent.com" ]
suziliu@tencent.com
6554e181e78075c1ec4b12124c6e96e8cca924e8
954bd8c43237b879fdd659a0f4c207a6ec0da7ea
/java.labs/RetrieveData/src/main/java/de/mmx/etester/RetrieveData/wizardpage/ProjectPage.java
d0642d180426241e213ecec28f1d2355a84d8748
[]
no_license
bothmagic/marxenter-labs
5e85921ae5b964b9cd58c98602a0faf85be4264e
cf1040e4de8cf4fd13b95470d6846196e1c73ff4
refs/heads/master
2021-01-10T14:15:31.594790
2013-12-20T11:22:53
2013-12-20T11:22:53
46,557,821
2
0
null
null
null
null
UTF-8
Java
false
false
5,172
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package de.mmx.etester.RetrieveData.wizardpage; import de.mmx.etester.RetrieveData.etrest.LoadManager; import de.mmx.etester.RetrieveData.restdata.ETPackage; import de.mmx.etester.RetrieveData.restdata.Project; import de.mmx.etester.RetrieveData.restdata.Requirement; import java.util.ArrayList; import java.util.List; import javax.swing.ListSelectionModel; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.tree.TreePath; import org.ciscavate.cjwizard.WizardPage; import org.ciscavate.cjwizard.WizardSettings; /** * * @author marxma */ public class ProjectPage extends WizardPage { /** * Creates new form RequirementsPage */ public ProjectPage() { super("Anforderungen auswählen", "Anforderungen auswählen"); initComponents(); ttEtReq.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); } @Override public void updateSettings(WizardSettings settings) { super.updateSettings(settings); ArrayList<Requirement> reqs = new ArrayList<Requirement>(); int[] rows = ttEtReq.getSelectedRows(); for (int row : rows) { TreePath path = ttEtReq.getPathForRow(row); Object lastElem = path.getLastPathComponent(); if (lastElem instanceof Project) { for (ETPackage pkg: ((Project)lastElem).getReqPackage()) { collectReq(pkg, reqs); } } else if (lastElem instanceof ETPackage) { collectReq(((ETPackage)lastElem), reqs); } else if (lastElem instanceof Requirement) { collectReq(((Requirement)lastElem), reqs); } } settings.put("requirements", reqs); } @Override public void rendering(List<WizardPage> path, WizardSettings settings) { super.rendering(path, settings); setNextEnabled(false); ttEtReq.setTreeTableModel(new ProjectTreeTableModel()); ttEtReq.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { setNextEnabled(ttEtReq.getSelectedRowCount() > 0); } }); } private void collectReq(ETPackage eTPackage, List<Requirement> collectedList) { LoadManager.getInstance().load(eTPackage, false); for (ETPackage pgk: eTPackage.getChildren()) { collectReq(pgk, collectedList); } for (Requirement r : eTPackage.getRequirements()) { collectReq(r, collectedList); } } private void collectReq(Requirement req, List<Requirement> collectedList) { collectedList.add(req); LoadManager.getInstance().load(req, false); for (Requirement r : req.getChildren()) { collectReq(r, collectedList); } } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); ttEtReq = new org.jdesktop.swingx.JXTreeTable(); jLabel3 = new javax.swing.JLabel(); jScrollPane1.setViewportView(ttEtReq); jLabel3.setText("Enterprise Tester Requirements"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3) .addGap(0, 293, Short.MAX_VALUE)) .addComponent(jScrollPane1)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel3; private javax.swing.JScrollPane jScrollPane1; private org.jdesktop.swingx.JXTreeTable ttEtReq; // End of variables declaration//GEN-END:variables }
[ "markus.taubert@c8aec436-628a-29fb-4c76-4f2700b0ca23" ]
markus.taubert@c8aec436-628a-29fb-4c76-4f2700b0ca23
51b161f94c659601bb58ffb7526942206dabf234
6583bf807465dc409489316e01c0e066138f5fa6
/src/test/java/com/delivery/customer/TestEventListener.java
d6f2306b0e599bcacdd35ee75000dd52cf3250f0
[]
no_license
KurtTaylan/test-customer
2febb1e8612c539694fc5d952509d1d38242cc3f
f080c9c4b3e529a61c14be1503b00bff525b10af
refs/heads/master
2022-11-23T18:50:24.775622
2020-08-05T17:00:21
2020-08-05T17:00:21
285,353,759
0
0
null
null
null
null
UTF-8
Java
false
false
354
java
package com.delivery.customer; import com.delivery.customer.model.event.BaseEvent; import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; @Component public class TestEventListener implements ApplicationListener<BaseEvent> { @Override public void onApplicationEvent(BaseEvent event) { } }
[ "taylankurt34@gmail.com" ]
taylankurt34@gmail.com
8156a6572a3059a743c36127d0dc2652c7f4696d
3fbf8ed9ecf41f2b756802e28ad5543f72e447c6
/backend/isspol/isspol-persistence/isspol-persistence-api/src/main/java/ec/org/isspol/persistence/dao/security/impl/EstructuraOrganizacionalDaoImpl.java
1e556bfcb994c65bfc43ac84d712ef9201d9b0bc
[]
no_license
carlosgitub/gity
9d710d52b1118a7454817d5538022476374e4d88
3d32af9e9337e4c6a9bd7a9e14d2c0b091a0b3cc
refs/heads/master
2021-01-20T08:53:51.345806
2017-05-04T23:15:07
2017-05-04T23:15:07
90,196,572
0
0
null
null
null
null
UTF-8
Java
false
false
563
java
package ec.org.isspol.persistence.dao.security.impl; import ec.org.isspol.persistence.dao.common.impl.GenericDAOImpl; import ec.org.isspol.persistence.dao.security.EstructuraOrganizacionalDao; import ec.org.isspol.persistence.entities.security.EstructuraOrganizacional; /** * Created by mauchilan on 21/3/17. */ public class EstructuraOrganizacionalDaoImpl extends GenericDAOImpl<EstructuraOrganizacional, Integer> implements EstructuraOrganizacionalDao { public EstructuraOrganizacionalDaoImpl() { super(EstructuraOrganizacional.class); } }
[ "mauricio.chilan@modinter.com.ec" ]
mauricio.chilan@modinter.com.ec
43b478088349ffd4d4783db8387dc3e38e07265c
df2bfa30e680821335813f5b1c2522d7389d1d70
/jpegcompress/src/main/java/com/medivh/libjepgturbo/jepgcompress/utils/BitmapUtil.java
5b29a452cba3f987131e96fa3c67e39f8c348cef
[]
no_license
qtly/libjpegCompress
ade67f1d158328f19e222c7634a7b38f1c32b668
410b73d807fb16ca9e6e8ee7b20b1fab7d4e6336
refs/heads/master
2020-06-26T23:44:09.399423
2018-04-24T06:49:40
2018-04-24T06:49:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,963
java
package com.medivh.libjepgturbo.jepgcompress.utils; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Rect; import android.media.ExifInterface; import com.medivh.libjepgturbo.jepgcompress.CompressCore; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; /** * 图片处理工具类 * @author medivh * @version V1.0.0 */ public class BitmapUtil { //默认压缩率 private final static int DEFAULT_QUALITY = 95; /** * JNI基本压缩 * @param bit bitmap对象 * @param fileName 指定保存目录名 * @param optimize 是否采用哈弗曼表数据计算 品质相差5-10倍 */ public static String compressBitmap(Bitmap bit, String fileName, boolean optimize) { return CompressCore.saveBitmap(bit, DEFAULT_QUALITY, fileName, optimize); } /** * 通过JNI图片压缩把Bitmap保存到指定目录 * @param image bitmap对象 * @param filePath 要保存的指定目录 * @param maxSize 最大图片大小 150KB */ public static String compressBitmap(Bitmap image, String filePath, int maxSize) { // 获取尺寸压缩倍数 int ratio = getRatioSize(image.getWidth(),image.getHeight()); // 压缩Bitmap到对应尺寸 Bitmap result = Bitmap.createBitmap(image.getWidth() / ratio,image.getHeight() / ratio, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(result); Rect rect = new Rect(0, 0, image.getWidth() / ratio, image.getHeight() / ratio); canvas.drawBitmap(image,null,rect,null); ByteArrayOutputStream baos = new ByteArrayOutputStream(); // 质量压缩方法,这里100表示不压缩,把压缩后的数据存放到baos中 int options = 100; result.compress(Bitmap.CompressFormat.JPEG, options, baos); // 循环判断如果压缩后图片是否大于100kb,大于继续压缩 while (baos.toByteArray().length / 1024 > maxSize) { // 重置baos即清空baos baos.reset(); // 每次都减少10 options -= 10; // 这里压缩options%,把压缩后的数据存放到baos中 result.compress(Bitmap.CompressFormat.JPEG, options, baos); } // JNI保存图片到SD卡 这个关键 String resultStr = CompressCore.saveBitmap(result, options, filePath, true); // 释放Bitmap if (!result.isRecycled()) { result.recycle(); } return resultStr; } /** * 通过JNI图片压缩把Bitmap保存到指定目录 * @param curFilePath 当前图片文件地址 * @param targetFilePath 要保存的图片文件地址 * @param maxSize 最大图片大小 */ public static String compressBitmap(String curFilePath, String targetFilePath, int quality ,int maxSize) { //根据地址获取bitmap Bitmap result = getBitmapFromFile(curFilePath); ByteArrayOutputStream baos = new ByteArrayOutputStream(); // 质量压缩方法,这里100表示不压缩,把压缩后的数据存放到baos中 result.compress(Bitmap.CompressFormat.JPEG, quality, baos); // 循环判断如果压缩后图片是否大于100kb,大于继续压缩 while (baos.toByteArray().length / 1024 > maxSize) { // 重置baos即清空baos baos.reset(); // 每次都减少10 quality -= 10; // 这里压缩quality,把压缩后的数据存放到baos中 result.compress(Bitmap.CompressFormat.JPEG, quality, baos); } // JNI保存图片到SD卡 这个关键 String resultStr = CompressCore.saveBitmap(result, quality, targetFilePath, true); // 释放Bitmap if (!result.isRecycled()) { result.recycle(); } return resultStr; } /** * 计算缩放比 * @param bitWidth 当前图片宽度 * @param bitHeight 当前图片高度 * @return int 缩放比 */ private static int getRatioSize(int bitWidth, int bitHeight) { // 图片最大分辨率 int imageHeight = 1280; int imageWidth = 960; // 缩放比 int ratio = 1; // 缩放比,由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可 if (bitWidth > bitHeight && bitWidth > imageWidth) { // 如果图片宽度比高度大,以宽度为基准 ratio = bitWidth / imageWidth; } else if (bitWidth < bitHeight && bitHeight > imageHeight) { // 如果图片高度比宽度大,以高度为基准 ratio = bitHeight / imageHeight; } // 最小比率为1 if (ratio <= 0) { ratio = 1; } return ratio; } /** * 通过文件路径读获取Bitmap防止OOM以及解决图片旋转问题 * @param filePath 路径 * @return bitmap */ private static Bitmap getBitmapFromFile(String filePath){ BitmapFactory.Options newOpts = new BitmapFactory.Options(); //只读边,不读内容 newOpts.inJustDecodeBounds = true; BitmapFactory.decodeFile(filePath, newOpts); int w = newOpts.outWidth; int h = newOpts.outHeight; // 获取尺寸压缩倍数 newOpts.inSampleSize = getRatioSize(w,h); //读取所有内容 newOpts.inJustDecodeBounds = false; newOpts.inDither = false; newOpts.inPurgeable=true; newOpts.inInputShareable=true; newOpts.inTempStorage = new byte[32 * 1024]; Bitmap bitmap = null; File file = new File(filePath); FileInputStream fs = null; try { fs = new FileInputStream(file); } catch (FileNotFoundException e) { e.printStackTrace(); } try { if(fs!=null){ bitmap = BitmapFactory.decodeFileDescriptor(fs.getFD(),null,newOpts); //旋转图片 int photoDegree = readPictureDegree(filePath); if(photoDegree != 0){ Matrix matrix = new Matrix(); matrix.postRotate(photoDegree); // 创建新的图片 bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); } } } catch (IOException e) { e.printStackTrace(); } finally{ if(fs!=null) { try { fs.close(); } catch (IOException e) { e.printStackTrace(); } } } return bitmap; } /** * 读取图片属性:旋转的角度 * @param path 图片绝对路径 * @return degree旋转的角度 */ private static int readPictureDegree(String path) { int degree = 0; try { ExifInterface exifInterface = new ExifInterface(path); int orientation = exifInterface.getAttributeInt( ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); switch (orientation) { case ExifInterface.ORIENTATION_ROTATE_90: degree = 90; break; case ExifInterface.ORIENTATION_ROTATE_180: degree = 180; break; case ExifInterface.ORIENTATION_ROTATE_270: degree = 270; break; default: } } catch (IOException e) { e.printStackTrace(); } return degree; } }
[ "981324343@qq.com" ]
981324343@qq.com
0c07d0a2253df124c77504210493f3d440ff53f6
fd63f8ebb5a0b0430540e264657a34776f00c134
/oAuth2/基于jdbc访问的授权模式/hello-spring-security-oauth2/hello-spring-security-oauth2-resource/src/main/java/club/cfanlei/spring/security/oauth2/resource/controller/TbContentController.java
d6d11e97dd51c021df6a610e6628c02d99073d07
[]
no_license
cfanlei/NoteforMicroservices
c146614f23b2fa5e5c60ac78eaa9a7399bc6ddba
842b6c3f8593ae193d8f3a43df5e0e38557f7641
refs/heads/master
2021-03-01T08:27:33.046856
2020-11-16T03:44:11
2020-11-16T03:44:11
245,769,042
0
1
null
null
null
null
UTF-8
Java
false
false
944
java
package club.cfanlei.spring.security.oauth2.resource.controller; import club.cfanlei.spring.security.oauth2.resource.domain.TbContent; import club.cfanlei.spring.security.oauth2.resource.dto.ResponseResult; import club.cfanlei.spring.security.oauth2.resource.service.TbContentService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController public class TbContentController { @Autowired private TbContentService tbContentService; @GetMapping(value = "/") public ResponseResult<List<TbContent>> list() { List<TbContent> tbContents = tbContentService.selectAll(); return new ResponseResult<List<TbContent>>(HttpStatus.OK.value(), HttpStatus.OK.toString(), tbContents); } }
[ "cfanlei@126.com" ]
cfanlei@126.com
0b806b844e7a003efc5586e8137a5e66ab759dfc
1a4a84c726711f27e1cddd811685d9ec43fcfdf1
/app/src/test/java/com/github/dev/williamg/smackpoc/ExampleUnitTest.java
bfc6f60aa1bdc8c98e3e7a0efe58d827c762f285
[]
no_license
williamgdev/SmackSample
381e552f6eb834fef7e73ac95026a00dc3d61686
0d40d2560a2b0c4f582e666fc36dbe3c54cb66a1
refs/heads/master
2021-01-23T08:20:49.352224
2018-03-02T21:46:48
2018-03-02T21:46:48
86,500,926
0
0
null
null
null
null
UTF-8
Java
false
false
410
java
package com.github.dev.williamg.smackpoc; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "wgutierrez@Matans-MacBook-Air.local" ]
wgutierrez@Matans-MacBook-Air.local
ad6296e0646a447fa9a27e202b0ea7045ea02bf5
a5d1586973c8edcaddcde50eee732bd0652f4642
/netbro-cms/src/main/java/kr/co/d2net/dto/CategoryTbl_.java
dd06b6300a3a6ab4d57aa0a535bc645a71a2ffd5
[]
no_license
inviss/netbro
c0a3a875b0ea98cb7e44864c8944bc003f2fde79
2b266e41f74831724268ca56d3d244d65905c8db
refs/heads/master
2020-07-11T16:04:03.577998
2016-10-03T13:38:35
2016-10-03T13:38:35
74,000,941
0
1
null
null
null
null
UTF-8
Java
false
false
783
java
package kr.co.d2net.dto; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @StaticMetamodel(CategoryTbl.class) public class CategoryTbl_ { public static volatile SingularAttribute<CategoryTbl, Integer> categoryId; //카테고리ID public static volatile SingularAttribute<CategoryTbl, String> categoryNm; //카테고리명 public static volatile SingularAttribute<CategoryTbl, Integer> preParent; //직전노드 public static volatile SingularAttribute<CategoryTbl, String> depth; //깊이 public static volatile SingularAttribute<CategoryTbl, String> nodes; //상위카테고리부터 현제카테고리까지 public static volatile SingularAttribute<CategoryTbl, Integer> order; //카테고리 순번 }
[ "mskang0916@4846aee8-341f-0510-a8c2-a716f2a042e0" ]
mskang0916@4846aee8-341f-0510-a8c2-a716f2a042e0
cd63e6fdbfe61f351425b4335597cfc9ef345f51
bf6f285f618356b715b4aa1aae83ba8bf94c45a9
/android/app/src/main/java/com/igniterntsapp/MainApplication.java
0d902731e83a03305c5c4158449fb7ea446c8cec
[]
no_license
lwmouneyrac/sentry_ignite
463c44a5b6abc9325f123280ce72e3c494aa17b3
0bd15ff0b930c64449ab7ba5b0cbbf90579088df
refs/heads/master
2021-07-31T01:38:25.184786
2020-02-28T02:41:35
2020-02-28T02:41:35
243,662,925
0
0
null
null
null
null
UTF-8
Java
false
false
2,280
java
package com.igniterntsapp; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactApplication; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.soloader.SoLoader; import java.lang.reflect.InvocationTargetException; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List<ReactPackage> getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List<ReactPackage> packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); return packages; } @Override protected String getJSMainModuleName() { return "index"; } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); initializeFlipper(this); // Remove this line if you don't want Flipper enabled } /** * Loads Flipper in React Native templates. * * @param context */ private static void initializeFlipper(Context context) { if (BuildConfig.DEBUG) { try { /* We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ Class<?> aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); aClass.getMethod("initializeFlipper", Context.class).invoke(null, context); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } }
[ "jerome.mouneyrac@lotterywest.wa.gov.au" ]
jerome.mouneyrac@lotterywest.wa.gov.au
03affc465763d6513f5cd06c4f8055e16922bea5
e4bff8b3a8ce37a45aa91d960e107b0304eea909
/app/src/main/java/com/xan/abankdemo3/ui/login/LoginViewModel.java
14ec2ba63fcd0591256c222f2467e94f62366083
[]
no_license
TeamXan/AbankDemo3
7c3f1f5bc746db5b478c47f65504680983edde85
36596563d55d9282b8418cca4b35d3b7312ea5f6
refs/heads/master
2020-06-04T06:09:46.006050
2019-09-18T07:23:26
2019-09-18T07:23:26
191,899,913
0
0
null
null
null
null
UTF-8
Java
false
false
886
java
package com.xan.abankdemo3.ui.login; import android.arch.lifecycle.MutableLiveData; import com.xan.abankdemo3.base.BaseViewModel; import javax.inject.Inject; public class LoginViewModel extends BaseViewModel<LoginNavigator> { public MutableLiveData<String> username = new MutableLiveData<>(); public MutableLiveData<String> password = new MutableLiveData<>(); @Inject public LoginViewModel(){ } public MutableLiveData<String> getPassword(){ return password; } public void goLogin(){ //getNavigator().showToast(username.getValue(),password.getValue()); getNavigator().gotoUserListActivity(); } public void goRepo(){ getNavigator().gotoRepoListActivity(); } public String getU(){ return username.getValue(); } public String getP(){ return password.getValue(); } }
[ "eieikhaing2410@gmail.com" ]
eieikhaing2410@gmail.com
9104f013d5476812bcb7828cfbe2f2a45d76b995
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Lang/4/org/apache/commons/lang3/text/StrBuilder_append_808.java
42ca86ae8c92629d8b1f90eea24b2fe4c4510811
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
4,196
java
org apach common lang3 text build string constitu part provid flexibl power api string buffer stringbuff main differ string buffer stringbuff string builder stringbuild subclass direct access charact arrai addit method append separ appendwithsepar add arrai valu separ append pad appendpad add length pad charact append fix length appendfixedlength add fix width field builder char arrai tochararrai char getchar simpler wai rang charact arrai delet delet string replac search replac string left string leftstr string rightstr mid string midstr substr except builder string size clear empti isempti collect style api method view token astoken intern buffer sourc str token strtoken reader asread intern buffer sourc reader writer aswrit writer write directli intern buffer aim provid api mimic close string buffer stringbuff addit method note edg case invalid indic input alter individu method biggest output text 'null' control properti link set null text setnulltext string prior implement cloneabl implement clone method onward longer version str builder strbuilder char sequenc charsequ append serializ builder string append string builder code string valueof code param append enabl chain str builder strbuilder append append string valueof
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
8c857d829b165985a21e7020e8a9031bf597118d
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/avito/android/advert/item/contactbar/di/AdvertDetailsContactBarModule.java
b4eb0764f424e8a1793c2f9feab72f94d15deddd
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
2,669
java
package com.avito.android.advert.item.contactbar.di; import com.avito.android.advert.item.contactbar.AdvertDetailsContactBarBlueprint; import com.avito.android.advert.item.contactbar.AdvertDetailsContactBarItem; import com.avito.android.advert.item.contactbar.AdvertDetailsContactBarPresenter; import com.avito.android.advert.item.contactbar.AdvertDetailsContactBarPresenterImpl; import com.avito.android.advert.item.contactbar.AdvertDetailsContactBarView; import com.avito.android.di.PerFragment; import com.avito.konveyor.blueprint.ItemBlueprint; import dagger.Binds; import dagger.Module; import kotlin.Metadata; import org.jetbrains.annotations.NotNull; @Metadata(bv = {1, 0, 3}, d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\bg\u0018\u00002\u00020\u0001J\u0017\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H'¢\u0006\u0004\b\u0005\u0010\u0006J#\u0010\f\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u000b0\t2\u0006\u0010\b\u001a\u00020\u0007H'¢\u0006\u0004\b\f\u0010\r¨\u0006\u000e"}, d2 = {"Lcom/avito/android/advert/item/contactbar/di/AdvertDetailsContactBarModule;", "", "Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarPresenterImpl;", "presenter", "Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarPresenter;", "bindAdvertDetailsContactBarPresenter", "(Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarPresenterImpl;)Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarPresenter;", "Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarBlueprint;", "blueprint", "Lcom/avito/konveyor/blueprint/ItemBlueprint;", "Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarView;", "Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarItem;", "bindAdvertDetailsContactBarBlueprint", "(Lcom/avito/android/advert/item/contactbar/AdvertDetailsContactBarBlueprint;)Lcom/avito/konveyor/blueprint/ItemBlueprint;", "advert-details_release"}, k = 1, mv = {1, 4, 2}) @Module public interface AdvertDetailsContactBarModule { @Binds @NotNull @PerFragment ItemBlueprint<AdvertDetailsContactBarView, AdvertDetailsContactBarItem> bindAdvertDetailsContactBarBlueprint(@NotNull AdvertDetailsContactBarBlueprint advertDetailsContactBarBlueprint); @PerFragment @Binds @NotNull AdvertDetailsContactBarPresenter bindAdvertDetailsContactBarPresenter(@NotNull AdvertDetailsContactBarPresenterImpl advertDetailsContactBarPresenterImpl); }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
3ea713c78a11d1775d0665cabd52d7cd223fa0a5
4a435782d10e0eac3a3381ba84ac2c07cd390d10
/EfficientRater.java
e10072adff9f2e04e86020828f794b5dca6c22c0
[]
no_license
cechae/java-movie-recommender
76653140420ae1b92927db2c39a99650b4cf17b2
7b61ef6358604f86d89d8a9cabf9a909cf05b87a
refs/heads/master
2023-05-12T10:18:37.159590
2019-03-25T16:46:53
2019-03-25T16:46:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,298
java
/** * Write a description of EfficientRater here. * * @author (your name) * @version (a version number or a date) */ import java.util.*; public class EfficientRater implements Rater { private String myID; private HashMap<String, Rating> myMap; public EfficientRater(String id) { myID = id; myMap = new HashMap<String, Rating>(); } public void addRating(String item, double rating) { myMap.put(item, new Rating(item,rating)); } public boolean hasRating(String item) { return myMap.containsKey(item); } public String getID() { return myID; } public double getRating(String item) { /*for(int k=0; k < myRatings.size(); k++){ if (myRatings.get(k).getItem().equals(item)){ return myRatings.get(k).getValue(); } }*/ if (this.hasRating(item)){ return myMap.get(item).getValue(); } return -1; } public int numRatings() { return myMap.size(); } public ArrayList<String> getItemsRated() { ArrayList<String> list = new ArrayList<String>(); for (String id: myMap.keySet()){ list.add(myMap.get(id).getItem()); } return list; } }
[ "JennyChae@levy-ve500-0657.apn.wlan.upenn.edu" ]
JennyChae@levy-ve500-0657.apn.wlan.upenn.edu
f80b8b2fb4fc03e7bf78604d7a1a1e8e2458255a
edd03269302c9759806d4f85123ea7e5bccb9cbf
/core-java/src/test/java/org/baeldung/java/collections/CoreJavaCollectionsUnitTest.java
fb7bfe51a2750dcf4c1b6be4c6acd70adaad5e42
[]
no_license
susetech/tutorials
46291a2139b3098ec1d308942bc7d5b7d4094547
1ed7451225d578f223614870044246ee4dac38cb
refs/heads/master
2021-01-22T05:57:44.004033
2017-04-09T15:06:42
2017-04-09T15:06:42
81,725,936
2
0
null
2017-03-26T04:22:36
2017-02-12T12:57:55
XSLT
UTF-8
Java
false
false
2,260
java
package org.baeldung.java.collections; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.apache.commons.collections4.ListUtils; import org.junit.Test; import com.google.common.collect.ImmutableList; public class CoreJavaCollectionsUnitTest { // tests - @Test public final void givenUsingTheJdk_whenArrayListIsSynchronized_thenCorrect() { final List<String> list = new ArrayList<String>(Arrays.asList("one", "two", "three")); final List<String> synchronizedList = Collections.synchronizedList(list); System.out.println("Synchronized List is: " + synchronizedList); } @Test(expected = UnsupportedOperationException.class) public final void givenUsingTheJdk_whenUnmodifiableListIsCreatedFromOriginal_thenNoLongerModifiable() { final List<String> list = new ArrayList<String>(Arrays.asList("one", "two", "three")); final List<String> unmodifiableList = Collections.unmodifiableList(list); unmodifiableList.add("four"); } @Test(expected = UnsupportedOperationException.class) public final void givenUsingGuava_whenUnmodifiableListIsCreatedFromOriginal_thenNoLongerModifiable() { final List<String> list = new ArrayList<String>(Arrays.asList("one", "two", "three")); final List<String> unmodifiableList = ImmutableList.copyOf(list); unmodifiableList.add("four"); } @Test(expected = UnsupportedOperationException.class) public final void givenUsingGuavaBuilder_whenUnmodifiableListIsCreatedFromOriginal_thenNoLongerModifiable() { final List<String> list = new ArrayList<String>(Arrays.asList("one", "two", "three")); final ImmutableList<Object> unmodifiableList = ImmutableList.builder().addAll(list).build(); unmodifiableList.add("four"); } @Test(expected = UnsupportedOperationException.class) public final void givenUsingCommonsCollections_whenUnmodifiableListIsCreatedFromOriginal_thenNoLongerModifiable() { final List<String> list = new ArrayList<String>(Arrays.asList("one", "two", "three")); final List<String> unmodifiableList = ListUtils.unmodifiableList(list); unmodifiableList.add("four"); } }
[ "hanriseldon@gmail.com" ]
hanriseldon@gmail.com
0f85c4e0c2298f041f28491bc10a74c535179c0c
1e19187193bb9b60c6e14862bbc9e0cf9015fbb0
/HW_3_6.java
7c5b8fe1adbd6a7d17ca2c72ddace9b29e620751
[]
no_license
Bisu-tjdgus/Java
752ebbae4512de8058732b0a19ca910f0f879d37
e6ce7ebeaac42e8c8985586bc71b3adf3d7abd01
refs/heads/master
2023-05-07T23:39:08.327539
2021-05-19T08:53:43
2021-05-19T08:53:43
344,765,700
0
0
null
null
null
null
UTF-8
Java
false
false
543
java
import java.util.Scanner; public class HW_3_6 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("금액을 입력하시오>>"); int money= scanner.nextInt(); int [] unit = {50000, 10000, 1000, 500, 100, 50, 10, 1}; for(int i = 0; i<unit.length;i++){ if(money/unit[i]==0) continue; System.out.println(unit[i]+"원 짜리 : " + money/unit[i]+"개"); money= money - (money/unit[i] * unit[i]); } } }
[ "tjdgus726@naver.com" ]
tjdgus726@naver.com
4b76fb787030bb016b7ba2226cbdb9759d3cd5ab
aeb55a5d709534106573ac3e7c1e69add0209b20
/review/src/main/java/hotelreservation/external/OrderService.java
98e1c8ce028b1d505942ea7ca7a227ab6f0441db
[]
no_license
JiHye77/myhotel
1ad746dbaa18e3eec496a48a92fb35608f641a7d
351e70904879abc93bca50cbdf206ba32789ceb8
refs/heads/main
2023-06-16T09:09:27.302487
2021-07-09T03:59:13
2021-07-09T03:59:13
382,259,784
0
0
null
null
null
null
UTF-8
Java
false
false
665
java
package hotelreservation.external; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import java.util.Date; // @FeignClient(name="order", url="http://localhost:8081") @FeignClient(name="order", url="${feign.client.url.orderUrl}") public interface OrderService { @RequestMapping(method= RequestMethod.GET, path="/orders/checkOrder") public boolean checkOrder(@RequestParam("orderId") Long orderId); }
[ "hae8100@gmail.com" ]
hae8100@gmail.com
2f9675ddba90e265c57e583929dfcfc5239af555
e3b012194ec34f222c366e29a064f49d8254670f
/source/src/rs2/abyssalps/model/player/ActionHandler.java
95b737843290f4876e7180ec8f821349b709f540
[]
no_license
Rune-Status/Musi13-AbyssalRedux
0cc75837f95b155ca2f66f41871b4c7324a2284f
bc46c6c88360b48ebfa24760c8d4fcf5046ba8f2
refs/heads/master
2020-03-07T20:20:15.446222
2017-10-08T21:34:12
2017-10-08T21:34:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
24,043
java
package rs2.abyssalps.model.player; import rs2.Config; import rs2.Server; import rs2.abyssalps.content.doors.DoorsManager; import rs2.abyssalps.content.minigame.fightpits.FightPitsMinigame; import rs2.abyssalps.content.minigame.kraken.KrakenMinigame; import rs2.abyssalps.content.minigame.pestcontrol.PestControl; import rs2.abyssalps.content.minigame.warriorsguild.CyclopsMinigame; import rs2.abyssalps.content.minigame.zulrah.ZulrahMinigame; import rs2.abyssalps.content.skill.agility.AgilityAssistant; import rs2.abyssalps.content.skill.fishing.Fishing; import rs2.abyssalps.content.skill.magic.TeleportType; import rs2.abyssalps.content.skill.mining.Mining; import rs2.abyssalps.content.skill.mining.RockData; import rs2.abyssalps.content.skill.runecrafting.AltarTable; import rs2.abyssalps.content.skill.runecrafting.RiftTable; import rs2.abyssalps.content.skill.runecrafting.Runecrafting; import rs2.abyssalps.content.skill.slayer.Slayer; import rs2.abyssalps.content.skill.slayer.SlayerConstants; import rs2.abyssalps.content.skill.thieving.Thieving; import rs2.abyssalps.content.skill.woodcutting.TreeData; import rs2.abyssalps.content.skill.woodcutting.Woodcutting; import rs2.abyssalps.model.npcs.NPCHandler; import rs2.abyssalps.model.objects.Object; import rs2.util.Misc; import rs2.util.ScriptManager; import rs2.util.tools.event.CycleEvent; import rs2.util.tools.event.CycleEventContainer; import rs2.util.tools.event.CycleEventHandler; public class ActionHandler { private Client c; public ActionHandler(Client Client) { this.c = Client; } public void firstClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; if (TreeData.treeExist(objectType)) { Woodcutting.chop(c, objectType, obX, obY); return; } if (RockData.rockExist(objectType)) { Mining.mine(c, objectType); return; } if (RiftTable.isRift(objectType)) { Runecrafting.handleRifts(c, objectType); return; } if (AltarTable.isAltar(objectType)) { Runecrafting.craftRunes(c, objectType); return; } AgilityAssistant.handleAgility(c); if (c.getRank() >= 8) { c.sendMessage(objectType + " - " + obX + " - " + obY); } switch (objectType) { case 21731: if (c.getX() < obX) { Woodcutting.chopVine(c, -1, 2, 0); } else { Woodcutting.chopVine(c, -1, -2, 0); } break; case 21732: if (c.getY() < obY) { Woodcutting.chopVine(c, 4, 0, 2); } else { Woodcutting.chopVine(c, 4, 0, -2); } break; case 21734: case 21735: if (c.getX() < obX) { Woodcutting.chopVine(c, -1, 2, 0); } else { Woodcutting.chopVine(c, -1, -2, 0); } break; case 21738: c.getPA().movePlayer(2647, 9557, 0); break; case 21739: c.getPA().movePlayer(2649, 9562, 0); break; case 9: c.getCannon().pickupCannon(objectType, obX, obY); break; case 11846: FightPitsMinigame.enter(c); break; case 2623: if (c.getX() >= 2924) { c.getPA().movePlayer(c.getX() - 1, c.getY(), 0); } else { c.getPA().movePlayer(c.getX() + 1, c.getY(), 0); } break; case 24306: case 11834: c.exitMinigame(); break; case 24309: if (c.heightLevel != 0) { if (c.getY() == 3541 || c.getY() == 3540) { if (c.getX() < obX) { if (c.enterMinigame(new CyclopsMinigame())) { c.getPA().movePlayer(c.getX() + 1, c.getY(), c.heightLevel); } } else { c.exitMinigame(); c.getPA().movePlayer(c.getX() - 1, c.getY(), c.heightLevel); } } } else { if (c.getX() == 2855 || c.getX() == 2854) { if (c.getY() < obY) { c.getPA().movePlayer(c.getX(), c.getY() + 1, c.heightLevel); } else { c.getPA().movePlayer(c.getX(), c.getY() - 1, c.heightLevel); } } } break; case 16671: case 16672: c.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel + 1); break; case 24303: c.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel - 1); break; case 26711: c.enterMinigame(new KrakenMinigame()); break; case 10068: c.enterMinigame(new ZulrahMinigame()); break; case 26762: c.getPA().movePlayer(3233, 10332, 0); break; case 26763: c.getPA().movePlayer(3233, 3950, 0); break; case 678: c.getPA().movePlayer(2945, 4384, 2); break; case 679: c.getPA().movePlayer(3206, 3682, 0); break; case 677: if (c.getX() < obX) c.getPA().movePlayer(c.getX() + 4, c.getY(), 2); else c.getPA().movePlayer(c.getX() - 4, c.getY(), 2); break; case 23271: if (c.goodDistance(c.getX(), c.getY(), c.objectX, c.objectY, 2)) { c.turnPlayerTo(c.objectX, c.objectY); if (c.isBusy()) { return; } c.setBusyState(true); c.startAnimation(6132); c.isRunning = false; c.isRunning2 = false; c.getPA().sendFrame36(173, 0); if (c.getY() <= c.objectY) { c.setForceMovement(c.localX(), c.localY(), c.localX(), c.localY() + 3, 33, 60, 0); } else { c.setForceMovement(c.localX(), c.localY(), c.localX(), c.localY() - 3, 33, 60, 4); } CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() { @Override public void execute(CycleEventContainer container) { int newY = c.absY >= 3523 ? c.absY - 3 : c.absY + 3; c.getPA().movePlayer(c.absX, newY, 0); c.isRunning = true; c.isRunning2 = true; c.setBusyState(false); c.clearUpdateFlags(); container.stop(); } }, 3); } break; case 26258: c.getDH().sendOption3("Modern Spellbook", "Ancients Spellbook", "Lunar Spellbook"); c.interfaceAction = 5; break; case 18987: c.getPA().movePlayer(3069, 10255, 0); break; case 1817: c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, TeleportType.MODERN); break; case 7408: case 7407: if (c.getX() <= 3007) { c.getPA().movePlayer(c.getX() + 1, c.getY(), 0); } else { c.getPA().movePlayer(c.getX() - 1, c.getY(), 0); } break; case 26502: if (c.getY() < 5296) { if (!c.getItems().playerHasItem(11942, 1)) { c.getDH().sendDialogues(4, -1); return; } c.getItems().deleteItem(11942, c.getItems().getItemSlot(11942), 1); c.getPA().movePlayer(c.getX(), c.getY() + 2, 2); } else { c.getPA().movePlayer(c.getX(), c.getY() - 2, 2); } break; case 26505: if (c.getY() >= 5332) { if (!c.getItems().playerHasItem(11942, 1)) { c.getDH().sendDialogues(4, -1); return; } c.getItems().deleteItem(11942, c.getItems().getItemSlot(11942), 1); c.getPA().movePlayer(c.getX(), c.getY() - 2, 2); } else { c.getPA().movePlayer(c.getX(), c.getY() + 2, 2); } break; case 26504: if (c.getX() >= obX) { if (!c.getItems().playerHasItem(11942, 1)) { c.getDH().sendDialogues(4, -1); return; } c.getItems().deleteItem(11942, c.getItems().getItemSlot(11942), 1); c.getPA().movePlayer(c.getX() - 2, c.getY(), 0); } else { c.getPA().movePlayer(c.getX() + 2, c.getY(), 0); } break; case 26503: if (c.getX() >= 2864) { c.getPA().movePlayer(c.getX() - 2, c.getY(), 2); } else { if (!c.getItems().playerHasItem(11942, 1)) { c.getDH().sendDialogues(4, -1); return; } c.getItems().deleteItem(11942, c.getItems().getItemSlot(11942), 1); c.getPA().movePlayer(c.getX() + 2, c.getY(), 2); } break; case 26645: if (obX == 3350 && obY == 3162) { c.getPA().movePlayer(3328, 4751, 0); } break; case 26646: if (obX == 3326 && obY == 4749) { c.getPA().movePlayer(3352, 3164, 0); } break; case 26707: case 11744: c.getPA().openUpBank(); break; case 2492: if (c.killCount >= 20) { c.getDH().sendOption4("Armadyl", "Bandos", "Saradomin", "Zamorak"); c.dialogueAction = 20; } else { c.sendMessage("You need 20 kill count before teleporting to a boss chamber."); } break; case 1765: c.getPA().movePlayer(3067, 10256, 0); break; case 2882: case 2883: if (c.objectX == 3268) { if (c.absX < c.objectX) { c.getPA().walkTo(1, 0); } else { c.getPA().walkTo(-1, 0); } } break; case 272: c.getPA().movePlayer(c.absX, c.absY, 1); break; case 273: c.getPA().movePlayer(c.absX, c.absY, 0); break; case 245: c.getPA().movePlayer(c.absX, c.absY + 2, 2); break; case 246: c.getPA().movePlayer(c.absX, c.absY - 2, 1); break; case 1766: c.getPA().movePlayer(3016, 3849, 0); break; case 6552: if (c.playerMagicBook == 0) { c.playerMagicBook = 1; c.setSidebarInterface(6, 12855); c.sendMessage("An ancient wisdomin fills your mind."); c.getPA().resetAutocast(); } else { c.setSidebarInterface(6, 1151); // modern c.playerMagicBook = 0; c.sendMessage("You feel a drain on your memory."); c.autocastId = -1; c.getPA().resetAutocast(); } break; case 410: if (c.playerMagicBook == 0) { c.playerMagicBook = 2; c.setSidebarInterface(6, 29999); c.sendMessage("Lunar wisdom fills your mind."); c.getPA().resetAutocast(); } else { c.setSidebarInterface(6, 1151); // modern c.playerMagicBook = 0; c.sendMessage("You feel a drain on your memory."); c.autocastId = -1; c.getPA().resetAutocast(); } break; case 1816: c.getPA().startTeleport2(2271, 4680, 0); break; case 1814: // ardy lever c.getPA().startTeleport(3153, 3923, 0, TeleportType.MODERN); break; case 9356: // c.getPA().enterCaves(); c.sendMessage("Temporarily removed due to bugs."); break; case 1733: c.getPA().movePlayer(c.absX, c.absY + 6393, 0); break; case 1734: c.getPA().movePlayer(c.absX, c.absY - 6396, 0); break; case 8959: if (c.getX() == 2490 && (c.getY() == 10146 || c.getY() == 10148)) { if (c.getPA().checkForPlayer(2490, c.getY() == 10146 ? 10148 : 10146)) { new Object(6951, c.objectX, c.objectY, c.heightLevel, 1, 10, 8959, 15); } } break; case 2213: case 14367: case 11758: case 3193: c.getPA().openUpBank(); break; case 10177: c.getPA().movePlayer(1890, 4407, 0); break; case 10230: c.getPA().movePlayer(2900, 4449, 0); break; case 10229: c.getPA().movePlayer(1912, 4367, 0); break; // pc boat case 14315: case 14314: PestControl.handleBoat(c); break; case 1596: case 1597: if (c.getY() >= c.objectY) c.getPA().walkTo(0, -1); else c.getPA().walkTo(0, 1); break; case 14235: case 14233: if (c.objectX == 2670) if (c.absX <= 2670) c.absX = 2671; else c.absX = 2670; if (c.objectX == 2643) if (c.absX >= 2643) c.absX = 2642; else c.absX = 2643; if (c.absX <= 2585) c.absY += 1; else c.absY -= 1; c.getPA().movePlayer(c.absX, c.absY, 0); break; case 14829: case 14830: case 14827: case 14828: case 14826: case 14831: // Server.objectHandler.startObelisk(objectType); Server.objectManager.startObelisk(objectType); break; case 9369: if (c.getY() > 5175) c.getPA().movePlayer(2399, 5175, 0); else c.getPA().movePlayer(2399, 5177, 0); break; // coffins case 6702: case 6703: case 6704: case 6705: case 6706: case 6707: case 20672: case 20667: case 20668: case 20670: case 20671: case 20669: c.getBarrows().useStairs(); break; case 10284: c.getBarrows().useChest(); break; case 20772: if (c.barrowsNpcs[0][1] == 0) { Server.npcHandler.spawnNpc(c, 1677, c.getX(), c.getY() - 1, 3, 0, 120, 25, 200, 200, true, true); c.barrowsNpcs[0][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 20721: if (c.barrowsNpcs[1][1] == 0) { Server.npcHandler.spawnNpc(c, 1676, c.getX() + 1, c.getY(), 3, 0, 120, 20, 200, 200, true, true); c.barrowsNpcs[1][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 20771: if (c.barrowsNpcs[2][1] == 0) { Server.npcHandler.spawnNpc(c, 1675, c.getX(), c.getY() - 1, 3, 0, 90, 17, 200, 200, true, true); c.barrowsNpcs[2][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 20722: if (c.barrowsNpcs[3][1] == 0) { Server.npcHandler.spawnNpc(c, 1674, c.getX(), c.getY() - 1, 3, 0, 120, 23, 200, 200, true, true); c.barrowsNpcs[3][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 20770: c.getDH().sendDialogues(2900, 2026); break; case 20720: if (c.barrowsNpcs[5][1] == 0) { Server.npcHandler.spawnNpc(c, 1673, c.getX() - 1, c.getY(), 3, 0, 90, 19, 200, 200, true, true); c.barrowsNpcs[5][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; // DOORS case 1516: case 1519: if (c.objectY == 9698) { if (c.absY >= c.objectY) c.getPA().walkTo(0, -1); else c.getPA().walkTo(0, 1); break; } case 1530: case 1531: case 1533: case 1534: case 11712: case 11711: case 11707: case 11708: case 6725: case 3198: case 3197: Server.objectHandler.doorHandling(objectType, c.objectX, c.objectY, 0); break; case 9319: if (c.heightLevel == 0) c.getPA().movePlayer(c.absX, c.absY, 1); else if (c.heightLevel == 1) c.getPA().movePlayer(c.absX, c.absY, 2); break; case 9320: if (c.heightLevel == 1) c.getPA().movePlayer(c.absX, c.absY, 0); else if (c.heightLevel == 2) c.getPA().movePlayer(c.absX, c.absY, 1); break; case 4496: case 4494: if (c.heightLevel == 2) { c.getPA().movePlayer(c.absX - 5, c.absY, 1); } else if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 0); } break; case 4493: if (c.heightLevel == 0) { c.getPA().movePlayer(c.absX - 5, c.absY, 1); } else if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 2); } break; case 4495: if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 2); } break; case 5126: if (c.absY == 3554) c.getPA().walkTo(0, 1); else c.getPA().walkTo(0, -1); break; case 1755: if (c.objectX == 2884 && c.objectY == 9797) c.getPA().movePlayer(c.absX, c.absY - 6400, 0); break; case 1759: if (c.objectX == 2884 && c.objectY == 3397) c.getPA().movePlayer(c.absX, c.absY + 6400, 0); break; /* * case 3203: //dueling forfeit if (c.duelCount > 0) { * c.sendMessage("You may not forfeit yet."); break; } Client o = * (Client) Server.playerHandler.players[c.duelingWith]; if(o == null) { * c.getTradeAndDuel().resetDuel(); * c.getPA().movePlayer(Config.DUELING_RESPAWN_X * +(Misc.random(Config.RANDOM_DUELING_RESPAWN)), * Config.DUELING_RESPAWN_Y * +(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); break; } * if(c.duelRule[0]) { * c.sendMessage("Forfeiting the duel has been disabled!"); break; } * if(o != null) { * o.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random * (Config.RANDOM_DUELING_RESPAWN)), * Config.DUELING_RESPAWN_Y+(Misc.random * (Config.RANDOM_DUELING_RESPAWN)), 0); * c.getPA().movePlayer(Config.DUELING_RESPAWN_X * +(Misc.random(Config.RANDOM_DUELING_RESPAWN)), * Config.DUELING_RESPAWN_Y * +(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); o.duelStatus = 6; * o.getTradeAndDuel().duelVictory(); c.getTradeAndDuel().resetDuel(); * c.getTradeAndDuel().resetDuelItems(); * o.sendMessage("The other player has forfeited the duel!"); * c.sendMessage("You forfeit the duel!"); break; } * * break; */ case 409: if (c.playerLevel[5] < c.getPA().getLevelForXP(c.playerXP[5])) { c.startAnimation(645); c.playerLevel[5] = c.getPA().getLevelForXP(c.playerXP[5]); c.sendMessage("You recharge your prayer points."); c.getPA().refreshSkill(5); } else { c.sendMessage("You already have full prayer points."); } break; case 2879: c.getPA().movePlayer(2538, 4716, 0); break; case 2878: c.getPA().movePlayer(2509, 4689, 0); break; case 5960: c.getPA().startTeleport2(3090, 3956, 0); break; case 1815: c.getPA().startTeleport2(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0); break; case 9706: c.getPA().startTeleport2(3105, 3951, 0); break; case 9707: c.getPA().startTeleport2(3105, 3956, 0); break; case 5959: c.getPA().startTeleport2(2539, 4712, 0); break; case 2558: c.sendMessage("This door is locked."); break; case 9294: if (c.absX < c.objectX) { c.getPA().movePlayer(c.objectX + 1, c.absY, 0); } else if (c.absX > c.objectX) { c.getPA().movePlayer(c.objectX - 1, c.absY, 0); } break; case 9293: if (c.absX < c.objectX) { c.getPA().movePlayer(2892, 9799, 0); } else { c.getPA().movePlayer(2886, 9799, 0); } break; case 10529: case 10527: if (c.absY <= c.objectY) c.getPA().walkTo(0, 1); else c.getPA().walkTo(0, -1); break; case 733: if (obX == 3092 && obY == 3957) { if (c.getX() <= 3092) { c.getPA().movePlayer(c.getX() + 1, c.getY(), 0); } else { c.getPA().movePlayer(c.getX() - 1, c.getY(), 0); } } else if (obX == 3095 && obY == 3957) { if (c.getX() <= 3094) { c.getPA().movePlayer(c.getX() + 1, c.getY(), 0); } else { c.getPA().movePlayer(c.getX() - 1, c.getY(), 0); } } else if (obX == 3105 && obY == 3958) { if (c.getY() >= obY) { c.getPA().movePlayer(c.getX(), c.getY() - 1, 0); } else { c.getPA().movePlayer(c.getX(), c.getY() + 1, 0); } } break; default: ScriptManager.callFunc("objectClick1_" + objectType, c, objectType, obX, obY); break; } } public void secondClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; if (c.getRank() >= 8) { c.sendMessage("Object type: " + objectType); } switch (objectType) { case 11744: c.getPA().openUpBank(); break; case 26645: if (obX == 3350 && obY == 3162) { c.getPA().movePlayer(3328, 4751, 0); } break; case 26646: if (obX == 3326 && obY == 4749) { c.getPA().movePlayer(3352, 3164, 0); } break; case 16672: c.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel - 1); break; case 6162: case 6163: case 6164: case 6165: case 6166: Thieving.useStall(c, new int[] { objectType, obX, obY }); break; case 2213: case 14367: case 11758: c.getPA().openUpBank(); break; case 2558: if (System.currentTimeMillis() - c.lastLockPick < 3000 || c.freezeTimer > 0) break; if (c.getItems().playerHasItem(1523, 1)) { c.lastLockPick = System.currentTimeMillis(); if (Misc.random(10) <= 3) { c.sendMessage("You fail to pick the lock."); break; } if (c.objectX == 3044 && c.objectY == 3956) { if (c.absX == 3045) { c.getPA().walkTo2(-1, 0); } else if (c.absX == 3044) { c.getPA().walkTo2(1, 0); } } else if (c.objectX == 3038 && c.objectY == 3956) { if (c.absX == 3037) { c.getPA().walkTo2(1, 0); } else if (c.absX == 3038) { c.getPA().walkTo2(-1, 0); } } else if (c.objectX == 3041 && c.objectY == 3959) { if (c.absY == 3960) { c.getPA().walkTo2(0, -1); } else if (c.absY == 3959) { c.getPA().walkTo2(0, 1); } } } else { c.sendMessage("I need a lockpick to pick this lock."); } break; default: ScriptManager.callFunc("objectClick2_" + objectType, c, objectType, obX, obY); break; } } public void thirdClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; c.sendMessage("Object type: " + objectType); switch (objectType) { default: ScriptManager.callFunc("objectClick3_" + objectType, c, objectType, obX, obY); break; } } public void firstClickNpc(int i) { if (Fishing.fishExist(i)) { Fishing.startFishing(c, i); } c.clickNpcType = 0; c.npcClickIndex = 0; switch (i) { case 2033: c.getShops().setupZulrahExchange(); break; case 3193: c.getShops().openShop(15); break; case 6481: c.getDH().sendDialogues(29, -1); break; case 3077: c.getDH().sendDialogues(27, i); break; case 6649: c.getShops().openShop(13); break; case 402: c.getDH().sendDialogues(18, i); break; case 1160: c.getDH().sendDialogues(10, i); break; case 2580: c.getPA().startTeleport(3039, 4834, 0, TeleportType.MODERN); break; case 5792: c.getDH().sendDialogues(9, i); break; case 394: c.getDH().sendDialogues(7, i); break; case 506: c.getShops().openSkillCape(); break; case 2182: c.getPA().openUpBank(); break; case 1011: c.getShops().openShop(11); break; case 1158: c.getShops().openShop(8); break; case 534: c.getShops().openShop(7); break; case 505: c.getShops().openShop(6); break; case 1024: c.getShops().openShop(1); break; case 5721: c.getDH().sendDialogues(3, i); break; case 1833: c.getShops().openShop(3); break; case 6059: c.getShops().openShop(4); break; case 637: c.getShops().openShop(5); break; case 706: c.getDH().sendDialogues(9, i); break; case 2258: c.getDH().sendDialogues(17, i); break; case 1304: c.getDH().sendOption5("Home", "Edgeville", "Island", "Dagannoth Kings", "Next Page"); c.teleAction = 1; break; case 528: c.getShops().openShop(1); break; case 461: c.getShops().openShop(2); break; case 683: c.getShops().openShop(3); break; case 586: c.getShops().openShop(4); break; case 555: c.getShops().openShop(6); break; case 519: c.getShops().openShop(8); break; case 1700: c.getShops().openShop(19); break; case 251: c.getShops().openShop(60); break; case 1282: c.getShops().openShop(7); break; case 1152: c.getDH().sendDialogues(16, i); break; case 494: c.getPA().openUpBank(); break; case 460: c.getDH().sendDialogues(3, i); break; case 462: c.getDH().sendDialogues(7, i); break; case 1307: c.getPA().showInterface(3559); c.canChangeAppearance = true; break; case 904: c.sendMessage((new StringBuilder()).append("You have ") .append(c.magePoints).append(" points.").toString()); break; } } public void secondClickNpc(int i) { if (c.getPets().pickupPet(NPCHandler.npcs[c.npcClickIndex])) { c.clickNpcType = 0; c.npcClickIndex = 0; return; } c.clickNpcType = 0; c.npcClickIndex = 0; switch (i) { case 402: c.getDH().sendDialogues(19, i); break; case 3077: c.getDH().sendDialogues(28, i); break; case 1117: c.getPA().showInterface(3559); c.canChangeAppearance = true; break; case 1282: c.getShops().openShop(7); break; case 494: c.getPA().openUpBank(); break; case 904: c.getShops().openShop(17); break; case 522: case 523: c.getShops().openShop(1); break; case 541: c.getShops().openShop(5); break; case 461: c.getShops().openShop(2); break; case 683: c.getShops().openShop(3); break; case 549: c.getShops().openShop(4); break; case 2538: c.getShops().openShop(6); break; case 519: c.getShops().openShop(8); break; case 3789: c.getShops().openShop(18); break; } } public void thirdClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch (npcType) { case 402: c.getShops().openShop(12); break; case 5721: c.getShops().openShop(2); break; default: ScriptManager.callFunc("npcClick3_" + npcType, c, npcType); if (c.getRank() == 3) Misc.println("Third Click NPC : " + npcType); break; } } }
[ "musigonzales@gmail.com" ]
musigonzales@gmail.com
601b7c18fe99ad5ca33f3632968061abdbf61bb4
125582a62e2ac032756eec7f3a80e231229402b1
/java/src/main/java/compress/Gzip.java
b6323b0647dc65c0ffd29d806c83e3e6d912d7f7
[]
no_license
noweaver/Snippet
88dbdf472f197071655578e1544314f446bf311c
eb7b1b0dca6ddb739b2cc55b28ed4f829b65d25f
refs/heads/master
2020-03-25T08:12:17.439200
2018-08-05T10:31:22
2018-08-05T10:31:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,110
java
package compress; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; public class Gzip { final static String decompressedFile = "c:/testFile.txt"; final static String decompressedFile2 = "c:/testFile2.txt"; final static String compressedFile = "c:/testFile.txt.gz"; public static void main(String[] args) { Gzip test = new Gzip(); try { System.out.println("start compress ..."); test.compress(); System.out.println("start decompress ..."); test.decompress(); System.out.println("complete compress/decompress process"); } catch (Exception e) { e.printStackTrace(); } } public void compress() throws IOException { long startTime = startTime = System.currentTimeMillis(); BufferedReader in = new BufferedReader(new FileReader(decompressedFile)); BufferedOutputStream out = new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(compressedFile))); String s; while (null != (s = in.readLine())) { out.write(s.getBytes()); out.write("\n".getBytes()); } in.close(); out.close(); long endTime = System.currentTimeMillis(); System.out.println("compress elapsed time : " + (endTime - startTime) + " ms"); } public void decompress() throws FileNotFoundException, IOException, InterruptedException { long startTime = System.currentTimeMillis(); BufferedReader in = new BufferedReader(new InputStreamReader(new GZIPInputStream( new FileInputStream(compressedFile)))); BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(decompressedFile2)); String s; while (null != (s = in.readLine())) { out.write(s.getBytes()); out.write("\n".getBytes()); } in.close(); out.close(); long endTime = System.currentTimeMillis(); System.out.println("decompress elapsed time : " + (endTime - startTime) + " ms"); } }
[ "ryan.soar@gmail.com" ]
ryan.soar@gmail.com
48de0b26e858db9b453dd7c679e49c7c035647da
da3a80eb51e818d7e270f501d0e0ad6c7fb0f148
/src/main/java/maciejgawlik/modulserwisowaniasprzetu/device/DeviceController.java
567c03983c3be029de26a145ee89a3dbc9727e25
[]
no_license
gwlkm/modul-serwisowania-sprzetu
c004f591f53e77e945311d5c7f21ff018275d60f
e8fcb9d22a349d914af07058d942750ae21fde75
refs/heads/master
2020-09-02T21:04:07.751980
2019-11-03T13:02:30
2019-11-03T13:02:30
219,304,103
0
0
null
null
null
null
UTF-8
Java
false
false
2,055
java
package maciejgawlik.modulserwisowaniasprzetu.device; import lombok.AllArgsConstructor; import maciejgawlik.modulserwisowaniasprzetu.device.domain.category.DeviceCategory; import maciejgawlik.modulserwisowaniasprzetu.device.domain.device.Device; import maciejgawlik.modulserwisowaniasprzetu.device.service.DeviceCategoryService; import maciejgawlik.modulserwisowaniasprzetu.device.domain.comment.DeviceCommentDto; import maciejgawlik.modulserwisowaniasprzetu.device.service.DeviceCommentService; import maciejgawlik.modulserwisowaniasprzetu.device.service.DeviceService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @AllArgsConstructor @RequestMapping("/device") public class DeviceController { private DeviceService deviceService; private DeviceCommentService deviceCommentService; private DeviceCategoryService deviceCategoryService; @GetMapping("/all") public List<Device> extractAllDevices() { return deviceService.extractAll(); } @PutMapping("/mark-as-broken/{id}") public ResponseEntity<String> markAsBroken(@PathVariable("id") long id) { return deviceService.markAsBroken(id); } @PutMapping("/mark-as-fixed/{id}") public ResponseEntity<String> markAsFixed(@PathVariable("id") long id) { return deviceService.markAsFixed(id); } @PostMapping("/comment") public ResponseEntity<Long> addComment(@RequestBody DeviceCommentDto commentDto) { return deviceCommentService.add(commentDto); } @PutMapping("/comment") public ResponseEntity modifyComment(@RequestBody DeviceCommentDto commentDto) { return deviceCommentService.update(commentDto); } @DeleteMapping("/comment/{id}") public void deleteComment(@PathVariable("id") long id) { deviceCommentService.delete(id); } @GetMapping("/category/all") public List<DeviceCategory> extractAllCategories() { return deviceCategoryService.extractAll(); } }
[ "g" ]
g
fd67ad7da0acff712bbfa5ff02eef67f41dd0d4e
46167791cbfeebc8d3ddc97112764d7947fffa22
/spring-boot/src/main/java/com/justexample/entity/Entity1375.java
a8b0b8e74976e9683e2c45c4145f4560d1804580
[]
no_license
kahlai/unrealistictest
4f668b4822a25b4c1f06c6b543a26506bb1f8870
fe30034b05f5aacd0ef69523479ae721e234995c
refs/heads/master
2023-08-25T09:32:16.059555
2021-11-09T08:17:22
2021-11-09T08:17:22
425,726,016
0
0
null
null
null
null
UTF-8
Java
false
false
1,134
java
package com.justexample.entity; import java.sql.Timestamp; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Entity1375 { @Id private Long id; private String code; private String name; private String status; private int seq; private Timestamp createdDate; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public int getSeq() { return seq; } public void setSeq(int seq) { this.seq = seq; } public Timestamp getCreatedDate() { return createdDate; } public void setCreatedDate(Timestamp createdDate) { this.createdDate = createdDate; } }
[ "laikahhoe@gmail.com" ]
laikahhoe@gmail.com
c50490d2d4c11acb4376418fdc5c574ed983b233
7dfb1538fd074b79a0f6a62674d4979c7c55fd6d
/src/day65/CollectionFramework.java
02b065f9b240ae7358447db4ac0a40092288c670
[]
no_license
kutluduman/Java-Programming
424a4ad92e14f2d4cc700c8a9352ff7408aa993f
d55b8a61ab3a654f954e33db1cb244e36bbcc7da
refs/heads/master
2022-04-18T03:54:50.219846
2020-04-18T05:45:45
2020-04-18T05:45:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
53
java
package day65; public class CollectionFramework { }
[ "kutluduman@gmail.com" ]
kutluduman@gmail.com
b6412794e7ff2861eda39a7c7da16d2459983e63
5e85ee1d13dd0a60a6f0cf56f3a3c10f49bf6eb7
/src/main/java/org/neat4j/neat/core/NEATNeuron.java
a0dc5102914242f6bb0f9d1a1d2baf9195aa61f3
[]
no_license
SkaaRJik/NEAT
abdd0d2f15df233afbca1391220b2bc97837ef3c
2684ee358b90203c871271db7a77c6d3547323e4
refs/heads/master
2022-07-26T21:13:52.919120
2021-04-22T11:36:02
2021-04-22T11:36:02
168,264,623
0
0
null
null
null
null
UTF-8
Java
false
false
3,969
java
/* * Created on 23-Jun-2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package org.neat4j.neat.core; import org.neat4j.neat.nn.core.ActivationFunction; import org.neat4j.neat.nn.core.Neuron; import org.neat4j.neat.nn.core.Synapse; import java.util.ArrayList; /** * @author MSimmerson * * Specific NEAT neuron */ public class NEATNeuron implements Neuron { private double lastActivation; private double bias; private double[] weights; private ActivationFunction activationFunction; private int id; private NEATNodeGene.TYPE type; private int depth; String label; private ArrayList<NEATNeuron> sourceNeurons; private ArrayList<Synapse> incomingSynapses; private ArrayList<Synapse> outSynapses; public NEATNeuron(ActivationFunction function, int id, NEATNodeGene.TYPE type, String label) { this.activationFunction = function; this.id = id; this.type = type; this.sourceNeurons = new ArrayList<>(); this.incomingSynapses = new ArrayList<>(); this.outSynapses = new ArrayList<>(); this.depth = -1; this.label = label; } public void addSourceNeuron(NEATNeuron neuron) { this.sourceNeurons.add(neuron); } public void addIncomingSynapse(Synapse synapse) { this.incomingSynapses.add(synapse); } public ArrayList<Synapse> incomingSynapses() { return (this.incomingSynapses); } public ArrayList<NEATNeuron> sourceNeurons() { return (this.sourceNeurons); } public double lastActivation() { return (this.lastActivation); } /** * If it is an input neuron, returns the input, else will run through the specified activation function. * */ public double activate(double[] nInputs) { double neuronIp = 0; int i = 0; double weight; double input; Synapse synapse; Object[] incoming = this.incomingSynapses.toArray(); // acting as a bias neuron this.lastActivation = -1; if (this.type != NEATNodeGene.TYPE.INPUT) { if (nInputs.length > 0) { for (i = 0; i < nInputs.length; i++) { input = nInputs[i]; synapse = (Synapse)incoming[i]; if (synapse.isEnabled()) { weight = synapse.getWeight(); neuronIp += (input * weight); } } neuronIp += (-1 * this.bias); this.lastActivation = this.activationFunction.activate(neuronIp); } } else { //neuronIp = nInputs[0]; this.lastActivation = nInputs[0]; } return (this.lastActivation); } public ActivationFunction function() { return (this.activationFunction); } public void modifyWeights(double[] weightMods, double[] momentum, boolean mode) { System.arraycopy(weightMods, 0, this.weights, 0, this.weights.length); } public void modifyBias(double biasMod, double momentum, boolean mode) { this.bias = biasMod; } public double[] weights() { return (this.weights); } public double bias() { return (this.bias); } public double[] lastWeightDeltas() { return null; } public double lastBiasDelta() { return 0; } @Override public int getID() { return this.id; } public int id() { return (this.id); } public NEATNodeGene.TYPE neuronType() { return (this.type); } public int neuronDepth() { return (this.depth); } public void setNeuronDepth(int depth) { this.depth = depth; } public void setActivationFunction(ActivationFunction activationFunction) { this.activationFunction = activationFunction; } public ActivationFunction getActivationFunction() { return activationFunction; } public String getLabel() { return label; } @Override public String toString() { return "NEATNeuron{" + "\n id=" + id + "\n type=" + type + "\n label='" + label + "\n activationFunction=" + activationFunction.getFunctionName() + "\n bias=" + bias + "\n}"; } public ArrayList<Synapse> getOutSynapses() { return outSynapses; } public void addOutSynapse(Synapse synapse){ this.outSynapses.add(synapse); } }
[ "vitya.filippow@yandex.ru" ]
vitya.filippow@yandex.ru
c3c99765a20eda1e5a22a35c6a96779dae73c780
1a9a8875a286df015af40528d4dcf9c58d29e494
/src/cn/leature/istarbaby/questions/QuestionListActivity.java
44fe0ab30f24662d9630690332a868c5bb866577
[]
no_license
parety/iStarBaby
65552e026dddd42c79aba0fd2b160734639e2fd8
bf32800c280aa0db14b2fe9dee0c9f4db6701a92
refs/heads/master
2021-01-21T03:30:32.213557
2015-01-28T05:50:57
2015-01-28T05:50:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,033
java
package cn.leature.istarbaby.questions; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.DisplayMetrics; import android.util.Log; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ImageButton; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import cn.leature.istarbaby.R; import cn.leature.istarbaby.common.LzBaseActivity; import cn.leature.istarbaby.common.LzProgressDialog; import cn.leature.istarbaby.domain.ChildrenInfo; import cn.leature.istarbaby.domain.LoginInfo; import cn.leature.istarbaby.domain.QuestionDetailInfo; import cn.leature.istarbaby.domain.UserInfo; import cn.leature.istarbaby.domain.QuestionDetailInfo.QuestionListModel; import cn.leature.istarbaby.login.LoginActivity; import cn.leature.istarbaby.network.HttpPostUtil; import cn.leature.istarbaby.network.HttpPostUtil.OnPostProcessListener; import cn.leature.istarbaby.slidingmenu.SlidingMenu; import cn.leature.istarbaby.utils.ConstantDef; import cn.leature.istarbaby.utils.DateUtilsDef; public class QuestionListActivity extends LzBaseActivity implements OnPostProcessListener, OnClickListener, OnItemClickListener { // 表示数据对象模型 private QuestionDetailInfo mQuestionDetailInfo; private HttpPostUtil httpUtil; private SlidingMenu mSlidingMenu; private LzProgressDialog progressDialog; // 列表取得成功(Message用) protected static final int QUESTION_LIST_DONE = 1; // 列表取得出错(Message用) protected static final int QUESTION_LIST_ERROR = -1; public static ImageButton showLeftMenu; // 识别是不是第一页 ,在别的fragment中修改 public static boolean isFirstPage = true; private ListView listView; private List<String> listItems; private QuestionAdapter adapter; private UserInfo loginUserInfo; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.sliding_main); // 查询数据库 checkUserLogin(); initView(); getQuestionList(); } private void checkUserLogin() { loginUserInfo = LoginInfo.loadLoginUserInfo(this); // 用户名或密码为空,需要重新登录 if (loginUserInfo.getUserSId().equals("") || loginUserInfo.getPassword().equals("")) { } } private Handler handler = new Handler() { @Override public void handleMessage(Message msg) { switch (msg.what) { case QUESTION_LIST_DONE: toQuestionListDone(msg.obj.toString()); break; default: // 错误处理 toErrorMessage(msg.obj.toString()); break; } super.handleMessage(msg); } }; protected void toErrorMessage(String msgString) { // List取得出错,显示提示信息 progressDialog.dismiss(); Toast.makeText(this, msgString, Toast.LENGTH_LONG).show(); } private void initView() { // 设置主菜单 DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); mSlidingMenu = (SlidingMenu) findViewById(R.id.slidingMain); View leftView = getLayoutInflater() .inflate(R.layout.sliding_menu, null); View centerView = getLayoutInflater().inflate( R.layout.activity_question_list, null); mSlidingMenu.setLeftView(leftView); mSlidingMenu.setCenterView(centerView); // 设置顶部导航 TextView titleBarTitle = (TextView) this .findViewById(R.id.titlebar_title); titleBarTitle.setText("育儿百科"); showLeftMenu = (ImageButton) centerView .findViewById(R.id.titlebar_leftbtn); showLeftMenu.setBackgroundResource(R.drawable.selector_hd_menu); showLeftMenu.setOnClickListener(this); listView = (ListView) centerView.findViewById(R.id.question_listview); listView.setOnItemClickListener(this); ImageButton titleBarPost = (ImageButton) this .findViewById(R.id.titlebar_rightbtn1); titleBarPost.setVisibility(View.INVISIBLE); // 进度条 progressDialog = new LzProgressDialog(this); httpUtil = HttpPostUtil.getInstance(); httpUtil.setOnPostProcessListener(this); } private void getQuestionList() { progressDialog.setCancelable(true); progressDialog.show(); // 宝典List取得 httpUtil.sendPostMessage(ConstantDef.cUrlQuestionList, null); } protected void toQuestionListDone(String listResult) { progressDialog.dismiss(); try { JSONObject jsonObject = new JSONObject(listResult); mQuestionDetailInfo = new QuestionDetailInfo(jsonObject); } catch (JSONException e) { e.printStackTrace(); } listItems = new ArrayList<String>(); // 设置标题 listItems.add(mQuestionDetailInfo.getTitle()); List<QuestionListModel> listData = mQuestionDetailInfo.getList(); // 设置内容 for (QuestionListModel listModel : listData) { listItems.add(listModel.getCatalog1_text()); } List<ChildrenInfo> mChildList = loginUserInfo.getChildList(); String minAgeday = ""; ArrayList<String> mAgedayList = new ArrayList<String>(); for (int i = 0; i < mChildList.size(); i++) { String birthday = mChildList.get(i).getBirthday(); if ("".equals(minAgeday)) { minAgeday = birthday; } else if (minAgeday.compareTo(birthday) < 0) { minAgeday = birthday; } } int getindex = getindex(DateUtilsDef .calculateAgeWithBirthday(minAgeday)); adapter = new QuestionAdapter(QuestionListActivity.this, 0); adapter.setListItems(listItems); adapter.setbirthday(getindex); listView.setAdapter(adapter); } private int getindex(int birthday) { int index = 0; if (birthday <= 7) { index = 1; } else if (birthday <= 15) { index = 2; } else if (birthday <= 30) { index = 3; } else if (birthday <= 60) { index = 4; } else if (birthday <= 90) { index = 5; } else if (birthday <= 120) { index = 6; } else if (birthday <= 150) { index = 7; } else if (birthday <= 180) { index = 8; } else if (birthday <= 210) { index = 9; } else if (birthday <= 240) { index = 10; } else if (birthday <= 270) { index = 11; } else if (birthday <= 300) { index = 12; } else if (birthday <= 330) { index = 13; } else if (birthday <= 365) { index = 14; } else if (birthday <= 547) { index = 15; } else if (birthday <= 730) { index = 16; } return index; } @Override public boolean onCreateOptionsMenu(Menu menu) { return true; } @Override public void onPostDone(int responseCode, String responseMessage) { Message msg = Message.obtain(); msg.arg1 = responseCode; msg.obj = responseMessage; if (responseCode == HttpPostUtil.POST_SUCCESS_CODE) { msg.what = QUESTION_LIST_DONE; } else { msg.what = QUESTION_LIST_ERROR; } handler.sendMessage(msg); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.titlebar_leftbtn: // 打开主菜单(从左边划出) mSlidingMenu.showLeftView(); break; default: break; } } @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(); intent.putExtra("Info", mQuestionDetailInfo); Bundle bundle = new Bundle(); bundle.putInt("list_position", position); intent.putExtras(bundle); intent.setClass(QuestionListActivity.this, QuestionCatalogActivity.class); this.startActivityForResult(intent, ConstantDef.REQUEST_CODE_QA_CATALOG); // 设定启动动画 this.overridePendingTransition(R.anim.activity_in_from_right, R.anim.activity_nothing_in_out); } }
[ "dolphallreg@gmail.com" ]
dolphallreg@gmail.com
4d2a3e080c68a418f00f49f35da211cdd3ab7e09
23cb8e0f3a3e97df6e4f7c1c0d146c67b11dfc5a
/libnavcompiler/src/main/java/com/mooc/libnavcompiler/NavProcessor.java
c5c36a601426dc328bc8c1e20bdee72f604ed430
[]
no_license
Cappuccinose/ppjoke_jetpack
f5765a43c4f0cf4dcb749ac530f8e7e5d9ed755a
9e05120a134fb994bdf66d055eb138c1e19eaf3e
refs/heads/master
2022-07-22T22:49:39.027503
2020-05-21T09:14:07
2020-05-21T09:14:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,373
java
package com.mooc.libnavcompiler; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.google.auto.service.AutoService; import com.mooc.libnavannotation.ActivityDestination; import com.mooc.libnavannotation.FragmentDestination; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.lang.annotation.Annotation; import java.util.HashMap; import java.util.Set; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Filer; import javax.annotation.processing.Messager; import javax.annotation.processing.ProcessingEnvironment; import javax.annotation.processing.Processor; import javax.annotation.processing.RoundEnvironment; import javax.annotation.processing.SupportedAnnotationTypes; import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; import javax.tools.Diagnostic; import javax.tools.FileObject; import javax.tools.StandardLocation; /** * APP页面导航信息收集注解处理器 * <p> * AutoService注解:就这么一标记,annotationProcessor project() 应用一下,编译器就会自动执行该类 * <p> * SupportedSourceVersion注解 什么我们支持的jdk版本 * <p> * SupportedAnnotationTypes:声明该注解处理器想要处理哪些注解 */ @AutoService(Processor.class) @SupportedSourceVersion(SourceVersion.RELEASE_8) @SupportedAnnotationTypes({"com.mooc.libnavannotation.FragmentDestination", "com.mooc.libnavannotation.ActivityDestination"}) public class NavProcessor extends AbstractProcessor { private Messager messager; private Filer filer; private static final String OUTPUT_FILE_NAME = "destination.json"; @Override public synchronized void init(ProcessingEnvironment processingEnv) { super.init(processingEnv); //日志打印,在java环境下不能使用android.util.log.e() messager = processingEnv.getMessager(); //文件处理工具 filer = processingEnv.getFiler(); } @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { //通过处理器环境上下文roundEnv分别获取 项目中标记的FragmentDestination.class 和ActivityDestination.class注解。 //此目的就是为了收集项目中哪些类 被注解标记了 Set<? extends Element> fragmentElements = roundEnv.getElementsAnnotatedWith(FragmentDestination.class); Set<? extends Element> activityElements = roundEnv.getElementsAnnotatedWith(ActivityDestination.class); if (!fragmentElements.isEmpty() || !activityElements.isEmpty()) { HashMap<String, JSONObject> destMap = new HashMap<>(); //分别 处理FragmentDestination 和 ActivityDestination 注解类型 //并收集到destMap 这个map中。以此就能记录下所有的页面信息了 handleDestination(fragmentElements, FragmentDestination.class, destMap); handleDestination(activityElements, ActivityDestination.class, destMap); //app/src/main/assets FileOutputStream fos = null; OutputStreamWriter writer = null; try { //filer.createResource()意思是创建源文件 //我们可以指定为class文件输出的地方, //StandardLocation.CLASS_OUTPUT:java文件生成class文件的位置,/app/build/intermediates/javac/debug/classes/目录下 //StandardLocation.SOURCE_OUTPUT:java文件的位置,一般在/ppjoke/app/build/generated/source/apt/目录下 //StandardLocation.CLASS_PATH 和 StandardLocation.SOURCE_PATH用的不多,指的了这个参数,就要指定生成文件的pkg包名了 FileObject resource = filer.createResource(StandardLocation.CLASS_OUTPUT, "", OUTPUT_FILE_NAME); String resourcePath = resource.toUri().getPath(); messager.printMessage(Diagnostic.Kind.NOTE, "resourcePath:" + resourcePath); //由于我们想要把json文件生成在app/src/main/assets/目录下,所以这里可以对字符串做一个截取, //以此便能准确获取项目在每个电脑上的 /app/src/main/assets/的路径 String appPath = resourcePath.substring(0, resourcePath.indexOf("app") + 4); String assetsPath = appPath + "src/main/assets/"; File file = new File(assetsPath); if (!file.exists()) { file.mkdirs(); } //此处就是稳健的写入了 File outPutFile = new File(file, OUTPUT_FILE_NAME); if (outPutFile.exists()) { outPutFile.delete(); } outPutFile.createNewFile(); //利用fastjson把收集到的所有的页面信息 转换成JSON格式的。并输出到文件中 String content = JSON.toJSONString(destMap); fos = new FileOutputStream(outPutFile); writer = new OutputStreamWriter(fos, "UTF-8"); writer.write(content); writer.flush(); } catch (IOException e) { e.printStackTrace(); } finally { if (writer != null) { try { writer.close(); } catch (IOException e) { e.printStackTrace(); } } if (fos != null) { try { fos.close(); } catch (IOException e) { e.printStackTrace(); } } } } return true; } private void handleDestination(Set<? extends Element> elements, Class<? extends Annotation> annotationClaz, HashMap<String, JSONObject> destMap) { for (Element element : elements) { //TypeElement是Element的一种。 //如果我们的注解标记在了类名上。所以可以直接强转一下。使用它得到全类名 TypeElement typeElement = (TypeElement) element; //全类名com.mooc.ppjoke.home String clazName = typeElement.getQualifiedName().toString(); //页面的id.此处不能重复,使用页面的类名做hascode即可 int id = Math.abs(clazName.hashCode()); //页面的pageUrl相当于隐士跳转意图中的host://schem/path格式 String pageUrl = null; //是否需要登录 boolean needLogin = false; //是否作为首页的第一个展示的页面 boolean asStarter = false; //标记该页面是fragment 还是activity类型的 boolean isFragment = false; Annotation annotation = element.getAnnotation(annotationClaz); if (annotation instanceof FragmentDestination) { FragmentDestination dest = (FragmentDestination) annotation; pageUrl = dest.pageUrl(); asStarter = dest.asStarter(); needLogin = dest.needLogin(); isFragment = true; } else if (annotation instanceof ActivityDestination) { ActivityDestination dest = (ActivityDestination) annotation; pageUrl = dest.pageUrl(); asStarter = dest.asStarter(); needLogin = dest.needLogin(); isFragment = false; } if (destMap.containsKey(pageUrl)) { messager.printMessage(Diagnostic.Kind.ERROR, "不同的页面不允许使用相同的pageUrl:" + clazName); } else { JSONObject object = new JSONObject(); object.put("id", id); object.put("needLogin", needLogin); object.put("asStarter", asStarter); object.put("pageUrl", pageUrl); object.put("className", clazName); object.put("isFragment", isFragment); destMap.put(pageUrl, object); } } } }
[ "arons.hui@gmail.com" ]
arons.hui@gmail.com
94f8537768f2aef3df4922fd9930fe446f47a8b8
f787964b2eb70971c558892c37f3036dda7f5cb8
/.JETEmitters/src/org/talend/designer/codegen/translators/databases/mongodb/TMongoDBWriteConfFinallyJava.java
e2fc281a25a8e1ed593827bff0fbc6ca7cbd205f
[]
no_license
sharrake/SampleTalendWorkspace
1746e1600ec667efc8a929c8fc33ca1e3d1f09f5
b518c24aca165408eaef0353a7bb208ac4c9bd96
refs/heads/master
2021-01-10T04:19:48.039640
2015-11-23T11:16:36
2015-11-23T11:16:36
46,714,207
0
4
null
null
null
null
UTF-8
Java
false
false
3,448
java
package org.talend.designer.codegen.translators.databases.mongodb; import org.talend.core.model.process.INode; import org.talend.designer.codegen.config.CodeGeneratorArgument; import org.talend.core.model.process.ElementParameterParser; import java.util.List; import org.talend.core.model.metadata.IMetadataTable; import org.talend.core.model.process.IConnection; import org.talend.core.model.process.IConnectionCategory; import org.talend.core.model.utils.NodeUtil; import org.talend.core.model.process.EConnectionType; public class TMongoDBWriteConfFinallyJava { protected static String nl; public static synchronized TMongoDBWriteConfFinallyJava create(String lineSeparator) { nl = lineSeparator; TMongoDBWriteConfFinallyJava result = new TMongoDBWriteConfFinallyJava(); nl = null; return result; } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = "\t\t\t\tif(resourceMap.get(\"finish_"; protected final String TEXT_2 = "\") == null){" + NL + "\t\t\t\t\tif(resourceMap.get(\"mongo_"; protected final String TEXT_3 = "\") != null){" + NL + "\t\t\t\t\t\t"; protected final String TEXT_4 = NL + "\t\t\t\t\t\t\tlog.info(\""; protected final String TEXT_5 = " - Closing the connection \" + ((com.mongodb.Mongo)resourceMap.get(\"mongo_"; protected final String TEXT_6 = "\")).getServerAddressList() + \".\");" + NL + "\t\t\t\t\t\t"; protected final String TEXT_7 = NL + "\t\t\t\t\t\t\t((com.mongodb.Mongo)resourceMap.get(\"mongo_"; protected final String TEXT_8 = "\")).close();" + NL + "\t\t\t\t\t\t"; protected final String TEXT_9 = NL + "\t\t\t\t\t\t\tlog.info(\""; protected final String TEXT_10 = " - The connection was closed successfully.\");" + NL + "\t\t\t\t\t\t"; protected final String TEXT_11 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t"; protected final String TEXT_12 = NL; public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument; INode node = (INode)codeGenArgument.getArgument(); String cid = node.getUniqueName(); String useExistingConn = ElementParameterParser.getValue(node,"__USE_EXISTING_CONNECTION__"); boolean isLog4jEnabled = ("true").equals(ElementParameterParser.getValue(node.getProcess(), "__LOG4J_ACTIVATE__")); String strJobCid=cid.replace("_Out",""); List<IMetadataTable> metadatas = node.getMetadataList(); if ((metadatas!=null)&&(metadatas.size()>0)) { IMetadataTable metadata = metadatas.get(0); if (metadata!=null) { if(!"true".equals(useExistingConn)){ stringBuffer.append(TEXT_1); stringBuffer.append(cid); stringBuffer.append(TEXT_2); stringBuffer.append(cid); stringBuffer.append(TEXT_3); if(isLog4jEnabled){ stringBuffer.append(TEXT_4); stringBuffer.append(cid); stringBuffer.append(TEXT_5); stringBuffer.append(cid); stringBuffer.append(TEXT_6); } stringBuffer.append(TEXT_7); stringBuffer.append(cid); stringBuffer.append(TEXT_8); if(isLog4jEnabled){ stringBuffer.append(TEXT_9); stringBuffer.append(cid); stringBuffer.append(TEXT_10); } stringBuffer.append(TEXT_11); } } } stringBuffer.append(TEXT_12); return stringBuffer.toString(); } }
[ "rakesh.ramotra@gmail.com" ]
rakesh.ramotra@gmail.com
2e175805ab4829c34aa916f53f627418fb2e91eb
b672c8b3ad0be7843f5c98af5c67186984f984f3
/android/app/build/generated/source/r/debug/com/imagepicker/R.java
de2935c970fd0ebf2a4ef8d57ba604d5a724cf2d
[]
no_license
Pianist038801/DucketApp
61d7bb5a895cff15f0271a5636d7a85e82ab00d2
2ea2aad2e24ad81b881a9419a355882af358f6b3
refs/heads/master
2021-01-01T05:57:06.177588
2017-07-25T23:51:00
2017-07-25T23:51:00
97,308,823
0
0
null
null
null
null
UTF-8
Java
false
false
92,392
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.imagepicker; 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 catalyst_push_up_in = 0x7f05000a; public static final int catalyst_push_up_out = 0x7f05000b; public static final int fade_in = 0x7f05000c; public static final int fade_out = 0x7f05000d; public static final int slide_down = 0x7f05000e; public static final int slide_up = 0x7f05000f; } public static final class attr { public static final int actionBarDivider = 0x7f010088; public static final int actionBarItemBackground = 0x7f010089; public static final int actionBarPopupTheme = 0x7f010082; public static final int actionBarSize = 0x7f010087; public static final int actionBarSplitStyle = 0x7f010084; public static final int actionBarStyle = 0x7f010083; public static final int actionBarTabBarStyle = 0x7f01007e; public static final int actionBarTabStyle = 0x7f01007d; public static final int actionBarTabTextStyle = 0x7f01007f; public static final int actionBarTheme = 0x7f010085; public static final int actionBarWidgetTheme = 0x7f010086; public static final int actionButtonStyle = 0x7f0100a2; public static final int actionDropDownStyle = 0x7f01009e; public static final int actionLayout = 0x7f010053; public static final int actionMenuTextAppearance = 0x7f01008a; public static final int actionMenuTextColor = 0x7f01008b; public static final int actionModeBackground = 0x7f01008e; public static final int actionModeCloseButtonStyle = 0x7f01008d; public static final int actionModeCloseDrawable = 0x7f010090; public static final int actionModeCopyDrawable = 0x7f010092; public static final int actionModeCutDrawable = 0x7f010091; public static final int actionModeFindDrawable = 0x7f010096; public static final int actionModePasteDrawable = 0x7f010093; public static final int actionModePopupWindowStyle = 0x7f010098; public static final int actionModeSelectAllDrawable = 0x7f010094; public static final int actionModeShareDrawable = 0x7f010095; public static final int actionModeSplitBackground = 0x7f01008f; public static final int actionModeStyle = 0x7f01008c; public static final int actionModeWebSearchDrawable = 0x7f010097; public static final int actionOverflowButtonStyle = 0x7f010080; public static final int actionOverflowMenuStyle = 0x7f010081; public static final int actionProviderClass = 0x7f010055; public static final int actionViewClass = 0x7f010054; public static final int activityChooserViewStyle = 0x7f0100aa; public static final int actualImageScaleType = 0x7f01003b; public static final int actualImageUri = 0x7f010069; public static final int alertDialogButtonGroupStyle = 0x7f0100cc; public static final int alertDialogCenterButtons = 0x7f0100cd; public static final int alertDialogStyle = 0x7f0100cb; public static final int alertDialogTheme = 0x7f0100ce; public static final int arrowHeadLength = 0x7f01002c; public static final int arrowShaftLength = 0x7f01002d; public static final int autoCompleteTextViewStyle = 0x7f0100d3; public static final int background = 0x7f01000d; public static final int backgroundImage = 0x7f01003c; public static final int backgroundSplit = 0x7f01000f; public static final int backgroundStacked = 0x7f01000e; public static final int backgroundTint = 0x7f0100f1; public static final int backgroundTintMode = 0x7f0100f2; public static final int barLength = 0x7f01002e; public static final int borderlessButtonStyle = 0x7f0100a7; public static final int buttonBarButtonStyle = 0x7f0100a4; public static final int buttonBarNegativeButtonStyle = 0x7f0100d1; public static final int buttonBarNeutralButtonStyle = 0x7f0100d2; public static final int buttonBarPositiveButtonStyle = 0x7f0100d0; public static final int buttonBarStyle = 0x7f0100a3; public static final int buttonPanelSideLayout = 0x7f010020; public static final int buttonStyle = 0x7f0100d4; public static final int buttonStyleSmall = 0x7f0100d5; public static final int buttonTint = 0x7f010026; public static final int buttonTintMode = 0x7f010027; public static final int checkboxStyle = 0x7f0100d6; public static final int checkedTextViewStyle = 0x7f0100d7; public static final int closeIcon = 0x7f01005d; public static final int closeItemLayout = 0x7f01001d; public static final int collapseContentDescription = 0x7f0100e8; public static final int collapseIcon = 0x7f0100e7; public static final int color = 0x7f010028; public static final int colorAccent = 0x7f0100c4; public static final int colorButtonNormal = 0x7f0100c8; public static final int colorControlActivated = 0x7f0100c6; public static final int colorControlHighlight = 0x7f0100c7; public static final int colorControlNormal = 0x7f0100c5; public static final int colorPrimary = 0x7f0100c2; public static final int colorPrimaryDark = 0x7f0100c3; public static final int colorSwitchThumbNormal = 0x7f0100c9; public static final int commitIcon = 0x7f010062; public static final int contentInsetEnd = 0x7f010018; public static final int contentInsetLeft = 0x7f010019; public static final int contentInsetRight = 0x7f01001a; public static final int contentInsetStart = 0x7f010017; public static final int controlBackground = 0x7f0100ca; public static final int customNavigationLayout = 0x7f010010; public static final int defaultQueryHint = 0x7f01005c; public static final int dialogPreferredPadding = 0x7f01009c; public static final int dialogTheme = 0x7f01009b; public static final int displayOptions = 0x7f010006; public static final int divider = 0x7f01000c; public static final int dividerHorizontal = 0x7f0100a9; public static final int dividerPadding = 0x7f01004b; public static final int dividerVertical = 0x7f0100a8; public static final int drawableSize = 0x7f01002a; public static final int drawerArrowStyle = 0x7f010001; public static final int dropDownListViewStyle = 0x7f0100ba; public static final int dropdownListPreferredItemHeight = 0x7f01009f; public static final int editTextBackground = 0x7f0100b0; public static final int editTextColor = 0x7f0100af; public static final int editTextStyle = 0x7f0100d8; public static final int elevation = 0x7f01001b; public static final int expandActivityOverflowButtonDrawable = 0x7f01001f; public static final int fadeDuration = 0x7f010030; public static final int failureImage = 0x7f010036; public static final int failureImageScaleType = 0x7f010037; public static final int gapBetweenBars = 0x7f01002b; public static final int goIcon = 0x7f01005e; public static final int height = 0x7f010002; public static final int hideOnContentScroll = 0x7f010016; public static final int homeAsUpIndicator = 0x7f0100a1; public static final int homeLayout = 0x7f010011; public static final int icon = 0x7f01000a; public static final int iconifiedByDefault = 0x7f01005a; public static final int indeterminateProgressStyle = 0x7f010013; public static final int initialActivityCount = 0x7f01001e; public static final int isLightTheme = 0x7f010003; public static final int itemPadding = 0x7f010015; public static final int layout = 0x7f010059; public static final int listChoiceBackgroundIndicator = 0x7f0100c1; public static final int listDividerAlertDialog = 0x7f01009d; public static final int listItemLayout = 0x7f010024; public static final int listLayout = 0x7f010021; public static final int listPopupWindowStyle = 0x7f0100bb; public static final int listPreferredItemHeight = 0x7f0100b5; public static final int listPreferredItemHeightLarge = 0x7f0100b7; public static final int listPreferredItemHeightSmall = 0x7f0100b6; public static final int listPreferredItemPaddingLeft = 0x7f0100b8; public static final int listPreferredItemPaddingRight = 0x7f0100b9; public static final int logo = 0x7f01000b; public static final int logoDescription = 0x7f0100eb; public static final int maxButtonHeight = 0x7f0100e6; public static final int measureWithLargestChild = 0x7f010049; public static final int multiChoiceItemLayout = 0x7f010022; public static final int navigationContentDescription = 0x7f0100ea; public static final int navigationIcon = 0x7f0100e9; public static final int navigationMode = 0x7f010005; public static final int overlapAnchor = 0x7f010057; public static final int overlayImage = 0x7f01003d; public static final int paddingEnd = 0x7f0100ef; public static final int paddingStart = 0x7f0100ee; public static final int panelBackground = 0x7f0100be; public static final int panelMenuListTheme = 0x7f0100c0; public static final int panelMenuListWidth = 0x7f0100bf; public static final int placeholderImage = 0x7f010032; public static final int placeholderImageScaleType = 0x7f010033; public static final int popupMenuStyle = 0x7f0100ad; public static final int popupTheme = 0x7f01001c; public static final int popupWindowStyle = 0x7f0100ae; public static final int preserveIconSpacing = 0x7f010056; public static final int pressedStateOverlayImage = 0x7f01003e; public static final int progressBarAutoRotateInterval = 0x7f01003a; public static final int progressBarImage = 0x7f010038; public static final int progressBarImageScaleType = 0x7f010039; public static final int progressBarPadding = 0x7f010014; public static final int progressBarStyle = 0x7f010012; public static final int queryBackground = 0x7f010064; public static final int queryHint = 0x7f01005b; public static final int radioButtonStyle = 0x7f0100d9; public static final int ratingBarStyle = 0x7f0100da; public static final int retryImage = 0x7f010034; public static final int retryImageScaleType = 0x7f010035; public static final int roundAsCircle = 0x7f01003f; public static final int roundBottomLeft = 0x7f010044; public static final int roundBottomRight = 0x7f010043; public static final int roundTopLeft = 0x7f010041; public static final int roundTopRight = 0x7f010042; public static final int roundWithOverlayColor = 0x7f010045; public static final int roundedCornerRadius = 0x7f010040; public static final int roundingBorderColor = 0x7f010047; public static final int roundingBorderPadding = 0x7f010048; public static final int roundingBorderWidth = 0x7f010046; public static final int searchHintIcon = 0x7f010060; public static final int searchIcon = 0x7f01005f; public static final int searchViewStyle = 0x7f0100b4; public static final int selectableItemBackground = 0x7f0100a5; public static final int selectableItemBackgroundBorderless = 0x7f0100a6; public static final int showAsAction = 0x7f010052; public static final int showDividers = 0x7f01004a; public static final int showText = 0x7f010072; public static final int singleChoiceItemLayout = 0x7f010023; public static final int spinBars = 0x7f010029; public static final int spinnerDropDownItemStyle = 0x7f0100a0; public static final int spinnerStyle = 0x7f0100db; public static final int splitTrack = 0x7f010071; public static final int state_above_anchor = 0x7f010058; public static final int submitBackground = 0x7f010065; public static final int subtitle = 0x7f010007; public static final int subtitleTextAppearance = 0x7f0100e0; public static final int subtitleTextColor = 0x7f0100ed; public static final int subtitleTextStyle = 0x7f010009; public static final int suggestionRowLayout = 0x7f010063; public static final int switchMinWidth = 0x7f01006f; public static final int switchPadding = 0x7f010070; public static final int switchStyle = 0x7f0100dc; public static final int switchTextAppearance = 0x7f01006e; public static final int textAllCaps = 0x7f010025; public static final int textAppearanceLargePopupMenu = 0x7f010099; public static final int textAppearanceListItem = 0x7f0100bc; public static final int textAppearanceListItemSmall = 0x7f0100bd; public static final int textAppearanceSearchResultSubtitle = 0x7f0100b2; public static final int textAppearanceSearchResultTitle = 0x7f0100b1; public static final int textAppearanceSmallPopupMenu = 0x7f01009a; public static final int textColorAlertDialogListItem = 0x7f0100cf; public static final int textColorSearchUrl = 0x7f0100b3; public static final int theme = 0x7f0100f0; public static final int thickness = 0x7f01002f; public static final int thumbTextPadding = 0x7f01006d; public static final int title = 0x7f010004; public static final int titleMarginBottom = 0x7f0100e5; public static final int titleMarginEnd = 0x7f0100e3; public static final int titleMarginStart = 0x7f0100e2; public static final int titleMarginTop = 0x7f0100e4; public static final int titleMargins = 0x7f0100e1; public static final int titleTextAppearance = 0x7f0100df; public static final int titleTextColor = 0x7f0100ec; public static final int titleTextStyle = 0x7f010008; public static final int toolbarNavigationButtonStyle = 0x7f0100ac; public static final int toolbarStyle = 0x7f0100ab; public static final int track = 0x7f01006c; public static final int viewAspectRatio = 0x7f010031; public static final int voiceIcon = 0x7f010061; public static final int windowActionBar = 0x7f010073; public static final int windowActionBarOverlay = 0x7f010075; public static final int windowActionModeOverlay = 0x7f010076; public static final int windowFixedHeightMajor = 0x7f01007a; public static final int windowFixedHeightMinor = 0x7f010078; public static final int windowFixedWidthMajor = 0x7f010077; public static final int windowFixedWidthMinor = 0x7f010079; public static final int windowMinWidthMajor = 0x7f01007b; public static final int windowMinWidthMinor = 0x7f01007c; public static final int windowNoTitle = 0x7f010074; } 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 = 0x7f0e0048; public static final int abc_background_cache_hint_selector_material_light = 0x7f0e0049; public static final int abc_color_highlight_material = 0x7f0e004a; public static final int abc_input_method_navigation_guard = 0x7f0e0000; public static final int abc_primary_text_disable_only_material_dark = 0x7f0e004b; public static final int abc_primary_text_disable_only_material_light = 0x7f0e004c; public static final int abc_primary_text_material_dark = 0x7f0e004d; public static final int abc_primary_text_material_light = 0x7f0e004e; public static final int abc_search_url_text = 0x7f0e004f; public static final int abc_search_url_text_normal = 0x7f0e0001; public static final int abc_search_url_text_pressed = 0x7f0e0002; public static final int abc_search_url_text_selected = 0x7f0e0003; public static final int abc_secondary_text_material_dark = 0x7f0e0050; public static final int abc_secondary_text_material_light = 0x7f0e0051; public static final int accent_material_dark = 0x7f0e0004; public static final int accent_material_light = 0x7f0e0005; public static final int background_floating_material_dark = 0x7f0e0006; public static final int background_floating_material_light = 0x7f0e0007; public static final int background_material_dark = 0x7f0e0008; public static final int background_material_light = 0x7f0e0009; public static final int bright_foreground_disabled_material_dark = 0x7f0e000a; public static final int bright_foreground_disabled_material_light = 0x7f0e000b; public static final int bright_foreground_inverse_material_dark = 0x7f0e000c; public static final int bright_foreground_inverse_material_light = 0x7f0e000d; public static final int bright_foreground_material_dark = 0x7f0e000e; public static final int bright_foreground_material_light = 0x7f0e000f; public static final int button_material_dark = 0x7f0e0010; public static final int button_material_light = 0x7f0e0011; public static final int catalyst_redbox_background = 0x7f0e0012; public static final int dim_foreground_disabled_material_dark = 0x7f0e001b; public static final int dim_foreground_disabled_material_light = 0x7f0e001c; public static final int dim_foreground_material_dark = 0x7f0e001d; public static final int dim_foreground_material_light = 0x7f0e001e; public static final int foreground_material_dark = 0x7f0e001f; public static final int foreground_material_light = 0x7f0e0020; public static final int highlighted_text_material_dark = 0x7f0e0021; public static final int highlighted_text_material_light = 0x7f0e0022; public static final int hint_foreground_material_dark = 0x7f0e0023; public static final int hint_foreground_material_light = 0x7f0e0024; public static final int material_blue_grey_800 = 0x7f0e0025; public static final int material_blue_grey_900 = 0x7f0e0026; public static final int material_blue_grey_950 = 0x7f0e0027; public static final int material_deep_teal_200 = 0x7f0e0028; public static final int material_deep_teal_500 = 0x7f0e0029; public static final int material_grey_100 = 0x7f0e002a; public static final int material_grey_300 = 0x7f0e002b; public static final int material_grey_50 = 0x7f0e002c; public static final int material_grey_600 = 0x7f0e002d; public static final int material_grey_800 = 0x7f0e002e; public static final int material_grey_850 = 0x7f0e002f; public static final int material_grey_900 = 0x7f0e0030; public static final int primary_dark_material_dark = 0x7f0e0036; public static final int primary_dark_material_light = 0x7f0e0037; public static final int primary_material_dark = 0x7f0e0038; public static final int primary_material_light = 0x7f0e0039; public static final int primary_text_default_material_dark = 0x7f0e003a; public static final int primary_text_default_material_light = 0x7f0e003b; public static final int primary_text_disabled_material_dark = 0x7f0e003c; public static final int primary_text_disabled_material_light = 0x7f0e003d; public static final int ripple_material_dark = 0x7f0e003e; public static final int ripple_material_light = 0x7f0e003f; public static final int secondary_text_default_material_dark = 0x7f0e0040; public static final int secondary_text_default_material_light = 0x7f0e0041; public static final int secondary_text_disabled_material_dark = 0x7f0e0042; public static final int secondary_text_disabled_material_light = 0x7f0e0043; public static final int switch_thumb_disabled_material_dark = 0x7f0e0044; public static final int switch_thumb_disabled_material_light = 0x7f0e0045; public static final int switch_thumb_material_dark = 0x7f0e0055; public static final int switch_thumb_material_light = 0x7f0e0056; public static final int switch_thumb_normal_material_dark = 0x7f0e0046; public static final int switch_thumb_normal_material_light = 0x7f0e0047; } 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 = 0x7f09000f; public static final int abc_action_bar_overflow_padding_end_material = 0x7f090010; public static final int abc_action_bar_overflow_padding_start_material = 0x7f090011; public static final int abc_action_bar_progress_bar_size = 0x7f090002; public static final int abc_action_bar_stacked_max_height = 0x7f090012; public static final int abc_action_bar_stacked_tab_max_width = 0x7f090013; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f090014; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f090015; public static final int abc_action_button_min_height_material = 0x7f090016; public static final int abc_action_button_min_width_material = 0x7f090017; public static final int abc_action_button_min_width_overflow_material = 0x7f090018; public static final int abc_alert_dialog_button_bar_height = 0x7f090000; public static final int abc_button_inset_horizontal_material = 0x7f090019; public static final int abc_button_inset_vertical_material = 0x7f09001a; public static final int abc_button_padding_horizontal_material = 0x7f09001b; public static final int abc_button_padding_vertical_material = 0x7f09001c; public static final int abc_config_prefDialogWidth = 0x7f090005; public static final int abc_control_corner_material = 0x7f09001d; public static final int abc_control_inset_material = 0x7f09001e; public static final int abc_control_padding_material = 0x7f09001f; public static final int abc_dialog_list_padding_vertical_material = 0x7f090020; public static final int abc_dialog_min_width_major = 0x7f090021; public static final int abc_dialog_min_width_minor = 0x7f090022; public static final int abc_dialog_padding_material = 0x7f090023; public static final int abc_dialog_padding_top_material = 0x7f090024; public static final int abc_disabled_alpha_material_dark = 0x7f090025; public static final int abc_disabled_alpha_material_light = 0x7f090026; public static final int abc_dropdownitem_icon_width = 0x7f090027; public static final int abc_dropdownitem_text_padding_left = 0x7f090028; public static final int abc_dropdownitem_text_padding_right = 0x7f090029; public static final int abc_edit_text_inset_bottom_material = 0x7f09002a; public static final int abc_edit_text_inset_horizontal_material = 0x7f09002b; public static final int abc_edit_text_inset_top_material = 0x7f09002c; public static final int abc_floating_window_z = 0x7f09002d; public static final int abc_list_item_padding_horizontal_material = 0x7f09002e; public static final int abc_panel_menu_list_width = 0x7f09002f; public static final int abc_search_view_preferred_width = 0x7f090030; 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 = 0x7f090031; public static final int abc_text_size_body_2_material = 0x7f090032; public static final int abc_text_size_button_material = 0x7f090033; public static final int abc_text_size_caption_material = 0x7f090034; public static final int abc_text_size_display_1_material = 0x7f090035; public static final int abc_text_size_display_2_material = 0x7f090036; public static final int abc_text_size_display_3_material = 0x7f090037; public static final int abc_text_size_display_4_material = 0x7f090038; public static final int abc_text_size_headline_material = 0x7f090039; public static final int abc_text_size_large_material = 0x7f09003a; public static final int abc_text_size_medium_material = 0x7f09003b; public static final int abc_text_size_menu_material = 0x7f09003c; public static final int abc_text_size_small_material = 0x7f09003d; public static final int abc_text_size_subhead_material = 0x7f09003e; public static final int abc_text_size_subtitle_material_toolbar = 0x7f090003; public static final int abc_text_size_title_material = 0x7f09003f; public static final int abc_text_size_title_material_toolbar = 0x7f090004; 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 = 0x7f090040; public static final int disabled_alpha_material_light = 0x7f090041; public static final int highlight_alpha_material_colored = 0x7f090042; public static final int highlight_alpha_material_dark = 0x7f090043; public static final int highlight_alpha_material_light = 0x7f090044; public static final int notification_large_icon_height = 0x7f090049; public static final int notification_large_icon_width = 0x7f09004a; public static final int notification_subtext_size = 0x7f09004b; } 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 notification_template_icon_bg = 0x7f020054; } public static final class id { public static final int action0 = 0x7f0f006f; public static final int action_bar = 0x7f0f005f; public static final int action_bar_activity_content = 0x7f0f0000; public static final int action_bar_container = 0x7f0f005e; public static final int action_bar_root = 0x7f0f005a; public static final int action_bar_spinner = 0x7f0f0001; public static final int action_bar_subtitle = 0x7f0f0043; public static final int action_bar_title = 0x7f0f0042; public static final int action_context_bar = 0x7f0f0060; public static final int action_divider = 0x7f0f0073; public static final int action_menu_divider = 0x7f0f0002; public static final int action_menu_presenter = 0x7f0f0003; public static final int action_mode_bar = 0x7f0f005c; public static final int action_mode_bar_stub = 0x7f0f005b; public static final int action_mode_close_button = 0x7f0f0044; public static final int activity_chooser_view_content = 0x7f0f0045; public static final int alertTitle = 0x7f0f004f; public static final int always = 0x7f0f0027; public static final int beginning = 0x7f0f0022; public static final int buttonPanel = 0x7f0f0055; public static final int cancel_action = 0x7f0f0070; public static final int catalyst_redbox_title = 0x7f0f0083; public static final int center = 0x7f0f001a; public static final int centerCrop = 0x7f0f001b; public static final int centerInside = 0x7f0f001c; public static final int checkbox = 0x7f0f0057; public static final int chronometer = 0x7f0f0076; public static final int collapseActionView = 0x7f0f0028; public static final int contentPanel = 0x7f0f0050; public static final int custom = 0x7f0f0054; public static final int customPanel = 0x7f0f0053; public static final int decor_content_parent = 0x7f0f005d; public static final int default_activity_button = 0x7f0f0048; public static final int disableHome = 0x7f0f000e; public static final int edit_query = 0x7f0f0061; public static final int end = 0x7f0f0023; public static final int end_padder = 0x7f0f007b; public static final int expand_activities_button = 0x7f0f0046; public static final int expanded_menu = 0x7f0f0056; public static final int fitCenter = 0x7f0f001d; public static final int fitEnd = 0x7f0f001e; public static final int fitStart = 0x7f0f001f; public static final int fitXY = 0x7f0f0020; public static final int focusCrop = 0x7f0f0021; public static final int fps_text = 0x7f0f006e; public static final int home = 0x7f0f0004; public static final int homeAsUp = 0x7f0f000f; public static final int icon = 0x7f0f004a; public static final int ifRoom = 0x7f0f0029; public static final int image = 0x7f0f0047; public static final int info = 0x7f0f007a; public static final int line1 = 0x7f0f0074; public static final int line3 = 0x7f0f0078; public static final int listMode = 0x7f0f000b; public static final int list_item = 0x7f0f0049; public static final int media_actions = 0x7f0f0072; public static final int middle = 0x7f0f0024; public static final int multiply = 0x7f0f0015; public static final int never = 0x7f0f002a; public static final int none = 0x7f0f0010; public static final int normal = 0x7f0f000c; public static final int parentPanel = 0x7f0f004c; public static final int progress_circular = 0x7f0f0005; public static final int progress_horizontal = 0x7f0f0006; public static final int radio = 0x7f0f0059; public static final int react_test_id = 0x7f0f0007; public static final int rn_frame_file = 0x7f0f0082; public static final int rn_frame_method = 0x7f0f0081; public static final int rn_redbox_copy_button = 0x7f0f008a; public static final int rn_redbox_dismiss_button = 0x7f0f0088; public static final int rn_redbox_line_separator = 0x7f0f0085; public static final int rn_redbox_loading_indicator = 0x7f0f0086; public static final int rn_redbox_reload_button = 0x7f0f0089; public static final int rn_redbox_report_button = 0x7f0f008b; public static final int rn_redbox_report_label = 0x7f0f0087; public static final int rn_redbox_stack = 0x7f0f0084; public static final int screen = 0x7f0f0016; public static final int scrollView = 0x7f0f0051; public static final int search_badge = 0x7f0f0063; public static final int search_bar = 0x7f0f0062; public static final int search_button = 0x7f0f0064; public static final int search_close_btn = 0x7f0f0069; public static final int search_edit_frame = 0x7f0f0065; public static final int search_go_btn = 0x7f0f006b; public static final int search_mag_icon = 0x7f0f0066; public static final int search_plate = 0x7f0f0067; public static final int search_src_text = 0x7f0f0068; public static final int search_voice_btn = 0x7f0f006c; public static final int select_dialog_listview = 0x7f0f006d; public static final int shortcut = 0x7f0f0058; public static final int showCustom = 0x7f0f0011; public static final int showHome = 0x7f0f0012; public static final int showTitle = 0x7f0f0013; public static final int split_action_bar = 0x7f0f0008; public static final int src_atop = 0x7f0f0017; public static final int src_in = 0x7f0f0018; public static final int src_over = 0x7f0f0019; public static final int status_bar_latest_event_content = 0x7f0f0071; public static final int submit_area = 0x7f0f006a; public static final int tabMode = 0x7f0f000d; public static final int text = 0x7f0f0079; public static final int text2 = 0x7f0f0077; public static final int textSpacerNoButtons = 0x7f0f0052; public static final int time = 0x7f0f0075; public static final int title = 0x7f0f004b; public static final int title_template = 0x7f0f004e; public static final int topPanel = 0x7f0f004d; public static final int up = 0x7f0f0009; public static final int useLogo = 0x7f0f0014; public static final int view_tag_native_id = 0x7f0f000a; public static final int withText = 0x7f0f002b; public static final int wrap_content = 0x7f0f0041; } 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 status_bar_notification_info_maxnum = 0x7f0c0006; } 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 dev_loading_view = 0x7f040018; public static final int fps_view = 0x7f040019; public static final int list_item = 0x7f04001a; public static final int notification_media_action = 0x7f04001b; public static final int notification_media_cancel_action = 0x7f04001c; public static final int notification_template_big_media = 0x7f04001d; public static final int notification_template_big_media_narrow = 0x7f04001e; public static final int notification_template_lines = 0x7f04001f; public static final int notification_template_media = 0x7f040020; public static final int notification_template_part_chronometer = 0x7f040021; public static final int notification_template_part_time = 0x7f040022; public static final int redbox_item_frame = 0x7f040024; public static final int redbox_item_title = 0x7f040025; public static final int redbox_view = 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 support_simple_spinner_dropdown_item = 0x7f04002a; } 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 catalyst_copy_button = 0x7f080024; public static final int catalyst_debugjs = 0x7f080025; public static final int catalyst_debugjs_off = 0x7f080026; public static final int catalyst_dismiss_button = 0x7f080027; public static final int catalyst_element_inspector = 0x7f080028; public static final int catalyst_heap_capture = 0x7f080029; public static final int catalyst_hot_module_replacement = 0x7f08002a; public static final int catalyst_hot_module_replacement_off = 0x7f08002b; public static final int catalyst_jsload_error = 0x7f08002c; public static final int catalyst_live_reload = 0x7f08002d; public static final int catalyst_live_reload_off = 0x7f08002e; public static final int catalyst_loading_from_url = 0x7f08002f; public static final int catalyst_perf_monitor = 0x7f080030; public static final int catalyst_perf_monitor_off = 0x7f080031; public static final int catalyst_poke_sampling_profiler = 0x7f080032; public static final int catalyst_reload_button = 0x7f080033; public static final int catalyst_reloadjs = 0x7f080034; public static final int catalyst_remotedbg_error = 0x7f080035; public static final int catalyst_remotedbg_message = 0x7f080036; public static final int catalyst_report_button = 0x7f080037; public static final int catalyst_settings = 0x7f080038; public static final int catalyst_settings_title = 0x7f080039; public static final int status_bar_notification_info_overflow = 0x7f080022; } 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; public static final int Animation_Catalyst_RedBox = 0x7f0a007e; public static final int Base_AlertDialog_AppCompat = 0x7f0a0080; public static final int Base_AlertDialog_AppCompat_Light = 0x7f0a0081; public static final int Base_Animation_AppCompat_Dialog = 0x7f0a0082; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0a0083; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0a0085; public static final int Base_DialogWindowTitle_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 = 0x7f0a0086; 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 = 0x7f0a0087; 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 = 0x7f0a0088; 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_ThemeOverlay_AppCompat = 0x7f0a0091; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0a0092; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0a0093; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0a0094; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0a0095; public static final int Base_Theme_AppCompat = 0x7f0a004e; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0a0089; public static final int Base_Theme_AppCompat_Dialog = 0x7f0a0009; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0a0001; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0a008a; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0a008b; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0a008c; public static final int Base_Theme_AppCompat_Light = 0x7f0a004f; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0a008d; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0a000a; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0a0002; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0a008e; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0a008f; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0a0090; 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 = 0x7f0a0096; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0a0097; public static final int Base_V7_Theme_AppCompat_Light = 0x7f0a0098; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0a0099; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0a009a; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0a009b; public static final int Base_Widget_AppCompat_ActionBar = 0x7f0a009c; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0a009d; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0a009e; 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 = 0x7f0a009f; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0a00a0; 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_ButtonBar = 0x7f0a005d; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0a00a2; 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 = 0x7f0a00a1; 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_CompoundButton_CheckBox = 0x7f0a005e; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0a005f; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0a00a3; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0a0000; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0a00a4; 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 = 0x7f0a00a5; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0a00a6; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0a00a7; 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 = 0x7f0a00a8; 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 = 0x7f0a00a9; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0a00aa; 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 = 0x7f0a00ab; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0a0070; public static final int CalendarDatePickerDialog = 0x7f0a00ac; public static final int CalendarDatePickerStyle = 0x7f0a00ad; public static final int DefaultExplainingPermissionsTheme = 0x7f0a00ae; public static final int DialogAnimationFade = 0x7f0a00af; public static final int DialogAnimationSlide = 0x7f0a00b0; 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_SearchView_MagIcon = 0x7f0a002c; 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 SpinnerDatePickerDialog = 0x7f0a00e1; public static final int SpinnerDatePickerStyle = 0x7f0a00e2; public static final int TextAppearance_AppCompat = 0x7f0a00e3; public static final int TextAppearance_AppCompat_Body1 = 0x7f0a00e4; public static final int TextAppearance_AppCompat_Body2 = 0x7f0a00e5; public static final int TextAppearance_AppCompat_Button = 0x7f0a00e6; public static final int TextAppearance_AppCompat_Caption = 0x7f0a00e7; public static final int TextAppearance_AppCompat_Display1 = 0x7f0a00e8; public static final int TextAppearance_AppCompat_Display2 = 0x7f0a00e9; public static final int TextAppearance_AppCompat_Display3 = 0x7f0a00ea; public static final int TextAppearance_AppCompat_Display4 = 0x7f0a00eb; public static final int TextAppearance_AppCompat_Headline = 0x7f0a00ec; public static final int TextAppearance_AppCompat_Inverse = 0x7f0a00ed; public static final int TextAppearance_AppCompat_Large = 0x7f0a00ee; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0a00ef; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0a00f0; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0a00f1; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0a00f2; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0a00f3; public static final int TextAppearance_AppCompat_Medium = 0x7f0a00f4; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0a00f5; public static final int TextAppearance_AppCompat_Menu = 0x7f0a00f6; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0a00f7; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0a00f8; public static final int TextAppearance_AppCompat_Small = 0x7f0a00f9; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0a00fa; public static final int TextAppearance_AppCompat_Subhead = 0x7f0a00fb; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0a00fc; public static final int TextAppearance_AppCompat_Title = 0x7f0a00fd; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0a00fe; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0a00ff; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0a0100; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0a0101; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0a0102; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0a0103; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0a0104; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0a0105; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0a0106; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0a0107; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0a0108; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0a0109; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0a010a; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0a010b; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0a010c; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0a010d; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0a010e; 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 = 0x7f0a010f; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0a0110; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0a0111; public static final int Theme = 0x7f0a0112; public static final int ThemeOverlay_AppCompat = 0x7f0a0128; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0a0129; public static final int ThemeOverlay_AppCompat_Dark = 0x7f0a012a; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0a012b; public static final int ThemeOverlay_AppCompat_Light = 0x7f0a012c; public static final int Theme_AppCompat = 0x7f0a0113; public static final int Theme_AppCompat_CompactMenu = 0x7f0a0114; public static final int Theme_AppCompat_Dialog = 0x7f0a0115; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0a0118; public static final int Theme_AppCompat_Dialog_Alert = 0x7f0a0116; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0a0117; public static final int Theme_AppCompat_Light = 0x7f0a0119; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0a011a; public static final int Theme_AppCompat_Light_Dialog = 0x7f0a011b; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0a011e; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0a011c; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0a011d; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0a011f; public static final int Theme_AppCompat_NoActionBar = 0x7f0a0120; public static final int Theme_Catalyst = 0x7f0a0121; public static final int Theme_Catalyst_RedBox = 0x7f0a0122; public static final int Theme_FullScreenDialog = 0x7f0a0123; public static final int Theme_FullScreenDialogAnimatedFade = 0x7f0a0124; public static final int Theme_FullScreenDialogAnimatedSlide = 0x7f0a0125; public static final int Theme_ReactNative_AppCompat_Light = 0x7f0a0126; public static final int Theme_ReactNative_AppCompat_Light_NoActionBar_FullScreen = 0x7f0a0127; public static final int Widget_AppCompat_ActionBar = 0x7f0a012d; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0a012e; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0a012f; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0a0130; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0a0131; public static final int Widget_AppCompat_ActionButton = 0x7f0a0132; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0a0133; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0a0134; public static final int Widget_AppCompat_ActionMode = 0x7f0a0135; public static final int Widget_AppCompat_ActivityChooserView = 0x7f0a0136; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0a0137; public static final int Widget_AppCompat_Button = 0x7f0a0138; public static final int Widget_AppCompat_ButtonBar = 0x7f0a013e; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0a013f; public static final int Widget_AppCompat_Button_Borderless = 0x7f0a0139; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0a013a; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0a013b; public static final int Widget_AppCompat_Button_Colored = 0x7f0a013c; public static final int Widget_AppCompat_Button_Small = 0x7f0a013d; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0a0140; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0a0141; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0a0142; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0a0143; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0a0144; public static final int Widget_AppCompat_EditText = 0x7f0a0145; public static final int Widget_AppCompat_Light_ActionBar = 0x7f0a0146; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0a0147; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0a0148; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0a0149; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0a014a; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0a014b; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0a014c; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0a014d; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0a014e; public static final int Widget_AppCompat_Light_ActionButton = 0x7f0a014f; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0a0150; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0a0151; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0a0152; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0a0153; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0a0154; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0a0155; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0a0156; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0a0157; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0a0158; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0a0159; public static final int Widget_AppCompat_Light_SearchView = 0x7f0a015a; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0a015b; public static final int Widget_AppCompat_ListPopupWindow = 0x7f0a015c; public static final int Widget_AppCompat_ListView = 0x7f0a015d; public static final int Widget_AppCompat_ListView_DropDown = 0x7f0a015e; public static final int Widget_AppCompat_ListView_Menu = 0x7f0a015f; public static final int Widget_AppCompat_PopupMenu = 0x7f0a0160; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0a0161; public static final int Widget_AppCompat_PopupWindow = 0x7f0a0162; public static final int Widget_AppCompat_ProgressBar = 0x7f0a0163; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0a0164; public static final int Widget_AppCompat_RatingBar = 0x7f0a0165; public static final int Widget_AppCompat_SearchView = 0x7f0a0166; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0a0167; public static final int Widget_AppCompat_Spinner = 0x7f0a0168; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0a0169; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0a016a; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0a016b; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0a016c; public static final int Widget_AppCompat_Toolbar = 0x7f0a016d; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0a016e; } public static final class styleable { public static final int[] ActionBar = { 0x7f010002, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f0100a1 }; public static final int[] ActionBarLayout = { 0x010100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int ActionBar_background = 10; public static final int ActionBar_backgroundSplit = 12; public static final int ActionBar_backgroundStacked = 11; public static final int ActionBar_contentInsetEnd = 21; public static final int ActionBar_contentInsetLeft = 22; public static final int ActionBar_contentInsetRight = 23; public static final int ActionBar_contentInsetStart = 20; public static final int ActionBar_customNavigationLayout = 13; public static final int ActionBar_displayOptions = 3; public static final int ActionBar_divider = 9; public static final int ActionBar_elevation = 24; public static final int ActionBar_height = 0; public static final int ActionBar_hideOnContentScroll = 19; public static final int ActionBar_homeAsUpIndicator = 26; public static final int ActionBar_homeLayout = 14; public static final int ActionBar_icon = 7; public static final int ActionBar_indeterminateProgressStyle = 16; public static final int ActionBar_itemPadding = 18; public static final int ActionBar_logo = 8; public static final int ActionBar_navigationMode = 2; public static final int ActionBar_popupTheme = 25; public static final int ActionBar_progressBarPadding = 17; public static final int ActionBar_progressBarStyle = 15; public static final int ActionBar_subtitle = 4; public static final int ActionBar_subtitleTextStyle = 6; public static final int ActionBar_title = 1; public static final int ActionBar_titleTextStyle = 5; public static final int[] ActionMenuItemView = { 0x0101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f010002, 0x7f010008, 0x7f010009, 0x7f01000d, 0x7f01000f, 0x7f01001d }; public static final int ActionMode_background = 3; public static final int ActionMode_backgroundSplit = 4; public static final int ActionMode_closeItemLayout = 5; public static final int ActionMode_height = 0; public static final int ActionMode_subtitleTextStyle = 2; public static final int ActionMode_titleTextStyle = 1; public static final int[] ActivityChooserView = { 0x7f01001e, 0x7f01001f }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; public static final int ActivityChooserView_initialActivityCount = 0; public static final int[] AlertDialog = { 0x010100f2, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024 }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonPanelSideLayout = 1; public static final int AlertDialog_listItemLayout = 5; public static final int AlertDialog_listLayout = 2; public static final int AlertDialog_multiChoiceItemLayout = 3; public static final int AlertDialog_singleChoiceItemLayout = 4; public static final int[] AppCompatTextView = { 0x01010034, 0x7f010025 }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_textAllCaps = 1; public static final int[] CompoundButton = { 0x01010107, 0x7f010026, 0x7f010027 }; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonTint = 1; public static final int CompoundButton_buttonTintMode = 2; public static final int[] DrawerArrowToggle = { 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f }; public static final int DrawerArrowToggle_arrowHeadLength = 4; public static final int DrawerArrowToggle_arrowShaftLength = 5; public static final int DrawerArrowToggle_barLength = 6; public static final int DrawerArrowToggle_color = 0; public static final int DrawerArrowToggle_drawableSize = 2; public static final int DrawerArrowToggle_gapBetweenBars = 3; public static final int DrawerArrowToggle_spinBars = 1; public static final int DrawerArrowToggle_thickness = 7; public static final int[] GenericDraweeHierarchy = { 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048 }; public static final int GenericDraweeHierarchy_actualImageScaleType = 11; public static final int GenericDraweeHierarchy_backgroundImage = 12; public static final int GenericDraweeHierarchy_fadeDuration = 0; public static final int GenericDraweeHierarchy_failureImage = 6; public static final int GenericDraweeHierarchy_failureImageScaleType = 7; public static final int GenericDraweeHierarchy_overlayImage = 13; public static final int GenericDraweeHierarchy_placeholderImage = 2; public static final int GenericDraweeHierarchy_placeholderImageScaleType = 3; public static final int GenericDraweeHierarchy_pressedStateOverlayImage = 14; public static final int GenericDraweeHierarchy_progressBarAutoRotateInterval = 10; public static final int GenericDraweeHierarchy_progressBarImage = 8; public static final int GenericDraweeHierarchy_progressBarImageScaleType = 9; public static final int GenericDraweeHierarchy_retryImage = 4; public static final int GenericDraweeHierarchy_retryImageScaleType = 5; public static final int GenericDraweeHierarchy_roundAsCircle = 15; public static final int GenericDraweeHierarchy_roundBottomLeft = 20; public static final int GenericDraweeHierarchy_roundBottomRight = 19; public static final int GenericDraweeHierarchy_roundTopLeft = 17; public static final int GenericDraweeHierarchy_roundTopRight = 18; public static final int GenericDraweeHierarchy_roundWithOverlayColor = 21; public static final int GenericDraweeHierarchy_roundedCornerRadius = 16; public static final int GenericDraweeHierarchy_roundingBorderColor = 23; public static final int GenericDraweeHierarchy_roundingBorderPadding = 24; public static final int GenericDraweeHierarchy_roundingBorderWidth = 22; public static final int GenericDraweeHierarchy_viewAspectRatio = 1; public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f01000c, 0x7f010049, 0x7f01004a, 0x7f01004b }; public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 8; public static final int LinearLayoutCompat_measureWithLargestChild = 6; public static final int LinearLayoutCompat_showDividers = 7; public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static final int MenuGroup_android_checkableBehavior = 5; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_visible = 2; public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055 }; public static final int MenuItem_actionLayout = 14; public static final int MenuItem_actionProviderClass = 16; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_android_alphabeticShortcut = 9; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_android_orderInCategory = 6; public static final int MenuItem_android_title = 7; public static final int MenuItem_android_titleCondensed = 8; public static final int MenuItem_android_visible = 4; public static final int MenuItem_showAsAction = 13; public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f010056 }; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_preserveIconSpacing = 7; public static final int[] PopupWindow = { 0x01010176, 0x7f010057 }; public static final int[] PopupWindowBackgroundState = { 0x7f010058 }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_overlapAnchor = 1; public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065 }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_closeIcon = 8; public static final int SearchView_commitIcon = 13; public static final int SearchView_defaultQueryHint = 7; public static final int SearchView_goIcon = 9; public static final int SearchView_iconifiedByDefault = 5; public static final int SearchView_layout = 4; public static final int SearchView_queryBackground = 15; public static final int SearchView_queryHint = 6; public static final int SearchView_searchHintIcon = 11; public static final int SearchView_searchIcon = 10; public static final int SearchView_submitBackground = 16; public static final int SearchView_suggestionRowLayout = 14; public static final int SearchView_voiceIcon = 12; public static final int[] SimpleDraweeView = { 0x7f010069 }; public static final int SimpleDraweeView_actualImageUri = 0; public static final int[] Spinner = { 0x01010176, 0x0101017b, 0x01010262, 0x7f01001c }; public static final int Spinner_android_dropDownWidth = 2; public static final int Spinner_android_popupBackground = 0; public static final int Spinner_android_prompt = 1; public static final int Spinner_popupTheme = 3; public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072 }; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 9; public static final int SwitchCompat_splitTrack = 8; public static final int SwitchCompat_switchMinWidth = 6; public static final int SwitchCompat_switchPadding = 7; public static final int SwitchCompat_switchTextAppearance = 5; public static final int SwitchCompat_thumbTextPadding = 4; public static final int SwitchCompat_track = 3; public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f010025 }; public static final int TextAppearance_android_shadowColor = 4; public static final int TextAppearance_android_shadowDx = 5; public static final int TextAppearance_android_shadowDy = 6; public static final int TextAppearance_android_shadowRadius = 7; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_textAllCaps = 8; public static final int[] TextStyle = { 0x01010034, 0x01010095, 0x01010097, 0x01010098, 0x010100ab, 0x01010153, 0x0101015d, 0x01010161, 0x01010162, 0x01010163, 0x01010164 }; public static final int TextStyle_android_ellipsize = 4; public static final int TextStyle_android_maxLines = 5; public static final int TextStyle_android_shadowColor = 7; public static final int TextStyle_android_shadowDx = 8; public static final int TextStyle_android_shadowDy = 9; public static final int TextStyle_android_shadowRadius = 10; public static final int TextStyle_android_singleLine = 6; public static final int TextStyle_android_textAppearance = 0; public static final int TextStyle_android_textColor = 3; public static final int TextStyle_android_textSize = 1; public static final int TextStyle_android_textStyle = 2; public static final int[] Theme = { 0x01010057, 0x010100ae, 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, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb, 0x7f0100cc, 0x7f0100cd, 0x7f0100ce, 0x7f0100cf, 0x7f0100d0, 0x7f0100d1, 0x7f0100d2, 0x7f0100d3, 0x7f0100d4, 0x7f0100d5, 0x7f0100d6, 0x7f0100d7, 0x7f0100d8, 0x7f0100d9, 0x7f0100da, 0x7f0100db, 0x7f0100dc }; public static final int Theme_actionBarDivider = 23; public static final int Theme_actionBarItemBackground = 24; public static final int Theme_actionBarPopupTheme = 17; public static final int Theme_actionBarSize = 22; public static final int Theme_actionBarSplitStyle = 19; public static final int Theme_actionBarStyle = 18; public static final int Theme_actionBarTabBarStyle = 13; public static final int Theme_actionBarTabStyle = 12; public static final int Theme_actionBarTabTextStyle = 14; public static final int Theme_actionBarTheme = 20; public static final int Theme_actionBarWidgetTheme = 21; public static final int Theme_actionButtonStyle = 49; public static final int Theme_actionDropDownStyle = 45; public static final int Theme_actionMenuTextAppearance = 25; public static final int Theme_actionMenuTextColor = 26; public static final int Theme_actionModeBackground = 29; public static final int Theme_actionModeCloseButtonStyle = 28; public static final int Theme_actionModeCloseDrawable = 31; public static final int Theme_actionModeCopyDrawable = 33; public static final int Theme_actionModeCutDrawable = 32; public static final int Theme_actionModeFindDrawable = 37; public static final int Theme_actionModePasteDrawable = 34; public static final int Theme_actionModePopupWindowStyle = 39; public static final int Theme_actionModeSelectAllDrawable = 35; public static final int Theme_actionModeShareDrawable = 36; public static final int Theme_actionModeSplitBackground = 30; public static final int Theme_actionModeStyle = 27; public static final int Theme_actionModeWebSearchDrawable = 38; public static final int Theme_actionOverflowButtonStyle = 15; public static final int Theme_actionOverflowMenuStyle = 16; public static final int Theme_activityChooserViewStyle = 57; public static final int Theme_alertDialogButtonGroupStyle = 91; public static final int Theme_alertDialogCenterButtons = 92; public static final int Theme_alertDialogStyle = 90; public static final int Theme_alertDialogTheme = 93; public static final int Theme_android_windowAnimationStyle = 1; public static final int Theme_android_windowIsFloating = 0; public static final int Theme_autoCompleteTextViewStyle = 98; public static final int Theme_borderlessButtonStyle = 54; public static final int Theme_buttonBarButtonStyle = 51; public static final int Theme_buttonBarNegativeButtonStyle = 96; public static final int Theme_buttonBarNeutralButtonStyle = 97; public static final int Theme_buttonBarPositiveButtonStyle = 95; public static final int Theme_buttonBarStyle = 50; public static final int Theme_buttonStyle = 99; public static final int Theme_buttonStyleSmall = 100; public static final int Theme_checkboxStyle = 101; public static final int Theme_checkedTextViewStyle = 102; public static final int Theme_colorAccent = 83; public static final int Theme_colorButtonNormal = 87; public static final int Theme_colorControlActivated = 85; public static final int Theme_colorControlHighlight = 86; public static final int Theme_colorControlNormal = 84; public static final int Theme_colorPrimary = 81; public static final int Theme_colorPrimaryDark = 82; public static final int Theme_colorSwitchThumbNormal = 88; public static final int Theme_controlBackground = 89; public static final int Theme_dialogPreferredPadding = 43; public static final int Theme_dialogTheme = 42; public static final int Theme_dividerHorizontal = 56; public static final int Theme_dividerVertical = 55; public static final int Theme_dropDownListViewStyle = 73; public static final int Theme_dropdownListPreferredItemHeight = 46; public static final int Theme_editTextBackground = 63; public static final int Theme_editTextColor = 62; public static final int Theme_editTextStyle = 103; public static final int Theme_homeAsUpIndicator = 48; public static final int Theme_listChoiceBackgroundIndicator = 80; public static final int Theme_listDividerAlertDialog = 44; public static final int Theme_listPopupWindowStyle = 74; public static final int Theme_listPreferredItemHeight = 68; public static final int Theme_listPreferredItemHeightLarge = 70; public static final int Theme_listPreferredItemHeightSmall = 69; public static final int Theme_listPreferredItemPaddingLeft = 71; public static final int Theme_listPreferredItemPaddingRight = 72; public static final int Theme_panelBackground = 77; public static final int Theme_panelMenuListTheme = 79; public static final int Theme_panelMenuListWidth = 78; public static final int Theme_popupMenuStyle = 60; public static final int Theme_popupWindowStyle = 61; public static final int Theme_radioButtonStyle = 104; public static final int Theme_ratingBarStyle = 105; public static final int Theme_searchViewStyle = 67; public static final int Theme_selectableItemBackground = 52; public static final int Theme_selectableItemBackgroundBorderless = 53; public static final int Theme_spinnerDropDownItemStyle = 47; public static final int Theme_spinnerStyle = 106; public static final int Theme_switchStyle = 107; public static final int Theme_textAppearanceLargePopupMenu = 40; public static final int Theme_textAppearanceListItem = 75; public static final int Theme_textAppearanceListItemSmall = 76; public static final int Theme_textAppearanceSearchResultSubtitle = 65; public static final int Theme_textAppearanceSearchResultTitle = 64; public static final int Theme_textAppearanceSmallPopupMenu = 41; public static final int Theme_textColorAlertDialogListItem = 94; public static final int Theme_textColorSearchUrl = 66; public static final int Theme_toolbarNavigationButtonStyle = 59; public static final int Theme_toolbarStyle = 58; public static final int Theme_windowActionBar = 2; public static final int Theme_windowActionBarOverlay = 4; public static final int Theme_windowActionModeOverlay = 5; public static final int Theme_windowFixedHeightMajor = 9; public static final int Theme_windowFixedHeightMinor = 7; public static final int Theme_windowFixedWidthMajor = 6; public static final int Theme_windowFixedWidthMinor = 8; public static final int Theme_windowMinWidthMajor = 10; public static final int Theme_windowMinWidthMinor = 11; public static final int Theme_windowNoTitle = 3; public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010004, 0x7f010007, 0x7f01000b, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001c, 0x7f0100df, 0x7f0100e0, 0x7f0100e1, 0x7f0100e2, 0x7f0100e3, 0x7f0100e4, 0x7f0100e5, 0x7f0100e6, 0x7f0100e7, 0x7f0100e8, 0x7f0100e9, 0x7f0100ea, 0x7f0100eb, 0x7f0100ec, 0x7f0100ed }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_collapseContentDescription = 19; public static final int Toolbar_collapseIcon = 18; public static final int Toolbar_contentInsetEnd = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 5; public static final int Toolbar_logo = 4; public static final int Toolbar_logoDescription = 22; public static final int Toolbar_maxButtonHeight = 17; public static final int Toolbar_navigationContentDescription = 21; public static final int Toolbar_navigationIcon = 20; public static final int Toolbar_popupTheme = 9; public static final int Toolbar_subtitle = 3; public static final int Toolbar_subtitleTextAppearance = 11; public static final int Toolbar_subtitleTextColor = 24; public static final int Toolbar_title = 2; public static final int Toolbar_titleMarginBottom = 16; public static final int Toolbar_titleMarginEnd = 14; public static final int Toolbar_titleMarginStart = 13; public static final int Toolbar_titleMarginTop = 15; public static final int Toolbar_titleMargins = 12; public static final int Toolbar_titleTextAppearance = 10; public static final int Toolbar_titleTextColor = 23; public static final int[] View = { 0x01010000, 0x010100da, 0x7f0100ee, 0x7f0100ef, 0x7f0100f0 }; public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0100f1, 0x7f0100f2 }; public static final int ViewBackgroundHelper_android_background = 0; public static final int ViewBackgroundHelper_backgroundTint = 1; public static final int ViewBackgroundHelper_backgroundTintMode = 2; public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_inflatedId = 2; public static final int ViewStubCompat_android_layout = 1; public static final int View_android_focusable = 1; public static final int View_android_theme = 0; public static final int View_paddingEnd = 3; public static final int View_paddingStart = 2; public static final int View_theme = 4; } public static final class xml { public static final int preferences = 0x7f060000; public static final int provider_paths = 0x7f060001; } }
[ "pianist@JamesJins-iMac.local" ]
pianist@JamesJins-iMac.local
10f01e2ee99bfc754bb16083f1a91468ce272beb
3b0d0619f15230dba33a4be9c04d2117b22c729a
/LibMagestore/src/main/java/com/magestore/app/lib/model/sales/OrderRefundGiftCard.java
7bdedac0a0afd6e1370303f4aa8cb75a8950e0f8
[]
no_license
miketrueplus/MagestorePOSAndroid
87e291336bb0ace6c32548de16c36d27c618c003
e1751d31ff3c397987d476cde83f593c3c80053c
refs/heads/master
2021-01-13T04:20:14.607652
2017-09-18T04:03:15
2017-09-18T04:03:15
77,466,913
1
4
null
null
null
null
UTF-8
Java
false
false
387
java
package com.magestore.app.lib.model.sales; import com.magestore.app.lib.model.Model; /** * Created by Johan on 5/12/17. * Magestore * dong.le@trueplus.vn */ public interface OrderRefundGiftCard extends Model { void setOrderId(String strOrderId); float getAmount(); void setAmount(float fAmount); float getBaseAmount(); void setBaseAmount(float fBaseAmount); }
[ "dong.le@trueplus.vn" ]
dong.le@trueplus.vn
08f4dcfeae093728c500108cf6d6983ddd72a80e
e9182be163fc6472105ed2b1b527f06511e104a9
/src/main/java/com/placeholder/Test.java
344985941fdde97663c96ba57fae84b23f51f204
[]
no_license
2108Java/project-0-Janetjos
55cf48e2213f135ae71a2ee3f53688d9b242c3a5
86ad1556555d55babd16132287d056260121c0a3
refs/heads/master
2023-08-10T23:30:27.520880
2021-09-24T17:55:19
2021-09-24T17:55:19
404,371,438
0
0
null
null
null
null
UTF-8
Java
false
false
126
java
package com.placeholder; public class Test { public static void main() { System.out.println("Test Commit"); } }
[ "janet.jos98@gmail.com" ]
janet.jos98@gmail.com
71561b315a33a31f3c3d005993beed094039a59b
1830b6ff6916c1b8e77c357d1c0a0d38bdf9a703
/android/RelativeLayout/gen/com/ma/relativelayout/BuildConfig.java
cda82e37ab493d5b34ce4a7dad76c30831697bd7
[]
no_license
damengzai/damengzai
4e0361973caba7996ef3e07bbffb8b79ce37681f
ec0bfd5eaf7f53da96c3612324770efad06abad5
refs/heads/master
2020-12-24T12:28:44.939780
2013-05-07T12:19:32
2013-05-07T12:19:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
163
java
/** Automatically generated file. DO NOT MODIFY */ package com.ma.relativelayout; public final class BuildConfig { public final static boolean DEBUG = true; }
[ "damengzai@sohu.com" ]
damengzai@sohu.com
b690a80fabd1fb7176d3ea93f837aca1de75378a
b43e25c2b29aa085e149b17b4a6e90e5fdf89001
/src/main/java/unportant/gist/csvparser/simple/ReusableToken.java
0200395de4f868161a280807e0f36e0c6707cbca
[]
no_license
unportant-thoughts/kata-csvparser
99584b992abec1059b6a5c6ac48c3e9bb74dff8b
1c18bf0d2eaf553d780a3acc43e548b3bd9216bb
refs/heads/master
2020-04-09T17:14:39.045343
2015-06-11T21:37:55
2015-06-11T21:37:55
37,224,672
0
0
null
null
null
null
UTF-8
Java
false
false
614
java
package unportant.gist.csvparser.simple; class ReusableToken { enum Type { FIELD, LAST_FIELD, EOF, } private Type type; private StringBuilder content = new StringBuilder(); public Type getType() { return type; } public String getContent() { return content.toString(); } public void appendContent(char c) { content.append(c); } void reset(Type type) { this.content.setLength(0); this.type = type; } @Override public String toString() { return "Token{" + "type=" + type + ", content=" + content + '}'; } }
[ "clement@unportant.info" ]
clement@unportant.info
c6622b4479892c9790e5868a4332ccf10a72d8e9
dae20699a15dbad23c48ce2deceec134dcab34aa
/test/src/com/jty/dispatcher/EncodingDispatcherServlet.java
51a987b138205e168636e526c12b9d702ca0f246
[]
no_license
jtywfg/test
b1aed42b3c840e19b77e142330ed7930bb1d4a05
0ccbab662455438b0dcfe30c5804a435c39e97cd
refs/heads/master
2021-05-04T06:15:11.427572
2016-10-17T08:06:16
2016-10-17T08:06:16
71,086,753
0
0
null
null
null
null
UTF-8
Java
false
false
842
java
package com.jty.dispatcher; import java.io.PrintWriter; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.web.servlet.DispatcherServlet; /** * @author sjl */ public class EncodingDispatcherServlet extends DispatcherServlet { private String encoding ; @Override public void init(ServletConfig config) throws ServletException { encoding = config.getInitParameter("encoding"); super.init(config); } @Override protected void doService(HttpServletRequest req, HttpServletResponse resp) throws Exception { req.setCharacterEncoding(encoding); super.doService(req, resp); } }
[ "1768111345@qq.com" ]
1768111345@qq.com
68b16722fd5ff121a99fe06dc286bb02226e8233
cdbae3faf2cd5b95236b9c008bd0e92a03c5d3cb
/app/src/main/java/com/dream/easy/view/IImagesContainerFragmentView.java
8151d34f8c8a599bc5c3b03eb8bcc9afca416d2e
[ "Apache-2.0" ]
permissive
susong/EasyFrame
1f22312a769dbfdaef0f01b41c5bbdb43fed2256
b6593cf2bd8f0ded1d3e92ceed5d55b5087844f1
refs/heads/master
2021-05-30T17:21:28.821456
2016-01-29T07:05:22
2016-01-29T07:05:22
43,053,429
3
0
null
null
null
null
UTF-8
Java
false
false
381
java
package com.dream.easy.view; import com.dream.easy.bean.BaseEntity; import java.util.List; /** * Author: SuSong * Email: 751971697@qq.com | susong0618@163.com * GitHub: https://github.com/susong0618 * Date: 15/10/8 下午10:15 * Description: EasyFrame */ public interface IImagesContainerFragmentView { void init(List<BaseEntity> entityList); }
[ "751971697@qq.com" ]
751971697@qq.com
3ebaf9c24e12d2459574dbc0b693c71a25ec00b9
fab436529adcda34a9af171fecb9b3eb9a6501ed
/imagetogray/src/togray.java
13ae2308c286922538f51ef993124681bb7834ad
[]
no_license
EC504-Project/NN-LSH
8b75da9dac522137f16d7c6737d5f2b86b3e4297
ce9c162567c2d3a19df563f0e38ec02b78d2fea0
refs/heads/master
2020-03-07T12:42:02.499065
2018-05-04T15:15:17
2018-05-04T15:15:17
127,483,614
0
2
null
null
null
null
UTF-8
Java
false
false
1,997
java
/** * Created by gaocc on 2018/4/5. */ import java.io.File; import java.io.IOException; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.*; public class togray { public static void main(String args[])throws IOException { BufferedImage img = null; File f = null; String str = null; int i = 1; // in a different computer the path need to be changed FileInputStream inputStream = new FileInputStream("/Users/gaocc/IdeaProjects/lsh/grayv/path.txt"); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); //read image while ((str = bufferedReader.readLine()) != null) { try { f = new File(str); img = ImageIO.read(f); } catch (IOException e) { System.out.println(e); } //get image width and height int width = img.getWidth(); int height = img.getHeight(); //convert to grayscale for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { int p = img.getRGB(x, y); int a = (p >> 24) & 0xff; int r = (p >> 16) & 0xff; int g = (p >> 8) & 0xff; int b = p & 0xff; //calculate average int avg = (r + g + b) / 3; //replace RGB value with avg p = (a << 24) | (avg << 16) | (avg << 8) | avg; img.setRGB(x, y, p); } } //write image try { String ipath = "/Users/gaocc/IdeaProjects/lsh/grayv/" + i + ".jpg"; i++; f = new File(ipath); ImageIO.write(img, "jpg", f); } catch (IOException e) { System.out.println(e); } } } }
[ "604460695@qq.com" ]
604460695@qq.com
3fbbe717a82f971fd3d48ac3d5bb379bc56b7bac
f6e3e448f7dcdfbe1fc88416698acdf19eab568e
/src/main/java/com/tom/fabriclibs/events/entity/HarvestCheckEvent.java
aa61dd6da83bdfb967fa36867daeedb3d98c2e41
[ "MIT" ]
permissive
tom5454/Toms-Fabric-Lib
d6ebec762b15d4d19bba43862a5fbc12ff32d3c3
c0b85201ac5e040721a000645bb1d721cb768686
refs/heads/master
2022-11-27T00:22:02.272946
2020-07-26T19:02:44
2020-07-26T19:02:44
281,626,270
1
1
null
null
null
null
UTF-8
Java
false
false
584
java
package com.tom.fabriclibs.events.entity; import net.minecraft.block.BlockState; import net.minecraft.entity.player.PlayerEntity; public class HarvestCheckEvent extends EntityEvent { private final BlockState state; private boolean success; public HarvestCheckEvent(PlayerEntity player, BlockState state, boolean success) { super(player); this.state = state; this.success = success; } public BlockState getTargetBlock() { return this.state; } public boolean canHarvest() { return this.success; } public void setCanHarvest(boolean success){ this.success = success; } }
[ "tom5454a@gmail.com" ]
tom5454a@gmail.com
e4bfcd7e7814d163bbccb1067df1328ff5fc42e6
2c0667bb867b17223744cdb36f5421792fa61d8b
/app/src/main/java/com/example/realprofit/Login.java
4a71598d503d2d2c865f3e35f0eb046b3d5db873
[]
no_license
aishwaryashahapurmath/RealProfit
6d0d114f319ea4a0aa031e73ccb3a2ead18f5dc3
15bc7e39e411b6df6b5c7114003bf52529deafb5
refs/heads/master
2023-05-30T17:11:48.401987
2021-06-29T16:24:14
2021-06-29T16:24:14
371,261,882
0
0
null
null
null
null
UTF-8
Java
false
false
5,399
java
package com.example.realprofit; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.OnFailureListener; import com.google.android.gms.tasks.OnSuccessListener; import com.google.android.gms.tasks.Task; import com.google.firebase.auth.AuthResult; import com.google.firebase.auth.FirebaseAuth; public class Login extends AppCompatActivity { EditText mEmail, mPassword; Button mLoginBtn; TextView mCreateBtn,forgotTextLink; ProgressBar progressBar; FirebaseAuth fAuth; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); mEmail = findViewById(R.id.Email); mPassword = findViewById(R.id.password); progressBar = findViewById(R.id.progressBar); fAuth = FirebaseAuth.getInstance(); mLoginBtn = findViewById(R.id.loginBtn); mCreateBtn = findViewById(R.id.createText); forgotTextLink = findViewById(R.id.forgotPassword); mLoginBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String email = mEmail.getText().toString().trim(); String password = mPassword.getText().toString().trim(); if (TextUtils.isEmpty(email)) { mEmail.setError("Email is Required."); return; } if (TextUtils.isEmpty(password)) { mPassword.setError("Password is Required."); return; } if (password.length() < 6) { mPassword.setError("Password Must be >= 6 Characters"); return; } progressBar.setVisibility(View.VISIBLE); fAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (task.isSuccessful()) { Toast.makeText(Login.this, "Logged in Successfully", Toast.LENGTH_SHORT).show(); startActivity(new Intent(getApplicationContext(),MainActivity.class)); } else { Toast.makeText(Login.this, "Error !" + task.getException().getMessage(), Toast.LENGTH_SHORT).show(); progressBar.setVisibility(View.GONE); } } }); } }); mCreateBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(getApplicationContext(),Register.class)); } }); forgotTextLink.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final EditText resetMail = new EditText(v.getContext()); final AlertDialog.Builder passwordResetDialog = new AlertDialog.Builder(v.getContext()); passwordResetDialog.setTitle("Reset Password ?"); passwordResetDialog.setMessage("Enter Your Email To Received Reset Link."); passwordResetDialog.setView(resetMail); passwordResetDialog.setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // extract the email and send reset link String mail = resetMail.getText().toString(); fAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() { @Override public void onSuccess(Void aVoid) { Toast.makeText(Login.this, "Reset Link Sent To Your Email.", Toast.LENGTH_SHORT).show(); } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { Toast.makeText(Login.this, "Error ! Reset Link is Not Sent" + e.getMessage(), Toast.LENGTH_SHORT).show(); } }); } }); passwordResetDialog.setNegativeButton("No", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // close the dialog } }); passwordResetDialog.create().show(); } }); } }
[ "aishwaryashahapurmath@gmail.com" ]
aishwaryashahapurmath@gmail.com
ce755f8ace181fa050d2f9f53292870a4b9663cf
b3b2c1660552eb040205b20ff020aab0de251418
/The Oregon Trail/src/Location/Landmark.java
fd1f367715e280e14c9f75e2063f8bd5c1464e41
[]
no_license
Lynnjisoo/TheOregenTrail
50771dda52ecc6da8385adfbae641b3fd6b45351
0f1addc91af2f6a69cffcec64d9ea5c6b6c35ce6
refs/heads/master
2021-01-13T11:40:04.892874
2017-04-06T07:27:31
2017-04-06T07:27:31
81,281,881
0
0
null
null
null
null
UTF-8
Java
false
false
115
java
package Location; public class Landmark extends Location { public Landmark(String name) { super(name); } }
[ "suboo618@gmail.com" ]
suboo618@gmail.com
c74c8564a07e90e6b942dd120be1f67781f7c696
e92023c0fe4f8efb28d36a3e9d679e38ffcbd521
/testing_project/src/main/java/com/calculator/testing_project/Calculator.java
f233d07e2a7bba5228fe3c6fb1283f45fb616db1
[]
no_license
lgcardeas/java_projects
0dc89429c7571ae0c38e89134c5efbad8fc21c48
b132d3e8ed82b43a08eb18c08d4ab15c3fe40154
refs/heads/master
2021-01-19T13:49:33.806077
2020-09-15T22:05:45
2020-09-15T22:05:45
82,419,298
0
0
null
2020-09-15T22:05:47
2017-02-18T22:11:42
Java
UTF-8
Java
false
false
738
java
package com.calculator.calculator; public class Calculator{ private String name; private double errorConstant; public Calculator(String name) { this.name = name; this.errorConstant = Math.random(); } public double add(Double a, Double b) { double calculation = a + b; calculation = addQuantomError(calculation); return calculation; } public double subtract(Double a, Double b) { double calculation = a - b; calculation = addQuantomError(calculation); return calculation; } private double addQuantomError(double calculation) { if (Math.random() < this.errorConstant) { calculation = calculation + Math.random(); } return calculation; } public String getName() { return name; } }
[ "luis.cardenas@dtone.com" ]
luis.cardenas@dtone.com
8ae124669a552bc55a0f31f65783ffe9f7016ee0
13e5d6d3acb2bbbfc413523ec4d09edea6481e23
/src/main/java/miu/edu/product/sender/SMSSender.java
b40e3ce229b15c29350df2a6d61a397e5110d187
[]
no_license
VuaYen/ProjectPM_2021
812cb2bb971c566c9d08468e7d82df6ebe019f37
324ad54c09df9bf1c622dcf898ed3c22fce2afdd
refs/heads/main
2023-04-20T14:53:42.268459
2021-05-14T17:49:41
2021-05-14T17:49:41
359,622,055
0
0
null
2021-05-14T15:48:57
2021-04-19T23:07:32
CSS
UTF-8
Java
false
false
192
java
package miu.edu.product.sender; import miu.edu.product.domain.OnlineOrder; public class SMSSender implements ISender { @Override public void send(OnlineOrder onlineOrder) { } }
[ "yen637@gmail.com" ]
yen637@gmail.com
3df6179cba213e2ed3cfc28e7dfd05f529dabf6f
2ccb4c6f253ec1e7418d468a664a2e31f62c3784
/app/src/main/java/com/bibinet/biunion/mvp/presenter/SearchActivityPresenter.java
837d7f8a55abe53d9ad764104494835cd8bb1014
[]
no_license
zhangyalong123feiyu/BiUnion
8207e1cae667a93a0ca62ceca7bddaaf60e6131b
5452c654c3efb929e714d0b8928eef902db4ce8a
refs/heads/master
2021-01-21T10:00:27.173330
2017-07-18T02:32:16
2017-07-18T02:32:19
91,677,294
2
0
null
null
null
null
UTF-8
Java
false
false
2,021
java
package com.bibinet.biunion.mvp.presenter; import android.util.Log; import com.bibinet.biunion.mvp.model.SearchActivityModel; import com.bibinet.biunion.mvp.view.SearchActivityView; import com.bibinet.biunion.project.bean.SearchResultBean; import com.bibinet.biunion.project.builder.MyCacheCallBack; import com.google.gson.Gson; /** * Created by bibinet on 2017-6-19. */ public class SearchActivityPresenter { private SearchActivityView searchActivityView; private SearchActivityModel searchActivityModel; public SearchActivityPresenter(SearchActivityView searchActivityView) { this.searchActivityView = searchActivityView; this.searchActivityModel=new SearchActivityModel(); } public void getSearchData(int pageNumb, String content, final boolean isLoadMore){ searchActivityView.showProgress(); searchActivityModel.searProjectInfoModel(pageNumb,content,new MyCacheCallBack(){ @Override public void onSuccess(String s) { super.onSuccess(s); Gson gson=new Gson(); SearchResultBean searchResultInfo = gson.fromJson(s, SearchResultBean.class); searchActivityView.onSearchSucess(searchResultInfo.getItems(),isLoadMore); searchActivityView.hideProgress(); } @Override public void onError(Throwable throwable, boolean b) { super.onError(throwable, b); searchActivityView.onSearchFailed(throwable.getMessage()); searchActivityView.hideProgress(); } @Override public boolean onCache(String s) { Gson gson=new Gson(); SearchResultBean searchResultInfo = gson.fromJson(s, SearchResultBean.class); searchActivityView.onSearchSucess(searchResultInfo.getItems(),isLoadMore); searchActivityView.hideProgress(); return super.onCache(s); } }); } }
[ "409812937@qq.com" ]
409812937@qq.com
a8ac90ef682c354f153b62a3394035c8caedb880
6c0b1c8a7a01b4ddcdd235561d77eb7fee63a8ef
/src/main/java/com/amljdhv/emailVerification/VerificationType.java
6e2c9db72e9989abca56b26a0158965fe6320e1d
[]
no_license
dnyaneshwarnarwade/reward-point-system
c7d314f4e64912e1c84fc00feabc4da87dc7dc79
2307a242f6cf3a9876b9637c6c3987ecf18cbdd1
refs/heads/master
2020-04-23T04:35:05.057134
2019-02-15T18:47:29
2019-02-15T18:47:29
170,912,038
0
0
null
null
null
null
UTF-8
Java
false
false
137
java
package com.amljdhv.emailVerification; public enum VerificationType { EMAIL_VERIFICATION, PAYMENT_VERIFICATION, REWARD_TRANSFER }
[ "dnyaneshwarnarwade91@gmail.com" ]
dnyaneshwarnarwade91@gmail.com
41ffe0c52c2919532a89bb6f9aa3c03b76b38aaa
6edbe5fd4ce822d8002acf8e72c18c40007d2e71
/server/gameservice/src/main/java/com/trickplay/gameservice/dao/impl/GamePlayStateDAOImpl.java
0e6156fcbdd56f55463a42fa5c0618634932622f
[]
no_license
cebu4u/Trickplay
b7a34555ad0b9cd5493d2a794d7a6d6ccd89c6b7
ab3a67d3ff91a18e371298309ed63e25bad08186
refs/heads/master
2020-12-11T07:48:39.625799
2012-10-10T19:53:49
2012-10-10T19:53:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
364
java
package com.trickplay.gameservice.dao.impl; import org.springframework.stereotype.Repository; import com.trickplay.gameservice.dao.GamePlayStateDAO; import com.trickplay.gameservice.domain.GamePlayState; @Repository @SuppressWarnings("unchecked") public class GamePlayStateDAOImpl extends GenericDAOWithJPA<GamePlayState, Long> implements GamePlayStateDAO { }
[ "bkorlipara@trickplay.com" ]
bkorlipara@trickplay.com
25bdba8282d2f75f24f7555d68e0c0ad7095f137
a6c8086150ff47a4a3ad7723e8bf4351636f4707
/springboot-jpa-examples/src/main/java/com/example/springbootjpaexamples/example07/jpql/repository/User07Repository.java
36fee946f25e11e100c492321282eaf5e8431ba1
[]
no_license
gpgzy/springboot-course
994c4a27ac7b17b90038e7c9007768475c582f59
8ef0446f04364680b47561e4f418628821fb782b
refs/heads/master
2021-03-25T09:27:42.343321
2020-06-10T06:36:03
2020-06-10T06:36:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
833
java
package com.example.springbootjpaexamples.example07.jpql.repository; import com.example.springbootjpaexamples.example07.jpql.entity.User07; import com.example.springbootjpaexamples.repository.BaseRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface User07Repository extends BaseRepository<User07, Integer> { @Query("from User07 u where u.name=:name") List<User07> list(@Param("name") String name); List<User07> findByName(String name); @Modifying @Query("update User07 u set u.name=:newname where u.id=:id") int update(@Param("id") int id, @Param("newname") String name); }
[ "bwang0629@gmail.com" ]
bwang0629@gmail.com
6ba3e4dbb319180dd6856293146b9d290894bf9d
4edb495d935c4c81932583eebd5b9b3a5db847a4
/src/main/java/test/Solution.java
3f4a46351367e9c45d46290821b038ba09902b2e
[]
no_license
Sunshinebosswwb/JavaLearning
1b4f18cdd2e77061a6f63e07ec74d2ced8f61d51
debe9c35d58e4dca74f25787f3961139bd041492
refs/heads/master
2022-11-17T05:53:49.571804
2020-07-08T02:37:06
2020-07-08T02:53:53
277,959,876
1
0
null
null
null
null
UTF-8
Java
false
false
693
java
package test; import java.util.*; //import org.graalvm.compiler.nodes.spi.ArrayLengthProvider; public class Solution { public static void main(String[] args) { } public Object[] siHashngleNumber(int[] nums) { Set<Integer> res = new HashSet<>(); for(int i=0;i<nums.length;i++){ res.add(nums[i]); } int flag = 0; while(flag < nums.length - 1){ for(int i=flag+1;i<nums.length;i++){ if(nums[i] == nums[flag]) res.remove(nums[flag]); } flag++; } Object[] arr = res.toArray(); return arr; } }
[ "1316814222@qq.com" ]
1316814222@qq.com
8b645c036c68aa646076ee6eeccda165194e261f
b0568f150715d945dcca473ec1e851a68d89dc3d
/src/mobileshopmanagement/database/BillingDB.java
cb5765ae27562af8af6adb6fe7874b76222180fa
[]
no_license
karthick-iyer/Mobile-JavaFX
5d12015b5cc6984a1506eafecd820db79d8dae47
0ecb108afd8dceb6aaecd9ebb67abcb1e1061aff
refs/heads/master
2020-08-12T19:04:00.598878
2019-10-13T13:29:54
2019-10-13T13:29:54
214,825,247
0
0
null
2019-10-13T13:29:04
2019-10-13T13:29:03
null
UTF-8
Java
false
false
7,965
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mobileshopmanagement.database; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import static mobileshopmanagement.database.Connect.*; import mobileshopmanagement.model.Customer; import mobileshopmanagement.model.Models; import mobileshopmanagement.utils.Otp; /** * * @author madhu */ public class BillingDB { private String insertQuery = "INSERT INTO `billing`(`name`,`phone`," + "`email`,`address`,`model`,`imei`,`price`,`qty`,`date`,`time`," + "`payment`,`billno`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"; private String updateQuery = "UPDATE `billing` SET (name=?,phone=?," + "email=?,address=?,model=?,imei=?,price=?,qty=?,date=?,time=?," + "payment=?,billno=?) WHERE id=?"; private String deleteQuery = "DELETE FROM `billing` WHERE id=?"; private String searchQuery = "SELECT * FROM `billing` WHERE `billno`=?"; public Customer searchByBillNo(String billno) { Customer customer = null; Connection connection = checkConnection(); PreparedStatement statement = null; System.out.println(" Search SQL : " + billno); try { statement = connection.prepareStatement(searchQuery); statement.setString(1, billno); ResultSet resultSet = statement.executeQuery(); while (resultSet.next()) { customer = new Customer( resultSet.getString(2), resultSet.getString(3), resultSet.getString(4), resultSet.getString(5), resultSet.getString(6), resultSet.getString(7), resultSet.getString(8), resultSet.getString(9), resultSet.getString(10), resultSet.getString(11), resultSet.getString(12), resultSet.getString(13)); } System.err.println("" + resultSet.getString(2) + resultSet.getString(3)); resultSet.close(); statement.close(); connection.close(); } catch (SQLException e) { System.err.println("Error in Search : " + e.getMessage()); } return customer; } public boolean isBillingDone(Customer customer) { int result = 0; Connection connection = checkConnection(); PreparedStatement statement = null; try { statement = connection.prepareStatement(insertQuery); statement.setString(1, customer.getName()); statement.setString(2, customer.getPhoneNo()); statement.setString(3, customer.getEmail()); statement.setString(4, customer.getAddress()); statement.setString(5, customer.getModel()); statement.setString(6, customer.getImei()); statement.setString(7, customer.getPrice()); statement.setString(8, customer.getDate()); statement.setString(9, customer.getTime()); statement.setString(10, customer.getQty()); statement.setString(11, customer.getPayment()); statement.setString(12, customer.getBillNo()); result = statement.executeUpdate(); statement.close(); connection.close(); } catch (SQLException e) { System.err.println("Error in Search : " + e.getMessage()); } return result > 0; } public List<Models> getAllModels() { String getModelsSQL = "SELECT id,model,price,quantity FROM mobile"; List<Models> models = new ArrayList<Models>(); Connection connection = checkConnection(); Statement statement = null; try { statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(getModelsSQL); while (resultSet.next()) { Models m = new Models(resultSet.getInt(1), resultSet.getString(2), resultSet.getString(3), resultSet.getString(4)); models.add(m); } resultSet.close(); statement.close(); connection.close(); } catch (SQLException e) { System.err.println("Error in Search : " + e.getMessage()); } return models; } public int getBillId() { int id = 0; try { String otpSql = "SELECT id FROM billing ORDER BY id DESC LIMIT 1"; Connection con = Connect.checkConnection(); Statement statement = con.createStatement(); ResultSet rs = statement.executeQuery(otpSql); while (rs.next()) { id = rs.getInt(1); } rs.close(); statement.close(); con.close(); } catch (SQLException ex) { Logger.getLogger(Otp.class.getName()).log(Level.SEVERE, null, ex); } return id; } public int getTotalCustomers() { int no = 0; try { String otpSql = "SELECT count(*) from billing"; Connection con = Connect.checkConnection(); Statement statement = con.createStatement(); ResultSet rs = statement.executeQuery(otpSql); while (rs.next()) { no = rs.getInt(1); } rs.close(); statement.close(); con.close(); } catch (SQLException ex) { Logger.getLogger(Otp.class.getName()).log(Level.SEVERE, null, ex); } return no; } public int getTotalStockes() { int no = 0; try { String otpSql = "SELECT sum(quantity) from mobile"; Connection con = Connect.checkConnection(); Statement statement = con.createStatement(); ResultSet rs = statement.executeQuery(otpSql); while (rs.next()) { no = rs.getInt(1); } rs.close(); statement.close(); con.close(); } catch (SQLException ex) { Logger.getLogger(Otp.class.getName()).log(Level.SEVERE, null, ex); } return no; } public int getTotalSales() { int no = 0; try { String otpSql = "SELECT sum(price) from billing"; Connection con = Connect.checkConnection(); Statement statement = con.createStatement(); ResultSet rs = statement.executeQuery(otpSql); while (rs.next()) { no = rs.getInt(1); } rs.close(); statement.close(); con.close(); } catch (SQLException ex) { Logger.getLogger(Otp.class.getName()).log(Level.SEVERE, null, ex); } return no; } public int getTotalNoOfSales() { int no = 0; try { String otpSql = "SELECT sum(qty) from billing"; Connection con = Connect.checkConnection(); Statement statement = con.createStatement(); ResultSet rs = statement.executeQuery(otpSql); while (rs.next()) { no = rs.getInt(1); } rs.close(); statement.close(); con.close(); } catch (SQLException ex) { Logger.getLogger(Otp.class.getName()).log(Level.SEVERE, null, ex); } return no; } }
[ "madhumankatha@gmail.com" ]
madhumankatha@gmail.com
f82451edf1f803fb4c0e340a7d85b3e38036bb83
968f1bd12c45875e2d69df59346d431febee2b52
/ModelEJBClient/ejbModule/com/unitbv/dto/StockClientB2BDTO.java
b661e14de3e852c31aa4fddc30ae070d488de8ca
[]
no_license
ddwdiana/ORM
ec4abaa7ca83679ea0c3e0bedb1955f1a655dcfb
7df390690371caac6ddf3d31c05dca342ce54a8b
refs/heads/master
2020-03-06T19:24:23.203250
2018-03-27T18:09:06
2018-03-27T18:09:06
127,025,070
0
0
null
null
null
null
UTF-8
Java
false
false
617
java
package com.unitbv.dto; import java.io.Serializable; public class StockClientB2BDTO implements Serializable{ private static final long serialVersionUID = 1L; public int id; public int price; public int quantity; public boolean active; public int limitQuanity; public int idClientB2B; public StockClientB2BDTO(int id, int price, int quantity, boolean active, int limitQuantity, int idClientB2B) { this.id = id; this.price = price; this.quantity = quantity; this.active = active; this.limitQuanity = limitQuantity; this.idClientB2B = idClientB2B; } public StockClientB2BDTO() {} }
[ "diana_midoschi@bitbucket.org" ]
diana_midoschi@bitbucket.org
059fea50c49dbbc8417e2192e5ac8b70c96fb519
1b5966227a6d0872b94111b9804bf0cba5cb7382
/src/main/java/com/example/demo/repository/MessageRepository.java
bb2a15b1bd67a317c5774fdaf0142dcc81946313
[]
no_license
blues01sky/my
684831edbf5005d064a85ea310e3622fde79d037
43599d7ee1d283332ab660e7593c1d837cbea93d
refs/heads/master
2020-05-21T09:02:45.289952
2019-07-12T09:58:17
2019-07-12T09:58:17
185,988,561
0
0
null
null
null
null
UTF-8
Java
false
false
1,794
java
package com.example.demo.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.example.demo.entity.Message; @Repository public interface MessageRepository extends JpaRepository<Message,Integer> { Message findByUsername(String username); @Transactional @Modifying @Query(value = "update message set username = ?1 where username = ?2",nativeQuery = true) int updatename(String newusername,String oldusername); /* @Transactional @Modifying @Query(value = "insert into message(username,address,telphone) values (?1,?2,?3)",nativeQuery = true) int addmessage(String username,String address,String telphone);*/ @Transactional @Modifying @Query(value = "update user set password = ?1 where username = ?2",nativeQuery = true) int updatepassword(String password,String username); @Transactional @Modifying @Query(value = "update message set address = ?1,telphone = ?2 where username = ?3",nativeQuery = true) int updatemessage(String address,String telphone,String username); @Transactional @Modifying @Query(value = "update message set username = ?1,password = ?2,address = ?3,telphone = ?4 where username = ?5",nativeQuery = true) int updateall(String username,String password,String address,String telphone,String name); @Transactional @Modifying @Query(value = "delete from message where username = ?1",nativeQuery = true) int delmessage(String username); List<Message> findByUsernameContaining(String username); }
[ "1181566969@qq.com" ]
1181566969@qq.com
bbbab1894a7f3b37efb16043fadc911bd96ae9ff
839865567c38f9bef925710d73e6094a142b95c8
/audit/.svn/pristine/da/da8641fc787b40d8f3132dab7923fdee9a84643a.svn-base
70bc7dde3ca5b34131a9569b89bbeee88c8238f1
[]
no_license
serenawanggit/learngit
7e598cfb7e55ffdaef1a5c3ece4e8c4d30ec1a49
60cbc6d016d0736aa520df4d2dd72a58d1f4aa9d
refs/heads/master
2021-09-05T09:34:40.457287
2018-01-26T03:33:03
2018-01-26T03:33:03
118,994,216
0
0
null
null
null
null
UTF-8
Java
false
false
1,053
package audit.model.assess; import java.io.Serializable; public class AsAccessSiteCheckReport implements Serializable{ /** * * AsAccessSiteCheckReport.java */ private static final long serialVersionUID = -9119518589134001872L; private Integer id; private Integer accessSpcialtyId; private String nodeName; private String content; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getAccessSpcialtyId() { return accessSpcialtyId; } public void setAccessSpcialtyId(Integer accessSpcialtyId) { this.accessSpcialtyId = accessSpcialtyId; } public String getNodeName() { return nodeName; } public void setNodeName(String nodeName) { this.nodeName = nodeName == null ? null : nodeName.trim(); } public String getContent() { return content; } public void setContent(String content) { this.content = content == null ? null : content.trim(); } }
[ "1416640422@qq.com" ]
1416640422@qq.com
fd46da9cc2e27a7c87ae25793ca588457ed8f608
8170696742a440d86565312aa74bd9d5b4c6c183
/src/edu/vt/cs/sam/readers/ASTptr_to_member.java
07300acf8f359c1fd4497131730c839401563961
[]
no_license
arunsudhir/SAM
d9101d5b9c52e6c14333bd6c0241d1ad14ec0830
f401512cd6e6ce9f4f8c618424f961d1d2522f94
refs/heads/master
2020-05-18T16:13:55.934014
2013-01-10T07:13:15
2013-01-10T07:13:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
426
java
/* Generated By:JJTree: Do not edit this line. ASTptr_to_member.java */ package edu.vt.cs.sam.readers; public class ASTptr_to_member extends SimpleNode { public ASTptr_to_member(int id) { super(id); } public ASTptr_to_member(CPPParser p, int id) { super(p, id); } /** Accept the visitor. **/ public Object jjtAccept(CPPParserVisitor visitor, Object data) { return visitor.visit(this, data); } }
[ "arunsudhir@gmail.com" ]
arunsudhir@gmail.com
b664be975371a42bf3b73e2d8ce568faf6e7152b
3514dde6ac299d3b15039a0d798626d2c68eb294
/src/main/java/com/foamtec/qas/web/AppRoleController.java
2099e1e03e79cd3cf6cafc2467804cc57f1c2d21
[]
no_license
kobaep/QAS
4bed1f1a88f5afb90edf16e3fd6c4078d294add3
7ae692c8832f386249188f2adb5df88a69f37a3b
refs/heads/master
2020-05-18T13:34:34.113221
2016-02-04T08:22:49
2016-02-04T08:22:49
37,232,952
0
0
null
null
null
null
UTF-8
Java
false
false
524
java
package com.foamtec.qas.web; import com.foamtec.qas.security.AppRole; import org.springframework.roo.addon.web.mvc.controller.json.RooWebJson; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold; @RooWebJson(jsonObject = AppRole.class) @Controller @RequestMapping("/approles") @RooWebScaffold(path = "approles", formBackingObject = AppRole.class) public class AppRoleController { }
[ "apichat.kop@gmail.com" ]
apichat.kop@gmail.com
5015d505775bbf2e50ca4e8b6105859133e79d5c
0af3386ceb898c0b4c31aba50f3f1deb34d2dca4
/Basic_01/src/com/oop/demo03/Person.java
107bb8d53371ac7243ec82477d70353543dc618a
[]
no_license
mayzzl/The_road_of_java
fca3d408300b4b8114abb560389bc5d04b70dbb8
778604a191a5c805eef281a2146b9efb6aaef38a
refs/heads/master
2023-06-16T19:20:42.485702
2021-07-14T15:18:34
2021-07-14T15:18:34
374,355,017
0
0
null
null
null
null
UTF-8
Java
false
false
121
java
package com.oop.demo03; public class Person { public void run(){ System.out.println("person run"); } }
[ "mayzzl@163.com" ]
mayzzl@163.com
3228c2327950ca589c05d433d48f92733830afda
b357cc8e82ef87548fe9c3b3f2ceb80693f225f3
/main/feature/src/boofcv/abst/feature/associate/AssociateDescTo2D.java
cbfc813e2a65923fb0768b4ad9da63cfe56dcd97
[ "Apache-2.0", "LicenseRef-scancode-takuya-ooura" ]
permissive
riskiNova/BoofCV
7806ef07586e28fbffd17537e741a71b11f0b381
16fff968dbbe07af4a9cb14395a89cde18ffb72e
refs/heads/master
2020-06-16T17:32:36.492220
2016-06-13T17:16:27
2016-06-13T17:16:27
75,079,845
1
0
null
2016-11-29T12:34:19
2016-11-29T12:34:19
null
UTF-8
Java
false
false
2,242
java
/* * Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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 boofcv.abst.feature.associate; import boofcv.struct.feature.AssociatedIndex; import boofcv.struct.feature.MatchScoreType; import georegression.struct.point.Point2D_F64; import org.ddogleg.struct.FastQueue; import org.ddogleg.struct.GrowQueue_I32; /** * Wrapper around {@link AssociateDescription} that allows it to be used inside of {@link AssociateDescription2D} * * @author Peter Abeles */ public class AssociateDescTo2D<D> implements AssociateDescription2D<D> { AssociateDescription<D> alg; public AssociateDescTo2D(AssociateDescription<D> alg) { this.alg = alg; } @Override public void setSource(FastQueue<Point2D_F64> location, FastQueue<D> descriptions) { alg.setSource(descriptions); } @Override public void setDestination(FastQueue<Point2D_F64> location, FastQueue<D> descriptions) { alg.setDestination(descriptions); } @Override public void associate() { alg.associate(); } @Override public FastQueue<AssociatedIndex> getMatches() { return alg.getMatches(); } @Override public GrowQueue_I32 getUnassociatedSource() { return alg.getUnassociatedSource(); } @Override public GrowQueue_I32 getUnassociatedDestination() { return alg.getUnassociatedDestination(); } @Override public void setThreshold(double score) { alg.setThreshold(score); } @Override public MatchScoreType getScoreType() { return alg.getScoreType(); } @Override public boolean uniqueSource() { return alg.uniqueSource(); } @Override public boolean uniqueDestination() { return alg.uniqueDestination(); } }
[ "peter.abeles@gmail.com" ]
peter.abeles@gmail.com
5a701f35bb61266c4cd278e4a4767672d7556e0e
345fb3f347f843e65a05483ee8fcd4d2af2580f1
/app/src/main/java/com/fcm/template/util/NotificationUtils.java
f9e2526ec15e6336a289fa4aadd07ef697669afc
[ "Apache-2.0" ]
permissive
EasyDev-11436/Firebase-Cloud-Messaging
d9b3e266fbe3fe690b83c4f16d96278954a0227d
e178c4c233edc01207609176d13ed8e6e62cda97
refs/heads/master
2021-06-02T10:32:26.366166
2020-04-09T09:17:05
2020-04-09T09:17:05
254,324,201
0
0
null
null
null
null
UTF-8
Java
false
false
8,088
java
package com.fcm.template.util; import android.app.ActivityManager; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.ComponentName; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; import android.os.Build; import android.support.v4.app.NotificationCompat; import android.text.Html; import android.text.TextUtils; import android.util.Patterns; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import com.fcm.template.app.Config; import com.fcm.template.R; public class NotificationUtils { private static String TAG = NotificationUtils.class.getSimpleName(); private Context mContext; public NotificationUtils(Context mContext) { this.mContext = mContext; } public void showNotificationMessage(String title, String message, String timeStamp, Intent intent) { showNotificationMessage(title, message, timeStamp, intent, null); } public void showNotificationMessage(final String title, final String message, final String timeStamp, Intent intent, String imageUrl) { // Check for empty push message if (TextUtils.isEmpty(message)) return; // notification icon final int icon = R.drawable.ic_launcher; intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); final PendingIntent resultPendingIntent = PendingIntent.getActivity( mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT ); final NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( mContext); final Uri alarmSound = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + mContext.getPackageName() + "/raw/notification"); if (!TextUtils.isEmpty(imageUrl)) { if (imageUrl != null && imageUrl.length() > 4 && Patterns.WEB_URL.matcher(imageUrl).matches()) { Bitmap bitmap = getBitmapFromURL(imageUrl); if (bitmap != null) { showBigNotification(bitmap, mBuilder, icon, title, message, timeStamp, resultPendingIntent, alarmSound); } else { showSmallNotification(mBuilder, icon, title, message, timeStamp, resultPendingIntent, alarmSound); } } } else { showSmallNotification(mBuilder, icon, title, message, timeStamp, resultPendingIntent, alarmSound); playNotificationSound(); } } private void showSmallNotification(NotificationCompat.Builder mBuilder, int icon, String title, String message, String timeStamp, PendingIntent resultPendingIntent, Uri alarmSound) { NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle(); inboxStyle.addLine(message); Notification notification; notification = mBuilder.setSmallIcon(icon).setTicker(title).setWhen(0) .setAutoCancel(true) .setContentTitle(title) .setContentIntent(resultPendingIntent) .setSound(alarmSound) .setStyle(inboxStyle) .setWhen(getTimeMilliSec(timeStamp)) .setSmallIcon(R.drawable.ic_launcher) .setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), icon)) .setContentText(message) .build(); NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(Config.NOTIFICATION_ID, notification); } private void showBigNotification(Bitmap bitmap, NotificationCompat.Builder mBuilder, int icon, String title, String message, String timeStamp, PendingIntent resultPendingIntent, Uri alarmSound) { NotificationCompat.BigPictureStyle bigPictureStyle = new NotificationCompat.BigPictureStyle(); bigPictureStyle.setBigContentTitle(title); bigPictureStyle.setSummaryText(Html.fromHtml(message).toString()); bigPictureStyle.bigPicture(bitmap); Notification notification; notification = mBuilder.setSmallIcon(icon).setTicker(title).setWhen(0) .setAutoCancel(true) .setContentTitle(title) .setContentIntent(resultPendingIntent) .setSound(alarmSound) .setStyle(bigPictureStyle) .setWhen(getTimeMilliSec(timeStamp)) .setSmallIcon(R.drawable.ic_launcher) .setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), icon)) .setContentText(message) .build(); NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(Config.NOTIFICATION_ID_BIG_IMAGE, notification); } /** * Downloading push notification image before displaying it in * the notification tray */ public Bitmap getBitmapFromURL(String strURL) { try { URL url = new URL(strURL); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoInput(true); connection.connect(); InputStream input = connection.getInputStream(); Bitmap myBitmap = BitmapFactory.decodeStream(input); return myBitmap; } catch (IOException e) { e.printStackTrace(); return null; } } // Playing notification sound public void playNotificationSound() { try { Uri alarmSound = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + mContext.getPackageName() + "/raw/notification"); Ringtone r = RingtoneManager.getRingtone(mContext, alarmSound); r.play(); } catch (Exception e) { e.printStackTrace(); } } /** * Method checks if the app is in background or not */ public static boolean isAppIsInBackground(Context context) { boolean isInBackground = true; ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) { List<ActivityManager.RunningAppProcessInfo> runningProcesses = am.getRunningAppProcesses(); for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) { if (processInfo.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) { for (String activeProcess : processInfo.pkgList) { if (activeProcess.equals(context.getPackageName())) { isInBackground = false; } } } } } else { List<ActivityManager.RunningTaskInfo> taskInfo = am.getRunningTasks(1); ComponentName componentInfo = taskInfo.get(0).topActivity; if (componentInfo.getPackageName().equals(context.getPackageName())) { isInBackground = false; } } return isInBackground; } // Clears notification tray messages public static void clearNotifications(Context context) { NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancelAll(); } public static long getTimeMilliSec(String timeStamp) { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { Date date = format.parse(timeStamp); return date.getTime(); } catch (ParseException e) { e.printStackTrace(); } return 0; } }
[ "easy.dev11436@gmail.com" ]
easy.dev11436@gmail.com
5084288e57a6b1da06e5ada2eaeaeaa2a9885a98
0de88cbfaa8cd86e052fdc0ddf2161c1a217ed67
/src/main/java/com/meihaifeng/activemq/QueueSender.java
d44c07e4d9c0d6063b67b4be632bd46c9a7b3402
[]
no_license
JackMeiiii/my_product
fea0425f56a4ee349c422671d917ad380c2f1cd1
80e7093993d24c147d727a5e328db6cfd7d4ae1b
refs/heads/master
2020-08-04T04:14:19.455810
2018-07-17T12:53:14
2018-07-17T12:53:14
73,530,050
0
0
null
null
null
null
UTF-8
Java
false
false
2,873
java
package com.meihaifeng.activemq; /** * 浙江卓锐科技股份有限公司 * * @author meihf * @create 2016/12/5 * @description */ import javax.jms.DeliveryMode; import javax.jms.MapMessage; import javax.jms.Queue; import javax.jms.QueueConnection; import javax.jms.QueueConnectionFactory; import javax.jms.QueueSession; import javax.jms.Session; import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; public class QueueSender { // 发送次数 public static final int SEND_NUM = 5; // tcp 地址 public static final String BROKER_URL = "tcp://localhost:61616"; // 目标,在ActiveMQ管理员控制台创建 http://localhost:8161/admin/queues.jsp public static final String DESTINATION = "hoo.mq.queue"; /** * <b>function:</b> 发送消息 * @author hoojo * @createDate 2013-6-19 下午12:05:42 * @param session * @param sender * @throws Exception */ public static void sendMessage(QueueSession session, javax.jms.QueueSender sender) throws Exception { for (int i = 0; i < SEND_NUM; i++) { String message = "发送消息第" + (i + 1) + "条"; MapMessage map = session.createMapMessage(); map.setString("text", message); map.setLong("time", System.currentTimeMillis()); System.out.println(map); sender.send(map); } } public static void run() throws Exception { QueueConnection connection = null; QueueSession session = null; try { // 创建链接工厂 QueueConnectionFactory factory = new ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_USER, ActiveMQConnection.DEFAULT_PASSWORD, BROKER_URL); // 通过工厂创建一个连接 connection = factory.createQueueConnection(); // 启动连接 connection.start(); // 创建一个session会话 session = connection.createQueueSession(Boolean.TRUE, Session.AUTO_ACKNOWLEDGE); // 创建一个消息队列 Queue queue = session.createQueue(DESTINATION); // 创建消息发送者 javax.jms.QueueSender sender = session.createSender(queue); // 设置持久化模式 sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); sendMessage(session, sender); // 提交会话 session.commit(); } catch (Exception e) { throw e; } finally { // 关闭释放资源 if (session != null) { session.close(); } if (connection != null) { connection.close(); } } } public static void main(String[] args) throws Exception { QueueSender.run(); } }
[ "942962957@qq.com" ]
942962957@qq.com
9190bd3551004044c518557bdd836bb6e56eb221
d1360f61872e361b4793e524bb8c08e49afa7a25
/src/main/java/com/gz/medicine/yun/doctor/service/impl/DTmessageRecordServiceImpl.java
0ff16ba9963bf03c235065257c2370e86f291ed8
[]
no_license
8431/GZ
201e2411da5b277d1ec93d4ebe1822b9fb20a672
0a91047e38fe63d9f6877eef273fdfef9d951d2f
refs/heads/master
2021-04-06T06:49:47.362610
2018-03-12T08:22:14
2018-03-12T08:22:14
124,838,871
0
1
null
null
null
null
UTF-8
Java
false
false
12,626
java
package com.gz.medicine.yun.doctor.service.impl; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.gz.medicine.yun.doctor.request.DTfollowupTemplateRequest; import com.gz.medicine.yun.doctor.bean.DTfollowupTemplate; import com.gz.medicine.yun.doctor.mapper.DTfollowupTemplateMapper; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import com.gz.medicine.common.exception.CommonException; import com.gz.medicine.common.mybatisPageVo.Page; import com.gz.medicine.common.mybatisPageVo.PageModel; import com.gz.medicine.common.util.DateUtils; import com.gz.medicine.common.util.SimpleResult; import com.gz.medicine.common.util.UUIDTool; import com.gz.medicine.yun.doctor.bean.DTfollowupRecord; import com.gz.medicine.yun.doctor.bean.DTmessageRecord; import com.gz.medicine.yun.doctor.bean.DTmessageTemplate; import com.gz.medicine.yun.doctor.mapper.DTfollowupRecordMapper; import com.gz.medicine.yun.doctor.mapper.DTmessageRecordMapper; import com.gz.medicine.yun.doctor.mapper.DTmessageTemplateMapper; import com.gz.medicine.yun.doctor.reponse.DTfollowupRecordResponse; import com.gz.medicine.yun.doctor.reponse.DTmessageRecordResponse; import com.gz.medicine.yun.doctor.service.DTmessageRecordService; import com.gz.medicine.yun.user.bean.Usr; import com.gz.medicine.yun.user.mapper.UsrsMapper; @Service public class DTmessageRecordServiceImpl implements DTmessageRecordService { public static final Logger LOGGER = Logger.getLogger(DTmessageRecordServiceImpl.class); @Autowired private DTmessageRecordMapper messageRecordMapper; @Autowired private DTmessageTemplateMapper messageTemplateMapper; @Autowired private DTfollowupRecordMapper followupRecordMapper; @Autowired private UsrsMapper usrMapper; @Autowired private DTfollowupTemplateMapper followupTemplateMapper; /** * 短信记录 详情 */ @Override public DTmessageRecord selectByPrimaryKey(String guid) throws CommonException { // TODO Auto-generated method stub DTmessageRecord record = null; try { record = messageRecordMapper.selectByPrimaryKey(guid); } catch (Exception e) { LOGGER.debug(e.getMessage(), e); throw new CommonException("GZ10001", "request user center exception.", e); } return record; } /** * 短信模板 模糊查询 分页 */ @Override public SimpleResult queryPageSelectPrimary(PageModel pm) throws CommonException { // TODO Auto-generated method stub SimpleResult sr = null; Page pe = pm.getPage(); List<DTmessageTemplate> list = new ArrayList<DTmessageTemplate>(); try { String templatename = (String) pe.get("templatename"); if (!StringUtils.isEmpty(templatename)) { pe.put("templatename", "%" + templatename + "%"); } list = messageTemplateMapper.queryPageSelectPrimary(pe); pe.setParameterType(list); sr = SimpleResult.success(); sr.put("data", pe); } catch (Exception e) { LOGGER.error("分页查询随访短信模板Server层异常:" + e.getMessage(), e); throw new CommonException("COM001", "分页查询随访短信模板Server层异常"); } return sr; } /** * 模板新增 */ @Override public int AddPrimary(DTmessageTemplate dTmessageTemplate) throws CommonException { DTmessageTemplate template = new DTmessageTemplate(); try { // 插入系統當前時間 Date ReportTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); template.setCrtdat(DateUtils.parseDate(formatter.format(ReportTime))); template.setGuid(UUIDTool.getUUID()); template.setTemplatecontent(dTmessageTemplate.getTemplatecontent()); template.setTemplatename(dTmessageTemplate.getTemplatename()); template.setDocguid(dTmessageTemplate.getDocguid()); // 医生的guid template.setOrg("chis"); template.setStatus("1"); messageTemplateMapper.insertTemplate(template); } catch (Exception e) { LOGGER.error("模板新增Server层异常:" + e.getMessage(), e); throw new CommonException("COM001", "模板新增Server层异常"); } return 0; } /** * 短信记录详情 list */ @Override public List<DTmessageRecord> selectByGuidKey(String guid) throws CommonException { // TODO Auto-generated method stub List<DTmessageRecord> record = null; try { record = messageRecordMapper.selectByGuidKey(guid); } catch (Exception e) { LOGGER.debug(e.getMessage(), e); throw new CommonException("GZ10001", "request user center exception.", e); } return record; } /** * 模板修改 */ @Override public int updateByTemplate(DTmessageTemplate record) throws CommonException { DTmessageTemplate template = new DTmessageTemplate(); DTmessageTemplate template2 = null; try { // 查单个 template2 = messageTemplateMapper.selectByPrimaryKey(record.getGuid()); if (template2 != null) {// 有数据 // 插入系統當前時間 Date ReportTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); template.setUpdatedate(DateUtils.parseDate(formatter.format(ReportTime))); // 更新时间 template.setTemplatecontent(record.getTemplatecontent());// 模板内容 template.setTemplatename(record.getTemplatename());// 模板名称 template.setGuid(record.getGuid()); messageTemplateMapper.updateByTemplate(template); } } catch (Exception e) { LOGGER.error("模板修改Server层异常:" + e.getMessage(), e); throw new CommonException("COM001", "模板修改Server层异常"); } return 0; } /** * 假删除 短信模板 */ @Override public int deleteByTemplate(DTmessageTemplate record) throws CommonException { DTmessageTemplate template = new DTmessageTemplate(); DTmessageTemplate template2 = null; try { // 查单个 template2 = messageTemplateMapper.selectByPrimaryKey(record.getGuid()); if (template2 != null) {// 有数据 template.setStatus("0"); template.setGuid(record.getGuid()); messageTemplateMapper.deleteByTemplate(template); } } catch (Exception e) { LOGGER.error("模板假删除Server层异常:" + e.getMessage(), e); throw new CommonException("COM001", "模板假删除Server层异常"); } return 0; } /** * 视频详情 */ @Override public List<DTfollowupRecordResponse> selectDTfollowupRecord(String guid) throws CommonException { List<DTfollowupRecordResponse> response = null; try { response = followupRecordMapper.selectDTfollowupRecord(guid); } catch (Exception e) { // TODO: handle exception LOGGER.debug(e.getMessage(), e); throw new CommonException("GZ10001", "request user center exception.", e); } return response; } /** * 随访记录 列表 */ @Override public SimpleResult selectByMessageRecord(PageModel page) throws CommonException { SimpleResult sr = null; List<DTmessageRecord> response = null; DTmessageRecordResponse dtreponse = new DTmessageRecordResponse(); Page p = page.getPage(); try { String usruid = p.get("usrguid").toString(); // 用户基本信息 Usr usr = usrMapper.selectByRecordMessage(usruid); if (usr != null) { dtreponse.setUsrname(usr.getName()); dtreponse.setSex(usr.getSex()); dtreponse.setAge(usr.getAge()); dtreponse.setMobile(usr.getMobile()); // 随访列表 response = messageRecordMapper.queryPageByMessageRecord(p); p.setParameterType(response); sr = SimpleResult.success(); p.put("usr", dtreponse); sr.put("data", p); }else{ sr = SimpleResult.success(); p.setParameterType(response); p.put("usr", dtreponse); sr.put("data", p); } } catch (Exception e) { LOGGER.debug(e.getMessage(), e); throw new CommonException("GZ10001", "request user center exception.", e); } return sr; } /** * 随访记录 列表 pc端 分页 */ @Override public SimpleResult queryPageMessageRecord(PageModel page) throws CommonException { SimpleResult sr = null; List<DTfollowupRecord> response = null; Page p = page.getPage(); try { // 随访列表1503676800000 response = followupRecordMapper.queryPageMessageRecord(p); p.setParameterType(response); sr = SimpleResult.success(); sr.put("data", p); } catch (Exception e) { LOGGER.debug(e.getMessage(), e); throw new CommonException("GZ10001", "request user center exception.", e); } return sr; } /** * 随访模板 * @param * @return * @throws CommonException */ @Override public Page queryPageFollow(PageModel page) throws CommonException { List<DTfollowupTemplate> response = null; Page p = page.getPage(); try { if(p.get("userid")==null||p.get("type")==null) { throw new CommonException("医生id和模板类型不能为空"); } String title = (String) p.get("title"); if (!StringUtils.isEmpty(title)) { p.put("title", "%" + title + "%"); } response = followupTemplateMapper.queryPageFollow(p); p.setParameterType(response); } catch (Exception e) { LOGGER.error("随访模板Server层异常:" + e.getMessage(), e); throw new CommonException("GZ10001", "request user center exception.", e); } return p; } /** * 新增随访模板 www * @param record * @return * @throws CommonException */ @Override public String insertFollow(DTfollowupTemplateRequest record) throws CommonException { String result = null; try { DTfollowupTemplate followupTemplate = new DTfollowupTemplate(); // 插入系統當前時間 Date Createdate = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); followupTemplate.setCreatedate(DateUtils.parseDate(formatter.format(Createdate))); followupTemplate.setId(UUIDTool.getUUID()); followupTemplate.setUserid(record.getUserid()); followupTemplate.setTitle(record.getTitle()); followupTemplate.setContent(record.getContent()); followupTemplate.setType(record.getType()); followupTemplate.setState("1"); followupTemplateMapper.insert(followupTemplate); } catch (Exception e) { LOGGER.error("执行sql异常(方法:updateItemByIdConsultationSummary)" + e.getMessage(), e); throw new CommonException("COM001", "执行sql异常(方法:updateItemByIdConsultationSummary)"); } result = "0"; return result; } /** * 随访模板 修改 www * @param record * @return * @throws CommonException */ @Override public String updateByPrimaryKeySelective(DTfollowupTemplateRequest record) throws CommonException { String result = null; DTfollowupTemplate template = new DTfollowupTemplate(); DTfollowupTemplate template2 = null; try { // 查单个 template2 = followupTemplateMapper.selectByPrimaryKey(record.getId()); if (template2 != null) {// 有数据 // 插入系統當前時間 Date ReportTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); template.setUpdatedate(DateUtils.parseDate(formatter.format(ReportTime))); // 更新时间 template.setUserid(record.getUserid()); template.setTitle(record.getTitle()); template.setContent(record.getContent()); template.setType(record.getType()); template.setId(record.getId()); followupTemplateMapper.updateByPrimaryKeySelective(template); } } catch (Exception e) { LOGGER.error("模板修改Server层异常:" + e.getMessage(), e); throw new CommonException("COM001", "模板修改Server层异常"); } result = "0"; return result; } /** * 假删 www * @param record * @return * @throws CommonException */ @Override public String updateState(DTfollowupTemplate record) throws CommonException { String result = null; DTfollowupTemplate template = new DTfollowupTemplate(); DTfollowupTemplate template2 = null; try { // 查单个 template2 = followupTemplateMapper.selectByPrimaryKey(record.getId()); if (template2 != null) {// 有数据 // 插入系統當前時間 Date ReportTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); template.setUpdatedate(DateUtils.parseDate(formatter.format(ReportTime))); // 更新时间 template.setId(record.getId()); template.setState("0"); followupTemplateMapper.updateState(template); } } catch (Exception e) { LOGGER.error("模板修改Server层异常:" + e.getMessage(), e); throw new CommonException("COM001", "模板修改Server层异常"); } result = "0"; return result; } }
[ "287186411@qq.com" ]
287186411@qq.com
c6434de03f48fa39c5afc3fe2264974272291d23
0b95ecbb218f7975c96d9cbf3877817c059c1510
/hybris/bin/custom/tietomerchendise/tietomerchendisefulfilmentprocess/testsrc/com/tieto/tre/tietomerchendise/fulfilmentprocess/test/PrepareOrderForManualCheckTest.java
7effb99c544df29a825157dd6c064d8e3f553d99
[]
no_license
mrlaron/hybrisoms
e197d4f7f70af9f2480527207d57ed05390e341e
38d6da9a554548713db229f2a5d979544edab7d5
refs/heads/master
2021-01-10T06:11:33.393189
2015-12-17T19:49:27
2015-12-17T19:49:27
47,922,051
0
0
null
null
null
null
UTF-8
Java
false
false
2,310
java
/* * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ package com.tieto.tre.tietomerchendise.fulfilmentprocess.test; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import de.hybris.platform.core.enums.OrderStatus; import de.hybris.platform.core.model.order.OrderModel; import de.hybris.platform.orderprocessing.model.OrderProcessModel; import de.hybris.platform.servicelayer.event.EventService; import de.hybris.platform.servicelayer.model.ModelService; import de.hybris.platform.task.RetryLaterException; import com.tieto.tre.tietomerchendise.fulfilmentprocess.actions.order.PrepareOrderForManualCheckAction; public class PrepareOrderForManualCheckTest { private PrepareOrderForManualCheckAction prepareOrderForManualCheck; @Mock private ModelService modelService; @Mock private EventService eventService; @Before public void setUp() { MockitoAnnotations.initMocks(this); prepareOrderForManualCheck = new PrepareOrderForManualCheckAction(); prepareOrderForManualCheck.setModelService(modelService); prepareOrderForManualCheck.setEventService(eventService); } @Test public void testExecute() throws RetryLaterException, Exception { final OrderProcessModel orderProcess = new OrderProcessModel(); final OrderModel order = new OrderModel(); order.setStatus(OrderStatus.CREATED); orderProcess.setOrder(order); prepareOrderForManualCheck.executeAction(orderProcess); Assert.assertEquals(OrderStatus.WAIT_FRAUD_MANUAL_CHECK, orderProcess.getOrder().getStatus()); } @Test(expected=IllegalArgumentException.class) public void testExecuteNullProcess() throws RetryLaterException, Exception { prepareOrderForManualCheck.executeAction(null); } @Test(expected=IllegalArgumentException.class) public void testExecuteNullOrder() throws RetryLaterException, Exception { prepareOrderForManualCheck.executeAction(new OrderProcessModel()); } }
[ "lars.mellberg@tieto.com" ]
lars.mellberg@tieto.com
f9f37d1ca69553cfe26daa2a3c677d9ec21c31a7
75f68fa98352cce806e838aff2ab723fd0984811
/backPackII.java
a888aebe2008892b9e0a84dde370c5f012132124
[]
no_license
LiHan-hopeful/JavaOJ
a9820c2aa0e289c931901064b140b6d0a4b9f264
45ed6ade6c63e73888d309c5690a6c044d4cf454
refs/heads/master
2021-04-23T20:09:05.790954
2020-10-16T13:24:20
2020-10-16T13:24:20
249,991,713
0
0
null
null
null
null
UTF-8
Java
false
false
3,340
java
public class Solution { /** * @param m: An integer m denotes the size of a backpack * @param A: Given n items with size A[i] * @param V: Given n items with value V[i] * @return: The maximum value */ public int backPackII(int m, int[] A, int[] V) { // write your code here int num = A.length; if(m == 0 || num == 0) return 0; //多加一行一列,用于设置初始条件 int[][] maxValue = new int[num + 1][m + 1]; //初始化所有位置为0,第一行和第一列都为0,初始条件 for(int i = 0; i <= num; ++i){ maxValue[i][0] = 0; } for(int i = 1; i <= m; ++i){ maxValue[0][i] = 0; } for(int i = 1; i <= num; ++i){ for(int j = 1; j <= m; ++j){ //第i个商品在A中对应的索引为i-1: i从1开始 //如果第i个商品大于j,说明放不下, 所以(i,j)的最大价值和(i-1,j)相同 if(A[i - 1] > j){ maxValue[i][j] = maxValue[i - 1][j]; } else{ //如果可以装下,分两种情况,装或者不装 //如果不装,则即为(i-1, j) //如果装,需要腾出放第i个物品大小的空间: j - A[i-1],装入之后的最大价值即为(i -1, j - A[i-1]) + 第i个商品的价值V[i - 1] //最后在装与不装中选出最大的价值 int newValue = maxValue[i - 1][j - A[i - 1]] + V[i - 1]; maxValue[i][j] = Math.max(newValue , maxValue[i - 1][j]); } } } //返回装入前N个商品,物品大小为m的最大价值 return maxValue[num][m]; } } //优化算法 public class Solution { /** * @param m: An integer m denotes the size of a backpack * @param A: Given n items with size A[i] * @param V: Given n items with value V[i] * @return: The maximum value */ public int backPackII(int m, int[] A, int[] V) { // write your code here int num = A.length; if(m == 0 || num == 0) return 0; //多加一列,用于设置初始条件,因为第一件商品要用到前面的初始值 int[] maxValue = new int[m + 1]; //初始化所有位置为0,第一行都为0,初始条件 for(int i = 0; i <= m; ++i){ maxValue[i] = 0; } for(int i = 1; i <= num; ++i){ for(int j = m; j > 0; --j){ //如果第i个商品大于j,说明放不下, 所以(i,j)的最大价值和(i-1,j)相同 //如果可以装下,分两种情况,装或者不装 //如果不装,则即为(i-1, j) //如果装,需要腾出放第i个物品大小的空间: j - A[i],装入之后的最大价值即为(i - 1, j - A[i-1]) + 第i个商品的价值V[i] //最后在装与不装中选出最大的价值 if(A[i - 1] <= j){ int newValue = maxValue[j - A[i - 1]] + V[i - 1]; maxValue[j] = Math.max(newValue, maxValue[j]); } } } //返回装入前N个商品,物品大小为m的最大价值 return maxValue[m]; } }
[ "1036177761@qq.com" ]
1036177761@qq.com
5f5398e450abd9a3da7d9cb470e2dec87d3775a0
334b0129176b01b6a65cafd425d32f5ad583dc43
/support/JastAddJ/Java7Frontend/JavaPrettyPrinter.java
1f25d746f342fcde5bd60c9f64491501cc77add5
[ "BSD-3-Clause" ]
permissive
vivkumar/ajws
98ef66f23347644b155f5c9aabca3f9d36ed90ef
bd5535fcccfa3aee545752df69bb41d652e9f9f8
refs/heads/master
2021-01-19T03:02:50.376914
2016-07-26T16:19:15
2016-07-26T16:19:15
51,934,323
1
0
null
null
null
null
UTF-8
Java
false
false
2,626
java
/* * The JastAdd Extensible Java Compiler (http://jastadd.org) is covered * by the modified BSD License. You should have received a copy of the * modified BSD license with this compiler. * * Copyright (c) 2005-2008, Torbjorn Ekman * 2011, Jesper Öqvist <jesper.oqvist@cs.lth.se> * All rights reserved. */ import AST.*; import java.io.*; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Java pretty printer. * Parses and then pretty prints a Java program. */ class JavaPrettyPrinter extends Frontend { public static void main(String args[]) { if(!compile(args)) System.exit(1); } public static boolean compile(String args[]) { return new JavaPrettyPrinter().process( args, new BytecodeParser(), new JavaParser() { public CompilationUnit parse(java.io.InputStream is, String fileName) throws java.io.IOException, beaver.Parser.Exception { return new parser.JavaParser().parse(is, fileName); } } ); } protected void processErrors(java.util.Collection errors, CompilationUnit unit) { super.processErrors(errors, unit); } protected void processNoErrors(CompilationUnit unit) { String separator = System.getProperty("file.separator"); if (separator == "\\") // regex escape separator = "\\\\"; String fnIn = unit.pathName(); Pattern srcPattern = Pattern.compile( "^(.*"+separator+ ")?([^"+separator+ "]+)\\.java$"); Matcher matcher = srcPattern.matcher(fnIn); if (!matcher.find()) throw new Error("Coult not determine output filename "+ "for source file "+fnIn); String fnOut = ""; if (program.options().hasOption("-d")) fnOut = program.options().getValueForOption("-d") + System.getProperty("file.separator"); fnOut += matcher.group(2)+".txt"; try { FileOutputStream fout = new FileOutputStream( new File(fnOut)); PrintStream out = new PrintStream(fout); out.println(unit.toString()); fout.close(); } catch (IOException e) { System.err.println("Could not write output to "+fnOut); } } protected ResourceBundle resources = null; protected String resourcename = "JastAddJ"; protected String getString(String key) { if (resources == null) { try { resources = ResourceBundle.getBundle( resourcename); } catch (MissingResourceException e) { throw new Error("Could not open the resource " + resourcename); } } return resources.getString(key); } protected String name() { return getString("jastaddj.PrettyPrinter"); } protected String version() { return getString("jastaddj.Version"); } }
[ "vivek@vivek-3.local" ]
vivek@vivek-3.local
20b72527d75527168cc7b3494801a07c7fb71109
e73f602600661c03fd90adeb2d8e9f07918ec743
/src/cz/mg/application/entities/objects/MgObject.java
2f448c941ecc6e64bc4e6937706a2890e6f43790
[ "Unlicense" ]
permissive
Gekoncze/JMgApplication
7418bc9645075e3c6cc78f3c6d32065f428cd3a0
7735ed1582079913e77410f33ff3ffff7cd8e638
refs/heads/main
2023-03-15T18:05:24.526213
2021-03-07T10:56:30
2021-03-07T10:56:30
321,119,625
0
0
null
null
null
null
UTF-8
Java
false
false
456
java
package cz.mg.application.entities.objects; import cz.mg.annotations.requirement.Mandatory; import cz.mg.annotations.storage.Link; import cz.mg.application.entities.MgEntity; import cz.mg.application.entities.types.MgType; public abstract class MgObject extends MgEntity { @Mandatory @Link private final MgType type; public MgObject(MgType type) { this.type = type; } public MgType getType() { return type; } }
[ "gekoncze@seznam.cz" ]
gekoncze@seznam.cz
ad781fec8fa383912b4d927b5eb2fc449e7b8580
044cdc7e84fee9b87f4b97811c2e52baf484f551
/src/login/Login.java
879e640e2ea1dd35a160f96e408b80fdaf21359e
[]
no_license
alisumait/library-management-system
262c4895692e3ce0aed1b43c838d3077d09d54a1
e49564acaecdf36021f82dab16cd732a2dbf6cd6
refs/heads/master
2020-04-04T17:57:22.874913
2018-11-05T01:45:13
2018-11-05T01:45:13
156,142,626
0
0
null
null
null
null
UTF-8
Java
false
false
946
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package login; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; /** * * @author alisu */ public class Login extends Application { Stage window; @Override public void start(Stage primaryStage) throws Exception { window = primaryStage; Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml")); Scene scene = new Scene(root); window.setScene(scene); window.show(); } /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } }
[ "34596605+alisumait@users.noreply.github.com" ]
34596605+alisumait@users.noreply.github.com
6203d0dbaba6e494b38b173c594c6544b9a36d62
802476ea391d56b88636080a810a9ae305cd2eaa
/src/main/java/org/enner/flatbuffers/Table.java
269f562687fd6cda641b3d4a48f85e98fd038776
[ "Apache-2.0" ]
permissive
HasRoie/flatbuffers-java-poc
483c5453c5d99cbbf68f2a9b4941563b40620a21
724d6da330cfd1bc39375adebd4bbbef9ec6781e
refs/heads/master
2021-01-15T13:42:59.824771
2015-01-14T16:18:42
2015-01-14T16:18:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,919
java
package org.enner.flatbuffers; import org.enner.flatbuffers.Addressable.ReferenceType; import static org.enner.flatbuffers.Utilities.*; /** * Base class for all Tables. For now it contains convenience * wrappers for both setters and getters due to single inheritance. * * @author Florian Enner < florian @ hebirobotics.com > * @since 11 Jan 2015 */ public abstract class Table extends ReferenceType { /** * @return number of fields in the vector table */ public abstract int fieldCount(); protected boolean hasField(int fieldId) { return Tables.hasField(getBuffer(), getAddress(), fieldId); } protected boolean hasAddressable(int fieldId, Type type) { switch (type) { case VALUE: return hasField(fieldId); case REFERENCE: return getReferenceTypeAddress(fieldId) != NULL; } return false; } /** * @return sets the object to the found address. returns null if field is not found. * You should call hasAddressable(fieldId, type) if you are not sure whether the * field is populated. */ protected <T extends Addressable> T getAddressable(T addressable, int fieldId) { int address = NULL; switch (addressable.getType()) { case VALUE: address = getValueTypeAddress(fieldId); break; case REFERENCE: address = getReferenceTypeAddress(fieldId); break; } addressable.setAddress(address); return addressable; } protected int getValueTypeAddress(int fieldId) { return Tables.getValueTypeAddress(getBuffer(), getAddress(), fieldId); } protected int getReferenceTypeAddress(int fieldId) { return Tables.getReferenceTypeAddress(getBuffer(), getAddress(), fieldId); } protected int getPayloadSize() { return Tables.getPayloadSize(getBuffer(), getAddress()); } protected int initReferencePointer(int fieldId) { return Tables.initReferencePointer(getBuffer(), getAddress(), fieldId); } protected int initPrimitive(int fieldId, int size) { return Tables.initValueType(getBuffer(), getAddress(), fieldId, size, false); } protected int getVectorLength(int fieldId) { int vector = getReferenceTypeAddress(fieldId); return Vectors.getLength(getBuffer(), vector); } protected int getVectorElementAddress(int fieldId, int index, int elementSize) { int vector = getReferenceTypeAddress(fieldId); return Vectors.getValueTypeAddress(getBuffer(), vector, index, elementSize); } /** * @return A builder to an existing location, or to a newly allocated one * if none exists */ protected <T extends Addressable> T getOrCreateAddressable(T builder, int fieldId) { if (builder instanceof Struct) { int address = getValueTypeAddress(fieldId); if (address == NULL) { int size = ((Struct) builder).size(); address = Tables.initValueType(getBuffer(), getAddress(), fieldId, size, false); } builder.setAddress(address); return builder; } else if (builder instanceof Table) { // Find table int pointer = initReferencePointer(fieldId); int address = Pointers.dereference(getBuffer(), pointer); // Build new table if none exists if (address == NULL) { int numFields = ((Table) builder).fieldCount(); address = FlatBuffers.addTable(getBuffer(), numFields); Pointers.setReference(getBuffer(), pointer, address); } builder.setAddress(address); return builder; } throw new IllegalArgumentException("Unknown addressable type."); } }
[ "florian@enner.org" ]
florian@enner.org
63c1471d9758452dab1295538718189a75437f82
8727b1cbb8ca63d30340e8482277307267635d81
/PolarWorld/src/com/game/toplist/structs/ArrowTop.java
bd27eb579e2167981b8419126559c7409c50f5cc
[]
no_license
taohyson/Polar
50026903ded017586eac21a7905b0f1c6b160032
b0617f973fd3866bed62da14f63309eee56f6007
refs/heads/master
2021-05-08T12:22:18.884688
2015-12-11T01:44:18
2015-12-11T01:44:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,118
java
package com.game.toplist.structs; import com.game.toplist.manager.TopListManager; /** * 弓箭排行数据 * * @author */ public class ArrowTop extends TopData{ private int arrowlv; private int starlv; private int bowlv; private int level; private int costgold; public ArrowTop(long topid, int arrowlv, int starlv, int bowlv, int level, int costgold) { super(topid); this.arrowlv = arrowlv; this.starlv = starlv; this.bowlv = bowlv; this.level = level; this.costgold = costgold; } public int getArrowlv() { return arrowlv; } public void setArrowlv(int arrowlv) { this.arrowlv = arrowlv; } public int getBowlv() { return bowlv; } public void setBowlv(int bowlv) { this.bowlv = bowlv; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public int getStarlv() { return starlv; } public void setStarlv(int starlv) { this.starlv = starlv; } public int getCostgold() { return costgold; } public void setCostgold(int costgold) { this.costgold = costgold; } @Override public boolean checkAddCondition() { return TopListManager.SYNC_ARROW <= arrowlv; } @Override public int compare(TopData otherTopData) { if (otherTopData instanceof ArrowTop) { ArrowTop othTop = (ArrowTop) otherTopData; if (othTop != null) { if (othTop.getArrowlv() > this.getArrowlv()) { return 1; } else if (othTop.getArrowlv() == this.getArrowlv()) { if (othTop.getStarlv() > this.getStarlv()) { return 1; } else if (othTop.getStarlv() == this.getStarlv()) { if (othTop.getBowlv() > this.getBowlv()) { return 1; } else if (othTop.getBowlv() == this.getBowlv()) { if (othTop.getLevel() > this.getLevel()) { return 1; } else if (othTop.getLevel() == this.getLevel()) { if (othTop.getCostgold() > this.getCostgold()) { return 1; } else if (othTop.getCostgold() == this.getCostgold()) { //return 1; return super.compare(otherTopData); } } } } } } } return -1; } }
[ "zhuyuanbiao@ZHUYUANBIAO.rd.com" ]
zhuyuanbiao@ZHUYUANBIAO.rd.com
80c104a657debbb24f6af49a54afa0ecf0444483
8ccc75d224f35fe6e448c8aec35d2bccf88cf73d
/MyLearningHinernate/JavaSource/br/com/mylearning/util/HibernateUtil.java
71215592490c5c0d988a62342efd3ff83a6e6dcf
[]
no_license
fabiolopes/my-teste-subv
43d5cca4d85baaa08048cda296b6c74ca0b5454e
7779bf2abb7b818b8c46d044696bbbb7b541cf29
refs/heads/master
2021-01-01T18:38:33.861810
2017-06-24T23:26:30
2017-06-24T23:26:30
41,392,511
0
1
null
null
null
null
UTF-8
Java
false
false
717
java
package br.com.mylearning.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtil { private static final SessionFactory sessionFactory; private static Log log = LogFactory.getLog(HibernateUtil.class); static{ try { log.debug("Iniciando a sessionFactory"); sessionFactory = new Configuration().configure().buildSessionFactory(); } catch (Throwable ex) { log.error("Erro criando sessionFactory"); throw new ExceptionInInitializerError(ex); } } public static SessionFactory getSessionFactory(){ return sessionFactory; } }
[ "fabioflb85@gmail.com" ]
fabioflb85@gmail.com
27b40f5b8bf4697712be9d605ed6bf0d1b3b4971
060ed2d37a214ea865609f2c5ff8693696fa2e8b
/java-parser-root/eclipseJdtCore/src/astextractor/ASTExtractorTest.java
229d6d5fe4500028993c5689c20031c09df6977f
[]
no_license
teratos/myApp
c992e6eea5467e88da1f421f8b1089302ef789f3
79cea6eee609e1daf5293ae8d12af308b47cbff3
refs/heads/master
2020-04-04T08:40:59.147069
2018-11-02T14:39:07
2018-11-02T14:39:07
155,790,434
0
0
null
null
null
null
UTF-8
Java
false
false
940
java
package astextractor; /** * Test for the {@link ASTExtractor} class. * * @author themis */ public class ASTExtractorTest { /** * Function used to test the AST extractor. * * @param args unused parameter. */ public static void main(String[] args) { ASTExtractorProperties.setProperties("ASTExtractor.properties"); // @formatter:off String ast = ASTExtractor.parseString("" + "import org.myclassimports;\n" + "" + "public class MyClass {\n" + " private int myvar;\n" + "\n" + " public MyClass(int myvar) {\n" + " this.myvar = myvar;\n" + " }\n" + "" + " public void getMyvar() {\n" + " return myvar;\n" + " }\n" + "}\n" ); // @formatter:on System.out.println(ast); } }
[ "VUgai@phoenixit.ru" ]
VUgai@phoenixit.ru
d5a3f89d8f328f453bebc2f9d580967d26b9e899
fb14cf2d843987adfaa7e34d67b65ce8dd280ca8
/InjectAnnotation/src/main/java/com/ioc/di/InjectAnnotation/bean/Car.java
f87a5997a7583529ce6f5d6e2f36970b1ef25c12
[]
no_license
sumanreddy99/java
48e0ef7d665d7300b0094a47d9d9476d9e003705
19569b68f3f0996ff3cd42d196f80b6c0b0c261a
refs/heads/master
2022-12-16T09:15:04.285561
2020-06-30T11:26:25
2020-06-30T11:26:25
189,870,293
0
0
null
null
null
null
UTF-8
Java
false
false
358
java
package com.ioc.di.InjectAnnotation.bean; import javax.annotation.Resource; import javax.inject.Inject; import org.springframework.beans.factory.annotation.Qualifier; /** * Hello world! * */ public class Car { @Inject private Engine e1; public void printData() { // TODO Auto-generated method stub System.out.println("Car "+e1.getName()); } }
[ "m.suman.reddy@live.com" ]
m.suman.reddy@live.com
f557b8ae061feb769e11b3a8e24acfac4e142ca7
553392b78d2110c70433af1acbb3bde9660fc860
/editor/src/com/kotcrab/vis/editor/serializer/json/GsonUtils.java
6d7f844f0e94a28e1ee4f6e3ae063e0636489f82
[ "Apache-2.0" ]
permissive
stbachmann/VisEditor
00b9ece7e587099e1c32786a1d05b04a0a02b5fa
0c5d052858753d2828c22e4b3ef16619e12b1f95
refs/heads/master
2021-01-18T00:04:05.249500
2016-06-08T20:06:31
2016-06-08T20:06:31
52,627,769
3
0
null
2016-02-26T19:32:40
2016-02-26T19:32:40
null
UTF-8
Java
false
false
1,606
java
/* * Copyright 2014-2016 See AUTHORS file. * * 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.kotcrab.vis.editor.serializer.json; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonElement; import com.google.gson.JsonSerializationContext; /** @author Kotcrab */ public class GsonUtils { public static void appendClassProperty (JsonElement json, Object object, JsonSerializationContext context) { appendClassProperty(json, object, context, "@class"); } public static void appendClassProperty (JsonElement json, Object object, JsonSerializationContext context, String customMemberName) { json.getAsJsonObject().add(customMemberName, context.serialize(object.getClass())); } public static Class<?> readClassProperty (JsonElement json, JsonDeserializationContext context) { return readClassProperty(json, context, "@class"); } public static Class<?> readClassProperty (JsonElement json, JsonDeserializationContext context, String customMemberName) { return context.deserialize(json.getAsJsonObject().get(customMemberName), Class.class); } }
[ "kotcrab@gmail.com" ]
kotcrab@gmail.com
a9596d4532ee184f193b5aea2316418dccd01bb4
c1992a284cbee70a57dcbd63b3edb882edd8ddcf
/storefront/gensrc/de/hybris/platform/storefront/jalo/GeneratedStorefrontManager.java
d323087a48a71048b17396f08d9f81c46346a8a4
[]
no_license
woniugogogo/storefront
03e4d2b070bb82126524535e31a8db66da6d9443
589b48efa676e43a75ee2838c82a2a2ab5063dd3
refs/heads/master
2021-01-12T08:21:25.597700
2016-12-21T03:25:51
2016-12-21T03:25:51
76,550,206
0
0
null
null
null
null
UTF-8
Java
false
false
4,616
java
/* * ---------------------------------------------------------------- * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- * --- Generated at Dec 20, 2016 5:17:51 PM --- * ---------------------------------------------------------------- * * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the license agreement you entered into with SAP Hybris. * */ package de.hybris.platform.storefront.jalo; import de.hybris.platform.jalo.Item; import de.hybris.platform.jalo.Item.AttributeMode; import de.hybris.platform.jalo.JaloBusinessException; import de.hybris.platform.jalo.JaloSystemException; import de.hybris.platform.jalo.SessionContext; import de.hybris.platform.jalo.extension.Extension; import de.hybris.platform.jalo.type.ComposedType; import de.hybris.platform.jalo.type.JaloGenericCreationException; import de.hybris.platform.storefront.constants.StorefrontConstants; import de.hybris.platform.storefront.jalo.Bug; import de.hybris.platform.storefront.jalo.BugComment; import de.hybris.platform.storefront.jalo.BugUser; import java.util.HashMap; import java.util.Map; /** * Generated class for type <code>StorefrontManager</code>. */ @SuppressWarnings({"deprecation","unused","cast","PMD"}) public abstract class GeneratedStorefrontManager extends Extension { protected static final Map<String, Map<String, AttributeMode>> DEFAULT_INITIAL_ATTRIBUTES; static { final Map<String, Map<String, AttributeMode>> ttmp = new HashMap(); DEFAULT_INITIAL_ATTRIBUTES = ttmp; } @Override public Map<String, AttributeMode> getDefaultAttributeModes(final Class<? extends Item> itemClass) { Map<String, AttributeMode> ret = new HashMap<>(); final Map<String, AttributeMode> attr = DEFAULT_INITIAL_ATTRIBUTES.get(itemClass.getName()); if (attr != null) { ret.putAll(attr); } return ret; } public Bug createBug(final SessionContext ctx, final Map attributeValues) { try { ComposedType type = getTenant().getJaloConnection().getTypeManager().getComposedType( StorefrontConstants.TC.BUG ); return (Bug)type.newInstance( ctx, attributeValues ); } catch( JaloGenericCreationException e) { final Throwable cause = e.getCause(); throw (cause instanceof RuntimeException ? (RuntimeException)cause : new JaloSystemException( cause, cause.getMessage(), e.getErrorCode() ) ); } catch( JaloBusinessException e ) { throw new JaloSystemException( e ,"error creating Bug : "+e.getMessage(), 0 ); } } public Bug createBug(final Map attributeValues) { return createBug( getSession().getSessionContext(), attributeValues ); } public BugComment createBugComment(final SessionContext ctx, final Map attributeValues) { try { ComposedType type = getTenant().getJaloConnection().getTypeManager().getComposedType( StorefrontConstants.TC.BUGCOMMENT ); return (BugComment)type.newInstance( ctx, attributeValues ); } catch( JaloGenericCreationException e) { final Throwable cause = e.getCause(); throw (cause instanceof RuntimeException ? (RuntimeException)cause : new JaloSystemException( cause, cause.getMessage(), e.getErrorCode() ) ); } catch( JaloBusinessException e ) { throw new JaloSystemException( e ,"error creating BugComment : "+e.getMessage(), 0 ); } } public BugComment createBugComment(final Map attributeValues) { return createBugComment( getSession().getSessionContext(), attributeValues ); } public BugUser createBugUser(final SessionContext ctx, final Map attributeValues) { try { ComposedType type = getTenant().getJaloConnection().getTypeManager().getComposedType( StorefrontConstants.TC.BUGUSER ); return (BugUser)type.newInstance( ctx, attributeValues ); } catch( JaloGenericCreationException e) { final Throwable cause = e.getCause(); throw (cause instanceof RuntimeException ? (RuntimeException)cause : new JaloSystemException( cause, cause.getMessage(), e.getErrorCode() ) ); } catch( JaloBusinessException e ) { throw new JaloSystemException( e ,"error creating BugUser : "+e.getMessage(), 0 ); } } public BugUser createBugUser(final Map attributeValues) { return createBugUser( getSession().getSessionContext(), attributeValues ); } @Override public String getName() { return StorefrontConstants.EXTENSIONNAME; } }
[ "woniu@xuanxuan.lan" ]
woniu@xuanxuan.lan
978f8f575156f6fe594f08b6215d1e345f27e399
e43951f75adcda70830ca0c26f9ece7e7921d01b
/src/main/java/cn/meteor/im/filter/CorsFilter.java
2e959916d1484301efa8ba0a9c7c8793a93fc685
[ "Apache-2.0" ]
permissive
Lxinglei/webim-backend
7f86bfd92132cced4ed99897a6e2c15e97b7aa32
29c56615b6c62e6fc5fbdccb600cacca623a4ef2
refs/heads/master
2020-03-22T09:23:09.998085
2018-07-14T09:43:30
2018-07-14T09:43:30
139,833,510
1
0
null
null
null
null
UTF-8
Java
false
false
1,080
java
package cn.meteor.im.filter; import javax.servlet.*; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * @author Meteor */ public class CorsFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletResponse response = (HttpServletResponse) res; response.setHeader("Access-Control-Allow-Origin", "http://127.0.0.1:3000"); response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE"); response.setHeader("Access-Control-Max-Age", "3600"); response.setHeader("Access-Control-Allow-Headers", "token,Access-Control-Allow-Origin,Access-Control-Allow-Methods,Access-Control-Max-Age,Authorization"); response.setHeader("Access-Control-Allow-Credentials", "true"); chain.doFilter(req, res); } @Override public void destroy() { } }
[ "Meteor" ]
Meteor
bb1d75aba09fcc9b1366843a86b0d7ebaa6c06de
a876372845fb60ed62193e794d7061321e662224
/annShop/src/main/java/cn/asmm/shop/protocol/usercollectdeleteResponse.java
89129b52205ee3967f688a88d632f09bbb05ace2
[]
no_license
datasheetA/AnnEcmobile
7ccd408655ff022b74618862f6bd1f73a388f866
e8cf98adc782692cead30cbe54f66f636d748073
refs/heads/master
2020-05-30T04:35:25.182945
2016-02-27T23:54:33
2016-02-27T23:54:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,113
java
package cn.asmm.shop.protocol; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import cn.asmm.activeandroid.Model; import cn.asmm.activeandroid.annotation.Column; import cn.asmm.activeandroid.annotation.Table; @Table(name = "usercollectdeleteResponse") public class usercollectdeleteResponse extends Model { @Column(name = "status") public STATUS status; public void fromJson(JSONObject jsonObject) throws JSONException { if(null == jsonObject){ return ; } JSONArray subItemArray; STATUS status = new STATUS(); status.fromJson(jsonObject.optJSONObject("status")); this.status = status; return ; } public JSONObject toJson() throws JSONException { JSONObject localItemObject = new JSONObject(); JSONArray itemJSONArray = new JSONArray(); if(null != status) { localItemObject.put("status", status.toJson()); } return localItemObject; } }
[ "luozhengan@vip.qq.com" ]
luozhengan@vip.qq.com
97ee7e7b774a390061fcd1807c1f8d261570f215
0e0c24845a09305096ae5e1a0ba4e22aa7020c8b
/src/main/java/data/InactiveSubscriptionState.java
c3a444788cef8b4b1ada15e53aa7ccb3faa03ff9
[]
no_license
endizhupani/Task3
68a8199544273923d03e0fbcfa4d50409b29062a
2efa62434b0788e8d3fbae66540f46a18912408b
refs/heads/master
2021-01-25T04:35:52.376111
2017-06-14T22:34:21
2017-06-14T22:34:21
93,453,298
0
0
null
null
null
null
UTF-8
Java
false
false
789
java
package data; public class InactiveSubscriptionState implements SubscriptionState { private Subscription subscription; public InactiveSubscriptionState(Subscription subscription) { this.subscription = subscription; } //@Override public String getState() { // TODO Auto-generated method stub return "Inactive"; } public void startSubscription() { // TODO Auto-generated method stub subscription.setSubscriptionState(new ActiveSubscriptionState(this.subscription)); } //@Override public void cancelSubscription() { // TODO Auto-generated method stub return; } //@Override public void paymentReceived() { // TODO Auto-generated method stub return; } //@Override public void paymentPending() { // TODO Auto-generated method stub return; } }
[ "endizhupani@gmail.com" ]
endizhupani@gmail.com
04c8ca44cc64e3655f385c7c5c060beedf7ff9e1
1031a2b073b83fe665ebda716e9a8b97378f6bcf
/ch11/src/Exercise/ex13/DatePrintExample.java
0f9b3a3994c39133f33890a483b8e0d41383585e
[]
no_license
nya49/Java-Lecture
7f0cc70c9ec140e97f8823f60c9491bf76c4560d
90777656f6acdc97ece34be9aaeb294fb096fd24
refs/heads/master
2020-04-28T19:51:11.734155
2019-05-30T07:35:58
2019-05-30T07:35:58
175,524,428
0
0
null
null
null
null
UTF-8
Java
false
false
322
java
package Exercise.ex13; import java.text.SimpleDateFormat; import java.util.Date; public class DatePrintExample { public static void main(String[] args) { Date now = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy년 MM월 dd일 E요일 hh시 mm분"); System.out.println(sdf.format(now)); } }
[ "nya49@naver.com" ]
nya49@naver.com
9d2cbe7dd4ffcee2656f4deb684603566711f9d9
01a414ef6264f63648898c68bad72ab9fafd6184
/app/src/androidTest/java/io/github/rajkumaar23/mycoimbatore/ExampleInstrumentedTest.java
5ea9556d4cdb7cd6da2c21ea07de0e2f5eb6117b
[ "MIT" ]
permissive
rajkumaar23/MyCoimbatore
df7fbc22d2df70f317fbfb8ae5ed756a0e454f65
53c41ab859a90e9baa9bb84926b966daad6371fb
refs/heads/master
2020-03-18T09:00:26.465850
2018-05-23T08:44:34
2018-05-23T08:44:34
134,539,801
0
1
null
null
null
null
UTF-8
Java
false
false
752
java
package io.github.rajkumaar23.mycoimbatore; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("io.github.rajkumaar23.mycoimbatore", appContext.getPackageName()); } }
[ "rajkumaar2304@gmail.com" ]
rajkumaar2304@gmail.com
c46cdf4c6ddfcf29825038c06241ea9cf539ffb2
9ba609e3f358f6819325712d3f156f017e6cd7d9
/src/main/java/com/example/forkjoin/MergeTest.java
0aff5cd10c3a4c69018c6f9da3adb2fd4e10e8ef
[]
no_license
hello-github-ui/interview
beee24eb695628db55c1e11703e7517080d740b2
1affd71e2540297627ea5bd3e05b209e1120f8a1
refs/heads/master
2023-06-29T22:47:30.807534
2021-07-29T03:47:11
2021-07-29T03:47:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,667
java
package com.example.forkjoin; import java.util.Arrays; import java.util.Random; import java.util.concurrent.ExecutionException; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.ForkJoinTask; import java.util.concurrent.RecursiveTask; /** * 如何对一个字符串快速进行排序? * 使用 ForkJoin 框架实现高并发下的排序 * ForkJoin 框架 是用于 大数据 Hadoop 中的 MapReduce 中,在 j2ee 中使用较少 */ public class MergeTest { private static int MAX = 100; private static int inits[] = new int[MAX]; // 随即队列初始化 static { Random r = new Random(); for (int i = 1; i <= MAX; i++) { inits[i - 1] = r.nextInt(1000); } } public static void main(String[] args) throws Exception { // 正式开始 long beginTime = System.currentTimeMillis(); ForkJoinPool pool = new ForkJoinPool(); MyTask task = new MyTask(inits); ForkJoinTask<int[]> taskResult = pool.submit(task); try { int[] ints = taskResult.get(); System.out.println(Arrays.toString(ints)); } catch (InterruptedException | ExecutionException e) { e.printStackTrace(); } long endTime = System.currentTimeMillis(); System.out.println("耗时= " + (endTime - beginTime) + "ms"); } /** * 单个排序的子任务 */ static class MyTask extends RecursiveTask<int[]> { private int[] source; public MyTask(int[] source) { this.source = source; } @Override protected int[] compute() { int sourceLen = source.length; // 如果条件成立,说明任务中要进行排序的集合还不够小 if (sourceLen > 2) { int midIndex = sourceLen / 2; // 拆分成两个子任务 MyTask task1 = new MyTask(Arrays.copyOf(source, midIndex)); task1.fork(); MyTask task2 = new MyTask(Arrays.copyOfRange(source, midIndex, sourceLen)); task2.fork(); // 将两个有序的数组,合并成一个有序的数组 int[] result1 = task1.join(); int[] result2 = task2.join(); int[] mer = joinInts(result1, result2); return mer; } // 否则说明集合中只有一个或者两个元素,可以进行这两个元素的比较排序了 else { // 如果条件成立,说明数组中只有一个元素,或者是数组中的元素都已经排列好位置了 if (sourceLen == 1 || source[0] <= source[1]) { return source; } else { int[] target = new int[sourceLen]; target[0] = source[1]; target[1] = source[0]; return target; } } } /** * 该方法用于合并两个有序集合 */ private static int[] joinInts(int[] a, int[] b) { int[] c = new int[a.length + b.length]; int i = 0, j = 0, k = 0; while (i < a.length && j < b.length) { if (a[i] >= b[j]) { c[k++] = b[j++]; } else { c[k++] = a[i++]; } } while (j < b.length) { c[k++] = b[j++]; } while (i < a.length) { c[k++] = a[i++]; } return c; } } }
[ "latinxiaomao@gmail.com" ]
latinxiaomao@gmail.com
ef9f8cd5bf04a6c529792989d4783b1705b39162
52a9dce6bbaf408d2d816b2862d4206630e4cf25
/src/main/java/com/heeexy/example/MyApplication.java
27de88434365f7797e56c7e0f664a0505e099896
[]
no_license
richardSufo/beginup
9e2e0c67f5398bac88ec9d9d23116d56733d0350
7abb98cac35852024daab6135dfc4c02892a36bd
refs/heads/master
2020-04-16T08:08:13.474304
2019-01-30T08:12:40
2019-01-30T08:12:40
165,413,036
0
0
null
2019-01-12T17:19:05
2019-01-12T17:01:31
null
UTF-8
Java
false
false
1,020
java
package com.heeexy.example; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; /** * @author: hxy * @description: SpringBoot启动类 * @date: 2017/10/24 11:55 */ @SpringBootApplication @MapperScan("com.heeexy.example.dao") public class MyApplication extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication application = new SpringApplication(MyApplication.class); //application.setBannerMode(Banner.Mode.OFF); application.run(args); } @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { // 注意这里要指向原先用main方法执行的Application启动类 return builder.sources(MyApplication.class); } }
[ "272769891@qq.com" ]
272769891@qq.com
8512027599c65523e59b212c8c26d9d55b3286e8
d074a86c38e2dda7b1c21096e030e07fc54f369e
/src/main/java/com/zcreate/review/dao/PatientInfoDAO.java
190652882ad4af31561abe0168e9012ef07537df
[]
no_license
gdhhy/remark
8071c59ec85742aed2270ab7a72b49bd82504b05
322eac7e4772ebe6114c98ba6a90d522faf8a85a
refs/heads/master
2022-06-17T17:58:05.388428
2020-02-06T05:59:12
2020-02-06T05:59:12
163,234,162
1
0
null
null
null
null
UTF-8
Java
false
false
760
java
package com.zcreate.review.dao; import com.zcreate.ReviewConfig; import com.zcreate.review.model.Clinic; import com.zcreate.review.model.PatientInfo; import org.springframework.web.bind.annotation.RequestParam; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by IntelliJ IDEA. * User: 黄海晏 * Date: 12-10-27 * Time: 上午0:08 */ public interface PatientInfoDAO { void setReviewConfig(ReviewConfig reviewConfig); Map<String,Object> getPatientInfo( int patientID); List<Map<String,Object>> getClinicPatient(String queryItem, String queryField, String timeFrom, String TimeTo); List<Map<String,Object>> getHospitalPatient(String queryItem, String queryField, String timeFrom, String TimeTo); }
[ "gzhhy@163.com" ]
gzhhy@163.com
62d4ebee66b11af73a5d9631a04295470a576fdc
bec1a38cf36e1ec38265e05e9b9fbef235657e13
/EsameProgrammazione/src/main/java/esame/EsameProgrammazione/model/OurDate.java
a4c159eed2c72cbf00a729f23dab05ed68a237df
[]
no_license
Programmazione-ad-Oggetti/Progetto
cf34ed7473231f61a674042e0bc0e2129aea8be3
e42a8100591edd2da481c91e2477783d45159a29
refs/heads/master
2023-04-29T16:34:28.090439
2020-06-17T15:09:16
2020-06-17T15:09:16
260,222,174
1
1
null
2023-04-14T18:02:21
2020-04-30T13:41:25
HTML
UTF-8
Java
false
false
826
java
package esame.EsameProgrammazione.model; /** * Classe che descrive la struttura di una data * * @author Colucci Antonio * @author Andreozzi Carmen */ public class OurDate { private String day; private String month; private String year; /** * @return day */ public String getDay() { return day; } /** * @param day Giorno del mese scritto in numeri */ public void setDay(String day) { this.day = day; } /** * @return month */ public String getMonth() { return month; } /** * @param month Mese scritto in inglese, ma solo con le prime 3 lettere */ public void setMonth(String month) { this.month = month; } /** * @return year */ public String getYear() { return year; } /** * @param year Anno */ public void setYear(String year) { this.year = year; } }
[ "antonioby99@hotmail.it" ]
antonioby99@hotmail.it
a9e19110d58c2293918f89bcf83ecd53080e77ed
fb0208b439749e3ac0a55810de442d2a63a3fef3
/src/main/Test/DAOImpl/MemberDAOImplTest.java
03d4a100db492ed1a44d58c61fb9606d128c21d2
[]
no_license
msxwakeup/AntNest
5aca4707dcf8f698dab0267323ca3de80018f3a6
5661005f46780d02103f97443e72ae7de8bd0e37
refs/heads/master
2020-04-09T06:25:09.918423
2019-01-01T15:12:02
2019-01-01T15:12:02
159,430,412
0
0
null
null
null
null
UTF-8
Java
false
false
460
java
package DAOImpl; import DAO.IMemberDAO; import Mo.Member; import org.junit.Test; import static org.junit.Assert.*; public class MemberDAOImplTest { IMemberDAO dao=new MemberDAOImpl(); @Test public void checkMember() { boolean flag=dao.checkMember("20001","123456"); System.out.println(flag); } @Test public void resetpwd() { boolean flag=dao.resetpwd("20001","123"); System.out.println(flag); } }
[ "42577788+msxwakeup@users.noreply.github.com" ]
42577788+msxwakeup@users.noreply.github.com
c742697364a299a877d56c35c248869a9d9371af
e1a6cce5a4dc3bab45342057ff3cb682182c0d2e
/ReporteMantenimiento/app/src/main/java/omniknow/soporte/reportemantenimiento/ListaReportes.java
4fdb7eb82c3dc625fdd09f5c7f616ff25d405e09
[]
no_license
nsydykovam/Soporte-Android
9a89638750be82052a935ae3fb8c45a92099a854
d80381d21ad93a4a7a419c15cc234e437edff3ef
refs/heads/master
2020-05-21T12:51:01.197376
2019-05-24T05:43:11
2019-05-24T05:43:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,919
java
package omniknow.soporte.reportemantenimiento; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import omniknow.soporte.reportemantenimiento.dao.ReporteMantenimientoDao; import omniknow.soporte.reportemantenimiento.extras.Constante; import omniknow.soporte.reportemantenimiento.extras.ReporteClickAdapter; import omniknow.soporte.reportemantenimiento.modelo.ReporteMantenimiento; import java.util.ArrayList; public class ListaReportes extends AppCompatActivity { RecyclerView rvReportes; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_lista_reportes); rvReportes = findViewById(R.id.rvReportes); // Setting up the RecyclerView assert rvReportes != null; rvReportes.setLayoutManager(new LinearLayoutManager(this)); // Getting your ArrayList - this will be up to you ReporteMantenimientoDao reporteMantenimientoDao = new ReporteMantenimientoDao(); ArrayList<ReporteMantenimiento> reportesMantenimientos = new ArrayList<>(); // Guardar en el arraylist todos los reportes de mantenimiento, dependiendo del usuario if(Constante.usuarioActual.getTipo() == 5) // Si el usuario es Gerente de Mantenimiento for(ReporteMantenimiento rm : reporteMantenimientoDao.ver(this)) reportesMantenimientos.add(rm); else if(Constante.usuarioActual.getTipo() == 6) // Si el usuario es Programador for(ReporteMantenimiento rm : reporteMantenimientoDao.ver(this)) if(rm.getIdUsuario() == Constante.usuarioActual.getIdUsuario() || rm.getIdUsuario() == 0) // Si el usuario está asignado al reporte o el reporte no tiene ningún usuario asignado reportesMantenimientos.add(rm); Constante.reportes = reportesMantenimientos; // RecyclerView with a click listener ReporteClickAdapter clickAdapter = new ReporteClickAdapter(reportesMantenimientos); clickAdapter.setOnEntryClickListener(new ReporteClickAdapter.OnEntryClickListener() { @Override public void onEntryClick(View view, int position) { // stuff that will happen when a list item is clicked Constante.reporteActual = Constante.reportes.get(position); finish(); Intent i = new Intent(ListaReportes.this, VerReporte.class); startActivity(i); } }); rvReportes.setAdapter(clickAdapter); } public void agregar(View v) { Intent i = new Intent(ListaReportes.this, NuevoReporte.class); finish(); startActivity(i); } }
[ "43559749+nsydykovam1600@users.noreply.github.com" ]
43559749+nsydykovam1600@users.noreply.github.com
eb47db1e04d3ee2971e98c917a7c88b9369fbdb0
fd57ede0ba18642a730cc862c9e9059ec463320b
/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/AbsSpinnerBindingAdapter.java
6137e0cdbc99c6871589845ef086d2e135b3cbd4
[]
no_license
kailaisi/android-29-framwork
a0c706fc104d62ea5951ca113f868021c6029cd2
b7090eebdd77595e43b61294725b41310496ff04
refs/heads/master
2023-04-27T14:18:52.579620
2021-03-08T13:05:27
2021-03-08T13:05:27
254,380,637
1
1
null
2023-04-15T12:22:31
2020-04-09T13:35:49
C++
UTF-8
Java
false
false
2,695
java
/* * Copyright (C) 2015 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 android.databinding.adapters; import android.databinding.BindingAdapter; import android.widget.AbsSpinner; import android.widget.ArrayAdapter; import android.widget.SpinnerAdapter; import java.util.List; public class AbsSpinnerBindingAdapter { @BindingAdapter({"android:entries"}) public static <T extends CharSequence> void setEntries(AbsSpinner view, T[] entries) { if (entries != null) { SpinnerAdapter oldAdapter = view.getAdapter(); boolean changed = true; if (oldAdapter != null && oldAdapter.getCount() == entries.length) { changed = false; for (int i = 0; i < entries.length; i++) { if (!entries[i].equals(oldAdapter.getItem(i))) { changed = true; break; } } } if (changed) { ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(view.getContext(), android.R.layout.simple_spinner_item, entries); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); view.setAdapter(adapter); } } else { view.setAdapter(null); } } @BindingAdapter({"android:entries"}) public static <T> void setEntries(AbsSpinner view, List<T> entries) { if (entries != null) { SpinnerAdapter oldAdapter = view.getAdapter(); if (oldAdapter instanceof ObservableListAdapter) { ((ObservableListAdapter) oldAdapter).setList(entries); } else { view.setAdapter(new ObservableListAdapter<T>(view.getContext(), entries, android.R.layout.simple_spinner_item, android.R.layout.simple_spinner_dropdown_item, 0)); } } else { view.setAdapter(null); } } }
[ "541018378@qq.com" ]
541018378@qq.com
839bda929eb6478f721a9da91f71d663878e96cb
a7e82c6d31203672eefe23e661dd6c4344338e26
/app/src/main/java/net/sourceforge/simcpux/WXPayEntryActivity.java
31d9cd050cca3ad5b0bf529b2b343a07a3dcf39c
[]
no_license
show111-zz/wechat_sdk_demo
f9ae86e6771252115daf86c37d585b5a3eff0620
4f2d1aa8ac25b0336a06799e3cb9fcdb12489903
refs/heads/master
2022-05-03T13:30:16.801983
2016-03-05T07:51:24
2016-03-05T07:51:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,601
java
package net.sourceforge.simcpux; import net.sourceforge.simcpux.Constants; import net.sourceforge.simcpux.R; import com.tencent.mm.sdk.constants.ConstantsAPI; import com.tencent.mm.sdk.modelbase.BaseReq; import com.tencent.mm.sdk.modelbase.BaseResp; import com.tencent.mm.sdk.openapi.IWXAPI; import com.tencent.mm.sdk.openapi.IWXAPIEventHandler; import com.tencent.mm.sdk.openapi.WXAPIFactory; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler{ private static final String TAG = "MicroMsg.SDKSample.WXPayEntryActivity"; private IWXAPI api; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pay_result); api = WXAPIFactory.createWXAPI(this, Constants.APP_ID); api.handleIntent(getIntent(), this); } @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); setIntent(intent); api.handleIntent(intent, this); } @Override public void onReq(BaseReq req) { } @Override public void onResp(BaseResp resp) { Log.d(TAG, "onPayFinish, errCode = " + resp.errCode); if (resp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.app_tip); builder.setMessage(getString(R.string.pay_result_callback_msg, String.valueOf(resp.errCode))); builder.show(); } } }
[ "1793635590@qq.com" ]
1793635590@qq.com
3cece5f3e60f080e86e126bafe20024380da3fd2
d88a94d23688c1ded00d2c4bd1bb82256e0944ce
/src/main/java/com/networkSerialization/ChatWithObj/Chatter0.java
0501335917aeb4f6bbf41fb5185729f8dfed11c6
[]
no_license
Ziem0/NetChat
70d99d8b00d518f35b8eb04015ca91cd12e732c2
99fc212936b6543ba4556f54c119ae18ff2e9bd4
refs/heads/master
2020-04-25T05:34:08.839271
2019-03-05T22:11:44
2019-03-05T22:11:44
172,547,835
0
0
null
null
null
null
UTF-8
Java
false
false
868
java
package com.networkSerialization.ChatWithObj; import java.io.*; import java.net.Socket; public abstract class Chatter0 { String name; BufferedReader br; public Chatter0(String name) { this.name = name; this.br = new BufferedReader(new InputStreamReader(System.in)); } public void chat(Socket client) throws IOException, ClassNotFoundException { try ( ObjectOutputStream out = new ObjectOutputStream(client.getOutputStream()); ObjectInputStream in = new ObjectInputStream(client.getInputStream())) { while (true) { if (in.available() > 0) { if (in.read() == 2) { Message0 msg = (Message0) in.readObject(); System.out.println(msg); } } if (br.ready()) { out.reset(); out.write(2); out.writeObject(new Message0(name, br.readLine())); } else { out.write(1); } } } } }
[ "andrzejewski.ziemo@gmail.com" ]
andrzejewski.ziemo@gmail.com
90da37e703403f24ba852f432bf10083641cdd3a
4fb8ca070c668fd88f55277e124b37fccb7191dc
/blog-serve/src/main/java/com/mc/blog/common/cache/Cache.java
5568fe8e74eab612ff23196676cd9f1ef08f3f1a
[]
no_license
undercodeheap/blog-backend
c0544cc6ba2b6585af54bedb31e3d540763f8992
3cc7b4048463c641b95f422e1c4712cdb21aeae3
refs/heads/master
2023-08-01T04:20:09.137760
2021-08-22T10:51:49
2021-08-22T10:51:49
393,937,611
0
0
null
null
null
null
UTF-8
Java
false
false
266
java
package com.mc.blog.common.cache; import java.lang.annotation.*; @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Cache { long expire() default 60 * 1000; //缓存标识 key String name() default ""; }
[ "2568467248@qq.com" ]
2568467248@qq.com
cce4de86f3457fc05bfa5153f39846ab0964b7a0
4906070c3c8d61b947c3c47b2918d7aa1e9eef4b
/app/src/main/java/com/example/keshav/emex/adaptor/JobHistoryMissedAdaptor.java
f654abf74a7dda52ca6baf0bf362c006afb2635b
[]
no_license
ashraydhar/Emex-1
dc193b44e8a367b9e7a2d923bff1a7a4ce22ad2e
f977d746aa04ec11cf0f7fa1bad226c0c95c461f
refs/heads/master
2021-01-20T07:29:07.634276
2017-04-18T18:07:43
2017-04-18T18:07:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,691
java
package com.example.keshav.emex.adaptor; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import com.example.keshav.emex.R; import com.example.keshav.emex.constants.Constants; import com.example.keshav.emex.model.JobHistoryModel; import java.util.ArrayList; /** * Created by keshav on 13/4/17. */ public class JobHistoryMissedAdaptor extends RecyclerView.Adapter<JobHistoryMissedAdaptor.ViewHolder> implements Constants { private ArrayList<JobHistoryModel> jobHistoryInfoList; private int mode; /** * @param mode mode of adaptor to be used * @param jobHistoryInfoList arraylist contains the object of job history model */ public JobHistoryMissedAdaptor(final int mode, final ArrayList<JobHistoryModel> jobHistoryInfoList) { this.jobHistoryInfoList = jobHistoryInfoList; this.mode = mode; } @Override public JobHistoryMissedAdaptor.ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.rowlayout_job_history, parent, false); return new ViewHolder(view); } @Override public void onBindViewHolder(final JobHistoryMissedAdaptor.ViewHolder holder, final int position) { JobHistoryModel jobHistoryInfo = jobHistoryInfoList.get(position); holder.tvTimeDate.setText(jobHistoryInfo.getDateTime()); holder.tvDistance.setText(jobHistoryInfo.getDistance()); holder.tvDriverLocation.setText(jobHistoryInfo.getDriverLocation()); holder.tvDriverLocationCity.setText(jobHistoryInfo.getDriverLocationCity()); if (mode == MISSEDJOB) { holder.tvRideTime.setText(jobHistoryInfo.getRideTime()); holder.tvAmount.setText(jobHistoryInfo.getJobAmount()); holder.tvDriverDistination.setText(jobHistoryInfo.getDriverDestination()); holder.tvDriverDistinationCity.setText(jobHistoryInfo.getDriverDestinationCity()); } else { holder.tvDriverName.setText(holder.tvDriverName.getText() + jobHistoryInfo.getDriverName()); } } @Override public int getItemCount() { return jobHistoryInfoList.size(); } @Override public void init() { } /** * inner viewHolder class contians the view to be inflated */ public class ViewHolder extends RecyclerView.ViewHolder { private TextView tvTimeDate, tvDistance, tvDriverName, tvDriverLocation, tvDriverLocationCity; private TextView tvDriverDistination, tvDriverDistinationCity, tvRideTime, tvAmount; private LinearLayout llPaymentDetails, llRideTime; private View vBar, vVerticalBar, vRedDot; /** * @param itemView reference of the view to be inflated */ public ViewHolder(final View itemView) { super(itemView); tvTimeDate = (TextView) itemView.findViewById(R.id.tvTimeDate); tvDistance = (TextView) itemView.findViewById(R.id.tvDistance); tvDriverName = (TextView) itemView.findViewById(R.id.tvDriverName); tvDriverLocation = (TextView) itemView.findViewById(R.id.tvDriverLocation); tvDriverLocationCity = (TextView) itemView.findViewById(R.id.tvDriverLocationCity); tvDriverDistination = (TextView) itemView.findViewById(R.id.tvDriverDestination); tvDriverDistinationCity = (TextView) itemView.findViewById(R.id.tvDriverDestinationCity); tvRideTime = (TextView) itemView.findViewById(R.id.tvRideTime); tvAmount = (TextView) itemView.findViewById(R.id.tvAmount); llPaymentDetails = (LinearLayout) itemView.findViewById(R.id.llPaymentDetails); llRideTime = (LinearLayout) itemView.findViewById(R.id.llRideTime); vBar = itemView.findViewById(R.id.vBar); vRedDot = itemView.findViewById(R.id.vRedDot); vVerticalBar = itemView.findViewById(R.id.vVerticalBar); if (mode == MISSEDJOB) { tvDriverName.setVisibility(View.GONE); } else { tvDriverDistination.setVisibility(View.GONE); tvDriverDistinationCity.setVisibility(View.GONE); llPaymentDetails.setVisibility(View.GONE); llRideTime.setVisibility(View.GONE); vBar.setVisibility(View.GONE); vRedDot.setVisibility(View.GONE); vVerticalBar.setVisibility(View.GONE); } } } }
[ "keshavgarg383@gmail.com" ]
keshavgarg383@gmail.com
b9427cb7fea0f41d34700d614c44b8c588fb67f0
250d8ded6bae3b8a71855ee41e2afe8251461b28
/src/main/java/com/adam/web/ServletInitializer.java
97f45172e33a0e27a6ece96e053f8b7783064d42
[]
no_license
mr-jackpot/db-row-fetcher
303a316d788291ccf47df6fb00e500d65d65b2e7
9371c6938d80bbf62b42badf91d7cfabc1797a02
refs/heads/main
2023-07-29T03:33:21.267005
2021-09-14T19:51:43
2021-09-14T19:51:43
406,495,612
0
0
null
null
null
null
UTF-8
Java
false
false
452
java
package com.adam.web; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.ApplicationListener; public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(Application.class); } }
[ "adamheeps@adams-mbp.home" ]
adamheeps@adams-mbp.home
ebc029b2624d0d9115165c63712f46d0d8e4b687
bdcaf533c258d273a40e888880d67e89bec1927e
/MyMVC/src/myshop/model/ProductVO.java
c74d28b198308d792449dd79003833f9cc490162
[]
no_license
ssum2/myjsp
0964f7903e5dec3ceca8365109bd1b268753c9d9
9bcce646975872a5b79cc9d6c40fa0df9bba3fc5
refs/heads/master
2020-04-09T11:49:44.234892
2018-12-08T07:16:20
2018-12-08T07:16:20
160,325,334
0
0
null
2018-12-08T07:16:21
2018-12-04T08:39:28
Java
UTF-8
Java
false
false
4,393
java
package myshop.model; public class ProductVO { private int pnum; // 제품번호 private String pname; // 제품명 private String pcategory_fk; // 카테고리코드 private String pcompany; // 제조회사명 private String pimage1; // 제품이미지1 private String pimage2; // 제품이미지2 private int pqty; // 제품 재고량 private int price; // 제품 정가 private int saleprice; // 제품 판매가 private String pspec; // "HIT", "BEST", "NEW" 등의 값을 가짐 private String pcontent; // 제품설명 private int point; // 포인트 점수 private String pinputdate; // 제품입고일자 /* 제품판매가(할인해서 팔 것이므로)와 포인트점수 컬럼의 값은 관리자에 의해서 변경(update)될 수 있으므로 해당 제품의 판매총액과 포인트부여 총액은 판매당시의 제품판매가와 포인트점수로 구해와야 한다. */ private int totalPrice; // 주문량 * 제품판매가(할인해서 팔 것이므로) private int totalPoint; // 주문량 * 포인트점수 public ProductVO() { } public ProductVO(int pnum, String pname, String pcategory_fk, String pcompany, String pimage1, String pimage2, int pqty, int price, int saleprice, String pspec, String pcontent, int point, String pinputdate) { this.pnum = pnum; this.pname = pname; this.pcategory_fk = pcategory_fk; this.pcompany = pcompany; this.pimage1 = pimage1; this.pimage2 = pimage2; this.pqty = pqty; this.price = price; this.saleprice = saleprice; this.pspec = pspec; this.pcontent = pcontent; this.point = point; this.pinputdate = pinputdate; } public int getPnum() { return pnum; } public void setPnum(int pnum) { this.pnum = pnum; } public String getPname() { return pname; } public void setPname(String pname) { this.pname = pname; } public String getPcategory_fk() { return pcategory_fk; } public void setPcategory_fk(String pcategory_fk) { this.pcategory_fk = pcategory_fk; } public String getPcompany() { return pcompany; } public void setPcompany(String pcompany) { this.pcompany = pcompany; } public String getPimage1() { return pimage1; } public void setPimage1(String pimage1) { this.pimage1 = pimage1; } public String getPimage2() { return pimage2; } public void setPimage2(String pimage2) { this.pimage2 = pimage2; } public int getPqty() { return pqty; } public void setPqty(int pqty) { this.pqty = pqty; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } public int getSaleprice() { return saleprice; } public void setSaleprice(int saleprice) { this.saleprice = saleprice; } public String getPspec() { return pspec; } public void setPspec(String pspec) { this.pspec = pspec; } public String getPcontent() { return pcontent; } public void setPcontent(String pcontent) { this.pcontent = pcontent; } public int getPoint() { return point; } public void setPoint(int point) { this.point = point; } public String getPinputdate() { return pinputdate; } public void setPinputdate(String pinputdate) { this.pinputdate = pinputdate; } public void setTotalPriceTotalPoint(int oqty) { // 총판매가(실제판매가 * 주문량) 입력하기 totalPrice = saleprice * oqty; // 총포인트(제품1개당 포인트 * 주문량) 입력하기 totalPoint = point * oqty; } public int getTotalPrice() { return totalPrice; } public int getTotalPoint() { return totalPoint; } // 제품의 할인률(%)을 계산해주는 메소드 생성하기 public int getPercent() { // 정가 : 실제판매가 = 100 : x // x = (실제판매가*100)/정가 // 할인률 = 100 - (실제판매가*100)/정가 // 예: 100 - (2800*100)/3000 = 6.66 double per = 100 - (saleprice * 100.0)/price; long percent = Math.round(per); return (int)percent; }// end of getPercent()--------------- }
[ "42224897+ssum2@users.noreply.github.com" ]
42224897+ssum2@users.noreply.github.com
47a1d484e3d22b7b4d8a449e026b42fc0210b6b3
a306f79281c4eb154fbbddedea126f333ab698da
/com/facebook/FacebookRequestError.java
ce65dd615d34febe36191510f4048e6987780636
[]
no_license
pkcsecurity/decompiled-lightbulb
50828637420b9e93e9a6b2a7d500d2a9a412d193
314bb20a383b42495c04531106c48fd871115702
refs/heads/master
2022-01-26T18:38:38.489549
2019-05-11T04:27:09
2019-05-11T04:27:09
186,070,402
0
0
null
null
null
null
UTF-8
Java
false
false
7,846
java
package com.facebook; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import com.facebook.FacebookException; import com.facebook.FacebookServiceException; import com.facebook.internal.FacebookRequestErrorClassification; import java.net.HttpURLConnection; import org.json.JSONObject; public final class FacebookRequestError implements Parcelable { private static final String BODY_KEY = "body"; private static final String CODE_KEY = "code"; public static final Creator<FacebookRequestError> CREATOR = new Creator() { public FacebookRequestError createFromParcel(Parcel var1) { return new FacebookRequestError(var1, null); } public FacebookRequestError[] newArray(int var1) { return new FacebookRequestError[var1]; } }; private static final String ERROR_CODE_FIELD_KEY = "code"; private static final String ERROR_CODE_KEY = "error_code"; private static final String ERROR_IS_TRANSIENT_KEY = "is_transient"; private static final String ERROR_KEY = "error"; private static final String ERROR_MESSAGE_FIELD_KEY = "message"; private static final String ERROR_MSG_KEY = "error_msg"; private static final String ERROR_REASON_KEY = "error_reason"; private static final String ERROR_SUB_CODE_KEY = "error_subcode"; private static final String ERROR_TYPE_FIELD_KEY = "type"; private static final String ERROR_USER_MSG_KEY = "error_user_msg"; private static final String ERROR_USER_TITLE_KEY = "error_user_title"; static final FacebookRequestError.Range HTTP_RANGE_SUCCESS = new FacebookRequestError.Range(200, 299, null); public static final int INVALID_ERROR_CODE = -1; public static final int INVALID_HTTP_STATUS_CODE = -1; private final Object batchRequestResult; private final FacebookRequestError.Category category; private final HttpURLConnection connection; private final int errorCode; private final String errorMessage; private final String errorRecoveryMessage; private final String errorType; private final String errorUserMessage; private final String errorUserTitle; private final FacebookException exception; private final JSONObject requestResult; private final JSONObject requestResultBody; private final int requestStatusCode; private final int subErrorCode; private FacebookRequestError(int var1, int var2, int var3, String var4, String var5, String var6, String var7, boolean var8, JSONObject var9, JSONObject var10, Object var11, HttpURLConnection var12, FacebookException var13) { this.requestStatusCode = var1; this.errorCode = var2; this.subErrorCode = var3; this.errorType = var4; this.errorMessage = var5; this.requestResultBody = var9; this.requestResult = var10; this.batchRequestResult = var11; this.connection = var12; this.errorUserTitle = var6; this.errorUserMessage = var7; boolean var14; if(var13 != null) { this.exception = var13; var14 = true; } else { this.exception = new FacebookServiceException(this, var5); var14 = false; } FacebookRequestErrorClassification var16 = getErrorClassification(); FacebookRequestError.Category var15; if(var14) { var15 = FacebookRequestError.Category.OTHER; } else { var15 = var16.classify(var2, var3, var8); } this.category = var15; this.errorRecoveryMessage = var16.getRecoveryMessage(this.category); } public FacebookRequestError(int var1, String var2, String var3) { this(-1, var1, -1, var2, var3, (String)null, (String)null, false, (JSONObject)null, (JSONObject)null, (Object)null, (HttpURLConnection)null, (FacebookException)null); } private FacebookRequestError(Parcel var1) { this(var1.readInt(), var1.readInt(), var1.readInt(), var1.readString(), var1.readString(), var1.readString(), var1.readString(), false, (JSONObject)null, (JSONObject)null, (Object)null, (HttpURLConnection)null, (FacebookException)null); } // $FF: synthetic method FacebookRequestError(Parcel var1, Object var2) { this(var1); } FacebookRequestError(HttpURLConnection var1, Exception var2) { FacebookException var3; if(var2 instanceof FacebookException) { var3 = (FacebookException)var2; } else { var3 = new FacebookException(var2); } this(-1, -1, -1, (String)null, (String)null, (String)null, (String)null, false, (JSONObject)null, (JSONObject)null, (Object)null, var1, var3); } static FacebookRequestError checkResponseAndCreateError(JSONObject param0, Object param1, HttpURLConnection param2) { // $FF: Couldn't be decompiled } static FacebookRequestErrorClassification getErrorClassification() { // $FF: Couldn't be decompiled } public int describeContents() { return 0; } public Object getBatchRequestResult() { return this.batchRequestResult; } public FacebookRequestError.Category getCategory() { return this.category; } public HttpURLConnection getConnection() { return this.connection; } public int getErrorCode() { return this.errorCode; } public String getErrorMessage() { return this.errorMessage != null?this.errorMessage:this.exception.getLocalizedMessage(); } public String getErrorRecoveryMessage() { return this.errorRecoveryMessage; } public String getErrorType() { return this.errorType; } public String getErrorUserMessage() { return this.errorUserMessage; } public String getErrorUserTitle() { return this.errorUserTitle; } public FacebookException getException() { return this.exception; } public JSONObject getRequestResult() { return this.requestResult; } public JSONObject getRequestResultBody() { return this.requestResultBody; } public int getRequestStatusCode() { return this.requestStatusCode; } public int getSubErrorCode() { return this.subErrorCode; } public String toString() { StringBuilder var1 = new StringBuilder("{HttpStatus: "); var1.append(this.requestStatusCode); var1.append(", errorCode: "); var1.append(this.errorCode); var1.append(", subErrorCode: "); var1.append(this.subErrorCode); var1.append(", errorType: "); var1.append(this.errorType); var1.append(", errorMessage: "); var1.append(this.getErrorMessage()); var1.append("}"); return var1.toString(); } public void writeToParcel(Parcel var1, int var2) { var1.writeInt(this.requestStatusCode); var1.writeInt(this.errorCode); var1.writeInt(this.subErrorCode); var1.writeString(this.errorType); var1.writeString(this.errorMessage); var1.writeString(this.errorUserTitle); var1.writeString(this.errorUserMessage); } static class Range { private final int end; private final int start; private Range(int var1, int var2) { this.start = var1; this.end = var2; } // $FF: synthetic method Range(int var1, int var2, Object var3) { this(var1, var2); } boolean contains(int var1) { return this.start <= var1 && var1 <= this.end; } } public static enum Category { // $FF: synthetic field private static final FacebookRequestError.Category[] $VALUES = new FacebookRequestError.Category[]{LOGIN_RECOVERABLE, OTHER, TRANSIENT}; LOGIN_RECOVERABLE("LOGIN_RECOVERABLE", 0), OTHER("OTHER", 1), TRANSIENT("TRANSIENT", 2); private Category(String var1, int var2) {} } }
[ "josh@pkcsecurity.com" ]
josh@pkcsecurity.com
a2bc1a672f51148280c3845f218ea94722c770ff
f2bbd76d00993ad138b52278366fa855882a70aa
/cmfz-admin/src/main/java/com/zln/cmfz/service/impl/ArticleServiceImpl.java
d60699ac4ce6cfe91d5ff01ec355a846e732e0c5
[]
no_license
zlnbanana/cmfz
a9bed834ccd598858d13d1105c528e4ee3a2cfab
f376fa3665050ca27b08662e4cc3dd43f7b6bea1
refs/heads/master
2020-03-22T12:56:04.260144
2018-07-10T14:12:13
2018-07-10T14:12:13
139,683,010
0
0
null
null
null
null
UTF-8
Java
false
false
1,462
java
package com.zln.cmfz.service.impl; import com.zln.cmfz.dao.ArticleDao; import com.zln.cmfz.dao.MasterDao; import com.zln.cmfz.entity.Article; import com.zln.cmfz.entity.Master; import com.zln.cmfz.service.ArticleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by zhanglijiao on 2018/7/8. */ @Service @Transactional public class ArticleServiceImpl implements ArticleService { @Autowired private ArticleDao articleDao; @Autowired private MasterDao masterDao; @Override public int addArticle(Article article) { article.setArticleTime(new Date()); int result = articleDao.insertArticle(article); return result; } @Override public Map<String, Object> queryAllArticles(Integer nowPage, Integer pageSize) { List<Article> articles = articleDao.selectArticles((nowPage-1)*pageSize,pageSize); int totalRows = articleDao.count(); Map<String ,Object> map = new HashMap<>(); map.put("total",totalRows); map.put("rows",articles); return map; } @Override public List<Master> queryMaster() { List<Master> masters = masterDao.selectAllMaster(0,masterDao.count()); return masters; } }
[ "956687956@qq.com" ]
956687956@qq.com
4c276e2b0aed7f0225060eede303ad3793b27df7
c263510ea14d3f38e2e2c7afe2fff00913fe830c
/app/src/main/java/com/example/onlineshoppingcart/productlist/ProductListActivity.java
729d12d0e29e00609c65f8147728b51d519e3c25
[]
no_license
hyeong0222/OnlineShoppingCart
45f7c2e3958ce960f6ef20b0d3800ecb82cfec4a
a3433122879b1ac2968d2b8fcca8b85b955a0b5e
refs/heads/master
2020-04-28T05:30:13.690959
2019-03-11T14:56:50
2019-03-11T14:56:50
175,022,777
0
0
null
null
null
null
UTF-8
Java
false
false
1,924
java
package com.example.onlineshoppingcart.productlist; import android.content.Context; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.example.onlineshoppingcart.R; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; public class ProductListActivity extends AppCompatActivity implements ProductListContract.View { private SharedPreferences sharedPreferences; private SharedPreferences.Editor preferencesEditor; private String sharedPrefFile = "com.example.onlineshoppingcart"; ProductListContract.Presenter contract; List<String> imageUrl = new ArrayList<>(); String cid; String scid; String api_key; String user_id; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_product_list); sharedPreferences = getSharedPreferences(sharedPrefFile, Context.MODE_PRIVATE); preferencesEditor = sharedPreferences.edit(); this.cid = sharedPreferences.getString("cid", null); // this.scid this.api_key = sharedPreferences.getString("api_key", null); this.user_id = sharedPreferences.getString("user_id", null); sendRequest(); } @Override public void getResponse(JSONObject response) { try { JSONArray jsonArray = response.getJSONArray("products"); for (int i = 0; i < jsonArray.length(); i++) { JSONObject jsonObject = jsonArray.getJSONObject(i); imageUrl.add(jsonObject.getString("image")); } } catch (JSONException e) { e.printStackTrace(); } } public void sendRequest() { contract.sendRequest(cid, scid, api_key, user_id); } }
[ "sangwoo@iu.edu" ]
sangwoo@iu.edu
39f5e16951c3ea404afabe9afee4d9ecb51c3975
67e079bc99a8fdb0cd69480c4d158a0f7889473d
/Recharge.java
8a34e978c19df419fd4aa9a47aac0ab01eaa883a
[]
no_license
mrdeepak21/Java-Projects
cbecc372c639fea88a83177cd3fa457b6fa1ceed
6bcceb6a0350dc9fd96fc839d6c8892d7a9d00e0
refs/heads/master
2020-04-26T03:38:52.340059
2018-10-03T09:38:14
2018-10-03T09:38:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
414
java
import java.util.Scanner; public class Recharge { public static void main(String[] args) { System.out.println("\f"); Scanner input = new Scanner(System.in); System.out.print("Enter the amount of Recharge : "); float RcAmnt= input.nextInt(); float AmntDone=RcAmnt-((RcAmnt*2)/100); System.out.println("\nThe Recharge of "+AmntDone +" rs is done..!!"); }}
[ "aayush.gargmanu@gmail.com" ]
aayush.gargmanu@gmail.com
1297d50ff4ddf0efa9a7faedf975cf913332f381
51eb1652921120033af1f7bd854a3cfc0b0486f3
/app/src/androidTest/java/fi/ptm/buildauiwithlayouteditor/ExampleInstrumentedTest.java
c2b1955d11d125bc0401c4aa3d8c25a3d4f06a39
[]
no_license
pasimanninen/build-fluid-ui-tutorial
73c96305c5e9edd9d8ac1743a58c53b8b4a9ed82
8fabfb1e9ed158fa4bc95053c4a4599efd492cea
refs/heads/master
2021-03-11T19:17:10.141146
2020-03-11T11:35:34
2020-03-11T11:35:34
246,553,539
0
0
null
null
null
null
UTF-8
Java
false
false
746
java
package fi.ptm.buildauiwithlayouteditor; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("fi.ptm.buildauiwithlayouteditor", appContext.getPackageName()); } }
[ "pasi.manninen@jamk.fi" ]
pasi.manninen@jamk.fi
e0db7c489dccc70b6b3a04ecc4910133874b6619
df5589c7aece544405ace86d33bb7acebfbd9ec0
/src/com/openkm/okmsynchronize/model/SynchronizeDocumentWorker.java
aaa9746cd3f92469f9839140905720fe427fb05c
[]
no_license
sss-software/desktop-sync
38a55cabfb268e898ee32f3afffee962000ac4d0
f147566d99043d1696f69031104e428bee4b65f9
refs/heads/master
2021-06-01T13:20:46.973477
2016-07-20T06:58:52
2016-07-20T06:58:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,400
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.openkm.okmsynchronize.model; import static com.openkm.okmsynchronize.model.SynchronizeFolderWorker.KEY_BUNDLE; import com.openkm.okmsynchronize.utils.SynchronizeException; import com.openkm.okmsynchronize.utils.SynchronizeLog; import com.openkm.okmsynchronize.utils.Utils; import com.openkm.okmsynchronize.ws.OpenKMWS; import com.openkm.okmsynchronize.ws.OpenKMWSFactory; import com.openkm.sdk4j.bean.Document; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; /** * * @author abujosa */ public class SynchronizeDocumentWorker extends Thread implements SynchronizeWorker { protected static final String KEY_BUNDLE = SynchronizeDocumentWorker.class.getName(); private String uuid; private String repositoryPath; private String repositoryDocumentsName; private ServerCredentials credentials; private SynchronizeLog log; private OpenKMWS ws; public SynchronizeDocumentWorker(String uuid, String repositoryPath, String repositoryDocumentsName, ServerCredentials credentials, SynchronizeLog log) { this.uuid = uuid; this.repositoryPath = repositoryPath; this.repositoryDocumentsName = repositoryDocumentsName; this.credentials = credentials; this.log = log; this.ws = ws; // Instanciam el WS this.ws = null; try { this.ws = OpenKMWSFactory.instance(credentials); } catch (SynchronizeException e) { log.error(KEY_BUNDLE, e); } } @Override public void run() { try { SynchronizedFolder sf = SynchronizedFolder.getDocumentsSynchronizedFolder(repositoryDocumentsName, repositoryPath, null); String path = Utils.buildLocalFilePath(repositoryPath, repositoryDocumentsName); Document doc = ws.getDocument(uuid); String fname = Utils.getRealName(Utils.getName(doc.getPath()), path); File fdoc = new File(Utils.buildLocalFilePath(repositoryPath, repositoryDocumentsName, fname)); createDocument(fdoc, ws.getContentDocument(uuid)); String relativePath = null; SynchronizedObject sobj = new SynchronizedObject(Utils.getName(doc.getPath()), fdoc.getPath(), relativePath, doc.getUuid(), doc.getPath(), doc.getLastModified().getTimeInMillis(), doc.getActualVersion().getName(), Boolean.FALSE); sf.getSynchronizeObjects().add(sobj); sf.persistSynchronizedObjects(); } catch (SynchronizeException e) { log.error(KEY_BUNDLE, e); } } @Override public void stopWorker() { interrupt(); } private void createDocument(File f, byte[] content) throws SynchronizeException { log.debug(KEY_BUNDLE + "method:createDocument [file=" + f.getPath() + "]" ); if(f.exists() && f.isFile()) { f.delete(); } OutputStream out; try { out = new FileOutputStream(f); out.write(content); out.close(); } catch (IOException e) { log.error(KEY_BUNDLE, e); } } }
[ "jllort@openkm.com" ]
jllort@openkm.com
96989db05ba3b17312be9e572aa162e729239235
ae8d78faca8bd2ee6975258f77cac37b769c9272
/src/tech/aistar/entity/OrderStatus.java
c90130608c8726bad8aaf3fd361f07aafcd6a812
[ "Apache-2.0" ]
permissive
guancgsuccess/jdbc
39c377b0801046000a4c79dac464c35158d171de
002c2425e68dffd6277c074c37153003f841e470
refs/heads/master
2020-05-19T11:25:32.408531
2019-05-07T09:16:51
2019-05-07T09:16:51
184,992,142
0
0
Apache-2.0
2019-05-06T06:37:06
2019-05-05T06:56:52
Java
UTF-8
Java
false
false
171
java
package tech.aistar.entity; /** * @author success * @version 1.0 * @description:本类用来演示: * @date 2019/5/6 0006 */ public enum OrderStatus { A,B,C,D }
[ "849962874@qq.com" ]
849962874@qq.com
40464c70f5c74bea199d253948189995978c1859
f826aacb3c865f30fe2857a9579d55bbb7b044c9
/src/main/java/com/codegym/education/service/lesson/LessonService.java
93da2e2b711cd8d43ea63aa8be93adad6e337533
[]
no_license
TuanVu321/WBDS-Application-CaseStudy-DoubleTeam
4ab216e3ddcd734968781352f806b293411600d5
eec6d5142e0d63a31ecb813f3994d9399a1a093e
refs/heads/master
2022-11-09T14:09:13.530649
2020-06-21T05:01:07
2020-06-21T05:01:07
273,843,804
1
0
null
2020-06-21T05:55:13
2020-06-21T05:55:13
null
UTF-8
Java
false
false
1,096
java
package com.codegym.education.service.lesson; import com.codegym.education.model.Lesson; import com.codegym.education.repository.LessonRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import java.util.Optional; @Service public class LessonService implements ILessonService{ @Autowired private LessonRepository lessonRepository; @Override public Page<Lesson> findAll(Pageable pageable) { return lessonRepository.findAll(pageable) ; } @Override public Optional<Lesson> findById(Long id) { return lessonRepository.findById(id); } @Override public void save(Lesson model) { lessonRepository.save(model); } @Override public void delete(Long id) { lessonRepository.deleteById(id); } public Page<Lesson> findByNameLesson(Pageable pageable, Optional<String> name){ return lessonRepository.findByNameLesson(pageable,name); } }
[ "tuantnmt1@gmail.com" ]
tuantnmt1@gmail.com
c87ab26b1c1a2f4a8f36d07511bbbd77e844c6b0
f500ba5a02ec06620a6f0f91e42617f7e255e8a4
/src/bsf/BSF.java
97c8fd0f34a670a5e747e2a4e657950d616fd911
[]
no_license
anyone-can-test/groovy_test
e99b46ced31ff32bd9157f84df2d894905a480e5
d04dfc07da8c5d2d0d407c853f2d4dae0fa30952
refs/heads/master
2021-01-10T20:46:07.981720
2014-02-24T02:05:06
2014-02-24T02:05:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
537
java
import java.util.*; import org.apache.bsf.*; import org.apache.bsf.util.*; // run // java -classpath /home/hi25shin/github/groovy_test/src/bsf-2.4.0/lib/bsf.jar:./:/home/hi25shin/github/groovy_test/src/commons-logging-1.1.3/commons-logging-1.1.3.jar BSF public class BSF { public static void main(String[] args) throws Exception { String myScript = "println('Hello World')\n return [1, 2, 3]"; BSFManager manager = new BSFManager(); List answer = (List) manager.eval("groovy", "myScript.groovy", 0, 0, myScript); } }
[ "hi25.shin@samsung.com" ]
hi25.shin@samsung.com
e2246399c79b116cf4b92209d4e77a1d03135334
96a01718cdc6487bf7af747d51083b340ea5d8a1
/maven-source-plugin/src/test/resources/unit/project-010/src/test/java/foo/project010/AppTest.java
06b6a16ec0be560fa66a28684af910e65ce9f474
[ "Apache-2.0" ]
permissive
HubSpot/maven-plugins
b19dcd5a68d42343be5a11657fde476203ab83dc
d94ecb69b90a28f6f5563d16e95e6db2ca7692d5
refs/heads/trunk
2023-08-10T06:30:58.002790
2022-12-14T09:13:49
2022-12-14T09:13:49
36,694,165
0
2
Apache-2.0
2023-02-25T23:34:28
2015-06-01T23:04:09
Java
UTF-8
Java
false
false
1,450
java
package foo.project010; /* * 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. */ import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
[ "khmarbaise@apache.org" ]
khmarbaise@apache.org
e0bf2cad73fe8c532fbbb4d5ae0694aba4416a40
eaff558f9ee6e8d2b650f26df34ef7eae4afe1cb
/src/main/java/br/senac/sp/tads/ads/pi2/helper/CaixaHelper.java
e2ba41d0a5495344cd00f998c301de472f8c4bc9
[]
no_license
BrunoBaldarena/PI2-LIVRARIA
56c3d07872cf38f466206bdaad39d3cfd8ae5fdc
71c2a10c889e7531c6f6f8e779e7dd9150868ca1
refs/heads/master
2023-01-28T20:21:56.792467
2020-12-01T21:20:33
2020-12-01T21:20:33
297,709,294
1
6
null
2020-11-24T17:22:45
2020-09-22T16:33:53
Java
UTF-8
Java
false
false
1,833
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.senac.sp.tads.ads.pi2.helper; import br.senac.sp.tads.ads.pi2.modal.Produto; import br.senac.sp.tads.ads.pi2.modal.ProdutoVenda; import br.senac.tads.ads.pi2.view.telaCaixa; import javax.swing.JOptionPane; /** * * @author victorsantos */ public class CaixaHelper { private final telaCaixa view; public CaixaHelper(telaCaixa view) { this.view = view; } public boolean verificaEstoque(){ int quantidadeInformada = Integer.parseInt(view.getTxtQuantidade().getText()); int quantidadeDisponivel = Integer.parseInt(view.getLblQtdDisponivel().getText()); return quantidadeDisponivel >= quantidadeInformada; } /** @author victor.santos * Metodo que é utilizado para lpraze ros itens da view para um objeto * @return ProdutoVenda */ public ProdutoVenda getProdutoVenda() { ProdutoVenda pv = new ProdutoVenda(); pv.setId((int) view.getTblInclusaoProduto().getValueAt(view.getTblInclusaoProduto().getSelectedRow(), 0)); pv.setNome((String) view.getTblInclusaoProduto().getValueAt(view.getTblInclusaoProduto().getSelectedRow(), 1)); pv.setTipo((String) view.getTblInclusaoProduto().getValueAt(view.getTblInclusaoProduto().getSelectedRow(), 2)); pv.setPreco((Double) view.getTblInclusaoProduto().getValueAt(view.getTblInclusaoProduto().getSelectedRow(), 3)); pv.setQuantidade((int) view.getTblInclusaoProduto().getValueAt(view.getTblInclusaoProduto().getSelectedRow(), 4)); return pv; } }
[ "vfreitass16@icloud.com" ]
vfreitass16@icloud.com