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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ababc4d20d1b5c7f877b4cd55d8f7544891518b7
|
f0568343ecd32379a6a2d598bda93fa419847584
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201308/CreativeWrapperErrorReason.java
|
e4021b22dbf5db34f511e9390e24ba97ab1a9a60
|
[
"Apache-2.0"
] |
permissive
|
frankzwang/googleads-java-lib
|
bd098b7b61622bd50352ccca815c4de15c45a545
|
0cf942d2558754589a12b4d9daa5902d7499e43f
|
refs/heads/master
| 2021-01-20T23:20:53.380875
| 2014-07-02T19:14:30
| 2014-07-02T19:14:30
| 21,526,492
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,266
|
java
|
package com.google.api.ads.dfp.jaxws.v201308;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CreativeWrapperError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="CreativeWrapperError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER"/>
* <enumeration value="INVALID_LABEL_TYPE"/>
* <enumeration value="UNRECOGNIZED_MACRO"/>
* <enumeration value="NEITHER_HEADER_NOR_FOOTER_SPECIFIED"/>
* <enumeration value="CANNOT_USE_CREATIVE_WRAPPER_TYPE"/>
* <enumeration value="CANNOT_UPDATE_LABEL_ID"/>
* <enumeration value="CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES"/>
* <enumeration value="CANNOT_APPLY_TO_MOBILE_AD_UNIT"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "CreativeWrapperError.Reason")
@XmlEnum
public enum CreativeWrapperErrorReason {
/**
*
* The label is already associated with a {@link CreativeWrapper}.
*
*
*/
LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER,
/**
*
* The label type of a creative wrapper must be {@link LabelType#CREATIVE_WRAPPER}.
*
*
*/
INVALID_LABEL_TYPE,
/**
*
* A macro used inside the snippet is not recognized.
*
*
*/
UNRECOGNIZED_MACRO,
/**
*
* When creating a new creative wrapper, either header or footer should exist.
*
*
*/
NEITHER_HEADER_NOR_FOOTER_SPECIFIED,
/**
*
* The network has not been enabled for creating labels of type
* {@link LabelType#CREATIVE_WRAPPER}.
*
*
*/
CANNOT_USE_CREATIVE_WRAPPER_TYPE,
/**
*
* Cannot update {@link CreativeWrapper#labelId}.
*
*
*/
CANNOT_UPDATE_LABEL_ID,
/**
*
* Cannot apply {@link LabelType#CREATIVE_WRAPPER} labels to an ad unit
* if it has no descendants with {@link AdUnit#adUnitSizes} of
* {@code AdUnitSize#environmentType} as
* {@link EnvironmentType#BROWSER}.
*
*
*/
CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES,
/**
*
* Cannot apply {@link LabelType#CREATIVE_WRAPPER} labels to an ad unit
* if {@link AdUnit#targetPlatform} is of type {@code TargetPlatform#MOBILE}
*
*
*/
CANNOT_APPLY_TO_MOBILE_AD_UNIT,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static CreativeWrapperErrorReason fromValue(String v) {
return valueOf(v);
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
9f4afd9b3b4ecb4cc4c3e774f78d86f8924111d5
|
ac09a467d9981f67d346d1a9035d98f234ce38d5
|
/leetcode/src/main/java/org/leetcode/problems/_000322_CoinChange.java
|
f593ac59c4bdfc6a9460238bf6f9c970cea1f351
|
[] |
no_license
|
AlexKokoz/leetcode
|
03c9749c97c846c4018295008095ac86ae4951ee
|
9449593df72d86dadc4c470f1f9698e066632859
|
refs/heads/master
| 2023-02-23T13:56:38.978851
| 2023-02-12T21:21:54
| 2023-02-12T21:21:54
| 232,152,255
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 645
|
java
|
package org.leetcode.problems;
import java.util.Arrays;
/**
*
* MEDIUM
*
* @author Alexandros Kokozidis
*
*/
public class _000322_CoinChange {
public int coinChange(int[] coins, int amount) {
if (amount == 0)
return 0;
Arrays.sort(coins);
final int[] dp = new int[amount + 1];
Arrays.fill(dp, amount + 1);
for (int x : coins) {
if (x < amount)
dp[x] = 1;
else if (x == amount)
return 1;
}
for (int ia = 1; ia <= amount; ia++) {
for (int coin : coins) {
if (ia - coin < 0)
break;
dp[ia] = Math.min(dp[ia], dp[ia - coin] + 1);
}
}
return dp[amount] > amount ? -1 : dp[amount];
}
}
|
[
"alexandros.kokozidis@gmail.com"
] |
alexandros.kokozidis@gmail.com
|
ae317ef6f806006798b45541f3df7e932499511c
|
7a0a934469b1543545f30a449a0c54872bb3bf9a
|
/src/main/java/com/im/sky/tomcat/diy/Server.java
|
3c67d958c060414e825b0bfab428670af4a19737
|
[] |
no_license
|
jcw123/promotion
|
eb3993d329369b3008691d77b46053cbf0f4c4c7
|
a27f3e31616114bfdc54e6aa2d95e42cd321d987
|
refs/heads/master
| 2022-12-25T06:49:32.679498
| 2022-08-03T03:29:47
| 2022-08-03T03:29:47
| 193,919,745
| 0
| 1
| null | 2022-12-16T03:37:07
| 2019-06-26T14:22:22
|
Java
|
UTF-8
|
Java
| false
| false
| 143
|
java
|
package com.im.sky.tomcat.diy;
/**
* @author jiangchangwei
* @date 2020-9-21 下午 8:46
**/
public interface Server extends Lifecycle {
}
|
[
"1433179149@qq.com"
] |
1433179149@qq.com
|
5299a35848d184104a8600fb060447181e20b03a
|
bd729ef9fcd96ea62e82bb684c831d9917017d0e
|
/StatusStatistics/src/com/ctfo/trackservice/dao/OracleProperties.java
|
0a8af5d9069a0e7c70e8728bac682240c78d3226
|
[] |
no_license
|
shanghaif/workspace-kepler
|
849c7de67b1f3ee5e7da55199c05c737f036780c
|
ac1644be26a21f11a3a4a00319c450eb590c1176
|
refs/heads/master
| 2023-03-22T03:38:55.103692
| 2018-03-24T02:39:41
| 2018-03-24T02:39:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,178
|
java
|
/*****************************************
* <ul>
* <li>创 建 者:hushaung </li><br>
* <li>工程名称: TrackService </li><br>
* <li>文件名称:com.ctfo.trackservice.util OracleProperties.java </li><br>
* <li>时 间:2013-10-22 下午4:24:32 </li><br>
* </ul>
*****************************************/
package com.ctfo.trackservice.dao;
/*****************************************
* <li>描 述:oracle参数
*
*****************************************/
public class OracleProperties {
/** 轨迹批量提交数 */
private int trackSubmit;
/** 非法轨迹提批量交数 */
private int trackValidSubmit;
/** 设备状态更新批量提交数 */
private int equipmentSubmit;
/** 根据车辆ID查询车辆状态编码SQL */
private String sql_queryStatusCode;
// 轨迹包更新最后位置到数据库
private String sql_updateLastTrack;
// 轨迹包更新最后位置到数据库
private String sql_updateLastTrackA;
// 轨迹包带总线数据更新最后位置到数据库
private String sql_updateLastTrackLine;
// 轨迹包带总线数据更新最后位置到数据库
private String sql_updateLastTrackALine;
// 更新车辆总线状态信息
private String sql_updateVehicleLineStatus;
// 更新轨迹在线状态
private String sql_UpdateLastTrackISonLine;
// 更新轨迹在线状态
private String sql_cacheAllVehicleStatus;
/** 初始化所有车辆信息SQL */
private String sql_initAllVehilceCache;
/** 更新3g手机号对应的车辆缓存信息SQL */
private String sql_update3GPhotoVehicleInfo;
/** 更新车辆缓存SQL */
private String sql_updateVehicle;
/** 更新3g车辆缓存SQL */
private String sql_update3GVehicle;
/** 查询车辆对应企业SQL */
private String sql_queryVehicleOrgMap;
/** 查询企业对应报警设置SQL */
private String sql_queryOrgAlarmCodeMap;
/** 更新最后位置表车辆上下线状态提交数 */
private Integer updateOfflineStatusSubmit;
/** 上线提交数 */
private Integer onlineSubmit;
/** 下线提交数 */
private Integer offlineSubmit;
/** 更新最后位置表车辆上下线状态SQL */
private String sql_updateOnOfflineStatus;
/** 存储上线SQL */
private String sql_saveOnline;
/** 存储下线SQL */
private String sql_saveOffline;
/** 同步所有上级企业编号SQL */
private String sql_orgParentSync;
public String getSql_orgParentSync() {
return sql_orgParentSync;
}
public void setSql_orgParentSync(String sql_orgParentSync) {
this.sql_orgParentSync = sql_orgParentSync;
}
public Integer getUpdateOfflineStatusSubmit() {
return updateOfflineStatusSubmit;
}
public void setUpdateOfflineStatusSubmit(Integer updateOfflineStatusSubmit) {
this.updateOfflineStatusSubmit = updateOfflineStatusSubmit;
}
public Integer getOnlineSubmit() {
return onlineSubmit;
}
public void setOnlineSubmit(Integer onlineSubmit) {
this.onlineSubmit = onlineSubmit;
}
public Integer getOfflineSubmit() {
return offlineSubmit;
}
public void setOfflineSubmit(Integer offlineSubmit) {
this.offlineSubmit = offlineSubmit;
}
public String getSql_updateOnOfflineStatus() {
return sql_updateOnOfflineStatus;
}
public void setSql_updateOnOfflineStatus(String sql_updateOnOfflineStatus) {
this.sql_updateOnOfflineStatus = sql_updateOnOfflineStatus;
}
public String getSql_saveOnline() {
return sql_saveOnline;
}
public void setSql_saveOnline(String sql_saveOnline) {
this.sql_saveOnline = sql_saveOnline;
}
public String getSql_saveOffline() {
return sql_saveOffline;
}
public void setSql_saveOffline(String sql_saveOffline) {
this.sql_saveOffline = sql_saveOffline;
}
public int getTrackSubmit() {
return trackSubmit;
}
public void setTrackSubmit(int trackSubmit) {
this.trackSubmit = trackSubmit;
}
public int getTrackValidSubmit() {
return trackValidSubmit;
}
public void setTrackValidSubmit(int trackValidSubmit) {
this.trackValidSubmit = trackValidSubmit;
}
public int getEquipmentSubmit() {
return equipmentSubmit;
}
public void setEquipmentSubmit(int equipmentSubmit) {
this.equipmentSubmit = equipmentSubmit;
}
public String getSql_queryStatusCode() {
return sql_queryStatusCode;
}
public void setSql_queryStatusCode(String sql_queryStatusCode) {
this.sql_queryStatusCode = sql_queryStatusCode;
}
public String getSql_updateLastTrack() {
return sql_updateLastTrack;
}
public void setSql_updateLastTrack(String sql_updateLastTrack) {
this.sql_updateLastTrack = sql_updateLastTrack;
}
public String getSql_updateLastTrackA() {
return sql_updateLastTrackA;
}
public void setSql_updateLastTrackA(String sql_updateLastTrackA) {
this.sql_updateLastTrackA = sql_updateLastTrackA;
}
public String getSql_updateLastTrackLine() {
return sql_updateLastTrackLine;
}
public void setSql_updateLastTrackLine(String sql_updateLastTrackLine) {
this.sql_updateLastTrackLine = sql_updateLastTrackLine;
}
public String getSql_updateLastTrackALine() {
return sql_updateLastTrackALine;
}
public void setSql_updateLastTrackALine(String sql_updateLastTrackALine) {
this.sql_updateLastTrackALine = sql_updateLastTrackALine;
}
public String getSql_updateVehicleLineStatus() {
return sql_updateVehicleLineStatus;
}
public void setSql_updateVehicleLineStatus(String sql_updateVehicleLineStatus) {
this.sql_updateVehicleLineStatus = sql_updateVehicleLineStatus;
}
public String getSql_UpdateLastTrackISonLine() {
return sql_UpdateLastTrackISonLine;
}
public void setSql_UpdateLastTrackISonLine(String sql_UpdateLastTrackISonLine) {
this.sql_UpdateLastTrackISonLine = sql_UpdateLastTrackISonLine;
}
public String getSql_cacheAllVehicleStatus() {
return sql_cacheAllVehicleStatus;
}
public void setSql_cacheAllVehicleStatus(String sql_cacheAllVehicleStatus) {
this.sql_cacheAllVehicleStatus = sql_cacheAllVehicleStatus;
}
public String getSql_initAllVehilceCache() {
return sql_initAllVehilceCache;
}
public void setSql_initAllVehilceCache(String sql_initAllVehilceCache) {
this.sql_initAllVehilceCache = sql_initAllVehilceCache;
}
public String getSql_update3GPhotoVehicleInfo() {
return sql_update3GPhotoVehicleInfo;
}
public void setSql_update3GPhotoVehicleInfo(String sql_update3GPhotoVehicleInfo) {
this.sql_update3GPhotoVehicleInfo = sql_update3GPhotoVehicleInfo;
}
public String getSql_updateVehicle() {
return sql_updateVehicle;
}
public void setSql_updateVehicle(String sql_updateVehicle) {
this.sql_updateVehicle = sql_updateVehicle;
}
public String getSql_update3GVehicle() {
return sql_update3GVehicle;
}
public void setSql_update3GVehicle(String sql_update3GVehicle) {
this.sql_update3GVehicle = sql_update3GVehicle;
}
public String getSql_queryVehicleOrgMap() {
return sql_queryVehicleOrgMap;
}
public void setSql_queryVehicleOrgMap(String sql_queryVehicleOrgMap) {
this.sql_queryVehicleOrgMap = sql_queryVehicleOrgMap;
}
public String getSql_queryOrgAlarmCodeMap() {
return sql_queryOrgAlarmCodeMap;
}
public void setSql_queryOrgAlarmCodeMap(String sql_queryOrgAlarmCodeMap) {
this.sql_queryOrgAlarmCodeMap = sql_queryOrgAlarmCodeMap;
}
}
|
[
"zhangjunfang0505@163.com"
] |
zhangjunfang0505@163.com
|
9d91eb9ff4ec43e0c00b2f132697d14a3ff51504
|
fb81bb35a07273a24311bfa1004f22c2ed8d755f
|
/WEB-INF/src/com/krishagni/catissueplus/core/common/events/MessageLogCriteria.java
|
55b4661853a3c19813f7fc90d8d1647ab28bbd56
|
[
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
krishagni/openspecimen
|
8f3381481ce5afc0e0096822510f3fcf4fe1a67f
|
25035133d946d3c15f18773172a6df4b0b9c2c7b
|
refs/heads/master
| 2023-08-20T16:27:13.708738
| 2023-08-16T12:28:05
| 2023-08-16T12:28:05
| 22,343,235
| 56
| 62
|
BSD-3-Clause
| 2023-03-31T16:22:21
| 2014-07-28T13:23:37
|
Java
|
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
package com.krishagni.catissueplus.core.common.events;
import java.util.Date;
import java.util.List;
import com.krishagni.catissueplus.core.common.domain.MessageLog;
public class MessageLogCriteria extends AbstractListCriteria<MessageLogCriteria> {
private String externalApp;
private List<String> msgTypes;
private Integer maxRetries;
private Date fromDate;
private Date toDate;
private MessageLog.ProcessStatus status;
@Override
public MessageLogCriteria self() {
return this;
}
public String externalApp() {
return externalApp;
}
public MessageLogCriteria externalApp(String externalApp) {
this.externalApp = externalApp;
return self();
}
public List<String> msgTypes() {
return msgTypes;
}
public MessageLogCriteria msgTypes(List<String> msgTypes) {
this.msgTypes = msgTypes;
return self();
}
public Integer maxRetries() {
return maxRetries;
}
public MessageLogCriteria maxRetries(Integer maxRetries) {
this.maxRetries = maxRetries;
return self();
}
public Date fromDate() {
return fromDate;
}
public MessageLogCriteria fromDate(Date fromDate) {
this.fromDate = fromDate;
return self();
}
public Date toDate() {
return toDate;
}
public MessageLogCriteria toDate(Date toDate) {
this.toDate = toDate;
return self();
}
public MessageLog.ProcessStatus processStatus() {
return status;
}
public MessageLogCriteria processStatus(MessageLog.ProcessStatus status) {
this.status = status;
return self();
}
}
|
[
"vinayakapawar@gmail.com"
] |
vinayakapawar@gmail.com
|
a979a741248103393be508c4a034da2ed1caeca0
|
09db9e6757d586f541d9bec52ba949b413132296
|
/src/main/java/com/cn/tianxia/admin/sevice/txdata/RoleService.java
|
3b4e9641a3e8b67ed8243a9fdedd0ddec9e56f82
|
[] |
no_license
|
xfearless1201/tx-admin
|
ab5425e801dd186a0cbc9a65e1805086af597882
|
fac547a55e510529fc866af310952b457f193f6c
|
refs/heads/master
| 2020-05-16T05:17:40.658753
| 2019-04-22T15:03:19
| 2019-04-22T15:03:19
| 182,810,711
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 293
|
java
|
package com.cn.tianxia.admin.sevice.txdata;
import com.cn.tianxia.admin.model.txdata.Role;
public interface RoleService {
int deleteByPrimaryKey(Long id);
int insertSelective(Role record);
Role selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Role record);
}
|
[
"xfearless1201@gmail.com"
] |
xfearless1201@gmail.com
|
1652a673f3b9b413c19373f7f333434e46dbd38c
|
c8688db388a2c5ac494447bac90d44b34fa4132c
|
/sources/com/google/android/gms/internal/ads/ua0.java
|
a1bcc962dbdcc7605f128762e01ed3b23499604e
|
[] |
no_license
|
mred312/apk-source
|
98dacfda41848e508a0c9db2c395fec1ae33afa1
|
d3ca7c46cb8bf701703468ddc88f25ba4fb9d975
|
refs/heads/master
| 2023-03-06T05:53:50.863721
| 2021-02-23T13:34:20
| 2021-02-23T13:34:20
| 341,481,669
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,953
|
java
|
package com.google.android.gms.internal.ads;
import java.util.ArrayDeque;
import java.util.Iterator;
import java.util.NoSuchElementException;
/* compiled from: com.google.android.gms:play-services-gass@@19.5.0 */
final class ua0 implements Iterator<s80> {
/* renamed from: a */
private final ArrayDeque<ta0> f11316a;
/* renamed from: b */
private s80 f11317b;
private ua0(zzeiu zzeiu) {
if (zzeiu instanceof ta0) {
ta0 ta0 = (ta0) zzeiu;
ArrayDeque<ta0> arrayDeque = new ArrayDeque<>(ta0.zzbfu());
this.f11316a = arrayDeque;
arrayDeque.push(ta0);
this.f11317b = m7040a(ta0.f11157d);
return;
}
this.f11316a = null;
this.f11317b = (s80) zzeiu;
}
/* renamed from: a */
private final s80 m7040a(zzeiu zzeiu) {
while (zzeiu instanceof ta0) {
ta0 ta0 = (ta0) zzeiu;
this.f11316a.push(ta0);
zzeiu = ta0.f11157d;
}
return (s80) zzeiu;
}
public final boolean hasNext() {
return this.f11317b != null;
}
public final /* synthetic */ Object next() {
s80 s80;
s80 s802 = this.f11317b;
if (s802 != null) {
while (true) {
ArrayDeque<ta0> arrayDeque = this.f11316a;
if (arrayDeque != null && !arrayDeque.isEmpty()) {
s80 = m7040a(this.f11316a.pop().f11158e);
if (!s80.isEmpty()) {
break;
}
} else {
s80 = null;
}
}
s80 = null;
this.f11317b = s80;
return s802;
}
throw new NoSuchElementException();
}
public final void remove() {
throw new UnsupportedOperationException();
}
/* synthetic */ ua0(zzeiu zzeiu, sa0 sa0) {
this(zzeiu);
}
}
|
[
"mred312@gmail.com"
] |
mred312@gmail.com
|
4b6b16b45b93783b17b23b345350e20682d9a8bb
|
cdcadc51405e2fde80ed89bf80453a29fe0f31c6
|
/swords-combat/src/main/java/com/morethanheroic/swords/combat/service/calc/damage/event/after/domain/AfterDamageEventContext.java
|
5718758d3923f08752f3b1034b99a87c28c48e76
|
[
"MIT"
] |
permissive
|
daggers-and-sorcery/daggers-and-sorcery-backend
|
c04ee72a053739f22d0ba98785387594e48e4912
|
96ea5919e6becf5c7cdb888fb2ec1eafba2b0aac
|
refs/heads/master
| 2023-08-15T04:34:36.892695
| 2021-09-27T14:23:30
| 2021-09-27T14:23:30
| 410,900,013
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 550
|
java
|
package com.morethanheroic.swords.combat.service.calc.damage.event.after.domain;
import com.morethanheroic.swords.combat.entity.domain.CombatEntity;
import com.morethanheroic.swords.combat.service.event.damage.domain.DamageType;
import lombok.Builder;
import lombok.Getter;
@Getter
@Builder
public class AfterDamageEventContext {
private final CombatEntity attacker;
private final CombatEntity defender;
private final DamageType damageType;
/**
* Contains how much damage was done.
*/
private final int damageDone;
}
|
[
"laxika91@gmail.com"
] |
laxika91@gmail.com
|
070d1d4b3eb959ad4f533b6bebf180ee717a055b
|
c4c321beed135313d811fc350322bf38bddfa82c
|
/common-library/src/main/java/com/jinyi/ihome/module/feedback/FeedbackReplyParam.java
|
9ac29e688d7298dc53dc9323022814a32187136f
|
[] |
no_license
|
hupulin/joyProperty
|
ebf97ef80d28ec03de0df9bb13afdaf02ea540de
|
a0336ca57b44a997bde6299f2c2e05deea6a1555
|
refs/heads/master
| 2021-09-04T11:35:18.404336
| 2017-12-27T02:00:23
| 2017-12-27T02:00:23
| 113,118,715
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,809
|
java
|
/* */ package com.jinyi.ihome.module.feedback;
/* */
/* */ import java.io.Serializable;
/* */
/* */ public class FeedbackReplyParam
/* */ implements Serializable
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ private String feedbackSid;
/* */ private String feedbackReply;
/* */ private String replyUser;
/* */
/* */ public boolean equals(Object o)
/* */ {
/* 12 */ if (o == this) return true; if (!(o instanceof FeedbackReplyParam)) return false; FeedbackReplyParam other = (FeedbackReplyParam)o; if (!other.canEqual(this)) return false; Object this$feedbackSid = getFeedbackSid(); Object other$feedbackSid = other.getFeedbackSid(); if (this$feedbackSid == null ? other$feedbackSid != null : !this$feedbackSid.equals(other$feedbackSid)) return false; Object this$feedbackReply = getFeedbackReply(); Object other$feedbackReply = other.getFeedbackReply(); if (this$feedbackReply == null ? other$feedbackReply != null : !this$feedbackReply.equals(other$feedbackReply)) return false; Object this$replyUser = getReplyUser(); Object other$replyUser = other.getReplyUser(); return this$replyUser == null ? other$replyUser == null : this$replyUser.equals(other$replyUser); }
/* 12 */ protected boolean canEqual(Object other) { return other instanceof FeedbackReplyParam; }
/* 12 */ public int hashCode() { int PRIME = 59; int result = 1; Object $feedbackSid = getFeedbackSid(); result = result * 59 + ($feedbackSid == null ? 0 : $feedbackSid.hashCode()); Object $feedbackReply = getFeedbackReply(); result = result * 59 + ($feedbackReply == null ? 0 : $feedbackReply.hashCode()); Object $replyUser = getReplyUser(); result = result * 59 + ($replyUser == null ? 0 : $replyUser.hashCode()); return result; }
/* 12 */ public String toString() { return "FeedbackReplyParam(feedbackSid=" + getFeedbackSid() + ", feedbackReply=" + getFeedbackReply() + ", replyUser=" + getReplyUser() + ")"; }
/* */
/* */
/* */ public void setFeedbackSid(String feedbackSid)
/* */ {
/* 17 */ this.feedbackSid = feedbackSid; }
/* 18 */ public String getFeedbackSid() { return this.feedbackSid; }
/* */
/* */
/* */ public void setFeedbackReply(String feedbackReply)
/* */ {
/* 24 */ this.feedbackReply = feedbackReply; }
/* 25 */ public String getFeedbackReply() { return this.feedbackReply; }
/* */
/* */
/* */ public void setReplyUser(String replyUser)
/* */ {
/* 31 */ this.replyUser = replyUser; }
/* 32 */ public String getReplyUser() { return this.replyUser; }
/* */
/* */ }
/* Location: C:\Users\xzz\Desktop\新建文件夹\ihome-to-1.0.jar
* Qualified Name: com.jinyi.ihome.module.feedback.FeedbackReplyParam
* JD-Core Version: 0.6.2
*/
|
[
"hpl635768909@gmail.com"
] |
hpl635768909@gmail.com
|
8885a9d7f2da244a04b92d4af1065d5a2086983b
|
e1dbbd1c0289059bcc7426e30ab41c88221eff11
|
/modules/cae/cae-base-lib/src/main/java/com/coremedia/blueprint/cae/web/taglib/TruncateTag.java
|
20e1e9aac7e3f85fda2cd943441befef82f0a18e
|
[] |
no_license
|
HongBitgrip/blueprint
|
9ed278a8df33dbe7ec2de7489592f704e408d897
|
14c4de20defd2918817f91174bdbdcc0b9541e2d
|
refs/heads/master
| 2020-03-25T23:15:24.580400
| 2018-08-17T14:44:43
| 2018-08-17T14:44:43
| 144,267,625
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,648
|
java
|
package com.coremedia.blueprint.cae.web.taglib;
import com.coremedia.objectserver.view.ViewException;
import com.coremedia.common.util.WordAbbreviator;
import com.coremedia.xml.Markup;
import com.coremedia.xml.MarkupUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
/**
* Helper to truncate a {@link com.coremedia.xml.Markup} or {@link java.lang.String} to a certain amount of characters.
* For JSP Taglibs.
* For Freemarker use {@link BlueprintFreemarkerFacade} instead.
*/
public class TruncateTag extends TagSupport {
private static final long serialVersionUID = 2047875060529051489L;
private static final Logger LOG = LoggerFactory.getLogger(TruncateTag.class);
private static final int DEFAULT_LENGTH = 30;
private Object value;
private int maxLength = DEFAULT_LENGTH;
private String var = null;
/**
* Sets the {@link com.coremedia.xml.Markup} or {@link java.lang.String} which will be truncated
*
* @param value the {@link com.coremedia.xml.Markup} or {@link java.lang.String} which will be truncated
*/
public void setValue(Object value) {
this.value = value;
}
public void setVar(String var) {
this.var = var;
}
/**
* Sets the amount of characters
*
* @param maxLength the amount of characters
*/
public void setMaxLength(int maxLength) {
this.maxLength = maxLength;
}
@Override
public int doEndTag() throws JspException {
if (value != null) {
String result;
if (value instanceof String) {
result = abbreviateString((String) value);
} else if (value instanceof Markup) {
result = abbreviateMarkup((Markup) value);
} else {
// should not happen
LOG.error("Unknown object-type for abbreviation: " + value);
throw new UnsupportedOperationException("Cannot abbreviate value " + value + " of Type" + value.getClass().toString());
}
writeResult(result);
}
return EVAL_PAGE;
}
private String abbreviateMarkup(Markup markup) {
return abbreviateString(MarkupUtil.asPlainText(markup));
}
private String abbreviateString(String value) {
WordAbbreviator abbreviator = new WordAbbreviator();
return abbreviator.abbreviateString(value, maxLength);
}
protected void writeResult(String result) {
try {
if (var == null) {
pageContext.getOut().write(result);
} else {
pageContext.setAttribute(var, result);
}
} catch (IOException e) {
throw new ViewException(e.getMessage(), e);
}
}
}
|
[
"hong.nguyen@bitgrip.de"
] |
hong.nguyen@bitgrip.de
|
44ecf0c91ffdec6d4d435a9d2ce7ebdf84939587
|
4910584c1a385ce5e90fff8ae41e26d6a3b4c03e
|
/weixin4j-base/src/main/java/com/foxinmy/weixin4j/http/apache/content/ContentBody.java
|
a73774869301050a6f01de2d42d14547391ae5d1
|
[
"Apache-2.0"
] |
permissive
|
foxinmy/weixin4j
|
4ac637cd821b1306dace7d87618def3e22d77c70
|
59ef513e1af61cfe2a3eb8269ae53a0538efc278
|
refs/heads/develop
| 2023-08-02T14:05:26.893992
| 2023-04-07T16:10:55
| 2023-04-07T16:10:55
| 19,458,722
| 955
| 528
|
NOASSERTION
| 2023-04-07T16:10:56
| 2014-05-05T14:31:29
|
Java
|
UTF-8
|
Java
| false
| false
| 2,727
|
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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package com.foxinmy.weixin4j.http.apache.content;
import java.io.IOException;
import java.io.OutputStream;
import com.foxinmy.weixin4j.http.MimeType;
/**
*
* @since 4.0
*/
public interface ContentBody {
/**
* Returns the body descriptors MIME type.
*
* @return The MIME type, which has been parsed from the content-type
* definition. Must not be null, but "text/plain", if no
* content-type was specified.
*/
MimeType getMimeType();
/**
* <p>
* The body descriptors character set, defaulted appropriately for the MIME
* type.
* </p>
* <p>
* For {@code TEXT} types, this will be defaulted to {@code us-ascii}. For
* other types, when the charset parameter is missing this property will be
* null.
* </p>
*
* @return Character set, which has been parsed from the content-type
* definition. Not null for {@code TEXT} types, when unset will be
* set to default {@code us-ascii}. For other types, when unset,
* null will be returned.
*/
String getCharset();
/**
* Returns the body descriptors transfer encoding.
*
* @return The transfer encoding. Must not be null, but "7bit", if no
* transfer-encoding was specified.
*/
String getTransferEncoding();
/**
* Returns the body descriptors content-length.
*
* @return Content length, if known, or -1, to indicate the absence of a
* content-length header.
*/
long getContentLength();
String getFilename();
void writeTo(OutputStream out) throws IOException;
}
|
[
"foxinmy@gmail.com"
] |
foxinmy@gmail.com
|
b69e4f059b7f44c859a92957597d4d038efe0f61
|
b2d7b0517bc16e6a0cf281b1424178413b55b947
|
/java-web-project/src04/main/java/com/eomcs/lms/service/impl/BoardServiceImpl.java
|
0136741341ac4596e37c537878efdf53acf764dc
|
[] |
no_license
|
gwanghosong/bitcamp-java-2018-12
|
5ea3035c1beb5b9ce7c5348503daf5ed72304dc9
|
8782553c4505c5943db0009b6a2ebf742c84e38c
|
refs/heads/master
| 2021-08-06T20:30:07.181054
| 2019-06-26T16:18:50
| 2019-06-26T16:18:50
| 163,650,672
| 0
| 0
| null | 2020-04-30T06:28:29
| 2018-12-31T08:00:40
|
Java
|
UTF-8
|
Java
| false
| false
| 2,315
|
java
|
package com.eomcs.lms.service.impl;
import java.util.List;
import org.springframework.stereotype.Service;
import com.eomcs.lms.dao.BoardDao;
import com.eomcs.lms.domain.Board;
import com.eomcs.lms.service.BoardService;
// 스프링 IoC 컨테이너가 관리하는 객체 중에서
// 비즈니스 로직을 담당하는 객체는
// 특별히 그 역할을 표시하기 위해 @Component 대신에 @Service 애노테이션을 붙인다.
// 이렇게 애노테이션으로 구분해두면 나중에 애노테이션으로 객체를 찾을 수 있다.
@Service
public class BoardServiceImpl implements BoardService {
BoardDao boardDao;
public BoardServiceImpl(BoardDao boardDao) {
this.boardDao = boardDao;
}
// 비즈니스 객체에서 메서드 이름은 가능한 업무 용어를 사용한다.
@Override
public List<Board> list() {
// 게시물 목록을 가져오는 경우 서비스 객체에서 특별하게 할 일이 없다.
// 그럼에도 불구하고 Command 객체와 DAO사이에 Service 객체를 두기로 했으면
// 일관성을 위해 Command 객체는 항상 Service 객체를 통해 데이터를 다뤄야 한다.
return boardDao.findAll();
}
@Override
public int add(Board board) {
// 이 메서드도 하는 일이 없다.
// 그래도 일관된 프로그래밍을 위해 커맨드 객체는 항상 Service 객체를 경유하여 DAO를 사용해야 한다.
return boardDao.insert(board);
}
@Override
public Board get(int no) {
// 이제 조금 Service 객체가 뭔가를 한다.
// Command 객체는 데이터를 조회한 후 조회수를 높이는 것에 대해 신경 쓸 필요가 없어졌다.
Board board = boardDao.findByNo(no);
if (board != null) {
boardDao.increaseCount(no);
}
return board;
}
@Override
public int update(Board board) {
// 이 메서드도 별로 할 일이 없다.
// 그냥 DAO를 실행시키고 리턴 값을 그대로 전달한다.
return boardDao.update(board);
}
@Override
public int delete(int no) {
// 이 메서드도 그냥 DAO에 명령을 전달하는 일을 한다.
// 그래도 항상 Command 객체는 이 Service 객체를 통해서 데이터를 처리해야 한다.
return boardDao.delete(no);
}
}
|
[
"gwanghosong91@gmail.com"
] |
gwanghosong91@gmail.com
|
8b92b857f0f73947fe4390e322e2272a75ab1184
|
827d5bec543567cf5464ec9a177d74825a100359
|
/trunk/app/src/main/java/mx/com/factmex/app/server/sqlmaps/dao/CTipoContactoDAOImpl.java
|
70770a5814bc4298d0105e423b8b0b88a91933ec
|
[] |
no_license
|
BGCX067/factmex-svn-to-git
|
da6dbbe9a4206165425087779b188cb078673689
|
586b44df85ea03c315c76afa068e933deecbf3cb
|
refs/heads/master
| 2016-09-01T08:55:03.136192
| 2015-12-28T14:46:01
| 2015-12-28T14:46:01
| 48,871,750
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,029
|
java
|
package mx.com.factmex.app.server.sqlmaps.dao;
import com.ibatis.sqlmap.client.SqlMapClient;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;
import mx.com.factmex.app.server.sqlmaps.model.CTipoContacto;
import mx.com.factmex.app.server.sqlmaps.model.CTipoContactoExample;
public class CTipoContactoDAOImpl implements CTipoContactoDAO {
/**
* This field was generated by Apache iBATIS ibator. This field corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
private SqlMapClient sqlMapClient;
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public CTipoContactoDAOImpl(SqlMapClient sqlMapClient) {
super();
this.sqlMapClient = sqlMapClient;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int countByExample(CTipoContactoExample example) throws SQLException {
Integer count = (Integer) sqlMapClient.queryForObject(
"C_TIPO_CONTACTO.ibatorgenerated_countByExample", example);
return count.intValue();
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int deleteByExample(CTipoContactoExample example)
throws SQLException {
int rows = sqlMapClient.delete(
"C_TIPO_CONTACTO.ibatorgenerated_deleteByExample", example);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int deleteByPrimaryKey(String idTipoContacto) throws SQLException {
CTipoContacto key = new CTipoContacto();
key.setIdTipoContacto(idTipoContacto);
int rows = sqlMapClient.delete(
"C_TIPO_CONTACTO.ibatorgenerated_deleteByPrimaryKey", key);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public void insert(CTipoContacto record) throws SQLException {
sqlMapClient.insert("C_TIPO_CONTACTO.ibatorgenerated_insert", record);
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public void insertSelective(CTipoContacto record) throws SQLException {
sqlMapClient.insert("C_TIPO_CONTACTO.ibatorgenerated_insertSelective",
record);
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public List selectByExample(CTipoContactoExample example)
throws SQLException {
List list = sqlMapClient.queryForList(
"C_TIPO_CONTACTO.ibatorgenerated_selectByExample", example);
return list;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public CTipoContacto selectByPrimaryKey(String idTipoContacto)
throws SQLException {
CTipoContacto key = new CTipoContacto();
key.setIdTipoContacto(idTipoContacto);
CTipoContacto record = (CTipoContacto) sqlMapClient.queryForObject(
"C_TIPO_CONTACTO.ibatorgenerated_selectByPrimaryKey", key);
return record;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int updateByExampleSelective(CTipoContacto record,
CTipoContactoExample example) throws SQLException {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = sqlMapClient.update(
"C_TIPO_CONTACTO.ibatorgenerated_updateByExampleSelective",
parms);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int updateByExample(CTipoContacto record,
CTipoContactoExample example) throws SQLException {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = sqlMapClient.update(
"C_TIPO_CONTACTO.ibatorgenerated_updateByExample", parms);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int updateByPrimaryKeySelective(CTipoContacto record)
throws SQLException {
int rows = sqlMapClient.update(
"C_TIPO_CONTACTO.ibatorgenerated_updateByPrimaryKeySelective",
record);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
public int updateByPrimaryKey(CTipoContacto record) throws SQLException {
int rows = sqlMapClient.update(
"C_TIPO_CONTACTO.ibatorgenerated_updateByPrimaryKey", record);
return rows;
}
/**
* This class was generated by Apache iBATIS ibator. This class corresponds to the database table C_TIPO_CONTACTO
* @ibatorgenerated Tue Oct 19 12:54:15 CDT 2010
*/
private static class UpdateByExampleParms extends CTipoContactoExample {
private Object record;
public UpdateByExampleParms(Object record, CTipoContactoExample example) {
super(example);
this.record = record;
}
public Object getRecord() {
return record;
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
a71b9a53cbf55041b47f2d028862ffb6a6743f7a
|
9cde1bef40a72eaa90ad84fc5146ab49fac9e063
|
/fess-db-h2/src/main/java/org/codelibs/fess/db/cbean/CrawlingSessionInfoCB.java
|
5ecaf7dd4b9d31f11ae3aaf1c16a97d9bc8a7fdf
|
[] |
no_license
|
SocialSkyInc/fess-db
|
307aa23c812eb5f6cd0c85c1e9a90117f2a72932
|
4e3e3e4dd6f7818edd2e02fc43bb97d91e3dac5a
|
refs/heads/master
| 2021-05-11T03:00:23.043498
| 2015-03-29T11:22:29
| 2015-03-29T11:22:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 367
|
java
|
package org.codelibs.fess.db.cbean;
import org.codelibs.fess.db.cbean.bs.BsCrawlingSessionInfoCB;
/**
* The condition-bean of CRAWLING_SESSION_INFO.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class CrawlingSessionInfoCB extends BsCrawlingSessionInfoCB {
}
|
[
"shinsuke@yahoo.co.jp"
] |
shinsuke@yahoo.co.jp
|
c566b61f4b4f54dbe7ac8210decddb219185b5ae
|
a6923e1e56cdbc8bc354cba3e4f699c5f132ae1a
|
/api/pms-da/pms-da-model/src/main/java/com/fenlibao/model/pms/da/reward/form/RedPacketForm.java
|
f8e8e79f0339b0cf3a51853ca63cdfd8189d5bcd
|
[] |
no_license
|
mddonly/modules
|
851b8470069aca025ea63db4b79ad281e384216f
|
22dd100304e86a17bea733a8842a33123f892312
|
refs/heads/master
| 2020-03-28T03:26:51.960201
| 2018-05-11T02:24:37
| 2018-05-11T02:24:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 191
|
java
|
package com.fenlibao.model.pms.da.reward.form;
import com.fenlibao.model.pms.da.reward.RedPacket;
/**
* Created by Bogle on 2015/12/1.
*/
public class RedPacketForm extends RedPacket {
}
|
[
"13632415004@163.com"
] |
13632415004@163.com
|
3b5aec085670fb9a6a5d0e1f7139263995ed3ed4
|
d61cbe04b46e3480d5f2acf356f8ccdbab28dbc7
|
/OpenWebinars/Desarrollador Spring/Curso de seguridad en tu API REST con Spring Boot/30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/dto/GetPedidoDto.java
|
6c0af0bbb727737f5036c4f128556d2b94f228c9
|
[] |
no_license
|
decalion/Formaciones-Platzi-Udemy
|
d479548c50f3413eba5bad3d01bdd6a33ba75f60
|
3180d5062d847cc466d4a614863a731189137e50
|
refs/heads/master
| 2022-11-30T18:59:39.796599
| 2021-06-08T20:11:18
| 2021-06-08T20:11:18
| 200,000,005
| 1
| 2
| null | 2022-11-24T09:11:48
| 2019-08-01T07:27:00
|
Java
|
UTF-8
|
Java
| false
| false
| 910
|
java
|
package com.openwebinars.rest.dto;
import java.time.LocalDateTime;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GetPedidoDto {
private String fullName;
private String email;
private String avatar;
@JsonFormat(shape = Shape.STRING, pattern = "dd/MM/yyyy HH:mm:ss")
private LocalDateTime fecha;
private Set<GetLineaPedidoDto> lineas;
private float total;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public static class GetLineaPedidoDto {
private String productoNombre;
private int cantidad;
private float precioUnitario;
private float subTotal;
}
}
|
[
"icaballerohernandez@gmail.com"
] |
icaballerohernandez@gmail.com
|
fa48242450e4aecbb924b996ea25b63e0e3985de
|
0ad51dde288a43c8c2216de5aedcd228e93590ac
|
/com/vmware/converter/RetrieveResult.java
|
e1b13c0a9a8b6ece17090cac0de50479a6c170f4
|
[] |
no_license
|
YujiEda/converter-sdk-java
|
61c37b2642f3a9305f2d3d5851c788b1f3c2a65f
|
bcd6e09d019d38b168a9daa1471c8e966222753d
|
refs/heads/master
| 2020-04-03T09:33:38.339152
| 2019-02-11T15:19:04
| 2019-02-11T15:19:04
| 155,151,917
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,480
|
java
|
/**
* RetrieveResult.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.vmware.converter;
public class RetrieveResult extends com.vmware.converter.DynamicData implements java.io.Serializable {
private java.lang.String token;
private com.vmware.converter.ObjectContent[] objects;
public RetrieveResult() {
}
public RetrieveResult(
java.lang.String token,
com.vmware.converter.ObjectContent[] objects) {
this.token = token;
this.objects = objects;
}
/**
* Gets the token value for this RetrieveResult.
*
* @return token
*/
public java.lang.String getToken() {
return token;
}
/**
* Sets the token value for this RetrieveResult.
*
* @param token
*/
public void setToken(java.lang.String token) {
this.token = token;
}
/**
* Gets the objects value for this RetrieveResult.
*
* @return objects
*/
public com.vmware.converter.ObjectContent[] getObjects() {
return objects;
}
/**
* Sets the objects value for this RetrieveResult.
*
* @param objects
*/
public void setObjects(com.vmware.converter.ObjectContent[] objects) {
this.objects = objects;
}
public com.vmware.converter.ObjectContent getObjects(int i) {
return this.objects[i];
}
public void setObjects(int i, com.vmware.converter.ObjectContent _value) {
this.objects[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RetrieveResult)) return false;
RetrieveResult other = (RetrieveResult) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.token==null && other.getToken()==null) ||
(this.token!=null &&
this.token.equals(other.getToken()))) &&
((this.objects==null && other.getObjects()==null) ||
(this.objects!=null &&
java.util.Arrays.equals(this.objects, other.getObjects())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getToken() != null) {
_hashCode += getToken().hashCode();
}
if (getObjects() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getObjects());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getObjects(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RetrieveResult.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25", "RetrieveResult"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("token");
elemField.setXmlName(new javax.xml.namespace.QName("urn:vim25", "token"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("objects");
elemField.setXmlName(new javax.xml.namespace.QName("urn:vim25", "objects"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:vim25", "ObjectContent"));
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"yuji_eda@dwango.co.jp"
] |
yuji_eda@dwango.co.jp
|
79f18e3560ccf25172414fa8f4d1be2d766dfc1a
|
326c1d6b502a4d8fa5f6e293197b0834d407ed87
|
/app/src/main/java/com/wf/irulu/component/qiniu/utils/UrlSafeBase64.java
|
cafb0376d31a5597a905e1485883d3fde0c67fc0
|
[] |
no_license
|
dtwdtw/IruluNoRong
|
3cf0e883fcd8a48f347e4d1ccde1423aa337c8b3
|
7fd4e34517e9c3eba0c228b20256bd1afdaa29f2
|
refs/heads/master
| 2021-01-12T16:37:09.994102
| 2016-10-20T03:02:14
| 2016-10-20T03:02:14
| 71,419,566
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,135
|
java
|
package com.wf.irulu.component.qiniu.utils;
import java.io.UnsupportedEncodingException;
import android.util.Base64;
import com.wf.irulu.component.qiniu.common.Constants;
/**
* URL安全的Base64编码和解码
*/
public final class UrlSafeBase64 {
/**
* 编码字符串
*
* @param data 待编码字符串
* @return 结果字符串
*/
public static String encodeToString(String data) {
try {
return encodeToString(data.getBytes(Constants.UTF_8));
} catch (UnsupportedEncodingException e) {
//never in
e.printStackTrace();
}
return null;
}
/**
* 编码数据
*
* @param data 字节数组
* @return 结果字符串
*/
public static String encodeToString(byte[] data) {
return Base64.encodeToString(data, Base64.URL_SAFE | Base64.NO_WRAP);
}
/**
* 解码数据
*
* @param data 编码过的字符串
* @return 原始数据
*/
public static byte[] decode(String data) {
return Base64.decode(data, Base64.URL_SAFE | Base64.NO_WRAP);
}
}
|
[
"dtw@dtw.local"
] |
dtw@dtw.local
|
8d3d26c0279810df3e76dedcbceb8b7fc9dfc155
|
74ca72a287d13b4a677069f6a82998e684e5af81
|
/dsj_house/dsj-developer-back/src/main/java/com/dsj/data/auth/JWTTokenAuthFilter.java
|
615267d4ee644dd3a41a7c1a2fc6f4720318b895
|
[] |
no_license
|
tomdev2008/dsj_house
|
5d8187b3fca63bd2fc83ea781ea9cda0a91943a2
|
988ab003b1fec4dfb12d3712adde58a4abef067c
|
refs/heads/master
| 2020-03-29T05:17:18.866087
| 2017-12-01T11:53:58
| 2017-12-01T11:53:58
| 149,575,972
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,694
|
java
|
package com.dsj.data.auth;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.filter.OncePerRequestFilter;
import com.dsj.modules.system.service.UserService;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
/**
* @author: wyt
*/
public class JWTTokenAuthFilter extends OncePerRequestFilter {
private static List<Pattern> AUTH_ROUTES = new ArrayList<>();
private static List<String> NO_AUTH_ROUTES = new ArrayList<>();
public static final String JWT_KEY = "JWT-TOKEN-SECRET";
static {
AUTH_ROUTES.add(Pattern.compile("/api/*"));
NO_AUTH_ROUTES.add("/api/user/authenticate");
NO_AUTH_ROUTES.add("/api/user/register");
}
private Logger LOG = LoggerFactory.getLogger(JWTTokenAuthFilter.class);
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
FilterChain filterChain) throws ServletException, IOException {
String authorizationHeader = request.getHeader("authorization");
String authenticationHeader = request.getHeader("authentication");
String route = request.getRequestURI();
// no auth route matching
boolean needsAuthentication = false;
for (Pattern p : AUTH_ROUTES) {
if (p.matcher(route).matches()) {
needsAuthentication = true;
break;
}
}
if(route.startsWith("/api/")) {
needsAuthentication = true;
}
if (NO_AUTH_ROUTES.contains(route)) {
needsAuthentication = false;
}
// Checking whether the current route needs to be authenticated
if (needsAuthentication) {
// Check for authorization header presence
String authHeader = null;
if (authorizationHeader == null || authorizationHeader.equalsIgnoreCase("")) {
if (authenticationHeader == null || authenticationHeader.equalsIgnoreCase("")) {
authHeader = null;
} else {
authHeader = authenticationHeader;
LOG.info("authentication: " + authenticationHeader);
}
} else {
authHeader = authorizationHeader;
LOG.info("authorization: " + authorizationHeader);
}
if (StringUtils.isBlank(authHeader) || !authHeader.startsWith("Bearer ")) {
throw new AuthCredentialsMissingException("Missing or invalid Authorization header.");
}
final String token = authHeader.substring(7); // The part after "Bearer "
try {
final Claims claims = Jwts.parser().setSigningKey(JWT_KEY)
.parseClaimsJws(token).getBody();
request.setAttribute("claims", claims);
// Now since the authentication process if finished
// move the request forward
filterChain.doFilter(request, response);
} catch (final Exception e) {
throw new AuthenticationFailedException("Invalid token. Cause:"+e.getMessage());
}
} else {
filterChain.doFilter(request, response);
}
}
}
|
[
"940678055@qq.com"
] |
940678055@qq.com
|
dff388917774907630fbe7030c5fb924d943a17a
|
99c7920038f551b8c16e472840c78afc3d567021
|
/aliyun-java-sdk-aliyuncvc-v5/src/main/java/com/aliyuncs/v5/aliyuncvc/model/v20191030/CreateEvaluationResponse.java
|
2b37422fffd2a449827378eb0a9a1d654283db5a
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk-v5
|
9fa211e248b16c36d29b1a04662153a61a51ec88
|
0ece7a0ba3730796e7a7ce4970a23865cd11b57c
|
refs/heads/master
| 2023-03-13T01:32:07.260745
| 2021-10-18T08:07:02
| 2021-10-18T08:07:02
| 263,800,324
| 4
| 2
|
NOASSERTION
| 2022-05-20T22:01:22
| 2020-05-14T02:58:50
|
Java
|
UTF-8
|
Java
| false
| false
| 1,838
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.v5.aliyuncvc.model.v20191030;
import com.aliyuncs.v5.AcsResponse;
import com.aliyuncs.v5.aliyuncvc.transform.v20191030.CreateEvaluationResponseUnmarshaller;
import com.aliyuncs.v5.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateEvaluationResponse extends AcsResponse {
private String requestId;
private Boolean success;
private String errorCode;
private String message;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public CreateEvaluationResponse getInstance(UnmarshallerContext context) {
return CreateEvaluationResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
b65e3766211fb519cfa0b8b17f300d8dd53ceb00
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/32/32_800ede59cf7459b61a3217bcb3fa7ae7851b78ca/PageExpiredPageTest/32_800ede59cf7459b61a3217bcb3fa7ae7851b78ca_PageExpiredPageTest_t.java
|
d1edb478c56fbdd0310974339f84c53b90735839
|
[] |
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
| 1,949
|
java
|
/*
* Copyright 2009-2010 Carsten Hufe devproof.org
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.devproof.portal.core.module.common.page;
import org.apache.wicket.util.tester.WicketTester;
import org.devproof.portal.test.MockContextLoader;
import org.devproof.portal.test.PortalTestUtil;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.servlet.ServletContext;
/**
* @author Carsten Hufe
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(loader = MockContextLoader.class,
locations = {"classpath:/org/devproof/portal/core/test-datasource.xml" })
public class PageExpiredPageTest {
@Autowired
private ServletContext servletContext;
private WicketTester tester;
@Before
public void setUp() throws Exception {
tester = PortalTestUtil.createWicketTester(servletContext);
}
@After
public void tearDown() throws Exception {
PortalTestUtil.destroy(tester);
}
@Test
public void testRenderDefaultPage() {
tester.startPage(PageExpiredPage.class);
tester.assertRenderedPage(PageExpiredPage.class);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
3c5f0bc628efe96a11d0dad4a72e8382e6ddc83d
|
b2157a476638a1a24cb96eba5bac12fa0722f49e
|
/NewWorkSpace/POMFinalframework/POMFinalframework/src/com/spi/data/ExcelLibrary.java
|
8df1537fa31ba3fa7e8d5d8208d92a2a4d3a4cee
|
[] |
no_license
|
kingshuknandy2016/JavaWorkspace_workspace1
|
c95b94bde683c4778c79c376107401a43ad6c9af
|
fc5817a965c7d2182007e15ac39190b08ef09290
|
refs/heads/master
| 2021-01-24T10:53:43.964388
| 2018-02-26T19:56:56
| 2018-02-26T19:56:56
| 123,069,913
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,728
|
java
|
package com.spi.data;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
public class ExcelLibrary {
public ExcelLibrary(String filePath) {
this.filePath = filePath;
}
String filePath ;
public int getRowCount(String sheetName){
int rowCount = -1;
FileInputStream fis = null;
try {
//Open file in read mode
fis = new FileInputStream(filePath);
//to create a work book
Workbook wb = WorkbookFactory.create(fis);
//get into required sheet
Sheet sh = wb.getSheet(sheetName);
if(sh == null){
//if sheetName is not valid
throw new Exception("Invalid SheetName");
}
//get last row number as row count
rowCount = sh.getLastRowNum();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally {
try {
fis.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return rowCount;
}
public Object getCellData(String sheetName,int rowNum,int cellNum){
Object data = null;
FileInputStream fis = null;
try {
//Open file in read mode
fis = new FileInputStream(filePath);
//to create a work book
Workbook wb = WorkbookFactory.create(fis);
//get into required sheet
Sheet sh = wb.getSheet(sheetName);
if(sh == null){
//if sheetName is not valid
throw new Exception("Invalid SheetName");
}
//get Into Row
Row r = sh.getRow(rowNum);
//get into cell
Cell c = r.getCell(cellNum);
switch(c.getCellType()){
case Cell.CELL_TYPE_STRING: //get String cell value
data = c.getStringCellValue();
break;
case Cell.CELL_TYPE_NUMERIC:data = c.getNumericCellValue();
break;
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally {
try {
fis.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return data;
}
public void writeToCell(String sheetName,int rowNum,int cellNum,String data){
FileInputStream fis = null;
FileOutputStream fos = null;
try {
//Open file in read mode
fis = new FileInputStream(filePath);
//to create a work book
Workbook wb = WorkbookFactory.create(fis);
//get into required sheet
Sheet sh = wb.getSheet(sheetName);
if(sh == null){
//if sheetName is not valid
throw new Exception("Invalid SheetName");
}
//get Into Row
Row r = sh.getRow(rowNum);
//Row rat=sh.c
//create cell
Cell c = r.createCell(cellNum);
c.setCellValue(data);
//open file in write mode
fos = new FileOutputStream(filePath);
//write data to file
wb.write(fos);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally {
try {
fis.close();
fos.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
public Object[][] getSheetDataAsArray(String sheetName,int noOfCols){
Object[][] data = null;
FileInputStream fis = null;
try {
//Open file in read mode
fis = new FileInputStream(filePath);
//to create a work book
Workbook wb = WorkbookFactory.create(fis);
//get into required sheet
Sheet sh = wb.getSheet(sheetName);
if(sh == null){
//if sheetName is not valid
throw new Exception("Invalid SheetName");
}
int rowCount = sh.getLastRowNum();
data = new Object[rowCount][noOfCols];
for(int i = 1;i<=rowCount;i++){
for (int j = 0; j < noOfCols; j++) {
Cell c = sh.getRow(i).getCell(j);
switch (c.getCellType()) {
case Cell.CELL_TYPE_STRING: // get String cell value
data[i - 1][j] = c.getStringCellValue();
break;
case Cell.CELL_TYPE_NUMERIC:
data[i - 1][j] = c.getNumericCellValue();
break;
}
}
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally {
try {
fis.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return data;
}
}
|
[
"kingshuknandy2016@gmail.com"
] |
kingshuknandy2016@gmail.com
|
1fe5e0e947f868a4154e3b49582f20e26836768a
|
4a483c4dfceb83438cd3c58ca2309e647f5ed353
|
/Part 03/part03-Part03_21.PrintNeatly/src/main/java/ArrayPrinter.java
|
87d095b97a7cca9c3d9ed108d638a53cd472ceaa
|
[
"MIT"
] |
permissive
|
cavigna/Mooc-Fi-Java-Programming-I
|
5e93a29bc993af766de6312a1ccc86967bd89f5d
|
3eff3e02674073cb68756b34e2260b3341942778
|
refs/heads/main
| 2023-05-08T15:21:13.819994
| 2021-05-26T21:26:40
| 2021-05-26T21:26:40
| 368,320,863
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 494
|
java
|
public class ArrayPrinter {
public static void main(String[] args) {
// You can test your method here
int[] array = {5, 1, 3, 4, 2};
printNeatly(array);
}
public static void printNeatly(int[] array) {
for (int i = 0; i < array.length; i++){
if(i == array.length -1){
System.out.print(array[i]);
} else{
System.out.print(array[i] + ", ");
}
}
}
}
|
[
"40524472+cavigna@users.noreply.github.com"
] |
40524472+cavigna@users.noreply.github.com
|
28e3372c3c8eb1b9179423437106e2b04ff1aaac
|
4c34cc329b22de4147fc646a0c0f0f4ed88f0a20
|
/app/src/main/java/com/xinran/qxcustomcamera/cameratwo/view/video/view/VideoPlayerView.java
|
5c51ea52030c7ab39c0eeb1e8330d3aa2d0939b9
|
[
"Apache-2.0"
] |
permissive
|
XinRan5312/QxCustomCameraImg
|
f27ad75d7a6f5b8b5be90277bd402a8771f70cca
|
9abcbb590b9c3e90076f8c55605b31a2a64845d5
|
refs/heads/master
| 2021-01-16T20:42:47.266866
| 2016-06-16T09:52:10
| 2016-06-16T09:52:10
| 61,281,365
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 3,854
|
java
|
package com.xinran.qxcustomcamera.cameratwo.view.video.view;
import java.io.IOException;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.media.MediaPlayer.OnPreparedListener;
import android.media.MediaPlayer.OnSeekCompleteListener;
import android.util.AttributeSet;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;
/**
* @ClassName: VideoSurfaceView
* @Description: 和MediaPlayer绑定的SurfaceView,用以播放视频
* @author LinJ
* @date 2015-1-21 下午2:38:53
*
*/
public class VideoPlayerView extends SurfaceView implements VideoPlayerOperation {
private final static String TAG="VideoSurfaceView";
private MediaPlayer mMediaPlayer;
public VideoPlayerView(Context context){
super(context);
init();
}
public VideoPlayerView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
/**
* 初始化
*/
private void init() {
mMediaPlayer=new MediaPlayer();
//初始化容器
getHolder().addCallback(callback);
}
/**
* 设置播放器监听函数
* @param listener
*/
protected void setPalyerListener(PlayerListener listener){
mMediaPlayer.setOnCompletionListener(listener);
mMediaPlayer.setOnSeekCompleteListener(listener);
mMediaPlayer.setOnPreparedListener(listener);
}
/**
* 获取当前播放器是否在播放状态
* @return
*/
@Override
public boolean isPlaying(){
return mMediaPlayer.isPlaying();
}
/**
* 获取当前播放时间,单位毫秒
* @return
*/
@Override
public int getCurrentPosition(){
if(isPlaying())
return mMediaPlayer.getCurrentPosition();
return 0;
}
@Override
public void pausedPlay() {
mMediaPlayer.pause();
}
@Override
public void resumePlay() {
// TODO Auto-generated method stub
mMediaPlayer.start();
}
/**
* 设置当前播放位置
*/
@Override
public void seekPosition(int position){
if(isPlaying())
mMediaPlayer.pause();
//当设置的时间值大于视频最大长度时,停止播放
if(position<0||position>mMediaPlayer.getDuration()){
mMediaPlayer.stop();
return;
}
//设置时间
mMediaPlayer.seekTo(position);
}
/**
* 停止播放
*/
@Override
public void stopPlay() {
mMediaPlayer.stop();
mMediaPlayer.reset();
}
private SurfaceHolder.Callback callback=new SurfaceHolder.Callback() {
@Override
public void surfaceCreated(SurfaceHolder holder) {
mMediaPlayer.setDisplay(getHolder());
}
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width,
int height) {
}
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
if(mMediaPlayer.isPlaying())
mMediaPlayer.stop();
mMediaPlayer.reset();
}
};
@Override
public void playVideo(String path) throws IllegalArgumentException, SecurityException, IllegalStateException, IOException{
if(mMediaPlayer!=null&&mMediaPlayer.isPlaying()){
mMediaPlayer.stop();
}
mMediaPlayer.reset(); //reset重新设置播放器引擎
mMediaPlayer.setDataSource(path);
mMediaPlayer.prepare();
}
/**
* @ClassName: PlayerListener
* @Description: 集合接口,container实现该接口
* @author LinJ
* @date 2015-1-23 下午3:09:15
*
*/
public interface PlayerListener extends OnCompletionListener,
OnSeekCompleteListener,OnPreparedListener{
}
}
|
[
"qixinh@jumei.com"
] |
qixinh@jumei.com
|
508bf53921b28b3bd24ca50f139268196a658f0a
|
fcef9fb065efed921c26866896004b138d9d92cd
|
/neembuu-android/srcs/output_jar.src/twitter4j/User.java
|
1fdf495d587cb1efaf97b8fb6961a6d86ca3da7b
|
[] |
no_license
|
Neembuu/neembuunow
|
46e92148fbea68d31688a64452d9934e619cc1b2
|
b73c46465ab05c28ae6aa3f1e04a35a57d9b1d96
|
refs/heads/master
| 2016-09-05T10:02:01.613898
| 2014-07-10T18:30:28
| 2014-07-10T18:30:28
| 22,336,524
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,000
|
java
|
package twitter4j;
import java.io.Serializable;
import java.net.URL;
import java.util.Date;
public abstract interface User
extends Comparable<User>, TwitterResponse, Serializable
{
public abstract String getBiggerProfileImageURL();
public abstract String getBiggerProfileImageURLHttps();
public abstract Date getCreatedAt();
public abstract String getDescription();
public abstract URLEntity[] getDescriptionURLEntities();
public abstract int getFavouritesCount();
public abstract int getFollowersCount();
public abstract int getFriendsCount();
public abstract long getId();
public abstract String getLang();
public abstract int getListedCount();
public abstract String getLocation();
public abstract String getMiniProfileImageURL();
public abstract String getMiniProfileImageURLHttps();
public abstract String getName();
public abstract String getOriginalProfileImageURL();
public abstract String getOriginalProfileImageURLHttps();
public abstract String getProfileBackgroundColor();
public abstract String getProfileBackgroundImageURL();
public abstract String getProfileBackgroundImageUrl();
public abstract String getProfileBackgroundImageUrlHttps();
public abstract String getProfileBannerIPadRetinaURL();
public abstract String getProfileBannerIPadURL();
public abstract String getProfileBannerMobileRetinaURL();
public abstract String getProfileBannerMobileURL();
public abstract String getProfileBannerRetinaURL();
public abstract String getProfileBannerURL();
public abstract String getProfileImageURL();
public abstract String getProfileImageURLHttps();
public abstract URL getProfileImageUrlHttps();
public abstract String getProfileLinkColor();
public abstract String getProfileSidebarBorderColor();
public abstract String getProfileSidebarFillColor();
public abstract String getProfileTextColor();
public abstract String getScreenName();
public abstract Status getStatus();
public abstract int getStatusesCount();
public abstract String getTimeZone();
public abstract String getURL();
public abstract URLEntity getURLEntity();
public abstract int getUtcOffset();
public abstract boolean isContributorsEnabled();
public abstract boolean isFollowRequestSent();
public abstract boolean isGeoEnabled();
public abstract boolean isProfileBackgroundTiled();
public abstract boolean isProfileUseBackgroundImage();
public abstract boolean isProtected();
public abstract boolean isShowAllInlineMedia();
public abstract boolean isTranslator();
public abstract boolean isVerified();
}
/* Location: F:\neembuu\Research\android_apps\output_jar.jar
* Qualified Name: twitter4j.User
* JD-Core Version: 0.7.0.1
*/
|
[
"pasdavide@gmail.com"
] |
pasdavide@gmail.com
|
24d0ca7a1adade1f51f85015b2cfdd5fd35ca55c
|
dec6bd85db1d028edbbd3bd18fe0ca628eda012e
|
/netbeans-projects/SegurancaADACD/src/ssl/EchoClient.java
|
604f337317194bba7476aa06a6c695d03baf93d0
|
[] |
no_license
|
MatheusGrenfell/java-projects
|
21b961697e2c0c6a79389c96b588e142c3f70634
|
93c7bfa2e4f73a232ffde2d38f30a27f2a816061
|
refs/heads/master
| 2022-12-29T12:55:00.014296
| 2020-10-16T00:54:30
| 2020-10-16T00:54:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,826
|
java
|
package ssl;
import java.io.*;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
//para criar o keystore
//keytool -genkey -keystore mySrvKeystore -keyalg RSA
public class EchoClient {
public static void main(String[] arstring) {
try {
System.setProperty("javax.net.ssl.trustStore", "KeyStore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "key50800");
//System.setProperty("javax.net.debug", "ALL");
//System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
SSLSocket sslsocket = (SSLSocket) sslsocketfactory.createSocket("localhost", 9999);
//String[] enabledCipherSuites = {"SSL_DH_anon_WITH_RC4_128_MD5"};
//sslsocket.setEnabledCipherSuites(enabledCipherSuites);
InputStream inputstream = System.in;
InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
OutputStream outputstream = sslsocket.getOutputStream();
ObjectOutputStream out = new ObjectOutputStream(outputstream);
//out.w
OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);
BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);
String string = null;
while ((string = bufferedreader.readLine()) != null) {
bufferedwriter.write(string + '\n');
bufferedwriter.flush();
}
} catch (Exception exception) {
exception.printStackTrace();
}
}
}
|
[
"caiohobus@gmail.com"
] |
caiohobus@gmail.com
|
a629dfb04a1d45d03eaca7b327c94fedaa3b3440
|
4dba1ae57f07a692ac0529bc5f87ca34a9721301
|
/IS24-XML/src/main/java/org/openestate/io/is24_xml/xml/WGGroesse.java
|
febe76c573b6c5a8bc3e6bd1e49ee11081dcbbd9
|
[
"Apache-2.0"
] |
permissive
|
jniebuhr/OpenEstate-IO
|
8d792f930876a4f2c7662f70582003a6177a1ed9
|
8ebfaa495e757eac44004084b4c14baeb5197375
|
refs/heads/master
| 2019-07-07T08:13:40.526614
| 2017-12-06T13:25:25
| 2017-12-06T13:25:25
| 86,725,865
| 0
| 0
| null | 2017-03-30T16:42:58
| 2017-03-30T16:42:57
| null |
UTF-8
|
Java
| false
| false
| 1,786
|
java
|
package org.openestate.io.is24_xml.xml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for WGGroesse.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="WGGroesse">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="2"/>
* <enumeration value="3"/>
* <enumeration value="4"/>
* <enumeration value="5"/>
* <enumeration value="6"/>
* <enumeration value="7"/>
* <enumeration value="8"/>
* <enumeration value="9"/>
* <enumeration value="10"/>
* <enumeration value="11+"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "WGGroesse")
@XmlEnum
public enum WGGroesse {
@XmlEnumValue("2")
PERSONS_02("2"),
@XmlEnumValue("3")
PERSONS_03("3"),
@XmlEnumValue("4")
PERSONS_04("4"),
@XmlEnumValue("5")
PERSONS_05("5"),
@XmlEnumValue("6")
PERSONS_06("6"),
@XmlEnumValue("7")
PERSONS_07("7"),
@XmlEnumValue("8")
PERSONS_08("8"),
@XmlEnumValue("9")
PERSONS_09("9"),
@XmlEnumValue("10")
PERSONS_10("10"),
@XmlEnumValue("11+")
PERSONS_11_PLUS("11+");
private final String value;
WGGroesse(String v) {
value = v;
}
public String value() {
return value;
}
public static WGGroesse fromValue(String v) {
for (WGGroesse c: WGGroesse.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"andy@openindex.de"
] |
andy@openindex.de
|
698b1c0be27fd0cd0b881b325a1e298df1b386e7
|
77f4fd1ead42be44b25845c3dc93b326b607ad00
|
/micrometer-spring-legacy/src/main/java/io/micrometer/spring/async/ThreadPoolTaskExecutorMetrics.java
|
a5b9dc5cf32d7e935cfb3fd065ebec0e1f913cb9
|
[
"Apache-2.0"
] |
permissive
|
philwebb/micrometer
|
ca7ba7653f4940ba84bd0cfc41a11840043e897d
|
2b245d86b4de5fe75b25af9eb94ec6c6769c684f
|
refs/heads/master
| 2022-11-14T15:34:21.021236
| 2018-01-26T02:43:37
| 2018-01-26T02:43:37
| 118,996,918
| 0
| 2
| null | 2018-01-26T02:49:40
| 2018-01-26T02:49:40
| null |
UTF-8
|
Java
| false
| false
| 4,212
|
java
|
/**
* Copyright 2017 Pivotal Software, Inc.
* <p>
* 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
* <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 io.micrometer.spring.async;
import io.micrometer.core.instrument.FunctionCounter;
import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;
import io.micrometer.core.lang.NonNullApi;
import io.micrometer.core.lang.NonNullFields;
import io.micrometer.core.lang.Nullable;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import static java.util.Arrays.asList;
/**
* Monitors the status of {@link ThreadPoolTaskExecutor} pools. Does not record timings on operations executed in the
* {@link ExecutorService}, as this requires the instance to be wrapped. Timings are provided separately by wrapping
* the executor service with {@link TimedThreadPoolTaskExecutor}.
*
* @author David Held
*/
@NonNullApi
@NonNullFields
public class ThreadPoolTaskExecutorMetrics implements MeterBinder {
@Nullable
private final ThreadPoolTaskExecutor executor;
private final String name;
private final Iterable<Tag> tags;
public ThreadPoolTaskExecutorMetrics(ThreadPoolTaskExecutor executor, String name, Iterable<Tag> tags) {
this.name = name;
this.tags = tags;
this.executor = executor;
}
/**
* Returns a new {@link ThreadPoolTaskExecutor} with recorded metrics.
*
* @param registry The registry to bind metrics to.
* @param name The name prefix of the metrics.
* @param tags Tags to apply to all recorded metrics.
* @return The instrumented executor, proxied.
*/
public static ThreadPoolTaskExecutor monitor(MeterRegistry registry, String name, Iterable<Tag> tags) {
return new TimedThreadPoolTaskExecutor(registry, name, tags);
}
/**
* Returns a new {@link ThreadPoolTaskExecutor} with recorded metrics.
*
* @param registry The registry to bind metrics to.
* @param name The name prefix of the metrics.
* @param tags Tags to apply to all recorded metrics.
* @return The instrumented executor, proxied.
*/
public static Executor monitor(MeterRegistry registry, String name, Tag... tags) {
return monitor(registry, name, asList(tags));
}
@Override
public void bindTo(MeterRegistry registry) {
if (executor == null) {
return;
}
monitor(registry, executor.getThreadPoolExecutor());
}
private void monitor(MeterRegistry registry, ThreadPoolExecutor tp) {
FunctionCounter.builder(name + ".completed", tp, ThreadPoolExecutor::getCompletedTaskCount)
.tags(tags)
.description("The approximate total number of tasks that have completed execution")
.register(registry);
Gauge.builder(name + ".active", tp, ThreadPoolExecutor::getActiveCount)
.tags(tags)
.description("The approximate number of threads that are actively executing tasks")
.register(registry);
Gauge.builder(name + ".queued", tp, tpRef -> tpRef.getQueue().size())
.tags(tags)
.description("The approximate number of threads that are queued for execution")
.register(registry);
Gauge.builder(name + ".pool", tp, ThreadPoolExecutor::getPoolSize)
.tags(tags)
.description("The current number of threads in the pool")
.register(registry);
}
}
|
[
"jkschneider@gmail.com"
] |
jkschneider@gmail.com
|
39cd21e04f695c10c1b24a668a9b54ef6781410c
|
df134b422960de6fb179f36ca97ab574b0f1d69f
|
/org/apache/logging/log4j/core/async/AsyncLoggerContext.java
|
868aa0bb18df6bb484fd2023ab61a675d2cef1ca
|
[] |
no_license
|
TheShermanTanker/NMS-1.16.3
|
bbbdb9417009be4987872717e761fb064468bbb2
|
d3e64b4493d3e45970ec5ec66e1b9714a71856cc
|
refs/heads/master
| 2022-12-29T15:32:24.411347
| 2020-10-08T11:56:16
| 2020-10-08T11:56:16
| 302,324,687
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,036
|
java
|
/* */ package org.apache.logging.log4j.core.async;
/* */
/* */ import java.net.URI;
/* */ import java.util.concurrent.TimeUnit;
/* */ import org.apache.logging.log4j.core.Logger;
/* */ import org.apache.logging.log4j.core.LoggerContext;
/* */ import org.apache.logging.log4j.core.config.Configuration;
/* */ import org.apache.logging.log4j.core.jmx.RingBufferAdmin;
/* */ import org.apache.logging.log4j.message.MessageFactory;
/* */ import org.apache.logging.log4j.status.StatusLogger;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class AsyncLoggerContext
/* */ extends LoggerContext
/* */ {
/* */ private final AsyncLoggerDisruptor loggerDisruptor;
/* */
/* */ public AsyncLoggerContext(String name) {
/* 38 */ super(name);
/* 39 */ this.loggerDisruptor = new AsyncLoggerDisruptor(name);
/* */ }
/* */
/* */ public AsyncLoggerContext(String name, Object externalContext) {
/* 43 */ super(name, externalContext);
/* 44 */ this.loggerDisruptor = new AsyncLoggerDisruptor(name);
/* */ }
/* */
/* */ public AsyncLoggerContext(String name, Object externalContext, URI configLocn) {
/* 48 */ super(name, externalContext, configLocn);
/* 49 */ this.loggerDisruptor = new AsyncLoggerDisruptor(name);
/* */ }
/* */
/* */ public AsyncLoggerContext(String name, Object externalContext, String configLocn) {
/* 53 */ super(name, externalContext, configLocn);
/* 54 */ this.loggerDisruptor = new AsyncLoggerDisruptor(name);
/* */ }
/* */
/* */
/* */ protected Logger newInstance(LoggerContext ctx, String name, MessageFactory messageFactory) {
/* 59 */ return new AsyncLogger(ctx, name, messageFactory, this.loggerDisruptor);
/* */ }
/* */
/* */
/* */ public void setName(String name) {
/* 64 */ super.setName("AsyncContext[" + name + "]");
/* 65 */ this.loggerDisruptor.setContextName(name);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void start() {
/* 75 */ this.loggerDisruptor.start();
/* 76 */ super.start();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void start(Configuration config) {
/* 86 */ maybeStartHelper(config);
/* 87 */ super.start(config);
/* */ }
/* */
/* */
/* */
/* */
/* */ private void maybeStartHelper(Configuration config) {
/* 94 */ if (config instanceof org.apache.logging.log4j.core.config.DefaultConfiguration) {
/* 95 */ StatusLogger.getLogger().debug("[{}] Not starting Disruptor for DefaultConfiguration.", getName());
/* */ } else {
/* 97 */ this.loggerDisruptor.start();
/* */ }
/* */ }
/* */
/* */
/* */ public boolean stop(long timeout, TimeUnit timeUnit) {
/* 103 */ setStopping();
/* */
/* 105 */ this.loggerDisruptor.stop(timeout, timeUnit);
/* 106 */ super.stop(timeout, timeUnit);
/* 107 */ return true;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public RingBufferAdmin createRingBufferAdmin() {
/* 117 */ return this.loggerDisruptor.createRingBufferAdmin(getName());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public void setUseThreadLocals(boolean useThreadLocals) {
/* 125 */ this.loggerDisruptor.setUseThreadLocals(useThreadLocals);
/* */ }
/* */ }
/* Location: C:\Users\Josep\Downloads\Decompile Minecraft\tuinity-1.16.3.jar!\org\apache\logging\log4j\core\async\AsyncLoggerContext.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 1.1.3
*/
|
[
"tanksherman27@gmail.com"
] |
tanksherman27@gmail.com
|
fb76fd3017e4da0c9842096802f1759ee7754685
|
ead5a617b23c541865a6b57cf8cffcc1137352f2
|
/decompiled/sources/com/google/android/gms/common/internal/GmsClient.java
|
7512520ae3718dfdf1e74fbd2806a922be7d3110
|
[] |
no_license
|
erred/uva-ssn
|
73a6392a096b38c092482113e322fdbf9c3c4c0e
|
4fb8ea447766a735289b96e2510f5a8d93345a8c
|
refs/heads/master
| 2022-02-26T20:52:50.515540
| 2019-10-14T12:30:33
| 2019-10-14T12:30:33
| 210,376,140
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,189
|
java
|
package com.google.android.gms.common.internal;
import android.accounts.Account;
import android.content.Context;
import android.os.Handler;
import android.os.IInterface;
import android.os.Looper;
import com.google.android.gms.common.Feature;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.api.Api.Client;
import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.BaseGmsClient.BaseConnectionCallbacks;
import com.google.android.gms.common.internal.BaseGmsClient.BaseOnConnectionFailedListener;
import com.google.android.gms.common.internal.GmsClientEventManager.GmsClientEventState;
import com.google.android.gms.common.util.VisibleForTesting;
import java.util.Set;
@KeepForSdk
public abstract class GmsClient<T extends IInterface> extends BaseGmsClient<T> implements Client, GmsClientEventState {
private final Set<Scope> mScopes;
private final ClientSettings zaes;
private final Account zax;
/* access modifiers changed from: protected */
@KeepForSdk
public Set<Scope> validateScopes(Set<Scope> set) {
return set;
}
@KeepForSdk
@VisibleForTesting
protected GmsClient(Context context, Handler handler, int i, ClientSettings clientSettings) {
this(context, handler, GmsClientSupervisor.getInstance(context), GoogleApiAvailability.getInstance(), i, clientSettings, (ConnectionCallbacks) null, (OnConnectionFailedListener) null);
}
@KeepForSdk
protected GmsClient(Context context, Looper looper, int i, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
this(context, looper, GmsClientSupervisor.getInstance(context), GoogleApiAvailability.getInstance(), i, clientSettings, (ConnectionCallbacks) Preconditions.checkNotNull(connectionCallbacks), (OnConnectionFailedListener) Preconditions.checkNotNull(onConnectionFailedListener));
}
@KeepForSdk
protected GmsClient(Context context, Looper looper, int i, ClientSettings clientSettings) {
this(context, looper, GmsClientSupervisor.getInstance(context), GoogleApiAvailability.getInstance(), i, clientSettings, (ConnectionCallbacks) null, (OnConnectionFailedListener) null);
}
@VisibleForTesting
protected GmsClient(Context context, Looper looper, GmsClientSupervisor gmsClientSupervisor, GoogleApiAvailability googleApiAvailability, int i, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
super(context, looper, gmsClientSupervisor, googleApiAvailability, i, zaa(connectionCallbacks), zaa(onConnectionFailedListener), clientSettings.getRealClientClassName());
this.zaes = clientSettings;
this.zax = clientSettings.getAccount();
this.mScopes = zaa(clientSettings.getAllRequestedScopes());
}
@VisibleForTesting
protected GmsClient(Context context, Handler handler, GmsClientSupervisor gmsClientSupervisor, GoogleApiAvailability googleApiAvailability, int i, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
super(context, handler, gmsClientSupervisor, googleApiAvailability, i, zaa(connectionCallbacks), zaa(onConnectionFailedListener));
this.zaes = (ClientSettings) Preconditions.checkNotNull(clientSettings);
this.zax = clientSettings.getAccount();
this.mScopes = zaa(clientSettings.getAllRequestedScopes());
}
private final Set<Scope> zaa(Set<Scope> set) {
Set<Scope> validateScopes = validateScopes(set);
for (Scope contains : validateScopes) {
if (!set.contains(contains)) {
throw new IllegalStateException("Expanding scopes is not permitted, use implied scopes instead");
}
}
return validateScopes;
}
public final Account getAccount() {
return this.zax;
}
/* access modifiers changed from: protected */
@KeepForSdk
public final ClientSettings getClientSettings() {
return this.zaes;
}
/* access modifiers changed from: protected */
public final Set<Scope> getScopes() {
return this.mScopes;
}
@KeepForSdk
public Feature[] getRequiredFeatures() {
return new Feature[0];
}
private static BaseConnectionCallbacks zaa(ConnectionCallbacks connectionCallbacks) {
if (connectionCallbacks == null) {
return null;
}
return new zaf(connectionCallbacks);
}
private static BaseOnConnectionFailedListener zaa(OnConnectionFailedListener onConnectionFailedListener) {
if (onConnectionFailedListener == null) {
return null;
}
return new zag(onConnectionFailedListener);
}
public int getMinApkVersion() {
return super.getMinApkVersion();
}
}
|
[
"seankhliao@gmail.com"
] |
seankhliao@gmail.com
|
0d2446adf2fdaa7c8be0b3778904322f6c937e5d
|
005553bcc8991ccf055f15dcbee3c80926613b7f
|
/generated/com/guidewire/_generated/entity/CitationInternalAccess.java
|
09e34afcd6b13f0e510f199c791ca4f97cd9fc27
|
[] |
no_license
|
azanaera/toggle-isbtf
|
5f14209cd87b98c123fad9af060efbbee1640043
|
faf991ec3db2fd1d126bc9b6be1422b819f6cdc8
|
refs/heads/master
| 2023-01-06T22:20:03.493096
| 2020-11-16T07:04:56
| 2020-11-16T07:04:56
| 313,212,938
| 0
| 0
| null | 2020-11-16T08:48:41
| 2020-11-16T06:42:23
| null |
UTF-8
|
Java
| false
| false
| 778
|
java
|
package com.guidewire._generated.entity;
@javax.annotation.processing.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "Citation.eti;Citation.eix;Citation.etx")
@java.lang.SuppressWarnings(value = {"deprecation", "unchecked"})
public class CitationInternalAccess {
public static final com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pl.persistence.code.InstantiableEntityFriendAccess<entity.Citation, com.guidewire._generated.entity.CitationInternal>> FRIEND_ACCESSOR = new com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pl.persistence.code.InstantiableEntityFriendAccess<entity.Citation, com.guidewire._generated.entity.CitationInternal>>(entity.Citation.class);
private CitationInternalAccess() {
}
}
|
[
"azanaera691@gmail.com"
] |
azanaera691@gmail.com
|
2099054739cba48daeef1307901ded6466cde0bc
|
72338286d711ad7859aa72f32f3f509176ba915c
|
/app/src/main/java/com/ytd/framework/main/ui/navigator/FragmentNavigatorAdapter.java
|
d02a7db694793413ba11462b4d63cd8168ed0c0c
|
[] |
no_license
|
vic-tan/ProjectFramework
|
938193d3ecf7cc901c8ef8a4cf424764e4a7a7e6
|
5f1807e26845e5f280ba1637b1f4ebfd44a3539d
|
refs/heads/master
| 2021-01-02T22:33:34.363779
| 2017-09-07T08:39:22
| 2017-09-07T08:39:22
| 99,338,840
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 287
|
java
|
package com.ytd.framework.main.ui.navigator;
import android.app.Fragment;
/**
* Created by aspsine on 16/3/30.
*/
public interface FragmentNavigatorAdapter {
public Fragment onCreateFragment(int position);
public String getTag(int position);
public int getCount();
}
|
[
"tanlifei@zhixueyun.com"
] |
tanlifei@zhixueyun.com
|
ef27c45ed585b531ccb7d39cc9b4a94e533b79b8
|
40dd2c2ba934bcbc611b366cf57762dcb14c48e3
|
/RI_Stack/java/src/base/org/cablelabs/impl/snmp/SimpleSNMPComm.java
|
f53a10ea91576e32f5275ca38b08d3a6c05a2ed9
|
[] |
no_license
|
amirna2/OCAP-RI
|
afe0d924dcf057020111406b1d29aa2b3a796e10
|
254f0a8ebaf5b4f09f4a7c8f4961e9596c49ccb7
|
refs/heads/master
| 2020-03-10T03:22:34.355822
| 2018-04-11T23:08:49
| 2018-04-11T23:08:49
| 129,163,048
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,945
|
java
|
// COPYRIGHT_BEGIN
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
//
// Copyright (C) 2008-2013, Cable Television Laboratories, Inc.
//
// This software is available under multiple licenses:
//
// (1) BSD 2-clause
// 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
// HOLDER 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.
//
// (2) GPL Version 2
// 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, version 2. This program is distributed
// in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
// even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program.If not, see<http:www.gnu.org/licenses/>.
//
// (3)CableLabs License
// If you or the company you represent has a separate agreement with CableLabs
// concerning the use of this code, your rights and obligations with respect
// to this code shall be as set forth therein. No license is granted hereunder
// for any other purpose.
//
// Please contact CableLabs if you need additional information or
// have any questions.
//
// CableLabs
// 858 Coal Creek Cir
// Louisville, CO 80027-9750
// 303 661-9100
// COPYRIGHT_END
package org.cablelabs.impl.snmp;
import org.cablelabs.impl.manager.snmp.OIDDelegator;
import org.cablelabs.impl.manager.snmp.SNMPComm;
public abstract class SimpleSNMPComm implements SNMPComm
{
public SimpleSNMPComm()
{
}
/**
*@see org.cablelabs.impl.snmp.SnmpComm#startGetTest(java.lang.String,
* String, long)
*/
public void startGetTest(String uniqueId, String oid, long interval)
{
}
/**
*@see org.cablelabs.impl.snmp.SnmpComm#startSetTest(java.lang.String,
* String, long, byte[])
*/
public long startSetTest(String uniqueId, String oid, long interval, byte[] data)
{
return 0;
}
/**
*@see base.org.cablelabs.impl.snmp.SnmpComm#registerMibRouter(base.org.cablelabs.impl.snmp.MIBRouter)
*/
public void registerMibRouter(OIDDelegator router)
{
}
/**
*@see base.org.cablelabs.impl.snmp.SnmpComm#stopGetTest(java.lang.String)
*/
public void stopGetTest(String uniqueId)
{
}
/**
*@see base.org.cablelabs.impl.snmp.SnmpComm#stopSetTest(java.lang.String)
*/
public void stopSetTest(String uniqueId)
{
}
}
|
[
"amir.nathoo@ubnt.com"
] |
amir.nathoo@ubnt.com
|
b3b277edb0c0a61866eaa804fae32c87d5f38f7f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/7/7_88f0109ceaf2263882d551b7f7d5c3c901573117/WikiFormViewer/7_88f0109ceaf2263882d551b7f7d5c3c901573117_WikiFormViewer_t.java
|
12007435908f9d488cace05c0145ea9277830a86
|
[] |
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,696
|
java
|
/*
* ConcourseConnect
* Copyright 2009 Concursive Corporation
* http://www.concursive.com
*
* This file is part of ConcourseConnect, an open source social business
* software and community platform.
*
* Concursive ConcourseConnect is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, version 3 of the License.
*
* Under the terms of the GNU Affero General Public License you must release the
* complete source code for any application that uses any part of ConcourseConnect
* (system header files and libraries used by the operating system are excluded).
* These terms must be included in any work that has ConcourseConnect components.
* If you are developing and distributing open source applications under the
* GNU Affero General Public License, then you are free to use ConcourseConnect
* under the GNU Affero General Public License.
*
* If you are deploying a web site in which users interact with any portion of
* ConcourseConnect over a network, the complete source code changes must be made
* available. For example, include a link to the source archive directly from
* your web site.
*
* For OEMs, ISVs, SIs and VARs who distribute ConcourseConnect with their
* products, and do not license and distribute their source code under the GNU
* Affero General Public License, Concursive provides a flexible commercial
* license.
*
* To anyone in doubt, we recommend the commercial license. Our commercial license
* is competitively priced and will eliminate any confusion about how
* ConcourseConnect can be used and distributed.
*
* ConcourseConnect 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 Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License
* along with ConcourseConnect. If not, see <http://www.gnu.org/licenses/>.
*
* Attribution Notice: ConcourseConnect is an Original Work of software created
* by Concursive Corporation
*/
package com.concursive.connect.web.modules.wiki.portlets.wikiForm;
import com.concursive.connect.web.modules.contactus.dao.ContactUsBean;
import com.concursive.connect.web.modules.profile.dao.Project;
import com.concursive.connect.web.modules.wiki.dao.Wiki;
import com.concursive.connect.web.modules.wiki.utils.WikiToHTMLContext;
import com.concursive.connect.web.modules.wiki.utils.WikiToHTMLUtils;
import com.concursive.connect.web.portal.IPortletViewer;
import com.concursive.connect.web.portal.PortalUtils;
import java.util.HashMap;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Displays a CustomForm form
*
* @author Matt Rajkowski
* @created November 9, 2009
*/
public class WikiFormViewer implements IPortletViewer {
private static Log LOG = LogFactory.getLog(WikiFormViewer.class);
// Pages
private static final String VIEW_PAGE_FORM = "/portlets/wiki_form/wiki_form-view.jsp";
private static final String VIEW_PAGE_SUCCESS = "/portlets/wiki_form/wiki_form_success-view.jsp";
// Preferences
private static final String PREF_PROJECT = "project";
private static final String PREF_TITLE = "title";
private static final String PREF_INTRODUCTION_MESSAGE = "introductionMessage";
private static final String PREF_FORM_CONTENT = "form";
private static final String PREF_SUCCESS_MESSAGE = "successMessage";
// Object Results
private static final String TITLE = "title";
private static final String INTRODUCTION_MESSAGE = "introductionMessage";
private static final String WIKI_HTML = "wikiHtml";
private static final String SUCCESS_MESSAGE = "successMessage";
public String doView(RenderRequest request, RenderResponse response) throws Exception {
// Determine the portlet's view to use
String view = PortalUtils.getViewer(request);
LOG.debug("Viewer... " + view);
// The bean that holds the form validations
PortalUtils.getFormBean(request, "contactUs", ContactUsBean.class);
if ("success".equals(view)) {
// Set the portlet preferences
request.setAttribute(TITLE, request.getPreferences().getValue(PREF_TITLE, null));
request.setAttribute(SUCCESS_MESSAGE, request.getPreferences().getValue(PREF_SUCCESS_MESSAGE, null));
return VIEW_PAGE_SUCCESS;
}
// Determine the project container to use for comparison
String uniqueId = request.getPreferences().getValue(PREF_PROJECT, null);
Project project = PortalUtils.getProject(request);
if (project == null || !uniqueId.equals(project.getUniqueId())) {
LOG.debug("Skipping...");
return null;
}
// Convert wiki to html
Wiki thisWiki = new Wiki();
thisWiki.setContent(request.getPreferences().getValue(PREF_FORM_CONTENT, null));
// Parse it
WikiToHTMLContext wikiContext = new WikiToHTMLContext(thisWiki, new HashMap(), null, -1, true, request.getContextPath());
String html = WikiToHTMLUtils.getHTML(wikiContext);
// Set the portlet preferences
request.setAttribute(TITLE, request.getPreferences().getValue(PREF_TITLE, null));
request.setAttribute(INTRODUCTION_MESSAGE, request.getPreferences().getValue(PREF_INTRODUCTION_MESSAGE, null));
request.setAttribute(WIKI_HTML, html);
// JSP view
return VIEW_PAGE_FORM;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
17193eb09121fbde9f7235da4119679e26bef7cf
|
9857aab7e89246319a3f3b2165acb2b1fc0d64bc
|
/ejemplos/introduccion-java/arreglos y colecciones/Lab01/javase_poo/src/org/cursofinalgrado/uapa/java/nomina/app/entidades/Posicion.java
|
b92d6b070509167ee18ce4555ecf6705ab6d2260
|
[] |
no_license
|
Yanelkys/cursofinalgrado-uapa-diplomado-java
|
5c4e8148bc41968a2df906e91eb6ff8c74ac4dbc
|
d078dcdccea22c351f40301bb0db7c6cf608a55d
|
refs/heads/master
| 2021-01-21T16:57:57.334717
| 2014-11-23T17:57:33
| 2014-11-23T17:57:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 215
|
java
|
package org.cursofinalgrado.uapa.java.nomina.app.entidades;
/**
* Definiendo los tipos de posiciones.
*/
public enum Posicion {
PROGRAMADOR,
SECRETARIA,
SOPORTTE_TECNICO,
VIGILANTE,
MECANICO
}
|
[
"eudris@gmail.com"
] |
eudris@gmail.com
|
7c5fe75ffbff0da052af4e81d28f23aaa3ba74c0
|
cffd4738eb1284f2348e94f96676acf980c98e62
|
/app/src/main/java/com/vimalcvs/learnandroid/Activities/ExtrasGridView.java
|
f2a2a0fac22321e518061264533f1c2799ff39e3
|
[] |
no_license
|
vimalcvs/LearnAndroidCode
|
86684456cc489aacf236ef6c8c62829d11f75fc1
|
240d26f672043fa98b03bab23ced1cfb95a9d7be
|
refs/heads/master
| 2020-04-02T04:13:48.580981
| 2018-11-26T22:27:26
| 2018-11-26T22:27:26
| 154,006,329
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 402
|
java
|
package com.vimalcvs.learnandroid.Activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.vimalcvs.learnandroid.R;
public class ExtrasGridView extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_extras_grid_view);
}
}
|
[
"vimalcvs29@.github.com"
] |
vimalcvs29@.github.com
|
64dee33202e1753690c72549333700e0fbad0d63
|
c278b2e06e98b0b99ca7350cfc12d2e535db1841
|
/agent/src/main/java/com/yl/agent/service/MemberInfoService.java
|
722be1e5e7dd24d7b344f4ca6423f54cd021db88
|
[] |
no_license
|
SplendorAnLin/paymentSystem
|
ea778c03179a36755c52498fd3f5f1a5bbeb5d34
|
db308a354a23bd3a48ff88c16b29a43c4e483e7d
|
refs/heads/master
| 2023-02-26T14:16:27.283799
| 2022-10-20T07:50:35
| 2022-10-20T07:50:35
| 191,535,643
| 5
| 6
| null | 2023-02-22T06:42:24
| 2019-06-12T09:01:15
|
Java
|
UTF-8
|
Java
| false
| false
| 194
|
java
|
package com.yl.agent.service;
/**
* 会员信息业务接口
*
* @author 聚合支付有限公司
* @since 2016年7月13日
* @version V1.0.0
*/
public interface MemberInfoService {
}
|
[
"zl88888@live.com"
] |
zl88888@live.com
|
5b6b8aa8c7642c62e4c5eab1b50552c25b05c54f
|
58d9997a806407a09c14aa0b567e57d486b282d4
|
/com/planet_ink/coffee_mud/Items/interfaces/MusicalInstrument.java
|
6b0b4c806c3357a244e8a6ed6795f605d72fdf98
|
[
"Apache-2.0"
] |
permissive
|
kudos72/DBZCoffeeMud
|
553bc8619a3542fce710ba43bac01144148fe2ed
|
19a3a7439fcb0e06e25490e19e795394da1df490
|
refs/heads/master
| 2021-01-10T07:57:01.862867
| 2016-03-17T23:04:25
| 2016-03-17T23:04:25
| 39,215,834
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,674
|
java
|
package com.planet_ink.coffee_mud.Items.interfaces;
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.*;
/*
Copyright 2004-2014 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 interface MusicalInstrument extends Item
{
public static final int TYPE_CLARINETS=0;
public static final int TYPE_CYMBALS=1;
public static final int TYPE_DRUMS=2;
public static final int TYPE_FLUTES=3;
public static final int TYPE_GUITARS=4;
public static final int TYPE_HARMONICAS=5;
public static final int TYPE_HARPS=6;
public static final int TYPE_HORNS=7;
public static final int TYPE_OBOES=8;
public static final int TYPE_ORGANS=9;
public static final int TYPE_PIANOS=10;
public static final int TYPE_TROMBONES=11;
public static final int TYPE_TRUMPETS=12;
public static final int TYPE_TUBAS=13;
public static final int TYPE_VIOLINS=14;
public static final int TYPE_WOODS=15;
public static final int TYPE_XYLOPHONES=16;
public static final String[] TYPE_DESC={"CLARINETS",
"CYMBALS",
"DRUMS",
"FLUTES",
"GUITARS",
"HARMONICAS",
"HARPS",
"HORNS",
"OBOES",
"ORGANS",
"PIANOS",
"TROMBONES",
"TRUMPETS",
"TUBAS",
"VIOLINS",
"WOODS",
"XYLOPHONES"};
public int instrumentType();
public void setInstrumentType(int type);
}
|
[
"kirk.narey@gmail.com"
] |
kirk.narey@gmail.com
|
cd970822f98baf3368fb5776860afdcbc8f91400
|
cb08a5a20c7fbede4e8ce0bc3f49e6fd52ba3541
|
/dart-impl/src/main/java/com/jetbrains/lang/dart/ide/DartNamedElementNode.java
|
77c526acaf8671ec9e1aee4dc2a676b77ed58c47
|
[] |
no_license
|
yongwangy91/consulo-google-dart
|
18d6de9abaa5b8914db31a830fd2ddbfaff73eeb
|
b0d3d506a0bf92147e617473f3b8091ec83c251a
|
refs/heads/master
| 2023-01-18T17:01:52.010959
| 2020-10-20T18:24:38
| 2020-10-20T18:24:38
| 311,940,552
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,886
|
java
|
package com.jetbrains.lang.dart.ide;
import javax.annotation.Nullable;
import com.intellij.codeInsight.generation.ClassMember;
import com.intellij.codeInsight.generation.MemberChooserObject;
import com.intellij.codeInsight.generation.PsiElementMemberChooserObject;
import com.intellij.navigation.ItemPresentation;
import com.intellij.openapi.util.Iconable;
import com.intellij.psi.util.PsiTreeUtil;
import com.jetbrains.lang.dart.psi.DartClass;
import com.jetbrains.lang.dart.psi.DartComponent;
import consulo.awt.TargetAWT;
import consulo.ide.IconDescriptorUpdaters;
/**
* @author: Fedor.Korotkov
*/
public class DartNamedElementNode extends PsiElementMemberChooserObject implements ClassMember {
public DartNamedElementNode(final DartComponent haxeNamedComponent) {
super(haxeNamedComponent, buildPresentationText(haxeNamedComponent), IconDescriptorUpdaters.getIcon(haxeNamedComponent, Iconable.ICON_FLAG_VISIBILITY));
}
@Nullable
private static String buildPresentationText(DartComponent haxeNamedComponent) {
final ItemPresentation presentation = haxeNamedComponent.getPresentation();
if (presentation == null) {
return haxeNamedComponent.getName();
}
final StringBuilder result = new StringBuilder();
if (haxeNamedComponent instanceof DartClass) {
result.append(haxeNamedComponent.getName());
final String location = presentation.getLocationString();
if (location != null && !location.isEmpty()) {
result.append(" ").append(location);
}
}
else {
result.append(presentation.getPresentableText());
}
return result.toString();
}
@Nullable
@Override
public MemberChooserObject getParentNodeDelegate() {
final DartComponent result = PsiTreeUtil.getParentOfType(getPsiElement(), DartComponent.class);
return result == null ? null : new DartNamedElementNode(result);
}
}
|
[
"vistall.valeriy@gmail.com"
] |
vistall.valeriy@gmail.com
|
9a5931a4405e92266480f01632605aef64e51bd8
|
fdd4cc6f8b5a473c0081af5302cb19c34433a0cf
|
/src/modules/agrega/catalogadorWeb/src/main/java/es/pode/catalogacion/soporte/Contribucion.java
|
ea294567968a94f351eec675d0fc6ca46cc6ca3c
|
[] |
no_license
|
nwlg/Colony
|
0170b0990c1f592500d4869ec8583a1c6eccb786
|
07c908706991fc0979e4b6c41d30812d861776fb
|
refs/heads/master
| 2021-01-22T05:24:40.082349
| 2010-12-23T14:49:00
| 2010-12-23T14:49:00
| null | 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 1,835
|
java
|
/* Agrega es una federación de repositorios de objetos digitales educativos formada por todas las Comunidades Autónomas propiedad de Red.es. Este código ha sido desarrollado por la Entidad Pública Empresarial red.es adscrita al Ministerio de Industria,Turismo y Comercio a través de la Secretaría de Estado de Telecomunicaciones y para la Sociedad de la Información, dentro del Programa Internet en el Aula, que se encuadra dentro de las actuaciones previstas en el Plan Avanza (Plan 2006-2010 para el desarrollo de la Sociedad de la Información y de Convergencia con Europa y entre Comunidades Autónomas y Ciudades Autónomas) y ha sido cofinanciado con fondos FEDER del Programa Operativo FEDER 2000-2006 “Sociedad de la Información”
This program is free software: you can redistribute it and/or modify it under the terms of the European Union Public Licence (EUPL v.1.0). 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 European Union Public Licence (EUPL v.1.0). You should have received a copy of the EUPL licence along with this program. If not, see http://ec.europa.eu/idabc/en/document/7330.
*/
package es.pode.catalogacion.soporte;
import es.pode.catalogacion.negocio.servicios.SourceValueVO;
public class Contribucion {
private SourceValueVO rol;
private Entidad[] entidades;
private Fecha fecha;
public Fecha getFecha() {
return fecha;
}
public void setFecha(Fecha fecha) {
this.fecha = fecha;
}
public Entidad[] getEntidades() {
return entidades;
}
public void setEntidades(Entidad[] entidades) {
this.entidades = entidades;
}
public SourceValueVO getRol() {
return rol;
}
public void setRol(SourceValueVO rol) {
this.rol = rol;
}
}
|
[
"build@zeno.siriusit.co.uk"
] |
build@zeno.siriusit.co.uk
|
20f5834c136d3c7e7a54a4a912ae47a4670ba5fe
|
0b2ed3b6049348fcb64c0e979ab1e28f47968be1
|
/JavaThread/src/com/gky/thread/Producter.java
|
c05643bff606ff9ae0930c66bced1c91d0a281f6
|
[] |
no_license
|
zihanbobo/JavaProjectDemo
|
74786224f05853dd6c0befb4ab7464c9d73bf502
|
afc60fd11aef264aa7573759ef240155476eb8b5
|
refs/heads/master
| 2021-06-02T00:47:19.096694
| 2016-08-05T09:46:18
| 2016-08-05T09:46:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 374
|
java
|
package com.gky.thread;
public class Producter extends Thread{
private ShareData data;
public Producter(ShareData data) {
this.data = data;
}
@Override
public void run() {
// TODO Auto-generated method stub
int i = 65;
while(i <= 90){
if(data.setData((char)i)){
i++;
System.out.println("Product:"+(char)i);
}
}
}
}
|
[
"haotie1990@gmail.com"
] |
haotie1990@gmail.com
|
3c1b5e595b2516682b4f7f5db7cabd5976f4b991
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.minihd.qq/assets/exlibs.1.jar/classes.jar/QMF_PROTOCAL/QmfClientIpInfo.java
|
4189215c0f5bff5d1e25157959bfd3004a1f5d6e
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,698
|
java
|
package QMF_PROTOCAL;
import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;
public final class QmfClientIpInfo
extends JceStruct
{
static byte[] cache_ClientIpv6;
public int ClientIpv4 = 0;
public byte[] ClientIpv6 = null;
public short ClientPort = 0;
public byte IpType = 0;
public QmfClientIpInfo() {}
public QmfClientIpInfo(byte paramByte, short paramShort, int paramInt, byte[] paramArrayOfByte)
{
this.IpType = paramByte;
this.ClientPort = paramShort;
this.ClientIpv4 = paramInt;
this.ClientIpv6 = paramArrayOfByte;
}
public void readFrom(JceInputStream paramJceInputStream)
{
this.IpType = paramJceInputStream.read(this.IpType, 0, true);
this.ClientPort = paramJceInputStream.read(this.ClientPort, 1, true);
this.ClientIpv4 = paramJceInputStream.read(this.ClientIpv4, 2, true);
if (cache_ClientIpv6 == null)
{
cache_ClientIpv6 = (byte[])new byte[1];
((byte[])cache_ClientIpv6)[0] = 0;
}
this.ClientIpv6 = ((byte[])paramJceInputStream.read(cache_ClientIpv6, 3, false));
}
public void writeTo(JceOutputStream paramJceOutputStream)
{
paramJceOutputStream.write(this.IpType, 0);
paramJceOutputStream.write(this.ClientPort, 1);
paramJceOutputStream.write(this.ClientIpv4, 2);
if (this.ClientIpv6 != null) {
paramJceOutputStream.write(this.ClientIpv6, 3);
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.minihd.qq\assets\exlibs.1.jar\classes.jar
* Qualified Name: QMF_PROTOCAL.QmfClientIpInfo
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
db720cd232dfbd8a32384fad8b222a04d00aa9f5
|
f5f5d836c9a2fb7636d02283ccc6753678c273ad
|
/Enox Server/src/com/rs/game/npc/familiar/Voidshifter.java
|
721c10f594612963fb9260c2f41b8878982be97f
|
[] |
no_license
|
gnmmarechal/EnoxScapeReloaded
|
3a48c1925fef1bfb7969230f4258a65ae21c7bf2
|
ae9639be756b4adb139faa00553adf3e26c488fe
|
refs/heads/master
| 2020-04-22T12:54:40.777755
| 2019-06-28T20:46:34
| 2019-06-28T20:46:34
| 170,389,675
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,171
|
java
|
package com.rs.game.npc.familiar;
import com.rs.game.WorldTile;
import com.rs.game.player.Player;
import com.rs.game.player.actions.Summoning.Pouches;
import com.rs.game.player.content.magic.Magic;
public class Voidshifter extends Familiar {
/**
*
*/
private static final long serialVersionUID = 2825822265261250357L;
public Voidshifter(Player owner, Pouches pouch, WorldTile tile,
int mapAreaNameHash, boolean canBeAttackFromOutOfArea) {
super(owner, pouch, tile, mapAreaNameHash, canBeAttackFromOutOfArea);
}
@Override
public String getSpecialName() {
return "Call To Arms";
}
@Override
public String getSpecialDescription() {
return "Teleports the player to Void Outpost.";
}
@Override
public int getBOBSize() {
return 0;
}
@Override
public int getSpecialAmount() {
return 4;
}
@Override
public SpecialAttack getSpecialAttack() {
return SpecialAttack.CLICK;
}
@Override
public boolean submitSpecial(Object object) {
Magic.sendTeleportSpell((Player) object, 14388, -1, 1503, 1502, 0, 0, new WorldTile(2662, 2649, 0), 3, true, Magic.OBJECT_TELEPORT);
return true;
}
}
|
[
"mliberato@gs2012.xyz"
] |
mliberato@gs2012.xyz
|
be9bba0f6be7aacf1cdd9af4b73c42be59b5cbe3
|
fadfc40528c5473c8454a4835ba534a83468bb3b
|
/domain-web/jbb-posting-web/src/main/java/org/jbb/posting/web/PostingWebConfig.java
|
d4ec65c243d34747510dad5af20c6632f1dd3bca
|
[
"Apache-2.0"
] |
permissive
|
jbb-project/jbb
|
8d04e72b2f2d6c088b870e9a6c9dba8aa2e1768e
|
cefa12cda40804395b2d6e8bea0fb8352610b761
|
refs/heads/develop
| 2023-08-06T15:26:08.537367
| 2019-08-25T21:32:19
| 2019-08-25T21:32:19
| 60,918,871
| 4
| 3
|
Apache-2.0
| 2023-09-01T22:21:04
| 2016-06-11T17:20:33
|
Java
|
UTF-8
|
Java
| false
| false
| 613
|
java
|
/*
* Copyright (C) 2018 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.posting.web;
import org.jbb.lib.mvc.MvcConfig;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@ComponentScan
@Import(MvcConfig.class)
public class PostingWebConfig {
}
|
[
"baart92@gmail.com"
] |
baart92@gmail.com
|
c51b287e79e728d8048ad7468955368d740b9df6
|
1ca9599356d80751f4cdb15ddebf424952151813
|
/dart-impl/src/test/java_/com/jetbrains/lang/dart/generate/DartGenerateActionTest.java
|
57d6c30841886db821b167a8633963d82f52a413
|
[] |
no_license
|
consulo/consulo-google-dart
|
59e460375bae07b44c8d9a7a855853ac668cf609
|
4782d6734aee6bdc19542ddf6a394393b8ebb469
|
refs/heads/master
| 2023-07-27T03:29:03.103937
| 2023-07-07T14:30:43
| 2023-07-07T14:30:43
| 10,568,294
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,327
|
java
|
package com.jetbrains.lang.dart.generate;
import consulo.ide.impl.idea.openapi.util.io.FileUtil;
import com.jetbrains.lang.dart.ide.generation.CreateGetterSetterFix;
import com.jetbrains.lang.dart.util.DartTestUtils;
import javax.annotation.Nonnull;
/**
* @author: Fedor.Korotkov
*/
public abstract class DartGenerateActionTest extends DartGenerateActionTestBase {
@Nonnull
@Override
protected String getTestDataPath() {
return DartTestUtils.BASE_TEST_DATA_PATH + consulo.ide.impl.idea.openapi.util.io.FileUtil.toSystemDependentName("/generate/");
}
public void testImplement1() throws Throwable {
doImplementTest();
}
public void testImplement2() throws Throwable {
doImplementTest();
}
public void testImplement3() throws Throwable {
doImplementTest();
}
public void testImplement4() throws Throwable {
doImplementTest();
}
public void testImplement5() throws Throwable {
doImplementTest();
}
public void testImplement_WEB_2479() throws Throwable {
doImplementTest();
}
public void testImplement_WEB_2479_2() throws Throwable {
doImplementTest();
}
public void testImplementMixin1() throws Throwable {
doImplementTest();
}
public void testOverride1() throws Throwable {
doOverrideTest();
}
public void testOverride2() throws Throwable {
doOverrideTest();
}
public void testOverride3() throws Throwable {
doOverrideTest();
}
public void testOverride4() throws Throwable {
doOverrideTest();
}
public void testOverrideMixin1() throws Throwable {
doOverrideTest();
}
public void testGetter1() throws Throwable {
doGetterSetterTest(CreateGetterSetterFix.Strategy.GETTER);
}
public void testGetter2() throws Throwable {
doGetterSetterTest(CreateGetterSetterFix.Strategy.GETTER);
}
public void testSetter1() throws Throwable {
doGetterSetterTest(CreateGetterSetterFix.Strategy.SETTER);
}
public void testGetterSetter1() throws Throwable {
doGetterSetterTest(CreateGetterSetterFix.Strategy.GETTERSETTER);
}
public void testGetterSetter2() throws Throwable {
doGetterSetterTest(CreateGetterSetterFix.Strategy.GETTERSETTER);
}
public void testGetterSetter3() throws Throwable {
doGetterSetterTest(CreateGetterSetterFix.Strategy.GETTERSETTER);
}
}
|
[
"vistall.valeriy@gmail.com"
] |
vistall.valeriy@gmail.com
|
180ec8812269dcfe198e8b7ee580b48f1721562a
|
7a7437a8129a05d8925a4cb457a4c45887e3d855
|
/Companies/Bloomberg/TopKFrequentElements.java
|
1d8a504f1a788be08f565841e05d78dc659f6ac6
|
[] |
no_license
|
arunbadhai/LeetCode-1
|
ea761f5d2e85a456cdb9cc3f894aa18ee6256e74
|
caed0367ee9675bb40854d9beaef385755bc029b
|
refs/heads/master
| 2022-11-26T19:28:00.574292
| 2020-08-10T20:11:21
| 2020-08-10T20:11:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,555
|
java
|
package Companies.Bloomberg;
import java.util.*;
public class TopKFrequentElements {
public List<Integer> topKFrequent(int[] nums, int k) {
Map<Integer, Integer> m = new HashMap<>();
for (int num : nums) {
m.put(num, m.getOrDefault(num, 0)+1);
}
PriorityQueue<Integer> q = new PriorityQueue<>((a, b)->m.get(a)-m.get(b));
for (int num : m.keySet()) {
q.add(num);
if (q.size() > k) {
q.poll();
}
}
List<Integer> re = new ArrayList<>();
while (!q.isEmpty()) {
re.add(q.poll());
}
Collections.reverse(re);
return re;
}
/* Bucket Sorting */
public int[] topKFrequentII(int[] nums, int k) {
Map<Integer, Integer> m = new HashMap<>();
for (int num : nums) {
m.put(num, m.getOrDefault(num, 0)+1);
}
List<Integer>[] bucket = new List[nums.length+1];
for (int key : m.keySet()) {
if (bucket[m.get(key)] == null) {
bucket[m.get(key)] = new ArrayList<>();
}
bucket[m.get(key)].add(key);
}
int[] re = new int[k];
int index = 0;
for (int i = nums.length; i >= 0; i--) {
if (bucket[i] != null) {
for (int e : bucket[i]) {
re[index++] = e;
if (index >= k) {
return re;
}
}
}
}
return re;
}
}
|
[
"victorchennn@gmail.com"
] |
victorchennn@gmail.com
|
a9e3795eca477722f65eff17cc9547d8f7d4ba2b
|
eb9f655206c43c12b497c667ba56a0d358b6bc3a
|
/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/RecursiveCallLineMarkerTest.java
|
a99aa2de7c99db44f492c02e32d7aad69918cf52
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-community
|
2ed226e200ecc17c037dcddd4a006de56cd43941
|
05dbd4575d01a213f3f4d69aa4968473f2536142
|
refs/heads/master
| 2023-09-03T17:06:37.560889
| 2023-09-03T11:51:00
| 2023-09-03T12:12:27
| 2,489,216
| 16,288
| 6,635
|
Apache-2.0
| 2023-09-12T07:41:58
| 2011-09-30T13:33:05
| null |
UTF-8
|
Java
| false
| false
| 1,188
|
java
|
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.java.codeInsight.daemon;
import com.intellij.JavaTestUtil;
import com.intellij.codeInsight.daemon.LineMarkerInfo;
import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl;
import com.intellij.java.JavaBundle;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import java.util.List;
public class RecursiveCallLineMarkerTest extends LightJavaCodeInsightFixtureTestCase {
@Override
protected String getBasePath() {
return JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/daemonCodeAnalyzer/recursive";
}
public void testQualifiedCall() {
myFixture.configureByFile(getTestName(false) + ".java");
myFixture.doHighlighting();
final List<LineMarkerInfo<?>> infoList = DaemonCodeAnalyzerImpl.getLineMarkers(getEditor().getDocument(), getProject());
assertSize(2, infoList);
for (LineMarkerInfo<?> info : infoList) {
assertEquals(JavaBundle.message("tooltip.recursive.call"), info.getLineMarkerTooltip());
}
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
ff2e06d6d4ed77e7a1502d78bf39f962cd6d8f22
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/6/org/apache/commons/math3/linear/BlockFieldMatrix_blockWidth_1590.java
|
79461abce26dbd15d9b3cfd03d556d1d2a5d88b3
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 3,099
|
java
|
org apach common math3 linear
cach friendli implement field matrix fieldmatrix flat arrai store
squar block matrix
implement special design cach friendli squar block
store small arrai effici travers data row major direct
column major direct block time greatli increas perform
algorithm cross direct loop multipl transposit
size squar block paramet tune cach
size target comput processor rule thumb largest
block simultan cach
matrix multipl 36x36 block
regular block repres link block size link block size squar block
hand side bottom side smaller fit matrix dimens squar
block flatten row major order singl dimens arrai
link block size element regular block block
organ row major order
block size 36x36 100x60 matrix store block
block field arrai hold upper left 36x36 squar block
field arrai hold upper center 36x36 squar block field
arrai hold upper 36x28 rectangl block field arrai hold
lower left 24x36 rectangl block field arrai hold lower center
24x36 rectangl block field arrai hold lower 24x28
rectangl
layout complex overhead versu simpl map matric java
arrai neglig small matric gain cach effici lead
fold improv matric moder larg size
param type field element
version
block field matrix blockfieldmatrix field element fieldel abstract field matrix abstractfieldmatrix serializ
width block
param block column blockcolumn column index block sens block
width number column block
block width blockwidth block column blockcolumn
block column blockcolumn block column blockcolumn column block column blockcolumn block size block size
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
8e898ecf94b8e74cd8cd80275e7e11fe0bcdcb52
|
265302da0a7cf8c2f06dd0f96970c75e29abc19b
|
/ar_webapp/src/main/java/org/kuali/kra/proposaldevelopment/web/struts/authorization/ProposalTaskFactory.java
|
99cb4402c955a907a465ac189e68ce61a87253d1
|
[
"Apache-2.0",
"ECL-2.0"
] |
permissive
|
Ariah-Group/Research
|
ee7718eaf15b59f526fca6983947c8d6c0108ac4
|
e593c68d44176dbbbcdb033c593a0f0d28527b71
|
refs/heads/master
| 2021-01-23T15:50:54.951284
| 2017-05-05T02:10:59
| 2017-05-05T02:10:59
| 26,879,351
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,994
|
java
|
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.kuali.kra.proposaldevelopment.web.struts.authorization;
import org.apache.struts.action.ActionForm;
import org.kuali.kra.authorization.Task;
import org.kuali.kra.infrastructure.TaskGroupName;
import org.kuali.kra.proposaldevelopment.document.authorization.ProposalTask;
import org.kuali.kra.proposaldevelopment.web.struts.form.ProposalDevelopmentForm;
import org.kuali.kra.web.struts.authorization.impl.WebTaskFactoryImpl;
import javax.servlet.http.HttpServletRequest;
/**
* The Proposal Task Factory will create a Proposal Task with its
* task name and the proposal development document contained within
* the form.
*/
public class ProposalTaskFactory extends WebTaskFactoryImpl {
/**
* @see org.kuali.kra.web.struts.authorization.WebTaskFactory#createTask(java.lang.String, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest)
*/
public Task createTask(ActionForm form, HttpServletRequest request) {
ProposalDevelopmentForm proposalDevelopmentForm = (ProposalDevelopmentForm) form;
return new ProposalTask(getTaskName(), proposalDevelopmentForm.getProposalDevelopmentDocument());
}
/**
* @see org.kuali.kra.web.struts.authorization.impl.WebTaskFactoryImpl#getTaskGroupName()
*/
@Override
public String getTaskGroupName() {
return TaskGroupName.PROPOSAL;
}
}
|
[
"code@ariahgroup.org"
] |
code@ariahgroup.org
|
9b0aef3513cc07e82a0da60fd746f9c8a51a366d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/3/3_bb0ff81a2c42536c104b3a78529f34f77681bd20/ConversionJoblet/3_bb0ff81a2c42536c104b3a78529f34f77681bd20_ConversionJoblet_s.java
|
302ea5454a3ed091f4f9958e777d4bf6f1f760f6
|
[] |
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
| 2,511
|
java
|
package com.dianping.cat.job.joblet;
import java.io.File;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import com.dianping.cat.job.spi.JobCmdLine;
import com.dianping.cat.job.spi.joblet.Joblet;
import com.dianping.cat.job.spi.joblet.JobletContext;
import com.dianping.cat.job.spi.joblet.JobletMeta;
import com.dianping.cat.job.spi.mapreduce.MessageTreeWritable;
import com.dianping.cat.message.internal.MessageId;
import com.dianping.cat.message.internal.MessageIdFactory;
import com.dianping.cat.message.spi.MessageTree;
import com.dianping.cat.storage.dump.LocalMessageBucket;
import com.dianping.cat.storage.dump.MessageBucket;
import org.unidal.lookup.ContainerHolder;
@JobletMeta(name = "conversion", description = "File Conversion", keyClass = IntWritable.class, valueClass = IntWritable.class, reducerNum = 1)
public class ConversionJoblet extends ContainerHolder implements Joblet<IntWritable, IntWritable> {
private LocalMessageBucket m_bucket;
private MessageIdFactory m_factory;
@Override
public boolean initialize(JobCmdLine cmdLine) {
String inputPath = cmdLine.getArg("inputPath", 0, null);
String outputPath = cmdLine.getArg("outputPath", 1, null);
if (inputPath != null) {
cmdLine.setProperty("inputPath", inputPath);
}
if (outputPath != null) {
cmdLine.setProperty("outputPath", outputPath);
}
return true;
}
@Override
public void map(JobletContext context, MessageTreeWritable treeWritable) throws IOException, InterruptedException {
MessageTree tree = treeWritable.get();
if (m_factory == null) {
m_factory = new MockMessageIdFactory();
m_factory.setIpAddress("7f000001");
m_factory.initialize("Test");
}
if (m_bucket == null) {
m_bucket = (LocalMessageBucket) lookup(MessageBucket.class, LocalMessageBucket.ID);
m_bucket.setBaseDir(new File("/Users/qmwu/dump2"));
m_bucket.initialize("GroupService-10.1.6.108");
}
try {
tree.setMessageId(m_factory.getNextId());
MessageId id = MessageId.parse(tree.getMessageId());
m_bucket.store(tree, id);
} catch (Exception e) {
System.out.println(e);
}
}
@Override
public void reduce(JobletContext context, IntWritable key, Iterable<IntWritable> stats) throws IOException {
}
@Override
public void summary() {
}
static class MockMessageIdFactory extends MessageIdFactory {
@Override
protected long getTimestamp() {
return 1343532130488L;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
6da505b7536fd537ebabc5184022c2a81ed38bc9
|
2c6e2ba03eb71ca45fe690ff6e4586f6e2fa0f17
|
/material/apks/diva-beta-jdk/sources/jakhar/aseem/diva/Hardcode2Activity.java
|
eb1ddb100d61b1db6c17e77f90047c7ac4f5eff2
|
[] |
no_license
|
lcrcastor/curso-mobile-2019
|
3088a196139b3e980ed6e09797a0bbf5efb6440b
|
7585fccb6437a17c841772c1d9fb0701d6c68042
|
refs/heads/master
| 2023-04-06T21:46:32.333236
| 2020-10-30T19:47:54
| 2020-10-30T19:47:54
| 308,680,747
| 0
| 1
| null | 2023-03-26T06:57:57
| 2020-10-30T16:08:31
|
Java
|
UTF-8
|
Java
| false
| false
| 869
|
java
|
package jakhar.aseem.diva;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class Hardcode2Activity extends AppCompatActivity {
private DivaJni djni;
/* access modifiers changed from: protected */
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView((int) R.layout.activity_hardcode2);
this.djni = new DivaJni();
}
public void access(View view) {
if (this.djni.access(((EditText) findViewById(R.id.hc2Key)).getText().toString()) != 0) {
Toast.makeText(this, "Access granted! See you on the other side :)", 0).show();
} else {
Toast.makeText(this, "Access denied! See you in hell :D", 0).show();
}
}
}
|
[
"luis@MARK-2.local"
] |
luis@MARK-2.local
|
94e5b9031d16bf73efb6da5871e78f2b83f69df1
|
c1791bce8b55528352e9b4b5bfd07367733a279e
|
/MineTweaker3-MC1710-Main/src/main/java/minetweaker/mc1710/brackets/LiquidBracketHandler.java
|
421d0cba777ce208fdd421aa89497d8a476c6648
|
[] |
no_license
|
AnodeCathode/MineTweaker3
|
612ccd943729e755a3feafffeaf4a836e321eb92
|
f254aa99e33e2549757fc77ca83aeeca53f89bcb
|
refs/heads/master
| 2021-01-17T14:13:04.603498
| 2015-08-12T04:26:42
| 2015-08-12T04:26:42
| 40,580,018
| 0
| 0
| null | 2015-08-12T04:22:37
| 2015-08-12T04:22:37
| null |
UTF-8
|
Java
| false
| false
| 2,639
|
java
|
package minetweaker.mc1710.brackets;
import java.util.List;
import minetweaker.IBracketHandler;
import minetweaker.annotations.BracketHandler;
import minetweaker.mc1710.liquid.MCLiquidStack;
import minetweaker.api.liquid.ILiquidStack;
import minetweaker.runtime.GlobalRegistry;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import stanhebben.zenscript.compiler.IEnvironmentGlobal;
import stanhebben.zenscript.expression.ExpressionCallStatic;
import stanhebben.zenscript.expression.ExpressionString;
import stanhebben.zenscript.expression.partial.IPartialExpression;
import stanhebben.zenscript.parser.Token;
import stanhebben.zenscript.symbols.IZenSymbol;
import stanhebben.zenscript.type.natives.IJavaMethod;
import stanhebben.zenscript.type.natives.JavaMethod;
import stanhebben.zenscript.util.ZenPosition;
/**
*
* @author Stan
*/
@BracketHandler
public class LiquidBracketHandler implements IBracketHandler {
public static ILiquidStack getLiquid(String name) {
Fluid fluid = FluidRegistry.getFluid(name);
if (fluid != null) {
return new MCLiquidStack(new FluidStack(fluid, 1));
} else {
return null;
}
}
@Override
public IZenSymbol resolve(IEnvironmentGlobal environment, List<Token> tokens) {
if (tokens.size() > 2) {
if (tokens.get(0).getValue().equals("liquid") && tokens.get(1).getValue().equals(":")) {
return find(environment, tokens, 2, tokens.size());
}
}
return null;
}
private IZenSymbol find(IEnvironmentGlobal environment, List<Token> tokens, int startIndex, int endIndex) {
StringBuilder valueBuilder = new StringBuilder();
for (int i = startIndex; i < endIndex; i++) {
Token token = tokens.get(i);
valueBuilder.append(token.getValue());
}
Fluid fluid = FluidRegistry.getFluid(valueBuilder.toString());
if (fluid != null) {
return new LiquidReferenceSymbol(environment, valueBuilder.toString());
}
return null;
}
private class LiquidReferenceSymbol implements IZenSymbol {
private final IEnvironmentGlobal environment;
private final String name;
public LiquidReferenceSymbol(IEnvironmentGlobal environment, String name) {
this.environment = environment;
this.name = name;
}
@Override
public IPartialExpression instance(ZenPosition position) {
IJavaMethod method = JavaMethod.get(
GlobalRegistry.getTypeRegistry(),
LiquidBracketHandler.class,
"getLiquid",
String.class);
return new ExpressionCallStatic(
position,
environment,
method,
new ExpressionString(position, name));
}
}
}
|
[
"stanhebben@gmail.com"
] |
stanhebben@gmail.com
|
3673a253873ef92a8534592bdab977d6a4d1895a
|
dafaa331edc190827a30254d7578aadcc006ae1d
|
/app/src/main/java/com/tajiang/leifeng/model/OrderGoods.java
|
a882b785b2401ff504ff2be1804da5f16c233b06
|
[] |
no_license
|
yuexingxing/LeiFeng_studio
|
e960933fa723dcb677167c132102e11b7a72fec7
|
831f6530264b5c3233d2c12b269cac3600401d54
|
refs/heads/master
| 2020-03-09T08:54:41.458320
| 2018-04-09T01:28:36
| 2018-04-09T01:28:36
| 128,699,809
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,021
|
java
|
package com.tajiang.leifeng.model;
import java.io.Serializable;
import java.math.BigDecimal;
public class OrderGoods implements Serializable{
private static final long serialVersionUID = -525985592619417890L;
private String id;
private String orderId;
private String goodsId;
private String goodsName;
private BigDecimal goodsPrice;
private Integer goodsQty;
private String goodsImage;
private BigDecimal mealFee; //餐盒费
private BigDecimal goodsPayPrice;
private BigDecimal goodsMarketPrice;
private String storeId;
private String buyerId;
private String goodsType;
private EvaluateGoods evaluateGoods;
public BigDecimal getMealFee() {
return mealFee;
}
public void setMealFee(BigDecimal mealFee) {
this.mealFee = mealFee;
}
public BigDecimal getGoodsMarketPrice() {
return goodsMarketPrice;
}
public void setGoodsMarketPrice(BigDecimal goodsMarketPrice) {
this.goodsMarketPrice = goodsMarketPrice;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getGoodsId() {
return goodsId;
}
public void setGoodsId(String goodsId) {
this.goodsId = goodsId;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName == null ? null : goodsName.trim();
}
public BigDecimal getGoodsPrice() {
return goodsPrice;
}
public void setGoodsPrice(BigDecimal goodsPrice) {
this.goodsPrice = goodsPrice;
}
public Integer getGoodsQty() {
return goodsQty;
}
public void setGoodsQty(Integer goodsQty) {
this.goodsQty = goodsQty;
}
public String getGoodsImage() {
return goodsImage;
}
public void setGoodsImage(String goodsImage) {
this.goodsImage = goodsImage == null ? null : goodsImage.trim();
}
public BigDecimal getGoodsPayPrice() {
return goodsPayPrice;
}
public void setGoodsPayPrice(BigDecimal goodsPayPrice) {
this.goodsPayPrice = goodsPayPrice;
}
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
public String getBuyerId() {
return buyerId;
}
public void setBuyerId(String buyerId) {
this.buyerId = buyerId;
}
public String getGoodsType() {
return goodsType;
}
public void setGoodsType(String goodsType) {
this.goodsType = goodsType == null ? null : goodsType.trim();
}
public EvaluateGoods getEvaluateGoods() {
return evaluateGoods;
}
public void setEvaluateGoods(EvaluateGoods evaluateGoods) {
this.evaluateGoods = evaluateGoods;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
[
"670176656@qq.com"
] |
670176656@qq.com
|
36a39ad49c99c5af4e30dc647f94295f41e07927
|
72f750e4a5deb0a717245abd26699bd7ce06777f
|
/ehealth/.svn/pristine/97/978aeb314c26ed26ed63a8ad573ae665f1f0f5d8.svn-base
|
d5e34533228cb41058d7920ea157706611bea4a4
|
[] |
no_license
|
vadhwa11/newproject3eh
|
1d68525a2dfbd7acb1a87f9d60f150cef4f12868
|
b28c7892e8b0c3f201abb3a730b21e75d9583ddf
|
refs/heads/master
| 2020-05-15T23:20:17.716904
| 2019-04-21T12:14:46
| 2019-04-21T12:14:46
| 182,526,354
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,764
|
package jkt.hms.masters.business.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the ipd_kit_issue_details table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="ipd_kit_issue_details"
*/
public abstract class BaseIpdKitIssueDetails implements Serializable {
public static String REF = "IpdKitIssueDetails";
public static String PROP_QUANTITY = "Quantity";
public static String PROP_ITEM = "Item";
public static String PROP_HEADER = "Header";
public static String PROP_ITEM_NAME = "ItemName";
public static String PROP_ID = "Id";
// constructors
public BaseIpdKitIssueDetails () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseIpdKitIssueDetails (java.lang.Integer id) {
this.setId(id);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String itemName;
private java.lang.Integer quantity;
// many to one
private jkt.hms.masters.business.IpdKitIssueHeader header;
private jkt.hms.masters.business.MasStoreItem item;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="sequence"
* column="details_id"
*/
public java.lang.Integer getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Integer id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: item_name
*/
public java.lang.String getItemName () {
return itemName;
}
/**
* Set the value related to the column: item_name
* @param itemName the item_name value
*/
public void setItemName (java.lang.String itemName) {
this.itemName = itemName;
}
/**
* Return the value associated with the column: quantity
*/
public java.lang.Integer getQuantity () {
return quantity;
}
/**
* Set the value related to the column: quantity
* @param quantity the quantity value
*/
public void setQuantity (java.lang.Integer quantity) {
this.quantity = quantity;
}
/**
* Return the value associated with the column: header_id
*/
public jkt.hms.masters.business.IpdKitIssueHeader getHeader () {
return header;
}
/**
* Set the value related to the column: header_id
* @param header the header_id value
*/
public void setHeader (jkt.hms.masters.business.IpdKitIssueHeader header) {
this.header = header;
}
/**
* Return the value associated with the column: item_id
*/
public jkt.hms.masters.business.MasStoreItem getItem () {
return item;
}
/**
* Set the value related to the column: item_id
* @param item the item_id value
*/
public void setItem (jkt.hms.masters.business.MasStoreItem item) {
this.item = item;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof jkt.hms.masters.business.IpdKitIssueDetails)) return false;
else {
jkt.hms.masters.business.IpdKitIssueDetails ipdKitIssueDetails = (jkt.hms.masters.business.IpdKitIssueDetails) obj;
if (null == this.getId() || null == ipdKitIssueDetails.getId()) return false;
else return (this.getId().equals(ipdKitIssueDetails.getId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
|
[
"vadhwa11@gmail.com"
] |
vadhwa11@gmail.com
|
|
b367482c8db4e6e369ea0c5524a340d6b5d16acb
|
81c4910a6784b3f0b512d972054d33cca75a7cd6
|
/src/main/java/com/guohuai/mmp/sms/SMSReq.java
|
70a3febc79cc24b952e96f3b9170f1e9c52c8e09
|
[] |
no_license
|
songpanyong/m-boot
|
0eeef760b87ede204b5d891fd7090315248a0fce
|
21717db7488daf6bd3f341b677e0424c9fe70b7a
|
refs/heads/master
| 2020-03-10T04:46:55.738802
| 2018-04-12T05:51:13
| 2018-04-12T05:51:13
| 129,201,268
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 506
|
java
|
package com.guohuai.mmp.sms;
import org.hibernate.validator.constraints.NotBlank;
import com.guohuai.basic.component.ext.web.parameter.validation.Enumerations;
@lombok.Data
public class SMSReq {
@NotBlank(message = "手机号码不能为空!")
String phone;
@Enumerations(values = { "regist", "login", "forgetlogin", "forgetpaypwd", "normal","bindcard"}, message = "短信类型参数有误!")
String smsType;
String veriCode;
String[] values;
/** 图形验证码 */
String imgvc;
}
|
[
"songpanyong@163.com"
] |
songpanyong@163.com
|
9e0f7dc3abb6c1898558b0354d10756ee1082c52
|
401f4a57e06a3fc372f013fb4633313932c8229a
|
/src/com/dh_international/jprestaproduct/schemas/ProductsDisplay/IdTaxRulesGroupElement.java
|
4065ba2cf3d8a383165509c69f2a79c636f78163
|
[] |
no_license
|
solidturtle/workspace-tp
|
49ae3cfe42497933fcf116904d859ccfe7f330d0
|
568deab542b52cb89763335d62a5e6eea0c554c5
|
refs/heads/master
| 2021-01-25T08:54:27.142100
| 2013-10-30T19:01:18
| 2013-10-30T19:01:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,425
|
java
|
U2FsdGVkX19x4o91wRhYyzSNPYIUgaAYiV3MXspXYmqlmfSVlRC2ogDZapG4Ia3v
OU+SK2jUmqIu49Hi+2NFPamBDTii0VekLNslpQN/R/TE8o2HnudMHPFkBgyt751e
H25/GgqIu3S3Z7Y37eOVHTJkoFVyQTvoifJRsctRNKaJSkDzu2qHQmJdQTaZPQml
ewjKkfgDujPxGgmlMJfeO2Zneka7xjZMIESGCZLRZiX3Nr98I5Y4goqdzV4FVQKq
47wR/ZlRROdI1pw19MvBdfKQGC7kuq1phlrVq5C+HI23ovDl0dR1TfUHPbD5IdKX
zb3TH8SFu7rYtSaEcLLAeo9lkH2Evib4H6MTQGNgTFbz5EcrTpiqQcqHedIMEGMs
ZVsMxUUbl1tw3VXOZkeNlu+rIXv3KL4tNPobz3amVnaosMZWA/v9GPoroiZKsYiL
DytiWvkBdZU9F3YGPwBw3gwwtkRqSPMNtQEmLR/1rqrNSDZmhUFKT8zemjiiS/6n
jkU3Oo6RmUjRNhnUMnzHa+FKTuRuhYQTFr5DEdtSc0SB13jl10SHazVeg3w41+MN
0veUIfzL4PbuiOt++N+zsLUNRigYpc7xvJWoinZJostKBIZym7CJifSVgfAgnNBj
wEVQVeDxo6r6QVQ2rwYUJ7L1qutfh4jt2IrPD6R8KopKBIZym7CJifSVgfAgnNBj
tHk8jGdfCI0f+GZvdPRyET0xMOTX/2Q8qkdLT3UVKaYSXOOyZMbkIGYjq7Weg+mU
94xGgKaLYdr4Ze4aM3MQXVMjGOknTw/Vb2eOsWGApwrQtGR+Z6/MOL8/JleNVqEx
mK4MXdxCgZB7NCN2T3uy96REH+cTkbCQ58BKRjMxd+oSXOOyZMbkIGYjq7Weg+mU
Ym3If7t9fH5GRYEnguukebP/PbeUXoRxQnxtZJUGNcQSXOOyZMbkIGYjq7Weg+mU
SrE4xAFQgkU8iAaCPetXVlCsa2oOX7i1/ZABjoQOx1WMwkd443JRQ453wbceTp3o
/s2lzrTVrJp68b8uk/NeMbyvUgoULI89yYWwmitNckH39OCUP+9CvpDno9m4Dsws
Mo18KLCpFTYSEg7MMieQGc0Pti+qc/t6rLSyMnr2Epsbx8tgGZnN+FVjC+g8ZL3K
FgQKb+KBm/kgQ5LXFUXgfmz7K+7OSEr2b45XwL9VkdHB0Wt36N55vW4Lzmv5Yjht
YdTKJ9NPhIsOOh8Ir0VTVleIEUsoq4xKIGho6KfYvJjU+GG9TEzTn1szYF0Bjo7q
gBn3lkS9zJZZFu28R9HO6IUagfT4Le1BZJuMC+qSMKIAs/J0E/KW8Ls/vW+9WrZr
a8/l/fyHgUikrU83DC7tc3XhHIVYxJ5knAnwHthUvZK5bkQDoTFbL51I2sTxoqtH
e0J3mu46Qeyjjr0eQc7SCB1acnfKYuFZKaoPxy3C96P02z1fYQDZnZ/TrouG3xpt
i52C7ytVoiLc5FW5cScglkfaplZytVitvQLFIJaO5Kc4F9DF7NtP5dd5Dra1cctd
mmv7A0pRjGW9yD+/Ah/q+YA8MGOtjkOnEwHEoAncNf9RDxLOWXpKxbEs5N1QYacw
3hLVw41DywKZyajZ02u6u82b4XOWm+2waxPvBPfYRpjJ42W+3SMZRBGOJs8K4s4N
+flh1wfBMeO4MXPQRyVPgzg8lw+N6FQtxL6/9T20azIT+NYHMhiLgIcmg2KklTpa
Vj30XoJqqk5kGvqDGoR5EIiGUVoc3Th5cCsXnEf3iqNvbq3iS8kv/gBjfFZIrxD9
R4fuUfaQhyI5IXvBnHJsWEnilZcpk/Acn7sQREtszwKGci4GKg4tTOuVMMGqD7Fj
5Z33P3eUIUOrIOLrr0bUhNXxWYv/pCGhOON/+eMj63monJs0eUleiTZ77umPvqrq
zb2mAI4gepWG8V/9NMuE14ncVIKh0fLui2klwawkm07gUuoyr0bkSpGk8EZTwbVl
TDAD/04PXFSveO9AE6BgGxsoKY1vLZi2Aidd5HB+nlFpCKwx2NkH8T4J4mDbWojN
YyTgINszPBd41nzbOIM2a4sBL7uVRmCdWZ63/AEogdEvmXWe1xiOANU3VGCyJ745
V+78C6JZ7EyfRZNn1gJRt2ny1WiTMOO9Bjm/P/UPJo6/E/yJemKmAmH8md0wYMMk
9NAzyz3nbximwbtwWJAlzqXDbScqlBQkmuqxx1wssHhGs+5uJqhsJaKkwUSl4gA4
Wa3ZQeTAoVwzKkQAJFg4dFDbUlnF8LMwFv0msKVfsDnyO7TCB70Wqzy76Et5nXiW
yx8EUV9Z8DQ5Vb3axcEM1bpdAAStzuk12gq6NYmiSn0eB8kR2dMNqDeK7XaosKWA
ywExh8mOrqcc1FZQM7VqZYKk71OFfChMf7TwIAc6VAud4562NfxYa/qITXAl0SC8
yGPqzAleHOocf+weN79TDlZKFAkmsY0Hwvma61qqSBNeM853mT0OlZcEPC6bsXzd
/zI33anFHHKGarAG0alrbWONFw6+LHOv0H5fbD4s31emhKqw/DvonBswuBIpZFTr
3roQOeW4rYWGop89QZTO+lkxM0dF0WgNnYolINMQ3kr/NDTOV4cHch0VPCneJd9W
z51/G17AkxWNi/W2dJGyeOmJge83uUxdY1TX8I+ntoaL5KzkHED2EIjKN4WR5LZV
sB6hHtK9c5kAKlNglzZ6xWBwSjFpmR2rnAO4mJy9/X8rw9fHoG0J0/9GZifdT7JM
e9fzPLTSvtJq+RMrsgMPZWzpc5X0C9RBD6qiehlp2p0kQsyY8LaWSfoF+cEnnHAM
/zI33anFHHKGarAG0alrbflyHwwLQRYdDIILlV9kOL6wHqMMunZVBHgvXVPHZm2R
cY8QmyVc4y9REnYDmQgMCibRlCWQsekB31uaIN3Ts3o3OcLWsglA3Qz/JKMNzOLj
eBpcva/vjvG7CWLzzGlSQjISsDN9EZV/qmQDPNyE5vWxKMj2Za3tC8eOOmNKS3QP
A5Daxn0scozg/58nW08gCeBdztHAVVbOQ732oJByUnp4EDSOBCe2uNPST1uqJtPc
HOCNMI7+Wejytibz38eriRionert1sE7LOLguzr40xufj4EE+43/7Ti5KOfjmSmm
WIJQZNWpjjvtaJNaDa8S32yFQ8cNviOx+zmLR5F7uTgeyZaK42bvIDlFsZLbRlaN
fNyT+ntkTfROJ8JGzV+OSg4wAieGkl3KzAGSj+tYbdr733IpKgTb63Qq6Vnsio2w
09pidnLQJY71pLDqvGw52Tig/pjhvORhImI/1y4SdyLWYRNPYPLqXujqk+rr9eO+
Zj/I4iIOWEATdEAakyzTmB6kKnZ1FHJnJDnJM99ay0s=
|
[
"guillaume.sorbier@gmail.com"
] |
guillaume.sorbier@gmail.com
|
ddeb3efeade964f94ce99aa9a3f60ba6da0c6db1
|
9cfe61ed093a4ba0f253dc52db11f337cdf034a8
|
/app/src/main/java/com/ifeell/app/aboutball/game/bean/ResultGameLiveDetailsBean.java
|
50f140e1fbbb59b0362b818c5788bd4aeadd6303
|
[] |
no_license
|
Hu12037102/AboutBall
|
1e3cd39e7ad152508398c23fb577135e0a2ea830
|
27d0e7d34a6545946df39b13ebda5ada76eed6cd
|
refs/heads/master
| 2021-05-23T08:23:18.840879
| 2019-10-22T14:28:58
| 2019-10-22T14:28:58
| 253,191,665
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 650
|
java
|
package com.ifeell.app.aboutball.game.bean;
import com.ifeell.app.aboutball.home.bean.ResultNewsBean;
import java.util.List;
/**
* 作者: 胡庆岭
* 创建时间: 2019/6/26 16:05
* 更新时间: 2019/6/26 16:05
* 描述:赛事回顾bean
*/
public class ResultGameLiveDetailsBean {
public List<MatchVideoBean> matchVideoList;
public List<ResultNewsBean> newsList;
public static class MatchVideoBean{
public long videoId;
public long matchId;
public String description;
public String photoUrl;
public String videoUrl;
public String ordinal;
public boolean isCheck;
}
}
|
[
"1203747102@qq.com"
] |
1203747102@qq.com
|
dba37004676e349388f909ef674f0546605c7623
|
b33caac805d8c67b10e357f96bd3121d00f2d496
|
/app/src/main/java/com/zritc/colorfulfund/data/response/user/PrepareChangeTransPwd.java
|
68030caa1d8183da9b0ff43607f9e80b886af442
|
[] |
no_license
|
xiaoqianchang/ColorfulFund
|
a48c18d44aa6495859aade8bd9b5821807be5145
|
d3079ceb7399571be2a9da81e114f8bcddf3d5f9
|
refs/heads/master
| 2020-05-21T16:43:05.588115
| 2016-09-23T12:44:24
| 2016-09-23T12:44:24
| 65,546,557
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,017
|
java
|
package com.zritc.colorfulfund.data.response.user;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
/**
* Net Response Bean 修改交易密码前,对用户身份进行验证
*
* package: com.zrt.dc.controllers.user
* svcName(服务名): PrepareChangeTransPwd
* svcCaption( 服务中文名,可用于注释): 修改交易密码前,对用户身份进行验证
* mode(http_get or http_post): HTTP_POST
* target(与init里的key相对应): http://172.16.101.201:9006/user/prepareChangeTransPwd
* comments(服务详细备注,可用于注释): 修改交易密码前,对用户身份进行验证
* <p>
* Created by Chang.Xiao on .
*/
public class PrepareChangeTransPwd implements Serializable {
/**
* session id
*/
public String sid = "";
/**
* 请求 id
*/
public String rid = "";
/**
* 返回代码
*/
public String code = "";
/**
* 返回信息
*/
public String msg = "";
/**
* 接口类型
*/
public String optype = "";
@Override
public String toString() {
return "PrepareChangeTransPwd{" +
"sid='" + sid + '\'' +
", rid='" + rid + '\'' +
", code='" + code + '\'' +
", msg='" + msg + '\'' +
", optype='" + optype + '\'' +
'}';
}
/**
* parse json
*/
public synchronized PrepareChangeTransPwd parseJson(String json) throws JSONException {
JSONObject jsonObject = new JSONObject(json);
if (jsonObject.isNull("sid")) {
Log.d("PrepareChangeTransPwd", "has no mapping for key " + "sid" + " on " + new Throwable().getStackTrace()[0].getClassName() + ", line number " + new Throwable().getStackTrace()[0].getLineNumber());
}
this.sid = jsonObject.optString("sid");
if (jsonObject.isNull("rid")) {
Log.d("PrepareChangeTransPwd", "has no mapping for key " + "rid" + " on " + new Throwable().getStackTrace()[0].getClassName() + ", line number " + new Throwable().getStackTrace()[0].getLineNumber());
}
this.rid = jsonObject.optString("rid");
if (jsonObject.isNull("code")) {
Log.d("PrepareChangeTransPwd", "has no mapping for key " + "code" + " on " + new Throwable().getStackTrace()[0].getClassName() + ", line number " + new Throwable().getStackTrace()[0].getLineNumber());
}
this.code = jsonObject.optString("code");
if (jsonObject.isNull("msg")) {
Log.d("PrepareChangeTransPwd", "has no mapping for key " + "msg" + " on " + new Throwable().getStackTrace()[0].getClassName() + ", line number " + new Throwable().getStackTrace()[0].getLineNumber());
}
this.msg = jsonObject.optString("msg");
if (jsonObject.isNull("optype")) {
Log.d("PrepareChangeTransPwd", "has no mapping for key " + "optype" + " on " + new Throwable().getStackTrace()[0].getClassName() + ", line number " + new Throwable().getStackTrace()[0].getLineNumber());
}
this.optype = jsonObject.optString("optype");
return this;
}
}
|
[
"qianchang.xiao@gmail.com"
] |
qianchang.xiao@gmail.com
|
37f4dbfe26ee0904032a96be874b40b2b3a2b96a
|
77eb7add14f22e2a0e7e019ba5f843c17a01dd29
|
/src/main/java/ng8booot/web/rest/errors/ErrorConstants.java
|
e140dd7424bdfdc8fe192796de6e72218f8c3f36
|
[] |
no_license
|
thomas-mwania/ng8booot
|
c883c67b025cdfb73e5335df2bbd9f72c0165b12
|
e8a75eb8e294d1e3d2ad39564143144a13c4bdfc
|
refs/heads/master
| 2022-12-23T06:11:11.887631
| 2019-06-11T08:15:22
| 2019-06-11T08:15:22
| 191,325,391
| 0
| 0
| null | 2022-12-16T04:52:45
| 2019-06-11T08:15:09
|
Java
|
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package ng8booot.web.rest.errors;
import java.net.URI;
public final class ErrorConstants {
public static final String ERR_CONCURRENCY_FAILURE = "error.concurrencyFailure";
public static final String ERR_VALIDATION = "error.validation";
public static final String PROBLEM_BASE_URL = "https://www.jhipster.tech/problem";
public static final URI DEFAULT_TYPE = URI.create(PROBLEM_BASE_URL + "/problem-with-message");
public static final URI CONSTRAINT_VIOLATION_TYPE = URI.create(PROBLEM_BASE_URL + "/constraint-violation");
public static final URI ENTITY_NOT_FOUND_TYPE = URI.create(PROBLEM_BASE_URL + "/entity-not-found");
public static final URI INVALID_PASSWORD_TYPE = URI.create(PROBLEM_BASE_URL + "/invalid-password");
public static final URI EMAIL_ALREADY_USED_TYPE = URI.create(PROBLEM_BASE_URL + "/email-already-used");
public static final URI LOGIN_ALREADY_USED_TYPE = URI.create(PROBLEM_BASE_URL + "/login-already-used");
public static final URI EMAIL_NOT_FOUND_TYPE = URI.create(PROBLEM_BASE_URL + "/email-not-found");
private ErrorConstants() {
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
a6519bf671518c41bc0fab58651b093eda67f622
|
a7da271e01708ad4fd15d68fb0313ebbcc844083
|
/emxVCDocument_mxJPO.java
|
96abcb578103ee0a3719669f60ff8deb1c2be523
|
[] |
no_license
|
hellozjf/JPO
|
73c2008a476206158f88987a713db6573b28eaf9
|
630920f4f026db93575166276ba59ad9d72493eb
|
refs/heads/master
| 2021-06-25T21:16:59.633721
| 2017-09-12T10:24:31
| 2017-09-12T10:24:31
| 100,002,796
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,528
|
java
|
/*
** emxCommonDocument.java
**
** Copyright (c) 1992-2016 Dassault Systemes.
** All Rights Reserved.
** This program contains proprietary and trade secret information of MatrixOne,
** Inc. Copyright notice is precautionary only
** and does not evidence any actual or intended publication of such program
**
*/
import com.matrixone.apps.common.util.ComponentsUtil;
import matrix.db.*;
public class emxVCDocument_mxJPO extends emxVCDocumentBase_mxJPO
{
/**
* Constructor.
*
* @param context the eMatrix <code>Context</code> object
* @param args holds no arguments
* @throws Exception if the operation fails
* @since Common 11.0
* @grade 0
*/
public emxVCDocument_mxJPO (Context context, String[] args)
throws Exception
{
super(context, args);
}
/**
* This method is executed if a specific method is not specified.
*
* @param context the eMatrix <code>Context</code> object
* @param args holds no arguments
* @returns int
* @throws Exception if the operation fails
* @since Common 11.0
*/
public int mxMain(Context context, String[] args)
throws Exception
{
if (true)
{
throw new Exception(ComponentsUtil.i18nStringNow("emxComponents.Generic.MethodOnCommonFile", context.getLocale().getLanguage()));
}
return 0;
}
}
|
[
"908686171@qq.com"
] |
908686171@qq.com
|
cea54e87f568289b368f1fb45e2ab7883349d539
|
999030f60e1ac3be7cdbf9da30f6cf70de148bf7
|
/dishubv2/src/com/x3/dishub/entity/Spio.java
|
07965015a5a0d524077a35aedfb7248a2f24a57c
|
[] |
no_license
|
hendrosteven/x3-solutions
|
1ea8b62749487c87b283ea280d771fbae23dfe35
|
5ce5129237abf5600dfcc33df0ea9e61074f8554
|
refs/heads/master
| 2021-01-10T10:39:00.521923
| 2013-07-04T05:15:16
| 2013-07-04T05:15:16
| 49,036,926
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,338
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.x3.dishub.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
/**
*
* @author Hendro Steven
*/
@Entity
public class Spio implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String nomor;
private String sifat;
private String perihal;
@Temporal(value = javax.persistence.TemporalType.DATE)
private Date tanggalPenetapan;
@Temporal(value = javax.persistence.TemporalType.DATE)
private Date tanggalBerakhir;
@ManyToOne
private Perusahaan perusahaan;
@Temporal(value = javax.persistence.TemporalType.DATE)
private Date tanggalPermohonan;
private String nomorSuratPermohonan;
@ManyToOne
private Merk merk;
private String typeJenis;
private String tahunKendaraan;
private int jumlah;
@ManyToOne
private Trayek trayek;
private String lainLain;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Override
public String toString() {
return this.getNomor();
}
/**
* @return the nomor
*/
public String getNomor() {
return nomor;
}
/**
* @param nomor the nomor to set
*/
public void setNomor(String nomor) {
this.nomor = nomor;
}
/**
* @return the sifat
*/
public String getSifat() {
return sifat;
}
/**
* @param sifat the sifat to set
*/
public void setSifat(String sifat) {
this.sifat = sifat;
}
/**
* @return the perihal
*/
public String getPerihal() {
return perihal;
}
/**
* @param perihal the perihal to set
*/
public void setPerihal(String perihal) {
this.perihal = perihal;
}
/**
* @return the tanggalPenetapan
*/
public Date getTanggalPenetapan() {
return tanggalPenetapan;
}
/**
* @param tanggalPenetapan the tanggalPenetapan to set
*/
public void setTanggalPenetapan(Date tanggalPenetapan) {
this.tanggalPenetapan = tanggalPenetapan;
}
/**
* @return the tanggalBerakhir
*/
public Date getTanggalBerakhir() {
return tanggalBerakhir;
}
/**
* @param tanggalBerakhir the tanggalBerakhir to set
*/
public void setTanggalBerakhir(Date tanggalBerakhir) {
this.tanggalBerakhir = tanggalBerakhir;
}
/**
* @return the perusahaan
*/
public Perusahaan getPerusahaan() {
return perusahaan;
}
/**
* @param perusahaan the perusahaan to set
*/
public void setPerusahaan(Perusahaan perusahaan) {
this.perusahaan = perusahaan;
}
/**
* @return the tanggalPermohonan
*/
public Date getTanggalPermohonan() {
return tanggalPermohonan;
}
/**
* @param tanggalPermohonan the tanggalPermohonan to set
*/
public void setTanggalPermohonan(Date tanggalPermohonan) {
this.tanggalPermohonan = tanggalPermohonan;
}
/**
* @return the nomorSuratPermohonan
*/
public String getNomorSuratPermohonan() {
return nomorSuratPermohonan;
}
/**
* @param nomorSuratPermohonan the nomorSuratPermohonan to set
*/
public void setNomorSuratPermohonan(String nomorSuratPermohonan) {
this.nomorSuratPermohonan = nomorSuratPermohonan;
}
/**
* @return the merk
*/
public Merk getMerk() {
return merk;
}
/**
* @param merk the merk to set
*/
public void setMerk(Merk merk) {
this.merk = merk;
}
/**
* @return the typeJenis
*/
public String getTypeJenis() {
return typeJenis;
}
/**
* @param typeJenis the typeJenis to set
*/
public void setTypeJenis(String typeJenis) {
this.typeJenis = typeJenis;
}
/**
* @return the tahunKendaraan
*/
public String getTahunKendaraan() {
return tahunKendaraan;
}
/**
* @param tahunKendaraan the tahunKendaraan to set
*/
public void setTahunKendaraan(String tahunKendaraan) {
this.tahunKendaraan = tahunKendaraan;
}
/**
* @return the jumlah
*/
public int getJumlah() {
return jumlah;
}
/**
* @param jumlah the jumlah to set
*/
public void setJumlah(int jumlah) {
this.jumlah = jumlah;
}
/**
* @return the trayek
*/
public Trayek getTrayek() {
return trayek;
}
/**
* @param trayek the trayek to set
*/
public void setTrayek(Trayek trayek) {
this.trayek = trayek;
}
/**
* @return the lainLain
*/
public String getLainLain() {
return lainLain;
}
/**
* @param lainLain the lainLain to set
*/
public void setLainLain(String lainLain) {
this.lainLain = lainLain;
}
}
|
[
"hendro.steven@gmail.com"
] |
hendro.steven@gmail.com
|
c933b189e0d9f75bc190926de0834f10425ec3ea
|
33ff1fa4c22baeb53b87cc7dfc39b932774456de
|
/src/main/java/se/hallindesign/tradedesigner/web/rest/errors/InvalidPasswordException.java
|
b38213477840725df33425bf5e735432bdf574a1
|
[] |
no_license
|
Cashmeiser/jhipster-trade-designer
|
204de76a54edb2c8c4a742e77d0a8253542a187b
|
7c25c17903eb780934962a904b3dc7f91aa631a5
|
refs/heads/master
| 2022-12-23T11:50:03.072137
| 2020-09-14T00:52:23
| 2020-09-14T00:52:23
| 295,266,818
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 415
|
java
|
package se.hallindesign.tradedesigner.web.rest.errors;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
public class InvalidPasswordException extends AbstractThrowableProblem {
private static final long serialVersionUID = 1L;
public InvalidPasswordException() {
super(ErrorConstants.INVALID_PASSWORD_TYPE, "Incorrect password", Status.BAD_REQUEST);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
d326dda1292620d07633ccac61b85feeecf7cd2d
|
f8d93a24b046e7624d32b5afb7b7d3eb60a9675b
|
/data-work/src/main/java/com/bineng/dataWork/modules/act/utils/ProcessDefUtils.java
|
553611f40aa6bd1eee101639b8fb6251bb109092
|
[
"Apache-2.0"
] |
permissive
|
hongzhifei/data-work
|
bdcebc64195ce9e7a229ec2ee4c83e269cfe7c01
|
fd76035b712962f3d9974289ce033f86fdd9dbfa
|
refs/heads/master
| 2021-01-19T17:41:39.234109
| 2017-08-22T16:50:25
| 2017-08-22T17:06:55
| 101,084,501
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,967
|
java
|
package com.bineng.dataWork.modules.act.utils;
import java.util.LinkedHashSet;
import java.util.Set;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.delegate.Expression;
import org.activiti.engine.impl.RepositoryServiceImpl;
import org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior;
import org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.activiti.engine.impl.el.FixedValue;
import org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity;
import org.activiti.engine.impl.pvm.process.ActivityImpl;
import org.activiti.engine.impl.task.TaskDefinition;
import org.apache.commons.lang3.reflect.FieldUtils;
import org.apache.log4j.Logger;
/**
* 流程定义相关操作的封装
* @author bluejoe2008@gmail.com
*/
public abstract class ProcessDefUtils {
public static ActivityImpl getActivity(ProcessEngine processEngine, String processDefId, String activityId) {
ProcessDefinitionEntity pde = getProcessDefinition(processEngine, processDefId);
return (ActivityImpl) pde.findActivity(activityId);
}
public static ProcessDefinitionEntity getProcessDefinition(ProcessEngine processEngine, String processDefId) {
return (ProcessDefinitionEntity) ((RepositoryServiceImpl) processEngine.getRepositoryService()).getDeployedProcessDefinition(processDefId);
}
public static void grantPermission(ActivityImpl activity, String assigneeExpression, String candidateGroupIdExpressions,
String candidateUserIdExpressions) throws Exception {
TaskDefinition taskDefinition = ((UserTaskActivityBehavior) activity.getActivityBehavior()).getTaskDefinition();
taskDefinition.setAssigneeExpression(assigneeExpression == null ? null : new FixedValue(assigneeExpression));
FieldUtils.writeField(taskDefinition, "candidateUserIdExpressions", ExpressionUtils.stringToExpressionSet(candidateUserIdExpressions), true);
FieldUtils
.writeField(taskDefinition, "candidateGroupIdExpressions", ExpressionUtils.stringToExpressionSet(candidateGroupIdExpressions), true);
Logger.getLogger(ProcessDefUtils.class).info(
String.format("granting previledges for [%s, %s, %s] on [%s, %s]", assigneeExpression, candidateGroupIdExpressions,
candidateUserIdExpressions, activity.getProcessDefinition().getKey(), activity.getProperty("name")));
}
/**
* 实现常见类型的expression的包装和转换
*
* @author bluejoe2008@gmail.com
*
*/
public static class ExpressionUtils {
public static Expression stringToExpression(ProcessEngineConfigurationImpl conf, String expr) {
return conf.getExpressionManager().createExpression(expr);
}
public static Expression stringToExpression(String expr) {
return new FixedValue(expr);
}
public static Set<Expression> stringToExpressionSet(String exprs) {
Set<Expression> set = new LinkedHashSet<Expression>();
for (String expr : exprs.split(";")) {
set.add(stringToExpression(expr));
}
return set;
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
0b35829f076547d4065eb86cb16fd3dbb00c165b
|
f86938ea6307bf6d1d89a07b5b5f9e360673d9b8
|
/CodeComment_Data/Code_Jam/train/Cookie_Clicker_Alpha/S/Main(119).java
|
5d64db7a09475ba66c78964b265c2a45b9843656
|
[] |
no_license
|
yxh-y/code_comment_generation
|
8367b355195a8828a27aac92b3c738564587d36f
|
2c7bec36dd0c397eb51ee5bd77c94fa9689575fa
|
refs/heads/master
| 2021-09-28T18:52:40.660282
| 2018-11-19T14:54:56
| 2018-11-19T14:54:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 612
|
java
|
package methodEmbedding.Cookie_Clicker_Alpha.S.LYD429;
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int cases = read.nextInt();
for(int i=1; i<=cases; i++) {
double C = read.nextDouble();
double F = read.nextDouble();
double X = read.nextDouble();
double n = Math.floor(X/C - 2/F);
if(n<0) n = 0;
double time = 0;
for(int j=0; j<=n-1; j++) {
time += C/(2+j*F);
}
time += X/(2+n*F);
System.out.printf("Case #%d: %.7f\n", i, time);
}
}
}
|
[
"liangyuding@sjtu.edu.cn"
] |
liangyuding@sjtu.edu.cn
|
2973c3cdc442bc20e36fbc00a2586d13aa0eee12
|
6c7c00a7151e6cb289e90533e64e10b86d7db651
|
/app/src/main/java/com/zhuolang/fu/microdoctorclient/activity/AddContactActivity.java
|
86c09a275889a72cc4c31afcad60e9b96228a1ef
|
[] |
no_license
|
Three1309/MicroDoctorClient
|
0c8a10b757089f91154f58a1d84ac319f927e806
|
cfa49d7e138c842f45a739b91673acc763758deb
|
refs/heads/master
| 2021-01-20T05:37:21.901242
| 2018-07-06T00:43:03
| 2018-07-06T00:43:03
| 89,795,440
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,573
|
java
|
package com.zhuolang.fu.microdoctorclient.activity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.hyphenate.chat.EMClient;
import com.zhuolang.fu.microdoctorclient.R;
public class AddContactActivity extends Activity {
private ProgressDialog progressDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_contact);
final EditText et_username = (EditText) this.findViewById(R.id.et_username);
Button btn_add = (Button) this.findViewById(R.id.btn_add);
btn_add.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String username = et_username.getText().toString().trim();
if (TextUtils.isEmpty(username)) {
Toast.makeText(getApplicationContext(), "请输入内容...", Toast.LENGTH_SHORT).show();
return;
}
addContact(username);
}
});
findViewById(R.id.addcontact_img_back).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
/**
* 添加contact
*
// * @param view
*/
public void addContact(final String username) {
progressDialog = new ProgressDialog(this);
String stri = getResources().getString(R.string.Is_sending_a_request);
progressDialog.setMessage(stri);
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();
new Thread(new Runnable() {
public void run() {
try {
// demo写死了个reason,实际应该让用户手动填入
String s = getResources().getString(R.string.Add_a_friend);
EMClient.getInstance().contactManager().addContact(username, s);
runOnUiThread(new Runnable() {
public void run() {
progressDialog.dismiss();
String s1 = getResources().getString(R.string.send_successful);
Toast.makeText(getApplicationContext(), s1, Toast.LENGTH_SHORT).show();
}
});
} catch (final Exception e) {
runOnUiThread(new Runnable() {
public void run() {
progressDialog.dismiss();
String s2 = getResources().getString(R.string.Request_add_buddy_failure);
Toast.makeText(getApplicationContext(), s2 + e.getMessage(), Toast.LENGTH_SHORT).show();
}
});
}
}
}).start();
}
public void back(View v) {
finish();
}
}
|
[
"1278022159@qq.com"
] |
1278022159@qq.com
|
447a36d58d7f7b2f7c4bef8ca291872a987c7453
|
9132b69a6cd253a5314f1cb5a718cf486a665785
|
/tests/junit-functional/org/jgroups/blocks/LockService_JGRP_2234_Test.java
|
a925fb87bdb15fe768de8ac67d9ece04bf2640d4
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
linuxfreakus/JGroups
|
bd4137be9ae142135aac7f0df166fdf71a0609ab
|
488dc7733ac2b09d85896b630e5ae96dc02c14b5
|
refs/heads/master
| 2020-04-02T01:19:02.012963
| 2018-10-10T19:05:41
| 2018-10-11T05:54:13
| 153,849,313
| 0
| 0
|
Apache-2.0
| 2018-10-19T22:44:31
| 2018-10-19T22:44:31
| null |
UTF-8
|
Java
| false
| false
| 6,463
|
java
|
package org.jgroups.blocks;
import org.jgroups.Global;
import org.jgroups.JChannel;
import org.jgroups.Message;
import org.jgroups.blocks.locking.LockService;
import org.jgroups.conf.ClassConfigurator;
import org.jgroups.protocols.CENTRAL_LOCK;
import org.jgroups.protocols.CENTRAL_LOCK2;
import org.jgroups.protocols.Locking;
import org.jgroups.stack.Protocol;
import org.jgroups.stack.ProtocolStack;
import org.jgroups.util.Util;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.stream.Stream;
/** Tests https://issues.jboss.org/browse/JGRP-2234 with {@link LockService}
* @author Bela Ban
*/
@Test(groups={Global.FUNCTIONAL,Global.EAP_EXCLUDED},singleThreaded=true,dataProvider="createLockingProtocol")
public class LockService_JGRP_2234_Test {
protected JChannel a, b, c, d;
protected LockService s1, s2, s3, s4;
protected static final String LOCK="sample-lock";
protected static final String CLUSTER=LockService_JGRP_2234_Test.class.getSimpleName();
@DataProvider(name="createLockingProtocol")
Object[][] createLockingProtocol() {
return new Object[][] {
{CENTRAL_LOCK.class},
{CENTRAL_LOCK2.class}
};
}
protected void init(Class<? extends Locking> locking_class) throws Exception {
a=createChannel("A", locking_class);
s1=new LockService(a);
a.connect(CLUSTER);
b=createChannel("B", locking_class);
s2=new LockService(b);
b.connect(CLUSTER);
c=createChannel("C", locking_class);
s3=new LockService(c);
c.connect(CLUSTER);
d=createChannel("D", locking_class);
s4=new LockService(d);
d.connect(CLUSTER);
Util.waitUntilAllChannelsHaveSameView(10000, 1000, a, b, c, d);
}
@AfterMethod
protected void cleanup() {
Util.close(d, c, b, a);
}
@BeforeMethod
protected void unlockAll() {
Stream.of(s4,s3,s2,s1).forEach(s -> {
if(s != null) s.unlockAll();
});
Thread.interrupted(); // clears any possible interrupts from the previous method
}
/**
* The initial view is {A,B,C,D}. D holds the lock and unlocks it (on A), but the view is already {B,C,D} as A has
* left. However, at the time of the unlock request, the view is still {A,B,C,D} on D so the request is sent to A.<br/>
* The unlock request from D (to the new coord B) is therefore lost and the lock is never released.<br/>
* Therefore, when C tries to acquire the lock, it will fail as B thinks the lock is still held by D.<br/>
* The lost request (due to the new view not being received at all members at the same wall-clock time) is simulated
* by a simple dropping of the release request on D.
*/
public void testUnsuccessfulUnlock(Class<? extends Locking> locking_class) throws Exception {
init(locking_class);
Lock lock=s4.getLock(LOCK);
boolean success=lock.tryLock(10, TimeUnit.SECONDS); // this should succeed as A is the lock server for LOCK
assert success;
d.getProtocolStack().insertProtocol(new UnlockDropper(), ProtocolStack.Position.BELOW, Locking.class);
lock.unlock(); // this request will be dropped
d.getProtocolStack().removeProtocol(UnlockDropper.class); // future release requests are not going to be dropped
a.close(); // B will be the new coordinator
Util.waitUntilAllChannelsHaveSameView(10000, 1000, b,c,d);
Lock lock2=s3.getLock(LOCK); // C tries to acquire the lock
success=lock2.tryLock(5, TimeUnit.SECONDS);
assert success;
}
protected static JChannel createChannel(String name, Class<? extends Locking> locking_class) throws Exception {
Protocol[] stack=Util.getTestStack(locking_class.newInstance().level("trace"));
return new JChannel(stack).name(name);
}
protected static void lock(Lock lock, String name) {
System.out.println("[" + Thread.currentThread().getId() + "] locking " + name);
lock.lock();
System.out.println("[" + Thread.currentThread().getId() + "] locked " + name);
}
protected static boolean tryLock(Lock lock, String name) {
System.out.println("[" + Thread.currentThread().getId() + "] tryLocking " + name);
boolean rc=lock.tryLock();
System.out.println("[" + Thread.currentThread().getId() + "] " + (rc? "locked " : "failed locking ") + name);
return rc;
}
protected static boolean tryLock(Lock lock, long timeout, String name) throws InterruptedException {
System.out.println("[" + Thread.currentThread().getId() + "] tryLocking " + name);
boolean rc=lock.tryLock(timeout, TimeUnit.MILLISECONDS);
System.out.println("[" + Thread.currentThread().getId() + "] " + (rc? "locked " : "failed locking ") + name);
return rc;
}
protected static void unlock(Lock lock, String name) {
if(lock == null)
return;
System.out.println("[" + Thread.currentThread().getId() + "] releasing " + name);
lock.unlock();
System.out.println("[" + Thread.currentThread().getId() + "] released " + name);
}
protected static class UnlockDropper extends Protocol {
public Object down(Message msg) {
Locking lock_prot=(Locking)up_prot;
short CENTRAL_LOCK_ID=ClassConfigurator.getProtocolId(lock_prot.getClass());
Locking.LockingHeader hdr=msg.getHeader(CENTRAL_LOCK_ID);
if(hdr != null) {
try {
Locking.Request req=Util.streamableFromBuffer(Locking.Request::new, msg.getRawBuffer(), msg.getOffset(), msg.getLength());
switch(req.getType()) {
case RELEASE_LOCK:
System.out.printf("%s ---- dropping %s\n", up_prot.getProtocolStack().getChannel().getAddress(), req);
return null;
}
}
catch(Exception ex) {
log.error("failed deserializing request", ex);
return null;
}
}
return down_prot.down(msg);
}
}
}
|
[
"belaban@yahoo.com"
] |
belaban@yahoo.com
|
8ae46dbaa4ac7129ff90cc9d16109b7400d2db82
|
9f343d5b976104fbc838b155f1463ff08e1fd86f
|
/labs/SpringMVCViewResolversEx/src/main/java/com/examples/spring/web/mvc/HomeController.java
|
8f099fcc3fe175bf00c821835d8c4da68cae1249
|
[] |
no_license
|
priyanshupratihar/iiht_javafullstack_ibm
|
74290a733ce7bdf15b72b3e21942850bdb5d39ab
|
7dafd876e06215e1b5fd98741607ecea9a725c3f
|
refs/heads/master
| 2020-05-09T20:22:09.767434
| 2019-04-10T08:36:53
| 2019-04-10T08:36:53
| 181,405,160
| 1
| 1
| null | 2019-04-15T03:23:07
| 2019-04-15T03:23:07
| null |
UTF-8
|
Java
| false
| false
| 1,089
|
java
|
package com.examples.spring.web.mvc;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Handles requests for the application home page.
*/
@Controller
public class HomeController {
private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
/**
* Simply selects the home view to render by returning its name.
*/
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Locale locale, Model model) {
logger.info("Welcome home! The client locale is {}.", locale);
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);
String formattedDate = dateFormat.format(date);
model.addAttribute("serverTime", formattedDate );
return "home";
}
}
|
[
"saravana.anbarasu@gmail.com"
] |
saravana.anbarasu@gmail.com
|
43d07a106f220e1c36f34ce143e201fc42398e08
|
30f66a61865458458947055888d17f53f102456d
|
/server/game/src/main/java/com/linlongyx/sanguo/webgame/processors/general/GeneralBoxRewardProcessor.java
|
8610dabcc8e1f5bc9a7cb130d2bba22e4c4dcf28
|
[] |
no_license
|
NeverMoreShadowFiend/xxsg
|
0f833d963098b0d66aa1161ecefc7f6cc2fa9610
|
51b0b7620c450ab076d0e4dd362969ee0a2ecd97
|
refs/heads/master
| 2022-12-11T09:44:28.737852
| 2020-09-23T02:10:34
| 2020-09-23T02:10:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,956
|
java
|
/* */ package com.linlongyx.sanguo.webgame.processors.general;
/* */
/* */ import com.linlongyx.core.framework.base.ProcessorBase;
/* */ import com.linlongyx.core.framework.logic.IPlayerSession;
/* */ import com.linlongyx.core.framework.protocol.RequestBase;
/* */ import com.linlongyx.core.framework.protocol.ResponseBase;
/* */ import com.linlongyx.core.utils.LogUtils;
/* */ import com.linlongyx.sanguo.webgame.app.general.GeneralComponent;
/* */ import com.linlongyx.sanguo.webgame.common.util.FinanceUtil;
/* */ import com.linlongyx.sanguo.webgame.config.bean.GeneralChapterBean;
/* */ import com.linlongyx.sanguo.webgame.config.parameter.GeneralParameter;
/* */ import com.linlongyx.sanguo.webgame.constant.ParameterConstant;
/* */ import com.linlongyx.sanguo.webgame.constant.ResourceEvent;
/* */ import com.linlongyx.sanguo.webgame.proto.binary.general.GeneralBoxRewardRequest;
/* */ import com.linlongyx.sanguo.webgame.proto.binary.general.GeneralBoxRewardResponse;
/* */ import com.linlongyx.sanguo.webgame.proto.binary.struct.Reward;
/* */ import com.linlongyx.sanguo.webgame.service.JsonTableService;
/* */ import java.util.ArrayList;
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */ import java.util.Set;
/* */
/* */ public class GeneralBoxRewardProcessor
/* */ extends ProcessorBase<GeneralBoxRewardRequest, GeneralBoxRewardResponse> {
/* */ protected void initResponse() {
/* 27 */ this.response = (ResponseBase)new GeneralBoxRewardResponse();
/* */ }
/* */
/* */
/* */ protected short handleRequest(IPlayerSession playerSession, GeneralBoxRewardRequest request) {
/* 32 */ int chapter = request.chapter;
/* 33 */ int box = request.box;
/* 34 */ int level = request.level;
/* 35 */ GeneralChapterBean generalChapterBean = (GeneralChapterBean)JsonTableService.getJsonData(chapter, GeneralChapterBean.class);
/* 36 */ if (null == generalChapterBean) {
/* 37 */ return 11201;
/* */ }
/* 39 */ GeneralParameter generalParameter = (GeneralParameter)ParameterConstant.getParameter(12);
/* 40 */ Map<Integer, Integer> pointIdMap = generalParameter.getPointIdMap(chapter);
/* 41 */ Map<Integer, Set<Integer>> levelMap = (Map<Integer, Set<Integer>>)generalParameter.getLevelConfig().get(Integer.valueOf(chapter));
/* 42 */ if (null == pointIdMap || null == levelMap) {
/* 43 */ return 11203;
/* */ }
/* 45 */ GeneralChapterBean.DifficultyBean difficultyBean = (GeneralChapterBean.DifficultyBean)generalChapterBean.getDifficulty().get(Integer.valueOf(level));
/* 46 */ if (null == difficultyBean) {
/* 47 */ return 11203;
/* */ }
/* 49 */ GeneralComponent generalComponent = (GeneralComponent)playerSession.getPlayer().createIfNotExist(GeneralComponent.class);
/* 50 */ ArrayList<Reward> rewards = new ArrayList<>();
/* 51 */ Map<Integer, List<Integer>> boxReward = new HashMap<>();
/* 52 */ if (level == 1) {
/* 53 */ if (4 == box) {
/* 54 */ rewards = FinanceUtil.transform(difficultyBean.getFReward());
/* 55 */ } else if (8 == box) {
/* 56 */ rewards = FinanceUtil.transform(difficultyBean.getEReward());
/* 57 */ } else if (12 == box) {
/* 58 */ rewards = FinanceUtil.transform(difficultyBean.getSReward());
/* */ } else {
/* 60 */ return 11201;
/* */ }
/* 62 */ boxReward = generalComponent.getBoxReward();
/* 63 */ } else if (level == 2) {
/* 64 */ if (4 == box) {
/* 65 */ rewards = FinanceUtil.transform(difficultyBean.getFReward());
/* 66 */ } else if (8 == box) {
/* 67 */ rewards = FinanceUtil.transform(difficultyBean.getEReward());
/* 68 */ } else if (12 == box) {
/* 69 */ rewards = FinanceUtil.transform(difficultyBean.getSReward());
/* */ } else {
/* 71 */ return 11201;
/* */ }
/* 73 */ boxReward = generalComponent.getDiffboxReward();
/* 74 */ } else if (level == 3) {
/* 75 */ if (4 == box) {
/* 76 */ rewards = FinanceUtil.transform(difficultyBean.getFReward());
/* 77 */ } else if (8 == box) {
/* 78 */ rewards = FinanceUtil.transform(difficultyBean.getEReward());
/* 79 */ } else if (12 == box) {
/* 80 */ rewards = FinanceUtil.transform(difficultyBean.getSReward());
/* */ } else {
/* 82 */ return 11201;
/* */ }
/* 84 */ boxReward = generalComponent.getNightboxReward();
/* */ }
/* */
/* 87 */ Map<Integer, Integer> stars = generalComponent.getStars();
/* 88 */ int star = getStart(stars, pointIdMap, level, levelMap);
/* 89 */ if (star < box) {
/* 90 */ return 11202;
/* */ }
/* */
/* 93 */ List<Integer> list = boxReward.getOrDefault(Integer.valueOf(chapter), new ArrayList<>());
/* 94 */ if (list.contains(Integer.valueOf(box))) {
/* 95 */ return 10091;
/* */ }
/* 97 */ list.add(Integer.valueOf(box));
/* 98 */ boxReward.put(Integer.valueOf(chapter), list);
/* 99 */ if (level == 1) {
/* 100 */ generalComponent.setBoxReward(boxReward);
/* 101 */ } else if (level == 2) {
/* 102 */ generalComponent.setDiffboxReward(boxReward);
/* 103 */ } else if (level == 3) {
/* 104 */ generalComponent.setNightboxReward(boxReward);
/* */ }
/* */
/* 107 */ FinanceUtil.reward(rewards, playerSession.getPlayer(), ResourceEvent.GeneralBoxReward, true);
/* 108 */ ((GeneralBoxRewardResponse)this.response).chapter = chapter;
/* 109 */ ((GeneralBoxRewardResponse)this.response).box = box;
/* 110 */ ((GeneralBoxRewardResponse)this.response).level = level;
/* 111 */ LogUtils.errorLog(new Object[] { "GeneralBoxReward", Long.valueOf(playerSession.getPlayer().getPlayerId()), Integer.valueOf(chapter), Integer.valueOf(box) });
/* 112 */ return 0;
/* */ }
/* */
/* */ private int getStart(Map<Integer, Integer> stars, Map<Integer, Integer> pointIdMap, int level, Map<Integer, Set<Integer>> levelMap) {
/* 116 */ int star = 0;
/* 117 */ for (Map.Entry<Integer, Integer> entry : pointIdMap.entrySet()) {
/* 118 */ Set<Integer> set = levelMap.get(Integer.valueOf(level));
/* 119 */ if (null != set && !set.contains(entry.getValue())) {
/* */ continue;
/* */ }
/* 122 */ star += ((Integer)stars.getOrDefault(entry.getValue(), Integer.valueOf(0))).intValue();
/* */ }
/* 124 */ return star;
/* */ }
/* */ }
/* Location: D:\xxsg_52gmsy\game\target\classes\!\com\linlongyx\sanguo\webgame\processors\general\GeneralBoxRewardProcessor.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"parasol_qian@qq.com"
] |
parasol_qian@qq.com
|
dc1968877f0275d92491fa2fc6edb34900f3407d
|
bb60768a6eb5435a4b315f4af861b25addfd3b44
|
/dingtalk/java/src/main/java/com/aliyun/dingtalkworkbench_1_0/models/ListWorkBenchGroupResponse.java
|
28fab47998a01c41d516b9842b61865f48803c88
|
[
"Apache-2.0"
] |
permissive
|
yndu13/dingtalk-sdk
|
f023e758d78efe3e20afa1456f916238890e65dd
|
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
|
refs/heads/master
| 2023-06-30T04:49:11.263304
| 2021-08-12T09:54:35
| 2021-08-12T09:54:35
| 395,271,690
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,098
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkworkbench_1_0.models;
import com.aliyun.tea.*;
public class ListWorkBenchGroupResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public ListWorkBenchGroupResponseBody body;
public static ListWorkBenchGroupResponse build(java.util.Map<String, ?> map) throws Exception {
ListWorkBenchGroupResponse self = new ListWorkBenchGroupResponse();
return TeaModel.build(map, self);
}
public ListWorkBenchGroupResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ListWorkBenchGroupResponse setBody(ListWorkBenchGroupResponseBody body) {
this.body = body;
return this;
}
public ListWorkBenchGroupResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
7ab26527a6093803b924468fe25103ff5330364a
|
6cf2b08aa9e20a8ab85552573cfcd4d67f5573dd
|
/spring-cloud-alibaba-sentinel/src/main/java/com/alibaba/cloud/sentinel/custom/BlockClassRegistry.java
|
1e5d6c8bf1f1f5214b5e84b76f4ca33692913e62
|
[
"Apache-2.0"
] |
permissive
|
wnostop/spring-cloud-alibaba
|
ba24cb40e71e7b4baf376b6927dae65d295b340e
|
44884d7ed43e0ddf7f7fe7407ab001c5b64001b2
|
refs/heads/master
| 2020-07-06T17:32:35.338575
| 2019-08-19T02:30:18
| 2019-08-19T02:30:18
| 203,091,922
| 1
| 0
|
Apache-2.0
| 2019-08-19T03:29:21
| 2019-08-19T03:29:20
| null |
UTF-8
|
Java
| false
| false
| 1,910
|
java
|
/*
* Copyright (C) 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.alibaba.cloud.sentinel.custom;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.alibaba.csp.sentinel.util.StringUtil;
/**
* @author fangjian
*/
final class BlockClassRegistry {
private static final Map<String, Method> FALLBACK_MAP = new ConcurrentHashMap<>();
private static final Map<String, Method> BLOCK_HANDLER_MAP = new ConcurrentHashMap<>();
static Method lookupFallback(Class<?> clazz, String name) {
return FALLBACK_MAP.get(getKey(clazz, name));
}
static Method lookupBlockHandler(Class<?> clazz, String name) {
return BLOCK_HANDLER_MAP.get(getKey(clazz, name));
}
static void updateFallbackFor(Class<?> clazz, String name, Method method) {
if (clazz == null || StringUtil.isBlank(name)) {
throw new IllegalArgumentException("Bad argument");
}
FALLBACK_MAP.put(getKey(clazz, name), method);
}
static void updateBlockHandlerFor(Class<?> clazz, String name, Method method) {
if (clazz == null || StringUtil.isBlank(name)) {
throw new IllegalArgumentException("Bad argument");
}
BLOCK_HANDLER_MAP.put(getKey(clazz, name), method);
}
private static String getKey(Class<?> clazz, String name) {
return String.format("%s:%s", clazz.getCanonicalName(), name);
}
}
|
[
"fangjian0423@gmail.com"
] |
fangjian0423@gmail.com
|
321201f4e0f8a7c28eb9c09bdbba553ba3066ca1
|
790b934cb3945e64e65c267703394e6b39135a2d
|
/Back End Technologies/SERVLETS & JSP/main/java/com/capgemini/mywebapp/servletforjsps/AddEmployeeServlet.java
|
3d6f05b34f32a77d40d2d678a0bcad820789a738
|
[] |
no_license
|
Omkarnaik571/TY_CG_HTD_BangloreNovember_JFS_OmkarNaik
|
af1f515dd34abe1f79d81a88422cd1f668d18ed4
|
c460ff715036e843138ef4e43e0e9a664d944664
|
refs/heads/master
| 2023-01-12T01:42:37.720261
| 2020-02-17T09:36:46
| 2020-02-17T09:36:46
| 225,846,042
| 1
| 0
| null | 2023-01-07T21:26:24
| 2019-12-04T11:00:48
|
Java
|
UTF-8
|
Java
| false
| false
| 2,055
|
java
|
package com.capgemini.mywebapp.servletforjsps;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.capgemini.mywebapp.bin.EmployeeInfoBean;
import com.capgemini.mywebapp.service.EmployeeService;
import com.capgemini.mywebapp.service.EmployeeServiceImpl;
@WebServlet("/addEmployeeJsp")
public class AddEmployeeServlet extends HttpServlet {
private EmployeeService service=new EmployeeServiceImpl();
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
HttpSession session=req.getSession(false);
if (session != null) {
//User Is already Logged In
int empId=Integer.parseInt(req.getParameter("empId"));
String name=req.getParameter("name");
double salary=Double.parseDouble(req.getParameter("salary"));
int age=Integer.parseInt(req.getParameter("age"));
String designation=req.getParameter("designation");
String password=req.getParameter("password");
EmployeeInfoBean employeeInfoBean=new EmployeeInfoBean();
employeeInfoBean.setAge(age);
employeeInfoBean.setEmpId(empId);
employeeInfoBean.setName(name);
employeeInfoBean.setSalary(salary);
employeeInfoBean.setDesignation(designation);
employeeInfoBean.setPassword(password);
if(service.addEmployee(employeeInfoBean)) {
//If added SuccessFully
req.setAttribute("msg", "User added Successfully");
req.getRequestDispatcher("./addEmpJsp").forward(req, resp);
}
else {
//If Credentials are invalid
req.setAttribute("msg", "Duplicate User Id");
req.getRequestDispatcher("./addEmpJsp").forward(req, resp);
}
}
else {
//User has been logged out
req.setAttribute("msg", "You have logged out, Login again");
req.getRequestDispatcher("./loginForm").forward(req, resp);
}
}
}
|
[
"omkarnaik571@gmail.com"
] |
omkarnaik571@gmail.com
|
2b28ac3c160d29a8e40d47265c7b9a0c767b3e49
|
003f9b037c85335655da20cddcc393aa322e6714
|
/005_SpringMVC_Custom_Validator/src/com/springmvc/custom/validation/UserController.java
|
bc5546cf9df6ffd6a8e68e52276928b40538afdf
|
[] |
no_license
|
prafful/springmvc_aug2019
|
038372873ce22e3089f68dc5173da919e81655b3
|
0328fbce14ccab69db337645d49e3fda86a7e151
|
refs/heads/master
| 2020-06-29T20:05:19.780539
| 2019-08-13T11:36:16
| 2019-08-13T11:36:16
| 200,612,280
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,256
|
java
|
package com.springmvc.custom.validation;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class UserController {
@Autowired
private UserValidator userValidator;
@RequestMapping("/index")
public String welcome(Model m) {
m.addAttribute("userform", new User());
return "signin";
}
@RequestMapping(value = "/login", method = RequestMethod.POST )
public String checkLogin(@ModelAttribute("userform") User user, BindingResult result) {
userValidator.validate(user, result);
if(result.hasErrors()) {
return "signin";
}
return "welcome";
}
@ModelAttribute("allLocations")
public List getLocation() {
List allLocations = new ArrayList();
allLocations.add("Chennai");
allLocations.add("Pune");
allLocations.add("Kochi");
return allLocations;
}
}
|
[
"prraful@gmail.com"
] |
prraful@gmail.com
|
646ab292526463b55349ecb3b3df748642a13b61
|
3334bee9484db954c4508ad507f6de0d154a939f
|
/d3n/java-src/f4m-test-lib/src/main/java/de/ascendro/f4m/service/util/TestJsonMessageUtil.java
|
385d8b2fe0b92c119247e9d62c711f87c4d41e12
|
[] |
no_license
|
VUAN86/d3n
|
c2fc46fc1f188d08fa6862e33cac56762e006f71
|
e5d6ac654821f89b7f4f653e2aaef3de7c621f8b
|
refs/heads/master
| 2020-05-07T19:25:43.926090
| 2019-04-12T07:25:55
| 2019-04-12T07:25:55
| 180,806,736
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 236
|
java
|
package de.ascendro.f4m.service.util;
import de.ascendro.f4m.service.json.JsonMessageUtil;
public class TestJsonMessageUtil extends JsonMessageUtil {
public TestJsonMessageUtil() {
super(new TestGsonProvider(), null, null);
}
}
|
[
"vuan86@ya.ru"
] |
vuan86@ya.ru
|
66a14574fbef6e0cb0528070e3da18a9d2b04719
|
a980d28666ab7ac64126893756630a962d633473
|
/web-assembly-plugin/src/main/gen/org/jetbrains/webstorm/lang/psi/WebAssemblyTabletype.java
|
52023f2fba9bffd620f691d820c43d9ca01967b5
|
[
"MIT"
] |
permissive
|
CaiJingLong/intellij-plugins
|
b2717995bc2ed48939bf1076d2b402bc37fce5a2
|
11be89c2d5d9dd051ec5f59d75fd161c499ecf5b
|
refs/heads/master
| 2023-06-08T06:06:11.554646
| 2023-06-01T08:36:32
| 2023-06-01T10:41:44
| 265,773,873
| 0
| 0
| null | 2020-05-21T06:36:19
| 2020-05-21T06:36:18
| null |
UTF-8
|
Java
| false
| true
| 309
|
java
|
// This is a generated file. Not intended for manual editing.
package org.jetbrains.webstorm.lang.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface WebAssemblyTabletype extends PsiElement {
@NotNull
WebAssemblyMemtype getMemtype();
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
f486394d1135353083338262c66958e324df9c9a
|
c57342eb99e6824f2911eb9d9de7bd909637f81d
|
/src/com/java_config/bean/BookStore.java
|
e8a90e40973520de5be504b27f2838080ea72731
|
[] |
no_license
|
sebaek/spring-core-20200819
|
cf0c22442ef8a9f7d4b60fbf8ed0a67014c3aaaa
|
1ba116914f92e071f55c945e6f00cfcb671155cb
|
refs/heads/master
| 2022-12-01T16:10:22.719114
| 2020-08-20T02:30:52
| 2020-08-20T02:30:52
| 288,636,881
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 182
|
java
|
package com.java_config.bean;
public class BookStore {
private Book book;
public void setBook(Book book) {
this.book = book;
}
public Book getBook() {
return book;
}
}
|
[
"sebaek@gmail.com"
] |
sebaek@gmail.com
|
2a0a661eb4f46d56686eb7fbb862ccd226a60302
|
a20a848d9e43d90598af52d94502336d6d018a5a
|
/s4/B183336/InformationEstimator.java
|
a7f843fb84f280de527bdbf5decc5b5f505082ca
|
[] |
no_license
|
Cramail/tut2018informationQuantity
|
018d5089fc0999c0b629c312eb6887e48799a3be
|
9e1ffdadc3f84b3221c93634bd8861b5c5433b23
|
refs/heads/master
| 2020-04-10T21:22:25.385480
| 2019-02-18T02:09:03
| 2019-02-18T02:09:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,201
|
java
|
package s4; // Please modify to s4.Bnnnnnn, where nnnnnn is your student ID.
import java.util.ArrayList;
import s4.specification.FrequencerInterface;
import s4.specification.InformationEstimatorInterface;
/* What is imported from s4.specification
package s4.specification;
public interface InformationEstimatorInterface{
void setTarget(byte target[]); // set the data for computing the information quantities
void setSpace(byte space[]); // set data for sample space to computer probability
double estimation(); // It returns 0.0 when the target is not set or Target's length is zero;
// It returns Double.MAX_VALUE, when the true value is infinite, or space is not set.
// The behavior is undefined, if the true value is finete but larger than Double.MAX_VALUE.
// Note that this happens only when the space is unreasonably large. We will encounter other problem anyway.
// Otherwise, estimation of information quantity,
}
*/
public class InformationEstimator implements InformationEstimatorInterface {
// Code to tet, *warning: This code condtains intentional problem*
byte[] myTarget; // data to compute its information quantity
byte[] mySpace; // Sample space to compute the probability
FrequencerInterface myFrequencer; // Object for counting frequency
byte[] subBytes(byte[] x, int start, int end) {
// corresponding to substring of String for byte[] ,
// It is not implement in class library because internal structure of byte[]
// requires copy.
byte[] result = new byte[end - start];
for (int i = 0; i < end - start; i++) {
result[i] = x[start + i];
}
;
return result;
}
// IQ: information quantity for a count, -log2(count/sizeof(space))
double iq(int freq) {
return -Math.log10((double) freq / (double) mySpace.length) / Math.log10((double) 2.0);
}
public void setTarget(byte[] target) {
myTarget = target;
}
public void setSpace(byte[] space) {
myFrequencer = new Frequencer();
mySpace = space;
myFrequencer.setSpace(space);
}
public double estimation() {
boolean[] partition = new boolean[myTarget.length + 1];
ArrayList<Double> st=new ArrayList<Double>();
int np;
np = 1 << (myTarget.length - 1);
// System.out.println("np="+np+" length="+myTarget.length);
double value = Double.MAX_VALUE; // value = mininimum of each "value1".
for (int p = 0; p < np; p++) { // There are 2^(n-1) kinds of partitions.
// binary representation of p forms partition.
// for partition {"ab" "cde" "fg"}
// a b c d e f g : myTarget
// T F T F F T F T : partition:
partition[0] = true; // I know that this is not needed, but..
for (int i = 0; i < myTarget.length - 1; i++) {
partition[i + 1] = (0 != ((1 << i) & p));
}
partition[myTarget.length] = true;
// Compute Information Quantity for the partition, in "value1"
// value1 = IQ(#"ab")+IQ(#"cde")+IQ(#"fg") for the above example
double value1 = (double) 0.0;
int end = 0;
;
int start = end;
while (start < myTarget.length) {
// System.out.write(myTarget[end]);
end++;
;
while (partition[end] == false) {
// System.out.write(myTarget[end]);
end++;
}
// System.out.print("("+start+","+end+")");
myFrequencer.setTarget(subBytes(myTarget, start, end));
value1 = iq(myFrequencer.frequency());
for (int i = 0; i < p; i++) {
value1 += st.get(i);
}
start = end;
}
// System.out.println(" "+ value1);
st.add(value1); //store
// Get the minimal value in "value"
if (value1 < value)
value = value1;
}
return value;
}
public static void main(String[] args) {
InformationEstimator myObject;
double value;
myObject = new InformationEstimator();
myObject.setSpace("3210321001230123".getBytes());
myObject.setTarget("0".getBytes());
value = myObject.estimation();
System.out.println(">0 " + value);
myObject.setTarget("01".getBytes());
value = myObject.estimation();
System.out.println(">01 " + value);
myObject.setTarget("0123".getBytes());
value = myObject.estimation();
System.out.println(">0123 " + value);
myObject.setTarget("00".getBytes());
value = myObject.estimation();
System.out.println(">00 " + value);
}
}
|
[
"tut.umemura.lab@gmail.com"
] |
tut.umemura.lab@gmail.com
|
c2e7d85f6de178dc0643bfec068611d686551160
|
264ed02ae5f1e8ffa5ecad1b36439379908b389f
|
/client/src/main/java/com/redhat/qe/sikuli/client/SikuliClient.java
|
3b4b36e8168e149c90d34389b943cd2819adc5f3
|
[
"Apache-2.0"
] |
permissive
|
smallpig002/selenium-sikuli
|
3a27e94d48d222aa33f50c4b77322a6b8c385824
|
4dbebb55b8e37939990e0ae7247ff50822becc48
|
refs/heads/master
| 2022-03-29T14:18:50.110199
| 2018-04-12T12:26:46
| 2018-04-12T12:26:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,410
|
java
|
package com.redhat.qe.sikuli.client;
import java.text.MessageFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.redhat.qe.sikuli.common.RemoteFile;
import com.redhat.qe.sikuli.common.RemoteKeyboard;
import com.redhat.qe.sikuli.common.RemoteMouse;
import com.redhat.qe.sikuli.common.RemoteScreen;
import io.sterodium.rmi.protocol.client.RemoteNavigator;
/**
* @author Jeeva Kandasamy (jkandasa)
*/
public class SikuliClient {
private static final Logger _logger = LoggerFactory.getLogger(SikuliClient.class.getName());
private static final String SIKULI_HUB_PATH = "/grid/admin/SikuliGridServlet/session/{0}/SikuliNodeServlet";
private static final String SIKULI_NODE_PATH = "/extra/SikuliNodeServlet";
private static RemoteNavigator remoteNavigator;
private static RemoteScreen remoteScreen;
private static RemoteKeyboard remoteKeyboard;
private static RemoteMouse remoteMouse;
RemoteFile remoteFile;
public enum CONNECTION_TYPE {
GRID,
NODE;
}
public SikuliClient(String host, int port, String sessionId) {
this(host, port, sessionId, CONNECTION_TYPE.GRID);
}
public SikuliClient(String host, int port, String sessionId, CONNECTION_TYPE connectionType) {
switch (connectionType) {
case NODE:
remoteNavigator = new RemoteNavigator(host, port, SIKULI_NODE_PATH);
break;
case GRID:
default:
remoteNavigator = new RemoteNavigator(host, port, MessageFormat.format(SIKULI_HUB_PATH, sessionId));
break;
}
remoteScreen = remoteNavigator.createProxy(RemoteScreen.class, "screen");
remoteKeyboard = remoteNavigator.createProxy(RemoteKeyboard.class, "keyboard");
remoteMouse = remoteNavigator.createProxy(RemoteMouse.class, "mouse");
remoteFile = remoteNavigator.createProxy(RemoteFile.class, "file");
_logger.debug("Sikuli remote client initialized. Selenium host:{}:{}, sessionId:{}, ConnectionType:{}",
host, port, sessionId, connectionType);
}
public RemoteScreen screen() {
return remoteScreen;
}
public RemoteFile file() {
return remoteFile;
}
public RemoteKeyboard keyboard() {
return remoteKeyboard;
}
public RemoteMouse mouse() {
return remoteMouse;
}
}
|
[
"jkandasa@redhat.com"
] |
jkandasa@redhat.com
|
b51ab0d1736f2480fb61e31cece4e06a53b0cae8
|
83e934b83e10ec240d543b1981a9205e525a4889
|
/07. 2. Open-Closed-And-Liskov-Principle-Exercises/02.Blobs-Skeleton/src/app/models/behavors/Aggressive.java
|
1a5f915fed59cf40458412501d472f6c984f4ac9
|
[
"MIT"
] |
permissive
|
kostadinlambov/Java-OOP-Advanced
|
dca49a1b0750092cc713684403629ff9ca06d39e
|
12db2a30422deef057fc25cf2947d8bc22cce77c
|
refs/heads/master
| 2021-05-12T10:59:24.753433
| 2018-01-20T19:01:45
| 2018-01-20T19:01:45
| 117,370,385
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 959
|
java
|
package app.models.behavors;
import app.interfaces.Blob;
public class Aggressive extends AbstractBehavior {
private static final int AGGRESSIVE_DAMAGE_MULTIPLY = 2;
private static final int AGGRESSIVE_DAMAGE_DECREMENT = 5;
//private int sourceInitialDamage;
@Override
public void trigger(Blob blob) {
blob.setDamage(blob.getDamage() * AGGRESSIVE_DAMAGE_MULTIPLY);
// this.sourceInitialDamage = blob.getDamage();
super.setIsTriggered(true);
// this.applyTriggerEffect(blob);
}
@Override
public void applyRecurrentEffect(Blob blob) {
blob.setDamage(blob.getDamage() - AGGRESSIVE_DAMAGE_DECREMENT);
if (blob.getDamage() <= blob.getInitialDamage()) {
blob.setDamage(blob.getInitialDamage());
}
// }
}
// private void applyTriggerEffect(Blob blob) {
// //blob.setDamage(source.getDamage() * AGGRESSIVE_DAMAGE_MULTIPLY);
// }
}
|
[
"valchak@abv.bg"
] |
valchak@abv.bg
|
3625114308d0c18432fe0ad249f1e98f09d7839a
|
a77b637c69d9497a0c29ffc0b89cbfa5cb1958f7
|
/app/src/main/java/com/wangyukui/ywkj/jmessage/EmoticonDisplayListener.java
|
1bc2d3ad9cb8868a9bfc375d75f4ef95be15f0c6
|
[] |
no_license
|
wangchenxing1990/tashanzhishi
|
6b764aba6ffd499f7bef2576743d0be503d84e38
|
15b3829e0ac092d8b55eb19db6222e8ddbd4f90e
|
refs/heads/master
| 2020-04-07T07:45:03.429599
| 2018-11-19T08:35:44
| 2018-11-19T08:35:44
| 158,187,293
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 236
|
java
|
package com.wangyukui.ywkj.jmessage;
import android.view.ViewGroup;
public interface EmoticonDisplayListener<T> {
void onBindView(int position, ViewGroup parent, EmoticonsAdapter.ViewHolder viewHolder, T t, boolean isDelBtn);
}
|
[
"18317770484@163.com"
] |
18317770484@163.com
|
8ffe187a9485e3cca8ed4c66e2afe37c1bf091cd
|
30debfb588d3df553019a29d761f53698564e8c8
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201608/ActivateCustomTargetingKeys.java
|
a30430eabed4a592233a4b7358e0643411bd1fee
|
[
"Apache-2.0"
] |
permissive
|
jinhyeong/googleads-java-lib
|
8f7a5b9cad5189e45b5ddcdc215bbb4776b614f9
|
872c39ba20f30f7e52d3d4c789a1c5cbefaf80fc
|
refs/heads/master
| 2021-01-19T09:35:38.933267
| 2017-04-03T14:12:43
| 2017-04-03T14:12:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,612
|
java
|
// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.dfp.jaxws.v201608;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* The action used for activating inactive (i.e. deleted)
* {@link CustomTargetingKey} objects.
*
*
* <p>Java class for ActivateCustomTargetingKeys complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ActivateCustomTargetingKeys">
* <complexContent>
* <extension base="{https://www.google.com/apis/ads/publisher/v201608}CustomTargetingKeyAction">
* <sequence>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ActivateCustomTargetingKeys")
public class ActivateCustomTargetingKeys
extends CustomTargetingKeyAction
{
}
|
[
"api.cseeley@gmail.com"
] |
api.cseeley@gmail.com
|
2c90f17e2ec25e853104de43925b58dde8ffc0cd
|
597ef784df6f9cf6e262a8e3b1a0706e0843fd44
|
/JAVA_PROJECT/essential03_Wrapper/src/Source02_Wrapper.java
|
2f5ea3a32684f86c57c858fa79e358b73e72b2a3
|
[] |
no_license
|
JIN-0616/kgitbank
|
6a80cb1846b3965ee88b93dc4107beb88d535bcc
|
717e8330935344b095adef82370029555d01676f
|
refs/heads/master
| 2020-04-21T11:37:34.533558
| 2019-02-07T12:14:08
| 2019-02-07T12:14:08
| 169,532,345
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 1,659
|
java
|
public class Source02_Wrapper {
public static void main(String[] args) {
// Wrap(Boxing) , UnWrap(UnBoxing) 은 자동으로 일어난다.
Integer n1 = new Integer(4561);
Integer n2 = 4561;
Integer n3 = 4561;
System.out.println(n1+" / "+n2+" / "+n3);
System.out.println(n1==n2); //false
System.out.println(n1==n3); //false
System.out.println(n2==n3); //false
System.out.println();
System.out.println(n1.equals(n2)); // true;
/*
public boolean equals(Object obj) {
if (obj instanceof Integer) {
return value == ((Integer)obj).intValue();
}
return false;
}
*/
System.out.println(n1.intValue()==n2.intValue()); //true;
int v1 = n1; // UnWrap(UnBoxing) 알아서 풀려서 들어가짐
System.out.println(v1);
System.out.println(n2 + n3); // UnWrap(UnBoxing) 객체값 더하기, 1.5 이후 자동지원
/*
* 이걸 오토박싱,언박싱 이라고 부른다
*/
System.out.println("======================================");
boolean b1 = true; //원래는 new로 생성하는것이 맞음
boolean b2 = true;
System.out.println(b1 == b2); //원래는 false가 맞으나 true, 같은 객체
Integer i1 = 127; // -128 ~ 127 까지는 true 같은객체
Integer i2 = 127; // 이외의 값은 false 다른객체
// i1++; //
System.out.println(i1 == i2); // true, 같은 객체
// why?
Integer i3 = 128; // -128 ~ 127 까지는 true 같은객체
Integer i4 = 128; // 이외의 값은 false 다른객체
// i1++; //
System.out.println(i1 == i2); // false 다른 객체
}
}
|
[
"kgitbank@DESKTOP-U6AB831"
] |
kgitbank@DESKTOP-U6AB831
|
4e63947f8965d4b726d37bdb1d2e7fc755d07734
|
977e4cdedd721264cfeeeb4512aff828c7a69622
|
/ares.standard/src/main/java/cz/stuchlikova/ares/application/stub/rzp/SpolecniciSVkladem.java
|
f2559f1cc62a4a6ce8059756a09c402f7fa74719
|
[] |
no_license
|
PavlaSt/ares.standard
|
ed5b177ca7ca71173b7fa7490cf939f8c3e050fb
|
1d3a50fa4397a490cfb4414f7bd94d5dcac1a45e
|
refs/heads/main
| 2023-05-08T02:28:09.921215
| 2021-05-27T10:03:07
| 2021-05-27T10:03:07
| 346,669,475
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,427
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.04.19 at 09:56:22 AM CEST
//
package cz.stuchlikova.ares.application.stub.rzp;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for spolecnici_s_vkladem complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="spolecnici_s_vkladem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Spolecnik_s_vkladem" type="{http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_datatypes/v_1.0.4}angazma" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Text" type="{http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_datatypes/v_1.0.4}textType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "spolecnici_s_vkladem", propOrder = {
"spolecnikSVkladem",
"text"
})
public class SpolecniciSVkladem {
@XmlElement(name = "Spolecnik_s_vkladem")
protected List<Angazma> spolecnikSVkladem;
@XmlElement(name = "Text")
protected List<TextType> text;
/**
* Gets the value of the spolecnikSVkladem property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the spolecnikSVkladem property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSpolecnikSVkladem().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Angazma }
*
*
*/
public List<Angazma> getSpolecnikSVkladem() {
if (spolecnikSVkladem == null) {
spolecnikSVkladem = new ArrayList<Angazma>();
}
return this.spolecnikSVkladem;
}
/**
* Gets the value of the text property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the text property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getText().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TextType }
*
*
*/
public List<TextType> getText() {
if (text == null) {
text = new ArrayList<TextType>();
}
return this.text;
}
}
|
[
"pavla.p.novotna@seznam.cz"
] |
pavla.p.novotna@seznam.cz
|
46ff438ddc79fbc73378484057b87b1c906fbd19
|
7a18ebb74f37dfe4eb655f174e2b974560965378
|
/purchase/src/com/mbusiness/action/PurchaseDeleteAction.java
|
1f319a8f38433f26035d09524d7290f13b1433cd
|
[] |
no_license
|
873008390/yabao
|
0479b40f01e05f70ce553d238f3340402a1f5ca5
|
8f6bb129e269f5089caca3062882fb03e1b24b0c
|
refs/heads/master
| 2021-01-22T19:59:25.047032
| 2017-03-21T02:30:58
| 2017-03-21T02:30:58
| 85,261,799
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,019
|
java
|
package com.mbusiness.action;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.mbusiness.model.Purchase;
import com.mbusiness.model.Usersession;
import com.mbusiness.service.PurchaseService;
import com.mbusiness.util.MMessage;
import com.opensymphony.xwork2.ActionSupport;
public class PurchaseDeleteAction extends ActionSupport implements SessionAware{
private int purchaseid;
private boolean success;
private String result;
private PurchaseService purchaseService = new PurchaseService();
private Map session;
private MMessage mmessage = new MMessage();
private Usersession usersession = new Usersession();
public String delete(){
if(session.get("corporationid") == null || session.get("corporationid").toString() == ""){
usersession.setCorporationid(0);
}else{
usersession.setCorporationid(Integer.parseInt(session.get("corporationid").toString()));
}
if(session.get("account") == null || session.get("account").toString() == ""){
usersession.setUsername("");
}else{
usersession.setUsername(session.get("account").toString());
}
if(session.get("account") == null || session.get("account").toString() == ""){
result = mmessage.notlogin;
success = false;
}else{
result = purchaseService.delete(usersession, purchaseid);
if (result == mmessage.deletesuccess){
success = true;
}else{
success = false;
}
}
if(success){
return SUCCESS;
}else{
return INPUT;
}
}
public void setSuccess(boolean success) {
this.success = success;
}
public boolean isSuccess() {
return success;
}
public void setResult(String result) {
this.result = result;
}
public String getResult() {
return result;
}
@Override
public void setSession(Map session) {
this.session = session;
}
public int getPurchaseid() {
return purchaseid;
}
public void setPurchaseid(int purchaseid) {
this.purchaseid = purchaseid;
}
}
|
[
"your_email@youremail.com"
] |
your_email@youremail.com
|
a68dbafeb5a0a5d95cd4f01cc91aa8e8d1ec6fc4
|
906472644ab5a7d26d02eb4c0bb45c8c484ce5b1
|
/src/com/craining/book/DoThings/DoThings.java
|
d7d1b7bb19c8022b1c75af58896c742a6a8ec7a5
|
[] |
no_license
|
craining/android_CtrlYourPhone
|
7f287bfe7e1e7578082b3d5f517222cc18ad0e4f
|
0bb869815cbab5b44f829f7169ece70d9be993f5
|
refs/heads/master
| 2021-01-23T21:38:14.796302
| 2013-06-20T03:53:32
| 2013-06-20T03:53:32
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 7,528
|
java
|
package com.craining.book.DoThings;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import org.apache.http.util.EncodingUtils;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.telephony.SmsManager;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.widget.Toast;
/**
* 做一些额外操作
*
* @author Ruin
*
*/
public class DoThings {
/**
* 获得本机号码<br>
* 用法: <br>
* getMyPhoneNumber( this );
*
* @return 本机号码
*/
public static String getMyPhoneNumber(Context context) {
TelephonyManager mTelephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
return mTelephonyMgr.getLine1Number();
}
/**
* 后台发送短信<br>
* 用法: <br>
* sendMsg( this );
*
* @param mTelephonyMgr
* @param toWho
* @param msgText
*/
public static void sendMsg(Context context, String toWho, String msgText) {
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(toWho, getMyPhoneNumber(context), msgText, null, null);
}
/**
* 拨打电话
*
* @param context
*/
public static void callSomebody(Context context, String number) {
Uri uri = Uri.parse("tel:" + number);
Intent it = new Intent(Intent.ACTION_CALL, uri);
// Intent it = new Intent(Intent.ACTION_DIAL, uri); //只是拨号, 并未呼叫
it.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(it);
}
/**
* 写入文件
*
* @param str
* 写入的字符串
* @param file
* 文件路径
* @param add
* 追加与否
* @return
*/
public static boolean writeFile(String str, File file, boolean add) {
Log.e("writeFile", str);
FileOutputStream out;
try {
if ( !file.exists() ) {
// 创建文件
file.createNewFile();
}
// 打开文件file的OutputStream
out = new FileOutputStream(file, add);
String infoToWrite = str;
// 将字符串转换成byte数组写入文件
out.write(infoToWrite.getBytes());
// 关闭文件file的OutputStream
out.close();
} catch (IOException e) {
return false;
}
return true;
}
/**
* 以utf-8编码读取文件
*
* @param file
* @return
*/
public static String getinfo(File file) {
String str = "";
FileInputStream in;
try {
// 打开文件file的InputStream
in = new FileInputStream(file);
// 将文件内容全部读入到byte数组
int length = (int) file.length();
byte[] temp = new byte[length];
in.read(temp, 0, length);
// 将byte数组用UTF-8编码并存入display字符串中
str = EncodingUtils.getString(temp, "utf-8");
// 关闭文件file的InputStream
in.close();
} catch (IOException e) {
}
return str;
}
/**
* 显示一个警告对话框,没有任何操作
*
* @param context
* @param content
* 警告内容
*/
public static void showAlarmDlg(Context context, String content) {
AlertDialog.Builder testDialog = new AlertDialog.Builder(context);
testDialog.setTitle("警告:");
testDialog.setMessage(content);
testDialog.setNeutralButton(" 确 定 ", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
}
}).create();
testDialog.show();
}
public static void DisplayToast(Context context, String str) {
Toast.makeText(context, str, Toast.LENGTH_LONG).show();
}
/**
* 重新获取当前受控者号码
*/
public static void UpdateNowCtrling() {
UsedVerbs.nowCtrlingNum = UsedVerbs.numbers_underCtrl.get(UsedVerbs.nowCtrlingId);
UsedVerbs.nowCtrlerPwd = UsedVerbs.pwd_underCtrl.get(UsedVerbs.nowCtrlingId);
DoThings.writeFile(UsedVerbs.nowCtrlingNum, UsedVerbs.SAVE_CTRLINGNUM_FILE, false);
}
/**
* 过滤数据,获得某个受控者的所有黑名单
*/
public static void getNowCtrlingBlackNums() {
int black_counts = UsedVerbs.numbers_black.size();
for (int ff = 0; ff < black_counts; ff++) {
if ( UsedVerbs.numbers_black_owner.get(ff).equals(UsedVerbs.nowCtrlingNum) ) {
UsedVerbs.ctrling_numbers_black.addElement(UsedVerbs.numbers_black.get(ff));
}
}
}
/**
* 更改和保存邮箱地址时调用
*
* @param context
* @param emailadd
*/
public static boolean saveEmailAddress(Context context, String emailadd, boolean first) {
// 判断邮箱格式是否正确
boolean rightEmail = false;
for (int n = 0; n < emailadd.length(); n++) {
if ( emailadd.charAt(n) == '@' ) {
rightEmail = true;
}
}
if ( !rightEmail ) {
DoThings.DisplayToast(context, "邮箱地址格式错误!请重新输入...");
return false;
} else {
UsedVerbs.hostEmailName = emailadd.substring(0, emailadd.indexOf("@"));
Log.e("UsedVerbs.hostEmailName", UsedVerbs.hostEmailName);
if ( UsedVerbs.hostEmailName.equals("") ) {
DoThings.DisplayToast(context, "邮箱地址格式错误!请重新输入...");
return false;
} else {
if ( DoThings.writeFile(emailadd, UsedVerbs.SAVE_EMAILADDRESS_FILE, false) ) {
UsedVerbs.host_email_address = emailadd;
if ( first ) {
DoThings.DisplayToast(context, "信息保存成功!");
} else {
DoThings.DisplayToast(context, "邮箱保存成功!您可以在其它操作项中更改");
}
} else {
DoThings.DisplayToast(context, "保存文件失败!请重新输入...");
return false;
}
}
}
return true;
}
/**
* 当需要控制者邮箱地址时调用,用于检测是否获取到控制者邮箱
*
* @return
*/
public static boolean getEmailInfo(Context context) {
if ( UsedVerbs.SAVE_EMAILADDRESS_FILE.exists() ) {
UsedVerbs.host_email_address = DoThings.getinfo(UsedVerbs.SAVE_EMAILADDRESS_FILE);
if ( UsedVerbs.host_email_address.equals("") ) {
// 邮件地址丢失
DoThings.showAlarmDlg(context, "\t\t您的邮箱地址丢失!请从控制页面的其他操作项中选择更改我的信息,重新保存一下您的邮箱即可!");
UsedVerbs.SAVE_EMAILAUTOLOGIN_FILE.delete();// 取消自动登录
UsedVerbs.SAVE_EMAILPWD_FILE.delete();// 删除原密码
return false;
}
} else {
return false;
}
return true;
}
/**
* 判断SDcard是否可写
*/
public static boolean sdCardCanUsed() {
return android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);
}
/**
* 获得日期或时间字符串
*
* @param dateOrTime
* @return
*/
public static String returnDateOrTime(int dateOrTime) {
if ( dateOrTime == 0 ) { // 返回日期
SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd");
return sDateFormat.format(new java.util.Date());
} else {// 返回时刻
Calendar ca = Calendar.getInstance();
int minute = ca.get(Calendar.MINUTE);
int hour = ca.get(Calendar.HOUR_OF_DAY);
int second = ca.get(Calendar.SECOND);
return getformatString(hour) + "-" + getformatString(minute) + "-" + getformatString(second);
}
}
/**
* 将时间转为特定的格式 如: 1 转为 01
*
* @param mmm
* @return
*/
public static String getformatString(int mmm) {
if ( mmm < 10 ) {
if ( mmm == 0 ) {
return "00";
} else {
return "0" + mmm;
}
} else {
return "" + mmm;
}
}
}
|
[
"craining@163.com"
] |
craining@163.com
|
9f6fbf6506370b4d35ab95225e5a891c5c5f0d8a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/30/30_6a6e804d7a06817588ed9c7f7c0b6434ec0a6df0/SyncAuthenticatorService/30_6a6e804d7a06817588ed9c7f7c0b6434ec0a6df0_SyncAuthenticatorService_s.java
|
1ebfde8bfbcea5266873f2ea3e1a29c3ab41ef1e
|
[] |
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
| 7,416
|
java
|
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Android Sync Client.
*
* The Initial Developer of the Original Code is
* the Mozilla Foundation.
* Portions created by the Initial Developer are Copyright (C) 2011
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Chenxia Liu <liuche@mozilla.com>
* Richard Newman <rnewman@mozilla.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.gecko.sync.setup;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import org.mozilla.gecko.sync.crypto.KeyBundle;
import org.mozilla.gecko.sync.setup.activities.SetupSyncActivity;
import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.AccountManager;
import android.accounts.NetworkErrorException;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
public class SyncAuthenticatorService extends Service {
private static final String LOG_TAG = "SyncAuthenticatorService";
private SyncAccountAuthenticator sAccountAuthenticator = null;
@Override
public void onCreate() {
Log.d(LOG_TAG, "onCreate");
sAccountAuthenticator = getAuthenticator();
}
@Override
public IBinder onBind(Intent intent) {
IBinder ret = null;
if (intent.getAction().equals(
android.accounts.AccountManager.ACTION_AUTHENTICATOR_INTENT))
ret = getAuthenticator().getIBinder();
return ret;
}
private SyncAccountAuthenticator getAuthenticator() {
if (sAccountAuthenticator == null) {
sAccountAuthenticator = new SyncAccountAuthenticator(this);
}
return sAccountAuthenticator;
}
private static class SyncAccountAuthenticator extends
AbstractAccountAuthenticator {
private Context mContext;
public SyncAccountAuthenticator(Context context) {
super(context);
mContext = context;
}
@Override
public Bundle addAccount(AccountAuthenticatorResponse response,
String accountType, String authTokenType, String[] requiredFeatures,
Bundle options) throws NetworkErrorException {
Log.d(LOG_TAG, "addAccount()");
final Intent intent = new Intent(mContext, SetupSyncActivity.class);
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE,
response);
intent.putExtra("accountType", Constants.ACCOUNTTYPE_SYNC);
intent.putExtra(Constants.INTENT_EXTRA_IS_SETUP, true);
final Bundle result = new Bundle();
result.putParcelable(AccountManager.KEY_INTENT, intent);
return result;
}
@Override
public Bundle confirmCredentials(AccountAuthenticatorResponse response,
Account account, Bundle options) throws NetworkErrorException {
Log.d(LOG_TAG, "confirmCredentials()");
return null;
}
@Override
public Bundle editProperties(AccountAuthenticatorResponse response,
String accountType) {
Log.d(LOG_TAG, "editProperties");
return null;
}
@Override
public Bundle getAuthToken(AccountAuthenticatorResponse response,
Account account, String authTokenType, Bundle options)
throws NetworkErrorException {
Log.d(LOG_TAG, "getAuthToken()");
if (!authTokenType.equals(Constants.AUTHTOKEN_TYPE_PLAIN)) {
final Bundle result = new Bundle();
result.putString(AccountManager.KEY_ERROR_MESSAGE,
"invalid authTokenType");
return result;
}
// Extract the username and password from the Account Manager, and ask
// the server for an appropriate AuthToken.
final AccountManager am = AccountManager.get(mContext);
final String password = am.getPassword(account);
if (password != null) {
final Bundle result = new Bundle();
// This is a Sync account.
result.putString(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNTTYPE_SYNC);
// Server.
String serverURL = am.getUserData(account, Constants.OPTION_SERVER);
result.putString(Constants.OPTION_SERVER, serverURL);
// Full username, before hashing.
result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
// Username after hashing.
try {
String username = KeyBundle.usernameFromAccount(account.name);
Log.i("rnewman", "Account " + account.name + " hashes to " + username);
result.putString(Constants.OPTION_USERNAME, username);
} catch (NoSuchAlgorithmException e) {
// Do nothing. Calling code must check for missing value.
} catch (UnsupportedEncodingException e) {
// Do nothing. Calling code must check for missing value.
}
// Sync key.
final String syncKey = am.getUserData(account, Constants.OPTION_SYNCKEY);
Log.i("rnewman", "Setting Sync Key to " + syncKey);
result.putString(Constants.OPTION_SYNCKEY, syncKey);
// Password.
result.putString(AccountManager.KEY_AUTHTOKEN, password);
return result;
}
return null;
}
@Override
public String getAuthTokenLabel(String authTokenType) {
Log.d(LOG_TAG, "getAuthTokenLabel()");
return null;
}
@Override
public Bundle hasFeatures(AccountAuthenticatorResponse response,
Account account, String[] features) throws NetworkErrorException {
Log.d(LOG_TAG, "hasFeatures()");
return null;
}
@Override
public Bundle updateCredentials(AccountAuthenticatorResponse response,
Account account, String authTokenType, Bundle options)
throws NetworkErrorException {
Log.d(LOG_TAG, "updateCredentials()");
return null;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
cbebb4d52c5967696a168b9a03116e57fd06f7b9
|
8991ff9e4d6dd212a47a35b74c7b82a7df86785d
|
/gen/intellij/haskell/psi/impl/HaskellCnameImpl.java
|
49dfb567b076cdfbcb2bffd074864f4fa5276eea
|
[
"Apache-2.0"
] |
permissive
|
NightRa/intellij-haskell
|
284c48cb435d135c515800f017443778ebe0770e
|
cadda221eb164922ed12dfa31348634bf6355b03
|
refs/heads/master
| 2021-01-12T16:43:38.626663
| 2016-10-23T08:22:06
| 2016-10-23T08:22:06
| 71,440,355
| 0
| 0
| null | 2016-10-20T08:16:22
| 2016-10-20T08:16:22
| null |
UTF-8
|
Java
| false
| true
| 1,681
|
java
|
// This is a generated file. Not intended for manual editing.
package intellij.haskell.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
import static intellij.haskell.psi.HaskellTypes.*;
import intellij.haskell.psi.*;
import scala.Option;
public class HaskellCnameImpl extends HaskellCompositeElementImpl implements HaskellCname {
public HaskellCnameImpl(ASTNode node) {
super(node);
}
public void accept(@NotNull HaskellVisitor visitor) {
visitor.visitCname(this);
}
public void accept(@NotNull PsiElementVisitor visitor) {
if (visitor instanceof HaskellVisitor) accept((HaskellVisitor)visitor);
else super.accept(visitor);
}
@Override
@Nullable
public HaskellCon getCon() {
return findChildByClass(HaskellCon.class);
}
@Override
@Nullable
public HaskellConop getConop() {
return findChildByClass(HaskellConop.class);
}
@Override
@Nullable
public HaskellVar getVar() {
return findChildByClass(HaskellVar.class);
}
@Override
@Nullable
public HaskellVarop getVarop() {
return findChildByClass(HaskellVarop.class);
}
public String getName() {
return HaskellPsiImplUtil.getName(this);
}
public HaskellNamedElement getIdentifierElement() {
return HaskellPsiImplUtil.getIdentifierElement(this);
}
public Option<String> getQualifierName() {
return HaskellPsiImplUtil.getQualifierName(this);
}
public String getNameWithoutParens() {
return HaskellPsiImplUtil.getNameWithoutParens(this);
}
}
|
[
"rikvdkleij@gmail.com"
] |
rikvdkleij@gmail.com
|
e4c7c54cd5f7310abc85b8a567d98eccd9e85c8a
|
129f58086770fc74c171e9c1edfd63b4257210f3
|
/src/testcases/CWE89_SQL_Injection/CWE89_SQL_Injection__console_readLine_executeUpdate_74a.java
|
e2d91c2ae450aef37326b0eb4276c2f1a9e9b7ae
|
[] |
no_license
|
glopezGitHub/Android23
|
1bd0b6a6c7ce3c7439a74f1e4dcef2c4c0fac4ba
|
6215d0684c4fbdc7217ccfbedfccfca69824cc5e
|
refs/heads/master
| 2023-03-07T15:14:59.447795
| 2023-02-06T13:59:49
| 2023-02-06T13:59:49
| 6,856,387
| 0
| 3
| null | 2023-02-06T18:38:17
| 2012-11-25T22:04:23
|
Java
|
UTF-8
|
Java
| false
| false
| 4,485
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE89_SQL_Injection__console_readLine_executeUpdate_74a.java
Label Definition File: CWE89_SQL_Injection.label.xml
Template File: sources-sinks-74a.tmpl.java
*/
/*
* @description
* CWE: 89 SQL Injection
* BadSource: console_readLine Read data from the console using readLine()
* GoodSource: A hardcoded string
* Sinks: executeUpdate
* GoodSink: Use prepared statement and executeUpdate (properly)
* BadSink : data concatenated into SQL statment used in executeUpdate(), which could result in SQL Injection
* Flow Variant: 74 Data flow: data passed in a HashMap from one method to another in different source files in the same package
*
* */
package testcases.CWE89_SQL_Injection;
import testcasesupport.*;
import java.util.HashMap;
import java.sql.*;
import javax.servlet.http.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class CWE89_SQL_Injection__console_readLine_executeUpdate_74a extends AbstractTestCase
{
public void bad() throws Throwable
{
String data;
data = ""; /* Initialize data */
/* read user input from console with readLine */
try {
InputStreamReader isr = new InputStreamReader(System.in, "UTF-8");
BufferedReader buffread = new BufferedReader(isr);
/* POTENTIAL FLAW: Read data from the console using readLine() */
data = buffread.readLine();
}
catch( IOException ioe )
{
IO.logger.log(Level.WARNING, "Error with stream reading", ioe);
}
/* NOTE: Tools may report a flaw here because buffread and isr are not closed. Unfortunately, closing those will close System.in, which will cause any future attempts to read from the console to fail and throw an exception */
HashMap<Integer,String> data_hashmap = new HashMap<Integer,String>();
data_hashmap.put(0, data);
data_hashmap.put(1, data);
data_hashmap.put(2, data);
(new CWE89_SQL_Injection__console_readLine_executeUpdate_74b()).bad_sink(data_hashmap );
}
public void good() throws Throwable
{
goodG2B();
goodB2G();
}
/* goodG2B() - use GoodSource and BadSink */
private void goodG2B() throws Throwable
{
String data;
/* FIX: Use a hardcoded string */
data = "foo";
HashMap<Integer,String> data_hashmap = new HashMap<Integer,String>();
data_hashmap.put(0, data);
data_hashmap.put(1, data);
data_hashmap.put(2, data);
(new CWE89_SQL_Injection__console_readLine_executeUpdate_74b()).goodG2B_sink(data_hashmap );
}
/* goodB2G() - use BadSource and GoodSink */
private void goodB2G() throws Throwable
{
String data;
data = ""; /* Initialize data */
/* read user input from console with readLine */
try {
InputStreamReader isr = new InputStreamReader(System.in, "UTF-8");
BufferedReader buffread = new BufferedReader(isr);
/* POTENTIAL FLAW: Read data from the console using readLine() */
data = buffread.readLine();
}
catch( IOException ioe )
{
IO.logger.log(Level.WARNING, "Error with stream reading", ioe);
}
/* NOTE: Tools may report a flaw here because buffread and isr are not closed. Unfortunately, closing those will close System.in, which will cause any future attempts to read from the console to fail and throw an exception */
HashMap<Integer,String> data_hashmap = new HashMap<Integer,String>();
data_hashmap.put(0, data);
data_hashmap.put(1, data);
data_hashmap.put(2, data);
(new CWE89_SQL_Injection__console_readLine_executeUpdate_74b()).goodB2G_sink(data_hashmap );
}
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"guillermo.pando@gmail.com"
] |
guillermo.pando@gmail.com
|
b4b4e225de33e8d66ba06b01fd63687163328e0b
|
b9c4ecc88aa5a63f553086632b1ff9ab9194b29a
|
/Chapter16/App15/src/test/java/net/homenet/service/AccountServiceJUnit4SpringContextTests.java
|
940800ddd6c1d6d4cdf18f51bc823f2afc6f3c67
|
[] |
no_license
|
mousesd/Spring5Recipe
|
69c2fcf719274fb1f53de59289684734fff0225e
|
fa3cbcb83de41ab02150443c14068954fa0ab9f0
|
refs/heads/master
| 2020-03-31T01:59:05.007582
| 2019-02-13T15:33:42
| 2019-02-13T15:33:42
| 151,796,669
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,912
|
java
|
package net.homenet.service;
import net.homenet.configuration.BankConfiguration;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Repeat;
import org.springframework.test.annotation.Timed;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import static org.junit.Assert.*;
@SuppressWarnings("SqlDialectInspection")
@ContextConfiguration(classes = BankConfiguration.class)
@Sql(scripts = { "classpath:/ddl.sql" })
public class AccountServiceJUnit4SpringContextTests extends AbstractTransactionalJUnit4SpringContextTests {
private static final String TEST_ACCOUNT_NO = "1234";
private AccountService accountService;
@Autowired
public void setAccountService(AccountService accountService) {
this.accountService = accountService;
}
@Before
public void setUp() {
jdbcTemplate.update("INSERT INTO ACCOUNT (ACCOUNT_NO, BALANCE) VALUES (?, ?)", TEST_ACCOUNT_NO, 100);
}
@SuppressWarnings("ConstantConditions")
@Test
@Timed(millis = 1000)
public void deposit() {
accountService.deposit(TEST_ACCOUNT_NO, 50);
Double balance = jdbcTemplate.queryForObject("SELECT BALANCE FROM ACCOUNT WHERE ACCOUNT_NO = ?"
, Double.class
, TEST_ACCOUNT_NO);
assertEquals(balance, 150.0, 0);
}
@SuppressWarnings("ConstantConditions")
@Test
@Repeat(5)
public void withdraw() {
accountService.withdraw(TEST_ACCOUNT_NO, 50);
Double balance = jdbcTemplate.queryForObject("SELECT BALANCE FROM ACCOUNT WHERE ACCOUNT_NO = ?"
, Double.class
, TEST_ACCOUNT_NO);
assertEquals(balance, 50.0, 0);
}
}
|
[
"mousesd@gmail.com"
] |
mousesd@gmail.com
|
26ca937ae69668b471ccca44636d117aa79658bb
|
5cd3600ba89cf8d07045d439b2915d11d7ec0e9b
|
/Salesforce_Core_Framework/src/main/java/com/test/xcdhr/Salesforce_Core_Framework1/hrms_payroll/hrms_Payroll_SAPP_Statutory_Scenario/UpdateTaxCodeAndAnnualSalary.java
|
5902092b48ec461b738dcbba52f66e337172a526
|
[] |
no_license
|
AzizMudgal/XCDHR_Payroll
|
56e49d17f467e1b37c336d9042c0557855ce8bb9
|
fa6c6a665a4d19cec7645edc4914ac4ac2fa4ca4
|
refs/heads/master
| 2021-01-19T23:01:01.467009
| 2018-06-19T13:36:54
| 2018-06-19T13:36:54
| 101,260,492
| 0
| 0
| null | 2018-02-19T06:29:10
| 2017-08-24T06:14:06
|
Java
|
UTF-8
|
Java
| false
| false
| 5,990
|
java
|
package com.test.xcdhr.Salesforce_Core_Framework1.hrms_payroll.hrms_Payroll_SAPP_Statutory_Scenario;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import com.test.xcdhr.Salesforce_Core_Framework1.Salesforce_Util.Test_Util;
public class UpdateTaxCodeAndAnnualSalary extends TestSuiteBase
{
String runmodes[] = null;
static int count = -1;
static int countCompensation = -1;
public static boolean Fail=false;
public static boolean Skip=false;
public static boolean IsTestPass=true;
public int rownum;
@BeforeTest
public void CheckTestSkip() throws Throwable
{
processDesiredTaxYearInputExcelFile(TaxYear);
if(! Test_Util.IsTestcaseRunMode(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName()))
{
Skip=true;
Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, "first", Test_Util.GetRowNum(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName()),"Skipped");
//Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName(), count+2, "Skip");
APP_LOGS.debug("skipping the testcase" +this.getClass().getSimpleName() +" as the runmode is set to 'no' ");// this message would display in logs
throw new Exception("Testcase is being skipped" + this.getClass().getSimpleName()+ "as it's Runmode is set to 'NO'"); // this msg would display in Reports.
}
// Load the runmodes of the tests
runmodes=Test_Util.getDataSetRunmodes(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName());
}
public String payfreqncy;
boolean employeeFirsttimeView = true;
boolean compensationFirsttimeView = true;
boolean shouldOpenBrowser = true;
@Test(dataProvider="getData", priority=1)
public void EmpsSetup_ForMonthlyTaxRate(String EmpName,String Taxcode, String TaxBasis, String AnnualSalary,String PayFrequency) throws Throwable
{
//APP_LOGS.debug("Entering the Leave parameters");
APP_LOGS.debug(EmpName+"--"+Taxcode+"--"+TaxBasis+"--"+AnnualSalary+"--"+PayFrequency);
count++;
if(! runmodes[count].equalsIgnoreCase("Y"))
{
Skip=true;
throw new SkipException("Runmode for Test set data is set to 'NO' "+count);
}
APP_LOGS.debug("Executing the test case");
if(shouldOpenBrowser)
{
shouldOpenBrowser = false;
openBrowser();
logingIntoDesiredORG(OrgFlag);
driver.manage().window().maximize();
try
{
closePopupWindow();
if(existsElementchkFor1mts(OR.getProperty("PersonalTab")))
{
String personalTab = getObject("PersonalTab").getText();
System.out.println("Tab name is :"+ personalTab);
Assert.assertEquals("Personal", personalTab);
System.out.println("The test script verified that it successfully logged into XCD HR Org.");
System.out.println("");
}
}
catch(Throwable t)
{
APP_LOGS.debug("Could not assert the home page title, Check for error");
System.out.println("");
}
}
/*************************************************************************/
// The script updates the NI Category for the Automation employees
UpdateEmployeeTaxCode(EmpName,Taxcode,TaxBasis);
/*************************************************************************/
}
@Test(dataProvider="getData", priority=2)
public void EmpsSetup_WithAnnualSalary(String EmpName,String Taxcode, String TaxBasis,String AnnualSalary,String PayFrequency) throws Throwable
{
countCompensation++;
if(! runmodes[countCompensation].equalsIgnoreCase("Y"))
{
Skip=true;
throw new SkipException("Runmode for Test set data is set to 'NO' "+countCompensation);
}
/*************************************************************************/
// The script updates the Annual salary in the compensation Tab for the Automation employees
UpdateAnnualSalary(EmpName,AnnualSalary,PayFrequency);
/*************************************************************************/
}
@DataProvider
public Object[][] getData() throws Throwable
{
processDesiredTaxYearInputExcelFile(TaxYear);
return Test_Util.getData(Payroll_Statutory_AdoptionPaternitypay_SuiteXls,"UpdateTaxCodeAndAnnualSalary");
}
@AfterMethod
public void ReportDataSetResult() throws Throwable
{
processDesiredTaxYearInputExcelFile(TaxYear);
if(Skip)
{
Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName(), count+2, "Skip");
}
else if(Fail)
{
IsTestPass = false;
Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName(), count+2, "Fail");
}
else
{
Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName(), count+2, "Pass");
}
Skip=false;
Fail=false;
}
@AfterTest
public void ReportTestResult() throws Throwable
{
processDesiredTaxYearInputExcelFile(TaxYear);
if(IsTestPass)
{
// This will update the testresult in the first worksheet where in for that test case , even if one of the test data specified in second worksheet fails, the test
// would be considered as fail.And the same would be updated.
Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, "first", Test_Util.GetRowNum(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName()),"Pass");
}
else
{
Test_Util.ReportDataSetResult(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, "first", Test_Util.GetRowNum(Payroll_Statutory_AdoptionPaternitypay_SuiteXls, this.getClass().getSimpleName()),"Fail");
}
closeBrowser();
}
}
|
[
"azizm@peoplexcd.com"
] |
azizm@peoplexcd.com
|
8a96767c4beee3836ae30c0ebb7522715fade17c
|
d46558b01a692657aa3c8dd9e51d871e50b50896
|
/src/main/java/com/gene/mobilemaster/dao/ZganalystpcMapper.java
|
7582dc9d59e427fa30d4ddcb3649f347cfc528b0
|
[] |
no_license
|
quweijun/cms_order_zgmall_bak
|
c5355740d409038f1676f6c60542edc7c68f86fe
|
57335178214eba5ef7f31148a10e71cddcf1409d
|
refs/heads/master
| 2023-08-03T11:43:50.133601
| 2018-12-12T07:37:29
| 2018-12-12T07:37:29
| 158,420,844
| 0
| 0
| null | 2023-07-20T04:45:02
| 2018-11-20T16:38:10
|
Java
|
UTF-8
|
Java
| false
| false
| 205
|
java
|
package com.gene.mobilemaster.dao;
import com.gene.mobilemaster.model.Zganalystpc;
public interface ZganalystpcMapper {
int insert(Zganalystpc record);
int insertSelective(Zganalystpc record);
}
|
[
"29048829@qq.com"
] |
29048829@qq.com
|
f86ef0c0d9ed161f71357d333d85a2c4a062df34
|
70d98b4b1200f314d1c7a25899d58282ad251523
|
/src/test/java/io/inject/mock/impl/ViewImpl.java
|
fab1bad74fd21b916edb033f1f3259b95bf6b69d
|
[
"Apache-2.0"
] |
permissive
|
MStart/injectio
|
564859f8ecab7bab75853f328f2a21633271dfdc
|
02592831704cedd9c0a13f27e4c293bdce1ed1cb
|
refs/heads/master
| 2021-01-14T12:57:45.976078
| 2016-01-11T10:51:23
| 2016-01-11T10:51:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 849
|
java
|
package io.inject.mock.impl;
import io.inject.InjectResource;
import io.inject.InjectView;
import io.inject.Injector;
import io.inject.mock.View;
/**
* @author Sergey Ivonchik <sergey @ mintpay.by>
*/
public class ViewImpl extends View {
@InjectView(1)
private View mSubView;
@InjectResource(2)
private float mDimmen;
@InjectResource(2)
private int[] mIntArray;
private View mEmpty;
private int mZero;
private String mNull;
public ViewImpl(int id) {
super(id);
Injector.inject(this, this);
}
public View getSubView() {
return mSubView;
}
public float getDimmen() {
return mDimmen;
}
public int[] getIntArray() {
return mIntArray;
}
public View getEmpty() {
return mEmpty;
}
public int getZero() {
return mZero;
}
public String getNull() {
return mNull;
}
}
|
[
"="
] |
=
|
76af3abb6b1bdd60d1a2c867ece0f0376bf97b70
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/ui/web/main/src/java/com/echothree/ui/web/main/action/shipping/shippingmethod/CommentEditAction.java
|
58cc5b0f7c7b55ee015468855ef18a289f9a534c
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,976
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// 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.echothree.ui.web.main.action.shipping.shippingmethod;
import com.echothree.control.user.comment.common.CommentUtil;
import com.echothree.control.user.comment.common.edit.CommentEdit;
import com.echothree.control.user.comment.common.form.EditCommentForm;
import com.echothree.control.user.comment.common.result.EditCommentResult;
import com.echothree.control.user.comment.common.spec.CommentSpec;
import com.echothree.control.user.shipping.common.ShippingUtil;
import com.echothree.control.user.shipping.common.form.GetShippingMethodForm;
import com.echothree.control.user.shipping.common.result.GetShippingMethodResult;
import com.echothree.ui.web.main.framework.AttributeConstants;
import com.echothree.ui.web.main.framework.MainBaseEditAction;
import com.echothree.ui.web.main.framework.ParameterConstants;
import com.echothree.util.common.command.CommandResult;
import com.echothree.util.common.command.ExecutionResult;
import com.echothree.view.client.web.struts.sprout.annotation.SproutAction;
import com.echothree.view.client.web.struts.sprout.annotation.SproutForward;
import com.echothree.view.client.web.struts.sprout.annotation.SproutProperty;
import com.echothree.view.client.web.struts.sslext.config.SecureActionMapping;
import java.util.Map;
import javax.naming.NamingException;
import javax.servlet.http.HttpServletRequest;
@SproutAction(
path = "/Shipping/ShippingMethod/CommentEdit",
mappingClass = SecureActionMapping.class,
name = "ShippingMethodCommentEdit",
properties = {
@SproutProperty(property = "secure", value = "true")
},
forwards = {
@SproutForward(name = "Display", path = "/action/Shipping/ShippingMethod/Review", redirect = true),
@SproutForward(name = "Form", path = "/shipping/shippingmethod/commentEdit.jsp")
}
)
public class CommentEditAction
extends MainBaseEditAction<CommentEditActionForm, CommentSpec, CommentEdit, EditCommentForm, EditCommentResult> {
@Override
protected CommentSpec getSpec(HttpServletRequest request, CommentEditActionForm actionForm)
throws NamingException {
CommentSpec spec = CommentUtil.getHome().getCommentSpec();
String commentName = request.getParameter(ParameterConstants.COMMENT_NAME);
if(commentName == null) {
commentName = actionForm.getCommentName();
}
spec.setCommentName(commentName);
return spec;
}
@Override
protected CommentEdit getEdit(HttpServletRequest request, CommentEditActionForm actionForm)
throws NamingException {
CommentEdit edit = CommentUtil.getHome().getCommentEdit();
edit.setLanguageIsoName(actionForm.getLanguageChoice());
edit.setDescription(actionForm.getDescription());
edit.setMimeTypeName(actionForm.getMimeTypeChoice());
edit.setClobComment(actionForm.getClobComment());
return edit;
}
@Override
protected EditCommentForm getForm()
throws NamingException {
return CommentUtil.getHome().getEditCommentForm();
}
@Override
protected void setupActionForm(HttpServletRequest request, CommentEditActionForm actionForm, EditCommentResult result, CommentSpec spec, CommentEdit edit) {
actionForm.setShippingMethodName(request.getParameter(ParameterConstants.SHIPPING_METHOD_NAME));
actionForm.setCommentName(spec.getCommentName());
actionForm.setLanguageChoice(edit.getLanguageIsoName());
actionForm.setDescription(edit.getDescription());
actionForm.setMimeTypeChoice(edit.getMimeTypeName());
actionForm.setClobComment(edit.getClobComment());
}
@Override
protected CommandResult doEdit(HttpServletRequest request, EditCommentForm commandForm)
throws Exception {
CommandResult commandResult = CommentUtil.getHome().editComment(getUserVisitPK(request), commandForm);
ExecutionResult executionResult = commandResult.getExecutionResult();
EditCommentResult result = (EditCommentResult)executionResult.getResult();
request.setAttribute(AttributeConstants.COMMENT, result.getComment());
return commandResult;
}
@Override
public void setupForwardParameters(CommentEditActionForm actionForm, Map<String, String> parameters) {
parameters.put(ParameterConstants.SHIPPING_METHOD_NAME, actionForm.getShippingMethodName());
}
@Override
public void setupTransfer(CommentEditActionForm actionForm, HttpServletRequest request)
throws NamingException {
GetShippingMethodForm commandForm = ShippingUtil.getHome().getGetShippingMethodForm();
commandForm.setShippingMethodName(actionForm.getShippingMethodName());
CommandResult commandResult = ShippingUtil.getHome().getShippingMethod(getUserVisitPK(request), commandForm);
ExecutionResult executionResult = commandResult.getExecutionResult();
GetShippingMethodResult result = (GetShippingMethodResult)executionResult.getResult();
request.setAttribute(AttributeConstants.SHIPPING_METHOD, result.getShippingMethod());
}
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
680b6d74d6e1476eb84df6ed798e35319fe2e1af
|
75eb54942141574b4f84d1e78155274517e9b984
|
/trie/Trie.java
|
63cb416a7f82e5405c554408087173b87a0cfd79
|
[] |
no_license
|
617076674/classic-algorithm
|
63851c8be8f09de7c47c0becb6beeafcee3c7670
|
986b88fe134eb8910ccae147ae03f4ae22f523e7
|
refs/heads/master
| 2020-07-22T02:00:02.219318
| 2019-11-04T08:45:38
| 2019-11-04T08:45:38
| 207,040,833
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,905
|
java
|
package trie;
import java.util.HashMap;
import java.util.Map;
public class Trie {
private class Node {
public boolean isWord;
public Map<Character, Node> next;
public Node (boolean isWord) {
this.isWord = isWord;
next = new HashMap<>();
}
public Node() {
this(false);
}
}
private Node root;
private int size;
public Trie() {
root = new Node();
size = 0;
}
//获得Trie中存储的单词数量
public int getSize() {
return size;
}
//向Trie中添加一个单词word
public void add(String word) {
Node cur = root;
for (int i = 0; i < word.length(); i++) {
char c = word.charAt(i);
if (null == cur.next.get(c)) {
cur.next.put(c, new Node());
}
cur = cur.next.get(c);
}
if (!cur.isWord) { //只有当节点cur不是一个单词时,才需要将其标记为一个单词,并且把单词数量size加1
cur.isWord = true;
size++;
}
}
//查询单词是否在Trie中
public boolean contains(String word) {
Node cur = root;
for (int i = 0; i < word.length(); i++) {
char c = word.charAt(i);
if (null == cur.next.get(c)) {
return false;
}
cur = cur.next.get(c);
}
return cur.isWord;
}
//查询是否在Trie中有单词以prefix为前缀,一个单词是这个单词本身的前缀
public boolean isPrefix(String prefix) {
Node cur = root;
for (int i = 0; i < prefix.length(); i++) {
char c = prefix.charAt(i);
if (null == cur.next.get(c)) {
return false;
}
cur = cur.next.get(c);
}
return true;
}
}
|
[
"617076674@qq.com"
] |
617076674@qq.com
|
cb454a0fe015947b517b1e99384f30bf01a763d4
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_666543636ebdfe4f8a11af0b968d307e072233ab/CustomDateFormat/5_666543636ebdfe4f8a11af0b968d307e072233ab_CustomDateFormat_t.java
|
1f9dfc6b6de19d036d73dbd1c0dfe96c88b695da
|
[] |
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
| 1,712
|
java
|
package com.idega.util;
import java.text.DateFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* Title: A class for formatting presentation of Dates
* Description:
* Copyright: Copyright (c) 2002
* Company: idega
* @author <a href="tryggvi@idega.is">Tryggvi Larusson</a>
* @version 1.0
*/
public class CustomDateFormat {
private static String DASH = "-";
private static DateFormat swedishDateFormat;
private CustomDateFormat() {
}
private static DateFormat getSwedishDateTimeFormat(){
if(swedishDateFormat==null){
swedishDateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
}
return swedishDateFormat;
}
/**
* Accepts a java.util.Date object
* @return A formatted version of the date with time
**/
public static String formatDateTime(Date date, Locale locale) {
return getDateTimeInstance(locale).format(date);
}
/**
* Accepts an input Locale
* @return A default DateFormat instance for the locale
**/
public static DateFormat getDateTimeInstance(Locale locale){
if (locale.equals(LocaleUtil.getSwedishLocale())) {
return getSwedishDateTimeFormat();
}
else{
return DateFormat.getDateTimeInstance(2, 2, locale);
}
}
public static void main(String[] args) {
test(args);
}
public static void test(String[] args) {
String localeString = null;
try {
localeString = args[0];
} catch (RuntimeException rme) {
}
if (localeString == null) {
localeString = "sv_SE";
}
System.out.println(
"Output: "
+ formatDateTime(new Date(), LocaleUtil.getLocale(localeString)));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a42f303f8b7eafef4448b7fde8fb62098cff4a01
|
c6cb484aded802b2453994fb4f6ddc98a28426a9
|
/src/java.xml.ws/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Detail1_2Impl.java
|
ec706062fb82df44a2784348f025539baf949c38
|
[] |
no_license
|
shitapatilptc/java
|
de4ed8452d4810c62a6b15a643856d8ddb4cc917
|
445b4b3816fe703a68dbdda8ef73e6aaa8ba2972
|
refs/heads/master
| 2021-01-22T05:43:41.450356
| 2017-05-26T10:51:36
| 2017-05-26T10:51:36
| 92,491,357
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,823
|
java
|
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/**
*
* @author SAAJ RI Development Team
*/
package com.sun.xml.internal.messaging.saaj.soap.ver1_2;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.soap.*;
import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl;
import com.sun.xml.internal.messaging.saaj.soap.SOAPDocument;
import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl;
import com.sun.xml.internal.messaging.saaj.soap.impl.DetailImpl;
import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl;
import org.w3c.dom.Element;
public class Detail1_2Impl extends DetailImpl {
protected static final Logger log =
Logger.getLogger(Detail1_2Impl.class.getName(),
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
public Detail1_2Impl(SOAPDocumentImpl ownerDocument, String prefix) {
super(ownerDocument, NameImpl.createSOAP12Name("Detail", prefix));
}
public Detail1_2Impl(SOAPDocumentImpl ownerDocument) {
super(ownerDocument, NameImpl.createSOAP12Name("Detail"));
}
public Detail1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement) {
super(ownerDoc, domElement);
}
protected DetailEntry createDetailEntry(Name name) {
return new DetailEntry1_2Impl(
((SOAPDocument) getOwnerDocument()).getDocument(),
name);
}
protected DetailEntry createDetailEntry(QName name) {
return new DetailEntry1_2Impl(
((SOAPDocument) getOwnerDocument()).getDocument(),
name);
}
/*
* Override setEncodingStyle of ElementImpl to restrict adding encodingStyle
* attribute to SOAP Detail (SOAP 1.2 spec, part 1, section 5.1.1)
*/
public void setEncodingStyle(String encodingStyle) throws SOAPException {
log.severe("SAAJ0403.ver1_2.no.encodingStyle.in.detail");
throw new SOAPExceptionImpl("EncodingStyle attribute cannot appear in Detail");
}
public SOAPElement addAttribute(Name name, String value)
throws SOAPException {
if (name.getLocalName().equals("encodingStyle")
&& name.getURI().equals(NameImpl.SOAP12_NAMESPACE)) {
setEncodingStyle(value);
}
return super.addAttribute(name, value);
}
public SOAPElement addAttribute(QName name, String value)
throws SOAPException {
if (name.getLocalPart().equals("encodingStyle")
&& name.getNamespaceURI().equals(NameImpl.SOAP12_NAMESPACE)) {
setEncodingStyle(value);
}
return super.addAttribute(name, value);
}
}
|
[
"shitapatil@ptc.com"
] |
shitapatil@ptc.com
|
4ae3a64d2afc6abe6499749624c13a260bc91419
|
5851584f9ab0761f46e235f9af970dcf23a1f847
|
/ProjectBandit/src/com/ameron32/apps/projectbandit/core/trial/GameFragment.java
|
272837376808b444b40f7b4e882efabc0daba2d6
|
[
"Apache-2.0"
] |
permissive
|
ameron32/ProjectBandit
|
2f546d550f09c58c03d716a54e63b432349f271d
|
abb9ae8e36aa9a43156eb3c84f7d9ee3c23b45c6
|
refs/heads/master
| 2021-01-01T20:48:19.465830
| 2014-12-16T23:24:17
| 2014-12-16T23:24:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,892
|
java
|
package com.ameron32.apps.projectbandit.core.trial;
import java.util.List;
import com.ameron32.apps.projectbandit.R;
import com.ameron32.apps.projectbandit.manager.GameManager;
import com.ameron32.apps.projectbandit.manager._ParseUtils;
import com.ameron32.apps.projectbandit.manager.UserManager;
import com.ameron32.apps.projectbandit.object.User;
import com.ameron32.library.floatingtext.FloatingHintTextView;
import com.parse.FindCallback;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseUser;
import butterknife.ButterKnife;
import butterknife.InjectView;
import android.os.Bundle;
import android.view.View;
public class GameFragment extends
SectionContainerTestFragment {
private static final String ARG_PARAM1 = "param1";
public static GameFragment newInstance(int param1) {
GameFragment fragment = new GameFragment();
Bundle args = new Bundle();
args.putInt(ARG_PARAM1, param1);
fragment.setArguments(args);
return fragment;
}
public GameFragment() {
// Required empty public constructor
}
@Override public void onCreate(
Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getInt(ARG_PARAM1);
}
}
@InjectView(R.id.textcomboview_game) FloatingHintTextView game;
@InjectView(R.id.textcomboview_game_gm) FloatingHintTextView gm;
@InjectView(R.id.textcomboview_game_players) FloatingHintTextView players;
@InjectView(R.id.textcomboview_username) FloatingHintTextView user;
private int mParam1;
@Override public void onViewCreated(
View view,
Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.inject(this, view);
String gameName = GameManager.get().getCurrentGame().getName();
int sessionNumber = GameManager.get().getCurrentGame().getCurrentSession();
game.setText(gameName + " ["
+ sessionNumber + "]");
String username = UserManager.get().getCurrentUser().getString("username");
user.setText(username);
GameManager.get().getCurrentGame().getGMInBackground(new FindCallback<User>() {
@Override public void done(
List<User> gmParseUsers,
ParseException e) {
if (e == null) {
gm.setText(_ParseUtils.displayAsList('\n', gmParseUsers, "username"));
}
}
});
GameManager.get().getCurrentGame().getPlayers(new FindCallback<ParseUser>() {
@Override public void done(
List<ParseUser> gamePlayers,
ParseException e) {
if (e == null) {
players.setText(_ParseUtils.displayAsList('\n', gamePlayers, "username"));
}
}
});
}
@Override protected int onReplaceFragmentLayout(
int storedLayoutResource) {
return mParam1;
}
}
|
[
"ameron32extras@gmail.com"
] |
ameron32extras@gmail.com
|
bae591a89a5bd6c07aa0f5f1ab782c08c44d2565
|
6e7433ef3ce1e39aa2d744ca4eb0c9aaf59960ce
|
/src/main/java/com/nivelle/guide/configbean/RabbitMQConfig.java
|
b443059e56fd3a73250550f0a0e4724534b3c04f
|
[] |
no_license
|
yuki-2021/javaguides
|
b5293f2336b44aee982cd401b287f93023fe90b9
|
02f303f6914f8579f11391070889be6af1f4ba6b
|
refs/heads/master
| 2022-02-27T07:16:09.411561
| 2019-08-10T10:47:03
| 2019-08-10T10:47:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,900
|
java
|
package com.nivelle.guide.configbean;
import com.nivelle.guide.rabbitmq.DirectMessageReceiver;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
/**
* TODO:DOCUMENT ME!
*
* @author fuxinzhong
* @date 2019/07/01
*/
@Component
@ConfigurationProperties(prefix = "spring.rabbitmq")
@Setter
@Getter
@Slf4j
public class RabbitMQConfig {
@Value("host")
private String host;
@Value("port")
private String port;
@Value("userName")
private String userName;
@Value("password")
private String password;
//fanout
@Value("fanout.exchange")
private String fanoutExchange;
@Value("fanout.exchange.routingKey")
private String fanoutExchangeRoutingKey;
@Value("fanout.queue1")
private String fanoutQueue1;
@Value("fanout.queue2")
private String fanoutQueue2;
@Value("fanout.queue3")
private String fanoutQueue3;
//direct
@Value("direct.exchange")
private String directExchange;
@Value("direct.exchange.routingKey1")
private String directExchangeRoutingKey1;
@Value("direct.exchange.routingKey2")
private String directExchangeRoutingKey2;
@Value("direct.queue1")
private String directQueue1;
@Value("direct.queue2")
private String directQueue2;
@Autowired
DirectMessageReceiver directMessageReceiver;
//fanout
@Bean
FanoutExchange fanoutExchange() {
return new FanoutExchange(fanoutExchange);
}
@Bean
public Queue fanoutMessage1() {
return new Queue(fanoutQueue1);
}
@Bean
public Queue fanoutMessage2() {
return new Queue(fanoutQueue2);
}
@Bean
public Queue fanoutMessage3() {
return new Queue(fanoutQueue3);
}
@Bean
Binding bindingFanoutExchangeA(Queue fanoutMessage1, FanoutExchange fanoutExchange) {
return BindingBuilder.bind(fanoutMessage1).
to(fanoutExchange);
}
@Bean
Binding bindingFanoutExchangeB(Queue fanoutMessage2, FanoutExchange fanoutExchange) {
return BindingBuilder.bind(fanoutMessage2).to(fanoutExchange);
}
@Bean
Binding bindingFanoutExchangeC(Queue fanoutMessage3, FanoutExchange fanoutExchange) {
return BindingBuilder.bind(fanoutMessage3).to(fanoutExchange);
}
//direct
@Bean
DirectExchange directExchange() {
return new DirectExchange(directExchange);
}
@Bean
public Queue directMessage1() {
return new Queue(directQueue1);
}
@Bean
public Queue directMessage2() {
return new Queue(directQueue2);
}
@Bean
Binding bindingDirectExchangeA(Queue directMessage1, DirectExchange directExchange) {
return BindingBuilder.bind(directMessage1).to(directExchange).with(directExchangeRoutingKey1);
}
@Bean
Binding bindingDirectExchangeB(Queue directMessage2, DirectExchange directExchange) {
return BindingBuilder.bind(directMessage2).to(directExchange).with(directExchangeRoutingKey2);
}
/**
* 初始化阅读详情 rabbitMqTemplate
*
* @return
*/
@Bean(name = "rabbitTemplate")
public RabbitTemplate getRabbitTemplate() {
RabbitTemplate template = new RabbitTemplate(connectionFactory());
//未找到投递队列时,则将消息返回给生成者
template.setMandatory(true);
//确认消息是否到达broker服务器,也就是只确认是否正确到达exchange中即可,只要正确的到达exchange中,broker即可确认该消息返回给客户端ack。
template.setConfirmCallback((correlationData, ack, cause) -> {
log.info("消息确认结果:correlationData={},ack={},cause={}", correlationData, ack, cause);
});
//mandatory这个参数为true表示如果发送消息到了RabbitMq,没有对应该消息的队列。那么会将消息返回给生产者,此时仍然会发送ack确认消息
template.setReturnCallback((message, replyCode, replyText, exchange, routingKey)
-> log.info("消息返回结果:return callback message:{},code:{},text:{}", message, replyCode, replyText));
return template;
}
/**
* 连接配置
*
* @return
*/
public ConnectionFactory connectionFactory() {
CachingConnectionFactory connectionFactory = new CachingConnectionFactory();
connectionFactory.setHost(host);
connectionFactory.setPort(Integer.parseInt(port));
connectionFactory.setUsername(userName);
connectionFactory.setPassword(password);
//发送者确认
connectionFactory.setPublisherConfirms(true);
return connectionFactory;
}
@Bean
SimpleMessageListenerContainer fanoutContainerA(ConnectionFactory connectionFactory) {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setMessageListener(message -> log.info("simple fanoutQueue1,message:{}", message));
container.setQueueNames(fanoutQueue1);
//消费者手动确认,其实都是手动确认,只不过 Auto确认是spring包装了一层,对于执行异常会放到待确认队列,重新投递
container.setAcknowledgeMode(AcknowledgeMode.AUTO);
return container;
}
@Bean
SimpleMessageListenerContainer fanoutContainerB(ConnectionFactory connectionFactory) {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setMessageListener(message -> log.info("simple fanoutQueue2,message:{}", message));
container.setQueueNames(fanoutQueue2);
return container;
}
@Bean
SimpleMessageListenerContainer fanoutContainerC(ConnectionFactory connectionFactory) {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setMessageListener(message -> log.info("simple fanoutQueue3,message:{}", message));
container.setQueueNames(fanoutQueue3);
return container;
}
@Bean
SimpleMessageListenerContainer directContainerA(ConnectionFactory connectionFactory) {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setMessageListener(message -> log.info("simple directQueue1,message:{}", message));
container.setQueueNames(directQueue1);
return container;
}
@Bean
SimpleMessageListenerContainer directContainerB(ConnectionFactory connectionFactory) {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setMessageListener(directMessageReceiver);
container.setQueueNames(directQueue2);
//消费者手动确认,其实都是手动确认,只不过 Auto确认是spring包装了一层,对于执行异常会放到待确认队列,重新投递
container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
return container;
}
}
|
[
"fuxinzhong@zhangyue.com"
] |
fuxinzhong@zhangyue.com
|
194be2f59297512b2e19ac7ce8352d68f48c58c9
|
7ced4b8259a5d171413847e3e072226c7a5ee3d2
|
/Workspace/Demux/HashMap/brick-wall(Revision).java
|
368359e4176d97621403ab8e74b4cabba26a58df
|
[] |
no_license
|
tanishq9/Data-Structures-and-Algorithms
|
8d4df6c8a964066988bcf5af68f21387a132cd4d
|
f6f5dec38d5e2d207fb29ad4716a83553924077a
|
refs/heads/master
| 2022-12-13T03:57:39.447650
| 2020-09-05T13:16:55
| 2020-09-05T13:16:55
| 119,425,479
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 513
|
java
|
class Solution {
public int leastBricks(List<List<Integer>> wall) {
HashMap<Integer,Integer> map=new HashMap<>();
for(int i=0;i<wall.size();i++){
int sum=0;
for(int j=0;j<wall.get(i).size()-1;j++){
sum+=wall.get(i).get(j);
map.put(sum,map.getOrDefault(sum,0)+1);
}
}
int max=0;
for(int free:map.keySet()){
max=Math.max(max,map.get(free));
}
return wall.size()-max;
}
}
|
[
"tanishqsaluja18@gmail.com"
] |
tanishqsaluja18@gmail.com
|
c5c3ca14caaac43bc589fa61090fcaed2d37df80
|
49cc531ce6a965b522f685daf250b63e66c2a144
|
/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/domain/LoanProductRepository.java
|
decc0912dc9ff993ffe04da80b2b8bd4b4267c1b
|
[] |
no_license
|
reddysatish158/finance
|
a1ba833e08758577e266d96b1833d27a6862bc98
|
8db11b653a7fa98902f15f10cebe25b8f93d05d1
|
refs/heads/master
| 2021-01-01T16:12:51.818142
| 2014-08-20T13:17:09
| 2014-08-20T13:17:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 341
|
java
|
package org.mifosplatform.portfolio.loanproduct.domain;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
public interface LoanProductRepository extends JpaRepository<LoanProduct, Long>, JpaSpecificationExecutor<LoanProduct> {
// no behaviour added
}
|
[
"keithwoodlock@gmail.com"
] |
keithwoodlock@gmail.com
|
7e7eff1a74864832ff1399accf070beca792e252
|
db57a38a71aeb997b8f1c9caf4bc9332cae9b6e0
|
/lab3/hello-rds/src/main/java/com/yen/config/DataSourceProperties.java
|
5b24b7c0304d6d6b2e951724ebcbb5418744dae9
|
[] |
no_license
|
yennanliu/LambdaHelloWorld
|
dcb394fc443335362071a189a8420716c62553b4
|
d43e7f372948d8619096e0d62a4128ea76f05edc
|
refs/heads/master
| 2023-08-11T12:38:05.950686
| 2023-08-11T11:44:55
| 2023-08-11T11:44:55
| 230,426,257
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,210
|
java
|
package com.yen.config;
/**
* https://youtu.be/K1OI-S0ET70?t=902
*
*/
public class DataSourceProperties {
private final String host;
private final int port;
private final String db;
private final String username;
private final String password;
// constructor
// no args constructor
public DataSourceProperties() {
this.host = System.getenv("RDS_HOSTNAME");
this.db = System.getenv("RDS_DB");
this.username = System.getenv("RDS_USERNAME");
this.password = System.getenv("RDS_PASSWORD");
this.port = Integer.parseInt(System.getenv("RDS_PORT"));
}
// all args constructor
public DataSourceProperties(String host, int port, String db, String username, String password) {
this.host = host;
this.port = port;
this.db = db;
this.username = username;
this.password = password;
}
public String getHost() {
return host;
}
public int getPort() {
return port;
}
public String getDb() {
return db;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
}
|
[
"f339339@gmail.com"
] |
f339339@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.