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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de7ded9e4558da9ec43073516e2e03f3898b1902
|
0ca17d01d38019448847d1473cf8e7a236b0a6fe
|
/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/proto/ProtoRegistryProviderApi.java
|
43a06c2877069d6279829593d853f9baf3a46dc2
|
[
"Apache-2.0"
] |
permissive
|
deeglaze/bazel
|
a48c12a23902983197c3057cd5f850a6b6cc2293
|
9c8ffc9bf6d32b72b74f02842fe9800a4444c079
|
refs/heads/master
| 2023-01-10T12:51:23.992792
| 2020-11-09T20:40:04
| 2020-11-09T20:40:04
| 125,929,499
| 0
| 0
|
Apache-2.0
| 2018-03-19T22:47:32
| 2018-03-19T22:39:57
|
Java
|
UTF-8
|
Java
| false
| false
| 1,778
|
java
|
// Copyright 2019 The Bazel Authors. 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.google.devtools.build.lib.starlarkbuildapi.proto;
import com.google.devtools.build.docgen.annot.DocCategory;
import com.google.devtools.build.lib.collect.nestedset.Depset;
import com.google.devtools.build.lib.starlarkbuildapi.FileApi;
import com.google.devtools.build.lib.starlarkbuildapi.core.StructApi;
import net.starlark.java.annot.StarlarkBuiltin;
import net.starlark.java.annot.StarlarkMethod;
import net.starlark.java.eval.Sequence;
/** Provides information about flavors for all built protos. */
@StarlarkBuiltin(
name = "ProtoRegistryProvider",
doc = "Information about flavors for all built protos.",
category = DocCategory.PROVIDER)
public interface ProtoRegistryProviderApi<FileT extends FileApi> extends StructApi {
@StarlarkMethod(name = "jars", documented = false, doc = "", structField = true)
Depset /*<FileT>*/ getJars();
@StarlarkMethod(name = "flavors", documented = false, doc = "", structField = true)
Sequence<String> getFlavors();
@StarlarkMethod(
name = "errorMessage",
documented = false,
doc = "",
structField = true,
allowReturnNones = true)
String getError();
}
|
[
"copybara-worker@google.com"
] |
copybara-worker@google.com
|
0d6ed331cca706f10dc50574c3763b3c7f2ee004
|
0c454e8bf2de60c0637aaa969db0d08c7144b52b
|
/AIIM_DAL/test/com/orifound/aiim/dal/dao/sqlserver/impl/test/UserChargeUserInfoDaoImplTest.java
|
1b4f5c54abd504cee2967ae530a309654665f4dc
|
[
"Apache-2.0"
] |
permissive
|
tianxianxu/aiim
|
bf9cf49ce2b3505b1048fe82358ab3d11e70dac8
|
7da240910223f539a5908e6d3c3ce124d976dd01
|
refs/heads/master
| 2022-04-06T11:24:37.095248
| 2020-02-27T12:05:38
| 2020-02-27T12:05:38
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,456
|
java
|
/**
*
*/
package com.orifound.aiim.dal.dao.sqlserver.impl.test;
import static org.junit.Assert.*;
import java.util.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.orifound.aiim.dal.dao.sqlserver.impl.UserChargeUserInfoDaoImpl;
import com.orifound.aiim.entity.ErrInfo;
import com.orifound.aiim.entity.UserChargeUserInfo;
/**
* 用户代工信息DAO实现的测试类
*
*/
public class UserChargeUserInfoDaoImplTest
{
//DAO实现类
private static UserChargeUserInfoDaoImpl DaoImpl = new UserChargeUserInfoDaoImpl();
//错误信息对象
private static ErrInfo pErrInfo = null;
@BeforeClass
public static void setUpBeforeClass() throws Exception
{
//数据源注入
DaoImpl.setDataSource(AIIMDataSource.getInstance().getDataSource());
}
@AfterClass
public static void tearDownAfterClass() throws Exception
{
DaoImpl = null;
pErrInfo = null;
}
@Before
public void setUp() throws Exception
{
pErrInfo = new ErrInfo();
}
@After
public void tearDown() throws Exception
{
pErrInfo = null;
}
/**
* Test method for {@link com.orifound.aiim.dal.dao.sqlserver.impl.UserChargeUserInfoDaoImpl#save(com.orifound.aiim.entity.UserChargeUserInfo, com.orifound.aiim.entity.ErrInfo)}.
*/
@Test
public void testSave()
{
fail("Not yet implemented");
}
/**
* Test method for {@link com.orifound.aiim.dal.dao.sqlserver.impl.UserChargeUserInfoDaoImpl#delete(com.orifound.aiim.entity.UserChargeUserInfo, com.orifound.aiim.entity.ErrInfo)}.
*/
@Test
public void testDelete()
{
fail("Not yet implemented");
}
/**
* Test method for {@link com.orifound.aiim.dal.dao.sqlserver.impl.UserChargeUserInfoDaoImpl#update(com.orifound.aiim.entity.UserChargeUserInfo, com.orifound.aiim.entity.ErrInfo)}.
*/
@Test
public void testUpdate()
{
fail("Not yet implemented");
}
/**
* Test method for {@link com.orifound.aiim.dal.dao.sqlserver.impl.UserChargeUserInfoDaoImpl#findByUserID(int, java.util.List, com.orifound.aiim.entity.ErrInfo)}.
*/
@Test
public void testFindByUserID()
{
int pID=3;
List<UserChargeUserInfo> userChargeUserInfos=new ArrayList<UserChargeUserInfo>();
if (DaoImpl.findByUserID(pID, userChargeUserInfos, pErrInfo)==false)
{
fail(pErrInfo.toShortString());
}
else
{
System.out.println("testFindByUserID 查询结果集数量: "+userChargeUserInfos.size());
}
}
}
|
[
"jsjxsy@gmail.com"
] |
jsjxsy@gmail.com
|
2df4ad35589ba51e7b0c6edd46b9c96aadbd8daf
|
66669c0c353ec085d8b8ffbefd22cf2c76ac1699
|
/JX_KNY/src/com/yunda/jx/jczl/undertakemanage/entity/UndertakeTrain.java
|
1fed4338320efd510c54dae9ca1dfc15f9aa2b67
|
[] |
no_license
|
wujialing1988/jx_kny
|
818d971df901b7797c755c6d1c8e4bfafe0244be
|
ac784a92429691145cb0c80df3c846da13d9eb35
|
refs/heads/master
| 2021-09-03T18:45:48.762244
| 2018-01-11T05:09:20
| 2018-01-11T05:09:20
| 108,991,740
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,204
|
java
|
package com.yunda.jx.jczl.undertakemanage.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
/**
* <li>标题: 机车检修管理信息系统
* <li>说明:UndertakeTrain实体类, 数据表:Undertake_train(承修机车)
* <li>创建人:程梅
* <li>创建日期:2013-03-04
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* <li>版权: Copyright (c) 2008 运达科技公司
* @author 测控部检修系统项目组
* @version 1.0
*/
@Entity
@Table(name="JCZL_UNDERTAKE_TRAIN")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JsonAutoDetect(fieldVisibility=Visibility.ANY,getterVisibility=Visibility.NONE)
public class UndertakeTrain implements java.io.Serializable{
/* 使用默认序列版本ID */
private static final long serialVersionUID = 1L;
/* idx主键 */
@GenericGenerator(strategy="uuid", name = "uuid_id_generator")
@Id @GeneratedValue(generator="uuid_id_generator")
/* 主键 */
private String idx;
/* 承修车型主键 */
@Column(name="Undertake_Train_Type_IDX")
private String undertakeTrainTypeIDX;
/* 车型主键 */
@Column(name="Train_Type_IDX")
private String trainTypeIDX;
/* 车号 */
@Column(name="Train_No")
private String trainNo;
/* 车型英文简称 */
@Column(name="Train_Type_ShortName")
private String trainTypeShortName;
/* 表示此条记录的状态:0为表示未删除;1表示删除 */
@Column(name="Record_Status")
private Integer recordStatus;
/* 站点标识,为了同步数据而使用 */
@Column(updatable=false)
private String siteID;
/* 创建人 */
@Column(updatable=false)
private Long creator;
/* 创建时间 */
@Temporal(TemporalType.TIMESTAMP)
@Column(name="Create_Time", updatable=false)
private java.util.Date createTime;
/* 修改人 */
private Long updator;
/* 修改时间 */
@Temporal(TemporalType.TIMESTAMP)
@Column(name="Update_Time")
private java.util.Date updateTime;
/* 使用别名称 */
@Transient
private String trainUseName;
/* 配属单位名称 */
@Transient
private String holdOrgName;
/* 制造厂家名 */
@Transient
private String makeFactoryName;
/* 出厂日期 */
@Transient
@Temporal(TemporalType.TIMESTAMP)
private java.util.Date leaveDate;
/* 所属局名称 */
@Transient
private String bName;
/* 所属段名称 */
@Transient
private String dName;
public String getBName() {
return bName;
}
public void setBName(String name) {
bName = name;
}
public String getDName() {
return dName;
}
public void setDName(String name) {
dName = name;
}
public java.util.Date getCreateTime() {
return createTime;
}
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
public Long getCreator() {
return creator;
}
public void setCreator(Long creator) {
this.creator = creator;
}
public Integer getRecordStatus() {
return recordStatus;
}
public void setRecordStatus(Integer recordStatus) {
this.recordStatus = recordStatus;
}
public String getSiteID() {
return siteID;
}
public void setSiteID(String siteID) {
this.siteID = siteID;
}
public String getTrainNo() {
return trainNo;
}
public void setTrainNo(String trainNo) {
this.trainNo = trainNo;
}
public String getTrainTypeIDX() {
return trainTypeIDX;
}
public void setTrainTypeIDX(String trainTypeIDX) {
this.trainTypeIDX = trainTypeIDX;
}
public String getTrainTypeShortName() {
return trainTypeShortName;
}
public void setTrainTypeShortName(String trainTypeShortName) {
this.trainTypeShortName = trainTypeShortName;
}
public String getUndertakeTrainTypeIDX() {
return undertakeTrainTypeIDX;
}
public void setUndertakeTrainTypeIDX(String undertakeTrainTypeIDX) {
this.undertakeTrainTypeIDX = undertakeTrainTypeIDX;
}
public java.util.Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
public Long getUpdator() {
return updator;
}
public void setUpdator(Long updator) {
this.updator = updator;
}
/**
* @return String idx主键
*/
public String getIdx() {
return idx;
}
/**
* @param 设置idx主键
*/
public void setIdx(String idx) {
this.idx = idx;
}
public String getHoldOrgName() {
return holdOrgName;
}
public void setHoldOrgName(String holdOrgName) {
this.holdOrgName = holdOrgName;
}
public java.util.Date getLeaveDate() {
return leaveDate;
}
public void setLeaveDate(java.util.Date leaveDate) {
this.leaveDate = leaveDate;
}
public String getMakeFactoryName() {
return makeFactoryName;
}
public void setMakeFactoryName(String makeFactoryName) {
this.makeFactoryName = makeFactoryName;
}
public String getTrainUseName() {
return trainUseName;
}
public void setTrainUseName(String trainUseName) {
this.trainUseName = trainUseName;
}
}
|
[
"wujialing@wujialing-PC"
] |
wujialing@wujialing-PC
|
f7748362bfb5ef809ecc2fbcd9bbf95038ef32a5
|
9ab5bdb918b886f1f2d09d81efb63ff83a86bfb0
|
/coordinator/src/main/java/com/jdt/fedlearn/coordinator/entity/task/Alignment.java
|
2d79339ffd97e1ca350df73ac930ef9b3b2bb22e
|
[
"Apache-2.0"
] |
permissive
|
BestJex/fedlearn
|
75a795ec51c4a37af34886c551874df419da3a9c
|
15395f77ac3ddd983ae3affb1c1a9367287cc125
|
refs/heads/master
| 2023-06-17T01:27:36.143351
| 2021-07-19T10:43:09
| 2021-07-19T10:43:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,272
|
java
|
/* Copyright 2020 The FedLearn Authors. 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.jdt.fedlearn.coordinator.entity.task;
import java.io.Serializable;
/**
* 特征对齐信息实体,用于记录不同参与方相同的特征信息
* @see SingleJoinFeature
* @author lijingxi
*/
public class Alignment implements Serializable {
// 参与方信息
private String participant;
// 特征信息
private String feature;
public String getParticipant() {
return participant;
}
public void setParticipant(String participant) {
this.participant = participant;
}
public String getFeature() {
return feature;
}
public void setFeature(String feature) {
this.feature = feature;
}
}
|
[
"wangpeiqi@jd.com"
] |
wangpeiqi@jd.com
|
8c24e525ac4c47b0d28e91ffac2e5bbc274f6cdf
|
64ffa74d119ff4a4a9d76765fa0bd5413f499189
|
/src/cn/labsoft/labos/base/logs/dao/impl/LabLogRecordDAOImpl.java
|
09524b2e22eb5d64e1bb31a00de479d7e59296b8
|
[] |
no_license
|
zongweiyang/eLims
|
9d10c6929c242c67870781d571621609a7e70116
|
ba9d663153ace634fd987e07541022af0d33f19f
|
refs/heads/master
| 2021-01-13T01:31:05.609832
| 2015-07-19T03:44:49
| 2015-07-19T03:44:49
| 34,788,558
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,871
|
java
|
package cn.labsoft.labos.base.logs.dao.impl;
import org.springframework.stereotype.Repository;
import com.opensymphony.xwork2.ActionContext;
import cn.labsoft.labos.base.logs.dao.ILabLogRecordDAO;
import cn.labsoft.labos.base.logs.entity.LabLogRecord;
import cn.labsoft.labos.framework.common.dao.BaseDAO;
import cn.labsoft.labos.framework.common.exception.GlobalException;
import cn.labsoft.labos.framework.common.log.Log4J;
import cn.labsoft.labos.framework.common.sesseionutils.SessionContainer;
import cn.labsoft.labos.utils.DateUtils;
@Repository(value="labLogRecordDAO")
public class LabLogRecordDAOImpl extends BaseDAO
implements ILabLogRecordDAO
{
public LabLogRecord addLabLogrecord(LabLogRecord labLogrecord) throws GlobalException
{
try {
super.save(labLogrecord);
} catch (Exception ex) {
Log4J.error("labLogrecordDAOImpl error...." + ex.getMessage(), ex);
throw new GlobalException("" + ex.getMessage());
}
return labLogrecord;
}
public boolean delLabLogrecord(LabLogRecord labLogrecord) throws GlobalException
{
try {
super.delete(labLogrecord);
} catch (Exception ex) {
Log4J.error("labLogrecordDAOImpl error...." + ex.getMessage(), ex);
throw new GlobalException("" + ex.getMessage());
}
return true;
}
public LabLogRecord getLabLogrecord(LabLogRecord labLogrecord) throws GlobalException
{
try {
labLogrecord = (LabLogRecord)super.findById(LabLogRecord.class,
labLogrecord.getId());
return labLogrecord;
} catch (Exception ex) {
throw new GlobalException("" + ex.getMessage());
}
}
public boolean updateLabLogrecord(LabLogRecord labLogrecord) throws GlobalException
{
try
{
super.update(labLogrecord);
} catch (Exception ex) {
Log4J.error("LabLogrecordDAOImpl error...." + ex.getMessage(), ex);
throw new GlobalException("" + ex.getMessage());
}
return true;
}
@Override
public LabLogRecord addLabLogrecord4Bus(String content,
String busId, String busName, String busType, String operator) throws GlobalException {
SessionContainer son=(SessionContainer) ActionContext.getContext().getSession().get(SessionContainer.Session_Container);
try {
LabLogRecord labLogrecord=new LabLogRecord();
labLogrecord.setOperatorid(son.getUserId());
labLogrecord.setOperator(son.getUserName());
labLogrecord.setContent(content);
labLogrecord.setWorkId(busId);
labLogrecord.setWorkTable(busName);
labLogrecord.setModule(busType);
labLogrecord.setMethod(operator);
labLogrecord.setIp(son.getIp());
labLogrecord.setDateTime(DateUtils.getCurrDate());
super.save(labLogrecord);
return labLogrecord;
} catch (RuntimeException e) {
Log4J.error("LabLogrecordDAOImpl error...." + e.getMessage(), e);
throw new GlobalException("" + e.getMessage());
}
}
}
|
[
"yzwok@sina.cn"
] |
yzwok@sina.cn
|
849bd5aae133d7ee37ce7641a287592425b57562
|
7d898751f4c5ca06afd283641b3c2951a2f870ca
|
/src/test/java/com/lambdaworks/apigenerator/Constants.java
|
3c39d4e8bb35184591ee0e1d2bc99cf249117a0a
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
mithunsasidharan/lettuce-core
|
6187839a0917f5c53b7c2ccbbf6ff02c2648a464
|
16f9e7525068a3887f5cc746c6b976720835600a
|
refs/heads/master
| 2021-04-15T16:48:13.501927
| 2018-03-19T16:10:04
| 2018-03-19T16:10:04
| 126,288,717
| 1
| 0
|
Apache-2.0
| 2018-10-27T19:28:06
| 2018-03-22T06:16:26
|
Java
|
UTF-8
|
Java
| false
| false
| 1,260
|
java
|
/*
* Copyright 2011-2018 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 com.lambdaworks.apigenerator;
import java.io.File;
/**
* @author Mark Paluch
*/
class Constants {
public final static String[] TEMPLATE_NAMES = { "RedisHashCommands", "RedisHLLCommands", "RedisKeyCommands",
"RedisListCommands", "RedisScriptingCommands", "RedisServerCommands", "RedisSetCommands", "RedisSortedSetCommands",
"RedisStringCommands", "RedisTransactionalCommands", "RedisSentinelCommands", "BaseRedisCommands",
"RedisGeoCommands" };
public final static File TEMPLATES = new File("src/main/templates");
public final static File SOURCES = new File("src/main/java");
}
|
[
"mpaluch@paluch.biz"
] |
mpaluch@paluch.biz
|
35ab71ff32080ac3424148479dfb9948460690b3
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.socialplatform-base/sources/X/C03710oL.java
|
8e662e2f9919bc4e7571fc37fc8aa628bc9f87ad
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 2,930
|
java
|
package X;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.AnyThread;
import com.facebook.infer.annotation.Nullsafe;
import java.util.ArrayList;
@Nullsafe(Nullsafe.Mode.STRICT)
/* renamed from: X.0oL reason: invalid class name and case insensitive filesystem */
public final class C03710oL extends AbstractC00890Mb {
public ArrayList<AbstractC00880Ma> A00 = new ArrayList<>();
public ArrayList<AbstractC00880Ma> A01 = new ArrayList<>();
public final Object A02 = new Object();
public final Handler A03 = new Handler(Looper.getMainLooper());
public final Runnable A04 = new RunnableC00900Mc(this);
@Override // X.AbstractC00890Mb
@AnyThread
public final void A00(AbstractC00880Ma r3) {
synchronized (this.A02) {
this.A00.remove(r3);
}
}
/* JADX WARNING: Code restructure failed: missing block: B:13:0x0029, code lost:
if (r0 == false) goto L_?;
*/
/* JADX WARNING: Code restructure failed: missing block: B:14:0x002b, code lost:
r3.A03.post(r3.A04);
*/
/* JADX WARNING: Code restructure failed: missing block: B:20:?, code lost:
return;
*/
/* JADX WARNING: Code restructure failed: missing block: B:21:?, code lost:
return;
*/
@Override // X.AbstractC00890Mb
@androidx.annotation.AnyThread
/* Code decompiled incorrectly, please refer to instructions dump. */
public final void A01(X.AbstractC00880Ma r4) {
/*
r3 = this;
android.os.Looper r0 = android.os.Looper.getMainLooper()
java.lang.Thread r1 = r0.getThread()
java.lang.Thread r0 = java.lang.Thread.currentThread()
if (r1 != r0) goto L_0x0036
java.lang.Object r2 = r3.A02
monitor-enter(r2)
java.util.ArrayList<X.0Ma> r0 = r3.A00 // Catch:{ all -> 0x0033 }
boolean r0 = r0.contains(r4) // Catch:{ all -> 0x0033 }
if (r0 == 0) goto L_0x001b
monitor-exit(r2) // Catch:{ all -> 0x0033 }
return
L_0x001b:
java.util.ArrayList<X.0Ma> r0 = r3.A00 // Catch:{ all -> 0x0033 }
r0.add(r4) // Catch:{ all -> 0x0033 }
int r1 = r0.size() // Catch:{ all -> 0x0033 }
r0 = 1
if (r1 == r0) goto L_0x0028
r0 = 0
L_0x0028:
monitor-exit(r2) // Catch:{ all -> 0x0033 }
if (r0 == 0) goto L_0x0032
android.os.Handler r1 = r3.A03
java.lang.Runnable r0 = r3.A04
r1.post(r0)
L_0x0032:
return
L_0x0033:
r0 = move-exception
monitor-exit(r2)
throw r0
L_0x0036:
r4.A8x()
return
*/
throw new UnsupportedOperationException("Method not decompiled: X.C03710oL.A01(X.0Ma):void");
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
cbc2665f69b2b829cc1ce02d17102954bb6ae4e1
|
c83a2e27a398a8de9cc119ff50ef615530741e7d
|
/orange-demo-service/application/course-class/course-class-interface/src/main/java/com/orange/demo/courseclassinterface/client/StudentClassClient.java
|
ec5570d893de073ebc21c62d9e116f2c2d3388dc
|
[] |
no_license
|
BestJex/orange-admin
|
c8cb7a560b47d83557e24f4bfb5650aa95a40d81
|
a389e71d5b54c9bd659a15b118a019763ff6299c
|
refs/heads/master
| 2023-01-04T05:12:16.286562
| 2020-10-29T05:45:09
| 2020-10-29T05:45:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,555
|
java
|
package com.orange.demo.courseclassinterface.client;
import com.orange.demo.common.core.config.FeignConfig;
import com.orange.demo.common.core.base.client.BaseClient;
import com.orange.demo.common.core.constant.ErrorCodeEnum;
import com.orange.demo.common.core.object.*;
import com.orange.demo.courseclassinterface.dto.StudentClassDto;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import java.util.*;
/**
* 班级数据服务远程数据操作访问接口。
*
* @author Orange Team
* @date 2020-08-08
*/
@FeignClient(
name = "course-class",
configuration = FeignConfig.class,
fallbackFactory = StudentClassClient.StudentClassClientFallbackFactory.class)
public interface StudentClassClient extends BaseClient<StudentClassDto, Long> {
/**
* 基于主键的(In-list)条件获取远程数据接口。
*
* @param classIds 主键Id集合。
* @param withDict 是否包含字典关联。
* @return 应答结果对象,包含主对象的数据集合。
*/
@Override
@PostMapping("/studentClass/listByIds")
ResponseResult<List<StudentClassDto>> listByIds(
@RequestParam("classIds") Set<Long> classIds,
@RequestParam("withDict") Boolean withDict);
/**
* 基于主键Id,获取远程对象。
*
* @param classId 主键Id。
* @param withDict 是否包含字典关联。
* @return 应答结果对象,包含主对象数据。
*/
@Override
@PostMapping("/studentClass/getById")
ResponseResult<StudentClassDto> getById(
@RequestParam("classId") Long classId,
@RequestParam("withDict") Boolean withDict);
/**
* 判断参数列表中指定的主键Id,是否都存在。
*
* @param classIds 主键Id集合。
* @return 应答结果对象,包含true全部存在,否则false。
*/
@Override
@PostMapping("/studentClass/existIds")
ResponseResult<Boolean> existIds(@RequestParam("classIds") Set<Long> classIds);
/**
* 判断主键Id是否存在。
*
* @param classId 参数主键Id。
* @return 应答结果对象,包含true表示存在,否则false。
*/
@Override
@PostMapping("/studentClass/existId")
ResponseResult<Boolean> existId(@RequestParam("classId") Long classId);
/**
* 获取远程主对象中符合查询条件的数据列表。
*
* @param queryParam 查询参数。
* @return 应答结果对象,包含实体对象集合。
*/
@Override
@PostMapping("/studentClass/listBy")
ResponseResult<List<StudentClassDto>> listBy(@RequestBody MyQueryParam queryParam);
/**
* 获取远程主对象中符合查询条件的单条数据对象。
*
* @param queryParam 查询参数。
* @return 应答结果对象,包含实体对象。
*/
@Override
@PostMapping("/studentClass/getBy")
ResponseResult<StudentClassDto> getBy(@RequestBody MyQueryParam queryParam);
/**
* 获取远程主对象中符合查询条件的数据列表。
* 和listBy接口相比,以Map列表的方式返回的主要目的是,降低服务之间的耦合度。
*
* @param queryParam 查询参数。
* @return 应答结果对象,包含主对象集合。
*/
@Override
@PostMapping("/studentClass/listMapBy")
ResponseResult<List<Map<String, Object>>> listMapBy(@RequestBody MyQueryParam queryParam);
/**
* 获取远程主对象中符合查询条件的数据数量。
*
* @param queryParam 查询参数。
* @return 应答结果对象,包含结果数量。
*/
@Override
@PostMapping("/studentClass/countBy")
ResponseResult<Integer> countBy(@RequestBody MyQueryParam queryParam);
/**
* 获取远程对象中符合查询条件的分组聚合计算Map列表。
*
* @param aggregationParam 聚合参数。
* @return 应该结果对象,包含聚合计算后的分组Map列表。
*/
@Override
@PostMapping("/studentClass/aggregateBy")
ResponseResult<List<Map<String, Object>>> aggregateBy(@RequestBody MyAggregationParam aggregationParam);
@Component("CourseClassStudentClassClientFallbackFactory")
@Slf4j
class StudentClassClientFallbackFactory implements FallbackFactory<StudentClassClient>, StudentClassClient {
@Override
public ResponseResult<List<StudentClassDto>> listByIds(
Set<Long> classIds, Boolean withDict) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<StudentClassDto> getById(
Long classId, Boolean withDict) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<Boolean> existIds(Set<Long> classIds) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<Boolean> existId(Long classId) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<List<StudentClassDto>> listBy(MyQueryParam queryParam) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<StudentClassDto> getBy(MyQueryParam queryParam) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<List<Map<String, Object>>> listMapBy(MyQueryParam queryParam) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<Integer> countBy(MyQueryParam queryParam) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public ResponseResult<List<Map<String, Object>>> aggregateBy(MyAggregationParam aggregationParam) {
return ResponseResult.error(ErrorCodeEnum.RPC_DATA_ACCESS_FAILED);
}
@Override
public StudentClassClient create(Throwable throwable) {
log.error("Exception For Feign Remote Call.", throwable);
return new StudentClassClientFallbackFactory();
}
}
}
|
[
"707344974@qq.com"
] |
707344974@qq.com
|
85dbe9f3b70ab99f4c8375c03cd05e54bb8a5fc0
|
a5260ea676ebf0f14460cf6dc18a0c5b14568dc3
|
/app/src/main/java/com/joyful/joyfulkitchen/model/RecordItem.java
|
da05d42b54de98b9f90fef613ac5afcde7998c70
|
[] |
no_license
|
8089/JoyfulKitchen
|
f7ef54bc6657e95ff3d775cb178ee8174c8a07ed
|
d533173633a4fd4af425fcae6a5e3ff68d33428c
|
refs/heads/master
| 2021-01-23T07:49:56.861299
| 2017-05-10T02:15:45
| 2017-05-10T02:15:45
| 86,450,101
| 1
| 2
| null | 2017-04-06T11:38:23
| 2017-03-28T11:06:35
|
Java
|
UTF-8
|
Java
| false
| false
| 694
|
java
|
package com.joyful.joyfulkitchen.model;
/**
* 用来显示记录 的
*/
public class RecordItem {
private String meauName;
private double totalWeight;
private double totalEnergy;
public String getMeauName() {
return meauName;
}
public void setMeauName(String meauName) {
this.meauName = meauName;
}
public double getTotalWeight() {
return totalWeight;
}
public void setTotalWeight(double totalWeight) {
this.totalWeight = totalWeight;
}
public double getTotalEnergy() {
return totalEnergy;
}
public void setTotalEnergy(double totalEnergy) {
this.totalEnergy = totalEnergy;
}
}
|
[
"email@example.com"
] |
email@example.com
|
17dc94271c12a055a038767441bb713c277e67b1
|
b25898993f8646c8517d93662cbe9ae33cf51095
|
/o2xfs-xfs3/src/o2xfs-xfs320/java/at/o2xfs/xfs/cdm/v3_20/ItemNumber3_20.java
|
62098499e7ff47872747ab9dc7b5c071a6fdd9e7
|
[
"BSD-2-Clause"
] |
permissive
|
dotfeng/O2Xfs
|
5e4a16cd11305d4476ce28fb15887d6393ca90cd
|
27e9b09fc8f5a8f4b0c6d9a5d1746cadb61b121d
|
refs/heads/master
| 2021-01-24T20:25:10.044447
| 2017-03-08T22:07:02
| 2017-03-08T22:07:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,807
|
java
|
/*
* Copyright (c) 2017, Andreas Fagschlunger. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package at.o2xfs.xfs.cdm.v3_20;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import at.o2xfs.win32.Pointer;
import at.o2xfs.win32.Struct;
import at.o2xfs.win32.ULONG;
import at.o2xfs.win32.USHORT;
import at.o2xfs.xfs.win32.XfsCharArray;
public class ItemNumber3_20 extends Struct {
protected final XfsCharArray currencyID = new XfsCharArray(3);
protected final ULONG values = new ULONG();
protected final USHORT release = new USHORT();
protected final ULONG count = new ULONG();
protected final USHORT number = new USHORT();
protected ItemNumber3_20() {
add(currencyID);
add(values);
add(release);
add(count);
add(number);
}
public ItemNumber3_20(Pointer p) {
this();
assignBuffer(p);
}
public ItemNumber3_20(ItemNumber3_20 copy) {
this();
allocate();
set(copy);
}
protected void set(ItemNumber3_20 copy) {
currencyID.set(copy.getCurrencyID());
values.set(copy.getValues());
release.set(copy.getRelease());
count.set(copy.getCount());
number.set(copy.getNumber());
}
public char[] getCurrencyID() {
return currencyID.get();
}
public long getValues() {
return values.get();
}
public int getRelease() {
return release.get();
}
public long getCount() {
return count.get();
}
public int getNumber() {
return number.get();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(getCurrencyID()).append(getValues()).append(getRelease()).append(getCount()).append(getNumber()).toHashCode();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof ItemNumber3_20) {
ItemNumber3_20 itemNumber = (ItemNumber3_20) obj;
return new EqualsBuilder().append(getCurrencyID(), itemNumber.getCurrencyID()).append(getValues(), itemNumber.getValues()).append(getRelease(), itemNumber.getRelease())
.append(getCount(), itemNumber.getCount()).append(getNumber(), itemNumber.getNumber()).isEquals();
}
return false;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("currencyID", getCurrencyID()).append("values", getValues()).append("release", getRelease()).append("count", getCount())
.append("number", getNumber()).toString();
}
}
|
[
"github@fagschlunger.co.at"
] |
github@fagschlunger.co.at
|
150770dc42adb10974ade9f3787c20406e1488c6
|
c44e62442fb6398ea8fa0a01d9bfff899ea4f864
|
/mall-admin/src/main/java/com/zscat/mallplus/sys/service/ISysAreaService.java
|
760888c2822a45347f255d76f8d820ad53e1fbd2
|
[
"Apache-2.0"
] |
permissive
|
zhujiabin2018/mallplus
|
3a6c161387f89c4710272cec7dc89d6272d6648c
|
b53a9f199ad1ad465e175917137be573277e9d20
|
refs/heads/master
| 2021-10-27T15:48:34.600548
| 2019-04-18T05:34:41
| 2019-04-18T05:34:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 290
|
java
|
package com.zscat.mallplus.sys.service;
import com.zscat.mallplus.sys.entity.SysArea;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zscat
* @since 2019-04-14
*/
public interface ISysAreaService extends IService<SysArea> {
}
|
[
"zhuan.shen@rjfittime.com"
] |
zhuan.shen@rjfittime.com
|
4c155c2b42e67af90526b662c326fafa64b92100
|
f012a55ee66b2b5dde5a8996218e5b7ed1546208
|
/app/src/main/java/com/htcompany/education/studentforgansu/mainpart/activity/SkillsGameActivity.java
|
0ca4074d5a563f5d6ce458b61ca1fe265611d1a0
|
[] |
no_license
|
liuhui-huatang/EducationStudent
|
4e3f56ae52c725db461e50edd9bc71769d4ae228
|
86b956c15f462486727a8a970e1f0380bcdf9112
|
refs/heads/master
| 2020-03-27T08:27:01.636231
| 2018-08-27T06:27:06
| 2018-08-27T06:27:06
| 146,255,545
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,795
|
java
|
package com.htcompany.education.studentforgansu.mainpart.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.htcompany.education.studentforgansu.R;
import com.htcompany.education.studentforgansu.commonpart.BaseActivity;
import com.htcompany.education.studentforgansu.commonpart.tools.ToastUtil;
import com.htcompany.education.studentforgansu.commonpart.views.WaitDialog;
import com.htcompany.education.studentforgansu.internet.schoolthings.SchoolThingsInternet;
import com.htcompany.education.studentforgansu.internet.schoolthings.SchoolTingsPersener;
import com.htcompany.education.studentforgansu.mainpart.adapter.SkillsGameAdapter;
import com.htcompany.education.studentforgansu.mainpart.entity.SkillsGameEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 技能大赛
* Created by wrb on 2016/11/12.
*/
public class SkillsGameActivity extends BaseActivity implements View.OnClickListener{
private TextView title;
private RelativeLayout reback_btn;
private ListView skillgame_lv;
private SkillsGameAdapter gameAdapter;
//==========网络请求类===========
private List<SkillsGameEntity> skillsGameEntities;
private SchoolThingsInternet thingsInternet;
private SchoolTingsPersener tingsPersener;
private WaitDialog waitDialog=null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.skillsgame_activity);
initDatas();
initViews();
initViewValues();
initOnclicEvents();
}
public void initDatas(){
skillsGameEntities = new ArrayList<SkillsGameEntity>();
thingsInternet = new SchoolThingsInternet(this,myHandler);
tingsPersener = new SchoolTingsPersener(this);
waitDialog= new WaitDialog(this,"");
waitDialog.show();
thingsInternet.get_SKILLS_LISTDatas();
}
public void initViews(){
title = (TextView)this.findViewById(R.id.title);
reback_btn = (RelativeLayout)this.findViewById(R.id.reback_btn);
skillgame_lv = (ListView)this.findViewById(R.id.skillgame_lv);
gameAdapter = new SkillsGameAdapter(this,skillsGameEntities);
skillgame_lv.setAdapter(gameAdapter);
skillgame_lv.setOnItemClickListener(gameClicer);
}
public void initViewValues(){
title.setText("技能大赛");
}
public void initOnclicEvents(){
reback_btn.setOnClickListener(this);
}
public AdapterView.OnItemClickListener gameClicer=new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
SkillsGameEntity entity = (SkillsGameEntity) gameAdapter.getItem(position);
Intent intent = new Intent(SkillsGameActivity.this,SkillsGameDetailsActivity.class);
intent.putExtra("m_id",entity.getM_id());
startActivity(intent);
}
};
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.reback_btn:
this.finish();
break;
}
}
public Handler myHandler = new Handler(){
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
switch (msg.what){
case 400:
if(waitDialog!=null){
waitDialog.dismiss();
}
ToastUtil.showToast("连接超时",SkillsGameActivity.this);
break;
case 200:
if(waitDialog!=null){
waitDialog.dismiss();
}
List<SkillsGameEntity> datas = tingsPersener.parseShillGameListData((String)msg.obj);
if(datas!=null&&datas.size()>0){
setAdapterValues(datas);
}
break;
case 300:
if(waitDialog!=null){
waitDialog.dismiss();
}
ToastUtil.showToast("数据异常",SkillsGameActivity.this);
break;
}
}
};
public void setAdapterValues(List<SkillsGameEntity> datas){
if(skillsGameEntities.size()>0){
skillsGameEntities.clear();
}
for(SkillsGameEntity entity:datas){
skillsGameEntities.add(entity);
}
gameAdapter.notifyDataSetChanged();
}
}
|
[
"liuhui@huatangjt.com"
] |
liuhui@huatangjt.com
|
c6c8c5cb89d6e99c85ed1cfef2cd848c1c758399
|
45f05c515e311d16eb48094b6d6617d6b6987397
|
/lucihunt-lucene4.10/src/main/java/org/apache/lucene/util/fst/ForwardBytesReader.java
|
c987a5066eca26f781e7aa99728e89c2c41e74f5
|
[
"Apache-2.0"
] |
permissive
|
lemonJun/LuciHunt
|
5328dd270e891e302bf985a1a2517dcaa95def9d
|
08c71f80be580e5ebcbb519eb2aff1f3cfee55a8
|
refs/heads/master
| 2021-01-18T19:32:47.065466
| 2017-05-03T09:52:13
| 2017-05-03T09:52:13
| 86,899,911
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,737
|
java
|
package org.apache.lucene.util.fst;
/*
* 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.
*/
// TODO: can we use just ByteArrayDataInput...? need to
// add a .skipBytes to DataInput.. hmm and .setPosition
/** Reads from a single byte[]. */
final class ForwardBytesReader extends FST.BytesReader {
private final byte[] bytes;
private int pos;
public ForwardBytesReader(byte[] bytes) {
this.bytes = bytes;
}
@Override
public byte readByte() {
return bytes[pos++];
}
@Override
public void readBytes(byte[] b, int offset, int len) {
System.arraycopy(bytes, pos, b, offset, len);
pos += len;
}
@Override
public void skipBytes(long count) {
pos += count;
}
@Override
public long getPosition() {
return pos;
}
@Override
public void setPosition(long pos) {
this.pos = (int) pos;
}
@Override
public boolean reversed() {
return false;
}
}
|
[
"506526593@qq.com"
] |
506526593@qq.com
|
76b2c87518fa3e1a959b5c16f0debbdf891ce5fe
|
ca0e9689023cc9998c7f24b9e0532261fd976e0e
|
/src/com/tencent/kingkong/database/SQLiteStatementInfo.java
|
ad325bfd06daaf68e7d19544345a976ac5b7256e
|
[] |
no_license
|
honeyflyfish/com.tencent.mm
|
c7e992f51070f6ac5e9c05e9a2babd7b712cf713
|
ce6e605ff98164359a7073ab9a62a3f3101b8c34
|
refs/heads/master
| 2020-03-28T15:42:52.284117
| 2016-07-19T16:33:30
| 2016-07-19T16:33:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 320
|
java
|
package com.tencent.kingkong.database;
public final class SQLiteStatementInfo
{
public String[] columnNames;
public int numParameters;
public boolean readOnly;
}
/* Location:
* Qualified Name: com.tencent.kingkong.database.SQLiteStatementInfo
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
aa63d91b2be426600b5c106fd42173a08cd2628c
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14263-2-4-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/security/authorization/DefaultAuthorizationManager_ESTest_scaffolding.java
|
0240f1740689009b169e1cdf9aac10eba8ac3456
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 464
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Apr 06 23:45:49 UTC 2020
*/
package org.xwiki.security.authorization;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultAuthorizationManager_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
c1867bb625e7bd7d897329ddaa421d9318d244c1
|
c36e1f2f1712f71cd11c829588ef8e82b09b7ef1
|
/java/monkey_foxwan_socket/src/com/stang/game/dao/IEntityDao.java
|
7746eabd413270e85f2537ab0010f39037f73781
|
[] |
no_license
|
CJSDCQS/Monkey-Web-Game
|
8b5645c7d5278708679827b956e9ca17d60a93e0
|
c2e93001db22df775c9638651d84d9bb2dcdb52a
|
refs/heads/master
| 2021-12-04T08:15:23.863743
| 2014-10-24T09:10:44
| 2014-10-24T09:10:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,814
|
java
|
package com.stang.game.dao;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import com.stang.game.common.PageProperty;
/**
* @author fei_wei
* @company 上海三唐信息科技有限公司
* @description 实体数据处理接口
*/
public interface IEntityDao<T> {
/**
* @method getModel
* @param param
* {Map} 参数
* @return {T}
* @description 得到数据对象
*/
public abstract T getModel(Map param);
/**
* @method insert
* @param po
* {T} 持久数据对象
* @return {int}
* @description 创建数据对象
*/
public abstract int insert(T po);
/**
* @method update
* @param po
* {T} 持久数据对象
* @return {int}
* @description 修改数据对象
*/
public abstract int update(T po);
/**
* @method delete
* @param id
* {Serializable} 序列号
* @return {int}
* @description 删除数据对象
*/
public abstract int delete(Serializable id);
/**
* @method findPageList
* @param pp
* {PageProperty}
* @return {List<T}
* @description 得到数据对象列表按分页条件 当pp.getNpageSize=0时返回所有
*/
public abstract List<T> findPageList(PageProperty pp);
/**
* @method findCount
* @param pp
* {PageProperty}
* @return {int}
* @description 得到数据数量按分页条件
*/
public abstract int findCount(PageProperty pp);
/**
* @method list
* @param param
* {Map}
* @return {List<T}
* @description 根据参数信息得到数据列表
*/
public abstract List<T> list(Map param);
/**
* @method deleteList
* @param ids
* {String} 序列号组
* @return {int}
* @description 删除多条数据对象
*/
public abstract int deleteList(String ids);
}
|
[
"lavenwl@gmail.com"
] |
lavenwl@gmail.com
|
b4069aeab3fc06fd8a33466e794dab98542778cb
|
c05b86eadd9535f9837658c5069256647d2d0a8a
|
/orm/mybatis/mybatis-master-slave/src/main/java/pers/util/ClassScanUtil.java
|
9549026ecd0e21fa031b402338b4c7c4da747356
|
[] |
no_license
|
luolanmeet/java-learn
|
035b24774b2f2a07611d07a08b16b1ee4a114f4c
|
5f3c95d8470d55e967319840fb7cc7c4a1709ab8
|
refs/heads/master
| 2023-08-17T14:03:43.854394
| 2023-08-15T03:51:04
| 2023-08-15T03:51:04
| 165,463,978
| 9
| 8
| null | 2022-12-21T15:36:35
| 2019-01-13T04:03:25
|
Java
|
UTF-8
|
Java
| false
| false
| 1,650
|
java
|
package pers.util;
import java.io.File;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
/**
* 用于扫描指定包下所有的类
*/
public class ClassScanUtil {
private final static String SUFFIX_CLASS = ".class";
public static Map<String, String> scan(String scanPackage) {
// <类的全路径, 类名>
Map<String, String> map = new HashMap<>();
doScan(map, scanPackage);
return map;
}
private static void doScan(Map<String, String> map, String scanPackage) {
URL url = ClassScanUtil.class.getResource(
"/" + scanPackage.replaceAll("\\.", "/"));
File file = new File(url.getFile());
if (!file.exists()) {
return ;
}
// 是文件
if (!file.isDirectory()) {
if (file.getName().endsWith(SUFFIX_CLASS)) {
String fileName = file.getName().replace(SUFFIX_CLASS, "");
map.put(scanPackage + "." + fileName, fileName);
}
return ;
}
// 扫描文件夹
for (File tmp : file.listFiles()) {
if (tmp.isDirectory()) {
doScan(map, scanPackage + "." + tmp.getName());
continue;
}
if (tmp.getName().endsWith(SUFFIX_CLASS)) {
String fileName = tmp.getName().replace(SUFFIX_CLASS, "");
map.put(scanPackage + "." + fileName, fileName);
}
}
}
public static void main(String[] args) {
Map<String, String> map = ClassScanUtil.scan("pers");
System.out.println(map);
}
}
|
[
"mainem@163.com"
] |
mainem@163.com
|
15aec2344bd60de85eb0c9ac17410bcf33ae9a34
|
37ce6cd1d43866765732b7f32271bb6cb196d3c5
|
/02_spring/src/main/java/com/kh/spring/member/model/dao/MemberDao.java
|
b993c64f660881c3b4c804e72ee0fa395e1830b5
|
[] |
no_license
|
newkayak12/SpringFramework
|
01780a065f051b2253a7e482f083fe4c7f4bb852
|
71bebca5b26cd05c80d475fd441c3cb23dd35f48
|
refs/heads/master
| 2023-06-15T05:54:57.121923
| 2021-07-06T00:20:44
| 2021-07-06T00:20:44
| 377,989,048
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 569
|
java
|
package com.kh.spring.member.model.dao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
import com.kh.spring.member.model.vo.Member;
@Repository
public class MemberDao implements MemberDaoInterface{
@Override
public int enroll(Member m, SqlSessionTemplate session) {
// TODO Auto-generated method stub
return session.insert("member.enroll", m);
}
@Override
public Member login(Member m, SqlSessionTemplate session) {
// TODO Auto-generated method stub
return session.selectOne("member.login", m);
}
}
|
[
"newkayak12@gmail.com"
] |
newkayak12@gmail.com
|
854e5717a6d1a0a0dfc418ee0fa856a141230eb3
|
2469c6523b5bc2b3a46243acb7cb7ed95c180d6e
|
/src/main/java/com/geekerstar/highconcurrency/example/syncContainer/HashTableExample.java
|
debd64dc46fdb93af475d9cec5f1a77c66bc03ab
|
[] |
no_license
|
geekerstar/high-concurrency
|
7570fa6fc02c6d4caccc8bb1f5b3bec2dd36c3a6
|
28d69d98f1f9dbb1eed45044c946a14cef65a4a8
|
refs/heads/master
| 2020-04-17T16:31:56.101325
| 2019-01-31T03:53:27
| 2019-01-31T03:53:27
| 166,744,126
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,656
|
java
|
package com.geekerstar.highconcurrency.example.syncContainer;
import com.geekerstar.highconcurrency.annoations.ThreadSafe;
import lombok.extern.slf4j.Slf4j;
import java.util.Hashtable;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
/**
* @author geekerstar
* date: 2019/1/22 10:51
* description: HashTable
*/
@Slf4j
@ThreadSafe
public class HashTableExample {
/**
* 请求总数
*/
public static int clientTotal = 5000;
/**
* 同时并发执行的线程数
*/
public static int threadTotal = 200;
private static Map<Integer, Integer> map = new Hashtable<>();
public static void main(String[] args) throws Exception {
ExecutorService executorService = Executors.newCachedThreadPool();
final Semaphore semaphore = new Semaphore(threadTotal);
final CountDownLatch countDownLatch = new CountDownLatch(clientTotal);
for (int i = 0; i < clientTotal; i++) {
final int count = i;
executorService.execute(() -> {
try {
semaphore.acquire();
update(count);
semaphore.release();
} catch (Exception e) {
log.error("exception", e);
}
countDownLatch.countDown();
});
}
countDownLatch.await();
executorService.shutdown();
log.info("size:{}", map.size());
}
private static void update(int i) {
map.put(i, i);
}
}
|
[
"247507792@qq.com"
] |
247507792@qq.com
|
d6edace94276d29e26aac53e3bc1224e4f772d34
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.browser-base/sources/defpackage/RunnableC0553Jb0.java
|
d01a80ba17e9863fa4aa522f78f4bef35ad78274
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 517
|
java
|
package defpackage;
import org.chromium.chrome.browser.sync.settings.ManageSyncSettings;
/* renamed from: Jb0 reason: default package and case insensitive filesystem */
/* compiled from: chromium-OculusBrowser.apk-stable-281887347 */
public final /* synthetic */ class RunnableC0553Jb0 implements Runnable {
public final ManageSyncSettings F;
public RunnableC0553Jb0(ManageSyncSettings manageSyncSettings) {
this.F = manageSyncSettings;
}
public void run() {
this.F.p1();
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
cd0e69eb85003016e5e3f0735b9bcf6db4846736
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_3/src/b/d/c/g/Calc_1_3_13265.java
|
0644fa71aa09844828448b4cc3e98eab77710eed
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package b.d.c.g;
public class Calc_1_3_13265 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
e450ee64970f66c70d8a34111783fee8b5c3c619
|
1c1eb038bd3407a0da8a8ce34f17f384dda367f3
|
/Migrated/CrackCode/src/solvedTopcoder/WordCompositionGame.java
|
52000383ab6917a51954fbe20d270bd30710f274
|
[] |
no_license
|
afaly/CrackCode
|
ae6e7fcd82a250a1332d55e0a7b0040f63f66b55
|
3a6cda4e7d9252e496956c88de6e27c3a6bc9dd7
|
refs/heads/master
| 2021-01-10T14:04:24.452808
| 2016-01-04T07:12:58
| 2016-01-04T07:12:58
| 45,332,601
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 696
|
java
|
package solvedTopcoder;
import java.util.Arrays;
public class WordCompositionGame {
public String score(String[] listA, String[] listB, String[] listC) {
Arrays.sort(listA);
Arrays.sort(listB);
Arrays.sort(listC);
int scoreA = calcScore(listA, listB, listC);
int scoreB = calcScore(listB, listC, listA);
int scoreC = calcScore(listC, listA, listB);
return scoreA + "/" + scoreB + "/" + scoreC;
}
int calcScore(String list[], String list1[], String list2[]) {
int score = 0;
for (String word : list) {
score += 3;
if (Arrays.binarySearch(list1, word) >= 0) {
score--;
}
if (Arrays.binarySearch(list2, word) >= 0) {
score--;
}
}
return score;
}
}
|
[
"afathygo@gmail.com"
] |
afathygo@gmail.com
|
ff89925c6fa906ea486dc3ae2c5deeb255dc63fc
|
4d41728f620d6be9916b3c8446da9e01da93fa4c
|
/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java
|
6024b81201f054b46327c61791764271b5471f5d
|
[] |
no_license
|
TechCatOther/um_bukkit
|
a634f6ccf7142b2103a528bba1c82843c0bc4e44
|
836ed7a890b2cb04cd7847eff2c59d7a2f6d4d7b
|
refs/heads/master
| 2020-03-22T03:13:57.898936
| 2018-07-02T09:20:00
| 2018-07-02T09:20:00
| 139,420,415
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 958
|
java
|
package org.bukkit.event.weather;
import org.bukkit.World;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
/**
* Stores data for weather changing in a world
*/
public class WeatherChangeEvent extends WeatherEvent implements Cancellable
{
private static final HandlerList handlers = new HandlerList();
private boolean canceled;
private final boolean to;
public WeatherChangeEvent(final World world, final boolean to)
{
super(world);
this.to = to;
}
public boolean isCancelled()
{
return canceled;
}
public void setCancelled(boolean cancel)
{
canceled = cancel;
}
/**
* Gets the state of weather that the world is being set to
*
* @return true if the weather is being set to raining, false otherwise
*/
public boolean toWeatherState()
{
return to;
}
@Override
public HandlerList getHandlers()
{
return handlers;
}
public static HandlerList getHandlerList()
{
return handlers;
}
}
|
[
"alone.inbox@gmail.com"
] |
alone.inbox@gmail.com
|
319d20b5139c97c8466fc30a78882f7470cedd3b
|
d6946bace02ae0c488bf812c39c0635b5a1ada57
|
/core/src/main/java/slang/SVector.java
|
d1f1af68fb8871cfda9a7a43284335cac690946f
|
[] |
no_license
|
volgar1x/slang
|
84062f51456e7a13a1c159f95fa1c9ca711f04bf
|
64a3cc55cf2bf0779fde3c9cbc00dadaa1bc364e
|
refs/heads/master
| 2021-05-30T09:21:04.662910
| 2016-01-09T22:47:30
| 2016-01-09T22:47:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,116
|
java
|
package slang;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.UnaryOperator;
/**
* @author Antoine Chauvin
*/
public final class SVector extends ArrayList<Object> implements SMany {
@Override
public <T> T foldl(T initial, BiFunction<T, Object, T> function) {
T acc = initial;
for (Object element : this) {
acc = function.apply(acc, element);
}
return acc;
}
@Override
public SVector map(Function<Object, Object> function) {
Builder builder = new Builder();
for (Object element : this) {
builder.add(function.apply(element));
}
return builder.build();
}
public static Builder builder() {
return new Builder();
}
public static SVector of(Object... elements) {
Builder builder = new Builder();
for (Object element : elements) {
builder.add(element);
}
return builder.build();
}
// until we have a real persistent data structure
private void _add(Object element) {
super.add(element);
}
@Override
public Object set(int index, Object element) {
throw new UnsupportedOperationException();
}
@Override
public boolean add(Object o) {
throw new UnsupportedOperationException();
}
@Override
public void add(int index, Object element) {
throw new UnsupportedOperationException();
}
@Override
public Object remove(int index) {
throw new UnsupportedOperationException();
}
@Override
public boolean remove(Object o) {
throw new UnsupportedOperationException();
}
@Override
public void clear() {
throw new UnsupportedOperationException();
}
@Override
public boolean addAll(Collection<?> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean addAll(int index, Collection<?> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean removeAll(Collection<?> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean retainAll(Collection<?> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean removeIf(Predicate<? super Object> filter) {
throw new UnsupportedOperationException();
}
@Override
public void replaceAll(UnaryOperator<Object> operator) {
throw new UnsupportedOperationException();
}
@Override
public void sort(Comparator<? super Object> c) {
throw new UnsupportedOperationException();
}
public static class Builder implements SMany.Builder {
SVector cur = new SVector();
@Override
public void add(Object element) {
cur._add(element);
}
@Override
public SVector build() {
return cur;
}
}
}
|
[
"blackrushx@gmail.com"
] |
blackrushx@gmail.com
|
3fb15605529d865bace0ce91fc3a4f4adb68bebb
|
6e1f1af36bf3921018d587b6f72c35a7f07d8d67
|
/src/main/java/com/sun/org/apache/regexp/internal/RESyntaxException.java
|
102457210ca2adc67c6eef9d55135bf2e07fff15
|
[] |
no_license
|
yangfancoming/gdk
|
09802bd6b37466b38bf96771a201e6193bb06172
|
c20c38f018aa34e07cdf26a8899d3126129f5d6a
|
refs/heads/master
| 2021-07-07T13:06:15.193492
| 2020-04-16T01:04:40
| 2020-04-16T01:04:40
| 200,798,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 757
|
java
|
package com.sun.org.apache.regexp.internal;
/**
* Exception thrown to indicate a syntax error in a regular expression.
* This is a non-checked exception because you should only have problems compiling
* a regular expression during development.
* If you are making regular expresion programs dynamically then you can catch it
* if you wish. But should not be forced to.
*
* @author <a href="mailto:jonl@muppetlabs.com">Jonathan Locke</a>
* @author <a href="mailto:gholam@xtra.co.nz>Michael McCallum</a>
*/
public class RESyntaxException extends RuntimeException
{
/**
* Constructor.
* @param s Further description of the syntax error
*/
public RESyntaxException(String s)
{
super("Syntax error: " + s);
}
}
|
[
"34465021+jwfl724168@users.noreply.github.com"
] |
34465021+jwfl724168@users.noreply.github.com
|
185aba226c60942c560834fe902d49ffcc98129d
|
7b9aeba94820c89e08b9d8a121e3412506cdba27
|
/src/org/zhangda/androidym/er/TowerManSpear.java
|
1d750379c2e4d664880ac696ba9506fca6c9fe75
|
[] |
no_license
|
yue31313/TaFangMoShou
|
f43326d360e09d479893bfd854a1cffeb89a9b80
|
cb3790b55ccc5f14806a99a1d5da8803bc4aa5b1
|
refs/heads/master
| 2021-06-24T11:45:42.129370
| 2017-09-13T04:07:28
| 2017-09-13T04:07:34
| 103,351,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
package org.zhangda.androidym.er;
public class TowerManSpear extends TowerMan
{
public TowerManSpear(MainGame game, Tower tower)
{
super(game, "assets/tower_spearman.png", tower, 40, 40, 8, 0x10);
}
}
|
[
"313134555@qq.com"
] |
313134555@qq.com
|
5340d5f6bedf96507144542bd61399d99e44295f
|
d7de50fc318ff59444caabc38d274f3931349f19
|
/src/com/google/android/gms/analytics/internal/zzi$zza$2.java
|
b53c2fc81b542f1293c8875aebf8da895c612077
|
[] |
no_license
|
reverseengineeringer/fr.dvilleneuve.lockito
|
7bbd077724d61e9a6eab4ff85ace35d9219a0246
|
ad5dbd7eea9a802e5f7bc77e4179424a611d3c5b
|
refs/heads/master
| 2021-01-20T17:21:27.500016
| 2016-07-19T16:23:04
| 2016-07-19T16:23:04
| 63,709,932
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 417
|
java
|
package com.google.android.gms.analytics.internal;
import android.content.ComponentName;
class zzi$zza$2
implements Runnable
{
zzi$zza$2(zzi.zza paramzza, ComponentName paramComponentName) {}
public void run()
{
zzi.zza(zzcxx.zzcxt, zzcxy);
}
}
/* Location:
* Qualified Name: com.google.android.gms.analytics.internal.zzi.zza.2
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
28e8bf0803fd2224cd261f8624d7260c5aa78254
|
6552244c7ef44150ea74cef7ec801d5a9f7171e9
|
/app/src/main/java/com/google/android/gms/location/places/PlacePhotoResult.java
|
26b675c04c4b8cbfb45441801ee1bf7f21f22219
|
[] |
no_license
|
amithbm/cbskeep
|
c9469156efd307fb474d817760a0b426af8f7c5c
|
a800f00ab617cba49d1a1bea1f0282c0cde525e7
|
refs/heads/master
| 2016-09-06T12:42:33.824977
| 2015-08-24T15:33:50
| 2015-08-24T15:33:50
| 41,311,235
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,393
|
java
|
package com.google.android.gms.location.places;
import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.data.BitmapTeleporter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzu;
import com.google.android.gms.common.internal.zzu.zza;
public class PlacePhotoResult
implements Result, SafeParcelable
{
public static final Parcelable.Creator<PlacePhotoResult> CREATOR = new zzh();
private final Bitmap mBitmap;
final int mVersionCode;
private final Status zzOQ;
final BitmapTeleporter zzaUv;
PlacePhotoResult(int paramInt, Status paramStatus, BitmapTeleporter paramBitmapTeleporter)
{
mVersionCode = paramInt;
zzOQ = paramStatus;
zzaUv = paramBitmapTeleporter;
if (zzaUv != null)
{
mBitmap = paramBitmapTeleporter.get();
return;
}
mBitmap = null;
}
public int describeContents()
{
return 0;
}
public Status getStatus()
{
return zzOQ;
}
public String toString()
{
return zzu.zzy(this).zzc("status", zzOQ).zzc("bitmap", mBitmap).toString();
}
public void writeToParcel(Parcel paramParcel, int paramInt)
{
zzh.zza(this, paramParcel, paramInt);
}
}
|
[
"amithbm@gmail.com"
] |
amithbm@gmail.com
|
778c794ebd9cadb9983e2752e17e41e442cfd1f4
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project73/src/test/java/org/gradle/test/performance/largejavamultiproject/project73/p365/Test7312.java
|
396c4c34add82cd560719da2b1eba1656b97f6d8
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,499
|
java
|
package org.gradle.test.performance.largejavamultiproject.project73.p365;
import org.gradle.test.performance.largejavamultiproject.project70.p350.Production7012;
import org.gradle.test.performance.largejavamultiproject.project71.p355.Production7112;
import org.gradle.test.performance.largejavamultiproject.project72.p360.Production7212;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test7312 {
Production7312 objectUnderTest = new Production7312();
@Test
public void testProperty0() {
Production7303 value = new Production7303();
objectUnderTest.setProperty0(value);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() {
Production7307 value = new Production7307();
objectUnderTest.setProperty1(value);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() {
Production7311 value = new Production7311();
objectUnderTest.setProperty2(value);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() {
Production7012 value = new Production7012();
objectUnderTest.setProperty3(value);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() {
Production7112 value = new Production7112();
objectUnderTest.setProperty4(value);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() {
Production7212 value = new Production7212();
objectUnderTest.setProperty5(value);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() {
String value = "value";
objectUnderTest.setProperty6(value);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() {
String value = "value";
objectUnderTest.setProperty7(value);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() {
String value = "value";
objectUnderTest.setProperty8(value);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() {
String value = "value";
objectUnderTest.setProperty9(value);
assertEquals(value, objectUnderTest.getProperty9());
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
dac5469fd873e6f8d5a8ac25743ffdbf453fc02d
|
c74c2e590b6c6f967aff980ce465713b9e6fb7ef
|
/game-logic/src/main/java/com/bdoemu/gameserver/model/creature/player/titles/observers/TitleExploreNodeObserver.java
|
a52b24d3a6af5eb85bef18efe9bfa53d02eda8c4
|
[] |
no_license
|
lingfan/bdoemu
|
812bb0abb219ddfc391adadf68079efa4af43353
|
9c49b29bfc9c5bfe3192b2a7fb1245ed459ef6c1
|
refs/heads/master
| 2021-01-01T13:10:13.075388
| 2019-12-02T09:23:20
| 2019-12-02T09:23:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package com.bdoemu.gameserver.model.creature.player.titles.observers;
import com.mongodb.DBObject;
public class TitleExploreNodeObserver extends ATitleObserver {
@Override
public boolean canReward(final Object... params) {
return (int) params[1] == this.template.getParameter2();
}
@Override
public Object getKey() {
return this.template.getParameter1();
}
public DBObject toDBObject() {
return null;
}
}
|
[
"511459965@qq.com"
] |
511459965@qq.com
|
75c3b235f44b4a399edb40407f118cd1994d5bfe
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_51251.java
|
808962d6332ce40d399fd1a95c88253d3056f628
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 181
|
java
|
private static boolean contains(Collection<String> collection,String s1){
for ( String s2 : collection) {
if (isSame(s1,s2)) {
return true;
}
}
return false;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
5fa7b98272c1b9f5a4e4cd1710e9da6d84ec1f9b
|
81104c146422de7d9b795e2c79fba6ac9bc38aea
|
/appserver/downstream/Server/config/java/print/vcsv1/CatCSVRequisition_Print.java
|
3697ca40c4185bfe631bd7f44824a6a252fc0ab9
|
[] |
no_license
|
skishukmr/Masterfiles
|
7b92c7d1fdc53abd3b8d48f9a1fe7f48e7d9d108
|
544b5c0e866489a45e266f19bf42715cc392e6cd
|
refs/heads/master
| 2020-04-26T18:40:31.792251
| 2014-03-11T19:26:24
| 2014-03-11T19:26:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,643
|
java
|
/* Created by KS on Apr 17, 2006
* -------------------------------------------------------------------------------
* Required to call special print methods (Add Charge printing & Price precision changes)
*/
package config.java.print.vcsv1;
import java.io.PrintWriter;
import java.util.Locale;
import ariba.approvable.core.Approvable;
import ariba.approvable.core.ApprovableClassProperties;
import ariba.approvable.core.LineItemCollection;
import ariba.base.core.Base;
import ariba.base.core.BaseObject;
import ariba.purchasing.core.print.Requisition_Print;
import ariba.util.core.Fmt;
import ariba.util.core.HTML;
import ariba.util.core.MIME;
import ariba.util.core.ResourceService;
import ariba.util.core.StringUtil;
import ariba.util.log.Log;
import ariba.util.net.HTMLPrintWriter;
public class CatCSVRequisition_Print extends Requisition_Print {
private static final String THISCLASS = "CatCSVRequisition_Print";
public void printHTML(BaseObject bo, PrintWriter out, boolean referenceImages,
Locale locale) {
Log.customer.debug("%s *** 2. printHTML w/out Locale",THISCLASS);
String group = getUserFieldPrintGroup((Approvable)bo, true);
printHTML(bo, out, group, referenceImages, null);
}
protected void printHTML(BaseObject bo, PrintWriter out, String userFieldPrintGroup,
boolean referenceImages, Locale locale) {
Log.customer.debug("%s *** 2. printHTML with Locale",THISCLASS);
if(locale == null)
locale = Base.getSession().getLocale();
ApprovableClassProperties cp = (ApprovableClassProperties)((Approvable)bo).getClassProperties();
// *** Removed OOB condition since results in loop (calls PrintHook again)
// String printHook = cp.getPrintHook();
// if(!StringUtil.nullOrEmptyString(printHook))
// runPrintHook((Approvable)bo,out,userFields,out,locale);
LineItemCollection lic = (LineItemCollection)bo;
HTMLPrintWriter hout = new HTMLPrintWriter(out);
hout.HTMLOpen();
hout.headOpen();
hout.meta("text/html", MIME.getMetaCharset(locale));
String title = getTitle(lic);
if(!StringUtil.nullOrEmptyString(title))
hout.title(HTML.fullyEscape(title));
else
hout.title("");
hout.headClose();
hout.bodyOpen();
String fonts = ResourceService.getString("ariba.server.ormsserver", "FontFace", locale);
Fmt.F(out, "<FONT FACE=\"%s\" SIZE=1>\r\n", fonts);
printHeaderInfo(lic, out, referenceImages, locale);
printHTMLLineItems(lic, out, locale);
if(shouldPrintChangeRecords())
printHTMLChangeRecords(lic, out, locale);
if(shouldPrintApprovalFlow())
{
out.print("<P>\r\n");
printHTMLApprovalFlow(lic, out, locale);
out.print("</P>\r\n");
}
if(shouldPrintComments())
printHTMLCommentable(lic, out, locale);
out.print("</FONT>");
hout.bodyClose();
hout.HTMLClose();
hout.flush();
}
protected void printHTMLLineItems(LineItemCollection lic, PrintWriter out, Locale locale) {
Log.customer.debug("%s *** 3. printHTMLLineItems",THISCLASS);
if (!lic.getLineItems().isEmpty()) {
CatCSVProcureLineItem_Print catPlip = new CatCSVProcureLineItem_Print();
catPlip.printHTMLLineItems(out,lic,lic.getLineItems(),lic.getTotalCost(),locale);
}
}
public CatCSVRequisition_Print() {
super();
}
}
|
[
"Dec11@test.com"
] |
Dec11@test.com
|
3d823e483ac0d24ea2d6b2908d5087ca1e250b2a
|
f8190f18347aabbacf4346103c483746363e649f
|
/src/com/scs/splitscreenchaos/entities/creatures/Skeleton.java
|
ea598c30e910473a5156307e4ad9eece1b8a2e02
|
[
"MIT"
] |
permissive
|
SteveSmith16384/SplitScreen3DChaos
|
e670b3e4ca9fabe88bc9c4fa8dc3b6e1496d38fa
|
83039c0900f46a1f5b22ba8b3546b1b2aecbf535
|
refs/heads/master
| 2020-04-17T08:43:46.201531
| 2019-02-20T10:48:43
| 2019-02-20T10:48:43
| 166,423,417
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 703
|
java
|
package com.scs.splitscreenchaos.entities.creatures;
import com.jme3.math.Vector3f;
import com.scs.splitscreenchaos.ChaosGameModule;
import com.scs.splitscreenchaos.components.ICreatureModel;
import com.scs.splitscreenchaos.entities.WizardAvatar;
import com.scs.splitscreenchaos.models.SkeletonModel;
import com.scs.splitscreenfpsengine.SplitScreenFpsEngine;
public class Skeleton extends AbstractCreature {
public Skeleton(SplitScreenFpsEngine _game, ChaosGameModule _module, Vector3f startPos, WizardAvatar owner) {
super(_game, _module, "Skeleton", startPos, owner, true);
}
@Override
public ICreatureModel getCreatureModel() {
return new SkeletonModel(game.getAssetManager());
}
}
|
[
"stephen.carlylesmith@googlemail.com"
] |
stephen.carlylesmith@googlemail.com
|
efb4a95b74ae038c60316beb77ebc958c3f66133
|
43eb759f66530923dfe1c6e191ec4f350c097bd9
|
/projects/checkstyle/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectClass.java
|
ea6ad0aed79d6e9467b99ca544655ef5e56ab6af
|
[
"MIT",
"Apache-2.0",
"LGPL-2.1-only"
] |
permissive
|
hayasam/lightweight-effectiveness
|
fe4bd04f8816c6554e35c8c9fc8489c11fc8ce0b
|
f6ef4c98b8f572a86e42252686995b771e655f80
|
refs/heads/master
| 2023-08-17T01:51:46.351933
| 2020-09-03T07:38:35
| 2020-09-03T07:38:35
| 298,672,257
| 0
| 0
|
MIT
| 2023-09-08T15:33:03
| 2020-09-25T20:23:43
| null |
UTF-8
|
Java
| false
| false
| 1,608
|
java
|
package com.google.checkstyle.test.chapter4formatting.rule42blockindentation; //indent:0 exp:0
import java.util.Iterator; //indent:0 exp:0
public class InputIndentationCorrectClass //indent:0 exp:0
implements Runnable, Cloneable { //indent:4 exp:4
class InnerClass implements //indent:2 exp:2
Iterable<String>, //indent:10 exp:>=6
Cloneable { //indent:13 exp:>=6
@Override //indent:4 exp:4
public Iterator<String> iterator() { //indent:4 exp:4
return null; //indent:6 exp:6
} //indent:4 exp:4
} //indent:2 exp:2
class InnerClass2 //indent:2 exp:2
extends //indent:7 exp:>=6
SecondClassReturnWithVeryVeryVeryLongName { //indent:10 exp:>=6
public InnerClass2(String string) { //indent:4 exp:4
super(); //indent:6 exp:6
// OOOO Auto-generated constructor stub //indent:6 exp:6
} //indent:4 exp:4
} //indent:2 exp:2
@Override //indent:2 exp:2
public void run() { //indent:2 exp:2
SecondClassWithLongLongLongLongName anon = //indent:4 exp:4
new SecondClassWithLongLongLongLongName() { //indent:10 exp:>=8
}; //indent:4 exp:4
SecondClassWithLongLongLongLongName anon2 = new //indent:4 exp:4
SecondClassWithLongLongLongLongName() { //indent:10 exp:>=8
}; //indent:4 exp:4
} //indent:2 exp:2
} //indent:0 exp:0
class SecondClassWithLongLongLongLongName //indent:0 exp:0
extends //indent:4 exp:4
InputIndentationCorrectClass{ //indent:9 exp:>=4
} //indent:0 exp:0
class SecondClassReturnWithVeryVeryVeryLongName{} //indent:0 exp:0
|
[
"granogiovanni90@gmail.com"
] |
granogiovanni90@gmail.com
|
11d5777fd735bc411ffe5837afe584e5250d68b0
|
0e0dae718251c31cbe9181ccabf01d2b791bc2c2
|
/SCT2/tags/M_SCT2_05/plugins/org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/stext/SimpleScope.java
|
9843d6f00025898a95b4f3313c3d7978da26aa99
|
[] |
no_license
|
huybuidac20593/yakindu
|
377fb9100d7db6f4bb33a3caa78776c4a4b03773
|
304fb02b9c166f340f521f5e4c41d970268f28e9
|
refs/heads/master
| 2021-05-29T14:46:43.225721
| 2015-05-28T11:54:07
| 2015-05-28T11:54:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 449
|
java
|
/**
* <copyright>
* </copyright>
*
*/
package org.yakindu.sct.model.stext.stext;
import org.yakindu.sct.model.sgraph.Scope;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Simple Scope</b></em>'.
* <!-- end-user-doc -->
*
*
* @see org.yakindu.sct.model.stext.stext.StextPackage#getSimpleScope()
* @model
* @generated
*/
public interface SimpleScope extends Scope
{
} // SimpleScope
|
[
"terfloth@itemis.de"
] |
terfloth@itemis.de
|
ebcd56e7ab2efb2cb859793e40c115fae641cdf6
|
08718d637c89a4fb6fbdf6733d0a5a52321298b6
|
/xcEdu/xcEduService01/test-rabbitmq-producer/src/test/java/com/xuecheng/test/rabbitmq/Producer02_publish.java
|
c7d60682092823d67eebafa7562c47723ba4b2fb
|
[] |
no_license
|
q2315648899/teach
|
05e8ff8670c39adb9d87943304fb60aa4b5cc8ca
|
8b263564a6e24df95681c3f39dcc1e8bced17863
|
refs/heads/master
| 2023-05-22T19:52:34.727429
| 2021-06-11T03:24:54
| 2021-06-11T03:24:54
| 368,234,242
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,659
|
java
|
package com.xuecheng.test.rabbitmq;
import com.rabbitmq.client.BuiltinExchangeType;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
/**
* rabbit的发布订阅模式publish/subscribe(生产者)
* Create by wong on 2021/5/22
*/
public class Producer02_publish {
// 队列名称
private static final String QUEUE_INFORM_EMAIL = "queue_inform_email";// 邮箱
private static final String QUEUE_INFORM_SMS = "queue_inform_sms";// 短信
// exchange交换机名称
private static final String EXCHANGE_FANOUT_INFORM="exchange_fanout_inform";
public static void main(String[] args) {
// 通过连接窗口创建新的连接和mq建立连接
ConnectionFactory connectionFactory = new ConnectionFactory();
connectionFactory.setHost("127.0.0.1");
connectionFactory.setPort(5672);
connectionFactory.setUsername("guest");
connectionFactory.setPassword("guest");
// 设置虚拟机,rabbitmq默认虚拟机名称为“/”,一个mq服务可以设置多个虚拟机,每个虚拟机就相当于一个独立的mq
connectionFactory.setVirtualHost("/");
Connection connection = null;
Channel channel = null;
try {
// 创建与RabbitMQ服务的TCP连接
connection = connectionFactory.newConnection();
// 创建会话通道,生产者和mq服务所有通信都在channel通道中完成
channel = connection.createChannel();
// 声明队列,如果Rabbit中没有此队列将自动创建
// 参数:String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String, Object> arguments
/**
* 参数明细:
* param1:队列名称
* param2:是否持久化,如果持久化,mq重启后队列还在
* param3:队列是否独占此连接,队列只允许在该连接中访问,如果connection连接关闭则队列自动删除,如果将此参数设置为true可用于临时队列的创建
* param4:队列不再使用时是否自动删除此队列,如果将此参数和exclusive参数设置为true就可以实现临时队列(队列不用了就自动删除)
* param5:队列参数,可以设置一个队列的扩展参数,比如:可设置存活时间
*/
channel.queueDeclare(QUEUE_INFORM_EMAIL, true, false, false, null);
channel.queueDeclare(QUEUE_INFORM_SMS, true, false, false, null);
// 声明一个交换机
// 参数:String exchange, BuiltinExchangeType type
/**
* 参数明细:
* param1:交换机的名称
* param2:交换机的类型。fanout、topic、direct、headers
* fanout:对应的publish/subscribe的工作模式
* direct:对应的Routing的工作模式
* topic:对应的topics工作模式
* headers:对应的headers工作模式
*
*/
channel.exchangeDeclare(EXCHANGE_FANOUT_INFORM, BuiltinExchangeType.FANOUT);
// 进行交换机和队列绑定
// 参数:String queue, String exchange, String routingKey
/**
* 参数明细:
* param1:队列名称
* param2:交换机名称
* param3:路由key,作用是交换机根据路由key的值将信息转发到指定的队列中,在发布订阅模式中设置为空字符串
*/
channel.queueBind(QUEUE_INFORM_EMAIL, EXCHANGE_FANOUT_INFORM, "");
channel.queueBind(QUEUE_INFORM_SMS, EXCHANGE_FANOUT_INFORM, "");
// 发送消息
for (int i = 0; i < 5; i++) {
// 消息发布方法basicPublish
// 参数:String exchange, String routingKey, BasicProperties props, byte[] body
/**
* 参数明细
* param1:Exchange的名称,如果没有指定,则使用Default Exchange(mq的默认交换机)
* param2:routingKey,消息的路由Key,是用于Exchange(交换机)将消息转发到指定的消息队列,如果使用默认交换机,routingKey设置为队列的名称
* param3:消息包含的属性
* param4:消息内容
*
* 这里没有指定交换机,消息将发送给默认交换机,每个队列也会绑定那个默认的交换机,但是不能显示绑定或解除绑定
* 默认的交换机,routingKey等于队列名称
* */
// 消息内容
String message = "send inform message to user";
channel.basicPublish(EXCHANGE_FANOUT_INFORM, "", null, message.getBytes());
System.out.println("send to mq " + message);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
// 先关闭通道
// 再关闭连接
try {
channel.close();
} catch (IOException e) {
e.printStackTrace();
} catch (TimeoutException e) {
e.printStackTrace();
}
try {
connection.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
|
[
"406972433@qq.com"
] |
406972433@qq.com
|
ad40d8f00d60803430f5631c3c89099b1ce2528e
|
c94f888541c0c430331110818ed7f3d6b27b788a
|
/yunqing/java/src/main/java/com/antgroup/antchain/openapi/yunqing/models/Cell.java
|
ff098409b74a2afc515b8b40ac67b2584d9782d0
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
alipay/antchain-openapi-prod-sdk
|
48534eb78878bd708a0c05f2fe280ba9c41d09ad
|
5269b1f55f1fc19cf0584dc3ceea821d3f8f8632
|
refs/heads/master
| 2023-09-03T07:12:04.166131
| 2023-09-01T08:56:15
| 2023-09-01T08:56:15
| 275,521,177
| 9
| 10
|
MIT
| 2021-03-25T02:35:20
| 2020-06-28T06:22:14
|
PHP
|
UTF-8
|
Java
| false
| false
| 3,352
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.yunqing.models;
import com.aliyun.tea.*;
public class Cell extends TeaModel {
// LDC下cellGroup的ID
@NameInMap("cell_group_id")
public String cellGroupId;
// 单元的id
@NameInMap("cell_id")
@Validation(required = true)
public String cellId;
// LDC的蓝绿着色
@NameInMap("color")
public String color;
// LDC的默认权重
@NameInMap("default_weight")
public Long defaultWeight;
// LDC下是否灰度
@NameInMap("gray")
public Boolean gray;
// 单元的名字
@NameInMap("name")
@Validation(required = true)
public String name;
// 所在地域的id
@NameInMap("region_id")
@Validation(required = true)
public String regionId;
// LDC的GRCZone类型
@NameInMap("type")
public String type;
// 工作空间id
@NameInMap("workspace_id")
@Validation(required = true)
public String workspaceId;
// 所属机房的id
@NameInMap("zone_id")
@Validation(required = true)
public String zoneId;
// 显示的名字
@NameInMap("display_name")
@Validation(required = true)
public String displayName;
public static Cell build(java.util.Map<String, ?> map) throws Exception {
Cell self = new Cell();
return TeaModel.build(map, self);
}
public Cell setCellGroupId(String cellGroupId) {
this.cellGroupId = cellGroupId;
return this;
}
public String getCellGroupId() {
return this.cellGroupId;
}
public Cell setCellId(String cellId) {
this.cellId = cellId;
return this;
}
public String getCellId() {
return this.cellId;
}
public Cell setColor(String color) {
this.color = color;
return this;
}
public String getColor() {
return this.color;
}
public Cell setDefaultWeight(Long defaultWeight) {
this.defaultWeight = defaultWeight;
return this;
}
public Long getDefaultWeight() {
return this.defaultWeight;
}
public Cell setGray(Boolean gray) {
this.gray = gray;
return this;
}
public Boolean getGray() {
return this.gray;
}
public Cell setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public Cell setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public Cell setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
public Cell setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public String getWorkspaceId() {
return this.workspaceId;
}
public Cell setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public String getZoneId() {
return this.zoneId;
}
public Cell setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return this.displayName;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
811434dfdbb7e0f7588182af9013d73f8ec2aa3c
|
774d36285e48bd429017b6901a59b8e3a51d6add
|
/sources/com/google/android/gms/internal/measurement/zzne.java
|
fe2b70369be98e681364ff3d54709cdfe82da173
|
[] |
no_license
|
jorge-luque/hb
|
83c086851a409e7e476298ffdf6ba0c8d06911db
|
b467a9af24164f7561057e5bcd19cdbc8647d2e5
|
refs/heads/master
| 2023-08-25T09:32:18.793176
| 2020-10-02T11:02:01
| 2020-10-02T11:02:01
| 300,586,541
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 182
|
java
|
package com.google.android.gms.internal.measurement;
/* compiled from: com.google.android.gms:play-services-measurement-impl@@17.4.1 */
public interface zzne {
boolean zza();
}
|
[
"jorge.luque@taiger.com"
] |
jorge.luque@taiger.com
|
6e768eb73d86dc55602b9cf77e5442992685553c
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/dbeaver/2015/12/SQLTableManager.java
|
70ce7255d0a4d492778f49378e20d9572a04fc49
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 5,591
|
java
|
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package org.jkiss.dbeaver.model.impl.sql.edit.struct;
import org.jkiss.dbeaver.DBException;
import org.jkiss.dbeaver.model.impl.DBObjectNameCaseTransformer;
import org.jkiss.dbeaver.model.messages.ModelMessages;
import org.jkiss.dbeaver.model.edit.DBEPersistAction;
import org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction;
import org.jkiss.dbeaver.model.impl.jdbc.struct.JDBCTable;
import org.jkiss.dbeaver.model.impl.sql.edit.SQLStructEditor;
import org.jkiss.dbeaver.model.struct.DBSObject;
import org.jkiss.dbeaver.model.struct.DBSObjectContainer;
import org.jkiss.dbeaver.model.runtime.VoidProgressMonitor;
import org.jkiss.dbeaver.utils.GeneralUtils;
import org.jkiss.utils.CommonUtils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* JDBC table manager
*/
public abstract class SQLTableManager<OBJECT_TYPE extends JDBCTable, CONTAINER_TYPE extends DBSObjectContainer>
extends SQLStructEditor<OBJECT_TYPE, CONTAINER_TYPE>
{
private static final String BASE_TABLE_NAME = "NewTable"; //$NON-NLS-1$
@Override
public long getMakerOptions()
{
return FEATURE_EDITOR_ON_CREATE;
}
@Override
protected final DBEPersistAction[] makeObjectCreateActions(ObjectCreateCommand objectChangeCommand)
{
throw new IllegalStateException("makeObjectCreateActions should never be called in struct editor");
}
@Override
protected DBEPersistAction[] makeStructObjectCreateActions(StructCreateCommand command)
{
final OBJECT_TYPE table = command.getObject();
final NestedObjectCommand tableProps = command.getObjectCommands().get(table);
if (tableProps == null) {
log.warn("Object change command not found"); //$NON-NLS-1$
return null;
}
List<DBEPersistAction> actions = new ArrayList<>();
final String tableName = table.getFullQualifiedName();
final String lineSeparator = GeneralUtils.getDefaultLineSeparator();
StringBuilder createQuery = new StringBuilder(100);
createQuery.append("CREATE TABLE ").append(tableName).append(" (").append(lineSeparator); //$NON-NLS-1$ //$NON-NLS-2$
boolean hasNestedDeclarations = false;
for (NestedObjectCommand nestedCommand : getNestedOrderedCommands(command)) {
if (nestedCommand.getObject() == table) {
continue;
}
final String nestedDeclaration = nestedCommand.getNestedDeclaration(table);
if (!CommonUtils.isEmpty(nestedDeclaration)) {
// Insert nested declaration
if (hasNestedDeclarations) {
createQuery.append(",").append(lineSeparator); //$NON-NLS-1$
}
createQuery.append("\t").append(nestedDeclaration); //$NON-NLS-1$
hasNestedDeclarations = true;
} else {
// This command should be executed separately
final DBEPersistAction[] nestedActions = nestedCommand.getPersistActions();
if (nestedActions != null) {
Collections.addAll(actions, nestedActions);
}
}
}
createQuery.append(lineSeparator).append(")"); //$NON-NLS-1$
appendTableModifiers(table, tableProps, createQuery);
actions.add( 0, new SQLDatabasePersistAction(ModelMessages.model_jdbc_create_new_table, createQuery.toString()) );
return actions.toArray(new DBEPersistAction[actions.size()]);
}
@Override
protected DBEPersistAction[] makeObjectDeleteActions(ObjectDeleteCommand command)
{
return new DBEPersistAction[] {
new SQLDatabasePersistAction(
ModelMessages.model_jdbc_drop_table,
"DROP " + (command.getObject().isView() ? "VIEW" : "TABLE") +
" " + command.getObject().getFullQualifiedName()) //$NON-NLS-2$
};
}
protected void appendTableModifiers(OBJECT_TYPE table, NestedObjectCommand tableProps, StringBuilder ddl)
{
}
protected void setTableName(CONTAINER_TYPE container, OBJECT_TYPE table) throws DBException {
table.setName(getTableName(container));
}
protected String getTableName(CONTAINER_TYPE container) throws DBException {
for (int i = 0; ; i++) {
String tableName = DBObjectNameCaseTransformer.transformName(container.getDataSource(), i == 0 ? BASE_TABLE_NAME : (BASE_TABLE_NAME + "_" + i));
DBSObject child = container.getChild(VoidProgressMonitor.INSTANCE, tableName);
if (child == null) {
return tableName;
}
}
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
47cd57c729f26dc56dc2e2639f5f68eeef7e9442
|
3a5985651d77a31437cfdac25e594087c27e93d6
|
/ojc-core/edmse/edmengine/src/com/sun/mashup/engine/response/XMLSerializer.java
|
8451eb64b476b2f7c6b082644918832952401aa1
|
[] |
no_license
|
vitalif/openesb-components
|
a37d62133d81edb3fdc091abd5c1d72dbe2fc736
|
560910d2a1fdf31879e3d76825edf079f76812c7
|
refs/heads/master
| 2023-09-04T14:40:55.665415
| 2016-01-25T13:12:22
| 2016-01-25T13:12:33
| 48,222,841
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,151
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.sun.mashup.engine.response;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.sun.sql.framework.utils.XmlUtil;
/**
*
* @author admin
*/
public class XMLSerializer implements Serializer {
public String serialize(ResultSet rs,String column,int offset) {
StringBuffer rsStrBuffer = new StringBuffer();
boolean columnFound = false;
try {
ResultSetMetaData rsmd = rs.getMetaData();
//int recordcount = 0;
int recordcount= offset;
while (rs.next()) {
rsStrBuffer.append("<RECORD ID =\"" + ++recordcount +"\">" );
StringBuffer metaStrBuffer = new StringBuffer();
for (int i = 0; i < rsmd.getColumnCount(); i++) {
String colname = rsmd.getColumnName(i + 1);
if (colname.equalsIgnoreCase(column)) {
// rsStrBuffer = null;
metaStrBuffer.delete(0, metaStrBuffer.length());
metaStrBuffer.append("<" + colname + ">" + XmlUtil.escapeXML(rs.getString(colname)) + "</" +colname + ">\n");
columnFound = true;
} else if ((!colname.equalsIgnoreCase(column) || column != null) && columnFound == false) {
metaStrBuffer.append("<" + colname + ">" + XmlUtil.escapeXML(rs.getString(colname)) + "</" + colname + ">\n");
}
}
rsStrBuffer.append(metaStrBuffer);
rsStrBuffer.append("</RECORD>\n");
}
} catch (SQLException ex) {
Logger.getLogger("global").log(Level.SEVERE, null, ex);
}
return rsStrBuffer.toString();
}
}
|
[
"bitbucket@bitbucket02.private.bitbucket.org"
] |
bitbucket@bitbucket02.private.bitbucket.org
|
c5729d04905c61ddc38c7ed5d7abfc762799cde7
|
7f9e44a5f3137f2830fb8b0c3c0dd5ea5ca39aa2
|
/src/main/java/std/wlj/util/TestFindLots.java
|
7096345c9d11649fef555ad92027a0754fbdd244
|
[] |
no_license
|
wjohnson000/wlj-place-test
|
042398f3b6f3472638e2c6d263419eb4670a5dde
|
d23ece28efe4f79b9f5343a75b1a85e8567d3021
|
refs/heads/master
| 2021-08-03T22:42:30.127330
| 2021-04-29T21:19:27
| 2021-04-29T21:19:27
| 18,767,871
| 0
| 0
| null | 2021-08-03T12:18:26
| 2014-04-14T16:30:20
|
Java
|
UTF-8
|
Java
| false
| false
| 5,445
|
java
|
package std.wlj.util;
import org.familysearch.standards.core.StdLocale;
import org.familysearch.standards.place.PlaceRepresentation;
import org.familysearch.standards.place.PlaceRequestBuilder;
import org.familysearch.standards.place.PlaceResults;
import org.familysearch.standards.place.PlaceService;
import org.familysearch.standards.place.data.TypeBridge;
import org.familysearch.standards.place.data.solr.SolrService;
import org.familysearch.standards.place.exceptions.PlaceDataException;
import org.familysearch.standards.place.search.DefaultPlaceRequestProfile;
import org.familysearch.standards.place.search.PlaceRequestProfile;
//import org.familysearch.standards.place.util.NamePriorityHelper;
public class TestFindLots {
/** Sample data for interpretation ... */
private static String[] textes = {
"Provo, Ut, Ut",
"Darlington, South Carolina",
"la asuncion, tecamachalco, puebla, mexico",
"ostre gausdal,opland,norway",
"Mogulreich",
"heinolan mlk,mikkeli,finland",
"アルゼンチン",
"whittlesford, cambridge",
"Mexiko-Stadt",
"trierweiler, germany",
"lubusz voivodeship",
"weymouth, dorset",
"pennsylvania, united states",
"davenport, scott, iowa",
"la purisima concepcion, tula, hidalgo, mexico",
"Nieuw-Zeeland",
"butler county ohio",
"cherry hill, new jersey",
"san antonio de cortes, cortes, honduras",
", skinnskatteberg, vastmanland, sweden",
"Bangladesz",
"glamorgan, wales",
"kanazawa, ishikawa",
"alsace lorraine",
", south australia, australia",
"sankt petri,berlin stadt,brandenburg,prussia",
"cumberland county, pennsylvania",
"nova scotia, canada",
"san juan bautista, estella, navarra, spain",
"baranya,,,hungary",
"wayne, michigan",
"bishopwearmouth,durham,england",
"Bulgária",
"holmens sogn, kobenhavn, kobenhavn, denmark",
"Sudáfrica",
"beverly, essex, massachusetts",
"valkeala,viipuri,finland",
"inmaculada concepción, graneros, tucumán, argentina",
"amsterdam, noord-holland, netherlands",
"chengdu",
"katholisch, kornelimuenster, rheinland, prussia",
"earsdon by north shields, northumberland, england",
", floyd, kentucky",
"dawley magna,shropshire,england",
"montrose, angus",
"parramatta, new south wales",
"bloomington, Indiana",
"san phelipe or san felipe,linares,nuevo leon,mexico",
"baltimore md",
"gruenhain,zwickau,saxony",
", umea lands, vasterbotten, sweden",
"st. george the martyr,southwark,london,englan",
"vernal, uintah, utah",
"dane county, wisconsin",
"Joshua-Tree-Nationalpark",
",, indiana, usa",
"gosford, new south wales",
"wye, kent, england",
"monroe county arkansas",
"aschersleben, sachsen, preussen, germany",
"st. andrew par. reg. and nonconf.,newcastle upon tyne,northumberland,england",
"mono county, california",
"ilkeston",
"notre dame, bar-le-duc, meuse, france",
"Grønland",
"świętokrzyskie voivodeship",
"zala, zala,,hungary",
"dalton in furness, lancashire",
"chihuahua, chihuahua",
"billigheim",
"saint michael,barbadoes,caribbean",
"middlesex county, massachusetts",
"merrimon carteret co., nc",
"Congo-Kinshasa",
"Falklandinseln",
"san pedro, tacna, tacna, peru",
"ennighüffen,westfalen,preussen,germany"
};
public static void main(String... args) throws PlaceDataException {
SolrService solrService = SolrManager.localEmbeddedService();
PlaceRequestProfile profile = new DefaultPlaceRequestProfile("default", solrService, null);
PlaceService placeService = new PlaceService(profile);
System.out.println("Place-Type count: " + solrService.getTypes(TypeBridge.TYPE.PLACE).size());
System.out.println("Place-Name count: " + solrService.getTypes(TypeBridge.TYPE.NAME).size());
// System.out.println("Name-Priority: " + NamePriorityHelper.getInstance());
// Do a couple of interpretations for fun ...
for (String throwAway : new String[] { "Utah, USA", "Darlington, South Carolina" } ) {
PlaceRequestBuilder builder = placeService.createRequestBuilder(throwAway, StdLocale.ENGLISH);
placeService.requestPlaces(builder.getRequest());
}
// Do the **real** interpretations
System.out.println("Text|TotalTime|Assembly|CndLookupTime|CndTime|ParseTime|PreScoreCnt|RawCnt|Scorer.NVPS|Scorer.EMS|Scorer.FLTHS|Results");
for (String text : textes) {
PlaceRequestBuilder builder = placeService.createRequestBuilder(text, StdLocale.ENGLISH);
builder.setShouldCollectMetrics(true);
PlaceResults results = placeService.requestPlaces(builder.getRequest());
System.out.print("|");
for (PlaceRepresentation placeRep : results.getPlaceRepresentations()) {
System.out.print(placeRep + ",");
}
System.out.println();
try { Thread.sleep(250); } catch(Exception ex) { }
}
System.exit(0);
}
}
|
[
"wjohnson@familysearch.org"
] |
wjohnson@familysearch.org
|
2a9e17321b379abd9ca9ad3a1557ddceed8be703
|
bc0358e40ee5ffe43413c6126b60866614505f5e
|
/jtt808-protocol/src/main/java/org/yzh/protocol/commons/transform/parameter/ParamTPMS.java
|
93ffe4392c402acd0e812bc19644ade3a605f220
|
[
"Apache-2.0"
] |
permissive
|
yezhihao/jt808-server
|
50020d1f74aca9d90e0454c00eca5c0c022045e1
|
59c819afbf1cbe3001b07e29abb854553af4cb79
|
refs/heads/master
| 2023-06-24T01:32:07.158148
| 2023-06-12T08:28:40
| 2023-06-12T08:28:40
| 180,277,703
| 443
| 199
|
Apache-2.0
| 2023-06-14T22:57:43
| 2019-04-09T03:28:07
|
Java
|
UTF-8
|
Java
| false
| false
| 5,698
|
java
|
package org.yzh.protocol.commons.transform.parameter;
import io.github.yezhihao.protostar.Schema;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.util.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import java.nio.charset.StandardCharsets;
/**
* 胎压监测系统参数
* @author yezhihao
* https://gitee.com/yezhihao/jt808-server
*/
public class ParamTPMS {
public static final Integer key = 0xF366;
public static final Schema<ParamTPMS> SCHEMA = new ParamTPMSSchema();
@Field(desc = "轮胎规格型号(例:195/65R1591V,12个字符,默认值'900R20')")
private String tireType;
@Field(desc = "胎压单位:0.kg/cm2 1.bar 2.Kpa 3.PSI(默认值3)")
private int pressureUnit = -1;
@Field(desc = "正常胎压值(同胎压单位,默认值140)")
private int normalValue = -1;
@Field(desc = "胎压不平衡报警阈值(百分比0~100,达到冷态气压值,默认值20)")
private int imbalanceThreshold = -1;
@Field(desc = "慢漏气报警阈值(百分比0~100,达到冷态气压值,默认值5)")
private int lowLeakThreshold = -1;
@Field(desc = "低压报警阈值(同胎压单位,默认值110)")
private int lowPressureThreshold = -1;
@Field(desc = "高压报警阈值(同胎压单位,默认值189)")
private int highPressureThreshold = -1;
@Field(desc = "高温报警阈值(摄氏度,默认值80)")
private int highTemperatureThreshold = -1;
@Field(desc = "电压报警阈值(百分比0~100,默认值10)")
private int voltageThreshold = -1;
@Field(desc = "定时上报时间间隔(秒,取值0~3600,默认值60,0表示不上报)")
private int reportInterval = -1;
@Field(desc = "保留项")
private byte[] reserved = new byte[6];
public String getTireType() {
return tireType;
}
public void setTireType(String tireType) {
this.tireType = tireType;
}
public int getPressureUnit() {
return pressureUnit;
}
public void setPressureUnit(int pressureUnit) {
this.pressureUnit = pressureUnit;
}
public int getNormalValue() {
return normalValue;
}
public void setNormalValue(int normalValue) {
this.normalValue = normalValue;
}
public int getImbalanceThreshold() {
return imbalanceThreshold;
}
public void setImbalanceThreshold(int imbalanceThreshold) {
this.imbalanceThreshold = imbalanceThreshold;
}
public int getLowLeakThreshold() {
return lowLeakThreshold;
}
public void setLowLeakThreshold(int lowLeakThreshold) {
this.lowLeakThreshold = lowLeakThreshold;
}
public int getLowPressureThreshold() {
return lowPressureThreshold;
}
public void setLowPressureThreshold(int lowPressureThreshold) {
this.lowPressureThreshold = lowPressureThreshold;
}
public int getHighPressureThreshold() {
return highPressureThreshold;
}
public void setHighPressureThreshold(int highPressureThreshold) {
this.highPressureThreshold = highPressureThreshold;
}
public int getHighTemperatureThreshold() {
return highTemperatureThreshold;
}
public void setHighTemperatureThreshold(int highTemperatureThreshold) {
this.highTemperatureThreshold = highTemperatureThreshold;
}
public int getVoltageThreshold() {
return voltageThreshold;
}
public void setVoltageThreshold(int voltageThreshold) {
this.voltageThreshold = voltageThreshold;
}
public int getReportInterval() {
return reportInterval;
}
public void setReportInterval(int reportInterval) {
this.reportInterval = reportInterval;
}
public byte[] getReserved() {
return reserved;
}
public void setReserved(byte[] reserved) {
this.reserved = reserved;
}
private static class ParamTPMSSchema implements Schema<ParamTPMS> {
private ParamTPMSSchema() {
}
@Override
public ParamTPMS readFrom(ByteBuf input) {
ParamTPMS message = new ParamTPMS();
message.tireType = input.readCharSequence(12, StandardCharsets.US_ASCII).toString();
message.pressureUnit = input.readShort();
message.normalValue = input.readShort();
message.imbalanceThreshold = input.readShort();
message.lowLeakThreshold = input.readShort();
message.lowPressureThreshold = input.readShort();
message.highPressureThreshold = input.readShort();
message.highTemperatureThreshold = input.readShort();
message.voltageThreshold = input.readShort();
message.reportInterval = input.readShort();
input.readBytes(message.reserved);
return message;
}
@Override
public void writeTo(ByteBuf output, ParamTPMS message) {
byte[] bytes = message.getTireType().getBytes(StandardCharsets.US_ASCII);
ByteBufUtils.writeFixedLength(output, 12, bytes);
output.writeShort(message.pressureUnit);
output.writeShort(message.normalValue);
output.writeShort(message.imbalanceThreshold);
output.writeShort(message.lowLeakThreshold);
output.writeShort(message.lowPressureThreshold);
output.writeShort(message.highPressureThreshold);
output.writeShort(message.highTemperatureThreshold);
output.writeShort(message.voltageThreshold);
output.writeShort(message.reportInterval);
ByteBufUtils.writeFixedLength(output, 6, message.getReserved());
}
}
}
|
[
"zhihao.ye@qq.com"
] |
zhihao.ye@qq.com
|
23930a83bfade98232f5e6a29410323beb5a47f0
|
2c9e0541ed8a22bcdc81ae2f9610a118f62c4c4d
|
/harmony/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/lang/ThreadGroup/setDaemon/setDaemon10/setDaemon1010/setDaemon1010.java
|
0b98fd8e94a69bb1f4afcb7c03bdabe9e7340c0d
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
JetBrains/jdk8u_tests
|
774de7dffd513fd61458b4f7c26edd7924c7f1a5
|
263c74f1842954bae0b34ec3703ad35668b3ffa2
|
refs/heads/master
| 2023-08-07T17:57:58.511814
| 2017-03-20T08:13:25
| 2017-03-20T08:16:11
| 70,048,797
| 11
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,754
|
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.harmony.test.func.api.java.lang.ThreadGroup.setDaemon.setDaemon10.setDaemon1010;
import org.apache.harmony.share.Test;
import org.apache.harmony.test.func.share.MyLog;
public class setDaemon1010 extends Test {
boolean results[] = new boolean[100];
String logArray[] = new String[100];
int logIndex = 0;
Object sdObjects[] = { null, new Object(), new Object() };
void addLog(String s) {
if ( logIndex < logArray.length )
logArray[logIndex] = s;
logIndex++;
}
void setDaemon1010() {
ThreadGroup tgObjects[] = { null,
new ThreadGroup("tg1"),
new ThreadGroup("tg1"),
new ThreadGroup("tg2"),
null, null, null
};
tgObjects[4] = new ThreadGroup(tgObjects[1], "tg1");
tgObjects[5] = new ThreadGroup(tgObjects[1], "tg1");
tgObjects[6] = new ThreadGroup(tgObjects[2], "tg2");
label: {
//-1
ThreadsetDaemon1010 t1[] = { null,
new ThreadsetDaemon1010(tgObjects[1], "t21"),
new ThreadsetDaemon1010(tgObjects[2], "t22"),
new ThreadsetDaemon1010(tgObjects[3], "t23"),
new ThreadsetDaemon1010(tgObjects[4], "t24"),
new ThreadsetDaemon1010(tgObjects[5], "t25"),
new ThreadsetDaemon1010(tgObjects[6], "t26"),
};
for ( int i = 1; i < tgObjects.length; i++ ) {
tgObjects[i].setDaemon(false);
}
synchronized(sdObjects[2]) {
synchronized(sdObjects[1]) {
for (int j = 1; j < t1.length; j++ ) {
try {
t1[j].start();
sdObjects[1].wait(60000);
} catch (InterruptedException e) {
addLog("ERROR: unexpectead InterruptedException");
results[results.length -1] = false;
break label;
}
}
}
}
for ( int j = 1; j < t1.length; j++ ) {
try {
t1[j].join();
} catch (InterruptedException e) {
addLog("ERROR: unexpectead InterruptedException");
results[results.length -1] = false;
break label;
}
results[j] = ! tgObjects[j].isDestroyed();
}
//-1)
//-2
ThreadsetDaemon1010 t2[] = { null,
new ThreadsetDaemon1010(tgObjects[1], "t21"),
new ThreadsetDaemon1010(tgObjects[2], "t22"),
new ThreadsetDaemon1010(tgObjects[3], "t23"),
new ThreadsetDaemon1010(tgObjects[4], "t24"),
new ThreadsetDaemon1010(tgObjects[5], "t25"),
new ThreadsetDaemon1010(tgObjects[6], "t26"),
};
for ( int i = 1; i < tgObjects.length; i++ ) {
tgObjects[i].setDaemon(true);
tgObjects[5].setDaemon(false);
}
synchronized(sdObjects[2]) {
synchronized(sdObjects[1]) {
for (int j = 1; j < t1.length; j++ ) {
try {
t2[j].start();
sdObjects[1].wait(60000);
} catch (InterruptedException e) {
addLog("ERROR: unexpectead InterruptedException");
results[results.length -1] = false;
break label;
}
}
}
}
boolean expected[] = { false, false, true, true, true, false, true };
for ( int j = t2.length -1; j > 0; j-- ) {
try {
t2[j].join();
} catch (InterruptedException e) {
addLog("ERROR: unexpectead InterruptedException");
results[results.length -1] = false;
break label;
}
results[j + 7] = ( expected[j] == tgObjects[j].isDestroyed() );
}
//-2)
//-3
tgObjects[5].destroy();
results[12] = tgObjects[5].isDestroyed();
results[8] = tgObjects[1].isDestroyed();
//-3)
} //label:
return ;
}
class ThreadsetDaemon1010 extends Thread {
ThreadsetDaemon1010(ThreadGroup tg, String s) {super(tg, s);}
public void run() {
synchronized(sdObjects[1]) {
sdObjects[1].notify();
}
synchronized(sdObjects[2]) {
}
}
}
public int test() {
logIndex = 0;
String texts[] = { "Testcase FAILURE, results[#] = " ,
"Test P A S S E D" ,
"Test F A I L E D" ,
"#### U N E X P E C T E D : " };
int failed = 105;
int passed = 104;
int unexpected = 106;
int toReturn = 0;
String toPrint = null;
for ( int i = 0; i < results.length; i++ )
results[i] = true;
try {
addLog("********* Test setDaemon1010 begins ");
setDaemon1010();
addLog("********* Test setDaemon1010 results: ");
boolean result = true;
for ( int i = 1 ; i < results.length ; i++ ) {
result &= results[i];
if ( ! results[i] )
addLog(texts[0] + i);
}
if ( ! result ) {
toPrint = texts[2];
toReturn = failed;
}
if ( result ) {
toPrint = texts[1];
toReturn = passed;
}
} catch (Exception e) {
toPrint = texts[3] + e;
toReturn = unexpected;
}
if ( toReturn != passed )
for ( int i = 0; i < logIndex; i++ )
MyLog.toMyLog(logArray[i]);
MyLog.toMyLog(toPrint);
return toReturn;
}
public static void main(String args[]) {
System.exit(new setDaemon1010().test());
}
}
|
[
"vitaly.provodin@jetbrains.com"
] |
vitaly.provodin@jetbrains.com
|
87591dd65823e45dbba19fd393c7bfa758a586c4
|
4c1682a119bb11f6577f89486273a001d148b865
|
/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-websocket-jetty10/src/main/java/smoketest/websocket/jetty10/client/SimpleClientWebSocketHandler.java
|
5e628fb651885124115e2319e0dcabf29c789fd0
|
[
"Apache-2.0"
] |
permissive
|
utgpay2/spring-boot
|
b869395cb088ae6ce4c399ce1a4e45b2ddfcbe04
|
bdb18914503ae02988ebea545ae0d33d90e0417e
|
refs/heads/main
| 2023-07-31T08:32:31.823341
| 2021-09-15T10:13:09
| 2021-09-15T10:13:09
| 406,850,466
| 1
| 0
|
Apache-2.0
| 2021-09-15T16:42:23
| 2021-09-15T16:42:20
| null |
UTF-8
|
Java
| false
| false
| 2,053
|
java
|
/*
* Copyright 2012-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package smoketest.websocket.jetty10.client;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;
public class SimpleClientWebSocketHandler extends TextWebSocketHandler {
protected Log logger = LogFactory.getLog(SimpleClientWebSocketHandler.class);
private final GreetingService greetingService;
private final CountDownLatch latch;
private final AtomicReference<String> messagePayload;
public SimpleClientWebSocketHandler(GreetingService greetingService, CountDownLatch latch,
AtomicReference<String> message) {
this.greetingService = greetingService;
this.latch = latch;
this.messagePayload = message;
}
@Override
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
TextMessage message = new TextMessage(this.greetingService.getGreeting());
session.sendMessage(message);
}
@Override
public void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
this.logger.info("Received: " + message + " (" + this.latch.getCount() + ")");
session.close();
this.messagePayload.set(message.getPayload());
this.latch.countDown();
}
}
|
[
"wilkinsona@vmware.com"
] |
wilkinsona@vmware.com
|
9a5f01348c99eb398c25eb68cf8a1c9cbda688cc
|
12544c3b973c107265bb74c1970a5f1d2fc9aff2
|
/src/java/main/com/mangocity/mbr/controller/point/PointAuthService.java
|
47ea3d5e0d7e6ac01c2c75f17592eb2a313ee5dd
|
[] |
no_license
|
jerrik123/Service_En_gine
|
eb8cb5b8f6b73d38c096462594a76b69f56af859
|
c680b94e88a77b41db39c9413ba2782a0444e8d4
|
refs/heads/master
| 2021-06-06T04:05:31.325731
| 2016-07-14T02:50:27
| 2016-07-14T02:50:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,532
|
java
|
package com.mangocity.mbr.controller.point;
import org.apache.log4j.Logger;
import com.mangocity.ce.bean.EngineBean;
import com.mangocity.ce.exception.ExceptionAbstract;
import com.mangocity.ce.util.AssertUtils;
import com.mangocity.ce.util.CommonUtils;
import com.mangocity.mbr.book.ErrorCode;
import com.mangocity.mbr.util.ErrorUtils;
import com.mangocity.mbr.util.ServerCall;
/**
* 积分授权
* @author longshu.chen
*
*/
public class PointAuthService {
private static final Logger log = Logger.getLogger(PointAuthService.class);
/**
* 通过mbrid查询授权
* @param map
* @return
*/
public EngineBean selectPointAuthorizeBymbrId(EngineBean pb)throws ExceptionAbstract{
log.info("PointAuthFactory selectPointAuthorizeBymbrId begin()...");
AssertUtils.assertNull(pb, "EngineBean can't be null.");
Long mbrId = CommonUtils.objectToLong((String) pb.getHead("mbrId"), -1L);
//String aToken = (String) pb.getHead("aToken");
if (-1L == mbrId) {
return ErrorUtils.error(pb, ErrorCode.ERROR_REQUEST_PARAM_INVALID,"mbrId不能为空或非法数字");
}
// 1.判断aToken是否存在 false:返回lToken错误
// if (!RedisUtils.exists(aToken)) {
// return ErrorUtils.error(pb, ErrorCode.ERROR_REQUEST_PARAM_INVALID,
// "缓存中不存在该aToken");
// }
EngineBean pointAuthBean = ServerCall.call(pb);
return pointAuthBean;
}
/**
* 插入积分授权
* @param map
* @return
*/
public EngineBean insertPointAuthorize(EngineBean pb)throws Exception{
log.info("PointAuthFactory insertPointAuthorize begin()...");
AssertUtils.assertNull(pb, "EngineBean can't be null.");
Long mbrId = CommonUtils.objectToLong((String) pb.getHead("mbrId"), -1L);
String authorizeId = (String) pb.getHead("authorizeId");
if (-1L == mbrId) {
return ErrorUtils.error(pb, ErrorCode.ERROR_REQUEST_PARAM_INVALID,"mbrId不能为空或非法数字");
}
if (CommonUtils.isBlank(authorizeId)) {
return ErrorUtils.error(pb, ErrorCode.ERROR_REQUEST_PARAM_INVALID,
"authorizeId不能为空");
}
EngineBean pointAuthBean = ServerCall.call(pb);
return pointAuthBean;
}
/**
* 根据授权Id查询有效授权信息
* @param map
* @return
*/
public EngineBean queryPointAuthorizeByAuthorizeId(EngineBean pb)throws Exception{
log.info("PointAuthFactory queryPointAuthorizeByAuthorizeId begin()...");
EngineBean pointAuthBean = ServerCall.call(pb);
log.info("queryPointAuthorizeByAuthorizeId resultEngineBean: " + pointAuthBean);
return pointAuthBean;
}
}
|
[
"yangjie_software@163.com"
] |
yangjie_software@163.com
|
bcbeb563222e8b03167a133f475bff60027460d4
|
b2f07f3e27b2162b5ee6896814f96c59c2c17405
|
/com/sun/xml/internal/txw2/output/IndentingXMLStreamWriter.java
|
d83cfdadbc6c6d9551f757b4894b3547b3b23240
|
[] |
no_license
|
weiju-xi/RT-JAR-CODE
|
e33d4ccd9306d9e63029ddb0c145e620921d2dbd
|
d5b2590518ffb83596a3aa3849249cf871ab6d4e
|
refs/heads/master
| 2021-09-08T02:36:06.675911
| 2018-03-06T05:27:49
| 2018-03-06T05:27:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,514
|
java
|
/* */ package com.sun.xml.internal.txw2.output;
/* */
/* */ import java.util.Stack;
/* */ import javax.xml.stream.XMLStreamException;
/* */ import javax.xml.stream.XMLStreamWriter;
/* */
/* */ public class IndentingXMLStreamWriter extends DelegatingXMLStreamWriter
/* */ {
/* 36 */ private static final Object SEEN_NOTHING = new Object();
/* 37 */ private static final Object SEEN_ELEMENT = new Object();
/* 38 */ private static final Object SEEN_DATA = new Object();
/* */
/* 40 */ private Object state = SEEN_NOTHING;
/* 41 */ private Stack<Object> stateStack = new Stack();
/* */
/* 43 */ private String indentStep = " ";
/* 44 */ private int depth = 0;
/* */
/* */ public IndentingXMLStreamWriter(XMLStreamWriter writer) {
/* 47 */ super(writer);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public int getIndentStep()
/* */ {
/* 65 */ return this.indentStep.length();
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setIndentStep(int indentStep)
/* */ {
/* 80 */ StringBuilder s = new StringBuilder();
/* 81 */ for (; indentStep > 0; indentStep--) s.append(' ');
/* 82 */ setIndentStep(s.toString());
/* */ }
/* */
/* */ public void setIndentStep(String s) {
/* 86 */ this.indentStep = s;
/* */ }
/* */
/* */ private void onStartElement() throws XMLStreamException {
/* 90 */ this.stateStack.push(SEEN_ELEMENT);
/* 91 */ this.state = SEEN_NOTHING;
/* 92 */ if (this.depth > 0) {
/* 93 */ super.writeCharacters("\n");
/* */ }
/* 95 */ doIndent();
/* 96 */ this.depth += 1;
/* */ }
/* */
/* */ private void onEndElement() throws XMLStreamException {
/* 100 */ this.depth -= 1;
/* 101 */ if (this.state == SEEN_ELEMENT) {
/* 102 */ super.writeCharacters("\n");
/* 103 */ doIndent();
/* */ }
/* 105 */ this.state = this.stateStack.pop();
/* */ }
/* */
/* */ private void onEmptyElement() throws XMLStreamException {
/* 109 */ this.state = SEEN_ELEMENT;
/* 110 */ if (this.depth > 0) {
/* 111 */ super.writeCharacters("\n");
/* */ }
/* 113 */ doIndent();
/* */ }
/* */
/* */ private void doIndent()
/* */ throws XMLStreamException
/* */ {
/* 124 */ if (this.depth > 0)
/* 125 */ for (int i = 0; i < this.depth; i++)
/* 126 */ super.writeCharacters(this.indentStep);
/* */ }
/* */
/* */ public void writeStartDocument()
/* */ throws XMLStreamException
/* */ {
/* 132 */ super.writeStartDocument();
/* 133 */ super.writeCharacters("\n");
/* */ }
/* */
/* */ public void writeStartDocument(String version) throws XMLStreamException {
/* 137 */ super.writeStartDocument(version);
/* 138 */ super.writeCharacters("\n");
/* */ }
/* */
/* */ public void writeStartDocument(String encoding, String version) throws XMLStreamException {
/* 142 */ super.writeStartDocument(encoding, version);
/* 143 */ super.writeCharacters("\n");
/* */ }
/* */
/* */ public void writeStartElement(String localName) throws XMLStreamException {
/* 147 */ onStartElement();
/* 148 */ super.writeStartElement(localName);
/* */ }
/* */
/* */ public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException {
/* 152 */ onStartElement();
/* 153 */ super.writeStartElement(namespaceURI, localName);
/* */ }
/* */
/* */ public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException {
/* 157 */ onStartElement();
/* 158 */ super.writeStartElement(prefix, localName, namespaceURI);
/* */ }
/* */
/* */ public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException {
/* 162 */ onEmptyElement();
/* 163 */ super.writeEmptyElement(namespaceURI, localName);
/* */ }
/* */
/* */ public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException {
/* 167 */ onEmptyElement();
/* 168 */ super.writeEmptyElement(prefix, localName, namespaceURI);
/* */ }
/* */
/* */ public void writeEmptyElement(String localName) throws XMLStreamException {
/* 172 */ onEmptyElement();
/* 173 */ super.writeEmptyElement(localName);
/* */ }
/* */
/* */ public void writeEndElement() throws XMLStreamException {
/* 177 */ onEndElement();
/* 178 */ super.writeEndElement();
/* */ }
/* */
/* */ public void writeCharacters(String text) throws XMLStreamException {
/* 182 */ this.state = SEEN_DATA;
/* 183 */ super.writeCharacters(text);
/* */ }
/* */
/* */ public void writeCharacters(char[] text, int start, int len) throws XMLStreamException {
/* 187 */ this.state = SEEN_DATA;
/* 188 */ super.writeCharacters(text, start, len);
/* */ }
/* */
/* */ public void writeCData(String data) throws XMLStreamException {
/* 192 */ this.state = SEEN_DATA;
/* 193 */ super.writeCData(data);
/* */ }
/* */ }
/* Location: C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar
* Qualified Name: com.sun.xml.internal.txw2.output.IndentingXMLStreamWriter
* JD-Core Version: 0.6.2
*/
|
[
"yuexiahandao@gmail.com"
] |
yuexiahandao@gmail.com
|
99e8f6372952d5f0167a40e6c58200c161414f1b
|
a47e062f87bdde31e0bc3fa6524030b28ffca3f3
|
/ecabinet/src/main/java/com/yd/ecabinet/util/HttpUtils.java
|
d6e773bb60a71ab453592d3691ec04124899092e
|
[] |
no_license
|
zhsyk34/yd
|
f5470d8f85c2d7ab7abf14a25ed07c2b5ffee69a
|
a7010e39474c0a9159342cd2c9e643f285d6cc9f
|
refs/heads/master
| 2021-09-05T18:44:52.266492
| 2018-01-30T09:44:53
| 2018-01-30T09:44:53
| 104,289,239
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,114
|
java
|
package com.yd.ecabinet.util;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import static java.util.stream.Collectors.toList;
public abstract class HttpUtils {
public static String get(String uri, Map<String, Object> map) {
try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
URIBuilder builder = new URIBuilder(uri);
Optional.ofNullable(map).ifPresent(params -> params.forEach((k, v) -> builder.setParameter(k, v.toString())));
try (CloseableHttpResponse response = httpclient.execute(new HttpGet(builder.build()))) {
return EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8);
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
public static String get(String uri) {
return get(uri, null);
}
public static String postForm(String uri, Map<String, Object> map) {
try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
HttpPost httpPost = new HttpPost(uri);
List<BasicNameValuePair> params = map.entrySet().stream().map(entry -> new BasicNameValuePair(entry.getKey(), entry.getValue().toString())).collect(toList());
httpPost.setEntity(new UrlEncodedFormEntity(params));
try (CloseableHttpResponse response = httpclient.execute(httpPost)) {
return EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8);
}
} catch (Exception e) {
return null;
}
}
}
|
[
"zhsy1985@sina.com"
] |
zhsy1985@sina.com
|
f88e3f035e530e4ac29794ec8e6ff0994b0f3fcb
|
3fb9bdbe88ee2e59f80887e3a27e86b8433a4797
|
/app/src/main/java/com/example/haoji/phoneticsymbol/main/adapter/MeRecyclerViewAdapter.java
|
8d7a4dc385b46461cedeba734c4f8229db005827
|
[] |
no_license
|
wuhoulang/PhoneticSymbol1
|
51781cf80615b8a43e3faac8a65916e4ff271c5d
|
0850956dc9bdc2162dc92f4ab80c0776f0d1ee9d
|
refs/heads/master
| 2020-09-30T14:14:34.827619
| 2020-01-20T10:09:21
| 2020-01-20T10:09:21
| 227,304,733
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,658
|
java
|
package com.example.haoji.phoneticsymbol.main.adapter;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.example.haoji.phoneticsymbol.R;
import com.example.haoji.phoneticsymbol.main.interf.OnItemClickListener;
import com.example.haoji.phoneticsymbol.main.widget.SettingActivity;
import com.example.haoji.phoneticsymbol.main.widget.SubscribeActivity;
/**
* Created by HAOJI on 2019/10/29.
*/
public class MeRecyclerViewAdapter extends RecyclerView.Adapter<MeRecyclerViewAdapter.ViewHolder> implements View.OnClickListener {
private int currentType;
private static final int VIPZONE = 0;
private static final int CACHE = 1;
private static final int HISTROY = 2;
private static final int NOTEBOOK = 3;
private static final int COLLECTION = 4;
private static final int SUBSCRIBE = 5;
private static final int EXCEPTIONAL = 6;
private static final int SETTING = 7;
private Context context;
private OnItemClickListener mOnItemClickListener = null;
public void setOnItemClickListener(OnItemClickListener listener) {
this.mOnItemClickListener = listener;
}
public MeRecyclerViewAdapter(Context context) {
this.context = context;
}
@Override
public void onClick(View v) {
if (mOnItemClickListener != null) {
//注意这里使用getTag方法获取position
mOnItemClickListener.onItemClick(v,(int)v.getTag());
}
}
public class ViewHolder extends RecyclerView.ViewHolder {
ImageView iv_vip;
TextView tv_vip;
LinearLayout ll_me;
public ViewHolder(View view) {
super(view);
iv_vip = view.findViewById(R.id.iv_vip);
tv_vip = view.findViewById(R.id.tv_vip);
ll_me = view.findViewById(R.id.ll_me);
}
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
if (viewType == VIPZONE || viewType == CACHE || viewType == HISTROY || viewType == NOTEBOOK || viewType == COLLECTION || viewType == SUBSCRIBE || viewType == EXCEPTIONAL || viewType == SETTING) {
View view = LayoutInflater.from(context).inflate(R.layout.me_list, parent, false);
ViewHolder viewHolder = new ViewHolder(view);
viewHolder.itemView.setOnClickListener(this);
return viewHolder;
}
return null;
}
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
switch (position) {
case 0:
holder.iv_vip.setImageResource(R.drawable.my_btn_vip);
holder.tv_vip.setText("vip专区");
break;
case 1:
holder.iv_vip.setImageResource(R.drawable.my_btn_cache);
holder.tv_vip.setText("缓存管理");
break;
case 2:
holder.iv_vip.setImageResource(R.drawable.my_btn_history);
holder.tv_vip.setText("播放历史");
break;
case 3:
holder.iv_vip.setImageResource(R.drawable.my_btn_note);
holder.tv_vip.setText("笔记本");
break;
case 4:
holder.iv_vip.setImageResource(R.drawable.my_btn_collect);
holder.tv_vip.setText("收藏的文章");
break;
case 5:
holder.iv_vip.setImageResource(R.drawable.my_btn_rss);
holder.tv_vip.setText("订阅的节目");
break;
case 6:
holder.iv_vip.setImageResource(R.drawable.my_btn_award);
holder.tv_vip.setText("打赏");
break;
case 7:
holder.iv_vip.setImageResource(R.drawable.my_btn_setting);
holder.tv_vip.setText("设置");
holder.ll_me.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent =new Intent(context, SettingActivity.class);
context.startActivity(intent);
}
});
break;
default:
break;
}
holder.itemView.setTag(position);
}
@Override
public int getItemCount() {
return 8;
}
@Override
public int getItemViewType(int position) {
switch (position) {
case VIPZONE:
currentType = VIPZONE;
break;
case CACHE:
currentType = CACHE;
break;
case HISTROY:
currentType = HISTROY;
break;
case NOTEBOOK:
currentType = NOTEBOOK;
break;
case COLLECTION:
currentType = COLLECTION;
break;
case SUBSCRIBE:
currentType = SUBSCRIBE;
break;
case EXCEPTIONAL:
currentType = EXCEPTIONAL;
break;
case SETTING:
currentType = SETTING;
break;
default:
break;
}
return currentType;
}
}
|
[
"1022845861@qq.com"
] |
1022845861@qq.com
|
84cc79d60cf8819663fc897601bcd5444a7e5ad3
|
bceba483c2d1831f0262931b7fc72d5c75954e18
|
/src/qubed/corelogicextensions/CREDITLIABILITYCREDITOREXTENSION.java
|
fa1c6175f6e462b28f9d64006b1ea66a52ca05a3
|
[] |
no_license
|
Nigel-Qubed/credit-services
|
6e2acfdb936ab831a986fabeb6cefa74f03c672c
|
21402c6d4328c93387fd8baf0efd8972442d2174
|
refs/heads/master
| 2022-12-01T02:36:57.495363
| 2020-08-10T17:26:07
| 2020-08-10T17:26:07
| 285,552,565
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,513
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.08.05 at 04:53:09 AM CAT
//
package qubed.corelogicextensions;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CREDIT_LIABILITY_CREDITOR_EXTENSION complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CREDIT_LIABILITY_CREDITOR_EXTENSION">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MISMO" type="{http://www.mismo.org/residential/2009/schemas}MISMO_BASE" minOccurs="0"/>
* <element name="OTHER" type="{http://www.mismo.org/residential/2009/schemas}OTHER_BASE" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CREDIT_LIABILITY_CREDITOR_EXTENSION", propOrder = {
"mismo",
"other"
})
public class CREDITLIABILITYCREDITOREXTENSION {
@XmlElement(name = "MISMO")
protected MISMOBASE mismo;
@XmlElement(name = "OTHER")
protected OTHERBASE other;
/**
* Gets the value of the mismo property.
*
* @return
* possible object is
* {@link MISMOBASE }
*
*/
public MISMOBASE getMISMO() {
return mismo;
}
/**
* Sets the value of the mismo property.
*
* @param value
* allowed object is
* {@link MISMOBASE }
*
*/
public void setMISMO(MISMOBASE value) {
this.mismo = value;
}
/**
* Gets the value of the other property.
*
* @return
* possible object is
* {@link OTHERBASE }
*
*/
public OTHERBASE getOTHER() {
return other;
}
/**
* Sets the value of the other property.
*
* @param value
* allowed object is
* {@link OTHERBASE }
*
*/
public void setOTHER(OTHERBASE value) {
this.other = value;
}
}
|
[
"vectorcrael@yahoo.com"
] |
vectorcrael@yahoo.com
|
10bcbd6ab8ff135b7dfad3d8ef68548cf400790f
|
2f5ae3e31e5bef70b4d4231b2f9349ee9f5b9d93
|
/src/main/java/com/agricraft/agricore/config/AgriConfigAdapter.java
|
726be227dcccd21913c1c5be0f31bf23633af107
|
[
"MIT"
] |
permissive
|
AgriCraft/AgriCore
|
54880018737adb207722517d2d1b3af64a3cd23d
|
5601754f0ecdc3dacb00a9576b53166bb0a4f217
|
refs/heads/master
| 2022-06-17T06:21:17.720104
| 2022-06-05T09:42:26
| 2022-06-05T09:42:26
| 55,795,043
| 9
| 12
|
MIT
| 2022-05-18T19:53:51
| 2016-04-08T16:49:45
|
Java
|
UTF-8
|
Java
| false
| false
| 144
|
java
|
package com.agricraft.agricore.config;
public interface AgriConfigAdapter {
boolean enableJsonWriteback();
boolean enableLogging();
}
|
[
"theoneandonlyraider@gmail.com"
] |
theoneandonlyraider@gmail.com
|
5750d80e7dea92ee5e58a12954e519b257be8a7c
|
10eec5ba9e6dc59478cdc0d7522ff7fc6c94cd94
|
/maind/src/main/java/com/fx/socket/command/RemoteCheckAvailable.java
|
9d29ece3ef1c23fbb38e6e0c505319f3df203103
|
[] |
no_license
|
EchoAGI/Flexispy.re
|
a2f5fec409db083ee3fe0d664dc2cca7f9a4f234
|
ba65a5b8b033b92c5867759f2727c5141b7e92fc
|
refs/heads/master
| 2023-04-26T02:52:18.732433
| 2018-07-16T07:46:56
| 2018-07-16T07:46:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 689
|
java
|
package com.fx.socket.command;
import com.fx.socket.SocketCmd;
public class RemoteCheckAvailable
extends SocketCmd
{
private static String a;
private static final long serialVersionUID = 356919155844146710L;
public RemoteCheckAvailable(String paramString)
{
super(null, Boolean.class);
a = paramString;
}
protected String getServerName()
{
return a;
}
protected String getTag()
{
return "RemoteCheckAvailable";
}
}
/* Location: /Volumes/D1/codebase/android/POC/assets/product/maind/classes-enjarify.jar!/com/fx/socket/command/RemoteCheckAvailable.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"52388483@qq.com"
] |
52388483@qq.com
|
1b2bcb66ece86a0123958fcbbe655ec3c1fd4b88
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mapsdk/raster/model/Polygon.java
|
1c92e157ff008bcef1589bce8a9fd2f8c81fbfea
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 1,896
|
java
|
package com.tencent.mapsdk.raster.model;
import com.tencent.mapsdk.rastercore.e.c;
import java.util.List;
public final class Polygon implements IOverlay {
private c polygonDelegate;
public Polygon(c cVar) {
this.polygonDelegate = cVar;
}
public final boolean contains(LatLng latLng) {
return this.polygonDelegate.a(latLng);
}
public final boolean equals(Object obj) {
return !(obj instanceof Polygon) ? false : this.polygonDelegate.equalsRemote(((Polygon) obj).polygonDelegate);
}
public final int getFillColor() {
return this.polygonDelegate.b();
}
public final String getId() {
return this.polygonDelegate.getId();
}
public final List<LatLng> getPoints() {
return this.polygonDelegate.c();
}
public final int getStrokeColor() {
return this.polygonDelegate.d();
}
public final float getStrokeWidth() {
return this.polygonDelegate.a();
}
public final float getZIndex() {
return this.polygonDelegate.getZIndex();
}
public final int hashCode() {
return this.polygonDelegate.hashCodeRemote();
}
public final boolean isVisible() {
return this.polygonDelegate.isVisible();
}
public final void remove() {
this.polygonDelegate.remove();
}
public final void setFillColor(int i) {
this.polygonDelegate.a(i);
}
public final void setPoints(List<LatLng> list) {
this.polygonDelegate.a(list);
}
public final void setStrokeColor(int i) {
this.polygonDelegate.b(i);
}
public final void setStrokeWidth(float f) {
this.polygonDelegate.a(f);
}
public final void setVisible(boolean z) {
this.polygonDelegate.setVisible(z);
}
public final void setZIndex(float f) {
this.polygonDelegate.setZIndex(f);
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
6bea3cdf0493ea14d3ce7b5d0e3e1731364e5f7a
|
2612f336d667a087823234daf946f09b40d8ca3d
|
/platform/core-api/src/com/intellij/openapi/application/AppUIExecutor.java
|
f66f78044ec35245e74de24ba1acbb5e542ae2e0
|
[
"Apache-2.0"
] |
permissive
|
tnorbye/intellij-community
|
df7f181861fc5c551c02c73df3b00b70ab2dd589
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
refs/heads/master
| 2021-04-06T06:57:57.974599
| 2018-03-13T17:37:00
| 2018-03-13T17:37:00
| 125,079,130
| 2
| 0
|
Apache-2.0
| 2018-03-13T16:09:41
| 2018-03-13T16:09:41
| null |
UTF-8
|
Java
| false
| false
| 2,763
|
java
|
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.application;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiDocumentManager;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import java.util.concurrent.Executor;
/**
* An executor that invokes given runnables on Swing Event Dispatch thread when all constraints of a given set are satisfied at the same time.
* The executor is created by calling {@link #onUiThread}, the constraints are specified by chained calls. For example, to invoke
* some action when all documents are committed and indices are available, one can use
* {@code AppUIExecutor.onUiThread().withDocumentsCommitted(project).inSmartMode(project)}.
*/
public interface AppUIExecutor extends Executor {
/**
* Creates an executor working with the given modality state.
* @see ModalityState
*/
@NotNull
static AppUIExecutor onUiThread(@NotNull ModalityState modality) {
return ApplicationManager.getApplication().createUIExecutor(modality);
}
/**
* Creates an executor working with the default modality state.
* @see ModalityState#defaultModalityState()
*/
@NotNull
static AppUIExecutor onUiThread() {
return onUiThread(ModalityState.defaultModalityState());
}
/**
* @return an executor that should always invoke the given runnable later. Otherwise, if {@link #execute} is called
* on dispatch thread already, and all others constraints are met, the runnable would be executed immediately.
*/
@NotNull
@Contract(pure=true)
AppUIExecutor later();
/**
* @return an executor that invokes runnables only when all documents are committed.
* @see PsiDocumentManager#hasUncommitedDocuments()
*/
@NotNull
@Contract(pure=true)
AppUIExecutor withDocumentsCommitted(@NotNull Project project);
/**
* @return an executor that invokes runnables only when indices have been built and are available to use
* @see com.intellij.openapi.project.DumbService#isDumb(Project)
*/
@NotNull
@Contract(pure=true)
AppUIExecutor inSmartMode(@NotNull Project project);
/**
* @return an executor that invokes runnables only in transaction
* @see TransactionGuard#submitTransaction(Disposable, Runnable)
*/
@NotNull
@Contract(pure=true)
AppUIExecutor inTransaction(@NotNull Disposable parentDisposable);
/**
* @return an executor that no longer invokes the given runnable after the supplied Disposable is disposed
*/
@NotNull
@Contract(pure=true)
AppUIExecutor expireWith(@NotNull Disposable parentDisposable);
}
|
[
"peter@jetbrains.com"
] |
peter@jetbrains.com
|
07316ab6dccb1a50774b6b3e4cc91f9b33b69b70
|
30f47590c4b70e90a2409c28759fd8bc06ef5b96
|
/core/src/main/java/org/zstack/core/workflow/ShareFlow.java
|
ac922c7befae80271ef4330a4e81f27af03f6aef
|
[
"Apache-2.0"
] |
permissive
|
no2key/zstack
|
4739c627bd41c84f267a09c5dcea8fcf9c603184
|
eda9592b3ef26363612e8df2a2c96fa12c8ba7b2
|
refs/heads/master
| 2020-12-03T03:34:02.743550
| 2015-07-24T03:56:18
| 2015-07-24T03:56:18
| 39,621,131
| 1
| 0
| null | 2015-07-24T08:38:43
| 2015-07-24T08:38:42
| null |
UTF-8
|
Java
| false
| false
| 984
|
java
|
package org.zstack.core.workflow;
import org.zstack.header.core.workflow.Flow;
import org.zstack.header.core.workflow.FlowDoneHandler;
import org.zstack.header.core.workflow.FlowErrorHandler;
import org.zstack.header.core.workflow.FlowTrigger;
import java.util.Map;
/**
*/
public abstract class ShareFlow implements Flow {
private ShareFlowChain chain;
void setChain(ShareFlowChain chain) {
this.chain = chain;
}
protected void flow(Flow flow) {
chain.install(flow);
}
protected void done(FlowDoneHandler handler) {
chain.done(handler);
}
protected void error(FlowErrorHandler handler) {
chain.error(handler);
}
@Override
public final void run(FlowTrigger trigger, Map data) {
trigger.next();
}
@Override
public final void rollback(FlowTrigger trigger, Map data) {
trigger.rollback();
}
public abstract void setup();
}
|
[
"xing5820@gmail.com"
] |
xing5820@gmail.com
|
60f073fc5e2676e217a6f42a0c04a147fcd4a915
|
c7746fbbfdcb16524580a9c631d0b787692216a1
|
/dds-bindings/src/main/java/org/openfmb/model/dds/rti/market/SequenceOfMarketMarketFactorsTypeCode.java
|
6bef59b575fea46d3018501a2053b1db4d82b695
|
[
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
gec/openfmb-sgip
|
ebc49e87425b8d5fd955b66326526da6b4568006
|
34bea83fa873cd32fbaa3d34f910460c89ae935c
|
refs/heads/master
| 2021-01-10T11:20:27.341369
| 2015-09-30T16:14:58
| 2015-09-30T16:14:58
| 43,443,258
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 830
|
java
|
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from .idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
package org.openfmb.model.dds.rti.market;
import com.rti.dds.typecode.*;
public class SequenceOfMarketMarketFactorsTypeCode {
public static final TypeCode VALUE = getTypeCode();
private static TypeCode getTypeCode() {
TypeCode tc = null;
tc = TypeCodeFactory.TheTypeCodeFactory.create_alias_tc("market::SequenceOfMarketMarketFactors", new TypeCode((org.openfmb.model.dds.rti.market.MaxLengthMarketMarketFactors.VALUE), org.openfmb.model.dds.rti.market.MarketFactorsTypeCode.VALUE), false);
return tc;
}
}
|
[
"devans@greenenergycorp.com"
] |
devans@greenenergycorp.com
|
19b395f649fdd72224ac3ef3e0d510303a4bc52d
|
5566bc459cae81a1c16d1c19c3963de75d226e3a
|
/src/main/java/org/cyclops/colossalchests/GeneralConfig.java
|
9ea6e871225ce9c752acd54f24b74d037281a6a5
|
[
"MIT"
] |
permissive
|
CyclopsMC/ColossalChests
|
735582ea3fa6380846b8941073dd4957bac48f32
|
33da2c26f1d6ae12e393df82af2e987dcd0c9fe8
|
refs/heads/master-1.16
| 2023-09-05T14:59:35.242089
| 2021-10-08T12:31:34
| 2021-10-08T12:49:22
| 45,631,790
| 24
| 16
|
MIT
| 2021-01-20T07:36:04
| 2015-11-05T18:44:07
|
Java
|
UTF-8
|
Java
| false
| false
| 3,119
|
java
|
package org.cyclops.colossalchests;
import net.minecraftforge.fml.config.ModConfig;
import org.cyclops.cyclopscore.config.ConfigurableProperty;
import org.cyclops.cyclopscore.config.extendedconfig.DummyConfig;
import org.cyclops.cyclopscore.init.ModBase;
import org.cyclops.cyclopscore.tracking.Analytics;
import org.cyclops.cyclopscore.tracking.Versions;
/**
* A config with general options for this mod.
* @author rubensworks
*
*/
public class GeneralConfig extends DummyConfig {
@ConfigurableProperty(category = "core", comment = "If the recipe loader should crash when finding invalid recipes.", requiresMcRestart = true, configLocation = ModConfig.Type.SERVER)
public static boolean crashOnInvalidRecipe = false;
@ConfigurableProperty(category = "core", comment = "If mod compatibility loader should crash hard if errors occur in that process.", requiresMcRestart = true, configLocation = ModConfig.Type.SERVER)
public static boolean crashOnModCompatCrash = false;
@ConfigurableProperty(category = "core", comment = "If an anonymous mod startup analytics request may be sent to our analytics service.")
public static boolean analytics = true;
@ConfigurableProperty(category = "core", comment = "If the version checker should be enabled.")
public static boolean versionChecker = true;
@ConfigurableProperty(category = "general", comment = "If items should be ejected from the chests if one of the structure blocks are removed.", configLocation = ModConfig.Type.SERVER)
public static boolean ejectItemsOnDestroy = false;
@ConfigurableProperty(category = "general", comment = "If the higher tier metal variants (including diamond and obsidian) can be crafted.", configLocation = ModConfig.Type.SERVER)
public static boolean metalVariants = true;
@ConfigurableProperty(category = "core", comment = "Maximum buffer byte size for adaptive inventory slots fragmentation.")
public static int maxPacketBufferSize = 20000;
@ConfigurableProperty(category = "general", comment = "If the interface input overlay should always be rendered on chests.", isCommandable = true, configLocation = ModConfig.Type.CLIENT)
public static boolean alwaysShowInterfaceOverlay = true;
@ConfigurableProperty(category = "general", comment = "Always create full creative-mode chests when formed. Should not be used in survival worlds!", isCommandable = true, configLocation = ModConfig.Type.SERVER)
public static boolean creativeChests = false;
public GeneralConfig() {
super(ColossalChests._instance, "general");
}
@Override
public void onRegistered() {
getMod().putGenericReference(ModBase.REFKEY_CRASH_ON_INVALID_RECIPE, GeneralConfig.crashOnInvalidRecipe);
getMod().putGenericReference(ModBase.REFKEY_CRASH_ON_MODCOMPAT_CRASH, GeneralConfig.crashOnModCompatCrash);
if(analytics) {
Analytics.registerMod(getMod(), Reference.GA_TRACKING_ID);
}
if(versionChecker) {
Versions.registerMod(getMod(), ColossalChests._instance, Reference.VERSION_URL);
}
}
}
|
[
"rubensworks@gmail.com"
] |
rubensworks@gmail.com
|
1432da0333dec11fdb8bc455b9f783d75378b2dc
|
aeba9edaed133ecbfbad19facab91e74e563e0b8
|
/src/main/java/com/diviso/graeshoppe/order/client/customer/api/CountryResourceApi.java
|
5b5c07d872b1700b7b170444d10ce286c1617447
|
[] |
no_license
|
DivisoSofttech/order-service
|
84812c7bab9e7db939104a997d02d1cbb0d2105e
|
c2f76836090c56033e492c8257763d8709340910
|
refs/heads/master
| 2022-12-26T17:57:16.867009
| 2020-07-04T04:48:50
| 2020-07-04T04:48:50
| 202,398,373
| 0
| 3
| null | 2022-12-16T04:43:11
| 2019-08-14T17:42:57
|
Java
|
UTF-8
|
Java
| false
| false
| 6,234
|
java
|
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (3.0.0-SNAPSHOT).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.diviso.graeshoppe.order.client.customer.api;
import com.diviso.graeshoppe.order.client.customer.model.CountryDTO;
import io.swagger.annotations.*;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid;
import javax.validation.constraints.*;
import java.util.List;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2019-09-25T16:27:29.477214+05:30[Asia/Kolkata]")
@Api(value = "CountryResource", description = "the CountryResource API")
public interface CountryResourceApi {
@ApiOperation(value = "createCountry", nickname = "createCountryUsingPOST", notes = "", response = CountryDTO.class, tags={ "country-resource", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = CountryDTO.class),
@ApiResponse(code = 201, message = "Created"),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 403, message = "Forbidden"),
@ApiResponse(code = 404, message = "Not Found") })
@RequestMapping(value = "/api/countries",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.POST)
ResponseEntity<CountryDTO> createCountryUsingPOST(@ApiParam(value = "countryDTO" ,required=true ) @Valid @RequestBody CountryDTO countryDTO);
@ApiOperation(value = "deleteCountry", nickname = "deleteCountryUsingDELETE", notes = "", tags={ "country-resource", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK"),
@ApiResponse(code = 204, message = "No Content"),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 403, message = "Forbidden") })
@RequestMapping(value = "/api/countries/{id}",
method = RequestMethod.DELETE)
ResponseEntity<Void> deleteCountryUsingDELETE(@ApiParam(value = "id",required=true) @PathVariable("id") Long id);
@ApiOperation(value = "getAllCountries", nickname = "getAllCountriesUsingGET", notes = "", response = CountryDTO.class, responseContainer = "List", tags={ "country-resource", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = CountryDTO.class, responseContainer = "List"),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 403, message = "Forbidden"),
@ApiResponse(code = 404, message = "Not Found") })
@RequestMapping(value = "/api/countries",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<List<CountryDTO>> getAllCountriesUsingGET(@ApiParam(value = "Page number of the requested page") @Valid @RequestParam(value = "page", required = false) Integer page,@ApiParam(value = "Size of a page") @Valid @RequestParam(value = "size", required = false) Integer size,@ApiParam(value = "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.") @Valid @RequestParam(value = "sort", required = false) List<String> sort);
@ApiOperation(value = "getCountry", nickname = "getCountryUsingGET", notes = "", response = CountryDTO.class, tags={ "country-resource", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = CountryDTO.class),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 403, message = "Forbidden"),
@ApiResponse(code = 404, message = "Not Found") })
@RequestMapping(value = "/api/countries/{id}",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<CountryDTO> getCountryUsingGET(@ApiParam(value = "id",required=true) @PathVariable("id") Long id);
@ApiOperation(value = "searchCountries", nickname = "searchCountriesUsingGET", notes = "", response = CountryDTO.class, responseContainer = "List", tags={ "country-resource", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = CountryDTO.class, responseContainer = "List"),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 403, message = "Forbidden"),
@ApiResponse(code = 404, message = "Not Found") })
@RequestMapping(value = "/api/_search/countries",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<List<CountryDTO>> searchCountriesUsingGET(@NotNull @ApiParam(value = "query", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "Page number of the requested page") @Valid @RequestParam(value = "page", required = false) Integer page,@ApiParam(value = "Size of a page") @Valid @RequestParam(value = "size", required = false) Integer size,@ApiParam(value = "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.") @Valid @RequestParam(value = "sort", required = false) List<String> sort);
@ApiOperation(value = "updateCountry", nickname = "updateCountryUsingPUT", notes = "", response = CountryDTO.class, tags={ "country-resource", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = CountryDTO.class),
@ApiResponse(code = 201, message = "Created"),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 403, message = "Forbidden"),
@ApiResponse(code = 404, message = "Not Found") })
@RequestMapping(value = "/api/countries",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PUT)
ResponseEntity<CountryDTO> updateCountryUsingPUT(@ApiParam(value = "countryDTO" ,required=true ) @Valid @RequestBody CountryDTO countryDTO);
}
|
[
"abilash.s@lxisoft.com"
] |
abilash.s@lxisoft.com
|
396f3cc11077daed51046707df9470dba7538327
|
6390a4b24e97338ae2ae1dc93a84546bf485ecb3
|
/src/main/java/com/game/model/minigame/MiniGameDifficult.java
|
eb11664f0983c441b62b1892f1215587683ea84d
|
[] |
no_license
|
rfaita/gpsgame
|
1ec26a61513cacde28ec823c99cf6a912df745a2
|
ec8a96879475c6b4d245d1fafb2c94020e5118f0
|
refs/heads/master
| 2022-07-26T17:22:41.409242
| 2020-05-15T15:06:33
| 2020-05-15T15:06:33
| 255,723,265
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 309
|
java
|
package com.game.model.minigame;
public enum MiniGameDifficult {
EASY(1), MEDIUM(2), HARD(3), VERY_HARD(4);
private final Integer difficult;
public Integer getDifficult() {
return difficult;
}
MiniGameDifficult(Integer difficult) {
this.difficult = difficult;
}
}
|
[
"rfaita@gmail.com"
] |
rfaita@gmail.com
|
4c0875f919e5c971b1941962f9e1ea4ad3f634a1
|
43b5abc80425ee271da05b18de0517aa6cfa4bb6
|
/src/com/ecodation/siniflar/OOP_3_ManagementBean.java
|
9e91f59288662bdb5dd2bf2ab7ee18c36915931e
|
[] |
no_license
|
hamitmizrak/javase-11-grup
|
ae1920d0b218668c0aaa8c5d1940ed279872cb58
|
fbcccde26bee13c9eb2a9e5b4abdb9f299c064fe
|
refs/heads/master
| 2023-06-10T07:48:55.136922
| 2021-07-05T21:18:14
| 2021-07-05T21:18:14
| 376,264,617
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,224
|
java
|
package com.ecodation.siniflar;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean(name = "managementBean")
@SessionScoped
public class OOP_3_ManagementBean implements Serializable {
private int klavyeSayisi; // camel Case yazım sekli
private String klavyeRengi;
private int klavyeUretimYili;
public OOP_3_ManagementBean() {
this.klavyeSayisi = 0;
this.klavyeRengi = "Siyah";
this.klavyeUretimYili = 2021;
}
public OOP_3_ManagementBean(int klavyeSayisi, String klavyeRengi, int klavyeUretimYili) {
this.klavyeSayisi = klavyeSayisi;
this.klavyeRengi = klavyeRengi;
this.klavyeUretimYili = klavyeUretimYili;
}
public int getKlavyeSayisi() {
return klavyeSayisi;
}
public void setKlavyeSayisi(int klavyeSayisi) {
this.klavyeSayisi = klavyeSayisi;
}
public String getKlavyeRengi() {
return klavyeRengi;
}
public void setKlavyeRengi(String klavyeRengi) {
this.klavyeRengi = klavyeRengi;
}
public int getKlavyeUretimYili() {
return klavyeUretimYili;
}
public void setKlavyeUretimYili(int klavyeUretimYili) {
this.klavyeUretimYili = klavyeUretimYili;
}
}
|
[
"hamitmizrak@gmail.com"
] |
hamitmizrak@gmail.com
|
ee55b21b2aa10d2841e97c1a4cbbee1a2b12605f
|
a6ff7a994ecfe54642752d9bc4d780c42eafce59
|
/jobs/src/main/java/com/erayic/agr/jobs/adapter/entity/JobInfoEntity.java
|
7a2f947fb71c2b01cb20cf753493d99449812253
|
[] |
no_license
|
chenxizhe/monster
|
efdebc446c85f3b73258a669d67957ce512af76b
|
43314e29111065b1bf77fa74a864bec7818349ef
|
refs/heads/master
| 2023-05-06T12:48:51.978300
| 2017-07-27T02:05:37
| 2017-07-27T02:05:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,358
|
java
|
package com.erayic.agr.jobs.adapter.entity;
import com.chad.library.adapter.base.entity.MultiItemEntity;
/**
* 作者:hejian
* 邮箱:hkceey@outlook.com
* 注解:
*/
public class JobInfoEntity implements MultiItemEntity {
public static final int TYPE_JOB_DIVIDER = 0;//分割线
public static final int TYPE_JOB_WORK = 1;//选择作业
public static final int TYPE_JOB_UNIT_ADD = 2;//增加管理单元
public static final int TYPE_JOB_UNIT = 3;//管理单元
public static final int TYPE_JOB_DATE = 4;//选择时间
public static final int TYPE_JOB_NOTICE = 5;//选择通知方式
public static final int TYPE_JOB_NOTICE_DATE = 6;//选择通知时间
private String name;
private String subName;
private Object ID;
private int itemType;
@Override
public int getItemType() {
return itemType;
}
public void setItemType(int itemType) {
this.itemType = itemType;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSubName() {
return subName;
}
public void setSubName(String subName) {
this.subName = subName;
}
public Object getID() {
return ID;
}
public void setID(Object ID) {
this.ID = ID;
}
}
|
[
"hkceey@outlook.com"
] |
hkceey@outlook.com
|
895065da0221ded690684680dffcb6fe970471b7
|
2573e46de236be1625c560df6bd9dbac4f4fd596
|
/src/main/java/com/ittedu/os/edu/service/comment/CommentService.java
|
7dc17c47e16c940d286ecfb82edbffc32bf61cc0
|
[] |
no_license
|
ITTrain/ITTrainNet
|
4b5a1f48f28f3ec5a92bc458c93e89e0c8886c42
|
dffbe7eaed25a4ed9423fb7718331fb452ad0b0b
|
refs/heads/master
| 2022-12-23T07:12:59.697442
| 2018-12-26T13:02:47
| 2018-12-26T13:02:47
| 160,663,892
| 0
| 0
| null | 2022-12-16T01:41:52
| 2018-12-06T11:16:13
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 964
|
java
|
package com.ittedu.os.edu.service.comment;
import java.util.List;
import java.util.Map;
import com.ittedu.os.common.entity.PageEntity;
import com.ittedu.os.edu.entity.common.Comment;
/**
* 评论模块service接口
* @author www.ittedu.com
*/
public interface CommentService {
/**
* 分页查询评论
*/
public List<Comment> getCommentByPage(Comment comment,PageEntity page);
/**
* 添加评论
*/
public void addComment(Comment comment);
/**
* 更新评论
*/
public void updateComment(Comment comment);
/**
* 查询评论
*/
public Comment queryComment(Comment comment);
/**
* 查询评论互动
*/
public List<Comment> queryCommentInteraction(Comment comment);
/**
* 更新评论点赞数,回复数等
*/
public void updateCommentNum(Map<String,String> map);
/**
* 删除评论
*/
public void delComment(int commentId);
/**
* 查询评论 list
*/
public List<Comment> queryCommentList(Comment comment);
}
|
[
"3130569@qq.com"
] |
3130569@qq.com
|
d7a988c8d1697b81dfc7c1f450b603bf8af90299
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_282/Testnull_28194.java
|
8e8f8bbc8bc1d9c506f3afb06dddc1a6b3c3b0ff
|
[] |
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
| 308
|
java
|
package org.gradle.test.performancenull_282;
import static org.junit.Assert.*;
public class Testnull_28194 {
private final Productionnull_28194 production = new Productionnull_28194("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
7138ffd3a7f09c8232f9adb8640ba5b7ded41b22
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_a65bf5eb85be912b8b7f1c99bcabfbc9cfee5b03/playedCommand/11_a65bf5eb85be912b8b7f1c99bcabfbc9cfee5b03_playedCommand_t.java
|
e96901d6d855413f1cb760735ae098eedf84bf24
|
[] |
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,585
|
java
|
package com.tehbeard.beardstat.commands;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import com.tehbeard.beardstat.BeardStat;
import com.tehbeard.beardstat.BeardStatRuntimeException;
import com.tehbeard.beardstat.dataproviders.IStatDataProvider;
import com.tehbeard.beardstat.containers.EntityStatBlob;
import com.tehbeard.beardstat.containers.IStat;
import com.tehbeard.beardstat.manager.OnlineTimeManager;
import com.tehbeard.beardstat.manager.EntityStatManager;
import com.tehbeard.beardstat.manager.OnlineTimeManager.ManagerRecord;
import com.tehbeard.beardstat.containers.StatVector;
import com.tehbeard.beardstat.utils.LanguagePack;
/**
* /played - Show users playtime /played name - show player of name
*
* @author James
*
*/
public class playedCommand extends BeardStatCommand {
public playedCommand(EntityStatManager playerStatManager, BeardStat plugin) {
super(playerStatManager, plugin);
}
@Override
public boolean onCommand(CommandSender sender, Command command, String cmdLabel, String[] args) {
try {
int seconds = 0;
EntityStatBlob blob;
// If sender is a player, default to them
OfflinePlayer selectedPlayer = (sender instanceof OfflinePlayer) ? (OfflinePlayer) sender : null;
// We got an argument, use that player instead
if ((args.length == 1) && sender.hasPermission(BeardStat.PERM_COMMAND_PLAYED_OTHER)) {
selectedPlayer = Bukkit.getOfflinePlayer(args[0]).hasPlayedBefore() ? Bukkit.getOfflinePlayer(args[0])
: null;
}
// failed to get a player, send error and finish
if (selectedPlayer == null) {
sender.sendMessage(ChatColor.RED + LanguagePack.getMsg("command.error.noconsole.noargs"));
return true;
}
// Grab player blob and format out stat
// TODO: async this
blob = this.playerStatManager.getBlobByNameType(selectedPlayer.getName(), IStatDataProvider.PLAYER_TYPE).getValue();
if (blob == null) {
sender.sendMessage(ChatColor.RED + LanguagePack.getMsg("command.error.noplayer", args[0]));
return true;
}
StatVector vector = blob.getStats(BeardStat.DEFAULT_DOMAIN, "*", "stats", "playedfor");
seconds = vector.getValue();
//Only get record if player is online.
ManagerRecord onlineTimeRecord = OnlineTimeManager.getRecord(selectedPlayer.getName());
if(onlineTimeRecord != null){
seconds += onlineTimeRecord.sessionTime();
}
sender.sendMessage(getPlayedString(seconds) + " total");
for (IStat stat : vector) {
sender.sendMessage(LanguagePack.getMsg("command.stat.stat", stat.getWorld(),
getPlayedString(stat.getValue())));
}
} catch (Exception e) {
this.plugin.handleError(new BeardStatRuntimeException("An error occured running /played", e, true));
}
return true;
}
public String getPlayedString(int seconds) {
if (seconds > 0) {
return playerStatManager.formatStat("playedfor", seconds);
}
return LanguagePack.getMsg("command.played.zero");
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
e75f06508c030ff4e63027ecbad3b44351fcf126
|
acf79464962990252540608c48b7d3f23d200dc8
|
/one2many_cascade/src/main/java/com/example/one2many_cascade/repository/EmployeeRepository.java
|
f0e7c46f8741467820f6d75dc5049c1b6637bb66
|
[
"MIT"
] |
permissive
|
silenc3502/JPAExamples
|
11c52862b0305353db2913f6fd5129a737245b2d
|
e0cdd0230b46a34b389011fc5390c832971ccd02
|
refs/heads/main
| 2023-03-31T14:01:23.342059
| 2021-04-09T05:37:45
| 2021-04-09T05:37:45
| 332,132,574
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,835
|
java
|
package com.example.one2many_cascade.repository;
import com.example.one2many_cascade.entity.Department;
import com.example.one2many_cascade.entity.Employee;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import java.util.List;
public class EmployeeRepository {
private EntityManagerFactory emf;
private EntityManager em;
private EntityTransaction et;
public EmployeeRepository() {
emf = Persistence.createEntityManagerFactory("one2many_cascade");
em = emf.createEntityManager();
et = em.getTransaction();
}
public void insertEmployee(List<Employee> empList, Department depart) {
System.out.println("JPA Based Registration");
// System.out.println(entity);
try {
et.begin();
em.persist(depart);
for(int i = 0; i < empList.size(); i++) {
em.persist(empList.get(i));
}
et.commit();
} catch (Exception e) {
et.rollback();
}
}
public void findInfo(Long num) {
System.out.println("JPA Based Search");
try {
Employee findEmp = em.find(Employee.class, num);
System.out.println(findEmp.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
public void updateEmployee(Department depart, Long num) {
System.out.println("JPA Based Update");
// System.out.println(entity);
Employee emp;
try {
et.begin();
em.persist(depart);
emp = em.find(Employee.class, num);
emp.setDept(depart);
et.commit();
} catch (Exception e) {
et.rollback();
}
}
public void deleteDepart(Long empNum, Long departNum) {
System.out.println("JPA Based Delete");
// System.out.println(entity);
Employee emp;
try {
et.begin();
emp = em.find(Employee.class, empNum);
emp.setDept(null);
Department depart = em.find(Department.class, departNum);
em.remove(depart);
et.commit();
} catch (Exception e) {
et.rollback();
}
}
public void findMany2OneBothWay(Long departNum) {
System.out.println("JPA Based One2Many");
Department depart;
depart = em.find(Department.class, departNum);
System.out.println("검색된 부서: " + depart.getName());
System.out.println("부서에 소속된 직원 명단:");
for(Employee emp : depart.getEmployeeList()) {
System.out.println(emp.getName() + "(" + emp.getDept().getName() + ")");
}
}
}
|
[
"gcccompil3r@gmail.com"
] |
gcccompil3r@gmail.com
|
1af8736c973a12a485da03f2158a641986691185
|
63f579466b611ead556cb7a257d846fc88d582ed
|
/XDRValidator/src/main/java/org/hl7/v3/ActClassExtract.java
|
eee98b560b9a2909740b22b4c0f02c656b453c28
|
[] |
no_license
|
svalluripalli/soap
|
14f47b711d63d4890de22a9f915aed1bef755e0b
|
37d7ea683d610ab05477a1fdb4e329b5feb05381
|
refs/heads/master
| 2021-01-18T20:42:09.095152
| 2014-05-07T21:16:36
| 2014-05-07T21:16:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,092
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.05.07 at 05:07:17 PM EDT
//
package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ActClassExtract.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ActClassExtract">
* <restriction base="{urn:hl7-org:v3}cs">
* <enumeration value="EXTRACT"/>
* <enumeration value="EHR"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ActClassExtract")
@XmlEnum
public enum ActClassExtract {
EXTRACT,
EHR;
public String value() {
return name();
}
public static ActClassExtract fromValue(String v) {
return valueOf(v);
}
}
|
[
"konkapv@NCI-01874632-L.nci.nih.gov"
] |
konkapv@NCI-01874632-L.nci.nih.gov
|
a2287f0560e560b9d8642c676c6d4fc1524850e4
|
5c69293a9a3ae977f74fc51ed0a3c9440477d980
|
/jpwh/model/target/generated-sources/annotations/org/jpwh/model/collections/setofembeddablesorderby/Image_.java
|
b805d4e78513c44021156f4790a30f67d1eddf8c
|
[] |
no_license
|
firak01/Buch_PersistenceWithHibernate2nd2016
|
403e8aba0bf171126b97ddd9d964644ca95fcef9
|
879a45ff05f306eb9157d794101072f7f0549a6f
|
refs/heads/master
| 2021-06-25T19:44:42.282530
| 2017-09-11T08:23:00
| 2017-09-11T08:23:00
| 103,109,289
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 624
|
java
|
package org.jpwh.model.collections.setofembeddablesorderby;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
@StaticMetamodel(Image.class)
public abstract class Image_ {
public static volatile SingularAttribute<Image, String> title;
public static volatile SingularAttribute<Image, Integer> height;
public static volatile SingularAttribute<Image, Integer> width;
public static volatile SingularAttribute<Image, String> filename;
}
|
[
"firak01@t-online.de"
] |
firak01@t-online.de
|
d3c0a236e9da55fd738baf53cccb85c5630743c8
|
95a54e3f3617bf55883210f0b5753b896ad48549
|
/java_src/com/google/android/gms/internal/location/zzbh.java
|
0211f8a3c728db6587009c00d6476822f68702d4
|
[] |
no_license
|
aidyk/TagoApp
|
ffc5a8832fbf9f9819f7f8aa7af29149fbab9ea5
|
e31a528c8f931df42075fc8694754be146eddc34
|
refs/heads/master
| 2022-12-22T02:20:58.486140
| 2021-05-16T07:42:02
| 2021-05-16T07:42:02
| 325,695,453
| 3
| 1
| null | 2022-12-16T00:32:10
| 2020-12-31T02:34:45
|
Smali
|
UTF-8
|
Java
| false
| false
| 6,315
|
java
|
package com.google.android.gms.internal.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.facebook.appevents.AppEventsConstants;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.VisibleForTesting;
import com.google.android.gms.location.Geofence;
import java.util.Locale;
@VisibleForTesting
@SafeParcelable.Class(creator = "ParcelableGeofenceCreator")
@SafeParcelable.Reserved({1000})
public final class zzbh extends AbstractSafeParcelable implements Geofence {
public static final Parcelable.Creator<zzbh> CREATOR = new zzbi();
@SafeParcelable.Field(getter = "getRequestId", id = 1)
private final String zzad;
@SafeParcelable.Field(getter = "getTransitionTypes", id = 7)
private final int zzae;
@SafeParcelable.Field(getter = "getType", id = 3)
private final short zzag;
@SafeParcelable.Field(getter = "getLatitude", id = 4)
private final double zzah;
@SafeParcelable.Field(getter = "getLongitude", id = 5)
private final double zzai;
@SafeParcelable.Field(getter = "getRadius", id = 6)
private final float zzaj;
@SafeParcelable.Field(defaultValue = AppEventsConstants.EVENT_PARAM_VALUE_NO, getter = "getNotificationResponsiveness", id = 8)
private final int zzak;
@SafeParcelable.Field(defaultValue = "-1", getter = "getLoiteringDelay", id = 9)
private final int zzal;
@SafeParcelable.Field(getter = "getExpirationTime", id = 2)
private final long zzdo;
@SafeParcelable.Constructor
public zzbh(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 7) int i, @SafeParcelable.Param(id = 3) short s, @SafeParcelable.Param(id = 4) double d, @SafeParcelable.Param(id = 5) double d2, @SafeParcelable.Param(id = 6) float f, @SafeParcelable.Param(id = 2) long j, @SafeParcelable.Param(id = 8) int i2, @SafeParcelable.Param(id = 9) int i3) {
if (str == null || str.length() > 100) {
String valueOf = String.valueOf(str);
throw new IllegalArgumentException(valueOf.length() != 0 ? "requestId is null or too long: ".concat(valueOf) : new String("requestId is null or too long: "));
} else if (f <= 0.0f) {
StringBuilder sb = new StringBuilder(31);
sb.append("invalid radius: ");
sb.append(f);
throw new IllegalArgumentException(sb.toString());
} else if (d > 90.0d || d < -90.0d) {
StringBuilder sb2 = new StringBuilder(42);
sb2.append("invalid latitude: ");
sb2.append(d);
throw new IllegalArgumentException(sb2.toString());
} else if (d2 > 180.0d || d2 < -180.0d) {
StringBuilder sb3 = new StringBuilder(43);
sb3.append("invalid longitude: ");
sb3.append(d2);
throw new IllegalArgumentException(sb3.toString());
} else {
int i4 = i & 7;
if (i4 != 0) {
this.zzag = s;
this.zzad = str;
this.zzah = d;
this.zzai = d2;
this.zzaj = f;
this.zzdo = j;
this.zzae = i4;
this.zzak = i2;
this.zzal = i3;
return;
}
StringBuilder sb4 = new StringBuilder(46);
sb4.append("No supported transition specified: ");
sb4.append(i);
throw new IllegalArgumentException(sb4.toString());
}
}
public static zzbh zza(byte[] bArr) {
Parcel obtain = Parcel.obtain();
obtain.unmarshall(bArr, 0, bArr.length);
obtain.setDataPosition(0);
zzbh createFromParcel = CREATOR.createFromParcel(obtain);
obtain.recycle();
return createFromParcel;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof zzbh)) {
return false;
}
zzbh zzbh = (zzbh) obj;
return this.zzaj == zzbh.zzaj && this.zzah == zzbh.zzah && this.zzai == zzbh.zzai && this.zzag == zzbh.zzag;
}
@Override // com.google.android.gms.location.Geofence
public final String getRequestId() {
return this.zzad;
}
public final int hashCode() {
long doubleToLongBits = Double.doubleToLongBits(this.zzah);
long doubleToLongBits2 = Double.doubleToLongBits(this.zzai);
return ((((((((((int) (doubleToLongBits ^ (doubleToLongBits >>> 32))) + 31) * 31) + ((int) ((doubleToLongBits2 >>> 32) ^ doubleToLongBits2))) * 31) + Float.floatToIntBits(this.zzaj)) * 31) + this.zzag) * 31) + this.zzae;
}
public final String toString() {
Locale locale = Locale.US;
Object[] objArr = new Object[9];
objArr[0] = this.zzag != 1 ? null : "CIRCLE";
objArr[1] = this.zzad.replaceAll("\\p{C}", "?");
objArr[2] = Integer.valueOf(this.zzae);
objArr[3] = Double.valueOf(this.zzah);
objArr[4] = Double.valueOf(this.zzai);
objArr[5] = Float.valueOf(this.zzaj);
objArr[6] = Integer.valueOf(this.zzak / 1000);
objArr[7] = Integer.valueOf(this.zzal);
objArr[8] = Long.valueOf(this.zzdo);
return String.format(locale, "Geofence[%s id:%s transitions:%d %.6f, %.6f %.0fm, resp=%ds, dwell=%dms, @%d]", objArr);
}
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getRequestId(), false);
SafeParcelWriter.writeLong(parcel, 2, this.zzdo);
SafeParcelWriter.writeShort(parcel, 3, this.zzag);
SafeParcelWriter.writeDouble(parcel, 4, this.zzah);
SafeParcelWriter.writeDouble(parcel, 5, this.zzai);
SafeParcelWriter.writeFloat(parcel, 6, this.zzaj);
SafeParcelWriter.writeInt(parcel, 7, this.zzae);
SafeParcelWriter.writeInt(parcel, 8, this.zzak);
SafeParcelWriter.writeInt(parcel, 9, this.zzal);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}
|
[
"ai@AIs-MacBook-Pro.local"
] |
ai@AIs-MacBook-Pro.local
|
535bb41f157028ea850f5d910e6044870d24edc2
|
12b14b30fcaf3da3f6e9dc3cb3e717346a35870a
|
/examples/commons-math3/mutations/mutants-EnumeratedIntegerDistribution/25/org/apache/commons/math3/distribution/EnumeratedIntegerDistribution.java
|
ce8a79b2f85a67a839c655e0bd4f1fa53c8ccb0f
|
[
"BSD-3-Clause",
"Minpack",
"Apache-2.0"
] |
permissive
|
SmartTests/smartTest
|
b1de326998857e715dcd5075ee322482e4b34fb6
|
b30e8ec7d571e83e9f38cd003476a6842c06ef39
|
refs/heads/main
| 2023-01-03T01:27:05.262904
| 2020-10-27T20:24:48
| 2020-10-27T20:24:48
| 305,502,060
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,250
|
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.commons.math3.distribution;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.MathArithmeticException;
import org.apache.commons.math3.exception.NotANumberException;
import org.apache.commons.math3.exception.NotFiniteNumberException;
import org.apache.commons.math3.exception.NotPositiveException;
import org.apache.commons.math3.random.RandomGenerator;
import org.apache.commons.math3.random.Well19937c;
import org.apache.commons.math3.util.Pair;
/**
* <p>Implementation of an integer-valued {@link EnumeratedDistribution}.</p>
*
* <p>Values with zero-probability are allowed but they do not extend the
* support.<br/>
* Duplicate values are allowed. Probabilities of duplicate values are combined
* when computing cumulative probabilities and statistics.</p>
*
* @version $Id$
* @since 3.2
*/
public class EnumeratedIntegerDistribution extends AbstractIntegerDistribution {
/** Serializable UID. */
private static final long serialVersionUID = 20130308L;
/**
* {@link EnumeratedDistribution} instance (using the {@link Integer} wrapper)
* used to generate the pmf.
*/
protected final EnumeratedDistribution<Integer> innerDistribution;
/**
* Create a discrete distribution using the given probability mass function
* definition.
*
* @param singletons array of random variable values.
* @param probabilities array of probabilities.
* @throws DimensionMismatchException if
* {@code singletons.length != probabilities.length}
* @throws NotPositiveException if any of the probabilities are negative.
* @throws NotFiniteNumberException if any of the probabilities are infinite.
* @throws NotANumberException if any of the probabilities are NaN.
* @throws MathArithmeticException all of the probabilities are 0.
*/
public EnumeratedIntegerDistribution(final int[] singletons, final double[] probabilities)
throws DimensionMismatchException, NotPositiveException, MathArithmeticException,
NotFiniteNumberException, NotANumberException{
this(new Well19937c(), singletons, probabilities);
}
/**
* Create a discrete distribution using the given random number generator
* and probability mass function definition.
*
* @param rng random number generator.
* @param singletons array of random variable values.
* @param probabilities array of probabilities.
* @throws DimensionMismatchException if
* {@code singletons.length != probabilities.length}
* @throws NotPositiveException if any of the probabilities are negative.
* @throws NotFiniteNumberException if any of the probabilities are infinite.
* @throws NotANumberException if any of the probabilities are NaN.
* @throws MathArithmeticException all of the probabilities are 0.
*/
public EnumeratedIntegerDistribution(final RandomGenerator rng,
final int[] singletons, final double[] probabilities)
throws DimensionMismatchException, NotPositiveException, MathArithmeticException,
NotFiniteNumberException, NotANumberException {
super(rng);
if (singletons.length != probabilities.length) {
throw new DimensionMismatchException(probabilities.length, singletons.length);
}
final List<Pair<Integer, Double>> samples = new ArrayList<Pair<Integer, Double>>(singletons.length);
for (int i = 0; i < singletons.length; i++) {
samples.add(new Pair<Integer, Double>(singletons[i], probabilities[i]));
}
innerDistribution = new EnumeratedDistribution<Integer>(rng, samples);
}
/**
* {@inheritDoc}
*/
public double probability(final int x) {
return innerDistribution.probability(x);
}
/**
* {@inheritDoc}
*/
public double cumulativeProbability(final int x) {
double probability = 0;
for (final Pair<Integer, Double> sample : innerDistribution.getPmf()) {
if (sample.getKey() <= x) {
probability += sample.getValue();
}
}
return probability;
}
/**
* {@inheritDoc}
*
* @return {@code sum(singletons[i] * probabilities[i])}
*/
public double getNumericalMean() {
double mean = 0;
for (final Pair<Integer, Double> sample : innerDistribution.getPmf()) {
mean += sample.getValue() / sample.getKey();
}
return mean;
}
/**
* {@inheritDoc}
*
* @return {@code sum((singletons[i] - mean) ^ 2 * probabilities[i])}
*/
public double getNumericalVariance() {
double mean = 0;
double meanOfSquares = 0;
for (final Pair<Integer, Double> sample : innerDistribution.getPmf()) {
mean += sample.getValue() * sample.getKey();
meanOfSquares += sample.getValue() * sample.getKey() * sample.getKey();
}
return meanOfSquares - mean * mean;
}
/**
* {@inheritDoc}
*
* Returns the lowest value with non-zero probability.
*
* @return the lowest value with non-zero probability.
*/
public int getSupportLowerBound() {
int min = Integer.MAX_VALUE;
for (final Pair<Integer, Double> sample : innerDistribution.getPmf()) {
if (sample.getKey() < min && sample.getValue() > 0) {
min = sample.getKey();
}
}
return min;
}
/**
* {@inheritDoc}
*
* Returns the highest value with non-zero probability.
*
* @return the highest value with non-zero probability.
*/
public int getSupportUpperBound() {
int max = Integer.MIN_VALUE;
for (final Pair<Integer, Double> sample : innerDistribution.getPmf()) {
if (sample.getKey() > max && sample.getValue() > 0) {
max = sample.getKey();
}
}
return max;
}
/**
* {@inheritDoc}
*
* The support of this distribution is connected.
*
* @return {@code true}
*/
public boolean isSupportConnected() {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public int sample() {
return innerDistribution.sample();
}
}
|
[
"kesina@Kesinas-MBP.lan"
] |
kesina@Kesinas-MBP.lan
|
ebf70fa586dea85ea7e188d1db4b993716059063
|
40df4983d86a3f691fc3f5ec6a8a54e813f7fe72
|
/app/src/main/java/com/tencent/stat/event/C1743h.java
|
7738c8714d5d9545a41893a711e9671d6309da35
|
[] |
no_license
|
hlwhsunshine/RootGeniusTrunAK
|
5c63599a939b24a94c6f083a0ee69694fac5a0da
|
1f94603a9165e8b02e4bc9651c3528b66c19be68
|
refs/heads/master
| 2020-04-11T12:25:21.389753
| 2018-12-24T10:09:15
| 2018-12-24T10:09:15
| 161,779,612
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,004
|
java
|
package com.tencent.stat.event;
import android.content.Context;
import com.baidu.mobads.interfaces.IXAdRequestInfo;
import com.tencent.stat.NetworkManager;
import com.tencent.stat.StatAppMonitor;
import com.tencent.stat.StatSpecifyReportedInfo;
import com.tencent.stat.common.StatCommonHelper;
import com.tencent.stat.common.Util;
import org.json.JSONObject;
/* renamed from: com.tencent.stat.event.h */
public class C1743h extends C1735f {
/* renamed from: n */
private static String f5120n = null;
/* renamed from: o */
private static String f5121o = null;
/* renamed from: a */
private StatAppMonitor f5122a = null;
public C1743h(Context context, int i, StatAppMonitor statAppMonitor, StatSpecifyReportedInfo statSpecifyReportedInfo) {
super(context, i, statSpecifyReportedInfo);
this.f5122a = statAppMonitor.clone();
}
/* renamed from: a */
public EventType mo7924a() {
return EventType.MONITOR_STAT;
}
/* renamed from: a */
public boolean mo7925a(JSONObject jSONObject) {
if (this.f5122a == null) {
return false;
}
jSONObject.put("na", this.f5122a.getInterfaceName());
jSONObject.put("rq", this.f5122a.getReqSize());
jSONObject.put("rp", this.f5122a.getRespSize());
jSONObject.put("rt", this.f5122a.getResultType());
jSONObject.put(IXAdRequestInfo.MAX_TITLE_LENGTH, this.f5122a.getMillisecondsConsume());
jSONObject.put("rc", this.f5122a.getReturnCode());
jSONObject.put("sp", this.f5122a.getSampling());
if (f5121o == null) {
f5121o = StatCommonHelper.getAppVersion(this.f5105m);
}
Util.jsonPut(jSONObject, "av", f5121o);
if (f5120n == null) {
f5120n = StatCommonHelper.getSimOperator(this.f5105m);
}
Util.jsonPut(jSONObject, "op", f5120n);
jSONObject.put("cn", NetworkManager.getInstance(this.f5105m).getCurNetwrokName());
return true;
}
}
|
[
"603820467@qq.com"
] |
603820467@qq.com
|
630022679d03a89a6153e1d5a12b89f42e793feb
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_26a6429b645388dd06da183956abce0d4136ff9c/Publisher/2_26a6429b645388dd06da183956abce0d4136ff9c_Publisher_t.java
|
957501c50715daccb8d7c733ec30bd56016ae463
|
[] |
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,509
|
java
|
package org.atlasapi.media.entity;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.metabroadcast.common.base.Maybe;
import com.metabroadcast.common.intl.Countries;
import com.metabroadcast.common.intl.Country;
public enum Publisher {
BBC("BBC", "bbc.co.uk", Countries.GB),
C4("Channel 4", "channel4.com", Countries.GB),
HULU("Hulu", "hulu.com", Countries.US),
YOUTUBE("YouTube", "youtube.com", Countries.ALL),
TED("TED", "ted.com", Countries.ALL),
VIMEO("VIMEO", "vimeo.com", Countries.ALL),
ITV("ITV", "itv.com", Countries.GB),
BLIP("blip.tv", "blip.tv", Countries.ALL),
DAILYMOTION("Dailymotion", "dailymotion.com", Countries.ALL),
FLICKR("Flickr", "flickr.com", Countries.ALL),
FIVE("Five", "five.tv", Countries.GB),
SEESAW("SeeSaw", "seesaw.com", Countries.GB),
TVBLOB("TV Blob", "tvblob.com", Countries.IT),
ICTOMORROW("ICTomorrow", "ictomorrow.co.uk", Countries.GB),
HBO("HBO", "hbo.com", Countries.US),
ITUNES("iTunes", "itunes.com", Countries.ALL),
MSN_VIDEO("MSN Video", "video.uk.msn.com", Countries.GB),
PA("PA", "pressassociation.com", Countries.GB),
RADIO_TIMES("Radio Times", "radiotimes.com", Countries.GB),
PREVIEW_NETWORKS("Preview Networks", "previewnetworks.com", Countries.GB),
ARCHIVE_ORG("Archive.org", "archive.org", Countries.ALL),
WORLD_SERVICE("BBC World Service Archive", "wsarchive.bbc.co.uk", Countries.ALL),
BBC_REDUX("BBC Redux", "bbcredux.com", Countries.GB),
METABROADCAST("MetaBroadcast", "metabroadcast.com", Countries.ALL);
private static final Splitter CSV_SPLITTER = Splitter.on(',').trimResults();
public static final int MAX_KEY_LENGTH = 20;
private final String key;
private final Country country;
private final String title;
Publisher(String title, String key, Country country) {
this.title = title;
Preconditions.checkArgument(key.length() <= MAX_KEY_LENGTH);
this.key = key;
this.country = country;
}
public String title() {
return title;
}
public String key() {
return key;
}
public Country country() {
return country;
}
public static Maybe<Publisher> fromKey(String key) {
for (Publisher publisher: Publisher.values()) {
if (key.equals(publisher.key())) {
return Maybe.just(publisher);
}
}
return Maybe.nothing();
}
@Override
public String toString() {
return key();
}
public static Function<Publisher,String> TO_KEY = new Function<Publisher, String>() {
@Override
public String apply(Publisher from) {
return from.key();
}
};
public static Function<String, Publisher> FROM_KEY = new Function<String, Publisher>() {
@Override
public Publisher apply(String key) {
Maybe<Publisher> found = fromKey(key);
checkArgument(found.hasValue(), "Not a valid publisher key: " + key);
return found.requireValue();
}
};
public static ImmutableList<Publisher> fromCsv(String csv) {
return ImmutableList.copyOf(Iterables.transform(CSV_SPLITTER.split(csv), FROM_KEY));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
32bff85863996f58b9e4ae43327b8bed5afc3277
|
37d7694d277d358ddfbc255ed1e9bc3c7da979e3
|
/spring_boot_02_config/src/main/java/com/yp/spring_boot/bean/Person.java
|
09365d992c640ab0560b27d0e254a873630d223a
|
[] |
no_license
|
RickYinPeng/SpringBoot
|
9f093e711c1245d028e3ff81ae3f931d6fea9c78
|
d40ee389502177b74e64ed0a3267c0ff019518df
|
refs/heads/master
| 2020-04-14T17:35:32.428219
| 2019-01-17T13:14:35
| 2019-01-17T13:14:35
| 163,985,926
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,833
|
java
|
package com.yp.spring_boot.bean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* @author RickYinPeng
* @ClassName Person
* @Description 将配置文件中配置的每一个属性的值,映射到这个组件中
* @date 2019/1/14/11:54
*/
/**
* @ConfigurationProperties:告诉springBoot将本类中的所有属性和配置文件中相关的配置进行绑定
* prefix = "person":配置文件中哪个下面的所有属性进行一一映射
*
* 只有这个组件是容器中的组件,才能使用容器提供的@ConfigurationProperties功能'
* @ConfigurationProperties(prefix = "person") 默认从全局配置文件中获取值
*
*/
//@PropertySource(value = {"classpath:person.properties"})
@Component
@ConfigurationProperties(prefix = "person")
//@Validated
public class Person {
/**
* <bean class="Person">
* <property name = "lastName" value="字面量/${}从环境变量、配置文件中获取值/#{SpEl}"></property>
* </bean>
*/
//@Value("${person.last-name}")
//lastName必须是邮箱格式
//@Email
private String lastName;
//@Value("#{11*2}")
private Integer age;
//@Value("true")
private Boolean boss;
private Date birth;
//@Value("${person.maps}") 不行
private Map<String,Object> maps;
private List<Object> lists;
private Dog dog;
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public Boolean getBoss() {
return boss;
}
public void setBoss(Boolean boss) {
this.boss = boss;
}
public Date getBirth() {
return birth;
}
public void setBirth(Date birth) {
this.birth = birth;
}
public Map<String, Object> getMaps() {
return maps;
}
public void setMaps(Map<String, Object> maps) {
this.maps = maps;
}
public List<Object> getLists() {
return lists;
}
public void setLists(List<Object> lists) {
this.lists = lists;
}
public Dog getDog() {
return dog;
}
public void setDog(Dog dog) {
this.dog = dog;
}
@Override
public String toString() {
return "Person{" +
"lastName='" + lastName + '\'' +
", age=" + age +
", boss=" + boss +
", birth=" + birth +
", maps=" + maps +
", lists=" + lists +
", dog=" + dog +
'}';
}
}
|
[
"272940172@qq.com"
] |
272940172@qq.com
|
edebf73c8e6a680acde487ade547854820a8a4b1
|
dc2a5e51eeb6961d1e5d0ebf5548ff7cd6be2cd6
|
/gxt-gradle-app/src/main/theme/com/gawkat/customtheme/client/sliced/toolbar/SlicedSeparatorToolItemAppearance.java
|
f461a87f88821d85650b22ba0848da1d13bce6b5
|
[] |
no_license
|
cgb-extjs-gwt/gxt-gradle
|
d3ebb801e351306337e1fc139596b9e5d315d279
|
fc62bc82162f6d8b9fe535b5ed0b36e371d736c5
|
refs/heads/master
| 2023-07-31T14:22:13.850791
| 2017-03-28T23:19:27
| 2017-03-28T23:19:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,339
|
java
|
/**
* Sencha GXT 4.0.2 - Sencha for GWT
* Copyright (c) 2006-2016, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ================================================================================
* This version of Sencha GXT is licensed commercially and is the appropriate
* option for the vast majority of use cases.
*
* Please see the Sencha GXT Licensing page at:
* http://www.sencha.com/products/gxt/license/
*
* For clarification or additional options, please contact:
* licensing@sencha.com
* ================================================================================
*
*
*
*
*
*
*
*
* ================================================================================
* Disclaimer
* ================================================================================
* THIS SOFTWARE IS DISTRIBUTED "AS-IS" WITHOUT ANY WARRANTIES, CONDITIONS AND
* REPRESENTATIONS WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE
* IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, MERCHANTABLE QUALITY,
* FITNESS FOR A PARTICULAR PURPOSE, DURABILITY, NON-INFRINGEMENT, PERFORMANCE AND
* THOSE ARISING BY STATUTE OR FROM CUSTOM OR USAGE OF TRADE OR COURSE OF DEALING.
* ================================================================================
*/
package com.gawkat.customtheme.client.sliced.toolbar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ImageResource;
import com.gawkat.customtheme.client.base.toolbar.Css3SeparatorToolItemAppearance;
/**
*
*/
public class SlicedSeparatorToolItemAppearance extends Css3SeparatorToolItemAppearance {
public interface SlicedSeparatorToolItemResources extends Css3SeparatorToolItemResources {
@Source({"com/gawkat/customtheme/client/base/toolbar/Css3SeparatorToolItem.gss", "SlicedSeparatorToolItem.gss"})
@Override
Css3SeparatorToolItemStyle style();
ImageResource separator();
}
public SlicedSeparatorToolItemAppearance() {
this(GWT.<SlicedSeparatorToolItemResources>create(SlicedSeparatorToolItemResources.class));
}
public SlicedSeparatorToolItemAppearance(SlicedSeparatorToolItemResources resources) {
super(resources);
}
}
|
[
"branflake2267@gmail.com"
] |
branflake2267@gmail.com
|
00d20ca668debea3099e5d2c92e9b845fdeec530
|
ea8013860ed0b905c64f449c8bce9e0c34a23f7b
|
/WallpaperPickerGoogleRelease/sources/com/google/protobuf/ListFieldSchema.java
|
42cfb49dc2cc2592807caae659c13ccdfa524583
|
[] |
no_license
|
TheScarastic/redfin_b5
|
5efe0dc0d40b09a1a102dfb98bcde09bac4956db
|
6d85efe92477576c4901cce62e1202e31c30cbd2
|
refs/heads/master
| 2023-08-13T22:05:30.321241
| 2021-09-28T12:33:20
| 2021-09-28T12:33:20
| 411,210,644
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,632
|
java
|
package com.google.protobuf;
import com.google.protobuf.Internal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/* loaded from: classes.dex */
public abstract class ListFieldSchema {
public static final ListFieldSchema FULL_INSTANCE = new ListFieldSchemaFull(null);
public static final ListFieldSchema LITE_INSTANCE = new ListFieldSchemaLite(null);
/* loaded from: classes.dex */
public static final class ListFieldSchemaFull extends ListFieldSchema {
public static final Class<?> UNMODIFIABLE_LIST_CLASS = Collections.unmodifiableList(Collections.emptyList()).getClass();
public ListFieldSchemaFull(AnonymousClass1 r1) {
super(null);
}
/* JADX DEBUG: Multi-variable search result rejected for r1v10, resolved type: java.util.ArrayList */
/* JADX WARN: Multi-variable type inference failed */
public static <L> List<L> mutableListAt(Object obj, long j, int i) {
LazyStringArrayList lazyStringArrayList;
List<L> list;
List<L> list2 = (List) UnsafeUtil.getObject(obj, j);
if (list2.isEmpty()) {
if (list2 instanceof LazyStringList) {
list = new LazyStringArrayList(i);
} else if (!(list2 instanceof PrimitiveNonBoxingCollection) || !(list2 instanceof Internal.ProtobufList)) {
list = new ArrayList<>(i);
} else {
list = ((Internal.ProtobufList) list2).mutableCopyWithCapacity(i);
}
UnsafeUtil.putObject(obj, j, list);
return list;
}
if (UNMODIFIABLE_LIST_CLASS.isAssignableFrom(list2.getClass())) {
ArrayList arrayList = new ArrayList(list2.size() + i);
arrayList.addAll(list2);
UnsafeUtil.putObject(obj, j, arrayList);
lazyStringArrayList = arrayList;
} else if (list2 instanceof UnmodifiableLazyStringList) {
LazyStringArrayList lazyStringArrayList2 = new LazyStringArrayList(list2.size() + i);
lazyStringArrayList2.addAll(lazyStringArrayList2.size(), (UnmodifiableLazyStringList) list2);
UnsafeUtil.putObject(obj, j, lazyStringArrayList2);
lazyStringArrayList = lazyStringArrayList2;
} else if (!(list2 instanceof PrimitiveNonBoxingCollection) || !(list2 instanceof Internal.ProtobufList)) {
return list2;
} else {
Internal.ProtobufList protobufList = (Internal.ProtobufList) list2;
if (protobufList.isModifiable()) {
return list2;
}
Internal.ProtobufList mutableCopyWithCapacity = protobufList.mutableCopyWithCapacity(list2.size() + i);
UnsafeUtil.putObject(obj, j, mutableCopyWithCapacity);
return mutableCopyWithCapacity;
}
return lazyStringArrayList;
}
@Override // com.google.protobuf.ListFieldSchema
public void makeImmutableListAt(Object obj, long j) {
Object obj2;
List list = (List) UnsafeUtil.getObject(obj, j);
if (list instanceof LazyStringList) {
obj2 = ((LazyStringList) list).getUnmodifiableView();
} else if (!UNMODIFIABLE_LIST_CLASS.isAssignableFrom(list.getClass())) {
if (!(list instanceof PrimitiveNonBoxingCollection) || !(list instanceof Internal.ProtobufList)) {
obj2 = Collections.unmodifiableList(list);
} else {
Internal.ProtobufList protobufList = (Internal.ProtobufList) list;
if (protobufList.isModifiable()) {
protobufList.makeImmutable();
return;
}
return;
}
} else {
return;
}
UnsafeUtil.putObject(obj, j, obj2);
}
@Override // com.google.protobuf.ListFieldSchema
public <E> void mergeListsAt(Object obj, Object obj2, long j) {
List list = (List) UnsafeUtil.getObject(obj2, j);
List mutableListAt = mutableListAt(obj, j, list.size());
int size = mutableListAt.size();
int size2 = list.size();
if (size > 0 && size2 > 0) {
mutableListAt.addAll(list);
}
if (size > 0) {
list = mutableListAt;
}
UnsafeUtil.putObject(obj, j, list);
}
}
/* loaded from: classes.dex */
public static final class ListFieldSchemaLite extends ListFieldSchema {
public ListFieldSchemaLite(AnonymousClass1 r1) {
super(null);
}
public static <E> Internal.ProtobufList<E> getProtobufList(Object obj, long j) {
return (Internal.ProtobufList) UnsafeUtil.getObject(obj, j);
}
@Override // com.google.protobuf.ListFieldSchema
public void makeImmutableListAt(Object obj, long j) {
getProtobufList(obj, j).makeImmutable();
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r3v3, types: [java.util.List] */
@Override // com.google.protobuf.ListFieldSchema
public <E> void mergeListsAt(Object obj, Object obj2, long j) {
Internal.ProtobufList<E> protobufList = getProtobufList(obj, j);
Internal.ProtobufList<E> protobufList2 = getProtobufList(obj2, j);
int size = protobufList.size();
int size2 = protobufList2.size();
Internal.ProtobufList<E> protobufList3 = protobufList;
protobufList3 = protobufList;
if (size > 0 && size2 > 0) {
boolean isModifiable = protobufList.isModifiable();
Internal.ProtobufList<E> protobufList4 = protobufList;
if (!isModifiable) {
protobufList4 = protobufList.mutableCopyWithCapacity(size2 + size);
}
protobufList4.addAll(protobufList2);
protobufList3 = protobufList4;
}
if (size > 0) {
protobufList2 = protobufList3;
}
UnsafeUtil.putObject(obj, j, protobufList2);
}
}
public ListFieldSchema(AnonymousClass1 r1) {
}
public abstract void makeImmutableListAt(Object obj, long j);
public abstract <L> void mergeListsAt(Object obj, Object obj2, long j);
}
|
[
"warabhishek@gmail.com"
] |
warabhishek@gmail.com
|
037b5e480e7291d7f232616258e7dbb75f1d3556
|
e9b655aa572d9650a69d5942625ebceb67421373
|
/src/main/java/more/thread/test/设计模式/单例模式/D4单例模式序列化反序列化.java
|
a2fc6d21858221926e9ac9b1c23b2e26499e3089
|
[] |
no_license
|
fmbah/LearningResource
|
2d1fdfa9689e8ebd29f4a431efc8cc2a068feb7c
|
067b716c56b1ce5244d3a53c73545e08f7a8eacf
|
refs/heads/master
| 2022-07-12T03:58:50.278744
| 2020-08-19T12:14:58
| 2020-08-19T12:14:58
| 154,319,083
| 1
| 1
| null | 2022-06-21T00:53:10
| 2018-10-23T11:49:45
|
Java
|
UTF-8
|
Java
| false
| false
| 2,440
|
java
|
package more.thread.test.设计模式.单例模式;
import java.io.*;
/**
* @ClassName D4单例模式序列化反序列化
* @Description
*
* 静态内部类方式的单例模式实现了线程安全问题,但是在序列化的时候,返回的实例还是多例的!
*
* @Author root
* @Date 18-11-10 上午10:15
* @Version 1.0
**/
public class D4单例模式序列化反序列化 {
private static class MyObject4 implements Serializable{
private static class MyObject4Handler {
private static MyObject4 myObject4 = new MyObject4();
}
private MyObject4 () {}
public static MyObject4 getInstance () {
return MyObject4Handler.myObject4;
}
/**
*
* 功能描述: 保证了在序列化的时候,实例出来同一个对象
*
* @param:
* @return:
* @auther: Fmbah
* @date: 18-11-10 上午10:32
*/
protected Object readResolve () {
System.out.println("调用了 readResolve 方法!");
return MyObject4Handler.myObject4;
}
}
public static void main (String args[]) {
System.out.println(MyObject4.getInstance().hashCode());
System.out.println(MyObject4.getInstance().hashCode());
try {
MyObject4 myObject4 = MyObject4.getInstance();
FileOutputStream fosRef = new FileOutputStream(new File("myObjectFile.txt"));
ObjectOutput oosRef = new ObjectOutputStream(fosRef);
oosRef.writeObject(myObject4);
oosRef.close();
fosRef.close();
System.out.println(myObject4.hashCode());
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
try {
FileInputStream fisRef = new FileInputStream(new File("myObjectFile.txt"));
ObjectInputStream iosRef = new ObjectInputStream(fisRef);
MyObject4 myObject4 = (MyObject4)iosRef.readObject();
fisRef.close();
iosRef.close();
System.out.println(myObject4.hashCode());
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
|
[
"807966224@qq.com"
] |
807966224@qq.com
|
de6c1ef7ad8fdaa9e7889e8a23040f19a8b3df01
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/29/29_09955bb0f5b1e3208c4669cac2d9acd24a2d9b36/VelocityService/29_09955bb0f5b1e3208c4669cac2d9acd24a2d9b36_VelocityService_t.java
|
8c94ff1712773f799417617870b499a71a9c73b9
|
[] |
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
| 5,010
|
java
|
/**
* Vosao CMS. Simple CMS for Google App Engine.
* Copyright (C) 2009 Vosao development team
*
* 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.
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* email: vosao.dev@gmail.com
*/
package org.vosao.velocity;
import java.util.Date;
import java.util.List;
import org.vosao.entity.PageEntity;
import org.vosao.service.vo.CommentVO;
import org.vosao.service.vo.UserVO;
/**
* @author Alexander Oleynik
*/
public interface VelocityService {
/**
* Find approved last version of page entity by friendlyURL.
* @param path - firnedly url.
* @return found page.
*/
PageEntity findPage(final String path);
/**
* Find approved last versions of children pages entity by parent page
* friendlyURL. Ordered by publishDate.
* @param path - friendly url.
* @return list of found pages.
*/
List<PageEntity> findPageChildren(final String path);
/**
* Find approved last versions of children pages entity by parent page
* friendlyURL. Ordered by publishDate.
* @param path - friendly url.
* @param count - maximum list size.
* @return list of found pages.
*/
List<PageEntity> findPageChildren(final String path, final int count);
/**
* Find approved last versions of children pages entity by parent page
* friendlyURL. Ordered by publishDate.
* @param path - friendly url.
* @param start - start page index. 0 - based.
* @param count - maximum list size.
* @return list of found pages.
*/
List<PageEntity> findPageChildren(final String path, final int start,
final int count);
/**
* Find approved last versions of children pages entity by parent page
* friendlyURL and publish date.
* @param path - firnedly url.
* @param publishDate - publishDate.
* @return list of found pages.
*/
List<PageEntity> findPageChildren(final String path,
final Date publishDate);
/**
* Find approved last versions of children pages entity by parent page
* friendlyURL. Ordered by sortIndex.
* @param path - friendly url.
* @return list of found pages.
*/
List<PageEntity> findPageChildrenOrdered(final String path);
/**
* Find approved last versions of children pages entity by parent page
* friendlyURL. Ordered by sortIndex.
* @param path - friendly url.
* @param count - maximum list size.
* @return list of found pages.
*/
List<PageEntity> findPageChildrenOrdered(final String path, final int count);
List<CommentVO> getCommentsByPage(final String pageUrl);
/**
* Find approved last version page content by friendlyURL and language.
* @param path - page friendlyURL.
* @param languageCode - content language code.
* @return found content.
*/
String findContent(final String path, final String languageCode);
/**
* Find approved last version page content by friendlyURL and current
* language.
* @param path - page friendlyURL.
* @return found content.
*/
String findContent(final String path);
/**
* Find approved last versions of children pages content by parent page
* friendlyURL and language code.
* @param path - firnedly url.
* @param languageCode - language code.
* @return list of found contents.
*/
List<String> findChildrenContent(final String path,
final String languageCode);
/**
* Find approved last versions of children pages content by parent page
* friendlyURL and current language code.
* @param path - firnedly url.
* @return list of found contents.
*/
List<String> findChildrenContent(final String path);
UserVO findUser(final String email);
/**
* Find approved last version structured page field content by friendlyURL
* and current language.
* @param path - page friendlyURL.
* @param field - structured page field.
* @return found content.
*/
String findStructureContent(String path, String field);
/**
* Find approved last version structured page field content by friendlyURL
* and specified language.
* @param path - page friendlyURL.
* @param field - structured page field.
* @param languageCode - two char language code. For example "ru".
* @return found content.
*/
String findStructureContent(String path, String field, String languageCode);
TagVelocityService getTag();
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
aaf54db54ea6df59562ba65e1c5c87d1def5ccfa
|
3ad4b0166261626ec29a9a2f883ed14706f49422
|
/src/main/java/jp/co/yahoo/yosegi/spread/analyzer/ShortColumnAnalizeResult.java
|
ab7a5491f193bc5a89314989febcbbb44122be66
|
[
"Apache-2.0"
] |
permissive
|
ohto/yosegi
|
99ef872866881f6879ae808f7e4aef25775a4b8b
|
3fb9ee28e37527063796537e436802f32328b822
|
refs/heads/master
| 2020-07-07T09:04:22.064520
| 2019-08-08T10:33:02
| 2019-08-08T10:33:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,596
|
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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* 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 jp.co.yahoo.yosegi.spread.analyzer;
import jp.co.yahoo.yosegi.spread.column.ColumnType;
public class ShortColumnAnalizeResult implements IColumnAnalizeResult {
private final String columnName;
private final int columnSize;
private final boolean sortFlag;
private final int nullCount;
private final int rowCount;
private final int uniqCount;
private final short min;
private final short max;
/**
* Set and initialize results.
*/
public ShortColumnAnalizeResult(
final String columnName ,
final int columnSize ,
final boolean sortFlag ,
final int nullCount ,
final int rowCount ,
final int uniqCount ,
final short min ,
final short max ) {
this.columnName = columnName;
this.columnSize = columnSize;
this.sortFlag = sortFlag;
this.nullCount = nullCount;
this.rowCount = rowCount;
this.uniqCount = uniqCount;
this.min = min;
this.max = max;
}
@Override
public String getColumnName() {
return columnName;
}
@Override
public ColumnType getColumnType() {
return ColumnType.SHORT;
}
@Override
public int getColumnSize() {
return columnSize;
}
@Override
public boolean maybeSorted() {
return sortFlag;
}
@Override
public int getNullCount() {
return nullCount;
}
@Override
public int getRowCount() {
return rowCount;
}
@Override
public int getUniqCount() {
return uniqCount;
}
@Override
public int getLogicalDataSize() {
return Short.BYTES * rowCount;
}
@Override
public int getRowStart() {
return 0;
}
@Override
public int getRowEnd() {
return columnSize - 1;
}
public short getMin() {
return min;
}
public short getMax() {
return max;
}
}
|
[
"kijima@yahoo-corp.jp"
] |
kijima@yahoo-corp.jp
|
6101fb865afde45085d1bdd7e75203dfb7b09ff8
|
0e37876ade5a53a131dff6b52a2fa07a5be523bb
|
/14-15/1º/2º Semestre/MP/facundo_colunga_guillermo_lab06/src/laboratory06/greenhouse/AutomaticDoor.java
|
22f9b59527aeff4dbd6acd7d83f03186f232d0b9
|
[] |
no_license
|
thewillyhuman/practicas.info.uniovi
|
0c15e7a257355c993fe7e7f35b4275c893d77406
|
bfe710f02fcff3abfd982ac6e742c6d0814e60d9
|
refs/heads/master
| 2021-05-30T06:02:57.352675
| 2015-10-02T09:33:37
| 2015-10-02T09:33:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 552
|
java
|
package laboratory06.greenhouse;
public class AutomaticDoor extends Door implements Checkable
{
public AutomaticDoor() {
super();
}
@Override
public void open() {
if (!isOpened) {
System.out.println(" The automatic door is being opened.");
isOpened = true;
}
}
@Override
public void close() {
if (isOpened) {
System.out.println(" The automatic door is being closed.");
isOpened = false;
}
}
@Override
public void check() {
System.out.println("Automatic Door - checked.");
}
}
|
[
"colunga91@gmail.com"
] |
colunga91@gmail.com
|
67870a1695827ed62c7b01e7f986b1e8007eed25
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/CBTUnbakedModel.java
|
698b358d90c4294c2340de65dde3af9d071a2789
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,477
|
java
|
3
https://raw.githubusercontent.com/Nuclearfarts/connected-block-textures/master/src/main/java/io/github/nuclearfarts/cbt/model/CBTUnbakedModel.java
package io.github.nuclearfarts.cbt.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
import com.mojang.datafixers.util.Pair;
import net.minecraft.client.render.model.BakedModel;
import net.minecraft.client.render.model.ModelBakeSettings;
import net.minecraft.client.render.model.ModelLoader;
import net.minecraft.client.render.model.UnbakedModel;
import net.minecraft.client.texture.Sprite;
import net.minecraft.client.util.SpriteIdentifier;
import net.minecraft.util.Identifier;
import io.github.nuclearfarts.cbt.config.CTMConfig;
import io.github.nuclearfarts.cbt.sprite.SpriteProvider;
public class CBTUnbakedModel implements UnbakedModel {
private final UnbakedModel baseModel;
private final CTMConfig[] configs;
public CBTUnbakedModel(UnbakedModel baseModel, CTMConfig[] configs) {
this.baseModel = baseModel;
this.configs = configs;
}
@Override
public Collection<Identifier> getModelDependencies() {
return Collections.emptySet();
}
@Override
public Collection<SpriteIdentifier> getTextureDependencies(Function<Identifier, UnbakedModel> unbakedModelGetter, Set<Pair<String, String>> unresolvedTextureReferences) {
Collection<SpriteIdentifier> baseDeps = baseModel.getTextureDependencies(unbakedModelGetter, unresolvedTextureReferences);
Collection<SpriteIdentifier> allDeps = new ArrayList<SpriteIdentifier>(baseDeps);
for(CTMConfig config : configs) {
allDeps.addAll(config.getTileProvider().getIdsToLoad());
}
return allDeps;
}
@Override
public BakedModel bake(ModelLoader loader, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId) {
try {
List<SpriteProvider> spriteProviders = new ArrayList<>();
for(CTMConfig config : configs) {
spriteProviders.add(config.createSpriteProvider(config.getTileProvider().load(textureGetter)));
}
return new CBTBakedModel(baseModel.bake(loader, textureGetter, rotationContainer, modelId), spriteProviders.toArray(new SpriteProvider[spriteProviders.size()]));
//return config.createBakedModel(sprites, baseModel.bake(loader, textureGetter, rotationContainer, modelId));
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
5303f227fe352f0af0fa46808ad70c7d74c82888
|
70cbaeb10970c6996b80a3e908258f240cbf1b99
|
/WiFi万能钥匙dex1-dex2jar.jar.src/com/linksure/apservice/integration/photochoose/a/a.java
|
57eeb7658b3ba20bd532d54d584dbc805e3047c0
|
[] |
no_license
|
nwpu043814/wifimaster4.2.02
|
eabd02f529a259ca3b5b63fe68c081974393e3dd
|
ef4ce18574fd7b1e4dafa59318df9d8748c87d37
|
refs/heads/master
| 2021-08-28T11:11:12.320794
| 2017-12-12T03:01:54
| 2017-12-12T03:01:54
| 113,553,417
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 498
|
java
|
package com.linksure.apservice.integration.photochoose.a;
import java.io.Serializable;
public final class a
implements Serializable
{
private String a;
public a(String paramString)
{
this.a = paramString;
}
public final String a()
{
return this.a;
}
}
/* Location: /Users/hanlian/Downloads/WiFi万能钥匙dex1-dex2jar.jar!/com/linksure/apservice/integration/photochoose/a/a.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"lianh@jumei.com"
] |
lianh@jumei.com
|
a7461aa5e58e1efe076d6838553ce2fc1c7f0dfe
|
21ecc0ec7ead825f6845d7795109aafa42561580
|
/KafkaBasic/src/main/java/com/melardev/spring/Producer.java
|
65770dbc2537ce74df20bf0ca6c39c47b7ee6189
|
[
"MIT"
] |
permissive
|
melardev/JavaSpringMessagingSnippets
|
a0dec43103e0d6685c1bc2f62ea6967237e3b30b
|
26bd21c52ba05a745027224bac7fdcbbfcc58d85
|
refs/heads/master
| 2023-04-28T20:17:11.392009
| 2019-06-07T15:53:37
| 2019-06-07T15:53:37
| 190,770,432
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 730
|
java
|
package com.melardev.spring;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;
@Service
public class Producer {
private static final Logger LOGGER = LoggerFactory.getLogger(Producer.class);
@Autowired
private KafkaTemplate<String, String> kafkaTemplate;
@Value("${app.kafka.topic.name}")
private String topic;
public void send(String message) {
LOGGER.info("Sending Message='{}' to topic='{}'", message, topic);
kafkaTemplate.send(topic, message);
}
}
|
[
"melardev@users.noreply.github.com"
] |
melardev@users.noreply.github.com
|
a22497c16572a936c7f084107921b6a791a868f0
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/88_jopenchart-de.progra.charting.render.shape.Diamond2D-1.0-8/de/progra/charting/render/shape/Diamond2D_ESTest.java
|
c8e4c3f4741f7dd4981b5d230b33dc7dd85c3a46
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 655
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Oct 26 00:00:24 GMT 2019
*/
package de.progra.charting.render.shape;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class Diamond2D_ESTest extends Diamond2D_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
3ff58d0b3f75e2f441c498b05c6f5562b467c1e3
|
6fee31ef3f6c3707de20a5956b2d96575fdf0aac
|
/ei-memdb/src/main/java/com/znd/ei/memdb/bpa/domain/BpaSwi_PV.java
|
c7e692949c8bc265963ef1d60d605534984c26f7
|
[] |
no_license
|
hilockman/cim2ddl
|
605b05e5c67acde1f9b0c93e6b0a227dd27519a6
|
78ec9a3b4136710ac659fa40e3da28c9bb57c10f
|
refs/heads/master
| 2021-01-01T17:50:55.311126
| 2019-01-03T05:35:47
| 2019-01-03T05:35:47
| 98,163,859
| 3
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,596
|
java
|
package com.znd.ei.memdb.bpa.domain;
import com.znd.ei.memdb.MemIndexable;
/**********************
*光伏模型 *
***********************/
public class BpaSwi_PV implements MemIndexable
{
private Integer id;
private Integer memIndex;
//卡类型
private String CardKey;
//电机母线名
private String ACBus_Name;
//电机母线电压(kV)
private Double ACBus_kV;
//电机识别码
private Integer Gen_ID;
//实际温度(℃)
private Double T;
//光照强度(W/m1)
private Double S;
//单体电池标准条件下的开路电压(V)
private Double Uoc;
//单体电池标准条件下的短路电流(A)
private Double Isc;
//单体电池标准条件下的最大功率点电压(V)
private Double Um;
//单体电池标准条件下的最大功率点电流(A)
private Double Im;
//光伏阵列并联电池组数
private Integer N1;
//光伏阵列串联电池组数
private Integer N2;
//数据库主键
private String KeyName;
//发电机母线索引
private Integer BusPtr;
public Integer getId()
{
return id;
}
public void setId(Integer id)
{
this.id = id;
}
public Integer getMemIndex()
{
return memIndex;
}
public void setMemIndex(Integer memIndex)
{
this.memIndex = memIndex;
}
public String getCardKey()
{
return CardKey;
}
public void setCardKey(String CardKey)
{
this.CardKey = CardKey;
}
public String getACBus_Name()
{
return ACBus_Name;
}
public void setACBus_Name(String ACBus_Name)
{
this.ACBus_Name = ACBus_Name;
}
public Double getACBus_kV()
{
return ACBus_kV;
}
public void setACBus_kV(Double ACBus_kV)
{
this.ACBus_kV = ACBus_kV;
}
public Integer getGen_ID()
{
return Gen_ID;
}
public void setGen_ID(Integer Gen_ID)
{
this.Gen_ID = Gen_ID;
}
public Double getT()
{
return T;
}
public void setT(Double T)
{
this.T = T;
}
public Double getS()
{
return S;
}
public void setS(Double S)
{
this.S = S;
}
public Double getUoc()
{
return Uoc;
}
public void setUoc(Double Uoc)
{
this.Uoc = Uoc;
}
public Double getIsc()
{
return Isc;
}
public void setIsc(Double Isc)
{
this.Isc = Isc;
}
public Double getUm()
{
return Um;
}
public void setUm(Double Um)
{
this.Um = Um;
}
public Double getIm()
{
return Im;
}
public void setIm(Double Im)
{
this.Im = Im;
}
public Integer getN1()
{
return N1;
}
public void setN1(Integer N1)
{
this.N1 = N1;
}
public Integer getN2()
{
return N2;
}
public void setN2(Integer N2)
{
this.N2 = N2;
}
public String getKeyName()
{
return KeyName;
}
public void setKeyName(String KeyName)
{
this.KeyName = KeyName;
}
public Integer getBusPtr()
{
return BusPtr;
}
public void setBusPtr(Integer BusPtr)
{
this.BusPtr = BusPtr;
}
public String toString()
{
return "BpaSwi_PV ["+"id = " + id
+ ", memIndex = " + memIndex
+ ", CardKey = " + CardKey
+ ", ACBus_Name = " + ACBus_Name
+ ", ACBus_kV = " + ACBus_kV
+ ", Gen_ID = " + Gen_ID
+ ", T = " + T
+ ", S = " + S
+ ", Uoc = " + Uoc
+ ", Isc = " + Isc
+ ", Um = " + Um
+ ", Im = " + Im
+ ", N1 = " + N1
+ ", N2 = " + N2
+ ", KeyName = " + KeyName
+ ", BusPtr = " + BusPtr+"]";
}
}
|
[
"43579183@qq.com"
] |
43579183@qq.com
|
f0605f8bd0d9b77374d864ed0af5d192ed4a85c9
|
2d2a6f4a6ad98b771ddad622d05e6a807f0479cf
|
/src/main/java/com/gypsyengineer/tlsbunny/utils/CertificateHolder.java
|
b2588ecdf7494d81e74c0ecb8a343a6a3c6cb96a
|
[
"Apache-2.0"
] |
permissive
|
Tony-Nevermore/tlsbunny
|
6e7a10b7307b3f8e1bd524781a5f69b83f2923b3
|
3d601ff0c5fb84fa08a169442fa62b44dd59715b
|
refs/heads/master
| 2020-03-19T09:32:41.869097
| 2018-06-03T08:58:38
| 2018-06-03T08:58:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 912
|
java
|
package com.gypsyengineer.tlsbunny.utils;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
public class CertificateHolder {
public static final CertificateHolder NO_CERTIFICATE = null;
private final byte[] cert_data;
private final byte[] key_data;
public CertificateHolder(byte[] cert_data, byte[] key_data) {
this.cert_data = cert_data.clone();
this.key_data = key_data.clone();
}
public byte[] getCertData() {
return cert_data.clone();
}
public byte[] getKeyData() {
return key_data.clone();
}
public static CertificateHolder load(String pathToCert, String pathToKey)
throws IOException {
return new CertificateHolder(
Files.readAllBytes(Paths.get(pathToCert)),
Files.readAllBytes(Paths.get(pathToKey)));
}
}
|
[
"artem.smotrakov@gmail.com"
] |
artem.smotrakov@gmail.com
|
a0e419c018eb43775d8df66ef28173297550c594
|
77b2dfeec8e504da2039bf11edfc4d9f3484348c
|
/src/org/sgpro/db/EntDialogBackup.java
|
a9ec762dd57592beff92445aad3b397470be5c60
|
[] |
no_license
|
lujx1024/robotServer
|
a653775e62dae56477c9466ac6244fb6dd4baae1
|
34e231250861c1c7f74aae82b8560ff981e9d6ab
|
refs/heads/master
| 2020-03-22T23:40:28.256321
| 2018-07-13T08:59:18
| 2018-07-13T08:59:18
| 140,822,860
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 476
|
java
|
package org.sgpro.db;
// Generated 2017-6-21 11:12:45 by Hibernate Tools 4.0.0
/**
* EntDialogBackup generated by hbm2java
*/
public class EntDialogBackup implements java.io.Serializable {
private EntDialogBackupId id;
public EntDialogBackup() {
}
public EntDialogBackup(EntDialogBackupId id) {
this.id = id;
}
public EntDialogBackupId getId() {
return this.id;
}
public void setId(EntDialogBackupId id) {
this.id = id;
}
}
|
[
"lujx_1024@163.com"
] |
lujx_1024@163.com
|
2d5a6590ffa9625080e18f53983a8306075f911e
|
337b0ed5a58606db29df3d2ae164671be9ccdc6c
|
/bitcamp-project-client/v33_3/src/main/java/com/eomcs/lms/proxy/MemberDaoProxy.java
|
c36b99d85e38684c1ebfdb924a7fc74ef36dc584
|
[] |
no_license
|
shinji-sub/bitcamp-study
|
7a1e3be8942535481b89b30f1125dd783ecd9689
|
fdea8b13c4713935ee6beee6c54247cbebf704f7
|
refs/heads/master
| 2020-09-23T12:39:36.366360
| 2020-05-22T08:25:53
| 2020-05-22T08:25:53
| 225,501,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,237
|
java
|
package com.eomcs.lms.proxy;
import java.util.List;
import com.eomcs.lms.domain.Member;
import com.eomcs.lms.domain.MemberDao;
// 프록시 객체는 항상 작업 객체와 동일한 인터페이스를 구현해야 한다,
// => 마치 자신이 작업 객체인양 보이기 위함이다.
// => BoardDao 작업 객체를 대행할 프록시를 정의한다.
public class MemberDaoProxy implements MemberDao {
DaoProxyHelper daoProxyHelper;
public MemberDaoProxy(DaoProxyHelper daoProxyHelper) {
this.daoProxyHelper = daoProxyHelper;
}
@Override
public int insert(Member member) throws Exception {
MemberInsertWorker worker = new MemberInsertWorker(member);
return (int) daoProxyHelper.request(worker);
}
@SuppressWarnings("unchecked")
@Override
public List<Member> findAll() throws Exception {
return (List<Member>) daoProxyHelper.request((in, out) -> {
out.writeUTF("/member/list");
out.flush();
String response = in.readUTF();
if (response.equals("FAIL")) {
throw new Exception(in.readUTF());
}
return (List<Member>) in.readObject();
});
}
@Override
public Member findByNo(int no) throws Exception {
return (Member) daoProxyHelper.request((in, out) -> {
out.writeUTF("/member/detail");
out.writeInt(no);
out.flush();
String response = in.readUTF();
if (response.equals("FAIL")) {
throw new Exception(in.readUTF());
}
return (Member) in.readObject();
});
}
@Override
public int update(Member member) throws Exception {
return (int) daoProxyHelper.request((in, out) -> {
out.writeUTF("/member/update");
out.writeObject(member);
out.flush();
String response = in.readUTF();
if (response.equals("FAIL")) {
throw new Exception(in.readUTF());
}
return 1;
});
}
@Override
public int delete(int no) throws Exception {
return (int) daoProxyHelper.request((in, out) -> {
out.writeUTF("/member/delete");
out.writeInt(no);
out.flush();
String respinse = in.readUTF();
if (respinse.equals("FAIL")) {
throw new Exception(in.readUTF());
}
return 1;
});
}
}
|
[
"wltjq2006@naver.com"
] |
wltjq2006@naver.com
|
df143331bce2011382816e02083152b19ec08e19
|
0136bdbcba620caae2ede8668f05c038afd8807f
|
/refactoring/src/main/java/me/whiteship/refactoring/_06_mutable_data/_23_change_reference_to_value/TelephoneNumber.java
|
02bc3fab088f6760bd6119df634db50addb51fa9
|
[] |
no_license
|
dh37789/basic
|
40c7ae83fdb20d2763b7ebf55f9f247e87fd448f
|
b9b84db0e832ae0dd4d0d9c1ed5bf2259dbefc38
|
refs/heads/master
| 2023-08-31T01:27:12.497153
| 2023-08-20T07:12:22
| 2023-08-20T07:12:22
| 199,305,523
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 871
|
java
|
package me.whiteship.refactoring._06_mutable_data._23_change_reference_to_value;
import java.util.Objects;
public class TelephoneNumber {
private final String areaCode;
private final String number;
public TelephoneNumber(String areaCode, String number) {
this.areaCode = areaCode;
this.number = number;
}
public String areaCode() {
return areaCode;
}
public String number() {
return number;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TelephoneNumber that = (TelephoneNumber) o;
return Objects.equals(areaCode, that.areaCode) && Objects.equals(number, that.number);
}
@Override
public int hashCode() {
return Objects.hash(areaCode, number);
}
}
|
[
"dhaudgkr@gmail.com"
] |
dhaudgkr@gmail.com
|
e5cbfa20bee16bcae52db68e4398fdba30391e55
|
f405015899c77fc7ffcc1fac262fbf0b6d396842
|
/sec2-saml-base/src/main/java/org/sec2/saml/SAMLBaseConfig.java
|
9961a9f27494b0db759ee49fef07cba5d92942c5
|
[] |
no_license
|
OniXinO/Sec2
|
a10ac99dd3fbd563288b8d21806afd949aea4f76
|
d0a4ed1ac97673239a8615a7ddac1d0fc0a1e988
|
refs/heads/master
| 2022-05-01T18:43:42.532093
| 2016-01-18T19:28:20
| 2016-01-18T19:28:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,696
|
java
|
/*
* Copyright 2012 Ruhr-University Bochum, Chair for Network and Data Security
*
* This source code is part of the "Sec2" project and as this remains property
* of the project partners. Content and concepts have to be treated as
* CONFIDENTIAL. Publication or partly disclosure without explicit
* written permission is prohibited.
* For details on "Sec2" and its contributors visit
*
* http://nds.rub.de/research/projects/sec2/
*/
package org.sec2.saml;
import java.util.Properties;
import org.opensaml.xml.encryption.EncryptionConstants;
import org.opensaml.xml.signature.SignatureConstants;
/**
* Configuration of the SAML engine. Sets algorithms, hash functions, etc.
*
* @author Dennis Felsch - dennis.felsch@rub.de
* @version 0.1
*
* December 17, 2012
*/
public class SAMLBaseConfig extends AbstractPropertyReadingConfig {
/**
* No instances allowed, utility class only.
*/
protected SAMLBaseConfig() { }
/**
* Used to access the config file.
*/
private static final Properties PROPERTIES = getPropertiesFromXML(
"saml-base-config.xml");
/**
* The encoding used for streams.
*/
public static final String DEFAULT_ENCODING = "UTF-8";
/**
* The hash algorithm used to hash the public key.
*/
public static final String DIGEST_ALGORITHM = "SHA-256";
/**
* Namespace used for the sec2 SAML messages in SAML-attributes.
*/
public static final String SEC2_SAML_NS = "http://sec2.org/saml/v1/";
/**
* Namespace prefix used for the sec2 SAML messages in SAML-attributes.
*/
public static final String SEC2_SAML_PREFIX =
PROPERTIES.getProperty("saml.base.xmlNamespace");
/**
* The certificate type to be used, default "X.509".
* Do not simply change this, you also need to change all the certificate
* handling code if you want to change the type of certificates used.
*/
public static final String CERTIFICATE_TYPE = "X.509";
/**
* The type of the keystore used, default "HardwareToken".
*/
public static final String KEYSTORE_TYPE = "HardwareToken";
/**
* The ID of the ValidatorSuite used. Has to match the ID in the
* config-file. See "resources/sec2saml-config.xml".
*/
public static final String VALIDATOR_SUITE_ID = "sec2saml-schema-validator";
/* ==================================================
* ************** XML Signature Config **************
* ==================================================
*/
/**
* Algorithm used for signing, default: "RSA".
* Has to be a JCE-name for a public key scheme supported by XML-Signature.
*/
public static final String XML_SIGNATURE_ALGORITHM = "RSA";
/**
* Namespace used for creating an XML signature, default:
* "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256".
* Has to match the algorithm used for signing.
*/
public static final String XML_SIGNATURE_ALGORITHM_NS =
SignatureConstants.ALGO_ID_SIGNATURE_RSA_SHA256;
/**
* Namespace used for XML canonicalization, default:
* "http://www.w3.org/2001/10/xml-exc-c14n#".
*/
public static final String XML_SIGNATURE_C14N_ALGORITHM_NS
= SignatureConstants.ALGO_ID_C14N_EXCL_OMIT_COMMENTS;
/**
* Namespace used for generating digests of referenced ressources, default:
* "http://www.w3.org/2001/04/xmldsig-more#sha256".
*/
public static final String XML_SIGNATURE_DIGEST_METHOD_NS
= SignatureConstants.ALGO_ID_DIGEST_SHA256;
/* ==================================================
* ************* XML Encryption Config **************
* ==================================================
*/
/**
* Algorithm used for encryption, default: "AES".
* Has to be a JCE-name for a symmetric cipher scheme supported by
* XML-Encryption.
*/
public static final String XML_ENCRYPTION_ALGORITHM = "AES";
/**
* Keysize of the symmetric cipher, default: 128.
*/
public static final int XML_ENCRYPTION_KEYSIZE = 128;
/**
* Namespace used for symmetric encryption algorithm, default:
* "http://www.w3.org/2001/04/xmlenc#aes128-cbc".
*/
public static final String XML_ENCRYPTION_ALGORITHM_NS
= EncryptionConstants.ALGO_ID_BLOCKCIPHER_AES128_GCM;
/**
* Namespace used for encapsulation of the symmetric key, default:
* "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p".
*/
public static final String XML_ENCRYPTION_KEYTRANSPORT_NS
= EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSAOAEP;
}
|
[
"developer@developer-VirtualBox"
] |
developer@developer-VirtualBox
|
ff1f6584c2c2406277dec6fcaf987d98541f9129
|
817fc852490339447282fb39c3ab4d26b8654603
|
/one/src/main/java/com/skysport/inerfaces/model/develop/accessories/service/impl/AccessoriesServiceImpl.java
|
bd69fc11059828de33b1aa3b71de480fae4d100e
|
[
"Apache-2.0"
] |
permissive
|
tfgzs/open-erp
|
a94cd7c975285d00dfe6ff912080b68f0f2b8ca4
|
ca113d80cc30ba1c1fd3aefd3a96f77475b77507
|
refs/heads/master
| 2021-01-18T17:55:29.277574
| 2016-03-04T10:16:41
| 2016-03-04T10:16:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,803
|
java
|
package com.skysport.inerfaces.model.develop.accessories.service.impl;
import com.skysport.core.constant.CharConstant;
import com.skysport.core.model.seqno.service.IncrementNumber;
import com.skysport.inerfaces.bean.develop.AccessoriesInfo;
import com.skysport.inerfaces.bean.develop.BomInfo;
import com.skysport.inerfaces.bean.develop.join.AccessoriesJoinInfo;
import com.skysport.inerfaces.constant.WebConstants;
import com.skysport.inerfaces.mapper.info.AccessoriesManageMapper;
import com.skysport.core.model.common.impl.CommonServiceImpl;
import com.skysport.inerfaces.model.develop.accessories.service.IAccessoriesService;
import com.skysport.inerfaces.model.develop.pantone.helper.KFMaterialPantoneServiceHelper;
import com.skysport.inerfaces.model.develop.pantone.service.IKFMaterialPantoneService;
import com.skysport.inerfaces.model.develop.position.helper.KFMaterialPositionServiceHelper;
import com.skysport.inerfaces.model.develop.position.service.IKFMaterialPositionService;
import com.skysport.inerfaces.utils.BuildSeqNoHelper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
/**
* 说明:
* Created by zhangjh on 2015/9/22.
*/
@Service("accessoriesService")
public class AccessoriesServiceImpl extends CommonServiceImpl<AccessoriesInfo> implements IAccessoriesService, InitializingBean {
@Resource(name = "accessoriesManageMapper")
private AccessoriesManageMapper accessoriesManageMapper;
@Resource(name = "incrementNumber")
private IncrementNumber incrementNumber;
@Resource(name = "kFMaterialPositionService")
private IKFMaterialPositionService kFMaterialPositionService;
@Resource(name = "kFMaterialPantoneService")
private IKFMaterialPantoneService kFMaterialPantoneService;
@Override
public void afterPropertiesSet() throws Exception {
commonDao = accessoriesManageMapper;
}
/**
* 保存辅料信息
*
* @param accessoriesItems
* @param bomInfo
*/
@Override
public void updateBatch(List<AccessoriesJoinInfo> accessoriesItems, BomInfo bomInfo) {
//找出被删除的面料id,并删除
String bomId = StringUtils.isBlank(bomInfo.getNatrualkey()) ? bomInfo.getBomId() : bomInfo.getNatrualkey();
deleteAccessoriesByIds(accessoriesItems, bomId);
if (null != accessoriesItems) {
//面料id存在,修改;面料id不存在则新增
for (AccessoriesJoinInfo accessoriesJoinInfo : accessoriesItems) {
String accessoriesId = accessoriesJoinInfo.getAccessoriesInfo().getAccessoriesId();
//有id,更新
if (StringUtils.isNotBlank(accessoriesId)) {
setAccessoriesId(accessoriesJoinInfo, accessoriesId, bomId);
accessoriesManageMapper.updateInfo(accessoriesJoinInfo.getAccessoriesInfo());
accessoriesManageMapper.updateDosage(accessoriesJoinInfo.getMaterialUnitDosage());
accessoriesManageMapper.updateSp(accessoriesJoinInfo.getMaterialSpInfo());
}
//无id,新增
else {
String kind_name = buildKindName(bomInfo, accessoriesJoinInfo);
String seqNo = BuildSeqNoHelper.SINGLETONE.getFullSeqNo(kind_name, incrementNumber, WebConstants.MATERIAL_SEQ_NO_LENGTH);
//年份+客户+地域+系列+NNN
accessoriesId = kind_name + seqNo;
setAccessoriesId(accessoriesJoinInfo, accessoriesId, bomId);
accessoriesManageMapper.add(accessoriesJoinInfo.getAccessoriesInfo());
//新增面料用量
accessoriesManageMapper.addDosage(accessoriesJoinInfo.getMaterialUnitDosage());
//新增面料供应商信息
accessoriesManageMapper.addSp(accessoriesJoinInfo.getMaterialSpInfo());
}
if (null != accessoriesJoinInfo.getAccessoriesInfo().getPositionIds() && !accessoriesJoinInfo.getAccessoriesInfo().getPositionIds().isEmpty()) {
kFMaterialPositionService.addBatch(accessoriesJoinInfo.getAccessoriesInfo().getPositionIds());
}
//保留物料颜色信息
if (null != accessoriesJoinInfo.getAccessoriesInfo().getPantoneIds() && !accessoriesJoinInfo.getAccessoriesInfo().getPantoneIds().isEmpty()) {
kFMaterialPantoneService.addBatch(accessoriesJoinInfo.getAccessoriesInfo().getPantoneIds());
}
}
}
}
@Override
public List<AccessoriesInfo> queryAccessoriesList(String bomId) {
return accessoriesManageMapper.queryAccessoriesList(bomId);
}
@Override
public List<AccessoriesInfo> queryAllAccessoriesByBomId(String bomId) {
return accessoriesManageMapper.queryAllAccessoriesByBomId(bomId);
}
private String buildKindName(BomInfo bomInfo, AccessoriesJoinInfo accessoriesJoinInfo) {
String kind_name = CharConstant.EMPTY;
StringBuilder stringBuilder = new StringBuilder();
String materialTypeId = StringUtils.isBlank(accessoriesJoinInfo.getAccessoriesInfo().getMaterialTypeId()) ? WebConstants.ACCESSORIE_MATERIAL_TYPE_ID : accessoriesJoinInfo.getAccessoriesInfo().getMaterialTypeId();
stringBuilder.append(materialTypeId);
stringBuilder.append(accessoriesJoinInfo.getAccessoriesInfo().getSpId());
stringBuilder.append(accessoriesJoinInfo.getAccessoriesInfo().getYearCode());
stringBuilder.append(accessoriesJoinInfo.getAccessoriesInfo().getProductTypeId());
return kind_name;
}
private void setAccessoriesId(AccessoriesJoinInfo accessoriesJoinInfo, String accessoriesId, String bomId) {
accessoriesJoinInfo.getAccessoriesInfo().setAccessoriesId(accessoriesId);
accessoriesJoinInfo.getAccessoriesInfo().setNatrualkey(accessoriesId);
accessoriesJoinInfo.getAccessoriesInfo().setBomId(bomId);
accessoriesJoinInfo.getMaterialUnitDosage().setMaterialId(accessoriesId);
accessoriesJoinInfo.getMaterialSpInfo().setMaterialId(accessoriesId);
//设置物料位置的物料id
KFMaterialPositionServiceHelper.SINGLETONE.setPositionFabricId(accessoriesJoinInfo.getAccessoriesInfo().getPositionIds(), accessoriesId);
//设置物料颜色的物料id
KFMaterialPantoneServiceHelper.SINGLETONE.setPantoneFabricId(accessoriesJoinInfo.getAccessoriesInfo().getPantoneIds(), accessoriesId);
}
private void deleteAccessoriesByIds(List<AccessoriesJoinInfo> accessoriesItems, String bomId) {
List<String> allAccessoriesIds = accessoriesManageMapper.selectAllAccessoriesId(bomId);
List<String> needToSaveAccessoriesId = buildNeedSaveAccessoriesId(accessoriesItems);
allAccessoriesIds.removeAll(needToSaveAccessoriesId);
if (null != allAccessoriesIds && !allAccessoriesIds.isEmpty()) {
accessoriesManageMapper.deleteAccessoriesByIds(allAccessoriesIds);
}
}
private List<String> buildNeedSaveAccessoriesId(List<AccessoriesJoinInfo> accessoriesItems) {
List<String> needToSaveAccessoriesId = new ArrayList<String>();
if (null != accessoriesItems) {
for (AccessoriesJoinInfo accessoriesJoinInfo : accessoriesItems) {
String accessoriesId = accessoriesJoinInfo.getAccessoriesInfo().getMaterialTypeId();
needToSaveAccessoriesId.add(accessoriesId);
}
}
return needToSaveAccessoriesId;
}
}
|
[
"firebata@gmail.com"
] |
firebata@gmail.com
|
6dcfb0a34d01f47b17d05dfd58c0de8561ff7475
|
ee1244b10de45679f053293e366f192af307be74
|
/sources/org/telegram/ui/Components/Switch2.java
|
ac00563e65d3faa3e6391197017c64a02dc22844
|
[] |
no_license
|
scarletstuff/Turbogram
|
a086e50b3f4d7036526075199616682a0d7c9c45
|
21b8862573953add9260f1eb586f0985d2c71e8e
|
refs/heads/master
| 2021-09-23T14:34:23.323880
| 2018-09-24T17:48:43
| 2018-09-24T17:48:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,580
|
java
|
package org.telegram.ui.Components;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Style;
import android.graphics.RectF;
import android.support.annotation.Keep;
import android.support.v4.app.NotificationCompat;
import android.view.View;
import org.telegram.messenger.AndroidUtilities;
import org.telegram.ui.ActionBar.Theme;
public class Switch2 extends View {
private static Bitmap drawBitmap;
private boolean attachedToWindow;
private ObjectAnimator checkAnimator;
private boolean isChecked;
private Paint paint;
private Paint paint2;
private float progress;
private RectF rectF = new RectF();
private Paint shadowPaint;
public Switch2(Context context) {
super(context);
if (drawBitmap == null || drawBitmap.getWidth() != AndroidUtilities.dp(24.0f)) {
drawBitmap = Bitmap.createBitmap(AndroidUtilities.dp(24.0f), AndroidUtilities.dp(24.0f), Config.ARGB_8888);
Canvas canvas = new Canvas(drawBitmap);
Paint paint = new Paint(1);
paint.setShadowLayer((float) AndroidUtilities.dp(2.0f), 0.0f, 0.0f, Theme.ACTION_BAR_PHOTO_VIEWER_COLOR);
canvas.drawCircle((float) AndroidUtilities.dp(12.0f), (float) AndroidUtilities.dp(12.0f), (float) AndroidUtilities.dp(9.0f), paint);
try {
canvas.setBitmap(null);
} catch (Exception e) {
}
}
this.shadowPaint = new Paint(2);
this.paint = new Paint(1);
this.paint2 = new Paint(1);
this.paint2.setStyle(Style.STROKE);
this.paint2.setStrokeCap(Cap.ROUND);
this.paint2.setStrokeWidth((float) AndroidUtilities.dp(2.0f));
}
@Keep
public void setProgress(float value) {
if (this.progress != value) {
this.progress = value;
invalidate();
}
}
public float getProgress() {
return this.progress;
}
private void cancelCheckAnimator() {
if (this.checkAnimator != null) {
this.checkAnimator.cancel();
}
}
private void animateToCheckedState(boolean newCheckedState) {
String str = NotificationCompat.CATEGORY_PROGRESS;
float[] fArr = new float[1];
fArr[0] = newCheckedState ? 1.0f : 0.0f;
this.checkAnimator = ObjectAnimator.ofFloat(this, str, fArr);
this.checkAnimator.setDuration(250);
this.checkAnimator.start();
}
protected void onAttachedToWindow() {
super.onAttachedToWindow();
this.attachedToWindow = true;
}
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
this.attachedToWindow = false;
}
public void setChecked(boolean checked, boolean animated) {
if (checked != this.isChecked) {
this.isChecked = checked;
if (this.attachedToWindow && animated) {
animateToCheckedState(checked);
return;
}
cancelCheckAnimator();
setProgress(checked ? 1.0f : 0.0f);
}
}
public boolean isChecked() {
return this.isChecked;
}
protected void onDraw(Canvas canvas) {
if (getVisibility() == 0) {
int width = AndroidUtilities.dp(36.0f);
int thumb = AndroidUtilities.dp(20.0f);
int x = (getMeasuredWidth() - width) / 2;
int y = (getMeasuredHeight() - AndroidUtilities.dp(14.0f)) / 2;
int tx = (((int) (((float) (width - AndroidUtilities.dp(14.0f))) * this.progress)) + x) + AndroidUtilities.dp(7.0f);
int ty = getMeasuredHeight() / 2;
int color1 = Theme.getColor(Theme.key_switch2Track);
int color2 = Theme.getColor(Theme.key_switch2TrackChecked);
int r1 = Color.red(color1);
int r2 = Color.red(color2);
int g1 = Color.green(color1);
int g2 = Color.green(color2);
int b1 = Color.blue(color1);
int b2 = Color.blue(color2);
int a1 = Color.alpha(color1);
int alpha = (int) (((float) a1) + (((float) (Color.alpha(color2) - a1)) * this.progress));
this.paint.setColor(((((alpha & 255) << 24) | ((((int) (((float) r1) + (((float) (r2 - r1)) * this.progress))) & 255) << 16)) | ((((int) (((float) g1) + (((float) (g2 - g1)) * this.progress))) & 255) << 8)) | (((int) (((float) b1) + (((float) (b2 - b1)) * this.progress))) & 255));
this.rectF.set((float) x, (float) y, (float) (x + width), (float) (AndroidUtilities.dp(14.0f) + y));
canvas.drawRoundRect(this.rectF, (float) AndroidUtilities.dp(7.0f), (float) AndroidUtilities.dp(7.0f), this.paint);
color1 = Theme.getColor(Theme.key_switch2Thumb);
color2 = Theme.getColor(Theme.key_switch2ThumbChecked);
r1 = Color.red(color1);
r2 = Color.red(color2);
g1 = Color.green(color1);
g2 = Color.green(color2);
b1 = Color.blue(color1);
b2 = Color.blue(color2);
a1 = Color.alpha(color1);
alpha = (int) (((float) a1) + (((float) (Color.alpha(color2) - a1)) * this.progress));
this.paint.setColor(((((alpha & 255) << 24) | ((((int) (((float) r1) + (((float) (r2 - r1)) * this.progress))) & 255) << 16)) | ((((int) (((float) g1) + (((float) (g2 - g1)) * this.progress))) & 255) << 8)) | (((int) (((float) b1) + (((float) (b2 - b1)) * this.progress))) & 255));
this.shadowPaint.setAlpha(alpha);
canvas.drawBitmap(drawBitmap, (float) (tx - AndroidUtilities.dp(12.0f)), (float) (ty - AndroidUtilities.dp(11.0f)), this.shadowPaint);
canvas.drawCircle((float) tx, (float) ty, (float) AndroidUtilities.dp(10.0f), this.paint);
this.paint2.setColor(Theme.getColor(Theme.key_switch2Check));
tx = (int) (((float) tx) - (((float) AndroidUtilities.dp(10.8f)) - (((float) AndroidUtilities.dp(1.3f)) * this.progress)));
ty = (int) (((float) ty) - (((float) AndroidUtilities.dp(8.5f)) - (((float) AndroidUtilities.dp(0.5f)) * this.progress)));
int startX2 = ((int) AndroidUtilities.dpf2(4.6f)) + tx;
int startY2 = (int) (AndroidUtilities.dpf2(9.5f) + ((float) ty));
int startX = ((int) AndroidUtilities.dpf2(7.5f)) + tx;
int startY = ((int) AndroidUtilities.dpf2(5.4f)) + ty;
int endX = startX + AndroidUtilities.dp(7.0f);
int endY = startY + AndroidUtilities.dp(7.0f);
Canvas canvas2 = canvas;
canvas2.drawLine((float) ((int) (((float) startX) + (((float) (startX2 - startX)) * this.progress))), (float) ((int) (((float) startY) + (((float) (startY2 - startY)) * this.progress))), (float) ((int) (((float) endX) + (((float) ((startX2 + AndroidUtilities.dp(2.0f)) - endX)) * this.progress))), (float) ((int) (((float) endY) + (((float) ((startY2 + AndroidUtilities.dp(2.0f)) - endY)) * this.progress))), this.paint2);
startX = ((int) AndroidUtilities.dpf2(7.5f)) + tx;
startY = ((int) AndroidUtilities.dpf2(12.5f)) + ty;
canvas2 = canvas;
canvas2.drawLine((float) startX, (float) startY, (float) (startX + AndroidUtilities.dp(7.0f)), (float) (startY - AndroidUtilities.dp(7.0f)), this.paint2);
}
}
}
|
[
"root@linuxhub.it"
] |
root@linuxhub.it
|
60d11a25ac1978cf88638d27f0da484a8fbc3856
|
eaadbbf75cefd3896ed93c45f23c30d9c4b80ff9
|
/sources/com/google/android/gms/common/api/zze.java
|
f6914e311a018ef6009f6a13772581e8c7fff45d
|
[] |
no_license
|
Nicholas1771/Mighty_Monkey_Android_Game
|
2bd4db2951c6d491f38da8e5303e3c004b4331c7
|
042601e568e0c22f338391c06714fa104dba9a5b
|
refs/heads/master
| 2023-03-09T00:06:01.492150
| 2021-02-27T04:02:42
| 2021-02-27T04:02:42
| 342,766,422
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,003
|
java
|
package com.google.android.gms.common.api;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.zzb;
public final class zze implements Parcelable.Creator<Scope> {
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
int zzd = zzb.zzd(parcel);
int i = 0;
String str = null;
while (parcel.dataPosition() < zzd) {
int readInt = parcel.readInt();
switch (65535 & readInt) {
case 1:
i = zzb.zzg(parcel, readInt);
break;
case 2:
str = zzb.zzq(parcel, readInt);
break;
default:
zzb.zzb(parcel, readInt);
break;
}
}
zzb.zzF(parcel, zzd);
return new Scope(i, str);
}
public final /* synthetic */ Object[] newArray(int i) {
return new Scope[i];
}
}
|
[
"nicholasiozzo17@gmail.com"
] |
nicholasiozzo17@gmail.com
|
cb66ce5a124c5e4acb1f0a3f87a3d30d32492eff
|
d436fade2ee33c96f79a841177a6229fdd6303b7
|
/com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_SenseHidden.java
|
5686d65cd335f04b5c4e20f7e3a04830cc4136a6
|
[
"Apache-2.0"
] |
permissive
|
SJonesy/UOMUD
|
bd4bde3614a6cec6fba0e200ac24c6b8b40a2268
|
010684f83a8caec4ea9d38a7d57af2a33100299a
|
refs/heads/master
| 2021-01-20T18:30:23.641775
| 2017-05-19T21:38:36
| 2017-05-19T21:38:36
| 90,917,941
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,949
|
java
|
package com.planet_ink.coffee_mud.Abilities.Prayers;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2001-2017 Bo Zimmerman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
public class Prayer_SenseHidden extends Prayer
{
@Override public String ID() { return "Prayer_SenseHidden"; }
private final static String localizedName = CMLib.lang().L("Sense Hidden");
@Override public String name() { return localizedName; }
private final static String localizedStaticDisplay = CMLib.lang().L("(Sense Hidden)");
@Override public String displayText() { return localizedStaticDisplay; }
@Override public int classificationCode(){return Ability.ACODE_PRAYER|Ability.DOMAIN_COMMUNING;}
@Override protected int canAffectCode(){return CAN_MOBS;}
@Override public int enchantQuality(){return Ability.QUALITY_BENEFICIAL_SELF;}
@Override protected int canTargetCode(){return CAN_MOBS;}
@Override public int abstractQuality(){ return Ability.QUALITY_BENEFICIAL_SELF;}
@Override public long flags(){return Ability.FLAG_NEUTRAL;}
@Override
public void affectPhyStats(Physical affected, PhyStats affectableStats)
{
super.affectPhyStats(affected,affectableStats);
if(invoker==null)
return;
affectableStats.setSensesMask(affectableStats.sensesMask()|PhyStats.CAN_SEE_HIDDEN);
}
@Override
public void affectCharStats(MOB affected, CharStats affectableStats)
{
super.affectCharStats(affected,affectableStats);
affectableStats.setStat(CharStats.STAT_SAVE_OVERLOOKING,affected.phyStats().level()+(2*getXLEVELLevel(invoker()))+100+affectableStats.getStat(CharStats.STAT_SAVE_OVERLOOKING));
}
@Override
public void unInvoke()
{
// undo the affects of this spell
if(!(affected instanceof MOB))
return;
final MOB mob=(MOB)affected;
super.unInvoke();
if(canBeUninvoked())
if((mob.location()!=null)&&(!mob.amDead()))
mob.location().show(mob,null,CMMsg.MSG_OK_VISUAL,L("<S-YOUPOSS> eyes are no longer opaque."));
}
@Override
public int castingQuality(MOB mob, Physical target)
{
if(mob!=null)
{
if(target instanceof MOB)
{
final Room R=((MOB)target).location();
boolean found=false;
if(R!=null)
for(int r=0;r<R.numInhabitants();r++)
{
final MOB M=R.fetchInhabitant(r);
if((M!=null)&&(M!=mob)&&(M!=target)&&(CMLib.flags().isHidden(M)))
{ found=true; break;}
}
if(!found)
return Ability.QUALITY_INDIFFERENT;
}
}
return super.castingQuality(mob,target);
}
@Override
public boolean invoke(MOB mob, List<String> commands, Physical givenTarget, boolean auto, int asLevel)
{
Physical target=mob;
if((auto)&&(givenTarget!=null))
target=givenTarget;
if(target.fetchEffect(this.ID())!=null)
{
mob.tell(mob,target,null,L("<T-NAME> <T-IS-ARE> already affected by @x1.",name()));
return false;
}
if(!super.invoke(mob,commands,givenTarget,auto,asLevel))
return false;
final boolean success=proficiencyCheck(mob,0,auto);
if(success)
{
final CMMsg msg=CMClass.getMsg(mob,target,this,verbalCastCode(mob,target,auto),auto?L("<T-NAME> attain(s) opaque eyes!"):L("^S<S-NAME> @x1 for divine revelation, and <S-HIS-HER> eyes become opaque.^?",prayWord(mob)));
if(mob.location().okMessage(mob,msg))
{
mob.location().send(mob,msg);
beneficialAffect(mob,target,asLevel,0);
}
}
else
return beneficialWordsFizzle(mob,null,L("<S-NAME> @x1 for divine revelation, but <S-HIS-HER> prayer is not heard.",prayWord(mob)));
// return whether it worked
return success;
}
}
|
[
"bo@zimmers.net"
] |
bo@zimmers.net
|
2672460bff271bf77ecc6709209fc9280e9a04f1
|
6e2e383a00778d826c451a4d9274fc49e0cff41c
|
/hackerrank/src/Leecode/Prob_917.java
|
cf6a68bb51b56fd1d87442d779f4ad03d7cee15e
|
[] |
no_license
|
kenvifire/AlgorithmPractice
|
d875df9d13a76a02bce9ce0b90a8fad5ba90f832
|
e16315ca2ad0476f65f087f608cc9424710e0812
|
refs/heads/master
| 2022-12-17T23:45:37.784637
| 2020-09-22T14:45:46
| 2020-09-22T14:45:46
| 58,105,208
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 654
|
java
|
package Leecode;
public class Prob_917 {
public String reverseOnlyLetters(String S) {
int left = 0, right = S.length() - 1;
StringBuilder sb = new StringBuilder(S);
while (left < right) {
if (!Character.isAlphabetic(S.charAt(left))) {
left++;
continue;
}
if(!Character.isAlphabetic(S.charAt(right))) {
right--;
continue;
}
sb.setCharAt(left, S.charAt(right));
sb.setCharAt(right, S.charAt(left));
left++;
right--;
}
return sb.toString();
}
}
|
[
"mrwhite@163.com"
] |
mrwhite@163.com
|
b8616ea1fa38c70e9d20689a7bab96ca32aa076b
|
9d67ea1175415ca7e16b037fb64b777a264b870c
|
/skubit-android/src/com/skubit/shared/dto/TransactionDto.java
|
b6e2058ef246c88c3504990a20701301c18de7ac
|
[
"Apache-2.0"
] |
permissive
|
skubit/skubit-device
|
8dfb8bd345311bb0ad7ecf63c050602684a04cdb
|
7f6d000111939319aa2b9748e631dcfa35bf65ff
|
refs/heads/master
| 2020-04-25T13:54:34.962971
| 2015-03-15T01:10:02
| 2015-03-15T01:10:02
| 24,310,168
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,897
|
java
|
/**
* Copyright 2014 Skubit
*
* 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.skubit.shared.dto;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(Include.NON_NULL)
public class TransactionDto implements Dto {
/**
*
*/
private static final long serialVersionUID = -5405919723957516557L;
private String address;
private String amount;// BTC
private String bitcoinTransactionId;
private Date createdDate;
private long fee;
private String note;
private String purchaseToken;
private String selfLink;
private TransactionState transactionState;
private TransactionType transactionType;
private Date updatedDate;
private String userId;
public String getAddress() {
return address;
}
public String getAmount() {
return amount;
}
public String getBitcoinTransactionId() {
return bitcoinTransactionId;
}
public Date getCreatedDate() {
return createdDate;
}
public long getFee() {
return fee;
}
public String getNote() {
return note;
}
public String getPurchaseToken() {
return purchaseToken;
}
public String getSelfLink() {
return selfLink;
}
public TransactionState getTransactionState() {
return transactionState;
}
public TransactionType getTransactionType() {
return transactionType;
}
public Date getUpdatedDate() {
return updatedDate;
}
public String getUserId() {
return userId;
}
public void setAddress(String address) {
this.address = address;
}
public void setAmount(String amount) {
this.amount = amount;
}
public void setBitcoinTransactionId(String bitcoinTransactionId) {
this.bitcoinTransactionId = bitcoinTransactionId;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
public void setFee(long fee) {
this.fee = fee;
}
public void setNote(String note) {
this.note = note;
}
public void setPurchaseToken(String purchaseToken) {
this.purchaseToken = purchaseToken;
}
public void setSelfLink(String selfLink) {
this.selfLink = selfLink;
}
public void setTransactionState(TransactionState transactionState) {
this.transactionState = transactionState;
}
public void setTransactionType(TransactionType transactionType) {
this.transactionType = transactionType;
}
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
public void setUserId(String userId) {
this.userId = userId;
}
@Override
public String toString() {
return "TransactionDto [selfLink=" + selfLink + ", address=" + address
+ ", amount=" + amount + ", bitcoinTransactionId="
+ bitcoinTransactionId + ", createdDate=" + createdDate
+ ", note=" + note + ", purchaseToken=" + purchaseToken
+ ", transactionState=" + transactionState
+ ", transactionType=" + transactionType + ", updatedDate="
+ updatedDate + ", userId=" + userId + "]";
}
}
|
[
"shane.isbell@gmail.com"
] |
shane.isbell@gmail.com
|
4a921b1ce38c8ae94797678ecb24de16ab721497
|
cacd87f8831b02e254d65c5e86d48264c7493d78
|
/pc/new/backstage/src/com/manji/backstage/vo/logger/DeviceLogVo.java
|
f847d58b57bbcddeddd51b8c1daa935bf9c66088
|
[] |
no_license
|
lichaoqian1992/beautifulDay
|
1a5a30947db08d170968611068673d2f0b626eb2
|
44e000ecd47099dc5342ab8a208edea73602760b
|
refs/heads/master
| 2021-07-24T22:48:33.067359
| 2017-11-03T09:06:15
| 2017-11-03T09:06:15
| 108,791,908
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 279
|
java
|
package com.manji.backstage.vo.logger;
import com.manji.backstage.model.logger.DeviceLog;
public class DeviceLogVo extends DeviceLog{
int index;
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
}
|
[
"1015598423@qq.com"
] |
1015598423@qq.com
|
501aa62b578b50cad7f8e0b45b816bbe2c5794d2
|
4a6a9d22bb759dd56d44f7d592bd7bfaf696289f
|
/x_organization_assemble_express/src/main/java/com/x/organization/assemble/express/factory/PersonFactory.java
|
61aed21ccfda7f1186d3704ad0ad9a7c07f00185
|
[
"MIT"
] |
permissive
|
hq1980/o2oa
|
ff665c70621f035d0cd1110b71f2cd4f92686972
|
12bdca9149bbe8f377622ca0a5a861362999cde5
|
refs/heads/master
| 2021-01-22T09:10:29.309611
| 2017-02-14T07:17:03
| 2017-02-14T07:17:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,361
|
java
|
package com.x.organization.assemble.express.factory;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.apache.commons.lang3.ObjectUtils;
import com.x.base.core.utils.annotation.MethodDescribe;
import com.x.organization.assemble.express.AbstractFactory;
import com.x.organization.assemble.express.Business;
import com.x.organization.assemble.express.jaxrs.wrapout.WrapOutPerson;
import com.x.organization.core.entity.Identity;
import com.x.organization.core.entity.Identity_;
import com.x.organization.core.entity.Person;
import com.x.organization.core.entity.Person_;
public class PersonFactory extends AbstractFactory {
public PersonFactory(Business business) throws Exception {
super(business);
}
@MethodDescribe("根据用户名查找Person")
public String getWithName(String name) throws Exception {
EntityManager em = this.entityManagerContainer().get(Person.class);
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<String> cq = cb.createQuery(String.class);
Root<Person> root = cq.from(Person.class);
Predicate p = cb.equal(root.get(Person_.name), name);
cq.select(root.get(Person_.id)).where(p);
List<String> list = em.createQuery(cq).setMaxResults(1).getResultList();
if (!list.isEmpty()) {
return list.get(0);
} else {
return null;
}
}
public List<String> listWithIdentity(List<String> ids) throws Exception {
EntityManager em = this.entityManagerContainer().get(Identity.class);
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<String> cq = cb.createQuery(String.class);
Root<Identity> root = cq.from(Identity.class);
Predicate p = root.get(Identity_.id).in(ids);
cq.select(root.get(Identity_.person)).where(p).distinct(true);
List<String> list = em.createQuery(cq).getResultList();
return list;
}
@MethodDescribe("根据用户的唯一标识来查找用户,可以是id,name,unique,employee")
public String getWithCredential(String credential) throws Exception {
EntityManager em = this.entityManagerContainer().get(Person.class);
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<String> cq = cb.createQuery(String.class);
Root<Person> root = cq.from(Person.class);
Predicate p = cb.equal(root.get(Person_.name), credential);
p = cb.or(p, cb.equal(root.get(Person_.id), credential));
p = cb.or(p, cb.equal(root.get(Person_.employee), credential));
p = cb.or(p, cb.equal(root.get(Person_.unique), credential));
cq.select(root.get(Person_.id)).where(p);
List<String> list = em.createQuery(cq).setMaxResults(1).getResultList();
if (!list.isEmpty()) {
return list.get(0);
} else {
return null;
}
}
@MethodDescribe("列示所有首字母开始的公司.")
public List<String> listPinyinInitial(String key) throws Exception {
String str = key.replaceAll("_", "\\\\_");
str = str.replaceAll("%", "\\\\%");
str = str.toLowerCase();
EntityManager em = this.entityManagerContainer().get(Person.class);
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<String> cq = cb.createQuery(String.class);
Root<Person> root = cq.from(Person.class);
Predicate p = cb.like(root.get(Person_.pinyinInitial), str + "%", '\\');
cq.select(root.get(Person_.id)).where(p);
return em.createQuery(cq).getResultList();
}
@MethodDescribe("进行模糊查询.")
public List<String> listLike(String key) throws Exception {
String str = key.replaceAll("_", "\\\\_");
str = str.replaceAll("%", "\\\\%");
str = str.toLowerCase();
EntityManager em = this.entityManagerContainer().get(Person.class);
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<String> cq = cb.createQuery(String.class);
Root<Person> root = cq.from(Person.class);
Predicate p = cb.like(root.get(Person_.name), "%" + str + "%", '\\');
p = cb.or(p, cb.like(root.get(Person_.pinyin), str + "%", '\\'));
p = cb.or(p, cb.like(root.get(Person_.pinyinInitial), str + "%", '\\'));
cq.select(root.get(Person_.id)).where(p);
return em.createQuery(cq).getResultList();
}
@MethodDescribe("根据拼音进行模糊查询.")
public List<String> listLikePinyin(String key) throws Exception {
String str = key.replaceAll("_", "\\\\_");
str = str.replaceAll("%", "\\\\%");
str = str.toLowerCase();
EntityManager em = this.entityManagerContainer().get(Person.class);
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<String> cq = cb.createQuery(String.class);
Root<Person> root = cq.from(Person.class);
Predicate p = cb.like(root.get(Person_.pinyin), str + "%");
p = cb.or(p, cb.like(root.get(Person_.pinyinInitial), str + "%"));
cq.select(root.get(Person_.id)).where(p);
return em.createQuery(cq).getResultList();
}
// public WrapOutPerson wrap(Person o) throws Exception {
// WrapOutPerson wrap = new WrapOutPerson();
// o.copyTo(wrap);
// return wrap;
// }
public void sort(List<WrapOutPerson> wraps) throws Exception {
Collections.sort(wraps, new Comparator<WrapOutPerson>() {
public int compare(WrapOutPerson o1, WrapOutPerson o2) {
return ObjectUtils.compare(o1.getName(), o2.getName(), true);
}
});
}
}
|
[
"caixiangyi2004@126.com"
] |
caixiangyi2004@126.com
|
045f5f7e31fba1a5a7a7417832b193ed3019b4b4
|
c8c8517321121a2e4ae92cd2b5499d7f90eba711
|
/component_home/src/main/java/com/sinata/rwxchina/component_home/adapter/BrandActivitiesAdapter.java
|
c2c45e1b237efd4f8fbb234c23ce70baae02528d
|
[] |
no_license
|
Akoasm/aichediandian
|
4d6ddd20756fef51b9c895286a8e27cd1b8ae8f4
|
acb767e4a60ff2ed077d71541a0bf1d9a3b4454b
|
refs/heads/master
| 2020-03-18T11:09:54.120547
| 2018-05-24T03:25:05
| 2018-05-24T03:25:05
| 134,654,611
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,770
|
java
|
package com.sinata.rwxchina.component_home.adapter;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.sinata.rwxchina.basiclib.HttpPath;
import com.sinata.rwxchina.basiclib.base.BaseActivity;
import com.sinata.rwxchina.basiclib.commonclass.activity.InsuranceWebViewActivity;
import com.sinata.rwxchina.basiclib.commonclass.activity.ShareWebActivity;
import com.sinata.rwxchina.basiclib.utils.appUtils.AppUtils;
import com.sinata.rwxchina.basiclib.utils.imageUtils.ImageUtils;
import com.sinata.rwxchina.basiclib.utils.retrofitutils.commonparametersutils.CommonParametersUtils;
import com.sinata.rwxchina.basiclib.utils.userutils.UserUtils;
import com.sinata.rwxchina.basiclib.webViewUtils.activity.DefaultWebViewActivity;
import com.sinata.rwxchina.component_home.R;
import com.sinata.rwxchina.component_home.entity.HotEntity;
import java.util.List;
/**
* @author:zy
* @detetime:2017/12/20
* @describe:类描述
* @modifyRecord:修改记录
*/
public class BrandActivitiesAdapter extends RecyclerView.Adapter<BrandActivitiesAdapter.ViewHolder> {
private List<HotEntity> list;
private BaseActivity baseActivity;
private String uid;
public BrandActivitiesAdapter(List<HotEntity> list, BaseActivity baseActivity) {
this.list = list;
this.baseActivity = baseActivity;
uid = CommonParametersUtils.getUid(baseActivity);
}
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(baseActivity).inflate(R.layout.item_brandactivities,null);
ViewHolder viewHolder = new ViewHolder(view);
return viewHolder;
}
@Override
public void onBindViewHolder(ViewHolder holder, final int position) {
final Bundle bundle = new Bundle();
ImageUtils.showImage(baseActivity, HttpPath.IMAGEURL+list.get(position).getUrlsmall(),holder.Image);
holder.textView.setText(list.get(position).getTitle());
holder.Image.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//判断是否需要登录 1:需要 0:不需要
if ("1".equals(list.get(position).getIs_must_login())) {
if (!UserUtils.isLogin(baseActivity)) {
return;
}
}
if ("预约审车".equals(list.get(position).getTitle())){
Intent intent=new Intent(baseActivity,InsuranceWebViewActivity.class);
Bundle shenche=new Bundle();
shenche.putString("url", list.get(0).getUrl());
if (AppUtils.isLogin(baseActivity)){
shenche.putString("uid", CommonParametersUtils.getUid(baseActivity));
}
shenche.putString("token", CommonParametersUtils.getToken(baseActivity));
intent.putExtras(shenche);
baseActivity.startActivity(intent);
return;
}
bundle.putString("url",list.get(position).getUrl());
if (list.get(position).getIs_share().equals("1")){
bundle.putString("share_title",list.get(position).getShare_name());
bundle.putString("content",list.get(position).getShare_content());
bundle.putString("url_share",list.get(position).getUrl_share());
bundle.putString("uid",CommonParametersUtils.getUid(baseActivity));
bundle.putBoolean("isTitleShare",true);
baseActivity.startActivity(ShareWebActivity.class,bundle);
}else {
if (list.get(position).getIs_head().equals("1"))
bundle.putBoolean("isTitle",true);
baseActivity.startActivity(DefaultWebViewActivity.class,bundle);
}
}
});
}
@Override
public int getItemCount() {
return list.size();
}
public List<HotEntity> getList() {
return list;
}
public void setList(List<HotEntity> list) {
this.list = list;
}
class ViewHolder extends RecyclerView.ViewHolder {
private ImageView Image;
private TextView textView;
public ViewHolder(View itemView) {
super(itemView);
Image = itemView.findViewById(R.id.item_brand_iv);
textView = itemView.findViewById(R.id.item_brand_tv);
}
}
}
|
[
"837578092@qq.com"
] |
837578092@qq.com
|
3996c8a42aa10171a6fb1f6a55b77089da1dedb9
|
2df4793e4f113ad42629268b28d8f3287f906758
|
/人工智能导论/gvgai-assignment4/GVGAI-assignment4/src/core/content/Content.java
|
a09714402afdce5608f740a8e0457e6a59a4b342
|
[
"MIT"
] |
permissive
|
jocelyn2002/NJUAI_CodingHW
|
7c692a08fb301f5cac146fef6da3f94d5043f2e9
|
002c5ecbad671b75059290065db73a7152c98db9
|
refs/heads/main
| 2023-04-29T06:25:46.607063
| 2021-05-25T02:45:58
| 2021-05-25T02:45:58
| 448,436,119
| 5
| 1
|
MIT
| 2022-01-16T02:06:27
| 2022-01-16T02:06:26
| null |
UTF-8
|
Java
| false
| false
| 970
|
java
|
package core.content;
import java.util.HashMap;
/**
* Created with IntelliJ IDEA.
* User: Diego
* Date: 16/10/13
* Time: 14:08
* This is a Java port from Tom Schaul's VGDL - https://github.com/schaul/py-vgdl
*/
public abstract class Content
{
/**
* Original line with the content, in VGDL format.
*/
public String line;
/**
* Main definition of the content.
* It is always the first word of each line in VGDL
*/
public String identifier;
/**
* List of parameters of this content (key => value).
* List of all pairs of the form key=value on the line.
*/
public HashMap<String, String> parameters;
/**
* Indicates if this content is definition (i.e., includes character ">" in VGDL).
*/
public boolean is_definition;
/**
* Returns the original line of the content.
* @return original line, in VGDL format.
*/
public String toString() { return line; }
}
|
[
"dinghao12601@126.com"
] |
dinghao12601@126.com
|
70dd1364b4e55c752fc00d802fbffd7ff65d7727
|
68746d4c45185acabe23275fc4764d2c3f3de7d2
|
/src/main/java/leetcode/Medium/WordBreak.java
|
a7ce8e2713993bf49a632d572acad1b1a18d6b94
|
[
"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
| 976
|
java
|
package leetcode.Medium;
import java.util.List;
/**
* Problem Url: https://leetcode.com/problems/word-break
*/
public class WordBreak {
public boolean wordBreak(String s, List<String> wordDict) {
Boolean[][] dp = new Boolean[s.length()][s.length()];
return wordBreak(s, 0, s.length() - 1, dp, wordDict);
}
private boolean wordBreak(String t, int s, int e, Boolean[][] dp, List<String> dict) {
if(s > e) {
return false;
}
if(dp[s][e] != null) {
return dp[s][e];
}
if(s == e) {
return dp[s][e] = dict.contains(t.substring(s, e + 1));
}
if(dict.contains(t.substring(s, e + 1))) {
return dp[s][e] = true;
}
for (int i = s; i < e; i++) {
if(wordBreak(t, s, i, dp, dict) && wordBreak(t, i + 1, e, dp, dict)) {
return dp[s][e] = true;
}
}
return dp[s][e] = false;
}
}
|
[
"lujian282012@163.com"
] |
lujian282012@163.com
|
f3cc4f1916977bdf1f3aef404eabbcf3e7858a49
|
4dde70a36ec75ce47065c5123a3929ab91e183fe
|
/src/main/abstractgame/render/FreeCamera.java
|
c649a11da450b746d48fdacf16faf0ccab61deac
|
[] |
no_license
|
Brownshome/Abstract
|
db2dd912edeebe8272fced6bfc22d044a6ff1129
|
6944af29bd894a5bea17bc4d215f2b67097f6f6c
|
refs/heads/master
| 2021-01-17T07:03:23.401313
| 2016-12-09T23:47:32
| 2016-12-09T23:47:32
| 46,769,411
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,307
|
java
|
package abstractgame.render;
import javax.vecmath.AxisAngle4f;
import javax.vecmath.Quat4f;
import javax.vecmath.Vector2f;
import javax.vecmath.Vector3f;
import org.lwjgl.input.Keyboard;
import com.bulletphysics.linearmath.QuaternionUtil;
import abstractgame.io.user.PerfIO;
import abstractgame.io.user.keybinds.BindGroup;
import abstractgame.ui.GameScreen;
import abstractgame.util.ApplicationException;
import abstractgame.util.Util;
import abstractgame.world.TickableImpl;
import abstractgame.world.World;
/** Represents a physicsless player controled entity */
public class FreeCamera extends TickableImpl implements CameraHost {
static final float PHYS_DELTA = 1f / 60f;
static final float ACCEL = .3f;
static final float DRAG = ACCEL / (15 + ACCEL);
static final float DRAG_SLOW = ACCEL / (5 + ACCEL);
static final BindGroup CAMERA_BINDS = new BindGroup("free camera");
static {
CAMERA_BINDS.add(FreeCamera::cameraUp, Keyboard.KEY_SPACE, PerfIO.BUTTON_DOWN, "up");
CAMERA_BINDS.add(FreeCamera::cameraDown, Keyboard.KEY_LSHIFT, PerfIO.BUTTON_DOWN, "down");
CAMERA_BINDS.add(FreeCamera::cameraForward, Keyboard.KEY_W, PerfIO.BUTTON_DOWN, "forward");
CAMERA_BINDS.add(FreeCamera::cameraBackward, Keyboard.KEY_S, PerfIO.BUTTON_DOWN, "backward");
CAMERA_BINDS.add(FreeCamera::cameraLeft, Keyboard.KEY_A, PerfIO.BUTTON_DOWN, "left");
CAMERA_BINDS.add(FreeCamera::cameraRight, Keyboard.KEY_D, PerfIO.BUTTON_DOWN, "right");
CAMERA_BINDS.add(() -> { FreeCamera.slow = true; }, Keyboard.KEY_LMENU, PerfIO.BUTTON_DOWN, "slow");
CAMERA_BINDS.add(() -> { FreeCamera.slow = false; }, Keyboard.KEY_LMENU, PerfIO.BUTTON_UP, "slow");
CAMERA_BINDS.add(FreeCamera::cameraStop, Keyboard.KEY_X, PerfIO.BUTTON_PRESSED, "stop");
}
static final String FREECAM_STRING = "Freecam Active";
static final Vector3f COLOUR = new Vector3f(0, 0, 0);
public static boolean slow = false;
private static CameraHost oldHost = null;
static final FreeCamera FREE_CAM = new FreeCamera(new Vector3f(), new Quat4f()) {
@Override
public void run() {
super.run();
TextRenderer.addString(FREECAM_STRING, new Vector2f(-1, -1 + TextRenderer.getHeight(FREECAM_STRING) * .05f), .05f, UIRenderer.BASE_STRONG, 0);
if(PhysicsRenderer.INSTANCE.isActive()) {
Vector3f to = new Vector3f(oldHost.getOffset());
QuaternionUtil.quatRotate(oldHost.getOrientation(), to, to);
Vector3f from = new Vector3f(oldHost.getPosition());
from.add(to);
to.set(0, 0, 1);
QuaternionUtil.quatRotate(oldHost.getOrientation(), to, to);
to.add(from);
PhysicsRenderer.INSTANCE.drawLine(from, to, COLOUR);
from.x -= .1f;
from.y -= .1f;
from.z -= .1f;
to.x = from.x + .2f;
to.y = from.y + .2f;
to.z = from.z + .2f;
PhysicsRenderer.INSTANCE.drawAabb(from, to, COLOUR);
}
}
};
public final Vector3f position;
public final Quat4f orientation;
public final Vector3f velocity = new Vector3f();
World world;
public static void enable() {
throw new UnsupportedOperationException("Not implemented");
}
/** Saves the old camera host and switches to a freecam. */
public static void toggle() {
if(oldHost == null) {
oldHost = Camera.host;
FREE_CAM.position.set(Camera.position);
FREE_CAM.orientation.set(oldHost.getOrientation());
FREE_CAM.velocity.set(0, 0, 0);
Camera.setCameraHost(FREE_CAM);
} else {
CameraHost tmp = oldHost;
oldHost = null;
Camera.setCameraHost(tmp);
}
assert oldHost != FREE_CAM;
}
public static boolean isActive() {
return oldHost != null;
}
public FreeCamera(Vector3f position, Vector3f up, Vector3f forward) {
this.position = position;
this.orientation = Util.getQuat(up, forward);
}
public FreeCamera(Vector3f position, Quat4f orientation) {
this.position = position;
this.orientation = orientation;
}
public void up() { velocity.scaleAdd(ACCEL, Camera.up, velocity); }
public void down() { velocity.scaleAdd(-ACCEL, Camera.up, velocity); }
public void left() { velocity.scaleAdd(-ACCEL, Camera.right, velocity); }
public void right() { velocity.scaleAdd(ACCEL, Camera.right, velocity); }
public void forward() { velocity.scaleAdd(ACCEL, Camera.forward, velocity); }
public void backward() { velocity.scaleAdd(-ACCEL, Camera.forward, velocity); }
public void stop() { velocity.set(0, 0, 0); }
public static void cameraUp() { ((FreeCamera) Camera.host).up(); }
public static void cameraDown() { ((FreeCamera) Camera.host).down(); }
public static void cameraLeft() { ((FreeCamera) Camera.host).left(); }
public static void cameraRight() { ((FreeCamera) Camera.host).right(); }
public static void cameraForward() { ((FreeCamera) Camera.host).forward(); }
public static void cameraBackward() { ((FreeCamera) Camera.host).backward(); }
public static void cameraStop() { ((FreeCamera) Camera.host).stop(); }
@Override
public void run() {
super.run();
if(Camera.host != this)
return;
float drag = slow ? DRAG_SLOW : DRAG;
moveOrientation();
velocity.scale(1 - drag);
position.scaleAdd(PHYS_DELTA, velocity, position);
Camera.recalculate();
}
private void moveOrientation() {
if(!PerfIO.holdMouse)
return;
AxisAngle4f tmp = new AxisAngle4f(Camera.right, -PerfIO.dy * 0.001f);
Quat4f rot = new Quat4f();
rot.set(tmp);
orientation.mul(rot, orientation);
orientation.normalize();
tmp.set(0, Camera.up.y > 0 ? 1 : -1, 0, PerfIO.dx * 0.001f);
rot.set(tmp);
orientation.mul(rot, orientation);
}
public void setIsActive(boolean active) {
if(active != (Camera.host == this)) {
if(active) {
Camera.setCameraHost(this);
} else {
Camera.setCameraHost(null);
}
}
}
@Override
public Vector3f getPosition() {
return position;
}
@Override
public Quat4f getOrientation() {
return orientation;
}
@Override
public void onCameraUnset() {
CAMERA_BINDS.deactivate();
world.removeOnTick(this);
}
@Override
public void onCameraSet() {
world = GameScreen.getWorld();
if(world == null)
throw new ApplicationException("There must be a world for the Free Camera to function.", "CAMERA");
CAMERA_BINDS.activate();
world.onTick(this);
}
public static void setOldHost(CameraHost newHost) {
oldHost = newHost;
}
}
|
[
"jamesphone180@gmail.com"
] |
jamesphone180@gmail.com
|
dc3c098cb4cb43a26fcf48e7350a1587a1f008ff
|
2845d612ec420ffed49191af3a8cd4e1e7258cfa
|
/kuangjia/MySpring_lianxi/day04_eesy_03account_aoptx_anno/src/main/java/com/xiaobao/dao/Impl/MyAccountDaoImpl.java
|
5ca6de02e1b12bcb27a2e4937642323fe5a07a09
|
[] |
no_license
|
shuyangxiaobao/Java
|
d618c6b727efcbd3a857a33817720a1c941d2933
|
6510e0d89cbd18e2f59b0cccfe1812807eb2a5af
|
refs/heads/master
| 2022-07-09T03:52:59.986247
| 2021-04-09T07:14:11
| 2021-04-09T07:14:11
| 234,865,674
| 1
| 1
| null | 2022-06-21T04:16:10
| 2020-01-19T08:28:25
|
HTML
|
UTF-8
|
Java
| false
| false
| 2,917
|
java
|
package com.xiaobao.dao.Impl;
import com.xiaobao.dao.IMyAccountDao;
import com.xiaobao.domain.MyAccount;
import com.xiaobao.utils.ConnectionUtils;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;
@Repository("accountDao")
public class MyAccountDaoImpl implements IMyAccountDao {
@Autowired
private QueryRunner runner;
@Resource(name = "connectionUtils")
private ConnectionUtils connectionUtils;
public List<MyAccount> findAllAccount() {
return null;
}
public MyAccount findAccountById(Integer accountId) {
try {
return (MyAccount) runner.query ( connectionUtils.getThreadConnection (), "select * from account",
new BeanListHandler<MyAccount> ( MyAccount.class ) );
} catch (SQLException e) {
e.printStackTrace ();
}
return null;
}
public void saveAccount(MyAccount account) {
try {
runner.update (connectionUtils.getThreadConnection (), "insert into myAccount(myname,mymoney) values (?," +
"?)", account.getMyname (),
account.getMymoney ());
} catch (SQLException e) {
e.printStackTrace ();
}
}
public void updateAccount(MyAccount account) {
try {
runner.update ( connectionUtils.getThreadConnection (), "update myAccount set myname = ? , mymoney = ? where id = ?", account.getMyname (),
account.getMymoney (), account.getId () );
} catch (SQLException e) {
e.printStackTrace ();
}
}
public void deleteAccount(Integer acccountId) {
try {
runner.update (connectionUtils.getThreadConnection (),"delete from myAccount where id = ?",acccountId );
} catch (SQLException e) {
throw new RuntimeException ( e );
}
}
public MyAccount findAccountByName(String accountName) {
try {
return runner.query(connectionUtils.getThreadConnection (),"select * from myaccount where myname = ?",
new BeanHandler<MyAccount> ( MyAccount.class ),
accountName);
} catch (SQLException e) {
throw new RuntimeException ( e );
} }
public MyAccount findAccountByID(String s) {
try{
return runner.query ( connectionUtils.getThreadConnection (),"select * from myAccount where id = ?",
new BeanHandler<MyAccount>(MyAccount.class),s);
}catch (Exception e){
throw new RuntimeException ( e );
}
}
}
|
[
"825065886@qq.com"
] |
825065886@qq.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.