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
ee1be621f30fbb15de440b2473af67d364e5e726
97fd02f71b45aa235f917e79dd68b61c62b56c1c
/src/main/java/com/tencentcloudapi/ckafka/v20190819/models/CreateCdcClusterRequest.java
6c0ab313417d36e0f710af6ba53fabc248e7545c
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-java
7df922f7c5826732e35edeab3320035e0cdfba05
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
refs/heads/master
2023-09-04T10:51:57.854153
2023-09-01T03:21:09
2023-09-01T03:21:09
129,837,505
537
317
Apache-2.0
2023-09-13T02:42:03
2018-04-17T02:58:16
Java
UTF-8
Java
false
false
6,679
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.ckafka.v20190819.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class CreateCdcClusterRequest extends AbstractModel{ /** * cdc的id */ @SerializedName("CdcId") @Expose private String CdcId; /** * vpcId,一个地域只有唯一一个vpcid用于CDC */ @SerializedName("CdcVpcId") @Expose private String CdcVpcId; /** * 每个CDC集群有唯一一个子网ID */ @SerializedName("CdcSubnetId") @Expose private String CdcSubnetId; /** * 所在可用区ID */ @SerializedName("ZoneId") @Expose private Long ZoneId; /** * cdc集群的总带宽 */ @SerializedName("Bandwidth") @Expose private Long Bandwidth; /** * cdc集群的总磁盘 */ @SerializedName("DiskSize") @Expose private Long DiskSize; /** * 数据盘类型 */ @SerializedName("DiskType") @Expose private String DiskType; /** * 系统盘类型 */ @SerializedName("SystemDiskType") @Expose private String SystemDiskType; /** * Get cdc的id * @return CdcId cdc的id */ public String getCdcId() { return this.CdcId; } /** * Set cdc的id * @param CdcId cdc的id */ public void setCdcId(String CdcId) { this.CdcId = CdcId; } /** * Get vpcId,一个地域只有唯一一个vpcid用于CDC * @return CdcVpcId vpcId,一个地域只有唯一一个vpcid用于CDC */ public String getCdcVpcId() { return this.CdcVpcId; } /** * Set vpcId,一个地域只有唯一一个vpcid用于CDC * @param CdcVpcId vpcId,一个地域只有唯一一个vpcid用于CDC */ public void setCdcVpcId(String CdcVpcId) { this.CdcVpcId = CdcVpcId; } /** * Get 每个CDC集群有唯一一个子网ID * @return CdcSubnetId 每个CDC集群有唯一一个子网ID */ public String getCdcSubnetId() { return this.CdcSubnetId; } /** * Set 每个CDC集群有唯一一个子网ID * @param CdcSubnetId 每个CDC集群有唯一一个子网ID */ public void setCdcSubnetId(String CdcSubnetId) { this.CdcSubnetId = CdcSubnetId; } /** * Get 所在可用区ID * @return ZoneId 所在可用区ID */ public Long getZoneId() { return this.ZoneId; } /** * Set 所在可用区ID * @param ZoneId 所在可用区ID */ public void setZoneId(Long ZoneId) { this.ZoneId = ZoneId; } /** * Get cdc集群的总带宽 * @return Bandwidth cdc集群的总带宽 */ public Long getBandwidth() { return this.Bandwidth; } /** * Set cdc集群的总带宽 * @param Bandwidth cdc集群的总带宽 */ public void setBandwidth(Long Bandwidth) { this.Bandwidth = Bandwidth; } /** * Get cdc集群的总磁盘 * @return DiskSize cdc集群的总磁盘 */ public Long getDiskSize() { return this.DiskSize; } /** * Set cdc集群的总磁盘 * @param DiskSize cdc集群的总磁盘 */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get 数据盘类型 * @return DiskType 数据盘类型 */ public String getDiskType() { return this.DiskType; } /** * Set 数据盘类型 * @param DiskType 数据盘类型 */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get 系统盘类型 * @return SystemDiskType 系统盘类型 */ public String getSystemDiskType() { return this.SystemDiskType; } /** * Set 系统盘类型 * @param SystemDiskType 系统盘类型 */ public void setSystemDiskType(String SystemDiskType) { this.SystemDiskType = SystemDiskType; } public CreateCdcClusterRequest() { } /** * 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 CreateCdcClusterRequest(CreateCdcClusterRequest source) { if (source.CdcId != null) { this.CdcId = new String(source.CdcId); } if (source.CdcVpcId != null) { this.CdcVpcId = new String(source.CdcVpcId); } if (source.CdcSubnetId != null) { this.CdcSubnetId = new String(source.CdcSubnetId); } if (source.ZoneId != null) { this.ZoneId = new Long(source.ZoneId); } if (source.Bandwidth != null) { this.Bandwidth = new Long(source.Bandwidth); } if (source.DiskSize != null) { this.DiskSize = new Long(source.DiskSize); } if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.SystemDiskType != null) { this.SystemDiskType = new String(source.SystemDiskType); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "CdcId", this.CdcId); this.setParamSimple(map, prefix + "CdcVpcId", this.CdcVpcId); this.setParamSimple(map, prefix + "CdcSubnetId", this.CdcSubnetId); this.setParamSimple(map, prefix + "ZoneId", this.ZoneId); this.setParamSimple(map, prefix + "Bandwidth", this.Bandwidth); this.setParamSimple(map, prefix + "DiskSize", this.DiskSize); this.setParamSimple(map, prefix + "DiskType", this.DiskType); this.setParamSimple(map, prefix + "SystemDiskType", this.SystemDiskType); } }
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
65f3b45735313b863d1dee982abcc74ace3858a5
ff0c33ccd3bbb8a080041fbdbb79e29989691747
/jdk.internal.vm.compiler/org.graalvm.compiler.virtual/src/org/graalvm/compiler/virtual/phases/ea/EffectList.java
6d324826b8dcacae27b7f230d213afdedcd97917
[]
no_license
jiecai58/jdk15
7d0f2e518e3f6669eb9ebb804f3c89bbfb2b51f0
b04691a72e51947df1b25c31175071f011cb9bbe
refs/heads/main
2023-02-25T00:30:30.407901
2021-01-29T04:48:33
2021-01-29T04:48:33
330,704,930
0
1
null
null
null
null
UTF-8
Java
false
false
6,802
java
/* * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * */ package org.graalvm.compiler.virtual.phases.ea; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import org.graalvm.compiler.debug.DebugContext; import org.graalvm.compiler.debug.GraalError; import org.graalvm.compiler.graph.Node; import org.graalvm.compiler.nodes.StructuredGraph; /** * An {@link EffectList} can be used to maintain a list of {@link Effect}s and backtrack to a * previous state by truncating the list. */ public class EffectList implements Iterable<EffectList.Effect> { public interface Effect { default boolean isVisible() { return true; } default boolean isCfgKill() { return false; } void apply(StructuredGraph graph, ArrayList<Node> obsoleteNodes); } public interface SimpleEffect extends Effect { @Override default void apply(StructuredGraph graph, ArrayList<Node> obsoleteNodes) { apply(graph); } void apply(StructuredGraph graph); } private static final Effect[] EMPTY_ARRAY = new Effect[0]; private static final String[] EMPTY_STRING_ARRAY = new String[0]; private final DebugContext debug; private Effect[] effects = EMPTY_ARRAY; private String[] names = EMPTY_STRING_ARRAY; private int size; public EffectList(DebugContext debug) { this.debug = debug; } private void enlarge(int elements) { int length = effects.length; if (size + elements > length) { while (size + elements > length) { length = Math.max(length * 2, 4); } effects = Arrays.copyOf(effects, length); if (debug.isLogEnabled()) { names = Arrays.copyOf(names, length); } } } public void add(String name, SimpleEffect effect) { add(name, (Effect) effect); } public void add(String name, Effect effect) { assert effect != null; enlarge(1); if (debug.isLogEnabled()) { names[size] = name; } effects[size++] = effect; } public void addAll(EffectList list) { enlarge(list.size); System.arraycopy(list.effects, 0, effects, size, list.size); if (debug.isLogEnabled()) { System.arraycopy(list.names, 0, names, size, list.size); } size += list.size; } public void insertAll(EffectList list, int position) { assert position >= 0 && position <= size; enlarge(list.size); System.arraycopy(effects, position, effects, position + list.size, size - position); System.arraycopy(list.effects, 0, effects, position, list.size); if (debug.isLogEnabled()) { System.arraycopy(names, position, names, position + list.size, size - position); System.arraycopy(list.names, 0, names, position, list.size); } size += list.size; } public int checkpoint() { return size; } public int size() { return size; } public void backtrack(int checkpoint) { assert checkpoint <= size; size = checkpoint; } @Override public Iterator<Effect> iterator() { return new Iterator<Effect>() { int index; final int listSize = EffectList.this.size; @Override public boolean hasNext() { return index < listSize; } @Override public Effect next() { return effects[index++]; } @Override public void remove() { throw new UnsupportedOperationException(); } }; } public Effect get(int index) { if (index >= size) { throw new IndexOutOfBoundsException(); } return effects[index]; } public void clear() { size = 0; } public boolean isEmpty() { return size == 0; } public void apply(StructuredGraph graph, ArrayList<Node> obsoleteNodes, boolean cfgKills) { boolean message = false; for (int i = 0; i < size(); i++) { Effect effect = effects[i]; if (effect.isCfgKill() == cfgKills) { if (!message) { message = true; debug.log(cfgKills ? " ==== cfg kill effects" : " ==== effects"); } try { effect.apply(graph, obsoleteNodes); } catch (Throwable t) { StringBuilder str = new StringBuilder(); toString(str, i); throw new GraalError(t).addContext("effect", str); } if (effect.isVisible() && debug.isLogEnabled()) { StringBuilder str = new StringBuilder(); toString(str, i); debug.log(" %s", str); } } } } private void toString(StringBuilder str, int i) { Effect effect = effects[i]; str.append(getName(i)).append(" ["); boolean first = true; for (Field field : effect.getClass().getDeclaredFields()) { try { field.setAccessible(true); Object object = field.get(effect); if (object == this) { // Inner classes could capture the EffectList itself. continue; } str.append(first ? "" : ", ").append(field.getName()).append("=").append(format(object)); first = false; } catch (SecurityException | IllegalAccessException e) { throw new RuntimeException(e); } } str.append(']'); } private static String format(Object object) { if (object != null && Object[].class.isAssignableFrom(object.getClass())) { return Arrays.toString((Object[]) object); } return "" + object; } @Override public String toString() { StringBuilder str = new StringBuilder(); for (int i = 0; i < size(); i++) { Effect effect = get(i); if (effect.isVisible()) { toString(str, i); str.append('\n'); } } return str.toString(); } private String getName(int i) { if (debug.isLogEnabled()) { return names[i]; } else { return ""; } } }
[ "caijie2@tuhu.cn" ]
caijie2@tuhu.cn
6f2a446074fd8409cf20607d8ae80ab052a379e3
1888aaeee291e77ad66190ab70fa7ded9017a5a3
/src/main/java/org/caleydo/view/domino/internal/Placeholder.java
32073676a06b10a36b822ba0e1e5c7f7afdbd8d6
[]
no_license
Caleydo/org.caleydo.view.domino
f26cd7bae5949b84af12f565ec7d6f3c927c48e5
88501298b76a26d5a8decfb2efe4e62637fe95df
refs/heads/develop
2020-05-16T22:51:43.509767
2016-12-15T17:08:42
2016-12-15T17:08:42
14,726,017
2
3
null
2016-12-15T17:08:44
2013-11-26T18:51:37
Java
UTF-8
Java
false
false
1,762
java
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *******************************************************************************/ package org.caleydo.view.domino.internal; import gleem.linalg.Vec2f; import org.caleydo.core.data.collection.EDimension; import org.caleydo.core.util.color.Color; import org.caleydo.view.domino.api.model.EDirection; /** * @author Samuel Gratzl * */ public class Placeholder extends APlaceholder { private final Node neighbor; private final EDirection dir; private final boolean transpose; public Placeholder(Node neighbor, EDirection dir, boolean transpose) { this.neighbor = neighbor; this.dir = dir; this.transpose = transpose; Vec2f size = neighbor.getSize(); Vec2f loc = neighbor.getAbsoluteLocation(); final float c = Block.DETACHED_OFFSET; final float offset = 0; switch (dir) { case NORTH: setBounds(loc.x(), loc.y() - c - offset, size.x(), c); break; case SOUTH: setBounds(loc.x(), loc.y() + size.y() + offset, size.x(), c); break; case WEST: setBounds(loc.x() - c - offset, loc.y(), c, size.y()); break; case EAST: setBounds(loc.x() + size.x() + offset, loc.y(), c, size.y()); break; } } @Override protected EDimension getDimension() { return dir.asDim(); } @Override protected Color getColor() { return Color.LIGHT_GRAY; } @Override protected void dropNode(Node node) { Domino domino = findParent(Domino.class); if (transpose) { node.transposeMe(); } domino.addPreview(neighbor, dir, node); } }
[ "samuel_gratzl@gmx.at" ]
samuel_gratzl@gmx.at
5ce3cdfdb1514eed3f85080d4bc7108717456c35
92d43e59ae705d61d30c05752a81bc58ffc042eb
/bug-definitions/src/test/java/org/bugby/pattern/example/pmd/basic/EmptyIfStmtNoBug.java
25a2170ed0230bc31cf71d07ae82e45d3c7226a0
[]
no_license
bugby/bugby
e2f6fc447a5b7d40b5bb8bdbc0fb8d10d0496ff4
7a4619a9ff9b4c613c1357dda8e2a1005508f21d
refs/heads/master
2021-01-23T19:13:25.509958
2016-03-24T16:23:26
2016-03-24T16:23:26
11,278,266
1
0
null
null
null
null
UTF-8
Java
false
false
160
java
package org.bugby.pattern.example.pmd.basic; public class EmptyIfStmtNoBug { void bar(int x) { if (x == 0) { System.out.println("x is zero"); } } }
[ "ax.craciun@gmail.com" ]
ax.craciun@gmail.com
fe07b3f9ae276dc2f8e1bdad9c4c48ca64770b3b
9d18776fd39c8fd4546e496b59a4ae8491736abb
/027-concurrent-java/concurrent-java-basic-again/src/main/java/communication/apply/BlockingQueue.java
a2130453687930784e736f15ae84c191fdeabf40
[ "Apache-2.0" ]
permissive
WendellTeam/code-java
2da6d127fcd7ccbe59ec5b7d4b92904a43614f65
054aee871f7e25c0a5766ce5422e71be49dd543f
refs/heads/master
2023-06-11T23:53:22.087548
2021-07-02T13:51:46
2021-07-02T13:51:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
163
java
package communication.apply; public interface BlockingQueue<T> { void put(T value) throws InterruptedException; T take() throws InterruptedException; }
[ "iskeqi@126.com" ]
iskeqi@126.com
7e5da10ca6081451ca0b689ba70d852be56c8bb3
e4da97ab81ec813fbecade1ad1fc4f346aed35e6
/src/core/models/src/main/java/org/ogema/model/devices/sensoractordevices/MultiSwitchBox.java
8832d37afc42285e7bd975b54cf66d8c12120827
[ "Apache-2.0" ]
permissive
JoKoo619/ogema
49ae2afbdfed4141e1e2c9c4375b0788219ea6ed
21e3d6827e416893461e9e8a8b80c01d75d135f9
refs/heads/public
2020-12-11T09:30:27.575002
2015-11-27T09:42:42
2015-11-27T09:42:42
49,029,409
0
1
null
2016-01-04T23:23:52
2016-01-04T23:23:48
null
UTF-8
Java
false
false
1,180
java
/** * This file is part of OGEMA. * * OGEMA is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 * as published by the Free Software Foundation. * * OGEMA is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OGEMA. If not, see <http://www.gnu.org/licenses/>. */ package org.ogema.model.devices.sensoractordevices; import org.ogema.core.model.ResourceList; import org.ogema.model.prototypes.PhysicalElement; /** * Device to be provided by hardware driver. Represents a switching/measuring plug adapter that can be plugged/installed * between a device and its grid connection for switching/measuring purposes and that contains more than one unit for * switching/measurement */ public interface MultiSwitchBox extends PhysicalElement { /** Set of the individual switch box units. */ public ResourceList<SingleSwitchBox> switchboxes(); }
[ "jan.lapp@iwes.fraunhofer.de" ]
jan.lapp@iwes.fraunhofer.de
977b24af2a78b18e8e462820fff09429e340fc9c
9358108f386b8c718f10c0150043f3af60e64712
/integrella-microservices-producer-fpml/src/main/java/com/integrella/microservices/IntegrellaMicroservicesApplication.java
6a4811233101861680b6053ce2adf63f7b03b2d2
[]
no_license
kashim-git/integrella-microservices
6148b7b1683ff6b787ff5d9dba7ef0b15557caa4
f92d6a2ea818267364f90f2f1b2d373fbab37cfc
refs/heads/master
2021-01-20T02:53:03.118896
2017-04-28T13:31:55
2017-04-28T13:31:55
89,459,083
0
0
null
null
null
null
UTF-8
Java
false
false
731
java
package com.integrella.microservices; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.ImportResource; @SpringBootApplication @ImportResource("IntegrellaMicroservicesApplication.xml") public class IntegrellaMicroservicesApplication { public static void main(String[] args) throws Exception{ ConfigurableApplicationContext ctx = new SpringApplication(IntegrellaMicroservicesApplication.class).run(args); System.out.println("Integrella MDM Adapter started.\nHit Enter to terminate"); System.in.read(); ctx.close(); } }
[ "Kashim@192.168.47.69" ]
Kashim@192.168.47.69
82b551a756d860b7d6debf1c04f3724a858a338a
146a30bee123722b5b32c0022c280bbe7d9b6850
/depsWorkSpace/bc-java-master/core/src/main/java/org/mightyfish/pqc/crypto/mceliece/McElieceKeyGenerationParameters.java
742e4d1808b1fb33802400709153333276dd44b3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
GLC-Project/java-experiment
1d5aa7b9974c8ae572970ce6a8280e6a65417837
b03b224b8d5028dd578ca0e7df85d7d09a26688e
refs/heads/master
2020-12-23T23:47:57.341646
2016-02-13T16:20:45
2016-02-13T16:20:45
237,313,620
0
1
null
2020-01-30T21:56:54
2020-01-30T21:56:53
null
UTF-8
Java
false
false
546
java
package org.mightyfish.pqc.crypto.mceliece; import java.security.SecureRandom; import org.mightyfish.crypto.KeyGenerationParameters; public class McElieceKeyGenerationParameters extends KeyGenerationParameters { private McElieceParameters params; public McElieceKeyGenerationParameters( SecureRandom random, McElieceParameters params) { // XXX key size? super(random, 256); this.params = params; } public McElieceParameters getParameters() { return params; } }
[ "a.eslampanah@live.com" ]
a.eslampanah@live.com
0aa33c8723dc80c7beae3fbd92f90a1d78276683
ed77cac4e30a7222ba7037ddbf664e7059a210bf
/presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/MetadataConfig.java
f5af460294bf8868c7605d4e49a5f0cf46041b31
[ "Apache-2.0" ]
permissive
treasure-data/presto
ff85ed1056c307ec8aef055f8db8f6224ef7c269
3d4749994847e75059923436e6d3ce6914babf2b
refs/heads/master
2023-07-24T15:50:57.665143
2023-02-21T14:29:12
2023-02-21T14:29:12
14,758,597
11
2
Apache-2.0
2019-02-07T05:34:45
2013-11-27T20:44:49
Java
UTF-8
Java
false
false
2,275
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.prestosql.plugin.raptor.legacy.metadata; import io.airlift.configuration.Config; import io.airlift.configuration.ConfigDescription; import io.airlift.units.Duration; import javax.validation.constraints.NotNull; import static java.util.concurrent.TimeUnit.MINUTES; public class MetadataConfig { private Duration startupGracePeriod = new Duration(5, MINUTES); private Duration reassignmentDelay = new Duration(0, MINUTES); private Duration reassignmentInterval = new Duration(0, MINUTES); @NotNull public Duration getStartupGracePeriod() { return startupGracePeriod; } @Config("raptor.startup-grace-period") @ConfigDescription("Minimum uptime before allowing bucket or shard reassignments") public MetadataConfig setStartupGracePeriod(Duration startupGracePeriod) { this.startupGracePeriod = startupGracePeriod; return this; } @NotNull public Duration getReassignmentDelay() { return reassignmentDelay; } @Config("raptor.reassignment-delay") @ConfigDescription("Minimum delay before allowing reassignments for a node") public MetadataConfig setReassignmentDelay(Duration reassignmentDelay) { this.reassignmentDelay = reassignmentDelay; return this; } @NotNull public Duration getReassignmentInterval() { return reassignmentInterval; } @Config("raptor.reassignment-interval") @ConfigDescription("Minimum interval between reassignments for different nodes") public MetadataConfig setReassignmentInterval(Duration reassignmentInterval) { this.reassignmentInterval = reassignmentInterval; return this; } }
[ "david@acz.org" ]
david@acz.org
a07ebaba99fa6d0b01ec8307baa40a48bb61ac80
2bbe8bbb03914d146abd603a048391295394b8b6
/src/main/java/com/hhly/cmscore/persistence/operate/po/OperateAdMenuPO.java
b890a9a74a1f5c3a492c4d40c5396a840e8223c3
[]
no_license
a12791602/lotto-cms-core-wl
f07ba3c8cbdb5e6cfadc2e72d70aa4e5e989f6d4
044390f687820d4eacfe535347e34ba12310d34b
refs/heads/master
2021-09-22T15:26:18.262603
2018-09-11T09:26:07
2018-09-11T09:26:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,600
java
package com.hhly.cmscore.persistence.operate.po; import com.hhly.skeleton.base.bo.BaseBO; import com.hhly.skeleton.cms.operatemgr.vo.OperateAdMenuVO; /** * @desc 广告图页面和位置级联关系 * @author Tony Wang * @date 2017年5月10日 * @company 益彩网络科技公司 * @version 1.0 */ @SuppressWarnings("serial") public class OperateAdMenuPO extends BaseBO { /** * 主键id */ private Long id; /** * 广告图页面 */ private Integer menu; /** * 多个广告图位置 */ private String position; private String createBy; private String modifyBy; /** * 备注 */ private String remark; public OperateAdMenuPO(OperateAdMenuVO vo) { this.id = vo.getId(); this.menu = vo.getMenu(); this.position = vo.getPosition(); this.createBy = vo.getCreateBy(); this.modifyBy = vo.getModifyBy(); this.remark = vo.getRemark(); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Integer getMenu() { return menu; } public void setMenu(Integer menu) { this.menu = menu; } public String getPosition() { return position; } public void setPosition(String position) { this.position = position; } public String getCreateBy() { return createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } public String getModifyBy() { return modifyBy; } public void setModifyBy(String modifyBy) { this.modifyBy = modifyBy; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } }
[ "wulong0207@sina.com" ]
wulong0207@sina.com
208b855442c90ca45681d07d321bca3b956d9ef9
fa32414cd8cb03a7dc3ef7d85242ee7914a2f45f
/app/src/main/java/com/google/android/gms/signin/internal/CheckServerAuthResult.java
0849cbda763a697730f812a0ea7c1707c4d0ec52
[]
no_license
SeniorZhai/Mob
75c594488c4ce815a1f432eb4deacb8e6f697afe
cac498f0b95d7ec6b8da1275b49728578b64ef01
refs/heads/master
2016-08-12T12:49:57.527237
2016-03-10T06:57:09
2016-03-10T06:57:09
53,562,752
4
2
null
null
null
null
UTF-8
Java
false
false
1,264
java
package com.google.android.gms.signin.internal; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.api.Scope; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; public class CheckServerAuthResult implements SafeParcelable { public static final Creator<CheckServerAuthResult> CREATOR = new zzc(); final int zzCY; final boolean zzaJY; final List<Scope> zzaJZ; CheckServerAuthResult(int versionCode, boolean newAuthCodeRequired, List<Scope> additionalScopes) { this.zzCY = versionCode; this.zzaJY = newAuthCodeRequired; this.zzaJZ = additionalScopes; } public CheckServerAuthResult(boolean newAuthCodeRequired, Set<Scope> additionalScopes) { this(1, newAuthCodeRequired, zzf(additionalScopes)); } private static List<Scope> zzf(Set<Scope> set) { return set == null ? Collections.emptyList() : Collections.unmodifiableList(new ArrayList(set)); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { zzc.zza(this, dest, flags); } }
[ "370985116@qq.com" ]
370985116@qq.com
0cf34d16941d4afd18001ccd2c96af1f892d3eb0
ddedbbb79b7768d7e3fa2d5c8e0fe57a0ab57556
/bitcamp-java-basic/src/step25/ex2/Exam02_view.java
48fcc81494bb736b566ff969907f99ed5c33c0bd
[]
no_license
pparksuuu/bitcamp
74a7a13617f4e703aeaa4c6a8516f33522e30888
e274466bea069ca9c52714ad0aa418d788218e10
refs/heads/master
2021-01-24T20:13:03.837667
2018-08-29T08:23:47
2018-08-29T08:23:47
123,245,201
0
0
null
null
null
null
UTF-8
Java
false
false
1,374
java
// 게시물 관리 - 목록 package step25.ex2; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Scanner; public class Exam02_view { public static void main(String[] args) throws Exception { Scanner keyScan = new Scanner(System.in); System.out.print("조회할 게시물 번호? "); String no = keyScan.nextLine(); Class.forName("com.mysql.cj.jdbc.Driver"); java.sql.Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/java106db?serverTimezone=UTC&useSSL=false", "java106", "1111"); PreparedStatement stmt = con.prepareStatement( "select bno,titl,cont,rdt from ex_board where bno=?"); stmt.setString(1, no); ResultSet rs = stmt.executeQuery(); if (rs.next()) { System.out.printf("번호 :%d\n",rs.getInt("bno")); System.out.printf("제목 :%s\n",rs.getString("titl")); System.out.printf("내용 :%s\n",rs.getString("cont")); System.out.printf("등록일 :%s\n",rs.getString("rdt")); } else { System.out.println("해당 번호의 게시물이 없습니다!"); } rs.close(); stmt.close(); con.close(); keyScan.close(); } }
[ "supr2000@gmail.com" ]
supr2000@gmail.com
e0de0f30ada3b2b12a6e19a6bb597eb7784828d7
62faa058c143b305d9eaffbec8d4da7b38e095c0
/src/java/fr/paris/lutece/util/pool/service/LuteceConnectionService.java
7511e0c92172efce5c090a9488de1a1fa2524100
[]
permissive
dominiquesalasvega/lutece-core
c3d4c37d3513e6773c2e248288b576577e01aa60
ca28d51f03a2ca65508e4d8411b6da655e31b643
refs/heads/master
2020-06-17T16:17:49.268072
2020-05-15T00:09:32
2020-05-15T00:09:32
195,974,016
1
0
BSD-3-Clause
2019-07-09T09:11:32
2019-07-09T09:11:32
null
UTF-8
Java
false
false
6,893
java
/* * Copyright (c) 2002-2017, Mairie de Paris * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice * and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice * and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * License 1.0 */ package fr.paris.lutece.util.pool.service; import org.apache.log4j.Logger; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Hashtable; import javax.sql.DataSource; /** * Lutece Connection Service */ public class LuteceConnectionService implements ConnectionService { private String _strPoolName; private Logger _logger; private ConnectionPool _connPool; /** * Sets the pool name * * @param strPoolName * The pool name */ public void setPoolName( String strPoolName ) { _strPoolName = strPoolName; } /** * Returns the pool name * * @return The pool name */ public String getPoolName( ) { return _strPoolName; } /** * Sets the logger * * @param logger * The logger */ public void setLogger( Logger logger ) { _logger = logger; } /** * Gets the pool logger * * @return The logger */ public Logger getLogger( ) { return _logger; } /** * Initializes the connection pool * * @param htParamsConnectionPool * Pool parameters */ public void init( Hashtable<String, String> htParamsConnectionPool ) { String url = htParamsConnectionPool.get( getPoolName( ) + ".url" ); if ( url == null ) { _logger.error( "No URL specified for the pool " + getPoolName( ) ); } String user = htParamsConnectionPool.get( getPoolName( ) + ".user" ); if ( user == null ) { _logger.error( "No user specified for the pool " + getPoolName( ) ); } String password = htParamsConnectionPool.get( getPoolName( ) + ".password" ); if ( password == null ) { _logger.error( "No password specified for the pool " + getPoolName( ) ); } // load of the driver String strDiverClassName = htParamsConnectionPool.get( getPoolName( ) + ".driver" ); try { Driver driver = (Driver) Class.forName( strDiverClassName ).newInstance( ); DriverManager.registerDriver( driver ); _logger.info( "Registered JDBC driver " + strDiverClassName ); } catch( NullPointerException e ) { _logger.error( "Can't register JDBC driver: " + strDiverClassName + " because the property driver is not defined", e ); } catch( Exception e ) { _logger.error( "Can't register JDBC driver: " + strDiverClassName, e ); } int maxConns = ( htParamsConnectionPool.get( getPoolName( ) + ".maxconns" ) == null ) ? 0 : Integer.parseInt( htParamsConnectionPool.get( getPoolName( ) + ".maxconns" ) ); int initConns = ( htParamsConnectionPool.get( getPoolName( ) + ".initconns" ) == null ) ? 0 : Integer.parseInt( htParamsConnectionPool .get( getPoolName( ) + ".initconns" ) ); int timeOut = ( htParamsConnectionPool.get( getPoolName( ) + ".logintimeout" ) == null ) ? 5 : Integer.parseInt( htParamsConnectionPool .get( getPoolName( ) + ".logintimeout" ) ); String checkValidConnectionSql = ( htParamsConnectionPool.get( getPoolName( ) + ".checkvalidconnectionsql" ) == null ) ? "" : htParamsConnectionPool .get( getPoolName( ) + ".checkvalidconnectionsql" ); _connPool = new ConnectionPool( getPoolName( ), url, user, password, maxConns, initConns, timeOut, _logger, checkValidConnectionSql ); } /** * Get a connection * * @return A connection */ public Connection getConnection( ) { try { Connection connection = _connPool.getConnection( ); return connection; } catch( SQLException e ) { _logger.error( e.getMessage( ), e ); return null; } } /** * Free the connection * * @param conn * The connection to release */ public void freeConnection( Connection conn ) { _connPool.freeConnection( conn ); } /** * Release the pool */ public void release( ) { _connPool.release( ); } /** * Returns the connection pool * * @return the connection pool */ public ConnectionPool getConnectionPool( ) { return _connPool; } /** * {@inheritDoc} */ public int getCurrentConnections( ) { return _connPool.getConnectionCount( ); } /** * {@inheritDoc} */ public int getMaxConnections( ) { return _connPool.getMaxConnectionCount( ); } /** * {@inheritDoc } */ public String getPoolProvider( ) { return "Lutece"; } /** * {@inheritDoc } */ public DataSource getDataSource( ) { return _connPool; } }
[ "pierrelevy@users.noreply.github.com" ]
pierrelevy@users.noreply.github.com
ebc7ab3f95e2e1992cc25fac73e7e92050a46ed9
563e8db7dba0131fb362d8fb77a852cae8ff4485
/Blagosfera/domain/src/main/java/ru/askor/blagosfera/domain/community/CommunityDocumentRequest.java
7ce4183585c4d60ac498306b6fd2a8923f891b51
[]
no_license
askor2005/blagosfera
13bd28dcaab70f6c7d6623f8408384bdf337fd21
c6cf8f1f7094ac7ccae3220ad6518343515231d0
refs/heads/master
2021-01-17T18:05:08.934188
2016-10-14T16:53:38
2016-10-14T16:53:48
70,894,701
0
0
null
null
null
null
UTF-8
Java
false
false
452
java
package ru.askor.blagosfera.domain.community; import lombok.Data; import ru.askor.blagosfera.domain.document.Document; import ru.askor.blagosfera.domain.user.User; import java.util.ArrayList; import java.util.List; /** * * Created by vgusev on 15.07.2016. */ @Data public class CommunityDocumentRequest { private Long id; private User user; private Community community; private List<Document> documents = new ArrayList<>(); }
[ "askor2005@yandex.ru" ]
askor2005@yandex.ru
2f081749853e4897d9a483fa62c831d70dd59ab1
3d1168c443a154bc4a4e75e12db9d0d1edf57de8
/eagleboard-services/eagleboard-service-dxf2/src/main/java/com/mass3d/dxf2/metadata/sync/exception/MetadataSyncImportException.java
d554c084935272bd8aa72ab43b640137120d18c7
[]
no_license
Hamza-ye/eagleboard-platform
cabdb2445fe5d42b4f7bc69b6a9273e1a11d6a29
7c178b466ebf7eeef31c7e9288b8a3bafc87339f
refs/heads/master
2023-01-07T06:07:22.794363
2020-11-09T22:35:34
2020-11-09T22:35:34
307,714,180
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package com.mass3d.dxf2.metadata.sync.exception; public class MetadataSyncImportException extends RuntimeException { public MetadataSyncImportException( String message ) { super( message ); } public MetadataSyncImportException( Throwable cause ) { super( cause ); } public MetadataSyncImportException( String message, Throwable cause ) { super( message, cause ); } }
[ "7amza.it@gmail.com" ]
7amza.it@gmail.com
926827a68e21e943ac733392e3900bc8844bd6df
2af17e20773cb5f80ae5e27b53da5904b83cf5a4
/source code/opeserver_Onsite_Release_Source_Code/src/coreftpsrc/com/coldcore/coloradoftp/connection/impl/GenericConnectionPool.java
cb3f81f46647d6bbd54c0471542360445b88c436
[]
no_license
debjava/OPE_releases
d977e8a16d7f33230456566f555fe50522162151
d9d1c34d998dd128392e2e6e9572fab7da3fd41d
refs/heads/master
2020-04-08T09:07:19.787283
2018-11-26T18:21:09
2018-11-26T18:21:09
159,208,875
0
0
null
null
null
null
UTF-8
Java
false
false
3,833
java
package com.coldcore.coloradoftp.connection.impl; import com.coldcore.coloradoftp.connection.Connection; import com.coldcore.coloradoftp.connection.ConnectionPool; import com.coldcore.coloradoftp.connection.TerminatedException; import com.coldcore.coloradoftp.core.Core; import com.coldcore.coloradoftp.core.CoreStatus; import com.coldcore.coloradoftp.factory.ObjectFactory; import com.coldcore.coloradoftp.factory.ObjectName; import org.apache.log4j.Logger; import java.util.HashSet; import java.util.Iterator; import java.util.Set; /** * @see com.coldcore.coloradoftp.connection.ConnectionPool * * This class is thread safe as it takes care of all synchronizations. */ public class GenericConnectionPool implements ConnectionPool, Runnable { private static Logger log = Logger.getLogger(GenericConnectionPool.class); protected Set<Connection> connections; protected Core core; protected Thread thr; protected long sleep; protected boolean running; public GenericConnectionPool() { log.info("GenericConnectionPool : GenericConnectionPool"); System.out.println("GenericConnectionPool : GenericConnectionPool"); sleep = 1000L; } /** Get thread sleep time * @return Time in mills */ public long getSleep() { return sleep; } /** Set thread sleep time * @param sleep Time in mills */ public void setSleep(long sleep) { this.sleep = sleep; } public void initialize() throws Exception { if (connections == null) connections = new HashSet<Connection>(); core = (Core) ObjectFactory.getObject(ObjectName.CORE); //Start this class if (!running) { running = true; thr = new Thread(this); thr.start(); } } public void add(Connection connection) { synchronized (connections) { connections.add(connection); } } public void remove(Connection connection) { synchronized (connections) { connections.remove(connection); } } public int size() { synchronized (connections) { return connections.size(); } } public void run() { while (running) { synchronized (connections) { Connection connection = null; Iterator<Connection> it = connections.iterator(); while (it.hasNext()) try { connection = it.next(); //Remove if destroyed if (connection.isDestroyed()) { it.remove(); continue; } //If a server is poisoned then spread the poison to all its connections if (core.getStatus() == CoreStatus.POISONED && !connection.isPoisoned()) { connection.poison(); } //Service connection connection.service(); } catch (TerminatedException e) { //Normal termination (exception has a message) log.debug(e); try { connection.destroy(); } catch (Throwable ex) {} } catch (Throwable e) { //Failed connection log.error("Connection failed", e); try { connection.destroy(); } catch (Throwable ex) {} } } try { Thread.sleep(sleep); } catch (Throwable e) {} } log.debug("Connection pool thread finished"); } public void destroy() { running = false; synchronized (connections) { for (Connection connection : connections) try { connection.destroy(); } catch (Throwable e) {} connections.clear(); } //Wait for this class to stop (just in case) try { thr.join(30000); } catch (Throwable e) {} } public Set<Connection> list() { synchronized (connections) { return new HashSet<Connection>(connections); } } }
[ "deba.java@gmail.com" ]
deba.java@gmail.com
acabd30b7081b6836f4cc6a7c84674c0a51af521
ea77a89e5c4d234e9a9f090e7f1aea296f81d6c2
/info/directio/src/main/java/com/asakusafw/lang/info/directio/DirectFilePortInfo.java
f1a0b3a42dede1d5b0158157c3ed041daf589449
[ "Apache-2.0" ]
permissive
cocoatomo/asakusafw-compiler
18b52a54e96a44a5384c43166ed547e6403a4416
a1f90bf1b2d7a0060795f6a0eaeb248d2ceb211f
refs/heads/master
2021-01-21T12:20:06.124621
2017-05-01T07:41:52
2017-05-01T07:41:52
91,787,015
0
0
null
2017-05-19T09:19:23
2017-05-19T08:59:18
Java
UTF-8
Java
false
false
4,533
java
/** * Copyright 2011-2017 Asakusa Framework Team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.asakusafw.lang.info.directio; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; /** * An abstract implementation of Direct file I/O port information. * @since 0.4.1 */ public abstract class DirectFilePortInfo { static final String ID_NAME = "name"; static final String ID_DESCRIPTION = "description"; static final String ID_BASE_PATH = "basePath"; static final String ID_RESOURCE_PATTERN = "resourcePattern"; static final String ID_DATA_TYPE = "dataType"; static final String ID_FORMAT = "format"; private final String name; private final String descriptionClass; private final String basePath; private final String resourcePattern; private final String dataType; private final String formatClass; /** * Creates a new instance. * @param name the port name * @param descriptionClass the description class * @param basePath the base path * @param resourcePattern the resource pattern * @param dataType the data type * @param formatClass the data format class */ protected DirectFilePortInfo( String name, String descriptionClass, String basePath, String resourcePattern, String dataType, String formatClass) { this.name = name; this.descriptionClass = descriptionClass; this.basePath = basePath; this.resourcePattern = resourcePattern; this.dataType = dataType; this.formatClass = formatClass; } /** * Returns the port name. * @return the port name */ @JsonProperty(ID_NAME) public String getName() { return name; } /** * Returns the description class name. * @return the description class name */ @JsonProperty(ID_DESCRIPTION) public String getDescriptionClass() { return descriptionClass; } /** * Returns the base path. * @return the base path */ @JsonProperty(ID_BASE_PATH) public String getBasePath() { return basePath; } /** * Returns the resource pattern. * @return the resource pattern */ @JsonProperty(ID_RESOURCE_PATTERN) public String getResourcePattern() { return resourcePattern; } /** * Returns the data type name. * @return the data type name */ @JsonProperty(ID_DATA_TYPE) public String getDataType() { return dataType; } /** * Returns the data format class name. * @return the data format class name */ @JsonProperty(ID_FORMAT) public String getFormatClass() { return formatClass; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Objects.hashCode(name); result = prime * result + Objects.hashCode(descriptionClass); result = prime * result + Objects.hashCode(basePath); result = prime * result + Objects.hashCode(resourcePattern); result = prime * result + Objects.hashCode(dataType); result = prime * result + Objects.hashCode(formatClass); return result; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } DirectFilePortInfo other = (DirectFilePortInfo) obj; return Objects.equals(name, other.name) && Objects.equals(descriptionClass, other.descriptionClass) && Objects.equals(basePath, other.basePath) && Objects.equals(resourcePattern, other.resourcePattern) && Objects.equals(dataType, other.dataType) && Objects.equals(formatClass, other.formatClass); } }
[ "arakawa@nautilus-technologies.com" ]
arakawa@nautilus-technologies.com
4452cf7223a8428ed05368c1739bacc3566f507d
c885ef92397be9d54b87741f01557f61d3f794f3
/results/Jsoup-87/org.jsoup.parser.HtmlTreeBuilderState/BBC-F0-opt-70/tests/8/org/jsoup/parser/HtmlTreeBuilderState_ESTest_scaffolding.java
ff67c5638c2ef95a95a4183f175679d135704850
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
5,005
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Thu Oct 14 00:10:39 GMT 2021 */ package org.jsoup.parser; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class HtmlTreeBuilderState_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.jsoup.parser.HtmlTreeBuilderState"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public static void setSystemProperties() { /*No java.lang.System property to set*/ } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(HtmlTreeBuilderState_ESTest_scaffolding.class.getClassLoader() , "org.jsoup.parser.HtmlTreeBuilderState$18", "org.jsoup.parser.HtmlTreeBuilderState$19", "org.jsoup.parser.HtmlTreeBuilderState$16", "org.jsoup.parser.HtmlTreeBuilderState$17", "org.jsoup.parser.HtmlTreeBuilderState$14", "org.jsoup.parser.TreeBuilder", "org.jsoup.parser.Token$StartTag", "org.jsoup.parser.HtmlTreeBuilderState$15", "org.jsoup.nodes.DocumentType", "org.jsoup.nodes.LeafNode", "org.jsoup.nodes.Element", "org.jsoup.parser.HtmlTreeBuilderState$12", "org.jsoup.parser.HtmlTreeBuilderState$13", "org.jsoup.parser.HtmlTreeBuilderState$10", "org.jsoup.parser.HtmlTreeBuilderState$Constants", "org.jsoup.parser.HtmlTreeBuilderState$11", "org.jsoup.parser.Token", "org.jsoup.parser.Token$Tag", "org.jsoup.parser.Token$Character", "org.jsoup.parser.HtmlTreeBuilderState$2", "org.jsoup.parser.HtmlTreeBuilderState$1", "org.jsoup.nodes.Node", "org.jsoup.parser.HtmlTreeBuilderState$4", "org.jsoup.parser.HtmlTreeBuilderState$3", "org.jsoup.parser.Token$EndTag", "org.jsoup.parser.HtmlTreeBuilderState", "org.jsoup.parser.HtmlTreeBuilderState$23", "org.jsoup.parser.HtmlTreeBuilderState$9", "org.jsoup.parser.HtmlTreeBuilderState$24", "org.jsoup.parser.HtmlTreeBuilderState$21", "org.jsoup.parser.HtmlTreeBuilderState$22", "org.jsoup.parser.HtmlTreeBuilderState$6", "org.jsoup.parser.HtmlTreeBuilderState$5", "org.jsoup.parser.HtmlTreeBuilderState$20", "org.jsoup.parser.HtmlTreeBuilderState$8", "org.jsoup.parser.HtmlTreeBuilder", "org.jsoup.parser.HtmlTreeBuilderState$7", "org.jsoup.nodes.FormElement" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(HtmlTreeBuilderState_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "org.jsoup.parser.HtmlTreeBuilderState", "org.jsoup.parser.HtmlTreeBuilderState$Constants", "org.jsoup.parser.TokeniserState" ); } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
334bca0de9a046e0bfabaf8545d7a32c97ffc016
522c4abef6c0410d52dd5b8433bf4487d46c1c25
/efamily-task/src/main/java/com/winterframework/efamily/service/schedule/HeartRateAlarmTask.java
c0765c412e8a683905845fc94aa81571aac9e332
[]
no_license
xjiafei/efamily
05b1c71e1f7f485132e5d6243e7af7208b567517
0401d6ec572c7959721c294408f6d525e3d12866
refs/heads/master
2020-03-10T11:42:00.359799
2018-04-13T08:13:58
2018-04-13T08:13:58
129,361,914
0
3
null
null
null
null
UTF-8
Java
false
false
4,663
java
package com.winterframework.efamily.service.schedule; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.winterframework.efamily.base.model.Context; import com.winterframework.efamily.base.redis.RedisClient; import com.winterframework.efamily.base.utils.DateUtils; import com.winterframework.efamily.base.utils.JsonUtils; import com.winterframework.efamily.common.IntegerSpan; import com.winterframework.efamily.common.RedisPrefix; import com.winterframework.efamily.dao.IEjlUserDao; import com.winterframework.efamily.entity.EfDeviceAlarm; import com.winterframework.efamily.entity.EfUserHealthSetting; import com.winterframework.efamily.entity.EjlHealthHeartRate; import com.winterframework.efamily.entity.EjlUser; import com.winterframework.efamily.service.IEfUserHealthSettingService; import com.winterframework.efamily.service.ITskDeviceAlarmService; import com.winterframework.efamily.service.ITskHealthHeartRateService; /** * 心率告警任务 * @ClassName * @Description * @author ibm * 2016年9月21日 */ public class HeartRateAlarmTask { private Logger log = LoggerFactory.getLogger(HeartRateAlarmTask.class); @Resource(name = "RedisClient") private RedisClient redisClient; @Resource(name = "tskHealthHeartRateServiceImpl") private ITskHealthHeartRateService tskHealthHeartRateService; @Resource(name = "efUserHealthSettingServiceImpl") private IEfUserHealthSettingService efUserHealthSettingService; @Resource(name = "tskDeviceAlarmServiceImpl") private ITskDeviceAlarmService tskDeviceAlarmService; @Resource(name = "ejlUserDaoImpl") private IEjlUserDao ejlUserDaoImpl; private final int beforeMin=30; private final String defaultRateSpan="60~100"; public void execute() throws Exception{ /** * 1.获取拥有最新心率数据的设备(上个上传时间至今) * 2.获取设备对应的用户健康设置 * 3.循环处理各个用户异常心率数据 有则告警 */ String alarmLastTime=redisClient.get(RedisPrefix.HEALTH_HEARTRATE_ALARM_LASTTIME); Date lastTime=null; Date curTime=DateUtils.currentDate(); if(null!=alarmLastTime){ lastTime=DateUtils.getDate(Long.valueOf(alarmLastTime)); }else{ lastTime=DateUtils.addMinutes(curTime, -1*beforeMin); } List<Map<String,Long>> mapList=tskHealthHeartRateService.getLastestUserIdDeviceIdListByCreateTime(lastTime,curTime); if(null!=mapList){ for(Map<String,Long> devmap:mapList){ Long userId=devmap.get("userId"); Long deviceId=devmap.get("deviceId"); EjlUser deviceUser = ejlUserDaoImpl.getById(userId); try{ EfUserHealthSetting userHealthSett= efUserHealthSettingService.getByUserId(userId); if(null==userHealthSett){ userHealthSett=new EfUserHealthSetting(); userHealthSett.setRateSpan(defaultRateSpan); } IntegerSpan span=new IntegerSpan(userHealthSett.getRateSpan()); Integer low=span.getDown(); Integer high=span.getUp(); List<EjlHealthHeartRate> rateList=tskHealthHeartRateService.getSortListByUserIdAndDeviceIdAndSpanAndCreateTime(userId,deviceId,low,high,lastTime,curTime); Context ctx=new Context(userId,deviceId); if(null!=rateList){ for(EjlHealthHeartRate rate:rateList){ try{ Long rt=rate.getRate(); int type=rt.longValue()<low?1:2; EfDeviceAlarm deviceAlarm=new EfDeviceAlarm(); deviceAlarm.setUserId(userId); deviceAlarm.setDeviceId(deviceId); deviceAlarm.setType(EfDeviceAlarm.Type.HEART.getValue()); Map<String,String> map=new HashMap<String,String>(); map.put("heartRate", rate.getRate()+""); map.put("type", type+""); map.put("nickName", deviceUser.getNickName()!=null?deviceUser.getNickName():deviceUser.getPhone()); map.put("deviceId", deviceId+""); map.put("familyId", deviceUser.getFamilyId()+""); deviceAlarm.setValue(JsonUtils.toJson(map)); deviceAlarm.setTime(rate.getToTime()); deviceAlarm.setStatus(EfDeviceAlarm.Status.UNHANDLED.getValue()); tskDeviceAlarmService.save(ctx, deviceAlarm); }catch(Exception e){ e.printStackTrace(); log.error("generate device heart rate alarm failed.healthId="+rate.getId(),e.getMessage()); } } } }catch(Exception e){ e.printStackTrace(); log.error("generate device heart rate alarm failed. userId="+userId,e.getMessage()); } } } redisClient.set(RedisPrefix.HEALTH_HEARTRATE_ALARM_LASTTIME, curTime.getTime()+""); } }
[ "xjiafei126@126.com" ]
xjiafei126@126.com
ee6ceac70b35cba24f624efb485cb3d8e8dc4b12
07490456008c59d78e549932164cbb4892512c23
/nsjp-servicios-impl/src/main/java/mx/gob/segob/nsjp/service/informepolicial/impl/ConsultarEnviarInformePolicialHomologadoServiceImpl.java
9b695036d861852e23aea0cab9177fb32006dafc
[]
no_license
RichichiDomotics/poder-judicial
80d713177aaa846c812a3822df53cd14b9e50871
a288862a3e50cfe6b943d5b353ccce5ed6e88e46
refs/heads/master
2016-09-06T21:52:39.734925
2015-03-28T06:02:59
2015-03-28T06:02:59
33,019,991
0
1
null
null
null
null
WINDOWS-1250
Java
false
false
2,931
java
/** * Nombre del Programa : ConsultarEnviarInformePolicialHomologadoServiceImpl.java * Autor : GustavoBP * Compania : Ultrasist * Proyecto : NSJP Fecha: 07/09/2011 * Marca de cambio : N/A * Descripcion General : Describir el objetivo de la clase de manera breve * Programa Dependiente :N/A * Programa Subsecuente :N/A * Cond. de ejecucion :N/A * Dias de ejecucion :N/A Horario: N/A * MODIFICACIONES *------------------------------------------------------------------------------ * Autor :N/A * Compania :N/A * Proyecto :N/A Fecha: N/A * Modificacion :N/A *------------------------------------------------------------------------------ */ package mx.gob.segob.nsjp.service.informepolicial.impl; import mx.gob.segob.nsjp.comun.enums.excepciones.CodigoError; import mx.gob.segob.nsjp.comun.excepcion.NSJPNegocioException; import mx.gob.segob.nsjp.dto.informepolicial.InformePolicialHomologadoDTO; import mx.gob.segob.nsjp.service.informepolicial.ConsultarEnviarInformePolicialHomologadoService; import mx.gob.segob.nsjp.service.informepolicial.ConsultarInformePolicialHomologadoService; import mx.gob.segob.nsjp.service.infra.ProcuraduriaClienteService; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; /** * Implementación del servicio que permite Consultar el IPH por Folio * y posteriormente invocar al WS para ser enviado PGJ * * @version 1.0 * @author GustavoBP * */ @Service @Transactional public class ConsultarEnviarInformePolicialHomologadoServiceImpl implements ConsultarEnviarInformePolicialHomologadoService { private final static Logger logger = Logger.getLogger(ConsultarInformePolicialHomologadoServiceImpl.class); @Autowired private ProcuraduriaClienteService procuraduriaClienteService; @Autowired private ConsultarInformePolicialHomologadoService iphService; @Override public InformePolicialHomologadoDTO consultarEnviarInformePolicialHomologado( Long folioIPH, Long idAgencia) throws NSJPNegocioException { if(folioIPH==null || folioIPH<0) throw new NSJPNegocioException(CodigoError.PARAMETROS_INSUFICIENTES); InformePolicialHomologadoDTO informePolicialHomologadoDTO = iphService.consultarInformePolicialHomologadoPorFolio(folioIPH); if(informePolicialHomologadoDTO==null || informePolicialHomologadoDTO.getInformePolicialHomologadoId()==null) throw new NSJPNegocioException(CodigoError.INFORMACION_PARAMETROS_ERRONEA); return procuraduriaClienteService.enviarInformePolicialHomologado(informePolicialHomologadoDTO, idAgencia); } }
[ "larryconther@gmail.com" ]
larryconther@gmail.com
200ca05881739fc4e3f8732e663438fe544288da
9a024b64f20c4fda4d73b2d32c949d81a40d3902
/seltaf/src/com/aqm/staf/library/databin/PartyFollowupListEntity.java
85319750c385bfa8157873869a7353e1094acd17
[]
no_license
Khaire/NIA
1d25a8f66761a8ca024b05417a73b9d82b3acd28
876d5d1a5fe4f9953bd1d0ef8911ffc8aafa16b6
refs/heads/master
2022-12-01T01:40:40.690861
2019-05-24T06:25:14
2019-05-24T06:25:14
188,364,339
0
0
null
2022-11-24T06:12:23
2019-05-24T06:22:50
Java
UTF-8
Java
false
false
231
java
package com.aqm.staf.library.databin; public class PartyFollowupListEntity extends GenericEntity { public PartyFollowupListEntity() { super("PartyFollowupListEntity"); // TODO Auto-generated constructor stub } }
[ "Temp@AQMIT-DSK-10231" ]
Temp@AQMIT-DSK-10231
03e22f2f6e3be2335b6bdf20d725146f7db1e9ad
57ab5ccfc179da80bed6dc6aa1407c2181cee926
/co.moviired:support-audit/src/src/main/java/co/moviired/supportaudit/src/main/java/co/moviired/supportaudit/domain/src/main/java/co/moviired/supportaudit/domain/response/Response.java
59c4dfd96a79e2537fa658525dc57ccbaf9d2130
[]
no_license
sandys/filtro
7190e8e8af7c7b138922c133a7a0ffe9b9b8efa7
9494d10444983577a218a2ab2e0bbce374c6484e
refs/heads/main
2022-12-08T20:46:08.611664
2020-09-11T09:26:22
2020-09-11T09:26:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
523
java
package co.moviired.supportaudit.domain.response; /** * Copyright @2019. Movii, SAS. Todos los derechos reservados. * * @author Suarez, Juan * @version 1, 2019 * @since 1.0 */ import co.moviired.audit.domain.dto.AuditDto; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.util.List; @Data @JsonInclude(JsonInclude.Include.NON_NULL) public class Response { private String code; private String message; private List<AuditDto> audits; private AuditDto audit; }
[ "me@deletescape.ch" ]
me@deletescape.ch
1082f4acdd1258b05163da94ba514dae2819dae5
7f17c2ad530ace1ba3467c787a3cca39c2a417bc
/spi/src/main/java/io/machinecode/chainlink/spi/marshalling/Marshalling.java
ec507d7ac9e53e248ee78698fe8ce017a4168971
[ "Apache-2.0" ]
permissive
BrentDouglas/chainlink
acc3c197a07bc199425f5458f6253c8f5a3e4c92
376e194ccdd2e6e2f1a4a4b39c7e7f0a4dd81ca3
refs/heads/master
2021-01-15T13:48:23.808562
2015-11-16T19:19:11
2015-11-16T19:19:11
17,303,791
3
0
null
null
null
null
UTF-8
Java
false
false
3,177
java
/* * Copyright 2015 Brent Douglas and other contributors * as indicated by the @author tags. 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 io.machinecode.chainlink.spi.marshalling; import java.io.Serializable; /** * <p>Responsible for serializing, deserializing and cloning values.</p> * * @author <a href="mailto:brent.n.douglas@gmail.com">Brent Douglas</a> * @since 1.0 */ public interface Marshalling { /** * <p>Copy the value.</p> * * @param that The value to copy. * @param <T> The value type. * @return A value that is {@link #equals(Object)} to the parameter but not is not the same object. * @throws Exception */ <T> T clone(final T that) throws Exception; /** * <p>Write the value to a byte array.</p> * * @param that The value to write. * @return The serialized data. * @throws Exception */ byte[] marshallLong(final long that) throws Exception; /** * <p>Write the value to a byte array.</p> * * @param that The value to write. * @return The serialized data. * @throws Exception */ byte[] marshall(final Serializable that) throws Exception; /** * <p>Read an object from a byte array.</p> * * @param that The bytes to read from. * @param loader The classloader to load classes from. * @return The deserialized object. * @throws ClassNotFoundException If the object is of a type that is not available to the provided classloader. * @throws Exception */ Serializable unmarshall(final byte[] that, final ClassLoader loader) throws Exception; /** * <p>Read a long from a byte array.</p> * * @param that The bytes to read from. * @param loader The classloader to load classes from. * @return The deserialized long. * @throws ClassNotFoundException If the object is of a type that is not available to the provided classloader. * @throws Exception */ long unmarshallLong(final byte[] that, final ClassLoader loader) throws Exception; /** * <p>Read a typed object from a byte array.</p> * * @param that The bytes to read from. * @param clazz The class of the object to load. * @param loader The classloader to load classes from. * @param <T> The object type. * @return The deserialized object. * @throws ClassNotFoundException If the object is of a type that is not available to the provided classloader. * @throws Exception */ <T extends Serializable> T unmarshall(final byte[] that, final Class<T> clazz, final ClassLoader loader) throws Exception; }
[ "brent.n.douglas@gmail.com" ]
brent.n.douglas@gmail.com
343e899634aa50830792c63106c05947b7207397
21da478fcabe0a979bfb3857896dfee6863c5c6a
/module4/jquery_and_ajax/bai_tap/ajax-blog/src/main/java/com/codegym/AjaxBlogApplication.java
7f43cd9044e0e6a725c4c6746f2d138e10953597
[]
no_license
chauluong1995/C0620G1-LuongPhuChau
e1de1ef3207a950ba18d284a29b7d9325ec925df
a558b5b6c8a70920af29f88e63f830d7e04eea86
refs/heads/master
2023-06-24T03:25:33.621127
2021-05-26T07:49:06
2021-05-26T07:49:06
275,071,138
1
5
null
2021-07-22T21:00:34
2020-06-26T04:13:09
HTML
UTF-8
Java
false
false
320
java
package com.codegym; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class AjaxBlogApplication { public static void main(String[] args) { SpringApplication.run(AjaxBlogApplication.class, args); } }
[ "supea52795@gmail.com" ]
supea52795@gmail.com
24c782758e0e7e8bfb0fbb4f1c7e37530bef2d24
35d105d4e23bd5e5e58221c3d07625e32f2ad052
/hadrumaths/hadrumaths-java-test/src/test/java/net/vpc/scholar/hadrumaths/test/TestMeshPlot.java
c2c85865b6e7b5054957703f69de4c1a08b4c9c9
[]
no_license
imenk1986/scholar-mw
a7f9478bd2a56dbcb442217da5429a15030cdd6c
d649ed0b00d7982bf0e537c2bb582eaeeff3df96
refs/heads/master
2021-06-23T07:24:23.828936
2017-08-14T21:20:03
2017-08-14T21:20:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,287
java
//package test; // //import net.vpc.scholar.math.plot.mesh.Mesh3DPlot; // //import javax.swing.*; // ///** // * @author Taha Ben Salah (taha.bensalah@gmail.com) // * @creationtime 31 juil. 2007 21:51:18 // */ //public class TestMeshPlot { // public static void main(String args[]) { //// JColorChooser.showDialog(null,"",null); // JFrame frame = new JFrame("net.vpc.sholar.math.plot.mesh.MeshBrowser"); // double[] x = new double[100]; // double[] y = new double[200]; // double[][] z = new double[y.length][x.length]; // for (int i = 0; i < y.length; i++) { // for (int j = 0; j < x.length; j++) { // x[j] = j * (1.0 / x.length) * 2 * Math.PI; // y[i] = i * (1.0 / y.length) * 2 * Math.PI; // z[i][j] = 30 * Math.cos(1 * x[j]) * Math.sin(1 * y[i]); // } // } // // // Mesh3DPlot meshbrowser = new Mesh3DPlot("test",x, y, z, null); //// meshbrowser.dsteps(); //// meshbrowser.start(); // System.out.println("Starting vpc.math.plot.mesh.MeshBrowser"); // frame.add("Center", meshbrowser); // frame.setSize(680, 437); // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // frame.setVisible(true); // } //}
[ "canard77" ]
canard77
14c6acbeebfee5853e5b470c0d81cdb509dd78a1
5f8fdf99f76653e8d26986f7cea1caa829d9abf4
/6 Command Pattern/src/vendors/Light.java
297ca3e76835e9432687af8cbd6cfd5133adeb87
[]
no_license
nanwan03/HeadFirst-Design-Pattern-Self
08048b67e61bb376f89a1d31511613cfc0108a32
341430a228f5610c440f101a8dc145490e7c2f38
refs/heads/master
2021-01-10T07:00:20.930669
2016-02-20T22:00:44
2016-02-20T22:00:44
51,129,682
0
0
null
null
null
null
UTF-8
Java
false
false
496
java
package vendors; public class Light { String location; int level; public Light(String location) { this.location = location; } public void on() { level = 100; System.out.println("Light is on"); } public void off() { level = 0; System.out.println("Light is off"); } public void dim(int level) { this.level = level; if (level == 0) { off(); } else { System.out.println("Light is dimmed to " + level + "%"); } } public int getLevel() { return level; } }
[ "wn1842@gmail.com" ]
wn1842@gmail.com
47040213b38f3f947523fbc26b45d59506d97a94
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/7/7_4dc06185e28d4e23c284a9f3a9b9ec754124c38d/Court/7_4dc06185e28d4e23c284a9f3a9b9ec754124c38d_Court_t.java
dbe016aebba2d341336e9e6a0fe9b78e2cc341f7
[]
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
886
java
package BE; public class Court { private int id; private String courtName; /** * Constructor of the Court class * @param id The court ID * @param courtName The name of a court */ public Court(int id, String courtName) { this.id = id; this.courtName = courtName; } /** * Returns the ID of a court * @return the id */ public int getId() { return id; } /** * Returns the name of a court * @return the courtName */ public String getCourtName() { return courtName; } /** * Sets the name of a court * @param courtName the courtName to set */ public void setCourtName(String courtName) { this.courtName = courtName; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
b2267b1c956e8da181d47876fc542cc620a47215
627dafa165ee4420680b4144c849e141596ae0b0
/wecardio/wecardio/src/main/java/com/borsam/repository/entity/extract/OutInfo.java
cd72778ac4fdf25c3bac0a9a623ad98a4e2abb71
[]
no_license
tan-tian/wecardio
97339383a00ecd090dd952ea3c4c3f32dac8a6f2
5e291d19bce2d4cebd43040e4195a26d18d947c3
refs/heads/master
2020-04-03T01:01:57.429064
2018-10-25T15:26:50
2018-10-25T15:26:50
154,917,227
0
0
null
null
null
null
UTF-8
Java
false
false
7,349
java
package com.borsam.repository.entity.extract; import com.hiteam.common.base.repository.entity.BaseEntity; import com.hiteam.common.base.repository.entity.LongEntity; import org.hibernate.search.annotations.DocumentId; import javax.persistence.*; import javax.validation.constraints.Digits; import javax.validation.constraints.Min; import java.math.BigDecimal; import java.util.Date; /** * Entity - 出账记录 * Created by tantian on 2015/8/9. */ @Entity @Table(name = "t_out_info") public class OutInfo extends LongEntity { private ExtractOrder order; // 提现单据 private Integer type; // 支付方式:0-银行转账 1-现金支付 private BigDecimal money; // 出账金额 private Integer bankType; // 银行类型:见枚举配置 private String accountName; // 银行账户 private String bankNo; // 银行卡号 private String bankName; // 开户行名称 private String bankSeq; // 银行流水号 private Long outTime; // 出账时间 private Long createId; // 创建人ID private String createName; // 创建人名称 private Long created; // 创建时间 /** * 保存前处理 */ @PrePersist public void prePersist() { this.setCreated(new Date().getTime() / 1000); } @Override @DocumentId @Id @Column(name = "id") public Long getId() { return super.getId(); } /** * 获取提现单据 * @return 提现单据 */ @OneToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumn public ExtractOrder getOrder() { return order; } /** * 设置提现单据 * @param order 提现单据 */ public void setOrder(ExtractOrder order) { this.order = order; } /** * 获取支付方式 * @return 支付方式:0-银行转账 1-现金支付 */ @Column(name = "type") public Integer getType() { return type; } /** * 设置支付方式 * @param type 支付方式:0-银行转账 1-现金支付 */ public void setType(Integer type) { this.type = type; } /** * 获取出账金额 * @return 出账金额 */ @Min(0) @Digits(integer = 10, fraction = 2) @Column(name = "out_money", precision = 10, scale = 2) public BigDecimal getMoney() { return money; } /** * 设置出账金额 * @param money 出账金额 */ public void setMoney(BigDecimal money) { this.money = money; } /** * 获取银行类型 * @return 银行类型 */ @Column(name = "bank_type") public Integer getBankType() { return bankType; } /** * 设置银行类型 * @param bankType 银行类型 */ public void setBankType(Integer bankType) { this.bankType = bankType; } /** * 获取银行账户名称 * @return 银行账户名称 */ @Column(name = "account_name", length = 64) public String getAccountName() { return accountName; } /** * 设置银行账户名称 * @param accountName 银行账户名称 */ public void setAccountName(String accountName) { this.accountName = accountName; } /** * 获取银行卡号 * @return 银行卡号 */ @Column(name = "bank_no", length = 64) public String getBankNo() { return bankNo; } /** * 设置银行卡号 * @param bankNo 银行卡号 */ public void setBankNo(String bankNo) { this.bankNo = bankNo; } /** * 获取开户行名称 * @return 开户行名称 */ @Column(name = "bank_name", length = 128) public String getBankName() { return bankName; } /** * 设置开户行名称 * @param bankName 开户行名称 */ public void setBankName(String bankName) { this.bankName = bankName; } /** * 获取银行流水号 * @return 银行流水号 */ @Column(name = "bank_seq", length = 128) public String getBankSeq() { return bankSeq; } /** * 设置银行流水号 * @param bankSeq 银行流水号 */ public void setBankSeq(String bankSeq) { this.bankSeq = bankSeq; } /** * 获取出账时间 * @return 出账时间 */ @Column(name = "out_time") public Long getOutTime() { return outTime; } /** * 设置出账时间 * @param outTime 出账时间 */ public void setOutTime(Long outTime) { this.outTime = outTime; } /** * 获取创建人ID * @return 创建人ID */ @Column(name = "create_id") public Long getCreateId() { return createId; } /** * 设置创建人ID * @param createId 创建人ID */ public void setCreateId(Long createId) { this.createId = createId; } /** * 获取创建人名称 * @return 创建人名称 */ @Column(name = "create_name", length = 64) public String getCreateName() { return createName; } /** * 设置创建人名称 * @param createName 创建人名称 */ public void setCreateName(String createName) { this.createName = createName; } /** * 获取创建时间 * @return 创建时间 */ @Column(name = "created", nullable = false, updatable = false) public Long getCreated() { return created; } /** * 设置创建时间 * @param created 创建时间 */ public void setCreated(Long created) { this.created = created; } /** * 获取银行图标 * @return 银行图标 */ @Transient public String getBankIcon() { if (getType() == 0) { switch (getBankType()) { case 0: // 中国银行 return "/resources/images/tixianshenqing/zhongguo.png"; case 1: // 中国农业银行 return "/resources/images/bangding/nonghang.jpg"; case 2: // 中国工商银行 return "/resources/images/tixianshenqing/gonghang.png"; case 3: // 中国建设银行 return "/resources/images/bangding/jianshe.png"; case 4: // 招商银行 return "/resources/images/bangding/zhaoshang.png"; default: return null; } } return null; } /** * 获取银行卡号,只显示前6位和最后4位,中间以*号代替 * @return 银行卡号 */ @Transient public String getBankNoWithMask() { if (getType() == 0) { String start = getBankNo().substring(0, 6); String end = getBankNo().substring(getBankNo().length() - 4); String mask = ""; for (int i = 0; i < getBankNo().length() - 10; i++) { mask += "*"; } return start + mask + end; } return null; } }
[ "tantiant@126.com" ]
tantiant@126.com
0ba46b102a86ac7b72b5ddfbb7d9216f2eaa0125
377405a1eafa3aa5252c48527158a69ee177752f
/src/com/braintreepayments/api/models/ThreeDSecureAuthenticationResponse$1.java
949631a799731311da7e7bc0ae56539e416752d7
[]
no_license
apptology/AltFuelFinder
39c15448857b6472ee72c607649ae4de949beb0a
5851be78af47d1d6fcf07f9a4ad7f9a5c4675197
refs/heads/master
2016-08-12T04:00:46.440301
2015-10-25T18:25:16
2015-10-25T18:25:16
44,921,258
0
1
null
null
null
null
UTF-8
Java
false
false
952
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.braintreepayments.api.models; import android.os.Parcel; // Referenced classes of package com.braintreepayments.api.models: // ThreeDSecureAuthenticationResponse static final class implements android.os.henticationResponse._cls1 { public ThreeDSecureAuthenticationResponse createFromParcel(Parcel parcel) { return new ThreeDSecureAuthenticationResponse(parcel, null); } public volatile Object createFromParcel(Parcel parcel) { return createFromParcel(parcel); } public ThreeDSecureAuthenticationResponse[] newArray(int i) { return new ThreeDSecureAuthenticationResponse[i]; } public volatile Object[] newArray(int i) { return newArray(i); } () { } }
[ "rich.foreman@apptology.com" ]
rich.foreman@apptology.com
5ffd8f3a6b34ab971e65d0db09bf8e4cd9c3212d
76852b1b29410436817bafa34c6dedaedd0786cd
/sources-2020-11-04-tempmail/sources/com/tempmail/n/g.java
bf75d33ef033d83760cff79f0bc0688213679a8b
[]
no_license
zteeed/tempmail-apks
040e64e07beadd8f5e48cd7bea8b47233e99611c
19f8da1993c2f783b8847234afb52d94b9d1aa4c
refs/heads/master
2023-01-09T06:43:40.830942
2020-11-04T18:55:05
2020-11-04T18:55:05
310,075,224
0
0
null
null
null
null
UTF-8
Java
false
false
591
java
package com.tempmail.n; import android.view.View; import android.widget.ImageView; import android.widget.ProgressBar; import androidx.databinding.ViewDataBinding; /* compiled from: ActivitySplashBinding */ public abstract class g extends ViewDataBinding { public final ImageView q; public final ImageView r; public final ProgressBar s; protected g(Object obj, View view, int i, ImageView imageView, ImageView imageView2, ProgressBar progressBar) { super(obj, view, i); this.q = imageView; this.r = imageView2; this.s = progressBar; } }
[ "zteeed@minet.net" ]
zteeed@minet.net
3796e194f3a47d8858df441a4b14eab4f04854d4
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/HyperSQL/HyperSQL4000.java
bd440a047d6e1930e17440aa3da5227f40dbfa9d
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
736
java
TableDerived[] getSubqueries(Session session) { OrderedHashSet subQueries = null; if (expression != null) { subQueries = expression.collectAllSubqueries(subQueries); } for (int i = 0; i < arguments.length; i++) { subQueries = arguments[i].collectAllSubqueries(subQueries); } if (subQueries == null || subQueries.size() == 0) { return TableDerived.emptyArray; } TableDerived[] subQueryArray = new TableDerived[subQueries.size()]; subQueries.toArray(subQueryArray); for (int i = 0; i < subqueries.length; i++) { subQueryArray[i].prepareTable(session); } return subQueryArray; }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
73079645c72d69bee301ac6683f7e6f5b862edd7
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/32/32_8dc4f2a6e299f2a45e9689bc98fefcdf23da47d1/AbstractInjectableGrailsClassTests/32_8dc4f2a6e299f2a45e9689bc98fefcdf23da47d1_AbstractInjectableGrailsClassTests_t.java
33d16effa949282695e399a7d0fcd5dd88633bc2
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,802
java
/* * Copyright 2004-2005 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.codehaus.groovy.grails.commons; import groovy.lang.GroovyClassLoader; import junit.framework.TestCase; /** * * * @author Steven Devijver * @since Jul 2, 2005 */ public class AbstractInjectableGrailsClassTests extends TestCase { public AbstractInjectableGrailsClassTests() { super(); } public AbstractInjectableGrailsClassTests(String arg0) { super(arg0); } public void testAbstractInjectableGrailsClassDefault() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass("class TestService { }"); InjectableGrailsClass grailsClass = new AbstractInjectableGrailsClass(clazz, "Service") {}; assertTrue(grailsClass.byType()); assertFalse(grailsClass.byName()); } public void testAbstractInjectableGrailsClassNullProperty() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass("class TestService { boolean byName; boolean available = true }"); InjectableGrailsClass grailsClass = new AbstractInjectableGrailsClass(clazz, "Service") {}; assertTrue(grailsClass.byType()); assertFalse(grailsClass.byName()); assertTrue(grailsClass.getAvailable()); } public void testAbstractInjectableGrailsClassNullPropertyFalse() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass("class TestService { boolean byName = false; boolean available = true }"); InjectableGrailsClass grailsClass = new AbstractInjectableGrailsClass(clazz, "Service") {}; assertTrue(grailsClass.byType()); assertFalse(grailsClass.byName()); assertTrue(grailsClass.getAvailable()); } public void testAbstractInjectableGrailsClassNullPropertyTrue() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass("class TestService { boolean byName = true; public static boolean available = false }"); InjectableGrailsClass grailsClass = new AbstractInjectableGrailsClass(clazz, "Service") {}; assertFalse(grailsClass.byType()); assertTrue(grailsClass.byName()); assertFalse(grailsClass.getAvailable()); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
cbc8b516303f9525aa9ee69acdc69fe7ac71cae3
1142bc0426c3741c554930e292abf2cdfb87d6e0
/src/main/java/com/loukya/repository/SocialUserConnectionRepository.java
a1b594b6a439f5c05692fa1774432de811d7760d
[]
no_license
BulkSecurityGeneratorProject/loukyaInc
0bbd98bb5c71de0086df167e2957913551c833de
64f5be5407a86cc2e6b2f03464aeb94e74575608
refs/heads/master
2022-12-18T14:24:39.670926
2018-03-07T20:56:04
2018-03-07T20:56:04
296,603,415
0
0
null
2020-09-18T11:37:18
2020-09-18T11:37:18
null
UTF-8
Java
false
false
1,259
java
package com.loukya.repository; import com.loukya.domain.SocialUserConnection; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; import java.util.Set; /** * Spring Data JPA repository for the Social User Connection entity. */ public interface SocialUserConnectionRepository extends JpaRepository<SocialUserConnection, Long> { List<SocialUserConnection> findAllByProviderIdAndProviderUserId(String providerId, String providerUserId); List<SocialUserConnection> findAllByProviderIdAndProviderUserIdIn(String providerId, Set<String> providerUserIds); List<SocialUserConnection> findAllByUserIdOrderByProviderIdAscRankAsc(String userId); List<SocialUserConnection> findAllByUserIdAndProviderIdOrderByRankAsc(String userId, String providerId); List<SocialUserConnection> findAllByUserIdAndProviderIdAndProviderUserIdIn(String userId, String providerId, List<String> provideUserId); SocialUserConnection findOneByUserIdAndProviderIdAndProviderUserId(String userId, String providerId, String providerUserId); void deleteByUserIdAndProviderId(String userId, String providerId); void deleteByUserIdAndProviderIdAndProviderUserId(String userId, String providerId, String providerUserId); }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
a29db40f7d373ca76bbd98753d6327d890e38a9f
f54bf6528178972c4860c67689a07d0fdc9cd367
/src/test/java/com/openpojo/random/collection/list/CopyOnWriteArrayListRandomGeneratorTest.java
ca344014c16b5a7a1612c2c92d7d187c94d2cdb4
[ "Apache-2.0" ]
permissive
mustaphazorgati/openpojo
8701eefba1cd46249d33a50c00ed7cdcac43a18c
23678f8859bdc767c20861dd143a0af1f3f2fc9f
refs/heads/master
2023-04-20T13:20:33.336691
2021-05-16T00:08:22
2021-05-16T00:08:22
358,039,597
0
0
Apache-2.0
2021-05-17T01:05:59
2021-04-14T20:53:49
Java
UTF-8
Java
false
false
1,682
java
/* * Copyright (c) 2010-2018 Osman Shoukry * * 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.openpojo.random.collection.list; import java.util.Collection; import java.util.concurrent.CopyOnWriteArrayList; import com.openpojo.random.ParameterizableRandomGenerator; import com.openpojo.random.collection.support.SimpleType; import com.openpojo.random.collection.util.BaseCollectionRandomGeneratorTest; /** * @author oshoukry */ public class CopyOnWriteArrayListRandomGeneratorTest extends BaseCollectionRandomGeneratorTest { @Override protected ParameterizableRandomGenerator getInstance() { return CopyOnWriteArrayListRandomGenerator.getInstance(); } @Override protected Class<? extends ParameterizableRandomGenerator> getGeneratorClass() { return CopyOnWriteArrayListRandomGenerator.class; } @Override protected Class<? extends Collection> getExpectedTypeClass() { return CopyOnWriteArrayList.class; } @Override protected Class<? extends Collection> getGeneratedTypeClass() { return CopyOnWriteArrayList.class; } @Override protected Class<?> getGenericType() { return SimpleType.class; } }
[ "oshoukry@openpojo.com" ]
oshoukry@openpojo.com
a8b4dd048cd28d31bfd75626d86431a458ad5eae
19f3e4df408f56e7f4fe20c8cdecedbd71d9887e
/38_java/classes-dex2jar/net/youmi/android/a/c/k.java
204aff06e425aa52dcb5121913de7091f25a658e
[]
no_license
XuGuangHuiGit/softwareSecurity
5ed6dfe1316672a061dbe03bf235c452342b296f
9f1eb53d3e06751fe17dbf43a5d7a5fa95051313
refs/heads/master
2020-04-08T01:42:39.467579
2018-11-24T05:46:28
2018-11-24T05:46:28
158,906,469
0
0
null
null
null
null
UTF-8
Java
false
false
2,200
java
package net.youmi.android.a.c; import android.graphics.Bitmap; import android.net.http.SslError; import android.webkit.SslErrorHandler; import android.webkit.WebView; import android.webkit.WebViewClient; import net.youmi.android.a.k.a.h; class k extends WebViewClient { private h a; k(h paramh) { this.a = paramh; } static k a(h paramh) { try { paramh = new k(paramh); return paramh; } catch (Throwable paramh) {} return null; } public void onPageFinished(WebView paramWebView, String paramString) { super.onPageFinished(paramWebView, paramString); try { if (this.a != null) { this.a.onWebPageFinished(paramWebView, paramString); } return; } catch (Throwable paramWebView) {} } public void onPageStarted(WebView paramWebView, String paramString, Bitmap paramBitmap) { super.onPageStarted(paramWebView, paramString, paramBitmap); try { if (this.a != null) { this.a.onWebPageStarted(paramWebView, paramString, paramBitmap); } return; } catch (Throwable paramWebView) {} } public void onReceivedError(WebView paramWebView, int paramInt, String paramString1, String paramString2) { super.onReceivedError(paramWebView, paramInt, paramString1, paramString2); try { if (this.a != null) { this.a.onWebReceivedError(paramWebView, paramInt, paramString1, paramString2); } return; } catch (Throwable paramWebView) {} } public void onReceivedSslError(WebView paramWebView, SslErrorHandler paramSslErrorHandler, SslError paramSslError) { try { paramSslErrorHandler.proceed(); return; } catch (Throwable paramWebView) {} } public boolean shouldOverrideUrlLoading(WebView paramWebView, String paramString) { return this.a.shouldOverrideUrlLoading(paramWebView, paramString); } } /* Location: C:\Users\guanghui\Desktop\软件安全\38\classes-dex2jar.jar * Qualified Name: net.youmi.android.a.c.k * JD-Core Version: 0.7.0.1 */
[ "xgh.bupt@gmail.com" ]
xgh.bupt@gmail.com
63e34e1628950c206bd3e8d26bf7c7719044a6f2
5124c83de0ce2ebd73b7a4edd1dc6edfc3523af5
/Aurora-2.6/me/memeszz/aurora/event/events/EventPlayerDamageBlock.java
d7191bf4e99c08688e36a30a6efd8efdeee4c83e
[]
no_license
Sixtieth/rip-aurora
44306d2b97f7c14e805724dac7afd2f36af0caeb
30665f17ea09f4995569de887fd14d9ff942b36b
refs/heads/master
2022-11-26T15:28:27.287942
2020-08-08T22:04:45
2020-08-08T22:04:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
749
java
package me.memeszz.aurora.event.events; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import me.memeszz.aurora.event.EventCancellable; public class EventPlayerDamageBlock extends EventCancellable { private final BlockPos BlockPos; private EnumFacing Direction; public EventPlayerDamageBlock(final BlockPos posBlock, final EnumFacing directionFacing) { this.BlockPos = posBlock; this.setDirection(directionFacing); } public BlockPos getPos() { return this.BlockPos; } public EnumFacing getDirection() { return this.Direction; } public void setDirection(final EnumFacing direction) { this.Direction = direction; } }
[ "adadadw123@gmail.com" ]
adadadw123@gmail.com
ffbaf677d5008df68cace9db97ff61c32dcf3511
e39843b2dead25cce89aec95f0cf2953fb43321d
/apiClient/src/main/java/io/swagger/client/model/TradingAccountMinCreateAmount.java
144a688defd3a14a17a5103fd442f1b4d6a7baed
[]
no_license
GenesisVision/android-client
6727d5c61f2134ea00b308b00a52fc531a78d110
319b7dfd53ad498a65c2ee80b0e0ce15aef8aec6
refs/heads/develop
2022-05-13T08:56:00.715425
2022-04-18T11:17:16
2022-04-18T11:17:16
118,433,575
16
7
null
2021-04-01T19:41:53
2018-01-22T09:14:35
Java
UTF-8
Java
false
false
4,661
java
/* * Core API v2.0 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v2.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package io.swagger.client.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.client.model.AmountWithCurrency; import io.swagger.client.model.BrokerTradeServerType; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; import java.util.List; import android.os.Parcelable; import android.os.Parcel; /** * TradingAccountMinCreateAmount */ public class TradingAccountMinCreateAmount implements Parcelable { @SerializedName("serverType") private BrokerTradeServerType serverType = null; @SerializedName("minDepositCreateAsset") private List<AmountWithCurrency> minDepositCreateAsset = null; public TradingAccountMinCreateAmount() { } public TradingAccountMinCreateAmount serverType(BrokerTradeServerType serverType) { this.serverType = serverType; return this; } /** * Get serverType * @return serverType **/ @Schema(description = "") public BrokerTradeServerType getServerType() { return serverType; } public void setServerType(BrokerTradeServerType serverType) { this.serverType = serverType; } public TradingAccountMinCreateAmount minDepositCreateAsset(List<AmountWithCurrency> minDepositCreateAsset) { this.minDepositCreateAsset = minDepositCreateAsset; return this; } public TradingAccountMinCreateAmount addMinDepositCreateAssetItem(AmountWithCurrency minDepositCreateAssetItem) { if (this.minDepositCreateAsset == null) { this.minDepositCreateAsset = new ArrayList<AmountWithCurrency>(); } this.minDepositCreateAsset.add(minDepositCreateAssetItem); return this; } /** * Get minDepositCreateAsset * @return minDepositCreateAsset **/ @Schema(description = "") public List<AmountWithCurrency> getMinDepositCreateAsset() { return minDepositCreateAsset; } public void setMinDepositCreateAsset(List<AmountWithCurrency> minDepositCreateAsset) { this.minDepositCreateAsset = minDepositCreateAsset; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TradingAccountMinCreateAmount tradingAccountMinCreateAmount = (TradingAccountMinCreateAmount) o; return Objects.equals(this.serverType, tradingAccountMinCreateAmount.serverType) && Objects.equals(this.minDepositCreateAsset, tradingAccountMinCreateAmount.minDepositCreateAsset); } @Override public int hashCode() { return Objects.hash(serverType, minDepositCreateAsset); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TradingAccountMinCreateAmount {\n"); sb.append(" serverType: ").append(toIndentedString(serverType)).append("\n"); sb.append(" minDepositCreateAsset: ").append(toIndentedString(minDepositCreateAsset)).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(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } public void writeToParcel(Parcel out, int flags) { out.writeValue(serverType); out.writeValue(minDepositCreateAsset); } TradingAccountMinCreateAmount(Parcel in) { serverType = (BrokerTradeServerType)in.readValue(BrokerTradeServerType.class.getClassLoader()); minDepositCreateAsset = (List<AmountWithCurrency>)in.readValue(AmountWithCurrency.class.getClassLoader()); } public int describeContents() { return 0; } public static final Parcelable.Creator<TradingAccountMinCreateAmount> CREATOR = new Parcelable.Creator<TradingAccountMinCreateAmount>() { public TradingAccountMinCreateAmount createFromParcel(Parcel in) { return new TradingAccountMinCreateAmount(in); } public TradingAccountMinCreateAmount[] newArray(int size) { return new TradingAccountMinCreateAmount[size]; } }; }
[ "dev.prus@gmail.com" ]
dev.prus@gmail.com
2fdeae28d531ae201c19ca38b1efba7a8fd2cbfc
99f164e96e13db29deef720de9fa4ce0bd114c62
/mediatek/packages/apps/MediatekDM/tests/src/com/mediatek/mediatekdm/test/server/DmAccountRetrievalTestCase.java
df5ff39eb73dcb89b7b01eed5721ce1ce01d093d
[]
no_license
GrapheneCt/android_kernel_zte_run4g_mod
75bb5092273ba4cd75d10f3fa09968853a822300
fbba1d6727878b70954cc4186a7b30504527cd20
refs/heads/master
2020-09-07T14:50:54.230550
2019-11-10T16:37:19
2019-11-10T16:37:19
220,814,914
0
0
null
2019-11-10T16:11:22
2019-11-10T16:11:22
null
UTF-8
Java
false
false
864
java
package com.mediatek.mediatekdm.test.server; import com.mediatek.mediatekdm.DmConst.NotificationInteractionType; import com.mediatek.mediatekdm.test.MockDmNotification; import com.mediatek.mediatekdm.test.server.MockServerService.CMCCTestRequest; public class DmAccountRetrievalTestCase extends MockServerTestCase { public DmAccountRetrievalTestCase() { super(CMCCTestRequest.DM_ACCOUNT_RETRIEVAL, 60); } @Override protected String getTag() { return "MDMTest/DmAccountRetrievalTestCase"; } public void testcase01() { testTemplate( "testcase01", 0, NotificationInteractionType.TYPE_INVALID, MockDmNotification.RESPONSE_INVALID, NotificationInteractionType.TYPE_INVALID, MockDmNotification.RESPONSE_INVALID); } }
[ "danile71@gmail.com" ]
danile71@gmail.com
3e082ec8f12e14106a2477ae8bd8f28c98a71f4c
ef8a143893beaaa90f9287133880e90ea7d2aaaa
/Perestroika-Problem/src/main/java/cz/cuni/mff/perestroika/perestroika_problem_5_3_0_5_0_1_8/Goal.java
ba3bb845a8607a988d5c75992cc6e1b8fdad5a67
[ "MIT" ]
permissive
martinpilat/jPDDL
fb976ae66b248eaa021b8662f300829ef9bdb198
c5e8389cccc9707b387de41298ae51983908a3f6
refs/heads/master
2021-06-13T18:41:14.994546
2021-03-26T15:55:23
2021-03-26T15:55:23
155,592,082
0
0
MIT
2018-10-31T16:46:57
2018-10-31T16:46:57
null
UTF-8
Java
false
false
4,501
java
package cz.cuni.mff.perestroika.perestroika_problem_5_3_0_5_0_1_8; import cz.cuni.mff.jpddl.PDDLGoal; import cz.cuni.mff.jpddl.PDDLState; import cz.cuni.mff.perestroika.domain.State; public class Goal extends PDDLGoal { @Override public String toPDDL() { return "(:goal (and (alive)\n" + " (taken r1)\n" + " (taken r2)\n" + " (taken r3)\n" + " (taken r4)\n" + " (taken r5)\n" + " (taken r6)\n" + " (taken r7)\n" + " (taken r8)\n" + " (taken r9)\n" + " (taken r10)\n" + " (taken r11)\n" + " (taken r12)\n" + " )\n" + ")"; } /** * Whether the goal has been achieved in 'state'. * * GOAL * * :goal (and (alive r1) * (taken r1) * (taken r2) * (taken r3) * (taken r4) * ) * * @param state * @return */ public boolean isAchieved(State state) { return state.p_Alive.isSet() && state.p_Taken.isSet(E_Resources.r1) && state.p_Taken.isSet(E_Resources.r2) && state.p_Taken.isSet(E_Resources.r3) && state.p_Taken.isSet(E_Resources.r4) && state.p_Taken.isSet(E_Resources.r5) && state.p_Taken.isSet(E_Resources.r6) && state.p_Taken.isSet(E_Resources.r7) && state.p_Taken.isSet(E_Resources.r8) && state.p_Taken.isSet(E_Resources.r9) && state.p_Taken.isSet(E_Resources.r10) && state.p_Taken.isSet(E_Resources.r11) && state.p_Taken.isSet(E_Resources.r12); } public boolean isAchievedAll(State... states) { for (State state : states) { if (!isAchieved(state)) return false; } return true; } public boolean isAchievedUnion(State... states) { boolean achieved; achieved = false; for (State state : states) { if (achieved = state.p_Alive.isSet()) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r1)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r2)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r3)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r4)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r5)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r6)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r7)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r8)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r9)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r10)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r11)) break; } if (!achieved) return false; achieved = false; for (State state : states) { if (achieved = state.p_Taken.isSet(E_Resources.r12)) break; } if (!achieved) return false; return true; } public boolean isAchievedAny(State... states) { for (State state : states) { if (isAchieved(state)) return true; } return false; } // ======================== // PDDLGoal Generic Methods // ======================== @Override public boolean isAchieved(PDDLState state) { return isAchieved((State)state); } @Override public boolean isAchievedAll(PDDLState... states) { return isAchievedAll((State[])states); } @Override public boolean isAchievedUnion(PDDLState... states) { return isAchievedUnion((State[])states); } @Override public boolean isAchievedAny(PDDLState... states) { return isAchievedAny((State[])states); } }
[ "martin.pilat@gmail.com" ]
martin.pilat@gmail.com
db3913ca006ad8240f303a16f31afef2ad7e91ee
6d0a2a7e38debf97ffd05018122438981e9b3bb7
/Package Framework/src/main/java/com/enableets/edu/pakage/framework/ppr/bo/xkw/XKWChildQuestionBO.java
d5acaaae0dbc3b5c526b29e8bcefcd7b58eb5f85
[]
no_license
zhouyi10/Enable-Cloud-Package
165d03a4af0ea4854787630c7b62cdb7ad185dae
6790a1bad3a96cf782761f9ff5ae431d1fd4ffe6
refs/heads/master
2023-06-11T12:26:00.243936
2021-06-30T06:50:45
2021-06-30T06:50:45
365,156,634
0
0
null
null
null
null
UTF-8
Java
false
false
545
java
package com.enableets.edu.pakage.framework.ppr.bo.xkw; import lombok.*; import lombok.experimental.Accessors; import java.util.List; /** * @author caleb_liu@enable-ets.com * @date 2021/06/10 **/ @Accessors(chain = true) @AllArgsConstructor @NoArgsConstructor @Data public class XKWChildQuestionBO { /* 小题答案 */ private String childAnswer; /* 小题题文 */ private String childBody; /* 小题序号 */ private Integer number; /* 小题选项集合 */ private List<XKWIdNameBO> childOptions; }
[ "justice_zhou@enable-ets.com" ]
justice_zhou@enable-ets.com
4066c0053b7adcfd83e6dd19fd8ad51b64b10e89
d73d945ed709876cf2aca87ed3a120cd589084e9
/app/src/main/java/com/qq986945193/androidbaseproject/callback/OnRefreshWebViewListener.java
ba742d75454b18099bda60f8ff41d1a6984b1512
[]
no_license
yesEric/AndroidBaseProject
08b81160ab17476442450fe120eb1ff3a06bcfa3
425c82337bf8ed4846817fdf37ea06a0937ed563
refs/heads/master
2021-04-06T08:17:18.808013
2017-01-17T02:14:47
2017-01-17T02:14:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
360
java
package com.qq986945193.androidbaseproject.callback; /** * @author :程序员小冰 * @新浪微博 :http://weibo.com/mcxiaobing * @GitHub: https://github.com/QQ986945193 * @CSDN博客: http://blog.csdn.net/qq_21376985 */ /** * 刷新接口 */ public interface OnRefreshWebViewListener { /** * 刷新操作 */ void onRefresh(); }
[ "986945193@qq.com" ]
986945193@qq.com
e662d46aae91540494341f97a458b446d0bf7ac9
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/26/26_fc521e3685898359bbafbf5448aad7a9eb2ee1e5/Topic/26_fc521e3685898359bbafbf5448aad7a9eb2ee1e5_Topic_s.java
4856dd3070282d06d1c361ab88f8bd04aefd7819
[]
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
4,305
java
// Copyright (C) 2013 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.google.gerrit.client.change; import com.google.gerrit.client.changes.ChangeApi; import com.google.gerrit.client.changes.ChangeInfo; import com.google.gerrit.client.rpc.GerritCallback; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyDownEvent; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.InlineLabel; import com.google.gwt.user.client.ui.UIObject; import com.google.gwtexpui.globalkey.client.NpTextArea; import com.google.gwtexpui.globalkey.client.NpTextBox; /** Displays (and edits) the change topic string. */ class Topic extends Composite { interface Binder extends UiBinder<HTMLPanel, Topic> {} private static Binder uiBinder = GWT.create(Binder.class); private int changeId; private boolean canEdit; @UiField FlowPanel show; @UiField InlineLabel text; @UiField Image editIcon; @UiField Element form; @UiField NpTextBox input; @UiField NpTextArea message; @UiField Button save; @UiField Button cancel; Topic() { initWidget(uiBinder.createAndBindUi(this)); show.addDomHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { onEdit(); } }, ClickEvent.getType()); } void set(ChangeInfo info) { canEdit = info.has_actions() && info.actions().containsKey("topic") && info.actions().get("topic").enabled(); changeId = info.legacy_id().get(); text.setText(info.topic()); editIcon.setVisible(canEdit); if (!canEdit) { show.setTitle(null); } } boolean canEdit() { return canEdit; } void onEdit() { if (canEdit) { show.setVisible(false); UIObject.setVisible(form, true); input.setText(text.getText()); input.setFocus(true); } } @UiHandler("cancel") void onCancel(ClickEvent e) { input.setFocus(false); show.setVisible(true); UIObject.setVisible(form, false); } @UiHandler("input") void onKeyDownInput(KeyDownEvent e) { if (e.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) { onCancel(null); } else if (e.getNativeKeyCode() == KeyCodes.KEY_ENTER) { onSave(null); } } @UiHandler("message") void onKeyDownMessage(KeyDownEvent e) { if (e.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) { onCancel(null); } else if (e.getNativeKeyCode() == KeyCodes.KEY_ENTER && e.isControlKeyDown()) { onSave(null); } } @UiHandler("save") void onSave(ClickEvent e) { ChangeApi.topic( changeId, input.getValue().trim(), message.getValue().trim(), new GerritCallback<String>() { @Override public void onSuccess(String result) { // Cheat and just patch the UI with the current topic. // This saves a full redraw of the change screen but // will cause the message to be missed in the History. text.setText(result); onCancel(null); } }); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
e529c6e5ae03297346226410aab06d7cc2bdc65c
96670d2b28a3fb75d2f8258f31fc23d370af8a03
/reverse_engineered/sources/com/beastbikes/android/modules/preferences/ui/OfflineMapSettingActivity$g.java
9a64270ab2306446ea9608a9d9d9d063be589da9
[]
no_license
P79N6A/speedx
81a25b63e4f98948e7de2e4254390cab5612dcbd
800b6158c7494b03f5c477a8cf2234139889578b
refs/heads/master
2020-05-30T18:43:52.613448
2019-06-02T07:57:10
2019-06-02T08:15:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
458
java
package com.beastbikes.android.modules.preferences.ui; import com.beastbikes.android.C1373R; final class OfflineMapSettingActivity$g extends OfflineMapSettingActivity$e { public OfflineMapSettingActivity$g(OfflineMapSettingActivity offlineMapSettingActivity) { super(offlineMapSettingActivity, C1373R.string.offline_map_setting_activity_category_all_cities, OfflineMapSettingActivity.c(offlineMapSettingActivity).getOfflineCityList()); } }
[ "Gith1974" ]
Gith1974
4e5518a0f06a6fefba5bbf9678b6ba8721588e1a
bc8d54cd443613868a1bf5c65e5876f19df41fba
/src/main/java/com/mossle/meeting/MeetingModuleSpecification.java
467f2e39389abb26cd2de5efa6b94473c3598d19
[ "Apache-2.0" ]
permissive
zhuhongguang/lemon
82531b1c2283dd0450279c3e80be2e4652bf0cd8
0c3fcd35e51cbbf8ad9dd639f723bc340088b0b3
refs/heads/master
2020-05-29T12:30:33.271681
2018-04-19T02:09:21
2018-04-19T02:09:21
64,658,130
0
0
Apache-2.0
2018-04-19T02:09:22
2016-08-01T10:27:31
Java
UTF-8
Java
false
false
1,438
java
package com.mossle.meeting; import com.mossle.core.dbmigrate.ModuleSpecification; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class MeetingModuleSpecification implements ModuleSpecification { private static final String MODULE_NAME = "meeting"; private static final String MODULE_NAME_UPPER = MODULE_NAME.toUpperCase(); private String type; private boolean enabled; private boolean initData; public boolean isEnabled() { return enabled; } public String getSchemaTable() { return "SCHEMA_VERSION_" + MODULE_NAME_UPPER; } public String getSchemaLocation() { return "dbmigrate." + type + "." + MODULE_NAME; } public boolean isInitData() { return initData; } public String getDataTable() { return "SCHEMA_VERSION_DATA_" + MODULE_NAME_UPPER; } public String getDataLocation() { return "dbmigrate." + type + ".data_" + MODULE_NAME; } @Value("${application.database.type}") public void setType(String type) { this.type = type; } @Value("${" + MODULE_NAME + ".dbmigrate.enabled}") public void setEnabled(boolean enabled) { this.enabled = enabled; } @Value("${" + MODULE_NAME + ".dbmigrate.initData}") public void setInitData(boolean initData) { this.initData = initData; } }
[ "xyz20003@gmail.com" ]
xyz20003@gmail.com
d1b8937cb399e3826c876d4abeb15667cc3cb71f
c26304a54824faa7c1b34bb7882ee7a335a8e7fb
/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/ArgumentMappingTypeStrategy.java
3e96ef7cda934fffe021f9c005f96274bf471c8b
[ "BSD-3-Clause", "OFL-1.1", "ISC", "MIT", "Apache-2.0" ]
permissive
apache/flink
905e0709de6389fc9212a7c48a82669706c70b4a
fbef3c22757a2352145599487beb84e02aaeb389
refs/heads/master
2023-09-04T08:11:07.253750
2023-09-04T01:33:25
2023-09-04T01:33:25
20,587,599
23,573
14,781
Apache-2.0
2023-09-14T21:49:04
2014-06-07T07:00:10
Java
UTF-8
Java
false
false
2,058
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.flink.table.types.inference.strategies; import org.apache.flink.annotation.Internal; import org.apache.flink.table.types.DataType; import org.apache.flink.table.types.inference.CallContext; import org.apache.flink.table.types.inference.TypeStrategy; import org.apache.flink.util.Preconditions; import java.util.List; import java.util.Optional; import java.util.function.Function; /** Type strategy that returns the n-th input argument, mapping it with the provided function. */ @Internal public final class ArgumentMappingTypeStrategy implements TypeStrategy { private final int pos; private final Function<DataType, Optional<DataType>> mapper; public ArgumentMappingTypeStrategy(int pos, Function<DataType, Optional<DataType>> mapper) { Preconditions.checkArgument(pos >= 0); Preconditions.checkNotNull(mapper); this.pos = pos; this.mapper = mapper; } @Override public Optional<DataType> inferType(CallContext callContext) { final List<DataType> argumentDataTypes = callContext.getArgumentDataTypes(); if (pos >= argumentDataTypes.size()) { return Optional.empty(); } return mapper.apply(argumentDataTypes.get(pos)); } }
[ "twalthr@apache.org" ]
twalthr@apache.org
905c19f0502b01bcf5fa777b723b79d668b7022f
a2448aee5a6ce1ccb8011a55477bffb86f72be45
/src/main/java/hotmath/gwt/cm_rpc/client/rpc/GetAssignmentStudentsAction.java
4f246b7d8abdbe2239cdf6709bce9395c3f0570f
[]
no_license
caseyrodgers/cm
2fc41f6a9cdeadb2e41ea565a616590f89ce5359
b3543c59876483d37fb3d178a0e8ffc9345b1741
refs/heads/main
2022-06-22T21:39:07.952550
2022-06-20T16:47:46
2022-06-20T16:47:46
86,354,299
0
0
null
null
null
null
UTF-8
Java
false
false
1,016
java
package hotmath.gwt.cm_rpc.client.rpc; import hotmath.gwt.cm_rpc_assignments.client.model.assignment.StudentDto; import hotmath.gwt.cm_rpc_core.client.rpc.Action; import hotmath.gwt.cm_rpc_core.client.rpc.CmList; public class GetAssignmentStudentsAction implements Action<CmList<StudentDto>>{ private int assignKey; private TYPE type; public GetAssignmentStudentsAction(){} public enum TYPE {ALL_IN_GROUP, ASSIGNED} public GetAssignmentStudentsAction(int assignKey, TYPE type) { this.assignKey = assignKey; this.type = type; } public TYPE getType() { return type; } public void setType(TYPE type) { this.type = type; } public int getAssignKey() { return assignKey; } public void setAssignKey(int assignKey) { this.assignKey = assignKey; } @Override public String toString() { return "GetAssignmentStudentsAction [assignKey=" + assignKey + ", type=" + type + "]"; } }
[ "grodgers@gmail.com" ]
grodgers@gmail.com
e6e45bbcc7b008dba14572c463bf0d1763d6a835
d7524fa49fda33cbf70a6179fc546392bca478dc
/app/src/main/java/cesu/qrcode/zxing/oned/UPCEANExtensionSupport.java
7497c3058227d85202e8610b723a00f17e18ebec
[]
no_license
avik1990/Portal
11d554cbec0eb9f877ad48601b9205c507f0a6c7
c2fc776eaed7fd47d8c7d81b110da2d62955e838
refs/heads/master
2023-04-05T14:29:41.533061
2021-04-07T12:26:48
2021-04-07T12:26:48
347,930,827
0
0
null
null
null
null
UTF-8
Java
false
false
1,480
java
/* * Copyright (C) 2010 ZXing 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 cesu.qrcode.zxing.oned; import cesu.qrcode.zxing.NotFoundException; import cesu.qrcode.zxing.ReaderException; import cesu.qrcode.zxing.Result; import cesu.qrcode.zxing.common.BitArray; final class UPCEANExtensionSupport { private static final int[] EXTENSION_START_PATTERN = {1,1,2}; private final UPCEANExtension2Support twoSupport = new UPCEANExtension2Support(); private final UPCEANExtension5Support fiveSupport = new UPCEANExtension5Support(); Result decodeRow(int rowNumber, BitArray row, int rowOffset) throws NotFoundException { int[] extensionStartRange = UPCEANReader.findGuardPattern(row, rowOffset, false, EXTENSION_START_PATTERN); try { return fiveSupport.decodeRow(rowNumber, row, extensionStartRange); } catch (ReaderException ignored) { return twoSupport.decodeRow(rowNumber, row, extensionStartRange); } } }
[ "avik1990@gmail.com" ]
avik1990@gmail.com
e34e52aa89b7197731467277785aa52d5cb3bf5e
d715d4ffff654a57e8c9dc668f142fb512b40bb5
/workspace/glaf-isdp/src/main/java/com/glaf/isdp/util/TreewbsNameJsonFactory.java
43cebc02fd44c5f268e5e4088f5b06872e811379
[]
no_license
jior/isdp
c940d9e1477d74e9e0e24096f32ffb1430b841e7
251fe724dcce7464df53479c7a373fa43f6264ca
refs/heads/master
2016-09-06T07:43:11.220255
2014-12-28T09:18:14
2014-12-28T09:18:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,112
java
package com.glaf.isdp.util; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; import com.glaf.isdp.domain.TreewbsName; public class TreewbsNameJsonFactory { public static TreewbsName jsonToObject(JSONObject jsonObject) { TreewbsName model = new TreewbsName(); if (jsonObject.containsKey("id")) { model.setId(jsonObject.getString("id")); } if (jsonObject.containsKey("indexId")) { model.setIndexId(jsonObject.getInteger("indexId")); } if (jsonObject.containsKey("wbsindex")) { model.setWbsindex(jsonObject.getInteger("wbsindex")); } return model; } public static JSONObject toJsonObject(TreewbsName model) { JSONObject jsonObject = new JSONObject(); jsonObject.put("id", model.getId()); jsonObject.put("_id_", model.getId()); jsonObject.put("_oid_", model.getId()); jsonObject.put("indexId", model.getIndexId()); jsonObject.put("wbsindex", model.getWbsindex()); return jsonObject; } public static ObjectNode toObjectNode(TreewbsName model) { ObjectNode jsonObject = new ObjectMapper().createObjectNode(); jsonObject.put("id", model.getId()); jsonObject.put("_id_", model.getId()); jsonObject.put("_oid_", model.getId()); jsonObject.put("indexId", model.getIndexId()); jsonObject.put("wbsindex", model.getWbsindex()); return jsonObject; } public static JSONArray listToArray(java.util.List<TreewbsName> list) { JSONArray array = new JSONArray(); if (list != null && !list.isEmpty()) { for (TreewbsName model : list) { JSONObject jsonObject = model.toJsonObject(); array.add(jsonObject); } } return array; } public static java.util.List<TreewbsName> arrayToList(JSONArray array) { java.util.List<TreewbsName> list = new java.util.ArrayList<TreewbsName>(); for (int i = 0; i < array.size(); i++) { JSONObject jsonObject = array.getJSONObject(i); TreewbsName model = jsonToObject(jsonObject); list.add(model); } return list; } private TreewbsNameJsonFactory() { } }
[ "jior2008@gmail.com" ]
jior2008@gmail.com
9952518541c038d0d45a03c3a4cb6b749555e88b
35d105d4e23bd5e5e58221c3d07625e32f2ad052
/hadruwaves/hadruwaves-java/src/main/java/net/vpc/scholar/hadruwaves/mom/MatrixBMatrixStrCacheSupport.java
9bef58988e84a52135f17d6a66c2eea9cd1ac98e
[]
no_license
imenk1986/scholar-mw
a7f9478bd2a56dbcb442217da5429a15030cdd6c
d649ed0b00d7982bf0e537c2bb582eaeeff3df96
refs/heads/master
2021-06-23T07:24:23.828936
2017-08-14T21:20:03
2017-08-14T21:20:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,418
java
package net.vpc.scholar.hadruwaves.mom; import net.vpc.scholar.hadrumaths.Matrix; import net.vpc.scholar.hadrumaths.cache.ObjectCache; import net.vpc.scholar.hadrumaths.util.ProgressMonitor; /** * @author taha.bensalah@gmail.com on 7/17/16. */ class MatrixBMatrixStrCacheSupport extends StrCacheSupport<Matrix> { private DefaultMomMatrixBBuilder defaultMomMatrixBBuilder; private final ProgressMonitor[] mon; public MatrixBMatrixStrCacheSupport(DefaultMomMatrixBBuilder defaultMomMatrixBBuilder, ProgressMonitor mon) { super(defaultMomMatrixBBuilder.momStructure, MomStructure.CACHE_MATRIX_B,mon); this.defaultMomMatrixBBuilder = defaultMomMatrixBBuilder; this.mon = getMonitor().split(new double[]{2,8}); } protected void init() { defaultMomMatrixBBuilder.momStructure.getTestModeScalarProducts(mon[0]); } public Matrix compute(ObjectCache momCache) { Matrix matrix = defaultMomMatrixBBuilder.momStructure.createMatrixBEvaluator().evaluate(defaultMomMatrixBBuilder.momStructure, mon[1]); Number ceil = defaultMomMatrixBBuilder.momStructure.getHintsManager().getHintBMatrixSparsify(); if (ceil != null) { matrix = matrix.sparsify(ceil.doubleValue()); } if (matrix.norm1() == 0) { throw new IllegalArgumentException("B matrix is Null (norm=0)"); } return matrix; } }
[ "canard77" ]
canard77
515dad3f7243f104780b7681ec7e66cbebc15391
6335b8b1630830d0ebd142302b63e334157c2404
/src/main/java/net/madz/scheduling/simulation/impl/StateEnumConverter.java
bf7e8e669c73573e39613634eb6ecb1f90ec581c
[]
no_license
TracyLu/LifecycleStaticWeaverDemos
1e60f6c7c5b62642083c77cbc17a73dd6b0f2aae
cebc807849f532ac23ab6734238130feba7535b1
refs/heads/master
2021-01-17T15:47:19.739417
2013-12-16T08:27:27
2013-12-16T08:27:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
404
java
package net.madz.scheduling.simulation.impl; import net.madz.lifecycle.StateConverter; import net.madz.scheduling.simulation.IResource.StateEnum; public class StateEnumConverter implements StateConverter<StateEnum> { @Override public StateEnum fromState(String stateName) { return StateEnum.valueOf(stateName); } @Override public String toState(StateEnum state) { return state.name(); } }
[ "zhongdj@gmail.com" ]
zhongdj@gmail.com
4071ee4316e758ede954733f0590ff4aeb6ac3ae
262b91ee24fd9ff49aa0f74aa9f3867cb13b63e8
/CodeForces/Miscellaneous Problems/dp/E722.java
6b3f860a0e7eca26fc6afc7e71fb98f6a2e25165
[]
no_license
Senpat/Competitive-Programming
ec169b1ed9ee85186768b72479b38391df9234b3
d13731811eb310fb3d839e9a8e8200975d926321
refs/heads/master
2023-06-23T01:25:35.209727
2023-06-15T02:55:48
2023-06-15T02:55:48
146,513,522
0
0
null
null
null
null
UTF-8
Java
false
false
7,884
java
//Research Rover import java.io.*; import java.util.*; //tutorial public class E722{ public static long MOD = 1000000007L; public static long[] fac; public static long[] ifac; public static void main(String[] args)throws IOException{ FastScanner fs = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int N = 2000005; fac = new long[N]; ifac = new long[N]; fac[0] = 1L; for(int k = 1; k < N; k++){ fac[k] = (fac[k-1] * k + MOD)%MOD; } ifac[N-1] = modInverse(fac[N-1],MOD); for(int k = N-2; k >= 0; k--){ ifac[k] = (ifac[k+1] * (k+1) + MOD)%MOD; } int n = fs.nextInt(); int m = fs.nextInt(); int a = fs.nextInt(); long s = fs.nextLong(); ArrayList<Anomaly> anomalies = new ArrayList<Anomaly>(); boolean has11 = false; for(int k = 0; k < a; k++){ int x = fs.nextInt(); int y = fs.nextInt(); anomalies.add(new Anomaly(x,y)); if(x == 1 && y == 1) has11 = true; } if(!has11){ anomalies.add(new Anomaly(1,1)); a++; } Collections.sort(anomalies); long[][] allpath = new long[a][a]; for(int k = 0; k < a; k++){ for(int j = 0; j < a; j++){ if(k == j) continue; Anomaly anomaly1 = anomalies.get(k); Anomaly anomaly2 = anomalies.get(j); if(anomaly2.x >= anomaly1.x && anomaly2.y >= anomaly1.y){ allpath[k][j] = getpath(anomaly2.x-anomaly1.x,anomaly2.y-anomaly1.y); } } } int M = 21; //G[a][b] = # of ways to go from anomaly a to (n,m) and use b (not including itself) //G[a][0] = F[a] from the tutorial long[][] G = new long[a][M]; //fill G[a][0] for(int k = a-1; k >= 0; k--){ Anomaly anomaly = anomalies.get(k); long path = getpath(n-anomaly.x,m-anomaly.y); for(int j = k+1; j < a; j++){ Anomaly anomaly2 = anomalies.get(j); if(anomaly2.x >= anomaly.x && anomaly2.y >= anomaly.y){ path -= (allpath[k][j] * G[j][0] + MOD)%MOD; if(path < 0) path += MOD; } } G[k][0] = path; } //fill G for(int v = 1; v < M; v++){ for(int k = a-1; k >= 0; k--){ Anomaly anomaly = anomalies.get(k); long path = getpath(n-anomaly.x,m-anomaly.y); for(int j = k+1; j < a; j++){ Anomaly anomaly2 = anomalies.get(j); if(anomaly2.x >= anomaly.x && anomaly2.y >= anomaly.y){ path -= (allpath[k][j] * G[j][v] + MOD)%MOD; if(path < 0) path += MOD; } } for(int j = 0; j < v; j++){ path -= G[k][j]; if(path < 0) path += MOD; } G[k][v] = path; } } long[] battery = new long[M]; battery[0] = s; for(int k = 1; k < M; k++){ battery[k] = (battery[k-1] + 1)/2; } long path = getpath(n-1,m-1); long answer = 0L; int offset = has11 ? 1 : 0; for(int v = 0; v < M; v++){ if(v+offset >= M) continue; long prod = (G[0][v] * battery[v+offset] + MOD)%MOD; answer = answer + prod; if(answer >= MOD) answer -= MOD; path -= G[0][v]; if(path < 0) path += MOD; } //>= M anomalies answer = answer + path; if(answer >= MOD) answer -= MOD; answer = (answer * modInverse(getpath(n-1,m-1),MOD) + MOD)%MOD; out.println(answer); out.close(); } public static long getpath(int x, int y){ return choose(x+y,y); } public static long choose(int n, int r){ long prod = (fac[n] * ifac[r] + MOD)%MOD; return (prod * ifac[n-r] + MOD)%MOD; } public static class Anomaly implements Comparable<Anomaly>{ int x; int y; public Anomaly(int a, int b){ x = a; y = b; } public int compareTo(Anomaly a){ if(x == a.x) return y-a.y; return x-a.x; } } //from geeksforgeeks public static long modInverse(long a, long m) { long m0 = m; long y = 0; long x = 1; if (m == 1) return 0; while (a > 1) { // q is quotient long q = a / m; long t = m; // m is remainder now, process same as // Euclid's algo m = a % m; a = t; t = y; // Update y and x y = x - q * y; x = t; } // Make x positive if (x < 0) x += m0; return x; } } class FastScanner { //I don't understand how this works lmao private int BS = 1 << 16; private char NC = (char) 0; private byte[] buf = new byte[BS]; private int bId = 0, size = 0; private char c = NC; private double cnt = 1; private BufferedInputStream in; public FastScanner() { in = new BufferedInputStream(System.in, BS); } public FastScanner(String s) { try { in = new BufferedInputStream(new FileInputStream(new File(s)), BS); } catch (Exception e) { in = new BufferedInputStream(System.in, BS); } } private char getChar() { while (bId == size) { try { size = in.read(buf); } catch (Exception e) { return NC; } if (size == -1) return NC; bId = 0; } return (char) buf[bId++]; } public int nextInt() { return (int) nextLong(); } public int[] nextInts(int N) { int[] res = new int[N+1]; for (int i = 1; i <= N; i++) { res[i] = (int) nextLong(); } return res; } public long[] nextLongs(int N) { long[] res = new long[N+1]; for (int i = 1; i <= N; i++) { res[i] = nextLong(); } return res; } public long nextLong() { cnt = 1; boolean neg = false; if (c == NC) c = getChar(); for (; (c < '0' || c > '9'); c = getChar()) { if (c == '-') neg = true; } long res = 0; for (; c >= '0' && c <= '9'; c = getChar()) { res = (res << 3) + (res << 1) + c - '0'; cnt *= 10; } return neg ? -res : res; } public double nextDouble() { double cur = nextLong(); return c != '.' ? cur : cur + nextLong() / cnt; } public double[] nextDoubles(int N) { double[] res = new double[N]; for (int i = 0; i < N; i++) { res[i] = nextDouble(); } return res; } public String next() { StringBuilder res = new StringBuilder(); while (c <= 32) c = getChar(); while (c > 32) { res.append(c); c = getChar(); } return res.toString(); } public String nextLine() { StringBuilder res = new StringBuilder(); while (c <= 32) c = getChar(); while (c != '\n') { res.append(c); c = getChar(); } return res.toString(); } public boolean hasNext() { if (c > 32) return true; while (true) { c = getChar(); if (c == NC) return false; else if (c > 32) return true; } } }
[ "pgz11902@gmail.com" ]
pgz11902@gmail.com
225c91dedaa879917fef2128ed83b324c2ef17a3
043703eaf27a0d5e6f02bf7a9ac03c0ce4b38d04
/subject_systems/Struts2/src/struts-2.3.30/src/plugins/osgi/src/main/java/org/apache/struts2/osgi/BundleFreemarkerManager.java
61c09c839dc79d0e7f6f91c2a03f99f8010e9762
[]
no_license
MarceloLaser/arcade_console_test_resources
e4fb5ac4a7b2d873aa9d843403569d9260d380e0
31447aabd735514650e6b2d1a3fbaf86e78242fc
refs/heads/master
2020-09-22T08:00:42.216653
2019-12-01T21:51:05
2019-12-01T21:51:05
225,093,382
1
2
null
null
null
null
UTF-8
Java
false
false
129
java
version https://git-lfs.github.com/spec/v1 oid sha256:7a7f87e3bffb35a1a7bb891a0e75384372627627bb37ac4f2f97fd1d77c3b273 size 3298
[ "marcelo.laser@gmail.com" ]
marcelo.laser@gmail.com
2909a0ac4a88b28aaad436ca76612fa96c88d9ae
39b208bc5aed7ff144035a7a2c19ad032d49651f
/icardea-caremanagementdb/src/main/java/org/hl7/v3/CalendarCycleTwoLetter.java
4c96c243c6a23dc9befc39cbdab198bae7017502
[]
no_license
coderunner4/icardea
8f28864aaa7993dd71ac100f43a54af0b146133a
de50d91b8ede37acc6aaf48eea62bdda47710c4f
refs/heads/master
2021-01-10T13:04:54.315708
2013-02-27T13:27:24
2013-02-27T13:27:24
46,989,557
0
0
null
null
null
null
UTF-8
Java
false
false
2,018
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2010.08.03 at 01:53:04 PM EEST // package org.hl7.v3; import javax.xml.bind.annotation.XmlEnum; /** * <p>Java class for CalendarCycleTwoLetter. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="CalendarCycleTwoLetter"> * &lt;restriction base="{urn:hl7-org:v3}cs"> * &lt;enumeration value="CD"/> * &lt;enumeration value="CH"/> * &lt;enumeration value="CM"/> * &lt;enumeration value="CN"/> * &lt;enumeration value="CS"/> * &lt;enumeration value="CW"/> * &lt;enumeration value="CY"/> * &lt;enumeration value="D"/> * &lt;enumeration value="DM"/> * &lt;enumeration value="DW"/> * &lt;enumeration value="DY"/> * &lt;enumeration value="H"/> * &lt;enumeration value="HD"/> * &lt;enumeration value="J"/> * &lt;enumeration value="M"/> * &lt;enumeration value="MY"/> * &lt;enumeration value="N"/> * &lt;enumeration value="NH"/> * &lt;enumeration value="S"/> * &lt;enumeration value="SN"/> * &lt;enumeration value="W"/> * &lt;enumeration value="WY"/> * &lt;enumeration value="Y"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlEnum public enum CalendarCycleTwoLetter { CD, CH, CM, CN, CS, CW, CY, D, DM, DW, DY, H, HD, J, M, MY, N, NH, S, SN, W, WY, Y; public String value() { return name(); } public static CalendarCycleTwoLetter fromValue(String v) { return valueOf(v); } }
[ "yildiraykabak@gmail.com" ]
yildiraykabak@gmail.com
31e641a64465d83f753b210aa6bd65c9f4747f83
2cee4bc2ef356c55141e456a666e59aa1c982481
/src/com/gmail/br45entei/data/PasswordHash.java
9d27207894f50b171f6e1f4b5a069e8f4dc6a9e5
[]
no_license
br45entei/SWTCodeLibrary
16afd782e5f9fbbf997371b98d086c11fa28bcd7
b06e31e9ecea810486d63536ac3d4ebd039b1000
refs/heads/master
2021-01-10T14:20:57.405596
2017-03-05T09:40:22
2017-03-05T09:40:22
44,447,466
0
0
null
null
null
null
UTF-8
Java
false
false
8,043
java
package com.gmail.br45entei.data; /* Password Hashing With PBKDF2 (http://crackstation.net/hashing-security.htm). Copyright (c) 2013, Taylor Hornby All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ import com.gmail.br45entei.util.StringUtil; import java.math.BigInteger; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.security.Security; import java.security.spec.InvalidKeySpecException; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBEKeySpec; import org.bouncycastle.jce.provider.BouncyCastleProvider; /** PBKDF2 salted password hashing. * * @author havoc AT <a href="http://defuse.ca">defuse.ca</a><br> * www: <a * href="http://crackstation.net/hashing-security.htm">crackstation * .net</a> */ public class PasswordHash { public static final String PBKDF2_ALGORITHM = "PBKDF2WithHmacSHA1"; // The following constants may be changed without breaking existing hashes. public static final int SALT_BYTE_SIZE = 24; public static final int HASH_BYTE_SIZE = 24; public static final int PBKDF2_ITERATIONS = 1000; public static final int ITERATION_INDEX = 0; public static final int SALT_INDEX = 1; public static final int PBKDF2_INDEX = 2; /** Returns a salted PBKDF2 hash of the password. * * @param password the password to hash * @return a salted PBKDF2 hash of the password */ public static String createHash(String password) { return createHash(password.toCharArray()); } /** Returns a salted PBKDF2 hash of the password. * * @param password the password to hash * @return a salted PBKDF2 hash of the password */ public static String createHash(char[] password) { // Generate a random salt SecureRandom random = new SecureRandom(); byte[] salt = new byte[SALT_BYTE_SIZE]; random.nextBytes(salt); // Hash the password byte[] hash = pbkdf2(password, salt, PBKDF2_ITERATIONS, HASH_BYTE_SIZE); // format iterations:salt:hash return PBKDF2_ITERATIONS + ":" + toHex(salt) + ":" + toHex(hash); } /** Validates a password using a hash. * * @param password the password to check * @param correctHash the hash of the valid password * @return true if the password is correct, false if not */ public static boolean validatePassword(String password, String correctHash) { return validatePassword(password.toCharArray(), correctHash); } /** Validates a password using a hash. * * @param password the password to check * @param correctHash the hash of the valid password * @return true if the password is correct, false if not */ public static boolean validatePassword(char[] password, String correctHash) { // Decode the hash into its parameters String[] params = correctHash.split(":"); int iterations = Integer.parseInt(params[ITERATION_INDEX]); byte[] salt = fromHex(params[SALT_INDEX]); byte[] hash = fromHex(params[PBKDF2_INDEX]); // Compute the hash of the provided password, using the same salt, // iteration count, and hash length byte[] testHash = pbkdf2(password, salt, iterations, hash.length); // Compare the hashes in constant time. The password is correct if // both hashes match. return slowEquals(hash, testHash); } /** Compares two byte arrays in length-constant time. This comparison method * is used so that password hashes cannot be extracted from an on-line * system using a timing attack and then attacked off-line. * * @param a the first byte array * @param b the second byte array * @return true if both byte arrays are the same, false if not */ private static boolean slowEquals(byte[] a, byte[] b) { int diff = a.length ^ b.length; for(int i = 0; i < a.length && i < b.length; i++) diff |= a[i] ^ b[i]; return diff == 0; } /** Computes the PBKDF2 hash of a password. * * @param password the password to hash. * @param salt the salt * @param iterations the iteration count (slowness factor) * @param bytes the length of the hash to compute in bytes * @return the PBDKF2 hash of the password */ private static byte[] pbkdf2(char[] password, byte[] salt, int iterations, int bytes) { try { PBEKeySpec spec = new PBEKeySpec(password, salt, iterations, bytes * 8); SecretKeyFactory skf = SecretKeyFactory.getInstance(PBKDF2_ALGORITHM); return skf.generateSecret(spec).getEncoded(); } catch(NoSuchAlgorithmException ignored) { } catch(InvalidKeySpecException e) { e.printStackTrace(); } return new byte[0]; } /** Converts a string of hexadecimal characters into a byte array. * * @param hex the hex string * @return the hex string decoded into a byte array */ private static byte[] fromHex(String hex) { byte[] binary = new byte[hex.length() / 2]; for(int i = 0; i < binary.length; i++) { binary[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16); } return binary; } /** Converts a byte array into a hexadecimal string. * * @param array the byte array to convert * @return a length*2 character string encoding the byte array */ private static String toHex(byte[] array) { BigInteger bi = new BigInteger(1, array); String hex = bi.toString(16); int paddingLength = (array.length * 2) - hex.length(); if(paddingLength > 0) { return String.format("%0" + paddingLength + "d", Integer.valueOf(0)) + hex; } return hex; } static { Security.addProvider(new BouncyCastleProvider()); } /** Tests the basic functionality of the PasswordHash class * * @param args ignored */ public static void main(String[] args) { try { // Print out 10 hashes for(int i = 0; i < 10; i++) { String pswd = StringUtil.nextSessionId(); System.out.println("Random hash for \"" + pswd + "\": " + PasswordHash.createHash(pswd));//"p\r\nassw0Rd!")); for(int j = 0; j < 10; j++) { System.out.println("\t[" + j + "/" + i + "]: Random hash for \"" + pswd + "\": " + PasswordHash.createHash(pswd)); } } // Test password validation boolean failure = false; System.out.println("Running tests..."); for(int i = 0; i < 1000; i++) { String password = "" + i; String hash = createHash(password); String secondHash = createHash(password); if(hash.equals(secondHash)) { System.out.println("FAILURE: TWO HASHES ARE EQUAL!"); failure = true; } String wrongPassword = "" + (i + 1); if(validatePassword(wrongPassword, hash)) { System.out.println("FAILURE: WRONG PASSWORD ACCEPTED!"); failure = true; } if(!validatePassword(password, hash)) { System.out.println("FAILURE: GOOD PASSWORD NOT ACCEPTED!"); failure = true; } } if(failure) System.out.println("TESTS FAILED!"); else System.out.println("TESTS PASSED!"); } catch(Exception ex) { System.out.println("ERROR: " + ex); } } }
[ "br45entei@gmail.com" ]
br45entei@gmail.com
9b0b74996002e89aa5bb04122f902d36609c6525
40aa2d54b6e1b7e022de6eec4a58e9e9effba1ab
/app/src/main/java/com/example/maps/data/datasource/local/TodoDatabase.java
b287923c4d0077ece73b79e12f642ad113c99c2f
[]
no_license
abdultanveer/maps
0c54018d8a6f1debc1810e0813ee2cb344acf437
3ce9043e2c9148a7d84898f3c23564c5a588fbab
refs/heads/master
2020-06-21T15:13:58.434669
2019-07-22T00:43:57
2019-07-22T00:43:57
197,488,361
0
0
null
null
null
null
UTF-8
Java
false
false
1,122
java
package com.example.maps.data.datasource.local; import android.content.Context; import androidx.room.Database; import androidx.room.Room; import androidx.room.RoomDatabase; import com.example.maps.data.TodoNote; @Database(entities = {TodoNote.class}, version = 1) public abstract class TodoDatabase extends RoomDatabase { public abstract TodoDao todoDao(); private static TodoDatabase INSTANCE; public static TodoDatabase getDatabase(final Context context) { if (INSTANCE == null) { synchronized (TodoDatabase.class) { if (INSTANCE == null) { INSTANCE = Room.databaseBuilder(context.getApplicationContext(), TodoDatabase.class, "todo_database") // Wipes and rebuilds instead of migrating // if no Migration object. // Migration is not part of this practical. .fallbackToDestructiveMigration() .build(); } } } return INSTANCE; } }
[ "abdul.tanveer@gmail.com" ]
abdul.tanveer@gmail.com
52af924f6a74e5d0465363e5b38ce0e75bee2067
6d60a8adbfdc498a28f3e3fef70366581aa0c5fd
/codebase/dataset/x/334_frag2.java
6d430b6f10e86fa56fc0c6fd51e84850b6ebca1d
[]
no_license
rayhan-ferdous/code2vec
14268adaf9022d140a47a88129634398cd23cf8f
c8ca68a7a1053d0d09087b14d4c79a189ac0cf00
refs/heads/master
2022-03-09T08:40:18.035781
2022-02-27T23:57:44
2022-02-27T23:57:44
140,347,552
0
1
null
null
null
null
UTF-8
Java
false
false
242
java
} else if (argv[optind].equals("-U")) { user = argv[++optind]; } else if (argv[optind].equals("-P")) { password = argv[++optind]; } else if (argv[optind].equals("-v")) {
[ "aaponcseku@gmail.com" ]
aaponcseku@gmail.com
d4e7d73bbd0237429a239f050a055a687eb3b656
9a513db24f6d400f5aafc97615c1d0653b8d05a1
/OCCJava/TDF_DeltaOnRemoval.java
0314c9a568ff972421f763c684d98ce1a6d95252
[]
no_license
Aircraft-Design-UniNa/jpad-occt
71d44cb3c2a906554caeae006199e1885b6ebc6c
f0aae35a8ae7c25c860d6c5ca5262f2b9da53432
refs/heads/master
2020-05-01T04:52:43.335920
2019-03-23T15:08:04
2019-03-23T15:08:04
177,285,955
3
1
null
null
null
null
UTF-8
Java
false
false
976
java
package opencascade; /** * This class provides default services for an * AttributeDelta on a REMOVAL action. * * Applying this AttributeDelta means ADDING its * attribute. */ public class TDF_DeltaOnRemoval extends TDF_AttributeDelta { TDF_DeltaOnRemoval(long cPtr, boolean cMemoryOwn){super(cPtr, cMemoryOwn);} public synchronized void disposeUnused() {} public static String get_type_name() { return OCCwrapJavaJNI.TDF_DeltaOnRemoval_get_type_name(); } public static Standard_Type get_type_descriptor() { return new Standard_Type ( OCCwrapJavaJNI.TDF_DeltaOnRemoval_get_type_descriptor(), true ); } public static TDF_DeltaOnRemoval DownCast( Standard_Transient T) { return new TDF_DeltaOnRemoval ( OCCwrapJavaJNI.TDF_DeltaOnRemoval_DownCast( Standard_Transient.getCPtr(T) , T), true ); } public static Standard_Type TypeOf() { return new Standard_Type ( OCCwrapJavaJNI.TDF_DeltaOnRemoval_TypeOf(), true ); } }
[ "agostino.demarco@unina.it" ]
agostino.demarco@unina.it
fabb7eb881806408c8c6b9ef2657c49865563338
93047c7f1dbb2f67214c33e93766fe8e88b69e37
/src/com/base/model/Ticket.java
09d875a0c053087d499d2921962a4eaeb8919924
[]
no_license
sunny-guo/MyProject
70cc7ec2695120578b87ddb22e8607a6fabb8e37
85c28fbe97655e6236eaa3d1ffda8943bc8a7434
refs/heads/master
2021-03-12T22:46:16.665607
2015-05-24T14:20:03
2015-05-24T14:20:03
34,899,212
0
0
null
null
null
null
UTF-8
Java
false
false
5,812
java
package com.base.model; import java.util.Date; /** * Ticket entity. * * @author MyEclipse Persistence Tools */ public class Ticket implements java.io.Serializable { // Fields private Long id; private Long userByApproverId; private Long project; private Long userByUndertakerId; private Long category; private Long priority; private String title; private String content; private String description; private int status=-1; private Date createTime; private Date commitTime; private Date commitApproverTime; private Date receiveApproverTime; private Date approverPassTime; private Date closeTime; private Date delegateTime; private Date receiveDelegateTime; private Byte isdigest; private String ccIds; private String ccGroupIds; private Long pid; // Constructors /** default constructor */ public Ticket() { } /** minimal constructor */ public Ticket(Long id, Date createTime, Date commitTime, Date commitApproverTime, Date receiveApproverTime, Date approverPassTime, Date closeTime, Date delegateTime, Date receiveDelegateTime) { this.id = id; this.createTime = createTime; this.commitTime = commitTime; this.commitApproverTime = commitApproverTime; this.receiveApproverTime = receiveApproverTime; this.approverPassTime = approverPassTime; this.closeTime = closeTime; this.delegateTime = delegateTime; this.receiveDelegateTime = receiveDelegateTime; } /** full constructor */ public Ticket(Long id, Long userPojoByApproverId, Long project, Long userPojoByUndertakerId, Long category, Long priority, String title, String content, String description, int status, Date createTime, Date commitTime, Date commitApproverTime, Date receiveApproverTime, Date approverPassTime, Date closeTime, Date delegateTime, Date receiveDelegateTime, Byte isdigest, String ccIds, String ccGroupIds, Long pid) { this.id = id; this.userByApproverId = userPojoByApproverId; this.project = project; this.userByUndertakerId = userPojoByUndertakerId; this.category = category; this.priority = priority; this.title = title; this.content = content; this.description = description; this.status = status; this.createTime = createTime; this.commitTime = commitTime; this.commitApproverTime = commitApproverTime; this.receiveApproverTime = receiveApproverTime; this.approverPassTime = approverPassTime; this.closeTime = closeTime; this.delegateTime = delegateTime; this.receiveDelegateTime = receiveDelegateTime; this.isdigest = isdigest; this.ccIds = ccIds; this.ccGroupIds = ccGroupIds; this.pid = pid; } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public Long getUserByApproverId() { return this.userByApproverId; } public void setUserByApproverId(Long UserByApproverId) { this.userByApproverId = UserByApproverId; } public Long getProject() { return this.project; } public void setProject(Long project) { this.project = project; } public Long getUserByUndertakerId() { return this.userByUndertakerId; } public void setUserByUndertakerId(Long UserByUndertakerId) { this.userByUndertakerId = UserByUndertakerId; } public Long getCategory() { return this.category; } public void setCategory(Long category) { this.category = category; } public Long getPriority() { return this.priority; } public void setPriority(Long priority) { this.priority = priority; } public String getTitle() { return this.title; } public void setTitle(String title) { this.title = title; } public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public int getStatus() { return this.status; } public void setStatus(int status) { this.status = status; } public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getCommitTime() { return this.commitTime; } public void setCommitTime(Date commitTime) { this.commitTime = commitTime; } public Date getCommitApproverTime() { return this.commitApproverTime; } public void setCommitApproverTime(Date commitApproverTime) { this.commitApproverTime = commitApproverTime; } public Date getReceiveApproverTime() { return this.receiveApproverTime; } public void setReceiveApproverTime(Date receiveApproverTime) { this.receiveApproverTime = receiveApproverTime; } public Date getApproverPassTime() { return this.approverPassTime; } public void setApproverPassTime(Date approverPassTime) { this.approverPassTime = approverPassTime; } public Date getCloseTime() { return this.closeTime; } public void setCloseTime(Date closeTime) { this.closeTime = closeTime; } public Date getDelegateTime() { return this.delegateTime; } public void setDelegateTime(Date delegateTime) { this.delegateTime = delegateTime; } public Date getReceiveDelegateTime() { return this.receiveDelegateTime; } public void setReceiveDelegateTime(Date receiveDelegateTime) { this.receiveDelegateTime = receiveDelegateTime; } public Byte getIsdigest() { return this.isdigest; } public void setIsdigest(Byte isdigest) { this.isdigest = isdigest; } public String getCcIds() { return this.ccIds; } public void setCcIds(String ccIds) { this.ccIds = ccIds; } public String getCcGroupIds() { return this.ccGroupIds; } public void setCcGroupIds(String ccGroupIds) { this.ccGroupIds = ccGroupIds; } public Long getPid() { return this.pid; } public void setPid(Long pid) { this.pid = pid; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }
[ "sunny.guo@yunzhihui.com" ]
sunny.guo@yunzhihui.com
5398e77bbb3bf7709b5c47d3ac1e280caf1d85f3
b8a0ba0730659ed8354c4d5e8a54932f4184a2f7
/Workspace/net.jxta/src/net/jxta/logging/Logger.java
4e83a856c39a077565f023ed4f66632c68b7aea0
[ "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
chaupal/jxse-lib
4554f039698567f7104759456c83a6dcd668d874
ad0d2420c69bf3f4a11ce18f7be2d107263a997c
refs/heads/master
2020-06-03T22:43:40.361877
2018-11-08T21:50:22
2018-11-08T21:50:22
18,758,302
1
2
null
null
null
null
UTF-8
Java
false
false
722
java
package net.jxta.logging; /** * Our abstraction for loggers; implementations of this use slf4j and * java.util.logging. * */ public interface Logger { boolean isDebugEnabled(); void debug(String message); void debugParams(String format, Object ... params); boolean isInfoEnabled(); void info(String message); void info(String message, Throwable t); void infoParams(String format, Object ... params); boolean isWarnEnabled(); void warn(String message); void warn(String message, Throwable t); void warnParams(String format, Object ... params); boolean isErrorEnabled(); void error(String message); void error(String message, Throwable t); boolean isConfigEnabled(); void config(String message); }
[ "info@condast.com" ]
info@condast.com
0bcc74e39aca1c040c72dbedfcd6969765c38643
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/19/19_fe13f762ccca96546212e8eb0bc9f613da21341f/LuaJavaClassFactory/19_fe13f762ccca96546212e8eb0bc9f613da21341f_LuaJavaClassFactory_s.java
dfbc3b1260b8aa3d8acaed46cf00899340d9720a
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
5,505
java
package se.krka.kahluax.annotation; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.List; import se.krka.kahlua.stdlib.BaseLib; import se.krka.kahlua.vm.JavaFunction; import se.krka.kahlua.vm.LuaCallFrame; import se.krka.kahlua.vm.LuaState; import se.krka.kahlua.vm.LuaTable; /** * A tool to automatically expose java classes and * methods to a lua state * NOTE: This tool requires annotations (java 1.5 or higher) to work * and is therefore not supported in J2ME. */ public class LuaJavaClassFactory { private LuaState state; public LuaJavaClassFactory(LuaState state) { this.state = state; } public void exposeClass(Class clazz) { if (!isLuaClass(clazz)) { return; } if (!isExposed(clazz)) { Class superClazz = getSuperClass(clazz); exposeClass(superClazz); LuaTable metatable = new LuaTable(); LuaTable indextable = new LuaTable(); metatable.rawset("__index", indextable); state.setUserdataMetatable(clazz, metatable); LuaTable superMetatable = (LuaTable) state.userdataMetatables.rawget(superClazz); indextable.metatable = superMetatable; populateMethods(clazz, indextable); } } private void populateMethods(Class clazz, LuaTable indextable) { for (Method method : clazz.getMethods()) { if (method.isAnnotationPresent(LuaMethod.class)) { LuaMethod luaMethod = method.getAnnotation(LuaMethod.class); String methodName; if (luaMethod.alias().equals(LuaMethod.UNASSIGNED)) { methodName = method.getName(); } else { methodName = luaMethod.alias(); } indextable.rawset(methodName.intern(), new MethodObject(method)); } } } private Class getSuperClass(Class clazz) { Class superClazz = clazz.getSuperclass(); while (superClazz != null && superClazz != Object.class && !isLuaClass(superClazz)) { superClazz = superClazz.getSuperclass(); } return superClazz; } private boolean isLuaClass(Class clazz) { return clazz != null && clazz.isAnnotationPresent(LuaClass.class); } private boolean isExposed(Class clazz) { Object metaTable = state.userdataMetatables.rawget(clazz); return metaTable != null; } private class MethodObject implements JavaFunction { private int nrOfParams; private Method method; private MethodObject(Method method) { this.method = method; nrOfParams = method.getParameterTypes().length; } private Object toDouble(Object param) { if (param instanceof Double) { return param; } else if (param instanceof Long) { return Double.valueOf(((Long) param).doubleValue()); } else if (param instanceof Integer) { return Double.valueOf(((Integer) param).doubleValue()); } else if (param instanceof Float) { return Double.valueOf(((Float) param).doubleValue()); } else if (param instanceof Byte) { return Double.valueOf(((Byte) param).doubleValue()); } return null; } private Object[] castParams(Object[] params, Class[] paramTypes) { Object[] newParams = new Object[paramTypes.length]; for (int i = 0; i < paramTypes.length; i++) { Object param = params[i]; Class paramType = paramTypes[i]; if (paramType == Long.class || paramType == long.class) { param = Long.valueOf(((Double) param).longValue()); } else if (paramType == Integer.class || paramType == int.class) { param = Integer.valueOf(((Double) param).intValue()); } else if (paramType == Float.class || paramType == float.class) { param = Float.valueOf(((Double) param).floatValue()); } else if (paramType == Byte.class || paramType == byte.class) { param = Byte.valueOf(((Double) param).byteValue()); } newParams[i] = param; } return newParams; } public int call(LuaCallFrame luaCallFrame, int i) { BaseLib.luaAssert(i == nrOfParams + 1, "Wrong number of params!"); Object owner = luaCallFrame.get(0); Object returnObject = null; try { if (nrOfParams != 0) { Object params[] = new Object[nrOfParams]; for (int paramIndex = 0; paramIndex < nrOfParams; paramIndex++) { params[paramIndex] = luaCallFrame.get(paramIndex + 1); } Object[] newParams = castParams(params, method.getParameterTypes()); returnObject = method.invoke(owner, newParams); } else { returnObject = method.invoke(owner); } } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e); } Object d = toDouble(returnObject); if (d != null) { luaCallFrame.push(d); } else { if (returnObject instanceof Boolean) { luaCallFrame.push(LuaState.toBoolean(((Boolean) returnObject).booleanValue())); } else if (returnObject instanceof String) { luaCallFrame.push(((String) returnObject).intern()); } else if (returnObject instanceof List) { List l = (List) returnObject; LuaTable t = new LuaTable(); for (int index = 0; index < l.size(); index++) { t.rawset((double) index + 1, l.get(index)); } luaCallFrame.push(t); } else { luaCallFrame.push(returnObject); } } return 1; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
1e218b986b24709ff060c61b0c7d6aa5dc67a255
cce9f1da306440273977d8909d106542fbc1c020
/src/main/java/com/timurvvolkov/chapter05/NoChange.java
54c45ea56932f8990e61dffa10a30bd081b33836
[]
no_license
timurvvolkov/shildt
12aede304bd749667a024aa297db4f39c87e133d
efa4bd31a6c7530e68e2bd9b59b5a66ee5af1fde
refs/heads/master
2023-06-22T13:01:15.848852
2021-07-16T13:56:22
2021-07-16T13:56:22
315,215,989
0
0
null
null
null
null
UTF-8
Java
false
false
375
java
package com.timurvvolkov.chapter05; public class NoChange { public static void main(String[] args) { int[] nums = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; for (int x : nums) { System.out.print(x + " "); x *= 10; } System.out.println(); for (int x : nums) { System.out.print(x + " "); } } }
[ "timurvvolkov@gmail.com" ]
timurvvolkov@gmail.com
deccff2c831f49c608cf18542a9e57afddf807cd
c827bfebbde82906e6b14a3f77d8f17830ea35da
/Development3.0/TeevraServer/extensions/generic/transformationengine/rules/src/main/java/com/headstrong/fusion/services/transformer/rules/RuleBundleActivator.java
c19397d3f5d86781ce9d893f15a4d4f817083f73
[]
no_license
GiovanniPucariello/TeevraCore
13ccf7995c116267de5c403b962f1dc524ac1af7
9d755cc9ca91fb3ebc5b227d9de6bcf98a02c7b7
refs/heads/master
2021-05-29T18:12:29.174279
2013-04-22T07:44:28
2013-04-22T07:44:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,881
java
/* * The information in this document is subject to change without notice and * does not represent a commitment by Headstrong Corporation. The software * and/or databases described in this document are furnished under a license * agreement and may be used or copied only in accordance with the terms of * the agreement. * * Copyright © 2008 Headstrong Corporation * All rights reserved. * * $Id: RuleBundleActivator.java * $Revision: * $Author: mbafna * $DateTime: Nov 5, 2008 */ package com.headstrong.fusion.services.transformer.rules; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.headstrong.fusion.commons.exception.FusionException; import com.headstrong.fusion.commons.resolver.ServiceResolverImpl; import com.headstrong.fusion.services.transformer.rulemanager.RuleManager; import com.headstrong.fusion.services.transformer.rules.clearinghouserules.DecodeC21ExtCodeRule; import com.headstrong.fusion.services.transformer.rules.clearinghouserules.EncodeC21ExtCodeRule; import com.headstrong.fusion.services.transformer.rules.daterules.CurrentTimeStampRule; import com.headstrong.fusion.services.transformer.rules.daterules.DateFormattingRule; import com.headstrong.fusion.services.transformer.rules.lookup.DBCacheLookupRule; import com.headstrong.fusion.services.transformer.rules.mathrules.AddRule; import com.headstrong.fusion.services.transformer.rules.mathrules.ArithmeticExpressionRule; import com.headstrong.fusion.services.transformer.rules.mathrules.DivisionRule; import com.headstrong.fusion.services.transformer.rules.mathrules.ExponentialRule; import com.headstrong.fusion.services.transformer.rules.mathrules.IntegerDivisionRule; import com.headstrong.fusion.services.transformer.rules.mathrules.ModulusRule; import com.headstrong.fusion.services.transformer.rules.mathrules.MultiplyRule; import com.headstrong.fusion.services.transformer.rules.mathrules.NumberFormatterRule; import com.headstrong.fusion.services.transformer.rules.mathrules.SubtractRule; import com.headstrong.fusion.services.transformer.rules.stringrules.SimpleMappingRule; import com.headstrong.fusion.services.transformer.rules.stringrules.StringConcatenateRule; import com.headstrong.fusion.services.transformer.rules.stringrules.StringToListConverter; import com.headstrong.fusion.services.transformer.rules.stringrules.StringTrimRule; import com.headstrong.fusion.services.transformer.rules.stringrules.SubStringRule; /** * <code>RuleBundleActivator</code> is the {@link BundleActivator} which * registers all the rules in the bundle with the {@link RuleManager} and also * registers the objects of the rules as the Service. */ public class RuleBundleActivator implements BundleActivator { public static final Logger logger = LoggerFactory .getLogger(RuleBundleActivator.class); /* * (non-Javadoc) * * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) */ public void start(BundleContext bundleContext) throws Exception { RuleManager ruleManager = new ServiceResolverImpl<RuleManager>( bundleContext).getService(RuleManager.class.getName(), 0); if (ruleManager == null) { throw new FusionException("Cannot initialize rule manager"); } // String rules registering ruleManager.registerRule(SubStringRule.getRuleVO()); bundleContext.registerService(SubStringRule.class.getName(), new SubStringRule(), null); ruleManager.registerRule(SimpleMappingRule.getRuleVO()); bundleContext.registerService(SimpleMappingRule.class.getName(), new SimpleMappingRule(), null); ruleManager.registerRule(StringConcatenateRule.getRuleVO()); bundleContext.registerService(StringConcatenateRule.class.getName(), new StringConcatenateRule(), null); ruleManager.registerRule(StringToListConverter.getRuleVO()); bundleContext.registerService(StringToListConverter.class.getName(), new StringToListConverter(), null); ruleManager.registerRule(StringTrimRule.getRuleVO()); bundleContext.registerService(StringTrimRule.class.getName(), new StringTrimRule(), null); // Math rules registering ruleManager.registerRule(DivisionRule.getRuleVO()); bundleContext.registerService(DivisionRule.class.getName(), new DivisionRule(), null); ruleManager.registerRule(AddRule.getRuleVO()); bundleContext.registerService(AddRule.class.getName(), new AddRule(), null); ruleManager.registerRule(SubtractRule.getRuleVO()); bundleContext.registerService(SubtractRule.class.getName(), new SubtractRule(), null); ruleManager.registerRule(MultiplyRule.getRuleVO()); bundleContext.registerService(MultiplyRule.class.getName(), new MultiplyRule(), null); ruleManager.registerRule(NumberFormatterRule.getRuleVO()); bundleContext.registerService(NumberFormatterRule.class.getName(), new NumberFormatterRule(), null); ruleManager.registerRule(ArithmeticExpressionRule.getRuleVO()); bundleContext.registerService(ArithmeticExpressionRule.class.getName(), new ArithmeticExpressionRule(), null); // Date rules registering ruleManager.registerRule(DateFormattingRule.getRuleVO()); bundleContext.registerService(DateFormattingRule.class.getName(), new DateFormattingRule(), null); ruleManager.registerRule(CurrentTimeStampRule.getRuleVO()); bundleContext.registerService(CurrentTimeStampRule.class.getName(), new CurrentTimeStampRule(), null); // lookuprule ruleManager.registerRule(DBCacheLookupRule.getRuleVO()); bundleContext.registerService(DBCacheLookupRule.class.getName(), new DBCacheLookupRule(), null); //clearing house rules ruleManager.registerRule(EncodeC21ExtCodeRule.getRuleVO()); bundleContext.registerService(EncodeC21ExtCodeRule.class.getName(), new EncodeC21ExtCodeRule(), null); ruleManager.registerRule(DecodeC21ExtCodeRule.getRuleVO()); bundleContext.registerService(DecodeC21ExtCodeRule.class.getName(), new DecodeC21ExtCodeRule(), null); ruleManager.registerRule(ModulusRule.getRuleVO()); bundleContext.registerService(ModulusRule.class.getName(), new ModulusRule(), null); ruleManager.registerRule(ExponentialRule.getRuleVO()); bundleContext.registerService(ExponentialRule.class.getName(), new ExponentialRule(), null); ruleManager.registerRule(IntegerDivisionRule.getRuleVO()); bundleContext.registerService(IntegerDivisionRule.class.getName(), new IntegerDivisionRule(), null); } public void stop(BundleContext bundleContext) throws Exception { RuleManager ruleManager = new ServiceResolverImpl<RuleManager>( bundleContext).getService(RuleManager.class.getName(), 0); if (ruleManager == null) { throw new FusionException("Cannot initialize rule manager"); } // String rules unregistering ruleManager.unRegisterRule(SubStringRule.getRuleVO()); ruleManager.unRegisterRule(SimpleMappingRule.getRuleVO()); ruleManager.unRegisterRule(StringConcatenateRule.getRuleVO()); ruleManager.unRegisterRule(StringToListConverter.getRuleVO()); // Math rules unregistering ruleManager.unRegisterRule(AddRule.getRuleVO()); ruleManager.unRegisterRule(SubtractRule.getRuleVO()); ruleManager.unRegisterRule(MultiplyRule.getRuleVO()); ruleManager.unRegisterRule(DivisionRule.getRuleVO()); ruleManager.unRegisterRule(NumberFormatterRule.getRuleVO()); ruleManager.unRegisterRule(ArithmeticExpressionRule.getRuleVO()); // Date rules unregistering ruleManager.unRegisterRule(DateFormattingRule.getRuleVO()); ruleManager.unRegisterRule(CurrentTimeStampRule.getRuleVO()); // lookup unregistering ruleManager.unRegisterRule(DBCacheLookupRule.getRuleVO()); //clearing house rules ruleManager.unRegisterRule(EncodeC21ExtCodeRule.getRuleVO()); ruleManager.unRegisterRule(DecodeC21ExtCodeRule.getRuleVO()); } }
[ "ritwik.bose@headstrong.com" ]
ritwik.bose@headstrong.com
ae4dde267e72530e8124838f28991459ee40070b
0c21777557f347ae4ac1b3197d1f7c28e05aed1b
/android/support/v7/widget/ContentFrameLayout.java
e2f7eca374f60643cfffb08a8a5ffc0245911182
[]
no_license
dmisuvorov/HappyFresh.Android
68421b90399b72523f398aabbfd30b61efaeea1f
242c5b0c006e7825ed34da57716d2ba9d1371d65
refs/heads/master
2020-04-29T06:47:34.143095
2016-01-11T06:24:16
2016-01-11T06:24:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,819
java
package android.support.v7.widget; import android.content.Context; import android.content.res.Resources; import android.graphics.Rect; import android.support.v4.view.ViewCompat; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.TypedValue; import android.view.View.MeasureSpec; import android.widget.FrameLayout; public class ContentFrameLayout extends FrameLayout { private OnAttachListener mAttachListener; private final Rect mDecorPadding = new Rect(); private TypedValue mFixedHeightMajor; private TypedValue mFixedHeightMinor; private TypedValue mFixedWidthMajor; private TypedValue mFixedWidthMinor; private TypedValue mMinWidthMajor; private TypedValue mMinWidthMinor; public ContentFrameLayout(Context paramContext) { this(paramContext, null); } public ContentFrameLayout(Context paramContext, AttributeSet paramAttributeSet) { this(paramContext, paramAttributeSet, 0); } public ContentFrameLayout(Context paramContext, AttributeSet paramAttributeSet, int paramInt) { super(paramContext, paramAttributeSet, paramInt); } public void dispatchFitSystemWindows(Rect paramRect) { fitSystemWindows(paramRect); } public TypedValue getFixedHeightMajor() { if (this.mFixedHeightMajor == null) { this.mFixedHeightMajor = new TypedValue(); } return this.mFixedHeightMajor; } public TypedValue getFixedHeightMinor() { if (this.mFixedHeightMinor == null) { this.mFixedHeightMinor = new TypedValue(); } return this.mFixedHeightMinor; } public TypedValue getFixedWidthMajor() { if (this.mFixedWidthMajor == null) { this.mFixedWidthMajor = new TypedValue(); } return this.mFixedWidthMajor; } public TypedValue getFixedWidthMinor() { if (this.mFixedWidthMinor == null) { this.mFixedWidthMinor = new TypedValue(); } return this.mFixedWidthMinor; } public TypedValue getMinWidthMajor() { if (this.mMinWidthMajor == null) { this.mMinWidthMajor = new TypedValue(); } return this.mMinWidthMajor; } public TypedValue getMinWidthMinor() { if (this.mMinWidthMinor == null) { this.mMinWidthMinor = new TypedValue(); } return this.mMinWidthMinor; } protected void onAttachedToWindow() { super.onAttachedToWindow(); if (this.mAttachListener != null) { this.mAttachListener.onAttachedFromWindow(); } } protected void onDetachedFromWindow() { super.onDetachedFromWindow(); if (this.mAttachListener != null) { this.mAttachListener.onDetachedFromWindow(); } } protected void onMeasure(int paramInt1, int paramInt2) { DisplayMetrics localDisplayMetrics = getContext().getResources().getDisplayMetrics(); int j; int i2; int n; int m; TypedValue localTypedValue; label68: int i; if (localDisplayMetrics.widthPixels < localDisplayMetrics.heightPixels) { j = 1; int i1 = View.MeasureSpec.getMode(paramInt1); i2 = View.MeasureSpec.getMode(paramInt2); n = 0; int k = n; m = paramInt1; if (i1 == Integer.MIN_VALUE) { if (j == 0) { break label424; } localTypedValue = this.mFixedWidthMinor; k = n; m = paramInt1; if (localTypedValue != null) { k = n; m = paramInt1; if (localTypedValue.type != 0) { i = 0; if (localTypedValue.type != 5) { break label433; } i = (int)localTypedValue.getDimension(localDisplayMetrics); label115: k = n; m = paramInt1; if (i > 0) { m = View.MeasureSpec.makeMeasureSpec(Math.min(i - (this.mDecorPadding.left + this.mDecorPadding.right), View.MeasureSpec.getSize(paramInt1)), 1073741824); k = 1; } } } } i = paramInt2; if (i2 == Integer.MIN_VALUE) { if (j == 0) { break label465; } localTypedValue = this.mFixedHeightMajor; label180: i = paramInt2; if (localTypedValue != null) { i = paramInt2; if (localTypedValue.type != 0) { paramInt1 = 0; if (localTypedValue.type != 5) { break label474; } paramInt1 = (int)localTypedValue.getDimension(localDisplayMetrics); label217: i = paramInt2; if (paramInt1 > 0) { i = View.MeasureSpec.makeMeasureSpec(Math.min(paramInt1 - (this.mDecorPadding.top + this.mDecorPadding.bottom), View.MeasureSpec.getSize(paramInt2)), 1073741824); } } } } super.onMeasure(m, i); i2 = getMeasuredWidth(); m = 0; n = View.MeasureSpec.makeMeasureSpec(i2, 1073741824); paramInt2 = m; paramInt1 = n; if (k == 0) { paramInt2 = m; paramInt1 = n; if (i1 == Integer.MIN_VALUE) { if (j == 0) { break label506; } localTypedValue = this.mMinWidthMinor; label313: paramInt2 = m; paramInt1 = n; if (localTypedValue != null) { paramInt2 = m; paramInt1 = n; if (localTypedValue.type != 0) { paramInt1 = 0; if (localTypedValue.type != 5) { break label515; } paramInt1 = (int)localTypedValue.getDimension(localDisplayMetrics); } } } } } for (;;) { j = paramInt1; if (paramInt1 > 0) { j = paramInt1 - (this.mDecorPadding.left + this.mDecorPadding.right); } paramInt2 = m; paramInt1 = n; if (i2 < j) { paramInt1 = View.MeasureSpec.makeMeasureSpec(j, 1073741824); paramInt2 = 1; } if (paramInt2 != 0) { super.onMeasure(paramInt1, i); } return; j = 0; break; label424: localTypedValue = this.mFixedWidthMajor; break label68; label433: if (localTypedValue.type != 6) { break label115; } i = (int)localTypedValue.getFraction(localDisplayMetrics.widthPixels, localDisplayMetrics.widthPixels); break label115; label465: localTypedValue = this.mFixedHeightMinor; break label180; label474: if (localTypedValue.type != 6) { break label217; } paramInt1 = (int)localTypedValue.getFraction(localDisplayMetrics.heightPixels, localDisplayMetrics.heightPixels); break label217; label506: localTypedValue = this.mMinWidthMajor; break label313; label515: if (localTypedValue.type == 6) { paramInt1 = (int)localTypedValue.getFraction(localDisplayMetrics.widthPixels, localDisplayMetrics.widthPixels); } } } public void setAttachListener(OnAttachListener paramOnAttachListener) { this.mAttachListener = paramOnAttachListener; } public void setDecorPadding(int paramInt1, int paramInt2, int paramInt3, int paramInt4) { this.mDecorPadding.set(paramInt1, paramInt2, paramInt3, paramInt4); if (ViewCompat.isLaidOut(this)) { requestLayout(); } } public static abstract interface OnAttachListener { public abstract void onAttachedFromWindow(); public abstract void onDetachedFromWindow(); } } /* Location: /Users/michael/Downloads/dex2jar-2.0/HappyFresh.jar!/android/support/v7/widget/ContentFrameLayout.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "michael@MJSTONE-MACBOOK.local" ]
michael@MJSTONE-MACBOOK.local
af44d4cf368703a82c1132e78a5f55ea6a267f8c
750dd65e247883ec6a4adf4a1dd231c1ffe7ae60
/https:/github.com/pzzying20081128/HZJU.git/HZXU/src/cn/zy/apps/demo/pojos/ProjectProphaseInfo.java
bb321c34dea0e896fe99d6476a3b8095238a75a2
[]
no_license
pzzying20081128/HZJU
6b0b856d0e739819bc22fd94d88ef1ab9ba75cb0
a6820d82c4b95f129f2ad60cc88ba4d72a391e28
refs/heads/master
2021-01-10T04:48:41.618582
2016-01-22T10:52:12
2016-01-22T10:52:12
50,175,601
0
0
null
null
null
null
UTF-8
Java
false
false
2,439
java
package cn.zy.apps.demo.pojos ; import java.util.List ; import javax.persistence.CascadeType ; import javax.persistence.Column ; import javax.persistence.Entity ; import javax.persistence.FetchType ; import javax.persistence.OneToMany ; import javax.persistence.Table ; import cn.zy.apps.tools.jpa.FieldDesc ; /** * 前期预备计划 * @author you * */ @Entity @Table(name = "project_prophase_info") public class ProjectProphaseInfo extends ProjectInfo { //责任单位 @Column(name = "responsibility_unit") @FieldDesc(name = "责任单位") private String responsibilityUnit ; //实施单位 @Column(name = "implementation_unit") @FieldDesc(name = "实施单位") private String implementationUnit ; //建设规模 @Column(name = "construction_scale") @FieldDesc(name = "建设规模") private String constructionScale ; //估算总投资 @Column(name = "estimated_total_investment") @FieldDesc(name = "估算总投资") private Double estimatedTotalInvestment ; @OneToMany(fetch = FetchType.LAZY, mappedBy = "projectProphaseInfo",cascade=CascadeType.ALL) private List<ProjectProphaseWorkContent> projectProphaseWorkContents ; public String getResponsibilityUnit() { return responsibilityUnit ; } public void setResponsibilityUnit(String responsibilityUnit) { this.responsibilityUnit = responsibilityUnit ; } public String getImplementationUnit() { return implementationUnit ; } public void setImplementationUnit(String implementationUnit) { this.implementationUnit = implementationUnit ; } public String getConstructionScale() { return constructionScale ; } public void setConstructionScale(String constructionScale) { this.constructionScale = constructionScale ; } public Double getEstimatedTotalInvestment() { return estimatedTotalInvestment ; } public void setEstimatedTotalInvestment(Double estimatedTotalInvestment) { this.estimatedTotalInvestment = estimatedTotalInvestment ; } public List<ProjectProphaseWorkContent> getProjectProphaseWorkContents() { return projectProphaseWorkContents ; } public void setProjectProphaseWorkContents(List<ProjectProphaseWorkContent> projectProphaseWorkContents) { this.projectProphaseWorkContents = projectProphaseWorkContents ; } }
[ "pzzying20081128@163.com" ]
pzzying20081128@163.com
b13f5da1c359b35abc872463686156f56842d5d8
f92ac816e01713a2dd63e9465abcd90d74e6959e
/src/com/zhiwei/credit/model/flow/NodeNodeUserMapping.java
ca4da471e5ac3b8ad0ab6bd165cbc16b699f09df
[]
no_license
daichangya/zfzx_erp
9c2cfaa824d0efe99a44ea65cabfa70f5e90e1bf
756868d80485398c9a3a530dacf5e8b8a7e5df3a
refs/heads/master
2020-03-29T08:47:17.626002
2018-09-04T03:16:59
2018-09-04T03:19:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
943
java
package com.zhiwei.credit.model.flow; import java.util.HashMap; import java.util.Map; import java.util.Set; import com.zhiwei.credit.model.system.AppUser; public class NodeNodeUserMapping { /** * 节点名 */ private String nodeName; /** * 跳出节点名,用户列表, */ private Map<String,Set<AppUser>> nodeUserMapping=new HashMap<String, Set<AppUser>>(); public String getNodeName() { return nodeName; } public void setNodeName(String nodeName) { this.nodeName = nodeName; } public Map<String, Set<AppUser>> getNodeUserMapping() { return nodeUserMapping; } public void setNodeUserMapping(Map<String, Set<AppUser>> nodeUserMapping) { this.nodeUserMapping = nodeUserMapping; } public NodeNodeUserMapping() { } public NodeNodeUserMapping(String nodeName, Map<String, Set<AppUser>> nodeUserMapping) { super(); this.nodeName = nodeName; this.nodeUserMapping = nodeUserMapping; } }
[ "364856477@qq.com" ]
364856477@qq.com
5c6a3a90ddb9539d5e685a798f0221a5da91bdef
fd57ede0ba18642a730cc862c9e9059ec463320b
/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ObservableFieldBindingObject.java
943a8b872550c3fa7d3734033e8ab7753e1a8b6e
[]
no_license
kailaisi/android-29-framwork
a0c706fc104d62ea5951ca113f868021c6029cd2
b7090eebdd77595e43b61294725b41310496ff04
refs/heads/master
2023-04-27T14:18:52.579620
2021-03-08T13:05:27
2021-03-08T13:05:27
254,380,637
1
1
null
2023-04-15T12:22:31
2020-04-09T13:35:49
C++
UTF-8
Java
false
false
3,907
java
/* * Copyright (C) 2015 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 android.databinding.testapp.vo; import android.databinding.ObservableBoolean; import android.databinding.ObservableByte; import android.databinding.ObservableChar; import android.databinding.ObservableDouble; import android.databinding.ObservableField; import android.databinding.ObservableFloat; import android.databinding.ObservableInt; import android.databinding.ObservableLong; import android.databinding.ObservableParcelable; import android.databinding.ObservableShort; import android.os.Parcel; import android.os.Parcelable; public class ObservableFieldBindingObject { public final ObservableBoolean bField = new ObservableBoolean(); public final ObservableByte tField = new ObservableByte(); public final ObservableShort sField = new ObservableShort(); public final ObservableChar cField = new ObservableChar(); public final ObservableInt iField = new ObservableInt(); public final ObservableLong lField = new ObservableLong(); public final ObservableFloat fField = new ObservableFloat(); public final ObservableDouble dField = new ObservableDouble(); public final ObservableParcelable<MyParcelable> pField; public final ObservableField<String> oField = new ObservableField<>(); public ObservableFieldBindingObject() { oField.set("Hello"); MyParcelable myParcelable = new MyParcelable(3, "abc"); pField = new ObservableParcelable(myParcelable); } public static class MyParcelable implements Parcelable { int x; String y; public MyParcelable(int x, String y) { this.x = x; this.y = y; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(x); dest.writeString(y); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MyParcelable that = (MyParcelable) o; if (x != that.x) { return false; } if (y != null ? !y.equals(that.y) : that.y != null) { return false; } return true; } public int getX() { return x; } public String getY() { return y; } @Override public int hashCode() { int result = x; result = 31 * result + (y != null ? y.hashCode() : 0); return result; } public static final Parcelable.Creator<MyParcelable> CREATOR = new Parcelable.Creator<MyParcelable>() { @Override public MyParcelable createFromParcel(Parcel source) { return new MyParcelable(source.readInt(), source.readString()); } @Override public MyParcelable[] newArray(int size) { return new MyParcelable[size]; } }; } }
[ "541018378@qq.com" ]
541018378@qq.com
d6c33cf23ebab6d1839c2b72023ab7fcca8d3366
3b22a684e1540d58d07bc6a12ab09584884c273d
/hybris/bin/ext-content/cmsfacades/src/de/hybris/platform/cmsfacades/uniqueidentifier/functions/DefaultCmsItemModelUniqueIdentifierConverter.java
f96eb6e21df58d8e5fe883b27061c5562c054b75
[]
no_license
ScottGledhill/HYB
955221b824b8f0d1b0e584d3f80c2e48bc0c19d9
0c91735fe889bc47878c851445220dbcae7ca281
refs/heads/master
2021-07-25T20:00:36.924559
2017-10-27T14:17:02
2017-10-27T14:17:02
108,548,668
0
0
null
null
null
null
UTF-8
Java
false
false
2,745
java
/* * [y] hybris Platform * * Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package de.hybris.platform.cmsfacades.uniqueidentifier.functions; import static com.google.common.base.Preconditions.checkArgument; import static java.lang.String.format; import de.hybris.platform.cms2.exceptions.CMSItemNotFoundException; import de.hybris.platform.cms2.model.contents.CMSItemModel; import de.hybris.platform.cms2.servicelayer.services.admin.CMSAdminItemService; import de.hybris.platform.cmsfacades.data.ItemData; import de.hybris.platform.cmsfacades.uniqueidentifier.UniqueIdentifierConverter; import de.hybris.platform.servicelayer.dto.converter.Converter; import de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Required; /** * Default implementation for conversion of {@link CMSItemModel} */ public class DefaultCmsItemModelUniqueIdentifierConverter implements UniqueIdentifierConverter<CMSItemModel> { private Converter<CMSItemModel, ItemData> cmsItemModelItemDataConverter; private CMSAdminItemService cmsAdminItemService; @Override public String getItemType() { return CMSItemModel._TYPECODE; } @Override public ItemData convert(final CMSItemModel cmsItemModel) { return getCmsItemModelItemDataConverter().convert(cmsItemModel); } @Override public CMSItemModel convert(final ItemData itemData) { checkArgument(itemData != null, "itemData must not be null"); checkArgument(StringUtils.isNoneBlank(itemData.getItemId()), "itemData.itemId must not be null or empty"); try { return getCmsAdminItemService().findByUid(itemData.getItemId()); } catch (CMSItemNotFoundException e) { throw new UnknownIdentifierException(format("could not find ItemModel with uid %s", itemData.getItemId())); } } protected Converter<CMSItemModel, ItemData> getCmsItemModelItemDataConverter() { return cmsItemModelItemDataConverter; } @Required public void setCmsItemModelItemDataConverter(final Converter<CMSItemModel, ItemData> cmsItemModelItemDataConverter) { this.cmsItemModelItemDataConverter = cmsItemModelItemDataConverter; } @Required public void setCmsAdminItemService(CMSAdminItemService cmsAdminItemService) { this.cmsAdminItemService = cmsAdminItemService; } protected CMSAdminItemService getCmsAdminItemService() { return cmsAdminItemService; } }
[ "ScottGledhill@hotmail.co.uk" ]
ScottGledhill@hotmail.co.uk
171adb26981d4136f49bef7192e30d2a82e99982
73b3782e22ee0fb90a38b6d480961f161c9e2d19
/pep-mod-biz-api/src/main/java/yunnex/pep/biz/sys/dto/SysDictPageReqDto.java
216c83121392c7f4be8a595d6a61a96f14279f43
[]
no_license
13802706376/HIYA_CORE_CODES_6ISA_pep
245b0c4b71f78ede93f57c76057bced4cf8e0adc
71d0a448102f1b872747a86601c30a4f97ed2cf6
refs/heads/master
2020-04-08T12:33:39.964723
2018-11-27T15:10:16
2018-11-27T15:10:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
868
java
package yunnex.pep.biz.sys.dto; import java.io.Serializable; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import lombok.experimental.Accessors; /** * 数据字典 PageReqDto * * @author 政经平台 * @since 2018-10-25 */ @Data @EqualsAndHashCode(callSuper = true) @Accessors(chain = true) @ToString(callSuper = true) @ApiModel(value="数据字典分页请求DTO", description="数据字典") public class SysDictPageReqDto extends Page<SysDictPageRespDto> implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "类型") private String type; @ApiModelProperty(value = "名称") private String name; }
[ "caozhijun@caozhijun-book" ]
caozhijun@caozhijun-book
64dbb9c553d2d85cf2e99ac01a88561d46fc1614
a1a6c1b700c9cd8cba1fd43fbc83af071dfd2800
/kaixin_source/src/com/tencent/jsutil/JsBridge$2.java
d3de80486daa229cd2391f6e519351a2f71ac129
[]
no_license
jingshauizh/kaixin
58c315f99dcdde09589471fcaa262e0a1598701c
11b8d109862dba00b7a78f9002e47064f26a0175
refs/heads/master
2021-07-11T00:55:46.997368
2021-04-16T09:41:47
2021-04-16T09:41:47
25,718,738
0
1
null
null
null
null
UTF-8
Java
false
false
1,503
java
package com.tencent.jsutil; import android.os.Handler; import android.os.Message; import android.util.Log; class JsBridge$2 implements Runnable { public void run() { while (JsBridge.access$100(this.this$0) < 100); StringBuffer localStringBuffer = new StringBuffer(); localStringBuffer.append("javascript:"); localStringBuffer.append(this.val$method); localStringBuffer.append("("); if (this.val$params != null) { int i = 0; while (true) if (i < this.val$params.length) try { Integer.valueOf(this.val$params[i]); localStringBuffer.append(this.val$params[i]); if (i != -1 + this.val$params.length) localStringBuffer.append(","); i++; } catch (Exception localException) { while (true) localStringBuffer.append("'" + JsBridge.access$200(this.this$0, this.val$params[i]) + "'"); } } localStringBuffer.append(");"); Log.i("JsBridge", "excuteMethod:" + localStringBuffer.toString()); Message localMessage = new Message(); localMessage.what = 0; localMessage.obj = localStringBuffer.toString(); this.this$0.handler.sendMessage(localMessage); } } /* Location: C:\9exce\android\pj\kaixin_android_3.9.9_034_kaixin001\classes_dex2jar.jar * Qualified Name: com.tencent.jsutil.JsBridge.2 * JD-Core Version: 0.6.0 */
[ "jingshuaizh@163.com" ]
jingshuaizh@163.com
490d6838fbb5e67ec5ebdb00ac6aa8f6f7fe30a8
b472178e989fb51956ad082a4532a400be9085e4
/springbuckswaiter/src/main/java/com/example/springbuckswaiter/service/CoffeeOrderService.java
32669d2b7dfceebe0a0d8149f93c3d82fb2a97c1
[]
no_license
datou-leo/JAVA_TEST
e4db450d5dbe8883034bc1746045012ba8e904f6
7234875713f5f406c5e95b4b2ec387cfb010aad3
refs/heads/master
2022-11-26T20:36:12.243454
2020-01-11T09:41:54
2020-01-11T09:41:54
227,584,601
0
0
null
2022-11-16T10:37:45
2019-12-12T10:52:43
Java
UTF-8
Java
false
false
1,562
java
package com.example.springbuckswaiter.service; import com.example.springbuckswaiter.model.Coffee; import com.example.springbuckswaiter.model.CoffeeOrder; import com.example.springbuckswaiter.model.OrderState; import com.example.springbuckswaiter.repository.CoffeeOrderRepository; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.transaction.Transactional; import java.util.ArrayList; import java.util.Arrays; @Slf4j @Service @Transactional public class CoffeeOrderService { @Autowired private CoffeeOrderRepository coffeeOrderRepository; public CoffeeOrder createOrder(String customer, Coffee... coffee) { CoffeeOrder order = CoffeeOrder.builder().customer(customer).items(new ArrayList<>(Arrays.asList(coffee))).state(OrderState.INIT).build(); log.info("Order:{}",order); CoffeeOrder saved = coffeeOrderRepository.save(order); log.info("New Order:{}", saved); return saved; } public boolean updateState(CoffeeOrder order, OrderState orderState) { if (orderState.compareTo(order.getState()) < 0){ log.warn("Wrong State order:{},{}", orderState, order.getState()); return false; } order.setState(orderState); coffeeOrderRepository.save(order); log.info("Update Order:{}",order); return true; } public CoffeeOrder getOrderById(Long id){ return coffeeOrderRepository.findById(id).get(); } }
[ "2323178881@qq.com" ]
2323178881@qq.com
b46eaea09ba2b153622c81f765a263becfa191e7
6e537843a03c0339e6eef2424ae4dd886057d61f
/graph-query-ir/src/main/java/oracle/pgql/lang/ir/OrderByElem.java
8fabebc0e6c600a4568f68054ff99169f9d5d041
[ "UPL-1.0", "Apache-2.0" ]
permissive
VladHaprian/pgql-lang
818e1de871ce5a7cb12c260f8e6bcacb6f06112a
fa84ef242a7309fc119c5b3c409776d316187ab7
refs/heads/master
2021-09-06T12:29:27.960625
2017-12-19T00:23:11
2017-12-19T00:23:11
114,789,622
0
0
null
2017-12-19T16:51:47
2017-12-19T16:51:46
null
UTF-8
Java
false
false
1,134
java
/** * Copyright (C) 2013 - 2017 Oracle and/or its affiliates. All rights reserved. */ package oracle.pgql.lang.ir; import static oracle.pgql.lang.ir.PgqlUtils.printPgqlString; public class OrderByElem { private final QueryExpression exp; private final boolean ascending; public QueryExpression getExp() { return exp; } public boolean isAscending() { return ascending; } public OrderByElem(QueryExpression exp, boolean ascending) { this.exp = exp; this.ascending = ascending; } @Override public String toString() { return printPgqlString(this); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrderByElem that = (OrderByElem) o; if (ascending != that.ascending) { return false; } return exp.equals(that.exp); } @Override public int hashCode() { int result = exp.hashCode(); result = 31 * result + (ascending ? 1 : 0); return result; } public void accept(QueryExpressionVisitor v) { v.visit(this); } }
[ "oskar.van.rest@oracle.com" ]
oskar.van.rest@oracle.com
97883db2f4c066f9cbd4b0f5f64f2146656c9fea
51690f8c203fb530c9460eaf1ae29b6a3e1352fb
/rxbus/src/test/java/com/blankj/rxbus/UtilsTest.java
80c450dffd3de427e8d325aeac17fd0fbc68a276
[ "Apache-2.0" ]
permissive
o03150/RxBus
200561f7de7fa57ac97eaa0c86ee78e60996e9cd
20ae7647aca660d476d2a99549968973f4c98870
refs/heads/master
2020-03-25T20:02:49.087569
2018-08-07T07:57:28
2018-08-07T07:57:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,320
java
package com.blankj.rxbus; import org.junit.Test; import java.util.ArrayList; /** * <pre> * author: Blankj * blog : http://blankj.com * time : 2018/06/04 * desc : * </pre> */ public class UtilsTest { @Test public void getClassFromCallback() { Class<String> className0 = Utils.getTypeClassFromCallback(new RxBus.Callback<String>() { @Override public void onEvent(String strings) { } }); System.out.println(className0); Class<ArrayList<String>> className1 = Utils.getTypeClassFromCallback(new RxBus.Callback<ArrayList<String>>() { @Override public void onEvent(ArrayList<String> strings) { } }); System.out.println(className1); Class<RxBus.Callback> interfaceName0 = Utils.getTypeClassFromCallback(new RxBus.Callback<RxBus.Callback>() { @Override public void onEvent(RxBus.Callback strings) { } }); System.out.println(interfaceName0); Class<RxBus.Callback<String>> interfaceName1 = Utils.getTypeClassFromCallback(new RxBus.Callback<RxBus.Callback<String>>() { @Override public void onEvent(RxBus.Callback<String> strings) { } }); System.out.println(interfaceName1); } // class java.lang.String // class java.util.ArrayList // interface com.blankj.rxbus.RxBus$Callback // interface com.blankj.rxbus.RxBus$Callback @Test public void getTypeNameFromObject() { System.out.println(Utils.getClassFromObject("test")); System.out.println(Utils.getClassFromObject(new ArrayList<String>())); RxBus.Callback callback0 = new RxBus.Callback() { @Override public void onEvent(Object o) { } }; System.out.println(callback0.getClass()); System.out.println(Utils.getClassFromObject(callback0)); RxBus.Callback<RxBus.Callback<String>> callback1 = new RxBus.Callback<RxBus.Callback<String>>() { @Override public void onEvent(RxBus.Callback<String> strings) { } }; System.out.println(callback1.getClass()); System.out.println(Utils.getClassFromObject(callback1)); } }
[ "625783482@qq.com" ]
625783482@qq.com
90d933ad6e763fc27822274a376d021b774d7479
0b0f5aaf4fc19c1e6b2f4729756d1f08345f3f7a
/src/main/java/com/genaral/security/SHA1.java
95007591af11a9b416885c6bcef86c99aa6536fb
[]
no_license
spiderII/commonUtils
bc6ffd2f5aacdaffeb07df563293d12626c0e35a
769f7ddd8f534eae8f434a84f05d6268d5ec784b
refs/heads/master
2020-11-26T05:01:47.399714
2018-01-19T09:39:58
2018-01-19T09:39:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
992
java
package com.genaral.security; import com.genaral.object.ObjectUtil; import java.nio.charset.Charset; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA1 { public static String byte2hex(byte[] b) { StringBuilder sbDes = new StringBuilder(); String tmp = null; for (int i = 0; i < b.length; i++) { tmp = (Integer.toHexString(b[i] & 0xFF)); if (tmp.length() == 1) { sbDes.append("0"); } sbDes.append(tmp); } return sbDes.toString(); } public static String encrypt(String strSrc, String charset) { MessageDigest digest = null; byte[] bt = null; try { digest = MessageDigest.getInstance("SHA-1"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } String strDes = null; if(!ObjectUtil.isEmpty(charset)) { bt = strSrc.getBytes(Charset.forName(charset)); } else { bt = strSrc.getBytes(); } digest.update(bt); strDes = byte2hex(digest.digest()); return strDes; } }
[ "test" ]
test
e571007ea8d59bed0d6da23a7a1fc55ff8750820
349de604fa3b72a9fc4097b749ef7efe8546b71a
/travelagency-domain/src/main/java/ca/travelagency/identity/NameCriteria.java
e1ac7428c95db250774f9a5e5924cebf3dc74f73
[ "Apache-2.0" ]
permissive
Intelliware/travelagency-heroku
347e9d2a28a4918580c7fb1a447304400710b37c
70252b7d889fcbf2b7536ce09021da9528cfcc44
refs/heads/master
2021-01-10T19:50:53.610422
2014-01-21T17:05:15
2014-01-21T17:05:15
16,108,008
1
0
null
null
null
null
UTF-8
Java
false
false
2,438
java
/** * Copyright (C) 2010 - 2014 VREM Software Development <VREMSoftwareDevelopment@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 ca.travelagency.identity; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.text.WordUtils; import ca.travelagency.persistence.DaoCriteria; import ca.travelagency.persistence.DaoEntity; import ca.travelagency.persistence.query.Condition; import ca.travelagency.persistence.query.Condition.Operator; import ca.travelagency.persistence.query.Criteria; import ca.travelagency.utils.StringUtils; public class NameCriteria implements DaoCriteria { private static final long serialVersionUID = 1L; public static NameCriteria make(String name) { NameCriteria result = new NameCriteria(); result.setName(name); return result; } private String name; public String getName() { return name; } void setName(String name) { this.name = WordUtils.capitalize(StringUtils.lowerCase(name)); } private NameCriteria() {} Condition makeCondition() { return Condition.make(DaoEntity.PROPERTY_NAME, Operator.EQUAL, name); } @Override public Criteria getCriteria() { return Criteria.make(SystemUser.class).addAndCondition(makeCondition()); } @Override public int hashCode() { return new HashCodeBuilder().append(getName()).toHashCode(); } @Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof NameCriteria)) { return false; } return new EqualsBuilder().append(getName(), ((NameCriteria) object).getName()).isEquals(); } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
[ "VREMSoftwareDevelopment@gmail.com" ]
VREMSoftwareDevelopment@gmail.com
95bf8ec2f0c8e13f4ae41815b38313fa3f724ab7
28aead05e90c80a6862cc6f02f7b62b0d0fbbc5a
/corejava/src/main/java/com/bobozhuang/simpleDate/TestFV38.java
6d952e4a926def4551ef5a4367e948ebbefd8a81
[ "Apache-2.0" ]
permissive
bobozhuang/javaSE
f02ba5657f8ed8515454e3dfad19435108bfb0b3
476e2a005c064e51931954e1bc7f2866cd5e5139
refs/heads/master
2022-07-18T19:53:06.023357
2021-07-26T12:11:00
2021-07-26T12:11:00
182,407,650
0
0
Apache-2.0
2022-05-25T07:17:21
2019-04-20T13:11:34
Java
UTF-8
Java
false
false
782
java
package main.java.com.bobozhuang.simpleDate; import java.util.HashMap; import java.util.Map; //import org.apache.commons.logging.Log; //import org.apache.commons.logging.LogFactory; // //import com.spdb.hostserver.client.test.Client; //import com.spdb.hostserver.client.test.Constants; public class TestFV38 { // private static Log log = LogFactory.getLog(TestFV38.class); // // public static void main(String[] args) throws Exception{ // Client clent = new Client("10.134.15.109", 57910); // Map send = new HashMap(); // send.put(Constants.TRANSNAME, "FV38"); // send.put("CustomerId", "1293631160"); // send.put("UkeyId", "PF15TA0100000623"); // Map receive = (Map) clent.submit(send); // log.debug("���ر��ģ�" + receive); // } }
[ "12345678" ]
12345678
cf7f12ed35e07b647952eec9b4a1fcf24d2af6ee
023026406e83cd07568f0402816fb9d25985d376
/rockscript/src/main/java/io/rockscript/engine/impl/Time.java
f46f4ff584c77e0a6b9e1735d30f5f05f4ab40df
[ "Apache-2.0" ]
permissive
rockscript/rockscript
49d4054031d3270ff6dcc5d63afd10f305fa4968
4f7c015a2ceddeca7e6cb1203689365b9a2fedf6
refs/heads/master
2023-03-08T15:55:18.146892
2018-01-31T08:28:23
2018-01-31T08:28:23
97,486,524
63
8
Apache-2.0
2018-10-26T14:38:28
2017-07-17T14:35:29
Java
UTF-8
Java
false
false
1,044
java
/* * Copyright (c) 2017 RockScript.io. * 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 io.rockscript.engine.impl; import java.time.Instant; public class Time { protected static Instant now; public static Instant now() { return now!=null ? now : Instant.now(); } }
[ "mail@tombaeyens.be" ]
mail@tombaeyens.be
f85bb52f2105b6525424cdd2adf8f66bbe7df5a1
ef1d87b64da817da712227fb869b2fd23b32e8a7
/bus-image/src/main/java/org/aoju/bus/image/galaxy/io/SAXTransformer.java
766ad2d91cb4910141fb669a0bc57ac2af9860a2
[ "MIT" ]
permissive
Touhousupports/bus
b4a91563df2118d4b52a7c1345a8eb9c21380fd9
e2e3951b9921d7a92c7e0fdce24781e08b588f00
refs/heads/master
2022-11-22T09:26:18.088266
2020-07-17T02:17:43
2020-07-17T02:17:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,473
java
/********************************************************************************* * * * The MIT License (MIT) * * * * Copyright (c) 2015-2020 aoju.org and other contributors. * * * * 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.aoju.bus.image.galaxy.io; import org.aoju.bus.image.galaxy.data.Attributes; import org.xml.sax.SAXException; import javax.xml.transform.*; import javax.xml.transform.sax.SAXResult; import javax.xml.transform.sax.SAXTransformerFactory; import javax.xml.transform.sax.TransformerHandler; /** * @author Kimi Liu * @version 6.0.3 * @since JDK 1.8+ */ public abstract class SAXTransformer { private static final SAXTransformerFactory factory = (SAXTransformerFactory) TransformerFactory.newInstance(); public static SAXWriter getSAXWriter(Templates templates, Attributes result) throws TransformerConfigurationException { return getSAXWriter(templates, result, null); } public static SAXWriter getSAXWriter(Templates templates, Attributes result, SetupTransformer setup) throws TransformerConfigurationException { return getSAXWriter(templates, new SAXResult(new ContentHandlerAdapter(result)), setup); } public static SAXWriter getSAXWriter(Templates templates, Result result) throws TransformerConfigurationException { return getSAXWriter(templates, result, null); } public static SAXWriter getSAXWriter(Templates templates, Result result, SetupTransformer setup) throws TransformerConfigurationException { return getSAXWriter(factory.newTransformerHandler(templates), result, setup); } public static SAXWriter getSAXWriter(Result result) throws TransformerConfigurationException { return getSAXWriter(result, null); } public static SAXWriter getSAXWriter(Result result, SetupTransformer setup) throws TransformerConfigurationException { return getSAXWriter(factory.newTransformerHandler(), result, setup); } private static SAXWriter getSAXWriter(TransformerHandler th, Result result, SetupTransformer setup) { th.setResult(result); if (setup != null) setup.setup(th.getTransformer()); return new SAXWriter(th); } public static Attributes transform(Attributes ds, Templates templates, boolean includeNameSpaceDeclaration, boolean includeKeword) throws SAXException, TransformerConfigurationException { return transform(ds, templates, includeNameSpaceDeclaration, includeKeword, null); } public static Attributes transform(Attributes ds, Templates templates, boolean includeNameSpaceDeclaration, boolean includeKeword, SetupTransformer setup) throws SAXException, TransformerConfigurationException { Attributes modify = new Attributes(); SAXWriter w = SAXTransformer.getSAXWriter( templates, modify, setup); w.setIncludeNamespaceDeclaration(includeNameSpaceDeclaration); w.setIncludeKeyword(includeKeword); w.write(ds); return modify; } public static Templates newTemplates(Source source) throws TransformerConfigurationException { return factory.newTemplates(source); } public interface SetupTransformer { void setup(Transformer transformer); } }
[ "839536@qq.com" ]
839536@qq.com
39358eb04f499d0a8e552badfba6b430b70dddff
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/test/org/apache/flink/configuration/CoreOptionsTest.java
add49c4547a021eabdf066d0f59801a8679c2049
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
1,942
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.flink.configuration; import CoreOptions.ALWAYS_PARENT_FIRST_LOADER_PATTERNS; import CoreOptions.ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL; import org.junit.Assert; import org.junit.Test; /** * Tests for {@link CoreOptions}. */ public class CoreOptionsTest { @Test public void testGetParentFirstLoaderPatterns() { Configuration config = new Configuration(); Assert.assertArrayEquals(ALWAYS_PARENT_FIRST_LOADER_PATTERNS.defaultValue().split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); config.setString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS, "hello;world"); Assert.assertArrayEquals("hello;world".split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); config.setString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL, "how;are;you"); Assert.assertArrayEquals("hello;world;how;are;you".split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); config.setString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS, ""); Assert.assertArrayEquals("how;are;you".split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
e400f2cc5aa8cfb764a7ac2e17b5f1ce143488eb
59bb2b6812d46aef3abaa2b762a8439497a71c77
/vertxwalmartapp/src/main/java/com/walmart/vertx/eventbus/EventBusWIthOptions.java
334a60f5d882ce9f794d5494b239e00afa0928a4
[]
no_license
progroom/Walmart-Vertx-Sep-20
28917d73bcb467d3e2ec3e86470b67e9c228b989
8bc8b7440c9978358896015bed983fa45f025d2c
refs/heads/master
2022-12-22T00:39:32.004131
2020-09-05T02:55:32
2020-09-05T02:55:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,091
java
package com.walmart.vertx.eventbus; import io.vertx.core.AbstractVerticle; import io.vertx.core.eventbus.DeliveryOptions; import io.vertx.core.eventbus.EventBus; import io.vertx.core.eventbus.MessageConsumer; import io.vertx.example.util.Runner; class Reciver extends AbstractVerticle { @Override public void start() throws Exception { super.start(); // EventBus eb = vertx.eventBus(); // // eb.consumer("ping-address", message -> { // // System.out.println("Received message: " + message.body()); // // Now send back reply // message.reply("pong!"); // }); EventBus eventBus = vertx.eventBus(); //pub-sub MessageConsumer<String> messageConsumer = eventBus.consumer("ping-address"); //handle /process the message/news // messageConsumer.setMaxBufferedMessages(5000); System.out.println(messageConsumer.getMaxBufferedMessages()); messageConsumer.handler(message -> { System.out.println(message.headers()); System.out.println(message.replyAddress()); System.out.println("Request - : " + message.body()); message.reply("pong!"); }); System.out.println("Receiver ready!"); } } class Sender extends AbstractVerticle { @Override public void start() throws Exception { super.start(); // EventBus eb = vertx.eventBus(); // Send a message every second DeliveryOptions deliveryOptions = new DeliveryOptions(); deliveryOptions.setSendTimeout(100); deliveryOptions.addHeader("msg", "header"); vertx.eventBus().request("ping-address", "ping!", deliveryOptions, reply -> { if (reply.succeeded()) { System.out.println("Received reply " + reply.result().body()); } else { System.out.println("No reply"); } }); } } public class EventBusWIthOptions extends AbstractVerticle { public static void main(String[] args) { Runner.runExample(EventBusWIthOptions.class); } @Override public void start() throws Exception { super.start(); vertx.deployVerticle(new Sender()); vertx.deployVerticle(new Reciver()); } }
[ "sasubramanian_md@hotmail.com" ]
sasubramanian_md@hotmail.com
a18c4866dfcd8485fdcf83c34d3994dec802c566
5074b0ab213819756e5ff8d2d043d951b258ff8b
/Wala/src/main/java/com/socialtv/mzs/entity/RobTicket.java
6cf30026f9d6b3aaed826897b18b914c5f5b10a8
[]
no_license
285336243/trunk
1ea5102cf5f12e8b34704028a6cafc0f4d1de891
96c5e68ccef71e6ed3ac9a161595936456cf2360
refs/heads/master
2021-01-13T00:37:16.942406
2016-03-27T09:31:17
2016-03-27T09:31:17
53,727,287
3
2
null
null
null
null
UTF-8
Java
false
false
300
java
package com.socialtv.mzs.entity; import com.socialtv.Response; /** * Created by wlanjie on 14-9-2. */ public class RobTicket extends Response { private Game game; public Game getGame() { return game; } public void setGame(Game game) { this.game = game; } }
[ "285336243@qq.com" ]
285336243@qq.com
7b83b604388baf5df8cf5a6fad6acab342cad873
b9c9401772a849cf27fbd155a762eddbdbca25ad
/app/src/androidTest/java/net/cattaka/android/fastchecklist/FastCheckListActivityTest.java
999e66070bffbb6adb9454b6324ce9f8f478d30f
[]
no_license
toshiyukihayashi/FastCheckList
365ae146bbe995e2912fa6baed98300920b5e6f8
e4f28d19e14d974c9569e9051ab83f4e9a2de027
refs/heads/master
2021-01-13T13:48:12.999824
2016-12-13T04:29:37
2016-12-13T04:29:37
76,322,404
0
0
null
2016-12-13T04:25:36
2016-12-13T04:25:36
null
UTF-8
Java
false
false
746
java
package net.cattaka.android.fastchecklist; import android.content.Context; import android.content.Intent; import android.test.ActivityInstrumentationTestCase2; import android.test.ActivityUnitTestCase; import android.test.RenamingDelegatingContext; import net.cattaka.android.fastchecklist.core.ContextLogic; import net.cattaka.android.fastchecklist.core.ContextLogicFactory; import net.cattaka.android.fastchecklist.test.BaseTestCase; public class FastCheckListActivityTest extends BaseTestCase<FastCheckListActivity> { public FastCheckListActivityTest() { super(FastCheckListActivity.class); } public void testStartActivity() { FastCheckListActivity activity = getActivity(); activity.finish(); } }
[ "cattaka@mail.cattaka.net" ]
cattaka@mail.cattaka.net
fef882376b7252c5e0d8b143004d7863448ca1db
54077c966db8f161bdae58970b2298ede10c50ab
/src/main/java/jacz/peerengineclient/data/FileHashDatabaseEvents.java
884e82c33ae38383e2569822d0ccad8c40980b51
[]
no_license
albertoanguita/jaczpeerengineclient
f01f787b9a05e4aaca569bc83c7081b955074cad
80b1dc3587e8f375478888aa47cb9d4dc32e1788
refs/heads/master
2020-12-24T06:17:26.620598
2016-07-20T08:34:36
2016-07-20T08:34:36
42,229,930
0
0
null
null
null
null
UTF-8
Java
false
false
296
java
package jacz.peerengineclient.data; /** * Events related to the addition and removal of files from the file hash database (local repository of files) */ public interface FileHashDatabaseEvents { void fileAdded(String hash, String path); void fileRemoved(String hash, String path); }
[ "alberto.anguita@gmail.com" ]
alberto.anguita@gmail.com
6be536ea3019a6fd13a7b8e6b4ebaf0ac8296ddb
cd48551346edeef17d95527f1acd78bb3d4c47f3
/src/main/java/org/netbeans/editor/ext/ScrollJavaDocPane.java
bdbf55fa04a14186df8c91981f2f2db3d059aae3
[ "Apache-2.0" ]
permissive
tszielin/q-lab-editor
56c387f5a8f2437857813754b1e17fcc9ecd4411
eaf1baa4373d8ee476c0b8cfbc30c54fe0afbd46
refs/heads/master
2021-01-10T02:23:49.816445
2016-03-02T16:56:10
2016-03-02T16:56:10
52,768,617
1
0
null
null
null
null
UTF-8
Java
false
false
5,836
java
/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.editor.ext; import org.netbeans.editor.*; import javax.swing.*; import javax.swing.border.Border; import javax.swing.border.LineBorder; import javax.swing.event.HyperlinkEvent; import javax.swing.event.HyperlinkListener; import java.awt.*; import java.net.URL; /** * JScrollPane implementation of JavaDocPane. * * @author Martin Roskanin * @since 03/2002 */ public class ScrollJavaDocPane extends JPanel implements JavaDocPane, SettingsChangeListener{ protected ExtEditorUI extEditorUI; private JComponent view; // private CompletionJavaDoc cjd; protected JScrollPane scrollPane = new JScrollPane(); Border lineBorder; /** Creates a new instance of ScrollJavaDocPane */ public ScrollJavaDocPane(ExtEditorUI extEditorUI) { // new RuntimeException("ScrollJavaDocPane.<init>").printStackTrace(); setLayout(null); this.extEditorUI = extEditorUI; // Add the completionJavaDoc view // cjd = extEditorUI.getCompletionJavaDoc(); /* if (cjd!=null){ JavaDocView javaDocView = cjd.getJavaDocView(); if (javaDocView instanceof JComponent) { if (javaDocView instanceof JEditorPane){ ((JEditorPane)javaDocView).addHyperlinkListener(new HyperlinkAction()); } view = (JComponent)javaDocView; scrollPane.setViewportView(view); } Settings.addSettingsChangeListener(this); setMinimumSize(new Dimension(100,100)); //[PENDING] put it into the options setMaximumSize(getMaxPopupSize()); }else{ setMinimumSize(new Dimension(0,0)); setMaximumSize(new Dimension(0,0)); } */ super.setVisible(false); add(scrollPane); getAccessibleContext().setAccessibleDescription(LocaleSupport.getString("ACSD_JAVADOC_javaDocPane")); //NOI18N // !!! virtual method called from contructor!! installTitleComponent(); setBorder(new LineBorder(javax.swing.UIManager.getColor("controlDkShadow"))); //NOI18N } public void setBounds(Rectangle r){ super.setBounds(r); scrollPane.setBounds(r.x, 0, r.width+1, r.height ); } public void setVisible(boolean visible){ super.setVisible(visible); /* if (cjd!=null && !visible){ cjd.clearHistory(); } */ } protected ImageIcon resolveIcon(String res){ ClassLoader loader = this.getClass().getClassLoader(); URL resource = loader.getResource( res ); if( resource == null ) resource = ClassLoader.getSystemResource( res ); return ( resource != null ) ? new ImageIcon( resource ) : null; } protected void installTitleComponent() { } private Dimension getMaxPopupSize(){ Class kitClass = Utilities.getKitClass(extEditorUI.getComponent()); if (kitClass != null) { return (Dimension)SettingsUtil.getValue(kitClass, ExtSettingsNames.JAVADOC_PREFERRED_SIZE, ExtSettingsDefaults.defaultJavaDocAutoPopupDelay); } return ExtSettingsDefaults.defaultJavaDocPreferredSize; } public void settingsChange(SettingsChangeEvent evt) { if (ExtSettingsNames.JAVADOC_PREFERRED_SIZE.equals(evt.getSettingName())){ setMaximumSize(getMaxPopupSize()); } } public JComponent getComponent() { return this; } public void setForwardEnabled(boolean enable) { } public void setBackEnabled(boolean enable) { } public void setShowWebEnabled(boolean enable) { } public JComponent getJavadocDisplayComponent() { return scrollPane; } public class BrowserButton extends JButton { public BrowserButton() { setBorderPainted(false); setFocusPainted(false); } public BrowserButton(String text){ super(text); setBorderPainted(false); setFocusPainted(false); } public BrowserButton(Icon icon){ super(icon); setBorderPainted(false); setFocusPainted(false); } } protected class HyperlinkAction implements HyperlinkListener{ public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ /* if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj); cjd.addToHistory(obj); } } */ } } } /* private class BackAction implements ActionListener{ public void actionPerformed(ActionEvent evt) { if (cjd!=null){ System.out.println("back"); cjd.backHistory(); } } } private class ForwardAction implements ActionListener { public void actionPerformed(ActionEvent evt) { if (cjd!=null){ System.out.println("fwd"); cjd.forwardHistory(); } } } */ }
[ "thomas.zielinski@cognizant.com" ]
thomas.zielinski@cognizant.com
5128c479ac49b4efc5ce672dd03f4583f2410758
052980f85449c728ca8d245e92f65706c97a4105
/com/sun/corba/se/spi/activation/ServerAlreadyInstalled.java
047fa623074dc5eba5327bf017db850cf4f5290f
[]
no_license
Folgerjun/jdk1.8.0_162_src
5592273ef81c4ff19003a4f6b3ddcc4b6f1bdde8
589ced78cfbac34395e3a71680efe91041cb6b1d
refs/heads/master
2020-03-21T22:31:18.002129
2019-01-04T08:59:49
2019-01-04T08:59:49
139,131,641
2
1
null
null
null
null
UTF-8
Java
false
false
918
java
package com.sun.corba.se.spi.activation; /** * com/sun/corba/se/spi/activation/ServerAlreadyInstalled.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u162/10278/corba/src/share/classes/com/sun/corba/se/spi/activation/activation.idl * Tuesday, December 19, 2017 8:01:31 PM PST */ public final class ServerAlreadyInstalled extends org.omg.CORBA.UserException { public int serverId = (int)0; public ServerAlreadyInstalled () { super(ServerAlreadyInstalledHelper.id()); } // ctor public ServerAlreadyInstalled (int _serverId) { super(ServerAlreadyInstalledHelper.id()); serverId = _serverId; } // ctor public ServerAlreadyInstalled (String $reason, int _serverId) { super(ServerAlreadyInstalledHelper.id() + " " + $reason); serverId = _serverId; } // ctor } // class ServerAlreadyInstalled
[ "ffj0721@163.com" ]
ffj0721@163.com
6ab7e87df841daefc01d0f4ad22eac07f744ff05
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/boot/svg/code/drawable/mp_video_fullscreen_op_fullscreen_btn.java
1fbd00170fc25178be74ada3cc9dd672608fe174
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
6,416
java
package com.tencent.mm.boot.svg.code.drawable; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Paint.Cap; import android.graphics.Paint.Join; import android.graphics.Paint.Style; import android.graphics.Path; import android.os.Looper; import com.tencent.mm.svg.WeChatSVGRenderC2Java; import com.tencent.mm.svg.c; public class mp_video_fullscreen_op_fullscreen_btn extends c { private final int height = 75; private final int width = 72; public int doCommand(int paramInt, Object... paramVarArgs) { switch (paramInt) { } for (;;) { return 0; return 72; return 75; Canvas localCanvas = (Canvas)paramVarArgs[0]; paramVarArgs = (Looper)paramVarArgs[1]; Object localObject1 = c.instanceMatrix(paramVarArgs); Object localObject3 = c.instanceMatrixArray(paramVarArgs); Object localObject2 = c.instancePaint(paramVarArgs); ((Paint)localObject2).setFlags(385); ((Paint)localObject2).setStyle(Paint.Style.FILL); Paint localPaint = c.instancePaint(paramVarArgs); localPaint.setFlags(385); localPaint.setStyle(Paint.Style.STROKE); ((Paint)localObject2).setColor(-16777216); localPaint.setStrokeWidth(1.0F); localPaint.setStrokeCap(Paint.Cap.BUTT); localPaint.setStrokeJoin(Paint.Join.MITER); localPaint.setStrokeMiter(4.0F); localPaint.setPathEffect(null); c.instancePaint(localPaint, paramVarArgs).setStrokeWidth(1.0F); localCanvas.save(); localObject2 = c.instancePaint((Paint)localObject2, paramVarArgs); ((Paint)localObject2).setColor(-1); localObject3 = c.setMatrixFloatArray((float[])localObject3, 1.0F, 0.0F, -482.0F, 0.0F, 1.0F, -537.0F, 0.0F, 0.0F, 1.0F); ((Matrix)localObject1).reset(); ((Matrix)localObject1).setValues((float[])localObject3); localCanvas.concat((Matrix)localObject1); localCanvas.save(); localObject3 = c.setMatrixFloatArray((float[])localObject3, 1.0F, 0.0F, 482.0F, 0.0F, 1.0F, 537.0F, 0.0F, 0.0F, 1.0F); ((Matrix)localObject1).reset(); ((Matrix)localObject1).setValues((float[])localObject3); localCanvas.concat((Matrix)localObject1); localCanvas.save(); localObject1 = c.instancePaint((Paint)localObject2, paramVarArgs); localObject3 = c.instancePath(paramVarArgs); ((Path)localObject3).moveTo(29.0F, 26.032377F); ((Path)localObject3).lineTo(4.202622F, 1.234999F); ((Path)localObject3).cubicTo(3.240851F, 0.273229F, 1.691369F, 0.2762538F, 0.7338114F, 1.233811F); ((Path)localObject3).cubicTo(-0.2304221F, 2.198045F, -0.2232146F, 3.744408F, 0.7349988F, 4.702622F); ((Path)localObject3).lineTo(25.532377F, 29.5F); ((Path)localObject3).lineTo(5.754876F, 29.5F); ((Path)localObject3).cubicTo(4.498154F, 29.5F, 3.5F, 30.507359F, 3.5F, 31.75F); ((Path)localObject3).cubicTo(3.5F, 33.001305F, 4.509543F, 34.0F, 5.754876F, 34.0F); ((Path)localObject3).lineTo(31.245125F, 34.0F); ((Path)localObject3).cubicTo(31.245937F, 34.0F, 31.24675F, 34.0F, 31.247562F, 34.0F); ((Path)localObject3).cubicTo(31.248375F, 34.0F, 31.249187F, 34.0F, 31.25F, 34.0F); ((Path)localObject3).cubicTo(31.874836F, 34.0F, 32.436684F, 33.748272F, 32.842648F, 33.34116F); ((Path)localObject3).cubicTo(33.251106F, 32.932365F, 33.5F, 32.370518F, 33.5F, 31.75F); ((Path)localObject3).cubicTo(33.5F, 31.749187F, 33.5F, 31.748375F, 33.5F, 31.747562F); ((Path)localObject3).cubicTo(33.5F, 31.74675F, 33.5F, 31.745937F, 33.5F, 31.745125F); ((Path)localObject3).lineTo(33.5F, 6.254876F); ((Path)localObject3).cubicTo(33.5F, 4.998154F, 32.492641F, 4.0F, 31.25F, 4.0F); ((Path)localObject3).cubicTo(29.998695F, 4.0F, 29.0F, 5.009543F, 29.0F, 6.254876F); ((Path)localObject3).lineTo(29.0F, 26.032377F); ((Path)localObject3).close(); WeChatSVGRenderC2Java.setFillType((Path)localObject3, 2); localCanvas.drawPath((Path)localObject3, (Paint)localObject1); localCanvas.restore(); localCanvas.save(); localObject1 = c.instancePaint((Paint)localObject2, paramVarArgs); localObject2 = c.instancePath(paramVarArgs); ((Path)localObject2).moveTo(44.0F, 49.468422F); ((Path)localObject2).lineTo(67.828835F, 73.297256F); ((Path)localObject2).cubicTo(68.790787F, 74.259209F, 70.340591F, 74.256149F, 71.29837F, 73.29837F); ((Path)localObject2).cubicTo(72.262825F, 72.333916F, 72.255653F, 70.787224F, 71.297256F, 69.828835F); ((Path)localObject2).lineTo(47.468422F, 46.0F); ((Path)localObject2).lineTo(67.245125F, 46.0F); ((Path)localObject2).cubicTo(68.501846F, 46.0F, 69.5F, 44.992641F, 69.5F, 43.75F); ((Path)localObject2).cubicTo(69.5F, 42.498695F, 68.490456F, 41.5F, 67.245125F, 41.5F); ((Path)localObject2).lineTo(41.754875F, 41.5F); ((Path)localObject2).cubicTo(41.754063F, 41.5F, 41.75325F, 41.5F, 41.752438F, 41.5F); ((Path)localObject2).cubicTo(41.751625F, 41.5F, 41.750813F, 41.5F, 41.75F, 41.5F); ((Path)localObject2).cubicTo(41.129482F, 41.5F, 40.567635F, 41.748894F, 40.160591F, 42.154591F); ((Path)localObject2).cubicTo(39.748894F, 42.567635F, 39.5F, 43.129482F, 39.5F, 43.75F); ((Path)localObject2).cubicTo(39.5F, 43.750813F, 39.5F, 43.751625F, 39.5F, 43.752438F); ((Path)localObject2).cubicTo(39.5F, 43.75325F, 39.5F, 43.754063F, 39.5F, 43.754875F); ((Path)localObject2).lineTo(39.5F, 69.245125F); ((Path)localObject2).cubicTo(39.5F, 70.490456F, 40.498695F, 71.5F, 41.75F, 71.5F); ((Path)localObject2).cubicTo(42.992641F, 71.5F, 44.0F, 70.501846F, 44.0F, 69.245125F); ((Path)localObject2).lineTo(44.0F, 49.468422F); ((Path)localObject2).close(); WeChatSVGRenderC2Java.setFillType((Path)localObject2, 2); localCanvas.drawPath((Path)localObject2, (Paint)localObject1); localCanvas.restore(); localCanvas.restore(); localCanvas.restore(); c.done(paramVarArgs); } } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes12.jar * Qualified Name: com.tencent.mm.boot.svg.code.drawable.mp_video_fullscreen_op_fullscreen_btn * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
e47410f781ba69dfa362b4bc1f651560d72c97a0
7ced6c0ed03f2f9345bbc06a09dbbcf5c8687619
/catering-basic-server/catering-es/catering-es-server/src/main/java/com/meiyuan/catering/es/dto/marketing/EsMarketingIndexDTO.java
34c1424574165b6c3af9dc22e159be35939ea302
[]
no_license
haorq/food-word
c14d5752c6492aed4a6a1410f9e0352479460da0
18a71259d77b4d96261dab8ed51ca1f109ab5c2f
refs/heads/master
2023-01-01T12:19:48.967366
2020-10-26T07:32:25
2020-10-26T07:32:25
307,292,398
1
0
null
null
null
null
UTF-8
Java
false
false
3,384
java
package com.meiyuan.catering.es.dto.marketing; import com.meiyuan.catering.es.dto.merchant.EsMerchantBaseInfoDTO; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; import java.time.LocalDateTime; /** * @author wxf * @date 2020/5/26 11:12 * @description 简单描述 **/ @Data @ApiModel("ES活动DTO") public class EsMarketingIndexDTO extends EsMerchantBaseInfoDTO { /** * 活动商品表主键ID--活动下唯一 * ES中作为ID */ @ApiModelProperty("ES中唯一ID") private String mGoodsId; /** * 活动id 非唯一 ES中不作为ID */ @ApiModelProperty("活动id") private String id; /** * 名称 */ @ApiModelProperty("名称") private String name; /** * 活动开始时间 */ @ApiModelProperty("活动开始时间") private LocalDateTime beginTime; /** * 活动结束时间 */ @ApiModelProperty("活动结束时间") private LocalDateTime endTime; /** * 活动对象:0-全部;1-个人;2-企业 */ @ApiModelProperty("活动对象:0-全部;1-个人;2-企业") private Integer objectLimit; /** * 活动类型:1-秒杀;2-拼团;3-团购;4-优惠券; */ @ApiModelProperty("活动类型:1-秒杀;2-拼团;3-团购;4-优惠券;") private Integer ofType; /** * 商品ID */ @ApiModelProperty("商品ID") private String goodsId; /** * 商品名称 */ @ApiModelProperty("商品名称") private String goodsName; /** * 商品市场价 */ @ApiModelProperty("商品市场价") private BigDecimal storePrice; /** * 商品图片-列表图 */ @ApiModelProperty("商品图片-列表图") private String goodsPicture; /** * 商品sku */ @ApiModelProperty("商品sku") private String sku; /** * 商品数量/发行数量--库存 */ @ApiModelProperty("商品数量/发行数量--库存") private Integer quantity; /** * 限购数量 */ @ApiModelProperty("限购数量") private Integer limitQuantity; /** * 个人-起购数量 */ @ApiModelProperty("个人-起购数量") private Integer minQuantity; /** * 起团数量 */ @ApiModelProperty("起团数量") private Integer minGrouponQuantity; /** * 活动价 */ @ApiModelProperty("活动价") private BigDecimal activityPrice; /** * 规格值 */ @ApiModelProperty("规格值") private String skuValue; /** * 已售数量 */ @ApiModelProperty("已售数量") private Integer soldOut; /** * 剩余库存 */ @ApiModelProperty("剩余库存") private Integer residualInventory; /** * 上下架状态 1-下架 2-上架 */ @ApiModelProperty("上下架状态 1-下架 2-上架") private Integer upDownState; /** * 删除标记 */ @ApiModelProperty("删除标记") private Boolean del; @ApiModelProperty(value = "状态:1-进行中;2-未开始;3-已结束") private Integer status; @ApiModelProperty("详情图片") private String infoPicture; @ApiModelProperty("商品详细介绍") private String goodsDescribeText; }
[ "386234736" ]
386234736
54b7e0959752c9fa0fabd7567f4173f392d4f134
e9466a0d2020c5293b48ca615a98d59500fca730
/generatedCode/digitalbuildings-RDF4J-java/src/main/java/www/google/com/digitalbuildings/_0_0_1/subfields/Stage.java
3a4da842320d23ab70eaab1f22bd13523e4539fc
[]
no_license
charbull/OLGA-GeneratedCode-DigitalBuildingsOntology
fa9dafd4111f80b171810cebc9385d5171b3ec56
bf7018f4dd621f5463b3da67da41783caba3a4fb
refs/heads/master
2022-11-22T07:55:00.842988
2020-07-20T21:38:04
2020-07-20T21:38:04
281,220,093
1
0
null
2020-07-20T21:38:06
2020-07-20T20:33:52
Java
UTF-8
Java
false
false
1,202
java
package www.google.com.digitalbuildings._0_0_1.subfields; import digitalbuildings.global.util.GLOBAL; import org.eclipse.rdf4j.model.IRI; import org.eclipse.rdf4j.model.vocabulary.RDF; import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; /** * Class Stage * Discrete step (stage) of device activity (such as heating and cooling outputs). */ @SuppressWarnings("serial") public class Stage extends www.google.com.digitalbuildings._0_0_1.subfields.Descriptor implements IStage{ IRI newInstance; public Stage(String namespace, String instanceId) { super(namespace, instanceId); newInstance = GLOBAL.factory.createIRI(namespace, instanceId); GLOBAL.model.add(this, RDF.TYPE, GLOBAL.factory.createIRI("http://www.google.com/digitalbuildings/0.0.1/subfields#Stage")); } public IRI iri() { return newInstance; } public static Set<IStage> getAllStagesObjectsCreated(){ Set<IStage> objects = new HashSet<>(); objects = GLOBAL.model.filter(null, RDF.TYPE, GLOBAL.factory .createIRI("http://www.google.com/digitalbuildings/0.0.1/subfields#Stage")).subjects().stream() .map(mapper->(IStage)mapper) .collect(Collectors.toSet()); return objects; } }
[ "charbel.kaed@outlook.com" ]
charbel.kaed@outlook.com
1460eec9166ba857d4590c5d565955c1af77dcfb
15929bb3c040de73ad08ad264eb33f6c5c8936df
/diozero-core/src/main/java/com/diozero/sampleapps/GpioPerfTest.java
4dd061f0513b4fe2db16c519a9346243a273dd21
[ "MIT" ]
permissive
ChristianEverett/diozero
f3ea046ae8b4194f83f0567ef0eab6911168c765
412fd595d56beb1e34cbd4b9f9a80af0fceea2b0
refs/heads/master
2021-05-01T23:35:16.963025
2016-12-19T23:10:11
2016-12-19T23:10:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,010
java
package com.diozero.sampleapps; /* * #%L * Device I/O Zero - Core * %% * Copyright (C) 2016 diozero * %% * 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. * #L% */ import org.pmw.tinylog.Logger; import com.diozero.api.DigitalOutputDevice; import com.diozero.util.RuntimeIOException; /** * GPIO output performance test application. To run: * <ul> * <li>JDK Device I/O 1.0:<br> * {@code sudo java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-jdkdio10-$DIOZERO_VERSION.jar:dio-1.0.1-dev-linux-armv6hf.jar -Djava.library.path=. com.diozero.sampleapps.GpioPerfTest 12 50000}</li> * <li>JDK Device I/O 1.1:<br> * {@code sudo java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-jdkdio11-$DIOZERO_VERSION.jar:dio-1.1-dev-linux-armv6hf.jar -Djava.library.path=. com.diozero.sampleapps.GpioPerfTest 12 50000}</li> * <li>Pi4j:<br> * {@code sudo java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-pi4j-$DIOZERO_VERSION.jar:pi4j-core-1.1-SNAPSHOT.jar com.diozero.sampleapps.GpioPerfTest 12 2000000}</li> * <li>wiringPi:<br> * {@code sudo java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-wiringpi-$DIOZERO_VERSION.jar:pi4j-core-1.1-SNAPSHOT.jar com.diozero.sampleapps.GpioPerfTest 12 5000000}</li> * <li>pigpgioJ:<br> * {@code sudo java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-pigpio-$DIOZERO_VERSION.jar:pigpioj-java-1.0.0.jar com.diozero.sampleapps.GpioPerfTest 12 5000000}</li> * <li>sysfs:<br> * {@code java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-sysfs-$DIOZERO_VERSION.jar com.diozero.sampleapps.GpioPerfTest 12 100000}</li> * <li>jpi:<br> * {@code java -cp tinylog-1.1.jar:diozero-core-$DIOZERO_VERSION.jar:diozero-provider-jpi-$DIOZERO_VERSION.jar com.diozero.sampleapps.GpioPerfTest 12 40000000}</li> * </ul> */ public class GpioPerfTest { private static final int ITERATIONS = 100_000; public static void main(String[] args) { if (args.length < 1) { Logger.error("Usage: {} <pin-number> [<iterations>]", GpioPerfTest.class.getName()); System.exit(1); } int pin = Integer.parseInt(args[0]); int iterations = ITERATIONS; if (args.length > 1) { iterations = Integer.parseInt(args[1]); } test(pin, iterations); } public static void test(int pin, int iterations) { try (DigitalOutputDevice gpio = new DigitalOutputDevice(pin)) { for (int j=0; j<5; j++) { long start_nano = System.nanoTime(); for (int i=0; i<iterations; i++) { gpio.setValueUnsafe(true); gpio.setValueUnsafe(false); } long duration_ns = System.nanoTime() - start_nano; Logger.info("Duration for {} iterations: {}s", Integer.valueOf(iterations), String.format("%.4f", Float.valueOf(((float)duration_ns) / 1000 / 1000 / 1000))); } } catch (RuntimeIOException e) { Logger.error(e, "Error: {}", e); } } }
[ "matthew.lewis@btinternet.com" ]
matthew.lewis@btinternet.com
e228b79d3bb648132bc4257cbe50f406efa8f684
ee870a9f0701e735ea5e2af7876923292ed5b5fe
/src/main/java/com/shu/SpringUtil.java
ef60c73e3cf8a23ee90098fd104d854e246bff94
[ "MIT" ]
permissive
tsenglying-SH/back
09e2ba1f73609c96f0e10c90d4f5920dc74c86d7
1a8e74a18e7fae522dbf6882ad5151251147d014
refs/heads/master
2022-12-10T07:03:58.172398
2020-08-31T03:50:08
2020-08-31T03:50:08
289,875,048
0
0
null
null
null
null
UTF-8
Java
false
false
1,133
java
package com.shu; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; /** * @Description: 提供手动获取被spring管理的bean对象 */ public class SpringUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { if (SpringUtil.applicationContext == null) { SpringUtil.applicationContext = applicationContext; } } // 获取applicationContext public static ApplicationContext getApplicationContext() { return applicationContext; } // 通过name获取 Bean. public static Object getBean(String name) { return getApplicationContext().getBean(name); } // 通过class获取Bean. public static <T> T getBean(Class<T> clazz) { return getApplicationContext().getBean(clazz); } // 通过name,以及Clazz返回指定的Bean public static <T> T getBean(String name, Class<T> clazz) { return getApplicationContext().getBean(name, clazz); } }
[ "you@example.com" ]
you@example.com
3edb189b5e694d4658bfb2cd0f4341719b4d4e81
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MOCKITO-7b-6-27-MOEAD-WeightedSum:TestLen:CallDiversity/org/mockito/internal/handler/NullResultGuardian_ESTest.java
037e96d4a00e8a1b1407bc775683c67ba43dfb99
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
571
java
/* * This file was automatically generated by EvoSuite * Wed Apr 08 12:27:56 UTC 2020 */ package org.mockito.internal.handler; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class NullResultGuardian_ESTest extends NullResultGuardian_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
99e4a90a3808a7cf387a6edea5019f96d645d8c3
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/median/9013bd3be8c00de447e6ed49a0fe0fab037251c28e26954bf780f2f3b929a9e7ce9da037811c76028e4069d3857410f82b8f399c7fa4386ea8f97f80aab1f191/000/mutations/3/median_9013bd3b_000.java
e457e06ed50e308947c6813ed241e7d7c1358533
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,324
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class median_9013bd3b_000 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { median_9013bd3b_000 mainClass = new median_9013bd3b_000 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { DoubleObj first = new DoubleObj (), second = new DoubleObj (), third = new DoubleObj (); output += (String.format ("Please enter 3 numbers seperated by spaces > ")); first.value = scanner.nextDouble (); second.value = scanner.nextDouble (); third.value = scanner.nextDouble (); if ((first.value > second.value && first.value < third.value) || (first.value < second.value && first.value > third.value)) { output += (String.format ("%.0f is the median\n", first.value)); } if ((second.value > first.value && second.value < third.value) || (second.value < first.value && second.value > third.value)) { output += (String.format ("%.0f is the median\n", second.value)); } if ((third.value > first.value && third.value < third.value) || (third.value < first.value && third.value > second.value)) { output += (String.format ("%.0f is the median\n", third.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
ac9ece08a06db537b1df921c8f91040b6e577fb1
4ea5417ecd70f8c6757603ad463bd1abf394d358
/org.sheepy.lily.vulkan.extra.nuklear/src/main/java/org/sheepy/lily/vulkan/nuklear/dataprovider/NuklearVertexSupplier.java
043372d71db709bd6c97dff422621791aff387c1
[ "MIT" ]
permissive
Ealrann/Lily-Vulkan
88fd02373ce7ca390ab3581faf10a7a8b799adea
04c72b506a1db472b9f23dde25c4e1915480f122
refs/heads/master
2023-08-12T16:43:33.403548
2023-08-11T21:05:09
2023-08-11T21:05:09
141,837,401
0
0
null
null
null
null
UTF-8
Java
false
false
1,174
java
package org.sheepy.lily.vulkan.nuklear.dataprovider; import org.lwjgl.system.MemoryUtil; import org.logoce.adapter.api.Adapter; import org.sheepy.lily.core.api.cadence.AutoLoad; import org.logoce.extender.api.ModelExtender; import org.logoce.notification.api.Notifier; import org.sheepy.lily.game.api.resource.buffer.IBufferDataSupplier; import org.sheepy.lily.vulkan.model.vulkanresource.BufferViewer; import java.nio.ByteBuffer; import static org.lwjgl.nuklear.Nuklear.nnk_buffer_init_fixed; @ModelExtender(scope = BufferViewer.class, name = "NkVertex") @Adapter @AutoLoad public final class NuklearVertexSupplier extends Notifier<IBufferDataSupplier.Features> implements IBufferDataSupplier { public static final long VERTEX_BUFFER_SIZE = (long) Math.pow(2, 18); private long vbufPtr; private NuklearVertexSupplier() { super(Features.values); } public void requestUpdate(final long vbufPtr) { this.vbufPtr = vbufPtr; notify(Features.Data); } @Override public void fill(ByteBuffer buffer) { nnk_buffer_init_fixed(vbufPtr, MemoryUtil.memAddress(buffer), VERTEX_BUFFER_SIZE); } @Override public long size() { return VERTEX_BUFFER_SIZE; } }
[ "ealrann@gmail.com" ]
ealrann@gmail.com
474a1576f59249fc8b12b4a4d1858c6db1bfce00
97dc91d0fb05cc6666481df03656e424024d81d2
/molgenis-omx-auth/src/main/java/org/molgenis/omx/auth/ui/SimpleUserLoginModel.java
f30d5e127220709163d51c4b06b52426c90cb824
[]
no_license
antonak/molgenis
13f9f05d046ba61ae05b850a2b5ad36c51c78f3a
2df3af612c565d538cefaf87b7d68f0ce0c7f3e6
refs/heads/master
2021-01-24T01:50:52.676082
2013-06-03T12:58:50
2013-06-03T12:58:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,920
java
/* Date: May 6, 2011 * Template: NewPluginModelGen.java.ftl * generator: org.molgenis.generators.ui.NewPluginModelGen 3.3.3 * * THIS FILE IS A TEMPLATE. PLEASE EDIT :-) */ package org.molgenis.omx.auth.ui; import org.molgenis.framework.security.SimpleLogin; import org.molgenis.framework.ui.EasyPluginModel; import org.molgenis.framework.ui.html.Container; public class SimpleUserLoginModel extends EasyPluginModel { private static final long serialVersionUID = 1L; private String mailCurator; private String action = "init"; private Container authenticationForm = new Container(); private Container userAreaForm = new Container(); private Container forgotForm = new Container(); public SimpleUserLoginModel(SimpleUserLogin controller) { super(controller); } public String getMailCurator() { return mailCurator; } public void setMailCurator(String mailCurator) { this.mailCurator = mailCurator; } public String getAction() { return action; } public void setAction(String action) { this.action = action; } public Container getAuthenticationForm() { return authenticationForm; } public void setAuthenticationForm(Container authenticationForm) { this.authenticationForm = authenticationForm; } public Container getUserAreaForm() { return userAreaForm; } public void setUserAreaForm(Container userAreaForm) { this.userAreaForm = userAreaForm; } public void setForgotForm(Container forgotForm) { this.forgotForm = forgotForm; } public Container getForgotForm() { return forgotForm; } @Override public String getLabel() { if (!this.getController().getApplicationController().getLogin().isAuthenticated()) { return "Login"; } return super.getLabel(); } @Override public boolean isVisible() { if (this.getController().getApplicationController().getLogin() instanceof SimpleLogin) return false; return true; } }
[ "d.hendriksen@umcg.nl" ]
d.hendriksen@umcg.nl
09cb77833f965409d630a5feeb088d9b7986b0c0
440f26d3ee405d87fc26f4a3bc3cef4703733387
/src/main/java/io/opensec/oval/model/ElementContainer.java
70d40fec14ca164f78e639b5baf4e613882aecc9
[ "Apache-2.0" ]
permissive
nakamura5akihito/opensec-oval
37e6e22d79da959a7d64eb7820c4aa81461d056e
7afea82fd919d882231a34e73c0e59d4b184e3e7
refs/heads/master
2021-01-10T06:58:02.597702
2015-06-17T10:56:33
2015-06-17T10:56:33
36,717,938
1
0
null
null
null
null
UTF-8
Java
false
false
7,025
java
/** * Opensec OVAL - https://nakamura5akihito.github.io/ * Copyright (C) 2015 Akihito Nakamura * * 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.opensec.oval.model; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import org.mongodb.morphia.annotations.Transient; /** * A container which can contain Element objects. * * @author Akihito Nakamura, AIST * @see <a href="http://oval.mitre.org/language/">OVAL Language</a> */ public abstract class ElementContainer<E extends Element> extends Container<E> { /** * Constructor. */ public ElementContainer() { } // public ElementContainer( // final Collection<? extends E> elements // ) // { // super( elements ); // } // // // public ElementContainer( // final E[] elements // ) // { // super( elements ); // } /** * Searches this container for the element which has the specified OVAL ID. * * @param oval_id * the OVAL ID to be searched for. * @return * the element of the specified OVAL ID, if it is contained in this container; * otherwise, null. * @throws NullPointerException * if the specified OVAL ID is null. */ public E findByOvalId( final String oval_id ) { if (oval_id == null) { throw new NullPointerException( "searching null OVAL ID" ); } Iterator<E> itr = iterator(); while (itr.hasNext()) { E e = itr.next(); if (oval_id.equals( e.getOvalId() )) { return e; } } return null; } /** * Returns true if this container contains an element with the specified OVAL ID. * * @param oval_id * the OVAL ID to be searched for. * @return * true if this container contains an element with the specified OVAL ID. * @throws NullPointerException * if the specified OVAL ID is null. */ public boolean containsOvalId( final String oval_id ) { return (findByOvalId( oval_id ) != null); } /** * Returns a Set view of the OVAL IDs contained in this container. * * @return * a set view of the OVAL IDs contained in this container. */ public Set<String> ovalIdSet() { Set<String> oval_id_set = new HashSet<String>(); Iterator<E> itr = iterator(); while (itr.hasNext()) { E e = itr.next(); oval_id_set.add( e.getOvalId() ); } return oval_id_set; } /////////////////////////////////////////////////////////////////////// // digest computation /////////////////////////////////////////////////////////////////////// /** * The default digest algorithm. */ public static final String DIGEST_ALGORITHM = "MD5"; @Transient private String _digest; @Transient private transient int _hashOnDigest = 0; /** */ public void setDigest( final String digest ) { _digest = digest; } /** * Returns the hash value of the elements in this container. * The hash value is computed using a message digest algorithm; MD5. * Pairs of OVAL ID and version of all of the elements are used * for the hash computation. * That is, for two elements, if they have the same OVAL ID but the different versions, * the result hash values are different. * * @return * a hex string representation of the hash value. */ public String getDigest() { int thisHash = hashCode(); if (_digest == null || thisHash != _hashOnDigest) { Element[] elements = toArray( new Element[0] ); _digest = _computeDigest3( elements ); _hashOnDigest = thisHash; } return _digest; } protected static String _computeDigest3( final Element[] element_list ) { MessageDigest digest = null; try { digest = MessageDigest.getInstance( DIGEST_ALGORITHM ); //@throws NoSuchAlgorithmException } catch (NoSuchAlgorithmException ex) { return null; } if (element_list == null || element_list.length == 0) { _updateDigest( digest, "" ); } else { SortedSet<String> values = _digestValuesOf( element_list ); for (String v : values) { _updateDigest( digest, v ); } } return _byteArrayToHexString( digest.digest() ); } private static SortedSet<String> _digestValuesOf( final Element[] element_list ) { SortedSet<String> values = new TreeSet<String>(); for (Element e : element_list) { values.add( Element.globalRefOf( e ) ); } return values; } /////////////////////////////////////////////////////////////////////// /** */ private static void _updateDigest( final MessageDigest digest, final String s ) { final String ss = (s == null ? "" : s); digest.update( ss.getBytes() ); } /** */ private static final String[] _HEX_DIGITS_ = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; /** */ private static String _byteToHexString( final byte b ) { int n = b; if (n < 0) { n += 256; } int d1 = n / 16; int d2 = n % 16; return _HEX_DIGITS_[d1] + _HEX_DIGITS_[d2]; } /** */ private static String _byteArrayToHexString( final byte[] bytes ) { StringBuilder s = new StringBuilder(); final int length = bytes.length; for (int i = 0; i < length; i++) { s.append( _byteToHexString( bytes[i] ) ); } return s.toString(); } } //
[ "nakamura5akihito@gmail.com" ]
nakamura5akihito@gmail.com
e0759c15e85a31522a4c9435d0e1ed62a1623ccb
73650c79eaf9d58caa92c6fb8aed0bf95db551f8
/src/main/java/org/cg/domain/MemberVO.java
d2c7abf7a715f78fff77cf6d1b2bd8181f1eefe9
[]
no_license
bbako/5am_hy_customer
8cafdf160d5e6c5ee32e6a7210aec106d0bafadb
c6f2e8385fb749fccd7f3f683b45ef4bfe3812b4
refs/heads/master
2020-03-22T15:25:15.822798
2018-10-19T02:44:18
2018-10-19T02:44:18
140,251,273
0
0
null
null
null
null
UTF-8
Java
false
false
1,140
java
package org.cg.domain; import java.sql.Timestamp; public class MemberVO { String mid; String mpw; String mname; String maddr; Timestamp regdate; Timestamp updatedate; public String getMid() { return mid; } public void setMid(String mid) { this.mid = mid; } public String getMpw() { return mpw; } public void setMpw(String mpw) { this.mpw = mpw; } public String getMname() { return mname; } public void setMname(String mname) { this.mname = mname; } public String getMaddr() { return maddr; } public void setMaddr(String maddr) { this.maddr = maddr; } public Timestamp getRegdate() { return regdate; } public void setRegdate(Timestamp regdate) { this.regdate = regdate; } public Timestamp getUpdatedate() { return updatedate; } public void setUpdatedate(Timestamp updatedate) { this.updatedate = updatedate; } @Override public String toString() { return "MemberVO [mid=" + mid + ", mpw=" + mpw + ", mname=" + mname + ", maddr=" + maddr + ", regdate=" + regdate + ", updatedate=" + updatedate + "]"; } }
[ "Administrator@admin-PC" ]
Administrator@admin-PC
ee6984d3074192d28e1f2f9c5abef4423df1ffa1
52019a46c8f25534afa491a5f68bf5598e68510b
/core/metamodel/src/main/java/org/nakedobjects/metamodel/facets/FacetHolderImpl.java
ba6f13e5cb437d5b5513f34c48ad23584b7a55ce
[ "Apache-2.0" ]
permissive
JavaQualitasCorpus/nakedobjects-4.0.0
e765b4980994be681e5562584ebcf41e8086c69a
37ee250d4c8da969eac76749420064ca4c918e8e
refs/heads/master
2023-08-29T13:48:01.268876
2020-06-02T18:07:23
2020-06-02T18:07:23
167,005,009
0
1
Apache-2.0
2022-06-10T22:44:43
2019-01-22T14:08:50
Java
UTF-8
Java
false
false
2,137
java
package org.nakedobjects.metamodel.facets; import java.util.HashMap; import java.util.Map; import org.nakedobjects.metamodel.commons.filters.Filter; /** * For base subclasses or, more likely, to help write tests. */ public class FacetHolderImpl implements FacetHolder { private final Map<Class<? extends Facet>, Facet> facetsByClass = new HashMap<Class<? extends Facet>, Facet>(); public boolean containsFacet(final Class<? extends Facet> facetType) { return getFacet(facetType) != null; } public void addFacet(final Facet facet) { addFacet(facet.facetType(), facet); } public void addFacet(final MultiTypedFacet facet) { final Class<? extends Facet>[] facetTypes = facet.facetTypes(); for (int i = 0; i < facetTypes.length; i++) { addFacet(facetTypes[i], facet.getFacet(facetTypes[i])); } } private void addFacet(final Class<? extends Facet> facetType, final Facet facet) { final Facet existingFacet = getFacet(facetType); if (existingFacet == null || existingFacet.isNoop()) { facetsByClass.put(facetType, facet); return; } if (!facet.alwaysReplace()) { return; } if (facet.isDerived() && !existingFacet.isDerived()) { return; } facet.setUnderlyingFacet(existingFacet); facetsByClass.put(facetType, facet); } public void removeFacet(final Facet facet) { FacetUtil.removeFacet(facetsByClass, facet); } public void removeFacet(final Class<? extends Facet> facetType) { FacetUtil.removeFacet(facetsByClass, facetType); } @SuppressWarnings("unchecked") public <T extends Facet> T getFacet(final Class<T> facetType) { return (T) facetsByClass.get(facetType); } public Class<? extends Facet>[] getFacetTypes() { return FacetUtil.getFacetTypes(facetsByClass); } public Facet[] getFacets(final Filter<Facet> filter) { return FacetUtil.getFacets(facetsByClass, filter); } }
[ "taibi@sonar-scheduler.rd.tut.fi" ]
taibi@sonar-scheduler.rd.tut.fi
1186dc18ae80add7c8729cdeb5cf40f223ded0d6
6e927f9e3c94c595f2d0afae9061bd51c94f6016
/modules/SignServer-Client-CLI/src/main/java/org/signserver/client/cli/defaultimpl/AbstractDocumentValidator.java
da7a8e4dddce3d63aa64e1b523062bdf58565eb2
[]
no_license
sunkuet02/document-signer
6e00241c91275e5af9b4b9fb10058acb600ce9d4
290b9df328f551296b9c8f40cbcec039a297c837
refs/heads/master
2021-01-12T15:28:08.550806
2016-11-10T10:43:01
2016-11-10T10:43:01
71,790,785
3
0
null
2016-11-10T08:22:49
2016-10-24T13:16:25
Java
UTF-8
Java
false
false
3,567
java
/************************************************************************* * * * SignServer: The OpenSource Automated Signing Server * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.signserver.client.cli.defaultimpl; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.Map; import org.signserver.common.CryptoTokenOfflineException; import org.signserver.common.IllegalRequestException; import org.signserver.common.SignServerException; /** * Abstract implementation of DocumentValidator. * * @author Markus Kilås * @version $Id: AbstractDocumentValidator.java 3659 2013-08-12 08:23:03Z malu9369 $ */ public abstract class AbstractDocumentValidator implements DocumentValidator { private static final String ENCODING_NONE = "none"; public AbstractDocumentValidator() { } public void validate(final byte[] data, final String encoding, final OutputStream out, final Map<String,Object> requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException { doValidate(data, encoding, out, requestContext); } public void validate(final byte[] data, final String encoding) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException { validate(data, encoding, System.out); } public void validate(final byte[] data, final Map<String, Object> requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException { validate(data, ENCODING_NONE, System.out, requestContext); } public void validate(final byte[] data, final OutputStream out, final Map<String,Object> requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException { doValidate(data, ENCODING_NONE, out, requestContext); } protected abstract void doValidate(final byte[] data, final String encoding, final OutputStream out, final Map<String,Object> requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException; @Override public void validate(byte[] data, String encoding, OutputStream out) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException { doValidate(data, ENCODING_NONE, System.out, new HashMap<String, Object>()); } @Override public void validate(byte[] data, OutputStream out) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException { doValidate(data, ENCODING_NONE, out, new HashMap<String, Object>()); } }
[ "sunkuet02@gmail.com" ]
sunkuet02@gmail.com
72b656d170200afeffbabe570dbb72ef2fc834cc
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/domain/ExtUserInfo.java
a31831e90be9742e3df215ba70412fcfa6cb8c17
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,491
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 外部指定买家 * * @author auto create * @since 1.0, 2017-10-09 14:41:18 */ public class ExtUserInfo extends AlipayObject { private static final long serialVersionUID = 7553568785825523231L; /** * 证件号 注:need_check_info=T时该参数才有效 */ @ApiField("cert_no") private String certNo; /** * 身份证:IDENTITY_CARD、护照:PASSPORT、军官证:OFFICER_CARD、士兵证:SOLDIER_CARD、户口本:HOKOU等。如有其它类型需要支持,请与蚂蚁金服工作人员联系。 注: need_check_info=T时该参数才有效 */ @ApiField("cert_type") private String certType; /** * 是否强制校验付款人身份信息 T:强制校验,F:不强制 */ @ApiField("fix_buyer") private String fixBuyer; /** * 允许的最小买家年龄,买家年龄必须大于等于所传数值 注: 1. need_check_info=T时该参数才有效 2. min_age为整数,必须大于等于0 */ @ApiField("min_age") private String minAge; /** * 手机号 注:该参数暂不校验 */ @ApiField("mobile") private String mobile; /** * 姓名 注: need_check_info=T时该参数才有效 */ @ApiField("name") private String name; /** * 是否强制校验身份信息 T:强制校验,F:不强制 */ @ApiField("need_check_info") private String needCheckInfo; public String getCertNo() { return this.certNo; } public void setCertNo(String certNo) { this.certNo = certNo; } public String getCertType() { return this.certType; } public void setCertType(String certType) { this.certType = certType; } public String getFixBuyer() { return this.fixBuyer; } public void setFixBuyer(String fixBuyer) { this.fixBuyer = fixBuyer; } public String getMinAge() { return this.minAge; } public void setMinAge(String minAge) { this.minAge = minAge; } public String getMobile() { return this.mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getNeedCheckInfo() { return this.needCheckInfo; } public void setNeedCheckInfo(String needCheckInfo) { this.needCheckInfo = needCheckInfo; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
7c3add458cee47f0791e49280ec683fa63cca4a5
e5e46ac27edef7410fd1d36741e8cbf01d704a10
/src/trafficDescriptor/TrafficDescriptorList_THelper.java
8fc6b1664c65cb64fe497fafec558d9df500f9b5
[]
no_license
thradexIT/tmf814
4cc5be43145137f5d58693a5d2e3a60968541799
20688a799d5b20ec7e9adbc33ca69cc63347b2a9
refs/heads/master
2021-12-25T00:00:44.914802
2017-12-21T22:01:40
2017-12-21T22:01:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,132
java
package trafficDescriptor; /** * trafficDescriptor/TrafficDescriptorList_THelper.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from trafficDescriptor.idl * Wednesday, June 15, 2016 7:24:43 PM COT */ /** * <p>A list of Traffic Descriptors.</p> **/ abstract public class TrafficDescriptorList_THelper { private static String _id = "IDL:mtnm.tmforum.org/trafficDescriptor/TrafficDescriptorList_T:1.0"; public static void insert (org.omg.CORBA.Any a, trafficDescriptor.TrafficDescriptor_T[] that) { org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); a.type (type ()); write (out, that); a.read_value (out.create_input_stream (), type ()); } public static trafficDescriptor.TrafficDescriptor_T[] extract (org.omg.CORBA.Any a) { return read (a.create_input_stream ()); } private static org.omg.CORBA.TypeCode __typeCode = null; synchronized public static org.omg.CORBA.TypeCode type () { if (__typeCode == null) { __typeCode = trafficDescriptor.TrafficDescriptor_THelper.type (); __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (trafficDescriptor.TrafficDescriptorList_THelper.id (), "TrafficDescriptorList_T", __typeCode); } return __typeCode; } public static String id () { return _id; } public static trafficDescriptor.TrafficDescriptor_T[] read (org.omg.CORBA.portable.InputStream istream) { trafficDescriptor.TrafficDescriptor_T value[] = null; int _len0 = istream.read_long (); value = new trafficDescriptor.TrafficDescriptor_T[_len0]; for (int _o1 = 0;_o1 < value.length; ++_o1) value[_o1] = trafficDescriptor.TrafficDescriptor_THelper.read (istream); return value; } public static void write (org.omg.CORBA.portable.OutputStream ostream, trafficDescriptor.TrafficDescriptor_T[] value) { ostream.write_long (value.length); for (int _i0 = 0;_i0 < value.length; ++_i0) trafficDescriptor.TrafficDescriptor_THelper.write (ostream, value[_i0]); } }
[ "miplanmobile@gmail.com" ]
miplanmobile@gmail.com
6a1886e773646e6db4928ee7640750d146a5dfd5
80552d844f54667b4d6f00845a667026d656e1ba
/zip/spring-framework-3.2.x/spring-beans/src/test/java/org/springframework/beans/propertyeditors/URLEditorTests.java
58cd58cf99ee927c59ece4885c0e3a70356da2ff
[ "Apache-2.0" ]
permissive
13266764646/spring-framewrok3.2.x
e662e4d633adec91fcfca6d66e15a7555044429d
84c238239ebd8cebdddee540c0fefa8e4755eac8
refs/heads/master
2020-05-03T15:38:25.422211
2019-08-26T02:44:12
2019-08-26T02:44:12
178,707,063
1
0
null
null
null
null
UTF-8
Java
false
false
2,835
java
/* * Copyright 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.beans.propertyeditors; import static org.junit.Assert.*; import java.beans.PropertyEditor; import java.net.URL; import org.junit.Test; import org.springframework.util.ClassUtils; /** * @author Rick Evans * @author Chris Beams */ public final class URLEditorTests { @Test public void testStandardURI() throws Exception { PropertyEditor urlEditor = new URLEditor(); urlEditor.setAsText("mailto:juergen.hoeller@interface21.com"); Object value = urlEditor.getValue(); assertTrue(value instanceof URL); URL url = (URL) value; assertEquals(url.toExternalForm(), urlEditor.getAsText()); } @Test public void testStandardURL() throws Exception { PropertyEditor urlEditor = new URLEditor(); urlEditor.setAsText("https://www.springframework.org"); Object value = urlEditor.getValue(); assertTrue(value instanceof URL); URL url = (URL) value; assertEquals(url.toExternalForm(), urlEditor.getAsText()); } @Test public void testClasspathURL() throws Exception { PropertyEditor urlEditor = new URLEditor(); urlEditor.setAsText("classpath:" + ClassUtils.classPackageAsResourcePath(getClass()) + "/" + ClassUtils.getShortName(getClass()) + ".class"); Object value = urlEditor.getValue(); assertTrue(value instanceof URL); URL url = (URL) value; assertEquals(url.toExternalForm(), urlEditor.getAsText()); assertTrue(!url.getProtocol().startsWith("classpath")); } @Test(expected=IllegalArgumentException.class) public void testWithNonExistentResource() throws Exception { PropertyEditor urlEditor = new URLEditor(); urlEditor.setAsText("gonna:/freak/in/the/morning/freak/in/the.evening"); } @Test public void testSetAsTextWithNull() throws Exception { PropertyEditor urlEditor = new URLEditor(); urlEditor.setAsText(null); assertNull(urlEditor.getValue()); assertEquals("", urlEditor.getAsText()); } @Test public void testGetAsTextReturnsEmptyStringIfValueNotSet() throws Exception { PropertyEditor urlEditor = new URLEditor(); assertEquals("", urlEditor.getAsText()); } @Test(expected=IllegalArgumentException.class) public void testCtorWithNullResourceEditor() throws Exception { new URLEditor(null); } }
[ "972181522@qq.com" ]
972181522@qq.com