blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
390
content_id
stringlengths
40
40
detected_licenses
listlengths
0
35
license_type
stringclasses
2 values
repo_name
stringlengths
6
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
539 values
visit_date
timestamp[us]date
2016-08-02 21:09:20
2023-09-06 10:10:07
revision_date
timestamp[us]date
1990-01-30 01:55:47
2023-09-05 21:45:37
committer_date
timestamp[us]date
2003-07-12 18:48:29
2023-09-05 21:45:37
github_id
int64
7.28k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
13 values
gha_event_created_at
timestamp[us]date
2012-06-11 04:05:37
2023-09-14 21:59:18
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-28 02:39:21
gha_language
stringclasses
62 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
128
12.8k
extension
stringclasses
11 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
79
337f0944b522f88805f9111bf0869a9bd515452a
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13141-40-29-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/container/servlet/filters/internal/SetHTTPHeaderFilter_ESTest_scaffolding.java
e6cf452b64e1d3982011a5a06125c13824397879
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
468
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Wed Jan 22 04:34:42 UTC 2020 */ package org.xwiki.container.servlet.filters.internal; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class SetHTTPHeaderFilter_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
827c1f929442935d3760814b351f72cc6e192344
7d701debbd995889d42b52739a08cc70c94dbc3d
/elink-platform/device-gateway/elink-device-jt8082019-gateway/src/main/java/com/legaoyi/protocol/server/MessagePublishChannelHandler.java
c70f427bb11664518f3773e11eb9cc90ae2e093a
[]
no_license
jonytian/code1
e95faccc16ceb91cefbe0b52f1cf5dae0c63c143
3ffbd5017dda31dab29087e6cdf8f12b19a18089
refs/heads/master
2022-12-11T08:13:52.981253
2020-03-24T03:04:32
2020-03-24T03:04:32
249,597,038
3
2
null
2022-12-06T00:46:44
2020-03-24T02:48:20
JavaScript
UTF-8
Java
false
false
3,757
java
package com.legaoyi.protocol.server; import java.util.HashMap; import java.util.Map; import javax.annotation.PostConstruct; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import com.legaoyi.common.message.ExchangeMessage; import com.legaoyi.protocol.message.Message; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; @ChannelHandler.Sharable @Component("messagePublishChannelHandler") public class MessagePublishChannelHandler extends BaseMessageChannelInboundHandler { @Value("${urgent.queue.message}") private String urgentMessage; private static Map<String, Object> urgentMessageMap; @Value("${media.queue.message}") private String mediaMessage; private static Map<String, Object> mediaMessageMap; private static Map<String, Object> ignoreMessageMap; @Autowired @Qualifier("urgentUpstreamMessageHandler") private ServerMessageHandler urgentUpstreamMessageHandler; @Autowired @Qualifier("commonUpstreamMessageHandler") private ServerMessageHandler commonUpstreamMessageHandler; @Autowired @Qualifier("mediaUpstreamMessageHandler") private ServerMessageHandler mediaUpstreamMessageHandler; @Value("${gateway.ignore.message}") private String ignoreMessage; @PostConstruct public void init() { urgentMessageMap = new HashMap<String, Object>(); if (!StringUtils.isBlank(urgentMessage)) { String[] arr = urgentMessage.split(","); for (String messageId : arr) { urgentMessageMap.put(messageId, null); } urgentMessage = null; } mediaMessageMap = new HashMap<String, Object>(); if (!StringUtils.isBlank(mediaMessage)) { String[] arr = mediaMessage.split(","); for (String messageId : arr) { mediaMessageMap.put(messageId, null); } mediaMessage = null; } ignoreMessageMap = new HashMap<String, Object>(); if (!StringUtils.isBlank(ignoreMessage)) { String[] arr = ignoreMessage.split(","); for (String messageId : arr) { ignoreMessageMap.put(messageId, null); } ignoreMessage = null; } } @Override protected boolean handle(ChannelHandlerContext ctx, Message message) { String messageId = message.getMessageHeader().getMessageId(); if (ignoreMessageMap.containsKey(messageId)) { logger.info("******该消息被网关丢弃,不发送业务平台", message); return true; } try { String exchangeId = String.valueOf(message.getMessageHeader().getMessageSeq()); if (urgentMessageMap.containsKey(messageId)) { urgentUpstreamMessageHandler.handle(new ExchangeMessage(ExchangeMessage.MESSAGEID_GATEWAY_UP_MESSAGE, message.clone(), exchangeId)); } else if (mediaMessageMap.containsKey(messageId)) { mediaUpstreamMessageHandler.handle(new ExchangeMessage(ExchangeMessage.MESSAGEID_GATEWAY_UP_MEDIA_MESSAGE, message.clone(), exchangeId)); } else { commonUpstreamMessageHandler.handle(new ExchangeMessage(ExchangeMessage.MESSAGEID_GATEWAY_UP_MESSAGE, message.clone(), exchangeId)); } } catch (Exception e) { logger.error("******上行消息发送mq失败,send message to mq error,message={}", message, e); } return true; } }
[ "yaojiang.tian@reacheng.com" ]
yaojiang.tian@reacheng.com
9bd3d511241b945464989424e27b74e5c9395112
a306f79281c4eb154fbbddedea126f333ab698da
/kotlin/experimental/ExperimentalTypeInference.java
b0369d90565f51cfa3cd77077476aa7d49f5a96f
[]
no_license
pkcsecurity/decompiled-lightbulb
50828637420b9e93e9a6b2a7d500d2a9a412d193
314bb20a383b42495c04531106c48fd871115702
refs/heads/master
2022-01-26T18:38:38.489549
2019-05-11T04:27:09
2019-05-11T04:27:09
186,070,402
0
0
null
null
null
null
UTF-8
Java
false
false
484
java
package kotlin.experimental; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import kotlin.Experimental; import kotlin.Metadata; import kotlin.SinceKotlin; @Retention(RetentionPolicy.CLASS) @Target({ElementType.ANNOTATION_TYPE}) @Metadata @kotlin.annotation.Retention @kotlin.annotation.Target @Experimental @SinceKotlin public @interface ExperimentalTypeInference { }
[ "josh@pkcsecurity.com" ]
josh@pkcsecurity.com
0d0593db696b30cdfe8a36622ca4d48ead432a37
c10f2e1b8ddc9ce4f2897c2ca9a84cece693f32f
/SpringCore-Dependency-Injection-Constructor-Example/src/main/java/com/codewr/output/impl/JsonOutputGenerator.java
dbfdad35ea7513a33bb1431e6ef3492435bfa97b
[]
no_license
sieurobo196/Spring-Core
04aa3b6c0f65f8f04ca1aaefee8eb91228c5e28c
a11944ac84acef6ede3638c3480bbdf00bebdc82
refs/heads/master
2020-03-27T17:36:45.022265
2019-04-25T08:38:36
2019-04-25T08:38:36
146,861,726
0
0
null
null
null
null
UTF-8
Java
false
false
232
java
package com.codewr.output.impl; import com.codewr.output.IOutputGenerator; public class JsonOutputGenerator implements IOutputGenerator { public void generateOutput(){ System.out.println("This is Json Output Generator"); } }
[ "xuancu2006@gmail.com" ]
xuancu2006@gmail.com
9ff21fbdebc443f89deaaa38084eae940df9ebb5
6a7c4e586ea998ac3f037df4f37e3176e77febb2
/src/com/sanguine/bean/clsWhatIfAnalysisBean.java
4645403c16b2aee76aece56dcd5ec715f5ac83b1
[]
no_license
puneteamsangsoftwares/SanguineERP
ef635a953b7f2ad24e7c53d28472f9b09ccce1cb
9c603a4591d165e6975931f53847aa4a97a0a504
refs/heads/master
2022-12-25T05:02:27.601147
2021-01-12T13:18:11
2021-01-12T13:18:11
215,270,060
0
1
null
2019-10-15T10:54:03
2019-10-15T10:22:47
Java
UTF-8
Java
false
false
323
java
package com.sanguine.bean; import java.util.ArrayList; public class clsWhatIfAnalysisBean { private ArrayList<String> listProduct; public ArrayList<String> getListProduct() { return listProduct; } public void setListProduct(ArrayList<String> listProduct) { this.listProduct = listProduct; } }
[ "vinayakborwal95@gmail.com" ]
vinayakborwal95@gmail.com
9159d4fa37d121b9ed14371476d8e0a2958ea387
ce8fef4cc72d2f6dcc018cb6a07b1bbaf0c4f37b
/src/main/java/interview/leetcode/practice/BitwiseAndOperator.java
6a697a32dc5bfb77aa5d91ad13584c19392ecdd9
[]
no_license
jojo8775/leet-code
f931b30b293178602e7d142c25f9aeef01b43ab0
2b40cb94883cc5ebc079edb3c98a4a01825c71f9
refs/heads/master
2023-08-04T11:49:15.131787
2023-07-23T00:08:50
2023-07-23T00:08:50
49,825,862
1
0
null
2022-05-20T22:01:52
2016-01-17T16:40:49
HTML
UTF-8
Java
false
false
480
java
package interview.leetcode.practice; public class BitwiseAndOperator { public int bitwiseAnd(int a, int b){ int ls = 0; while(a != 0 && b != a){ a = a >> 1; b = b >> 1; ls++; } if(a == 0){ return a; } return a << ls; } public static void main (String[] args){ System.out.println(new BitwiseAndOperator().bitwiseAnd(1, 1)); } }
[ "chiranjeeb.nandy@yahoo.com" ]
chiranjeeb.nandy@yahoo.com
1466f7b1454439033b5fbd8b894e69e709c5eec5
5f42d999715deeccb6e6af533247b891f461d871
/idea_test/code_iostream/src/com/io/specialstream/properties/propertiesdemo/PropertiesTest.java
a6a6c88094863cf27379683f4bf1f2a8e5bca0e4
[]
no_license
flexibleq/JavaRepository
6c5ee21f2cebeae1449bec84f8dc419e4a8b8bc6
e44378a4f3cce87c522caf4f5f20feaa570f0ffa
refs/heads/master
2021-08-06T22:21:39.319653
2019-12-08T00:39:19
2019-12-08T00:39:19
226,594,549
0
0
null
2020-10-13T18:03:12
2019-12-08T00:35:11
Java
UTF-8
Java
false
false
907
java
package com.io.specialstream.properties.propertiesdemo; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.Properties; public class PropertiesTest { public static void main(String[] args) throws IOException{ //创建集合对象 Properties prop = new Properties(); FileReader fr = new FileReader("code_iostream\\number.txt"); prop.load(fr); fr.close(); String count = prop.getProperty("count"); int i = Integer.parseInt(count); if(i>=3){ System.out.println("游戏试玩已结束,想玩请充值"); }else{ GuessNumber.guessNumber(); i++; prop.setProperty("count",String.valueOf(i)); FileWriter fw = new FileWriter("code_iostream\\number.txt"); prop.store(fw,null); fw.close(); } } }
[ "freeantwalk@163.com" ]
freeantwalk@163.com
e2b2019f78f13b7e89f891304c6a5d81651dd7e8
1d80ca1b6652724ffe7ab7b6a2eb4f89010b8422
/java8-features/src/main/java/com/aman/java8/features/methodreferences/instancereference/InstanceMethodReference.java
addbdc7d7dee5b9045fee7f79385ed08c84d3ec1
[ "MIT" ]
permissive
amanver16/playing-with-java
968e56538ebd90c95ad6ceaec298eea40265119b
2c58a5230ab4ce776c2d58cf165afd60b9225ebb
refs/heads/master
2022-12-22T05:07:54.754817
2020-09-09T22:47:41
2020-09-09T22:47:41
127,881,856
2
1
MIT
2022-12-16T04:46:37
2018-04-03T09:11:16
CSS
UTF-8
Java
false
false
1,138
java
package com.aman.java8.features.methodreferences.instancereference; /** * Instance method reference is used to refer a non-static method using * simplified version of lambda expression. In the below example the hello * object is calling sayHello() which is refrenced to hello() using the instance * method refrence. To refer a static method the class object name followed by * :: delimeter and method name is used */ public class InstanceMethodReference { private void hello(String name) { System.out.println("Hello " + name); } private void startThread() { System.out.println("Thread is running."); } public static void main(String[] args) { // Create instance InstanceMethodReference instanceMethodReference = new InstanceMethodReference(); // Instance method reference // Uses Hello functional interface Hello hello = instanceMethodReference::hello; hello.sayHello("Aman"); // Uses predefined functional interface Runnable Thread thread = new Thread(instanceMethodReference::startThread); thread.start(); } }
[ "aman.verma@sysbiz.org" ]
aman.verma@sysbiz.org
fa5619d8f3a88aed332bbc2524ffe374d259a999
af0da1127a2762a1b0c3da467e46ad55c3f9289e
/src/com/javarush/test/level05/lesson09/task05/Rectangle.java
bbe20e393d99cbebddaecc012348c5cc8cb4448a
[]
no_license
atnimak/JavaRushHomeWork
b1d4d4fd60297c16e81c6f7637fd0c82cdae8ac5
a5cb99ed8377c74ace7979c5e9448e49419c9b05
refs/heads/master
2021-08-22T22:10:46.150984
2017-12-01T12:14:49
2017-12-01T12:14:59
112,736,268
0
0
null
null
null
null
UTF-8
Java
false
false
1,466
java
package com.javarush.test.level05.lesson09.task05; /* Создать класс прямоугольник (Rectangle) Создать класс прямоугольник (Rectangle). Его данными будут top, left, width, height (левая координата, верхняя, ширина и высота). Создать для него как можно больше конструкторов: Примеры: - заданы 4 параметра: left, top, width, height - ширина/высота не задана (оба равны 0) - высота не задана (равно ширине) создаём квадрат - создаём копию другого прямоугольника (он и передаётся в параметрах) */ public class Rectangle { private int left; private int top; private int width; private int height; public Rectangle(int left, int top, int width, int height){ this.left = left; this.top = top; this.width = width; this.height = height; } public Rectangle(int left, int top){ this.left = left; this.top = top; this.width = 0; this.height = 0; } public Rectangle(int left, int top, int width){ this.left = left; this.top = top; this.width = width; this.height = width; } public Rectangle(Rectangle rectangle){ rectangle = this; } }
[ "x.pouls@gmail.com" ]
x.pouls@gmail.com
f183143d7a429a06dae278f4238d67fff8c86d7f
f66fc1aca1c2ed178ac3f8c2cf5185b385558710
/reladomo/src/test/java/com/gs/fw/common/mithra/test/domain/AuditedOrderItemStatusList.java
7996106cab7f2a0d9d6e14ef2694e2bc2d1449c6
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
goldmansachs/reladomo
9cd3e60e92dbc6b0eb59ea24d112244ffe01bc35
a4f4e39290d8012573f5737a4edc45d603be07a5
refs/heads/master
2023-09-04T10:30:12.542924
2023-07-20T09:29:44
2023-07-20T09:29:44
68,020,885
431
122
Apache-2.0
2023-07-07T21:29:52
2016-09-12T15:17:34
Java
UTF-8
Java
false
false
1,104
java
/* Copyright 2016 Goldman Sachs. 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.gs.fw.common.mithra.test.domain; import com.gs.fw.common.mithra.finder.Operation; import java.util.*; public class AuditedOrderItemStatusList extends AuditedOrderItemStatusListAbstract { public AuditedOrderItemStatusList() { super(); } public AuditedOrderItemStatusList(int initialSize) { super(initialSize); } public AuditedOrderItemStatusList(Collection c) { super(c); } public AuditedOrderItemStatusList(Operation operation) { super(operation); } }
[ "mohammad.rezaei@gs.com" ]
mohammad.rezaei@gs.com
42f416a7cf2b9bd8471ded662dcb8cd1608e9ae5
dc4abe5cbc40f830725f9a723169e2cc80b0a9d6
/src/main/java/com/sgai/property/commonService/quartz/job/SyncTask.java
ea4472e9073476e395b999bcfa839795346f45bb
[]
no_license
ppliuzf/sgai-training-property
0d49cd4f3556da07277fe45972027ad4b0b85cb9
0ce7bdf33ff9c66f254faec70ea7eef9917ecc67
refs/heads/master
2020-05-27T16:25:57.961955
2019-06-03T01:12:51
2019-06-03T01:12:51
188,697,303
0
1
null
null
null
null
UTF-8
Java
false
false
1,757
java
package com.sgai.property.commonService.quartz.job;/* package com.sgai.modules.commonService.quartz.job; import com.sgai.property.commonService.quartz.QuartzConfiguration; import com.sgai.property.commonService.service.SyncService; import org.quartz.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.scheduling.quartz.CronTriggerFactoryBean; import org.springframework.stereotype.Component; */ /** * 定时任务,定时同步连接平台数据 * @author 147693 * *//* @Component @DisallowConcurrentExecution public class SyncTask implements Job { private static Logger logger = LoggerFactory.getLogger(SyncTask.class); @Value("${cron.sync.increment}") //定时任务更新时间 private String frequency; @Autowired private SyncService syncService; @Override public void execute(JobExecutionContext context) throws JobExecutionException { String result = syncService.sync(); logger.info(result); } @Bean(name = "syncCronTriggerBean") public JobDetail sampleJob() { return JobBuilder.newJob(SyncTask.class) .withIdentity("syncCronTriggerBean","DEFAULT").withDescription("同步连接平台数据定时任务") .requestRecovery(true).storeDurably().build(); } @Bean(name = "syncCronTriggerBeanTrigger") public CronTriggerFactoryBean sampleJobTrigger(@Qualifier("syncCronTriggerBean") JobDetail jobDetail) { return QuartzConfiguration.createCronTrigger(jobDetail, frequency); } } */
[ "ppliuzf@sina.com" ]
ppliuzf@sina.com
08d5412ae6ce8bba2268d1515ff29fba66493657
53bd2f667a1a8a422f38c9f4e07997f483c9157b
/src/test/java/day10/NewsAPI_Homework.java
bd88796d64f02a87116dc78ca976699c846c6b36
[]
no_license
kamiltoprak/RestAssured_B20_Kamil
bef1133d1600e39f2c72ab7f74d03a55140a456b
4d1cb3876af5632c49f3dc0550d1ad4e3f966a13
refs/heads/main
2023-02-08T06:34:38.094507
2020-12-28T17:02:46
2020-12-28T17:02:46
322,434,436
0
0
null
null
null
null
UTF-8
Java
false
false
2,072
java
package day10; import io.restassured.path.json.JsonPath; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import pojo.ArticlePOJO; import java.util.List; import static io.restassured.RestAssured.*; import static io.restassured.RestAssured.reset; public class NewsAPI_Homework { @BeforeAll public static void setUp(){ //RestAssured.filters().add(new AllureRestAssured() ) ; baseURI ="https://newsapi.org" ; basePath = "/v2"; } @AfterAll public static void tearDown(){ reset(); } @DisplayName(" get all Articles author if source is is not null") @Test public void testGetAllArticleAuthor(){ JsonPath jp=given() //.baseUri() //.basePath() .queryParam("apiKey","4c0cad403a3046e6b1814715437bef9e") .queryParam("country","us"). when() .get("/top-headlines").jsonPath(); List<String> noFilterAllAuthors= jp.getList("articles.author"); System.out.println("boFilterAllAuthors = " + noFilterAllAuthors); System.out.println("noFilterAllAuthors.size() = " + noFilterAllAuthors.size()); List<String> allAuthors= jp.getList("articles.findAll{it.source.id!=null}.author"); System.out.println("allAuthors = " + allAuthors); System.out.println("allAuthors.size() = " + allAuthors.size()); // additional requirement - remove anu author with null value List<String> allAuthorsWithNoNull= jp.getList("articles.findAll{it.source.id!=null&& it.author!=null}.author"); System.out.println("allAuthorsWithNoNull = " + allAuthorsWithNoNull); System.out.println("allAuthorsWithNoNull.size() = " + allAuthorsWithNoNull.size()); List<ArticlePOJO> allArticles =jp.getList("articles.findAll{it.source.id!=null&&it.author!=null}",ArticlePOJO.class); allArticles.forEach(System.out::println); } }
[ "ktoprak@gmail.com" ]
ktoprak@gmail.com
36a032da6ddc6acaad7b8a4abbe1b7b73d320348
342f4fb9fede1cde073c8a55885200cd94f631e3
/vintage/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/HttpClientResponseActionBuilder.java
0b0aa775e778103c956f977cf171f49365ebd1a7
[ "Apache-2.0" ]
permissive
chokdee/citrus
f2b835006a17282f4fb67c32420ed9da45bf5a2b
ceb9e6865bbfdaa3bd3aebc7014e6cc663cbc480
refs/heads/main
2022-10-06T11:28:34.577786
2022-09-27T09:12:06
2022-09-27T09:12:06
478,950,626
0
0
Apache-2.0
2022-04-07T11:17:04
2022-04-07T11:17:03
null
UTF-8
Java
false
false
2,792
java
package com.consol.citrus.dsl.builder; import javax.servlet.http.Cookie; import com.consol.citrus.TestActionBuilder; import com.consol.citrus.actions.ReceiveMessageAction; import com.consol.citrus.message.Message; import org.springframework.http.HttpStatus; /** * @author Christoph Deppisch */ public class HttpClientResponseActionBuilder extends ReceiveMessageActionBuilder<HttpClientResponseActionBuilder> implements TestActionBuilder.DelegatingTestActionBuilder<ReceiveMessageAction> { private final com.consol.citrus.http.actions.HttpClientResponseActionBuilder delegate; public HttpClientResponseActionBuilder(com.consol.citrus.http.actions.HttpClientResponseActionBuilder builder) { super(builder); this.delegate = builder; } @Override public HttpClientResponseActionBuilder payload(String payload) { delegate.message().body(payload); return this; } @Override public HttpClientResponseActionBuilder messageName(String name) { delegate.message().name(name); return this; } /** * Sets the response status. * @param status * @return */ public HttpClientResponseActionBuilder status(HttpStatus status) { delegate.message().status(status); return this; } /** * Sets the response status code. * @param statusCode * @return */ public HttpClientResponseActionBuilder statusCode(Integer statusCode) { delegate.message().statusCode(statusCode); return this; } /** * Sets the response reason phrase. * @param reasonPhrase * @return */ public HttpClientResponseActionBuilder reasonPhrase(String reasonPhrase) { delegate.message().reasonPhrase(reasonPhrase); return this; } /** * Sets the http version. * @param version * @return */ public HttpClientResponseActionBuilder version(String version) { delegate.message().version(version); return this; } /** * Sets the request content type header. * @param contentType * @return */ public HttpClientResponseActionBuilder contentType(String contentType) { delegate.message().contentType(contentType); return this; } /** * Expects cookie on response via "Set-Cookie" header. * @param cookie * @return */ public HttpClientResponseActionBuilder cookie(Cookie cookie) { delegate.message().cookie(cookie); return this; } @Override public HttpClientResponseActionBuilder message(Message message) { delegate.message(message); return this; } @Override public TestActionBuilder<?> getDelegate() { return delegate; } }
[ "cdeppisch@redhat.com" ]
cdeppisch@redhat.com
1cca81d8656e635c752264229943a69dcf8e97c9
7a637e9654f3b6720d996e9b9003f53e40f94814
/aylson-partner/src/main/java/com/aylson/dc/owner/service/QuotationService.java
6325ae8890dcc01a44cf013bf96459c826b8e3be
[]
no_license
hemin1003/aylson-parent
118161fc9f7a06b583aa4edd23d36bdd6e000f33
1a2a4ae404705871717969449370da8531028ff9
refs/heads/master
2022-12-26T14:12:19.452615
2019-09-20T01:58:40
2019-09-20T01:58:40
97,936,256
161
103
null
2022-12-16T07:38:18
2017-07-21T10:30:03
JavaScript
UTF-8
Java
false
false
526
java
package com.aylson.dc.owner.service; import com.aylson.core.frame.service.BaseService; import com.aylson.dc.owner.po.Quotation; import com.aylson.dc.owner.search.QuotationSearch; import com.aylson.dc.owner.vo.QuotationVo; public interface QuotationService extends BaseService<Quotation,QuotationSearch> { /** * 根据设计信息id和设计信息类型查询 * @param designId * @param designType * @return */ public QuotationVo getQuotationVo(Integer designId, Integer designType); }
[ "hemin_it@163.com" ]
hemin_it@163.com
7f3f305a5d061205566c46a7bb814468cae4e053
05a0c23c212b076243ec3d9e2c39d632acf9343d
/src/org/ironrhino/common/action/DirectTemplateAction.java
a2653eac2f33870871508cdbdb978fd48f5e5927
[]
no_license
hckj/ironrhino
4c862db598495de91f1a631f74a7ab1c7bea7e06
67c2bc81faba3e8d03ca1b27b9f5d32f602862bc
refs/heads/master
2021-09-03T10:17:34.359440
2017-12-19T03:00:29
2017-12-19T07:28:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
749
java
package org.ironrhino.common.action; import javax.servlet.DispatcherType; import org.apache.struts2.ServletActionContext; import org.ironrhino.core.metadata.AutoConfig; import com.opensymphony.xwork2.ActionSupport; @AutoConfig(namespace = DirectTemplateAction.NAMESPACE, actionName = DirectTemplateAction.ACTION_NAME) public class DirectTemplateAction extends ActionSupport { private static final long serialVersionUID = -5865373753328653067L; public static final String NAMESPACE = "/"; public static final String ACTION_NAME = "_direct_template_"; @Override public String execute() { return (ServletActionContext.getRequest().getDispatcherType() == DispatcherType.ERROR) ? ERROR : "directTemplate"; } }
[ "zhouyanming@gmail.com" ]
zhouyanming@gmail.com
04f99658fd2f5391ee5d5564b907710290ff2f73
cfee0a9c7b151482a5ce82587eaf44abf1b5ef47
/src/randoop/operation/TypeArguments.java
4dbb4f3fa4d2199551bea04700217454183ce263
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "Apache-2.0" ]
permissive
xgdsmileboy/randoop
8354e3ca6816e38a5d2f806f9b269c6de3660bc6
c7a2e549f64705f85f985d0a28be59b4ccec007f
refs/heads/master
2021-01-21T12:59:19.159101
2016-05-03T06:17:30
2016-05-03T06:17:30
53,579,435
1
0
null
null
null
null
UTF-8
Java
false
false
2,273
java
package randoop.operation; import randoop.types.TypeNames; /** * TypeArguments provides static methods for creating and recognizing strings * representing the type arguments of a method or constructor. * <p> * Type arguments are given as comma separated lists of fully qualified class * and primitive type names. For example: * <ul> * <li><code>int</code> * <li><code>int,double,java.lang.String</code> * <li><code>randoop.operation.Operation</code> * </ul> * * @see MethodSignatures * @see ConstructorSignatures * */ public class TypeArguments { /** * Parses type argument string as generated by * {@link TypeArguments#getTypeArgumentsForString(String)} and returns a list * of types. * * @param argStr * the string containing type arguments for a signature. * @return the array of {@link Class} objects for the type arguments in * argStr. * @throws OperationParseException * if a type name in the string is not a valid type. */ public static Class<?>[] getTypeArgumentsForString(String argStr) throws OperationParseException { Class<?>[] argTypes = new Class<?>[0]; if (argStr.trim().length() > 0) { String[] argsStrs = argStr.split(","); argTypes = new Class<?>[argsStrs.length]; for (int i = 0; i < argsStrs.length; i++) { String typeName = argsStrs[i].trim(); Class<?> c; try { c = TypeNames.getTypeForName(typeName); } catch (ClassNotFoundException e) { throw new OperationParseException("Argument type \"" + typeName + "\" not recognized in arguments " + argStr); } argTypes[i] = c; } } return argTypes; } /** * Adds the type names for the arguments of a signature to the * {@code StringBuilder}. * * @param sb * the {@link StringBuilder} to which type names are added. * @param params * the array of {@link Class} objects representing the types of * signature arguments. */ public static void getTypeArgumentString(StringBuilder sb, Class<?>[] params) { for (int j = 0; j < params.length; j++) { sb.append(params[j].getName()); if (j < (params.length - 1)) sb.append(","); } } }
[ "xgd_smileboy@163.com" ]
xgd_smileboy@163.com
a174128cc260310c5b96363845049970948d0903
c9361bd06ee76a2f99c30d7e23f204e947e32db7
/src/main/java/com/example/master/services/serviceImpl/HolidayMasterServiceImpl.java
5c773bed9cbd26ba184042b7a3bd2ada4d87e8b6
[ "MIT" ]
permissive
Sougata1233/MasterModule
454a64bc311479b285e1213e7af54de8d99efeea
56776d0a62fbf1aba094313a907b3129b5f042e5
refs/heads/master
2020-04-05T20:11:54.775456
2018-11-12T06:51:29
2018-11-12T06:51:29
157,168,878
0
0
null
null
null
null
UTF-8
Java
false
false
7,621
java
package com.example.master.services.serviceImpl; import java.sql.Date; import java.time.LocalDate; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import com.example.master.component.HolidayMasterDao; import com.example.master.dto.DeleteDTO; import com.example.master.dto.HolidayMasterDTO; import com.example.master.dto.LocationMasterDTO; import com.example.master.entity.HolidayMaster; import com.example.master.services.HolidayMasterService; /* * Service Class For HolidayMaster */ @Service public class HolidayMasterServiceImpl implements HolidayMasterService { @Autowired HolidayMasterDao holidaymasterDao; private static final Logger LOGGER=LoggerFactory.getLogger(HolidayMasterServiceImpl.class); /* * Preparing DTO For All GET Methods */ private HolidayMasterDTO prepareHolidayMasterDTO(HolidayMaster holidaymasterEntity) { HolidayMasterDTO holidaymasterDTO = new HolidayMasterDTO(); holidaymasterDTO.setholiday(holidaymasterEntity.getholiday()); holidaymasterDTO.setdescription(holidaymasterEntity.getdescription()); holidaymasterDTO.setholidayTyp(holidaymasterEntity.getholidayTyp()); holidaymasterDTO.setlocationId(holidaymasterEntity.getlocationId()); holidaymasterDTO.setholidayYr(holidaymasterEntity.getholidayYr()); holidaymasterDTO.setmodby(holidaymasterEntity.getmodby()); holidaymasterDTO.setmodifiedOn(holidaymasterEntity.getmodifiedOn()); holidaymasterDTO.setcreatedby(holidaymasterEntity.getcreatedby()); holidaymasterDTO.setcreatedOn(holidaymasterEntity.getcreatedOn()); holidaymasterDTO.setId(holidaymasterEntity.getId()); try { LocationMasterDTO locationmasterDTO = new LocationMasterDTO(); locationmasterDTO.setlocationArea(holidaymasterEntity.getLocationMaster().getlocationArea()); locationmasterDTO.setId(holidaymasterEntity.getLocationMaster().getId()); locationmasterDTO.setlocationCity(holidaymasterEntity.getLocationMaster().getlocationCity()); locationmasterDTO.setlocationState(holidaymasterEntity.getLocationMaster().getlocationState()); locationmasterDTO.setlocationCountry(holidaymasterEntity.getLocationMaster().getlocationCountry()); locationmasterDTO.setlocationPin(holidaymasterEntity.getLocationMaster().getlocationPin()); locationmasterDTO.setmodby(holidaymasterEntity.getLocationMaster().getmodby()); locationmasterDTO.setmodifiedOn(holidaymasterEntity.getLocationMaster().getmodifiedOn()); locationmasterDTO.setcreatedBy(holidaymasterEntity.getLocationMaster().getcreatedBy()); locationmasterDTO.setcreatedOn(holidaymasterEntity.getLocationMaster().getcreatedOn()); holidaymasterDTO.setLocationMaster(locationmasterDTO); } catch (Exception e) { LOGGER.error("error in getting designation of user {} {}", e.getMessage()); } return holidaymasterDTO; } /* * (non-Javadoc) * @see com.example.master.services.HolidayMasterService#persistHolidayMaster(com.example.master.dto.HolidayMasterDTO) * * Save Service For HolidayMaster Entity * * @Param * * HolidayMasterDTO * */ @Override public ResponseEntity<HolidayMasterDTO> persistHolidayMaster(HolidayMasterDTO holidaymasterDTO) { HolidayMaster holidaymasterEntity = new HolidayMaster(); holidaymasterEntity.setholiday(holidaymasterDTO.getholiday()); holidaymasterEntity.setdescription(holidaymasterDTO.getdescription()); holidaymasterEntity.setholidayTyp(holidaymasterDTO.getholidayTyp()); holidaymasterEntity.setlocationId(holidaymasterDTO.getlocationId()); holidaymasterEntity.setholidayYr(holidaymasterDTO.getholidayYr()); holidaymasterEntity.setmodby(holidaymasterDTO.getmodby()); holidaymasterEntity.setmodifiedOn(Date.valueOf(LocalDate.now())); holidaymasterEntity.setcreatedby(holidaymasterDTO.getcreatedby()); holidaymasterEntity.setcreatedOn(Date.valueOf(LocalDate.now())); holidaymasterDao.addHolidayMaster(holidaymasterEntity); return new ResponseEntity<HolidayMasterDTO>(holidaymasterDTO, HttpStatus.CREATED); } /* * (non-Javadoc) * @see com.example.master.services.HolidayMasterService#updateHolidayMaster(com.example.master.dto.HolidayMasterDTO) * * Update Service For HolidayMaster * * @Param * * HolidayMasterDTO * */ @Override public ResponseEntity<HolidayMasterDTO> updateHolidayMaster(HolidayMasterDTO holidaymasterDTO) { HolidayMaster holidaymasterEntity = new HolidayMaster(); holidaymasterEntity.setholiday(holidaymasterDTO.getholiday()); holidaymasterEntity.setdescription(holidaymasterDTO.getdescription()); holidaymasterEntity.setholidayTyp(holidaymasterDTO.getholidayTyp()); holidaymasterEntity.setlocationId(holidaymasterDTO.getlocationId()); holidaymasterEntity.setholidayYr(holidaymasterDTO.getholidayYr()); holidaymasterEntity.setmodby(holidaymasterDTO.getmodby()); holidaymasterEntity.setmodifiedOn(Date.valueOf(LocalDate.now())); holidaymasterEntity.setcreatedby(holidaymasterDTO.getcreatedby()); holidaymasterEntity.setcreatedOn(holidaymasterEntity.getcreatedOn()); holidaymasterEntity.setId(holidaymasterDTO.getId()); holidaymasterDao.updateHolidayMaster(holidaymasterEntity); return new ResponseEntity<HolidayMasterDTO>(holidaymasterDTO, HttpStatus.CREATED); } /* * (non-Javadoc) * @see com.example.master.services.HolidayMasterService#populateHolidayMasterList() * * Fetch All Service For HolidayMaster Entity * */ @Override public List<HolidayMasterDTO> populateHolidayMasterList() { List<HolidayMasterDTO> holidaymasterDTOList=new ArrayList<HolidayMasterDTO>(); try { List<HolidayMaster> holidaymasterEntityList=holidaymasterDao.findAll() .stream() .sorted(Comparator.comparing(HolidayMaster::getholiday)) .collect(Collectors.toList()); holidaymasterEntityList.forEach(holidaymasterEntity->{ holidaymasterDTOList.add(prepareHolidayMasterDTO(holidaymasterEntity)); }); } catch (Exception e) { e.printStackTrace(); } return holidaymasterDTOList; } /* * (non-Javadoc) * @see com.example.master.services.HolidayMasterService#populateOneHolidayMasterDetails(java.lang.Long) * * Fetching HolidayMaster Entity By Id * * @Param * * Long ID * */ @Override public HolidayMasterDTO populateOneHolidayMasterDetails(Long Id) { HolidayMaster holidaymasterEntity = holidaymasterDao.findHolidayMasterById(Id); return prepareHolidayMasterDTO(holidaymasterEntity); } /* * (non-Javadoc) * @see com.example.master.services.HolidayMasterService#destroyHolidayMaster(java.lang.Long) * * Delete Service For HolidayMaster * * @Param * * Long id * */ @Override public DeleteDTO destroyHolidayMaster(Long Id) { holidaymasterDao.deleteHolidayMaster(Id); DeleteDTO deleteDTO = new DeleteDTO(); deleteDTO.setstatus(1); deleteDTO.setstatusCode(2000); deleteDTO.setmsg("Deleted successfully."); return deleteDTO; } }
[ "sougata.roy9203@gmail.com" ]
sougata.roy9203@gmail.com
6fe6c6c58a1b3d8dbc9f9e4c9d95c887943e0a73
d62c759ebcb73121f42a221776d436e9368fdaa8
/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/predicates/VirtualMachineDestroyed.java
7554073c0fc6a1fe97b81c596db2b3d57a525923
[ "Apache-2.0" ]
permissive
gnodet/jclouds
0152a4e7d6d96ac4ec9fa9746729e3555626ecfe
87dd23551c4d9b727540d9bd333ffd9a1136e58a
refs/heads/master
2020-12-24T23:19:24.785844
2011-09-16T15:52:12
2011-09-16T15:52:12
2,399,075
1
0
null
null
null
null
UTF-8
Java
false
false
2,282
java
/** * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. jclouds 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.jclouds.cloudstack.predicates; import static com.google.common.base.Preconditions.checkNotNull; import javax.annotation.Resource; import javax.inject.Singleton; import org.jclouds.cloudstack.CloudStackClient; import org.jclouds.cloudstack.domain.VirtualMachine; import org.jclouds.cloudstack.domain.VirtualMachine.State; import org.jclouds.logging.Logger; import com.google.common.base.Predicate; import com.google.inject.Inject; /** * * Tests to see if a virtualMachine is running * * @author Adrian Cole */ @Singleton public class VirtualMachineDestroyed implements Predicate<VirtualMachine> { private final CloudStackClient client; @Resource protected Logger logger = Logger.NULL; @Inject public VirtualMachineDestroyed(CloudStackClient client) { this.client = client; } public boolean apply(VirtualMachine virtualMachine) { logger.trace("looking for state on virtualMachine %s", checkNotNull(virtualMachine, "virtualMachine")); virtualMachine = refresh(virtualMachine); if (virtualMachine == null) return true; logger.trace("%s: looking for virtualMachine state %s: currently: %s", virtualMachine.getId(), State.DESTROYED, virtualMachine.getState()); return virtualMachine.getState() == State.DESTROYED; } private VirtualMachine refresh(VirtualMachine virtualMachine) { return client.getVirtualMachineClient().getVirtualMachine(virtualMachine.getId()); } }
[ "adrian@jclouds.org" ]
adrian@jclouds.org
05ea0bdfa0a310220ad03d454da61f7bbd856c51
ed166738e5dec46078b90f7cca13a3c19a1fd04b
/minor/guice-OOM-error-reproduction/src/main/java/gen/O_Gen62.java
7123e36a266d4d33210847b1730e9459805946ad
[]
no_license
michalradziwon/script
39efc1db45237b95288fe580357e81d6f9f84107
1fd5f191621d9da3daccb147d247d1323fb92429
refs/heads/master
2021-01-21T21:47:16.432732
2016-03-23T02:41:50
2016-03-23T02:41:50
22,663,317
2
0
null
null
null
null
UTF-8
Java
false
false
326
java
package gen; public class O_Gen62 { @com.google.inject.Inject public O_Gen62(O_Gen63 o_gen63){ System.out.println(this.getClass().getCanonicalName() + " created. " + o_gen63 ); } @com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :) }
[ "michal.radzi.won@gmail.com" ]
michal.radzi.won@gmail.com
9a49c87c6c3c41efb9e7772ca170447a1e12189b
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-32b-6-26-SPEA2-WeightedSum:TestLen:CallDiversity/org/apache/commons/math3/geometry/partitioning/BSPTree_ESTest_scaffolding.java
f8e09d46afdf09ea3a6700efd457016d5f6c5c95
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
458
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Apr 05 22:21:55 UTC 2020 */ package org.apache.commons.math3.geometry.partitioning; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class BSPTree_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
90bd664ea4df20a3f9f53e4c4741d900610b881c
c5d44808c7f58b4eb621e8ef9105a201d08be44a
/projects/repository/source/java/org/alfresco/opencmis/AlfrescoCmisExceptionInterceptor.java
a2ebb3b22b39b0789dd91fab394282da55f6fdd4
[]
no_license
poenneby/gigfork
eacf3218067f7bcb7a49401d25e1c2a7811353c1
109a1f01a5de710a37d499157cf1353d5ccc00c2
refs/heads/master
2020-12-24T13:21:54.169796
2012-04-16T14:52:53
2012-04-16T14:52:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,318
java
/* * Copyright (C) 2005-2010 Alfresco Software Limited. * * This file is part of Alfresco * * Alfresco is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Alfresco is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Alfresco. If not, see <http://www.gnu.org/licenses/>. */ package org.alfresco.opencmis; import org.alfresco.repo.node.integrity.IntegrityException; import org.alfresco.repo.security.authentication.AuthenticationException; import org.alfresco.repo.security.permissions.AccessDeniedException; import org.alfresco.service.cmr.coci.CheckOutCheckInServiceException; import org.alfresco.service.cmr.model.FileExistsException; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; import org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException; import org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException; import org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException; import org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException; import org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException; import org.apache.chemistry.opencmis.commons.exceptions.CmisVersioningException; /** * Interceptor to catch various exceptions and translate them into CMIS-related exceptions * <p/> * TODO: Externalize messages * TODO: Use ExceptionStackUtil to dig out exceptions of interest regardless of depth * * @author Derek Hulley * @since 4.0 */ public class AlfrescoCmisExceptionInterceptor implements MethodInterceptor { public Object invoke(MethodInvocation mi) throws Throwable { try { return mi.proceed(); } catch (AuthenticationException e) { throw new CmisPermissionDeniedException(e.getMessage(), e); } catch (CheckOutCheckInServiceException e) { throw new CmisVersioningException("Check out failed: " + e.getMessage(), e); } catch (FileExistsException fee) { throw new CmisContentAlreadyExistsException("An object with this name already exists!", fee); } catch (IntegrityException ie) { throw new CmisConstraintException("Constraint violation: " + ie.getMessage(), ie); } catch (AccessDeniedException ade) { throw new CmisPermissionDeniedException("Permission denied!", ade); } catch (Exception e) { if (e instanceof CmisBaseException) { throw (CmisBaseException) e; } else { throw new CmisRuntimeException(e.getMessage(), e); } } } }
[ "me@gigfork.com" ]
me@gigfork.com
19d8dc0772cc0763a59e478bc0def51365c244bb
916ad00314d32db45ce66a731dffb6ba7abd7433
/src/main/java/it/csi/siac/siaccorser/frontend/webservice/msg/GetOperazioneAsincResponse.java
f9f2749d1b48a1b7cbf71a8e66d419c415cacb36
[]
no_license
unica-open/siaccoritf
3025bfcd4dc0f4a7d0b78390d2e3b704803724dd
837bc74314172184705606e24ee708eb566748c6
refs/heads/master
2021-01-06T14:48:13.101169
2020-03-04T10:24:30
2020-03-04T10:24:30
241,366,929
0
0
null
null
null
null
UTF-8
Java
false
false
850
java
/* *SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte *SPDX-License-Identifier: EUPL-1.2 */ package it.csi.siac.siaccorser.frontend.webservice.msg; import javax.xml.bind.annotation.XmlType; import it.csi.siac.siaccorser.frontend.webservice.CORSvcDictionary; import it.csi.siac.siaccorser.model.ServiceResponse; /** * Messaggio di risposta della richiesta di lettura dell'operazione asicrona * * @author rmontuori * */ @XmlType(namespace = CORSvcDictionary.NAMESPACE) public class GetOperazioneAsincResponse extends ServiceResponse { private String messaggio; private String stato; public String getMessaggio() { return messaggio; } public void setMessaggio(String messaggio) { this.messaggio = messaggio; } public String getStato() { return stato; } public void setStato(String stato) { this.stato = stato; } }
[ "barbara.malano@csi.it" ]
barbara.malano@csi.it
35518fc56d19e54f0f14741d80e27669fecda9f1
75d7d12e501ebfbcbe868023887176b17a7b1931
/JSP/src/main/java/web/FindEmpServlet.java
99ae0660f7e3d2b918e33ca41e7e44b720e1085c
[]
no_license
RZZBlackMagic/first_repository
ba48fc0934181da525ce3eb4bd5e7d405a6d6978
35774058fbec5df07c62719bbddf514e730f5125
refs/heads/master
2022-12-27T04:26:45.351129
2020-11-04T09:40:01
2020-11-04T09:40:01
156,545,713
2
0
null
2022-12-16T07:12:41
2018-11-07T12:50:01
JavaScript
GB18030
Java
false
false
933
java
package web; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import empDAO.DAO; import empDAO.emp; public class FindEmpServlet extends HttpServlet { @Override protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { //接收参数 //处理业务:查询所有的员工 DAO d = new DAO(); List<emp> list = d.findAll(); //将数据绑定到request,因为在服务器内部从Servlet下转发到JSP上,不是输出响应,所以要用request。 req.setAttribute("emps", list);//list是值,emps是名字 //将请求转发给emp_list.jsp //当前:JSP/findEmp //目标:JSP/emp_list.jsp req.getRequestDispatcher("emp_list.jsp").forward(req, res);//引号内为路径 } }
[ "1403741992@qq.com" ]
1403741992@qq.com
b891441a4de3d08c39897aebacd635812e0096c8
e8bf15b7137b1a855c80bc6ca9226ac34bf98fe2
/app/src/main/java/bd/com/supply/util/AppCacheUitl.java
c0ecafcfec5fd4a30b619ac5f359ae8a3e97f3aa
[]
no_license
xime123/supply
2907bd6cd29244430acea3437e2f343f60bd6c76
b06459fa52502b86e4b7eb4c033050352d8bb54b
refs/heads/master
2020-11-28T15:53:34.168210
2019-12-24T03:11:37
2019-12-24T03:11:37
229,860,306
0
0
null
null
null
null
UTF-8
Java
false
false
4,302
java
package bd.com.supply.util; import android.content.Context; import android.os.Environment; import java.io.File; import java.math.BigDecimal; import bd.com.appcore.util.AppSettings; import bd.com.walletdb.manager.TokenManager; import bd.com.walletdb.manager.TxHistoryDBManager; public class AppCacheUitl { public static void resetDB() { TokenManager.getManager().reset(); TxHistoryDBManager.getManager().reset(); AppSettings.getAppSettings().setCurrentChainIp(""); AppSettings.getAppSettings().setCurrentChinId(null); } public static String getTotalCacheSize(Context context) throws Exception { //Context.getExternalCacheDir() --> SDCard/Android/data/你的应用包名/cache/目录,一般存放临时缓存数据 long cacheSize = getFolderSize(context.getCacheDir()); //Context.getExternalFilesDir() --> SDCard/Android/data/你的应用的包名/files/ 目录,一般放一些长时间保存的数据 if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { cacheSize += getFolderSize(context.getExternalCacheDir()); } return getFormatSize(cacheSize); } public static void clearAllCache(Context context) { deleteDir(context.getCacheDir()); if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { deleteDir(context.getExternalCacheDir()); //下面两句清理webview网页缓存.但是每次执行都报false,我用的是魅蓝5.1的系统,后来发现且/data/data/应用package目录下找不到database文///件夹 不知道是不是个别手机的问题, context.deleteDatabase("webview.db"); context.deleteDatabase("webviewCache.db"); } } private static boolean deleteDir(File dir) { if (dir != null && dir.isDirectory()) { String[] children = dir.list(); for (int i = 0; i < children.length; i++) { boolean success = deleteDir(new File(dir, children[i])); if (!success) { return false; } } } return dir.delete(); } // 获取文件 //Context.getExternalFilesDir() --> SDCard/Android/data/你的应用的包名/files/ 目录,一般放一些长时间保存的数据 //Context.getExternalCacheDir() --> SDCard/Android/data/你的应用包名/cache/目录,一般存放临时缓存数据 public static long getFolderSize(File file) throws Exception { long size = 0; try { File[] fileList = file.listFiles(); for (int i = 0; i < fileList.length; i++) { // 如果下面还有文件 if (fileList[i].isDirectory()) { size = size + getFolderSize(fileList[i]); } else { size = size + fileList[i].length(); } } } catch (Exception e) { e.printStackTrace(); } return size; } /** * 格式化单位 * * @param size */ public static String getFormatSize(double size) { double kiloByte = size / 1024; if (kiloByte < 1) { return size + "Byte"; } double megaByte = kiloByte / 1024; if (megaByte < 1) { BigDecimal result1 = new BigDecimal(Double.toString(kiloByte)); return result1.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString() + "KB"; } double gigaByte = megaByte / 1024; if (gigaByte < 1) { BigDecimal result2 = new BigDecimal(Double.toString(megaByte)); return result2.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString() + "MB"; } double teraBytes = gigaByte / 1024; if (teraBytes < 1) { BigDecimal result3 = new BigDecimal(Double.toString(gigaByte)); return result3.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString() + "GB"; } BigDecimal result4 = new BigDecimal(teraBytes); return result4.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString() + "TB"; } }
[ "xumin2@evergrande.com" ]
xumin2@evergrande.com
0a5157c979c631db718206d51455418a4232094e
9b8cf8ac14b85c5a4a1e40a22ffd97a0b28eb656
/phone/YanxiuBaseCore/src/main/java/com/yanxiu/basecore/YanxiuHttpJavaHandler.java
940f81615d5d69e76a551f92d4f813d7609008ce
[]
no_license
Dwti/yxyl_old
901ce917591eab2d2d556a719bff8b69669128f6
b91be2c16ad42ef99356a75fdb5923c03d3a4d73
refs/heads/master
2020-03-17T20:08:17.738647
2018-05-18T03:03:50
2018-05-18T03:03:50
133,894,755
0
0
null
null
null
null
UTF-8
Java
false
false
6,838
java
package com.yanxiu.basecore; import com.yanxiu.basecore.bean.YanxiuRetryPolicy; import com.yanxiu.basecore.impl.YanxiuHttpBaseParameter; import com.yanxiu.basecore.impl.YanxiuHttpParameterCallback; import com.yanxiu.basecore.utils.BaseCoreLogInfo; import org.apache.http.HttpStatus; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.SocketTimeoutException; import java.net.URL; /** * 网络请求处理类,java实现 * */ public final class YanxiuHttpJavaHandler implements YanxiuHttpBaseHandler { private String requestUrl; private String statueCode; private String requestTime; /** * 读取超时时间 * */ public static final int READ_TIMEOUT = 10 * 1000 ; /** * 连接超时处理 * */ private YanxiuRetryPolicy retryPolicy; /**t * GET 请求 * */ public final String doGet(YanxiuHttpBaseParameter<?,?,?> params) throws IOException { if(params == null){ return null; } retryPolicy = new YanxiuRetryPolicy(); retryPolicy.setMaxNumRetries(params.getMaxNumRetries()); String baseUrl ; URL url; String response = null ; HttpURLConnection httpConnection = null; InputStream is = null ; IOException onError = new IOException("connect Network Times out"); while(retryPolicy.hasAttemptRemaining()) { try { baseUrl = params.getBaseUrl() + params.encodeUrl(); requestUrl = baseUrl; BaseCoreLogInfo.err("GET " + baseUrl); url = new URL(baseUrl); httpConnection = (HttpURLConnection) url.openConnection(); YanxiuHttpParameterCallback callback = params.getCallback(); if (callback != null) { callback.proRequest(httpConnection); } httpConnection.setRequestMethod("GET"); httpConnection.setReadTimeout(READ_TIMEOUT); httpConnection.setConnectTimeout(retryPolicy.getCurrentTimeout()); try { httpConnection.connect(); } catch (SocketTimeoutException timeOutException){ BaseCoreLogInfo.err(timeOutException.getMessage()); retryPolicy.retry(onError); { httpConnection.disconnect(); if (is != null) { try { is.close(); } catch (Exception e) { e.printStackTrace(); } } httpConnection = null; is = null; } continue; } int responseCode = httpConnection.getResponseCode(); statueCode = responseCode + ""; if (responseCode == HttpStatus.SC_OK) { is = httpConnection.getInputStream(); } else { if (BaseCoreLogInfo.isDebug) { is = httpConnection.getErrorStream(); response = read(is); BaseCoreLogInfo.err(response); } retryPolicy.retry(onError); { httpConnection.disconnect(); if (is != null) { try { is.close(); } catch (Exception e) { e.printStackTrace(); } } httpConnection = null; is = null; } continue; } response = read(is); BaseCoreLogInfo.err(response); if (callback != null) { callback.laterRequest(httpConnection); } return response; } finally { if(httpConnection != null ){ httpConnection.disconnect(); } if (is != null) { try { is.close(); } catch (Exception e) { e.printStackTrace(); } } httpConnection = null; is = null; } } return null; } /** * POST 请求 * */ public final String doPost(YanxiuHttpBaseParameter<?,?,?> params) throws IOException { if(params == null){ return null; } URL url; String response = null ; HttpURLConnection httpConnection = null; InputStream is = null ; retryPolicy = new YanxiuRetryPolicy(); retryPolicy.setMaxNumRetries(params.getMaxNumRetries()); YanxiuHttpParameterCallback callback = params.getCallback() ; IOException onError = new IOException("connect Network Times out"); while(retryPolicy.hasAttemptRemaining()) { try { url = new URL(params.getBaseUrl()); requestUrl = params.getBaseUrl(); httpConnection = (HttpURLConnection) url.openConnection(); if (callback != null) { callback.proRequest(httpConnection); } httpConnection.setRequestMethod("POST"); httpConnection.setReadTimeout(READ_TIMEOUT); httpConnection.setConnectTimeout(retryPolicy.getCurrentTimeout()); httpConnection.setDoOutput(true); try { httpConnection.connect(); } catch (SocketTimeoutException timeOutException){ BaseCoreLogInfo.err("POST " + "SocketTimeoutException"); BaseCoreLogInfo.err(timeOutException.getMessage()); retryPolicy.retry(onError); { httpConnection.disconnect(); if (is != null) { try { is.close(); } catch (Exception e) { e.printStackTrace(); } } httpConnection = null; is = null; } continue; } String p = params.encodeUrl().toString(); BaseCoreLogInfo.err("POST " + params.getBaseUrl() + "\n--------|" + p); httpConnection.getOutputStream().write(p.toString().getBytes()); int responseCode = httpConnection.getResponseCode(); statueCode = responseCode + ""; if (responseCode == HttpStatus.SC_OK) { is = httpConnection.getInputStream(); } else { if (BaseCoreLogInfo.isDebug) { is = httpConnection.getErrorStream(); response = read(is); BaseCoreLogInfo.err(response); } BaseCoreLogInfo.err("POST " + "responseCode is error"); retryPolicy.retry(onError); { httpConnection.disconnect(); if (is != null) { try { is.close(); } catch (Exception e) { e.printStackTrace(); } } httpConnection = null; is = null; } continue; // throw new IOException("responseCode is not 200"); } response = read(is); BaseCoreLogInfo.err(response); if (callback != null) { callback.laterRequest(httpConnection); } return response; } finally { if(httpConnection != null ){ httpConnection.disconnect(); } if (is != null) { try { is.close(); } catch (Exception e) { e.printStackTrace(); } } httpConnection = null; is = null; } } return null; } /** * 将回来的IO流转化为字符�? * */ private final String read(InputStream in) throws IOException { if(in == null){ return null ; } InputStreamReader r = null ; String result = null ; char[] buf = new char[100] ; try{ StringBuilder sb = new StringBuilder(); r = new InputStreamReader(in); int len = 0 ; while ((len = r.read(buf)) != -1) { sb.append(buf , 0 , len); } result = sb.toString(); return result ; } finally{ if(r != null){r.close();} r = null ; result = null ; buf = null ; in = null ; } } }
[ "yangjunjian@yanxiu.com" ]
yangjunjian@yanxiu.com
d3f9a2be4f3d4e205ce9ae37920d22c6bdec71a3
a36dce4b6042356475ae2e0f05475bd6aed4391b
/2005/julypersistenceEJB/ejbModule/com/hps/july/persistence/PositionFactory.java
8b1f0e92038085358b1626b4436d8e85c9ef577e
[]
no_license
ildar66/WSAD_NRI
b21dbee82de5d119b0a507654d269832f19378bb
2a352f164c513967acf04d5e74f36167e836054f
refs/heads/master
2020-12-02T23:59:09.795209
2017-07-01T09:25:27
2017-07-01T09:25:27
95,954,234
0
1
null
null
null
null
UTF-8
Java
false
false
7,246
java
package com.hps.july.persistence; import com.ibm.etools.ejb.client.runtime.*; /** * PositionFactory * @generated */ public class PositionFactory extends AbstractEJBFactory { /** * PositionFactory * @generated */ public PositionFactory() { super(); } /** * _acquirePositionHome * @generated */ protected com.hps.july.persistence.PositionHome _acquirePositionHome() throws java.rmi.RemoteException { return (com.hps.july.persistence.PositionHome) _acquireEJBHome(); } /** * acquirePositionHome * @generated */ public com.hps.july.persistence.PositionHome acquirePositionHome() throws javax.naming.NamingException { return (com.hps.july.persistence.PositionHome) acquireEJBHome(); } /** * getDefaultJNDIName * @generated */ public String getDefaultJNDIName() { return "com/hps/july/persistence/Position"; } /** * getHomeInterface * @generated */ protected Class getHomeInterface() { return com.hps.july.persistence.PositionHome.class; } /** * resetPositionHome * @generated */ public void resetPositionHome() { resetEJBHome(); } /** * setPositionHome * @generated */ public void setPositionHome(com.hps.july.persistence.PositionHome home) { setEJBHome(home); } /** * findByQBE4 * @generated */ public java.util.Enumeration findByQBE4( java.lang.Boolean isNetZone, java.lang.Integer argNetZone, java.lang.Boolean isAllType, java.lang.Boolean isDAMPS, java.lang.Boolean isGSM900, java.lang.Boolean isDCS1800, java.lang.Boolean isControllers, java.lang.Boolean isWorker, java.lang.Integer argWorker) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findByQBE4( isNetZone, argNetZone, isAllType, isDAMPS, isGSM900, isDCS1800, isControllers, isWorker, argWorker); } /** * findByQBE * @generated */ public java.util.Enumeration findByQBE( java.lang.Boolean isNetZone, java.lang.Integer argNetZone, java.lang.Boolean isGsmId, java.lang.String argGsmId, java.lang.Boolean isDampsId, java.lang.String argDampsId, java.lang.Boolean isName, java.lang.String argName, java.lang.Boolean isAddr, java.lang.String argAddr, java.lang.Integer order) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findByQBE( isNetZone, argNetZone, isGsmId, argGsmId, isDampsId, argDampsId, isName, argName, isAddr, argAddr, order); } /** * findPositionsByRegion * @generated */ public java.util.Enumeration findPositionsByRegion( com.hps.july.persistence.RegionKey inKey) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findPositionsByRegion(inKey); } /** * findRenteePositionByRenter * @generated */ public java.util.Enumeration findRenteePositionByRenter( com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findRenteePositionByRenter(inKey); } /** * findPositionByNetZone * @generated */ public java.util.Enumeration findPositionByNetZone( com.hps.july.persistence.NetZoneKey inKey) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findPositionByNetZone(inKey); } /** * create * @generated */ public com.hps.july.persistence.Position create( int argStorageplace, java.lang.String argName, java.lang.String argAddress, java.lang.Integer argNetZone, java.math.BigDecimal argLatitude, java.math.BigDecimal argLongitude) throws javax.ejb.CreateException, java.rmi.RemoteException { return _acquirePositionHome().create( argStorageplace, argName, argAddress, argNetZone, argLatitude, argLongitude); } /** * findByPrimaryKey * @generated */ public com.hps.july.persistence.Position findByPrimaryKey( com.hps.july.persistence.StoragePlaceKey key) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findByPrimaryKey(key); } /** * create * @generated */ public com.hps.july.persistence.Position create( int argStorageplace, java.lang.String argName, java.lang.String argAddress, java.lang.Integer argNetZone, java.math.BigDecimal argLatitude, java.math.BigDecimal argLongitude, java.lang.String argPlanState) throws javax.ejb.CreateException, java.rmi.RemoteException { return _acquirePositionHome().create( argStorageplace, argName, argAddress, argNetZone, argLatitude, argLongitude, argPlanState); } /** * findByQBE2 * @generated */ public java.util.Enumeration findByQBE2( java.lang.Boolean isNetZone, java.lang.Integer argNetZone, java.lang.Boolean isGsmId, java.lang.String argGsmId, java.lang.Boolean isDampsId, java.lang.String argDampsId, java.lang.Boolean isName, java.lang.String argName, java.lang.Boolean isAddr, java.lang.String argAddr, java.lang.Boolean isRenter, java.lang.Integer argRenter, java.lang.Boolean isResponsableWorker, java.lang.Integer argResponsableWorker, java.lang.Integer order) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findByQBE2( isNetZone, argNetZone, isGsmId, argGsmId, isDampsId, argDampsId, isName, argName, isAddr, argAddr, isRenter, argRenter, isResponsableWorker, argResponsableWorker, order); } /** * create * @generated */ public com.hps.july.persistence.Position create( int argStorageplace, java.lang.String argName, java.lang.String argAddress, java.lang.Integer argNetZone, java.math.BigDecimal argLatitude, java.math.BigDecimal argLongitude, int argRegionId, java.lang.String argPlanState) throws javax.ejb.CreateException, java.rmi.RemoteException { return _acquirePositionHome().create( argStorageplace, argName, argAddress, argNetZone, argLatitude, argLongitude, argRegionId, argPlanState); } /** * create * @generated */ public com.hps.july.persistence.Position create(int argStorageplace) throws javax.ejb.CreateException, java.rmi.RemoteException { return _acquirePositionHome().create(argStorageplace); } /** * findByQBE3 * @generated */ public java.util.Enumeration findByQBE3( java.lang.Boolean isNetZone, java.lang.Integer argNetZone, java.lang.Boolean isGsmId, java.lang.String argGsmId, java.lang.Boolean isDampsId, java.lang.String argDampsId, java.lang.Boolean isName, java.lang.String argName, java.lang.Boolean isAddr, java.lang.String argAddr, java.lang.Boolean isRenter, java.lang.Integer argRenter, java.lang.Boolean isResponsableWorker, java.lang.Integer argResponsableWorker, java.lang.Boolean isInAction, java.lang.String inAction, java.lang.Integer order) throws java.rmi.RemoteException, javax.ejb.FinderException { return _acquirePositionHome().findByQBE3( isNetZone, argNetZone, isGsmId, argGsmId, isDampsId, argDampsId, isName, argName, isAddr, argAddr, isRenter, argRenter, isResponsableWorker, argResponsableWorker, isInAction, inAction, order); } }
[ "ildar66@inbox.ru" ]
ildar66@inbox.ru
ece62a682e6b7dee216a9d55f1b3fd10be2f9f0a
fa43289298d72d1cff59b3d1f0c8e0e719b5cbc0
/octanner/octannercore/testsrc/com/octanner/core/btg/OrganizationOrdersReportingJobTest.java
a5e9dc0a838cefbee9e989e7100b154f49886b4b
[]
no_license
cbarath/custom
2e611c35cf8aaa1126c15ccbb064ea2e944a5143
67d0cf069c0cf99f8454cea69d58e0bbea56dfc0
refs/heads/master
2021-01-17T11:48:30.621543
2015-08-11T01:08:17
2015-08-11T01:08:17
40,492,659
0
0
null
null
null
null
UTF-8
Java
false
false
3,407
java
/* * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ package com.octanner.core.btg; import de.hybris.bootstrap.annotations.IntegrationTest; import de.hybris.platform.core.model.order.OrderModel; import de.hybris.platform.core.model.user.UserModel; import de.hybris.platform.servicelayer.ServicelayerTest; import de.hybris.platform.servicelayer.cronjob.CronJobService; import de.hybris.platform.servicelayer.i18n.CommonI18NService; import de.hybris.platform.servicelayer.internal.model.ServicelayerJobModel; import de.hybris.platform.servicelayer.model.ModelService; import de.hybris.platform.servicelayer.search.FlexibleSearchService; import de.hybris.platform.servicelayer.user.UserService; import com.octanner.core.model.btg.OrganizationOrdersReportingCronJobModel; import java.util.Collections; import java.util.Date; import javax.annotation.Resource; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; @IntegrationTest @Ignore public class OrganizationOrdersReportingJobTest extends ServicelayerTest { @Resource OrganizationOrdersReportingJob organizationOrdersReportingJob; @Resource UserService userService; @Resource ModelService modelService; @Resource CommonI18NService commonI18NService; @Resource CronJobService cronJobService; @Resource FlexibleSearchService flexibleSearchService; final String jobBeanId = "organizationOrdersReportingJob"; @Before public void setUp() throws Exception { if (flexibleSearchService .search( "SELECT {" + ServicelayerJobModel.PK + "} FROM {" + ServicelayerJobModel._TYPECODE + "} WHERE " + "{" + ServicelayerJobModel.SPRINGID + "}=?springid", Collections.singletonMap("springid", jobBeanId)) .getResult().isEmpty()) { final ServicelayerJobModel servicelayerJobModel = modelService.create(ServicelayerJobModel.class); servicelayerJobModel.setCode(jobBeanId); servicelayerJobModel.setSpringId(jobBeanId); modelService.save(servicelayerJobModel); } importCsv("/octannercore/test/testB2BCommerceCart.csv", "windows-1252"); final UserModel user = userService.getCurrentUser(); final OrderModel testOrder = modelService.create(OrderModel.class); testOrder.setCode("organizationOrdersReportingJob test" + System.currentTimeMillis()); testOrder.setUser(user); testOrder.setCurrency(commonI18NService.getCurrency("USD")); testOrder.setDate(new Date()); testOrder.setNet(Boolean.FALSE); testOrder.setTotalPrice(Double.valueOf(1000D)); modelService.save(testOrder); } @Test public void testOrganizationOrdersReportingJob() throws Exception { final OrganizationOrdersReportingCronJobModel cronjob = modelService.create(OrganizationOrdersReportingCronJobModel.class); cronjob.setJob(cronJobService.getJob(jobBeanId)); //final PerformResult performResult = organizationOrdersReportingJob.perform(cronjob); //Assert.assertEquals( new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED),performResult); //Assert.assertEquals( new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED),performResult); } }
[ "ferrarif789@gmail.com" ]
ferrarif789@gmail.com
e92aac5402ee64ce1bdbe9efeb0764d38b6d810b
611b2f6227b7c3b4b380a4a410f357c371a05339
/src/main/java/com/alipay/sdk/encrypt/c.java
b34c58473523e1a0477d05f7c385bbfb7020695d
[]
no_license
obaby/bjqd
76f35fcb9bbfa4841646a8888c9277ad66b171dd
97c56f77380835e306ea12401f17fb688ca1373f
refs/heads/master
2022-12-04T21:33:17.239023
2020-08-25T10:53:15
2020-08-25T10:53:15
290,186,830
3
1
null
null
null
null
UTF-8
Java
false
false
7,299
java
package com.alipay.sdk.encrypt; public final class c { /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v0, resolved type: java.util.zip.GZIPOutputStream} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v1, resolved type: java.io.ByteArrayOutputStream} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v2, resolved type: java.io.ByteArrayOutputStream} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v3, resolved type: java.io.ByteArrayOutputStream} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v5, resolved type: java.util.zip.GZIPOutputStream} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v7, resolved type: java.util.zip.GZIPOutputStream} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r2v8, resolved type: java.util.zip.GZIPOutputStream} */ /* JADX WARNING: Can't wrap try/catch for region: R(10:8|9|(2:10|(1:12)(1:43))|13|14|15|16|17|(2:18|19)|20) */ /* JADX WARNING: Failed to process nested try/catch */ /* JADX WARNING: Missing exception handler attribute for start block: B:16:0x002d */ /* JADX WARNING: Missing exception handler attribute for start block: B:18:0x0030 */ /* JADX WARNING: Multi-variable type inference failed */ /* JADX WARNING: Removed duplicated region for block: B:31:0x0045 A[SYNTHETIC, Splitter:B:31:0x0045] */ /* JADX WARNING: Removed duplicated region for block: B:35:0x004c A[SYNTHETIC, Splitter:B:35:0x004c] */ /* JADX WARNING: Removed duplicated region for block: B:39:0x0053 A[SYNTHETIC, Splitter:B:39:0x0053] */ /* Code decompiled incorrectly, please refer to instructions dump. */ public static byte[] a(byte[] r6) throws java.io.IOException { /* r0 = 0 java.io.ByteArrayInputStream r1 = new java.io.ByteArrayInputStream // Catch:{ all -> 0x003e } r1.<init>(r6) // Catch:{ all -> 0x003e } java.io.ByteArrayOutputStream r6 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x003b } r6.<init>() // Catch:{ all -> 0x003b } java.util.zip.GZIPOutputStream r2 = new java.util.zip.GZIPOutputStream // Catch:{ all -> 0x0036 } r2.<init>(r6) // Catch:{ all -> 0x0036 } r0 = 4096(0x1000, float:5.74E-42) byte[] r0 = new byte[r0] // Catch:{ all -> 0x0034 } L_0x0014: int r3 = r1.read(r0) // Catch:{ all -> 0x0034 } r4 = -1 if (r3 == r4) goto L_0x0020 r4 = 0 r2.write(r0, r4, r3) // Catch:{ all -> 0x0034 } goto L_0x0014 L_0x0020: r2.flush() // Catch:{ all -> 0x0034 } r2.finish() // Catch:{ all -> 0x0034 } byte[] r0 = r6.toByteArray() // Catch:{ all -> 0x0034 } r1.close() // Catch:{ Exception -> 0x002d } L_0x002d: r6.close() // Catch:{ Exception -> 0x0030 } L_0x0030: r2.close() // Catch:{ Exception -> 0x0033 } L_0x0033: return r0 L_0x0034: r0 = move-exception goto L_0x0043 L_0x0036: r2 = move-exception r5 = r2 r2 = r0 r0 = r5 goto L_0x0043 L_0x003b: r6 = move-exception r2 = r0 goto L_0x0041 L_0x003e: r6 = move-exception r1 = r0 r2 = r1 L_0x0041: r0 = r6 r6 = r2 L_0x0043: if (r1 == 0) goto L_0x004a r1.close() // Catch:{ Exception -> 0x0049 } goto L_0x004a L_0x0049: L_0x004a: if (r6 == 0) goto L_0x0051 r6.close() // Catch:{ Exception -> 0x0050 } goto L_0x0051 L_0x0050: L_0x0051: if (r2 == 0) goto L_0x0056 r2.close() // Catch:{ Exception -> 0x0056 } L_0x0056: throw r0 */ throw new UnsupportedOperationException("Method not decompiled: com.alipay.sdk.encrypt.c.a(byte[]):byte[]"); } /* JADX WARNING: Can't wrap try/catch for region: R(14:3|4|5|6|7|(4:8|9|10|(1:12)(1:38))|13|14|15|16|17|18|19|20) */ /* JADX WARNING: Can't wrap try/catch for region: R(9:22|23|30|31|32|33|34|35|36) */ /* JADX WARNING: Failed to process nested try/catch */ /* JADX WARNING: Missing exception handler attribute for start block: B:16:0x002a */ /* JADX WARNING: Missing exception handler attribute for start block: B:18:0x002d */ /* JADX WARNING: Missing exception handler attribute for start block: B:32:0x0047 */ /* JADX WARNING: Missing exception handler attribute for start block: B:34:0x004a */ /* Code decompiled incorrectly, please refer to instructions dump. */ public static byte[] b(byte[] r8) throws java.io.IOException { /* r0 = 0 java.io.ByteArrayInputStream r1 = new java.io.ByteArrayInputStream // Catch:{ all -> 0x0041 } r1.<init>(r8) // Catch:{ all -> 0x0041 } java.util.zip.GZIPInputStream r8 = new java.util.zip.GZIPInputStream // Catch:{ all -> 0x003d } r8.<init>(r1) // Catch:{ all -> 0x003d } r2 = 4096(0x1000, float:5.74E-42) byte[] r3 = new byte[r2] // Catch:{ all -> 0x0037 } java.io.ByteArrayOutputStream r4 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x0037 } r4.<init>() // Catch:{ all -> 0x0037 } L_0x0014: r0 = 0 int r5 = r8.read(r3, r0, r2) // Catch:{ all -> 0x0031 } r6 = -1 if (r5 == r6) goto L_0x0020 r4.write(r3, r0, r5) // Catch:{ all -> 0x0031 } goto L_0x0014 L_0x0020: r4.flush() // Catch:{ all -> 0x0031 } byte[] r0 = r4.toByteArray() // Catch:{ all -> 0x0031 } r4.close() // Catch:{ Exception -> 0x002a } L_0x002a: r8.close() // Catch:{ Exception -> 0x002d } L_0x002d: r1.close() // Catch:{ Exception -> 0x0030 } L_0x0030: return r0 L_0x0031: r0 = move-exception r2 = r1 r1 = r8 r8 = r0 r0 = r4 goto L_0x0044 L_0x0037: r2 = move-exception r7 = r1 r1 = r8 r8 = r2 r2 = r7 goto L_0x0044 L_0x003d: r8 = move-exception r2 = r1 r1 = r0 goto L_0x0044 L_0x0041: r8 = move-exception r1 = r0 r2 = r1 L_0x0044: r0.close() // Catch:{ Exception -> 0x0047 } L_0x0047: r1.close() // Catch:{ Exception -> 0x004a } L_0x004a: r2.close() // Catch:{ Exception -> 0x004d } L_0x004d: throw r8 */ throw new UnsupportedOperationException("Method not decompiled: com.alipay.sdk.encrypt.c.b(byte[]):byte[]"); } }
[ "obaby.lh@gmail.com" ]
obaby.lh@gmail.com
8968afbcfebfc221a3c369ca08895dc78afef488
f662526b79170f8eeee8a78840dd454b1ea8048c
/brn.java
163b5ec1e8a5edf87464f3e1a2ced4beeb0f6cbe
[]
no_license
jason920612/Minecraft
5d3cd1eb90726efda60a61e8ff9e057059f9a484
5bd5fb4dac36e23a2c16576118da15c4890a2dff
refs/heads/master
2023-01-12T17:04:25.208957
2020-11-26T08:51:21
2020-11-26T08:51:21
316,170,984
0
0
null
null
null
null
UTF-8
Java
false
false
5,915
java
/* */ import java.util.Random; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class brn /* */ extends bqo<brm> /* */ { /* 17 */ private static final blc a = bct.jI.p(); /* */ /* */ /* */ /* */ /* */ public boolean a(axz ☃, bmy<? extends bom> bmy1, Random random, el el1, brm brm1) { /* 23 */ while (el1.p() > 5 && ☃.c(el1)) { /* 24 */ el1 = el1.b(); /* */ } /* 26 */ if (el1.p() <= 4) { /* 27 */ return false; /* */ } /* */ /* 30 */ el1 = el1.c(4); /* */ /* 32 */ boolean[] arrayOfBoolean = new boolean[2048]; /* */ /* 34 */ int i = random.nextInt(4) + 4; int j; /* 35 */ for (j = 0; j < i; j++) { /* 36 */ double d1 = random.nextDouble() * 6.0D + 3.0D; /* 37 */ double d2 = random.nextDouble() * 4.0D + 2.0D; /* 38 */ double d3 = random.nextDouble() * 6.0D + 3.0D; /* */ /* 40 */ double d4 = random.nextDouble() * (16.0D - d1 - 2.0D) + 1.0D + d1 / 2.0D; /* 41 */ double d5 = random.nextDouble() * (8.0D - d2 - 4.0D) + 2.0D + d2 / 2.0D; /* 42 */ double d6 = random.nextDouble() * (16.0D - d3 - 2.0D) + 1.0D + d3 / 2.0D; /* */ /* 44 */ for (int k = 1; k < 15; k++) { /* 45 */ for (int m = 1; m < 15; m++) { /* 46 */ for (int n = 1; n < 7; n++) { /* 47 */ double d7 = (k - d4) / d1 / 2.0D; /* 48 */ double d8 = (n - d5) / d2 / 2.0D; /* 49 */ double d9 = (m - d6) / d3 / 2.0D; /* 50 */ double d10 = d7 * d7 + d8 * d8 + d9 * d9; /* 51 */ if (d10 < 1.0D) { /* 52 */ arrayOfBoolean[(k * 16 + m) * 8 + n] = true; /* */ } /* */ } /* */ } /* */ } /* */ } /* */ /* 59 */ for (j = 0; j < 16; j++) { /* 60 */ for (int k = 0; k < 16; k++) { /* 61 */ for (int m = 0; m < 8; m++) { /* 62 */ boolean bool = (!arrayOfBoolean[(j * 16 + k) * 8 + m] && ((j < 15 && arrayOfBoolean[((j + 1) * 16 + k) * 8 + m]) || (j > 0 && arrayOfBoolean[((j - 1) * 16 + k) * 8 + m]) || (k < 15 && arrayOfBoolean[(j * 16 + k + 1) * 8 + m]) || (k > 0 && arrayOfBoolean[(j * 16 + k - 1) * 8 + m]) || (m < 7 && arrayOfBoolean[(j * 16 + k) * 8 + m + 1]) || (m > 0 && arrayOfBoolean[(j * 16 + k) * 8 + m - 1]))); /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* 71 */ if (bool) { /* 72 */ bza bza = ☃.a_(el1.a(j, m, k)).d(); /* 73 */ if (m >= 4 && bza.a()) { /* 74 */ return false; /* */ } /* 76 */ if (m < 4 && !bza.b() && ☃.a_(el1.a(j, m, k)).c() != brm1.a) { /* 77 */ return false; /* */ } /* */ } /* */ } /* */ } /* */ } /* */ /* 84 */ for (j = 0; j < 16; j++) { /* 85 */ for (int k = 0; k < 16; k++) { /* 86 */ for (int m = 0; m < 8; m++) { /* 87 */ if (arrayOfBoolean[(j * 16 + k) * 8 + m]) { /* 88 */ ☃.a(el1.a(j, m, k), (m >= 4) ? a : brm1.a.p(), 2); /* */ } /* */ } /* */ } /* */ } /* */ /* 94 */ for (j = 0; j < 16; j++) { /* 95 */ for (int k = 0; k < 16; k++) { /* 96 */ for (int m = 4; m < 8; m++) { /* 97 */ if (arrayOfBoolean[(j * 16 + k) * 8 + m]) { /* 98 */ el el2 = el1.a(j, m - 1, k); /* */ /* 100 */ if (bcs.d(☃.a_(el2).c()) && ☃.a(ayi.a, el1.a(j, m, k)) > 0) { /* 101 */ ayu ayu = ☃.d(el2); /* 102 */ if (ayu.r().a().c() == bct.dV) { /* 103 */ ☃.a(el2, bct.dV.p(), 2); /* */ } else { /* 105 */ ☃.a(el2, bct.i.p(), 2); /* */ } /* */ } /* */ } /* */ } /* */ } /* */ } /* */ /* 113 */ if (brm1.a.p().d() == bza.k) { /* 114 */ for (j = 0; j < 16; j++) { /* 115 */ for (int k = 0; k < 16; k++) { /* 116 */ for (int m = 0; m < 8; m++) { /* 117 */ boolean bool = (!arrayOfBoolean[(j * 16 + k) * 8 + m] && ((j < 15 && arrayOfBoolean[((j + 1) * 16 + k) * 8 + m]) || (j > 0 && arrayOfBoolean[((j - 1) * 16 + k) * 8 + m]) || (k < 15 && arrayOfBoolean[(j * 16 + k + 1) * 8 + m]) || (k > 0 && arrayOfBoolean[(j * 16 + k - 1) * 8 + m]) || (m < 7 && arrayOfBoolean[(j * 16 + k) * 8 + m + 1]) || (m > 0 && arrayOfBoolean[(j * 16 + k) * 8 + m - 1]))); /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* 126 */ if (bool && ( /* 127 */ m < 4 || random.nextInt(2) != 0) && ☃.a_(el1.a(j, m, k)).d().b()) { /* 128 */ ☃.a(el1.a(j, m, k), bct.b.p(), 2); /* */ } /* */ } /* */ } /* */ } /* */ } /* */ /* */ /* 136 */ if (brm1.a.p().d() == bza.i) { /* 137 */ for (j = 0; j < 16; j++) { /* 138 */ for (int k = 0; k < 16; k++) { /* 139 */ int m = 4; /* 140 */ el el2 = el1.a(j, 4, k); /* 141 */ if (☃.d(el2).a(☃, el2, false)) { /* 142 */ ☃.a(el2, bct.cR.p(), 2); /* */ } /* */ } /* */ } /* */ } /* */ /* 148 */ return true; /* */ } /* */ } /* Location: F:\dw\server.jar!\brn.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "jasonya2206@gmail.com" ]
jasonya2206@gmail.com
561b074c74edcf7bd1cee3dc1cb2e1c8af5c26bd
1e19314a8b1f0b64ae442a485d79fa9151a1107e
/src/by/it/akhmelev/jd01_10/sample_service/SimpleService.java
77700a84d79b24a27e2db890c6bcf8e3bbc619ff
[]
no_license
igorkiselev93/JD2017-12-16
2271cdc1c161eabc10009b0638de8b194489d581
7bb21bfe1358cf9611bce9684907fb2d7e8b0e44
refs/heads/master
2021-05-10T08:34:50.864238
2018-02-22T10:21:57
2018-02-22T10:21:57
118,894,315
1
0
null
2018-01-25T09:50:05
2018-01-25T09:50:04
null
UTF-8
Java
false
false
465
java
package by.it.akhmelev.jd01_10.sample_service; @Service(name="Just simple Service") public class SimpleService { @Init public void initialization(){ System.out.println("Инициализация Just Service запущена"); } public void halt(){ System.out.println("Just Service остановлен"); } public SimpleService() { System.out.println("Создан экземпляр Just Service "); } }
[ "375336849110@tut.by" ]
375336849110@tut.by
fe2e1e1215dc920c1087a46dd23a9da5fd0ee10a
1646441d091844cd8e58659ab13f113bffe9f6ce
/Create a new project without errors/src/test/java/createproject/DataResources.java
edd6ec4318d534d49d18ac9768e39eefa0c3457e
[]
no_license
PhilDolganov/kantora
b51fca7c0be4227328c662a787ecb9dcb4f9e332
b4b09538ce89f72715f167d6c9c0a70e0e87977c
refs/heads/master
2021-10-02T21:46:07.658179
2018-12-01T04:49:49
2018-12-01T04:49:49
104,503,272
0
0
null
null
null
null
UTF-8
Java
false
false
758
java
package createproject; import org.testng.annotations.DataProvider; public class DataResources { @DataProvider(name = "Add Project") public static Object[][] getProjectData() { Object[][] data = new Object[1][9];//provides all required input data for the test data[0][0] = "Project 123";//project name data[0][1] = "Bob Jones";//name data[0][2] = "bobjones@mail.com";//email data[0][3] = "858-544-2342";//ph# data[0][4] = "www.bobjones.com";//website data[0][5] = "San Jose";//city data[0][6] = "95130";//zip data[0][7] = "'//*[contains(@class,'create_project')]//TABLE//TR[";//string startStr data[0][8] = "]/TD[2]/INPUT'";//string endStr return data; } }
[ "phildolganov@yahoo.com" ]
phildolganov@yahoo.com
92a9afe2483c13b94f35e3f7c5b9ee0adf451da5
79595075622ded0bf43023f716389f61d8e96e94
/app/src/main/java/com/android/server/trust/TrustArchive.java
0346b71dd44770422427943a0556a8d196e49f06
[]
no_license
dstmath/OppoR15
96f1f7bb4d9cfad47609316debc55095edcd6b56
b9a4da845af251213d7b4c1b35db3e2415290c96
refs/heads/master
2020-03-24T16:52:14.198588
2019-05-27T02:24:53
2019-05-27T02:24:53
142,840,716
7
4
null
null
null
null
UTF-8
Java
false
false
6,520
java
package com.android.server.trust; import android.content.ComponentName; import android.os.SystemClock; import android.util.TimeUtils; import java.io.PrintWriter; import java.util.ArrayDeque; import java.util.Iterator; public class TrustArchive { private static final int HISTORY_LIMIT = 200; private static final int TYPE_AGENT_CONNECTED = 4; private static final int TYPE_AGENT_DIED = 3; private static final int TYPE_AGENT_STOPPED = 5; private static final int TYPE_GRANT_TRUST = 0; private static final int TYPE_MANAGING_TRUST = 6; private static final int TYPE_POLICY_CHANGED = 7; private static final int TYPE_REVOKE_TRUST = 1; private static final int TYPE_TRUST_TIMEOUT = 2; ArrayDeque<Event> mEvents = new ArrayDeque(); private static class Event { final ComponentName agent; final long duration; final long elapsedTimestamp; final int flags; final boolean managingTrust; final String message; final int type; final int userId; /* synthetic */ Event(int type, int userId, ComponentName agent, String message, long duration, int flags, boolean managingTrust, Event -this7) { this(type, userId, agent, message, duration, flags, managingTrust); } private Event(int type, int userId, ComponentName agent, String message, long duration, int flags, boolean managingTrust) { this.type = type; this.userId = userId; this.agent = agent; this.elapsedTimestamp = SystemClock.elapsedRealtime(); this.message = message; this.duration = duration; this.flags = flags; this.managingTrust = managingTrust; } } public void logGrantTrust(int userId, ComponentName agent, String message, long duration, int flags) { addEvent(new Event(0, userId, agent, message, duration, flags, false, null)); } public void logRevokeTrust(int userId, ComponentName agent) { addEvent(new Event(1, userId, agent, null, 0, 0, false, null)); } public void logTrustTimeout(int userId, ComponentName agent) { addEvent(new Event(2, userId, agent, null, 0, 0, false, null)); } public void logAgentDied(int userId, ComponentName agent) { addEvent(new Event(3, userId, agent, null, 0, 0, false, null)); } public void logAgentConnected(int userId, ComponentName agent) { addEvent(new Event(4, userId, agent, null, 0, 0, false, null)); } public void logAgentStopped(int userId, ComponentName agent) { addEvent(new Event(5, userId, agent, null, 0, 0, false, null)); } public void logManagingTrust(int userId, ComponentName agent, boolean managing) { addEvent(new Event(6, userId, agent, null, 0, 0, managing, null)); } public void logDevicePolicyChanged() { addEvent(new Event(7, -1, null, null, 0, 0, false, null)); } private void addEvent(Event e) { if (this.mEvents.size() >= 200) { this.mEvents.removeFirst(); } this.mEvents.addLast(e); } public void dump(PrintWriter writer, int limit, int userId, String linePrefix, boolean duplicateSimpleNames) { int count = 0; Iterator<Event> iter = this.mEvents.descendingIterator(); while (iter.hasNext() && count < limit) { Event ev = (Event) iter.next(); if (userId == -1 || userId == ev.userId || ev.userId == -1) { writer.print(linePrefix); writer.printf("#%-2d %s %s: ", new Object[]{Integer.valueOf(count), formatElapsed(ev.elapsedTimestamp), dumpType(ev.type)}); if (userId == -1) { writer.print("user="); writer.print(ev.userId); writer.print(", "); } if (ev.agent != null) { writer.print("agent="); if (duplicateSimpleNames) { writer.print(ev.agent.flattenToShortString()); } else { writer.print(getSimpleName(ev.agent)); } } switch (ev.type) { case 0: writer.printf(", message=\"%s\", duration=%s, flags=%s", new Object[]{ev.message, formatDuration(ev.duration), dumpGrantFlags(ev.flags)}); break; case 6: writer.printf(", managingTrust=" + ev.managingTrust, new Object[0]); break; } writer.println(); count++; } } } public static String formatDuration(long duration) { StringBuilder sb = new StringBuilder(); TimeUtils.formatDuration(duration, sb); return sb.toString(); } private static String formatElapsed(long elapsed) { return TimeUtils.logTimeOfDay((elapsed - SystemClock.elapsedRealtime()) + System.currentTimeMillis()); } static String getSimpleName(ComponentName cn) { String name = cn.getClassName(); int idx = name.lastIndexOf(46); if (idx >= name.length() || idx < 0) { return name; } return name.substring(idx + 1); } private String dumpType(int type) { switch (type) { case 0: return "GrantTrust"; case 1: return "RevokeTrust"; case 2: return "TrustTimeout"; case 3: return "AgentDied"; case 4: return "AgentConnected"; case 5: return "AgentStopped"; case 6: return "ManagingTrust"; case 7: return "DevicePolicyChanged"; default: return "Unknown(" + type + ")"; } } private String dumpGrantFlags(int flags) { StringBuilder sb = new StringBuilder(); if ((flags & 1) != 0) { if (sb.length() != 0) { sb.append('|'); } sb.append("INITIATED_BY_USER"); } if ((flags & 2) != 0) { if (sb.length() != 0) { sb.append('|'); } sb.append("DISMISS_KEYGUARD"); } if (sb.length() == 0) { sb.append('0'); } return sb.toString(); } }
[ "toor@debian.toor" ]
toor@debian.toor
b0ad091c2efc85313cae35c11a8d14ee6affbcf8
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14227-8-10-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/store/migration/AbstractDataMigrationManager_ESTest.java
78cb16ca3e96fec6fb05f8d6404f25eeef9acec7
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
592
java
/* * This file was automatically generated by EvoSuite * Tue Jan 21 18:47:07 UTC 2020 */ package com.xpn.xwiki.store.migration; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class AbstractDataMigrationManager_ESTest extends AbstractDataMigrationManager_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
b4aa0b1b30088ef3afe19592c0f26a02b8667b32
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
/src/testcases/CWE259_Hard_Coded_Password/CWE259_Hard_Coded_Password__kerberosKey_53c.java
d0b9f40609303b1ef10676210bb8283e77c4b482
[]
no_license
bqcuong/Juliet-Test-Case
31e9c89c27bf54a07b7ba547eddd029287b2e191
e770f1c3969be76fdba5d7760e036f9ba060957d
refs/heads/master
2020-07-17T14:51:49.610703
2019-09-03T16:22:58
2019-09-03T16:22:58
206,039,578
1
2
null
null
null
null
UTF-8
Java
false
false
1,196
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE259_Hard_Coded_Password__kerberosKey_53c.java Label Definition File: CWE259_Hard_Coded_Password.label.xml Template File: sources-sink-53c.tmpl.java */ /* * @description * CWE: 259 Hard Coded Password * BadSource: hardcodedPassword Set data to a hardcoded string * GoodSource: Read data from the console using readLine() * Sinks: kerberosKey * BadSink : data used as password in KerberosKey() * Flow Variant: 53 Data flow: data passed as an argument from one method through two others to a fourth; all four functions are in different classes in the same package * * */ package testcases.CWE259_Hard_Coded_Password; import testcasesupport.*; import java.util.logging.Level; import java.io.*; public class CWE259_Hard_Coded_Password__kerberosKey_53c { public void badSink(String data ) throws Throwable { (new CWE259_Hard_Coded_Password__kerberosKey_53d()).badSink(data ); } /* goodG2B() - use goodsource and badsink */ public void goodG2BSink(String data ) throws Throwable { (new CWE259_Hard_Coded_Password__kerberosKey_53d()).goodG2BSink(data ); } }
[ "bqcuong2212@gmail.com" ]
bqcuong2212@gmail.com
46cc288a5960ffd770be179947a4619986e74433
d6bcc7a24e8ef6d19b8bd9f7685aff5fb18d43a3
/qmq-remoting/src/main/java/qunar/tc/qmq/netty/client/NettyClientHandler.java
2d9861f909a6ca864c3f96f7e556232d2a4d42e0
[ "Apache-2.0" ]
permissive
KEVINYZY/qmq
63fd95ab84a8bc3ee74be0ed7efa40c25c962a36
260877290b8625acbb6fa70f4cda952ecc32b553
refs/heads/master
2020-04-10T11:39:48.742637
2019-12-06T06:44:52
2019-12-06T06:44:52
160,999,877
0
0
Apache-2.0
2018-12-09T03:16:40
2018-12-09T03:16:40
null
UTF-8
Java
false
false
6,544
java
/* * Copyright 2018 Qunar * * 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.com.qunar.pay.trade.api.card.service.usercard.UserCardQueryFacade */ package qunar.tc.qmq.netty.client; import io.netty.channel.Channel; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import qunar.tc.qmq.concurrent.NamedThreadFactory; import qunar.tc.qmq.netty.exception.ClientSendException; import qunar.tc.qmq.protocol.Datagram; import qunar.tc.qmq.util.RemoteHelper; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; /** * @author yiqun.fan create on 17-8-29. */ @ChannelHandler.Sharable class NettyClientHandler extends SimpleChannelInboundHandler<Datagram> { private static final Logger LOGGER = LoggerFactory.getLogger(NettyClientHandler.class); private static final long CLEAN_RESPONSE_TABLE_PERIOD_MILLIS = 1000; private final AtomicInteger opaque = new AtomicInteger(0); private final ConcurrentMap<Channel, ConcurrentMap<Integer, ResponseFuture>> requestsInFlight = new ConcurrentHashMap<>(4); private final ScheduledExecutorService timeoutTracker; NettyClientHandler() { timeoutTracker = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("qmq-client-clean")); timeoutTracker.scheduleAtFixedRate(new Runnable() { @Override public void run() { NettyClientHandler.this.processTimeouts(); } }, 3 * CLEAN_RESPONSE_TABLE_PERIOD_MILLIS, CLEAN_RESPONSE_TABLE_PERIOD_MILLIS, TimeUnit.MILLISECONDS); } ResponseFuture newResponse(Channel channel, long timeout, ResponseFuture.Callback callback) throws ClientSendException { final int op = opaque.getAndIncrement(); ResponseFuture future = new ResponseFuture(op, timeout, callback); ConcurrentMap<Integer, ResponseFuture> channelBuffer = requestsInFlight.get(channel); if (channelBuffer == null) { channelBuffer = new ConcurrentHashMap<>(); ConcurrentMap<Integer, ResponseFuture> old = requestsInFlight.putIfAbsent(channel, channelBuffer); if (old != null) { channelBuffer = old; } } if (channelBuffer.putIfAbsent(op, future) != null) { throw new ClientSendException(ClientSendException.SendErrorCode.ILLEGAL_OPAQUE); } return future; } void removeResponse(Channel channel, ResponseFuture responseFuture) { ConcurrentMap<Integer, ResponseFuture> channelBuffer = requestsInFlight.get(channel); if (channelBuffer == null) return; channelBuffer.remove(responseFuture.getOpaque(), responseFuture); } @Override protected void channelRead0(ChannelHandlerContext ctx, Datagram datagram) { if (datagram == null) return; try { processResponse(ctx, datagram); } catch (Exception e) { LOGGER.error("processResponse exception", e); } } @Override public void channelInactive(ChannelHandlerContext ctx) { ConcurrentMap<Integer, ResponseFuture> channelBuffer = requestsInFlight.remove(ctx.channel()); if (channelBuffer == null) return; for (Map.Entry<Integer, ResponseFuture> entry : channelBuffer.entrySet()) { ResponseFuture responseFuture = entry.getValue(); responseFuture.completeByTimeoutClean(); responseFuture.executeCallbackOnlyOnce(); } } private void processResponse(ChannelHandlerContext ctx, Datagram response) { int opaque = response.getHeader().getOpaque(); ConcurrentMap<Integer, ResponseFuture> channelBuffer = requestsInFlight.get(ctx.channel()); if (channelBuffer == null) return; ResponseFuture responseFuture = channelBuffer.remove(opaque); if (responseFuture != null) { responseFuture.completeByReceiveResponse(response); responseFuture.executeCallbackOnlyOnce(); } else { LOGGER.warn("receive response, but not matched any request, maybe response timeout or channel had been closed, {}", RemoteHelper.parseChannelRemoteAddress(ctx.channel())); } } private void processTimeouts() { final List<ResponseFuture> rfList = new LinkedList<>(); Iterator<Map.Entry<Channel, ConcurrentMap<Integer, ResponseFuture>>> channelBuffers = this.requestsInFlight.entrySet().iterator(); while (channelBuffers.hasNext()) { Map.Entry<Channel, ConcurrentMap<Integer, ResponseFuture>> channelBuffer = channelBuffers.next(); Iterator<Map.Entry<Integer, ResponseFuture>> iterator = channelBuffer.getValue().entrySet().iterator(); while (iterator.hasNext()) { Map.Entry<Integer, ResponseFuture> next = iterator.next(); ResponseFuture future = next.getValue(); if (isTimeout(future)) { future.completeByTimeoutClean(); iterator.remove(); rfList.add(future); LOGGER.warn("remove timeout request, " + future); } } } executeCallbacks(rfList); } private boolean isTimeout(ResponseFuture future) { return future.getTimeout() >= 0 && (future.getBeginTime() + future.getTimeout()) <= System.currentTimeMillis(); } private void executeCallbacks(List<ResponseFuture> rfList) { for (ResponseFuture responseFuture : rfList) { try { responseFuture.executeCallbackOnlyOnce(); } catch (Throwable e) { LOGGER.warn("scanResponseTable, operationComplete Exception", e); } } } void shutdown() { timeoutTracker.shutdown(); } }
[ "20832776@qunar.com" ]
20832776@qunar.com
1bd4840496fa5af5f05dd66c2adde5c920ae40c2
56870cd9a73bacf2043f98d3b928c18a228781c9
/server/src/main/java/com/github/teocci/android/chat/utils/JmDNSHelper.java
c2a7f53e752db949f317da35864ce397dba1c290
[ "MIT" ]
permissive
melek14/Android-Chat-Websockets
c334a76b1b791e4c14916c3ceffd434070ff9b65
6b3e29ea1f4b86f8c1c5a593e3d9d0deae1ad8ac
refs/heads/master
2022-02-19T13:53:19.244043
2018-08-20T02:13:16
2018-08-20T02:13:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,238
java
package com.github.teocci.android.chat.utils; import android.content.Context; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.util.Base64; import com.github.teocci.android.chat.interfaces.JmDNSListener; import com.github.teocci.android.chat.net.CreateTask; import com.github.teocci.android.chat.net.RegisterTask; import javax.jmdns.JmDNS; import javax.jmdns.ServiceInfo; import static com.github.teocci.android.chat.utils.Config.DEFAULT_CHAT_PORT; import static com.github.teocci.android.chat.utils.Config.SERVICE_CHANNEL_NAME; import static com.github.teocci.android.chat.utils.Config.SERVICE_NAME_SEPARATOR; import static com.github.teocci.android.chat.utils.Config.SERVICE_TYPE; /** * Created by teocci. * * @author teocci@yandex.com on 2018-Aug-10 */ public class JmDNSHelper implements JmDNSListener { private static String TAG = LogHelper.makeLogTag(JmDNSHelper.class); private Context context; private JmDNS jmDNS; private boolean isServiceRegistered = false; private String operationMode; private String stationName; private String serviceName; // private WifiManager.MulticastLock multicastLock; public JmDNSHelper(Context context) { this.context = context; WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifiManager != null ? wifiManager.getConnectionInfo() : null; if (info == null) return; new CreateTask(info, this).execute(); } @Override public void onInstanceCreated(JmDNS jmDNS) { this.jmDNS = jmDNS; registerService(); } @Override public void onInstanceCreationFailed() { LogHelper.e(TAG, "Error in JmDNS creation."); } @Override public void onServiceRegistered(ServiceInfo serviceInfo) { isServiceRegistered = true; LogHelper.e(TAG, "onServiceRegistered()-> " + serviceInfo.getName()); } @Override public void onServiceRegistrationFailed(ServiceInfo serviceInfo) { clearServiceRegistered(); LogHelper.e(TAG, "onServiceRegistrationFailed()-> " + serviceInfo.getName()); } public void registerService() { LogHelper.e(TAG, "registerService"); unregisterService(); // wifiLock(); // Android NSD implementation is very unstable when services // registers with the same name. // Therefore, we will use "SERVICE_CHANNEL_NAME:STATION_NAME:DEVICE_ID:". serviceName = Base64.encodeToString(SERVICE_CHANNEL_NAME.getBytes(), (Base64.NO_WRAP)) + SERVICE_NAME_SEPARATOR + Base64.encodeToString(stationName.getBytes(), (Base64.NO_WRAP)) + SERVICE_NAME_SEPARATOR; final ServiceInfo serviceInfo = ServiceInfo.create(SERVICE_TYPE, serviceName, DEFAULT_CHAT_PORT, stationName); if (jmDNS != null) { new RegisterTask(jmDNS, serviceInfo, this).execute(); } } public void setStationName(String stationName) { this.stationName = stationName; } public void setOperationMode(String operationMode) { this.operationMode = operationMode; } // private void wifiLock() // { // WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE); // // multicastLock = wifiManager != null ? wifiManager.createMulticastLock(serviceName) : null; // if (multicastLock == null) return; // // multicastLock.setReferenceCounted(true); // multicastLock.acquire(); // } public void unregisterService() { if (jmDNS != null) { jmDNS.unregisterAllServices(); clearServiceRegistered(); LogHelper.e(TAG, "unregisterService()"); } // if (multicastLock != null && multicastLock.isHeld()) { // multicastLock.release(); // } } private void clearServiceRegistered() { serviceName = null; isServiceRegistered = false; } public boolean isServiceRegistered() { return isServiceRegistered; } }
[ "teocci@yandex.com" ]
teocci@yandex.com
250a3619db244fdca62cc132e3a74bc5ea4772a0
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/1/1_864f22eb263ba02f78a42c0897a57f52bbf75980/RSPListener/1_864f22eb263ba02f78a42c0897a57f52bbf75980_RSPListener_s.java
74520bc6fe5812a7b94bbe35e4c167e585745dbe
[]
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
6,649
java
package com.dkabot.RSPassword; import org.bukkit.ChatColor; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.block.Sign; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.SignChangeEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.material.Lever; import org.bukkit.plugin.Plugin; public class RSPListener implements Listener { public RSPassword plugin; public RSPListener (RSPassword plugin) { this.plugin = plugin; plugin.getServer().getPluginManager().registerEvents(this, plugin); } //Begin Player Interaction Listener @EventHandler(ignoreCancelled = true) public void onPlayerInteract(PlayerInteractEvent event) { try { event.getClickedBlock().getState(); } catch(NullPointerException e) { return; } if(event.getClickedBlock().getState() instanceof Sign) { if(event.isCancelled()) return; if(event.getAction() != Action.RIGHT_CLICK_BLOCK) { return; } Persistance interactClass = plugin.getDatabase().find(Persistance.class).where().ieq("location", event.getClickedBlock().getLocation().toString()).findUnique(); if (interactClass == null) { return; } if(plugin.password.containsKey(event.getPlayer()) || event.getPlayer().isOp() || event.getPlayer().hasPermission("rspassword.useany")) { if(event.getPlayer().isOp() || event.getPlayer().hasPermission("rspassword.useany") || plugin.password.get(event.getPlayer().getName()) != null || plugin.password.get(event.getPlayer().getName()) == interactClass.getPassword()) { if(plugin.password.containsKey(event.getPlayer().getName())) plugin.password.remove(event.getPlayer().getName()); org.bukkit.material.Sign signMaterial = (org.bukkit.material.Sign)event.getClickedBlock().getState().getData(); final org.bukkit.block.Sign signBlock = (org.bukkit.block.Sign)event.getClickedBlock().getState(); if (signBlock.getLine(3) == ChatColor.stripColor("ACCEPTED")) return; BlockFace leverDirection = signMaterial.getAttachedFace(); if(event.getClickedBlock().getRelative(leverDirection, 2).getState().getData() instanceof Lever) { final Block leverBlock = (Block) event.getClickedBlock().getRelative(leverDirection, 2); final String obfuPass = plugin.obfupass(interactClass.getPassword()); signBlock.setLine(3, ChatColor.GREEN + "ACCEPTED"); signBlock.update(); plugin.toggleLever(leverBlock); Long timer = Long.decode(Integer.toString((interactClass.getTimer())*20)); plugin.getServer().getScheduler().scheduleSyncDelayedTask((Plugin)plugin, new Runnable() {public void run() {plugin.toggleLever(leverBlock); signBlock.setLine(3, ChatColor.GREEN + obfuPass); signBlock.update(false);}}, timer); return; } else { event.getPlayer().sendMessage(ChatColor.RED + "No lever found!"); } } else { if(plugin.password.containsKey(event.getPlayer().getName())) plugin.password.remove(event.getPlayer().getName()); event.getPlayer().sendMessage(ChatColor.RED + "Incorrect Password"); return; } } else { event.getPlayer().sendMessage(ChatColor.GREEN + "This is a RSPassword sign! Use " + ChatColor.RED + "/rsp <password>" + ChatColor.GREEN + " then click it again!"); } } } //Begin Sign Change Listener @EventHandler(ignoreCancelled = true) public void onSignChange(SignChangeEvent event) { if(event.isCancelled()) return; if(event.getLine(0).equalsIgnoreCase("[RSPassword]") || event.getLine(0).equalsIgnoreCase("[RSP]")) { if(!event.getPlayer().isOp() && !event.getPlayer().hasPermission("rspassword.create")) { event.getPlayer().sendMessage(ChatColor.RED + "You do not have permission to create RSPassword signs."); return; } if(event.getLine(3) == "" || event.getLine(2).contains(" ") || event.getLine(2) == "" || event.getLine(1) == "" || plugin.isParsableToInt(event.getLine(3)) == false) { event.getPlayer().sendMessage(ChatColor.RED + "Invalid RSP sign!"); event.setLine(2, "[Hidden Pass]"); return; } String location = event.getBlock().getLocation().toString(); Persistance newClass = plugin.getDatabase().find(Persistance.class).where().ieq("location", location).findUnique(); if (newClass == null) { newClass = new Persistance(); newClass.setCreatorName(event.getPlayer().getName()); newClass.setLocation(event.getBlock().getLocation().toString()); newClass.setSignNick(event.getLine(1)); newClass.setPassword(event.getLine(2)); newClass.setTimer(Integer.parseInt(event.getLine(3))); plugin.getDatabase().save(newClass); String obfupass = plugin.obfupass(event.getLine(2)); event.setLine(0, ChatColor.LIGHT_PURPLE + event.getLine(1)); event.setLine(1, ""); event.setLine(2, ChatColor.GREEN + "Password:"); event.setLine(3, ChatColor.GREEN + obfupass); return; } else { event.getPlayer().sendMessage(ChatColor.RED + "Unexpected error occurred! Database still shows a previous RSP sign at this location!"); return; } } } //Begin Block Break Listener @EventHandler(ignoreCancelled = true) public void onBlockBreak(BlockBreakEvent event) { if(event.isCancelled()) return; if(event.getBlock().getState() instanceof Sign){ Sign sign = (Sign)event.getBlock().getState(); Persistance breakClass = plugin.getDatabase().find(Persistance.class).where().eq("location", event.getBlock().getLocation().toString()).findUnique(); if (breakClass == null) { return; } else { if (event.getPlayer().getName() == breakClass.getCreatorName() || event.getPlayer().isOp() || event.getPlayer().hasPermission("RSPassword.breakany")) { plugin.getDatabase().delete(breakClass); event.getPlayer().sendMessage(ChatColor.GREEN + "RSPassword sign destroyed!"); return; } else { event.getPlayer().sendMessage(ChatColor.RED + "You do not have permission to break this RSP sign."); event.setCancelled(true); } } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
8b6e11902207e62ab690ffb7616c49890123a92e
6e2d9bafbb2ae718272d8ecba4d4717eb7acbec6
/zoosee_ver1/src/main/java/org/kosta/zoosee/model/board/BoardDAO.java
c6a54a786c743472fc76226cb9cef3f6db4bbcf8
[]
no_license
LeeSeungChan/zoosee_old
d8d1a4195f055f6c3d9a8123586322b92228a14e
acdf8281b519d3a2d5cb602d51b6265d7bc34158
refs/heads/master
2021-01-13T09:10:05.073251
2016-06-24T05:54:20
2016-06-24T05:55:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
646
java
package org.kosta.zoosee.model.board; import java.util.HashMap; import java.util.List; import org.kosta.zoosee.model.vo.PetsitterVO; import org.kosta.zoosee.model.vo.PetsitterboardVO; public interface BoardDAO { List<PetsitterboardVO> getBoardList(String search); void registerPetsitterboard(PetsitterboardVO petsitterboardVO); void updatePetsitterVO(PetsitterVO petsitterVO); List<PetsitterboardVO> getConditionList(HashMap<String, String> map); int totalCount(HashMap<String, String> map); PetsitterboardVO getboardDetail(int petsitterboard_no); PetsitterboardVO getBoardVOByPetsitterId(String id); }
[ "kosta@kosta-HP" ]
kosta@kosta-HP
bc4ff1d8d3b063f285f52e11ceccf7311cc77138
4d6f449339b36b8d4c25d8772212bf6cd339f087
/netreflected/src/Framework/System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089/system/componentmodel/design/ITypeDescriptorFilterServiceImplementation.java
4aaaac3d2749cc781ffae6cce297cb06fef39633
[ "MIT" ]
permissive
lvyitian/JCOReflector
299a64550394db3e663567efc6e1996754f6946e
7e420dca504090b817c2fe208e4649804df1c3e1
refs/heads/master
2022-12-07T21:13:06.208025
2020-08-28T09:49:29
2020-08-28T09:49:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,681
java
/* * MIT License * * Copyright (c) 2020 MASES s.r.l. * * 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. */ /************************************************************************************** * <auto-generated> * This code was generated from a template using JCOReflector * * Manual changes to this file may cause unexpected behavior in your application. * Manual changes to this file will be overwritten if the code is regenerated. * </auto-generated> *************************************************************************************/ package system.componentmodel.design; import org.mases.jcobridge.*; import org.mases.jcobridge.netreflection.*; import java.util.ArrayList; // Import section import system.componentmodel.IComponent; import system.componentmodel.IComponentImplementation; import system.collections.IDictionary; import system.collections.IDictionaryImplementation; /** * The base .NET class managing System.ComponentModel.Design.ITypeDescriptorFilterService, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Extends {@link NetObject}. * <p> * * See: <a href="https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.Design.ITypeDescriptorFilterService" target="_top">https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.Design.ITypeDescriptorFilterService</a> */ public class ITypeDescriptorFilterServiceImplementation extends NetObject implements ITypeDescriptorFilterService { /** * Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 */ public static final String assemblyFullName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; /** * Assembly name: System */ public static final String assemblyShortName = "System"; /** * Qualified class name: System.ComponentModel.Design.ITypeDescriptorFilterService */ public static final String className = "System.ComponentModel.Design.ITypeDescriptorFilterService"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { return bridge.GetType(className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName)); } catch (JCException e) { return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ITypeDescriptorFilterServiceImplementation(Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public Object getJCOInstance() { return classInstance; } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link ITypeDescriptorFilterService}, a cast assert is made to check if types are compatible. */ public static ITypeDescriptorFilterService ToITypeDescriptorFilterService(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new ITypeDescriptorFilterServiceImplementation(from.getJCOInstance()); } // Methods section public boolean FilterAttributes(IComponent component, IDictionary attributes) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Invoke("FilterAttributes", component == null ? null : component.getJCOInstance(), attributes == null ? null : attributes.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean FilterEvents(IComponent component, IDictionary events) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Invoke("FilterEvents", component == null ? null : component.getJCOInstance(), events == null ? null : events.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean FilterProperties(IComponent component, IDictionary properties) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Invoke("FilterProperties", component == null ? null : component.getJCOInstance(), properties == null ? null : properties.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section // Instance Events section }
[ "mario.mastrodicasa@masesgroup.com" ]
mario.mastrodicasa@masesgroup.com
6cea4b6c21bcb49ed711cef79bc7ba61e948d5e9
20064dcec61d3a16ba49a1d93a6d687ad8ce0a10
/seed-boot/src/main/java/com/jadyer/seed/boot/RabbitMQConfiguration.java
f73883f368b6636c425751167fee419bc2b13e58
[ "Apache-2.0" ]
permissive
shangjiwei/seed
643bcda27989cce411028a4893442adda6b5da87
3fd3eaaa1657ef7a07874ab4d6536ea8ceeb514f
refs/heads/master
2020-06-02T08:14:25.399913
2019-06-06T08:24:42
2019-06-06T08:24:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,029
java
package com.jadyer.seed.boot; import com.alibaba.fastjson.JSON; import com.jadyer.seed.comm.constant.SeedConstants; import com.jadyer.seed.comm.util.LogUtil; import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory; import org.springframework.amqp.rabbit.connection.ConnectionFactory; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * RabbitMQ之TopicExchange发送和接收的演示 * ---------------------------------------------------------------------------------------------------- * 解决方法:No method found for class [B * https://jira.spring.io/browse/AMQP-573 * http://www.cnblogs.com/lazio10000/p/5559999.html * 解决方法:ServletRequestAttributes==null * 自定义日志切面时,比如com.jadyer.seed.comm.base.LogAspectOld.java,若用到了ServletRequestAttributes * 则需判断是否为null,因为RabbitMq在发送消息给订阅者时,日志切面所拦截到的ServletRequestAttributes==null * ---------------------------------------------------------------------------------------------------- * 测试时,先在RabbitMQ管理界面做如下准备工作 * 1、Admin菜单下,新建Users:xuanyu * 2、Admin菜单下,新建Virtual Hosts:myvhost,并设置用户xuanyu可以访问myvhost * 3、Exchanges菜单下,新建Exchanges:apply.status,且设置Type=topic,并让它在myvhost下面 * 4、Queues菜单下,新建Queues:myapi.get.apply.status,并让它在myvhost下面 * 5、进入myapi.get.apply.status队列,然后在Bindings处设定消息路由规则 * From exchange=apply.status,Routing key=apply.status.1101.* * 消息是先被发送到交换器(Exchange),然后交换器再根据路由键(RoutingKey)把消息投递到对应的队列(Queue) * 而接收方只需要指定从队列接收消息即可(注:同一消息可以根据不同的Routingkey被投递到多个队列) * ---------------------------------------------------------------------------------------------------- * 关于消息确认机制(acknowledgments) * 1、多个消费者监听同一个queue时,默认的rabbitmq会采用round-robin(轮流)的方式,每条消息只会发给一个消费者 * 2、消费者处理消息后,可以通过两种方式向rabbitmq发送确认(ACK) * 2.1、监听quque时设置no_ack,这样消费者收到消息时,rabbitmq便自动认为该消息已经ack,并将之从queue删除 * 2.2、第二种就是消费者显式的发送basic.ack消息给rabbitmq,示例见本demo * 更详细介绍可参考:https://my.oschina.net/dengfuwei/blog/1595047 * ---------------------------------------------------------------------------------------------------- * Created by 玄玉<https://jadyer.github.io/> on 2017/6/5 15:19. */ @Configuration public class RabbitMQConfiguration { @Bean public RabbitTemplate rabbitTemplate(ConnectionFactory connectionFactory){ RabbitTemplate template = new RabbitTemplate(connectionFactory); template.setMessageConverter(new Jackson2JsonMessageConverter()); template.setEncoding(SeedConstants.DEFAULT_CHARSET); //消息发送失败时,返回到队列中(需要spring.rabbitmq.publisherReturns=true) template.setMandatory(true); //消息成功到达exchange,但没有queue与之绑定时触发的回调(即消息发送不到任何一个队列中) //也可以在生产者发送消息的类上实现org.springframework.amqp.rabbit.core.RabbitTemplate.ConfirmCallback和RabbitTemplate.ReturnCallback两个接口(本例中即为SendController.java) template.setReturnCallback((message, replyCode, replyText, exchange, routingKey) -> LogUtil.getLogger().error("消息发送失败,replyCode={},replyText={},exchange={},routingKey={},消息体=[{}]", replyCode, replyText, exchange, routingKey, JSON.toJSONString(message.getBody()))); //消息成功到达exchange后触发的ack回调(需要spring.rabbitmq.publisherConfirms=true) template.setConfirmCallback((correlationData, ack, cause) -> { if(ack){ LogUtil.getLogger().info("消息发送成功,消息ID={}", correlationData.getId()); }else{ LogUtil.getLogger().error("消息发送失败,消息ID={},cause={}", correlationData.getId(), cause); } }); return template; } @Bean public SimpleRabbitListenerContainerFactory jadyerRabbitListenerContainerFactory(ConnectionFactory connectionFactory){ SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory(); factory.setConnectionFactory(connectionFactory); factory.setMessageConverter(new Jackson2JsonMessageConverter()); return factory; } }
[ "jadyer@yeah.net" ]
jadyer@yeah.net
decfdfd3c3aa52430bd850ff0450ce64df9723d1
add1d65912b52683ea36dd8c180a1146b1509554
/src/main/java/com/springboot/demo/entity/TestPerson.java
7eb1bf69fb2a73263aba77aa41cfb7cffc10f75a
[]
no_license
lixing888/springBootDemo
2031affe267eb54a1089ae422149bf0b04771ec4
1f1ea895941e22b285f4ed8351ebd3533f06ee5d
refs/heads/master
2022-12-05T15:28:49.568788
2021-08-20T14:23:09
2021-08-20T14:23:09
166,974,097
2
1
null
2022-11-16T11:34:43
2019-01-22T10:23:51
Java
UTF-8
Java
false
false
299
java
package com.springboot.demo.entity; import lombok.Data; import org.springframework.stereotype.Component; @Data public class TestPerson { private Integer age; private String name; public TestPerson(Integer age, String name) { this.age = age; this.name = name; } }
[ "85210279@qq.com" ]
85210279@qq.com
8031a215696a51a0e4ba1ff5f6b37052547412f1
7d0f81b6a106a12273691ede231953d6878fa4bc
/schedfox/SchedfoxBackend/src/main/java/rmischeduleserver/mysqlconnectivity/queries/messageBoard/GetEmailMessages.java
0b28d260cdccb7bbf13b9ee504e3523ffb8ca569
[]
no_license
nitinguptaetz/schedfoxnitin
2f178e945462f2823aaac095b6bd98720930c5a1
2f3f54f2e9a93cc7958688b3ca0740e9dbe68867
refs/heads/master
2021-01-14T10:58:22.249402
2015-05-25T23:59:28
2015-05-25T23:59:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
885
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package rmischeduleserver.mysqlconnectivity.queries.messageBoard; import rmischeduleserver.mysqlconnectivity.queries.GeneralQueryFormat; /** * * @author vnguyen */ public class GetEmailMessages extends GeneralQueryFormat { @Override public boolean hasAccess() { return true; } private String userId; private String schema; //so only the overloaded contructor can be called cause its private private GetEmailMessages() { } public GetEmailMessages(String userId, String schema) { this.userId = userId; this.schema = schema; } public String toString() { return "set search_path = '" + this.schema + "';" + "select * from internalemail where reciever_id = " + this.userId + ";"; } }
[ "raj.jsp@gmail.com" ]
raj.jsp@gmail.com
49f90080781e614e29c5b15ff819abb2e160c68f
6fcf58f7a1b669ded9a6df6fb8cdf79dbe2be74c
/src/test/java/demo/AnnotationDemo.java
816c995035cb7ec7e699920cdec38ea75ee63da5
[ "BSD-2-Clause" ]
permissive
K-Meech/imagej-utils
0be654bdfcbc68afcd7f24b87e6f2d60109b4b04
ccb3c15694362fb617f9f097848e637977a0184e
refs/heads/master
2023-08-29T10:51:25.518379
2021-11-03T14:33:52
2021-11-03T14:33:52
296,260,838
0
0
BSD-2-Clause
2020-09-17T08:07:53
2020-09-17T08:07:53
null
UTF-8
Java
false
false
2,672
java
/*- * #%L * Various Java code for ImageJ * %% * Copyright (C) 2018 - 2021 EMBL * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * #L% */ package demo; import de.embl.cba.tables.morpholibj.ExploreMorphoLibJLabelImage; import de.embl.cba.tables.tablerow.TableRowImageSegment; import de.embl.cba.tables.view.combined.SegmentsTableBdvAnd3dViews; import ij.IJ; import ij.ImagePlus; import net.imagej.ImageJ; import tests.Test3DView; import java.util.List; public class AnnotationDemo { public static void main( String[] args ) { final ImageJ ij = new ImageJ(); ij.ui().showUI(); final ImagePlus intensities = IJ.openImage( Test3DView.class.getResource( "../test-data/3d-image.zip" ).getFile() ); final ImagePlus labels = IJ.openImage( Test3DView.class.getResource( "../test-data/3d-image-lbl.zip" ).getFile() ); IJ.open( Test3DView.class.getResource( "../test-data/3d-image-lbl-morpho.csv" ).getFile() ); final ExploreMorphoLibJLabelImage explore = new ExploreMorphoLibJLabelImage( intensities, labels, "3d-image-lbl-morpho.csv" ); final SegmentsTableBdvAnd3dViews views = explore.getTableBdvAnd3dViews(); //BdvUtils.centerBdvWindowLocation( views.getSegmentsBdvView().getBdv() ); views.getTableRowsTableView().addColumn( "Annotation", new String[]{"None", "A", "B" } ); views.getTableRowsTableView().continueAnnotation( "Annotation" ); } }
[ "christian.tischer@embl.de" ]
christian.tischer@embl.de
7fe29c0a126673036d14afd2ebe2b79f7f4a518a
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
/sources/com/facebook/ads/internal/p083j/C1740a.java
f8339fc662974edaae2a67236f7f70c7cdcac8e3
[]
no_license
dovanduy/MegaBoicotApk
c0852af0773be1b272ec907113e8f088addb0f0c
56890cb9f7afac196bd1fec2d1326f2cddda37a3
refs/heads/master
2020-07-02T04:28:02.199907
2019-08-08T20:44:49
2019-08-08T20:44:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
330
java
package com.facebook.ads.internal.p083j; /* renamed from: com.facebook.ads.internal.j.a */ public abstract class C1740a<T> { /* renamed from: a */ public void mo7526a() { } /* renamed from: a */ public void mo7527a(int i, String str) { } /* renamed from: a */ public void mo7528a(T t) { } }
[ "pablo.valle.b@gmail.com" ]
pablo.valle.b@gmail.com
2ed124b22e7fb917b2200327fae86018bce2d316
144098064ba7c7ec51e7d4c7dbf7abbcb4526b69
/src/com/aisino2/basicsystem/domain/Bjgz.java
b43515007650002c4176d84900c12a809f991189
[]
no_license
radtek/techsupport
cd10fdef255a21d7ce909e314fe46f8274565705
d11b355c59dc5835e6d249c5f07553629f85afad
refs/heads/master
2020-05-24T15:59:02.118723
2015-06-30T02:48:36
2015-06-30T02:48:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,978
java
package com.aisino2.basicsystem.domain; public class Bjgz { /** @param 报警规则(t_bjgz) */ /** @ --报警规则ID--bjgzid--Integer--10-- */ private Integer bjgzid; /** @ --业务表名--ywbm--String--100-- */ private String ywbm; /** @ --业务表字段名--ywbzdm--String--60-- */ private String ywbzdm; /** @ --比对表名--bdbm--String--100-- */ private String bdbm; /** @ --比对表字段名--bdbzdm--String--60-- */ private String bdbzdm; /** @ --比对类型代码--bdlx--String--2-- */ private String bdlxdm; /** @ --比对类型--bdlx--String--20-- */ private String bdlx; /** @ --是否有效--sfyx--String--2-- */ private String sfyx; /** @ --发布策略--fbcl--String--300-- */ private String fbcl; /** @ --发布方式--fbfs--String--2-- */ private String fbfs; /** @ --特行单位字段--txdwzd--String--60-- */ private String txdwzd; /** @ --管辖单位字段--gxdwzd--String--60-- */ private String gxdwzd; /** @ --报警级别--bjjb--String--2-- */ private String bjjb; /** @ --报警方式--bjfs--String--60-- */ private String bjfs; /** @ --报警类型代码--bjlxdm--String--4-- */ private String bjlxdm; /** @ --报警类型--bjlx--String--60-- */ private String bjlx; /** @ --行业类别代码--hylbdm--String--2-- */ private String hylbdm; /** @ --行业类别--hylb--String--100-- */ private String hylb; /** 分页排序 */ private String pageSort; /** @ 报警规则ID(bjgzid) */ public Integer getBjgzid() { return bjgzid; } public void setBjgzid(Integer bjgzid) { this.bjgzid = bjgzid; } /** @ 业务表名(ywbm) */ public String getYwbm() { return ywbm; } public void setYwbm(String ywbm) { this.ywbm = ywbm; } /** @ 比对表名(bdbm) */ public String getBdbm() { return bdbm; } public void setBdbm(String bdbm) { this.bdbm = bdbm; } /** @ 比对类型(bdlx) */ public String getBdlx() { return bdlx; } public void setBdlx(String bdlx) { this.bdlx = bdlx; } /** @ 是否有效(sfyx) */ public String getSfyx() { return sfyx; } public void setSfyx(String sfyx) { this.sfyx = sfyx; } /** @ 发布策略(fbcl) */ public String getFbcl() { return fbcl; } public void setFbcl(String fbcl) { this.fbcl = fbcl; } /** @ 发布方式(fbfs) */ public String getFbfs() { return fbfs; } public void setFbfs(String fbfs) { this.fbfs = fbfs; } /** @ 特行单位字段(txdwzd) */ public String getTxdwzd() { return txdwzd; } public void setTxdwzd(String txdwzd) { this.txdwzd = txdwzd; } /** @ 管辖单位字段(gxdwzd) */ public String getGxdwzd() { return gxdwzd; } public void setGxdwzd(String gxdwzd) { this.gxdwzd = gxdwzd; } /** @ 报警级别(bjjb) */ public String getBjjb() { return bjjb; } public void setBjjb(String bjjb) { this.bjjb = bjjb; } /** @ 报警方式(bjfs) */ public String getBjfs() { return bjfs; } public void setBjfs(String bjfs) { this.bjfs = bjfs; } /** @ 报警类型(bjlx) */ public String getBjlx() { return bjlx; } public void setBjlx(String bjlx) { this.bjlx = bjlx; } /** 分页排序 */ public String getPageSort() { return pageSort; } public void setPageSort(String pageSort) { this.pageSort = pageSort; } public String getHylbdm() { return hylbdm; } public void setHylbdm(String hylbdm) { this.hylbdm = hylbdm; } public String getHylb() { return hylb; } public void setHylb(String hylb) { this.hylb = hylb; } public String getYwbzdm() { return ywbzdm; } public void setYwbzdm(String ywbzdm) { this.ywbzdm = ywbzdm; } public String getBdbzdm() { return bdbzdm; } public void setBdbzdm(String bdbzdm) { this.bdbzdm = bdbzdm; } public String getBdlxdm() { return bdlxdm; } public void setBdlxdm(String bdlxdm) { this.bdlxdm = bdlxdm; } public String getBjlxdm() { return bjlxdm; } public void setBjlxdm(String bjlxdm) { this.bjlxdm = bjlxdm; } }
[ "firefoxmmx@gmail.com" ]
firefoxmmx@gmail.com
aa746914e9907593dfcfe323dcc908397a6ef59f
ce8e8f0255db724ba9d6a901e45efd10f8821b44
/io.github.u2ware.crawling/src/test/java/io/github/u2ware/crawling/core/CrawlerWithJsoup.java
5d4dbf19857aee9daad77297e0a617c4a0257b32
[ "Apache-2.0" ]
permissive
u2waremanager/u2ware-incubator
51ffc7c44fe2876c53c768d0b0875cb5bf5df473
353d97ac2ba5c874222051a5d3966237675b28ce
refs/heads/master
2022-09-20T14:22:25.637944
2021-02-26T04:55:44
2021-02-26T04:55:44
177,071,627
1
0
Apache-2.0
2022-09-01T23:22:45
2019-03-22T04:32:17
Java
UTF-8
Java
false
false
1,201
java
package io.github.u2ware.crawling.core; import java.net.URL; import java.util.Collection; import java.util.concurrent.atomic.AtomicInteger; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import io.github.u2ware.crawling.core.Content.Type; public class CrawlerWithJsoup extends Crawler<Document>{ public CrawlerWithJsoup(String seed, Parser<Document> parser) { super(seed, parser); } @Override protected void crawling(Parser<Document> parser, Collection<Content> contents) throws Exception { log.info("[start] "+seed); Document source = Jsoup.parse(new URL(seed), 3000); parser.onStart(contents, seed, source); AtomicInteger count = new AtomicInteger(0); for(Content content : contents) { Type type = content.getType(); String anchor = content.getContent().toString(); if(Type.SEED.equals(type) && ! seed.equals(anchor)) { log.info("[visit #"+count.addAndGet(1)+"] "+anchor); Document anchorSource = Jsoup.parse(new URL(anchor), 3000); parser.onVisit(contents, anchor, anchorSource); } } log.info("[finish] "+seed); parser.onFinish(contents, seed); } }
[ "u2waremanager@gmail.com" ]
u2waremanager@gmail.com
19e2c00d4a72d87f6717552dbc121949c4d17f0e
9ff82631f5d5c5fa5b33eb17f835b77c5cb0ce9a
/src/academy/everyonecodes/java/week5/set1/exercise1/Person.java
e44043ddd6aa7a0ca3216bec8044f0f15c74874e
[]
no_license
baloghrebecca/java-module
613b8f129948a2164ed4a7007d004fc2dd3cb9e8
af660a7758ae1245ff80ba858d189112f950178d
refs/heads/master
2022-04-09T09:04:47.263810
2020-02-27T14:34:52
2020-02-27T14:34:52
227,079,055
0
0
null
null
null
null
UTF-8
Java
false
false
339
java
package academy.everyonecodes.java.week5.set1.exercise1; public class Person { private String name; private int age; public Person(String name, int age) { this.name = name; this.age = age; } public String getName() { return name; } public int getAge() { return age; } }
[ "baloghrebecca2@gmail.com" ]
baloghrebecca2@gmail.com
25222bba5300abe02397f7015d3d173499afb4f9
e617f4ae796f16eeb4705200935a90dfd31955b2
/com/fasterxml/jackson/databind/jsontype/impl/ClassNameIdResolver.java
ea28e294233681b783bbbf05d9c8d92986f812b2
[]
no_license
mascot6699/Go-Jek.Android
98dfb73b1c52a7c2100c7cf8baebc0a95d5d511d
051649d0622bcdc7872cb962a0e1c4f6c0f2a113
refs/heads/master
2021-01-20T00:24:46.431341
2016-01-11T05:59:34
2016-01-11T05:59:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,390
java
package com.fasterxml.jackson.databind.jsontype.impl; import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; import com.fasterxml.jackson.databind.DatabindContext; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.type.CollectionType; import com.fasterxml.jackson.databind.type.MapType; import com.fasterxml.jackson.databind.type.TypeFactory; import com.fasterxml.jackson.databind.util.ClassUtil; import java.util.EnumMap; import java.util.EnumSet; public class ClassNameIdResolver extends TypeIdResolverBase { public ClassNameIdResolver(JavaType paramJavaType, TypeFactory paramTypeFactory) { super(paramJavaType, paramTypeFactory); } protected final String _idFrom(Object paramObject, Class<?> paramClass) { Object localObject = paramClass; if (Enum.class.isAssignableFrom(paramClass)) { localObject = paramClass; if (!paramClass.isEnum()) { localObject = paramClass.getSuperclass(); } } paramClass = ((Class)localObject).getName(); if (paramClass.startsWith("java.util")) { if ((paramObject instanceof EnumSet)) { paramObject = ClassUtil.findEnumType((EnumSet)paramObject); paramObject = TypeFactory.defaultInstance().constructCollectionType(EnumSet.class, (Class)paramObject).toCanonical(); } } do { do { do { do { do { return (String)paramObject; if ((paramObject instanceof EnumMap)) { paramObject = ClassUtil.findEnumType((EnumMap)paramObject); return TypeFactory.defaultInstance().constructMapType(EnumMap.class, (Class)paramObject, Object.class).toCanonical(); } localObject = paramClass.substring(9); if (((String)localObject).startsWith(".Arrays$")) { break; } paramObject = paramClass; } while (!((String)localObject).startsWith(".Collections$")); paramObject = paramClass; } while (paramClass.indexOf("List") < 0); return "java.util.ArrayList"; paramObject = paramClass; } while (paramClass.indexOf('$') < 0); paramObject = paramClass; } while (ClassUtil.getOuterClass((Class)localObject) == null); paramObject = paramClass; } while (ClassUtil.getOuterClass(this._baseType.getRawClass()) != null); return this._baseType.getRawClass().getName(); } protected JavaType _typeFromId(String paramString, TypeFactory paramTypeFactory) { if (paramString.indexOf('<') > 0) { return paramTypeFactory.constructFromCanonical(paramString); } try { Class localClass = paramTypeFactory.findClass(paramString); paramTypeFactory = paramTypeFactory.constructSpecializedType(this._baseType, localClass); return paramTypeFactory; } catch (ClassNotFoundException paramTypeFactory) { throw new IllegalArgumentException("Invalid type id '" + paramString + "' (for id type 'Id.class'): no such class found"); } catch (Exception paramTypeFactory) { throw new IllegalArgumentException("Invalid type id '" + paramString + "' (for id type 'Id.class'): " + paramTypeFactory.getMessage(), paramTypeFactory); } } public String getDescForKnownTypeIds() { return "class name used as type id"; } public JsonTypeInfo.Id getMechanism() { return JsonTypeInfo.Id.CLASS; } public String idFromValue(Object paramObject) { return _idFrom(paramObject, paramObject.getClass()); } public String idFromValueAndType(Object paramObject, Class<?> paramClass) { return _idFrom(paramObject, paramClass); } public void registerSubtype(Class<?> paramClass, String paramString) {} public JavaType typeFromId(DatabindContext paramDatabindContext, String paramString) { return _typeFromId(paramString, paramDatabindContext.getTypeFactory()); } @Deprecated public JavaType typeFromId(String paramString) { return _typeFromId(paramString, this._typeFactory); } } /* Location: /Users/michael/Downloads/dex2jar-2.0/GO_JEK.jar!/com/fasterxml/jackson/databind/jsontype/impl/ClassNameIdResolver.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "michael@MJSTONE-MACBOOK.local" ]
michael@MJSTONE-MACBOOK.local
bcfd469d8ed68475f30903d368ace977ce62c022
4352bcd896d4c4723006080b79286f5c0d2458a8
/src/main/java/org/obsidiantoaster/generator/ui/starter/PerformExtraTasksStep.java
21085c909b1bf106592dbcf2461eb01c4381e4f4
[ "Apache-2.0" ]
permissive
obsidian-tester/obsidian-addon
d45858d620193177aa502992b0a42c3274ec8f0c
0b1beefe0f905018e649a1a98c55281142e4f949
refs/heads/master
2021-01-11T19:26:20.834935
2017-01-30T17:46:22
2017-01-30T17:46:22
79,224,962
0
1
null
2017-01-17T12:22:33
2017-01-17T12:22:33
null
UTF-8
Java
false
false
3,450
java
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * Licensed under the Eclipse Public License version 1.0, available at * http://www.eclipse.org/legal/epl-v10.html */ package org.obsidiantoaster.generator.ui.starter; import java.io.StringReader; import java.net.URL; import java.util.Map; import javax.inject.Inject; import org.apache.maven.model.Build; import org.apache.maven.model.Model; import org.apache.maven.model.Plugin; import org.apache.maven.model.io.xpp3.MavenXpp3Reader; import org.jboss.forge.addon.maven.projects.MavenFacet; import org.jboss.forge.addon.projects.Project; import org.jboss.forge.addon.resource.DirectoryResource; import org.jboss.forge.addon.resource.FileResource; import org.jboss.forge.addon.resource.Resource; import org.jboss.forge.addon.resource.ResourceFactory; import org.jboss.forge.addon.templates.Template; import org.jboss.forge.addon.templates.TemplateFactory; import org.jboss.forge.addon.templates.freemarker.FreemarkerTemplate; import org.jboss.forge.addon.ui.context.UIContext; import org.jboss.forge.addon.ui.context.UIExecutionContext; import org.jboss.forge.addon.ui.result.Result; import org.jboss.forge.addon.ui.result.Results; import org.jboss.forge.addon.ui.wizard.UIWizardStep; /** * * @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> */ public class PerformExtraTasksStep implements UIWizardStep { @Inject TemplateFactory templateFactory; @Inject ResourceFactory resourceFactory; @Override public Result execute(UIExecutionContext context) throws Exception { UIContext uiContext = context.getUIContext(); Map<Object, Object> attributeMap = uiContext.getAttributeMap(); Project project = (Project) attributeMap.get(Project.class); DirectoryResource root = project.getRoot().reify(DirectoryResource.class); // Add Fabric8 plugin String pluginPomXml = getTemplateFor("plugin-template.xml.ftl").process(attributeMap); Model pluginModel = new MavenXpp3Reader().read(new StringReader(pluginPomXml)); Plugin fabric8MavenPlugin = pluginModel.getBuild().getPlugins().get(0); MavenFacet mavenFacet = project.getFacet(MavenFacet.class); Model model = mavenFacet.getModel(); Build build = model.getBuild(); if (build == null) { build = new Build(); model.setBuild(build); } build.addPlugin(fabric8MavenPlugin); mavenFacet.setModel(model); // Create README.md FileResource<?> child = root.getChild("README.md").reify(FileResource.class); child.setContents(getTemplateFor("README.md.ftl").process(attributeMap)); // Create src/main/fabric8 dir DirectoryResource fabric8Dir = root.getChildDirectory("src/main/fabric8"); fabric8Dir.mkdirs(); // Create route.yml FileResource<?> routeYml = fabric8Dir.getChild("route.yml").reify(FileResource.class); routeYml.setContents(getTemplateFor("route.yml.ftl").process(attributeMap)); // Create svc.yml FileResource<?> svcYml = fabric8Dir.getChild("svc.yml").reify(FileResource.class); svcYml.setContents(getTemplateFor("svc.yml.ftl").process(attributeMap)); return Results.success(); } private Template getTemplateFor(String name) { Resource<URL> resource = resourceFactory.create(getClass().getResource(name)); return templateFactory.create(resource, FreemarkerTemplate.class); } }
[ "gegastaldi@gmail.com" ]
gegastaldi@gmail.com
0d4d74a618c148d78efba954afef7ea47d89d9c5
111209d369157dbcca1d01056623c27f3cecc9d7
/CohesiveAppServer/CohesiveWeb/src/java/com/ibd/cohesive/web/Gateway/Institute/InstituteResource.java
f1615b02d64cad2039c9367c172c97e241e2a22e
[]
no_license
IBD-Technologies/NewGenEducationApp
d3c1768316c091ade0bda050fdfc1dfe66aa5070
7e27094a635782ebd8c0a940b614485c52fe63d3
refs/heads/master
2021-05-19T11:30:04.032333
2020-06-12T17:35:22
2020-06-12T17:35:22
251,661,845
0
0
null
null
null
null
UTF-8
Java
false
false
4,868
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.ibd.cohesive.web.Gateway.Institute; import com.ibd.cohesive.util.exceptions.BSProcessingException; import com.ibd.cohesive.util.exceptions.BSValidationException; import com.ibd.cohesive.util.exceptions.DBProcessingException; import com.ibd.cohesive.util.exceptions.DBValidationException; import com.ibd.cohesive.util.session.CohesiveSession; import com.ibd.cohesive.web.Gateway.util.CohesiveBeans; import com.ibd.cohesive.web.Gateway.util.WebDI.DependencyInjection; import com.ibd.cohesive.web.Gateway.util.WebUtility; import javax.ejb.EJBException; import javax.json.JsonObject; import javax.naming.NamingException; import javax.ws.rs.Produces; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.DELETE; import javax.ws.rs.core.MediaType; /** * REST Web Service * * @author DELL */ public class InstituteResource { private String ServiceName; private CohesiveSession session; private DependencyInjection inject; private WebUtility webutil; /** * Creates a new instance of InstituteResource */ private InstituteResource(String ServiceName) throws NamingException { this.ServiceName = ServiceName; session = new CohesiveSession("gateway.properties"); inject = new DependencyInjection(); webutil = new WebUtility(); } /** * Get instance of the InstituteResource */ public static InstituteResource getInstance(String ServiceName) throws NamingException { // The user may use some kind of persistence mechanism // to store and restore instances of InstituteResource class. return new InstituteResource(ServiceName); } /** * Retrieves representation of an instance of * com.ibd.cohesive.web.Gateway.Institute.InstituteResource * * @return an instance of javax.json.JsonObject */ @GET @Produces(MediaType.APPLICATION_JSON) public JsonObject getJson() { //TODO return proper representation object throw new UnsupportedOperationException(); } /** * PUT method for updating or creating an instance of InstituteResource * * @param content representation for the resource */ @PUT @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public JsonObject InstituteGateway(JsonObject content) { JsonObject response = null; try { session.createGatewaySessionObject(); dbg("Inside Institute Gateway Session ID:" + session.getI_session_identifier()); dbg("Request: " + content.toString()); boolean comeOutLoop = false; int iteratonCount = 0; while (comeOutLoop == false) { try { iteratonCount = iteratonCount + 1; CohesiveBeans bean = inject.getCohesiveBean(session); if (session.getCohesiveproperties().getProperty("REMOTEEJB").equals("YES")) { response = bean.invokeBean(this.ServiceName, content, inject, webutil, session); } else { response = bean.invokeBean(this.ServiceName, content); } dbg("Response: " + response); comeOutLoop = true; } catch (EJBException ex) { if (iteratonCount <= 10) { inject = null; Thread.sleep(3000); inject = new DependencyInjection(); } else { throw ex; } } // catch (Exception ex) { // // if (iteratonCount <= 10) { // inject = null; // Thread.sleep(3000); // inject = new DependencyInjection(); // // } else { // throw ex; // } // } } } catch (NamingException ex) { dbg(ex); throw new RuntimeException(ex); } catch (Exception e) { dbg(e); throw new RuntimeException(e); } finally { session.clearSessionObject(); } return response; } /** * DELETE method for resource InstituteResource */ @DELETE public void delete() { throw new UnsupportedOperationException(); } private void dbg(String p_value) { session.getDebug().dbg(p_value); } private void dbg(Exception ex) { session.getDebug().exceptionDbg(ex); } }
[ "60004888+RajkumarIBD@users.noreply.github.com" ]
60004888+RajkumarIBD@users.noreply.github.com
5a7dbda2a98b05acd2c20f117af6f70b902411bf
7afff45a558888b4c8e6748b5828fdccba46a13c
/mpple-sample/src/main/java/ml/wonwoo/sample/domain/Order.java
fd810f9be18d83ff49285cc06c8b3feb80e408a4
[]
no_license
wonwoo/mpple
ffa8328879e3e3b27324717da6a25b8bf0f39440
a532d6738292d5c4ecdb579f4ee705063669aebd
refs/heads/master
2021-06-07T07:14:41.726749
2019-09-17T12:39:53
2019-09-17T12:39:53
148,483,535
1
1
null
2020-10-12T22:55:21
2018-09-12T13:19:36
Java
UTF-8
Java
false
false
444
java
package ml.wonwoo.sample.domain; import java.util.Date; import java.util.List; public class Order { private Date date; private List<OrderItem> items; public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public List<OrderItem> getItems() { return items; } public void setItems(List<OrderItem> items) { this.items = items; } }
[ "aoruqjfu@gmail.com" ]
aoruqjfu@gmail.com
78d4358d80bff042b4db6cbdc3af6879c683a4fb
7c0dc5cd25ccc19e836416e5fc22cdfec56de7e2
/csolver-java-core/csolver/cp/model/managers/constraints/set/SetValuePrecedeManager.java
73c14a6bce7196aa16018cf6d6c2eb029c932ff0
[]
no_license
EmilioDiez/csolver
3b453833566e36151014a36ab914548fe4569dc1
44202f7b3c5bcf3d244f0fd617261b63aa411a68
refs/heads/master
2020-12-29T03:30:55.881640
2018-11-18T03:04:14
2018-11-18T03:04:14
68,049,900
0
0
null
null
null
null
UTF-8
Java
false
false
2,326
java
/** * Copyright (c) 1999-2011, Ecole des Mines de Nantes * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Ecole des Mines de Nantes nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package csolver.cp.model.managers.constraints.set; import csolver.cp.model.managers.SetConstraintManager; import csolver.cp.solver.constraints.set.SetValuePrecede; import csolver.kernel.model.variables.set.SetVariable; import csolver.kernel.solver.Solver; import csolver.kernel.solver.constraints.SConstraint; import java.util.List; public final class SetValuePrecedeManager extends SetConstraintManager { @Override public SConstraint makeConstraint(Solver solver, SetVariable[] setVariables, Object o, List<String> strings) { int[] values = (int[]) o; return new SetValuePrecede(values[0], values[1], solver.getVar(setVariables), solver.getEnvironment()); } }
[ "emilio@mail.nitoku.com" ]
emilio@mail.nitoku.com
cd25924591201bf0896575e9c6a557556c92f352
9ae1c9005802b9415736d0c34c02daffdcf17d2d
/mall-member-service/src/main/java/com/yx/mall/MallMemberServiceApplication.java
195af20354e2d8908be40e801856364cfdbb93e8
[]
no_license
yaoxin003/mall
5c753e1e22b34dd4a461b883c20f50e79cf7ec20
fbc5d815c35efe5aa1fd35062ee381ff4c0e5057
refs/heads/master
2022-09-20T16:47:57.200769
2020-04-03T07:17:32
2020-04-03T07:17:32
218,689,053
0
0
null
null
null
null
UTF-8
Java
false
false
514
java
package com.yx.mall; import org.apache.dubbo.config.spring.context.annotation.EnableDubbo; import tk.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @MapperScan(basePackages = "com.yx.mall.member.mapper") @EnableDubbo public class MallMemberServiceApplication { public static void main(String[] args) { SpringApplication.run(MallMemberServiceApplication.class, args); } }
[ "yaoxin003@aliyun.com" ]
yaoxin003@aliyun.com
b49754c69652e320a4ba65d371e2b07231f10853
96670d2b28a3fb75d2f8258f31fc23d370af8a03
/reverse_engineered/sources/com/beastbikes/android/ble/biz/p097b/C1618b.java
7bf721db411bfb983f2a5d03a15c902cb1a4639e
[]
no_license
P79N6A/speedx
81a25b63e4f98948e7de2e4254390cab5612dcbd
800b6158c7494b03f5c477a8cf2234139889578b
refs/heads/master
2020-05-30T18:43:52.613448
2019-06-02T07:57:10
2019-06-02T08:15:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
327
java
package com.beastbikes.android.ble.biz.p097b; import com.beastbikes.android.ble.protocol.v1.AGpsInfoCharacteristic; /* compiled from: OnAGPSListener */ /* renamed from: com.beastbikes.android.ble.biz.b.b */ public interface C1618b { /* renamed from: a */ void m8783a(AGpsInfoCharacteristic aGpsInfoCharacteristic); }
[ "Gith1974" ]
Gith1974
34284c3416b3e8f55804b864fc46b7306cfe98b1
022980735384919a0e9084f57ea2f495b10c0d12
/src/ext-lltnxp/ext-impl/src/com/sgs/portlet/sovanbannoibo/service/impl/LoaiPhongVanBanNoiBoServiceImpl.java
e8bee1cf96ff25ae970a36c01741a71fc84e40e2
[]
no_license
thaond/nsscttdt
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
ae7dacc924efe578ce655ddfc455d10c953abbac
refs/heads/master
2021-01-10T03:00:24.086974
2011-02-19T09:18:34
2011-02-19T09:18:34
50,081,202
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package com.sgs.portlet.sovanbannoibo.service.impl; import com.sgs.portlet.sovanbannoibo.service.base.LoaiPhongVanBanNoiBoServiceBaseImpl; public class LoaiPhongVanBanNoiBoServiceImpl extends LoaiPhongVanBanNoiBoServiceBaseImpl { }
[ "nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e" ]
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
da26f450577fd6565e6e8ae62316f6e345229d66
d4c3659ac9ddb5e3c0010b326f3bcc7e33ce0bed
/ren-regression/src/main/java/com/exigen/modules/claim/common/metadata/AdditionalPartiesWitnessTabMetaData.java
31139256ea72eed839931e3e370b0243ee2065e9
[]
no_license
NandiniDR29/regression-test
cbfdae60e8b462cf32485afb3df0d9504200d0e1
c4acbc3488195217f9d6a780130d2e5dfe01d6e5
refs/heads/master
2023-07-03T14:35:40.673146
2021-08-11T07:03:13
2021-08-11T07:03:13
369,527,619
0
0
null
null
null
null
UTF-8
Java
false
false
4,485
java
/* * Copyright © 2019 EIS Group and/or one of its affiliates. All rights reserved. Unpublished work under U.S. copyright laws. * CONFIDENTIAL AND TRADE SECRET INFORMATION. No portion of this work may be copied, distributed, modified, or incorporated into any other media without EIS Group prior written consent. */ package com.exigen.modules.claim.common.metadata; import com.exigen.istf.webdriver.controls.ComboBox; import com.exigen.istf.webdriver.controls.RadioGroup; import com.exigen.istf.webdriver.controls.TextBox; import com.exigen.istf.webdriver.controls.composite.assets.metadata.AssetDescriptor; import com.exigen.istf.webdriver.controls.composite.assets.metadata.MetaData; public class AdditionalPartiesWitnessTabMetaData extends MetaData { public static final AssetDescriptor<ComboBox> PARTY_NAME = declare("Party Name", ComboBox.class); public static final AssetDescriptor<ComboBox> RELATIONSHIP_TO_INSURED = declare("Relationship To Insured", ComboBox.class); public static final AssetDescriptor<TextBox> DESCRIPTION_OF_RELATIONSHIP_TO_INSURED = declare("Description of Relationship to Insured", TextBox.class); public static final AssetDescriptor<ComboBox> RELATIONSHIP_TO_DECEDENT_INJURY_PARTY = declare("Relationship To Decedent/Injury Party", ComboBox.class); public static final AssetDescriptor<TextBox> DESCRIPTION_OF_RELATIONSHIP_TO_DECEDENT_INJURY_PARTY = declare("Description of Relationship to Decedent/Injury Party", TextBox.class); public static final AssetDescriptor<ComboBox> PREFIX = declare("Prefix", ComboBox.class); public static final AssetDescriptor<TextBox> FIRST_NAME = declare("First Name", TextBox.class); public static final AssetDescriptor<TextBox> MIDDLE_NAME = declare("Middle Name", TextBox.class); public static final AssetDescriptor<TextBox> LAST_NAME = declare("Last Name", TextBox.class); public static final AssetDescriptor<ComboBox> SUFFIX = declare("Suffix", ComboBox.class); public static final AssetDescriptor<ComboBox> PHONE_TYPE = declare("Phone Type", ComboBox.class); public static final AssetDescriptor<TextBox> PHONE = declare("Phone", TextBox.class); public static final AssetDescriptor<ComboBox> PHONE_TYPE2 = declare("Phone Type2", ComboBox.class); public static final AssetDescriptor<TextBox> PHONE2 = declare("Phone2", TextBox.class); public static final AssetDescriptor<ComboBox> PHONE_TYPE3 = declare("Phone Type3", ComboBox.class); public static final AssetDescriptor<TextBox> PHONE3 = declare("Phone3", TextBox.class); public static final AssetDescriptor<ComboBox> PHONE_TYPE4 = declare("Phone Type4", ComboBox.class); public static final AssetDescriptor<TextBox> PHONE4 = declare("Phone4", TextBox.class); public static final AssetDescriptor<ComboBox> PHONE_TYPE5 = declare("Phone Type5", ComboBox.class); public static final AssetDescriptor<TextBox> PHONE5 = declare("Phone5", TextBox.class); public static final AssetDescriptor<TextBox> EMAIL = declare("Email", TextBox.class); public static final AssetDescriptor<ComboBox> CONTACT_PREFERENCE = declare("Contact Preference", ComboBox.class); public static final AssetDescriptor<TextBox> LOCATION_DURING_LOSS_EVENT = declare("Location During Loss Event", TextBox.class); public static final AssetDescriptor<RadioGroup> STATEMENT_OBTAINED = declare("Statement Obtained", RadioGroup.class); public static final AssetDescriptor<TextBox> PARTY_S_PERSPECTIVE = declare("Party's Perspective", TextBox.class); public static final AssetDescriptor<ComboBox> ADDRESS_TYPE = declare("Address Type", ComboBox.class); public static final AssetDescriptor<ComboBox> COUNTRY = declare("Country", ComboBox.class); public static final AssetDescriptor<TextBox> ZIP_POSTAL_CODE = declare("Zip / Postal Code", TextBox.class); public static final AssetDescriptor<TextBox> ADDRESS_LINE_1 = declare("Address Line 1", TextBox.class); public static final AssetDescriptor<TextBox> ADDRESS_LINE_2 = declare("Address Line 2", TextBox.class); public static final AssetDescriptor<TextBox> ADDRESS_LINE_3 = declare("Address Line 3", TextBox.class); public static final AssetDescriptor<TextBox> CITY = declare("City", TextBox.class); public static final AssetDescriptor<ComboBox> STATE_PROVINCE = declare("State / Province", ComboBox.class); public static final AssetDescriptor<TextBox> COUNTY = declare("County", TextBox.class); }
[ "Nramachandra@previseit.com" ]
Nramachandra@previseit.com
0e2e252784d29cad4fbb31c8449f0461c580e343
cd15447d38629d1d4e6fc685f324acd0df8e2a3a
/introtdd/src/main/java/introtdd/ch06outsidein/SalesAnalyser.java
aa4832ba00fbca7b2a731deb03dba30360695e9d
[]
no_license
dpopkov/learn
f17a8fd578b45d7057f643c131334b2e39846da1
2f811fb37415cbd5a051bfe569dcace83330511a
refs/heads/master
2022-12-07T11:17:50.492526
2021-02-23T16:58:31
2021-02-23T16:58:31
117,227,906
1
0
null
2022-11-16T12:22:17
2018-01-12T10:29:38
Java
UTF-8
Java
false
false
180
java
package introtdd.ch06outsidein; public class SalesAnalyser { private SalesRepository repo; public SalesAnalyser(SalesRepository repo) { this.repo = repo; } }
[ "pkvdenis@gmail.com" ]
pkvdenis@gmail.com
a89b278f89ace52f7dad52621637bcb96f830a92
2694879fd793bbb48cc909f545d79c74c96998aa
/src/main/java/com/zipcodewilmington/scientificcalculator/operations/Squared.java
38e0acdf7b9196fb97f46fbb4913d557e5628691
[]
no_license
Git-Leon/Maven.ScientificCalculator
812314ba6ecd7da8659dba8420dd011bdcad3ecf
88017eb438499bf9b17a4ad87eab30ef735aab5b
refs/heads/master
2021-07-15T17:44:28.943846
2019-10-21T00:55:31
2019-10-21T00:55:31
216,440,958
0
0
null
2020-10-13T16:51:49
2019-10-20T23:24:42
Java
UTF-8
Java
false
false
337
java
package com.zipcodewilmington.scientificcalculator.operations; import com.zipcodewilmington.scientificcalculator.Console; public class Squared{ public Double squared(double value1) { return value1 * value1; } public void display(Double value) { Console.println(value + " ^2 = " + squared(value)); } }
[ "xleonhunter@gmail.com" ]
xleonhunter@gmail.com
c521e690787a32870da601d07b3a7ad536168d3f
a3682b65c0c514846c95c71a00fa696f03e5caeb
/src/main/java/com/my/blog/website/service/impl/LogServiceImpl.java
4005f80f364243df2e27e10145462ff0528895f5
[]
no_license
binyang179/myblog
43bd1f7d4e8a2357da561191eb0ad8525da72b74
f363481148ab386b6ee13f9b3c18865b51950f9f
refs/heads/master
2020-11-26T21:53:27.623336
2019-12-25T01:50:08
2019-12-25T01:50:08
229,211,741
0
0
null
null
null
null
UTF-8
Java
false
false
1,795
java
package com.my.blog.website.service.impl; import com.github.pagehelper.PageHelper; import com.my.blog.website.dao.LogVoMapper; import com.my.blog.website.service.ILogService; import com.my.blog.website.utils.DateKit; import com.my.blog.website.constant.WebConst; import com.my.blog.website.model.Vo.LogVo; import com.my.blog.website.model.Vo.LogVoExample; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * Created by binyang179 on 2019/7/4. */ @Service public class LogServiceImpl implements ILogService { private static final Logger LOGGER = LoggerFactory.getLogger(LogServiceImpl.class); @Resource private LogVoMapper logDao; @Override public void insertLog(LogVo logVo) { logDao.insert(logVo); } @Override public void insertLog(String action, String data, String ip, Integer authorId) { LogVo logs = new LogVo(); logs.setAction(action); logs.setData(data); logs.setIp(ip); logs.setAuthorId(authorId); logs.setCreated(DateKit.getCurrentUnixTime()); logDao.insert(logs); } @Override public List<LogVo> getLogs(int page, int limit) { LOGGER.debug("Enter getLogs method:page={},linit={}",page,limit); if (page <= 0) { page = 1; } if (limit < 1 || limit > WebConst.MAX_POSTS) { limit = 10; } LogVoExample logVoExample = new LogVoExample(); logVoExample.setOrderByClause("id desc"); PageHelper.startPage((page - 1) * limit, limit); List<LogVo> logVos = logDao.selectByExample(logVoExample); LOGGER.debug("Exit getLogs method"); return logVos; } }
[ "binyang3179@gmail.com" ]
binyang3179@gmail.com
32970333832d842a106a1698b215b0cbd8de5a56
e4366b6d81eeec54bc2a9955c32a7af29091daee
/valinor-image/valinor-image-provider/src/main/java/com/ninesale/valinor/image/provider/model/DtoImgTagLocation.java
ad96fb7c51c34c4f34d6027e8acd13495db5d9a8
[]
no_license
175272511/valinor-parent
da17d354487cec46b717f4435329bb706ae49fc1
185246d5600509cbfb75d32853a4ce8d76a5835a
refs/heads/master
2016-09-01T16:18:34.052980
2016-03-23T08:02:33
2016-03-23T08:02:33
54,541,171
0
1
null
null
null
null
UTF-8
Java
false
false
2,026
java
package com.ninesale.valinor.image.provider.model; import java.util.Date; import java.util.List; public class DtoImgTagLocation { private Long id; private Long imgId; private String imgTagIdListStr; private String imgTagNameListStr; private Integer coordX; private Integer coordY; private Integer showWay; private Date createTime; private Date updateTime; private List<Long> imgTagIdList; private List<String> imgTagNameList; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getImgId() { return imgId; } public void setImgId(Long imgId) { this.imgId = imgId; } public String getImgTagIdListStr() { return imgTagIdListStr; } public void setImgTagIdListStr(String imgTagIdListStr) { this.imgTagIdListStr = imgTagIdListStr; } public String getImgTagNameListStr() { return imgTagNameListStr; } public void setImgTagNameListStr(String imgTagNameListStr) { this.imgTagNameListStr = imgTagNameListStr; } public Integer getCoordX() { return coordX; } public void setCoordX(Integer coordX) { this.coordX = coordX; } public Integer getCoordY() { return coordY; } public void setCoordY(Integer coordY) { this.coordY = coordY; } public Integer getShowWay() { return showWay; } public void setShowWay(Integer showWay) { this.showWay = showWay; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public List<Long> getImgTagIdList() { return imgTagIdList; } public void setImgTagIdList(List<Long> imgTagIdList) { this.imgTagIdList = imgTagIdList; } public List<String> getImgTagNameList() { return imgTagNameList; } public void setImgTagNameList(List<String> imgTagNameList) { this.imgTagNameList = imgTagNameList; } }
[ "liuhui3@meilele.com" ]
liuhui3@meilele.com
ae2ec4f99981a1cdf67ae1092c31a4e75a45da67
3be9a88787a420e8a32059e4a9cd9e6a8cc840bc
/ swingsource --username zeyuphoenix/source/commandbutton/common/CommandButtonLayoutManager.java
f1d1ced74ce7878baf81e6160dd4efb520343ecd
[]
no_license
youhandcn/swingsource
e5543a631c4f85a1c87778b392716f6ad7dc428d
4eed1c3b13e7959ba40bc7082c2a8998f660eada
refs/heads/master
2016-09-05T10:33:31.940367
2010-05-03T05:04:15
2010-05-03T05:04:15
34,960,255
1
0
null
null
null
null
UTF-8
Java
false
false
5,781
java
/* * Copyright (c) 2005-2009 Flamingo Kirill Grouchnikov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * o Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * o Neither the name of Flamingo Kirill Grouchnikov nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package common; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; import java.awt.Rectangle; import java.beans.PropertyChangeListener; import java.util.List; /** * Definition of a layout manager for {@link AbstractCommandButton}s. * * @author Kirill Grouchnikov */ public interface CommandButtonLayoutManager extends PropertyChangeListener { /** * Enumerates the available values for separator orientations. * * @author Kirill Grouchnikov */ public enum CommandButtonSeparatorOrientation { /** * Vertical separator orientation. */ VERTICAL, /** * Horizontal separator orientation. */ HORIZONTAL } /** * Layout information on a single line of text. * * @author Kirill Grouchnikov */ public class TextLayoutInfo { /** * Text itself. */ public String text; /** * The text rectangle. */ public Rectangle textRect; } /** * Layout information on different visual parts of a single command button. * * @author Kirill Grouchnikov */ public class CommandButtonLayoutInfo { /** * The action area. A mouse click in this area will trigger all * listeners associated with the command button action model * {@link AbstractCommandButton#addActionListener(java.awt.event.ActionListener)} */ public Rectangle actionClickArea; /** * The popup area. A mouse click in this area will trigger the listener * associated with the command button popup model * {@link JCommandButton#setPopupCallback(org.jvnet.flamingo.common.popup.PopupPanelCallback)} */ public Rectangle popupClickArea; /** * The separator area. If it's not empty, the command button will show a * separator between {@link #actionClickArea} and * {@link #popupClickArea} on mouse rollover - depending on the current * look-and-feel. */ public Rectangle separatorArea; public CommandButtonSeparatorOrientation separatorOrientation; /** * Rectangle for the command button icon. */ public Rectangle iconRect; /** * Layout information for the command button text (that can span * multiple lines). */ public List<TextLayoutInfo> textLayoutInfoList; /** * Layout information for the command button extra text (that can span * multiple lines). */ public List<TextLayoutInfo> extraTextLayoutInfoList; /** * Rectangle for the icon associated with the {@link #popupClickArea}. * This icon is usually a single or double arrow indicating that the * command button has a popup area. */ public Rectangle popupActionRect; /** * Indication whether the command button text (rectangles in * {@link #textLayoutInfoList}) belongs in the action area. */ public boolean isTextInActionArea; } /** * Returns the preferred size of the specified command button. * * @param commandButton * Command button. * @return The preferred size of the specified command button. */ public Dimension getPreferredSize(AbstractCommandButton commandButton); /** * Returns the preferred icon size of command buttons which use this layout * manager. * * @return The preferred icon size of command buttons which use this layout * manager. */ public int getPreferredIconSize(); /** * Returns the anchor center point of the key tip of the specified command * button. * * @param commandButton * Command button. * @return The anchor center point of the key tip of the specified command * button. */ public Point getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton); /** * Returns the layout information for the specified command button. * * @param commandButton * Command button. * @param g * Graphics context. * @return The layout information for the specified command button. */ public CommandButtonLayoutInfo getLayoutInfo( AbstractCommandButton commandButton, Graphics g); }
[ "zeyuphoenix@885ba999-350d-7bb5-9ed4-d2348cccda2a" ]
zeyuphoenix@885ba999-350d-7bb5-9ed4-d2348cccda2a
cc30a1906dc4ccd15bd5c5703a39b7594975423e
8c8667eeef6487bce01d612d5e948355256b39ac
/cuentas/src/main/java/mx/babel/bansefi/banksystem/cuentas/backends/FormalizaDocumentoBackEnd.java
0630811773fef248a2e9984aea455ec9f8381865
[]
no_license
JesusGui/ProyectoBansefi
7c0c228943be245bf69d1d2a9fe7f40a0a04db9f
4b6caa502c279c51231d0f5f8cb0399813c233e2
refs/heads/master
2020-03-28T14:38:44.536238
2018-09-12T16:08:16
2018-09-12T16:08:16
148,507,197
0
0
null
null
null
null
UTF-8
Java
false
false
4,002
java
package mx.babel.bansefi.banksystem.cuentas.backends; import mx.babel.arq.comun.exceptions.ControlableException; import mx.babel.arq.comun.exceptions.NoControlableException; import mx.babel.arq.comun.utils.ServicioWebUtils; import mx.babel.bansefi.banksystem.base.backends.BackEndBean; import mx.babel.bansefi.banksystem.base.constants.CodTxConstants; import mx.babel.bansefi.banksystem.cuentas.beans.EmisionDocumentosBean; import mx.babel.bansefi.banksystem.cuentas.webservices.formalizadocumento.Ejecutar; import mx.babel.bansefi.banksystem.cuentas.webservices.formalizadocumento.EjecutarResult; import mx.babel.bansefi.banksystem.cuentas.webservices.formalizadocumento.FormalizaDocumentoServicio; import mx.babel.bansefi.banksystem.cuentas.wrappers.EmisionDocumentosWrapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * Back End de formalizar documentos * @author mario.montesdeoca * */ @Component public class FormalizaDocumentoBackEnd extends BackEndBean{ private static final long serialVersionUID = 699929315213928992L; @Autowired ServicioWebUtils servicioWebUtils; @Autowired EmisionDocumentosWrapper emisioDocumentosWrapper; /** * Método que formaliza un documento * @param documento a formalizar * @param numeroCuenta poseedora del documento * @return <code>true</code> si se formalizó el documento con exito */ public Boolean ejecutarTRN(EmisionDocumentosBean documento, Long numeroCuenta){ Ejecutar.ITRDEFORMALIZARTRNI contexto = initPeticion(documento, numeroCuenta); EjecutarResult respuesta = ejecutarWS(contexto); try{ super.verificaRespuesta(respuesta); }catch (ControlableException ce){ if (ce.getRtncod() != RETURN_COD_SIN_DATOS){ throw ce; }else{ return false; } } return true; } /** * Método para inicializar el objeto de petición para el servicio web * @param documento bean con detalles del documento * @param numeroCuenta poseedora del documento * @return objeto de petición para el servicio web */ public Ejecutar.ITRDEFORMALIZARTRNI initPeticion(EmisionDocumentosBean documento, Long numeroCuenta){ Ejecutar.ITRDEFORMALIZARTRNI contexto = new Ejecutar.ITRDEFORMALIZARTRNI(); Ejecutar.ITRDEFORMALIZARTRNI.STDTRNIPARMV cuerpoContexto = new Ejecutar.ITRDEFORMALIZARTRNI.STDTRNIPARMV(); Ejecutar.ITRDEFORMALIZARTRNI.TRDEFORMALIZAREVTY datosDocumento = new Ejecutar.ITRDEFORMALIZARTRNI.TRDEFORMALIZAREVTY(); Ejecutar.ITRDEFORMALIZARTRNI.TRDEFORMALIZAREVTY.DEDOCEMTDOE datos = new Ejecutar.ITRDEFORMALIZARTRNI.TRDEFORMALIZAREVTY.DEDOCEMTDOE(); Ejecutar.ITRDEFORMALIZARTRNI.TRDEFORMALIZAREVTY.NUMACRLDEV acuerdo = new Ejecutar.ITRDEFORMALIZARTRNI.TRDEFORMALIZAREVTY.NUMACRLDEV(); contexto.setSTDTRNIPARMV(cuerpoContexto); contexto.setTRDEFORMALIZAREVTY(datosDocumento); datosDocumento.setDEDOCEMTDOE(datos); datosDocumento.setNUMACRLDEV(acuerdo); super.initialize(contexto); contexto.setSCROLLABLEOCCURS(50); contexto.setELEVATORPOSITION(1); acuerdo.setCODNRBEEN(super.getEntidad()); acuerdo.setNUMSECAC(numeroCuenta); emisioDocumentosWrapper.wrappBean(documento, datos); datos.setCODNRBEEN(super.getEntidad()); cuerpoContexto.setIDINTERNOTERMTN(super.getTerminal()); cuerpoContexto.setCODTX(CodTxConstants.COD_TX_TR_DE_FORMALIZAR_TRN); return contexto; } /** * Función para invocar al servicio web y obtener su respuesta. * * @param contexto Objeto de petición al servicio web * @return La respuesta del servicio web. */ private EjecutarResult ejecutarWS(Ejecutar.ITRDEFORMALIZARTRNI contexto){ EjecutarResult respuesta = null; try{ respuesta = (EjecutarResult) servicioWebUtils.ejecutarWS( FormalizaDocumentoServicio.class,contexto); }catch(NoControlableException e){ throw new NoControlableException("Error al invocar servicio web de formalización " + "de documentos.", e); } return respuesta; } }
[ "jesusguillermomendez@gmail.com" ]
jesusguillermomendez@gmail.com
2af621f83f437f08e82b7d05c2b24e6c8f27d679
86cd9738da28da50e357e0b7ed49ae00e83abfb0
/src/main/java/rikka/api/world/explosion/Explosion.java
0853735a88c3e9f32589ce96f94545931b65341b
[ "MIT" ]
permissive
Himmelt/Rikka
000ba0c575463bef4af542334be25ae4131adfa6
ddb3b6741edc0572c025fa8b8d3273785ff32012
refs/heads/master
2020-03-12T14:52:53.706274
2018-06-26T07:14:35
2018-06-26T07:14:35
130,678,362
2
0
null
null
null
null
UTF-8
Java
false
false
353
java
package rikka.api.world.explosion; import rikka.api.entity.api.Explosive; import rikka.api.world.Locatable; public interface Explosion extends Locatable { Explosive getSourceExplosive(); float getRadius(); boolean canCauseFire(); boolean shouldPlaySmoke(); boolean shouldBreakBlocks(); boolean shouldDamageEntities(); }
[ "master@void-3.cn" ]
master@void-3.cn
5262cc27de372e01cac7f17b99eff192879ce52f
0592f165cb20e4f809920549a7090e8efe08c4da
/src/main/java/com/github/tukenuke/tuske/hooks/simpleclans/effects/EffRemoveFromClan.java
418ff4f248e87026b925ccbb799fa997331a2e17
[]
no_license
Tuke-Nuke/TuSKe
1f33c4e51b859433a3530f228550c41eaf3fe06a
41ef394cfd99352220fa08293edfe6ec4530fe31
refs/heads/master
2022-02-09T22:56:56.942900
2022-01-26T14:28:20
2022-01-26T14:28:20
67,299,518
26
64
null
2017-12-30T05:19:19
2016-09-03T16:14:05
Java
UTF-8
Java
false
false
1,160
java
package com.github.tukenuke.tuske.hooks.simpleclans.effects; import com.github.tukenuke.tuske.util.Registry; import org.bukkit.entity.Player; import org.bukkit.event.Event; import javax.annotation.Nullable; import ch.njol.skript.lang.Effect; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.SkriptParser.ParseResult; import ch.njol.util.Kleenean; import net.sacredlabyrinth.phaed.simpleclans.SimpleClans; public class EffRemoveFromClan extends Effect{ static { Registry.newEffect(EffRemoveFromClan.class, "(remove|kick) %player% from his clan", "[make] %player% resign from his clan"); } private Expression<Player> p; @SuppressWarnings("unchecked") @Override public boolean init(Expression<?>[] arg, int arg1, Kleenean arg2, ParseResult arg3) { this.p = (Expression<Player>) arg[0]; return true; } @Override public String toString(@Nullable Event e, boolean arg1) { return "remove " + this.p + " from his clan"; } @Override protected void execute(Event e) { Player p = this.p.getSingle(e); SimpleClans.getInstance().getClanManager().getClanPlayer(p).getClan().removePlayerFromClan(p.getUniqueId()); } }
[ "leandro.p.alencar@gmail.com" ]
leandro.p.alencar@gmail.com
7cac9fd33c827c216865ec0acc2747b0a09ed831
ff5107cf2f495b2a07329cdf7190ff6469a1a834
/apps/microservices/player/src/main/java/com/adloveyou/ms/player/config/MicroserviceSecurityConfiguration.java
e1934c38ebea30ee069a0e734d273f5e206dde9b
[]
no_license
icudroid/addonf-microservice
596e341cf282e1190c3752f6adf5a2c210976032
db9e80617b206ff3c1122e56f3c6de14e555692e
refs/heads/master
2021-05-09T02:15:47.863941
2018-01-27T20:29:48
2018-01-27T20:29:48
119,200,152
0
0
null
null
null
null
UTF-8
Java
false
false
3,231
java
package com.adloveyou.ms.player.config; import com.adloveyou.ms.player.config.oauth2.OAuth2JwtAccessTokenConverter; import com.adloveyou.ms.player.config.oauth2.OAuth2Properties; import com.adloveyou.ms.player.security.AuthoritiesConstants; import com.adloveyou.ms.player.security.oauth2.OAuth2SignatureVerifierClient; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.cloud.client.loadbalancer.RestTemplateCustomizer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer; import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter; import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter; import org.springframework.security.oauth2.provider.token.store.JwtTokenStore; import org.springframework.web.client.RestTemplate; @Configuration @EnableResourceServer @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) public class MicroserviceSecurityConfiguration extends ResourceServerConfigurerAdapter { private final OAuth2Properties oAuth2Properties; public MicroserviceSecurityConfiguration(OAuth2Properties oAuth2Properties) { this.oAuth2Properties = oAuth2Properties; } @Override public void configure(HttpSecurity http) throws Exception { http .csrf() .disable() .headers() .frameOptions() .disable() .and() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .authorizeRequests() .antMatchers("/api/profile-info").permitAll() .antMatchers("/api/**").authenticated() .antMatchers("/management/health").permitAll() .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN) .antMatchers("/swagger-resources/configuration/ui").permitAll(); } @Bean public TokenStore tokenStore(JwtAccessTokenConverter jwtAccessTokenConverter) { return new JwtTokenStore(jwtAccessTokenConverter); } @Bean public JwtAccessTokenConverter jwtAccessTokenConverter(OAuth2SignatureVerifierClient signatureVerifierClient) { return new OAuth2JwtAccessTokenConverter(oAuth2Properties, signatureVerifierClient); } @Bean @Qualifier("loadBalancedRestTemplate") public RestTemplate loadBalancedRestTemplate(RestTemplateCustomizer customizer) { RestTemplate restTemplate = new RestTemplate(); customizer.customize(restTemplate); return restTemplate; } @Bean @Qualifier("vanillaRestTemplate") public RestTemplate vanillaRestTemplate() { return new RestTemplate(); } }
[ "dimitri@d-kahn.net" ]
dimitri@d-kahn.net
807f89b8156220ab61654c9497d2c659986cc2aa
245fee86f6aafd0d7e9202a71e49d01a80f2f040
/demo/src/main/java/org/treblereel/client/inject/BeanOne.java
101ec9b5fd178c8fe7ca6776f74a7d571b99f237
[ "Apache-2.0" ]
permissive
treblereel/crysknife
c47005ac34ada039c5c036e2e88b14b71e6cec7e
2d42fbaca43ea292ddb252dcf5d4287d0803831f
refs/heads/master
2023-09-01T11:52:13.164253
2020-10-02T18:58:50
2020-10-02T18:58:50
300,720,107
0
0
Apache-2.0
2023-08-17T05:44:07
2020-10-02T19:43:56
null
UTF-8
Java
false
false
1,580
java
/* * Copyright © 2020 Treblereel * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.treblereel.client.inject; import java.util.Random; import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import elemental2.dom.DomGlobal; import org.treblereel.client.inject.named.Vehicle; /** * @author Dmitrii Tikhomirov * Created by treblereel 2/19/19 */ @Singleton public class BeanOne { Vehicle car; Vehicle helicopter; private int random; @Inject public BeanOne(@Named("Car") Vehicle car, @Named("Helicopter") Vehicle helicopter) { this.helicopter = helicopter; this.car = car; this.random = new Random().nextInt(); } @PostConstruct public void init() { car.whoAmI(); helicopter.whoAmI(); } public void say() { DomGlobal.console.log(this.getClass().getCanonicalName()); } public int getRandom() { return random; } public String callCar() { return car.whoAmI(); } }
[ "chani@me.com" ]
chani@me.com
4d93f2f9d379503dd47a3d10f1570a62e1692aa1
73b228f7f6a99c8c7e5610612db46fd928c19ac0
/api/src/main/java/org/apache/brooklyn/api/typereg/RegisteredType.java
2674736666ebbaa8fca1e56ee9be83909edec7f3
[ "Apache-2.0", "MIT", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
johnmccabe/PRESPLIT-incubator-brooklyn
5f7bf9a95a3e5bd7a12d9abb06556e4f1de9fc2e
e6235d9bcfce0829e3160302a568422c1429c5ae
refs/heads/master
2021-08-20T06:40:25.933150
2015-12-15T15:14:51
2015-12-15T15:14:51
48,105,781
0
0
NOASSERTION
2021-01-11T19:45:29
2015-12-16T11:12:21
Java
UTF-8
Java
false
false
3,796
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.api.typereg; import java.util.Collection; import java.util.Set; import javax.annotation.Nullable; import org.apache.brooklyn.api.entity.Entity; import org.apache.brooklyn.api.entity.EntitySpec; import org.apache.brooklyn.api.objs.BrooklynObject; import org.apache.brooklyn.api.objs.Identifiable; import org.apache.brooklyn.api.typereg.BrooklynTypeRegistry.RegisteredTypeKind; import com.google.common.annotations.Beta; public interface RegisteredType extends Identifiable { @Override String getId(); RegisteredTypeKind getKind(); String getSymbolicName(); String getVersion(); Collection<OsgiBundleWithUrl> getLibraries(); String getDisplayName(); String getDescription(); String getIconUrl(); /** @return all declared supertypes or super-interfaces of this registered type, * consisting of a collection of {@link Class} or {@link RegisteredType} * <p> * This should normally include at least one {@link Class} object: * For beans, this should include the java type that the {@link BrooklynTypeRegistry} will create. * For specs, this should refer to the {@link BrooklynObject} type that the created spec will point at * (e.g. the concrete {@link Entity}, not the {@link EntitySpec}). * <p> * This may not necessarily return the most specific java class or classes; * such as if the concrete type is private and callers should know only about a particular public interface, * or if precise type details are unavailable and all that is known at creation is some higher level interface/supertype * (e.g. this may return {@link Entity} even though the spec points at a specific subclass, * for instance because the YAML has not yet been parsed or OSGi bundles downloaded). * <p> * This may include other registered types such as marker interfaces. */ @Beta Set<Object> getSuperTypes(); /** * @return True if the item has been deprecated (i.e. its use is discouraged) */ boolean isDeprecated(); /** * @return True if the item has been disabled (i.e. its use is forbidden, except for pre-existing apps) */ boolean isDisabled(); /** @return implementation details, so that the framework can find a suitable {@link BrooklynTypePlanTransformer} * which can then use this object to instantiate this type */ TypeImplementationPlan getPlan(); public interface TypeImplementationPlan { /** hint which {@link BrooklynTypePlanTransformer} instance(s) can be used, if known; * this may be null if the relevant transformer was not declared when created, * but in general we should look to determine the kind as early as possible * and use that to retrieve the appropriate such transformer */ String getPlanFormat(); /** data for the implementation; may be more specific */ Object getPlanData(); } }
[ "alex.heneveld@cloudsoftcorp.com" ]
alex.heneveld@cloudsoftcorp.com
016d9311133a3d5feb77214d96da4b3c2b639354
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project20/src/main/java/org/gradle/test/performance20_3/Production20_209.java
15ace2cddc10cd432828f3f39253e60a1c22fc6a
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance20_3; public class Production20_209 extends org.gradle.test.performance10_3.Production10_209 { private final String property; public Production20_209() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
c81fcff6b464032cf824b8c00cf0fe50732771eb
3175c79fd0f89d1e213543743b99659245fe1065
/SisVenLog-war/src/java/bean/listados/LiControlPedBean.java
b835b28ebf35078c555ef0a62f12f17bf0e29bac
[]
no_license
HugoF92/SisVenLog-WEB
1bb209b88d79635c34636910d69855f0b32fb270
f41f39baa1c232567c52e76764e298e5f4c47f51
refs/heads/master
2021-12-22T01:42:29.934040
2021-08-12T20:21:34
2021-08-12T20:21:34
229,111,856
1
2
null
2020-01-27T02:34:13
2019-12-19T18:04:44
Java
UTF-8
Java
false
false
6,949
java
package bean.listados; import dao.DepositosFacade; import dao.EmpleadosFacade; import dao.ExcelFacade; import entidad.Depositos; import entidad.DepositosPK; import entidad.Empleados; import entidad.EmpleadosPK; import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.annotation.PostConstruct; import javax.ejb.EJB; import javax.faces.application.FacesMessage; import javax.faces.bean.*; import javax.faces.context.FacesContext; import util.LlamarReportes; @ManagedBean @SessionScoped public class LiControlPedBean { @EJB private EmpleadosFacade empleadosFacade; @EJB private ExcelFacade excelFacade; private Empleados empleados; private List<Empleados> listaEmpleados; @EJB private DepositosFacade depositosFacade; private Depositos depositos; private List<Depositos> listaDepositos; private Date desde; private Date hasta; public LiControlPedBean() throws IOException { } //Operaciones //Instanciar objetos @PostConstruct public void instanciar() { this.empleados = new Empleados(new EmpleadosPK()); this.listaEmpleados = new ArrayList<Empleados>(); this.depositos = new Depositos(new DepositosPK()); this.listaDepositos = new ArrayList<Depositos>(); this.desde = new Date(); this.hasta = new Date(); } public List<Empleados> listarEmpleados() { this.listaEmpleados = empleadosFacade.listarEmpleadosActivos(); return this.listaEmpleados; } public List<Depositos> listarDepositos() { this.listaDepositos = depositosFacade.listarDepositosActivos(); return this.listaDepositos; } public void ejecutar(String tipo) { LlamarReportes rep = new LlamarReportes(); String fdesde = dateToString(desde); String fhasta = dateToString(hasta); Integer empleado = 0; String nomEmple = ""; Integer deposito = 0; String descDepo = ""; Empleados auxEmple = new Empleados(); Depositos auxDepo = new Depositos(); if (this.empleados == null) { empleado = 0; nomEmple = "TODOS"; } else { empleado = Integer.parseInt(this.empleados.getEmpleadosPK().getCodEmpleado() + ""); auxEmple = empleadosFacade.getNombreEmpleado(empleado); nomEmple = auxEmple.getXnombre(); } if (this.depositos == null) { deposito = 0; descDepo = "TODOS"; } else { deposito = Integer.parseInt(this.depositos.getDepositosPK().getCodDepo() + ""); auxDepo = depositosFacade.getNombreDeposito(deposito); descDepo = auxDepo.getXdesc(); } if (tipo.equals("VIST")) { rep.reporteLiConsDoc(dateToString(desde), dateToString(hasta), dateToString2(desde), dateToString2(hasta), empleado, "admin", tipo, nomEmple, descDepo, deposito); } else { List<Object[]> lista = new ArrayList<Object[]>(); String[] columnas = new String[4]; columnas[0] = "cod_zona"; columnas[1] = "xdesc_zona"; columnas[2] = "mestado"; columnas[3] = "kfilas"; String sql = "SELECT r.cod_zona, z.xdesc as xdesc_zona, p.mestado, ISNULL(COUNT(*),0) as kfilas\n" + " FROM pedidos p, RUTAS R, clientes c, zonas z\n" + " WHERE p.cod_cliente = c.cod_cliente\n" + " AND c.cod_ruta = r.cod_ruta\n" + " AND r.cod_zona = z.cod_zona\n" + " AND p.fpedido BETWEEN '"+fdesde+"' AND '"+fhasta+"'\n" + " AND (p.cod_depo = "+deposito+" or "+deposito+"=0)\n" + " AND (p.cod_vendedor = "+empleado+" or "+empleado+"=0)\n" + "GROUP BY r.cod_zona, z.xdesc, p.mestado\n" + "UNION ALL\n" + "\n" + "SELECT r.cod_zona, z.xdesc as xdesc_zona, 'S' as mestado, ISNULL(COUNT(*),0) as kfilas\n" + " FROM pedidos p, RUTAS R, clientes c, zonas z\n" + " WHERE p.cod_cliente = c.cod_cliente\n" + " AND c.cod_ruta = r.cod_ruta\n" + " AND r.cod_zona = z.cod_zona\n" + " AND p.fpedido BETWEEN '"+fdesde+"' AND '"+fhasta+"'\n" + " AND p.mestado = 'E'\n" + " AND p.ffactur IS NULL\n" + " AND (p.cod_depo = "+deposito+" or "+deposito+"=0)\n" + " AND (p.cod_vendedor = "+empleado+" or "+empleado+"=0)\n" + "GROUP BY r.cod_zona, z.xdesc, p.mestado"; lista = excelFacade.listarParaExcel(sql); rep.exportarExcel(columnas, lista, "locontrolped"); } } private String dateToString(Date fecha) { String resultado = ""; try { DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd"); resultado = dateFormat.format(fecha); } catch (Exception e) { FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Atencion", "Error al convertir fecha")); } return resultado; } private String dateToString2(Date fecha) { String resultado = ""; try { DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); resultado = dateFormat.format(fecha); } catch (Exception e) { FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Atencion", "Error al convertir fecha")); } return resultado; } //Getters & Setters public Empleados getEmpleados() { return empleados; } public void setEmpleados(Empleados empleados) { this.empleados = empleados; } public List<Empleados> getListaEmpleados() { return listaEmpleados; } public void setListaEmpleados(List<Empleados> listaEmpleados) { this.listaEmpleados = listaEmpleados; } public Date getDesde() { return desde; } public void setDesde(Date desde) { this.desde = desde; } public Date getHasta() { return hasta; } public void setHasta(Date hasta) { this.hasta = hasta; } public Depositos getDepositos() { return depositos; } public void setDepositos(Depositos depositos) { this.depositos = depositos; } public List<Depositos> getListaDepositos() { return listaDepositos; } public void setListaDepositos(List<Depositos> listaDepositos) { this.listaDepositos = listaDepositos; } }
[ "jvera.exe@gmail.com" ]
jvera.exe@gmail.com
2ddb8b374024535012a60b81e067ca6b8e51b040
e75be673baeeddee986ece49ef6e1c718a8e7a5d
/submissions/blizzard/Corpus/eclipse.jdt.ui/2567.java
a1482a6ae243ebecd9c8233c7bc2bece72c9b301
[ "MIT" ]
permissive
zhendong2050/fse18
edbea132be9122b57e272a20c20fae2bb949e63e
f0f016140489961c9e3c2e837577f698c2d4cf44
refs/heads/master
2020-12-21T11:31:53.800358
2018-07-23T10:10:57
2018-07-23T10:10:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,687
java
/******************************************************************************* * Copyright (c) 2007, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.internal.corext.fix; import org.eclipse.core.runtime.IStatus; import org.eclipse.jdt.ui.cleanup.ICleanUpFix; /** * A <code>ICleanUpFix</code> which can be used in a * correction proposal environment. A proposal * will be shown to the user and if chosen the * fix is executed. * * @since 3.4 */ public interface IProposableFix extends ICleanUpFix { /** * Returns the string to be displayed in the list of completion proposals. * * @return the string to be displayed */ public String getDisplayString(); /** * Returns optional additional information about the proposal. The additional information will * be presented to assist the user in deciding if the selected proposal is the desired choice. * <p> * Returns <b>null</b> if the default proposal info should be used. * </p> * * @return the additional information or <code>null</code> */ public String getAdditionalProposalInfo(); /** * A status informing about issues with this fix * or <b>null</b> if no issues. * * @return status to inform the user */ public IStatus getStatus(); }
[ "tim.menzies@gmail.com" ]
tim.menzies@gmail.com
e833c0886d3218b91b0986592902d7fc583d5411
135e62bb38f557ceacd522643bedf42135096d5b
/src/main/java/org/elasticsearch/discovery/zen/publish/PublishClusterStateAction.java
7777295981503b16e65018518fdeace8768f849e
[ "Apache-2.0" ]
permissive
krsreenatha/elasticsearch
3143cc31192ea1f1258956ef44f0b389e5a59c03
aa435a288b1c6027847f4893441461750044d50b
refs/heads/master
2021-01-18T18:26:32.886073
2012-09-22T00:35:29
2012-09-22T00:35:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,694
java
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch 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.discovery.zen.publish; import com.google.common.collect.Maps; import org.elasticsearch.Version; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.component.AbstractComponent; import org.elasticsearch.common.compress.Compressor; import org.elasticsearch.common.compress.CompressorFactory; import org.elasticsearch.common.io.stream.*; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.discovery.zen.DiscoveryNodesProvider; import org.elasticsearch.threadpool.ThreadPool; import org.elasticsearch.transport.*; import java.io.IOException; import java.util.Map; /** * */ public class PublishClusterStateAction extends AbstractComponent { public static interface NewClusterStateListener { void onNewClusterState(ClusterState clusterState); } private final TransportService transportService; private final DiscoveryNodesProvider nodesProvider; private final NewClusterStateListener listener; public PublishClusterStateAction(Settings settings, TransportService transportService, DiscoveryNodesProvider nodesProvider, NewClusterStateListener listener) { super(settings); this.transportService = transportService; this.nodesProvider = nodesProvider; this.listener = listener; transportService.registerHandler(PublishClusterStateRequestHandler.ACTION, new PublishClusterStateRequestHandler()); } public void close() { transportService.removeHandler(PublishClusterStateRequestHandler.ACTION); } public void publish(ClusterState clusterState) { DiscoveryNode localNode = nodesProvider.nodes().localNode(); Map<Version, CachedStreamOutput.Entry> serializedStates = Maps.newHashMap(); try { for (final DiscoveryNode node : clusterState.nodes()) { if (node.equals(localNode)) { // no need to send to our self continue; } // try and serialize the cluster state once (or per version), so we don't serialize it // per node when we send it over the wire, compress it while we are at it... CachedStreamOutput.Entry entry = serializedStates.get(node.version()); if (entry == null) { try { entry = CachedStreamOutput.popEntry(); StreamOutput stream = entry.handles(CompressorFactory.defaultCompressor()); stream.setVersion(node.version()); ClusterState.Builder.writeTo(clusterState, stream); stream.close(); serializedStates.put(node.version(), entry); } catch (Exception e) { logger.warn("failed to serialize cluster_state before publishing it to nodes", e); return; } } transportService.sendRequest(node, PublishClusterStateRequestHandler.ACTION, new PublishClusterStateRequest(entry.bytes().bytes()), TransportRequestOptions.options().withHighType().withCompress(false), // no need to compress, we already compressed the bytes new VoidTransportResponseHandler(ThreadPool.Names.SAME) { @Override public void handleException(TransportException exp) { logger.debug("failed to send cluster state to [{}], should be detected as failed soon...", exp, node); } }); } } finally { for (CachedStreamOutput.Entry entry : serializedStates.values()) { CachedStreamOutput.pushEntry(entry); } } } class PublishClusterStateRequest implements Streamable { BytesReference clusterStateInBytes; private PublishClusterStateRequest() { } private PublishClusterStateRequest(BytesReference clusterStateInBytes) { this.clusterStateInBytes = clusterStateInBytes; } @Override public void readFrom(StreamInput in) throws IOException { clusterStateInBytes = in.readBytesReference(); } @Override public void writeTo(StreamOutput out) throws IOException { out.writeBytesReference(clusterStateInBytes); } } private class PublishClusterStateRequestHandler extends BaseTransportRequestHandler<PublishClusterStateRequest> { static final String ACTION = "discovery/zen/publish"; @Override public PublishClusterStateRequest newInstance() { return new PublishClusterStateRequest(); } @Override public void messageReceived(PublishClusterStateRequest request, TransportChannel channel) throws Exception { Compressor compressor = CompressorFactory.compressor(request.clusterStateInBytes); StreamInput in; if (compressor != null) { in = CachedStreamInput.cachedHandlesCompressed(compressor, request.clusterStateInBytes.streamInput()); } else { in = CachedStreamInput.cachedHandles(request.clusterStateInBytes.streamInput()); } ClusterState clusterState = ClusterState.Builder.readFrom(in, nodesProvider.nodes().localNode()); listener.onNewClusterState(clusterState); channel.sendResponse(VoidStreamable.INSTANCE); } @Override public String executor() { return ThreadPool.Names.SAME; } } }
[ "kimchy@gmail.com" ]
kimchy@gmail.com
3eb7778769a7fa8762cb42f7ed42e0c7215abded
376e849705ea05d6f271a919f32c93e72690f0ad
/leasing-identity-parent/leasing-identity-service/src/main/java/com/cloudkeeper/leasing/identity/service/impl/EmergencyAccidentServiceImpl.java
8497c29019f47d9c583cfd49fabd21d7f61b2ef7
[]
no_license
HENDDJ/EngineeringApi
314198ce8b91212b1626decde2df1134cb1863c8
3bcc2051d2877472eda4ac0fce42bee81e81b0be
refs/heads/master
2020-05-16T03:41:05.335371
2019-07-31T08:21:57
2019-07-31T08:21:57
182,734,226
0
0
null
null
null
null
UTF-8
Java
false
false
2,066
java
package com.cloudkeeper.leasing.identity.service.impl; import com.cloudkeeper.leasing.base.repository.BaseRepository; import com.cloudkeeper.leasing.base.service.impl.BaseServiceImpl; import com.cloudkeeper.leasing.identity.domain.EmergencyAccident; import com.cloudkeeper.leasing.identity.repository.EmergencyAccidentRepository; import com.cloudkeeper.leasing.identity.service.EmergencyAccidentService; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.ExampleMatcher; import org.springframework.stereotype.Service; /** * 应急事故 service * @author lxw */ @Service @RequiredArgsConstructor(onConstructor = @__(@Autowired)) public class EmergencyAccidentServiceImpl extends BaseServiceImpl<EmergencyAccident> implements EmergencyAccidentService { /** 应急事故 repository */ private final EmergencyAccidentRepository emergencyAccidentRepository; @Override protected BaseRepository<EmergencyAccident> getBaseRepository() { return emergencyAccidentRepository; } @Override public ExampleMatcher defaultExampleMatcher() { return super.defaultExampleMatcher() .withMatcher("name", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("department", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("chargePerson", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("litigantName", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("litigantSex", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("litigantPost", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("injuredPart", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("accidentPassing", ExampleMatcher.GenericPropertyMatchers.contains()) .withMatcher("enclosure", ExampleMatcher.GenericPropertyMatchers.contains()); } }
[ "243485908@qq.com" ]
243485908@qq.com
1b0b2722abd5abbe9bac0c2c821231e80c3b775e
146a30bee123722b5b32c0022c280bbe7d9b6850
/depsWorkSpace/bc-java-master/pkix/src/main/java/org/mightyfish/cms/jcajce/CMSUtils.java
ae97e582a75dd098a41a1733b2458c040c15c581
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
GLC-Project/java-experiment
1d5aa7b9974c8ae572970ce6a8280e6a65417837
b03b224b8d5028dd578ca0e7df85d7d09a26688e
refs/heads/master
2020-12-23T23:47:57.341646
2016-02-13T16:20:45
2016-02-13T16:20:45
237,313,620
0
1
null
2020-01-30T21:56:54
2020-01-30T21:56:53
null
UTF-8
Java
false
false
2,862
java
package org.mightyfish.cms.jcajce; import java.io.IOException; import java.security.AlgorithmParameters; import java.security.Provider; import java.security.cert.CertificateEncodingException; import java.security.cert.X509Certificate; import org.mightyfish.asn1.ASN1Encodable; import org.mightyfish.asn1.ASN1OctetString; import org.mightyfish.asn1.cms.IssuerAndSerialNumber; import org.mightyfish.asn1.x509.Certificate; import org.mightyfish.asn1.x509.Extension; import org.mightyfish.asn1.x509.TBSCertificateStructure; import org.mightyfish.cms.CMSException; import org.mightyfish.jcajce.util.JcaJceUtils; class CMSUtils { static TBSCertificateStructure getTBSCertificateStructure( X509Certificate cert) throws CertificateEncodingException { return TBSCertificateStructure.getInstance(cert.getTBSCertificate()); } static IssuerAndSerialNumber getIssuerAndSerialNumber(X509Certificate cert) throws CertificateEncodingException { Certificate certStruct = Certificate.getInstance(cert.getEncoded()); return new IssuerAndSerialNumber(certStruct.getIssuer(), cert.getSerialNumber()); } static byte[] getSubjectKeyId(X509Certificate cert) { byte[] ext = cert.getExtensionValue(Extension.subjectKeyIdentifier.getId()); if (ext != null) { return ASN1OctetString.getInstance(ASN1OctetString.getInstance(ext).getOctets()).getOctets(); } else { return null; } } static EnvelopedDataHelper createContentHelper(Provider provider) { if (provider != null) { return new EnvelopedDataHelper(new ProviderJcaJceExtHelper(provider)); } else { return new EnvelopedDataHelper(new DefaultJcaJceExtHelper()); } } static EnvelopedDataHelper createContentHelper(String providerName) { if (providerName != null) { return new EnvelopedDataHelper(new NamedJcaJceExtHelper(providerName)); } else { return new EnvelopedDataHelper(new DefaultJcaJceExtHelper()); } } static ASN1Encodable extractParameters(AlgorithmParameters params) throws CMSException { try { return JcaJceUtils.extractParameters(params); } catch (IOException e) { throw new CMSException("cannot extract parameters: " + e.getMessage(), e); } } static void loadParameters(AlgorithmParameters params, ASN1Encodable sParams) throws CMSException { try { JcaJceUtils.loadParameters(params, sParams); } catch (IOException e) { throw new CMSException("error encoding algorithm parameters.", e); } } }
[ "a.eslampanah@live.com" ]
a.eslampanah@live.com
d54b0e442b04c6ca1b3aa34a18128e25d54ceac7
0bc04b4164e1c66b62bfd739b2eb5885e57431bc
/modules/security/src/main/java/org/onetwo/common/sso/IUserEntity.java
30311732e344d80adff35c85fd89f79fdcffafb4
[]
no_license
fayyua/onetwo
5cd0808b620e59c29948f0a8fbff2b66f255bfb8
5480619cf1cff45d5425e2084b4dd5955c4ddab5
refs/heads/master
2023-01-02T01:06:43.497752
2013-07-03T09:31:40
2013-07-03T09:31:40
11,275,501
0
0
null
2022-12-16T00:47:26
2013-07-09T07:11:15
Java
UTF-8
Java
false
false
299
java
package org.onetwo.common.sso; import java.io.Serializable; import org.onetwo.common.db.IdEntity; public interface IUserEntity<T extends Serializable> extends IdEntity<T>{ public String getUserAccount(); public String getUserPassword(); public boolean isUserAvailable(); }
[ "weishao.zeng@gmail.com" ]
weishao.zeng@gmail.com
e7c4b8be62852e8576a4dea54f16ba5d01efed25
d62c759ebcb73121f42a221776d436e9368fdaa8
/compute/src/test/java/org/jclouds/compute/strategy/CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapTest.java
a0708ca46bf670ecc69a02095ab0e1172a12698a
[ "Apache-2.0" ]
permissive
gnodet/jclouds
0152a4e7d6d96ac4ec9fa9746729e3555626ecfe
87dd23551c4d9b727540d9bd333ffd9a1136e58a
refs/heads/master
2020-12-24T23:19:24.785844
2011-09-16T15:52:12
2011-09-16T15:52:12
2,399,075
1
0
null
null
null
null
UTF-8
Java
false
false
6,316
java
/** * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. jclouds 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.jclouds.compute.strategy; import static org.easymock.EasyMock.expect; import static org.easymock.classextension.EasyMock.createMock; import static org.easymock.classextension.EasyMock.replay; import static org.easymock.classextension.EasyMock.verify; import static org.testng.Assert.assertEquals; import java.util.Map; import java.util.Set; import org.jclouds.compute.config.CustomizationResponse; import org.jclouds.compute.domain.NodeMetadata; import org.jclouds.compute.domain.NodeMetadataBuilder; import org.jclouds.compute.domain.NodeState; import org.jclouds.compute.functions.TemplateOptionsToStatement; import org.jclouds.compute.options.TemplateOptions; import org.jclouds.compute.predicates.RetryIfSocketNotYetOpen; import org.jclouds.compute.reference.ComputeServiceConstants.Timeouts; import org.jclouds.scriptbuilder.domain.Statement; import org.testng.annotations.Test; import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.collect.ImmutableSet; import com.google.common.collect.LinkedHashMultimap; import com.google.common.collect.Maps; import com.google.common.collect.Multimap; import com.google.common.collect.Sets; /** * @author Adrian Cole */ @Test(groups = "unit") public class CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapTest { @SuppressWarnings("unchecked") public void testBreakWhenNodeStillPending() { Predicate<NodeMetadata> nodeRunning = createMock(Predicate.class); InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory = createMock(InitializeRunScriptOnNodeOrPlaceInBadMap.Factory.class); GetNodeMetadataStrategy getNode = createMock(GetNodeMetadataStrategy.class); RetryIfSocketNotYetOpen socketTester = createMock(RetryIfSocketNotYetOpen.class); Timeouts timeouts = new Timeouts(); Function<TemplateOptions, Statement> templateOptionsToStatement = new TemplateOptionsToStatement(); @SuppressWarnings("unused") Statement statement = null; TemplateOptions options = new TemplateOptions(); Set<NodeMetadata> goodNodes = Sets.newLinkedHashSet(); Map<NodeMetadata, Exception> badNodes = Maps.newLinkedHashMap(); Multimap<NodeMetadata, CustomizationResponse> customizationResponses = LinkedHashMultimap.create(); NodeMetadata node = new NodeMetadataBuilder().ids("id").state(NodeState.PENDING).build(); // node never reached running state expect(nodeRunning.apply(node)).andReturn(false); expect(getNode.getNode(node.getId())).andReturn(node); // replay mocks replay(nodeRunning); replay(initScriptRunnerFactory); replay(getNode); replay(socketTester); // run new CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(nodeRunning, getNode, socketTester, timeouts, templateOptionsToStatement, initScriptRunnerFactory, options, node, goodNodes, badNodes, customizationResponses).apply(node); assertEquals(goodNodes.size(), 0); assertEquals(badNodes.keySet(), ImmutableSet.of(node)); assertEquals(badNodes.get(node).getMessage(), "node(id) didn't achieve the state running within 1200 seconds, final state: PENDING"); assertEquals(customizationResponses.size(), 0); // verify mocks verify(nodeRunning); verify(initScriptRunnerFactory); verify(getNode); verify(socketTester); } @SuppressWarnings("unchecked") public void testBreakGraceFullyWhenNodeDied() { Predicate<NodeMetadata> nodeRunning = createMock(Predicate.class); InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory = createMock(InitializeRunScriptOnNodeOrPlaceInBadMap.Factory.class); GetNodeMetadataStrategy getNode = createMock(GetNodeMetadataStrategy.class); RetryIfSocketNotYetOpen socketTester = createMock(RetryIfSocketNotYetOpen.class); Timeouts timeouts = new Timeouts(); Function<TemplateOptions, Statement> templateOptionsToStatement = new TemplateOptionsToStatement(); @SuppressWarnings("unused") Statement statement = null; TemplateOptions options = new TemplateOptions(); Set<NodeMetadata> goodNodes = Sets.newLinkedHashSet(); Map<NodeMetadata, Exception> badNodes = Maps.newLinkedHashMap(); Multimap<NodeMetadata, CustomizationResponse> customizationResponses = LinkedHashMultimap.create(); NodeMetadata node = new NodeMetadataBuilder().ids("id").state(NodeState.PENDING).build(); // node never reached running state expect(nodeRunning.apply(node)).andReturn(false); expect(getNode.getNode(node.getId())).andReturn(null); // replay mocks replay(nodeRunning); replay(initScriptRunnerFactory); replay(getNode); replay(socketTester); // run new CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(nodeRunning, getNode, socketTester, timeouts, templateOptionsToStatement, initScriptRunnerFactory, options, node, goodNodes, badNodes, customizationResponses).apply(node); assertEquals(goodNodes.size(), 0); assertEquals(badNodes.keySet(), ImmutableSet.of(node)); assertEquals(badNodes.get(node).getMessage(), "node(id) terminated before we could customize"); assertEquals(customizationResponses.size(), 0); // verify mocks verify(nodeRunning); verify(initScriptRunnerFactory); verify(getNode); verify(socketTester); } }
[ "adrian@jclouds.org" ]
adrian@jclouds.org
844909dd9528a1fbd36054099348ff6e61963dd4
62cb2df80d2dacc4fe7bcf3579cd459574c30149
/src/main/java/com/example/service/client/AuthorizedFeignClient.java
0f342b3913fecb13ec4e10ddfcccabc04d8782c6
[]
no_license
RajkumarPR/microservices
7bd949b5fe2ac03121571b94bcb9e7297d566a9f
c066594c1378544bd06b5831e0ea1ca179c7768d
refs/heads/master
2021-04-27T13:27:08.685760
2018-02-22T06:39:24
2018-02-22T06:39:24
122,440,521
0
0
null
null
null
null
UTF-8
Java
false
false
1,659
java
package com.example.service.client; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.cloud.netflix.feign.FeignClientsConfiguration; import org.springframework.core.annotation.AliasFor; import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @FeignClient public @interface AuthorizedFeignClient { @AliasFor(annotation = FeignClient.class, attribute = "name") String name() default ""; /** * A custom <code>@Configuration</code> for the feign client. * * Can contain override <code>@Bean</code> definition for the pieces that * make up the client, for instance {@link feign.codec.Decoder}, * {@link feign.codec.Encoder}, {@link feign.Contract}. * * @see FeignClientsConfiguration for the defaults */ @AliasFor(annotation = FeignClient.class, attribute = "configuration") Class<?>[] configuration() default OAuth2InterceptedFeignConfiguration.class; /** * An absolute URL or resolvable hostname (the protocol is optional). */ String url() default ""; /** * Whether 404s should be decoded instead of throwing FeignExceptions. */ boolean decode404() default false; /** * Fallback class for the specified Feign client interface. The fallback class must * implement the interface annotated by this annotation and be a valid Spring bean. */ Class<?> fallback() default void.class; /** * Path prefix to be used by all method-level mappings. Can be used with or without * <code>@RibbonClient</code>. */ String path() default ""; }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
f4aa9fd93482f194bd79e9e32badf902fb6416b9
27f6a988ec638a1db9a59cf271f24bf8f77b9056
/Code-Hunt-data/users/User155/Sector1-Level3/attempt036-20140920-224126.java
d04c991fb78d5632923fff962473dfdede261fe0
[]
no_license
liiabutler/Refazer
38eaf72ed876b4cfc5f39153956775f2123eed7f
991d15e05701a0a8582a41bf4cfb857bf6ef47c3
refs/heads/master
2021-07-22T06:44:46.453717
2017-10-31T01:43:42
2017-10-31T01:43:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
291
java
public class Program { public static Boolean Puzzle(Boolean x, Boolean y, Boolean z) { if(x == true ){ if ( y == true){ if(z == true && z==y){return true; }else { return false; }} if ( y == false){if(z == true ){return true; } } else { return false; } } }
[ "liiabiia@yahoo.com" ]
liiabiia@yahoo.com
77f1a6712307b5643eb495b764f456d8a6d8c22f
2f4a058ab684068be5af77fea0bf07665b675ac0
/app/com/facebook/katana/model/FacebookUserPersistent.java
685639908806cade896e15321c0102db50d7273a
[]
no_license
cengizgoren/facebook_apk_crack
ee812a57c746df3c28fb1f9263ae77190f08d8d2
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
refs/heads/master
2021-05-26T14:44:04.092474
2013-01-16T08:39:00
2013-01-16T08:39:00
8,321,708
1
0
null
null
null
null
UTF-8
Java
false
false
1,704
java
package com.facebook.katana.model; import android.content.ContentResolver; import android.content.Context; import android.database.Cursor; import android.net.Uri; import com.facebook.ipc.connections.ConnectionsContract; import com.facebook.ipc.katana.model.FacebookUser; public class FacebookUserPersistent extends FacebookUser { private String mHashCode; public FacebookUserPersistent() { } public FacebookUserPersistent(long paramLong, String paramString1, String paramString2, String paramString3, String paramString4) { super(paramLong, paramString1, paramString2, paramString3, paramString4); } public static FacebookUserPersistent a(Context paramContext, long paramLong) { Uri localUri = Uri.withAppendedPath(ConnectionsContract.e, String.valueOf(paramLong)); Cursor localCursor = paramContext.getContentResolver().query(localUri, FacebookUserPersistent.FriendsQuery.a, null, null, null); if (localCursor.moveToFirst()); for (FacebookUserPersistent localFacebookUserPersistent = new FacebookUserPersistent(localCursor.getLong(localCursor.getColumnIndex("user_id")), localCursor.getString(localCursor.getColumnIndex("first_name")), localCursor.getString(localCursor.getColumnIndex("last_name")), localCursor.getString(localCursor.getColumnIndex("display_name")), localCursor.getString(localCursor.getColumnIndex("user_image_url"))); ; localFacebookUserPersistent = null) { localCursor.close(); return localFacebookUserPersistent; } } } /* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar * Qualified Name: com.facebook.katana.model.FacebookUserPersistent * JD-Core Version: 0.6.0 */
[ "macluz@msn.com" ]
macluz@msn.com
4774762f415a5e21b39c23d234f6857c7e964018
472738b349c3456daca4a9a2e8b17c54ca4ccee9
/src/main/java/com/yoyound/sync/stock/test/FreeDeliveryRules.java
612285eccc06d89818f0d9e1330414dfb230720a
[]
no_license
luotianwen/sgssstockapi
1d952e3e3716f05a5058655866ba1f06515bb730
1f1d7a6883375e357be14b8c51ad01b05783299e
refs/heads/master
2022-09-30T14:50:41.588559
2019-11-05T03:46:00
2019-11-05T03:46:00
186,592,124
0
0
null
2022-09-01T23:07:26
2019-05-14T09:40:39
Java
UTF-8
Java
false
false
184
java
package com.yoyound.sync.stock.test; /** * Generated by JFinal. */ @SuppressWarnings("serial") public class FreeDeliveryRules extends BaseFreeDeliveryRules<FreeDeliveryRules> { }
[ "luotianwen456123@126.com" ]
luotianwen456123@126.com
f1a22e13443f9e4546a54305aa2595146c0eb21c
9dfbd7c8dd207ea9759b73ccfb5695361e876886
/XryptoMail/src/main/java/org/atalk/xryptomail/activity/ColorPickerDialog.java
e1db9a5e996bfa85c254e1485cc1e814963cf147
[ "Apache-2.0" ]
permissive
cmeng-git/xmail
816d597373cb9dd412615e84ada1083ea07b8d92
f837fc868daf367180433ef4d8439654eb9c6812
refs/heads/master
2023-08-31T14:38:12.833526
2023-08-23T19:58:15
2023-08-23T19:58:15
166,319,873
9
3
Apache-2.0
2021-01-07T03:53:59
2019-01-18T00:57:24
Java
UTF-8
Java
false
false
7,554
java
/* Sourced from http://code.google.com/p/android-color-picker/source/browse/trunk/AmbilWarna/src/yuku/ambilwarna/AmbilWarnaDialog.java?r=1 * On 2010-11-07 * Translated to English, Ported to use the same (inferior) API as the more standard "ColorPickerDialog" and imported into the K-9 namespace by Jesse Vincent * In an ideal world, we should move to using AmbilWarna as an Android Library Project in the future * License: Apache 2.0 * Author: yukuku@code.google.com */ package org.atalk.xryptomail.activity; import android.app.AlertDialog; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.widget.AbsoluteLayout; import android.widget.ImageView; import org.atalk.xryptomail.R; import org.atalk.xryptomail.view.ColorPicker; import timber.log.Timber; /** * Dialog displaying a color picker. */ public class ColorPickerDialog extends AlertDialog { private static final String BUNDLE_KEY_PARENT_BUNDLE = "parent"; private static final String BUNDLE_KEY_COLOR_OLD = "color_old"; private static final String BUNDLE_KEY_COLOR_NEW = "color_new"; /** * The interface users of {@link ColorPickerDialog} have to implement to learn the selected * color. */ public interface OnColorChangedListener { /** * This is called after the user pressed the "OK" button of the dialog. * * @param color The ARGB value of the selected color. */ void colorChanged(int color); } OnColorChangedListener mColorChangedListener; ColorPicker mColorPicker; ImageView arrow; ImageView viewSpyglass; View viewHue; View viewColorOld; View viewColorNew; int colorOld; int colorNew; float onedp; float hue; float sat; float val; float sizeUiDp = 240.f; float sizeUiPx; // diset di constructor public ColorPickerDialog(Context context, OnColorChangedListener listener, int color) { super(context); mColorChangedListener = listener; initColor(color); onedp = context.getResources().getDimension(R.dimen.colorpicker_onedp); sizeUiPx = sizeUiDp * onedp; Timber.d("onedp = %s, sizeUiPx = %s", onedp, sizeUiPx); //$NON-NLS-1$//$NON-NLS-2$ View view = LayoutInflater.from(context).inflate(R.layout.colorpicker_dialog, null); viewHue = view.findViewById(R.id.colorpicker_viewHue); mColorPicker = view.findViewById(R.id.colorpicker_viewBox); arrow = view.findViewById(R.id.colorpicker_arrow); viewColorOld = view.findViewById(R.id.colorpicker_colorOld); viewColorNew = view.findViewById(R.id.colorpicker_colorNew); viewSpyglass = view.findViewById(R.id.colorpicker_spyglass); updateView(); viewHue.setOnTouchListener((v, event) -> { if (event.getAction() == MotionEvent.ACTION_MOVE || event.getAction() == MotionEvent.ACTION_DOWN || event.getAction() == MotionEvent.ACTION_UP) { float y = event.getY(); // dalam px, bukan dp if (y < 0.f) y = 0.f; if (y > sizeUiPx) y = sizeUiPx - 0.001f; hue = 360.f - 360.f / sizeUiPx * y; if (hue == 360.f) hue = 0.f; colorNew = calculateColor(); // update view mColorPicker.setHue(hue); placeArrow(); viewColorNew.setBackgroundColor(colorNew); return true; } return false; }); mColorPicker.setOnTouchListener((v, event) -> { if (event.getAction() == MotionEvent.ACTION_MOVE || event.getAction() == MotionEvent.ACTION_DOWN || event.getAction() == MotionEvent.ACTION_UP) { float x = event.getX(); // dalam px, bukan dp float y = event.getY(); // dalam px, bukan dp if (x < 0.f) x = 0.f; if (x > sizeUiPx) x = sizeUiPx; if (y < 0.f) y = 0.f; if (y > sizeUiPx) y = sizeUiPx; sat = (1.f / sizeUiPx * x); val = 1.f - (1.f / sizeUiPx * y); colorNew = calculateColor(); // update view placeSpyglass(); viewColorNew.setBackgroundColor(colorNew); return true; } return false; }); this.setView(view); this.setButton(BUTTON_POSITIVE, context.getString(R.string.okay_action), (dialog, which) -> { if (mColorChangedListener != null) { mColorChangedListener.colorChanged(colorNew); } }); this.setButton(BUTTON_NEGATIVE, context.getString(R.string.cancel_action), (OnClickListener) null); } private void updateView() { placeArrow(); placeSpyglass(); mColorPicker.setHue(hue); viewColorOld.setBackgroundColor(colorOld); viewColorNew.setBackgroundColor(colorNew); } private void initColor(int color) { colorNew = color; colorOld = color; Color.colorToHSV(color, tmp01); hue = tmp01[0]; sat = tmp01[1]; val = tmp01[2]; } public void setColor(int color) { initColor(color); updateView(); } @Override public Bundle onSaveInstanceState() { Bundle parentBundle = super.onSaveInstanceState(); Bundle savedInstanceState = new Bundle(); savedInstanceState.putBundle(BUNDLE_KEY_PARENT_BUNDLE, parentBundle); savedInstanceState.putInt(BUNDLE_KEY_COLOR_OLD, colorOld); savedInstanceState.putInt(BUNDLE_KEY_COLOR_NEW, colorNew); return savedInstanceState; } @Override public void onRestoreInstanceState(Bundle savedInstanceState) { Bundle parentBundle = savedInstanceState.getBundle(BUNDLE_KEY_PARENT_BUNDLE); super.onRestoreInstanceState(parentBundle); int color = savedInstanceState.getInt(BUNDLE_KEY_COLOR_NEW); // Sets colorOld, colorNew to color and initializes hue, sat, val from color initColor(color); // Now restore the real colorOld value colorOld = savedInstanceState.getInt(BUNDLE_KEY_COLOR_OLD); updateView(); } @SuppressWarnings("deprecation") protected void placeArrow() { float y = sizeUiPx - (hue * sizeUiPx / 360.f); if (y == sizeUiPx) y = 0.f; AbsoluteLayout.LayoutParams layoutParams = (AbsoluteLayout.LayoutParams) arrow.getLayoutParams(); layoutParams.y = (int) (y + 4); arrow.setLayoutParams(layoutParams); } @SuppressWarnings("deprecation") protected void placeSpyglass() { float x = sat * sizeUiPx; float y = (1.f - val) * sizeUiPx; AbsoluteLayout.LayoutParams layoutParams = (AbsoluteLayout.LayoutParams) viewSpyglass.getLayoutParams(); layoutParams.x = (int) (x + 3); layoutParams.y = (int) (y + 3); viewSpyglass.setLayoutParams(layoutParams); } float[] tmp01 = new float[3]; private int calculateColor() { tmp01[0] = hue; tmp01[1] = sat; tmp01[2] = val; return Color.HSVToColor(tmp01); } }
[ "cmeng.gm@gmail.com" ]
cmeng.gm@gmail.com
98cac8c03ac114a801097f64c4805dd3d5cb8d0e
c7c92f8904b192a28463433e1bd076f82cc9e1a7
/app/src/main/java/edu/aku/hassannaqvi/mapps/SyncForms_Sec4.java
4307d538997d25cea7116665f55e8a5d13c6d781
[]
no_license
shznaqvi/MAPPS
c5b07d807e26814969f722da538263a5d0f2b21d
44e66d38a0d1dec8b8349c6f7a5caa0d66e5149c
refs/heads/master
2021-04-30T23:29:16.349785
2017-01-23T06:31:03
2017-01-23T06:31:03
79,775,094
0
0
null
null
null
null
UTF-8
Java
false
false
6,212
java
package edu.aku.hassannaqvi.mapps; import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.util.Log; import android.widget.ListView; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.List; /** * Created by isd on 05/11/2016. */ public class SyncForms_Sec4 extends AsyncTask<Void, Void, String> { private static final String TAG = "SyncForms_Sec2"; ArrayList<String> arr_members; List<String> mylst; private Context mContext; private ProgressDialog pd; private ListView lstvu; public SyncForms_Sec4(Context context) { mContext = context; } public static void longInfo(String str) { if (str.length() > 4000) { Log.i("TAG: ", str.substring(0, 4000)); longInfo(str.substring(4000)); } else Log.i("TAG: ", str); } @Override protected void onPreExecute() { super.onPreExecute(); pd = new ProgressDialog(mContext); pd.setTitle("Please wait... Processing Forms"); pd.show(); } @Override protected String doInBackground(Void... params) { String line = "No Response"; HttpURLConnection connection = null; try { String request = "http://198.168.1.112:8080/mappsweb/syncdata_sec4.php"; //CVars var = new CVars(); //String request = var.get_url_sync_sec1(); URL url = new URL(request); connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); connection.setInstanceFollowRedirects(false); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("charset", "utf-8"); connection.setUseCaches(false); connection.connect(); JSONArray jsonSync = new JSONArray(); DataOutputStream wr = new DataOutputStream(connection.getOutputStream()); MAPPSHelper db = new MAPPSHelper(mContext); Collection<Section4Contract> forms = db.getAllForms_Sec4(); for (Section4Contract sc : forms) { JSONObject jsonParam = new JSONObject(); jsonParam.put("ID", sc.get_ID()); jsonParam.put("devid", sc.getROW_DEVID()); jsonParam.put("cluster", sc.getROW_S4CLUSTER()); jsonParam.put("lhw", sc.getROW_S4LHW()); jsonParam.put("hh", sc.getROW_S4HH()); jsonParam.put("sno", sc.getROW_SNO()); jsonParam.put("s4q1", sc.getROW_S4Q1()); jsonParam.put("s4q28a", sc.getROW_S4Q28a()); jsonParam.put("s4q28b", sc.getROW_S4Q28b()); jsonParam.put("s4q28c", sc.getROW_S4Q28c()); jsonParam.put("s4q28d", sc.getROW_S4Q28d()); jsonParam.put("s4q28oth", sc.getROW_S4Q28oth()); jsonParam.put("s4q28e", sc.getROW_S4Q28e()); jsonParam.put("s4q28f", sc.getROW_S4Q28f()); jsonParam.put("s4q28f1", sc.getROW_S4Q28f1()); jsonParam.put("s4q28f2", sc.getROW_S4Q28f2()); jsonParam.put("s4q28f3", sc.getROW_S4Q28f3()); jsonParam.put("s4q28f4", sc.getROW_S4Q28f4()); jsonParam.put("s4q28f5", sc.getROW_S4Q28f5()); jsonParam.put("s4q28f6", sc.getROW_S4Q28f6()); jsonParam.put("s4q28f7", sc.getROW_S4Q28f7()); jsonParam.put("s4q28f8", sc.getROW_S4Q28f8()); jsonParam.put("s4q28f9", sc.getROW_S4Q28f9()); jsonParam.put("s4q28g", sc.getROW_S4Q28g()); jsonParam.put("s4q28h", sc.getROW_S4Q28h()); jsonParam.put("uuid", sc.getROW_UID()); jsonSync.put(jsonParam); } wr.writeBytes(jsonSync.toString().replace("\uFEFF", "") + "\n"); longInfo(jsonSync.toString().replace("\uFEFF", "") + "\n"); wr.flush(); int HttpResult = connection.getResponseCode(); if (HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader( connection.getInputStream(), "utf-8")); StringBuffer sb = new StringBuffer(); while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println("" + sb.toString()); return sb.toString(); } else { System.out.println(connection.getResponseMessage()); return connection.getResponseMessage(); } } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (connection != null) connection.disconnect(); } return line; } @Override protected void onPostExecute(String result) { super.onPostExecute(result); if (result == "" || result == null) { pd.setMessage("Data synchronized successfully - Section 4"); } else { pd.setMessage("Error: Data not synchronized - Section 4 \r\n\r\n" + result); } //ArrayAdapter<String> lstadapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mylst); //lstvu.setAdapter(lstadapter); //pd.setMessage("Server Response: " + result); //pd.setTitle("Please wait... Done Forms"); //pd.show(); } }
[ "shznaqvi@gmail.com" ]
shznaqvi@gmail.com
fd5d5d5c3ef15048a92730073673dd87378a792a
7e6d4f51886bcdc4de1ffc7af5909391beeab926
/hap-core/src/main/java/com/hand/hap/security/crypto/encrypt/BytesEncryptor.java
e5ade9e166749c79007c7952674217279d74ab23
[]
no_license
cqyjitb/imfgnet356
b68f2b81010910198a248ab8e3283fae8a13b96b
4c599266aa1e7020e664abb24d6d53f5ad5bdc7e
refs/heads/master
2022-12-27T18:10:51.791100
2019-07-06T08:02:03
2019-07-06T08:02:03
195,488,805
1
5
null
2022-12-16T08:52:01
2019-07-06T02:31:22
JavaScript
UTF-8
Java
false
false
435
java
package com.hand.hap.security.crypto.encrypt; /** * @author shiliyan */ public interface BytesEncryptor { /** * 加密. * * @param paramArrayOfByte 二进制密码 * @return 加密后密码 */ byte[] encrypt(byte[] paramArrayOfByte); /** * 解密. * * @param paramArrayOfByte 二进制密码 * @return 解密后密码 */ byte[] decrypt(byte[] paramArrayOfByte); }
[ "17924529@qq.com" ]
17924529@qq.com
4368434cf0e9c733fff31c609bfcb1a7c8e0734c
0d190fa3fcfa18754a94edb93affe29e12e2e314
/src/main/java/ru/yusdm/javacore/lesson8setandcomparator/lesson/itratemap/DemoIterateMap.java
537d1f08dcfe1f566497afc7ebc15a44166f2c94
[]
no_license
DmitryYusupov/javacore
758a736393ddff81576461b3f221dd3d86bbea85
1a61d8ac9f3764725374848ca914bd6915a16e7e
refs/heads/master
2020-04-22T20:44:28.691624
2019-04-20T20:36:13
2019-04-20T20:36:13
170,650,587
7
7
null
null
null
null
UTF-8
Java
false
false
1,586
java
package ru.yusdm.javacore.lesson8setandcomparator.lesson.itratemap; import java.util.*; /** * Created by Admin on 3/4/2019. */ public class DemoIterateMap { public static void main(String[] args) { Map<String, Integer> map = new HashMap<>(); map.put("a", 1); map.put("b", 2); map.put("c", 3); map.forEach((key, value) -> { System.out.println("Key " + key + "; Value " + value); }); System.out.println("-----Demo with set-------------"); System.out.println("Get all keys"); System.out.println(map.keySet()); System.out.println(map.values()); System.out.println(map.values().getClass()); System.out.println("---Demo get all keys and values----"); Set<Map.Entry<String, Integer>> entries = map.entrySet(); for (Map.Entry<String, Integer> entry : entries) { System.out.println("Entry key: " + entry.getKey() + "; entry getValue " + entry.getValue()); } for (Map.Entry<String, Integer> entry : entries) { if (new HashSet<>(Arrays.asList("a", "b")).contains(entry.getKey())) { // map.remove(entry.getKey()); } } Iterator<Map.Entry<String, Integer>> iterator = entries.iterator(); while (iterator.hasNext()) { Map.Entry<String, Integer> next = iterator.next(); if (new HashSet<>(Arrays.asList("a", "b")).contains(next.getKey())) { iterator.remove(); } } System.out.println(map.size()); } }
[ "usikovich@mail.ru" ]
usikovich@mail.ru
a62464e4abd4dba294ff33d13cdee3185baeec84
52b0106e78cede2b898cee16370a415b3f77abbd
/doma-interface-domain-sample/src/main/java/sample/Hoge.java
a1da4167f1e1fdcb7be0e1dd89d4594c9e4f7c9d
[ "MIT" ]
permissive
giruzou/sandbox
9d74746b40e8da7ab81fdd460815e54dc54db6d8
a5bcbcd1e505812e6917a78dda8163fbb50b4eba
refs/heads/master
2021-04-27T01:27:35.872424
2018-02-23T13:09:17
2018-02-23T13:09:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
364
java
package sample; import java.util.Optional; import org.seasar.doma.Domain; //自動生成対象となるインターフェース @Domain(valueType = String.class, factoryMethod = "valueOf") public interface Hoge { String getValue(); static Hoge valueOf(String value) { return Optional.ofNullable(value).map(HogeImpl::new).orElse(null); } }
[ "backpaper0@gmail.com" ]
backpaper0@gmail.com
3bdc7bfe8d34b9cf9114d95d9df98c6fd3f1d4ce
2322058e3391abe9d1d0ac3e5a1187e29139ac1e
/src/main/java/edj/BufferException.java
fbab6be5525c15911dc8328a5a1016f7f4af0354
[ "BSD-2-Clause" ]
permissive
Kytech/edj
fda41db968547c5366b185884a4a0eafb7b73b07
89a24c55fa7d10185476fac9cb0bd05c35e40246
refs/heads/master
2023-03-08T02:11:00.069251
2021-02-10T03:30:31
2021-02-10T03:30:31
319,211,300
0
0
null
2020-12-07T05:15:23
2020-12-07T05:15:23
null
UTF-8
Java
false
false
239
java
package edj; public class BufferException extends RuntimeException { private static final long serialVersionUID = 1L; BufferException(String mesg) { super(mesg); } BufferException(String mesg, Throwable t) { super(mesg, t); } }
[ "ian@darwinsys.com" ]
ian@darwinsys.com
0d3f92b3029e3c6b955c7d754352cf935e99fbfb
6e6db7db5aa823c77d9858d2182d901684faaa24
/sample/webservice/HelloeBayShopping/src/ebay/apis/eblbasecomponents/ShippingTypeCodeType.java
290b609028177db66793378d4c8b2be4176ce025
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
4everalone/nano
68a480d07d80f0f50d73ec593443bfb362d646aa
71779b1ad546663ee90a29f1c2d4236a6948a621
refs/heads/master
2020-12-25T14:08:08.303942
2013-07-25T13:28:41
2013-07-25T13:28:41
10,792,684
0
1
Apache-2.0
2019-04-24T20:12:27
2013-06-19T13:14:26
Java
UTF-8
Java
false
false
3,226
java
// Generated by xsd compiler for android/java // DO NOT CHANGE! package ebay.apis.eblbasecomponents; /** * * The shipping cost model offered by the seller. * */ public enum ShippingTypeCodeType { /** * * The flat rate shipping model: the seller establishes the cost of shipping and cost of * shipping insurance, regardless of what any buyer-selected shipping service * might charge the seller. * */ FLAT("Flat"), /** * * The calculated shipping model: the posted cost of shipping is based on the * seller-offered and buyer-selected shipping service, where the shipping costs * are calculated by eBay and the shipping carrier based on the buyer's address, * and any packaging/handling costs established by the seller are automatically * rolled into the total. * */ CALCULATED("Calculated"), /** * * The freight shipping model: the cost of shipping is determined by a third * party, FreightQuote.com, based on the item location (zip code). Currently, * Freight can only be specified on input via eBay Web site, not via API. * */ FREIGHT("Freight"), /** * * Free is used when the seller is declaring that shipping is free for the buyer. * Since Free cannot be selected via API, the seller has two options for * signifying that shipping is free when listing an item: * <br> * - omit shipping details, mention in the item description that shipping is * free, and set ShippingTermsInDescription to true * <br> * - select an arbitrary shipping service and set its shipping cost to 0, mention * in the item description that shipping is free, and set * ShippingTermsInDescription to true * <br> * The latter is a better way to communicate "free shipping" because eBay picks * up the "0" cost and can more accurately identify shipping costs in search * results. * */ FREE("Free"), /** * * The seller did not specify the shipping type. * */ NOT_SPECIFIED("NotSpecified"), /** * * The seller specified one or more flat domestic shipping services * and one or more calculated international shipping services. * */ FLAT_DOMESTIC_CALCULATED_INTERNATIONAL("FlatDomesticCalculatedInternational"), /** * * The seller specified one or more calculated domestic shipping services * and one or more flat international shipping services. * */ CALCULATED_DOMESTIC_FLAT_INTERNATIONAL("CalculatedDomesticFlatInternational"), /** * * Placeholder value. See * <a href="types/simpleTypes.html#token">token</a>. * */ CUSTOM_CODE("CustomCode"); private final String value; ShippingTypeCodeType(String v) { value = v; } public String value() { return value; } public static ShippingTypeCodeType fromValue(String v) { if (v != null) { for (ShippingTypeCodeType c: ShippingTypeCodeType.values()) { if (c.value.equals(v)) { return c; } } } throw new IllegalArgumentException(v); } }
[ "51startup@sina.com" ]
51startup@sina.com
3aacac9a65d154a2c2eaac7d1641f9e2a744f950
c9d17897eedd6615cd0ab30b4683fd5b2ced95d9
/sla-enforcement/src/main/java/eu/atos/sla/evaluation/guarantee/DummyBusinessValuesEvaluator.java
c8f34c303f667d6e39c996eef49f4e688a92c2af
[ "Apache-2.0" ]
permissive
vladdie/modaclouds-sla-core
b72186df39d413ceb104fa24ca1d23c1719e96c6
1102885bebcb5531b84fe4e87c95484dafe6e6b5
refs/heads/master
2021-01-23T02:18:59.352432
2015-11-05T23:35:07
2015-11-05T23:35:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,312
java
/** * Copyright 2015 Atos * Contact: Atos <roman.sosa@atos.net> * * 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 eu.atos.sla.evaluation.guarantee; import java.util.Collections; import java.util.Date; import java.util.List; import eu.atos.sla.datamodel.IAgreement; import eu.atos.sla.datamodel.ICompensation; import eu.atos.sla.datamodel.IGuaranteeTerm; import eu.atos.sla.datamodel.IViolation; /** * Business evaluator that does nothing. * * @author rsosa */ public class DummyBusinessValuesEvaluator implements IBusinessValuesEvaluator { @Override public List<ICompensation> evaluate(IAgreement agreement, IGuaranteeTerm term, List<IViolation> violations, Date now) { return Collections.emptyList(); } }
[ "roman.sosa@atos.net" ]
roman.sosa@atos.net
24e31524de9c5f1f68ecc7a27d407d026da62cf0
cbb75ebbee3fb80a5e5ad842b7a4bb4a5a1ec5f5
/com/jd/fridge/bean/requestBody/AddGoodsList.java
3affb8fbaf9007c575c9a90adfb5884b98894285
[]
no_license
killbus/jd_decompile
9cc676b4be9c0415b895e4c0cf1823e0a119dcef
50c521ce6a2c71c37696e5c131ec2e03661417cc
refs/heads/master
2022-01-13T03:27:02.492579
2018-05-14T11:21:30
2018-05-14T11:21:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
324
java
package com.jd.fridge.bean.requestBody; /* compiled from: TbsSdkJava */ public class AddGoodsList { private String alarms; private long feed_id; private String pin; public AddGoodsList(String str, long j, String str2) { this.pin = str; this.feed_id = j; this.alarms = str2; } }
[ "13511577582@163.com" ]
13511577582@163.com
22834d4c14a1b7338cf5893cfed8d523752c2a70
2e5ee78d810aae26a05788f2403037ef24f7d664
/src/test/java/com/jhtest/app/service/mapper/UserMapperTest.java
25b3c5ba95a80518cc7a71ee355941411f90fbac
[]
no_license
l7777777b/jh-library-oauth
41766d483b7bbc13bd0e0c6a60508b0c029e5477
9960af6c263984f9810e899e3c56bb7fd267ab44
refs/heads/master
2022-06-17T18:33:56.488538
2020-05-10T02:49:07
2020-05-10T02:49:07
262,699,368
0
0
null
2020-05-10T02:49:08
2020-05-10T02:46:28
Java
UTF-8
Java
false
false
4,210
java
package com.jhtest.app.service.mapper; import static org.assertj.core.api.Assertions.assertThat; import com.jhtest.app.domain.User; import com.jhtest.app.service.dto.UserDTO; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; /** * Unit tests for {@link UserMapper}. */ public class UserMapperTest { private static final String DEFAULT_LOGIN = "johndoe"; private static final String DEFAULT_ID = "id1"; private UserMapper userMapper; private User user; private UserDTO userDto; @BeforeEach public void init() { userMapper = new UserMapper(); user = new User(); user.setLogin(DEFAULT_LOGIN); user.setActivated(true); user.setEmail("johndoe@localhost"); user.setFirstName("john"); user.setLastName("doe"); user.setImageUrl("image_url"); user.setLangKey("en"); userDto = new UserDTO(user); } @Test public void usersToUserDTOsShouldMapOnlyNonNullUsers() { List<User> users = new ArrayList<>(); users.add(user); users.add(null); List<UserDTO> userDTOS = userMapper.usersToUserDTOs(users); assertThat(userDTOS).isNotEmpty(); assertThat(userDTOS).size().isEqualTo(1); } @Test public void userDTOsToUsersShouldMapOnlyNonNullUsers() { List<UserDTO> usersDto = new ArrayList<>(); usersDto.add(userDto); usersDto.add(null); List<User> users = userMapper.userDTOsToUsers(usersDto); assertThat(users).isNotEmpty(); assertThat(users).size().isEqualTo(1); } @Test public void userDTOsToUsersWithAuthoritiesStringShouldMapToUsersWithAuthoritiesDomain() { Set<String> authoritiesAsString = new HashSet<>(); authoritiesAsString.add("ADMIN"); userDto.setAuthorities(authoritiesAsString); List<UserDTO> usersDto = new ArrayList<>(); usersDto.add(userDto); List<User> users = userMapper.userDTOsToUsers(usersDto); assertThat(users).isNotEmpty(); assertThat(users).size().isEqualTo(1); assertThat(users.get(0).getAuthorities()).isNotNull(); assertThat(users.get(0).getAuthorities()).isNotEmpty(); assertThat(users.get(0).getAuthorities().iterator().next().getName()).isEqualTo("ADMIN"); } @Test public void userDTOsToUsersMapWithNullAuthoritiesStringShouldReturnUserWithEmptyAuthorities() { userDto.setAuthorities(null); List<UserDTO> usersDto = new ArrayList<>(); usersDto.add(userDto); List<User> users = userMapper.userDTOsToUsers(usersDto); assertThat(users).isNotEmpty(); assertThat(users).size().isEqualTo(1); assertThat(users.get(0).getAuthorities()).isNotNull(); assertThat(users.get(0).getAuthorities()).isEmpty(); } @Test public void userDTOToUserMapWithAuthoritiesStringShouldReturnUserWithAuthorities() { Set<String> authoritiesAsString = new HashSet<>(); authoritiesAsString.add("ADMIN"); userDto.setAuthorities(authoritiesAsString); User user = userMapper.userDTOToUser(userDto); assertThat(user).isNotNull(); assertThat(user.getAuthorities()).isNotNull(); assertThat(user.getAuthorities()).isNotEmpty(); assertThat(user.getAuthorities().iterator().next().getName()).isEqualTo("ADMIN"); } @Test public void userDTOToUserMapWithNullAuthoritiesStringShouldReturnUserWithEmptyAuthorities() { userDto.setAuthorities(null); User user = userMapper.userDTOToUser(userDto); assertThat(user).isNotNull(); assertThat(user.getAuthorities()).isNotNull(); assertThat(user.getAuthorities()).isEmpty(); } @Test public void userDTOToUserMapWithNullUserShouldReturnNull() { assertThat(userMapper.userDTOToUser(null)).isNull(); } @Test public void testUserFromId() { assertThat(userMapper.userFromId(DEFAULT_ID).getId()).isEqualTo(DEFAULT_ID); assertThat(userMapper.userFromId(null)).isNull(); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
bbe3994afb5a37c94e852124e21d528abbd8ac6b
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
/tags/2011-12-23/seasar2-2.4.45/s2-tiger/src/main/java/org/seasar/extension/dxo/annotation/ExcludeWhitespace.java
367314e8c155bb959ce3e7601a0c34ed2d50293f
[ "Apache-2.0" ]
permissive
svn2github/s2container
54ca27cf0c1200a93e1cb88884eb8226a9be677d
625adc6c4e1396654a7297d00ec206c077a78696
refs/heads/master
2020-06-04T17:15:02.140847
2013-08-09T09:38:15
2013-08-09T09:38:15
10,850,644
0
1
null
null
null
null
UTF-8
Java
false
false
1,207
java
/* * Copyright 2004-2011 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.seasar.extension.dxo.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 変換元プロパティまたは<code>Map</code>の値が空白(スペース,復帰,改行,タブ文字のみ)の場合に変換から除外することを指定します。 * * @author koichik */ @Retention(RetentionPolicy.RUNTIME) @Target( { ElementType.TYPE, ElementType.METHOD }) public @interface ExcludeWhitespace { }
[ "koichik@319488c0-e101-0410-93bc-b5e51f62721a" ]
koichik@319488c0-e101-0410-93bc-b5e51f62721a
8769ebdfb24315717b0c752382048b2289ea2316
13c371fffd8c0ecd5e735755e7337a093ac00e30
/com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_MassParalyze.java
2ef73ac7385020d3ef5ab90df0927dd2ed4ee482
[ "Apache-2.0" ]
permissive
z3ndrag0n/CoffeeMud
e6b0c58953e47eb58544039b0781e4071a016372
50df765daee37765e76a1632a04c03f8a96d8f40
refs/heads/master
2020-09-15T10:27:26.511725
2019-11-18T15:41:42
2019-11-18T15:41:42
223,416,916
1
0
Apache-2.0
2019-11-22T14:09:54
2019-11-22T14:09:53
null
UTF-8
Java
false
false
4,482
java
package com.planet_ink.coffee_mud.Abilities.Prayers; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; /* Copyright 2001-2019 Bo Zimmerman 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. */ public class Prayer_MassParalyze extends Prayer { @Override public String ID() { return "Prayer_MassParalyze"; } private final static String localizedName = CMLib.lang().L("Mass Paralyze"); @Override public String name() { return localizedName; } @Override public int classificationCode() { return Ability.ACODE_PRAYER|Ability.DOMAIN_CORRUPTION; } @Override public int abstractQuality() { return Ability.QUALITY_MALICIOUS; } @Override public long flags() { return Ability.FLAG_UNHOLY|Ability.FLAG_PARALYZING; } private final static String localizedStaticDisplay = CMLib.lang().L("(Paralyzed)"); @Override public String displayText() { return localizedStaticDisplay; } @Override public void affectPhyStats(final Physical affected, final PhyStats affectableStats) { super.affectPhyStats(affected,affectableStats); if(affected==null) return; if(!(affected instanceof MOB)) return; affectableStats.setSensesMask(affectableStats.sensesMask()|PhyStats.CAN_NOT_MOVE); } @Override public void unInvoke() { // undo the affects of this spell if(!(affected instanceof MOB)) return; final MOB mob=(MOB)affected; super.unInvoke(); if(canBeUninvoked()) mob.tell(L("The paralysis eases out of your muscles.")); } @Override public boolean invoke(final MOB mob, final List<String> commands, final Physical givenTarget, final boolean auto, final int asLevel) { if(!super.invoke(mob,commands,givenTarget,auto,asLevel)) return false; final Set<MOB> h=properTargets(mob,givenTarget,auto); if(h==null) return false; boolean success=proficiencyCheck(mob,0,auto); boolean nothingDone=true; if(success) { for (final Object element : h) { final MOB target=(MOB)element; final CMMsg msg=CMClass.getMsg(mob,target,this,verbalCastCode(mob,target,auto)|CMMsg.MASK_MALICIOUS,auto?"":L("^S<S-NAME> @x1 an unholy paralysis upon <T-NAMESELF>.^?",prayForWord(mob))); final CMMsg msg2=CMClass.getMsg(mob,target,this,CMMsg.MASK_MALICIOUS|CMMsg.TYP_PARALYZE|(auto?CMMsg.MASK_ALWAYS:0),null); if((target!=mob)&&(mob.location().okMessage(mob,msg))&&(mob.location().okMessage(mob,msg2))) { int levelDiff=target.phyStats().level()-(mob.phyStats().level()+(2*getXLEVELLevel(mob))); if(levelDiff<0) levelDiff=0; if(levelDiff>6) levelDiff=6; mob.location().send(mob,msg); mob.location().send(mob,msg2); if((msg.value()<=0)&&(msg2.value()<=0)) { success=maliciousAffect(mob,target,asLevel,8-levelDiff,-1)!=null; mob.location().show(target,null,CMMsg.MSG_OK_VISUAL,L("<S-NAME> can't move!")); } nothingDone=false; } } } if(nothingDone) return maliciousFizzle(mob,null,L("<S-NAME> attempt(s) to paralyze everyone, but flub(s) it.")); // return whether it worked return success; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
c49110270685103ca5ec19dd2ab4d55746892720
b98514eaefbc30b7b573922bd09887162d31aedd
/feep-media/src/main/java/cn/flyrise/feep/media/record/camera/state/BorrowPictureState.java
9ac78f78aca2b2e7154a41010cbdbca2a6fa03be
[]
no_license
mofangwan23/LimsOA
c7a6c664531fcd8b950aed62d02f8a5fe6ca233c
37da27081432a719fddd1a7784f9a2f29274a083
refs/heads/main
2023-05-29T22:25:44.839145
2021-06-18T09:41:17
2021-06-18T09:41:17
363,003,883
3
2
null
null
null
null
UTF-8
Java
false
false
1,748
java
package cn.flyrise.feep.media.record.camera.state; import android.view.Surface; import android.view.SurfaceHolder; import cn.flyrise.feep.media.record.camera.CameraInterface; import cn.flyrise.feep.media.record.camera.JCameraView; public class BorrowPictureState implements State { private final String TAG = "BorrowPictureState"; private CameraMachine machine; public BorrowPictureState(CameraMachine machine) { this.machine = machine; } @Override public void start(SurfaceHolder holder, float screenProp) { CameraInterface.getInstance().doStartPreview(holder, screenProp); machine.setState(machine.getPreviewState()); } @Override public void stop() { } @Override public void foucs(float x, float y, CameraInterface.FocusCallback callback) { } @Override public void swtich(SurfaceHolder holder, float screenProp) { } @Override public void restart() { } @Override public void capture() { } @Override public void record(Surface surface,float screenProp) { } @Override public void stopRecord(boolean isShort, long time) { } @Override public void cancle(SurfaceHolder holder, float screenProp) { CameraInterface.getInstance().doStartPreview(holder, screenProp); machine.getView().resetState(JCameraView.TYPE_PICTURE); machine.setState(machine.getPreviewState()); } @Override public void confirm() { machine.getView().confirmState(JCameraView.TYPE_PICTURE); machine.setState(machine.getPreviewState()); } @Override public void zoom(float zoom, int type) { } @Override public void flash(String mode) { } }
[ "mofangwan23@gmail.com" ]
mofangwan23@gmail.com
85d433a707243836ac94d872f0ff7b05f75247f1
ea7f3017e537d7f8c06d8308e13a53f1d67a488d
/nanoverse/compiler/pipeline/instantiate/loader/processes/discrete/filter/DepthFilterInterpolator.java
8392436391af3e864034321e5998bcbd1332e9eb
[]
no_license
avaneeshnarla/Nanoverse-Source
fc87600af07b586e382fff4703c20378abbd7171
2f8585256bb2e09396a2baf3ec933cb7338a933f
refs/heads/master
2020-05-25T23:25:42.321611
2017-02-16T18:16:31
2017-02-16T18:16:31
61,486,158
0
0
null
null
null
null
UTF-8
Java
false
false
1,567
java
/* * Nanoverse: a declarative agent-based modeling language for natural and * social science. * * Copyright (c) 2015 David Bruce Borenstein and Nanoverse, LLC. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> */ package nanoverse.compiler.pipeline.instantiate.loader.processes.discrete.filter; import nanoverse.compiler.pipeline.instantiate.helpers.LoadHelper; import nanoverse.compiler.pipeline.translate.nodes.MapObjectNode; import nanoverse.runtime.control.arguments.IntegerArgument; import java.util.Random; /** * Created by dbborens on 8/24/2015. */ public class DepthFilterInterpolator { private final LoadHelper load; public DepthFilterInterpolator() { load = new LoadHelper(); } public DepthFilterInterpolator(LoadHelper load) { this.load = load; } public IntegerArgument depth(MapObjectNode node, Random random) { return load.anIntegerArgument(node, "depth", random); } }
[ "avaneesh.narla@gmail.com" ]
avaneesh.narla@gmail.com
863800b4e15fe53740695b68e38902acdb8134a3
23d343c5a7d982697ba539de76c24a03e6fd9b0d
/459/Solution.java
bf8be7f0ad0b569d660a1ef8edc2c92698146026
[]
no_license
yanglin0883/leetcode
5050e4062aea6c3070a54843e07d5a09a592eda2
851d3bec58d61ed908d8c33c31d309ff204e1643
refs/heads/master
2022-12-05T23:50:39.822841
2020-08-21T17:13:16
2020-08-21T17:13:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
486
java
class Solution { public boolean repeatedSubstringPattern(String s) { if(s==null||s.length()<2) return false; int n = s.length(); T1:for(int i=1;i<=n/2;i++){ if(n%i!=0) continue; //s1=s.substring(0,i); for(int j=0;j<n;j+=i){ for(int a=0;a<i;a++){ if(s.charAt(a+j)!=s.charAt(a)) continue T1; } } return true; } return false; } }
[ "yanglin0883@gmail.com" ]
yanglin0883@gmail.com
5c1d999c7ac8c45bec7905051f88a490a107d141
6e221fdfe75008ec333e5378cd8eb29d117c56f9
/services/esoko-payload/src/main/java/com/iexceed/esoko/jaxb/ss/SubscripInvoiceUpgradeReqWrap.java
2b6b464338df40b6dd63dc6d5ddfa30573729af3
[]
no_license
siddhartha-Infy01/my-ref-code
3a7b90162681d4e499375567ef0811752d054a20
1b321808a6c8d66a6ccd21dc86b57277d14b1162
refs/heads/master
2021-01-21T12:30:48.304123
2017-05-19T10:41:54
2017-05-19T10:41:54
91,796,009
0
0
null
null
null
null
UTF-8
Java
false
false
2,302
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.12.27 at 02:09:59 PM IST // package com.iexceed.esoko.jaxb.ss; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for subscripInvoiceUpgradeReqWrap element declaration. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;element name="subscripInvoiceUpgradeReqWrap"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="subscripInvoiceUpgradeReq" type="{http://www.iexceed.com/subscripInvoiceUpgrade}subscripInvoiceUpgradeReq"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "subscripInvoiceUpgradeReq" }) @XmlRootElement(name = "subscripInvoiceUpgradeReqWrap") public class SubscripInvoiceUpgradeReqWrap { @XmlElement(namespace = "http://www.iexceed.com/subscripInvoiceUpgrade", required = true) protected SubscripInvoiceUpgradeReq subscripInvoiceUpgradeReq; /** * Gets the value of the subscripInvoiceUpgradeReq property. * * @return * possible object is * {@link SubscripInvoiceUpgradeReq } * */ public SubscripInvoiceUpgradeReq getSubscripInvoiceUpgradeReq() { return subscripInvoiceUpgradeReq; } /** * Sets the value of the subscripInvoiceUpgradeReq property. * * @param value * allowed object is * {@link SubscripInvoiceUpgradeReq } * */ public void setSubscripInvoiceUpgradeReq(SubscripInvoiceUpgradeReq value) { this.subscripInvoiceUpgradeReq = value; } }
[ "spatasha@cisco.com" ]
spatasha@cisco.com
49a8246f7fff098da7e5adecfeab35dcef7d488a
73458087c9a504dedc5acd84ecd63db5dfcd5ca1
/src/android/support/v4/app/NotificationCompat$CarExtender$UnreadConversation$Builder.java
7b560c9f076a1bf5e4c2627b4abdc90be527f1d9
[]
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
1,586
java
package android.support.v4.app; import android.app.PendingIntent; import java.util.ArrayList; import java.util.List; public class NotificationCompat$CarExtender$UnreadConversation$Builder { private final List<String> a = new ArrayList(); private final String b; private bw c; private PendingIntent d; private PendingIntent e; private long f; public NotificationCompat$CarExtender$UnreadConversation$Builder(String paramString) { b = paramString; } public Builder addMessage(String paramString) { a.add(paramString); return this; } public NotificationCompat.CarExtender.UnreadConversation build() { String[] arrayOfString = (String[])a.toArray(new String[a.size()]); String str = b; bw localbw = c; PendingIntent localPendingIntent1 = e; PendingIntent localPendingIntent2 = d; long l = f; return new NotificationCompat.CarExtender.UnreadConversation(arrayOfString, localbw, localPendingIntent1, localPendingIntent2, new String[] { str }, l); } public Builder setLatestTimestamp(long paramLong) { f = paramLong; return this; } public Builder setReadPendingIntent(PendingIntent paramPendingIntent) { d = paramPendingIntent; return this; } public Builder setReplyAction(PendingIntent paramPendingIntent, bw parambw) { c = parambw; e = paramPendingIntent; return this; } } /* Location: * Qualified Name: android.support.v4.app.NotificationCompat.CarExtender.UnreadConversation.Builder * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
581dd50ad236c441651f15b5655f4725a7a725a3
bd5580d2110f89c17ca21c0f798b536231a5545e
/src/test/java/io/lettuce/core/output/GeoWithinListOutputUnitTests.java
fc13573c9fcb2c5eb75a7d2d93ccfc22b39d9d16
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dengliming/lettuce-core
5de501889bb74e6fcb1cec364898ed1af48127bb
0e2649fefd560dd5146a74065437fef0593d75cc
refs/heads/master
2022-07-24T11:38:54.981473
2020-02-15T00:53:52
2020-02-15T00:53:52
240,516,093
2
0
Apache-2.0
2020-05-27T08:34:54
2020-02-14T13:37:35
Java
UTF-8
Java
false
false
3,152
java
/* * Copyright 2011-2020 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.lettuce.core.output; import static org.assertj.core.api.Assertions.assertThat; import java.nio.ByteBuffer; import org.junit.jupiter.api.Test; import io.lettuce.core.GeoCoordinates; import io.lettuce.core.GeoWithin; import io.lettuce.core.codec.RedisCodec; import io.lettuce.core.codec.StringCodec; /** * @author Mark Paluch */ class GeoWithinListOutputUnitTests { private GeoWithinListOutput<String, String> sut = new GeoWithinListOutput<>(StringCodec.UTF8, false, false, false); @Test void defaultSubscriberIsSet() { sut.multi(1); assertThat(sut.getSubscriber()).isNotNull().isInstanceOf(ListSubscriber.class); } @Test void commandOutputKeyOnlyDecoded() { sut.multi(1); sut.set(ByteBuffer.wrap("key".getBytes())); sut.set(ByteBuffer.wrap("4.567".getBytes())); sut.complete(1); assertThat(sut.get()).contains(new GeoWithin<>("key", null, null, null)); } @Test void commandOutputKeyAndDistanceDecoded() { sut = new GeoWithinListOutput<>(StringCodec.UTF8, true, false, false); sut.multi(1); sut.set(ByteBuffer.wrap("key".getBytes())); sut.set(ByteBuffer.wrap("4.567".getBytes())); sut.complete(1); assertThat(sut.get()).contains(new GeoWithin<>("key", 4.567, null, null)); } @Test void commandOutputKeyAndHashDecoded() { sut = new GeoWithinListOutput<>(StringCodec.UTF8, false, true, false); sut.multi(1); sut.set(ByteBuffer.wrap("key".getBytes())); sut.set(4567); sut.complete(1); assertThat(sut.get()).contains(new GeoWithin<>("key", null, 4567L, null)); } @Test void commandOutputLongKeyAndHashDecoded() { GeoWithinListOutput<Long, Long> sut = new GeoWithinListOutput<>((RedisCodec) StringCodec.UTF8, false, true, false); sut.multi(1); sut.set(1234); sut.set(4567); sut.complete(1); assertThat(sut.get()).contains(new GeoWithin<>(1234L, null, 4567L, null)); } @Test void commandOutputKeyAndCoordinatesDecoded() { sut = new GeoWithinListOutput<>(StringCodec.UTF8, false, false, true); sut.multi(1); sut.set(ByteBuffer.wrap("key".getBytes())); sut.set(ByteBuffer.wrap("1.234".getBytes())); sut.set(ByteBuffer.wrap("4.567".getBytes())); sut.complete(1); assertThat(sut.get()).contains(new GeoWithin<>("key", null, null, new GeoCoordinates(1.234, 4.567))); } }
[ "mpaluch@paluch.biz" ]
mpaluch@paluch.biz
fbfa6b22ac9ad01dd582feda01f3286723a44d9e
984fc1e27980a3b4a038e713694154555040612d
/src/main/java/demo/bio/TimeClient.java
ccc81cc22a681d4655ee7fa794fe67a74e582218
[]
no_license
dongguilin/NettyDemo
52aebc7885f846f1f3087da182d2ec3e38ed19f2
6d1a333091deffa1bdedca949d9ffd9201ab01a1
refs/heads/master
2021-01-10T13:02:38.622915
2016-11-13T08:58:03
2016-11-13T08:58:03
47,482,024
0
0
null
null
null
null
UTF-8
Java
false
false
1,769
java
package demo.bio; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; /** * Created by hadoop on 2015/12/9. * 同步阻塞I/O的TimeClient */ public class TimeClient { public static void main(String[] args) { int port = 8080; if (args != null && args.length > 0) { try { port = Integer.parseInt(args[0]); } catch (NumberFormatException e) { } } Socket socket = null; BufferedReader in = null; PrintWriter out = null; try { socket = new Socket("127.0.0.1", port); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out = new PrintWriter(socket.getOutputStream(), true); out.println("QUERY TIME ORDER"); System.out.println("Send order 2 server succeed."); String resp = in.readLine(); System.out.println("Now is:" + resp); } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if (in != null) { try { in.close(); } catch (IOException e1) { e1.printStackTrace(); } } if (out != null) { out.close(); } if (socket != null) { try { socket.close(); } catch (IOException e1) { e1.printStackTrace(); } } socket = null; } } }
[ "guilin1_happy@163.com" ]
guilin1_happy@163.com
18a4e1ff0678f81c5bb78aef0952728dc2ec6a42
18aa13d7956cc4363f709530e49ffd5c859840b2
/services/src/main/java/com/maoding/storage/entity/ElementEntity.java
089c19da9b1880dde8fcc24543cd3482faf2dcb7
[]
no_license
veicn/md-services
fb8aa68e198637f91bedce5afc4d0f5f2799bf7e
0a1720e55502e8efe81476fe24967820a474bfc9
refs/heads/master
2020-04-10T20:57:59.939939
2018-09-26T06:09:23
2018-09-26T06:09:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
795
java
package com.maoding.storage.entity; import com.maoding.coreBase.CoreEntity; import javax.persistence.Column; import javax.persistence.Table; /** * 深圳市卯丁技术有限公司 * 作 者 : 张成亮 * 日 期 : 2018/3/19 20:04 * 描 述 : */ @Table(name = "md_list_element") public class ElementEntity extends CoreEntity { @Column /** 占位符 */ private String title; @Column /** 元素内容 */ private byte[] dataArray; public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public byte[] getDataArray() { return dataArray; } public void setDataArray(byte[] dataArray) { this.dataArray = dataArray; } }
[ "zhangchengliang@imaoding.com" ]
zhangchengliang@imaoding.com
6e82d63bfb3267a9f141028ceee5c9cb8c19ed13
e1d7896559508d8fd9189ba9006d81ed5785c086
/example/src/main/java/com/fastcode/example/application/core/payment/dto/CreatePaymentInput.java
cba90fab0f525a09f8487329fddca6a9f8e8d9a1
[]
no_license
fastcoderepos/fa-sampleApplication1
612372a9898d4a6ec1dcfad7290019632a1b38a3
8b3b063da74868f7223d52a47784fecf78883e00
refs/heads/master
2023-02-09T23:20:20.643460
2021-01-11T07:16:23
2021-01-11T07:16:23
328,580,070
0
0
null
null
null
null
UTF-8
Java
false
false
611
java
package com.fastcode.example.application.core.payment.dto; import java.time.*; import javax.validation.constraints.NotNull; import java.math.BigDecimal; import lombok.Getter; import lombok.Setter; @Getter @Setter public class CreatePaymentInput { @NotNull(message = "amount Should not be null") private BigDecimal amount; @NotNull(message = "paymentDate Should not be null") private LocalDateTime paymentDate; @NotNull(message = "paymentId Should not be null") private Integer paymentId; private Integer customerId; private Integer rentalId; private Integer staffId; }
[ "info@nfinityllc.com" ]
info@nfinityllc.com