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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ccb21fca1bc6aec9c0826d3aaf18098319c86da
|
30436ce0097ffbc25ec3fe731405121409bfe5e4
|
/bin/modules/core/src/main/java/com/beanframework/core/facade/CompanyFacadeImpl.java
|
5064a5381b8081051a9d9f1421da15084841f5c7
|
[
"MIT"
] |
permissive
|
williamtanws/beanframework
|
0ff351dc68dbc1a0fbf389c99de89ce35624f995
|
f89e6708f9e7deb79188cff7e306ae9487f9291c
|
refs/heads/master
| 2023-05-14T02:53:39.497987
| 2021-05-25T14:31:43
| 2021-05-25T14:31:43
| 150,228,256
| 1
| 0
|
MIT
| 2023-04-29T11:39:26
| 2018-09-25T07:59:25
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,057
|
java
|
package com.beanframework.core.facade;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Component;
import com.beanframework.common.data.DataTableRequest;
import com.beanframework.common.exception.BusinessException;
import com.beanframework.core.data.CompanyDto;
import com.beanframework.core.specification.CompanySpecification;
import com.beanframework.user.domain.Company;
@Component
public class CompanyFacadeImpl extends AbstractFacade<Company, CompanyDto>
implements CompanyFacade {
private static final Class<Company> entityClass = Company.class;
private static final Class<CompanyDto> dtoClass = CompanyDto.class;
@Override
public CompanyDto findOneByUuid(UUID uuid) throws BusinessException {
return findOneByUuid(uuid, entityClass, dtoClass);
}
@Override
public CompanyDto findOneProperties(Map<String, Object> properties) throws BusinessException {
return findOneProperties(properties, entityClass, dtoClass);
}
@Override
public CompanyDto save(CompanyDto model) throws BusinessException {
return save(model, entityClass, dtoClass);
}
@Override
public void delete(UUID uuid) throws BusinessException {
delete(uuid, entityClass);
}
@Override
public Page<CompanyDto> findPage(DataTableRequest dataTableRequest) throws BusinessException {
return findPage(dataTableRequest, CompanySpecification.getPageSpecification(dataTableRequest),
entityClass, dtoClass);
}
@Override
public int count() {
return count(entityClass);
}
@Override
public List<Object[]> findHistory(DataTableRequest dataTableRequest) throws BusinessException {
return findHistory(dataTableRequest, entityClass, dtoClass);
}
@Override
public int countHistory(DataTableRequest dataTableRequest) {
return findCountHistory(dataTableRequest, entityClass);
}
@Override
public CompanyDto createDto() throws BusinessException {
return createDto(entityClass, dtoClass);
}
}
|
[
"william.tan@bertelsmann.de"
] |
william.tan@bertelsmann.de
|
c777c437dc0570831656afe5e7a1c74d0f48c52e
|
6bf85f2b181c3f5718e1fae3181eed1a36e0f120
|
/src/com/javarush/test/level24/lesson14/big01/Arcanoid.java
|
3198fd10c054f5deeaee9b75e446839f2294281f
|
[] |
no_license
|
lelderbe/JavaRushHomeWork
|
6b9f7a51f7c65bc03b6bf8e150b4f666a6d69413
|
226f915a974bea624f6478caacb185e8854da26b
|
refs/heads/master
| 2021-08-19T14:51:48.069081
| 2017-11-26T18:51:35
| 2017-11-26T18:51:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,379
|
java
|
package com.javarush.test.level24.lesson14.big01;
import java.util.ArrayList;
/**
* Created by user on 03.12.2016.
*/
public class Arcanoid {
private int width;
private int height;
private Ball ball;
private Stand stand;
private ArrayList<Brick> bricks;
public static Arcanoid game;
public Arcanoid(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 Ball getBall() {
return ball;
}
public void setBall(Ball ball) {
this.ball = ball;
}
public Stand getStand() {
return stand;
}
public void setStand(Stand stand) {
this.stand = stand;
}
public ArrayList<Brick> getBricks() {
return bricks;
}
public void setBricks(ArrayList<Brick> bricks) {
this.bricks = bricks;
}
public void run() {
}
public void move() {
}
public static void main(String[] args) {
}
}
|
[
"fvdc@ya.ru"
] |
fvdc@ya.ru
|
b00231c196a8889f86088259b6c577ffcde7b2ad
|
ed865190ed878874174df0493b4268fccb636a29
|
/PuridiomWeb/src/com/tsa/puridiom/handlers/RfqBidHistoriesSubmitHandler.java
|
e24ade3856284597e041b25c45ea2e36e84e69f5
|
[] |
no_license
|
zach-hu/srr_java8
|
6841936eda9fdcc2e8185b85b4a524b509ea4b1b
|
9b6096ba76e54da3fe7eba70989978edb5a33d8e
|
refs/heads/master
| 2021-01-10T00:57:42.107554
| 2015-11-06T14:12:56
| 2015-11-06T14:12:56
| 45,641,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,078
|
java
|
package com.tsa.puridiom.handlers;
import com.tsagate.foundation.processengine.*;
import java.util.*;
public class RfqBidHistoriesSubmitHandler implements IHandler
{
public Map handleRequest (Map incomingRequest) throws Exception
{
try
{
PuridiomProcessLoader processLoader = new PuridiomProcessLoader();
PuridiomProcess process = processLoader.loadProcess("rfqbidhistories-submit.xml");
process.executeProcess(incomingRequest);
if (process.getStatus() == Status.SUCCEEDED)
{
incomingRequest.put("viewPage", (String) incomingRequest.get("successPage"));
}
else
{
incomingRequest.put("viewPage", (String) incomingRequest.get("failurePage"));
}
}
catch (Exception exception)
{
incomingRequest.put("errorMsg", exception.getMessage());
incomingRequest.put("viewPage", (String) incomingRequest.get("failurePage"));
throw exception;
}
finally
{
if (incomingRequest.get("viewPage") == null)
{
incomingRequest.put("viewPage", (String) incomingRequest.get("failurePage"));
}
}
return incomingRequest;
}
}
|
[
"brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466"
] |
brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466
|
319e15807275785cf88383e65ce2e49931947dc7
|
5112b1d7720a6b72aaa6763f2d3616f6abb37236
|
/common-component/v2.3.2/src/main/java/egovframework/com/uss/ion/mtg/service/MtgPlaceResveVO.java
|
bf40c41bf11fad160c4814d92f6027eec732b292
|
[] |
no_license
|
dasomel/egovframework
|
1c5435f7b5ce6834379ec7f66cc546db18862b0b
|
a2fcdbf0a0a98e5a2ab8a3193f33cab9f1cd26e7
|
refs/heads/master
| 2021-06-03T10:44:26.848513
| 2020-11-03T07:27:05
| 2020-11-03T07:27:05
| 24,672,345
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 961
|
java
|
package egovframework.com.uss.ion.mtg.service;
import java.io.Serializable;
import java.util.List;
/**
* 개요
* - 회의실예약에 대한 Vo 클래스를 정의한다.
*
* 상세내용
* - 회의실예약의 목록 항목을 관리한다.
* @author 이용
* @version 1.0
* @created 06-15-2010 오후 2:08:56
*/
@SuppressWarnings("serial")
public class MtgPlaceResveVO extends MtgPlaceResve implements Serializable {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
/**
* 배너 목록
*/
List<MtgPlaceResveVO> mtgPlaceResveList;
/**
* @return the mtgPlaceResveList
*/
public List<MtgPlaceResveVO> getMtgPlaceResveList() {
return mtgPlaceResveList;
}
/**
* @param MtgPlaceResve the mtgPlaceResve to set
*/
public void setMtgPlaceResveList(List<MtgPlaceResveVO> mtgPlaceResveList) {
this.mtgPlaceResveList = mtgPlaceResveList;
}
}
|
[
"dasomell@gmail.com"
] |
dasomell@gmail.com
|
0cbe7f5e0ef61d2187e65284e8fa37baa2a3f08b
|
9b08be9fc925b7913351400c0a3dcb6ac9f6c325
|
/src/main/java/Entity/School.java
|
f5191348b1059ef66b8d25c34ae679d98f5d2b24
|
[] |
no_license
|
IceSeaOnly/schoolhelper
|
51b4633578b5e4be3032e62817371b0fa4abc387
|
34d1ea39ea9ee40900feaef928d38a06a10a7149
|
refs/heads/master
| 2021-04-30T18:19:02.099063
| 2017-12-10T14:47:03
| 2017-12-10T14:47:03
| 80,335,140
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 907
|
java
|
package Entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Created by Administrator on 2016/11/22.
*/
@Table
@Entity
public class School {
@Id
@GeneratedValue
private int id;
private String schoolName;
private String tag;/**SDUST*/
public School(String schoolName, String tag) {
this.schoolName = schoolName;
this.tag = tag;
}
public School() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getSchoolName() {
return schoolName;
}
public void setSchoolName(String schoolName) {
this.schoolName = schoolName;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
}
|
[
"1041414957@qq.com"
] |
1041414957@qq.com
|
9fc9a054546df013f2b1863a0a15e607da001bad
|
6c367dc642d88fef90bf16bcad0679c23b164b92
|
/zfpms/src/private/nc/bs/pub/action/N_ZF01_APPROVE.java
|
08098f76f3b42f099ba2dbc409a62677abb22ec6
|
[] |
no_license
|
boblee821226/zhongfa
|
873c8b730d1c9af093be76a49c24e306451d9e7a
|
ad24cc09ff63afb29e6e5cbeb686a19c31df10bd
|
refs/heads/master
| 2020-07-12T03:00:37.690156
| 2019-08-28T10:42:04
| 2019-08-28T10:42:04
| 204,699,786
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,328
|
java
|
package nc.bs.pub.action;
import nc.bs.framework.common.NCLocator;
import nc.bs.pubapp.pf.action.AbstractPfAction;
import nc.bs.pubapp.pub.rule.ApproveStatusCheckRule;
import nc.bs.zfpms.data.plugin.bpplugin.Zfpms_dataPluginPoint;
import nc.impl.pubapp.pattern.rule.processer.CompareAroundProcesser;
import nc.itf.zfpms.IZfpms_dataMaintain;
import nc.vo.pub.BusinessException;
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
import nc.vo.zfpms.data.DataBillVO;
public class N_ZF01_APPROVE extends AbstractPfAction<DataBillVO> {
public N_ZF01_APPROVE() {
super();
}
@Override
protected CompareAroundProcesser<DataBillVO> getCompareAroundProcesserWithRules(
Object userObj) {
CompareAroundProcesser<DataBillVO> processor = new CompareAroundProcesser<DataBillVO>(
Zfpms_dataPluginPoint.APPROVE);
processor.addBeforeRule(new ApproveStatusCheckRule());
return processor;
}
@Override
protected DataBillVO[] processBP(Object userObj,
DataBillVO[] clientFullVOs, DataBillVO[] originBills) {
DataBillVO[] bills = null;
IZfpms_dataMaintain operator = NCLocator.getInstance().lookup(
IZfpms_dataMaintain.class);
try {
bills = operator.approve(clientFullVOs, originBills);
} catch (BusinessException e) {
ExceptionUtils.wrappBusinessException(e.getMessage());
}
return bills;
}
}
|
[
"441814246@qq.com"
] |
441814246@qq.com
|
dbb2f1f33dae8a18d6fd34c35283929a7a1efaa0
|
0907c886f81331111e4e116ff0c274f47be71805
|
/sources/com/yandex/metrica/impl/ob/fs.java
|
ac1003428d380a881e16402d70193c06733bb7de
|
[
"MIT"
] |
permissive
|
Minionguyjpro/Ghostly-Skills
|
18756dcdf351032c9af31ec08fdbd02db8f3f991
|
d1a1fb2498aec461da09deb3ef8d98083542baaf
|
refs/heads/Android-OS
| 2022-07-27T19:58:16.442419
| 2022-04-15T07:49:53
| 2022-04-15T07:49:53
| 415,272,874
| 2
| 0
|
MIT
| 2021-12-21T10:23:50
| 2021-10-09T10:12:36
|
Java
|
UTF-8
|
Java
| false
| false
| 3,076
|
java
|
package com.yandex.metrica.impl.ob;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import com.yandex.metrica.impl.ob.fu;
import java.lang.Thread;
public class fs {
/* access modifiers changed from: private */
/* renamed from: a reason: collision with root package name */
public fq f911a;
private HandlerThread b;
private b c;
/* access modifiers changed from: private */
public volatile Handler d;
public fs(fq fqVar) {
this(fqVar, (Handler) null);
}
public fs(fq fqVar, Handler handler) {
this.f911a = fqVar;
this.b = new HandlerThread(fs.class.getSimpleName() + '@' + Integer.toHexString(hashCode()));
this.d = handler;
}
public <T> void a(fu<T> fuVar, fu.b<T> bVar, fu.a aVar) {
a();
fuVar.a(bVar);
fuVar.a(aVar);
this.c.a(fuVar);
}
private synchronized void a() {
if (this.b.getState() == Thread.State.NEW) {
this.b.start();
Looper looper = this.b.getLooper();
this.c = new b(this, looper, (byte) 0);
if (this.d == null) {
this.d = new Handler(looper);
}
}
}
private class b extends Handler {
/* synthetic */ b(fs fsVar, Looper looper, byte b) {
this(looper);
}
private b(Looper looper) {
super(looper);
}
public void handleMessage(Message message) {
fu fuVar = (fu) message.obj;
fu.b e = fuVar.e();
try {
fs.this.d.post(new c(e, fuVar.b(fs.this.f911a.a((fu<?>) fuVar)), (byte) 0));
} catch (fr e2) {
fs.this.d.post(new a(fuVar.f(), e2, (byte) 0));
}
}
public <T> void a(fu<T> fuVar) {
Message message = new Message();
message.obj = fuVar;
sendMessage(message);
}
}
private static class c<T> implements Runnable {
/* renamed from: a reason: collision with root package name */
private fu.b<T> f914a;
private T b;
/* synthetic */ c(fu.b bVar, Object obj, byte b2) {
this(bVar, obj);
}
private c(fu.b bVar, T t) {
this.f914a = bVar;
this.b = t;
}
public void run() {
fu.b<T> bVar = this.f914a;
if (bVar != null) {
bVar.a(this.b);
}
}
}
private static class a implements Runnable {
/* renamed from: a reason: collision with root package name */
private fu.a f912a;
private fr b;
/* synthetic */ a(fu.a aVar, fr frVar, byte b2) {
this(aVar, frVar);
}
private a(fu.a aVar, fr frVar) {
this.f912a = aVar;
this.b = frVar;
}
public void run() {
fu.a aVar = this.f912a;
if (aVar != null) {
aVar.a(this.b);
}
}
}
}
|
[
"66115754+Minionguyjpro@users.noreply.github.com"
] |
66115754+Minionguyjpro@users.noreply.github.com
|
6bdb7aec4916a5ee751a07f8bb728577a18a7880
|
588c653f3fa3125b76cbfbbd5eb556742bad4022
|
/Benchmark_Android/app/src/main/java/com/ae/benchmark/activities/UnloadSwipe.java
|
190b67a460115280cd94d4c69eba52e73a66e95a
|
[] |
no_license
|
him123/HHT
|
1f2ee68e846d777cf2a9257d5e5c281622da6b4e
|
8097dfbe3cbd9473188a84eb0b70d831afbadc74
|
refs/heads/master
| 2021-01-25T11:28:34.859323
| 2018-03-01T08:12:03
| 2018-03-01T08:12:03
| 123,402,738
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 882
|
java
|
package com.ae.benchmark.activities;
import java.io.Serializable;
/**
* Created by Muhammad Umair on 06/12/2016.
*/
public class UnloadSwipe implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private String cases;
private String pcs;
public UnloadSwipe() {
}
public UnloadSwipe(String name, String cases,String pcs) {
this.name = name;
this.cases = cases;
this.pcs = pcs;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCases() {
return cases;
}
public void setCases(String cases) {
this.cases = cases;
}
public String getPcs() {
return pcs;
}
public void setPcs(String pcs) {
this.pcs = pcs;
}
}
|
[
"himanshu.dhakecha@gmail.com"
] |
himanshu.dhakecha@gmail.com
|
36502ce134849aa2a2604bbb8c18d8fccc5df8dd
|
377405a1eafa3aa5252c48527158a69ee177752f
|
/src/com/google/zxing/FormatException.java
|
710a32c91a748bf752a1ce5fdeb5ab0dc7de4fb0
|
[] |
no_license
|
apptology/AltFuelFinder
|
39c15448857b6472ee72c607649ae4de949beb0a
|
5851be78af47d1d6fcf07f9a4ad7f9a5c4675197
|
refs/heads/master
| 2016-08-12T04:00:46.440301
| 2015-10-25T18:25:16
| 2015-10-25T18:25:16
| 44,921,258
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,002
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.zxing;
// Referenced classes of package com.google.zxing:
// ReaderException
public final class FormatException extends ReaderException
{
private static final FormatException instance = new FormatException();
private FormatException()
{
}
private FormatException(Throwable throwable)
{
super(throwable);
}
public static FormatException getFormatInstance()
{
if (isStackTrace)
{
return new FormatException();
} else
{
return instance;
}
}
public static FormatException getFormatInstance(Throwable throwable)
{
if (isStackTrace)
{
return new FormatException(throwable);
} else
{
return instance;
}
}
}
|
[
"rich.foreman@apptology.com"
] |
rich.foreman@apptology.com
|
9945b691145687595010128d30b65a8cd74a3e1c
|
d0de464bac8ebfbc57ffab467a3b328c19597e60
|
/src/main/java/cn/besbing/Dao/CProjParaAMapper.java
|
0ae3b3278c61b88a3c6d2fe53def12e10133f404
|
[] |
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
| 886
|
java
|
package cn.besbing.Dao;
import cn.besbing.Entities.CProjParaA;
import cn.besbing.Entities.CProjParaAExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CProjParaAMapper {
long countByExample(CProjParaAExample example);
int deleteByExample(CProjParaAExample example);
int deleteByPrimaryKey(Long seqNum);
int insert(CProjParaA record);
int insertSelective(CProjParaA record);
List<CProjParaA> selectByExample(CProjParaAExample example);
CProjParaA selectByPrimaryKey(Long seqNum);
int updateByExampleSelective(@Param("record") CProjParaA record, @Param("example") CProjParaAExample example);
int updateByExample(@Param("record") CProjParaA record, @Param("example") CProjParaAExample example);
int updateByPrimaryKeySelective(CProjParaA record);
int updateByPrimaryKey(CProjParaA record);
}
|
[
"fsbydz@vip.qq.com"
] |
fsbydz@vip.qq.com
|
3072a72f210c07b6a22a0fe0341e1a407b39d283
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/15/org/apache/commons/math3/dfp/DfpMath_tan_836.java
|
4092cf0f3ece9fdd60118dad9042dbe67df37a53
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,156
|
java
|
org apach common math3 dfp
mathemat routin link dfp
constant defin link dfp field dfpfield
version
dfp math dfpmath
comput tangent argument
param number tangent desir
tan
dfp tan dfp
sin divid co
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
8f35a140152bb5fc080c3f6c7ef05311dae4827a
|
8036c74d352a082179d98dfe396ddcf48251cdf1
|
/TCC00173/src/main/java/uff/ic/tcc00173/provas/s20111/P120111Ex1.java
|
56e189b19f89d0e1e3c54fa25f874f0c981d91ea
|
[] |
no_license
|
nilsonld/lleme
|
085c0dd3f5a246f492fab4e64d01ebe1451ae216
|
831a2e167881f3ccb0f6730bc4ccf7382410fa33
|
refs/heads/master
| 2020-03-08T01:52:47.844201
| 2018-04-02T16:16:21
| 2018-04-02T16:16:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 927
|
java
|
package uff.ic.tcc00173.provas.s20111;
public class P120111Ex1 {
public static void main(String[] args) {
System.out.println(mmc(15, 24));
}
public static int mmc(int n1, int n2) {
int fator = 2;
int mmc = 1;
while (n1 > 1 || n2 > 1) {
while (n1 % fator == 0 || n2 % fator == 0) {
//if (n1 % fator == 0 || n2 % fator == 0)
mmc = mmc * fator;
if (n1 % fator == 0)
n1 /= fator;
if (n2 % fator == 0)
n2 /= fator;
}
fator++;
}
return mmc;
}
public static int proximoPrimo(int n) {
n += 1;
while (!primo(n))
n++;
return n;
}
public static boolean primo(int n) {
n = Math.abs(n);
if (n == 2)
return true;
else if (n == 1 || n % 2 == 0)
return false;
else
for (int i = 3; i < Math.sqrt(n); i += 2)
if (n % i == 0)
return false;
return true;
}
}
|
[
"lapaesleme@gmail.com"
] |
lapaesleme@gmail.com
|
3cdce6c61c4fc58c3f86af93fbbb6e6bd04f7dcd
|
22b6eecadc8ee5bdf76fb4aa2a56c30d86f2251b
|
/together/src/main/java/com/to/util/SetCharacterEncodingFilter.java
|
42a26180e50c4d29b8aab2650fd393388c05f710
|
[] |
no_license
|
chrgu000/WanHeng
|
2c3048788739a9813c5e4c88b0de881a2ae02333
|
b2ff8b73ed3c5726b7b86962b6617a1ab196da7e
|
refs/heads/master
| 2020-05-23T13:59:05.208556
| 2018-09-19T06:15:26
| 2018-09-19T06:15:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 790
|
java
|
package com.to.util;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class SetCharacterEncodingFilter implements Filter {
public void destroy() {
}
/**
* @param args
*/
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
request.setCharacterEncoding("UTF-8");
// 传递控制到下一个过滤器
chain.doFilter(request, response);
response.setCharacterEncoding("UTF-8");
// System.out.println("过滤器");
}
public void init(FilterConfig filterConfig) throws ServletException {
}
}
|
[
"yangjunst@sina.com"
] |
yangjunst@sina.com
|
bdbcdb0a761e4499dd6a1a5944bef505632e602f
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/assets/MidasPay_zip/MidasPay_1.7.9a_179010_92809280434fe4a46110cc442b537591.jar/classes.jar/com/pay/v4/view/APVelocityTrackerCompat.java
|
a6368337a4ac465c6e5fe3a4853eb71e43c9cd32
|
[] |
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
| 2,219
|
java
|
package com.pay.v4.view;
import android.os.Build.VERSION;
import android.view.VelocityTracker;
public class APVelocityTrackerCompat
{
public static final VelocityTrackerVersionImpl IMPL = new BaseVelocityTrackerVersionImpl();
static
{
if (Build.VERSION.SDK_INT >= 11)
{
IMPL = new HoneycombVelocityTrackerVersionImpl();
return;
}
}
public static float getXVelocity(VelocityTracker paramVelocityTracker, int paramInt)
{
return IMPL.getXVelocity(paramVelocityTracker, paramInt);
}
public static float getYVelocity(VelocityTracker paramVelocityTracker, int paramInt)
{
return IMPL.getYVelocity(paramVelocityTracker, paramInt);
}
public static class BaseVelocityTrackerVersionImpl
implements APVelocityTrackerCompat.VelocityTrackerVersionImpl
{
public float getXVelocity(VelocityTracker paramVelocityTracker, int paramInt)
{
return paramVelocityTracker.getXVelocity();
}
public float getYVelocity(VelocityTracker paramVelocityTracker, int paramInt)
{
return paramVelocityTracker.getYVelocity();
}
}
public static class HoneycombVelocityTrackerVersionImpl
implements APVelocityTrackerCompat.VelocityTrackerVersionImpl
{
public float getXVelocity(VelocityTracker paramVelocityTracker, int paramInt)
{
return APVelocityTrackerCompatHoneycomb.getXVelocity(paramVelocityTracker, paramInt);
}
public float getYVelocity(VelocityTracker paramVelocityTracker, int paramInt)
{
return APVelocityTrackerCompatHoneycomb.getYVelocity(paramVelocityTracker, paramInt);
}
}
public static abstract interface VelocityTrackerVersionImpl
{
public abstract float getXVelocity(VelocityTracker paramVelocityTracker, int paramInt);
public abstract float getYVelocity(VelocityTracker paramVelocityTracker, int paramInt);
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\assets\MidasPay_zip\MidasPay_1.7.9a_179010_92809280434fe4a46110cc442b537591.jar\classes.jar
* Qualified Name: com.pay.v4.view.APVelocityTrackerCompat
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
2786dcd76775c43ccd556d050d7a43c5e44d5122
|
f20af063f99487a25b7c70134378c1b3201964bf
|
/appengine/src/main/java/com/dereekb/gae/client/api/service/response/builder/impl/ClientApiResponseBuilderImpl.java
|
75fa6ddf04acd71c8f9c78ea8c2153b38ed734eb
|
[] |
no_license
|
dereekb/appengine
|
d45ad5c81c77cf3fcca57af1aac91bc73106ccbb
|
d0869fca8925193d5a9adafd267987b3edbf2048
|
refs/heads/master
| 2022-12-19T22:59:13.980905
| 2020-01-26T20:10:15
| 2020-01-26T20:10:15
| 165,971,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,631
|
java
|
package com.dereekb.gae.client.api.service.response.builder.impl;
import java.util.Map;
import com.dereekb.gae.client.api.service.response.ClientApiResponse;
import com.dereekb.gae.client.api.service.response.ClientApiResponseAccessor;
import com.dereekb.gae.client.api.service.response.ClientResponse;
import com.dereekb.gae.client.api.service.response.builder.ClientApiResponseAccessorBuilder;
import com.dereekb.gae.client.api.service.response.builder.ClientApiResponseBuilder;
import com.dereekb.gae.client.api.service.response.data.ClientApiResponseData;
import com.dereekb.gae.client.api.service.response.error.ClientResponseError;
import com.dereekb.gae.client.api.service.response.exception.NoClientResponseDataException;
import com.dereekb.gae.client.api.service.sender.extension.NotClientApiResponseException;
import com.fasterxml.jackson.databind.JsonNode;
/**
* {@link ClientApiResponseBuilder} implementation.
*
* @author dereekb
*
*/
public class ClientApiResponseBuilderImpl
implements ClientApiResponseBuilder {
public static final ClientApiResponseBuilder SINGLETON = new ClientApiResponseBuilderImpl();
private ClientApiResponseAccessorBuilder accessorBuilder;
public ClientApiResponseBuilderImpl() {
this.setAccessorBuilder(ClientApiResponseAccessorBuilderImpl.SINGLETON);
}
public ClientApiResponseBuilderImpl(ClientApiResponseAccessorBuilder accessorBuilder) {
this.setAccessorBuilder(accessorBuilder);
}
public ClientApiResponseAccessorBuilder getAccessorBuilder() {
return this.accessorBuilder;
}
public void setAccessorBuilder(ClientApiResponseAccessorBuilder accessorBuilder) {
if (accessorBuilder == null) {
throw new IllegalArgumentException("accessorBuilder cannot be null.");
}
this.accessorBuilder = accessorBuilder;
}
// MARK: ClientApiRequestBuilder
@Override
public ClientApiResponse buildApiResponse(ClientResponse response) throws NotClientApiResponseException {
return new ClientApiResponseImpl(response);
}
// MARK: Internal
public class ClientApiResponseImpl
implements ClientApiResponse {
private final ClientResponse clientResponse;
private final ClientApiResponseAccessor apiResponseAccessor;
public ClientApiResponseImpl(ClientResponse clientResponse) throws NotClientApiResponseException {
this.clientResponse = clientResponse;
this.apiResponseAccessor = ClientApiResponseBuilderImpl.this.accessorBuilder.buildAccessor(clientResponse);
}
@Override
public int getStatus() {
return this.clientResponse.getStatus();
}
@Override
public String getResponseData() {
return this.clientResponse.getResponseData();
}
// MARK: ClientApiResponse
@Override
public boolean isSuccessful() {
return this.apiResponseAccessor.isSuccessful();
}
@Override
public JsonNode getApiResponseJsonNode() {
return this.apiResponseAccessor.getApiResponseJsonNode();
}
@Override
public ClientApiResponseData getPrimaryData() throws NoClientResponseDataException {
return this.apiResponseAccessor.getPrimaryData();
}
@Override
public Map<String, ClientApiResponseData> getIncludedData() {
return this.apiResponseAccessor.getIncludedData();
}
@Override
public ClientResponseError getError() {
return this.apiResponseAccessor.getError();
}
@Override
public String toString() {
return "ClientApiResponseImpl [clientResponse=" + this.clientResponse + ", decodedResponse="
+ this.apiResponseAccessor + "]";
}
}
@Override
public String toString() {
return "ClientApiResponseBuilderImpl [accessorBuilder=" + this.accessorBuilder + "]";
}
}
|
[
"dereekb@gmail.com"
] |
dereekb@gmail.com
|
23c7e1a839a8c4a06dbba79b46e23d2cf39a3852
|
493a8065cf8ec4a4ccdf136170d505248ac03399
|
/net.sf.ictalive.rules/src/net/sf/ictalive/rules/swrl/impl/DataRangeAtomImpl.java
|
441c60e703e37467f13ff4accc72e0fa0d991fb6
|
[] |
no_license
|
ignasi-gomez/aliveclipse
|
593611b2d471ee313650faeefbed591c17beaa50
|
9dd2353c886f60012b4ee4fe8b678d56972dff97
|
refs/heads/master
| 2021-01-14T09:08:24.839952
| 2014-10-09T14:21:01
| 2014-10-09T14:21:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,848
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.sf.ictalive.rules.swrl.impl;
import java.util.Collection;
import net.sf.ictalive.operetta.OM.Concept;
import net.sf.ictalive.rules.swrl.DObject;
import net.sf.ictalive.rules.swrl.DataRangeAtom;
import net.sf.ictalive.rules.swrl.DataValue;
import net.sf.ictalive.rules.swrl.SwrlPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Data Range Atom</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link net.sf.ictalive.rules.swrl.impl.DataRangeAtomImpl#getDataType <em>Data Type</em>}</li>
* <li>{@link net.sf.ictalive.rules.swrl.impl.DataRangeAtomImpl#getOneOf <em>One Of</em>}</li>
* <li>{@link net.sf.ictalive.rules.swrl.impl.DataRangeAtomImpl#getArgument1 <em>Argument1</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DataRangeAtomImpl extends AtomImpl implements DataRangeAtom {
/**
* The cached value of the '{@link #getDataType() <em>Data Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDataType()
* @generated
* @ordered
*/
protected Concept dataType;
/**
* The cached value of the '{@link #getOneOf() <em>One Of</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOneOf()
* @generated
* @ordered
*/
protected EList<DataValue> oneOf;
/**
* The cached value of the '{@link #getArgument1() <em>Argument1</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getArgument1()
* @generated
* @ordered
*/
protected DObject argument1;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DataRangeAtomImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SwrlPackage.Literals.DATA_RANGE_ATOM;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Concept getDataType() {
if (dataType != null && dataType.eIsProxy()) {
InternalEObject oldDataType = (InternalEObject)dataType;
dataType = (Concept)eResolveProxy(oldDataType);
if (dataType != oldDataType) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, SwrlPackage.DATA_RANGE_ATOM__DATA_TYPE, oldDataType, dataType));
}
}
return dataType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Concept basicGetDataType() {
return dataType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDataType(Concept newDataType) {
Concept oldDataType = dataType;
dataType = newDataType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SwrlPackage.DATA_RANGE_ATOM__DATA_TYPE, oldDataType, dataType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DataValue> getOneOf() {
if (oneOf == null) {
oneOf = new EObjectContainmentEList<DataValue>(DataValue.class, this, SwrlPackage.DATA_RANGE_ATOM__ONE_OF);
}
return oneOf;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DObject getArgument1() {
return argument1;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetArgument1(DObject newArgument1, NotificationChain msgs) {
DObject oldArgument1 = argument1;
argument1 = newArgument1;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1, oldArgument1, newArgument1);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setArgument1(DObject newArgument1) {
if (newArgument1 != argument1) {
NotificationChain msgs = null;
if (argument1 != null)
msgs = ((InternalEObject)argument1).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1, null, msgs);
if (newArgument1 != null)
msgs = ((InternalEObject)newArgument1).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1, null, msgs);
msgs = basicSetArgument1(newArgument1, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1, newArgument1, newArgument1));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case SwrlPackage.DATA_RANGE_ATOM__ONE_OF:
return ((InternalEList<?>)getOneOf()).basicRemove(otherEnd, msgs);
case SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1:
return basicSetArgument1(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case SwrlPackage.DATA_RANGE_ATOM__DATA_TYPE:
if (resolve) return getDataType();
return basicGetDataType();
case SwrlPackage.DATA_RANGE_ATOM__ONE_OF:
return getOneOf();
case SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1:
return getArgument1();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SwrlPackage.DATA_RANGE_ATOM__DATA_TYPE:
setDataType((Concept)newValue);
return;
case SwrlPackage.DATA_RANGE_ATOM__ONE_OF:
getOneOf().clear();
getOneOf().addAll((Collection<? extends DataValue>)newValue);
return;
case SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1:
setArgument1((DObject)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SwrlPackage.DATA_RANGE_ATOM__DATA_TYPE:
setDataType((Concept)null);
return;
case SwrlPackage.DATA_RANGE_ATOM__ONE_OF:
getOneOf().clear();
return;
case SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1:
setArgument1((DObject)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SwrlPackage.DATA_RANGE_ATOM__DATA_TYPE:
return dataType != null;
case SwrlPackage.DATA_RANGE_ATOM__ONE_OF:
return oneOf != null && !oneOf.isEmpty();
case SwrlPackage.DATA_RANGE_ATOM__ARGUMENT1:
return argument1 != null;
}
return super.eIsSet(featureID);
}
} //DataRangeAtomImpl
|
[
"salvarez@lsi.upc.edu"
] |
salvarez@lsi.upc.edu
|
4edcb352f0eebb3fefe36aad4b3607da5097b390
|
41bac86d728e5f900e3d60b5a384e7f00c966f5b
|
/communote/persistence/src/main/java/com/communote/server/core/tag/category/CategoryNameAlreadyExistsException.java
|
b12757026c8bd092c8e20d669cb93851187bc624
|
[
"Apache-2.0"
] |
permissive
|
Communote/communote-server
|
f6698853aa382a53d43513ecc9f7f2c39f527724
|
e6a3541054baa7ad26a4eccbbdd7fb8937dead0c
|
refs/heads/master
| 2021-01-20T19:13:11.466831
| 2019-02-02T18:29:16
| 2019-02-02T18:29:16
| 61,822,650
| 27
| 4
|
Apache-2.0
| 2018-12-08T19:19:06
| 2016-06-23T17:06:40
|
Java
|
UTF-8
|
Java
| false
| false
| 657
|
java
|
package com.communote.server.core.tag.category;
/**
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a>
*/
public class CategoryNameAlreadyExistsException extends
com.communote.server.core.tag.category.TagCategoryAlreadyExistsException {
/**
* The serial version UID of this class. Needed for serialization.
*/
private static final long serialVersionUID = 3731843104180864245L;
/**
* Constructs a new instance of CategoryNameAlreadyExistsException
*
*/
public CategoryNameAlreadyExistsException(String message) {
super(message);
}
}
|
[
"ronny.winkler@communote.com"
] |
ronny.winkler@communote.com
|
8b1a087ef843e9519e0c97665e3098b802446efa
|
35e1aee1685def4d303dbfd1ce62548d1aa000c2
|
/ServidorWeb/src/java/WebServices/UsuarioWS/ExDivsNoAsignados_Exception.java
|
af9a8e717a8b770b46c981e4dd73c82911506d31
|
[] |
no_license
|
sjcotto/java-swing-ws
|
d2479e1bedea0ba46e8182c1d9dd91955042e9b8
|
fd972634a3f58237bb2cfb07fde7113b80d15730
|
refs/heads/master
| 2016-09-06T07:43:45.963849
| 2013-08-15T01:19:17
| 2013-08-15T01:19:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,137
|
java
|
package WebServices.UsuarioWS;
import javax.xml.ws.WebFault;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.6
* Generated source version: 2.1
*
*/
@WebFault(name = "ExDivsNoAsignados", targetNamespace = "http://WebServices/")
public class ExDivsNoAsignados_Exception
extends java.lang.Exception
{
/**
* Java type that goes as soapenv:Fault detail element.
*
*/
private ExDivsNoAsignados faultInfo;
/**
*
* @param message
* @param faultInfo
*/
public ExDivsNoAsignados_Exception(String message, ExDivsNoAsignados faultInfo) {
super(message);
this.faultInfo = faultInfo;
}
/**
*
* @param message
* @param faultInfo
* @param cause
*/
public ExDivsNoAsignados_Exception(String message, ExDivsNoAsignados faultInfo, Throwable cause) {
super(message, cause);
this.faultInfo = faultInfo;
}
/**
*
* @return
* returns fault bean: WebServices.UsuarioWS.ExDivsNoAsignados
*/
public ExDivsNoAsignados getFaultInfo() {
return faultInfo;
}
}
|
[
"sjcotto@gmail.com"
] |
sjcotto@gmail.com
|
9718c5e9f9163e1178c23652d723150cb9734e79
|
a78b493dbdc0b0d49f5b85bf6f8d2120b3020909
|
/src/util/trace/port/rpc/rmi/RMIObjectLookedUp.java
|
ccd758285ee3444fb01e4323a378a3b169530d7b
|
[] |
no_license
|
pdewan/GIPC
|
6998839307eedf37dda0451bfe331c45c0bfc1b5
|
46c18824b7a5cf73bf12122023a714194a464415
|
refs/heads/master
| 2022-04-26T20:32:09.075467
| 2022-04-03T19:48:39
| 2022-04-03T19:48:39
| 16,309,078
| 3
| 6
| null | 2017-05-10T23:29:18
| 2014-01-28T10:45:03
|
Java
|
UTF-8
|
Java
| false
| false
| 901
|
java
|
package util.trace.port.rpc.rmi;
import java.rmi.registry.Registry;
import util.annotations.ComponentWidth;
import util.annotations.DisplayToString;
import util.trace.TraceableInfo;
@DisplayToString(true)
@ComponentWidth(1000)
public class RMIObjectLookedUp extends TraceableInfo {
public RMIObjectLookedUp(String aMessage, Object aSource, Object anObject, String anObjectName, Registry aRegistry) {
super(aMessage, aSource );
}
public static RMIObjectLookedUp newCase(Object aSource, Object anObject, String anObjectName, Registry aRegistry) {
String aMessage = anObject + "<->" + anObjectName + ":" + aRegistry;
RMIObjectLookedUp retVal = new RMIObjectLookedUp(aMessage, aSource, anObject, anObjectName, aRegistry);
retVal.announce();
return retVal;
}
static {
// Tracer.setKeywordDisplayStatus(CallReceived.class, true);
}
}
|
[
"dewan@cs.unc.edu"
] |
dewan@cs.unc.edu
|
da88856457d506ca520f9bceb7de0ba5b410f48c
|
4f9e893cedd8f25557239f939edee6bcb1246715
|
/jinghua/DM/src/com/jhkj/mosdc/sc/po/TCode.java
|
e3cf7c06e8f2c974e0e214fb504f54c10f6edfba
|
[] |
no_license
|
yangtie34/projects
|
cc9ba22c1fd235dadfe18509bc6951e21e9d3be4
|
5a3a86116e385db1086f8f6e9eb07198432fec27
|
refs/heads/master
| 2020-06-29T11:04:26.615952
| 2017-07-25T03:28:15
| 2017-07-25T03:28:15
| 74,436,105
| 1
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,459
|
java
|
package com.jhkj.mosdc.sc.po;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* TCode entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "T_CODE", schema = "DM_MOSDC")
public class TCode implements java.io.Serializable {
// Fields
private String id;
private String code;
private String name;
private String codeType;
private String codeCategory;
private String codetypeName;
private Boolean istrue;
private Short order;
// Constructors
public TCode() {
super();
}
public TCode(String id, String code, String name, String codeType,
String codeCategory, String codetypeName, Boolean istrue,
Short order) {
super();
this.id = id;
this.code = code;
this.name = name;
this.codeType = codeType;
this.codeCategory = codeCategory;
this.codetypeName = codetypeName;
this.istrue = istrue;
this.order = order;
}
@Id
@Column(name = "ID", unique = true, nullable = false, length = 60)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Column(name = "CODE_", length = 2)
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Column(name = "NAME_", length = 2)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Column(name = "CODE_TYPE", length = 2)
public String getCodeType() {
return codeType;
}
public void setCodeType(String codeType) {
this.codeType = codeType;
}
@Column(name = "CODE_CATEGORY", length = 2)
public String getCodeCategory() {
return this.codeCategory;
}
public void setCodeCategory(String codeCategory) {
this.codeCategory = codeCategory;
}
@Column(name = "CODETYPE_NAME", length = 100)
public String getCodetypeName() {
return this.codetypeName;
}
public void setCodetypeName(String codetypeName) {
this.codetypeName = codetypeName;
}
@Column(name = "ISTRUE", precision = 1, scale = 0)
public Boolean getIstrue() {
return this.istrue;
}
public void setIstrue(Boolean istrue) {
this.istrue = istrue;
}
@Column(name = "ORDER_", precision = 4, scale = 0)
public Short getOrder() {
return this.order;
}
public void setOrder(Short order) {
this.order = order;
}
}
|
[
"yangtie34@163.com"
] |
yangtie34@163.com
|
3aba2789cc2a62fd00274df9eeb83c22d5e3baad
|
cd870b3ff2b42824175772a4771104e301f047c8
|
/mapollage/src/main/java/se/trixon/tools/mapollage/ui/config/BaseTab.java
|
58557488c0e5dc4ec4e3cccc60134c9485f7d87b
|
[
"Apache-2.0"
] |
permissive
|
trixon/toolbox-tools
|
b3047b6a621186e4634439d732a09ca63a586205
|
ca6f1a927cfe07d9b5e152c2d86e730c34ddb9f3
|
refs/heads/master
| 2023-02-23T08:31:43.935681
| 2019-08-31T05:51:23
| 2019-08-31T05:51:23
| 204,544,142
| 0
| 0
|
Apache-2.0
| 2023-02-09T19:47:48
| 2019-08-26T19:14:13
|
Java
|
UTF-8
|
Java
| false
| false
| 3,082
|
java
|
/*
* Copyright 2019 Patrik Karlström.
*
* 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 se.trixon.tools.mapollage.ui.config;
import java.util.Locale;
import java.util.ResourceBundle;
import javafx.geometry.Insets;
import javafx.scene.control.Tab;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Region;
import org.controlsfx.validation.ValidationSupport;
import se.trixon.almond.util.SystemHelper;
import se.trixon.toolbox.api.TbPreferences;
import se.trixon.tools.mapollage.ProfileManager;
import se.trixon.tools.mapollage.profile.Profile;
/**
*
* @author Patrik Karlström
*/
public abstract class BaseTab extends Tab {
public static final int ICON_SIZE = 32;
public static final String MULTILINE_DIVIDER = "* * * * *";
protected static ValidationSupport sValidationSupport;
protected final ResourceBundle mBundle = SystemHelper.getBundle(BaseTab.class, "Bundle");
protected final String mHeaderPrefix = " + ";
protected final TbPreferences mTbPreferences = TbPreferences.getInstance();
protected Profile mProfile;
protected final ProfileManager mProfileManager = ProfileManager.getInstance();
protected String mTitle;
private final Insets mTopInsets = new Insets(8, 0, 0, 0);
public static void setValidationSupport(ValidationSupport validationSupport) {
BaseTab.sValidationSupport = validationSupport;
}
public BaseTab() {
}
public Locale getDateFormatLocale() {
return mTbPreferences.general().getLocale();
}
public String getTitle() {
return mTitle;
}
public abstract void load();
public abstract void save();
public void setTitle(String title) {
mTitle = title;
}
protected void addTopMargin(Region... regions) {
for (Region region : regions) {
GridPane.setMargin(region, mTopInsets);
}
}
protected void addTopPadding(Region... regions) {
for (Region region : regions) {
region.setPadding(mTopInsets);
}
}
protected void append(StringBuilder sb, String key, String value) {
sb.append(mHeaderPrefix).append(String.format("%s: %s\n", key, value));
}
protected void invalidSettings(String message) {
//Message.error(this, Dict.INVALID_SETTING.toString(), String.format("<html><h3>%s</h3>%s", mTitle, message));
}
protected void optAppend(StringBuilder sb, boolean state, String string) {
if (state) {
sb.append(mHeaderPrefix).append(string).append("\n");
}
}
}
|
[
"patrik@trixon.se"
] |
patrik@trixon.se
|
f8b82102ae1c943445c551a3105d889487b38b13
|
36032d1bb8f40a4dd7329186628f6f79836eca07
|
/aliyun-java-sdk-ecd/src/main/java/com/aliyuncs/ecd/model/v20200930/CheckUserInSecurityCenterWhiteListResponse.java
|
e88a93ea1ac132a1799664a72945dfcec7be31fd
|
[
"Apache-2.0"
] |
permissive
|
aiical/aliyun-openapi-java-sdk
|
5cd7d509f8df43823bcd826b1b61b419c462c4c5
|
71e7a7a55f48019bc9f2c6115081cb0d13801205
|
refs/heads/master
| 2023-07-07T23:27:20.196222
| 2021-08-20T06:57:29
| 2021-08-20T06:57:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,570
|
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.ecd.model.v20200930;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.ecd.transform.v20200930.CheckUserInSecurityCenterWhiteListResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CheckUserInSecurityCenterWhiteListResponse extends AcsResponse {
private String requestId;
private Boolean inWhiteList;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getInWhiteList() {
return this.inWhiteList;
}
public void setInWhiteList(Boolean inWhiteList) {
this.inWhiteList = inWhiteList;
}
@Override
public CheckUserInSecurityCenterWhiteListResponse getInstance(UnmarshallerContext context) {
return CheckUserInSecurityCenterWhiteListResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
8be237319e280fcf737629c16596c0425f3ee40f
|
9b6e669381193a97728001e9de0ccdc15ff4d892
|
/app/src/main/java/com/yksj/consultation/son/consultation/avchat/widgets/ToggleState.java
|
4369fd294b55aa1fd105327650ae884495d683c3
|
[] |
no_license
|
13525846841/ConSonP
|
94d0e14a67a0930ac65aacfae668ab6820287650
|
2a469de7b0e8c7547cbff23b88e0e036683a3bc6
|
refs/heads/master
| 2020-05-22T07:26:40.576191
| 2019-06-05T09:56:35
| 2019-06-05T09:56:35
| 186,260,855
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 197
|
java
|
package com.yksj.consultation.son.consultation.avchat.widgets;
/**
* Created by hzlichengda on 14-3-31.
*/
public enum ToggleState {
DISABLE, //禁用
OFF, // normal
ON; //selected
}
|
[
"2965378806"
] |
2965378806
|
c522cf494c970fe7fd28428277fd11bf0852ab7a
|
68746d4c45185acabe23275fc4764d2c3f3de7d2
|
/src/main/java/books/classic/GameOfLife.java
|
84b90029b875376054614987b7155a9e663b4259
|
[
"MIT"
] |
permissive
|
physicsLoveJava/algorithms-practice-record
|
8326c13a87e0f2a0dafddb3d1fcb0557fcd7461d
|
d0ad21214b2e008d81ba07717da3dca062a7071b
|
refs/heads/master
| 2022-05-18T11:09:55.951442
| 2022-04-29T02:00:07
| 2022-04-29T02:00:07
| 103,037,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,197
|
java
|
package books.classic;
public class GameOfLife {
private static int DEAD = 1;
private static int ALIVE = 2;
private static int REBORN = 3;
public static void start(int[][] matrix, int rows, int cols) throws InterruptedException {
if(matrix == null || rows < 0 || cols < 0) {
return ;
}
int[][] map = new int[rows][cols];
while(true) {
printMatrix(matrix, rows, cols);
for (int i = 0; i < rows; i++) {
for (int j = 0; j < cols; j++) {
switch (getNeighbours(matrix, i, j)) {
case 0:
case 1:
case 4:
case 5:
case 6:
case 7:
case 8:
map[i][j] = DEAD;
break;
case 2:
map[i][j] = ALIVE;
break;
case 3:
map[i][j] = REBORN;
break;
}
}
}
transformMatrix(matrix, map);
Thread.sleep(1000);
}
}
private static void transformMatrix(int[][] matrix, int[][] map) {
for (int i = 0; i < matrix.length; i++) {
for (int j = 0; j < matrix[0].length; j++) {
switch (map[i][j]) {
case 1:
matrix[i][j] = 0;
break;
case 2:
break;
case 3:
matrix[i][j] = 1;
break;
default:
break;
}
}
}
}
private static void printMatrix(int[][] matrix, int rows, int cols) {
System.out.println("matrix: ");
for (int i = 0; i < rows; i++) {
for (int j = 0; j < cols; j++) {
if(matrix[i][j] == 1) {
System.out.printf("%2s", "X");
}else {
System.out.printf("%2s", "0");
}
}
System.out.println();
}
}
private static int getNeighbours(int[][] matrix, int row, int col) {
int count = 0;
int rows = matrix.length;
int cols = matrix[0].length;
for (int i = row - 1; i < row + 2; i++) {
for (int j = col - 1; j < col + 2; j++) {
if(i < 0 || j < 0 || i >= rows || j >= cols
|| (i == row && j == col)) {
continue;
}else {
if(matrix[i][j] == 1) {
count ++;
}
}
}
}
return count;
}
public static void main(String[] args) {
int[][] matrix = {
{1, 1, 1, 1},
{0, 1, 0, 1},
{1, 1, 1, 1},
{0, 0, 1, 1}
};
System.out.println(getNeighbours(matrix, 0, 0));
}
}
|
[
"lujian282012@163.com"
] |
lujian282012@163.com
|
5246cb0f1dd417727f03742e6c4873a94311c63f
|
c3e391e3cc9184028fa26ceba3a15ed5832669f1
|
/src/main/java/org/apache/ibatis/type/ShortTypeHandler.java
|
1ee50b5698ad78f8ba49a7c7cc3cc42eabd09755
|
[
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
MybeautifulSunShine/mybatis-3-master
|
80e5a56a03608363a06293ba43e2985bfc097782
|
0c911eca653fa61002ace5dd5850d24c6aadcffe
|
refs/heads/master
| 2023-03-23T11:43:31.872326
| 2021-03-11T07:28:22
| 2021-03-11T07:28:22
| 327,171,618
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,729
|
java
|
/**
* Copyright 2009-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* 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.ibatis.type;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* @author Clinton Begin
*/
public class ShortTypeHandler extends BaseTypeHandler<Short> {
@Override
public void setNonNullParameter(PreparedStatement ps, int i, Short parameter, JdbcType jdbcType)
throws SQLException {
ps.setShort(i, parameter);
}
@Override
public Short getNullableResult(ResultSet rs, String columnName)
throws SQLException {
short result = rs.getShort(columnName);
return (result == 0 && rs.wasNull()) ? null : result;
}
@Override
public Short getNullableResult(ResultSet rs, int columnIndex)
throws SQLException {
short result = rs.getShort(columnIndex);
return (result == 0 && rs.wasNull()) ? null : result;
}
@Override
public Short getNullableResult(CallableStatement cs, int columnIndex)
throws SQLException {
short result = cs.getShort(columnIndex);
return (result == 0 && cs.wasNull()) ? null : result;
}
}
|
[
"m18234818170@163.com"
] |
m18234818170@163.com
|
97f65261f52c7b6426aae857bb27904ee2d362c4
|
cbed73111754e54d117300bcf8ec18ff8edeb356
|
/web/src/main/java/com/diary/webapp/spring/ValidatorExtensionPostProcessor.java
|
891e21fa498ff7fcf2dc87499ecbe4d4e90b3dff
|
[] |
no_license
|
Cajova-Houba/Diary
|
7b5c5f1d09fdd769cbb37a983ab9bdd5d8553cc8
|
b4e64a05dc538a399637c645269dacc6f0e3e4c3
|
refs/heads/master
| 2021-01-13T01:03:02.670581
| 2015-11-11T23:20:24
| 2015-11-11T23:20:24
| 46,015,676
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,843
|
java
|
package com.diary.webapp.spring;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.PropertyValue;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import java.util.List;
/**
* <p>Adds commons validator configuration files to an existing Spring commons Validator Factory bean, possibly defined
* within a seperate Spring configuration file in a seperate jar file. By using this extension factory developers can
* add validation configuration for their own persistent classes to an AppFuse application without modifying any of the
* existing AppFuse Spring configuration or jar distribution files.
* <p>As an example consider the following Spring bean configuration:
* <pre>
* <bean class="com.diary.spring.ValidatorExtensionPostProcessor">
* <property name="validationConfigLocations">
* <list>
* <value>/WEB-INF/foo-validation.xml</value>
* </list>
* </property>
* </bean>
* </pre>
* <p>The sample adds a single validation configuration file (foo-validation.xml) to an existing Spring commons
* Validator Factory bean (a bean of class org.springmodules.validation.commons.DefaultValidatorFactory). Assuming the
* validator extension is included in a Spring configuration file called applicationContext-foo-validation.xml, and
* that this configuration file is added directly below WEB-INF in the Foo web project, then the normal war overlay
* process coupled with AppFuse's configuration file auto detection will ensure that the validation extension is
* automatically included into the application without requiring any modification of AppFuse's existing config files.
*
* @author Michael Horwitz
*/
public class ValidatorExtensionPostProcessor implements BeanFactoryPostProcessor {
private String validatorFactoryBeanName = "validatorFactory";
private List validationConfigLocations;
/**
* Adds the validation configuration files to the list already held in the validator factory bean configuration.
* @param configurableListableBeanFactory the bean factory
*/
@SuppressWarnings("unchecked")
public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) {
if (configurableListableBeanFactory.containsBean(validatorFactoryBeanName)) {
BeanDefinition validatorFactoryBeanDefinition =
configurableListableBeanFactory.getBeanDefinition(validatorFactoryBeanName);
MutablePropertyValues propertyValues = validatorFactoryBeanDefinition.getPropertyValues();
PropertyValue propertyValue = propertyValues.getPropertyValue("validationConfigLocations");
//value is expected to be a list.
List existingValidationConfigLocations = (List) propertyValue.getValue();
existingValidationConfigLocations.addAll(validationConfigLocations);
}
}
/**
* Set the name of the validator factory bean. This defaults to "validatorFactory"
*
* @param validatorFactoryBeanName The validator factory bean name.
*/
public void setValidatorFactoryBeanName(String validatorFactoryBeanName) {
this.validatorFactoryBeanName = validatorFactoryBeanName;
}
/**
* The list of validation config locations to be added to the validator factory.
*
* @param validationConfigLocations The list of additional validation configuration locations.
*/
public void setValidationConfigLocations(List validationConfigLocations) {
this.validationConfigLocations = validationConfigLocations;
}
}
|
[
"tkmushroomer@gmail.com"
] |
tkmushroomer@gmail.com
|
1c9e2288c8a520c40bd1313e62b2df629ff00a1d
|
c3cf33e7b9fe20ff3124edcfc39f08fa982b2713
|
/pocs/terraform-cdk-fun/src/main/java/imports/kubernetes/DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef.java
|
abc23ca1fefea340f7204266c57b81c18633c9b3
|
[
"Unlicense"
] |
permissive
|
diegopacheco/java-pocs
|
d9daa5674921d8b0d6607a30714c705c9cd4c065
|
2d6cc1de9ff26e4c0358659b7911d2279d4008e1
|
refs/heads/master
| 2023-08-30T18:36:34.626502
| 2023-08-29T07:34:36
| 2023-08-29T07:34:36
| 107,281,823
| 47
| 57
|
Unlicense
| 2022-03-23T07:24:08
| 2017-10-17T14:42:26
|
Java
|
UTF-8
|
Java
| false
| false
| 6,694
|
java
|
package imports.kubernetes;
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-16T06:12:12.552Z")
@software.amazon.jsii.Jsii(module = imports.kubernetes.$Module.class, fqn = "kubernetes.DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef")
@software.amazon.jsii.Jsii.Proxy(DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef.Jsii$Proxy.class)
public interface DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef extends software.amazon.jsii.JsiiSerializable {
/**
* Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names.
* <p>
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/deployment.html#name Deployment#name}
*/
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* Specify whether the ConfigMap must be defined.
* <p>
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/deployment.html#optional Deployment#optional}
*/
default @org.jetbrains.annotations.Nullable java.lang.Boolean getOptional() {
return null;
}
/**
* @return a {@link Builder} of {@link DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef}
*/
public static final class Builder implements software.amazon.jsii.Builder<DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef> {
private java.lang.String name;
private java.lang.Boolean optional;
/**
* Sets the value of {@link DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef#getName}
* @param name Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names. This parameter is required.
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/deployment.html#name Deployment#name}
* @return {@code this}
*/
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef#getOptional}
* @param optional Specify whether the ConfigMap must be defined.
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/deployment.html#optional Deployment#optional}
* @return {@code this}
*/
public Builder optional(java.lang.Boolean optional) {
this.optional = optional;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef}
* @throws NullPointerException if any required attribute was not provided
*/
@Override
public DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef build() {
return new Jsii$Proxy(name, optional);
}
}
/**
* An implementation for {@link DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef}
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef {
private final java.lang.String name;
private final java.lang.Boolean optional;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.optional = software.amazon.jsii.Kernel.get(this, "optional", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.String name, final java.lang.Boolean optional) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.name = java.util.Objects.requireNonNull(name, "name is required");
this.optional = optional;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.Boolean getOptional() {
return this.optional;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("name", om.valueToTree(this.getName()));
if (this.getOptional() != null) {
data.set("optional", om.valueToTree(this.getOptional()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("kubernetes.DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef.Jsii$Proxy that = (DeploymentSpecTemplateSpecContainerEnvFromConfigMapRef.Jsii$Proxy) o;
if (!name.equals(that.name)) return false;
return this.optional != null ? this.optional.equals(that.optional) : that.optional == null;
}
@Override
public final int hashCode() {
int result = this.name.hashCode();
result = 31 * result + (this.optional != null ? this.optional.hashCode() : 0);
return result;
}
}
}
|
[
"diego.pacheco.it@gmail.com"
] |
diego.pacheco.it@gmail.com
|
7cacfd75993ca8706a6ae759e391f4df1f08f4fa
|
5d220b8cbe0bcab98414349ac79b449ec2a5bdcf
|
/src/com/ufgov/zc/server/sf/dao/ibatis/SfEntrustManageMapperImp.java
|
71b2ece5f5c3b97fb4acc59f220f9cbdd214acd4
|
[] |
no_license
|
jielen/puer
|
fd18bdeeb0d48c8848dc2ab59629f9bbc7a5633e
|
0f56365e7bb8364f3d1b4daca0591d0322f7c1aa
|
refs/heads/master
| 2020-04-06T03:41:08.173645
| 2018-04-15T01:31:56
| 2018-04-15T01:31:56
| 63,419,454
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,922
|
java
|
package com.ufgov.zc.server.sf.dao.ibatis;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.ufgov.zc.common.sf.model.SfEntrustManage;
import com.ufgov.zc.common.system.constants.NumLimConstants;
import com.ufgov.zc.common.system.dto.ElementConditionDto;
import com.ufgov.zc.server.sf.dao.SfEntrustManageMapper;
import com.ufgov.zc.server.system.util.NumLimUtil;
public class SfEntrustManageMapperImp extends SqlMapClientDaoSupport implements SfEntrustManageMapper {
public int deleteByPrimaryKey(BigDecimal id) {
// TCJLODO Auto-generated method stub
return getSqlMapClientTemplate().delete("com.ufgov.zc.server.sf.dao.SfEntrustManageMapper.deleteByPrimaryKey", id);
}
public int insert(SfEntrustManage record) {
// TCJLODO Auto-generated method stub
getSqlMapClientTemplate().insert("com.ufgov.zc.server.sf.dao.SfEntrustManageMapper.insert", record);
return 1;
}
public SfEntrustManage selectByPrimaryKey(BigDecimal id) {
// TCJLODO Auto-generated method stub
return (SfEntrustManage) getSqlMapClientTemplate().queryForObject("com.ufgov.zc.server.sf.dao.SfEntrustManageMapper.selectByPrimaryKey", id);
}
public int updateByPrimaryKey(SfEntrustManage record) {
// TCJLODO Auto-generated method stub
return getSqlMapClientTemplate().update("com.ufgov.zc.server.sf.dao.SfEntrustManageMapper.updateByPrimaryKey", record);
}
public List getMainDataLst(ElementConditionDto elementConditionDto) {
// TCJLODO Auto-generated method stub
elementConditionDto.setNumLimitStr(NumLimUtil.getInstance().getNumLimCondByCoType(elementConditionDto.getWfcompoId(), NumLimConstants.FWATCH));
return getSqlMapClientTemplate().queryForList("com.ufgov.zc.server.sf.dao.SfEntrustManageMapper.selectMainDataLst", elementConditionDto);
}
}
|
[
"jielenzghsy1@163.com"
] |
jielenzghsy1@163.com
|
76f9a7fc8e97c487a1ff251a993abe00b79ca086
|
431c1cc9b9a7075eb28838196ad3aa1f06242217
|
/modules/qa-tests/src/test/java/com/academy/automationpractice/ddt/tests/AutoLoginTests.java
|
557cbb0e379db834a473b9e9f06aa0d676bb41b4
|
[] |
no_license
|
Oleg-Afanasiev/qa-ja
|
30e1c6cecdbe87fdd7a7dfc5cded0c396009972f
|
ce2a285dd298f026d6cd82fa7f60102d27602c7f
|
refs/heads/master
| 2020-08-07T22:14:57.772869
| 2019-09-23T08:06:40
| 2019-09-23T08:06:40
| 213,601,969
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 821
|
java
|
package com.academy.automationpractice.ddt.tests;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;
public class AutoLoginTests extends BaseTest {
@Ignore
@Test
public void loginAndCloseBrowser() {
manager.goTo().home();
manager.session().login();
}
@Test(dataProvider = "autoLoginProvider")
public void testAutoLogin(String userNameExpected) {
manager.goTo().home();
// manager.session().login();
manager.verify().userIsLoggedIn(userNameExpected);
// manager.session().logout();
}
// TODO move user
@DataProvider(name="autoLoginProvider")
private Object[][] authProvider() {
return new Object[][]{
{"OLEG AFANASIEV"}
};
}
}
|
[
"oleg.kh81@gmail.com"
] |
oleg.kh81@gmail.com
|
9bbe3ad1ce2ee7f3430b7da6e0a0c03b13c55d4d
|
52aa753885647b44c60abf691bfb0116be6fca4e
|
/src/edu/cmu/cs/stage3/alice/core/light/DirectionalLight.java
|
852f4239ec34f78a7caea6ba73f553435f2de0f0
|
[
"MIT"
] |
permissive
|
ai-ku/langvis
|
10083029599dac0a0098cdc4cbf77f3e1bdf6d43
|
4ccd37107a3dea4b7b12696270a25df9c17d579d
|
refs/heads/master
| 2020-12-24T15:14:43.644569
| 2014-03-26T13:43:25
| 2014-03-26T14:09:03
| 15,770,922
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,455
|
java
|
/*
* Copyright (c) 1999-2003, Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. Products derived from the software may not be called "Alice",
* nor may "Alice" appear in their name, without prior written
* permission of Carnegie Mellon University.
*
* 4. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes software developed by Carnegie Mellon University"
*/
package edu.cmu.cs.stage3.alice.core.light;
public class DirectionalLight extends edu.cmu.cs.stage3.alice.core.Light {
public DirectionalLight() {
super( new edu.cmu.cs.stage3.alice.scenegraph.DirectionalLight() );
}
public edu.cmu.cs.stage3.alice.scenegraph.DirectionalLight getSceneGraphDirectionalLight() {
return (edu.cmu.cs.stage3.alice.scenegraph.DirectionalLight)getSceneGraphLight();
}
}
|
[
"emreunal99@gmail.com"
] |
emreunal99@gmail.com
|
af7061c94756eebbcce6312df45a3735293eb6e9
|
e2c18b7cbd1f24e1f3522cd125449b8ddd40a8e3
|
/app/src/main/java/com/me/iwf/photopicker/utils/AndroidLifecycleUtils.java
|
683e6430d5e2b87cd18735052efdcb568815f092
|
[] |
no_license
|
yangyang2018/app
|
40b85f180cfc74a5c40a5071dfce917a89ea78a5
|
d8d68b09689e01f457bf05abfd6a6ddd75ca0043
|
refs/heads/master
| 2021-01-17T13:35:23.633881
| 2017-06-26T07:03:13
| 2017-06-26T07:03:13
| 95,415,003
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,164
|
java
|
package com.me.iwf.photopicker.utils;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
public class AndroidLifecycleUtils {
public static boolean canLoadImage(Fragment fragment) {
if (fragment == null) {
return true;
}
FragmentActivity activity = fragment.getActivity();
return canLoadImage(activity);
}
public static boolean canLoadImage(Context context) {
if (context == null) {
return true;
}
if (!(context instanceof Activity)) {
return true;
}
Activity activity = (Activity) context;
return canLoadImage(activity);
}
public static boolean canLoadImage(Activity activity) {
if (activity == null) {
return true;
}
boolean destroyed = Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 &&
activity.isDestroyed();
if (destroyed || activity.isFinishing()) {
return false;
}
return true;
}
}
|
[
"shayu2017@163.com"
] |
shayu2017@163.com
|
03008801c40b4d95ddd353414df918857126023c
|
60fd481d47bdcc768ebae0bd265fa9a676183f17
|
/xinyu-task/src/main/java/com/xinyu/task/controller/CheckOutController.java
|
7c328d294bd7c2e7bab04604f45c3e09c77e7422
|
[] |
no_license
|
zilonglym/xinyu
|
3257d2d10187205c4f91efa4fed8e992a9419694
|
8828638b77e3e0f6da099f050476cf634ef84c7b
|
refs/heads/master
| 2020-03-09T16:49:34.758186
| 2018-03-27T06:52:46
| 2018-03-27T06:52:46
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 265
|
java
|
package com.xinyu.task.controller;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
/**
* 验货日志定时保存
* @author yangmin
*
*/
@Lazy(value=false)
@Controller
public class CheckOutController {
}
|
[
"36021388+zhongcangVip@users.noreply.github.com"
] |
36021388+zhongcangVip@users.noreply.github.com
|
0964788b4f3a1c7eb7f301e0384e0b0047649680
|
8727b1cbb8ca63d30340e8482277307267635d81
|
/PolarServer/src/com/game/map/handler/ReqStopBlockHandler.java
|
5b566abecccbaea39d0aa57b844f610a9daff9e0
|
[] |
no_license
|
taohyson/Polar
|
50026903ded017586eac21a7905b0f1c6b160032
|
b0617f973fd3866bed62da14f63309eee56f6007
|
refs/heads/master
| 2021-05-08T12:22:18.884688
| 2015-12-11T01:44:18
| 2015-12-11T01:44:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 470
|
java
|
package com.game.map.handler;
import org.apache.log4j.Logger;
import com.game.command.Handler;
import com.game.manager.ManagerPool;
import com.game.player.structs.Player;
public class ReqStopBlockHandler extends Handler{
Logger log = Logger.getLogger(ReqStopBlockHandler.class);
public void action(){
try{
//停止格挡处理
ManagerPool.mapManager.playerStopBlock((Player)this.getParameter());
}catch(ClassCastException e){
log.error(e,e);
}
}
}
|
[
"zhuyuanbiao@ZHUYUANBIAO.rd.com"
] |
zhuyuanbiao@ZHUYUANBIAO.rd.com
|
4d2fcd1ac321bddd7fa5193a8ea0da8ed7ad3ec3
|
26061de6121eecf5078a27d33235bc4136874cd2
|
/src/main/java/com/ft/web/rest/AuthInfoResource.java
|
178dd1fd81bfbfd46755a6efb04fcfffeeff8432
|
[] |
no_license
|
dinhtrung/jh6-keycloak-gateway
|
8516aeba4b90287a0cee061904be111088aa26b6
|
ae72889877a8f147b37b4b181e708bf1a050a4c4
|
refs/heads/master
| 2022-07-30T00:01:51.334840
| 2020-02-13T02:58:16
| 2020-02-13T02:58:16
| 236,686,611
| 0
| 0
| null | 2022-07-07T16:05:45
| 2020-01-28T08:12:37
|
Java
|
UTF-8
|
Java
| false
| false
| 1,319
|
java
|
package com.ft.web.rest;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Resource to return information about OIDC properties
*/
@RestController
@RequestMapping("/api")
public class AuthInfoResource {
@Value("${spring.security.oauth2.client.provider.oidc.issuer-uri:}")
private String issuer;
@Value("${spring.security.oauth2.client.registration.oidc.client-id:}")
private String clientId;
@GetMapping("/auth-info")
public AuthInfoVM getAuthInfo() {
return new AuthInfoVM(issuer, clientId);
}
class AuthInfoVM {
private String issuer;
private String clientId;
AuthInfoVM(String issuer, String clientId) {
this.issuer = issuer;
this.clientId = clientId;
}
public String getIssuer() {
return this.issuer;
}
public void setIssuer(String issuer) {
this.issuer = issuer;
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
2d15ee431fa11a8a79c667048e0249377df5e29e
|
b84d0de1ea3ca9608d54a43b78a6dd952ca555b4
|
/app/src/main/java/com/example/ggxiaozhi/store/the_basket/api/CategoryApi.java
|
8fb46d2222c3c4b3ede691dd07bc211f1b8939b5
|
[
"Apache-2.0"
] |
permissive
|
duboAndroid/Bailan
|
64dc785cf792e4372944122e41162e05ef10e6d6
|
cebc496edb8ded8f7edcc5cb6d9ef2dac028b8a6
|
refs/heads/master
| 2021-05-06T13:12:46.545324
| 2017-12-06T02:01:11
| 2017-12-06T02:01:11
| 113,255,699
| 37
| 11
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,552
|
java
|
package com.example.ggxiaozhi.store.the_basket.api;
import com.example.ggxiaozhi.store.the_basket.bean.CategoryBean;
import com.example.ggxiaozhi.store.the_basket.utils.JsonParseUtils;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;
import com.zhxu.library.api.BaseApi;
import com.zhxu.library.listener.HttpOnNextListener;
import java.io.IOException;
import okhttp3.ResponseBody;
import retrofit2.Retrofit;
import rx.Observable;
/**
* 工程名 : BaiLan
* 包名 : com.example.ggxiaozhi.store.the_basket.api
* 作者名 : 志先生_
* 日期 : 2017/9/1
* 时间 : 19:17
* 功能 :推荐页面网络请求的初始化设置和返回数据的处理
*/
public class CategoryApi extends BaseApi<CategoryBean> {
public CategoryApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
// setCache(true);//设置缓存
setMothed("appstore/category");//存入到数据库,传入的值要与接口参数一致
}
@Override
public Observable getObservable(Retrofit retrofit) {
HttpGetService httpGetService = retrofit.create(HttpGetService.class);
return httpGetService.getCategoryData();
}
@Override
public CategoryBean call(ResponseBody responseBody) {
String result="";
try {
result=responseBody.string();
} catch (IOException e) {
e.printStackTrace();
}
return JsonParseUtils.parseCategoryBean(result);
}
}
|
[
"277627117@qq.com"
] |
277627117@qq.com
|
a43a280196b44a29b0d79aa509cbaa5f40516639
|
be28a7b64a4030f74233a79ebeba310e23fe2c3a
|
/generated-tests/rmosa/tests/s1014/107_weka/evosuite-tests/weka/filters/unsupervised/attribute/Discretize_ESTest_scaffolding.java
|
faa5782d49489b9fe1e5e13c953ca8392b76147a
|
[
"MIT"
] |
permissive
|
blindsubmissions/icse19replication
|
664e670f9cfcf9273d4b5eb332562a083e179a5f
|
42a7c172efa86d7d01f7e74b58612cc255c6eb0f
|
refs/heads/master
| 2020-03-27T06:12:34.631952
| 2018-08-25T11:19:56
| 2018-08-25T11:19:56
| 146,074,648
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,666
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Aug 23 11:47:13 GMT 2018
*/
package weka.filters.unsupervised.attribute;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class Discretize_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "weka.filters.unsupervised.attribute.Discretize";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("user.country", "US");
java.lang.System.setProperty("user.dir", "/home/ubuntu/evosuite_readability_gen/projects/107_weka");
java.lang.System.setProperty("user.home", "/home/ubuntu");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "ubuntu");
java.lang.System.setProperty("user.timezone", "Etc/UTC");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(Discretize_ESTest_scaffolding.class.getClassLoader() ,
"weka.core.Environment",
"org.pentaho.packageManagement.PackageConstraint",
"org.pentaho.packageManagement.Package",
"weka.core.OptionHandler",
"weka.core.WekaException",
"weka.core.Range",
"weka.filters.UnsupervisedFilter",
"weka.core.logging.Logger$Level",
"weka.core.Capabilities$Capability",
"weka.core.SparseInstance",
"weka.core.DenseInstance",
"org.pentaho.packageManagement.PackageManager",
"org.pentaho.packageManagement.DefaultPackageManager",
"weka.core.WekaPackageManager",
"org.bounce.net.DefaultAuthenticator",
"weka.core.Option",
"weka.filters.unsupervised.attribute.PotentialClassIgnorer",
"weka.core.RelationalLocator",
"weka.filters.Sourcable",
"weka.core.Utils",
"weka.core.CustomDisplayStringProvider",
"weka.core.Attribute",
"weka.core.NoSupportForMissingValuesException",
"weka.classifiers.UpdateableClassifier",
"weka.core.FastVector",
"weka.core.Copyable",
"weka.core.Capabilities",
"weka.core.AttributeLocator",
"weka.core.BinarySparseInstance",
"weka.core.UnassignedDatasetException",
"weka.clusterers.UpdateableClusterer",
"weka.core.RevisionUtils",
"org.pentaho.packageManagement.PackageManager$1",
"weka.core.Instance",
"weka.core.ProtectedProperties",
"weka.core.StringLocator",
"weka.core.AttributeStats",
"weka.core.WeightedInstancesHandler",
"weka.core.CapabilitiesHandler",
"weka.filters.unsupervised.attribute.Discretize",
"weka.core.AbstractInstance",
"weka.core.Instances",
"org.pentaho.packageManagement.DefaultPackage",
"weka.core.UnassignedClassException",
"weka.core.Queue",
"weka.core.Version",
"weka.core.UnsupportedAttributeTypeException",
"weka.core.RevisionHandler",
"weka.filters.Filter"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(Discretize_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"weka.filters.Filter",
"weka.filters.unsupervised.attribute.PotentialClassIgnorer",
"weka.filters.unsupervised.attribute.Discretize",
"weka.core.Capabilities$Capability",
"weka.core.Range",
"weka.core.Utils",
"weka.core.Option",
"weka.core.SerializedObject",
"weka.core.RevisionUtils",
"weka.core.Queue",
"weka.core.converters.ConverterUtils$DataSource",
"weka.core.converters.AbstractLoader",
"weka.core.converters.AbstractFileLoader",
"weka.core.converters.ArffLoader",
"weka.core.converters.ArffLoader$ArffReader",
"weka.filters.SimpleFilter",
"weka.filters.SimpleStreamFilter",
"weka.filters.MultiFilter",
"weka.filters.AllFilter",
"weka.core.Capabilities",
"org.pentaho.packageManagement.PackageManager",
"org.pentaho.packageManagement.DefaultPackageManager",
"weka.core.Version",
"weka.core.Environment",
"weka.core.WekaPackageManager",
"weka.core.AbstractInstance",
"weka.core.SparseInstance",
"weka.core.BinarySparseInstance",
"weka.core.UnassignedDatasetException",
"weka.core.Attribute",
"weka.core.ProtectedProperties",
"weka.core.Instances",
"weka.core.DenseInstance",
"weka.core.WekaException",
"weka.core.FastVector",
"weka.core.WekaEnumeration",
"weka.core.Attribute$1",
"weka.core.AttributeStats",
"weka.core.AttributeLocator",
"weka.core.StringLocator",
"weka.core.RelationalLocator",
"weka.core.UnassignedClassException"
);
}
}
|
[
"my.submission.blind@gmail.com"
] |
my.submission.blind@gmail.com
|
b7d8098cef188a07a1fd80a8681b39af314cd7f5
|
d689a470a22e8b7d33aeb3f0d3883d83597366f4
|
/src/main/java/com/aspl/org/report/service/WorkerHouseRentReportService.java
|
c8aaea677367dc51f9af85f07c689b29b9ddd3bd
|
[] |
no_license
|
sougata143/HrModuleApplication
|
0233aff76aa6c91e7ca2cbdfde2c1f27502088b6
|
7fe6b59e4e90d7c107a3bc400e07ce6b21cddea4
|
refs/heads/master
| 2023-08-16T21:19:12.246130
| 2019-11-07T12:04:53
| 2019-11-07T12:04:53
| 220,227,566
| 0
| 0
| null | 2023-07-22T20:55:56
| 2019-11-07T12:04:24
|
Java
|
UTF-8
|
Java
| false
| false
| 298
|
java
|
package com.aspl.org.report.service;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
public interface WorkerHouseRentReportService {
Map<String, Object> getWorkerHouseRentPayslipReport(HttpServletRequest request, String Foremployee, String fromDate,
String toDate);
}
|
[
"sougata.rintu@gmail.com"
] |
sougata.rintu@gmail.com
|
b10bb600e945762f7d3f38ea795f989397272b0e
|
d8ebf71c26c5e1e607f31ddbd3ba887e99a06f39
|
/src/main/java/org/hibernate/jsr303/tck/tests/xmlconfiguration/constraintdeclaration/fieldlevel/User.java
|
9ac6c568eff59cb72d9443a8142f43a413c477f7
|
[
"Apache-2.0"
] |
permissive
|
jetune/beanvalidation-tck
|
f0ebe622775803b33e40c472f8ce7cb860e93c39
|
60a2e6c141165c751f325d362899f7671f169eb8
|
refs/heads/master
| 2021-01-17T21:57:22.539648
| 2011-07-26T15:01:56
| 2011-07-26T15:01:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,809
|
java
|
// $Id$
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* 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.hibernate.jsr303.tck.tests.xmlconfiguration.constraintdeclaration.fieldlevel;
import javax.validation.constraints.NotNull;
import javax.validation.Valid;
/**
* @author Hardy Ferentschik
*/
public class User {
@NotNull
private String firstname;
@NotNull
private String lastname;
private CreditCard firstCreditCard;
@Valid
private CreditCard secondCreditCard;
public String getFirstname() {
return firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
public String getLastname() {
return lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public CreditCard getFirstCreditCard() {
return firstCreditCard;
}
public void setFirstCreditCard(CreditCard firstCreditCard) {
this.firstCreditCard = firstCreditCard;
}
public CreditCard getSecondCreditCard() {
return secondCreditCard;
}
public void setSecondCreditCard(CreditCard secondCreditCard) {
this.secondCreditCard = secondCreditCard;
}
}
|
[
"hibernate@ferentschik.de"
] |
hibernate@ferentschik.de
|
e40511fd0613fccc2de456a66843e82fb0f8ccbc
|
9702a51962cda6e1922d671dbec8acf21d9e84ec
|
/src/main/com/topcoder/common/web/data/SearchResult.java
|
962f0070c761e224265c6c71597e855938a38162
|
[] |
no_license
|
topcoder-platform/tc-website
|
ccf111d95a4d7e033d3cf2f6dcf19364babb8a08
|
15ab92adf0e60afb1777b3d548b5ba3c3f6c12f7
|
refs/heads/dev
| 2023-08-23T13:41:21.308584
| 2023-04-04T01:28:38
| 2023-04-04T01:28:38
| 83,655,110
| 3
| 19
| null | 2023-04-04T01:32:16
| 2017-03-02T08:43:01
|
Java
|
UTF-8
|
Java
| false
| false
| 2,433
|
java
|
package com.topcoder.common.web.data;
import com.topcoder.shared.docGen.xml.RecordTag;
import com.topcoder.shared.docGen.xml.TagRenderer;
import com.topcoder.shared.docGen.xml.ValueTag;
import java.io.Serializable;
import java.text.DateFormat;
public class SearchResult implements Serializable, TagRenderer {
private int coderId;
private String handle;
private String state;
private int rating;
private int numRatings;
private java.sql.Date lastCompDate;
public SearchResult() {
coderId = 0;
handle = "";
state = "";
rating = 0;
numRatings = 0;
lastCompDate = null;
}
public void setCoderId(int coderId) {
this.coderId = coderId;
}
public void setHandle(String handle) {
this.handle = handle;
}
public void setState(String state) {
this.state = state;
}
public void setRating(int rating) {
this.rating = rating;
}
public void setNumRatings(int numRatings) {
this.numRatings = numRatings;
}
public void setLastCompDate(java.sql.Date lastCompDate) {
this.lastCompDate = lastCompDate;
}
// Get
public int getCoderId() {
return coderId;
}
public String getHandle() {
return handle;
}
public String getState() {
return state;
}
public int getRating() {
return rating;
}
public int getNumRatings() {
return numRatings;
}
public java.sql.Date getLastCompDate() {
return lastCompDate;
}
public RecordTag getXML() throws Exception {
RecordTag result = null;
try {
result = new RecordTag("SearchResult");
result.addTag(new ValueTag("CoderId", coderId));
result.addTag(new ValueTag("Handle", handle));
result.addTag(new ValueTag("State", state));
result.addTag(new ValueTag("Rating", rating));
result.addTag(new ValueTag("NumRatings", numRatings));
if (lastCompDate == null)
result.addTag(new ValueTag("LastCompDate", ""));
else
result.addTag(new ValueTag("LastCompDate", DateFormat.getDateInstance(DateFormat.LONG).format(lastCompDate)));
} catch (Exception e) {
throw new Exception("common.web.data.SearchResult getXML ERROR: " + e);
}
return result;
}
}
|
[
"amorehead@cb5b18d2-80dd-4a81-9b1c-945e1ee644f9"
] |
amorehead@cb5b18d2-80dd-4a81-9b1c-945e1ee644f9
|
620c2013df37a1ae696a4fef6cec21056e458311
|
80576460f983a1ce5e11348e144257d6a2e12a97
|
/Comum/ContaCapitalComumEJB/src/test/java/br/com/sicoob/cca/comum/util/DateTimeSerializerTest.java
|
21157bf851ea52ed53e3476d9fbb3a5aa68663cd
|
[] |
no_license
|
pabllo007/cca
|
8d3812e403deccdca5ba90745b188e10699ff44c
|
99c24157ff08459ea3e7c2415ff75bcb6a0102e4
|
refs/heads/master
| 2022-12-01T05:20:26.998529
| 2019-10-27T21:33:11
| 2019-10-27T21:33:11
| 217,919,304
| 0
| 0
| null | 2022-11-24T06:24:00
| 2019-10-27T21:31:25
|
Java
|
UTF-8
|
Java
| false
| false
| 353
|
java
|
package br.com.sicoob.cca.comum.util;
import org.junit.Assert;
import org.junit.Test;
import br.com.sicoob.tipos.DateTime;
public class DateTimeSerializerTest {
private DateTimeSerializer serializer = new DateTimeSerializer();
@Test
public void serializeTest() {
Assert.assertNotNull(serializer.serialize(new DateTime(), null, null));
}
}
|
[
"="
] |
=
|
3fb2467600707f9df500b34be851603681081489
|
12a99ab3fe76e5c7c05609c0e76d1855bd051bbb
|
/src/main/java/com/alipay/api/domain/MultiStagePayLineInfo.java
|
ffac265ae3c46df5f199504d122bf0957940987d
|
[
"Apache-2.0"
] |
permissive
|
WindLee05-17/alipay-sdk-java-all
|
ce2415cfab2416d2e0ae67c625b6a000231a8cfc
|
19ccb203268316b346ead9c36ff8aa5f1eac6c77
|
refs/heads/master
| 2022-11-30T18:42:42.077288
| 2020-08-17T05:57:47
| 2020-08-17T05:57:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 977
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 每期支付信息对象
*
* @author auto create
* @since 1.0, 2019-11-26 18:03:34
*/
public class MultiStagePayLineInfo extends AlipayObject {
private static final long serialVersionUID = 8559881639924928911L;
/**
* 多次支付中的1次支付金额
*/
@ApiField("payment_amount")
private String paymentAmount;
/**
* 描述分次支付中某一次支付的信息,这个字段标识”次“的数字标识,从0开始;
*/
@ApiField("payment_idx")
private Long paymentIdx;
public String getPaymentAmount() {
return this.paymentAmount;
}
public void setPaymentAmount(String paymentAmount) {
this.paymentAmount = paymentAmount;
}
public Long getPaymentIdx() {
return this.paymentIdx;
}
public void setPaymentIdx(Long paymentIdx) {
this.paymentIdx = paymentIdx;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
66a575098bbe8717146ff87d2be80bf1deb80c1a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/26/26_e507f76802c001e28faa9cd3c215a7d924dd3a7e/ActorTest/26_e507f76802c001e28faa9cd3c215a7d924dd3a7e_ActorTest_s.java
|
d8a981a79341a7047b45a47bccf85d84275620b8
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,905
|
java
|
package cx.ath.mancel01.utils;
import cx.ath.mancel01.utils.F.Action;
import cx.ath.mancel01.utils.Actors.Actor;
import org.junit.Ignore;
import org.junit.Test;
import java.util.Map;
import java.util.HashMap;
import java.util.concurrent.CountDownLatch;
import static cx.ath.mancel01.utils.M.*;
public class ActorTest {
private static CountDownLatch down = new CountDownLatch(20);
private static CountDownLatch userlatch = new CountDownLatch(12);
@Test @Ignore
public void testChatRoom() throws Exception {
User user1 = new User("maurice");
User user2 = new User("john");
User user3 = new User("pete");
ChatRoom room = new ChatRoom();
room.startActor();
room.send(new Suscribe(user1));
room.send(new Suscribe(user2));
room.send(new Suscribe(user3));
Thread.sleep(200);
user1.send("Hello guys!", room);
Thread.sleep(200);
user2.send("Hello too!", room);
Thread.sleep(200);
user3.send("Hello user1!", room);
Thread.sleep(200);
room.send(new Unsuscribe(user1));
room.send(new Unsuscribe(user2));
room.send(new Unsuscribe(user3));
userlatch.await();
room.stopSession();
room.stopActor();
Actors.shutdownAll();
}
@Test @Ignore
public void testPingPong() throws Exception {
Pong pong = new Pong();
Ping ping = new Ping(pong);
pong.startActor();
ping.startActor();
down.await();
pong.stopActor();
ping.stopActor();
Actors.shutdownAll();
}
@Test
public void testDummy() throws Exception {}
public static class Ping extends Actor {
private final Actor pongActor;
public Ping(Actor pongActor) {
this.pongActor = pongActor;
}
@Override
public void act() {
pongActor.send("ping", this);
System.out.println("PING");
loop(new Action<String>() {
@Override
public void apply(String msg) {
for (String value : with(caseStartsWith("pong")).match(msg)) {
System.out.println("PING");
if (down.getCount() == 0) {
pongActor.send("stop");
stopActor();
System.out.println("STOP PING");
} else {
pongActor.send("ping", me());
}
}
}
});
}
}
public static class Pong extends Actor {
@Override
public void act() {
loop(new Action<String>() {
@Override
public void apply(String msg) {
for (String value : with(caseStartsWith("ping")).match(msg)) {
System.out.println("PONG");
down.countDown();
if (sender.isDefined()) {
sender.get().send("pong");
}
}
for (String value : with(caseStartsWith("stop")).match(msg)) {
System.out.println("STOP PONG");
stopActor();
}
}
});
}
}
public static class ChatRoom extends Actor {
private Map<User, Actor> session = new HashMap<User, Actor>();
@Override
public void act() {
loop( new Action<Object>() {
@Override
public void apply(Object msg) {
for (Suscribe value : with(caseClassOf(Suscribe.class)).match(msg)) {
System.out.println(value.user.name + " suscribed ....");
userlatch.countDown();
session.put(value.getUser(), new UserActor(value.getUser()).startActor());
}
for (Unsuscribe value : with(caseClassOf(Unsuscribe.class)).match(msg)) {
System.out.println(value.user.name + " unsuscribed ....");
userlatch.countDown();
session.get(value.getUser()).stopActor();
session.remove(value.getUser());
}
for (Post value : with(caseClassOf(Post.class)).match(msg)) {
for (User user : session.keySet()) {
if (!user.equals(value.user)) {
session.get(user).send(value);
}
}
}
}
});
}
public void stopSession() {
for (Actor actor : session.values()) {
actor.stopActor();
}
}
}
public static class UserActor extends Actor {
private final User user;
public UserActor(User user) {
this.user = user;
}
@Override
public void act() {
loop(new Action<Post>() {
@Override
public void apply(Post post) {
System.out.println(user.name + " receive " + post.msg);
userlatch.countDown();
}
});
}
}
public static class Suscribe {
private final User user;
public Suscribe(User user) {
this.user = user;
}
public User getUser() {
return user;
}
}
public static class Unsuscribe {
private final User user;
public Unsuscribe(User user) {
this.user = user;
}
public User getUser() {
return user;
}
}
public static class Post {
private final String msg;
private final User user;
public Post(String msg, User user) {
this.msg = msg;
this.user = user;
}
public String getMsg() {
return msg;
}
public User getUser() {
return user;
}
}
public static class User {
private final String name;
public User(String name) {
this.name = name;
}
public void send(String msg, ChatRoom room) {
System.out.println(name + " sent " + msg);
room.send(new Post(msg, this));
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d0461666b6675b7e22d92acd78e16fa5f2f3b051
|
a7454682c6413d11647e0eacc63704b5c3bc8ee4
|
/SAVOIR_Persistence/src/ca/gc/nrc/iit/savoir/dao/impl/AuthorizationDAO.java
|
cb9d1ede5edd3b6a7f15f5b5fe1fc7ad490be9fb
|
[] |
no_license
|
savoir2013/savoir
|
ffec9b38d2cd41cac689c776bb5c742d0d1dc65a
|
daa80b13475729ba1d490f8dd93d85553bca09aa
|
refs/heads/master
| 2021-01-22T09:47:18.370871
| 2013-01-29T21:26:46
| 2013-01-29T21:26:46
| 7,899,749
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,874
|
java
|
// Licensed under Apache 2.0
// Copyright 2011, National Research Council of Canada
// Property of Lakehead University
package ca.gc.nrc.iit.savoir.dao.impl;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import ca.gc.iit.nrc.savoir.domain.Authorization;
import ca.gc.iit.nrc.savoir.domain.Role;
import ca.gc.nrc.iit.savoir.dao.IRoleDAO;
public class AuthorizationDAO {
/**
* Maps subtypes of {@link Authorization}, providing
*
* @param <A> The {@code Authorization} subtype to map
*/
public static class AuthorizationRowMapper<A extends Authorization>
implements RowMapper {
/** DAO to use for role lookup */
protected IRoleDAO roleDAO;
/** class that this row mapper returns */
protected Class<A> clazz;
/**
* Create a row mapper that returns objects of the specified class
*
* @param clazz The class to return
*/
public AuthorizationRowMapper(IRoleDAO roleDAO, Class<A> clazz) {
this.roleDAO = roleDAO;
this.clazz = clazz;
}
@Override
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
A a;
try {
a = clazz.newInstance();
} catch (InstantiationException e) {
return null;
} catch (IllegalAccessException e) {
return null;
}
a.setAuthorizedOn(rs.getInt(1));
a.setAuthorizedTo(rs.getInt(2));
a.setRole(roleDAO.getRoleById(rs.getInt(3)));
addInfo(rs, rowNum, a);
return a;
}
/**
* Add extra information to an {@code Authorization} subclass. It is
* preferred that you use string-based column lookups, and it should be
* noted that column 1 must be the {@code authorizedOn} ID, column 2
* the {@code authorizedTo} ID, and column 3 the {@code role} ID, and
* that all these data points will be filled in by this class. The
* default implementation of {@code addInfo()} does nothing.
*
* @param rs The result set returned
* @param rowNum The row number
* @param authorization The authorization object, with its
* super-class fields already filled in.
*/
protected void addInfo(ResultSet rs, int rowNum, A authorization)
throws SQLException {
//do nothing
}
}
/**
* Binds an integer "id" to a Role "role"
*/
public static class IntRole {
public int id;
public Role role;
}
/**
* Maps two columns, an integer (column 1), and a role ID (column 2) to an IntRole object
*/
public static class IntRoleRowMapper implements RowMapper {
private IRoleDAO roleDAO;
public IntRoleRowMapper(IRoleDAO roleDAO) {
this.roleDAO = roleDAO;
}
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
IntRole ir = new IntRole();
ir.id = rs.getInt(1); //this returns 0 for SQL NULL
ir.role = roleDAO.getRoleById(rs.getInt(2));
return ir;
}
}
}
|
[
"Justin.Hickey@nrc.gc.ca"
] |
Justin.Hickey@nrc.gc.ca
|
24d12ba805c376c8c8be34c4381c1ec644139470
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/alikafka-20190916/src/main/java/com/aliyun/alikafka20190916/models/GetTopicStatusResponseBody.java
|
d4567abac42388372b076b2d7aa9c9028d7909df
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 6,353
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class GetTopicStatusResponseBody extends TeaModel {
@NameInMap("Code")
public Integer code;
@NameInMap("Message")
public String message;
@NameInMap("RequestId")
public String requestId;
@NameInMap("Success")
public Boolean success;
@NameInMap("TopicStatus")
public GetTopicStatusResponseBodyTopicStatus topicStatus;
public static GetTopicStatusResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetTopicStatusResponseBody self = new GetTopicStatusResponseBody();
return TeaModel.build(map, self);
}
public GetTopicStatusResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public GetTopicStatusResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetTopicStatusResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public GetTopicStatusResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public GetTopicStatusResponseBody setTopicStatus(GetTopicStatusResponseBodyTopicStatus topicStatus) {
this.topicStatus = topicStatus;
return this;
}
public GetTopicStatusResponseBodyTopicStatus getTopicStatus() {
return this.topicStatus;
}
public static class GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable extends TeaModel {
@NameInMap("LastUpdateTimestamp")
public Long lastUpdateTimestamp;
@NameInMap("MaxOffset")
public Long maxOffset;
@NameInMap("MinOffset")
public Long minOffset;
@NameInMap("Partition")
public Integer partition;
@NameInMap("Topic")
public String topic;
public static GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable build(java.util.Map<String, ?> map) throws Exception {
GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable self = new GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable();
return TeaModel.build(map, self);
}
public GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable setLastUpdateTimestamp(Long lastUpdateTimestamp) {
this.lastUpdateTimestamp = lastUpdateTimestamp;
return this;
}
public Long getLastUpdateTimestamp() {
return this.lastUpdateTimestamp;
}
public GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable setMaxOffset(Long maxOffset) {
this.maxOffset = maxOffset;
return this;
}
public Long getMaxOffset() {
return this.maxOffset;
}
public GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable setMinOffset(Long minOffset) {
this.minOffset = minOffset;
return this;
}
public Long getMinOffset() {
return this.minOffset;
}
public GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable setPartition(Integer partition) {
this.partition = partition;
return this;
}
public Integer getPartition() {
return this.partition;
}
public GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
}
public static class GetTopicStatusResponseBodyTopicStatusOffsetTable extends TeaModel {
@NameInMap("OffsetTable")
public java.util.List<GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable> offsetTable;
public static GetTopicStatusResponseBodyTopicStatusOffsetTable build(java.util.Map<String, ?> map) throws Exception {
GetTopicStatusResponseBodyTopicStatusOffsetTable self = new GetTopicStatusResponseBodyTopicStatusOffsetTable();
return TeaModel.build(map, self);
}
public GetTopicStatusResponseBodyTopicStatusOffsetTable setOffsetTable(java.util.List<GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable> offsetTable) {
this.offsetTable = offsetTable;
return this;
}
public java.util.List<GetTopicStatusResponseBodyTopicStatusOffsetTableOffsetTable> getOffsetTable() {
return this.offsetTable;
}
}
public static class GetTopicStatusResponseBodyTopicStatus extends TeaModel {
@NameInMap("LastTimeStamp")
public Long lastTimeStamp;
@NameInMap("OffsetTable")
public GetTopicStatusResponseBodyTopicStatusOffsetTable offsetTable;
@NameInMap("TotalCount")
public Long totalCount;
public static GetTopicStatusResponseBodyTopicStatus build(java.util.Map<String, ?> map) throws Exception {
GetTopicStatusResponseBodyTopicStatus self = new GetTopicStatusResponseBodyTopicStatus();
return TeaModel.build(map, self);
}
public GetTopicStatusResponseBodyTopicStatus setLastTimeStamp(Long lastTimeStamp) {
this.lastTimeStamp = lastTimeStamp;
return this;
}
public Long getLastTimeStamp() {
return this.lastTimeStamp;
}
public GetTopicStatusResponseBodyTopicStatus setOffsetTable(GetTopicStatusResponseBodyTopicStatusOffsetTable offsetTable) {
this.offsetTable = offsetTable;
return this;
}
public GetTopicStatusResponseBodyTopicStatusOffsetTable getOffsetTable() {
return this.offsetTable;
}
public GetTopicStatusResponseBodyTopicStatus setTotalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public Long getTotalCount() {
return this.totalCount;
}
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
75712b96e2b2230d1b67aa0e7f4c8ca0e2e920e5
|
7ae169648c4b1848401bf87d5fd86dd26bb9ac6f
|
/src/main/java/net/dev123/mblog/sina/SinaGeoAdaptor.java
|
82584bc81050583bd0b7f5f09a44249d3d54299e
|
[
"Apache-2.0"
] |
permissive
|
NeoCN/yibo-library
|
ef76ef099eac3b4458f0012d879a11661ba69ba7
|
90701c36bac5a3ac173909ebaee755ab09b035d3
|
refs/heads/master
| 2021-01-16T21:47:16.110891
| 2013-03-24T01:18:01
| 2013-03-24T01:18:01
| 8,941,478
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,242
|
java
|
package net.dev123.mblog.sina;
import net.dev123.commons.util.ParseUtil;
import net.dev123.entity.GeoLocation;
import net.dev123.entity.Location;
import net.dev123.exception.ExceptionCode;
import net.dev123.exception.LibException;
import org.json.JSONException;
import org.json.JSONObject;
/**
* @author Weiping Ye
* @version 创建时间:2011-8-19 下午1:51:09
**/
public class SinaGeoAdaptor {
public static Location createLocationFromJson(String jsonStr)
throws LibException {
Location location = null;
try {
if ("[]".equals(jsonStr) || "{}".equals(jsonStr)) {
return null;
}
JSONObject jsonObj = new JSONObject(jsonStr);
if (!jsonObj.isNull("address")) {
JSONObject jsonAddr = jsonObj.getJSONObject("address");
location = new Location();
location.setProvince(ParseUtil.getRawString("prov_name", jsonAddr));
location.setCity(ParseUtil.getRawString("city_name", jsonAddr));
location.setDistrict(ParseUtil.getRawString("district_name", jsonAddr));
if (!jsonAddr.isNull("street")) {
location.setStreet(ParseUtil.getRawString("street", jsonAddr));
}
}
} catch (JSONException e) {
throw new LibException(ExceptionCode.JSON_PARSE_ERROR, e);
}
return location;
}
}
|
[
"raise-0@163.com"
] |
raise-0@163.com
|
f19de43148b48f614e31298c2b560f626699f8b1
|
327d615dbf9e4dd902193b5cd7684dfd789a76b1
|
/base_source_from_JADX/sources/com/google/android/gms/internal/ads/zzcja.java
|
3fde97e26a224efdf9e2d9cd1b5522e89ae350ca
|
[] |
no_license
|
dnosauro/singcie
|
e53ce4c124cfb311e0ffafd55b58c840d462e96f
|
34d09c2e2b3497dd452246b76646b3571a18a100
|
refs/heads/main
| 2023-01-13T23:17:49.094499
| 2020-11-20T10:46:19
| 2020-11-20T10:46:19
| 314,513,307
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 670
|
java
|
package com.google.android.gms.internal.ads;
import java.util.concurrent.Executor;
public final class zzcja implements zzepf<zzbxy<zzva>> {
private final zzeps<Executor> zzevg;
private final zzeps<zzcjj> zzfrk;
private zzcja(zzeps<zzcjj> zzeps, zzeps<Executor> zzeps2) {
this.zzfrk = zzeps;
this.zzevg = zzeps2;
}
public static zzcja zzab(zzeps<zzcjj> zzeps, zzeps<Executor> zzeps2) {
return new zzcja(zzeps, zzeps2);
}
public final /* synthetic */ Object get() {
return (zzbxy) zzepl.zza(new zzbxy(this.zzfrk.get(), this.zzevg.get()), "Cannot return null from a non-@Nullable @Provides method");
}
}
|
[
"dno_sauro@yahoo.it"
] |
dno_sauro@yahoo.it
|
917ec2c95d6a216ce808cb3e5077167eb059500e
|
f19413fe9cea88c35c4256721fee6c45aca72043
|
/src/com/rc/openapi/dao/TSysParameterDAO.java
|
afb0aa8538da9356febaa910e059855769e2d6c6
|
[] |
no_license
|
Marlon992058/111_yao_order_service
|
1ae675a06a98c963c3f62880483df43499dad495
|
a38505b8400f540ebdfd6a2283e0cf08549d24f5
|
refs/heads/master
| 2020-06-13T01:54:39.108058
| 2016-12-03T10:04:57
| 2016-12-03T10:04:57
| 75,466,085
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,116
|
java
|
package com.rc.openapi.dao;
import java.sql.SQLException;
import java.util.List;
import com.rc.openapi.dubbo.vo.TSysParameter;
import com.rc.openapi.dubbo.vo.TSysParameterExample;
public interface TSysParameterDAO {
int countByExample(TSysParameterExample example) throws SQLException;
int deleteByExample(TSysParameterExample example) throws SQLException;
int deleteByPrimaryKey(Long id) throws SQLException;
Long insert(TSysParameter record) throws SQLException;
Long insertSelective(TSysParameter record) throws SQLException;
List selectByExample(TSysParameterExample example) throws SQLException;
TSysParameter selectByPrimaryKey(Long id) throws SQLException;
int updateByExampleSelective(TSysParameter record, TSysParameterExample example) throws SQLException;
int updateByExample(TSysParameter record, TSysParameterExample example) throws SQLException;
int updateByPrimaryKeySelective(TSysParameter record) throws SQLException;
int updateByPrimaryKey(TSysParameter record) throws SQLException;
String getKeys(String sysKey) throws SQLException;
}
|
[
"tzmarlon@163.com"
] |
tzmarlon@163.com
|
7fdff147f89f6d652c0cfc46b3661e311b70d106
|
2633fb1280a23e747162d44ae7e8694401b4da54
|
/VidyoPortal/src/com/vidyo/service/exceptions/FederationNotAllowedException.java
|
e155ee32ee4daa0d07cb070730515cbc82506225
|
[] |
no_license
|
rahitkumar/VidyoPortal
|
2159cc515acd22471f484867805cd4a4105f209f
|
60101525c0e2cb1a50c55cbb94deb7c44685f1ab
|
refs/heads/master
| 2020-06-16T20:16:33.920559
| 2019-07-07T19:47:47
| 2019-07-07T19:47:47
| 195,687,237
| 4
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 921
|
java
|
package com.vidyo.service.exceptions;
import java.util.ResourceBundle;
public class FederationNotAllowedException extends Exception {
static ResourceBundle rs;
static {
rs = ResourceBundle.getBundle("messages");
}
public FederationNotAllowedException() {
super("Federation not allowed for this tenant");
}
/**
* Create a new <code>FederationNotAllowedException</code>
* with the specified detail message and no root cause.
* @param msg the detail message
*/
public FederationNotAllowedException(String msg) {
super(msg);
}
/**
* Create a new <code>FederationNotAllowedException</code>
* with the specified detail message and the given root cause.
* @param msg the detail message
* @param cause the root cause
*/
public FederationNotAllowedException(String msg, Throwable cause) {
super(msg, cause);
}
}
|
[
"rahitkumar@crap.com"
] |
rahitkumar@crap.com
|
765aa8bead86768ee2574785d9e3e18393980308
|
d4a25735ac036c85f5ca245cabf57dfcb70e93e2
|
/Algorithm/Java/Wiggle Subsequence.java
|
0af9e0f91003542afb08d9aa45528cca2cb9d552
|
[] |
no_license
|
nanwan03/leetcode
|
68c7dcf9aca047de1085c65255c41ba31f77ed47
|
a2d39e56590a3a7be48687bb53af8fcb2c0ce462
|
refs/heads/master
| 2021-01-14T07:55:31.926974
| 2020-08-18T20:57:33
| 2020-08-18T20:57:33
| 35,404,037
| 4
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 561
|
java
|
public class Solution {
public int wiggleMaxLength(int[] nums) {
if (nums.length == 0 || nums.length == 1) {
return nums.length;
}
int k = 0;
while (k < nums.length - 1 && nums[k] == nums[k + 1]) {
k++;
}
if (k == nums.length - 1) {
return 1;
}
int rst = 1;
boolean flag = nums[k] < nums[k + 1];
for (int i = k + 1; i < nums.length; i++) {
if ((flag && nums[i - 1] < nums[i]) ||
(!flag && nums[i - 1] > nums[i])){
nums[rst++] = nums[i];
flag = !flag;
}
}
return rst;
}
}
|
[
"wn1842@gmail.com"
] |
wn1842@gmail.com
|
dbbcfdb68c69b5ba8d89ec4d8bb9faa5a45eb6a0
|
40d844c1c780cf3618979626282cf59be833907f
|
/src/testcases/CWE789_Uncontrolled_Mem_Alloc/s03/CWE789_Uncontrolled_Mem_Alloc__random_HashMap_75a.java
|
49068c23baa2c0ecd810a4f7ee1b5f617383f241
|
[] |
no_license
|
rubengomez97/juliet
|
f9566de7be198921113658f904b521b6bca4d262
|
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
|
refs/heads/master
| 2023-06-02T00:37:24.532638
| 2021-06-23T17:22:22
| 2021-06-23T17:22:22
| 379,676,259
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,893
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__random_HashMap_75a.java
Label Definition File: CWE789_Uncontrolled_Mem_Alloc.int.label.xml
Template File: sources-sink-75a.tmpl.java
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: random Set data to a random value
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: HashMap
* BadSink : Create a HashMap using data as the initial size
* Flow Variant: 75 Data flow: data passed in a serialized object from one method to another in different source files in the same package
*
* */
package testcases.CWE789_Uncontrolled_Mem_Alloc.s03;
import testcasesupport.*;
import java.io.ByteArrayOutputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.IOException;
import java.util.logging.Level;
import javax.servlet.http.*;
import java.security.SecureRandom;
public class CWE789_Uncontrolled_Mem_Alloc__random_HashMap_75a extends AbstractTestCase
{
public void bad() throws Throwable
{
int data;
/* POTENTIAL FLAW: Set data to a random value */
data = (new SecureRandom()).nextInt();
/* serialize data to a byte array */
ByteArrayOutputStream streamByteArrayOutput = null;
ObjectOutput outputObject = null;
try
{
streamByteArrayOutput = new ByteArrayOutputStream() ;
outputObject = new ObjectOutputStream(streamByteArrayOutput) ;
outputObject.writeObject(data);
byte[] dataSerialized = streamByteArrayOutput.toByteArray();
(new CWE789_Uncontrolled_Mem_Alloc__random_HashMap_75b()).badSink(dataSerialized );
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "IOException in serialization", exceptIO);
}
finally
{
/* clean up stream writing objects */
try
{
if (outputObject != null)
{
outputObject.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ObjectOutputStream", exceptIO);
}
try
{
if (streamByteArrayOutput != null)
{
streamByteArrayOutput.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ByteArrayOutputStream", exceptIO);
}
}
}
public void good() throws Throwable
{
goodG2B();
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B() throws Throwable
{
int data;
/* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */
data = 2;
/* serialize data to a byte array */
ByteArrayOutputStream streamByteArrayOutput = null;
ObjectOutput outputObject = null;
try
{
streamByteArrayOutput = new ByteArrayOutputStream() ;
outputObject = new ObjectOutputStream(streamByteArrayOutput) ;
outputObject.writeObject(data);
byte[] dataSerialized = streamByteArrayOutput.toByteArray();
(new CWE789_Uncontrolled_Mem_Alloc__random_HashMap_75b()).goodG2BSink(dataSerialized );
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "IOException in serialization", exceptIO);
}
finally
{
/* clean up stream writing objects */
try
{
if (outputObject != null)
{
outputObject.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ObjectOutputStream", exceptIO);
}
try
{
if (streamByteArrayOutput != null)
{
streamByteArrayOutput.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing ByteArrayOutputStream", exceptIO);
}
}
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"you@example.com"
] |
you@example.com
|
e4223886cbeb6183b0f40eb3c3c86bfda1a4fc31
|
c7a58e49857f5b6f5e8eb985ae01d8c104320524
|
/BackEnd/src/main/java/lk/ijse/absd/service/impl/QuestionsCatagoryServiceImpl.java
|
ee74c147dda531a60f4e8a21c90090eb5f2ff87b
|
[] |
no_license
|
AmilaWasantha/Sharing-softwear-development-knowladge-system
|
e290781d94f50ad8217dbf273c8d83d1e6d3d77f
|
cbc2728c3c83b8f9cc04b772c1ffda38a7507396
|
refs/heads/master
| 2020-04-06T19:13:40.451526
| 2018-11-15T15:14:56
| 2018-11-15T15:14:56
| 157,730,546
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,334
|
java
|
package lk.ijse.absd.service.impl;
import lk.ijse.absd.dto.QuestionsCatogoryDTO;
import lk.ijse.absd.entity.QuestionsCatogory;
import lk.ijse.absd.service.QuestionsCatogoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import repository.QuestionsCatagoryRepository;
import java.util.ArrayList;
import java.util.List;
@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class QuestionsCatagoryServiceImpl implements QuestionsCatogoryService {
@Autowired
private QuestionsCatagoryRepository questionsCatagoryRepository;
@Override
@Transactional(propagation = Propagation.REQUIRED)
public boolean saveQuestionsCatogory(QuestionsCatogoryDTO questionsCatogoryDTO) {
QuestionsCatogory questionsCatogory=new QuestionsCatogory();
questionsCatogory.setCatogoryName(questionsCatogoryDTO.getCatogoryName());
questionsCatogory.setDescription(questionsCatogoryDTO.getDescription());
questionsCatagoryRepository.save(questionsCatogory);
return true;
}
@Override
public List<QuestionsCatogoryDTO> getAllQuestionsCatogoryDetails() {
List<QuestionsCatogory>questionsCatogories=questionsCatagoryRepository.findAll();
List<QuestionsCatogoryDTO>questionsCatogoryDTOS=new ArrayList<>();
for (QuestionsCatogory questionsCatogory:questionsCatogories) {
QuestionsCatogoryDTO questionsCatogoryDTO=new QuestionsCatogoryDTO();
questionsCatogoryDTO.setCatogoryName(questionsCatogory.getCatogoryName());
questionsCatogoryDTO.setDescription(questionsCatogory.getDescription());
questionsCatogoryDTOS.add(questionsCatogoryDTO);
}
return questionsCatogoryDTOS;
}
@Override
public QuestionsCatogoryDTO getQuestionsCatogories(String catogoryName) {
QuestionsCatogory questionsCatogory=questionsCatagoryRepository.findById(catogoryName).get();
QuestionsCatogoryDTO questionsCatogoryDTO=new QuestionsCatogoryDTO();
questionsCatogoryDTO.setCatogoryName(questionsCatogory.getCatogoryName());
questionsCatogoryDTO.setDescription(questionsCatogory.getDescription());
return questionsCatogoryDTO;
}
@Override
@Transactional(propagation = Propagation.REQUIRED)
public boolean updateQuestionsCatogory(String questionsCatogoryName ,QuestionsCatogoryDTO questionsCatogoryDTO) {
if(!questionsCatogoryDTO.getCatogoryName().equals(questionsCatogoryName)){
throw new RuntimeException("Questions Catogory Name Mismatched");
}
QuestionsCatogory questionsCatogory=new QuestionsCatogory();
questionsCatogory.setCatogoryName(questionsCatogoryDTO.getCatogoryName());
questionsCatogory.setDescription(questionsCatogoryDTO.getDescription());
if(questionsCatagoryRepository.existsById(questionsCatogoryName)){
questionsCatagoryRepository.save(questionsCatogory);
}else {
throw new RuntimeException("This Catogory Name is dose not exit");
}
return true;
}
}
|
[
"amilawasantha20@gmail.com"
] |
amilawasantha20@gmail.com
|
bf13ff59cc5380bee92548f0f488975e7f91a532
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Time/5/org/joda/time/LocalDate_LocalDate_335.java
|
786cb010d2d467589f44ee2b93137f1617533700
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 3,418
|
java
|
org joda time
local date locald immut datetim repres date
time zone
local date locald link readabl partial readableparti
method focu kei field
year month year monthofyear dai month dayofmonth
date field fact queri
local date locald differ date midnight datemidnight
time zone repres singl instant time
calcul local date locald perform link chronolog
chronolog set intern utc time zone
calcul
individu field queri wai
code month year getmonthofyear code
code month year monthofyear code
techniqu access method
field
numer
text
text
maximum minimum valu
add subtract
set
round
local date locald thread safe immut provid chronolog
standard chronolog class suppli thread safe immut
author stephen colebourn
local date locald
construct instanc set local time defin
instant evalu chronolog
chronolog iso chronolog zone
constructor complet zone longer
param instant millisecond t00 01t00 00z
param chronolog chronolog mean iso chronolog isochronolog zone
local date locald instant chronolog chronolog
chronolog date time util datetimeutil chronolog getchronolog chronolog
local milli localmilli chronolog zone getzon milli local getmilliskeeploc date time zone datetimezon utc instant
chronolog chronolog utc withutc
local milli ilocalmilli chronolog dai month dayofmonth round floor roundfloor local milli localmilli
chronolog ichronolog chronolog
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
6ea1be4bb37ffa4adb75f8c54b46589feb11cf7b
|
84a50f9c24ebdc5008aa67160ec300b945179ad6
|
/domino-jnx-api/src/main/java/com/hcl/domino/DominoProcess.java
|
ac9c068cae21024b753746156764ca881700fe42
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
d591342/domino-jnx
|
9d998ad0ce3251953511e993f6b1f59454b9f2a3
|
2fe242004eb7228c6ef3251901d0a12cc095f937
|
refs/heads/main
| 2023-07-12T01:56:49.829685
| 2021-08-03T10:08:28
| 2021-08-03T10:08:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,020
|
java
|
/*
* ==========================================================================
* Copyright (C) 2019-2021 HCL America, Inc. ( http://www.hcl.com/ )
* 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.hcl.domino;
import java.nio.file.Path;
import com.hcl.domino.misc.JNXServiceFinder;
/**
* This service interface allows access to initialization and termination of
* the Domino runtime for the process.
* <p>
* This service is not guaranteed to be provided by every implementation.
* </p>
*
* @author Jesse Gallagher
*/
public interface DominoProcess {
public interface DominoThreadContext extends AutoCloseable {
/**
* Closes this resource, relinquishing any underlying resources.
* This method is invoked automatically on objects managed by the
* {@code try}-with-resources statement.<br>
* <br>
* Calls {@link DominoProcess#terminateThread()} internally.
*/
@Override
void close();
}
/**
* @return an implementation of {@code DominoProcess}
* @throws IllegalStateException if the active API implementation does not
* provide one
*/
static DominoProcess get() {
return JNXServiceFinder.findRequiredService(DominoProcess.class, DominoProcess.class.getClassLoader());
}
/**
* Initializes the Domino runtime for the process.
* <p>
* In implementations that require it, this method should be called once per
* process,
* before any other API operations.
* </p>
*
* @param initArgs the arguments to pass to the initialization call
*/
void initializeProcess(String[] initArgs);
/**
* Initializes the current thread for Domino API use.
* <p>
* Note: it is preferable to use threads spawned by
* {@link DominoClient#getThreadFactory()}.
* </p>
*
* @return AutoCloseable to terminate thread, same as calling
* {@link #terminateThread()}
*/
DominoThreadContext initializeThread();
/**
* This function switches to the specified ID file and returns the user name
* associated with it.<br>
* <br>
* Multiple passwords are not supported.<br>
* <br>
* NOTE: This function should only be used in a C API stand alone application.
*
* @param idPath path to the ID file that is to be switched to; if
* null/empty, we read the ID file path from the Notes.ini
* (KeyFileName)
* @param password password of the ID file that is to be switched to
* @param dontSetEnvVar If specified, the notes.ini file (either
* ServerKeyFileName or KeyFileName) is modified to reflect
* the ID change.
* @return user name, in the ID file that is to be switched to
*/
String switchToId(Path idPath, String password, boolean dontSetEnvVar);
/**
* Destroys the Domino runtime for the entire process.
* <p>
* This method should be called only when all Domino operations are finished for
* the
* running application.
* </p>
*/
void terminateProcess();
/**
* Terminates the current thread for Domino API use.
* <p>
* Note: it is preferable to use threads spawned by
* {@link DominoClient#getThreadFactory()}.
* </p>
*/
void terminateThread();
}
|
[
"jesse@secondfoundation.org"
] |
jesse@secondfoundation.org
|
e37a12789759c75fd157280a3e734ea58a9fb48a
|
4584ecaa18a69617da96dd73e5db1cd88571cf20
|
/gremlin-core/src/main/java/com/tinkerpop/gremlin/process/traverser/O_TraverserGenerator.java
|
76e41df9e2b54bd313918c9c3a80be80c36ce4d7
|
[
"Apache-2.0"
] |
permissive
|
seanjames777/tinkerpop3
|
d3331f10f4c3194964cee7d68a02813dd7f353bb
|
4b855771bca87d6e696789ddd8670163c24ba249
|
refs/heads/master
| 2021-01-18T11:59:11.083264
| 2015-04-21T06:18:48
| 2015-04-21T06:18:48
| 31,995,016
| 0
| 0
| null | 2015-03-11T02:56:22
| 2015-03-11T02:56:21
| null |
UTF-8
|
Java
| false
| false
| 1,006
|
java
|
package com.tinkerpop.gremlin.process.traverser;
import com.tinkerpop.gremlin.process.Step;
import com.tinkerpop.gremlin.process.Traverser;
import com.tinkerpop.gremlin.process.TraverserGenerator;
import java.util.Collections;
import java.util.Set;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class O_TraverserGenerator implements TraverserGenerator {
private static final Set<TraverserRequirement> REQUIREMENTS = Collections.singleton(TraverserRequirement.OBJECT);
private static final O_TraverserGenerator INSTANCE = new O_TraverserGenerator();
private O_TraverserGenerator() {
}
@Override
public <S> Traverser.Admin<S> generate(final S start, final Step<S, ?> startStep, final long initialBulk) {
return new O_Traverser<>(start);
}
@Override
public Set<TraverserRequirement> getProvidedRequirements() {
return REQUIREMENTS;
}
public static O_TraverserGenerator instance() {
return INSTANCE;
}
}
|
[
"okrammarko@gmail.com"
] |
okrammarko@gmail.com
|
73ee587937fe75eff60f6f6b455753db270bfd67
|
dbf70b8d061d33cca63047c1a98cdb52430c58cb
|
/Source/edu/cmu/cs/stage3/alice/core/question/queue/Front.java
|
04db7f80f3dfcf54f4de08580df2109d81f3ee42
|
[] |
no_license
|
pwsunderland/Alice-Sunderland
|
9ffad4d6bbdaa791dc12d83ce5c62f73848e1f83
|
987ee4c889fbd1f0f66e64406f521cf23dfc7311
|
refs/heads/master
| 2021-01-01T18:07:01.647398
| 2015-05-10T23:37:17
| 2015-05-10T23:37:17
| 35,165,423
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,228
|
java
|
/*
* Copyright (c) 1999-2003, Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. Products derived from the software may not be called "Alice",
* nor may "Alice" appear in their name, without prior written
* permission of Carnegie Mellon University.
*
* 4. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes software developed by Carnegie Mellon University"
*/
package edu.cmu.cs.stage3.alice.core.question.queue;
public class Front extends QueueObjectQuestion {
protected Object getValue( edu.cmu.cs.stage3.alice.core.Queue queueValue ) {
return queueValue.frontValue();
}
}
|
[
"peter.sunderland@usma.edu"
] |
peter.sunderland@usma.edu
|
b48ca6d9863d4d8f0260306f1cff79e2afe1a7e6
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/boot/svg/code/drawable/sos_up.java
|
8841b842298f4b2e6e8edcb29a710c40a8be0f60
|
[] |
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
| 3,992
|
java
|
package com.tencent.mm.boot.svg.code.drawable;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.tencent.mm.svg.c;
public class sos_up
extends c
{
private final int height = 144;
private final int width = 111;
public int doCommand(int paramInt, Object... paramVarArgs)
{
switch (paramInt)
{
}
for (;;)
{
return 0;
return 111;
return 144;
Canvas localCanvas = (Canvas)paramVarArgs[0];
paramVarArgs = (Looper)paramVarArgs[1];
Object localObject1 = c.instanceMatrix(paramVarArgs);
Object localObject2 = c.instanceMatrixArray(paramVarArgs);
Paint localPaint1 = c.instancePaint(paramVarArgs);
localPaint1.setFlags(385);
localPaint1.setStyle(Paint.Style.FILL);
Paint localPaint2 = c.instancePaint(paramVarArgs);
localPaint2.setFlags(385);
localPaint2.setStyle(Paint.Style.STROKE);
localPaint1.setColor(-16777216);
localPaint2.setStrokeWidth(1.0F);
localPaint2.setStrokeCap(Paint.Cap.BUTT);
localPaint2.setStrokeJoin(Paint.Join.MITER);
localPaint2.setStrokeMiter(4.0F);
localPaint2.setPathEffect(null);
c.instancePaint(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
localPaint1 = c.instancePaint(localPaint1, paramVarArgs);
localPaint1.setColor(-3223858);
localCanvas.save();
localObject2 = c.setMatrixFloatArray((float[])localObject2, 1.0F, 0.0F, 38.0F, 0.0F, 1.0F, 56.0F, 0.0F, 0.0F, 1.0F);
((Matrix)localObject1).reset();
((Matrix)localObject1).setValues((float[])localObject2);
localCanvas.concat((Matrix)localObject1);
localCanvas.save();
localObject1 = c.instancePaint(localPaint1, paramVarArgs);
localObject2 = c.instancePath(paramVarArgs);
((Path)localObject2).moveTo(0.0F, 0.0F);
((Path)localObject2).lineTo(2.608696F, 0.0F);
((Path)localObject2).lineTo(2.608696F, 31.296522F);
((Path)localObject2).lineTo(0.0F, 31.296522F);
((Path)localObject2).lineTo(0.0F, 0.0F);
((Path)localObject2).close();
localCanvas.drawPath((Path)localObject2, (Paint)localObject1);
localCanvas.restore();
localCanvas.save();
localObject1 = c.instancePaint(localPaint1, paramVarArgs);
localObject2 = c.instancePath(paramVarArgs);
((Path)localObject2).moveTo(0.0F, 0.0F);
((Path)localObject2).lineTo(31.304348F, 0.0F);
((Path)localObject2).lineTo(31.304348F, 2.608043F);
((Path)localObject2).lineTo(0.0F, 2.608043F);
((Path)localObject2).lineTo(0.0F, 0.0F);
((Path)localObject2).close();
localCanvas.drawPath((Path)localObject2, (Paint)localObject1);
localCanvas.restore();
localCanvas.save();
localPaint1 = c.instancePaint(localPaint1, paramVarArgs);
localObject1 = c.instancePath(paramVarArgs);
((Path)localObject1).moveTo(2.608696F, 4.547911F);
((Path)localObject1).lineTo(29.363997F, 31.296522F);
((Path)localObject1).lineTo(31.304348F, 29.356655F);
((Path)localObject1).lineTo(4.549048F, 2.608043F);
((Path)localObject1).lineTo(2.608696F, 2.608043F);
((Path)localObject1).close();
WeChatSVGRenderC2Java.setFillType((Path)localObject1, 1);
WeChatSVGRenderC2Java.setFillType((Path)localObject1, 2);
localCanvas.drawPath((Path)localObject1, localPaint1);
localCanvas.restore();
localCanvas.restore();
c.done(paramVarArgs);
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes12.jar
* Qualified Name: com.tencent.mm.boot.svg.code.drawable.sos_up
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
8943e75eda9c6fabb2bc91387dfa811d9b9f3780
|
c4df65aad78427d821b520d80486997732a5349b
|
/src/test/java/com/dalingjia/leetcode/ListNode/IsPalindrome.java
|
500bc284836a23a69bd9ce83304be59a6cfefc5e
|
[] |
no_license
|
tanhuaqiang/mycode
|
810572fd77f42157f3bf5f4fc810543aa324d7b6
|
4f563787a26c2ca0f64869531370afe1111ed329
|
refs/heads/master
| 2023-08-15T11:36:48.380828
| 2022-07-07T11:58:44
| 2022-07-07T11:58:44
| 242,457,185
| 1
| 0
| null | 2023-07-23T06:31:57
| 2020-02-23T04:39:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,604
|
java
|
package com.dalingjia.leetcode.ListNode;
/**
* @author tanhq
* @Description 回文链表
* @Date 2019/8/20 下午7:47
* @Version 1.0
**/
public class IsPalindrome {
public boolean isPalindrome(ListNode head) {
//1,判断空值和只有一个元素的情况
if(head == null || head.next == null){
return true;
}
//2,找到链表的中间元素
ListNode mid = findMiddle(head);
//3,将中间节点的下一个节点作为头结点,进行反转
mid.next = invert(mid.next);
//4,比较前半段链表和后半段链表元素
ListNode a = head;
ListNode b = mid.next;
while (a != null && b != null && a.val == b.val) {
a = a.next;
b = b.next;
}
//如果是回文链表,b最终为空
return b == null;
}
private ListNode invert(ListNode node) {
if(node == null || node.next == null){
return node;
}
ListNode headNode = invert(node.next);
node.next.next = node;
node.next = null;
return headNode;
}
/**
* 寻找中间结点
* @param head
* @return
*/
private ListNode findMiddle(ListNode head) {
if(head == null){
return null;
}
ListNode slow = head;
ListNode fast = head.next;//前面要判空,防止出现空指针
while (fast != null && fast.next != null) {
slow = slow.next;
fast = fast.next.next;
}
return slow;
}
}
|
[
"tanhuaqiang@meituan.com"
] |
tanhuaqiang@meituan.com
|
f5f98c6d0915a13070892763e4cf6da21ee0e77e
|
e6e3bfc83fc5fdcf36650edadc0a8a1898f32084
|
/src/main/java/com/dao/impl/sys/RoleDaoImpl.java
|
89571054f19b934df249f8277eb64c924373584a
|
[] |
no_license
|
buobao/findme
|
a7b1fdb0e271da33b2b505e03e84bf584bd3e250
|
587a665b6eb39452a0080fee3a90c2d68b6e3235
|
refs/heads/master
| 2016-09-10T16:55:22.757254
| 2015-08-27T03:02:52
| 2015-08-27T03:02:52
| 40,581,468
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 755
|
java
|
package com.dao.impl.sys;
import com.dao.sys.RoleDao;
import com.entity.sys.Role;
import com.entity.sys.Users;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by dqf on 2015/8/18.
*/
@Repository
public class RoleDaoImpl extends BaseEntityDaoImpl<Role, String> implements RoleDao {
@Override
public List<String> findPnameByUser(Users users) {
String sql = "SELECT ru.roleSet_id FROM sys_role_sys_users AS ru WHERE ru.usersSet_id=:u";
List<String> roleList = getSession().createSQLQuery(sql).setParameter("u", users.getId()).list();
if(roleList == null){
return Lists.newArrayList();
}
return roleList;
}
}
|
[
"1039163450@qq.com"
] |
1039163450@qq.com
|
5b92f9c088ba51c0dc35b9c73354af9b9be14dfd
|
74555ee2c536911f28ace99626af936a1e1b8909
|
/samples/multiple-http-security/src/main/java/com/waylau/spring/boot/security/config/SecurityConfig.java
|
4d3c37ceb6f66ccce862e5d19adebff4b55f939e
|
[
"MIT"
] |
permissive
|
hakukata/spring-security-tutorial
|
056a2495efb9b12b868e9bf4a08348a41080c8fd
|
170c41b43a98fa9c0fca94f5bcbf9dec3402abf5
|
refs/heads/master
| 2021-09-04T21:48:25.660202
| 2018-01-22T13:17:30
| 2018-01-22T13:17:30
| 115,201,524
| 1
| 0
| null | 2017-12-23T14:42:22
| 2017-12-23T14:42:22
| null |
UTF-8
|
Java
| false
| false
| 2,463
|
java
|
package com.waylau.spring.boot.security.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
/**
* Spring Security 配置类.
* 多配置的例子
*
* @since 1.0.0 2017年3月8日
* @author <a href="https://waylau.com">Way Lau</a>
*/
@EnableWebSecurity
public class SecurityConfig {
@Configuration
@Order(1) // 最先执行
public static class ApiWebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http
.antMatcher("/admins/**")
.authorizeRequests()
.anyRequest().hasRole("ADMIN")
.and()
.httpBasic();
}
}
@Configuration
public static class FormLoginWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.anyRequest().authenticated()
.and()
.formLogin();
}
}
/**
* 用户信息服务
*/
@Bean
public UserDetailsService userDetailsService() {
InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager(); // 在内存中存放用户信息
manager.createUser(User.withUsername("waylau").password("password").roles("USER").build());
manager.createUser(User.withUsername("admin").password("password").roles("USER","ADMIN").build());
return manager;
}
/**
* 认证信息管理
* @param auth
* @throws Exception
*/
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(userDetailsService());
}
}
|
[
"waylau521@gmail.com"
] |
waylau521@gmail.com
|
ea234dca9988957f25a608f9b767ca35431853b4
|
ca6c8aab859af2a4ad9360b94bd88c6cbf6394d2
|
/src/main/java/utils/encoding/URLDecoderFixer.java
|
779a3eb80f2b361eb1df1ae1e6628f27c843c1dc
|
[] |
no_license
|
amicom/Work-In-Progress
|
8255b50bcb946e27c39aa066185c93df50349d56
|
1d2471a5367f956292d4a57f349b962284eed62c
|
refs/heads/master
| 2021-01-10T14:28:32.223326
| 2015-11-08T18:27:01
| 2015-11-08T18:27:01
| 43,629,615
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,065
|
java
|
/**
* Copyright (c) 2009 - 2011 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org>
* <p/>
* This file is part of org.appwork.utils.encoding
* <p/>
* This software is licensed under the Artistic License 2.0,
* see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php
* for details
*/
package utils.encoding;
import utils.logging.Log;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
/**
* @author daniel
*
*/
public class URLDecoderFixer extends URLDecoder {
public static String decode(final String s, final String enc) throws UnsupportedEncodingException {
boolean needToChange = false;
final int numChars = s.length();
final StringBuffer sb = new StringBuffer(numChars > 500 ? numChars / 2 : numChars);
int i = 0;
if (enc.length() == 0) {
throw new UnsupportedEncodingException("URLDecoderFixer: empty string enc parameter");
}
boolean exceptionFixed = false;
char c;
byte[] bytes = null;
while (i < numChars) {
c = s.charAt(i);
switch (c) {
case '+':
sb.append(' ');
i++;
needToChange = true;
break;
case '%':
/*
* Starting with this instance of %, process all consecutive
* substrings of the form %xy. Each substring %xy will yield a
* byte. Convert all consecutive bytes obtained this way to
* whatever character(s) they represent in the provided
* encoding.
*/
final int iBackup = i;
try {
try {
// (numChars-i)/3 is an upper bound for the number
// of remaining bytes
if (bytes == null) {
bytes = new byte[(numChars - i) / 3];
}
int pos = 0;
while (i + 2 < numChars && c == '%') {
final int v = Integer.parseInt(s.substring(i + 1, i + 3), 16);
if (v < 0) {
throw new IllegalArgumentException("URLDecoderFixer: Illegal hex characters in escape (%) pattern - negative value");
}
bytes[pos++] = (byte) v;
i += 3;
if (i < numChars) {
c = s.charAt(i);
}
}
// A trailing, incomplete byte encoding such as
// "%x" will cause an exception to be thrown
if (i < numChars && c == '%') {
throw new IllegalArgumentException("URLDecoderFixer: Incomplete trailing escape (%) pattern");
}
sb.append(new String(bytes, 0, pos, enc));
} catch (final NumberFormatException e) {
throw new IllegalArgumentException("URLDecoderFixer: Illegal hex characters in escape (%) pattern - " + e.getMessage());
}
} catch (final IllegalArgumentException e) {
exceptionFixed = true;
i = iBackup;
sb.append(c);
i++;
}
needToChange = true;
break;
default:
sb.append(c);
i++;
break;
}
}
if (exceptionFixed) {
Log.exception(new Exception("URLDecoderFixer: had to fix " + s));
}
return needToChange ? sb.toString() : s;
}
}
|
[
"amicom.pro@gmail.com"
] |
amicom.pro@gmail.com
|
4480ecfbe4200ccc6f58bcd8f8fc4b7a9388519f
|
24bce14d084238f2457b6a6a23dce8e538d47966
|
/ferris-resiste-console/src/main/java/org/ferris/resiste/console/exit/ExitTool.java
|
02b9b0805d8d2b15a4b65566d1aa74e4bff3842c
|
[
"Apache-2.0"
] |
permissive
|
mjremijan/ferris-resiste
|
637962d3b6de2b0aff27087364cf77d31faf7557
|
cecb7b62a0771a48ab23e0f72765adef14ff4f38
|
refs/heads/master
| 2021-05-08T16:01:29.790079
| 2021-03-28T13:48:44
| 2021-03-28T13:48:44
| 120,129,686
| 0
| 0
| null | 2021-04-26T17:28:11
| 2018-02-03T21:06:41
|
Java
|
UTF-8
|
Java
| false
| false
| 280
|
java
|
package org.ferris.resiste.console.exit;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
public class ExitTool {
public void exitAbnormal() {
System.exit(1);
}
public void exitNormal() {
System.exit(0);
}
}
|
[
"mjremijan@yahoo.com"
] |
mjremijan@yahoo.com
|
2c4a15d7dccb88618c9f518b52fa4c263e3d43be
|
134950f7f1315d92abc95a1cf6b9c6843dcb5a4b
|
/Chapter6/thymeleaf-view-demo/src/main/java/com/geektime/thymeleafviewdemo/controller/CoffeeOrderController.java
|
ed970e550a0d931b6303d2421020793858c383b7
|
[] |
no_license
|
jinrunheng/spring-family-learn
|
d773812afed625eb65d2d7e8ec1b9d13ddedc7da
|
b92a87bd7c116b1c2062cc811260a323167449e1
|
refs/heads/master
| 2023-04-12T16:18:52.332279
| 2021-05-10T08:19:27
| 2021-05-10T08:19:27
| 305,738,244
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,786
|
java
|
package com.geektime.thymeleafviewdemo.controller;
import com.geektime.thymeleafviewdemo.controller.request.NewOrderRequest;
import com.geektime.thymeleafviewdemo.model.Coffee;
import com.geektime.thymeleafviewdemo.model.CoffeeOrder;
import com.geektime.thymeleafviewdemo.service.CoffeeOrderService;
import com.geektime.thymeleafviewdemo.service.CoffeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.validation.Valid;
import java.util.List;
@Controller
@RequestMapping("/order")
@Slf4j
public class CoffeeOrderController {
@Autowired
private CoffeeOrderService orderService;
@Autowired
private CoffeeService coffeeService;
@GetMapping("/{id}")
@ResponseBody
public CoffeeOrder getOrder(@PathVariable("id") Long id) {
return orderService.get(id);
}
@PostMapping(path = "/",
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE
)
@ResponseBody
@ResponseStatus(HttpStatus.CREATED)
public CoffeeOrder create(@RequestBody NewOrderRequest newOrder) {
log.info("Receive new Order {}", newOrder);
List<Coffee> coffeeList = coffeeService.getCoffeesByName(newOrder.getItems());
Coffee[] coffees = coffeeList.toArray(new Coffee[]{});
return orderService.createOrder(newOrder.getCustomer(), coffees);
}
@ModelAttribute
public List<Coffee> coffeeList() {
return coffeeService.getAllCoffee();
}
@GetMapping(path = "/")
public ModelAndView showCreateForm() {
return new ModelAndView("create-order-form");
}
@PostMapping(path = "/",
consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE
)
public String createOrder(@Valid NewOrderRequest newOrder,
BindingResult result, ModelMap map) {
if (result.hasErrors()) {
log.warn("Binding Result : {}", result);
map.addAttribute("message", result.toString());
return "create-order-form";
}
log.info("Receive new Order {}", newOrder);
List<Coffee> coffeeList = coffeeService.getCoffeesByName(newOrder.getItems());
Coffee[] coffees = coffeeList.toArray(new Coffee[]{});
CoffeeOrder order = orderService.createOrder(newOrder.getCustomer(), coffees);
return "redirect:/order/" + order.getId();
}
}
|
[
"1175088275@qq.com"
] |
1175088275@qq.com
|
c97e81193a294cabc6728d608fec390e29aea519
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_13/Testnull_1282.java
|
3a72fd40fc3d5576bce33d3e4f6a6a481c0d1ca6
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package org.gradle.test.performancenull_13;
import static org.junit.Assert.*;
public class Testnull_1282 {
private final Productionnull_1282 production = new Productionnull_1282("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
20d4f3823e9aac495e32182b6d42cd4843e503f2
|
6756d0542d29e267644d453f288e94c85508eebf
|
/src/main/java/sonar/logistics/common/containers/ContainerEmitterList.java
|
4eed72f93155a15b20ecb1870514703fd198031f
|
[
"MIT"
] |
permissive
|
TartaricAcid/Practical-Logistics-2
|
3e165b995131f64d7fbfbe1a25f91b9f59726f96
|
e7b9bd87fe513d291e6ffccf8e7e5a6736a6c1f8
|
refs/heads/1.10.2
| 2020-03-17T01:46:07.351013
| 2018-03-10T10:52:01
| 2018-03-10T10:52:01
| 133,165,404
| 1
| 0
| null | 2018-05-12T16:53:17
| 2018-05-12T16:53:16
| null |
UTF-8
|
Java
| false
| false
| 570
|
java
|
package sonar.logistics.common.containers;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack;
import sonar.core.utils.SonarCompat;
public class ContainerEmitterList extends Container {
public EntityPlayer player;
public ContainerEmitterList(EntityPlayer player) {
this.player = player;
}
public ItemStack transferStackInSlot(EntityPlayer player, int slotID) {
return SonarCompat.getEmpty();
}
@Override
public boolean canInteractWith(EntityPlayer player) {
return true;
}
}
|
[
"ollielansdell@hotmail.co.uk"
] |
ollielansdell@hotmail.co.uk
|
60835f69fd8cc3e61fca2d23da4191649ca098d8
|
e6c83034c1f594e26baa22114510863f0a0b9820
|
/src/main/java/it/bbsoftware/travelfinder/web/rest/vm/LoginVM.java
|
46de0f43066c5f04630138fda6e06544df04652d
|
[] |
no_license
|
baki882/travelfinder
|
14f679a5b0008ece8bd03ad676316e05dbfd7588
|
eb53a65728174cc29ed89296a3d7f81089729ad9
|
refs/heads/master
| 2020-03-17T23:51:46.572590
| 2018-05-19T13:34:13
| 2018-05-19T13:34:13
| 134,064,800
| 0
| 0
| null | 2018-05-20T09:09:18
| 2018-05-19T13:34:09
|
Java
|
UTF-8
|
Java
| false
| false
| 1,125
|
java
|
package it.bbsoftware.travelfinder.web.rest.vm;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* View Model object for storing a user's credentials.
*/
public class LoginVM {
@NotNull
@Size(min = 1, max = 50)
private String username;
@NotNull
@Size(min = ManagedUserVM.PASSWORD_MIN_LENGTH, max = ManagedUserVM.PASSWORD_MAX_LENGTH)
private String password;
private Boolean rememberMe;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Boolean isRememberMe() {
return rememberMe;
}
public void setRememberMe(Boolean rememberMe) {
this.rememberMe = rememberMe;
}
@Override
public String toString() {
return "LoginVM{" +
"username='" + username + '\'' +
", rememberMe=" + rememberMe +
'}';
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
b66787f28a70e5797b85942c8af884c6f298aed0
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/neo4j/learning/3388/WorkThread.java
|
34a85d7561d05b56b48cdeb14b405986f14592aa
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,769
|
java
|
/*
* Copyright (c) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 org.neo4j.index.impl.lucene.explicit;
import java.util.Map;
import java.util.concurrent.Future;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.PropertyContainer;
import org.neo4j.graphdb.index.Index;
import org.neo4j.graphdb.index.IndexHits;
import org.neo4j.graphdb.index.UniqueFactory;
import org.neo4j.test.OtherThreadExecutor;
public class WorkThread extends OtherThreadExecutor<CommandState>
{
private volatile boolean txOngoing;
public WorkThread( String name, Index<Node> index, GraphDatabaseService graphDb, Node node )
{
super( name, new CommandState( index, graphDb, node ) );
}
public void createNodeAndIndexBy( String key, String value ) throws Exception
{
execute( new CreateNodeAndIndexByCommand( key, value ) );
}
public void deleteIndex() throws Exception
{
execute( new DeleteIndexCommand() );
}
public IndexHits<Node> queryIndex( String key, Object value ) throws Exception
{
return execute( new QueryIndexCommand( key, value ) );
}
public void commit() throws Exception
{
execute( new CommitCommand() );
txOngoing = false;
}
public void beginTransaction() throws Exception
{
assert !txOngoing;
execute( new BeginTransactionCommand() );
txOngoing = true;
}
public void removeFromIndex( String key, String value ) throws Exception
{
execute( new RemoveFromIndexCommand( key, value ) );
}
public void rollback() throws Exception
{
if ( !txOngoing )
{
return;
}
execute( new RollbackCommand() );
txOngoing = false;
}
public void die () throws Exception
{
execute( new DieCommand() );
}
public Future<Node> putIfAbsent( Node node, String key, Object value )
{
return executeDontWait( new PutIfAbsentCommand( node, key, value ) );
}
public void add( final Node node, final String key, final Object value ) throws Exception
{
execute( (WorkerCommand<CommandState,Void>) state ->
{
state.index.add( node, key, value );
return null;
} );
}
public Future<Node> getOrCreate( final String key, final Object value, final Object initialValue )
{
return executeDontWait( state ->
{
UniqueFactory.UniqueNodeFactory factory = new UniqueFactory.UniqueNodeFactory( state.index )
{
@Override
protected void initialize( Node node, Map<String, Object> properties )
{
node.setProperty( key, initialValue );
}
};
return factory.getOrCreate( key, value );
} );
}
public Object getProperty( final PropertyContainer entity, final String key ) throws Exception
{
return execute( state -> entity.getProperty( key ) );
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
d4055dc4bb9f00617f91c499641ba1f30ba11ae7
|
6f73a0d38addee468dd21aba1d5d53963be84825
|
/application/src/main/java/org/mifos/framework/struts/tags/XmlBuilder.java
|
d785296babec17bc9f43340338cb5bc5b1f8a432
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
mifos/1.4.x
|
0f157f74220e8e65cc13c4252bf597c80aade1fb
|
0540a4b398407b9415feca1f84b6533126d96511
|
refs/heads/master
| 2020-12-25T19:26:15.934566
| 2010-05-11T23:34:08
| 2010-05-11T23:34:08
| 2,946,607
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,764
|
java
|
/*
* Copyright (c) 2005-2009 Grameen Foundation USA
* 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.
*
* See also http://www.apache.org/licenses/LICENSE-2.0.html for an
* explanation of the license and how it is applied.
*/
package org.mifos.framework.struts.tags;
import java.util.Stack;
/**
* Do we really need our own XML/HTML generation class?
*/
public class XmlBuilder {
private StringBuilder out = new StringBuilder();
private Stack openElements = new Stack();
public void startTag(String tag, String... attributes) {
out.append("<");
tagName(tag);
attributes(attributes);
out.append(">");
openElements.push(tag);
}
private void tagName(String tag) {
rejectCharacter(tag, '<');
rejectCharacter(tag, '&');
rejectCharacter(tag, '>');
rejectCharacter(tag, '\'');
rejectCharacter(tag, '"');
out.append(tag);
}
private void rejectCharacter(String tag, char character) {
if (tag.indexOf(character) != -1) {
throw new XmlBuilderException("Bad character " + character + " in start tag " + tag);
}
}
private void attribute(String attributeName, String attributeValue) {
if (attributeName != null) { // useful for dealing with optional
// attributes
out.append(" ");
out.append(attributeName);
out.append("=\"");
out.append(attributeValue.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">")
.replaceAll("\"", """));
out.append("\"");
}
}
private void attributes(String[] attributes) {
for (int i = 0; i < attributes.length; i += 2) {
attribute(attributes[i], attributes[i + 1]);
}
}
public void endTag(String tag) {
Object startTag = openElements.pop();
if (!tag.equals(startTag)) {
throw new XmlBuilderException("end tag " + tag + " does not match start tag " + startTag);
}
out.append("</");
out.append(tag);
out.append(">");
}
public void singleTag(String tag, String... attributes) {
out.append("<");
tagName(tag);
attributes(attributes);
out.append(" />");
}
public String getOutput() {
if (!openElements.isEmpty()) {
throw new XmlBuilderException("unclosed element " + openElements.peek());
}
return out.toString();
}
/**
* Whether it is better style to have toString give you the output, or make
* people call {@link #getOutput()} is an interesting debate, but we provide
* toString simply for ease of converting code which had been using
* StringBuilder.
*/
@Override
public String toString() {
return getOutput();
}
public void text(String text) {
if (text != null) {
out.append(text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">"));
}
}
public void newline() {
out.append('\n');
}
public void nonBreakingSpace() {
// note: using the usual " " won't pass unit tests as valid XHTML
// so the equivalent "\\u00a0" is being used instead
out.append("\u00a0");
}
public void indent(int spaces) {
for (int i = 0; i < spaces; ++i) {
out.append(' ');
}
}
/**
* Insert the XML corresponding to the argument. The argument is an
* XmlBuilder rather than a string to encourage programmers to treat XML and
* one thing, and strings (for example, data from a database, or anything
* else which needs to be quoted) as another.
*/
public void append(XmlBuilder builder) {
out.append(builder.getOutput());
}
public void comment(String string) {
out.append("<!--");
String text = string.replaceAll("--", "__");
if (text.startsWith("-"))
text = "_" + text.substring(1);
if (text.endsWith("-"))
text = text.substring(0, text.length() - 1) + "_";
out.append(text);
out.append("-->");
}
}
|
[
"meonkeys@a8845c50-7012-0410-95d3-8e1449b9b1e4"
] |
meonkeys@a8845c50-7012-0410-95d3-8e1449b9b1e4
|
16057913cf3f4d1e22fa76f945dafcd97d871ff9
|
7aa02f902ad330c70b0b34ec2d4eb3454c7a3fc1
|
/com/expensemanager/rg.java
|
d96bb5b44ab407a27d275cf096f6b65841fa0e23
|
[] |
no_license
|
hisabimbola/andexpensecal
|
5e42c7e687296fae478dfd39abee45fae362bc5b
|
c47e6f0a1a6e24fe1377d35381b7e7e37f1730ee
|
refs/heads/master
| 2021-01-19T15:20:25.262893
| 2016-08-11T16:00:49
| 2016-08-11T16:00:49
| 100,962,347
| 1
| 0
| null | 2017-08-21T14:48:33
| 2017-08-21T14:48:33
| null |
UTF-8
|
Java
| false
| false
| 473
|
java
|
package com.expensemanager;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class rg implements OnClickListener {
final /* synthetic */ String[] f5214a;
final /* synthetic */ rd f5215b;
rg(rd rdVar, String[] strArr) {
this.f5215b = rdVar;
this.f5214a = strArr;
}
public void onClick(DialogInterface dialogInterface, int i) {
this.f5215b.f5211a.f3170e = this.f5214a[i];
}
}
|
[
"m.ravinther@yahoo.com"
] |
m.ravinther@yahoo.com
|
5084a0215bb3ad7a5665d88dd9aa5d356fb87b0d
|
5598faaaaa6b3d1d8502cbdaca903f9037d99600
|
/code_changes/Apache_projects/HDFS-1106/a2ff806d2e157b2c3d1f07732407705bfca20281/~HeartbeatEndpointTask.java
|
5aba6876c144b6adb80c859a67d418fac1f563c3
|
[] |
no_license
|
SPEAR-SE/LogInBugReportsEmpirical_Data
|
94d1178346b4624ebe90cf515702fac86f8e2672
|
ab9603c66899b48b0b86bdf63ae7f7a604212b29
|
refs/heads/master
| 2022-12-18T02:07:18.084659
| 2020-09-09T16:49:34
| 2020-09-09T16:49:34
| 286,338,252
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,002
|
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.hadoop.ozone.container.common.states.endpoint;
import com.google.common.base.Preconditions;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hdfs.protocol.DatanodeID;
import org.apache.hadoop.ozone.container.common.statemachine
.EndpointStateMachine;
import org.apache.hadoop.ozone.container.common.statemachine.StateContext;
import org.apache.hadoop.ozone.protocol.proto
.StorageContainerDatanodeProtocolProtos.ContainerNodeIDProto;
import org.apache.hadoop.ozone.protocol.commands.SendContainerCommand;
import org.apache.hadoop.ozone.protocol.proto
.StorageContainerDatanodeProtocolProtos;
import org.apache.hadoop.ozone.protocol.proto
.StorageContainerDatanodeProtocolProtos.SCMCommandResponseProto;
import org.apache.hadoop.ozone.protocol.proto
.StorageContainerDatanodeProtocolProtos.SCMHeartbeatResponseProto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.concurrent.Callable;
/**
* Heartbeat class for SCMs.
*/
public class HeartbeatEndpointTask
implements Callable<EndpointStateMachine.EndPointStates> {
static final Logger LOG =
LoggerFactory.getLogger(HeartbeatEndpointTask.class);
private final EndpointStateMachine rpcEndpoint;
private final Configuration conf;
private ContainerNodeIDProto containerNodeIDProto;
private StateContext context;
/**
* Constructs a SCM heart beat.
*
* @param conf Config.
*/
public HeartbeatEndpointTask(EndpointStateMachine rpcEndpoint,
Configuration conf, StateContext context) {
this.rpcEndpoint = rpcEndpoint;
this.conf = conf;
this.context = context;
}
/**
* Get the container Node ID proto.
*
* @return ContainerNodeIDProto
*/
public ContainerNodeIDProto getContainerNodeIDProto() {
return containerNodeIDProto;
}
/**
* Set container node ID proto.
*
* @param containerNodeIDProto - the node id.
*/
public void setContainerNodeIDProto(ContainerNodeIDProto
containerNodeIDProto) {
this.containerNodeIDProto = containerNodeIDProto;
}
/**
* Computes a result, or throws an exception if unable to do so.
*
* @return computed result
* @throws Exception if unable to compute a result
*/
@Override
public EndpointStateMachine.EndPointStates call() throws Exception {
rpcEndpoint.lock();
try {
Preconditions.checkState(this.containerNodeIDProto != null);
DatanodeID datanodeID = DatanodeID.getFromProtoBuf(this
.containerNodeIDProto.getDatanodeID());
SCMHeartbeatResponseProto reponse = rpcEndpoint.getEndPoint()
.sendHeartbeat(datanodeID, this.context.getNodeReport(),
this.context.getContainerReportState());
processResponse(reponse);
rpcEndpoint.zeroMissedCount();
} catch (IOException ex) {
rpcEndpoint.logIfNeeded(ex);
} finally {
rpcEndpoint.unlock();
}
return rpcEndpoint.getState();
}
/**
* Returns a builder class for HeartbeatEndpointTask task.
* @return Builder.
*/
public static Builder newBuilder() {
return new Builder();
}
/**
* Add this command to command processing Queue.
*
* @param response - SCMHeartbeat response.
*/
private void processResponse(SCMHeartbeatResponseProto response) {
for (SCMCommandResponseProto commandResponseProto : response
.getCommandsList()) {
if (commandResponseProto.getCmdType() ==
StorageContainerDatanodeProtocolProtos.Type.nullCmd) {
//this.context.addCommand(NullCommand.newBuilder().build());
LOG.debug("Discarding a null command from SCM.");
}
if (commandResponseProto.getCmdType() ==
StorageContainerDatanodeProtocolProtos.Type.sendContainerReport) {
this.context.addCommand(SendContainerCommand.getFromProtobuf(
commandResponseProto.getSendReport()));
}
}
}
/**
* Builder class for HeartbeatEndpointTask.
*/
public static class Builder {
private EndpointStateMachine endPointStateMachine;
private Configuration conf;
private ContainerNodeIDProto containerNodeIDProto;
private StateContext context;
/**
* Constructs the builder class.
*/
public Builder() {
}
/**
* Sets the endpoint state machine.
*
* @param rpcEndPoint - Endpoint state machine.
* @return Builder
*/
public Builder setEndpointStateMachine(EndpointStateMachine rpcEndPoint) {
this.endPointStateMachine = rpcEndPoint;
return this;
}
/**
* Sets the Config.
*
* @param config - config
* @return Builder
*/
public Builder setConfig(Configuration config) {
this.conf = config;
return this;
}
/**
* Sets the NodeID.
*
* @param nodeID - NodeID proto
* @return Builder
*/
public Builder setNodeID(ContainerNodeIDProto nodeID) {
this.containerNodeIDProto = nodeID;
return this;
}
/**
* Sets the context.
* @param stateContext - State context.
* @return this.
*/
public Builder setContext(StateContext stateContext) {
this.context = stateContext;
return this;
}
public HeartbeatEndpointTask build() {
if (endPointStateMachine == null) {
LOG.error("No endpoint specified.");
throw new IllegalArgumentException("A valid endpoint state machine is" +
" needed to construct HeartbeatEndpointTask task");
}
if (conf == null) {
LOG.error("No config specified.");
throw new IllegalArgumentException("A valid configration is needed to" +
" construct HeartbeatEndpointTask task");
}
if (containerNodeIDProto == null) {
LOG.error("No nodeID specified.");
throw new IllegalArgumentException("A vaild Node ID is needed to " +
"construct HeartbeatEndpointTask task");
}
HeartbeatEndpointTask task = new HeartbeatEndpointTask(this
.endPointStateMachine, this.conf, this.context);
task.setContainerNodeIDProto(containerNodeIDProto);
return task;
}
}
}
|
[
"archen94@gmail.com"
] |
archen94@gmail.com
|
ec4d22c831d91740b2316a8eb56ff1f65f2d95d6
|
583a7356cd8e530fca83be30f068342006de4f4b
|
/src/com/kubeiwu/commontool/volley/request/KGsonArrayRequest.java
|
83df5d61c40409e93a66006ebbf76ccc01873219
|
[] |
no_license
|
cgpllx/KcommonTool
|
2b18ce29bb029c9b689d428a90c408d058f7c8f9
|
a4ef5ae89383a09987288300231009d125e2be1b
|
refs/heads/master
| 2020-09-12T21:43:06.142291
| 2015-01-17T09:47:38
| 2015-01-17T09:47:38
| 23,507,659
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,695
|
java
|
package com.kubeiwu.commontool.volley.request;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.toolbox.HttpHeaderParser;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
public class KGsonArrayRequest<T> extends KRequest<List<T>> {
private final Gson gson = new Gson();
public KGsonArrayRequest(String url, Map<String, String> headers, Listener<List<T>> listener, ErrorListener errorListener) {
this(Method.GET, url, headers, headers, listener, errorListener);
}
public KGsonArrayRequest(int method, String url, Map<String, String> headers, Map<String, String> params, Listener<List<T>> listener,
ErrorListener errorListener) {
super(method, url, headers, params, listener, errorListener);
}
@Override
protected Response<List<T>> parseNetworkResponse(NetworkResponse response) {
List<T> list = new ArrayList<T>();
try {
String json = new String(response.data, HttpHeaderParser.parseCharset(response.headers));
list = gson.fromJson(json, new TypeToken<List<T>>() {
}.getType());
return Response.success(list, HttpHeaderParser.parseCacheHeaders(response));
} catch (UnsupportedEncodingException e) {
return Response.error(new ParseError(e));
} catch (JsonSyntaxException e) {
return Response.error(new ParseError(e));
}
}
}
|
[
"cgpllx1@qq.com"
] |
cgpllx1@qq.com
|
713f605b4b7af58e0ff670bc29b73dd6751d0626
|
8c49003ae8e7b5662a9ee3c79abdb908463bef41
|
/service-job/src/main/java/com/java110/job/adapt/hcGov/inoutRecord/AddInoutRecordToHcGovReturnAdapt.java
|
3d80402a980b455b45230359a7b57a9be8e928d6
|
[
"Apache-2.0"
] |
permissive
|
java110/MicroCommunity
|
1cae5db3f185207fdabe670eedf89cdc5c413676
|
fbcdd1974f247b020114d3c9b3f649f9e48d3182
|
refs/heads/master
| 2023-08-05T13:44:19.646780
| 2023-01-09T10:09:54
| 2023-01-09T10:09:54
| 129,351,237
| 820
| 381
|
Apache-2.0
| 2023-02-22T07:05:27
| 2018-04-13T05:15:52
|
Java
|
UTF-8
|
Java
| false
| false
| 1,773
|
java
|
/*
* Copyright 2017-2020 吴学文 and java110 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 com.java110.job.adapt.hcGov.inoutRecord;
import com.java110.dto.reportData.ReportDataDto;
import com.java110.intf.common.IHcGovTranslateInnerServiceSMO;
import com.java110.intf.community.ICommunityLocationAttrInnerServiceSMO;
import com.java110.job.adapt.hcGov.IReportReturnDataAdapt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 新增楼栋同步HC政务接口 返回
* <p>
* 接口协议地址: https://gitee.com/java110/microCommunityInformation/tree/master/info-doc#1%E6%A5%BC%E6%A0%8B%E4%B8%8A%E4%BC%A0
*
* @desc add by 吴学文 16:20
*/
@Component(value = "ADD_INOUT_RECORD_RETURN")
public class AddInoutRecordToHcGovReturnAdapt implements IReportReturnDataAdapt {
@Autowired
private ICommunityLocationAttrInnerServiceSMO communityLocationAttrInnerServiceSMOImpl;
@Autowired
private IHcGovTranslateInnerServiceSMO hcGovTranslateInnerServiceSMOImpl;
@Override
public void reportReturn(ReportDataDto reportDataDto, String extCommunityId) {
//todo 这个开门记录 可以不记录 返回的ID因为后期用不到
}
}
|
[
"928255095@qq.com"
] |
928255095@qq.com
|
a6997e55ed4597db0494794dd202a520cc8ebfd9
|
df5bac6d68ccbfb51d6f8116123de5cd5d81360f
|
/Briscola/src/org/mmarini/briscola/Estimation.java
|
618d8b50467b352b8bc9c7e1aa7ae8123b95bcdd
|
[] |
no_license
|
corradomirra/briscola
|
3fbcda0ba35ea31f5130adda6cc66e54f43f22ad
|
fcfad44a1a73be36afcf6772f84bb2594a0d0506
|
refs/heads/master
| 2021-03-11T19:50:41.644408
| 2013-12-08T19:16:20
| 2013-12-08T19:16:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,717
|
java
|
/**
*
*/
package org.mmarini.briscola;
/**
* @author US00852
*
*/
public class Estimation {
private double aiWinProb;
private double playerWinProb;
private boolean confident;
private Card bestCard;
/**
*
*/
public Estimation() {
}
/**
* @return the win probability
*/
public double getAiWinProb() {
return aiWinProb;
}
/**
* @return the bestCard
*/
public Card getBestCard() {
return bestCard;
}
/**
* @return the loss probability
*/
public double getPlayerWinProb() {
return playerWinProb;
}
/**
* @return the confident
*/
public boolean isConfident() {
return confident;
}
/**
* @param probability
* the win probability to set
*/
public void setAiWinProb(double probability) {
this.aiWinProb = probability;
}
/**
* @param card
* the bestCard to set
*/
public void setBestCard(Card card) {
this.bestCard = card;
}
/**
* @param confident
* the confident to set
*/
public void setConfident(boolean confident) {
this.confident = confident;
}
/**
* @param lossProbability
* the loss probability to set
*/
public void setPlayerWinProb(double lossProbability) {
this.playerWinProb = lossProbability;
}
/**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("Estimation [confident=").append(confident)
.append(", win=").append(aiWinProb).append(", loss=")
.append(playerWinProb).append(", bestCard=").append(bestCard)
.append("]");
return builder.toString();
}
}
|
[
"marco.marini@mmarini.org"
] |
marco.marini@mmarini.org
|
2e92f4581e94661980547306c06299dc221491e6
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/65/org/apache/commons/math/geometry/Rotation_distance_1067.java
|
b05c0dcb154a95e9eef3916711b2b41ccc3da23f
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 3,493
|
java
|
org apach common math geometri
rotat dimension space
rotat repres mathemat
entiti matric ax angl cardan euler angl
quaternion present higher level abstract
user orient hide implement detail
curiou quaternion intern represent
user build rotat represent
represent retriev
code rotat code instanc constructor
getter addit rotat built implicitli
set vector imag
impli convert
represent convert rotat
matrix set cardan angl
singl line code
pre
angl rotat matrix angl getangl rotat order rotationord xyz
pre
focu orient rotat
underli represent built
intern represent rotat oper basic
transform dimension link vector3 vector3d vector
dimension link vector3 vector3d vector depend applic
mean vector vari semant rotat
spacecraft attitud simul tool user
vector fix earth direct
frame chang rotat transform coordin vector inerti
frame coordin vector satellit frame
rotat implicitli defin relat frame
telescop control applic rotat
transform sight direct rest desir observ
direct telescop point object interest
rotat transform direct rest topocentr frame
sight direct topocentr frame impli
frame fix vector move
approach combin telescop
transform observ direct topocentr
frame observ direct inerti frame take account observatori
locat earth rotat essenti applic
approach
exampl show rotat user
push user specif definit
provid method code project vector destin frame projectvectorintodestinationfram code
code comput transform direct computetransformeddirect code simpler gener
method link appli applyto vector3 vector3d appli applyto vector3 vector3d link
appli invers applyinverseto vector3 vector3d appli invers applyinverseto vector3 vector3d
rotat basic vectori oper rotat
compos composit oper code
code mean vector code code
code code rotat
addit vector rotat appli
rotat previou notat
appli code code code code result
code code purpos
method link appli applyto rotat appli applyto rotat
link appli invers applyinverseto rotat appli invers applyinverseto rotat
rotat guarante immut object
version revis date
vector3 vector3d
rotat order rotationord
rotat serializ
comput distanc rotat
distanc intend check
rotat similar transform vector
mathemat defin angl
rotat prepend rotat
pre
pre
distanc angl smallest
upper bound angl radian
vector upper bound
reach distanc equal
rotat ident
compar rotat
compar compon quaternion
stabl geometr mean compar quaternion
compon error prone quaternion
repres rotat
compon exact opposit
param rotat
param rotat
distanc
distanc rotat rotat
appli invers applyinverseto angl getangl
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
00b9f59216dbba1eea440790ee591983f305258e
|
97efc6fa9e64e2b8637a93dbe6da7abb573aa1b9
|
/src/main/java/com/servtech/servcloud/app/model/huangliang_matStock/WoMMat.java
|
24d4582ef95558489728f92b5f5b4c9ad2d78f0c
|
[] |
no_license
|
smartaid1980/STOutsource
|
c65a1a77749973e6b05106d8dabdfa848be76a97
|
d5bc21c2d69d5cb72743a22ba79c794d18786ac3
|
refs/heads/master
| 2023-01-04T23:40:14.806766
| 2020-10-29T02:34:32
| 2020-10-29T02:34:32
| 301,026,621
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 325
|
java
|
package com.servtech.servcloud.app.model.huangliang_matStock;
import org.javalite.activejdbc.Model;
import org.javalite.activejdbc.annotations.*;
/**
* Created by Jenny on 2019/07/25.
*/
@Table("a_huangliang_wo_m_mat")
@CompositePK({"order_id","machine_id","wo_m_time","m_mat_time"})
public class WoMMat extends Model {}
|
[
"jacokao@servtech.com.tw"
] |
jacokao@servtech.com.tw
|
7b830a91a0b15262053d1a9b13c875ba03dab90e
|
f0e3f7ec4525290e46a54917911b2791930d34a7
|
/sonrisa-backend/src/main/java/hu/sonrisa/backend/messageboard/ErtesitesService.java
|
cf5657d79488b8cc08b9952649e566ef7aea25e1
|
[] |
no_license
|
nobesnickr/POS-Gateway-Source-Swarm
|
f808e65a2bbf4fd28d6fd041a996de031a2a49bc
|
cc35ba6218cdc120e76a1c51609f57f07afc8184
|
refs/heads/master
| 2021-04-12T03:54:25.359891
| 2015-01-19T20:54:43
| 2015-01-19T20:54:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,095
|
java
|
/*
* Copyright (c) 2013 Sonrisa Informatikai Kft. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* * Sonrisa Informatikai Kft. ("Confidential Information").
* You shall not disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Sonrisa.
*
* SONRISA MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SONRISA SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.tor.
*/
package hu.sonrisa.backend.messageboard;
import hu.sonrisa.backend.service.GenericService;
/**
*
* @author joe
*/
public interface ErtesitesService extends GenericService<Long, Ertesites> {
void save(Ertesites ertesites);
void remove(long id);
}
|
[
"szirmayb@sonrisa.hu"
] |
szirmayb@sonrisa.hu
|
18dd9ec89bbe9d77bb2cb5e1641cba28b46d6c04
|
83d781a9c2ba33fde6df0c6adc3a434afa1a7f82
|
/MarketPublicMobileAPI/src/com/newco/marketplace/api/mobile/beans/soDetails/v3_0/SupportNotes.java
|
ffded1eef8691c460295c8da7ebe07f685783b52
|
[] |
no_license
|
ssriha0/sl-b2b-platform
|
71ab8ef1f0ccb0a7ad58b18f28a2bf6d5737fcb6
|
5b4fcafa9edfe4d35c2dcf1659ac30ef58d607a2
|
refs/heads/master
| 2023-01-06T18:32:24.623256
| 2020-11-05T12:23:26
| 2020-11-05T12:23:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 696
|
java
|
package com.newco.marketplace.api.mobile.beans.soDetails.v3_0;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
@XStreamAlias("supportNotes")
@XmlAccessorType(XmlAccessType.FIELD)
public class SupportNotes {
@XStreamImplicit(itemFieldName="supportNote")
private List<SupportNote> supportNote;
public List<SupportNote> getSupportNote() {
return supportNote;
}
public void setSupportNote(List<SupportNote> supportNote) {
this.supportNote = supportNote;
}
}
|
[
"Kunal.Pise@transformco.com"
] |
Kunal.Pise@transformco.com
|
ec0fb0f1c90ea6ea563e81246a783bb6f5f3f652
|
65a6345a544888bcbdbc5c04aa4942a3c201e219
|
/src/main/java/mayday/tiala/pairwise/data/probes/AlignmentDerivedProbe.java
|
7e26307196cb244e911c036a9107dab9cb6c35a3
|
[] |
no_license
|
Integrative-Transcriptomics/Mayday-level2
|
e7dd61ba68d149bed845b173cced4db012ba55b1
|
46a28829e8ead11794951fbae6d61e7ff37cad4a
|
refs/heads/master
| 2023-01-11T21:57:47.943395
| 2016-04-25T12:59:01
| 2016-04-25T12:59:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 499
|
java
|
package mayday.tiala.pairwise.data.probes;
import mayday.tiala.pairwise.data.AlignmentStore;
import mayday.tiala.pairwise.data.mastertables.AlignmentDerivedMasterTable;
public abstract class AlignmentDerivedProbe extends DerivedProbe {
protected AlignmentStore store;
public AlignmentDerivedProbe( AlignmentDerivedMasterTable masterTable, String sourceName ) {
super(masterTable, sourceName);
store = masterTable.getStore();
}
public AlignmentStore getStore() {
return store;
}
}
|
[
"adrian.geissler@student.uni-tuebingen.de"
] |
adrian.geissler@student.uni-tuebingen.de
|
ed0f2487b12f617080f7dfac190720d052237d3a
|
5ccccb200c5564ac33e4e2e5327a0721751b31ce
|
/kbopark-operation/kbopark-kbpay-platform/src/main/java/com/kbopark/kbpay/paysdk/NoSuchChannelPayService.java
|
e12d0e3f2aa98b1a803b4794a902101603d86209
|
[] |
no_license
|
arvin-xiao/peg_back
|
444e40f43cc8de62431260dab8082dc400135cf8
|
30e98fc7e23701403ab1e5cad7e4de9bf1a1b965
|
refs/heads/master
| 2023-04-30T14:10:48.613681
| 2020-12-09T13:12:09
| 2020-12-09T13:12:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 629
|
java
|
package com.kbopark.kbpay.paysdk;
import com.kbopark.kbpay.entity.PayTradeOrder;
public class NoSuchChannelPayService implements IKbPayService<PayResult> {
@Override
public PayResult jsPay(PayTradeOrder order) {
throw new UnsupportedOperationException("系统不支持" + order.getPayChannelValue() + "类型的支付通道");
}
@Override
public PayResult createH5PayUrl(PayTradeOrder order) {
throw new UnsupportedOperationException("系统不支持" + order.getPayChannelValue() + "类型的支付通道");
}
@Override
public String generatePayChannelOrderId(PayTradeOrder payTradeOrder) {
return null;
}
}
|
[
"862970151@qq.com"
] |
862970151@qq.com
|
e48260eb0b23951e9c2ea8dfc861f46367a80392
|
73fd7cf535b476ed2238ca42cb5e79d440a92f06
|
/app/src/main/java/com/cn/uca/bean/home/samecityka/MyTicketCodeBean.java
|
3cdd2041a56c8fc20e2110a773eae249c0ebfa63
|
[] |
no_license
|
WengYihao/UCA
|
f4c5ee5d8624aa89aa23eb0558062d80902a576b
|
2b83b0550db9b44c73015f17e1e0e3a7287768a6
|
refs/heads/master
| 2021-01-02T22:28:49.469304
| 2018-03-29T12:38:11
| 2018-03-29T12:38:11
| 99,201,955
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,752
|
java
|
package com.cn.uca.bean.home.samecityka;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by asus on 2017/12/18.
*/
public class MyTicketCodeBean implements Parcelable{
private int city_cafe_ticket_id;
private int number;
private String ticket_name;
public int getCity_cafe_ticket_id() {
return city_cafe_ticket_id;
}
public int getNumber() {
return number;
}
public String getTicket_name() {
return ticket_name;
}
public void setCity_cafe_ticket_id(int city_cafe_ticket_id) {
this.city_cafe_ticket_id = city_cafe_ticket_id;
}
public void setNumber(int number) {
this.number = number;
}
public void setTicket_name(String ticket_name) {
this.ticket_name = ticket_name;
}
public static final Parcelable.Creator<MyTicketCodeBean> CREATOR = new Creator<MyTicketCodeBean>() {
@Override
public MyTicketCodeBean createFromParcel(Parcel source) {
// 必须按成员变量的顺序读取数据,不然会出现获取数据报错
MyTicketCodeBean bean = new MyTicketCodeBean();
bean.setCity_cafe_ticket_id(source.readInt());
bean.setNumber(source.readInt());
bean.setTicket_name(source.readString());
return bean;
}
@Override
public MyTicketCodeBean[] newArray(int size) {
return new MyTicketCodeBean[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(city_cafe_ticket_id);
dest.writeInt(number);
dest.writeString(ticket_name);
}
}
|
[
"15112360329@163.com"
] |
15112360329@163.com
|
ef0f2efe78ef3e979acdc91a013e547517dadfec
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/junit_cluster/2405/src_2.java
|
f78a15a84d0319876ea962abbf0c9ac3afc22b15
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,176
|
java
|
/**
*
*/
package org.junit.experimental.theories.internal;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.junit.experimental.theories.ParameterSignature;
import org.junit.experimental.theories.PotentialAssignment;
import org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException;
import org.junit.internal.runners.model.Roadie;
public class Assignments {
private final Roadie fContext;
private List<PotentialAssignment> fAssigned;
private final List<ParameterSignature> fUnassigned;
public Assignments(Roadie context,
List<ParameterSignature> unassigned) {
this(context, new ArrayList<PotentialAssignment>(), unassigned);
}
public Assignments(Roadie context,
List<PotentialAssignment> assigned,
List<ParameterSignature> unassigned) {
fContext= context;
fUnassigned= unassigned;
fAssigned= assigned;
}
public static Assignments allUnassigned(Roadie context,
Method testMethod) {
return new Assignments(context, ParameterSignature
.signatures(testMethod));
}
public boolean isComplete() {
return fUnassigned.size() == 0;
}
public ParameterSignature nextUnassigned() {
return fUnassigned.get(0);
}
public Assignments assignNext(PotentialAssignment source) {
List<PotentialAssignment> assigned= new ArrayList<PotentialAssignment>(
fAssigned);
assigned.add(source);
return new Assignments(fContext, assigned, fUnassigned.subList(
1, fUnassigned.size()));
}
public Object getTarget() {
return fContext.getTarget();
}
public Roadie getContext() {
return fContext;
}
public Object[] getActualValues(boolean nullsOk)
throws CouldNotGenerateValueException {
Object[] values= new Object[fAssigned.size()];
for (int i= 0; i < values.length; i++) {
values[i]= fAssigned.get(i).getValue();
if (values[i] == null && !nullsOk)
throw new CouldNotGenerateValueException();
}
return values;
}
public List<PotentialAssignment> potentialsForNextUnassigned()
throws InstantiationException, IllegalAccessException {
return new AssignmentRequest(getTarget(), nextUnassigned())
.getPotentialAssignments();
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
81331a6f4e21df8fc097d621c7e5dc520ddf9db0
|
80576460f983a1ce5e11348e144257d6a2e12a97
|
/Processamento/ContaCapitalProcessamentoEJB/src/main/java/br/com/sicoob/sisbr/cca/processamento/negocio/servicos/ejb/FechGerarCalculoProvisaoJurosJob.java
|
e1fca8c8c181ab5dcc6196d5d73d43c4ef2ef906
|
[] |
no_license
|
pabllo007/cca
|
8d3812e403deccdca5ba90745b188e10699ff44c
|
99c24157ff08459ea3e7c2415ff75bcb6a0102e4
|
refs/heads/master
| 2022-12-01T05:20:26.998529
| 2019-10-27T21:33:11
| 2019-10-27T21:33:11
| 217,919,304
| 0
| 0
| null | 2022-11-24T06:24:00
| 2019-10-27T21:31:25
|
Java
|
UTF-8
|
Java
| false
| false
| 946
|
java
|
package br.com.sicoob.sisbr.cca.processamento.negocio.servicos.ejb;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import br.com.sicoob.sws.api.contexto.ContextoExecucao;
import br.com.sicoob.sws.api.execucao.Step;
import br.com.sicoob.sws.api.servico.JobServico;
/**
* @author antonio.genaro
*/
@Stateless
@Remote(JobServico.class)
public class FechGerarCalculoProvisaoJurosJob extends ContaCapitalProcessamentoJob {
private static final String STEP_GERAR_CALCULO_PROVISAO_JUROS = "cca_processamento/FechGerarCalculoProvisaoJurosStepRemote";
/**
* @see br.com.sicoob.sws.api.servico.JobServico#obterSteps(br.com.sicoob.sws.api.contexto.ContextoExecucao)
*/
public List<Step> obterSteps(ContextoExecucao contexto) {
List<Step> steps = new ArrayList<Step>();
steps.add(ejb(STEP_GERAR_CALCULO_PROVISAO_JUROS).realizandoEsforcoDe(VALOR_ESFORCO_JOB_1));
return steps;
}
}
|
[
"="
] |
=
|
1fc7183c918fa0b31cf4213b4c5e88e7d976b71b
|
cfc9e6b1d923642307c494cfaf31e5d437e8609b
|
/com/hbm/render/item/ItemRenderMP40.java
|
1ad36e5d4cf70b07b0822f28a216c51f5aaf8338
|
[
"WTFPL"
] |
permissive
|
erbege/Hbm-s-Nuclear-Tech-GIT
|
0553ff447032c6e9bbc5b5d8a3f480bc33aac13d
|
043a07d5871568993526928db1457508f6e4c4f3
|
refs/heads/master
| 2023-08-02T16:32:28.680199
| 2020-09-16T20:53:45
| 2020-09-16T20:53:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,402
|
java
|
package com.hbm.render.item;
import org.lwjgl.opengl.GL11;
import com.hbm.lib.RefStrings;
import com.hbm.render.model.ModelMP40;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
public class ItemRenderMP40 implements IItemRenderer {
protected ModelMP40 swordModel;
public ItemRenderMP40() {
swordModel = new ModelMP40();
}
@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
switch(type) {
case EQUIPPED:
case EQUIPPED_FIRST_PERSON:
case ENTITY:
return true;
default: return false;
}
}
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
return false;
}
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
switch(type) {
case EQUIPPED_FIRST_PERSON:
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_CULL_FACE);
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelMP40.png"));
GL11.glRotatef(-135.0F, 0.0F, 0.0F, 1.0F);
GL11.glTranslatef(-0.5F, 0.0F, -0.2F);
//GL11.glScalef(2.0F, 2.0F, 2.0F);
GL11.glScalef(0.5F, 0.5F, 0.5F);
GL11.glScalef(0.5F, 0.5F, 0.5F);
//GL11.glTranslatef(-0.4F, -0.1F, 0.1F);
GL11.glTranslatef(-0.8F, -0.2F, 0.0F);
GL11.glRotatef(-20.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(5.0F, 0.0F, 1.0F, 0.0F);
GL11.glTranslatef(-0.2F, 0.0F, -0.2F);
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
GL11.glPopMatrix();
break;
case EQUIPPED:
case ENTITY:
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_CULL_FACE);
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelMP40.png"));
GL11.glRotatef(-200.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(75.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(-30.0F, 1.0F, 0.0F, 0.0F);
GL11.glTranslatef(0.0F, -0.2F, -0.5F);
GL11.glRotatef(-5.0F, 0.0F, 0.0F, 1.0F);
GL11.glTranslatef(0.5F, -0.2F, 0.0F);
GL11.glScalef(0.5F, 0.5F, 0.5F);
GL11.glTranslatef(-1.8F, -0.2F, 0.2F);
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
GL11.glPopMatrix();
default: break;
}
}
}
|
[
"hbmmods@gmail.com"
] |
hbmmods@gmail.com
|
a4a5b359179c2da8deb0b4862355d06a5b36bb7d
|
2f5cd5ba8a78edcddf99c7e3c9c19829f9dbd214
|
/java/playgrounds/boescpa/src/main/java/playground/boescpa/lib/tools/scenarioAnalyzer/eventHandlers/ScenarioAnalyzerEventHandler.java
|
99834ebe4ff5569f41f25dba9ad4f552e5ac6abe
|
[] |
no_license
|
HTplex/Storage
|
5ff1f23dfe8c05a0a8fe5354bb6bbc57cfcd5789
|
e94faac57b42d6f39c311f84bd4ccb32c52c2d30
|
refs/heads/master
| 2021-01-10T17:43:20.686441
| 2016-04-05T08:56:57
| 2016-04-05T08:56:57
| 55,478,274
| 1
| 1
| null | 2020-10-28T20:35:29
| 2016-04-05T07:43:17
|
Java
|
UTF-8
|
Java
| false
| false
| 2,048
|
java
|
/*
* *********************************************************************** *
* project: org.matsim.* *
* *
* *********************************************************************** *
* *
* copyright : (C) 2014 by the members listed in the COPYING, *
* LICENSE and WARRANTY file. *
* email : info at matsim dot org *
* *
* *********************************************************************** *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* See also COPYING, LICENSE and WARRANTY file *
* *
* *********************************************************************** *
*/
package playground.boescpa.lib.tools.scenarioAnalyzer.eventHandlers;
import org.matsim.core.events.handler.EventHandler;
import playground.boescpa.lib.tools.scenarioAnalyzer.spatialEventCutters.SpatialEventCutter;
/**
* Any new analysis to be done as part of the ScenarioAnalyzer-process has to implement this interface.
*
* @author boescpa
*/
public interface ScenarioAnalyzerEventHandler extends EventHandler {
/**
* @param spatialEventCutter
* @return Results of the analysis in form of a (multiline) string.
*/
public String createResults(SpatialEventCutter spatialEventCutter, int scaleFactor);
}
|
[
"htplex@gmail.com"
] |
htplex@gmail.com
|
bca16bb9d61bcaac2f38cfc6826db4dcce32c38a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/32/32_3f49df7d701f95c5e9bf33e5da59c87f701fd4a3/MutexTransport/32_3f49df7d701f95c5e9bf33e5da59c87f701fd4a3_MutexTransport_s.java
|
7eb40a69573e2bafa3334a0cb806ad552f088090
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,125
|
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.activemq.transport;
import java.io.IOException;
import java.util.concurrent.locks.ReentrantLock;
/**
* Thread safe Transport Filter that serializes calls to and from the Transport Stack.
*/
public class MutexTransport extends TransportFilter {
private final ReentrantLock wreiteLock = new ReentrantLock();
private boolean syncOnCommand;
public MutexTransport(Transport next) {
super(next);
this.syncOnCommand = false;
}
public MutexTransport(Transport next, boolean syncOnCommand) {
super(next);
this.syncOnCommand = syncOnCommand;
}
@Override
public void onCommand(Object command) {
if (syncOnCommand) {
wreiteLock.lock();
try {
transportListener.onCommand(command);
} finally {
wreiteLock.unlock();
}
} else {
transportListener.onCommand(command);
}
}
@Override
public FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException {
wreiteLock.lock();
try {
return next.asyncRequest(command, null);
} finally {
wreiteLock.unlock();
}
}
@Override
public void oneway(Object command) throws IOException {
wreiteLock.lock();
try {
next.oneway(command);
} finally {
wreiteLock.unlock();
}
}
@Override
public Object request(Object command) throws IOException {
wreiteLock.lock();
try {
return next.request(command);
} finally {
wreiteLock.unlock();
}
}
@Override
public Object request(Object command, int timeout) throws IOException {
wreiteLock.lock();
try {
return next.request(command, timeout);
} finally {
wreiteLock.unlock();
}
}
@Override
public String toString() {
return next.toString();
}
public boolean isSyncOnCommand() {
return syncOnCommand;
}
public void setSyncOnCommand(boolean syncOnCommand) {
this.syncOnCommand = syncOnCommand;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
04ed738aac4575d77e0ce35d5d51334d66fa9e91
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/aliding-20230426/src/main/java/com/aliyun/aliding20230426/models/SimpleListReportHeaders.java
|
b660744889d44acc06a25ee9c96cbd382549b570
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,831
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.aliding20230426.models;
import com.aliyun.tea.*;
public class SimpleListReportHeaders extends TeaModel {
@NameInMap("commonHeaders")
public java.util.Map<String, String> commonHeaders;
@NameInMap("AccountContext")
public SimpleListReportHeadersAccountContext accountContext;
public static SimpleListReportHeaders build(java.util.Map<String, ?> map) throws Exception {
SimpleListReportHeaders self = new SimpleListReportHeaders();
return TeaModel.build(map, self);
}
public SimpleListReportHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) {
this.commonHeaders = commonHeaders;
return this;
}
public java.util.Map<String, String> getCommonHeaders() {
return this.commonHeaders;
}
public SimpleListReportHeaders setAccountContext(SimpleListReportHeadersAccountContext accountContext) {
this.accountContext = accountContext;
return this;
}
public SimpleListReportHeadersAccountContext getAccountContext() {
return this.accountContext;
}
public static class SimpleListReportHeadersAccountContext extends TeaModel {
@NameInMap("accountId")
public String accountId;
public static SimpleListReportHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception {
SimpleListReportHeadersAccountContext self = new SimpleListReportHeadersAccountContext();
return TeaModel.build(map, self);
}
public SimpleListReportHeadersAccountContext setAccountId(String accountId) {
this.accountId = accountId;
return this;
}
public String getAccountId() {
return this.accountId;
}
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
ae2eecca7ad5cbbc9c272961a209c4565041c465
|
a24789efd2cb74131111acf2baf3ffff2d6e8280
|
/JavaCode/contest/weekly/n201_300/n262/N4.java
|
895d5448740cef70a031fd81742f21ba021ab738
|
[
"Apache-2.0"
] |
permissive
|
MikuSugar/LeetCode
|
15e6c7a73b296a74f4c86435c832f99021a3b6d7
|
e9cf36e52ae38d92b97e3c5c026c97e300c07971
|
refs/heads/master
| 2023-06-26T10:39:50.001158
| 2023-06-21T08:31:37
| 2023-06-21T08:31:37
| 164,054,066
| 6
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,269
|
java
|
package JavaCode.contest.weekly.n201_300.n262;
import utils.Parse;
/**
* @author mikusugar
*/
public class N4 {
//TODO
public static void main(String[] args) {
System.out.println(new N4().minimumDifference(
Parse.toIntArr("[-48132,-98242,-75860,36593,92379,-2438,44463,51332,-23848,42999,27281,46094,-36780,36131]"))
);
}
public int minimumDifference(int[] nums) {
int min = Integer.MAX_VALUE;
for (int i : nums) min = Math.min(min, i);
if (min < 0) {
for (int i = 0; i < nums.length; i++) nums[i] -= (min - 1);
}
int sum = 0;
for (int i : nums) sum += i;
int len = nums.length / 2;
boolean[][] flag = new boolean[len + 1][sum / 2 + 1];
flag[0][0] = true;
for (int i = 1; i <= nums.length; i++) {
for (int j = Math.min(i, len); j > 0; j--) {
for (int k = 0; k <= sum / 2; k++) {
if (k >= nums[i - 1] && flag[j - 1][k - nums[i - 1]]) {
flag[j][k] = true;
}
}
}
}
// 找出最接近sum/2的k值
for (int k = sum / 2; k > 0; k--) {
if (flag[len][k]) {
return Math.abs(2 * k - sum);
}
}
return -1;
}
}
/*
给你一个长度为 2 * n 的整数数组。你需要将 nums 分成 两个 长度为 n 的数组,分别求出两个数组的和,并 最小化 两个数组和之 差的绝对值 。nums 中每个元素都需要放入两个数组之一。
请你返回 最小 的数组和之差。
示例 1:
example-1
输入:nums = [3,9,7,3]
输出:2
解释:最优分组方案是分成 [3,9] 和 [7,3] 。
数组和之差的绝对值为 abs((3 + 9) - (7 + 3)) = 2 。
示例 2:
输入:nums = [-36,36]
输出:72
解释:最优分组方案是分成 [-36] 和 [36] 。
数组和之差的绝对值为 abs((-36) - (36)) = 72 。
示例 3:
example-3
输入:nums = [2,-1,0,4,-2,-9]
输出:0
解释:最优分组方案是分成 [2,4,-9] 和 [-1,0,-2] 。
数组和之差的绝对值为 abs((2 + 4 + -9) - (-1 + 0 + -2)) = 0 。
提示:
1 <= n <= 15
nums.length == 2 * n
-107 <= nums[i] <= 107
*/
|
[
"syfangjie@live.cn"
] |
syfangjie@live.cn
|
8316b5621044ee9379a97217f6fb272283fc4223
|
2f3c04382a66dbf222c8587edd67a5df4bc80422
|
/src/com/cedar/cp/impl/xmlform/rebuild/FormRebuildEditorSessionImpl.java
|
00a656cbf3541d2fb1bffa897588d101839ccbcf
|
[] |
no_license
|
arnoldbendaa/cppro
|
d3ab6181cc51baad2b80876c65e11e92c569f0cc
|
f55958b85a74ad685f1360ae33c881b50d6e5814
|
refs/heads/master
| 2020-03-23T04:18:00.265742
| 2018-09-11T08:15:28
| 2018-09-11T08:15:28
| 141,074,966
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,600
|
java
|
// Decompiled by: Fernflower v0.8.6
// Date: 12.08.2012 13:05:20
// Copyright: 2008-2012, Stiver
// Home page: http://www.neshkov.com/ac_decompiler.html
package com.cedar.cp.impl.xmlform.rebuild;
import com.cedar.cp.api.base.CPException;
import com.cedar.cp.api.base.EntityList;
import com.cedar.cp.api.base.ValidationException;
import com.cedar.cp.api.xmlform.rebuild.FormRebuildEditor;
import com.cedar.cp.api.xmlform.rebuild.FormRebuildEditorSession;
import com.cedar.cp.dto.xmlform.rebuild.FormRebuildEditorSessionSSO;
import com.cedar.cp.dto.xmlform.rebuild.FormRebuildImpl;
import com.cedar.cp.ejb.api.xmlform.rebuild.FormRebuildEditorSessionServer;
import com.cedar.cp.impl.base.BusinessSessionImpl;
import com.cedar.cp.impl.xmlform.rebuild.FormRebuildEditorImpl;
import com.cedar.cp.impl.xmlform.rebuild.FormRebuildsProcessImpl;
import com.cedar.cp.util.Log;
public class FormRebuildEditorSessionImpl extends BusinessSessionImpl implements FormRebuildEditorSession {
protected FormRebuildEditorSessionSSO mServerSessionData;
protected FormRebuildImpl mEditorData;
protected FormRebuildEditorImpl mClientEditor;
private Log mLog = new Log(this.getClass());
public FormRebuildEditorSessionImpl(FormRebuildsProcessImpl process, Object key) throws ValidationException {
super(process);
try {
if(key == null) {
this.mServerSessionData = this.getSessionServer().getNewItemData();
} else {
this.mServerSessionData = this.getSessionServer().getItemData(key);
}
} catch (ValidationException var4) {
throw var4;
} catch (Exception var5) {
throw new RuntimeException("Can\'t get FormRebuild", var5);
}
this.mEditorData = this.mServerSessionData.getEditorData();
}
protected FormRebuildEditorSessionServer getSessionServer() throws CPException {
return new FormRebuildEditorSessionServer(this.getConnection());
}
public FormRebuildEditor getFormRebuildEditor() {
if(this.mClientEditor == null) {
this.mClientEditor = new FormRebuildEditorImpl(this, this.mServerSessionData, this.mEditorData);
this.mActiveEditors.add(this.mClientEditor);
}
return this.mClientEditor;
}
public Object getPrimaryKey() {
return this.mEditorData.getPrimaryKey();
}
public EntityList getAvailableModels() {
try {
return this.getSessionServer().getAvailableModels();
} catch (Exception var2) {
throw new RuntimeException("unexpected exceptio", var2);
}
}
public EntityList getOwnershipRefs() {
try {
return this.getSessionServer().getOwnershipRefs(this.mEditorData.getPrimaryKey());
} catch (Exception var2) {
throw new RuntimeException("unexpected exceptio", var2);
}
}
public Object persistModifications(boolean cloneOnSave) throws CPException, ValidationException {
if(this.mClientEditor != null) {
this.mClientEditor.saveModifications();
}
if(this.mEditorData.getPrimaryKey() == null) {
this.mEditorData.setPrimaryKey(this.getSessionServer().insert(this.mEditorData));
} else if(cloneOnSave) {
this.mEditorData.setPrimaryKey(this.getSessionServer().copy(this.mEditorData));
} else {
this.getSessionServer().update(this.mEditorData);
}
return this.mEditorData.getPrimaryKey();
}
public void terminate() {}
}
|
[
"arnoldbendaa@gmail.com"
] |
arnoldbendaa@gmail.com
|
fab7dffdab43023f40222b21008e32b8a9ffe0b0
|
d6d15b33bb686c2c343cd4fb4aba0246011237c8
|
/renren-fast/src/main/java/io/renren/RenrenAdminApplication.java
|
777fe78b97c9d91d8fb4f6d4b00a57ef50e4c8c6
|
[
"Apache-2.0"
] |
permissive
|
xionglongxiang/gulimall
|
203b8d54efd196e3ffad43521e25d33471c95d03
|
a92f700d266b610427f84d2a686ba9f0c49973b4
|
refs/heads/master
| 2023-07-10T00:16:16.740580
| 2021-08-09T13:42:41
| 2021-08-09T13:42:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 448
|
java
|
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package io.renren;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class RenrenAdminApplication {
public static void main(String[] args) {
SpringApplication.run(RenrenAdminApplication.class, args);
}
}
|
[
"704566072@qq.com"
] |
704566072@qq.com
|
e062ebbd631937e121b03cb95ebd49fc90ed1871
|
f0b239c27fa79554250d6c2f517643b6f708c0ef
|
/restful/src/com/vteba/user/service/UserServiceImpl.java
|
694c499d99d6a439dfafd48d442ccfaf9af7f134
|
[] |
no_license
|
CRayFish07/restful
|
742f3036dc432bfb93c7bb49adf54ee5ee96bb4e
|
73176ac827ae2edef408281d6d7229db9d67b01f
|
refs/heads/master
| 2021-01-18T17:53:29.443647
| 2015-05-22T15:34:14
| 2015-05-22T15:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 410
|
java
|
package com.vteba.user.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.vteba.user.model.User;
@Service
public class UserServiceImpl {
private static final Logger LOGGER = LoggerFactory.getLogger(UserServiceImpl.class);
public Long save(User user) {
LOGGER.debug("保存user=[{}].", user);
return 21L;
}
}
|
[
"tongku2008@126.com"
] |
tongku2008@126.com
|
a2d3ae3d591d65ac98315466c03e990668f65ee4
|
dfa46dd73ac209d46a87f49f314614538d209df7
|
/src/main/java/com/lyb/client/processor/impl/Processor_1006_3.java
|
33c7c31bd37cfb7fdd36d41dca06eaad58f3c095
|
[] |
no_license
|
safziy/lyb_client
|
a580fb596bc9d3b91db9d1d8d2166d480c31e746
|
b2842186f63136309ddd150837352cf63cfb5b9a
|
refs/heads/master
| 2020-12-31T04:28:49.347905
| 2016-01-15T09:28:15
| 2016-01-15T09:28:15
| 45,508,000
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,211
|
java
|
package com.lyb.client.processor.impl;
import java.util.Map;
import com.lyb.client.context.ConfigContext;
import com.lyb.client.log.LogUtil;
import com.lyb.client.manager.PlayerManager;
import com.lyb.client.message.protocol.Message_1006_3;
import com.lyb.client.message.protocol.segment.ItemIdArray.ItemIdArrayItem;
import com.lyb.client.processor.IMessageProcessor;
import com.lyb.client.utils.ValidateUtils;
/**
* 返回 抽卡牌
*
* @author codeGenerator
*
*/
public class Processor_1006_3 extends IMessageProcessor<Message_1006_3> {
@Override
public void execute(PlayerManager playerManager, Message_1006_3 message) throws Exception {
StringBuilder sb = new StringBuilder();
for (ItemIdArrayItem item : message.getItemIdArray().list()) {
Map<String, String> map = ConfigContext.getInstance().getFileRow("Daoju_Daojubiao.lua",
String.valueOf(item.getItemId()));
if(ValidateUtils.isNull(map) || map.size() <= 0){
continue;
}
sb.append(map.get("name")).append("*").append(item.getCount()).append(" ");
}
LogUtil.info("抽卡的结果==> " + sb.toString());
playerManager.getChoukaManager().calc(message.getItemIdArray());
}
}
|
[
"787395455@qq.com"
] |
787395455@qq.com
|
f14089c6f709f7572058c2644075f0f366cf5e01
|
22d93e73b4b829b6b8b64b09ea8ef7c676a6806a
|
/2.JavaCore/src/com/javarush/task/task17/task1705/Solution.java
|
c3dc9541892580e184d3f8ca3d0d21c3882ab2ed
|
[] |
no_license
|
Sekator778/JavaRushTasks
|
99b2844deaf42626704d23c8a83f75bd1a3661cb
|
82f1801395fd53dc7ffacd1d902115475c4e8601
|
refs/heads/master
| 2022-12-05T06:33:42.385482
| 2020-12-20T17:51:00
| 2020-12-20T17:51:00
| 243,021,523
| 2
| 0
| null | 2022-11-16T01:33:26
| 2020-02-25T14:35:20
|
Roff
|
UTF-8
|
Java
| false
| false
| 3,057
|
java
|
package com.javarush.task.task17.task1705;
import java.util.ArrayList;
import java.util.List;
/*
Сад-огород
Сад-огород
1. Создай метод public void addFruit(int index, String fruit) - который добавляет параметр fruit в лист fruits на позицию index.
2. Создай метод public void removeFruit(int index) - который удаляет из fruits элемент с индексом index.
3. Создай метод public void addVegetable(int index, String vegetable) - который добавляет параметр vegetable в лист vegetables на позицию index.
4. Создай метод public void removeVegetable(int index) - который удаляет из vegetables элемент с индексом index.
5. Класс Garden будет использоваться нитями. Поэтому сделай так, чтобы все методы блокировали мьютекс this.
6. Реализуй это минимальным количеством кода.
Требования:
1. Класс Garden должен содержать метод public void addFruit(int index, String fruit).
2. Класс Garden должен содержать метод public void removeFruit(int index).
3. Класс Garden должен содержать метод public void addVegetable(int index, String vegetable).
4. Класс Garden должен содержать метод public void removeVegetable(int index).
5. Метод addFruit(int index, String fruit) должен добавлять параметр fruit в лист fruits на позицию index.
6. Метод removeFruit(int index) должен удалять из fruits элемент с индексом index.
7. Метод addVegetable(int index, String vegetable) должен добавлять параметр vegetable в лист vegetables на позицию index.
8. Метод removeVegetable(int index) должен удалять из vegetables элемент с индексом index.
9. Все методы класса Garden должны блокировать мьютекс this (быть синхронизированы).
*/
public class Solution {
public static void main(String[] args) {
}
public static class Garden {
public final List<String> fruits = new ArrayList<String>();
public final List<String> vegetables = new ArrayList<String>();
public synchronized void addFruit ( int index, String fruit){//Добавляем везде синхронизацию в методах
fruits.add(index, fruit);
}
public synchronized void removeFruit(int index) {
fruits.remove(index);
}
public synchronized void addVegetable(int index, String vegetable) {
vegetables.add(index, vegetable);
}
public synchronized void removeVegetable(int index) {
vegetables.remove(index);
}
}
}
|
[
"sekator778@gmail.com"
] |
sekator778@gmail.com
|
16ac9e87a5ad7f70d9b03f4da14f158e36330ea4
|
236b2da5d748ef26a90d66316b1ad80f3319d01e
|
/trunk/core/src/main/java/org/marketcetera/trade/UserID.java
|
4a78c7621be28e74296f41bbbd6146ab77227a61
|
[
"Apache-2.0"
] |
permissive
|
nagyist/marketcetera
|
a5bd70a0369ce06feab89cd8c62c63d9406b42fd
|
4f3cc0d4755ee3730518709412e7d6ec6c1e89bd
|
refs/heads/master
| 2023-08-03T10:57:43.504365
| 2023-07-25T08:37:53
| 2023-07-25T08:37:53
| 19,530,179
| 0
| 2
|
Apache-2.0
| 2023-07-25T08:37:54
| 2014-05-07T10:22:59
|
Java
|
UTF-8
|
Java
| false
| false
| 1,669
|
java
|
package org.marketcetera.trade;
import org.marketcetera.util.misc.ClassVersion;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlValue;
/* $License$ */
/**
* Instances of this class uniquely identify a user (trader).
*
* @author tlerios@marketcetera.com
* @since 1.5.0
* @version $Id: UserID.java 16154 2012-07-14 16:34:05Z colin $
*/
@XmlAccessorType(XmlAccessType.FIELD)
@ClassVersion("$Id: UserID.java 16154 2012-07-14 16:34:05Z colin $")
public class UserID implements Serializable {
/**
* Returns the long value of the ID.
*
* @return the long value of the ID.
*/
public long getValue() {
return mValue;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserID that = (UserID) o;
return (mValue==that.mValue);
}
@Override
public int hashCode() {
return (int)mValue;
}
@Override
public String toString() {
return String.valueOf(getValue());
}
/**
* Creates an instance.
*
* @param inValue the long ID value.
*/
public UserID(long inValue) {
mValue = inValue;
}
/**
* Creates a new ID. This empty constructor is intended for use
* by JAXB.
*/
protected UserID() {
mValue = 0;
}
@XmlValue
private final long mValue;
private static final long serialVersionUID = 1L;
}
|
[
"nagyist@mailbox.hu"
] |
nagyist@mailbox.hu
|
212ffdf3eb4c8e2f09e9bfec885fa15fe140e1c7
|
f286c1ffaffe6a01f8b85feaed361e092911cfab
|
/src/main/java/com/bosssoft/install/nontax/windows/action/CheckEnviromment.java
|
97ed778b0f998f7d880d3480141c160729572b14
|
[] |
no_license
|
105032013072/agency-efolder-windows
|
8761145b838a8ece7483bc20848d1fb0f10d796a
|
0ac70c7b2ec3eb815e1fe3042c11239d73cf9091
|
refs/heads/master
| 2022-09-25T01:52:25.968130
| 2019-07-10T03:25:12
| 2019-07-10T03:25:12
| 196,112,033
| 0
| 0
| null | 2022-06-21T01:25:54
| 2019-07-10T01:58:38
|
Java
|
UTF-8
|
Java
| false
| false
| 2,357
|
java
|
package com.bosssoft.install.nontax.windows.action;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.nio.Buffer;
import java.util.Map;
import java.util.Set;
import com.bosssoft.platform.installer.core.IContext;
import com.bosssoft.platform.installer.core.InstallException;
import com.bosssoft.platform.installer.core.MainFrameController;
import com.bosssoft.platform.installer.core.action.IAction;
import com.bosssoft.platform.installer.core.option.ResourceDef;
import com.bosssoft.platform.installer.core.option.ResourceDefHelper;
import com.bosssoft.platform.installer.core.util.I18nUtil;
import com.bosssoft.platform.installer.wizard.util.ServerUtil;
public class CheckEnviromment implements IAction{
public void execute(IContext context, Map params) throws InstallException {
Map<String,ResourceDef> resourceMap=ResourceDefHelper.getResourceMap();
//应用服务器
String appName=context.getStringValue("APP_SERVER_NAME");
Integer port=Integer.valueOf(context.getStringValue("APP_SERVER_PORT"));
ResourceDef newdef=new ResourceDef();
newdef.setName(appName);
newdef.addPort(port);
resourceMap.put(appName, newdef);
for (Map.Entry<String, ResourceDef> entry: resourceMap.entrySet()) {
ResourceDef def=entry.getValue();
if(def.getPorts().size()!=0){
//检测是否有进程占用端口
Set<Integer> pids=ServerUtil.searchProcess4Win(def.getPorts());
if(pids.size()!=0){
try {
showMessage(entry.getKey(),pids);
} catch (Exception e) {
throw new InstallException(e);
}
}
}
}
resourceMap.remove(appName);
}
private void showMessage(String serverName, Set<Integer> pids) throws Exception{
Boolean flag=true;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String read=null;
System.out.println(serverName+I18nUtil.getString("CONFIG.RUNEVN.PORTCONFLICT"));
while(flag){
read=br.readLine();
if("Y".equalsIgnoreCase(read)){
ServerUtil.killWithPid4Win(pids);
flag=false;
}else if("N".equalsIgnoreCase(read)){
flag=false;
System.exit(0);
}else{
System.out.println(I18nUtil.getString("CONFIG.RUNEVN.PORTCONFLICT.ILLAGALINPUT"));
}
}
}
public void rollback(IContext context, Map params) throws InstallException {
// TODO Auto-generated method stub
}
}
|
[
"1337893145@qq.com"
] |
1337893145@qq.com
|
bcef7af75746a75c5dd6fa71356a355ba46d83df
|
b03505a3aa12c8dabe281e6ebe662782c9de6ef7
|
/src/com/javamasterclass/lists/JDKLinkedList.java
|
7dd3a687d76033c2f0c761c54021a1d00800a157
|
[] |
no_license
|
portnovtest/DataStructuresAndAlgorithms
|
b7e3415373a2a18a9e5ee63e52c120faebd0ae0c
|
a1889035438d3d471c60bf797cee64d4a88b4a0a
|
refs/heads/master
| 2023-03-23T08:48:31.339022
| 2021-03-16T20:34:00
| 2021-03-16T20:34:00
| 344,948,473
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,547
|
java
|
package com.javamasterclass.lists;
import java.util.Iterator;
import java.util.LinkedList;
public class JDKLinkedList {
public static void main(String[] args) {
Employee janeJones = new Employee("Jane", "Jones", 123);
Employee johnDoe = new Employee("John", "Doe", 4567);
Employee marySmith = new Employee("Mary", "Smith", 22);
Employee mikeWilson = new Employee("Mike", "Wilson", 3245);
Employee billEnd = new Employee("Bill", "End", 78);
LinkedList<Employee> list = new LinkedList<>();
list.addFirst(janeJones);
list.addFirst(johnDoe);
list.addFirst(marySmith);
list.addFirst(mikeWilson);
Iterator<Employee> iter = list.iterator();
System.out.print("HEAD -> ");
while (iter.hasNext()){
System.out.print(iter.next());
System.out.print("<=>");
}
System.out.println("null");
list.add(billEnd);
iter = list.iterator();
System.out.print("HEAD -> ");
while (iter.hasNext()){
System.out.print(iter.next());
System.out.print("<=>");
}
System.out.println("null");
list.removeFirst();
iter = list.iterator();
System.out.print("HEAD -> ");
while (iter.hasNext()){
System.out.print(iter.next());
System.out.print("<=>");
}
System.out.println("null");
// for (Employee employee : list) {
// System.out.println(employee);
// }
}
}
|
[
"phildolganov@yahoo.com"
] |
phildolganov@yahoo.com
|
ccf6e8fb475491e88e1b6146f448943f590c2c63
|
efa7935f77f5368e655c072b236d598059badcff
|
/src/com/sammyun/controller/shop/member/MemberController.java
|
c75968611c6491205cf0694b08d0f1b410f40fe3
|
[] |
no_license
|
ma-xu/Library
|
c1404f4f5e909be3e5b56f9884355e431c40f51b
|
766744898745f8fad31766cafae9fd4db0318534
|
refs/heads/master
| 2022-02-23T13:34:47.439654
| 2016-06-03T11:27:21
| 2016-06-03T11:27:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,463
|
java
|
/*
* Copyright 2012-2014 sammyun.com.cn. All rights reserved.
* Support: http://www.sammyun.com.cn
* License: http://www.sammyun.com.cn/license
*/
package com.sammyun.controller.shop.member;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.sammyun.controller.shop.BaseController;
import com.sammyun.entity.Member;
import com.sammyun.service.MemberService;
import com.sammyun.service.RSAService;
import com.sammyun.service.message.MessageService;
/**
* Controller - 会员中心
*
*/
@Controller("shopMemberController")
@RequestMapping("/member")
public class MemberController extends BaseController
{
@Resource(name = "memberServiceImpl")
private MemberService memberService;
@Resource(name = "messageServiceImpl")
private MessageService messageService;
@Resource(name = "rsaServiceImpl")
private RSAService rsaService;
/**
* 首页
*/
@RequestMapping(value = "/index", method = RequestMethod.GET)
public String index(Integer pageNumber, ModelMap model)
{
Member member = memberService.getCurrent();
model.addAttribute("messageCount", messageService.count(member, false));
return "shop/member/index";
}
}
|
[
"melody@maxudeMacBook-Pro.local"
] |
melody@maxudeMacBook-Pro.local
|
4b145c78e3c57a146b8e8cf6ef714ad82162fe65
|
281119dc7e9fd02a0ccc48154cab92e0a654795e
|
/vavi-crypt-sandbox/src/main/java/org/jstk/asn1/ASN1OctetString.java
|
00aa7c8d1f67c86b54ce66c67c5700a659516437
|
[
"BSD-3-Clause"
] |
permissive
|
markcox/umjammer
|
0419b94b3ae67574c0c1e9b91491f5b389630480
|
0209116a1a869e269744133fac9f9be2403f9691
|
refs/heads/master
| 2021-01-18T09:38:52.234528
| 2012-06-25T08:32:54
| 2012-06-25T08:32:54
| 32,257,152
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,492
|
java
|
/*
* @(#) $Id: ASN1OctetString.java,v 1.1.1.1 2003/10/05 18:39:11 pankaj_kumar Exp $
*
* Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net).
* All rights reserved.
*
* The license governing the use of this file can be found in the
* root directory of the containing software.
*/
package org.jstk.asn1;
/**
* ASN1OctetString.
*
* @author <a href="mailto:vavivavi@yahoo.co.jp">Naohide Sano</a> (nsano)
* @version 0.00 050317 nsano initial version <br>
*/
public class ASN1OctetString extends ASN1Type {
private static char[] hexChars = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
public ASN1OctetString() {
super(UNIVERSAL, NONE, OCTET_STRING, OCTET_STRING);
}
public String toString() {
if (value == null) {
return "ASN1OctetString: null";
}
StringBuffer sb = new StringBuffer();
for (int i = 0; i < value.length; i++) {
byte cbyte = value[i];
sb.append(hexChars[(0x000000f0 & cbyte) >> 4]);
sb.append(hexChars[(0x0000000f & cbyte)]);
}
return "ASN1OctetString: " + sb.toString();
}
public static void main(String[] args) {
byte[] bytes = {
(byte) 0xf1, (byte) 0xc1
};
ASN1OctetString os = new ASN1OctetString();
os.setValue(bytes);
System.out.println(os.toString());
}
}
|
[
"umjammer@00cfdfb4-7834-11de-ac83-69fcb5c178b1"
] |
umjammer@00cfdfb4-7834-11de-ac83-69fcb5c178b1
|
7cd3b137900161751c16c2d69aaed8a458016eca
|
24a3905149c370a107e08d6896b79d6d73d2593d
|
/branch/i4c_lps/src/app/org/i4change/app/utils/mappings/StructureMethodList.java
|
35a88bee0c0fc7111a5c20d55a8fe1c9cda2f092
|
[] |
no_license
|
lucyclevelromeeler/ezmodeler-svn-to-git
|
2060dfb81b1441d3946ac8b7332675d3755cc208
|
030ccbaf4f22d28b2f3c34b52500b00e53bfe08e
|
refs/heads/master
| 2023-03-18T06:39:16.243918
| 2015-12-28T14:38:20
| 2015-12-28T14:38:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,150
|
java
|
package org.i4change.app.utils.mappings;
import java.util.LinkedHashMap;
import java.lang.reflect.Method;
import java.lang.reflect.Field;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.lang.StringUtils;
public class StructureMethodList {
private static final Log log = LogFactory.getLog(StructureMethodList.class);
private StructureMethodList() {}
private static StructureMethodList instance = null;
public static synchronized StructureMethodList getInstance() {
if (instance == null) {
instance = new StructureMethodList();
}
return instance;
}
/*
*
*/
public LinkedHashMap<String,LinkedHashMap<String,Object>> parseClassToMethodList(Class targetClass){
try {
LinkedHashMap<String,LinkedHashMap<String,Object>> returnMap = new LinkedHashMap<String,LinkedHashMap<String,Object>>();
for (Field field : targetClass.getDeclaredFields()) {
String fieldName = field.getName();
Class fieldTypeClass = field.getType();
//log.error("fieldTypeClass Name " + fieldTypeClass.getName() );
String capitalizedFieldName = StringUtils.capitalize(fieldName);
String setterPre = "set";
Method method = targetClass.getMethod(setterPre + capitalizedFieldName, fieldTypeClass);
String methodName = method.getName();
Class[] paramTypes = method.getParameterTypes();
//log.error("parseClassToMethodList methodName: "+methodName);
if (methodName.startsWith("set")) {
//Found setter get Attribute name
if (returnMap.get(fieldName)!=null) {
LinkedHashMap<String,Object> methodListMap = returnMap.get(fieldName);
methodListMap.put("setter", methodName);
methodListMap.put("setterParamTypes", paramTypes);
} else {
LinkedHashMap<String,Object> methodListMap = new LinkedHashMap<String,Object>();
methodListMap.put("setter", methodName);
returnMap.put(fieldName, methodListMap);
methodListMap.put("setterParamTypes", paramTypes);
}
} else if (methodName.startsWith("is")) {
//Found setter(boolean) get Attribute name
if (returnMap.get(fieldName)!=null) {
LinkedHashMap<String,Object> methodListMap = returnMap.get(fieldName);
methodListMap.put("getter", methodName);
} else {
LinkedHashMap<String,Object> methodListMap = new LinkedHashMap<String,Object>();
methodListMap.put("getter", methodName);
returnMap.put(fieldName, methodListMap);
}
} else if (methodName.startsWith("get")) {
//Found setter(boolean) get Attribute name
if (returnMap.get(fieldName)!=null) {
LinkedHashMap<String,Object> methodListMap = returnMap.get(fieldName);
methodListMap.put("getter", methodName);
} else {
LinkedHashMap<String,Object> methodListMap = new LinkedHashMap<String,Object>();
methodListMap.put("getter", methodName);
returnMap.put(fieldName, methodListMap);
}
}
}
return returnMap;
} catch (Exception ex) {
log.error("[parseClassToMethodList]",ex);
return new LinkedHashMap<String,LinkedHashMap<String,Object>>();
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
65673235032fec20a396941455d9ccfcc3ace4ff
|
a3a06ca27ecad4b4674694387561d97d4920da47
|
/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/model/impl/MultiPathDefinition.java
|
8433227dc7832f263ee5f0b5304f5bdd4ece07e4
|
[
"Apache-2.0"
] |
permissive
|
danielzhe/kie-wb-common
|
71e777afc9c518c52f307f33230850bacfcb2013
|
e12a7deeb73befb765939e7185f95b2409715b41
|
refs/heads/main
| 2022-08-24T12:01:21.180766
| 2022-03-29T07:55:56
| 2022-03-29T07:55:56
| 136,397,477
| 1
| 0
|
Apache-2.0
| 2020-08-06T14:50:34
| 2018-06-06T23:43:53
|
Java
|
UTF-8
|
Java
| false
| false
| 1,370
|
java
|
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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.kie.workbench.common.stunner.svg.gen.model.impl;
import com.ait.lienzo.client.core.shape.MultiPath;
public class MultiPathDefinition extends AbstractShapeDefinition<MultiPath> {
private final String path;
public MultiPathDefinition(final String id,
final String path) {
super(id);
this.path = path;
}
@Override
public Class<MultiPath> getViewType() {
return MultiPath.class;
}
public String getPath() {
return path;
}
@Override
public String toString() {
return this.getClass().getName()
+ " [x=" + getX() + "]"
+ " [y =" + getY() + "]"
+ " [path=" + path + "]";
}
}
|
[
"manstis@users.noreply.github.com"
] |
manstis@users.noreply.github.com
|
3933ed6b5ad289f30b34fb9662895dc058b3e6cf
|
6f50920881d0239881f67cad6def125243f08998
|
/E01DefiningClasses/E01Google/Company.java
|
b12889239028329c55e199bec022ff2546a9d938
|
[] |
no_license
|
ViktorDimitrov1989/JavaOOP_Fundamentals
|
06102cdd51877d56a956ceac28120bb89f3c55b8
|
f3eff90f59ee5c8f2bf9b20a24f3961fdc1d37cc
|
refs/heads/master
| 2021-01-20T13:59:12.522380
| 2017-03-02T10:08:38
| 2017-03-02T10:08:38
| 82,727,535
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 675
|
java
|
package E01DefiningClasses.E01Google;
public class Company {
private String name;
private String department;
private double sallary;
public Company(String name, String department, double salary){
this.name = name;
this.department = department;
this.sallary = salary;
}
public String getName() {
return this.name;
}
public String getDepartment() {
return this.department;
}
public double getSalary() {
return this.sallary;
}
@Override
public String toString() {
return String.format("%s %s %.2f", this.getName(), this.getDepartment(), this.getSalary());
}
}
|
[
"viktor.dimitrov.1989@gmail.com"
] |
viktor.dimitrov.1989@gmail.com
|
90f90bd42f3037b96f61029c538885113759ae15
|
6ef4869c6bc2ce2e77b422242e347819f6a5f665
|
/devices/google/Pixel 2/29/QPP6.190730.005/src/framework/android/hardware/radio/V1_0/LceStatusInfo.java
|
1edf45f08b6becf4c4a4457cc2d87de0d4a0fa2b
|
[] |
no_license
|
hacking-android/frameworks
|
40e40396bb2edacccabf8a920fa5722b021fb060
|
943f0b4d46f72532a419fb6171e40d1c93984c8e
|
refs/heads/master
| 2020-07-03T19:32:28.876703
| 2019-08-13T03:31:06
| 2019-08-13T03:31:06
| 202,017,534
| 2
| 0
| null | 2019-08-13T03:33:19
| 2019-08-12T22:19:30
|
Java
|
UTF-8
|
Java
| false
| false
| 3,303
|
java
|
/*
* Decompiled with CFR 0.145.
*/
package android.hardware.radio.V1_0;
import android.hardware.radio.V1_0.LceStatus;
import android.os.HidlSupport;
import android.os.HwBlob;
import android.os.HwParcel;
import java.util.ArrayList;
import java.util.Objects;
public final class LceStatusInfo {
public byte actualIntervalMs;
public int lceStatus;
public static final ArrayList<LceStatusInfo> readVectorFromParcel(HwParcel hwParcel) {
ArrayList<LceStatusInfo> arrayList = new ArrayList<LceStatusInfo>();
Object object = hwParcel.readBuffer(16L);
int n = ((HwBlob)object).getInt32(8L);
HwBlob hwBlob = hwParcel.readEmbeddedBuffer(n * 8, ((HwBlob)object).handle(), 0L, true);
arrayList.clear();
for (int i = 0; i < n; ++i) {
object = new LceStatusInfo();
((LceStatusInfo)object).readEmbeddedFromParcel(hwParcel, hwBlob, i * 8);
arrayList.add((LceStatusInfo)object);
}
return arrayList;
}
public static final void writeVectorToParcel(HwParcel hwParcel, ArrayList<LceStatusInfo> arrayList) {
HwBlob hwBlob = new HwBlob(16);
int n = arrayList.size();
hwBlob.putInt32(8L, n);
hwBlob.putBool(12L, false);
HwBlob hwBlob2 = new HwBlob(n * 8);
for (int i = 0; i < n; ++i) {
arrayList.get(i).writeEmbeddedToBlob(hwBlob2, i * 8);
}
hwBlob.putBlob(0L, hwBlob2);
hwParcel.writeBuffer(hwBlob);
}
public final boolean equals(Object object) {
if (this == object) {
return true;
}
if (object == null) {
return false;
}
if (object.getClass() != LceStatusInfo.class) {
return false;
}
object = (LceStatusInfo)object;
if (this.lceStatus != ((LceStatusInfo)object).lceStatus) {
return false;
}
return this.actualIntervalMs == ((LceStatusInfo)object).actualIntervalMs;
}
public final int hashCode() {
return Objects.hash(HidlSupport.deepHashCode(this.lceStatus), HidlSupport.deepHashCode(this.actualIntervalMs));
}
public final void readEmbeddedFromParcel(HwParcel hwParcel, HwBlob hwBlob, long l) {
this.lceStatus = hwBlob.getInt32(0L + l);
this.actualIntervalMs = hwBlob.getInt8(4L + l);
}
public final void readFromParcel(HwParcel hwParcel) {
this.readEmbeddedFromParcel(hwParcel, hwParcel.readBuffer(8L), 0L);
}
public final String toString() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("{");
stringBuilder.append(".lceStatus = ");
stringBuilder.append(LceStatus.toString(this.lceStatus));
stringBuilder.append(", .actualIntervalMs = ");
stringBuilder.append(this.actualIntervalMs);
stringBuilder.append("}");
return stringBuilder.toString();
}
public final void writeEmbeddedToBlob(HwBlob hwBlob, long l) {
hwBlob.putInt32(0L + l, this.lceStatus);
hwBlob.putInt8(4L + l, this.actualIntervalMs);
}
public final void writeToParcel(HwParcel hwParcel) {
HwBlob hwBlob = new HwBlob(8);
this.writeEmbeddedToBlob(hwBlob, 0L);
hwParcel.writeBuffer(hwBlob);
}
}
|
[
"me@paulo.costa.nom.br"
] |
me@paulo.costa.nom.br
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.