blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
350521749e29fdc73ecb27065861dc4c7a8a92a0
d9f9aa34664d921032214894b444efe5712871f1
/李欢/Chapter10/作业/1/TestAdmin.java
d9f3868885b8598168e433855d2f88144d454994
[]
no_license
Newdream-College2019/nd-Java001
a636c10fd6b0bbc27db60938f1c80a92e86b6f3f
cefef82dee6acb04312d8d888e20b832b4c20c9b
refs/heads/master
2020-04-14T20:54:39.073987
2019-01-26T01:25:15
2019-01-26T01:25:15
164,110,923
0
0
null
null
null
null
GB18030
Java
false
false
822
java
package chapter10; import java.util.Scanner; public class TestAdmin { public static void main(String[] args) { Admin admin=new Admin(); admin.username="admin1"; admin.password="111111"; Admin admin2=new Admin(); admin2.username="admin2"; admin2.password="222222"; admin.show(); admin2.show(); Scanner input=new Scanner(System.in); System.out.print("\n请输入用户名:"); admin.username=input.next(); System.out.print("请输入密码:"); admin.password=input.next(); if(admin.username.equals("admin1")&&admin.password.equals("111111")){ admin.rePassword(); }else if(admin.username.equals("admin2")&&admin.password.equals("222222")){ admin.rePassword(); }else{ System.out.println("用户名和密码不匹配!您没有权限更新管理员信息。"); } } }
a166544654018b3ed4c05b8caf862e919e329527
72178719836873f0e48a5ab078cfabab1720fe95
/Calculadora/src/Calculadora.java
e2ace1ac2ace1fb81f7d4bd31b0b7ce01def0875
[]
no_license
calvod7/Practica_Calculadora
ba246f7cde59ac8d7b0b538c68dfbe220e82a3e3
89b3a9b2674c8861633dbaf00235f602e7ba7775
refs/heads/master
2021-01-17T23:38:47.829590
2017-03-08T20:02:54
2017-03-08T20:02:54
84,232,528
0
0
null
null
null
null
UTF-8
Java
false
false
1,131
java
/** * Esta clase tien como funcion una calculadora. * @author David Calvo * @version 08/02/2017 */ public class Calculadora { private int x, y; /** * @param x primer operador * @param y segundo operador */ public Calculadora(int x, int y) { super(); this.x = x; this.y = y; } /** * @return Retorna el valor del primer operador. */ public int getX() { return x; } /** * Pone valor al primer operador. * @param x primer operador */ public void setX(int x) { this.x = x; } /** * @return Retorna el valor del segundo operador. */ public int getY() { return y; } /** * Pone valor al segundo operador. * @param y segundo operador */ public void setY(int y) { this.y = y; } /** * Este metodo realiza una suma y lo muestra por pantalla. */ public void suma(){ System.out.println(this.getX() + this.getY()); } /** * Este metodo realiza una resta y lo muestra por pantalla. */ public void resta(){ System.out.println("Esta es la :"); System.out.println(this.getX() - this.getY()); } }
fccb9da96df06e210cc6d360f9b18c4650509ba6
24d9420c54b5551b476284b508440f2d3d9c231e
/angular-beans/src/main/java/angularBeans/context/SessionMapper.java
4204fb805ccb8560b4eda84f26b023e30599b13b
[]
no_license
antoinesd/AngularBeans
db49d376f46b4ef1edba76091405e19168e537e7
e72bbf96c063b27804fb54245c14acd5693190a9
refs/heads/master
2021-01-17T17:44:33.425783
2015-10-15T01:38:40
2015-10-15T01:38:40
38,692,433
2
1
null
2015-07-07T14:18:51
2015-07-07T14:18:51
null
UTF-8
Java
false
false
1,375
java
/* * AngularBeans, CDI-AngularJS bridge * * Copyright (c) 2014, Bessem Hmidi. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. * * This copyrighted material is made available to anyone wishing to use, modify, * copy, or redistribute it subject to the terms and conditions of the GNU * Lesser General Public License, as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * for more details. * */ package angularBeans.context; import java.util.HashMap; import java.util.Map; import java.util.Set; /** * map a group of sockJS sessions to the current HTTP session. * @author Bessem Hmidi * */ public class SessionMapper { private static Map<String, Set<String>> sessionsMap=new HashMap<String, Set<String>>(); public static Map<String, Set<String>> getSessionsMap() { return sessionsMap; } public static String getHTTPSessionID(String sockJSSessionID){ for(String httpSession:sessionsMap.keySet()){ if(sessionsMap.get(httpSession).contains(sockJSSessionID))return httpSession; } return null; } }
b36ee83a03c00a2cc84ca846315a26eb8cebc458
5bc916e3d0c2a924e1c6d8ebef5980e0ecb2ce3e
/src/Model/Compagnie.java
727fa98574a30bd490d8263d85125d9645c21b01
[]
no_license
faycelgnfd/Tech-Agent
36bc44cac447af43fc66c7181cb8257b10a8223b
028b384527fea7ee3d8c137fce97e60e54ff38fa
refs/heads/master
2023-06-16T17:40:52.921895
2021-07-11T09:53:51
2021-07-11T09:53:51
384,893,711
0
0
null
null
null
null
UTF-8
Java
false
false
534
java
package Model; import java.util.ArrayList; public class Compagnie { private String nom; private ArrayList<Vol> vols; public Compagnie(String nom) { this.nom = nom; this.vols = new ArrayList<Vol>(); } public String getNom() { return nom; } public void setNom(String nom) { this.nom = nom; } public ArrayList<Vol> getVols() { return vols; } public void setVols(ArrayList<Vol> vols) { this.vols = vols; } public void ajouterVol(Vol v) { this.vols.add(v); } }
c3351b872d27d85fcf02f341d3d5b85c960c6f98
9c84388b49a751497bd996cd2afaf2fdac2711bc
/src/main/java/edu/usc/csci310/team16/tutorsearcher/server/persistence/adapter/NotificationAdapter.java
11bf958970dce23a53a1ca0fc4bbc9acb607293d
[]
no_license
Tony1023/tUtorSearCher-server
c3fb8db8b48867e94d2ffc6eb80a97ac9be582d6
4143970009293793cfcc961553f068e64cf3b55b
refs/heads/master
2020-08-29T20:23:53.710220
2019-12-10T05:07:04
2019-12-10T05:07:04
218,165,099
0
0
null
null
null
null
UTF-8
Java
false
false
2,042
java
package edu.usc.csci310.team16.tutorsearcher.server.persistence.adapter; import edu.usc.csci310.team16.tutorsearcher.server.persistence.model.Notification; import edu.usc.csci310.team16.tutorsearcher.server.persistence.model.RequestOverlap; import java.util.ArrayList; import java.util.List; public class NotificationAdapter { public NotificationAdapter(Notification notification) { id = String.valueOf(notification.getId()); receiver_id = notification.getReceiver().getId(); sender_id = notification.getSender().getId(); req_id = notification.getRequest().getId(); sender_name = notification.getSender().getName(); type = notification.getReceiverType(); req_status = notification.getRequest().getStatus(); List<String> overlapStr = new ArrayList<>(); for (int i = 0; i < 28 * 7; ++i) { overlapStr.add("0"); } for (RequestOverlap slot: notification.getRequest().getOverlap()) { overlapStr.set(slot.getSlot(), "1"); } overlap = String.join("", overlapStr); if (req_status == 1) { msg = notification.getSender().getEmail(); } else { msg = ""; } } private String id; private long receiver_id; private long sender_id; private long req_id; private String sender_name; private int type; private int req_status; private String msg; private String overlap; public String getId() { return id; } public long getReceiver_id() { return receiver_id; } public long getSender_id() { return sender_id; } public long getReq_id() { return req_id; } public String getSender_name() { return sender_name; } public int getType() { return type; } public int getReq_status() { return req_status; } public String getMsg() { return msg; } public String getOverlap() { return overlap; } }
4753118e9134e9f0b3930d3fb30e0c3558be4ce4
ec78b6c687f8977d020dad28f01186b3092f44e1
/app/src/main/java/com/chinabsc/telemedicine/expert/entity/MiddlePatientEntity.java
b99cc45583cae3d1a87eb184427f90ab4fc82dc2
[]
no_license
o2bobo/Telemedicine
7f691fe4d68c1149f2ba00fa757b7f44f44a2744
8cfec27c5a9564f82820d4c134758697dc8c1f73
refs/heads/main
2023-04-19T07:02:20.826736
2021-04-30T15:17:08
2021-04-30T15:17:08
363,178,546
0
0
null
null
null
null
UTF-8
Java
false
false
14,203
java
package com.chinabsc.telemedicine.expert.entity; import java.util.List; public class MiddlePatientEntity { /** * code : 001 * data : [{"admissionId":"1338731","birthDate":"1933-06-05","cardId":"420400193306051016","gender":"男 ","hisId":"710073","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"朱心康","sickbedNumber":"21","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1339524","birthDate":"1980-01-01","cardId":"421022198019141859","gender":"男 ","hisId":"710838","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"刘勇","sickbedNumber":"46","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1339526","birthDate":"1962-03-14","cardId":"42242219620314001x","gender":"男 ","hisId":"710840","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"许宏平","sickbedNumber":"20","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1341649","birthDate":"1988-01-01","cardId":"420420198801010101","gender":"男 ","hisId":"712887","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"梅启华","sickbedNumber":"2","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1341743","birthDate":"1950-01-18","cardId":"422422195001182110","gender":"男 ","hisId":"712981","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"李克勤","sickbedNumber":"40","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1341919","birthDate":"1944-03-10","cardId":"420400194403101016","gender":"男 ","hisId":"713151","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"王典经","sickbedNumber":"32","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1342652","birthDate":"1946-12-24","cardId":"422432194612246564","gender":"女 ","hisId":"713861","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"苏小兰","sickbedNumber":"24","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343011","birthDate":"1953-09-21","cardId":"421087195309215017","gender":"男 ","hisId":"714193","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"王兴福","sickbedNumber":"42","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343105","birthDate":"1962-09-22","cardId":"430523196209226617","gender":"男 ","hisId":"714284","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"赵更祥","sickbedNumber":"43","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343357","birthDate":"1961-01-01","cardId":"4210221961112086019","gender":"男 ","hisId":"714526","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"廖全发","sickbedNumber":"19","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343478","birthDate":"1969-01-01","cardId":"42242119690114461X","gender":"男 ","hisId":"714642","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"李道尧","sickbedNumber":"1","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343852","birthDate":"1948-03-10","cardId":"422421194803100493","gender":"男 ","hisId":"715008","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"叶明山","sickbedNumber":"101","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343789","birthDate":"1990-01-08","cardId":"421087199001086712","gender":"男 ","hisId":"714949","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"张瑜","sickbedNumber":"6","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1343837","birthDate":"1960-03-20","cardId":"420400196003203514","gender":"男 ","hisId":"714992","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"张明付","sickbedNumber":"34","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344183","birthDate":"1950-02-17","cardId":"420400195002170568","gender":"女 ","hisId":"715337","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"王清珍","sickbedNumber":"7","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344321","birthDate":"1946-01-01","cardId":"","gender":"女 ","hisId":"715473","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"邓有芳","sickbedNumber":"26","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344332","birthDate":"1956-08-16","cardId":"422422195608166864","gender":"女 ","hisId":"715484","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"方国珍","sickbedNumber":"37","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344255","birthDate":"1951-04-02","cardId":"422425195104022434","gender":"男 ","hisId":"715408","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"杨儒林","sickbedNumber":"14","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344395","birthDate":"1958-03-16","cardId":"421004195803162538","gender":"男 ","hisId":"715552","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"徐上泽","sickbedNumber":"30","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344422","birthDate":"1965-04-01","cardId":"421003196504010022","gender":"女 ","hisId":"715577","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"刘全琴","sickbedNumber":"36","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344510","birthDate":"1969-06-23","cardId":"420400196906230521","gender":"女 ","hisId":"715662","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"杨军","sickbedNumber":"44","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344520","birthDate":"1970-02-05","cardId":"422423197002051847","gender":"女 ","hisId":"715672","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"孟祥梅","sickbedNumber":"9","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344524","birthDate":"1958-06-20","cardId":"422421195806201212","gender":"男 ","hisId":"715677","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"马於祯","sickbedNumber":"31","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344583","birthDate":"1948-01-26","cardId":"42108119480126562X","gender":"女 ","hisId":"715731","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"谭春爱","sickbedNumber":"28","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344926","birthDate":"1946-01-12","cardId":"422422194601120023","gender":"女 ","hisId":"716067","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"王绍芬","sickbedNumber":"45","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344929","birthDate":"1963-04-22","cardId":"422422196304223754","gender":"男 ","hisId":"716070","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"刘昌全","sickbedNumber":"3","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344962","birthDate":"1964-01-01","cardId":"","gender":"男 ","hisId":"716100","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"侯作普","sickbedNumber":"39","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1345123","birthDate":"1954-01-01","cardId":"422431195404122127","gender":"女 ","hisId":"716255","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"李文凤","sickbedNumber":"35","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1345133","birthDate":"1933-05-01","cardId":"420400193305011813","gender":"男 ","hisId":"716264","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"王云洪","sickbedNumber":"5","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1345176","birthDate":"1970-11-06","cardId":"422723197011061517","gender":"男 ","hisId":"716304","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"伍道根","sickbedNumber":"33","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1345393","birthDate":"1958-02-04","cardId":"421022195802045471","gender":"男 ","hisId":"716517","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"章应高","sickbedNumber":"48","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344071","birthDate":"1961-10-14","cardId":"422422196110140010","gender":"男 ","hisId":"715222","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"付良权","sickbedNumber":"38","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1344096","birthDate":"1954-01-03","cardId":"422421195401033302","gender":"女 ","hisId":"715248","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"王开年","sickbedNumber":"11","wardId":"2905","wardName":"肾内科一病区"},{"admissionId":"1345456","birthDate":"1992-05-14","cardId":"421024199205142514","gender":"男 ","hisId":"716573","infectedpatchId":"2905","infectedpatchName":"肾内科一病区","inpatientDate":"2018-11-24","patientName":"李朋朋","sickbedNumber":"16","wardId":"2905","wardName":"肾内科一病区"}] * message : 返回正确! */ private String code; private String message; private List<DataBean> data; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public List<DataBean> getData() { return data; } public void setData(List<DataBean> data) { this.data = data; } public static class DataBean { /** * admissionId : 1338731 * birthDate : 1933-06-05 * cardId : 420400193306051016 * gender : 男 * hisId : 710073 * infectedpatchId : 2905 * infectedpatchName : 肾内科一病区 * inpatientDate : 2018-11-24 * patientName : 朱心康 * sickbedNumber : 21 * wardId : 2905 * wardName : 肾内科一病区 */ private String admissionId; private String birthDate; private String cardId; private String gender; private String hisId; private String infectedpatchId; private String infectedpatchName; private String inpatientDate; private String patientName; private String sickbedNumber; private String wardId; private String wardName; public String getAdmissionId() { return admissionId; } public void setAdmissionId(String admissionId) { this.admissionId = admissionId; } public String getBirthDate() { return birthDate; } public void setBirthDate(String birthDate) { this.birthDate = birthDate; } public String getCardId() { return cardId; } public void setCardId(String cardId) { this.cardId = cardId; } public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } public String getHisId() { return hisId; } public void setHisId(String hisId) { this.hisId = hisId; } public String getInfectedpatchId() { return infectedpatchId; } public void setInfectedpatchId(String infectedpatchId) { this.infectedpatchId = infectedpatchId; } public String getInfectedpatchName() { return infectedpatchName; } public void setInfectedpatchName(String infectedpatchName) { this.infectedpatchName = infectedpatchName; } public String getInpatientDate() { return inpatientDate; } public void setInpatientDate(String inpatientDate) { this.inpatientDate = inpatientDate; } public String getPatientName() { return patientName; } public void setPatientName(String patientName) { this.patientName = patientName; } public String getSickbedNumber() { return sickbedNumber; } public void setSickbedNumber(String sickbedNumber) { this.sickbedNumber = sickbedNumber; } public String getWardId() { return wardId; } public void setWardId(String wardId) { this.wardId = wardId; } public String getWardName() { return wardName; } public void setWardName(String wardName) { this.wardName = wardName; } } }
6513c68fb901f995fe98f1b801e8ed183858d8e7
00231cbd47bbbbfa1e1a09f49986ec02362f3083
/src/com/datafast/transactions/callbacks/waitPrintReport.java
5b8e3198b6504e6313f1d64b8056b107f5ea552e
[]
no_license
dacarrascals/9220l_datafast_multiredes
0cf81a6109223d8f8f766f7945d44fb9235fd7f5
87240d719fc5a83d3b4db8dadf00d9a670309083
refs/heads/master
2023-08-01T05:22:12.090590
2021-09-15T19:42:43
2021-09-15T19:42:43
407,623,054
0
0
null
null
null
null
UTF-8
Java
false
false
123
java
package com.datafast.transactions.callbacks; public interface waitPrintReport { void getRspPrintReport(int status); }
6580a220d5932c9dde70b9f6d71885aef64b5b0e
318c1a1d99323f421fe9c2c2770f49afb87366df
/sw-marketing/src/main/java/com/zscat/marketing/wx/service/impl/WxServerService.java
5a03695495d7113a02bad553923c429c38d18abf
[]
no_license
narci2010/zscat
e4ec9cf22967bcfca377712263109238c751eccf
e2bf16aa804caff1594a6a81666bdf7d62f8c1c2
refs/heads/master
2021-01-21T22:35:27.978743
2017-09-01T10:24:46
2017-09-01T10:24:46
102,163,734
1
3
null
null
null
null
UTF-8
Java
false
false
5,290
java
package com.zscat.marketing.wx.service.impl; import com.zscat.marketing.wx.handler.LogHandler; import com.zscat.marketing.wx.handler.MsgHandler; import com.zscat.marketing.wx.handler.SubscribeHandler; import com.zscat.marketing.wx.handler.UnSubscribeHandler; import com.zscat.marketing.wx.service.IWxServerService; import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.exception.WxErrorException; import me.chanjar.weixin.mp.api.WxMpMessageRouter; import me.chanjar.weixin.mp.api.WxMpService; import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage; import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage; import me.chanjar.weixin.mp.bean.result.WxMpUser; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import javax.annotation.PostConstruct; import javax.annotation.Resource; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.List; /** * 微信核心业务实现 * * @author : zscat * @version : 1.0 * @created on : 2016/11/24 下午10:01 */ @Service public class WxServerService implements IWxServerService { protected Logger logger = LoggerFactory.getLogger(getClass()); @Resource protected WxMpService wxMpService; @Resource protected LogHandler logHandler; @Resource protected SubscribeHandler subscribeHandler; @Resource protected UnSubscribeHandler unSubscribeHandler; @Resource protected MsgHandler msgHandler; private WxMpMessageRouter router; @PostConstruct public void init() { this.refreshRouter(); } @Override public void requestGet(String urlWithParams) throws IOException { CloseableHttpClient httpclient = HttpClientBuilder.create().build(); HttpGet httpget = new HttpGet(urlWithParams); httpget.addHeader("Content-Type", "text/html;charset=UTF-8"); //配置请求的超时设置 RequestConfig requestConfig = RequestConfig.custom() .setConnectionRequestTimeout(50) .setConnectTimeout(50) .setSocketTimeout(50).build(); httpget.setConfig(requestConfig); CloseableHttpResponse response = httpclient.execute(httpget); logger.info("requestGet->StatusCode:{}",response.getStatusLine().getStatusCode()); HttpEntity entity = response.getEntity(); String jsonStr = EntityUtils.toString(entity); logger.info("requestGet->jsonStr:{}"); httpget.releaseConnection(); } @Override public void requestPost(String url, List<NameValuePair> params) throws ClientProtocolException, IOException { CloseableHttpClient httpclient = HttpClientBuilder.create().build(); HttpPost httppost = new HttpPost(url); httppost.setEntity(new UrlEncodedFormEntity(params, StandardCharsets.UTF_8)); CloseableHttpResponse response = httpclient.execute(httppost); logger.info("requestPost->response:{}",response); HttpEntity entity = response.getEntity(); String jsonStr = EntityUtils.toString(entity, "utf-8"); logger.info("requestPost->jsonStr:{}",jsonStr); httppost.releaseConnection(); } @Override public void refreshRouter() { final WxMpMessageRouter newRouter = new WxMpMessageRouter( this.wxMpService); // 记录所有事件的日志 newRouter.rule().handler(this.logHandler).next(); // 关注事件 newRouter.rule().async(false) .msgType(WxConsts.XML_MSG_EVENT) .event(WxConsts.EVT_SUBSCRIBE).handler(this.subscribeHandler).end(); //取消关注 newRouter.rule().async(false) .msgType(WxConsts.XML_MSG_EVENT) .event(WxConsts.EVT_UNSUBSCRIBE).handler(this.unSubscribeHandler).end(); // 默认,转发消息给客服人员 newRouter.rule().async(false).handler(this.msgHandler).end(); this.router = newRouter; } @Override public WxMpXmlOutMessage route(WxMpXmlMessage inMessage) { try { return this.router.route(inMessage); } catch (Exception e) { this.logger.error(e.getMessage(), e); } return null; } @Override public WxMpUser getUserInfo(String openid, String lang) { WxMpUser wxMpUser = null; try { wxMpUser = this.wxMpService.getUserService().userInfo(openid, lang); } catch (WxErrorException e) { this.logger.error(e.getError().toString()); } return wxMpUser; } /** * 初始化微信公众号菜单 */ @Override public void initMenu() { } }
b948d315f82d3ed82390b2e12344a33dbf34942a
676486f76a6a47c143ef056dfb0fd6b226c81cb3
/level6/Trees/PathSum.java
5472834cd0950924e2ee545ff6b87008d2a55f68
[]
no_license
dr28/InterviewBit
7a0771668bea71f6eae0bfc8a073276bc584838e
cb3e4107b7761a9fd1f792bf0f5ce7770913dd28
refs/heads/master
2021-09-06T08:10:36.380687
2018-02-04T06:34:47
2018-02-04T06:34:47
111,505,833
0
0
null
null
null
null
UTF-8
Java
false
false
1,465
java
package com.dr.level6.Trees; /*Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Example : Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ \ 7 2 1 return true, as there exist a root-to-leaf path 5->4->11->2 which sum is 22. Return 0 / 1 ( 0 for false, 1 for true ) for this problem*/ public class PathSum { public int hasPathSum(TreeNode a, int b) { if (a == null) return 0; b -= a.val; if (b == 0 && isLeaf(a)) { return 1; } int left = hasPathSum(a.left, b); int right = hasPathSum(a.right, b); return Math.max(left,right); } public boolean isLeaf(TreeNode root){ return (root.left == null) && (root.right == null); } public static void main(String args[]) { TreeNode tree = new TreeNode(5); tree.left = new TreeNode(4); tree.left.left = new TreeNode(11); tree.left.left.right = new TreeNode(2); tree.left.left.left = new TreeNode(7); tree.right = new TreeNode(8); tree.right.left = new TreeNode(13); tree.right.right = new TreeNode(4); tree.right.right.right = new TreeNode(1); System.out.println("Tree -- "+new PathSum().hasPathSum(tree, 22)); } }
52f5ffedc25f816c9b3bece9a0bcc4134284b95f
ae7ba9c83692cfcb39e95483d84610715930fe9e
/MyCATApache/Mycat-Web/src/main/java/org/mycat/web/jmonitor/JMEevntCenter.java
485c9e7438577688e2ede76927402dbc23fc79dd
[ "Apache-2.0" ]
permissive
xenron/sandbox-github-clone
364721769ea0784fb82827b07196eaa32190126b
5eccdd8631f8bad78eb88bb89144972dbabc109c
refs/heads/master
2022-05-01T21:18:43.101664
2016-09-12T12:38:32
2016-09-12T12:38:32
65,951,766
5
7
null
null
null
null
UTF-8
Java
false
false
1,857
java
package org.mycat.web.jmonitor; import java.util.concurrent.BlockingQueue; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.alibaba.fastjson.JSONObject; public class JMEevntCenter implements Runnable { private CopyOnWriteArrayList<JMEvevntListener> listeners = new CopyOnWriteArrayList<JMEvevntListener>(); private static final Logger log = LoggerFactory.getLogger(JMEevntCenter.class); private BlockingQueue<JSONObject> events = new LinkedBlockingQueue<JSONObject>(); private ExecutorService dispatchServer = Executors.newSingleThreadExecutor(); private static JMEevntCenter INSTANCE; private JMEevntCenter() { dispatchServer.execute(this); } public static JMEevntCenter getInstance() { if (INSTANCE == null) { synchronized (JMEevntCenter.class) { if (INSTANCE == null) { INSTANCE = new JMEevntCenter(); } } } return INSTANCE; } public void run() { while (!Thread.interrupted()) { try { JSONObject event = events.take(); for (JMEvevntListener listener : listeners) { listener.handle(event); } } catch (Exception e) { log.error("dispatch event error", e); } } } public void addListener(JMEvevntListener listener) { listeners.add(listener); } public void send(JSONObject event) { events.add(event); } public void close() { events.clear(); listeners.clear(); dispatchServer.shutdownNow(); } }
dad2fdd59dafb6a596007a5745a5d414b5931575
9c9c53974b3b3996a4c61fba38046987fb5911d6
/RPG-Fighting-games/code/src/pkg0313/drink/Decaf.java
544ba9816ebb9c95c0f985bc98cbcbceab3d1c8e
[]
no_license
shiguanghai/University-projects
38a8d77182320eb70153bfecb9e8b1a06c67c552
8005b20b0429ccdbc401c1ac138cabaf79896936
refs/heads/master
2023-05-04T04:13:20.976630
2021-05-27T08:00:55
2021-05-27T08:00:55
308,266,397
2
0
null
null
null
null
UTF-8
Java
false
false
165
java
package pkg0313.drink; public class Decaf extends Beverage { public Decaf() { super.description = "Decaf"; } public double cost() { return 1.05; } }
702aeb40298d8f98eefb5a3ecc322c747846b35e
c7017be1b530f1a2ebe027da157e51e3ed11f677
/main/java/com/example/wordsapp/WordDetailActivity.java
5e4ba09b129ee78b77f91ec331741bfb0553c2a9
[]
no_license
2017011153/Word-App
18c7db2e673f3c237a2c34fb7a6b398792d51027
e6e116f7a5c477039d945081e0ce6e2cdf449c34
refs/heads/master
2020-09-13T18:27:25.995877
2019-11-24T15:03:53
2019-11-24T15:03:53
222,867,966
0
0
null
null
null
null
UTF-8
Java
false
false
1,118
java
package com.example.wordsapp; import android.content.res.Configuration; import android.net.Uri; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; public class WordDetailActivity extends AppCompatActivity implements com.example.wordsapp.WordDetailFragment.OnFragmentInteractionListener{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //横屏退出 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { finish(); return; } if (savedInstanceState == null) { com.example.wordsapp.WordDetailFragment detailFragment = new com.example.wordsapp.WordDetailFragment(); detailFragment.setArguments(getIntent().getExtras()); getFragmentManager() .beginTransaction() .add(android.R.id.content, detailFragment) .commit(); } } @Override public void onWordDetailClick(Uri uri) { } }
3826bb44ae1a350078925c593950d14f13e1a60a
8d884949c6d01ce0225038e88734f7a05889d8b6
/dziemke/src/main/java/playground/dziemke/cemdapMatsimCadyts/oneperson/DemandGeneratorOnePersonV2.java
b94f33c4d832a54bc6c56a366c903712a0993c4c
[]
no_license
matsim-vsp/vsp-playgrounds
790c43acd5492f6c81dbeca56b52e0a269b35c9e
4e1da810533bfafd890a50eb945efadf42375c65
refs/heads/master
2022-05-26T16:08:38.044357
2022-05-11T12:27:36
2022-05-11T12:27:36
123,579,086
7
7
null
2022-03-16T10:42:27
2018-03-02T12:55:30
Java
UTF-8
Java
false
false
14,965
java
/* *********************************************************************** * * project: org.matsim.* * * * * *********************************************************************** * * * * copyright : (C) 2008 by the members listed in the COPYING, * * LICENSE and WARRANTY file. * * email : info at matsim dot org * * * * *********************************************************************** * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * See also COPYING, LICENSE and WARRANTY file * * * * *********************************************************************** */ package playground.dziemke.cemdapMatsimCadyts.oneperson; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import org.apache.log4j.Logger; import playground.dziemke.cemdapMatsimCadyts.CommuterFileReader; import playground.dziemke.cemdapMatsimCadyts.CommuterRelation; import playground.dziemke.utils.LogToOutputSaver; import playground.dziemke.utils.TwoAttributeShapeReader; /** * @author dziemke */ public class DemandGeneratorOnePersonV2 { private static final Logger log = Logger.getLogger(DemandGeneratorOnePersonV2.class); public static void main(String[] args) { // Parameters double scalingFactor = 0.01; double carShareInterior = 1.; double carShareExterior = 1.; double allWorkersToSociallySecuredWorkersRatio = 1.52; double adultsToWorkersRatio = 1.9; double expansionFactor = 1.; int numberOfPlansPerPerson = 3; // Gemeindeschluessel of Berlin is 11000000 (Gemeindeebene) and 11000 (Landkreisebene) Integer planningAreaId = 11000000; // Input and output files String commuterFileIn = "../../../../CemdapMatsimCadyts/Data/BA-Pendlerstatistik/Berlin2009/B2009Ge.txt"; String commuterFileOut = "../../../../CemdapMatsimCadyts/Data/BA-Pendlerstatistik/Berlin2009/B2009Ga.txt"; String shapeFileMunicipalities = "../../../shared-svn/projects/cemdapMatsimCadyts/scenario/shapefiles/gemeindenBerlin.shp"; String shapeFileLors = "../../../shared-svn/projects/cemdapMatsimCadyts/scenario/shapefiles/Bezirksregion_EPSG_25833.shp"; String outputBase = "../../../shared-svn/projects/cemdapMatsimCadyts/scenario/cemdap_berlin/25/"; LogToOutputSaver.setOutputDirectory(outputBase); // Create a PendlerMatrixReader and store its output to a list CommuterFileReader commuterFileReader = new CommuterFileReader(shapeFileMunicipalities, commuterFileIn, carShareExterior, commuterFileOut, carShareInterior, scalingFactor * allWorkersToSociallySecuredWorkersRatio * adultsToWorkersRatio * expansionFactor, planningAreaId); List<CommuterRelation> commuterRelationList = commuterFileReader.getCommuterRelations(); // Create storage objects Map<Integer, String> lors = new HashMap<Integer, String>(); Map<Integer, SimpleHousehold> householdMap = new HashMap<Integer, SimpleHousehold>(); Map<Integer, Map<String, SimplePerson>> mapOfPersonMaps = new HashMap<Integer, Map<String, SimplePerson>>(); for (int i=1; i<=numberOfPlansPerPerson; i++) { Map<String, SimplePerson> persons = new HashMap<String, SimplePerson>(); mapOfPersonMaps.put(i, persons); } // Read in LORs TwoAttributeShapeReader.readShape(shapeFileLors, lors, "SCHLUESSEL", "LOR"); // Create households and persons int householdIdCounter = 1; for (int i = 0; i<commuterRelationList.size(); i++){ int quantity = commuterRelationList.get(i).getQuantity(); int source = commuterRelationList.get(i).getFrom(); int sink = commuterRelationList.get(i).getTo(); for (int j = 0; j<quantity; j++){ // Create households int householdId = householdIdCounter; int homeTSZLocation; if (source == planningAreaId){ homeTSZLocation = getRandomLor(lors); } else { homeTSZLocation = source; } SimpleHousehold household = new SimpleHousehold(householdId, homeTSZLocation); householdMap.put(householdId, household); // Create persons int sex = getSex(); int age = getAge(); String personId = householdId + "01"; int employed; if (age > 65) { employed = 0; } else { employed = getEmployedWorkingAge(); } int student; // We make the assumption that students are not employed at the same time and that students are // aged less than 30 years if (employed == 0 && age < 30) { student = getStudent(); } else { student = 0; } for (int k=1; k<=numberOfPlansPerPerson; k++) { int locationOfWork; if (sink == planningAreaId){ locationOfWork = getRandomLor(lors); } else { locationOfWork = sink; } if (employed == 0) { locationOfWork = -99; } int locationOfSchool; if (sink == planningAreaId){ locationOfSchool = getRandomLor(lors); } else { locationOfSchool = sink; } if (student == 0) { locationOfSchool = -99; } SimplePerson person = new SimplePerson(personId, householdId, employed, student, locationOfWork, locationOfSchool, sex, age); mapOfPersonMaps.get(k).put(personId, person); } householdIdCounter++; } } writeHouseholdsFile(mapOfPersonMaps.get(1), householdMap, outputBase + "households.dat"); for (int i=1; i<=numberOfPlansPerPerson; i++) { writePersonsFile(mapOfPersonMaps.get(i), outputBase + "persons" + i + ".dat"); } } private static int getSex() { Random r = new Random(); double randomNumber = r.nextDouble(); // assume that both sexes are equally frequent for every age, work status etc. // TODO this can clearly be improved, IPF etc. if (randomNumber < 0.5) { return 1; } else { return 0; } } private static int getAge() { int ageRange = getAgeRange(); switch (ageRange) { case 1: return getAgeInRange(18, 19); case 2: return getAgeInRange(20, 24); case 3: return getAgeInRange(25, 29); case 4: return getAgeInRange(30, 34); case 5: return getAgeInRange(35, 39); case 6: return getAgeInRange(40, 44); case 7: return getAgeInRange(45, 59); case 8: return getAgeInRange(60, 64); case 9: return getAgeInRange(65, 90); default: throw new RuntimeException("No age range met."); } } private static int getAgeRange() { Random r = new Random(); // cf. p. 11 of statistic of 2012 int populationInWorkingAge = 2932167; double randomNumber = r.nextDouble() * populationInWorkingAge; if (randomNumber < 54469) {return 1;} if (randomNumber < 54469+222434) {return 2;} if (randomNumber < 54469+222434+284440) {return 3;} if (randomNumber < 54469+222434+284440+277166) {return 4;} if (randomNumber < 54469+222434+284440+277166+228143) {return 5;} if (randomNumber < 54469+222434+284440+277166+228143+256192) {return 6;} if (randomNumber < 54469+222434+284440+277166+228143+256192+755482) {return 7;} if (randomNumber < 54469+222434+284440+277166+228143+256192+755482+198908) {return 8;} if (randomNumber < 54469+222434+284440+277166+228143+256192+755482+198908+654933) {return 9;} else { throw new RuntimeException("No age selected."); } } private static int getAgeInRange(int rangeMin, int rangeMax) { Random r = new Random(); int randomAge = (int) (rangeMin + (rangeMax - rangeMin) * r.nextDouble()); return randomAge; } private static int getEmployedWorkingAge() { Random r = new Random(); double randomNumber = r.nextDouble(); // Population aged 18 through 65 (2277234) is 1.48 times as high as number of Erwerbstaetige (1543825) // 100 out of 148 are determined to be employed if (randomNumber < 1/1.48) { return 1; } else { return 0; } } private static int getStudent() { Random r = new Random(); double randomNumber = r.nextDouble(); // Old (used in V2 until cemdap_berlin/21: No. of students in Berlin (150000) divided by non-employed population aged 18-29 (266000) // Number of students in Berlin (150000) divided by non-employed population aged 18-29 (181000) if (randomNumber < 150/181.) { return 1; } else { return 0; } } private static Integer getRandomLor(Map<Integer, String> lors) { List <Integer> keys = new ArrayList<Integer>(lors.keySet()); Random random = new Random(); Integer randomLor = keys.get(random.nextInt(keys.size())); return randomLor; } public static void writePersonsFile(Map <String, SimplePerson> persons, String fileName) { BufferedWriter bufferedWriterPersons = null; try { File personFile = new File(fileName); FileWriter fileWriterPersons = new FileWriter(personFile); bufferedWriterPersons = new BufferedWriter(fileWriterPersons); for (SimplePerson person : persons.values()) { int householdId = person.getHouseholdId(); int personId = Integer.parseInt(person.getpersonId().toString()); int employed = person.getEmployed(); int student = person.getStudent(); int driversLicence = person.getDriversLicence(); int locationOfWork = person.getLocationOfWork(); int locationOfSchool = person.getLocationOfSchool(); int female = person.getSex(); int age = person.getAge(); int parent = person.getParent(); // altogether this creates 59 columns = number in query file // TODO check if column position is correct, especially for "age" and "parent" bufferedWriterPersons.write(householdId + "\t" + personId + "\t" + employed + "\t" + student + "\t" + driversLicence + "\t" + locationOfWork + "\t" + locationOfSchool + "\t" + female + "\t" + age + "\t" + parent + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 ); bufferedWriterPersons.newLine(); } } catch (FileNotFoundException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } finally { //Close the BufferedWriter try { if (bufferedWriterPersons != null) { bufferedWriterPersons.flush(); bufferedWriterPersons.close(); } } catch (IOException ex) { ex.printStackTrace(); } } log.info("Persons file " + fileName + " written."); } public static void writeHouseholdsFile(Map <String, SimplePerson> persons, Map<Integer, SimpleHousehold> households, String fileName) { BufferedWriter bufferedWriterHouseholds = null; try { File householdsFile = new File(fileName); FileWriter fileWriterHouseholds = new FileWriter(householdsFile); bufferedWriterHouseholds = new BufferedWriter(fileWriterHouseholds); int householdIdFromPersonBefore = 0; // Use map of persons to write a household for every person under the condition that the household does not // already exist (written from another persons); used to enable the potential use of multiple-person households. // TODO use proper household sizes for (String key : persons.keySet()) { int householdId = persons.get(key).getHouseholdId(); if (householdId != householdIdFromPersonBefore) { int numberOfAdults = households.get(householdId).getNumberOfAdults(); int totalNumberOfHouseholdVehicles = households.get(householdId).getTotalNumberOfHouseholdVehicles(); int homeTSZLocation = households.get(householdId).getHomeTSZLocation(); int numberOfChildren = households.get(householdId).getNumberOfChildren(); int householdStructure = households.get(householdId).getHouseholdStructure(); // Altogether this creates 32 columns = number in query file bufferedWriterHouseholds.write(householdId + "\t" + numberOfAdults + "\t" + totalNumberOfHouseholdVehicles + "\t" + homeTSZLocation + "\t" + numberOfChildren + "\t" + householdStructure + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0 + "\t" + 0); bufferedWriterHouseholds.newLine(); householdIdFromPersonBefore = householdId; } } } catch (FileNotFoundException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } finally { //Close the BufferedWriter try { if (bufferedWriterHouseholds != null) { bufferedWriterHouseholds.flush(); bufferedWriterHouseholds.close(); } } catch (IOException ex) { ex.printStackTrace(); } } log.info("Households file " + fileName + " written."); } }
35745d6b17c390c97b51920e0cbd967e8a97444e
e9032ec515997e96f8d907f88000a090ea574f24
/src/main/java/com/imooc/utils/JsonUtils.java
48d10ee07c2093bdb71f2f1e1aac9cc0a90af973
[]
no_license
a8520238/spring-netty
6a67bd6791d276e888dc7e50570c25015e2489dd
65bd0d918e880267cf6b8e249bff8ad4534d97d2
refs/heads/main
2023-03-10T04:00:49.936581
2021-02-18T05:49:18
2021-02-18T05:49:18
339,948,632
0
0
null
null
null
null
UTF-8
Java
false
false
1,804
java
package com.imooc.utils; import java.util.List; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; /** * @Description: 自定义响应结构, 转换类 */ public class JsonUtils { // 定义jackson对象 private static final ObjectMapper MAPPER = new ObjectMapper(); /** * 将对象转换成json字符串。 * <p>Title: pojoToJson</p> * <p>Description: </p> * @param data * @return */ public static String objectToJson(Object data) { try { String string = MAPPER.writeValueAsString(data); return string; } catch (JsonProcessingException e) { e.printStackTrace(); } return null; } /** * 将json结果集转化为对象 * * @param jsonData json数据 * @param clazz 对象中的object类型 * @return */ public static <T> T jsonToPojo(String jsonData, Class<T> beanType) { try { T t = MAPPER.readValue(jsonData, beanType); return t; } catch (Exception e) { e.printStackTrace(); } return null; } /** * 将json数据转换成pojo对象list * <p>Title: jsonToList</p> * <p>Description: </p> * @param jsonData * @param beanType * @return */ public static <T>List<T> jsonToList(String jsonData, Class<T> beanType) { JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType); try { List<T> list = MAPPER.readValue(jsonData, javaType); return list; } catch (Exception e) { e.printStackTrace(); } return null; } }
35a92951a6f974a4bc23f1848f6c178c68c8c172
335f4c42b064004b2f0a0a6254ff1ff5c38e56e9
/src/main/java/hello/core/MemberApp.java
f5c6e798f799cb5f2ec5c0f3ad925ce5bbe0d521
[]
no_license
hjun-park/spring-principles-basic
a9fbb6daa9ac92dfd866060afd8efea7d009fe45
72f043f0f83eea8f5f0eda401df6d83a3c257d9f
refs/heads/master
2023-03-20T19:11:48.889287
2021-03-30T13:28:12
2021-03-30T13:28:12
341,549,595
0
0
null
null
null
null
UTF-8
Java
false
false
1,634
java
package hello.core; import hello.core.member.Grade; import hello.core.member.Member; import hello.core.member.MemberService; import hello.core.member.MemberServiceImpl; import hello.core.order.OrderService; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class MemberApp { // psvm public static void main(String[] args) { // 기존방식 // MemberService memberService = new MemberServiceImpl(); // AppConfig appConfig = new AppConfig(); // // memberService 달라고 하면 appConfig에서 다 결정을 해서 memberServiceImpl 줌 // MemberService memberService = appConfig.memberService(); // 스프링 사용 ( 스프링 컨테이너가 모든 객체들을 관리함 ) // appconfig에 있는 환경 설정을 가지고 @Bean 가지고 있는 것들을 스프링 컨테이너에 넣어서 다 관리해줌 ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); // config에서 멤버서비스 이름을 적어주고 두번째는 반환타입을 적어주는 거임 MemberServiceImpl memberService = applicationContext.getBean("memberService", MemberServiceImpl.class); Member member = new Member(1L, "memberA", Grade.VIP); memberService.join(member); // find member Member findMember = memberService.findMember(1L); System.out.println("new member = " + member.getName()); System.out.println("findMember = " + findMember.getName()); // sout } }
af3e729d90f43a308685b24009a9bf46a48e1c15
daa04d1b142abc28525f30222be667797628d476
/src/main/java/com/nombremystere/Game 2.java
402818393a3cf19c4ea46df850bf3cbc5508dbc7
[]
no_license
SStaili/LeNumberGuesser
8c98541a6eca05343d87a683758f1994d094b0cd
a3ed0f912db0d3595890a17b6c5602123df71b19
refs/heads/main
2023-03-28T13:52:45.259249
2021-03-28T19:31:17
2021-03-28T19:31:17
347,645,952
0
0
null
null
null
null
UTF-8
Java
false
false
619
java
package com.nombremystere; import java.util.Scanner; public class Game { public static void main(String[] args) { // TODO Auto-generated method stub int choice = 0; Nombre n = new Nombre(); n.Generer(); do { System.out.println("1. Deviner un nombre"); System.out.println("2. Challenge IA"); System.out.println("3. Quitter l'application"); Scanner sc = new Scanner(System.in); choice = sc.nextInt(); switch(choice) { case 1: n.Comparer(); break; case 2: break; } }while(choice != 3); System.out.println("Fin du programme"); } }
bdf60678bb857fbeec9958869dc2d09ed72dd6b3
822fe54e7e8c028e946ee438294ec961a3f439c5
/src/main/java/com/javaweb/constant/SystemConstant.java
f265ceb7cb78221a60e08495c625910796c3ab2c
[]
no_license
lediep2809/R4R_WEB-room_for_rent-
c8e059c6113d0f2a1949826266dee86d28836eff
7d9500be6f3d9251c932544fd2b7169bbcc3b667
refs/heads/master
2023-02-17T09:47:12.736255
2021-01-18T19:12:51
2021-01-18T19:12:51
330,716,353
0
0
null
null
null
null
UTF-8
Java
false
false
282
java
package com.javaweb.constant; public class SystemConstant { public static final String MODEL = "model"; public static final String ADMIN = "ADMIN"; public static final String USER = "USER"; public static final String LIST = "list"; public static final String EDIT = "edit"; }
531823757d6e80540167a9e698802d67db598407
473dbd28935fa248dd9575c5533786b76419fcde
/src/main/java/com/personal/xwei/leetcode/_0003LongestSubstringWithoutRepeatingCharacters.java
218e7ff33d5401c4450855a1f6ebc2e7fdda5a28
[]
no_license
mikexwei/xweicode
fa6ae2762e8a8feea37cee7c2a655c6e61ac8b4a
11945efc16784db834853733c5ebe8c1528f90e1
refs/heads/master
2023-03-07T00:58:33.902710
2023-02-21T04:44:19
2023-02-21T04:44:19
167,670,501
0
0
null
2021-03-31T20:59:43
2019-01-26T09:14:43
Java
UTF-8
Java
false
false
33,036
java
package com.personal.xwei.leetcode; import java.util.HashSet; import java.util.Set; public class _0003LongestSubstringWithoutRepeatingCharacters { public static int lengthOfLongestSubstring(String s) { // int len = s.length(); // if (len == 0) return 0; // if (len == 1) return 1; // int length = len - 1; // while (length > 0) { // for (int i = 0; i + length < len; i++) { // boolean nodupe = true; // Set<Character> set = new HashSet<>(); // // for (int j = i; j <= i + length; j++) { // if (!set.contains(s.charAt(j))) set.add(s.charAt(j)); // else { // nodupe = false; // break; // } // } // if (nodupe) { // System.out.println(i); // // return length + 1; // } // } // length--; // } // return 1; int n = s.length(); int i = 0, j = 0; Set<Character> set = new HashSet<>(); int result = 0; while (i < n && j < n) { if (!set.contains(s.charAt(j))) { result = Math.max(result, j - i + 1); set.add(s.charAt(j)); j++; } else { set.remove(s.charAt(i)); i++; } } return result; } public static void main(String[] args) { String s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCD"; System.out.println(lengthOfLongestSubstring(s)); } }
3b3127e5f9903f2dfae8fbce72bc94b8488539ff
00c238ae526fc79c9c2a7d1867f72d802bba8e1c
/app/src/main/java/edu/cnm/deepdive/videopoker/Analyzer.java
b5a2cff3241ff0d2e9756b74fb11c40d6a0cc54a
[ "Apache-2.0" ]
permissive
jscpeterson/video-poker-android
f7d5159635ad8c795c3dfee730784c604be9639d
48889c4f5d39253159032cf51359544951eabfaf
refs/heads/master
2020-04-01T10:37:32.458090
2018-12-10T04:52:44
2018-12-10T12:22:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,496
java
package edu.cnm.deepdive.videopoker; /** * When implemented, this class will analyze the estimated value of a given hand. */ public class Analyzer { //Calculate estimated value of hand //for each payout greater than 0 // calculate the probability to get the hand ?? // hold 5 /* Strategy number 1 is easy - just keep all 5 cards. All you have to do is evaluate what kind of poker hand you have, and look up the amount in the “Payoff Table”. Using the given “Payoff Table” as an example, a pat hand with a Straight is worth $4. This becomes the “Expected Value” for this particular poker hand for strategy number 1. */ // hold 4 //combinations of 5 can be taken out of 4 /* Things start getting more complicated when you draw one or more cards. For strategy number two, let’s assume that you are going to discard the leftmost card in your hand and replace it with one of the remaining 47 cards in the deck. Each of these other 47 possible draws is equally likely. A computer program would systematically try all 47 possible draws, evaluate the result of each, look up the value of each of these results in the “Payoff Table”, keep a running total for all of these payoffs, and finally divide by the number of possible draws. (In this case, this is 47 possible draws.) The result is the “Expected Value” for strategy number two. */ // hold 3 /* Things get deeper if you draw 2 cards. There are 10 possible ways that you can discard 2 cards and replace them with two other cards from the remaining deck. For each of these ten possible strategies there are COMBIN(47,2) = 1,081 possible card combinations that could be drawn. This time, for each of the 10 strategies, the computer program would generate all 1081 possible draws, evaluate the result, use the “Payoff Table” to find the valuation, add all the payoffs together, and finally divide by COMBIN(47,2) to get the expected value for each of these 10 possible strategies. */ // hold 2 /* If you draw 3 cards, the combinations get still deeper. Now for each of the 10 possible strategies, the computer has to check COMBIN(47,3) = 16,215 possible draw combinations. */ // hold 1 /* If you draw 4 cards, there are 5 possible strategies. Each of these has COMBIN(47,4) = 178,365 possible draw combinations. */ // discard all /* Finally, if you draw 5 cards, there are COMBIN(47,5) = 1,533,939 different draw possibilities. */ }
ab0f7183bf4425767f8a0277edab5604980f49cd
8bf77532bc9bc963bd210820453784045bc1167e
/CPS350_LinkedLists/src/Node.java
2b5aeadbd9ce0b923570332601d1122621112779
[]
no_license
dport17/Freshman_Junior_Code
cb47a744739ba75e52774733cd9a6ef0ffcc9df3
ddcca9f904e2609d7a1fc95c6bb9f6fac051b584
refs/heads/master
2023-07-19T17:32:36.925769
2021-08-21T02:40:20
2021-08-21T02:40:20
218,590,678
0
0
null
null
null
null
UTF-8
Java
false
false
501
java
public class Node { String name; Node next; Node(){ //initialize an empty Node, with no node following it. name=""; next=null; }//end empty Node constructor Node(final String str, final Node nextNode){ //Initialize a Node with name=str; next=nextNode; }//end populated Node constructor Node(final Node node){ this.name=node.name; next=node.next; }//end Node copy constructor Node(final String str){ name=str; next=null; } }//end Node
4371f659adedcb35a814a64aa5db1e9053f4c150
d531fb2aac142fd3afcd20b286daab6727c66fe5
/PocketCv/app/src/main/java/com/example/user/pocketcv/MainActivityPocket.java
b5323700c78ca136f6b67067688a84b0ca437e34
[]
no_license
ArvidQuarshie/androidprojects
d647697c44649cfcabca01a90a7bde7708378eb9
ac3b6d2bf36250dcf14c1478766229c920d7eea1
refs/heads/master
2021-01-09T23:39:43.565726
2016-05-30T08:08:44
2016-05-30T08:08:44
59,516,303
0
0
null
null
null
null
UTF-8
Java
false
false
831
java
package com.example.user.pocketcv; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivityPocket extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_activity_pocket); Thread timerThread = new Thread(){ public void run(){ try{ sleep(5000); }catch(InterruptedException e){ e.printStackTrace(); }finally{ Intent intent = new Intent(activity_main_ac,Synopsis.class); startActivity(intent); } } }; timerThread.start(); } }
27ef11dce766b5ca9f5766947946f2fe72f1710b
d334476831b215449233d271786eaca138612dfd
/src/main/java/biz/fabiotecnico1/apirestfulspringbootmongo26/services/PostService.java
b7fb2937b97680003cd495c99e5b47f30d0f5aae
[ "MIT" ]
permissive
Flgc/ApiRestFul_SpringBoot_MongoDB_16
76d3b883fb08d2752ab04a8c2ad9a84f4bbbbdfd
59408a76044be8a90e8d730a2f3a3eb5e0bf9c27
refs/heads/main
2023-07-17T00:01:51.846895
2021-08-19T17:20:54
2021-08-19T17:20:54
397,434,436
1
0
null
null
null
null
UTF-8
Java
false
false
1,021
java
package biz.fabiotecnico1.apirestfulspringbootmongo26.services; import java.util.Date; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import biz.fabiotecnico1.apirestfulspringbootmongo26.domain.Post; import biz.fabiotecnico1.apirestfulspringbootmongo26.repository.PostRepository; import biz.fabiotecnico1.apirestfulspringbootmongo26.services.exception.ObjectNotFoundException; @Service public class PostService { @Autowired private PostRepository repo; public Post findById(String id) { Optional<Post> obj = repo.findById(id); return obj.orElseThrow(() -> new ObjectNotFoundException("Objeto não encontrado")); } public List<Post> findByTitle(String text){ return repo.searchTitle(text); } public List<Post> fullSearch(String text, Date minDate, Date maxDate){ maxDate = new Date(maxDate.getTime() + 24 * 60 * 60 * 1000); return repo.fullSearch(text, minDate, maxDate); } }
04896063d34bffe613de9438ffec633b182cbfe0
d338fb76e0fdfeed8d2185b2822067e5a4c8a5d8
/aula-calculadora-web/src/main/java/ifpb/ads/aula/calculadora/web/ControladorDeCarrinho.java
cb763473b956fb9b58186c9dca82bcf2ba791eed
[]
no_license
ifpb-disciplinas-2016-2/dac-docker-calculadora
49009adc3eb3578d69dcb3432c5700deaaef9dbb
966fa68aab2cefde7da9ef8da63e7b564dfad18e
refs/heads/master
2021-01-09T06:46:07.815616
2017-02-23T13:09:54
2017-02-23T13:09:54
81,083,782
0
0
null
null
null
null
UTF-8
Java
false
false
1,847
java
package ifpb.ads.aula.calculadora.web; import ifpb.ads.aula.calculadora.shared.Carrinho; import java.io.IOException; import java.io.Serializable; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.ejb.EJB; import javax.enterprise.context.SessionScoped; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; import javax.inject.Named; import javax.servlet.http.HttpSession; /** * @author Ricardo Job * @mail [email protected] * @since 15/02/2017, 07:28:19 */ @Named @SessionScoped public class ControladorDeCarrinho implements Serializable { @EJB private Carrinho carrinho; private String produto; public String finalizarCarrinho() { // this.carrinho = new CarrinhoDeCompra(); this.carrinho.finalizarCarrinho(); this.produto = ""; logout(); return null; } public String remover(String produto) { this.carrinho.remover(produto); return null; } public String adicionar() { this.carrinho.adicionar(produto); this.produto = ""; return null; } public List<String> getProdutos() { return this.carrinho.listarTodos(); } public String getProduto() { return produto; } public void setProduto(String produto) { this.produto = produto; } private void logout() { ExternalContext context = FacesContext.getCurrentInstance() .getExternalContext(); HttpSession session = (HttpSession) context.getSession(true); session.invalidate(); try { context.redirect("carrinho.xhtml"); } catch (IOException ex) { Logger.getLogger(ControladorDeCarrinho.class.getName()).log(Level.SEVERE, null, ex); } } }
4c4ec8a5c84b8d77705f899d68aa5f6515367fdd
4fd772743418acc024002fa01da663dee230e325
/1st Assignment_Comparing the run times/CompareSortingAlgorithms/src/SortingAlgorithms/BubbleSort.java
ff1b0e3dd5608c9a63b1dfe9f22a6276257b37b2
[]
no_license
chaitu234kin/AnalysisofSortingAlgorithms
6f325a5db199fd19ea32d3b7eef49dabaa17c4b5
f076bc1f4b3f2f3af699e1897c0940bfa1dc387b
refs/heads/master
2021-01-03T02:35:07.400228
2020-02-11T23:12:33
2020-02-11T23:12:33
239,882,328
0
0
null
null
null
null
UTF-8
Java
false
false
2,403
java
package SortingAlgorithms; public class BubbleSort { public static int[] sort(int numbers [], int numbersSize) { int i=0,k=0,temp=0; int is_sorted=1; for(k = 0;k < numbersSize -1; k++) {//n is_sorted=1; for(i=0;i < numbersSize - k - 1;i++) {// best case loop will run for n-1 times best case complexity is n // worst case (descending order) the loop will run for if(numbers[i] > numbers[i+1] ) {// (n-1)+(n-2)+(n-3)...3+2+1 times = (n^2)/2-n/2 times temp=numbers[i]; // worst case time complexity is n^2 numbers[i]=numbers[i+1]; // avg case=(best case + worst case)/2 numbers[i+1]=temp; // (n^2+n)/2=n^2 is_sorted=0; // avg case time complexity is n^2 } } if(is_sorted==1) { break; } } return numbers; } /* public static void main(String[] args) { // TODO Auto-generated method stub int numbers [] = {10, 7, 6, 5, 4, 3, 2, 1}; int n = 8; int i=0,k=0,temp=0; int is_sorted=1; System.out.print("UNSORTED: "); for (i = 0; i < n; ++i) { System.out.print(numbers[i] + " "); } System.out.println(); for(k=0;k < n-1;k++) {//n is_sorted=1; for(i=0;i < n-k-1;i++) {// best case loop will run for n-1 times best case complexity is n // worst case (descending order) the loop will run for if(numbers[i] > numbers[i+1] ) {// (n-1)+(n-2)+(n-3)...3+2+1 times = (n^2)/2-n/2 times temp=numbers[i]; // worst case time complexity is n^2 numbers[i]=numbers[i+1]; // avg case=(best case + worst case)/2 numbers[i+1]=temp; // (n^2+n)/2=n^2 is_sorted=0; // avg case time complexity is n^2 } } if(is_sorted==1) { break; } } BubbleSort.sort(numbers, n); System.out.print("SORTED: "); for (i = 0; i < n; ++i) { System.out.print(numbers[i] + " "); } System.out.println(); } */ }
ab5e1bdf72d361618b417af3242c5cd6a180c793
5cbc1ee3c711b79f3a02e7296089c131f28fc25d
/app/src/main/java/com/only/rxtest/common/model/MovieBean.java
ca9a862f7ff31c175360dda36d381131d8f90abd
[]
no_license
onlybeyond/RxJavaTest
6d481d604e4ad7ee4c66ba9cf0e7b937b1647a3b
e6866bcf352d800b5e52639e2366d0381218728c
refs/heads/master
2020-04-02T23:01:53.029367
2016-06-21T03:55:06
2016-06-21T03:55:06
60,834,244
0
1
null
null
null
null
UTF-8
Java
false
false
1,256
java
package com.only.rxtest.common.model; import java.util.List; /** * Created by only on 16/6/14. */ public class MovieBean<T> { private int count; private int start; private int total; private String title; //用来模仿Data private T subjects; public int getCount() { return count; } public void setCount(int count) { this.count = count; } public int getStart() { return start; } public void setStart(int start) { this.start = start; } public int getTotal() { return total; } public void setTotal(int total) { this.total = total; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public T getSubjects() { return subjects; } public void setSubjects(T subjects) { this.subjects = subjects; } @Override public String toString() { StringBuffer sb = new StringBuffer(); sb.append("title=" + title + " count=" + count + " start=" + start); if (null != subjects) { sb.append(" subjects:" + subjects.toString()); } return sb.toString(); } }
2a7ac4aeb0a5da8b6a9fe03eaa51be92a2ea9ab6
36628f43065db9cc7c2ca8f0d4635d7f44018d50
/NumPattern.java
f306a04071b00c86b9970dc8011c34ed17d3c4cc
[]
no_license
AdityaKaushik121/Java-Programs
4bd41ffaaedd63a86b104e693891eb64f7fa645c
b231bc48279e4dc01632aba6633b92c6a442cd4c
refs/heads/master
2020-12-08T22:03:15.281005
2020-01-10T18:55:39
2020-01-10T18:55:39
233,108,004
0
0
null
null
null
null
UTF-8
Java
false
false
293
java
package StarPattern; public class NumPattern { public static void main(String[] args) { // TODO Auto-generated method stub int num=71; for(int i=65;i<num;i++){ for(int j=65;j<=i; j++){ System.out.print((char)j); } System.out.println(); } } }
944d73f1a85454024a0fce81a2954dc3eccc1712
0f4ea57ed8f47a46e736b04c4e00c521e3aa44d9
/src/main/java/com/softwareproject/collegeinformationsystem/reqcontroller/OtherLinksController.java
911203aa3cf13e90cbb73e606aae4e875865ddf4
[]
no_license
aerus02/College-Information-System
17cb4dc146f1e6f7e49ac93eabc0a5bc2b0ddcc4
0c51d806423c39bf90f4b0ba88a52208d858c7a8
refs/heads/master
2022-08-02T16:26:58.852635
2020-05-26T05:25:16
2020-05-26T05:25:16
263,381,510
0
0
null
null
null
null
UTF-8
Java
false
false
2,894
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.softwareproject.collegeinformationsystem.reqcontroller; import com.softwareproject.collegeinformationsystem.model.OtherLink; import com.softwareproject.collegeinformationsystem.repository.OtherLinkRepository; import com.softwareproject.collegeinformationsystem.services.OtherLinkService; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; /** * * @author aerus02 */ @Controller public class OtherLinksController { @Autowired OtherLinkRepository otherLinkRepository; public boolean checkLogin(HttpServletRequest req){ HttpSession session = req.getSession(); String username = (String)session.getAttribute("username"); String password = (String)session.getAttribute("password"); if(username == null || password == null ) return false; int userType; if(session.getAttribute("userType") != null) userType = (Integer)session.getAttribute("userType"); else userType = 0; System.out.println("checkLogin is called"); if(!username.equals("") && !password.equals("") && userType > 0) return true; return false; } @RequestMapping("/otherlinks") public ModelAndView OtherLinksFunction(HttpServletRequest req,HttpServletResponse res){ System.out.println("OtherLinksFunction is called in controller"); boolean check = checkLogin(req); if(!check){ try{ res.sendRedirect("/login"); } catch(Exception e){ System.out.println(e +" -error"); return new ModelAndView("index"); } } HttpSession session = req.getSession(); ModelAndView mv; OtherLinkService otherLinkService = new OtherLinkService(otherLinkRepository); int userType = (int)session.getAttribute("userType"); if(userType == 2){ try{ res.sendRedirect("/home"); } catch(Exception e){ System.out.println(e +" -error"); return new ModelAndView("homepagefaculty"); } } List<OtherLink> otherLinks = otherLinkService.FindAllService(); mv = new ModelAndView("otherlinksviewpage"); mv.addObject("othLin",otherLinks); return mv; } }
9234fc0748f23d525e74a1a59e3710362f589ee4
ea01ae50c4ccb0d47b80928d41e12e0d894e511d
/app/src/main/java/com/wenzs/jokeintefacetest/MainActivity.java
0b28a136e93c480b9e86b0318c97ad5718fec913
[]
no_license
wenzs/Hellod
4bca97017895416c6833411264df3dccaee6f3bc
1332c1c805e03b637ff14d079c99b1613e0fd9e4
refs/heads/master
2020-04-02T21:21:34.749297
2016-06-21T06:51:42
2016-06-21T06:51:42
61,609,640
0
0
null
null
null
null
UTF-8
Java
false
false
2,123
java
package com.wenzs.jokeintefacetest; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity implements View.OnClickListener{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); toolbar.setTitle("笑话大全"); setSupportActionBar(toolbar); toolbar.setNavigationIcon(R.mipmap.ic_launcher); findViewById(R.id.joke_test).setOnClickListener(this); 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(); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } @Override public void onClick(View v) { startActivity(new Intent(this,JokeActivity.class)); } }
6ec61a747ba41e69e9d1439a0b6123a73c6fe15d
eb0eb6d02c8ceac3f0784ded67f61b62a210f89f
/src/main/java/McDonaldsExecutor.java
984a9b73c4b509391e567e312eaaf58bd9c58ab8
[]
no_license
savioteles/producer_consumer_rmi_corba
fd11e396cc9333ae9f1e2700c43d66fb129f55e1
7368e92fb9b2fc56aced92037f4e186bf4156084
refs/heads/master
2020-06-03T08:48:02.678840
2014-07-04T01:07:53
2014-07-04T01:07:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,400
java
package main.java; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import main.java.McDonaldsQueue; import main.java.rmi.McDonaldsRmiInterface; public class McDonaldsExecutor implements McDonaldsRmiInterface { private static McDonaldsQueue<Character> mcChickenQueue; private static McDonaldsQueue<Character> mcFishQueue; private static McDonaldsQueue<Character> bigMacQueue; ThreadPoolExecutor pool; public McDonaldsExecutor() { mcChickenQueue = new McDonaldsQueue<Character>(); mcFishQueue = new McDonaldsQueue<Character>(); bigMacQueue = new McDonaldsQueue<Character>(); pool = new ThreadPoolExecutor(300, 300, 1000, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>()); } public void produceMcChicken() { pool.execute(new ThreadExec(mcChickenQueue, new Character('c'))); } public void consumeMcChicken() { pool.execute(new ThreadExec(mcChickenQueue, null)); } public int getQtdMcChicken() { return mcChickenQueue.size(); } public int getQtdMcChickenProducers() { return mcChickenQueue.getCountProducer(); } public int getQtdMcChickenConsumers() { return mcChickenQueue.getCountConsumer(); } public void produceMcFish() { pool.execute(new ThreadExec(mcFishQueue, new Character('f'))); } public void consumeMcFish() { pool.execute(new ThreadExec(mcFishQueue, null)); } public int getQtdMcFish() { return mcFishQueue.size(); } public int getQtdMcFishProducers() { return mcFishQueue.getCountProducer(); } public int getQtdMcFishConsumers() { return mcFishQueue.getCountConsumer(); } public void produceBigMac() { pool.execute(new ThreadExec(bigMacQueue, new Character('b'))); } public void consumeBigMac() { pool.execute(new ThreadExec(bigMacQueue, null)); } public int getQtdBigMac() { return bigMacQueue.size(); } public int getQtdBigMacProducers() { return bigMacQueue.getCountProducer(); } public int getQtdBigMacConsumers() { return bigMacQueue.getCountConsumer(); } private class ThreadExec implements Runnable{ McDonaldsQueue<Character> queue; Character c; public ThreadExec(McDonaldsQueue<Character> queue, Character c) { super(); this.queue = queue; this.c = c; } public void run() { if(c!= null) queue.insert(c); else queue.remove(); } } }
87b7dd6424bc4c801c753340396a6f80d1d8211d
377d92c73511a3f3e9dcbc5272c4cf089b602a21
/src/main/java/com/ehr/dao/SalaryLeverDao.java
04f74bc7dc7fb1657b3d8ba6fa1f5b25fdd8ffb1
[]
no_license
ttxxss99/ehr
459ee3ccdd231ca1148fd0fc6d2c1fb5e551a15f
a2bcc528f81d3c3f931614604f0a03f5160e1a33
refs/heads/master
2023-08-09T13:34:05.939437
2019-07-07T03:37:08
2019-07-07T03:37:08
195,533,491
2
1
null
2023-07-22T10:10:13
2019-07-06T11:47:26
JavaScript
UTF-8
Java
false
false
1,306
java
package com.ehr.dao; import com.ehr.model.SalaryLever; import java.util.List; public interface SalaryLeverDao { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table ehr_paygrades * * @mbg.generated Fri Jun 28 10:57:26 CST 2019 */ int deleteByPrimaryKey(Integer id); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table ehr_paygrades * * @mbg.generated Fri Jun 28 10:57:26 CST 2019 */ int insert(SalaryLever record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table ehr_paygrades * * @mbg.generated Fri Jun 28 10:57:26 CST 2019 */ SalaryLever selectByPrimaryKey(Integer id); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table ehr_paygrades * * @mbg.generated Fri Jun 28 10:57:26 CST 2019 */ List<SalaryLever> selectAll(); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table ehr_paygrades * * @mbg.generated Fri Jun 28 10:57:26 CST 2019 */ int updateByPrimaryKey(SalaryLever record); }
27c69e69b0233468db1b5289c329bc3a38bab010
3b4643ccd2ebe2aacdee396f8cc2c7851d8d3eac
/hw12-0036480046/src/main/java/hr/fer/zemris/java/webserver/IWebWorker.java
2a1cd9e7bcfa57c81c4d24411d0dae0f68e8317b
[ "MIT" ]
permissive
Daria2002/Java_hw
fb12a49d448dc899c73737d4e9206e8e5e78a829
017b245c622753ad56fe03be1aa099b6a8f7e140
refs/heads/master
2022-11-30T21:16:11.482713
2020-09-24T11:41:12
2020-09-24T11:41:12
175,823,150
0
0
MIT
2022-11-24T07:44:34
2019-03-15T13:14:46
Java
UTF-8
Java
false
false
337
java
package hr.fer.zemris.java.webserver; /** * Interface that represents web worker * @author Daria Matković * */ public interface IWebWorker { /** * This method processes request * @param context request context * @throws Exception throws exception */ public void processRequest(RequestContext context) throws Exception; }
a54b5b586b683bf19d9a483515d0fda341c75924
cc511ceb3194cfdd51f591e50e52385ba46a91b3
/example/source_code/12b8c6977953050625bf8a5c6e3607f766d9d58d/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/NodeDefImpl.java
138208ebfc85c4f1fb0f7be425167514c8475e3a
[]
no_license
huox-lamda/testing_hw
a86cdce8d92983e31e653dd460abf38b94a647e4
d41642c1e3ffa298684ec6f0196f2094527793c3
refs/heads/master
2020-04-16T19:24:49.643149
2019-01-16T15:47:13
2019-01-16T15:47:13
165,858,365
3
3
null
null
null
null
UTF-8
Java
false
false
3,627
java
org apach jackrabbit core nodetyp org apach jackrabbit qname java util arrai class implement code nodedef code interfac addition setter method node definit attribut node def impl nodedefimpl item def impl itemdefimpl node def nodedef default primari type qname default primari type defaultprimarytyp name requir primari type qname requir primari type requiredprimarytyp qname qname base base 'allowssamenamesiblings' flag sibl allowssamenames identifi node definit identifi lazili comput base characterist node definit reset attribut chang node def nodedefid default constructor node def impl nodedefimpl set default primari type param defaultnodetyp set default primari type setdefaultprimarytyp qname default node type defaultnodetyp reset field order forc lazi recomput identifi default primari type defaultprimarytyp default node type defaultnodetyp set name requir primari type param requiredprimarytyp set requir primari type setrequiredprimarytyp qname requir primari type requiredprimarytyp reset field order forc lazi recomput identifi requir primari type requiredprimarytyp illeg argument except illegalargumentexcept requiredprimarytyp null requir primari type requiredprimarytyp requir primari type requiredprimarytyp set 'allowssamenamesiblings' flag param allowssamenames set sibl setallowssamenames sibl allowssamenames reset field order forc lazi recomput identifi sibl allowssamenames sibl allowssamenames itemdefimpl overrid inheritdoc set declar node type setdeclaringnodetyp qname declar node type declaringnodetyp reset field order forc lazi recomput identifi set declar node type setdeclaringnodetyp declar node type declaringnodetyp inheritdoc set setnam qname reset field order forc lazi recomput identifi set setnam inheritdoc set auto creat setautocr auto creat autocr reset field order forc lazi recomput identifi set auto creat setautocr auto creat autocr inheritdoc set parent version setonparentvers parent version onparentvers reset field order forc lazi recomput identifi set parent version setonparentvers parent version onparentvers inheritdoc set protect setprotect write protect writeprotect reset field order forc lazi recomput identifi set protect setprotect write protect writeprotect inheritdoc set mandatori setmandatori mandatori reset field order forc lazi recomput identifi set mandatori setmandatori mandatori nodedef inheritdoc identifi comput base characterist properti definit modifi attribut properti definit impact identifi return method node def nodedefid getid gener identifi base node definit node def nodedefid inheritdoc qname default primari type getdefaultprimarytyp default primari type defaultprimarytyp inheritdoc qname requir primari type getrequiredprimarytyp requir primari type requiredprimarytyp inheritdoc sibl allowssamenames sibl allowssamenames inheritdoc return code true code defin node definesnod java lang object overrid compar node definit equal return code true code object node defint attribut node definit param obj object compar node definit return code true code object equal node definit code fals code object equal object equal object obj obj obj node def impl nodedefimpl node def impl nodedefimpl node def impl nodedefimpl obj equal obj arrai equal requir primari type requiredprimarytyp requir primari type requiredprimarytyp default primari type defaultprimarytyp default primari type defaultprimarytyp default primari type defaultprimarytyp equal default primari type defaultprimarytyp sibl allowssamenames sibl allowssamenames return satisfi object equal hashcod contract class mutabl meant hash kei return object hashcod hash code hashcod
025174b9c23bc57b24f9815eac6c44b96c9f2963
78887910fbea9507997ec80de45468ac419fda42
/afterschool/src/afterschool/Exam15.java
06c2361e5a466261de7091acd723a95211f2bf6f
[]
no_license
ghtmdaks/javasource
5f3417ed2fdecf4da23414d003e20d1dd9515346
040f4cf9ea2d2a8c6baf5bf4820669ea0b381b91
refs/heads/master
2023-08-24T08:30:34.295403
2021-10-07T09:02:47
2021-10-07T09:02:47
411,899,097
0
0
null
null
null
null
UHC
Java
false
false
1,252
java
package afterschool; import java.util.Scanner; public class Exam15 { public static void main(String[] args) { // 저는 3명의 학생이 있고 3과목의 시험에 대한 점수를 입력 받고자 해 // 2차원 배열 int student[][] = new int [3][3]; Scanner sc = new Scanner(System.in); int sum=0; System.out.println("각 학생의 과목별 점수를 입력해 주세요"); for (int i = 0; i < student.length; i++) { System.out.printf("%d번\n",i+1); //첫번째 사람부터 입력해봐 (친절을 배풀어) for (int j = 0; j < student[i].length; j++) { student[i][j]=sc.nextInt(); } } // 출력 System.out.println("----------------학생별 점수 현황-----------------"); System.out.println("번호\t국어\t영어\t수학\t총합\t평균"); System.out.println("-------------------------------------------"); for (int i = 0; i < student.length; i++) { System.out.printf("%d번\t",i+1); //첫번째 사람부터 입력해봐 (친절을 배풀어) for (int j = 0; j < student[i].length; j++) { System.out.print(student[i][j]+"\t"); sum+=student[i][j]; // sum 을 어떻게 하는지 작업하기 } System.out.printf("%d\t%.1f\n",sum,(double)sum/student.length); } } }
2a1f99daa8bed4111e4a950a04c3b6a0ccd4a33b
11b9a30ada6672f428c8292937dec7ce9f35c71b
/src/main/java/com/sun/org/apache/bcel/internal/generic/IASTORE.java
798bd17ecf7bb53fde36be427b89190627813f64
[]
no_license
bogle-zhao/jdk8
5b0a3978526723b3952a0c5d7221a3686039910b
8a66f021a824acfb48962721a20d27553523350d
refs/heads/master
2022-12-13T10:44:17.426522
2020-09-27T13:37:00
2020-09-27T13:37:00
299,039,533
0
0
null
null
null
null
UTF-8
Java
false
false
6,171
java
/***** Lobxxx Translate Finished ******/ /* * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.org.apache.bcel.internal.generic; /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache BCEL" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact [email protected]. * * 5. Products derived from this software may not be called "Apache", * "Apache BCEL", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * <p> *  Apache软件许可证,版本1.1 * *  版权所有(c)2001 Apache软件基金会。版权所有。 * *  如果满足以下条件,则允许重新分发和使用源代码和二进制形式(带或不带修改): * *  1.源代码的再分发必须保留上述版权声明,此条件列表和以下免责声明。 * *  2.二进制形式的再分发必须在分发所提供的文档和/或其他材料中复制上述版权声明,此条件列表和以下免责声明。 * *  3.包含在重新分发中的最终用户文档(如果有)必须包括以下声明:"本产品包括由Apache Software Foundation(http://www.apache.org/)开发的软件。 * 或者,如果此类第三方确认通常出现,则此确认可能出现在软件本身中。 * *  4.未经事先书面许可,不得使用名称"Apache"和"Apache Software Foundation"和"Apache BCEL"来认可或推广从本软件衍生的产品。 * 如需书面许可,请联系[email protected]。 * * 未经Apache软件基金会事先书面许可,从本软件衍生的产品可能不会被称为"Apache","Apache BCEL",也不可能出现在他们的名字中。 * */ /** * IASTORE - Store into int array * <PRE>Stack: ..., arrayref, index, value -&gt; ...</PRE> * * <p> *  本软件按"原样"提供,任何明示或默示的保证,包括但不限于适销性和特定用途适用性的默示保证。 * 在任何情况下,APACHE软件基金会或其捐赠者均不对任何直接,间接,偶发,特殊,惩罚性或后果性损害(包括但不限于替代商品或服务的采购,使用,数据丢失或利润或业务中断),无论是由于任何责任推理原因,无论是 * 在合同,严格责任或侵权(包括疏忽或其他方式)中,以任何方式使用本软件,即使已被告知此类软件的可能性损伤。 *  本软件按"原样"提供,任何明示或默示的保证,包括但不限于适销性和特定用途适用性的默示保证。 * ================================================== ==================。 * *  该软件包括许多个人代表Apache软件基金会所做的自愿捐款。有关Apache Software Foundation的更多信息,请参阅<http://www.apache.org/>。 * * * @author <A HREF="mailto:[email protected]">M. Dahm</A> */ public class IASTORE extends ArrayInstruction implements StackConsumer { /** * Store into int array * <p> *  IASTORE - 存储到int数组<PRE>堆栈:...,arrayref,index,value - &gt; ... </PRE> * */ public IASTORE() { super(com.sun.org.apache.bcel.internal.Constants.IASTORE); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy in descending order, * i.e., the most specific visitXXX() call comes last. * * <p> *  存储到int数组中 * * * @param v Visitor object */ public void accept(Visitor v) { v.visitStackConsumer(this); v.visitExceptionThrower(this); v.visitTypedInstruction(this); v.visitArrayInstruction(this); v.visitIASTORE(this); } }
aa72172911a0a55c082a8cb7841abf38b7304d91
747441ba9493bb1c35e8dc8285c904a2e566667e
/app/src/main/java/com/app/nfcwork/ResponsiveLinearLayoutManager.java
b230b044ea19b36472034ce95e64ecb08c58080e
[]
no_license
benquick123/nfc_work_app
214e138fa0c6a9c7e5208c53e0f5cdf23f89c819
e2f4b43663b875f1394da2e8f8adfbc935c0d03a
refs/heads/master
2021-03-30T02:00:24.666342
2020-03-17T15:51:55
2020-03-17T15:51:55
248,004,390
0
0
null
null
null
null
UTF-8
Java
false
false
3,841
java
package com.app.nfcwork; import android.content.Context; import android.icu.text.DateFormatSymbols; import android.util.AttributeSet; import android.util.Log; import android.view.View; import android.widget.TextView; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import java.util.Calendar; public class ResponsiveLinearLayoutManager extends LinearLayoutManager { RecyclerView recyclerView; WorkTimeAdapter recyclerViewAdapter; TextView totalText; TextView totalHoursText; TextView lastArrivalText; int defaultArrivalTextHeight; boolean isCurrentMonth; String currentMonth; public ResponsiveLinearLayoutManager(Context context, RecyclerView recyclerView1, TextView totalText1, TextView totalHoursText1, TextView lastArrivalText1, boolean isCurrentMonth1) { super(context); this.recyclerView = recyclerView1; this.totalText = totalText1; this.totalHoursText = totalHoursText1; this.lastArrivalText = lastArrivalText1; this.defaultArrivalTextHeight = -1; this.isCurrentMonth = isCurrentMonth1; Calendar date = Calendar.getInstance(); DateFormatSymbols dfs = new DateFormatSymbols(); String[] months = dfs.getMonths(); this.currentMonth = months[date.get(Calendar.MONTH) - 1]; } @Override public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) { if (defaultArrivalTextHeight == -1) { defaultArrivalTextHeight = lastArrivalText.getHeight(); recyclerViewAdapter = (WorkTimeAdapter) recyclerView.getAdapter(); } if (recyclerViewAdapter.workingEntries.size() > 0) { // handle lastArrive text. int arrivalTextHeight = lastArrivalText.getHeight(); if (arrivalTextHeight - dy >= 0 && arrivalTextHeight - dy <= defaultArrivalTextHeight) { lastArrivalText.setHeight(arrivalTextHeight - dy); } else if (arrivalTextHeight - dy < 0){ lastArrivalText.setHeight(0); } else if (arrivalTextHeight - dy > defaultArrivalTextHeight) { lastArrivalText.setHeight(defaultArrivalTextHeight); } // handle proper summation of worktimes. int firstPosition = findFirstVisibleItemPosition(); int totalTimeInMinutes = 0; for (int i = firstPosition; i < recyclerViewAdapter.workingEntries.size(); i++) { totalTimeInMinutes += recyclerViewAdapter.workingEntries.get(i).getWorktimeInMinutes(); } if (firstPosition == 0) { if (isCurrentMonth) totalText.setText(R.string.total_this_month); else { totalText.setText(R.string.total_in); // this is ugly. String titleText = (String) totalText.getText(); titleText += " " + currentMonth; totalText.setText(titleText); } } else { totalText.setText(R.string.total_until); // this is ugly. String titleText = (String) totalText.getText(); titleText += " " + recyclerViewAdapter.workingEntries.get(firstPosition).getDate().split(", ")[1]; totalText.setText(titleText); } int hours = totalTimeInMinutes / 60; int minutes = totalTimeInMinutes % 60; String formattedWorkTime = (hours < 10 ? "0" : "") + hours + ":" + (minutes < 10 ? "0" : "") + minutes; totalHoursText.setText(formattedWorkTime); } return super.scrollVerticallyBy(dy, recycler, state); } }
dd119ea47ac674247c28e2e3434e7a2ddb4740bd
ea8307041d10c9e71659af371202943387a6fd9c
/LO02_project/src/fr/utt/lo02/j8/modele/variantes/VarianteMinimale.java
4030b57c1ea97fba03b112778fd41e79429d70e5
[]
no_license
AdrienLebret/Java-Jeu-du-8-americain
3fa0dea48d39f51f6b535e604e74ec24c0922268
7a23cd11c4d6ad501c35a32e5af5c72aca558f7f
refs/heads/master
2020-04-07T20:32:04.860719
2018-11-22T11:57:28
2018-11-22T11:57:28
158,692,560
1
0
null
null
null
null
UTF-8
Java
false
false
2,345
java
package fr.utt.lo02.j8.modele.variantes; import fr.utt.lo02.j8.modele.effets.ChangerCouleur; import fr.utt.lo02.j8.modele.effets.Effet; import fr.utt.lo02.j8.modele.effets.Rejouer; import fr.utt.lo02.j8.modele.jouabilite.Jouabilite; import fr.utt.lo02.j8.modele.jouabilite.JouableSurTout; import fr.utt.lo02.j8.modele.jouabilite.Standard; import fr.utt.lo02.j8.modele.moteur.Carte; import fr.utt.lo02.j8.modele.moteur.Paquet; /** * <b>Cette classe represente la Variante Minimale, qui implemente l'interface Variante</b> * <p> * Les effets de la variante minimale sont issus du site suivante : *<b> https://fr.wikipedia.org/wiki/8_am%C3%A9ricain#Version_%C2%AB_minimale_%C2%BB </b> * </p> * @see Variante * @see Effet * @see Carte * @see Paquet * * @author Launois Jean-Baptiste, Lebret Adrien * */ public class VarianteMinimale implements Variante{ /** * <p> * Donne un ou plusieurs effets, ainsi qu'une jouabilite a une carte precise * </p> * <p> * Ici : les cartes 8 et 10 * </p> * @param paquet : paquet de cartes ou seront appliques les effets * * @see Effet * @see Jouabilite * @see Paquet * @see Carte */ public void donnerEffet(Paquet paquet) { for(int i=0; i<paquet.getTaille(); i++) { switch (paquet.getCarte(i).getHauteur()) { case "8": paquet.getCarte(i).setEffet(new ChangerCouleur()); paquet.getCarte(i).setJouabilite(new JouableSurTout()); break; case "10": paquet.getCarte(i).setEffet(new Rejouer()); paquet.getCarte(i).setJouabilite(new Standard()); break; default : paquet.getCarte(i).setEffet(null); paquet.getCarte(i).setJouabilite(new Standard()); } } } /** *Retourne le texte descriptif de la variante avec la description de chaque effet par carte * * @return Le texte descriptif de la variante */ public String toString(){ StringBuffer sb = new StringBuffer(); sb.append("\n#########################################\n"); sb.append(" DESCRIPTION VARIANTE MINIMALE\n"); sb.append("- 8 : Changer la couleur du Talon\n"); sb.append(" Posable sur toutes les cartes\n"); sb.append("- 10 : Permet de rejouer\n"); sb.append("#########################################\n"); return sb.toString(); } }
050b935e595de5b34cfcc0b6a5d1142fbfeeabfd
311f1237e7498e7d1d195af5f4bcd49165afa63a
/sourcedata/poi-REL_3_0/src/contrib/src/org/apache/poi/contrib/metrics/FontMetricsDumper.java
d0080503697ae04b068529c4536137f7023c3239
[ "Apache-2.0" ]
permissive
DXYyang/SDP
86ee0e9fb7032a0638b8bd825bcf7585bccc8021
6ad0daf242d4062888ceca6d4a1bd4c41fd99b63
refs/heads/master
2023-01-11T02:29:36.328694
2019-11-02T09:38:34
2019-11-02T09:38:34
219,128,146
10
1
Apache-2.0
2023-01-02T21:53:42
2019-11-02T08:54:26
Java
UTF-8
Java
false
false
3,060
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.poi.contrib.metrics; import java.awt.*; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; public class FontMetricsDumper { public static void main( String[] args ) throws IOException { Properties props = new Properties(); Font[] allFonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); for ( int i = 0; i < allFonts.length; i++ ) { String fontName = allFonts[i].getFontName(); Font font = new Font(fontName, Font.BOLD, 10); FontMetrics fontMetrics = Toolkit.getDefaultToolkit().getFontMetrics(font); int fontHeight = fontMetrics.getHeight(); props.setProperty("font." + fontName + ".height", fontHeight+""); StringBuffer characters = new StringBuffer(); for (char c = 'a'; c <= 'z'; c++) { characters.append( c + ", " ); } for (char c = 'A'; c <= 'Z'; c++) { characters.append( c + ", " ); } for (char c = '0'; c <= '9'; c++) { characters.append( c + ", " ); } StringBuffer widths = new StringBuffer(); for (char c = 'a'; c <= 'z'; c++) { widths.append( fontMetrics.getWidths()[c] + ", " ); } for (char c = 'A'; c <= 'Z'; c++) { widths.append( fontMetrics.getWidths()[c] + ", " ); } for (char c = '0'; c <= '9'; c++) { widths.append( fontMetrics.getWidths()[c] + ", " ); } props.setProperty("font." + fontName + ".characters", characters.toString()); props.setProperty("font." + fontName + ".widths", widths.toString()); } FileOutputStream fileOut = new FileOutputStream("font_metrics.properties"); try { props.store(fileOut, "Font Metrics"); } finally { fileOut.close(); } } }
c88abe14c21e561d17173362c4a9eea16c76fdb3
5e19c3b375680ec4267db1ad4c43c8b53ac00b99
/app/src/main/java/vn/com/vsc/ptpm/VNPT_DMS/view/viewevent/tmx/IDanhSachKhachHangView.java
dd8234885b2e133255e92225939849a2ff68ab49
[]
no_license
minhdn7/dms
b478214c2c6dc1c5438232830d8e873d80fa2907
8fde79c7adef24997d186a0cb4354169a4552cf5
refs/heads/master
2020-03-17T13:50:08.844025
2018-05-16T10:21:35
2018-05-16T10:21:35
133,646,559
0
1
null
null
null
null
UTF-8
Java
false
false
235
java
package vn.com.vsc.ptpm.VNPT_DMS.view.viewevent.tmx; /** * Created by MinhDN on 11/10/2017. */ public interface IDanhSachKhachHangView { void onLayKhachHangSuccess(Object object); void onLayKhachHangError(Object object); }
0d443422725fa2ae2bd62ef0ae28452ad9907ecd
c1ab371ab1a7a7d6df4457a8bd5c9e3499fa41a3
/app/src/main/java/com/example/administrator/omg/PlaceOrder/PlaceOrderContract.java
9f4a15ef2917c0f06cfdccdf5511350fd44fba8d
[]
no_license
zyssky/OMG
9e4d79cc2c022a20089692c449124446677fa4f7
07526aed21a409550001873b0789b26619b6c513
refs/heads/master
2021-01-19T16:42:11.679088
2017-05-20T15:47:01
2017-05-20T15:47:01
88,279,626
0
0
null
null
null
null
UTF-8
Java
false
false
767
java
package com.example.administrator.omg.PlaceOrder; import android.widget.ExpandableListAdapter; import com.example.administrator.omg.MetaData.Order; import java.util.List; /** * Created by Administrator on 2017/4/22. */ public interface PlaceOrderContract { interface View{ void setPickDate(String date); void setPickTime(String time); void addCount(); void decCount(); void setPickDesc(String desc); } interface Presenter{ ExpandableListAdapter getExpandListAdapter(); void tryToAddCount(); void tryToDecCount(); Order getCurOrder(); } interface Model{ List<String> getDates(); List<Integer> getCounts(); List<String> getTimes(); } }
fb642af31e015eadd419136944acdc762095083a
63e838569356e15863456b567ef3f0b22a954765
/teacher/lesson_4_git_brancing_pull_request_code_review/step_3_paging/src/main/java/lv/javaguru/java2/library/core/services/SearchBooksService.java
2e1f77d4a61e5f7533a18419b1227b764272c5e9
[]
no_license
AndrejsB86/java2_thursday_online_2021_spring
90a270781f69619aee6d4b5403e8acb88f62c175
28cdd096bb9ff36ca2612d174fe596c2c1655e77
refs/heads/master
2023-06-24T15:42:22.591858
2021-07-29T13:45:54
2021-07-29T13:45:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,514
java
package lv.javaguru.java2.library.core.services; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.stream.Collectors; import lv.javaguru.java2.library.Book; import lv.javaguru.java2.library.core.database.Database; import lv.javaguru.java2.library.core.requests.Ordering; import lv.javaguru.java2.library.core.requests.Paging; import lv.javaguru.java2.library.core.requests.SearchBooksRequest; import lv.javaguru.java2.library.core.responses.CoreError; import lv.javaguru.java2.library.core.responses.SearchBooksResponse; public class SearchBooksService { private Database database; private SearchBooksRequestValidator validator; public SearchBooksService(Database database, SearchBooksRequestValidator validator) { this.database = database; this.validator = validator; } public SearchBooksResponse execute(SearchBooksRequest request) { List<CoreError> errors = validator.validate(request); if (!errors.isEmpty()) { return new SearchBooksResponse(null, errors); } List<Book> books = search(request); books = order(books, request.getOrdering()); books = paging(books, request.getPaging()); return new SearchBooksResponse(books, null); } private List<Book> order(List<Book> books, Ordering ordering) { if (ordering != null) { Comparator<Book> comparator = ordering.getOrderBy().equals("title") ? Comparator.comparing(Book::getTitle) : Comparator.comparing(Book::getAuthor); if (ordering.getOrderDirection().equals("DESCENDING")) { comparator = comparator.reversed(); } return books.stream().sorted(comparator).collect(Collectors.toList()); } else { return books; } } private List<Book> search(SearchBooksRequest request) { List<Book> books = new ArrayList<>(); if (request.isTitleProvided() && !request.isAuthorProvided()) { books = database.findByTitle(request.getTitle()); } if (!request.isTitleProvided() && request.isAuthorProvided()) { books = database.findByAuthor(request.getAuthor()); } if (request.isTitleProvided() && request.isAuthorProvided()) { books = database.findByTitleAndAuthor(request.getTitle(), request.getAuthor()); } return books; } private List<Book> paging(List<Book> books, Paging paging) { if (paging != null) { int skip = (paging.getPageNumber() - 1) * paging.getPageSize(); return books.stream() .skip(skip) .limit(paging.getPageSize()) .collect(Collectors.toList()); } else { return books; } } }
ffef12a8b07a09f87122b42e54d094580721939e
3c8c08db76a94dcf72b5873e2776f118db12ab41
/gen/com/example/ipcforsocket/R.java
60f305c0481b50c094dfcc267c6735a43e775d22
[]
no_license
yjy239/SocketTest
56bb2c96b45817a7e9b455d033fa5f0805d11f4a
b001ea1d322caa771e76b404038c0afb7f147ecc
refs/heads/master
2020-09-22T18:08:19.028791
2016-08-28T12:35:25
2016-08-28T12:35:25
66,767,054
0
0
null
null
null
null
UTF-8
Java
false
false
2,586
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.ipcforsocket; public final class R { public static final class attr { } public static final class dimen { /** Default screen margins, per the Android Design guidelines. Customize dimensions originally defined in res/values/dimens.xml (such as screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. */ public static final int activity_horizontal_margin=0x7f040000; public static final int activity_vertical_margin=0x7f040001; } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int action_settings=0x7f080003; public static final int msg=0x7f080001; public static final int msg_container=0x7f080000; public static final int send=0x7f080002; } public static final class layout { public static final int activity_main=0x7f030000; } public static final class menu { public static final int main=0x7f070000; } public static final class string { public static final int action_settings=0x7f050001; public static final int app_name=0x7f050000; public static final int hello_world=0x7f050002; } public static final class style { /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f060000; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f060001; } }
6548f4ea362978d39336bbc3ea841ea8f5021bbc
9981cfb0c7a5fc3a6eb803acaa159749a6c45b73
/src/main/java/com/bolsadeideas/springboot/error/app/models/domain/Usuario.java
d3cb07ec47dcb56ae28eda2e15d75d5141a4f2a4
[]
no_license
nikopfleger/spring-boot-error
a82517facc130ce9a352a5f937bef658d9e4ae66
715fa7ab50b536b5c2a7a09da67edde856905d5d
refs/heads/master
2023-04-13T05:35:10.424978
2021-05-01T00:06:01
2021-05-01T00:06:01
363,287,369
0
0
null
null
null
null
UTF-8
Java
false
false
718
java
package com.bolsadeideas.springboot.error.app.models.domain; public class Usuario { private Integer id; private String nombre; private String apellido; public Usuario(Integer id, String nombre, String apellido) { this.id = id; this.nombre = nombre; this.apellido = apellido; } public Usuario() { super(); // TODO Auto-generated constructor stub } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public String getApellido() { return apellido; } public void setApellido(String apellido) { this.apellido = apellido; } }
104402834d5b24473323094a552b7f5d33d9cbd8
3e7a12012ee9e0c74e760e65cdc7c7adcd6f4808
/src/main/java/com/example/demo/SmtpComponent.java
b9d7a77b34ea27ef14ba81aa2b1567e33443ca58
[]
no_license
inhalin/Delibrary
8654a80a0deaff9c50a4eb96a220f1a52c148e05
86fc7e1113341c5ea8a8f3a980d2e1b78e3b108c
refs/heads/main
2023-04-22T06:54:07.670500
2023-04-12T13:26:05
2023-04-12T13:26:05
315,908,245
0
1
null
null
null
null
UTF-8
Java
false
false
785
java
package com.example.demo; import java.util.Properties; import org.springframework.context.annotation.Bean; import org.springframework.mail.javamail.JavaMailSenderImpl; import org.springframework.stereotype.Component; @Component public class SmtpComponent { @Bean public JavaMailSenderImpl javaMailSender(){ JavaMailSenderImpl r = new JavaMailSenderImpl(); r.setHost("smtp.gmail.com"); r.setPort(587); r.setUsername("evayurimlee"); r.setPassword("dldbfla123"); r.setDefaultEncoding("UTF-8"); Properties prop = new Properties(); prop.put("mail.smtp.starttls.enable", true); prop.put("mail.smtp.auth", true); prop.put("mail.smtp.ssl.checkserveridentity", true); prop.put("mail.smtp.ssl.trust","*"); r.setJavaMailProperties(prop); return r; } }
a2990d6af9532a7a401e3068dcce3980e1f5bd0d
ec61b53984cd26906842e35336dd897de734995c
/Qatools/src/main/java/com/QaTools/pages/InteractionPage.java
6aca3d7ba76c9d74d9dbe76ba32b7bdb72292829
[]
no_license
Aditya-Shastri/QAToolsAutomation
158b9b1bae435dd5b1b53748448e2057569c12a8
2aec7f80466498758aa6a4dd42f5326930fef2b4
refs/heads/master
2023-04-21T17:54:31.981701
2021-05-13T15:22:02
2021-05-13T15:22:02
367,083,962
0
0
null
null
null
null
UTF-8
Java
false
false
305
java
package com.QaTools.pages; import org.apache.logging.log4j.Logger; import org.openqa.selenium.WebDriver; public class InteractionPage extends BasePageObject { public InteractionPage(WebDriver driver , Logger log) { // TODO Auto-generated constructor stub super(driver,log); } }
[ "Git_Home8000" ]
Git_Home8000
1b41e09977db4e294d16744705b33736bef47c4c
7563950dbcf1f109e8e46ffc58dcd4e54ef4d11c
/app/src/main/java/com/mobile/termproject/TestActivity.java
2fd3ad0d26cf80912318dbb1f13ea92f7604cabe
[]
no_license
hololol-101/CoTest
58965c65343182fff153236b7ec21c4c40b6f7b4
e9989d41dc184e171d8772f79c5c44313c748558
refs/heads/master
2023-06-14T22:57:35.375492
2021-07-12T04:12:18
2021-07-12T04:12:18
385,120,957
0
0
null
null
null
null
UTF-8
Java
false
false
6,439
java
package com.mobile.termproject; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.os.CountDownTimer; import android.view.View; import android.webkit.WebChromeClient; import android.webkit.WebView; import android.widget.Button; import android.widget.Switch; import android.widget.TextView; import android.content.Intent; import android.widget.Toast; import java.io.IOException; import java.util.ArrayList; import java.util.concurrent.ExecutionException; import retrofit2.Call; public class TestActivity extends AppCompatActivity { CountDownTimer countDownTimer; private static final int MILLISINFUTURE = 60*60*1000; private static final int COUNT_DOWN_INTERVAL = 1000; int hour, sec, min; String nick, uid; WebView backurl; ArrayList<SerailTest> arrayList; TextView timeview; Button q1, q2, q3, q4, complete; String day; int time; boolean check=false; @Override public void onBackPressed() { if(check==false){ Toast.makeText(getApplicationContext(), "코딩을 실패하셨습니다.", Toast.LENGTH_SHORT).show(); new PutPeople().execute(day, nick, "Failed"); } super.onBackPressed(); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test); setTitle("코딩 테스트"); Intent intent = getIntent(); nick = intent.getStringExtra("nick"); uid = intent.getStringExtra("uid"); Bundle bundle=intent.getBundleExtra("bundle"); arrayList =(ArrayList<SerailTest>)bundle.getSerializable("test"); day=intent.getStringExtra("day"); time = arrayList.get(0).time; hour=time; timeview=findViewById(R.id.timeview); q1=findViewById(R.id.q1); q1.setOnClickListener(onClickListener); q2=findViewById(R.id.q2); q2.setOnClickListener(onClickListener); q3=findViewById(R.id.q3); q3.setOnClickListener(onClickListener); q4=findViewById(R.id.q4); q4.setOnClickListener(onClickListener); complete=findViewById(R.id.complete); backurl=findViewById(R.id.backurl); complete.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { int h, m, s; s =time*60*60 - hour*60*60 -min*60 -sec; h = s/3600; m = s%3600/60; s = s%60; String t; if(h<10)t="0"+h; else t = h+""; if(m<10)t+="0"+m; else t+=""+m; if(s<10)t+="0"+s; else t+=s+""; new PutPeople().execute(day, nick, t); countDownTimer.onFinish(); complete.setEnabled(false); check=true; } }); countDownTimer(); countDownTimer.start(); } View.OnClickListener onClickListener = new View.OnClickListener() { @Override public void onClick(View view) { String url=null; q1.setBackgroundColor(Color.parseColor("#AAD4DA")); q2.setBackgroundColor(Color.parseColor("#AAD4DA")); q3.setBackgroundColor(Color.parseColor("#AAD4DA")); q4.setBackgroundColor(Color.parseColor("#AAD4DA")); switch(view.getId()){ case R.id.q1: url=arrayList.get(0).qurl; int r,g,b; q1.setBackgroundColor(Color.parseColor("#65A1A0")); break; case R.id.q2: url=arrayList.get(1).qurl; q2.setBackgroundColor(Color.parseColor("#65A1A0")); break; case R.id.q3: url=arrayList.get(2).qurl; q3.setBackgroundColor(Color.parseColor("#65A1A0")); break; case R.id.q4: url=arrayList.get(3).qurl; q4.setBackgroundColor(Color.parseColor("#65A1A0")); break; } backurl.getSettings().setJavaScriptEnabled(true); backurl.loadUrl(url); backurl.setWebChromeClient(new WebChromeClient()); } }; public void countDownTimer(){ countDownTimer = new CountDownTimer(MILLISINFUTURE*time, COUNT_DOWN_INTERVAL) { public void onTick(long millisUntilFinished) { timeview.setText(hour+":"+min+":"+sec); sec--; if(sec<0){ min--; sec=59; } if(min<0){ hour--; min=59; } } public void onFinish() { timeview.setText(String.valueOf("Finish .")); countDownTimer.cancel(); complete.setEnabled(false); } }; } @SuppressLint("StaticFieldLeak") static class PutPeople extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... strings) { HttpInterface httpInterface = HttpClient.getClient().create(HttpInterface.class); Call<String> call = httpInterface.putPeople(strings[0], strings[1], strings[2]); String response = null; try { response = call.execute().body(); } catch (IOException e) { e.printStackTrace(); } return response; } } @SuppressLint("StaticFieldLeak") private class getContest extends AsyncTask<String, Void, ArrayList<SerailTest>> { @Override protected ArrayList<SerailTest> doInBackground(String... strings) { HttpInterface httpInterface = HttpClient.getClient().create(HttpInterface.class); Call<ArrayList<SerailTest>> call = httpInterface.getTest(strings[0]); ArrayList<SerailTest> response = null; try { response = call.execute().body(); } catch (IOException e) { e.printStackTrace(); } return response; } } }
[ "gkrbs1010" ]
gkrbs1010
5f90e39c6aa4ae23e97aac1e4f84121e6a80263f
3c2ae49c8099b5f86c8a0243abfb2c92ccde5cec
/shg-ws/src/main/java/com/beone/udaan/mr/bo/DashboardMrBO.java
46b2b810842b92518b2950744816c971ce608ffd
[]
no_license
vaibhav-raut/beOne-Server
4cbed65a7ff542972a427a8d6c54a0024e902a3d
99b89df1447b7562da257a65c1972cf3ad26f63c
refs/heads/master
2022-12-23T23:12:05.251324
2020-03-08T18:14:34
2020-03-08T18:14:34
245,856,036
0
0
null
2022-12-16T03:32:36
2020-03-08T17:17:42
Java
UTF-8
Java
false
false
1,303
java
package com.beone.udaan.mr.bo; import java.util.List; import org.springframework.stereotype.Component; import com.beone.shg.net.persistence.bo.BaseBO; import com.beone.shg.net.persistence.util.ConversionUtil; import com.beone.shg.net.persistence.util.DateUtil; import com.beone.shg.net.webservice.rest.support.BadRequestException; import com.beone.udaan.mr.persistence.model.MrVisit; import com.beone.udaan.mr.persistence.model.PMAc; import com.beone.udaan.mr.service.model.MrAccount; import com.beone.udaan.mr.service.model.MrVisitM; @Component("dashboardMrBO") public class DashboardMrBO extends BaseBO { public MrAccount getMrAccountSummary(long mrAcNo) throws BadRequestException { if(!ConversionUtil.isValidMemberAcNo(mrAcNo)) { throw new BadRequestException("Invalid Member Account!"); } PMAc pmAc = daoFactory.getPMAcDAO().findById(mrAcNo); if(pmAc == null) { throw new BadRequestException("Invalid Member Account!"); } MrAccount mrAccount = MrAccount.getMrAccount(pmAc); List<MrVisit> mrVisits = daoFactory.getMrVisitDAO().getMrVisitForMR(mrAcNo, DateUtil.getBeforeDaysTime(90)); if(mrVisits != null && !mrVisits.isEmpty()) { MrVisitM.loadMRVisits(mrAccount, mrVisits); } return mrAccount; } }
86f0891c83b0b19b10473ef3e035cb3a390b5d1f
80157850cb96ff4e52de2a4aea0ac37e663d6091
/bxy-platform/bxy-demo/bxy-demo-controller/src/main/java/com/github/bxy/demo/controller/test/model/Orddder.java
5a652940972ec7d953b5a23540e0c7c5f3c783d3
[ "Apache-2.0" ]
permissive
YephetsSkys/bxy-open-cloud
59a895ed456f40a9319472f2d2f80f2bf10f10d4
3c9dfbc776228a6e105a299f09c71526508e753c
refs/heads/master
2022-04-11T14:49:32.102566
2020-02-10T01:00:12
2020-02-10T01:00:12
283,141,468
1
1
null
2020-07-28T07:55:02
2020-07-28T07:55:01
null
UTF-8
Java
false
false
336
java
package com.github.bxy.demo.controller.test.model; import java.io.Serializable; import lombok.Data; import lombok.ToString; /** * 订单测试DTO * * @author bxy * @date 2019/08/01 */ @Data @ToString public class Orddder implements Serializable { private Long id; private String name; private Producttt producttt; }
812fd8858ccef08ffa0a689214054cb12c4cf3d8
6cc14212f091eea44323531c856606bd3ce95f52
/src/main/java/com/service/zhishouservice.java
e95051837b5c594acc9a94fcfa88e2f43094da7e
[]
no_license
donghongwei001/p2p
9d5e451b69eefce84d21687bd5a3ed43037635f8
bec41fc9978d83c9d07bdf15c32681063047ffc1
refs/heads/master
2021-01-20T12:20:40.409810
2017-12-30T07:38:16
2017-12-30T07:38:16
101,711,269
0
0
null
null
null
null
UTF-8
Java
false
false
457
java
package com.service; import java.util.List; import java.util.Map; public interface zhishouservice { public int querytotalmoney(); public void addshouru(int id,String date,double money); public void addzhichu(int id,String date,double money); public List<Map> selshouzhi(); public List<Map> selyuqi(String name); public void updatenew(String date,int day,double money,int id,double qian); public String seltime(int id,double money); }
94f6c5213279cc1ce98430c666662e50fd83faf9
adf73a10247e470fe895d9477ec5ee12491e4c0a
/src/utility/Route.java
041231f0865520776b74113fed3ebb39e21c647e
[]
no_license
thaibert/au-bachelors
c727d7ba9ac6a8461928a920b093ed985bbd275f
b2535a4ecb6deaee4416e055d354978284781821
refs/heads/main
2023-06-05T09:03:01.882058
2021-06-21T12:13:15
2021-06-21T12:13:15
335,896,167
1
0
null
null
null
null
UTF-8
Java
false
false
273
java
package utility; import graph.*; import java.util.*; public class Route { public final Vertex start; public final Vertex destination; public Route(Vertex start, Vertex destination) { this.start = start; this.destination = destination; } }
99367a996d7357abbf7453068cf2d96bd495a33f
511f859eed529858c2b8ce085cd17694929dbb68
/ce/src/main/java/com/hjx/service/SecurityService.java
e1572c00b8685a781795dae91265530db745305f
[]
no_license
pzwdshxzt/CE-BBS
14f3a4030bb17eb742a21b46ca10c9f8a03797b9
706400990c35212d4cbd41659ca1be15318135bb
refs/heads/master
2021-01-19T22:40:13.219433
2017-09-04T05:40:50
2017-09-04T05:40:50
83,777,525
1
0
null
null
null
null
UTF-8
Java
false
false
1,046
java
package com.hjx.service; import com.hjx.core.service.IBaseService; import com.hjx.model.Security; public interface SecurityService extends IBaseService<Security> { /** * 登录验证 * @param security * @return Security */ public Security loginSecurity(Security security); /** * 检验邮箱是否被注册 * @param security * @return boolean */ public boolean checkEmail(Security security); /** * 修改密码 * @param security * @return boolean */ public boolean updatePassword(Security security); /** * 修改邮箱 uid * @param security * @return boolean */ public boolean updateEmail(Security security); /** * 修改手机 uid * @param security * @return boolean */ public boolean updateTel(Security security); /** * 查找通过 Uid * @param security * @return Security */ public Security findSecurity(Security security); /** * 查找通过 email * @param security.email * @return Security */ public Security findSecurityByEmail(Security security); }
be81c18480a88880d1fbd60947869d9b3d054435
0836d3a9df8faba04e74aff73c0cdc0492918f2b
/app/src/main/java/com/infinite/weixincircle/widget/photopicker/event/OnItemCheckListener.java
d8efe26822364b3f474e72e676afc1b7223ba1d8
[]
no_license
blueflychief/WeixinPublishi
053df2a25b2bff49343c07d81f78d6b2efe71002
2e7a20ea035dbd38c61a0abe5af84c15398c9983
refs/heads/master
2021-01-11T04:18:31.911801
2016-10-18T04:59:04
2016-10-18T04:59:04
71,210,479
0
0
null
null
null
null
UTF-8
Java
false
false
463
java
package com.infinite.weixincircle.widget.photopicker.event; import com.infinite.weixincircle.widget.photopicker.entity.Photo; public interface OnItemCheckListener { /*** * * @param position 所选图片的位置 * @param path 所选的图片 *@param isCheck 当前状态 * @param selectedItemCount 已选数量 * @return enable check */ boolean OnItemCheck(int position, Photo path, boolean isCheck, int selectedItemCount); }
10410e0277972bbea777489327f872e764cd9b66
c5f0384c4d9aa89a80b18d74c72d183c1837998a
/src/com/cls/action/GysAction.java
537b7bac83bb4cd24c6dc5f768ea9718379edb15
[]
no_license
songxiaobai/songxiaobai-ssh_group11
997f7cf699c573c1bd62046606d60f19a7d7b999
29ffbc8d4d267232b694d1086956388ff75f5034
refs/heads/master
2021-01-20T18:52:45.515910
2016-05-31T11:06:33
2016-05-31T11:06:33
60,083,274
0
0
null
null
null
null
UTF-8
Java
false
false
3,890
java
package com.cls.action; import java.util.Iterator; import java.util.List; import com.cls.pojo.Gys; import com.cls.service.GysService; import com.opensymphony.xwork2.ActionSupport; public class GysAction extends ActionSupport{ private GysService gysservice; private Integer gysId; private String gysName; private String gysRemark; private Integer gysTel; private String gysAddress; private String gysLinkman; private int pagecount; private int pageSize; private int pageCurrent; private String resultString; public GysService getGysservice() { return gysservice; } public void setGysservice(GysService gysservice) { this.gysservice = gysservice; } public Integer getGysId() { return gysId; } public void setGysId(Integer gysId) { this.gysId = gysId; } public String getGysName() { return gysName; } public void setGysName(String gysName) { this.gysName = gysName; } public String getGysRemark() { return gysRemark; } public void setGysRemark(String gysRemark) { this.gysRemark = gysRemark; } public Integer getGysTel() { return gysTel; } public void setGysTel(Integer gysTel) { this.gysTel = gysTel; } public String getGysAddress() { return gysAddress; } public void setGysAddress(String gysAddress) { this.gysAddress = gysAddress; } public String getGysLinkman() { return gysLinkman; } public void setGysLinkman(String gysLinkman) { this.gysLinkman = gysLinkman; } public int getPagecount() { return pagecount; } public void setPagecount(int pagecount) { this.pagecount = pagecount; } public int getPageSize() { return pageSize; } public void setPageSize(int pageSize) { this.pageSize = pageSize; } public int getPageCurrent() { return pageCurrent; } public void setPageCurrent(int pageCurrent) { this.pageCurrent = pageCurrent; } public String getResultString() { return resultString; } public void setResultString(String resultString) { this.resultString = resultString; } public String findByName(){ List<Gys> list=this.gysservice.findByName(); StringBuffer sb=new StringBuffer(); Iterator<Gys> it=list.iterator(); sb.append("<form name = 'f'>" +"<table>" + "<tr>" +"<th>供应商名称</th>"+"<th>描述</th>"+"<th>联系电话</th>"+"<th>联系地址</th>"+"<th>供应商联系人</th>"+"<th>操作</th>"); while(it.hasNext()){ Gys pojo=it.next(); sb.append( "<tr>" +"<td>"+pojo.getGysName()+"</td>" +"<td>"+pojo.getGysRemark()+"</td>" + "<td>"+pojo.getGysTel()+"</td>" +"<td>"+pojo.getGysAddress()+"</td>" +"<td>"+pojo.getGysLinkman()+"</td>" + "<td><a href='#' >进货</a>&nbsp;<a href='#' >退货</a>" +"</td>"+"</tr>"); } sb.append("</table>" + "</form>"); this.setResultString(sb.toString()); return "success"; } public String findbyName(){ List<Gys> list = this.gysservice.findbyName(gysName, this.pageCurrent, pageSize); StringBuffer sb = new StringBuffer(); sb.append(" <table>"); sb.append("<tr><td>供应商名称</td><td>描述</td><td>联系电话</td><td>联系地址</td><td>供应商联系人</td><td>操作</td></tr>"); Iterator<Gys> it = list.iterator(); while(it.hasNext()){ Gys pojo = it.next(); sb.append("<tr><td>"+pojo.getGysName()+"</td><td>"+pojo.getGysRemark()+"</td><td>"+pojo.getGysTel()+"</td><td>"+pojo.getGysAddress()+"</td><td>"+pojo.getGysLinkman()+"</td><td> <a href='#' >进货</a>&nbsp;<a href='#' >退货</a></td></tr>"); if(list.size()<pageSize){ for(int i=0;i<pageSize-list.size();i++){ sb.append("<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>"); } } } sb.append("</table>"); this.setResultString(sb.toString()); return "success"; } public String findCount(){ int count = this.gysservice.findCountByName(gysName); this.setResultString(String.valueOf(count)); return "success"; } }
5e5d6890475b29a72acb21dd21364834fea75373
3a7cd818e9030291ad6e80b7a2ab4e946ca8c4f9
/xinguan/src/com/xinguan/question/dao/QuestionFactory.java
54ba0fddea66c70ff7e519afedb665a3e4de3585
[]
no_license
DemonCirno/xinguanjd
262f0f53e7ca6b38e14cc94f0e62089ebf528d9a
baddd7212005868a8f37a0b3a7d42f008f9c18df
refs/heads/master
2020-06-11T09:43:50.256654
2017-02-13T13:50:41
2017-02-13T13:50:41
75,688,894
1
0
null
null
null
null
UTF-8
Java
false
false
159
java
package com.xinguan.question.dao; public class QuestionFactory { public static IQuesDao createQuestionImplInstance(){ return new QuestionImplDao(); } }
d1848c2da32a99993e2ce736d077643ff6f68516
1a9e8c61c9e890e493a9522e90b9fd6ce756dde6
/app/src/main/java/com/martinborjesson/usbmousetoserialconfiguration/utils/DownloadTask.java
3f0700f7c4a4629d1ae0364272e91a5ab25ad4cf
[ "Apache-2.0" ]
permissive
mborjesson/USB-Mouse-to-Serial-Configuration-Android
4791fd3f7746e92e9326883b669b59f79e97989d
bc0f93d86104b56032f201a58190db27be0c5eae
refs/heads/master
2020-03-10T09:10:30.638334
2018-04-16T09:42:18
2018-04-16T09:42:18
129,303,865
4
0
null
null
null
null
UTF-8
Java
false
false
1,756
java
package com.martinborjesson.usbmousetoserialconfiguration.utils; import android.os.AsyncTask; import com.martinborjesson.usbmousetoserialconfiguration.utils.callbacks.DownloadCallback; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; public class DownloadTask extends AsyncTask<URL, Integer, Boolean> { final private DownloadCallback callback; private Object data; private String error; public DownloadTask(DownloadCallback callback) { this.callback = callback; } @Override protected Boolean doInBackground(URL... urls) { for (URL url : urls) { if (url != null) { try { HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setConnectTimeout(5000); con.setReadTimeout(5000); con.setRequestMethod("GET"); con.connect(); InputStream in = con.getInputStream(); if (in != null) { data = callback.onHandleStream(in); return true; } } catch (IOException e) { error = e.getMessage(); } } else { error = "Missing URL"; } } return false; } @Override protected void onPostExecute(Boolean aBoolean) { if (error != null) { callback.onDownloadFailed(error); } else if (data == null) { callback.onDownloadFailed("No data"); } else { callback.onDownloadCompleted(data); } callback.onDownloadAfter(); } }
d0ed2264585fbba48487cc34ec0b01373286145e
edba60bb2b081bef0dde2141d4273a8ec5b85b59
/src/zeus/visualiser/VisualiserModel.java
bc9fedcfc85d3b5dc6d70d8c6c4fca87bb9e471b
[]
no_license
sgt101/zeus
6a087bc6438ff82b456b67f193dd554954cd0599
1f48ff24ffaa55128fbe0b9b67b2465e1d1e46ce
refs/heads/master
2020-05-30T11:02:22.819112
2015-02-26T15:25:23
2015-02-26T15:25:23
31,373,027
1
1
null
null
null
null
UTF-8
Java
false
false
8,416
java
/* * The contents of this file are subject to the BT "ZEUS" Open Source * Licence (L77741), Version 1.0 (the "Licence"); you may not use this file * except in compliance with the Licence. You may obtain a copy of the Licence * from $ZEUS_INSTALL/licence.html or alternatively from * http://www.labs.bt.com/projects/agents/zeus/licence.htm * * Except as stated in Clause 7 of the Licence, software distributed under the * Licence is distributed WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the Licence for the specific language governing rights and * limitations under the Licence. * * The Original Code is within the package zeus.*. * The Initial Developer of the Original Code is British Telecommunications * public limited company, whose registered office is at 81 Newgate Street, * London, EC1A 7AJ, England. Portions created by British Telecommunications * public limited company are Copyright 1996-9. All Rights Reserved. * * THIS NOTICE MUST BE INCLUDED ON ANY COPY OF THIS FILE */ package zeus.visualiser; import java.util.*; import zeus.util.*; import zeus.concepts.*; import zeus.actors.*; public class VisualiserModel { public static final int ADDRESS_KEY = 0; public static final int MESSAGE_KEY = 1; public static final int REPORT_KEY = 2; public static final int CANCEL_SUBSCRIPTION = 0; public static final int DO_NOTHING = 1; protected Hashtable sessionList = new Hashtable(); protected Hashtable agentList = new Hashtable(); protected Hashtable messageRuleDb = new Hashtable(); protected Hashtable subscriptionDb = new Hashtable(); protected Hashtable subscriptionContent = new Hashtable(); protected AgentContext context = null; public String[] keys = new String[3]; public VisualiserModel(AgentContext context) { this.context = context; for(int i = 0; i < keys.length; i++ ) keys[i] = context.newId("VisualiserModel"); subscriptionContent.put(keys[ADDRESS_KEY],"log_address"); subscriptionContent.put(keys[MESSAGE_KEY],"log_message"); subscriptionContent.put(keys[REPORT_KEY],"log_report"); } public String getSubscriptionContent(String key) { return (String)subscriptionContent.get(key); } public void addAgent(String name, String type) { if (name == null || type == null) return; agentList.put(name,type); } public void addAgents(String[] agent) { if (agent == null) return; String type = SystemProps.getProperty("agent.names.agent"); for(int i = 0; i < agent.length; i++ ) if ( !agentList.containsKey(agent[i]) ) agentList.put(agent[i],type); } public String[] getAgents() { Enumeration keys = agentList.keys(); String[] data = new String[agentList.size()]; for(int i = 0; keys.hasMoreElements(); i++) data[i] = (String)keys.nextElement(); return data; } public String[] getAgents(String agent_type) { Enumeration keys = agentList.keys(); Vector List = new Vector(); while(keys.hasMoreElements()) { String agent = (String)keys.nextElement(); String type = (String)agentList.get(agent); if (type.equals(agent_type)) List.addElement(agent); } return Misc.stringArray(List); } //------------------------------------------------------- // Agent Name Server List Methods public void addNameservers(String[] agent) { if (agent == null) return; String type = SystemProps.getProperty("agent.names.nameserver"); for(int i = 0; i < agent.length; i++ ) { agentList.put(agent[i],type); } } public void addNameserver(String agent) { if (agent == null) return; String type = SystemProps.getProperty("agent.names.nameserver"); agentList.put(agent,type); } public String[] getNameservers() { return getAgents(SystemProps.getProperty("agent.names.nameserver")); } //------------------------------------------------------- // Database Proxy List Methods public void addDbProxy(String agent) { if (agent == null) return; String type = SystemProps.getProperty("agent.names.dbProxy"); agentList.put(agent,type); } public void addDbProxys(String[] agent) { if (agent == null) return; String type = SystemProps.getProperty("agent.names.dbProxy"); for(int i = 0; i < agent.length; i++ ) agentList.put(agent[i],type); } public String[] getDbProxys() { return getAgents(SystemProps.getProperty("agent.names.dbProxy")); } //------------------------------------------------------- public void addDbSession(String type, String agent, String sessionId) { Hashtable outer = (Hashtable)sessionList.get(type); if ( outer == null ) { outer = new Hashtable(); sessionList.put(type,outer); } HSet inner = (HSet)outer.get(agent); if ( inner == null ) { inner = new HSet(); outer.put(agent,inner); } inner.add(sessionId); } public void addDbSessions(String type, Hashtable input) { Hashtable outer = (Hashtable)sessionList.get(type); if ( outer == null ) { outer = new Hashtable(); sessionList.put(type,outer); } String agent; HSet input_inner, inner; Enumeration keys = input.keys(); while( keys.hasMoreElements() ) { agent = (String)keys.nextElement(); input_inner = (HSet)input.get(agent); inner = (HSet)outer.get(agent); if ( inner == null ) { inner = new HSet(); outer.put(agent,inner); } inner.add(input_inner); } } public Hashtable getDbSessions(String type) { // return value Hashtable outer = (Hashtable)sessionList.get(type); if ( outer == null ) { outer = new Hashtable(); sessionList.put(type,outer); } // Now, make sure all dbProxys have an entry of <type> String[] agent = getDbProxys(); for(int i = 0; i < agent.length; i++ ) if ( !outer.containsKey(agent[i]) ) outer.put(agent[i],new HSet()); return outer; } //------------------------------------------------------- // Message management public String getMessageRule(String key, String agent, Object target, String method) { MessageInfo info = new MessageInfo(key,agent,target,method); return (String)messageRuleDb.get(info); } public String removeMessageRule(String key, String agent, Object target, String method) { MessageInfo info = new MessageInfo(key,agent,target,method); return (String)messageRuleDb.remove(info); } public void addMessageRule(String key, String agent, Object target, String method, String ruleId) { MessageInfo info = new MessageInfo(key,agent,target,method); Core.ERROR(messageRuleDb.put(info,ruleId) == null, 1, this); } public Hashtable removeAllMessageRulesTo(Object target) { String ruleId; MessageInfo info; Hashtable output = new Hashtable(); Enumeration keys = messageRuleDb.keys(); while( keys.hasMoreElements() ) { info = (MessageInfo)keys.nextElement(); if ( info.target == target ) { ruleId = (String)messageRuleDb.remove(info); output.put(info,ruleId); } } return output; } public boolean isAlreadySubscribed(String key, String agent, String ruleId) { SubscriptionInfo info = new SubscriptionInfo(key,agent); Vector List = (Vector)subscriptionDb.get(info); return List != null && List.contains(ruleId); } public void subscribe(String key, String agent, String ruleId) { SubscriptionInfo info = new SubscriptionInfo(key,agent); Vector List = (Vector)subscriptionDb.get(info); if ( List == null ) { List = new Vector(); subscriptionDb.put(info,List); } Core.ERROR(!List.contains(ruleId),2,this); List.addElement(ruleId); } public int unsubscribe(String key, String agent, String ruleId) { SubscriptionInfo info = new SubscriptionInfo(key,agent); Vector List = (Vector)subscriptionDb.get(info); Core.ERROR(List,3,this); Core.ERROR(List.removeElement(ruleId),4,this); if ( List.isEmpty() ) { subscriptionDb.remove(info); return CANCEL_SUBSCRIPTION; } return DO_NOTHING; } }
f3a0767e308a167235a26bf0ff2f2510f032cd6d
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/appbrand/media/record/g$5.java
1814c3998b31b1f9e92e588f218f03d87805a165
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
1,471
java
package com.tencent.mm.plugin.appbrand.media.record; import android.os.Looper; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.g.a.mb; import com.tencent.mm.plugin.appbrand.media.record.a.c.a; import com.tencent.mm.plugin.appbrand.media.record.record_imp.RecordParam; import com.tencent.mm.sdk.b.a; import com.tencent.mm.sdk.platformtools.ab; final class g$5 implements c.a { g$5(g paramg) { } public final void d(byte[] paramArrayOfByte, int paramInt, boolean paramBoolean) { AppMethodBeat.i(105607); Object localObject = this.ilC; ab.i("MicroMsg.Record.AudioRecordMgr", "onFrameRecorded buffSize:%d, isLastFrameL:%b", new Object[] { Integer.valueOf(paramInt), Boolean.valueOf(paramBoolean) }); mb localmb = new mb(); localmb.cHS.state = "frameRecorded"; if (((g)localObject).ilo != null) localmb.cHS.appId = ((g)localObject).ilo.appId; localmb.cHS.action = 5; localObject = new byte[paramInt]; System.arraycopy(paramArrayOfByte, 0, localObject, 0, paramInt); localmb.cHS.frameBuffer = ((byte[])localObject); localmb.cHS.cHT = paramBoolean; a.xxA.a(localmb, Looper.getMainLooper()); AppMethodBeat.o(105607); } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes5-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.appbrand.media.record.g.5 * JD-Core Version: 0.6.2 */
80da5bfb0ec54392d99638637aba2c13bed6c69b
aee8a8979b98497031388c387d46ed31cc8d543e
/src/java/net/spy/photo/struts/KeywordCloudAction.java
385d1b966924c29fbe2d72d440da00932fe846f4
[]
no_license
cchrisscoupe/photo
272b554ad30134102ba8facb0391ca2e87b35742
2d0b4373391f69cdf033141794e377bb55a18276
refs/heads/master
2020-04-05T22:49:31.575553
2009-01-17T03:41:12
2009-01-17T03:41:12
111,720
1
0
null
null
null
null
UTF-8
Java
false
false
3,402
java
package net.spy.photo.struts; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; import java.util.Iterator; import java.util.TreeSet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.spy.photo.search.KeywordMatch; import net.spy.photo.search.Search; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * Compute a cloud for the top 100 keywords. */ public class KeywordCloudAction extends PhotoAction { private static final int MAX_RESULTS=100; private SearchForm getSearchForm(HttpServletRequest req) throws Exception { SearchForm sf=new SearchForm(); if(req.getParameter("recent") != null || req.getParameter("from") != null || req.getParameter("to") != null) { String dateFrom=null; String dateTo=null; if(req.getParameter("recent")!= null) { SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/dd"); Calendar cal=Calendar.getInstance(); cal.add(Calendar.DAY_OF_MONTH, -30); dateFrom=sdf.format(cal.getTime()); } else { dateFrom=req.getParameter("from"); dateTo=req.getParameter("to"); } sf=new SearchForm(); sf.setStart(dateFrom); sf.setEnd(dateTo); sf.setOrder("a.ts"); } sf.setSdirection("desc"); return(sf); } @Override @SuppressWarnings("unchecked") protected ActionForward spyExecute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { Collection<KeywordMatch> ts= new TreeSet<KeywordMatch>(KeywordMatch.BY_FREQUENCY); ts.addAll(Search.getInstance().getKeywordsForUser( getUser(req), getSearchForm(req))); // Make sure we don't return too many results if(ts.size() > MAX_RESULTS) { Collection<KeywordMatch> smaller=new ArrayList<KeywordMatch>(); for(Iterator<KeywordMatch> i=ts.iterator(); i.hasNext() && smaller.size() < MAX_RESULTS; ) { smaller.add(i.next()); } ts=smaller; } int sum=0; for(KeywordMatch km : ts) { sum+= km.getCount(); } Collection<KeywordMatch> buckets[]=new Collection[5]; for(int i=0; i<buckets.length; i++) { buckets[i]=new ArrayList<KeywordMatch>(); } int each=sum/buckets.length; int current=0; for(KeywordMatch km : ts) { if(sumOf(buckets[current]) + km.getCount() > each) { current++; } if(current >= buckets.length) { current=buckets.length-1; } buckets[current].add(km); } Collection<KeywordMatch> sorted =new TreeSet<KeywordMatch>(KeywordMatch.BY_KEYWORD); sorted.addAll(ts); Collection<KW> rv=new ArrayList<KW>(sorted.size()); for(KeywordMatch km : sorted) { for(int i=0; i<buckets.length; i++) { if(buckets[i].contains(km)) { rv.add(new KW(km, i)); break; } } } req.setAttribute("keywords", rv); return(mapping.findForward("next")); } private int sumOf(Collection<KeywordMatch> collection) { int sum=0; for(KeywordMatch km : collection) { sum+=km.getCount(); } return(sum); } public static class KW { private int bucket=0; private KeywordMatch kwmatch=null; public KW(KeywordMatch k, int b) { super(); bucket=b; kwmatch=k; } public int getBucket() { return bucket; } public KeywordMatch getKwmatch() { return kwmatch; } } }
8f056bf91b8f508bfc09df2ba95206354dcf3fb7
309e3ad7416158e345f76721757ec38e2fde1e89
/src/main/java/ru/nik/testtask/repository/HumanRepository.java
3acb865917d5e5086ec380bbf6feff2ff955c360
[]
no_license
ujwegh/test-task
43992c4b2882702a7ded6916daa730b5a106b943
f7db98d6105cc08be18f04371ce71a9f2fa24ee3
refs/heads/master
2022-09-28T12:01:35.217849
2020-06-06T10:48:20
2020-06-06T10:48:20
269,752,301
0
0
null
null
null
null
UTF-8
Java
false
false
470
java
package ru.nik.testtask.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import ru.nik.testtask.model.Human; import java.util.List; @Repository public interface HumanRepository extends JpaRepository<Human, Long> { // длинновато, но как же просто List<Human> findAllByNameContainingIgnoreCaseOrSecondNameContainingIgnoreCase(String pattern1, String pattern2); }
57d372f422c5be55ca2a80fe09bc18cc5842c5d9
576325c11b3a83bb874a4efe36cfb37784b72ff1
/app/src/test/java/in/co/ayushjain/justjava/ExampleUnitTest.java
6b49e44c4533bb4880fd6706ae49c4e31cd6a7d2
[]
no_license
ayush1703/JustJava
39f7ac9298d5c072e27fec2c931341153e2415f0
012eff07f2e636137799609c0acc673c026d4a67
refs/heads/master
2020-05-29T14:40:49.630466
2016-07-14T20:21:13
2016-07-14T20:21:13
63,367,054
0
0
null
null
null
null
UTF-8
Java
false
false
317
java
package in.co.ayushjain.justjava; 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); } }
26e5aa6455092afc173dbe0bf6d0ad69f26186c1
7645ed419e3ec6b08a7aac884aa6eb35428fceaa
/maven-plugin-demo/src/main/java/com/william/maven/study/App.java
f825dda0943ec45bc6307b8a1526ed63e43526e2
[]
no_license
williamcheng1988/maven-study
bf022b37cdd5d504b7a698a7804ba214d24ffe2e
68eb2ff7f954e1479c5bf7f8aa0bf3a4ec3d98f3
refs/heads/master
2020-12-25T17:46:28.066491
2018-09-11T12:05:27
2018-09-11T12:05:27
68,536,914
0
0
null
null
null
null
UTF-8
Java
false
false
185
java
package com.william.maven.study; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
0f0130d4e0e18aa06e0a7016e773e1d5fa3f66de
d1db66e9a8878acd9e5ce44e5904d6fcf0fc8e22
/src/main/java/uvsq/fr/entities/Category.java
b5a838177eccae8a86930a18e29e23f185a94b21
[]
no_license
rroot47/light-ecommerce
89c00d19efc1625f2173324438215ee210737eb5
1f54aff697c390c1e76e424732b10d81c42c31eb
refs/heads/master
2022-11-06T22:40:43.573251
2020-06-19T20:14:56
2020-06-19T20:14:56
273,578,594
0
0
null
null
null
null
UTF-8
Java
false
false
1,477
java
package uvsq.fr.entities; import javax.persistence.*; import java.io.Serializable; import java.util.Collection; @Entity public class Category implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String description; private String photocat; @OneToMany(mappedBy = "category") private Collection<Products> products; public Category(Long id, String name, String description, String photocat, Collection<Products> products) { this.id = id; this.name = name; this.description = description; this.photocat = photocat; this.products = products; } public Category(){} public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getPhotocat() { return photocat; } public void setPhotocat(String photocat) { this.photocat = photocat; } public Collection<Products> getProducts() { return products; } public void setProducts(Collection<Products> products) { this.products = products; } }
4d2f89b2c924b5725550b7a9693cf38f0aacc4d9
977230ea6055910ee5665eaa2c658ab359cbc45d
/gulimall-product/src/main/java/com/wang/gulimall/product/entity/SkuSaleAttrValueEntity.java
cd5a8165742082e7cb38c110a67f3a9cfb53af08
[ "Apache-2.0" ]
permissive
817coder/gulimall
74c0d6f5c0ca7515054e4bc9fdcb7c0b527404b1
287142d45ffd1eb4780b4fc4068115d320eca8c8
refs/heads/main
2023-06-11T06:08:25.725518
2021-06-28T08:55:07
2021-06-28T08:55:07
309,115,074
0
0
null
null
null
null
UTF-8
Java
false
false
818
java
package com.wang.gulimall.product.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.io.Serializable; /** * sku销售属性&值 * * @author leifengyang * @email [email protected] * @date 2019-10-01 21:08:49 */ @Data @TableName("pms_sku_sale_attr_value") public class SkuSaleAttrValueEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * sku_id */ private Long skuId; /** * attr_id */ private Long attrId; /** * 销售属性名 */ private String attrName; /** * 销售属性值 */ private String attrValue; /** * 顺序 */ private Integer attrSort; }
f5286c07e9ac447f6e4d7ccf695cdebe44eb9951
c8e19f3859654e51f656ee41e5661e1d65f94192
/Handins/hi10/CAS/TestCasAtomicInteger.java
48a17c0e78ee6fd2d3440c1d9b8079bd21278f52
[]
no_license
ThomasKeralla/PCPP-
fca00ad84a9fa005d4c547ba4264171c3204f30c
6494998978b95335b002a603d4c07eebf318832b
refs/heads/master
2020-06-27T03:25:36.515881
2019-07-31T10:11:47
2019-07-31T10:11:47
199,831,399
1
0
null
null
null
null
UTF-8
Java
false
false
6,251
java
// For week 10 and 11 // [email protected] * 2014-11-12, 2015-11-03 // Implementation of CAS in terms of lock, for describing its meaning, // and implementation of AtomicInteger style operations in terms of // CAS. import java.util.concurrent.CyclicBarrier; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.IntToDoubleFunction; public class TestCasAtomicInteger { public static void main(String[] args) { // testMyAtomicInteger(); timeSequentialGetAndAdd(); timeParallelGetAndAdd(); } private static void testMyAtomicInteger() { MyAtomicInteger mai = new MyAtomicInteger(); System.out.println(mai.incrementAndGet()); System.out.println(mai.incrementAndGet()); System.out.println(mai.addAndGet(30)); System.out.println(mai.get()); System.out.println(mai.getAndSet(67)); System.out.println(mai.get()); System.out.println(mai.compareAndSet(67, 42)); System.out.println(mai.get()); System.out.println(mai.compareAndSet(67, 42)); System.out.println(mai.get()); } private static void timeSequentialGetAndAdd() { SystemInfo(); final int count = 1_000_000; // This is so fast, 0.4 ns per iteration, that some kind of lock // coarsening or lock elision must be done in the JVM JIT. System.out.println(Mark7("MyAtomicInteger", (int i) -> { final MyAtomicInteger ai = new MyAtomicInteger(); int res = 0; for (int j=0; j<count; j++) res += ai.addAndGet(j); return res; })); System.out.println(Mark7("AtomicInteger", (int i) -> { final AtomicInteger ai = new AtomicInteger(); int res = 0; for (int j=0; j<count; j++) res += ai.addAndGet(j); return res; })); } private static void timeParallelGetAndAdd() { SystemInfo(); final int count = 10_000_000, threadCount = 1; final CyclicBarrier startBarrier = new CyclicBarrier(threadCount + 1), stopBarrier = startBarrier; { final MyAtomicInteger ai = new MyAtomicInteger(); for (int t=0; t<threadCount; t++) { new Thread(() -> { try { startBarrier.await(); } catch (Exception exn) { } for (int p=0; p<count; p++) ai.addAndGet(p); try { stopBarrier.await(); } catch (Exception exn) { } }).start(); } try { startBarrier.await(); } catch (Exception exn) { } Timer t = new Timer(); try { stopBarrier.await(); } catch (Exception exn) { } double time = t.check() * 1e6; System.out.printf("MyAtomicInteger sum = %d; time = %10.2f us; per op = %6.1f ns %n", ai.get(), time, time * 1000.0 / count / threadCount); } { final AtomicInteger ai = new AtomicInteger(); for (int t=0; t<threadCount; t++) { new Thread(() -> { try { startBarrier.await(); } catch (Exception exn) { } for (int p=0; p<count; p++) ai.addAndGet(p); try { stopBarrier.await(); } catch (Exception exn) { } }).start(); } try { startBarrier.await(); } catch (Exception exn) { } Timer t = new Timer(); try { stopBarrier.await(); } catch (Exception exn) { } double time = t.check() * 1e6; System.out.printf("AtomicInteger sum = %d; time = %10.2f us; per op = %6.1f ns %n", ai.get(), time, time * 1000.0 / count / threadCount); } } public static double Mark7(String msg, IntToDoubleFunction f) { int n = 10, count = 1, totalCount = 0; double dummy = 0.0, runningTime = 0.0, st = 0.0, sst = 0.0; do { count *= 2; st = sst = 0.0; for (int j=0; j<n; j++) { Timer t = new Timer(); for (int i=0; i<count; i++) dummy += f.applyAsDouble(i); runningTime = t.check(); double time = runningTime * 1e9 / count; st += time; sst += time * time; totalCount += count; } } while (runningTime < 0.25 && count < Integer.MAX_VALUE/2); double mean = st/n, sdev = Math.sqrt((sst - mean*mean*n)/(n-1)); System.out.printf("%-25s %15.1f ns %10.2f %10d%n", msg, mean, sdev, count); return dummy / totalCount; } public static void SystemInfo() { System.out.printf("# OS: %s; %s; %s%n", System.getProperty("os.name"), System.getProperty("os.version"), System.getProperty("os.arch")); System.out.printf("# JVM: %s; %s%n", System.getProperty("java.vendor"), System.getProperty("java.version")); // The processor identifier works only on MS Windows: System.out.printf("# CPU: %s; %d \"cores\"%n", System.getenv("PROCESSOR_IDENTIFIER"), Runtime.getRuntime().availableProcessors()); java.util.Date now = new java.util.Date(); System.out.printf("# Date: %s%n", new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(now)); } } // Model implementation of an AtomicInteger class MyAtomicInteger { private int value; // Visibility ensured by locking // Model implementation of compareAndSet to illustrate its meaning. // In reality, compareAndSet is not implemented using locks; the // opposite is usually the case. public synchronized boolean compareAndSet(int oldValue, int newValue) { if (this.value == oldValue) { this.value = newValue; return true; } else return false; } public synchronized int get() { return this.value; } public int addAndGet(int delta) { int oldValue, newValue; do { oldValue = get(); newValue = oldValue + delta; } while (!compareAndSet(oldValue, newValue)); return newValue; } public int getAndAdd(int delta) { int oldValue, newValue; do { oldValue = get(); newValue = oldValue + delta; } while (!compareAndSet(oldValue, newValue)); return oldValue; } public int incrementAndGet() { return addAndGet(1); } public int decrementAndGet() { return addAndGet(-1); } public int getAndSet(int newValue) { int oldValue; do { oldValue = get(); } while (!compareAndSet(oldValue, newValue)); return oldValue; } }
5ecc6a5fc17da6882a5a15726999b05313b66e4c
4a972fbc3784e2e4bfe897bae56aab424d5dea4b
/kafkaservice/src/main/java/kafkaservice/msg/service/Consumer.java
1dd815aeefed723fb365335a87cd74ff2cc5de0a
[]
no_license
SasmitaPriyadarshiniDas/restaurant-ordering-service
d4e903d4278da13b956676e74f64d7bd78f6aec8
84d9dd8c85c725cf166e7a353d8d24a9e2d7a05e
refs/heads/master
2022-07-18T16:50:44.219352
2020-02-19T12:02:13
2020-02-19T12:02:13
241,607,490
0
0
null
2022-07-01T21:28:33
2020-02-19T11:42:43
Java
UTF-8
Java
false
false
112
java
package kafkaservice.msg.service; public interface Consumer { public void consume(String message); }
0f98fb142bc484e6e29f0b480ab8035576570064
54510bb4c17e1edfcb801d97e38c7ce9a0784606
/src/main/java/com/moqi/lock/SpinLockDemo.java
c575cae11b4546852a9122e99a2fdb7e747267cb
[]
no_license
moqi1997/suanfa
46bbdfcb96ab2cf368238beabe5500b1d8b26b43
3887d677d9738a06dcba9178a77d13ca760b8e48
refs/heads/master
2021-02-05T00:45:48.503069
2020-05-15T11:01:04
2020-05-15T11:01:04
243,723,699
1
0
null
null
null
null
UTF-8
Java
false
false
390
java
package com.moqi.lock; import java.util.concurrent.atomic.AtomicReference; /** * @author moqi * @date 2020/5/5 14:55 */ public class SpinLockDemo { AtomicReference<Thread> atomicReference = new AtomicReference<>(); public void myLock() { Thread thread = Thread.currentThread(); System.out.println(Thread.currentThread().getName() + "\t come in"); } }
0b42a0cd9bb93b2b1d24e4921d2a1b56056d5f64
fa51687f6aa32d57a9f5f4efc6dcfda2806f244d
/jdk8-src/src/main/java/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_zh_CN.java
67ed167630714da0e3a063d551803f660b1cc2d3
[]
no_license
yida-lxw/jdk8
44bad6ccd2d81099bea11433c8f2a0fc2e589eaa
9f69e5f33eb5ab32e385301b210db1e49e919aac
refs/heads/master
2022-12-29T23:56:32.001512
2020-04-27T04:14:10
2020-04-27T04:14:10
258,988,898
0
1
null
2020-10-13T21:32:05
2020-04-26T09:21:22
Java
UTF-8
Java
false
false
53,359
java
/* * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 2001-2004 The Apache Software Foundation. * * 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.sun.org.apache.xalan.internal.xsltc.compiler.util; import java.util.ListResourceBundle; /** * @author Morten Jorgensen */ public class ErrorMessages_zh_CN extends ListResourceBundle { /* * XSLTC compile-time error messages. * * General notes to translators and definitions: * * 1) XSLTC is the name of the product. It is an acronym for "XSLT Compiler". * XSLT is an acronym for "XML Stylesheet Language: Transformations". * * 2) A stylesheet is a description of how to transform an input XML document * into a resultant XML document (or HTML document or text). The * stylesheet itself is described in the form of an XML document. * * 3) A template is a component of a stylesheet that is used to match a * particular portion of an input document and specifies the form of the * corresponding portion of the output document. * * 4) An axis is a particular "dimension" in a tree representation of an XML * document; the nodes in the tree are divided along different axes. * Traversing the "child" axis, for instance, means that the program * would visit each child of a particular node; traversing the "descendant" * axis means that the program would visit the child nodes of a particular * node, their children, and so on until the leaf nodes of the tree are * reached. * * 5) An iterator is an object that traverses nodes in a tree along a * particular axis, one at a time. * * 6) An element is a mark-up tag in an XML document; an attribute is a * modifier on the tag. For example, in <elem attr='val' attr2='val2'> * "elem" is an element name, "attr" and "attr2" are attribute names with * the values "val" and "val2", respectively. * * 7) A namespace declaration is a special attribute that is used to associate * a prefix with a URI (the namespace). The meanings of element names and * attribute names that use that prefix are defined with respect to that * namespace. * * 8) DOM is an acronym for Document Object Model. It is a tree * representation of an XML document. * * SAX is an acronym for the Simple API for XML processing. It is an API * used inform an XML processor (in this case XSLTC) of the structure and * content of an XML document. * * Input to the stylesheet processor can come from an XML parser in the * form of a DOM tree or through the SAX API. * * 9) DTD is a document type declaration. It is a way of specifying the * grammar for an XML file, the names and types of elements, attributes, * etc. * * 10) XPath is a specification that describes a notation for identifying * nodes in a tree-structured representation of an XML document. An * instance of that notation is referred to as an XPath expression. * * 11) Translet is an invented term that refers to the class file that contains * the compiled form of a stylesheet. */ // These message should be read from a locale-specific resource bundle /** * Get the lookup table for error messages. * * @return The message lookup table. */ public Object[][] getContents() { return new Object[][]{ {ErrorMsg.MULTIPLE_STYLESHEET_ERR, "\u540C\u4E00\u6587\u4EF6\u4E2D\u5B9A\u4E49\u4E86\u591A\u4E2A\u6837\u5F0F\u8868\u3002"}, /* * Note to translators: The substitution text is the name of a * template. The same name was used on two different templates in the * same stylesheet. */ {ErrorMsg.TEMPLATE_REDEF_ERR, "\u5DF2\u5728\u6B64\u6837\u5F0F\u8868\u4E2D\u5B9A\u4E49\u6A21\u677F ''{0}''\u3002"}, /* * Note to translators: The substitution text is the name of a * template. A reference to the template name was encountered, but the * template is undefined. */ {ErrorMsg.TEMPLATE_UNDEF_ERR, "\u672A\u5728\u6B64\u6837\u5F0F\u8868\u4E2D\u5B9A\u4E49\u6A21\u677F ''{0}''\u3002"}, /* * Note to translators: The substitution text is the name of a variable * that was defined more than once. */ {ErrorMsg.VARIABLE_REDEF_ERR, "\u540C\u4E00\u4F5C\u7528\u57DF\u4E2D\u591A\u6B21\u5B9A\u4E49\u4E86\u53D8\u91CF ''{0}''\u3002"}, /* * Note to translators: The substitution text is the name of a variable * or parameter. A reference to the variable or parameter was found, * but it was never defined. */ {ErrorMsg.VARIABLE_UNDEF_ERR, "\u672A\u5B9A\u4E49\u53D8\u91CF\u6216\u53C2\u6570 ''{0}''\u3002"}, /* * Note to translators: The word "class" here refers to a Java class. * Processing the stylesheet required a class to be loaded, but it could * not be found. The substitution text is the name of the class. */ {ErrorMsg.CLASS_NOT_FOUND_ERR, "\u627E\u4E0D\u5230\u7C7B ''{0}''\u3002"}, /* * Note to translators: The word "method" here refers to a Java method. * Processing the stylesheet required a reference to the method named by * the substitution text, but it could not be found. "public" is the * Java keyword. */ {ErrorMsg.METHOD_NOT_FOUND_ERR, "\u627E\u4E0D\u5230\u5916\u90E8\u65B9\u6CD5 ''{0}'' (\u5FC5\u987B\u4E3A public)\u3002"}, /* * Note to translators: The word "method" here refers to a Java method. * Processing the stylesheet required a reference to the method named by * the substitution text, but no method with the required types of * arguments or return type could be found. */ {ErrorMsg.ARGUMENT_CONVERSION_ERR, "\u65E0\u6CD5\u5728\u8C03\u7528\u65B9\u6CD5 ''{0}'' \u65F6\u8F6C\u6362\u53C2\u6570/\u8FD4\u56DE\u7C7B\u578B"}, /* * Note to translators: The file or URI named in the substitution text * is missing. */ {ErrorMsg.FILE_NOT_FOUND_ERR, "\u627E\u4E0D\u5230\u6587\u4EF6\u6216 URI ''{0}''\u3002"}, /* * Note to translators: This message is displayed when the URI * mentioned in the substitution text is not well-formed syntactically. */ {ErrorMsg.INVALID_URI_ERR, "URI ''{0}'' \u65E0\u6548\u3002"}, /* * Note to translators: The file or URI named in the substitution text * exists but could not be opened. */ {ErrorMsg.FILE_ACCESS_ERR, "\u65E0\u6CD5\u6253\u5F00\u6587\u4EF6\u6216 URI ''{0}''\u3002"}, /* * Note to translators: <xsl:stylesheet> and <xsl:transform> are * keywords that should not be translated. */ {ErrorMsg.MISSING_ROOT_ERR, "\u9700\u8981 <xsl:stylesheet> \u6216 <xsl:transform> \u5143\u7D20\u3002"}, /* * Note to translators: The stylesheet contained a reference to a * namespace prefix that was undefined. The value of the substitution * text is the name of the prefix. */ {ErrorMsg.NAMESPACE_UNDEF_ERR, "\u672A\u58F0\u660E\u540D\u79F0\u7A7A\u95F4\u524D\u7F00 ''{0}''\u3002"}, /* * Note to translators: The Java function named in the stylesheet could * not be found. */ {ErrorMsg.FUNCTION_RESOLVE_ERR, "\u65E0\u6CD5\u89E3\u6790\u5BF9\u51FD\u6570 ''{0}'' \u7684\u8C03\u7528\u3002"}, /* * Note to translators: The substitution text is the name of a * function. A literal string here means a constant string value. */ {ErrorMsg.NEED_LITERAL_ERR, "''{0}'' \u7684\u53C2\u6570\u5FC5\u987B\u662F\u6587\u5B57\u5B57\u7B26\u4E32\u3002"}, /* * Note to translators: This message indicates there was a syntactic * error in the form of an XPath expression. The substitution text is * the expression. */ {ErrorMsg.XPATH_PARSER_ERR, "\u89E3\u6790 XPath \u8868\u8FBE\u5F0F ''{0}'' \u65F6\u51FA\u9519\u3002"}, /* * Note to translators: An element in the stylesheet requires a * particular attribute named by the substitution text, but that * attribute was not specified in the stylesheet. */ {ErrorMsg.REQUIRED_ATTR_ERR, "\u7F3A\u5C11\u6240\u9700\u5C5E\u6027 ''{0}''\u3002"}, /* * Note to translators: This message indicates that a character not * permitted in an XPath expression was encountered. The substitution * text is the offending character. */ {ErrorMsg.ILLEGAL_CHAR_ERR, "XPath \u8868\u8FBE\u5F0F\u4E2D\u7684\u5B57\u7B26 ''{0}'' \u975E\u6CD5\u3002"}, /* * Note to translators: A processing instruction is a mark-up item in * an XML document that request some behaviour of an XML processor. The * form of the name of was invalid in this case, and the substitution * text is the name. */ {ErrorMsg.ILLEGAL_PI_ERR, "processing instruction \u7684\u540D\u79F0 ''{0}'' \u975E\u6CD5\u3002"}, /* * Note to translators: This message is reported if the stylesheet * being processed attempted to construct an XML document with an * attribute in a place other than on an element. The substitution text * specifies the name of the attribute. */ {ErrorMsg.STRAY_ATTRIBUTE_ERR, "\u5C5E\u6027 ''{0}'' \u5728\u5143\u7D20\u5916\u90E8\u3002"}, /* * Note to translators: An attribute that wasn't recognized was * specified on an element in the stylesheet. The attribute is named * by the substitution * text. */ {ErrorMsg.ILLEGAL_ATTRIBUTE_ERR, "\u5C5E\u6027 ''{0}'' \u975E\u6CD5\u3002"}, /* * Note to translators: "import" and "include" are keywords that should * not be translated. This messages indicates that the stylesheet * named in the substitution text imported or included itself either * directly or indirectly. */ {ErrorMsg.CIRCULAR_INCLUDE_ERR, "\u5FAA\u73AF import/include\u3002\u5DF2\u52A0\u8F7D\u6837\u5F0F\u8868 ''{0}''\u3002"}, /* * Note to translators: A result-tree fragment is a portion of a * resulting XML document represented as a tree. "<xsl:sort>" is a * keyword and should not be translated. */ {ErrorMsg.RESULT_TREE_SORT_ERR, "\u65E0\u6CD5\u5BF9\u7ED3\u679C\u6811\u7247\u6BB5\u6392\u5E8F (\u5FFD\u7565 <xsl:sort> \u5143\u7D20)\u3002\u5FC5\u987B\u5728\u521B\u5EFA\u7ED3\u679C\u6811\u65F6\u5BF9\u8282\u70B9\u8FDB\u884C\u6392\u5E8F\u3002"}, /* * Note to translators: A name can be given to a particular style to be * used to format decimal values. The substitution text gives the name * of such a style for which more than one declaration was encountered. */ {ErrorMsg.SYMBOLS_REDEF_ERR, "\u5DF2\u5B9A\u4E49\u5341\u8FDB\u5236\u683C\u5F0F ''{0}''\u3002"}, /* * Note to translators: The stylesheet version named in the * substitution text is not supported. */ {ErrorMsg.XSL_VERSION_ERR, "XSLTC \u4E0D\u652F\u6301 XSL \u7248\u672C ''{0}''\u3002"}, /* * Note to translators: The definitions of one or more variables or * parameters depend on one another. */ {ErrorMsg.CIRCULAR_VARIABLE_ERR, "''{0}'' \u4E2D\u5B58\u5728\u5FAA\u73AF\u53D8\u91CF/\u53C2\u6570\u5F15\u7528\u3002"}, /* * Note to translators: The operator in an expresion with two operands was * not recognized. */ {ErrorMsg.ILLEGAL_BINARY_OP_ERR, "\u4E8C\u8FDB\u5236\u8868\u8FBE\u5F0F\u7684\u8FD0\u7B97\u7B26\u672A\u77E5\u3002"}, /* * Note to translators: This message is produced if a reference to a * function has too many or too few arguments. */ {ErrorMsg.ILLEGAL_ARG_ERR, "\u51FD\u6570\u8C03\u7528\u7684\u53C2\u6570\u975E\u6CD5\u3002"}, /* * Note to translators: "document()" is the name of function and must * not be translated. A node-set is a set of the nodes in the tree * representation of an XML document. */ {ErrorMsg.DOCUMENT_ARG_ERR, "document() \u51FD\u6570\u7684\u7B2C\u4E8C\u4E2A\u53C2\u6570\u5FC5\u987B\u662F\u8282\u70B9\u96C6\u3002"}, /* * Note to translators: "<xsl:when>" and "<xsl:choose>" are keywords * and should not be translated. This message describes a syntax error * in the stylesheet. */ {ErrorMsg.MISSING_WHEN_ERR, "<xsl:choose> \u4E2D\u81F3\u5C11\u9700\u8981\u4E00\u4E2A <xsl:when> \u5143\u7D20\u3002"}, /* * Note to translators: "<xsl:otherwise>" and "<xsl:choose>" are * keywords and should not be translated. This message describes a * syntax error in the stylesheet. */ {ErrorMsg.MULTIPLE_OTHERWISE_ERR, "<xsl:choose> \u4E2D\u4EC5\u5141\u8BB8\u4F7F\u7528\u4E00\u4E2A <xsl:otherwise> \u5143\u7D20\u3002"}, /* * Note to translators: "<xsl:otherwise>" and "<xsl:choose>" are * keywords and should not be translated. This message describes a * syntax error in the stylesheet. */ {ErrorMsg.STRAY_OTHERWISE_ERR, "<xsl:otherwise> \u53EA\u80FD\u5728 <xsl:choose> \u4E2D\u4F7F\u7528\u3002"}, /* * Note to translators: "<xsl:when>" and "<xsl:choose>" are keywords * and should not be translated. This message describes a syntax error * in the stylesheet. */ {ErrorMsg.STRAY_WHEN_ERR, "<xsl:when> \u53EA\u80FD\u5728 <xsl:choose> \u4E2D\u4F7F\u7528\u3002"}, /* * Note to translators: "<xsl:when>", "<xsl:otherwise>" and * "<xsl:choose>" are keywords and should not be translated. This * message describes a syntax error in the stylesheet. */ {ErrorMsg.WHEN_ELEMENT_ERR, "<xsl:choose> \u4E2D\u4EC5\u5141\u8BB8\u4F7F\u7528 <xsl:when> \u548C <xsl:otherwise> \u5143\u7D20\u3002"}, /* * Note to translators: "<xsl:attribute-set>" and "name" are keywords * that should not be translated. */ {ErrorMsg.UNNAMED_ATTRIBSET_ERR, "<xsl:attribute-set> \u7F3A\u5C11 'name' \u5C5E\u6027\u3002"}, /* * Note to translators: An element in the stylesheet contained an * element of a type that it was not permitted to contain. */ {ErrorMsg.ILLEGAL_CHILD_ERR, "\u5B50\u5143\u7D20\u975E\u6CD5\u3002"}, /* * Note to translators: The stylesheet tried to create an element with * a name that was not a valid XML name. The substitution text contains * the name. */ {ErrorMsg.ILLEGAL_ELEM_NAME_ERR, "\u65E0\u6CD5\u8C03\u7528\u5143\u7D20 ''{0}''"}, /* * Note to translators: The stylesheet tried to create an attribute * with a name that was not a valid XML name. The substitution text * contains the name. */ {ErrorMsg.ILLEGAL_ATTR_NAME_ERR, "\u65E0\u6CD5\u8C03\u7528\u5C5E\u6027 ''{0}''"}, /* * Note to translators: The children of the outermost element of a * stylesheet are referred to as top-level elements. No text should * occur within that outermost element unless it is within a top-level * element. This message indicates that that constraint was violated. * "<xsl:stylesheet>" is a keyword that should not be translated. */ {ErrorMsg.ILLEGAL_TEXT_NODE_ERR, "\u6587\u672C\u6570\u636E\u4F4D\u4E8E\u9876\u7EA7 <xsl:stylesheet> \u5143\u7D20\u5916\u90E8\u3002"}, /* * Note to translators: JAXP is an acronym for the Java API for XML * Processing. This message indicates that the XML parser provided to * XSLTC to process the XML input document had a configuration problem. */ {ErrorMsg.SAX_PARSER_CONFIG_ERR, "JAXP \u89E3\u6790\u5668\u672A\u6B63\u786E\u914D\u7F6E"}, /* * Note to translators: The substitution text names the internal error * encountered. */ {ErrorMsg.INTERNAL_ERR, "\u4E0D\u53EF\u6062\u590D\u7684 XSLTC \u5185\u90E8\u9519\u8BEF: ''{0}''"}, /* * Note to translators: The stylesheet contained an element that was * not recognized as part of the XSL syntax. The substitution text * gives the element name. */ {ErrorMsg.UNSUPPORTED_XSL_ERR, "XSL \u5143\u7D20 ''{0}'' \u4E0D\u53D7\u652F\u6301\u3002"}, /* * Note to translators: The stylesheet referred to an extension to the * XSL syntax and indicated that it was defined by XSLTC, but XSTLC does * not recognized the particular extension named. The substitution text * gives the extension name. */ {ErrorMsg.UNSUPPORTED_EXT_ERR, "XSLTC \u6269\u5C55 ''{0}'' \u65E0\u6CD5\u8BC6\u522B\u3002"}, /* * Note to translators: The XML document given to XSLTC as a stylesheet * was not, in fact, a stylesheet. XSLTC is able to detect that in this * case because the outermost element in the stylesheet has to be * declared with respect to the XSL namespace URI, but no declaration * for that namespace was seen. */ {ErrorMsg.MISSING_XSLT_URI_ERR, "\u8F93\u5165\u6587\u6863\u4E0D\u662F\u6837\u5F0F\u8868 (\u672A\u5728\u6839\u5143\u7D20\u4E2D\u58F0\u660E XSL \u540D\u79F0\u7A7A\u95F4)\u3002"}, /* * Note to translators: XSLTC could not find the stylesheet document * with the name specified by the substitution text. */ {ErrorMsg.MISSING_XSLT_TARGET_ERR, "\u627E\u4E0D\u5230\u6837\u5F0F\u8868\u76EE\u6807 ''{0}''\u3002"}, /* * Note to translators: access to the stylesheet target is denied */ {ErrorMsg.ACCESSING_XSLT_TARGET_ERR, "\u7531\u4E8E accessExternalStylesheet \u5C5E\u6027\u8BBE\u7F6E\u7684\u9650\u5236\u800C\u4E0D\u5141\u8BB8 ''{1}'' \u8BBF\u95EE, \u56E0\u6B64\u65E0\u6CD5\u8BFB\u53D6\u6837\u5F0F\u8868\u76EE\u6807 ''{0}''\u3002"}, /* * Note to translators: This message represents an internal error in * condition in XSLTC. The substitution text is the class name in XSLTC * that is missing some functionality. */ {ErrorMsg.NOT_IMPLEMENTED_ERR, "\u672A\u5B9E\u73B0: ''{0}''\u3002"}, /* * Note to translators: The XML document given to XSLTC as a stylesheet * was not, in fact, a stylesheet. */ {ErrorMsg.NOT_STYLESHEET_ERR, "\u8F93\u5165\u6587\u6863\u4E0D\u5305\u542B XSL \u6837\u5F0F\u8868\u3002"}, /* * Note to translators: The element named in the substitution text was * encountered in the stylesheet but is not recognized. */ {ErrorMsg.ELEMENT_PARSE_ERR, "\u65E0\u6CD5\u89E3\u6790\u5143\u7D20 ''{0}''"}, /* * Note to translators: "use", "<key>", "node", "node-set", "string" * and "number" are keywords in this context and should not be * translated. This message indicates that the value of the "use" * attribute was not one of the permitted values. */ {ErrorMsg.KEY_USE_ATTR_ERR, "<key> \u7684 use \u5C5E\u6027\u5FC5\u987B\u662F node, node-set, string \u6216 number\u3002"}, /* * Note to translators: An XML document can specify the version of the * XML specification to which it adheres. This message indicates that * the version specified for the output document was not valid. */ {ErrorMsg.OUTPUT_VERSION_ERR, "\u8F93\u51FA XML \u6587\u6863\u7248\u672C\u5E94\u4E3A 1.0"}, /* * Note to translators: The operator in a comparison operation was * not recognized. */ {ErrorMsg.ILLEGAL_RELAT_OP_ERR, "\u5173\u7CFB\u8868\u8FBE\u5F0F\u7684\u8FD0\u7B97\u7B26\u672A\u77E5"}, /* * Note to translators: An attribute set defines as a set of XML * attributes that can be added to an element in the output XML document * as a group. This message is reported if the name specified was not * used to declare an attribute set. The substitution text is the name * that is in error. */ {ErrorMsg.ATTRIBSET_UNDEF_ERR, "\u5C1D\u8BD5\u4F7F\u7528\u4E0D\u5B58\u5728\u7684\u5C5E\u6027\u96C6 ''{0}''\u3002"}, /* * Note to translators: The term "attribute value template" is a term * defined by XSLT which describes the value of an attribute that is * determined by an XPath expression. The message indicates that the * expression was syntactically incorrect; the substitution text * contains the expression that was in error. */ {ErrorMsg.ATTR_VAL_TEMPLATE_ERR, "\u65E0\u6CD5\u89E3\u6790\u5C5E\u6027\u503C\u6A21\u677F ''{0}''\u3002"}, /* * Note to translators: ??? */ {ErrorMsg.UNKNOWN_SIG_TYPE_ERR, "\u7C7B ''{0}'' \u7684\u7B7E\u540D\u4E2D\u7684\u6570\u636E\u7C7B\u578B\u672A\u77E5\u3002"}, /* * Note to translators: The substitution text refers to data types. * The message is displayed if a value in a particular context needs to * be converted to type {1}, but that's not possible for a value of * type {0}. */ {ErrorMsg.DATA_CONVERSION_ERR, "\u65E0\u6CD5\u5C06\u6570\u636E\u7C7B\u578B ''{0}'' \u8F6C\u6362\u4E3A ''{1}''\u3002"}, /* * Note to translators: "Templates" is a Java class name that should * not be translated. */ {ErrorMsg.NO_TRANSLET_CLASS_ERR, "\u6B64 Templates \u4E0D\u5305\u542B\u6709\u6548\u7684 translet \u7C7B\u5B9A\u4E49\u3002"}, /* * Note to translators: "Templates" is a Java class name that should * not be translated. */ {ErrorMsg.NO_MAIN_TRANSLET_ERR, "\u6B64 Templates \u4E0D\u5305\u542B\u540D\u4E3A ''{0}'' \u7684\u7C7B\u3002"}, /* * Note to translators: The substitution text is the name of a class. */ {ErrorMsg.TRANSLET_CLASS_ERR, "\u65E0\u6CD5\u52A0\u8F7D translet \u7C7B ''{0}''\u3002"}, {ErrorMsg.TRANSLET_OBJECT_ERR, "\u5DF2\u52A0\u8F7D Translet \u7C7B, \u4F46\u65E0\u6CD5\u521B\u5EFA translet \u5B9E\u4F8B\u3002"}, /* * Note to translators: "ErrorListener" is a Java interface name that * should not be translated. The message indicates that the user tried * to set an ErrorListener object on object of the class named in the * substitution text with "null" Java value. */ {ErrorMsg.ERROR_LISTENER_NULL_ERR, "\u5C1D\u8BD5\u5C06 ''{0}'' \u7684 ErrorListener \u8BBE\u7F6E\u4E3A\u7A7A\u503C"}, /* * Note to translators: StreamSource, SAXSource and DOMSource are Java * interface names that should not be translated. */ {ErrorMsg.JAXP_UNKNOWN_SOURCE_ERR, "XSLTC \u4EC5\u652F\u6301 StreamSource, SAXSource \u548C DOMSource"}, /* * Note to translators: "Source" is a Java class name that should not * be translated. The substitution text is the name of Java method. */ {ErrorMsg.JAXP_NO_SOURCE_ERR, "\u4F20\u9012\u5230 ''{0}'' \u7684 Source \u5BF9\u8C61\u4E0D\u5305\u542B\u4EFB\u4F55\u5185\u5BB9\u3002"}, /* * Note to translators: The message indicates that XSLTC failed to * compile the stylesheet into a translet (class file). */ {ErrorMsg.JAXP_COMPILE_ERR, "\u65E0\u6CD5\u7F16\u8BD1\u6837\u5F0F\u8868"}, /* * Note to translators: "TransformerFactory" is a class name. In this * context, an attribute is a property or setting of the * TransformerFactory object. The substitution text is the name of the * unrecognised attribute. The method used to retrieve the attribute is * "getAttribute", so it's not clear whether it would be best to * translate the term "attribute". */ {ErrorMsg.JAXP_INVALID_ATTR_ERR, "TransformerFactory \u65E0\u6CD5\u8BC6\u522B\u5C5E\u6027 ''{0}''\u3002"}, {ErrorMsg.JAXP_INVALID_ATTR_VALUE_ERR, "\u4E3A ''{0}'' \u5C5E\u6027\u6307\u5B9A\u7684\u503C\u4E0D\u6B63\u786E\u3002"}, /* * Note to translators: "setResult()" and "startDocument()" are Java * method names that should not be translated. */ {ErrorMsg.JAXP_SET_RESULT_ERR, "\u5FC5\u987B\u5148\u8C03\u7528 setResult(), \u518D\u8C03\u7528 startDocument()\u3002"}, /* * Note to translators: "Transformer" is a Java interface name that * should not be translated. A Transformer object should contained a * reference to a translet object in order to be used for * transformations; this message is produced if that requirement is not * met. */ {ErrorMsg.JAXP_NO_TRANSLET_ERR, "Transformer \u6CA1\u6709\u5185\u5D4C\u7684 translet \u5BF9\u8C61\u3002"}, /* * Note to translators: The XML document that results from a * transformation needs to be sent to an output handler object; this * message is produced if that requirement is not met. */ {ErrorMsg.JAXP_NO_HANDLER_ERR, "\u8F6C\u6362\u7ED3\u679C\u6CA1\u6709\u5B9A\u4E49\u7684\u8F93\u51FA\u5904\u7406\u7A0B\u5E8F\u3002"}, /* * Note to translators: "Result" is a Java interface name in this * context. The substitution text is a method name. */ {ErrorMsg.JAXP_NO_RESULT_ERR, "\u4F20\u9012\u5230 ''{0}'' \u7684 Result \u5BF9\u8C61\u65E0\u6548\u3002"}, /* * Note to translators: "Transformer" is a Java interface name. The * user's program attempted to access an unrecognized property with the * name specified in the substitution text. The method used to retrieve * the property is "getOutputProperty", so it's not clear whether it * would be best to translate the term "property". */ {ErrorMsg.JAXP_UNKNOWN_PROP_ERR, "\u5C1D\u8BD5\u8BBF\u95EE\u65E0\u6548\u7684 Transformer \u5C5E\u6027 ''{0}''\u3002"}, /* * Note to translators: SAX2DOM is the name of a Java class that should * not be translated. This is an adapter in the sense that it takes a * DOM object and converts it to something that uses the SAX API. */ {ErrorMsg.SAX2DOM_ADAPTER_ERR, "\u65E0\u6CD5\u521B\u5EFA SAX2DOM \u9002\u914D\u5668: ''{0}''\u3002"}, /* * Note to translators: "XSLTCSource.build()" is a Java method name. * "systemId" is an XML term that is short for "system identification". */ {ErrorMsg.XSLTC_SOURCE_ERR, "\u8C03\u7528 XSLTCSource.build() \u65F6\u672A\u8BBE\u7F6E systemId\u3002"}, {ErrorMsg.ER_RESULT_NULL, "Result \u4E0D\u80FD\u4E3A\u7A7A\u503C"}, /* * Note to translators: This message indicates that the value argument * of setParameter must be a valid Java Object. */ {ErrorMsg.JAXP_INVALID_SET_PARAM_VALUE, "\u53C2\u6570 {0} \u7684\u503C\u5FC5\u987B\u662F\u6709\u6548 Java \u5BF9\u8C61"}, {ErrorMsg.COMPILE_STDIN_ERR, "-i \u9009\u9879\u5FC5\u987B\u4E0E -o \u9009\u9879\u4E00\u8D77\u4F7F\u7528\u3002"}, /* * Note to translators: This message contains usage information for a * means of invoking XSLTC from the command-line. The message is * formatted for presentation in English. The strings <output>, * <directory>, etc. indicate user-specified argument values, and can * be translated - the argument <package> refers to a Java package, so * it should be handled in the same way the term is handled for JDK * documentation. */ {ErrorMsg.COMPILE_USAGE_STR, "\u63D0\u8981\n java com.sun.org.apache.xalan.internal.xsltc.cmdline.Compile [-o <\u8F93\u51FA>]\n [-d <\u76EE\u5F55>] [-j <jarfile>] [-p <\u7A0B\u5E8F\u5305>]\n [-n] [-x] [-u] [-v] [-h] { <\u6837\u5F0F\u8868> | -i }\n\n\u9009\u9879\n -o <\u8F93\u51FA> \u4E3A\u751F\u6210\u7684 translet \u5206\u914D\n \u540D\u79F0 <\u8F93\u51FA>\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B, translet \u540D\u79F0\n \u6D3E\u751F\u81EA <\u6837\u5F0F\u8868> \u540D\u79F0\u3002\u5982\u679C\u8981\u7F16\u8BD1\u591A\u4E2A\u6837\u5F0F\u8868, \n \u5219\u5FFD\u7565\u6B64\u9009\u9879\u3002\n -d <\u76EE\u5F55> \u6307\u5B9A translet \u7684\u76EE\u6807\u76EE\u5F55\n -j <jarfile> \u5C06 translet \u7C7B\u6253\u5305\u5230\u5177\u6709 <jarfile>\n \u6307\u5B9A\u7684\u540D\u79F0\u7684 jar \u6587\u4EF6\u4E2D\n -p <\u7A0B\u5E8F\u5305> \u4E3A\u751F\u6210\u7684\u6240\u6709 translet \u7C7B\n \u6307\u5B9A\u7A0B\u5E8F\u5305\u540D\u79F0\u524D\u7F00\u3002\n -n \u542F\u7528\u6A21\u677F\u5185\u5D4C (\u9ED8\u8BA4\u884C\u4E3A\n \u901A\u5E38\u53EF\u63D0\u4F9B\u8F83\u597D\u7684\u6027\u80FD)\u3002\n -x \u542F\u7528\u5176\u4ED6\u8C03\u8BD5\u6D88\u606F\u8F93\u51FA\n -u \u5C06 <\u6837\u5F0F\u8868> \u53C2\u6570\u89E3\u91CA\u4E3A URL\n -i \u5F3A\u5236\u7F16\u8BD1\u5668\u4ECE stdin \u8BFB\u53D6\u6837\u5F0F\u8868\n -v \u8F93\u51FA\u7F16\u8BD1\u5668\u7684\u7248\u672C\n -h \u8F93\u51FA\u6B64\u7528\u6CD5\u8BED\u53E5\n"}, /* * Note to translators: This message contains usage information for a * means of invoking XSLTC from the command-line. The message is * formatted for presentation in English. The strings <jarfile>, * <document>, etc. indicate user-specified argument values, and can * be translated - the argument <class> refers to a Java class, so it * should be handled in the same way the term is handled for JDK * documentation. */ {ErrorMsg.TRANSFORM_USAGE_STR, "\u63D0\u8981\n java com.sun.org.apache.xalan.internal.xsltc.cmdline.Transform [-j <jarfile>]\n [-x] [-n <\u8FED\u4EE3\u6570>] {-u <document_url> | <\u6587\u6863>}\n <\u7C7B> [<param1>=<value1> ...]\n\n \u4F7F\u7528 translet <\u7C7B> \u8F6C\u6362\n <\u6587\u6863> \u6307\u5B9A\u7684 XML \u6587\u6863\u3002translet <\u7C7B> \u4F4D\u4E8E\n \u7528\u6237\u7684 CLASSPATH \u6216\u9009\u62E9\u6027\u6307\u5B9A\u7684 <jarfile> \u4E2D\u3002\n\u9009\u9879\n -j <jarfile> \u6307\u5B9A\u8981\u4ECE\u4E2D\u52A0\u8F7D translet \u7684 jarfile\n -x \u542F\u7528\u5176\u4ED6\u8C03\u8BD5\u6D88\u606F\u8F93\u51FA\n -n <\u8FED\u4EE3\u6570> \u8FD0\u884C <\u8FED\u4EE3\u6570> \u6B21\u8F6C\u6362\u5E76\n \u663E\u793A\u914D\u7F6E\u6587\u4EF6\u4FE1\u606F\n -u <document_url> \u4EE5 URL \u5F62\u5F0F\u6307\u5B9A XML \u8F93\u5165\u6587\u6863\n"}, /* * Note to translators: "<xsl:sort>", "<xsl:for-each>" and * "<xsl:apply-templates>" are keywords that should not be translated. * The message indicates that an xsl:sort element must be a child of * one of the other kinds of elements mentioned. */ {ErrorMsg.STRAY_SORT_ERR, "<xsl:sort> \u53EA\u80FD\u5728 <xsl:for-each> \u6216 <xsl:apply-templates> \u4E2D\u4F7F\u7528\u3002"}, /* * Note to translators: The message indicates that the encoding * requested for the output document was on that requires support that * is not available from the Java Virtual Machine being used to execute * the program. */ {ErrorMsg.UNSUPPORTED_ENCODING, "\u6B64 JVM \u4E2D\u4E0D\u652F\u6301\u8F93\u51FA\u7F16\u7801 ''{0}''\u3002"}, /* * Note to translators: The message indicates that the XPath expression * named in the substitution text was not well formed syntactically. */ {ErrorMsg.SYNTAX_ERR, "''{0}'' \u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\u3002"}, /* * Note to translators: The substitution text is the name of a Java * class. The term "constructor" here is the Java term. The message is * displayed if XSLTC could not find a constructor for the specified * class. */ {ErrorMsg.CONSTRUCTOR_NOT_FOUND, "\u627E\u4E0D\u5230\u5916\u90E8\u6784\u9020\u5668 ''{0}''\u3002"}, /* * Note to translators: "static" is the Java keyword. The substitution * text is the name of a function. The first argument of that function * is not of the required type. */ {ErrorMsg.NO_JAVA_FUNCT_THIS_REF, "\u975E static Java \u51FD\u6570 ''{0}'' \u7684\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E0D\u662F\u6709\u6548\u7684\u5BF9\u8C61\u5F15\u7528\u3002"}, /* * Note to translators: An XPath expression was not of the type * required in a particular context. The substitution text is the * expression that was in error. */ {ErrorMsg.TYPE_CHECK_ERR, "\u68C0\u67E5\u8868\u8FBE\u5F0F ''{0}'' \u7684\u7C7B\u578B\u65F6\u51FA\u9519\u3002"}, /* * Note to translators: An XPath expression was not of the type * required in a particular context. However, the location of the * problematic expression is unknown. */ {ErrorMsg.TYPE_CHECK_UNK_LOC_ERR, "\u68C0\u67E5\u672A\u77E5\u4F4D\u7F6E\u7684\u8868\u8FBE\u5F0F\u7C7B\u578B\u65F6\u51FA\u9519\u3002"}, /* * Note to translators: The substitution text is the name of a command- * line option that was not recognized. */ {ErrorMsg.ILLEGAL_CMDLINE_OPTION_ERR, "\u547D\u4EE4\u884C\u9009\u9879 ''{0}'' \u65E0\u6548\u3002"}, /* * Note to translators: The substitution text is the name of a command- * line option. */ {ErrorMsg.CMDLINE_OPT_MISSING_ARG_ERR, "\u547D\u4EE4\u884C\u9009\u9879 ''{0}'' \u7F3A\u5C11\u6240\u9700\u53C2\u6570\u3002"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text contains two error * messages. The spacing before the second substitution text indents * it the same amount as the first in English. */ {ErrorMsg.WARNING_PLUS_WRAPPED_MSG, "WARNING: ''{0}''\n :{1}"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text is an error message. */ {ErrorMsg.WARNING_MSG, "WARNING: ''{0}''"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text contains two error * messages. The spacing before the second substitution text indents * it the same amount as the first in English. */ {ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG, "FATAL ERROR: ''{0}''\n :{1}"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text is an error message. */ {ErrorMsg.FATAL_ERR_MSG, "FATAL ERROR: ''{0}''"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text contains two error * messages. The spacing before the second substitution text indents * it the same amount as the first in English. */ {ErrorMsg.ERROR_PLUS_WRAPPED_MSG, "ERROR: ''{0}''\n :{1}"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text is an error message. */ {ErrorMsg.ERROR_MSG, "ERROR: ''{0}''"}, /* * Note to translators: The substitution text is the name of a class. */ {ErrorMsg.TRANSFORM_WITH_TRANSLET_STR, "\u4F7F\u7528 translet ''{0}'' \u8FDB\u884C\u8F6C\u6362 "}, /* * Note to translators: The first substitution is the name of a class, * while the second substitution is the name of a jar file. */ {ErrorMsg.TRANSFORM_WITH_JAR_STR, "\u4F7F\u7528 translet ''{0}'' \u4ECE jar \u6587\u4EF6 ''{1}'' \u8FDB\u884C\u8F6C\u6362"}, /* * Note to translators: "TransformerFactory" is the name of a Java * interface and must not be translated. The substitution text is * the name of the class that could not be instantiated. */ {ErrorMsg.COULD_NOT_CREATE_TRANS_FACT, "\u65E0\u6CD5\u521B\u5EFA TransformerFactory \u7C7B ''{0}'' \u7684\u5B9E\u4F8B\u3002"}, /* * Note to translators: This message is produced when the user * specified a name for the translet class that contains characters * that are not permitted in a Java class name. The substitution * text "{0}" specifies the name the user requested, while "{1}" * specifies the name the processor used instead. */ {ErrorMsg.TRANSLET_NAME_JAVA_CONFLICT, "\u540D\u79F0 ''{0}'' \u5305\u542B\u4E0D\u5141\u8BB8\u5728 Java \u7C7B\u540D\u4E2D\u4F7F\u7528\u7684\u5B57\u7B26, \u56E0\u6B64\u65E0\u6CD5\u5C06\u6B64\u540D\u79F0\u7528\u4F5C translet \u7C7B\u7684\u540D\u79F0\u3002\u5DF2\u6539\u7528\u540D\u79F0 ''{1}''\u3002"}, /* * Note to translators: The following message is used as a header. * All the error messages are collected together and displayed beneath * this message. */ {ErrorMsg.COMPILER_ERROR_KEY, "\u7F16\u8BD1\u5668\u9519\u8BEF:"}, /* * Note to translators: The following message is used as a header. * All the warning messages are collected together and displayed * beneath this message. */ {ErrorMsg.COMPILER_WARNING_KEY, "\u7F16\u8BD1\u5668\u8B66\u544A:"}, /* * Note to translators: The following message is used as a header. * All the error messages that are produced when the stylesheet is * applied to an input document are collected together and displayed * beneath this message. A 'translet' is the compiled form of a * stylesheet (see above). */ {ErrorMsg.RUNTIME_ERROR_KEY, "Translet \u9519\u8BEF:"}, /* * Note to translators: An attribute whose value is constrained to * be a "QName" or a list of "QNames" had a value that was incorrect. * 'QName' is an XML syntactic term that must not be translated. The * substitution text contains the actual value of the attribute. */ {ErrorMsg.INVALID_QNAME_ERR, "\u5176\u503C\u5FC5\u987B\u4E3A QName \u6216\u7531\u7A7A\u683C\u5206\u9694\u7684 QName \u5217\u8868\u7684\u5C5E\u6027\u5177\u6709\u503C ''{0}''"}, /* * Note to translators: An attribute whose value is required to * be an "NCName". * 'NCName' is an XML syntactic term that must not be translated. The * substitution text contains the actual value of the attribute. */ {ErrorMsg.INVALID_NCNAME_ERR, "\u5176\u503C\u5FC5\u987B\u4E3A NCName \u7684\u5C5E\u6027\u5177\u6709\u503C ''{0}''"}, /* * Note to translators: An attribute with an incorrect value was * encountered. The permitted value is one of the literal values * "xml", "html" or "text"; it is also permitted to have the form of * a QName that is not also an NCName. The terms "method", * "xsl:output", "xml", "html" and "text" are keywords that must not * be translated. The term "qname-but-not-ncname" is an XML syntactic * term. The substitution text contains the actual value of the * attribute. */ {ErrorMsg.INVALID_METHOD_IN_OUTPUT, "<xsl:output> \u5143\u7D20\u7684 method \u5C5E\u6027\u5177\u6709\u503C ''{0}''\u3002\u8BE5\u503C\u5FC5\u987B\u662F ''xml'', ''html'', ''text'' \u6216 qname-but-not-ncname \u4E4B\u4E00"}, {ErrorMsg.JAXP_GET_FEATURE_NULL_NAME, "TransformerFactory.getFeature(String name) \u4E2D\u7684\u529F\u80FD\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\u503C\u3002"}, {ErrorMsg.JAXP_SET_FEATURE_NULL_NAME, "TransformerFactory.setFeature(String name, boolean value) \u4E2D\u7684\u529F\u80FD\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\u503C\u3002"}, {ErrorMsg.JAXP_UNSUPPORTED_FEATURE, "\u65E0\u6CD5\u5BF9\u6B64 TransformerFactory \u8BBE\u7F6E\u529F\u80FD ''{0}''\u3002"}, {ErrorMsg.JAXP_SECUREPROCESSING_FEATURE, "FEATURE_SECURE_PROCESSING: \u5B58\u5728 Security Manager \u65F6, \u65E0\u6CD5\u5C06\u6B64\u529F\u80FD\u8BBE\u7F6E\u4E3A\u201C\u5047\u201D\u3002"}, /* * Note to translators: This message describes an internal error in the * processor. The term "byte code" is a Java technical term for the * executable code in a Java method, and "try-catch-finally block" * refers to the Java keywords with those names. "Outlined" is a * technical term internal to XSLTC and should not be translated. */ {ErrorMsg.OUTLINE_ERR_TRY_CATCH, "\u5185\u90E8 XSLTC \u9519\u8BEF: \u751F\u6210\u7684\u5B57\u8282\u4EE3\u7801\u5305\u542B try-catch-finally \u5757, \u65E0\u6CD5\u8FDB\u884C Outlined\u3002"}, /* * Note to translators: This message describes an internal error in the * processor. The terms "OutlineableChunkStart" and * "OutlineableChunkEnd" are the names of classes internal to XSLTC and * should not be translated. The message indicates that for every * "start" there must be a corresponding "end", and vice versa, and * that if one of a pair of "start" and "end" appears between another * pair of corresponding "start" and "end", then the other half of the * pair must also be between that same enclosing pair. */ {ErrorMsg.OUTLINE_ERR_UNBALANCED_MARKERS, "\u5185\u90E8 XSLTC \u9519\u8BEF: OutlineableChunkStart \u548C OutlineableChunkEnd \u6807\u8BB0\u5FC5\u987B\u914D\u5BF9\u5E76\u4E14\u6B63\u786E\u5D4C\u5957\u3002"}, /* * Note to translators: This message describes an internal error in the * processor. The term "byte code" is a Java technical term for the * executable code in a Java method. The "method" that is being * referred to is a Java method in a translet that XSLTC is generating * in processing a stylesheet. The "instruction" that is being * referred to is one of the instrutions in the Java byte code in that * method. "Outlined" is a technical term internal to XSLTC and * should not be translated. */ {ErrorMsg.OUTLINE_ERR_DELETED_TARGET, "\u5185\u90E8 XSLTC \u9519\u8BEF: \u5C5E\u4E8E\u5DF2\u8FDB\u884C Outlined \u7684\u5B57\u8282\u4EE3\u7801\u5757\u7684\u6307\u4EE4\u5728\u539F\u59CB\u65B9\u6CD5\u4E2D\u4ECD\u88AB\u5F15\u7528\u3002" }, /* * Note to translators: This message describes an internal error in the * processor. The "method" that is being referred to is a Java method * in a translet that XSLTC is generating. * */ {ErrorMsg.OUTLINE_ERR_METHOD_TOO_BIG, "\u5185\u90E8 XSLTC \u9519\u8BEF: translet \u4E2D\u7684\u65B9\u6CD5\u8D85\u8FC7\u4E86 Java \u865A\u62DF\u673A\u7684\u65B9\u6CD5\u957F\u5EA6\u9650\u5236 64 KB\u3002\u8FD9\u901A\u5E38\u662F\u7531\u4E8E\u6837\u5F0F\u8868\u4E2D\u7684\u6A21\u677F\u975E\u5E38\u5927\u9020\u6210\u7684\u3002\u8BF7\u5C1D\u8BD5\u4F7F\u7528\u8F83\u5C0F\u7684\u6A21\u677F\u91CD\u65B0\u6784\u5EFA\u6837\u5F0F\u8868\u3002" }, {ErrorMsg.DESERIALIZE_TRANSLET_ERR, "\u542F\u7528\u4E86 Java \u5B89\u5168\u65F6, \u5C06\u7981\u7528\u5BF9\u53CD\u5E8F\u5217\u5316 TemplatesImpl \u7684\u652F\u6301\u3002\u53EF\u4EE5\u901A\u8FC7\u5C06 jdk.xml.enableTemplatesImplDeserialization \u7CFB\u7EDF\u5C5E\u6027\u8BBE\u7F6E\u4E3A\u201C\u771F\u201D\u6765\u8986\u76D6\u6B64\u8BBE\u7F6E\u3002"} }; } }
86e2134979abd84d54aff6a1233e6663c1840d78
39349eac7ae11d3c8ac2e2591d0118beb7e3532d
/java_classes/Credit_Card_Details/Credit_Card_DetailExceptions.java
cfe54d15a7c2b2bfbb45d4cd34d21e7b94e587c6
[]
no_license
fmb3codes/CaseStudyProject
84d7403ee6681bac30b5b3157c07c51f9aef9d30
4d4ce66d667c28eb4fadcc571b553c946d8064ea
refs/heads/master
2020-03-15T08:21:36.030969
2018-05-25T17:08:21
2018-05-25T17:08:21
132,048,978
0
0
null
null
null
null
UTF-8
Java
false
false
167
java
package Credit_Card_Details; public class Credit_Card_DetailExceptions extends Exception { public Credit_Card_DetailExceptions(String msg) { super(msg); } }
fb37b33ca340f2238e5b1570c25d49fa2a90ed04
89c213059a4364c733dcbc313b801587b75acd37
/src/main/java/ru/golidonov/actions/Checker.java
f1f75426d3f8b441772dfdf992bb7aa1b36c3b93
[]
no_license
SergeyGolidonov/JavaMentorTestProject
c2a1f22b6c51e3e86a5a9fa23202ef853082b903
768217cb3135c81e8757f13fe9cc966c673a4db4
refs/heads/main
2023-04-13T08:56:02.350778
2021-04-21T21:14:23
2021-04-21T21:14:23
359,758,795
0
0
null
null
null
null
UTF-8
Java
false
false
556
java
package main.java.ru.golidonov.actions; public class Checker { private Checker() { } public static boolean isNumber(String s) { if (s.length() == 0) return false; char[] chars = s.toCharArray(); for (int i = 0; i < chars.length; i++) { char c = chars[i]; if ((i != 0 && c == '-') || (!Character.isDigit(c) && c != '-') || (chars.length == 1 && c == '-')) { return false; } } return true; } }
d231bd694dd8a191a0d9129d09a29bb1513b9989
71000f734edaaaa2a0fd45a77f48b0ebc57afaba
/java-source/study/src/chapter2/CharacterEx2.java
c4d1f6ea722b9df1d245a6fc3a0e0bf396637ed5
[]
no_license
psg1415/java
1b71a4cb3b444f7613affb74884321064543d0ee
a87f26540e5841724d9d79fe08d9c3877e19e664
refs/heads/main
2023-08-11T14:52:01.633586
2021-09-27T11:42:51
2021-09-27T11:42:51
398,220,166
0
0
null
null
null
null
ISO-8859-7
Java
false
false
195
java
package chapter2; public class CharacterEx2 { public static void main(String[] args) { char ch1 = 'ΗΡ'; char ch2 = '\uD55C'; System.out.println(ch1); System.out.println(ch2); } }
79be1dc00e9b2c956292663e2586ba226351faec
92368ec4b32de7de17156bafc049f0c7d5edd951
/build/generated/src/org/apache/jsp/home_jsp.java
aafd16d850a3edfdd601ff533a6916dba689fa7a
[]
no_license
Kitty-G/Pstudent
fe1c4effb58b79d20d12a83b45b3fb26f8f8ef46
217538a4648029784680b60e765e0c2fceb5e79c
refs/heads/master
2021-01-21T04:36:19.927222
2016-06-08T17:12:58
2016-06-08T17:12:58
39,626,299
0
0
null
null
null
null
UTF-8
Java
false
false
16,447
java
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import com.javabean.common.User.Identity; public final class home_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List<String> _jspx_dependants; private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; public java.util.List<String> getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); 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; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("<!DOCTYPE html>\n"); out.write("<html>\n"); out.write(" <head>\n"); out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n"); out.write(" <title>某某网站</title>\n"); out.write(" <meta name=\"description\" content=\"\" />\n"); out.write(" <meta name=\"keywords\" content=\"\" />\n"); out.write(" <link href=\"css/index/style.css\" rel=\"stylesheet\" media=\"screen\" type=\"text/css\" />\n"); out.write(" <script type=\"text/jscript\" src=\"javascript/lib/jquery-1.8.2.min.js\" ></script>\n"); out.write(" </head>\n"); out.write(" <body>\n"); out.write(" "); String login_href; String login_text; String userid; String user; Identity identity; String identityString; userid = (String) session.getAttribute("userid"); user = (String) session.getAttribute("username"); identityString = (String) session.getAttribute("identity"); identityString = null != identityString ? identityString : "0"; identity = Identity.values()[Integer.parseInt(identityString)]; if (identity == Identity.Visitor) { user = "游客"; } if (user.length() > 10) { user = user.substring(0, 10) + "..."; } out.write("\n"); out.write(" <div class=\"head\">\n"); out.write(" <div class=\"nav1\">\n"); out.write(" <ul class=\"menu\">\n"); out.write(" <li><a href=\"index.jsp\"><span>网站首页</span></a></li>\n"); out.write(" <li><a href='/demo/2/about/' ><span>通知公告</span></a></li>\n"); out.write(" <li><a href='/demo/2/case/' ><span>活动论坛</span></a></li>\n"); out.write(" <li><a href='/demo/2/demo/2/services/'><span>项目申请</span></a></li>\n"); out.write(" </ul>\n"); out.write(" </div>\n"); out.write(" <div class=\"nav2\">\n"); out.write(" <ul class=\"menu\">\n"); out.write(" <li><a href=\"/project/jsp/std_info/detail.jsp\"><span>你好,"); out.print(user); out.write("</span></a></li>\n"); out.write(" "); if (identity == Identity.Visitor) { login_href = "/project/jsp/login/login.jsp"; login_text = "用户登录"; } else { login_href = "/project/ExitLoginServlet"; login_text = "退出登录"; } out.write("\n"); out.write(" <li><a href='"); out.print(login_href); out.write("' ><span>"); out.print(login_text); out.write("</span></a></li>\n"); out.write(" </ul>\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" <div class=\"fuwu\">\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><img src=\"resources/images/index/c1.png\" /></p>\n"); out.write(" <p class=\"title\"><a href=\"#\">新闻公告</a></p>\n"); out.write(" <p class=\"content\">最新的消息都在这里,点击我成为学校里的万事通吧~</p>\n"); out.write(" <p class=\"more\"><a href=\"#\">— 了解更多 —</a></p>\n"); out.write(" </div>\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><img src=\"resources/images/index/c2.png\" /></p>\n"); out.write(" <p class=\"title\"><a href=\"#\">热门活动</a></p>\n"); out.write(" <p class=\"content\">这里有最新最热的活动信息,名额有限,人满即止,速来参加哦</p>\n"); out.write(" <p class=\"more\"><a href=\"#\">— 了解更多 —</a></p>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><img src=\"resources/images/index/c3.png\" /></p>\n"); out.write(" <p class=\"title\"><a href=\"#\">项目申请</a></p>\n"); out.write(" <p class=\"content\">成为我们的一员,认真享受美好的大学生活吧</p>\n"); out.write(" <p class=\"more\"><a href=\"#\">— 了解更多 —</a></p>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><img src=\"resources/images/index/c4.png\" /></p>\n"); out.write(" <p class=\"title\"><a href=\"#\">个人信息</a></p>\n"); out.write(" <p class=\"content\">完善自己的资料,让我们更加了解你,让我们给你提供更好的服务</p>\n"); out.write(" <p class=\"more\"><a href=\"#\">— 了解更多 —</a></p>\n"); out.write(" </div>\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write(" </div>\n"); out.write("\n"); out.write("\n"); out.write(" <div class=\"guanggao\">—— 消息中心 ——</div>\n"); out.write("\n"); out.write(" <div class=\"liebiao\">\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><a href=\"/demo/2/case/14.html\"><img src=\"resources/images/index/img.jpg\" width=\"267\" height=\"180\" /></a></p>\n"); out.write(" <p class=\"content\">标准企业站模板,附带后台数据,后台可自行修改公司简介、联系方式、幻灯片,产品分类,已经做好了数据调用.</p>\n"); out.write(" <p class=\"more\"><a href=\"/demo/2/case/14.html\">— 查看详情 —</a></p>\n"); out.write(" </div>\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><a href=\"/demo/2/case/13.html\"><img src=\"resources/images/index/img.jpg\" width=\"267\" height=\"180\" /></a></p>\n"); out.write(" <p class=\"content\">此模板是基于织梦5.7gbk内核,适用于企业,工作室,个人站长。精简的代码,使用DIV+CSS布局,在修改页面的时候更加容</p>\n"); out.write(" <p class=\"more\"><a href=\"/demo/2/case/13.html\">— 查看详情 —</a></p>\n"); out.write(" </div>\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><a href=\"/demo/2/case/12.html\"><img src=\"resources/images/index/img.jpg\" width=\"267\" height=\"180\" /></a></p>\n"); out.write(" <p class=\"content\">织梦模板,导航和BANNER全部FLASH,织梦产品展示,附带后台数据,后台可自行修改公司简介、联系方式、幻灯片,产品</p>\n"); out.write(" <p class=\"more\"><a href=\"/demo/2/case/12.html\">— 查看详情 —</a></p>\n"); out.write(" </div>\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"img\"><a href=\"/demo/2/case/11.html\"><img src=\"resources/images/index/img.jpg\" width=\"267\" height=\"180\" /></a></p>\n"); out.write(" <p class=\"content\">此模板是基于织梦5.7gbk内核,适用于企业,工作室,个人站长。精简的代码,使用DIV+CSS布局,在修改页面的时候更加容</p>\n"); out.write(" <p class=\"more\"><a href=\"/demo/2/case/11.html\">— 查看详情 —</a></p>\n"); out.write(" </div>\n"); out.write("\n"); out.write("\n"); out.write(" </div>\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write(" <div class=\"guanggao\">—— 合作伙伴 ——</div>\n"); out.write(" <div class=\"guanggao2\"></div>\n"); out.write("\n"); out.write("\n"); out.write(" <div class=\"hezuo\">\n"); out.write(" <div class=\"hezuos\">\n"); out.write("\n"); out.write(" <ul>\n"); out.write("\n"); out.write(" <li><a href='http://www.dedecms.com' target='_blank'><img src='img/top_logo.jpg' width='88' height='31' border='0'></a> </li>\n"); out.write("\n"); out.write(" <li><a href='http://bbs.dedecms.com' target='_blank'><img src='images/wind/logo.png' width='88' height='31' border='0'></a> </li>\n"); out.write("\n"); out.write(" </ul>\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <!--footer-->\n"); out.write(" <div class=\"footer\">\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"title\">最新资讯</p>\n"); out.write(" <p class=\"content\">\n"); out.write(" <ul>\n"); out.write(" <li>\n"); out.write(" <a href=\"/demo/2/demo/2/news/3.html\">为什么电商越来越难做?</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\"/demo/2/demo/2/news/4.html\">为什么电商越来越难做?</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\"/demo/2/demo/2/news/5.html\">为什么电商越来越难做?</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\"/demo/2/demo/2/news/6.html\">为什么电商越来越难做?</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\"/demo/2/news/gonggao/2.html\">进过一段时间的设计与测试</a>\n"); out.write(" </li>\n"); out.write("\n"); out.write(" </ul>\n"); out.write(" </p>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"title\">服务项目</p>\n"); out.write(" <p class=\"content\">\n"); out.write(" <ul>\n"); out.write("\n"); out.write(" </ul>\n"); out.write(" </p>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"title\">联系我们</p>\n"); out.write(" <p class=\"content\">\n"); out.write(" <ul>\n"); out.write(" <li>联系电话:15288888888</li>\n"); out.write(" <li>联系邮箱:[email protected]</li>\n"); out.write(" <li>服务QQ:884358</li>\n"); out.write(" <li>邮寄地址:西安市</li>\n"); out.write(" <li>邮政编码:610103</li>\n"); out.write(" </ul>\n"); out.write(" </ul>\n"); out.write(" </p>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <div class=\"con\">\n"); out.write(" <p class=\"title\">关于我们</p>\n"); out.write(" <p class=\"content\">\n"); out.write(" 帮助客户实现网站计划,利用我们的境遇与技术应用到客户的需求并提升他们的计划,不论公司规模大小,在电脑显示屏所设定的范围内,我们的客户都将与世界各地的知名公司平分秋色!\n"); out.write(" </p>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <div class=\"bottom\">\n"); out.write("\n"); out.write(" <div class=\"bllx\">\n"); out.write(" <ul>\n"); out.write("\n"); out.write(" <li><a href=\"http://weibo.com\"><img src=\"resources/images/index/l1.png\" width=\"30\" height=\"30\"/></a></li>\n"); out.write(" <li><a href=\"http://t.qq.com/jason19905\"><img src=\"resources/images/index/l2.png\" width=\"30\" height=\"30\"/></a></li>\n"); out.write(" <li><a href=\"http://wpa.qq.com/msgrd?v=3&uin=272803886&site=dedemao&menu=yes\"><img src=\"resources/images/index/l3.png\" width=\"30\" height=\"30\"/></a></li>\n"); out.write(" <li><a href=\"#\"><img src=\"resources/images/index/l4.png\" width=\"30\" height=\"30\"/></a></li>\n"); out.write("\n"); out.write(" </ul>\n"); out.write(" </div>\n"); out.write("\n"); out.write("\n"); out.write(" <div class=\"blrt\">\n"); out.write(" <!--需要修改底部版权、备案信息就在这里修改-->\n"); out.write("\n"); out.write(" Copyright &copy; 2002-2011 绿风科技 版权所有 <a href=http://www.dedecms.com target='_blank'>Power by DedeCms</a>\n"); out.write("\n"); out.write(" <!-- 以上就是可以修改的部分-->\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" </body>\n"); out.write("</html>\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); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
d0bea6bb0aa218839a1d71c07bc81750bc230cfb
60ae606671fb41ef2349d6075723b86efb7cbbe4
/baizhi-cmfz-service/src/main/java/test/TestWebServiceImpl.java
f3f8ec80af3311e4e8dda47030216317231f183f
[]
no_license
SingleNoble/codes
13bdae64fb7a8ed4b5f50407f85ac2ca27f1d2a2
46c48683b8a6c14d9f503531f16a6c6c8d32f772
refs/heads/master
2020-06-02T17:35:01.710762
2017-06-20T11:12:30
2017-06-20T11:12:43
94,100,311
0
0
null
null
null
null
UTF-8
Java
false
false
398
java
package test; import javax.jws.WebService; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; /** * Created by wangqiang on 2017/6/15. */ @WebService @Path("/test") public class TestWebServiceImpl implements TestWebService{ @GET @Path("/testE") @Produces("application/json;charset=UTF-8") public String testE() { return "tttttttttt"; } }
9ef72d2f96ef2884bd08f0a07719cd399861992b
d9f9cd5df3ee1acc965e33822ee9760e9b4ed6cc
/src/main/java/com/smr/market/persistence/entity/ComprasProducto.java
6528d60f1b2649e7375d12fadb935d7d30db5075
[]
no_license
saimyrcaliche/platziSpring
a17591f9e2657122cbb901ba7fcbcf7c81fdc9f0
0f52a97a5f0adba19be6b82a2ad476c9e78c5729
refs/heads/master
2022-12-23T06:36:55.562565
2020-09-25T22:34:27
2020-09-25T22:34:27
293,957,501
0
0
null
null
null
null
UTF-8
Java
false
false
1,464
java
package com.smr.market.persistence.entity; import javax.persistence.*; import java.math.BigDecimal; @Entity @Table(name = "compras_productos") public class ComprasProducto { @EmbeddedId private CompraProductoPk id; private Integer cantidad; private BigDecimal total; private Boolean estado; @ManyToOne @MapsId("idCompra") @JoinColumn(name = "id_compra", insertable = false, updatable = false) private Compra compra; @ManyToOne @JoinColumn(name = "id_producto", insertable = false, updatable = false) private Producto producto; public CompraProductoPk getId() { return id; } public void setId(CompraProductoPk id) { this.id = id; } public Integer getCantidad() { return cantidad; } public void setCantidad(Integer cantidad) { this.cantidad = cantidad; } public BigDecimal getTotal() { return total; } public void setTotal(BigDecimal total) { this.total = total; } public Boolean getEstado() { return estado; } public void setEstado(Boolean estado) { this.estado = estado; } public Compra getCompra() { return compra; } public void setCompra(Compra compra) { this.compra = compra; } public Producto getProducto() { return producto; } public void setProducto(Producto producto) { this.producto = producto; } }
e08eee8bedaedd70cb28e6f38b9a07a87c9bcfe3
65e2f1acae7db1e047c6c6b0986d086b7aae3b2b
/src/main/java/com/hxzy/pojo/pageBean.java
950dc5345e2411efeb194f9cfa3a6d44b542421b
[]
no_license
yuanjh123456/p2p
ae583a2cba058f9d27096c2e0bffa46c3f18d945
dd4e78418c156ab189ee2933a318e43b40437a75
refs/heads/master
2022-07-24T01:14:09.996904
2019-12-19T08:26:27
2019-12-19T08:26:27
229,006,943
0
0
null
null
null
null
UTF-8
Java
false
false
769
java
package com.hxzy.pojo; public class pageBean { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } private Integer page; private Integer rows; public Integer getPage() { return page; } public void setPage(Integer page) { this.page = page; } public Integer getRows() { return rows; } public void setRows(Integer rows) { this.rows = rows; } public pageBean(String name, Integer page, Integer rows) { super(); this.name = name; this.page = page; this.rows = rows; } @Override public String toString() { return "pageBean [name=" + name + ", page=" + page + ", rows=" + rows + "]"; } public pageBean() { super(); } }
f8b6bbc5a2402bef363ce5ce2aedbd702127bd0e
bef1126f8d7e8915ada233a24a428e536283f506
/app/src/main/java/ru/helen/movie/di/MainModule.java
1f77bf3550dd5be0a35bfbee17e89e969aeb8c25
[]
no_license
pogorelets/movie
057e4dddf9bea63aaf336186b243f9b5280be15b
135aa31b51a910e779840e4c18b331c2e56e553b
refs/heads/master
2021-01-24T09:37:29.223351
2018-03-11T19:47:57
2018-03-11T19:47:57
123,023,792
0
0
null
null
null
null
UTF-8
Java
false
false
901
java
package ru.helen.movie.di; import dagger.Module; import dagger.Provides; import ru.helen.movie.feature.main.Contractor; import ru.helen.movie.feature.main.InteractorImpl; import ru.helen.movie.feature.main.Presenter; import ru.helen.movie.repository.NetworkRepository; /** * Module for main feature. */ @Module public class MainModule { private final Contractor.ViewMain view; public MainModule(Contractor.ViewMain view) { this.view = view; } @MainScope @Provides Contractor.ViewMain provideView(){return view;} @MainScope @Provides Contractor.Interactor provideInteractor(NetworkRepository networkRepository){ return new InteractorImpl(networkRepository); } @MainScope @Provides Presenter providePresenter(Contractor.ViewMain view, Contractor.Interactor interactor){ return new Presenter(view, interactor); } }
98deec78d0a3b5e7d29741983c43233137ea885a
ed0c48542eeffc01507618322414f68b255b129c
/neural-network/src/main/java/br/com/ufu/lsi/studies/model/Layer.java
13a74d84d74f3185d8f197c083e0e9c5f2805008
[]
no_license
fabsfernandes/bmlp-ann
f793d8915dca1a0d7a0db1bd49c99832d98517af
8a61e7f4bb64c94cc4e2c43ff8e94c21bea3edf8
refs/heads/master
2020-12-24T14:36:09.498720
2014-11-27T20:18:43
2014-11-27T20:18:43
33,134,927
0
0
null
null
null
null
UTF-8
Java
false
false
666
java
package br.com.ufu.lsi.studies.model; import java.util.ArrayList; import java.util.List; public class Layer { private List<Neuron> neurons; public Layer( int neurons ) { this.neurons = new ArrayList<Neuron>(); for ( int i = 0; i < neurons; i++ ) this.neurons.add( null ); } public void setNeuronsActivationValues( List<Double> values ) { for ( int i = 0; i < neurons.size(); i++ ) { Neuron neuron = neurons.get( i ); neuron.setActivationValue( values.get( i ) ); neurons.set( i, neuron ); } } public List<Neuron> getNeurons() { return neurons; } public void setNeurons( List<Neuron> neurons ) { this.neurons = neurons; } }
[ "[email protected]@8b1716e6-3757-5406-c5e1-474e462e550f" ]
[email protected]@8b1716e6-3757-5406-c5e1-474e462e550f
491a876a5b521fe04c1bb0439f5be955f2b24711
273fdf80a1a6a8fa5e8acfc13c8fe5f0843d8ba4
/plugins/eeui/framework/android/src/main/java/app/eeui/framework/extend/integration/glide/load/ImageHeaderParserUtils.java
a2304e39ba5648a6f8236e2ec96eb40d26ad4de6
[ "MIT" ]
permissive
kuaifan/eeui-template
9cdacc749be8acbd2f9c675b2dedf3f3a4651dc1
ba7ee45b60abd30df64ea599929f44f5dd9d0a1c
refs/heads/master
2022-06-05T10:08:48.978982
2022-05-18T08:01:56
2022-05-18T08:01:56
190,676,484
52
31
MIT
2022-03-30T10:04:07
2019-06-07T02:12:39
C++
UTF-8
Java
false
false
3,187
java
package app.eeui.framework.extend.integration.glide.load; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import app.eeui.framework.extend.integration.glide.load.ImageHeaderParser.ImageType; import app.eeui.framework.extend.integration.glide.load.engine.bitmap_recycle.ArrayPool; import app.eeui.framework.extend.integration.glide.load.resource.bitmap.RecyclableBufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.util.List; /** * Utilities for the ImageHeaderParser. */ public final class ImageHeaderParserUtils { // 5MB. This is the max image header size we can handle, we preallocate a much smaller buffer but // will resize up to this amount if necessary. private static final int MARK_POSITION = 5 * 1024 * 1024; private ImageHeaderParserUtils() { } /** Returns the ImageType for the given InputStream. */ @NonNull public static ImageType getType(@NonNull List<ImageHeaderParser> parsers, @Nullable InputStream is, @NonNull ArrayPool byteArrayPool) throws IOException { if (is == null) { return ImageType.UNKNOWN; } if (!is.markSupported()) { is = new RecyclableBufferedInputStream(is, byteArrayPool); } is.mark(MARK_POSITION); //noinspection ForLoopReplaceableByForEach to improve perf for (int i = 0, size = parsers.size(); i < size; i++) { ImageHeaderParser parser = parsers.get(i); try { ImageType type = parser.getType(is); if (type != ImageType.UNKNOWN) { return type; } } finally { is.reset(); } } return ImageType.UNKNOWN; } /** Returns the ImageType for the given ByteBuffer. */ @NonNull public static ImageType getType(@NonNull List<ImageHeaderParser> parsers, @Nullable ByteBuffer buffer) throws IOException { if (buffer == null) { return ImageType.UNKNOWN; } //noinspection ForLoopReplaceableByForEach to improve perf for (int i = 0, size = parsers.size(); i < size; i++) { ImageHeaderParser parser = parsers.get(i); ImageType type = parser.getType(buffer); if (type != ImageType.UNKNOWN) { return type; } } return ImageType.UNKNOWN; } /** * Returns the orientation for the given InputStream. */ public static int getOrientation(@NonNull List<ImageHeaderParser> parsers, @Nullable InputStream is, @NonNull ArrayPool byteArrayPool) throws IOException { if (is == null) { return ImageHeaderParser.UNKNOWN_ORIENTATION; } if (!is.markSupported()) { is = new RecyclableBufferedInputStream(is, byteArrayPool); } is.mark(MARK_POSITION); //noinspection ForLoopReplaceableByForEach to improve perf for (int i = 0, size = parsers.size(); i < size; i++) { ImageHeaderParser parser = parsers.get(i); try { int orientation = parser.getOrientation(is, byteArrayPool); if (orientation != ImageHeaderParser.UNKNOWN_ORIENTATION) { return orientation; } } finally { is.reset(); } } return ImageHeaderParser.UNKNOWN_ORIENTATION; } }
70cc0eb97c05841ad8ad071d68775e4b427c499f
c3a3965415bd37d6e11c797fc3e5c34256c8334f
/01-hello-spring/src/test/java/com/itutry/hellospring/HelloSpringApplicationTests.java
e742f96bff57ecd3fcb203b3f79309423265a209
[]
no_license
china-university-mooc/spring-family-geektime
61f994a14777aa84fee81018f54b4687af9c1f50
534d3d06dad1fcb5bb292a327abd2aa3c6f7cce8
refs/heads/master
2022-11-25T13:07:17.402366
2020-07-30T09:32:51
2020-07-30T09:32:51
283,729,234
0
0
null
null
null
null
UTF-8
Java
false
false
219
java
package com.itutry.hellospring; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class HelloSpringApplicationTests { @Test void contextLoads() { } }
b09fa302e118b873784b49a0dde3e6b9e24ff472
954c4ea003b055e75b482532f86635c60ee141ce
/src/main/java/com/upgrade/volcanocamping/exceptions/MaxRetryLimitExceededException.java
207a9a779814a450831fd135419d82fc8d4d4228
[]
no_license
valverdethiago/volcano-camping
867fae50b34e5d592b279a28c856c39eb8dce1c4
a27bd17c0108ddb5d5ef26ff0d5201f9c5f7ef4a
refs/heads/master
2020-04-20T19:14:38.083001
2019-02-08T17:29:47
2019-02-08T17:29:47
169,044,033
0
1
null
null
null
null
UTF-8
Java
false
false
121
java
package com.upgrade.volcanocamping.exceptions; public class MaxRetryLimitExceededException extends RuntimeException { }
bb0e7a38788663367bbd95d336ab349df15390d4
0cbd412add138eb9245cb7923bb7d6c8da0a71ab
/ssi_fcms/src/cn/freeteam/cms/service/InfoImgService.java
bc900b22115836de199a3c99b690ec380512bba9
[]
no_license
zq392532521/gocms
0fbbda2090bb85cf9cc8b1a0bd40f7afeb54047b
93e4167e4755a2a3f6adbf64ce6df07696d5e832
refs/heads/master
2018-12-29T01:58:10.953734
2014-10-24T09:46:40
2014-10-24T09:46:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
682
java
package cn.freeteam.cms.service; import java.util.List; import cn.freeteam.cms.dao.InfoImgMapper; import cn.freeteam.cms.model.InfoImg; import cn.freeteam.cms.model.InfoImgExample.Criteria; public interface InfoImgService { public List<InfoImg> findByInfoid(String infoid); public List<InfoImg> find(InfoImg infoImg,String order); public int count(InfoImg infoImg); public void proSearchParam(InfoImg infoImg,Criteria criteria); public InfoImg findById(String id); public void update(InfoImg infoImg); public String add(InfoImg infoImg); public void del(String id); public InfoImgMapper getInfoImgMapper() ; public void setInfoImgMapper(InfoImgMapper infoImgMapper) ; }
8da4b54103efb1cb442dbd281dfab13ae7e50c59
e977c424543422f49a25695665eb85bfc0700784
/benchmark/icse15/687046/buggy-version/lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorsReader.java
aa23e79b3a5b94d84237c864c737a1ef6b489a95
[]
no_license
amir9979/pattern-detector-experiment
17fcb8934cef379fb96002450d11fac62e002dd3
db67691e536e1550245e76d7d1c8dced181df496
refs/heads/master
2022-02-18T10:24:32.235975
2019-09-13T15:42:55
2019-09-13T15:42:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
19,590
java
package org.apache.lucene.index; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import org.apache.lucene.store.BufferedIndexInput; import org.apache.lucene.store.Directory; import org.apache.lucene.store.IndexInput; import java.io.IOException; import java.util.Arrays; /** * @version $Id$ */ class TermVectorsReader implements Cloneable { // NOTE: if you make a new format, it must be larger than // the current format static final int FORMAT_VERSION = 2; // Changes to speed up bulk merging of term vectors: static final int FORMAT_VERSION2 = 3; // Changed strings to UTF8 with length-in-bytes not length-in-chars static final int FORMAT_UTF8_LENGTH_IN_BYTES = 4; // NOTE: always change this if you switch to a new format! static final int FORMAT_CURRENT = FORMAT_UTF8_LENGTH_IN_BYTES; //The size in bytes that the FORMAT_VERSION will take up at the beginning of each file static final int FORMAT_SIZE = 4; static final byte STORE_POSITIONS_WITH_TERMVECTOR = 0x1; static final byte STORE_OFFSET_WITH_TERMVECTOR = 0x2; private FieldInfos fieldInfos; private IndexInput tvx; private IndexInput tvd; private IndexInput tvf; private int size; private int numTotalDocs; // The docID offset where our docs begin in the index // file. This will be 0 if we have our own private file. private int docStoreOffset; private final int format; TermVectorsReader(Directory d, String segment, FieldInfos fieldInfos) throws CorruptIndexException, IOException { this(d, segment, fieldInfos, BufferedIndexInput.BUFFER_SIZE); } TermVectorsReader(Directory d, String segment, FieldInfos fieldInfos, int readBufferSize) throws CorruptIndexException, IOException { this(d, segment, fieldInfos, readBufferSize, -1, 0); } TermVectorsReader(Directory d, String segment, FieldInfos fieldInfos, int readBufferSize, int docStoreOffset, int size) throws CorruptIndexException, IOException { boolean success = false; try { if (d.fileExists(segment + "." + IndexFileNames.VECTORS_INDEX_EXTENSION)) { tvx = d.openInput(segment + "." + IndexFileNames.VECTORS_INDEX_EXTENSION, readBufferSize); format = checkValidFormat(tvx); tvd = d.openInput(segment + "." + IndexFileNames.VECTORS_DOCUMENTS_EXTENSION, readBufferSize); final int tvdFormat = checkValidFormat(tvd); tvf = d.openInput(segment + "." + IndexFileNames.VECTORS_FIELDS_EXTENSION, readBufferSize); final int tvfFormat = checkValidFormat(tvf); assert format == tvdFormat; assert format == tvfFormat; if (format >= FORMAT_VERSION2) { assert (tvx.length()-FORMAT_SIZE) % 16 == 0; numTotalDocs = (int) (tvx.length() >> 4); } else { assert (tvx.length()-FORMAT_SIZE) % 8 == 0; numTotalDocs = (int) (tvx.length() >> 3); } if (-1 == docStoreOffset) { this.docStoreOffset = 0; this.size = numTotalDocs; assert size == 0 || numTotalDocs == size; } else { this.docStoreOffset = docStoreOffset; this.size = size; // Verify the file is long enough to hold all of our // docs assert numTotalDocs >= size + docStoreOffset: "numTotalDocs=" + numTotalDocs + " size=" + size + " docStoreOffset=" + docStoreOffset; } } else format = 0; this.fieldInfos = fieldInfos; success = true; } finally { // With lock-less commits, it's entirely possible (and // fine) to hit a FileNotFound exception above. In // this case, we want to explicitly close any subset // of things that were opened so that we don't have to // wait for a GC to do so. if (!success) { close(); } } } // Used for bulk copy when merging IndexInput getTvdStream() { return tvd; } // Used for bulk copy when merging IndexInput getTvfStream() { return tvf; } final private void seekTvx(final int docNum) throws IOException { if (format < FORMAT_VERSION2) tvx.seek((docNum + docStoreOffset) * 8L + FORMAT_SIZE); else tvx.seek((docNum + docStoreOffset) * 16L + FORMAT_SIZE); } boolean canReadRawDocs() { return format >= FORMAT_UTF8_LENGTH_IN_BYTES; } /** Retrieve the length (in bytes) of the tvd and tvf * entries for the next numDocs starting with * startDocID. This is used for bulk copying when * merging segments, if the field numbers are * congruent. Once this returns, the tvf & tvd streams * are seeked to the startDocID. */ final void rawDocs(int[] tvdLengths, int[] tvfLengths, int startDocID, int numDocs) throws IOException { if (tvx == null) { Arrays.fill(tvdLengths, 0); Arrays.fill(tvfLengths, 0); return; } // SegmentMerger calls canReadRawDocs() first and should // not call us if that returns false. if (format < FORMAT_VERSION2) throw new IllegalStateException("cannot read raw docs with older term vector formats"); seekTvx(startDocID); long tvdPosition = tvx.readLong(); tvd.seek(tvdPosition); long tvfPosition = tvx.readLong(); tvf.seek(tvfPosition); long lastTvdPosition = tvdPosition; long lastTvfPosition = tvfPosition; int count = 0; while (count < numDocs) { final int docID = docStoreOffset + startDocID + count + 1; assert docID <= numTotalDocs; if (docID < numTotalDocs) { tvdPosition = tvx.readLong(); tvfPosition = tvx.readLong(); } else { tvdPosition = tvd.length(); tvfPosition = tvf.length(); assert count == numDocs-1; } tvdLengths[count] = (int) (tvdPosition-lastTvdPosition); tvfLengths[count] = (int) (tvfPosition-lastTvfPosition); count++; lastTvdPosition = tvdPosition; lastTvfPosition = tvfPosition; } } private int checkValidFormat(IndexInput in) throws CorruptIndexException, IOException { int format = in.readInt(); if (format > FORMAT_CURRENT) { throw new CorruptIndexException("Incompatible format version: " + format + " expected " + FORMAT_CURRENT + " or less"); } return format; } void close() throws IOException { // make all effort to close up. Keep the first exception // and throw it as a new one. IOException keep = null; if (tvx != null) try { tvx.close(); } catch (IOException e) { if (keep == null) keep = e; } if (tvd != null) try { tvd.close(); } catch (IOException e) { if (keep == null) keep = e; } if (tvf != null) try { tvf.close(); } catch (IOException e) { if (keep == null) keep = e; } if (keep != null) throw (IOException) keep.fillInStackTrace(); } /** * * @return The number of documents in the reader */ int size() { return size; } public void get(int docNum, String field, TermVectorMapper mapper) throws IOException { if (tvx != null) { int fieldNumber = fieldInfos.fieldNumber(field); //We need to account for the FORMAT_SIZE at when seeking in the tvx //We don't need to do this in other seeks because we already have the // file pointer //that was written in another file seekTvx(docNum); //System.out.println("TVX Pointer: " + tvx.getFilePointer()); long tvdPosition = tvx.readLong(); tvd.seek(tvdPosition); int fieldCount = tvd.readVInt(); //System.out.println("Num Fields: " + fieldCount); // There are only a few fields per document. We opt for a full scan // rather then requiring that they be ordered. We need to read through // all of the fields anyway to get to the tvf pointers. int number = 0; int found = -1; for (int i = 0; i < fieldCount; i++) { if (format >= FORMAT_VERSION) number = tvd.readVInt(); else number += tvd.readVInt(); if (number == fieldNumber) found = i; } // This field, although valid in the segment, was not found in this // document if (found != -1) { // Compute position in the tvf file long position; if (format >= FORMAT_VERSION2) position = tvx.readLong(); else position = tvd.readVLong(); for (int i = 1; i <= found; i++) position += tvd.readVLong(); mapper.setDocumentNumber(docNum); readTermVector(field, position, mapper); } else { //System.out.println("Fieldable not found"); } } else { //System.out.println("No tvx file"); } } /** * Retrieve the term vector for the given document and field * @param docNum The document number to retrieve the vector for * @param field The field within the document to retrieve * @return The TermFreqVector for the document and field or null if there is no termVector for this field. * @throws IOException if there is an error reading the term vector files */ TermFreqVector get(int docNum, String field) throws IOException { // Check if no term vectors are available for this segment at all ParallelArrayTermVectorMapper mapper = new ParallelArrayTermVectorMapper(); get(docNum, field, mapper); return mapper.materializeVector(); } // Reads the String[] fields; you have to pre-seek tvd to // the right point final private String[] readFields(int fieldCount) throws IOException { int number = 0; String[] fields = new String[fieldCount]; for (int i = 0; i < fieldCount; i++) { if (format >= FORMAT_VERSION) number = tvd.readVInt(); else number += tvd.readVInt(); fields[i] = fieldInfos.fieldName(number); } return fields; } // Reads the long[] offsets into TVF; you have to pre-seek // tvx/tvd to the right point final private long[] readTvfPointers(int fieldCount) throws IOException { // Compute position in the tvf file long position; if (format >= FORMAT_VERSION2) position = tvx.readLong(); else position = tvd.readVLong(); long[] tvfPointers = new long[fieldCount]; tvfPointers[0] = position; for (int i = 1; i < fieldCount; i++) { position += tvd.readVLong(); tvfPointers[i] = position; } return tvfPointers; } /** * Return all term vectors stored for this document or null if the could not be read in. * * @param docNum The document number to retrieve the vector for * @return All term frequency vectors * @throws IOException if there is an error reading the term vector files */ TermFreqVector[] get(int docNum) throws IOException { TermFreqVector[] result = null; if (tvx != null) { //We need to offset by seekTvx(docNum); long tvdPosition = tvx.readLong(); tvd.seek(tvdPosition); int fieldCount = tvd.readVInt(); // No fields are vectorized for this document if (fieldCount != 0) { final String[] fields = readFields(fieldCount); final long[] tvfPointers = readTvfPointers(fieldCount); result = readTermVectors(docNum, fields, tvfPointers); } } else { //System.out.println("No tvx file"); } return result; } public void get(int docNumber, TermVectorMapper mapper) throws IOException { // Check if no term vectors are available for this segment at all if (tvx != null) { //We need to offset by seekTvx(docNumber); long tvdPosition = tvx.readLong(); tvd.seek(tvdPosition); int fieldCount = tvd.readVInt(); // No fields are vectorized for this document if (fieldCount != 0) { final String[] fields = readFields(fieldCount); final long[] tvfPointers = readTvfPointers(fieldCount); mapper.setDocumentNumber(docNumber); readTermVectors(fields, tvfPointers, mapper); } } else { //System.out.println("No tvx file"); } } private SegmentTermVector[] readTermVectors(int docNum, String fields[], long tvfPointers[]) throws IOException { SegmentTermVector res[] = new SegmentTermVector[fields.length]; for (int i = 0; i < fields.length; i++) { ParallelArrayTermVectorMapper mapper = new ParallelArrayTermVectorMapper(); mapper.setDocumentNumber(docNum); readTermVector(fields[i], tvfPointers[i], mapper); res[i] = (SegmentTermVector) mapper.materializeVector(); } return res; } private void readTermVectors(String fields[], long tvfPointers[], TermVectorMapper mapper) throws IOException { for (int i = 0; i < fields.length; i++) { readTermVector(fields[i], tvfPointers[i], mapper); } } /** * * @param field The field to read in * @param tvfPointer The pointer within the tvf file where we should start reading * @param mapper The mapper used to map the TermVector * @throws IOException */ private void readTermVector(String field, long tvfPointer, TermVectorMapper mapper) throws IOException { // Now read the data from specified position //We don't need to offset by the FORMAT here since the pointer already includes the offset tvf.seek(tvfPointer); int numTerms = tvf.readVInt(); //System.out.println("Num Terms: " + numTerms); // If no terms - return a constant empty termvector. However, this should never occur! if (numTerms == 0) return; boolean storePositions; boolean storeOffsets; if (format >= FORMAT_VERSION){ byte bits = tvf.readByte(); storePositions = (bits & STORE_POSITIONS_WITH_TERMVECTOR) != 0; storeOffsets = (bits & STORE_OFFSET_WITH_TERMVECTOR) != 0; } else{ tvf.readVInt(); storePositions = false; storeOffsets = false; } mapper.setExpectations(field, numTerms, storeOffsets, storePositions); int start = 0; int deltaLength = 0; int totalLength = 0; byte[] byteBuffer; char[] charBuffer; final boolean preUTF8 = format < FORMAT_UTF8_LENGTH_IN_BYTES; // init the buffers if (preUTF8) { charBuffer = new char[10]; byteBuffer = null; } else { charBuffer = null; byteBuffer = new byte[20]; } for (int i = 0; i < numTerms; i++) { start = tvf.readVInt(); deltaLength = tvf.readVInt(); totalLength = start + deltaLength; final String term; if (preUTF8) { // Term stored as java chars if (charBuffer.length < totalLength) { char[] newCharBuffer = new char[(int) (1.5*totalLength)]; System.arraycopy(charBuffer, 0, newCharBuffer, 0, start); charBuffer = newCharBuffer; } tvf.readChars(charBuffer, start, deltaLength); term = new String(charBuffer, 0, totalLength); } else { // Term stored as utf8 bytes if (byteBuffer.length < totalLength) { byte[] newByteBuffer = new byte[(int) (1.5*totalLength)]; System.arraycopy(byteBuffer, 0, newByteBuffer, 0, start); byteBuffer = newByteBuffer; } tvf.readBytes(byteBuffer, start, deltaLength); term = new String(byteBuffer, 0, totalLength, "UTF-8"); } int freq = tvf.readVInt(); int [] positions = null; if (storePositions) { //read in the positions //does the mapper even care about positions? if (mapper.isIgnoringPositions() == false) { positions = new int[freq]; int prevPosition = 0; for (int j = 0; j < freq; j++) { positions[j] = prevPosition + tvf.readVInt(); prevPosition = positions[j]; } } else { //we need to skip over the positions. Since these are VInts, I don't believe there is anyway to know for sure how far to skip // for (int j = 0; j < freq; j++) { tvf.readVInt(); } } } TermVectorOffsetInfo[] offsets = null; if (storeOffsets) { //does the mapper even care about offsets? if (mapper.isIgnoringOffsets() == false) { offsets = new TermVectorOffsetInfo[freq]; int prevOffset = 0; for (int j = 0; j < freq; j++) { int startOffset = prevOffset + tvf.readVInt(); int endOffset = startOffset + tvf.readVInt(); offsets[j] = new TermVectorOffsetInfo(startOffset, endOffset); prevOffset = endOffset; } } else { for (int j = 0; j < freq; j++){ tvf.readVInt(); tvf.readVInt(); } } } mapper.map(term, freq, offsets, positions); } } protected Object clone() { if (tvx == null || tvd == null || tvf == null) return null; TermVectorsReader clone = null; try { clone = (TermVectorsReader) super.clone(); } catch (CloneNotSupportedException e) {} clone.tvx = (IndexInput) tvx.clone(); clone.tvd = (IndexInput) tvd.clone(); clone.tvf = (IndexInput) tvf.clone(); return clone; } } /** * Models the existing parallel array structure */ class ParallelArrayTermVectorMapper extends TermVectorMapper { private String[] terms; private int[] termFreqs; private int positions[][]; private TermVectorOffsetInfo offsets[][]; private int currentPosition; private boolean storingOffsets; private boolean storingPositions; private String field; public void setExpectations(String field, int numTerms, boolean storeOffsets, boolean storePositions) { this.field = field; terms = new String[numTerms]; termFreqs = new int[numTerms]; this.storingOffsets = storeOffsets; this.storingPositions = storePositions; if(storePositions) this.positions = new int[numTerms][]; if(storeOffsets) this.offsets = new TermVectorOffsetInfo[numTerms][]; } public void map(String term, int frequency, TermVectorOffsetInfo[] offsets, int[] positions) { terms[currentPosition] = term; termFreqs[currentPosition] = frequency; if (storingOffsets) { this.offsets[currentPosition] = offsets; } if (storingPositions) { this.positions[currentPosition] = positions; } currentPosition++; } /** * Construct the vector * @return The {@link TermFreqVector} based on the mappings. */ public TermFreqVector materializeVector() { SegmentTermVector tv = null; if (field != null && terms != null) { if (storingPositions || storingOffsets) { tv = new SegmentTermPositionVector(field, terms, termFreqs, positions, offsets); } else { tv = new SegmentTermVector(field, terms, termFreqs); } } return tv; } }
1b8ea4a3987dd1a5f51f16bcdd4e2046cfec96b7
c7de3d8d42890b0413a1d5e0f93e79b2c1ce93c1
/src/com/hibernate/dao/idao/IPerformanceCRMDAO.java
ca1187a0570f578b9d5b2499ea05abfbc11b2d1e
[]
no_license
duandao1950/zhuzi123
8d18b92bf987488baff6b5d4f91e0a954e3a940f
6f07b1132a6606808c350d7a433dcf9d521257b5
refs/heads/master
2020-05-17T20:25:56.851224
2013-04-24T10:45:30
2013-04-24T10:45:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
491
java
package com.hibernate.dao.idao; import java.util.List; import org.apache.poi.hssf.record.formula.functions.T; import com.hibernate.beans.PerformanceCRM; public interface IPerformanceCRMDAO { public List<T> findAllByCondition(Class<PerformanceCRM> class1, PerformanceCRM perCRM) throws Exception; public void deleteByCompositeId(String staffId, String inMonth) throws Exception; /*public PerformanceCRM findByCompositeId(String staffId, String inMonth) throws Exception;*/ }
aa2ba45a306bc438614f4343378f792c57617685
f1b36c04e314ea492684d7780987705d737aa2d0
/app/src/test/java/com/example/andresfarias/bbpos/ExampleUnitTest.java
7c5ddf6abade1318808a8965a52c8fdcbca5ff1f
[]
no_license
AndresFarias1110/bbpos
1f3bc737613fe3b3b1b86bf5f395c414de5c1fec
229bb513f8ffc3c5ce20385b653a6d04f2400b7b
refs/heads/master
2020-03-18T14:58:55.216670
2018-05-25T16:19:22
2018-05-25T16:19:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
408
java
package com.example.andresfarias.bbpos; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
295a9bc868751d0f97d0a88598d3bf971aa8b0bd
ffda5dade1098f96d459fd9321b41d070015904f
/src/main/java/com/example/demo/DvpProjectApplication.java
897b21fc7437b27ba33605f41d09f4029a69134f
[]
no_license
prangya12345/DvpProject
7b8e676106ddfbfed219deecaa6ffad521e32bef
4fdddedd158386ad06fcb0bda86ed55c8529b4b7
refs/heads/master
2022-07-17T09:38:24.255141
2020-05-20T18:07:51
2020-05-20T18:07:51
265,642,358
0
0
null
null
null
null
UTF-8
Java
false
false
778
java
package com.example.demo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import com.example.demo.service.DvpService; @SpringBootApplication public class DvpProjectApplication implements CommandLineRunner{ @Autowired DvpService service; public static void main(String[] args) { SpringApplication.run(DvpProjectApplication.class, args); System.out.println("hel99999o"); } @Override public void run(String... args) throws Exception { // TODO Auto-generated method stub System.out.println("hel999999999999999999999999999lo"); //service.getElectricityDetails(); } }
e7f91f1b31bf54757fdae424c27d02c35f01e6d5
b5ca12c3d2e5450720423c5ba795fb073f45da3b
/app/src/main/java/com/epicodus/stonesoup/util/OnSoupSelectedListener.java
f7af5e6055d11eb0260e79e24eaa1881f7e2b780
[ "MIT" ]
permissive
kchamp45/StoneSoup2
b89b359f2312441225738099926d385dc64fc664
8dcb9703c731bba388b1e0bd99528b29c79d0d7a
refs/heads/master
2021-08-06T20:04:42.854563
2017-11-06T23:06:52
2017-11-06T23:06:52
107,609,729
0
0
null
null
null
null
UTF-8
Java
false
false
289
java
package com.epicodus.stonesoup.util; import com.epicodus.stonesoup.models.Soup; import java.util.ArrayList; /** * Created by Guest on 11/2/17. */ public interface OnSoupSelectedListener { public void onSoupSelected(Integer position, ArrayList<Soup> soups, String source); }
f932f220e21a80a48804c2728c31686b55139d7f
dddd296f5026cf5af48fec97799bcde8145b9827
/mall-order/src/main/java/com/smartmall/order/service/impl/OrderReturnApplyServiceImpl.java
03a9778b9fb1001b697a563c84ef3d66d4e0637b
[]
no_license
mspmjl/smartmall
179e6e0e40538e6b502e00712e1fa76e4e0de773
e5d9a776ad435f1909462ba7ebf5146ba04f1381
refs/heads/master
2023-01-23T12:15:12.938855
2020-12-03T13:31:05
2020-12-03T13:31:06
306,039,821
0
0
null
null
null
null
UTF-8
Java
false
false
1,055
java
package com.smartmall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.smartmall.common.utils.PageUtils; import com.smartmall.common.utils.Query; import com.smartmall.order.dao.OrderReturnApplyDao; import com.smartmall.order.entity.OrderReturnApplyEntity; import com.smartmall.order.service.OrderReturnApplyService; @Service("orderReturnApplyService") public class OrderReturnApplyServiceImpl extends ServiceImpl<OrderReturnApplyDao, OrderReturnApplyEntity> implements OrderReturnApplyService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderReturnApplyEntity> page = this.page( new Query<OrderReturnApplyEntity>().getPage(params), new QueryWrapper<OrderReturnApplyEntity>() ); return new PageUtils(page); } }
4284df631e29b8805a0641cc380ce0f515373f57
79dc9d4fd646002126b1f8357de49329cb659c50
/src/test/java/exercises/chapter03/LambdaGeneratorTest.java
298f4ada54786e1de8beddc753a55f7fabdcae2b
[]
no_license
bombadil78/java8
c333454f94259c8e2787450cb675630c094f0f8e
2b90ff6c75134d5ece28e5fe6c8abd3e37ec7b55
refs/heads/master
2021-01-23T22:30:19.974686
2017-09-24T05:46:21
2017-09-24T05:46:21
102,936,871
0
0
null
null
null
null
UTF-8
Java
false
false
358
java
package exercises.chapter03; import excercises.chapter03.LamdaGenerator; import org.junit.Test; import static junit.framework.TestCase.assertEquals; public class LambdaGeneratorTest { @Test public void tripleIt() { String s = "s"; String t = "t"; assertEquals("sssttt", LamdaGenerator.multiConcat(3).apply(s, t)); } }
030a9305ac5d17b5f72162072ddc261bca4ab091
2af5ae2a57ba675828aa024038c8a910c4cedc02
/src/com/gmail/filoghost/holographicmobs/exception/UnreadableImageException.java
410ef65b8d65ba2d7582ba758b8d3a7570929a93
[ "BSD-2-Clause" ]
permissive
WildAdventure/HolographicMobs
211506ae478d256c57348ad066f901b97c7fc765
8424ac095ad64c0ae5d7abdd32bf35deff45c890
refs/heads/master
2021-05-19T10:19:16.295259
2020-03-31T18:32:14
2020-03-31T18:32:14
251,649,126
0
2
null
null
null
null
UTF-8
Java
false
false
1,886
java
/* * Copyright (c) 2020, Wild Adventure * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * 4. Redistribution of this software in source or binary forms shall be free * of all charges or fees to the recipient of this software. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package com.gmail.filoghost.holographicmobs.exception; public class UnreadableImageException extends Exception { private static final long serialVersionUID = 1L; }
f6b456e6e72191a4635f99f8d8343fcf5f77f527
5665675d8ae748824ace5828808506934148135c
/src/edu/ufl/bme/parsing/RegularExpressionsMatch.java
e67024594a2ac92c73ff7acd7c93e63f97851d11
[]
no_license
saanchi/TRCExperiments
ff9a0c56e9b78a876b4cb83238866316b7128751
5ff07d5b773446b0618bea1c505e7215347fa9d0
refs/heads/master
2016-09-09T22:23:33.621473
2014-02-22T19:28:35
2014-02-22T19:28:35
14,052,632
1
0
null
null
null
null
UTF-8
Java
false
false
791
java
package edu.ufl.bme.parsing; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.regex.Pattern; public class RegularExpressionsMatch { public static void main( String args[] ){ String regex = ".*abc.*(mno|xyz).*"; Pattern patern = Pattern.compile(regex); String sentence = "ABC for a abc it is an mno for all that i know"; System.out.println( patern.matcher(sentence).matches()); HashMap<String,Integer> map = new HashMap<String, Integer>(); map.put("faltoo", 1); Iterator<String> itr = map.keySet().iterator(); while( itr.hasNext()){ if(itr.next().equalsIgnoreCase("faltoo")){ Integer count = map.get("faltoo"); count++; map.put("faltoo", count); } } System.out.println(map.get("faltoo")); } }
ff64b355a3479de01b516f8914071a725b4f2f03
cbea23d5e087a862edcf2383678d5df7b0caab67
/aws-java-sdk-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/DeleteRulesetRequest.java
5b3b8b5b635ae6e107223640afe6fa8523d1b74f
[ "Apache-2.0" ]
permissive
phambryan/aws-sdk-for-java
66a614a8bfe4176bf57e2bd69f898eee5222bb59
0f75a8096efdb4831da8c6793390759d97a25019
refs/heads/master
2021-12-14T21:26:52.580137
2021-12-03T22:50:27
2021-12-03T22:50:27
4,263,342
0
0
null
null
null
null
UTF-8
Java
false
false
3,436
java
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.gluedatabrew.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/databrew-2017-07-25/DeleteRuleset" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeleteRulesetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** * <p> * The name of the ruleset to be deleted. * </p> */ private String name; /** * <p> * The name of the ruleset to be deleted. * </p> * * @param name * The name of the ruleset to be deleted. */ public void setName(String name) { this.name = name; } /** * <p> * The name of the ruleset to be deleted. * </p> * * @return The name of the ruleset to be deleted. */ public String getName() { return this.name; } /** * <p> * The name of the ruleset to be deleted. * </p> * * @param name * The name of the ruleset to be deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteRulesetRequest withName(String name) { setName(name); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteRulesetRequest == false) return false; DeleteRulesetRequest other = (DeleteRulesetRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); return hashCode; } @Override public DeleteRulesetRequest clone() { return (DeleteRulesetRequest) super.clone(); } }
[ "" ]
180b81fe65f2fc6009636e6f45939009c4f935a3
d61eb73f504248f9244185739430d3ad244b0a6a
/src/test/java/es/rickyepoderi/wbxml/bind/wvcsp/MCLS.java
7fe74676436ef007b0cb1a94d4fea98b0e21e5ac
[ "Apache-2.0" ]
permissive
Autom-liu/SMSGate
35531b1a285144e669a2fdf472535b99f261ab27
d0f2df1441734f39fbf39e973686e09201ac22f8
refs/heads/netty4
2020-11-25T12:50:32.257897
2020-08-26T12:57:16
2020-08-26T12:57:16
228,670,614
1
0
Apache-2.0
2020-08-26T12:57:18
2019-12-17T17:44:17
null
UTF-8
Java
false
false
701
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.08.25 at 05:48:09 PM CEST // package es.rickyepoderi.wbxml.bind.wvcsp; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "MCLS") public class MCLS { }
7bffb64a9242378ee0d3de560cb19b1f0e081910
6b2c327a1523ee8ba97d308ead5fb6050156062a
/src/com/javarush/test/level20/lesson04/task01/Solution.java
1ca196fe182b01a21fc25ef832fa38aa5a35c423
[]
no_license
uneikov/JavaRushHomeWork
d987413df192f0dbb9df4a59f561fcca467724a3
454c16d7ed5518ce38ef9a876c21f0075a5913b5
refs/heads/master
2020-12-24T17:26:42.804524
2017-02-07T15:28:20
2017-02-07T15:28:20
61,533,062
0
0
null
null
null
null
UTF-8
Java
false
false
1,247
java
package com.javarush.test.level20.lesson04.task01; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /* Как сериализовать? Сделайте так, чтобы сериализация класса Human была возможной */ public class Solution { public static class Human implements Serializable{ public String name; public List<Asset> assets = new ArrayList<>(); public Human() { } public Human(String name, Asset... assets) { this.name = name; if (assets != null) { this.assets.addAll(Arrays.asList(assets)); } } public void save(OutputStream outputStream) throws Exception { ObjectOutputStream objStream = new ObjectOutputStream(outputStream); if (name != null) objStream.writeObject(this); objStream.flush(); } public void load(InputStream inputStream) throws Exception { ObjectInputStream objStream = new ObjectInputStream(inputStream); Human human = (Human) objStream.readObject(); this.name = human.name; this.assets = human.assets; } } }
ea1744886fcd8279f01d9ea8e0c314cc3f73e6bb
da62508356630033f9a42229f19a55d2476ba1ba
/app/src/main/java/com/stratagile/qlink/ui/activity/seize/presenter/SeizeVpnPresenter.java
2a3f38726b725d41ae018106079649fd5818e8dd
[]
no_license
qchainorg/WQ-Android
7c42dba579b45cb3e27e554fd64a0873202b4873
55a66ecd1d6f3d8f512c2d176c075a43b4495b26
refs/heads/master
2020-03-21T17:17:39.197410
2018-07-03T03:32:54
2018-07-03T03:32:54
138,824,308
1
1
null
null
null
null
UTF-8
Java
false
false
3,464
java
package com.stratagile.qlink.ui.activity.seize.presenter; import android.support.annotation.NonNull; import com.socks.library.KLog; import com.stratagile.qlink.application.AppConfig; import com.stratagile.qlink.data.api.HttpAPIWrapper; import com.stratagile.qlink.db.TransactionRecord; import com.stratagile.qlink.entity.RegisterWiFi; import com.stratagile.qlink.ui.activity.seize.contract.SeizeVpnContract; import com.stratagile.qlink.ui.activity.seize.SeizeVpnActivity; import java.util.Calendar; import java.util.Map; import javax.inject.Inject; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; import io.reactivex.functions.Action; import io.reactivex.functions.Consumer; /** * @author hzp * @Package com.stratagile.qlink.ui.activity.seize * @Description: presenter of SeizeVpnActivity * @date 2018/04/13 12:08:31 */ public class SeizeVpnPresenter implements SeizeVpnContract.SeizeVpnContractPresenter{ HttpAPIWrapper httpAPIWrapper; private final SeizeVpnContract.View mView; private CompositeDisposable mCompositeDisposable; private SeizeVpnActivity mActivity; @Inject public SeizeVpnPresenter(@NonNull HttpAPIWrapper httpAPIWrapper, @NonNull SeizeVpnContract.View view, SeizeVpnActivity activity) { mView = view; this.httpAPIWrapper = httpAPIWrapper; mCompositeDisposable = new CompositeDisposable(); this.mActivity = activity; } @Override public void subscribe() { } @Override public void unsubscribe() { if (!mCompositeDisposable.isDisposed()) { mCompositeDisposable.dispose(); } } @Override public void registerVpn(Map map, String vpnName) { // mView.showProgressDialog(); Disposable disposable = httpAPIWrapper.vpnRegisterV2(map) .subscribe(new Consumer<RegisterWiFi>() { @Override public void accept(RegisterWiFi result) throws Exception { //isSuccesse KLog.i("onSuccesse"); mView.closeProgressDialog(); mView.registVpnSuccess(); TransactionRecord recordSave = new TransactionRecord(); recordSave.setTxid(result.getRecordId()); recordSave.setExChangeId(result.getRecordId()); recordSave.setAssetName(vpnName); recordSave.setTransactiomType(5); recordSave.setTimestamp(Calendar.getInstance().getTimeInMillis()); AppConfig.getInstance().getDaoSession().getTransactionRecordDao().insert(recordSave); } }, new Consumer<Throwable>() { @Override public void accept(Throwable throwable) throws Exception { //onError KLog.i("onError"); throwable.printStackTrace(); mView.closeProgressDialog(); } }, new Action() { @Override public void run() throws Exception { //onComplete KLog.i("onComplete"); mView.closeProgressDialog(); } }); mCompositeDisposable.add(disposable); } }
bc507527b9e34176eced2f7e2de8cd39ba89b6dd
431d8362e87e61ee568d79c57e13c4a0b0e02d2e
/lara/sep-4th batch/java/39.Object class/Garbage Collectors/src/M2.java
bcd74ccb603c49fc70fe373354c12a124b44755c
[]
no_license
svsaikumar/lara
09b3fa9fb2fcee70840d02bdce56148f3a3bf259
ed0bfbdfa0a0e668c6ffdd720d80551e03bb93db
refs/heads/master
2020-03-27T08:53:34.246569
2018-08-27T13:56:22
2018-08-27T13:56:22
146,295,997
0
0
null
null
null
null
UTF-8
Java
false
false
688
java
class A { A obj; protected void finalize()//overriding finalize method of object class { System.out.println("from finalize()"); } } class M2 { public static void main(String[] args) { A a1 = new A(); A a2 = new A(); A a3 = new A(); a1.obj = a2; a2.obj = a3; a3.obj = a1; //a1 = a2 = a3 = null;//all objects are abonded here a1 = a3 = null;//objects are not abonded here //System.gc();//calling gc Runtime.getRuntime().gc();//calling gc try { Thread.sleep(10);//main thread sleeping for 10ms(optional) } catch (InterruptedException ex) { } System.out.println("done"); } } //here object can't be reached from main method //island of isolation
95e23956c6c6a03e79a8440a6b0ab86af9792a31
7f38fe2262b64f0e3dd19106a652c44114cf0f83
/src/humide/Abstraithumide.java
3e1446b5d6108277b20a2ab5adb7b00f973e9bc5
[]
no_license
ndeyenenedieye/humidite-avec-observateur
2653e5da35d6134911c07b0686e668949809e5c8
40bd852405531e1f600f03c1e993e321d193048f
refs/heads/master
2020-06-09T01:58:30.180549
2019-06-23T13:00:55
2019-06-23T13:00:55
193,348,361
0
0
null
null
null
null
UTF-8
Java
false
false
649
java
package humide; import java.util.ArrayList; public abstract class Abstraithumide { private ArrayList<IObservateur> ListeObs1; public ArrayList<IObservateur> getListeObs(){ return ListeObs1; } public void abonner(IObservateur io) { ListeObs1.add(io); } public void desabonner(IObservateur io) { if(io!=null) ListeObs1.remove(io); } public void notifier(IObservateur io) { for(IObservateur obs :this.getListeObs()); IObservateur obs = null; obs.update(); } public void setListeObs(ArrayList<IObservateur> arrayList) { // TODO Auto-generated method stub this.ListeObs1 = ListeObs1; } }
ceb05cae17a5478ca70a108adec434510e56b10e
8cb1c24ee69ab053cc9121969e264a5f8086921a
/src/com/dialog/activity2_1.java
f6f23f0be5f38165131bcaf656ee7ab2d762c863
[]
no_license
anisha9000/DTS-Schedule-Book
d816e43ebb077bb2ec468eff5bfa902eac3d71ae
42d0dafa2746572584ed2de22e32dded8cdf63ae
refs/heads/master
2020-03-15T22:02:40.688269
2016-09-24T16:43:53
2016-09-24T16:43:53
132,366,021
0
0
null
null
null
null
UTF-8
Java
false
false
768
java
package com.dialog; import android.app.Activity; import android.os.Bundle; import android.view.*; import android.view.View.*; import android.content.Intent; import android.widget.Button; public class activity2_1 extends Activity { /** Called when the activity is first created. */ Button b; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); b=(Button)findViewById(R.id.enter); b.setOnClickListener(new Click()); } public class Click implements OnClickListener { public void onClick(View v) { if(v==b) { Intent intent=new Intent(activity2_1.this,select.class); startActivity(intent); } } } }
63b32f7126666608318d635e796882f06ec8e8b3
a600c28f03e6fedfb5d6add61dbc109975a5b366
/src/main/java/org/sonatype/mavenbook/weather/WeatherFormatter.java
f147aa008475c657a3069bfa9b7e2751e7977119
[]
no_license
mallison2002/simpleweather
95eee738161c40e63e34c24e032c544430e099ae
844ca9d2bae4de51d4bf53a40cd9c3faa41509e7
refs/heads/master
2020-12-04T22:49:02.682175
2017-03-30T17:07:50
2017-03-30T17:07:50
66,096,288
0
0
null
null
null
null
UTF-8
Java
false
false
869
java
package org.sonatype.mavenbook.weather; import java.io.InputStreamReader; import java.io.Reader; import java.io.StringWriter; import org.apache.log4j.Logger; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; public class WeatherFormatter { private static Logger log = Logger.getLogger(WeatherFormatter.class); public String format( Weather weather ) throws Exception { log.info( "Formatting Weather Data" ); Reader reader = new InputStreamReader( getClass().getClassLoader() .getResourceAsStream("output.vm")); VelocityContext context = new VelocityContext(); context.put("weather", weather ); StringWriter writer = new StringWriter(); Velocity.evaluate(context, writer, "", reader); return writer.toString(); } }
9c475de1dd30bba02efd33fa67c7c008422ccf9e
aad1b23210f64324190a93d998a13f9e42f27fbc
/astrans/ru.ifmo.rain.astrans.asttomodel/tests/ru/ifmo/rain/astrans/asttomodel/bootstrap/impl/IterableQNTest.java
7292364c313927b2069d39fcd76b2c72f6949778
[]
no_license
abreslav-from-google-code/abreslav
9272ecdd8d3abf1d541d8f85fad8756184d1c2db
2d0882e29de0833097bf604ece541b9258ed296f
refs/heads/master
2016-09-05T15:15:50.343707
2010-11-18T22:26:53
2010-11-18T22:26:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,544
java
package ru.ifmo.rain.astrans.asttomodel.bootstrap.impl; import static org.junit.Assert.*; import java.util.Iterator; import org.junit.Before; import org.junit.Test; import ru.ifmo.rain.astrans.asttomodel.bootstrap.impl.IterableQN; import astransast.AstransastFactory; import astransast.QualifiedName; public class IterableQNTest { private QualifiedName a; private QualifiedName b; private QualifiedName c; private IterableQN iterableQN; @Before public void setUp() throws Exception { a = AstransastFactory.eINSTANCE.createQualifiedName(); a.setName("a"); b = AstransastFactory.eINSTANCE.createQualifiedName(); b.setName("b"); c = AstransastFactory.eINSTANCE.createQualifiedName(); c.setName("c"); a.setSubQN(b); b.setSubQN(c); iterableQN = new IterableQN(a); } @Test public void testIterator() { String r = ""; for (String s : iterableQN) { r += s; } assertEquals("abc", r); } @Test public void testEmpty() { assertFalse(new IterableQN(null).iterator().hasNext()); } @Test public void testSingle() { assertTrue(new IterableQN(c).iterator().hasNext()); } @Test public void testSeveralIterations() { for (String s : iterableQN) { s.length(); } String r = ""; for (String s : iterableQN) { r += s; } assertEquals("abc", r); } @Test public void testOneIterationOnSingleQN() { Iterator<String> it = new IterableQN(c).iterator(); it.next(); assertFalse(it.hasNext()); } }
[ "abreslav@f8d81c2c-b11e-0410-9df4-1f401b7bbd07" ]
abreslav@f8d81c2c-b11e-0410-9df4-1f401b7bbd07
fcf9be6d5ebf47bf3fb671b6f43b000c87d216fb
019fb20a428755693ad64188934a5c5a51ea487e
/src/main/java/com/gustavodfs/cursomc/repositories/CidadeRepository.java
eac2644756f92dd445c634088c6269eacdfbac9f
[]
no_license
Gustavodfs1/Proj-full-stack-Java-JPA-Angular
045d61edb64a661e2dae426a594422576c64fee1
4d849a07f80580eade768c7bc53f904188eb64d4
refs/heads/master
2020-08-07T13:11:12.249352
2019-10-28T19:33:26
2019-10-28T19:33:26
213,463,949
0
0
null
null
null
null
UTF-8
Java
false
false
301
java
package com.gustavodfs.cursomc.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.gustavodfs.cursomc.domain.Cidade; @Repository public interface CidadeRepository extends JpaRepository<Cidade, Integer> { }
07e935e1df487157d83bd01fdd0aca030db7d5d3
60216a2a96ec31ffbc1aed74260088d111d1ef30
/app/src/main/java/comzkqueen/customview/BezierAnimActivity.java
72bb101ed7d21933cc314dd66f28208ee9d4f4b3
[]
no_license
ZhouKanZ/zkqueen
751d31d264b32a0d62268f385470c979412b978a
5944a824e58c1752f18c97baf5250fe5794286fc
refs/heads/master
2020-05-05T09:59:02.586270
2019-04-26T02:47:11
2019-04-26T02:47:11
179,925,300
4
0
null
null
null
null
UTF-8
Java
false
false
2,991
java
package comzkqueen.customview; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.graphics.Path; import android.graphics.Point; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.view.animation.DecelerateInterpolator; import android.widget.Button; import android.widget.ImageView; /** * @author : zk * @date : 2019/4/7 * @desc : */ public class BezierAnimActivity extends AppCompatActivity { Path bezierPath = new Path(); Point centerPos = new Point(); ImageView iv; Button btn_start; ObjectAnimator bezierAnim,alphaAnim,scaleAnimX,scaleAnimY; AnimatorSet set; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bezier_layout); iv = findViewById(R.id.iv); btn_start = findViewById(R.id.btn_start); btn_start.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { initAnim(); startAnim(); } }); iv.post(new Runnable() { @Override public void run() { centerPos.x = (int) (iv.getX() + iv.getWidth()/2); centerPos.y = (int) (iv.getY() + iv.getHeight()/2); // bezier path bezierPath.moveTo(centerPos.x, centerPos.y); bezierPath.cubicTo(centerPos.x - 200, centerPos.y - 100, centerPos.x + 150, centerPos.y - 150, centerPos.x, centerPos.y - 250); bezierPath.quadTo(centerPos.x - 60,centerPos.y - 300,centerPos.x, centerPos.y - 350); } }); } /** * 初始化动画 */ private void initAnim() { if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) { if (bezierAnim == null){ bezierAnim = ObjectAnimator.ofFloat(iv,iv.X,iv.Y,bezierPath); bezierAnim.setInterpolator(new DecelerateInterpolator()); alphaAnim = ObjectAnimator.ofFloat(iv,"alpha",1,0); alphaAnim.setInterpolator(new AccelerateInterpolator()); scaleAnimX = ObjectAnimator.ofFloat(iv,"scaleX",1,0); scaleAnimX.setInterpolator(new AccelerateInterpolator()); scaleAnimY = ObjectAnimator.ofFloat(iv,"scaleY",1,0); scaleAnimY.setInterpolator(new AccelerateInterpolator()); set = new AnimatorSet(); set.playTogether(bezierAnim,alphaAnim,scaleAnimX,scaleAnimY); set.setDuration(1500); } } } /** * 开启动画 */ private void startAnim() { set.start(); } }
1489464f3e351df54447ee04a49c7735fea6f547
dc6968a55d91082c85b26d469fb12466cb5563b9
/demo_Hotelcurd/src/main/java/com/springboot_hotelcurd/demo_Hotelcurd/controller/HotelController.java
0ca18480b498e5199ed1edfb5055fc94d212f6b1
[]
no_license
KirtiSawant/demo_Hotelcurd
727fb50746022241e0f7ef0fedc0c069a9247968
404adfad81cb7affd58e62892b03d6b7bbc3f723
refs/heads/master
2023-07-07T00:06:22.974996
2021-08-15T10:00:05
2021-08-15T10:00:05
379,520,191
0
0
null
null
null
null
UTF-8
Java
false
false
1,159
java
package com.springboot_hotelcurd.demo_Hotelcurd.controller; import com.springboot_hotelcurd.demo_Hotelcurd.model.Hotel; import com.springboot_hotelcurd.demo_Hotelcurd.service.HotelService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController public class HotelController { @Autowired HotelService hotelService; @GetMapping("hotel") public List<Hotel> getAllHotel() { return hotelService.getAllHotel(); } @PostMapping("hotel") public Hotel saveHotel(@RequestBody Hotel hotel) { return hotelService.saveHotel(hotel); } /* @DeleteMapping("hotel/{id}") public List<Hotel> deleteHotel(@PathVariable("id") long id){ hotelRepository.deleteById(id); return hotelRepository.findAll(); } @PutMapping("hotel") public List<Hotel> updateHotel(@RequestBody Hotel hotel){ hotelRepository.save(hotel); return hotelRepository.findAll(); }*/ }