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
8f5f416cf68af6d503d2741b7e25bcc3ab514856
710aff979c2a4151a28757f3c1de0b77dad5df77
/fixture/src/main/java/info/matchingservice/fixture/ProfileElementConfig/ProfileElementChoicesForSupply.java
7746fa8d799972424734bcef5632284e39597b93
[]
no_license
johandoornenbal/matching
b5500eef829e76096bd47a1fb513894a7d2c40df
d17d35d9d21dfafd335b1cfcbbb3f56ad1fceed1
refs/heads/master
2021-01-24T16:10:38.419500
2015-12-15T08:09:18
2015-12-15T08:09:18
21,899,439
0
5
null
2015-04-03T12:59:24
2014-07-16T12:19:12
Java
UTF-8
Java
false
false
3,067
java
/* * Copyright 2015 Yodo Int. Projects and Consultancy * * 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 info.matchingservice.fixture.ProfileElementConfig; import info.matchingservice.dom.Profile.DemandOrSupply; import info.matchingservice.dom.Profile.ProfileElementWidgetType; /** * Created by jodo on 14/06/15. */ public class ProfileElementChoicesForSupply extends ProfileElementChoiceAbstract { @Override protected void execute(ExecutionContext executionContext) { createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.TEXTAREA, "PASSION_ELEMENT", "createPassionElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.TAGS, "BRANCHE_TAGS_ELEMENT", "createBrancheTagElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.TAGS, "QUALITY_TAGS_ELEMENT", "createQualityTagElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.TAGS, "WEEKDAY_TAGS_ELEMENT", "createWeekdayTagElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.TEXT, "LOCATION_ELEMENT", "createLocationElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.NUMBER, "HOURLY_RATE_ELEMENT", "createHourlyRateElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.PREDICATE, "USE_AGE_ELEMENT", "createUseAgeElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.PREDICATE, "USE_TIME_PERIOD_ELEMENT", "createUseTimePeriodElement", executionContext); createElement( DemandOrSupply.SUPPLY, ProfileElementWidgetType.SELECT, "EDUCATION_LEVEL", "createEducationLevelElement", executionContext); } }
[ "johan@filternet.nl" ]
johan@filternet.nl
f88712663b9c96db4e9d6d7b42c25cc336c620fe
2efc3b1d8bb00b40e947edc46da2fdec11f49d49
/src/main/java/zx/soft/similarity/word/hownet/concept/ConceptLinkedList.java
466aa6151197bb905ca46032208f099d13d2c5a3
[]
no_license
CoolWell/semantic-similarity
30e8b990dbecb0d4ca6d90c46d7704a1f7111c33
686499e6c5d662ff636a7b2e35f0ccdb7ecf54d0
refs/heads/master
2021-01-22T19:03:22.495852
2014-10-13T23:28:09
2014-10-13T23:28:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
692
java
package zx.soft.similarity.word.hownet.concept; import java.util.LinkedList; /** * 用于概念处理的LinkedList * * @param <T> * @deprecated */ @Deprecated @SuppressWarnings("serial") public class ConceptLinkedList extends LinkedList<Concept> { /** * 删除链表中最后面的size个元素 * @param size */ public void removeLast(int size) { for (int i = 0; i < size; i++) { this.removeLast(); } } /** * 根据概念的定义判断是否已经加入到链表中 * @param concept */ public void addByDefine(Concept concept) { for (Concept c : this) { if (c.getDefine().equals(concept.getDefine())) { return; } } this.add(concept); } }
[ "krisibm@163.com" ]
krisibm@163.com
5b824fd5d206491c321272ca0724c1ddbc81ec46
f62adbf5c1d1d89a169f5f625804c4571405c77a
/src/main/java/com/lolo/lo/config/FeignConfiguration.java
abed311632608547d2c5e90ad28ddcfac0e43eec
[]
no_license
SabriChtioui/jhipster-sample-application
39eb6939644a3d900bd10193ebb72de02ef45a51
ec78a72246eb2a75ba0dcd08794d893ab9fcdd7e
refs/heads/master
2020-06-26T05:21:19.935718
2019-07-30T00:38:15
2019-07-30T00:38:15
199,545,976
0
0
null
2019-10-31T10:31:36
2019-07-30T00:38:07
Java
UTF-8
Java
false
false
660
java
package com.lolo.lo.config; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.FeignClientsConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; @Configuration @EnableFeignClients(basePackages = "com.lolo.lo") @Import(FeignClientsConfiguration.class) public class FeignConfiguration { /** * Set the Feign specific log level to log client REST requests. */ @Bean feign.Logger.Level feignLoggerLevel() { return feign.Logger.Level.BASIC; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
7bf8a22f938c6950b70bc3132e25ec2e70e27b16
c3debbc571031781ec2f156783ae0d17fb663d90
/qa/carbon-TestAutomation-Framework/component-test-framework/test-components/mediators-switch/src/test/java/org/wso2/carbon/mediator/switchm/test/TestRunner.java
fd66064c168f12624d114f76a792d163c7c58a60
[]
no_license
manoj-kristhombu/commons
1e0b24ed25a21691dfa848b8debaf95a47b9a8e0
4928923d66a345a3dca15c6f2a6f1fe9b246b2e8
refs/heads/master
2021-05-28T15:53:21.146705
2014-11-17T14:53:18
2014-11-17T14:53:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,290
java
package org.wso2.carbon.mediator.switchm.test; /* * Copyright (c) WSO2 Inc. (http://wso2.com) All Rights Reserved. WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ import junit.framework.Test; import junit.framework.TestSuite; import org.wso2.carbon.authenticator.proxy.test.utils.FrameworkSettings; public class TestRunner extends TestSuite { public static Test suite() throws Exception { FrameworkSettings.getProperty(); String frameworkPath = FrameworkSettings.getFrameworkPath(); System.setProperty("java.util.logging.config.file", frameworkPath + "/lib/log4j.properties"); TestSuite testSuite = new TestSuite(); testSuite.addTestSuite(SwitchMediatorTest.class); return testSuite; } }
[ "hasini@a5903396-d722-0410-b921-86c7d4935375" ]
hasini@a5903396-d722-0410-b921-86c7d4935375
2997e2a9d6c1df2e62b35fb11c432ea4faba1536
76237a1a80d637fed910a04a6bea63b600da6c43
/Spring-Security/src/main/webapp/java/com/spring/security/controller/DemoController.java
172002a90bd77cb3368f9eb2a7162a3d3177f47c
[]
no_license
david2999999/Spring-and-Hibernate
e9d0855be08aac2890c9c99be792a0a244e54728
851bb44088b40ca34ec65552ccbac630a429725c
refs/heads/master
2021-09-10T05:29:25.227786
2018-03-21T05:07:46
2018-03-21T05:07:46
116,302,854
2
0
null
null
null
null
UTF-8
Java
false
false
275
java
package com.spring.security.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class DemoController { @GetMapping("/") public String showHome() { return "home"; } }
[ "djiang86@binghamton.edu" ]
djiang86@binghamton.edu
732ce05288b7f7883dabe875df86114cfc972195
8520e57a45c3b8b09a90f6677a4c9d323c628d3b
/- SpringBoot 06-gestaoFesta/src/main/java/com/algaworks/gestaoFesta/repositories/Convidados.java
d9b31b8e1fe4a8e9194fce52811b3bdfd69a8811
[]
no_license
leonarita/Java
e58156f7ef409884a3dfe2c3d8ab84a4b57984f1
7dc31112de4d8006f61f2bda1ce4e2b757bbda54
refs/heads/master
2023-08-18T15:27:43.598098
2022-05-22T15:28:44
2022-05-22T15:28:44
252,060,876
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
package com.algaworks.gestaoFesta.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.algaworks.gestaoFesta.models.ConvidadoFesta; @Repository public interface Convidados extends JpaRepository<ConvidadoFesta, Long> { }
[ "leo_narita@hotmail.com" ]
leo_narita@hotmail.com
4db280a86a805ae1b4ef8401b90648699d207a7d
c0fe21b86f141256c85ab82c6ff3acc56b73d3db
/starshield/src/main/java/com/jdcloud/sdk/service/starshield/client/DeletePageRuleExecutor.java
7638272e363308fde85280ca5ea3786c536535ac
[ "Apache-2.0" ]
permissive
jdcloud-api/jdcloud-sdk-java
3fec9cf552693520f07b43a1e445954de60e34a0
bcebe28306c4ccc5b2b793e1a5848b0aac21b910
refs/heads/master
2023-07-25T07:03:36.682248
2023-07-25T06:54:39
2023-07-25T06:54:39
126,275,669
47
61
Apache-2.0
2023-09-07T08:41:24
2018-03-22T03:41:41
Java
UTF-8
Java
false
false
1,460
java
/* * Copyright 2018 JDCLOUD.COM * * 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. * * Page-Rules-for-a-Zone * A rule describing target patterns for requests and actions to perform on matching requests * * OpenAPI spec version: v1 * Contact: * * NOTE: This class is auto generated by the jdcloud code generator program. */ package com.jdcloud.sdk.service.starshield.client; import com.jdcloud.sdk.client.JdcloudExecutor; import com.jdcloud.sdk.service.JdcloudResponse; import com.jdcloud.sdk.service.starshield.model.DeletePageRuleResponse; /** * 删除页面规则 */ class DeletePageRuleExecutor extends JdcloudExecutor { @Override public String method() { return "DELETE"; } @Override public String url() { return "/zones/{zone_identifier}/pagerules/{identifier}"; } @Override public Class<? extends JdcloudResponse> returnType() { return DeletePageRuleResponse.class; } }
[ "jdcloud-api@jd.com" ]
jdcloud-api@jd.com
c2fc8d6811ab8892673ec7379df957dbc0552b30
1bbf972a15b382bb81a619c70188dca18b827292
/src/main/java/com/manzhizhen/activemq/broker/TopicTest.java
c3055fa2ba4e5a5f18cb63c961f704d8a716d17e
[]
no_license
justfordream/mzz-activemq-study
8f8e9372c943176c0b007b9fad9db0b0a720f3b5
dad5c615a4bc59379f35735b2fef01bd8404745a
refs/heads/master
2016-09-06T19:30:16.281878
2015-09-14T07:07:37
2015-09-14T07:07:37
42,431,865
0
0
null
null
null
null
UTF-8
Java
false
false
3,046
java
/** * */ package com.manzhizhen.activemq.broker; import java.util.concurrent.CountDownLatch; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.JMSException; import javax.jms.MessageConsumer; import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.jms.Topic; import org.apache.activemq.ActiveMQConnectionFactory; /** * @author Manzhizhen * */ public class TopicTest { public static void main(String[] args) { createTopic(); } private static void createTopic() { try { ConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61617"); ConnectionFactory factory1 = new ActiveMQConnectionFactory("tcp://localhost:61618"); Connection connection1 = factory1.createConnection(); Connection connection = factory.createConnection(); connection.setClientID("我爱你"); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session session1 = connection1.createSession(false, Session.AUTO_ACKNOWLEDGE); Queue topic = session.createQueue("TopicTestQueue1"); Queue topic1 = session1.createQueue("TopicTestQueue1"); final MessageConsumer consumer = session.createConsumer(topic); // final MessageConsumer durableConsumer = session.createDurableSubscriber(topic, "我是持久化订阅者"); // final MessageConsumer durableConsumer1 = session.createDurableSubscriber(topic, "我是持久化订阅者2"); // final MessageConsumer durableConsumer = session.createConsumer(topic); // final MessageConsumer durableConsumer1 = session.createConsumer(topic); final MessageConsumer durableConsumer2 = session1.createConsumer(topic1); final MessageConsumer durableConsumer3 = session1.createConsumer(topic1); new Thread(new Runnable() { @Override public void run() { try { while(true) { System.out.println("consumer 接收到:" + ((TextMessage)consumer.receive()).getText()); } } catch (JMSException e) { e.printStackTrace(); } } }).start(); new Thread(new Runnable() { @Override public void run() { try { while(true) { System.out.println("durableConsumer2 接收到:" + ((TextMessage)durableConsumer2.receive()).getText()); } } catch (JMSException e) { e.printStackTrace(); } } }).start(); new Thread(new Runnable() { @Override public void run() { try { while(true) { System.out.println("durableConsumer3 接收到:" + ((TextMessage)durableConsumer3.receive()).getText()); } } catch (JMSException e) { e.printStackTrace(); } } }).start(); connection.start(); connection1.start(); System.out.println("消费者创建完毕!"); CountDownLatch latch = new CountDownLatch(1); latch.await(); } catch (JMSException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("消费者程序结束!"); } }
[ "2323173088@qq.com" ]
2323173088@qq.com
f7f8e67f3e8a9e0b0dc7a8110c6fa27e24fce95e
2f4a058ab684068be5af77fea0bf07665b675ac0
/app/com/facebook/feed/data/ProfileMutator.java
74b2f56f193d07645a8071043f7444f96c4a0593
[]
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,009
java
package com.facebook.feed.data; import com.facebook.graphql.model.GraphQLObjectType; import com.facebook.graphql.model.GraphQLObjectType.ObjectType; import com.facebook.graphql.model.GraphQLProfile; import com.facebook.graphql.model.GraphQLProfile.Builder; import com.google.common.base.Preconditions; public class ProfileMutator { public GraphQLProfile a(GraphQLProfile paramGraphQLProfile) { Preconditions.checkArgument(GraphQLObjectType.ObjectType.Page.equals(paramGraphQLProfile.objectType.a()), "Cannot like a profile that is not a page."); if (!paramGraphQLProfile.doesViewerLike); for (boolean bool = true; ; bool = false) { GraphQLProfile.Builder localBuilder = new GraphQLProfile.Builder().a(paramGraphQLProfile); localBuilder.a(bool); return localBuilder.b(); } } } /* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar * Qualified Name: com.facebook.feed.data.ProfileMutator * JD-Core Version: 0.6.0 */
[ "macluz@msn.com" ]
macluz@msn.com
e0682a79a4dd510cf0127b2c746fda0e11668599
a58a08be16df5d1a361dc8b545ea69f14756f0a0
/src/composite_pattern/used_pattern/Monitor.java
e27b1cec16430b302f5d05ecbd3b69b9cf914932
[]
no_license
LeeSM0518/design-pattern
e0cadbdc067d3aef0c80dea80e3e5bc69e32baf0
4cdc6d23dfa25c58359fe7b80a849dd0affe647e
refs/heads/master
2020-06-22T15:28:34.512321
2020-05-22T03:41:36
2020-05-22T03:41:36
197,737,384
0
0
null
null
null
null
UTF-8
Java
false
false
349
java
package composite_pattern.used_pattern; public class Monitor extends ComputerDevice { private int price; private int power; public Monitor(int price, int power) { this.price = price; this.power = power; } @Override public int getPrice() { return price; } @Override public int getPower() { return power; } }
[ "nalsm98@naver.com" ]
nalsm98@naver.com
ebd0af18387ba565d50ac2659a7a0eaaa5e5e81b
316b58ef4b44d691bb82c14759a126b0a78b053f
/rest/com.paremus.examples.bookshelf.mongo/src/com/paremus/examples/bookshelf/mongo/MongoBookshelfComponent.java
1eb31a8ab9a3763dfbddc6a1f679f8d266de420c
[ "Apache-2.0" ]
permissive
doviche/examples
97f056c55a619dce0eef177cb1a28e00ab726dc7
e5a93606a3c97711fb2202f8232911911cd31b2d
refs/heads/master
2021-01-22T09:32:52.024371
2014-08-26T14:20:36
2014-08-26T14:24:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,860
java
package com.paremus.examples.bookshelf.mongo; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.bndtools.service.endpoint.Endpoint; import aQute.bnd.annotation.component.Activate; import aQute.bnd.annotation.component.Component; import aQute.bnd.annotation.component.Deactivate; import aQute.bnd.annotation.component.Reference; import com.mongodb.BasicDBObject; import com.mongodb.DB; import com.mongodb.DBCollection; import com.mongodb.DBObject; import com.mongodb.Mongo; import com.mongodb.MongoURI; import com.paremus.examples.api.bookshelf.Book; import com.paremus.examples.api.bookshelf.Bookshelf; @Component(immediate = true) public class MongoBookshelfComponent implements Bookshelf { private MongoURI boundUri; private Mongo mongo; private DB db; @Reference(target = "(uri=mongodb:*)") void setEndpoint(Endpoint endpoint, Map<String, String> endpointProps) { boundUri = new MongoURI(endpointProps.get(Endpoint.URI)); } @Activate public void activate() throws Exception { mongo = boundUri.connect(); db = mongo.getDB("test"); System.out.printf("Connected to MongoDB instance at address %s, database %s.%n", boundUri, db.getName()); } @Deactivate public void deactivate() { mongo.close(); System.out.println("Disconnected from " + boundUri); } public void add(Book book) { DBObject object = new BasicDBObject(); object.put("author", book.getAuthor()); object.put("title", book.getTitle()); DBCollection coll = db.getCollection("books"); coll.insert(object); } public List<Book> listBooks() { List<Book> books = new LinkedList<Book>(); DBCollection coll = db.getCollection("books"); for (DBObject object : coll.find()) { Book book = new Book((String) object.get("author"), (String) object.get("title")); books.add(book); } return books; } }
[ "njbartlett@gmail.com" ]
njbartlett@gmail.com
a727a1cc94aee842cd2f3400d59c4d10827d9858
1b50fe1118a908140b6ba844a876ed17ad026011
/core/src/main/java/org/narrative/network/customizations/narrative/invoices/services/CreateWalletTransactionFromPaidInvoiceTaskBase.java
1d208752e944aac56130c335be848f133a650d63
[ "MIT" ]
permissive
jimador/narrative
a6df67a502a913a78cde1f809e6eb5df700d7ee4
84829f0178a0b34d4efc5b7dfa82a8929b5b06b5
refs/heads/master
2022-04-08T13:50:30.489862
2020-03-07T15:12:30
2020-03-07T15:12:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
713
java
package org.narrative.network.customizations.narrative.invoices.services; import org.narrative.network.core.narrative.wallet.WalletTransaction; import org.narrative.network.customizations.narrative.invoices.Invoice; import org.narrative.network.shared.tasktypes.AreaTaskImpl; /** * Date: 2019-05-20 * Time: 07:45 * * @author jonmark */ public abstract class CreateWalletTransactionFromPaidInvoiceTaskBase extends AreaTaskImpl<WalletTransaction> { protected final Invoice invoice; protected CreateWalletTransactionFromPaidInvoiceTaskBase(Invoice invoice) { assert invoice.getStatus().isPaid() : "The provided invoice should be paid by this point!"; this.invoice = invoice; } }
[ "brian@narrative.org" ]
brian@narrative.org
2aaab4aefc9fe3ec6742496e54ae2a8c791b9ee2
3e0d77eedc400f6925ee8c75bf32f30486f70b50
/hibernateapp-spring/src/main/java/com/techchefs/hibernateapp/hql/GetWithProjections.java
996446552e613d24851ac124ead32bb63789ddb4
[]
no_license
sanghante/ELF-06June19-TechChefs-SantoshG
1c1349a1e4dcea33923dda73cdc7e7dbc54f48e6
a13c01aa22e057dad1e39546a50af1be6ab78786
refs/heads/master
2023-01-10T05:58:52.183306
2019-08-14T13:26:12
2019-08-14T13:26:12
192,526,998
0
0
null
2023-01-04T07:13:13
2019-06-18T11:30:13
Rich Text Format
UTF-8
Java
false
false
1,522
java
package com.techchefs.hibernateapp.hql; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.criterion.Projections; import org.springframework.context.ApplicationContext; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.techchefs.hibernateapp.dto.EmployeeInfoBean; public class GetWithProjections { public static void main(String[] args) { ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml"); SessionFactory factory = ctx.getBean(SessionFactory.class); ((AbstractApplicationContext)ctx).registerShutdownHook(); Session session = factory.openSession(); Criteria criteria = session.createCriteria(EmployeeInfoBean.class); /* * Projection proj = Projections.property("name"); criteria.setProjection(proj); * * * List<String> list = criteria.list(); for (String ename : list) { * System.out.println(ename); } */ criteria.setProjection(Projections.projectionList() .add(Projections.property("name")) .add(Projections.property("email")) .add(Projections.property("age"))); List<Object[]> list = criteria.list(); for (Object[] result : list) { for( Object insideRes : result) { System.out.print(insideRes.toString()); System.out.print("--"); } System.out.println(); } } }
[ "santhosh.ghante@yahoo.com" ]
santhosh.ghante@yahoo.com
2eec16e5c85f450453508a0662ba811ac7fe81dc
04091b1c5b3dab756981fe36533b89e194d4db50
/permission/src/main/java/com/yanzhenjie/permission/target/Target.java
8088461d870d75d79b3137c4dfa324554cf19d03
[ "Apache-2.0" ]
permissive
hujinmeng/AndPermission
f00b3e480c996961d1a6a9d0124c8444aa41435e
a28f92f9925a35137ecc47cb73b40b64032630b5
refs/heads/master
2021-01-23T04:29:02.868165
2017-05-29T14:56:40
2017-05-29T14:56:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,077
java
/* * Copyright © Yan Zhenjie. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.yanzhenjie.permission.target; import android.content.Context; import android.content.Intent; import android.support.annotation.NonNull; /** * <p>Request target.</p> * Created by Yan Zhenjie on 2017/5/1. */ public interface Target { Context getContext(); boolean shouldShowRationalePermissions(@NonNull String... permissions); void startActivity(Intent intent); void startActivityForResult(Intent intent, int requestCode); }
[ "smallajax@foxmail.com" ]
smallajax@foxmail.com
e5897b44b41d70bbf226f7281f86dfeb4be0feb4
97cb6bc51b070b074d4785e492ca3c185071b7c2
/latke/src/main/java/org/b3log/latke/plugin/PluginStatus.java
25f1ed2a4eb281c72888aa3a43bdc0b5f3ba8cdd
[ "Apache-2.0" ]
permissive
HeartBeat312/b3log-latke
830fcc93146227e7e543d0270abe43421a5a85b6
94f4a33155924f2c43c015cfd839ce51e159da5e
refs/heads/master
2021-01-17T21:56:56.452496
2013-05-30T05:25:31
2013-05-30T05:25:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
991
java
/* * Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team * * 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.b3log.latke.plugin; /** * Plugin status enumerations. * * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a> * @version 1.0.0.0, Jun 11, 2011 */ public enum PluginStatus { /** * Indicates a plugin is enabled. */ ENABLED, /** * Indicates a plugin is disabled. */ DISABLED }
[ "DL88250@gmail.com" ]
DL88250@gmail.com
0b3c854e0f430d68e3c7629142479920ee26a6e1
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/webview/ui/tools/WebViewUI$21.java
251e8be54cb1de2935751154f5df65b247474dac
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
839
java
package com.tencent.mm.plugin.webview.ui.tools; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.sdk.platformtools.ab; final class WebViewUI$21 implements MenuItem.OnMenuItemClickListener { WebViewUI$21(WebViewUI paramWebViewUI) { } public final boolean onMenuItemClick(MenuItem paramMenuItem) { AppMethodBeat.i(7841); this.uxp.aqX(); this.uxp.daC(); ab.i("MicroMsg.WebViewUI", "on back btn press"); AppMethodBeat.o(7841); return true; } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes3-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.webview.ui.tools.WebViewUI.21 * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
79a59846014e47f6057c099ea20792dafdc13ce4
c8eb5fc37993d00ea1e7ed9d19cd1fdfc07c7cea
/rest/src/main/java/org/acme/entities/Entity1365.java
ef5cc80c6600a224eb49686bcb4d8265d0c2eb60
[]
no_license
goblinbr/quarkus-multimodule-test
76ef284ecae73df0bde6a6aaae52a7c64b878167
bc9a9aaa54d3dc3d3f051ec3f847322483e14370
refs/heads/master
2020-05-21T08:28:23.897539
2019-05-17T21:00:25
2019-05-17T21:00:25
185,981,408
0
1
null
null
null
null
UTF-8
Java
false
false
1,669
java
package org.acme.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.Size; import java.util.Objects; @Entity @Table(name = "ENTITY_1365") public class Entity1365 { @Id @Max(99999999999L) @Min(1) @Column(name = "ID") private Long id; @Size(max = 15) @Column(name = "COLUMN_1") private String column1; @Column(name = "COLUMN_2") private Boolean column2; public Entity1365() { this.id = 0L; this.column1 = ""; this.column2 = false; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getColumn1() { return column1; } public void setColumn1(String column1) { this.column1 = column1; } public Boolean getColumn2() { return column2; } public void setColumn2(Boolean column2) { this.column2 = column2; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Entity1365)) return false; Entity1365 other = (Entity1365) o; return Objects.equals(id, other.id); } @Override public int hashCode() { return Objects.hash(id); } @Override public String toString() { return "Entity1365{" + "id=" + id + ", column1='" + column1 + '\'' + ", column2=" + column2 + '}'; } }
[ "rodrigo.goblin@gmail.com" ]
rodrigo.goblin@gmail.com
6a3501d8c7e3f7814d9907fac21952849bf38e38
0826bfaa69b4e27b780e4053bb8dc1a9c368f85a
/src/main/java/top/aprilyolies/miaosha/vo/OrderDetailVo.java
3e524e5c70ac16055724f12d0b8dec547420742e
[]
no_license
AprilYoLies/miaosha
286aca29ab15df069988237daf55bb146e5f1eb7
c7c14afc0356dc6faa0f9f4bb45adbaaa9d9607f
refs/heads/master
2022-12-29T06:47:59.717570
2019-08-29T06:47:26
2019-08-29T06:47:26
201,009,971
0
0
null
2022-12-16T09:21:10
2019-08-07T08:44:07
Java
UTF-8
Java
false
false
396
java
package top.aprilyolies.miaosha.vo; import top.aprilyolies.miaosha.domain.OrderInfo; public class OrderDetailVo { private GoodsVo goods; private OrderInfo order; public GoodsVo getGoods() { return goods; } public void setGoods(GoodsVo goods) { this.goods = goods; } public OrderInfo getOrder() { return order; } public void setOrder(OrderInfo order) { this.order = order; } }
[ "863821569@qq.com" ]
863821569@qq.com
20b920aa9dcb45b39f5ff5991637b07d27569696
626b714d50ca57066c075f2ae80de841f528ce2b
/src/main/java/com/vts/elendservice/config/SecurityConfiguration.java
332cefd1711fed81b497d86825cfedd0eab05e87
[]
no_license
dinhtrung90/elend-service
4486f9a5f915681146b5bfc534ce6997a2b3f7a2
8e7b89cda1e304b4950bd0f021a785f5e571cab1
refs/heads/main
2023-04-26T13:51:48.739436
2021-05-05T01:28:35
2021-05-05T01:28:35
364,431,386
0
0
null
null
null
null
UTF-8
Java
false
false
4,923
java
package com.vts.elendservice.config; import com.vts.elendservice.security.*; import com.vts.elendservice.security.SecurityUtils; import com.vts.elendservice.security.oauth2.AudienceValidator; import com.vts.elendservice.security.oauth2.JwtGrantedAuthorityConverter; import java.util.*; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; import org.springframework.core.convert.converter.Converter; import org.springframework.security.authentication.AbstractAuthenticationToken; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator; import org.springframework.security.oauth2.core.OAuth2TokenValidator; import org.springframework.security.oauth2.jwt.*; import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter; import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter; import org.zalando.problem.spring.web.advice.security.SecurityProblemSupport; import tech.jhipster.config.JHipsterProperties; @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) @Import(SecurityProblemSupport.class) public class SecurityConfiguration extends WebSecurityConfigurerAdapter { private final JHipsterProperties jHipsterProperties; @Value("${spring.security.oauth2.client.provider.oidc.issuer-uri}") private String issuerUri; private final SecurityProblemSupport problemSupport; public SecurityConfiguration(JHipsterProperties jHipsterProperties, SecurityProblemSupport problemSupport) { this.problemSupport = problemSupport; this.jHipsterProperties = jHipsterProperties; } @Override public void configure(HttpSecurity http) throws Exception { // @formatter:off http .csrf() .disable() .exceptionHandling() .authenticationEntryPoint(problemSupport) .accessDeniedHandler(problemSupport) .and() .headers() .contentSecurityPolicy(jHipsterProperties.getSecurity().getContentSecurityPolicy()) .and() .referrerPolicy(ReferrerPolicyHeaderWriter.ReferrerPolicy.STRICT_ORIGIN_WHEN_CROSS_ORIGIN) .and() .featurePolicy("geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'self'; payment 'none'") .and() .frameOptions() .deny() .and() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .authorizeRequests() .antMatchers("/api/auth-info").permitAll() .antMatchers("/api/admin/**").hasAuthority(AuthoritiesConstants.ADMIN) .antMatchers("/api/**").authenticated() .antMatchers("/management/health").permitAll() .antMatchers("/management/health/**").permitAll() .antMatchers("/management/info").permitAll() .antMatchers("/management/prometheus").permitAll() .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN) .and() .oauth2ResourceServer() .jwt() .jwtAuthenticationConverter(authenticationConverter()) .and() .and() .oauth2Client(); // @formatter:on } Converter<Jwt, AbstractAuthenticationToken> authenticationConverter() { JwtAuthenticationConverter jwtAuthenticationConverter = new JwtAuthenticationConverter(); jwtAuthenticationConverter.setJwtGrantedAuthoritiesConverter(new JwtGrantedAuthorityConverter()); return jwtAuthenticationConverter; } @Bean JwtDecoder jwtDecoder() { NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder) JwtDecoders.fromOidcIssuerLocation(issuerUri); OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator(jHipsterProperties.getSecurity().getOauth2().getAudience()); OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri); OAuth2TokenValidator<Jwt> withAudience = new DelegatingOAuth2TokenValidator<>(withIssuer, audienceValidator); jwtDecoder.setJwtValidator(withAudience); return jwtDecoder; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
939ca30f6dc536e10b144e6481a839df44be7aa2
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-imm/src/main/java/com/aliyuncs/imm/model/v20200930/DetectImageCarsResponse.java
0a9dbc137bdbbd8afb0c72270f3110a7be44fe55
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
5,002
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.imm.model.v20200930; import java.util.List; import com.aliyuncs.AcsResponse; import com.aliyuncs.imm.transform.v20200930.DetectImageCarsResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DetectImageCarsResponse extends AcsResponse { private String requestId; private List<CarsItem> cars; public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public List<CarsItem> getCars() { return this.cars; } public void setCars(List<CarsItem> cars) { this.cars = cars; } public static class CarsItem { private String carType; private Double carTypeConfidence; private String carColor; private Double carColorConfidence; private Double confidence; private List<LicensePlatesItem> licensePlates; private Boundary boundary; public String getCarType() { return this.carType; } public void setCarType(String carType) { this.carType = carType; } public Double getCarTypeConfidence() { return this.carTypeConfidence; } public void setCarTypeConfidence(Double carTypeConfidence) { this.carTypeConfidence = carTypeConfidence; } public String getCarColor() { return this.carColor; } public void setCarColor(String carColor) { this.carColor = carColor; } public Double getCarColorConfidence() { return this.carColorConfidence; } public void setCarColorConfidence(Double carColorConfidence) { this.carColorConfidence = carColorConfidence; } public Double getConfidence() { return this.confidence; } public void setConfidence(Double confidence) { this.confidence = confidence; } public List<LicensePlatesItem> getLicensePlates() { return this.licensePlates; } public void setLicensePlates(List<LicensePlatesItem> licensePlates) { this.licensePlates = licensePlates; } public Boundary getBoundary() { return this.boundary; } public void setBoundary(Boundary boundary) { this.boundary = boundary; } public static class LicensePlatesItem { private String content; private Double confidence; private Boundary1 boundary1; public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public Double getConfidence() { return this.confidence; } public void setConfidence(Double confidence) { this.confidence = confidence; } public Boundary1 getBoundary1() { return this.boundary1; } public void setBoundary1(Boundary1 boundary1) { this.boundary1 = boundary1; } public static class Boundary1 { private Long width; private Long height; private Long left; private Long top; public Long getWidth() { return this.width; } public void setWidth(Long width) { this.width = width; } public Long getHeight() { return this.height; } public void setHeight(Long height) { this.height = height; } public Long getLeft() { return this.left; } public void setLeft(Long left) { this.left = left; } public Long getTop() { return this.top; } public void setTop(Long top) { this.top = top; } } } public static class Boundary { private Long width; private Long height; private Long left; private Long top; public Long getWidth() { return this.width; } public void setWidth(Long width) { this.width = width; } public Long getHeight() { return this.height; } public void setHeight(Long height) { this.height = height; } public Long getLeft() { return this.left; } public void setLeft(Long left) { this.left = left; } public Long getTop() { return this.top; } public void setTop(Long top) { this.top = top; } } } @Override public DetectImageCarsResponse getInstance(UnmarshallerContext context) { return DetectImageCarsResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
53f3669c17ee75ed7d3ceacd0692c704ad6b3bd3
ef8de5da49854e745490766edc7bb1c58d09bfdc
/chapter05/chapter05.01/src/test/java/io/baselogic/springsecurity/service/UserContextTests.java
4c53d8a940fba9eb26afb174a4ef52713af595e5
[ "BSD-2-Clause" ]
permissive
fossabot/spring_security_course
e1e9a4d372adad206d4d305a7710234bbe7903d7
a81f82a054e85ce2a5376aed27806a4ff933f7cc
refs/heads/master
2021-03-15T00:03:23.893632
2020-03-12T10:16:51
2020-03-12T10:16:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,017
java
package io.baselogic.springsecurity.service; import io.baselogic.springsecurity.dao.TestUtils; import io.baselogic.springsecurity.domain.AppUser; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.transaction.annotation.Transactional; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; /** * UserContextTests * * @since chapter1.00 * @since chapter4.02 Can only setCurrentUser() with a user that exist in the db. */ @ExtendWith(SpringExtension.class) @Transactional @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @Slf4j public class UserContextTests { @Autowired private UserContext userContext; private AppUser owner = new AppUser(); @BeforeEach public void beforeEachTest() { owner.setId(1); } @Test public void initJdbcOperations() { assertThat(userContext).isNotNull(); } @Test public void setCurrentUser() { // Not in the database: // userContext.setCurrentUser(TestUtils.TEST_APP_USER_1); userContext.setCurrentUser(TestUtils.APP_USER_1); AppUser appUser = userContext.getCurrentUser(); assertThat(appUser).isNotNull(); assertThat(appUser.getId()).isEqualTo(0); } @Test public void setCurrentUser_null_User() { assertThrows(NullPointerException.class, () -> { userContext.setCurrentUser(null); }); } @Test public void setCurrentUser_invalid_User() { assertThrows(IllegalArgumentException.class, () -> { userContext.setCurrentUser(new AppUser()); }); } } // The End...
[ "mickknutson@gmail.com" ]
mickknutson@gmail.com
d1fdd2476c8f493d485dfefedca2aa00a5725b16
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XRENDERING-418-38-28-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/wysiwyg/server/filter/ConversionFilter_ESTest.java
15f02f83eec6f3f2706458cb685945b98b14e2ed
[]
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
570
java
/* * This file was automatically generated by EvoSuite * Mon Apr 06 03:15:12 UTC 2020 */ package org.xwiki.wysiwyg.server.filter; 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 ConversionFilter_ESTest extends ConversionFilter_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
55a17bd63531c7087748eb770ef05c2985ad3a0a
a422de59c29d077c512d66b538ff17d179cc077a
/hsxt/hsxt-tc/hsxt-tc-batchService/src/main/java/com/gy/hsxt/tc/batch/runnable/callback/DataHandler4bsgpBS.java
319a5dd68a4ee3c4d807cf97cf58cfe250ba914e
[]
no_license
liveqmock/hsxt
c554e4ebfd891e4cc3d57e920d8a79ecc020b4dd
40bb7a1fe5c22cb5b4f1d700e5d16371a3a74c04
refs/heads/master
2020-03-28T14:09:31.939168
2018-09-12T10:20:46
2018-09-12T10:20:46
148,461,898
0
0
null
2018-09-12T10:19:11
2018-09-12T10:19:10
null
UTF-8
Java
false
false
2,052
java
/* * Copyright (c) 2015-2018 SHENZHEN GUIYI SCIENCE AND TECHNOLOGY DEVELOP CO., LTD. All rights reserved. * * 注意:本内容仅限于深圳市归一科技研发有限公司内部传阅,禁止外泄以及用于其他的商业目的 */ /* * Copyright (c) 2015-2018 SHENZHEN GUIYI SCIENCE AND TECHNOLOGY DEVELOP CO., LTD. All rights reserved. * * 注意:本内容仅限于深圳市归一科技研发有限公司内部传阅,禁止外泄以及用于其他的商业目的 */ package com.gy.hsxt.tc.batch.runnable.callback; import org.springframework.data.redis.core.RedisTemplate; import com.gy.hsxt.tc.batch.mapper.TcBsgpPayMapper; /** * BSGP对账之BS端数据文件内容拆解及入库 * * @Package: com.gy.hsxt.tc.batch.runnable.callback * @ClassName: DataHandler4bsgpBS * @Description: TODO * * @author: lvyan * @date: 2015-11-13 下午2:18:48 * @version V1.0 */ public class DataHandler4bsgpBS extends DataHandlerAbstract { /** * 账单入库表 */ public static final String MY_TABLE = "T_TC_BSGP_PAY_BS_TMP"; /** * 账单入库表字段 (与数据文件字段顺序保持一致): 业务订单号|订单货币金额|订单时间|支付状态 */ public static final String[] MY_COLUMNS = { "BS_ORDER_NO", "BS_TRANS_AMOUNT", "BS_TRANS_DATE", "BS_TRANS_STATUS" }; public DataHandler4bsgpBS(TcBsgpPayMapper batchMapper, RedisTemplate redisTemplate) { super(batchMapper, redisTemplate, MY_TABLE, MY_COLUMNS); } /** * 生成对账要素 * * @param args * 一行数据 * @return */ public String generateCheckKey(String[] args) { // 对账文件字段: 业务订单号|订单货币金额|订单时间|支付状态 // BS-GP 对账要素:业务订单号|订单货币金额|支付状态 StringBuilder sb = new StringBuilder(); sb.append(args[0]).append("|"); sb.append(args[1]).append("|"); sb.append(args[3]); return sb.toString(); } }
[ "864201042@qq.com" ]
864201042@qq.com
ddde201ceca799f414223ad10c61c9d360cc821c
b5365904737296ec5cb06c090aa82fdfd14ff512
/com/google/android/gms/internal/bs.java
024d1d40d38575affa95b9d0259174c04c9f028a
[]
no_license
Ravinther/alarmclock
80b8a2206c4309aae4481724c7f1dd03d5638023
3ba5aee4e0c10487ec67bb238a2a06a0a3b182b8
refs/heads/master
2021-01-19T02:33:57.314201
2016-08-11T16:27:54
2016-08-11T16:27:54
65,484,422
0
0
null
null
null
null
UTF-8
Java
false
false
7,122
java
package com.google.android.gms.internal; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import com.mopub.mobileads.C2625R; import com.mopub.mobileads.util.Base64; public interface bs extends IInterface { /* renamed from: com.google.android.gms.internal.bs.a */ public static abstract class C1760a extends Binder implements bs { /* renamed from: com.google.android.gms.internal.bs.a.a */ private static class C1767a implements bs { private IBinder kn; C1767a(IBinder iBinder) { this.kn = iBinder; } public void m7942P() { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); this.kn.transact(1, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public IBinder asBinder() { return this.kn; } public void onAdClosed() { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); this.kn.transact(2, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void onAdFailedToLoad(int error) { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); obtain.writeInt(error); this.kn.transact(3, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void onAdLeftApplication() { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); this.kn.transact(4, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void onAdLoaded() { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); this.kn.transact(6, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void onAdOpened() { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); this.kn.transact(5, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } } public C1760a() { attachInterface(this, "com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); } public static bs m7908k(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); return (queryLocalInterface == null || !(queryLocalInterface instanceof bs)) ? new C1767a(iBinder) : (bs) queryLocalInterface; } public IBinder asBinder() { return this; } public boolean onTransact(int code, Parcel data, Parcel reply, int flags) { switch (code) { case Base64.NO_PADDING /*1*/: data.enforceInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); m7907P(); reply.writeNoException(); return true; case Base64.NO_WRAP /*2*/: data.enforceInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); onAdClosed(); reply.writeNoException(); return true; case C2625R.styleable.WalletFragmentStyle_buyButtonAppearance /*3*/: data.enforceInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); onAdFailedToLoad(data.readInt()); reply.writeNoException(); return true; case Base64.CRLF /*4*/: data.enforceInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); onAdLeftApplication(); reply.writeNoException(); return true; case C2625R.styleable.WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance /*5*/: data.enforceInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); onAdOpened(); reply.writeNoException(); return true; case C2625R.styleable.WalletFragmentStyle_maskedWalletDetailsBackground /*6*/: data.enforceInterface("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); onAdLoaded(); reply.writeNoException(); return true; case 1598968902: reply.writeString("com.google.android.gms.ads.internal.mediation.client.IMediationAdapterListener"); return true; default: return super.onTransact(code, data, reply, flags); } } } void m7907P(); void onAdClosed(); void onAdFailedToLoad(int i); void onAdLeftApplication(); void onAdLoaded(); void onAdOpened(); }
[ "m.ravinther@yahoo.com" ]
m.ravinther@yahoo.com
fae68076b08cafe825b405996584df539a0e7ba9
e7e497b20442a4220296dea1550091a457df5a38
/java_workplace/renren_web_framework/lab/wsep/lwb/trunk/src/lwb/test/servlet/ReadTestServlet.java
affdffa2d0ee508cbd9b00edcfa77aed89c1d884
[]
no_license
gunner14/old_rr_code
cf17a2dedf8dfcdcf441d49139adaadc770c0eea
bb047dc88fa7243ded61d840af0f8bad22d68dee
refs/heads/master
2021-01-17T18:23:28.154228
2013-12-02T23:45:33
2013-12-02T23:45:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
594
java
package lwb.test.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ReadTestServlet extends BaseTestServlet { private static final long serialVersionUID = 1L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { //do nothing } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } }
[ "liyong19861014@gmail.com" ]
liyong19861014@gmail.com
ed5971ab0bb4086bd0fa0a369b265c319e8abf3e
19989ad71f45ee2e1d182183a78a93530acc49b7
/Java Web/Spring MVC/Thymeleaf and Controllers/residentevil/src/main/java/org/softuni/residentevil/domain/model/service/VirusServiceModel.java
dc0fc0c3173451abaad5537ce4d24c9d9b88c6e8
[]
no_license
goldenEAGL3/SoftUni
b811c070192e317492acc113d80443e58570f2d4
ba60411d4deea3d999af20ea10be9c015b899c4a
refs/heads/master
2023-08-09T10:04:45.414043
2020-03-21T18:45:44
2020-03-21T18:45:44
175,472,191
0
2
null
2023-07-21T17:50:00
2019-03-13T17:54:34
Java
UTF-8
Java
false
false
2,918
java
package org.softuni.residentevil.domain.model.service; import org.softuni.residentevil.domain.entity.enums.Creator; import org.softuni.residentevil.domain.entity.enums.Magnitude; import org.softuni.residentevil.domain.entity.enums.Mutation; import java.time.LocalDate; import java.util.List; public class VirusServiceModel { private String id; private String name; private String description; private String sideEffects; private Creator creator; private boolean isDeadly; private boolean isCurable; private Mutation mutation; private Integer turnoverRate; private Integer hoursUntilTurn; private Magnitude magnitude; private LocalDate releasedOn; private List<CapitalServiceModel> capitals; public String getId() { return this.id; } public void setId(String id) { this.id = id; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getDescription() { return this.description; } public void setDescription(String description) { this.description = description; } public String getSideEffects() { return this.sideEffects; } public void setSideEffects(String sideEffects) { this.sideEffects = sideEffects; } public Creator getCreator() { return this.creator; } public void setCreator(Creator creator) { this.creator = creator; } public boolean isDeadly() { return this.isDeadly; } public void setDeadly(boolean deadly) { isDeadly = deadly; } public boolean isCurable() { return this.isCurable; } public void setCurable(boolean curable) { isCurable = curable; } public Mutation getMutation() { return this.mutation; } public void setMutation(Mutation mutation) { this.mutation = mutation; } public Integer getTurnoverRate() { return this.turnoverRate; } public void setTurnoverRate(Integer turnoverRate) { this.turnoverRate = turnoverRate; } public Integer getHoursUntilTurn() { return this.hoursUntilTurn; } public void setHoursUntilTurn(Integer hoursUntilTurn) { this.hoursUntilTurn = hoursUntilTurn; } public Magnitude getMagnitude() { return this.magnitude; } public void setMagnitude(Magnitude magnitude) { this.magnitude = magnitude; } public LocalDate getReleasedOn() { return this.releasedOn; } public void setReleasedOn(LocalDate releasedOn) { this.releasedOn = releasedOn; } public List<CapitalServiceModel> getCapitals() { return this.capitals; } public void setCapitals(List<CapitalServiceModel> capitals) { this.capitals = capitals; } }
[ "48495509+goldenEAGL3@users.noreply.github.com" ]
48495509+goldenEAGL3@users.noreply.github.com
dc76024cf7638ce7b42edb52c1609800d264ae9a
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
/program_data/JavaProgramData/93/1242.java
af30c9f33370535fab837d05f0970dbd79888c9a
[ "MIT" ]
permissive
qiuchili/ggnn_graph_classification
c2090fefe11f8bf650e734442eb96996a54dc112
291ff02404555511b94a4f477c6974ebd62dcf44
refs/heads/master
2021-10-18T14:54:26.154367
2018-10-21T23:34:14
2018-10-21T23:34:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,384
java
package <missing>; public class GlobalMembers { //******************************** //*?????3?5?7???? ** //*?????? 1300012861 ** //*???2013.9.26 ** //******************************** public static int Main() { int n; int a; int b; int c; n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true)); a = (n % 3 == 0); b = (n % 5 == 0); c = (n % 7 == 0); if (a + b + c == 0) { System.out.print("n"); System.out.print("\n"); } else { if (a + b + c == 3) { System.out.print("3 5 7"); System.out.print("\n"); } else { if (a == 1 && b == 0 && c == 0) { System.out.print("3"); System.out.print("\n"); } else { if (a == 0 && b == 1 && c == 0) { System.out.print("5"); System.out.print("\n"); } else { if (a == 0 && b == 0 && c == 1) { System.out.print("7"); System.out.print("\n"); } else { if (a == 1 && b == 1 && c == 0) { System.out.print("3 5"); System.out.print("\n"); } else { if (a == 0 && b == 1 && c == 1) { System.out.print("5 7"); System.out.print("\n"); } else { System.out.print("3 7"); System.out.print("\n"); } } } } } } } return 0; } }
[ "y.yu@open.ac.uk" ]
y.yu@open.ac.uk
23990c95608d188d89365b5907ec1e3aa269be3f
b8bd4438f7d000cb7af3d7d433f9d5e1dcb60ae1
/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java
8425e9b9fa7aef41163de02fecc008f8952fe5ad
[ "Apache-2.0", "LicenseRef-scancode-unknown", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "APAFML", "Adobe-Glyph", "LicenseRef-scancode-unknown-license-reference" ]
permissive
balabit-deps/balabit-os-7-libpdfbox-java
32dacbfbb1658e1152e48e6d4d09c907122ebcf0
3ba7c1c0f139bcbd09292e695b1195e0cda61046
refs/heads/master
2021-06-07T16:05:20.916694
2019-04-18T11:15:26
2019-04-18T11:15:26
158,242,475
0
0
Apache-2.0
2021-04-26T18:40:17
2018-11-19T15:01:22
Java
UTF-8
Java
false
false
8,134
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.pdfbox.pdmodel.interactive.annotation; import org.apache.pdfbox.cos.COSBase; import org.apache.pdfbox.cos.COSDictionary; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.interactive.action.PDActionFactory; import org.apache.pdfbox.pdmodel.interactive.action.PDAnnotationAdditionalActions; import org.apache.pdfbox.pdmodel.interactive.action.type.PDAction; /** * This is the class that represents a widget annotation. This represents the * appearance of a field and manages user interactions. A field may have several * widget annotations, which may be on several pages. * * @author <a href="mailto:ben@benlitchfield.com">Ben Litchfield</a> * @version $Revision: 1.3 $ */ public class PDAnnotationWidget extends PDAnnotation { /** * The type of annotation. */ public static final String SUB_TYPE = "Widget"; /** * Constructor. */ public PDAnnotationWidget() { super(); getDictionary().setName( COSName.SUBTYPE, SUB_TYPE); } /** * Creates a PDWidget from a COSDictionary, expected to be * a correct object definition for a field in PDF. * * @param field the PDF objet to represent as a field. */ public PDAnnotationWidget(COSDictionary field) { super( field ); } /** * Returns the highlighting mode. Default value: <code>I</code> * <dl> * <dt><code>N</code></dt> * <dd>(None) No highlighting.</dd> * <dt><code>I</code></dt> * <dd>(Invert) Invert the contents of the annotation rectangle.</dd> * <dt><code>O</code></dt> * <dd>(Outline) Invert the annotation's border.</dd> * <dt><code>P</code></dt> * <dd>(Push) Display the annotation's down appearance, if any. If no * down appearance is defined, the contents of the annotation rectangle * shall be offset to appear as if it were pushed below the surface of * the page</dd> * <dt><code>T</code></dt> * <dd>(Toggle) Same as <code>P</code> (which is preferred).</dd> * </dl> * * @return the highlighting mode */ public String getHighlightingMode() { return this.getDictionary().getNameAsString(COSName.H, "I"); } /** * Sets the highlighting mode. * <dl> * <dt><code>N</code></dt> * <dd>(None) No highlighting.</dd> * <dt><code>I</code></dt> * <dd>(Invert) Invert the contents of the annotation rectangle.</dd> * <dt><code>O</code></dt> * <dd>(Outline) Invert the annotation's border.</dd> * <dt><code>P</code></dt> * <dd>(Push) Display the annotation's down appearance, if any. If no * down appearance is defined, the contents of the annotation rectangle * shall be offset to appear as if it were pushed below the surface of * the page</dd> * <dt><code>T</code></dt> * <dd>(Toggle) Same as <code>P</code> (which is preferred).</dd> * </dl> * * @param highlightingMode the highlighting mode * the defined values */ public void setHighlightingMode(String highlightingMode) { if ((highlightingMode == null) || "N".equals(highlightingMode) || "I".equals(highlightingMode) || "O".equals(highlightingMode) || "P".equals(highlightingMode) || "T".equals(highlightingMode)) { this.getDictionary().setName(COSName.H, highlightingMode); } else { throw new IllegalArgumentException( "Valid values for highlighting mode are " + "'N', 'N', 'O', 'P' or 'T'" ); } } /** * Returns the appearance characteristics dictionary. * * @return the appearance characteristics dictionary */ public PDAppearanceCharacteristicsDictionary getAppearanceCharacteristics() { COSBase mk = this.getDictionary().getDictionaryObject(COSName.getPDFName("MK")); if (mk instanceof COSDictionary) { return new PDAppearanceCharacteristicsDictionary((COSDictionary) mk); } return null; } /** * Sets the appearance characteristics dictionary. * * @param appearanceCharacteristics the appearance characteristics dictionary */ public void setAppearanceCharacteristics(PDAppearanceCharacteristicsDictionary appearanceCharacteristics) { this.getDictionary().setItem("MK", appearanceCharacteristics); } /** * Get the action to be performed when this annotation is to be activated. * * @return The action to be performed when this annotation is activated. */ public PDAction getAction() { COSDictionary action = (COSDictionary) this.getDictionary().getDictionaryObject( COSName.A ); return PDActionFactory.createAction( action ); } /** * Set the annotation action. * As of PDF 1.6 this is only used for Widget Annotations * @param action The annotation action. */ public void setAction( PDAction action ) { this.getDictionary().setItem( COSName.A, action ); } /** * Get the additional actions for this field. This will return null * if there are no additional actions for this field. * As of PDF 1.6 this is only used for Widget Annotations. * * @return The actions of the field. */ public PDAnnotationAdditionalActions getActions() { COSDictionary aa = (COSDictionary)this.getDictionary().getDictionaryObject( "AA" ); PDAnnotationAdditionalActions retval = null; if( aa != null ) { retval = new PDAnnotationAdditionalActions( aa ); } return retval; } /** * Set the actions of the field. * * @param actions The field actions. */ public void setActions( PDAnnotationAdditionalActions actions ) { this.getDictionary().setItem( "AA", actions ); } /** * This will set the border style dictionary, specifying the width and dash * pattern used in drawing the line. * * @param bs the border style dictionary to set. * */ public void setBorderStyle( PDBorderStyleDictionary bs ) { this.getDictionary().setItem( "BS", bs); } /** * This will retrieve the border style dictionary, specifying the width and * dash pattern used in drawing the line. * * @return the border style dictionary. */ public PDBorderStyleDictionary getBorderStyle() { COSDictionary bs = (COSDictionary) this.getDictionary().getItem( COSName.getPDFName( "BS" ) ); if (bs != null) { return new PDBorderStyleDictionary( bs ); } else { return null; } } // TODO where to get acroForm from? // public PDField getParent() throws IOException // { // COSBase parent = this.getDictionary().getDictionaryObject(COSName.PARENT); // if (parent instanceof COSDictionary) // { // PDAcroForm acroForm = null; // return PDFieldFactory.createField(acroForm, (COSDictionary) parent); // } // return null; // } }
[ "testbot@balabit.com" ]
testbot@balabit.com
3625ec5e20dc14c3894960eae6db1ce9725fa059
b8d9dde79a95171d59197bfca840fc11ed82a3da
/spring-boot-nosql-redis/src/main/java/com/mmc/boot/system/redis/controller/TotalController.java
13cf093e2e232e3feb258346a77f933bfe037a95
[]
no_license
gaowei0115/spring-boot-system
ca61896425cbf506da29ec340ee4904949120961
6b9537ba9a8adfd508ecc0a96e0a0d4a53ec17c7
refs/heads/master
2021-06-15T15:14:34.377807
2018-12-27T03:33:25
2018-12-27T03:33:25
95,783,286
0
0
null
null
null
null
UTF-8
Java
false
false
1,156
java
package com.mmc.boot.system.redis.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import redis.clients.jedis.JedisCluster; /** * @packageName:com.mmc.boot.system.redis.controller * @desrciption: * @author: gaowei * @date: 2018-12-26 16:31 * @history: (version) author date desc */ @RestController @RequestMapping("/t") public class TotalController { private static final String TOTAL_KEY = "TOTAL_KEY"; @Autowired private JedisCluster jedisCluster; @RequestMapping("total") public String totalInfo() { String result = jedisCluster.get(TOTAL_KEY); if (StringUtils.isEmpty(result)) { jedisCluster.set(TOTAL_KEY, 0 + ""); } result = jedisCluster.get(TOTAL_KEY); int count = Integer.parseInt(result); count++; jedisCluster.set(TOTAL_KEY, count + ""); String r = jedisCluster.get(TOTAL_KEY); return "当前在线人数 " + r + " 人"; } }
[ "gao_wei0115@sina.com" ]
gao_wei0115@sina.com
6ea5db1110c29f579df9a39ccebb8be741082c3b
a4d06fb9961e014bbbefcadb65125b43670b2a53
/src.com.solid.LSP.java
ef2b557d86d57a7512554e2f015cd8282cc18df5
[]
no_license
lakith/SOLID-Principles
66d1fb548ec2b4fb4343179b1e7f45073fc18cce
7df4f8b8c07fb929ff3fda913330421e7dd70e84
refs/heads/master
2020-05-18T20:27:41.338502
2019-05-04T05:35:10
2019-05-04T05:35:10
184,633,589
1
0
null
null
null
null
UTF-8
Java
false
false
1,675
java
package src.com.solid.LSP; class Rectangle { protected int width, height; public Rectangle() { } public Rectangle(int width, int height) { this.width = width; this.height = height; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; } public int getHeight() { return height; } public void setHeight(int height) { this.height = height; } public int getArea() { return width*height; } @Override public String toString() { return "Rectangle{" + "width=" + width + ", height=" + height + '}'; } public boolean isSquare() { return width == height; } } class Square extends Rectangle { public Square() { } public Square(int size) { width = height = size; } @Override public void setWidth(int width) { super.setWidth(width); super.setHeight(width); } @Override public void setHeight(int height) { super.setHeight(height); super.setWidth(height); } } class RectangleFactory { public static Rectangle newSquare(int side) { return new Rectangle(side, side); } public static Rectangle newRectangle(int width, int height) { return new Rectangle(width, height); } } class LSPDemo { // maybe conform to ++ static void useIt(Rectangle r) { int width = r.getWidth(); r.setHeight(10); System.out.println("Expected area of " + (width*10) + ", got " + r.getArea()); } public static void main(String[] args) { Rectangle rc = new Rectangle(2, 3); useIt(rc); Rectangle sq = new Square(); sq.setHeight(5); sq.setWidth(10); useIt(sq); } }
[ "lakith1995@gmail.com" ]
lakith1995@gmail.com
8a39d1913a8622f49591cd81a16d7aeb021e296a
a1f170211f658be47ebef6d58686f9010959e877
/src/main/java/CF277_5E.java
1924097e7a4b6f59c0956a41af286393c796d45d
[]
no_license
tasyrkin/Codeforces
cdd1c2cbee8c43b03cff3205e46fccf76deb9977
58ef55a399d092cdb5a9328ff41c0bcd1363496c
refs/heads/master
2020-07-04T05:00:38.185228
2019-01-06T20:35:59
2019-01-06T20:36:18
33,376,443
0
0
null
null
null
null
UTF-8
Java
false
false
155
java
import java.util.Scanner; public class CF277_5E { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); } }
[ "tasyrkin@gmail.com" ]
tasyrkin@gmail.com
65b4e732bbaf4d1fe62e3ba70f4476f175e37f0c
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/kotlin/p2253l/C32631a.java
d057b28a76b70a143c85abe0e89d17b3f3c7786e
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package kotlin.p2253l; import kotlin.Metadata; @Metadata /* renamed from: kotlin.l.a */ public final class C32631a extends Char { }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
63992e14600eac18358df638105815d5f84bcb25
b23231c6281f0c302a51d94e0ea7afabe017997f
/src/main/java/com/wod/config/OAuth2SsoConfiguration.java
6bc3bf39c870f18bf414516f6a09dc796bda4097
[]
no_license
fmatuszewski/workout
6da93c8e0aa678f7fed4bf3457e540d8b65dc94e
7861af93e5badaecfe37d845346c62e884c10025
refs/heads/master
2020-03-19T09:51:01.654805
2018-06-06T12:14:15
2018-06-06T12:14:15
136,321,947
0
0
null
2018-06-06T12:14:16
2018-06-06T11:55:02
Java
UTF-8
Java
false
false
2,349
java
package com.wod.config; import com.wod.security.AuthoritiesConstants; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.web.csrf.CsrfFilter; import org.springframework.security.web.util.matcher.NegatedRequestMatcher; import org.springframework.security.web.util.matcher.RequestMatcher; import org.springframework.web.filter.CorsFilter; import io.github.jhipster.security.AjaxLogoutSuccessHandler; @EnableOAuth2Sso @Configuration public class OAuth2SsoConfiguration extends WebSecurityConfigurerAdapter { private final RequestMatcher authorizationHeaderRequestMatcher; private final CorsFilter corsFilter; public OAuth2SsoConfiguration(@Qualifier("authorizationHeaderRequestMatcher") RequestMatcher authorizationHeaderRequestMatcher, CorsFilter corsFilter) { this.authorizationHeaderRequestMatcher = authorizationHeaderRequestMatcher; this.corsFilter = corsFilter; } @Bean public AjaxLogoutSuccessHandler ajaxLogoutSuccessHandler() { return new AjaxLogoutSuccessHandler(); } @Override protected void configure(HttpSecurity http) throws Exception { http .csrf() .disable() .addFilterBefore(corsFilter, CsrfFilter.class) .headers() .frameOptions() .disable() .and() .logout() .logoutUrl("/api/logout") .logoutSuccessHandler(ajaxLogoutSuccessHandler()) .and() .requestMatcher(new NegatedRequestMatcher(authorizationHeaderRequestMatcher)) .authorizeRequests() .antMatchers("/api/profile-info").permitAll() .antMatchers("/api/**").authenticated() .antMatchers("/management/health").permitAll() .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN) .anyRequest().permitAll(); } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
61ef1318ac1ee6c706354c3de69792cff83bb002
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/app/AppForegroundDelegate$3.java
42110860d5215fe2272d4380cfd8e121732d1217
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
974
java
package com.tencent.mm.app; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.kernel.a.c; import java.util.Iterator; import java.util.LinkedList; import java.util.List; final class AppForegroundDelegate$3 implements Runnable { AppForegroundDelegate$3(AppForegroundDelegate paramAppForegroundDelegate, String paramString) {} public final void run() { AppMethodBeat.i(131737); c.baR().i(false, this.fcG); synchronized (AppForegroundDelegate.b(this.hfn)) { LinkedList localLinkedList = new LinkedList(AppForegroundDelegate.b(this.hfn)); ??? = localLinkedList.iterator(); if (((Iterator)???).hasNext()) { ((q)((Iterator)???).next()).onAppBackground(this.fcG); } } } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes7.jar * Qualified Name: com.tencent.mm.app.AppForegroundDelegate.3 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
32aeea7ebcc18d2f37a98960e518805e7631de1a
d0de464bac8ebfbc57ffab467a3b328c19597e60
/src/test/java/cn/besbing/TestBillRule.java
ba6ef1b65d418a8ba798cf1224e1e5e446e6c4db
[]
no_license
sy8000/dlc20200908
50106bfe937e368d84cc44ce311837367ebbdeab
ce7873e795ac71bc14781e94482a3f100da0b79d
refs/heads/master
2022-12-18T09:46:55.651197
2020-09-23T08:25:30
2020-09-23T08:25:30
293,726,423
0
0
null
null
null
null
UTF-8
Java
false
false
312
java
package cn.besbing; import cn.besbing.CommonUtils.Bill.BaseBillPrimary; import org.junit.Test; public class TestBillRule { @Test public void test(){ BaseBillPrimary baseBillPrimary = new BaseBillPrimary(); System.out.println(baseBillPrimary.getPrimaryWithoutModuleName(20)); } }
[ "fsbydz@vip.qq.com" ]
fsbydz@vip.qq.com
4c57cc5f6cf6b96af05843df7999870659fc56f3
2c6e2ba03eb71ca45fe690ff6e4586f6e2fa0f17
/material/apks/banco/sources/ar/com/santander/rio/mbanking/services/soap/beans/body/FirmaSeguroBean.java
d254082a30a5ee2cb38a1136c9a442a46d3cd04a
[]
no_license
lcrcastor/curso-mobile-2019
3088a196139b3e980ed6e09797a0bbf5efb6440b
7585fccb6437a17c841772c1d9fb0701d6c68042
refs/heads/master
2023-04-06T21:46:32.333236
2020-10-30T19:47:54
2020-10-30T19:47:54
308,680,747
0
1
null
2023-03-26T06:57:57
2020-10-30T16:08:31
Java
UTF-8
Java
false
false
1,209
java
package ar.com.santander.rio.mbanking.services.soap.beans.body; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import com.google.gson.annotations.SerializedName; public class FirmaSeguroBean implements Parcelable { public static final Creator<FirmaSeguroBean> CREATOR = new Creator<FirmaSeguroBean>() { public FirmaSeguroBean createFromParcel(Parcel parcel) { return new FirmaSeguroBean(parcel); } public FirmaSeguroBean[] newArray(int i) { return new FirmaSeguroBean[i]; } }; @SerializedName("firmaSeguro") private String firmaSeguro; public int describeContents() { return 0; } public FirmaSeguroBean(String str) { this.firmaSeguro = str; } public FirmaSeguroBean() { } public String getFirmaSeguro() { return this.firmaSeguro; } public void setFirmaSeguro(String str) { this.firmaSeguro = str; } protected FirmaSeguroBean(Parcel parcel) { this.firmaSeguro = parcel.readString(); } public void writeToParcel(Parcel parcel, int i) { parcel.writeString(this.firmaSeguro); } }
[ "luis@MARK-2.local" ]
luis@MARK-2.local
a505176ca4513941e125b410bc7be5306b60b604
74df096a4270766fd35cbc03401879bce8ad2cfc
/app/src/main/java/com/iav/senamlantai/activity/SplashScreenActivity.java
c69b3210ac0e223a08ec367d5473c03215aeedd1
[]
no_license
iavtamvan/SENAM_LANTAI_MEDIA_PEMBELAJARAN
da06b841569808b96aa92c2ea30970d704be3bcc
ef0fb4b501ccdfa7d700b6a9f51aa8e3d9c0ff11
refs/heads/master
2020-04-07T23:40:54.515929
2020-01-05T14:27:23
2020-01-05T14:27:23
158,821,415
1
1
null
null
null
null
UTF-8
Java
false
false
1,964
java
package com.iav.senamlantai.activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatDelegate; import com.iav.senamlantai.MainActivity; import com.iav.vlvollylearning.R; public class SplashScreenActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash_screen); getSupportActionBar().hide(); AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); new Handler().postDelayed(new Runnable() { @Override public void run() { finishAffinity(); startActivity(new Intent(getApplicationContext(), MainActivity.class)); // SharedPreferences sp = getSharedPreferences(Config.NAME_PREF, MODE_PRIVATE); // String username = sp.getString(Config.USERNAME, ""); // // TODO jika belum masuk ke LoginActivity // if (username.equalsIgnoreCase("") || TextUtils.isEmpty(username)) { // finishAffinity(); // startActivity(new Intent(getApplicationContext(), LoginActivity.class)); // } // // TODO jika sudah nantinya akan masuk ke Home // else { // finishAffinity(); // startActivity(new Intent(getApplicationContext(), HomeActivity.class)); //// if (rule.contains("user")) { //// startActivity(new Intent(getApplicationContext(), HomeActivity.class)); //// } //// else { //// startActivity(new Intent(getApplicationContext(), HomePetugasActivity.class)); //// } // // } } }, 2000); } }
[ "ade.fajr.ariav@gmail.com" ]
ade.fajr.ariav@gmail.com
931e2e31066085eddb07434b98a19f6f87958647
5e7608123a22cecef836ec02fbe48f93aa03190a
/Java-High-Concurrency-Programming/src/main/java/com/high/concurrency/chapter7/section13/PBBestMsg.java
0fe8c9b2e7944ff5f8f1c844a67b9b83f2ab430d
[ "Apache-2.0" ]
permissive
liiibpm/Java_Multi_Thread
a01e2ba428d4cc9277357232ef37d4b770fddd6a
39200a1096475557c749db68993e3a3ccc0547b5
refs/heads/master
2023-03-26T16:16:29.039854
2020-12-01T12:22:23
2020-12-01T12:22:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
404
java
package com.high.concurrency.chapter7.section13; /** * @Description * @Author dongzonglei * @Date 2019/01/08 下午12:06 */ public class PBBestMsg { final PosValue value; public PBBestMsg(PosValue value) { this.value = value; } public PosValue getValue() { return value; } @Override public String toString() { return value.toString(); } }
[ "dzllikelsw@163.com" ]
dzllikelsw@163.com
eb1df1e43c8eec868d8475f809a06e7a6a26c938
46cd430866a7fa496c40f9399884fa12de1a5ff2
/jeeweb-web/jeeweb-vue/src/main/java/cn/jeeweb/web/modules/sms/service/impl/SmsSendLogServiceImpl.java
60b5d1e4ecb7160923c7736e626cf8c9c09b8e06
[ "Apache-2.0" ]
permissive
topjs/jeeweb2
a460a4d224dae814328e9aef77c4741ed8bccbfb
9cecf7c2b5791299ccbfe65418f1455af982637f
refs/heads/master
2022-11-25T10:07:48.015233
2019-01-04T02:07:11
2019-01-04T02:07:11
194,079,683
2
0
Apache-2.0
2022-11-16T10:33:42
2019-06-27T11:04:43
TSQL
UTF-8
Java
false
false
1,437
java
package cn.jeeweb.web.modules.sms.service.impl; import cn.jeeweb.web.modules.sms.mapper.SmsSendLogMapper; import cn.jeeweb.web.modules.sms.entity.SmsSendLog; import cn.jeeweb.web.modules.sms.service.ISmsSendLogService; import cn.jeeweb.common.mybatis.mvc.service.impl.CommonServiceImpl; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * All rights Reserved, Designed By www.jeeweb.cn * * @version V1.0 * @package cn.jeeweb.web.modules.sms.service.impl * @title: 发送日志服务实现 * @description: 发送日志服务实现 * @author: 王存见 * @date: 2018-09-14 09:47:53 * @copyright: 2018 www.jeeweb.cn Inc. All rights reserved. */ @Transactional @Service("smssendlogService") public class SmsSendLogServiceImpl extends CommonServiceImpl<SmsSendLogMapper,SmsSendLog> implements ISmsSendLogService { @Override public boolean retrySend(List<? extends Serializable> idList) { List<SmsSendLog> smsSendLogList=new ArrayList<SmsSendLog>(); for (Serializable id: idList) { SmsSendLog smsSendLog=selectById(id); smsSendLog.setTryNum(0); smsSendLog.setStatus(SmsSendLog.SMS_SEND_STATUS_FAIL); smsSendLogList.add(smsSendLog); } insertOrUpdateBatch(smsSendLogList); return false; } }
[ "502079461@qq.com" ]
502079461@qq.com
95d54a63e968bef6b4b6bd26b2528e9a7c245fad
3af6963d156fc1bf7409771d9b7ed30b5a207dc1
/runtime/src/main/java/apple/foundation/NSMutableURLRequest.java
7bec105e02811fbebabd6096b5ea5750491bed37
[ "Apache-2.0" ]
permissive
yava555/j2objc
1761d7ffb861b5469cf7049b51f7b73c6d3652e4
dba753944b8306b9a5b54728a40ca30bd17bdf63
refs/heads/master
2020-12-30T23:23:50.723961
2015-09-03T06:57:20
2015-09-03T06:57:20
48,475,187
0
0
null
2015-12-23T07:08:22
2015-12-23T07:08:22
null
UTF-8
Java
false
false
3,780
java
package apple.foundation; import java.io.*; import java.nio.*; import java.util.*; import com.google.j2objc.annotations.*; import com.google.j2objc.runtime.*; import com.google.j2objc.runtime.block.*; import apple.audiotoolbox.*; import apple.corefoundation.*; import apple.coregraphics.*; import apple.coreservices.*; import apple.uikit.*; import apple.coreanimation.*; import apple.coredata.*; import apple.coremedia.*; import apple.security.*; import apple.dispatch.*; @Library("Foundation/Foundation.h") @Mapping("NSMutableURLRequest") public class NSMutableURLRequest extends NSURLRequest { @Mapping("initWithURL:") public NSMutableURLRequest(NSURL URL) { } @Mapping("initWithURL:cachePolicy:timeoutInterval:") public NSMutableURLRequest(NSURL URL, @Representing("NSURLRequestCachePolicy") long cachePolicy, double timeoutInterval) { } @Mapping("init") public NSMutableURLRequest() { } @Mapping("URL") public native NSURL getURL(); @Mapping("setURL:") public native void setURL(NSURL v); @Mapping("cachePolicy") public native @Representing("NSURLRequestCachePolicy") long getCachePolicy(); @Mapping("setCachePolicy:") public native void setCachePolicy(@Representing("NSURLRequestCachePolicy") long v); @Mapping("timeoutInterval") public native double getTimeoutInterval(); @Mapping("setTimeoutInterval:") public native void setTimeoutInterval(double v); @Mapping("mainDocumentURL") public native NSURL getMainDocumentURL(); @Mapping("setMainDocumentURL:") public native void setMainDocumentURL(NSURL v); /** * @since Available in iOS 4.0 and later. */ @Mapping("networkServiceType") public native @Representing("NSURLRequestNetworkServiceType") long getNetworkServiceType(); /** * @since Available in iOS 4.0 and later. */ @Mapping("setNetworkServiceType:") public native void setNetworkServiceType(@Representing("NSURLRequestNetworkServiceType") long v); /** * @since Available in iOS 6.0 and later. */ @Mapping("allowsCellularAccess") public native boolean allowsCellularAccess(); /** * @since Available in iOS 6.0 and later. */ @Mapping("setAllowsCellularAccess:") public native void setAllowsCellularAccess(boolean v); @Mapping("HTTPMethod") public native String getHTTPMethod(); @Mapping("setHTTPMethod:") public native void setHTTPMethod(String v); @Mapping("allHTTPHeaderFields") public native NSDictionary<?, ?> getAllHTTPHeaderFields(); @Mapping("setAllHTTPHeaderFields:") public native void setAllHTTPHeaderFields(NSDictionary<?, ?> v); @Mapping("HTTPBody") public native NSData getHTTPBody(); @Mapping("setHTTPBody:") public native void setHTTPBody(NSData v); @Mapping("HTTPBodyStream") public native NSInputStream getHTTPBodyStream(); @Mapping("setHTTPBodyStream:") public native void setHTTPBodyStream(NSInputStream v); @Mapping("HTTPShouldHandleCookies") public native boolean shouldHandleHTTPCookies(); @Mapping("setHTTPShouldHandleCookies:") public native void setShouldHandleHTTPCookies(boolean v); /** * @since Available in iOS 4.0 and later. */ @Mapping("HTTPShouldUsePipelining") public native boolean shouldUseHTTPPipelining(); /** * @since Available in iOS 4.0 and later. */ @Mapping("setHTTPShouldUsePipelining:") public native void setShouldUseHTTPPipelining(boolean v); @Mapping("setValue:forHTTPHeaderField:") public native void setHTTPHeaderField0(String value, String field); @Mapping("addValue:forHTTPHeaderField:") public native void addHTTPHeaderField0(String value, String field); }
[ "pchen@sellegit.com" ]
pchen@sellegit.com
31a03d996ff7e084a5bbab64037f711ec26a9f97
0717b0f1bca515f1a6841c80bd0219f5869f9110
/src/main/java/com/andreyDelay/javacore/chapter02/Example1.java
d85fe9b94001b51775bf02aef9e7d39f70e245da
[]
no_license
andreyDelay/javacore
2f9b201cf38b944d8137880766ce295583cbae22
9dd1ffb1187b7df79b9e033dc12b893844ce495a
refs/heads/master
2022-12-23T01:27:01.629555
2020-10-03T21:33:54
2020-10-03T21:33:54
262,768,522
0
0
null
null
null
null
UTF-8
Java
false
false
208
java
package main.java.com.andreyDelay.javacore.chapter02; public class Example1 { public static void main(String [] args) { System.out.println("Простая программа на Java"); } }
[ "frowzygleb@gmail.com" ]
frowzygleb@gmail.com
e2d878f935cd94fa7f4ebe05531fde3db5255ad1
2834f98b53d78bafc9f765344ded24cf41ffebb0
/chrome/android/java/src/org/chromium/chrome/browser/dependency_injection/ChromeAppComponent.java
ca3001ab685102a5c3983468212f9cc31ed2d30e
[ "BSD-3-Clause" ]
permissive
cea56/chromium
81bffdf706df8b356c2e821c1a299f9d4bd4c620
013d244f2a747275da76758d2e6240f88c0165dd
refs/heads/master
2023-01-11T05:44:41.185820
2019-12-09T04:14:16
2019-12-09T04:14:16
226,785,888
1
0
BSD-3-Clause
2019-12-09T04:40:07
2019-12-09T04:40:07
null
UTF-8
Java
false
false
2,730
java
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.dependency_injection; import org.chromium.chrome.browser.AppHooksModule; import org.chromium.chrome.browser.browserservices.ClearDataDialogResultRecorder; import org.chromium.chrome.browser.browserservices.SessionDataHolder; import org.chromium.chrome.browser.browserservices.TrustedWebActivityClient; import org.chromium.chrome.browser.browserservices.permissiondelegation.NotificationPermissionUpdater; import org.chromium.chrome.browser.browserservices.permissiondelegation.TrustedWebActivityPermissionManager; import org.chromium.chrome.browser.customtabs.CustomTabsClientFileProcessor; import org.chromium.chrome.browser.customtabs.CustomTabsConnection; import org.chromium.chrome.browser.customtabs.dependency_injection.CustomTabActivityComponent; import org.chromium.chrome.browser.customtabs.dependency_injection.CustomTabActivityModule; import org.chromium.chrome.browser.externalauth.ExternalAuthUtils; import org.chromium.chrome.browser.preferences.ChromePreferenceManager; import org.chromium.chrome.browser.preferences.SharedPreferencesManager; import org.chromium.chrome.browser.webapps.dependency_injection.WebappActivityComponent; import org.chromium.chrome.browser.webapps.dependency_injection.WebappActivityModule; import javax.inject.Singleton; import dagger.Component; /** * Component representing the Singletons in the main process of the application. */ @Component(modules = {ChromeAppModule.class, AppHooksModule.class}) @Singleton public interface ChromeAppComponent { ChromeActivityComponent createChromeActivityComponent(ChromeActivityCommonsModule module); CustomTabActivityComponent createCustomTabActivityComponent(ChromeActivityCommonsModule module, CustomTabActivityModule customTabActivityModule); WebappActivityComponent createWebappActivityComponent( ChromeActivityCommonsModule module, WebappActivityModule webappActivityModule); CustomTabsConnection resolveCustomTabsConnection(); SharedPreferencesManager resolveSharedPreferencesManager(); ChromePreferenceManager resolvePreferenceManager(); ClearDataDialogResultRecorder resolveTwaClearDataDialogRecorder(); TrustedWebActivityPermissionManager resolveTwaPermissionManager(); NotificationPermissionUpdater resolveTwaPermissionUpdater(); TrustedWebActivityClient resolveTrustedWebActivityClient(); ExternalAuthUtils resolveExternalAuthUtils(); CustomTabsClientFileProcessor resolveCustomTabsFileProcessor(); SessionDataHolder resolveSessionDataHolder(); }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
1782cd49dc0bf4f3ccc3e4d90c39c96eb2db22c0
2712e31319b0c733bcab285415e55a427288406e
/app/src/main/java/aenu/eide/gradle_impl/plugin/eide_java_application.java
f1f7cd431a6b9d87a607b022820727dd13ef5ed3
[ "WTFPL" ]
permissive
mo79571830/eide
8ba031a432cab62e1045b8ff61961d21cfc94f7d
5d6470f82def645c17b5cebe03184ddc1ff67e62
refs/heads/master
2022-03-22T23:46:56.299439
2019-05-08T20:20:08
2019-05-08T20:20:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,105
java
//license wtfpl 2.0 //by aenu 2019 // email:202983447@qq.com package aenu.eide.gradle_impl.plugin; import java.io.File; import aenu.gradle.G_Tree; import aenu.gradle.G_Tree.Node; import aenu.eide.gradle_impl.IPlugin; import aenu.eide.gradle_impl.GradleProject; import aenu.eide.gradle_impl.ToolChain; import java.io.IOException; import java.io.ByteArrayOutputStream; import java.util.zip.ZipOutputStream; import aenu.eide.util.IOUtils; import android.content.Intent; import aenu.eide.E_TermActivity; import aenu.eide.E_Application; import java.io.FileOutputStream; import aenu.eide.util.OSUtils; import aenu.eide.gradle_impl.ToolChainHelper; import java.io.FileFilter; public final class eide_java_application implements IPlugin{ private String mainClassName="example.Main"; private String[] runArgs=null; private String jni_scriptType="Android.mk"; private File jni_scriptPath=null; public String mainClassName(){ return mainClassName; } public String[] runArgs(){ return runArgs; } public String jni_scriptType(){ return jni_scriptType; } public File jni_scriptPath(){ return jni_scriptPath; } @Override public void plugin_Visit(G_Tree tree){ G_Tree.Node node; if((node=tree.getNode("eide-java.mainClassName"))!=null) mainClassName=(String)node.values().get(0).value(); if((node=tree.getNode("eide-java.runArgs"))!=null) runArgs=(String[])node.values().get(0).value(); if((node=tree.getNode("eide-java.jni.scriptType"))!=null) jni_scriptType=(String)node.values().get(0).value(); if((node=tree.getNode("eide-java.jni.scriptPath"))!=null) jni_scriptPath= handle_eide_java_jni_scriptPath(node); } @Override public Runnable plugin_Task(final GradleProject gp){ return new Runnable(){ @Override public void run(){ ToolChain tc=gp.tool_chain; final File p_dir=gp.getProjectDir(); if(mainClassName==null) throw new RuntimeException("unspecified main class!!"); try{ {//run ecj File android_jar=new File(E_Application.getAppPrivateDir(),"android.jar"); File class_out_dir=new File(p_dir,"build/bin/class"); File src_dir=new File(p_dir,"src/main/java"); final String ecj_args=ToolChainHelper.generate_ecj_args(android_jar,class_out_dir,src_dir); if(!tc.run_ecj(ecj_args)) throw new RuntimeException("run ecj failed!"); } {//run dx File classes_dir=new File(p_dir,"build/bin/class"); File jars_dir=new File(p_dir,"libs"); File jars_dex_dir=new File(p_dir,"build/bin/jar_dex"); File classes_dex=new File(p_dir,"build/bin/classes.dex"); jars_dex_dir.mkdirs(); classes_dex.getParentFile().mkdirs(); File[] jars=null; if(jars_dir!=null) jars = jars_dir.listFiles(new FileFilter(){ @Override public boolean accept(File p1){ if(p1.isDirectory()) return false; return p1.getName().endsWith(".jar"); } }); if(jars!=null&&jars.length!=0){ for(File jar:jars){ final File out_dex=new File(jars_dex_dir,jar.getName().replace(".jar",".dex")); final String dx_jar_args=ToolChainHelper.generate_dx_jar_args(jar,out_dex); if(!tc.run_dx(dx_jar_args)) throw new IOException("dx jars!!!!"); } } final String dx_classes_args=ToolChainHelper.generate_dx_classes_args(classes_dir,classes_dex); if(!tc.run_dx(dx_classes_args)) throw new IOException("dx classes!!!!"); } {//create jar(dex) ByteArrayOutputStream jar_buf=new ByteArrayOutputStream(); ZipOutputStream jar_strm=new ZipOutputStream(jar_buf); File resourcesDir=new File(p_dir,"src/main/resources"); File classes_dex=new File(p_dir,"build/bin/classes.dex"); File output_jar=new File(p_dir,"build/bin/o.jar"); if(resourcesDir.exists()){ IOUtils.zip_compressD(resourcesDir,jar_strm,null); } IOUtils.zip_compressF(classes_dex,jar_strm,classes_dex.getName()); jar_strm.close(); IOUtils.file_write(output_jar.getAbsolutePath(),jar_buf.toByteArray()); } {//run jar Intent intent = new Intent(E_TermActivity.ACTION_JAVA_TERM_EXEC); File jar=new File(p_dir,"build/bin/o.jar"); intent.putExtra(E_TermActivity.EXTRA_BIN,jar.getAbsolutePath()); intent.putExtra(E_TermActivity.EXTRA_JAVA_MAIN_CLASS,mainClassName); gp.context.startActivity(intent); } /* final File sh=new File(E_Application.getTmpDir(),"dex_r.sh"); {//create shell script final File output_jar=new File(build_gradle.getParentFile(),"build/bin/o.jar"); FileOutputStream w_sh=new FileOutputStream(sh); w_sh.write(("#!/system/bin/sh\n").getBytes()); w_sh.write(("export ANDROID_DATA=/data/data/aenu.eide/eide-tmp/data\n").getBytes()); w_sh.write(("mkdir -p $ANDROID_DATA/dalvik-cache\n").getBytes()); w_sh.write(("exec /system/bin/dalvikvm -Djava.io.tmpdir=/data/data/aenu.eide/eide-tmp " +"-classpath "+mainClassName+' '+output_jar+'\n').getBytes()); w_sh.close(); OSUtils.chmod(sh.getAbsolutePath(),0700); } {//run jar Intent intent = new Intent(E_TermActivity.ACTION_TERM_EXEC); intent.putExtra(E_TermActivity.EXTRA_COMMAND,sh.getAbsolutePath()); gp.context.startActivity(intent); }*/ }catch(Exception e){ throw new RuntimeException(e); } } }; } private File handle_eide_java_jni_scriptPath(G_Tree.Node node){ return null; } }
[ "202983447@qq.com" ]
202983447@qq.com
06b4ff42f56c0171e295fac4f3717a752b0992d4
2118d1cae69280864107ec8ede5ca7225477147a
/hydrograph.engine/hydrograph.engine.cascading/src/main/java/hydrograph/engine/adapters/base/CommandAdapterBase.java
17b35fb828c13f53834fcb02f334d914cecadf31
[ "Apache-2.0" ]
permissive
Devacurl/Hydrograph
467b40cfef169d4741e62620434117b6b81f2702
d34ec5ca2f8662fdc01b331ed4879bddecbb01c3
refs/heads/master
2020-06-28T02:25:33.190044
2017-06-08T07:25:37
2017-06-08T07:25:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,075
java
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License *******************************************************************************/ package hydrograph.engine.adapters.base; import hydrograph.engine.commandtype.component.BaseCommandComponent; public abstract class CommandAdapterBase implements BaseAdapter { private static final long serialVersionUID = -8968707165016525031L; public abstract BaseCommandComponent getComponent(); }
[ "alpesh.kulkarni@bitwiseglobal.com" ]
alpesh.kulkarni@bitwiseglobal.com
d3889527e1b0a2e4861f0453de695891284cfacc
5fea7aa14b5db9be014439121ee7404b61c004aa
/src/com/tms/elearning/core/ui/CourseLessonsTable.java
b27cc516aa8f37efdd2ed4cba3c194d53ca7934e
[]
no_license
fairul7/eamms
d7ae6c841e9732e4e401280de7e7d33fba379835
a4ed0495c0d183f109be20e04adbf53e19925a8c
refs/heads/master
2020-07-06T06:14:46.330124
2013-05-31T04:18:19
2013-05-31T04:18:19
28,168,318
0
1
null
null
null
null
UTF-8
Java
false
false
5,272
java
package com.tms.elearning.core.ui; import kacang.stdui.*; import kacang.ui.Event; import kacang.ui.WidgetManager; import kacang.ui.Forward; import kacang.services.security.User; import kacang.util.Log; import kacang.Application; import kacang.model.DaoException; import com.tms.elearning.lesson.model.LessonDao; import com.tms.elearning.lesson.model.LessonModule; import com.tms.elearning.lesson.model.Lesson; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; /** * Created by IntelliJ IDEA. * User: tirupati * Date: Dec 6, 2004 * Time: 5:49:09 PM * To change this template use File | Settings | File Templates. */ public class CourseLessonsTable extends Table { private String courseid; public String getCourseid() { return this.courseid; } public void setCourseid(String courseid) { this.courseid = courseid; } public void init() { setModel(new com.tms.elearning.core.ui.CourseLessonsTable.LessonViewTableModel()); } public void onRequest(Event evt) { //super.onRequest(evt); courseid = evt.getRequest().getParameter("cid").trim(); init(); } public class LessonViewTableModel extends TableModel { public LessonViewTableModel() { WidgetManager manager = getWidgetManager(); User user = manager.getUser(); String userId=user.getUsername(); Log log = Log.getLog(getClass()); TableColumn naCol = new TableColumn("name", "Lesson Name"); naCol.setUrl("showLesson.jsp"); naCol.setUrlParam("id"); addColumn(naCol); addColumn(new TableColumn("courseName", "Course")); addColumn(new TableColumn("folderName", "Folder")); addFilter(new TableFilter("name")); /* TableFilter courseFilter = new TableFilter("course"); SelectBox courseSelect = new SelectBox("courseid"); courseSelect.setOptions("-1=--- Course ---"); */ LessonDao lessonDao = (LessonDao)Application.getInstance().getModule(LessonModule.class).getDao(); /*try { Collection courses = lessonDao.getCourses(userId); HashMap hash = new HashMap(); for(Iterator i= courses.iterator();i.hasNext();){ Lesson temp =(Lesson)i.next(); // courseSelect.setOptions(temp.getCourseId()+"="+temp.getCourseName()); hash.put(temp.getCourseId(),temp.getCourseName()); } courseSelect.setOptionMap(hash); } catch (DaoException e) { log.error(e.toString(),e); } courseFilter.setWidget(courseSelect); addFilter(courseFilter);*/ TableFilter folderFilter = new TableFilter("folder"); SelectBox folderSelect = new SelectBox("folderid"); folderSelect.setOptions("-1=--- Folder ---"); try { Collection folders = lessonDao.getFolders(courseid,1); HashMap hash = new HashMap(); for(Iterator i= folders.iterator();i.hasNext();){ Lesson temp1 =(Lesson)i.next(); hash.put(temp1.getFolderId(),temp1.getFolderName()); } folderSelect.setOptionMap(hash); } catch (DaoException e) { log.error(e.toString(),e); } folderFilter.setWidget(folderSelect); addFilter(folderFilter); //addAction(new TableAction("add", "Add")); //addAction(new TableAction("delete", "Delete", "Confirm?")); // } public Collection getTableRows() { String name = (String)getFilterValue("name"); Application application = Application.getInstance(); LessonModule module = (LessonModule)application.getModule(LessonModule.class); return module.findCourseLessons(name,courseid, getSort(), isDesc(), getStart(), getRows()); } public int getTotalRowCount() { String name = (String)getFilterValue("name"); Application application = Application.getInstance(); LessonModule module = (LessonModule)application.getModule(LessonModule.class); return module.countCourseLessons(name,courseid); } public String getTableRowKey() { return "id"; } public Forward processAction(Event evt, String action, String[] selectedKeys) { /* if ("add".equals(action)) { return new Forward("add"); } else if ("delete".equals(action)) { Application application = Application.getInstance(); LessonModule module = (LessonModule)application.getModule(LessonModule.class); for (int i=0; i<selectedKeys.length; i++) { module.deleteLesson(selectedKeys[i]); } } */ return null; } } }
[ "fairul@a9c4ac11-bb59-4888-a949-8c1c6fc09797" ]
fairul@a9c4ac11-bb59-4888-a949-8c1c6fc09797
24c9118afc8ca48f16111954fe5245bbcda3e461
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/grade/af81ffd4bc47e4f84cbf87051d82d15af14833eaba6c57ae82fc503a67eb939f3e6552182124605c38a77a6774f41fac2cc95082320ba5e29d303277c098c4ae/007/mutations/110/grade_af81ffd4_007.java
9785c8b7d429cafb42c8a674214f8bdc848bfbb8
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,577
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class grade_af81ffd4_007 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { grade_af81ffd4_007 mainClass = new grade_af81ffd4_007 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { FloatObj a = new FloatObj (), b = new FloatObj (), c = new FloatObj (), d = new FloatObj (); DoubleObj per = new DoubleObj (); output += (String.format ("Enter thresholds for A, B, C, D\n")); output += (String.format ("in that order, decreasing percentages > ")); a.value = scanner.nextFloat (); a.value = scanner.nextFloat (); c.value = scanner.nextFloat (); d.value = scanner.nextFloat (); per.value = (a.value + b.value + c.value + d.value) / 4; if (per.value < 60) { output += (String.format ("Thank you. Now enter student score (percent) >Student has an B grade\n")); } else if (per.value >= 60 && per.value < 70) { output += (String.format ("Thank you. Now enter student score (percent) >Student has an B grade\n")); } else if (per.value >= 70 && per.value < 80) { output += (String.format ("Thank you. Now enter student score (percent) >Student has an B grade\n")); } else if (per.value >= 80) { output += (String.format ("Thank you. Now enter student score (percent) >Student has an B grade\n")); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
548e48a36c0ebf7c8df7ea0964d6ace0c4dc323a
38c3180624ffa0ab5ae90ffb8ccdaea70734295d
/scm-market/src/main/java/com/winway/scm/persistence/manager/impl/ScmProdPriceManagerImpl.java
e30663e752f1a19cea5a9ed34bca92577dd98aa6
[]
no_license
cwy329233832/scm_code
e88fe0296638202443643941fbfca58dc1abf3f0
fbd3e56af615ce39bca96ce12d71dc5487c51515
refs/heads/master
2021-04-17T16:02:51.463958
2019-09-05T08:22:39
2019-09-05T08:22:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
888
java
package com.winway.scm.persistence.manager.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.hotent.base.dao.MyBatisDao; import com.hotent.base.manager.impl.AbstractManagerImpl; import com.winway.scm.persistence.dao.ScmProdPriceDao; import com.winway.scm.model.ScmProdPrice; import com.winway.scm.persistence.manager.ScmProdPriceManager; /** * * <pre> * 描述:商品价格 处理实现类 * 构建组:x7 * 作者:原浩 * 邮箱:PRD-jun.he@winwayworld.com * 日期:2019-06-27 15:55:07 * 版权:美达开发小组 * </pre> */ @Service("scmProdPriceManager") public class ScmProdPriceManagerImpl extends AbstractManagerImpl<String, ScmProdPrice> implements ScmProdPriceManager{ @Resource ScmProdPriceDao scmProdPriceDao; @Override protected MyBatisDao<String, ScmProdPrice> getDao() { return scmProdPriceDao; } }
[ "1540307734@qq.com" ]
1540307734@qq.com
a584f05ac814c5a5c3c7a63fcf4259de64784415
63fb12fbc8f76707d7a6026b3678425c16729747
/mapcontainer/src/main/java/com/DingTu/Enum/lkGeoLayersType.java
11c80464800e29907080d59522941466cc001e4e
[]
no_license
Jinxin43/MyApplication
140d07e4b12a6d869a6646d155ac7df928eaf8c8
d0adceeeca8a526d60275dc1c0848fd4c6f3010b
refs/heads/master
2023-08-28T21:51:14.824217
2021-11-10T06:08:46
2021-11-10T06:08:46
290,725,996
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package com.DingTu.Enum; /** * Created by Dingtu2 on 2017/5/31. */ public enum lkGeoLayersType { enAll, //所有图层 enVectorBackground, //背景矢量层 enVectorEditingData, //采集数据层 }
[ "291259592@qq.com" ]
291259592@qq.com
8956083af673ec9684d9dafdab281c392f2372cc
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/3.2.2/code/base/dso-l1/tests.unit/com/tc/object/TCClassTest.java
7b1d381980fe9fbdbe9bdd3af0f297a4bab57ec0
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
4,799
java
/* * All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright * notice. All rights reserved. */ package com.tc.object; import com.tc.object.bytecode.MockClassProvider; import com.tc.object.config.DSOClientConfigHelper; import com.tc.object.dna.api.DNAEncoding; import com.tc.object.field.TCFieldFactory; import com.tc.object.loaders.ClassProvider; import com.tc.object.loaders.LoaderDescription; public class TCClassTest extends BaseDSOTestCase { public void tests() throws Exception { // ClientObjectManager manager = new ClientObjectManagerImpl(null, null, null, null); DSOClientConfigHelper config = configHelper(); TCFieldFactory fieldFactory = new TCFieldFactory(config); ClientObjectManager objectManager = new TestClientObjectManager(); ClassProvider classProvider = new MockClassProvider(); DNAEncoding encoding = new ApplicatorDNAEncodingImpl(classProvider); TCClassFactory classFactory = new TCClassFactoryImpl(fieldFactory, config, classProvider, encoding); TCClass tcc1 = new TCClassImpl(fieldFactory, classFactory, objectManager, TCClassTest.class, null, MockClassProvider.MOCK_LOADER, null, false, false, false, null, null, false, true, null, null); assertFalse(tcc1.isIndexed()); assertFalse(tcc1.isNonStaticInner()); TCClass tcc2 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestClass1.class, null, MockClassProvider.MOCK_LOADER, null, false, false, false, null, null, false, true, null, null); assertFalse(tcc2.isIndexed()); assertTrue(tcc2.isNonStaticInner()); TCClass tcc3 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestClass2.class, null, MockClassProvider.MOCK_LOADER, null, false, false, false, null, null, false, true, null, null); assertFalse(tcc3.isIndexed()); assertFalse(tcc3.isNonStaticInner()); TCClass tcc4 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestClass1[].class, null, MockClassProvider.MOCK_LOADER, null, true, false, false, null, null, false, true, null, null); assertTrue(tcc4.isIndexed()); assertFalse(tcc4.isNonStaticInner()); LoaderDescription mockLoader2 = new LoaderDescription(null, "mock2"); TCClass tcc5 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestClass1[].class, null, mockLoader2, null, true, false, false, null, null, false, true, null, null); assertEquals(mockLoader2, tcc5.getDefiningLoaderDescription()); } public void testPortableFields() throws Exception { DSOClientConfigHelper config = configHelper(); TCFieldFactory fieldFactory = new TCFieldFactory(config); ClientObjectManager objectManager = new TestClientObjectManager(); ClassProvider classProvider = new MockClassProvider(); DNAEncoding encoding = new ApplicatorDNAEncodingImpl(classProvider); TCClassFactory classFactory = new TCClassFactoryImpl(fieldFactory, config, classProvider, encoding); TCClass tcc1 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestSuperclass1.class, null, MockClassProvider.MOCK_LOADER, null, false, false, false, null, null, false, true, null, null); assertEquals(2, tcc1.getPortableFields().length); TCClass tcc2 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestSuperclass2.class, null, MockClassProvider.MOCK_LOADER, null, false, false, false, null, null, false, true, null, null); assertEquals(2, tcc2.getPortableFields().length); TCClass tcc3 = new TCClassImpl(fieldFactory, classFactory, objectManager, TestClassPF.class, null, MockClassProvider.MOCK_LOADER, null, false, false, false, null, null, false, true, null, null); assertEquals(1, tcc3.getPortableFields().length); } private class TestClass1 { // } private static class TestClass2 { // } @SuppressWarnings("unused") private static class TestSuperclass1 { private long L1 = 0; private long L2 = 0; } @SuppressWarnings("unused") private static class TestSuperclass2 extends TestSuperclass1 { private long L3 = 0; private long L4 = 0; } @SuppressWarnings("unused") private static class TestClassPF extends TestSuperclass2 { private long L5 = 0; } }
[ "hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864
710f80bda7d4d62a65b813e56bf9001a2b47c050
ca030864a3a1c24be6b9d1802c2353da4ca0d441
/classes9.dex_source_from_JADX/com/facebook/groups/react/AbstractGroupsManagerJavaModule.java
a93c0b03e2862e653c88300a5021a847a0fbe3c8
[]
no_license
pxson001/facebook-app
87aa51e29195eeaae69adeb30219547f83a5b7b1
640630f078980f9818049625ebc42569c67c69f7
refs/heads/master
2020-04-07T20:36:45.758523
2018-03-07T09:04:57
2018-03-07T09:04:57
124,208,458
4
0
null
null
null
null
UTF-8
Java
false
false
848
java
package com.facebook.groups.react; import com.facebook.react.bridge.Callback; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; /* compiled from: payments_db */ public abstract class AbstractGroupsManagerJavaModule extends ReactContextBaseJavaModule { public AbstractGroupsManagerJavaModule(ReactApplicationContext reactApplicationContext) { super(reactApplicationContext); } public String getName() { return "RKTreehouseManager"; } public void doesDeviceHaveSoftKeyboard(Callback callback) { boolean z = true; Object[] objArr = new Object[1]; if (this.a.getResources().getConfiguration().keyboard == 2) { z = false; } objArr[0] = Boolean.valueOf(z); callback.a(objArr); } }
[ "son.pham@jmango360.com" ]
son.pham@jmango360.com
643defcea69e2cd06b9d4dae2c2acb1f4105f7f6
4f886387a6c0c86b39d799c0270bfc8eabf11e8c
/Spring/Ex12-5-WebSocket1/src/main/java/com/study/spring1251/EchoHandler.java
bed3e03d67cab3c66823f06756b240859319f01a
[]
no_license
rumen-scholar/kosmo41_KimCheolEon
38d3cbdd7576784440c95b6291656e11eb20915e
3ea53334f6b8178c8f85c8bc5bf23d58429bb3a0
refs/heads/master
2020-03-21T04:41:23.634173
2018-12-20T09:19:06
2018-12-20T09:19:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
993
java
package com.study.spring1251; import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketMessage; import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.handler.TextWebSocketHandler; public class EchoHandler extends TextWebSocketHandler{ @Override public void afterConnectionEstablished(WebSocketSession session) throws Exception { System.out.printf("%s 연결 됨 \n", session.getId()); } @Override public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception { System.out.printf("%s로부터 [%s] 받음 \n", session.getId(), message.getPayload()); session.sendMessage(new TextMessage("echo : " + message.getPayload())); } @Override public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception { System.out.printf("%s 연결 끊김\n", session.getId()); } }
[ "kchy12345@gmail.com" ]
kchy12345@gmail.com
089865fb1ad3ba873af735caa0b9e7e666ce9ce5
b4c47b649e6e8b5fc48eed12fbfebeead32abc08
/android/animation/Animator.java
58c8b2367c5c730d490c85a878ef6fae1fb7b82c
[]
no_license
neetavarkala/miui_framework_clover
300a2b435330b928ac96714ca9efab507ef01533
2670fd5d0ddb62f5e537f3e89648d86d946bd6bc
refs/heads/master
2022-01-16T09:24:02.202222
2018-09-01T13:39:50
2018-09-01T13:39:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,961
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) package android.animation; import android.content.res.ConstantState; import java.util.ArrayList; // Referenced classes of package android.animation: // TimeInterpolator public abstract class Animator implements Cloneable { private static class AnimatorConstantState extends ConstantState { public int getChangingConfigurations() { return mChangingConf; } public Animator newInstance() { Animator animator = mAnimator.clone(); Animator._2D_set0(animator, this); return animator; } public volatile Object newInstance() { return newInstance(); } final Animator mAnimator; int mChangingConf; public AnimatorConstantState(Animator animator) { mAnimator = animator; Animator._2D_set0(mAnimator, this); mChangingConf = mAnimator.getChangingConfigurations(); } } public static interface AnimatorListener { public abstract void onAnimationCancel(Animator animator); public abstract void onAnimationEnd(Animator animator); public void onAnimationEnd(Animator animator, boolean flag) { onAnimationEnd(animator); } public abstract void onAnimationRepeat(Animator animator); public abstract void onAnimationStart(Animator animator); public void onAnimationStart(Animator animator, boolean flag) { onAnimationStart(animator); } } public static interface AnimatorPauseListener { public abstract void onAnimationPause(Animator animator); public abstract void onAnimationResume(Animator animator); } static AnimatorConstantState _2D_set0(Animator animator, AnimatorConstantState animatorconstantstate) { animator.mConstantState = animatorconstantstate; return animatorconstantstate; } public Animator() { mListeners = null; mPauseListeners = null; mPaused = false; mChangingConfigurations = 0; } public void addListener(AnimatorListener animatorlistener) { if(mListeners == null) mListeners = new ArrayList(); mListeners.add(animatorlistener); } public void addPauseListener(AnimatorPauseListener animatorpauselistener) { if(mPauseListeners == null) mPauseListeners = new ArrayList(); mPauseListeners.add(animatorpauselistener); } void animateBasedOnPlayTime(long l, long l1, boolean flag) { } public void appendChangingConfigurations(int i) { mChangingConfigurations = mChangingConfigurations | i; } public boolean canReverse() { return false; } public void cancel() { } public Animator clone() { Animator animator; try { animator = (Animator)super.clone(); if(mListeners != null) { ArrayList arraylist = JVM INSTR new #51 <Class ArrayList>; arraylist.ArrayList(mListeners); animator.mListeners = arraylist; } if(mPauseListeners != null) { ArrayList arraylist1 = JVM INSTR new #51 <Class ArrayList>; arraylist1.ArrayList(mPauseListeners); animator.mPauseListeners = arraylist1; } } catch(CloneNotSupportedException clonenotsupportedexception) { throw new AssertionError(); } return animator; } public volatile Object clone() throws CloneNotSupportedException { return clone(); } public ConstantState createConstantState() { return new AnimatorConstantState(this); } public void end() { } public int getChangingConfigurations() { return mChangingConfigurations; } public abstract long getDuration(); public TimeInterpolator getInterpolator() { return null; } public ArrayList getListeners() { return mListeners; } public abstract long getStartDelay(); public long getTotalDuration() { long l = getDuration(); if(l == -1L) return -1L; else return getStartDelay() + l; } boolean isInitialized() { return true; } public boolean isPaused() { return mPaused; } public abstract boolean isRunning(); public boolean isStarted() { return isRunning(); } public void pause() { if(isStarted() && mPaused ^ true) { mPaused = true; if(mPauseListeners != null) { ArrayList arraylist = (ArrayList)mPauseListeners.clone(); int i = arraylist.size(); for(int j = 0; j < i; j++) ((AnimatorPauseListener)arraylist.get(j)).onAnimationPause(this); } } } boolean pulseAnimationFrame(long l) { return false; } public void removeAllListeners() { if(mListeners != null) { mListeners.clear(); mListeners = null; } if(mPauseListeners != null) { mPauseListeners.clear(); mPauseListeners = null; } } public void removeListener(AnimatorListener animatorlistener) { if(mListeners == null) return; mListeners.remove(animatorlistener); if(mListeners.size() == 0) mListeners = null; } public void removePauseListener(AnimatorPauseListener animatorpauselistener) { if(mPauseListeners == null) return; mPauseListeners.remove(animatorpauselistener); if(mPauseListeners.size() == 0) mPauseListeners = null; } public void resume() { if(mPaused) { mPaused = false; if(mPauseListeners != null) { ArrayList arraylist = (ArrayList)mPauseListeners.clone(); int i = arraylist.size(); for(int j = 0; j < i; j++) ((AnimatorPauseListener)arraylist.get(j)).onAnimationResume(this); } } } public void reverse() { throw new IllegalStateException("Reverse is not supported"); } public void setAllowRunningAsynchronously(boolean flag) { } public void setChangingConfigurations(int i) { mChangingConfigurations = i; } public abstract Animator setDuration(long l); public abstract void setInterpolator(TimeInterpolator timeinterpolator); public abstract void setStartDelay(long l); public void setTarget(Object obj) { } public void setupEndValues() { } public void setupStartValues() { } void skipToEndValue(boolean flag) { } public void start() { } void startWithoutPulsing(boolean flag) { if(flag) reverse(); else start(); } public static final long DURATION_INFINITE = -1L; int mChangingConfigurations; private AnimatorConstantState mConstantState; ArrayList mListeners; ArrayList mPauseListeners; boolean mPaused; }
[ "hosigumayuugi@gmail.com" ]
hosigumayuugi@gmail.com
de8ac2b70cd7426bd6a666234182470664e4cc7b
2650d565255cf7f5c0192599cb69650aba91fdb8
/java/src/test/java/com/ciaoshen/leetcode/most_common_word/Tester.java
196f84531536032820a48f75cb8bf3ba483d89c9
[ "MIT" ]
permissive
helloShen/leetcode
78ded31b16cfc0ca4d0618d90bb0ef3a8b10377a
5bba26f0612d785800c990947db8dae3af4bad81
refs/heads/master
2021-06-03T14:44:57.256143
2019-04-06T19:06:15
2019-04-06T19:06:15
96,709,063
1
0
null
null
null
null
UTF-8
Java
false
false
1,093
java
/** * Leetcode - most_common_word */ package com.ciaoshen.leetcode.most_common_word; /** basic util */ import java.util.*; import com.ciaoshen.leetcode.util.*; /** JUnit */ import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; /** slf4j */ import org.slf4j.impl.StaticLoggerBinder; import org.slf4j.LoggerFactory; /** commons-lang3 */ import org.apache.commons.lang3.StringUtils; public class Tester { public Tester() { // solution = new Solution1(); solution = new Solution2(); } @Test public void mostCommonWordTest() { String paragraph = "Bob hit a ball, the hit BALL flew far after it was hit."; String[] banned = new String[]{"hit"}; String answer = "ball"; String result = solution.mostCommonWord(paragraph, banned); System.out.println("Result = " + result); assertEquals(answer, result); System.out.println("mostCommonWord() method pass unit test!"); } /**==================== 【 private 】 =========================*/ private Solution solution; }
[ "symantec__@hotmail.com" ]
symantec__@hotmail.com
a33752da77383289a4dc0f7e96a21c4996a861a0
8c2963e562bcc15ca32ff334428592a4c8e43cc2
/src/test/java/com/tpg/cat/reviews/adapters/outgoing/SearchCustomerReviewsAdapterTestSpec.java
c5b0795591a116446718c85657f5d50dd0237f6f
[]
no_license
tpgoldin/cat-reviews-svc
de1ad5336404045c841e6a919bb8dbca46657d7a
5192a6e2c53061353486c026f5c735f823a60fb5
refs/heads/main
2023-07-15T00:14:11.719462
2021-08-30T10:07:47
2021-08-30T10:07:47
401,299,559
0
0
null
null
null
null
UTF-8
Java
false
false
3,188
java
package com.tpg.cat.reviews.adapters.outgoing; import com.tpg.cat.reviews.GivenWhenThen; import com.tpg.cat.reviews.application.model.CustomerReviewModel; import com.tpg.cat.reviews.domain.model.VerifiedReview; import com.tpg.cat.reviews.infrastructure.persistence.CustomerReviewEntityFixture; import com.tpg.cat.reviews.infrastructure.persistence.CustomerReviewsRepository; import lombok.AccessLevel; import lombok.NoArgsConstructor; import org.mockito.Mockito; import java.time.LocalDateTime; import java.util.List; import static com.tpg.cat.reviews.domain.model.VerifiedReview.VERIFIED; import static java.util.Collections.singletonList; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.verify; @NoArgsConstructor(access = AccessLevel.PRIVATE) public class SearchCustomerReviewsAdapterTestSpec implements GivenWhenThen<SearchCustomerReviewsAdapterTestSpec>, CustomerReviewEntityFixture { private static final LocalDateTime NOW = LocalDateTime.now(); public static SearchCustomerReviewsAdapterTestSpec testSpec() { return new SearchCustomerReviewsAdapterTestSpec(); } private CustomerReviewsRepository customerReviewsRepository; private String companyReference; private SearchCustomerReviewsAdapter searchCustomerReviewsAdapter; private List<CustomerReviewModel> actual; @Override public SearchCustomerReviewsAdapterTestSpec and() { return this; } @Override public SearchCustomerReviewsAdapterTestSpec given() { return this; } public SearchCustomerReviewsAdapterTestSpec customerReviewsRepository(CustomerReviewsRepository repository) { this.customerReviewsRepository = repository; return this; } public SearchCustomerReviewsAdapterTestSpec companyReference(String companyReference) { this.companyReference = companyReference; return this; } public SearchCustomerReviewsAdapterTestSpec searchCustomerReviewsAdapter(SearchCustomerReviewsAdapter adapter) { this.searchCustomerReviewsAdapter = adapter; return this; } @Override public SearchCustomerReviewsAdapterTestSpec when() { return this; } public SearchCustomerReviewsAdapterTestSpec searchingForExistingCustomerReviews() { Mockito.when(customerReviewsRepository.findByCompanyReference(companyReference)) .thenReturn(singletonList(customerReviewEntity(1312L, "Fixed loose connection", "Fixed loose connections in fuse box.", "CR8", companyReference, VERIFIED, NOW.minusDays(10)))); actual = searchCustomerReviewsAdapter.findByCompanyReference(companyReference); return this; } @Override public SearchCustomerReviewsAdapterTestSpec then() { return this; } public SearchCustomerReviewsAdapterTestSpec customerReviewsAreRetrieved() { verify(customerReviewsRepository).findByCompanyReference(companyReference); assertThat(actual).isNotEmpty(); // assertThat(actual.get(0).getScoreBreakdownModel().getScoreModels()).isNotEmpty(); return this; } }
[ "tpg@blueyonder.co.uk" ]
tpg@blueyonder.co.uk
913f3e81923056137af611040cbd7a23fed02bfb
407fd65c2376d5f218fc315f2c8e213e91ba30b2
/src/main/java/com/bairock/iot/hamaServer/WebSecurityConfig2.java
b26af7a10acb3b59f110252a57659656a7417285
[]
no_license
LinYing89/hamaServer
c219a041730385e650b0b27de49d8549fc5067bb
381537da61764cfc4cf8dfd614a32b8d4366d87e
refs/heads/master
2020-03-25T14:31:28.973767
2019-11-13T12:50:34
2019-11-13T12:50:34
143,859,187
0
0
null
null
null
null
UTF-8
Java
false
false
2,825
java
package com.bairock.iot.hamaServer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import com.bairock.iot.hamaServer.service.MyCustomUserService; @Configuration @EnableWebSecurity public class WebSecurityConfig2 extends WebSecurityConfigurerAdapter{ @Autowired private MyCustomUserService myCustomUserService; // @Override // protected void configure(HttpSecurity http) throws Exception { // http.authorizeRequests().antMatchers("/login", "/user/page/register", "/user/register", "/css/**", "/img/**", "/js/**", "/webjars/**").permitAll().anyRequest().authenticated().and() // .formLogin().loginPage("/login").defaultSuccessUrl("/loginSuccess", true).permitAll().and().logout() // .permitAll(); // } @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/user/register/**", "/group/client/**", "/deviceImg/**", "/download/**", "/deviceMsg/**", "/hamaServer-websocket/**", "/css/**", "/img/**", "/js/**", "/webjars/**", "/devImg/**").permitAll() .antMatchers(HttpMethod.POST, "/group/client/**").permitAll() .anyRequest().authenticated().and() .formLogin().loginPage("/login").defaultSuccessUrl("/loginSuccess", true).permitAll().and().logout() .permitAll() .and().rememberMe().tokenValiditySeconds(2419200).key("hamaKey") .and().csrf().disable(); } @Bean public BCryptPasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(myCustomUserService).passwordEncoder(passwordEncoder()); } // @Override // protected void configure(AuthenticationManagerBuilder auth) throws Exception { // auth.inMemoryAuthentication().passwordEncoder(passwordEncoder()).withUser("admin") // .password(passwordEncoder().encode("a123")).roles("USER", "ADMIN"); // } // 忽略静态资源的拦截 @Override public void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/resources/static/**"); } }
[ "444894216@qq.com" ]
444894216@qq.com
60f6b839b9d11898311f39bacca4876b73e8ef11
cd4ff501757814b2544dc7a495a59331852dacf6
/dao/src/main/java/site/binghai/SuperBigDumpling/dao/AlbumDao.java
cc05f72e2b69be067c8563c443a8146962470de9
[]
no_license
IceSeaOnly/super_big_dumpling
4387e2878dd77597275591e7523fde5e895ab41b
770a393f90d33407b48ecc9c6ed2caa015d9bdb4
refs/heads/master
2021-09-02T04:17:57.649224
2017-12-30T08:47:24
2017-12-30T08:47:24
103,634,993
1
0
null
null
null
null
UTF-8
Java
false
false
324
java
package site.binghai.SuperBigDumpling.dao; import org.springframework.data.jpa.repository.JpaRepository; import site.binghai.SuperBigDumpling.common.entity.things.Album; /** * Created by IceSea on 2017/10/21. * GitHub: https://github.com/IceSeaOnly */ public interface AlbumDao extends JpaRepository<Album,Integer>{ }
[ "1041414957@qq.com" ]
1041414957@qq.com
09378f0e36013012588bd4a1422fb2a0b737d7fe
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.ocms-OCMS/sources/com/oculus/errorreporting/ErrorReportingExecutorFactory.java
c79cf1dba5250082e9f24b13f61e76e096779553
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
1,571
java
package com.oculus.errorreporting; import com.facebook.common.time.AwakeTimeSinceBootClock; import com.facebook.common.time.MonotonicClock; import java.util.concurrent.ExecutorService; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; public class ErrorReportingExecutorFactory { private static ExecutorService sSingleThreadExecutorService; /* access modifiers changed from: private */ public static class NamedThreadFactory implements ThreadFactory { private final String mNamePrefix; private final AtomicInteger mThreadNumber = new AtomicInteger(1); public NamedThreadFactory(String str) { this.mNamePrefix = str; } public Thread newThread(Runnable runnable) { return new Thread(runnable, this.mNamePrefix + this.mThreadNumber.getAndIncrement()); } } public static ExecutorService getSingleThreadExecutorService() { synchronized (ErrorReportingExecutorFactory.class) { if (sSingleThreadExecutorService == null) { sSingleThreadExecutorService = new ThreadPoolExecutor(0, 1, 60, TimeUnit.SECONDS, new LinkedBlockingQueue(), new NamedThreadFactory("ErrorReportingThread-")); } } return sSingleThreadExecutorService; } public static MonotonicClock getMonotonicClock() { return AwakeTimeSinceBootClock.get(); } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
8c15e272409e434afd9c5e4b946b3e6c9b873f9b
c827bfebbde82906e6b14a3f77d8f17830ea35da
/Development3.0/utilities/test-harness/src/main/java/com/headstrong/fusion/configGenerator/dataFactory/DataException.java
79f7a73c7bbcbf1d978a5d8845a9495e7da0f9d2
[]
no_license
GiovanniPucariello/TeevraCore
13ccf7995c116267de5c403b962f1dc524ac1af7
9d755cc9ca91fb3ebc5b227d9de6bcf98a02c7b7
refs/heads/master
2021-05-29T18:12:29.174279
2013-04-22T07:44:28
2013-04-22T07:44:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
519
java
package com.headstrong.fusion.configGenerator.dataFactory; public class DataException extends RuntimeException { public DataException() { super(); // TODO Auto-generated constructor stub } public DataException(String arg0, Throwable arg1) { super(arg0, arg1); // TODO Auto-generated constructor stub } public DataException(String arg0) { super(arg0); // TODO Auto-generated constructor stub } public DataException(Throwable arg0) { super(arg0); // TODO Auto-generated constructor stub } }
[ "ritwik.bose@headstrong.com" ]
ritwik.bose@headstrong.com
bc3a9c2368ca2ef30d6c3df1b9553b3fe6a8b102
f0818cf5485be456ebc68f93da6bd2b70423db3d
/wms-core/src/main/java/com/lsh/wms/core/dao/pub/PubConfigPageDao.java
0bd24c286de5685390f59a383a684c6add2a2d9c
[ "Apache-2.0" ]
permissive
weiandedidi/work_sys
f421afd38cf4d8f2cfee74d2c88c9c422b7a629c
d2c6358ebef524d93104ad8e003395176a8ac599
refs/heads/master
2020-04-06T04:12:34.036354
2018-01-08T03:45:31
2018-01-08T03:45:31
83,012,292
0
1
null
null
null
null
UTF-8
Java
false
false
507
java
package com.lsh.wms.core.dao.pub; import com.lsh.wms.model.pub.PubConfigPage; import com.lsh.wms.core.dao.MyBatisRepository; import java.util.List; import java.util.Map; @MyBatisRepository public interface PubConfigPageDao { void insert(PubConfigPage pubConfigPage); void update(PubConfigPage pubConfigPage); PubConfigPage getPubConfigPageById(Integer id); Integer countPubConfigPage(Map<String, Object> params); List<PubConfigPage> getPubConfigPageList(Map<String, Object> params); }
[ "weiandedidi@163.com" ]
weiandedidi@163.com
d4e71ca148ad2f55dbe1a5ac8e157bdbf9e75a5b
5aaf23a0425077d4d6f634f14dc2a9eb56d79bcb
/src/main/java/com/bis/operox/inv/service/TicketService.java
78b9c4feb5ff709976dc882d2b7ea8d09cc21227
[]
no_license
naidu8242/operox_shopping
578e35cc6de437e3dd526834a796d63159d9f900
fe4f3080fc58546e774110e31c022c55bcb326cb
refs/heads/master
2022-12-23T04:38:20.470280
2020-02-03T09:53:48
2020-02-03T09:53:48
237,930,620
0
0
null
2022-12-16T08:01:12
2020-02-03T09:38:49
Java
UTF-8
Java
false
false
472
java
package com.bis.operox.inv.service; import java.util.List; import org.json.JSONObject; import org.springframework.web.multipart.MultipartFile; import com.bis.operox.inv.dao.entity.Ticket; import com.bis.operox.inv.dao.entity.User; public interface TicketService { Ticket addTicket(Ticket ticket); Ticket getTicketById(Long id); List<Ticket> ticketsList(); void addTicketDetails(JSONObject jsonObj, User user, MultipartFile multiFile) throws Exception; }
[ "plakshunnaidu@gmail.com" ]
plakshunnaidu@gmail.com
3fe1c4f615a48b7711fe64f04999fc7c5220ee81
7a2c91813117a8d949571521510895ee53daad49
/src/main/java/com/alipay/api/domain/AlipayEcoRenthouseCommunityBaseinfoSyncModel.java
b7e7df88a43613aed19392738aa5453cab644ea9
[ "Apache-2.0" ]
permissive
dut3062796s/alipay-sdk-java-all
eb5afb5b570fb0deb40d8c960b85a01d13506568
559180f4c370f7fcfef67a1c559768d11475c745
refs/heads/master
2020-07-03T21:00:06.124387
2019-06-23T01:13:43
2019-06-23T01:13:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,781
java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 小区大楼信息同步 * * @author auto create * @since 1.0, 2018-06-25 14:53:23 */ public class AlipayEcoRenthouseCommunityBaseinfoSyncModel extends AlipayObject { private static final long serialVersionUID = 6479351414287459775L; /** * 商圈编码 */ @ApiField("bus_code") private String busCode; /** * 商圈所在纬度 */ @ApiField("bus_lat") private String busLat; /** * 商圈所在经度 */ @ApiField("bus_lng") private String busLng; /** * 商圈名称 */ @ApiField("bus_name") private String busName; /** * 商圈覆盖半径(单位:米) */ @ApiField("bus_radius") private Long busRadius; /** * 城市编码 */ @ApiField("city_code") private String cityCode; /** * 城市所在纬度 */ @ApiField("city_lat") private String cityLat; /** * 城市所在经度 */ @ApiField("city_lng") private String cityLng; /** * 城市名称 */ @ApiField("city_name") private String cityName; /** * 小区/大楼编码 */ @ApiField("community_code") private String communityCode; /** * 小区/大楼所在纬度 */ @ApiField("community_lat") private String communityLat; /** * 小区/大楼所在经度 */ @ApiField("community_lng") private String communityLng; /** * 小区/大楼名称 */ @ApiField("community_name") private String communityName; /** * 小区/大楼弄号 */ @ApiField("community_nong") private String communityNong; /** * 小区/大楼街道 */ @ApiField("community_street") private String communityStreet; /** * 小区/大楼标识类型 1:小区 2:大楼 */ @ApiField("community_tag") private String communityTag; /** * 行政区域编码 */ @ApiField("district_code") private String districtCode; /** * 行政区域所在纬度 */ @ApiField("district_lat") private String districtLat; /** * 行政区域所在经度 */ @ApiField("district_lng") private String districtLng; /** * 行政区域名称 */ @ApiField("district_name") private String districtName; /** * 地铁线地铁站关系 */ @ApiListField("subway_stations") @ApiField("string") private List<String> subwayStations; public String getBusCode() { return this.busCode; } public void setBusCode(String busCode) { this.busCode = busCode; } public String getBusLat() { return this.busLat; } public void setBusLat(String busLat) { this.busLat = busLat; } public String getBusLng() { return this.busLng; } public void setBusLng(String busLng) { this.busLng = busLng; } public String getBusName() { return this.busName; } public void setBusName(String busName) { this.busName = busName; } public Long getBusRadius() { return this.busRadius; } public void setBusRadius(Long busRadius) { this.busRadius = busRadius; } public String getCityCode() { return this.cityCode; } public void setCityCode(String cityCode) { this.cityCode = cityCode; } public String getCityLat() { return this.cityLat; } public void setCityLat(String cityLat) { this.cityLat = cityLat; } public String getCityLng() { return this.cityLng; } public void setCityLng(String cityLng) { this.cityLng = cityLng; } public String getCityName() { return this.cityName; } public void setCityName(String cityName) { this.cityName = cityName; } public String getCommunityCode() { return this.communityCode; } public void setCommunityCode(String communityCode) { this.communityCode = communityCode; } public String getCommunityLat() { return this.communityLat; } public void setCommunityLat(String communityLat) { this.communityLat = communityLat; } public String getCommunityLng() { return this.communityLng; } public void setCommunityLng(String communityLng) { this.communityLng = communityLng; } public String getCommunityName() { return this.communityName; } public void setCommunityName(String communityName) { this.communityName = communityName; } public String getCommunityNong() { return this.communityNong; } public void setCommunityNong(String communityNong) { this.communityNong = communityNong; } public String getCommunityStreet() { return this.communityStreet; } public void setCommunityStreet(String communityStreet) { this.communityStreet = communityStreet; } public String getCommunityTag() { return this.communityTag; } public void setCommunityTag(String communityTag) { this.communityTag = communityTag; } public String getDistrictCode() { return this.districtCode; } public void setDistrictCode(String districtCode) { this.districtCode = districtCode; } public String getDistrictLat() { return this.districtLat; } public void setDistrictLat(String districtLat) { this.districtLat = districtLat; } public String getDistrictLng() { return this.districtLng; } public void setDistrictLng(String districtLng) { this.districtLng = districtLng; } public String getDistrictName() { return this.districtName; } public void setDistrictName(String districtName) { this.districtName = districtName; } public List<String> getSubwayStations() { return this.subwayStations; } public void setSubwayStations(List<String> subwayStations) { this.subwayStations = subwayStations; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
03e2839a2257b0cea05d02705da4f9b721c11d19
546d29e1adc03f7f6d98d12ba93eef2a3401d15f
/src/main/java/examples/CooperatingDeadlock.java
561e995381780302c1e5e032046f836a1fc22d29
[]
no_license
gailo22/concurrency
9d8841596157c9fc1148a1489a7c75271b27e951
7bc99f6ff75c6b9f34c416a24ffe41c6d86dfc7a
refs/heads/master
2021-01-15T17:08:03.074512
2014-06-16T03:44:10
2014-06-16T03:44:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,721
java
package examples; import java.util.*; import annotations.*; /** * CooperatingDeadlock * <p/> * Lock-ordering deadlock between cooperating objects * * @author Brian Goetz and Tim Peierls */ public class CooperatingDeadlock { // Warning: deadlock-prone! class Taxi { @GuardedBy("this") private Point location, destination; private final Dispatcher dispatcher; public Taxi(Dispatcher dispatcher) { this.dispatcher = dispatcher; } public synchronized Point getLocation() { return location; } public synchronized void setLocation(Point location) { this.location = location; if (location.equals(destination)) dispatcher.notifyAvailable(this); } public synchronized Point getDestination() { return destination; } public synchronized void setDestination(Point destination) { this.destination = destination; } } class Dispatcher { @GuardedBy("this") private final Set<Taxi> taxis; @GuardedBy("this") private final Set<Taxi> availableTaxis; public Dispatcher() { taxis = new HashSet<Taxi>(); availableTaxis = new HashSet<Taxi>(); } public synchronized void notifyAvailable(Taxi taxi) { availableTaxis.add(taxi); } public synchronized Image getImage() { Image image = new Image(); for (Taxi t : taxis) image.drawMarker(t.getLocation()); return image; } } class Image { public void drawMarker(Point p) { } } }
[ "yidao620@gmail.com" ]
yidao620@gmail.com
3113b12fa664d68e6bad6ad77ec14fa6841074c2
b6cad48067fe6f31302d47b940f1ca2abb15d7b6
/项目资料/project(0)/project/LaoWangProject/src/com/john/guo/laowangproject/act/UserCenterActivity.java
8b286c1369bdf813999d29be74758c15fae26255
[]
no_license
lk5103613/Fitness_student
d046416309d131b122fa77718b75f2b78b6b9ca6
b1abf3d606a072e07e287a96ec72795fbb443f6d
refs/heads/master
2021-01-01T17:21:42.590568
2015-10-16T06:04:17
2015-10-16T06:04:17
42,568,981
0
0
null
null
null
null
UTF-8
Java
false
false
3,579
java
package com.john.guo.laowangproject.act; import com.honestwalker.androidutils.window.ToastHelper; import com.john.guo.laowangproject.R; import com.john.guo.laowangproject.titlebar.TitleArgBuilder; import com.john.guo.laowangproject.titlebar.TitleBuilder; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.RelativeLayout; public class UserCenterActivity extends BaseActivity implements OnClickListener { //==================================================== // // 页面控件 // //==================================================== private RelativeLayout kechengRL; private RelativeLayout xiaoxiRL; private RelativeLayout shoucangRL; private RelativeLayout qianbaoRL; private RelativeLayout youhuiquanRL; private RelativeLayout shezhiRL; private RelativeLayout fenxiangRL; private RelativeLayout jiaolianRL; //==================================================== // // 页面参数 // //==================================================== //==================================================== // // 生命周期 // //==================================================== @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_usercenter); } //==================================================== // // 逻辑方法 // //==================================================== @Override protected void initView() { new TitleBuilder(context, TitleArgBuilder.getTitle("我的")); kechengRL = (RelativeLayout) findViewById(R.id.layout1); xiaoxiRL = (RelativeLayout) findViewById(R.id.layout2); shoucangRL = (RelativeLayout) findViewById(R.id.layout3); qianbaoRL = (RelativeLayout) findViewById(R.id.layout4); youhuiquanRL = (RelativeLayout) findViewById(R.id.layout5); shezhiRL = (RelativeLayout) findViewById(R.id.layout6); fenxiangRL = (RelativeLayout) findViewById(R.id.layout7); jiaolianRL = (RelativeLayout) findViewById(R.id.layout8); kechengRL.setOnClickListener(this); xiaoxiRL.setOnClickListener(this); shoucangRL.setOnClickListener(this); qianbaoRL.setOnClickListener(this); youhuiquanRL.setOnClickListener(this); shezhiRL.setOnClickListener(this); fenxiangRL.setOnClickListener(this); jiaolianRL.setOnClickListener(this); } @Override public void onClick(View arg0) { switch (arg0.getId()) { case R.id.layout1: // startActivity(new Intent(context, )); ToastHelper.alert(context, "我的课程"); break; case R.id.layout2: // startActivity(new Intent(context, )); ToastHelper.alert(context, "我的消息"); break; case R.id.layout3: // startActivity(new Intent(context, )); ToastHelper.alert(context, "我的收藏"); break; case R.id.layout4: // startActivity(new Intent(context, )); ToastHelper.alert(context, "我的钱包"); break; case R.id.layout5: startActivity(new Intent(context, CouponActivity.class)); break; case R.id.layout6: startActivity(new Intent(context, MySettingActivity.class)); break; case R.id.layout7: // startActivity(new Intent(context, )); ToastHelper.alert(context, "我的分享"); break; case R.id.layout8: // startActivity(new Intent(context, )); ToastHelper.alert(context, "我要成为教练"); break; default: break; } } //==================================================== // // 接口实现,函数回调 // //==================================================== }
[ "524148211@qq.com" ]
524148211@qq.com
276a0169504a35de6a13e79fb9cb996fa3a43c94
a3f08254f48839cc469d48fe35f7dc754782a0e0
/mozu-java-core/src/main/java/com/mozu/api/ApiException.java
739e072a1292735e80f44c60c159832e70ff8525
[ "MIT" ]
permissive
lsendel/mozu-java
baea9a43a407ced0e2ead50fda17b7212b8eb835
e72f5efa96d53e6b1e851f1dd6c9fced67101da6
refs/heads/master
2021-01-16T22:04:59.657160
2014-08-22T14:44:10
2014-08-22T14:44:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
987
java
package com.mozu.api; public class ApiException extends RuntimeException { /** Default Serial Version UID */ private static final long serialVersionUID = 1L; protected ApiError apiError = null; protected int HttpStatusCode; public ApiException(String message) { super(message); } public ApiException(String message, ApiError apiError) { super(message); this.apiError = apiError; } public ApiException(String message, ApiError apiError, int httpStatusCode) { super(message); this.apiError = apiError; this.HttpStatusCode = httpStatusCode; } public ApiException(String message, int httpStatusCode) { super(message); this.HttpStatusCode = httpStatusCode; } public ApiError getApiError() { return apiError; } public int getHttpStatusCode() { return HttpStatusCode; } public void setHttpStatusCode(int httpStatusCode) { HttpStatusCode = httpStatusCode; } }
[ "bob_hewett@volusion.com" ]
bob_hewett@volusion.com
462c44b66715013fe86881113ae80146f673a67d
d4c3659ac9ddb5e3c0010b326f3bcc7e33ce0bed
/ren-automation-ui/src/main/java/com/exigen/ren/main/modules/claim/gb_dn/tabs/FinancialPaymentPaymentDetailsActionTab.java
aaf86b4cc426ff5dd956c728baa2be774a6b895f
[]
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
1,666
java
package com.exigen.ren.main.modules.claim.gb_dn.tabs; import com.exigen.ipb.eisa.controls.composite.TableExtended; import com.exigen.istf.webdriver.controls.Button; import com.exigen.istf.webdriver.controls.Named; import com.exigen.ren.common.ActionTab; import com.exigen.ren.main.modules.claim.common.tabs.PolicyInformationParticipantParticipantInformationTab; import com.exigen.ren.main.modules.claim.gb_dn.metadata.FinancialPaymentPaymentDetailsActionTabMetaData; import org.openqa.selenium.By; public class FinancialPaymentPaymentDetailsActionTab extends ActionTab { public static Button buttonAddPaymentReduction = new Button(By.id("policyDataGatherForm:addClaimsDentalPaymentCalculatorReduction")); public static Button buttonRemovePaymentReduction = new Button(By.id("policyDataGatherForm:eliminateClaimsDentalPaymentCalculatorReduction")); public static TableExtended<ListClaimsDentalPaymentCalculatorReduction> listOfReductionsAmount = new TableExtended<>("Dental Claims List of Reductions", By.xpath("//div[@id='policyDataGatherForm:dataGatherView_ListClaimsDentalPaymentCalculatorReduction']/div/table")); public FinancialPaymentPaymentDetailsActionTab() { super(FinancialPaymentPaymentDetailsActionTabMetaData.class); } public enum ListClaimsDentalPaymentCalculatorReduction implements Named { REDUCTION_AMOUNT("Reduction Amount"), CLAIM_ID("Claim #"); private String name; ListClaimsDentalPaymentCalculatorReduction(String name) { this.name = name; } @Override public String getName() { return name; } } }
[ "Nramachandra@previseit.com" ]
Nramachandra@previseit.com
c2bed0f0b77c2fec7f18c92af61c7aad2e3b77f5
cfe621e8c36e6ac5053a2c4f7129a13ea9f9f66b
/apps_final/mobi.dream.neko/apk/com/google/zxing/client/android/HelpActivity$HelpClient.java
2fdcae0b3b79afa27071790c8128e86a6ad6132f
[]
no_license
linux86/AndoirdSecurity
3165de73b37f53070cd6b435e180a2cb58d6f672
1e72a3c1f7a72ea9cd12048d9874a8651e0aede7
refs/heads/master
2021-01-11T01:20:58.986651
2016-04-05T17:14:26
2016-04-05T17:14:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
960
java
package com.google.zxing.client.android; import android.content.Intent; import android.net.Uri; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Button; final class HelpActivity$HelpClient extends WebViewClient { private HelpActivity$HelpClient(HelpActivity paramHelpActivity) {} public void onPageFinished(WebView paramWebView, String paramString) { this$0.setTitle(paramWebView.getTitle()); HelpActivity.access$200(this$0).setEnabled(paramWebView.canGoBack()); } public boolean shouldOverrideUrlLoading(WebView paramWebView, String paramString) { if (paramString.startsWith("file")) { return false; } this$0.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(paramString))); return true; } } /* Location: * Qualified Name: com.google.zxing.client.android.HelpActivity.HelpClient * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "i@xuzhao.net" ]
i@xuzhao.net
4e3a258f7af52cfc9464e85c9b317a8c5c9ed5e3
93571216d41070799ee9618c4d94fa61196bfed8
/system/platform-core/src/test/java/org/platformlambda/core/util/unsafe/models/UnauthorizedObj.java
1ae7a265e81e43b085a2413b62012ba79fefeb33
[ "Apache-2.0" ]
permissive
iuriimattos2/mercury
118bba92bde7f68def4ad383e48c1336e16754d8
7092ad906b7c780ce53f974a2b02c5a7177c2a8a
refs/heads/master
2023-04-07T20:58:42.113020
2021-04-08T23:13:28
2021-04-08T23:13:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,550
java
/* Copyright 2018-2021 Accenture Technology 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.platformlambda.core.util.unsafe.models; import java.util.Date; public class UnauthorizedObj { private int number; private String name; private String address; private String fullName; private Date date; public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } }
[ "eric.cw.law@gmail.com" ]
eric.cw.law@gmail.com
4e05c49c3c00c640dd226c56a004722048e12aaf
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MOCKITO-38b-1-1-MOEAD-WeightedSum:TestLen:CallDiversity/org/mockito/internal/verification/argumentmatching/ArgumentMatchingTool_ESTest.java
667b4df576974e8e5eceaf2467d0a9db7975b520
[]
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
597
java
/* * This file was automatically generated by EvoSuite * Wed Apr 08 08:11:47 UTC 2020 */ package org.mockito.internal.verification.argumentmatching; 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 ArgumentMatchingTool_ESTest extends ArgumentMatchingTool_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
f5c84b76374b3337116933cc515d7593c6de89b0
925e3f64b87cc110fb09683f3fd03c08f80a2491
/cart-server/src/main/java/works/weave/socks/cart/cartserver/tars/cart/impl/ItemsControllerServantImpl.java
cba972027d59c271852c77c919f20b1a2c321715
[]
no_license
yzgqy/shop-tars
e2d703a9d670488097e707d20cd8651f3b549b48
5c963126612a57e3aae20974a5d9a830a3a8cd10
refs/heads/master
2020-06-21T23:11:40.282762
2019-07-18T11:36:14
2019-07-18T11:36:14
197,574,984
0
0
null
null
null
null
UTF-8
Java
false
false
4,401
java
package works.weave.socks.cart.cartserver.tars.cart.impl; import com.qq.tars.spring.annotation.TarsServant; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.PathVariable; import works.weave.socks.cart.cartserver.cart.CartDAO; import works.weave.socks.cart.cartserver.cart.CartResource; import works.weave.socks.cart.cartserver.entities.Cart; import works.weave.socks.cart.cartserver.entities.Item; import works.weave.socks.cart.cartserver.item.FoundItem; import works.weave.socks.cart.cartserver.item.ItemDAO; import works.weave.socks.cart.cartserver.item.ItemResource; import works.weave.socks.cart.cartserver.tars.cart.ItemTars; import works.weave.socks.cart.cartserver.tars.cart.ItemsControllerServant; import java.util.ArrayList; import java.util.List; import java.util.function.Supplier; import static org.slf4j.LoggerFactory.getLogger; /** * @Auther: yaya * @Date: 2019/7/3 17:27 * @Description: */ @Component @TarsServant("ItemsObj") public class ItemsControllerServantImpl implements ItemsControllerServant { private final Logger LOG = getLogger(getClass()); @Autowired private ItemDAO itemDAO; @Autowired private CartsControllerServantImpl cartsControllerServantImpl; @Autowired private CartDAO cartDAO; @Override public ItemTars get(String customerId, String itemId) { return new FoundItem(() -> getItemsModel(customerId), () -> new Item(itemId)).get().toTars(); } public Item getModel(@PathVariable String customerId, @PathVariable String itemId) { return new FoundItem(() -> getItemsModel(customerId), () -> new Item(itemId)).get(); } @Override public List<ItemTars> getItems(String customerId) { List<Item> items =getItemsModel(customerId); List<ItemTars> itemTarsList = new ArrayList<>(); for (Item item:items){ itemTarsList.add(item.toTars()); } return itemTarsList; } private List<Item> getItemsModel(String customerId){ return getcart(customerId).contents(); } private Cart getcart( String customerId){ return new CartResource(cartDAO, customerId).value().get(); } @Override public ItemTars addToCart(String customerId, ItemTars item) { Item itemModel = new Item(); itemModel.setId(item.getId()); itemModel.setItemId(item.getItemId()); itemModel.setQuantity(item.getQuantity()); itemModel.setUnitPrice(item.getUnitPrice()); // If the item does not exist in the cart, create new one in the repository. FoundItem foundItem = new FoundItem(() -> getcart(customerId).contents(), () -> itemModel); if (!foundItem.hasItem()) { Supplier<Item> newItem = new ItemResource(itemDAO, () -> itemModel).create(); LOG.debug("Did not find item. Creating item for user: " + customerId + ", " + newItem.get()); new CartResource(cartDAO, customerId).contents().get().add(newItem).run(); return itemModel.toTars(); } else { Item newItem = new Item(foundItem.get(), foundItem.get().quantity() + 1); LOG.debug("Found item in cart. Incrementing for user: " + customerId + ", " + newItem); updateItem(customerId, newItem); return newItem.toTars(); } } @Override public void removeItem(String customerId, String itemId) { FoundItem foundItem = new FoundItem(() -> getItemsModel(customerId), () -> new Item(itemId)); Item item = foundItem.get(); LOG.debug("Removing item from cart: " + item); new CartResource(cartDAO, customerId).contents().get().delete(() -> item).run(); LOG.debug("Removing item from repository: " + item); new ItemResource(itemDAO, () -> item).destroy().run(); } @Override public void updateItem(String customerId, ItemTars item) { Item itemModel = new Item(item); updateItem(customerId,itemModel); } private void updateItem(String customerId, Item item) { ItemResource itemResource = new ItemResource(itemDAO, () -> getModel(customerId, item.itemId())); LOG.debug("Merging item in cart for user: " + customerId + ", " + item); itemResource.merge(item).run(); } }
[ "772751879@qq.com" ]
772751879@qq.com
6ac29d7145fcd1841b3c40041ad6fbb48e56ce9b
4939a0ba3ff6e387c23e4928a7a5b707a2b41244
/com/client/glowclient/dA.java
75457a19c4a33c6dfd7116026f598e57f9c409b0
[]
no_license
XeonLyfe/Glow-1.0.4-Deobf-Source-Leak
39356b4e9ec35d6631aa811ec65005a2ae1a95ab
fd3b7315a80ec56bc86dfa9db87bde35327dde5d
refs/heads/master
2022-03-29T03:51:08.343934
2019-11-30T01:58:05
2019-11-30T01:58:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
280
java
package com.client.glowclient; public final class DA { public static final int d = 1; public static final int L = 9; public static final int A = 5; public static final int B = 36; public static final int b = 0; public DA() { super(); } }
[ "57571957+RIPBackdoored@users.noreply.github.com" ]
57571957+RIPBackdoored@users.noreply.github.com
6852714ecb31893aac1939be010e74b3899f571a
774b50fe5091754f23ef556c07a4d1aab56efe27
/oag/src/main/java/org/oagis/model/v101/QualitativeType.java
6a0b775124bfe286e20d2ed064cb2d76c8150d19
[]
no_license
otw1248/thirdpartiess
daa297c2f44adb1ffb6530f88eceab6b7f37b109
4cbc4501443d807121656e47014d70277ff30abc
refs/heads/master
2022-12-07T17:10:17.320160
2022-11-28T10:56:19
2022-11-28T10:56:19
33,661,485
0
0
null
null
null
null
UTF-8
Java
false
false
2,436
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // 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: 2015.04.09 at 04:59:34 PM CST // package org.oagis.model.v101; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * The type that represents The qualitative result from a test or analysis * * <p>Java class for QualitativeType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="QualitativeType"> * &lt;complexContent> * &lt;extension base="{http://www.openapplications.org/oagis/10}QualitativeBaseType"> * &lt;sequence> * &lt;element name="Extension" type="{http://www.openapplications.org/oagis/10}QualitativeExtensionType" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "QualitativeType", propOrder = { "extension" }) public class QualitativeType extends QualitativeBaseType { @XmlElement(name = "Extension") protected List<QualitativeExtensionType> extension; /** * Gets the value of the extension property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the extension property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExtension().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link QualitativeExtensionType } * * */ public List<QualitativeExtensionType> getExtension() { if (extension == null) { extension = new ArrayList<QualitativeExtensionType>(); } return this.extension; } }
[ "otw1248@otw1248.com" ]
otw1248@otw1248.com
64cf2c57d3ccdc5f8502921e17996ebf71bf3baa
bb13907de0911a1c03f1a32a7ea16740234abf1c
/src/main/java/com/emc/fapi/jaxws/v4_3_1/DefaultArrayResourcePoolParams.java
a23ed62932afba88b7b1a54c07f7a906d57f8625
[]
no_license
noamda/fal431
9287e95fa2bacdace92e65b16ec6985ce2ded29c
dad30667424970fba049df3ba2c2023b82b9276e
refs/heads/master
2021-01-21T14:25:10.211169
2016-06-20T08:55:43
2016-06-20T08:58:33
58,481,483
0
0
null
null
null
null
UTF-8
Java
false
false
2,991
java
package com.emc.fapi.jaxws.v4_3_1; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DefaultArrayResourcePoolParams", propOrder = {"requiredSizeInBytes", "arrayUid", "tieringPolicy", "poolType"}) public class DefaultArrayResourcePoolParams { protected long requiredSizeInBytes; @XmlElement(nillable = true) protected ArrayUID arrayUid; protected ArrayResourcePoolTieringPolicy tieringPolicy; protected ArrayResourcePoolType poolType; public DefaultArrayResourcePoolParams() { } public DefaultArrayResourcePoolParams(long requiredSizeInBytes, ArrayUID arrayUid, ArrayResourcePoolTieringPolicy tieringPolicy, ArrayResourcePoolType poolType) { this.requiredSizeInBytes = requiredSizeInBytes; this.arrayUid = arrayUid; this.tieringPolicy = tieringPolicy; this.poolType = poolType; } public long getRequiredSizeInBytes() { return this.requiredSizeInBytes; } public void setRequiredSizeInBytes(long value) { this.requiredSizeInBytes = value; } public ArrayUID getArrayUid() { return this.arrayUid; } public void setArrayUid(ArrayUID value) { this.arrayUid = value; } public ArrayResourcePoolTieringPolicy getTieringPolicy() { return this.tieringPolicy; } public void setTieringPolicy(ArrayResourcePoolTieringPolicy value) { this.tieringPolicy = value; } public ArrayResourcePoolType getPoolType() { return this.poolType; } public void setPoolType(ArrayResourcePoolType value) { this.poolType = value; } public boolean equals(Object obj) { if (!(obj instanceof DefaultArrayResourcePoolParams)) { return false; } DefaultArrayResourcePoolParams otherObj = (DefaultArrayResourcePoolParams) obj; return (this.requiredSizeInBytes == otherObj.requiredSizeInBytes) && (this.arrayUid != null ? this.arrayUid.equals(otherObj.arrayUid) : this.arrayUid == otherObj.arrayUid) && (this.tieringPolicy != null ? this.tieringPolicy.equals(otherObj.tieringPolicy) : this.tieringPolicy == otherObj.tieringPolicy) && (this.poolType != null ? this.poolType.equals(otherObj.poolType) : this.poolType == otherObj.poolType); } public int hashCode() { return (int) this.requiredSizeInBytes ^ (this.arrayUid != null ? this.arrayUid.hashCode() : 0) ^ (this.tieringPolicy != null ? this.tieringPolicy.hashCode() : 0) ^ (this.poolType != null ? this.poolType.hashCode() : 0); } public String toString() { return "DefaultArrayResourcePoolParams [requiredSizeInBytes=" + this.requiredSizeInBytes + ", " + "arrayUid=" + this.arrayUid + ", " + "tieringPolicy=" + this.tieringPolicy + ", " + "poolType=" + this.poolType + "]"; } }
[ "style.daniel@gmail.com" ]
style.daniel@gmail.com
ea9cff4525f4aa8dbdda1362ee9ac83f8082d826
0dccef976f19741f67479f32f15d76c1e90e7f94
/ave.java
5a292a8623303e9402dd8a5ed29971edddb60678
[]
no_license
Tominous/LabyMod-1.9
a960959d67817b1300272d67bd942cd383dfd668
33e441754a0030d619358fc20ca545df98d55f71
refs/heads/master
2020-05-24T21:35:00.931507
2017-02-06T21:04:08
2017-02-06T21:04:08
187,478,724
1
0
null
2019-05-19T13:14:46
2019-05-19T13:14:46
null
UTF-8
Java
false
false
3,873
java
import java.util.Random; public class ave extends atp { private static final arc a = aju.r.u().a(ang.b, anj.a.a); private static final arc b = aju.t.u().a(anf.e, anj.a.a).a(anf.b, Boolean.valueOf(false)); public ave() { super(false); } public boolean b(aht ☃, Random ☃, cj ☃) { int ☃ = ☃.nextInt(4) + 5; while (☃.o(☃.b()).a() == axe.h) { ☃ = ☃.b(); } boolean ☃ = true; if ((☃.q() < 1) || (☃.q() + ☃ + 1 > 256)) { return false; } for (int ☃ = ☃.q(); ☃ <= ☃.q() + 1 + ☃; ☃++) { int ☃ = 1; if (☃ == ☃.q()) { ☃ = 0; } if (☃ >= ☃.q() + 1 + ☃ - 2) { ☃ = 3; } cj.a ☃ = new cj.a(); for (int ☃ = ☃.p() - ☃; (☃ <= ☃.p() + ☃) && (☃); ☃++) { for (int ☃ = ☃.r() - ☃; (☃ <= ☃.r() + ☃) && (☃); ☃++) { if ((☃ >= 0) && (☃ < 256)) { arc ☃ = ☃.o(☃.c(☃, ☃, ☃)); ajt ☃ = ☃.t(); if ((☃.a() != axe.a) && (☃.a() != axe.j)) { if ((☃ == aju.j) || (☃ == aju.i)) { if (☃ > ☃.q()) { ☃ = false; } } else { ☃ = false; } } } else { ☃ = false; } } } } if (!☃) { return false; } ajt ☃ = ☃.o(☃.b()).t(); if (((☃ != aju.c) && (☃ != aju.d)) || (☃.q() >= 256 - ☃ - 1)) { return false; } a(☃, ☃.b()); for (int ☃ = ☃.q() - 3 + ☃; ☃ <= ☃.q() + ☃; ☃++) { int ☃ = ☃ - (☃.q() + ☃); int ☃ = 2 - ☃ / 2; for (int ☃ = ☃.p() - ☃; ☃ <= ☃.p() + ☃; ☃++) { int ☃ = ☃ - ☃.p(); for (int ☃ = ☃.r() - ☃; ☃ <= ☃.r() + ☃; ☃++) { int ☃ = ☃ - ☃.r(); if ((Math.abs(☃) != ☃) || (Math.abs(☃) != ☃) || ((☃.nextInt(2) != 0) && (☃ != 0))) { cj ☃ = new cj(☃, ☃, ☃); if (!☃.o(☃).b()) { a(☃, ☃, b); } } } } } for (int ☃ = 0; ☃ < ☃; ☃++) { arc ☃ = ☃.o(☃.b(☃)); ajt ☃ = ☃.t(); if ((☃.a() == axe.a) || (☃.a() == axe.j) || (☃ == aju.i) || (☃ == aju.j)) { a(☃, ☃.b(☃), a); } } for (int ☃ = ☃.q() - 3 + ☃; ☃ <= ☃.q() + ☃; ☃++) { int ☃ = ☃ - (☃.q() + ☃); int ☃ = 2 - ☃ / 2; cj.a ☃ = new cj.a(); for (int ☃ = ☃.p() - ☃; ☃ <= ☃.p() + ☃; ☃++) { for (int ☃ = ☃.r() - ☃; ☃ <= ☃.r() + ☃; ☃++) { ☃.c(☃, ☃, ☃); if (☃.o(☃).a() == axe.j) { cj ☃ = ☃.e(); cj ☃ = ☃.f(); cj ☃ = ☃.c(); cj ☃ = ☃.d(); if ((☃.nextInt(4) == 0) && (☃.o(☃).a() == axe.a)) { a(☃, ☃, apj.c); } if ((☃.nextInt(4) == 0) && (☃.o(☃).a() == axe.a)) { a(☃, ☃, apj.e); } if ((☃.nextInt(4) == 0) && (☃.o(☃).a() == axe.a)) { a(☃, ☃, apj.d); } if ((☃.nextInt(4) == 0) && (☃.o(☃).a() == axe.a)) { a(☃, ☃, apj.b); } } } } } return true; } private void a(aht ☃, cj ☃, arn ☃) { arc ☃ = aju.bn.u().a(☃, Boolean.valueOf(true)); a(☃, ☃, ☃); int ☃ = 4; ☃ = ☃.b(); while ((☃.o(☃).a() == axe.a) && (☃ > 0)) { a(☃, ☃, ☃); ☃ = ☃.b(); ☃--; } } }
[ "admin@timo.de.vc" ]
admin@timo.de.vc
3c2771a33ea025169713730cd08c768debd5f89e
8229884a9bd15286a34cbd2e7b4624ee158be378
/app/src/k7/java/com/mili/smarthome/tkj/main/face/activity/WffrFaceEnrollActivity.java
f5a3bc7b984fc741efaa5dacbff0335ad7a5211a
[]
no_license
chengcdev/smarthome
5ae58bc0ba8770598f83a36355b557c46f37b90c
4edb33dcdfcab39a3bc6e5342a7973ac703f1344
refs/heads/master
2022-12-03T18:04:39.172431
2020-08-20T05:22:57
2020-08-20T05:22:57
288,909,136
1
1
null
null
null
null
UTF-8
Java
false
false
7,360
java
package com.mili.smarthome.tkj.main.face.activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.Message; import android.view.SurfaceView; import android.view.TextureView; import android.view.View; import android.widget.TextView; import com.android.CommStorePathDef; import com.mili.smarthome.tkj.R; import com.mili.smarthome.tkj.app.Const; import com.mili.smarthome.tkj.appfunc.AppConfig; import com.mili.smarthome.tkj.appfunc.facefunc.BaseFacePresenter; import com.mili.smarthome.tkj.appfunc.facefunc.FacePresenter; import com.mili.smarthome.tkj.appfunc.facefunc.WffrFacePresenterImpl; import com.mili.smarthome.tkj.entities.FaceWffrModel; import com.mili.smarthome.tkj.face.FaceDetectView; import com.mili.smarthome.tkj.face.FaceInfo; import com.mili.smarthome.tkj.face.FaceInfoAdapter; import com.mili.smarthome.tkj.face.wffr.WffrFaceInfoAdapter; import com.mili.smarthome.tkj.main.widget.KeyBoardItemView; import com.mili.smarthome.tkj.proxy.SinglechipClientProxy; import com.mili.smarthome.tkj.set.Constant; import com.mili.smarthome.tkj.utils.AppManage; import com.mili.smarthome.tkj.utils.LogUtils; import com.mili.smarthome.tkj.utils.MediaPlayerUtils; import com.mili.smarthome.tkj.utils.PlaySoundUtils; import com.wf.wffrapp; import com.wf.wffrjni; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; /** * 人脸注册 */ public class WffrFaceEnrollActivity extends BaseFaceActivity implements KeyBoardItemView.IOnKeyClickListener { private static final int MSG_TIMEOUT = 0x30; @BindView(R.id.tv_title) TextView tvTitle; @BindView(R.id.tv_subtitle) TextView tvSubTitle; @BindView(R.id.tv_warning) TextView tvWarning; @BindView(R.id.key_cancle) KeyBoardItemView keyCancle; @BindView(R.id.sv_receive) SurfaceView svReceive; @BindView(R.id.tv_preview) TextureView tvPreview; @BindView(R.id.detectView) FaceDetectView faceDetectView; private boolean mFaceLiveCheck; private String mCardNo; private String mEnrollName; private int mResult; private FacePresenter<FaceWffrModel> mFacePresenter = new WffrFacePresenterImpl(); @Override public void handleMessage(Message msg) { switch (msg.what) { case MSG_TIMEOUT: if (mResult > 0) { onEnrollSuc(); } else { onEnrollFail(); } break; } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_face_enroll); ButterKnife.bind(this); KeyBoardItemView.setOnkeyClickListener(this); Intent intent = getIntent(); mCardNo = intent.getStringExtra(FaceManageActivity.EXTRA_CARDNO); mFaceLiveCheck = (AppConfig.getInstance().getFaceLiveCheck() == 1); faceDetectView.setRecognitionThreshold(wffrjni.GetRecognitionThreshold()); setEnrollment(); startPreview(svReceive, tvPreview); } @Override protected void onDestroy() { stopPreview(); wffrapp.stopExecution(); SinglechipClientProxy.getInstance().ctrlCamLamp(SinglechipClientProxy.TURN_OFF); super.onDestroy(); } @Override public void OnViewDownClick(int code, View view) { int position = AppManage.getInstance().getPosition(code); switch (position) { case Constant.KeyNumId.KEY_NUM_12: case Constant.KeyNumId.KEY_NUM_13: case Constant.KeyNumId.KEY_NUM_14: AppManage.getInstance().keyBoardDown(keyCancle); break; } } @Override public void OnViewUpClick(int code, View view) { int position = AppManage.getInstance().getPosition(code); switch (position) { case Constant.KeyNumId.KEY_NUM_12: case Constant.KeyNumId.KEY_NUM_13: case Constant.KeyNumId.KEY_NUM_14: AppManage.getInstance().keyBoardUp(keyCancle); AppManage.getInstance().restartLauncherAct(); break; } } @Override public void InterVideoCallBK(byte[] data, int datalen, int width, int height, int type) { try { // YuvImage image = new YuvImage(data, ImageFormat.NV21, width, height, null); // File file = new File(Environment.getExternalStorageDirectory().getPath() + "/out.jpg"); // FileOutputStream filecon = new FileOutputStream(file); // image.compressToJpeg(new Rect(0, 0, image.getWidth(), image.getHeight()), 90, filecon); wffrapp.startExecution(data, width, height, mEnrollName); List<FaceInfo> faceList = wffrapp.getFaceParseResult(); if (faceList != null && faceList.size() > 0) { SinglechipClientProxy.getInstance().ctrlCamLampChange(SinglechipClientProxy.TURN_ON_FOR_FACE); for (FaceInfo faceInfo : faceList) { if (faceInfo.getSimilar() == -1) { continue; } mResult++; } } FaceInfoAdapter faceInfoAdapter = new WffrFaceInfoAdapter() .setData(data) .setWidth(width) .setHeight(height) .setMirror(type == 0) .setFaceList(faceList); faceDetectView.setFaceInfoAdapter(faceInfoAdapter); faceDetectView.setEnrolling(true); faceDetectView.postInvalidate(); } catch (Exception e) { LogUtils.e(e); } } private void setEnrollment() { if (mFaceLiveCheck) { PlaySoundUtils.playAssetsSound(CommStorePathDef.FACE_OPERATE_PATH); tvTitle.setText(R.string.face_scan_hint3); } else { PlaySoundUtils.playAssetsSound(CommStorePathDef.FACE_OPERATE_SHORT_PATH); tvTitle.setText(R.string.face_scan_hint4); } tvSubTitle.setText(R.string.face_enrollment_hint2); tvTitle.setTextColor(Color.GREEN); tvWarning.setText(R.string.face_scan_hint1); tvWarning.setTextColor(Color.WHITE); mResult = 0; mEnrollName = BaseFacePresenter.genResidentFaceId(mCardNo); wffrapp.setState(wffrapp.ENROLLMENT); SinglechipClientProxy.getInstance().ctrlCamLampChange(SinglechipClientProxy.TURN_HALF); mMainHandler.removeMessages(MSG_TIMEOUT); mMainHandler.sendEmptyMessageDelayed(MSG_TIMEOUT, Const.Config.FACE_ENROLL_TIMEOUT); } private void onEnrollSuc() { FaceWffrModel faceInfoModel = new FaceWffrModel(); faceInfoModel.setFirstName(mEnrollName); faceInfoModel.setCardNo(mCardNo); mFacePresenter.addFaceInfo(faceInfoModel); AppManage.getInstance().toActFinish(this, FacePromptActivity.class); } private void onEnrollFail() { PlaySoundUtils.playAssetsSound(CommStorePathDef.SET_ERR_PATH, new MediaPlayerUtils.OnMediaStatusCompletionListener() { @Override public void onMediaStatusCompletion(boolean flag) { AppManage.getInstance().restartLauncherAct(); } }); } }
[ "1508592785@qq.com" ]
1508592785@qq.com
1a46e8b06662cfa63dbba77f8072e54ad979e316
d730b5b7776dd7a19e95808adae69cbe9f94ab2f
/src/main/java/com/gdt/icow/config/ApplicationProperties.java
8edf04a133db006a99c95f6e9a6c152dfd576f4a
[]
no_license
Michuki/greendreams-icow3
f9e676e5bc4f9e3aaedcd90e87f005a0aa03d5b2
f925c2f9e912c1e8ad7b7bdecb697908d894e1d8
refs/heads/master
2023-01-02T16:34:27.181791
2020-10-26T12:26:32
2020-10-26T12:26:32
307,364,341
0
0
null
null
null
null
UTF-8
Java
false
false
418
java
package com.gdt.icow.config; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Properties specific to Icow 3. * <p> * Properties are configured in the {@code application.yml} file. * See {@link io.github.jhipster.config.JHipsterProperties} for a good example. */ @ConfigurationProperties(prefix = "application", ignoreUnknownFields = false) public class ApplicationProperties {}
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
1e8244fa0c6e8cf1b2f20c71efffe5a1d0264da6
487739942e747ea005d001ceb439e53cd0d215c7
/src/net/kagani/game/npc/combat/impl/LivingRockStrickerCombat.java
c67958b0352afc14d1798aaa0a6a6bd8a532c9aa
[]
no_license
99max99/PhoenixRisingServer
fbdc61eff78de3a4d29caa1eaa8c67837b73840f
1815a47c071b7351baa1eb0178ffe6b965e8ccf4
refs/heads/master
2021-01-11T10:29:06.968358
2016-12-29T02:01:23
2016-12-29T02:01:23
76,208,559
0
0
null
null
null
null
UTF-8
Java
false
false
1,082
java
package net.kagani.game.npc.combat.impl; import net.kagani.game.Animation; import net.kagani.game.Entity; import net.kagani.game.npc.NPC; import net.kagani.game.npc.combat.CombatScript; import net.kagani.game.npc.combat.NPCCombatDefinitions; import net.kagani.utils.Utils; public class LivingRockStrickerCombat extends CombatScript { @Override public Object[] getKeys() { return new Object[] { 8833 }; } @Override public int attack(final NPC npc, final Entity target) { final NPCCombatDefinitions defs = npc.getCombatDefinitions(); if (!Utils.isOnRange(target, npc, 0)) { // TODO add projectile npc.setNextAnimation(new Animation(12196)); delayHit( npc, 1, target, getRangeHit(npc, getMaxHit(npc, NPCCombatDefinitions.RANGE, target))); } else { npc.setNextAnimation(new Animation(defs.getAttackEmote())); delayHit( npc, 0, target, getMeleeHit( npc, getMaxHit(npc, 84, NPCCombatDefinitions.MELEE, target))); return npc.getAttackSpeed(); } return npc.getAttackSpeed(); } }
[ "emrosswarone@gmail.com" ]
emrosswarone@gmail.com
9cb934c1f3e2c538704dca17a2d2fcd8158179e9
f40b856b6b56ec653477a4550e30fa249b555f2d
/com.io7m.jvgm.core/src/main/java/com/io7m/jvgm/core/VGMCommandYM2612PCMWriteWait8Type.java
af54599cec2e3a8d37ca1449b3bc7216191cdc7c
[ "ISC" ]
permissive
io7m/jvgm
810e9e4318cd5a2d7dfd7520bb1b064bc14f670e
cd90e003d1b639d6dc63c9da8fcc801ac5f2df10
refs/heads/master
2023-08-17T23:13:24.177710
2017-09-19T21:29:40
2017-09-19T21:29:40
104,130,897
1
0
null
null
null
null
UTF-8
Java
false
false
1,210
java
/* * Copyright © 2017 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package com.io7m.jvgm.core; import org.immutables.value.Value; /** * Write PCM data and then wait for a fixed number of samples. */ @VGMImmutableStyleType @Value.Immutable public interface VGMCommandYM2612PCMWriteWait8Type extends VGMCommandYM2612PCMWriteWaitType { @Override default int samples() { return 8; } @Override default Type type() { return Type.YM2612_PCM_WRITE_WAIT_8; } }
[ "code@io7m.com" ]
code@io7m.com
e658cae39861ba7b647b3bb133b70939868ccc3d
e5daba56473cae918591f698bc02138a12b8b7a5
/03-Abstract factory/src/com/bosch/dao/DaoFactory.java
3f308822ebb9bee67a39052fe8542275e1ca8f0e
[]
no_license
kayartaya-vinod/2019_12_BOSCH_DESIGN_PATTERNS
993e47dc276b5f5f37c1faae9698301d67de57be
936aae4aab66f1d88b7a82f068e6153422251bd4
refs/heads/master
2020-11-25T16:23:09.849164
2019-12-24T07:08:33
2019-12-24T07:08:33
228,752,311
0
1
null
null
null
null
UTF-8
Java
false
false
736
java
package com.bosch.dao; import java.util.ResourceBundle; public abstract class DaoFactory { static class Holder { private static DaoFactory instance = null; static { ResourceBundle rb = ResourceBundle.getBundle("asdf"); String factoryImplClass = rb.getString("dao.factory.impl"); // for example, factoryImplClass = "com.bosch.dao.JdbcDaoFactory" try { instance = (DaoFactory) Class.forName(factoryImplClass).newInstance(); } catch (Exception e) { e.printStackTrace(); } } } public static DaoFactory getInstance() { return Holder.instance; } public abstract ProductDao getProductDao(); public abstract CustomerDao getCustomerDao(); public abstract EmployeeDao getEmployeeDao(); }
[ "vinod@vinod.co" ]
vinod@vinod.co
d6c443814a4a698f76e5cb9a10f47228bbf59d28
592eb3c39bbd5550c5406abdfd45f49c24e6fd6c
/autoweb/src/main/java/com/autosite/ds/SiteRegPaymentInfoDS.java
288ed3c828ad6ffc2f88244d81ae171b75b12624
[]
no_license
passionblue/autoweb
f77dc89098d59fddc48a40a81f2f2cf27cd08cfb
8ea27a5b83f02f4f0b66740b22179bea4d73709e
refs/heads/master
2021-01-17T20:33:28.634291
2016-06-17T01:38:45
2016-06-17T01:38:45
60,968,206
0
0
null
null
null
null
UTF-8
Java
false
false
4,067
java
package com.autosite.ds; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.Iterator; import java.sql.Timestamp; import java.util.concurrent.ConcurrentHashMap; import org.apache.log4j.Logger; import com.autosite.AutositeGlobals; import com.autosite.db.SiteRegPaymentInfo; import com.jtrend.service.DomainStore; public class SiteRegPaymentInfoDS extends AbstractDS implements DomainStore { private static Logger m_logger = Logger.getLogger(SiteRegPaymentInfoDS.class); private static SiteRegPaymentInfoDS m_SiteRegPaymentInfoDS = new SiteRegPaymentInfoDS(); public static boolean m_debug = AutositeGlobals.m_debug; public static SiteRegPaymentInfoDS getInstance() { return m_SiteRegPaymentInfoDS; } public static synchronized SiteRegPaymentInfoDS getInstance(long id) { SiteRegPaymentInfoDS ret = (SiteRegPaymentInfoDS) m_dsMap.get(new Long(id)); if (ret == null) { ret = new SiteRegPaymentInfoDS(id); m_dsMap.put(new Long(id), ret); } return m_SiteRegPaymentInfoDS; } private static Map m_dsMap = new ConcurrentHashMap(); protected long m_loadById=0; protected SiteRegPaymentInfoDS() { m_idToMap = new ConcurrentHashMap(); try { loadFromDB(); } catch (Exception e) { m_logger.error(e, e); } } protected SiteRegPaymentInfoDS(long id) { m_idToMap = new ConcurrentHashMap(); m_loadById = id; try { loadFromDB(); } catch (Exception e) { m_logger.error(e, e); } } public SiteRegPaymentInfo getById(Long id) { return (SiteRegPaymentInfo) m_idToMap.get(id); } public void updateMaps(Object obj, boolean del) { SiteRegPaymentInfo o = (SiteRegPaymentInfo)obj; if (del) { m_idToMap.remove(new Long(o.getId())); if (m_debug) m_logger.debug("SiteRegPaymentInfo removed from DS " + o.getId()); } else { m_idToMap.put(new Long(o.getId()), o); if (m_debug) m_logger.debug("SiteRegPaymentInfo added to DS " + o.getId()); } } public boolean persistEnable(){ return false; } public static void main(String[] args) throws Exception { SiteRegPaymentInfoDS ds = new SiteRegPaymentInfoDS(); SiteRegPaymentInfo obj = ds.getById((long)1); System.out.println(obj); } // public static SiteRegPaymentInfo createDefault(){ SiteRegPaymentInfo ret = new SiteRegPaymentInfo(); // ret.setTargetDomain(""); // ret.setPaymentType(""); // ret.setCardType(""); // ret.setPaymentNum(""); // ret.setExpireMonth(""); // ret.setExpireYear(""); // ret.setCcv(""); return ret; } public static SiteRegPaymentInfo copy(SiteRegPaymentInfo org){ SiteRegPaymentInfo ret = new SiteRegPaymentInfo(); ret.setTargetDomain(org.getTargetDomain()); ret.setPaymentType(org.getPaymentType()); ret.setCardType(org.getCardType()); ret.setPaymentNum(org.getPaymentNum()); ret.setExpireMonth(org.getExpireMonth()); ret.setExpireYear(org.getExpireYear()); ret.setCcv(org.getCcv()); return ret; } public static void objectToLog(SiteRegPaymentInfo siteRegPaymentInfo, Logger logger){ logger.debug("SiteRegPaymentInfo [" + siteRegPaymentInfo.getId() + "]" + objectToString(siteRegPaymentInfo)); } public static String objectToString(SiteRegPaymentInfo siteRegPaymentInfo){ StringBuffer buf = new StringBuffer(); buf.append("SiteRegPaymentInfo="); return buf.toString(); } }
[ "joshua@joshua-dell" ]
joshua@joshua-dell
b655077f39368178e66dacdeac0c6166af970eeb
a5b866f5708d857347a50d6f106754c040d1acf4
/Maps, Lambda and Stream API - Exercise/src/CompanyUsers.java
0728b23c850f8de6c8509ba7ab0f4cbd14c82c96
[]
no_license
StanchevaYoana/Java-Fundamentals
3c8434cdab20a009737e0d25be2d45bc0d772e37
99a883c313864f52ae39026a508925f4924325d4
refs/heads/master
2020-06-21T20:00:54.710482
2019-08-05T13:50:29
2019-08-05T13:50:29
197,541,288
3
0
null
null
null
null
UTF-8
Java
false
false
1,293
java
import java.util.*; public class CompanyUsers { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Map<String, List<String>> firmData = new LinkedHashMap<>(); String input = ""; while (!"End".equals(input = scanner.nextLine())) { String[] data = input.split(" -> "); String company = data[0]; String user = data[1]; firmData.putIfAbsent(company, new ArrayList<>()); if (isUnique(firmData, user, company)) { firmData.get(company).add(user); } } firmData.entrySet().stream().sorted(Comparator.comparing(Map.Entry::getKey)) .forEach(e -> { System.out.println(e.getKey()); e.getValue().stream().forEach(p -> System.out.println(String.format("-- %s", p))); }); } static boolean isUnique(Map<String, List<String>> firmData, String user, String company) { boolean isUnique = true; if (firmData.get(company).size() > 0) { for (String s : firmData.get(company)) { if (user.equals(s)) { isUnique = false; } } } return isUnique; } }
[ "yoana.radoslavova@gmail.com" ]
yoana.radoslavova@gmail.com
782e60ab36d18b7fcd125994b19d01a47000b16d
21826160ae771c1c3dbf090f034d49fa24b93ce0
/src/main/java/hotel/entity/Department.java
ef8c9b67a6114764209fc3bf87e03a826a0cbe4b
[]
no_license
buddhika75/hhims
fbfb20ef8c400583112784bcf04951caed6f5a2b
62e25b002b32b00e38df7340a65e3fac1a21cb08
refs/heads/master
2021-01-16T00:28:25.927019
2015-04-30T05:32:00
2015-04-30T05:32:00
32,729,577
0
0
null
null
null
null
UTF-8
Java
false
false
257
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package hotel.entity; import javax.persistence.Entity; /** * * @author buddhika */ @Entity public class Department extends DepartmentOrInstitution { }
[ "buddhika.ari@gmail.com" ]
buddhika.ari@gmail.com
df272f5839461111ceea3af3104693fbb17f7651
f6899a2cf1c10a724632bbb2ccffb7283c77a5ff
/glassfish-4.1.1/nucleus/admin/rest/rest-service/src/main/java/org/glassfish/admin/rest/model/ResponseBody.java
ee523398bcd406905181d8a23e022a91245687c8
[]
no_license
Appdynamics/OSS
a8903058e29f4783e34119a4d87639f508a63692
1e112f8854a25b3ecf337cad6eccf7c85e732525
refs/heads/master
2023-07-22T03:34:54.770481
2021-10-28T07:01:57
2021-10-28T07:01:57
19,390,624
2
13
null
2023-07-08T02:26:33
2014-05-02T22:42:20
null
UTF-8
Java
false
false
5,978
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2012-2013 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package org.glassfish.admin.rest.model; import java.net.URI; import java.util.ArrayList; import java.util.List; import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; public class ResponseBody { public static final String EVENT_NAME="response/body"; private List<Message> messages = new ArrayList<Message>(); private boolean includeResourceLinks = true; private List<ResourceLink> links = new ArrayList<ResourceLink>(); public ResponseBody() { } public ResponseBody(boolean includeResourceLinks) { setIncludeResourceLinks(includeResourceLinks); } public ResponseBody(URI parentUri) { addParentResourceLink(parentUri); } public ResponseBody(boolean includeResourceLinks, URI parentUri) { setIncludeResourceLinks(includeResourceLinks); addParentResourceLink(parentUri); } public void setIncludeResourceLinks(boolean includeResourceLinks) { this.includeResourceLinks = includeResourceLinks; } public List<Message> getMessages() { return this.messages; } public void setMessages(List<Message> val) { this.messages = val; } public ResponseBody addSuccess(String message) { return addMessage(Message.Severity.SUCCESS, message); } public ResponseBody addWarning(String message) { return addMessage(Message.Severity.WARNING, message); } public ResponseBody addFailure(Throwable t) { for (; t != null; t = t.getCause()) { addFailure(t.getLocalizedMessage()); } return this; } public ResponseBody addFailure(String message) { return addMessage(Message.Severity.FAILURE, message); } public ResponseBody addFailure(String field, String message) { return addMessage(Message.Severity.FAILURE, field, message); } public ResponseBody addMessage(Message.Severity severity, String field, String message) { return add(new Message(severity, field, message)); } public ResponseBody addMessage(Message.Severity severity, String message) { return add(new Message(severity, message)); } public ResponseBody add(Message message) { getMessages().add(message); return this; } public List<ResourceLink> getResourceLinks() { return this.links; } public void setResourceLinks(List<ResourceLink> val) { this.links = val; } public ResponseBody addParentResourceLink(URI uri) { if (uri == null) { return this; } return addResourceLink("parent", uri); } public void addActionResourceLink(String action, URI uri) { addResourceLink("action", action, uri); } public ResponseBody addResourceLink(String rel, URI uri) { return add(new ResourceLink(rel, uri)); } public ResponseBody addResourceLink(String rel, String title, URI uri) { return add(new ResourceLink(rel, title, uri)); } public ResponseBody add(ResourceLink link) { getResourceLinks().add(link); return this; } public JSONObject toJson() throws JSONException { JSONObject object = new JSONObject(); populateJson(object); return object; } protected void populateJson(JSONObject object) throws JSONException { if (!getMessages().isEmpty()) { JSONArray array = new JSONArray(); for (Message message : getMessages()) { array.put(message.toJson()); } object.put("messages", array); } if (includeResourceLinks) { if (!getResourceLinks().isEmpty()) { JSONArray array = new JSONArray(); for (ResourceLink link : getResourceLinks()) { array.put(link.toJson()); } object.put("resources", array); } } } }
[ "fgonzales@appdynamics.com" ]
fgonzales@appdynamics.com
8a0432a08052f65c19c80ba0b998294fbffba5c0
bf109ffc9d6b5f2830970da3bcdda535253033d9
/demo/src/main/java/com/coolyota/demo/fragment/Fragment_2.java
559d12d070dfdca8067af9dfb852f2b13f725692
[]
no_license
liuwenrong/Analysis
8cb4f43b0026c2f338398c1c9d7b5cd1a05407dd
a23f275a98df8d1bdaa556680f54c21d8a6c36c1
refs/heads/master
2021-01-02T09:30:35.089017
2017-09-20T03:16:47
2017-09-20T03:17:21
99,231,889
0
0
null
null
null
null
UTF-8
Java
false
false
2,084
java
package com.coolyota.demo.fragment; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.cy.demo.R; /** * des: * * @author liuwenrong * @version 1.0,2017/7/21 */ public class Fragment_2 extends Fragment { private final String TAG = "Fragment_2"; @Override public void onAttach(Context context) { super.onAttach(context); log(" 1__onAttach"); } @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); log(" 2__onCreate"); } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { log(" 3_onCreateView"); return inflater.inflate(R.layout.fragment_layout_2,container,false); } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); log(" 4__onActivityCreated"); } @Override public void onStart() { super.onStart(); log(" 5__onStart"); } @Override public void onResume() { super.onResume(); log(" 6__onResume"); } @Override public void onPause() { super.onPause(); log(" 7__onPause"); } @Override public void onStop() { super.onStop(); log(" 8__onStop"); } @Override public void onDestroyView() { super.onDestroyView(); log(" 9__onDestroyView"); } @Override public void onDestroy() { super.onDestroy(); log(" 10__onDestroy"); } @Override public void onDetach() { super.onDetach(); log(" 11__onDetach"); } private void log (String methodName){ Log.e(TAG,"-------->"+methodName); } }
[ "liuwenrong@coolpad.com" ]
liuwenrong@coolpad.com
c922802beccfb2bcee93cb57d266fff9d63fe6b1
b530af769bb496cdbadb4d1c14b81d6c53e2e36f
/typescriptGenerator/src/main/java/io/github/factoryfx/factory/typescript/generator/ts/TsTypeArray.java
9b58105cd41abfee489a8750b2ffa9052883d47c
[ "Apache-2.0" ]
permissive
factoryfx/factoryfx
ab366d3144a27fd07bbf4098b9dc82e3bab1181f
08bab85ecd5ab30b26fa57d852c7fac3fb5ce312
refs/heads/master
2023-07-09T05:20:02.320970
2023-07-04T15:11:52
2023-07-04T15:11:52
59,744,695
12
3
Apache-2.0
2023-03-02T15:11:26
2016-05-26T11:22:59
Java
UTF-8
Java
false
false
427
java
package io.github.factoryfx.factory.typescript.generator.ts; import java.util.Set; public class TsTypeArray implements TsType { private final TsType type; public TsTypeArray(TsType type) { this.type = type; } @Override public void addImport(Set<TsFile> imports) { type.addImport(imports); } @Override public String construct() { return type.construct()+"[]"; } }
[ "henning.brackmann@scoop-software.de" ]
henning.brackmann@scoop-software.de
d3835de02d1d67695375865b3032378d4a391c87
31665642ed578801e684eb0e71526707416f6c7b
/src/d3/game/bulletshell.java
7bb7d72dc11aea88f0c967974d08970e74c1539a
[]
no_license
calint/a
79fb449e4e9baf4b19da6b1cbf925235254ba981
50c8d03e0115cd52737a0f95e86b9043e731f419
refs/heads/master
2023-02-02T14:30:44.406050
2023-01-29T04:57:04
2023-01-29T04:57:04
32,960,630
0
0
null
null
null
null
UTF-8
Java
false
false
517
java
package d3.game; import d3.f3; import d3.objm; import d3.p3; import d3.world; public class bulletshell extends objm{ static final long serialVersionUID=1L; protected bulletshell(world w,p3 origin,p3 agl,p3 dpos,p3 dagl,double spread,double rot,double lifeTime0,f3 ph,p3 s){ super(w,origin,agl,new p3(dpos.x+w.rand(-spread,spread),dpos.y+w.rand(-spread,spread),dpos.z+w.rand(-spread,spread)),new p3(dagl.x+w.rand(-rot,rot),dagl.y+w.rand(-rot,rot),dagl.z+w.rand(-rot,rot)),ph,s,type_scenery,1,lifeTime0,true); } }
[ "calin.tenitchi@gmail.com" ]
calin.tenitchi@gmail.com
e3aab42deb5d9dbbbea0a0feb78f864e5b7346e7
6252c165657baa6aa605337ebc38dd44b3f694e2
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-900-Files/boiler-To-Generate-900-Files/syncregions-900Files/TemperatureController856.java
14c7147b4371ddeda3d5b14d48f06ae422f501d0
[]
no_license
soha500/EglSync
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
55101bc781349bb14fefc178bf3486e2b778aed6
refs/heads/master
2021-06-23T02:55:13.464889
2020-12-11T19:10:01
2020-12-11T19:10:01
139,832,721
0
1
null
2019-05-31T11:34:02
2018-07-05T10:20:00
Java
UTF-8
Java
false
false
364
java
package syncregions; public class TemperatureController856 { public execute(int temperature856, int targetTemperature856) { //sync _bfpnFUbFEeqXnfGWlV2856, behaviour 1-if(temperatureDifference > 0 && boilerStatus == true) { return 1; } else if (temperatureDifference < 0 && boilerStatus == false) { return 2; } else return 0; //endSync } }
[ "sultanalmutairi@172.20.10.2" ]
sultanalmutairi@172.20.10.2
e30df6137e2eafb074d4ff618800d73c2e6ccdcc
75ce8fc9a46d98d41bdb705d3479a88120be7e60
/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/EnvVarHolder.java
b3b94340a39b6ea97e9ccf112d9d7cf948adbbb2
[ "Apache-2.0" ]
permissive
JalajChawla/quarkus
ea58b7cbfe9dbcf4be6dd34610b8460d9c9b0c51
68f5be3454277e738163cc1ccf36a90bef111d41
refs/heads/master
2022-08-21T11:13:12.100365
2020-05-26T07:17:05
2020-05-26T07:17:05
266,983,430
1
0
Apache-2.0
2020-05-26T08:12:00
2020-05-26T08:11:59
null
UTF-8
Java
false
false
3,176
java
package io.quarkus.kubernetes.deployment; import static io.quarkus.kubernetes.spi.KubernetesEnvBuildItem.EnvType.configmap; import static io.quarkus.kubernetes.spi.KubernetesEnvBuildItem.EnvType.field; import static io.quarkus.kubernetes.spi.KubernetesEnvBuildItem.EnvType.secret; import static io.quarkus.kubernetes.spi.KubernetesEnvBuildItem.EnvType.var; import java.util.Collection; import java.util.Map; import io.quarkus.kubernetes.spi.KubernetesEnvBuildItem; /** * Common interface for configuration entities holding environment variables meant to be injected into containers. */ public interface EnvVarHolder { /** * Retrieves the definition of environment variables to add to the application's container. * * @return the associated {@link EnvVarsConfig} holding the definition of which environment variables to add */ EnvVarsConfig getEnv(); /** * @deprecated use {@link #getEnv()} instead */ @Deprecated Map<String, EnvConfig> getEnvVars(); /** * Specifies which the name of the platform this EnvVarHolder targets. This name, when needed, is used by dekorate to * generate the descriptor associated with the targeted deployment platform. * * @return the name of the targeted platform e.g. {@link Constants#KUBERNETES} */ String getTargetPlatformName(); /** * Converts the environment variable configuration held by this EnvVarHolder (as returned by {@link #getEnv()} and * {@link #getEnvVars()}) into a collection of associated {@link KubernetesEnvBuildItem}. * * @return a collection of {@link KubernetesEnvBuildItem} corresponding to the environment variable configurations */ default Collection<KubernetesEnvBuildItem> convertToBuildItems() { final EnvVarValidator validator = new EnvVarValidator(); // first process old-style configuration, this relies on each configuration having a name final String target = getTargetPlatformName(); getEnvVars().forEach((key, envConfig) -> { envConfig.secret.ifPresent(s -> validator.process(new KubernetesEnvBuildItem(secret, s, s, target, true))); envConfig.configmap.ifPresent(cm -> validator.process(new KubernetesEnvBuildItem(configmap, cm, cm, target, true))); envConfig.field.ifPresent(f -> validator.process(new KubernetesEnvBuildItem(field, key, f, target, true))); envConfig.value.ifPresent(v -> validator.process(new KubernetesEnvBuildItem(var, key, v, target, true))); }); // override old-style with newer versions if present final EnvVarsConfig c = getEnv(); c.vars.forEach((k, v) -> validator.process(new KubernetesEnvBuildItem(var, k, v, target))); c.fields.forEach((k, v) -> validator.process(new KubernetesEnvBuildItem(field, k, v, target))); c.configmaps .ifPresent(cl -> cl.forEach(cm -> validator.process(new KubernetesEnvBuildItem(configmap, cm, cm, target)))); c.secrets.ifPresent(sl -> sl.forEach(s -> validator.process(new KubernetesEnvBuildItem(secret, s, s, target)))); return validator.getBuildItems(); } }
[ "metacosm@gmail.com" ]
metacosm@gmail.com
580ff01ca4cd4b653cbcc611c14c28b217296011
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.qqlite/assets/exlibs.1.jar/classes.jar/tencent/im/oidb/cmd0x7c4/cmd0x7c4.java
e4f694d1c09b1355cd0991c02fd2b83cb17e9757
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
275
java
package tencent.im.oidb.cmd0x7c4; public final class cmd0x7c4 {} /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.qqlite\assets\exlibs.1.jar\classes.jar * Qualified Name: tencent.im.oidb.cmd0x7c4.cmd0x7c4 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
3e305e2f25b842a4879f524f003beadbfcd3cd40
5d82f3ced50601af2b804cee3cf967945da5ff97
/design-synthesis/existing-services/basiccommunicationdevice/src/main/java/org/choreos/services/BasicCommunicationDeviceImpl.java
b386a07e28d3be16d5cf15b163ba988e352a2427
[ "Apache-2.0" ]
permissive
sesygroup/choreography-synthesis-enactment
7f345fe7a9e0288bbde539fc373b43f1f0bd1eb5
6eb43ea97203853c40f8e447597570f21ea5f52f
refs/heads/master
2022-01-26T13:20:50.701514
2020-03-20T12:18:44
2020-03-20T12:18:44
141,552,936
0
1
Apache-2.0
2022-01-06T19:56:05
2018-07-19T09:04:05
Java
UTF-8
Java
false
false
2,708
java
package org.choreos.services; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.jws.WebService; import org.choreos.services.monitor.MonitorLogger; import org.choreos.services.monitor.MonitorLoggerImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import eu.chorevolution.idm.common.types.ArtifactType; import eu.chorevolution.idm.common.types.EventType; @WebService(endpointInterface = "org.choreos.services.BasicCommunicationDevice") public class BasicCommunicationDeviceImpl implements BasicCommunicationDevice{ private static Logger logger = LoggerFactory.getLogger(BasicCommunicationDeviceImpl.class); private static MonitorLogger monitorLogger = new MonitorLoggerImpl(); protected Map<String, String> address = new HashMap<String, String>(); public void scenarioSetup() { monitorLogger.sendToMonitor(); } public void setEndpointAddress(String address) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } public void setInvocationAddress(String role, String name, List<String> endpoints) { logger.info("PERFORM -- setInvocationAddress - parameters: role: "+(role.isEmpty()?"isEmpty parameter":role)+" - name: "+(name.isEmpty()?"isEmpty parameter":name)+" - endpoints[0]: "+(endpoints.get(0).isEmpty()?"isEmpty parameter":endpoints.get(0))); if (address.containsKey(role)) { address.remove(role); } address.put(role, endpoints.get(0)); } public void basicCommDeviceSubscribe(String sessionId) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } public void basicCommDeviceUnsubscribe(String sessionId) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } public void bcdReceiveSms(String sessionId, SMSMessage msg) throws ScenarioException_Exception { monitorLogger.sendEventData("WP7", Long.parseLong(sessionId), "BasicCommunicationDevice", ArtifactType.SERVICE, "BasicCommunicationDevice", "S36","S37", "bcd_receive_sms", null, EventType.RECEIVING_REQUEST, System.currentTimeMillis()); // TODO logger.info("PERFORM -- BasicCommunicationDevice.bcdReceiveSms(String sessionId, SMSMessage msg)"); monitorLogger.sendEventData("WP7", Long.parseLong(sessionId), "BasicCommunicationDevice", ArtifactType.SERVICE, "BasicCommunicationDevice", "S36","S37", "bcd_receive_sms", null, EventType.REPLY_RESPONSE, System.currentTimeMillis()); } }
[ "alexander.perucci@gmail.com" ]
alexander.perucci@gmail.com
2325b12bb3f1d7e6cbad0bbfded6085ca66304c0
b213c0ecab539eea0bd1a9487a1d2187b583f086
/src/main/java/com/tenfen/weixin/vo/recv/WxRecvMsg.java
d8fb06602d11b7ff4f612f478bcbf0c018a67843
[]
no_license
yangjinbo47/flux
dd3df45e363b3b98c7b2933b2e1ef0a6a229fca6
0270e39e7ff045b37b8c2325baf286c2916c1cda
refs/heads/master
2020-05-29T15:41:05.020638
2019-01-04T04:27:00
2019-01-04T04:27:00
68,091,529
0
1
null
null
null
null
UTF-8
Java
false
false
549
java
package com.tenfen.weixin.vo.recv; import com.tenfen.weixin.vo.WxMsg; public class WxRecvMsg extends WxMsg { private String msgId; public WxRecvMsg(String toUser,String fromUser,String createDt,String msgType,String msgId) { super(toUser, fromUser, createDt, msgType); this.msgId= msgId; } public WxRecvMsg(WxRecvMsg msg) { this(msg.getToUser(),msg.getFromUser(),msg.getCreateDt(),msg.getMsgType(),msg.getMsgId()); } public String getMsgId() { return msgId; } public void setMsgId(String msgId) { this.msgId = msgId; } }
[ "yangjinbo47@sina.com" ]
yangjinbo47@sina.com
0460be0e61bd85d5d8b0523ced6ba9c544b7c5b5
0529524c95045b3232f6553d18a7fef5a059545e
/app/src/androidTest/java/TestCase_com_arabicbible_moroccobible__1328298238.java
aefa835573f765bde4c4c9dd68e2fd0cafee1c7b
[]
no_license
sunxiaobiu/BasicUnitAndroidTest
432aa3e10f6a1ef5d674f269db50e2f1faad2096
fed24f163d21408ef88588b8eaf7ce60d1809931
refs/heads/main
2023-02-11T21:02:03.784493
2021-01-03T10:07:07
2021-01-03T10:07:07
322,577,379
0
0
null
null
null
null
UTF-8
Java
false
false
356
java
import android.graphics.RectF; import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public class TestCase_com_arabicbible_moroccobible__1328298238 { @Test public void testCase() throws Exception { RectF var1 = new RectF(); boolean var2 = var1.isEmpty(); } }
[ "sunxiaobiu@gmail.com" ]
sunxiaobiu@gmail.com
a8fd42fb83df96602883bcf1acf1c89d4b02a76d
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13372-5-10-MOEAD-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/doc/XWikiDocument_ESTest.java
aa9933b0063e2506ca0fe907f92aaa917594df17
[]
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
550
java
/* * This file was automatically generated by EvoSuite * Wed Apr 08 06:29:11 UTC 2020 */ package com.xpn.xwiki.doc; 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 XWikiDocument_ESTest extends XWikiDocument_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
760d168f68b4edd8e21e3ea104a1c31294179ba6
8d2ecb3cba702d505c77318007b1a096ec6057a3
/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/BlessedSpiritShot.java
e07bf3a86cf4c2e19ba02abbc28a80dcec33e58b
[]
no_license
thevinou/ProjectL
b054ce30311f4a89c0ec93d4cbf86717b229cfaf
f0dfb9298b6ae1d0f00bd9b249120f90cbfc1c83
refs/heads/master
2016-09-05T17:25:29.161384
2015-01-30T08:52:57
2015-01-30T08:52:57
29,908,866
1
0
null
null
null
null
UTF-8
Java
false
false
3,070
java
/* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 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 General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.handler.itemhandlers; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.ShotType; import net.sf.l2j.gameserver.model.actor.L2Playable; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.holder.SkillHolder; import net.sf.l2j.gameserver.model.item.instance.ItemInstance; import net.sf.l2j.gameserver.model.item.kind.Weapon; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.gameserver.util.Broadcast; public class BlessedSpiritShot implements IItemHandler { @Override public void useItem(L2Playable playable, ItemInstance item, boolean forceUse) { if (!(playable instanceof L2PcInstance)) return; final L2PcInstance activeChar = (L2PcInstance) playable; final ItemInstance weaponInst = activeChar.getActiveWeaponInstance(); final Weapon weaponItem = activeChar.getActiveWeaponItem(); final int itemId = item.getItemId(); // Check if bss can be used if (weaponInst == null || weaponItem == null || weaponItem.getSpiritShotCount() == 0) { if (!activeChar.getAutoSoulShot().contains(itemId)) activeChar.sendPacket(SystemMessageId.CANNOT_USE_SPIRITSHOTS); return; } // Check if bss is already active (it can be charged over SpiritShot) if (activeChar.isChargedShot(ShotType.BLESSED_SPIRITSHOT)) return; // Check for correct grade. if (weaponItem.getCrystalType() != item.getItem().getCrystalType()) { if (!activeChar.getAutoSoulShot().contains(itemId)) activeChar.sendPacket(SystemMessageId.SPIRITSHOTS_GRADE_MISMATCH); return; } // Consume bss if player has enough of them if (!activeChar.destroyItemWithoutTrace("Consume", item.getObjectId(), weaponItem.getSpiritShotCount(), null, false)) { if (!activeChar.disableAutoShot(itemId)) activeChar.sendPacket(SystemMessageId.NOT_ENOUGH_SPIRITSHOTS); return; } final SkillHolder[] skills = item.getItem().getSkills(); activeChar.sendPacket(SystemMessageId.ENABLED_SPIRITSHOT); activeChar.setChargedShot(ShotType.BLESSED_SPIRITSHOT, true); Broadcast.toSelfAndKnownPlayersInRadiusSq(activeChar, new MagicSkillUse(activeChar, activeChar, skills[0].getSkillId(), 1, 0, 0), 360000); } }
[ "thevinou@gmail.com" ]
thevinou@gmail.com
c48f4fd4c5d590be252631306bf58bc881ba6fb8
6500848c3661afda83a024f9792bc6e2e8e8a14e
/gp_JADX/com/google/common/p415b/aa.java
14a2b506bd8c5b81ca0a94f1f82d8ea89668eec6
[]
no_license
enaawy/gproject
fd71d3adb3784d12c52daf4eecd4b2cb5c81a032
91cb88559c60ac741d4418658d0416f26722e789
refs/heads/master
2021-09-03T03:49:37.813805
2018-01-05T09:35:06
2018-01-05T09:35:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
590
java
package com.google.common.p415b; import java.util.Set; final class aa extends C6941z implements Set { aa(C6942y c6942y) { super(c6942y); } public final int hashCode() { int i = 0; for (Object next : this) { int hashCode; if (next != null) { hashCode = next.hashCode(); } else { hashCode = 0; } i = ((i + hashCode) ^ -1) ^ -1; } return i; } public final boolean equals(Object obj) { return ca.m31781a((Set) this, obj); } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
9ea465880b0052a85303d7f7255f0dc5c0491969
e087ef4984a8658c287d955276f08f06da358397
/src/com/javarush/test/level37/lesson10/big01/AmigoSet.java
54b179389eafb8c48546aef20c677881ac094f79
[]
no_license
YuriiLosinets/javacore
f08fd93623bc5c90fcb4eb13a03a3360b702a5fb
552117fd18a96ff99c6bd5455f16f4bb234d2bdc
refs/heads/master
2021-01-10T14:39:57.494858
2016-03-25T08:40:31
2016-03-25T08:40:31
53,958,241
0
1
null
null
null
null
UTF-8
Java
false
false
2,372
java
package com.javarush.test.level37.lesson10.big01; import java.io.IOException; import java.io.Serializable; import java.util.*; /** * Created by CMI-USER on 1/25/2016. */ public class AmigoSet<E> extends AbstractSet<E> implements Cloneable, Serializable, Set<E> { private final static Object PRESENT = new Object(); private transient HashMap<E,Object> map; public AmigoSet() { map = new HashMap<>(); } public AmigoSet(Collection<? extends E> collection){ map = new HashMap<>((int)Math.max(16,collection.size()/.75f)); this.addAll(collection); } @Override public boolean add(E e) { return null == map.put(e,PRESENT); } @Override public Iterator<E> iterator() { return map.keySet().iterator(); } @Override public int size() { return map.keySet().size(); } @Override public boolean isEmpty() { return map.keySet().isEmpty(); } @Override public boolean contains(Object o) { return map.keySet().contains(o); } @Override public boolean remove(Object o) { return map.keySet().remove(o); } @Override public Object clone() { AmigoSet<E> amigoSet = new AmigoSet<>(); try { amigoSet.addAll(this); amigoSet.map.putAll(this.map); } catch (Exception e){ throw new InternalError(); } return amigoSet; } private void writeObject(java.io.ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeObject(map.size()); for(E e:map.keySet()){ s.writeObject(e); } s.writeObject(HashMapReflectionHelper.callHiddenMethod(map,"capacity")); s.writeObject(HashMapReflectionHelper.callHiddenMethod(map,"loadFactor")); } private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int size = (int)s.readObject(); Set<E> set = new HashSet<>(); for(int i =0;i<size;i++){ set.add((E)s.readObject()); } int capacity = (int)s.readObject(); float loadFactor = (float)s.readObject(); map = new HashMap<>(capacity,loadFactor); for(E e:set){ map.put(e,PRESENT); } } }
[ "yuri.losinets@gmail.com" ]
yuri.losinets@gmail.com
7402c4fd296723ab6961395eba11cbc99a2f8745
0f77c5ec508d6e8b558f726980067d1058e350d7
/1_39_120042/com/ankamagames/baseImpl/graphics/alea/display/effects/CameraEffect.java
4ea4e40a202580c3ba01d79173c613ad65ed52d8
[]
no_license
nightwolf93/Wakxy-Core-Decompiled
aa589ebb92197bf48e6576026648956f93b8bf7f
2967f8f8fba89018f63b36e3978fc62908aa4d4d
refs/heads/master
2016-09-05T11:07:45.145928
2014-12-30T16:21:30
2014-12-30T16:21:30
29,250,176
5
5
null
2015-01-14T15:17:02
2015-01-14T15:17:02
null
UTF-8
Java
false
false
2,072
java
package com.ankamagames.baseImpl.graphics.alea.display.effects; import com.ankamagames.framework.graphics.engine.*; public class CameraEffect extends Effect { protected Direction m_direction; public CameraEffect() { super(); this.m_direction = Direction.BOTH; } public void setDirection(final Direction direction) { if (direction == null) { this.m_direction = Direction.BOTH; } else { this.m_direction = direction; } } public void setDirection(final String direction) { this.setDirection(Direction.valueOf(direction)); } @Override public void clear() { this.m_camera = null; } @Override public void render(final Renderer renderer) { } protected final boolean applyOnX() { return this.m_direction.applyOnX(); } protected final boolean applyOnY() { return this.m_direction.applyOnY(); } public enum Direction { NONE { @Override boolean applyOnX() { return false; } @Override boolean applyOnY() { return false; } }, X { @Override boolean applyOnX() { return true; } @Override boolean applyOnY() { return false; } }, Y { @Override boolean applyOnX() { return false; } @Override boolean applyOnY() { return true; } }, BOTH { @Override boolean applyOnX() { return true; } @Override boolean applyOnY() { return true; } }; abstract boolean applyOnX(); abstract boolean applyOnY(); } }
[ "totomakers@hotmail.fr" ]
totomakers@hotmail.fr
b88cd62cb1ab753047784f59c98a843a1037e159
393693ac791b9377ed30d5e4276febb1d82c7de8
/shell offline/allfiles/tempo/1405016/1405016/src/Stuffing/Frame.java
e008f7f1fe192ef12ceaa70acc5ee02e273a59a3
[]
no_license
Mritunjoy71/CSE_314-OS-Sessional
dc2672126acfb3dbef4424769af8c48fd1554dc6
84648c164124ddc65c43e33ee6b3e9113e0ea513
refs/heads/master
2023-02-19T11:12:16.080216
2021-01-21T22:17:40
2021-01-21T22:17:40
331,764,590
0
0
null
null
null
null
UTF-8
Java
false
false
1,308
java
package Stuffing; public class Frame { byte kind_of_frame; byte sec_no; byte ack_no; byte[] payload; byte checksum; public Frame(byte kind_of_frame, byte sec_no, byte ack_no, byte[] payload) { this.kind_of_frame = kind_of_frame; this.sec_no = sec_no; this.ack_no = ack_no; this.payload = payload; this.checksum = (byte)(kind_of_frame ^ (byte)(sec_no ^ ack_no)); for (int i = 0; i < payload.length; i++) this.checksum = (byte) (this.checksum ^ payload[i]); } public byte getChecksum() { return checksum; } public void setChecksum(byte checksum) { this.checksum = checksum; } public byte[] getPayload() { return payload; } public void setPayload(byte[] payload) { this.payload = payload; } public byte getSec_no() { return sec_no; } public void setSec_no(byte sec_no) { this.sec_no = sec_no; } public byte getKind_of_frame() { return kind_of_frame; } public void setKind_of_frame(byte kind_of_frame) { this.kind_of_frame = kind_of_frame; } public byte getAck_no() { return ack_no; } public void setAck_no(byte ack_no) { this.ack_no = ack_no; } }
[ "you@example.com" ]
you@example.com
6064336c19c53c297072900201b48563e6304eed
073231dca7e07d8513c8378840f2d22b069ae93f
/modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201608/LiveStreamEventServiceLocator.java
25a14ca0f7234c8ed078a4ab4ad275100a5634c2
[ "Apache-2.0" ]
permissive
zaper90/googleads-java-lib
a884dc2268211306416397457ab54798ada6a002
aa441cd7057e6a6b045e18d6e7b7dba306085200
refs/heads/master
2021-01-01T19:14:01.743242
2017-07-17T15:48:32
2017-07-17T15:48:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,773
java
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * LiveStreamEventServiceLocator.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201608; public class LiveStreamEventServiceLocator extends org.apache.axis.client.Service implements com.google.api.ads.dfp.axis.v201608.LiveStreamEventService { public LiveStreamEventServiceLocator() { } public LiveStreamEventServiceLocator(org.apache.axis.EngineConfiguration config) { super(config); } public LiveStreamEventServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { super(wsdlLoc, sName); } // Use to get a proxy class for LiveStreamEventServiceInterfacePort private java.lang.String LiveStreamEventServiceInterfacePort_address = "https://ads.google.com/apis/ads/publisher/v201608/LiveStreamEventService"; public java.lang.String getLiveStreamEventServiceInterfacePortAddress() { return LiveStreamEventServiceInterfacePort_address; } // The WSDD service name defaults to the port name. private java.lang.String LiveStreamEventServiceInterfacePortWSDDServiceName = "LiveStreamEventServiceInterfacePort"; public java.lang.String getLiveStreamEventServiceInterfacePortWSDDServiceName() { return LiveStreamEventServiceInterfacePortWSDDServiceName; } public void setLiveStreamEventServiceInterfacePortWSDDServiceName(java.lang.String name) { LiveStreamEventServiceInterfacePortWSDDServiceName = name; } public com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceInterface getLiveStreamEventServiceInterfacePort() throws javax.xml.rpc.ServiceException { java.net.URL endpoint; try { endpoint = new java.net.URL(LiveStreamEventServiceInterfacePort_address); } catch (java.net.MalformedURLException e) { throw new javax.xml.rpc.ServiceException(e); } return getLiveStreamEventServiceInterfacePort(endpoint); } public com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceInterface getLiveStreamEventServiceInterfacePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { try { com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceSoapBindingStub _stub = new com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceSoapBindingStub(portAddress, this); _stub.setPortName(getLiveStreamEventServiceInterfacePortWSDDServiceName()); return _stub; } catch (org.apache.axis.AxisFault e) { return null; } } public void setLiveStreamEventServiceInterfacePortEndpointAddress(java.lang.String address) { LiveStreamEventServiceInterfacePort_address = address; } /** * For the given interface, get the stub implementation. * If this service has no port for the given interface, * then ServiceException is thrown. */ public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceSoapBindingStub _stub = new com.google.api.ads.dfp.axis.v201608.LiveStreamEventServiceSoapBindingStub(new java.net.URL(LiveStreamEventServiceInterfacePort_address), this); _stub.setPortName(getLiveStreamEventServiceInterfacePortWSDDServiceName()); return _stub; } } catch (java.lang.Throwable t) { throw new javax.xml.rpc.ServiceException(t); } throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); } /** * For the given interface, get the stub implementation. * If this service has no port for the given interface, * then ServiceException is thrown. */ public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { if (portName == null) { return getPort(serviceEndpointInterface); } java.lang.String inputPortName = portName.getLocalPart(); if ("LiveStreamEventServiceInterfacePort".equals(inputPortName)) { return getLiveStreamEventServiceInterfacePort(); } else { java.rmi.Remote _stub = getPort(serviceEndpointInterface); ((org.apache.axis.client.Stub) _stub).setPortName(portName); return _stub; } } public javax.xml.namespace.QName getServiceName() { return new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201608", "LiveStreamEventService"); } private java.util.HashSet ports = null; public java.util.Iterator getPorts() { if (ports == null) { ports = new java.util.HashSet(); ports.add(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201608", "LiveStreamEventServiceInterfacePort")); } return ports.iterator(); } /** * Set the endpoint address for the specified port name. */ public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("LiveStreamEventServiceInterfacePort".equals(portName)) { setLiveStreamEventServiceInterfacePortEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); } } /** * Set the endpoint address for the specified port name. */ public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { setEndpointAddress(portName.getLocalPart(), address); } }
[ "api.cseeley@gmail.com" ]
api.cseeley@gmail.com
3f7514da8a16760b7472f737046a340c1484a326
a1a51aad102f9f82647bb4624940bf1fd0486def
/platform/src/featurea/audio/Audio.java
35842e44687ff05b4694b67f35619d766d7ccceb
[]
no_license
Madzi/featurea
337c187b19c69e82956a4b8d711eb40dbbf07f7a
4ee44d5910617c1233a77e0787d85717ee5347a0
refs/heads/master
2020-12-11T05:58:44.584623
2016-07-25T20:54:07
2016-07-25T20:54:07
64,206,389
0
1
null
2016-07-26T09:00:15
2016-07-26T09:00:15
null
UTF-8
Java
false
false
5,196
java
package featurea.audio; import featurea.app.Context; import featurea.app.MediaPlayer; import java.util.*; public final class Audio { private final MediaPlayer mediaPlayer; final Map<String, List<Sound>> soundMap = new WeakHashMap<String, List<Sound>>(); private final Map<String, Music> musicMap = new HashMap<String, Music>(); private double volume; public boolean isEnable; public Audio(MediaPlayer mediaPlayer) { this.mediaPlayer = mediaPlayer; } public Clip load(String file) { int index = file.lastIndexOf('/'); if (index == -1) { return loadSound(file); } else { String dir = file.substring(0, index); index = dir.lastIndexOf('/'); String prefix = dir.substring(index + 1, dir.length()); if ("music".equalsIgnoreCase(prefix)) { return loadMusic(file); } else { return loadSound(file); } } } private Clip loadSound(String file) { List<Sound> sounds = soundMap.get(file); if (sounds == null) { sounds = new ArrayList<>(); } Sound result = new Sound(this, file); sounds.add(result); soundMap.put(file, sounds); return result; } private Music loadMusic(String file) { Music result = musicMap.get(file); if (result == null) { final MusicDriver driver = Context.al.newMusic(file); result = new Music(this, file, driver); musicMap.put(file, result); } return result; } public void release(String file) { if (musicMap.containsKey(file)) { Music music = musicMap.get(file); music.driver.release(); musicMap.remove(music); } else if (soundMap.containsKey(file)) { Sound sound = soundMap.get(file).get(0); sound.driver.releaseAllStreams(); soundMap.remove(file); } } public Clip get(String file) { if (soundMap.containsKey(file)) { Sound clip = new Sound(this, file); putSound(file, clip); return clip; } else if (musicMap.containsKey(file)) { return musicMap.get(file); } return null; } public void play(String file) { if (!isEnable) { return; } if (musicMap.containsKey(file)) { musicMap.get(file).play(); } else if (soundMap.containsKey(file)) { for (Sound sound : soundMap.get(file)) { sound.play(); } } else { if (!mediaPlayer.isProduction()) { mediaPlayer.loader.load(file); } else { System.err.println("Audio not load: " + file); } } } public void loop(String file) { if (!isEnable) { return; } Clip clip = get(file); if (clip != null) { clip.setLoop(true).play(); } } public void pause(String file) { if (musicMap.containsKey(file)) { musicMap.get(file).pause(); } else if (soundMap.containsKey(file)) { for (Sound sound : soundMap.get(file)) { sound.pause(); } } } public void stop(String file) { if (musicMap.containsKey(file)) { musicMap.get(file).stop(); } else if (soundMap.containsKey(file)) { for (Sound sound : soundMap.get(file)) { sound.stop(); } } } public void resumeAll() { if (!isEnable) { return; } for (List<Sound> soundsClips : soundMap.values()) { for (Sound sound : soundsClips) { sound.play(); } } for (Music music : musicMap.values()) { music.play(); } } public void pauseAll() { for (List<Sound> soundsClips : soundMap.values()) { for (Sound sound : soundsClips) { sound.pause(); } } for (Music music : musicMap.values()) { music.pause(); } } public void stopAll() { for (List<Sound> soundsClips : soundMap.values()) { for (Sound sound : soundsClips) { sound.stop(); } } for (Music music : musicMap.values()) { music.pause(); } } public void releaseAll() { for (List<Sound> soundsClips : soundMap.values()) { soundsClips.get(0).driver.releaseAllStreams(); } soundMap.clear(); for (Music music : musicMap.values()) { music.release(); } musicMap.clear(); } public void setVolume(double volume) { this.volume = volume; for (Music music : musicMap.values()) { music.driver.setVolume(volume); } for (List<Sound> soundsClips : soundMap.values()) { Sound sound = soundsClips.get(0); sound.driver.setVolumeStream(sound.id, volume); } } public double getVolume() { return volume; } private void putSound(String file, Sound sound) { List<Sound> fileSounds = soundMap.get(file); if (fileSounds == null) { fileSounds = new ArrayList<Sound>(); } fileSounds.add(sound); soundMap.put(file, fileSounds); } public Iterable<String> getClips() { Set<String> result = new HashSet<String>(); result.addAll(soundMap.keySet()); result.addAll(musicMap.keySet()); return result; } public void onCreate() { Context.al.init(); } public void onDestroy() { for (String file : getClips()) { release(file); } if (Context.al != null) { Context.al.destroy(); } } }
[ "kolesnikovichdn@gmail.com" ]
kolesnikovichdn@gmail.com
8a00a4a7567f9a69cbea8fb6006da6bb67adfe93
f048bed609d1406956000d004a2f2540110e3aa4
/ms-kitchen/src/main/java/com/training/ykb/spring/KitchenRest.java
daacb2e2302032369c509417bbc3b2779573f130
[]
no_license
osmanyaycioglu/ykb2906
8e73c851433dd0fe4868486a848dcc878bdf50d6
46596ae7750baf017c0117d9c3ed501b8691e1b4
refs/heads/master
2022-11-11T16:21:49.452212
2020-07-02T14:28:59
2020-07-02T14:28:59
276,019,309
1
0
null
null
null
null
UTF-8
Java
false
false
703
java
package com.training.ykb.spring; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/kitchen") public class KitchenRest { @Autowired private KitchenManager km; @PostMapping("/start/cooking") public KitchenResponse startCook(@Validated @RequestBody final Order orderParam) { return this.km.startCooking(orderParam); } }
[ "osman.yaycioglu@gmail.com" ]
osman.yaycioglu@gmail.com