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
cea7ae79ecf76c23d5ccb6f2fbfb933e27279ab4
4275b14f80439b72032efea08201805783dd16f9
/HAPI/hapi/application/C_FTP.java
bd5efc9294ee9e598b6874f840c3ae50cdc86ddd
[]
no_license
BackupTheBerlios/hapi
d477257c23cffdcdbaa3ffc01157ffc22675e432
210f1c78b4faf0839346b2513051a52153840fb0
refs/heads/master
2021-01-10T19:00:29.291344
2007-08-05T13:24:25
2007-08-05T13:24:25
40,260,300
0
0
null
null
null
null
ISO-8859-1
Java
false
false
13,832
java
/** * @author Stéphane */ package hapi.application; import hapi.application.interfaces.RecupererFichier; import hapi.exception.ChangerRepertoireException; import hapi.exception.ConnexionException; import hapi.exception.CreerRepertoireException; import hapi.exception.EnvoyerFichierException; import hapi.exception.ListerFichiersException; import hapi.exception.LoginFTPException; import hapi.exception.RecupererFichierException; import hapi.exception.RepertoireCourantException; import hapi.exception.SupprimerFichierException; import hapi.exception.SupprimerRepertoireException; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintStream; import java.io.RandomAccessFile; import java.net.Socket; import java.net.UnknownHostException; import java.util.StringTokenizer; import java.util.Vector; public class C_FTP implements RecupererFichier { /** * Le socket avec lequel on se connecte */ private Socket connexionSocket = null; /** * Flux général de sortie */ private PrintStream outputStream = null; /** * Flux général d'entrée */ private BufferedReader inputStream = null; /** * Taille du buffer pour les transfers */ private static int BLOCK_SIZE = 4096; /** * Socket spécifique au mode passif. */ private Socket pasvSocket = null; /** * Connexion au serveur FTP en anonyme */ public void seConnecter(String chemin) throws ConnexionException { try { seConnecter(chemin, "anonymous", "adresse@bidon"); } catch (LoginFTPException e) { //Exception à priori impossible } } /** * Connexion et identification au serveur FTP */ public void seConnecter(String chemin, String login, String motDePasse) throws ConnexionException, LoginFTPException { try { /* Phase de connection */ connexionSocket = new Socket(chemin, 21); outputStream = new PrintStream(connexionSocket.getOutputStream()); inputStream = new BufferedReader(new InputStreamReader(connexionSocket.getInputStream())); if (!isReponseCompletePositive(getReponseServeur())) throw new ConnexionException(); /* Phase de login */ int reponse = executerCommande("user " + login); if (!isReponseIntermediairePositive(reponse)) throw new LoginFTPException(); reponse = executerCommande("pass " + motDePasse); if (!isReponseCompletePositive(reponse)) throw new LoginFTPException(); } catch (UnknownHostException uhe) { throw new ConnexionException(); } catch (IOException uhe) { throw new ConnexionException(); } } /** * Fermeture de la connexion */ protected void finalize() { try { connexionSocket.close(); } catch (IOException e) {} } /** * On récupère la liste des fichiers présents dans le dossier courant. */ public Vector listerFichiers() throws ListerFichiersException { return listerFichiers("*"); } /** * On récupère la liste des fichiers ayant une extension particuliere. */ public Vector listerFichiers(String extension) throws ListerFichiersException { if (extension != "*") extension = "*." + extension; Vector listeFichiers = new Vector(); // On fait les demmandes de listage avec les commandes NLST et LIST try { String shortList = cmdListerFichiers("NLST " + extension); String longList = cmdListerFichiers("LIST " + extension); // On tokenize les lignes récupérées StringTokenizer sList = new StringTokenizer(shortList, "\n"); StringTokenizer lList = new StringTokenizer(longList, "\n"); String sString; String lString; // A noter que les deux lists ont le même nombre de ligne. while ((sList.hasMoreTokens()) && (lList.hasMoreTokens())) { sString = sList.nextToken(); lString = lList.nextToken(); if (lString.length() > 0) { if (lString.startsWith("-")) { listeFichiers.add(sString.trim()); } } } return listeFichiers; } catch (IOException e) { throw new ListerFichiersException(); } } /** * Récupère un fichier sur le serveur */ public InputStream recupererFichier(String nomFichier) throws RecupererFichierException { try { if (!configurerExecutionCommande("retr " + nomFichier)) throw new RecupererFichierException(); InputStream in = pasvSocket.getInputStream(); return in; } catch (IOException ioe) { throw new RecupererFichierException(); } } /** * Commande pour envoyer un fichier sur le serveur. */ public void envoyerFichier(String nomFichier) throws EnvoyerFichierException { //On supprime le chemin du fichier pour ne recuperer que le nom int i = nomFichier.length() - 1; while ((nomFichier.charAt(i) != File.separator.charAt(0)) && (i >= 0)) i--; String nomFicDest = nomFichier.substring(i + 1, nomFichier.length()); try { if (!ecrireDonneesFichier("stor " + nomFicDest, nomFichier)) throw new EnvoyerFichierException(); } catch (IOException ioe) { throw new EnvoyerFichierException(); } } /** * Commande pour créer un répertoire */ public void creerRepertoire(String nomDossier) throws CreerRepertoireException { try { int reponse = executerCommande("mkd " + nomDossier); if (!isReponseCompletePositive(reponse)) throw new CreerRepertoireException(); } catch (IOException ioe) { throw new CreerRepertoireException(); } } /** * Commande pour supprimer un répertoire */ public void supprimerRepertoire(String nomDossier) throws SupprimerRepertoireException { try { int reponse = executerCommande("rmd " + nomDossier); if (!isReponseCompletePositive(reponse)) throw new SupprimerRepertoireException(); } catch (IOException ioe) { throw new SupprimerRepertoireException(); } } /** * Commande pour supprimer un fichier. */ public void supprimerFichier(String nomFichier) throws SupprimerFichierException { try { int reponse = executerCommande("dele " + nomFichier); if (!isReponseCompletePositive(reponse)) throw new SupprimerFichierException(); } catch (IOException ioe) { throw new SupprimerFichierException(); } } /** * Commande pour changer de répertoire */ public void changerRepertoire(String nomDossier) throws ChangerRepertoireException { try { int reponse = executerCommande("cwd " + nomDossier); if (!isReponseCompletePositive(reponse)) throw new ChangerRepertoireException(); } catch (IOException ioe) { throw new ChangerRepertoireException(); } } /** * On récupère le nom du répertoire courant. */ public String getRepertoireCourant() throws RepertoireCourantException { String reponse; try { reponse = getExecutionReponse("pwd"); } catch (IOException e) { throw new RepertoireCourantException(); } StringTokenizer strtok = new StringTokenizer(reponse); // On recupere le nom du repertoire if (strtok.countTokens() < 2) return null; strtok.nextToken(); String nomRep = strtok.nextToken(); // Les serveurs mettent la plupart du temps des guillemets, on les // supprime int longueurChaine = nomRep.length(); if (longueurChaine == 0) return null; if (nomRep.charAt(0) == '\"') { nomRep = nomRep.substring(1); longueurChaine--; } if (nomRep.charAt(longueurChaine - 1) == '\"') return nomRep.substring(0, longueurChaine - 1); return nomRep; } /** * Récupèrer le code de réponse du server FTP. En effet les serveurs FTP * répondent par des phrases de ce type "xxx message". L'on récupère donc ce * code à 3 chiffres pour identifier la nature de la réponse (erreur, envoi, * etc...). */ private int getReponseServeur() throws IOException { return Integer.parseInt(getReponseCompleteServeur().substring(0, 3)); } /** * On retourne la dèrnière ligne de réponse du serveur. */ private String getReponseCompleteServeur() throws IOException { String reponse; do { reponse = inputStream.readLine(); } while (!(Character.isDigit(reponse.charAt(0)) && Character.isDigit(reponse.charAt(1)) && Character.isDigit(reponse.charAt(2)) && reponse.charAt(3) == ' ')); return reponse; } /** * Envoi et récupère le résultat d'une commande de listage tel que LIST ou * NLIST. */ private String cmdListerFichiers(String command) throws IOException { StringBuffer reponse = new StringBuffer(); String chaineReponse; if (!executerCommande(command, reponse)) return ""; chaineReponse = reponse.toString(); if (reponse.length() > 0) return chaineReponse.substring(0, reponse.length() - 1); else return chaineReponse; } /** * Execute une commande simple sur le FTP et retourne juste le code réponse * du message de retour. */ public int executerCommande(String command) throws IOException { outputStream.println(command); return getReponseServeur(); } /** * Execute une commande FTP et retourne la dernière ligne de réponse du * serveur. */ public String getExecutionReponse(String command) throws IOException { outputStream.println(command); return getReponseCompleteServeur(); } /** * Execute une commande depuis le contenu d'un fichier. Cette fonction * retourne un boulean pour être tenu au courant du bon déroulemet de * l'opération. */ public boolean ecrireDonneesFichier(String command, String fileName) throws IOException { // On ouvre le fichier en local RandomAccessFile infile = new RandomAccessFile(fileName, "r"); // Converti le RandomAccessFile en un InputStream FileInputStream fileStream = new FileInputStream(infile.getFD()); boolean success = executerCommande(command, fileStream); infile.close(); return success; } /** * Exécute une commande sur le serveur FTP depuis le flux d'entrée spécifié * en argument. Retourne true si l'opération c'est effectuée sans problème, * sinon false. */ public boolean executerCommande(String command, InputStream in) throws IOException { if (!configurerExecutionCommande(command)) return false; OutputStream out = pasvSocket.getOutputStream(); transfertDonnees(in, out); out.close(); pasvSocket.close(); return isReponseCompletePositive(getReponseServeur()); } /** * Exécute une commande sur le serveur FTP et retourne le résultat dans un * buffer spécifié en argument. Retourne true si l'opération s'est effectuée * sans problème, sinon false. */ public boolean executerCommande(String command, StringBuffer sb) throws IOException { if (!configurerExecutionCommande(command)) return false; InputStream in = pasvSocket.getInputStream(); transfertDonnees(in, sb); in.close(); pasvSocket.close(); return isReponseCompletePositive(getReponseServeur()); } /** * Transfer des données depuis un flux d'entrée vers un flux de sortie. */ private void transfertDonnees(InputStream in, OutputStream out) throws IOException { byte b[] = new byte[BLOCK_SIZE]; int nb; // Stocke les données dans un fichier while ((nb = in.read(b)) > 0) out.write(b, 0, nb); } /** * Transfer des données depuis un flux d'entrée vers un buffer. */ private void transfertDonnees(InputStream in, StringBuffer sb) throws IOException { byte b[] = new byte[BLOCK_SIZE]; int nb; // Stock les donnés dans un buffer while ((nb = in.read(b)) > 0) sb.append(new String(b, 0, nb)); } /** * On execute la commande donnée en spécifiant au préalable: - le PORT sur * lequel l'on va se connecter - le type de transfer. "TYPE i" pour un * transfer binaire. - le restartpoint si il existe Si l'oprération s'est * effectuée avec succès on retourne true, sinon false. */ private boolean configurerExecutionCommande(String command) throws IOException { if (!recupererIpPort()) return false; // Lance le mode binaire pour la récéption des donnés outputStream.println("TYPE i"); if (!isReponseCompletePositive(getReponseServeur())) return false; // Envoi de la commande outputStream.println(command); return isReponsePreliminairePositive(getReponseServeur()); } /** * On demande au serveur FTP sur quelle adresse IP et quel numero de PORT on * va établir la connexion. */ private boolean recupererIpPort() throws IOException { //On passe en mode passif String tmp = getExecutionReponse("PASV"); String pasv = supprimerCodeReponse(tmp); //On récupère l'IP et le PORT pour la connection pasv = pasv.substring(pasv.indexOf("(") + 1, pasv.indexOf(")")); String[] splitedPasv = pasv.split(","); int port1 = Integer.parseInt(splitedPasv[4]); int port2 = Integer.parseInt(splitedPasv[5]); int port = (port1 * 256) + port2; String ip = splitedPasv[0] + "." + splitedPasv[1] + "." + splitedPasv[2] + "." + splitedPasv[3]; pasvSocket = new Socket(ip, port); return isReponseCompletePositive(Integer.parseInt(tmp.substring(0, 3))); } /** * Retourne true si le code réponse du serveur est compris entre 100 et 199. */ private boolean isReponsePreliminairePositive(int response) { return (response >= 100 && response < 200); } /** * Retourne true si le code réponse du serveur est compris entre 300 et 399. */ private boolean isReponseIntermediairePositive(int response) { return (response >= 300 && response < 400); } /** * Retourne true si le code réponse du serveur est compris entre 200 et 299. */ private boolean isReponseCompletePositive(int response) { return (response >= 200 && response < 300); } /** * Supprime le code réponse au début d'une string. */ private String supprimerCodeReponse(String response) { if (response.length() < 5) return response; return response.substring(4); } }
[ "md_software" ]
md_software
d98b1f16889c0bb6f6c88574183670a98d321411
d569019927aaf44dbbdb1084044f856e5f936df1
/OnlineBookStore/src/main/java/com/Online/Bookstore/OnlineBookStore/OnlineBookStoreApplication.java
4317a9a5ba82695969834fa79321406ea619ded6
[]
no_license
Marydas123/onlineBookStore
14fd52de1370f2f27ae2aa7bab986bae561a2c7f
eb4a2d42733700f77047a75d2725c51fe981aa3a
refs/heads/master
2022-10-07T03:56:20.058019
2020-06-01T06:11:00
2020-06-01T06:11:00
268,406,176
0
0
null
null
null
null
UTF-8
Java
false
false
347
java
package com.Online.Bookstore.OnlineBookStore; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class OnlineBookStoreApplication { public static void main(String[] args) { SpringApplication.run(OnlineBookStoreApplication.class, args); } }
[ "cjmarydas123@gmail.com" ]
cjmarydas123@gmail.com
b5de5563d8d92e0104567ff1c994c4c08fdfbc2d
323ab67eb02de502553a110e923f3c5ab5ebba62
/ITCPickGalleryImageApp/gen/com/itcuties/apps/itcpickgalleryimageapp/BuildConfig.java
19a8b0147df6120b676b4bea44949a5db4d143c0
[]
no_license
Preethi1802/AndroidStudioProjects
442a87e2a7fde10b0b4d2a33b563f8de8fcffe28
86f70436eeb841d976c30dea08f24017568e669b
refs/heads/master
2021-08-14T18:04:07.634589
2017-11-16T11:37:06
2017-11-16T11:37:06
110,961,087
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
/** Automatically generated file. DO NOT MODIFY */ package com.itcuties.apps.itcpickgalleryimageapp; public final class BuildConfig { public final static boolean DEBUG = true; }
[ "preethy1895@gmail.com" ]
preethy1895@gmail.com
f1abf8a8df51b7cc7df12d697f3768057f3bbcab
a0b41f339edbb6dd383f0825d530796101662a41
/test/model/GameTest.java
4782ee886a4d3b45ec30017d0a14b32e28cabc31
[]
no_license
andreanunezrodriguez/Balls
f3f1ed6fea8cb4f9457f78c530556be4605fb418
1ff80c91551239abe6fc6805aadcc05904e35718
refs/heads/master
2020-09-14T18:09:11.665356
2019-11-21T16:14:29
2019-11-21T16:14:29
223,210,467
0
0
null
null
null
null
UTF-8
Java
false
false
2,732
java
package model; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.jupiter.api.Assertions.fail; import java.io.File; import java.io.IOException; import org.junit.jupiter.api.Test; class GameTest { private Game juegoBolita; private void setupScenery1() { } private void setupScenery2() { try { juegoBolita = new Game(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } @Test void gameTest() { setupScenery1(); Game gameTest = null; try { gameTest = new Game(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } assertNotNull("The list is null", gameTest.gettheBalls() != null); assertNotNull("The list is null", gameTest.gettheScores() != null); } @Test void loadGameTest() { setupScenery2(); String camino = "Data/Level1.txt"; try { juegoBolita.loadGame(camino); } catch (IOException e) { fail("The game wasn't loaded"); } assertTrue("The list doesn't have a size greater than 0", juegoBolita.gettheBalls().size() > 0); } @Test void saveGameTest() { setupScenery2(); String camino = "Data/savedGame.txt"; try { juegoBolita.loadGame(camino); } catch (IOException e) { fail("The game wasn't loaded"); } File fl = new File(camino); assertTrue("The file exists", fl.exists()); } @Test void exceptionTest1() { setupScenery2(); String camino = "Dataa/MiCaminito.txt"; try { juegoBolita.loadGame(camino); fail("The exception wasn't thrown"); } catch (IOException e) { assertTrue(true); } } @Test void exceptionTest2() { setupScenery2(); String camino = "Data/Level1.txt"; try { juegoBolita.loadGame(camino); assertTrue(true); } catch (IOException e) { fail("The exception was thrown"); } } @Test void exceptionTest3() { setupScenery2(); String camino = "Dataa/MiCaminito.txt"; try { juegoBolita.saveGame(camino); fail("The exception wasn't thrown"); } catch (IOException e) { assertTrue(true); } } @Test void exceptionTest4() { setupScenery2(); String camino = "Data/savedGame.txt"; try { juegoBolita.saveGame(camino); assertTrue(true); } catch (IOException e) { fail("The exception was thrown"); } } @Test void addScoreTest() { setupScenery2(); String name = "kiko"; int score = 9; try { juegoBolita.addScore(name, score); } catch (IOException e) { fail("An exception was thrown"); } assertTrue("The list doesn't have size 1", juegoBolita.gettheScores()[0][0].equals(name) && juegoBolita.gettheScores()[0][1].equals(score + "")); } }
[ "andreanunez.r19@gmail.com" ]
andreanunez.r19@gmail.com
1b2c03c4030f6df6c7ea96e6afabcb6ee5d190b2
5345496adc8f24f7ea5eb173a1c1521fd79e0d2a
/taskSync/src/main/java/cn/com/flaginfo/action/SendTaskSyncAction.java
9fd080181424d4d1f2052a8ff6da73a11703e4e2
[]
no_license
avords/taskSync
6ab74861ed4ecc0a4aa9d1da25fc954292809ec5
6ff8304cb9a8c443da90888a5b21cb154c28a1df
refs/heads/master
2021-01-01T05:25:37.827237
2017-05-31T10:22:47
2017-05-31T10:22:47
59,640,877
0
2
null
null
null
null
UTF-8
Java
false
false
7,281
java
package cn.com.flaginfo.action; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.apache.log4j.Logger; import cn.com.flaginfo.db.ConnectionHolder; import cn.com.flaginfo.manager.TaskManger; import cn.com.flaginfo.support.ManagerFactory; import cn.com.flaginfo.util.SystemMessage; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; public class SendTaskSyncAction { private Logger logger = Logger.getLogger(SendTaskSyncAction.class); private static TaskManger manager = ManagerFactory.getInstance(TaskManger.class); private static int THREAD_NUMBER = Runtime.getRuntime().availableProcessors()+1; private static ExecutorService MDN_THREAD_POOL = Executors.newFixedThreadPool(THREAD_NUMBER); public static void main(String[] args) { SendTaskSyncAction action = new SendTaskSyncAction(); action.execute(); MDN_THREAD_POOL.shutdown(); } public void execute(){ // 查询任务: // http://10.0.0.27:9041/jsonServer/cmc/task/list // 参数:{"beginTime":"2016-01-20 00:00:00","type":"id","endTime":"2016-01-20 23:59:59","id":"22451346189"} // 返回值:{"returnCode":"200","list":[{"total":"7","succ":"28","arriveFail":"0","arriveSucc":"28","status":"4","begintime":"2016-01-19 11:03:49","taskType":"1","nmid":"22441982192","productId":"1","allnumber":"28","createtime":"2016-01-19 11:03:49","id":"22451346189","fail":"0","imContent":"","description":"","netmessageType":"1","userName":"SSD"}],"dataCount":1} String sql = "select t.*, s.sp_code from (select distinct portal_task_id id, task_id, sp_id from im_portal_task where task_id in(select * from (select id from im_send_task_summary t where t.begintime>sysdate-"+SystemMessage.getString("limitDay")+" and t.allnumber>nvl(succ,0)+nvl(fail,0) order by t.begintime desc) where rownum<=10000)) t left join im_sp_info s on t.sp_id = s.id "; List<Map> list = manager.getList(sql, "db_sms"); if(list==null || list.size()<1){ return; } for(Map m : list){ try{ httpHandler((String)m.get("id"), (String)m.get("taskId"), SystemMessage.getString((String)m.get("spCode"))); }catch(Exception e){ logger.error("portTaskId:"+(String)m.get("id")+";taskId:"+(String)m.get("taskId")+"---Synchronous data appear abnormal"); } } } private void httpHandler(String portTaskId, String taskId, String spId){ String sql = "select id, nvl(succ,0)+nvl(fail,0) total from im_send_task_summary where id in(select task_id from im_portal_task where portal_task_id ="+portTaskId+")"; List<Map> result = manager.getList(sql, "db_sms"); int total = 0; for(Map m : result){ total = Integer.parseInt((String)m.get("total")); } JSONObject json = new JSONObject(); json.put("type", "id"); json.put("id", portTaskId); String res = manager.post(SystemMessage.getString("apiServer")+"cmc/task/list", json.toJSONString(), spId); logger.info("server response: "+res); Map resMap = JSONObject.parseObject(res, Map.class); String code = (String) resMap.get("returnCode"); if("200".equals(code)){ JSONArray arr = (JSONArray) resMap.get("list"); for(int i =0; i < arr.size(); i++){ JSONObject obj = arr.getJSONObject(i); String pTotal = obj.getString("total"); String succ = obj.getString("succ"); String arriveFail = obj.getString("arriveFail"); String arriveSucc = obj.getString("arriveSucc"); String status = obj.getString("status"); String allnumber = obj.getString("allnumber"); String fail = obj.getString("fail"); String portalId = obj.getString("id"); Map setMap = new HashMap(); setMap.put("total", pTotal); setMap.put("succ", succ); setMap.put("arriveFail", arriveFail); setMap.put("arriveSucc", arriveSucc); setMap.put("status", status); setMap.put("allnumber", allnumber); setMap.put("fail", fail); if(total<(Integer.parseInt(succ)+Integer.parseInt(fail))){ manager.update(setMap, "im_send_task_summary", "id", taskId, "db_sms"); json = new JSONObject(); JSONObject pageInfo = new JSONObject(); pageInfo.put("curPage", 1); pageInfo.put("pageLimit", 10); json.put("taskid", portalId); int currentPage = 1; String mdnRes = manager.post(SystemMessage.getString("apiServer")+"cmc/task/list/mdn", json.toJSONString(), spId); logger.info("server response: "+mdnRes); Map mdnMap = JSONObject.parseObject(mdnRes, Map.class); MdnHandler mdnTask = new MdnHandler(taskId, mdnMap); MDN_THREAD_POOL.submit(mdnTask); if("200".equals((String)mdnMap.get("returnCode"))){ Integer dataCount = (Integer)mdnMap.get("dataCount"); int pageCount = (dataCount+9)/10; while(currentPage<pageCount){ currentPage++; json.put("curPage", currentPage); mdnRes = manager.post(SystemMessage.getString("apiServer")+"cmc/task/list/mdn", json.toJSONString(), spId); logger.info("server response: "+mdnRes); MdnHandler mdnTaskH = new MdnHandler(taskId, JSONObject.parseObject(mdnRes, Map.class)); MDN_THREAD_POOL.submit(mdnTaskH); } } } } } } class MdnHandler implements Runnable{ private String taskId; private Map resultMap; public MdnHandler(String taskId, Map resultMap){ this.taskId = taskId; this.resultMap = resultMap; } @Override public void run() { if("200".equals((String)resultMap.get("returnCode"))){ List<Map> mdnList = (List<Map>) resultMap.get("list"); String sql = "update im_send_mdn set recieved=?, arrived=?, recieved_time=to_date(?,'yyyy-MM-dd hh24:mi:ss'), arrived_time=to_date(?,'yyyy-MM-dd hh24:mi:ss') where task_id=? and mdn=? and (recieved=-1 or arrived=-1)"; PreparedStatement pstm = null; try { pstm = ConnectionHolder.getConnection("db_sms", false).prepareStatement(sql); for(Map m : mdnList){ String mdn = (String)m.get("MDN"); String arrivResult = (String)m.get("REPORTRESULT"); String submitResult = (String)m.get("SUBMITRESULT"); String submitTime = (String)m.get("SUBMITTIME"); String arriveTime = (String)m.get("REPORTTIME"); pstm.setObject(1, submitResult); pstm.setObject(2, arrivResult); pstm.setObject(3, submitTime); pstm.setObject(4, arriveTime); pstm.setObject(5, taskId); pstm.setObject(6, mdn); pstm.addBatch(); logger.info("add batch mdn: "+mdn); } logger.info("mdntask: "+taskId); pstm.executeBatch(); ConnectionHolder.getConnection("db_sms", false).commit(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); try { ConnectionHolder.getConnection("db_sms", false).rollback(); } catch (SQLException e1) { e1.printStackTrace(); } } finally{ try { pstm.close(); } catch (SQLException e) { e.printStackTrace(); } } } } } }
[ "terry@10.0.10.38" ]
terry@10.0.10.38
c65065ab85a2bd272571d1d66d15f8b2005bc272
a6dff68f49a4ee4f46af8510890e9aa6975c111e
/BirthdayCake-master/app/src/main/java/cs301/birthdaycake/MainActivity.java
19304c197ce7c5437f33a6b6fa3decda9848fd3f
[]
no_license
panguyen8/BirthdayCake_Lab2
851a5a2c9d2cdd261699b236682ff1ddfe0d3735
55058c3c9cf81636eabf8812cb1b725779ad436b
refs/heads/master
2020-07-18T06:10:13.288333
2019-09-06T00:12:33
2019-09-06T00:12:33
206,194,282
0
0
null
null
null
null
UTF-8
Java
false
false
559
java
package cs301.birthdaycake; import android.content.pm.ActivityInfo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(R.layout.activity_main); } public void goodbye(View button) { System.out.println("Goodbye"); } }
[ "liuer21@up.edu" ]
liuer21@up.edu
83e4843fc5ea018166d02346289f550ee8bd5380
1a1c2fe14d64e9ed312747cc8613d8f47d41d7f0
/app/src/main/java/com/leadcom/android/isp/holder/common/CoverTemplateViewHolder.java
2fa3ee69cc715ccfaf721e78a752c8fd6f8e4ca5
[ "Apache-2.0" ]
permissive
gzlk/leadcom.isp
cf8e889f214b02acacf4365b80492ec6ce503f46
7449c3549236e2c64ae6f3a855e598892abede65
refs/heads/master
2021-05-08T09:25:32.552883
2019-06-29T16:20:24
2019-06-29T16:20:24
107,121,950
0
1
null
2018-04-02T17:34:28
2017-10-16T12:06:08
Java
UTF-8
Java
false
false
2,083
java
package com.leadcom.android.isp.holder.common; import android.view.View; import com.hlk.hlklib.lib.inject.ViewId; import com.hlk.hlklib.lib.inject.ViewUtility; import com.leadcom.android.isp.R; import com.leadcom.android.isp.fragment.base.BaseFragment; import com.leadcom.android.isp.holder.BaseViewHolder; import com.leadcom.android.isp.lib.view.ImageDisplayer; import com.leadcom.android.isp.model.common.CoverTemplate; /** * <b>功能描述:</b>预定义封面的显示ViewHolder<br /> * <b>创建作者:</b>Hsiang Leekwok <br /> * <b>创建时间:</b>2018/04/18 15:54 <br /> * <b>作者邮箱:</b>xiang.l.g@gmail.com <br /> * <b>最新版本:</b>Version: 1.0.0 <br /> * <b>修改时间:</b>2018/04/18 15:54 <br /> * <b>修改人员:</b><br /> * <b>修改备注:</b><br /> */ public class CoverTemplateViewHolder extends BaseViewHolder { @ViewId(R.id.id_holder_view_cover_picker_image) private ImageDisplayer imageView; @ViewId(R.id.id_holder_view_cover_picker_picker) private View pickerView; private int padding, height; public CoverTemplateViewHolder(View itemView, BaseFragment fragment) { super(itemView, fragment); ViewUtility.bind(this, itemView); padding = getDimension(R.dimen.ui_static_dp_5) * 2; height = getDimension(R.dimen.ui_static_dp_150); imageView.addOnImageClickListener(new ImageDisplayer.OnImageClickListener() { @Override public void onImageClick(ImageDisplayer displayer, String url) { if (null != mOnViewHolderClickListener) { mOnViewHolderClickListener.onClick(getAdapterPosition()); } } }); } public void showContent(CoverTemplate cover) { imageView.displayImage(cover.getUrl(), fragment().getScreenWidth() - padding, height, false, false); pickerView.setVisibility(cover.isSelected() ? View.VISIBLE : View.GONE); itemView.setBackgroundResource(cover.isSelected() ? R.color.textColorHintLight : R.color.windowBackground); } }
[ "xiang.l.g@gmail.com" ]
xiang.l.g@gmail.com
0866791c950aba39eecefc0b7e3db8165a7f982a
ae2a7b4d67ef9cdcad8117ebdad1b24cc21c6b29
/exportdata/src/main/java/dao/impl/ExportDataDaoImpl.java
7e1280ceecb6e1320177cf49a79e4f48d38403ce
[]
no_license
xingjian/customtools
ce25251dda34a678f36b0d00888b6721ac16b886
d020a0c49280683f6fafaad60a4119299735a562
refs/heads/master
2020-12-24T06:42:55.991494
2017-03-04T14:42:54
2017-03-04T14:42:54
29,650,107
0
0
null
null
null
null
UTF-8
Java
false
false
3,531
java
/** @文件名: ExportDataDaoImpl.java @创建人:邢健 @创建日期: 2013-2-5 下午1:23:59 */ package dao.impl; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.sql.Connection; import java.sql.Date; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import util.DataSourceFactory; import util.DataSourceType; import bean.ADPlanB; import dao.ExportDataDao; /** * @类名: ExportDataDaoImpl.java * @包名: dao.impl * @描述: TODO * @作者: xingjian xingjian@yeah.net * @日期:2013-2-5 下午1:23:59 * @版本: V1.0 */ public class ExportDataDaoImpl implements ExportDataDao { private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); private SimpleDateFormat sdff = new SimpleDateFormat("yyyyMMddHHmmss"); @Override public boolean exportBlob(String fileName, String fileType) { return false; } @Override public boolean testConnection(DataSourceType dst,String url,String userName,String password) { Connection con = DataSourceFactory.getConnection(dst,url,userName,password); if(null!=con){ return true; } return false; } @Override public List<ADPlanB> getAllADPlanB(DataSourceType dst,String url,String userName,String password,String tableName,String columName) { Connection con = DataSourceFactory.getConnection(dst,url,userName,password); List<ADPlanB> list = new ArrayList<ADPlanB>(); try { Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select adcd,title,pubtm,planID from "+tableName); if(null!=rs){ while(rs.next()){ String adcd = rs.getString(1); String title = rs.getString(2); Date date = rs.getDate(3); String dateStr = sdf.format(date); int planID = rs.getInt(4); ADPlanB adp = new ADPlanB(); adp.setId(adcd); adp.setName(title); adp.setPubTime(dateStr); adp.setPlanID(planID); list.add(adp); } } st.close(); con.close(); } catch (SQLException e) { e.printStackTrace(); } return list; } @Override public boolean exportWord(DataSourceType dst, String url, String userName, String password, String tableName, String columName,String exportURL) { Connection con = DataSourceFactory.getConnection(dst,url,userName,password); try { Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select adcd,title,pubtm,planID,FILECONTENT from "+tableName); if(null!=rs){ while(rs.next()){ String title = rs.getString(2); File fileDir = new File(exportURL); if (!fileDir.exists()) { fileDir.mkdirs(); } File file = new File(exportURL + title+ ".doc"); InputStream is = rs.getBinaryStream(5); if(null!=is){ DataInputStream in = new DataInputStream(is); DataOutputStream out = new DataOutputStream( new FileOutputStream(file)); int c = 0; byte buffer[] = new byte[4096]; while ((c = in.read(buffer, 0, buffer.length)) != -1) { out.write(buffer, 0, c); } out.flush(); out.close(); is.close(); } } } st.close(); con.close(); return true; }catch (Exception e) { e.printStackTrace(); } return false; } }
[ "xingjian@9a834573-2090-804c-9287-1a834bdb27e7" ]
xingjian@9a834573-2090-804c-9287-1a834bdb27e7
6c2cc52a4bf2fd4edf5d82534ede2a596c8f085e
c5f8ec378ffe3cd4055d681c7d7f06ab3ac9f8eb
/src/main/java/plot/layer/CanvasLayer.java
ead71e5b5b971c978a5ed5ff644f553efb841eae
[]
no_license
constantin-ungureanu-github/JavaFxTests
743f011c0583e461af1a7f31db370d5cea26af55
d4da7bac22a91f99eae2820cb1039e3c63641c1f
refs/heads/master
2021-01-11T17:19:45.719396
2017-05-22T07:10:44
2017-05-22T07:10:44
79,749,344
0
0
null
null
null
null
UTF-8
Java
false
false
398
java
package plot.layer; import javafx.scene.layout.Pane; import plot.axis.AxesSystem; public class CanvasLayer extends Pane { private final AxesSystem axes; private final ResizableCanvas canvas; public CanvasLayer(final AxesSystem axes) { this.axes = axes; setPickOnBounds(false); canvas = new ResizableCanvas(axes); getChildren().add(canvas); } }
[ "constantin.ungureanu.github@gmail.com" ]
constantin.ungureanu.github@gmail.com
d433ff781d855b507ae7983628b84e82625ca56c
0e2ed2adeabb458111e99a90c5872cb1189825c0
/app/src/main/java/com/mrtecks/epickmartclient/loginPOJO/loginBean.java
9f4d4826a38a34353257eb0fcab26b6faed30a51
[]
no_license
mukulraw/epickclient
012a6da552882e8d1f642583a4fb51ff5b1c8727
813792edce254a3c3c302cca67b3c43c32d46f16
refs/heads/master
2020-08-18T05:59:40.661196
2019-11-05T12:55:06
2019-11-05T12:55:06
215,755,446
0
0
null
null
null
null
UTF-8
Java
false
false
789
java
package com.mrtecks.epickmartclient.loginPOJO; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class loginBean { @SerializedName("status") @Expose private String status; @SerializedName("message") @Expose private String message; @SerializedName("data") @Expose private Data data; public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public Data getData() { return data; } public void setData(Data data) { this.data = data; } }
[ "mukulraw199517@gmail.com" ]
mukulraw199517@gmail.com
e9668e93d2f7d228b63c79d06492cc8320b61573
d774c460210391a4f9a5145f58a313a53930d292
/spring-cloud-ribbon-server2/src/main/java/com/SpringCloudRibbonServer2Application.java
093de040cbf8207f4925bd4d85b56b0b212fb891
[]
no_license
rakesh1011/springcloud-repo
6703315738bbb4bcb98ba672d6066d6146197176
9439eb8ce9fbb38472a60610a087bbbecd4a194f
refs/heads/main
2023-05-12T01:46:19.149169
2021-05-27T08:02:52
2021-05-27T08:02:52
371,287,637
0
0
null
null
null
null
UTF-8
Java
false
false
503
java
package com; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; @SpringBootApplication @EnableDiscoveryClient public class SpringCloudRibbonServer2Application { public static void main(String[] args) { SpringApplication.run(SpringCloudRibbonServer2Application.class, args); } }
[ "ustjava20@java51.iiht.tech" ]
ustjava20@java51.iiht.tech
2fc1ba71f185334a1dec12e825443e60926a3b9a
91e1af51e55d9648b70bebe4071156944ede4dd3
/folioreader/src/main/java/com/folioreader/Constants.java
aa795bab5a63d8471f1502a723f3a5c3b3099142
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
SanushRadalage/SinhalaFontEmbeddedFolioReader
892b8186401103ae168a895b379a0fd189fdb54a
08f24b6ab799f841c46edb85d2b995db5247ee2b
refs/heads/master
2020-07-24T15:50:26.040009
2019-09-12T08:05:34
2019-09-12T08:05:34
207,974,924
0
0
null
null
null
null
UTF-8
Java
false
false
1,809
java
package com.folioreader; import android.Manifest; /** * Created by mobisys on 10/4/2016. */ public class Constants { public static final String PUBLICATION = "PUBLICATION"; public static final String SELECTED_CHAPTER_POSITION = "selected_chapter_position"; public static final String TYPE = "type"; public static final String CHAPTER_SELECTED = "chapter_selected"; public static final String HIGHLIGHT_SELECTED = "highlight_selected"; public static final String BOOK_TITLE = "book_title"; public static final String LOCALHOST = "http://127.0.0.1"; public static final int DEFAULT_PORT_NUMBER = 8080; public static final String STREAMER_URL_TEMPLATE = "%s:%d/%s/"; public static final String DEFAULT_STREAMER_URL = LOCALHOST + ":" + DEFAULT_PORT_NUMBER + "/"; public static final String SELECTED_WORD = "selected_word"; public static final String DICTIONARY_BASE_URL = "https://api.pearson.com/v2/dictionaries/entries?headword="; public static final String WIKIPEDIA_API_URL = "https://en.wikipedia.org/w/api.php?action=opensearch&namespace=0&format=json&search="; public static final int FONT_ANDADA = 1; public static final int FONT_LATO = 2; public static final int FONT_LORA = 3; public static final int FONT_RALEWAY = 4; public static final int FONT_SINHALA = 5; public static final String DATE_FORMAT = "MMM dd, yyyy | HH:mm"; public static final String ASSET = "file:///android_asset/"; public static final int WRITE_EXTERNAL_STORAGE_REQUEST = 102; public static final String CHAPTER_ID = "id"; public static final String HREF = "href"; public static String[] getWriteExternalStoragePerms() { return new String[]{ Manifest.permission.WRITE_EXTERNAL_STORAGE }; } }
[ "44916860+SanushRadalage@users.noreply.github.com" ]
44916860+SanushRadalage@users.noreply.github.com
eec07896ccc160277bbc3b64a58b689f4997dace
0863bb40e82c363c9597671720feed84501e0c13
/src/main/scala/source/atomic/NormalBoolean2.java
8d97f82f50f000fc481612f6eb8a4c4f387586c0
[]
no_license
wenfei13693186754/spark_learn
71a513569b0eb5dc3e33ab17560111afa31aac0d
7103a34645eb4e4338e516a324df35b3777fdf3c
refs/heads/master
2022-07-05T16:38:48.830260
2020-10-07T15:01:45
2020-10-07T15:01:45
139,931,514
0
0
null
2022-07-01T21:26:24
2018-07-06T04:03:45
Scala
UTF-8
Java
false
false
1,308
java
package source.atomic; /** * AutomicBoolean多线程测试代码 * * @author hadoop * */ public class NormalBoolean2 implements Runnable { public static boolean exits = false; private String name; public NormalBoolean2(String name) { this.name = name; } @Override public void run() { if (!exits) { try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } exits = true; System.out.println(name + ", step 1"); System.out.println(name + ", step 2"); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println(name + ", step 3"); exits = false; } else { System.out.println(name + ", step else"); } } public static void main(String[] args) { Thread t1 = new Thread(new NormalBoolean2("张三")); Thread t2 = new Thread(new NormalBoolean2("李四")); t1.start(); t2.start(); /* * 这里存在线程安全问题,当张三进入if(!exits)判断后,等待了1s,还没来得及该exits状态的时候, * 李四所在线程进来了,然后就出现了两个线程都执行下边代码的情况。输出结果如下: * 李四, step 1 张三, step 1 张三, step 2 李四, step 2 张三, step 3 李四, step 3 */ } }
[ "852283049@qq.com" ]
852283049@qq.com
bd4c92dbdf1ed340cd7698ff938cfaa083bc512f
1649b7dcfb5a9a957680eb082fac35f180dbcfc7
/src/main/java/org/talend/components/couchbase/CouchbaseDefinition.java
d39dff79e90ebd284b0eb2e3299d6ba41137e64a
[]
no_license
couchbaselabs/talend-components
368ab95cd5f5b2176278ff730ea9781057e8b166
d7912c0f9b74a184f23a9a114482693cc632d62d
refs/heads/rel-0.16
2023-03-23T07:42:29.990485
2017-04-05T16:50:12
2017-04-05T16:50:53
68,213,365
2
2
null
2017-04-05T11:49:23
2016-09-14T14:28:53
Java
UTF-8
Java
false
false
1,001
java
/* * Copyright (c) 2017 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.talend.components.couchbase; import org.talend.components.api.component.AbstractComponentDefinition; public abstract class CouchbaseDefinition extends AbstractComponentDefinition { public CouchbaseDefinition(String componentName) { super(componentName); } @Override public String[] getFamilies() { return new String[]{"Databases/Couchbase"}; } }
[ "sergey.avseyev@gmail.com" ]
sergey.avseyev@gmail.com
a4653bed4be44b779c2572a585548934f261376a
a08bb5c73a9b217d88f567b2190d2ed06210ccc1
/src/FirstTaskSolution.java
55cd833b79fcf55466d5e34fdb0a0127ba808a7e
[]
no_license
reptonik/minuboExam
c9f5cc51583ea3aa1997c70320eed4451a4d8687
dfb14cca707e4ebfcfb650194f75fe22a0c9c747
refs/heads/master
2020-06-16T19:05:15.352751
2019-07-07T16:48:12
2019-07-07T16:48:12
195,673,455
0
0
null
null
null
null
UTF-8
Java
false
false
4,298
java
import java.util.*; import java.util.stream.Collectors; /** * @author Or Kucher * * Build sentence from arrays of words. * * Each row contain at position 0 command describe how words need to be treated. */ class FirstTaskSolution { private static final String[][] WORDS = new String[][]{ new String[]{"reverse", "none", "While"}, new String[]{"sort", "work", "of", "the"}, new String[]{"lowerCase", "wE"}, new String[]{"sort", "is", "very", "do"}, new String[]{"lowerCase", "iMPoRTaNT,"}, new String[]{"reverse", "is", "it"}, new String[]{"sort", "we", "important", "that"}, new String[]{"lowerCase", "Do"}, new String[]{"reverse", "of", "deal", "great", "a"}, new String[]{"lowerCase", "It."}}; public static void main(String[] args) { final String sentence = new SentenceBuilder().buildSentence(WORDS); System.out.println(sentence); System.out.println("Correct: [" + (sentence.hashCode() == -627956530) + "]"); } public static class SentenceBuilder { String buildSentence(String[][] words) { return Arrays.stream(words) .map(line -> { Builder builder = BuilderFactory.getBuilder(line[0]); String[] sentence = Arrays.stream(line, 1, line.length) .toArray(String[]::new); return builder.buildSentence(sentence); }) .collect(Collectors.joining(" ")); } } public enum Action { REVERSE("reverse"), SORT("sort"), LOWER("lowerCase"); private static class Holder { static final Map<String, Action> ACTION_MAP = new HashMap<>(); } final String strAction; Action(String strAction) { this.strAction = strAction; Holder.ACTION_MAP.put(strAction, this); } //Can be done with stream also but this is more elegant static Action getActionByValue(String value) { return Holder.ACTION_MAP.get(value); } } /** * Factory class for sentence builder */ static class BuilderFactory { static Builder getBuilder(String action) { Action builderAction = Action.getActionByValue(action); Builder builder; switch (builderAction) { case SORT: builder = new SortBuilder(); break; case LOWER: builder = new LowerCaseBuilder(); break; case REVERSE: builder = new ReverseBuilder(); break; default: throw new IllegalStateException(String.format("Unsupported action %s.", action)); } return builder; } } /** * Builder interface */ interface Builder { String buildSentence(String[] words); } /** * Reverse Builder implementation, Build sentence from words represented by Array * in reverse order. */ private static class ReverseBuilder implements Builder { @Override public String buildSentence(String[] words) { return String.join(" ", invertArray(words)); } private String[] invertArray(String[] array) { List<String> list = Arrays.asList(array); Collections.reverse(list); return list.toArray(array); } } /** * Lower Case builder implementation, Put all words to lower case. */ private static class LowerCaseBuilder implements Builder { @Override public String buildSentence(String[] words) { String sentence = String.join(" ", words); return sentence.toLowerCase(); } } /** * Sort builder implementation, Sort all words in native order before. */ private static class SortBuilder implements Builder { @Override public String buildSentence(String[] words) { Arrays.sort(words); return String.join(" ", words); } } }
[ "reptonik@gmail.com" ]
reptonik@gmail.com
2182984a9a1129289967b37708e2db8158a2cd52
436ea6d4a1c4fedc92814be69fc2d01caaf7dbb0
/app/src/test/java/com/caijunrong/customview/ExampleUnitTest.java
2355b934e3b41fa5b4a28d6524142065a938ff16
[]
no_license
caijunrong/CustomTabbarV2
3bd02e219114ca367fd6c1faa6805dea5b06c61e
5fc393df0c3553215de581d918ac89e45849221b
refs/heads/master
2016-09-14T09:54:48.858235
2016-05-04T06:34:48
2016-05-04T06:34:48
58,028,254
0
0
null
null
null
null
UTF-8
Java
false
false
318
java
package com.caijunrong.customview; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "15-132-09997@139.com" ]
15-132-09997@139.com
8b59da8662fdecc1372096af42ebfb538a350306
0384ea26d3c4ca06e149040d5b639d4d9b560624
/src/main/java/org/opencmshispano/module/util/UpdateResourceByWsJob.java
d92608900cc11521c2464028b81bbec5bf191321
[]
no_license
serrapos/OCHRecursosUtil
cff339b55919930ac7b93a1de806b441a8b539a5
cc05ac4b8576f214f24968ef8aae2e5747eceeca
refs/heads/master
2021-01-18T22:34:39.514439
2016-11-17T07:39:29
2016-11-17T07:39:29
4,544,530
2
4
null
2015-12-15T17:03:05
2012-06-04T07:39:09
Java
UTF-8
Java
false
false
1,769
java
package org.opencmshispano.module.util; import org.apache.commons.logging.Log; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.main.CmsLog; import org.opencms.scheduler.I_CmsScheduledJob; import org.opencms.util.CmsStringUtil; import org.opencmshispano.module.resources.manager.ClientRestManager; import java.util.List; import java.util.Map; public class UpdateResourceByWsJob implements I_CmsScheduledJob{ private static final Log LOG = CmsLog.getLog(UpdateResourceByWsJob.class); /** Parametros de la tarea. */ public static final String PARAM_URL_WS = "urlws"; public static final String PARAM_PUBLISH = "publish"; public String launch(CmsObject cms, Map parameters) throws Exception { String url = (String)parameters.get(PARAM_URL_WS); String publishStr = (String)parameters.get(PARAM_PUBLISH); //Extraemos el valor del parametro publish. Si no se dice nada por defecto es false Boolean publish = false; if(!CmsStringUtil.isEmptyOrWhitespaceOnly(publishStr)){ try{ publish = Boolean.valueOf(publishStr); }catch (Exception ex){}//noop } if(url!=null) { //Obtenemos la lista de recursos a actualizar ClientRestManager restManager = new ClientRestManager(); List<CmsResource> resources = restManager.updateByWs(url, cms, publish); return "Ejecutada tarea de actualización de contenido desde la url: "+url+". Se han actualizado "+resources.size()+" recursos"; }else{ LOG.error("No se ha encontrado el parámetro urlws en la configuración de la tarea."); } return "La tarea no se ha ejecutado correctamente: "+url; } }
[ "sergio.raposo@sagasoluciones.com" ]
sergio.raposo@sagasoluciones.com
5041d4dbd1ccee46dd535bf95c93c8e5471018a3
503dbbbe5bb3118e62b57234a8c7017fe8652c1c
/src/main/java/com/example/demo/config/KafkaConsumerConfig.java
f73302c0a0599db955cf5ffecc6f191b1bb9bbe8
[]
no_license
buddhiprab/springboot-kafka-listofobjects
3759d4cb6573b6a4a94cdfd71d5a6d52fe4b2b1c
7e1013052f27b0fcd2997420d4f5717793b0f3e2
refs/heads/master
2023-01-02T02:45:53.629146
2020-10-23T09:36:11
2020-10-23T09:36:11
305,937,472
0
2
null
null
null
null
UTF-8
Java
false
false
1,744
java
package com.example.demo.config; import com.example.demo.model.FooObject; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.StringDeserializer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.kafka.annotation.EnableKafka; import org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory; import org.springframework.kafka.core.ConsumerFactory; import org.springframework.kafka.core.DefaultKafkaConsumerFactory; import org.springframework.kafka.support.serializer.JsonDeserializer; import java.util.HashMap; import java.util.List; import java.util.Map; @Configuration public class KafkaConsumerConfig { @Bean public ConsumerFactory<String, List<FooObject>> consumerFactory(){ Map<String,Object> config = new HashMap<>(); config.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG,"localhost:9092"); config.put(ConsumerConfig.GROUP_ID_CONFIG,"foo"); ObjectMapper om = new ObjectMapper(); JavaType type = om.getTypeFactory().constructParametricType(List.class, FooObject.class); return new DefaultKafkaConsumerFactory<>(config,new StringDeserializer(), new JsonDeserializer<List<FooObject>>(type, om, false)); } @Bean public ConcurrentKafkaListenerContainerFactory<String, List<FooObject>> fooListener(){ ConcurrentKafkaListenerContainerFactory<String, List<FooObject>> factory = new ConcurrentKafkaListenerContainerFactory<>(); factory.setConsumerFactory(consumerFactory()); return factory; } }
[ "buddhi.1986@gmail.com" ]
buddhi.1986@gmail.com
c8ba7fc091ca50905c49b6d780f224e8eb8f268c
e59b853b28a02d4417296064ba6b7594bb2decb0
/src/main/java/com/liujun/search/common/constant/SymbolMsg.java
f304e376eb3893b224cfa351378a134fef394621
[]
no_license
miloluojia/searchEngine
b68c61177e10f9a20bda2a1c7a97a57d37096f43
a8b3efa5ec9a2fa3b917ffe499b497c66b49eefa
refs/heads/master
2023-04-22T05:56:24.891316
2021-12-24T05:59:55
2021-12-24T05:59:55
265,804,839
0
0
null
2020-05-21T09:14:55
2020-05-21T09:14:54
null
UTF-8
Java
false
false
930
java
package com.liujun.search.common.constant; /** * 系统符号信息 * * @author liujun * @version 0.0.1 * @date 2019/03/03 */ public class SymbolMsg { /** 换行符 */ public static final String LINE = "\n"; /** 换行标识的byte表示的值 */ public static final byte LINE_INT = 10; /** 逗号 */ public static final String COMMA = ","; /** 分号 */ public static final String SEMICOLON = ";"; /** 行数据结束标识 */ public static final String LINE_OVER = "\n\f\r\t"; /** 数据列分隔符 */ public static final String DATA_COLUMN = "\t"; /** 减号 */ public static final String MINUS = "-"; /** 路径分隔符 */ public static final String PATH = "/"; /** 下划细 */ public static final String UNDER_LINE = "_"; /** 左尖括号 */ public static final String LEFT_OPEN_ANGLE = "<"; /** 右尖括号 */ public static final String RIGHT_ANGLE = ">"; }
[ "422134235@qq.com" ]
422134235@qq.com
f375941a50c5d86e9b23f0b5f0822f61765c5ac2
022fabce844b176b03501554f058b570ef555250
/src/main/java/com/igor/z/nugetImplementations/EmptyNuget.java
61a449d94f860b190a4090b378ad6f237a9c1eca
[]
no_license
IgorZubov/NuGetWebApp
e2414db1a09a6f70422557907b3d321cbb619ecd
9ab875b5f0ec606d62a08fd3c38a962a0186f258
refs/heads/master
2021-08-23T03:25:21.240252
2017-12-02T21:58:06
2017-12-02T21:58:06
111,644,503
0
0
null
null
null
null
UTF-8
Java
false
false
2,145
java
package com.igor.z.nugetImplementations; import com.igor.z.daos.FeedDao; import com.igor.z.daos.PackageDao; import com.igor.z.modelAttributes.FeedItem; import com.igor.z.springutils.NuGetPackageInfo; import com.igor.z.springutils.PackageInfoReader; import java.util.List; public class EmptyNuget implements Nuget { @Override public String addFeedSource(FeedDao feedDao, FeedItem feedItem) { return feedDao.insert(feedItem); } @Override public String modifyFeedSource(FeedDao feedDao, FeedItem feedItem, Integer id) { return feedDao.update(feedItem, id); } @Override public String deleteFeedSource(FeedDao feedDao, int id) { return feedDao.deleteById(id); } @Override public String addPackageToSource(String packagePath, FeedItem feed, PackageDao packageDao) { PackageInfoReader reader = new PackageInfoReader(); NuGetPackageInfo info = reader.readPackage(packagePath); return packageDao.insert(info, feed.getFeedSource()); } @Override public List<NuGetPackageInfo> searchForPackagesInEveryFeed(String searchExp, PackageDao packageDao) { return packageDao.findByAny(searchExp); } @Override public List<NuGetPackageInfo> getAllPackages(PackageDao packageDao) { return packageDao.getAll(); } @Override public List<NuGetPackageInfo> getAllPackagesFromFeed(String feedSource, PackageDao packageDao) { return packageDao.getAllPackagesFromFeed(feedSource); } @Override public List<NuGetPackageInfo> searchForPackagesInExactFeed(String feedSource, String searchExpression, PackageDao packageDao) { return packageDao.findByAnyFromFeed(feedSource, searchExpression); } @Override public String syncFeed(PackageDao packageDao, FeedItem feed) { return "Synchronisation for EMPTY_NUGET is unnecessary!"; } @Override public List<FeedItem> getAllFeeds(FeedDao feedDao) { return feedDao.getAll(); } @Override public FeedItem getFeedById(FeedDao feedDao, int feedId) { return feedDao.findByFeedItemId(feedId); } }
[ "igor.zubov.a@gmail.com" ]
igor.zubov.a@gmail.com
3194b061b655de6eed30a7039c64ff2fe78d847d
6c69998676e9df8be55e28f6d63942b9f7cef913
/src/com/insigma/siis/local/business/helperUtil/GridRowNumColumnTag.java
ebeea503813c931af5e922b33916bafe3b625e2c
[]
no_license
HuangHL92/ZHGBSYS
9dea4de5931edf5c93a6fbcf6a4655c020395554
f2ff875eddd569dca52930d09ebc22c4dcb47baf
refs/heads/master
2023-08-04T04:37:08.995446
2021-09-15T07:35:53
2021-09-15T07:35:53
406,219,162
0
0
null
null
null
null
UTF-8
Java
false
false
1,211
java
package com.insigma.siis.local.business.helperUtil; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.apache.struts.util.ResponseUtils; public class GridRowNumColumnTag extends BodyTagSupport { private String _$3; private String _$2; private String _$1; public String getHeader() { return this._$3; } public void setHeader(String paramString) { this._$3 = paramString; } public String getSortable() { return this._$2; } public void setSortable(String paramString) { this._$2 = paramString; } public String getWidth() { return this._$1; } public void setWidth(String paramString) { this._$1 = paramString; } public int doStartTag() throws JspException { StringBuffer localStringBuffer = new StringBuffer(); localStringBuffer.append("new Ext.grid.RowNumberer({locked:true,"); localStringBuffer.append("header:'" + (this._$3==null?"":this._$3) + "',"); localStringBuffer.append("sortable:" + this._$2 + ","); localStringBuffer.append("width:" + ((this._$1 == null) || (this._$1.equals("")) ? "23" : this._$1)); localStringBuffer.append("}),"); ResponseUtils.write(this.pageContext, localStringBuffer.toString()); return 0; } }
[ "351036848@qq.com" ]
351036848@qq.com
3833b7a0e1558884af3a12b04e6cab5d3e097336
298e9f63fdda616ee7c41c7e25ed46d2546b760b
/Online_real_estate/src/com/dao/YonghuzhuceMapper.java
45e60bd967d6eb14fe43b231951cb86810226fa7
[]
no_license
Arville/Online_real_estate
e51ff0c4414b8209f6c58ca5284858e10f6800d7
0dfbfb2c1bff8bcc6c1052e309063d2212fba548
refs/heads/master
2020-06-19T20:07:02.267992
2020-01-02T02:39:02
2020-01-02T02:39:02
196,853,352
0
0
null
null
null
null
UTF-8
Java
false
false
1,281
java
package com.dao; import java.util.List; import java.util.Map; import com.entity.Fangyuanxinxi; import com.entity.Yonghu; import com.entity.Yonghuzhuce; public interface YonghuzhuceMapper { int insertYonghu(Yonghu yonghu); Yonghu selectYonghu(Map<String, Object> map); Yonghu selectBuUsername(String username); Fangyuanxinxi selectGuanzhufangyuan(String bianhao); List<String> selectBianhao(Map<String, Object> map); int selecCounttBianhao(String ufid); int deleteByPrimaryKey(Integer id); int insert(Yonghuzhuce record); int insertSelective(Yonghuzhuce record); Yonghuzhuce selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Yonghuzhuce record); int updateByPrimaryKey(Yonghuzhuce record); public Yonghuzhuce quchongYonghuzhuce(Map<String, Object> yonghuming); public List<Yonghuzhuce> getAll(Map<String, Object> map); public List<Yonghuzhuce> getsyyonghuzhuce1(Map<String, Object> map); public List<Yonghuzhuce> getsyyonghuzhuce3(Map<String, Object> map); public List<Yonghuzhuce> getsyyonghuzhuce2(Map<String, Object> map); public int getCount(Map<String, Object> po); public List<Yonghuzhuce> getByPage(Map<String, Object> map); public List<Yonghuzhuce> select(Map<String, Object> map); // 所有List }
[ "henry961209@163.com" ]
henry961209@163.com
340e6a330d54c4c368799c353e2bf5907a435ea9
097efe1e70997a1b569805fad199cd78752ac38b
/pro/renren-finance-service-locator/src/main/java/com/renren/finance/service/locator/register/ServicePublisher.java
0134e378e9cc165d0b017323bab5fdd337985e0c
[]
no_license
iandrea57/forwork
2b7ca3726359ac1db76d313e614a3958224283d2
def488f8a4efb428694a04ff6e8a7778d105c50e
refs/heads/master
2020-05-17T02:56:43.435649
2015-06-30T14:19:31
2015-06-30T14:20:04
33,553,216
0
0
null
null
null
null
UTF-8
Java
false
false
3,440
java
/** * $Id$ * Copyright 2011-2013 Oak Pacific Interactive. All rights reserved. */ package com.renren.finance.service.locator.register; import com.renren.finance.service.locator.registrar.DefaultNodeRegistrar; import com.renren.finance.service.locator.registrar.INodeRegistrar; import org.apache.thrift.TProcessor; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.server.TServer; import org.apache.thrift.server.TThreadPoolServer; import org.apache.thrift.server.TThreadedSelectorServer; import org.apache.thrift.transport.TFramedTransport; import org.apache.thrift.transport.TNonblockingServerSocket; import org.apache.thrift.transport.TNonblockingServerTransport; import org.apache.thrift.transport.TServerSocket; import org.apache.thrift.transport.TServerTransport; import org.apache.thrift.transport.TTransportFactory; import java.util.concurrent.ExecutorService; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; /** * @author <a href="mailto:hailong.peng@renren-inc.com">彭海龙</a> * @createTime 15-4-30 下午4:59 */ public class ServicePublisher { private static INodeRegistrar serviceRegistrar = DefaultNodeRegistrar.getInstance(); public static <T> void publish(Class<T> serviceInterface, T serviceImpl, RegisterInfo info) { try { info.setInterfaceName(serviceInterface.getName()); ServerClassDefinition serviceDefinition = new ServerClassDefinition(serviceInterface); String serviceId = serviceDefinition.getServiceId(); serviceRegistrar.register(serviceId, info); TProcessor processor = (TProcessor)serviceDefinition.getServiceProcessorConstructor().newInstance(serviceImpl); TServerTransport serverTransport = new TNonblockingServerSocket(info.getNode().getPort()); TThreadedSelectorServer.Args trArgs = new TThreadedSelectorServer.Args((TNonblockingServerTransport)serverTransport); trArgs.processor(processor); trArgs.protocolFactory(new TBinaryProtocol.Factory(true, true)); trArgs.transportFactory(new TFramedTransport.Factory()); trArgs.executorService(createExecuteService(info.getCoreSize(), info.getMaxSize())); if (info.getSelectorThreads() > 0) { trArgs.selectorThreads(info.getSelectorThreads()); } TServer server = new TThreadedSelectorServer(trArgs); ThriftServer service = new ThriftServer(); service.settProcessor(processor); service.settServerTransport(serverTransport); service.settServer(server); Thread thread = new Thread(service, serviceId); thread.start(); // serviceRegistrar.unregister(serviceId, info); } catch (Exception e) { throw new RuntimeException(e); } } private static ExecutorService createExecuteService(int coreSize, int maxSize) { if (coreSize <= 0 || maxSize <= 0) { coreSize = 2 * Runtime.getRuntime().availableProcessors(); maxSize = 2 * coreSize; } return new ThreadPoolExecutor(coreSize, maxSize, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new ServiceThreadFactory()); } }
[ "iiiandrea57@gmail.com" ]
iiiandrea57@gmail.com
5a8b96f4f3a927416f5a5f3be546b599520a634f
4840f553827785e311b2a2798f18a621a1bd7dec
/SpringCloudZullApiGatewayServer/src/main/java/com/techsquelly/practice/SpringCloudZullApiGatewayServerApplication.java
0c90dbaf3deca838151a34af0b886471766c5a01
[]
no_license
techsqually/SpringCloudZullApiGatewayServer
975f49c6b32222ef9ecf3b31e06f28f7eb56c3fe
06eb8a7bd535998185f97e3cdb0d901d8f1b310a
refs/heads/master
2021-01-01T00:17:52.828949
2020-02-08T09:30:28
2020-02-08T09:30:28
239,094,511
0
0
null
null
null
null
UTF-8
Java
false
false
617
java
package com.techsquelly.practice; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; import org.springframework.cloud.netflix.zuul.EnableZuulServer; @EnableZuulProxy @EnableZuulServer @EnableEurekaClient @SpringBootApplication public class SpringCloudZullApiGatewayServerApplication { public static void main(String[] args) { SpringApplication.run(SpringCloudZullApiGatewayServerApplication.class, args); } }
[ "sanjaysaini@172.20.10.3" ]
sanjaysaini@172.20.10.3
779e8e492a69f1795e02208f836711ae56e61479
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/21/21_df656446c7e709e2bf4d6ac32f4149f2e8bd09c4/Link/21_df656446c7e709e2bf4d6ac32f4149f2e8bd09c4_Link_s.java
9623c71f63be308035380a2fe694078b6514cab1
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
968
java
package models.data; import java.net.URL; import java.net.MalformedURLException; /** * This clas represents a Link, as the combination of a name and a URL. * @author Felix Van der Jeugt */ public class Link { private String name; private String url; /** * Creates a new link. This method links the given name to a URL created * from the given string. * @param name The name of the link. * @param url The url as a String. * @throws MalformedURLException If the given url is malformed. */ public Link(String name, String url) { this.name = name; this.url = url; } /** * Returns the name of this link. * @return The name of the link. */ public String getName() { return name; } /** * Return the URL this link points to. * @return The URL. */ public String getUrl() { return url; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
b593f6160a474b2bbdfff9af968b14afa9af9b00
bd3551147b11c6fffa63ba25ce5543931d50d623
/src/main/java/com/roomies/roomies/domain/service/LandlordService.java
f5d80c78f379e902e225d8fa599b225c59ba04ac
[]
no_license
Cathriel/AplicacionesOpenSource_API
4625d99026743e5cbf3b1886251033e2c5c22257
7a894d2b6f03f02b44bb6f715456218dca8d7659
refs/heads/main
2023-06-05T23:05:38.635962
2021-07-03T04:22:50
2021-07-03T04:22:50
361,273,133
0
0
null
null
null
null
UTF-8
Java
false
false
935
java
package com.roomies.roomies.domain.service; import com.roomies.roomies.domain.model.Landlord; import com.roomies.roomies.domain.model.Leaseholder; import com.roomies.roomies.domain.model.Post; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.http.ResponseEntity; public interface LandlordService { Page<Landlord> getAllLandlords(Pageable pageable); Page<Landlord> getAllLandlordsByDistrictAndProvinceAnd(Long landlordId,Pageable pageable); Landlord getLandlordById(Long landlordId); Landlord getLandlordByPostId(Long PostId); Landlord createLandlord(Long userId,Long planId,Landlord landlord); Landlord updateLandlord(Long landlordId,Landlord landlordRequest); ResponseEntity<?> deleteLandlord(Long landlordId); Landlord getLandlordByName(String name); Page<Post> getPostsByLandlordId(Long landlordId, Pageable pageable); }
[ "andreluispit@gmail.com" ]
andreluispit@gmail.com
211cd1dd080e705bebfc4558e7ddfd8ff73e1194
a1b47263184693d97a8c4d4ce10da38e5dcfbab9
/src/main/java/com/yuwubao/hz_International/entities/repository/ConsumerRepository.java
e63c22b9b1fc740761d93ee0b8127158ddda8b94
[]
no_license
Ayangy/hz_International
398387fd02a4a9017dcd439c71788f2676dd54de
77190d8c94f1ca44db4000f68266730fc15b1755
refs/heads/master
2021-05-09T13:39:55.514672
2018-01-26T11:13:16
2018-01-26T11:13:16
119,039,978
0
0
null
null
null
null
UTF-8
Java
false
false
546
java
package com.yuwubao.hz_International.entities.repository; import com.yuwubao.hz_International.entities.ConsumerEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; /** * Created by yangyu on 2018/1/25. */ public interface ConsumerRepository extends JpaRepository<ConsumerEntity, Integer>, JpaSpecificationExecutor<ConsumerEntity> { ConsumerEntity findByPhone(String phone); ConsumerEntity findByPhoneAndPassword(String phone, String pwd); }
[ "effort_yu@sina.com" ]
effort_yu@sina.com
da623e890f16e274ec2672efc3891f237c1a715d
8fe52c57cc4a1931438a37d36a302278d23d7897
/src/main/java/pl/wturnieju/model/verification/TournamentInviteVerificationToken.java
bfb063963ca1023ff775a4414ab5fff03291b6ac
[]
no_license
mrotko/wturnieju-backend
cb2e25b622531ff38615a30f24ac3f06b2194ead
e4eb5b786f9af3d65b340137813cb770a67a21ba
refs/heads/master
2020-03-23T17:10:45.616494
2019-07-07T14:08:44
2019-07-07T14:09:01
141,847,155
0
0
null
null
null
null
UTF-8
Java
false
false
337
java
package pl.wturnieju.model.verification; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; @Data @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) public class TournamentInviteVerificationToken extends VerificationToken { private String tournamentId; private String participantId; }
[ "michalr835@gmail.com" ]
michalr835@gmail.com
2f3369f3841d883ede7371d5015d16de9d96e101
e75bca3f683a8fd7c0f28cf4012f441917f70d11
/src/main/java/xg/framework/querychannel/support/WebQueryCdn.java
ce8f9ea3426124bed1a31b4c04e36ab16c66f7ad
[]
no_license
jacktea/precredit
f2a8d242fb003e5ec083e52fcbc62b93a019758c
60ac7123c2621865d7073ba0738fd2c3b9208bee
refs/heads/master
2020-05-07T15:58:58.073363
2014-04-15T10:42:32
2014-04-15T10:42:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
276
java
package xg.framework.querychannel.support; import xg.framework.domain.QueryCriterion; public interface WebQueryCdn { /** * 获取类型 * @return */ public String getType(); /** * 转换为标准的查询 * @return */ public QueryCriterion convert(); }
[ "jacktea123@gmail.com" ]
jacktea123@gmail.com
94d1886ed8d6cec43a93dda13eccab9997216c02
2bf1f0b58c6575251f79c9b0fdf3586d5c664391
/src/com/designPatterns/strategyPattern/ornek2/strategy/izinHesaplama/IzinHesap.java
efefe6191d13761919b06b683e7cd3c8f6f78ddd
[]
no_license
fatma11/design-patterns
b10eac4cadc29c513c2f13395d5e005e2e800537
bfe36829539ebe9e209bf11bae7aa8145fee127f
refs/heads/master
2023-06-28T04:27:17.412910
2021-07-16T10:15:46
2021-07-16T10:15:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
129
java
package com.designPatterns.strategyPattern.ornek2.strategy.izinHesaplama; public interface IzinHesap { int izinHesapla(); }
[ "beyza.ozhan@tubitak.gov.tr" ]
beyza.ozhan@tubitak.gov.tr
9b7da73978679790a6fe0afa278034a85ae59a57
d85177455ad94ddbb241d0711655ecefe565f4f0
/app/src/main/java/com/example/acdc/teste/activities/MusicaActivity.java
5d608c88ad61d3eb4e145767bde4bcc53c98e14f
[]
no_license
israelbulcaotavares/PassagemDeDados
240862741bdd4869c2a451326b6fa721204ff29c
eebafba7dd72effebfa6c85911cdb8de24b6ebac
refs/heads/master
2021-09-17T09:30:37.122568
2018-06-30T03:16:37
2018-06-30T03:16:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,771
java
package com.example.acdc.teste.activities; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.Menu; import android.view.MenuItem; import android.widget.LinearLayout; import com.example.acdc.teste.R; import com.example.acdc.teste.adapter.MusicaAdapter; import com.example.acdc.teste.model.Musica; import com.example.acdc.teste.model.Artista; import java.util.ArrayList; import java.util.List; public class MusicaActivity extends AppCompatActivity { private RecyclerView recyclerViewMusicas; private List<Musica> listaMusicas = new ArrayList<>(); Musica musica; Artista artista; private static final String EXTRA_DADOS = "dados"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_musica); recyclerViewMusicas = findViewById(R.id.recyclerViewMusicas); //RECEBENDO OBJETOS DE OUTRA ACTIVITY Bundle dados = getIntent().getExtras(); artista =(Artista) dados.getParcelable(EXTRA_DADOS); //chamada da nossa implementação MusicaAdapter adapter = new MusicaAdapter(listaMusicas); //Configurar Recyclerview RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getApplicationContext()); recyclerViewMusicas.setLayoutManager(layoutManager); recyclerViewMusicas.setHasFixedSize(true); recyclerViewMusicas.addItemDecoration( new DividerItemDecoration(this, LinearLayout.VERTICAL)); recyclerViewMusicas.setAdapter( adapter ); } }
[ "israelbulcaotavares@gmail.com" ]
israelbulcaotavares@gmail.com
c275d6e60b3e9f26765e5001a654a637cfea63e0
c885ef92397be9d54b87741f01557f61d3f794f3
/tests-without-trycatch/Compress-41/org.apache.commons.compress.archivers.zip.ZipArchiveInputStream/default/1/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream_ESTest_scaffolding.java
da3da166a43ae4d62d07c0a9f095d46ec97619e6
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
10,078
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Thu Jul 29 22:29:29 GMT 2021 */ package org.apache.commons.compress.archivers.zip; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.junit.AfterClass; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class ZipArchiveInputStream_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @AfterClass public static void clearEvoSuiteFramework(){ Sandbox.resetDefaultSecurityManager(); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); setSystemProperties(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public static void setSystemProperties() { java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); java.lang.System.setProperty("user.dir", "/experiment"); java.lang.System.setProperty("user.name", "?"); java.lang.System.setProperty("java.io.tmpdir", "/tmp"); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(ZipArchiveInputStream_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException$Feature", "org.apache.commons.compress.archivers.zip.Zip64RequiredException", "org.apache.commons.compress.archivers.zip.ExplodingInputStream", "org.apache.commons.compress.archivers.zip.ZipArchiveEntry", "org.apache.commons.compress.compressors.CompressorInputStream", "org.apache.commons.compress.archivers.ArchiveEntry", "org.apache.commons.compress.archivers.zip.UnicodePathExtraField", "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream$BoundedInputStream", "org.apache.commons.compress.archivers.zip.UnshrinkingInputStream", "org.apache.commons.compress.compressors.lzw.LZWInputStream", "org.apache.commons.compress.archivers.ArchiveInputStream", "org.apache.commons.compress.archivers.zip.ZipUtil", "org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream", "org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream", "org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException", "org.apache.commons.compress.archivers.zip.UnicodeCommentExtraField", "org.apache.commons.compress.archivers.zip.UnparseableExtraFieldData", "org.apache.commons.compress.archivers.zip.FallbackZipEncoding", "org.apache.commons.compress.archivers.zip.AbstractUnicodeExtraField", "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream$CurrentEntry", "org.apache.commons.compress.archivers.zip.ZipLong", "org.apache.commons.compress.utils.IOUtils", "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream", "org.apache.commons.compress.archivers.zip.ZipEncoding", "org.apache.commons.compress.archivers.zip.ZipEncodingHelper$SimpleEncodingHolder", "org.apache.commons.compress.archivers.zip.ZipEncodingHelper", "org.apache.commons.compress.archivers.zip.ZipExtraField", "org.apache.commons.compress.archivers.zip.ZipShort", "org.apache.commons.compress.archivers.zip.ZipMethod", "org.apache.commons.compress.archivers.ArchiveOutputStream", "org.apache.commons.compress.compressors.bzip2.BZip2Constants", "org.apache.commons.compress.archivers.zip.GeneralPurposeBit", "org.apache.commons.compress.utils.Charsets" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(ZipArchiveInputStream_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "org.apache.commons.compress.archivers.ArchiveInputStream", "org.apache.commons.compress.archivers.zip.ZipLong", "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream", "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream$CurrentEntry", "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream$BoundedInputStream", "org.apache.commons.compress.utils.Charsets", "org.apache.commons.compress.archivers.zip.ZipEncodingHelper$SimpleEncodingHolder", "org.apache.commons.compress.archivers.zip.FallbackZipEncoding", "org.apache.commons.compress.archivers.zip.ZipEncodingHelper", "org.apache.commons.compress.archivers.zip.AbstractUnicodeExtraField", "org.apache.commons.compress.archivers.zip.ZipShort", "org.apache.commons.compress.archivers.zip.UnicodePathExtraField", "org.apache.commons.compress.archivers.zip.UnicodeCommentExtraField", "org.apache.commons.compress.archivers.zip.ZipMethod", "org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException$Feature", "org.apache.commons.compress.archivers.zip.Zip64ExtendedInformationExtraField", "org.apache.commons.compress.archivers.ArchiveOutputStream", "org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream", "org.apache.commons.compress.utils.IOUtils", "org.apache.commons.compress.archivers.tar.TarArchiveEntry", "org.apache.commons.compress.archivers.tar.TarUtils$1", "org.apache.commons.compress.archivers.tar.TarUtils", "org.apache.commons.compress.archivers.zip.NioZipEncoding", "org.apache.commons.compress.archivers.zip.ZipArchiveEntry", "org.apache.commons.compress.archivers.zip.GeneralPurposeBit", "org.apache.commons.compress.archivers.zip.ZipUtil", "org.apache.commons.compress.archivers.zip.Simple8BitZipEncoding", "org.apache.commons.compress.archivers.zip.Simple8BitZipEncoding$Simple8BitChar", "org.apache.commons.compress.archivers.cpio.CpioArchiveEntry", "org.apache.commons.compress.archivers.ar.ArArchiveEntry", "org.apache.commons.compress.archivers.dump.DumpArchiveEntry", "org.apache.commons.compress.archivers.dump.DumpArchiveEntry$TYPE", "org.apache.commons.compress.archivers.dump.DumpArchiveEntry$TapeSegmentHeader", "org.apache.commons.compress.archivers.zip.ExtraFieldUtils$UnparseableExtraField", "org.apache.commons.compress.archivers.zip.AsiExtraField", "org.apache.commons.compress.archivers.zip.X5455_ExtendedTimestamp", "org.apache.commons.compress.archivers.zip.X7875_NewUnix", "org.apache.commons.compress.archivers.zip.JarMarker", "org.apache.commons.compress.archivers.zip.X000A_NTFS", "org.apache.commons.compress.archivers.zip.ZipEightByteInteger", "org.apache.commons.compress.archivers.zip.PKWareExtraHeader", "org.apache.commons.compress.archivers.zip.X0014_X509Certificates", "org.apache.commons.compress.archivers.zip.X0015_CertificateIdForFile", "org.apache.commons.compress.archivers.zip.X0016_CertificateIdForCentralDirectory", "org.apache.commons.compress.archivers.zip.X0017_StrongEncryptionHeader", "org.apache.commons.compress.archivers.zip.X0019_EncryptionRecipientCertificateList", "org.apache.commons.compress.archivers.zip.ExtraFieldUtils", "org.apache.commons.compress.archivers.zip.UnrecognizedExtraField", "org.apache.commons.compress.archivers.jar.JarArchiveEntry", "org.apache.commons.compress.archivers.cpio.CpioUtil", "org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry", "org.apache.commons.compress.archivers.arj.ArjArchiveEntry", "org.apache.commons.compress.archivers.arj.LocalFileHeader", "org.apache.commons.compress.archivers.zip.UnparseableExtraFieldData", "org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
d93948264012df4eb6dcde73b5a5449cfc8a45dd
f0ef082568f43e3dbc820e2a5c9bb27fe74faa34
/com/google/android/gms/fitness/result/DataReadResult.java
21455eec192877891811915f06df3e662ebb235a
[]
no_license
mzkh/Taxify
f929ea67b6ad12a9d69e84cad027b8dd6bdba587
5c6d0854396b46995ddd4d8b2215592c64fbaecb
refs/heads/master
2020-12-03T05:13:40.604450
2017-05-20T05:19:49
2017-05-20T05:19:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,460
java
package com.google.android.gms.fitness.result; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.api.Result; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import com.google.android.gms.common.internal.zzw; import com.google.android.gms.fitness.data.Bucket; import com.google.android.gms.fitness.data.DataSet; import com.google.android.gms.fitness.data.DataSource; import com.google.android.gms.fitness.data.DataSource.Builder; import com.google.android.gms.fitness.data.DataType; import com.google.android.gms.fitness.data.RawBucket; import com.google.android.gms.fitness.data.RawDataSet; import com.google.android.gms.fitness.request.DataReadRequest; import com.google.android.gms.games.Games; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class DataReadResult implements Result, SafeParcelable { public static final Creator<DataReadResult> CREATOR; private final int zzFG; private final Status zzHb; private final List<DataSet> zzYD; private final List<DataSource> zzYN; private final List<Bucket> zzabM; private int zzabN; private final List<DataType> zzabO; static { CREATOR = new zzb(); } DataReadResult(int versionCode, List<RawDataSet> dataSets, Status status, List<RawBucket> buckets, int batchCount, List<DataSource> uniqueDataSources, List<DataType> uniqueDataTypes) { this.zzFG = versionCode; this.zzHb = status; this.zzabN = batchCount; this.zzYN = uniqueDataSources; this.zzabO = uniqueDataTypes; this.zzYD = new ArrayList(dataSets.size()); for (RawDataSet dataSet : dataSets) { this.zzYD.add(new DataSet(dataSet, (List) uniqueDataSources)); } this.zzabM = new ArrayList(buckets.size()); for (RawBucket bucket : buckets) { this.zzabM.add(new Bucket(bucket, (List) uniqueDataSources)); } } public DataReadResult(List<DataSet> dataSets, List<Bucket> buckets, Status status) { this.zzFG = 5; this.zzYD = dataSets; this.zzHb = status; this.zzabM = buckets; this.zzabN = 1; this.zzYN = new ArrayList(); this.zzabO = new ArrayList(); } public static DataReadResult zza(Status status, DataReadRequest dataReadRequest) { List arrayList = new ArrayList(); for (DataSource create : dataReadRequest.getDataSources()) { arrayList.add(DataSet.create(create)); } for (DataType dataType : dataReadRequest.getDataTypes()) { arrayList.add(DataSet.create(new Builder().setDataType(dataType).setType(1).setName("Default").build())); } return new DataReadResult(arrayList, Collections.emptyList(), status); } private void zza(Bucket bucket, List<Bucket> list) { for (Bucket bucket2 : list) { if (bucket2.zzb(bucket)) { for (DataSet zza : bucket.getDataSets()) { zza(zza, bucket2.getDataSets()); } return; } } this.zzabM.add(bucket); } private void zza(DataSet dataSet, List<DataSet> list) { for (DataSet dataSet2 : list) { if (dataSet2.getDataSource().equals(dataSet.getDataSource())) { dataSet2.zzb(dataSet.getDataPoints()); return; } } list.add(dataSet); } private boolean zzc(DataReadResult dataReadResult) { return this.zzHb.equals(dataReadResult.zzHb) && zzw.equal(this.zzYD, dataReadResult.zzYD) && zzw.equal(this.zzabM, dataReadResult.zzabM); } public int describeContents() { return 0; } public boolean equals(Object that) { return this == that || ((that instanceof DataReadResult) && zzc((DataReadResult) that)); } public List<Bucket> getBuckets() { return this.zzabM; } public DataSet getDataSet(DataSource dataSource) { for (DataSet dataSet : this.zzYD) { if (dataSource.equals(dataSet.getDataSource())) { return dataSet; } } throw new IllegalArgumentException(String.format("Attempting to read data for %s, which was not requested", new Object[]{dataSource.getStreamIdentifier()})); } public DataSet getDataSet(DataType dataType) { for (DataSet dataSet : this.zzYD) { if (dataType.equals(dataSet.getDataType())) { return dataSet; } } throw new IllegalArgumentException(String.format("Attempting to read data for %s, which was not requested", new Object[]{dataType.getName()})); } public List<DataSet> getDataSets() { return this.zzYD; } public Status getStatus() { return this.zzHb; } int getVersionCode() { return this.zzFG; } public int hashCode() { return zzw.hashCode(this.zzHb, this.zzYD, this.zzabM); } public String toString() { return zzw.zzk(this).zza(Games.EXTRA_STATUS, this.zzHb).zza("dataSets", this.zzYD.size() > 5 ? this.zzYD.size() + " data sets" : this.zzYD).zza("buckets", this.zzabM.size() > 5 ? this.zzabM.size() + " buckets" : this.zzabM).toString(); } public void writeToParcel(Parcel dest, int flags) { zzb.zza(this, dest, flags); } public void zzb(DataReadResult dataReadResult) { for (DataSet zza : dataReadResult.getDataSets()) { zza(zza, this.zzYD); } for (Bucket zza2 : dataReadResult.getBuckets()) { zza(zza2, this.zzabM); } } List<DataSource> zzlx() { return this.zzYN; } public int zzmn() { return this.zzabN; } List<RawBucket> zzmo() { List<RawBucket> arrayList = new ArrayList(this.zzabM.size()); for (Bucket rawBucket : this.zzabM) { arrayList.add(new RawBucket(rawBucket, this.zzYN, this.zzabO)); } return arrayList; } List<RawDataSet> zzmp() { List<RawDataSet> arrayList = new ArrayList(this.zzYD.size()); for (DataSet rawDataSet : this.zzYD) { arrayList.add(new RawDataSet(rawDataSet, this.zzYN, this.zzabO)); } return arrayList; } List<DataType> zzmq() { return this.zzabO; } }
[ "mozammil.khan@webyog.com" ]
mozammil.khan@webyog.com
078f3003d3b871021c15b798258d4cd81ecc74f3
2094324ea64a5b9d88c60b70946833c4653aa3e0
/src/main/java/com/cgn/reservation/controller/HomeController.java
78a178c860ff95c2faa6134ba206345c16195e9e
[]
no_license
thilinapiyadasun/HotelFinder
39c4e4a24ddf159415c34b0743453edc303f8a20
e5a001f15c290bbd546a9a4cd300c4fb5248e4de
refs/heads/master
2021-08-12T00:45:21.046078
2017-04-10T16:37:18
2017-04-10T16:37:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,704
java
package com.cgn.reservation.controller; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.cgn.reservation.Captcha.CaptchaHandler; import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.*; @Controller public class HomeController { private static final Logger logger = Logger.getLogger(HomeController.class); @Autowired private CaptchaHandler captchaHandler; @RequestMapping(value="/home",method = RequestMethod.GET) public ModelMap SendCaptchaImage(@ModelAttribute("model") ModelMap model,HttpServletRequest request,HttpServletResponse resp) throws IOException{ byte []cageCaptchaGenerate=captchaHandler.getCaptchaToken(request,resp); if(cageCaptchaGenerate==null) { resp.sendError(HttpServletResponse.SC_NOT_FOUND, "Cannot Generate the Captcha"); return null; } logger.info("ingenerated "); model.put("image", Base64.encode(cageCaptchaGenerate)); return model; } @RequestMapping(value="/home" ,method = RequestMethod.POST) @ResponseBody public String validateCaptchaUserInput(@RequestParam("captchaUserInput") String captchaUserInput){ boolean access=captchaHandler.validate(captchaUserInput); if(!access) return "fail"; return "success"; } public CaptchaHandler getCaptchaHandler() { return captchaHandler; } public void setCaptchaHandler(CaptchaHandler captchaHandler) { this.captchaHandler = captchaHandler; } }
[ "thilinapiyadasun@gmail.com" ]
thilinapiyadasun@gmail.com
b21dfd9af24e7c8c3ac6bf5e4e6084e27247a31e
13a64aa9d54927f51feae2881d0ea09be3d62683
/ChatDemoUI3.0/src/com/nealyi/superwechat/domain/VideoEntity.java
26172b7c01032dcab5f27b67bf5194fe04172125
[ "Apache-2.0" ]
permissive
nealyi/SuperWeChat
f2bedab0ddb92f52a43529f61036f99ffb1fd968
fc44bd86bdd9e69abc7eff9a40a212998854331a
refs/heads/master
2021-01-11T08:50:10.753089
2016-11-11T12:14:47
2016-11-11T12:14:47
72,401,476
0
0
null
null
null
null
UTF-8
Java
false
false
172
java
package com.nealyi.superwechat.domain; public class VideoEntity { public int ID; public String title; public String filePath; public int size; public int duration; }
[ "nealyi@163.com" ]
nealyi@163.com
b625fd38014fe8eb7c9d61b983818ba32baafe5a
599b50bfee0a4238d8cea6de13ebcb3d033c67ef
/src/main/java/com/nonchaos/job/examples/example12/RemoteServerExample.java
1df6a0471fae5ed0eecea0db96add8cc2de641d5
[]
no_license
GitPlayB/SpringBootGo
458b56f46d370bffa6e7ad55840fc1f4ac228357
e0de7b28eb33ff317e9267fff817f863f0113db0
refs/heads/master
2022-11-26T03:49:58.354447
2020-07-13T13:04:55
2020-07-13T13:04:55
230,229,761
0
0
null
2022-11-21T22:38:54
2019-12-26T08:52:57
Java
UTF-8
Java
false
false
2,368
java
/* * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. * */ package com.nonchaos.job.examples.example12; import org.quartz.Scheduler; import org.quartz.SchedulerFactory; import org.quartz.SchedulerMetaData; import org.quartz.impl.StdSchedulerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Bill Kratzer */ public class RemoteServerExample { /** * This example will spawn a large number of jobs to run * * @author James House, Bill Kratzer */ public void run() throws Exception { Logger log = LoggerFactory.getLogger(RemoteServerExample.class); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete -----------"); log.info("------- (Not Scheduling any Jobs - relying on a remote client to schedule jobs --"); log.info("------- Starting Scheduler ----------------"); // start the schedule sched.start(); log.info("------- Started Scheduler -----------------"); log.info("------- Waiting ten minutes... ------------"); // wait five minutes to give our jobs a chance to run try { Thread.sleep(600L * 1000L); } catch (Exception e) { // } // shut down the scheduler log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.getNumberOfJobsExecuted() + " jobs."); } public static void main(String[] args) throws Exception { RemoteServerExample example = new RemoteServerExample(); example.run(); } }
[ "libin@xl.com" ]
libin@xl.com
a44b397357cb9b80c7356347466b49589a655453
48ab8ff754905d0dcf4cb0e97e35710580c1f1e9
/app/src/main/java/com/example/katherine/directoriomedico/addeditpaciente/AddEditPacienteActivity.java
b2a2594d1b30172ace55b7c91e0979d361bdb7a4
[]
no_license
katyLC/DirectorioMedico
e944b6750a2bfb360adc5d57db4814e9f9412e9e
f71429473ce8cbe05534c1d9a9db4a49f1545d20
refs/heads/master
2020-05-28T02:54:41.980912
2019-05-27T14:44:10
2019-05-27T14:44:10
188,860,851
0
0
null
null
null
null
UTF-8
Java
false
false
1,999
java
package com.example.katherine.directoriomedico.addeditpaciente; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.View; import com.example.katherine.directoriomedico.R; import com.example.katherine.directoriomedico.medicodetail.MedicoDetailFragment; public class AddEditPacienteActivity extends AppCompatActivity { public static final int REQUEST_ADD_PACIENTE = 1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_edit_paciente); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); String medicoId = getIntent().getStringExtra(MedicoDetailFragment.ARG_MEDICO_ID); String pacienteId = getIntent().getStringExtra(MedicoDetailFragment.ARG_PACIENTE_ID); setTitle(pacienteId == null? "Añadir":"Editar"); AddEditPacienteFragment fragment = (AddEditPacienteFragment) getSupportFragmentManager().findFragmentById(R.id.add_edit_paciente_container); if (fragment == null) { fragment = AddEditPacienteFragment.newInstance(medicoId, pacienteId); getSupportFragmentManager() .beginTransaction() .add(R.id.add_edit_paciente_container, fragment) .commit(); } FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } }); } }
[ "kather.li.01@gmail.com" ]
kather.li.01@gmail.com
b7b5a1cb63030b5b9722cbf96e51dcacb8057a7d
7606279d894342a36bd2af705bc745c3adae9a0e
/src/main/java/david/augusto/luan/domain/Endereco.java
cb21ba78f6b118ff74029cda907c6066ff124506
[]
no_license
luan-alencar/spring-boot-ionic-backend
03868d59d7cd0a6240576ff26e23b7d6bd394727
f16de8833fd1498ba2c635d27ef57d952d6cdc26
refs/heads/master
2023-02-12T23:20:45.112840
2021-01-15T01:31:08
2021-01-15T01:31:08
323,120,587
0
0
null
null
null
null
UTF-8
Java
false
false
1,476
java
package david.augusto.luan.domain; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @NoArgsConstructor @AllArgsConstructor @Entity @Getter @Setter public class Endereco implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String logradouro; private String numero; private String complemento; private String bairro; private String cep; @JsonIgnore @ManyToOne @JoinColumn(name = "cliente_id") private Cliente cliente; @ManyToOne @JoinColumn(name = "cidade_id") private Cidade cidade; @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Endereco other = (Endereco) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } }
[ "luanalencar134@gmail.com" ]
luanalencar134@gmail.com
12d6e78f79034ef1e741a9cf368b8ca271d70237
2e3210283124e1b18e55bfab3affe14c68e1ff3a
/src/java/simpledb/HashEquiJoin.java
dba6ba838f276421dfdca5d5f51fe4a4e37d3eaf
[]
no_license
Jing42/6.830
6c97d23cda06868772072d335df39feb7cc5386e
78fe094ca6826e4e83e2ceb0fdf7e45469c37fe4
refs/heads/master
2020-03-07T18:04:49.409135
2018-04-11T17:59:37
2018-04-11T17:59:37
127,627,894
0
1
null
null
null
null
UTF-8
Java
false
false
5,258
java
package simpledb; import java.util.*; /** * The Join operator implements the relational join operation. */ public class HashEquiJoin extends Operator { private static final long serialVersionUID = 1L; private JoinPredicate pred; private OpIterator child1, child2; private TupleDesc comboTD; transient private Tuple t1 = null; transient private Tuple t2 = null; /** * Constructor. Accepts to children to join and the predicate to join them * on * * @param p * The predicate to use to join the children * @param child1 * Iterator for the left(outer) relation to join * @param child2 * Iterator for the right(inner) relation to join */ public HashEquiJoin(JoinPredicate p, OpIterator child1, OpIterator child2) { this.pred = p; this.child1 = child1; this.child2 = child2; comboTD = TupleDesc.merge(child1.getTupleDesc(), child2.getTupleDesc()); } public JoinPredicate getJoinPredicate() { return pred; } public TupleDesc getTupleDesc() { return comboTD; } public String getJoinField1Name() { return this.child1.getTupleDesc().getFieldName(this.pred.getField1()); } public String getJoinField2Name() { return this.child2.getTupleDesc().getFieldName(this.pred.getField2()); } HashMap<Object, ArrayList<Tuple>> map = new HashMap<Object, ArrayList<Tuple>>(); public final static int MAP_SIZE = 20000; private boolean loadMap() throws DbException, TransactionAbortedException { int cnt = 0; map.clear(); while (child1.hasNext()) { t1 = child1.next(); ArrayList<Tuple> list = map.get(t1.getField(pred.getField1())); if (list == null) { list = new ArrayList<Tuple>(); map.put(t1.getField(pred.getField1()), list); } list.add(t1); if (cnt++ == MAP_SIZE) return true; } return cnt > 0; } public void open() throws DbException, NoSuchElementException, TransactionAbortedException { child1.open(); child2.open(); loadMap(); super.open(); } public void close() { super.close(); child2.close(); child1.close(); this.t1=null; this.t2=null; this.listIt=null; this.map.clear(); } public void rewind() throws DbException, TransactionAbortedException { child1.rewind(); child2.rewind(); } transient Iterator<Tuple> listIt = null; /** * Returns the next tuple generated by the join, or null if there are no * more tuples. Logically, this is the next tuple in r1 cross r2 that * satisfies the join predicate. There are many possible implementations; * the simplest is a nested loops join. * <p> * Note that the tuples returned from this particular implementation of Join * are simply the concatenation of joining tuples from the left and right * relation. Therefore, there will be two copies of the join attribute in * the results. (Removing such duplicate columns can be done with an * additional projection operator if needed.) * <p> * For example, if one tuple is {1,2,3} and the other tuple is {1,5,6}, * joined on equality of the first column, then this returns {1,2,3,1,5,6}. * * @return The next matching tuple. * @see JoinPredicate#filter */ private Tuple processList() throws TransactionAbortedException, DbException { t1 = listIt.next(); int td1n = t1.getTupleDesc().numFields(); int td2n = t2.getTupleDesc().numFields(); // set fields in combined tuple Tuple t = new Tuple(comboTD); for (int i = 0; i < td1n; i++) t.setField(i, t1.getField(i)); for (int i = 0; i < td2n; i++) t.setField(td1n + i, t2.getField(i)); return t; } protected Tuple fetchNext() throws TransactionAbortedException, DbException { if (listIt != null && listIt.hasNext()) { return processList(); } // loop around child2 while (child2.hasNext()) { t2 = child2.next(); // if match, create a combined tuple and fill it with the values // from both tuples ArrayList<Tuple> l = map.get(t2.getField(pred.getField2())); if (l == null) continue; listIt = l.iterator(); return processList(); } // child2 is done: advance child1 child2.rewind(); if (loadMap()) { return fetchNext(); } return null; } @Override public OpIterator[] getChildren() { return new OpIterator[]{this.child1, this.child2}; } @Override public void setChildren(OpIterator[] children) { this.child1 = children[0]; this.child2 = children[1]; } }
[ "1445917015a@gmail.com" ]
1445917015a@gmail.com
1904a796f526c92bcce4b40b9eea9ef47001e24c
d226901dd04487996584e2b213039ebae0b381d4
/src/com/epam/zhuckovich/entity/Genre.java
1d16115266f01d17b87a6d59de400dfe84303010
[]
no_license
OlegZhuckovich/BooKingDesktop
ead0610aee16d4fe874594fc22a640921ae597a7
8e9539e28e4e06d982a19ddfcd7b76f5e0eea7a4
refs/heads/master
2020-03-25T05:56:35.363599
2018-08-03T19:42:46
2018-08-03T19:42:46
143,465,756
0
0
null
null
null
null
UTF-8
Java
false
false
240
java
package com.epam.zhuckovich.entity; public enum Genre{ Приключения,Проза,Каталог,Детская,Детектив,Экономика,Фантастика,Домашняя,Модерн,Стихи,Научная; }
[ "olegzhuckovich@gmail.com" ]
olegzhuckovich@gmail.com
dbd7ffd54d49c8968f9d40aa965d0c049b29d471
eb4786fb661dce3cf81c3d410ead7701dc5fa054
/src/test/java/com/ruey/discovery/TheDiscoveryServerApplicationTests.java
b26aa7ab9561373b8625f644c8c63cec81ef9f68
[]
no_license
chiaruey/the-discovery-server
026313ccdbd8a5df424d63d21edc779e67b20c1e
41ddb1e15548e9602249fb4c79365b9e73192881
refs/heads/master
2022-10-12T20:22:42.187419
2020-06-06T20:35:25
2020-06-06T20:35:25
270,041,561
0
0
null
null
null
null
UTF-8
Java
false
false
347
java
package com.ruey.discovery; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class TheDiscoveryServerApplicationTests { @Test public void contextLoads() { } }
[ "rueytpe@gmail.com" ]
rueytpe@gmail.com
a73ac5fbd878ccccee0cf317d860ce55d1cd24d6
0b3d0e8d474659b424716ec569494ac264e9a2c2
/wear/src/main/java/com/seventhbeam/cfapager/MyDisplayActivity.java
82c097001fb09f2e525b624fce2979fa7e6628c1
[ "Apache-2.0" ]
permissive
cfapager/android
1e7b379cbf02e5afe5ffb4818daf9aab122ae4a2
f8ad74e77900a1f995b86e3e14ec54a1f2aa2c6a
refs/heads/master
2021-01-21T04:42:14.457544
2016-06-30T19:18:51
2016-06-30T19:18:51
53,196,694
0
0
null
null
null
null
UTF-8
Java
false
false
437
java
package com.seventhbeam.cfapager; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class MyDisplayActivity extends Activity { private TextView mTextView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display); mTextView = (TextView) findViewById(R.id.text); } }
[ "jeff@seventhbeam.com" ]
jeff@seventhbeam.com
82d05d706e55825878c651fe54e304f56d7703e0
28df4ad5d53fffc2e5b0f19d6ea2af1c0ca3be42
/app/src/main/java/son/test/TestActivity.java
3a21c3a5b69a1e35c4accacd6918c69c48102fc6
[]
no_license
dualai/android_t
d7c1058d0d1f463ed9f2f0cc2545268b463a9e67
28fc8a9157affd498cfd927d369104e09cfc3b72
refs/heads/master
2020-04-27T13:05:39.592005
2019-04-17T13:57:32
2019-04-17T13:57:32
173,886,372
0
0
null
null
null
null
UTF-8
Java
false
false
1,672
java
package son.test; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.util.Log; import android.widget.Button; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import son.dualai.R; import son.dualai.Util; public class TestActivity extends Activity { @BindView(R.id.tv_name) TextView tvName; @BindView(R.id.btn_jump) Button btnJump; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test); ButterKnife.bind(this); tvName.setText("activity"); Log.d(Util.TAG,"onCreate...."); } @OnClick(R.id.btn_jump) public void onViewClicked() { startActivity(new Intent(this,Test1Activity.class)); } @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); Log.d(Util.TAG,"onNewIntent...."); } @Override protected void onPause() { super.onPause(); Log.d(Util.TAG,"onPause...."); } @Override protected void onStop() { super.onStop(); Log.d(Util.TAG,"onStop...."); } @Override protected void onStart() { super.onStart(); Log.d(Util.TAG,"onStart...."); } @Override protected void onResume() { super.onResume(); Log.d(Util.TAG,"onResume...."); } @Override protected void onDestroy() { super.onDestroy(); Log.d(Util.TAG,"onDestroy...."); } }
[ "Andy@gmail.com" ]
Andy@gmail.com
6a3187e1c5678ab3d9bf9e0978846269db2f3bf2
63379572e194ab86c7eaa4276360d77836b76dbd
/Cod/src/service/dbResources/service/CardService.java
ad3ed09df8a9b947f4b06f271a9d18483f764e7e
[]
no_license
AndritaLucianGabriel/BankingApp
b6dea3f33875cc3a4b8de0d48995936c68a4c650
e8d0562d0196baf007a9415ffd4faccbeeb6a06b
refs/heads/main
2023-05-12T01:21:58.268472
2021-05-17T16:36:22
2021-05-17T16:36:22
347,612,321
0
2
null
null
null
null
UTF-8
Java
false
false
1,362
java
package service.dbResources.service; import mainClasses.Card; import repository.CardRepository; import service.Timestamp; import java.util.List; public class CardService { private final CardRepository cardRepository = new CardRepository(); protected void create(Card card) { Timestamp.timestamp("CardService,create"); cardRepository.create(card); } public void create(Card card, String IBAN) { Timestamp.timestamp("CardService,create"); cardRepository.create(card, IBAN); } protected List<Object> read() { Timestamp.timestamp("CardService,read"); return cardRepository.read(); } protected Card read(String cardNumber) { Timestamp.timestamp("CardService,read"); return cardRepository.read(cardNumber); } protected void update(Card card) { Timestamp.timestamp("CardService,update"); cardRepository.update(card); } protected void update(String PK, String FK) { Timestamp.timestamp("CardService,update"); cardRepository.update(PK, FK); } protected void delete() { Timestamp.timestamp("CardService,delete"); cardRepository.delete(); } protected void delete(String cardNumber) { Timestamp.timestamp("CardService,delete"); cardRepository.delete(cardNumber); } }
[ "gabylucian2000@gmail.com" ]
gabylucian2000@gmail.com
d114b56b4983a5933154c7dd27c8c15039265b80
3f5577dcc04b882e9fcdc73dc1846bd7f1c3a367
/twister2/resource-scheduler/src/java/edu/iu/dsc/tws/rsched/schedulers/mesos/mpi/MesosMPISlaveStarter.java
4cb03aba8185432d2167ef35fea4e9a653a00540
[ "Apache-2.0" ]
permissive
twister2/twister2
0e1e967d3752fcc25b38226f355f5e4dde742168
c6ab9a5563a9e43d3fd1a16e5337da4edae71224
refs/heads/master
2020-03-24T08:12:41.481151
2018-07-27T15:24:33
2018-07-27T15:24:33
142,587,382
0
0
null
null
null
null
UTF-8
Java
false
false
2,900
java
// 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 edu.iu.dsc.tws.rsched.schedulers.mesos.mpi; import java.net.Inet4Address; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; import edu.iu.dsc.tws.common.config.Config; import edu.iu.dsc.tws.common.config.ConfigLoader; import edu.iu.dsc.tws.common.discovery.WorkerNetworkInfo; import edu.iu.dsc.tws.master.client.JobMasterClient; import edu.iu.dsc.tws.proto.system.job.JobAPI; import edu.iu.dsc.tws.rsched.bootstrap.ZKContext; import edu.iu.dsc.tws.rsched.schedulers.mesos.MesosWorkerController; import edu.iu.dsc.tws.rsched.utils.JobUtils; public final class MesosMPISlaveStarter { public static final Logger LOG = Logger.getLogger(MesosMPISlaveStarter.class.getName()); private static Config config; private static String jobName; private static JobMasterClient jobMasterClient; private static int workerID; private static int numberOfWorkers; private MesosMPISlaveStarter() { } public static void main(String[] args) throws Exception { Thread.sleep(5000); workerID = Integer.parseInt(System.getenv("WORKER_ID")); jobName = System.getenv("JOB_NAME"); String twister2Home = Paths.get("").toAbsolutePath().toString(); String configDir = "twister2-job/mesos/"; config = ConfigLoader.loadConfig(twister2Home, configDir); //MesosWorkerLogger logger = new MesosWorkerLogger(config, // "/persistent-volume/logs", "worker" + workerID); //logger.initLogging(); MesosWorkerController workerController = null; List<WorkerNetworkInfo> workerNetworkInfoList = new ArrayList<>(); try { JobAPI.Job job = JobUtils.readJobFile(null, "twister2-job/" + jobName + ".job"); workerController = new MesosWorkerController(config, job, Inet4Address.getLocalHost().getHostAddress(), 2022, workerID); LOG.info("Initializing with zookeeper "); workerController.initializeWithZooKeeper(); LOG.info("Waiting for all workers to join"); workerNetworkInfoList = workerController.waitForAllWorkersToJoin( ZKContext.maxWaitTimeForAllWorkersToJoin(config)); LOG.info("Everyone has joined"); //container.init(worker.config, id, null, workerController, null); } catch (Exception e) { e.printStackTrace(); } Thread.sleep(10000); } }
[ "vibhatha@gmail.com" ]
vibhatha@gmail.com
4bdfea41cf82aeb68a1e51b59ac3ac2cb25b421c
09d1a01c460666adb5b4aac3a40ae27ff9cb7aa4
/app/src/main/java/com/example/meituanmvp/adapter/MyViewPagerAdapter.java
e74b1214926f2e3bdffb7097e2f84ba475d00b7f
[]
no_license
caolinxing/MeiTuanMVP
4be9067fa652a1262e7eb8e5bca615f3653283c4
982c40481d13c65e4b3a4854cf6a75146eb555ec
refs/heads/master
2020-03-24T00:23:28.375074
2018-07-25T11:08:40
2018-07-25T11:08:40
141,294,290
0
0
null
null
null
null
UTF-8
Java
false
false
1,156
java
package com.example.meituanmvp.adapter; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.view.PagerAdapter; import android.view.View; import android.view.ViewGroup; import java.util.List; public class MyViewPagerAdapter extends PagerAdapter{ private List<View> list; public MyViewPagerAdapter(List<View> list) { this.list = list; } @Override public int getCount() { if (list==null){ return 0; } return list.size(); } @Override public boolean isViewFromObject(@NonNull View view, @NonNull Object object) { return view == object; } @Override public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { container.removeView(list.get(position)); super.destroyItem(container, position, object); } @NonNull @Override public Object instantiateItem(@NonNull ViewGroup container, int position) { container.addView(list.get(position)); return list.get(position); } }
[ "“153340607" ]
“153340607
6984e3eaca33493aa136c3c236b91d329a75f53b
e4fc38f6f6d2697792062b1dab53abd43d9fcbef
/eclipse-workspace/onetomanybidirectional/src/com/singer_songs/practice/Singer_Songs_Test.java
1532557b78aafdebfc5fcca87468d101139d31fd
[]
no_license
sandalcg91/jeetendra
ff1b2014c1672e5917602189a70ad6104b95a604
9793e8312f509d169adc6d336fb3824d67f1b7cf
refs/heads/master
2022-04-25T01:32:00.897977
2020-04-26T09:59:26
2020-04-26T09:59:26
258,992,848
0
0
null
null
null
null
UTF-8
Java
false
false
1,254
java
package com.singer_songs.practice; import java.util.HashSet; import java.util.Set; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; public class Singer_Songs_Test { public static void main(String[] args) { SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); Singer sing = new Singer(); sing.setSid(10232); sing.setSname("Arijeet-sing"); sing.setAward("Best-debu"); Song s1 = new Song(); s1.setSongid(124); s1.setSongname("tum-hi-ho"); s1.setDuration("3:58"); Song s2 = new Song(); s2.setSongid(125); s2.setSongname("khamosiya"); s2.setDuration("4:11"); /*Song s3 = new Song(); s3.setSongid(123); s3.setSongname("jina-jina"); s3.setDuration("2:54"); */ // oneTomany Set s = new HashSet(); s.add(s1); s.add(s2); // s.add(s3); sing.setSong(s); // manyToone s1.setSingObject(sing); s2.setSingObject(sing); // s3.setSingObject(sing); // manyToone session.save(s1); // oneTomany // session.save(sing); tx.commit(); session.close(); } }
[ "gchandan1191@gmail.com" ]
gchandan1191@gmail.com
89d6e41377d330d11af14cd07655d701b80c835b
c39e496e9eb1995a3a1f88ddad630d420c7cb56a
/mall-manager/mall-manager-pojo/src/main/java/cn/exrick/manager/pojo/TbRole.java
c9934c1d4998e7261c5e1313f2ce9250b6d14a8e
[]
no_license
wiseks/mall
632be0eee82363483cc32f359bc94ea177adbd17
37d71637a6cae0579ef686ac6804a4f51e13273e
refs/heads/master
2020-03-10T17:19:28.918605
2018-04-19T09:41:44
2018-04-19T09:41:44
129,497,533
0
0
null
null
null
null
UTF-8
Java
false
false
895
java
package cn.exrick.manager.pojo; import java.io.Serializable; public class TbRole implements Serializable{ private Integer id; private String name; private String description; private Integer[] roles; public Integer[] getRoles() { return roles; } public void setRoles(Integer[] roles) { this.roles = roles; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name == null ? null : name.trim(); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description == null ? null : description.trim(); } }
[ "YW0916@YW-01B-0523.corp.yaowan.com" ]
YW0916@YW-01B-0523.corp.yaowan.com
90dab838eb0ba2fb288404fcb1f9492de5438b20
ea3648110899f7c34c98fb3650cc2fd3d8a16170
/main/java/dqmIII/blocks/decorate/render/DqmTileEntityRenderOokiihasiranakaNB.java
57cd68f56869a0d6498354b380c8346b520bb5fe
[]
no_license
azelDqm/MC1.7.10_DQMIIINext
51392175b412bd7fa977b9663060bb169980928e
af65ee394fe42103655a3ef8ba052765d2934fd0
refs/heads/master
2021-01-25T05:22:11.733236
2015-03-24T15:23:55
2015-03-24T15:23:55
29,433,818
0
0
null
null
null
null
UTF-8
Java
false
false
1,566
java
package dqmIII.blocks.decorate.render; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import dqmIII.blocks.decorate.model.DqmModelOokiihasiranaka; import dqmIII.blocks.decorate.tileEntity.DqmTileEntityOokiihasiranakaNB; @SideOnly(Side.CLIENT) public class DqmTileEntityRenderOokiihasiranakaNB extends TileEntitySpecialRenderer { private DqmModelOokiihasiranaka model = new DqmModelOokiihasiranaka(); public void renderTileEntityAt(TileEntity var1, double var2, double var4, double var6, float var8) { DqmTileEntityOokiihasiranakaNB var9 = (DqmTileEntityOokiihasiranakaNB)var1; GL11.glPushMatrix(); GL11.glTranslatef((float)var2 + 0.5F, (float)var4 + 1.5F, (float)var6 + 0.5F); GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F); if (var9.getBlockMetadata() == 1) { GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F); } if (var9.getBlockMetadata() == 2) { GL11.glRotatef(-180.0F, 0.0F, 1.0F, 0.0F); } if (var9.getBlockMetadata() == 3) { GL11.glRotatef(270.0F, 0.0F, 1.0F, 0.0F); } this.bindTexture(new ResourceLocation("dqm:textures/model/OokiihasiraNB.png")); GL11.glPushMatrix(); this.model.modelRender(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } }
[ "azel.trancer@gmail.com" ]
azel.trancer@gmail.com
d4809d85094abc5ad78f4cdeb575c2c9c7b61545
55042d6a62a329d6e2ab268f00c80663d868aeb5
/src/chap14/BookServlet.java
503efc1d1f4e4c3b3972d68d7af5bf206aa5984e
[]
no_license
wkdalswn11/jsp20201103
92e38add2490ef35396d15a72b22a1e083f892cb
6dd2d410401fadd423d7d037435bef2d21c78b21
refs/heads/master
2023-01-20T07:42:37.676515
2020-12-02T08:52:48
2020-12-02T08:52:48
309,549,728
0
0
null
null
null
null
UTF-8
Java
false
false
2,256
java
package chap14; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class BookServlet */ @WebServlet("/sample/book") public class BookServlet extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public BookServlet() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.getWriter().append("Served at: ").append(request.getContextPath()); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // request 파라미터 urt-8 처리 request.setCharacterEncoding("utf-8"); // 파라미터 얻기 String title = request.getParameter("title"); String body = request.getParameter("body"); String sql = "INSERT INTO book " + "(title, body, inserted) " + "VALUES (?, ?, SYSDATE) "; String url = "jdbc:oracle:thin:@localhost:1521:orcl"; String user = "c##mydbms"; String password = "admin"; // 1.드라이버 로딩 try { Class.forName("oracle.jdbc.driver.OracleDriver"); // 2.연결생성 Connection con = DriverManager.getConnection(url, user, password); // 3.statement 생성 PreparedStatement pstmt = con.prepareStatement(sql); pstmt.setString(1, title); pstmt.setString(2, body); // 4. 쿼리실행 pstmt.executeQuery(); // 5. 결과 처리 // 6. statment, 연결 닫기 pstmt.close(); con.close(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ "wkdalswn133@naver.com" ]
wkdalswn133@naver.com
1432e949783bcd2c11275f1498af024bc3381824
496a965c7cf0d3fe7c9449bf8ebc4f860be96974
/src/org/apache/mina/proxy/handlers/http/AbstractHttpLogicHandler.java
732f0d9244e9c60f10fa740874462744df7f2c38
[ "Apache-2.0" ]
permissive
SmileQxx/mina4-android
f555a14f6c97c426b23e3751bc0d7fa84ee3ab90
b01af7d2098ab2076a3111caae3961937f7766ea
refs/heads/master
2020-03-26T23:15:27.823861
2018-06-08T15:48:03
2018-06-08T15:48:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
12,451
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.mina.proxy.handlers.http; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.filterchain.IoFilter.NextFilter; import org.apache.mina.core.future.ConnectFuture; import org.apache.mina.core.session.IoSession; import org.apache.mina.core.session.IoSessionInitializer; import org.apache.mina.proxy.AbstractProxyLogicHandler; import org.apache.mina.proxy.ProxyAuthException; import org.apache.mina.proxy.session.ProxyIoSession; import org.apache.mina.proxy.utils.IoBufferDecoder; import org.apache.mina.proxy.utils.StringUtilities; import org.apache.mina4.android.log.Mina4Log; /** * AbstractHttpLogicHandler.java - Base class for HTTP proxy * {@link AbstractProxyLogicHandler} implementations. Provides HTTP request * encoding/response decoding functionality. * * @author <a href="https://github.com/Mr-Jiang/mina4-android">mina4-android</a> * @since MINA 2.0.0-M3 */ public abstract class AbstractHttpLogicHandler extends AbstractProxyLogicHandler { private static final String TAG = AbstractHttpLogicHandler.class.getName(); private static final String DECODER = AbstractHttpLogicHandler.class.getName() + ".Decoder"; private static final byte[] HTTP_DELIMITER = new byte[] { '\r', '\n', '\r', '\n' }; private static final byte[] CRLF_DELIMITER = new byte[] { '\r', '\n' }; // Parsing vars /** * Temporary buffer to accumulate the HTTP response from the proxy. */ private IoBuffer responseData = null; /** * The parsed http proxy response */ private HttpProxyResponse parsedResponse = null; /** * The content length of the proxy response. */ private int contentLength = -1; // HTTP/1.1 vars /** * A flag that indicates that this is a HTTP/1.1 response with chunked * data.and that some chunks are missing. */ private boolean hasChunkedData; /** * A flag that indicates that some chunks of data are missing to complete * the HTTP/1.1 response. */ private boolean waitingChunkedData; /** * A flag that indicates that chunked data has been read and that we're now * reading the footers. */ private boolean waitingFooters; /** * Contains the position of the entity body start in the * <code>responseData</code> {@link IoBuffer}. */ private int entityBodyStartPosition; /** * Contains the limit of the entity body start in the * <code>responseData</code> {@link IoBuffer}. */ private int entityBodyLimitPosition; /** * Creates a new {@link AbstractHttpLogicHandler}. * * @param proxyIoSession * the {@link ProxyIoSession} in use. */ public AbstractHttpLogicHandler(final ProxyIoSession proxyIoSession) { super(proxyIoSession); } /** * Handles incoming data during the handshake process. Should consume only * the handshake data from the buffer, leaving any extra data in place. * * @param nextFilter * the next filter * @param buf * the buffer holding received data */ @Override public synchronized void messageReceived(final NextFilter nextFilter, final IoBuffer buf) throws ProxyAuthException { Mina4Log.d(TAG, "messageReceived()"); IoBufferDecoder decoder = (IoBufferDecoder) getSession().getAttribute(DECODER); if (decoder == null) { decoder = new IoBufferDecoder(HTTP_DELIMITER); getSession().setAttribute(DECODER, decoder); } try { if (parsedResponse == null) { responseData = decoder.decodeFully(buf); if (responseData == null) { return; } // Handle the response String responseHeader = responseData.getString(getProxyIoSession().getCharset().newDecoder()); entityBodyStartPosition = responseData.position(); Mina4Log.d(TAG, "response header received: " + responseHeader.replace("\r", "\\r").replace("\n", "\\n\n")); // Parse the response parsedResponse = decodeResponse(responseHeader); // Is handshake complete ? if (parsedResponse.getStatusCode() == 200 || (parsedResponse.getStatusCode() >= 300 && parsedResponse.getStatusCode() <= 307)) { buf.position(0); setHandshakeComplete(); return; } String contentLengthHeader = StringUtilities.getSingleValuedHeader(parsedResponse.getHeaders(), "Content-Length"); if (contentLengthHeader == null) { contentLength = 0; } else { contentLength = Integer.parseInt(contentLengthHeader.trim()); decoder.setContentLength(contentLength, true); } } if (!hasChunkedData) { if (contentLength > 0) { IoBuffer tmp = decoder.decodeFully(buf); if (tmp == null) { return; } responseData.setAutoExpand(true); responseData.put(tmp); contentLength = 0; } if ("chunked".equalsIgnoreCase( StringUtilities.getSingleValuedHeader(parsedResponse.getHeaders(), "Transfer-Encoding"))) { // Handle Transfer-Encoding: Chunked Mina4Log.d(TAG, "Retrieving additional http response chunks"); hasChunkedData = true; waitingChunkedData = true; } } if (hasChunkedData) { // Read chunks while (waitingChunkedData) { if (contentLength == 0) { decoder.setDelimiter(CRLF_DELIMITER, false); IoBuffer tmp = decoder.decodeFully(buf); if (tmp == null) { return; } String chunkSize = tmp.getString(getProxyIoSession().getCharset().newDecoder()); int pos = chunkSize.indexOf(';'); if (pos >= 0) { chunkSize = chunkSize.substring(0, pos); } else { chunkSize = chunkSize.substring(0, chunkSize.length() - 2); } contentLength = Integer.decode("0x" + chunkSize); if (contentLength > 0) { contentLength += 2; // also read chunk's trailing // CRLF decoder.setContentLength(contentLength, true); } } if (contentLength == 0) { waitingChunkedData = false; waitingFooters = true; entityBodyLimitPosition = responseData.position(); break; } IoBuffer tmp = decoder.decodeFully(buf); if (tmp == null) { return; } contentLength = 0; responseData.put(tmp); buf.position(buf.position()); } // Read footers while (waitingFooters) { decoder.setDelimiter(CRLF_DELIMITER, false); IoBuffer tmp = decoder.decodeFully(buf); if (tmp == null) { return; } if (tmp.remaining() == 2) { waitingFooters = false; break; } // add footer to headers String footer = tmp.getString(getProxyIoSession().getCharset().newDecoder()); String[] f = footer.split(":\\s?", 2); StringUtilities.addValueToHeader(parsedResponse.getHeaders(), f[0], f[1], false); responseData.put(tmp); responseData.put(CRLF_DELIMITER); } } responseData.flip(); Mina4Log.d(TAG, "end of response received: " + responseData.getString(getProxyIoSession().getCharset().newDecoder())); // Retrieve entity body content responseData.position(entityBodyStartPosition); responseData.limit(entityBodyLimitPosition); parsedResponse.setBody(responseData.getString(getProxyIoSession().getCharset().newDecoder())); // Free the response buffer responseData.free(); responseData = null; handleResponse(parsedResponse); parsedResponse = null; hasChunkedData = false; contentLength = -1; decoder.setDelimiter(HTTP_DELIMITER, true); if (!isHandshakeComplete()) { doHandshake(nextFilter); } } catch (Exception ex) { if (ex instanceof ProxyAuthException) { throw (ProxyAuthException) ex; } throw new ProxyAuthException("Handshake failed", ex); } } /** * Handles a HTTP response from the proxy server. * * @param response * The response. * @throws ProxyAuthException * If we get an error during the proxy authentication */ public abstract void handleResponse(final HttpProxyResponse response) throws ProxyAuthException; /** * Calls writeRequest0(NextFilter, HttpProxyRequest) to write the request. * If needed a reconnection to the proxy is done previously. * * @param nextFilter * the next filter * @param request * the http request */ public void writeRequest(final NextFilter nextFilter, final HttpProxyRequest request) { ProxyIoSession proxyIoSession = getProxyIoSession(); if (proxyIoSession.isReconnectionNeeded()) { reconnect(nextFilter, request); } else { writeRequest0(nextFilter, request); } } /** * Encodes a HTTP request and sends it to the proxy server. * * @param nextFilter * the next filter * @param request * the http request */ private void writeRequest0(final NextFilter nextFilter, final HttpProxyRequest request) { try { String data = request.toHttpString(); IoBuffer buf = IoBuffer.wrap(data.getBytes(getProxyIoSession().getCharsetName())); Mina4Log.d(TAG, "write: " + data.replace("\r", "\\r").replace("\n", "\\n\n")); writeData(nextFilter, buf); } catch (UnsupportedEncodingException ex) { closeSession("Unable to send HTTP request: ", ex); } } /** * Method to reconnect to the proxy when it decides not to maintain the * connection during handshake. * * @param nextFilter * the next filter * @param request * the http request */ private void reconnect(final NextFilter nextFilter, final HttpProxyRequest request) { Mina4Log.d(TAG, "Reconnecting to proxy ..."); final ProxyIoSession proxyIoSession = getProxyIoSession(); // Fires reconnection proxyIoSession.getConnector().connect(new IoSessionInitializer<ConnectFuture>() { @Override public void initializeSession(final IoSession session, ConnectFuture future) { Mina4Log.d(TAG, "Initializing new session: " + session); session.setAttribute(ProxyIoSession.PROXY_SESSION, proxyIoSession); proxyIoSession.setSession(session); Mina4Log.d(TAG, "setting up proxyIoSession: " + proxyIoSession); // Reconnection is done so we send the // request to the proxy proxyIoSession.setReconnectionNeeded(false); writeRequest0(nextFilter, request); } }); } /** * Parse a HTTP response from the proxy server. * * @param response * The response string. * @return The decoded HttpResponse * @throws Exception * If we get an error while decoding the response */ protected HttpProxyResponse decodeResponse(final String response) throws Exception { Mina4Log.d(TAG, "parseResponse()"); // Break response into lines String[] responseLines = response.split(HttpProxyConstants.CRLF); // Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF // BUG FIX : Trimed to prevent failures with some proxies that add // extra space chars like "Microsoft-IIS/5.0" ... String[] statusLine = responseLines[0].trim().split(" ", 2); if (statusLine.length < 2) { throw new Exception("Invalid response status line (" + statusLine + "). Response: " + response); } // Status line [1] is 3 digits, space and optional error text if (!statusLine[1].matches("^\\d\\d\\d.*")) { throw new Exception("Invalid response code (" + statusLine[1] + "). Response: " + response); } Map<String, List<String>> headers = new HashMap<>(); for (int i = 1; i < responseLines.length; i++) { String[] args = responseLines[i].split(":\\s?", 2); StringUtilities.addValueToHeader(headers, args[0], args[1], false); } return new HttpProxyResponse(statusLine[0], statusLine[1], headers); } }
[ "jspping@qq.com" ]
jspping@qq.com
a1015ce2926b85dd44c4ea05dd3db034f778bca5
13e87c0205211f4899f93be5d804a93806ed9887
/Voider/network/src/com/spiddekauga/voider/network/user/RegisterUserMethod.java
22e5ab61e57f7e0df3642fdd454665caa8ed4709
[]
no_license
Senth/voider
ba4bf201cc593f7bc1505fbb708e47d6a4a05371
a7a2d7683d18362572b5ecfa5ef2e2dc7d299e81
refs/heads/master
2020-05-03T23:27:21.193735
2016-12-08T11:31:35
2016-12-08T11:31:35
178,866,025
0
0
null
null
null
null
UTF-8
Java
false
false
517
java
package com.spiddekauga.voider.network.user; import com.spiddekauga.voider.network.entities.IMethodEntity; import java.util.UUID; /** * Registers a new user */ public class RegisterUserMethod implements IMethodEntity { /** Register key; for the beta */ public String key; /** Username */ public String username; /** Password */ public String password; /** email */ public String email; /** Client id */ public UUID clientId; @Override public MethodNames getMethodName() { return MethodNames.REGISTER_USER; } }
[ "senth.wallace@gmail.com" ]
senth.wallace@gmail.com
65e95356838b49c42446cc429796d41aeba1cb7f
863228d4773d9521761509b8e5618c9c05cd68a3
/Factions/src/main/java/xyz/sethy/factions/handlers/ServerHandler.java
6391e4fa1686a7faea645b5c125ac91ed4423809
[]
no_license
sethmcallister/KrodHQ
8fa8b97e14b671d985f9084e74b0597e46a43bd6
b455fd7608bc7b23b3358f32567cc6dfd3ace117
refs/heads/master
2023-04-28T18:58:32.402549
2017-03-27T15:50:37
2017-03-27T15:50:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,427
java
package xyz.sethy.factions.handlers; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.potion.PotionEffectType; import xyz.sethy.factions.Factions; import xyz.sethy.factions.dto.Faction; import xyz.sethy.factions.dto.region.RegionData; import xyz.sethy.factions.dto.region.RegionType; import xyz.sethy.factions.handlers.dtr.DTRType; /** * Created by sethm on 06/12/2016. */ public class ServerHandler { private boolean EOTW; private boolean preEOTW; public static final PotionEffectType[] DEBUFFS; public static final Material[] NO_INTERACT_WITH; public static final Material[] NO_INTERACT_WITH_SPAWN; public static final Material[] NO_INTERACT; public static final Material[] NO_INTERACT_IN_SPAWN; public static final Material[] NON_TRANSPARENT_ATTACK_DISABLING_BLOCKS; public RegionData getRegion(final Location location) { return this.getRegion(Factions.getInstance().getLandBoard().getFaction(location), location); } public RegionData getRegion(final Faction to, final Location location) { if (to != null && to.getLeader() == null) { if (to.hasDTRBitmask(DTRType.SAFEZONE)) { return new RegionData(RegionType.SPAWN, to); } if (to.hasDTRBitmask(DTRType.ROAD)) { return new RegionData(RegionType.ROAD, to); } } if (to != null) { return new RegionData(RegionType.CLAIMED_LAND, to); } if (Factions.getInstance().getLandBoard().isWarzone(location)) { return new RegionData(RegionType.WARZONE, null); } return new RegionData(RegionType.WILDERNESS, null); } public boolean isEOTW() { return EOTW; } public boolean isPreEOTW() { return preEOTW; } public void setPreEOTW(boolean preEOTW) { this.preEOTW = preEOTW; } public void setEOTW(boolean EOTW) { this.EOTW = EOTW; } static { DEBUFFS = new PotionEffectType[]{PotionEffectType.POISON, PotionEffectType.SLOW, PotionEffectType.WEAKNESS, PotionEffectType.HARM, PotionEffectType.WITHER}; NO_INTERACT_WITH = new Material[]{Material.LAVA_BUCKET, Material.WATER_BUCKET, Material.BUCKET}; NO_INTERACT_WITH_SPAWN = new Material[]{Material.SNOW_BALL, Material.ENDER_PEARL, Material.EGG, Material.FISHING_ROD}; NO_INTERACT = new Material[]{Material.FENCE_GATE, Material.FURNACE, Material.BURNING_FURNACE, Material.BREWING_STAND, Material.CHEST, Material.HOPPER, Material.DISPENSER, Material.WOODEN_DOOR, Material.STONE_BUTTON, Material.WOOD_BUTTON, Material.TRAPPED_CHEST, Material.TRAP_DOOR, Material.LEVER, Material.DROPPER, Material.ENCHANTMENT_TABLE, Material.WORKBENCH, Material.BED_BLOCK, Material.ANVIL}; NO_INTERACT_IN_SPAWN = new Material[]{Material.FENCE_GATE, Material.FURNACE, Material.BURNING_FURNACE, Material.BREWING_STAND, Material.CHEST, Material.HOPPER, Material.DISPENSER, Material.WOODEN_DOOR, Material.STONE_BUTTON, Material.WOOD_BUTTON, Material.TRAPPED_CHEST, Material.TRAP_DOOR, Material.LEVER, Material.DROPPER, Material.ENCHANTMENT_TABLE, Material.BED_BLOCK, Material.ANVIL}; NON_TRANSPARENT_ATTACK_DISABLING_BLOCKS = new Material[]{Material.GLASS, Material.WOOD_DOOR, Material.IRON_DOOR, Material.FENCE_GATE}; } }
[ "dozingducklet@gmail.com" ]
dozingducklet@gmail.com
8258e71636a96cb62c4d8f2e1147aebe15e7383b
ae6ca5bb83f885e0d823b12c0b9c850c320e6922
/src/main/java/com/vtm/course_registration_system/daos/CourseregistrationDao.java
e1d5901d3cbb26f96ccbfe144d15e75cd07aed0c
[]
no_license
18120211/Hibernate_CourseRegistrationSystem
ac7c746ed5a88afbcc57850e0da9823a75789e4c
6ab4bb3e79a0cae5a8b48230546c880587c11bdb
refs/heads/master
2023-06-25T22:57:12.771329
2021-07-26T03:10:57
2021-07-26T03:10:57
367,276,935
5
0
null
null
null
null
UTF-8
Java
false
false
7,150
java
package com.vtm.course_registration_system.daos; import com.vtm.course_registration_system.configs.HibernateUtil; import com.vtm.course_registration_system.models.CourseEntity; import com.vtm.course_registration_system.models.CourseregistrationEntity; import com.vtm.course_registration_system.models.StudentEntity; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.query.Query; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class CourseregistrationDao { public static List getList() { Session session = HibernateUtil.getSession(); String hql = "select sv from CourseregistrationEntity sv"; Query query = session.createQuery(hql); List list = query.list(); session.close(); return list; } public static CourseregistrationEntity get(int id) { Session session = HibernateUtil.getSession(); CourseregistrationEntity courseregistrationEntity = session.get(CourseregistrationEntity.class, id); session.close(); return courseregistrationEntity; } public static Object[][] getTableData() { ArrayList<CourseregistrationEntity> list = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); Object[][] dataTable = new Object[list.size()][]; for (int i = 0; i < list.size(); i++) { dataTable[i] = list.get(i).toArray(); } return dataTable; } public static Object[][] getTableData(int idCourse) { ArrayList<CourseregistrationEntity> tmp = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); ArrayList<CourseregistrationEntity> list = new ArrayList<>(); for (int i = 0; i < tmp.size(); i++) { if(tmp.get(i).getCourseByIdco().getId() == idCourse) { list.add(tmp.get(i)); } } Object[][] dataTable = new Object[list.size()][]; for (int i = 0; i < list.size(); i++) { dataTable[i] = list.get(i).toArray(); } return dataTable; } public static Boolean isRegistered(int idStudent, int idSubject) { ArrayList<CourseregistrationEntity> list = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); for (int i = 0; i < list.size(); i++) { if (list.get(i).getCourseByIdco().getSubjectByIdsu().getId() == idSubject && list.get(i).getStudentByIdsv().getId() == idStudent) { return true; } } return false; } public static Boolean add(CourseregistrationEntity courseregistrationEntity) { if (CourseregistrationDao.get(courseregistrationEntity.getId()) != null) { return false; } // update numsubject student if (!isStudentStudentThisSubject(courseregistrationEntity.getStudentByIdsv().getId(), courseregistrationEntity.getCourseByIdco().getSubjectByIdsu().getId())) { StudentEntity studentEntity = courseregistrationEntity.getStudentByIdsv(); studentEntity.setNumsubject(studentEntity.getNumsubject() + 1); StudentDao.update(studentEntity); } Session session = HibernateUtil.getSession(); Transaction transaction = session.beginTransaction(); session.save(courseregistrationEntity); transaction.commit(); session.close(); return true; } public static Boolean update(CourseregistrationEntity courseregistrationEntity) { if (CourseregistrationDao.get(courseregistrationEntity.getId()) == null) { return false; } Session session = HibernateUtil.getSession(); Transaction transaction = session.beginTransaction(); session.update(courseregistrationEntity); transaction.commit(); session.close(); return true; } public static Boolean delete(int id) { CourseregistrationEntity courseregistrationEntity = CourseregistrationDao.get(id); if (courseregistrationEntity == null) { return false; } Session session = HibernateUtil.getSession(); Transaction transaction = session.beginTransaction(); session.delete(courseregistrationEntity); transaction.commit(); session.close(); // update numsubject student StudentEntity studentEntity = courseregistrationEntity.getStudentByIdsv(); studentEntity.setNumsubject(CourseregistrationDao.countSubject(studentEntity.getId())); StudentDao.update(studentEntity); return true; } public static Boolean delete(int idStudent, int idCourse) { ArrayList<CourseregistrationEntity> list = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); for (int i = 0; i < list.size(); i++) { if (list.get(i).getStudentByIdsv().getId() == idStudent && list.get(i).getCourseByIdco().getId() == idCourse) { CourseregistrationDao.delete(list.get(i).getId()); return true; } } return false; } public static int countSubject(int studentId) { HashMap<Integer, Integer> map = new HashMap<>(); ArrayList<CourseregistrationEntity> list = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); int idSub; int count = 0; for (int i = 0; i < list.size(); i++) { idSub = list.get(i).getCourseByIdco().getSubjectByIdsu().getId(); if (map.get(idSub) == null) { map.put(idSub, studentId); count++; } } return count; } public static boolean isStudentStudentThisSubject(int studentId, int subjectId) { ArrayList<CourseregistrationEntity> list = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); for (int i = 0; i < list.size(); i++) { if (list.get(i).getStudentByIdsv().getId() == studentId && list.get(i).getCourseByIdco().getSubjectByIdsu().getId() == subjectId) { return true; } } return false; } public static boolean isSameTime(StudentEntity studentEntity, CourseEntity courseEntity) { ArrayList<CourseregistrationEntity> list = (ArrayList<CourseregistrationEntity>) CourseregistrationDao.getList(); for (int i = 0; i < list.size(); i++) { if (list.get(i).getStudentByIdsv().getId() == studentEntity.getId() && list.get(i).getCourseByIdco().getDay().equals(courseEntity.getDay()) && list.get(i).getCourseByIdco().getShift() == courseEntity.getShift() && list.get(i).getCourseByIdco().getCourseregistrationsessionByIdcrs().getId() == courseEntity.getCourseregistrationsessionByIdcrs().getId()) { return true; } } return false; } public static void deleteAll() { } }
[ "18120211" ]
18120211
3f773dc744e314acd4f871fb150b81d36a2a8523
ade60a0cd4d5ce7ce7d3ecc0ca9e1c599219705c
/app-fw/app-base/src/main/java/org/yy/base/dao/dynamic2/Expression.java
91c68334256d90ceb2a5eab6e092eee0a3aa6737
[ "Apache-2.0" ]
permissive
yyitsz/myjavastudio
bc7d21ed8ece3eccc07cb0fbc6bbad0be04a7f60
f5563d45c36d1a0b0a7ce1f5a360ff6017f068e8
refs/heads/master
2021-06-11T23:04:43.228001
2017-03-24T10:05:27
2017-03-24T10:05:27
17,080,356
0
1
null
null
null
null
UTF-8
Java
false
false
361
java
package org.yy.base.dao.dynamic2; import java.util.ArrayList; import java.util.List; public abstract class Expression { protected List<Expression> lists = new ArrayList<Expression>(); public void Append(Expression exp) { lists.add(exp); } public abstract String Eval(ExpressionContext ctx); }
[ "yyitsz@163.com" ]
yyitsz@163.com
a14efcfe97b1db25cf7b191c85c1564982bfab60
bb4acf46d2a8493c1ec787bf5c821dbfd4f58b1c
/src/test/java/com/primary/es/EsApplicationTests.java
f5a5028007dc637921245df09106563a062e3a2b
[]
no_license
ProgrammerisWho/primary-es-study
a5337176170b8b4e3379c946908712f9306c4018
df13fb61f8991c96ad5948b7df02625590ea94ca
refs/heads/master
2023-08-16T07:02:03.516435
2021-10-07T08:52:23
2021-10-07T08:52:23
414,518,918
0
0
null
null
null
null
UTF-8
Java
false
false
6,958
java
package com.primary.es; import com.alibaba.fastjson.JSONObject; import com.primary.es.domain.Product; import com.primary.es.mapper.ProductDao; import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.client.RequestOptions; import org.elasticsearch.client.RestHighLevelClient; import org.elasticsearch.common.unit.Fuzziness; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.index.query.RangeQueryBuilder; import org.elasticsearch.index.query.TermQueryBuilder; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; import org.elasticsearch.search.builder.SearchSourceBuilder; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort; import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate; import javax.annotation.Resource; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; @SpringBootTest class EsApplicationTests { @Autowired private ElasticsearchRestTemplate elasticsearchRestTemplate; @Autowired private ProductDao productDao; @Qualifier("es") @Autowired private RestHighLevelClient client; @Test void contextLoads() { System.out.println(123); } @Test public void deleteIndex() { //创建索引,系统初始化会自动创建索引 // boolean flg = elasticsearchRestTemplate.deleteIndex(Product.class); // elasticsearchRestTemplate.delete("product"); // System.out.println("删除索引 = " + flg); } /** * 新增 */ @Test public void save() { Product product = new Product(); product.setId(2L); product.setUrl("http://www.atguigu/hw.jpg"); productDao.save(product); } /** * 修改 */ @Test public void update() { Product product = new Product(); product.setId(2L); productDao.save(product); } //根据 id 查询 @Test public void findById() { Product product = productDao.findById(1L).get(); System.out.println(product); } @Test public void findAll() { Iterable<Product> products = productDao.findAll(PageRequest.of(1, 2)); for (Product product : products) { System.out.println(product); } } @Test public void delete() { Product product = new Product(); product.setId(1L); productDao.delete(product); } //批量新增 @Test public void saveAll() { List<Product> productList = new ArrayList<>(); for (int i = 5; i < 10; i++) { Product product = new Product(); product.setId(Long.valueOf(i)); product.setUrl("http://www.atguigu/xm.jpg"); productList.add(product); } productDao.saveAll(productList); } @Test public void findByPageable() { //设置排序(排序方式,正序还是倒序,排序的 id) Sort sort = Sort.by(Sort.Direction.ASC, "id"); int currentPage = 0; int pageSize = 5; //设置查询分页 PageRequest pageRequest = PageRequest.of(currentPage, pageSize, sort); //分页查询 Page<Product> productPage = productDao.findAll(pageRequest); for (Product Product : productPage.getContent()) { System.out.println(Product); } } /** * 实现productDao接口的方法 */ @Test public void productDao() { Sort sort = Sort.by(Sort.Direction.ASC, "id"); int currentPage = 0; int pageSize = 5; //设置查询分页 PageRequest pageRequest = PageRequest.of(currentPage, pageSize, sort); List<Product> byNameAndBrand = productDao.findByNameLikeAndBrand("骨架", "NAK", pageRequest); byNameAndBrand.forEach(item -> { System.out.println(item); }); } /** * term 查询 * search(termQueryBuilder) 调用搜索方法,参数查询构建器对象 */ @Test public void termQuery() throws IOException { SearchRequest request = new SearchRequest(); request.indices("mfrs_plctemplate_info"); // 构建查询的请求体 SearchSourceBuilder sourceBuilder = new SearchSourceBuilder(); // sourceBuilder.query(QueryBuilders.termQuery("price", "1999")); // sourceBuilder.query(QueryBuilders.fuzzyQuery("title", "1小米手机").fuzziness(Fuzziness.ONE)); //范围 RangeQueryBuilder rangeQuery = QueryBuilders.rangeQuery("plctemp_id"); // 大于等于 rangeQuery.gte("1536"); // 小于等于 rangeQuery.lte("1602"); sourceBuilder.query(rangeQuery); sourceBuilder.size(1000000); sourceBuilder.from(1); // SearchSourceBuilder sourceBuilder = new SearchSourceBuilder(); // sourceBuilder.aggregation(AggregationBuilders.terms("plctemp_id").field("1004")); request.source(sourceBuilder); SearchResponse response = client.search(request, RequestOptions.DEFAULT); //// 查询匹配 SearchHits hits = response.getHits(); int i = 0; for (SearchHit hit : hits) { System.out.println(hit.getSourceAsString()); } System.out.println("<<========"); System.out.println(i); } /** * 模糊查询 */ @Test public void likeData() throws IOException { SearchRequest request = new SearchRequest(); request.indices("product"); // 构建查询的请求体 SearchSourceBuilder sourceBuilder = new SearchSourceBuilder(); sourceBuilder.query(QueryBuilders.fuzzyQuery("name", "封圈").fuzziness(Fuzziness.ONE)); request.source(sourceBuilder); SearchResponse response = client.search(request, RequestOptions.DEFAULT); // 查询匹配 SearchHits hits = response.getHits(); System.out.println("took:" + response.getTook()); System.out.println("timeout:" + response.isTimedOut()); System.out.println("total:" + hits.getTotalHits()); System.out.println("MaxScore:" + hits.getMaxScore()); System.out.println("hits========>>"); List<Map<String, Object>> list = new ArrayList<>(); for (SearchHit hit : hits) { //输出每条查询的结果信息 // System.out.println(JSONObject.parse(hit.getSourceAsString())); Map<String, Object> map = hit.getSourceAsMap(); list.add(map); } System.out.println(list); } }
[ "920856733@qq.com" ]
920856733@qq.com
37c8cd4e271c4fb49a0216a9bff016877c71fc7e
fc7c7e696dec1352a8dfb4308d631eccb6d284c6
/EMSP/src/main/java/com/ems/doa/PersonDAO.java
619631838b43eeff986f6ca6fdab0fceb4648530
[]
no_license
pptaj/EmployementMangementSystem_CloudDeployed
ca216295477a311f81e094180f574c3554e32955
c855d8a947551f6ad73a4a80921098141aa8c8f9
refs/heads/master
2021-01-19T19:45:51.875669
2017-04-16T20:58:43
2017-04-16T20:58:43
88,441,968
0
0
null
null
null
null
UTF-8
Java
false
false
4,825
java
/** * */ package com.ems.doa; import org.hibernate.HibernateException; import org.hibernate.Query; import com.ems.exception.AdException; import com.ems.pojo.Employee; import com.ems.pojo.Manager; import com.ems.pojo.Person; /** * @author Christopher Dsouza * */ public class PersonDAO extends DAO{ public Employee createUser(String firstname, String lastname, int empID, String email, String password, long phnNo, String designation, String role, String street, String city, String state, int zipcode, Manager mngr){ Employee emp = new Employee(); try{ begin(); emp.setFirstName(firstname); emp.setLastName(lastname); emp.setEmpID(empID); emp.setEmailAddress(email); emp.setPassword(password); emp.setPhoneNumber(phnNo); emp.setDesignation(designation); emp.setUserRole(role); emp.setStreetName(street); emp.setCity(city); emp.setState(state); emp.setZipCode(zipcode); emp.setTempPwd(""); emp.setManager(mngr); getSession().save(emp); commit(); }catch(HibernateException e){ rollback(); e.printStackTrace(); } return emp; } public int getManagerEmployeeID(String email){ Person person = new Person(); int mngrEmployeeID=0; try{ begin(); Query q = getSession().createQuery("from Person where EmailID = :email"); q.setString("email", email); person = (Person) q.uniqueResult(); if(person!=null) mngrEmployeeID = person.getEmpID(); commit(); }catch(HibernateException e){ rollback(); e.printStackTrace(); } return mngrEmployeeID; } public Person getUserRole(String email, String password)throws AdException{ Person person = new Person(); try{ begin(); Query q = getSession().createQuery("from Person where EmailID = :email and Password = :password"); q.setString("email", email); q.setString("password", password); person = (Person) q.uniqueResult(); commit(); }catch(HibernateException e){ rollback(); throw new AdException("Exception while fetching user role: " + e.getMessage()); } return person; } public Person searchUser(String emailID)throws AdException{ Person person = new Person(); try{ begin(); Query q = getSession().createQuery("from Person where EmailID = :email"); q.setString("email", emailID); person = (Person) q.uniqueResult(); commit(); }catch(HibernateException e){ rollback(); throw new AdException("Exception while searching user details: " + e.getMessage()); } return person; } public Person getUser(int empID)throws AdException{ Person person = new Person(); try{ begin(); Query q = getSession().createQuery("from Person where empID = :empID"); q.setInteger("empID", empID); person = (Person) q.uniqueResult(); commit(); }catch(HibernateException e){ rollback(); throw new AdException("Exception while fetching user details: " + e.getMessage()); } return person; } public void deleteUser(int empID) throws AdException{ Person person = new Person(); try{ begin(); person.setEmpID(empID); getSession().delete(person); commit(); }catch(HibernateException e){ rollback(); throw new AdException("Exception while deleting user: " + e.getMessage()); } } public int updateUserRole(int empID, String role){ int result = 0; try{ begin(); String hql = "UPDATE Person set userRole = :role where empID = :empID"; Query q = getSession().createQuery(hql); q.setString("role", role); q.setInteger("empID", empID); result = q.executeUpdate(); commit(); }catch(HibernateException e){ rollback(); e.printStackTrace(); } return result; } public int updateUser(int empID, String firstName, String lastName, String password, long phnNo, String street, String city, String state, int zipcode)throws AdException{ int result = 0; try{ begin(); String hql = "UPDATE Person set firstName = :firstName, lastName= :lastName, password= :password, phoneNumber= :phoneNumber, " + "streetName= :streetName, city= :city, state= :state, zipCode= :zipCode where empID = :empID"; Query q = getSession().createQuery(hql); q.setInteger("empID", empID); q.setString("firstName", firstName); q.setString("lastName", lastName); q.setString("password", password); q.setLong("phoneNumber", phnNo); q.setString("streetName", street); q.setString("city", city); q.setString("state", state); q.setInteger("zipCode", zipcode); result = q.executeUpdate(); commit(); }catch(HibernateException e){ rollback(); throw new AdException("Exception while updating user details: " + e.getMessage()); } return result; } }
[ "palecanda.t@husky.neu.edu" ]
palecanda.t@husky.neu.edu
42d8b5358137331a156dcdd96a14c43baec0f74b
539bb2ed80b0bbe4be0428a547a1c2abc6113d3e
/src/main/java/com/dd/nettydemo/netty/bytebuf/ByteBufExamples.java
0f7fd7cfc820ae3b661ac346b8f5b1b997c7a919
[]
no_license
brycedd/nettydemo
c0bb0139b6b002295d8c58f1d519db076cbb229e
91e867605702cc1cf1fb040a3a9e225a480e4aeb
refs/heads/master
2023-04-16T19:57:20.042852
2021-04-25T04:36:15
2021-04-25T04:36:15
361,331,749
0
0
null
null
null
null
UTF-8
Java
false
false
5,334
java
package com.dd.nettydemo.netty.bytebuf; import io.netty.buffer.ByteBuf; import io.netty.buffer.CompositeByteBuf; import io.netty.buffer.Unpooled; import io.netty.util.ByteProcessor; import java.nio.charset.Charset; import java.util.Random; public class ByteBufExamples { private final static Random random = new Random(); private static final ByteBuf BYTE_BUF_FROM_SOMEWHERE = Unpooled.buffer(1024); public static void main(String[] args) { byteBufSetGet(); byteBufWriteRead(); writeAndRead(); byteBufSlice(); byteBufCopy(); byteBufComposite(); directBuffer(); heapBuffer(); } public static void byteBufSetGet() { Charset utf8 = Charset.forName("UTF-8"); ByteBuf buf = Unpooled.copiedBuffer("Netty in Action rocks!", utf8); System.out.println((char)buf.getByte(0)); int readerIndex = buf.readerIndex(); int writerIndex = buf.writerIndex(); System.out.println("readerIndex = " + readerIndex + "; writerIndex = " + writerIndex); buf.setByte(0, (byte)'B'); System.out.println((char)buf.getByte(0)); System.out.println("readerIndex = " + buf.readerIndex() + "; writerIndex = " + buf.writerIndex()); } public static void byteBufWriteRead() { Charset utf8 = Charset.forName("UTF-8"); ByteBuf buf = Unpooled.copiedBuffer("Netty in Action rocks!", utf8); System.out.println((char)buf.readByte()); int readerIndex = buf.readerIndex(); int writerIndex = buf.writerIndex(); System.out.println("readerIndex = " + readerIndex + "; writerIndex = " + writerIndex); buf.writeByte((byte)'?'); System.out.println("readerIndex = " + buf.readerIndex() + "; writerIndex = " + buf.writerIndex()); buf.readByte(); System.out.println("readerIndex = " + buf.readerIndex() + "; writerIndex = " + buf.writerIndex()); } public static void writeAndRead() { ByteBuf buffer = Unpooled.buffer(20); //get reference form somewhere int i = 0; while (buffer.writableBytes() >= 4) { buffer.writeInt(i++); } while (buffer.isReadable()) { System.out.println(buffer.readInt()); } } public static void byteProcessor() { Charset utf8 = Charset.forName("UTF-8"); ByteBuf buffer = Unpooled.copiedBuffer("Netty\r in Action rocks! ", utf8); int index = buffer.forEachByte(ByteProcessor.FIND_CR); } public static void byteBufSlice() { Charset utf8 = Charset.forName("UTF-8"); ByteBuf buf = Unpooled.copiedBuffer("Netty in Action rocks!", utf8); ByteBuf sliced = buf.slice(0, 15); System.out.println(sliced.toString(utf8)); buf.setByte(0, (byte)'J'); System.out.println(sliced.toString(utf8)); } public static void byteBufCopy() { Charset utf8 = Charset.forName("UTF-8"); ByteBuf buf = Unpooled.copiedBuffer("Netty in Action rocks!", utf8); ByteBuf copy = buf.copy(0, 15); System.out.println(copy.toString(utf8)); buf.setByte(0, (byte)'J'); System.out.println(copy.toString(utf8)); } public static void byteBufComposite() { CompositeByteBuf messageBuf = Unpooled.compositeBuffer(); Charset utf8 = Charset.forName("UTF-8"); ByteBuf headerBuf = Unpooled.copiedBuffer("Header", utf8); ByteBuf bodyBuf = Unpooled.copiedBuffer("This is body", utf8); messageBuf.addComponents(headerBuf, bodyBuf); for (ByteBuf buf : messageBuf) { System.out.println(buf.toString()); } messageBuf.removeComponent(0); // remove the header for (ByteBuf buf : messageBuf) { System.out.println(buf.toString()); } } public static void heapBuffer() { ByteBuf heapBuf = Unpooled.buffer(16); if (heapBuf.hasArray()) { int i = 0; while (heapBuf.writableBytes() > 0) { heapBuf.writeByte(i++); } byte[] array = heapBuf.array(); int offset = heapBuf.arrayOffset() + heapBuf.readerIndex(); int length = heapBuf.readableBytes(); handleArray(array, offset, length); } } public static void directBuffer() { ByteBuf directBuf = Unpooled.directBuffer(16); if (!directBuf.hasArray()) { int i = 0; while (directBuf.writableBytes() > 0) { directBuf.writeByte(i++); } int length = directBuf.readableBytes(); byte[] array = new byte[length]; directBuf.getBytes(directBuf.readerIndex(), array); handleArray(array, 0, length); } } public static void byteBufCompositeArray() { CompositeByteBuf compBuf = Unpooled.compositeBuffer(); int length = compBuf.readableBytes(); byte[] array = new byte[length]; compBuf.getBytes(compBuf.readerIndex(), array); handleArray(array, 0, array.length); } private static void handleArray(byte[] array, int offset, int len) { for(int i = 0; i<len; i++) { System.out.println(array[offset+i]); } } }
[ "trcat@outlook.com" ]
trcat@outlook.com
7a652a322b0a419e4dc46e6f56aa943fb554ae9a
c56f3b6ee9bd1dae764e65a5cd41ab6fc9d0873e
/app/src/main/java/com/stho/cantate/Year.java
523b72344076955628f448ddc207e215ce946f3d
[]
no_license
stephan-hoedtke/Cantate
5c7a0c131aed5d49877b757b6bbe1d3c8a96d79f
eb8bc3bcd36d8b6dae19a9b5374d41c4646291f9
refs/heads/master
2020-09-03T22:59:20.357146
2019-12-04T22:25:36
2019-12-04T22:25:36
219,595,653
0
0
null
null
null
null
UTF-8
Java
false
false
5,451
java
package com.stho.cantate; import android.util.SparseArray; import android.util.SparseIntArray; import java.util.Calendar; import java.util.HashMap; public class Year { final int year; private final SparseIntArray mapSundayByDayInYear; private final SparseIntArray mapDominicaByDayInYear; final Calendar advent; final Calendar christmas; final Calendar allerHeiligen; final Calendar allerSeelen; final Calendar johannis; final Calendar michaelis; final Calendar reformation; final Calendar silvester; final Calendar newYear; final Calendar epiphany; final Calendar easter; final Calendar pentecost; final Calendar trinity; final SparseArray<Sunday> sundays; static Year fromDate(SparseArray<EvangelicSunday> evangelic, SparseArray<CatholicDominica> catholic, Calendar date) { return new Year(evangelic, catholic, date.get(Calendar.YEAR)); } static Year fromYear(SparseArray<EvangelicSunday> evangelic, SparseArray<CatholicDominica> catholic, int year) { return new Year(evangelic, catholic, year); } /* Calculation is based on calendar years, not on church year */ private Year(final SparseArray<EvangelicSunday> evangelic, final SparseArray<CatholicDominica> catholic, int year) { this.year = year; this.newYear = Algorithms.getDate(year, Calendar.JANUARY, 1); this.epiphany = Algorithms.getDate(year, Calendar.JANUARY, 6); this.silvester = Algorithms.getDate(year, Calendar.DECEMBER, 31); this.allerHeiligen = Algorithms.getDate(year, Calendar.NOVEMBER, 1); this.allerSeelen = Algorithms.getDate(year, Calendar.NOVEMBER, 2); this.johannis = Algorithms.getDate(year, Calendar.JUNE, 24); this.michaelis = Algorithms.getDate(year, Calendar.SEPTEMBER, 29); this.reformation = Algorithms.getDate(year, Calendar.OCTOBER, 31); this.christmas = Algorithms.getDate(year, Calendar.DECEMBER, 25); this.easter = Algorithms.getEaster(year); this.pentecost = Algorithms.addWeeks(easter, 7); this.trinity = Algorithms.addWeeks(easter, 8); this.advent = Algorithms.addWeeks(Algorithms.getSundayBeforeExclusive(christmas), -3); this.mapSundayByDayInYear = EvangelicYear.getMap(this); this.mapDominicaByDayInYear = CatholicYear.getMap(this); this.sundays = prepareSundays(evangelic, catholic); } /* Must not be invoked before the year was initialized */ private SparseArray<Sunday> prepareSundays(final SparseArray<EvangelicSunday> evangelic, final SparseArray<CatholicDominica> catholic) { final SparseArray<Sunday> sundays = new SparseArray<>(); for (int index = 0; index < mapSundayByDayInYear.size(); index++) { int day = mapSundayByDayInYear.keyAt(index); @EvangelicSundayAnnotation.Sunday int key = mapSundayByDayInYear.valueAt(index); Sunday sunday = getSundayFor(sundays, day, year); sunday.setEvangelicSunday(evangelic.get(key)); } for (int index = 0; index < mapDominicaByDayInYear.size(); index++) { int day = mapDominicaByDayInYear.keyAt(index); @CatholicDominicaAnnotation.Dominica int key = mapDominicaByDayInYear.valueAt(index); Sunday sunday = getSundayFor(sundays, day, year); sunday.setCatholicDominica(catholic.get(key)); } return sundays; } private Sunday getSundayFor(final SparseArray<Sunday> sundays, int day, int year) { Sunday sunday = sundays.get(day); if (sunday == null) { sunday = new Sunday(year, day, Algorithms.getLiturgicalYear(this.year, day, this.advent)); sundays.put(day, sunday); } return sunday; } final static int KEY_NOT_FOUND = -1; int getNextMusicDayInYear(Calendar date) { int dayInYear = date.get(Calendar.DAY_OF_YEAR); return getNextMusicDayInYear(dayInYear); } private static int NOT_FOUND = -1; int getNextMusicDayInYear(int dayInYear) { while (dayInYear <= 366) { @EvangelicSundayAnnotation.Sunday int musicDay = mapSundayByDayInYear.get(dayInYear, NOT_FOUND); if (musicDay > 0) { return dayInYear; } @CatholicDominicaAnnotation.Dominica int dominica = mapDominicaByDayInYear.get(dayInYear, NOT_FOUND); if (dominica > 0) { return dayInYear; } dayInYear++; } return KEY_NOT_FOUND; } int getPreviousMusicDayInYear(Calendar date) { int dayInYear = date.get(Calendar.DAY_OF_YEAR); return getPreviousMusicDayInYear(dayInYear); } int getPreviousMusicDayInYear(int dayInYear) { while (dayInYear >= 0) { @EvangelicSundayAnnotation.Sunday int musicDay = mapSundayByDayInYear.get(dayInYear, NOT_FOUND); if (musicDay > 0) { return dayInYear; } @CatholicDominicaAnnotation.Dominica int dominica = mapDominicaByDayInYear.get(dayInYear, NOT_FOUND); if (dominica > 0) { return dayInYear; } dayInYear--; } return KEY_NOT_FOUND; } int getNextSundayDayOfYear(Calendar date) { return Algorithms.getSundayAfterInclusive(date).get(Calendar.DAY_OF_YEAR); } }
[ "shoedtke@accessholding.com" ]
shoedtke@accessholding.com
7a7dca41dbd8249261646e7cb47c81120a6c6ac4
fd24b3ecf07fa16916b9eabdaa722245e4c1cdd1
/app/src/main/java/com/example/animalwelfare/DownloadUrl.java
d1aeda581d09d65596855fbfe7863143cbe30a13
[]
no_license
mitshah10000/AnimalWelfare
bfe8b47d684ca8e0656a2ba3cf93ee763bd80d15
7a542c11249ff27c22e070db4b42bac85bca4df8
refs/heads/master
2022-12-03T04:14:35.968685
2020-08-15T12:18:00
2020-08-15T12:18:00
287,733,035
0
0
null
null
null
null
UTF-8
Java
false
false
1,423
java
package com.example.animalwelfare; import android.util.Log; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; /** * Created by navneet on 23/7/16. */ public class DownloadUrl { public String readUrl(String strUrl) throws IOException { String data = ""; InputStream iStream = null; HttpURLConnection urlConnection = null; try { URL url = new URL(strUrl); // Creating an http connection to communicate with url urlConnection = (HttpURLConnection) url.openConnection(); // Connecting to url urlConnection.connect(); // Reading data from url iStream = urlConnection.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(iStream)); StringBuffer sb = new StringBuffer(); String line = ""; while ((line = br.readLine()) != null) { sb.append(line); } data = sb.toString(); Log.d("downloadUrl", data.toString()); br.close(); } catch (Exception e) { Log.d("Exception", e.toString()); } finally { iStream.close(); urlConnection.disconnect(); } return data; } }
[ "48241939+mitshah10000@users.noreply.github.com" ]
48241939+mitshah10000@users.noreply.github.com
c65732aac4b719f5519f3dbc9aaa8ac8ad3bc445
7886ec3ba6ca61fe11522c56c0bb8b77b55356af
/withFirebase/app/src/main/java/cs4330/cs/utep/ubeatcs/YoutubeViewer.java
084b708b3630714744af7ebdb0a14afee6b608d4
[ "MIT" ]
permissive
KevinApodaca/uBeatCS
39e58c2ccf5da19138a6d5333f7b355322f54dcb
b4214f80119aba82e062433b03c5a2bd3a924513
refs/heads/master
2020-09-09T21:19:52.625196
2019-12-02T19:10:35
2019-12-02T19:10:35
221,572,641
3
2
MIT
2019-12-02T19:03:18
2019-11-13T23:44:35
Java
UTF-8
Java
false
false
2,071
java
package cs4330.cs.utep.ubeatcs; import android.content.Intent; import android.os.Bundle; import android.widget.Toast; import com.google.android.youtube.player.YouTubeBaseActivity; import com.google.android.youtube.player.YouTubeInitializationResult; import com.google.android.youtube.player.YouTubePlayer; import com.google.android.youtube.player.YouTubePlayer.Provider; import com.google.android.youtube.player.YouTubePlayerView; public class YoutubeViewer extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_REQUEST = 1; private YouTubePlayerView youTubeView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.viewer_youtube); youTubeView = findViewById(R.id.youtube_view); youTubeView.initialize(Config.YOUTUBE_API_KEY, this); } @Override public void onInitializationSuccess(Provider provider, YouTubePlayer player, boolean wasRestored) { if (!wasRestored) { player.cueVideo("dFlPARW5IX8"); } } @Override public void onInitializationFailure(Provider provider, YouTubeInitializationResult errorReason) { if (errorReason.isUserRecoverableError()) { errorReason.getErrorDialog(this, RECOVERY_REQUEST).show(); } else { String error = String.format(getString(R.string.player_error), errorReason.toString()); Toast.makeText(this, error, Toast.LENGTH_LONG).show(); } } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RECOVERY_REQUEST) { getYouTubePlayerProvider().initialize(Config.YOUTUBE_API_KEY, this); } } protected Provider getYouTubePlayerProvider() { return youTubeView; } public final class Config { static final String YOUTUBE_API_KEY = "AIzaSyAoXzjItmyCNqDipAOGjqGRuw5u9nZh_Q8"; private Config() { } } }
[ "kevin.apodaca7@gmail.com" ]
kevin.apodaca7@gmail.com
571319eeb7c721bbe79a7967651093f196aea873
0b4844d550c8e77cd93940e4a1d8b06d0fbeabf7
/JavaSource/dream/req/work/service/spring/MaWoReqDetailServiceImpl.java
ab9c41fced7217cd45d8a99a3aabaca88d750fdf
[]
no_license
eMainTec-DREAM/DREAM
bbf928b5c50dd416e1d45db3722f6c9e35d8973c
05e3ea85f9adb6ad6cbe02f4af44d941400a1620
refs/heads/master
2020-12-22T20:44:44.387788
2020-01-29T06:47:47
2020-01-29T06:47:47
236,912,749
0
0
null
null
null
null
UHC
Java
false
false
7,222
java
package dream.req.work.service.spring; import java.util.ArrayList; import java.util.List; import java.util.Map; import common.bean.MwareConfig; import common.bean.User; import common.util.CommonUtil; import common.util.MailUtil; import dream.mgr.message.service.MgrMessageTransDetailService; import dream.req.work.dao.MaWoReqDetailDAO; import dream.req.work.dao.MaWoReqResDetailDAO; import dream.req.work.dto.MaWoReqCommonDTO; import dream.req.work.dto.MaWoReqDetailDTO; import dream.req.work.service.MaWoReqDetailService; import dream.work.alarm.req.dto.WorkAlarmReqDTO; import dream.work.alarm.req.service.WorkAlarmReqService; /** * 작업요청서 - 상세 serviceimpl * @author kim21017 * @version $Id:$ * @since 1.0 * @spring.bean id="maWoReqDetailServiceTarget" * @spring.txbn id="maWoReqDetailService" * @spring.property name="maWoReqDetailDAO" ref="maWoReqDetailDAO" * @spring.property name="maWoReqResDetailDAO" ref="maWoReqResDetailDAO" * @spring.property name="mgrMessageTransDetailService" ref="mgrMessageTransDetailService" */ public class MaWoReqDetailServiceImpl implements MaWoReqDetailService { private MaWoReqDetailDAO maWoReqDetailDAO = null; private MaWoReqResDetailDAO maWoReqResDetailDAO = null; private MgrMessageTransDetailService mgrMessageTransDetailService = null; public MaWoReqResDetailDAO getMaWoReqResDetailDAO() { return maWoReqResDetailDAO; } public void setMaWoReqResDetailDAO(MaWoReqResDetailDAO maWoReqResDetailDAO) { this.maWoReqResDetailDAO = maWoReqResDetailDAO; } public MaWoReqDetailDAO getMaWoReqDetailDAO() { return maWoReqDetailDAO; } public void setMaWoReqDetailDAO(MaWoReqDetailDAO maWoReqDetailDAO) { this.maWoReqDetailDAO = maWoReqDetailDAO; } public MgrMessageTransDetailService getMgrMessageTransDetailService() { return mgrMessageTransDetailService; } public void setMgrMessageTransDetailService( MgrMessageTransDetailService mgrMessageTransDetailService) { this.mgrMessageTransDetailService = mgrMessageTransDetailService; } public MaWoReqDetailDTO findDetail(MaWoReqCommonDTO maWoReqCommonDTO, User loginUser)throws Exception { return maWoReqDetailDAO.findDetail(maWoReqCommonDTO, loginUser); } public List findWoRecReport(MaWoReqDetailDTO maWoReqDetailDTO, User user) { Map<String, Object> reportMap = null; List<Map<String, Object>> reportList = new ArrayList<Map<String, Object>>(); List detailList = maWoReqDetailDAO.findWoRecReport(maWoReqDetailDTO,user); reportMap = (Map)detailList.get(0); reportList.add((Map)reportMap); return reportList; } public int updateDetail(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception { int resultCnt = 0; String oldRecBy = maWoReqDetailDAO.getRecBy(maWoReqDetailDTO, user); String newRecBy = maWoReqDetailDTO.getRecEmpId(); boolean isChangedRecBy = false; if(!"".equals(newRecBy)&&!oldRecBy.equals(newRecBy)){ isChangedRecBy = true; } resultCnt = maWoReqDetailDAO.updateDetail(maWoReqDetailDTO,user); if ("Y".equals(MwareConfig.getIsUseMailService())&&isChangedRecBy){ //변경된 작업처리자에게 메일 보내기. MailUtil.sendMail("RQC20", maWoReqDetailDTO.getWoReqId(), user); } return resultCnt; } public int insertDetail(MaWoReqDetailDTO maWoReqDetailDTO, User user) throws Exception { int resultCnt = 0; resultCnt = maWoReqDetailDAO.insertDetail(maWoReqDetailDTO, user); // 설비Alarm 에서 작업요청 신규 생성 할 경우(TAALARAMREQ에 INSERT) if(!"".equals(maWoReqDetailDTO.getAlarmListId()) || maWoReqDetailDTO.getAlarmListId() != null) { WorkAlarmReqService workAlarmReqService = (WorkAlarmReqService)CommonUtil.getBean("workAlarmReqService", user); WorkAlarmReqDTO workAlarmReqDTO = new WorkAlarmReqDTO(); workAlarmReqDTO.setAlarmListId(maWoReqDetailDTO.getAlarmListId()); workAlarmReqDTO.setWoReqId(maWoReqDetailDTO.getWoReqId()); workAlarmReqService.insertDetail(workAlarmReqDTO, user); } return resultCnt; } @Override public int updateStatus(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception { int resultCnt = 0; resultCnt = maWoReqDetailDAO.updateStatus(maWoReqDetailDTO,user); MailUtil.sendMail("RQC10", maWoReqDetailDTO.getWoReqId(), user); return resultCnt; } @Override public int updateIncStatus(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception { int resultCnt = 0; resultCnt = maWoReqDetailDAO.updateIncStatus(maWoReqDetailDTO,user); MailUtil.sendMail("RQC10", maWoReqDetailDTO.getWoReqId(), user); return resultCnt; } @Override public int updateReqStatus(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception { int resultCnt = 0; resultCnt = maWoReqDetailDAO.updateReqStatus(maWoReqDetailDTO, user); return resultCnt; } @Override public String checkValidRecDept(MaWoReqDetailDTO maWoReqDetailDTO, User user) throws Exception { return maWoReqDetailDAO.checkValidRecDept(maWoReqDetailDTO, user); } @Override public String checkStatus(MaWoReqCommonDTO maWoReqCommonDTO, User user) throws Exception { String status = ""; int chkCount = chkExistCnt(maWoReqCommonDTO, user); if(chkCount != 0) { status = "WRK"; } else { status = "COM"; } maWoReqDetailDAO.changeHdrStatus(maWoReqCommonDTO.getWoReqId(), status, user); if(!"".equals(maWoReqCommonDTO.getWoReqResId())) { maWoReqResDetailDAO.setWoResStatus(maWoReqCommonDTO, status, user); } return status; } @Override public int chkExistCnt(MaWoReqCommonDTO maWoReqCommonDTO, User user) throws Exception { int chkCount = 0; String woReqId = maWoReqCommonDTO.getWoReqId(); String chkWoExistCnt = maWoReqDetailDAO.chkWoExistCnt(woReqId, user, "WO"); String chkInvtExistCnt = maWoReqDetailDAO.chkInvtExistCnt(woReqId, user, "INVT"); if(!"0".equals(chkWoExistCnt) || !"0".equals(chkInvtExistCnt)) { int chkInvtStCnt = Integer.parseInt(maWoReqDetailDAO.chkInvtStCnt(woReqId, user, "INVT")); int chkWoStCnt = Integer.parseInt(maWoReqDetailDAO.chkWoStCnt(woReqId, user, "WO")); chkCount = chkInvtStCnt + chkWoStCnt; } else { chkCount = 1; } return chkCount; } }
[ "HN4741@10.31.0.185" ]
HN4741@10.31.0.185
9475c85b554ea5339a901bfc366dea427be22c2b
28b8d4590623ffe6881634ef4dbc73bd9e8d3ab6
/app/app/src/main/java/com/example/jaspreet/sportsfest/Allquestions.java
db3dfa98167fb3a19aa476550090b0dd0caf0b66
[]
no_license
gkalyan04/Desportivos
625d2e8ea56f5ef75e067a6dd70c7af69ebac76e
ff4784a17bc91edf8f4d847cc988ddc6b7c54ded
refs/heads/master
2022-03-05T17:38:30.205094
2019-11-03T11:13:50
2019-11-03T11:13:50
218,213,426
0
0
null
null
null
null
UTF-8
Java
false
false
6,965
java
package com.example.jaspreet.sportsfest; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import com.example.jaspreet.sportsfest.Interfaces.ApiInterface_submitans; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class Allquestions extends AppCompatActivity { RelativeLayout rl; String hash=""; TextView txnhashtxt; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_allquestions); final String qid=this.getIntent().getExtras().getString("qid","0"); String qcontent=this.getIntent().getExtras().getString("qcontent","0"); final String qrate=this.getIntent().getExtras().getString("qrate","0"); final String qparticipant=this.getIntent().getExtras().getString("qparticipant","2"); rl=(RelativeLayout)findViewById(R.id.rl); final EditText ans= (EditText)findViewById(R.id.editText2); TextView counttxt=(TextView)findViewById(R.id.textView11);; TextView qcontenttxt=(TextView)findViewById(R.id.textView69);; TextView qidtxt=(TextView)findViewById(R.id.textView68); TextView qratetxt=(TextView)findViewById(R.id.textView3); Button submit=(Button)findViewById(R.id.button2); qidtxt.setText("Quest ID: " + qid); qcontenttxt.setText(qcontent); qratetxt.setText("Fee: " +qrate+" SPT"); counttxt.setText("Participations till now: 0/"+qparticipant); submit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { vote(qid,ans.getText().toString(),qrate); } }); } void vote(String qid, String ansid,String qrate){ SharedPreferences prefs = getSharedPreferences("acckeys", MODE_PRIVATE); // String contractBal = prefs.getString("appdai", "0"); // Log.e("TRANSFERRING BAL:",contractBal); // Toast.makeText(getApplicationContext(),"Submitting your answer to blockchain!",Toast.LENGTH_LONG).show(); String pubkey = prefs.getString("acctname", "0"); String prikey = prefs.getString("prikey", "0"); Log.e("accname", pubkey); Log.e("prik", prikey); ApiInterface_submitans apiService = ApiClient.getClient().create(ApiInterface_submitans.class); Call<ResponseBody> call = apiService.getall(qid,ansid,qrate,pubkey,prikey); call.enqueue(new Callback<ResponseBody>() { @Override public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) { String url = response.raw().request().url().toString(); Log.e("compno", url); VOTE mytask = new VOTE(); mytask.execute(url); } @Override public void onFailure(Call<ResponseBody> call, Throwable t) { Log.e("bbbbb","fail!"); } }); Snackbar snackbar = Snackbar .make(rl, "Participation submitted to blockchain", Snackbar.LENGTH_LONG) .setAction("VIEW", new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(Allquestions.this,WebhashActivity.class); startActivity(i); } }); snackbar.show(); } private class VOTE extends AsyncTask<String, Void, Integer> { public VOTE() { super(); } // The onPreExecute is executed on the main UI thread before background processing is // started. In this method, we start the progressdialog. @Override protected void onPreExecute() { super.onPreExecute(); // Show the progress dialog on the screen } // This method is executed in the background and will return a result to onPostExecute // method. It receives the file name as input parameter. @Override protected Integer doInBackground(String... urls) { InputStream inputStream = null; HttpURLConnection urlConnection = null; Integer result = 0; // TODO connect to server, download and process the JSON string // Now we read the file, line by line and construct the // Json string from the information read in. try { /* forming th java.net.URL object */ URL url = new URL(urls[0]); urlConnection = (HttpURLConnection) url.openConnection(); /* optional request header */ urlConnection.setRequestProperty("Content-Type", "application/json"); /* optional request header */ urlConnection.setRequestProperty("Accept", "application/json"); /* for Get request */ urlConnection.setRequestMethod("GET"); int statusCode = urlConnection.getResponseCode(); /* 200 represents HTTP OK */ if (statusCode == 200) { inputStream = new BufferedInputStream(urlConnection.getInputStream()); final String response = convertInputStreamToString(inputStream); Log.e("HASH", response); // now process the string using the method that we implemented in the previous exercise result = 1; // Successful } else { result = 0; //"Failed to fetch data!"; } } catch (Exception e) { } return result; //"Failed to fetch data!"; } } private String convertInputStreamToString(InputStream inputStream) throws IOException { BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream)); String line = ""; String result = ""; while((line = bufferedReader.readLine()) != null){ result += line; } /* Close Stream */ if(null!=inputStream){ inputStream.close(); } return result; } }
[ "jsk1961998@gmail.com" ]
jsk1961998@gmail.com
60828595216614ba083d4daca7b231be32c9c2b4
d2c5da1052726e5b76a2c0faf3bb5e0b5104d98a
/P96/Solution.java
4883853259e272a7881f41450478f42cab566dcb
[]
no_license
li-zhaoyang/MyLeet
1d0a38c5449150d618c34ab36185907542a1b4c4
48575fde064206f2eb65cc318a3d2c7585c945ea
refs/heads/master
2020-03-09T07:56:53.756185
2019-02-23T22:47:11
2019-02-23T22:47:11
128,676,984
0
0
null
null
null
null
UTF-8
Java
false
false
865
java
import java.util.*; class Solution { public int numTrees(int n) { int[] nums = new int[n+1]; nums[0] = 0; nums[1] = 1; return generateFromNums(n, nums); } private int generateFromNums(int n, int[] nums){ if(n == 0 || n == 1) return n; int ans = 0; for(int i = 0 ; i < n; i++){ int ansLeft =0, ansRight = 0; if(i != 0){ if(nums[i] != 0) ansLeft = nums[i]; else ansLeft = generateFromNums(i, nums); } if((n - 1 - i)!= 0 ){ if(nums[n - 1 - i] != 0) ansRight = nums[n - 1 - i]; else ansRight = generateFromNums(n - 1 - i, nums); } if(ansLeft == 0 || ansRight == 0){ ans += ansLeft + ansRight; continue; } ans += ansLeft * ansRight; } nums[n] = ans; return ans; } }
[ "38060695+li-zhaoyang@users.noreply.github.com" ]
38060695+li-zhaoyang@users.noreply.github.com
83b500b8620865f2b95f08d45cebcc0af78f2b1b
4b467fff8b07ce2a18dd43d10fd912ff7d4022cc
/src/main/java/com/campaigns/api/config/WebPermissionEvaluator.java
e83ed66e17590652dc88a43329e45ca45196d72b
[]
no_license
hajjHackathonCode/backend-api
5cfa70bd533d87cc5e934cd730106ffa6cff0557
c7595bf3fe7d12200b30e284fa02c02ab9e12d5b
refs/heads/master
2020-03-25T00:18:57.621856
2018-08-03T00:03:02
2018-08-03T00:03:02
143,179,692
0
0
null
null
null
null
UTF-8
Java
false
false
1,633
java
package com.campaigns.api.config; import com.campaigns.api.model.Authority; import com.campaigns.api.model.User; import com.campaigns.api.repository.UserRepository; import org.springframework.security.access.PermissionEvaluator; import org.springframework.security.core.Authentication; import java.io.Serializable; public class WebPermissionEvaluator implements PermissionEvaluator { private UserRepository authProvider; private String adminGroup; public WebPermissionEvaluator(UserRepository authProvider, String adminGroup) { this.authProvider = authProvider; this.adminGroup = adminGroup; } @Override public boolean hasPermission(Authentication authentication, Object targetDomainObject, Object permission) { try { if (permission == null) return false; String role = permission.toString(); if ("admin".equalsIgnoreCase(role)) role = adminGroup; User user = this.authProvider.findByUsername(authentication.getName()); for (Authority authority : user.getAuthorities()) { if (authority != null && authority.getAuthority().contains(role)) { return true; } } return false; } catch (Exception ex) { ex.printStackTrace(); } return false; } @Override public boolean hasPermission(Authentication authentication, Serializable targetId, String targetType, Object permission) { return false; } }
[ "" ]
a08b67f0be8b52849eab41feba294f48280c2292
642fb5bcc66943045c3eda0c035ec2ace440a9e2
/src/androidcontroller/MessageBinder.java
81bd9cc7787d6f9af3e6baa300cd187a0228ef2e
[]
no_license
authentic4269/AndroidController
94f17bca51d020a57e64dc2f07c47841b8c1e43c
0752c46d67144892f215645cdd210869966875ab
refs/heads/master
2020-05-30T17:29:47.531491
2013-11-09T18:13:49
2013-11-09T18:13:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
263
java
package androidcontroller; import android.os.Binder; public abstract class MessageBinder extends Binder { public ServerConnection getService() { // Return this instance of LocalService so clients can call public methods return null; } }
[ "mjv58@cornell.edu" ]
mjv58@cornell.edu
7cfb3c3fb6e25e563e22e43e1c66080fa4dfae80
8eec47a5ab5f4661bcb52014ee5b72882a2dfe2e
/src/main/java/nl/sogeti/com/comparator/InnerCompare.java
ff8f07482e764f0dea77c48e9be9197f27eaf762
[]
no_license
sudeepkuma/umAngular2
55c4e74bc546e49bbf657a351213a7be4aa3826c
55a4e1ad73eb3bdbe4ef772fd1d53fdad4274126
refs/heads/master
2021-01-02T09:29:36.337963
2017-11-13T13:01:15
2017-11-13T13:01:15
97,930,541
0
0
null
2017-08-01T09:45:33
2017-07-21T09:26:15
JavaScript
UTF-8
Java
false
false
1,620
java
/*------------------------------------------------------------------------------ ** Ident: Delivery Center Java ** Author: cremerma ** Copyright: (c) 27 feb. 2014 Sogeti Nederland B.V. All Rights Reserved. **------------------------------------------------------------------------------ ** Sogeti Nederland B.V. | No part of this file may be reproduced ** Distributed Software Engineering | or transmitted in any form or by any ** Lange Dreef 17 | means, electronic or mechanical, for the ** 4131 NJ Vianen | purpose, without the express written ** The Netherlands | permission of the copyright holder. *------------------------------------------------------------------------------ */ package nl.sogeti.com.comparator; /** * Simplified compair. * * @author cremerma (c) 27 feb. 2014, Sogeti B.V. * @version $Id:$ */ public class InnerCompare { /** * This class checks if the given objects are Null (taking the need to do this in evry class away).<br> * one == null && other == null returns 0<br> * one == null returns -1<br> * other == null returns 1<br> * if objects are not null returns NULL<br> * * @param one the one * @param other the other * @return the integer */ public static Integer innerCompare(Object one, Object other) { if (one == null && other == null) { return 0; } if (one == null) { return -1; } if (other == null) { return 1; } return null; } }
[ "30317585+sudeepkuma@users.noreply.github.com" ]
30317585+sudeepkuma@users.noreply.github.com
a03f0d8fb85330c79b816558d0d0a7e6c4adf76b
4d4448a000adcc52a8831197df37c156bd15482e
/nanalog/src/main/java/com/nanalog/api/util/UtilController.java
992409a03b576d28046258bd1ae62953cce38119
[]
no_license
Gain-Lee/nanalog-refactoring
caa3b34c7ff7f562041dc29d2f80aae4c2780432
bae43ac80376f04c660641984e640ebdd3c562f8
refs/heads/master
2021-01-18T17:17:23.986388
2016-09-22T08:50:12
2016-09-22T08:50:12
68,442,886
0
0
null
null
null
null
UTF-8
Java
false
false
2,154
java
package com.nanalog.api.util; import com.nanalog.api.util.model.request.DateRequest; import com.nanalog.api.util.model.request.WeatherRequest; import com.nanalog.api.util.model.request.YearAgoDateRequest; import com.nanalog.api.util.model.respnose.DateResponse; import com.nanalog.api.util.service.UtilService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; /** * Created by 1002731 on 2016. 7. 31.. * Email : eenan@sk.com */ @RestController @RequestMapping("/v1/util") public class UtilController { @Autowired private UtilService utilService; @RequestMapping(value = "/date/current", method = RequestMethod.GET) public DateResponse getCurrentDate(@Valid DateRequest dateRequest) { DateResponse dateResponse = this.utilService.getCurrent(dateRequest); if (dateResponse.getCode() == 1) return dateResponse; else { dateResponse.setCode(-1); return dateResponse; } } @RequestMapping(value = "/date/yearago", method = RequestMethod.GET) public DateResponse getYearAgoDate(@Valid YearAgoDateRequest dateRequest) { DateResponse dateResponse = this.utilService.getYearAgoDate(dateRequest); if (dateResponse.getCode() == 1) return dateResponse; else { dateResponse.setCode(-1); return dateResponse; } } @RequestMapping(value = "/color/random",method = RequestMethod.GET) public String choosenColor(@RequestParam(required=true) String wantedColor){ return this.utilService.chosenColor(wantedColor); } @RequestMapping(value = "/weather", method= RequestMethod.GET) public String readWeather(@Valid WeatherRequest weatherRequest) { return this.utilService.getWeather(weatherRequest.getCity(), weatherRequest.getCountry(), weatherRequest.getVillage()); } }
[ "iherbse@gmail.com" ]
iherbse@gmail.com
2089b97d28aacc20d5c9dc4bbdf9d614079356f7
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/lucene-solr/2017/8/FloatPointField.java
c70655ad26bbb3adb149ce481093ad122f935f72
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
6,494
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.schema; import java.util.Collection; import org.apache.lucene.document.FloatPoint; import org.apache.lucene.document.StoredField; import org.apache.lucene.index.DocValuesType; import org.apache.lucene.index.IndexableField; import org.apache.lucene.queries.function.ValueSource; import org.apache.lucene.queries.function.valuesource.FloatFieldSource; import org.apache.lucene.queries.function.valuesource.MultiValuedFloatFieldSource; import org.apache.lucene.search.MatchNoDocsQuery; import org.apache.lucene.search.Query; import org.apache.lucene.search.SortField; import org.apache.lucene.search.SortedNumericSelector; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; import org.apache.lucene.util.NumericUtils; import org.apache.solr.search.QParser; import org.apache.solr.uninverting.UninvertingReader.Type; /** * {@code PointField} implementation for {@code Float} values. * @see PointField * @see FloatPoint */ public class FloatPointField extends PointField implements FloatValueFieldType { public FloatPointField() { type = NumberType.FLOAT; } @Override public Object toNativeType(Object val) { if (val == null) return null; if (val instanceof Number) return ((Number) val).floatValue(); if (val instanceof String) return Float.parseFloat((String) val); return super.toNativeType(val); } @Override public Query getPointRangeQuery(QParser parser, SchemaField field, String min, String max, boolean minInclusive, boolean maxInclusive) { float actualMin, actualMax; if (min == null) { actualMin = Float.NEGATIVE_INFINITY; } else { actualMin = parseFloatFromUser(field.getName(), min); if (!minInclusive) { if (actualMin == Float.POSITIVE_INFINITY) return new MatchNoDocsQuery(); actualMin = FloatPoint.nextUp(actualMin); } } if (max == null) { actualMax = Float.POSITIVE_INFINITY; } else { actualMax = parseFloatFromUser(field.getName(), max); if (!maxInclusive) { if (actualMax == Float.NEGATIVE_INFINITY) return new MatchNoDocsQuery(); actualMax = FloatPoint.nextDown(actualMax); } } return FloatPoint.newRangeQuery(field.getName(), actualMin, actualMax); } @Override public Object toObject(SchemaField sf, BytesRef term) { return FloatPoint.decodeDimension(term.bytes, term.offset); } @Override public Object toObject(IndexableField f) { final Number val = f.numericValue(); if (val != null) { if (f.fieldType().stored() == false && f.fieldType().docValuesType() == DocValuesType.NUMERIC) { return Float.intBitsToFloat(val.intValue()); } else if (f.fieldType().stored() == false && f.fieldType().docValuesType() == DocValuesType.SORTED_NUMERIC) { return NumericUtils.sortableIntToFloat(val.intValue()); } else { return val; } } else { throw new AssertionError("Unexpected state. Field: '" + f + "'"); } } @Override protected Query getExactQuery(SchemaField field, String externalVal) { return FloatPoint.newExactQuery(field.getName(), parseFloatFromUser(field.getName(), externalVal)); } @Override public Query getSetQuery(QParser parser, SchemaField field, Collection<String> externalVal) { assert externalVal.size() > 0; if (!field.indexed()) { return super.getSetQuery(parser, field, externalVal); } float[] values = new float[externalVal.size()]; int i = 0; for (String val:externalVal) { values[i] = parseFloatFromUser(field.getName(), val); i++; } return FloatPoint.newSetQuery(field.getName(), values); } @Override protected String indexedToReadable(BytesRef indexedForm) { return Float.toString(FloatPoint.decodeDimension(indexedForm.bytes, indexedForm.offset)); } @Override public void readableToIndexed(CharSequence val, BytesRefBuilder result) { result.grow(Float.BYTES); result.setLength(Float.BYTES); FloatPoint.encodeDimension(parseFloatFromUser(null, val.toString()), result.bytes(), 0); } @Override public SortField getSortField(SchemaField field, boolean top) { field.checkSortability(); Object missingValue = null; boolean sortMissingLast = field.sortMissingLast(); boolean sortMissingFirst = field.sortMissingFirst(); if (sortMissingLast) { missingValue = top ? Float.NEGATIVE_INFINITY : Float.POSITIVE_INFINITY; } else if (sortMissingFirst) { missingValue = top ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY; } SortField sf = new SortField(field.getName(), SortField.Type.FLOAT, top); sf.setMissingValue(missingValue); return sf; } @Override public Type getUninversionType(SchemaField sf) { if (sf.multiValued()) { return null; } else { return Type.FLOAT_POINT; } } @Override public ValueSource getValueSource(SchemaField field, QParser qparser) { field.checkFieldCacheSource(); return new FloatFieldSource(field.getName()); } @Override protected ValueSource getSingleValueSource(SortedNumericSelector.Type choice, SchemaField f) { return new MultiValuedFloatFieldSource(f.getName(), choice); } @Override public IndexableField createField(SchemaField field, Object value) { float floatValue = (value instanceof Number) ? ((Number) value).floatValue() : Float.parseFloat(value.toString()); return new FloatPoint(field.getName(), floatValue); } @Override protected StoredField getStoredField(SchemaField sf, Object value) { return new StoredField(sf.getName(), (Float) this.toNativeType(value)); } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
1a989cd5da7db790a099b77bd455e85b5da9ae36
2d69ab7b41a0e5c49ac0cdd51df83b23a487c221
/src/main/java/me/thamma/cube/algorithmInterpreter/lexer/tokens/TokenComma.java
c616b5c2463d0743ce004c4452c2d0ae43260f70
[]
no_license
thamma/cube
229a1a5d4ee6198c67d786edc37f159baee4f23d
a24f51b325bbbe3f49ead5923fa1257c4ba33377
refs/heads/master
2021-09-23T10:28:41.493630
2021-09-11T11:10:18
2021-09-11T11:10:18
49,982,608
0
0
null
2016-08-02T19:32:42
2016-01-19T20:57:27
Java
UTF-8
Java
false
false
299
java
package me.thamma.cube.algorithmInterpreter.lexer.tokens; import me.thamma.cube.algorithmInterpreter.lexer.Token; /** * Created by Dominic on 1/24/2016. */ public class TokenComma extends Token{ @Override public String toString() { return "TOKEN_COMMA"; } }
[ "s8dozimm@stud.uni-saarland.de" ]
s8dozimm@stud.uni-saarland.de
4228958e0b8f8486100d58dd0ba1e08aff0cbe14
84b106a3fc6fc36ed1a05ad531ad7aa8c5d4d025
/springbootwithjpaandweb-1/src/main/java/com/cts/training/boot/jpawithrest/controller/EmployeeController.java
f7b51dc1bf2477287fd14427246ff1cc7ddfdf72
[]
no_license
somsetwar/spring
718ff722b08f3377747ec6e9876411e89c309639
cf96e622bbcea5d0c3bf7bf32a92c2982a683fa6
refs/heads/master
2020-04-07T22:24:24.018995
2018-11-23T02:27:54
2018-11-23T02:27:54
158,768,962
0
0
null
null
null
null
UTF-8
Java
false
false
3,292
java
package com.cts.training.boot.jpawithrest.controller; import java.util.List; import java.util.Optional; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; 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.RestController; import com.cts.training.boot.jpawithrest.model.Employee; import com.cts.training.boot.jpawithrest.service.EmployeeService; @RequestMapping("emp") @RestController public class EmployeeController { @Autowired private EmployeeService service; @RequestMapping(produces= "application/json", method=RequestMethod.GET) public ResponseEntity<List<Employee>> getAllEmployees() { return new ResponseEntity<List<Employee>>(service.getAllEmployees(), HttpStatus.OK); } @RequestMapping(value="/{id}",produces= {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE,MediaType.TEXT_PLAIN_VALUE}, method=RequestMethod.GET) public ResponseEntity<?> getEmployee(@PathVariable("id") int id) { Optional<Employee> opt= service.findEmployee(id); if(!opt.isPresent()) { ResponseEntity<String> entity= new ResponseEntity<>("No such employee",HttpStatus.BAD_REQUEST); return entity; } else { return new ResponseEntity<Employee>(opt.get(),HttpStatus.OK); } } @RequestMapping(consumes= {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE}, produces=MediaType.TEXT_PLAIN_VALUE, method=RequestMethod.POST) public ResponseEntity<String> addEmployee(@RequestBody Employee e) { int addedId=service.addEmployee(e); String msg="Employee with id "+addedId+" added successfully"; return new ResponseEntity<>(msg,HttpStatus.CREATED); } @RequestMapping(value="/{id}",consumes= {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE}, produces=MediaType.TEXT_PLAIN_VALUE, method=RequestMethod.PUT) public ResponseEntity<String> updateEmployee(@PathVariable("id") int id, @RequestBody Employee e) { boolean updated= service.updateEmployee(id, e); if(updated) { String msg="Employee with id "+id+" updated successfully"; return new ResponseEntity<String>(msg,HttpStatus.OK); } else { String msg="No such employee with the id "+id; return new ResponseEntity<String>(msg,HttpStatus.BAD_REQUEST); } } @RequestMapping(value="/{id}", produces=MediaType.TEXT_PLAIN_VALUE, method=RequestMethod.DELETE) public ResponseEntity<String> removeEmployee(@PathVariable("id") int id) { boolean removed= service.removeEmployee(id); if(removed) { String msg="Employee with id "+id+" removed successfully"; return new ResponseEntity<String>(msg,HttpStatus.OK); } else { String msg="No such employee with the id "+id; return new ResponseEntity<String>(msg,HttpStatus.BAD_REQUEST); } } /*@PostConstruct public void init() { System.out.println("inserting the rows"); service.initialize(); }*/ }
[ "mahisomsetwar@gmail.com" ]
mahisomsetwar@gmail.com
5e14992454b7d11b55ae37e7e440825724e9430e
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/1/1_1ea8df8c2c857a7bff27312249a5bd3f8d43c9f4/PlayGameActivity/1_1ea8df8c2c857a7bff27312249a5bd3f8d43c9f4_PlayGameActivity_t.java
416bc19de3a2537d9f9769f8be29358b775dbc0d
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,451
java
/* * PlayGameActivity; * * The Activity in which the game takes place. * Extras can be passed to this Activity * Including: * * EXTRA_PUZZLE_COLUMNS - The number of columns in puzzle * EXTRA_PUZZLE_ROWS - number of rows in puzzle * EXTRA_IMAGE_PATH - image path location * * Values that aren't passed will be defaulted to the values in GameConst.java * * -TT */ package edu.csun.comp380.group2.islide.engine; import org.andengine.engine.camera.Camera; import org.andengine.engine.handler.IUpdateHandler; import org.andengine.engine.options.EngineOptions; import org.andengine.engine.options.ScreenOrientation; import org.andengine.engine.options.resolutionpolicy.RatioResolutionPolicy; import org.andengine.entity.scene.IOnSceneTouchListener; import org.andengine.entity.scene.Scene; import org.andengine.entity.scene.background.Background; import org.andengine.entity.sprite.AnimatedSprite; import org.andengine.entity.sprite.Sprite; import org.andengine.entity.sprite.TiledSprite; import org.andengine.entity.util.FPSLogger; import org.andengine.input.touch.TouchEvent; import org.andengine.opengl.texture.Texture; import org.andengine.opengl.texture.TextureOptions; import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas; import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlasTextureRegionFactory; import org.andengine.opengl.texture.atlas.bitmap.BuildableBitmapTextureAtlas; import org.andengine.opengl.texture.region.ITiledTextureRegion; import org.andengine.opengl.texture.region.TextureRegion; import org.andengine.opengl.texture.region.TextureRegionFactory; import org.andengine.ui.activity.SimpleBaseGameActivity; import edu.csun.comp380.group2.islide.entity.PuzzleManager; import edu.csun.comp380.group2.islide.entity.SlideTile; import edu.csun.comp380.group2.islide.util.GameConst; import android.os.Bundle; public class PlayGameActivity extends SimpleBaseGameActivity { //Need to make dynamic at some point.... private final int CAMERA_WIDTH = GameConst.getInstance() .getDefaultCameraWidth(); private final int CAMER_HEIGHT = GameConst.getInstance() .getDefaultCameraHeight(); private Scene mScene; private Camera mCamera; BitmapTextureAtlas mGameImage; ITiledTextureRegion mTile; Bundle extras; PuzzleManager puzzle; private int puzzleRows; private int puzzleColumns; private String imagePath; //This important to determine if the image we are using is an //Asset (we provide it) or a File location private boolean useAssetImage; @Override public EngineOptions onCreateEngineOptions() { mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMER_HEIGHT); EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.PORTRAIT_FIXED, new RatioResolutionPolicy( CAMERA_WIDTH, CAMER_HEIGHT), mCamera); return engineOptions; } @Override protected void onCreateResources() { extras = this.getIntent().getExtras(); if (extras != null) { puzzleColumns = extras.getInt("EXTRA_PUZZLE_COLUMNS"); puzzleRows = extras.getInt("EXTRA_PUZZLE_ROWS"); //May require reworking when we get more default images if(getIntent().hasExtra("EXTRA_IMAGE_PATH")) { imagePath = extras.getString("EXTRA_IMAGE_PATH"); useAssetImage = false; } else { imagePath = GameConst.getInstance().getDefaultImagePath(); useAssetImage = true; } } else { puzzleColumns = GameConst.getInstance().getDefaultPuzzleColumns(); puzzleRows = GameConst.getInstance().getDefaultPuzzleRows(); imagePath = GameConst.getInstance().getDefaultImagePath(); } mGameImage = new BitmapTextureAtlas(this.getTextureManager(), 512, 512); puzzle = new PuzzleManager(GameConst.getInstance().getPuzzleWidth(), GameConst.getInstance().getPuzzleHeight(), puzzleColumns, puzzleRows, mGameImage, this, imagePath); } @Override protected Scene onCreateScene() { mScene = new Scene(); //Allows the puzzle to update every frame mScene.registerUpdateHandler(this.puzzle); mScene.setBackground(new Background(0, 125, 58)); SlideTile[][] tiles = puzzle.getTiles(); for (int i = 0 ; i < tiles.length; i++) { for(int j = 0; j < tiles[0].length; j++ ){ mScene.registerTouchArea(tiles[i][j]); mScene.attachChild(tiles[i][j]); } } return mScene; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
55491c8c0f08f28b4682ba58ea9c038454dae396
ff2a1b6ce410d58b2268187837856b4a36d00946
/jvCodeBank/JVCodebase/work/workCapstone/Manufacturer/src99/war/JSPtest/java/org/apache/jsp/pages/includes/Welcome_jsp.java
27f138d5d99d940521f9e8d54b6bfe25d0cc92e6
[]
no_license
johnvincentio/repo-codebank
5ce4ec3bb4efcad7f32bdfdc867889eff1ca9532
5055d1f53ec69e2e537aac3f4bec9de2953a90f0
refs/heads/master
2023-03-17T18:05:03.748283
2023-03-05T19:22:13
2023-03-05T19:22:13
84,678,871
0
0
null
null
null
null
UTF-8
Java
false
false
3,945
java
package org.apache.jsp.pages.includes; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class Welcome_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static java.util.Vector _jspx_dependants; public java.util.List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("<style type=\"text/css\">\r\nBODY\t{ margin: 0px; }\r\nFORM { margin: 0px; }\r\n.normal\t{ font-family: Arial, Helvetica, Sans-Serif; font-size: 8pt; text-align: justify; }\r\n.genstr { font-family: Arial, Helvetica, Sans-Serif; font-size: 8pt; font-weight: bold; }\r\n.advert { font-family: Arial, Helvetica, Sans-Serif; font-size: 7.5pt; text-align: justify; }\r\n.submit { font-family: Arial, Helvetica, Sans-Serif; font-size: 8pt; text-align: center; }\r\n.larger\t{ font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; }\r\n</style>\r\n\r\n<table width=\"100%\">\r\n<tr>\r\n<th bgcolor=\"aqua\"><font size=\"+1\"><strong>Welcome to Thames Distributors</strong></font></th></tr>\r\n<tr>\r\n<td>\r\n<div align=\"center\">\r\n<center>\r\n<font class=\"larger\">\r\n<i>\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\"</i>\r\n<br />\r\n</font>\r\n</center></div>\r\n<ul>\r\n<div id=\"lipsum\" class=\"normal\">\r\n<p>\r\n<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>\r\n<li>Integer in libero nec elit consectetuer posuere.</li>\r\n"); out.write("<li>Nullam id nulla posuere ante venenatis porttitor.</li>\r\n<li>Vestibulum cursus pellentesque risus.</li>\r\n<li>Cras vestibulum neque a augue.</li>\r\n<li>Aenean tempus augue id enim.</li>\r\n</p>\r\n<p>\r\n<li>Proin consequat ante a libero.</li>\r\n<li>Cras ut pede in sem facilisis commodo.</li>\r\n<li>Aenean in tortor quis quam commodo tincidunt.</li>\r\n</p>\r\n<p>\r\n<li>Sed fermentum vestibulum dui.</li>\r\n<li>Fusce consectetuer wisi et nulla.</li>\r\n<li>Maecenas molestie molestie felis.</li>\r\n<li>Maecenas iaculis nibh et libero.</li>\r\n</p>\r\n<p>\r\n<li>Donec viverra justo id pede.</li>\r\n<li>Morbi gravida bibendum nunc.</li>\r\n<li>Donec adipiscing fringilla enim.</li>\r\n<li>Aliquam iaculis ultricies nulla.</li>\r\n<li>Vivamus pulvinar congue mauris.</li>\r\n</p>\r\n<p>\r\n<li>Morbi eget tortor pharetra ligula dignissim bibendum.</li>\r\n<li>Nunc ac purus eu erat egestas convallis.</li>\r\n<li>Vestibulum molestie libero non nunc adipiscing rutrum.</li>\r\n<li>Nunc in ante vel lacus suscipit vestibulum.</li>\r\n</p>\r\n</ul>\r\n\r\n</td></tr>\r\n</table>\r\n"); out.write("\r\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "john@johnvincent.io" ]
john@johnvincent.io
1e9bd9c64e791c935dc2ef564fa9e6e930ae35a1
1ad4f4801f6e3657d9dc4a17f3068e8e3b72cdeb
/clients/amc/altostratus/src/VteEngineServer/VteObjectContainerHelper.java
9fa53fa46f5397e8d681c13bd464b52cc9406012
[]
no_license
hawkfish/efish
0a311d0b7c9df74ecaee1ed1bbf113766980df1f
cdd3cec47f897927efb9b6d0c78100f75d6cefaf
refs/heads/master
2023-09-05T07:33:46.626491
2002-01-28T04:14:21
2002-01-28T04:14:21
427,710,955
4
0
null
null
null
null
UTF-8
Java
false
false
2,086
java
/* * File: ./VTEENGINESERVER/VTEOBJECTCONTAINERHELPER.JAVA * From: VTEENGINESERVER.IDL * Date: Wed Feb 14 12:54:06 2001 * By: C:\ALTOST~1\IDL\IDLTOJ~1.EXE Java IDL 1.2 Aug 18 1998 16:25:34 */ package VteEngineServer; public class VteObjectContainerHelper { // It is useless to have instances of this class private VteObjectContainerHelper() { } public static void write(org.omg.CORBA.portable.OutputStream out, VteEngineServer.VteObjectContainer that) { out.write_Object(that); } public static VteEngineServer.VteObjectContainer read(org.omg.CORBA.portable.InputStream in) { return VteEngineServer.VteObjectContainerHelper.narrow(in.read_Object()); } public static VteEngineServer.VteObjectContainer extract(org.omg.CORBA.Any a) { org.omg.CORBA.portable.InputStream in = a.create_input_stream(); return read(in); } public static void insert(org.omg.CORBA.Any a, VteEngineServer.VteObjectContainer that) { org.omg.CORBA.portable.OutputStream out = a.create_output_stream(); write(out, that); a.read_value(out.create_input_stream(), type()); } private static org.omg.CORBA.TypeCode _tc; synchronized public static org.omg.CORBA.TypeCode type() { if (_tc == null) _tc = org.omg.CORBA.ORB.init().create_interface_tc(id(), "VteObjectContainer"); return _tc; } public static String id() { return "IDL:VteEngineServer/VteObjectContainer:1.0"; } public static VteEngineServer.VteObjectContainer narrow(org.omg.CORBA.Object that) throws org.omg.CORBA.BAD_PARAM { if (that == null) return null; if (that instanceof VteEngineServer.VteObjectContainer) return (VteEngineServer.VteObjectContainer) that; if (!that._is_a(id())) { throw new org.omg.CORBA.BAD_PARAM(); } org.omg.CORBA.portable.Delegate dup = ((org.omg.CORBA.portable.ObjectImpl)that)._get_delegate(); VteEngineServer.VteObjectContainer result = new VteEngineServer._VteObjectContainerStub(dup); return result; } }
[ "snapper" ]
snapper
f5732c34d8f9577ed325b31c6c545bff99e58997
163f9a0ed8959b2b226422cde7c8094582065319
/src/main/java/com/pmpt/Impl/ServiceImpl/IndexServiceImpl.java
a10e3580b2dcde63ee92f81a3d6daf8b39afb87a
[]
no_license
southerlyfd/lmjr_pmpt
427d4e08c69317737b322abf64f7ca24b2ff699c
c3f2c4f0df87a9b99d893872bc9ab0eafcc3af3f
refs/heads/master
2021-07-10T19:50:01.458840
2017-10-13T10:05:13
2017-10-13T10:05:13
106,667,298
0
0
null
null
null
null
UTF-8
Java
false
false
3,362
java
package com.pmpt.Impl.ServiceImpl; import com.pmpt.entities.enums.Classification; import com.pmpt.interfaces.Dao.BillDAOCus; import com.pmpt.interfaces.Service.IndexService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @Service public class IndexServiceImpl implements IndexService { /* @Autowired private BillDAO dao;*/ @Autowired private BillDAOCus dao2; @Override public List<Object[]> findQuickDeal() { return dao2.findQuickDeal(); } @Override public List<Map<String, String>> getClassifications() { Map<String, String> map = null; List<Map<String, String>> list = new ArrayList<>(); for (Classification classification : Classification.values()) { map = new HashMap<>(); map.put("code", classification.getCode()); map.put("categoryName", classification.getCategoryName()); map.put("classificationUrl", classification.getClassificationUrl()); list.add(map); } return list; } @Override public List<Object[]> findWarmUp() { return dao2.findWarmUp(); } @Override public List<Object[]> getHotCommodity() { List<Object[]> list = new ArrayList<>(); list = dao2.getHotCommodity(); return list; } /*public List<Map<String, String>> getHotCommodity() { Map<String, String> map = null; List<Map<String, String>> list = new ArrayList<>(); String flag = ""; for (Interests interest : Interests.values()) { map = new HashMap<>(); map.put("code", interest.getCode()); map.put("productName", interest.getProductName()); map.put("interestUrl", interest.getInterestUrl()); list.add(map); flag = interest.getCode(); if (flag != null && !"".equals(flag) && flag.equals("08")) { break; } } return list; }*/ @Override public Map<String, Object> findInAuction(Integer billId) { Map<String, Object> map = new HashMap<>(); Integer goodsId = -1; int flag = 1; List<Object[]> billList = dao2.findInAuction(billId); Object[] bill = billList.get(0); if (0 < bill.length) { goodsId = (Integer) bill[0]; List<Object[]> list2 = dao2.findMainFigure(goodsId, flag); map.put("goodsPic", list2); map.put("endDate", bill[1]); map.put("billTitle", bill[2]); map.put("initPrice", bill[3]); map.put("ranges", bill[4]); map.put("pledgePrice", bill[5]); map.put("totalPrice", bill[6]); map.put("highestBid", bill[7]); map.put("videoURL", bill[8]); } return map; } @Override public Map<String, Object> findBidRecord(Integer billId) { Map<String, Object> map = new HashMap<>(); List<Object[]> list = dao2.findBidRecord(billId); if (!list.isEmpty()) { map.put("bidRecord", list); Object[] obj = list.get(0); BigDecimal highestBid = (BigDecimal) obj[1]; map.put("highestBid", highestBid); } return map; } @Override public List<Object[]> getHotAuction() { return dao2.getHotAuction(); } @Override public List<Object[]> getRegionalSelection() { return dao2.getRegionalSelection(); } @Override public List<Object[]> getMoreSelections() { return dao2.getMoreSelections(); } }
[ "Administrator@DUUNN1VJFBE2WTH" ]
Administrator@DUUNN1VJFBE2WTH
6fb195fa6e90fd5e041ae62e97432cc48f4d8250
a5d01febfd8d45a61f815b6f5ed447e25fad4959
/Source Code/5.27.0/sources/com/iqoption/widget/numpad/b.java
fc610bc8f1dbe128966f095b2de43df99d0a3780
[]
no_license
kkagill/Decompiler-IQ-Option
7fe5911f90ed2490687f5d216cb2940f07b57194
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
refs/heads/master
2020-09-14T20:44:49.115289
2019-11-04T06:58:55
2019-11-04T06:58:55
223,236,327
1
0
null
2019-11-21T18:17:17
2019-11-21T18:17:16
null
UTF-8
Java
false
false
131,519
java
package com.iqoption.widget.numpad; import com.iqoption.x.R; /* compiled from: R */ public final class b { /* compiled from: R */ public static final class a { public static final int action0 = 2131361811; public static final int action_bar = 2131361813; public static final int action_bar_activity_content = 2131361814; public static final int action_bar_container = 2131361815; public static final int action_bar_root = 2131361816; public static final int action_bar_spinner = 2131361817; public static final int action_bar_subtitle = 2131361818; public static final int action_bar_title = 2131361819; public static final int action_container = 2131361822; public static final int action_context_bar = 2131361823; public static final int action_divider = 2131361828; public static final int action_image = 2131361829; public static final int action_menu_divider = 2131361831; public static final int action_menu_presenter = 2131361832; public static final int action_mode_bar = 2131361833; public static final int action_mode_bar_stub = 2131361834; public static final int action_mode_close_button = 2131361835; public static final int action_text = 2131361838; public static final int actions = 2131361839; public static final int activity_chooser_view_content = 2131361871; public static final int add = 2131361872; public static final int adjust_height = 2131361883; public static final int adjust_width = 2131361884; public static final int alertTitle = 2131361885; public static final int alignBounds = 2131361890; public static final int alignMargins = 2131361891; public static final int alphabet = 2131361895; public static final int amount = 2131361897; public static final int amountTouchView = 2131361905; public static final int android_pay = 2131361908; public static final int android_pay_dark = 2131361909; public static final int android_pay_light = 2131361910; public static final int android_pay_light_with_border = 2131361911; public static final int animation = 2131361913; public static final int async = 2131361952; public static final int auto = 2131361955; public static final int automatic = 2131361957; public static final int back = 2131361962; public static final int backButton = 2131361963; public static final int blocking = 2131362010; public static final int book_now = 2131362015; public static final int bottom = 2131362016; public static final int bottomLeftView = 2131362020; public static final int box_count = 2131362023; public static final int browser_actions_header_text = 2131362024; public static final int browser_actions_menu_item_icon = 2131362025; public static final int browser_actions_menu_item_text = 2131362026; public static final int browser_actions_menu_items = 2131362027; public static final int browser_actions_menu_view = 2131362028; public static final int button = 2131362100; public static final int buttonPanel = 2131362113; public static final int buyButton = 2131362133; public static final int buy_now = 2131362138; public static final int buy_with = 2131362139; public static final int buy_with_google = 2131362140; public static final int calendarListScrollButtonImage = 2131362142; public static final int cancel_action = 2131362164; public static final int cancel_button = 2131362165; public static final int center = 2131362185; public static final int checkbox = 2131362212; public static final int chronometer = 2131362217; public static final int classic = 2131362220; public static final int com_facebook_body_frame = 2131362262; public static final int com_facebook_button_xout = 2131362263; public static final int com_facebook_device_auth_instructions = 2131362264; public static final int com_facebook_fragment_container = 2131362265; public static final int com_facebook_login_fragment_progress_bar = 2131362266; public static final int com_facebook_smart_instructions_0 = 2131362267; public static final int com_facebook_smart_instructions_or = 2131362268; public static final int com_facebook_tooltip_bubble_view_bottom_pointer = 2131362269; public static final int com_facebook_tooltip_bubble_view_text_body = 2131362270; public static final int com_facebook_tooltip_bubble_view_top_pointer = 2131362271; public static final int confirmImage = 2131362294; public static final int confirmImageLeft = 2131362295; public static final int confirmText = 2131362303; public static final int confirmTextLayout = 2131362304; public static final int confirmation_code = 2131362317; public static final int container = 2131362332; public static final int content = 2131362341; public static final int contentPanel = 2131362346; public static final int coordinator = 2131362353; public static final int countDownTime = 2131362368; public static final int countryBackground = 2131362386; public static final int countryContainer = 2131362388; public static final int countryEdit = 2131362389; public static final int countryInput = 2131362391; public static final int countryInputContainer = 2131362392; public static final int countryLocationButton = 2131362395; public static final int countryLocationError = 2131362396; public static final int countryName = 2131362397; public static final int countryProgress = 2131362400; public static final int countrySuggestList = 2131362402; public static final int currencyChecked = 2131362447; public static final int currencyContainer = 2131362448; public static final int currencyName = 2131362450; public static final int currencySymbol = 2131362452; public static final int custom = 2131362470; public static final int customButton = 2131362471; public static final int customPanel = 2131362472; public static final int dark = 2131362474; public static final int dataBinding = 2131362475; public static final int decor_content_parent = 2131362501; public static final int default_activity_button = 2131362503; public static final int design_bottom_sheet = 2131362566; public static final int design_menu_item_action_area = 2131362567; public static final int design_menu_item_action_area_stub = 2131362568; public static final int design_menu_item_text = 2131362569; public static final int design_navigation_view = 2131362570; public static final int dialpadRoot = 2131362589; public static final int display_always = 2131362608; public static final int donate_with = 2131362623; public static final int donate_with_google = 2131362624; public static final int edit_query = 2131362663; public static final int eight = 2131362664; public static final int end = 2131362680; public static final int end_padder = 2131362683; public static final int expand_activities_button = 2131362706; public static final int expanded_menu = 2131362707; public static final int fill = 2131362758; public static final int filled = 2131362761; public static final int five = 2131362771; public static final int fixed = 2131362778; public static final int flowerView = 2131362781; public static final int forever = 2131362786; public static final int four = 2131362797; public static final int frontText = 2131362810; public static final int ghost_view = 2131362827; public static final int gone = 2131362831; public static final int googleMaterial2 = 2131362833; public static final int google_wallet_classic = 2131362834; public static final int google_wallet_grayscale = 2131362835; public static final int google_wallet_monochrome = 2131362836; public static final int grayscale = 2131362844; public static final int group_divider = 2131362845; public static final int hardware = 2131362854; public static final int hintView = 2131362886; public static final int holo_dark = 2131362891; public static final int holo_light = 2131362892; public static final int home = 2131362893; public static final int horizontal = 2131362895; public static final int hybrid = 2131362898; public static final int ic_cysec = 2131362900; public static final int icon = 2131362903; public static final int icon_group = 2131362912; public static final int icon_only = 2131362913; public static final int id_count_down_time = 2131362914; public static final int image = 2131362916; public static final int info = 2131362923; public static final int inline = 2131362949; public static final int invisible = 2131362979; public static final int italic = 2131362985; public static final int item_touch_helper_previous_elevation = 2131363016; public static final int labeled = 2131363160; public static final int large = 2131363163; public static final int largeLabel = 2131363164; public static final int left = 2131363178; public static final int leftSign = 2131363185; public static final int light = 2131363194; public static final int line1 = 2131363205; public static final int line1Dialpad = 2131363206; public static final int line2Dialpad = 2131363208; public static final int line3 = 2131363209; public static final int line3Dialpad = 2131363210; public static final int line4Dialpad = 2131363211; public static final int listMode = 2131363221; public static final int list_item = 2131363223; public static final int logLayout = 2131363232; public static final int logText = 2131363233; public static final int logo_only = 2131363236; public static final int lottie_layer_name = 2131363238; public static final int mainContent = 2131363244; public static final int masked = 2131363265; public static final int match_parent = 2131363266; public static final int material = 2131363267; public static final int media_actions = 2131363274; public static final int message = 2131363283; public static final int messenger_send_button = 2131363287; public static final int mini = 2131363296; public static final int monochrome = 2131363304; public static final int mtrl_child_content_container = 2131363310; public static final int mtrl_internal_children_alpha_tag = 2131363311; public static final int multiply = 2131363326; public static final int navigation_header_container = 2131363336; public static final int never_display = 2131363339; public static final int nine = 2131363357; public static final int noDurationText = 2131363359; public static final int none = 2131363361; public static final int normal = 2131363362; public static final int notification_background = 2131363368; public static final int notification_main_column = 2131363369; public static final int notification_main_column_container = 2131363370; public static final int number = 2131363373; public static final int onAttachStateChangeListener = 2131363380; public static final int onDateChanged = 2131363381; public static final int one = 2131363382; public static final int open_graph = 2131363410; public static final int outline = 2131363473; public static final int packed = 2131363484; public static final int page = 2131363487; public static final int parallax = 2131363493; public static final int parent = 2131363496; public static final int parentPanel = 2131363497; public static final int parent_matrix = 2131363498; public static final int passwordEdit = 2131363508; public static final int percent = 2131363532; public static final int pin = 2131363549; public static final int placeholderedFieldEdit = 2131363557; public static final int placeholderedFieldInput = 2131363558; public static final int placeholderedFieldPlaceholder = 2131363559; public static final int production = 2131363634; public static final int progressView = 2131363651; public static final int progress_bar = 2131363652; public static final int progress_circular = 2131363653; public static final int progress_horizontal = 2131363654; public static final int radio = 2131363692; public static final int restart = 2131363726; public static final int reverse = 2131363733; public static final int right = 2131363734; public static final int rightSign = 2131363738; public static final int right_icon = 2131363739; public static final int right_side = 2131363740; public static final int sandbox = 2131363747; public static final int satellite = 2131363750; public static final int save_image_matrix = 2131363755; public static final int save_non_transition_alpha = 2131363756; public static final int save_scale_type = 2131363757; public static final int screen = 2131363769; public static final int scrollIndicatorDown = 2131363773; public static final int scrollIndicatorUp = 2131363774; public static final int scrollView = 2131363775; public static final int scrollable = 2131363776; public static final int searchCountryClose = 2131363780; public static final int searchCountryTitle = 2131363781; public static final int searchCountryToolbar = 2131363782; public static final int search_badge = 2131363789; public static final int search_bar = 2131363790; public static final int search_button = 2131363791; public static final int search_close_btn = 2131363792; public static final int search_edit_frame = 2131363793; public static final int search_go_btn = 2131363794; public static final int search_mag_icon = 2131363795; public static final int search_plate = 2131363796; public static final int search_src_text = 2131363797; public static final int search_voice_btn = 2131363798; public static final int select_dialog_listview = 2131363805; public static final int selected = 2131363806; public static final int selectionDetails = 2131363821; public static final int seven = 2131363843; public static final int shortcut = 2131363852; public static final int sign = 2131363857; public static final int six = 2131363878; public static final int slide = 2131363880; public static final int small = 2131363883; public static final int smallLabel = 2131363887; public static final int snackbar_action = 2131363889; public static final int snackbar_text = 2131363890; public static final int software = 2131363901; public static final int space = 2131363922; public static final int spacer = 2131363927; public static final int splash = 2131363929; public static final int splash_connecting_info = 2131363932; public static final int split_action_bar = 2131363933; public static final int spread = 2131363940; public static final int spread_inside = 2131363946; public static final int springs = 2131363947; public static final int src_atop = 2131363949; public static final int src_in = 2131363950; public static final int src_over = 2131363951; public static final int standard = 2131363952; public static final int start = 2131363959; public static final int status_bar_latest_event_content = 2131363970; public static final int stretch = 2131363990; public static final int strict_sandbox = 2131363991; public static final int submenuarrow = 2131364001; public static final int submit_area = 2131364004; public static final int tabMode = 2131364038; public static final int tag_transition_group = 2131364040; public static final int tag_unhandled_key_event_manager = 2131364041; public static final int tag_unhandled_key_listeners = 2131364042; public static final int termsView = 2131364068; public static final int terrain = 2131364069; public static final int test = 2131364070; public static final int text = 2131364072; public static final int text2 = 2131364074; public static final int textSpacerNoButtons = 2131364078; public static final int textSpacerNoTitle = 2131364079; public static final int textWatcher = 2131364084; public static final int text_input_password_toggle = 2131364085; public static final int textinput_counter = 2131364086; public static final int textinput_error = 2131364087; public static final int textinput_helper_text = 2131364088; public static final int three = 2131364093; public static final int time = 2131364101; public static final int timerText = 2131364117; public static final int title = 2131364122; public static final int titleContainer = 2131364132; public static final int titleDividerNoCustom = 2131364137; public static final int title_template = 2131364157; public static final int toolbar = 2131364174; public static final int toolbarProgress = 2131364181; public static final int top = 2131364191; public static final int topPanel = 2131364202; public static final int touch_outside = 2131364224; public static final int transition_current_scene = 2131364269; public static final int transition_layout_save = 2131364270; public static final int transition_position = 2131364271; public static final int transition_scene_layoutid_cache = 2131364272; public static final int transition_transform = 2131364273; public static final int transition_viewholder = 2131364274; public static final int two = 2131364288; public static final int uniform = 2131364298; public static final int unknown = 2131364299; public static final int unlabeled = 2131364300; public static final int up = 2131364302; public static final int vertical = 2131364364; public static final int view_offset_helper = 2131364383; public static final int visible = 2131364390; public static final int wide = 2131364418; public static final int widget_numpad_item_0 = 2131364419; public static final int widget_numpad_item_1 = 2131364420; public static final int widget_numpad_item_2 = 2131364421; public static final int widget_numpad_item_3 = 2131364422; public static final int widget_numpad_item_4 = 2131364423; public static final int widget_numpad_item_5 = 2131364424; public static final int widget_numpad_item_6 = 2131364425; public static final int widget_numpad_item_7 = 2131364426; public static final int widget_numpad_item_8 = 2131364427; public static final int widget_numpad_item_9 = 2131364428; public static final int widget_numpad_item_custom = 2131364429; public static final int widget_numpad_item_delete = 2131364430; public static final int widget_numpad_item_sign = 2131364431; public static final int widget_numpad_minus = 2131364432; public static final int widget_numpad_plus = 2131364433; public static final int wrap = 2131364507; public static final int wrap_content = 2131364508; public static final int zero = 2131364523; public static final int zeroValue = 2131364524; } /* compiled from: R */ public static final class b { public static final int abc_action_bar_title_item = 2131558400; public static final int abc_action_bar_up_container = 2131558401; public static final int abc_action_menu_item_layout = 2131558402; public static final int abc_action_menu_layout = 2131558403; public static final int abc_action_mode_bar = 2131558404; public static final int abc_action_mode_close_item_material = 2131558405; public static final int abc_activity_chooser_view = 2131558406; public static final int abc_activity_chooser_view_list_item = 2131558407; public static final int abc_alert_dialog_button_bar_material = 2131558408; public static final int abc_alert_dialog_material = 2131558409; public static final int abc_alert_dialog_title_material = 2131558410; public static final int abc_cascading_menu_item_layout = 2131558411; public static final int abc_dialog_title_material = 2131558412; public static final int abc_expanded_menu_layout = 2131558413; public static final int abc_list_menu_item_checkbox = 2131558414; public static final int abc_list_menu_item_icon = 2131558415; public static final int abc_list_menu_item_layout = 2131558416; public static final int abc_list_menu_item_radio = 2131558417; public static final int abc_popup_menu_header_item_layout = 2131558418; public static final int abc_popup_menu_item_layout = 2131558419; public static final int abc_screen_content_include = 2131558420; public static final int abc_screen_simple = 2131558421; public static final int abc_screen_simple_overlay_action_mode = 2131558422; public static final int abc_screen_toolbar = 2131558423; public static final int abc_search_dropdown_item_icons_2line = 2131558424; public static final int abc_search_view = 2131558425; public static final int abc_select_dialog_material = 2131558426; public static final int abc_tooltip = 2131558427; public static final int browser_actions_context_menu_page = 2131558525; public static final int browser_actions_context_menu_row = 2131558526; public static final int calendar_arrow_button = 2131558528; public static final int com_facebook_activity_layout = 2131558582; public static final int com_facebook_device_auth_dialog_fragment = 2131558583; public static final int com_facebook_login_fragment = 2131558584; public static final int com_facebook_smart_device_dialog_fragment = 2131558585; public static final int com_facebook_tooltip_bubble = 2131558586; public static final int confirm_button_layout = 2131558590; public static final int design_bottom_navigation_item = 2131558609; public static final int design_bottom_sheet_dialog = 2131558610; public static final int design_layout_snackbar = 2131558611; public static final int design_layout_snackbar_include = 2131558612; public static final int design_layout_tab_icon = 2131558613; public static final int design_layout_tab_text = 2131558614; public static final int design_menu_item_action_area = 2131558615; public static final int design_navigation_item = 2131558616; public static final int design_navigation_item_header = 2131558617; public static final int design_navigation_item_separator = 2131558618; public static final int design_navigation_item_subheader = 2131558619; public static final int design_navigation_menu = 2131558620; public static final int design_navigation_menu_item = 2131558621; public static final int design_text_input_password_icon = 2131558622; public static final int fragment_search_country = 2131558822; public static final int fragment_splash = 2131558826; public static final int fragment_technical_log = 2131558827; public static final int item_country_suggest = 2131558894; public static final int item_currency = 2131558897; public static final int layout_country_field = 2131558923; public static final int layout_placeholder_field = 2131558945; public static final int layout_toolbar_black = 2131558950; public static final int messenger_button_send_blue_large = 2131558984; public static final int messenger_button_send_blue_round = 2131558985; public static final int messenger_button_send_blue_small = 2131558986; public static final int messenger_button_send_white_large = 2131558987; public static final int messenger_button_send_white_round = 2131558988; public static final int messenger_button_send_white_small = 2131558989; public static final int mtrl_layout_snackbar = 2131559026; public static final int mtrl_layout_snackbar_include = 2131559027; public static final int notification_action = 2131559037; public static final int notification_action_tombstone = 2131559038; public static final int notification_media_action = 2131559039; public static final int notification_media_cancel_action = 2131559040; public static final int notification_template_big_media = 2131559041; public static final int notification_template_big_media_custom = 2131559042; public static final int notification_template_big_media_narrow = 2131559043; public static final int notification_template_big_media_narrow_custom = 2131559044; public static final int notification_template_custom_big = 2131559045; public static final int notification_template_icon_group = 2131559046; public static final int notification_template_lines_media = 2131559047; public static final int notification_template_media = 2131559048; public static final int notification_template_media_custom = 2131559049; public static final int notification_template_part_chronometer = 2131559050; public static final int notification_template_part_time = 2131559051; public static final int numpad = 2131559055; public static final int select_dialog_item_material = 2131559167; public static final int select_dialog_multichoice_material = 2131559168; public static final int select_dialog_singlechoice_material = 2131559169; public static final int support_simple_spinner_dropdown_item = 2131559197; public static final int terms_fragment = 2131559205; public static final int timer_view = 2131559207; public static final int view_currency_amount = 2131559241; public static final int wallet_test_layout = 2131559249; public static final int widget_layout_numpad_default = 2131559257; public static final int widget_layout_numpad_with_dot = 2131559258; public static final int widget_numpad_delete = 2131559259; public static final int widget_numpad_item = 2131559260; public static final int widget_numpad_sign = 2131559261; } /* compiled from: R */ public static final class c { public static final int[] ActionBar = new int[]{R.attr.background, R.attr.backgroundSplit, R.attr.backgroundStacked, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.customNavigationLayout, R.attr.displayOptions, R.attr.divider, R.attr.elevation, R.attr.height, R.attr.hideOnContentScroll, R.attr.homeAsUpIndicator, R.attr.homeLayout, R.attr.icon, R.attr.indeterminateProgressStyle, R.attr.itemPadding, R.attr.logo, R.attr.navigationMode, R.attr.popupTheme, R.attr.progressBarPadding, R.attr.progressBarStyle, R.attr.subtitle, R.attr.subtitleTextStyle, R.attr.title, R.attr.titleTextStyle}; public static final int[] ActionBarLayout = new int[]{16842931}; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int ActionBar_background = 0; public static final int ActionBar_backgroundSplit = 1; public static final int ActionBar_backgroundStacked = 2; public static final int ActionBar_contentInsetEnd = 3; public static final int ActionBar_contentInsetEndWithActions = 4; public static final int ActionBar_contentInsetLeft = 5; public static final int ActionBar_contentInsetRight = 6; public static final int ActionBar_contentInsetStart = 7; public static final int ActionBar_contentInsetStartWithNavigation = 8; public static final int ActionBar_customNavigationLayout = 9; public static final int ActionBar_displayOptions = 10; public static final int ActionBar_divider = 11; public static final int ActionBar_elevation = 12; public static final int ActionBar_height = 13; public static final int ActionBar_hideOnContentScroll = 14; public static final int ActionBar_homeAsUpIndicator = 15; public static final int ActionBar_homeLayout = 16; public static final int ActionBar_icon = 17; public static final int ActionBar_indeterminateProgressStyle = 18; public static final int ActionBar_itemPadding = 19; public static final int ActionBar_logo = 20; public static final int ActionBar_navigationMode = 21; public static final int ActionBar_popupTheme = 22; public static final int ActionBar_progressBarPadding = 23; public static final int ActionBar_progressBarStyle = 24; public static final int ActionBar_subtitle = 25; public static final int ActionBar_subtitleTextStyle = 26; public static final int ActionBar_title = 27; public static final int ActionBar_titleTextStyle = 28; public static final int[] ActionMenuItemView = new int[]{16843071}; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = new int[0]; public static final int[] ActionMode = new int[]{R.attr.background, R.attr.backgroundSplit, R.attr.closeItemLayout, R.attr.height, R.attr.subtitleTextStyle, R.attr.titleTextStyle}; public static final int ActionMode_background = 0; public static final int ActionMode_backgroundSplit = 1; public static final int ActionMode_closeItemLayout = 2; public static final int ActionMode_height = 3; public static final int ActionMode_subtitleTextStyle = 4; public static final int ActionMode_titleTextStyle = 5; public static final int[] ActivityChooserView = new int[]{R.attr.expandActivityOverflowButtonDrawable, R.attr.initialActivityCount}; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; public static final int ActivityChooserView_initialActivityCount = 1; public static final int[] AlertDialog = new int[]{16842994, R.attr.buttonIconDimen, R.attr.buttonPanelSideLayout, R.attr.listItemLayout, R.attr.listLayout, R.attr.multiChoiceItemLayout, R.attr.showTitle, R.attr.singleChoiceItemLayout}; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonIconDimen = 1; public static final int AlertDialog_buttonPanelSideLayout = 2; public static final int AlertDialog_listItemLayout = 3; public static final int AlertDialog_listLayout = 4; public static final int AlertDialog_multiChoiceItemLayout = 5; public static final int AlertDialog_showTitle = 6; public static final int AlertDialog_singleChoiceItemLayout = 7; public static final int[] AmountField = new int[]{16842901, 16842904, 16843692}; public static final int AmountField_android_fontFamily = 2; public static final int AmountField_android_textColor = 1; public static final int AmountField_android_textSize = 0; public static final int[] AmountView = new int[]{16842804, 16842901, 16842903, 16842904, 16842927, 16843087, 16843105, 16843106, 16843107, 16843108, 16843692, R.attr.animateResizing, R.attr.animationDuration, R.attr.defaultCharacters}; public static final int AmountView_android_fontFamily = 10; public static final int AmountView_android_gravity = 4; public static final int AmountView_android_shadowColor = 6; public static final int AmountView_android_shadowDx = 7; public static final int AmountView_android_shadowDy = 8; public static final int AmountView_android_shadowRadius = 9; public static final int AmountView_android_text = 5; public static final int AmountView_android_textAppearance = 0; public static final int AmountView_android_textColor = 3; public static final int AmountView_android_textSize = 1; public static final int AmountView_android_textStyle = 2; public static final int AmountView_animateResizing = 11; public static final int AmountView_animationDuration = 12; public static final int AmountView_defaultCharacters = 13; public static final int[] AnimatedStateListDrawableCompat = new int[]{16843036, 16843156, 16843157, 16843158, 16843532, 16843533}; public static final int AnimatedStateListDrawableCompat_android_constantSize = 3; public static final int AnimatedStateListDrawableCompat_android_dither = 0; public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4; public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5; public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2; public static final int AnimatedStateListDrawableCompat_android_visible = 1; public static final int[] AnimatedStateListDrawableItem = new int[]{16842960, 16843161}; public static final int AnimatedStateListDrawableItem_android_drawable = 1; public static final int AnimatedStateListDrawableItem_android_id = 0; public static final int[] AnimatedStateListDrawableTransition = new int[]{16843161, 16843849, 16843850, 16843851}; public static final int AnimatedStateListDrawableTransition_android_drawable = 0; public static final int AnimatedStateListDrawableTransition_android_fromId = 2; public static final int AnimatedStateListDrawableTransition_android_reversible = 3; public static final int AnimatedStateListDrawableTransition_android_toId = 1; public static final int[] AppBarLayout = new int[]{16842964, 16843919, 16844096, R.attr.elevation, R.attr.expanded, R.attr.liftOnScroll}; public static final int[] AppBarLayoutStates = new int[]{R.attr.state_collapsed, R.attr.state_collapsible, R.attr.state_liftable, R.attr.state_lifted}; public static final int AppBarLayoutStates_state_collapsed = 0; public static final int AppBarLayoutStates_state_collapsible = 1; public static final int AppBarLayoutStates_state_liftable = 2; public static final int AppBarLayoutStates_state_lifted = 3; public static final int[] AppBarLayout_Layout = new int[]{R.attr.layout_scrollFlags, R.attr.layout_scrollInterpolator}; public static final int AppBarLayout_Layout_layout_scrollFlags = 0; public static final int AppBarLayout_Layout_layout_scrollInterpolator = 1; public static final int AppBarLayout_android_background = 0; public static final int AppBarLayout_android_keyboardNavigationCluster = 2; public static final int AppBarLayout_android_touchscreenBlocksFocus = 1; public static final int AppBarLayout_elevation = 3; public static final int AppBarLayout_expanded = 4; public static final int AppBarLayout_liftOnScroll = 5; public static final int[] AppCompatImageView = new int[]{16843033, R.attr.srcCompat, R.attr.tint, R.attr.tintMode}; public static final int AppCompatImageView_android_src = 0; public static final int AppCompatImageView_srcCompat = 1; public static final int AppCompatImageView_tint = 2; public static final int AppCompatImageView_tintMode = 3; public static final int[] AppCompatSeekBar = new int[]{16843074, R.attr.tickMark, R.attr.tickMarkTint, R.attr.tickMarkTintMode}; public static final int AppCompatSeekBar_android_thumb = 0; public static final int AppCompatSeekBar_tickMark = 1; public static final int AppCompatSeekBar_tickMarkTint = 2; public static final int AppCompatSeekBar_tickMarkTintMode = 3; public static final int[] AppCompatTextHelper = new int[]{16842804, 16843117, 16843118, 16843119, 16843120, 16843666, 16843667}; public static final int AppCompatTextHelper_android_drawableBottom = 2; public static final int AppCompatTextHelper_android_drawableEnd = 6; public static final int AppCompatTextHelper_android_drawableLeft = 3; public static final int AppCompatTextHelper_android_drawableRight = 4; public static final int AppCompatTextHelper_android_drawableStart = 5; public static final int AppCompatTextHelper_android_drawableTop = 1; public static final int AppCompatTextHelper_android_textAppearance = 0; public static final int[] AppCompatTextView = new int[]{16842804, R.attr.autoSizeMaxTextSize, R.attr.autoSizeMinTextSize, R.attr.autoSizePresetSizes, R.attr.autoSizeStepGranularity, R.attr.autoSizeTextType, R.attr.firstBaselineToTopHeight, R.attr.fontFamily, R.attr.lastBaselineToBottomHeight, R.attr.lineHeight, R.attr.textAllCaps}; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_autoSizeMaxTextSize = 1; public static final int AppCompatTextView_autoSizeMinTextSize = 2; public static final int AppCompatTextView_autoSizePresetSizes = 3; public static final int AppCompatTextView_autoSizeStepGranularity = 4; public static final int AppCompatTextView_autoSizeTextType = 5; public static final int AppCompatTextView_firstBaselineToTopHeight = 6; public static final int AppCompatTextView_fontFamily = 7; public static final int AppCompatTextView_lastBaselineToBottomHeight = 8; public static final int AppCompatTextView_lineHeight = 9; public static final int AppCompatTextView_textAllCaps = 10; public static final int[] AppCompatTheme = new int[]{16842839, 16842926, R.attr.actionBarDivider, R.attr.actionBarItemBackground, R.attr.actionBarPopupTheme, R.attr.actionBarSize, R.attr.actionBarSplitStyle, R.attr.actionBarStyle, R.attr.actionBarTabBarStyle, R.attr.actionBarTabStyle, R.attr.actionBarTabTextStyle, R.attr.actionBarTheme, R.attr.actionBarWidgetTheme, R.attr.actionButtonStyle, R.attr.actionDropDownStyle, R.attr.actionMenuTextAppearance, R.attr.actionMenuTextColor, R.attr.actionModeBackground, R.attr.actionModeCloseButtonStyle, R.attr.actionModeCloseDrawable, R.attr.actionModeCopyDrawable, R.attr.actionModeCutDrawable, R.attr.actionModeFindDrawable, R.attr.actionModePasteDrawable, R.attr.actionModePopupWindowStyle, R.attr.actionModeSelectAllDrawable, R.attr.actionModeShareDrawable, R.attr.actionModeSplitBackground, R.attr.actionModeStyle, R.attr.actionModeWebSearchDrawable, R.attr.actionOverflowButtonStyle, R.attr.actionOverflowMenuStyle, R.attr.activityChooserViewStyle, R.attr.alertDialogButtonGroupStyle, R.attr.alertDialogCenterButtons, R.attr.alertDialogStyle, R.attr.alertDialogTheme, R.attr.autoCompleteTextViewStyle, R.attr.borderlessButtonStyle, R.attr.buttonBarButtonStyle, R.attr.buttonBarNegativeButtonStyle, R.attr.buttonBarNeutralButtonStyle, R.attr.buttonBarPositiveButtonStyle, R.attr.buttonBarStyle, R.attr.buttonStyle, R.attr.buttonStyleSmall, R.attr.checkboxStyle, R.attr.checkedTextViewStyle, R.attr.colorAccent, R.attr.colorBackgroundFloating, R.attr.colorButtonNormal, R.attr.colorControlActivated, R.attr.colorControlHighlight, R.attr.colorControlNormal, R.attr.colorError, R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.colorSwitchThumbNormal, R.attr.controlBackground, R.attr.dialogCornerRadius, R.attr.dialogPreferredPadding, R.attr.dialogTheme, R.attr.dividerHorizontal, R.attr.dividerVertical, R.attr.dropDownListViewStyle, R.attr.dropdownListPreferredItemHeight, R.attr.editTextBackground, R.attr.editTextColor, R.attr.editTextStyle, R.attr.homeAsUpIndicator, R.attr.imageButtonStyle, R.attr.listChoiceBackgroundIndicator, R.attr.listDividerAlertDialog, R.attr.listMenuViewStyle, R.attr.listPopupWindowStyle, R.attr.listPreferredItemHeight, R.attr.listPreferredItemHeightLarge, R.attr.listPreferredItemHeightSmall, R.attr.listPreferredItemPaddingLeft, R.attr.listPreferredItemPaddingRight, R.attr.panelBackground, R.attr.panelMenuListTheme, R.attr.panelMenuListWidth, R.attr.popupMenuStyle, R.attr.popupWindowStyle, R.attr.radioButtonStyle, R.attr.ratingBarStyle, R.attr.ratingBarStyleIndicator, R.attr.ratingBarStyleSmall, R.attr.searchViewStyle, R.attr.seekBarStyle, R.attr.selectableItemBackground, R.attr.selectableItemBackgroundBorderless, R.attr.spinnerDropDownItemStyle, R.attr.spinnerStyle, R.attr.switchStyle, R.attr.textAppearanceLargePopupMenu, R.attr.textAppearanceListItem, R.attr.textAppearanceListItemSecondary, R.attr.textAppearanceListItemSmall, R.attr.textAppearancePopupMenuHeader, R.attr.textAppearanceSearchResultSubtitle, R.attr.textAppearanceSearchResultTitle, R.attr.textAppearanceSmallPopupMenu, R.attr.textColorAlertDialogListItem, R.attr.textColorSearchUrl, R.attr.toolbarNavigationButtonStyle, R.attr.toolbarStyle, R.attr.tooltipForegroundColor, R.attr.tooltipFrameBackground, R.attr.viewInflaterClass, R.attr.windowActionBar, R.attr.windowActionBarOverlay, R.attr.windowActionModeOverlay, R.attr.windowFixedHeightMajor, R.attr.windowFixedHeightMinor, R.attr.windowFixedWidthMajor, R.attr.windowFixedWidthMinor, R.attr.windowMinWidthMajor, R.attr.windowMinWidthMinor, R.attr.windowNoTitle}; public static final int AppCompatTheme_actionBarDivider = 2; public static final int AppCompatTheme_actionBarItemBackground = 3; public static final int AppCompatTheme_actionBarPopupTheme = 4; public static final int AppCompatTheme_actionBarSize = 5; public static final int AppCompatTheme_actionBarSplitStyle = 6; public static final int AppCompatTheme_actionBarStyle = 7; public static final int AppCompatTheme_actionBarTabBarStyle = 8; public static final int AppCompatTheme_actionBarTabStyle = 9; public static final int AppCompatTheme_actionBarTabTextStyle = 10; public static final int AppCompatTheme_actionBarTheme = 11; public static final int AppCompatTheme_actionBarWidgetTheme = 12; public static final int AppCompatTheme_actionButtonStyle = 13; public static final int AppCompatTheme_actionDropDownStyle = 14; public static final int AppCompatTheme_actionMenuTextAppearance = 15; public static final int AppCompatTheme_actionMenuTextColor = 16; public static final int AppCompatTheme_actionModeBackground = 17; public static final int AppCompatTheme_actionModeCloseButtonStyle = 18; public static final int AppCompatTheme_actionModeCloseDrawable = 19; public static final int AppCompatTheme_actionModeCopyDrawable = 20; public static final int AppCompatTheme_actionModeCutDrawable = 21; public static final int AppCompatTheme_actionModeFindDrawable = 22; public static final int AppCompatTheme_actionModePasteDrawable = 23; public static final int AppCompatTheme_actionModePopupWindowStyle = 24; public static final int AppCompatTheme_actionModeSelectAllDrawable = 25; public static final int AppCompatTheme_actionModeShareDrawable = 26; public static final int AppCompatTheme_actionModeSplitBackground = 27; public static final int AppCompatTheme_actionModeStyle = 28; public static final int AppCompatTheme_actionModeWebSearchDrawable = 29; public static final int AppCompatTheme_actionOverflowButtonStyle = 30; public static final int AppCompatTheme_actionOverflowMenuStyle = 31; public static final int AppCompatTheme_activityChooserViewStyle = 32; public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33; public static final int AppCompatTheme_alertDialogCenterButtons = 34; public static final int AppCompatTheme_alertDialogStyle = 35; public static final int AppCompatTheme_alertDialogTheme = 36; public static final int AppCompatTheme_android_windowAnimationStyle = 1; public static final int AppCompatTheme_android_windowIsFloating = 0; public static final int AppCompatTheme_autoCompleteTextViewStyle = 37; public static final int AppCompatTheme_borderlessButtonStyle = 38; public static final int AppCompatTheme_buttonBarButtonStyle = 39; public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40; public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41; public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42; public static final int AppCompatTheme_buttonBarStyle = 43; public static final int AppCompatTheme_buttonStyle = 44; public static final int AppCompatTheme_buttonStyleSmall = 45; public static final int AppCompatTheme_checkboxStyle = 46; public static final int AppCompatTheme_checkedTextViewStyle = 47; public static final int AppCompatTheme_colorAccent = 48; public static final int AppCompatTheme_colorBackgroundFloating = 49; public static final int AppCompatTheme_colorButtonNormal = 50; public static final int AppCompatTheme_colorControlActivated = 51; public static final int AppCompatTheme_colorControlHighlight = 52; public static final int AppCompatTheme_colorControlNormal = 53; public static final int AppCompatTheme_colorError = 54; public static final int AppCompatTheme_colorPrimary = 55; public static final int AppCompatTheme_colorPrimaryDark = 56; public static final int AppCompatTheme_colorSwitchThumbNormal = 57; public static final int AppCompatTheme_controlBackground = 58; public static final int AppCompatTheme_dialogCornerRadius = 59; public static final int AppCompatTheme_dialogPreferredPadding = 60; public static final int AppCompatTheme_dialogTheme = 61; public static final int AppCompatTheme_dividerHorizontal = 62; public static final int AppCompatTheme_dividerVertical = 63; public static final int AppCompatTheme_dropDownListViewStyle = 64; public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65; public static final int AppCompatTheme_editTextBackground = 66; public static final int AppCompatTheme_editTextColor = 67; public static final int AppCompatTheme_editTextStyle = 68; public static final int AppCompatTheme_homeAsUpIndicator = 69; public static final int AppCompatTheme_imageButtonStyle = 70; public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71; public static final int AppCompatTheme_listDividerAlertDialog = 72; public static final int AppCompatTheme_listMenuViewStyle = 73; public static final int AppCompatTheme_listPopupWindowStyle = 74; public static final int AppCompatTheme_listPreferredItemHeight = 75; public static final int AppCompatTheme_listPreferredItemHeightLarge = 76; public static final int AppCompatTheme_listPreferredItemHeightSmall = 77; public static final int AppCompatTheme_listPreferredItemPaddingLeft = 78; public static final int AppCompatTheme_listPreferredItemPaddingRight = 79; public static final int AppCompatTheme_panelBackground = 80; public static final int AppCompatTheme_panelMenuListTheme = 81; public static final int AppCompatTheme_panelMenuListWidth = 82; public static final int AppCompatTheme_popupMenuStyle = 83; public static final int AppCompatTheme_popupWindowStyle = 84; public static final int AppCompatTheme_radioButtonStyle = 85; public static final int AppCompatTheme_ratingBarStyle = 86; public static final int AppCompatTheme_ratingBarStyleIndicator = 87; public static final int AppCompatTheme_ratingBarStyleSmall = 88; public static final int AppCompatTheme_searchViewStyle = 89; public static final int AppCompatTheme_seekBarStyle = 90; public static final int AppCompatTheme_selectableItemBackground = 91; public static final int AppCompatTheme_selectableItemBackgroundBorderless = 92; public static final int AppCompatTheme_spinnerDropDownItemStyle = 93; public static final int AppCompatTheme_spinnerStyle = 94; public static final int AppCompatTheme_switchStyle = 95; public static final int AppCompatTheme_textAppearanceLargePopupMenu = 96; public static final int AppCompatTheme_textAppearanceListItem = 97; public static final int AppCompatTheme_textAppearanceListItemSecondary = 98; public static final int AppCompatTheme_textAppearanceListItemSmall = 99; public static final int AppCompatTheme_textAppearancePopupMenuHeader = 100; public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 101; public static final int AppCompatTheme_textAppearanceSearchResultTitle = 102; public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 103; public static final int AppCompatTheme_textColorAlertDialogListItem = 104; public static final int AppCompatTheme_textColorSearchUrl = 105; public static final int AppCompatTheme_toolbarNavigationButtonStyle = 106; public static final int AppCompatTheme_toolbarStyle = 107; public static final int AppCompatTheme_tooltipForegroundColor = 108; public static final int AppCompatTheme_tooltipFrameBackground = 109; public static final int AppCompatTheme_viewInflaterClass = 110; public static final int AppCompatTheme_windowActionBar = 111; public static final int AppCompatTheme_windowActionBarOverlay = 112; public static final int AppCompatTheme_windowActionModeOverlay = 113; public static final int AppCompatTheme_windowFixedHeightMajor = 114; public static final int AppCompatTheme_windowFixedHeightMinor = 115; public static final int AppCompatTheme_windowFixedWidthMajor = 116; public static final int AppCompatTheme_windowFixedWidthMinor = 117; public static final int AppCompatTheme_windowMinWidthMajor = 118; public static final int AppCompatTheme_windowMinWidthMinor = 119; public static final int AppCompatTheme_windowNoTitle = 120; public static final int[] BottomAppBar = new int[]{R.attr.backgroundTint, R.attr.fabAlignmentMode, R.attr.fabCradleMargin, R.attr.fabCradleRoundedCornerRadius, R.attr.fabCradleVerticalOffset, R.attr.hideOnScroll}; public static final int BottomAppBar_backgroundTint = 0; public static final int BottomAppBar_fabAlignmentMode = 1; public static final int BottomAppBar_fabCradleMargin = 2; public static final int BottomAppBar_fabCradleRoundedCornerRadius = 3; public static final int BottomAppBar_fabCradleVerticalOffset = 4; public static final int BottomAppBar_hideOnScroll = 5; public static final int[] BottomNavigationView = new int[]{R.attr.elevation, R.attr.itemBackground, R.attr.itemHorizontalTranslationEnabled, R.attr.itemIconSize, R.attr.itemIconTint, R.attr.itemTextAppearanceActive, R.attr.itemTextAppearanceInactive, R.attr.itemTextColor, R.attr.labelVisibilityMode, R.attr.menu}; public static final int BottomNavigationView_elevation = 0; public static final int BottomNavigationView_itemBackground = 1; public static final int BottomNavigationView_itemHorizontalTranslationEnabled = 2; public static final int BottomNavigationView_itemIconSize = 3; public static final int BottomNavigationView_itemIconTint = 4; public static final int BottomNavigationView_itemTextAppearanceActive = 5; public static final int BottomNavigationView_itemTextAppearanceInactive = 6; public static final int BottomNavigationView_itemTextColor = 7; public static final int BottomNavigationView_labelVisibilityMode = 8; public static final int BottomNavigationView_menu = 9; public static final int[] BottomSheetBehavior_Layout = new int[]{R.attr.behavior_fitToContents, R.attr.behavior_hideable, R.attr.behavior_peekHeight, R.attr.behavior_skipCollapsed}; public static final int BottomSheetBehavior_Layout_behavior_fitToContents = 0; public static final int BottomSheetBehavior_Layout_behavior_hideable = 1; public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 2; public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 3; public static final int[] ButtonBarLayout = new int[]{R.attr.allowStacking}; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] CardView = new int[]{16843071, 16843072, R.attr.cardBackgroundColor, R.attr.cardCornerRadius, R.attr.cardElevation, R.attr.cardMaxElevation, R.attr.cardPreventCornerOverlap, R.attr.cardUseCompatPadding, R.attr.contentPadding, R.attr.contentPaddingBottom, R.attr.contentPaddingLeft, R.attr.contentPaddingRight, R.attr.contentPaddingTop}; public static final int CardView_android_minHeight = 1; public static final int CardView_android_minWidth = 0; public static final int CardView_cardBackgroundColor = 2; public static final int CardView_cardCornerRadius = 3; public static final int CardView_cardElevation = 4; public static final int CardView_cardMaxElevation = 5; public static final int CardView_cardPreventCornerOverlap = 6; public static final int CardView_cardUseCompatPadding = 7; public static final int CardView_contentPadding = 8; public static final int CardView_contentPaddingBottom = 9; public static final int CardView_contentPaddingLeft = 10; public static final int CardView_contentPaddingRight = 11; public static final int CardView_contentPaddingTop = 12; public static final int[] Chip = new int[]{16842804, 16842923, 16843039, 16843087, 16843237, R.attr.checkedIcon, R.attr.checkedIconEnabled, R.attr.checkedIconVisible, R.attr.chipBackgroundColor, R.attr.chipCornerRadius, R.attr.chipEndPadding, R.attr.chipIcon, R.attr.chipIconEnabled, R.attr.chipIconSize, R.attr.chipIconTint, R.attr.chipIconVisible, R.attr.chipMinHeight, R.attr.chipStartPadding, R.attr.chipStrokeColor, R.attr.chipStrokeWidth, R.attr.closeIcon, R.attr.closeIconEnabled, R.attr.closeIconEndPadding, R.attr.closeIconSize, R.attr.closeIconStartPadding, R.attr.closeIconTint, R.attr.closeIconVisible, R.attr.hideMotionSpec, R.attr.iconEndPadding, R.attr.iconStartPadding, R.attr.rippleColor, R.attr.showMotionSpec, R.attr.textEndPadding, R.attr.textStartPadding}; public static final int[] ChipGroup = new int[]{R.attr.checkedChip, R.attr.chipSpacing, R.attr.chipSpacingHorizontal, R.attr.chipSpacingVertical, R.attr.singleLine, R.attr.singleSelection}; public static final int ChipGroup_checkedChip = 0; public static final int ChipGroup_chipSpacing = 1; public static final int ChipGroup_chipSpacingHorizontal = 2; public static final int ChipGroup_chipSpacingVertical = 3; public static final int ChipGroup_singleLine = 4; public static final int ChipGroup_singleSelection = 5; public static final int Chip_android_checkable = 4; public static final int Chip_android_ellipsize = 1; public static final int Chip_android_maxWidth = 2; public static final int Chip_android_text = 3; public static final int Chip_android_textAppearance = 0; public static final int Chip_checkedIcon = 5; public static final int Chip_checkedIconEnabled = 6; public static final int Chip_checkedIconVisible = 7; public static final int Chip_chipBackgroundColor = 8; public static final int Chip_chipCornerRadius = 9; public static final int Chip_chipEndPadding = 10; public static final int Chip_chipIcon = 11; public static final int Chip_chipIconEnabled = 12; public static final int Chip_chipIconSize = 13; public static final int Chip_chipIconTint = 14; public static final int Chip_chipIconVisible = 15; public static final int Chip_chipMinHeight = 16; public static final int Chip_chipStartPadding = 17; public static final int Chip_chipStrokeColor = 18; public static final int Chip_chipStrokeWidth = 19; public static final int Chip_closeIcon = 20; public static final int Chip_closeIconEnabled = 21; public static final int Chip_closeIconEndPadding = 22; public static final int Chip_closeIconSize = 23; public static final int Chip_closeIconStartPadding = 24; public static final int Chip_closeIconTint = 25; public static final int Chip_closeIconVisible = 26; public static final int Chip_hideMotionSpec = 27; public static final int Chip_iconEndPadding = 28; public static final int Chip_iconStartPadding = 29; public static final int Chip_rippleColor = 30; public static final int Chip_showMotionSpec = 31; public static final int Chip_textEndPadding = 32; public static final int Chip_textStartPadding = 33; public static final int[] ClippingLayout = new int[]{R.attr.clippingRadius}; public static final int ClippingLayout_clippingRadius = 0; public static final int[] CollapsingToolbarLayout = new int[]{R.attr.collapsedTitleGravity, R.attr.collapsedTitleTextAppearance, R.attr.contentScrim, R.attr.expandedTitleGravity, R.attr.expandedTitleMargin, R.attr.expandedTitleMarginBottom, R.attr.expandedTitleMarginEnd, R.attr.expandedTitleMarginStart, R.attr.expandedTitleMarginTop, R.attr.expandedTitleTextAppearance, R.attr.scrimAnimationDuration, R.attr.scrimVisibleHeightTrigger, R.attr.statusBarScrim, R.attr.title, R.attr.titleEnabled, R.attr.toolbarId}; public static final int[] CollapsingToolbarLayout_Layout = new int[]{R.attr.layout_collapseMode, R.attr.layout_collapseParallaxMultiplier}; public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0; public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1; public static final int CollapsingToolbarLayout_collapsedTitleGravity = 0; public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 1; public static final int CollapsingToolbarLayout_contentScrim = 2; public static final int CollapsingToolbarLayout_expandedTitleGravity = 3; public static final int CollapsingToolbarLayout_expandedTitleMargin = 4; public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5; public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 6; public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 7; public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 8; public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 9; public static final int CollapsingToolbarLayout_scrimAnimationDuration = 10; public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11; public static final int CollapsingToolbarLayout_statusBarScrim = 12; public static final int CollapsingToolbarLayout_title = 13; public static final int CollapsingToolbarLayout_titleEnabled = 14; public static final int CollapsingToolbarLayout_toolbarId = 15; public static final int[] ColorStateListItem = new int[]{16843173, 16843551, R.attr.alpha}; public static final int ColorStateListItem_alpha = 2; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_android_color = 0; public static final int[] CompoundButton = new int[]{16843015, R.attr.buttonTint, R.attr.buttonTintMode}; 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[] ConfirmButtonView = new int[]{R.attr.buttonBackground, R.attr.buttonElevation, R.attr.buttonFontFamily, R.attr.buttonImageSrc, R.attr.buttonImageSrcCompat, R.attr.buttonLeftImageSrc, R.attr.buttonText, R.attr.buttonTextAllCaps, R.attr.buttonTextColor, R.attr.buttonTextSize, R.attr.buttonTextStyle, R.attr.buttonTranslationZ, R.attr.maxButtonHeight, R.attr.maxButtonHeightTablet, R.attr.maxButtonWidth, R.attr.maxButtonWidthTablet, R.attr.showTextUnderProgress}; public static final int ConfirmButtonView_buttonBackground = 0; public static final int ConfirmButtonView_buttonElevation = 1; public static final int ConfirmButtonView_buttonFontFamily = 2; public static final int ConfirmButtonView_buttonImageSrc = 3; public static final int ConfirmButtonView_buttonImageSrcCompat = 4; public static final int ConfirmButtonView_buttonLeftImageSrc = 5; public static final int ConfirmButtonView_buttonText = 6; public static final int ConfirmButtonView_buttonTextAllCaps = 7; public static final int ConfirmButtonView_buttonTextColor = 8; public static final int ConfirmButtonView_buttonTextSize = 9; public static final int ConfirmButtonView_buttonTextStyle = 10; public static final int ConfirmButtonView_buttonTranslationZ = 11; public static final int ConfirmButtonView_maxButtonHeight = 12; public static final int ConfirmButtonView_maxButtonHeightTablet = 13; public static final int ConfirmButtonView_maxButtonWidth = 14; public static final int ConfirmButtonView_maxButtonWidthTablet = 15; public static final int ConfirmButtonView_showTextUnderProgress = 16; public static final int[] ConstraintLayout_Layout = new int[]{16842948, 16843039, 16843040, 16843071, 16843072, R.attr.barrierAllowsGoneWidgets, R.attr.barrierDirection, R.attr.chainUseRtl, R.attr.constraintSet, R.attr.constraint_referenced_ids, R.attr.layout_constrainedHeight, R.attr.layout_constrainedWidth, R.attr.layout_constraintBaseline_creator, R.attr.layout_constraintBaseline_toBaselineOf, R.attr.layout_constraintBottom_creator, R.attr.layout_constraintBottom_toBottomOf, R.attr.layout_constraintBottom_toTopOf, R.attr.layout_constraintCircle, R.attr.layout_constraintCircleAngle, R.attr.layout_constraintCircleRadius, R.attr.layout_constraintDimensionRatio, R.attr.layout_constraintEnd_toEndOf, R.attr.layout_constraintEnd_toStartOf, R.attr.layout_constraintGuide_begin, R.attr.layout_constraintGuide_end, R.attr.layout_constraintGuide_percent, R.attr.layout_constraintHeight_default, R.attr.layout_constraintHeight_max, R.attr.layout_constraintHeight_min, R.attr.layout_constraintHeight_percent, R.attr.layout_constraintHorizontal_bias, R.attr.layout_constraintHorizontal_chainStyle, R.attr.layout_constraintHorizontal_weight, R.attr.layout_constraintLeft_creator, R.attr.layout_constraintLeft_toLeftOf, R.attr.layout_constraintLeft_toRightOf, R.attr.layout_constraintRight_creator, R.attr.layout_constraintRight_toLeftOf, R.attr.layout_constraintRight_toRightOf, R.attr.layout_constraintStart_toEndOf, R.attr.layout_constraintStart_toStartOf, R.attr.layout_constraintTop_creator, R.attr.layout_constraintTop_toBottomOf, R.attr.layout_constraintTop_toTopOf, R.attr.layout_constraintVertical_bias, R.attr.layout_constraintVertical_chainStyle, R.attr.layout_constraintVertical_weight, R.attr.layout_constraintWidth_default, R.attr.layout_constraintWidth_max, R.attr.layout_constraintWidth_min, R.attr.layout_constraintWidth_percent, R.attr.layout_editor_absoluteX, R.attr.layout_editor_absoluteY, R.attr.layout_goneMarginBottom, R.attr.layout_goneMarginEnd, R.attr.layout_goneMarginLeft, R.attr.layout_goneMarginRight, R.attr.layout_goneMarginStart, R.attr.layout_goneMarginTop, R.attr.layout_optimizationLevel}; public static final int ConstraintLayout_Layout_android_maxHeight = 2; public static final int ConstraintLayout_Layout_android_maxWidth = 1; public static final int ConstraintLayout_Layout_android_minHeight = 4; public static final int ConstraintLayout_Layout_android_minWidth = 3; public static final int ConstraintLayout_Layout_android_orientation = 0; public static final int ConstraintLayout_Layout_barrierAllowsGoneWidgets = 5; public static final int ConstraintLayout_Layout_barrierDirection = 6; public static final int ConstraintLayout_Layout_chainUseRtl = 7; public static final int ConstraintLayout_Layout_constraintSet = 8; public static final int ConstraintLayout_Layout_constraint_referenced_ids = 9; public static final int ConstraintLayout_Layout_layout_constrainedHeight = 10; public static final int ConstraintLayout_Layout_layout_constrainedWidth = 11; public static final int ConstraintLayout_Layout_layout_constraintBaseline_creator = 12; public static final int ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf = 13; public static final int ConstraintLayout_Layout_layout_constraintBottom_creator = 14; public static final int ConstraintLayout_Layout_layout_constraintBottom_toBottomOf = 15; public static final int ConstraintLayout_Layout_layout_constraintBottom_toTopOf = 16; public static final int ConstraintLayout_Layout_layout_constraintCircle = 17; public static final int ConstraintLayout_Layout_layout_constraintCircleAngle = 18; public static final int ConstraintLayout_Layout_layout_constraintCircleRadius = 19; public static final int ConstraintLayout_Layout_layout_constraintDimensionRatio = 20; public static final int ConstraintLayout_Layout_layout_constraintEnd_toEndOf = 21; public static final int ConstraintLayout_Layout_layout_constraintEnd_toStartOf = 22; public static final int ConstraintLayout_Layout_layout_constraintGuide_begin = 23; public static final int ConstraintLayout_Layout_layout_constraintGuide_end = 24; public static final int ConstraintLayout_Layout_layout_constraintGuide_percent = 25; public static final int ConstraintLayout_Layout_layout_constraintHeight_default = 26; public static final int ConstraintLayout_Layout_layout_constraintHeight_max = 27; public static final int ConstraintLayout_Layout_layout_constraintHeight_min = 28; public static final int ConstraintLayout_Layout_layout_constraintHeight_percent = 29; public static final int ConstraintLayout_Layout_layout_constraintHorizontal_bias = 30; public static final int ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle = 31; public static final int ConstraintLayout_Layout_layout_constraintHorizontal_weight = 32; public static final int ConstraintLayout_Layout_layout_constraintLeft_creator = 33; public static final int ConstraintLayout_Layout_layout_constraintLeft_toLeftOf = 34; public static final int ConstraintLayout_Layout_layout_constraintLeft_toRightOf = 35; public static final int ConstraintLayout_Layout_layout_constraintRight_creator = 36; public static final int ConstraintLayout_Layout_layout_constraintRight_toLeftOf = 37; public static final int ConstraintLayout_Layout_layout_constraintRight_toRightOf = 38; public static final int ConstraintLayout_Layout_layout_constraintStart_toEndOf = 39; public static final int ConstraintLayout_Layout_layout_constraintStart_toStartOf = 40; public static final int ConstraintLayout_Layout_layout_constraintTop_creator = 41; public static final int ConstraintLayout_Layout_layout_constraintTop_toBottomOf = 42; public static final int ConstraintLayout_Layout_layout_constraintTop_toTopOf = 43; public static final int ConstraintLayout_Layout_layout_constraintVertical_bias = 44; public static final int ConstraintLayout_Layout_layout_constraintVertical_chainStyle = 45; public static final int ConstraintLayout_Layout_layout_constraintVertical_weight = 46; public static final int ConstraintLayout_Layout_layout_constraintWidth_default = 47; public static final int ConstraintLayout_Layout_layout_constraintWidth_max = 48; public static final int ConstraintLayout_Layout_layout_constraintWidth_min = 49; public static final int ConstraintLayout_Layout_layout_constraintWidth_percent = 50; public static final int ConstraintLayout_Layout_layout_editor_absoluteX = 51; public static final int ConstraintLayout_Layout_layout_editor_absoluteY = 52; public static final int ConstraintLayout_Layout_layout_goneMarginBottom = 53; public static final int ConstraintLayout_Layout_layout_goneMarginEnd = 54; public static final int ConstraintLayout_Layout_layout_goneMarginLeft = 55; public static final int ConstraintLayout_Layout_layout_goneMarginRight = 56; public static final int ConstraintLayout_Layout_layout_goneMarginStart = 57; public static final int ConstraintLayout_Layout_layout_goneMarginTop = 58; public static final int ConstraintLayout_Layout_layout_optimizationLevel = 59; public static final int[] ConstraintLayout_placeholder = new int[]{R.attr.content, R.attr.emptyVisibility}; public static final int ConstraintLayout_placeholder_content = 0; public static final int ConstraintLayout_placeholder_emptyVisibility = 1; public static final int[] ConstraintSet = new int[]{16842948, 16842960, 16842972, 16842996, 16842997, 16842999, 16843000, 16843001, 16843002, 16843039, 16843040, 16843071, 16843072, 16843551, 16843552, 16843553, 16843554, 16843555, 16843556, 16843557, 16843558, 16843559, 16843560, 16843701, 16843702, 16843770, 16843840, R.attr.barrierAllowsGoneWidgets, R.attr.barrierDirection, R.attr.chainUseRtl, R.attr.constraint_referenced_ids, R.attr.layout_constrainedHeight, R.attr.layout_constrainedWidth, R.attr.layout_constraintBaseline_creator, R.attr.layout_constraintBaseline_toBaselineOf, R.attr.layout_constraintBottom_creator, R.attr.layout_constraintBottom_toBottomOf, R.attr.layout_constraintBottom_toTopOf, R.attr.layout_constraintCircle, R.attr.layout_constraintCircleAngle, R.attr.layout_constraintCircleRadius, R.attr.layout_constraintDimensionRatio, R.attr.layout_constraintEnd_toEndOf, R.attr.layout_constraintEnd_toStartOf, R.attr.layout_constraintGuide_begin, R.attr.layout_constraintGuide_end, R.attr.layout_constraintGuide_percent, R.attr.layout_constraintHeight_default, R.attr.layout_constraintHeight_max, R.attr.layout_constraintHeight_min, R.attr.layout_constraintHeight_percent, R.attr.layout_constraintHorizontal_bias, R.attr.layout_constraintHorizontal_chainStyle, R.attr.layout_constraintHorizontal_weight, R.attr.layout_constraintLeft_creator, R.attr.layout_constraintLeft_toLeftOf, R.attr.layout_constraintLeft_toRightOf, R.attr.layout_constraintRight_creator, R.attr.layout_constraintRight_toLeftOf, R.attr.layout_constraintRight_toRightOf, R.attr.layout_constraintStart_toEndOf, R.attr.layout_constraintStart_toStartOf, R.attr.layout_constraintTop_creator, R.attr.layout_constraintTop_toBottomOf, R.attr.layout_constraintTop_toTopOf, R.attr.layout_constraintVertical_bias, R.attr.layout_constraintVertical_chainStyle, R.attr.layout_constraintVertical_weight, R.attr.layout_constraintWidth_default, R.attr.layout_constraintWidth_max, R.attr.layout_constraintWidth_min, R.attr.layout_constraintWidth_percent, R.attr.layout_editor_absoluteX, R.attr.layout_editor_absoluteY, R.attr.layout_goneMarginBottom, R.attr.layout_goneMarginEnd, R.attr.layout_goneMarginLeft, R.attr.layout_goneMarginRight, R.attr.layout_goneMarginStart, R.attr.layout_goneMarginTop}; public static final int ConstraintSet_android_alpha = 13; public static final int ConstraintSet_android_elevation = 26; public static final int ConstraintSet_android_id = 1; public static final int ConstraintSet_android_layout_height = 4; public static final int ConstraintSet_android_layout_marginBottom = 8; public static final int ConstraintSet_android_layout_marginEnd = 24; public static final int ConstraintSet_android_layout_marginLeft = 5; public static final int ConstraintSet_android_layout_marginRight = 7; public static final int ConstraintSet_android_layout_marginStart = 23; public static final int ConstraintSet_android_layout_marginTop = 6; public static final int ConstraintSet_android_layout_width = 3; public static final int ConstraintSet_android_maxHeight = 10; public static final int ConstraintSet_android_maxWidth = 9; public static final int ConstraintSet_android_minHeight = 12; public static final int ConstraintSet_android_minWidth = 11; public static final int ConstraintSet_android_orientation = 0; public static final int ConstraintSet_android_rotation = 20; public static final int ConstraintSet_android_rotationX = 21; public static final int ConstraintSet_android_rotationY = 22; public static final int ConstraintSet_android_scaleX = 18; public static final int ConstraintSet_android_scaleY = 19; public static final int ConstraintSet_android_transformPivotX = 14; public static final int ConstraintSet_android_transformPivotY = 15; public static final int ConstraintSet_android_translationX = 16; public static final int ConstraintSet_android_translationY = 17; public static final int ConstraintSet_android_translationZ = 25; public static final int ConstraintSet_android_visibility = 2; public static final int ConstraintSet_barrierAllowsGoneWidgets = 27; public static final int ConstraintSet_barrierDirection = 28; public static final int ConstraintSet_chainUseRtl = 29; public static final int ConstraintSet_constraint_referenced_ids = 30; public static final int ConstraintSet_layout_constrainedHeight = 31; public static final int ConstraintSet_layout_constrainedWidth = 32; public static final int ConstraintSet_layout_constraintBaseline_creator = 33; public static final int ConstraintSet_layout_constraintBaseline_toBaselineOf = 34; public static final int ConstraintSet_layout_constraintBottom_creator = 35; public static final int ConstraintSet_layout_constraintBottom_toBottomOf = 36; public static final int ConstraintSet_layout_constraintBottom_toTopOf = 37; public static final int ConstraintSet_layout_constraintCircle = 38; public static final int ConstraintSet_layout_constraintCircleAngle = 39; public static final int ConstraintSet_layout_constraintCircleRadius = 40; public static final int ConstraintSet_layout_constraintDimensionRatio = 41; public static final int ConstraintSet_layout_constraintEnd_toEndOf = 42; public static final int ConstraintSet_layout_constraintEnd_toStartOf = 43; public static final int ConstraintSet_layout_constraintGuide_begin = 44; public static final int ConstraintSet_layout_constraintGuide_end = 45; public static final int ConstraintSet_layout_constraintGuide_percent = 46; public static final int ConstraintSet_layout_constraintHeight_default = 47; public static final int ConstraintSet_layout_constraintHeight_max = 48; public static final int ConstraintSet_layout_constraintHeight_min = 49; public static final int ConstraintSet_layout_constraintHeight_percent = 50; public static final int ConstraintSet_layout_constraintHorizontal_bias = 51; public static final int ConstraintSet_layout_constraintHorizontal_chainStyle = 52; public static final int ConstraintSet_layout_constraintHorizontal_weight = 53; public static final int ConstraintSet_layout_constraintLeft_creator = 54; public static final int ConstraintSet_layout_constraintLeft_toLeftOf = 55; public static final int ConstraintSet_layout_constraintLeft_toRightOf = 56; public static final int ConstraintSet_layout_constraintRight_creator = 57; public static final int ConstraintSet_layout_constraintRight_toLeftOf = 58; public static final int ConstraintSet_layout_constraintRight_toRightOf = 59; public static final int ConstraintSet_layout_constraintStart_toEndOf = 60; public static final int ConstraintSet_layout_constraintStart_toStartOf = 61; public static final int ConstraintSet_layout_constraintTop_creator = 62; public static final int ConstraintSet_layout_constraintTop_toBottomOf = 63; public static final int ConstraintSet_layout_constraintTop_toTopOf = 64; public static final int ConstraintSet_layout_constraintVertical_bias = 65; public static final int ConstraintSet_layout_constraintVertical_chainStyle = 66; public static final int ConstraintSet_layout_constraintVertical_weight = 67; public static final int ConstraintSet_layout_constraintWidth_default = 68; public static final int ConstraintSet_layout_constraintWidth_max = 69; public static final int ConstraintSet_layout_constraintWidth_min = 70; public static final int ConstraintSet_layout_constraintWidth_percent = 71; public static final int ConstraintSet_layout_editor_absoluteX = 72; public static final int ConstraintSet_layout_editor_absoluteY = 73; public static final int ConstraintSet_layout_goneMarginBottom = 74; public static final int ConstraintSet_layout_goneMarginEnd = 75; public static final int ConstraintSet_layout_goneMarginLeft = 76; public static final int ConstraintSet_layout_goneMarginRight = 77; public static final int ConstraintSet_layout_goneMarginStart = 78; public static final int ConstraintSet_layout_goneMarginTop = 79; public static final int[] CoordinatorLayout = new int[]{R.attr.keylines, R.attr.statusBarBackground}; public static final int[] CoordinatorLayout_Layout = new int[]{16842931, R.attr.layout_anchor, R.attr.layout_anchorGravity, R.attr.layout_behavior, R.attr.layout_dodgeInsetEdges, R.attr.layout_insetEdge, R.attr.layout_keyline}; public static final int CoordinatorLayout_Layout_android_layout_gravity = 0; public static final int CoordinatorLayout_Layout_layout_anchor = 1; public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2; public static final int CoordinatorLayout_Layout_layout_behavior = 3; public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; public static final int CoordinatorLayout_Layout_layout_insetEdge = 5; public static final int CoordinatorLayout_Layout_layout_keyline = 6; public static final int CoordinatorLayout_keylines = 0; public static final int CoordinatorLayout_statusBarBackground = 1; public static final int[] CounterView = new int[]{R.attr.decorColor, R.attr.decorFont, R.attr.decorSize, R.attr.digitColor, R.attr.digitFont, R.attr.digitSize, R.attr.disableAnimations, R.attr.value}; public static final int CounterView_decorColor = 0; public static final int CounterView_decorFont = 1; public static final int CounterView_decorSize = 2; public static final int CounterView_digitColor = 3; public static final int CounterView_digitFont = 4; public static final int CounterView_digitSize = 5; public static final int CounterView_disableAnimations = 6; public static final int CounterView_value = 7; public static final int[] CustomWalletTheme = new int[]{R.attr.customThemeStyle, R.attr.toolbarTextColorStyle, R.attr.windowTransitionStyle}; public static final int CustomWalletTheme_customThemeStyle = 0; public static final int CustomWalletTheme_toolbarTextColorStyle = 1; public static final int CustomWalletTheme_windowTransitionStyle = 2; public static final int[] DesignTheme = new int[]{R.attr.bottomSheetDialogTheme, R.attr.bottomSheetStyle}; public static final int DesignTheme_bottomSheetDialogTheme = 0; public static final int DesignTheme_bottomSheetStyle = 1; public static final int[] DialogContentLayout = new int[]{R.attr.anchorGravity, R.attr.anchorUseHeight, R.attr.anchorUseWidth, R.attr.anchorX, R.attr.anchorY, R.attr.ignoreAnchor}; public static final int DialogContentLayout_anchorGravity = 0; public static final int DialogContentLayout_anchorUseHeight = 1; public static final int DialogContentLayout_anchorUseWidth = 2; public static final int DialogContentLayout_anchorX = 3; public static final int DialogContentLayout_anchorY = 4; public static final int DialogContentLayout_ignoreAnchor = 5; public static final int[] DrawerArrowToggle = new int[]{R.attr.arrowHeadLength, R.attr.arrowShaftLength, R.attr.barLength, R.attr.color, R.attr.drawableSize, R.attr.gapBetweenBars, R.attr.spinBars, R.attr.thickness}; public static final int DrawerArrowToggle_arrowHeadLength = 0; public static final int DrawerArrowToggle_arrowShaftLength = 1; public static final int DrawerArrowToggle_barLength = 2; public static final int DrawerArrowToggle_color = 3; public static final int DrawerArrowToggle_drawableSize = 4; public static final int DrawerArrowToggle_gapBetweenBars = 5; public static final int DrawerArrowToggle_spinBars = 6; public static final int DrawerArrowToggle_thickness = 7; public static final int[] FloatingActionButton = new int[]{R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.borderWidth, R.attr.elevation, R.attr.fabCustomSize, R.attr.fabSize, R.attr.hideMotionSpec, R.attr.hoveredFocusedTranslationZ, R.attr.maxImageSize, R.attr.pressedTranslationZ, R.attr.rippleColor, R.attr.showMotionSpec, R.attr.useCompatPadding}; public static final int[] FloatingActionButton_Behavior_Layout = new int[]{R.attr.behavior_autoHide}; public static final int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0; public static final int FloatingActionButton_backgroundTint = 0; public static final int FloatingActionButton_backgroundTintMode = 1; public static final int FloatingActionButton_borderWidth = 2; public static final int FloatingActionButton_elevation = 3; public static final int FloatingActionButton_fabCustomSize = 4; public static final int FloatingActionButton_fabSize = 5; public static final int FloatingActionButton_hideMotionSpec = 6; public static final int FloatingActionButton_hoveredFocusedTranslationZ = 7; public static final int FloatingActionButton_maxImageSize = 8; public static final int FloatingActionButton_pressedTranslationZ = 9; public static final int FloatingActionButton_rippleColor = 10; public static final int FloatingActionButton_showMotionSpec = 11; public static final int FloatingActionButton_useCompatPadding = 12; public static final int[] FlowLayout = new int[]{R.attr.itemSpacing, R.attr.lineSpacing}; public static final int FlowLayout_itemSpacing = 0; public static final int FlowLayout_lineSpacing = 1; public static final int[] FontFamily = new int[]{R.attr.fontProviderAuthority, R.attr.fontProviderCerts, R.attr.fontProviderFetchStrategy, R.attr.fontProviderFetchTimeout, R.attr.fontProviderPackage, R.attr.fontProviderQuery}; public static final int[] FontFamilyFont = new int[]{16844082, 16844083, 16844095, 16844143, 16844144, R.attr.font, R.attr.fontStyle, R.attr.fontVariationSettings, R.attr.fontWeight, R.attr.ttcIndex}; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_android_fontVariationSettings = 4; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_android_ttcIndex = 3; public static final int FontFamilyFont_font = 5; public static final int FontFamilyFont_fontStyle = 6; public static final int FontFamilyFont_fontVariationSettings = 7; public static final int FontFamilyFont_fontWeight = 8; public static final int FontFamilyFont_ttcIndex = 9; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] ForegroundLinearLayout = new int[]{16843017, 16843264, R.attr.foregroundInsidePadding}; public static final int ForegroundLinearLayout_android_foreground = 0; public static final int ForegroundLinearLayout_android_foregroundGravity = 1; public static final int ForegroundLinearLayout_foregroundInsidePadding = 2; public static final int[] GradientColor = new int[]{16843165, 16843166, 16843169, 16843170, 16843171, 16843172, 16843265, 16843275, 16844048, 16844049, 16844050, 16844051}; public static final int[] GradientColorItem = new int[]{16843173, 16844052}; public static final int GradientColorItem_android_color = 0; public static final int GradientColorItem_android_offset = 1; public static final int GradientColor_android_centerColor = 7; public static final int GradientColor_android_centerX = 3; public static final int GradientColor_android_centerY = 4; public static final int GradientColor_android_endColor = 1; public static final int GradientColor_android_endX = 10; public static final int GradientColor_android_endY = 11; public static final int GradientColor_android_gradientRadius = 5; public static final int GradientColor_android_startColor = 0; public static final int GradientColor_android_startX = 8; public static final int GradientColor_android_startY = 9; public static final int GradientColor_android_tileMode = 6; public static final int GradientColor_android_type = 2; public static final int[] GridLayout = new int[]{R.attr.alignmentMode, R.attr.columnCount, R.attr.columnOrderPreserved, R.attr.orientation, R.attr.rowCount, R.attr.rowOrderPreserved, R.attr.useDefaultMargins}; public static final int[] GridLayout_Layout = new int[]{16842996, 16842997, 16842998, 16842999, 16843000, 16843001, 16843002, R.attr.layout_column, R.attr.layout_columnSpan, R.attr.layout_columnWeight, R.attr.layout_gravity, R.attr.layout_row, R.attr.layout_rowSpan, R.attr.layout_rowWeight}; public static final int GridLayout_Layout_android_layout_height = 1; public static final int GridLayout_Layout_android_layout_margin = 2; public static final int GridLayout_Layout_android_layout_marginBottom = 6; public static final int GridLayout_Layout_android_layout_marginLeft = 3; public static final int GridLayout_Layout_android_layout_marginRight = 5; public static final int GridLayout_Layout_android_layout_marginTop = 4; public static final int GridLayout_Layout_android_layout_width = 0; public static final int GridLayout_Layout_layout_column = 7; public static final int GridLayout_Layout_layout_columnSpan = 8; public static final int GridLayout_Layout_layout_columnWeight = 9; public static final int GridLayout_Layout_layout_gravity = 10; public static final int GridLayout_Layout_layout_row = 11; public static final int GridLayout_Layout_layout_rowSpan = 12; public static final int GridLayout_Layout_layout_rowWeight = 13; public static final int GridLayout_alignmentMode = 0; public static final int GridLayout_columnCount = 1; public static final int GridLayout_columnOrderPreserved = 2; public static final int GridLayout_orientation = 3; public static final int GridLayout_rowCount = 4; public static final int GridLayout_rowOrderPreserved = 5; public static final int GridLayout_useDefaultMargins = 6; public static final int[] IQ = new int[]{R.attr.colorControlHighlightDark, R.attr.colorControlHighlightDarkKitKat, R.attr.colorControlHighlightKitKat}; public static final int IQ_colorControlHighlightDark = 0; public static final int IQ_colorControlHighlightDarkKitKat = 1; public static final int IQ_colorControlHighlightKitKat = 2; public static final int[] LinearConstraintLayout = new int[]{16842948}; public static final int LinearConstraintLayout_android_orientation = 0; public static final int[] LinearLayoutCompat = new int[]{16842927, 16842948, 16843046, 16843047, 16843048, R.attr.divider, R.attr.dividerPadding, R.attr.measureWithLargestChild, R.attr.showDividers}; public static final int[] LinearLayoutCompat_Layout = new int[]{16842931, 16842996, 16842997, 16843137}; 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 = 6; public static final int LinearLayoutCompat_measureWithLargestChild = 7; public static final int LinearLayoutCompat_showDividers = 8; public static final int[] ListPopupWindow = new int[]{16843436, 16843437}; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] LoadingImageView = new int[]{R.attr.circleCrop, R.attr.imageAspectRatio, R.attr.imageAspectRatioAdjust}; public static final int LoadingImageView_circleCrop = 0; public static final int LoadingImageView_imageAspectRatio = 1; public static final int LoadingImageView_imageAspectRatioAdjust = 2; public static final int[] LottieAnimationView = new int[]{R.attr.lottie_autoPlay, R.attr.lottie_colorFilter, R.attr.lottie_enableMergePathsForKitKatAndAbove, R.attr.lottie_fileName, R.attr.lottie_imageAssetsFolder, R.attr.lottie_loop, R.attr.lottie_progress, R.attr.lottie_rawRes, R.attr.lottie_renderMode, R.attr.lottie_repeatCount, R.attr.lottie_repeatMode, R.attr.lottie_scale, R.attr.lottie_speed, R.attr.lottie_url}; public static final int LottieAnimationView_lottie_autoPlay = 0; public static final int LottieAnimationView_lottie_colorFilter = 1; public static final int LottieAnimationView_lottie_enableMergePathsForKitKatAndAbove = 2; public static final int LottieAnimationView_lottie_fileName = 3; public static final int LottieAnimationView_lottie_imageAssetsFolder = 4; public static final int LottieAnimationView_lottie_loop = 5; public static final int LottieAnimationView_lottie_progress = 6; public static final int LottieAnimationView_lottie_rawRes = 7; public static final int LottieAnimationView_lottie_renderMode = 8; public static final int LottieAnimationView_lottie_repeatCount = 9; public static final int LottieAnimationView_lottie_repeatMode = 10; public static final int LottieAnimationView_lottie_scale = 11; public static final int LottieAnimationView_lottie_speed = 12; public static final int LottieAnimationView_lottie_url = 13; public static final int[] MapAttrs = new int[]{R.attr.ambientEnabled, R.attr.cameraBearing, R.attr.cameraMaxZoomPreference, R.attr.cameraMinZoomPreference, R.attr.cameraTargetLat, R.attr.cameraTargetLng, R.attr.cameraTilt, R.attr.cameraZoom, R.attr.latLngBoundsNorthEastLatitude, R.attr.latLngBoundsNorthEastLongitude, R.attr.latLngBoundsSouthWestLatitude, R.attr.latLngBoundsSouthWestLongitude, R.attr.liteMode, R.attr.mapType, R.attr.uiCompass, R.attr.uiMapToolbar, R.attr.uiRotateGestures, R.attr.uiScrollGestures, R.attr.uiTiltGestures, R.attr.uiZoomControls, R.attr.uiZoomGestures, R.attr.useViewLifecycle, R.attr.zOrderOnTop}; public static final int MapAttrs_ambientEnabled = 0; public static final int MapAttrs_cameraBearing = 1; public static final int MapAttrs_cameraMaxZoomPreference = 2; public static final int MapAttrs_cameraMinZoomPreference = 3; public static final int MapAttrs_cameraTargetLat = 4; public static final int MapAttrs_cameraTargetLng = 5; public static final int MapAttrs_cameraTilt = 6; public static final int MapAttrs_cameraZoom = 7; public static final int MapAttrs_latLngBoundsNorthEastLatitude = 8; public static final int MapAttrs_latLngBoundsNorthEastLongitude = 9; public static final int MapAttrs_latLngBoundsSouthWestLatitude = 10; public static final int MapAttrs_latLngBoundsSouthWestLongitude = 11; public static final int MapAttrs_liteMode = 12; public static final int MapAttrs_mapType = 13; public static final int MapAttrs_uiCompass = 14; public static final int MapAttrs_uiMapToolbar = 15; public static final int MapAttrs_uiRotateGestures = 16; public static final int MapAttrs_uiScrollGestures = 17; public static final int MapAttrs_uiTiltGestures = 18; public static final int MapAttrs_uiZoomControls = 19; public static final int MapAttrs_uiZoomGestures = 20; public static final int MapAttrs_useViewLifecycle = 21; public static final int MapAttrs_zOrderOnTop = 22; public static final int[] MaterialButton = new int[]{16843191, 16843192, 16843193, 16843194, R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.cornerRadius, R.attr.icon, R.attr.iconGravity, R.attr.iconPadding, R.attr.iconSize, R.attr.iconTint, R.attr.iconTintMode, R.attr.rippleColor, R.attr.strokeColor, R.attr.strokeWidth}; public static final int MaterialButton_android_insetBottom = 3; public static final int MaterialButton_android_insetLeft = 0; public static final int MaterialButton_android_insetRight = 1; public static final int MaterialButton_android_insetTop = 2; public static final int MaterialButton_backgroundTint = 4; public static final int MaterialButton_backgroundTintMode = 5; public static final int MaterialButton_cornerRadius = 6; public static final int MaterialButton_icon = 7; public static final int MaterialButton_iconGravity = 8; public static final int MaterialButton_iconPadding = 9; public static final int MaterialButton_iconSize = 10; public static final int MaterialButton_iconTint = 11; public static final int MaterialButton_iconTintMode = 12; public static final int MaterialButton_rippleColor = 13; public static final int MaterialButton_strokeColor = 14; public static final int MaterialButton_strokeWidth = 15; public static final int[] MaterialCardView = new int[]{R.attr.strokeColor, R.attr.strokeWidth}; public static final int MaterialCardView_strokeColor = 0; public static final int MaterialCardView_strokeWidth = 1; public static final int[] MaterialComponentsTheme = new int[]{R.attr.bottomSheetDialogTheme, R.attr.bottomSheetStyle, R.attr.chipGroupStyle, R.attr.chipStandaloneStyle, R.attr.chipStyle, R.attr.colorAccent, R.attr.colorBackgroundFloating, R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.colorSecondary, R.attr.editTextStyle, R.attr.floatingActionButtonStyle, R.attr.materialButtonStyle, R.attr.materialCardViewStyle, R.attr.navigationViewStyle, R.attr.scrimBackground, R.attr.snackbarButtonStyle, R.attr.tabStyle, R.attr.textAppearanceBody1, R.attr.textAppearanceBody2, R.attr.textAppearanceButton, R.attr.textAppearanceCaption, R.attr.textAppearanceHeadline1, R.attr.textAppearanceHeadline2, R.attr.textAppearanceHeadline3, R.attr.textAppearanceHeadline4, R.attr.textAppearanceHeadline5, R.attr.textAppearanceHeadline6, R.attr.textAppearanceOverline, R.attr.textAppearanceSubtitle1, R.attr.textAppearanceSubtitle2, R.attr.textInputStyle}; public static final int MaterialComponentsTheme_bottomSheetDialogTheme = 0; public static final int MaterialComponentsTheme_bottomSheetStyle = 1; public static final int MaterialComponentsTheme_chipGroupStyle = 2; public static final int MaterialComponentsTheme_chipStandaloneStyle = 3; public static final int MaterialComponentsTheme_chipStyle = 4; public static final int MaterialComponentsTheme_colorAccent = 5; public static final int MaterialComponentsTheme_colorBackgroundFloating = 6; public static final int MaterialComponentsTheme_colorPrimary = 7; public static final int MaterialComponentsTheme_colorPrimaryDark = 8; public static final int MaterialComponentsTheme_colorSecondary = 9; public static final int MaterialComponentsTheme_editTextStyle = 10; public static final int MaterialComponentsTheme_floatingActionButtonStyle = 11; public static final int MaterialComponentsTheme_materialButtonStyle = 12; public static final int MaterialComponentsTheme_materialCardViewStyle = 13; public static final int MaterialComponentsTheme_navigationViewStyle = 14; public static final int MaterialComponentsTheme_scrimBackground = 15; public static final int MaterialComponentsTheme_snackbarButtonStyle = 16; public static final int MaterialComponentsTheme_tabStyle = 17; public static final int MaterialComponentsTheme_textAppearanceBody1 = 18; public static final int MaterialComponentsTheme_textAppearanceBody2 = 19; public static final int MaterialComponentsTheme_textAppearanceButton = 20; public static final int MaterialComponentsTheme_textAppearanceCaption = 21; public static final int MaterialComponentsTheme_textAppearanceHeadline1 = 22; public static final int MaterialComponentsTheme_textAppearanceHeadline2 = 23; public static final int MaterialComponentsTheme_textAppearanceHeadline3 = 24; public static final int MaterialComponentsTheme_textAppearanceHeadline4 = 25; public static final int MaterialComponentsTheme_textAppearanceHeadline5 = 26; public static final int MaterialComponentsTheme_textAppearanceHeadline6 = 27; public static final int MaterialComponentsTheme_textAppearanceOverline = 28; public static final int MaterialComponentsTheme_textAppearanceSubtitle1 = 29; public static final int MaterialComponentsTheme_textAppearanceSubtitle2 = 30; public static final int MaterialComponentsTheme_textInputStyle = 31; public static final int[] MaxSizeCardViewLayout = new int[]{R.attr.maxHeightCardView, R.attr.maxWidthCardView}; public static final int MaxSizeCardViewLayout_maxHeightCardView = 0; public static final int MaxSizeCardViewLayout_maxWidthCardView = 1; public static final int[] MaxSizeConstraintLayout = new int[]{R.attr.maxHeightConstraintLayout, R.attr.maxWidthConstraintLayout}; public static final int MaxSizeConstraintLayout_maxHeightConstraintLayout = 0; public static final int MaxSizeConstraintLayout_maxWidthConstraintLayout = 1; public static final int[] MaxSizeFrameLayout = new int[]{R.attr.maxHeightFrameLayout, R.attr.maxWidthFrameLayout}; public static final int MaxSizeFrameLayout_maxHeightFrameLayout = 0; public static final int MaxSizeFrameLayout_maxWidthFrameLayout = 1; public static final int[] MaxSizeLinearLayout = new int[]{R.attr.maxHeight, R.attr.maxWidth}; public static final int MaxSizeLinearLayout_maxHeight = 0; public static final int MaxSizeLinearLayout_maxWidth = 1; public static final int[] MaxSizeRelativeLayout = new int[]{R.attr.maxHeightRelativeLayout, R.attr.maxWidthRelativeLayout}; public static final int MaxSizeRelativeLayout_maxHeightRelativeLayout = 0; public static final int MaxSizeRelativeLayout_maxWidthRelativeLayout = 1; public static final int[] MaxSizeView = new int[]{R.attr.maxHeightView, R.attr.maxWidthView}; public static final int MaxSizeView_maxHeightView = 0; public static final int MaxSizeView_maxWidthView = 1; public static final int[] MenuGroup = new int[]{16842766, 16842960, 16843156, 16843230, 16843231, 16843232}; 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 = new int[]{16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, R.attr.actionLayout, R.attr.actionProviderClass, R.attr.actionViewClass, R.attr.alphabeticModifiers, R.attr.contentDescription, R.attr.iconTint, R.attr.iconTintMode, R.attr.numericModifiers, R.attr.showAsAction, R.attr.tooltipText}; public static final int MenuItem_actionLayout = 13; public static final int MenuItem_actionProviderClass = 14; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_alphabeticModifiers = 16; 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_contentDescription = 17; public static final int MenuItem_iconTint = 18; public static final int MenuItem_iconTintMode = 19; public static final int MenuItem_numericModifiers = 20; public static final int MenuItem_showAsAction = 21; public static final int MenuItem_tooltipText = 22; public static final int[] MenuView = new int[]{16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, R.attr.preserveIconSpacing, R.attr.subMenuArrow}; 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 MenuView_subMenuArrow = 8; public static final int[] NavigationView = new int[]{16842964, 16842973, 16843039, R.attr.elevation, R.attr.headerLayout, R.attr.itemBackground, R.attr.itemHorizontalPadding, R.attr.itemIconPadding, R.attr.itemIconTint, R.attr.itemTextAppearance, R.attr.itemTextColor, R.attr.menu}; public static final int NavigationView_android_background = 0; public static final int NavigationView_android_fitsSystemWindows = 1; public static final int NavigationView_android_maxWidth = 2; public static final int NavigationView_elevation = 3; public static final int NavigationView_headerLayout = 4; public static final int NavigationView_itemBackground = 5; public static final int NavigationView_itemHorizontalPadding = 6; public static final int NavigationView_itemIconPadding = 7; public static final int NavigationView_itemIconTint = 8; public static final int NavigationView_itemTextAppearance = 9; public static final int NavigationView_itemTextColor = 10; public static final int NavigationView_menu = 11; public static final int[] NumPad = new int[]{R.attr.changeSign, R.attr.changeSignButton, R.attr.layoutId, R.attr.typeCustomButton}; public static final int NumPad_changeSign = 0; public static final int NumPad_changeSignButton = 1; public static final int NumPad_layoutId = 2; public static final int NumPad_typeCustomButton = 3; public static final int[] PasscodeWidget = new int[]{16842901, 16843692, R.attr.dotLargeSize, R.attr.dotNormalSize, R.attr.itemWidth}; public static final int PasscodeWidget_android_fontFamily = 1; public static final int PasscodeWidget_android_textSize = 0; public static final int PasscodeWidget_dotLargeSize = 2; public static final int PasscodeWidget_dotNormalSize = 3; public static final int PasscodeWidget_itemWidth = 4; public static final int[] PopupWindow = new int[]{16843126, 16843465, R.attr.overlapAnchor}; public static final int[] PopupWindowBackgroundState = new int[]{R.attr.state_above_anchor}; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int PopupWindow_android_popupAnimationStyle = 1; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_overlapAnchor = 2; public static final int[] RecycleListView = new int[]{R.attr.paddingBottomNoButtons, R.attr.paddingTopNoTitle}; public static final int RecycleListView_paddingBottomNoButtons = 0; public static final int RecycleListView_paddingTopNoTitle = 1; public static final int[] RecyclerView = new int[]{16842948, 16842993, R.attr.fastScrollEnabled, R.attr.fastScrollHorizontalThumbDrawable, R.attr.fastScrollHorizontalTrackDrawable, R.attr.fastScrollVerticalThumbDrawable, R.attr.fastScrollVerticalTrackDrawable, R.attr.layoutManager, R.attr.reverseLayout, R.attr.spanCount, R.attr.stackFromEnd}; public static final int[] RecyclerViewPager = new int[]{R.attr.flingFactor, R.attr.singlePageFling, R.attr.triggerOffset}; public static final int RecyclerViewPager_flingFactor = 0; public static final int RecyclerViewPager_singlePageFling = 1; public static final int RecyclerViewPager_triggerOffset = 2; public static final int RecyclerView_android_descendantFocusability = 1; public static final int RecyclerView_android_orientation = 0; public static final int RecyclerView_fastScrollEnabled = 2; public static final int RecyclerView_fastScrollHorizontalThumbDrawable = 3; public static final int RecyclerView_fastScrollHorizontalTrackDrawable = 4; public static final int RecyclerView_fastScrollVerticalThumbDrawable = 5; public static final int RecyclerView_fastScrollVerticalTrackDrawable = 6; public static final int RecyclerView_layoutManager = 7; public static final int RecyclerView_reverseLayout = 8; public static final int RecyclerView_spanCount = 9; public static final int RecyclerView_stackFromEnd = 10; public static final int[] RoundedFrameLayout = new int[]{R.attr.cornerRadius}; public static final int RoundedFrameLayout_cornerRadius = 0; public static final int[] RoundedImageView = new int[]{R.attr.bottomLeftCorner, R.attr.bottomRightCorner, R.attr.corners, R.attr.scale, R.attr.topLeftCorner, R.attr.topRightCorner}; public static final int RoundedImageView_bottomLeftCorner = 0; public static final int RoundedImageView_bottomRightCorner = 1; public static final int RoundedImageView_corners = 2; public static final int RoundedImageView_scale = 3; public static final int RoundedImageView_topLeftCorner = 4; public static final int RoundedImageView_topRightCorner = 5; public static final int[] ScrimInsetsFrameLayout = new int[]{R.attr.insetForeground}; public static final int ScrimInsetsFrameLayout_insetForeground = 0; public static final int[] ScrollingViewBehavior_Layout = new int[]{R.attr.behavior_overlapTop}; public static final int ScrollingViewBehavior_Layout_behavior_overlapTop = 0; public static final int[] SearchView = new int[]{16842970, 16843039, 16843296, 16843364, R.attr.closeIcon, R.attr.commitIcon, R.attr.defaultQueryHint, R.attr.goIcon, R.attr.iconifiedByDefault, R.attr.layout, R.attr.queryBackground, R.attr.queryHint, R.attr.searchHintIcon, R.attr.searchIcon, R.attr.submitBackground, R.attr.suggestionRowLayout, R.attr.voiceIcon}; 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 = 4; public static final int SearchView_commitIcon = 5; public static final int SearchView_defaultQueryHint = 6; public static final int SearchView_goIcon = 7; public static final int SearchView_iconifiedByDefault = 8; public static final int SearchView_layout = 9; public static final int SearchView_queryBackground = 10; public static final int SearchView_queryHint = 11; public static final int SearchView_searchHintIcon = 12; public static final int SearchView_searchIcon = 13; public static final int SearchView_submitBackground = 14; public static final int SearchView_suggestionRowLayout = 15; public static final int SearchView_voiceIcon = 16; public static final int[] SignInButton = new int[]{R.attr.buttonSize, R.attr.colorScheme, R.attr.scopeUris}; public static final int SignInButton_buttonSize = 0; public static final int SignInButton_colorScheme = 1; public static final int SignInButton_scopeUris = 2; public static final int[] Snackbar = new int[]{R.attr.snackbarButtonStyle, R.attr.snackbarStyle}; public static final int[] SnackbarLayout = new int[]{16843039, R.attr.elevation, R.attr.maxActionInlineWidth}; public static final int SnackbarLayout_android_maxWidth = 0; public static final int SnackbarLayout_elevation = 1; public static final int SnackbarLayout_maxActionInlineWidth = 2; public static final int Snackbar_snackbarButtonStyle = 0; public static final int Snackbar_snackbarStyle = 1; public static final int[] Spinner = new int[]{16842930, 16843126, 16843131, 16843362, R.attr.popupTheme}; public static final int Spinner_android_dropDownWidth = 3; public static final int Spinner_android_entries = 0; public static final int Spinner_android_popupBackground = 1; public static final int Spinner_android_prompt = 2; public static final int Spinner_popupTheme = 4; public static final int[] StarBar = new int[]{R.attr.starEmpty, R.attr.starEmptyTint, R.attr.starFull, R.attr.starFullTint, R.attr.starHeight, R.attr.starNum, R.attr.starOffset, R.attr.starWidth}; public static final int StarBar_starEmpty = 0; public static final int StarBar_starEmptyTint = 1; public static final int StarBar_starFull = 2; public static final int StarBar_starFullTint = 3; public static final int StarBar_starHeight = 4; public static final int StarBar_starNum = 5; public static final int StarBar_starOffset = 6; public static final int StarBar_starWidth = 7; public static final int[] StateListDrawable = new int[]{16843036, 16843156, 16843157, 16843158, 16843532, 16843533}; public static final int[] StateListDrawableItem = new int[]{16843161}; public static final int StateListDrawableItem_android_drawable = 0; public static final int StateListDrawable_android_constantSize = 3; public static final int StateListDrawable_android_dither = 0; public static final int StateListDrawable_android_enterFadeDuration = 4; public static final int StateListDrawable_android_exitFadeDuration = 5; public static final int StateListDrawable_android_variablePadding = 2; public static final int StateListDrawable_android_visible = 1; public static final int[] SwitchCompat = new int[]{16843044, 16843045, 16843074, R.attr.showText, R.attr.splitTrack, R.attr.switchMinWidth, R.attr.switchPadding, R.attr.switchTextAppearance, R.attr.thumbTextPadding, R.attr.thumbTint, R.attr.thumbTintMode, R.attr.track, R.attr.trackTint, R.attr.trackTintMode}; 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 = 3; public static final int SwitchCompat_splitTrack = 4; public static final int SwitchCompat_switchMinWidth = 5; public static final int SwitchCompat_switchPadding = 6; public static final int SwitchCompat_switchTextAppearance = 7; public static final int SwitchCompat_thumbTextPadding = 8; public static final int SwitchCompat_thumbTint = 9; public static final int SwitchCompat_thumbTintMode = 10; public static final int SwitchCompat_track = 11; public static final int SwitchCompat_trackTint = 12; public static final int SwitchCompat_trackTintMode = 13; public static final int[] TabItem = new int[]{16842754, 16842994, 16843087}; public static final int TabItem_android_icon = 0; public static final int TabItem_android_layout = 1; public static final int TabItem_android_text = 2; public static final int[] TabLayout = new int[]{R.attr.tabBackground, R.attr.tabContentStart, R.attr.tabGravity, R.attr.tabIconTint, R.attr.tabIconTintMode, R.attr.tabIndicator, R.attr.tabIndicatorAnimationDuration, R.attr.tabIndicatorColor, R.attr.tabIndicatorFullWidth, R.attr.tabIndicatorGravity, R.attr.tabIndicatorHeight, R.attr.tabInlineLabel, R.attr.tabMaxWidth, R.attr.tabMinWidth, R.attr.tabMode, R.attr.tabPadding, R.attr.tabPaddingBottom, R.attr.tabPaddingEnd, R.attr.tabPaddingStart, R.attr.tabPaddingTop, R.attr.tabRippleColor, R.attr.tabSelectedTextColor, R.attr.tabTextAppearance, R.attr.tabTextColor, R.attr.tabUnboundedRipple}; public static final int TabLayout_tabBackground = 0; public static final int TabLayout_tabContentStart = 1; public static final int TabLayout_tabGravity = 2; public static final int TabLayout_tabIconTint = 3; public static final int TabLayout_tabIconTintMode = 4; public static final int TabLayout_tabIndicator = 5; public static final int TabLayout_tabIndicatorAnimationDuration = 6; public static final int TabLayout_tabIndicatorColor = 7; public static final int TabLayout_tabIndicatorFullWidth = 8; public static final int TabLayout_tabIndicatorGravity = 9; public static final int TabLayout_tabIndicatorHeight = 10; public static final int TabLayout_tabInlineLabel = 11; public static final int TabLayout_tabMaxWidth = 12; public static final int TabLayout_tabMinWidth = 13; public static final int TabLayout_tabMode = 14; public static final int TabLayout_tabPadding = 15; public static final int TabLayout_tabPaddingBottom = 16; public static final int TabLayout_tabPaddingEnd = 17; public static final int TabLayout_tabPaddingStart = 18; public static final int TabLayout_tabPaddingTop = 19; public static final int TabLayout_tabRippleColor = 20; public static final int TabLayout_tabSelectedTextColor = 21; public static final int TabLayout_tabTextAppearance = 22; public static final int TabLayout_tabTextColor = 23; public static final int TabLayout_tabUnboundedRipple = 24; public static final int[] TextAppearance = new int[]{16842901, 16842902, 16842903, 16842904, 16842906, 16842907, 16843105, 16843106, 16843107, 16843108, 16843692, R.attr.fontFamily, R.attr.textAllCaps}; public static final int TextAppearance_android_fontFamily = 10; public static final int TextAppearance_android_shadowColor = 6; public static final int TextAppearance_android_shadowDx = 7; public static final int TextAppearance_android_shadowDy = 8; public static final int TextAppearance_android_shadowRadius = 9; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textColorHint = 4; public static final int TextAppearance_android_textColorLink = 5; 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_fontFamily = 11; public static final int TextAppearance_textAllCaps = 12; public static final int[] TextInputLayout = new int[]{16842906, 16843088, R.attr.boxBackgroundColor, R.attr.boxBackgroundMode, R.attr.boxCollapsedPaddingTop, R.attr.boxCornerRadiusBottomEnd, R.attr.boxCornerRadiusBottomStart, R.attr.boxCornerRadiusTopEnd, R.attr.boxCornerRadiusTopStart, R.attr.boxStrokeColor, R.attr.boxStrokeWidth, R.attr.counterEnabled, R.attr.counterMaxLength, R.attr.counterOverflowTextAppearance, R.attr.counterTextAppearance, R.attr.errorEnabled, R.attr.errorTextAppearance, R.attr.helperText, R.attr.helperTextEnabled, R.attr.helperTextTextAppearance, R.attr.hintAnimationEnabled, R.attr.hintEnabled, R.attr.hintTextAppearance, R.attr.passwordToggleContentDescription, R.attr.passwordToggleDrawable, R.attr.passwordToggleEnabled, R.attr.passwordToggleTint, R.attr.passwordToggleTintMode}; public static final int TextInputLayout_android_hint = 1; public static final int TextInputLayout_android_textColorHint = 0; public static final int TextInputLayout_boxBackgroundColor = 2; public static final int TextInputLayout_boxBackgroundMode = 3; public static final int TextInputLayout_boxCollapsedPaddingTop = 4; public static final int TextInputLayout_boxCornerRadiusBottomEnd = 5; public static final int TextInputLayout_boxCornerRadiusBottomStart = 6; public static final int TextInputLayout_boxCornerRadiusTopEnd = 7; public static final int TextInputLayout_boxCornerRadiusTopStart = 8; public static final int TextInputLayout_boxStrokeColor = 9; public static final int TextInputLayout_boxStrokeWidth = 10; public static final int TextInputLayout_counterEnabled = 11; public static final int TextInputLayout_counterMaxLength = 12; public static final int TextInputLayout_counterOverflowTextAppearance = 13; public static final int TextInputLayout_counterTextAppearance = 14; public static final int TextInputLayout_errorEnabled = 15; public static final int TextInputLayout_errorTextAppearance = 16; public static final int TextInputLayout_helperText = 17; public static final int TextInputLayout_helperTextEnabled = 18; public static final int TextInputLayout_helperTextTextAppearance = 19; public static final int TextInputLayout_hintAnimationEnabled = 20; public static final int TextInputLayout_hintEnabled = 21; public static final int TextInputLayout_hintTextAppearance = 22; public static final int TextInputLayout_passwordToggleContentDescription = 23; public static final int TextInputLayout_passwordToggleDrawable = 24; public static final int TextInputLayout_passwordToggleEnabled = 25; public static final int TextInputLayout_passwordToggleTint = 26; public static final int TextInputLayout_passwordToggleTintMode = 27; public static final int[] TextResize = new int[]{R.attr.endTextSize}; public static final int TextResize_endTextSize = 0; public static final int[] TextScaleResize = new int[]{R.attr.scaleEndTextSize, R.attr.scalePivotX, R.attr.scalePivotY}; public static final int TextScaleResize_scaleEndTextSize = 0; public static final int TextScaleResize_scalePivotX = 1; public static final int TextScaleResize_scalePivotY = 2; public static final int[] ThemeEnforcement = new int[]{16842804, R.attr.enforceMaterialTheme, R.attr.enforceTextAppearance}; public static final int ThemeEnforcement_android_textAppearance = 0; public static final int ThemeEnforcement_enforceMaterialTheme = 1; public static final int ThemeEnforcement_enforceTextAppearance = 2; public static final int[] Toolbar = new int[]{16842927, 16843072, R.attr.buttonGravity, R.attr.collapseContentDescription, R.attr.collapseIcon, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.logo, R.attr.logoDescription, R.attr.maxButtonHeight, R.attr.navigationContentDescription, R.attr.navigationIcon, R.attr.popupTheme, R.attr.subtitle, R.attr.subtitleTextAppearance, R.attr.subtitleTextColor, R.attr.title, R.attr.titleMargin, R.attr.titleMarginBottom, R.attr.titleMarginEnd, R.attr.titleMarginStart, R.attr.titleMarginTop, R.attr.titleMargins, R.attr.titleTextAppearance, R.attr.titleTextColor}; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_buttonGravity = 2; public static final int Toolbar_collapseContentDescription = 3; public static final int Toolbar_collapseIcon = 4; public static final int Toolbar_contentInsetEnd = 5; public static final int Toolbar_contentInsetEndWithActions = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 9; public static final int Toolbar_contentInsetStartWithNavigation = 10; public static final int Toolbar_logo = 11; public static final int Toolbar_logoDescription = 12; public static final int Toolbar_maxButtonHeight = 13; public static final int Toolbar_navigationContentDescription = 14; public static final int Toolbar_navigationIcon = 15; public static final int Toolbar_popupTheme = 16; public static final int Toolbar_subtitle = 17; public static final int Toolbar_subtitleTextAppearance = 18; public static final int Toolbar_subtitleTextColor = 19; public static final int Toolbar_title = 20; public static final int Toolbar_titleMargin = 21; public static final int Toolbar_titleMarginBottom = 22; public static final int Toolbar_titleMarginEnd = 23; public static final int Toolbar_titleMarginStart = 24; public static final int Toolbar_titleMarginTop = 25; public static final int Toolbar_titleMargins = 26; public static final int Toolbar_titleTextAppearance = 27; public static final int Toolbar_titleTextColor = 28; public static final int[] View = new int[]{16842752, 16842970, R.attr.paddingEnd, R.attr.paddingStart, R.attr.theme}; public static final int[] ViewBackgroundHelper = new int[]{16842964, R.attr.backgroundTint, R.attr.backgroundTintMode}; 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 = new int[]{16842960, 16842994, 16842995}; 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 = 2; public static final int View_paddingStart = 3; public static final int View_theme = 4; public static final int[] WalletFragmentOptions = new int[]{R.attr.appTheme, R.attr.environment, R.attr.fragmentMode, R.attr.fragmentStyle}; public static final int WalletFragmentOptions_appTheme = 0; public static final int WalletFragmentOptions_environment = 1; public static final int WalletFragmentOptions_fragmentMode = 2; public static final int WalletFragmentOptions_fragmentStyle = 3; public static final int[] WalletFragmentStyle = new int[]{R.attr.buyButtonAppearance, R.attr.buyButtonHeight, R.attr.buyButtonText, R.attr.buyButtonWidth, R.attr.maskedWalletDetailsBackground, R.attr.maskedWalletDetailsButtonBackground, R.attr.maskedWalletDetailsButtonTextAppearance, R.attr.maskedWalletDetailsHeaderTextAppearance, R.attr.maskedWalletDetailsLogoImageType, R.attr.maskedWalletDetailsLogoTextColor, R.attr.maskedWalletDetailsTextAppearance}; public static final int WalletFragmentStyle_buyButtonAppearance = 0; public static final int WalletFragmentStyle_buyButtonHeight = 1; public static final int WalletFragmentStyle_buyButtonText = 2; public static final int WalletFragmentStyle_buyButtonWidth = 3; public static final int WalletFragmentStyle_maskedWalletDetailsBackground = 4; public static final int WalletFragmentStyle_maskedWalletDetailsButtonBackground = 5; public static final int WalletFragmentStyle_maskedWalletDetailsButtonTextAppearance = 6; public static final int WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance = 7; public static final int WalletFragmentStyle_maskedWalletDetailsLogoImageType = 8; public static final int WalletFragmentStyle_maskedWalletDetailsLogoTextColor = 9; public static final int WalletFragmentStyle_maskedWalletDetailsTextAppearance = 10; public static final int[] com_facebook_like_view = new int[]{R.attr.com_facebook_auxiliary_view_position, R.attr.com_facebook_foreground_color, R.attr.com_facebook_horizontal_alignment, R.attr.com_facebook_object_id, R.attr.com_facebook_object_type, R.attr.com_facebook_style}; public static final int com_facebook_like_view_com_facebook_auxiliary_view_position = 0; public static final int com_facebook_like_view_com_facebook_foreground_color = 1; public static final int com_facebook_like_view_com_facebook_horizontal_alignment = 2; public static final int com_facebook_like_view_com_facebook_object_id = 3; public static final int com_facebook_like_view_com_facebook_object_type = 4; public static final int com_facebook_like_view_com_facebook_style = 5; public static final int[] com_facebook_login_view = new int[]{R.attr.com_facebook_confirm_logout, R.attr.com_facebook_login_text, R.attr.com_facebook_logout_text, R.attr.com_facebook_tooltip_mode}; public static final int com_facebook_login_view_com_facebook_confirm_logout = 0; public static final int com_facebook_login_view_com_facebook_login_text = 1; public static final int com_facebook_login_view_com_facebook_logout_text = 2; public static final int com_facebook_login_view_com_facebook_tooltip_mode = 3; public static final int[] com_facebook_profile_picture_view = new int[]{R.attr.com_facebook_is_cropped, R.attr.com_facebook_preset_size}; public static final int com_facebook_profile_picture_view_com_facebook_is_cropped = 0; public static final int com_facebook_profile_picture_view_com_facebook_preset_size = 1; } }
[ "yihsun1992@gmail.com" ]
yihsun1992@gmail.com
d641218edf1f3639f5149ccc0d50ebfd09950ccc
ed3c054bf5256c4add264c6256b846bf23a4b438
/src/br/com/renderizadores/TiposAtributosCellRenderer.java
43e0ecb8be178817fd29617440dd1736120058f2
[]
no_license
nasser123/AplicacaoEstagio
51d35276644b47b8ab5afbedcf7f899bc972189e
f1a91c7b5005fcd49de1968bea530f08920a43b1
refs/heads/master
2021-01-16T17:45:51.272822
2014-06-07T20:17:49
2014-06-07T20:17:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
891
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//* * To change this template, choose Tools | Templates * and open the template in the editor. */ package br.com.renderizadores; /** * * @author nasser */ import br.com.model.TipoAtributo; import java.awt.Component; import javax.swing.DefaultListCellRenderer; import javax.swing.JList; public class TiposAtributosCellRenderer extends DefaultListCellRenderer { @Override public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (value instanceof TipoAtributo) { TipoAtributo ta = (TipoAtributo) value; setText(ta.getDescricao()); } return this; } }
[ "nassser123rs@gmail.com" ]
nassser123rs@gmail.com
81b13655df87933a1b5e17514b71cc8c3e3677e4
65f3798fa96c6a8aab4b53d634fb5ba971757052
/src/main/java/com/sdkj/controller/LogController.java
b72a8556ef18ee9c11afa6b39c00f8d802c3a919
[]
no_license
a765959964/zf-sdkj
6dd61d4b68467641026cd3957a280acb2c2ff78f
fa7a8439d2093f233e2f4f626868143d3598bd74
refs/heads/master
2016-08-12T08:53:40.538881
2015-05-27T01:44:52
2015-05-27T01:44:52
36,335,616
0
0
null
null
null
null
UTF-8
Java
false
false
2,703
java
package com.sdkj.controller; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.propertyeditors.CustomDateEditor; import org.springframework.stereotype.Controller; import org.springframework.web.bind.ServletRequestDataBinder; import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.sdkj.pmodel.Json; import com.sdkj.pmodel.LogModel; import com.sdkj.pmodel.PageModel; import com.sdkj.pmodel.ui.EasyuiDatagrid; import com.sdkj.service.LogService; @Controller @RequestMapping("/log") public class LogController { @Autowired private LogService logService; @InitBinder public void initBinder(ServletRequestDataBinder binder) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true)); } @ResponseBody @RequestMapping("/datagrid") public EasyuiDatagrid datagrid(PageModel pageModel) { return logService.datagrid(pageModel); } @RequestMapping("/add") @ResponseBody public Json add(LogModel logModel) { Json j = new Json(); try { LogModel r = logService.save(logModel); j.setSuccess(true); j.setMsg("添加成功!"); j.setObj(r); } catch (Exception e) { j.setMsg(e.getMessage()); } return j; } @RequestMapping("/showView") public String showView(String id, HttpServletRequest request) { LogModel logModel = logService.getModelById(id); request.setAttribute("log", logModel); return "/ht/log/logShow"; } @RequestMapping("/editView") public String editView(String id, HttpServletRequest request) { LogModel logModel = logService.getModelById(id); request.setAttribute("log", logModel); return "/ht/log/logEdit"; } @ResponseBody @RequestMapping("/edit") public Json edit(LogModel logModel) { Json j = new Json(); try { LogModel r = logService.edit(logModel); j.setSuccess(true); j.setMsg("编辑成功!"); j.setObj(r); } catch (Exception e) { j.setMsg(e.getMessage()); } return j; } @ResponseBody @RequestMapping("/remove") public Json remove(PageModel pageModel) { logService.remove(pageModel.getIds()); Json j = new Json(); j.setSuccess(true); j.setMsg("删除成功!"); return j; } @RequestMapping("/show") public String showNote(String id, HttpServletRequest request) { LogModel logModel = logService.getModelById(id); request.setAttribute("logModel", logModel); return "ht/log/logShow"; } }
[ "zhang795959964@qq.com" ]
zhang795959964@qq.com
5ddf50104428fdaea026162b9862cf2386b40cae
444dc631a1fca2c12ae186f59f60abc939923de6
/banco_sprint-02_2015-01-09/banco/src/java/com/fpmislata/banco/persistencia/common/datasourcefactory_reserva/DataSourceFactory.java
cc789909146ac15942648d3891630063362f7fe9
[]
no_license
franaflo/proyectoSeg
25d23a552c301582c9fff37cc703307b9732ede1
70c57f79daa6478e725d0a9745c15b4b594e14fa
refs/heads/master
2021-01-10T20:58:56.253104
2015-03-02T12:44:16
2015-03-02T12:44:16
29,087,858
0
0
null
null
null
null
UTF-8
Java
false
false
216
java
package com.fpmislata.banco.persistencia.common.datasourcefactory; import javax.sql.DataSource; public interface DataSourceFactory { public DataSource getDataSource(String contexto, String dataSourceName); }
[ "fmnf72@gmail.com" ]
fmnf72@gmail.com
38c757e0742635453f27cbdb66ab9886f6279ca5
28ac9e755e183e7c4b235eeb2f168d08ed4f0daa
/app/src/main/java/com/app/googlemapexample/MainActivity.java
4f4ddf71867d4573de3aed71b4bd44b3a9322520
[]
no_license
Jeelraja/Map
ce8b37cec83cc1eeed458eaa82326acd7deba62b
8d9d7fc676235d1d44c2a20644c2d5eddd1cb3c2
refs/heads/master
2020-03-25T05:20:13.832758
2018-08-07T06:11:45
2018-08-07T06:11:45
143,441,515
0
0
null
null
null
null
UTF-8
Java
false
false
19,647
java
package com.app.googlemapexample; import android.Manifest; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.pm.PackageManager; import android.graphics.Color; import android.location.Address; import android.location.Geocoder; import android.location.Location; import com.google.android.gms.location.LocationListener; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.location.LocationRequest; import com.google.android.gms.location.LocationServices; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapFragment; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.LatLngBounds; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; import com.google.android.gms.maps.model.PolylineOptions; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class MainActivity extends AppCompatActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener, View.OnClickListener { // Google Map MapFragment mapFragment; private GoogleMap mGoogleMap; LocationRequest mLocationRequest; GoogleApiClient mGoogleApiClient; Location mLastLocation; Marker mCurrLocationMarker; ArrayList<LatLng> MarkerPoints; Marker xFromMarker = null, yToMarker = null; private EditText edtFrom, edtTo; private Button btnJoin; LatLng xFrom, xTo; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { checkLocationPermission(); } // Initializing MarkerPoints = new ArrayList<>(); try { // Loading map initilizeMap(); } catch (Exception e) { e.printStackTrace(); } } /** * function to load map. If map is not created it will create it for you */ private void initilizeMap() { edtFrom = findViewById(R.id.edtFrom); edtTo = findViewById(R.id.edtTo); btnJoin = findViewById(R.id.btnJoin); mapFragment = (MapFragment) getFragmentManager() .findFragmentById(R.id.map); mapFragment.getMapAsync(this); btnJoin.setOnClickListener(this); } @Override public void onClick(View view) { switch (view.getId()) { case R.id.btnJoin: if ((!edtFrom.getText().toString().trim().equals("")) && (!edtTo.getText().toString().trim().equals(""))) { getLatLng(edtFrom.getText().toString().trim(), edtTo.getText().toString().trim()); } else { Toast.makeText(this, "Please Enter Value", Toast.LENGTH_SHORT).show(); } break; } } private void getLatLng(String strFrom, String strTo) { final Geocoder geocoder = new Geocoder(this); try { List<Address> addressesFrom = geocoder.getFromLocationName(strFrom, 1); List<Address> addressesTo = geocoder.getFromLocationName(strTo, 1); if ((addressesFrom != null && !addressesFrom.isEmpty()) && (addressesTo != null && !addressesTo.isEmpty())) { Address addressFrom = addressesFrom.get(0); double latFrom = addressFrom.getLatitude(); double longFrom = addressFrom.getLongitude(); xFrom = new LatLng(latFrom, longFrom); Address addressTo = addressesTo.get(0); double latTo = addressTo.getLatitude(); double longTo = addressTo.getLongitude(); xTo = new LatLng(latTo, longTo); LatLng xFrom = new LatLng(latFrom, longFrom); mGoogleMap.addMarker(new MarkerOptions().position(xFrom).title("").icon(BitmapDescriptorFactory .fromResource(R.drawable.green_from))); LatLng xTo = new LatLng(latTo, longTo); mGoogleMap.addMarker(new MarkerOptions().position(xTo).title("").icon(BitmapDescriptorFactory .fromResource(R.drawable.pink_to))); setRoute(); } else { // Display appropriate message when Geocoder services are not available Toast.makeText(this, "Unable to geocode zipcode", Toast.LENGTH_LONG).show(); } } catch (IOException e) { // handle exception } } private void setRoute() { // Already two locations if (MarkerPoints.size() > 1) { MarkerPoints.clear(); mGoogleMap.clear(); } // Getting URL to the Google Directions API String url = getUrl(xFrom, xTo); Log.d("onMapClick", url.toString()); FetchUrl FetchUrl = new FetchUrl(); // Start downloading json data from Google Directions API FetchUrl.execute(url); //move map camera mGoogleMap.moveCamera(CameraUpdateFactory.newLatLng(xFrom)); mGoogleMap.animateCamera(CameraUpdateFactory.zoomTo(11)); } private void addMarkers() { if (mGoogleMap != null) { xFromMarker = mGoogleMap.addMarker(new MarkerOptions().position(xFrom).title( "From").icon(BitmapDescriptorFactory .fromResource(R.drawable.green_from))); yToMarker = mGoogleMap.addMarker(new MarkerOptions().position(xTo).title("To").icon(BitmapDescriptorFactory .fromResource(R.drawable.pink_to))); List<Marker> markersList = new ArrayList<Marker>(); markersList.add(xFromMarker); markersList.add(yToMarker); LatLngBounds.Builder builder = new LatLngBounds.Builder(); for (Marker marker : markersList) { builder.include(marker.getPosition()); } final LatLngBounds bounds = builder.build(); mGoogleMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() { @Override public void onMapLoaded() { mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 100)); } }); } } private void drawMarker(LatLng point) { // Creating an instance of MarkerOptions MarkerOptions markerOptions = new MarkerOptions(); // Setting latitude and longitude for the marker markerOptions.position(point); // Adding marker on the Google Map mGoogleMap.addMarker(markerOptions); } @Override protected void onResume() { super.onResume(); initilizeMap(); } @Override public void onMapReady(final GoogleMap googleMap) { mGoogleMap = googleMap; mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); //Initialize Google Play Services if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) { //Location Permission already granted buildGoogleApiClient(); mGoogleMap.setMyLocationEnabled(true); } else { //Request Location Permission checkLocationPermission(); } } else { buildGoogleApiClient(); mGoogleMap.setMyLocationEnabled(true); } mGoogleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() { @Override public void onMapClick(LatLng point) { } }); } private String getUrl(LatLng origin, LatLng dest) { // Origin of route String str_origin = "origin=" + origin.latitude + "," + origin.longitude; // Destination of route String str_dest = "destination=" + dest.latitude + "," + dest.longitude; // Sensor enabled String sensor = "sensor=false"; // Building the parameters to the web service String parameters = str_origin + "&" + str_dest + "&" + sensor; // Output format String output = "json"; // Building the url to the web service String url = "https://maps.googleapis.com/maps/api/directions/" + output + "?" + parameters; return url; } protected synchronized void buildGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); mGoogleApiClient.connect(); } @Override protected void onStart() { super.onStart(); //buildGoogleApiClient(); } @Override public void onStop() { mGoogleApiClient.disconnect(); super.onStop(); } @Override public void onLocationChanged(Location location) { mLastLocation = location; if (mCurrLocationMarker != null) { mCurrLocationMarker.remove(); } //Place current location marker LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); MarkerOptions markerOptions = new MarkerOptions(); markerOptions.position(latLng); markerOptions.title("Current Position"); markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)); mCurrLocationMarker = mGoogleMap.addMarker(markerOptions); //move map camera mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 11)); } @Override public void onConnected(@Nullable Bundle bundle) { mLocationRequest = new LocationRequest(); mLocationRequest.setInterval(1000); mLocationRequest.setFastestInterval(1000); mLocationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY); if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) { LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this); } } @Override public void onConnectionSuspended(int i) { } @Override public void onConnectionFailed(@NonNull ConnectionResult connectionResult) { } public static final int MY_PERMISSIONS_REQUEST_LOCATION = 99; private void checkLocationPermission() { if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { // Should we show an explanation? if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)) { // Show an explanation to the user *asynchronously* -- don't block // this thread waiting for the user's response! After the user // sees the explanation, try again to request the permission. new AlertDialog.Builder(MainActivity.this) .setTitle("Location Permission Needed") .setMessage("This app needs the Location permission, please accept to use location functionality") .setPositiveButton("OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { //Prompt the user once explanation has been shown ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, MY_PERMISSIONS_REQUEST_LOCATION); } }) .create() .show(); } else { // No explanation needed, we can request the permission. ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, MY_PERMISSIONS_REQUEST_LOCATION); } } } @Override public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { switch (requestCode) { case MY_PERMISSIONS_REQUEST_LOCATION: { // If request is cancelled, the result arrays are empty. if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { // permission was granted, yay! Do the // location-related task you need to do. if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) { if (mGoogleApiClient == null) { buildGoogleApiClient(); } mGoogleMap.setMyLocationEnabled(true); } } else { // permission denied, boo! Disable the // functionality that depends on this permission. Toast.makeText(MainActivity.this, "permission denied", Toast.LENGTH_LONG).show(); } return; } // other 'case' lines to check for other // permissions this app might request } } // Fetches data from url passed private class FetchUrl extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... url) { // For storing data from web service String data = ""; try { // Fetching the data from web service data = downloadUrl(url[0]); Log.d("Background Task data", data.toString()); } catch (Exception e) { Log.d("Background Task", e.toString()); } return data; } @Override protected void onPostExecute(String result) { super.onPostExecute(result); ParserTask parserTask = new ParserTask(); // Invokes the thread for parsing the JSON data parserTask.execute(result); } } private String downloadUrl(String strUrl) throws IOException { String data = ""; InputStream iStream = null; HttpURLConnection urlConnection = null; try { URL url = new URL(strUrl); // Creating an http connection to communicate with url urlConnection = (HttpURLConnection) url.openConnection(); // Connecting to url urlConnection.connect(); // Reading data from url iStream = urlConnection.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(iStream)); StringBuffer sb = new StringBuffer(); String line = ""; while ((line = br.readLine()) != null) { sb.append(line); } data = sb.toString(); Log.d("downloadUrl", data.toString()); br.close(); } catch (Exception e) { Log.d("Exception", e.toString()); } finally { iStream.close(); urlConnection.disconnect(); } return data; } private class ParserTask extends AsyncTask<String, Integer, List<List<HashMap<String, String>>>> { // Parsing the data in non-ui thread @Override protected List<List<HashMap<String, String>>> doInBackground(String... jsonData) { JSONObject jObject; List<List<HashMap<String, String>>> routes = null; try { jObject = new JSONObject(jsonData[0]); Log.d("ParserTask", jsonData[0].toString()); DataParser parser = new DataParser(); Log.d("ParserTask", parser.toString()); // Starts parsing data routes = parser.parse(jObject); Log.d("ParserTask", "Executing routes"); Log.d("ParserTask", routes.toString()); } catch (Exception e) { Log.d("ParserTask", e.toString()); e.printStackTrace(); } return routes; } // Executes in UI thread, after the parsing process @Override protected void onPostExecute(List<List<HashMap<String, String>>> result) { ArrayList<LatLng> points; PolylineOptions lineOptions = null; // Traversing through all the routes for (int i = 0; i < result.size(); i++) { points = new ArrayList<>(); lineOptions = new PolylineOptions(); // Fetching i-th route List<HashMap<String, String>> path = result.get(i); // Fetching all the points in i-th route for (int j = 0; j < path.size(); j++) { HashMap<String, String> point = path.get(j); double lat = Double.parseDouble(point.get("lat")); double lng = Double.parseDouble(point.get("lng")); LatLng position = new LatLng(lat, lng); points.add(position); } // Adding all the points in the route to LineOptions lineOptions.addAll(points); lineOptions.width(10); lineOptions.color(Color.RED); Log.d("onPostExecute", "onPostExecute lineoptions decoded"); } // Drawing polyline in the Google Map for the i-th route if (lineOptions != null) { mGoogleMap.addPolyline(lineOptions); } else { Log.d("onPostExecute", "without Polylines drawn"); } } } }
[ "jeel@zapserver.com" ]
jeel@zapserver.com
bd60b1ad65f66a606501ab3835ac35258974e847
3b5d0a881e300203b9beb7c306a9663eb15ca174
/src/main/java/cn/namelesser/xsy/Account.java
f1fdb6b07210e6f62dc0fe98462a26d4afcc587f
[]
no_license
namelesser/xsy
11374bd26d28b2c684c2c4f569042ed3e1b0f112
c09411c3eb9f5bea2f76710cdca598389fb8b99c
refs/heads/master
2023-08-21T08:38:41.586084
2021-10-02T03:19:32
2021-10-02T03:19:32
352,283,077
0
0
null
null
null
null
UTF-8
Java
false
false
1,269
java
package cn.namelesser.xsy; public class Account { private String account; private String password; private int treadNumb; private int aimTime; public Account(String account, String password, int treadNumb, int aimTime) { this.account = account; this.password = password; this.treadNumb = treadNumb; this.aimTime = aimTime; } public String getAccount() { return account; } public void setAccount(String account) { this.account = account; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public int getTreadNumb() { return treadNumb; } public void setTreadNumb(int treadNumb) { this.treadNumb = treadNumb; } public int getAimTime() { return aimTime; } public void setAimTime(int aimTime) { this.aimTime = aimTime; } @Override public String toString() { return "Accounts{" + "account='" + account + '\'' + ", password='" + password + '\'' + ", treadNumb=" + treadNumb + ", aimTime=" + aimTime + '}'; } }
[ "4216952@qq.com" ]
4216952@qq.com
961314c89d193d345a1c531192063f1e882a5952
8b0ea6d27303154060a41d93584179a2ada1eab3
/src/test/java/service/RequestServiceTest.java
0d731acd6c885f84dda2048d71d96043ba4bb72b
[]
no_license
filmse/Fit-Up-Application
bf787d0f1cd25840f9b8511ecbed87c458aec602
fd8f2b4de41059869507668eb9264e298bb96964
refs/heads/master
2020-07-30T22:30:03.079983
2017-01-16T03:56:50
2017-01-16T03:56:50
73,617,449
0
0
null
null
null
null
UTF-8
Java
false
false
1,399
java
package service; import camt.FitUp.Project.dao.RequestDaoImpl; import camt.FitUp.Project.entity.Request; import org.junit.Assert; import org.junit.Test; import static junit.framework.TestCase.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * Created by Film on 19/12/2559. */ public class RequestServiceTest { @Test public void addRequestNotNull() { RequestDaoImpl requestDaoImpl = mock(RequestDaoImpl.class); Request request = mock(Request.class); when(requestDaoImpl.addRequest(request)).thenReturn(request); { when(request.getId()).thenReturn(1l); when(request.getRequest()).thenReturn("Admin i forgot password!!"); } assertNotNull(request); } @Test public void addRequestNull() { RequestDaoImpl requestDaoImpl = mock(RequestDaoImpl.class); Request request = mock(Request.class); when(requestDaoImpl.addRequest(request)).thenReturn(null); { when(request.getRequest()).thenReturn("Admin i forgot password!!"); } Request request1 = new Request(); request1.setRequest("Admin i forgot password!!"); Request result01 = request1.setRequest("Admin i forgot password!!"); Assert.assertNull(result01); } @Test public void deleteRequestNull() { } }
[ "filmpurelove@gmail.com" ]
filmpurelove@gmail.com
7f7ff6767e036a6f6dd159117140479cbe81186c
3b53f95b55d4e3b806beb2970e85cc07767bf46a
/HelloWorld/src/com/company/exercise2.java
660201f59fddebdeaeafd95b21691c7e084c3c78
[]
no_license
annuszka/javaTraining
0f290c3376bfefde774fef2551096fa9bef5d66d
b189b10cf008aaa5b33bb02fcce6797636cf5647
refs/heads/master
2020-07-15T08:45:20.405590
2019-09-01T08:57:38
2019-09-01T08:57:38
205,523,944
0
0
null
null
null
null
UTF-8
Java
false
false
544
java
package com.company; public class exercise2 { public static void main(String[] args) { String lorem = " Lorem Ipsum "; System.out.println("oryginał: " + lorem); System.out.println("bez spacji: " + lorem.trim()); System.out.println("duże litery: " + lorem.toUpperCase()); System.out.println("małe litery: " + lorem.toLowerCase()); System.out.println("długość: " + lorem.length()); boolean isEmpty = lorem.isEmpty(); System.out.println("czy puste: " + isEmpty); } }
[ "annrybak92@gmail.com" ]
annrybak92@gmail.com
291ea5d5fa6cfad6eecda4f6f1d605a9c0ac0b90
d1fb9903c3808c7b2edb54a4a1269e87a3a2987e
/src/questions/CountWords.java
7f4a4b2c758d61fb9ecbd265a9244e22080c6ba5
[]
no_license
Ecelik-git/questions
f40d42ea6fb3bde768c2a92a4e5cfe8beeb32a0d
ab8d3a0e37d2e83a9c94be682063c2ed6fab8c8f
refs/heads/master
2023-06-12T14:47:57.336370
2021-07-02T00:56:53
2021-07-02T00:56:53
376,325,996
0
0
null
null
null
null
UTF-8
Java
false
false
706
java
package questions; import java.util.Arrays; import java.util.Map; import java.util.Scanner; import java.util.function.Function; import java.util.stream.Collectors; public class CountWords { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Please enter a string"); String str = scan.nextLine(); countWord(str); scan.close(); } public static void countWord(String str) { str=str.replace(",", ""); String arr[] = str.split(" "); Map<String, Long> map01= Arrays.stream(arr).collect(Collectors. groupingBy(Function.identity(), Collectors.counting())); map01.forEach((key, value) -> System.out.println(key + "=" + value)); } }
[ "elvanchelik@gmail.com" ]
elvanchelik@gmail.com
508743437f06390e5ab5582ccd6c4dece07787af
e7eb5fef85a2af93462efe1e4e388b06234e556e
/SEENU_SPRING_JAVA/src/main/java/com/scs/model/NodeDataArray.java
a3371ddac3e8368367b7c8f3a992df0c0747f94a
[]
no_license
Seenu6394/SeenuJava
39d9ca7f2e4520a542f8f67191a6afc11453269b
9577646c50e27a0d74abf540853d722a60004647
refs/heads/master
2020-03-18T17:15:57.002802
2018-05-27T05:21:33
2018-05-27T05:21:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,781
java
package com.scs.model; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.scs.entity.model.Action; import com.scs.entity.model.Intent; import com.scs.entity.model.Response; public class NodeDataArray { private String category; @JsonProperty("class") private String classvar; private String text; private ActionModel action; private String isReadOnly; private String loc; private Long modelid; private String key; private Long orderId; private Long id; private List<RegExModel> regExs = new ArrayList<>(); private EntityModel entity; private DiamondModel decision; private Boolean order; private String required; private IntentModel intent; private WorkflowSequenceModel workflowSequence; private List<ResponseModel> response = new ArrayList<>(); private MessageModel message; private String intentName; private Boolean from; private Boolean to; public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public String getText() { return text; } public void setText(String text) { this.text = text; } public ActionModel getAction() { return action; } public void setAction(ActionModel action) { this.action = action; } public String getIsReadOnly() { return isReadOnly; } public void setIsReadOnly(String isReadOnly) { this.isReadOnly = isReadOnly; } public String getLoc() { return loc; } public void setLoc(String loc) { this.loc = loc; } public Long getModelid() { return modelid; } public void setModelid(Long modelid) { this.modelid = modelid; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public EntityModel getEntity() { return entity; } public void setEntity(EntityModel entity) { this.entity = entity; } public List<RegExModel> getRegExs() { return regExs; } public void setRegExs(List<RegExModel> regExs) { this.regExs = regExs; } public String getClassvar() { return classvar; } public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public DiamondModel getDecision() { return decision; } public void setDecision(DiamondModel decision) { this.decision = decision; } public void setClassvar(String classvar) { this.classvar = classvar; } public IntentModel getIntent() { return intent; } public WorkflowSequenceModel getWorkflowSequence() { return workflowSequence; } public MessageModel getMessage() { return message; } public void setMessage(MessageModel message) { this.message = message; } public void setWorkflowSequence(WorkflowSequenceModel workflowSequence) { this.workflowSequence = workflowSequence; } public void setIntent(IntentModel intent) { this.intent = intent; } public Boolean getFrom() { return from; } public Boolean getOrder() { return order; } public void setOrder(Boolean order) { this.order = order; } public void setFrom(Boolean from) { this.from = from; } public String getRequired() { return required; } public void setRequired(String required) { this.required = required; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Boolean getTo() { return to; } public void setTo(Boolean to) { this.to = to; } public String getIntentName() { return intentName; } public void setIntentName(String intentName) { this.intentName = intentName; } public List<ResponseModel> getResponse() { return response; } public void setResponse(List<ResponseModel> response) { this.response = response; } }
[ "srini@farabi.ae" ]
srini@farabi.ae
7beeb0c2676507c3466668977ca63fe1e74732c4
64b478d98178f910c2cced1f73ceb84f8740e4cf
/src/main/java/path06/homework06/ruble/FiftyRubleHandler.java
03b9099f1033fd8df0ddc807938e75d848a223af
[]
no_license
roman8361/Design-patterns
8484c5bb77c2d26b666b71c581d623324f7e45b9
946b31de32c7634844cf2c73803dd8c1e2d1f36f
refs/heads/master
2023-07-25T22:34:24.439589
2021-09-08T09:48:42
2021-09-08T09:48:42
309,309,236
0
0
null
null
null
null
UTF-8
Java
false
false
727
java
package path06.homework06.ruble; import path06.homework06.banknote.BanknoteHandler; import static path06.homework06.Bancomat.getCash; import static path06.homework06.Bancomat.setCash; public class FiftyRubleHandler extends BanknoteHandler { private int value; public FiftyRubleHandler(BanknoteHandler nextHandler) { super(nextHandler); this.value = 50; } @Override public boolean validate(String banknote) { if (getCash() / this.value > 0) { System.out.println("Отдано " + (getCash() / this.value) + " банкнот " + this.value + " (рублей)"); setCash(getCash() % this.value); } return super.validate(banknote); } }
[ "torex@inbox.ru" ]
torex@inbox.ru
89dec6b0afb04eebba0f1306619877920c2f9f21
6b88e163e6476ed86ce435ace7551120e935c265
/src/main/java/cn/com/huzhan/springboot/mapper/UserMapper.java
9c123a43e8202309e021d3dd075e358c9faeb5a3
[]
no_license
huzhan123/springboot3
dc186ba026e063fe663ffeff5f7cfdd2bdeafe51
f77d2bdebe412c92d82dea0404fce0a0f411b93f
refs/heads/master
2022-01-03T05:02:56.151347
2020-02-04T07:28:51
2020-02-04T07:28:51
237,923,465
0
0
null
2021-12-14T21:39:47
2020-02-03T09:00:58
JavaScript
UTF-8
Java
false
false
183
java
package cn.com.huzhan.springboot.mapper; import cn.com.huzhan.springboot.entity.User; /** * 用户Mapper代理对象 */ public interface UserMapper extends BaseMapper<User> { }
[ "345049517@qq.com" ]
345049517@qq.com
2af5f7c50af5c6db2d6461c4c6d58c85eeba731e
3e0dea945dd919a8f73b85c2e8a4bf0eca890ce4
/src/com/work/entity/Student.java
924f421f707bd7bba07bb0fb968b20bbeaa86c40
[]
no_license
mjmahesh9133/Spring-Hibernate-Demo
865adbbce3f4e5d50df0c31ff11951c48be8d4d3
985655f89599584c70a56b5c5e3f0fb88a35eb23
refs/heads/master
2020-06-19T20:41:14.453525
2019-07-14T17:24:16
2019-07-14T17:24:16
196,864,391
1
0
null
null
null
null
UTF-8
Java
false
false
1,850
java
package com.work.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; @Entity @Table(name="student") public class Student { @Id @Column(name="id") @GeneratedValue(generator="system-increment") @GenericGenerator(name="system-increment",strategy="increment") private Integer id; @Column(name="name") private String name; @Column(name="email") private String email; @Column(name="address") private String address; @Column(name="gender") private String gender; @Column(name="hobbies") private String hobbies; @Column(name="city") private String city; @Column(name="dateofbirth") private String dateofbirth; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } public String getHobbies() { return hobbies; } public void setHobbies(String hobbies) { this.hobbies = hobbies; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getDateofbirth() { return dateofbirth; } public void setDateofbirth(String dateofbirth) { this.dateofbirth = dateofbirth; } }
[ "Mahesh@DESKTOP-1IVFVV8" ]
Mahesh@DESKTOP-1IVFVV8
d494c5080cc53948270ac40dde7e9c03ac0f0661
47e63c6e8ec06130628fa9b81fb2256a6d0f41e7
/src/main/java/com/advancedswords/proxy/CommonProxy.java
981d6714d845a648dc23655e885afa267a05e11c
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
sblectric/AdvancedSwords
a97e16b9e2baf423684a571287699b76be3e6e39
0bb14971f8605da9d2634004f12164d54f5d47c5
refs/heads/master
2021-01-21T13:21:11.942644
2016-06-01T15:54:18
2016-06-01T15:54:18
53,456,820
0
0
null
null
null
null
UTF-8
Java
false
false
1,140
java
package com.advancedswords.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import com.advancedswords.blocks.ASBlocks; import com.advancedswords.config.ASConfig; import com.advancedswords.crafting.ASCraftingManager; import com.advancedswords.creativetabs.ASCreativeTabs; import com.advancedswords.integration.ASModIntegration; import com.advancedswords.items.ASItems; import com.advancedswords.items.swords.Swords; public class CommonProxy { public void preInit(FMLPreInitializationEvent event) { ASConfig.mainRegistry(event.getSuggestedConfigurationFile()); ASCreativeTabs.mainRegistry(); ASModIntegration.preInit(); } public void onInit(FMLInitializationEvent event) { ASBlocks.mainRegistry(); ASItems.mainRegistry(); ASCreativeTabs.updateCreativeTabs(); ASModIntegration.onInit(); } public void postInit(FMLPostInitializationEvent event) { ASCraftingManager.mainRegistry(); ASModIntegration.postInit(); Swords.finalizeSwords(); } }
[ "lightningcraftdev@gmail.com" ]
lightningcraftdev@gmail.com
8b8b6e4127295b5f35598482bc3fe49a7b42f22a
49712a9444da9513473b71a1685d6039d5817a42
/src/com/mainacad/service/CartService.java
1b02ff811895f4ed3ad8bef2ad9e63c7ce89fd03
[]
no_license
Masian4ik/WorkWithObjectsHomeWork
c2a8d9c0e28b9baaa2789b6af4455934156f6be5
c135f218e9eb6a7d8ec6fa61cab4595d9d85ec0a
refs/heads/master
2020-06-16T19:41:31.759186
2019-07-07T18:52:00
2019-07-07T18:52:00
195,682,263
0
0
null
null
null
null
UTF-8
Java
false
false
240
java
package com.mainacad.service; import com.mainacad.model.Cart; public class CartService { public static Double getTotalSum(Cart cart){ return cart.getOrder() .getAmount() * cart.getOrder() .getItem() .getPrice(); } }
[ "masiandr23@gmail.com" ]
masiandr23@gmail.com
329a3f8c8bb7ec258b14ca4d554b320c2f4f478d
a47a2a6af26d683f97b7148000d49630f0ef481e
/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/sql/table/TableDef.java
8d06d9106d6d5d970ad3f92a3f2f69ea64b2fb25
[ "Apache-2.0" ]
permissive
sivaranjanikannan/gst-foundation
22a6adc7011f66f9ed9349c4d8c769e95dbd324c
896914a61b8eca91a07239854ed5b222d57f1e93
refs/heads/master
2020-05-30T08:41:58.312261
2016-04-27T14:44:24
2016-04-27T14:44:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,268
java
/* * Copyright 2008 FatWire Corporation. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.fatwire.gst.foundation.facade.sql.table; import java.util.Collections; import java.util.LinkedList; import java.util.List; import com.fatwire.gst.foundation.facade.sql.table.TableColumn.Type; /** * The definition of a ContentServer database table * * @author Dolf Dijkstra * */ public class TableDef { private final String name; private final String acl; private final String type; private final List<TableColumn> columns = new LinkedList<TableColumn>(); /** * @param name the name of the table * @param acl the acl for the table * @param type the type of the table */ public TableDef(final String name, final String acl, final String type) { super(); this.name = name; this.acl = acl; this.type = type; } /** * @param col the column to add * @return the current TableDef, this. */ public TableDef addColumn(TableColumn col) { if (col.isPrimary()) { for (TableColumn current : columns) { if (current.isPrimary()) { throw new IllegalStateException("Table has already have a primary column"); } } } this.columns.add(col); return this; } /** * Adds a column to this table. * @param name the name of the column * @param type the type of the column * @param primary * @return the added TableColumn. */ public TableColumn addColumn(final String name, final Type type, final boolean primary) { TableColumn col = new TableColumn(name, type, primary); if (col.isPrimary()) { for (TableColumn current : columns) { if (current.isPrimary()) { throw new IllegalStateException("Table has already have a primary column"); } } } this.columns.add(col); return col; } /** * Adds a non primary column to this table. * @param name * @param type * @return the added TableColumn. */ public TableColumn addColumn(final String name, final Type type) { return addColumn(name, type, false); } public Iterable<TableColumn> getColumns() { return Collections.unmodifiableCollection(columns); } /** * @return the acl value */ public String getAcl() { return acl; } /** * @return the name value */ public String getName() { return name; } /** * @return the type value */ public String getType() { return type; } }
[ "dolf@dolf-M6600" ]
dolf@dolf-M6600
50dbe112419da0662c0ee8db5eb21bac588cf0fa
eb3b5ba615e51128162e37f089c283840543959c
/server/src/test/java/com/ofs/server/form/error/TypeErrorDigesterTest.java
addd5b214762b12a4caafb042d293abb90ee6065
[]
no_license
mwpenna/OFSServer
fa9d11e452ca9264acc0e53f579007d0b2c652e7
2d9bd441a5d19c2c2f59ea2a22f79be6672a29fe
refs/heads/master
2021-01-17T14:55:27.288044
2017-08-05T15:16:04
2017-08-05T15:16:04
83,676,683
0
0
null
null
null
null
UTF-8
Java
false
false
6,848
java
package com.ofs.server.form.error; import com.fasterxml.jackson.databind.JsonNode; import com.github.fge.jackson.JsonLoader; import com.github.fge.jsonschema.core.report.ProcessingMessage; import com.github.fge.jsonschema.core.report.ProcessingReport; import com.ofs.server.form.schema.JsonSchema; import com.ofs.server.form.schema.SchemaFactory; import com.ofs.server.model.OFSError; import com.ofs.server.model.OFSErrors; import org.junit.Before; import org.junit.Test; import java.io.IOException; import java.io.StringReader; import static junit.framework.TestCase.assertEquals; public class TypeErrorDigesterTest { private TypeErrorDigester objectUnderTest = new TypeErrorDigester(); private JsonSchema schema; @Before public void setUp() throws Exception { SchemaFactory factory = new SchemaFactory(); schema = factory.getJsonSchema(JsonLoader.fromResource("/errors/type-schema.json")); } @Test public void testGlobalType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("[\"Hello\", \"Goodbye\"]")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getGlobalErrors().size()); OFSError error = errors.getErrors().get(0); assertEquals("test.type_mismatch", error.getCode()); assertEquals(2, error.getProperties().size()); } @Test public void testSimplePropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"contact\":\"John\"}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("contact"); assertEquals("test.contact.type_mismatch", error.getCode()); } @Test public void testLowerCamelPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"ticketAmount\":\"string\"}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("ticketAmount"); assertEquals("test.ticket_amount.type_mismatch", error.getCode()); } @Test public void testLowerUnderscorePropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"street_name\":true}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("street_name"); assertEquals("test.street_name.type_mismatch", error.getCode()); } @Test public void testHyphenatedPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"currency-code\":22}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("currency-code"); assertEquals("test.currency_code.type_mismatch", error.getCode()); } @Test public void testSimpleSubObjectPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"contact\":{\"name\":22}}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("contact.name"); assertEquals("test.contact.name.type_mismatch", error.getCode()); } @Test public void testLowerCamelSubObjectPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"contact\":{\"phoneNumber\":22}}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("contact.phoneNumber"); assertEquals("test.contact.phone_number.type_mismatch", error.getCode()); } @Test public void testArrayEntityPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"customerId\":{\"href\":22}}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("customerId"); assertEquals("test.customer_id.type_mismatch", error.getCode()); } @Test public void testArrayItemPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"customerId\":[\"string\"]}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("customerId.items"); assertEquals("test.customer_id.items.type_mismatch", error.getCode()); } @Test public void testArraySubItemPropertyType() throws IOException { JsonNode json = JsonLoader.fromReader(new StringReader("{\"customerId\":[{\"href\":22}]}")); ProcessingReport report = schema.validateUnchecked(json, true); OFSErrors errors = processErrors(report, objectUnderTest, "type"); assertEquals(1, errors.getFieldErrors().size()); OFSError error = errors.getFieldError("customerId.items.href"); assertEquals("test.customer_id.items.href.type_mismatch", error.getCode()); } private OFSErrors processErrors(ProcessingReport report, ErrorDigester digester, String expectedKeyword) { OFSErrors errors = new OFSErrors(); for(ProcessingMessage msg : report) { JsonNode error = msg.asJson(); String keyword = error.findValue("keyword").asText(); assertEquals(expectedKeyword, keyword); digester.digest(errors, "test", error); } return errors; } }
[ "tworker@onyx.ove.com" ]
tworker@onyx.ove.com
6abe0e6b7b31ed6fb616ed5534b4107631108b28
dfd19f73959983091844450c7e88b22947938514
/jianzheng-server/src/main/java/com/jianzheng/server/dto/OrderDTO.java
0c31c1f52290fd3a6b37956e480845df57401c1e
[]
no_license
YellowSai/Mengyi-background-management
2f86a0bd6e216b3b839f69a5f75acfc1e12c53b7
86d86bf803990190b0df836bee5674c70da2f40c
refs/heads/master
2023-08-11T09:05:39.760395
2021-09-12T08:40:38
2021-09-12T08:40:38
405,585,438
0
0
null
null
null
null
UTF-8
Java
false
false
1,083
java
package com.jianzheng.server.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data public class OrderDTO { @ApiModelProperty(value = "ID(订单号)", dataType = "int", required = true) private String id; @ApiModelProperty(value = "客户公司", dataType = "String", required = true) private String customer; @ApiModelProperty(value = "接入时间", dataType = "java.util.Date", required = true) private java.util.Date startTime; @ApiModelProperty(value = "预计完成时间", dataType = "java.util.Date", required = true) private java.util.Date estimatedTime; @ApiModelProperty(value = "完成时间", dataType = "java.util.Date", required = true) private java.util.Date completeTime; @ApiModelProperty(value = "金额", dataType = "String", required = true) private double cost; @ApiModelProperty(value = "状态", dataType = "String", required = true) private String status; @ApiModelProperty(value = "制作", dataType = "String", required = true) private String producer; }
[ "1914432057@qq.com" ]
1914432057@qq.com
bcd9a6d30041ccc9ca3a0c543c4450c26613a1b5
0eb9f968b87a7df14fd472ae127cc32807b083fe
/app/src/main/java/com/example/alayesanmifemi/diagnose/MyDBHandler.java
cb0f528e808186b65b4f8397dbb561d7961b1ba8
[]
no_license
FemiOfficial/diagnose
ad14eb62f0624f8426f41ce3b5d88e211671aa71
3c5febee4acf8819f93fad23f89e67c0aa9a461c
refs/heads/master
2020-04-05T19:19:24.761814
2018-11-11T22:50:35
2018-11-11T22:50:35
157,128,977
1
0
null
null
null
null
UTF-8
Java
false
false
3,474
java
package com.example.alayesanmifemi.diagnose; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by Alayesanmi Femi on 24/09/2018. */ public class MyDBHandler extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 1; private static final String DATABASE_NAME = "diagnosis.db"; private static final String TABLE_USERS = "users"; private static final String COLUMN_ID_USERS = "id"; private static final String COLUMN_USERNAME_USERS = "username"; private static final String COLUMN_EMAIL_USERS = "email"; private static final String COLUMN_PASSWORD_USERS = "password"; public MyDBHandler(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) { super(context, DATABASE_NAME , factory, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { String query = String.format("CREATE TABLE %s(%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s TEXT, %s TEXT );", TABLE_USERS, COLUMN_ID_USERS, COLUMN_USERNAME_USERS, COLUMN_EMAIL_USERS, COLUMN_PASSWORD_USERS); db.execSQL(query); } @Override public void onUpgrade(SQLiteDatabase db, int i, int i1) { db.execSQL("DROP TABLE IF EXISTS " + TABLE_USERS); onCreate(db); } public void createUser(User user){ ContentValues values = new ContentValues(); values.put( COLUMN_USERNAME_USERS, user.getUsername()); values.put( COLUMN_EMAIL_USERS, user.getEmail()); values.put( COLUMN_PASSWORD_USERS, user.getPassword()); SQLiteDatabase db = getWritableDatabase(); db.insert(TABLE_USERS, null, values); db.close(); } public String[] userProfile(String pin) { String[] columns = { COLUMN_ID_USERS, COLUMN_EMAIL_USERS, COLUMN_EMAIL_USERS, COLUMN_PASSWORD_USERS }; String[] selectionsArgs = { pin }; SQLiteDatabase db = getWritableDatabase(); String query = COLUMN_EMAIL_USERS + " = ?" ; Cursor c = db.query(TABLE_USERS, columns, query, selectionsArgs, null,null,null); c.moveToFirst(); String[] dbString = new String[4]; if(c.getCount() != 0) { int column_id = c.getColumnIndex("id"); int column_password = c.getColumnIndex("password"); int column_email = c.getColumnIndex("email"); int column_username = c.getColumnIndex("user"); dbString[0] = c.getString(column_password); dbString[1] = c.getString(column_email); dbString[2] = c.getString(column_id); dbString[3] = c.getString(column_username); } c.close(); db.close(); return dbString; } public boolean checkUser(String pin){ String[] columns = { COLUMN_ID_USERS }; SQLiteDatabase db = this.getWritableDatabase(); String selection = COLUMN_PASSWORD_USERS + " = ?"; String[] selectionsArgs = { pin }; Cursor cursor = db.query(TABLE_USERS, columns, selection, selectionsArgs, null, null, null); int cursorCount = cursor.getCount(); cursor.close(); db.close(); if (cursorCount > 0) { return true; } return false; } }
[ "phemzyoflife@gmail.com" ]
phemzyoflife@gmail.com
9bf6b1882552e7ed17cd6a2aa0b698eadc341877
ab221187dd50822417003410e0a76a2c751d60c9
/app/src/test/java/com/example/android/authchallenge/ExampleUnitTest.java
093345d6e357e77aa07d5ee527b7fbfb8ecef67f
[]
no_license
ahmed-elhelow/AuthChallenge
97d6f3c3f07c36bcee0b670ac70c4b433f9a0069
3ac877001fe940a1b20a689b775520f36e0ae874
refs/heads/master
2020-03-25T03:25:14.240009
2018-08-05T19:33:39
2018-08-05T19:33:39
143,340,675
0
0
null
null
null
null
UTF-8
Java
false
false
326
java
package com.example.android.authchallenge; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "ahmed.elhelow@90daraga.com" ]
ahmed.elhelow@90daraga.com
4a7d66e41fee43a45a6fa80b9e29c735a6467599
1632025c49257123c32636b054bf4cd2b7d530b4
/src/main/java/br/com/zupacademy/guilhermesantos/transacao/dto/ModelEstabelecimentoResponseDTO.java
8e109c9c1c910001e85c6828aba39e7abee29d70
[ "Apache-2.0" ]
permissive
GuilhermeJWT/orange-talents-04-template-transacao
21bf0bdc13e90a3f8953d97747af6e0d0aacaa83
fc04aeda740ff4e261ca47df555bfd29d45dc90c
refs/heads/main
2023-05-05T03:55:45.076536
2021-05-28T20:36:10
2021-05-28T20:36:10
371,147,955
0
0
Apache-2.0
2021-05-26T19:29:45
2021-05-26T19:29:44
null
UTF-8
Java
false
false
571
java
package br.com.zupacademy.guilhermesantos.transacao.dto; import br.com.zupacademy.guilhermesantos.transacao.model.ModelEstabelecimento; public class ModelEstabelecimentoResponseDTO { private String nome; private String cidade; private String endereco; public ModelEstabelecimento converte(){ return new ModelEstabelecimento(nome, cidade, endereco); } public String getNome() { return nome; } public String getCidade() { return cidade; } public String getEndereco() { return endereco; } }
[ "guiromanno@gmail.com" ]
guiromanno@gmail.com
037d7a35989dce104569d5073c5cd4de19237e64
535e4c3575d742eb5d1f015ceaee23a4b9519934
/src/minecraft/me/moderator_man/osm/module/ModuleManager.java
e9b85114ada52870b7bd6f2f499daa37d3487e2c
[]
no_license
OldSchoolMinecraft/Client
755084ee085f8c01533c405f1afdaeb72308d1e9
7677dffda63539ab0c4f278359909d70d3c667b2
refs/heads/master
2022-08-26T20:05:26.206172
2020-02-26T22:32:01
2020-02-26T22:32:01
235,854,371
0
3
null
2020-02-04T03:19:11
2020-01-23T18:02:20
Java
UTF-8
Java
false
false
76
java
package me.moderator_man.osm.module; public class ModuleManager { }
[ "coderatorman@gmail.com" ]
coderatorman@gmail.com
6ee7573545cd9afd9ed99a5bc117fed3455503d0
c106e948c9f2e32f194904148bb911738ec31119
/src/main/java/com/bamboo/common/service/impl/GeneratorServiceImpl.java
a49e049d6eb950b6a32daeb65a693fa39aa655e3
[]
no_license
poseidon-ocean/bamboo
c03488825cc79c3ff4aaebeb7551285c89e6757c
f892c181987f918f22e4193275671e20f8e57ac1
refs/heads/master
2021-05-07T01:07:07.609394
2018-06-15T06:04:14
2018-06-15T06:04:14
110,209,434
0
0
null
null
null
null
UTF-8
Java
false
false
1,305
java
package com.bamboo.common.service.impl; import java.io.ByteArrayOutputStream; import java.util.List; import java.util.Map; import java.util.zip.ZipOutputStream; import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.bamboo.common.mapper.GeneratorMapper; import com.bamboo.common.service.GeneratorService; import com.bamboo.common.utils.GenUtils; @Service public class GeneratorServiceImpl implements GeneratorService { @Autowired GeneratorMapper generatorMapper; @Override public List<Map<String, Object>> list() { List<Map<String, Object>> list = generatorMapper.list(); return list; } @Override public byte[] generatorCode(String[] tableNames) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(outputStream); for(String tableName : tableNames){ //查询表信息 Map<String, String> table = generatorMapper.get(tableName); //查询列信息 List<Map<String, String>> columns = generatorMapper.listColumns(tableName); //生成代码 GenUtils.generatorCode(table, columns, zip); } IOUtils.closeQuietly(zip); return outputStream.toByteArray(); } }
[ "poseidon@163.com" ]
poseidon@163.com
a69f507f0efef31f0fd25c1b2bbe8932fb926e38
2b0e3ebc91ebba8ca063559cff1ff7abe5c12981
/ydl-dream-service/src/main/java/com/ydl/dream/service/dao/DoctorMapper.java
4e167a068219adca45042b61aa0d3786693cb411
[]
no_license
XinkaiGao/Dream
176bc7b6ae76b7ba8445cdb5bcd8cc788dd59c9e
0fc3055b4e4965d4e022ff6b42485c643fb07400
refs/heads/dev
2022-07-13T14:31:50.975753
2019-06-07T15:34:32
2019-06-07T15:34:32
163,392,078
0
0
null
2022-06-21T00:54:34
2018-12-28T09:25:37
Java
UTF-8
Java
false
false
268
java
package com.ydl.dream.service.dao; import com.ydl.common.service.BaseMapper; import com.ydl.dream.intf.po.Doctor; import java.util.List; public interface DoctorMapper extends BaseMapper<Doctor> { List<Doctor> queryDoctorByIdList(List<Integer> doctorIds); }
[ "xinkaiGao@gaoxinkais-MacBook-Pro.local" ]
xinkaiGao@gaoxinkais-MacBook-Pro.local
459484de0770711a7817fe49cbb068c1d5aebb7f
b6b7abe20b41eb6a67d9eabe4e0abe58a999f129
/CarRentAppServlet/src/main/java/com/sgsavch/controller/сommand/usercommands/ActivatedCommand.java
7574e151c6ab22edc877aa410c1c9c5cd5dc5a41
[]
no_license
Serg45f/fp_servlet
720553544810280b40141e7eedbe5ac12a12af62
7ae0f24391eca08685888e0d59204a3959d57c5a
refs/heads/main
2023-05-27T06:21:34.128291
2021-06-10T12:07:46
2021-06-10T12:07:46
366,308,792
0
0
null
null
null
null
UTF-8
Java
false
false
1,104
java
package com.sgsavch.controller.сommand.usercommands; import com.sgsavch.Path; import com.sgsavch.controller.сommand.Command; import com.sgsavch.controller.сommand.orderscommands.SetVehicleCommand; import com.sgsavch.model.service.UserService; import org.apache.log4j.Logger; import javax.servlet.http.HttpServletRequest; import java.sql.SQLException; public class ActivatedCommand implements Command { private static final Logger log = Logger.getLogger(ActivatedCommand.class); UserService userService; public ActivatedCommand(UserService userService) { this.userService = userService; } @Override public String execute(HttpServletRequest request) throws SQLException { String code = request.getParameter("code"); boolean isActivated = userService.activateUser(code); if (isActivated) { request.setAttribute("message", "Congratulations, user successfully activated!"); } else { request.setAttribute("message", "Sorry, but activation code has not found"); } return Path.PAGE__LOGIN; } }
[ "sgsavch75@gmail.com" ]
sgsavch75@gmail.com