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
7e0cff01d0fee216002866d325e5b4dded28481f
1879a8b74d3ee07f5d34d9c2bb9f75d159d9b91e
/instrumentation-test-harness/src/main/java/org/glowroot/instrumentation/test/harness/ThrowableInfo.java
cae5b98c1d0a5d9c5242ef7a592ab58eb990755e
[ "Apache-2.0" ]
permissive
trask/instrumentation
0077460f5bdadc52e371fd9898b0931a43de3b7d
23194d5bf21a6ce75afe99b460c37b2bd2b750e3
refs/heads/master
2020-05-19T16:36:55.898422
2019-11-08T04:43:06
2019-11-08T05:00:15
185,114,955
0
0
null
null
null
null
UTF-8
Java
false
false
1,709
java
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.glowroot.instrumentation.test.harness; import java.io.Serializable; import org.checkerframework.checker.nullness.qual.Nullable; import org.immutables.value.Value; import static com.google.common.base.Preconditions.checkNotNull; // this is needed because some Throwables have de-serialization problems // (in particular old play 2.x versions) @Value.Immutable @SuppressWarnings("serial") public abstract class ThrowableInfo implements Serializable { public abstract Class<?> type(); public abstract @Nullable String message(); public abstract StackTraceElement[] stackTrace(); public abstract @Nullable ThrowableInfo cause(); public static ThrowableInfo create(Throwable t) { ImmutableThrowableInfo.Builder builder = ImmutableThrowableInfo.builder() .type(t.getClass()) .message(t.getMessage()) .stackTrace(checkNotNull(t.getStackTrace())); Throwable cause = t.getCause(); if (cause != null) { builder.cause(create(cause)); } return builder.build(); } }
[ "trask.stalnaker@gmail.com" ]
trask.stalnaker@gmail.com
d24b2a5a4044b76f3d6eb9063d56c12c53441326
87f420a0e7b23aefe65623ceeaa0021fb0c40c56
/oauth/oauth-module-system/oauth-module-system-biz/src/main/java/cn/iocoder/oauth/module/system/controller/admin/user/vo/user/UserImportRespVO.java
d382705133c6d3c7c8034b125468a904f6de3a95
[]
no_license
xioxu-web/xioxu-web
0361a292b675d8209578d99451598bf4a56f9b08
7fe3f9539e3679e1de9f5f614f3f9b7f41a28491
refs/heads/master
2023-05-05T01:59:43.228816
2023-04-28T07:44:58
2023-04-28T07:44:58
367,005,744
0
0
null
null
null
null
UTF-8
Java
false
false
781
java
package cn.iocoder.oauth.module.system.controller.admin.user.vo.user; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Builder; import lombok.Data; import java.util.List; import java.util.Map; @ApiModel("管理后台 - 用户导入 Response VO") @Data @Builder public class UserImportRespVO { @ApiModelProperty(value = "创建成功的用户名数组", required = true) private List<String> createUsernames; @ApiModelProperty(value = "更新成功的用户名数组", required = true) private List<String> updateUsernames; @ApiModelProperty(value = "导入失败的用户集合", required = true, notes = "key 为用户名,value 为失败原因") private Map<String, String> failureUsernames; }
[ "xb01049438@alibaba-inc.com" ]
xb01049438@alibaba-inc.com
33225a9db44fc87ecec59936bc3f56429b04115a
e36deeb4865f8f97c42bb357b001daa5185ea2ab
/src/com/ecodation/common/Ders_006_System.java
f58ac4287482cdaf11853fb3aea6bf3bdb31e1c3
[]
no_license
hamitmizrak/java8_mart
b72575df5b08980bbb5d713de3e5203e692c4155
acae5c9d3a44aeddf43bc1ac888c914eb68a920d
refs/heads/main
2023-04-06T21:47:32.665847
2021-04-17T10:32:48
2021-04-17T10:32:48
352,264,867
1
1
null
null
null
null
UTF-8
Java
false
false
195
java
package com.ecodation.common; import java.util.Date; public class Ders_006_System { public static void main(String[] args) { System.out.println(new Date(System.currentTimeMillis())); } }
[ "hamitmizrak@gmail.com" ]
hamitmizrak@gmail.com
b64753fcc16921d7dde7c414a0503ef847974fff
e3a2b9fe8f92f465eccd51e9c9325a4ce774b6c3
/log-demo/src/main/java/leetcode/_05_二叉树/_101_对称二叉树.java
2baa6c75064790530f4f27bccee3f30a2cdf66e3
[]
no_license
u19900101/MyLeetCode
49ad6a35aeb95de59ccc23e1b5630ce3ec1f9d3a
1cc3a263c15c5656f52d0a9fac958e64e2d57bc8
refs/heads/master
2022-03-25T20:57:33.493916
2022-03-02T08:40:37
2022-03-02T08:40:37
158,323,382
2
0
null
null
null
null
UTF-8
Java
false
false
2,519
java
package leetcode._05_二叉树; import org.junit.Test; import java.math.BigInteger; import java.util.LinkedList; import java.util.Queue; /** * @author pppppp * @date 2022/2/7 10:38 * 给你一个二叉树的根节点 root , 检查它是否轴对称。 * 输入:root = [1,2,2,3,4,4,3] * 输出:true * 输入:root = [1,2,2,null,3,null,3] * 输出:false */ public class _101_对称二叉树 { @Test public void T_() { TreeNode treeNode = new TreeNode(1, new TreeNode(3, new TreeNode(4), new TreeNode(2)), new TreeNode(3, new TreeNode(2), new TreeNode(4))); System.out.println(isSymmetric2(treeNode)); } public boolean isSymmetric(TreeNode root) { return check(root, root); } public boolean check(TreeNode p, TreeNode q) { if (p == null && q == null) { return true; } if (p == null || q == null) { return false; } return p.val == q.val && check(p.left, q.right) && check(p.right, q.left); } /*使用队列求解*/ public boolean isSymmetric2(TreeNode root) { if (root == null || root.left == null && root.right == null) { return true; } Queue<TreeNode> queue = new LinkedList<>(); queue.offer(root.left); queue.offer(root.right); while (!queue.isEmpty()) { TreeNode left = queue.poll(); TreeNode right = queue.poll(); if (left == null && right == null) { continue; } if (left == null || right == null) { return false; } if (left.val != right.val) { return false; } queue.offer(left.left); queue.offer(right.right); queue.offer(left.right); queue.offer(right.left); } return true; } /*斐波那契数列的第128项*/ public static void main(String[] args){ int n = 128; System.out.println(fibfunc(n)); } public static BigInteger fibfunc(int n) { if (n == 1 || n == 2) { return BigInteger.valueOf(1); } BigInteger f1 = BigInteger.valueOf(1), f2 = BigInteger.valueOf(1), f = BigInteger.valueOf(0); for (int i = 3; i <= n; i++) { f = f1.add(f2); f2 = f1; f1 = f; } return f; } }
[ "815000342@qq.com" ]
815000342@qq.com
c89bc276f632fc8359c3f96a4e2b765178e72ef5
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/imm-20200930/src/main/java/com/aliyun/imm20200930/models/DetectImageCodesShrinkRequest.java
6838b4d081a5b456f466419b92a6a2b552a66e1e
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,337
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.imm20200930.models; import com.aliyun.tea.*; public class DetectImageCodesShrinkRequest extends TeaModel { @NameInMap("CredentialConfig") public String credentialConfigShrink; @NameInMap("ProjectName") public String projectName; @NameInMap("SourceURI") public String sourceURI; public static DetectImageCodesShrinkRequest build(java.util.Map<String, ?> map) throws Exception { DetectImageCodesShrinkRequest self = new DetectImageCodesShrinkRequest(); return TeaModel.build(map, self); } public DetectImageCodesShrinkRequest setCredentialConfigShrink(String credentialConfigShrink) { this.credentialConfigShrink = credentialConfigShrink; return this; } public String getCredentialConfigShrink() { return this.credentialConfigShrink; } public DetectImageCodesShrinkRequest setProjectName(String projectName) { this.projectName = projectName; return this; } public String getProjectName() { return this.projectName; } public DetectImageCodesShrinkRequest setSourceURI(String sourceURI) { this.sourceURI = sourceURI; return this; } public String getSourceURI() { return this.sourceURI; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
28f8aeb74db3ddaa0d7d91cd995035459c3d2241
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/google/android/gms/internal/measurement/zzir.java
38d05c95f8437cf8319c22f1d05edca11dba5bfe
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
6,322
java
package com.google.android.gms.internal.measurement; import java.util.AbstractList; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.RandomAccess; public final class zzir extends zzgn<String> implements zziu, RandomAccess { private static final zzir zza; private static final zziu zzb; private final List<Object> zzc; static { zzir zzir = new zzir(); zza = zzir; zzir.zzb(); zzb = zzir; } public zzir() { this(10); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.List public final /* synthetic */ void add(int i, Object obj) { zzc(); this.zzc.add(i, (String) obj); ((AbstractList) this).modCount++; } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractCollection, java.util.List, java.util.Collection public final boolean addAll(Collection<? extends String> collection) { return addAll(size(), collection); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection public final void clear() { zzc(); this.zzc.clear(); ((AbstractList) this).modCount++; } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object public final /* bridge */ /* synthetic */ boolean equals(Object obj) { return super.equals(obj); } @Override // java.util.AbstractList, java.util.List public final /* synthetic */ Object get(int i) { Object obj = this.zzc.get(i); if (obj instanceof String) { return (String) obj; } if (obj instanceof zzgt) { zzgt zzgt = (zzgt) obj; String zzb2 = zzgt.zzb(); if (zzgt.zzc()) { this.zzc.set(i, zzb2); } return zzb2; } byte[] bArr = (byte[]) obj; String zzb3 = zzie.zzb(bArr); if (zzie.zza(bArr)) { this.zzc.set(i, zzb3); } return zzb3; } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object public final /* bridge */ /* synthetic */ int hashCode() { return super.hashCode(); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractCollection, java.util.List, java.util.Collection public final /* bridge */ /* synthetic */ boolean remove(Object obj) { return super.remove(obj); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractCollection, java.util.List, java.util.Collection public final /* bridge */ /* synthetic */ boolean removeAll(Collection collection) { return super.removeAll(collection); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractCollection, java.util.List, java.util.Collection public final /* bridge */ /* synthetic */ boolean retainAll(Collection collection) { return super.retainAll(collection); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.List public final /* synthetic */ Object set(int i, Object obj) { zzc(); return zza(this.zzc.set(i, (String) obj)); } @Override // java.util.AbstractCollection, java.util.List, java.util.Collection public final int size() { return this.zzc.size(); } @Override // com.google.android.gms.internal.measurement.zziu public final void zza(zzgt zzgt) { zzc(); this.zzc.add(zzgt); ((AbstractList) this).modCount++; } @Override // com.google.android.gms.internal.measurement.zziu public final Object zzb(int i) { return this.zzc.get(i); } @Override // com.google.android.gms.internal.measurement.zziu public final List<?> zzd() { return Collections.unmodifiableList(this.zzc); } @Override // com.google.android.gms.internal.measurement.zziu public final zziu zze() { return zza() ? new zzkv(this) : this; } public zzir(int i) { this(new ArrayList(i)); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.List public final boolean addAll(int i, Collection<? extends String> collection) { zzc(); if (collection instanceof zziu) { collection = ((zziu) collection).zzd(); } boolean addAll = this.zzc.addAll(i, collection); ((AbstractList) this).modCount++; return addAll; } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.List public final /* synthetic */ Object remove(int i) { zzc(); Object remove = this.zzc.remove(i); ((AbstractList) this).modCount++; return zza(remove); } private zzir(ArrayList<Object> arrayList) { this.zzc = arrayList; } private static String zza(Object obj) { if (obj instanceof String) { return (String) obj; } if (obj instanceof zzgt) { return ((zzgt) obj).zzb(); } return zzie.zzb((byte[]) obj); } @Override // com.google.android.gms.internal.measurement.zzgn, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection public final /* bridge */ /* synthetic */ boolean add(Object obj) { return super.add(obj); } @Override // com.google.android.gms.internal.measurement.zzgn, com.google.android.gms.internal.measurement.zzik public final /* bridge */ /* synthetic */ boolean zza() { return super.zza(); } @Override // com.google.android.gms.internal.measurement.zzik public final /* synthetic */ zzik zza(int i) { if (i >= size()) { ArrayList arrayList = new ArrayList(i); arrayList.addAll(this.zzc); return new zzir(arrayList); } throw new IllegalArgumentException(); } }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
a7e46b1853b5ad232ab02a07dd4bb8dac7b3906f
d60bd7144cb4428a6f7039387c3aaf7b295ecc77
/ScootAppSource/com/google/android/gms/maps/model/LatLng.java
ad51db8e5cb35d690a487f4468399573d2dd3281
[]
no_license
vaquarkhan/Scoot-mobile-app
4f58f628e7e2de0480f7c41998cdc38100dfef12
befcfb58c1dccb047548f544dea2b2ee187da728
refs/heads/master
2020-06-10T19:14:25.985858
2016-12-08T04:39:10
2016-12-08T04:39:10
75,902,491
1
0
null
null
null
null
UTF-8
Java
false
false
1,971
java
package com.google.android.gms.maps.model; import android.os.Parcel; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; public final class LatLng implements SafeParcelable { public static final o CREATOR = new o(); public final double a; public final double b; private final int c; public LatLng(double paramDouble1, double paramDouble2) { this(1, paramDouble1, paramDouble2); } LatLng(int paramInt, double paramDouble1, double paramDouble2) { this.c = paramInt; if ((-180.0D <= paramDouble2) && (paramDouble2 < 180.0D)) {} for (this.b = paramDouble2;; this.b = (((paramDouble2 - 180.0D) % 360.0D + 360.0D) % 360.0D - 180.0D)) { this.a = Math.max(-90.0D, Math.min(90.0D, paramDouble1)); return; } } int a() { return this.c; } public int describeContents() { return 0; } public boolean equals(Object paramObject) { if (this == paramObject) {} do { return true; if (!(paramObject instanceof LatLng)) { return false; } paramObject = (LatLng)paramObject; } while ((Double.doubleToLongBits(this.a) == Double.doubleToLongBits(((LatLng)paramObject).a)) && (Double.doubleToLongBits(this.b) == Double.doubleToLongBits(((LatLng)paramObject).b))); return false; } public int hashCode() { long l = Double.doubleToLongBits(this.a); int i = (int)(l ^ l >>> 32); l = Double.doubleToLongBits(this.b); return (i + 31) * 31 + (int)(l ^ l >>> 32); } public String toString() { double d1 = this.a; double d2 = this.b; return 60 + "lat/lng: (" + d1 + "," + d2 + ")"; } public void writeToParcel(Parcel paramParcel, int paramInt) { o.a(this, paramParcel, paramInt); } } /* Location: D:\Android\dex2jar-2.0\classes-dex2jar.jar!\com\google\android\gms\maps\model\LatLng.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "vaquar.khan@gmail.com" ]
vaquar.khan@gmail.com
6badb45c658c5e360bdbb0f643ac06a96907ccab
b5f239cebe6051bc5ea8407ab364e4d579882c88
/src/main/java/com/tencentcloudapi/live/v20180801/models/DescribeScreenShotSheetNumListRequest.java
cb7cc2d2fe0402ab1afc4451e6d10f544b6e4f22
[ "Apache-2.0" ]
permissive
xiaolingis/tencentcloud-sdk-java
4687d083a96c45e2a1bc06ad18fdcbdecb93c5ab
9fb45c749f27992be6df89ef25bc0513dc204419
refs/heads/master
2023-08-30T21:05:20.000617
2021-09-17T04:39:47
2021-09-17T04:39:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,476
java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.live.v20180801.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class DescribeScreenShotSheetNumListRequest extends AbstractModel{ /** * utc起始时间,格式为yyyy-mm-ddTHH:MM:SSZ */ @SerializedName("StartTime") @Expose private String StartTime; /** * utc结束时间,格式为yyyy-mm-ddTHH:MM:SSZ,支持查询最近1年数据。 */ @SerializedName("EndTime") @Expose private String EndTime; /** * 地域信息,可选值包括Mainland,Oversea,前者是查询中国大陆范围内的数据,后者是除中国大陆范围之外的数据,若不传该参数,则查询所有地区的数据。 */ @SerializedName("Zone") @Expose private String Zone; /** * 推流域名(支持查询2019年11 月1日之后的域名维度数据)。 */ @SerializedName("PushDomains") @Expose private String [] PushDomains; /** * 数据维度,数据延迟1个半小时,可选值包括:1、Minute(5分钟粒度,最大支持查询时间范围是31天),2、Day(天粒度,默认值,最大支持查询时间范围是186天当天)。 */ @SerializedName("Granularity") @Expose private String Granularity; /** * Get utc起始时间,格式为yyyy-mm-ddTHH:MM:SSZ * @return StartTime utc起始时间,格式为yyyy-mm-ddTHH:MM:SSZ */ public String getStartTime() { return this.StartTime; } /** * Set utc起始时间,格式为yyyy-mm-ddTHH:MM:SSZ * @param StartTime utc起始时间,格式为yyyy-mm-ddTHH:MM:SSZ */ public void setStartTime(String StartTime) { this.StartTime = StartTime; } /** * Get utc结束时间,格式为yyyy-mm-ddTHH:MM:SSZ,支持查询最近1年数据。 * @return EndTime utc结束时间,格式为yyyy-mm-ddTHH:MM:SSZ,支持查询最近1年数据。 */ public String getEndTime() { return this.EndTime; } /** * Set utc结束时间,格式为yyyy-mm-ddTHH:MM:SSZ,支持查询最近1年数据。 * @param EndTime utc结束时间,格式为yyyy-mm-ddTHH:MM:SSZ,支持查询最近1年数据。 */ public void setEndTime(String EndTime) { this.EndTime = EndTime; } /** * Get 地域信息,可选值包括Mainland,Oversea,前者是查询中国大陆范围内的数据,后者是除中国大陆范围之外的数据,若不传该参数,则查询所有地区的数据。 * @return Zone 地域信息,可选值包括Mainland,Oversea,前者是查询中国大陆范围内的数据,后者是除中国大陆范围之外的数据,若不传该参数,则查询所有地区的数据。 */ public String getZone() { return this.Zone; } /** * Set 地域信息,可选值包括Mainland,Oversea,前者是查询中国大陆范围内的数据,后者是除中国大陆范围之外的数据,若不传该参数,则查询所有地区的数据。 * @param Zone 地域信息,可选值包括Mainland,Oversea,前者是查询中国大陆范围内的数据,后者是除中国大陆范围之外的数据,若不传该参数,则查询所有地区的数据。 */ public void setZone(String Zone) { this.Zone = Zone; } /** * Get 推流域名(支持查询2019年11 月1日之后的域名维度数据)。 * @return PushDomains 推流域名(支持查询2019年11 月1日之后的域名维度数据)。 */ public String [] getPushDomains() { return this.PushDomains; } /** * Set 推流域名(支持查询2019年11 月1日之后的域名维度数据)。 * @param PushDomains 推流域名(支持查询2019年11 月1日之后的域名维度数据)。 */ public void setPushDomains(String [] PushDomains) { this.PushDomains = PushDomains; } /** * Get 数据维度,数据延迟1个半小时,可选值包括:1、Minute(5分钟粒度,最大支持查询时间范围是31天),2、Day(天粒度,默认值,最大支持查询时间范围是186天当天)。 * @return Granularity 数据维度,数据延迟1个半小时,可选值包括:1、Minute(5分钟粒度,最大支持查询时间范围是31天),2、Day(天粒度,默认值,最大支持查询时间范围是186天当天)。 */ public String getGranularity() { return this.Granularity; } /** * Set 数据维度,数据延迟1个半小时,可选值包括:1、Minute(5分钟粒度,最大支持查询时间范围是31天),2、Day(天粒度,默认值,最大支持查询时间范围是186天当天)。 * @param Granularity 数据维度,数据延迟1个半小时,可选值包括:1、Minute(5分钟粒度,最大支持查询时间范围是31天),2、Day(天粒度,默认值,最大支持查询时间范围是186天当天)。 */ public void setGranularity(String Granularity) { this.Granularity = Granularity; } public DescribeScreenShotSheetNumListRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public DescribeScreenShotSheetNumListRequest(DescribeScreenShotSheetNumListRequest source) { if (source.StartTime != null) { this.StartTime = new String(source.StartTime); } if (source.EndTime != null) { this.EndTime = new String(source.EndTime); } if (source.Zone != null) { this.Zone = new String(source.Zone); } if (source.PushDomains != null) { this.PushDomains = new String[source.PushDomains.length]; for (int i = 0; i < source.PushDomains.length; i++) { this.PushDomains[i] = new String(source.PushDomains[i]); } } if (source.Granularity != null) { this.Granularity = new String(source.Granularity); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "StartTime", this.StartTime); this.setParamSimple(map, prefix + "EndTime", this.EndTime); this.setParamSimple(map, prefix + "Zone", this.Zone); this.setParamArraySimple(map, prefix + "PushDomains.", this.PushDomains); this.setParamSimple(map, prefix + "Granularity", this.Granularity); } }
[ "tencentcloudapi@tenent.com" ]
tencentcloudapi@tenent.com
505920d154bad47650c8c78bc1a26950cb98caf7
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
/app/src/main/java/org/android/agoo/control/RunnableC4804k.java
66bbaf589d7a176ad332a5de95fac83d5a24ca20
[]
no_license
rcoolboy/guilvN
3817397da465c34fcee82c0ca8c39f7292bcc7e1
c779a8e2e5fd458d62503dc1344aa2185101f0f0
refs/heads/master
2023-05-31T10:04:41.992499
2021-07-07T09:58:05
2021-07-07T09:58:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
571
java
package org.android.agoo.control; import android.content.Intent; /* renamed from: org.android.agoo.control.k */ public class RunnableC4804k implements Runnable { /* renamed from: a */ public final /* synthetic */ Intent f13463a; /* renamed from: b */ public final /* synthetic */ BaseIntentService f13464b; public RunnableC4804k(BaseIntentService baseIntentService, Intent intent) { this.f13464b = baseIntentService; this.f13463a = intent; } public void run() { this.f13464b.onHandleIntent(this.f13463a); } }
[ "593746220@qq.com" ]
593746220@qq.com
db4d6591d500d3e2a9e698149e175c5da6298516
8aaa6a94dc26de0c791491430ef9d55e1fa373fc
/app/src/main/java/com/zgld/mall/adapter/HotSupplierAdapter.java
2f81f5bec6f3ea661f0a3b556c0b021889d8a5af
[]
no_license
longliuping/zgldappmall
89cf90218a2887d6a616a1228617a77d6fae7811
28a31577b947083021581c37fa4806fe95f593fe
refs/heads/master
2021-01-10T08:17:15.838563
2016-03-31T02:58:41
2016-03-31T02:58:41
53,829,436
0
0
null
null
null
null
UTF-8
Java
false
false
2,088
java
package com.zgld.mall.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.zgld.mall.R; import com.zgld.mall.SysApplication; import com.zgld.mall.beans.SupperArea; import com.zgld.mall.beans.SupperHot; import com.zgld.mall.beans.Supplier; import java.util.List; /** * Created by Administrator on 2016/3/24. */ public class HotSupplierAdapter extends BaseAdapter{ List<Supplier> listInfo; Context context; public HotSupplierAdapter(Context context,List<Supplier> listInfo){ this.context = context; this.listInfo = listInfo; } @Override public int getCount() { return listInfo.size(); } @Override public Object getItem(int position) { return listInfo.get(position); } @Override public long getItemId(int position) { return position; } class ViewHolder{ TextView item_name,item_detail; ImageView item_image; } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder vh = null; if(convertView==null){ vh = new ViewHolder(); convertView = LayoutInflater.from(context).inflate(R.layout.item_hot_supplier,null); vh.item_name = (TextView) convertView.findViewById(R.id.item_name); vh.item_detail = (TextView) convertView.findViewById(R.id.item_detail); vh.item_image = (ImageView) convertView.findViewById(R.id.item_image); convertView.setTag(vh); }else{ vh = (ViewHolder) convertView.getTag(); } Supplier info = listInfo.get(position); if(info!=null){ vh.item_name.setText(info.getSupplierName()); vh.item_detail.setText(info.getSupplierDescribe()); SysApplication.DisplayImage(info.getSupplierLogoUrl(),vh.item_image); } return convertView; } }
[ "z819366568" ]
z819366568
a16498253ebaaca3519957c3d887f3fcf989a9b3
ac578e2c8936ca6fb11279f5623b4e54e0ab1838
/src/main/java/ch/randelshofer/io/SeekableByteArrayOutputStream.java
1941c6eff034c2ca2fa5d4fa565a7153444e29b7
[]
no_license
paulyc/wct
3537c80d2e877355de0f43081f6ada6c312dea40
e3fb969b6e5984c344e413daf899a4c7911340d7
refs/heads/master
2022-12-14T04:42:23.659344
2020-09-15T15:52:25
2020-09-15T15:52:25
295,412,886
0
0
null
null
null
null
UTF-8
Java
false
false
4,618
java
/* * @(#)SeekableByteArrayOutputStream.java 1.0 2010-12-27 * * Copyright © 2010 Werner Randelshofer, Immensee, Switzerland. * All rights reserved. * * You may not use, copy or modify this file, except in compliance with the * license agreement you entered into with Werner Randelshofer. * For details see accompanying license terms. */ package ch.randelshofer.io; import static java.lang.Math.max; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Arrays; /** * {@code SeekableByteArrayOutputStream}. * * @author Werner Randelshofer * @version 1.0 2010-12-27 Created. */ public class SeekableByteArrayOutputStream extends ByteArrayOutputStream { /** * The current stream position. */ private int pos; /** * Creates a new byte array output stream. The buffer capacity is * initially 32 bytes, though its size increases if necessary. */ public SeekableByteArrayOutputStream() { this(32); } /** * Creates a new byte array output stream, with a buffer capacity of * the specified size, in bytes. * * @param size the initial size. * @exception IllegalArgumentException if size is negative. */ public SeekableByteArrayOutputStream(int size) { if (size < 0) { throw new IllegalArgumentException("Negative initial size: " + size); } buf = new byte[size]; } /** * Writes the specified byte to this byte array output stream. * * @param b the byte to be written. */ @Override public synchronized void write(int b) { int newcount = max(pos + 1, count); if (newcount > buf.length) { buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); } buf[pos++] = (byte)b; count = newcount; } /** * Writes <code>len</code> bytes from the specified byte array * starting at offset <code>off</code> to this byte array output stream. * * @param b the data. * @param off the start offset in the data. * @param len the number of bytes to write. */ @Override public synchronized void write(byte b[], int off, int len) { if ((off < 0) || (off > b.length) || (len < 0) || ((off + len) > b.length) || ((off + len) < 0)) { throw new IndexOutOfBoundsException(); } else if (len == 0) { return; } int newcount = max(pos+len,count); if (newcount > buf.length) { buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); } System.arraycopy(b, off, buf, pos, len); pos+=len; count = newcount; } /** * Resets the <code>count</code> field of this byte array output * stream to zero, so that all currently accumulated output in the * output stream is discarded. The output stream can be used again, * reusing the already allocated buffer space. * * @see java.io.ByteArrayInputStream#count */ @Override public synchronized void reset() { count = 0; pos=0; } /** * Sets the current stream position to the desired location. The * next read will occur at this location. The bit offset is set * to 0. * * <p> An <code>IndexOutOfBoundsException</code> will be thrown if * <code>pos</code> is smaller than the flushed position (as * returned by <code>getflushedPosition</code>). * * <p> It is legal to seek past the end of the file; an * <code>EOFException</code> will be thrown only if a read is * performed. * * @param pos a <code>long</code> containing the desired file * pointer position. * * @exception IndexOutOfBoundsException if <code>pos</code> is smaller * than the flushed position. * @exception IOException if any other I/O error occurs. */ public void seek(long pos) throws IOException { this.pos = (int)pos; } /** * Returns the current byte position of the stream. The next write * will take place starting at this offset. * * @return a long containing the position of the stream. * * @exception IOException if an I/O error occurs. */ public long getStreamPosition() throws IOException { return pos; } /** Writes the contents of the byte array into the specified output * stream. * @param out */ public void toOutputStream(OutputStream out) throws IOException { out.write(buf, 0, count); } }
[ "paulyc@quetzalcoatl.us" ]
paulyc@quetzalcoatl.us
d95f090a05c00f1a44a94e50ff14470715d3610b
63152c4f60c3be964e9f4e315ae50cb35a75c555
/sql/core/target/java/org/apache/spark/sql/execution/DeserializeToObjectExec$.java
646a9d584e56550f6152b6313270250e7536ccb2
[ "EPL-1.0", "Classpath-exception-2.0", "LicenseRef-scancode-unicode", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "GCC-exception-3.1", "LGPL-2.0-or-later", "CDDL-1.0", "MIT", "CC-BY-SA-3.0", "NAIST-2003", "LGPL-2.1-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "CPL-1.0", "CC-PDDC", "EPL-2.0", "CDDL-1.1", "BSD-2-Clause", "CC0-1.0", "Python-2.0", "LicenseRef-scancode-unknown" ]
permissive
PowersYang/spark-cn
76c407d774e35d18feb52297c68c65889a75a002
06a0459999131ee14864a69a15746c900e815a14
refs/heads/master
2022-12-11T20:18:37.376098
2020-03-30T09:48:22
2020-03-30T09:48:22
219,248,341
0
0
Apache-2.0
2022-12-05T23:46:17
2019-11-03T03:55:17
HTML
UTF-8
Java
false
false
577
java
package org.apache.spark.sql.execution; public class DeserializeToObjectExec$ extends scala.runtime.AbstractFunction3<org.apache.spark.sql.catalyst.expressions.Expression, org.apache.spark.sql.catalyst.expressions.Attribute, org.apache.spark.sql.execution.SparkPlan, org.apache.spark.sql.execution.DeserializeToObjectExec> implements scala.Serializable { /** * Static reference to the singleton instance of this Scala object. */ public static final DeserializeToObjectExec$ MODULE$ = null; public DeserializeToObjectExec$ () { throw new RuntimeException(); } }
[ "577790911@qq.com" ]
577790911@qq.com
343366276f123c943b5c471bbb6c74d165db3167
ea175d8d30a3c8566ce62fdd66ac4e7fb7935c37
/core/src/main/java/com/orientechnologies/orient/core/config/OStorageFileConfiguration.java
ae4df9fe23b7fbf06d5da671d4c6c1e2a67c1969
[ "BSD-3-Clause", "CDDL-1.0", "Apache-2.0" ]
permissive
orientechnologies/orientdb
a9aa2708e927cfbd8ba479ed1ceabb1979ba9f65
7df5ffa9f691ae752a0abdb45ccf93bc8ae8b9a4
refs/heads/develop
2023-08-31T12:42:55.842426
2023-08-30T13:56:50
2023-08-30T13:56:50
7,083,240
3,932
979
Apache-2.0
2023-09-11T12:49:58
2012-12-09T20:33:47
Java
UTF-8
Java
false
false
1,516
java
/* * * * Copyright 2010-2016 OrientDB LTD (http://orientdb.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * * * * For more information: http://orientdb.com * */ package com.orientechnologies.orient.core.config; import java.io.Serializable; @SuppressWarnings("serial") public class OStorageFileConfiguration implements Serializable { public transient OStorageSegmentConfiguration parent; public String path; public String type = "mmap"; public String maxSize = null; public String incrementSize = "50%"; public OStorageFileConfiguration() {} public OStorageFileConfiguration( final OStorageSegmentConfiguration iParent, final String iPath, final String iType, final String iMaxSize, String iIncrementSize) { parent = iParent; path = iPath; type = iType; maxSize = iMaxSize; incrementSize = iIncrementSize; } @Override public String toString() { return path; } }
[ "lomakin.andrey@gmail.com" ]
lomakin.andrey@gmail.com
c67850aa16874d9ecc2b8815b32786aefa70a94c
7d01e4dda97de5329d51932a2ac2d3361dcb5cc1
/chapter_002/src/main/java/ru/sdroman/WayNotFoundException.java
8f51733d23d935989f74717cdf181ec5af19a6b3
[ "Apache-2.0" ]
permissive
roman-sd/java-a-to-z
ad39a007d4c2da8404b77dd75968315930813781
5f59ece8793e0a3df099ff079954aaa7d900a918
refs/heads/master
2021-07-13T00:14:12.411847
2018-09-27T09:12:42
2018-09-27T09:12:42
72,674,404
0
0
null
null
null
null
UTF-8
Java
false
false
315
java
package ru.sdroman; /** * Class wayNotFoundException. * @author sdroman * @since 20.12.16 * @version 1.0 */ class WayNotFoundException extends Exception { /** * Constructs new wayNotFoundException. * @param msg String */ WayNotFoundException(String msg) { super(msg); } }
[ "sedykhroman@gmail.com" ]
sedykhroman@gmail.com
745362464418cb69268be4abe73be58fd776e1f5
49840e5428f5e708a1eeb6d9f061dfa1ad94b0be
/src/main/java/com/viz/gateapp/myapp/config/LiquibaseConfiguration.java
71969b0c91942293963ee54b30eefc6e41780c91
[]
no_license
visakha/jhipster-gateApp07-application
b0c8c116ae180071134bc766a4f3fa89904f5269
ad1d8a361585efcb835f1176f059e58ac1522543
refs/heads/master
2022-12-21T21:42:58.639967
2019-12-16T20:40:04
2019-12-16T20:40:04
228,471,813
0
0
null
2022-12-16T04:42:22
2019-12-16T20:39:51
Java
UTF-8
Java
false
false
3,212
java
package com.viz.gateapp.myapp.config; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.liquibase.SpringLiquibaseUtil; import liquibase.integration.spring.SpringLiquibase; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.ObjectProvider; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties; import org.springframework.boot.autoconfigure.liquibase.LiquibaseDataSource; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.core.env.Profiles; import javax.sql.DataSource; import java.util.concurrent.Executor; @Configuration public class LiquibaseConfiguration { private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class); private final Environment env; public LiquibaseConfiguration(Environment env) { this.env = env; } @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") Executor executor, @LiquibaseDataSource ObjectProvider<DataSource> liquibaseDataSource, LiquibaseProperties liquibaseProperties, ObjectProvider<DataSource> dataSource, DataSourceProperties dataSourceProperties) { // If you don't want Liquibase to start asynchronously, substitute by this: // SpringLiquibase liquibase = SpringLiquibaseUtil.createSpringLiquibase(liquibaseDataSource.getIfAvailable(), liquibaseProperties, dataSource.getIfUnique(), dataSourceProperties); SpringLiquibase liquibase = SpringLiquibaseUtil.createAsyncSpringLiquibase(this.env, executor, liquibaseDataSource.getIfAvailable(), liquibaseProperties, dataSource.getIfUnique(), dataSourceProperties); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setLiquibaseSchema(liquibaseProperties.getLiquibaseSchema()); liquibase.setLiquibaseTablespace(liquibaseProperties.getLiquibaseTablespace()); liquibase.setDatabaseChangeLogLockTable(liquibaseProperties.getDatabaseChangeLogLockTable()); liquibase.setDatabaseChangeLogTable(liquibaseProperties.getDatabaseChangeLogTable()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); liquibase.setLabels(liquibaseProperties.getLabels()); liquibase.setChangeLogParameters(liquibaseProperties.getParameters()); liquibase.setRollbackFile(liquibaseProperties.getRollbackFile()); liquibase.setTestRollbackOnUpdate(liquibaseProperties.isTestRollbackOnUpdate()); if (env.acceptsProfiles(Profiles.of(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE))) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
e8930e4851e77649ed91a96efe36edb1e1b899b1
e7e497b20442a4220296dea1550091a457df5a38
/java_workplace/renren_web_framework/entrybase/trunk/entrybase-mysql/src/test/java/com/renren/entrybase/mysql/util/FieldSanitizerTest.java
f197c949dcf9570eebea6ce49810250eba4acf76
[]
no_license
gunner14/old_rr_code
cf17a2dedf8dfcdcf441d49139adaadc770c0eea
bb047dc88fa7243ded61d840af0f8bad22d68dee
refs/heads/master
2021-01-17T18:23:28.154228
2013-12-02T23:45:33
2013-12-02T23:45:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
591
java
package com.renren.entrybase.mysql.util; import org.junit.Test; /** * @author Li Weibo (weibo.leo@gmail.com) //I believe spring-brother * @since 2011-3-15 下午05:45:38 */ public class FieldSanitizerTest { //TODO: 此测试用例请移动到model包去对Entry、Field进行测试 @Test public void testEncode() { // String s = "aaaa%aaaa&aaa$aaa=aaa%26今天天气不错"; // String encodedS = FieldSanitizer.encode(s); // String decodedS = FieldSanitizer.decode(encodedS); // Assert.assertEquals(s, decodedS); } }
[ "liyong19861014@gmail.com" ]
liyong19861014@gmail.com
ca5155cc05a8abbb12dc144193070820c027a839
4d6c00789d5eb8118e6df6fc5bcd0f671bbcdd2d
/src/main/java/com/alipay/api/request/AlipayEbppRechargeItemGetRequest.java
8e30cc9328565d54aeeccace4a4022b3d2b5d03c
[ "Apache-2.0" ]
permissive
weizai118/payment-alipay
042898e172ce7f1162a69c1dc445e69e53a1899c
e3c1ad17d96524e5f1c4ba6d0af5b9e8fce97ac1
refs/heads/master
2020-04-05T06:29:57.113650
2018-11-06T11:03:05
2018-11-06T11:03:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,942
java
package com.alipay.api.request; import java.util.Map; import com.alipay.api.AlipayRequest; import com.alipay.api.internal.util.AlipayHashMap; import com.alipay.api.response.AlipayEbppRechargeItemGetResponse; import com.alipay.api.AlipayObject; /** * ALIPAY API: alipay.ebpp.recharge.item.get request * * @author auto create * @since 1.0, 2017-04-07 17:09:25 */ public class AlipayEbppRechargeItemGetRequest implements AlipayRequest<AlipayEbppRechargeItemGetResponse> { private AlipayHashMap udfParams; // add user-defined text parameters private String apiVersion="1.0"; /** * 支付宝id */ private String cardNo; /** * 商品上架、下架状态 1/0 */ private String isForSale; /** * 1000|2000|3000 可以传递多个以|线分开 */ private String itemCode; /** * 0001:手机话费充值;0002 Q币充值;0003公交卡充值;0004流量充值 */ private String itemCodeType; /** * 业务类型例如:TX */ private String orderType; /** * Sets card no. * * @param cardNo the card no */ public void setCardNo(String cardNo) { this.cardNo = cardNo; } /** * Gets card no. * * @return the card no */ public String getCardNo() { return this.cardNo; } /** * Sets is for sale. * * @param isForSale the is for sale */ public void setIsForSale(String isForSale) { this.isForSale = isForSale; } /** * Gets is for sale. * * @return the is for sale */ public String getIsForSale() { return this.isForSale; } /** * Sets item code. * * @param itemCode the item code */ public void setItemCode(String itemCode) { this.itemCode = itemCode; } /** * Gets item code. * * @return the item code */ public String getItemCode() { return this.itemCode; } /** * Sets item code type. * * @param itemCodeType the item code type */ public void setItemCodeType(String itemCodeType) { this.itemCodeType = itemCodeType; } /** * Gets item code type. * * @return the item code type */ public String getItemCodeType() { return this.itemCodeType; } /** * Sets order type. * * @param orderType the order type */ public void setOrderType(String orderType) { this.orderType = orderType; } /** * Gets order type. * * @return the order type */ public String getOrderType() { return this.orderType; } private String terminalType; private String terminalInfo; private String prodCode; private String notifyUrl; private String returnUrl; private boolean needEncrypt=false; private AlipayObject bizModel=null; public String getNotifyUrl() { return this.notifyUrl; } public void setNotifyUrl(String notifyUrl) { this.notifyUrl = notifyUrl; } public String getReturnUrl() { return this.returnUrl; } public void setReturnUrl(String returnUrl) { this.returnUrl = returnUrl; } public String getApiVersion() { return this.apiVersion; } public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } public void setTerminalType(String terminalType){ this.terminalType=terminalType; } public String getTerminalType(){ return this.terminalType; } public void setTerminalInfo(String terminalInfo){ this.terminalInfo=terminalInfo; } public String getTerminalInfo(){ return this.terminalInfo; } public void setProdCode(String prodCode) { this.prodCode=prodCode; } public String getProdCode() { return this.prodCode; } public String getApiMethodName() { return "alipay.ebpp.recharge.item.get"; } public Map<String, String> getTextParams() { AlipayHashMap txtParams = new AlipayHashMap(); txtParams.put("card_no", this.cardNo); txtParams.put("is_for_sale", this.isForSale); txtParams.put("item_code", this.itemCode); txtParams.put("item_code_type", this.itemCodeType); txtParams.put("order_type", this.orderType); if(udfParams != null) { txtParams.putAll(this.udfParams); } return txtParams; } /** * Put other text param. * * @param key the key * @param value the value */ public void putOtherTextParam(String key, String value) { if(this.udfParams == null) { this.udfParams = new AlipayHashMap(); } this.udfParams.put(key, value); } public Class<AlipayEbppRechargeItemGetResponse> getResponseClass() { return AlipayEbppRechargeItemGetResponse.class; } public boolean isNeedEncrypt() { return this.needEncrypt; } public void setNeedEncrypt(boolean needEncrypt) { this.needEncrypt=needEncrypt; } public AlipayObject getBizModel() { return this.bizModel; } public void setBizModel(AlipayObject bizModel) { this.bizModel=bizModel; } }
[ "hanley@thlws.com" ]
hanley@thlws.com
cd76181b9b24e937a92e1102993696d3a0b0b5bf
b1f5e5160f64c0c158692a5da95b1ab10088fd37
/chapter_05/src/main/java/aopbasics/testtypeproxy/NoOpBeforeAdvice.java
32c7083c16de31a560ec1fbb90306f4baa4724dc
[]
no_license
antey1988/SpringLearn
6e480e2639aa10dbc7f7ced23e5ce19e0f80dad1
442433e876bcd6d6f1ac7d10e3a460408f1adb87
refs/heads/master
2023-03-13T18:05:59.944291
2021-03-07T13:16:49
2021-03-07T13:17:29
312,569,842
0
0
null
null
null
null
UTF-8
Java
false
false
291
java
package aopbasics.testtypeproxy; import org.springframework.aop.MethodBeforeAdvice; import java.lang.reflect.Method; public class NoOpBeforeAdvice implements MethodBeforeAdvice { @Override public void before(Method method, Object[] objects, Object o) throws Throwable { } }
[ "antey1988@gmail.com" ]
antey1988@gmail.com
dbb22cc2a18d08d1a6f75eaa515040d76c9edc5b
bb112a4cd268f2f676f60839a93b4142fa81206e
/product-live-core/src/main/java/com/ofweek/live/core/modules/rpc/qcloud/utils/VideoUploadTask.java
719f778cee0497d4b158514f4ccc910752a1ebcb
[]
no_license
tangqian/product-all
2d85bddd6b50fa37e571760216ef8664bad3bf98
f4093c09287285d720d73821cf08202bc690cef6
refs/heads/master
2021-04-29T09:41:18.537946
2019-03-12T12:14:14
2019-03-12T12:14:14
77,657,198
1
5
null
null
null
null
UTF-8
Java
false
false
2,811
java
package com.ofweek.live.core.modules.rpc.qcloud.utils; import com.ofweek.live.core.modules.rpc.qcloud.dto.QcloudVodPlayInfo; import com.qcloud.api.modules.vod.dto.DescribeVodPlayUrlsResponse; import com.qcloud.api.modules.vod.dto.MultipartUploadVodFileResponse; import com.qcloud.api.modules.vod.dto.VodPlayUrlInfo; import com.qcloud.api.modules.vod.service.DescribeVodPlayUrlsService; import com.qcloud.api.modules.vod.service.MultipartUploadVodFileService; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; /** * Created by tangqian on 2016/9/8. */ public class VideoUploadTask extends Thread { private Logger logger = LoggerFactory.getLogger(VideoUploadTask.class); private File file; private Integer classId; private boolean success; private String feedback; private String fileName; private AsyncTaskMonitor monitor; public VideoUploadTask(File file, Integer classId) { this.file = file; this.classId = classId; fileName = QcloudUtils.getFileName(file); } @Override public void run() { MultipartUploadVodFileResponse response = null; try { logger.error("start upload fileName={}", fileName); response = new MultipartUploadVodFileService(QcloudUtils.vodCaller).call(file.getAbsolutePath(), fileName, classId, null); if (!response.isSuccess()) { Thread.sleep(1000); response = new MultipartUploadVodFileService(QcloudUtils.vodCaller).call(file.getAbsolutePath(), fileName, classId, null); } } catch (Exception e) { logger.error("live qcloud upload video exception", e); } if (response == null) { success = false; feedback = "发生异常"; } else { if (response.isSuccess()) { String fileId = response.getFileId(); success = true; try { DescribeVodPlayUrlsResponse call = new DescribeVodPlayUrlsService(QcloudUtils.vodCaller).call(fileId); VodPlayUrlInfo[] playUrls = call.getPlaySet(); QcloudUtils.setPlayInfoCache(fileId, fileName, playUrls); } catch (Exception e) { } } else { success = false; feedback = response.getMessage(); } } monitor.addFinishedTask(this); } public boolean isSuccess() { return success; } public String getFeedback() { return feedback; } public String getFileName() { return fileName; } public void setMonitor(AsyncTaskMonitor monitor) { this.monitor = monitor; } }
[ "275855127@qq.com" ]
275855127@qq.com
15100a7988b53ae2a0be609716b18cd7cf6c0feb
24338d907d0a66e18168d8c9486d97f1af11a437
/support/cas-server-support-consent-api/src/main/java/org/apereo/cas/consent/ConsentDecision.java
894aa401396699d64106f56136df3b6e2b0f51ae
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
bliblidotcom/cas
58ab1e2925c0c5e25b9389c78579db367812b87f
bede346a9c4b260da1b03bfd8183dfd00bafe48a
refs/heads/master
2020-12-30T15:07:41.127316
2017-05-10T18:11:48
2017-05-10T18:11:48
91,102,648
2
0
null
2017-05-12T15:01:11
2017-05-12T15:01:11
null
UTF-8
Java
false
false
4,546
java
package org.apereo.cas.consent; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.services.RegisteredService; import org.apereo.cas.util.CollectionUtils; import org.apereo.cas.util.DigestUtils; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import java.time.LocalDateTime; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; /** * This is {@link ConsentDecision}. * * @author Misagh Moayyed * @since 5.1.0 */ @Entity @Table(name = "ConsentDecision") public class ConsentDecision { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @Column(length = 255, updatable = true, insertable = true, nullable = false) private String principal; @Column(length = 255, updatable = true, insertable = true, nullable = false) private String service; @Column(nullable = false) private LocalDateTime date; @Column(length = 255, updatable = true, insertable = true, nullable = false) private Long reminder = 14L; @Column(length = 255, updatable = true, insertable = true, nullable = false) private TimeUnit reminderTimeUnit = TimeUnit.DAYS; @Column(length = 255, updatable = true, insertable = true, nullable = false) private String attributeNames; @Column(length = 255, updatable = true, insertable = true, nullable = false) private String attributeValues; public LocalDateTime getDate() { return date; } public void setDate(final LocalDateTime date) { this.date = date; } public long getReminder() { return reminder; } public void setReminder(final long reminder) { this.reminder = reminder; } public TimeUnit getReminderTimeUnit() { return reminderTimeUnit; } public void setReminderTimeUnit(final TimeUnit reminderTimeUnit) { this.reminderTimeUnit = reminderTimeUnit; } public long getId() { return id; } public void setId(final long id) { this.id = id; } public String getPrincipal() { return principal; } public void setPrincipal(final String principal) { this.principal = principal; } public String getService() { return service; } public void setService(final String service) { this.service = service; } public String getAttributeNames() { return attributeNames; } public void setAttributeNames(final String attributeNames) { this.attributeNames = attributeNames; } public String getAttributeValues() { return attributeValues; } public void setAttributeValues(final String attributeValues) { this.attributeValues = attributeValues; } /** * Build consent decision consent decision. * * @param service the service * @param registeredService the registered service * @param authentication the authentication * @return the consent decision */ public static ConsentDecision buildConsentDecision(final Service service, final RegisteredService registeredService, final Authentication authentication) { final ConsentDecision consent = new ConsentDecision(); consent.setPrincipal(authentication.getPrincipal().getId()); consent.setService(service.getId()); final Map<String, Object> attributes = registeredService.getAttributeReleasePolicy().getAttributes(authentication.getPrincipal(), service, registeredService); final String names = DigestUtils.sha512(attributes.keySet().stream().collect(Collectors.joining("|"))); consent.setAttributeNames(names); final String values = DigestUtils.sha512(attributes.values().stream() .map(CollectionUtils::toCollection) .map(c -> { final String value = c.stream().map(Object::toString).collect(Collectors.joining()); return value; }) .collect(Collectors.joining("|"))); consent.setAttributeValues(values); consent.setDate(LocalDateTime.now()); return consent; } }
[ "mmoayyed@unicon.net" ]
mmoayyed@unicon.net
08e0cba55838384c952aeae69a9a9fc2c4faedaa
db9e7654723af21e2062dc4fea4bfd9751bbf702
/kybabyBG/src/main/java/com/kybaby/bo/ItemResultBo.java
db988cd24270cd514a27d3bba2d45caab4f3908a
[]
no_license
c19t043/comTest
25ab7fadbd667c3fc520ac82b0ab734c49925d83
ae59bde6fa671c009bded3b1aa05d32bec88ddd8
refs/heads/master
2020-12-24T06:40:17.174421
2016-11-18T08:44:57
2016-11-18T08:44:57
73,466,674
0
0
null
null
null
null
UTF-8
Java
false
false
358
java
package com.kybaby.bo; import java.util.List; import com.kybaby.domain.ItemResult; public interface ItemResultBo { //2.8.3 项目结果 List getAllItemResult();//显示所有项目结果 ItemResult getItemResultByName(String name);//通过name找到该项目结果实例 ItemResult getItemResultById(long id); //通过id找到该项目结果实例 }
[ "176158750@qq.com" ]
176158750@qq.com
11d6925f960f7b602f389d36975d6f3186ca9789
12ea5463256bd7add8176c60ba0afad94100eacf
/src/main/java/repositories/jdbc/TipoContactoDaoImpl.java
a920b26b75ffb5506425b20b315b6a2427e6c9f7
[]
no_license
vladimirogaston/TP_Inicial_agenda
d1ad8ff1d5f8be38fae8df3dda3413a85bf67972
dc4166520abdd2b8195c598d776ed3292f2af4d9
refs/heads/master
2022-12-31T07:58:54.479232
2020-10-02T03:14:49
2020-10-02T03:14:49
295,036,091
0
0
null
null
null
null
UTF-8
Java
false
false
2,233
java
package repositories.jdbc; import java.sql.Connection; import java.util.List; import dto.TipoContactoDTO; import repositories.TipoContactoDao; public class TipoContactoDaoImpl extends GenericJdbcDao<TipoContactoDTO> implements TipoContactoDao { static final String insert = "INSERT INTO TiposContacto (TipoContactoNombre) VALUES(?)"; static final String update = "UPDATE TiposContacto SET TipoContactoNombre = ? WHERE TipoContactoID = ?"; static final String readAll = "SELECT * FROM TiposContacto"; static final String readById = "SELECT * FROM TiposContacto WHERE TipoContactoID = ?"; static final String readByName = readAll + " " + "WHERE TiposContacto.TipoContactoNombre = ?"; static final String deleteById = "DELETE FROM TiposContacto WHERE TipoContactoID = ?"; private Mapper<TipoContactoDTO> mapper; public TipoContactoDaoImpl(Connection connection) { super(connection); mapper = getMapper(); } @Override public boolean insert(TipoContactoDTO dto) { assert dto != null; return getTemplate().query(insert).param(dto.getNombre()).excecute(); } @Override public boolean update(TipoContactoDTO dto) { assert dto != null; return getTemplate().query(update).param(dto.getNombre()).param(dto.getId()) .excecute(); } @Override public boolean deleteById(Integer id) { assert id != null; return getTemplate().query(deleteById).param(id).excecute(); } @Override public TipoContactoDTO readByID(Integer id) { assert id != null; return getData(getTemplate().query(readById).excecute(mapper)); } @Override public List<TipoContactoDTO> readAll() { return getTemplate().query(readAll).excecute(mapper); } @Override public TipoContactoDTO readByName(String nombre) { assert nombre != null; return getData(getTemplate().query(readByName).param(nombre).excecute(mapper)); } @Override protected Mapper<TipoContactoDTO> getMapper() { return new Mapper<TipoContactoDTO>() { @Override public TipoContactoDTO map(Object[] obj) { return new TipoContactoDTO((Integer) obj[0], (String) obj[1]); } }; } private TipoContactoDTO getData(List<TipoContactoDTO> tipos) { assert tipos != null; if(tipos.isEmpty()) return null; return tipos.get(0); } }
[ "vladimirogaston@gmail.com" ]
vladimirogaston@gmail.com
1de801acc39d3da0106931d8f18bbafa17213893
a653c9fa8cc7a97765323c0230dc62b9b3309654
/src/cn/demi/bus/task/dao/ITaskFbDao.java
56fb838281df1cbccda5f6e79a3e746fd4b8a971
[]
no_license
peterwuhua/springBootDemoT
ef065d082017420dc56ac54f4714b11a4fbe9ee3
f8cebcae3becaa425fad93f116c40fb7ceb65e43
refs/heads/master
2020-09-13T22:47:25.013935
2019-11-20T13:16:09
2019-11-20T13:16:09
222,925,989
0
0
null
null
null
null
UTF-8
Java
false
false
397
java
package cn.demi.bus.task.dao; import java.util.List; import cn.core.framework.common.dao.IBaseDao; import cn.demi.bus.task.po.TaskFb; public interface ITaskFbDao extends IBaseDao<TaskFb> { /** * 根据项目id删除分包详细信息 * @param pjId */ void deleteByTaskId(String pjId); /** * 获取分包详情集合 * @param pjId */ List<TaskFb> listByTaskId(String pjId); }
[ "1053185268@qq.com" ]
1053185268@qq.com
6e41264974190d4284df4c115e207fa6de87a89f
f0d25d83176909b18b9989e6fe34c414590c3599
/app/src/main/java/com/google/android/gms/internal/zzahg.java
4397d0475e2df48e1a6a60365600dc8894e7ca51
[]
no_license
lycfr/lq
e8dd702263e6565486bea92f05cd93e45ef8defc
123914e7c0d45956184dc908e87f63870e46aa2e
refs/heads/master
2022-04-07T18:16:31.660038
2020-02-23T03:09:18
2020-02-23T03:09:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
457
java
package com.google.android.gms.internal; import android.annotation.TargetApi; import android.app.DownloadManager; @TargetApi(9) public class zzahg extends zzahe { public zzahg() { super(); } public boolean zza(DownloadManager.Request request) { request.setShowRunningNotification(true); return true; } public final int zzhT() { return 6; } public final int zzhU() { return 7; } }
[ "quyenlm.vn@gmail.com" ]
quyenlm.vn@gmail.com
b2229a941499186dff7d67b5d0d9c6351c3a53ad
6e6db7db5aa823c77d9858d2182d901684faaa24
/sample/webservice/eBayDemoApp/src/com/ebay/trading/api/GetClientAlertsAuthTokenRequestType.java
ced277cc4643991c4b2c123845fed1cba3c0e4ee
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
4everalone/nano
68a480d07d80f0f50d73ec593443bfb362d646aa
71779b1ad546663ee90a29f1c2d4236a6948a621
refs/heads/master
2020-12-25T14:08:08.303942
2013-07-25T13:28:41
2013-07-25T13:28:41
10,792,684
0
1
Apache-2.0
2019-04-24T20:12:27
2013-06-19T13:14:26
Java
UTF-8
Java
false
false
530
java
// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.ebay.trading.api; import java.io.Serializable; import com.leansoft.nano.annotation.*; /** * * Retrieves a token required for the GetUserAlerts call in the Client Alerts API. * */ @RootElement(name = "GetClientAlertsAuthTokenRequest", namespace = "urn:ebay:apis:eBLBaseComponents") public class GetClientAlertsAuthTokenRequestType extends AbstractRequestType implements Serializable { private static final long serialVersionUID = -1L; }
[ "51startup@sina.com" ]
51startup@sina.com
ec11efb68da80ba116cc8137f3d9ab3d9da7ae7a
f4719b497fb7cbb1dbd3925087363e0754a1cf39
/sitewhere-microservice/src/main/java/com/sitewhere/spi/microservice/lifecycle/LifecycleProgressUtils.java
b6e2eeb8855b563aea4d56d6902132fc38e2ee15
[]
no_license
sitewhere/sitewhere-microservice-core
b87259367585d7efaba9ecdc9120ff704458dd2f
cb4008e9d025ab0690886785766bf3937fed3a79
refs/heads/master
2021-06-25T01:03:20.897341
2021-03-23T19:12:11
2021-03-23T19:12:11
219,075,110
3
6
null
2021-03-23T19:12:11
2019-11-01T23:03:06
Java
UTF-8
Java
false
false
3,548
java
/** * Copyright © 2014-2021 The SiteWhere 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.sitewhere.spi.microservice.lifecycle; import java.util.ArrayDeque; import java.util.Deque; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.sitewhere.microservice.monitoring.ProgressMessage; import com.sitewhere.spi.SiteWhereException; /** * Common logic used in lifecycle progress monitoring. */ public class LifecycleProgressUtils { /** Static logger instance */ @SuppressWarnings("unused") private static Logger LOGGER = LoggerFactory.getLogger(LifecycleProgressUtils.class); /** * Common logic for starting an operation on an * {@link ILifecycleProgressMonitor}. * * @param monitor * @param operation * @throws SiteWhereException */ public static void startProgressOperation(ILifecycleProgressMonitor monitor, String operation) throws SiteWhereException { ILifecycleProgressContext context = monitor.getContextStack().peek(); if (context == null) { throw new SiteWhereException("Unable to start operation. No context available."); } int newIndex = context.getCurrentOperationIndex() + 1; if (newIndex > context.getOperationCount()) { throw new SiteWhereException( "Unable to start operation. Index will exceed expected operation count. Operation was: " + operation); } context.setCurrentOperationIndex(newIndex); context.setCurrentOperationMessage(operation); } /** * Finish the currently executing progress operation. * * @param monitor * @throws SiteWhereException */ public static void finishProgressOperation(ILifecycleProgressMonitor monitor) throws SiteWhereException { ILifecycleProgressContext context = monitor.getContextStack().peek(); if (context == null) { throw new SiteWhereException("Unable to finish operation. No context available."); } // Report progress based on new operation. String task = monitor.getContextStack().getLast().getCurrentOperationMessage(); String current = monitor.getContextStack().getFirst().getCurrentOperationMessage(); Deque<ILifecycleProgressContext> queue = new ArrayDeque<>(monitor.getContextStack()); double progress = computeSubprogressFor(queue, 100.0); monitor.reportProgress(new ProgressMessage(task, progress, current)); } /** * Recursively computes progress based on nested contexts. * * @param stack * @param current * @return */ protected static double computeSubprogressFor(Deque<ILifecycleProgressContext> stack, double current) { if (stack.isEmpty()) { return current; } ILifecycleProgressContext context = stack.removeLast(); double opIndex = (double) context.getCurrentOperationIndex(); double opCount = (double) context.getOperationCount(); double finished = Math.floor((opIndex - 1.0) / opCount * current); double working = Math.floor(1.0 / opCount * current); return finished + computeSubprogressFor(stack, working); } }
[ "derek.adams@sitewhere.com" ]
derek.adams@sitewhere.com
ad88fa62c3ddee3b901754c590e8a681d1f302d0
f702432a6230e46d3ea3d19e6e456e07151d899d
/src/org/mindinformatics/gwt/framework/model/agents/proxies/MPersonNameProxy.java
9313d1aaed2858d8193d83ba0af5cb2b3a8d8262
[ "Apache-2.0" ]
permissive
domeo/DomeoClient
24bd8335f993eb626ff45f5e601078021131acca
c7d50b6e9894842c0af482c6f5676ea2a990cf57
refs/heads/master
2020-12-24T16:33:57.182042
2016-04-21T15:48:36
2016-04-21T15:48:36
9,799,052
2
1
null
2013-08-28T12:58:39
2013-05-01T20:03:22
Java
UTF-8
Java
false
false
581
java
package org.mindinformatics.gwt.framework.model.agents.proxies; import java.io.Serializable; import org.mindinformatics.gwt.framework.model.agents.MPersonName; import com.google.gwt.user.client.rpc.IsSerializable; /** * @author Paolo Ciccarese <paolo.ciccarese@gmail.com> */ @SuppressWarnings("serial") public class MPersonNameProxy extends AProxy implements Serializable,IsSerializable { private MPersonName _personName; public MPersonName getPersonName() { return _personName; } public void setPersonName(MPersonName personName) { _personName = personName; } }
[ "paolo.ciccarese@gmail.com" ]
paolo.ciccarese@gmail.com
648b397e14a24437fccceb9f7eb115fda320da4c
d7e2a9c21e4fa1a94fa1e208b69b6761468b82d9
/flash4j/src/com/emitrom/flash4j/flex/ux/client/mx/containers/SuperPanel.java
164710bb430da7573013f7ec6ac3f40eb82dc030
[ "Apache-2.0" ]
permissive
sanyaade-mobiledev/Flash4j
a7c803b7db1fff51055be4f76332a652868fec6e
c01ca4a84b0644143d63df2ce51581967caea16f
refs/heads/master
2020-05-17T10:12:49.469911
2013-05-04T18:22:44
2013-05-04T18:22:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,451
java
/************************************************************************ SuperPanel.java is part of Flash4j 3.0.0 Copyright 2012 Emitrom 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.emitrom.flash4j.flex.ux.client.mx.containers; import com.emitrom.flash4j.core.client.events.Event; import com.emitrom.flash4j.core.client.events.handlers.EventHandler; import com.emitrom.flash4j.core.client.framework.Bridge; import com.emitrom.flash4j.flex.client.mx.effects.Resize; import com.emitrom.flash4j.flex.client.ui.mx.Panel; import com.google.gwt.core.client.JavaScriptObject; /** * The Class SuperPanel. */ public class SuperPanel extends Panel { /** * Instantiates a new super panel. */ protected SuperPanel(JavaScriptObject obj) { jsObj = obj; } /** * New instance. * * @return the super panel */ public SuperPanel() { jsObj = Bridge.createObject("net.brandonmeyer.containers.SuperPanel"); setWidth(600); setHeight(500); } /** * New instance. * * @param title the title * @return the super panel */ public SuperPanel(String title) { this(); setTitle(title); } /** * Checks if is closable. * * @return true, if is closable */ public native boolean isClosable()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getallowClose(); }-*/; /** * Sets the closable. * * @param value the new closable */ public native void setClosable(boolean value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setallowClose(value); }-*/; /** * Checks if is draggable. * * @return true, if is draggable */ public native boolean isDraggable()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getallowDrag(); }-*/; /** * Sets the draggable. * * @param value the new draggable */ public native void setDraggable(boolean value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setallowDrag(value); }-*/; /** * Checks if is maximizable. * * @return true, if is maximizable */ public native boolean isMaximizable()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getallowMaximize(); }-*/; /** * Sets the maximizable. * * @param value the new maximizable */ public native void setMaximizable(boolean value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setallowMaximize(value); }-*/; /** * Checks if is minimizable. * * @return true, if is minimizable */ public native boolean isMinimizable()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getallowMinimize(); }-*/; /** * Sets the minimizable. * * @param value the new minimizable */ public native void setMinimizable(boolean value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setallowMinimize(value); }-*/; /** * Checks if is resizable. * * @return true, if is resizable */ public native boolean isResizable()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getallowResize(); }-*/; /** * Sets the resizable. * * @param value the new resizable */ public native void setResizable(boolean value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setallowResize(value); }-*/; /** * Gets the size ratio. * * @return the size ratio */ public native String getSizeRatio()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getsizeRatio(); }-*/; /** * Sets the size ratio. * * @param value the new size ratio */ public native void setSizeRatio(String value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setsizeRatio(value); }-*/; /** * Adds the close handler. * * @param listener the listener */ public void addCloseHandler(EventHandler listener) { this.addEventHandler(Event.CLOSE, listener); } /** * Sets the animata resize. * * @param value the new animata resize */ public void setAnimataResize(boolean value) { if (value == true) { this.setStyle("resizeEffect", new Resize()); } else { this.setStyle("resizeEffect", ""); } } }
[ "jazzmatadazz@gmail.com" ]
jazzmatadazz@gmail.com
02489410cd10f3d6cd6188c6823096de652be078
7ad843a5b11df711f58fdb8d44ed50ae134deca3
/JDK/JDK1.8/src/com/sun/jmx/snmp/IPAcl/JDMTrapNum.java
dbbd4a3b7239ec69489031666a5eb597791961d8
[ "MIT" ]
permissive
JavaScalaDeveloper/java-source
f014526ad7750ad76b46ff475869db6a12baeb4e
0e6be345eaf46cfb5c64870207b4afb1073c6cd0
refs/heads/main
2023-07-01T22:32:58.116092
2021-07-26T06:42:32
2021-07-26T06:42:32
362,427,367
0
0
null
null
null
null
UTF-8
Java
false
false
616
java
/* * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* Generated By:JJTree: Do not edit this line. JDMTrapNum.java */ package com.sun.jmx.snmp.IPAcl; class JDMTrapNum extends SimpleNode { protected int low=0; protected int high=0; JDMTrapNum(int id) { super(id); } JDMTrapNum(Parser p, int id) { super(p, id); } public static Node jjtCreate(int id) { return new JDMTrapNum(id); } public static Node jjtCreate(Parser p, int id) { return new JDMTrapNum(p, id); } }
[ "panzha@dian.so" ]
panzha@dian.so
eb0287fba3c148ebf1439028b7d6eca3ac348c78
e27359c5c4474ff426e173a36d6857a441ad446d
/app/src/main/java/android/coolweather/com/coolweather/gson/Suggestion.java
a273d0afb650619094d3c6c7e107f775e67460e4
[ "Apache-2.0" ]
permissive
ZhaoJiangJiang/coolweather
49afbccfc5514f1ae9205aeedb45b1fcf1c5290b
5139306ae5d12eeaf1ed577e345055fc2b1b4c04
refs/heads/master
2020-03-25T01:35:52.429057
2018-08-03T06:55:48
2018-08-03T06:55:48
143,245,384
0
0
null
null
null
null
UTF-8
Java
false
false
587
java
package android.coolweather.com.coolweather.gson; import com.google.gson.annotations.SerializedName; /** * Created by 赵江江 on 2018/8/2. */ public class Suggestion { @SerializedName("comf") public Comfort comfort; @SerializedName("cw") public CarWash carWash; public Sport sport; public class Comfort{ @SerializedName("txt") public String info; } public class CarWash{ @SerializedName("txt") public String info; } public class Sport{ @SerializedName("txt") public String info; } }
[ "tony@gmail.com" ]
tony@gmail.com
8d106014e1c153b6f26841308b1c764d533e8eab
cf024905f517a7400b6319ffd9fe3d3efd2a9b41
/iacaa2_0/iacaa2_0-admin/src/main/java/com/pzhu/iacaa2_0/service/impl/TargetServiceImpl.java
7ce53d9f8141b36b8f4280a258d53caf21f05f29
[]
no_license
KeKeKuKi/IACAA2_0
41b0b945c685d625c4c338862f0d29e3d89fab92
9044dd344da8fcc051bab32b210f655442bbd28c
refs/heads/main
2023-03-18T02:58:32.178916
2021-03-20T04:50:49
2021-03-20T04:50:49
330,848,395
0
1
null
null
null
null
UTF-8
Java
false
false
608
java
package com.pzhu.iacaa2_0.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.pzhu.iacaa2_0.entity.CourseTarget; import com.pzhu.iacaa2_0.entity.Target; import com.pzhu.iacaa2_0.mapper.TargetMapper; import com.pzhu.iacaa2_0.service.ITargetService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; /** * <p> * 服务实现类 * </p> * * @author ZhaoZezhong * @since 2021-01-15 */ @Service public class TargetServiceImpl extends ServiceImpl<TargetMapper, Target> implements ITargetService { }
[ "2669918628@qq.com" ]
2669918628@qq.com
5e02e79d49e4344990f26030c63aae011f22592b
8bf093346e5fbec6c484258c04b296f0f3c3ed43
/spring-security-browser/src/main/java/guo/ping/security/browser/authentication/MyAuthenticationFailureHandler.java
04dcffb039582afab6ce91de3549b2c8398b0e5d
[]
no_license
MrSorrow/spring-security-learn
f02a68d9d60b16667309711d6525432136c016f2
b4619f8d2e64c7ce7a8b4679e58906460fe52c8f
refs/heads/master
2020-05-28T11:32:10.695734
2019-06-01T14:21:44
2019-06-01T14:21:44
188,986,593
0
0
null
null
null
null
UTF-8
Java
false
false
2,108
java
package guo.ping.security.browser.authentication; import com.fasterxml.jackson.databind.ObjectMapper; import guo.ping.security.browser.support.SimpleResponse; import guo.ping.security.core.properties.LoginType; import guo.ping.security.core.properties.SecurityProperties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.AuthenticationFailureHandler; import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler; import org.springframework.stereotype.Component; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * @description: * @author: guoping wang * @date: 2019/5/30 9:59 * @project: spring-security-learn */ @Component public class MyAuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler { private Logger logger = LoggerFactory.getLogger(getClass()); @Autowired private ObjectMapper objectMapper; @Autowired private SecurityProperties securityProperties; @Override public void onAuthenticationFailure(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException, ServletException { logger.info("登录失败"); logger.info("authentication 包含 " + objectMapper.writeValueAsString(e)); if (LoginType.JSON.equals(securityProperties.getBrowser().getLoginType())) { httpServletResponse.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value()); httpServletResponse.setContentType("application/json;charset=UTF-8"); httpServletResponse.getWriter().write(objectMapper.writeValueAsString(new SimpleResponse(e.getMessage()))); }else{ super.onAuthenticationFailure(httpServletRequest, httpServletResponse, e); } } }
[ "Kingdompin@163.com" ]
Kingdompin@163.com
f248bc3c244ddb6205c995e6e0f9327d3d7ef20e
e7330d93b77a763f7efc70aad45f657d779d34ae
/implementation/lib/Encog/src/main/java/org/encog/ml/factory/train/PNNTrainFactory.java
1642193adbb203630f57da571cedce55229ae7ff
[ "MIT" ]
permissive
pveeckhout/bachelor-thesis
58be7fd87cee720f70c4e2ba81f4eac980fa4b9e
7dae63fe9b748f35b4be45815a3fe322291418f7
refs/heads/master
2016-09-05T13:17:57.255498
2013-11-08T08:20:59
2013-11-08T08:20:59
14,226,541
2
1
null
null
null
null
UTF-8
Java
false
false
1,964
java
/* * Encog(tm) Core v3.2 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2013 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * For more information on Heaton Research copyrights, licenses * and trademarks visit: * http://www.heatonresearch.com/copyright */ package org.encog.ml.factory.train; import org.encog.EncogError; import org.encog.ml.MLMethod; import org.encog.ml.data.MLDataSet; import org.encog.ml.train.MLTrain; import org.encog.neural.networks.training.pnn.TrainBasicPNN; import org.encog.neural.pnn.BasicPNN; /** * A factory used to create PNN trainers. * */ public class PNNTrainFactory { /** * Create a PNN trainer. * <p/> * @param method * The method to use. * @param training * The training data to use. * @param args * The arguments to use. * <p/> * @return The newly created trainer. */ public MLTrain create(final MLMethod method, final MLDataSet training, final String args) { if (!(method instanceof BasicPNN)) { throw new EncogError( "PNN training cannot be used on a method of type: " + method.getClass().getName()); } return new TrainBasicPNN((BasicPNN) method, training); } }
[ "vaneeckhout.pieter@gmail.com" ]
vaneeckhout.pieter@gmail.com
8dc297781d132dfa949ed0ec0d47a83c9a89ab40
4ef431684e518b07288e8b8bdebbcfbe35f364e4
/com.ca.apm.webui.test.framework/src/main/java/com/ca/apm/webui/test/framework/tools/qc/TestCaseData.java
11d4c30c74f883956da19ede26a65ab8f13654e4
[]
no_license
Sarojkswain/APMAutomation
a37c59aade283b079284cb0a8d3cbbf79f3480e3
15659ce9a0030c2e9e5b992040e05311fff713be
refs/heads/master
2020-03-30T00:43:23.925740
2018-09-27T23:42:04
2018-09-27T23:42:04
150,540,177
0
0
null
null
null
null
UTF-8
Java
false
false
581
java
package com.ca.apm.webui.test.framework.tools.qc; /** * The <code>TestCaseData</code> represents... * * @author * @copyright 2013 CA Technology, All rights reserved. */ public class TestCaseData { private String fTestCaseId = null; private String fStatus = null; public TestCaseData(String testCaseId, String status) { this.fTestCaseId = testCaseId; this.fStatus = status; } public String getStatus() { return fStatus; } public String getTestCaseId() { return fTestCaseId; } } // end class
[ "sarojkswain@gmail.com" ]
sarojkswain@gmail.com
8b2755af578fecc2f47133839365b483576e9727
303fc5afce3df984edbc7e477f474fd7aee3b48e
/fuentes/ucumari-commons/src/main/java/com/wildc/ucumari/party/model/PartyAttribute.java
29ac6079b39953011e54cec79ff626f2ba6b5a71
[]
no_license
douit/erpventas
3624cbd55cb68b6d91677a493d6ef1e410392127
c53dc6648bd5a2effbff15e03315bab31e6db38b
refs/heads/master
2022-03-29T22:06:06.060059
2014-04-21T12:53:13
2014-04-21T12:53:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,258
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.wildc.ucumari.party.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * * @author Cristian */ @Entity @Table(name = "party_attribute") @NamedQueries({ @NamedQuery(name = "PartyAttribute.findAll", query = "SELECT p FROM PartyAttribute p")}) public class PartyAttribute implements Serializable { private static final long serialVersionUID = 1L; @EmbeddedId protected PartyAttributePK partyAttributePK; @Column(name = "ATTR_VALUE") private String attrValue; @Column(name = "LAST_UPDATED_STAMP") @Temporal(TemporalType.TIMESTAMP) private Date lastUpdatedStamp; @Column(name = "LAST_UPDATED_TX_STAMP") @Temporal(TemporalType.TIMESTAMP) private Date lastUpdatedTxStamp; @Column(name = "CREATED_STAMP") @Temporal(TemporalType.TIMESTAMP) private Date createdStamp; @Column(name = "CREATED_TX_STAMP") @Temporal(TemporalType.TIMESTAMP) private Date createdTxStamp; @JoinColumn(name = "PARTY_ID", referencedColumnName = "PARTY_ID", insertable = false, updatable = false) @ManyToOne(optional = false) private Party party; public PartyAttribute() { } public PartyAttribute(PartyAttributePK partyAttributePK) { this.partyAttributePK = partyAttributePK; } public PartyAttribute(String partyId, String attrName) { this.partyAttributePK = new PartyAttributePK(partyId, attrName); } public PartyAttributePK getPartyAttributePK() { return partyAttributePK; } public void setPartyAttributePK(PartyAttributePK partyAttributePK) { this.partyAttributePK = partyAttributePK; } public String getAttrValue() { return attrValue; } public void setAttrValue(String attrValue) { this.attrValue = attrValue; } public Date getLastUpdatedStamp() { return lastUpdatedStamp; } public void setLastUpdatedStamp(Date lastUpdatedStamp) { this.lastUpdatedStamp = lastUpdatedStamp; } public Date getLastUpdatedTxStamp() { return lastUpdatedTxStamp; } public void setLastUpdatedTxStamp(Date lastUpdatedTxStamp) { this.lastUpdatedTxStamp = lastUpdatedTxStamp; } public Date getCreatedStamp() { return createdStamp; } public void setCreatedStamp(Date createdStamp) { this.createdStamp = createdStamp; } public Date getCreatedTxStamp() { return createdTxStamp; } public void setCreatedTxStamp(Date createdTxStamp) { this.createdTxStamp = createdTxStamp; } public Party getParty() { return party; } public void setParty(Party party) { this.party = party; } @Override public int hashCode() { int hash = 0; hash += (partyAttributePK != null ? partyAttributePK.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof PartyAttribute)) { return false; } PartyAttribute other = (PartyAttribute) object; if ((this.partyAttributePK == null && other.partyAttributePK != null) || (this.partyAttributePK != null && !this.partyAttributePK.equals(other.partyAttributePK))) { return false; } return true; } @Override public String toString() { return "com.wildc.ucumari.client.modelo.PartyAttribute[ partyAttributePK=" + partyAttributePK + " ]"; } }
[ "cmontes375@gmail.com" ]
cmontes375@gmail.com
9f716269e36f8bab51ea838e546a8d42fd9db129
78c696de905e3f1a699b106c6f23893bd0e96fa3
/src/org/eclipse/help/internal/webapp/data/ButtonData.java
ab53d0080f0f791f684258680c0ab70161d3686c
[]
no_license
jiangyu2015/eclipse-4.5.2-source
71d1e0b45e744ce0038e5ba17b6c3c12fd3634c5
e4a90a19989564e28d73ff64a4a2ffc2cbfeaf9e
refs/heads/master
2021-01-10T09:07:58.554745
2016-03-03T13:18:11
2016-03-03T13:18:11
52,862,391
0
0
null
null
null
null
UTF-8
Java
false
false
2,639
java
/******************************************************************************* * Copyright (c) 2009, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.help.internal.webapp.data; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.IExtensionRegistry; import org.eclipse.core.runtime.Platform; import org.eclipse.help.internal.webapp.HelpWebappPlugin; import org.eclipse.help.webapp.AbstractButton; public class ButtonData extends RequestData { private static final String BUTTON_EXTENSION_POINT = "org.eclipse.help.webapp.toolbarButton"; //$NON-NLS-1$ private List<AbstractButton> allButtons; public ButtonData(ServletContext context, HttpServletRequest request, HttpServletResponse response) { super(context, request, response); } public AbstractButton[] getButtons() { IExtensionRegistry registry = Platform.getExtensionRegistry(); IConfigurationElement[] elements = registry .getConfigurationElementsFor(BUTTON_EXTENSION_POINT); if (allButtons == null) { allButtons = new ArrayList<AbstractButton>(); for (IConfigurationElement element : elements) { Object obj = null; try { obj = element.createExecutableExtension("class"); //$NON-NLS-1$ } catch (CoreException e) { HelpWebappPlugin.logError("Create extension failed:[" //$NON-NLS-1$ + BUTTON_EXTENSION_POINT + "].", e); //$NON-NLS-1$ } if (obj instanceof AbstractButton) { allButtons.add((AbstractButton) obj); } } Collections.sort(allButtons); } List<AbstractButton> buttonList = new ArrayList<AbstractButton>(); for (AbstractButton button : allButtons) { //if (button.isVisible() && button.getLocation() == location) { buttonList.add(button); //} } AbstractButton[] buttons = buttonList.toArray(new AbstractButton[buttonList.size()]); return buttons; } public String getImageUrl(AbstractButton button) { return request.getContextPath() + button.getImageURL(); } }
[ "187_6810_5877@sina.com" ]
187_6810_5877@sina.com
07d78705e5c5bfb94cd10f857bb67339b3d99cc5
cc15157a66a1dc6c10afb78cc577a0dd9fc26530
/src/main/java/edu/harvard/iq/dataverse/api/dto/RoleDTO.java
58e30ade584dd97a0a305e186b45b3a6075d20de
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "JSON" ]
permissive
GlobalDataverseCommunityConsortium/dataverse
56a7f65faa89889636fb3ca4bd19c8e98919316a
bef00db2fdf34c5460286cd22e7ac82a43f228fa
refs/heads/develop
2023-08-31T20:54:44.634735
2023-05-22T15:45:10
2023-05-22T15:45:10
244,448,547
5
4
NOASSERTION
2023-06-14T22:32:35
2020-03-02T18:47:20
Java
UTF-8
Java
false
false
1,315
java
package edu.harvard.iq.dataverse.api.dto; import edu.harvard.iq.dataverse.authorization.DataverseRole; import edu.harvard.iq.dataverse.authorization.Permission; import java.util.EnumSet; /** * * @author michael */ public class RoleDTO { String alias; String name; String description; String ownerId; String[] permissions; public String getAlias() { return alias; } public void setAlias(String alias) { this.alias = alias; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String[] getPermissions() { return permissions; } public void setPermissions(String[] permissions) { this.permissions = permissions; } public DataverseRole asRole() { DataverseRole r = new DataverseRole(); r.setAlias(alias); r.setDescription(description); r.setName(name); if (permissions != null) { if (permissions.length > 0) { if (permissions[0].trim().toLowerCase().equals("all")) { r.addPermissions(EnumSet.allOf(Permission.class)); } else { for (String ps : permissions) { r.addPermission(Permission.valueOf(ps)); } } } } return r; } }
[ "mich.barsinai@gmail.com" ]
mich.barsinai@gmail.com
849fa8e360c410265a84104908602bb136e3559c
2c35a702c983d43b98b14a4df18cb6398bfcdd32
/stripe/src/com/ray3k/stripe/scenecomposer/ProtoScrollPane.java
560f7fc0e962aa9c2c92b8f461d1d6d74fac3693
[ "MIT" ]
permissive
Mr00Anderson/stripe
a6616ed823e3c42a631aca0d9732c99c7b5b35f0
d92965c0eadee48bc16843f413afa1e69d3967b6
refs/heads/master
2022-11-13T04:59:52.122225
2020-06-30T21:58:57
2020-06-30T21:58:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,124
java
package com.ray3k.stripe.scenecomposer; import com.badlogic.gdx.scenes.scene2d.Touchable; public class ProtoScrollPane extends ProtoActor implements SimSingleChild { public String name; public ProtoStyle style; public boolean fadeScrollBars = true; public ProtoActor child; public boolean clamp; public boolean flickScroll = true; public float flingTime = 1f; public boolean forceScrollX; public boolean forceScrollY; public boolean overScrollX = true; public boolean overScrollY = true; public float overScrollDistance = 50; public float overScrollSpeedMin = 30; public float overScrollSpeedMax = 200; public boolean scrollBarBottom = true; public boolean scrollBarRight = true; public boolean scrollBarsOnTop; public boolean scrollBarsVisible = true; public boolean scrollBarTouch = true; public boolean scrollingDisabledX; public boolean scrollingDisabledY; public boolean smoothScrolling = true; public boolean variableSizeKnobs = true; public Touchable touchable = Touchable.enabled; public boolean visible = true; }
[ "raymond.ray3k@gmail.com" ]
raymond.ray3k@gmail.com
cc554f758f35490ff7dc1fa3e53105db8c4f0216
fc2adb6b2ce808e405c14c0a2e101d5285751365
/checkupdatelib/src/main/java/com/qiangxi/checkupdatelibrary/CheckUpdateOption.java
024c81d604f5b702932c47021fb082eeeadfa420
[]
no_license
soon14/szsl_pub
0330c9f671a79aa9d228ff21e10fdcea18405a63
1eac951ba4395b7ecfee0f2f35040eba7b40026a
refs/heads/master
2020-07-26T16:14:41.265256
2019-03-14T09:23:16
2019-03-14T09:23:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,981
java
package com.qiangxi.checkupdatelibrary; /* * Copyright © qiangxi(任强强) * * 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. */ import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.DrawableRes; /** * CheckUpdateDialog的配置实体 */ public class CheckUpdateOption implements Parcelable { private String appName;//app名称 private float newAppSize;//新app大小 private int newAppVersionCode;//新app版本号 private String newAppVersionName;//新app版本名 private String newAppUpdateDesc;//新app更新描述 private String newAppReleaseTime;//新app发布时间 private String newAppUrl;//新app下载地址 private boolean isForceUpdate;//是否强制更新 private String filePath;//apk存储路径 private String fileName;//apk名称 private int notificationIconResId;//通知图标 private String notificationTitle;//通知标题 private String notificationSuccessContent;//下载成功通知内容 private String notificationFailureContent;//下载失败通知内容 private String imageUrl;//图片地址 private int imageResId;//图片本地资源id private CheckUpdateOption() { } public String getAppName() { return appName; } public float getNewAppSize() { return newAppSize; } public int getNewAppVersionCode() { return newAppVersionCode; } public String getNewAppVersionName() { return newAppVersionName; } public String getNewAppUpdateDesc() { return newAppUpdateDesc; } public String getNewAppReleaseTime() { return newAppReleaseTime; } public String getNewAppUrl() { return newAppUrl; } public boolean isForceUpdate() { return isForceUpdate; } public String getFilePath() { return filePath; } public String getFileName() { return fileName; } public int getNotificationIconResId() { return notificationIconResId; } public String getNotificationTitle() { return notificationTitle; } public String getNotificationSuccessContent() { return notificationSuccessContent; } public String getNotificationFailureContent() { return notificationFailureContent; } public String getImageUrl() { return imageUrl; } public int getImageResId() { return imageResId; } public static class Builder { private CheckUpdateOption mOption; public Builder() { mOption = new CheckUpdateOption(); } public Builder setOption(CheckUpdateOption option) { mOption = option; return this; } public Builder setAppName(String appName) { mOption.appName = appName; return this; } public Builder setNewAppSize(float newAppSize) { mOption.newAppSize = newAppSize; return this; } public Builder setNewAppVersionCode(int newAppVersionCode) { mOption.newAppVersionCode = newAppVersionCode; return this; } public Builder setNewAppVersionName(String newAppVersionName) { mOption.newAppVersionName = newAppVersionName; return this; } public Builder setNewAppUpdateDesc(String newAppUpdateDesc) { mOption.newAppUpdateDesc = newAppUpdateDesc; return this; } public Builder setNewAppReleaseTime(String newAppReleaseTime) { mOption.newAppReleaseTime = newAppReleaseTime; return this; } public Builder setNewAppUrl(String newAppUrl) { mOption.newAppUrl = newAppUrl; return this; } public Builder setIsForceUpdate(boolean isForceUpdate) { mOption.isForceUpdate = isForceUpdate; return this; } public Builder setFilePath(String filePath) { mOption.filePath = filePath; return this; } public Builder setFileName(String fileName) { mOption.fileName = fileName; return this; } public Builder setNotificationIconResId(@DrawableRes int notificationIconResId) { mOption.notificationIconResId = notificationIconResId; return this; } public Builder setNotificationTitle(String notificationTitle) { mOption.notificationTitle = notificationTitle; return this; } public Builder setNotificationSuccessContent(String notificationSuccessContent) { mOption.notificationSuccessContent = notificationSuccessContent; return this; } public Builder setNotificationFailureContent(String notificationFailureContent) { mOption.notificationFailureContent = notificationFailureContent; return this; } public Builder setImageUrl(String imageUrl) { mOption.imageUrl = imageUrl; return this; } public Builder setImageResId(@DrawableRes int imageResId) { mOption.imageResId = imageResId; return this; } public CheckUpdateOption build() { return mOption; } } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.appName); dest.writeFloat(this.newAppSize); dest.writeInt(this.newAppVersionCode); dest.writeString(this.newAppVersionName); dest.writeString(this.newAppUpdateDesc); dest.writeString(this.newAppReleaseTime); dest.writeString(this.newAppUrl); dest.writeByte(this.isForceUpdate ? (byte) 1 : (byte) 0); dest.writeString(this.filePath); dest.writeString(this.fileName); dest.writeInt(this.notificationIconResId); dest.writeString(this.notificationTitle); dest.writeString(this.notificationSuccessContent); dest.writeString(this.notificationFailureContent); dest.writeString(this.imageUrl); dest.writeInt(this.imageResId); } protected CheckUpdateOption(Parcel in) { this.appName = in.readString(); this.newAppSize = in.readFloat(); this.newAppVersionCode = in.readInt(); this.newAppVersionName = in.readString(); this.newAppUpdateDesc = in.readString(); this.newAppReleaseTime = in.readString(); this.newAppUrl = in.readString(); this.isForceUpdate = in.readByte() != 0; this.filePath = in.readString(); this.fileName = in.readString(); this.notificationIconResId = in.readInt(); this.notificationTitle = in.readString(); this.notificationSuccessContent = in.readString(); this.notificationFailureContent = in.readString(); this.imageUrl = in.readString(); this.imageResId = in.readInt(); } public static final Creator<CheckUpdateOption> CREATOR = new Creator<CheckUpdateOption>() { @Override public CheckUpdateOption createFromParcel(Parcel source) { return new CheckUpdateOption(source); } @Override public CheckUpdateOption[] newArray(int size) { return new CheckUpdateOption[size]; } }; }
[ "1111" ]
1111
3646c409eb7e3d7dfdc1dd85f994328c33ae41b8
8d69a7c8fe2eee5f94f93cfd0e688d5eed97fb59
/sample/src/main/java/com/larksuite/oapi/sample/api/ImageSample.java
2c2943915791f10cad49b57c9bcef7a9298b8019
[ "Apache-2.0" ]
permissive
lanshiqin/oapi-sdk-java
54ded9dd87f3a2269886946f90e88f1080098dba
cfac558b476c192836efba015749231972236402
refs/heads/main
2023-04-04T20:01:55.451970
2021-04-13T09:44:25
2021-04-13T09:44:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,865
java
package com.larksuite.oapi.sample.api; import com.larksuite.oapi.core.AppSettings; import com.larksuite.oapi.core.Config; import com.larksuite.oapi.core.Domain; import com.larksuite.oapi.core.Keys; import com.larksuite.oapi.core.api.request.FormDataFile; import com.larksuite.oapi.core.api.response.Response; import com.larksuite.oapi.core.utils.Jsons; import com.larksuite.oapi.sample.config.Configs; import com.larksuite.oapi.service.image.v4.ImageService; import com.larksuite.oapi.service.image.v4.model.Image; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.concurrent.TimeUnit; public class ImageSample { // for Cutome APP(自建应用) private static final AppSettings appSettings = Config.getInternalAppSettingsByEnv(); // config with redis store // private static final Config config = Configs.getConfigWithRedisStore("https://open.feishu.cn", appSettings); // private static final Config config = Configs.getConfig("https://open.feishu.cn", appSettings); private static final Config config = Configs.getConfig(Domain.FeiShu, appSettings); public static void main(String[] args) throws Exception { testPut(); //testGet(); System.out.println("end"); } private static void testPut() throws Exception { config.getStore().put(Keys.tenantAccessTokenKey(config.getAppSettings().getAppID(), ""), "t-xxxxxxxxxxxxxxxxxxxxxxxxx", 1000, TimeUnit.DAYS); ImageService service = new ImageService(config); ImageService.ImagePutReqCall reqCall = service.getImages().put(); try (InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("test.png")) { reqCall.setImage(new FormDataFile().setContentStream(inputStream)); reqCall.setImageType("message"); Response<Image> response = reqCall.execute(); System.out.println(response.getRequestID()); System.out.println(response.getHTTPStatusCode()); System.out.println(Jsons.DEFAULT_GSON.toJson(response)); } } private static void testGet() throws Exception { ImageService service = new ImageService(config); try (FileOutputStream output = new FileOutputStream("test_download_img_1.png")) { ImageService.ImageGetReqCall reqCall = service.getImages().get(); reqCall.setImageKey("img_e91d9511-dd89-49f2-aca7-380b26ea7beg"); reqCall.setResponseStream(output); Response response = reqCall.execute(); System.out.println(Jsons.DEFAULT_GSON.toJson(response.getHeader())); System.out.println(response.getRequestID()); System.out.println(response.getHTTPStatusCode()); } catch (IOException e) { e.printStackTrace(); } } }
[ "zhaomingqiang@bytedance.com" ]
zhaomingqiang@bytedance.com
d5a9a37bd423ffb38693377b9250f10bbd908b1a
17966f094cba66f006584a3fc08e7fddcbe53443
/spring-cloud-gray-client/src/main/java/cn/springcloud/gray/choose/DefaultGrayPredicate.java
c19108e42d29039079f83a1a5b5af9a9188ad5bc
[ "Apache-2.0" ]
permissive
blank-1/spring-cloud-gray
782e2163deedd37a71dd0495af950de20895db4c
564f15b180bf2f74996a9f7d258ee8781429ec8f
refs/heads/master
2022-12-12T02:47:51.292389
2020-08-30T18:19:57
2020-08-30T18:22:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,893
java
package cn.springcloud.gray.choose; import cn.springcloud.gray.GrayManager; import cn.springcloud.gray.decision.BringPolicyDefinitionGrayDecision; import cn.springcloud.gray.decision.GrayDecision; import cn.springcloud.gray.decision.GrayDecisionInputArgs; import cn.springcloud.gray.model.PolicyDefinition; import cn.springcloud.gray.request.GrayRequest; import cn.springcloud.gray.request.RequestLocalStorage; import cn.springcloud.gray.servernode.ServerSpec; import cn.springcloud.gray.utils.JsonUtils; import lombok.extern.slf4j.Slf4j; import java.io.IOException; import java.util.List; @Slf4j public class DefaultGrayPredicate implements GrayPredicate { private RequestLocalStorage requestLocalStorage; private GrayManager grayManager; public DefaultGrayPredicate(RequestLocalStorage requestLocalStorage, GrayManager grayManager) { this.requestLocalStorage = requestLocalStorage; this.grayManager = grayManager; } @Override public boolean apply(ServerSpec serverSpec) { GrayDecisionInputArgs decisionInputArgs = GrayDecisionInputArgs.builder() .grayRequest(requestLocalStorage.getGrayRequest()) .server(serverSpec) .build(); return apply(decisionInputArgs); } @Override public boolean apply(GrayDecisionInputArgs decisionInputArgs) { GrayRequest grayRequest = decisionInputArgs.getGrayRequest(); if (grayRequest == null) { return false; } ServerSpec serverSpec = decisionInputArgs.getServer(); if (serverSpec == null) { return false; } List<GrayDecision> grayDecisions = grayManager.getGrayDecision(serverSpec.getServiceId(), serverSpec.getInstanceId()); for (int i = 0; i < grayDecisions.size(); i++) { GrayDecision grayDecision = grayDecisions.get(i); boolean testValue = grayDecision.test(decisionInputArgs); printGrayPolicyDecisionInfo(decisionInputArgs, grayDecision, testValue, grayDecisions.size(), i); if (testValue) { return true; } } return false; } private void printGrayPolicyDecisionInfo( GrayDecisionInputArgs decisionInputArgs, GrayDecision grayDecision, boolean testValue, int decisionLength, int currentDecisionIndex) { if (!log.isDebugEnabled()) { return; } try { if (grayDecision instanceof BringPolicyDefinitionGrayDecision) { BringPolicyDefinitionGrayDecision policyDefinitionGrayDecision = (BringPolicyDefinitionGrayDecision) grayDecision; PolicyDefinition policyDefinition = policyDefinitionGrayDecision.getPolicyDefinition(); log.debug("【灰度决策】服务'{}'的实例'{}' ,'{}-{}'决策结果为'{}'; \ndecisionInputArgs: {}, \npolicyDefinition: {}", decisionInputArgs.getGrayRequest().getServiceId(), decisionInputArgs.getServer().getInstanceId(), decisionLength, currentDecisionIndex + 1, testValue, JsonUtils.toJson(decisionInputArgs), JsonUtils.toJson(policyDefinition)); } log.debug("【灰度决策】服务'{}'的实例'{}' ,'{}-{}'决策结果为'{}'; \ndecisionInputArgs: {}", decisionInputArgs.getGrayRequest().getServiceId(), decisionInputArgs.getServer().getInstanceId(), decisionLength, currentDecisionIndex + 1, testValue, JsonUtils.toJson(decisionInputArgs)); } catch (IOException e) { log.error("", e); } } }
[ "qlichunyu@163.com" ]
qlichunyu@163.com
0ed10db90438819766a4dd4014a30e7aea9c9a6d
bb65854dd85a0d921d25eb7318aac513c5b5ebd1
/Vacinacao/src/main/webapp/src/main/java/br/com/vacinacao/resource/usuario/IUsuarioResource.java
ae093bf8d40c6a9d3b92b66e866e670dbf32893e
[]
no_license
angelorobsonmelo/Back-end-do-projeto-Vacinacao
38ff03929b03959dca631174ae9e2b75ce1fb170
261e658286f2929002409722e26fc35a447a1106
refs/heads/master
2021-01-21T13:41:55.329170
2015-11-01T22:48:35
2015-11-01T22:48:35
45,282,473
0
0
null
null
null
null
UTF-8
Java
false
false
482
java
package br.com.vacinacao.resource.usuario; import java.sql.SQLException; import java.util.ArrayList; import br.com.vacinacao.excecao.BOException; import br.com.vacinacao.model.usuario.UsuarioVO; import br.com.vacinacao.resource.util.ExecucaoResource; public interface IUsuarioResource { public ArrayList<ExecucaoResource> inserir(UsuarioVO usuarioVO) throws BOException, SQLException; public UsuarioVO login(String email, String senha) throws BOException, SQLException; }
[ "=" ]
=
6e326536ec48fa4ab235f1c2c1e9f6dd1602f26a
cb8aa24bcb469aafa3561cb104ded9c59c95685c
/src/main/java/com/nhl/link/move/runtime/json/query/AllProperties.java
84e1012c59ad5321faadf48fce9ce3edb7d83e97
[ "BSD-2-Clause-Views" ]
permissive
optimuse/link-move
02af90fbdb961759b73c3ce2d40257633350adc4
dc5fc6e20213eba4f801149cd3487e0a192ddc0e
refs/heads/master
2021-01-15T10:15:07.374865
2016-02-12T18:33:24
2016-02-12T18:33:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
980
java
package com.nhl.link.move.runtime.json.query; import com.fasterxml.jackson.databind.JsonNode; import java.util.ArrayList; import java.util.Collections; import java.util.List; class AllProperties implements JsonQuery { private JsonQuery clientQuery; public AllProperties(JsonQuery clientQuery) { this.clientQuery = clientQuery; } @Override public List<JsonNode> execute(JsonNode rootNode) { return execute(rootNode, rootNode); } @Override public List<JsonNode> execute(JsonNode rootNode, JsonNode currentNode) { if (currentNode == null) { return Collections.emptyList(); } List<JsonNode> nodes = new ArrayList<>(); for (JsonNode childNode : currentNode) { if (clientQuery != null) { nodes.addAll(clientQuery.execute(rootNode, childNode)); } else { nodes.add(childNode); } } return nodes; } }
[ "nordmann89@gmail.com" ]
nordmann89@gmail.com
7163d71448b05529ab8ab4da97e501cc34467dcc
06135bd0224a459e25fb5285a4562351e094138c
/seawar_1.3_ly/app/foxu/sea/gm/operators/ContextVarManage.java
1ee699ce881d77adb5b53b822602baf36213d39e
[]
no_license
szdksconan/seawar
f33604a683d5ecabb815a489547b271f46f939ca
8763c2ed12e6e9fdf13ec8345fd1f42773ce70e7
refs/heads/master
2021-01-25T04:49:47.992220
2017-06-06T07:31:24
2017-06-06T07:31:24
93,488,774
0
0
null
null
null
null
GB18030
Java
false
false
2,224
java
package foxu.sea.gm.operators; import java.util.Map; import mustang.text.TextKit; import foxu.sea.ContextVarManager; import foxu.sea.gm.GMConstant; import foxu.sea.gm.GMOperator; import foxu.sea.gm.ServerInfo; import javapns.json.JSONArray; import javapns.json.JSONObject; /** * 上下文变量管理 * * @author Alan */ public class ContextVarManage extends GMOperator { public static final int VIEW=1,SET=2; public static final String ALL_VARS="all_vars"; public static String[] allVars={ContextVarManager.WORLD_CHAT_LEVEL, ContextVarManager.PRIVATE_CHAT_LEVEL,ContextVarManager.EMAIL_LEVEL, ContextVarManager.CREATE_ALLIANCE_LEVEL_LIMIT, ContextVarManager.JOIN_ALLIANCE_LEVEL_LIMIT, ContextVarManager.ALLIANCE_DONATE_LEVEL_LIMIT, ContextVarManager.ALLIANCE_SHIP_DONATE_LEVEL_LIMIT}; @Override public int operate(String user,Map<String,String> params, JSONArray jsonArray,ServerInfo info) { int type=TextKit.parseInt(params.get("type")); String var=params.get("var"); String[] vars={var}; if(ALL_VARS.equals(var)) vars=allVars; if(type==VIEW) { return returnJSON(vars,jsonArray); } else if(type==SET) { int value=TextKit.parseInt(params.get("value")); String dest=params.get("dest"); for(int i=0;i<vars.length;i++) { ContextVarManager.VarEntry varObj=ContextVarManager .getInstance().getVarEntry(vars[i]); if(varObj.getVar()==Integer.MIN_VALUE) return GMConstant.ERR_PARAMATER_ERROR; ContextVarManager.getInstance().putVar(varObj.getKey(), value,dest); } return returnJSON(vars,jsonArray); } return GMConstant.ERR_SUCCESS; } public int returnJSON(String[] vars,JSONArray jsonArray) { for(int i=0;i<vars.length;i++) { try { ContextVarManager.VarEntry var=ContextVarManager .getInstance().getVarEntry(vars[i]); if(var.getVar()==Integer.MIN_VALUE) return GMConstant.ERR_PARAMATER_ERROR; JSONObject json=new JSONObject(); json.put("var",var.getKey()); json.put("value",var.getVar()); json.put("dest",var.getDest()); jsonArray.put(json); } catch(Exception e) { e.printStackTrace(); return GMConstant.ERR_UNKNOWN; } } return GMConstant.ERR_SUCCESS; } }
[ "szdksconan@hotmail.com" ]
szdksconan@hotmail.com
8bf050339dddaf0b99bb211c8816c207d44f6359
668584d63f6ed8f48c8609c3a142f8bdf1ba1a40
/prj/coherence-core/src/main/java/com/tangosol/coherence/config/xml/processor/SSLNameListProcessor.java
eb39c7b104ed1f47ac65a4ff1f73fa221b45e56e
[ "EPL-1.0", "Classpath-exception-2.0", "LicenseRef-scancode-unicode", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-protobuf", "CDDL-1.1", "W3C", "APSL-1.0", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "SAX-PD", "MPL-2.0", "MPL-1.1", "CC-PDDC", "BSD-2-Clause", "Plexus", "EPL-2.0", "CDDL-1.0", "LicenseRef-scancode-proprietary-license", "MIT", "CC0-1.0", "APSL-2.0", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-only", "LGPL-2.1-or-later", "UPL-1.0" ]
permissive
oracle/coherence
34c48d36674e69974a693925c18f097175052c5f
b1a009a406e37fdc5479366035d8c459165324e1
refs/heads/main
2023-08-31T14:53:40.437690
2023-08-31T02:04:15
2023-08-31T02:04:15
242,776,849
416
96
UPL-1.0
2023-08-07T04:27:39
2020-02-24T15:51:04
Java
UTF-8
Java
false
false
1,994
java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.coherence.config.xml.processor; import com.tangosol.coherence.config.builder.SSLSocketProviderDependenciesBuilder.NameListDependencies; import com.tangosol.config.ConfigurationException; import com.tangosol.config.xml.ElementProcessor; import com.tangosol.config.xml.ProcessingContext; import com.tangosol.run.xml.XmlElement; import com.tangosol.run.xml.XmlValue; import java.util.List; /** * An {@link ElementProcessor} that will parse and produce a * NameListDependencies based on a protocol-versions or cipher-suites configuration element. * * @author jf 2015.11.11 * @since Coherence 12.2.1.1 */ public class SSLNameListProcessor implements ElementProcessor<NameListDependencies> { // ----- constructors ---------------------------------------------------- public SSLNameListProcessor(String sName) { f_sName = sName; } @Override public NameListDependencies process(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException { NameListDependencies bldr = new NameListDependencies(xmlElement.getQualifiedName().getLocalName()); XmlValue value = xmlElement.getAttribute("usage"); if (value != null) { bldr.setUsage(value.getString()); } for (XmlElement elementChild : ((List<XmlElement>) xmlElement.getElementList())) { if (elementChild.getQualifiedName().getLocalName().equals("name")) { bldr.add((String) elementChild.getValue()); } } return bldr; } // ----- constants ------------------------------------------------------- /** * xmlElement local name should be this value. */ private final String f_sName; }
[ "a@b" ]
a@b
829088c7dfc6216e077475141783007737546e35
198f1d82f691ccb1c99705f67cb09f995b6f097b
/jdk.localedata/sun/util/resources/cldr/ext/LocaleNames_es_CL.java
1cef6c95b6d6f3e7f41a1f845ef136cad6a0946b
[]
no_license
todayido/Java-src
2a6c9b525f2b100797cc1e4f5807c0202aa0ddd1
2b333d3dee5f02e2d1958cbd4537232faf61677b
refs/heads/master
2023-02-07T20:46:49.325290
2020-12-24T03:28:36
2020-12-24T03:28:36
320,173,437
1
0
null
null
null
null
UTF-8
Java
false
false
4,379
java
/* * Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * COPYRIGHT AND PERMISSION NOTICE * * Copyright (C) 1991-2016 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in * http://www.unicode.org/copyright.html. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of the Unicode data files and any associated documentation * (the "Data Files") or Unicode software and any associated documentation * (the "Software") to deal in the Data Files or Software * without restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, and/or sell copies of * the Data Files or Software, and to permit persons to whom the Data Files * or Software are furnished to do so, provided that * (a) this copyright and permission notice appear with all copies * of the Data Files or Software, * (b) this copyright and permission notice appear in associated * documentation, and * (c) there is clear notice in each modified Data File or in the Software * as well as in the documentation associated with the Data File(s) or * Software that the data or software has been modified. * * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF * ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT OF THIRD PARTY RIGHTS. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS * NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL * DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THE DATA FILES OR SOFTWARE. * * Except as contained in this notice, the name of a copyright holder * shall not be used in advertising or otherwise to promote the sale, * use or other dealings in these Data Files or Software without prior * written authorization of the copyright holder. */ package sun.util.resources.cldr.ext; import sun.util.resources.OpenListResourceBundle; public class LocaleNames_es_CL extends OpenListResourceBundle { @Override protected final Object[][] getContents() { final Object[][] data = new Object[][] { { "BA", "Bosnia y Herzegovina" }, { "EH", "Sahara Occidental" }, { "TA", "Trist\u00e1n de Acu\u00f1a" }, { "UM", "Islas menores alejadas de EE. UU." }, { "eu", "euskera" }, { "lo", "lao" }, { "pa", "punyab\u00ed" }, { "ss", "siswati" }, { "sw", "suajili" }, { "tn", "setswana" }, { "wo", "wolof" }, { "ace", "acehn\u00e9s" }, { "arp", "arapaho" }, { "bho", "bhojpuri" }, { "grc", "griego antiguo" }, { "nso", "sotho septentrional" }, { "zgh", "tamazight marroqu\u00ed est\u00e1ndar" }, { "sw_CD", "suajili del Congo" }, { "type.co.phonebook", "orden de directorio telef\u00f3nico" }, }; return data; } }
[ "2227800977@qq.com" ]
2227800977@qq.com
479f0fd728fe485f1ef98d0f608bab2560c40577
1c59677b633d2b64f10f8ad6e46905f1c15745c1
/uaa-app/src/main/java/com/cus/jastip/uaa/web/rest/vm/KeyAndPasswordVM.java
44f6d2df916b163a351df5a5203089cbc51bcb51
[]
no_license
elvistj10/new-jastip
3a430dce4578b40d5be8c345692e65e389f1e473
33477d059e1a15f060049d46a68919fedce6c31b
refs/heads/master
2020-04-12T22:06:34.924049
2018-12-22T04:52:12
2018-12-22T04:52:12
162,781,767
0
0
null
null
null
null
UTF-8
Java
false
false
499
java
package com.cus.jastip.uaa.web.rest.vm; /** * View Model object for storing the user's key and password. */ public class KeyAndPasswordVM { private String key; private String newPassword; public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getNewPassword() { return newPassword; } public void setNewPassword(String newPassword) { this.newPassword = newPassword; } }
[ "elvistenthjune@gmil.com" ]
elvistenthjune@gmil.com
fad7f455a3359aaedd24dec6efd51cff47b4e197
6252c165657baa6aa605337ebc38dd44b3f694e2
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-1000-Files/boiler-To-Generate-1000-Files/syncregions-1000Files/TemperatureController4743.java
0b7a0ab7aa1f7ca1a7b181a6c1d29157f34ff8f0
[]
no_license
soha500/EglSync
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
55101bc781349bb14fefc178bf3486e2b778aed6
refs/heads/master
2021-06-23T02:55:13.464889
2020-12-11T19:10:01
2020-12-11T19:10:01
139,832,721
0
1
null
2019-05-31T11:34:02
2018-07-05T10:20:00
Java
UTF-8
Java
false
false
371
java
package syncregions; public class TemperatureController4743 { public int execute(int temperature4743, int targetTemperature4743) { //sync _bfpnFUbFEeqXnfGWlV4743, behaviour 1-if(temperatureDifference > 0 && boilerStatus == true) { return 1; } else if (temperatureDifference < 0 && boilerStatus == false) { return 2; } else return 0; //endSync } }
[ "sultanalmutairi@172.20.10.2" ]
sultanalmutairi@172.20.10.2
a3a38ad3390b3c631a290a1b2194956f2e3a3610
e8f9fe2285f1598fee5860d2447fd1a1f6557306
/MPC/src/minecraft_server/net/minecraft/src/PlayerSelector.java
e231db52c64bb7ed63df32d19f0e1a20d61d06d2
[]
no_license
pedroreisuft/minecraft
8e71c74ee37ffbf863b0e89c7051ed2b3ce80a7f
64ba09bce02603abea3270e4030be2aac4555822
refs/heads/master
2016-09-06T01:24:36.812128
2012-11-30T19:34:19
2012-11-30T19:34:19
6,943,629
2
0
null
null
null
null
UTF-8
Java
false
false
7,338
java
package net.minecraft.src; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import net.minecraft.server.MinecraftServer; public class PlayerSelector { private static final Pattern field_82389_a = Pattern.compile("^@([parf])(?:\\[([\\w=,-]*)\\])?$"); private static final Pattern field_82387_b = Pattern.compile("\\G(-?\\w*)(?:$|,)"); private static final Pattern field_82388_c = Pattern.compile("\\G(\\w{1,2})=(-?\\w+)(?:$|,)"); public static EntityPlayerMP func_82386_a(ICommandSender par0ICommandSender, String par1Str) { EntityPlayerMP[] var2 = func_82380_c(par0ICommandSender, par1Str); return var2 != null && var2.length == 1 ? var2[0] : null; } public static String func_82385_b(ICommandSender par0ICommandSender, String par1Str) { EntityPlayerMP[] var2 = func_82380_c(par0ICommandSender, par1Str); if (var2 != null && var2.length != 0) { String[] var3 = new String[var2.length]; for (int var4 = 0; var4 < var3.length; ++var4) { var3[var4] = var2[var4].getEntityName(); } return CommandBase.joinNiceString(var3); } else { return null; } } public static EntityPlayerMP[] func_82380_c(ICommandSender par0ICommandSender, String par1Str) { Matcher var2 = field_82389_a.matcher(par1Str); if (var2.matches()) { Map var3 = func_82381_h(var2.group(2)); String var4 = var2.group(1); int var5 = func_82384_c(var4); int var6 = func_82379_d(var4); int var7 = func_82375_f(var4); int var8 = func_82376_e(var4); int var9 = func_82382_g(var4); int var10 = EnumGameType.NOT_SET.getID(); ChunkCoordinates var11 = par0ICommandSender.getCommandSenderPosition(); if (var3.containsKey("rm")) { var5 = MathHelper.parseIntWithDefault((String)var3.get("rm"), var5); } if (var3.containsKey("r")) { var6 = MathHelper.parseIntWithDefault((String)var3.get("r"), var6); } if (var3.containsKey("lm")) { var7 = MathHelper.parseIntWithDefault((String)var3.get("lm"), var7); } if (var3.containsKey("l")) { var8 = MathHelper.parseIntWithDefault((String)var3.get("l"), var8); } if (var3.containsKey("x")) { var11.posX = MathHelper.parseIntWithDefault((String)var3.get("x"), var11.posX); } if (var3.containsKey("y")) { var11.posY = MathHelper.parseIntWithDefault((String)var3.get("y"), var11.posY); } if (var3.containsKey("z")) { var11.posZ = MathHelper.parseIntWithDefault((String)var3.get("z"), var11.posZ); } if (var3.containsKey("m")) { var10 = MathHelper.parseIntWithDefault((String)var3.get("m"), var10); } if (var3.containsKey("c")) { var9 = MathHelper.parseIntWithDefault((String)var3.get("c"), var9); } List var12; if (!var4.equals("p") && !var4.equals("a")) { if (!var4.equals("r")) { return null; } else { var12 = MinecraftServer.getServer().getConfigurationManager().findPlayers(var11, var5, var6, 0, var10, var7, var8); Collections.shuffle(var12); var12 = var12.subList(0, Math.min(var9, var12.size())); return var12 != null && !var12.isEmpty() ? (EntityPlayerMP[])var12.toArray(new EntityPlayerMP[0]) : new EntityPlayerMP[0]; } } else { var12 = MinecraftServer.getServer().getConfigurationManager().findPlayers(var11, var5, var6, var9, var10, var7, var8); return var12 != null && !var12.isEmpty() ? (EntityPlayerMP[])var12.toArray(new EntityPlayerMP[0]) : new EntityPlayerMP[0]; } } else { return null; } } public static boolean func_82377_a(String par0Str) { Matcher var1 = field_82389_a.matcher(par0Str); if (var1.matches()) { Map var2 = func_82381_h(var1.group(2)); String var3 = var1.group(1); int var4 = func_82382_g(var3); if (var2.containsKey("c")) { var4 = MathHelper.parseIntWithDefault((String)var2.get("c"), var4); } return var4 != 1; } else { return false; } } public static boolean func_82383_a(String par0Str, String par1Str) { Matcher var2 = field_82389_a.matcher(par0Str); if (!var2.matches()) { return false; } else { String var3 = var2.group(1); return par1Str == null || par1Str.equals(var3); } } public static boolean func_82378_b(String par0Str) { return func_82383_a(par0Str, (String)null); } private static final int func_82384_c(String par0Str) { return 0; } private static final int func_82379_d(String par0Str) { return 0; } private static final int func_82376_e(String par0Str) { return Integer.MAX_VALUE; } private static final int func_82375_f(String par0Str) { return 0; } private static final int func_82382_g(String par0Str) { return par0Str.equals("a") ? 0 : 1; } private static Map func_82381_h(String par0Str) { HashMap var1 = new HashMap(); if (par0Str == null) { return var1; } else { Matcher var2 = field_82387_b.matcher(par0Str); int var3 = 0; int var4; for (var4 = -1; var2.find(); var4 = var2.end()) { String var5 = null; switch (var3++) { case 0: var5 = "x"; break; case 1: var5 = "y"; break; case 2: var5 = "z"; break; case 3: var5 = "r"; } if (var5 != null && var2.group(1).length() > 0) { var1.put(var5, var2.group(1)); } } if (var4 < par0Str.length()) { var2 = field_82388_c.matcher(var4 == -1 ? par0Str : par0Str.substring(var4)); while (var2.find()) { var1.put(var2.group(1), var2.group(2)); } } return var1; } } }
[ "phsmreis@gmail.com" ]
phsmreis@gmail.com
0a9975eca9afb02db8fbf81fc0f0cd9bf60786bf
1ce70242b82935fa9e7e5198ea7328f183c60090
/src/main/java/jetbrick/template/compiler/JetTemplateClassLoader.java
cf9487ca53d765dffcc1dc4eeb71abfca5517031
[ "Apache-2.0" ]
permissive
taoguan/jetbrick-template
3af9fa757cf0ebd739618eb89711d5930317aa9f
0ebfc4f2fc05375cf7628dacc3da9411c59331f8
refs/heads/master
2020-12-25T22:48:00.070518
2013-12-17T01:26:30
2013-12-17T01:26:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,980
java
/** * jetbrick-template * http://subchen.github.io/jetbrick-template/ * * Copyright 2010-2013 Guoqiang Chen. All rights reserved. * Email: subchen@gmail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jetbrick.template.compiler; import java.io.File; import java.net.*; import jetbrick.template.JetEngine; import jetbrick.template.parser.support.ClassUtils; import jetbrick.template.utils.ExceptionUtils; import jetbrick.template.utils.PathUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class JetTemplateClassLoader { private final Logger log = LoggerFactory.getLogger(JetTemplateClassLoader.class); private final String classpath; private final URL[] urls; private final ClassLoader classloader; private final boolean reloadable; public JetTemplateClassLoader(String classpath, boolean reloadable) { this.classpath = getVersionClasspath(classpath); this.urls = new URL[] { toURL(this.classpath) }; this.classloader = createClassLoader(); this.reloadable = reloadable; log.info("Will compile template into " + this.classpath); } public Class<?> loadClass(String qualifiedClassName) throws ClassNotFoundException { if (reloadable) { // 为了可以动态卸载 Class,需要每次重新 new 一个 URLClassLoader ClassLoader classloader = createClassLoader(); return classloader.loadClass(qualifiedClassName); } else { return classloader.loadClass(qualifiedClassName); } } public String getClasspath() { return classpath; } private ClassLoader createClassLoader() { return new URLClassLoader(urls, ClassUtils.getContextClassLoader()); } // 根据不同的 Version 生成不同的 classpath private static String getVersionClasspath(String classpath) { File dir = new File(classpath, "jetx_" + JetEngine.VERSION.replace('.', '_')); // 必须先建立目录,否则 URLClassLoader 会失败 if (!dir.mkdirs() && !dir.exists()) { throw new IllegalStateException("Can't create a directory in " + dir.getAbsolutePath()); } return PathUtils.getCanonicalPath(dir); } private static URL toURL(String url) { try { return new File(url).toURI().toURL(); } catch (MalformedURLException e) { throw ExceptionUtils.uncheck(e); } } }
[ "subchen@gmail.com" ]
subchen@gmail.com
06ca0757308f94ff8e9dd5639505ed93212a8fad
cb762d4b0f0ea986d339759ba23327a5b6b67f64
/src/service/com/joymain/jecs/fi/service/impl/JfiChinapnrLogManagerImpl.java
324248b55c7938126cf9f8fab688485296c99afb
[ "Apache-2.0" ]
permissive
lshowbiz/agnt_ht
c7d68c72a1d5fa7cd0e424eabb9159d3552fe9dc
fd549de35cb12a2e3db1cd9750caf9ce6e93e057
refs/heads/master
2020-08-04T14:24:26.570794
2019-10-02T03:04:13
2019-10-02T03:04:13
212,160,437
0
0
null
null
null
null
UTF-8
Java
false
false
1,980
java
package com.joymain.jecs.fi.service.impl; import java.util.List; import com.joymain.jecs.fi.dao.JfiChinapnrLogDao; import com.joymain.jecs.fi.model.JfiChinapnrLog; import com.joymain.jecs.fi.service.JfiChinapnrLogManager; import com.joymain.jecs.service.impl.BaseManager; import com.joymain.jecs.util.data.CommonRecord; import com.joymain.jecs.util.data.Pager; @SuppressWarnings("unchecked") public class JfiChinapnrLogManagerImpl extends BaseManager implements JfiChinapnrLogManager { private JfiChinapnrLogDao dao; /** * Set the Dao for communication with the data layer. * @param dao */ public void setJfiChinapnrLogDao(JfiChinapnrLogDao dao) { this.dao = dao; } /** * @see com.joymain.jecs.fi.service.JfiChinapnrLogManager#getJfiChinapnrLogs(com.joymain.jecs.fi.model.JfiChinapnrLog) */ public List getJfiChinapnrLogs(final JfiChinapnrLog jfiChinapnrLog) { return dao.getJfiChinapnrLogs(jfiChinapnrLog); } public List getChinapnrLogsByMerId(String MerId) { return dao.getChinapnrLogsByMerId(MerId); } /** * @see com.joymain.jecs.fi.service.JfiChinapnrLogManager#getJfiChinapnrLog(String logId) */ public JfiChinapnrLog getJfiChinapnrLog(final String logId) { return dao.getJfiChinapnrLog(new Long(logId)); } /** * @see com.joymain.jecs.fi.service.JfiChinapnrLogManager#saveJfiChinapnrLog(JfiChinapnrLog jfiChinapnrLog) */ public void saveJfiChinapnrLog(JfiChinapnrLog jfiChinapnrLog) { dao.saveJfiChinapnrLog(jfiChinapnrLog); } /** * @see com.joymain.jecs.fi.service.JfiChinapnrLogManager#removeJfiChinapnrLog(String logId) */ public void removeJfiChinapnrLog(final String logId) { dao.removeJfiChinapnrLog(new Long(logId)); } //added for getJfiChinapnrLogsByCrm public List getJfiChinapnrLogsByCrm(CommonRecord crm, Pager pager){ return dao.getJfiChinapnrLogsByCrm(crm,pager); } }
[ "727736571@qq.com" ]
727736571@qq.com
a800f258c49999c0ee650515ca474852643e8bb7
dc182283f6eed3b5aaa45c7da61bdc07b41ee161
/chrome/browser/xsurface/android/java/src/org/chromium/chrome/browser/xsurface/FeedNetworkRequestReliabilityLogger.java
f9465047bc2db9ff0fce00eca1aa40606515294f
[ "BSD-3-Clause" ]
permissive
KHJcode/chromium
c2bf1c71363e81aaa9e14de582cd139e46877e0a
61f837c7b6768f2e74501dd614624f44e396f363
refs/heads/master
2023-06-19T07:25:15.090544
2021-07-08T12:38:31
2021-07-08T12:38:31
299,554,207
1
0
BSD-3-Clause
2020-09-29T08:33:13
2020-09-29T08:33:12
null
UTF-8
Java
false
false
1,872
java
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.xsurface; /** * Interface for logging latency and availability signals for feed network requests. All timestamps * are in terms of nanoseconds since system boot. * * Obtain instances from FeedLaunchReliabilityLogger.getNetworkRequestReliabilityLogger(). */ public interface FeedNetworkRequestReliabilityLogger { /** * Log when making a feed query request. * @param timestamp Event time. */ default void logFeedQueryRequestStart(long timestamp) {} /** * Log just before making a feed actions upload request. * @param timestamp Event time. */ default void logActionsUploadRequestStart(long timestamp) {} /** * Log after the request has been sent. * @param timestamp Event time. */ default void logRequestSent(long timestamp) {} /** * Log after the response is received and before it is parsed. * @param serverRecvTimestamp Server-reported time (nanoseconds) at which the request arrived. * @param serverSendTimestamp Server-reported time (nanoseconds) at which the response was sent. * @param clientRecvTimestamp Client time at which the response was received. */ default void logResponseReceived( long serverRecvTimestamp, long serverSendTimestamp, long clientRecvTimestamp) {} /** * Log after logResponseReceived() if there's a network error, or after parsing the response * otherwise. * @param timestamp Event time. * @param canonicalStatus Network request status code. See * //third_party/abseil-cpp/absl/status/status.h. */ default void logRequestFinished(long timestamp, int canonicalStatus) {} }
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
92a9b1397e1c3ed2cf024435088f1fdd7853aa83
0907c886f81331111e4e116ff0c274f47be71805
/sources/com/google/firebase/components/EventBus.java
06e2949822c04ac2aea440c40655e468d3ac858b
[ "MIT" ]
permissive
Minionguyjpro/Ghostly-Skills
18756dcdf351032c9af31ec08fdbd02db8f3f991
d1a1fb2498aec461da09deb3ef8d98083542baaf
refs/heads/Android-OS
2022-07-27T19:58:16.442419
2022-04-15T07:49:53
2022-04-15T07:49:53
415,272,874
2
0
MIT
2021-12-21T10:23:50
2021-10-09T10:12:36
Java
UTF-8
Java
false
false
4,695
java
package com.google.firebase.components; import com.google.firebase.events.Event; import com.google.firebase.events.EventHandler; import com.google.firebase.events.Publisher; import com.google.firebase.events.Subscriber; import java.util.ArrayDeque; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Queue; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; /* compiled from: com.google.firebase:firebase-components@@16.0.0 */ class EventBus implements Publisher, Subscriber { private final Executor defaultExecutor; private final Map<Class<?>, ConcurrentHashMap<EventHandler<Object>, Executor>> handlerMap = new HashMap(); private Queue<Event<?>> pendingEvents = new ArrayDeque(); EventBus(Executor executor) { this.defaultExecutor = executor; } /* JADX WARNING: Code restructure failed: missing block: B:11:0x001c, code lost: if (r0.hasNext() == false) goto L_0x0032; */ /* JADX WARNING: Code restructure failed: missing block: B:12:0x001e, code lost: r1 = r0.next(); ((java.util.concurrent.Executor) r1.getValue()).execute(com.google.firebase.components.EventBus$$Lambda$1.lambdaFactory$(r1, r4)); */ /* JADX WARNING: Code restructure failed: missing block: B:13:0x0032, code lost: return; */ /* JADX WARNING: Code restructure failed: missing block: B:9:0x0010, code lost: r0 = getHandlers(r4).iterator(); */ /* Code decompiled incorrectly, please refer to instructions dump. */ public void publish(com.google.firebase.events.Event<?> r4) { /* r3 = this; com.google.firebase.components.Preconditions.checkNotNull(r4) monitor-enter(r3) java.util.Queue<com.google.firebase.events.Event<?>> r0 = r3.pendingEvents // Catch:{ all -> 0x0033 } if (r0 == 0) goto L_0x000f java.util.Queue<com.google.firebase.events.Event<?>> r0 = r3.pendingEvents // Catch:{ all -> 0x0033 } r0.add(r4) // Catch:{ all -> 0x0033 } monitor-exit(r3) // Catch:{ all -> 0x0033 } return L_0x000f: monitor-exit(r3) // Catch:{ all -> 0x0033 } java.util.Set r0 = r3.getHandlers(r4) java.util.Iterator r0 = r0.iterator() L_0x0018: boolean r1 = r0.hasNext() if (r1 == 0) goto L_0x0032 java.lang.Object r1 = r0.next() java.util.Map$Entry r1 = (java.util.Map.Entry) r1 java.lang.Object r2 = r1.getValue() java.util.concurrent.Executor r2 = (java.util.concurrent.Executor) r2 java.lang.Runnable r1 = com.google.firebase.components.EventBus$$Lambda$1.lambdaFactory$(r1, r4) r2.execute(r1) goto L_0x0018 L_0x0032: return L_0x0033: r4 = move-exception monitor-exit(r3) // Catch:{ all -> 0x0033 } goto L_0x0037 L_0x0036: throw r4 L_0x0037: goto L_0x0036 */ throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.components.EventBus.publish(com.google.firebase.events.Event):void"); } private synchronized Set<Map.Entry<EventHandler<Object>, Executor>> getHandlers(Event<?> event) { Map map; map = this.handlerMap.get(event.getType()); return map == null ? Collections.emptySet() : map.entrySet(); } public synchronized <T> void subscribe(Class<T> cls, Executor executor, EventHandler<? super T> eventHandler) { Preconditions.checkNotNull(cls); Preconditions.checkNotNull(eventHandler); Preconditions.checkNotNull(executor); if (!this.handlerMap.containsKey(cls)) { this.handlerMap.put(cls, new ConcurrentHashMap()); } this.handlerMap.get(cls).put(eventHandler, executor); } public <T> void subscribe(Class<T> cls, EventHandler<? super T> eventHandler) { subscribe(cls, this.defaultExecutor, eventHandler); } /* access modifiers changed from: package-private */ public void enablePublishingAndFlushPending() { Queue<Event<?>> queue; synchronized (this) { queue = null; if (this.pendingEvents != null) { Queue<Event<?>> queue2 = this.pendingEvents; this.pendingEvents = null; queue = queue2; } } if (queue != null) { for (Event publish : queue) { publish(publish); } } } }
[ "66115754+Minionguyjpro@users.noreply.github.com" ]
66115754+Minionguyjpro@users.noreply.github.com
a1b69ec3054002465723944afef75c6097e32039
9d7b8102e7adc2b04b6537d8bbeb73d6ed4dfd7f
/zbar/build/generated/source/r/androidTest/debug/android/support/compat/R.java
77503c27642d4456535cf2866fdd4e17b4ac4f0f
[]
no_license
danisluis6/Template-full-screen
8ef41ad6dedbe43fc327b843aed877f8579ab793
fbbd5ad4dd995a4b8682c976aeff5709787090b6
refs/heads/master
2020-04-26T03:51:20.763734
2019-03-04T08:49:51
2019-03-04T08:49:51
173,281,497
0
0
null
2019-03-04T10:43:17
2019-03-01T10:18:08
Java
UTF-8
Java
false
false
7,610
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.compat; public final class R { public static final class attr { public static final int font = 0x7f020075; public static final int fontProviderAuthority = 0x7f020077; public static final int fontProviderCerts = 0x7f020078; public static final int fontProviderFetchStrategy = 0x7f020079; public static final int fontProviderFetchTimeout = 0x7f02007a; public static final int fontProviderPackage = 0x7f02007b; public static final int fontProviderQuery = 0x7f02007c; public static final int fontStyle = 0x7f02007d; public static final int fontWeight = 0x7f02007e; } public static final class bool { public static final int abc_action_bar_embed_tabs = 0x7f030000; } public static final class color { public static final int notification_action_color_filter = 0x7f04003b; public static final int notification_icon_bg_color = 0x7f04003c; public static final int ripple_material_light = 0x7f040047; public static final int secondary_text_default_material_light = 0x7f040049; } public static final class dimen { public static final int compat_button_inset_horizontal_material = 0x7f05004a; public static final int compat_button_inset_vertical_material = 0x7f05004b; public static final int compat_button_padding_horizontal_material = 0x7f05004c; public static final int compat_button_padding_vertical_material = 0x7f05004d; public static final int compat_control_corner_material = 0x7f05004e; public static final int notification_action_icon_size = 0x7f050058; public static final int notification_action_text_size = 0x7f050059; public static final int notification_big_circle_margin = 0x7f05005a; public static final int notification_content_margin_start = 0x7f05005b; public static final int notification_large_icon_height = 0x7f05005c; public static final int notification_large_icon_width = 0x7f05005d; public static final int notification_main_column_padding_top = 0x7f05005e; public static final int notification_media_narrow_margin = 0x7f05005f; public static final int notification_right_icon_size = 0x7f050060; public static final int notification_right_side_padding_top = 0x7f050061; public static final int notification_small_icon_background_padding = 0x7f050062; public static final int notification_small_icon_size_as_large = 0x7f050063; public static final int notification_subtext_size = 0x7f050064; public static final int notification_top_pad = 0x7f050065; public static final int notification_top_pad_large_text = 0x7f050066; } public static final class drawable { public static final int notification_action_background = 0x7f060053; public static final int notification_bg = 0x7f060054; public static final int notification_bg_low = 0x7f060055; public static final int notification_bg_low_normal = 0x7f060056; public static final int notification_bg_low_pressed = 0x7f060057; public static final int notification_bg_normal = 0x7f060058; public static final int notification_bg_normal_pressed = 0x7f060059; public static final int notification_icon_background = 0x7f06005a; public static final int notification_template_icon_bg = 0x7f06005b; public static final int notification_template_icon_low_bg = 0x7f06005c; public static final int notification_tile_bg = 0x7f06005d; public static final int notify_panel_notification_icon_bg = 0x7f06005e; } public static final class id { public static final int action_container = 0x7f07000e; public static final int action_divider = 0x7f070010; public static final int action_image = 0x7f070011; public static final int action_text = 0x7f070017; public static final int actions = 0x7f070018; public static final int async = 0x7f07001d; public static final int blocking = 0x7f07001f; public static final int chronometer = 0x7f070024; public static final int forever = 0x7f070031; public static final int icon = 0x7f070034; public static final int icon_group = 0x7f070035; public static final int info = 0x7f070038; public static final int italic = 0x7f070039; public static final int line1 = 0x7f07003a; public static final int line3 = 0x7f07003b; public static final int normal = 0x7f070044; public static final int notification_background = 0x7f070045; public static final int notification_main_column = 0x7f070046; public static final int notification_main_column_container = 0x7f070047; public static final int right_icon = 0x7f07004c; public static final int right_side = 0x7f07004d; public static final int text = 0x7f07006a; public static final int text2 = 0x7f07006b; public static final int time = 0x7f07006e; public static final int title = 0x7f07006f; } public static final class integer { public static final int status_bar_notification_info_maxnum = 0x7f080004; } public static final class layout { public static final int notification_action = 0x7f09001b; public static final int notification_action_tombstone = 0x7f09001c; public static final int notification_template_custom_big = 0x7f090023; public static final int notification_template_icon_group = 0x7f090024; public static final int notification_template_part_chronometer = 0x7f090028; public static final int notification_template_part_time = 0x7f090029; } public static final class string { public static final int status_bar_notification_info_overflow = 0x7f0a0020; } public static final class style { public static final int TextAppearance_Compat_Notification = 0x7f0b00f9; public static final int TextAppearance_Compat_Notification_Info = 0x7f0b00fa; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0b00fc; public static final int TextAppearance_Compat_Notification_Time = 0x7f0b00ff; public static final int TextAppearance_Compat_Notification_Title = 0x7f0b0101; public static final int Widget_Compat_NotificationActionContainer = 0x7f0b016a; public static final int Widget_Compat_NotificationActionText = 0x7f0b016b; } public static final class styleable { public static final int[] FontFamily = { 0x7f020077, 0x7f020078, 0x7f020079, 0x7f02007a, 0x7f02007b, 0x7f02007c }; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] FontFamilyFont = { 0x7f020075, 0x7f02007d, 0x7f02007e }; public static final int FontFamilyFont_font = 0; public static final int FontFamilyFont_fontStyle = 1; public static final int FontFamilyFont_fontWeight = 2; } }
[ "lorence@enclave.vn" ]
lorence@enclave.vn
02487e35a869daf67ce96e88818e203fff221d8a
777d41c7dc3c04b17dfcb2c72c1328ea33d74c98
/DongCi_Android/app/src/main/java/com/wmlive/hhvideo/heihei/beans/immessage/MessageContent.java
d123a65addc7bc8bca20953164741ab3d188c7ca
[]
no_license
foryoung2018/videoedit
00fc132c688be6565efb373cae4564874f61d52a
7a316996ce1be0f08dbf4c4383da2c091447c183
refs/heads/master
2020-04-08T04:56:42.930063
2018-11-25T14:27:43
2018-11-25T14:27:43
159,038,966
2
0
null
null
null
null
UTF-8
Java
false
false
1,093
java
package com.wmlive.hhvideo.heihei.beans.immessage; /** * Created by lsq on 2/1/2018.6:32 PM * * @author lsq * @describe 添加描述 */ public class MessageContent { public String desc; public String title; public String text; public String icon; public MessageJump jump; public MessageExtra extr_param; // audio public String audio; public String sign; // 文件签名 public int length; public String local_path; //本地路径 public String local_msg_id; //本地消息Id @Override public String toString() { return "MessageContent{" + "desc='" + desc + '\'' + ", title='" + title + '\'' + ", text='" + text + '\'' + ", icon='" + icon + '\'' + ", jump=" + jump + ", extr_param=" + extr_param + ", audio='" + audio + '\'' + ", length=" + length + ", local_path='" + local_path + '\'' + ", local_msg_id='" + local_msg_id + '\'' + '}'; } }
[ "1184394624@qq.com" ]
1184394624@qq.com
f6f6b129e5aef82d1eae84371ecd477d3a6567a7
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/java-design-patterns/learning/3709/ServiceType.java
b09896565c3c3b41ef14d0f981071347db707e70
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,274
java
/** * The MIT License * Copyright (c) 2014-2016 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.iluwatar.business.delegate; /** * * Enumeration for service types * */public enum ServiceType { EJB, JMS; }
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com
bee142771e6d64bd0afdd762570ba678e4e150c6
ffee96d08ef70627194dcb8b73a2fdabbe6aa4f9
/src/main/java/de/ropemc/api/wrapper/net/minecraft/client/gui/GuiScreenResourcePacks.java
e3ef3cf9bbb0280cb0b38d90fcb7c96376851142
[ "MIT" ]
permissive
RopeMC/RopeMC
0db2b4dd78a1842708de69e2455b7e0f60e9b9c9
b464fb9a67e410355a6a498f2d6a2d3b0d022b3d
refs/heads/master
2021-07-09T18:04:37.632199
2019-01-02T21:48:17
2019-01-02T21:48:17
103,042,886
11
1
MIT
2018-11-24T16:06:35
2017-09-10T16:07:39
Java
UTF-8
Java
false
false
796
java
package de.ropemc.api.wrapper.net.minecraft.client.gui; import java.util.List; import de.ropemc.api.wrapper.net.minecraft.client.resources.ResourcePackListEntry; import de.ropemc.api.wrapper.WrappedClass; @WrappedClass("net.minecraft.client.gui.GuiScreenResourcePacks") public interface GuiScreenResourcePacks { void actionPerformed(GuiButton var0); void drawScreen(int var0, int var1, float var2); List getAvailableResourcePacks(); List getListContaining(ResourcePackListEntry var0); List getSelectedResourcePacks(); void handleMouseInput(); boolean hasResourcePackEntry(ResourcePackListEntry var0); void initGui(); void markChanged(); void mouseClicked(int var0, int var1, int var2); void mouseReleased(int var0, int var1, int var2); }
[ "jan@bebendorf.eu" ]
jan@bebendorf.eu
e039b340439932aea844a4b3b37ca15e21102035
13cbb329807224bd736ff0ac38fd731eb6739389
/jdk/management/resource/internal/inst/SocketRMHooks.java
2d6fc0e7c5039ea24d06ae5029f035e13d291640
[]
no_license
ZhipingLi/rt-source
5e2537ed5f25d9ba9a0f8009ff8eeca33930564c
1a70a036a07b2c6b8a2aac6f71964192c89aae3c
refs/heads/master
2023-07-14T15:00:33.100256
2021-09-01T04:49:04
2021-09-01T04:49:04
401,933,858
0
0
null
null
null
null
UTF-8
Java
false
false
4,941
java
package jdk.management.resource.internal.inst; import java.io.FileDescriptor; import java.io.IOException; import java.net.InetAddress; import java.net.SocketAddress; import java.net.SocketOptions; import jdk.internal.instrumentation.InstrumentationMethod; import jdk.internal.instrumentation.InstrumentationTarget; import jdk.internal.instrumentation.TypeMapping; import jdk.management.resource.ResourceRequest; import jdk.management.resource.ResourceRequestDeniedException; import jdk.management.resource.internal.ApproverGroup; import jdk.management.resource.internal.ResourceIdImpl; import sun.misc.JavaIOFileDescriptorAccess; import sun.misc.SharedSecrets; @InstrumentationTarget("java.net.Socket") @TypeMapping(from = "jdk.management.resource.internal.inst.SocketRMHooks$SocketImpl", to = "java.net.SocketImpl") public final class SocketRMHooks { private boolean created = false; SocketImpl impl; public InetAddress getLocalAddress() { return getLocalAddress(); } @InstrumentationMethod public void bind(SocketAddress paramSocketAddress) throws IOException { resourceIdImpl = null; resourceRequest = null; l = 0L; if (!isBound()) { resourceIdImpl = ResourceIdImpl.of(paramSocketAddress); resourceRequest = ApproverGroup.SOCKET_OPEN_GROUP.getApprover(this); try { l = resourceRequest.request(1L, resourceIdImpl); if (l < 1L) throw new IOException("Resource limited: too many open sockets"); } catch (ResourceRequestDeniedException resourceRequestDeniedException) { throw new IOException("Resource limited: too many open sockets", resourceRequestDeniedException); } } bool = false; try { bind(paramSocketAddress); bool = true; } finally { if (resourceRequest != null) resourceRequest.request(-(l - bool), resourceIdImpl); } } @InstrumentationMethod public boolean isBound() { return isBound(); } @InstrumentationMethod public void connect(SocketAddress paramSocketAddress, int paramInt) throws IOException { resourceIdImpl = null; resourceRequest = null; l = 0L; if (!isBound()) { resourceIdImpl = ResourceIdImpl.of(getLocalAddress()); resourceRequest = ApproverGroup.SOCKET_OPEN_GROUP.getApprover(this); try { l = resourceRequest.request(1L, resourceIdImpl); if (l < 1L) throw new IOException("Resource limited: too many open sockets"); } catch (ResourceRequestDeniedException resourceRequestDeniedException) { throw new IOException("Resource limited: too many open sockets", resourceRequestDeniedException); } } bool = false; try { connect(paramSocketAddress, paramInt); bool = true; } finally { if (resourceRequest != null) resourceRequest.request(-(l - bool), resourceIdImpl); } } @InstrumentationMethod final void postAccept() { long l1; postAccept(); FileDescriptor fileDescriptor = this.impl.getFileDescriptor(); JavaIOFileDescriptorAccess javaIOFileDescriptorAccess = SharedSecrets.getJavaIOFileDescriptorAccess(); try { l1 = javaIOFileDescriptorAccess.getHandle(fileDescriptor); if (l1 == -1L) l1 = javaIOFileDescriptorAccess.get(fileDescriptor); } catch (UnsupportedOperationException unsupportedOperationException) { l1 = javaIOFileDescriptorAccess.get(fileDescriptor); } resourceIdImpl = ResourceIdImpl.of(Long.valueOf(l1)); resourceRequest = ApproverGroup.FILEDESCRIPTOR_OPEN_GROUP.getApprover(fileDescriptor); l2 = 0L; bool = false; try { l2 = resourceRequest.request(1L, resourceIdImpl); if (l2 < 1L) throw new ResourceRequestDeniedException("Resource limited: too many open file descriptors"); bool = true; } finally { if (!bool) { try { close(); } catch (IOException iOException) {} resourceRequest.request(-Math.max(0L, l2 - 1L), resourceIdImpl); } } } @InstrumentationMethod public boolean isClosed() { return isClosed(); } @InstrumentationMethod public void close() { if (isClosed()) return; bool = isBound(); inetAddress = getLocalAddress(); try { close(); } finally { if (bool) { ResourceIdImpl resourceIdImpl = ResourceIdImpl.of(inetAddress); ResourceRequest resourceRequest = ApproverGroup.SOCKET_OPEN_GROUP.getApprover(this); resourceRequest.request(-1L, resourceIdImpl); } } } abstract class SocketImpl implements SocketOptions { protected FileDescriptor fd; protected FileDescriptor getFileDescriptor() { return this.fd; } } } /* Location: D:\software\jd-gui\jd-gui-windows-1.6.3\rt.jar!\jdk\management\resource\internal\inst\SocketRMHooks.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.0.7 */
[ "michael__lee@yeah.net" ]
michael__lee@yeah.net
f5c31c28aa9624571ac965f057e0660d9f1eeb84
f5aacd77191465d923ad982adaf32460737f94d2
/smxknife/smxknife-msb/smxknife-msb-sysio/src/main/java/com/smxknife/msb/sysio/system/io/NettyClient.java
8826454fa164c574e0ae1933a47586f6ae8480ca
[]
no_license
smxknife/smxknife
a0a87b5624aaa2bf3c82b05f2180a79bcbc65170
f6f3ed40bb998d9aea8cba4936ccfa738e4a35b9
refs/heads/master
2023-03-15T03:43:16.570846
2022-04-05T06:07:47
2022-04-05T06:07:47
122,691,839
1
0
null
2023-03-08T17:25:34
2018-02-24T01:46:19
Java
UTF-8
Java
false
false
1,705
java
package com.smxknife.msb.sysio.system.io; import io.netty.bootstrap.Bootstrap; import io.netty.buffer.ByteBuf; import io.netty.buffer.PooledByteBufAllocator; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioSocketChannel; /** * @author: 马士兵教育 * @create: 2020-04-26 15:59 */ public class NettyClient { public static void main(String[] args) { try { NioEventLoopGroup worker = new NioEventLoopGroup(); Bootstrap boot = new Bootstrap(); boot.group(worker) .channel(NioSocketChannel.class) .remoteAddress("192.168.150.11", 9090) .handler(new ChannelInitializer<SocketChannel>() { @Override protected void initChannel(SocketChannel sc) throws Exception { System.out.println("初始化client"); ChannelPipeline p = sc.pipeline(); p.addLast(new MyInbound()); } }); ChannelFuture conn = boot.connect().sync(); Channel client = conn.channel(); System.out.println(client); ByteBuf byteBuf = Unpooled.copiedBuffer("hello world".getBytes()); client.writeAndFlush(byteBuf).sync(); } catch (InterruptedException e) { e.printStackTrace(); } } }
[ "2323937771@qq.com" ]
2323937771@qq.com
d8490d5d6e583b8d760b0ab737ee9f57b556cfb8
6850ba9ed1a130178062dc1ee412878aaebba2ea
/server/member/member-api/src/main/java/com/frogsing/member/IUserService.java
340b8aa490025c0a5037242b0de5be8a1c6d808c
[]
no_license
HaoBingFuMengyan/supervise
63dfe5dcb08ee3d32ed2ca7131731a07f86665e9
e4a14e4faac67e3f54de5fba4a8c7fea95ea78e9
refs/heads/master
2022-12-20T23:45:18.874445
2019-09-29T02:57:13
2019-09-29T02:57:13
207,257,773
0
1
null
2022-12-16T11:54:20
2019-09-09T08:09:40
JavaScript
UTF-8
Java
false
false
4,704
java
package com.frogsing.member; import com.frogsing.heart.web.login.ILoginUser; import com.frogsing.member.po.Actor; import com.frogsing.member.po.Member; import com.frogsing.member.po.User; import com.frogsing.member.vo.TRegister; import com.frogsing.member.vo.UserActorVo; import javax.frogsing.exception.ServiceException; import java.util.Collection; import java.util.Date; import java.util.List; public interface IUserService { /** * 新增用户 * @param obj * @param user * @return */ User newUser(User obj,ILoginUser user); /** * 修改 * @param obj * @param user * @return */ User modifyUser(User obj,ILoginUser user); User updateSpasswordAndSmobile(String id,String smobile,String spassword); User updateSpassword(String id, String spassword, ILoginUser user); Member findBySmemberid(String smemberid); List<Member> findUserByMemberName(String sMemberid, String MemberName) throws ServiceException; /** * * UpdateUserSmobile */ void UpdateUserSmobile(String id, String smobile); /** * * UpdateUserSpassword */ void UpdateUserSpassword(String susername, String spassword); void Save(User obj, String id, String[] role,ILoginUser u); void resetRegisterPass(String id); /** * 管理员禁用或启用用户 * * @param id * @param opname * @param isAble */ void deleteuser(String id, String opname, int isAble); /** * * @param userid * @param newpassword */ void passwd(String userid, String newpassword); /** * 已选中的角色 * * @param userid * @return */ List<Actor> findCheckedActor(String userid); /** * 未选中的角色 * * @param userid * @return */ List<Actor> findNotCheckedActor(String userid); /** * 保存用户角色 * * @param userid * @param checkRoleId */ void useractorsave(String userid, String checkRoleId); /** * 保存销客 * * @param user * @param m */ void salesmanSave(User user, Member m,ILoginUser u); /** * 会员注册 * * @return * @throws Exception */ Member register(TRegister vo) throws Exception; void CheckWord(TRegister r); /** * 验证手机号格式及是否重复 * * @param smobile */ void CheckWord(String smobile); /** * 添加交易员 * * @param obj */ void addUser(User obj,ILoginUser u); /** * 前台修改交易员信息 * * @param user */ void updateUser(User user,ILoginUser u); List<Actor> findDefaultRole(int authType, int memberType, String smemberid); List<UserActorVo> userRoleList(int authType, int roleType, String smemberid, String userid); User findAdminByMember(String memberId) throws ServiceException; List<User> findByMember(String memberId) throws ServiceException; int sendSiteMsg(String title, String msg, User o); User findByUser(String userName) throws ServiceException; void adminUpdatePassword(String newpassword, String userid, String memberid, int type); void checkTradePasswd(String userId, String password) throws ServiceException; /** * 根据类型修改用户的密码 * * @param oldpassord * 旧密码 * @param newpassword * @param userid * @param memberid * @param type * 0 登录密码 1 交易密码 */ void updatePassword(String oldpassord, String newpassword, String userid, String memberid, int type); // 设置交易密码 void firstTradePwd(String userid, String stradepassword); void findPassword(String userName, String smobile); void findTradePassword(String id); boolean isUniqueUser(String susername); void BaseDelete(String[] checkboxId) throws ServiceException; void newPassword(String newpassword, String userid); User findnewPassword(String userName, String smobile); boolean findBySusernameAndSmobile(String susername, String smobile); long getCurrMonthCount(String firstday, String lastday); User findBySusernameOrSmobile(String susername, String smobile); User findBySusername(String susername); Collection<String> getAllPurview(int membertype, int authtype, String memberId); void updateLoginTime(String id, Date currentDateTime); void doLoginFail(String username,Date currentDateTime); Collection<String> getAllPurview(String id); Collection<String> getAllSpecialPurview(int membertype, String memberId); User fetchUser(String id); User findOne(String id); void saveUser(String id,User user); User findOneBySmobile(String smobile); void tradepassword(String suserid,String oldpwd,String newpwd); User getBisadmin(String smemberid); List<User> findUserByRight(String right); List<User> findUserByRole(String role); void updateTerminal(String userid,int terminaltype,String clientid); }
[ "haobingfu@frogsing.com" ]
haobingfu@frogsing.com
e62c916c24ebe95247d9badb66a62f521e185acd
7ab26d4bc788b5d437cb69992ea94b56a4899b6c
/jPSICS/src/org/catacomb/interlish/structure/GridDataSource.java
c6b8577e4a98afe29b10535f55e0884b020909c6
[]
no_license
MattNolanLab/PSICS
d8e777d9a18e332231de244c23431b34c655cfa5
68b4f17e9aef2e6c7ca3c23da2a175eeaeb7251f
refs/heads/master
2021-05-27T02:01:24.747112
2014-05-13T16:19:21
2014-05-13T16:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
230
java
package org.catacomb.interlish.structure; public interface GridDataSource { String getName(); String[] getLineNames(); int getNPoint(); int getNLine(); double[][] getLines(); int getHighlightIndex(); }
[ "robert@textensor.com" ]
robert@textensor.com
1e48ba9b48a770c96730927a86822d450e38907f
5c372eabc237b430dbd1d095497d2a8e8a74381e
/testData/after/builder/Singular/Generic/Util/Collection/SingularList.java
1d75e9b6d215cd590d3fcc25a34c553ebc34a65b
[ "BSD-3-Clause" ]
permissive
ritcat/lombok-intellij-plugin
f45fe33799d1308095c50b75403efad6ca5a9668
28b661acee7e73b9346b67c1a9c45d1427dcb913
refs/heads/master
2020-04-03T02:34:05.637960
2018-10-24T18:40:05
2018-10-24T18:40:05
154,959,825
1
0
BSD-3-Clause
2018-10-27T12:01:05
2018-10-27T12:01:04
null
UTF-8
Java
false
false
6,924
java
// Generated by delombok at Sat Jun 11 16:42:02 CEST 2016 import java.util.List; public class SingularList<T> { private List rawTypes; private List<Integer> integers; private List<T> generics; private List<? extends Number> extendsGenerics; @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") SingularList(final List rawTypes, final List<Integer> integers, final List<T> generics, final List<? extends Number> extendsGenerics) { this.rawTypes = rawTypes; this.integers = integers; this.generics = generics; this.extendsGenerics = extendsGenerics; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public static class SingularListBuilder<T> { @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") private java.util.ArrayList<java.lang.Object> rawTypes; @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") private java.util.ArrayList<Integer> integers; @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") private java.util.ArrayList<T> generics; @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") private java.util.ArrayList<Number> extendsGenerics; @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") SingularListBuilder() { } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> rawType(final java.lang.Object rawType) { if (this.rawTypes == null) this.rawTypes = new java.util.ArrayList<java.lang.Object>(); this.rawTypes.add(rawType); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> rawTypes(final java.util.Collection<?> rawTypes) { if (this.rawTypes == null) this.rawTypes = new java.util.ArrayList<java.lang.Object>(); this.rawTypes.addAll(rawTypes); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> clearRawTypes() { if (this.rawTypes != null) this.rawTypes.clear(); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> integer(final Integer integer) { if (this.integers == null) this.integers = new java.util.ArrayList<Integer>(); this.integers.add(integer); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> integers(final java.util.Collection<? extends Integer> integers) { if (this.integers == null) this.integers = new java.util.ArrayList<Integer>(); this.integers.addAll(integers); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> clearIntegers() { if (this.integers != null) this.integers.clear(); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> generic(final T generic) { if (this.generics == null) this.generics = new java.util.ArrayList<T>(); this.generics.add(generic); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> generics(final java.util.Collection<? extends T> generics) { if (this.generics == null) this.generics = new java.util.ArrayList<T>(); this.generics.addAll(generics); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> clearGenerics() { if (this.generics != null) this.generics.clear(); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> extendsGeneric(final Number extendsGeneric) { if (this.extendsGenerics == null) this.extendsGenerics = new java.util.ArrayList<Number>(); this.extendsGenerics.add(extendsGeneric); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> extendsGenerics(final java.util.Collection<? extends Number> extendsGenerics) { if (this.extendsGenerics == null) this.extendsGenerics = new java.util.ArrayList<Number>(); this.extendsGenerics.addAll(extendsGenerics); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularListBuilder<T> clearExtendsGenerics() { if (this.extendsGenerics != null) this.extendsGenerics.clear(); return this; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public SingularList<T> build() { java.util.List<java.lang.Object> rawTypes; switch (this.rawTypes == null ? 0 : this.rawTypes.size()) { case 0: rawTypes = java.util.Collections.emptyList(); break; case 1: rawTypes = java.util.Collections.singletonList(this.rawTypes.get(0)); break; default: rawTypes = java.util.Collections.unmodifiableList(new java.util.ArrayList<java.lang.Object>(this.rawTypes)); } java.util.List<Integer> integers; switch (this.integers == null ? 0 : this.integers.size()) { case 0: integers = java.util.Collections.emptyList(); break; case 1: integers = java.util.Collections.singletonList(this.integers.get(0)); break; default: integers = java.util.Collections.unmodifiableList(new java.util.ArrayList<Integer>(this.integers)); } java.util.List<T> generics; switch (this.generics == null ? 0 : this.generics.size()) { case 0: generics = java.util.Collections.emptyList(); break; case 1: generics = java.util.Collections.singletonList(this.generics.get(0)); break; default: generics = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.generics)); } java.util.List<Number> extendsGenerics; switch (this.extendsGenerics == null ? 0 : this.extendsGenerics.size()) { case 0: extendsGenerics = java.util.Collections.emptyList(); break; case 1: extendsGenerics = java.util.Collections.singletonList(this.extendsGenerics.get(0)); break; default: extendsGenerics = java.util.Collections.unmodifiableList(new java.util.ArrayList<Number>(this.extendsGenerics)); } return new SingularList<T>(rawTypes, integers, generics, extendsGenerics); } @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public java.lang.String toString() { return "SingularList.SingularListBuilder(rawTypes=" + this.rawTypes + ", integers=" + this.integers + ", generics=" + this.generics + ", extendsGenerics=" + this.extendsGenerics + ")"; } } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public static <T> SingularListBuilder<T> builder() { return new SingularListBuilder<T>(); } }
[ "michail@plushnikov.de" ]
michail@plushnikov.de
259d4ce3a58079a3efe320f64dd51f67f934189c
d3a370636327480fc94f440cb2457abd77187b71
/src/main/java/com/atlassian/jira/rest/client/model/SystemAvatars.java
4f669508990a0397648f83f8fcb6bbd9e7fcbd77
[]
no_license
rajcarthy/jira-google-api-client
ebbf31924e881a77c6b794437139db345c496dcf
ec2804422fa660d34de8dbe800b53d4e57a685c5
refs/heads/master
2023-02-14T13:56:45.824124
2021-01-01T01:48:46
2021-01-01T01:48:46
325,901,356
0
0
null
null
null
null
UTF-8
Java
false
false
2,633
java
/* * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.atlassian.jira.rest.client.model; import java.util.Objects; import java.util.Arrays; import com.atlassian.jira.rest.client.model.Avatar; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; /** * List of system avatars. */ @ApiModel(description = "List of system avatars.") @JsonPropertyOrder({ SystemAvatars.JSON_PROPERTY_SYSTEM }) @JsonTypeName("SystemAvatars") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-31T17:44:39.790417-08:00[America/Los_Angeles]") public class SystemAvatars { public static final String JSON_PROPERTY_SYSTEM = "system"; private List<Avatar> system = null; /** * A list of avatar details. * @return system **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of avatar details.") @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<Avatar> getSystem() { return system; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SystemAvatars systemAvatars = (SystemAvatars) o; return Objects.equals(this.system, systemAvatars.system); } @Override public int hashCode() { return Objects.hash(system); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SystemAvatars {\n"); sb.append(" system: ").append(toIndentedString(system)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "uyscuti@localhost.localdomain" ]
uyscuti@localhost.localdomain
6a3c4edacf2c78b47d6b4b5bdaacb29dc3beda58
cc28075c28a05af4a45d712d246a8983ed38786e
/org/omg/DynamicAny/_DynAnyFactoryStub.java
1697ce78a2178d155bd597e6214940f6b38ae2e3
[]
no_license
lionhuo/jdk8u202
cabfaa57f37f149649ccf329812cf5a1dc3ad207
f03d6563dd4655b0491fe2f58a6cc16505caacbf
refs/heads/master
2020-04-22T19:38:29.464485
2019-02-14T02:59:51
2019-02-14T02:59:51
170,614,337
0
0
null
null
null
null
UTF-8
Java
false
false
6,798
java
package org.omg.DynamicAny; /** * org/omg/DynamicAny/_DynAnyFactoryStub.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from /HUDSON/workspace/8-2-build-linux-amd64/jdk8u202/12319/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl * Saturday, December 15, 2018 12:40:35 PM PST */ /** * DynAny objects can be created by invoking operations on the DynAnyFactory object. * Generally there are only two ways to create a DynAny object: * <UL> * <LI>invoking an operation on an existing DynAny object * <LI>invoking an operation on a DynAnyFactory object * </UL> * A constructed DynAny object supports operations that enable the creation of new DynAny * objects encapsulating access to the value of some constituent. * DynAny objects also support the copy operation for creating new DynAny objects. * A reference to the DynAnyFactory object is obtained by calling ORB.resolve_initial_references() * with the identifier parameter set to the string constant "DynAnyFactory". * <P>Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any() * as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed * to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference. * <P>Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(), * passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of * the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of * invoking operations on the resulting object. Finally, the to_any operation can be invoked * to create an any value from the constructed DynAny. */ public class _DynAnyFactoryStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.DynamicAny.DynAnyFactory { final public static java.lang.Class _opsClass = DynAnyFactoryOperations.class; /** * Creates a new DynAny object from an any value. * A copy of the TypeCode associated with the any value is assigned to the resulting DynAny object. * The value associated with the DynAny object is a copy of the value in the original any. * The current position of the created DynAny is set to zero if the passed value has components, * to -1 otherwise * * @exception InconsistentTypeCode if value has a TypeCode with a TCKind of tk_Principal, * tk_native, or tk_abstract_interface */ public org.omg.DynamicAny.DynAny create_dyn_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("create_dyn_any", _opsClass); DynAnyFactoryOperations $self = (DynAnyFactoryOperations) $so.servant; try { return $self.create_dyn_any (value); } finally { _servant_postinvoke ($so); } } // create_dyn_any /** * Creates a DynAny from a TypeCode. Depending on the TypeCode, the created object may be of type DynAny, * or one of its derived types, such as DynStruct. The returned reference can be narrowed to the derived type. * In all cases, a DynAny constructed from a TypeCode has an initial default value. * The default values of basic types are: * <UL> * <LI>false for boolean * <LI>zero for numeric types * <LI>zero for types octet, char, and wchar * <LI>the empty string for string and wstring * <LI>null for object references * <LI>a type code with a TCKind value of tk_null for type codes * <LI>for any values, an any containing a type code with a TCKind value of tk_null type and no value * </UL> * For complex types, creation of the corresponding DynAny assigns a default value as follows: * <UL> * <LI>For DynSequence it sets the current position to -1 and creates an empty sequence. * <LI>For DynEnum it sets the current position to -1 and sets the value of the enumerator * to the first enumerator value indicated by the TypeCode. * <LI>For DynFixed it sets the current position to -1 and sets the value zero. * <LI>For DynStruct it sets the current position to -1 for empty exceptions * and to zero for all other TypeCodes. The members (if any) are (recursively) initialized * to their default values. * <LI>For DynArray sets the current position to zero and (recursively) initializes elements * to their default value. * <LI>For DynUnion sets the current position to zero. The discriminator value is set * to a value consistent with the first named member of the union. That member is activated and (recursively) * initialized to its default value. * <LI>For DynValue and DynValueBox it initializes to a null value. * </UL> */ public org.omg.DynamicAny.DynAny create_dyn_any_from_type_code (org.omg.CORBA.TypeCode type) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("create_dyn_any_from_type_code", _opsClass); DynAnyFactoryOperations $self = (DynAnyFactoryOperations) $so.servant; try { return $self.create_dyn_any_from_type_code (type); } finally { _servant_postinvoke ($so); } } // create_dyn_any_from_type_code // Type-specific CORBA::Object operations private static String[] __ids = { "IDL:omg.org/DynamicAny/DynAnyFactory:1.0"}; public String[] _ids () { return (String[])__ids.clone (); } private void readObject (java.io.ObjectInputStream s) throws java.io.IOException { String str = s.readUTF (); String[] args = null; java.util.Properties props = null; org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props); try { org.omg.CORBA.Object obj = orb.string_to_object (str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); _set_delegate (delegate); } finally { orb.destroy() ; } } private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException { String[] args = null; java.util.Properties props = null; org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props); try { String str = orb.object_to_string (this); s.writeUTF (str); } finally { orb.destroy() ; } } } // class _DynAnyFactoryStub
[ "200583820@qq.com" ]
200583820@qq.com
bc095b228f1ed644bdf1da2c95f469d4392704be
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/java-vertx/generated/src/main/java/org/openapitools/server/api/model/ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.java
9222527ff691d8c849c8c978b0846b9fa4b8d684
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Java
false
false
4,425
java
package org.openapitools.server.api.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import org.openapitools.server.api.model.ComDayCqRewriterLinkcheckerImplLinkCheckerImplProperties; @JsonInclude(JsonInclude.Include.NON_NULL) public class ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo { private String pid = null; private String title = null; private String description = null; private ComDayCqRewriterLinkcheckerImplLinkCheckerImplProperties properties = null; private String bundleLocation = null; private String serviceLocation = null; public ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo () { } public ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo (String pid, String title, String description, ComDayCqRewriterLinkcheckerImplLinkCheckerImplProperties properties, String bundleLocation, String serviceLocation) { this.pid = pid; this.title = title; this.description = description; this.properties = properties; this.bundleLocation = bundleLocation; this.serviceLocation = serviceLocation; } @JsonProperty("pid") public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } @JsonProperty("title") public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } @JsonProperty("description") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @JsonProperty("properties") public ComDayCqRewriterLinkcheckerImplLinkCheckerImplProperties getProperties() { return properties; } public void setProperties(ComDayCqRewriterLinkcheckerImplLinkCheckerImplProperties properties) { this.properties = properties; } @JsonProperty("bundle_location") public String getBundleLocation() { return bundleLocation; } public void setBundleLocation(String bundleLocation) { this.bundleLocation = bundleLocation; } @JsonProperty("service_location") public String getServiceLocation() { return serviceLocation; } public void setServiceLocation(String serviceLocation) { this.serviceLocation = serviceLocation; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo = (ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo) o; return Objects.equals(pid, comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.pid) && Objects.equals(title, comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.title) && Objects.equals(description, comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.description) && Objects.equals(properties, comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.properties) && Objects.equals(bundleLocation, comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.bundleLocation) && Objects.equals(serviceLocation, comDayCqRewriterLinkcheckerImplLinkCheckerImplInfo.serviceLocation); } @Override public int hashCode() { return Objects.hash(pid, title, description, properties, bundleLocation, serviceLocation); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ComDayCqRewriterLinkcheckerImplLinkCheckerImplInfo {\n"); sb.append(" pid: ").append(toIndentedString(pid)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append(" bundleLocation: ").append(toIndentedString(bundleLocation)).append("\n"); sb.append(" serviceLocation: ").append(toIndentedString(serviceLocation)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "cliffano@gmail.com" ]
cliffano@gmail.com
9a469c282bcfc3c601588dfc9d71a49dc5d57f75
32f38cd53372ba374c6dab6cc27af78f0a1b0190
/app/src/main/java/com/alipay/inside/mobile/framework/service/annotation/CheckLogin.java
79d9c9ec71590b4c01fc68a6151dd1be57599b0f
[]
no_license
shuixi2013/AmapCode
9ea7aefb42e0413f348f238f0721c93245f4eac6
1a3a8d4dddfcc5439df8df570000cca12b15186a
refs/heads/master
2023-06-06T23:08:57.391040
2019-08-29T04:36:02
2019-08-29T04:36:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
363
java
package com.alipay.inside.mobile.framework.service.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface CheckLogin { boolean allowBack() default true; }
[ "hubert.yang@nf-3.com" ]
hubert.yang@nf-3.com
c9464d8116633d0916002d099719640d5a25c234
a53e7fbadeef5423a43bee9178e247a5abbaa48d
/src/main/java/lk/sahan/dev/repository/ItemRepository.java
963dda00e6be7e4110e74b0a50366ce7dc239a42
[]
no_license
sahan1995/Point-of-Sale-Back-End
7cb9f07083d307aef9cfffb0b0eec0a619f87aaa
8f00ae50d1e801d261feef0843f3a1a7f79f599c
refs/heads/master
2020-04-29T19:07:00.514837
2019-03-18T18:15:34
2019-03-18T18:15:34
176,344,386
1
0
null
null
null
null
UTF-8
Java
false
false
201
java
package lk.sahan.dev.repository; import lk.sahan.dev.entity.Item; import org.springframework.data.jpa.repository.JpaRepository; public interface ItemRepository extends JpaRepository<Item,String> { }
[ "sahanrajakaruna001@gmail.com" ]
sahanrajakaruna001@gmail.com
bb71c376ac870bb5657b0afbf4f88813b23897f4
24c0bf4d222a1792566540966b00d58547908447
/server/src/test/java/com/juma/tgm/waybill/service/impl/TruckRequireServiceImplTest.java
6df24dac5553d0f5b2eba60a37dd02494aaf53eb
[]
no_license
SunGitShine/tgm-server
6c97818fa6f2bc0bf88634759288cbded27031e0
c5840a256b4c979187e60cbf4044ded95453f9be
refs/heads/master
2022-07-17T06:35:43.822405
2019-08-23T02:00:08
2019-08-23T02:00:08
203,904,756
0
3
null
2022-06-29T17:35:42
2019-08-23T01:57:47
Java
UTF-8
Java
false
false
744
java
package com.juma.tgm.waybill.service.impl; import javax.annotation.Resource; import org.testng.annotations.Test; import com.juma.tgm.waybill.service.TruckRequireService; import testng.BaseTestNGTest; /** * @ClassName TruckRequireServiceImplTest.java * @Description 请填写注释... * @author Libin.Wei * @Date 2018年4月13日 下午4:12:05 * @version 1.0.0 * @Copyright 2016 www.jumapeisong.com Inc. All rights reserved. */ public class TruckRequireServiceImplTest extends BaseTestNGTest { @Resource private TruckRequireService truckRequireService; @Test public void getTruckRequire() { String string = truckRequireService.getTruckRequire(null, 149309); System.out.println(string); } }
[ "xieqiang02@jumapeisong.com" ]
xieqiang02@jumapeisong.com
774cb06bab6d46cde10647e2894b7b5af0ac7464
80b292849056cb4bf3f8f76f127b06aa376fdaaa
/java/game/tera/gameserver/network/clientpackets/C_Request_Guild_List.java
0500b85ab08874054b69b4425585ab0a61aaa796
[]
no_license
unnamed44/tera_2805
70f099c4b29a8e8e19638d9b80015d0f3560b66d
6c5be9fc79157b44058c816dd8f566b7cf7eea0d
refs/heads/master
2020-04-28T04:06:36.652737
2019-03-11T01:26:47
2019-03-11T01:26:47
174,964,999
2
0
null
2019-03-11T09:15:36
2019-03-11T09:15:35
null
UTF-8
Java
false
false
399
java
package tera.gameserver.network.clientpackets; import tera.gameserver.network.serverpackets.S_Reply_Guild_List; public class C_Request_Guild_List extends ClientPacket { private int page; @Override protected void readImpl() { page = readInt(); } @Override protected void runImpl() { getOwner().sendPacket(S_Reply_Guild_List.getInstance(page),true); } }
[ "171296@supinfo.com" ]
171296@supinfo.com
2d7da26945ba1be9e69bca0cfa79c2e9cd58a1f5
2e53802a8c4e0ed6408b6b0530bc75e5e05c5c93
/src/main/java/br/com/agenda/controller/ContactController.java
0137bc9805288e68ca6466c96373ed2fe2a739c4
[]
no_license
fernandoWPF/agenda
d88eee583ffa31d0eee95736aa99fe28cd76fd2a
a719c05c8c9a2ee0a833007af532fadbcbe540ad
refs/heads/master
2020-03-28T11:25:15.550932
2018-09-10T19:49:26
2018-09-10T19:49:26
148,210,857
0
0
null
null
null
null
UTF-8
Java
false
false
939
java
package br.com.agenda.controller; import java.util.List; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import br.com.agenda.dto.ContactRequestDTO; import br.com.agenda.dto.ContactResponseDTO; import br.com.agenda.service.ContactService; @RestController public class ContactController { @Autowired private ContactService service; @PostMapping(value = "/api/v1/find", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public @ResponseBody List<ContactResponseDTO> findByName(@Valid @RequestBody ContactRequestDTO request){ return service.findByName(request); } }
[ "=" ]
=
8f72d9e85574fa3399fd7dc866cf9914918d961d
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/24/24_b644bdd18c84815d71127536b733939f41d48a8d/ComputerSet/24_b644bdd18c84815d71127536b733939f41d48a8d_ComputerSet_t.java
3049c6c4edc06e19f6ef8a10b6fd1842ec550062
[]
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,975
java
package hudson.model; import hudson.Util; import hudson.slaves.NodeDescriptor; import hudson.model.Descriptor.FormException; import hudson.node_monitors.NodeMonitor; import org.kohsuke.stapler.QueryParameter; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; import org.kohsuke.stapler.export.Exported; import org.kohsuke.stapler.export.ExportedBean; import javax.servlet.ServletException; import javax.servlet.http.HttpServletResponse; import static javax.servlet.http.HttpServletResponse.SC_BAD_REQUEST; import java.io.IOException; import java.text.ParseException; import java.util.AbstractList; import java.util.ArrayList; import java.util.List; /** * Serves as the top of {@link Computer}s in the URL hierarchy. * <p> * Getter methods are prefixed with '_' to avoid collision with computer names. * * @author Kohsuke Kawaguchi */ @ExportedBean public final class ComputerSet extends AbstractModelObject { private static final List<NodeMonitor> monitors; @Exported public String getDisplayName() { return "nodes"; } public static List<NodeMonitor> get_monitors() { return monitors; } @Exported(name="computer",inline=true) public Computer[] get_all() { return Hudson.getInstance().getComputers(); } /** * Gets all the slave names. */ public List<String> get_slaveNames() { return new AbstractList<String>() { final List<Node> nodes = Hudson.getInstance().getNodes(); public String get(int index) { return nodes.get(index).getNodeName(); } public int size() { return nodes.size(); } }; } /** * Number of total {@link Executor}s that belong to this label that are functioning. * <p> * This excludes executors that belong to offline nodes. */ @Exported public int getTotalExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countExecutors(); } return r; } /** * Number of busy {@link Executor}s that are carrying out some work right now. */ @Exported public int getBusyExecutors() { int r=0; for (Computer c : get_all()) { if(c.isOnline()) r += c.countBusy(); } return r; } /** * {@code getTotalExecutors()-getBusyExecutors()}, plus executors that are being brought online. */ public int getIdleExecutors() { int r=0; for (Computer c : get_all()) if(c.isOnline() || c.isConnecting()) r += c.countIdle(); return r; } public String getSearchUrl() { return "/computers/"; } public Computer getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { return Hudson.getInstance().getComputer(token); } public void do_launchAll(StaplerRequest req, StaplerResponse rsp) throws IOException { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); for(Computer c : get_all()) { if(c.isLaunchSupported()) c.connect(true); } rsp.sendRedirect("."); } /** * Triggers the schedule update now. * * TODO: ajax on the client side to wait until the update completion might be nice. */ public void doUpdateNow( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); for (NodeMonitor nodeMonitor : NodeMonitor.getAll()) { Thread t = nodeMonitor.triggerUpdate(); t.setName(nodeMonitor.getColumnCaption()); } rsp.forwardToPreviousPage(req); } /** * First check point in creating a new slave. */ public synchronized void doCreateItem( StaplerRequest req, StaplerResponse rsp, @QueryParameter("name") String name, @QueryParameter("mode") String mode, @QueryParameter("from") String from ) throws IOException, ServletException { final Hudson app = Hudson.getInstance(); app.checkPermission(Hudson.ADMINISTER); // TODO: new permission? if (checkName(req, rsp, name)) return; if(mode!=null && mode.equals("copy")) { Node src = app.getNode(from); if(src==null) { rsp.setStatus(SC_BAD_REQUEST); if(Util.fixEmpty(from)==null) sendError(Messages.ComputerSet_SpecifySlaveToCopy(),req,rsp); else sendError(Messages.ComputerSet_NoSuchSlave(from),req,rsp); return; } // copy through XStream String xml = Hudson.XSTREAM.toXML(src); Node result = (Node)Hudson.XSTREAM.fromXML(xml); result.setNodeName(name); app.addNode(result); // send the browser to the config page rsp.sendRedirect2(result.getNodeName()+"/configure"); } else { // proceed to step 2 if(mode==null) { rsp.sendError(SC_BAD_REQUEST); return; } req.setAttribute("descriptor", NodeDescriptor.ALL.find(mode)); req.getView(this,"_new.jelly").forward(req,rsp); } } /** * Really creates a new slave. */ public synchronized void doDoCreateItem( StaplerRequest req, StaplerResponse rsp, @QueryParameter("name") String name, @QueryParameter("type") String type ) throws IOException, ServletException { try { final Hudson app = Hudson.getInstance(); app.checkPermission(Hudson.ADMINISTER); // TODO: new permission? if (checkName(req, rsp, name)) return; Node result = NodeDescriptor.ALL.find(type).newInstance(req, req.getSubmittedForm()); app.addNode(result); // take the user back to the slave list top page rsp.sendRedirect2("."); } catch (FormException e) { sendError(e,req,rsp); } } /** * Makes sure that the given name is good as a slave name. */ private boolean checkName(StaplerRequest req, StaplerResponse rsp, String name) throws IOException, ServletException { if(name==null) { rsp.sendError(HttpServletResponse.SC_BAD_REQUEST,"Query parameter 'name' is required"); return true; } name = name.trim(); try { Hudson.checkGoodName(name); } catch (ParseException e) { rsp.setStatus(SC_BAD_REQUEST); sendError(e,req,rsp); return true; } if(Hudson.getInstance().getNode(name)!=null) { rsp.setStatus(SC_BAD_REQUEST); sendError(Messages.ComputerSet_SlaveAlreadyExists(name),req,rsp); return true; } return false; } public Api getApi() { return new Api(this); } /** * Just to force the execution of the static initializer. */ public static void initialize() {} static { // create all instances ArrayList<NodeMonitor> r = new ArrayList<NodeMonitor>(); for (Descriptor<NodeMonitor> d : NodeMonitor.LIST) try { r.add(d.newInstance(null,null)); } catch (FormException e) { // so far impossible. TODO: report } monitors = r; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
27c7b41afd72626d63fb9cc04b003740c3fb60eb
b06621c1039edd715d3323256faea8ba10e8e55e
/src/test/java/com/prestashop/step_definitions/Hooks.java
54c4d448f86f6d1bdd6aa95b392f71ab52b8b71d
[]
no_license
filizcamci/cucumber-acceptance-tests
3e6cdef99ede655eb67357df3237f6dd15f3a265
f261c103f4a471972c1173c5d9c3d63444e2947b
refs/heads/master
2020-03-25T07:29:17.813514
2018-08-04T20:38:01
2018-08-04T20:38:01
143,563,714
1
0
null
null
null
null
UTF-8
Java
false
false
1,236
java
package com.prestashop.step_definitions; import java.util.concurrent.TimeUnit; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import com.prestashop.utilities.ConfigurationReader; import com.prestashop.utilities.Driver; import cucumber.api.Scenario; import cucumber.api.java.After; import cucumber.api.java.Before; public class Hooks { @Before public void setUp() { Driver.getDriver().manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Driver.getDriver().manage().window().fullscreen(); Driver.getDriver().get(ConfigurationReader.getProperty("url")); } @Before("@amazon_check") public void setUpAmazon() { Driver.getDriver().manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); Driver.getDriver().manage().window().fullscreen(); Driver.getDriver().get("http://amazon.com"); } @After public void tearDown(Scenario scenario) { // only takes a screenshot if the scenario fails if (scenario.isFailed()) { // taking a screenshot final byte[] screenshot = ((TakesScreenshot) Driver.getDriver()) .getScreenshotAs(OutputType.BYTES); // adding the screenshot to the report scenario.embed(screenshot, "image/png"); } Driver.closeDriver(); } }
[ "github@cybertekschool.com" ]
github@cybertekschool.com
230d8dc6e26b3b697e7ed44b22a6e7d3c55d2299
749d63e5c11c3a9e628e2782252201e7bc3de730
/app/src/main/java/com/smart/cloud/fire/global/Electric.java
18943451436b8ddb4ba382b04db3fe4f3764b4f6
[ "Apache-2.0" ]
permissive
bingo1118/SmartCloudFire
c05907c00e6480032fe7b10e60cd6ee3a0f0684e
7795912c0d38457a92be8ba24fa28467232c68ff
refs/heads/master
2021-01-23T02:55:01.672631
2020-12-04T09:13:25
2020-12-04T09:13:25
86,023,104
1
0
null
null
null
null
UTF-8
Java
false
false
4,459
java
package com.smart.cloud.fire.global; /** * Created by Administrator on 2016/11/3. */ public class Electric { /** * addSmokeTime : 2016-11-03 15:07:14 * address : 中国广东省广州市天河区黄埔大道西554号 * areaName : 测试区 * deviceType : 5 * ifDealAlarm : 1 * latitude : 23.131788 * longitude : 113.350338 * mac : 32110533 * name : 电流测试 * netState : 0 * placeType : 烧烤 * placeeAddress : * principal1 : * principal1Phone : * principal2 : * principal2Phone : * repeater : 11091620 */ private String addSmokeTime; private String address; private String areaName; private int deviceType; private int ifDealAlarm; private String latitude; private String longitude; private String mac; private String name; private int netState; private String placeType; private String placeeAddress; private String principal1; private String principal1Phone; private String principal2; private String principal2Phone; private String repeater; private int eleState;//@@电源开关8.25 private String ifFault;//@@10.9是否故障 private String rssivalue;//@@2018.03.07 public int getEleState() { return eleState; } public void setEleState(int eleState) { this.eleState = eleState; } public String getIfFault() { return ifFault; } public void setIfFault(String ifFault) { this.ifFault = ifFault; } public String getAddSmokeTime() { return addSmokeTime; } public void setAddSmokeTime(String addSmokeTime) { this.addSmokeTime = addSmokeTime; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getAreaName() { return areaName; } public void setAreaName(String areaName) { this.areaName = areaName; } public int getDeviceType() { return deviceType; } public void setDeviceType(int deviceType) { this.deviceType = deviceType; } public int getIfDealAlarm() { return ifDealAlarm; } public void setIfDealAlarm(int ifDealAlarm) { this.ifDealAlarm = ifDealAlarm; } public String getLatitude() { return latitude; } public void setLatitude(String latitude) { this.latitude = latitude; } public String getLongitude() { return longitude; } public void setLongitude(String longitude) { this.longitude = longitude; } public String getMac() { return mac; } public void setMac(String mac) { this.mac = mac; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getNetState() { return netState; } public void setNetState(int netState) { this.netState = netState; } public String getPlaceType() { return placeType; } public void setPlaceType(String placeType) { this.placeType = placeType; } public String getPlaceeAddress() { return placeeAddress; } public void setPlaceeAddress(String placeeAddress) { this.placeeAddress = placeeAddress; } public String getPrincipal1() { return principal1; } public void setPrincipal1(String principal1) { this.principal1 = principal1; } public String getPrincipal1Phone() { return principal1Phone; } public void setPrincipal1Phone(String principal1Phone) { this.principal1Phone = principal1Phone; } public String getPrincipal2() { return principal2; } public void setPrincipal2(String principal2) { this.principal2 = principal2; } public String getPrincipal2Phone() { return principal2Phone; } public void setPrincipal2Phone(String principal2Phone) { this.principal2Phone = principal2Phone; } public String getRepeater() { return repeater; } public void setRepeater(String repeater) { this.repeater = repeater; } public String getRssivalue() { return rssivalue; } public void setRssivalue(String rssivalue) { this.rssivalue = rssivalue; } }
[ "447292486@qq.com" ]
447292486@qq.com
3b1e22128bc2ee9493db9b6f95fd87418fd99c85
5441d475999d701f286ba725c8a25f26f48af94b
/rain-security-authorized/src/main/java/com/jhon/rain/rbac/web/controller/support/SimpleResponse.java
86c3d6f83e70121113ff4b3b38ea2b879837cf31
[]
no_license
chrismayday/Rain-Security
97fb52a68248829dacfd92e760567bd7331f81ee
a33bc0b192eb651caaa85913ce18ba7845cfdd5d
refs/heads/master
2021-07-25T13:16:16.709466
2017-11-04T07:34:46
2017-11-04T07:34:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
352
java
package com.jhon.rain.rbac.web.controller.support; import lombok.Data; /** * <p>功能描述</br> 返回对象 </p> * * @author jiangy19 * @version v1.0 * @FileName SimpleResponse * @date 2017/11/4 14:33 */ @Data public class SimpleResponse { public SimpleResponse(Object content) { this.content = content; } private Object content; }
[ "3291371805@qq.com" ]
3291371805@qq.com
f45ab9cb99080b68b0a23825cecbda1fa254c90f
ad8ee6c6f137c2d585419e3e333c64a2b191d8bc
/app/src/main/java/com/nuoyuan/rxdemo/category3_filtering_observables/Category3Operator5SkipLastActivity.java
3f94e3245bab85442f4dab0fe056636e81ae6397
[]
no_license
aWhalefall/RxjavaDemo
774a49e2d49a4994aa904fb02cc79a6c4219351d
d008342c0fa26cd2bc12480637a51040d72b6757
refs/heads/master
2021-06-18T21:19:12.281863
2017-05-24T05:43:01
2017-05-24T05:43:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,754
java
package com.nuoyuan.rxdemo.category3_filtering_observables; import com.nuoyuan.rxdemo.base.SampleTempActivity; import com.nuoyuan.rxdemo.R; import java.util.ArrayList; import java.util.List; import rx.Observable; import rx.Subscriber; public class Category3Operator5SkipLastActivity extends SampleTempActivity { @Override protected String getOperatorName() { return "skipLast"; } @Override protected String getDescription() { return getString(R.string.activity_category3_filtering_observables_5_skip_last_description); } @Override protected int getImageResourceId() { return R.drawable.c5_skip_last; } @Override protected int setImageHeight() { return 200; } @Override protected void runSampleCode() { Observable.just(1, 2, 3, 4, 5, 6) .skipLast(3) .subscribe(new Subscriber<Integer>() { @Override public void onCompleted() { System.out.println("onCompleted."); } @Override public void onError(Throwable e) { System.out.println("onError: " + e.getMessage()); } @Override public void onNext(Integer integer) { System.out.println("onNext: " + integer); } }); } @Override protected String getSampleCode() { return "Observable.just(1, 2, 3, 4, 5, 6)\n" + " .skipLast(3)\n" + " .subscribe(new Subscriber<Integer>() {\n" + " @Override\n" + " public void onCompleted() {\n" + " System.out.println(\"onCompleted.\");\n" + " }\n" + "\n" + " @Override\n" + " public void onError(Throwable e) {\n" + " System.out.println(\"onError: \" + e.getMessage());\n" + " }\n" + "\n" + " @Override\n" + " public void onNext(Integer integer) {\n" + " System.out.println(\"onNext: \" + integer);\n" + " }\n" + " });"; } @Override protected List<String> getOutputList() { List<String> output = new ArrayList<String>(); output.add("onNext: 1"); output.add("\nonNext: 2"); output.add("\nonNext: 3"); output.add("\nonCompleted."); return output; } }
[ "279642707@qq.com" ]
279642707@qq.com
092e129414c3cfe53a018e84eb0f5a2e9bd173c9
00453f1b87408c74a9ea064c3beb744a58f01950
/scm-step/src/main/java/org/jenkinsci/plugins/workflow/steps/scm/GitStep.java
25be2aa68bace250e8d822b033bd2c01b29a41d5
[]
no_license
klevak/workflow-plugin
990c49b50e6e7cff820e29f9fcc2af6da950fd46
bb6a526703f329cb2cb853d43b4d6880ade281d2
refs/heads/master
2021-01-17T21:57:25.064925
2015-03-06T16:01:52
2015-03-06T16:01:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,022
java
/* * The MIT License * * Copyright 2014 Jesse Glick. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.jenkinsci.plugins.workflow.steps.scm; import hudson.Extension; import hudson.plugins.git.BranchSpec; import hudson.plugins.git.GitSCM; import hudson.plugins.git.SubmoduleConfig; import hudson.plugins.git.UserRemoteConfig; import hudson.scm.SCM; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.DataBoundSetter; /** * Runs Git using {@link GitSCM}. */ public final class GitStep extends SCMStep { private final String url; private String branch = "master"; @DataBoundConstructor public GitStep(String url) { this.url = url; } public String getUrl() { return url; } public String getBranch() { return branch; } @DataBoundSetter public void setBranch(String branch) { this.branch = branch; } @Override public SCM createSCM() { return new GitSCM(createRepoList(url), Collections.singletonList(new BranchSpec("*/" + branch)), false, Collections.<SubmoduleConfig>emptyList(), null, null, null); } // copied from GitSCM static private List<UserRemoteConfig> createRepoList(String url) { List<UserRemoteConfig> repoList = new ArrayList<UserRemoteConfig>(); repoList.add(new UserRemoteConfig(url, null, null, null)); return repoList; } @Extension(optional=true) public static final class DescriptorImpl extends SCMStepDescriptor { public DescriptorImpl() { // Fail now if dependency plugin not loaded. Descriptor.<init> will actually fail anyway, but this is just to be sure. GitSCM.class.hashCode(); } @Override public String getFunctionName() { return "git"; } @Override public String getDisplayName() { return "Git"; } } }
[ "jglick@cloudbees.com" ]
jglick@cloudbees.com
30c7784c48539f47dd2c2bd74911dbba9f7d074c
caf8b075af53ac51f8928f2f1eee920a22d3be70
/src/main/java/com/cnfwsy/spider/core/util/DigitUtils.java
2d94728df06bbb61c04ce6adae9778dcc313e877
[ "Apache-2.0" ]
permissive
firebata/medicine
36b86ce0a0a11dd935755f14883cd21afecdfdcc
38be7934e6669679d86004ded104eedb33f56c41
refs/heads/master
2021-01-11T00:21:08.413731
2018-06-11T09:47:02
2018-06-11T09:47:02
70,544,391
1
4
null
null
null
null
UTF-8
Java
false
false
682
java
package com.cnfwsy.spider.core.util; import java.util.regex.Pattern; public class DigitUtils { private static boolean isDigitA(char ch) { return Character.isDigit(ch); } private static boolean isDigitB(char ch) { Pattern pattern = Pattern.compile("[0-9]"); return pattern.matcher(String.valueOf(ch)).matches(); } private static boolean isDigitC(char ch) { if (ch < 48 || ch > 57) return false; else return true; } private static boolean isDigitD(char ch) { try { int i = Integer.parseInt(String.valueOf(ch)); return true; } catch (NumberFormatException e) { e.printStackTrace(); return false; } } }
[ "firebata@gmail.com" ]
firebata@gmail.com
bcf263ec796217b5449c0e497b035099fd51e478
ca1beeaba34710f4f41d5048bf58a89c1b9d8d29
/chatak-pay/src/test/java/com/chatak/pay/util/EncryptionUtilTest.java
83cc04d7b19787c5acec2b3b3a6cb03f6b12cbaf
[]
no_license
itsbalamurali/test_build
f63796b78a050cc03e34527f56dd840e546b0102
11c491b17c5a2643e1400a23882ba82d6f3d8033
refs/heads/master
2020-04-02T21:16:11.430445
2018-06-19T04:14:38
2018-06-19T04:14:38
154,793,051
0
2
null
2018-10-26T07:15:38
2018-10-26T07:15:38
null
UTF-8
Java
false
false
1,088
java
package com.chatak.pay.util; import java.security.NoSuchAlgorithmException; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.runners.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class EncryptionUtilTest { @InjectMocks EncryptionUtil encryptionUtil; @Test public void testGeneratePin() { encryptionUtil.generatePin(1); } @Test public void testEncodePassword() throws NoSuchAlgorithmException { encryptionUtil.encodePassword("abcd"); } @Test public void testGeneratePassword() { encryptionUtil.generatePassword(1); } @Test public void testGenerateRandNumeric() { encryptionUtil.generateRandNumeric(1); } @Test public void testHexString() { byte[] b = { 1, 1, 1 }; encryptionUtil.hexString(b); } @Test public void testHex2byte() { encryptionUtil.hex2byte("1"); } @Test public void testGetJCryptoKeyPair() { encryptionUtil.getJCryptoKeyPair(); } @Test(expected = NullPointerException.class) public void testDecrypt() { encryptionUtil.decrypt(null, "abc"); } }
[ "rajesh.bs@girmiti.com" ]
rajesh.bs@girmiti.com
ca356fa411d76c74a654713b4005b11bb52b2edf
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
/laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/functions/logicalOr.java
62d61fa4ba0a99a5618bde1667efef73dcb4d8d9
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
RuntimeConverter/RuntimeConverterLaravelJava
657b4c73085b4e34fe4404a53277e056cf9094ba
7ae848744fbcd993122347ffac853925ea4ea3b9
refs/heads/master
2020-04-12T17:22:30.345589
2018-12-22T10:32:34
2018-12-22T10:32:34
162,642,356
0
0
null
null
null
null
UTF-8
Java
false
false
2,054
java
package com.project.convertedCode.globalNamespace.functions; import com.runtimeconverter.runtime.nativeFunctions.runtime.function_func_get_args; import com.project.convertedCode.globalNamespace.namespaces.PHPUnit.namespaces.Framework.classes.Assert; import com.runtimeconverter.runtime.interfaces.ContextConstants; import com.runtimeconverter.runtime.tools.PackedVaradicArgs; import com.runtimeconverter.runtime.functions.FunctionBaseRegular; import com.runtimeconverter.runtime.classes.RuntimeClassBase; import com.runtimeconverter.runtime.RuntimeEnv; import com.runtimeconverter.runtime.annotations.ConvertedMethod; import com.runtimeconverter.runtime.passByReference.RuntimeArgsWithInfo; import com.runtimeconverter.runtime.ZVal; import com.runtimeconverter.runtime.arrays.ZPair; /* Converted with The Runtime Converter (runtimeconverter.com) vendor/phpunit/phpunit/src/Framework/Assert/Functions.php */ public class logicalOr extends FunctionBaseRegular { public static logicalOr f = new logicalOr(); @ConvertedMethod public Object call(RuntimeEnv env, Object... args) { return ZVal.assign( Assert.runtimeStaticObject.logicalOr( env, PackedVaradicArgs.unpack( new PackedVaradicArgs( function_func_get_args .f .env(env) .addReferenceArgs( new RuntimeArgsWithInfo(args, this)) .call() .value())))); } @Override protected ContextConstants getContextConstantsProtected() { return new ContextConstants() .setDir("/vendor/phpunit/phpunit/src/Framework/Assert") .setFile("/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php"); } }
[ "git@runtimeconverter.com" ]
git@runtimeconverter.com
31203b21edb672e002c3a43296f4de2e883baf48
2d5daf2ffd0a20f9187578765056b7a718afaf02
/src/main/java/lesson5/hw/Employee.java
4ac9fb80d2086bdd3f26e85f169770ecfeb611f5
[]
no_license
LevinMK23/java-1-03-2021
ed82c61fa23d030f1955bf6be807504c5b9f66f2
2db95eacd06b56703a923a44ca62ae3bb8cfa69b
refs/heads/master
2023-04-19T17:43:02.001998
2021-04-20T18:29:28
2021-04-20T18:29:28
350,827,023
0
2
null
2023-04-29T13:50:02
2021-03-23T19:06:01
Java
UTF-8
Java
false
false
1,613
java
package lesson5.hw; // SOLID public class Employee { private String fio; private String staff; private String email; private String phone; private int age; private double salary; public Employee(String fio, String staff, String email, String phone, int age, double salary) { this.fio = fio; this.staff = staff; this.email = email; this.phone = phone; this.age = age; this.salary = salary; } public String getFio() { return fio; } public void setFio(String fio) { this.fio = fio; } public String getStaff() { return staff; } public void setStaff(String staff) { this.staff = staff; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public double getSalary() { return salary; } public void setSalary(double salary) { this.salary = salary; } public void printInfo() { System.out.println("Fio: " + fio + ", position: " + staff + ", email: " + email + ", phone: " + phone + ", age: " + age + "," + " salary: " + salary); } }
[ "mikelevin@yandex-team.ru" ]
mikelevin@yandex-team.ru
6da703c83ed490b8729a90f471366a7d7e450c40
367dde136c0240c0edffcdd71ffe38a409c6c750
/viewserver-core/src/main/java/io/viewserver/datasource/ITableUpdater.java
4f34847ef5b4d4fc970fde37d70fbeb14c1d4756
[ "Apache-2.0" ]
permissive
viewserver/viewserver
730d0cf59d27869db6fbab37d8f602d62d09993b
52ca55da0f86ae46d37a724cb028d048a8aacee7
refs/heads/master
2021-01-24T10:38:43.477290
2016-10-05T22:47:59
2016-10-05T22:47:59
70,105,576
0
0
null
null
null
null
UTF-8
Java
false
false
1,094
java
/* * Copyright 2016 Claymore Minds Limited and Niche Solutions (UK) Limited * * 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 io.viewserver.datasource; import io.viewserver.operators.table.ITable; import io.viewserver.operators.table.ITableRowUpdater; import io.viewserver.schema.Schema; /** * Created by nickc on 25/11/2014. */ public interface ITableUpdater { ITable createTable(String name, Schema schema); void addRow(ITableRowUpdater rowUpdater); void updateRow(ITableRowUpdater rowUpdater); void addOrUpdateRow(ITableRowUpdater rowUpdater); }
[ "nick.chadwick@nichesolutions.co.uk" ]
nick.chadwick@nichesolutions.co.uk
011a4f7bb1ecb16dd460efc6daea49a8a9d83ffe
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/14/14_110dafae1e9e297967248916de59002250054068/RegistryTest/14_110dafae1e9e297967248916de59002250054068_RegistryTest_t.java
e85f4e5a2fe2d86e7ce6b043a96da2221185f241
[]
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,984
java
package ru.concerteza.springtomcat.etomcat6; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpMethod; import org.apache.commons.httpclient.methods.GetMethod; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletResponse; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** * User: alexey * Date: 3/2/12 */ public class RegistryTest extends TestSupertype { private final Logger logger = LoggerFactory.getLogger(getClass()); @Test public void testRegistry() throws Exception { { HttpClient client = new HttpClient(); // test get HttpMethod get = new GetMethod("http://127.0.0.1:8080/etomcat_test"); client.executeMethod(get); // test data byte[] responseBody = get.getResponseBody(); String content = new String(responseBody, "UTF-8"); assertEquals("Registry fail", "true", content); // subsequent requests HttpMethod get1 = new GetMethod("http://127.0.0.1:8080/etomcat_test"); client.executeMethod(get1); assertEquals(HttpServletResponse.SC_OK, get1.getStatusCode()); } { // concurrent test HttpClient client = new HttpClient(); HttpMethod get = new GetMethod("http://127.0.0.1:8080/etomcat_test"); get.addRequestHeader("X-Forwarded-For", "192.168.42.42"); client.executeMethod(get); assertEquals(HttpServletResponse.SC_UNAUTHORIZED, get.getStatusCode()); byte[] responseBody = get.getResponseBody(); String content = new String(responseBody, "UTF-8"); assertEquals("127.0.0.1", content); } } @Override protected String dirname() { return "registrydir"; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
a525e6b47ec64cf03028c40fc2b6e42bb307b7fc
8567af85472b5070b523f7bc77dcac22c249c0da
/mithqtt-http/src/main/java/com/github/longkerdandy/mithqtt/http/exception/ValidateException.java
d45b1965e85efd297cddf1e29dfd5a2a15c7d16f
[ "Apache-2.0" ]
permissive
zenin-tech/mithqtt
c245dc96987a1c6215400794fb4eee691374a0ee
cb3e3ed3d1a5c5ae99700302805940bdb91b1464
refs/heads/master
2023-02-21T01:36:15.415506
2023-02-13T02:38:56
2023-02-13T02:38:56
56,362,002
2
1
Apache-2.0
2023-02-13T02:38:57
2016-04-16T02:48:47
Java
UTF-8
Java
false
false
732
java
package com.github.longkerdandy.mithqtt.http.exception; import com.github.longkerdandy.mithqtt.http.entity.ErrorEntity; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; /** * Validate Exception */ @SuppressWarnings("unused") public class ValidateException extends WebApplicationException { /** * Create a HTTP 422 (UnProcessable Entity) exception. */ public ValidateException() { super(422); } /** * Create a HTTP 422 (UnProcessable Entity) exception. * * @param entity the error response entity */ public ValidateException(ErrorEntity entity) { super(Response.status(422).entity(entity).type("application/json").build()); } }
[ "longkerdandy@gmail.com" ]
longkerdandy@gmail.com
098687bea448d7bfe30b4ee3f84b47cfdf30ee92
9f9b00b8b39c80518e5f026b69cb3425269fa427
/hexagonal/src/test/java/info/jab/microservices/MyEndpointE2EMockMVCTest.java
fe4199adb567904a28edbee01a4d613e8e38329b
[ "Apache-2.0" ]
permissive
jabrena/java-project-layouts
feea795a84c45745e6d4b31c7d0e5088c5a9da17
0eada299594a4e01c9c094d0bc4dfd748787beab
refs/heads/main
2023-06-06T04:13:53.401843
2021-05-09T11:10:41
2021-05-09T11:10:41
363,178,632
0
0
Apache-2.0
2021-05-09T11:10:32
2021-04-30T15:13:42
Java
UTF-8
Java
false
false
1,338
java
package info.jab.microservices; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.web.servlet.MockMvc; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @SpringBootTest @AutoConfigureMockMvc public class MyEndpointE2EMockMVCTest { @Autowired private MockMvc mockMvc; @Test public void given_app_when_call_endpoint_single_then_ok() throws Exception { //Given //When //Then this.mockMvc .perform(get("/api/single") // .contentType(APPLICATION_JSON_VALUE) ) .andDo(print()) .andExpect(status().isOk()); } @Test public void given_app_when_call_endpoint_list_then_ok() throws Exception { //Given //When //Then this.mockMvc .perform(get("/api/list") // .contentType(APPLICATION_JSON_VALUE) ) .andDo(print()) .andExpect(status().isOk()); } }
[ "bren@juanantonio.info" ]
bren@juanantonio.info
7020ca4c50f5b3b07816c79a7bef314c2b0198f2
4ae938d331b629dbaf74a1d4ab8055eae1651eaf
/Class3/src/Encapsulation/EncapsulationClass1.java
e2b7196082ac8bc077830b5ac26cd85f2b79c9c9
[]
no_license
mhmmtkkl/Class3
a270c69a383ec6e68c0a85401703bc4343b52c86
f9671f7d9493b2d573abe8c7becf2f93023abb02
refs/heads/master
2020-06-13T16:35:58.922168
2019-08-06T22:40:39
2019-08-06T22:40:39
194,713,671
0
0
null
null
null
null
UTF-8
Java
false
false
1,381
java
package Encapsulation; public class EncapsulationClass1 { /* * By providing only a setter or getter method, you can make the class read-only or write-only. In other words, you can skip the getter or setter methods. It provides you the control over the data. Suppose you want to set the value of id which should be greater than 100 only, you can write the logic inside the setter method. You can write the logic not to store the negative numbers in the setter methods. It is a way to achieve data hiding in Java because other class will not be able to access the data through the private data members. * */ private String model; private String make; private int year; private String speed; public String getModel() { return model; } public void setModel(String model) { this.model = model; } public String getmake() { return make; } public void setMake(String make) { this.make = make; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } public String getspeed() { return speed; } public void setspeed(String speed) { int s1 = Integer.parseInt(speed); if(s1>150) { this.speed = speed; }else { this.speed = "This car is garbage"; } } }
[ "makoklu32@gmail.com" ]
makoklu32@gmail.com
5c18c058eb6c9c1488b98f5c9e56ff4d32674a0d
fa5ccd565d1b5c7b6bcca56ee14354336da04706
/cocoon/src/blocks/portal/java/org/apache/cocoon/portal/layout/renderer/aspect/impl/RendererAspectChain.java
ed672b14b5d4e119a2af62cddd98b5354c3cffff
[ "Apache-2.0" ]
permissive
digitalpixies/pdf
67abd9401af0e8b4aace2ff673ba6040369f82a9
77f82ec78bd8bcd847d32434cfb152845a0a24b1
refs/heads/master
2016-09-05T11:14:51.768026
2013-04-02T18:45:03
2013-04-02T18:45:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,777
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.cocoon.portal.layout.renderer.aspect.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.parameters.ParameterException; import org.apache.avalon.framework.parameters.Parameters; import org.apache.avalon.framework.service.ServiceException; import org.apache.avalon.framework.service.ServiceSelector; import org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect; /** * This chain holds all configured renderer aspects for one renderer. * * <h2>Configuration</h2> * <table><tbody> * <tr><th>aspect</th> * <td>Multiple aspect renderer configurations. Required attribute * <code>type</code>. Nested configuration must contain parameters * for aspect rederer. * </td> * <td>req</td><td>Configuration</td><td><code>null</code></td> * </tr> * </tbody></table> * * @author <a href="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a> * @author <a href="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a> * * @version CVS $Id: RendererAspectChain.java 433543 2006-08-22 06:22:54Z crossley $ */ public final class RendererAspectChain { protected List aspects = new ArrayList(3); protected List configs = new ArrayList(3); protected List aspectDescriptions = new ArrayList(2); private boolean isRequired = false; public void configure(ServiceSelector selector, Configuration conf) throws ConfigurationException { if ( conf != null ) { Configuration[] aspects = conf.getChildren("aspect"); if ( aspects != null ) { for(int i=0; i < aspects.length; i++) { final Configuration current = aspects[i]; final String role = current.getAttribute("type"); try { RendererAspect rAspect = (RendererAspect) selector.select(role); this.aspects.add(rAspect); if (rAspect.isRequired()) { isRequired = true; } Parameters aspectConfiguration = Parameters.fromConfiguration(current); Object compiledConf = rAspect.prepareConfiguration(aspectConfiguration); this.configs.add(compiledConf); Iterator descriptionIterator = rAspect.getAspectDescriptions(compiledConf); if ( descriptionIterator != null ) { while ( descriptionIterator.hasNext() ) { this.aspectDescriptions.add( descriptionIterator.next() ); } } } catch (ParameterException pe) { throw new ConfigurationException("Unable to configure renderer aspect " + role, pe); } catch (ServiceException se) { throw new ConfigurationException("Unable to lookup aspect " + role, se); } } } } else { throw new ConfigurationException("No aspects configured"); } } public Iterator getIterator() { return this.aspects.iterator(); } public Iterator getConfigIterator() { return this.configs.iterator(); } public Iterator getAspectDescriptionIterator() { return this.aspectDescriptions.iterator(); } public void dispose(ServiceSelector selector) { Iterator i = this.aspects.iterator(); while (i.hasNext()) { selector.release(i.next()); } this.aspects.clear(); } public boolean isRequired() { return this.isRequired; } }
[ "rhuie@cpsbc.ca" ]
rhuie@cpsbc.ca
3aebb29e5d4498fa623e442b45aae82a6967cff9
d3456a6221233cb283fe3e02fdd23d0b69c59f8f
/src/com/example/receiver/SMSReceiver.java
96784ce1b2fd42e980b4008109bc3e138ea01823
[ "Apache-2.0" ]
permissive
luoran-gaolili/MobileSafe
824a12f402d26a6472c30538f9410e0600c2c378
220c5f39a7c821b729a28cbbae8c9fcc385936d5
refs/heads/master
2021-01-18T23:26:22.887438
2015-04-16T13:44:08
2015-04-16T13:44:08
34,057,792
0
0
null
null
null
null
GB18030
Java
false
false
3,130
java
package com.example.receiver; import android.app.admin.DevicePolicyManager; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.media.MediaPlayer; import android.telephony.SmsManager; import android.telephony.SmsMessage; import android.text.TextUtils; import android.util.Log; import com.example.mobilesafe.R; import com.example.service.LocationService; public class SMSReceiver extends BroadcastReceiver { private static final String TAG = "SMSReceiver"; private SharedPreferences sp; DevicePolicyManager dpm; @Override public void onReceive(Context context, Intent intent) { // 写接收短信的代码 Object[] objs = (Object[]) intent.getExtras().get("pdus"); sp = context.getSharedPreferences("configd", Context.MODE_PRIVATE); for (Object b : objs) { // 具体的某一条短信 SmsMessage sms = SmsMessage.createFromPdu((byte[]) b); // 获取发送方的号码 String sender = sms.getOriginatingAddress();// 15555555556 // 获取用户设置的安全号码 String safenumber = sp.getString("safenumber", "");// 5556 // 获取内容信息 String body = sms.getMessageBody(); if (sender.contains(safenumber)) { if ("#*location*#".equals(body)) { // 启动服务 Intent i = new Intent(context, LocationService.class); context.startService(i); SharedPreferences sp = context.getSharedPreferences( "config", Context.MODE_PRIVATE); String lastlocation = sp.getString("lastlocation", null); if (TextUtils.isEmpty(lastlocation)) { // 位置没有得到 SmsManager.getDefault().sendTextMessage(sender, null, "geting loaction.....", null, null); } else { SmsManager.getDefault().sendTextMessage(sender, null, lastlocation, null, null); } abortBroadcast(); } else if ("#*alarm*#".equals(body)) { // 播放报警影音 MediaPlayer player = MediaPlayer.create(context, R.raw.alarm); player.setLooping(false);// 循环播放 player.setVolume(1.0f, 1.0f); player.start(); abortBroadcast(); } else if ("#*wipedata*#".equals(body)) { // 远程清除数据 dpm = (DevicePolicyManager) context .getSystemService(Context.DEVICE_POLICY_SERVICE); abortBroadcast(); } else if ("#*lockscreen*#".equals(body)) { // 远程锁屏 dpm = (DevicePolicyManager) context .getSystemService(Context.DEVICE_POLICY_SERVICE); /* * 激活设备管理器 */ Intent intents = new Intent( DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); ComponentName cn = new ComponentName(context, Adminstrator.class); intents.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, cn); intents.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION, "请开启一键锁屏"); intents.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intents); dpm.lockNow(); dpm.resetPassword("", 1); abortBroadcast(); } } } } }
[ "1466746723@qq.com" ]
1466746723@qq.com
405b0f170e03612afaf7f0e2355209e81fc1cfc6
e2ba7a3d63b7ee1618cb771a26d5dcb7d7add049
/26-SDP/CSM/CSMFE/SDP_CSM_WS/src/main/java/com/accenture/sdp/csmfe/webservices/response/avs/AvsPaymentTypeListResp.java
cc9bb1a691f47490c2cfbe1e444f8b523fc7d1a4
[]
no_license
adabalaravi/ca123
e1cdd59aa4ee0964a111f54206cec39bce179e68
1f2950e33f9bdb72e16f27988d7a238d4c66aad3
refs/heads/master
2020-06-03T05:40:29.581085
2017-10-29T08:40:26
2017-10-29T08:40:26
94,117,979
0
0
null
null
null
null
UTF-8
Java
false
false
741
java
package com.accenture.sdp.csmfe.webservices.response.avs; import java.io.Serializable; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(namespace = "http://com.accenture.sdp.csm.webservices.types") public class AvsPaymentTypeListResp implements Serializable { /** * */ private static final long serialVersionUID = -7036229131620698388L; private List<AvsPaymentTypeInfoResp> paymentTypeList; @XmlElement(name = "paymentType") public List<AvsPaymentTypeInfoResp> getPaymentTypeList() { return paymentTypeList; } public void setPaymentTypeList(List<AvsPaymentTypeInfoResp> paymentTypeList) { this.paymentTypeList = paymentTypeList; } }
[ "ravindra.mca25@gmail.com" ]
ravindra.mca25@gmail.com
3d5d46a497aa5a280e92f9d2043cf4725811f781
45d1e88d4275045417b1128b1978bb277de4136c
/A04.Netty/B01.Netty_Book/doc/nettybook2-master/src/com/phei/netty/aio/TimeClient.java
306d486371fe023299029f27b2a018147490cd21
[ "Apache-2.0" ]
permissive
huaxueyihao/NoteOfStudy
2c1f95ef30e264776d0bbf72fb724b0fe9aceee4
061e62c97f4fa04fa417fd08ecf1dab361c20b87
refs/heads/master
2022-07-12T04:11:02.960324
2021-01-24T02:47:54
2021-01-24T02:47:54
228,293,820
0
0
Apache-2.0
2022-06-21T03:49:20
2019-12-16T03:19:50
Java
UTF-8
Java
false
false
1,103
java
/* * Copyright 2013-2018 Lilinfeng. * * 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.phei.netty.aio; /** * @author lilinfeng * @date 2014年2月14日 * @version 1.0 */ public class TimeClient { /** * @param args */ public static void main(String[] args) { int port = 8080; if (args != null && args.length > 0) { try { port = Integer.valueOf(args[0]); } catch (NumberFormatException e) { // 采用默认值 } } new Thread(new AsyncTimeClientHandler("127.0.0.1", port), "AIO-AsyncTimeClientHandler-001").start(); } }
[ "837403116@qq.com" ]
837403116@qq.com
19cc192db49da4cb2be07ec583965481639500ff
39af23f0d2850f2c8e262cc7ff31729f221014a0
/com.io7m.coffeepick.repository.spi/src/main/java/com/io7m/coffeepick/repository/spi/package-info.java
99f63ce3779a4f7b64e42ce87553773318ede8d0
[ "ISC" ]
permissive
io7m/coffeepick
43990a131e01714bb46d04a52f0a2259e1cf564c
85490aa75f993b0119a358b92d21d945493bb83a
refs/heads/develop
2023-08-23T20:58:41.358533
2023-08-13T21:09:21
2023-08-13T21:09:21
157,016,248
1
0
ISC
2021-08-02T17:16:17
2018-11-10T19:54:51
Java
UTF-8
Java
false
false
1,020
java
/* * Copyright © 2018 Mark Raynsford <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** * Java runtime retrieval (Repository SPI) */ @Export @Version("1.0.0") package com.io7m.coffeepick.repository.spi; import org.osgi.annotation.bundle.Export; import org.osgi.annotation.versioning.Version;
[ "code@io7m.com" ]
code@io7m.com
a7058ca91e13369ba509df6e7ff4330d3f63c8ac
ca4ace7dc4eb6ba0e419920a4a22eb65932cbcee
/src/main/java/chapter4/Reverser.java
44a0d47ce8780fd9d48722d40f0a2e1707a992c2
[]
no_license
mavy0313/lafore
6b5f150ac72d960188f9de8b8bcfff11c8aedeff
5c28746f4e1c7f4a5e3173c2c6a62608b58e276b
refs/heads/master
2022-05-21T15:11:48.497914
2022-03-21T14:19:50
2022-03-21T14:19:50
195,678,555
0
0
null
null
null
null
UTF-8
Java
false
false
424
java
package chapter4; public class Reverser { public String reverse(String input) { CharStack stack = new CharStack(input.length()); input.chars() .mapToObj(c -> (char) c) .forEach(stack::push); StringBuilder result = new StringBuilder(); while (!stack.isEmpty()) { result.append(stack.pop()); } return result.toString(); } }
[ "vypoff@gmail.com" ]
vypoff@gmail.com
05325b0997f2cac21dddcccf8dadd4b5d0412cef
178471c8cd12d03553489138cc24354514b55a63
/ExemplodeLogin/app/src/androidTest/java/exemplologin/segundotina/fiap/com/br/exemplodelogin/ExampleInstrumentedTest.java
9fe9199acd8e9488601d72b5ccf851379fc36084
[]
no_license
jubissi/android-2tina
ea6f8b41338cd91e030e5c9882671fe175194967
37062ac631c553f4d3f7b6f6bd3f29984b4654ad
refs/heads/master
2021-06-17T14:33:12.570147
2017-05-24T13:58:42
2017-05-24T13:58:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
806
java
package exemplologin.segundotina.fiap.com.br.exemplodelogin; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("exemplologin.segundotina.fiap.com.br.exemplodelogin", appContext.getPackageName()); } }
[ "logonrm@fiap.com.br" ]
logonrm@fiap.com.br
aa7303abd417d066c2921d51ef5a25e0b242e7f6
ecd4e95fd61f95799460574d0d416938c7f68eb9
/src/main/java/main/Lab4/TreeNext/NextNode_Triad.java
ef7c9519c84e8c554c7b6c29916f0001ec794de5
[]
no_license
Dudoserg/compiler
f9523668c15c468d2560def96792d65f0566003e
1cfd432f8673ab6760ac933312cc97882f96aeaf
refs/heads/master
2022-07-31T14:17:45.392779
2020-05-27T12:43:50
2020-05-27T12:43:50
242,174,637
0
0
null
null
null
null
UTF-8
Java
false
false
729
java
package main.Lab4.TreeNext; import lombok.AllArgsConstructor; import main.Lab4.TreeNext.Relations.*; import main.Lab4.Triad; import main.Lab4.TriadsByType._Triad_Base; import java.io.FileWriter; import java.util.ArrayList; import java.util.List; import java.util.Objects; public class NextNode_Triad { public String operation; public String first; public String second; public Integer index; /// public Triad triad; public NextNode_Triad(String operation, String first, String second, Integer index) { this.operation = operation; this.first = first; this.second = second; this.index = index; this.triad = new Triad(operation, first, second); } }
[ "frielender@gmail.com" ]
frielender@gmail.com
6c7a69d0ebedec7f99da2e762b4851897e2385a6
2b438c607ca0b2ee575eec4752cc7c5c7792f4cc
/common/src/main/java/cherkashyn/vitalii/tool/web/FindEmptyPort.java
3cf8e3c565272831a67c82afda0930133d7d6f22
[]
no_license
cherkavi/java-code-example
a94a4c5eebd6fb20274dc4852c13e7e8779a7570
9c640b7a64e64290df0b4a6820747a7c6b87ae6d
refs/heads/master
2023-02-08T09:03:37.056639
2023-02-06T15:18:21
2023-02-06T15:18:21
197,267,286
0
4
null
2022-12-15T23:57:37
2019-07-16T21:01:20
Java
UTF-8
Java
false
false
960
java
package cherkashyn.vitalii.tool.web; import java.io.IOException; import java.net.ServerSocket; public class FindEmptyPort { public static int findFirstOpenPort(int lowRange, int highRange) throws IllegalStateException { for (int index=lowRange; index<highRange; index++) { try { ServerSocket socket = new ServerSocket(index); socket.setReuseAddress(true); socket.close(); return index; } catch (IOException ex) { continue; // try next port } } throw new IllegalStateException("no free port found"); } public static void main(String ... args){ try { int port = findFirstOpenPort(1000, 1500); System.out.println("first free port is: " + port); } catch (IllegalStateException ex) { System.err.println("no port available into range"); } } }
[ "technik7job@gmail.com" ]
technik7job@gmail.com
a5480abe665a218b40a8cbc8c449b4a410282686
7b8b655fcb5469711358889dfaee3c26014baebe
/citrus-system/src/main/java/com/github/yiuman/citrus/system/authticate/PasswordAuthenticateServiceImpl.java
d296a083a6fa18210ce055dd2ec0f878c2c4ea6f
[ "Apache-2.0" ]
permissive
tyokyo/citrus
c898757fc26d5546179d9505808426a22d3a20c2
5315e2644648a85f03558336fdcdb2d3e59fa874
refs/heads/master
2023-04-03T04:17:58.630802
2021-04-11T10:02:23
2021-04-11T10:02:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,457
java
package com.github.yiuman.citrus.system.authticate; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.github.yiuman.citrus.security.authenticate.AuthenticateService; import com.github.yiuman.citrus.security.verify.VerificationProcessor; import com.github.yiuman.citrus.security.verify.captcha.Captcha; import com.github.yiuman.citrus.support.utils.WebUtils; import com.github.yiuman.citrus.system.cache.UserOnlineCache; import com.github.yiuman.citrus.system.dto.UserOnlineInfo; import com.github.yiuman.citrus.system.entity.User; import com.github.yiuman.citrus.system.service.AccessLogService; import com.github.yiuman.citrus.system.service.RbacMixinService; import com.github.yiuman.citrus.system.service.UserService; import lombok.extern.slf4j.Slf4j; import org.springframework.security.authentication.AuthenticationServiceException; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import javax.servlet.http.HttpServletRequest; import java.util.Collections; import java.util.Objects; import java.util.Optional; /** * 认证服务类实现 * * @author yiuman * @date 2020/3/30 */ @Service @Slf4j public class PasswordAuthenticateServiceImpl implements AuthenticateService, UserDetailsService { private static final String SUPPORT_MODE = "password"; private final RbacMixinService rbacMixinService; private final AccessLogService accessLogService; private final PasswordEncoder passwordEncoder; private final VerificationProcessor<Captcha> verificationProcessor; public PasswordAuthenticateServiceImpl( RbacMixinService rbacMixinService, AccessLogService accessLogService, PasswordEncoder passwordEncoder, VerificationProcessor<Captcha> verificationProcessor ) { this.rbacMixinService = rbacMixinService; this.accessLogService = accessLogService; this.passwordEncoder = passwordEncoder; this.verificationProcessor = verificationProcessor; } @Override public Authentication authenticate(HttpServletRequest request) { verificationProcessor.validate(request); PasswordLoginEntity passwordLoginEntity; try { passwordLoginEntity = WebUtils.bindDataAndValidate(PasswordLoginEntity.class, request); } catch (Exception e) { //此处可能出现实体入参校验异常 throw new AuthenticationServiceException(e.getMessage()); } UserService userService = rbacMixinService.getUserService(); User user = userService.getUserByLoginId(passwordLoginEntity.getLoginId()) .orElseThrow(() -> new UsernameNotFoundException("找不到用户")); if (!passwordEncoder.matches(passwordLoginEntity.getPassword(), user.getPassword())) { throw new BadCredentialsException("用户名或密码错误"); } if (StringUtils.isBlank(user.getUuid())) { throw new BadCredentialsException("此用户目前不存在密匙"); } saveUserOnlineInfo(user); try { accessLogService.pointAccessWithResourceName(request, user, "登录"); } catch (Exception ignore) { } return new UsernamePasswordAuthenticationToken(user, user.getUuid()); } @Override public Optional<Authentication> resolve(String token, String identity) { UserService userService = rbacMixinService.getUserService(); UserOnlineCache userOnlineCache = userService.getUserOnlineCache(); User user = userOnlineCache.find(identity); if (user == null) { user = userService.getUserByUuid(identity); saveUserOnlineInfo(user); } return Optional.of(new UsernamePasswordAuthenticationToken(user, token, null)); } @Override public void logout(Authentication authentication) { final UserService userService = rbacMixinService.getUserService(); userService.getUser(authentication).ifPresent(user -> userService.getUserOnlineCache().remove(user.getUuid())); //Nothing to do } @Override public String supportMode() { return SUPPORT_MODE; } private void saveUserOnlineInfo(User user) { UserOnlineInfo userOnlineInfo = UserOnlineInfo.newInstance(user); rbacMixinService.setUserOwnedInfo(userOnlineInfo); rbacMixinService.getUserService() .getUserOnlineCache() .save(user.getUuid(), userOnlineInfo); } @Override public UserDetails loadUserByUsername(String uuid) throws UsernameNotFoundException { UserOnlineInfo userOnlineInfo = Optional.ofNullable(rbacMixinService.getUserService().getUserOnlineCache().find(uuid)) .orElse(UserOnlineInfo.anonymous()); return new org.springframework.security.core.userdetails.User(userOnlineInfo.getUsername(), userOnlineInfo.getPassword(), Collections.emptyList()); } }
[ "415481084@qq.com" ]
415481084@qq.com
efca776e2ea19ea74c5d53918a4c54aa2a0478c1
db96b76094730056966dd1bb04b2fb4a88271549
/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/SmartBatteryAction.java
aa6681c36b7c8ea835ae9634afe3134b196a86b3
[]
no_license
dylanbroodryk/Android-system-apps
48335f66d3fad6532cda19e192f11af1f69dce00
50f6f11f70906260a710cbeb66a92fba72410504
refs/heads/master
2022-03-14T16:15:33.277628
2022-02-12T04:56:41
2022-02-12T04:56:41
228,542,760
0
0
null
2019-12-17T05:50:11
2019-12-17T05:50:10
null
UTF-8
Java
false
false
2,160
java
/* * Copyright (C) 2019 The Android Open Source Project * * 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.android.car.developeroptions.fuelgauge.batterytip.actions; import android.app.settings.SettingsEnums; import androidx.fragment.app.Fragment; import com.android.car.developeroptions.R; import com.android.car.developeroptions.SettingsActivity; import com.android.car.developeroptions.core.SubSettingLauncher; import com.android.car.developeroptions.fuelgauge.SmartBatterySettings; import com.android.settingslib.core.instrumentation.Instrumentable; public class SmartBatteryAction extends BatteryTipAction { private SettingsActivity mSettingsActivity; private Fragment mFragment; public SmartBatteryAction(SettingsActivity settingsActivity, Fragment fragment) { super(settingsActivity.getApplicationContext()); mSettingsActivity = settingsActivity; mFragment = fragment; } /** * Handle the action when user clicks positive button */ @Override public void handlePositiveAction(int metricsKey) { mMetricsFeatureProvider.action(mContext, SettingsEnums.ACTION_TIP_OPEN_SMART_BATTERY, metricsKey); new SubSettingLauncher(mSettingsActivity) .setSourceMetricsCategory(mFragment instanceof Instrumentable ? ((Instrumentable) mFragment).getMetricsCategory() : Instrumentable.METRICS_CATEGORY_UNKNOWN) .setDestination(SmartBatterySettings.class.getName()) .setTitleRes(R.string.smart_battery_manager_title) .launch(); } }
[ "yuchuangu85@gmail.com" ]
yuchuangu85@gmail.com
90ea86ba3cfea860f4097cdbe2e87c1652c572e4
eace11a5735cfec1f9560e41a9ee30a1a133c5a9
/AMT/experiment/lab/eayilykilledmutants/MOS/AOIS_13/MealOrderingSystem.java
a7e0a86afee2a6dc5d7e45d9c6cb3f96f2fa822f
[]
no_license
phantomDai/mypapers
eb2fc0fac5945c5efd303e0206aa93d6ac0624d0
e1aa1236bbad5d6d3b634a846cb8076a1951485a
refs/heads/master
2021-07-06T18:27:48.620826
2020-08-19T12:17:03
2020-08-19T12:17:03
162,563,422
0
1
null
null
null
null
UTF-8
Java
false
false
6,782
java
package labprograms.MOS.mutants.AOIS_13; import labprograms.MOS.sourceCode.MSR; import java.util.Scanner; public class MealOrderingSystem { private int numberOfRequestedBundlesOfFlowers; private int numberOfChildPassengers; private int numberOfFirstClassSeats; private int numberOfBusinessClassSeats; private int numberOfEconomicClassSeats; private int numberOfCrewMembers; private int numberOfPilots; public MSR msr; public MSR generateMSR( java.lang.String aircraftmodel, java.lang.String changeinthenumberofcrewmembers, int newnumberofcrewmembers, java.lang.String changeinthenumberofpilots, int newnumberofpilots, int numberofchildpassengers, int numberofrequestedbundlesofflowers ) { this.msr = new MSR(); if (aircraftmodel.equals( "747200" )) { numberOfFirstClassSeats = 0; numberOfBusinessClassSeats = 20; numberOfEconomicClassSeats = 150; numberOfCrewMembers = 10; numberOfPilots = 2; numberOfChildPassengers = numberofchildpassengers; numberOfRequestedBundlesOfFlowers = numberofrequestedbundlesofflowers; } else { if (aircraftmodel.equals( "747300" )) { numberOfFirstClassSeats = 5; numberOfBusinessClassSeats = 25; numberOfEconomicClassSeats = 200; numberOfCrewMembers = 12; numberOfPilots = 3; numberOfChildPassengers = numberofchildpassengers; numberOfRequestedBundlesOfFlowers = ++numberofrequestedbundlesofflowers; } else { if (aircraftmodel.equals( "747400" )) { numberOfFirstClassSeats = 10; numberOfBusinessClassSeats = 30; numberOfEconomicClassSeats = 240; numberOfCrewMembers = 14; numberOfPilots = 3; numberOfChildPassengers = numberofchildpassengers; numberOfRequestedBundlesOfFlowers = numberofrequestedbundlesofflowers; } else { if (aircraftmodel.equals( "000200" )) { numberOfFirstClassSeats = 0; numberOfBusinessClassSeats = 35; numberOfEconomicClassSeats = 210; numberOfCrewMembers = 13; numberOfPilots = 2; numberOfChildPassengers = numberofchildpassengers; numberOfRequestedBundlesOfFlowers = numberofrequestedbundlesofflowers; } else { if (aircraftmodel.equals( "000300" )) { numberOfFirstClassSeats = 10; numberOfBusinessClassSeats = 40; numberOfEconomicClassSeats = 215; numberOfCrewMembers = 14; numberOfPilots = 3; numberOfChildPassengers = numberofchildpassengers; numberOfRequestedBundlesOfFlowers = numberofrequestedbundlesofflowers; } else { new java.io.IOException( "Invalid stafflevel" ); } } } } } if (changeinthenumberofcrewmembers.equals( "y" )) { numberOfCrewMembers = newnumberofcrewmembers; } if (changeinthenumberofpilots.equals( "y" )) { numberOfPilots = newnumberofpilots; } this.msr.numberOfFirstClassMeals = this.numberOfFirstClassSeats * 2; this.msr.numberOfBusinessClassMeals = this.numberOfBusinessClassSeats * 2; this.msr.numberOfEconomicClassMeals = this.numberOfEconomicClassSeats * 2; this.msr.numberOfMealsForCrewMembers = this.numberOfCrewMembers * 2; this.msr.numberOfMealsForPilots = this.numberOfPilots * 2; this.msr.numberOfChildMeals = this.numberOfChildPassengers * 2; this.msr.numberOfBundlesOfFlowers = this.numberOfRequestedBundlesOfFlowers; return this.msr; } public static void main( java.lang.String[] args ) { java.util.Scanner s = new java.util.Scanner( System.in ); java.lang.String aircraftmodel = null; System.out.println( "please enter aircraft model:\n" ); aircraftmodel = s.next(); System.out.println( "if there is a change in the number of crew members, enter\"y\". Otherwise, enter\"n\"\n" ); java.lang.String changeInTheNumberOfCrewMembers = s.next(); int numberofcrewmembers; if (changeInTheNumberOfCrewMembers.equals( "y" )) { System.out.println( "please enter new number of crew memebers:\n" ); numberofcrewmembers = s.nextInt(); } else { numberofcrewmembers = 0; } System.out.println( "if there is a change in the number of pilots, enter\"y\". Otherwise, enter\"n\"\n" ); java.lang.String changeInTheNumberOfPilots = s.next(); int numberofpilots; if (changeInTheNumberOfPilots.equals( "y" )) { System.out.println( "please enter new number of crew memebers:\n" ); numberofpilots = s.nextInt(); } else { numberofpilots = 0; } System.out.println( "please enter number of child passengers:\n" ); int numberOfChildPassengers = s.nextInt(); System.out.println( "please enter number of requested bundles of flowers:\n" ); int numberOfRequestedBundlesOfFlowers = s.nextInt(); MealOrderingSystem sys = new MealOrderingSystem(); MSR order = sys.generateMSR( aircraftmodel, changeInTheNumberOfCrewMembers, numberofcrewmembers, changeInTheNumberOfPilots, numberofpilots, numberOfChildPassengers, numberOfRequestedBundlesOfFlowers ); System.out.println( "Number of first-class meals: " + String.valueOf( order.numberOfFirstClassMeals + "\n" ) ); System.out.println( "Number of business-class meals: " + String.valueOf( order.numberOfBusinessClassMeals + "\n" ) ); System.out.println( "Number of economic-class meals: " + String.valueOf( order.numberOfEconomicClassMeals + "\n" ) ); System.out.println( "Number of meals for crew members : " + String.valueOf( order.numberOfMealsForCrewMembers + "\n" ) ); System.out.println( "Number of meals for pilots : " + String.valueOf( order.numberOfMealsForPilots + "\n" ) ); System.out.println( "Number of child meals : " + String.valueOf( order.numberOfChildMeals + "\n" ) ); System.out.println( "Number of bundles of flowers : " + String.valueOf( order.numberOfBundlesOfFlowers + "\n" ) ); } }
[ "daihepeng@sina.cn" ]
daihepeng@sina.cn
e5e81ec8347cabb7dba23e5ba5ed220f6fc79756
e48a314346563f5353c9f2a2b038641b7aeb3f9f
/spring-security-client/src/main/java/com/hendisantika/security/springsecurityclient/config/OauthConfig.java
d3cccd2403c342c3060b8ab247ab051450be8fc8
[]
no_license
dalalsunil1986/spring-security-oauth-example
1be0bb280b502c89501dca5812f7e14f880656a2
74eafd81fa41a319397418009f74077325585356
refs/heads/master
2020-06-16T12:00:05.230607
2018-10-15T23:37:15
2018-10-15T23:37:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,035
java
package com.hendisantika.security.springsecurityclient.config; import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; /** * Created by IntelliJ IDEA. * Project : jwt-security * User: hendisantika * Email: hendisantika@gmail.com * Telegram : @hendisantika34 * Date: 08/10/17 * Time: 06.52 * To change this template use File | Settings | File Templates. */ @EnableOAuth2Sso @Configuration public class OauthConfig extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exception { http.antMatcher("/**") .authorizeRequests() .antMatchers("/", "/login**") .permitAll() .anyRequest() .authenticated(); } }
[ "hendisantika@gmail.com" ]
hendisantika@gmail.com
58bbc65c7124be944977ff33166c5d2777c126fa
571554c7986602fc2e97d4e5ef4bcfb81f3b6697
/src/main/java/com/ponxu/blog4j/service/ITagService.java
1cf1760ebf546eb7bf36dfe8511714b2a226f401
[]
no_license
linux-web/blog4j
fe1b9311bcc5a2be3d848ede98cdd6a15ec9ea50
bf9f00cdb18c791be33c6f19b719f2d6ed9f0ddd
refs/heads/master
2021-01-20T08:19:09.141752
2014-07-30T08:50:33
2014-07-30T08:50:33
22,241,353
2
0
null
null
null
null
UTF-8
Java
false
false
620
java
package com.ponxu.blog4j.service; import java.util.List; import com.ponxu.blog4j.model.Tag; /** * 标签 * * @author wanggang * */ public interface ITagService { /** 根据ID获取标签 */ public Tag getById(int id); /** 所有标签 */ public List<Tag> queryAll(); /** 添加标签 */ public int add(Tag tag); /** 修改标签 */ public void modify(Tag tag); /** 删除标签 */ public void remove(int id); /** 文章数量-1 */ public void addCount(int id); /** 文章数量-1 */ public void reduceCount(int id); /** 移除文章的标签 */ public void removePostTag(int postid); }
[ "wanggang@zxisl.com" ]
wanggang@zxisl.com
33bf9f25823ae632722b9b3e70dccf7e296e9668
177196715afb69e969a370c99ca4db12c33c162f
/Dfg/src/main/java/com/gooker/dfg/utils/CommonUtil.java
c2693f7dc6f8b65535b8969fd991c037ddd19e28
[]
no_license
tianshan20081/DFG
1f1faeaf57e384b7831120895a97395395052a64
4fcfbc88e7991e1c1b0441439c97f6a5339016a1
refs/heads/master
2021-01-18T08:13:55.444043
2015-08-17T13:26:06
2015-08-17T13:26:06
37,449,024
1
0
null
null
null
null
UTF-8
Java
false
false
1,552
java
/** * */ package com.gooker.dfg.utils; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; /** * Mar 23, 2014 11:54:44 AM */ public class CommonUtil { public static void showInfoDialog(Context context, String message) { showInfoDialog(context, message, "提示", "确定", null); } public static boolean isValidEmail(String paramString) { String regex = "[a-zA-Z0-9_\\.]{1,}@(([a-zA-z0-9]-*){1,}\\.){1,3}[a-zA-z\\-]{1,}"; if (paramString.matches(regex)) { return true; } else { return false; } } public static boolean isValidMobiNumber(String paramString) { String regex = "^1\\d{10}$"; if (paramString.matches(regex)) { return true; } return false; } public static void showInfoDialog(Context context, String message, String titleStr, String positiveStr, DialogInterface.OnClickListener onClickListener) { AlertDialog.Builder localBuilder = new AlertDialog.Builder(context); localBuilder.setTitle(titleStr); localBuilder.setMessage(message); if (onClickListener == null) onClickListener = new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }; localBuilder.setPositiveButton(positiveStr, onClickListener); localBuilder.show(); } }
[ "user.github@github.com" ]
user.github@github.com