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
0787774c643f2a12843bb843e748e6930f433d4f
b76bb49fc74724fec9a25b57825db074ac9897fa
/src/main/java/jpabook/jpabook/domain/Item.java
0914072cd78778ed8d5d524b4accfa822de0aeec
[]
no_license
sbdyzjdla/jpabookSpringData
580cc3b69aa92d1ab2dc5e0c828bb5d6a15ced74
32ae8c04657561a57da05558fee058477309aa59
refs/heads/master
2023-05-28T21:48:50.480815
2021-06-13T14:17:31
2021-06-13T14:17:31
375,399,940
0
0
null
null
null
null
UTF-8
Java
false
false
991
java
package jpabook.jpabook.domain; import jpabook.jpabook.exception.NotEnoughStockException; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.util.ArrayList; import java.util.List; @Entity @Getter @Setter @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "DTYPE") public abstract class Item { @Id @GeneratedValue @Column(name = "ITEM_ID") private Long id; private String name; private int price; private int stockQuantity; @ManyToMany(mappedBy = "items") private List<Category> categories = new ArrayList<Category>(); //비즈니스 로직 public void addStock(int quantity) { this.stockQuantity += quantity; } public void removeStock(int quantity) { int restStock = this.stockQuantity - quantity; if(restStock <0 ) { throw new NotEnoughStockException("need more stock"); } this.stockQuantity = restStock; } }
[ "sbdyzjdla@gmail.com" ]
sbdyzjdla@gmail.com
2654a1ed7e98f97df04606261bbdf5395facb466
8cce127d5262fa2340da528b9f8ba2c7cb6832c3
/src/main/java/be/planty/compare/purchasingpower/domain/AbstractAuditingEntity.java
37d8281f61fc8fbb24ee965c7ad72387b5f57c6d
[]
no_license
macpersia/planty-compare-purchasing-power
d236d3fd7439cf8a6a584b2332f33b8e0947fa30
44062c28b11518933243d62c0951103a3386b410
refs/heads/master
2023-02-21T14:17:58.091768
2022-08-30T11:04:42
2022-08-30T11:04:42
188,727,064
0
0
null
2023-02-04T16:13:43
2019-05-26T20:11:13
Java
UTF-8
Java
false
false
1,872
java
package be.planty.compare.purchasingpower.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedBy; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.mongodb.core.mapping.Field; import java.io.Serializable; import java.time.Instant; /** * Base abstract class for entities which will hold definitions for created, last modified by and created, * last modified by date. */ public abstract class AbstractAuditingEntity implements Serializable { private static final long serialVersionUID = 1L; @CreatedBy @Field("created_by") @JsonIgnore private String createdBy; @CreatedDate @Field("created_date") @JsonIgnore private Instant createdDate = Instant.now(); @LastModifiedBy @Field("last_modified_by") @JsonIgnore private String lastModifiedBy; @LastModifiedDate @Field("last_modified_date") @JsonIgnore private Instant lastModifiedDate = Instant.now(); public String getCreatedBy() { return createdBy; } public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } public Instant getCreatedDate() { return createdDate; } public void setCreatedDate(Instant createdDate) { this.createdDate = createdDate; } public String getLastModifiedBy() { return lastModifiedBy; } public void setLastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } public Instant getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(Instant lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } }
[ "MacPersia@gmail.com" ]
MacPersia@gmail.com
0be93b45bea0cfbc65ca8f8a577c2c98c9aac3ee
1749d178484341b30264455ba667a020c9dc8499
/src/main/java/com/hasim/loanallocation/service/LoanAllocationService.java
1d7d7dc8dd23c94e23d6cbf4f910912f10010d29
[]
no_license
hasimmollah/loan-allocator
76b2ce5337315df265cf3cfb2a74f17050d3eeb5
5f6a7f96d58e89c6eacfc5743b1c83cba072d3f9
refs/heads/main
2023-04-17T02:16:55.876306
2021-04-05T17:27:01
2021-04-05T17:27:01
354,671,271
0
0
null
null
null
null
UTF-8
Java
false
false
313
java
package com.hasim.loanallocation.service; import java.util.List; import java.util.Map; import com.hasim.loanallocation.data.Investor; import com.hasim.loanallocation.data.Loan; public interface LoanAllocationService { public Map<Investor, List<Loan>> allocate(List<Investor> investors, List<Loan> loans); }
[ "hmollah@sapient.com" ]
hmollah@sapient.com
aa964284b4aeb3c97f127fc41f7dcdcda57d9852
f3b9a444d2d513c670d216f7c700131410c47f92
/game_analyze/src/com/gamecenter/alipay/domain/AlipayEbppProdmodeReconconfQueryModel.java
42205bccca5c6dcd9f84549f9b62b0672719e996
[]
no_license
kuainiao/GameAdminWeb
6a372087380e3c5ad98fc7cf4c8cbf9f01854e5d
f89327374d39c112421606e6a9fe9189b46c1a90
refs/heads/master
2020-06-03T22:15:02.944948
2017-12-22T06:20:38
2017-12-22T06:20:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
850
java
package com.gamecenter.alipay.domain; import com.gamecenter.alipay.AlipayObject; import com.gamecenter.alipay.internal.mapping.ApiField; /** * 对账配置查询接口 * * @author auto create * @since 1.0, 2017-06-22 16:17:25 */ public class AlipayEbppProdmodeReconconfQueryModel extends AlipayObject { private static final long serialVersionUID = 4249369985668871523L; /** * 缴费业务类型 */ @ApiField("biz_type") private String bizType; /** * 销账机构编码 */ @ApiField("chargeoff_code") private String chargeoffCode; public String getBizType() { return this.bizType; } public void setBizType(String bizType) { this.bizType = bizType; } public String getChargeoffCode() { return this.chargeoffCode; } public void setChargeoffCode(String chargeoffCode) { this.chargeoffCode = chargeoffCode; } }
[ "lyh@163.com" ]
lyh@163.com
2c72575db3f7e55ca7d04af152a3cc3ab2c11f51
64e09a4a4a26ef06f04293595fa021da8ef0bae3
/shop/src/main/java/ro/msg/learning/shop/dto/ProductQuantityDTO.java
a3c0798ccf6c0b36dc5fbce1108579eb75d85c49
[ "MIT" ]
permissive
ro-msg-spring-training/online-shop-Ducuvlad
4538b7a7b4febd27b992883d68da348f844a3822
21eab71bff38351bb7f165a8fd6c5dece8514fbb
refs/heads/master
2020-06-20T05:23:32.403689
2019-07-26T09:08:21
2019-07-26T09:08:21
197,008,615
0
0
MIT
2019-07-26T09:08:23
2019-07-15T13:54:09
Java
UTF-8
Java
false
false
264
java
package ro.msg.learning.shop.dto; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class ProductQuantityDTO { private Integer productID; private Integer quantity; }
[ "ducuvlad@gmail.com" ]
ducuvlad@gmail.com
15d4747ab7fa280e05b3946c685e6280bc99c88d
4022ff7022c1d22691d855ed6de0ee59a4173353
/src/main/java/com/lookfirst/wepay/api/Preapproval.java
936ed0233d92a89f20e886e74bf09bc884516822
[ "MIT" ]
permissive
lookfirst/WePay-Java-SDK
6b6611479623524d524c1fe3befaa1ac3f85462f
38e3df4d1a30f1ce1c2c95b41e8481ccfe7de098
refs/heads/master
2023-08-18T10:36:16.963305
2021-12-09T20:00:46
2021-12-09T20:00:46
2,622,947
5
3
MIT
2022-10-05T00:55:43
2011-10-21T20:35:36
Java
UTF-8
Java
false
false
4,269
java
package com.lookfirst.wepay.api; import java.io.Serializable; import java.math.BigDecimal; import lombok.Data; import com.lookfirst.wepay.api.Checkout.ShippingAddress; import com.lookfirst.wepay.api.Constants.FeePayer; import com.lookfirst.wepay.api.Constants.State; /** * This call allows you to lookup the details of a payment preapproval on WePay. * * @author Jon Scott Stevens * @author Jeff Schnitzer */ @Data public class Preapproval implements Serializable { private static final long serialVersionUID = 1L; /** The unique ID of the preapproval. */ private Long preapprovalId; /** The uri that you send the user to so they can enter their payment info and approve the preapproval. */ private String preapprovalUri; /** A uri that you can send the user to if they need to update their payment method. */ private String manageUri; /** The unique ID of the WePay account where the money will go. */ private Long accountId; /** A short description of what the payer is being charged for. */ private String shortDescription; /** A longer description of what the payer is being charged for (if set). */ private String longDescription; /** The currency that any charges will take place in (for now always USD). */ private String currency; /** The amount in dollars that the application can charge the payer automatically every period. */ private BigDecimal amount; /** Who is paying the fee (either "payer" for the person paying, "payee" for the person receiving the money, "payer_from_app" if payer is paying for app fee and the app is paying WePay fees, or "payee_from_app" if payee is paying for app fee and app is paying for WePay fees). */ private FeePayer feePayer; /** The state that the preapproval is in. See the object states page for the full list. */ private State state; /** The uri that the payer will be redirected to after approving the preapproval. */ private String redirectUri; /** The fee that will go to the API application's account (if set). Limited to 20% of the preapproval amount. */ private BigDecimal appFee; /** How often the API application can execute payments for a payer with this preapproval. Can be: hourly, daily, weekly, biweekly, monthly, bimonthly, quarterly, yearly, and once. Once period is if you only want to get authorization for a future charge and don't need it to be recurring. */ private String period; /** The number of times the API application can execute payments per period. */ private Integer frequency; /** When the API application can begin executing payments with this preapproval. Will be a unix timestamp. */ private Long startTime; /** The last time that the API application can execute a payment with this preapproval. Will be a unix timestamp. */ private Long endTime; /** The reference_id passed by the application (if set). */ private String referenceId; /** The uri which instant payment notifications will be sent to. */ private String callbackUri; /** The shipping address that the payer entered (if applicable). It will be in the following format: US Addresses: {"address1":"380 Portage Ave","address2":"","city":"Palo Alto","state":"CA","zip":"94306","country":"US"}. Non-US Addresses: {"address1":"100 Main St","address2":"","city":"Toronto","region":"ON","postcode":"M4E 1Z5","country":"CA"} Use ISO 3166-1 codes when specifying the country. */ private ShippingAddress address; /** The amount that was paid in shipping fees (if any). */ private BigDecimal shippingFee; /** The dollar amount of taxes paid (if any). */ private BigDecimal tax; /** Whether or not the preapproval automatically executes the payments every period. */ private boolean autoRecur; /** The name of the payer. */ private String payerName; /** The email of the payer. */ private String payeeEmail; /** The unixtime when the preapproval was created. */ private Long createTime; /** The unixtime of the next scheduled charge +/- 5 minutes (will only show up for approved auto_recur preapprovals). */ private Long nextDueTime; /** The checkout ID of the last successful checkout (state captured) for the preapproval. */ private Long lastCheckoutId; /** The unixtime when the last successful checkout occurred. */ private Long lastCheckoutTime; }
[ "latchkey@gmail.com" ]
latchkey@gmail.com
f5f6fe69e9c4889aa6b52da8ce0c71673dec2b19
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/19/19_6b888137a752e73421b9dd803dbe0057dc2fb96a/MultEval/19_6b888137a752e73421b9dd803dbe0057dc2fb96a_MultEval_s.java
e11f639f61d83215d60353286101980bfc4d4a4c
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
27,547
java
package multeval; import jannopts.*; import jannopts.util.StringUtils; import java.io.*; import java.util.*; import multeval.ResultsManager.Type; import multeval.analysis.*; import multeval.metrics.*; import multeval.output.*; import multeval.significance.*; import multeval.util.*; import com.google.common.base.*; import com.google.common.collect.*; import com.google.common.collect.Multiset.Entry; public class MultEval { // case sensitivity option? both? use punctuation? // report length! public static Map<String, Metric<?>> KNOWN_METRICS = ImmutableMap.<String, Metric<?>> builder() .put("bleu", new BLEU()).put("meteor", new METEOR()).put("ter", new TER()).put("length", new Length()).build(); private static List<Metric<?>> loadMetrics(String[] metricNames, Configurator opts) throws ConfigurationException { // 1) activate config options so that we fail-fast List<Metric<?>> metrics = new ArrayList<Metric<?>>(); for(String metricName : metricNames) { System.err.println("Loading metric: " + metricName); Metric<?> metric = KNOWN_METRICS.get(metricName.toLowerCase()); if (metric == null) { throw new RuntimeException("Unknown metric: " + metricName + "; Known metrics are: " + KNOWN_METRICS.keySet()); } // add metric options on-the-fly as needed opts.activateDynamicOptions(metric.getClass()); metrics.add(metric); } // 2) load metric resources, etc. for(Metric<?> metric : metrics) { metric.configure(opts); } return metrics; } public static interface Module { public void run(Configurator opts) throws ConfigurationException, FileNotFoundException, IOException; public Iterable<Class<?>> getDynamicConfigurables(); } public static class NbestModule implements Module { @Option(shortName = "v", longName = "verbosity", usage = "Verbosity level", defaultValue = "0") public int verbosity; @Option(shortName = "o", longName = "metrics", usage = "Space-delimited list of metrics to use. Any of: bleu, meteor, ter, length", defaultValue = "bleu meteor ter", arrayDelim = " ") public String[] metricNames; @Option(shortName = "N", longName = "nbest", usage = "File containing tokenized, fullform hypotheses, one per line") public String nbestList; @Option(shortName = "R", longName = "refs", usage = "Space-delimited list of files containing tokenized, fullform references, one per line", arrayDelim = " ") public String[] refFiles; @Option(shortName = "r", longName = "rankDir", usage = "Rank hypotheses of median optimization run of each system with regard to improvement/decline over median baseline system and output to the specified directory for analysis", required = false) private String rankDir; @Override public Iterable<Class<?>> getDynamicConfigurables() { return ImmutableList.<Class<?>> of(BLEU.class, METEOR.class, TER.class); } @Override public void run(Configurator opts) throws ConfigurationException, IOException { List<Metric<?>> metrics = loadMetrics(metricNames, opts); String[] submetricNames = getSubmetricNames(metrics); // 1) count hyps for error checking String lastLine = FileUtils.getLastLine(nbestList); NbestEntry lastEntry = NbestEntry.parse(lastLine, -1, 0); int numHyps = lastEntry.sentId + 1; // zero-based // 2) load refs List<List<String>> allRefs = HypothesisManager.loadRefs(refFiles, numHyps); System.err.println("Found " + numHyps + " hypotheses with " + allRefs.get(0).size() + " references"); // 3) process n-best list and write results PrintStream out = System.out; PrintWriter[] metricRankFiles = null; if (rankDir != null) { new File(rankDir).mkdirs(); metricRankFiles = new PrintWriter[metrics.size()]; for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { metricRankFiles[iMetric] = new PrintWriter(new File(rankDir, metricNames[iMetric] + ".sorted")); } } BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(nbestList), Charsets.UTF_8)); String line; List<NbestEntry> hyps = new ArrayList<NbestEntry>(1000); List<List<SuffStats<?>>> oracleStatsByMetric = new ArrayList<List<SuffStats<?>>>(metrics.size()); List<List<SuffStats<?>>> topbestStatsByMetric = new ArrayList<List<SuffStats<?>>>(metrics.size()); for(int i=0;i<metrics.size(); i++) { oracleStatsByMetric.add(new ArrayList<SuffStats<?>>()); topbestStatsByMetric.add(new ArrayList<SuffStats<?>>()); } int curHyp = 0; while((line = in.readLine()) != null) { NbestEntry entry = NbestEntry.parse(line, hyps.size(), metrics.size()); if (curHyp != entry.sentId) { System.err.println("hyp #"+curHyp); List<String> sentRefs = allRefs.get(curHyp); processHyp(metrics, submetricNames, hyps, sentRefs, out, metricRankFiles, oracleStatsByMetric, topbestStatsByMetric); if (curHyp % 100 == 0) { System.err.println("Processed " + curHyp + " hypotheses so far..."); } hyps.clear(); curHyp = entry.sentId; } hyps.add(entry); } List<String> sentRefs = allRefs.get(curHyp); processHyp(metrics, submetricNames, hyps, sentRefs, out, metricRankFiles, oracleStatsByMetric, topbestStatsByMetric); out.close(); if (rankDir != null) { System.err.println("Wrote n-best list ranked by metrics to: " + rankDir); for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { metricRankFiles[iMetric].close(); } } for(int i=0; i<metrics.size(); i++) { Metric<?> metric = metrics.get(i); SuffStats<?> topbestStats = SuffStatUtils.sumStats(topbestStatsByMetric.get(i)); double topbestScore = metric.scoreStats(topbestStats); System.err.println(String.format("%s topbest score: %.2f", metric.toString(), topbestScore)); SuffStats<?> oracleStats = SuffStatUtils.sumStats(oracleStatsByMetric.get(i)); double oracleScore = metric.scoreStats(oracleStats); System.err.println(String.format("%s oracle score: %.2f", metric.toString(), oracleScore)); } } private String[] getSubmetricNames(List<Metric<?>> metrics) { int numSubmetrics = 0; for(Metric<?> metric : metrics) { numSubmetrics += metric.getSubmetricNames().length; } String[] submetricNames = new String[numSubmetrics]; int i = 0; for(Metric<?> metric : metrics) { for(String name : metric.getSubmetricNames()) { submetricNames[i] = name; i++; } } return submetricNames; } // process all hypotheses corresponding to a single sentence private void processHyp(List<Metric<?>> metrics, String[] submetricNames, List<NbestEntry> hyps, List<String> sentRefs, PrintStream out, PrintWriter[] metricRankFiles, List<List<SuffStats<?>>> oracleStatsByMetric, List<List<SuffStats<?>>> topbestStatsByMetric) { // score all of the hypotheses in the n-best list for(int iRank = 0; iRank < hyps.size(); iRank++) { List<SuffStats<?>> metricStats = new ArrayList<SuffStats<?>>(metrics.size()); double[] metricScores = new double[metrics.size()]; double[] submetricScores = new double[submetricNames.length]; NbestEntry entry = hyps.get(iRank); int iSubmetric = 0; for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { Metric<?> metric = metrics.get(iMetric); SuffStats<?> stats = metric.stats(entry.hyp, sentRefs); metricStats.add(stats); metricScores[iMetric] = metric.scoreStats(stats); for(double sub : metric.scoreSubmetricsStats(stats)) { submetricScores[iSubmetric] = sub; iSubmetric++; } } entry.metricStats = metricStats; entry.metricScores = metricScores; entry.submetricScores = submetricScores; } // assign rank by each metric and save suff stats for the topbest hyp // accoring to each metric for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { topbestStatsByMetric.get(iMetric).add(hyps.get(0).metricStats.get(iMetric)); sortByMetricScore(hyps, iMetric, metrics.get(iMetric).isBiggerBetter()); oracleStatsByMetric.get(iMetric).add(hyps.get(0).metricStats.get(iMetric)); // and record the rank of each for(int iRank = 0; iRank < hyps.size(); iRank++) { hyps.get(iRank).metricRank[iMetric] = iRank; } } // put them back in their original order Collections.sort(hyps, new Comparator<NbestEntry>() { public int compare(NbestEntry a, NbestEntry b) { int ra = a.origRank; int rb = b.origRank; return (ra < rb ? -1 : 1); } }); // and write them to an output file for(NbestEntry entry : hyps) { out.println(entry.toString(metricNames, submetricNames)); } if (metricRankFiles != null) { for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { sortByMetricScore(hyps, iMetric, metrics.get(iMetric).isBiggerBetter()); // and write them to an output file for(NbestEntry entry : hyps) { metricRankFiles[iMetric].println(entry.toString(metricNames, submetricNames)); } } } } private void sortByMetricScore(List<NbestEntry> hyps, final int i, final boolean isBiggerBetter) { Collections.sort(hyps, new Comparator<NbestEntry>() { public int compare(NbestEntry a, NbestEntry b) { double da = a.metricScores[i]; double db = b.metricScores[i]; if(isBiggerBetter) { return (da == db ? 0 : (da > db ? -1 : 1)); } else { return (da == db ? 0 : (da < db ? -1 : 1)); } } }); } } public static class MultEvalModule implements Module { @Option(shortName = "v", longName = "verbosity", usage = "Verbosity level", defaultValue = "0") public int verbosity; @Option(shortName = "o", longName = "metrics", usage = "Space-delimited list of metrics to use. Any of: bleu, meteor, ter, length", defaultValue = "bleu meteor ter length", arrayDelim = " ") public String[] metricNames; @Option(shortName = "B", longName = "hyps-baseline", usage = "Space-delimited list of files containing tokenized, fullform hypotheses, one per line", arrayDelim = " ") public String[] hypFilesBaseline; // each element of the array is a system that the user designated with a // number. each string element contains a space-delimited list of // hypothesis files with each file containing hypotheses from one // optimizer run @Option(shortName = "H", longName = "hyps-sys", usage = "Space-delimited list of files containing tokenized, fullform hypotheses, one per line", arrayDelim = " ", numberable = true) public String[] hypFilesBySys; @Option(shortName = "R", longName = "refs", usage = "Space-delimited list of files containing tokenized, fullform references, one per line", arrayDelim = " ") public String[] refFiles; @Option(shortName = "b", longName = "boot-samples", usage = "Number of bootstrap replicas to draw during bootstrap resampling to estimate standard deviation for each system", defaultValue = "10000") private int numBootstrapSamples; @Option(shortName = "s", longName = "ar-shuffles", usage = "Number of shuffles to perform to estimate p-value during approximate randomization test system *PAIR*", defaultValue = "10000") private int numShuffles; @Option(shortName = "L", longName = "latex", usage = "Latex-formatted table including measures that are commonly (or should be commonly) reported", required = false) private String latexOutFile; @Option(shortName = "r", longName = "rankDir", usage = "Rank hypotheses of median optimization run of each system with regard to improvement/decline over median baseline system and output to the specified directory for analysis", required = false) private String rankDir; @Option(shortName = "D", longName = "debug", usage = "Show debugging output?", required = false, defaultValue="false") private boolean debug; // TODO: Lowercasing option @Override public Iterable<Class<?>> getDynamicConfigurables() { return ImmutableList.<Class<?>> of(BLEU.class, METEOR.class, TER.class); } @Override public void run(Configurator opts) throws ConfigurationException, FileNotFoundException { List<Metric<?>> metrics = loadMetrics(metricNames, opts); // 1) load hyps and references // first index is opt run, second is hyp int numSystems = hypFilesBySys == null ? 0 : hypFilesBySys.length; String[][] hypFilesBySysSplit = new String[numSystems][]; for(int i = 0; i < numSystems; i++) { hypFilesBySysSplit[i] = StringUtils.split(hypFilesBySys[i], " ", Integer.MAX_VALUE); } HypothesisManager data = new HypothesisManager(); try { data.loadData(hypFilesBaseline, hypFilesBySysSplit, refFiles); } catch(IOException e) { System.err.println("Error while loading data."); e.printStackTrace(); System.exit(1); } // 2) collect sufficient stats for each metric selected // TODO: Eventually multi-thread this... but TER isn't threadsafe SuffStatManager suffStats = collectSuffStats(metrics, data); String[] metricNames = new String[metrics.size()]; for(int i = 0; i < metricNames.length; i++) { metricNames[i] = metrics.get(i).toString(); } String[] sysNames = new String[data.getNumSystems()]; sysNames[0] = "baseline"; for(int i = 1; i < sysNames.length; i++) { sysNames[i] = "system " + i; } ResultsManager results = new ResultsManager(metricNames, sysNames, data.getNumOptRuns()); // 3) evaluate each system and report the average scores runOverallEval(metrics, data, suffStats, results); runOOVAnalysis(metrics, data, suffStats, results); // run diff ranking, if requested (MUST be run after overall eval, // which computes median systems) runDiffRankEval(metrics, data, suffStats, results); // 4) run bootstrap resampling for each system, for each // optimization run runBootstrapResampling(metrics, data, suffStats, results); // 5) run AR -- FOR EACH SYSTEM PAIR runApproximateRandomization(metrics, data, suffStats, results); // 6) output pretty table if (latexOutFile != null) { LatexTable table = new LatexTable(); File file = new File(latexOutFile); System.err.println("Writing Latex table to " + file.getAbsolutePath()); PrintWriter out = new PrintWriter(file); table.write(results, out); out.close(); } AsciiTable table = new AsciiTable(); table.write(results, System.out); // 7) show statistics such as most frequent OOV's length, brevity // penalty, etc. } private void runDiffRankEval(List<Metric<?>> metrics, HypothesisManager data, SuffStatManager suffStats, ResultsManager results) throws FileNotFoundException { if (rankDir != null) { File rankOutDir = new File(rankDir); rankOutDir.mkdirs(); System.err.println("Outputting ranked hypotheses to: " + rankOutDir.getAbsolutePath()); DiffRanker ranker = new DiffRanker(metricNames); List<List<String>> refs = data.getAllReferences(); int iBaselineSys = 0; for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { int iBaselineMedianIdx = results.get(iMetric, iBaselineSys, Type.MEDIAN_IDX).intValue(); List<String> hypsMedianBaseline = data.getHypotheses(iBaselineSys, iBaselineMedianIdx); // we must always recalculate all metric scores since // the median system might change based on which metric // we're sorting by double[][] sentMetricScoresBaseline = getSentLevelScores(metrics, data, suffStats, iBaselineSys, iBaselineMedianIdx); for(int iSys = 1; iSys < data.getNumSystems(); iSys++) { File outFile = new File(rankOutDir, String.format("sys%d.sortedby.%s", (iSys + 1), metricNames[iMetric])); int iSysMedianIdx = results.get(iMetric, iSys, Type.MEDIAN_IDX).intValue(); List<String> hypsMedianSys = data.getHypotheses(iSys, iSysMedianIdx); double[][] sentMetricScoresSys = getSentLevelScores(metrics, data, suffStats, iSys, iSysMedianIdx); PrintWriter out = new PrintWriter(outFile); ranker.write(hypsMedianBaseline, hypsMedianSys, refs, sentMetricScoresBaseline, sentMetricScoresSys, iMetric, out); out.close(); } } } } private double[][] getSentLevelScores(List<Metric<?>> metrics, HypothesisManager data, SuffStatManager suffStats, int iSys, int iOpt) { double[][] result = new double[data.getNumHyps()][metrics.size()]; for(int iHyp = 0; iHyp < data.getNumHyps(); iHyp++) { for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { Metric<?> metric = metrics.get(iMetric); SuffStats<?> stats = suffStats.getStats(iMetric, iSys, iOpt, iHyp); result[iHyp][iMetric] = metric.scoreStats(stats); // System.err.println("hyp " + (iHyp + 1) + ": " + // result[iHyp][iMetric]); } } return result; } private void runApproximateRandomization(List<Metric<?>> metrics, HypothesisManager data, SuffStatManager suffStats, ResultsManager results) { int iBaselineSys = 0; for(int iSys = 1; iSys < data.getNumSystems(); iSys++) { System.err .println("Performing approximate randomization to estimate p-value between baseline system and system " + (iSys + 1) + " (of " + data.getNumSystems() + ")"); // index 1: metric, index 2: hypothesis, inner array: suff stats List<List<SuffStats<?>>> suffStatsBaseline = suffStats.getStatsAllOptForSys(iBaselineSys); List<List<SuffStats<?>>> suffStatsSysI = suffStats.getStatsAllOptForSys(iSys); StratifiedApproximateRandomizationTest ar = new StratifiedApproximateRandomizationTest(metrics, suffStatsBaseline, suffStatsSysI, data.getNumHyps(), data.getNumOptRuns(), debug); double[] pByMetric = ar.getTwoSidedP(numShuffles); for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { results.report(iMetric, iSys, Type.P_VALUE, pByMetric[iMetric]); } } } private SuffStatManager collectSuffStats(List<Metric<?>> metrics, HypothesisManager data) { SuffStatManager suffStats = new SuffStatManager(metrics.size(), data.getNumSystems(), data.getNumOptRuns(), data.getNumHyps()); for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { Metric<?> metric = metrics.get(iMetric); System.err.println("Collecting sufficient statistics for metric: " + metric.toString()); for(int iSys = 0; iSys < data.getNumSystems(); iSys++) { for(int iOpt = 0; iOpt < data.getNumOptRuns(); iOpt++) { for(int iHyp = 0; iHyp < data.getNumHyps(); iHyp++) { String hyp = data.getHypothesis(iSys, iOpt, iHyp); List<String> refs = data.getReferences(iHyp); SuffStats<?> stats = metric.stats(hyp, refs); suffStats.saveStats(iMetric, iSys, iOpt, iHyp, stats); } } } } return suffStats; } private void runOverallEval(List<Metric<?>> metrics, HypothesisManager data, SuffStatManager suffStats, ResultsManager results) { for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { Metric<?> metric = metrics.get(iMetric); System.err.println("Scoring with metric: " + metric.toString()); for(int iSys = 0; iSys < data.getNumSystems(); iSys++) { double[] scoresByOptRun = new double[data.getNumOptRuns()]; for(int iOpt = 0; iOpt < data.getNumOptRuns(); iOpt++) { List<SuffStats<?>> statsBySent = suffStats.getStats(iMetric, iSys, iOpt); SuffStats<?> corpusStats = SuffStatUtils.sumStats(statsBySent); scoresByOptRun[iOpt] = metric.scoreStats(corpusStats); } double avg = MathUtils.average(scoresByOptRun); double stddev = MathUtils.stddev(scoresByOptRun); double min = MathUtils.min(scoresByOptRun); double max = MathUtils.max(scoresByOptRun); int medianIdx = MathUtils.medianIndex(scoresByOptRun); double median = scoresByOptRun[medianIdx]; results.report(iMetric, iSys, Type.AVG, avg); results.report(iMetric, iSys, Type.MEDIAN, median); results.report(iMetric, iSys, Type.STDDEV, stddev); results.report(iMetric, iSys, Type.MIN, min); results.report(iMetric, iSys, Type.MAX, max); results.report(iMetric, iSys, Type.MEDIAN_IDX, medianIdx); } } } private void runOOVAnalysis(List<Metric<?>> metrics, HypothesisManager data, SuffStatManager suffStats, ResultsManager results) { for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { Metric<?> metric = metrics.get(iMetric); // just do this with METEOR since it's the most forgiving if (metric instanceof METEOR) { METEOR meteor = (METEOR) metric; for (int iSys = 0; iSys < data.getNumSystems(); iSys++) { Multiset<String> unmatchedHypWords = HashMultiset.create(); Multiset<String> unmatchedRefWords = HashMultiset.create(); int medianIdx = results.get(iMetric, iSys, Type.MEDIAN_IDX).intValue(); List<SuffStats<?>> statsBySent = suffStats.getStats(iMetric, iSys, medianIdx); for (int iHyp = 0; iHyp < data.getNumHyps(); iHyp++) { METEORStats sentStats = (METEORStats) statsBySent.get(iHyp); unmatchedHypWords.addAll(meteor.getUnmatchedHypWords(sentStats)); unmatchedRefWords.addAll(meteor.getUnmatchedRefWords(sentStats)); } // print OOVs for this system List<Entry<String>> unmatchedHypWordsSorted = CollectionUtils.sortByCount(unmatchedHypWords); List<Entry<String>> unmatchedRefWordsSorted = CollectionUtils.sortByCount(unmatchedRefWords); int nHead = 10; System.err.println("Top unmatched hypothesis words accoring to METEOR: " + CollectionUtils.head(unmatchedHypWordsSorted, nHead)); System.err.println("Top unmatched reference words accoring to METEOR: " + CollectionUtils.head(unmatchedRefWordsSorted, nHead)); } } } } private void runBootstrapResampling(List<Metric<?>> metrics, HypothesisManager data, SuffStatManager suffStats, ResultsManager results) { for(int iSys = 0; iSys < data.getNumSystems(); iSys++) { double[] meanByMetric = new double[metrics.size()]; double[] stddevByMetric = new double[metrics.size()]; double[] minByMetric = new double[metrics.size()]; double[] maxByMetric = new double[metrics.size()]; for(int i=0; i<metrics.size(); i++) { minByMetric[i] = Double.MAX_VALUE; maxByMetric[i] = Double.MIN_VALUE; } for(int iOpt = 0; iOpt < data.getNumOptRuns(); iOpt++) { System.err.println("Performing bootstrap resampling to estimate stddev for test set selection (System " + (iSys + 1) + " of " + data.getNumSystems() + "; opt run " + (iOpt + 1) + " of " + data.getNumOptRuns() + ")"); // index 1: metric, index 2: hypothesis, inner array: suff // stats List<List<SuffStats<?>>> suffStatsSysI = suffStats.getStats(iSys, iOpt); BootstrapResampler boot = new BootstrapResampler(metrics, suffStatsSysI); List<double[]> sampledScoresByMetric = boot.resample(numBootstrapSamples); for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { double[] sampledScores = sampledScoresByMetric.get(iMetric); double mean = MathUtils.average(sampledScores); double stddev = MathUtils.stddev(sampledScores); double min = MathUtils.min(sampledScores); double max = MathUtils.max(sampledScores); // TODO: also include 95% CI? meanByMetric[iMetric] += mean / data.getNumOptRuns(); stddevByMetric[iMetric] += stddev / data.getNumOptRuns(); minByMetric[iMetric] = Math.min(min, minByMetric[iMetric]); maxByMetric[iMetric] = Math.max(max, maxByMetric[iMetric]); } } for(int iMetric = 0; iMetric < metrics.size(); iMetric++) { results.report(iMetric, iSys, Type.RESAMPLED_MEAN_AVG, meanByMetric[iMetric]); results.report(iMetric, iSys, Type.RESAMPLED_STDDEV_AVG, stddevByMetric[iMetric]); results.report(iMetric, iSys, Type.RESAMPLED_MIN, minByMetric[iMetric]); results.report(iMetric, iSys, Type.RESAMPLED_MAX, maxByMetric[iMetric]); } } } } private static final ImmutableMap<String, Module> MODULES = new ImmutableMap.Builder<String, Module>() .put("eval", new MultEvalModule()).put("nbest", new NbestModule()).build(); public static void main(String[] args) throws ConfigurationException, IOException { if (args.length == 0 || !MODULES.keySet().contains(args[0])) { System.err.println("Usage: program <module_name> <module_options>"); System.err.println("Available modules: " + MODULES.keySet().toString()); System.exit(1); } else { String moduleName = args[0]; Module module = MODULES.get(moduleName); Configurator opts = new Configurator().withProgramHeader( "MultEval V0.1\nBy Jonathan Clark\nUsing Libraries: METEOR (Michael Denkowski) and TER (Matthew Snover)\n") .withModuleOptions(moduleName, module.getClass()); // add "dynamic" options, which might be activated later // by the specified switch values for(Class<?> c : module.getDynamicConfigurables()) { opts.allowDynamicOptions(c); } try { opts.readFrom(args); opts.configure(module); } catch(ConfigurationException e) { opts.printUsageTo(System.err); System.err.println("ERROR: " + e.getMessage() + "\n"); System.exit(1); } module.run(opts); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
f2bea5ac962cc05ba60ed78640ff89fe0af40517
5880597babb8ea111518bf36df3fc0e0fa983156
/Midterm3Payroll_Netbeans_Project/src/midterm3payroll/NameException.java
47bd193148b2f8bf8e3ddc6a43dd3583cfa922ec
[]
no_license
MickieBlair/Midterm_Projects_Java_2
5f5567497e2f4ce8493c486e9070a33c505f6511
1ca068b8e3e2fcacc9d9a7e790aa5d053c885ea0
refs/heads/master
2022-12-24T14:51:45.298166
2020-09-18T11:01:59
2020-09-18T11:01:59
296,593,233
0
0
null
null
null
null
UTF-8
Java
false
false
249
java
// Mickie Blair // Midterm Project - Part 3 Payroll Class // Invalid Name Exception package midterm3payroll; public class NameException extends Exception{ NameException(){ super("Employee Name is a Required Field."); } }
[ "blairmickie@gmail.com" ]
blairmickie@gmail.com
edd014bd6edce93abcf86f52c8b1e70824def2fb
45bc6da37b8e315ffc89ca2063e54a3c8325bdac
/src/main/java/com/cunjunwang/hospital/init_version_2016/NumberSorter.java
78fc471ff54c89a2cc520105c5bba6ae32988b7b
[]
no_license
CunjunWang/hospital-emp
b1b8dcfac69f68fbf06cdb2676d78cc262a2d471
e9ede20ae583f900060fcb9c474bef22f81f70d5
refs/heads/master
2020-04-08T03:57:39.666309
2018-12-03T08:12:13
2018-12-03T08:12:13
158,996,529
0
0
null
null
null
null
UTF-8
Java
false
false
450
java
package com.cunjunwang.hospital.init_version_2016; import java.util.Comparator; /** * Created by CunjunWang on 16/11/1. */ public class NumberSorter implements Comparator { @Override public int compare(Object o1, Object o2) { if(o1 instanceof Integer && o2 instanceof Integer){ return (Integer) o1 - (Integer) o2; } else { return Double.compare((Double) o1, (Double) o2); } } }
[ "13621691063@163.com" ]
13621691063@163.com
06ca735a585b1c6fb3dd2b53433e30d4e4344acd
2ea790cb5b076261c8ac9fdf04281e5eef77f37c
/app/src/test/java/com/example/cs/calculator/ExampleUnitTest.java
a0270d26204c69822c6461709a958f5646129bfc
[]
no_license
YashMistry1402/Calculator_app
f23fd770daa8bed28e7cea169297d3f686c2fa38
e39bda744c1ad560af7e7770cfe6398cc06e7f63
refs/heads/main
2023-08-02T08:13:32.623603
2021-10-03T14:38:51
2021-10-03T14:38:51
413,103,451
0
0
null
null
null
null
UTF-8
Java
false
false
403
java
package com.example.cs.calculator; 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); } }
[ "87422993+YashMistry1402@users.noreply.github.com" ]
87422993+YashMistry1402@users.noreply.github.com
dec279b4323376ac07776ee0f33f1d420eb3be32
fe79f4fcb32f9049dca03bd97abf3ae393e2ae8f
/src/main/java/io/github/indicode/fabric/itsmine/util/ClaimUtil.java
8b7a0e9510d7690a5f3c857aff96ae22fac17f7e
[ "Apache-2.0" ]
permissive
DrexHD/NoGrief
0cdecb76792051308a4cb3b123a4feea653a69b6
5c254ba7ec6028b674d53ebb06d625bee91a24f4
refs/heads/master
2021-04-07T19:56:44.938240
2020-05-22T19:53:11
2020-05-22T19:53:11
248,704,242
0
1
Apache-2.0
2020-03-20T08:27:22
2020-03-20T08:27:22
null
UTF-8
Java
false
false
11,226
java
package io.github.indicode.fabric.itsmine.util; import blue.endless.jankson.annotation.Nullable; import com.mojang.brigadier.context.CommandContext; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.exceptions.SimpleCommandExceptionType; import io.github.indicode.fabric.itsmine.*; import io.github.indicode.fabric.itsmine.claim.Claim; import io.github.indicode.fabric.itsmine.claim.ClaimFlags; import net.minecraft.nbt.NbtIo; import net.minecraft.server.command.ServerCommandSource; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.text.LiteralText; import net.minecraft.util.Formatting; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.concurrent.atomic.AtomicReference; public class ClaimUtil { public static BlockPos getPosOnGround(BlockPos pos, World world) { BlockPos blockPos = new BlockPos(pos.getX(), 256, pos.getZ()); do { blockPos = blockPos.down(); if(blockPos.getY() < 1){ return pos; } } while (!world.getBlockState(blockPos).isFullCube(world, pos)); return blockPos.up(); } public static Claim getParentClaim(Claim subzone){ AtomicReference<Claim> parentClaim = new AtomicReference<>(); if(subzone.isChild){ ClaimManager.INSTANCE.claimsByName.forEach((name, claim) -> { for(Claim subzone2 : claim.children){ if(subzone2 == subzone){ parentClaim.set(claim); } } }); return parentClaim.get(); } return subzone; } public static void validateClaim(Claim claim) throws CommandSyntaxException { if (claim == null) throw new SimpleCommandExceptionType(Messages.INVALID_CLAIM).create(); } public static boolean verifyPermission(Claim claim, Claim.Permission permission, CommandContext<ServerCommandSource> context, boolean admin) throws CommandSyntaxException { if (verifyExists(claim, context)) { if (claim.permissionManager.hasPermission(context.getSource().getPlayer().getGameProfile().getId(), permission)) { return true; } else { context.getSource().sendFeedback(new LiteralText(admin ? "You are modifying a claim using admin privileges" : "You cannot modify exceptions for this claim").formatted(admin ? Formatting.DARK_RED : Formatting.RED), false); return admin; } } else { return false; } } private static boolean verifyExists(Claim claim, CommandContext<ServerCommandSource> context) { if (claim == null) { context.getSource().sendFeedback(new LiteralText("That claim does not exist").formatted(Formatting.RED), false); return false; } else { return true; } } public static ArrayList<Claim> getClaims(){ ArrayList<Claim> claims = new ArrayList<>(); ClaimManager.INSTANCE.claimsByName.forEach((s, claim) -> { claims.add(claim); }); return claims; } public static void validateCanAccess(ServerPlayerEntity player, Claim claim, boolean admin) throws CommandSyntaxException { if (claim == null) { throw new SimpleCommandExceptionType(Messages.INVALID_CLAIM).create(); } if (!admin && !claim.permissionManager.hasPermission(player.getGameProfile().getId(), Claim.Permission.MODIFY_SETTINGS)) { throw new SimpleCommandExceptionType(Messages.NO_PERMISSION).create(); } } public static int queryFlag(ServerCommandSource source, Claim claim, ClaimFlags.Flag flag) { boolean enabled = claim.flags.getFlag(flag); source.sendFeedback(new LiteralText(ChatColor.translate("&eFlag &6" + flag.name + " &e is set to " + (enabled ? "&a" : "&c") + enabled + "&e for &6" + claim.name)), false); return 1; } public static int setFlag(ServerCommandSource source, Claim claim, ClaimFlags.Flag flag, boolean set) { claim.flags.flags.put(flag, set); source.sendFeedback(new LiteralText(ChatColor.translate("&eSet flag &6" + flag.name + "&e to " + (set ? "&a" : "&c") + set + "&e for &6" + claim.name)), false); return 0; } public static int queryPermission(ServerCommandSource source, Claim claim, Claim.Permission permission) { boolean defaultPerm = claim.permissionManager.defaults.hasPermission(permission); source.sendFeedback(new LiteralText(ChatColor.translate("&ePermission &6" + permission.id + "&e is set to " + (defaultPerm ? "&a" : "&c") + defaultPerm + "&e for &6" + claim.name)), false); return 1; } public static int setPermission(ServerCommandSource source, Claim claim, Claim.Permission permission, boolean set) { claim.permissionManager.defaults.setPermission(permission, set); source.sendFeedback(new LiteralText(ChatColor.translate("&eSet permission &6" + permission.id + "&e to " + (set ? "&a" : "&c") + set + "&e for &6" + claim.name)), false); return 1; } public static int queryFlags(ServerCommandSource source, Claim claim) { source.sendFeedback(new LiteralText("\n").append(new LiteralText("Flags: " + claim.name).formatted(Formatting.YELLOW)).append(new LiteralText("\n")) .append(Messages.Command.getFlags(claim)).append(new LiteralText("\n")), false); return 1; } public static int executeFlag(ServerCommandSource source, String input, @Nullable String claimName, boolean isQuery, boolean value, boolean admin) throws CommandSyntaxException { ServerPlayerEntity player = source.getPlayer(); Claim claim1 = claimName == null || claimName.isEmpty() ? ClaimManager.INSTANCE.getClaimAt(player.getBlockPos(), player.world.getDimension()) : ClaimManager.INSTANCE.claimsByName.get(claimName); if (claim1 == null) { source.sendError(Messages.INVALID_CLAIM); return -1; } if (input == null) { return queryFlags(source, claim1); } validateCanAccess(player, claim1, admin); ClaimFlags.Flag flag = ClaimFlags.Flag.byId(input); Claim.Permission permission = Claim.Permission.byId(input); if (flag != null && permission == null) return isQuery ? queryFlag(source, claim1, flag) : setFlag(source, claim1, flag, value); if (flag == null && permission != null) return isQuery ? queryPermission(source, claim1, permission) : setPermission(source, claim1, permission, value); source.sendError(Messages.INVALID_SETTING); return -1; } public static int executePermission(ServerCommandSource source, String input, @Nullable String claimName, boolean isQuery, boolean value, boolean admin) throws CommandSyntaxException { ServerPlayerEntity player = source.getPlayer(); Claim claim1 = claimName == null ? ClaimManager.INSTANCE.getClaimAt(player.getBlockPos(), player.world.getDimension()) : ClaimManager.INSTANCE.claimsByName.get(claimName); if (claim1 == null) { source.sendError(Messages.INVALID_CLAIM); return -1; } validateCanAccess(player, claim1, admin); Claim.Permission permission = Claim.Permission.byId(input); if (permission != null) return !isQuery ? setPermission(source, claim1, permission, value) : queryPermission(source, claim1, permission); source.sendError(Messages.INVALID_SETTING); return -1; } public static int modifyException(Claim claim, ServerPlayerEntity exception, Claim.Permission permission, boolean allowed) { claim.permissionManager.setPermission(exception.getGameProfile().getId(), permission, allowed); return 0; } private static int modifyException(Claim claim, String exception, Claim.Permission permission, boolean allowed) { claim.permissionManager.setPermission(exception, permission, allowed); return 0; } public static boolean hasPermission(Claim claim, ServerPlayerEntity exception, Claim.Permission permission) { return claim.permissionManager.hasPermission(exception.getGameProfile().getId(), permission); } public static int setEventMessage(ServerCommandSource source, Claim claim, Claim.Event event, String message) { switch (event) { case ENTER_CLAIM: claim.enterMessage = message.equalsIgnoreCase("reset") ? null : message; break; case LEAVE_CLAIM: claim.leaveMessage = message.equalsIgnoreCase("reset") ? null : message; break; } if (message.equalsIgnoreCase("reset")) { source.sendFeedback(new LiteralText("Reset ").append(new LiteralText(event.id).formatted(Formatting.GOLD) .append(new LiteralText(" Event Message for claim ").formatted(Formatting.YELLOW)) .append(new LiteralText(claim.name).formatted(Formatting.GOLD))).formatted(Formatting.YELLOW) , false); return -1; } source.sendFeedback(new LiteralText("Set ").append(new LiteralText(event.id).formatted(Formatting.GOLD) .append(new LiteralText(" Event Message for claim ").formatted(Formatting.YELLOW)) .append(new LiteralText(claim.name).formatted(Formatting.GOLD)).append(new LiteralText(" to:").formatted(Formatting.YELLOW))) .append(new LiteralText("\n")).append(new LiteralText(ChatColor.translate(message))) .formatted(Formatting.YELLOW) , false); return 1; } public static void readWorldProperties() { File claims = new File(ItsMine.getDirectory() + "/world/claims.dat"); File claims_old = new File(ItsMine.getDirectory() + "/world/claims.dat_old"); if (!claims.exists()) { if (claims_old.exists()) {} else return; } try { if (!claims.exists() && claims_old.exists()) throw new FileNotFoundException(); ClaimManager.INSTANCE.fromNBT(NbtIo.readCompressed(new FileInputStream(claims))); } catch (IOException e) { System.out.println("Could not load " + claims.getName() + ":"); e.printStackTrace(); if (claims_old.exists()) { System.out.println("Attempting to load backup claims..."); try { ClaimManager.INSTANCE.fromNBT(NbtIo.readCompressed(new FileInputStream(claims_old))); } catch (IOException e2) { throw new RuntimeException("Could not load claims.dat_old - Crashing server to save data. Remove or fix claims.dat or claims.dat_old to continue"); } } } } }
[ "nicknamedrex@gmail.com" ]
nicknamedrex@gmail.com
049161ab0c417aa8acf8053651552e59a978a84e
82e1bff898e3a71a24544c606dd645a40fc42935
/studentRecordsBackup/src/studentRecordsBackup/util/OddEvenFilterI.java
7eed3cb8f7db163fb6e63fce5fecea793f496b79
[]
no_license
viraj4422/Student-Backup-System-Observer-pattern
258dc401fa98124952c96f653903e00b1e3a622b
f1553f4d6be0050e696a0a538bf01d86a195d386
refs/heads/master
2020-05-21T16:07:56.673309
2017-06-21T00:33:58
2017-06-21T00:33:58
84,634,034
0
0
null
null
null
null
UTF-8
Java
false
false
108
java
package studentRecordsBackup.util; public interface OddEvenFilterI { public boolean check(int value); }
[ "viraj4422@gmail.com" ]
viraj4422@gmail.com
bbaad01477759bda7d0d39f2e0b2cf0d15a02b55
07b020709b28e01589ab272a0eed09a8932633dc
/app/src/main/java/vn/com/misa/cukcukstarterclone/ui/report/details/ReportDetailsContract.java
0dd02ddb3ce3acc1f5382ecb42ecca5a2a37eb2f
[]
no_license
quockhanhng/CukCuk
b970b8cc8004e335fbc1b8d7441317aaadaaadd1
8cd0b6c01e79eb117c169e41de85ee50cdd87d35
refs/heads/master
2023-03-05T19:31:37.977438
2021-02-05T07:51:15
2021-02-05T07:51:15
334,799,237
1
0
null
2021-02-05T07:51:16
2021-02-01T01:38:34
Java
UTF-8
Java
false
false
1,100
java
package vn.com.misa.cukcukstarterclone.ui.report.details; import com.github.mikephil.charting.data.PieEntry; import java.util.List; import vn.com.misa.cukcukstarterclone.base.BaseContract; import vn.com.misa.cukcukstarterclone.data.model.DetailsReport; /** * - Mục đích Class: * * @created_by KhanhNQ on 03-Feb-2021. */ public class ReportDetailsContract { interface View extends BaseContract.View { void updateDateTitle(String title); void showEmptyReport(); void showPieChartData(List<PieEntry> entries); void showReportData(List<DetailsReport> data); void showReportCount(int count); void showReportTotalPrice(float total); void showReportTotalDiscount(float total); void showReportTotalAmount(float total); } interface Presenter extends BaseContract.Presenter<View> { void getCurrentDayReport(); void getYesterdayReport(); void getThisWeekReport(); void getLastWeekReport(); void getThisMonthReport(); void getInRange(long from, long to); } }
[ "quockhanhng@gmail.com" ]
quockhanhng@gmail.com
81dc50e73a231c4572a8b23f8f0519985e646836
1b42f7a91fecd8f7e48dc0fd856148d4bfbeb9c9
/src/loc/example/springdemo/mvc/model/Log.java
c46fe63929a91706ea494fb24a59d8015d259ed8
[]
no_license
andykeem/spring-mvc-demo
cf336f3146d8948a1f30b6df789106c54307bf21
654e250f7bd90c1594a7ef626ed877e6e73ea7a0
refs/heads/master
2023-02-01T04:33:34.468965
2020-12-13T19:19:10
2020-12-13T19:19:10
321,062,236
0
0
null
null
null
null
UTF-8
Java
false
false
131
java
package loc.example.springdemo.mvc.model; public class Log { public static void d(String msg) { System.out.println(msg); } }
[ "andykeem@gmail.com" ]
andykeem@gmail.com
ba4bf0f939eb7d70f00d08eb1425a46828e9dc28
9f2a6ceea5b92423549fc0044f25a80e5cde9999
/src/main/java/pchild/service/UserService.java
4f87fd15f94dcb82f01d96b292256965cd5a0a66
[]
no_license
PChildHouse/pchildhouse
c810a50528ed063cdac3f60c82e17a2e66ad8ec6
6982486f048ad1c73e02800c187b758c17803daa
refs/heads/master
2021-01-10T01:00:26.780438
2014-04-16T06:28:50
2014-04-16T06:28:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
420
java
package pchild.service; import pchild.domain.User; import java.util.List; /** * User: guibin * Date: 4/15/14 * Time: 8:58 PM */ public interface UserService { public List<User> findAll(); public User findById(Long id); public User findByUsername(String username); public User save(User user); public void delete(User user); public boolean isValid(String username, String password); }
[ "guibin1989@gmail.com" ]
guibin1989@gmail.com
045eb93bd5dc55912bd44bef9ba1ce31aa3a3e71
09b78e6751d0010a825a684a93eb4371f74481db
/src/com/ute/rental/dao/SpeciesContractDAO.java
87a226ee18bf2db4bef936db9239ae12ce35cc50
[]
no_license
duycool/car_rentall
ec17f01c32f9a765d2d02a32afe55b1026c0b95a
9f8058d879d3f6214bb25167c655f6d1a2ef0116
refs/heads/master
2022-11-20T02:39:15.612182
2020-07-19T06:39:54
2020-07-19T06:39:54
274,112,685
0
0
null
null
null
null
UTF-8
Java
false
false
867
java
package com.ute.rental.dao; import java.sql.Connection; import java.sql.Statement; import com.ute.rental.dbconnection.ConnectionFactory; public class SpeciesContractDAO { public void deleteSpeciesContract(int contractid) { Connection connection = null; Statement statement = null; String sql = "DELETE FROM speciesContract WHERE contractid = '"+contractid+"' "; try { connection = ConnectionFactory.getConnection(); statement = connection.createStatement(); statement.execute(sql); } catch (Exception e) { e.printStackTrace(); }finally { if(connection != null) { try { connection.close(); } catch (Exception e2) { e2.printStackTrace(); } } if(statement!=null) { try { statement.close(); } catch (Exception e2) { e2.printStackTrace(); } } } } }
[ "49862080+duynguyen1999@users.noreply.github.com" ]
49862080+duynguyen1999@users.noreply.github.com
e788784019d5bcfbf281b63b3b20d5bc027f7487
b49d56ae4b22eba2f5b04b7f16b6db8d18022fe8
/WorkFlow/src/main/java/com/appzoneltd/lastmile/microservice/workflow/kafka/models/WorkflowNearByVehicles.java
ba360d6d21f309ab3c6053b5e7c0345224ef45a6
[]
no_license
hashish93/last-mile-backend
15259d7bbeadcf6c1b10fde4917279cd208b30cf
b15f29ac6aea277941b386e7ba8019d0ecf206ab
refs/heads/master
2020-04-07T14:31:54.409913
2018-11-20T21:15:09
2018-11-20T21:15:09
158,450,997
0
1
null
null
null
null
UTF-8
Java
false
false
409
java
package com.appzoneltd.lastmile.microservice.workflow.kafka.models; import java.io.Serializable; import java.util.List; import lombok.Data; @Data public class WorkflowNearByVehicles extends WorkflowBase implements Serializable{ private List<Long> vehicles; private boolean automatic; private Long requestId; private Long requesterId; private String requestAddress; private String requestWeight; }
[ "m.hashish93@gmail.com" ]
m.hashish93@gmail.com
85fd4a1489002d752a844f602b4cf12bd4ade73e
04b3ae1298c6f70dca9041a40fda002bc0c99715
/src/main/java/com/sukaiyi/weedclient/exception/SeaweedfsException.java
73966974f2b9d317156be676995852060b631ed8
[]
no_license
sukaiyi/weed-java-client
f5fbe329140b78bb5e606addf3bb06ce70052a8e
9bbe41d11e65c76745188fec77418dae524ff1c2
refs/heads/master
2020-12-10T14:48:11.804308
2020-05-17T08:03:31
2020-05-17T08:03:31
233,623,547
0
0
null
2020-05-17T08:04:23
2020-01-13T15:09:02
Java
UTF-8
Java
false
false
300
java
package com.sukaiyi.weedclient.exception; /** * @author sukaiyi * @date 2020/01/14 */ public class SeaweedfsException extends RuntimeException { public SeaweedfsException(Exception e) { super(e); } public SeaweedfsException(String message) { super(message); } }
[ "1433855681@qq.com" ]
1433855681@qq.com
2bb923d5bfeb38652b967fc2c4aeebbcc808246c
b6f22acf61c7cb24f515ad5341699ab24adbb56c
/backend/src/main/java/com/ifms/resources/exceptions/StandardError.java
920ed03d4dc2a6a9d65aad52618aafed32bdc139
[]
no_license
GentleUlne/sistema-abastecimento-ms
b92efd01eea55a64c9969dbae1a3c42e62069962
dc490673cbb6a519469a3139bc7ad9d77d2fb746
refs/heads/main
2023-04-30T07:46:20.791090
2021-05-15T01:42:36
2021-05-15T01:42:36
366,906,901
0
0
null
null
null
null
UTF-8
Java
false
false
1,019
java
package com.ifms.resources.exceptions; import java.io.Serializable; import java.time.Instant; public class StandardError implements Serializable { /** * */ private static final long serialVersionUID = 1L; private Instant timestamp; private Integer status; private String error; private String message; private String path; public StandardError() { // TODO Auto-generated constructor stub } public Instant getTimestamp() { return timestamp; } public void setTimestamp(Instant timestamp) { this.timestamp = timestamp; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getError() { return error; } public void setError(String error) { this.error = error; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getPath() { return path; } public void setPath(String path) { this.path = path; } }
[ "augustonavirai@gmail.com" ]
augustonavirai@gmail.com
cad1cb1d907b5158ee4e58604acf7c6300feba4b
44e7adc9a1c5c0a1116097ac99c2a51692d4c986
/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/ListQueueTagsResult.java
7b4ceb9d69e1eb6c1c1a3dcebcd56ed626fbc53d
[ "Apache-2.0" ]
permissive
QiAnXinCodeSafe/aws-sdk-java
f93bc97c289984e41527ae5bba97bebd6554ddbe
8251e0a3d910da4f63f1b102b171a3abf212099e
refs/heads/master
2023-01-28T14:28:05.239019
2020-12-03T22:09:01
2020-12-03T22:09:01
318,460,751
1
0
Apache-2.0
2020-12-04T10:06:51
2020-12-04T09:05:03
null
UTF-8
Java
false
false
4,876
java
/* * Copyright 2015-2020 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.sqs.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueueTags" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ListQueueTagsResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable { /** * <p> * The list of all tags added to the specified queue. * </p> */ private com.amazonaws.internal.SdkInternalMap<String, String> tags; /** * <p> * The list of all tags added to the specified queue. * </p> * * @return The list of all tags added to the specified queue. */ public java.util.Map<String, String> getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalMap<String, String>(); } return tags; } /** * <p> * The list of all tags added to the specified queue. * </p> * * @param tags * The list of all tags added to the specified queue. */ public void setTags(java.util.Map<String, String> tags) { this.tags = tags == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>(tags); } /** * <p> * The list of all tags added to the specified queue. * </p> * * @param tags * The list of all tags added to the specified queue. * @return Returns a reference to this object so that method calls can be chained together. */ public ListQueueTagsResult withTags(java.util.Map<String, String> tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see ListQueueTagsResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public ListQueueTagsResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new com.amazonaws.internal.SdkInternalMap<String, String>(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public ListQueueTagsResult clearTagsEntries() { this.tags = null; 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 (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListQueueTagsResult == false) return false; ListQueueTagsResult other = (ListQueueTagsResult) obj; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public ListQueueTagsResult clone() { try { return (ListQueueTagsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }
[ "" ]
2335791612fab278d6660ff0995b10b925ce1cee
6701aad8a07a2f1489b597bcc4432792fd4955d8
/MyApplication/app/src/test/java/com/ayako_sayama/myapplication/ExampleUnitTest.java
ef17d3552c5b85b902a856c579f97927e549520a
[]
no_license
Saayaman/asyncgame
5e52acccd19eabbc2ad54aa1b93de28cbc7364ec
ebf1765d1188f3d3422e300b34712d03d40ffebe
refs/heads/master
2021-01-18T23:47:08.453545
2017-03-09T01:05:28
2017-03-09T01:05:28
84,381,669
0
0
null
null
null
null
UTF-8
Java
false
false
408
java
package com.ayako_sayama.myapplication; 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); } }
[ "ayakosayama1987@gmail.com" ]
ayakosayama1987@gmail.com
89369871db6e7ac2e85e80293b3b0ae6706cce1c
b4863692894f2d63ab7830438c456efbab3c9250
/site-api/src/main/java/io/vigilante/site/api/impl/datastoreng/Relations.java
1913fbdbbff042349f38d92e4b15aa7d5fda74c1
[]
no_license
juruen/vigilante
69a1f90ea90dca1ca646fc9025caab9305f8599b
ed9a409f338bfb3b10241309fa6743bebc148dcb
refs/heads/master
2021-01-10T09:32:27.117280
2016-03-06T19:13:47
2016-03-06T19:13:47
51,533,277
0
0
null
null
null
null
UTF-8
Java
false
false
2,295
java
package io.vigilante.site.api.impl.datastoreng; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Relations { private final ImmutableMap<EntityDescriptor, List<EntityDescriptor>> relations; private final ImmutableMap<EntityDescriptor, List<EntityDescriptor>> reverseRelations; private Relations(Map<EntityDescriptor, List<EntityDescriptor>> relations) { this.relations = ImmutableMap.copyOf(relations); this.reverseRelations = ImmutableMap.copyOf(buildReverseRelations(relations)); } public List<EntityDescriptor> getRelationsFor(EntityDescriptor kind) { return relations.getOrDefault(kind, ImmutableList.of()); } public List<EntityDescriptor> getReverseRelationsFor(EntityDescriptor kind) { return reverseRelations.getOrDefault(kind, ImmutableList.of()); } public static RelationsBuilder builder() { return new RelationsBuilder(); } public static class RelationsBuilder { private final Map<EntityDescriptor, List<EntityDescriptor>> relations; RelationsBuilder() { this.relations = new HashMap<>(); } public RelationsBuilder addRelation(EntityDescriptor from, EntityDescriptor to) { relations.putIfAbsent(from, new ArrayList<>()); relations.get(from).add(to); return this; } public Relations build() { return new Relations(relations); } } private Map<EntityDescriptor, List<EntityDescriptor>> buildReverseRelations( Map<EntityDescriptor, List<EntityDescriptor>> relations ) { final Map<EntityDescriptor, List<EntityDescriptor>> reverse = new HashMap<>(); relations .entrySet() .stream() .forEach(relation -> { relation .getValue() .stream() .forEach(target -> { reverse.putIfAbsent(target, new ArrayList<>()); reverse.get(target).add(relation.getKey()); }); }); return reverse; } }
[ "javi.uruen@gmail.com" ]
javi.uruen@gmail.com
166fabf8ef9bdaad3dc4d01d1cf2675f557643ff
fdc062bec604c38f8f6a039714b7319b0e88f3d8
/TacticalRPG/src/controlers/heroMenu/HeroPaneListener.java
476d501d909a84da5c3a2bd89310f23d420a60c8
[]
no_license
PHippolyte/PolyGame
5f8eba0ffe83df148b71d71f8cf9475edb4a5e08
119644f69e0106f56cd1ed8f62a8fed65991e1ec
refs/heads/master
2021-01-01T03:47:15.283927
2016-06-02T19:12:22
2016-06-02T19:12:22
59,016,291
2
0
null
null
null
null
UTF-8
Java
false
false
982
java
package controlers.heroMenu; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import gameStates.menus.HeroMenu; import view.HeroMenu.HeroPanel; public class HeroPaneListener implements MouseListener{ private HeroPanel panel; private HeroMenu model; public HeroPaneListener(HeroMenu model, HeroPanel panel){ this.model = model; this.panel = panel; } @Override public void mouseClicked(MouseEvent arg0) { // TODO Auto-generated method stub this.model.doAction(); } @Override public void mouseEntered(MouseEvent arg0) { // TODO Auto-generated method stub this.model.setCursorPosition(this.panel.getX(), this.panel.getY()); } @Override public void mouseExited(MouseEvent arg0) { // TODO Auto-generated method stub } @Override public void mousePressed(MouseEvent arg0) { // TODO Auto-generated method stub } @Override public void mouseReleased(MouseEvent arg0) { // TODO Auto-generated method stub } }
[ "corentin.garreau@etu.univ-nantes.fr" ]
corentin.garreau@etu.univ-nantes.fr
3072d652f7aa3472449133f5f74fb7a890fd2909
ddb6aeffb3443a7504bdff5faaa63422c20660be
/appium/src/appium/Automation_raaga_App.java
d03f1cb5d27e3d4a09e91c4072104bb138e08a69
[]
no_license
gouthamsam/appium-sample-codes
6b9fea89e1f8ac9545d382ccb6857731fcc54dc0
5ee00ba3b4fae5b19876242a6665c9ad1ffe7fa5
refs/heads/master
2020-12-24T18:22:30.677101
2016-05-16T22:11:32
2016-05-16T22:11:32
59,107,434
0
0
null
null
null
null
UTF-8
Java
false
false
2,663
java
package appium; import static org.junit.Assert.*; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.List; import java.util.concurrent.TimeUnit; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities; import io.appium.java_client.MobileElement; import io.appium.java_client.SwipeElementDirection; import io.appium.java_client.TouchAction; import io.appium.java_client.android.AndroidDriver; import io.appium.java_client.remote.AndroidMobileCapabilityType; import io.appium.java_client.remote.MobileCapabilityType; import io.appium.java_client.remote.MobilePlatform; public class Automation_raaga_App { @Test public void test() throws IOException, InterruptedException { //File appdir = new File("src"); DesiredCapabilities cap= new DesiredCapabilities(); cap.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID); cap.setCapability(MobileCapabilityType.DEVICE_NAME,"Android device"); //cap.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, "300"); cap.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "com.raaga.android"); cap.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, "com.raaga.android.SplashScreen"); AndroidDriver driver= new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"),cap); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //List<WebElement> ele = driver.findElementsById("com.raaga.android:id/music_grid_category_name"); MobileElement ele= (MobileElement)driver.findElementById("com.raaga.android:id/music_grid_category_name"); ele.swipe(SwipeElementDirection.UP, 1750); //ele.get(8).click(); /*MobileElement ele= (MobileElement)driver.findElementById("com.raaga.android:id/music_grid_category_name"); //System.out.println(ele.size()); //.swipe(SwipeElementDirection.UP,90000); MobileElement ele1= (MobileElement)driver.findElementByAndroidUIAutomator("new UiSelector().text(\"Folk\")"); TouchAction t= new TouchAction(driver); //t.tap(ele.get(10)).perform(); int startY = ele.getLocation().getY() + (ele.getSize().getHeight() / 2); int startX = ele.getLocation().getX() + (ele.getSize().getWidth() / 2); int endX = ele1.getLocation().getX() + (ele1.getSize().getWidth() / 2); int endY = ele1.getLocation().getY() + (ele1.getSize().getHeight() / 2); t.press(startX, startY).waitAction(2000).moveTo(endX, endY).release().perform();*/ } }
[ "goutham@meluha" ]
goutham@meluha
105ba7a8dbed98ca08c1972e7764ddd18c25bc47
0e7f18f5c03553dac7edfb02945e4083a90cd854
/target/classes/jooqgen/.../src/main/java/com/br/sp/posgresdocker/model/jooq/pg_catalog/routines/Name3.java
29eb3549c9371e59397dc096ca44440e71762e0a
[]
no_license
brunomathidios/PostgresqlWithDocker
13604ecb5506b947a994cbb376407ab67ba7985f
6b421c5f487f381eb79007fa8ec53da32977bed1
refs/heads/master
2020-03-22T00:54:07.750044
2018-07-02T22:20:17
2018-07-02T22:20:17
139,271,591
0
0
null
null
null
null
UTF-8
Java
false
true
1,694
java
/* * This file is generated by jOOQ. */ package com.br.sp.posgresdocker.model.jooq.pg_catalog.routines; import com.br.sp.posgresdocker.model.jooq.pg_catalog.PgCatalog; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Parameter; import org.jooq.impl.AbstractRoutine; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.11.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Name3 extends AbstractRoutine<String> { private static final long serialVersionUID = 1252401398; /** * The parameter <code>pg_catalog.name.RETURN_VALUE</code>. */ public static final Parameter<String> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.VARCHAR, false, false); /** * The parameter <code>pg_catalog.name._1</code>. */ public static final Parameter<String> _1 = createParameter("_1", org.jooq.impl.SQLDataType.CHAR, false, true); /** * Create a new routine call instance */ public Name3() { super("name", PgCatalog.PG_CATALOG, org.jooq.impl.SQLDataType.VARCHAR); setReturnParameter(RETURN_VALUE); addInParameter(_1); setOverloaded(true); } /** * Set the <code>_1</code> parameter IN value to the routine */ public void set__1(String value) { setValue(_1, value); } /** * Set the <code>_1</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void set__1(Field<String> field) { setField(_1, field); } }
[ "brunomathidios@yahoo.com.br" ]
brunomathidios@yahoo.com.br
d67f6a763676057ad76065b16cf8848df740ab7b
0e9a198b4c6d24926cfdcd67fed421ee6b52699a
/2일차/src/co/yedam/app/score/ScoreApp.java
e9927159473187a365e930b6f6a47a0ae89370af
[]
no_license
kimhyojin2/java
e520f3d2554b0f54429a73228a0de8f239edd910
fcf787a697f7e0fbfd79689b9d2790439730121e
refs/heads/main
2023-05-27T12:09:55.957468
2021-06-16T08:48:39
2021-06-16T08:48:39
370,966,298
0
0
null
null
null
null
UTF-8
Java
false
false
1,134
java
package co.yedam.app.score; import java.util.Scanner; /* * 성적처리 프로그램 * 국어, 영어, 수학 입력 * 총점, 평균. 등급 계산 */ public class ScoreApp { int kor; int eng; int mat; int sum; float avg; char grade; //성적입력 void input() { Scanner scanner = new Scanner(System.in); System.out.println("국어성적"); kor = scanner.nextInt(); System.out.println("영어성적"); eng = scanner.nextInt(); System.out.println("수학성적"); mat = scanner.nextInt(); } //합계 계산 int getSum() { //sum 계산 sum = kor + eng + mat; return sum; } float getAvg(){ //평균 계산하고 리턴 avg = sum / 3; return avg; } boolean isPass() { //평균이 60이상 true //아니면 false; if (sum>=60) { return true; } else { return false; } } char getGrade() { switch ((int) avg / 10) { // 80 상 60중 하 case 10: grade = '상'; case 9: grade = '상'; case 8: grade = '상'; break; case 7: grade = '중'; case 6: grade = '중'; break; default: grade = '하'; break; } return grade; } }
[ "kho533340@naver.com" ]
kho533340@naver.com
f7097a87ae57a7e979d37c3bd6aa3cf1bba280ae
9f996beabec2a9c6cb1ff7fc67a8c8cbe5749418
/src/test/java/com/amc/careplanner/web/rest/EqualityResourceIT.java
6dfb8b2efb72fc001e60f7772f0a4f27498011b9
[]
no_license
AMC-Software-Solution/amcCarePlanner
f41e1176255ffc624013e8c0ffd272e9f062ebea
7719c05efd55e5aea5002c6b0822ba815184d746
refs/heads/master
2023-04-05T02:22:32.054490
2020-11-30T17:34:05
2020-11-30T17:34:05
313,910,498
0
0
null
null
null
null
UTF-8
Java
false
false
34,567
java
package com.amc.careplanner.web.rest; import com.amc.careplanner.CarePlannerApp; import com.amc.careplanner.domain.Equality; import com.amc.careplanner.domain.Country; import com.amc.careplanner.domain.ServiceUser; import com.amc.careplanner.repository.EqualityRepository; import com.amc.careplanner.service.EqualityService; import com.amc.careplanner.service.dto.EqualityDTO; import com.amc.careplanner.service.mapper.EqualityMapper; import com.amc.careplanner.service.dto.EqualityCriteria; import com.amc.careplanner.service.EqualityQueryService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; import org.springframework.security.test.context.support.WithMockUser; import org.springframework.test.web.servlet.MockMvc; import org.springframework.transaction.annotation.Transactional; import javax.persistence.EntityManager; import java.time.Instant; import java.time.ZonedDateTime; import java.time.ZoneOffset; import java.time.ZoneId; import java.util.List; import static com.amc.careplanner.web.rest.TestUtil.sameInstant; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.hasItem; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; import com.amc.careplanner.domain.enumeration.Gender; import com.amc.careplanner.domain.enumeration.MaritalStatus; import com.amc.careplanner.domain.enumeration.Religion; /** * Integration tests for the {@link EqualityResource} REST controller. */ @SpringBootTest(classes = CarePlannerApp.class) @AutoConfigureMockMvc @WithMockUser public class EqualityResourceIT { private static final Gender DEFAULT_GENDER = Gender.MALE; private static final Gender UPDATED_GENDER = Gender.FEMALE; private static final MaritalStatus DEFAULT_MARITAL_STATUS = MaritalStatus.MARRIED; private static final MaritalStatus UPDATED_MARITAL_STATUS = MaritalStatus.SINGLE; private static final Religion DEFAULT_RELIGION = Religion.MUSLIM; private static final Religion UPDATED_RELIGION = Religion.CHRISTIANITY; private static final ZonedDateTime DEFAULT_LAST_UPDATED_DATE = ZonedDateTime.ofInstant(Instant.ofEpochMilli(0L), ZoneOffset.UTC); private static final ZonedDateTime UPDATED_LAST_UPDATED_DATE = ZonedDateTime.now(ZoneId.systemDefault()).withNano(0); private static final ZonedDateTime SMALLER_LAST_UPDATED_DATE = ZonedDateTime.ofInstant(Instant.ofEpochMilli(-1L), ZoneOffset.UTC); private static final Long DEFAULT_TENANT_ID = 1L; private static final Long UPDATED_TENANT_ID = 2L; private static final Long SMALLER_TENANT_ID = 1L - 1L; @Autowired private EqualityRepository equalityRepository; @Autowired private EqualityMapper equalityMapper; @Autowired private EqualityService equalityService; @Autowired private EqualityQueryService equalityQueryService; @Autowired private EntityManager em; @Autowired private MockMvc restEqualityMockMvc; private Equality equality; /** * Create an entity for this test. * * This is a static method, as tests for other entities might also need it, * if they test an entity which requires the current entity. */ public static Equality createEntity(EntityManager em) { Equality equality = new Equality() .gender(DEFAULT_GENDER) .maritalStatus(DEFAULT_MARITAL_STATUS) .religion(DEFAULT_RELIGION) .lastUpdatedDate(DEFAULT_LAST_UPDATED_DATE) .tenantId(DEFAULT_TENANT_ID); return equality; } /** * Create an updated entity for this test. * * This is a static method, as tests for other entities might also need it, * if they test an entity which requires the current entity. */ public static Equality createUpdatedEntity(EntityManager em) { Equality equality = new Equality() .gender(UPDATED_GENDER) .maritalStatus(UPDATED_MARITAL_STATUS) .religion(UPDATED_RELIGION) .lastUpdatedDate(UPDATED_LAST_UPDATED_DATE) .tenantId(UPDATED_TENANT_ID); return equality; } @BeforeEach public void initTest() { equality = createEntity(em); } @Test @Transactional public void createEquality() throws Exception { int databaseSizeBeforeCreate = equalityRepository.findAll().size(); // Create the Equality EqualityDTO equalityDTO = equalityMapper.toDto(equality); restEqualityMockMvc.perform(post("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isCreated()); // Validate the Equality in the database List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeCreate + 1); Equality testEquality = equalityList.get(equalityList.size() - 1); assertThat(testEquality.getGender()).isEqualTo(DEFAULT_GENDER); assertThat(testEquality.getMaritalStatus()).isEqualTo(DEFAULT_MARITAL_STATUS); assertThat(testEquality.getReligion()).isEqualTo(DEFAULT_RELIGION); assertThat(testEquality.getLastUpdatedDate()).isEqualTo(DEFAULT_LAST_UPDATED_DATE); assertThat(testEquality.getTenantId()).isEqualTo(DEFAULT_TENANT_ID); } @Test @Transactional public void createEqualityWithExistingId() throws Exception { int databaseSizeBeforeCreate = equalityRepository.findAll().size(); // Create the Equality with an existing ID equality.setId(1L); EqualityDTO equalityDTO = equalityMapper.toDto(equality); // An entity with an existing ID cannot be created, so this API call must fail restEqualityMockMvc.perform(post("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isBadRequest()); // Validate the Equality in the database List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeCreate); } @Test @Transactional public void checkGenderIsRequired() throws Exception { int databaseSizeBeforeTest = equalityRepository.findAll().size(); // set the field null equality.setGender(null); // Create the Equality, which fails. EqualityDTO equalityDTO = equalityMapper.toDto(equality); restEqualityMockMvc.perform(post("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isBadRequest()); List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeTest); } @Test @Transactional public void checkMaritalStatusIsRequired() throws Exception { int databaseSizeBeforeTest = equalityRepository.findAll().size(); // set the field null equality.setMaritalStatus(null); // Create the Equality, which fails. EqualityDTO equalityDTO = equalityMapper.toDto(equality); restEqualityMockMvc.perform(post("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isBadRequest()); List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeTest); } @Test @Transactional public void checkReligionIsRequired() throws Exception { int databaseSizeBeforeTest = equalityRepository.findAll().size(); // set the field null equality.setReligion(null); // Create the Equality, which fails. EqualityDTO equalityDTO = equalityMapper.toDto(equality); restEqualityMockMvc.perform(post("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isBadRequest()); List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeTest); } @Test @Transactional public void checkTenantIdIsRequired() throws Exception { int databaseSizeBeforeTest = equalityRepository.findAll().size(); // set the field null equality.setTenantId(null); // Create the Equality, which fails. EqualityDTO equalityDTO = equalityMapper.toDto(equality); restEqualityMockMvc.perform(post("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isBadRequest()); List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeTest); } @Test @Transactional public void getAllEqualities() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList restEqualityMockMvc.perform(get("/api/equalities?sort=id,desc")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(jsonPath("$.[*].id").value(hasItem(equality.getId().intValue()))) .andExpect(jsonPath("$.[*].gender").value(hasItem(DEFAULT_GENDER.toString()))) .andExpect(jsonPath("$.[*].maritalStatus").value(hasItem(DEFAULT_MARITAL_STATUS.toString()))) .andExpect(jsonPath("$.[*].religion").value(hasItem(DEFAULT_RELIGION.toString()))) .andExpect(jsonPath("$.[*].lastUpdatedDate").value(hasItem(sameInstant(DEFAULT_LAST_UPDATED_DATE)))) .andExpect(jsonPath("$.[*].tenantId").value(hasItem(DEFAULT_TENANT_ID.intValue()))); } @Test @Transactional public void getEquality() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get the equality restEqualityMockMvc.perform(get("/api/equalities/{id}", equality.getId())) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(jsonPath("$.id").value(equality.getId().intValue())) .andExpect(jsonPath("$.gender").value(DEFAULT_GENDER.toString())) .andExpect(jsonPath("$.maritalStatus").value(DEFAULT_MARITAL_STATUS.toString())) .andExpect(jsonPath("$.religion").value(DEFAULT_RELIGION.toString())) .andExpect(jsonPath("$.lastUpdatedDate").value(sameInstant(DEFAULT_LAST_UPDATED_DATE))) .andExpect(jsonPath("$.tenantId").value(DEFAULT_TENANT_ID.intValue())); } @Test @Transactional public void getEqualitiesByIdFiltering() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); Long id = equality.getId(); defaultEqualityShouldBeFound("id.equals=" + id); defaultEqualityShouldNotBeFound("id.notEquals=" + id); defaultEqualityShouldBeFound("id.greaterThanOrEqual=" + id); defaultEqualityShouldNotBeFound("id.greaterThan=" + id); defaultEqualityShouldBeFound("id.lessThanOrEqual=" + id); defaultEqualityShouldNotBeFound("id.lessThan=" + id); } @Test @Transactional public void getAllEqualitiesByGenderIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where gender equals to DEFAULT_GENDER defaultEqualityShouldBeFound("gender.equals=" + DEFAULT_GENDER); // Get all the equalityList where gender equals to UPDATED_GENDER defaultEqualityShouldNotBeFound("gender.equals=" + UPDATED_GENDER); } @Test @Transactional public void getAllEqualitiesByGenderIsNotEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where gender not equals to DEFAULT_GENDER defaultEqualityShouldNotBeFound("gender.notEquals=" + DEFAULT_GENDER); // Get all the equalityList where gender not equals to UPDATED_GENDER defaultEqualityShouldBeFound("gender.notEquals=" + UPDATED_GENDER); } @Test @Transactional public void getAllEqualitiesByGenderIsInShouldWork() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where gender in DEFAULT_GENDER or UPDATED_GENDER defaultEqualityShouldBeFound("gender.in=" + DEFAULT_GENDER + "," + UPDATED_GENDER); // Get all the equalityList where gender equals to UPDATED_GENDER defaultEqualityShouldNotBeFound("gender.in=" + UPDATED_GENDER); } @Test @Transactional public void getAllEqualitiesByGenderIsNullOrNotNull() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where gender is not null defaultEqualityShouldBeFound("gender.specified=true"); // Get all the equalityList where gender is null defaultEqualityShouldNotBeFound("gender.specified=false"); } @Test @Transactional public void getAllEqualitiesByMaritalStatusIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where maritalStatus equals to DEFAULT_MARITAL_STATUS defaultEqualityShouldBeFound("maritalStatus.equals=" + DEFAULT_MARITAL_STATUS); // Get all the equalityList where maritalStatus equals to UPDATED_MARITAL_STATUS defaultEqualityShouldNotBeFound("maritalStatus.equals=" + UPDATED_MARITAL_STATUS); } @Test @Transactional public void getAllEqualitiesByMaritalStatusIsNotEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where maritalStatus not equals to DEFAULT_MARITAL_STATUS defaultEqualityShouldNotBeFound("maritalStatus.notEquals=" + DEFAULT_MARITAL_STATUS); // Get all the equalityList where maritalStatus not equals to UPDATED_MARITAL_STATUS defaultEqualityShouldBeFound("maritalStatus.notEquals=" + UPDATED_MARITAL_STATUS); } @Test @Transactional public void getAllEqualitiesByMaritalStatusIsInShouldWork() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where maritalStatus in DEFAULT_MARITAL_STATUS or UPDATED_MARITAL_STATUS defaultEqualityShouldBeFound("maritalStatus.in=" + DEFAULT_MARITAL_STATUS + "," + UPDATED_MARITAL_STATUS); // Get all the equalityList where maritalStatus equals to UPDATED_MARITAL_STATUS defaultEqualityShouldNotBeFound("maritalStatus.in=" + UPDATED_MARITAL_STATUS); } @Test @Transactional public void getAllEqualitiesByMaritalStatusIsNullOrNotNull() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where maritalStatus is not null defaultEqualityShouldBeFound("maritalStatus.specified=true"); // Get all the equalityList where maritalStatus is null defaultEqualityShouldNotBeFound("maritalStatus.specified=false"); } @Test @Transactional public void getAllEqualitiesByReligionIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where religion equals to DEFAULT_RELIGION defaultEqualityShouldBeFound("religion.equals=" + DEFAULT_RELIGION); // Get all the equalityList where religion equals to UPDATED_RELIGION defaultEqualityShouldNotBeFound("religion.equals=" + UPDATED_RELIGION); } @Test @Transactional public void getAllEqualitiesByReligionIsNotEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where religion not equals to DEFAULT_RELIGION defaultEqualityShouldNotBeFound("religion.notEquals=" + DEFAULT_RELIGION); // Get all the equalityList where religion not equals to UPDATED_RELIGION defaultEqualityShouldBeFound("religion.notEquals=" + UPDATED_RELIGION); } @Test @Transactional public void getAllEqualitiesByReligionIsInShouldWork() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where religion in DEFAULT_RELIGION or UPDATED_RELIGION defaultEqualityShouldBeFound("religion.in=" + DEFAULT_RELIGION + "," + UPDATED_RELIGION); // Get all the equalityList where religion equals to UPDATED_RELIGION defaultEqualityShouldNotBeFound("religion.in=" + UPDATED_RELIGION); } @Test @Transactional public void getAllEqualitiesByReligionIsNullOrNotNull() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where religion is not null defaultEqualityShouldBeFound("religion.specified=true"); // Get all the equalityList where religion is null defaultEqualityShouldNotBeFound("religion.specified=false"); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate equals to DEFAULT_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.equals=" + DEFAULT_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate equals to UPDATED_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.equals=" + UPDATED_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsNotEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate not equals to DEFAULT_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.notEquals=" + DEFAULT_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate not equals to UPDATED_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.notEquals=" + UPDATED_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsInShouldWork() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate in DEFAULT_LAST_UPDATED_DATE or UPDATED_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.in=" + DEFAULT_LAST_UPDATED_DATE + "," + UPDATED_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate equals to UPDATED_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.in=" + UPDATED_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsNullOrNotNull() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate is not null defaultEqualityShouldBeFound("lastUpdatedDate.specified=true"); // Get all the equalityList where lastUpdatedDate is null defaultEqualityShouldNotBeFound("lastUpdatedDate.specified=false"); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsGreaterThanOrEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate is greater than or equal to DEFAULT_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.greaterThanOrEqual=" + DEFAULT_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate is greater than or equal to UPDATED_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.greaterThanOrEqual=" + UPDATED_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsLessThanOrEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate is less than or equal to DEFAULT_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.lessThanOrEqual=" + DEFAULT_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate is less than or equal to SMALLER_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.lessThanOrEqual=" + SMALLER_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsLessThanSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate is less than DEFAULT_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.lessThan=" + DEFAULT_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate is less than UPDATED_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.lessThan=" + UPDATED_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByLastUpdatedDateIsGreaterThanSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where lastUpdatedDate is greater than DEFAULT_LAST_UPDATED_DATE defaultEqualityShouldNotBeFound("lastUpdatedDate.greaterThan=" + DEFAULT_LAST_UPDATED_DATE); // Get all the equalityList where lastUpdatedDate is greater than SMALLER_LAST_UPDATED_DATE defaultEqualityShouldBeFound("lastUpdatedDate.greaterThan=" + SMALLER_LAST_UPDATED_DATE); } @Test @Transactional public void getAllEqualitiesByTenantIdIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId equals to DEFAULT_TENANT_ID defaultEqualityShouldBeFound("tenantId.equals=" + DEFAULT_TENANT_ID); // Get all the equalityList where tenantId equals to UPDATED_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.equals=" + UPDATED_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByTenantIdIsNotEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId not equals to DEFAULT_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.notEquals=" + DEFAULT_TENANT_ID); // Get all the equalityList where tenantId not equals to UPDATED_TENANT_ID defaultEqualityShouldBeFound("tenantId.notEquals=" + UPDATED_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByTenantIdIsInShouldWork() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId in DEFAULT_TENANT_ID or UPDATED_TENANT_ID defaultEqualityShouldBeFound("tenantId.in=" + DEFAULT_TENANT_ID + "," + UPDATED_TENANT_ID); // Get all the equalityList where tenantId equals to UPDATED_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.in=" + UPDATED_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByTenantIdIsNullOrNotNull() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId is not null defaultEqualityShouldBeFound("tenantId.specified=true"); // Get all the equalityList where tenantId is null defaultEqualityShouldNotBeFound("tenantId.specified=false"); } @Test @Transactional public void getAllEqualitiesByTenantIdIsGreaterThanOrEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId is greater than or equal to DEFAULT_TENANT_ID defaultEqualityShouldBeFound("tenantId.greaterThanOrEqual=" + DEFAULT_TENANT_ID); // Get all the equalityList where tenantId is greater than or equal to UPDATED_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.greaterThanOrEqual=" + UPDATED_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByTenantIdIsLessThanOrEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId is less than or equal to DEFAULT_TENANT_ID defaultEqualityShouldBeFound("tenantId.lessThanOrEqual=" + DEFAULT_TENANT_ID); // Get all the equalityList where tenantId is less than or equal to SMALLER_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.lessThanOrEqual=" + SMALLER_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByTenantIdIsLessThanSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId is less than DEFAULT_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.lessThan=" + DEFAULT_TENANT_ID); // Get all the equalityList where tenantId is less than UPDATED_TENANT_ID defaultEqualityShouldBeFound("tenantId.lessThan=" + UPDATED_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByTenantIdIsGreaterThanSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); // Get all the equalityList where tenantId is greater than DEFAULT_TENANT_ID defaultEqualityShouldNotBeFound("tenantId.greaterThan=" + DEFAULT_TENANT_ID); // Get all the equalityList where tenantId is greater than SMALLER_TENANT_ID defaultEqualityShouldBeFound("tenantId.greaterThan=" + SMALLER_TENANT_ID); } @Test @Transactional public void getAllEqualitiesByNationalityIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); Country nationality = CountryResourceIT.createEntity(em); em.persist(nationality); em.flush(); equality.setNationality(nationality); equalityRepository.saveAndFlush(equality); Long nationalityId = nationality.getId(); // Get all the equalityList where nationality equals to nationalityId defaultEqualityShouldBeFound("nationalityId.equals=" + nationalityId); // Get all the equalityList where nationality equals to nationalityId + 1 defaultEqualityShouldNotBeFound("nationalityId.equals=" + (nationalityId + 1)); } @Test @Transactional public void getAllEqualitiesByServiceUserIsEqualToSomething() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); ServiceUser serviceUser = ServiceUserResourceIT.createEntity(em); em.persist(serviceUser); em.flush(); equality.setServiceUser(serviceUser); equalityRepository.saveAndFlush(equality); Long serviceUserId = serviceUser.getId(); // Get all the equalityList where serviceUser equals to serviceUserId defaultEqualityShouldBeFound("serviceUserId.equals=" + serviceUserId); // Get all the equalityList where serviceUser equals to serviceUserId + 1 defaultEqualityShouldNotBeFound("serviceUserId.equals=" + (serviceUserId + 1)); } /** * Executes the search, and checks that the default entity is returned. */ private void defaultEqualityShouldBeFound(String filter) throws Exception { restEqualityMockMvc.perform(get("/api/equalities?sort=id,desc&" + filter)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(jsonPath("$.[*].id").value(hasItem(equality.getId().intValue()))) .andExpect(jsonPath("$.[*].gender").value(hasItem(DEFAULT_GENDER.toString()))) .andExpect(jsonPath("$.[*].maritalStatus").value(hasItem(DEFAULT_MARITAL_STATUS.toString()))) .andExpect(jsonPath("$.[*].religion").value(hasItem(DEFAULT_RELIGION.toString()))) .andExpect(jsonPath("$.[*].lastUpdatedDate").value(hasItem(sameInstant(DEFAULT_LAST_UPDATED_DATE)))) .andExpect(jsonPath("$.[*].tenantId").value(hasItem(DEFAULT_TENANT_ID.intValue()))); // Check, that the count call also returns 1 restEqualityMockMvc.perform(get("/api/equalities/count?sort=id,desc&" + filter)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(content().string("1")); } /** * Executes the search, and checks that the default entity is not returned. */ private void defaultEqualityShouldNotBeFound(String filter) throws Exception { restEqualityMockMvc.perform(get("/api/equalities?sort=id,desc&" + filter)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(jsonPath("$").isArray()) .andExpect(jsonPath("$").isEmpty()); // Check, that the count call also returns 0 restEqualityMockMvc.perform(get("/api/equalities/count?sort=id,desc&" + filter)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(content().string("0")); } @Test @Transactional public void getNonExistingEquality() throws Exception { // Get the equality restEqualityMockMvc.perform(get("/api/equalities/{id}", Long.MAX_VALUE)) .andExpect(status().isNotFound()); } @Test @Transactional public void updateEquality() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); int databaseSizeBeforeUpdate = equalityRepository.findAll().size(); // Update the equality Equality updatedEquality = equalityRepository.findById(equality.getId()).get(); // Disconnect from session so that the updates on updatedEquality are not directly saved in db em.detach(updatedEquality); updatedEquality .gender(UPDATED_GENDER) .maritalStatus(UPDATED_MARITAL_STATUS) .religion(UPDATED_RELIGION) .lastUpdatedDate(UPDATED_LAST_UPDATED_DATE) .tenantId(UPDATED_TENANT_ID); EqualityDTO equalityDTO = equalityMapper.toDto(updatedEquality); restEqualityMockMvc.perform(put("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isOk()); // Validate the Equality in the database List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeUpdate); Equality testEquality = equalityList.get(equalityList.size() - 1); assertThat(testEquality.getGender()).isEqualTo(UPDATED_GENDER); assertThat(testEquality.getMaritalStatus()).isEqualTo(UPDATED_MARITAL_STATUS); assertThat(testEquality.getReligion()).isEqualTo(UPDATED_RELIGION); assertThat(testEquality.getLastUpdatedDate()).isEqualTo(UPDATED_LAST_UPDATED_DATE); assertThat(testEquality.getTenantId()).isEqualTo(UPDATED_TENANT_ID); } @Test @Transactional public void updateNonExistingEquality() throws Exception { int databaseSizeBeforeUpdate = equalityRepository.findAll().size(); // Create the Equality EqualityDTO equalityDTO = equalityMapper.toDto(equality); // If the entity doesn't have an ID, it will throw BadRequestAlertException restEqualityMockMvc.perform(put("/api/equalities") .contentType(MediaType.APPLICATION_JSON) .content(TestUtil.convertObjectToJsonBytes(equalityDTO))) .andExpect(status().isBadRequest()); // Validate the Equality in the database List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeUpdate); } @Test @Transactional public void deleteEquality() throws Exception { // Initialize the database equalityRepository.saveAndFlush(equality); int databaseSizeBeforeDelete = equalityRepository.findAll().size(); // Delete the equality restEqualityMockMvc.perform(delete("/api/equalities/{id}", equality.getId()) .accept(MediaType.APPLICATION_JSON)) .andExpect(status().isNoContent()); // Validate the database contains one less item List<Equality> equalityList = equalityRepository.findAll(); assertThat(equalityList).hasSize(databaseSizeBeforeDelete - 1); } }
[ "farahmohamoud44@gmail.com" ]
farahmohamoud44@gmail.com
f01ba8f4c54ed54e5df402068d34b90f5771df34
6edd70b9635259c9d2dddacb8792c912364bb181
/sdi2021-213-spring/src/main/java/com/uniovi/WebSecurityConfig.java
1bd468de8b8a10335aa7e8f9ca3971a1e9d79451
[]
no_license
uo258270/sdi2021-213-lab-jee
7ebcbd4ee9c0d0b19e98229a640f758df14c78f6
a869e058f06845f445c21acc2b83d99d7e759177
refs/heads/master
2023-03-21T12:22:39.547603
2021-03-12T10:52:09
2021-03-12T10:52:09
335,375,300
0
0
null
null
null
null
UTF-8
Java
false
false
2,212
java
package com.uniovi; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect; @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private UserDetailsService userDetailsService; @Bean public BCryptPasswordEncoder bCryptPasswordEncoder() { return new BCryptPasswordEncoder(); } @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable().authorizeRequests() .antMatchers("/css/**", "/img/**", "/script/**", "/", "/signup", "/login/**").permitAll() .antMatchers("/mark/add").hasAuthority("ROLE_PROFESSOR") .antMatchers("/mark/edit/*").hasAuthority("ROLE_PROFESSOR") .antMatchers("/mark/delete/*").hasAuthority("-ROLE_PROFESSOR") .antMatchers("/mark/**").hasAnyAuthority("ROLE_STUDENT", "ROLE_PROFESSOR", "ROLE_ADMIN") .antMatchers("/user/**").hasAnyAuthority("ROLE_ADMIN").anyRequest().authenticated().and().formLogin() .loginPage("/login").permitAll(); } @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder()); } @Bean @Override public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } @Bean public SpringSecurityDialect securityDialect() { return new SpringSecurityDialect(); } }
[ "uo258270@uniovi.es" ]
uo258270@uniovi.es
13eab0785ddda93800d1a8076afefdffa738c4a5
8fcc622a557ad9f7a232df0c426430dcb8c6ef93
/library_compat/src/main/java/org/wall/mo/activitylifecyclecallback/AppFrontBackHelper.java
6c4c382630add7f90e5768f8cc5610ed071670d8
[]
no_license
mosentest/WalleLibrary
cf7b7f45f553aaf7884b839b8386954d267cb986
bcdb89f4685213399b38f07a8262d57e042bc4cb
refs/heads/master
2023-05-04T21:42:10.729501
2019-12-16T07:20:55
2019-12-16T07:20:55
137,459,022
2
0
null
null
null
null
UTF-8
Java
false
false
2,792
java
package org.wall.mo.activitylifecyclecallback; import android.app.Activity; import android.app.Application; import android.os.Bundle; /** * https://blog.csdn.net/bzlj2912009596/article/details/80073396 * https://www.jianshu.com/p/6abb22937e6f * Copyright (C), 2018-2018 * Author: ziqimo * Date: 2018/12/13 下午1:40 * Description: ${DESCRIPTION} * History:应用前后台状态监听帮助类,仅在Application中使用 * <author> <time> <version> <desc> * 作者姓名 修改时间 版本号 描述 */ public class AppFrontBackHelper { private OnAppStatusListener mOnAppStatusListener; public AppFrontBackHelper() { } /** * 注册状态监听,仅在Application中使用 * * @param application * @param listener */ public void register(Application application, AppFrontBackHelper.OnAppStatusListener listener) { mOnAppStatusListener = listener; application.registerActivityLifecycleCallbacks(activityLifecycleCallbacks); } public void unRegister(Application application) { application.unregisterActivityLifecycleCallbacks(activityLifecycleCallbacks); } private Application.ActivityLifecycleCallbacks activityLifecycleCallbacks = new Application.ActivityLifecycleCallbacks() { //打开的Activity数量统计 private int activityStartCount = 0; @Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) { } @Override public void onActivityStarted(Activity activity) { activityStartCount++; //数值从0变到1说明是从后台切到前台 if (activityStartCount == 1) { //从后台切到前台 if (mOnAppStatusListener != null) { mOnAppStatusListener.onFront(); } } } @Override public void onActivityResumed(Activity activity) { } @Override public void onActivityPaused(Activity activity) { } @Override public void onActivityStopped(Activity activity) { activityStartCount--; //数值从1到0说明是从前台切到后台 if (activityStartCount == 0) { //从前台切到后台 if (mOnAppStatusListener != null) { mOnAppStatusListener.onBack(); } } } @Override public void onActivitySaveInstanceState(Activity activity, Bundle outState) { } @Override public void onActivityDestroyed(Activity activity) { } }; public interface OnAppStatusListener { public void onFront(); public void onBack(); } }
[ "709847739@qq.com" ]
709847739@qq.com
16a3e0f45aec649c6ca63ed9a3022fcf8cc28df7
8826789bd035e5c5dce249cd22ddc2cfb594df07
/App/mobile/build/generated/source/r/debug/android/support/design/R.java
0c22d54125dfce13381f0a9aa975ad320e65b9d5
[]
no_license
cs160-berkeley/prog-02-represent-fendy93
890599b59f4d9a1571b99542df38398d709a3586
e14e60be100a8f3b696d06c5423cb2b1d5fab4bc
refs/heads/master
2020-04-03T17:36:31.916650
2016-03-13T03:58:50
2016-03-13T03:58:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
103,266
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package android.support.design; public final class R { public static final class anim { public static final int abc_fade_in = 0x7f050000; public static final int abc_fade_out = 0x7f050001; public static final int abc_grow_fade_in_from_bottom = 0x7f050002; public static final int abc_popup_enter = 0x7f050003; public static final int abc_popup_exit = 0x7f050004; public static final int abc_shrink_fade_out_from_bottom = 0x7f050005; public static final int abc_slide_in_bottom = 0x7f050006; public static final int abc_slide_in_top = 0x7f050007; public static final int abc_slide_out_bottom = 0x7f050008; public static final int abc_slide_out_top = 0x7f050009; public static final int design_fab_in = 0x7f05000a; public static final int design_fab_out = 0x7f05000b; public static final int design_snackbar_in = 0x7f05000c; public static final int design_snackbar_out = 0x7f05000d; } public static final class attr { public static final int actionBarDivider = 0x7f0100d0; public static final int actionBarItemBackground = 0x7f0100d1; public static final int actionBarPopupTheme = 0x7f0100ca; public static final int actionBarSize = 0x7f0100cf; public static final int actionBarSplitStyle = 0x7f0100cc; public static final int actionBarStyle = 0x7f0100cb; public static final int actionBarTabBarStyle = 0x7f0100c6; public static final int actionBarTabStyle = 0x7f0100c5; public static final int actionBarTabTextStyle = 0x7f0100c7; public static final int actionBarTheme = 0x7f0100cd; public static final int actionBarWidgetTheme = 0x7f0100ce; public static final int actionButtonStyle = 0x7f0100ea; public static final int actionDropDownStyle = 0x7f0100e6; public static final int actionLayout = 0x7f010075; public static final int actionMenuTextAppearance = 0x7f0100d2; public static final int actionMenuTextColor = 0x7f0100d3; public static final int actionModeBackground = 0x7f0100d6; public static final int actionModeCloseButtonStyle = 0x7f0100d5; public static final int actionModeCloseDrawable = 0x7f0100d8; public static final int actionModeCopyDrawable = 0x7f0100da; public static final int actionModeCutDrawable = 0x7f0100d9; public static final int actionModeFindDrawable = 0x7f0100de; public static final int actionModePasteDrawable = 0x7f0100db; public static final int actionModePopupWindowStyle = 0x7f0100e0; public static final int actionModeSelectAllDrawable = 0x7f0100dc; public static final int actionModeShareDrawable = 0x7f0100dd; public static final int actionModeSplitBackground = 0x7f0100d7; public static final int actionModeStyle = 0x7f0100d4; public static final int actionModeWebSearchDrawable = 0x7f0100df; public static final int actionOverflowButtonStyle = 0x7f0100c8; public static final int actionOverflowMenuStyle = 0x7f0100c9; public static final int actionProviderClass = 0x7f010077; public static final int actionViewClass = 0x7f010076; public static final int activityChooserViewStyle = 0x7f0100f2; public static final int alertDialogButtonGroupStyle = 0x7f010115; public static final int alertDialogCenterButtons = 0x7f010116; public static final int alertDialogStyle = 0x7f010114; public static final int alertDialogTheme = 0x7f010117; public static final int allowStacking = 0x7f010036; public static final int arrowHeadLength = 0x7f010053; public static final int arrowShaftLength = 0x7f010054; public static final int autoCompleteTextViewStyle = 0x7f01011c; public static final int background = 0x7f010017; public static final int backgroundSplit = 0x7f010019; public static final int backgroundStacked = 0x7f010018; public static final int backgroundTint = 0x7f01013d; public static final int backgroundTintMode = 0x7f01013e; public static final int barLength = 0x7f010055; public static final int behavior_overlapTop = 0x7f010086; public static final int borderWidth = 0x7f01005a; public static final int borderlessButtonStyle = 0x7f0100ef; public static final int buttonBarButtonStyle = 0x7f0100ec; public static final int buttonBarNegativeButtonStyle = 0x7f01011a; public static final int buttonBarNeutralButtonStyle = 0x7f01011b; public static final int buttonBarPositiveButtonStyle = 0x7f010119; public static final int buttonBarStyle = 0x7f0100eb; public static final int buttonPanelSideLayout = 0x7f01002d; public static final int buttonStyle = 0x7f01011d; public static final int buttonStyleSmall = 0x7f01011e; public static final int buttonTint = 0x7f010046; public static final int buttonTintMode = 0x7f010047; public static final int checkboxStyle = 0x7f01011f; public static final int checkedTextViewStyle = 0x7f010120; public static final int closeIcon = 0x7f01008b; public static final int closeItemLayout = 0x7f010027; public static final int collapseContentDescription = 0x7f010134; public static final int collapseIcon = 0x7f010133; public static final int collapsedTitleGravity = 0x7f010043; public static final int collapsedTitleTextAppearance = 0x7f01003f; public static final int color = 0x7f01004f; public static final int colorAccent = 0x7f01010d; public static final int colorButtonNormal = 0x7f010111; public static final int colorControlActivated = 0x7f01010f; public static final int colorControlHighlight = 0x7f010110; public static final int colorControlNormal = 0x7f01010e; public static final int colorPrimary = 0x7f01010b; public static final int colorPrimaryDark = 0x7f01010c; public static final int colorSwitchThumbNormal = 0x7f010112; public static final int commitIcon = 0x7f010090; public static final int contentInsetEnd = 0x7f010022; public static final int contentInsetLeft = 0x7f010023; public static final int contentInsetRight = 0x7f010024; public static final int contentInsetStart = 0x7f010021; public static final int contentScrim = 0x7f010040; public static final int controlBackground = 0x7f010113; public static final int counterEnabled = 0x7f0100b6; public static final int counterMaxLength = 0x7f0100b7; public static final int counterOverflowTextAppearance = 0x7f0100b9; public static final int counterTextAppearance = 0x7f0100b8; public static final int customNavigationLayout = 0x7f01001a; public static final int defaultQueryHint = 0x7f01008a; public static final int dialogPreferredPadding = 0x7f0100e4; public static final int dialogTheme = 0x7f0100e3; public static final int displayOptions = 0x7f010010; public static final int divider = 0x7f010016; public static final int dividerHorizontal = 0x7f0100f1; public static final int dividerPadding = 0x7f01005e; public static final int dividerVertical = 0x7f0100f0; public static final int drawableSize = 0x7f010051; public static final int drawerArrowStyle = 0x7f010002; public static final int dropDownListViewStyle = 0x7f010103; public static final int dropdownListPreferredItemHeight = 0x7f0100e7; public static final int editTextBackground = 0x7f0100f8; public static final int editTextColor = 0x7f0100f7; public static final int editTextStyle = 0x7f010121; public static final int elevation = 0x7f010025; public static final int errorEnabled = 0x7f0100b4; public static final int errorTextAppearance = 0x7f0100b5; public static final int expandActivityOverflowButtonDrawable = 0x7f010029; public static final int expanded = 0x7f010032; public static final int expandedTitleGravity = 0x7f010044; public static final int expandedTitleMargin = 0x7f010039; public static final int expandedTitleMarginBottom = 0x7f01003d; public static final int expandedTitleMarginEnd = 0x7f01003c; public static final int expandedTitleMarginStart = 0x7f01003a; public static final int expandedTitleMarginTop = 0x7f01003b; public static final int expandedTitleTextAppearance = 0x7f01003e; public static final int fabSize = 0x7f010058; public static final int foregroundInsidePadding = 0x7f01005b; public static final int gapBetweenBars = 0x7f010052; public static final int goIcon = 0x7f01008c; public static final int headerLayout = 0x7f01007e; public static final int height = 0x7f010003; public static final int hideOnContentScroll = 0x7f010020; public static final int hintAnimationEnabled = 0x7f0100ba; public static final int hintTextAppearance = 0x7f0100b3; public static final int homeAsUpIndicator = 0x7f0100e9; public static final int homeLayout = 0x7f01001b; public static final int icon = 0x7f010014; public static final int iconifiedByDefault = 0x7f010088; public static final int imageButtonStyle = 0x7f0100f9; public static final int indeterminateProgressStyle = 0x7f01001d; public static final int initialActivityCount = 0x7f010028; public static final int insetForeground = 0x7f010085; public static final int isLightTheme = 0x7f010004; public static final int itemBackground = 0x7f01007c; public static final int itemIconTint = 0x7f01007a; public static final int itemPadding = 0x7f01001f; public static final int itemTextAppearance = 0x7f01007d; public static final int itemTextColor = 0x7f01007b; public static final int keylines = 0x7f010048; public static final int layout = 0x7f010087; public static final int layoutManager = 0x7f010081; public static final int layout_anchor = 0x7f01004b; public static final int layout_anchorGravity = 0x7f01004d; public static final int layout_behavior = 0x7f01004a; public static final int layout_collapseMode = 0x7f010037; public static final int layout_collapseParallaxMultiplier = 0x7f010038; public static final int layout_keyline = 0x7f01004c; public static final int layout_scrollFlags = 0x7f010033; public static final int layout_scrollInterpolator = 0x7f010034; public static final int listChoiceBackgroundIndicator = 0x7f01010a; public static final int listDividerAlertDialog = 0x7f0100e5; public static final int listItemLayout = 0x7f010031; public static final int listLayout = 0x7f01002e; public static final int listPopupWindowStyle = 0x7f010104; public static final int listPreferredItemHeight = 0x7f0100fe; public static final int listPreferredItemHeightLarge = 0x7f010100; public static final int listPreferredItemHeightSmall = 0x7f0100ff; public static final int listPreferredItemPaddingLeft = 0x7f010101; public static final int listPreferredItemPaddingRight = 0x7f010102; public static final int logo = 0x7f010015; public static final int logoDescription = 0x7f010137; public static final int maxActionInlineWidth = 0x7f010097; public static final int maxButtonHeight = 0x7f010132; public static final int measureWithLargestChild = 0x7f01005c; public static final int menu = 0x7f010079; public static final int multiChoiceItemLayout = 0x7f01002f; public static final int navigationContentDescription = 0x7f010136; public static final int navigationIcon = 0x7f010135; public static final int navigationMode = 0x7f01000f; public static final int overlapAnchor = 0x7f01007f; public static final int paddingEnd = 0x7f01013b; public static final int paddingStart = 0x7f01013a; public static final int panelBackground = 0x7f010107; public static final int panelMenuListTheme = 0x7f010109; public static final int panelMenuListWidth = 0x7f010108; public static final int popupMenuStyle = 0x7f0100f5; public static final int popupTheme = 0x7f010026; public static final int popupWindowStyle = 0x7f0100f6; public static final int preserveIconSpacing = 0x7f010078; public static final int pressedTranslationZ = 0x7f010059; public static final int progressBarPadding = 0x7f01001e; public static final int progressBarStyle = 0x7f01001c; public static final int queryBackground = 0x7f010092; public static final int queryHint = 0x7f010089; public static final int radioButtonStyle = 0x7f010122; public static final int ratingBarStyle = 0x7f010123; public static final int reverseLayout = 0x7f010083; public static final int rippleColor = 0x7f010057; public static final int searchHintIcon = 0x7f01008e; public static final int searchIcon = 0x7f01008d; public static final int searchViewStyle = 0x7f0100fd; public static final int seekBarStyle = 0x7f010124; public static final int selectableItemBackground = 0x7f0100ed; public static final int selectableItemBackgroundBorderless = 0x7f0100ee; public static final int showAsAction = 0x7f010074; public static final int showDividers = 0x7f01005d; public static final int showText = 0x7f0100a2; public static final int singleChoiceItemLayout = 0x7f010030; public static final int spanCount = 0x7f010082; public static final int spinBars = 0x7f010050; public static final int spinnerDropDownItemStyle = 0x7f0100e8; public static final int spinnerStyle = 0x7f010125; public static final int splitTrack = 0x7f0100a1; public static final int stackFromEnd = 0x7f010084; public static final int state_above_anchor = 0x7f010080; public static final int statusBarBackground = 0x7f010049; public static final int statusBarScrim = 0x7f010041; public static final int submitBackground = 0x7f010093; public static final int subtitle = 0x7f010011; public static final int subtitleTextAppearance = 0x7f01012c; public static final int subtitleTextColor = 0x7f010139; public static final int subtitleTextStyle = 0x7f010013; public static final int suggestionRowLayout = 0x7f010091; public static final int switchMinWidth = 0x7f01009f; public static final int switchPadding = 0x7f0100a0; public static final int switchStyle = 0x7f010126; public static final int switchTextAppearance = 0x7f01009e; public static final int tabBackground = 0x7f0100a6; public static final int tabContentStart = 0x7f0100a5; public static final int tabGravity = 0x7f0100a8; public static final int tabIndicatorColor = 0x7f0100a3; public static final int tabIndicatorHeight = 0x7f0100a4; public static final int tabMaxWidth = 0x7f0100aa; public static final int tabMinWidth = 0x7f0100a9; public static final int tabMode = 0x7f0100a7; public static final int tabPadding = 0x7f0100b2; public static final int tabPaddingBottom = 0x7f0100b1; public static final int tabPaddingEnd = 0x7f0100b0; public static final int tabPaddingStart = 0x7f0100ae; public static final int tabPaddingTop = 0x7f0100af; public static final int tabSelectedTextColor = 0x7f0100ad; public static final int tabTextAppearance = 0x7f0100ab; public static final int tabTextColor = 0x7f0100ac; public static final int textAllCaps = 0x7f010035; public static final int textAppearanceLargePopupMenu = 0x7f0100e1; public static final int textAppearanceListItem = 0x7f010105; public static final int textAppearanceListItemSmall = 0x7f010106; public static final int textAppearanceSearchResultSubtitle = 0x7f0100fb; public static final int textAppearanceSearchResultTitle = 0x7f0100fa; public static final int textAppearanceSmallPopupMenu = 0x7f0100e2; public static final int textColorAlertDialogListItem = 0x7f010118; public static final int textColorSearchUrl = 0x7f0100fc; public static final int theme = 0x7f01013c; public static final int thickness = 0x7f010056; public static final int thumbTextPadding = 0x7f01009d; public static final int title = 0x7f01000d; public static final int titleEnabled = 0x7f010045; public static final int titleMarginBottom = 0x7f010131; public static final int titleMarginEnd = 0x7f01012f; public static final int titleMarginStart = 0x7f01012e; public static final int titleMarginTop = 0x7f010130; public static final int titleMargins = 0x7f01012d; public static final int titleTextAppearance = 0x7f01012b; public static final int titleTextColor = 0x7f010138; public static final int titleTextStyle = 0x7f010012; public static final int toolbarId = 0x7f010042; public static final int toolbarNavigationButtonStyle = 0x7f0100f4; public static final int toolbarStyle = 0x7f0100f3; public static final int track = 0x7f01009c; public static final int voiceIcon = 0x7f01008f; public static final int windowActionBar = 0x7f0100bb; public static final int windowActionBarOverlay = 0x7f0100bd; public static final int windowActionModeOverlay = 0x7f0100be; public static final int windowFixedHeightMajor = 0x7f0100c2; public static final int windowFixedHeightMinor = 0x7f0100c0; public static final int windowFixedWidthMajor = 0x7f0100bf; public static final int windowFixedWidthMinor = 0x7f0100c1; public static final int windowMinWidthMajor = 0x7f0100c3; public static final int windowMinWidthMinor = 0x7f0100c4; public static final int windowNoTitle = 0x7f0100bc; } public static final class bool { public static final int abc_action_bar_embed_tabs = 0x7f090003; public static final int abc_action_bar_embed_tabs_pre_jb = 0x7f090001; public static final int abc_action_bar_expanded_action_views_exclusive = 0x7f090004; public static final int abc_allow_stacked_button_bar = 0x7f090000; public static final int abc_config_actionMenuItemAllCaps = 0x7f090005; public static final int abc_config_allowActionMenuItemTextWithIcon = 0x7f090002; public static final int abc_config_closeDialogWhenTouchOutside = 0x7f090006; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f090007; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark = 0x7f0d0088; public static final int abc_background_cache_hint_selector_material_light = 0x7f0d0089; public static final int abc_color_highlight_material = 0x7f0d008a; public static final int abc_input_method_navigation_guard = 0x7f0d0000; public static final int abc_primary_text_disable_only_material_dark = 0x7f0d008b; public static final int abc_primary_text_disable_only_material_light = 0x7f0d008c; public static final int abc_primary_text_material_dark = 0x7f0d008d; public static final int abc_primary_text_material_light = 0x7f0d008e; public static final int abc_search_url_text = 0x7f0d008f; public static final int abc_search_url_text_normal = 0x7f0d0001; public static final int abc_search_url_text_pressed = 0x7f0d0002; public static final int abc_search_url_text_selected = 0x7f0d0003; public static final int abc_secondary_text_material_dark = 0x7f0d0090; public static final int abc_secondary_text_material_light = 0x7f0d0091; public static final int accent_material_dark = 0x7f0d0004; public static final int accent_material_light = 0x7f0d0005; public static final int background_floating_material_dark = 0x7f0d0006; public static final int background_floating_material_light = 0x7f0d0007; public static final int background_material_dark = 0x7f0d0008; public static final int background_material_light = 0x7f0d0009; public static final int bright_foreground_disabled_material_dark = 0x7f0d000a; public static final int bright_foreground_disabled_material_light = 0x7f0d000b; public static final int bright_foreground_inverse_material_dark = 0x7f0d000c; public static final int bright_foreground_inverse_material_light = 0x7f0d000d; public static final int bright_foreground_material_dark = 0x7f0d000e; public static final int bright_foreground_material_light = 0x7f0d000f; public static final int button_material_dark = 0x7f0d0010; public static final int button_material_light = 0x7f0d0011; public static final int design_fab_shadow_end_color = 0x7f0d0026; public static final int design_fab_shadow_mid_color = 0x7f0d0027; public static final int design_fab_shadow_start_color = 0x7f0d0028; public static final int design_fab_stroke_end_inner_color = 0x7f0d0029; public static final int design_fab_stroke_end_outer_color = 0x7f0d002a; public static final int design_fab_stroke_top_inner_color = 0x7f0d002b; public static final int design_fab_stroke_top_outer_color = 0x7f0d002c; public static final int design_snackbar_background_color = 0x7f0d002d; public static final int design_textinput_error_color = 0x7f0d002e; public static final int dim_foreground_disabled_material_dark = 0x7f0d0035; public static final int dim_foreground_disabled_material_light = 0x7f0d0036; public static final int dim_foreground_material_dark = 0x7f0d0037; public static final int dim_foreground_material_light = 0x7f0d0038; public static final int foreground_material_dark = 0x7f0d0039; public static final int foreground_material_light = 0x7f0d003a; public static final int highlighted_text_material_dark = 0x7f0d003b; public static final int highlighted_text_material_light = 0x7f0d003c; public static final int hint_foreground_material_dark = 0x7f0d003d; public static final int hint_foreground_material_light = 0x7f0d003e; public static final int material_blue_grey_800 = 0x7f0d003f; public static final int material_blue_grey_900 = 0x7f0d0040; public static final int material_blue_grey_950 = 0x7f0d0041; public static final int material_deep_teal_200 = 0x7f0d0042; public static final int material_deep_teal_500 = 0x7f0d0043; public static final int material_grey_100 = 0x7f0d0044; public static final int material_grey_300 = 0x7f0d0045; public static final int material_grey_50 = 0x7f0d0046; public static final int material_grey_600 = 0x7f0d0047; public static final int material_grey_800 = 0x7f0d0048; public static final int material_grey_850 = 0x7f0d0049; public static final int material_grey_900 = 0x7f0d004a; public static final int primary_dark_material_dark = 0x7f0d0051; public static final int primary_dark_material_light = 0x7f0d0052; public static final int primary_material_dark = 0x7f0d0053; public static final int primary_material_light = 0x7f0d0054; public static final int primary_text_default_material_dark = 0x7f0d0055; public static final int primary_text_default_material_light = 0x7f0d0056; public static final int primary_text_disabled_material_dark = 0x7f0d0057; public static final int primary_text_disabled_material_light = 0x7f0d0058; public static final int ripple_material_dark = 0x7f0d0059; public static final int ripple_material_light = 0x7f0d005a; public static final int secondary_text_default_material_dark = 0x7f0d005b; public static final int secondary_text_default_material_light = 0x7f0d005c; public static final int secondary_text_disabled_material_dark = 0x7f0d005d; public static final int secondary_text_disabled_material_light = 0x7f0d005e; public static final int switch_thumb_disabled_material_dark = 0x7f0d005f; public static final int switch_thumb_disabled_material_light = 0x7f0d0060; public static final int switch_thumb_material_dark = 0x7f0d0096; public static final int switch_thumb_material_light = 0x7f0d0097; public static final int switch_thumb_normal_material_dark = 0x7f0d0061; public static final int switch_thumb_normal_material_light = 0x7f0d0062; } public static final class dimen { public static final int abc_action_bar_content_inset_material = 0x7f0a0012; public static final int abc_action_bar_default_height_material = 0x7f0a0006; public static final int abc_action_bar_default_padding_end_material = 0x7f0a0013; public static final int abc_action_bar_default_padding_start_material = 0x7f0a0014; public static final int abc_action_bar_icon_vertical_padding_material = 0x7f0a0021; public static final int abc_action_bar_overflow_padding_end_material = 0x7f0a0022; public static final int abc_action_bar_overflow_padding_start_material = 0x7f0a0023; public static final int abc_action_bar_progress_bar_size = 0x7f0a0007; public static final int abc_action_bar_stacked_max_height = 0x7f0a0024; public static final int abc_action_bar_stacked_tab_max_width = 0x7f0a0025; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f0a0026; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f0a0027; public static final int abc_action_button_min_height_material = 0x7f0a0028; public static final int abc_action_button_min_width_material = 0x7f0a0029; public static final int abc_action_button_min_width_overflow_material = 0x7f0a002a; public static final int abc_alert_dialog_button_bar_height = 0x7f0a0000; public static final int abc_button_inset_horizontal_material = 0x7f0a002b; public static final int abc_button_inset_vertical_material = 0x7f0a002c; public static final int abc_button_padding_horizontal_material = 0x7f0a002d; public static final int abc_button_padding_vertical_material = 0x7f0a002e; public static final int abc_config_prefDialogWidth = 0x7f0a000a; public static final int abc_control_corner_material = 0x7f0a002f; public static final int abc_control_inset_material = 0x7f0a0030; public static final int abc_control_padding_material = 0x7f0a0031; public static final int abc_dialog_fixed_height_major = 0x7f0a000b; public static final int abc_dialog_fixed_height_minor = 0x7f0a000c; public static final int abc_dialog_fixed_width_major = 0x7f0a000d; public static final int abc_dialog_fixed_width_minor = 0x7f0a000e; public static final int abc_dialog_list_padding_vertical_material = 0x7f0a0032; public static final int abc_dialog_min_width_major = 0x7f0a000f; public static final int abc_dialog_min_width_minor = 0x7f0a0010; public static final int abc_dialog_padding_material = 0x7f0a0033; public static final int abc_dialog_padding_top_material = 0x7f0a0034; public static final int abc_disabled_alpha_material_dark = 0x7f0a0035; public static final int abc_disabled_alpha_material_light = 0x7f0a0036; public static final int abc_dropdownitem_icon_width = 0x7f0a0037; public static final int abc_dropdownitem_text_padding_left = 0x7f0a0038; public static final int abc_dropdownitem_text_padding_right = 0x7f0a0039; public static final int abc_edit_text_inset_bottom_material = 0x7f0a003a; public static final int abc_edit_text_inset_horizontal_material = 0x7f0a003b; public static final int abc_edit_text_inset_top_material = 0x7f0a003c; public static final int abc_floating_window_z = 0x7f0a003d; public static final int abc_list_item_padding_horizontal_material = 0x7f0a003e; public static final int abc_panel_menu_list_width = 0x7f0a003f; public static final int abc_search_view_preferred_width = 0x7f0a0040; public static final int abc_search_view_text_min_width = 0x7f0a0011; public static final int abc_seekbar_track_background_height_material = 0x7f0a0041; public static final int abc_seekbar_track_progress_height_material = 0x7f0a0042; public static final int abc_select_dialog_padding_start_material = 0x7f0a0043; public static final int abc_switch_padding = 0x7f0a001e; public static final int abc_text_size_body_1_material = 0x7f0a0044; public static final int abc_text_size_body_2_material = 0x7f0a0045; public static final int abc_text_size_button_material = 0x7f0a0046; public static final int abc_text_size_caption_material = 0x7f0a0047; public static final int abc_text_size_display_1_material = 0x7f0a0048; public static final int abc_text_size_display_2_material = 0x7f0a0049; public static final int abc_text_size_display_3_material = 0x7f0a004a; public static final int abc_text_size_display_4_material = 0x7f0a004b; public static final int abc_text_size_headline_material = 0x7f0a004c; public static final int abc_text_size_large_material = 0x7f0a004d; public static final int abc_text_size_medium_material = 0x7f0a004e; public static final int abc_text_size_menu_material = 0x7f0a004f; public static final int abc_text_size_small_material = 0x7f0a0050; public static final int abc_text_size_subhead_material = 0x7f0a0051; public static final int abc_text_size_subtitle_material_toolbar = 0x7f0a0008; public static final int abc_text_size_title_material = 0x7f0a0052; public static final int abc_text_size_title_material_toolbar = 0x7f0a0009; public static final int design_appbar_elevation = 0x7f0a0054; public static final int design_fab_border_width = 0x7f0a0055; public static final int design_fab_content_size = 0x7f0a0056; public static final int design_fab_elevation = 0x7f0a0057; public static final int design_fab_size_mini = 0x7f0a0058; public static final int design_fab_size_normal = 0x7f0a0059; public static final int design_fab_translation_z_pressed = 0x7f0a005a; public static final int design_navigation_elevation = 0x7f0a005b; public static final int design_navigation_icon_padding = 0x7f0a005c; public static final int design_navigation_icon_size = 0x7f0a005d; public static final int design_navigation_max_width = 0x7f0a005e; public static final int design_navigation_padding_bottom = 0x7f0a005f; public static final int design_navigation_padding_top_default = 0x7f0a001f; public static final int design_navigation_separator_vertical_padding = 0x7f0a0060; public static final int design_snackbar_action_inline_max_width = 0x7f0a0015; public static final int design_snackbar_background_corner_radius = 0x7f0a0016; public static final int design_snackbar_elevation = 0x7f0a0061; public static final int design_snackbar_extra_spacing_horizontal = 0x7f0a0017; public static final int design_snackbar_max_width = 0x7f0a0018; public static final int design_snackbar_min_width = 0x7f0a0019; public static final int design_snackbar_padding_horizontal = 0x7f0a0062; public static final int design_snackbar_padding_vertical = 0x7f0a0063; public static final int design_snackbar_padding_vertical_2lines = 0x7f0a001a; public static final int design_snackbar_text_size = 0x7f0a0064; public static final int design_tab_max_width = 0x7f0a0065; public static final int design_tab_scrollable_min_width = 0x7f0a001b; public static final int design_tab_text_size = 0x7f0a0066; public static final int design_tab_text_size_2line = 0x7f0a0067; public static final int disabled_alpha_material_dark = 0x7f0a0073; public static final int disabled_alpha_material_light = 0x7f0a0074; public static final int highlight_alpha_material_colored = 0x7f0a0076; public static final int highlight_alpha_material_dark = 0x7f0a0077; public static final int highlight_alpha_material_light = 0x7f0a0078; public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f0a0079; public static final int notification_large_icon_height = 0x7f0a007a; public static final int notification_large_icon_width = 0x7f0a007b; public static final int notification_subtext_size = 0x7f0a007c; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha = 0x7f020000; public static final int abc_action_bar_item_background_material = 0x7f020001; public static final int abc_btn_borderless_material = 0x7f020002; public static final int abc_btn_check_material = 0x7f020003; public static final int abc_btn_check_to_on_mtrl_000 = 0x7f020004; public static final int abc_btn_check_to_on_mtrl_015 = 0x7f020005; public static final int abc_btn_colored_material = 0x7f020006; public static final int abc_btn_default_mtrl_shape = 0x7f020007; public static final int abc_btn_radio_material = 0x7f020008; public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f020009; public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a; public static final int abc_btn_rating_star_off_mtrl_alpha = 0x7f02000b; public static final int abc_btn_rating_star_on_mtrl_alpha = 0x7f02000c; public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000d; public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000e; public static final int abc_cab_background_internal_bg = 0x7f02000f; public static final int abc_cab_background_top_material = 0x7f020010; public static final int abc_cab_background_top_mtrl_alpha = 0x7f020011; public static final int abc_control_background_material = 0x7f020012; public static final int abc_dialog_material_background_dark = 0x7f020013; public static final int abc_dialog_material_background_light = 0x7f020014; public static final int abc_edit_text_material = 0x7f020015; public static final int abc_ic_ab_back_mtrl_am_alpha = 0x7f020016; public static final int abc_ic_clear_mtrl_alpha = 0x7f020017; public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f020018; public static final int abc_ic_go_search_api_mtrl_alpha = 0x7f020019; public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f02001a; public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f02001b; public static final int abc_ic_menu_moreoverflow_mtrl_alpha = 0x7f02001c; public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001d; public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001e; public static final int abc_ic_menu_share_mtrl_alpha = 0x7f02001f; public static final int abc_ic_search_api_mtrl_alpha = 0x7f020020; public static final int abc_ic_voice_search_api_mtrl_alpha = 0x7f020021; public static final int abc_item_background_holo_dark = 0x7f020022; public static final int abc_item_background_holo_light = 0x7f020023; public static final int abc_list_divider_mtrl_alpha = 0x7f020024; public static final int abc_list_focused_holo = 0x7f020025; public static final int abc_list_longpressed_holo = 0x7f020026; public static final int abc_list_pressed_holo_dark = 0x7f020027; public static final int abc_list_pressed_holo_light = 0x7f020028; public static final int abc_list_selector_background_transition_holo_dark = 0x7f020029; public static final int abc_list_selector_background_transition_holo_light = 0x7f02002a; public static final int abc_list_selector_disabled_holo_dark = 0x7f02002b; public static final int abc_list_selector_disabled_holo_light = 0x7f02002c; public static final int abc_list_selector_holo_dark = 0x7f02002d; public static final int abc_list_selector_holo_light = 0x7f02002e; public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f02002f; public static final int abc_popup_background_mtrl_mult = 0x7f020030; public static final int abc_ratingbar_full_material = 0x7f020031; public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f020032; public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020033; public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f020034; public static final int abc_scrubber_primary_mtrl_alpha = 0x7f020035; public static final int abc_scrubber_track_mtrl_alpha = 0x7f020036; public static final int abc_seekbar_thumb_material = 0x7f020037; public static final int abc_seekbar_track_material = 0x7f020038; public static final int abc_spinner_mtrl_am_alpha = 0x7f020039; public static final int abc_spinner_textfield_background_material = 0x7f02003a; public static final int abc_switch_thumb_material = 0x7f02003b; public static final int abc_switch_track_mtrl_alpha = 0x7f02003c; public static final int abc_tab_indicator_material = 0x7f02003d; public static final int abc_tab_indicator_mtrl_alpha = 0x7f02003e; public static final int abc_text_cursor_material = 0x7f02003f; public static final int abc_textfield_activated_mtrl_alpha = 0x7f020040; public static final int abc_textfield_default_mtrl_alpha = 0x7f020041; public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f020042; public static final int abc_textfield_search_default_mtrl_alpha = 0x7f020043; public static final int abc_textfield_search_material = 0x7f020044; public static final int design_fab_background = 0x7f020074; public static final int design_snackbar_background = 0x7f020075; public static final int notification_template_icon_bg = 0x7f020119; } public static final class id { public static final int action0 = 0x7f0e00e1; public static final int action_bar = 0x7f0e0083; public static final int action_bar_activity_content = 0x7f0e0000; public static final int action_bar_container = 0x7f0e0082; public static final int action_bar_root = 0x7f0e007e; public static final int action_bar_spinner = 0x7f0e0001; public static final int action_bar_subtitle = 0x7f0e0064; public static final int action_bar_title = 0x7f0e0063; public static final int action_context_bar = 0x7f0e0084; public static final int action_divider = 0x7f0e00e5; public static final int action_menu_divider = 0x7f0e0002; public static final int action_menu_presenter = 0x7f0e0003; public static final int action_mode_bar = 0x7f0e0080; public static final int action_mode_bar_stub = 0x7f0e007f; public static final int action_mode_close_button = 0x7f0e0065; public static final int activity_chooser_view_content = 0x7f0e0066; public static final int alertTitle = 0x7f0e0072; public static final int always = 0x7f0e0039; public static final int beginning = 0x7f0e0032; public static final int bottom = 0x7f0e001d; public static final int buttonPanel = 0x7f0e006d; public static final int cancel_action = 0x7f0e00e2; public static final int center = 0x7f0e001e; public static final int center_horizontal = 0x7f0e001f; public static final int center_vertical = 0x7f0e0020; public static final int checkbox = 0x7f0e007b; public static final int chronometer = 0x7f0e00e8; public static final int clip_horizontal = 0x7f0e002c; public static final int clip_vertical = 0x7f0e002d; public static final int collapseActionView = 0x7f0e003a; public static final int contentPanel = 0x7f0e0073; public static final int custom = 0x7f0e0079; public static final int customPanel = 0x7f0e0078; public static final int decor_content_parent = 0x7f0e0081; public static final int default_activity_button = 0x7f0e0069; public static final int design_menu_item_action_area = 0x7f0e00aa; public static final int design_menu_item_action_area_stub = 0x7f0e00a9; public static final int design_menu_item_text = 0x7f0e00a8; public static final int design_navigation_view = 0x7f0e00a7; public static final int disableHome = 0x7f0e000f; public static final int edit_query = 0x7f0e0085; public static final int end = 0x7f0e0021; public static final int end_padder = 0x7f0e00ed; public static final int enterAlways = 0x7f0e0016; public static final int enterAlwaysCollapsed = 0x7f0e0017; public static final int exitUntilCollapsed = 0x7f0e0018; public static final int expand_activities_button = 0x7f0e0067; public static final int expanded_menu = 0x7f0e007a; public static final int fill = 0x7f0e002e; public static final int fill_horizontal = 0x7f0e002f; public static final int fill_vertical = 0x7f0e0022; public static final int fixed = 0x7f0e0044; public static final int home = 0x7f0e0005; public static final int homeAsUp = 0x7f0e0010; public static final int icon = 0x7f0e006b; public static final int ifRoom = 0x7f0e003b; public static final int image = 0x7f0e0068; public static final int info = 0x7f0e00ec; public static final int item_touch_helper_previous_elevation = 0x7f0e0006; public static final int left = 0x7f0e0023; public static final int line1 = 0x7f0e00e6; public static final int line3 = 0x7f0e00ea; public static final int listMode = 0x7f0e000c; public static final int list_item = 0x7f0e006a; public static final int media_actions = 0x7f0e00e4; public static final int middle = 0x7f0e0033; public static final int mini = 0x7f0e0031; public static final int multiply = 0x7f0e0027; public static final int navigation_header_container = 0x7f0e00a6; public static final int never = 0x7f0e003c; public static final int none = 0x7f0e0011; public static final int normal = 0x7f0e000d; public static final int parallax = 0x7f0e001b; public static final int parentPanel = 0x7f0e006f; public static final int pin = 0x7f0e001c; public static final int progress_circular = 0x7f0e0007; public static final int progress_horizontal = 0x7f0e0008; public static final int radio = 0x7f0e007d; public static final int right = 0x7f0e0024; public static final int screen = 0x7f0e0028; public static final int scroll = 0x7f0e0019; public static final int scrollIndicatorDown = 0x7f0e0077; public static final int scrollIndicatorUp = 0x7f0e0074; public static final int scrollView = 0x7f0e0075; public static final int scrollable = 0x7f0e0045; public static final int search_badge = 0x7f0e0087; public static final int search_bar = 0x7f0e0086; public static final int search_button = 0x7f0e0088; public static final int search_close_btn = 0x7f0e008d; public static final int search_edit_frame = 0x7f0e0089; public static final int search_go_btn = 0x7f0e008f; public static final int search_mag_icon = 0x7f0e008a; public static final int search_plate = 0x7f0e008b; public static final int search_src_text = 0x7f0e008c; public static final int search_voice_btn = 0x7f0e0090; public static final int select_dialog_listview = 0x7f0e0091; public static final int shortcut = 0x7f0e007c; public static final int showCustom = 0x7f0e0012; public static final int showHome = 0x7f0e0013; public static final int showTitle = 0x7f0e0014; public static final int snackbar_action = 0x7f0e00a5; public static final int snackbar_text = 0x7f0e00a4; public static final int snap = 0x7f0e001a; public static final int spacer = 0x7f0e006e; public static final int split_action_bar = 0x7f0e0009; public static final int src_atop = 0x7f0e0029; public static final int src_in = 0x7f0e002a; public static final int src_over = 0x7f0e002b; public static final int start = 0x7f0e0025; public static final int status_bar_latest_event_content = 0x7f0e00e3; public static final int submit_area = 0x7f0e008e; public static final int tabMode = 0x7f0e000e; public static final int text = 0x7f0e00eb; public static final int text2 = 0x7f0e00e9; public static final int textSpacerNoButtons = 0x7f0e0076; public static final int time = 0x7f0e00e7; public static final int title = 0x7f0e006c; public static final int title_template = 0x7f0e0071; public static final int top = 0x7f0e0026; public static final int topPanel = 0x7f0e0070; public static final int up = 0x7f0e000a; public static final int useLogo = 0x7f0e0015; public static final int view_offset_helper = 0x7f0e000b; public static final int withText = 0x7f0e003d; public static final int wrap_content = 0x7f0e0046; } public static final class integer { public static final int abc_config_activityDefaultDur = 0x7f0c0002; public static final int abc_config_activityShortDur = 0x7f0c0003; public static final int abc_max_action_buttons = 0x7f0c0000; public static final int cancel_button_image_alpha = 0x7f0c0004; public static final int design_snackbar_text_max_lines = 0x7f0c0001; public static final int status_bar_notification_info_maxnum = 0x7f0c0006; } public static final class layout { public static final int abc_action_bar_title_item = 0x7f040000; public static final int abc_action_bar_up_container = 0x7f040001; public static final int abc_action_bar_view_list_nav_layout = 0x7f040002; public static final int abc_action_menu_item_layout = 0x7f040003; public static final int abc_action_menu_layout = 0x7f040004; public static final int abc_action_mode_bar = 0x7f040005; public static final int abc_action_mode_close_item_material = 0x7f040006; public static final int abc_activity_chooser_view = 0x7f040007; public static final int abc_activity_chooser_view_list_item = 0x7f040008; public static final int abc_alert_dialog_button_bar_material = 0x7f040009; public static final int abc_alert_dialog_material = 0x7f04000a; public static final int abc_dialog_title_material = 0x7f04000b; public static final int abc_expanded_menu_layout = 0x7f04000c; public static final int abc_list_menu_item_checkbox = 0x7f04000d; public static final int abc_list_menu_item_icon = 0x7f04000e; public static final int abc_list_menu_item_layout = 0x7f04000f; public static final int abc_list_menu_item_radio = 0x7f040010; public static final int abc_popup_menu_item_layout = 0x7f040011; public static final int abc_screen_content_include = 0x7f040012; public static final int abc_screen_simple = 0x7f040013; public static final int abc_screen_simple_overlay_action_mode = 0x7f040014; public static final int abc_screen_toolbar = 0x7f040015; public static final int abc_search_dropdown_item_icons_2line = 0x7f040016; public static final int abc_search_view = 0x7f040017; public static final int abc_select_dialog_material = 0x7f040018; public static final int design_layout_snackbar = 0x7f04001d; public static final int design_layout_snackbar_include = 0x7f04001e; public static final int design_layout_tab_icon = 0x7f04001f; public static final int design_layout_tab_text = 0x7f040020; public static final int design_menu_item_action_area = 0x7f040021; public static final int design_navigation_item = 0x7f040022; public static final int design_navigation_item_header = 0x7f040023; public static final int design_navigation_item_separator = 0x7f040024; public static final int design_navigation_item_subheader = 0x7f040025; public static final int design_navigation_menu = 0x7f040026; public static final int design_navigation_menu_item = 0x7f040027; public static final int notification_media_action = 0x7f040034; public static final int notification_media_cancel_action = 0x7f040035; public static final int notification_template_big_media = 0x7f040036; public static final int notification_template_big_media_narrow = 0x7f040037; public static final int notification_template_lines = 0x7f040038; public static final int notification_template_media = 0x7f040039; public static final int notification_template_part_chronometer = 0x7f04003a; public static final int notification_template_part_time = 0x7f04003b; public static final int select_dialog_item_material = 0x7f040040; public static final int select_dialog_multichoice_material = 0x7f040041; public static final int select_dialog_singlechoice_material = 0x7f040042; public static final int support_simple_spinner_dropdown_item = 0x7f040043; } public static final class string { public static final int abc_action_bar_home_description = 0x7f070000; public static final int abc_action_bar_home_description_format = 0x7f070001; public static final int abc_action_bar_home_subtitle_description_format = 0x7f070002; public static final int abc_action_bar_up_description = 0x7f070003; public static final int abc_action_menu_overflow_description = 0x7f070004; public static final int abc_action_mode_done = 0x7f070005; public static final int abc_activity_chooser_view_see_all = 0x7f070006; public static final int abc_activitychooserview_choose_application = 0x7f070007; public static final int abc_capital_off = 0x7f070008; public static final int abc_capital_on = 0x7f070009; public static final int abc_search_hint = 0x7f07000a; public static final int abc_searchview_description_clear = 0x7f07000b; public static final int abc_searchview_description_query = 0x7f07000c; public static final int abc_searchview_description_search = 0x7f07000d; public static final int abc_searchview_description_submit = 0x7f07000e; public static final int abc_searchview_description_voice = 0x7f07000f; public static final int abc_shareactionprovider_share_with = 0x7f070010; public static final int abc_shareactionprovider_share_with_application = 0x7f070011; public static final int abc_toolbar_collapse_description = 0x7f070012; public static final int appbar_scrolling_view_behavior = 0x7f07007d; public static final int character_counter_pattern = 0x7f070083; public static final int status_bar_notification_info_overflow = 0x7f07003d; } public static final class style { public static final int AlertDialog_AppCompat = 0x7f0b0085; public static final int AlertDialog_AppCompat_Light = 0x7f0b0086; public static final int Animation_AppCompat_Dialog = 0x7f0b0087; public static final int Animation_AppCompat_DropDownUp = 0x7f0b0088; public static final int Base_AlertDialog_AppCompat = 0x7f0b008c; public static final int Base_AlertDialog_AppCompat_Light = 0x7f0b008d; public static final int Base_Animation_AppCompat_Dialog = 0x7f0b008e; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0b008f; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0b0091; public static final int Base_DialogWindowTitle_AppCompat = 0x7f0b0090; public static final int Base_TextAppearance_AppCompat = 0x7f0b0037; public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0b0038; public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0b0039; public static final int Base_TextAppearance_AppCompat_Button = 0x7f0b001f; public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0b003a; public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0b003b; public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0b003c; public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0b003d; public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0b003e; public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0b003f; public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0b0005; public static final int Base_TextAppearance_AppCompat_Large = 0x7f0b0040; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0b0006; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0b0041; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0b0042; public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0b0043; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0b0007; public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0b0044; public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0b0092; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0b0045; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0b0046; public static final int Base_TextAppearance_AppCompat_Small = 0x7f0b0047; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0b0008; public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0b0048; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0b0009; public static final int Base_TextAppearance_AppCompat_Title = 0x7f0b0049; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0b000a; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0b004a; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0b004b; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0b004c; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0b004d; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0b004e; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0b004f; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0b0050; public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0b0051; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0b0081; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0b0093; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0b0052; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0b0053; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0b0054; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0b0055; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0b0094; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0b0056; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0b0057; public static final int Base_ThemeOverlay_AppCompat = 0x7f0b009d; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0b009e; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0b009f; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0b00a0; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0b00a1; public static final int Base_Theme_AppCompat = 0x7f0b0058; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0b0095; public static final int Base_Theme_AppCompat_Dialog = 0x7f0b000b; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0b0002; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0b0096; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0b0097; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0b0098; public static final int Base_Theme_AppCompat_Light = 0x7f0b0059; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0b0099; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0b000c; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0b0003; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0b009a; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0b009b; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0b009c; public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f0b000d; public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f0b000e; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f0b001b; public static final int Base_V12_Widget_AppCompat_EditText = 0x7f0b001c; public static final int Base_V21_Theme_AppCompat = 0x7f0b005a; public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0b005b; public static final int Base_V21_Theme_AppCompat_Light = 0x7f0b005c; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0b005d; public static final int Base_V22_Theme_AppCompat = 0x7f0b007f; public static final int Base_V22_Theme_AppCompat_Light = 0x7f0b0080; public static final int Base_V23_Theme_AppCompat = 0x7f0b0082; public static final int Base_V23_Theme_AppCompat_Light = 0x7f0b0083; public static final int Base_V7_Theme_AppCompat = 0x7f0b00a2; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0b00a3; public static final int Base_V7_Theme_AppCompat_Light = 0x7f0b00a4; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0b00a5; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0b00a6; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0b00a7; public static final int Base_Widget_AppCompat_ActionBar = 0x7f0b00a8; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0b00a9; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0b00aa; public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0b005e; public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0b005f; public static final int Base_Widget_AppCompat_ActionButton = 0x7f0b0060; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0b0061; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0b0062; public static final int Base_Widget_AppCompat_ActionMode = 0x7f0b00ab; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0b00ac; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0b001d; public static final int Base_Widget_AppCompat_Button = 0x7f0b0063; public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0b0067; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0b00ae; public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0b0064; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0b0065; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0b00ad; public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0b0084; public static final int Base_Widget_AppCompat_Button_Small = 0x7f0b0066; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0b0068; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0b0069; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0b00af; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0b0000; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0b00b0; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0b006a; public static final int Base_Widget_AppCompat_EditText = 0x7f0b001e; public static final int Base_Widget_AppCompat_ImageButton = 0x7f0b006b; public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0b00b1; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0b00b2; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0b00b3; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0b006c; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0b006d; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0b006e; public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0b006f; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0b0070; public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0b0071; public static final int Base_Widget_AppCompat_ListView = 0x7f0b0072; public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0b0073; public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0b0074; public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0b0075; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0b0076; public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0b00b4; public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0b000f; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0b0010; public static final int Base_Widget_AppCompat_RatingBar = 0x7f0b0077; public static final int Base_Widget_AppCompat_SearchView = 0x7f0b00b5; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0b00b6; public static final int Base_Widget_AppCompat_SeekBar = 0x7f0b0078; public static final int Base_Widget_AppCompat_Spinner = 0x7f0b0079; public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0b0004; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0b007a; public static final int Base_Widget_AppCompat_Toolbar = 0x7f0b00b7; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0b007b; public static final int Base_Widget_Design_TabLayout = 0x7f0b00b8; public static final int Platform_AppCompat = 0x7f0b0015; public static final int Platform_AppCompat_Light = 0x7f0b0016; public static final int Platform_ThemeOverlay_AppCompat = 0x7f0b007c; public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0b007d; public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0b007e; public static final int Platform_V11_AppCompat = 0x7f0b0017; public static final int Platform_V11_AppCompat_Light = 0x7f0b0018; public static final int Platform_V14_AppCompat = 0x7f0b0020; public static final int Platform_V14_AppCompat_Light = 0x7f0b0021; public static final int Platform_Widget_AppCompat_Spinner = 0x7f0b0019; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0b0028; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0b0029; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0b002a; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0b002b; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0b002c; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0b002d; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0b0033; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0b002e; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0b002f; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0b0030; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0b0031; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0b0032; public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0b0034; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0b0035; public static final int TextAppearance_AppCompat = 0x7f0b00b9; public static final int TextAppearance_AppCompat_Body1 = 0x7f0b00ba; public static final int TextAppearance_AppCompat_Body2 = 0x7f0b00bb; public static final int TextAppearance_AppCompat_Button = 0x7f0b00bc; public static final int TextAppearance_AppCompat_Caption = 0x7f0b00bd; public static final int TextAppearance_AppCompat_Display1 = 0x7f0b00be; public static final int TextAppearance_AppCompat_Display2 = 0x7f0b00bf; public static final int TextAppearance_AppCompat_Display3 = 0x7f0b00c0; public static final int TextAppearance_AppCompat_Display4 = 0x7f0b00c1; public static final int TextAppearance_AppCompat_Headline = 0x7f0b00c2; public static final int TextAppearance_AppCompat_Inverse = 0x7f0b00c3; public static final int TextAppearance_AppCompat_Large = 0x7f0b00c4; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0b00c5; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0b00c6; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0b00c7; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0b00c8; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0b00c9; public static final int TextAppearance_AppCompat_Medium = 0x7f0b00ca; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0b00cb; public static final int TextAppearance_AppCompat_Menu = 0x7f0b00cc; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0b00cd; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0b00ce; public static final int TextAppearance_AppCompat_Small = 0x7f0b00cf; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0b00d0; public static final int TextAppearance_AppCompat_Subhead = 0x7f0b00d1; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0b00d2; public static final int TextAppearance_AppCompat_Title = 0x7f0b00d3; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0b00d4; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0b00d5; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0b00d6; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0b00d7; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0b00d8; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0b00d9; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0b00da; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0b00db; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0b00dc; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0b00dd; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0b00de; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0b00df; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0b00e0; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0b00e1; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0b00e2; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0b00e3; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0b00e4; public static final int TextAppearance_Design_CollapsingToolbar_Expanded = 0x7f0b00e5; public static final int TextAppearance_Design_Counter = 0x7f0b00e6; public static final int TextAppearance_Design_Counter_Overflow = 0x7f0b00e7; public static final int TextAppearance_Design_Error = 0x7f0b00e8; public static final int TextAppearance_Design_Hint = 0x7f0b00e9; public static final int TextAppearance_Design_Snackbar_Message = 0x7f0b00ea; public static final int TextAppearance_Design_Tab = 0x7f0b00eb; public static final int TextAppearance_StatusBar_EventContent = 0x7f0b0022; public static final int TextAppearance_StatusBar_EventContent_Info = 0x7f0b0023; public static final int TextAppearance_StatusBar_EventContent_Line2 = 0x7f0b0024; public static final int TextAppearance_StatusBar_EventContent_Time = 0x7f0b0025; public static final int TextAppearance_StatusBar_EventContent_Title = 0x7f0b0026; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0b00ec; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0b00ed; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0b00ee; public static final int ThemeOverlay_AppCompat = 0x7f0b0101; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0b0102; public static final int ThemeOverlay_AppCompat_Dark = 0x7f0b0103; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0b0104; public static final int ThemeOverlay_AppCompat_Light = 0x7f0b0105; public static final int Theme_AppCompat = 0x7f0b00ef; public static final int Theme_AppCompat_CompactMenu = 0x7f0b00f0; public static final int Theme_AppCompat_Dialog = 0x7f0b00f1; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0b00f4; public static final int Theme_AppCompat_Dialog_Alert = 0x7f0b00f2; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0b00f3; public static final int Theme_AppCompat_Light = 0x7f0b00f5; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0b00f6; public static final int Theme_AppCompat_Light_Dialog = 0x7f0b00f7; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0b00fa; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0b00f8; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0b00f9; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0b00fb; public static final int Theme_AppCompat_NoActionBar = 0x7f0b00fc; public static final int Widget_AppCompat_ActionBar = 0x7f0b010a; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0b010b; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0b010c; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0b010d; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0b010e; public static final int Widget_AppCompat_ActionButton = 0x7f0b010f; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0b0110; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0b0111; public static final int Widget_AppCompat_ActionMode = 0x7f0b0112; public static final int Widget_AppCompat_ActivityChooserView = 0x7f0b0113; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0b0114; public static final int Widget_AppCompat_Button = 0x7f0b0115; public static final int Widget_AppCompat_ButtonBar = 0x7f0b011b; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0b011c; public static final int Widget_AppCompat_Button_Borderless = 0x7f0b0116; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0b0117; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0b0118; public static final int Widget_AppCompat_Button_Colored = 0x7f0b0119; public static final int Widget_AppCompat_Button_Small = 0x7f0b011a; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0b011d; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0b011e; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0b011f; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0b0120; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0b0121; public static final int Widget_AppCompat_EditText = 0x7f0b0122; public static final int Widget_AppCompat_ImageButton = 0x7f0b0123; public static final int Widget_AppCompat_Light_ActionBar = 0x7f0b0124; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0b0125; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0b0126; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0b0127; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0b0128; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0b0129; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0b012a; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0b012b; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0b012c; public static final int Widget_AppCompat_Light_ActionButton = 0x7f0b012d; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0b012e; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0b012f; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0b0130; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0b0131; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0b0132; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0b0133; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0b0134; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0b0135; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0b0136; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0b0137; public static final int Widget_AppCompat_Light_SearchView = 0x7f0b0138; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0b0139; public static final int Widget_AppCompat_ListPopupWindow = 0x7f0b013a; public static final int Widget_AppCompat_ListView = 0x7f0b013b; public static final int Widget_AppCompat_ListView_DropDown = 0x7f0b013c; public static final int Widget_AppCompat_ListView_Menu = 0x7f0b013d; public static final int Widget_AppCompat_PopupMenu = 0x7f0b013e; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0b013f; public static final int Widget_AppCompat_PopupWindow = 0x7f0b0140; public static final int Widget_AppCompat_ProgressBar = 0x7f0b0141; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0b0142; public static final int Widget_AppCompat_RatingBar = 0x7f0b0143; public static final int Widget_AppCompat_SearchView = 0x7f0b0144; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0b0145; public static final int Widget_AppCompat_SeekBar = 0x7f0b0146; public static final int Widget_AppCompat_Spinner = 0x7f0b0147; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0b0148; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0b0149; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0b014a; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0b014b; public static final int Widget_AppCompat_Toolbar = 0x7f0b014c; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0b014d; public static final int Widget_Design_AppBarLayout = 0x7f0b014e; public static final int Widget_Design_CollapsingToolbar = 0x7f0b014f; public static final int Widget_Design_CoordinatorLayout = 0x7f0b0150; public static final int Widget_Design_FloatingActionButton = 0x7f0b0151; public static final int Widget_Design_NavigationView = 0x7f0b0152; public static final int Widget_Design_ScrimInsetsFrameLayout = 0x7f0b0153; public static final int Widget_Design_Snackbar = 0x7f0b0154; public static final int Widget_Design_TabLayout = 0x7f0b0001; public static final int Widget_Design_TextInputLayout = 0x7f0b0155; } public static final class styleable { public static final int[] ActionBar = { 0x7f010003, 0x7f01000d, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026, 0x7f0100e9 }; public static final int[] ActionBarLayout = { 0x010100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int ActionBar_background = 10; public static final int ActionBar_backgroundSplit = 12; public static final int ActionBar_backgroundStacked = 11; public static final int ActionBar_contentInsetEnd = 21; public static final int ActionBar_contentInsetLeft = 22; public static final int ActionBar_contentInsetRight = 23; public static final int ActionBar_contentInsetStart = 20; public static final int ActionBar_customNavigationLayout = 13; public static final int ActionBar_displayOptions = 3; public static final int ActionBar_divider = 9; public static final int ActionBar_elevation = 24; public static final int ActionBar_height = 0; public static final int ActionBar_hideOnContentScroll = 19; public static final int ActionBar_homeAsUpIndicator = 26; public static final int ActionBar_homeLayout = 14; public static final int ActionBar_icon = 7; public static final int ActionBar_indeterminateProgressStyle = 16; public static final int ActionBar_itemPadding = 18; public static final int ActionBar_logo = 8; public static final int ActionBar_navigationMode = 2; public static final int ActionBar_popupTheme = 25; public static final int ActionBar_progressBarPadding = 17; public static final int ActionBar_progressBarStyle = 15; public static final int ActionBar_subtitle = 4; public static final int ActionBar_subtitleTextStyle = 6; public static final int ActionBar_title = 1; public static final int ActionBar_titleTextStyle = 5; public static final int[] ActionMenuItemView = { 0x0101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f010003, 0x7f010012, 0x7f010013, 0x7f010017, 0x7f010019, 0x7f010027 }; public static final int ActionMode_background = 3; public static final int ActionMode_backgroundSplit = 4; public static final int ActionMode_closeItemLayout = 5; public static final int ActionMode_height = 0; public static final int ActionMode_subtitleTextStyle = 2; public static final int ActionMode_titleTextStyle = 1; public static final int[] ActivityChooserView = { 0x7f010028, 0x7f010029 }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; public static final int ActivityChooserView_initialActivityCount = 0; public static final int[] AlertDialog = { 0x010100f2, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031 }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonPanelSideLayout = 1; public static final int AlertDialog_listItemLayout = 5; public static final int AlertDialog_listLayout = 2; public static final int AlertDialog_multiChoiceItemLayout = 3; public static final int AlertDialog_singleChoiceItemLayout = 4; public static final int[] AppBarLayout = { 0x010100d4, 0x7f010025, 0x7f010032 }; public static final int[] AppBarLayout_LayoutParams = { 0x7f010033, 0x7f010034 }; public static final int AppBarLayout_LayoutParams_layout_scrollFlags = 0; public static final int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1; public static final int AppBarLayout_android_background = 0; public static final int AppBarLayout_elevation = 1; public static final int AppBarLayout_expanded = 2; public static final int[] AppCompatTextView = { 0x01010034, 0x7f010035 }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_textAllCaps = 1; public static final int[] ButtonBarLayout = { 0x7f010036 }; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] CollapsingAppBarLayout_LayoutParams = { 0x7f010037, 0x7f010038 }; public static final int CollapsingAppBarLayout_LayoutParams_layout_collapseMode = 0; public static final int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1; public static final int[] CollapsingToolbarLayout = { 0x7f01000d, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045 }; public static final int CollapsingToolbarLayout_collapsedTitleGravity = 11; public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7; public static final int CollapsingToolbarLayout_contentScrim = 8; public static final int CollapsingToolbarLayout_expandedTitleGravity = 12; public static final int CollapsingToolbarLayout_expandedTitleMargin = 1; public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5; public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 4; public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 2; public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 3; public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 6; public static final int CollapsingToolbarLayout_statusBarScrim = 9; public static final int CollapsingToolbarLayout_title = 0; public static final int CollapsingToolbarLayout_titleEnabled = 13; public static final int CollapsingToolbarLayout_toolbarId = 10; public static final int[] CompoundButton = { 0x01010107, 0x7f010046, 0x7f010047 }; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonTint = 1; public static final int CompoundButton_buttonTintMode = 2; public static final int[] CoordinatorLayout = { 0x7f010048, 0x7f010049 }; public static final int[] CoordinatorLayout_LayoutParams = { 0x010100b3, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d }; public static final int CoordinatorLayout_LayoutParams_android_layout_gravity = 0; public static final int CoordinatorLayout_LayoutParams_layout_anchor = 2; public static final int CoordinatorLayout_LayoutParams_layout_anchorGravity = 4; public static final int CoordinatorLayout_LayoutParams_layout_behavior = 1; public static final int CoordinatorLayout_LayoutParams_layout_keyline = 3; public static final int CoordinatorLayout_keylines = 0; public static final int CoordinatorLayout_statusBarBackground = 1; public static final int[] DrawerArrowToggle = { 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056 }; public static final int DrawerArrowToggle_arrowHeadLength = 4; public static final int DrawerArrowToggle_arrowShaftLength = 5; public static final int DrawerArrowToggle_barLength = 6; public static final int DrawerArrowToggle_color = 0; public static final int DrawerArrowToggle_drawableSize = 2; public static final int DrawerArrowToggle_gapBetweenBars = 3; public static final int DrawerArrowToggle_spinBars = 1; public static final int DrawerArrowToggle_thickness = 7; public static final int[] FloatingActionButton = { 0x7f010025, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01013d, 0x7f01013e }; public static final int FloatingActionButton_backgroundTint = 5; public static final int FloatingActionButton_backgroundTintMode = 6; public static final int FloatingActionButton_borderWidth = 4; public static final int FloatingActionButton_elevation = 0; public static final int FloatingActionButton_fabSize = 2; public static final int FloatingActionButton_pressedTranslationZ = 3; public static final int FloatingActionButton_rippleColor = 1; public static final int[] ForegroundLinearLayout = { 0x01010109, 0x01010200, 0x7f01005b }; public static final int ForegroundLinearLayout_android_foreground = 0; public static final int ForegroundLinearLayout_android_foregroundGravity = 1; public static final int ForegroundLinearLayout_foregroundInsidePadding = 2; public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f010016, 0x7f01005c, 0x7f01005d, 0x7f01005e }; public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 8; public static final int LinearLayoutCompat_measureWithLargestChild = 6; public static final int LinearLayoutCompat_showDividers = 7; public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static final int MenuGroup_android_checkableBehavior = 5; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_visible = 2; public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077 }; public static final int MenuItem_actionLayout = 14; public static final int MenuItem_actionProviderClass = 16; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_android_alphabeticShortcut = 9; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_android_orderInCategory = 6; public static final int MenuItem_android_title = 7; public static final int MenuItem_android_titleCondensed = 8; public static final int MenuItem_android_visible = 4; public static final int MenuItem_showAsAction = 13; public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f010078 }; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_preserveIconSpacing = 7; public static final int[] NavigationView = { 0x010100d4, 0x010100dd, 0x0101011f, 0x7f010025, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e }; public static final int NavigationView_android_background = 0; public static final int NavigationView_android_fitsSystemWindows = 1; public static final int NavigationView_android_maxWidth = 2; public static final int NavigationView_elevation = 3; public static final int NavigationView_headerLayout = 9; public static final int NavigationView_itemBackground = 7; public static final int NavigationView_itemIconTint = 5; public static final int NavigationView_itemTextAppearance = 8; public static final int NavigationView_itemTextColor = 6; public static final int NavigationView_menu = 4; public static final int[] PopupWindow = { 0x01010176, 0x7f01007f }; public static final int[] PopupWindowBackgroundState = { 0x7f010080 }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_overlapAnchor = 1; public static final int[] RecyclerView = { 0x010100c4, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084 }; public static final int RecyclerView_android_orientation = 0; public static final int RecyclerView_layoutManager = 1; public static final int RecyclerView_reverseLayout = 3; public static final int RecyclerView_spanCount = 2; public static final int RecyclerView_stackFromEnd = 4; public static final int[] ScrimInsetsFrameLayout = { 0x7f010085 }; public static final int ScrimInsetsFrameLayout_insetForeground = 0; public static final int[] ScrollingViewBehavior_Params = { 0x7f010086 }; public static final int ScrollingViewBehavior_Params_behavior_overlapTop = 0; public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093 }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_closeIcon = 8; public static final int SearchView_commitIcon = 13; public static final int SearchView_defaultQueryHint = 7; public static final int SearchView_goIcon = 9; public static final int SearchView_iconifiedByDefault = 5; public static final int SearchView_layout = 4; public static final int SearchView_queryBackground = 15; public static final int SearchView_queryHint = 6; public static final int SearchView_searchHintIcon = 11; public static final int SearchView_searchIcon = 10; public static final int SearchView_submitBackground = 16; public static final int SearchView_suggestionRowLayout = 14; public static final int SearchView_voiceIcon = 12; public static final int[] SnackbarLayout = { 0x0101011f, 0x7f010025, 0x7f010097 }; public static final int SnackbarLayout_android_maxWidth = 0; public static final int SnackbarLayout_elevation = 1; public static final int SnackbarLayout_maxActionInlineWidth = 2; public static final int[] Spinner = { 0x01010176, 0x0101017b, 0x01010262, 0x7f010026 }; public static final int Spinner_android_dropDownWidth = 2; public static final int Spinner_android_popupBackground = 0; public static final int Spinner_android_prompt = 1; public static final int Spinner_popupTheme = 3; public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2 }; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 9; public static final int SwitchCompat_splitTrack = 8; public static final int SwitchCompat_switchMinWidth = 6; public static final int SwitchCompat_switchPadding = 7; public static final int SwitchCompat_switchTextAppearance = 5; public static final int SwitchCompat_thumbTextPadding = 4; public static final int SwitchCompat_track = 3; public static final int[] TabLayout = { 0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2 }; public static final int TabLayout_tabBackground = 3; public static final int TabLayout_tabContentStart = 2; public static final int TabLayout_tabGravity = 5; public static final int TabLayout_tabIndicatorColor = 0; public static final int TabLayout_tabIndicatorHeight = 1; public static final int TabLayout_tabMaxWidth = 7; public static final int TabLayout_tabMinWidth = 6; public static final int TabLayout_tabMode = 4; public static final int TabLayout_tabPadding = 15; public static final int TabLayout_tabPaddingBottom = 14; public static final int TabLayout_tabPaddingEnd = 13; public static final int TabLayout_tabPaddingStart = 11; public static final int TabLayout_tabPaddingTop = 12; public static final int TabLayout_tabSelectedTextColor = 10; public static final int TabLayout_tabTextAppearance = 8; public static final int TabLayout_tabTextColor = 9; public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f010035 }; public static final int TextAppearance_android_shadowColor = 4; public static final int TextAppearance_android_shadowDx = 5; public static final int TextAppearance_android_shadowDy = 6; public static final int TextAppearance_android_shadowRadius = 7; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_textAllCaps = 8; public static final int[] TextInputLayout = { 0x0101009a, 0x01010150, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba }; public static final int TextInputLayout_android_hint = 1; public static final int TextInputLayout_android_textColorHint = 0; public static final int TextInputLayout_counterEnabled = 5; public static final int TextInputLayout_counterMaxLength = 6; public static final int TextInputLayout_counterOverflowTextAppearance = 8; public static final int TextInputLayout_counterTextAppearance = 7; public static final int TextInputLayout_errorEnabled = 3; public static final int TextInputLayout_errorTextAppearance = 4; public static final int TextInputLayout_hintAnimationEnabled = 9; public static final int TextInputLayout_hintTextAppearance = 2; public static final int[] Theme = { 0x01010057, 0x010100ae, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb, 0x7f0100cc, 0x7f0100cd, 0x7f0100ce, 0x7f0100cf, 0x7f0100d0, 0x7f0100d1, 0x7f0100d2, 0x7f0100d3, 0x7f0100d4, 0x7f0100d5, 0x7f0100d6, 0x7f0100d7, 0x7f0100d8, 0x7f0100d9, 0x7f0100da, 0x7f0100db, 0x7f0100dc, 0x7f0100dd, 0x7f0100de, 0x7f0100df, 0x7f0100e0, 0x7f0100e1, 0x7f0100e2, 0x7f0100e3, 0x7f0100e4, 0x7f0100e5, 0x7f0100e6, 0x7f0100e7, 0x7f0100e8, 0x7f0100e9, 0x7f0100ea, 0x7f0100eb, 0x7f0100ec, 0x7f0100ed, 0x7f0100ee, 0x7f0100ef, 0x7f0100f0, 0x7f0100f1, 0x7f0100f2, 0x7f0100f3, 0x7f0100f4, 0x7f0100f5, 0x7f0100f6, 0x7f0100f7, 0x7f0100f8, 0x7f0100f9, 0x7f0100fa, 0x7f0100fb, 0x7f0100fc, 0x7f0100fd, 0x7f0100fe, 0x7f0100ff, 0x7f010100, 0x7f010101, 0x7f010102, 0x7f010103, 0x7f010104, 0x7f010105, 0x7f010106, 0x7f010107, 0x7f010108, 0x7f010109, 0x7f01010a, 0x7f01010b, 0x7f01010c, 0x7f01010d, 0x7f01010e, 0x7f01010f, 0x7f010110, 0x7f010111, 0x7f010112, 0x7f010113, 0x7f010114, 0x7f010115, 0x7f010116, 0x7f010117, 0x7f010118, 0x7f010119, 0x7f01011a, 0x7f01011b, 0x7f01011c, 0x7f01011d, 0x7f01011e, 0x7f01011f, 0x7f010120, 0x7f010121, 0x7f010122, 0x7f010123, 0x7f010124, 0x7f010125, 0x7f010126 }; public static final int Theme_actionBarDivider = 23; public static final int Theme_actionBarItemBackground = 24; public static final int Theme_actionBarPopupTheme = 17; public static final int Theme_actionBarSize = 22; public static final int Theme_actionBarSplitStyle = 19; public static final int Theme_actionBarStyle = 18; public static final int Theme_actionBarTabBarStyle = 13; public static final int Theme_actionBarTabStyle = 12; public static final int Theme_actionBarTabTextStyle = 14; public static final int Theme_actionBarTheme = 20; public static final int Theme_actionBarWidgetTheme = 21; public static final int Theme_actionButtonStyle = 49; public static final int Theme_actionDropDownStyle = 45; public static final int Theme_actionMenuTextAppearance = 25; public static final int Theme_actionMenuTextColor = 26; public static final int Theme_actionModeBackground = 29; public static final int Theme_actionModeCloseButtonStyle = 28; public static final int Theme_actionModeCloseDrawable = 31; public static final int Theme_actionModeCopyDrawable = 33; public static final int Theme_actionModeCutDrawable = 32; public static final int Theme_actionModeFindDrawable = 37; public static final int Theme_actionModePasteDrawable = 34; public static final int Theme_actionModePopupWindowStyle = 39; public static final int Theme_actionModeSelectAllDrawable = 35; public static final int Theme_actionModeShareDrawable = 36; public static final int Theme_actionModeSplitBackground = 30; public static final int Theme_actionModeStyle = 27; public static final int Theme_actionModeWebSearchDrawable = 38; public static final int Theme_actionOverflowButtonStyle = 15; public static final int Theme_actionOverflowMenuStyle = 16; public static final int Theme_activityChooserViewStyle = 57; public static final int Theme_alertDialogButtonGroupStyle = 92; public static final int Theme_alertDialogCenterButtons = 93; public static final int Theme_alertDialogStyle = 91; public static final int Theme_alertDialogTheme = 94; public static final int Theme_android_windowAnimationStyle = 1; public static final int Theme_android_windowIsFloating = 0; public static final int Theme_autoCompleteTextViewStyle = 99; public static final int Theme_borderlessButtonStyle = 54; public static final int Theme_buttonBarButtonStyle = 51; public static final int Theme_buttonBarNegativeButtonStyle = 97; public static final int Theme_buttonBarNeutralButtonStyle = 98; public static final int Theme_buttonBarPositiveButtonStyle = 96; public static final int Theme_buttonBarStyle = 50; public static final int Theme_buttonStyle = 100; public static final int Theme_buttonStyleSmall = 101; public static final int Theme_checkboxStyle = 102; public static final int Theme_checkedTextViewStyle = 103; public static final int Theme_colorAccent = 84; public static final int Theme_colorButtonNormal = 88; public static final int Theme_colorControlActivated = 86; public static final int Theme_colorControlHighlight = 87; public static final int Theme_colorControlNormal = 85; public static final int Theme_colorPrimary = 82; public static final int Theme_colorPrimaryDark = 83; public static final int Theme_colorSwitchThumbNormal = 89; public static final int Theme_controlBackground = 90; public static final int Theme_dialogPreferredPadding = 43; public static final int Theme_dialogTheme = 42; public static final int Theme_dividerHorizontal = 56; public static final int Theme_dividerVertical = 55; public static final int Theme_dropDownListViewStyle = 74; public static final int Theme_dropdownListPreferredItemHeight = 46; public static final int Theme_editTextBackground = 63; public static final int Theme_editTextColor = 62; public static final int Theme_editTextStyle = 104; public static final int Theme_homeAsUpIndicator = 48; public static final int Theme_imageButtonStyle = 64; public static final int Theme_listChoiceBackgroundIndicator = 81; public static final int Theme_listDividerAlertDialog = 44; public static final int Theme_listPopupWindowStyle = 75; public static final int Theme_listPreferredItemHeight = 69; public static final int Theme_listPreferredItemHeightLarge = 71; public static final int Theme_listPreferredItemHeightSmall = 70; public static final int Theme_listPreferredItemPaddingLeft = 72; public static final int Theme_listPreferredItemPaddingRight = 73; public static final int Theme_panelBackground = 78; public static final int Theme_panelMenuListTheme = 80; public static final int Theme_panelMenuListWidth = 79; public static final int Theme_popupMenuStyle = 60; public static final int Theme_popupWindowStyle = 61; public static final int Theme_radioButtonStyle = 105; public static final int Theme_ratingBarStyle = 106; public static final int Theme_searchViewStyle = 68; public static final int Theme_seekBarStyle = 107; public static final int Theme_selectableItemBackground = 52; public static final int Theme_selectableItemBackgroundBorderless = 53; public static final int Theme_spinnerDropDownItemStyle = 47; public static final int Theme_spinnerStyle = 108; public static final int Theme_switchStyle = 109; public static final int Theme_textAppearanceLargePopupMenu = 40; public static final int Theme_textAppearanceListItem = 76; public static final int Theme_textAppearanceListItemSmall = 77; public static final int Theme_textAppearanceSearchResultSubtitle = 66; public static final int Theme_textAppearanceSearchResultTitle = 65; public static final int Theme_textAppearanceSmallPopupMenu = 41; public static final int Theme_textColorAlertDialogListItem = 95; public static final int Theme_textColorSearchUrl = 67; public static final int Theme_toolbarNavigationButtonStyle = 59; public static final int Theme_toolbarStyle = 58; public static final int Theme_windowActionBar = 2; public static final int Theme_windowActionBarOverlay = 4; public static final int Theme_windowActionModeOverlay = 5; public static final int Theme_windowFixedHeightMajor = 9; public static final int Theme_windowFixedHeightMinor = 7; public static final int Theme_windowFixedWidthMajor = 6; public static final int Theme_windowFixedWidthMinor = 8; public static final int Theme_windowMinWidthMajor = 10; public static final int Theme_windowMinWidthMinor = 11; public static final int Theme_windowNoTitle = 3; public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f01000d, 0x7f010011, 0x7f010015, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010026, 0x7f01012b, 0x7f01012c, 0x7f01012d, 0x7f01012e, 0x7f01012f, 0x7f010130, 0x7f010131, 0x7f010132, 0x7f010133, 0x7f010134, 0x7f010135, 0x7f010136, 0x7f010137, 0x7f010138, 0x7f010139 }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_collapseContentDescription = 19; public static final int Toolbar_collapseIcon = 18; public static final int Toolbar_contentInsetEnd = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 5; public static final int Toolbar_logo = 4; public static final int Toolbar_logoDescription = 22; public static final int Toolbar_maxButtonHeight = 17; public static final int Toolbar_navigationContentDescription = 21; public static final int Toolbar_navigationIcon = 20; public static final int Toolbar_popupTheme = 9; public static final int Toolbar_subtitle = 3; public static final int Toolbar_subtitleTextAppearance = 11; public static final int Toolbar_subtitleTextColor = 24; public static final int Toolbar_title = 2; public static final int Toolbar_titleMarginBottom = 16; public static final int Toolbar_titleMarginEnd = 14; public static final int Toolbar_titleMarginStart = 13; public static final int Toolbar_titleMarginTop = 15; public static final int Toolbar_titleMargins = 12; public static final int Toolbar_titleTextAppearance = 10; public static final int Toolbar_titleTextColor = 23; public static final int[] View = { 0x01010000, 0x010100da, 0x7f01013a, 0x7f01013b, 0x7f01013c }; public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f01013d, 0x7f01013e }; public static final int ViewBackgroundHelper_android_background = 0; public static final int ViewBackgroundHelper_backgroundTint = 1; public static final int ViewBackgroundHelper_backgroundTintMode = 2; public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_inflatedId = 2; public static final int ViewStubCompat_android_layout = 1; public static final int View_android_focusable = 1; public static final int View_android_theme = 0; public static final int View_paddingEnd = 3; public static final int View_paddingStart = 2; public static final int View_theme = 4; } }
[ "jenkins@example.com" ]
jenkins@example.com
0ec7229e2cd145dcb2a1ea20830c67aef300a525
be92c38ed1e5364edae961a5d569c58cf80955ad
/app/src/main/java/com/example/testdemo/MainActivity.java
15856bc089cfea45580a1a2252ce155766b9dc8b
[ "Apache-2.0" ]
permissive
YLY221/CacheAndRefreshListView
c686c21fafe03914d01d70c33f25d0078366c9b6
35611ce1a7ee164a8adf0ea0afce673d883b1860
refs/heads/master
2020-08-21T18:51:15.379831
2019-10-20T05:54:28
2019-10-20T05:54:28
216,222,385
0
0
null
null
null
null
UTF-8
Java
false
false
3,872
java
package com.example.testdemo; import android.graphics.Color; import android.os.AsyncTask; import android.os.SystemClock; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; import java.util.ArrayList; import java.util.List; public class MainActivity extends AppCompatActivity implements OnRefreshListener{ private RefreshListView rListView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); rListView=findViewById(R.id.list_view); ImageAdapter imageAdapter=new ImageAdapter(this,0,Images.imageUrls); rListView.setAdapter(imageAdapter); //可以用这种注册监听的方式,这种方式需要实现MainActivity implements OnRefreshListener rListView.setOnRefreshListener(this); //也可以用这种注册监听的方式 /* rListView.setOnRefreshListener(new OnRefreshListener() { @Override public void onDownPullRefresh() { new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { SystemClock.sleep(2000); for (int i = 0; i < 2; i++) { textList.add(0, "这是下拉刷新出来的数据" + i); } return null; } @Override protected void onPostExecute(Void result) { adapter.notifyDataSetChanged(); rListView.hideHeaderView(); } }.execute(new Void[]{}); } @Override public void onLoadingMore() { new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { SystemClock.sleep(5000); textList.add("这是加载更多出来的数据1"); textList.add("这是加载更多出来的数据2"); textList.add("这是加载更多出来的数据3"); return null; } @Override protected void onPostExecute(Void result) { adapter.notifyDataSetChanged(); // 控制脚布局隐藏 rListView.hideFooterView(); } }.execute(new Void[]{}); } });*/ } @Override public void onDownPullRefresh() { new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { SystemClock.sleep(2000); return null; } @Override protected void onPostExecute(Void result) { //adapter.notifyDataSetChanged(); rListView.hideHeaderView(); } }.execute(new Void[]{}); } @Override public void onLoadingMore() { new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { SystemClock.sleep(5000); return null; } @Override protected void onPostExecute(Void result) { //adapter.notifyDataSetChanged(); // 控制脚布局隐藏 rListView.hideFooterView(); } }.execute(new Void[]{}); } }
[ "yaoliangyong221@163.com" ]
yaoliangyong221@163.com
b3d08c569c104c16e786bb71c5dc7e043764fefb
863acb02a064a0fc66811688a67ce3511f1b81af
/sources/p005cm/aptoide/p006pt/downloadmanager/C2951Fa.java
bff3a5579bf20621293fcedcce1e04dcc52dd739
[ "MIT" ]
permissive
Game-Designing/Custom-Football-Game
98d33eb0c04ca2c48620aa4a763b91bc9c1b7915
47283462b2066ad5c53b3c901182e7ae62a34fc8
refs/heads/master
2020-08-04T00:02:04.876780
2019-10-06T06:55:08
2019-10-06T06:55:08
211,914,568
1
1
null
null
null
null
UTF-8
Java
false
false
476
java
package p005cm.aptoide.p006pt.downloadmanager; import p026rx.C0120S; import p026rx.p027b.C0132p; /* renamed from: cm.aptoide.pt.downloadmanager.Fa */ /* compiled from: lambda */ public final /* synthetic */ class C2951Fa implements C0132p { /* renamed from: a */ public static final /* synthetic */ C2951Fa f6234a = new C2951Fa(); private /* synthetic */ C2951Fa() { } public final Object call(Object obj) { return C0120S.m652c(null); } }
[ "tusharchoudhary0003@gmail.com" ]
tusharchoudhary0003@gmail.com
3989e4bb5f8086c2ba27d1dac3b9f7394e9142c9
11b9a30ada6672f428c8292937dec7ce9f35c71b
/src/main/java/java/awt/font/StyledParagraph.java
67a9fce87fd8c206354713c683e64cbb0caeaefb
[]
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
19,550
java
/***** Lobxxx Translate Finished ******/ /* * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * * */ /* * (C) Copyright IBM Corp. 1999, All rights reserved. * <p> *  (C)版权所有IBM Corp. 1999,保留所有权利。 * */ package java.awt.font; import java.awt.Font; import java.awt.Toolkit; import java.awt.im.InputMethodHighlight; import java.text.Annotation; import java.text.AttributedCharacterIterator; import java.text.AttributedCharacterIterator.Attribute; import java.util.Vector; import java.util.HashMap; import java.util.Map; import sun.font.Decoration; import sun.font.FontResolver; import sun.text.CodePointIterator; /** * This class stores Font, GraphicAttribute, and Decoration intervals * on a paragraph of styled text. * <p> * Currently, this class is optimized for a small number of intervals * (preferrably 1). * <p> *  这个类在字体文本的段落上存储Font,GraphicAttribute和Decoration interval。 * <p> *  目前,该类针对少量间隔(优选为1)进行了优化。 * */ final class StyledParagraph { // the length of the paragraph private int length; // If there is a single Decoration for the whole paragraph, it // is stored here. Otherwise this field is ignored. private Decoration decoration; // If there is a single Font or GraphicAttribute for the whole // paragraph, it is stored here. Otherwise this field is ignored. private Object font; // If there are multiple Decorations in the paragraph, they are // stored in this Vector, in order. Otherwise this vector and // the decorationStarts array are null. private Vector<Decoration> decorations; // If there are multiple Decorations in the paragraph, // decorationStarts[i] contains the index where decoration i // starts. For convenience, there is an extra entry at the // end of this array with the length of the paragraph. int[] decorationStarts; // If there are multiple Fonts/GraphicAttributes in the paragraph, // they are // stored in this Vector, in order. Otherwise this vector and // the fontStarts array are null. private Vector<Object> fonts; // If there are multiple Fonts/GraphicAttributes in the paragraph, // fontStarts[i] contains the index where decoration i // starts. For convenience, there is an extra entry at the // end of this array with the length of the paragraph. int[] fontStarts; private static int INITIAL_SIZE = 8; /** * Create a new StyledParagraph over the given styled text. * <p> *  在给定的样式文本上创建一个新的StyledParagraph。 * * * @param aci an iterator over the text * @param chars the characters extracted from aci */ public StyledParagraph(AttributedCharacterIterator aci, char[] chars) { int start = aci.getBeginIndex(); int end = aci.getEndIndex(); length = end - start; int index = start; aci.first(); do { final int nextRunStart = aci.getRunLimit(); final int localIndex = index-start; Map<? extends Attribute, ?> attributes = aci.getAttributes(); attributes = addInputMethodAttrs(attributes); Decoration d = Decoration.getDecoration(attributes); addDecoration(d, localIndex); Object f = getGraphicOrFont(attributes); if (f == null) { addFonts(chars, attributes, localIndex, nextRunStart-start); } else { addFont(f, localIndex); } aci.setIndex(nextRunStart); index = nextRunStart; } while (index < end); // Add extra entries to starts arrays with the length // of the paragraph. 'this' is used as a dummy value // in the Vector. if (decorations != null) { decorationStarts = addToVector(this, length, decorations, decorationStarts); } if (fonts != null) { fontStarts = addToVector(this, length, fonts, fontStarts); } } /** * Adjust indices in starts to reflect an insertion after pos. * Any index in starts greater than pos will be increased by 1. * <p> *  在开始时调整索引以反映位置后的插入。任何大于pos的开头的索引将增加1。 * */ private static void insertInto(int pos, int[] starts, int numStarts) { while (starts[--numStarts] > pos) { starts[numStarts] += 1; } } /** * Return a StyledParagraph reflecting the insertion of a single character * into the text. This method will attempt to reuse the given paragraph, * but may create a new paragraph. * <p> *  返回一个StyledParagraph,反映将单个字符插入到文本中。此方法将尝试重用给定段落,但可能会创建一个新段落。 * * * @param aci an iterator over the text. The text should be the same as the * text used to create (or most recently update) oldParagraph, with * the exception of inserting a single character at insertPos. * @param chars the characters in aci * @param insertPos the index of the new character in aci * @param oldParagraph a StyledParagraph for the text in aci before the * insertion */ public static StyledParagraph insertChar(AttributedCharacterIterator aci, char[] chars, int insertPos, StyledParagraph oldParagraph) { // If the styles at insertPos match those at insertPos-1, // oldParagraph will be reused. Otherwise we create a new // paragraph. char ch = aci.setIndex(insertPos); int relativePos = Math.max(insertPos - aci.getBeginIndex() - 1, 0); Map<? extends Attribute, ?> attributes = addInputMethodAttrs(aci.getAttributes()); Decoration d = Decoration.getDecoration(attributes); if (!oldParagraph.getDecorationAt(relativePos).equals(d)) { return new StyledParagraph(aci, chars); } Object f = getGraphicOrFont(attributes); if (f == null) { FontResolver resolver = FontResolver.getInstance(); int fontIndex = resolver.getFontIndex(ch); f = resolver.getFont(fontIndex, attributes); } if (!oldParagraph.getFontOrGraphicAt(relativePos).equals(f)) { return new StyledParagraph(aci, chars); } // insert into existing paragraph oldParagraph.length += 1; if (oldParagraph.decorations != null) { insertInto(relativePos, oldParagraph.decorationStarts, oldParagraph.decorations.size()); } if (oldParagraph.fonts != null) { insertInto(relativePos, oldParagraph.fontStarts, oldParagraph.fonts.size()); } return oldParagraph; } /** * Adjust indices in starts to reflect a deletion after deleteAt. * Any index in starts greater than deleteAt will be increased by 1. * It is the caller's responsibility to make sure that no 0-length * runs result. * <p> *  在开始时调整索引以反映deleteAt后的删除。任何大于deleteAt的开始的索引都会增加1.调用者负责确保没有0长度的运行结果。 * */ private static void deleteFrom(int deleteAt, int[] starts, int numStarts) { while (starts[--numStarts] > deleteAt) { starts[numStarts] -= 1; } } /** * Return a StyledParagraph reflecting the insertion of a single character * into the text. This method will attempt to reuse the given paragraph, * but may create a new paragraph. * <p> *  返回一个StyledParagraph,反映将单个字符插入到文本中。此方法将尝试重用给定段落,但可能会创建一个新段落。 * * * @param aci an iterator over the text. The text should be the same as the * text used to create (or most recently update) oldParagraph, with * the exception of deleting a single character at deletePos. * @param chars the characters in aci * @param deletePos the index where a character was removed * @param oldParagraph a StyledParagraph for the text in aci before the * insertion */ public static StyledParagraph deleteChar(AttributedCharacterIterator aci, char[] chars, int deletePos, StyledParagraph oldParagraph) { // We will reuse oldParagraph unless there was a length-1 run // at deletePos. We could do more work and check the individual // Font and Decoration runs, but we don't right now... deletePos -= aci.getBeginIndex(); if (oldParagraph.decorations == null && oldParagraph.fonts == null) { oldParagraph.length -= 1; return oldParagraph; } if (oldParagraph.getRunLimit(deletePos) == deletePos+1) { if (deletePos == 0 || oldParagraph.getRunLimit(deletePos-1) == deletePos) { return new StyledParagraph(aci, chars); } } oldParagraph.length -= 1; if (oldParagraph.decorations != null) { deleteFrom(deletePos, oldParagraph.decorationStarts, oldParagraph.decorations.size()); } if (oldParagraph.fonts != null) { deleteFrom(deletePos, oldParagraph.fontStarts, oldParagraph.fonts.size()); } return oldParagraph; } /** * Return the index at which there is a different Font, GraphicAttribute, or * Dcoration than at the given index. * <p> *  返回存在与给定索引不同的Font,GraphicAttribute或Dcoration的索引。 * * * @param index a valid index in the paragraph * @return the first index where there is a change in attributes from * those at index */ public int getRunLimit(int index) { if (index < 0 || index >= length) { throw new IllegalArgumentException("index out of range"); } int limit1 = length; if (decorations != null) { int run = findRunContaining(index, decorationStarts); limit1 = decorationStarts[run+1]; } int limit2 = length; if (fonts != null) { int run = findRunContaining(index, fontStarts); limit2 = fontStarts[run+1]; } return Math.min(limit1, limit2); } /** * Return the Decoration in effect at the given index. * <p> *  返回在给定索引处生效的装饰。 * * * @param index a valid index in the paragraph * @return the Decoration at index. */ public Decoration getDecorationAt(int index) { if (index < 0 || index >= length) { throw new IllegalArgumentException("index out of range"); } if (decorations == null) { return decoration; } int run = findRunContaining(index, decorationStarts); return decorations.elementAt(run); } /** * Return the Font or GraphicAttribute in effect at the given index. * The client must test the type of the return value to determine what * it is. * <p> *  返回在给定索引处有效的字体或GraphicAttribute。客户端必须测试返回值的类型以确定它是什么。 * * * @param index a valid index in the paragraph * @return the Font or GraphicAttribute at index. */ public Object getFontOrGraphicAt(int index) { if (index < 0 || index >= length) { throw new IllegalArgumentException("index out of range"); } if (fonts == null) { return font; } int run = findRunContaining(index, fontStarts); return fonts.elementAt(run); } /** * Return i such that starts[i] &lt;= index &lt; starts[i+1]. starts * must be in increasing order, with at least one element greater * than index. * <p> * 返回i,使得starts [i] <= index <开始[i + 1]。启动必须按升序排列,至少有一个元素大于索引。 * */ private static int findRunContaining(int index, int[] starts) { for (int i=1; true; i++) { if (starts[i] > index) { return i-1; } } } /** * Append the given Object to the given Vector. Add * the given index to the given starts array. If the * starts array does not have room for the index, a * new array is created and returned. * <p> *  将给定的Object附加到给定的Vector。将给定的索引添加到给定的starts数组。如果starts数组没有空间用于索引,则会创建并返回一个新数组。 * */ @SuppressWarnings({"rawtypes", "unchecked"}) private static int[] addToVector(Object obj, int index, Vector v, int[] starts) { if (!v.lastElement().equals(obj)) { v.addElement(obj); int count = v.size(); if (starts.length == count) { int[] temp = new int[starts.length*2]; System.arraycopy(starts, 0, temp, 0, starts.length); starts = temp; } starts[count-1] = index; } return starts; } /** * Add a new Decoration run with the given Decoration at the * given index. * <p> *  添加一个新的装饰运行与给定的装饰在给定的索引。 * */ private void addDecoration(Decoration d, int index) { if (decorations != null) { decorationStarts = addToVector(d, index, decorations, decorationStarts); } else if (decoration == null) { decoration = d; } else { if (!decoration.equals(d)) { decorations = new Vector<Decoration>(INITIAL_SIZE); decorations.addElement(decoration); decorations.addElement(d); decorationStarts = new int[INITIAL_SIZE]; decorationStarts[0] = 0; decorationStarts[1] = index; } } } /** * Add a new Font/GraphicAttribute run with the given object at the * given index. * <p> *  添加一个新的Font / GraphicAttribute运行给定的对象在给定的索引。 * */ private void addFont(Object f, int index) { if (fonts != null) { fontStarts = addToVector(f, index, fonts, fontStarts); } else if (font == null) { font = f; } else { if (!font.equals(f)) { fonts = new Vector<Object>(INITIAL_SIZE); fonts.addElement(font); fonts.addElement(f); fontStarts = new int[INITIAL_SIZE]; fontStarts[0] = 0; fontStarts[1] = index; } } } /** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. * <p> *  使用FontResolver将给定的字符解析为字体,然后为每个字体添加字体。 * */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } } /** * Return a Map with entries from oldStyles, as well as input * method entries, if any. * <p> *  返回包含来自oldStyles的条目的映射,以及输入法条目(如果有)。 * */ static Map<? extends Attribute, ?> addInputMethodAttrs(Map<? extends Attribute, ?> oldStyles) { Object value = oldStyles.get(TextAttribute.INPUT_METHOD_HIGHLIGHT); try { if (value != null) { if (value instanceof Annotation) { value = ((Annotation)value).getValue(); } InputMethodHighlight hl; hl = (InputMethodHighlight) value; Map<? extends Attribute, ?> imStyles = null; try { imStyles = hl.getStyle(); } catch (NoSuchMethodError e) { } if (imStyles == null) { Toolkit tk = Toolkit.getDefaultToolkit(); imStyles = tk.mapInputMethodHighlight(hl); } if (imStyles != null) { HashMap<Attribute, Object> newStyles = new HashMap<>(5, (float)0.9); newStyles.putAll(oldStyles); newStyles.putAll(imStyles); return newStyles; } } } catch(ClassCastException e) { } return oldStyles; } /** * Extract a GraphicAttribute or Font from the given attributes. * If attributes does not contain a GraphicAttribute, Font, or * Font family entry this method returns null. * <p> *  从给定的属性中提取GraphicAttribute或Font。如果属性不包含GraphicAttribute,Font或Font family条目,此方法将返回null。 */ private static Object getGraphicOrFont( Map<? extends Attribute, ?> attributes) { Object value = attributes.get(TextAttribute.CHAR_REPLACEMENT); if (value != null) { return value; } value = attributes.get(TextAttribute.FONT); if (value != null) { return value; } if (attributes.get(TextAttribute.FAMILY) != null) { return Font.getFont(attributes); } else { return null; } } }
[ "zhaobo@MacBook-Pro.local" ]
zhaobo@MacBook-Pro.local
3db567650b4c3d80cb6f5aee715134439b6a073f
b1447d1b776ea28b8651c840d464d89756f58c03
/src/main/java/com/freshvoters/domain/User.java
f50ea0b0d8d4a56e6fb6d363f776fddd12f0b9e5
[]
no_license
Aiizaku/FreshVoters
5d6c06060a87395c39b3527ef5df1d561873eb84
42ff9c7f360806613eda4cd246db330ff7239725
refs/heads/master
2022-11-22T23:51:41.226361
2020-07-18T16:50:43
2020-07-18T16:50:43
278,126,906
0
0
null
null
null
null
UTF-8
Java
false
false
962
java
package com.freshvoters.domain; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="users") // this needs to happen because there is already a class named "User" public class User { private Long id; private String username; private String password; private String name; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "aiizaku.ib@gmail.com" ]
aiizaku.ib@gmail.com
dd984acb5db597fd7a591b621ca7aaa5822ab02a
75d159972bbb605ca02d69f08141b744719952e9
/src/main/java/edu/unbosque/JPATutorial/jpa/entities/Book.java
ceceb6e784ed97ff0f2963b261ef0f70760137c6
[]
no_license
jfruizg/Taller5Final
6427f3953c623499aab826f331010ec9b948c435
aa10377d9b555daaa7b939b6351879543dd04329
refs/heads/master
2023-05-02T04:28:33.657354
2021-05-16T17:42:51
2021-05-16T17:42:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,894
java
package edu.unbosque.JPATutorial.jpa.entities; import java.util.List; import java.util.ArrayList; import javax.persistence.*; @Entity @Table(name = "Book") // Optional @NamedQueries({ @NamedQuery(name = "Book.findByTitle", query = "SELECT b FROM Book b WHERE b.title = :title"), @NamedQuery(name = "Book.findAll", query = "SELECT b FROM Book b") }) public class Book { @Id @GeneratedValue @Column(name = "book_id") private Integer bookId; @Column(nullable = false, unique = true) private String title; @Column(name = "isbn_number") private String isbn; @ManyToOne @JoinColumn(name = "author_id") private Author author; @OneToMany(mappedBy = "book_id") private List<Edition> edition = new ArrayList<>(); public Book() {} public Book(String title, String isbn) { this.title = title; this.isbn = isbn; } public Book(Integer bookId, String title, String isbn) { this.bookId = bookId; this.title = title; this.isbn = isbn; } public Integer getBookId() { return bookId; } public void setBookId(Integer bookId) { this.bookId = bookId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public Author getAuthor() { return author; } public void setAuthor(Author author) { this.author = author; } public Edition getEdition() { return (Edition) edition; } public void addEdition(Edition edition) { this.edition = (List<Edition>) edition; edition.setBook(this); } public void removeEdition(Edition edition){ } }
[ "jfruizg@unbosque.edu.co" ]
jfruizg@unbosque.edu.co
8ca22a74182991e36d84a9ddbb3a0ebc9719a61d
38c4451ab626dcdc101a11b18e248d33fd8a52e0
/tokens/lucene-3.6.2/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttribute.java
a4a9d9ab1c01135e6859495175d49856c07d443f
[]
no_license
habeascorpus/habeascorpus-data
47da7c08d0f357938c502bae030d5fb8f44f5e01
536d55729f3110aee058ad009bcba3e063b39450
refs/heads/master
2020-06-04T10:17:20.102451
2013-02-19T15:19:21
2013-02-19T15:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,339
java
package TokenNamepackage org TokenNameIdentifier . TokenNameDOT apache TokenNameIdentifier . TokenNameDOT lucene TokenNameIdentifier . TokenNameDOT queryParser TokenNameIdentifier . TokenNameDOT spans TokenNameIdentifier ; TokenNameSEMICOLON import TokenNameimport org TokenNameIdentifier . TokenNameDOT apache TokenNameIdentifier . TokenNameDOT lucene TokenNameIdentifier . TokenNameDOT queryParser TokenNameIdentifier . TokenNameDOT core TokenNameIdentifier . TokenNameDOT nodes TokenNameIdentifier . TokenNameDOT FieldableNode TokenNameIdentifier ; TokenNameSEMICOLON import TokenNameimport org TokenNameIdentifier . TokenNameDOT apache TokenNameIdentifier . TokenNameDOT lucene TokenNameIdentifier . TokenNameDOT util TokenNameIdentifier . TokenNameDOT Attribute TokenNameIdentifier ; TokenNameSEMICOLON public TokenNamepublic interface TokenNameinterface UniqueFieldAttribute TokenNameIdentifier extends TokenNameextends Attribute TokenNameIdentifier { TokenNameLBRACE public TokenNamepublic void TokenNamevoid setUniqueField TokenNameIdentifier ( TokenNameLPAREN CharSequence TokenNameIdentifier uniqueField TokenNameIdentifier ) TokenNameRPAREN ; TokenNameSEMICOLON public TokenNamepublic CharSequence TokenNameIdentifier getUniqueField TokenNameIdentifier ( TokenNameLPAREN ) TokenNameRPAREN ; TokenNameSEMICOLON } TokenNameRBRACE
[ "pschulam@gmail.com" ]
pschulam@gmail.com
d66145212c9fc06212170dbe971fb9d1f3764c0d
948af859cf83aca794d5d3f1e168651f6bd8d595
/app/src/main/java/com/mvvm_restapi_demo/util/BindingAdapter.java
b707efa0d06c408d1f0e1499da50d44cafd5327b
[]
no_license
deepmakadia1/MVVMRestAPI-Demo
33f526bbcf579fbcb82af64b2b21a7a389058122
a64bd194d36effede14780e94799a823b0cb226e
refs/heads/master
2020-11-25T08:38:31.760393
2019-12-31T10:28:00
2019-12-31T10:28:00
228,577,226
1
0
null
null
null
null
UTF-8
Java
false
false
663
java
package com.mvvm_restapi_demo.util; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; import com.mvvm_restapi_demo.R; public class BindingAdapter { @android.databinding.BindingAdapter("imageUrl") public static void setImageUrl(ImageView imageView, String url) { if (url != null) { RequestOptions options = new RequestOptions().placeholder(R.drawable.ic_launcher_background); Glide.with(imageView.getContext()) .setDefaultRequestOptions(options) .load(url) .into(imageView); } } }
[ "deepm@elpl.com" ]
deepm@elpl.com
96de964d307a6e5553921c56e1f12c295a6cf92f
274e9ceb5a7a64fce961484e4106d266e8b238fe
/DemonstratorClient/hmas/test/net/eads/astrium/dream/fas/bdd/Populate.java
fe71b771ff053aa5d6c78d9590cf509270816dfc
[]
no_license
ulrichsebastian31/opensearch-earth-observation-products-system
cfe6ce335e93d15257c03e8bf433b6a69a44525f
edc74e1162431b9ee853f51abe8a9c7689e87f0a
refs/heads/master
2020-05-17T00:33:15.836770
2015-05-01T13:54:59
2015-05-01T13:54:59
32,464,996
0
0
null
null
null
null
UTF-8
Java
false
false
37,325
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package net.eads.astrium.dream.fas.bdd; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import static net.eads.astrium.dream.fas.bdd.TestConnexion.insert; import net.eads.astrium.dream.fas.bdd.objects.GroundStation; import org.junit.Test; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.xml.sax.SAXException; /** * * @author re-sulrich */ public class Populate { //The data about the Sentinel 1 mission has been collected on : // https://directory.eoportal.org/web/eoportal/satellite-missions/c-missions/copernicus-sentinel-1 @Test public void populate() { try { // addDeployments(); // addMMFAS(); // // addSatellites(); // addFAS(); // addMMFASSatellites(); // // addSentinel1Sensor(); // addSentinel1SARSensorChar(); // addSentinel1InstrumentModes(); // addSentinel1InstrumentModesSarChar(); // addSentinel1PolarizationModes(); // addInstrumentModesPolarisationModesJointures(); // // addSentinel2Sensor(); // // addSentinel2OPTSensorChar(); // addSentinel2InstrumentModes(); // addSentinel2InstrumentModesOptChar(); addStationsFromXMLFile(); addFucinoUnavailibilities(); addSentinel1Unavailibilities(); } catch (SQLException ex) { Logger.getLogger(Populate.class.getName()).log(Level.SEVERE, null, ex); } catch (ParserConfigurationException ex) { Logger.getLogger(Populate.class.getName()).log(Level.SEVERE, null, ex); } catch (FileNotFoundException ex) { Logger.getLogger(Populate.class.getName()).log(Level.SEVERE, null, ex); } catch (SAXException ex) { Logger.getLogger(Populate.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(Populate.class.getName()).log(Level.SEVERE, null, ex); } } public void addDeployments() throws SQLException { String table = "ApplicationServer"; List<String> fields = new ArrayList<String>(); fields.add("name"); fields.add("description"); fields.add("serverBaseAddress"); List<String> depl1 = new ArrayList<String>(); depl1.add("'Deployment1'"); depl1.add("''"); depl1.add("'127.0.0.1:8080'"); List<String> depl2 = new ArrayList<String>(); depl2.add("'Deployment1'"); depl2.add("''"); depl2.add("'192.168.0.20:8080'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(depl1); values.add(depl2); insert( table, fields, values); } public void addMMFAS() throws SQLException { String table = "MMFAS"; List<String> fields = new ArrayList<String>(); fields.add("mmfasId"); fields.add("name"); fields.add("description"); fields.add("href"); fields.add("server"); List<String> gmesmmfas = new ArrayList<String>(); gmesmmfas.add("'gmes-mmfas'"); gmesmmfas.add("'GMES MMFAS'"); gmesmmfas.add("'This MMFAS permits to task the satellites of the GMES program.'"); gmesmmfas.add("'http://www.esa.int/Our_Activities/Observing_the_Earth/GMES/'"); gmesmmfas.add("'1'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(gmesmmfas); insert( table, fields, values); } public void addMMFASSatellites() throws SQLException { String table = "LNK_MMFAS_Satellite"; List<String> fields = new ArrayList<String>(); fields.add("mmfas"); fields.add("satellite"); List<String> gmess1 = new ArrayList<String>(); gmess1.add("'gmes-mmfas'"); gmess1.add("'Sentinel1'"); List<String> gmess2 = new ArrayList<String>(); gmess2.add("'gmes-mmfas'"); gmess2.add("'Sentinel2'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(gmess1); values.add(gmess2); insert( table, fields, values); } public void addFAS() throws SQLException { String table = "FAS"; List<String> fields = new ArrayList<String>(); fields.add("fasId"); fields.add("name"); fields.add("description"); fields.add("externalFAS"); fields.add("platform"); fields.add("server"); List<String> gmess1 = new ArrayList<String>(); gmess1.add("'s1-fas'"); gmess1.add("'FAS Sentinel 1'"); gmess1.add("'This server computes Feasibility Analysis for the sensors of the Sentinel 1 platform.'"); //Internal FAS gmess1.add("FALSE"); gmess1.add("'Sentinel1'"); gmess1.add("1"); List<String> gmess2 = new ArrayList<String>(); gmess2.add("'s2-fas'"); gmess2.add("'FAS Sentinel 2'"); gmess2.add("'This server computes Feasibility Analysis for the sensors of the Sentinel 2 platform.'"); //Internal FAS gmess2.add("FALSE"); gmess2.add("'Sentinel2'"); gmess2.add("2"); List<List<String>> values = new ArrayList<List<String>>(); values.add(gmess1); values.add(gmess2); insert( table, fields, values); } // @Test public void addSatellites() throws SQLException { String table = "SatellitePlatform"; List<String> fields = new ArrayList<String>(); // fields.add("osffile"); // fields.add("tlefile"); fields.add("satelliteId"); fields.add("name"); fields.add("description"); fields.add("orbittype"); fields.add("href"); List<String> sentinel1 = new ArrayList<String>(); sentinel1.add("'Sentinel1'"); sentinel1.add("'Sentinel1'"); sentinel1.add("'Sentinel 1 is a SAR satellite part of the Sentinel project.'"); sentinel1.add("'SSO'"); sentinel1.add("'http://www.esa.int/Our_Activities/Observing_the_Earth/GMES/Sentinel-1'"); List<String> sentinel2 = new ArrayList<String>(); sentinel2.add("'Sentinel2'"); sentinel2.add("'Sentinel2'"); sentinel2.add("'Sentinel 2 is a optical satellite part of the Sentinel project.'"); sentinel2.add("'SSO'"); sentinel2.add("'http://www.esa.int/Our_Activities/Observing_the_Earth/GMES/Sentinel-2'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(sentinel1); values.add(sentinel2); insert( table, fields, values); } // @Test public void addSentinel1Sensor() throws SQLException { String table = "Sensor"; List<String> fields = new ArrayList<String>(); // fields.add("sdffile"); fields.add("sensorId"); fields.add("sensorName"); fields.add("sensorDescription"); fields.add("type"); fields.add("bandType"); fields.add("minLatitude"); fields.add("maxLatitude"); fields.add("minLongitude"); fields.add("maxLongitude"); fields.add("mass"); fields.add("maxPowerConsumption"); fields.add("acqMethod"); fields.add("applications"); fields.add("platform"); List<String> sentinel1 = new ArrayList<String>(); sentinel1.add("'S1SAR'"); sentinel1.add("'Sentinel 1 SAR'"); sentinel1.add("'The Sentinel-1 SAR mission is part of the GMES system, which is designed to\n" + "provide an independent and operational information capacity to the European Union\n" + "to warrant environment and security policies and to support sustainable economic\n" + "growth. In particular, the mission will provide timely and high quality remote\n" + "sensing data to support monitoring the open ocean and the changes to marine and\n" + "coastal environmental conditions.'"); sentinel1.add("'SAR'"); sentinel1.add("'C-BAND'"); sentinel1.add("-90"); sentinel1.add("90"); sentinel1.add("-180"); sentinel1.add("180"); sentinel1.add("880"); sentinel1.add("4368"); sentinel1.add("'C-band SAR'"); sentinel1.add("'C-band SAR all-weather imaging capability'"); sentinel1.add("'Sentinel1'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(sentinel1); insert( table, fields, values); } // @Test public void addSentinel1SARSensorChar() throws SQLException { String table = "SarSensorCharacteristics"; List<String> fields = new ArrayList<String>(); // fields.add("sdffile"); fields.add("antennaLength"); fields.add("antennaWidth"); fields.add("groundLocationAccuracy"); fields.add("revisitTimeInDays"); fields.add("transmitFrequencyBand"); fields.add("transmitCenterFrequency"); fields.add("sensor"); List<String> s1Char = new ArrayList<String>(); s1Char.add("12.3"); s1Char.add("0.82"); s1Char.add("0.0"); s1Char.add("3"); s1Char.add("'C'"); s1Char.add("5.405"); //Sensor 1 = sentinel1 s1Char.add("'S1SAR'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(s1Char); insert( table, fields, values); } // @Test public void addSentinel2Sensor() throws SQLException { String table = "Sensor"; List<String> fields = new ArrayList<String>(); // fields.add("sdffile"); fields.add("sensorId"); fields.add("sensorName"); fields.add("sensorDescription"); fields.add("type"); fields.add("bandType"); fields.add("minLatitude"); fields.add("maxLatitude"); fields.add("minLongitude"); fields.add("maxLongitude"); fields.add("mass"); fields.add("maxPowerConsumption"); fields.add("acqMethod"); fields.add("applications"); fields.add("platform"); List<String> sentinel2 = new ArrayList<String>(); sentinel2.add("'S2OPT'"); sentinel2.add("'Sentinel 2 OPT'"); sentinel2.add("'Sentinel-2 is a multispectral operational imaging mission within the GMES \n" + "(Global Monitoring for Environment and Security) program, jointly implemented by the EC \n" + "(European Commission) and ESA (European Space Agency) for global land observation \n" + "(data on vegetation, soil and water cover for land, inland waterways and coastal areas, \n" + "and also provide atmospheric absorption and distortion data corrections) at high resolution \n" + "with high revisit capability to provide enhanced continuity of data \n" + "so far provided by SPOT-5 and Landsat-7.'"); sentinel2.add("'OPT'"); sentinel2.add("NULL"); sentinel2.add("-56"); sentinel2.add("83"); sentinel2.add("-180"); sentinel2.add("180"); sentinel2.add("290"); sentinel2.add("266"); sentinel2.add("'Pushbroom'"); sentinel2.add("'Multispectral Imager'"); sentinel2.add("'Sentinel2'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(sentinel2); insert( table, fields, values); } // @Test public void addSentinel2OPTSensorChar() throws SQLException { String table = "OptSensorCharacteristics"; List<String> fields = new ArrayList<String>(); // fields.add("sdffile"); fields.add("acrossTrackFOV"); fields.add("minAcrossTrackAngle"); fields.add("maxAcrossTrackAngle"); fields.add("minAlongTrackAngle"); fields.add("maxAlongTrackAngle"); fields.add("swathWidth"); fields.add("groundLocationAccuracy"); fields.add("revisitTimeInDays"); fields.add("numberOfBands"); fields.add("sensor"); List<String> s2Char = new ArrayList<String>(); s2Char.add("20.6"); s2Char.add("-27.0"); s2Char.add("27.0"); s2Char.add("0.0"); s2Char.add("0.0"); s2Char.add("290000"); s2Char.add("50.0"); s2Char.add("5.0"); s2Char.add("13"); //Sensor 2 = sentinel2 s2Char.add("'S2OPT'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(s2Char); insert( table, fields, values); } // @Test public void addSentinel2InstrumentModes() throws SQLException { String table = "InstrumentMode"; List<String> fields = new ArrayList<String>(); fields.add("imId"); fields.add("name"); fields.add("description"); List<String> sm = new ArrayList<String>(); sm.add("'MSI'"); sm.add("'MSI'"); sm.add("'The instrument is based on the pushbroom observation concept. The telescope features a TMA (Three Mirror Anastigmat) design with a pupil diameter of 150 mm, providing a very good imaging quality all across its wide FOV (Field of View). The equivalent swath width is 290 km. The telescope structure and the mirrors are made of silicon carbide (SiC) which allows to minimize thermoelastic deformations.'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(sm); insert( table, fields, values); } // @Test public void addSentinel2InstrumentModesOptChar () throws SQLException { String table = "OptImCharacteristics"; List<String> fields = new ArrayList<String>(); // fields.add("sdffile"); fields.add("acrossTrackResolution"); fields.add("alongTrackResolution"); fields.add("maxPowerConsumption"); fields.add("numberOfSamples"); fields.add("bandType"); fields.add("minSpectralRange"); fields.add("maxSpectralRange"); fields.add("snrRatio"); fields.add("noiseEquivalentRadiance"); //Foreign key fields.add("instMode"); fields.add("sensor"); // MSI (Multi spectral instrument) List<String> s1Char = new ArrayList<String>(); s1Char.add("5"); s1Char.add("5"); s1Char.add("266.0"); s1Char.add("12000"); s1Char.add("'VIS'"); s1Char.add("490.0"); s1Char.add("690.0"); s1Char.add("170.0"); s1Char.add("0.1"); s1Char.add("'MSI'"); s1Char.add("'S2OPT'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(s1Char); insert( table, fields, values); } // @Test public void addSentinel1InstrumentModes() throws SQLException { String table = "InstrumentMode"; List<String> fields = new ArrayList<String>(); fields.add("imId"); fields.add("name"); fields.add("description"); List<String> sm = new ArrayList<String>(); sm.add("'SM'"); sm.add("'SM'"); sm.add("'The conventional SAR strip mapping mode assumes a fixed pointing direction \n" + "of the radar antenna broadside to the platform track. \n" + "A strip map is an image formed in width by the swath of the SAR and \n" + "follows the length contour of the flight line of the platform itself. \n" + "A detailed description of this mode you will find on the topic SLAR.'"); List<String> iw = new ArrayList<String>(); iw.add("'IW'"); iw.add("'IW'"); iw.add("'The IW mode acquires data of wide swaths (composed of 3 sub-swaths),\n" + "at the expense of resolution, using the TOPSAR imaging technique. The TOPSAR\n" + "imaging is a form of ScanSAR imaging (the antenna beam is switched cyclically\n" + "among the three sub-swaths) where, for each burst, the beam\n" + "is electronically steered from backward to forward in the azimuth direction.\n" + "This leads to uniform NESZ and ambiguity levels within the\n" + "scan bursts, resulting in a higher quality image.'"); List<String> ew = new ArrayList<String>(); ew.add("'EW'"); ew.add("'EW'"); ew.add("'The EW mode uses the TOPSAR imaging technique.\n" + "The EW mode provides a very large swath coverage (obtained\n" + "from imaging 5 sub-swaths) at the expense of a further reduction in resolution.\n" + "The EW mode is a TOPSAR single sweep mode. The TOPSAR\n" + "imaging is a form of ScanSAR imaging (the antenna beam is switched cyclically\n" + "among the three sub-swaths) where, for each burst, the beam\n" + "is electronically steered from backward to forward in the azimuth direction.\n" + "This leads to uniform NESZ and ambiguity levels within the\n" + "scan bursts, resulting in a higher quality image.'"); List<String> wv = new ArrayList<String>(); wv.add("'WV'"); wv.add("'WV'"); wv.add("'The Synthetic Aperture Radar can be operated in wave mode. \n" + "The primary purpose is to measure directional wave spectra - wave energy \n" + "as a function of the directions and lengths of waves at the ocean surface - \n" + "from the backscattered radiation from sample areas. \n" + "For this function the SAR collects data at spatial intervals of either 200 km \n" + "(nominally) or 300 km anywhere within the swath available to the SAR mode \n" + "(100 km wide) in steps of approximately 2 km.'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(sm); values.add(iw); values.add(ew); values.add(wv); insert( table, fields, values); } // @Test public void addSentinel1InstrumentModesSarChar () throws SQLException { String table = "SarImCharacteristics"; List<String> fields = new ArrayList<String>(); // fields.add("sdffile"); fields.add("acrossTrackResolution"); fields.add("alongTrackResolution"); fields.add("maxPowerConsumption"); fields.add("minAcrossTrackAngle"); fields.add("maxAcrossTrackAngle"); fields.add("minAlongTrackAngle"); fields.add("maxAlongTrackAngle"); fields.add("swathWidth"); fields.add("radiometricResolution"); fields.add("minRadioStab"); fields.add("maxRadioStab"); fields.add("minAlongTrackAmbRatio"); fields.add("maxAlongTrackAmbRatio"); fields.add("minAcrossTrackAmbRatio"); fields.add("maxAcrossTrackAmbRatio"); fields.add("minNoiseEquivalentSO"); fields.add("maxNoiseEquivalentSO"); //Foreign key fields.add("instMode"); fields.add("sensor"); // Stripmap (SM) List<String> s1Char = new ArrayList<String>(); s1Char.add("5"); s1Char.add("5"); s1Char.add("4368"); s1Char.add("20"); s1Char.add("45"); s1Char.add("20"); s1Char.add("45"); s1Char.add("80"); s1Char.add("1"); s1Char.add("1"); s1Char.add("1"); s1Char.add("-22"); s1Char.add("-25"); s1Char.add("-22"); s1Char.add("-25"); s1Char.add("-22"); s1Char.add("-22"); s1Char.add("'SM'"); s1Char.add("'S1SAR'"); // Interferometric Wide Swath (IWS) List<String> s2Char = new ArrayList<String>(); s2Char.add("5"); s2Char.add("20"); s2Char.add("4075"); s2Char.add("25"); s2Char.add("90"); s2Char.add("25"); s2Char.add("90"); s2Char.add("250"); s2Char.add("1"); s2Char.add("1"); s2Char.add("1"); s2Char.add("-22"); s2Char.add("-25"); s2Char.add("-22"); s2Char.add("-25"); s2Char.add("-22"); s2Char.add("-22"); s2Char.add("'IW'"); s2Char.add("'S1SAR'"); // Extra Wide Swath (EWS) List<String> s3Char = new ArrayList<String>(); s3Char.add("25"); s3Char.add("40"); s3Char.add("4368"); s3Char.add("20"); s3Char.add("90"); s3Char.add("20"); s3Char.add("90"); s3Char.add("400"); s3Char.add("1"); s3Char.add("1"); s3Char.add("1"); s3Char.add("-22"); s3Char.add("-25"); s3Char.add("-22"); s3Char.add("-25"); s3Char.add("-22"); s3Char.add("-22"); s3Char.add("'EW'"); s3Char.add("'S1SAR'"); // Wave mode (WM) List<String> s4Char = new ArrayList<String>(); s4Char.add("5"); s4Char.add("5"); s4Char.add("4368"); s4Char.add("23"); s4Char.add("36.5"); s4Char.add("20"); s4Char.add("45"); s4Char.add("20"); s4Char.add("1"); s4Char.add("1"); s4Char.add("1"); s4Char.add("-22"); s4Char.add("-25"); s4Char.add("-22"); s4Char.add("-25"); s4Char.add("-22"); s4Char.add("-22"); s4Char.add("'WV'"); s4Char.add("'S1SAR'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(s1Char); values.add(s2Char); values.add(s3Char); values.add(s4Char); insert( table, fields, values); } // @Test public void addSentinel1PolarizationModes() throws SQLException { String table = "PolarisationMode"; List<String> fields = new ArrayList<String>(); fields.add("pmId"); fields.add("name"); fields.add("description"); List<String> hh = new ArrayList<String>(); hh.add("'HH'"); hh.add("'HH'"); hh.add("'Single horizontal mode'"); List<String> vv = new ArrayList<String>(); vv.add("'VV'"); vv.add("'VV'"); vv.add("'Single vertical mode'"); List<String> hv = new ArrayList<String>(); hv.add("'HV'"); hv.add("'HV'"); hv.add("'Dual horizontal vertical mode'"); List<String> vh = new ArrayList<String>(); vh.add("'VH'"); vh.add("'VH'"); vh.add("'Dual vertical horizontal mode'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(hh); values.add(vv); values.add(hv); values.add(vh); insert( table, fields, values); } // @Test public void addInstrumentModesPolarisationModesJointures() throws SQLException { String table = "lnk_im_pm"; // String[] ims = {"'SM'","'IW'","'EW'","'WV'"}; String[] ims = {"1","2","3","4"}; String[] pms = {"'HH'","'VV'","'HV'","'VH'"}; List<String> fields = new ArrayList<String>(); fields.add("instMode"); fields.add("polMode"); List<List<String>> values = new ArrayList<List<String>>(); for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { List<String> hh = new ArrayList<String>(); hh.add("" + ims[i]); hh.add("" + pms[j]); values.add(hh); } } List<String> hh = new ArrayList<String>(); hh.add("" + ims[3]); hh.add("" + pms[0]); values.add(hh); List<String> vv = new ArrayList<String>(); vv.add("" + ims[3]); vv.add("" + pms[1]); values.add(vv); insert( table, fields, values); } // @Test public void addStationsFromXMLFile() throws ParserConfigurationException, FileNotFoundException, SAXException, IOException { List<GroundStation> stations = new ArrayList<GroundStation>(); DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder(); String filePath = "C:\\Users\\re-cetienne\\.dream\\fas\\stations.xml"; File inputDataFile = new File(filePath); if (!inputDataFile.exists()) { throw new FileNotFoundException("File " + filePath + " could not be found."); } Document doc = documentBuilder.parse(inputDataFile); System.out.println( "" + doc.getFirstChild().getNodeName() ); System.out.println(""); for (int i = 0; i < doc.getFirstChild().getChildNodes().getLength(); i++) { Node dataBlock = doc.getFirstChild().getChildNodes().item(i); String name = dataBlock.getNodeName(); System.out.println(""+ name); if (name.contains("Data_Block")) { for (int j = 0; j < dataBlock.getChildNodes().getLength(); j++) { Node stationsList = dataBlock.getChildNodes().item(j); System.out.println(" - " + stationsList.getNodeName()); if (stationsList.getNodeName().contains("List_of_Ground_Stations")) { for (int k = 0; k < stationsList.getChildNodes().getLength(); k++) { Node stat = stationsList.getChildNodes().item(k); if (stat.getNodeName().contains("Ground_Station")) { GroundStation station = new GroundStation(); for (int l = 0; l < stat.getChildNodes().getLength(); l++) { Node property = stat.getChildNodes().item(l); String propName = property.getNodeName(); if (propName.contains("Station_id")) { String value = property.getTextContent(); System.out.println("" + value); station.setIntId(value); } if (propName.contains("Descriptor")) { String value = property.getTextContent(); System.out.println("" + value); station.setName(value); } if (propName.contains("Antenna")) { String value = property.getTextContent(); System.out.println("" + value); station.setAntennaType(value); } if (propName.contains("Location")) { System.out.println("" + property.getChildNodes().getLength()); for (int m = 0; m < property.getChildNodes().getLength(); m++) { Node coord = property.getChildNodes().item(m); String coordName = coord.getNodeName(); if (coordName.contains("Long")) { String value = coord.getTextContent(); System.out.println("" + Double.valueOf(value)); station.setLon(Double.valueOf(value)); } if (coordName.contains("Lat")) { String value = coord.getTextContent(); System.out.println("" + Double.valueOf(value)); station.setLat(Double.valueOf(value)); } if (coordName.contains("Alt")) { String value = coord.getTextContent(); System.out.println("" + Double.valueOf(value)); station.setAlt(Double.valueOf(value)); } } } // End if (propName.contains("Location")) } // End for (int l = 0; l < stat.getChildNodes().getLength(); l++) stations.add(station); } } // End for(int k = 0; k < stationsList.getChildNodes().getLength(); k++) } } } } // End for (int i = 0; i < doc.getFirstChild().getChildNodes().getLength(); i++) List<String> fields = new ArrayList<String>(); // fields.add("groundStationId"); fields.add("name"); fields.add("longitude"); fields.add("latitude"); fields.add("altitude"); fields.add("antennaType"); fields.add("internationalIdentifier"); for (GroundStation groundStation : stations) { List<String> value = new ArrayList<String>(); value.add("'" + groundStation.getName() + "'"); value.add("" + groundStation.getLon()); value.add("" + groundStation.getLat()); value.add("" + groundStation.getAlt()); value.add("'" + groundStation.getAntennaType() + "'"); value.add("'" + groundStation.getIntId() + "'"); List<List<String>> values = new ArrayList<List<String>>(); values.add(value); try { TestConnexion.insert("GroundStation", fields, values); } catch (SQLException ex) { // Logger.getLogger(Populate.class.getName()).log(Level.SEVERE, null, ex); } } } // @Test public void addFucinoUnavailibilities() throws SQLException { String gsId = "1"; List<String> fields = new ArrayList<String>(); fields.add("beginU"); fields.add("endU"); fields.add("cause"); fields.add("station"); List<String> uStat1 = new ArrayList<String>(); uStat1.add("'2013-08-12T00:00:00Z'"); uStat1.add("'2013-08-13T00:00:00Z'"); uStat1.add("'Maintenance'"); uStat1.add(gsId); List<String> uStat2 = new ArrayList<String>(); uStat2.add("'2013-08-01T06:00:00Z'"); uStat2.add("'2013-08-01T18:00:00Z'"); uStat2.add("'Occupied'"); uStat2.add(gsId); List<String> uStat3 = new ArrayList<String>(); uStat3.add("'2013-08-23T00:00:00Z'"); uStat3.add("'2013-08-24T12:00:00Z'"); uStat3.add("'Maintenance'"); uStat3.add(gsId); List<List<String>> values = new ArrayList<List<String>>(); values.add(uStat1); values.add(uStat2); values.add(uStat3); insert( "Unavailibility", fields, values); } // @Test public void addSentinel1Unavailibilities() throws SQLException { String sensorId = "'S1SAR'"; List<String> fields = new ArrayList<String>(); fields.add("beginU"); fields.add("endU"); fields.add("cause"); fields.add("sensor"); List<String> uStat1 = new ArrayList<String>(); uStat1.add("'2013-08-15T00:00:00Z'"); uStat1.add("'2013-08-16T00:00:00Z'"); uStat1.add("'Maintenance'"); uStat1.add(sensorId); List<String> uStat2 = new ArrayList<String>(); uStat2.add("'2013-08-19T06:00:00Z'"); uStat2.add("'2013-08-19T18:00:00Z'"); uStat2.add("'Occupied'"); uStat2.add(sensorId); List<String> uStat3 = new ArrayList<String>(); uStat3.add("'2013-08-21T00:00:00Z'"); uStat3.add("'2013-08-21T12:00:00Z'"); uStat3.add("'Occupied'"); uStat3.add(sensorId); List<List<String>> values = new ArrayList<List<String>>(); values.add(uStat1); values.add(uStat2); values.add(uStat3); insert( "Unavailibility", fields, values); } }
[ "claire.etiennen7@32c1ed3f-96a1-792a-74b9-c4000208d253" ]
claire.etiennen7@32c1ed3f-96a1-792a-74b9-c4000208d253
ae8bbabdcda53e62ac5ddcbd69145d57a3b9da99
56712e4e732e40a285b6eafd7fe5bc4666908bc2
/src/test/java/com/gome/storefeedback/service/test/GoodsBrandControllerTest.java
3041fefce46d4bbd2c572b4a1b37fdbf7560f0c9
[]
no_license
pologood/storefeedback
b0c9b0444b350ed8a1cc9a14fc3c7d761daad1ff
74dd658092417e636ce2a21c72f4e2680a70fdef
refs/heads/master
2021-01-19T16:02:55.559741
2016-04-12T14:43:42
2016-04-12T14:43:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,153
java
package com.gome.storefeedback.service.test; import static org.junit.Assert.*; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.PipedInputStream; import java.io.PipedOutputStream; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.apache.activemq.util.ByteArrayInputStream; import org.apache.geronimo.mail.util.StringBufferOutputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.utils.URIBuilder; import org.apache.http.entity.BufferedHttpEntity; import org.apache.http.entity.FileEntity; import org.apache.http.entity.InputStreamEntity; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.util.EntityUtils; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import org.dom4j.io.XMLWriter; import org.junit.Test; import org.springframework.test.annotation.Rollback; import com.gome.storefeedback.entity.GoodsBrand; import com.gome.storefeedback.exception.BaseException; import com.gome.storefeedback.service.GoodsBrandService; import com.gome.storefeedback.service.common.AbstractTransactionalSpringContextTestCase; /** * 解析xml并插入数据的测试用例 * * @author Ma.Mingyang * @date 2015年2月9日下午12:25:37 * @Copyright(c) gome inc Gome Co.,LTD */ public class GoodsBrandControllerTest extends AbstractTransactionalSpringContextTestCase { @Resource private GoodsBrandService service; @Test @Rollback(false) public void testSaveGoods() throws BaseException, DocumentException, IOException { service.insertBatchGoodsBrand(parseXML()); } /** * 解析xml * * @throws DocumentException * @throws IOException */ @SuppressWarnings("unchecked") protected List<GoodsBrand> parseXML() throws DocumentException, IOException { SAXReader reader = new SAXReader(); Document document = reader.read(new File("d:/MD103.xml")); // Document document = reader.read(req.getInputStream()); Element rootElement = document.getRootElement(); Element headerElement = (Element) rootElement .selectSingleNode("//HEADER"); // 解析header部分 String interface_id = headerElement.element("INTERFACE_ID") .getTextTrim(); String message_id = headerElement.element("MESSAGE_ID").getTextTrim(); String sender = headerElement.element("SENDER").getTextTrim(); String receiver = headerElement.element("RECEIVER").getTextTrim(); String dtsend = headerElement.element("DTSEND").getTextTrim(); Map<String, String> headerMap = new HashMap<String, String>(); headerMap.put("interface_id", interface_id); headerMap.put("message_id", message_id); headerMap.put("sender", sender); headerMap.put("receiver", receiver); headerMap.put("dtsend", dtsend); // 解析数据部分 List<Element> itemList = rootElement .selectNodes("//XML_DATA/MD103/ITEMS/ITEM");// ok // 封装结果数据 List<GoodsBrand> resultList = new ArrayList<GoodsBrand>(); // 遍历 for (Iterator<Element> iterator = itemList.iterator(); iterator .hasNext();) { GoodsBrand goods = new GoodsBrand(); Element element = (Element) iterator.next(); goods.setBrandCode(element.element("PRODH").getTextTrim());// 品牌 goods.setCnText(element.element("VTEXT").getTextTrim());// 中文描述 goods.setEnText(element.element("TEXT1").getTextTrim());// 英文描述 goods.setBrandClass(element.element("ZPINPAI").getTextTrim());// 品牌类型 goods.setUpdateFlag(element.element("UPDATE_FLAG").getTextTrim());// 更新标志 resultList.add(goods); } return resultList; } /** * 模拟http post请求,调用方法,将xml数据包含的流中 * @throws BaseException * @throws ClientProtocolException * @throws IOException * @throws URISyntaxException */ @Test public void httpReq() throws BaseException, ClientProtocolException, IOException, URISyntaxException{ HttpClient client=new DefaultHttpClient(); //post请求 URI uri=new URIBuilder().setScheme("http").setHost("localhost") .setPort(8080) .setPath("/storefeedback/n/goodsBrand/xmlMD103") .build(); //post.setURI(uri); System.out.println(uri+"---------"); HttpPost post=new HttpPost(uri); //HttpPost post=new HttpPost("http://localhost:8080/storefeedback/n/goodsBrand/xmlMD103"); //HttpEntity entity =new StringEntity(createXML()); HttpEntity entity=new FileEntity(new File("d:/MD103.xml")); post.setEntity(entity); //post.setHeader("Host", "www.baidu.com"); HttpResponse response = client.execute(post); //System.out.println("----"+post.getHeaders("Host")[0]+"----"); HttpEntity entity2 = response.getEntity(); System.out.println(EntityUtils.toString(entity2)); //System.out.println(createXML()); } /** * 生产xml,目前是假数据 * * @throws BaseException */ protected String createXML() throws BaseException { Document doc = DocumentHelper.createDocument(); // root Element root = doc.addElement("ns1:MT_MDM_Req"); root.addAttribute("xmlns:ns1", "http://gome.com/GSM/MDM/Inbound"); // HEADER Element first = root.addElement("HEADER"); first.addElement("INTERFACE_ID").addText("MD104"); first.addElement("MESSAGE_ID").addText("123123123123123123123"); first.addElement("SENDER").addText("GSM"); first.addElement("RECEIVER").addText("ECC"); first.addElement("DTSEND").addText("1"); // XML_DATA Element xml_data = root.addElement("XML_DATA"); Element md103 =xml_data.addElement("MD103"); Element items =md103.addElement("ITEMS"); Element second = items.addElement("ITEM"); second.addElement("PRODH").addText("1230006"); second.addElement("VTEXT").addText("na123me2"); second.addElement("TEXT1").addText("123"); second.addElement("ZPINPAI").addText("123"); second.addElement("UPDATE_FLAG").addText("1"); /*Element details = second.addElement("DETAILS"); details.addElement("KEY").addText("key1"); details.addElement("MESSAGE").addText("MESSAGE1");*/ OutputFormat outputFormat = OutputFormat.createPrettyPrint(); BufferedOutputStream b=new BufferedOutputStream(System.out); StringBuffer sb=new StringBuffer(); try {//将数据字符串放到输出流中 XMLWriter writer = new XMLWriter(new StringBufferOutputStream(sb), outputFormat); writer.write(doc); writer.close(); } catch (Exception e) { throw new BaseException("return value error!"); } return sb.toString(); } /*public static void main(String[] args) throws BaseException { createXML(); }*/ }
[ "zhenxiu_zhao@163.com" ]
zhenxiu_zhao@163.com
ce99f2b5bee92ff01661ffecb4e4e0674ad3aeab
f77b480615b8cce843b1a90c71c14ec1f2f42561
/app/src/main/java/com/ravi/flashnews/background/NewsJobService.java
ca8660339db04beb3baa8b9c1ef209efa0efaba5
[]
no_license
raviPradhan/flashNews
49b200c3839efbd984df0c770c8983b49bfbce97
11529e62994c1859b7f895fd922308c522d96f4c
refs/heads/master
2018-09-28T04:35:03.233829
2018-06-17T08:33:22
2018-06-17T08:33:22
110,947,650
0
0
null
null
null
null
UTF-8
Java
false
false
2,885
java
package com.ravi.flashnews.background; import android.content.Context; import com.firebase.jobdispatcher.JobParameters; import com.firebase.jobdispatcher.JobService; import com.ravi.flashnews.loaders.BackgroundAsyncTask; import com.ravi.flashnews.model.News; import com.ravi.flashnews.utils.NotificationUtils; import java.util.ArrayList; public class NewsJobService extends JobService { private BackgroundAsyncTask mBackgroundTask; /** * The entry point to your Job. Implementations should offload work to another thread of * execution as soon as possible. * This is called by the Job Dispatcher to tell us we should start our job. Keep in mind this * method is run on the application's main thread, so we need to offload work to a background * thread. * * @return whether there is more work remaining. */ @Override public boolean onStartJob(final JobParameters jobParameters) { // Here's where we make an AsyncTask so that this is no longer on the main thread mBackgroundTask = new BackgroundAsyncTask(new JobCallback() { @Override public void resultCallback(ArrayList<News> news) { Context context = NewsJobService.this; // Prepare to show notification NotificationUtils.generateNotificationLayout(context, news); //Override onPostExecute and called jobFinished. Pass the job parameters // and false to jobFinished. This will inform the JobManager that your job is done // and that you do not want to reschedule the job. /* * Once the AsyncTask is finished, the job is finished. To inform JobManager that * you're done, you call jobFinished with the jobParamters that were passed to your * job and a boolean representing whether the job needs to be rescheduled. This is * usually if something didn't work and you want the job to try running again. */ jobFinished(jobParameters, false); } }); // Execute the AsyncTask mBackgroundTask.execute(); return true; } public interface JobCallback { void resultCallback(ArrayList<News> news); } /** * Called when the scheduling engine has decided to interrupt the execution of a running job, * most likely because the runtime constraints associated with the job are no longer satisfied. * * @return whether the job should be retried */ @Override public boolean onStopJob(com.firebase.jobdispatcher.JobParameters job) { // If mBackgroundTask is valid, cancel it //Return true to signify the job should be retried if (mBackgroundTask != null) mBackgroundTask.cancel(true); return true; } }
[ "ravi.pradhan@druplets.in" ]
ravi.pradhan@druplets.in
40e22da9efa643c2d2be098a5f05f9fa259fa7a9
b14e869d3639c465dd9e753ec22bcf5065f79144
/src/main/java/eftaios/model/match/Game.java
9d2c8ceee69743ed8378b86a2f6704a80c49c49d
[]
no_license
riccardo-lomazzi/EFTAIOS
55c8f0cd71a1f4a56dc88aa4ffa30290df9d590d
c98a78f15aa7c5c0978edaffdc3e1510e91c5b4a
refs/heads/master
2020-03-26T22:32:36.480036
2019-03-09T10:14:16
2019-03-09T10:14:16
145,467,273
0
0
null
null
null
null
UTF-8
Java
false
false
13,625
java
package eftaios.model.match; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.io.Serializable; import java.math.BigInteger; import java.security.SecureRandom; import java.util.List; import eftaios.ExceptionLogger; import eftaios.model.avatars.AlienPlayer; import eftaios.model.avatars.HumanPlayer; import eftaios.model.avatars.Player; import eftaios.model.board.GameBoard; import eftaios.model.decks.drawables.Card; import eftaios.model.decks.drawables.DefenseItem; import eftaios.model.decks.drawables.GreenEscapePodCard; import eftaios.model.decks.drawables.Item; import eftaios.model.events.GameEvent; import eftaios.model.events.IllegalActionEvent; import eftaios.model.events.IllegalPlayerEvent; import eftaios.model.events.LogPrintEvent; import eftaios.model.events.SystemEventsMessage; import eftaios.model.events.TooMuchItemsEvent; import eftaios.model.gamerules.Rules; import eftaios.model.managers.DeckManager; import eftaios.model.managers.GameBoardManager; import eftaios.model.managers.PlayerManager; import eftaios.model.managers.RulesManager; import eftaios.model.managers.TurnManager; /** * Class created using the Mediator pattern (it's actually the Mediator) * */ public class Game implements Serializable { /** * */ private static final long serialVersionUID = 8948337993477824106L; protected DeckManager deckManager; protected PlayerManager playerManager; protected RulesManager rulesManager; protected TurnManager turnManager; protected GameBoardManager gameboardManager; protected BigInteger gameID; protected File serverLog; /** * Create a new game with the given settings * * @param numberOfPlayers * number of players that will be playing the game * @param rules * type of rules that the game will follow * @param mapName * name of the map */ public Game(int numberOfPlayers, Rules rules, String mapPath) throws FileNotFoundException { this.gameID = new BigInteger(130, new SecureRandom()); // declaration of every Singleton instance of Managers deckManager = new DeckManager(); playerManager = new PlayerManager(numberOfPlayers); rulesManager = new RulesManager(rules); turnManager = new TurnManager(); gameboardManager = new GameBoardManager(mapPath); } /** * Create a new game with the given settings and game identifier * * @param numberOfPlayers * number of players that will be playing the game * @param rules * type of rules that the game will follow * @param mapName * name of the map * @param gameID * specific identifier for the game */ public Game(int numberOfPlayers, Rules rules, String mapPath, BigInteger gameID) throws FileNotFoundException { this.gameID = gameID; deckManager = new DeckManager(); playerManager = new PlayerManager(numberOfPlayers); rulesManager = new RulesManager(rules); turnManager = new TurnManager(); gameboardManager = new GameBoardManager(mapPath); } /** * Handle the first game of the game initializing components * * @return the event that will start the first turn of the first player */ public GameEvent firstGameTurn() { serverLog = new File(".//serverGameLogs//gameLog" + gameID.toString() + ".txt"); try { serverLog.createNewFile(); } catch (IOException e) { ExceptionLogger.info(e); } // 1 - Get the array of players and pass it to the gameboard to assign // starting positions List<Player> playersArray = playerManager.getPlayersArray(); gameboardManager.movePlayersOnTheStartingPositions(playersArray); // 2 - Create decks deckManager.createDecks(rulesManager.getRules()); // 3 - Already begin the match return turnManager.beginTurn(playersArray); } /** * Handle the movement of a player * * @param player * the player to be moved * @param destination * the destination to reach * @return the event which represent the result of the move */ public GameEvent movePlayer(Player player, String destination) { if (player.equals(turnManager.getCurrentPlayer())) { // 1 - move the player somewhere if (player.canIMove() && !player.alreadyAttacked() && !player.hasAlreadyDrawed()) { return gameboardManager.movePlayer(player, destination); } else return new IllegalActionEvent("You used all your movements this turn"); } return new IllegalPlayerEvent(SystemEventsMessage.WRONGPLAYER.toString()); } /** * Handle the attacks of a player * * @param player * the attacker * @return the event which represent the result of the attack */ public GameEvent attack(Player player) { if (player.equals(turnManager.getCurrentPlayer())) { // if the current player can attack, then it's either an alien or a // player with an item // either way, in the end a player it's going to be eliminated if // it's on the place // so first we must check out if the current player can attack... if ((!rulesManager.canIAttack(player) || player.alreadyAttacked()) && !player.hasAlreadyMoved()) { // if not, exception return new IllegalActionEvent("Unable to attack"); } else { // try to attack. From now on, Game will just catch the // exception and notify the observer player.setAlreadyAttacked(true); return playerManager.attack(player, rulesManager.canAlienIncreaseSpeed()); } } else return new IllegalPlayerEvent(SystemEventsMessage.WRONGPLAYER.toString()); } /** * Handle the use of an item from a player * * @param player * the user of the item * @param item * the item to be used * @return the event which represent the result of the item usage */ public GameEvent useItem(Player player, Item item) { Item temp = null; if (player.equals(turnManager.getCurrentPlayer())) { // only humans can use items if (player instanceof HumanPlayer) { /* * items are added to a player only if they are usable so there * is no need to check it here Defense item cannot be used * directly */ if (player.hasItem(item) && !(item instanceof DefenseItem)) { /* * the item reference in the deck must put in the discarded * pile */ deckManager.discardItem(item); /* * the temp object will hold the item taken from the player */ temp = playerManager.removeItemfromPlayer(player, item); if (temp != null) { GameEvent effect = temp.dispatchEffect(player, playerManager, gameboardManager); if (effect != null) return effect; /* * user friendly messages to show why he can't use an * item */ else return new IllegalActionEvent("That item has no effect"); } else return new IllegalActionEvent("You don't have any items"); } else return new IllegalActionEvent("You can't use that item"); } else return new IllegalActionEvent("Aliens cannot use items"); } else return new IllegalPlayerEvent(SystemEventsMessage.WRONGPLAYER.toString()); } /** * Handle the draw of a card * * @param player * the drawer * @return the event which represent the result of the draw */ public GameEvent drawCard(Player player) { if (player.equals(turnManager.getCurrentPlayer())) { if (!player.alreadyAttacked() && !player.isSedated()) { Card drawed = deckManager.drawSectorCard(player, rulesManager.getRules()); player.setAlreadyDrawed(true); if (drawed == null) return new IllegalActionEvent("Unable to draw card in this sector"); if (drawed.hasItem() && rulesManager.areItemUsable() && !(player instanceof AlienPlayer)) { /* * need to check if the player has the maximum number of * item and handle the arrangement of the items if necessary */ if (player.getItems().size() < Player.getMaxOwnedItems()) { deckManager.givePlayerAnItem(player); } else { List<Item> items = player.getItems(); items.add(deckManager.drawItem()); return new TooMuchItemsEvent("Too much items get rid of one", items, drawed.getEvent()); } } /* * SPECIAL CASE 1: reached an Escape Pod Sector. WHAT TO DO: * must be extracted an escape pod card, to see if it's red or * green, then notify the view of the EscapePodCard picked up */ if (drawed instanceof GreenEscapePodCard && player instanceof HumanPlayer) { // SPECIAL CASE 2: Is the Card Green? Then, the player is // automatically a winner // First, I remove the player from the array, because he has // won and doesn't play anymore playerManager.removePlayerFromArray(player); return drawed.getEvent(); } else { return drawed.getEvent(); } } else return new IllegalPlayerEvent("Unable to draw card this turn"); } else return new IllegalPlayerEvent(SystemEventsMessage.WRONGPLAYER.toString()); } /** * Handle the arrangement of the items of a player * * @param player * @param items * to be given * @return the event that will notify the result of the arrangement */ public GameEvent setItemsTo(Player player, List<Item> itemsList) { if (player.equals(turnManager.getCurrentPlayer())) { return playerManager.giveItemsTo(player, itemsList); } else return new IllegalPlayerEvent(SystemEventsMessage.WRONGPLAYER.toString().toString()); } /** * @return the current player of the game */ public Player getCurrentPlayer() { return turnManager.getCurrentPlayer(); } /** * Handle the end of a turn * * @param player * @param log * match log to be updated * @return the event that will start the first turn of the first player */ public GameEvent endPlayerTurn(Player player, List<String> log) { if (player == null) return turnManager.beginTurn(playerManager.getPlayersArray()); if (player.equals(turnManager.getCurrentPlayer())) { updateLog(log); return turnManager.beginTurn(playerManager.getPlayersArray()); } else return new IllegalPlayerEvent(SystemEventsMessage.WRONGPLAYER.toString()); } private void updateLog(List<String> logs) { if (logs != null) { try { PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(".\\serverGameLogs\\gameLog" + gameID.toString() + ".txt", true))); for (String log : logs) { writer.println(log); } writer.close(); } catch (IOException e) { // TODO Auto-generated catch block ExceptionLogger.info(e); } } } /** * Handle the user request to see the game log * * @return the event that will show the match log */ public GameEvent getLog() { return new LogPrintEvent("Log For this Match", serverLog); } /** * @return the game identifier related to this object */ public BigInteger getGameID() { return gameID; } /** * removes a player from the player list */ public void removePlayer(Player player) { playerManager.removePlayerFromArray(player); } /** * @return the list of players playing the game */ public List<Player> getPlayers() { return playerManager.getPlayersArray(); } /** * @return the gameboard map object of this game */ public GameBoard getMap() { return gameboardManager.getMap(); } /** * @return current turn of the game */ public int getCurrentTurn() { return turnManager.getCurrentTurn(); } }
[ "riccardo.lomazzi@outlook.it" ]
riccardo.lomazzi@outlook.it
eee9bcce8cc93d13ef74d44139a148b65c2362c9
c97b26165d0488dc54d2b01bd72bfbb8a8f158fd
/src/main/java/com/unifilead/IndexController.java
2e36e269935100b356ac4411e903408a10a3f752
[]
no_license
hpbrasileiro09/spring-boot-web-mysql-mustache
881253bd62d46eea651759e94042aa99bee2ed93
ad771055b63508cce12bdda89c14663c162301f7
refs/heads/master
2021-01-19T00:17:24.044850
2016-11-06T21:21:20
2016-11-06T21:21:20
73,019,581
0
0
null
null
null
null
UTF-8
Java
false
false
313
java
package com.unifilead; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class IndexController { @RequestMapping("/") public String index(Map<String, Object> model){ return "index"; } }
[ "hpbrasileiro@Hernandos-MacBook-Pro.local" ]
hpbrasileiro@Hernandos-MacBook-Pro.local
4ab9e209f38babb171f690f3662b98f72c113c9a
7ee021d48faa9180044bc4ccf1c95d8ccef85398
/src/main/java/ru/ItemBook.java
ff5b7fb30cd155b7169d599dc0fdfc5e473e143b
[]
no_license
VladKazakov/JSF
c64c5309a3489d509884550df8b269753eb37477
b4b20db904965f9aa3ca506208a64691a2d36ce0
refs/heads/master
2021-01-20T07:57:28.808634
2017-05-02T20:27:15
2017-05-02T20:27:15
90,074,927
0
0
null
null
null
null
UTF-8
Java
false
false
961
java
package ru; import javax.persistence.*; /** * Created by vlad on 19.04.17. */ @Entity public class ItemBook extends Item { @Id @GeneratedValue private Long id; private String isbn; private String publisher; private Integer nbOfPage; private Boolean illustrations; public ItemBook() { } public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public String getPublisher() { return publisher; } public void setPublisher(String publisher) { this.publisher = publisher; } public Integer getNbOfPage() { return nbOfPage; } public void setNbOfPage(Integer nbOfPage) { this.nbOfPage = nbOfPage; } public Boolean getIllustrations() { return illustrations; } public void setIllustrations(Boolean illustrations) { this.illustrations = illustrations; } }
[ "vlad0102550@yandex.ru" ]
vlad0102550@yandex.ru
af0022dbbc45c42415a64b100ff967d41abd3513
1df4b5ab1fe287d300b4c9ad7d190d87d54194ee
/labcs-bank/src/com/bank/oops/Bank.java
af0c1dc48f7ad6940473ad02b8943e377bc5f6d1
[]
no_license
Parvathy-jfs/Lab-Week-2
9f394f12f2313701fc7f575de72b8faf87a7d257
861b4b9f04531510331174180039f8cbcd57a37f
refs/heads/master
2020-12-02T05:39:35.027995
2020-01-16T09:36:21
2020-01-16T09:36:21
230,908,258
0
0
null
null
null
null
UTF-8
Java
false
false
643
java
package com.bank.oops; public class Bank { public static void main(String[] args) { //creatingInstances(); } //CREATING INSTANCES public static void creatingInstances() { Account a1= null; //Creating the reference a1= new Account(); //Intializing the reference - instance? //a1.acceptDetails(); //without initialisation, //it displays null values of all datatypes, or at least write a constructor a1.displayDetails(); } // //WORKING WITH ARRAYS // Account a2; // a2= new Account(); // Account arr[]= new Account[2]; // arr[0]= a1; // arr[1] }
[ "noreply@github.com" ]
Parvathy-jfs.noreply@github.com
7e996f03e4275e60280ddca29829ee236291f394
b70da4dcbbef34870cd1455823741d3ff5a3e910
/aws-nimblestudio-studiocomponent/src/main/java/software/amazon/nimblestudio/studiocomponent/Configuration.java
6bc49e062f3aa966e8137049bc95dfa2a34c51de
[ "Apache-2.0" ]
permissive
prestomation/aws-cloudformation-resource-providers-nimblestudio
05f24f94bf038f64075150aca95355104718774e
58acc1adcdf933123dc50031439aedd1837065f6
refs/heads/main
2023-07-29T14:21:23.715647
2021-09-20T17:07:48
2021-09-20T17:07:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
197
java
package software.amazon.nimblestudio.studiocomponent; class Configuration extends BaseConfiguration { public Configuration() { super("aws-nimblestudio-studiocomponent.json"); } }
[ "noreply@github.com" ]
prestomation.noreply@github.com
230044c999bcb92e6fcf44b83983d5286613499d
f3c83efcfb9bfdea53e118a4901c0ab22b54eed7
/002-springboot/src/main/java/com/sh2004/springboot/web/StudentController.java
a1ec48172bca14f635a0878fbf6736c4db1210d6
[]
no_license
longlongdyl/springboot
08a409cf381342e3ba07b897e7d1315af8e8b02f
3fbf43e70605956060addef8869c57d1d9fa5b1c
refs/heads/master
2023-01-24T09:53:42.641596
2020-12-12T15:01:17
2020-12-12T15:01:17
320,856,171
0
0
null
null
null
null
UTF-8
Java
false
false
898
java
package com.sh2004.springboot.web; import com.sh2004.springboot.eneity.Student; import com.sh2004.springboot.service.StudentService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /** * @ProjectName: springboot * @Package: com.sh2004.springboot.web * @Description: java类作用描述 * @Author: 邓禹龙 * @CreateDate: 2020/12/6 1:08 * @Version: 1.0 * <p> * Copyright: Copyright (c) 2020 */ @Controller @Slf4j public class StudentController { @Autowired private StudentService studentService; @RequestMapping(value = "/springBoot/student") @ResponseBody public Object student() { return studentService.queryStudentById(2); } }
[ "e1163222706@163.com" ]
e1163222706@163.com
0690c4f4b56b36640931ca41f6dc8be0a7dd0b4b
19ed4f17a9f6f54c3b0ea9b6f09e472fc33a2896
/vsphere-ws/src/com/vmware/vm/VMLinkedClone.java
9de4fee3b9d0b1f5931b3a945ddec23fd2cd9cf2
[]
no_license
Onebooming/VMwareProject
934e5ca82acf38db4d9c5f1a0c2c042e3a43b6b8
9f509cfef0dc0ca63a5d2880c10578390530a4d0
refs/heads/master
2020-09-25T12:08:14.093145
2018-07-07T15:20:39
2018-07-07T15:20:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
31,076
java
package com.vmware.vm; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLSession; import javax.xml.ws.BindingProvider; import javax.xml.ws.soap.SOAPFaultException; import com.vmware.vim25.ArrayOfManagedObjectReference; import com.vmware.vim25.DynamicProperty; import com.vmware.vim25.InvalidCollectorVersionFaultMsg; import com.vmware.vim25.InvalidPropertyFaultMsg; import com.vmware.vim25.LocalizedMethodFault; import com.vmware.vim25.ManagedObjectReference; import com.vmware.vim25.ObjectContent; import com.vmware.vim25.ObjectSpec; import com.vmware.vim25.ObjectUpdate; import com.vmware.vim25.ObjectUpdateKind; import com.vmware.vim25.PropertyChange; import com.vmware.vim25.PropertyChangeOp; import com.vmware.vim25.PropertyFilterSpec; import com.vmware.vim25.PropertyFilterUpdate; import com.vmware.vim25.PropertySpec; import com.vmware.vim25.RetrieveOptions; import com.vmware.vim25.RetrieveResult; import com.vmware.vim25.RuntimeFaultFaultMsg; import com.vmware.vim25.ServiceContent; import com.vmware.vim25.TaskInfoState; import com.vmware.vim25.TraversalSpec; import com.vmware.vim25.UpdateSet; import com.vmware.vim25.VimPortType; import com.vmware.vim25.VimService; import com.vmware.vim25.VirtualDevice; import com.vmware.vim25.VirtualDisk; import com.vmware.vim25.VirtualDiskFlatVer1BackingInfo; import com.vmware.vim25.VirtualDiskFlatVer2BackingInfo; import com.vmware.vim25.VirtualDiskRawDiskMappingVer1BackingInfo; import com.vmware.vim25.VirtualDiskSparseVer1BackingInfo; import com.vmware.vim25.VirtualDiskSparseVer2BackingInfo; import com.vmware.vim25.VirtualHardware; import com.vmware.vim25.VirtualMachineCloneSpec; import com.vmware.vim25.VirtualMachineRelocateDiskMoveOptions; import com.vmware.vim25.VirtualMachineRelocateSpec; import com.vmware.vim25.VirtualMachineRelocateSpecDiskLocator; import com.vmware.vim25.VirtualMachineSnapshotInfo; import com.vmware.vim25.VirtualMachineSnapshotTree; /** * <pre> * VMLinkedClone * * This sample creates a linked clone from an existing snapshot * * Each independent disk needs a DiskLocator with * diskmovetype as moveAllDiskBackingsAndDisallowSharing * * <b>Parameters:</b> * url [required] : url of the web service * username [required] : username for the authentication * password [required] : password for the authentication * vmname [required] : Name of the virtual machine * snapshotname [required] : Name of the snaphot * clonename [required] : Name of the cloneName * * <b>Command Line:</b> * Create a linked clone * run.bat com.vmware.vm.VMLinkedClone --url [webserviceurl] * --username [username] --password [password] --vmname [myVM] * --snapshotname [snapshot name] --clonename [clone name] * </pre> */ public class VMLinkedClone { private static class TrustAllTrustManager implements javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager { @Override public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } @Override public void checkServerTrusted( java.security.cert.X509Certificate[] certs, String authType) throws java.security.cert.CertificateException { return; } @Override public void checkClientTrusted( java.security.cert.X509Certificate[] certs, String authType) throws java.security.cert.CertificateException { return; } } private static final ManagedObjectReference SVC_INST_REF = new ManagedObjectReference(); private static final String SVC_INST_NAME = "ServiceInstance"; private static VimService vimService; private static VimPortType vimPort; private static ServiceContent serviceContent; private static String url; private static String userName; private static String password; private static boolean help = false; private static boolean isConnected = false; private static String cloneName; private static String virtualMachineName; private static String snapshotName; private static void trustAllHttpsCertificates() throws Exception { // Create a trust manager that does not validate certificate chains: javax.net.ssl.TrustManager[] trustAllCerts = new javax.net.ssl.TrustManager[1]; javax.net.ssl.TrustManager tm = new TrustAllTrustManager(); trustAllCerts[0] = tm; javax.net.ssl.SSLContext sc = javax.net.ssl.SSLContext.getInstance("SSL"); javax.net.ssl.SSLSessionContext sslsc = sc.getServerSessionContext(); sslsc.setSessionTimeout(0); sc.init(null, trustAllCerts, null); HttpsURLConnection.setDefaultSSLSocketFactory(sc .getSocketFactory()); } // get common parameters private static void getConnectionParameters(String[] args) throws IllegalArgumentException { int ai = 0; String param = ""; String val = ""; while (ai < args.length) { param = args[ai].trim(); if (ai + 1 < args.length) { val = args[ai + 1].trim(); } if (param.equalsIgnoreCase("--help")) { help = true; break; } else if (param.equalsIgnoreCase("--url") && !val.startsWith("--") && !val.isEmpty()) { url = val; } else if (param.equalsIgnoreCase("--username") && !val.startsWith("--") && !val.isEmpty()) { userName = val; } else if (param.equalsIgnoreCase("--password") && !val.startsWith("--") && !val.isEmpty()) { password = val; } val = ""; ai += 2; } if (url == null || userName == null || password == null) { throw new IllegalArgumentException( "Expected --url, --username, --password arguments."); } } // get input parameters to run the sample private static void getInputParameters(String[] args) { int ai = 0; String param = ""; String val = ""; while (ai < args.length) { param = args[ai].trim(); if (ai + 1 < args.length) { val = args[ai + 1].trim(); } if (param.equalsIgnoreCase("--vmname") && !val.startsWith("--") && !val.isEmpty()) { virtualMachineName = val; } else if (param.equalsIgnoreCase("--snapshotname") && !val.startsWith("--") && !val.isEmpty()) { snapshotName = val; } else if (param.equalsIgnoreCase("--clonename") && !val.startsWith("--") && !val.isEmpty()) { cloneName = val; } val = ""; ai += 2; } if (virtualMachineName == null || snapshotName == null || cloneName == null) { throw new IllegalArgumentException( "Expected --vmanme, --snapshotname and --clonename arguments."); } } /** * Establishes session with the virtual center server. * * @throws Exception * the exception */ private static void connect() throws Exception { HostnameVerifier hv = new HostnameVerifier() { @Override public boolean verify(String urlHostName, SSLSession session) { return true; } }; trustAllHttpsCertificates(); HttpsURLConnection.setDefaultHostnameVerifier(hv); SVC_INST_REF.setType(SVC_INST_NAME); SVC_INST_REF.setValue(SVC_INST_NAME); vimService = new VimService(); vimPort = vimService.getVimPort(); Map<String, Object> ctxt = ((BindingProvider) vimPort).getRequestContext(); ctxt.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url); ctxt.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true); serviceContent = vimPort.retrieveServiceContent(SVC_INST_REF); vimPort.login(serviceContent.getSessionManager(), userName, password, null); isConnected = true; } /** * Disconnects the user session. * * @throws Exception */ private static void disconnect() throws Exception { if (isConnected) { vimPort.logout(serviceContent.getSessionManager()); } isConnected = false; } /** * This method returns a boolean value specifying whether the Task is * succeeded or failed. * * @param task * ManagedObjectReference representing the Task. * * @return boolean value representing the Task result. * @throws InvalidCollectorVersionFaultMsg * @throws RuntimeFaultFaultMsg * @throws InvalidPropertyFaultMsg */ private static boolean getTaskResultAfterDone(ManagedObjectReference task) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg, InvalidCollectorVersionFaultMsg { boolean retVal = false; // info has a property - state for state of the task Object[] result = waitForValues(task, new String[] { "info.state", "info.error" }, new String[] { "state" }, new Object[][] { new Object[] { TaskInfoState.SUCCESS, TaskInfoState.ERROR } }); if (result[0].equals(TaskInfoState.SUCCESS)) { retVal = true; } if (result[1] instanceof LocalizedMethodFault) { throw new RuntimeException( ((LocalizedMethodFault) result[1]).getLocalizedMessage()); } return retVal; } /** * Handle Updates for a single object. waits till expected values of * properties to check are reached Destroys the ObjectFilter when done. * * @param objmor * MOR of the Object to wait for * @param filterProps * Properties list to filter * @param endWaitProps * Properties list to check for expected values these be properties * of a property in the filter properties list * @param expectedVals * values for properties to end the wait * @return true indicating expected values were met, and false otherwise * @throws RuntimeFaultFaultMsg * @throws InvalidPropertyFaultMsg * @throws InvalidCollectorVersionFaultMsg */ private static Object[] waitForValues(ManagedObjectReference objmor, String[] filterProps, String[] endWaitProps, Object[][] expectedVals) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg, InvalidCollectorVersionFaultMsg { // version string is initially null String version = ""; Object[] endVals = new Object[endWaitProps.length]; Object[] filterVals = new Object[filterProps.length]; PropertyFilterSpec spec = new PropertyFilterSpec(); ObjectSpec oSpec = new ObjectSpec(); oSpec.setObj(objmor); oSpec.setSkip(Boolean.FALSE); spec.getObjectSet().add(oSpec); PropertySpec pSpec = new PropertySpec(); pSpec.getPathSet().addAll(Arrays.asList(filterProps)); pSpec.setType(objmor.getType()); spec.getPropSet().add(pSpec); ManagedObjectReference filterSpecRef = vimPort.createFilter(serviceContent.getPropertyCollector(), spec, true); boolean reached = false; UpdateSet updateset = null; List<PropertyFilterUpdate> filtupary = null; List<ObjectUpdate> objupary = null; List<PropertyChange> propchgary = null; while (!reached) { updateset = vimPort.waitForUpdates(serviceContent.getPropertyCollector(), version); if (updateset == null || updateset.getFilterSet() == null) { continue; } version = updateset.getVersion(); // Make this code more general purpose when PropCol changes later. filtupary = updateset.getFilterSet(); for (PropertyFilterUpdate filtup : filtupary) { objupary = filtup.getObjectSet(); for (ObjectUpdate objup : objupary) { if (objup.getKind() == ObjectUpdateKind.MODIFY || objup.getKind() == ObjectUpdateKind.ENTER || objup.getKind() == ObjectUpdateKind.LEAVE) { propchgary = objup.getChangeSet(); for (PropertyChange propchg : propchgary) { updateValues(endWaitProps, endVals, propchg); updateValues(filterProps, filterVals, propchg); } } } } Object expctdval = null; // Check if the expected values have been reached and exit the loop // if done. // Also exit the WaitForUpdates loop if this is the case. for (int chgi = 0; chgi < endVals.length && !reached; chgi++) { for (int vali = 0; vali < expectedVals[chgi].length && !reached; vali++) { expctdval = expectedVals[chgi][vali]; reached = expctdval.equals(endVals[chgi]) || reached; } } } // Destroy the filter when we are done. vimPort.destroyPropertyFilter(filterSpecRef); return filterVals; } private static void updateValues(String[] props, Object[] vals, PropertyChange propchg) { for (int findi = 0; findi < props.length; findi++) { if (propchg.getName().lastIndexOf(props[findi]) >= 0) { if (propchg.getOp() == PropertyChangeOp.REMOVE) { vals[findi] = ""; } else { vals[findi] = propchg.getVal(); } } } } /** * Returns all the MOREFs of the specified type that are present under the * container * * @param folder * {@link ManagedObjectReference} of the container to begin the * search from * @param morefType * Type of the managed entity that needs to be searched * * @return Map of name and MOREF of the managed objects present. If none * exist then empty Map is returned * * @throws InvalidPropertyFaultMsg * @throws RuntimeFaultFaultMsg */ private static Map<String, ManagedObjectReference> getMOREFsInContainerByType( ManagedObjectReference folder, String morefType) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg { String PROP_ME_NAME = "name"; ManagedObjectReference viewManager = serviceContent.getViewManager(); ManagedObjectReference containerView = vimPort.createContainerView(viewManager, folder, Arrays.asList(morefType), true); Map<String, ManagedObjectReference> tgtMoref = new HashMap<String, ManagedObjectReference>(); // Create Property Spec PropertySpec propertySpec = new PropertySpec(); propertySpec.setAll(Boolean.FALSE); propertySpec.setType(morefType); propertySpec.getPathSet().add(PROP_ME_NAME); TraversalSpec ts = new TraversalSpec(); ts.setName("view"); ts.setPath("view"); ts.setSkip(false); ts.setType("ContainerView"); // Now create Object Spec ObjectSpec objectSpec = new ObjectSpec(); objectSpec.setObj(containerView); objectSpec.setSkip(Boolean.TRUE); objectSpec.getSelectSet().add(ts); // Create PropertyFilterSpec using the PropertySpec and ObjectPec // created above. PropertyFilterSpec propertyFilterSpec = new PropertyFilterSpec(); propertyFilterSpec.getPropSet().add(propertySpec); propertyFilterSpec.getObjectSet().add(objectSpec); List<PropertyFilterSpec> propertyFilterSpecs = new ArrayList<PropertyFilterSpec>(); propertyFilterSpecs.add(propertyFilterSpec); RetrieveResult rslts = vimPort.retrievePropertiesEx(serviceContent.getPropertyCollector(), propertyFilterSpecs, new RetrieveOptions()); List<ObjectContent> listobjcontent = new ArrayList<ObjectContent>(); if (rslts != null && rslts.getObjects() != null && !rslts.getObjects().isEmpty()) { listobjcontent.addAll(rslts.getObjects()); } String token = null; if (rslts != null && rslts.getToken() != null) { token = rslts.getToken(); } while (token != null && !token.isEmpty()) { rslts = vimPort.continueRetrievePropertiesEx( serviceContent.getPropertyCollector(), token); token = null; if (rslts != null) { token = rslts.getToken(); if (rslts.getObjects() != null && !rslts.getObjects().isEmpty()) { listobjcontent.addAll(rslts.getObjects()); } } } for (ObjectContent oc : listobjcontent) { ManagedObjectReference mr = oc.getObj(); String entityNm = null; List<DynamicProperty> dps = oc.getPropSet(); if (dps != null) { for (DynamicProperty dp : dps) { entityNm = (String) dp.getVal(); } } tgtMoref.put(entityNm, mr); } return tgtMoref; } /** * Method to retrieve properties of a {@link ManagedObjectReference} * * @param entityMor * {@link ManagedObjectReference} of the entity * @param props * Array of properties to be looked up * @return Map of the property name and its corresponding value * * @throws InvalidPropertyFaultMsg * If a property does not exist * @throws RuntimeFaultFaultMsg */ private static Map<String, Object> getEntityProps( ManagedObjectReference entityMor, String[] props) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg { HashMap<String, Object> retVal = new HashMap<String, Object>(); // Create Property Spec PropertySpec propertySpec = new PropertySpec(); propertySpec.setAll(Boolean.FALSE); propertySpec.setType(entityMor.getType()); propertySpec.getPathSet().addAll(Arrays.asList(props)); // Now create Object Spec ObjectSpec objectSpec = new ObjectSpec(); objectSpec.setObj(entityMor); // Create PropertyFilterSpec using the PropertySpec and ObjectPec // created above. PropertyFilterSpec propertyFilterSpec = new PropertyFilterSpec(); propertyFilterSpec.getPropSet().add(propertySpec); propertyFilterSpec.getObjectSet().add(objectSpec); List<PropertyFilterSpec> propertyFilterSpecs = new ArrayList<PropertyFilterSpec>(); propertyFilterSpecs.add(propertyFilterSpec); RetrieveResult rslts = vimPort.retrievePropertiesEx(serviceContent.getPropertyCollector(), propertyFilterSpecs, new RetrieveOptions()); List<ObjectContent> listobjcontent = new ArrayList<ObjectContent>(); if (rslts != null && rslts.getObjects() != null && !rslts.getObjects().isEmpty()) { listobjcontent.addAll(rslts.getObjects()); } String token = null; if (rslts != null && rslts.getToken() != null) { token = rslts.getToken(); } while (token != null && !token.isEmpty()) { rslts = vimPort.continueRetrievePropertiesEx( serviceContent.getPropertyCollector(), token); token = null; if (rslts != null) { token = rslts.getToken(); if (rslts.getObjects() != null && !rslts.getObjects().isEmpty()) { listobjcontent.addAll(rslts.getObjects()); } } } for (ObjectContent oc : listobjcontent) { List<DynamicProperty> dps = oc.getPropSet(); if (dps != null) { for (DynamicProperty dp : dps) { retVal.put(dp.getName(), dp.getVal()); } } } return retVal; } /** * Creates the linked clone. * * @throws Exception * the exception */ private static void createLinkedClone() throws Exception { ManagedObjectReference vmMOR = getMOREFsInContainerByType(serviceContent.getRootFolder(), "VirtualMachine").get(virtualMachineName); if (vmMOR != null) { ManagedObjectReference snapMOR = getSnapshotReference(vmMOR, snapshotName); if (snapMOR != null) { ArrayList<Integer> independentVirtualDiskKeys = getIndependenetVirtualDiskKeys(vmMOR); VirtualMachineRelocateSpec rSpec = new VirtualMachineRelocateSpec(); if (independentVirtualDiskKeys.size() > 0) { List<ManagedObjectReference> ds = ((ArrayOfManagedObjectReference) getEntityProps(vmMOR, new String[] { "datastore" }).get("datastore")) .getManagedObjectReference(); List<VirtualMachineRelocateSpecDiskLocator> diskLocator = new ArrayList<VirtualMachineRelocateSpecDiskLocator>(); for (Integer iDiskKey : independentVirtualDiskKeys) { VirtualMachineRelocateSpecDiskLocator diskloc = new VirtualMachineRelocateSpecDiskLocator(); diskloc.setDatastore(ds.get(0)); diskloc .setDiskMoveType(VirtualMachineRelocateDiskMoveOptions.MOVE_ALL_DISK_BACKINGS_AND_DISALLOW_SHARING .value()); diskloc.setDiskId(iDiskKey); diskLocator.add(diskloc); } rSpec.setDiskMoveType(VirtualMachineRelocateDiskMoveOptions.CREATE_NEW_CHILD_DISK_BACKING .value()); rSpec.getDisk().addAll(diskLocator); } else { rSpec.setDiskMoveType(VirtualMachineRelocateDiskMoveOptions.CREATE_NEW_CHILD_DISK_BACKING .value()); } VirtualMachineCloneSpec cloneSpec = new VirtualMachineCloneSpec(); cloneSpec.setPowerOn(false); cloneSpec.setTemplate(false); cloneSpec.setLocation(rSpec); cloneSpec.setSnapshot(snapMOR); try { ManagedObjectReference parentMOR = (ManagedObjectReference) getEntityProps(vmMOR, new String[] { "parent" }).get("parent"); if (parentMOR == null) { throw new RuntimeException( "The selected VM is a part of vAPP. This sample only " + "works with virtual machines that are not a part " + "of any vAPP"); } ManagedObjectReference cloneTask = vimPort .cloneVMTask(vmMOR, parentMOR, cloneName, cloneSpec); if (getTaskResultAfterDone(cloneTask)) { System.out.printf(" Cloning Successful"); } else { System.out.printf(" Cloning Failure"); } } catch (SOAPFaultException sfe) { printSoapFaultException(sfe); } catch (Exception e) { e.printStackTrace(); } } else { System.out.println("Snapshot " + snapshotName + " doesn't exist"); } } else { System.out.println("Virtual Machine " + virtualMachineName + " doesn't exist"); } } /** * Gets the independenet virtual disk keys. * * @param vmMOR * the vm mor * @return the independent virtual disk keys * @throws RuntimeFaultFaultMsg * @throws InvalidPropertyFaultMsg */ private static ArrayList<Integer> getIndependenetVirtualDiskKeys( ManagedObjectReference vmMOR) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg { ArrayList<Integer> independenetVirtualDiskKeys = new ArrayList<Integer>(); VirtualHardware hw = (VirtualHardware) getEntityProps(vmMOR, new String[] { "config.hardware" }).get("config.hardware"); List<VirtualDevice> listvd = hw.getDevice(); for (VirtualDevice vDisk : listvd) { if (vDisk instanceof VirtualDisk) { String diskMode = ""; if (vDisk.getBacking() instanceof VirtualDiskFlatVer1BackingInfo) { diskMode = ((VirtualDiskFlatVer1BackingInfo) vDisk.getBacking()) .getDiskMode(); } else if (vDisk.getBacking() instanceof VirtualDiskFlatVer2BackingInfo) { diskMode = ((VirtualDiskFlatVer2BackingInfo) vDisk.getBacking()) .getDiskMode(); } else if (vDisk.getBacking() instanceof VirtualDiskRawDiskMappingVer1BackingInfo) { diskMode = ((VirtualDiskRawDiskMappingVer1BackingInfo) vDisk .getBacking()).getDiskMode(); } else if (vDisk.getBacking() instanceof VirtualDiskSparseVer1BackingInfo) { diskMode = ((VirtualDiskSparseVer1BackingInfo) vDisk.getBacking()) .getDiskMode(); } else if (vDisk.getBacking() instanceof VirtualDiskSparseVer2BackingInfo) { diskMode = ((VirtualDiskSparseVer2BackingInfo) vDisk.getBacking()) .getDiskMode(); } if (diskMode.indexOf("independent") != -1) { independenetVirtualDiskKeys.add(vDisk.getKey()); } } } return independenetVirtualDiskKeys; } /** * Gets the snapshot reference. * * @param vmmor * the vmmor * @param snapName * the snap name * @return the snapshot reference * @throws Exception * the exception */ private static ManagedObjectReference getSnapshotReference( ManagedObjectReference vmmor, String snapName) throws Exception { VirtualMachineSnapshotInfo snapInfo = (VirtualMachineSnapshotInfo) getEntityProps(vmmor, new String[] { "snapshot" }).get("snapshot"); ManagedObjectReference snapmor = null; if (snapInfo != null) { List<VirtualMachineSnapshotTree> listvmsst = snapInfo.getRootSnapshotList(); List<VirtualMachineSnapshotTree> snapTree = listvmsst; snapmor = traverseSnapshotInTree(snapTree, snapName); } return snapmor; } /** * Traverse snapshot in tree. * * @param snapTree * the snap tree * @param findName * the find name * @return the managed object reference */ private static ManagedObjectReference traverseSnapshotInTree( List<VirtualMachineSnapshotTree> snapTree, String findName) { ManagedObjectReference snapmor = null; if (snapTree == null) { return snapmor; } for (int i = 0; i < snapTree.size() && snapmor == null; i++) { VirtualMachineSnapshotTree node = snapTree.get(i); if (findName != null && node.getName().equals(findName)) { snapmor = node.getSnapshot(); } else { List<VirtualMachineSnapshotTree> childTree = node.getChildSnapshotList(); snapmor = traverseSnapshotInTree(childTree, findName); } } return snapmor; } private static void printSoapFaultException(SOAPFaultException sfe) { System.out.println("SOAP Fault -"); if (sfe.getFault().hasDetail()) { System.out.println(sfe.getFault().getDetail().getFirstChild() .getLocalName()); } if (sfe.getFault().getFaultString() != null) { System.out.println("\n Message: " + sfe.getFault().getFaultString()); } } private static void printUsage() { System.out.println("This sample creates a linked " + "clone from an existing snapshot."); System.out.println("Each independent disk needs a DiskLocator with " + "diskmovetype as moveAllDiskBackingsAndDisallowSharing."); System.out.println("\nParameters:"); System.out .println("url [required] : url of the web service."); System.out .println("username [required] : username for the authentication"); System.out .println("password [required] : password for the authentication"); System.out .println("vmname [required] : Name of the virtual machine"); System.out.println("snapshotname [required] : Name of the snaphot"); System.out.println("clonename [required] : Name of the cloneName"); System.out.println("\nCommand:"); System.out.println("Create a linked clone"); System.out .println("run.bat com.vmware.vm.VMLinkedClone --url [webserviceurl]"); System.out .println("--username [username] --password [password] --vmname [myVM]"); System.out .println("--snapshotname [snapshot name] --clonename [clone name]"); } public static void main(String[] args) { try { getConnectionParameters(args); getInputParameters(args); if (help) { printUsage(); return; } connect(); createLinkedClone(); } catch (IllegalArgumentException e) { System.out.println(e.getMessage()); printUsage(); } catch (SOAPFaultException sfe) { printSoapFaultException(sfe); } catch (Exception e) { e.printStackTrace(); } finally { try { disconnect(); } catch (SOAPFaultException sfe) { printSoapFaultException(sfe); } catch (Exception e) { System.out.println("Failed to disconnect - " + e.getMessage()); e.printStackTrace(); } } } }
[ "1113513062@qq.com" ]
1113513062@qq.com
65f9fb4781380fa7618cdc50b49d7746c324953d
37a42fff53c035cdde49b21295517de97095fab7
/src/sparsedatabase/PropertyMatrixInt.java
0aa50adc644f2f950e58995b6fadd8ad853bb44a
[]
no_license
player2point0/playCanvasServer
c502f1709bcd0900972375b601a698c303174085
a972bd42e29ae2711743223faafd823b08023281
refs/heads/master
2020-05-21T07:59:11.771074
2020-01-24T15:48:08
2020-01-24T15:48:08
185,967,992
0
0
null
null
null
null
UTF-8
Java
false
false
5,317
java
/* Copyright (c) 2008-Present John Bustard http://johndavidbustard.com This code is release under the GPL http://www.gnu.org/licenses/gpl.html To get the latest version of this code goto http://johndavidbustard.com/mmconst.html */ package sparsedatabase; import importexport.ByteBufferReaderWriter; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import mathematics.GeneralMatrixFloat; import mathematics.GeneralMatrixInt; import mathematics.GeneralMatrixObject; import mathematics.GeneralMatrixString; public class PropertyMatrixInt extends Property { //Set of edits that can be made to this object public static final int ADD_ROW=0; public static final int REMOVE_ROW=1; public static final int SET_ENTRY=2; public GeneralMatrixInt matrix; public boolean sametype(Property p) { return (p instanceof PropertyMatrixInt); } public void getTypeNames(GeneralMatrixString n) { n.push_back("int[][]"); } public String typeString() { return "int[][]"; } public PropertyMatrixInt(PropertyHashtable parent,String name) { id = Property.stringToID(name); matrix = new GeneralMatrixInt(); parent.AddProperty(this); } public PropertyMatrixInt(PropertyHashtable parent,GeneralMatrixInt contents,String name) { id = Property.stringToID(name); matrix = contents; if(parent!=null) parent.AddProperty(this); } public PropertyMatrixInt(GeneralMatrixInt contents,String name) { id = Property.stringToID(name); matrix = contents; } public PropertyMatrixInt(GeneralMatrixInt contents) { matrix = contents; } public PropertyMatrixInt() { } public void set(Property p) { PropertyMatrixInt pt = (PropertyMatrixInt)p; matrix.set(pt.matrix); } public boolean contentEquals(Property p) { if(!(p instanceof PropertyMatrixInt)) return false; PropertyMatrixInt o = (PropertyMatrixInt)p; return o.matrix.isequal(matrix); } public Property copy() { PropertyMatrixInt pt = new PropertyMatrixInt(); pt.matrix = new GeneralMatrixInt(matrix); pt.id = id; return pt; } public Property createInstance() { return new PropertyMatrixInt(); } public Property createInstance(String type) { if(type.equalsIgnoreCase("int[][]")) { return new PropertyMatrixInt(); } return null; } public boolean isEmpty() { return matrix.height==0; } public int Parse(String value) { SplitTuple(value); matrix = new GeneralMatrixInt(Integer.parseInt(vals[0]),Integer.parseInt(vals[1])); return matrix.height; } public int ParseMultiline(String value,BufferedReader in,int remainingEntries,int indent) { int i = matrix.height-remainingEntries; remainingEntries--; SplitTuple(value); for(int mi=0;mi<matrix.width;mi++) { matrix.set(mi, i, Integer.parseInt(vals[mi])); } return remainingEntries; } public static String SaveVerbose(GeneralMatrixInt matrix) { String pr = ""; pr+=("int[][] "+"="+matrix.width+","+matrix.height); for(int j=0;j<matrix.height;j++) { String line = ""; for(int i=0;i<matrix.width;i++) { if(i!=0) line+=(","); line+=(""+matrix.value[i+j*matrix.width]); } pr+="\n"+(line); } return pr; } public void SaveVerbose(GeneralMatrixString pr) { pr.push_back("int[][] "+idToString(id)+"="+matrix.width+","+matrix.height); for(int j=0;j<matrix.height;j++) { String line = ""; for(int i=0;i<matrix.width;i++) { if(i!=0) line+=(","); line+=(""+matrix.value[i+j*matrix.width]); } pr.push_back(line); } } public void SaveVerbose(GeneralMatrixString pr,GeneralMatrixObject properties,GeneralMatrixInt element) { properties.push_back(this); element.push_back(-1); pr.push_back("int[][] "+idToString(id)+"="+matrix.width+","+matrix.height); for(int j=0;j<matrix.height;j++) { String line = ""; for(int i=0;i<matrix.width;i++) { if(i!=0) line+=(","); line+=(""+matrix.value[i+j*matrix.width]); } pr.push_back(line); properties.push_back(this); element.push_back(j); } } public void SaveVerbose(PrintStream pr) { pr.append("int[][] "+idToString(id)+"="+matrix.width+","+matrix.height+"\n"); for(int j=0;j<matrix.height;j++) { for(int i=0;i<matrix.width;i++) { if(i!=0) pr.append(","); pr.append(""+matrix.value[i+j*matrix.width]); } pr.append("\n"); } } public void Parse(InputStream in) throws IOException { id = ByteBufferReaderWriter.readlong(in); { int width = ByteBufferReaderWriter.readint(in); int height = ByteBufferReaderWriter.readint(in); matrix = new GeneralMatrixInt(width,height); int numEntries = width*height; for(int i=0;i<numEntries;i++) { matrix.value[i] = ByteBufferReaderWriter.readint(in); } } } public void SaveBinary(OutputStream o) throws IOException { ByteBufferReaderWriter.writeubyte(o,PropertyFactory.TYPE_PropertyMatrixInt); ByteBufferReaderWriter.writelong(o,id); ByteBufferReaderWriter.writeint(o,matrix.width); ByteBufferReaderWriter.writeint(o,matrix.height); int numEntries = matrix.width*matrix.height; { for(int i=0;i<numEntries;i++) { ByteBufferReaderWriter.writeint(o, matrix.value[i]); } } } }
[ "nathannash11@gmail.com" ]
nathannash11@gmail.com
51f6a2223c4d4eb809c2f972466489a3e81dbb37
1aa094f433a43c468a6528a49ab5bf47c80da8d1
/src/Gitpackage/Git_class.java
e86d8b5458f1706566c4a23b72d408a0079000ec
[]
no_license
gityee/rajasekhar
5cfb53bddcad6afd994dd9e530ce935570ac98be
208621fc04a5b88b4266f612fe09861dff059469
refs/heads/master
2021-09-12T15:39:48.556484
2018-04-19T06:53:33
2018-04-19T06:53:33
102,974,721
0
0
null
null
null
null
UTF-8
Java
false
false
203
java
package Gitpackage; public class Git_class { public static void main(String[] args) { System.out.println("this is test message"); System.out.println("this is test message11222"); } }
[ "s8@s8-PC" ]
s8@s8-PC
ba6f4a3ce1ed0dd63817e8f70dc610270244a9f0
bc8b16b9978cb04d02a274b3abfc4c5f1dd40cff
/src/Servlet/LoginServlet.java
21d7bbe7d4b30fb15f51a8221b8cbd5055f207cb
[]
no_license
VQ-Chinh/DoAn-java
f54dcc0257e5cbf44910ef0eccfd4791ca47df53
07ea4fd816f798c3bbcdd5d307f38ea061b6eb39
refs/heads/master
2021-01-19T08:09:58.794112
2017-04-11T01:34:32
2017-04-11T01:34:32
87,607,278
0
0
null
null
null
null
UTF-8
Java
false
false
2,736
java
package Servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import Connection.MyUltis; import DBManager.GiaoVienDB; import Model.GiaoVien; /** * Servlet implementation class LoginServlet */ @WebServlet("/Login") public class LoginServlet extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public LoginServlet() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse * response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); GiaoVien user = MyUltis.getLoginedUser(session); String action = request.getParameter("action"); String errorString = ""; boolean isError = false; if (user != null) { response.sendRedirect(request.getContextPath() + "/MainView"); // kiem tra dang nhap } else if (action != null && "logout".equals(action)) { MyUltis.deleteUserCookie(response); MyUltis.changeViewServlet("Login", request, response); // kiem tra dang nhap } else if (action != null && "login".equals(action)) { String userId = request.getParameter("userInput"); String pass = request.getParameter("passwordInput"); GiaoVienDB giaoViendb = new GiaoVienDB(); user = new GiaoVien(userId, pass); if (userId == "" || pass == "") { errorString = "Filed your text pls"; isError = true; } else if (giaoViendb.check(user)) { user = giaoViendb.find(user.getMaGiaoVien()); MyUltis.storeLoginedUser(session, user); MyUltis.storeUserCookie(response, user); // cookie response.sendRedirect(request.getContextPath() + "/MainView"); } else { errorString = "Wrong Password or User"; isError = true; } if (isError == true) { request.setAttribute("errorString", errorString); request.setAttribute("user", user); MyUltis.changeViewPage(MyUltis.VIEW_NAME_LOGINVIEW, this.getServletContext(), request, response);; } } else MyUltis.changeViewPage(MyUltis.VIEW_NAME_LOGINVIEW, this.getServletContext(), request, response); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse * response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub doGet(request, response); } }
[ "kiemhiepden@yahoo.com.vn" ]
kiemhiepden@yahoo.com.vn
025b480ed99a26dfe5ed6d75abc32c0394c84784
6bdecd2209b89331246268becaae51b878f7ebb1
/vertx-gaia/vertx-co/src/main/java/io/vertx/up/eon/Info.java
b1097e3ced1e58d50a48e2cdb6cce0f2f188e7ba
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
xSnowChen/vertx-zero
85de1e5916d81c5dd75eacbd0ad65f8c5d03424d
1319c041cf018e5feb20834927e005426d4eb919
refs/heads/master
2022-12-22T13:24:21.129123
2022-12-15T04:04:25
2022-12-15T04:04:25
263,878,204
0
0
Apache-2.0
2022-12-16T03:26:14
2020-05-14T09:58:51
null
UTF-8
Java
false
false
4,666
java
package io.vertx.up.eon; public interface Info { String H_SCANED_QAS = "( {0} QaS ) The Zero system has found " + "{1} points of @QaS."; String SCANED_RULE = "( {0} Rules ) Zero system scanned the folder /codex/ " + "to pickup {0} rule definition files."; String INFIX_NULL = "The system scanned null infix for key = {0} " + "on the field \"{1}\" of {2}"; String INFIX_IMPL = "The hitted class {0} does not implement the interface" + "of {1}"; String VTC_END = "( {3} ) The verticle {0} has been deployed " + "{1} instances successfully. id = {2}."; String VTC_FAIL = "( {3} ) The verticle {0} has been deployed " + "{1} instances failed. id = {2}, cause = {3}."; String VTC_STOPPED = "( {2} ) The verticle {0} has been undeployed " + " successfully, id = {1}."; String INF_B_VERIFY = "( node = {0}, type = {1} ) before validation is {2}."; String INF_A_VERIFY = "( node = {0}, type = {1} ) filtered configuration port set = {2}."; String AGENT_DEFINED = "User defined agent {0} of type = {1}, " + "the default will be overwritten."; String SCANED_ENDPOINT = "( {0} EndPoint ) The Zero system has found " + "{0} components of @EndPoint."; String SCANED_WEBSOCKET = "( {0} WebSocket ) The Zero system has found " + "{0} components of @EndPoint."; String SCANED_JOB = "( {0} Job ) The Zero system has found " + "{0} components of @Job."; String SCANED_QUEUE = "( {0} Queue ) The Zero system has found " + "{0} components of @Queue."; String SCANED_INJECTION = "( {1} Inject ) The Zero system has found \"{0}\" object contains " + "{1} components of @Inject or ( javax.inject.infix.* )."; String APP_CLUSTERD = "Current app is running in cluster mode, " + "manager = {0} on node {1} with status = {2}."; String SOCK_ENABLED = "( Micro -> Sock ) Zero system detected the socket server is Enabled."; String RPC_ENABLED = "( Micro -> Rpc ) Zero system detected the rpc server is Enabled. "; // ----------- Job related information String JOB_IGNORE = "[ Job ] The class {0} annotated with @Job will be ignored because there is no @On method defined."; String JOB_CONFIG = "[ Job ] Job configuration read : {0}"; String JOB_MOVED = "[ Job ] [{0}]( Moved: {2} -> {3} ), Job = `{1}`"; String JOB_TERMINAL = "[ Job ] [{0}] The job will be terminal, status -> ERROR, Job = `{1}`"; String JOB_COMPONENT_SELECTED = "[ Job ] {0} selected: {1}"; String JOB_ADDRESS_EVENT_BUS = "[ Job ] {0} event bus enabled: {1}"; String JOB_WORKER_START = "[ Job ] `{0}` worker executor will be created. The max executing time is {1} s"; String JOB_WORKER_END = "[ Job ] `{0}` worker executor has been closed! "; // ------------- Job monitor for interval component String JOB_RUN = "[ Job ] (timer = null) The job will start right now."; String JOB_RUN_RE = "[ Job ] (timer = null) The job will restart right now."; String JOB_RUN_DELAY = "[ Job ] `{0}` will start after `{1}`."; String JOB_RUN_RE_DELAY = "[ Job ] `{0}` will restart after `{1}`."; String JOB_RUN_SCHEDULED = "[ Job ] (timer = {0}) `{1}` scheduled duration {2} ms in each."; // ------------- Job monitor for ONCE String PHASE_1ST_JOB = "[ Job: {0} ] 1. Input new data of JsonObject"; String PHASE_1ST_JOB_ASYNC = "[ Job: {0} ] 1. Input from address {1}"; String PHASE_2ND_JOB = "[ Job: {0} ] 2. Input without `JobIncome`"; String PHASE_2ND_JOB_ASYNC = "[ Job: {0} ] 2. Input with `JobIncome` = {1}"; String PHASE_3RD_JOB_RUN = "[ Job: {0} ] 3. --> @On Method call {1}"; String PHASE_6TH_JOB_CALLBACK = "[ Job: {0} ] 6. --> @Off Method call {1}"; String PHASE_4TH_JOB_ASYNC = "[ Job: {0} ] 4. Output with `JobOutcome` = {1}"; String PHASE_4TH_JOB = "[ Job: {0} ] 4. Output without `JobOutcome`"; String PHASE_5TH_JOB = "[ Job: {0} ] 5. Output directly, ignore next EventBus steps"; String PHASE_5TH_JOB_ASYNC = "[ Job: {0} ] 5. Output send to address {1}"; String PHASE_ERROR = "[ Job: {0} ] Terminal with error: {1}"; // ------------ Job String JOB_DELAY = "[ Job ] Job \"{0}\" will started after `{1}` "; String JOB_SCANNED = "[ Job ] The system scanned {0} jobs with type {1}"; String JOB_OFF = "[ Job ] Current job `{0}` has defined @Off method."; // ------------- Meansure String MEANSURE_REMOVE = "[ Meansure ] The {0} has been removed. ( instances = {1} )"; String MEANSURE_ADD = "[ Meansure ] The {0} has been added. ( instances = {1} ), worker = {2}"; }
[ "silentbalanceyh@126.com" ]
silentbalanceyh@126.com
31afe19c1e1cecfac1d915a5aa3fd26b90ce74da
b6298b6427aa127dc0195e8532bcc1595b5d2634
/report/report-client/src/main/java/com/iwhalecloud/retail/report/service/MenuService.java
437f6480818446a2338eae224ca6c87c7efef14e
[]
no_license
chenmget/spring-cloud-demo
2ecbdeeb5102dc7523ef9fc59a405fc5c77bf6ad
0b4100973d2f6525883e0e73f000ac6e9c0b9060
refs/heads/release
2022-07-17T13:41:20.595393
2020-04-02T07:40:19
2020-04-02T07:40:19
249,857,665
1
3
null
2022-06-29T18:02:22
2020-03-25T01:23:07
Java
UTF-8
Java
false
false
418
java
package com.iwhalecloud.retail.report.service; import com.iwhalecloud.retail.dto.ResultVO; import com.iwhalecloud.retail.report.dto.MenuDTO; public interface MenuService { public ResultVO saveMenu(MenuDTO menuDTO); public ResultVO listMenu(); public ResultVO<MenuDTO> getMenuByMenuId(String menuId); public ResultVO deleteMenu(String menuId); public ResultVO updateMenu(MenuDTO menuDTO); }
[ "0027007822@iwhalecloud.com" ]
0027007822@iwhalecloud.com
5f23d75eb4add14f6c27de05cb850f799f6b61f9
6f3b475dfa253ab9e9533428088790ef5c6898b2
/aop/src/main/java/com/spring/aop/around/test/TestAround.java
9d4c5be07056e154d07aa12367973f648b416501
[]
no_license
yusufsevinc/springLearnExamples
710bf2f2d4380e3250a976f7e70e6f8607581f5d
2fc8caa5a13e97557297d8d9e273888a7287111b
refs/heads/master
2023-07-09T13:05:10.085534
2021-08-05T13:59:56
2021-08-18T14:59:12
381,757,686
0
0
null
null
null
null
UTF-8
Java
false
false
1,433
java
package com.spring.aop.around.test; import com.spring.aop.around.appConfig.AppConfigAround; import com.spring.aop.around.model.Product; import com.spring.aop.around.repository.ProductRepositoryAround; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class TestAround { public static void main(String[] args) { /* ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml"); ProductRepositoryAround productRepository = context.getBean("productRepositoryAround", ProductRepositoryAround.class); Product product = new Product(); product.setName("iphone 7"); product.setPrice(3500); product.setAvaible(3); product.setCategory("Telefon"); productRepository.saveProduct(product); */ ConfigurableApplicationContext context1 = new AnnotationConfigApplicationContext(AppConfigAround.class); ProductRepositoryAround productRepository1 = context1.getBean("productRepositoryAround", ProductRepositoryAround.class); Product product1 = new Product(); product1.setName("iphone x"); product1.setPrice(7000); product1.setAvaible(1); product1.setCategory("Telefon"); productRepository1.saveProduct(product1); //productRepository1.findProduct(0); } }
[ "1yusufsevinc@gmail.com" ]
1yusufsevinc@gmail.com
fcba7aee3dd3e8397de5fa74662b3a5546582cfc
2f13beff5821d502a4af86e01b2c1bac3299d2ef
/wknd-study-board/board/src/main/java/com/study/wknd/board/test/TestService.java
d5d9945612f0d2b8839e18160cda68363b004d8f
[]
no_license
siwolsmu89/Mskts_board_SPA_1
a947246b0fac360d2727a1935467b0ab0639646c
998208ff4adaf10b1af232cf06d9403e1959fefa
refs/heads/master
2023-01-03T07:09:45.035517
2020-10-24T04:04:20
2020-10-24T04:04:20
302,562,438
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package com.study.wknd.board.test; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class TestService { @Autowired public TestMapper mapper; public void insertDate() { Map<String, String> paramMap = new HashMap<String, String>(); Date date = new Date(); String dateString = date.toString(); paramMap.put("name", dateString); mapper.insertTest(paramMap); } public void insertText(Map<String, String> param) { mapper.insertTest(param); } }
[ "siwol_smuire89@naver.com" ]
siwol_smuire89@naver.com
1e4725de03c2cbec04ebff8069441b28bfe1dce6
e8fc19f6301ceddebe1c76b29dbf6753f4d63da8
/AutomationFramework/src/com/inflectra/remotelaunch/services/soap/IImportExportDataMappingRemoveArtifactMappingsServiceFaultMessageFaultFaultMessage.java
bc635b466548e7846e37acb40e0e2896509fb4c9
[]
no_license
ravinder1414/AutomationFrameworkUpdated
524b91f29400dd1c906cc6b06a56b06ff8e6fc55
0cf3e56fc9b6b5a4bac47d0a7c7e424a49c9845a
refs/heads/master
2021-07-02T22:31:46.280362
2017-09-22T04:28:38
2017-09-22T04:28:38
104,431,215
0
1
null
null
null
null
UTF-8
Java
false
false
1,426
java
package com.inflectra.remotelaunch.services.soap; import javax.xml.ws.WebFault; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.6 in JDK 6 * Generated source version: 2.1 * */ @WebFault(name = "ServiceFaultMessage", targetNamespace = "http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v4_0") public class IImportExportDataMappingRemoveArtifactMappingsServiceFaultMessageFaultFaultMessage extends Exception { /** * Java type that goes as soapenv:Fault detail element. * */ private ServiceFaultMessage faultInfo; /** * * @param message * @param faultInfo */ public IImportExportDataMappingRemoveArtifactMappingsServiceFaultMessageFaultFaultMessage(String message, ServiceFaultMessage faultInfo) { super(message); this.faultInfo = faultInfo; } /** * * @param message * @param faultInfo * @param cause */ public IImportExportDataMappingRemoveArtifactMappingsServiceFaultMessageFaultFaultMessage(String message, ServiceFaultMessage faultInfo, Throwable cause) { super(message, cause); this.faultInfo = faultInfo; } /** * * @return * returns fault bean: com.inflectra.spirateam.mylyn.core.internal.services.soap.ServiceFaultMessage */ public ServiceFaultMessage getFaultInfo() { return faultInfo; } }
[ "kumarravinder4141@gmail.com" ]
kumarravinder4141@gmail.com
f6350cdfb73c1e60084dd7b625ea86f01d39323d
4500d809e5f1ba550215397eaed3a3dbc40bb490
/src/moapi/ModOptionSlider.java
7be69a8231b670c961723268f986b0cef61fc329
[]
no_license
WyrdOne/ModOptionsAPI
73636054ba5899ad92852a93a433252e3dac79ab
570083891d970848d9e0a4a9721f616d50dddf68
refs/heads/master
2021-01-15T18:59:37.623524
2013-07-19T18:48:53
2013-07-19T18:48:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,901
java
package moapi; /** * Provides an interface to create a simple bounded slider * * @author Clinton Alexander * @author Jonathan Brazell * @version 1.0.0 * @since 0.1 */ public class ModOptionSlider extends ModOption<Integer> { /** * Lowest value of slider */ private int low = 0; /** * Highest value of slider */ private int high = 100; //============== // Constructors //============== /** * Create a slider option with a given id and name * * @param id ID value for this slider * @param name Name of this slider */ public ModOptionSlider(String id, String name) { super(id, name); value = 1; localValue = 1; } /** * Create a slider with given name * * @param name Name of this slider */ public ModOptionSlider(String name) { this(name, name); } /** * Create a bounded slider with a given ID and name * * @param id ID of this option * @param name Name of slider * @param low Lowest value of slider * @param high Highest value of slider */ public ModOptionSlider(String id, String name, int low, int high) { this(id, name); this.low = low; this.high = high; } /** * Create a bounded slider with a given name * * @param name Name of slider * @param low Lowest value of slider * @param high Highest value of slider */ public ModOptionSlider(String name, int low, int high) { this(name, name, low, high); } //============== // Getters //============== /** * Get the highest value of the slider * * @return Highest value of the slider */ public int getHighVal() { return high; } /** * Get the lowest value of the slider * * @return Lowest value of the slider */ public int getLowVal() { return low; } /** * Returns a bounded value * * @param value Unbounded value * @param lower Lower bound * @param upper Upper bound * @return Bounded value */ private int getBoundedValue(int value, int lower, int upper) { if (value < lower) { return lower; } else if (value > upper) { return upper; } else { return value; } } //============== // Setters //============== /** * Set the value * * @param value Value being set */ public ModOption setValue(int value) { return super.setValue(getBoundedValue(value, low, high)); } /** * Set the current value used for the given scope * * @param value New value for scope * @param scope Scope value. True for global * @return the option for further operations */ public ModOption setValue(int value, boolean scope) { return super.setValue(getBoundedValue(value, low, high), scope); } /** * Set the current value from a string with the given scope * * @param value New value for scope * @param scope Scope value. True for global * @return the option for further operations */ public ModOption fromString(String strValue, boolean scope) { return setValue(Integer.valueOf(strValue), scope); } }
[ "jbrazell@gmail.com" ]
jbrazell@gmail.com
dda7042930172a59de30fa0c5620564fb6a84437
38eeb385a99a9ac8ec9651b1c038cf5841991cac
/PrimerosPasos/src/Concatenacion.java
5115bf059d3a609c7731ecc954a74575a46f639e
[]
no_license
CristianFgithub/Java_Aprendizaje
071802f6d5980c1309aefe3f779afb5db4220dbe
ad643cd6a45114f43ea4b301530ebcadd9c101f7
refs/heads/main
2023-06-08T14:59:07.268663
2021-07-04T10:19:23
2021-07-04T10:19:23
359,576,557
0
0
null
null
null
null
UTF-8
Java
false
false
284
java
public class Concatenacion { public static void main(String[] args) { // TODO Auto-generated method stub double salario=1300.50; //double salarioEnDolares=1300.50*1.1; System.out.println("El salario de Cristian es: "+ (salario+1.20) + "$ a dia de hoy"); } }
[ "cristianfuentessillerofp@gmail.com" ]
cristianfuentessillerofp@gmail.com
0929ee485a264f1465d74935a854a0452537a164
52e597e592fbd7465af574386ce8b02c72c5974a
/ metafora-project --username ugurkira@gmail.com/visualtool/src/de/uds/visualizer/client/EntryPoint_Example.java
2c84f75783201694c45f4fa5c726c8da44e8c391
[]
no_license
tobydragon/metafora-project
e439df05554cadf81eaa407182702931b7e5b938
46bc209750520404fdf4022e34bb3aea0a4ded3d
refs/heads/master
2021-01-17T02:55:05.143288
2015-09-24T18:21:52
2015-09-24T18:21:52
41,741,721
1
0
null
null
null
null
UTF-8
Java
false
false
5,343
java
package de.uds.visualizer.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; import de.uds.visualizer.client.communication.servercommunication.CommunicationService; import de.uds.visualizer.client.communication.servercommunication.CommunicationServiceAsync; import de.uds.visualizer.shared.FieldVerifier; /** * Entry point classes define <code>onModuleLoad()</code>. */ public class EntryPoint_Example implements EntryPoint { /** * The message displayed to the user when the server cannot be reached or * returns an error. */ private static final String SERVER_ERROR = "An error occurred while " + "attempting to contact the server. Please check your network " + "connection and try again."; /** * Create a remote service proxy to talk to the server-side Greeting service. */ private final CommunicationServiceAsync greetingService = GWT .create(CommunicationService.class); /** * This is the entry point method. */ public void onModuleLoad() { final Button sendButton = new Button("Send"); final TextBox nameField = new TextBox(); nameField.setText("GWT User"); final Label errorLabel = new Label(); // We can add style names to widgets sendButton.addStyleName("sendButton"); // Add the nameField and sendButton to the RootPanel // Use RootPanel.get() to get the entire body element RootPanel.get("nameFieldContainer").add(nameField); RootPanel.get("sendButtonContainer").add(sendButton); RootPanel.get("errorLabelContainer").add(errorLabel); // Focus the cursor on the name field when the app loads nameField.setFocus(true); nameField.selectAll(); // Create the popup dialog box final DialogBox dialogBox = new DialogBox(); dialogBox.setText("Remote Procedure Call"); dialogBox.setAnimationEnabled(true); final Button closeButton = new Button("Close"); // We can set the id of a widget by accessing its Element closeButton.getElement().setId("closeButton"); final Label textToServerLabel = new Label(); final HTML serverResponseLabel = new HTML(); VerticalPanel dialogVPanel = new VerticalPanel(); dialogVPanel.addStyleName("dialogVPanel"); dialogVPanel.add(new HTML("<b>Sending name to the server:</b>")); dialogVPanel.add(textToServerLabel); dialogVPanel.add(new HTML("<br><b>Server replies:</b>")); dialogVPanel.add(serverResponseLabel); dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT); dialogVPanel.add(closeButton); dialogBox.setWidget(dialogVPanel); // Add a handler to close the DialogBox closeButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { dialogBox.hide(); sendButton.setEnabled(true); sendButton.setFocus(true); } }); // Create a handler for the sendButton and nameField class MyHandler implements ClickHandler, KeyUpHandler { /** * Fired when the user clicks on the sendButton. */ public void onClick(ClickEvent event) { sendNameToServer(); } /** * Fired when the user types in the nameField. */ public void onKeyUp(KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { sendNameToServer(); } } /** * Send the name from the nameField to the server and wait for a response. */ private void sendNameToServer() { // First, we validate the input. errorLabel.setText(""); String textToServer = ""; // Then, we send the input to the server. sendButton.setEnabled(false); serverResponseLabel.setText(""); /*greetingService.sendRequest(null, new AsyncCallback<String>() { public void onFailure(Throwable caught) { // Show the RPC error message to the user dialogBox .setText("Remote Procedure Call - Failure"); serverResponseLabel .addStyleName("serverResponseLabelError"); serverResponseLabel.setHTML(SERVER_ERROR); dialogBox.center(); closeButton.setFocus(true); } public void onSuccess(String result) { dialogBox.setText("Remote Procedure Call"); serverResponseLabel .removeStyleName("serverResponseLabelError"); //serverResponseLabel.setHTML(result); dialogBox.center(); closeButton.setFocus(true); } });*/ } } // Add a handler to send the name to the server MyHandler handler = new MyHandler(); sendButton.addClickHandler(handler); nameField.addKeyUpHandler(handler); } }
[ "ugurkira@d4a8ba5b-d184-7677-b597-0b9f40b331d2" ]
ugurkira@d4a8ba5b-d184-7677-b597-0b9f40b331d2
0834b6f1f72621fa10ddbd4730728e040b24f609
48e16515b7cbad5f195b9a6dcca5e1b3404b366c
/src/test/java/com/flowrspot/cucumber/stepdefs/UserStepDefs.java
1862ff46fad08a98a36225429665655d74a278ae
[]
no_license
BulkSecurityGeneratorProject/flowr-spot
560ef7c0771a7e5beb85d70f01c339a4bdc659ae
5722d61c6bf1b5e981e70fb567dc8885eca5a502
refs/heads/master
2022-12-19T04:24:50.893112
2019-09-19T12:55:34
2019-09-19T12:55:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,515
java
package com.flowrspot.cucumber.stepdefs; import cucumber.api.java.Before; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import com.flowrspot.web.rest.UserResource; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; public class UserStepDefs extends StepDefs { @Autowired private UserResource userResource; private MockMvc restUserMockMvc; @Before public void setup() { this.restUserMockMvc = MockMvcBuilders.standaloneSetup(userResource).build(); } @When("^I search user '(.*)'$") public void i_search_user_admin(String userId) throws Throwable { actions = restUserMockMvc.perform(get("/api/users/" + userId) .accept(MediaType.APPLICATION_JSON)); } @Then("^the user is found$") public void the_user_is_found() throws Throwable { actions .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)); } @Then("^his last name is '(.*)'$") public void his_last_name_is(String lastName) throws Throwable { actions.andExpect(jsonPath("$.lastName").value(lastName)); } }
[ "spajic.stefan@gmail.com" ]
spajic.stefan@gmail.com
e19291de742a55df72e3c47da42c2fe1fa205f42
477b07a462a2387d4d17edb5ecfa9552cae19609
/LydiaLessons/src/lesson150519/concurrency/RaceConditionWhileReading.java
38dccdfe9741ff8788ede5894194c1041dfd358c
[]
no_license
Thinout/JavaLessons
5f4324b50f7eed3a43046db628c77a6e20a1f977
b542d4b93211a20a48685c714fb770f7851f52bf
refs/heads/master
2021-01-01T18:55:20.723064
2015-06-11T17:56:06
2015-06-11T17:56:06
31,376,618
0
0
null
null
null
null
UTF-8
Java
false
false
1,166
java
package lesson150519.concurrency; import java.util.Random; import utils.Utils; public class RaceConditionWhileReading { static class Data { int a; int b; public Data(final int value) { setValue(value); } public void setValue(final int value){ int calcResult = calc(value); synchronized (this) { a = value; Utils.pause(1000); b = a + calcResult; } } public boolean isGood() { int x, y; synchronized (this) { x = a; y = b; } int r = calc(x); return y == x + r; } private int calc(final int value) { for (int i = 0; i < 1000000; i++) { Math.sqrt(value); } return value; } } public static void main(final String[] args) { final Data data = new Data(100); new Thread(new Runnable() { @Override public void run() { Random random = new Random(); while(true) { Utils.pause(1000); int nextInt = random.nextInt(100); data.setValue(nextInt); System.out.println(nextInt); } } }).start(); while(true) { Utils.pause(1000); if(!data.isGood()) { System.out.println("Data is corrupted!"); } } } }
[ "lydia@gmail.com" ]
lydia@gmail.com
49b1808b8eb9ca3df45ce33ac2217ed22e8b2372
6ec062876298b88a9ece19c7ee8a2cf1c48f2fb1
/org.quickcheck.integration/src/org/quickcheck/integration/handlers/GeneratorsHandler.java
714b279051586efc4470499be2e81f3d856786a8
[ "MIT" ]
permissive
oroszgy/quickcheck4eclipse
9c5397b2402e9c3aef0d11f8975e87aa5a08857c
365cdb43457a8f36db4a960d78894b53d06dd8e7
refs/heads/master
2021-01-10T20:16:48.139011
2010-05-25T10:57:28
2010-05-25T10:57:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
9,492
java
/******************************************************************************* * Copyright (c) 2010 György Orosz * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. ******************************************************************************/ package org.quickcheck.integration.handlers; import java.util.ArrayList; import org.protest.integration.lib.textutils.EditorUtils; import org.protest.integration.lib.textutils.InsertionStringPair; import org.protest.integration.lib.textutils.OrdinalNumber; import org.protest.integration.lib.ui.DynamicInputDialog; import org.protest.integration.lib.ui.NullInputException; public class GeneratorsHandler extends AbstractQuickCheckHandler { @Override protected InsertionStringPair getInsertionString(String id) throws NullInputException { String before = ""; String after = ""; ArrayList<String> input; InsertionStringPair ret = null; if (id.equals("sizedgenerator")) { input = DynamicInputDialog.run("Sized generator", "Generator name"); before = input.get(0) + "() ->" + EditorUtils.NEWLINE; before += EditorUtils.TAB + "?SIZED(Size," + input.get(0) + "Gen(" + input.get(0) + "))." + EditorUtils.NEWLINE + EditorUtils.NEWLINE; before += input.get(0) + "(0) ->" + EditorUtils.NEWLINE + EditorUtils.TAB + ";"; before += input.get(0) + "(Size) ->" + EditorUtils.NEWLINE + EditorUtils.TAB + "."; // Macros } else if (id.equals("LET")) { ret = EditorUtils.compassWith("?LET", "Macro LET", "Bound variable", "Generator for variable"); } else if (id.equals("SIZED")) { ret = EditorUtils.compassWith("?SIZED", "Macro SIZED", "Size variable", "Generator for variable"); } else if (id.equals("SUCHTHAT")) { before = EditorUtils.createCall("?SUCHTHAT", "Bound variable", "Generator for variable", "Condition"); } else if (id.equals("SUCHTHATMAYBE")) { before = EditorUtils.createCall("?SUCHTHATMAYBE", "Macro SUCHTHATMAYBE", "Bound variable", "Generator for variable", "Condition"); } else if (id.equals("SHRINK")) { ret = EditorUtils.compassWith("?SHRINK", "Macro SHRINK", OrdinalNumber.First, "List of generators"); } else if (id.equals("SHRINKWHILE")) { before = EditorUtils.createCall("?SHRINKWHILE", "Macro SHRINKWHILE", "Bound variable", "Generator for variable", "Condition"); } else if (id.equals("LETSHRINK")) { ret = EditorUtils.compassWith("?LETSHRINK", "Macro LETSHRINK", "Bound variable", "Generator (should be a list)"); } else if (id.equals("LAZY")) { ret = EditorUtils.compassWith("?LAZY", "Macro LAZY"); // Functions } else if (id.equals("bool")) { before = EditorUtils.createCall("bool", "Function bool"); } else if (id.equals("char")) { before = EditorUtils.createCall("char", "Function char"); } else if (id.equals("choose")) { before = EditorUtils.createCall("choose", "Function choose", "Low value", "High value"); } else if (id.equals("default")) { ret = EditorUtils.compassWith("default", "Function default", "Default value"); } else if (id.equals("elements")) { ret = EditorUtils.compassWith("elements", "Function elements", "List of elements"); } else if (id.equals("eval/1")) { ret = EditorUtils.compassWith("eval/1", "Function eval/1", new String[0]); } else if (id.equals("eval/2")) { ret = EditorUtils.compassWith("eval/2", "Function eval/2", "Environment"); } else if (id.equals("fault")) { ret = EditorUtils.compassWith("fault", "Function fault", "Fault generator"); } else if (id.equals("fault-rate")) { ret = EditorUtils.compassWith("fault-rate", "Function fault-rate", "M (in M out of N)", "N (in M out of N)"); } else if (id.equals("frequency")) { ret = EditorUtils.compassWith("frequency", "Function frequency"); } else if (id.equals("function0")) { ret = EditorUtils.compassWith("function0", "Function function0"); } else if (id.equals("function1")) { ret = EditorUtils.compassWith("function1", "Function function1"); } else if (id.equals("function2")) { ret = EditorUtils.compassWith("function2", "Function function2"); } else if (id.equals("function3")) { ret = EditorUtils.compassWith("function3", "Function function3"); } else if (id.equals("function4")) { ret = EditorUtils.compassWith("function4", "Function function4"); } else if (id.equals("growingelements")) { before = EditorUtils.createCall("growingelements", "Function growingelements"); } else if (id.equals("includeif")) { before = EditorUtils.createCall("includeif", "Function includeif", "Boolean expression", "Element"); } else if (id.equals("int")) { ret = EditorUtils.compassWith("int", "Function int"); } else if (id.equals("largeint")) { ret = EditorUtils.compassWith("largeint", "Function largeint"); } else if (id.equals("less_faulty")) { ret = EditorUtils.compassWith("less_faulty", "Function less_faulty", "Decreasing factor"); } else if (id.equals("list")) { ret = EditorUtils.compassWith("list", "Function list"); } else if (id.equals("maybe")) { ret = EditorUtils.compassWith("maybe", "Function maybe"); } else if (id.equals("more_faulty")) { ret = EditorUtils.compassWith("more_faulty", "Function more_faulty", "Increasing factor"); } else if (id.equals("nat")) { ret = EditorUtils.compassWith("nat", "Function nat"); } else if (id.equals("no_faults")) { ret = EditorUtils.compassWith("no_faults", "Function no_faults"); } else if (id.equals("noshrink")) { ret = EditorUtils.compassWith("noshrink", "Function noshrink"); } else if (id.equals("oneof")) { ret = EditorUtils.compassWith("oneof", "Function oneof"); } else if (id.equals("open")) { ret = EditorUtils.compassWith("open", "Function open"); } else if (id.equals("orderedlist")) { ret = EditorUtils.compassWith("orderedlist", "Function orderedlist"); } else if (id.equals("parameter/1")) { ret = EditorUtils.compassWith("parameter/1", "Function parameter/1"); } else if (id.equals("parameter/2")) { ret = EditorUtils.compassWith("parameter/2", "Function parameter/2", OrdinalNumber.First, "Default value"); } else if (id.equals("peek")) { ret = EditorUtils.compassWith("peek", "Function peek"); } else if (id.equals("prop_shrinks_without_duplicates")) { ret = EditorUtils.compassWith( "prop_shrinks_without_duplicates", "Function prop_shrinks_without_duplicates"); } else if (id.equals("real")) { ret = EditorUtils.compassWith("real", "Function real"); } else if (id.equals("resize")) { ret = EditorUtils.compassWith("resize", "Function resize", "New size"); } else if (id.equals("return")) { ret = EditorUtils.compassWith("return", "Function return"); } else if (id.equals("sample")) { ret = EditorUtils.compassWith("sample", "Function sample"); } else if (id.equals("sampleshrink")) { ret = EditorUtils.compassWith("sampleshrink", "Function sampleshrink"); } else if (id.equals("seal")) { ret = EditorUtils.compassWith("seal", "Function seal"); } else if (id.equals("shrink_int")) { before = EditorUtils.createCall("shrink_int", "Function shrink_int", "N (range N to M)", "M (range N to M)", "Value X"); } else if (id.equals("shrink_list")) { before = EditorUtils.createCall("shrink_list", "Function shrink_list", "List (shrinks to any sublist)"); } else if (id.equals("shrink_without_duplicates")) { ret = EditorUtils.compassWith("shrink_without_duplicates", "Function shrink_without_duplicates"); } else if (id.equals("timeout")) { ret = EditorUtils.compassWith("timeout", "Function timeout", "Timeout (in ms)"); } else if (id.equals("vector")) { ret = EditorUtils.compassWith("vector", "Function vector", "Vector size"); } else if (id.equals("wheighted_default")) { ret = EditorUtils.compassWith("wheighted_default", "Function wheighted_default", "Default ({wheight,Value})"); } else if (id.equals("with_parameter")) { ret = EditorUtils.compassWith("with_parameter", "Function with_parameter", "Parameter", "Value"); } else if (id.equals("with_parameters")) { ret = EditorUtils.compassWith("with_parameters", "Function with_parameters", "List of {Parameter,Value}"); } if (ret != null) return ret; return new InsertionStringPair(before, after); } }
[ "G.Orosz@kent.ac.uk" ]
G.Orosz@kent.ac.uk
c1f2344369273a5c159e8d2bb8e90de5e0944d72
d68599e923577d000bade5b31f73a54ac4980a25
/test/com/opera/core/systems/MouseTest.java
efaff08da0cacbc5ebcc6d6c6b02355abd4af688
[ "Apache-2.0" ]
permissive
illicitonion/operadriver
7d57f6b0cc225d507d66aafb86016020547abed3
bdd7d5d3178858207e4d0215881c9c7a168430b6
refs/heads/master
2020-12-24T18:13:30.767646
2012-05-15T22:34:10
2012-05-15T22:34:10
3,248,807
0
0
null
null
null
null
UTF-8
Java
false
false
2,353
java
/* Copyright 2008-2012 Opera Software ASA 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.opera.core.systems; import com.opera.core.systems.testing.Ignore; import com.opera.core.systems.testing.OperaDriverTestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.Keys; import org.openqa.selenium.Mouse; import org.openqa.selenium.interactions.Actions; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import static org.junit.matchers.JUnitMatchers.containsString; public class MouseTest extends OperaDriverTestCase { public Mouse mouse; public OperaWebElement log; public OperaWebElement test; @Before public void beforeEach() { mouse = driver.getMouse(); driver.navigate().to(pages.mouse); log = (OperaWebElement) driver.findElementById("log"); test = (OperaWebElement) driver.findElementById("test"); } @After public void afterEach() { // Tests sometimes cause problems because a context menu is opened on Desktop, ensure that we // cancel the context menu if any. new Actions(driver).sendKeys(Keys.ESCAPE).perform(); } @Test public void mouseOver() { String hash = test.getImageHash(); mouse.mouseMove(test.getCoordinates()); assertNotSame(hash, test.getImageHash()); } @Test @Ignore(value = "Unknown why we're not triggering dblclick ES events, investigate") public void doubleClick() { mouse.doubleClick(test.getCoordinates()); assertThat(log(), containsString("dblclick")); } @Test public void contextClick() { mouse.contextClick(test.getCoordinates()); assertTrue(log().contains("mousedown 2")); assertTrue(log().contains("mouseup 2")); } private String log() { return log.getAttribute("value"); } }
[ "andreastt@opera.com" ]
andreastt@opera.com
97f9b3f391502c27b1a0f6f40dd37068ab57aff4
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/median/3cf6d33ab0357953aa5826c67dc74c4aa483f16ef04c973a68d58cda6f19ea712954b24f366f880b9c18b628c6605eabc4d3e80dc4aa120fac80fe680e2e708f/007/mutations/133/median_3cf6d33a_007.java
4208ebd54d36b4a12ce806e82be794bcf613eedb
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,124
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class median_3cf6d33a_007 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { median_3cf6d33a_007 mainClass = new median_3cf6d33a_007 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj a = new IntObj (), b = new IntObj (), c = new IntObj (); output += (String.format ("Please enter 3 numbers separated by spaces > ")); a.value = scanner.nextInt (); b.value = scanner.nextInt (); c.value = scanner.nextInt (); if ((a.value > b.value && b.value > c.value) || (c.value > b.value && b.value > a.value)) { output += (String.format ("%d is the median\n", b.value)); } else if ((c.value) > (a.value) || (c.value > a.value && a.value > b.value)) { output += (String.format ("%d is the median\n", a.value)); } else if ((a.value > c.value && c.value > b.value) || (b.value > c.value && c.value > a.value)) { output += (String.format ("%d is the median\n", c.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
11caf7aa0e75ee69bbd29d998892f9e1f7f71dc1
6e93e75e1071d9427fb59b4dfda61acc4ca3d7f2
/app/src/main/java/com/pps/globant/fittracker/utils/MailSender.java
486631e9c7dfaba4f13b048fba4a771973e1e9ed
[]
no_license
SartiMau/FitTracker
2f906bdcd0cae354221167c4d3a14179a1aa02ec
0791073b4b9756cda41df5550ea709d0952078d1
refs/heads/master
2022-11-05T14:29:12.953484
2020-06-24T17:35:59
2020-06-24T17:35:59
268,358,088
0
1
null
2020-05-31T20:24:25
2020-05-31T20:24:25
null
UTF-8
Java
false
false
4,452
java
package com.pps.globant.fittracker.utils; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.Security; import java.util.Properties; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class MailSender extends Authenticator { public static final String MAIL_TRANSPORT_PROTOCOL = "mail.transport.protocol"; public static final String SMTP = "smtp"; public static final String MAIL_HOST = "mail.host"; public static final String MAIL_SMTP_AUTH = "mail.smtp.auth"; public static final String TRUE = "true"; public static final String MAIL_SMTP_PORT = "mail.smtp.port"; public static final String PORT = "465"; public static final String MAIL_SMTP_SOCKET_FACTORY_PORT = "mail.smtp.socketFactory.port"; public static final String MAIL_SMTP_SOCKET_FACTORY_CLASS = "mail.smtp.socketFactory.class"; public static final String JAVAX_NET_SSL_SSLSOCKET_FACTORY = "javax.net.ssl.SSLSocketFactory"; public static final String MAIL_SMTP_SOCKET_FACTORY_FALLBACK = "mail.smtp.socketFactory.fallback"; public static final String FALSE = "false"; public static final String MAIL_SMTP_QUITWAIT = "mail.smtp.quitwait"; public static final String TEXT_PLAIN = "text/plain"; static { Security.addProvider(new JSSEProvider()); } private String mailhost; private String user; private String password; private Session session; public MailSender(String user, String password, String mailhost) { this.user = user; this.password = password; this.mailhost = mailhost; Properties props = new Properties(); props.setProperty(MAIL_TRANSPORT_PROTOCOL, SMTP); props.setProperty(MAIL_HOST, mailhost); props.put(MAIL_SMTP_AUTH, TRUE); props.put(MAIL_SMTP_PORT, PORT); props.put(MAIL_SMTP_SOCKET_FACTORY_PORT, PORT); props.put(MAIL_SMTP_SOCKET_FACTORY_CLASS, JAVAX_NET_SSL_SSLSOCKET_FACTORY); props.put(MAIL_SMTP_SOCKET_FACTORY_FALLBACK, FALSE); props.setProperty(MAIL_SMTP_QUITWAIT, FALSE); session = Session.getDefaultInstance(props, this); } protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(user, password); } public synchronized void sendMail(String subject, String body, String sender, String recipients) throws MessagingException { MimeMessage message = new MimeMessage(session); DataHandler handler = new DataHandler(new ByteArrayDataSource(body.getBytes(), TEXT_PLAIN)); message.setSender(new InternetAddress(sender)); message.setSubject(subject); message.setDataHandler(handler); message.setRecipient(Message.RecipientType.TO, new InternetAddress(recipients)); Transport.send(message); } public class ByteArrayDataSource implements DataSource { public static final String APPLICATION_OCTET_STREAM = "application/octet-stream"; public static final String BYTE_ARRAY_DATA_SOURCE = "ByteArrayDataSource"; public static final String NOT_SUPPORTED = "Not Supported"; private byte[] data; private String type; public ByteArrayDataSource(byte[] data, String type) { super(); this.data = data; this.type = type; } public ByteArrayDataSource(byte[] data) { super(); this.data = data; } public void setType(String type) { this.type = type; } public String getContentType() { if (type == null) return APPLICATION_OCTET_STREAM; else return type; } public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(data); } public String getName() { return BYTE_ARRAY_DATA_SOURCE; } public OutputStream getOutputStream() throws IOException { throw new IOException(NOT_SUPPORTED); } } }
[ "gregorionicolasgerardi@gmail.com" ]
gregorionicolasgerardi@gmail.com
da89f95ea6818548a342597b0177c3a16f1f2118
365c5474d0f2de2f6ad320be1228eff1ccc2a9eb
/miscellaneous/GrandestStaircase/GrandestStairCase.java
77c89357b01c46a645b2d38cce09bd4b899154ce
[]
no_license
mohitkumar20/DataStructuresAndAlgorithms
22947b4fd0ecf450a3434e9a8e9053e5e8bb31f8
804244ea11feacf6e5c610e7d4b7940b6b9ce85e
refs/heads/master
2020-07-19T01:57:10.223812
2018-01-03T07:10:15
2018-01-03T07:10:15
94,333,127
0
0
null
null
null
null
UTF-8
Java
false
false
2,868
java
//Google Foobar question. import java.io.*; public class GrandestStairCase { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); System.out.println(answer(n)); } public static int answer(int n) { // Your code goes here. int[][] mat = new int[n][n + 1]; for(int i = 0 ; i < n + 1 ; i++) { if(i == 0) { mat[0][i] = 1; mat[1][i] = 1; mat[2][i] = 1; } else if(i == 1) { mat[0][i] = 0; mat[1][i] = 1; mat[2][i] = 1; } else if(i == 2 || i == 3) { mat[0][i] = 0; mat[1][i] = 0; mat[2][i] = 1; } else { mat[0][i] = 0; mat[1][i] = 0; mat[2][i] = 0; } } for(int i = 3 ; i < n ; i++) { for(int j = 0 ; j < n + 1 ; j++) { if(j <= i) { mat[i][j] = mat[i - 1][j]; } else { if(i > j - i && (j - i) != 1 && (j - i) != 2) { mat[i][j] = mat[i - 1][j] + 1 + mat[i - 1][j - i]; } else { mat[i][j] = mat[i - 1][j] + mat[i - 1][j - i]; } } } } // for(int i = 0 ; i < n ; i++) // { // for(int j = 0 ; j < n + 1 ; j++) // { // System.out.print(mat[i][j] + " "); // } // System.out.println(""); // } return mat[n - 1][n]; } public static int func(int n,int[] arr) { if(n < 3) { return 0; } else if(arr[n] != 0) { return arr[n]; } else { for(int i = n - 1; i >= n - i ; i--) { //System.out.println("fsf"); if(i > n - i) { //System.out.println("here.. n - i = " + (n - i) + ", n = " + n); arr[n] += 1 + func(n - i,arr); } else if(i == n - i) { //System.out.println("last"); arr[n] += func(n - i,arr); } else { int secondPartition = n - i; int thirdPartition = i - 1; int fourthPartition = secondPartition - thirdPartition; if(thirdPartition < i && fourthPartition < i) { //arr[n] += } } } return arr[n]; } } }
[ "mohitkumar1015795@gmail.com" ]
mohitkumar1015795@gmail.com
1429c4bd74a2cba0f8955e703f75166882f82f69
4a8b81b7cb0c3647f28c9e3f0ddcfe115a891c00
/src/main/java/com/myhabit/dto/eating_habit/EatingHabitDTO.java
8fbae602ed211c0a96b126711bf14a1205f2cee4
[]
no_license
phuongHoang01/my_habit-be
ec596d5ab921e7d510004abc9c4d8cec3bc4b242
4b698c75653f0c367beca7e3f1682f4b805c40a5
refs/heads/master
2023-02-23T17:58:40.556533
2021-01-27T02:19:30
2021-01-27T02:19:30
330,540,103
0
0
null
null
null
null
UTF-8
Java
false
false
1,172
java
package com.myhabit.dto.eating_habit; import java.sql.Timestamp; import javax.persistence.Column; import com.myhabit.dto.habit.HabitDTO; public class EatingHabitDTO extends HabitDTO { @Column(name = "lunch_calo") private float lunchCalo; @Column(name = "breakfast_calo") private float breakfastCalo; @Column(name = "dinner_calo") private float dinnerCalo; @Column(name = "total_calo") private float totalCalo; @Column(name = "user_id") private String userId; public float getLunchCalo() { return lunchCalo; } public void setLunchCalo(float lunchCalo) { this.lunchCalo = lunchCalo; } public float getBreakfastCalo() { return breakfastCalo; } public void setBreakfastCalo(float breakfastCalo) { this.breakfastCalo = breakfastCalo; } public float getDinnerCalo() { return dinnerCalo; } public void setDinnerCalo(float dinnerCalo) { this.dinnerCalo = dinnerCalo; } public float getTotalCalo() { return totalCalo; } public void setTotalCalo(float totalCalo) { this.totalCalo = totalCalo; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } }
[ "won.vn2000@yahoo.com.vn" ]
won.vn2000@yahoo.com.vn
7d52c54766c035685374cef754c9fe46051b34f3
4882656c43b6716811bd125c40d07bc2e856c9e3
/Coding_Test/src/BOJ_Basic/BOJ_Basic_00.java
0d2e3a18e413ace21455c5d576871b422d390355
[]
no_license
NyeongB/Coding_Test
edb93ea03479656430e766abd5ca65ab2744e3e7
b2afc59a9421201326c69caf3d027935e1f19dc6
refs/heads/master
2023-06-19T13:33:33.929451
2021-07-16T12:31:35
2021-07-16T12:31:35
288,919,498
0
0
null
null
null
null
UTF-8
Java
false
false
190
java
// Date : 2020.09.01 // Title : // Author : Choi Cheol Nyeong // Language : Java package BOJ_Basic; public class BOJ_Basic_00 { public static void main(String[] args) { } }
[ "kdtoaj14@ajou.ac.kr" ]
kdtoaj14@ajou.ac.kr
c92be3d33a13ec60584c85df6603874c943964ac
73458087c9a504dedc5acd84ecd63db5dfcd5ca1
/src/org/simpleframework/xml/ElementMap.java
4d5d9f5fb65534f39355546dd6d8dfc32b1ed812
[]
no_license
jtap60/com.estr
99ff2a6dd07b02b41a9cc3c1d28bb6545e68fb27
8b70bf2da8b24c7cef5973744e6054ef972fc745
refs/heads/master
2020-04-14T02:12:20.424436
2018-12-30T10:56:45
2018-12-30T10:56:45
163,578,360
0
0
null
null
null
null
UTF-8
Java
false
false
755
java
package org.simpleframework.xml; import java.lang.annotation.Annotation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface ElementMap { boolean attribute() default false; boolean data() default false; boolean empty() default true; String entry() default ""; boolean inline() default false; String key() default ""; Class keyType() default void.class; String name() default ""; boolean required() default true; String value() default ""; Class valueType() default void.class; } /* Location: * Qualified Name: org.simpleframework.xml.ElementMap * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
27298dc43aaee3c30bf265419139288b1ab9ea8d
92e48dbcfd62abc8670abd9d6171dbcc03dd2dae
/src/main/java/edu/tamu/jcabelloc/springmvcsecurity/controller/LoginController.java
7f3dbf1e52ef1400f9d546466c1cb63dd6c5b08c
[]
no_license
jcabelloc/spring-mvc-security
5b49c0152e088d119b37c31b450b785d7e4c775a
991effe1361b2c6b520bcdf0d4a5204b1c361236
refs/heads/master
2021-04-09T16:15:23.158697
2018-03-31T04:06:55
2018-03-31T04:06:55
125,793,639
0
0
null
null
null
null
UTF-8
Java
false
false
430
java
package edu.tamu.jcabelloc.springmvcsecurity.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class LoginController { @GetMapping("loginPage") public String loginPage() { //return "login"; return "newlogin"; } @GetMapping("/access-denied") public String showAccessDenied() { return "access-denied"; } }
[ "jcabelloc@gmail.com" ]
jcabelloc@gmail.com
5de82d4fbb81442a85b6955cb5c3965d1910b2aa
cd35d674f1253228ee0e23eb6679ef3721a8c553
/entity/User.java
3f85847b6ebd833d3f09fb3a7073c387019097dc
[]
no_license
xintongc/ShoppingMallRegisterSystem
cd9e113581d384ffd660a7eb137428827e869397
d73e400d78943603a90f302047ee244d333eaf98
refs/heads/master
2021-09-04T20:14:20.333175
2018-01-22T03:46:22
2018-01-22T03:46:22
117,198,980
1
0
null
null
null
null
UTF-8
Java
false
false
1,422
java
package com.zz.mall.entity; import lombok.Data; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.sql.Timestamp; @Data @Entity @Table(name = "user") public class User { @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @NotNull(message = "name不允许为空") @Column(name = "user_name") private String userName; @NotNull(message = "mailAddr不能为空") @Column(name = "mail_addr") private String mailAddr; @NotNull(message = "pwd不能为空") @Column(name = "pwd") private String pwd; @Column(name = "avatar") private String avatar;//url -> local file @Transient //这个变量,不参与数据的持久化 private String photo; //图片 -> byte[] -> base64做encode -> String 给前端 @Column(name = "phone_no") private String phoneNo; @Column(name = "is_active") private Boolean active = true; @Column(name = "created_at") private Timestamp createdAt; @Column(name = "updated_at") private Timestamp updatedAt; @PrePersist public void prePersist() { Timestamp timestamp = new Timestamp(System.currentTimeMillis()); createdAt = timestamp; updatedAt = timestamp; } @PreUpdate public void preUpdate() { updatedAt = new Timestamp(System.currentTimeMillis()); } }
[ "noreply@github.com" ]
xintongc.noreply@github.com
a2772fdd95e882eb319248f9c2612ebcde9e215a
49c46465fc05da8ea74c581048c2c6378263bb93
/src/main/java/com/legendshop/core/exception/ErrorCodes.java
c98ffaf469f8213ebfa3433a8a3968c5a2253de4
[ "Apache-2.0" ]
permissive
xhuanghun/legend-shop
c8a01cc75f73acd1a8bc68872e8e79c917fb96cd
fee39ad0d41521823adda248dd9020dda4c5e0f4
refs/heads/master
2021-01-10T18:08:31.401687
2014-05-31T03:36:36
2014-05-31T03:36:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,109
java
package com.legendshop.core.exception; public abstract interface ErrorCodes { public static final String NORMAL_STAUTS = "200"; public static final String SYSTEM_ERROR = "999"; public static final String BUSINESS_ERROR = "998"; public static final String SYSTEM_UNINSTALLED = "901"; public static final String RESOURCE_CONFLICT = "409"; public static final String INTERNAL_ERROR = "500"; public static final String UNAUTHORIZED = "401"; public static final String INSUFFICIENT_PERMISSIONS = "402"; public static final String ENTITY_NO_FOUND = "404"; public static final String NON_NULLABLE = "405"; public static final String LIMITATION_ERROR = "416"; public static final String AUDITING = "502"; public static final String TIME_OUT = "503"; public static final String SAVE_ERROR = "601"; public static final String UPDATE_ERROR = "602"; public static final String INVALID_TOKEN = "603"; public static final String INVALID_FORMAT = "604"; public static final String NOT_ENOUGH_SCORE = "605"; public static final String NOT_ENOUGH_STOCKS = "606"; }
[ "covito@163.com" ]
covito@163.com
071956e4ecdd51573f722edbbdc9c2b01edb177f
5a6e0619077432932ae9b1db95b4a3ca310b7c43
/src/generated-sources/jooq/com/ankur/project/Public.java
6896f449ab991bc991b03fd4bcc5b56f6aae6b8b
[]
no_license
Ankur800/Health-and-Fitness-App
623ae33a493f939005f78474ad590b0a0272ddd2
5305432bb34c5ea68da87d8c0af9b643359317f5
refs/heads/master
2023-01-12T10:42:20.484763
2020-11-16T13:12:56
2020-11-16T13:12:56
307,911,512
0
0
null
null
null
null
UTF-8
Java
false
false
1,430
java
/** * This class is generated by jOOQ */ package com.ankur.project; /** * This class is generated by jOOQ. */ @javax.annotation.Generated(value = { "http://www.jooq.org", "3.3.2" }, comments = "This class is generated by jOOQ") @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Public extends org.jooq.impl.SchemaImpl { private static final long serialVersionUID = 1042543530; /** * The singleton instance of <code>public</code> */ public static final Public PUBLIC = new Public(); /** * No further instances allowed */ private Public() { super("public"); } @Override public final java.util.List<org.jooq.Sequence<?>> getSequences() { java.util.List result = new java.util.ArrayList(); result.addAll(getSequences0()); return result; } private final java.util.List<org.jooq.Sequence<?>> getSequences0() { return java.util.Arrays.<org.jooq.Sequence<?>>asList( com.ankur.project.Sequences.TASK_TASKID_SEQ, com.ankur.project.Sequences.USER_ID_SEQ); } @Override public final java.util.List<org.jooq.Table<?>> getTables() { java.util.List result = new java.util.ArrayList(); result.addAll(getTables0()); return result; } private final java.util.List<org.jooq.Table<?>> getTables0() { return java.util.Arrays.<org.jooq.Table<?>>asList( com.ankur.project.tables.Task.TASK, com.ankur.project.tables.User.USER); } }
[ "ankurrai800@gmail.com" ]
ankurrai800@gmail.com
1ae544bf544f3086bdf944b036daf363243c358a
ccb599ab5e49539d0271847ab18709951c2aef32
/src/main/java/si/rso/bicycle/entity/UserEntity.java
f2377e00e4890406575c4d4d1a59a4fae35e0fba
[]
no_license
RSO-Bicycle/users
3dc23eb46f41d1c2e17b1a01c577213d8f936b8a
53828234ca137821b9dcf5cdd2051db3d7580a72
refs/heads/master
2020-04-02T13:14:40.460619
2018-11-25T21:19:53
2018-11-25T21:19:53
154,473,180
0
0
null
null
null
null
UTF-8
Java
false
false
2,346
java
package si.rso.bicycle.entity; import javax.persistence.*; import java.util.Date; import java.util.UUID; @Entity @Table(name = "users") public class UserEntity { @Id @GeneratedValue(strategy = GenerationType.TABLE) private int id; @Column(name = "uid") private String uid; @Column(name = "username") private String username; @Column(name = "password") private String password; @Column(name = "activated") private boolean activated; @Column(name = "activation_code") private String activationCode; @Column(name = "activation_code_validity") @Temporal(TemporalType.TIMESTAMP) private Date activationCodeValidity; @Column(name = "deleted") private boolean deleted; @Column(name = "created_at", insertable = false, updatable = false) @Temporal(TemporalType.TIMESTAMP) private Date createdAt; public int getId() { return id; } public void setId(int id) { this.id = id; } public UUID getUid() { return UUID.fromString(this.uid); } public void setUid(UUID uid) { this.uid = uid.toString(); } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public boolean isActivated() { return activated; } public void setActivated(boolean activated) { this.activated = activated; } public String getActivationCode() { return activationCode; } public void setActivationCode(String activationCode) { this.activationCode = activationCode; } public Date getActivationCodeValidity() { return activationCodeValidity; } public void setActivationCodeValidity(Date activationCodeValidity) { this.activationCodeValidity = activationCodeValidity; } public boolean isDeleted() { return deleted; } public void setDeleted(boolean deleted) { this.deleted = deleted; } public Date getCreatedAt() { return createdAt; } public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } }
[ "uros.hercog@gatehub.net" ]
uros.hercog@gatehub.net
833c87dafe4484689a771dc1b5bf47789e2e1f87
995f73d30450a6dce6bc7145d89344b4ad6e0622
/P40_HarmonyOS_2.0.0_Developer_Beta1/src/main/java/android/graphics/Picture.java
b08a25027ad4eb6db3575967d2fbbaae5a5acb00
[]
no_license
morningblu/HWFramework
0ceb02cbe42585d0169d9b6c4964a41b436039f5
672bb34094b8780806a10ba9b1d21036fd808b8e
refs/heads/master
2023-07-29T05:26:14.603817
2021-09-03T05:23:34
2021-09-03T05:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,081
java
package android.graphics; import android.annotation.UnsupportedAppUsage; import java.io.InputStream; import java.io.OutputStream; public class Picture { private static final int WORKING_STREAM_STORAGE = 16384; @UnsupportedAppUsage(maxTargetSdk = 28) private long mNativePicture; private PictureCanvas mRecordingCanvas; private boolean mRequiresHwAcceleration; private static native long nativeBeginRecording(long j, int i, int i2); private static native long nativeConstructor(long j); private static native long nativeCreateFromStream(InputStream inputStream, byte[] bArr); private static native void nativeDestructor(long j); private static native void nativeDraw(long j, long j2); private static native void nativeEndRecording(long j); private static native int nativeGetHeight(long j); private static native int nativeGetWidth(long j); private static native boolean nativeWriteToStream(long j, OutputStream outputStream, byte[] bArr); public Picture() { this(nativeConstructor(0)); } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ public Picture(Picture src) { this(nativeConstructor(src != null ? src.mNativePicture : 0)); } public Picture(long nativePicture) { if (nativePicture != 0) { this.mNativePicture = nativePicture; return; } throw new IllegalArgumentException(); } public void close() { long j = this.mNativePicture; if (j != 0) { nativeDestructor(j); this.mNativePicture = 0; } } /* access modifiers changed from: protected */ public void finalize() throws Throwable { try { close(); } finally { super.finalize(); } } private void verifyValid() { if (this.mNativePicture == 0) { throw new IllegalStateException("Picture is destroyed"); } } public Canvas beginRecording(int width, int height) { verifyValid(); if (this.mRecordingCanvas == null) { this.mRecordingCanvas = new PictureCanvas(this, nativeBeginRecording(this.mNativePicture, width, height)); this.mRequiresHwAcceleration = false; return this.mRecordingCanvas; } throw new IllegalStateException("Picture already recording, must call #endRecording()"); } public void endRecording() { verifyValid(); PictureCanvas pictureCanvas = this.mRecordingCanvas; if (pictureCanvas != null) { this.mRequiresHwAcceleration = pictureCanvas.mHoldsHwBitmap; this.mRecordingCanvas = null; nativeEndRecording(this.mNativePicture); } } public int getWidth() { verifyValid(); return nativeGetWidth(this.mNativePicture); } public int getHeight() { verifyValid(); return nativeGetHeight(this.mNativePicture); } public boolean requiresHardwareAcceleration() { verifyValid(); return this.mRequiresHwAcceleration; } public void draw(Canvas canvas) { verifyValid(); if (this.mRecordingCanvas != null) { endRecording(); } if (this.mRequiresHwAcceleration && !canvas.isHardwareAccelerated()) { canvas.onHwBitmapInSwMode(); } nativeDraw(canvas.getNativeCanvasWrapper(), this.mNativePicture); } @Deprecated public static Picture createFromStream(InputStream stream) { return new Picture(nativeCreateFromStream(stream, new byte[16384])); } @Deprecated public void writeToStream(OutputStream stream) { verifyValid(); if (stream == null) { throw new IllegalArgumentException("stream cannot be null"); } else if (!nativeWriteToStream(this.mNativePicture, stream, new byte[16384])) { throw new RuntimeException(); } } /* access modifiers changed from: private */ public static class PictureCanvas extends Canvas { boolean mHoldsHwBitmap; private final Picture mPicture; public PictureCanvas(Picture pict, long nativeCanvas) { super(nativeCanvas); this.mPicture = pict; this.mDensity = 0; } @Override // android.graphics.Canvas public void setBitmap(Bitmap bitmap) { throw new RuntimeException("Cannot call setBitmap on a picture canvas"); } @Override // android.graphics.Canvas public void drawPicture(Picture picture) { if (this.mPicture != picture) { super.drawPicture(picture); return; } throw new RuntimeException("Cannot draw a picture into its recording canvas"); } /* access modifiers changed from: protected */ @Override // android.graphics.BaseCanvas public void onHwBitmapInSwMode() { this.mHoldsHwBitmap = true; } } }
[ "dstmath@163.com" ]
dstmath@163.com
0ff51700ff145b3a59922047206d68335fc55de1
620a39fe25cc5fbd0ed09218b62ccbea75863cda
/wfj_front/src/shop/product/action/ProductImgAction.java
0676eb05b55104d139ae72bc0d08f78e6e4c7329
[]
no_license
hukeling/wfj
f9d2a1dc731292acfc67b1371f0f6933b0af1d17
0aed879a73b1349d74948efd74dadd97616d8fb8
refs/heads/master
2021-01-16T18:34:47.111453
2017-08-12T07:48:58
2017-08-12T07:48:58
100,095,588
0
0
null
null
null
null
UTF-8
Java
false
false
4,142
java
package shop.product.action; import java.io.File; import java.io.PrintWriter; import java.util.UUID; import net.sf.json.JSONObject; import org.apache.commons.io.FileUtils; import shop.product.pojo.ProductImg; import shop.product.service.IProductImgService; import util.action.BaseAction; import util.upload.ImageUtil; /** * ProductImgAction - 商品图片action类 */ @SuppressWarnings("serial") public class ProductImgAction extends BaseAction{ private IProductImgService productImgService;//商品图片service private ProductImg productImgObj=new ProductImg();//商品图片对象 // 上传文件路径 private File imagePath; // 上传文件名称 private String imagePathFileName; // 异步ajax 图片上传 public void uploadImage() throws Exception { JSONObject jo = new JSONObject(); response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); // 1图片上传 if (imagePath != null) { // 1上传文件的类型 String typeStr = imagePathFileName.substring(imagePathFileName.lastIndexOf(".") + 1); if ("jpg".equals(typeStr) || "JPG".equals(typeStr) || "png".equals(typeStr) || "PNG".equals(typeStr) || "GIF".equals(typeStr) ||"gif".equals(typeStr) || "".equals(typeStr)) { // 需要修改图片的存放地址 String newName = imagePathFileName.substring(imagePathFileName.lastIndexOf(".")); newName = UUID.randomUUID() + newName; File savefile = new File(new File((String) fileUrlConfig.get("fileUploadRoot") + "/"+ (String) fileUrlConfig.get("shop") + "/image/product"), newName); if (!savefile.getParentFile().exists()) { savefile.getParentFile().mkdirs(); } FileUtils.copyFile(imagePath, savefile); imagePathFileName = (String) fileUrlConfig.get("shop") + "/image/product/" + newName; //设置图片处理的参数 String imagePath="D:/server/tomcat/hyytweb/shop/image/product/";//存储路径 String srcImageFile=imagePath+newName;//源图片 String large=imagePath+"large_"+newName;//水印大图 String scaleImageFile=imagePath+"scaleImageFile_"+newName;//中图临时文件 String medium=imagePath+"medium_"+newName;//水印中图 String thumbnail=imagePath+"thumbnail_"+newName;//滚动小图 //配置文件中上传文件路径的长度 //Z:/thshop/ String lstr=fileUrlConfig.get("fileUploadRoot")+ "/"; int l=lstr.length(); ImageUtil.imageProcessing("d:/logo.gif", srcImageFile, large, scaleImageFile, medium, thumbnail, 500, 500, 300, 300, 1, 1, 0.5f, true,l); //URL入库 String roadURL=(String) fileUrlConfig.get("shop") + "/image/product/"; //源图URL productImgObj.setSource(roadURL+newName); //处理后大的URL productImgObj.setLarge(roadURL+"large_"+newName); //处理后中等的URL productImgObj.setMedium(roadURL+"medium_"+newName); //处理后缩略图URL productImgObj.setThumbnail(roadURL+"thumbnail_"+newName); productImgService.saveOrUpdateObject(productImgObj); jo.accumulate("photoUrl", imagePathFileName); jo.accumulate("visitFileUploadRoot", (String) fileUrlConfig.get("visitFileUploadRoot")); } else { jo.accumulate("photoUrl", "false2"); } } else { jo.accumulate("photoUrl", "false1"); } out.println(jo.toString()); out.flush(); out.close(); } /** * setter getter * @return */ public File getImagePath() { return imagePath; } public void setImagePath(File imagePath) { this.imagePath = imagePath; } public String getImagePathFileName() { return imagePathFileName; } public void setImagePathFileName(String imagePathFileName) { this.imagePathFileName = imagePathFileName; } public void setProductImgService(IProductImgService productImgService) { this.productImgService = productImgService; } public ProductImg getProductImgObj() { return productImgObj; } public void setProductImgObj(ProductImg productImgObj) { this.productImgObj = productImgObj; } }
[ "hukelingwork@163.com" ]
hukelingwork@163.com
2979a12105390d8bd54498580f8db670a068e4b6
1c4d980e11a70463f9e9ddb82dc65d17b7744167
/Java_Stack/JavaFund/ListOfExceptions/List.java
90a8b54129c347fb03612c0aa4b7765e6f239eec
[]
no_license
GhadeerHS/FullStack-DojoBootcamp
a08aab800dac317f846807395aa2546f86572d52
bef58bbee8ff98a711b878c4d9a366af492057ac
refs/heads/master
2020-08-21T22:32:00.578624
2019-11-14T16:46:08
2019-11-14T16:46:08
216,259,556
0
0
null
null
null
null
UTF-8
Java
false
false
587
java
package ListOfExceptions; import java.util.ArrayList; public class List{ public void validate(){ ArrayList<Object> myList = new ArrayList<Object>(); myList.add("13"); myList.add("hello world"); myList.add(48); myList.add("Goodbye World"); for(int i=0;i<myList.size();i++){ try{ Integer castedValue = (Integer) myList.get(i); System.out.println(castedValue); }catch(ClassCastException e){ System.out.println("Error on index "+i); } } } }
[ "Ghadeer.hijji91@gmail.com" ]
Ghadeer.hijji91@gmail.com
b3ce596d0008ba868f4b0fb16a00362c172c211d
18946b40f99d35c1287538472b26d956c71bd40d
/src/Greedy/Dijkstra.java
2b5942a7654f4c3e9f94eda5c31203cf513790fa
[]
no_license
RachelBittar/Data-Structure
e28643a81afc8f8bbe8ddab4c8b78dc271c390d0
d7095c389b383c2abbb544eb90f9c7e9d4866328
refs/heads/master
2023-07-09T00:40:16.205147
2021-08-05T20:29:36
2021-08-05T20:29:36
276,494,447
0
0
null
2021-08-05T20:29:37
2020-07-01T22:26:49
Java
UTF-8
Java
false
false
2,854
java
package Greedy; import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Dijkstra { public static class Node { int from; int to; int distance = Integer.MAX_VALUE; Node next; public Node(int from, int distance) { super(); this.from = from; this.distance = distance; this.next = null; } } // static int minDistance(int dist[], Boolean sptSet[], int n) // { // // Initialize min value // int min = Integer.MAX_VALUE, min_index = -1; // // for (int v = 0; v < n; v++) // if (sptSet[v] == false && dist[v] <= min) { // min = dist[v]; // min_index = v; // } // // return min_index; // } // static int[] shortestReach(int n, int[][] edges, int s) { int[] des = new int[n]; int m = edges.length -1; for (int l=0; l<n; l++) { Node from = new Node(edges[l][0],edges[l][2]); Node to = new Node(0, edges[l][1]); from.next(to); } return des; } static void printSolution(int dist[], int n) { System.out.println("Vertex Distance from Source"); for (int i = 0; i < n; i++) System.out.println(i + " tt " + dist[i]); } private static final Scanner scanner = new Scanner(System.in); public static void main(String[] args) throws IOException { // BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); int t = scanner.nextInt(); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); for (int tItr = 0; tItr < t; tItr++) { String[] nm = scanner.nextLine().split(" "); int n = Integer.parseInt(nm[0]); int m = Integer.parseInt(nm[1]); int[][] edges = new int[m][3]; for (int i = 0; i < m; i++) { String[] edgesRowItems = scanner.nextLine().split(" "); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); for (int j = 0; j < 3; j++) { int edgesItem = Integer.parseInt(edgesRowItems[j]); edges[i][j] = edgesItem; } } int s = scanner.nextInt(); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); int[] result = shortestReach(n, edges, s); for (int i = 0; i < result.length; i++) { System.out.print(String.valueOf(result[i])); if (i != result.length - 1) { System.out.print(" "); } } // bufferedWriter.newLine(); } // bufferedWriter.close(); scanner.close(); } }
[ "rachelbbittar@gmail.com" ]
rachelbbittar@gmail.com
808e319ab674eda8e9fab4d09208f02f4622579a
257807270f6d66b71b78eb2cc13a7c6f4e222f56
/app/src/test/java/com/codepath/flicks/ExampleUnitTest.java
e770c453e44e4a65f484193eb9ed8a3c866c6c72
[ "Apache-2.0" ]
permissive
jimmy0301/Flicks
43e87e67d6d5a1bf1d1439452f885187a993d066
b47dd6dd7d829ac2b023c438042e321c79e6e94b
refs/heads/master
2021-01-19T12:26:12.772688
2017-02-18T14:36:47
2017-02-18T14:36:47
82,311,106
0
0
null
null
null
null
UTF-8
Java
false
false
392
java
package com.codepath.flicks; 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); } }
[ "yu.lun.ko123@gmail.com" ]
yu.lun.ko123@gmail.com
3c96048c456bdea79fa899068b9ca2457e38e041
f247abf73aa25b57d4215fb89d4f62d8dc0d219c
/simple-common/src/main/java/com/sun/image/codec/jpeg/JPEGQTable.java
8c9029ada7c0e549b7ed30736700074c2c20e5b3
[]
no_license
jinguo24/tmall
9067c7ba2726c009215a02801ff7c2205bc46c7b
70357b77d99af284cdddea3747cef28c3c7deef0
refs/heads/master
2021-01-13T10:37:43.415968
2016-10-03T05:42:48
2016-10-03T05:42:48
69,843,802
0
0
null
null
null
null
UTF-8
Java
false
false
2,646
java
/* */ package com.sun.image.codec.jpeg; /* */ /* */ public class JPEGQTable /* */ { /* */ private int[] quantval; /* */ private static final byte QTABLESIZE = 64; /* 45 */ public static final JPEGQTable StdLuminance = new JPEGQTable(); /* */ public static final JPEGQTable StdChrominance; /* */ /* */ private JPEGQTable() /* */ { /* 88 */ this.quantval = new int[64]; /* */ } /* */ /* */ public JPEGQTable(int[] paramArrayOfInt) /* */ { /* 98 */ if (paramArrayOfInt.length != 64) { /* 99 */ throw new IllegalArgumentException("Quantization table is the wrong size."); /* */ } /* */ /* 102 */ this.quantval = new int[64]; /* 103 */ System.arraycopy(paramArrayOfInt, 0, this.quantval, 0, 64); /* */ } /* */ /* */ public int[] getTable() /* */ { /* 114 */ int[] arrayOfInt = new int[64]; /* 115 */ System.arraycopy(this.quantval, 0, arrayOfInt, 0, 64); /* 116 */ return arrayOfInt; /* */ } /* */ /* */ public JPEGQTable getScaledInstance(float paramFloat, boolean paramBoolean) /* */ { /* 135 */ long l1 = paramBoolean ? 255L : 32767L; /* 136 */ int[] arrayOfInt = new int[64]; /* */ /* 138 */ for (int i = 0; i < 64; i++) { /* 139 */ long l2 = (long)(this.quantval[i] * paramFloat + 0.5D); /* */ /* 142 */ if (l2 <= 0L) l2 = 1L; /* */ /* 145 */ if (l2 > l1) l2 = l1; /* */ /* 147 */ arrayOfInt[i] = ((int)l2); /* */ } /* 149 */ return new JPEGQTable(arrayOfInt); /* */ } /* */ /* */ static /* */ { /* 47 */ int[] arrayOfInt = { 16, 11, 12, 14, 12, 10, 16, 14, 13, 14, 18, 17, 16, 19, 24, 40, 26, 24, 22, 22, 24, 49, 35, 37, 29, 40, 58, 51, 61, 60, 57, 51, 56, 55, 64, 72, 92, 78, 64, 68, 87, 69, 55, 56, 80, 109, 81, 87, 95, 98, 103, 104, 103, 62, 77, 113, 121, 112, 100, 120, 92, 101, 103, 99 }; /* */ /* 58 */ StdLuminance.quantval = arrayOfInt; /* */ /* 67 */ StdChrominance = new JPEGQTable(); /* */ /* 69 */ arrayOfInt = new int[] { 17, 18, 18, 24, 21, 24, 47, 26, 26, 47, 99, 66, 56, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99 }; /* */ /* 79 */ StdChrominance.quantval = arrayOfInt; /* */ } /* */ } /* Location: D:\software\pro\Java\jdk1.7.0_67\jre\lib\rt.jar * Qualified Name: com.sun.image.codec.jpeg.JPEGQTable * JD-Core Version: 0.6.2 */
[ "zhengfy1@lenovo.com" ]
zhengfy1@lenovo.com
4bc07c9c40e1288aff2edd7f46dd28ca6741584d
2303019a09a522ce3f1a76efe5a3d1d99cec3995
/MedialAxis+DistanceTransform/Main.java
1cbb3c0ef36c076fbcba36c46db2a77f3a89a096
[]
no_license
Zernia/ComputerVision
07b203aed09014536270194b79261601b63ba9bf
70d119e77426b64ef861a2d635661af0de20dc74
refs/heads/main
2023-02-04T04:33:58.303930
2020-12-23T02:49:59
2020-12-23T02:49:59
323,773,858
0
0
null
null
null
null
UTF-8
Java
false
false
2,512
java
import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.PrintWriter; import java.util.Scanner; public class Main { static Scanner inFile; static PrintWriter outFile1; static PrintWriter outFile2; static PrintWriter skeletonFile; static PrintWriter decompressFile; public static void main(String args[]){ try{ inFile = new Scanner(new FileReader(args[0])); //inFile = new Scanner(new FileReader("DistLocalMaximaDeCompress_image1.txt")); //outFile1 = new PrintWriter(new FileOutputStream("OutFile1") ); //outFile2 = new PrintWriter(new FileOutputStream("OutFile2") ); outFile1 = new PrintWriter(new FileOutputStream(args[1]) ); outFile2 = new PrintWriter(new FileOutputStream(args[2]) ); String skeletonFileName = args[1].replace(".txt", "_skeleton.txt"); skeletonFile = new PrintWriter(new FileOutputStream(skeletonFileName)); String decompressFileName = args[1].replaceAll(".txt", "_decompressed.txt"); decompressFile = new PrintWriter(new FileOutputStream(decompressFileName)); ImageProcessing imageprocessing = new ImageProcessing(); imageprocessing.numRows = inFile.nextInt(); imageprocessing.numCols = inFile.nextInt(); imageprocessing.minVal = inFile.nextInt(); imageprocessing.maxVal = inFile.nextInt(); //System.out.print(imageprocessing.maxVal); imageprocessing.zeroFramedAry = new int[imageprocessing.numRows+2][imageprocessing.numCols+2]; imageprocessing.skeletonAry = new int[imageprocessing.numRows+2][imageprocessing.numCols+2]; imageprocessing.setZero(imageprocessing.zeroFramedAry); imageprocessing.setZero(imageprocessing.skeletonAry); imageprocessing.loadImage(inFile, imageprocessing.zeroFramedAry); imageprocessing.compute8Distance(imageprocessing.zeroFramedAry, outFile1); imageprocessing.skeletonExtraction(imageprocessing.zeroFramedAry, imageprocessing.skeletonAry, skeletonFile, outFile1); imageprocessing.skeletonExpansion(imageprocessing.zeroFramedAry, outFile2, skeletonFileName); decompressFile.println(imageprocessing.numRows+" "+imageprocessing.numCols+" "+imageprocessing.newMinVal+" "+imageprocessing.newMaxVal ); imageprocessing.ary2File(imageprocessing.zeroFramedAry, decompressFile);//the only different is the newMaxVal;the trace is in secondepass inFile.close(); outFile1.close(); outFile2.close(); //skeletonFile.close(); decompressFile.close(); }catch(FileNotFoundException e){ e.printStackTrace(); } } }
[ "noreply@github.com" ]
Zernia.noreply@github.com
266ccf419142239aec1e377483e494dd21a3b926
c192f3d9744eb866684691ec253d32493e970bf7
/app/src/main/java/com/alanaandnazar/qrscanner/parent/detailSubject/ViewPagerAdapter.java
b899848515ebbe5a007c4a282194b273020bcb85
[]
no_license
Manager-dnevnik/bal.kg_android
226ceb162707f46a760cf2df05194980e2c7597e
90dd05b31949aa8b04e40653394791f8fd34bdc6
refs/heads/master
2022-12-24T20:45:51.869521
2020-01-17T11:28:36
2020-01-17T11:28:36
300,556,299
0
1
null
2020-10-10T08:22:21
2020-10-02T08:52:05
Java
UTF-8
Java
false
false
999
java
package com.alanaandnazar.qrscanner.parent.detailSubject; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.ArrayList; import java.util.List; public class ViewPagerAdapter extends FragmentPagerAdapter { private final List<Fragment> mFragmentList = new ArrayList<>(); private final List<String> mFragmentTitleList = new ArrayList<>(); public ViewPagerAdapter(FragmentManager manager) { super(manager); } @Override public Fragment getItem(int position) { return mFragmentList.get(position); } @Override public int getCount() { return mFragmentList.size(); } public void addFrag(Fragment fragment, String title) { mFragmentList.add(fragment); mFragmentTitleList.add(title); } @Override public CharSequence getPageTitle(int position) { return mFragmentTitleList.get(position); } }
[ "dada.developers@gmail.com" ]
dada.developers@gmail.com
e5b04932545e350f23e51c352c67e04f1a280432
7a8e20f62d61018eef83488916d8ab48d0b86c4c
/src/main/java/com/example/forRoadside/forRoadside/entity/Admin_entity.java
2b8e62101d9cf6ceb513a595b0074172d5cc23ce
[]
no_license
MdGolam-Kibria/ApiForRoadsideHelper
5663d31a504706d81fe13e4a17c1957bdadd04ea
cfde3274776b3abe13970063503de2e05ff55c4d
refs/heads/master
2022-12-01T06:19:07.800394
2022-11-19T05:53:10
2022-11-19T05:53:10
242,227,486
1
0
null
null
null
null
UTF-8
Java
false
false
2,345
java
package com.example.forRoadside.forRoadside.entity; import org.hibernate.annotations.NaturalId; import javax.persistence.*; import javax.validation.constraints.Email; @Entity @Table(name = "admin") public class Admin_entity { @GeneratedValue(strategy = GenerationType.AUTO) @Id public int adminId; public String adminName; @NaturalId @Email public String adminEmail; public String adminPhone; public String adminPassword; public String adminLocation; public Admin_entity() { } public Admin_entity(int adminId, String adminName, @Email String adminEmail, String adminPhone, String adminPassword, String adminLocation) { this.adminId = adminId; this.adminName = adminName; this.adminEmail = adminEmail; this.adminPhone = adminPhone; this.adminPassword = adminPassword; this.adminLocation = adminLocation; } public int getAdminId() { return adminId; } public void setAdminId(int adminId) { this.adminId = adminId; } public String getAdminName() { return adminName; } public void setAdminName(String adminName) { this.adminName = adminName; } public String getAdminEmail() { return adminEmail; } public void setAdminEmail(String adminEmail) { this.adminEmail = adminEmail; } public String getAdminPhone() { return adminPhone; } public void setAdminPhone(String adminPhone) { this.adminPhone = adminPhone; } public String getAdminPassword() { return adminPassword; } public void setAdminPassword(String adminPassword) { this.adminPassword = adminPassword; } public String getAdminLocation() { return adminLocation; } public void setAdminLocation(String adminLocation) { this.adminLocation = adminLocation; } @Override public String toString() { return "Admin{" + "adminId=" + adminId + ", adminName='" + adminName + '\'' + ", adminEmail='" + adminEmail + '\'' + ", adminPhone='" + adminPhone + '\'' + ", adminPassword='" + adminPassword + '\'' + ", adminLocation='" + adminLocation + '\'' + '}'; } }
[ "kibria92@gmail.com" ]
kibria92@gmail.com
93e80cb77fc2d0d85c21d4eb09e6b64bbee2e2dc
0ff69aa08c6759af45f4d9ace255cb6d7ed357cd
/ajax_true/src/com/dream/entity/City.java
d5ccc4cb27fcb14f117d04b1ad77a37b5e5c5a6b
[]
no_license
crablduck/java_web
c379c2181485ada1dede157f3e0aea9b8745b42f
ad84a6db05e765597c943d2c5427ee6c94f89099
refs/heads/master
2021-09-01T03:14:34.283952
2017-12-24T13:19:06
2017-12-24T13:19:06
114,748,256
0
1
null
null
null
null
UTF-8
Java
false
false
593
java
package com.dream.entity; public class City { private String id;//shenzhen private String cityName;//深圳 public City() { } public City(String id, String cityName) { this.id = id; this.cityName = cityName; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getCityName() { return cityName; } public void setCityName(String cityName) { this.cityName = cityName; } @Override public String toString() { return "City [id=" + id + ", cityName=" + cityName + "]"; } }
[ "asdfg756868947@qq.com" ]
asdfg756868947@qq.com
44cd9e1a271486a813b081f9060bad218a388b21
88dd7e92a612d21e9d236e86cfec3b06b3113b1a
/test-feign-consumer/src/main/java/com/jk/service/impl/FeignServiceImpl.java
38e0a6c6a516fd655ee07445ecc2a8996e49e6b8
[]
no_license
Group5-ahf/springCloud_demo
76cf16874df90e52ea3e022f7b492acfb26aa70e
d45a8f8e9d1a71e94317577209d636d86d12e651
refs/heads/master
2021-05-03T19:38:43.375557
2018-02-06T08:42:38
2018-02-06T08:42:38
120,419,802
0
0
null
2018-02-06T08:42:39
2018-02-06T07:47:06
Shell
UTF-8
Java
false
false
526
java
package com.jk.service.impl; import com.jk.pojo.User; import com.jk.service.FeignService; import org.springframework.stereotype.Component; @Component//和@controller,@Service,@Repository一样 public class FeignServiceImpl implements FeignService { public String sayHiFromProducter(String name, int age) { return "sorry feign hi error!"; } public User queryUserInfo(String userName, String password) { return null; } public User returnUser(User user) { return null; } }
[ "782767951@qq.com" ]
782767951@qq.com
13909d267f22e18e739d73f1998156773e76526c
e86d321e6f0dce5df5e20f08caafc1136e6ab114
/src/main/java/cn/itcast/travel/service/RouteService.java
e7cf975f76a093d5bdcbe9dcf7d9ced758ea89df
[]
no_license
xiejinyun666/heimalvyouwang
b93c2308d0396d949deb3c32b6768cf9317f1bfd
5e50af4ded4b1624349e27d1e87c0a901ffb9ccb
refs/heads/master
2023-01-28T21:11:31.056996
2020-12-12T07:29:19
2020-12-12T07:29:19
320,768,606
1
0
null
null
null
null
UTF-8
Java
false
false
273
java
package cn.itcast.travel.service; import cn.itcast.travel.domain.PageBean; import cn.itcast.travel.domain.Route; public interface RouteService { public PageBean<Route> pageQuery(int cid, int currentPage, int pageSize, String rname); Route findOne(String rid); }
[ "1072115761@qq.com" ]
1072115761@qq.com
aa4c95db65829e0bacf3e972a350a6e8aac18636
b9e53af66b84f50054db596567602dd245473c3d
/Client/Relay/app/src/main/java/com/relay/relay/SubSystem/NetworkManager.java
1fd297678da89370df824817bca68e631c92e437
[ "MIT" ]
permissive
omerel/RELAY
34a2183172a3a422c085f51a561c3270f6709bd9
52a658073710f6e2bd107da4144f55368d726fdc
refs/heads/master
2021-01-17T16:44:51.990816
2017-06-27T06:52:04
2017-06-27T06:52:04
59,353,247
0
0
null
null
null
null
UTF-8
Java
false
false
4,735
java
package com.relay.relay.SubSystem; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.os.Messenger; import android.os.RemoteException; import android.util.Log; import com.relay.relay.Network.NetworkConstants; import com.relay.relay.Network.SyncWithServer; import com.relay.relay.viewsAndViewAdapters.StatusBar; /** * Created by omer on 05/06/2017. */ public class NetworkManager extends Thread implements NetworkConstants { private final String TAG = "RELAY_DEBUG: "+ NetworkManager.class.getSimpleName(); // Messenger from RelayConnectivityManager private Messenger mConnectivityMessenger; private Handler mIntervalHandler; private Runnable mIntervalRunnable; // private Server mServer; private RelayConnectivityManager mRelayConnectivityManager; private DataManager mDataManager; private SyncWithServer mSyncWithServer; // Handler for all incoming messages from SyncWithServer private final Messenger mMessenger = new Messenger(new IncomingHandler()); public NetworkManager(Messenger connectivityMessenger, RelayConnectivityManager relayConnectivityManager) { this.mRelayConnectivityManager = relayConnectivityManager; this.mConnectivityMessenger = connectivityMessenger; this.mIntervalHandler = new Handler(); this.mDataManager = new DataManager(relayConnectivityManager); this.mIntervalRunnable = new Runnable() { @Override public void run() { // if syncing with server don't interrupt if (mSyncWithServer.getStatus() == NOT_SYNC_WITH_SERVER) mSyncWithServer = new SyncWithServer(mMessenger,mRelayConnectivityManager,mDataManager); intervalSync(); } }; } // Start thread @Override public void run() { Log.e(TAG, "Start thread"); mDataManager.closeAllDataBase(); mDataManager.openAllDataBase(); mSyncWithServer = new SyncWithServer(mMessenger,mRelayConnectivityManager,mDataManager); intervalSync(); mRelayConnectivityManager.broadCastFlag(StatusBar.FLAG_WIFI_ON,TAG+": Start WIFI MODE"); } // Close thread public void cancel() { mIntervalHandler.removeCallbacks(mIntervalRunnable); } private void intervalSync(){ mIntervalHandler.postDelayed(mIntervalRunnable, INTERVAL_SYNC_WITH_SERVER); Log.e(TAG, "Start intervalSearch()"); } /** * Send relay message to the RelayConnectivityManager class * @param m message * @param relayMessage */ private void sendMessageToConnectivityManager(int m, String relayMessage) { // Send address as a String Bundle bundle = new Bundle(); bundle.putString("relayMessage", relayMessage); Message msg = Message.obtain(null, m); msg.setData(bundle); try { mConnectivityMessenger.send(msg); } catch (RemoteException e) { Log.e(TAG, "Problem with sendMessageToConnectivityManager "); } } /** * Handler of incoming messages from one of the SyncWithSever clases */ class IncomingHandler extends Handler { String message; @Override public void handleMessage(Message msg) { switch (msg.what) { case NEW_RELAY_MESSAGE: Log.e(TAG, "NEW_RELAY_MESSAGE"); // When the message is for this device Log.d(TAG, "Received new relay message from Handshake"); String relayMessage = msg.getData().getString("relayMessage"); sendMessageToConnectivityManager(NEW_RELAY_MESSAGE,relayMessage); break; case START_SYNC: mRelayConnectivityManager.broadCastFlag(StatusBar.FLAG_CONNECTING,TAG+": Start sync with server"); break; case FINISH_SYNC: mRelayConnectivityManager.broadCastFlag(StatusBar.FLAG_CLOSE_CONNECTION,TAG+": Finish sync with server"); break; case ERROR_WHILE_SYNC: message = msg.getData().getString("message"); mRelayConnectivityManager.broadCastFlag(StatusBar.FLAG_ERROR,TAG+": "+message); break; case RESPONSE: message = msg.getData().getString("message"); mRelayConnectivityManager.broadCastFlag(StatusBar.FLAG_SERVER_RESPONSE,TAG+": "+message); break; default: super.handleMessage(msg); } } } }
[ "elomer@gmail.com" ]
elomer@gmail.com
9ed67cd3297f77c6fa9cd7d29fb5f6ae15ec4b75
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/elastic--elasticsearch/d5bd77cc38b8656b373d03db8eb5ae667843dbb0/before/DeleteIndexRequest.java
2af5591752d159c65837832a3b4de79bd5ec4723
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
3,217
java
/* * Licensed to Elastic Search and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Elastic Search 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.elasticsearch.action.admin.indices.delete; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.support.master.MasterNodeOperationRequest; import org.elasticsearch.util.TimeValue; import org.elasticsearch.util.io.stream.StreamInput; import org.elasticsearch.util.io.stream.StreamOutput; import java.io.IOException; import static org.elasticsearch.action.Actions.*; import static org.elasticsearch.util.TimeValue.*; /** * A request to delete an index. Best created with {@link org.elasticsearch.client.Requests#deleteIndexRequest(String)}. * * @author kimchy (shay.banon) */ public class DeleteIndexRequest extends MasterNodeOperationRequest { private String index; private TimeValue timeout = timeValueSeconds(10); DeleteIndexRequest() { } /** * Constructs a new delete index request for the specified index. */ public DeleteIndexRequest(String index) { this.index = index; } @Override public ActionRequestValidationException validate() { ActionRequestValidationException validationException = null; if (index == null) { validationException = addValidationError("index is missing", validationException); } return validationException; } /** * The index to delete. */ String index() { return index; } /** * Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults * to <tt>10s</tt>. */ TimeValue timeout() { return timeout; } /** * Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults * to <tt>10s</tt>. */ public DeleteIndexRequest timeout(TimeValue timeout) { this.timeout = timeout; return this; } /** * Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults * to <tt>10s</tt>. */ public DeleteIndexRequest timeout(String timeout) { return timeout(TimeValue.parseTimeValue(timeout, null)); } @Override public void readFrom(StreamInput in) throws IOException { index = in.readUTF(); timeout = readTimeValue(in); } @Override public void writeTo(StreamOutput out) throws IOException { out.writeUTF(index); timeout.writeTo(out); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
35696c463c3805b9101d3b31166ea12b3c780ee0
ebd842bac28213ddd2eda0d4c947cace5497852d
/src/test/java/com/crud/tasks/service/SimpleEmailServiceTest.java
aab98cda1a4d0a560d14a5cd8bb91737fab6da7e
[]
no_license
KonkowIT/Kodilla-Bootcamp_repository_v2
3540dc328fe3681e49b8b990145332ac39b368f4
19c7049838f47996446cb02278c6b38c67db0269
refs/heads/master
2021-09-19T07:15:43.119468
2018-07-24T18:46:13
2018-07-24T18:46:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,254
java
package com.crud.tasks.service; import com.crud.tasks.domain.Mail; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSender; import static org.mockito.Mockito.verify; import static org.mockito.internal.verification.VerificationModeFactory.times; @RunWith(MockitoJUnitRunner.class) public class SimpleEmailServiceTest { @InjectMocks private SimpleEmailService simpleEmailService; @Mock private JavaMailSender javaMailSender; @Test public void shouldSendEmail() { //Given Mail mail = new Mail("test@test.com", "test", "test",""); SimpleMailMessage mailMessage = new SimpleMailMessage(); mailMessage.setTo(mail.getMailTo()); mailMessage.setSubject(mail.getSubject()); mailMessage.setText(mail.getSubject()); if(mail.getToCc() != null && !mail.getToCc().isEmpty()) { mailMessage.setCc(mail.getToCc()); } //when simpleEmailService.send(mail); //then verify(javaMailSender, times(1)).send(mailMessage); } }
[ "“konradkowalski95@gmail.com git config --global user.name kconradogit config --global user.email “konradkowalski95@gmail.com" ]
“konradkowalski95@gmail.com git config --global user.name kconradogit config --global user.email “konradkowalski95@gmail.com
ce944889b6d1608dcd793a3384ada8df5d025d13
0c89e460aefc84b4750ed4745aa37929f8178f0f
/Core Java/nestedclasses/InnerPrivateClass.java
954971f47ceeb31ed1fde27d072b7d3d9cb54897
[]
no_license
vighnarajank/All-Codes-and-Assignments
8f9738a228f489171165d3a61ddda95541acdc35
dedb1252721ff71ced33bc556b7037819b8d970a
refs/heads/master
2023-05-07T19:25:59.039803
2021-06-02T17:23:11
2021-06-02T17:23:11
372,797,938
0
0
null
null
null
null
UTF-8
Java
false
false
318
java
package com.onebill.corejava.nestedclasses; class Outer1{ private class Inner{ void show() { System.out.println("Hi"); } } void display() { Inner i = new Inner(); i.show(); } } public class InnerPrivateClass { public static void main(String[] args) { Outer1 o = new Outer1(); o.display(); } }
[ "vighna.rajan@onebillsoftware.com" ]
vighna.rajan@onebillsoftware.com
03dfa8491188dbc32944816efd69eb2de0a1e251
318a7d8bc3e962640114475118c8db50b2e97397
/zuul/src/main/java/com/springcloud/api/config/BaseConfig.java
d94ee55dae2b7c645f30a26f753a8c7713262905
[]
no_license
huc003/spring-cloud
332a9a5ceb1d1b95a407ddd581ca88e246f9c38d
1e2a002292228532405ce6a8884347c1c318017d
refs/heads/master
2020-03-20T12:40:10.021177
2018-07-09T02:23:58
2018-07-09T02:23:58
137,437,343
1
0
null
null
null
null
UTF-8
Java
false
false
249
java
package com.springcloud.api.config; import org.springframework.context.annotation.Configuration; /** * @Author: 胡成 * @Version: 0.0.1V * @Date: 2018/6/14 * @Description: 自定义负载均衡 **/ @Configuration public class BaseConfig { }
[ "459382234@qq.com" ]
459382234@qq.com
188d65df65b4cab60395b05af183f87d933d950f
383b93efb93b11c88024c5d9420a448aceb6093c
/src/kture/parser/Demo.java
34956166c5b8951a3936308b379ff06b1214af87
[]
no_license
happy0wnage/ITRO-Labs
fa879709620129c097aaf15c23bcb07fece98825
fc6b9867e468c254110abf8a6a9427d2af9915ef
refs/heads/master
2021-01-09T21:43:22.223833
2015-12-11T21:10:03
2015-12-11T21:10:03
44,395,234
0
0
null
null
null
null
UTF-8
Java
false
false
1,095
java
package kture.parser; import kture.constants.Path; import kture.entity.MobilePhone; import kture.parser.JAXB.Unmarshalling; import org.xml.sax.SAXException; import javax.xml.bind.JAXBException; import javax.xml.parsers.ParserConfigurationException; import java.io.IOException; /** * Created by Владислав on 22.10.2015. */ public class Demo { public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException, JAXBException { System.out.println("================DOM_PARSER================"); DOMController domParser = new DOMController(Path.PHONE); MobilePhone mobilePhone2 = domParser.parse(); System.out.println(mobilePhone2); System.out.println("================SAX_PARSER================"); SAXController saxController = new SAXController(Path.PHONE); MobilePhone mobilePhone1 = saxController.parse(); System.out.println(mobilePhone1); System.out.println("================JAXB_UNMARSHAL================"); Unmarshalling.main(new String[] {}); } }
[ "happy0wnage@gmail.com" ]
happy0wnage@gmail.com
ba89a6ec31ec38f780de9c9f679042764be5eb24
804670c8abc93ad76042576b5a6e7bbfb4e61669
/first-web-app/src/main/java/ru/vyazankin/servlets/MainServlet.java
36cf0a5f8f75d3e962a5602b99acecb7f6cc6f3c
[]
no_license
yacooler/JavaEEeducation
53cfc7d72583b0e08f5e400a4c1dfa456539c039
8c5fba4b097aad799b7b8acf991ba147b4329a1b
refs/heads/master
2023-04-03T08:46:55.849048
2021-04-01T16:59:56
2021-04-01T16:59:56
335,342,899
0
0
null
2021-04-01T16:59:56
2021-02-02T15:56:16
Java
UTF-8
Java
false
false
659
java
package ru.vyazankin.servlets; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet(urlPatterns = "/main") public class MainServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setAttribute("pageHeader", "Главная страница"); getServletContext().getRequestDispatcher("/common-main-menu").include(req, resp); } }
[ "yacooler@yandex.ru" ]
yacooler@yandex.ru
1d6f826334183d01052820fd6974d5c8e2fbe1a6
22fb8a24b9310fadfbf471371140f13cf644780c
/pinyougou-parent/pinyougou-pojo/src/main/java/com/pinyougou/pojogroup/Cart.java
6e6fb13562f47eec0bd4f98f676078d7cc8ecb6a
[]
no_license
qmhl/pinyougou
96ddb7ffec6bab924786940776d0cf43fdae5c34
2d254a84932809129cecedcfba9d05e65fa42cb1
refs/heads/master
2020-03-12T06:03:08.333252
2017-10-24T06:48:50
2017-10-24T06:48:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
751
java
package com.pinyougou.pojogroup; import java.io.Serializable; import java.util.List; import com.pinyougou.pojo.TbOrderItem; public class Cart implements Serializable{ private String sellerId; private String sellerName; private List<TbOrderItem> orderItemList; public String getSellerId() { return sellerId; } public void setSellerId(String sellerId) { this.sellerId = sellerId; } public String getSellerName() { return sellerName; } public void setSellerName(String sellerName) { this.sellerName = sellerName; } public List<TbOrderItem> getOrderItemList() { return orderItemList; } public void setOrderItemList(List<TbOrderItem> orderItemList) { this.orderItemList = orderItemList; } }
[ "837833280@qq.com" ]
837833280@qq.com
b7e049a6b8827e6dd66f416f8318912a651fcc5d
9673a37f5e790140837499a2d1f1515bc4f379f0
/设计模式/src/适配器模式/MediaPlayer.java
d03eb804eb9f8b258bd1d0f3c98712a9754e97ca
[]
no_license
count2017/shenye_practice
24a631074c70bd6a246f13d0f251f6f01ffa1192
aed27264424de8054f98f270a3dbb77802b8f0e4
refs/heads/master
2021-05-13T16:45:27.940888
2018-01-09T10:24:42
2018-01-09T10:24:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
115
java
package 适配器模式; public interface MediaPlayer { public void play(String audioType, String fileName); }
[ "1184898152@qq.com" ]
1184898152@qq.com
acfa14f5786188bce2b1b8e754355873c553a658
85a507d5b7fe1f86a1196ac8f141b0f6fef7c8ce
/HelloWorld/app/src/test/java/fzf/helloworld/ExampleUnitTest.java
47e4d3ca67f0de3bc3c6bcd2573bdc384439f482
[]
no_license
tiancaifzf/Dymanic_Load
dc0a5bad4ed077089cd112acaa11779fdb9d1202
8c2950da9e8c4cfa350ad6f50366ac2167971b7e
refs/heads/master
2020-09-28T09:29:46.832771
2016-08-26T06:05:09
2016-08-26T06:05:09
66,620,533
0
1
null
null
null
null
UTF-8
Java
false
false
307
java
package fzf.helloworld; 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); } }
[ "tiancaifzf@gmail.com" ]
tiancaifzf@gmail.com
6e7b4e2f86a3eba72c8a41804707a5ca089a8161
e88c28aaeff8e6ab1a1bcf24bfbe684e8861e737
/app/src/androidTest/java/com/libo/baseappmodel/ExampleInstrumentedTest.java
1091d997a33e40aa74cf79164c81bd97ae1d44c3
[]
no_license
libokaifa/BaseAppMode
9fe58ba39ceef470d94c4e13ec6aa58c17ee2274
16005d0da9b1badaf4df3179eb84935531525ba2
refs/heads/main
2023-07-20T09:33:21.637531
2023-07-05T07:53:04
2023-07-05T07:53:04
371,289,807
3
0
null
null
null
null
UTF-8
Java
false
false
756
java
package com.libo.baseappmodel; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.libo.baseappmodel", appContext.getPackageName()); } }
[ "m18339919091@163.com" ]
m18339919091@163.com
b853ee8fb0d45e324eae755c680f96a7b6f90310
4309e298cf00745b5f60ef78b90ec8505b0e25a7
/src/main/java/org/example/App.java
e948175c8bf652817a182c0edb3bf2aa3ea3e7e0
[]
no_license
dpanchak1/panchak-cop3330-ex15
e254e5f046dc5e63fa2049591f951bcd0e3ac3f2
870e5eda2c7154fa1a73257b6ffc7ca5a3aa931f
refs/heads/master
2023-07-31T22:04:41.620821
2021-09-13T00:03:23
2021-09-13T00:03:23
405,780,879
0
0
null
null
null
null
UTF-8
Java
false
false
634
java
/* * UCF COP3330 Fall 2021 Assignment 15 Solution * Copyright 2021 David Panchak */ package org.example; import java.util.Scanner; public class App { public static void main( String[] args ) { Scanner input=new Scanner(System.in); System.out.print("What is your username? "); String useless=input.nextLine(); System.out.print("What is the password? "); String password=input.nextLine(); if(password.equals("abc123")) { System.out.print("Welcome!"); } else { System.out.print("I don't know you."); } } }
[ "david@HUMANs-MacBook-Air.local" ]
david@HUMANs-MacBook-Air.local
b7c4477ba371170157e66dafb508eb674f685679
aa5ac9d696364b8f1fe797a9749c30d45cd75cc8
/src/Client.java
07ef90440cffbd13992bad06f74766b53b054d8d
[]
no_license
HuyNH1998-CG/Module2-BonusAssigment6
79281d6a50834d9fb04fea7814386760541f08fd
14e714431068706ffbfa3a76a9c3c88e4c2237e2
refs/heads/master
2023-06-03T12:27:15.929735
2021-06-18T23:14:27
2021-06-18T23:14:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
107
java
public class Client { public static void main(String[] args) { ManagementMenu.menu(); } }
[ "graio911@gmail.com" ]
graio911@gmail.com
2e8c28828641f0876d46e021459d9c823198f114
5903930e44ed9d19632870ba7f960e2b884f8e6a
/chap11/src/ex11_01_01/Computer.java
0ae7c8c5dacb71bcefeecab95869c0393aadbe90
[]
no_license
akikotakamoridayo/workspace
5ac3be784a974adc372fa3ae2127e0ee876cb256
e1ccaf9ebbd736ec110f5e49703d8a5201a1dc73
refs/heads/main
2023-03-19T09:13:20.925809
2021-03-16T05:07:15
2021-03-16T05:07:15
348,217,126
0
0
null
null
null
null
UTF-8
Java
false
false
323
java
package ex11_01_01; public class Computer extends TangibleAsset { String makerName; public Computer(String name, int price, String color, double weight, String makerName) { super(name, price, color, weight); this.makerName = makerName; } public String getMakerName() { return makerName; } }
[ "akikotakamoridayo@hotmail.co.jp" ]
akikotakamoridayo@hotmail.co.jp
8454ebd801ea3fe72957ac369de61308956c28fd
476103b9be7ab381817013d616a5f57c7208bca6
/HOTELSYS/src/py/com/hotelsys/interfaces/TranBotonInterface2.java
7b0575cdaaa1cff9ea9e4b8cd52dbfca7fec34b4
[]
no_license
NazarioLuis/hotelsys
5522e9f32f0970423c162910f1bf67880b05cda0
9b17311c0489822ade0039fe28a0455622f1f245
refs/heads/master
2021-01-13T02:23:52.204642
2015-06-08T03:18:27
2015-06-08T03:18:27
31,868,796
0
0
null
null
null
null
UTF-8
Java
false
false
342
java
package py.com.hotelsys.interfaces; public interface TranBotonInterface2 extends VentanaGenerica{ public void nuevo(); public void modificar(); public void eliminar(); public void salir(); public void guardar(); public void cancelar(); public void cerrar(); public void guardarCierre(); public void cancelarCierre(); }
[ "CosmeD@Cosme" ]
CosmeD@Cosme