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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
366c48a8f9c7330e2372490571cea8cfd13c12fd
|
4999e6111686e89b8b876652ed040b6acf365a57
|
/app/src/main/java/com/xmx/iwannablackshop/Chat/Holder/AVCommonViewHolder.java
|
911fad966523652f7c0e4d14b6dd36ca0a1d8966
|
[] |
no_license
|
The---onE/IWannaBlackShop
|
ddaf512e9f76e64833aad1dc1dcb5a9b62f02756
|
f7aa1456691957b47fa5905cb846ed2e4a8c745c
|
refs/heads/master
| 2021-01-10T15:14:58.358444
| 2016-01-27T17:25:54
| 2016-01-27T17:25:54
| 48,698,930
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,072
|
java
|
package com.xmx.iwannablackshop.Chat.Holder;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import butterknife.ButterKnife;
/**
* Created by wli on 15/8/25.
* RecyclerView.ViewHolder 的公共类,做了一些封装。目的:
* 1、ViewHolder 与 Adapter 解耦,和 ViewHolder 相关的逻辑都放到 ViewHolder 里边,避免 Adapter 有相关逻辑
* 2、使用 ButterKnife,精简代码,提高代码阅读性
*/
public abstract class AVCommonViewHolder<T> extends RecyclerView.ViewHolder {
public AVCommonViewHolder(Context context, ViewGroup root, int layoutRes) {
super(LayoutInflater.from(context).inflate(layoutRes, root, false));
ButterKnife.bind(this, itemView);
}
public Context getContext() {
return itemView.getContext();
}
/**
* 用给定的 data 对 holder 的 view 进行赋值
*/
public abstract void bindData(T t);
public void setData(T t) {
bindData(t);
}
}
|
[
"834489218@qq.com"
] |
834489218@qq.com
|
395f66ac062db44636691f04adaa928cf5f24de6
|
8464b5f858f09a715b30d42093d280e0ac625c82
|
/driver-benchmarks/src/main/com/mongodb/benchmark/benchmarks/AbstractGridFSBenchmark.java
|
28db0c7b9c1bdfe209adc815e1bf74941347fcbe
|
[
"Apache-2.0"
] |
permissive
|
rozza/mongo-java-driver
|
be7887b438594b47d7981022cb0444ffe2a2d86c
|
674d1a9a618221257877b8bb8b9e4986556624c6
|
refs/heads/master
| 2023-08-07T13:56:38.785053
| 2023-07-11T09:20:22
| 2023-07-11T09:24:05
| 10,246,360
| 3
| 0
|
Apache-2.0
| 2023-09-13T12:54:43
| 2013-05-23T15:06:03
|
Java
|
UTF-8
|
Java
| false
| false
| 1,493
|
java
|
/*
* Copyright 2016-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.mongodb.benchmark.benchmarks;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.gridfs.GridFSBucket;
import com.mongodb.client.gridfs.GridFSBuckets;
public abstract class AbstractGridFSBenchmark extends AbstractMongoBenchmark {
private final String resourcePath;
protected MongoDatabase database;
protected GridFSBucket bucket;
protected byte[] fileBytes;
public AbstractGridFSBenchmark(final String resourcePath) {
this.resourcePath = resourcePath;
}
@Override
public void setUp() throws Exception {
super.setUp();
database = client.getDatabase(DATABASE_NAME);
bucket = GridFSBuckets.create(database);
fileBytes = readAllBytesFromRelativePath(resourcePath);
database.drop();
}
@Override
public int getBytesPerRun() {
return fileBytes.length;
}
}
|
[
"jeff.yemin@10gen.com"
] |
jeff.yemin@10gen.com
|
b454cd9dd958dc0659d5ea1dac9044a83ffff1c3
|
82ada8f2b9753c7d97d720b396c6bda044fdf988
|
/base-framework/src/main/java/com/lnr/android/base/framework/data/asyn/core/AbstractAsynCall.java
|
0434c971a82a3703543e4d7d4b0933569e18d24d
|
[] |
no_license
|
xyyou123/dingtai-base-framework
|
f0dc377647b92df15c0d3f66942c5582eaefe506
|
c983c4d9c4e8456c5dec9681ee347f0f2cfb484c
|
refs/heads/master
| 2022-04-23T16:03:40.978218
| 2020-04-19T19:43:42
| 2020-04-19T19:44:12
| 257,085,196
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 569
|
java
|
package com.lnr.android.base.framework.data.asyn.core;
/**
* author:lnr
* @param <T>
*/
public abstract class AbstractAsynCall<T> implements AsynCall<T> {
protected final AsynCallAdapter http() {
return AsynCallAdapterProvider.getInstance().get(AsynCallAdapterType.HTTP);
}
protected final AsynCallAdapter database() {
return AsynCallAdapterProvider.getInstance().get(AsynCallAdapterType.DATABASE);
}
protected AsynCallAdapter callAdapter(String key) {
return AsynCallAdapterProvider.getInstance().get(key);
}
}
|
[
"zndx0502050105@163.com"
] |
zndx0502050105@163.com
|
828c6d5e6fb87960d98c625012583a43465e8b14
|
1bdb1b893e94f117ccf05d90d9883f3df275e9ed
|
/primitive/generator/src/main/java/net/daporkchop/lib/primitive/generator/param/custom/CustomParameterType.java
|
cf4770193cf98706d37c92d300f0aa5e78830497
|
[
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] |
permissive
|
PorkStudios/PorkLib
|
2c498fb2cf9916db4a66189493e4910586098592
|
c37fa0659004b7773de057330cdc9b6ca1b0b326
|
refs/heads/development
| 2023-08-04T15:17:46.061542
| 2023-07-15T14:30:02
| 2023-07-15T14:30:02
| 147,661,822
| 39
| 6
|
NOASSERTION
| 2022-07-11T12:51:38
| 2018-09-06T11:12:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,446
|
java
|
/*
* Adapted from The MIT License (MIT)
*
* Copyright (c) 2018-2022 DaPorkchop_
*
* 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:
*
* Any persons and/or organizations using this software must include the above copyright notice and this permission notice,
* provide sufficient credit to the original authors of the project (IE: DaPorkchop_), as well as provide a link to the original project.
*
* 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 net.daporkchop.lib.primitive.generator.param.custom;
import lombok.Data;
import lombok.NonNull;
import net.daporkchop.lib.primitive.generator.param.Parameter;
import net.daporkchop.lib.primitive.generator.param.ParameterContext;
import net.daporkchop.lib.primitive.generator.param.ParameterType;
import net.daporkchop.lib.primitive.generator.param.ParameterValue;
import java.util.Map;
/**
* @author DaPorkchop_
*/
@Data
public class CustomParameterType implements ParameterType<CustomParameterOptions> {
@NonNull
private final String name;
@NonNull
private final Map<String, CustomParameterValue> valuesByName;
@Override
public Class<CustomParameterOptions> optionsClass() {
return CustomParameterOptions.class;
}
@Override
public CustomParameterOptions defaultOptions() {
return new CustomParameterOptions();
}
@Override
public ParameterContext<CustomParameterOptions> makeContext(@NonNull Parameter<CustomParameterOptions> parameter, @NonNull ParameterValue<CustomParameterOptions> value) {
return new CustomParameterContext(parameter, (CustomParameterValue) value);
}
}
|
[
"daporkchop@daporkchop.net"
] |
daporkchop@daporkchop.net
|
b64229b483157f4ef9c9ed2f03c094d02dd6d234
|
8754676f9c4e1b0aa0e7978bf033ccc0381f3efc
|
/Documentos/Passaporte/scuba_smartcards/src/net/sourceforge/scuba/tlv/TLVOutputStream.java
|
a31fc2074a301ded0800eba68ed0b72457a855d1
|
[] |
no_license
|
AbuHelweh/JavaCardPassport
|
951cf742d7a53bd24fef48477142ab6c39abf535
|
48bf517f3ea9418c2d5acff0d5eec0cdd7515c48
|
refs/heads/master
| 2022-01-05T13:26:48.223580
| 2018-07-30T21:49:45
| 2018-07-30T21:49:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,186
|
java
|
/*
* This file is part of the SCUBA smart card framework.
*
* SCUBA is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* SCUBA 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
* SCUBA. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright (C) 2009-2012 The SCUBA team.
*
* $Id: TLVOutputStream.java 186 2012-09-11 15:24:38Z martijno $
*/
package net.sourceforge.scuba.tlv;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* TLV output stream.
*
* @author Martijn Oostdijk (martijn.oostdijk@gmail.com)
*
* @version $Revision: 186 $
*/
public class TLVOutputStream extends OutputStream {
private DataOutputStream outputStream;
private TLVOutputState state;
public TLVOutputStream(OutputStream outputStream) {
this.outputStream = outputStream instanceof DataOutputStream ? (DataOutputStream)outputStream : new DataOutputStream(outputStream);
this.state = new TLVOutputState();
}
public void writeTag(int tag) throws IOException {
byte[] tagAsBytes = TLVUtil.getTagAsBytes(tag);
if (state.canBeWritten()) {
outputStream.write(tagAsBytes);
}
state.setTagProcessed(tag);
}
public void writeLength(int length) throws IOException {
byte[] lengthAsBytes = TLVUtil.getLengthAsBytes(length);
state.setLengthProcessed(length);
if (state.canBeWritten()) {
outputStream.write(lengthAsBytes);
}
}
/**
* Writes a value at once.
* If no tag was previously written, an exception is thrown.
* If no length was previously written, this method will write the length before writing <code>value</code>.
* If length was previously written, this method will check whether the length is consistent with <code>value</code>'s length.
*
* @param value the value to write
*
* @throws IOException on error writing to the underlying output stream
*/
public void writeValue(byte[] value) throws IOException {
if (value == null) { throw new IllegalArgumentException("Cannot write null."); }
if (state.isAtStartOfTag()) { throw new IllegalStateException("Cannot write value bytes yet. Need to write a tag first."); }
if (state.isAtStartOfLength()) {
writeLength(value.length);
write(value);
} else {
write(value);
state.updatePreviousLength(value.length);
}
}
public void write(int b) throws IOException {
write(new byte[]{ (byte)b }, 0, 1);
}
public void write(byte[] bytes) throws IOException {
write(bytes, 0, bytes.length);
}
public void write(byte[] bytes, int offset, int length) throws IOException {
if (state.isAtStartOfTag()) {
throw new IllegalStateException("Cannot write value bytes yet. Need to write a tag first.");
}
if (state.isAtStartOfLength()) {
state.setDummyLengthProcessed();
}
state.updateValueBytesProcessed(bytes, offset, length);
if (state.canBeWritten()) {
outputStream.write(bytes, offset, length);
}
}
public void writeValueEnd() throws IOException {
if (state.isAtStartOfLength()) { throw new IllegalStateException("Not processing value yet."); }
if (state.isAtStartOfTag() && !state.isDummyLengthSet()) {
return; /* TODO: check if this case ever happens. */
}
byte[] bufferedValueBytes = state.getValue();
int length = bufferedValueBytes.length;
state.updatePreviousLength(length);
if (state.canBeWritten()) {
byte[] lengthAsBytes = TLVUtil.getLengthAsBytes(length);
outputStream.write(lengthAsBytes);
outputStream.write(bufferedValueBytes);
}
}
public void flush() throws IOException {
outputStream.flush();
}
public void close() throws IOException {
if (!state.canBeWritten()) {
throw new IllegalStateException("Cannot close stream yet, illegal TLV state.");
}
outputStream.close();
}
}
|
[
"="
] |
=
|
1e7ce5e8d64975d13691c853ff6835426e55e242
|
18b731ab437622d5936e531ece88c3dd0b2bb2ea
|
/pbtd-central/src/main/java/com/pbtd/playclick/yinhe/domain/Vodcpxx.java
|
157b72c7f256a35312441df0cf469396690040b7
|
[] |
no_license
|
harry0102/bai_project
|
b6c130e7235d220f2f0d4294a3f87b58f77cd265
|
674c6ddff7cf5dae514c69d2639d4b0245c0761f
|
refs/heads/master
| 2021-10-07T20:32:15.985439
| 2018-12-05T06:50:11
| 2018-12-05T06:50:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 581
|
java
|
package com.pbtd.playclick.yinhe.domain;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Setter @Getter @AllArgsConstructor @NoArgsConstructor
public class Vodcpxx implements Serializable{
private static final long serialVersionUID = 1L;
private String albumId;
private String albumName;
private String chnId;
private String cpId;
private String is3d;
private String score;
private String sets;
private String bz;
private String status;
}
|
[
"750460470@qq.com"
] |
750460470@qq.com
|
ccab3954bc29683cec48611006417d58033eb978
|
146a30bee123722b5b32c0022c280bbe7d9b6850
|
/depsWorkSpace/bc-java-master/pkix/src/main/java/org/mightyfish/cert/jcajce/JcaX509v1CertificateBuilder.java
|
82cbc3904be7ec1a9b4d4d47487391c772e24294
|
[
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] |
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
| 2,179
|
java
|
package org.mightyfish.cert.jcajce;
import java.math.BigInteger;
import java.security.PublicKey;
import java.util.Date;
import javax.security.auth.x500.X500Principal;
import org.mightyfish.asn1.x500.X500Name;
import org.mightyfish.asn1.x509.SubjectPublicKeyInfo;
import org.mightyfish.cert.X509v1CertificateBuilder;
/**
* JCA helper class to allow JCA objects to be used in the construction of a Version 1 certificate.
*/
public class JcaX509v1CertificateBuilder
extends X509v1CertificateBuilder
{
/**
* Initialise the builder using a PublicKey.
*
* @param issuer X500Name representing the issuer of this certificate.
* @param serial the serial number for the certificate.
* @param notBefore date before which the certificate is not valid.
* @param notAfter date after which the certificate is not valid.
* @param subject X500Name representing the subject of this certificate.
* @param publicKey the public key to be associated with the certificate.
*/
public JcaX509v1CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, PublicKey publicKey)
{
super(issuer, serial, notBefore, notAfter, subject, SubjectPublicKeyInfo.getInstance(publicKey.getEncoded()));
}
/**
* Initialise the builder using X500Principal objects and a PublicKey.
*
* @param issuer principal representing the issuer of this certificate.
* @param serial the serial number for the certificate.
* @param notBefore date before which the certificate is not valid.
* @param notAfter date after which the certificate is not valid.
* @param subject principal representing the subject of this certificate.
* @param publicKey the public key to be associated with the certificate.
*/
public JcaX509v1CertificateBuilder(X500Principal issuer, BigInteger serial, Date notBefore, Date notAfter, X500Principal subject, PublicKey publicKey)
{
super(X500Name.getInstance(issuer.getEncoded()), serial, notBefore, notAfter, X500Name.getInstance(subject.getEncoded()), SubjectPublicKeyInfo.getInstance(publicKey.getEncoded()));
}
}
|
[
"a.eslampanah@live.com"
] |
a.eslampanah@live.com
|
fcd687777007f570659da2cdb6ff5d14b70890b8
|
aac48d1d476b345eb3baac2cddd90f800a17951c
|
/ardor3d-core/trunk/src/com/ardor3d/scenegraph/PassNodeState.java
|
b8984be0fd1f702fb60fb81a35fc507bebfa25fa
|
[
"Zlib",
"BSD-3-Clause"
] |
permissive
|
stepheneb/ardor3dv1
|
7f146a2ef27cdce954251ea8b26b93e437684426
|
a8938538427a079a9bebf644cedffb40c0e40985
|
refs/heads/master
| 2016-09-06T12:38:18.978105
| 2009-01-08T10:00:08
| 2009-01-08T10:00:08
| 103,306
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,035
|
java
|
/**
* Copyright (c) 2008-2009 Ardor Labs, Inc.
*
* This file is part of Ardor3D.
*
* Ardor3D is free software: you can redistribute it and/or modify it
* under the terms of its license which may be found in the accompanying
* LICENSE file or at <http://www.ardor3d.com/LICENSE>.
*/
package com.ardor3d.scenegraph;
import java.io.IOException;
import java.io.Serializable;
import java.util.EnumMap;
import com.ardor3d.renderer.RenderContext;
import com.ardor3d.renderer.Renderer;
import com.ardor3d.renderer.state.RenderState;
import com.ardor3d.renderer.state.RenderState.StateType;
import com.ardor3d.util.export.Ardor3DExporter;
import com.ardor3d.util.export.Ardor3DImporter;
import com.ardor3d.util.export.InputCapsule;
import com.ardor3d.util.export.OutputCapsule;
import com.ardor3d.util.export.Savable;
public class PassNodeState implements Savable, Serializable {
private static final long serialVersionUID = 1L;
/** if false, pass will not be updated or rendered. */
protected boolean _enabled = true;
/**
* offset params to use to differentiate multiple passes of the same scene in the zbuffer.
*/
protected float _zFactor;
protected float _zOffset;
/**
* RenderStates registered with this pass - if a given state is not null it overrides the corresponding state set
* during rendering.
*/
protected final EnumMap<RenderState.StateType, RenderState> _passStates = new EnumMap<RenderState.StateType, RenderState>(
RenderState.StateType.class);
/** a place to internally save previous states setup before rendering this pass */
protected final EnumMap<RenderState.StateType, RenderState> _savedStates = new EnumMap<RenderState.StateType, RenderState>(
RenderState.StateType.class);
/**
* Applies all currently set renderstates and z offset parameters to the supplied context
*
* @param r
* @param context
*/
public void applyPassNodeState(final Renderer r, final RenderContext context) {
applyPassStates(context);
r.setPolygonOffset(_zFactor, _zOffset);
}
/**
* Resets currently set renderstates and z offset parameters on the supplied context
*
* @param r
* @param context
*/
public void resetPassNodeStates(final Renderer r, final RenderContext context) {
r.clearPolygonOffset();
resetOldStates(context);
}
/**
* Enforce a particular state. In other words, the given state will override any state of the same type set on a
* scene object. Remember to clear the state when done enforcing. Very useful for multipass techniques where
* multiple sets of states need to be applied to a scenegraph drawn multiple times.
*
* @param state
* state to enforce
*/
public void setPassState(final RenderState state) {
_passStates.put(state.getType(), state);
}
/**
* @param type
* the type to query
* @return the state enforced for a give state type, or null if none.
*/
public RenderState getPassState(final StateType type) {
return _passStates.get(type);
}
/**
* Clears an enforced render state index by setting it to null. This allows object specific states to be used.
*
* @param type
* The type of RenderState to clear enforcement on.
*/
public void clearPassState(final StateType type) {
_passStates.remove(type);
}
/**
* sets all enforced states to null.
*
* @see RenderContext#clearEnforcedState(int)
*/
public void clearPassStates() {
_passStates.clear();
}
/**
* Applies all currently set render states to the supplied context
*
* @param context
*/
protected void applyPassStates(final RenderContext context) {
for (final RenderState.StateType type : _passStates.keySet()) {
final RenderState pState = _passStates.get(type);
_savedStates.put(type, context.getEnforcedState(type));
context.enforceState(pState);
}
}
/**
* Resets all render states on the supplied context
*
* @param context
*/
protected void resetOldStates(final RenderContext context) {
for (final RenderState.StateType type : _savedStates.keySet()) {
final RenderState sState = _savedStates.get(type);
if (sState == null) {
context.clearEnforcedState(type);
} else {
context.enforceState(sState);
}
}
_savedStates.clear();
}
/** @return Returns the enabled. */
public boolean isEnabled() {
return _enabled;
}
/**
* @param enabled
* The enabled to set.
*/
public void setEnabled(final boolean enabled) {
_enabled = enabled;
}
/** @return Returns the zFactor. */
public float getZFactor() {
return _zFactor;
}
/**
* Sets the polygon offset param - factor - for this Pass.
*
* @param factor
* The zFactor to set.
*/
public void setZFactor(final float factor) {
_zFactor = factor;
}
/** @return Returns the zOffset. */
public float getZOffset() {
return _zOffset;
}
/**
* Sets the polygon offset param - offset - for this Pass.
*
* @param offset
* The zOffset to set.
*/
public void setZOffset(final float offset) {
_zOffset = offset;
}
public Class<? extends PassNodeState> getClassTag() {
return this.getClass();
}
public void write(final Ardor3DExporter e) throws IOException {
final OutputCapsule oc = e.getCapsule(this);
oc.write(_enabled, "enabled", true);
oc.write(_zFactor, "zFactor", 0);
oc.write(_zOffset, "zOffset", 0);
oc.write(_passStates.values().toArray(new RenderState[0]), "passStates", null);
oc.write(_savedStates.values().toArray(new RenderState[0]), "savedStates", null);
}
public void read(final Ardor3DImporter e) throws IOException {
final InputCapsule ic = e.getCapsule(this);
_enabled = ic.readBoolean("enabled", true);
_zFactor = ic.readFloat("zFactor", 0);
_zOffset = ic.readFloat("zOffset", 0);
Savable[] temp = ic.readSavableArray("passStates", null);
_passStates.clear();
if (temp != null) {
for (int x = 0; x < temp.length; x++) {
final RenderState state = (RenderState) temp[x];
_passStates.put(state.getType(), state);
}
}
temp = ic.readSavableArray("savedStates", null);
_savedStates.clear();
if (temp != null) {
for (int x = 0; x < temp.length; x++) {
final RenderState state = (RenderState) temp[x];
_savedStates.put(state.getType(), state);
}
}
}
}
|
[
"ardorlabs@82abaa13-a93f-4eff-8987-b3ae9fc18050"
] |
ardorlabs@82abaa13-a93f-4eff-8987-b3ae9fc18050
|
bc0ffa0fcab0b645587449cd7fc9ea6d7efc8cfa
|
fb91f96c6deb06ed1289231bf9c96ce64ce4f57a
|
/src/main/java/pl/asie/charset/module/storage/locks/FixCharsetLockKeyTagChange.java
|
bf7a5f7f09904a6bb48f02442cfecbb7d3217c0f
|
[] |
no_license
|
CharsetMC/Charset
|
b314c044b618bc66be6b8ddd2f4326553c7efcfa
|
401e25a10399c19adf1ed893b94dd5867c07a1f0
|
refs/heads/1.12-stable
| 2022-09-22T19:59:22.751395
| 2022-08-31T20:56:19
| 2022-08-31T20:56:19
| 47,063,120
| 59
| 54
| null | 2019-07-21T07:11:19
| 2015-11-29T12:43:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,910
|
java
|
/*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020 Adrian Siekierka
*
* This file is part of Charset.
*
* Charset 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 3 of the License, or
* (at your option) any later version.
*
* Charset 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Charset. If not, see <http://www.gnu.org/licenses/>.
*/
package pl.asie.charset.module.storage.locks;
import net.minecraft.item.Item;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.datafix.IFixableData;
import pl.asie.charset.module.storage.locks.ItemLockingDyeable;
public class FixCharsetLockKeyTagChange implements IFixableData {
@Override
public int getFixVersion() {
return 2;
}
@Override
public NBTTagCompound fixTagCompound(NBTTagCompound compound) {
if (compound.hasKey("id", 8) && compound.hasKey("tag", 10)) {
Item item = Item.getByNameOrId(compound.getString("id"));
if (item instanceof ItemLockingDyeable) {
NBTTagCompound tag = compound.getCompoundTag("tag");
if (tag.hasKey("color0")) {
tag.removeTag("color0");
}
if (tag.hasKey("color1")) {
NBTBase colorTag = tag.getTag("color1").copy();
tag.setTag("color", colorTag);
tag.removeTag("color1");
}
}
}
return compound;
}
}
|
[
"kontakt@asie.pl"
] |
kontakt@asie.pl
|
80230829cc2de777ac14b1f083cbb4e4b0365dd6
|
862c1ab788fe70c2dae45d2a4593e3b89afcdc0a
|
/springcode/spring-framework/spring-test/src/test/java/org/springframework/test/context/web/RequestAndSessionScopedBeansWacTests.java
|
cad081ea92a871283b7733908a0895ea958c7c28
|
[
"Apache-2.0"
] |
permissive
|
ldywork/sourcecode
|
801c1dffa40df1aa4a977f78798a1901644ebb84
|
7c17edfaeaca4d21b8ce8db6c5d0c475b4d44f4c
|
refs/heads/master
| 2022-12-22T13:25:49.881128
| 2019-10-27T09:48:49
| 2019-10-27T09:48:49
| 216,370,240
| 0
| 0
| null | 2022-12-16T01:35:34
| 2019-10-20T13:56:57
|
HTML
|
UTF-8
|
Java
| false
| false
| 2,459
|
java
|
/*
* Copyright 2002-2013 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.springframework.test.context.web;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.tests.sample.beans.TestBean;
import org.springframework.web.context.WebApplicationContext;
import static org.junit.Assert.*;
/**
* Integration tests that verify support for request and session scoped beans
* in conjunction with the TestContext Framework.
*
* @author Sam Brannen
* @since 3.2
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
@WebAppConfiguration
public class RequestAndSessionScopedBeansWacTests {
@Autowired
private WebApplicationContext wac;
@Autowired
private MockHttpServletRequest request;
@Autowired
private MockHttpSession session;
@Test1
public void requestScope() throws Exception {
final String beanName = "requestScopedTestBean";
final String contextPath = "/path";
assertNull(request.getAttribute(beanName));
request.setContextPath(contextPath);
TestBean testBean = wac.getBean(beanName, TestBean.class);
assertEquals(contextPath, testBean.getName());
assertSame(testBean, request.getAttribute(beanName));
assertSame(testBean, wac.getBean(beanName, TestBean.class));
}
@Test1
public void sessionScope() throws Exception {
final String beanName = "sessionScopedTestBean";
assertNull(session.getAttribute(beanName));
TestBean testBean = wac.getBean(beanName, TestBean.class);
assertSame(testBean, session.getAttribute(beanName));
assertSame(testBean, wac.getBean(beanName, TestBean.class));
}
}
|
[
"ldylife@163.com"
] |
ldylife@163.com
|
ad76394d04b17d9e34e1ed1afcac868d3caf7e82
|
b5153be915d94d1232a4fdebf1464b50809c361a
|
/src/main/java/com/amazonaws/services/sns/model/transform/ListSubscriptionsRequestStaxUnmarshaller.java
|
3e081f308041facb4e1ca879c58a80405fa1ba24
|
[
"Apache-2.0"
] |
permissive
|
KonishchevDmitry/aws-sdk-for-java
|
c68f0ee7751f624eeae24224056db73e0a00a093
|
6f8b2f9a3cd659946db523275ba1dd55b90c6238
|
refs/heads/master
| 2021-01-18T05:24:52.275578
| 2010-05-31T06:20:22
| 2010-05-31T06:20:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,466
|
java
|
/*
* Copyright 2010 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.amazonaws.services.sns.model.transform;
import java.util.Map;
import java.util.Map.Entry;
import javax.xml.stream.events.XMLEvent;
import com.amazonaws.services.sns.model.*;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.transform.MapEntry;
import com.amazonaws.transform.StaxUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeStaxUnmarshallers.*;
/**
* List Subscriptions Request StAX Unmarshaller
*/
public class ListSubscriptionsRequestStaxUnmarshaller implements Unmarshaller<ListSubscriptionsRequest, StaxUnmarshallerContext> {
public ListSubscriptionsRequest unmarshall(StaxUnmarshallerContext context) throws Exception {
ListSubscriptionsRequest listSubscriptionsRequest = new ListSubscriptionsRequest();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
if (context.isStartOfDocument()) targetDepth += 2;
while (true) {
XMLEvent event = context.nextEvent();
if (event.isEndDocument()) return listSubscriptionsRequest;
if (event.isAttribute() || event.isStartElement()) {
if (context.testExpression("NextToken", targetDepth)) {
listSubscriptionsRequest.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
} else if (event.isEndElement()) {
if (context.getCurrentDepth() < originalDepth) {
return listSubscriptionsRequest;
}
}
}
}
private static ListSubscriptionsRequestStaxUnmarshaller instance;
public static ListSubscriptionsRequestStaxUnmarshaller getInstance() {
if (instance == null) instance = new ListSubscriptionsRequestStaxUnmarshaller();
return instance;
}
}
|
[
"aws-dr-tools@amazon.com"
] |
aws-dr-tools@amazon.com
|
8b3c16c8e3c83e138ad2d48985145d6db3ff2818
|
ed4e814f28df3803a2fe929571e4f0743fa5719e
|
/zuihou-backend/zuihou-authority/zuihou-authority-controller/src/main/java/com/github/zuihou/authority/controller/core/OrgController.java
|
4498127cafa7f128b18330c1d93edeb477b1e192
|
[
"Apache-2.0"
] |
permissive
|
dielianxian/zuihou-admin-cloud
|
5907de4ab72527d98a5f5a905e80250ba310219e
|
bd5915a94c9b06a0c4b153ff48807ab4761066f8
|
refs/heads/master
| 2020-10-01T16:06:04.961373
| 2019-12-11T10:04:01
| 2019-12-11T10:04:01
| 227,572,867
| 1
| 0
|
Apache-2.0
| 2019-12-12T09:50:28
| 2019-12-12T09:50:27
| null |
UTF-8
|
Java
| false
| false
| 5,797
|
java
|
package com.github.zuihou.authority.controller.core;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.zuihou.authority.dto.core.OrgSaveDTO;
import com.github.zuihou.authority.dto.core.OrgTreeDTO;
import com.github.zuihou.authority.dto.core.OrgUpdateDTO;
import com.github.zuihou.authority.entity.core.Org;
import com.github.zuihou.authority.service.core.OrgService;
import com.github.zuihou.base.BaseController;
import com.github.zuihou.base.R;
import com.github.zuihou.base.entity.SuperEntity;
import com.github.zuihou.database.mybatis.conditions.Wraps;
import com.github.zuihou.database.mybatis.conditions.query.LbqWrapper;
import com.github.zuihou.dozer.DozerUtils;
import com.github.zuihou.log.annotation.SysLog;
import com.github.zuihou.utils.BizAssert;
import com.github.zuihou.utils.TreeUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import static com.github.zuihou.utils.StrPool.DEF_PARENT_ID;
import static com.github.zuihou.utils.StrPool.DEF_ROOT_PATH;
/**
* <p>
* 前端控制器
* 组织
* </p>
*
* @author zuihou
* @date 2019-07-22
*/
@Slf4j
@RestController
@RequestMapping("/org")
@Api(value = "Org", tags = "组织")
public class OrgController extends BaseController {
@Autowired
private OrgService orgService;
@Autowired
private DozerUtils dozer;
/**
* 分页查询组织
*
* @param data 分页查询对象
* @return 查询结果
*/
@ApiOperation(value = "分页查询组织", notes = "分页查询组织")
@ApiImplicitParams({
@ApiImplicitParam(name = "current", value = "当前页", dataType = "long", paramType = "query", defaultValue = "1"),
@ApiImplicitParam(name = "size", value = "每页显示几条", dataType = "long", paramType = "query", defaultValue = "10"),
})
@GetMapping("/page")
@SysLog("分页查询组织")
public R<IPage<Org>> page(Org data) {
IPage<Org> page = getPage();
// 构建值不为null的查询条件
LbqWrapper<Org> query = Wraps.lbQ(data);
orgService.page(page, query);
return success(page);
}
/**
* 查询组织
*
* @param id 主键id
* @return 查询结果
*/
@ApiOperation(value = "查询组织", notes = "查询组织")
@GetMapping("/{id}")
@SysLog("查询组织")
public R<Org> get(@PathVariable Long id) {
return success(orgService.getById(id));
}
/**
* 新增组织
*
* @param data 新增对象
* @return 新增结果
*/
@ApiOperation(value = "新增组织", notes = "新增组织不为空的字段")
@PostMapping
@SysLog("新增组织")
public R<Org> save(@RequestBody @Validated OrgSaveDTO data) {
Org org = dozer.map(data, Org.class);
if (org.getParentId() == null || org.getParentId() <= 0) {
org.setParentId(DEF_PARENT_ID);
org.setTreePath(DEF_ROOT_PATH);
} else {
Org parent = orgService.getById(org.getParentId());
BizAssert.notNull(parent, "父组织不能为空");
org.setTreePath(StringUtils.join(parent.getTreePath(), parent.getId(), DEF_ROOT_PATH));
}
orgService.save(org);
return success(org);
}
/**
* 修改组织
*
* @param data 修改对象
* @return 修改结果
*/
@ApiOperation(value = "修改组织", notes = "修改组织不为空的字段")
@PutMapping
@SysLog("修改组织")
public R<Org> update(@RequestBody @Validated(SuperEntity.Update.class) OrgUpdateDTO data) {
Org org = dozer.map(data, Org.class);
orgService.updateById(org);
return success(org);
}
/**
* 删除组织
*
* @param ids 主键id
* @return 删除结果
*/
@ApiOperation(value = "删除组织", notes = "根据id物理删除组织")
@SysLog("删除组织")
@DeleteMapping
public R<Boolean> delete(@RequestParam("ids[]") List<Long> ids) {
orgService.remove(ids);
return success(true);
}
/**
* 查询系统所有的组织树
*
* @param status 状态
* @return
* @author zuihou
* @date 2019-07-29 11:59
*/
@ApiOperation(value = "查询系统所有的组织树", notes = "查询系统所有的组织树")
@GetMapping("/tree")
@SysLog("查询系统所有的组织树")
public R<List<OrgTreeDTO>> tree(@RequestParam(value = "name", required = false) String name,
@RequestParam(value = "status", required = false) Boolean status) {
List<Org> list = orgService.list(Wraps.<Org>lbQ().like(Org::getName, name)
.eq(Org::getStatus, status).orderByAsc(Org::getSortValue));
List<OrgTreeDTO> treeList = dozer.mapList(list, OrgTreeDTO.class);
return success(TreeUtil.build(treeList));
}
}
|
[
"244387066@qq.com"
] |
244387066@qq.com
|
2c667053efd77e9c29716ed1fab6a9171a5deaa9
|
b7bc39c604f7b83a7d7f0d750240fe86d8df7a5c
|
/java-basic/src/main/java/ch06/Test04.java
|
ab6a2ba3b5f9dfdfb7ac0a0fd88a18fadd828598
|
[] |
no_license
|
ppappikko/bitcamp-java-2018-12
|
e79e023a00c579519ae67ba9f997b615fb539e5c
|
bd2a0b87c20a716d2b1e8cafc2a9cd54f683a37f
|
refs/heads/master
| 2021-08-06T17:31:37.187323
| 2019-07-19T04:55:07
| 2019-07-19T04:55:07
| 163,650,729
| 0
| 0
| null | 2020-04-30T16:14:59
| 2018-12-31T08:01:24
|
Java
|
UTF-8
|
Java
| false
| false
| 411
|
java
|
// 메서드 - 파라미터와 리턴 값
package ch06;
public class Test04 {
public static void main(String[] args) {
String str = greet("홍길동");
System.out.println(str);
int result = plus(10, 20);
System.out.println(result);
}
static String greet(String name) {
return name + "님 반갑습니다!";
}
static int plus(int a, int b) {
return a + b;
}
}
|
[
"sanghyun.dev@gmail.com"
] |
sanghyun.dev@gmail.com
|
b700ff37eabd82bb089ebb74ade0d9cc435ebda4
|
e46b1cae4c29d7ccbb378c9f1a64588015cc31ee
|
/android/MangaMaster/src/main/java/com/dgsd/android/mangamaster/data/Db.java
|
6500750f8a3cacf539089e5ff9b20cf97ccec2df
|
[] |
no_license
|
DanielGrech/mangamadness
|
c2d634952741e525e28b6b080ace5cbc622f0a5f
|
8bcf911fe05cb43b13fa5b4c60a4ea99939cc511
|
refs/heads/master
| 2021-01-22T00:13:16.431274
| 2014-03-27T21:17:32
| 2014-03-27T21:17:32
| 16,728,746
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,991
|
java
|
package com.dgsd.android.mangamaster.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import timber.log.Timber;
import java.lang.reflect.Modifier;
public class Db extends SQLiteOpenHelper {
private static final int VERSION = 1;
public static final String DB_NAME = "MangaMaster.db";
private static Db sInstance;
public static final Object[] LOCK = new Object[0];
public static Db get(Context c) {
if (sInstance == null)
sInstance = new Db(c);
return sInstance;
}
protected Db(Context context) {
super(context.getApplicationContext(), DB_NAME, null, VERSION);
}
@Override
public void onCreate(final SQLiteDatabase db) {
runForEachTable(new TableRunnable() {
@Override
public void run(final DbTable table) {
db.execSQL(table.getCreateSql());
}
});
}
@Override
public void onConfigure(final SQLiteDatabase db) {
super.onConfigure(db);
db.execSQL("PRAGMA synchronous=OFF");
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
//TODO: Support db upgrade...
throw new IllegalStateException("We havent implemented db upgrades yet!");
}
@Override
public SQLiteDatabase getReadableDatabase() {
synchronized (LOCK) {
return super.getReadableDatabase();
}
}
@Override
public SQLiteDatabase getWritableDatabase() {
synchronized (LOCK) {
return super.getWritableDatabase();
}
}
/**
* Execute a given against each table in the database
*
* @param runnable The task to perform
*/
private void runForEachTable(TableRunnable runnable) {
java.lang.reflect.Field[] declaredFields = Db.Table.class.getDeclaredFields();
for (java.lang.reflect.Field field : declaredFields) {
if (Modifier.isStatic(field.getModifiers()) && field.getType().equals(DbTable.class)) {
try {
runnable.run((DbTable) field.get(null));
} catch (IllegalAccessException e) {
Timber.e(e, "Error executing table runnable: " + field.getName());
}
}
}
}
/**
* Encapsulates a task to be run against a table
*/
private interface TableRunnable {
/**
* Execute the request task
*
* @param table The table to execute the task on
*/
public void run(DbTable table);
}
/**
* Database fields used in the app
*/
public static class Field {
private Field() {
}
public static final DbField ID = new DbField("_id", "integer", "primary key");
public static final DbField SERIES_ID = new DbField("series_id", "text");
public static final DbField NAME = new DbField("name", "text");
public static final DbField AUTHOR = new DbField("author", "text");
public static final DbField ARTIST = new DbField("artist", "text");
public static final DbField SUMMARY = new DbField("summary", "text");
public static final DbField URL_SEGMENT = new DbField("url_segment", "text", "collate nocase");
public static final DbField COVER_IMAGE_URL = new DbField("cover_image_url", "text");
public static final DbField YEAR_OF_RELEASE = new DbField("year_of_release", "integer");
public static final DbField TIME_CREATED = new DbField("time_created", "integer");
public static final DbField CHAPTER_ID = new DbField("chapter_id", "text");
public static final DbField TITLE = new DbField("title", "text");
public static final DbField SEQUENCE_NUMBER = new DbField("sequence_number", "integer");
public static final DbField RELEASE_DATE = new DbField("release_date", "integer");
public static final DbField PAGE_ID = new DbField("page_id", "text");
public static final DbField IMAGE_URL = new DbField("image_url", "text");
}
/**
* Application database tables
*/
public static class Table {
private Table() {
}
public static DbTable SERIES = DbTable.with("series")
.columns(
Field.ID,
Field.SERIES_ID,
Field.NAME,
Field.AUTHOR,
Field.ARTIST,
Field.SUMMARY,
Field.URL_SEGMENT,
Field.COVER_IMAGE_URL,
Field.YEAR_OF_RELEASE,
Field.TIME_CREATED
)
.scripts(
"CREATE UNIQUE INDEX unique_server_id ON series (" + Field.SERIES_ID + ")",
"CREATE INDEX idx_series_server_id ON series (" + Field.SERIES_ID + ")"
)
.create();
public static DbTable GENRES = DbTable.with("genres")
.columns(
Field.SERIES_ID,
Field.NAME
)
.scripts(
"CREATE UNIQUE INDEX unique_genre_server_id ON genres (" + Field.SERIES_ID + ", " +
"" + Field.NAME + ")",
"CREATE INDEX idx_genre_series_id ON genres (" + Field.SERIES_ID + ")"
)
.create();
public static DbTable CHAPTERS = DbTable.with("chapters")
.columns(
Field.ID,
Field.SERIES_ID,
Field.CHAPTER_ID,
Field.NAME,
Field.TITLE,
Field.SEQUENCE_NUMBER,
Field.RELEASE_DATE,
Field.TIME_CREATED
)
.scripts(
"CREATE UNIQUE INDEX unique_chapter_id ON chapters (" + Field.CHAPTER_ID + ")",
"CREATE INDEX idx_chapter_server_id ON series (" + Field.CHAPTER_ID + ")",
"CREATE INDEX idx_chapter_series_id ON series (" + Field.SERIES_ID + ")"
)
.create();
public static DbTable PAGES = DbTable.with("pages")
.columns(
Field.ID,
Field.PAGE_ID,
Field.CHAPTER_ID,
Field.NAME,
Field.IMAGE_URL,
Field.TIME_CREATED
)
.scripts(
"CREATE UNIQUE INDEX unique_page_id ON pages (" + Field.PAGE_ID + ")",
"CREATE INDEX idx_pages_chapter_id ON pages (" + Field.CHAPTER_ID + ")"
)
.create();
}
}
|
[
"danielgrech91@gmail.com"
] |
danielgrech91@gmail.com
|
7f92a402d66b0de96dd3c5113ee67737540716d0
|
4ecc390ae66bbb8bad8a6bba636fd19702205d34
|
/minecraft 1.8/bdr.java
|
510a13b90933be52d0a183e62145dc74b432ba7b
|
[] |
no_license
|
project-ion/Decompile-Minecraft
|
d9c967e57ff7d24ada8c4c49f832dac25f18bb9e
|
12882633319383b7652b475b4f08b6f72acdddc4
|
refs/heads/master
| 2021-01-23T15:28:54.832366
| 2014-09-20T09:57:54
| 2014-09-20T09:57:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 165
|
java
|
class bdr {}
/* Location: C:\Users\Hugo Haldi\Desktop\Decompile Minecraft\1.8.jar
* Qualified Name: bdr
* JD-Core Version: 0.7.0.1
*/
|
[
"projection-team@hotmail.com"
] |
projection-team@hotmail.com
|
62d3d992f37ccfab866929f72985e4ada4988415
|
bcd7c93f89adac49a8ddbe699f19e798d3507b63
|
/SYTSB1/.svn/pristine/a6/a659f33301014da479dc259d8b4ed40bd869b703.svn-base
|
9eb055c91962967d3a59c550ecf8d83e7db55b7f
|
[] |
no_license
|
gui-gui-maker/MyFrame
|
3b37d7770617fb4438c4f97d79e58421a970000b
|
b03b38a26d591f16dca07cf2b3d24f129c5833ef
|
refs/heads/master
| 2022-12-23T11:53:16.105726
| 2019-10-31T06:23:00
| 2019-10-31T06:23:00
| 218,462,486
| 1
| 0
| null | 2022-12-16T07:18:22
| 2019-10-30T06:56:36
|
Java
|
UTF-8
|
Java
| false
| false
| 5,502
|
package com.lsts.finance.web;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.khnt.core.crud.web.support.JsonWrapper;
import com.khnt.utils.DateUtil;
import com.khnt.utils.StringUtil;
import com.lsts.finance.bean.CwFytjDTO;
import com.lsts.finance.service.CwFytjManager;
import com.lsts.statistics.bean.DeviceCountDTO;
/**
*财务统计Action
*
* @author dxf
*
* @date 2015年10月16日
*/
@Controller
@RequestMapping("cw/fytj")
public class CwFytjAction {
private Log log = LogFactory.getLog(getClass());
@Autowired
private CwFytjManager cwFytjManager;
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
/**获取统计数据
*
* @param request
* @return
* @throws Exception
*/
@RequestMapping(value = "getCwData")
@ResponseBody
public HashMap<String, Object> getCwData(HttpServletRequest request) throws Exception {
HashMap<String, Object> wrapper = new HashMap<String, Object>();
String startDate = request.getParameter("startDate");
String endDate = request.getParameter("endDate");
String org_id = request.getParameter("org_id");
String userName = request.getParameter("userName");
try {
if (StringUtil.isEmpty(startDate)) {
startDate = DateUtil.getFirstDateStringOfYear("yyyy-MM-dd");
}
if (StringUtil.isEmpty(endDate)) {
endDate = DateUtil.getDateTime("yyyy-MM-dd", new Date());
}
wrapper.put("success", true);
wrapper.put("data", cwFytjManager.getCwData(startDate, endDate, org_id,userName));
} catch (Exception e) {
e.printStackTrace();
return JsonWrapper.failureWrapperMsg("获取财务报账数据失败,请重试!");
}
return wrapper;
}
/**获取统计数据(部门)
*
* @param request
* @return
* @throws Exception
*/
@RequestMapping(value = "getCwBmData")
@ResponseBody
public HashMap<String, Object> getCwBmData(HttpServletRequest request) throws Exception {
HashMap<String, Object> wrapper = new HashMap<String, Object>();
String startDate = request.getParameter("startDate");
String endDate = request.getParameter("endDate");
String org_id = request.getParameter("org_id");
String unit = request.getParameter("unit");
try {
if (StringUtil.isEmpty(startDate)) {
startDate = DateUtil.getFirstDateStringOfYear("yyyy-MM-dd");
}
if (StringUtil.isEmpty(endDate)) {
endDate = DateUtil.getDateTime("yyyy-MM-dd", new Date());
}
wrapper.put("success", true);
wrapper.put("data", cwFytjManager.getCwBmData(startDate, endDate, org_id,unit));
} catch (Exception e) {
e.printStackTrace();
return JsonWrapper.failureWrapperMsg("获取财务报账数据失败,请重试!");
}
return wrapper;
}
/**
* 各部门人员业务统计表导出
* @param request
* @return
*/
@SuppressWarnings("unchecked")
@RequestMapping(value="exportCount")
public String exportCountByUser(HttpServletRequest request){
try {
String startDate = request.getParameter("startDate");
String endDate = request.getParameter("endDate");
String org_id = request.getParameter("org_id1");
String org_name = request.getParameter("org_id");
String userName = request.getParameter("userName");
if (StringUtil.isEmpty(startDate)) {
startDate = DateUtil.getFirstDateStringOfYear("yyyy-MM-dd");
}
if (StringUtil.isEmpty(endDate)) {
endDate = DateUtil.getDateTime("yyyy-MM-dd", new Date());
}
List<CwFytjDTO> list = cwFytjManager.getCwData(startDate, endDate, org_id,userName);
request.getSession().setAttribute("startDate", startDate);
request.getSession().setAttribute("endDate", endDate);
request.getSession().setAttribute("org_name", org_name);
request.getSession().setAttribute("data", list);
} catch (Exception e) {
e.printStackTrace();
log.error("各部门人员业务统计表导出失败!");
}
return "app/finance/cw_fytj_export";
}
/**
* 各部门业务统计表导出(部门)
* @param request
* @return
*/
@SuppressWarnings("unchecked")
@RequestMapping(value="exportBmCount")
public String exportCountByBm(HttpServletRequest request){
try {
String startDate = request.getParameter("startDate");
String endDate = request.getParameter("endDate");
String org_id = request.getParameter("org_id1");
String org_name = request.getParameter("org_id");
String unit = request.getParameter("unit");
if (StringUtil.isEmpty(startDate)) {
startDate = DateUtil.getFirstDateStringOfYear("yyyy-MM-dd");
}
if (StringUtil.isEmpty(endDate)) {
endDate = DateUtil.getDateTime("yyyy-MM-dd", new Date());
}
List<CwFytjDTO> list = cwFytjManager.getCwBmData(startDate, endDate, org_id,unit);
request.getSession().setAttribute("startDate", startDate);
request.getSession().setAttribute("endDate", endDate);
request.getSession().setAttribute("org_name", org_name);
request.getSession().setAttribute("data", list);
} catch (Exception e) {
e.printStackTrace();
log.error("各部门人员业务统计表导出失败!");
}
return "app/finance/cw_bmfytj_export";
}
}
|
[
"guidoz@163.com"
] |
guidoz@163.com
|
|
bc0e848883e07ff0a8f7673259db7dd579e11805
|
0721305fd9b1c643a7687b6382dccc56a82a2dad
|
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/p333g/p384h/p385a/C12139i.java
|
5c36bd4e91b5a7f6448b29662d343eb0d8bfe347
|
[] |
no_license
|
a2en/Zenly_re
|
09c635ad886c8285f70a8292ae4f74167a4ad620
|
f87af0c2dd0bc14fd772c69d5bc70cd8aa727516
|
refs/heads/master
| 2020-12-13T17:07:11.442473
| 2020-01-17T04:32:44
| 2020-01-17T04:32:44
| 234,470,083
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 251
|
java
|
package p333g.p384h.p385a;
/* renamed from: g.h.a.i */
public final class C12139i {
public static final int zs_fragment_help_menu_conversations = 2131689473;
public static final int zs_view_request_conversations_disabled_menu = 2131689474;
}
|
[
"developer@appzoc.com"
] |
developer@appzoc.com
|
5aa9b24ffa5af27da8b1bc1115692f8143c29e01
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MATH-49b-2-16-FEMO-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/util/OpenIntToDoubleHashMap$Iterator_ESTest_scaffolding.java
|
277b83a40dc9b71dd9c151f9838cd0f877e01fb8
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 464
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Apr 04 07:53:14 UTC 2020
*/
package org.apache.commons.math.util;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class OpenIntToDoubleHashMap$Iterator_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
016c1381412b6f306bc3cc5fed08240733a6e002
|
2f5632e375a8b20ae4b7998743469dbef7523656
|
/app/src/main/java/com/github/yuweiguocn/demo/greendao/about/AboutPresenter.java
|
43f8c219b0e79be996269d55f80bd0dd7d1f2fab
|
[
"Apache-2.0"
] |
permissive
|
wangjishan/GreenDaoUpgradeHelper
|
a9398b933870a8b5d4a06e5c3c4a7018d8a2e8d3
|
7d8f24a1291def2eb21cb71aaef62370c35615d6
|
refs/heads/master
| 2021-01-12T11:05:19.509099
| 2016-10-26T04:44:03
| 2016-10-26T04:44:03
| 72,816,743
| 1
| 0
| null | 2016-11-04T05:21:24
| 2016-11-04T05:21:22
|
Java
|
UTF-8
|
Java
| false
| false
| 789
|
java
|
package com.github.yuweiguocn.demo.greendao.about;
import com.github.yuweiguocn.demo.greendao.bean.About;
/**
* Created by growth on 7/9/16.
*/
public class AboutPresenter implements AboutContract.Presenter{
AboutContract.View view;
public AboutPresenter(AboutContract.View view) {
this.view = view;
}
@Override
public void loadData() {
About about = new About("weibo: <font color=\"#3F51B5\">@于卫国</font>","GitHub: <font color=\"#3F51B5\">http://github.com/yuweiguocn/</font>","Jianshu: <font color=\"#3F51B5\">http://www.jianshu.com/users/4cb0c84627c4</font>"
,"gmail: <font color=\"#3F51B5\">yuweiguocn@gmail.com</font>","blog: <font color=\"#3F51B5\">http://yuweiguocn.github.io/</font>");
view.onSucess(about);
}
}
|
[
"yuweiguocn@gmail.com"
] |
yuweiguocn@gmail.com
|
d1507f8cbdb31d7f01646df9d4761387ce94c1d5
|
9fbf59936537b9c3d6f79de6f8fba7cf7b683de8
|
/src/main/java/havis/net/ui/shared/client/chart/group/ChartValueGroup.java
|
3781f6ddbe05d4126a8b8e061546418d018b0cbd
|
[
"Apache-2.0"
] |
permissive
|
menucha-de/Shared.UI
|
ad639036a3d8c39cd86ea0a41f0a587b7f52e189
|
3da1bdb6f4eecee92fbb88d4baab09ea525f59ec
|
refs/heads/main
| 2023-03-21T15:36:34.999801
| 2021-03-16T12:49:24
| 2021-03-16T12:49:24
| 348,345,324
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,212
|
java
|
package havis.net.ui.shared.client.chart.group;
import havis.net.ui.shared.client.chart.ChartPoint;
import havis.net.ui.shared.client.chart.LabelPosition;
import java.util.ArrayList;
import java.util.List;
import com.github.gwtd3.api.core.Selection;
/**
* Defines a group of points.
*
* @param <X>
* Type of x value
* @param <Y>
* Type of y value
*/
public abstract class ChartValueGroup<X, Y> {
private boolean appended;
/**
* The line/group color.
*/
protected String color = "#000000";
/**
* Contains the group values.
*/
protected List<ChartPoint<X, Y>> points;
protected String label;
protected LabelPosition labelPosition = LabelPosition.RIGHT_OUTER_MIDDLE;
protected ChartValueGroup() {
}
/**
* @return The CSS line/group color.
*/
public String getColor() {
return color;
}
/**
* Sets the CSS group color. Default is black.
*
* @param color
*/
public void setColor(String color) {
this.color = color;
}
/**
* @return The value list.
*/
public List<ChartPoint<X, Y>> getPoints() {
if (points == null) {
points = new ArrayList<ChartPoint<X, Y>>();
}
return points;
}
/**
* Sets the value list.
*
* @param points
*/
public void setPoints(List<ChartPoint<X, Y>> points) {
this.points = points;
}
/**
* @return True if groups is appended.
*/
public boolean isAppended() {
return appended;
}
/**
* Sets whether the group is appended. Should be set to true in the
* {@link ChartValueGroup#append(Selection, double)} method
*
* @param appended
*/
public void setAppended(boolean appended) {
this.appended = appended;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public LabelPosition getLabelPosition() {
return labelPosition;
}
public void setLabelPosition(LabelPosition labelPosition) {
this.labelPosition = labelPosition;
}
/**
* Refreshing the view
*/
public abstract void refresh();
/**
* Adding group to parent.
*
* @param parent
* @param marginLeft
* Should be the y-axis width.
*/
public abstract void append(Selection parent, double marginLeft);
}
|
[
"abrams@peramic.io"
] |
abrams@peramic.io
|
d86f6d228ef7c770bbdc261ec0fde42353850dfb
|
258de8e8d556901959831bbdc3878af2d8933997
|
/utopia-service/utopia-vendor/utopia-vendor-impl/src/main/java/com/voxlearning/utopia/service/vendor/impl/listener/VendorOrderSubscriberListener.java
|
8e6783932323fae9072697999207e86ad7510649
|
[] |
no_license
|
Explorer1092/vox
|
d40168b44ccd523748647742ec376fdc2b22160f
|
701160b0417e5a3f1b942269b0e7e2fd768f4b8e
|
refs/heads/master
| 2020-05-14T20:13:02.531549
| 2019-04-17T06:54:06
| 2019-04-17T06:54:06
| 181,923,482
| 0
| 4
| null | 2019-04-17T15:53:25
| 2019-04-17T15:53:25
| null |
UTF-8
|
Java
| false
| false
| 2,910
|
java
|
package com.voxlearning.utopia.service.vendor.impl.listener;
import com.voxlearning.alps.core.util.MapUtils;
import com.voxlearning.alps.lang.convert.SafeConverter;
import com.voxlearning.alps.lang.mapper.json.JsonUtils;
import com.voxlearning.alps.spi.pubsub.PubsubDestination;
import com.voxlearning.alps.spi.pubsub.PubsubSubscriber;
import com.voxlearning.alps.spi.pubsub.PubsubSystem;
import com.voxlearning.alps.spi.queue.Message;
import com.voxlearning.alps.spi.queue.MessageListener;
import com.voxlearning.utopia.api.constant.OrderProductServiceType;
import com.voxlearning.utopia.service.vendor.impl.service.ClazzExpandSellServiceImpl;
import com.voxlearning.utopia.service.vendor.impl.service.XiaoUOrderInfoServiceImpl;
import javax.inject.Inject;
import javax.inject.Named;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import static com.voxlearning.utopia.api.constant.OrderProductServiceType.*;
/**
* @author jiangpeng
* @since 2018-01-15 下午4:10
**/
@Named
@PubsubSubscriber(destinations = {
@PubsubDestination(system = PubsubSystem.KFK, connection = "primary", topic = "utopia.order.success.topic"),
@PubsubDestination(system = PubsubSystem.KFK, connection = "main-backup", topic = "utopia.order.success.topic")
})
public class VendorOrderSubscriberListener implements MessageListener {
@Inject
private XiaoUOrderInfoServiceImpl xiaoUOrderInfoService;
@Inject
private ClazzExpandSellServiceImpl clazzExpandSellService;
private static final List<OrderProductServiceType> afentiList = Arrays.asList(AfentiExam, AfentiMath, AfentiChinese, AfentiChineseImproved, AfentiExamImproved, AfentiMathImproved);
@Override
public void onMessage(Message message) {
Map<String, Object> msgMap = null;
Object object = message.decodeBody();
if (object instanceof String) {
msgMap = JsonUtils.fromJson((String) object);
}
if (msgMap == null) {
return;
}
dealXiaoUOrderInfo(msgMap);
dealExpandClazzOrderInfo(msgMap);
}
private void dealXiaoUOrderInfo(Map<String, Object> msgMap) {
Long studentId = MapUtils.getLong(msgMap, "userId");
OrderProductServiceType type = OrderProductServiceType.safeParse(SafeConverter.toString(msgMap.get("serviceType")));
if (afentiList.contains(type)) {
xiaoUOrderInfoService.addXiaoUOrderInfo(studentId, type.name());
}
}
private void dealExpandClazzOrderInfo(Map<String, Object> msgMap) {
Long studentId = MapUtils.getLong(msgMap, "userId");
OrderProductServiceType type = OrderProductServiceType.safeParse(SafeConverter.toString(msgMap.get("serviceType")));
if (clazzExpandSellService.getExpandClazzList().contains(type)) {
clazzExpandSellService.addUsedStudentOrderInfo(studentId, type.name());
}
}
}
|
[
"wangahai@300.cn"
] |
wangahai@300.cn
|
33f405b6105ce4682a0340f154c681f6454cbbfe
|
cb924dd72b0ff66490b77d8a787e4a91f650d3dd
|
/app/src/main/java/vn/com/vnpt/vinaphone/vnptsoftware/qlvbdhcaobang/model/pojo/model/NumberCountDocument.java
|
a967dc113fc69172259d0207b56a47341a4e0902
|
[] |
no_license
|
minhdn7/mic_tap_doan_2
|
63d688fee53b275be8d796f9f85694993d20a320
|
593206e3b86f7450e8f039b2923ac161bda2b117
|
refs/heads/master
| 2020-04-10T04:36:47.564430
| 2018-12-07T09:42:01
| 2018-12-07T09:42:01
| 160,803,159
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,434
|
java
|
package vn.com.vnpt.vinaphone.vnptsoftware.qlvbdhcaobang.model.pojo.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
/**
* Created by linhl on 10/25/2018.
*/
public class NumberCountDocument {
@Expose
@Getter
@Setter
@SerializedName("data")
public Data data;
@Expose
@Getter
@Setter
@SerializedName("status")
public Status status;
public static class Data {
@Expose
@Getter
@Setter
@SerializedName("vanBanChoPheDuyet")
public int vanBanChoPheDuyet;
@Expose
@Getter @Setter
@SerializedName("danhDau")
public int danhDau;
@Expose
@Getter @Setter
@SerializedName("xemDeBiet")
public int xemDeBiet;
@Expose
@Getter @Setter
@SerializedName("vanBanDenChoXuLy")
public int vanBanDenChoXuLy;
@Expose
@Getter @Setter
@SerializedName("vanBanDen")
public int vanBanDen;
@Expose
@Getter @Setter
@SerializedName("vanBanDi")
public int vanBanDi;
}
public static class Status {
@Expose
@Getter @Setter
@SerializedName("message")
public String message;
@Expose
@Getter @Setter
@SerializedName("code")
public String code;
}
}
|
[
"minhdn231@gmail.com"
] |
minhdn231@gmail.com
|
880eec33c08e121bd6957346a82fa89144519156
|
9cd0ee3863fd6b93d359f34c04ae7fb3c35e5228
|
/src/main/java/com/anggaari/converter/xml/Task.java
|
9ab9b75b4227741a7cad6a20210ca729d3771196
|
[] |
no_license
|
anggadarkprince/java-retrofit2
|
91ceb8ff8f4545cbb8b0c9ac875298ad8db163c1
|
b7fd33013409cf2d80fb4fef21a0bdc27ba549f0
|
refs/heads/main
| 2023-07-01T08:44:45.647767
| 2021-08-06T07:41:37
| 2021-08-06T07:41:37
| 389,013,974
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 492
|
java
|
package com.anggaari.converter.xml;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "task")
public class Task {
@XmlElement(name = "id")
public long id;
@XmlElement(name = "title")
public String title;
@XmlElement(name = "description")
public String description;
@XmlAttribute(required = false)
public String link;
public Task() {}
}
|
[
"anggadarkprince@gmail.com"
] |
anggadarkprince@gmail.com
|
2b775e766661011c4bacc836b06426b219d1e8da
|
d7104de316586bf00a072d127960067af4133682
|
/OcavaCore/src/test/java/com/ocadotechnology/maths/CubicRootFinderTest.java
|
464bd05dc4278d5ea9aa119e05daf5705b1a1de8
|
[
"Apache-2.0"
] |
permissive
|
mfijas/Ocava
|
401d0841e9039d144c0c17b10b541dbdf597c2ea
|
ee97522a78d14aa4afb493b6e58ed6ece03da104
|
refs/heads/master
| 2020-08-01T09:08:28.614930
| 2019-09-06T09:44:10
| 2019-09-06T09:44:10
| 210,944,443
| 0
| 0
|
Apache-2.0
| 2019-09-25T21:33:35
| 2019-09-25T21:33:35
| null |
UTF-8
|
Java
| false
| false
| 3,013
|
java
|
/*
* Copyright © 2017 Ocado (Ocava)
*
* 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.ocadotechnology.maths;
import static com.ocadotechnology.maths.PolynomialRootUtilsTest.assertEquals;
import org.apache.commons.math.complex.Complex;
import org.junit.jupiter.api.Test;
import com.google.common.collect.ImmutableList;
import com.ocadotechnology.testing.UtilityClassTest;
import com.ocadotechnology.wrappers.Pair;
class CubicRootFinderTest implements UtilityClassTest {
@Override
public Class<?> getTestSubject() {
return CubicRootFinder.class;
}
@Test
void find_whenAllThreeRootsAreReal_thenReturnsCorrectRoots() {
ImmutableList<Complex> roots = CubicRootFinder.find(2, -4, -22, 24);
ImmutableList<Pair<Double, Double>> expectedRoots = ImmutableList.of(
Pair.of(4.0, 0.0),
Pair.of(1.0, 0.0),
Pair.of(-3.0, 0.0)
);
assertEquals(expectedRoots, roots);
}
@Test
void find_whenAllRootsAreRealAndEqual_thenReturnsCorrectRoots() {
ImmutableList<Complex> roots = CubicRootFinder.find(1, 6, 12, 8);
ImmutableList<Pair<Double, Double>> expectedRoots = ImmutableList.of(
Pair.of(-2.0, 0.0),
Pair.of(-2.0, 0.0),
Pair.of(-2.0, 0.0)
);
assertEquals(expectedRoots, roots);
}
@Test
void find_whenOnlyOneRootIsReal_thenReturnsCorrectRoots() {
ImmutableList<Complex> roots = CubicRootFinder.find(3, -10, 14, 27);
ImmutableList<Pair<Double, Double>> expectedRoots = ImmutableList.of(
Pair.of(-1.0, 0.0),
Pair.of(2.1667, 2.075),
Pair.of(2.1667, -2.075)
);
assertEquals(expectedRoots, roots);
}
@Test
void find_whenGivenQuadraticEquation_thenReturnsCorrectRoots() {
ImmutableList<Complex> roots = CubicRootFinder.find(0, 1, 2, 1);
ImmutableList<Pair<Double, Double>> expectedRoots = ImmutableList.of(
Pair.of(-1.0, 0.0),
Pair.of(-1.0, 0.0)
);
assertEquals(expectedRoots, roots);
}
@Test
void find_whenGivenLinearEquation_thenReturnsCorrectRoot() {
ImmutableList<Complex> roots = CubicRootFinder.find(0, 0, 2, 1);
ImmutableList<Pair<Double, Double>> expectedRoots = ImmutableList.of(
Pair.of(-0.5, 0.0)
);
assertEquals(expectedRoots, roots);
}
}
|
[
"colin.janke@ocado.com"
] |
colin.janke@ocado.com
|
890eed062db505ef18f10aa20b158213290a17c7
|
80499b84c03b20d7dc31360de06bc907a3342862
|
/src/main/java/cz/hartrik/sg2/world/element/fluid/SaltWaterC.java
|
9f89d758883d52079ba2448717d3e386bd7092fe
|
[] |
no_license
|
Hartrik/Sand-Game-2
|
4d3888af1f6f28e4189debba0abd26816c4328fb
|
731977b1b01dc1a3d02eecb019fc123c71042952
|
refs/heads/master
| 2023-02-04T06:56:09.331492
| 2023-01-31T21:51:52
| 2023-01-31T21:51:52
| 41,304,758
| 16
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 850
|
java
|
package cz.hartrik.sg2.world.element.fluid;
import cz.hartrik.common.Color;
import cz.hartrik.sg2.random.Chance;
import java.util.function.Supplier;
/**
* Představuje slanou vodu s proměnlivou barvou - rychle se střídající podobné
* barvy trochu vyruší statický efekt.
*
* @version 2016-06-17
* @author Patrik Harag
*/
public class SaltWaterC extends SaltWater {
private static final long serialVersionUID = 83715083867368_02_070L;
private final Supplier<Color> colorSupplier;
public SaltWaterC(Supplier<Color> supplier, int density, Chance chance) {
super(Color.BLACK, density, chance);
this.colorSupplier = supplier;
}
@Override
public Color getColor() {
return colorSupplier.get();
}
public Supplier<Color> getColorSupplier() {
return colorSupplier;
}
}
|
[
"patrikharag@gmail.com"
] |
patrikharag@gmail.com
|
77810594ea291f880039795d2f708a6fb69d35fd
|
5cd2e63e7dce9129955da7de2d08510a80c53081
|
/src/Ali/aastudy/week3/switchStatement.java
|
fcf8f8c46df3f89921a8476a33547a4459bd1717
|
[] |
no_license
|
taydin-ra/classScanner
|
b344e40b9be574ac9821c443bc7a228d1d4ca6e7
|
587f3c3e17f55e1af514103b1f11a481c23a3abc
|
refs/heads/master
| 2022-07-28T14:56:14.809004
| 2020-05-20T05:01:05
| 2020-05-20T05:01:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,508
|
java
|
package Ali.aastudy.week3;
import java.util.ArrayList;
import java.util.Scanner;
public class switchStatement {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
ArrayList<String> a = new ArrayList<>();
int counter = 0;
while(scan.hasNext()){
a.add(scan.nextLine());
counter++;
if(counter==10){
break;
}
}
System.out.println(a);
/*
Create Scanner then int number whichMonth
if the number is 1
print month is January
if the number is 2
print month is February
if the number is 3
print month is March
if the number is 4
print month is April
if the number is 5
print month is May
if the number is 6
print month is June
*/
Scanner sca = new Scanner(System.in);
// int num=sca.nextInt();
//
// switch(num)
// {
// case 1:
// System.out.println("Month is January");
// break;
// case 2:
// System.out.println("Month is February");
// break;
// case 3:
// System.out.println("Month is March");
// break;
// case 4:
// System.out.println("Month is April");
// break;
// case 5:
// System.out.println("Month is May");
//
// case 6:
// System.out.println("Month is June");
//
// default:
// System.out.println("Number is not valid ");
// }
/*
TASK 2
char grade = 'C';
switch(grade) {
case 'A' :
System.out.println("Excellent!");
break;
case 'B' :
case 'C' :
System.out.println("Well done");
break;
case 'D' :
System.out.println("You passed");
case 'F' :
System.out.println("Better try again");
break;
default :
System.out.println("Invalid grade");
}
*/
/* TASK 3
Number of sibling
Create one number enter how many siblings do you have
if the number 0
print you dont have any sibling
if the number 1
print you have one sibling
if the number 2
print you have 2 sibling
if the number 3
print you have three sibling
else
print you have a lot of siblings
DO THIS TASK WITH SWITCH STATEMENT
*/
// TASK 3
// int num=sca.nextInt();
// switch(num) {
// case 0:
// System.out.println("you dont have any sibling");
// break;
// case 1:
// System.out.println("you have one sibling");
// break;
// case 2:
// System.out.println("you have 2 sibling");
// break;
// case 3:
// System.out.println("you have three sibling");
// break;
// default:
// System.out.println("you have a lot of siblings");
// }
/*
TASK 4
Create byte age
if the age is 1
print you can crawl
if the age is 2
print you can talk
if the age is 3
print you can walk
if the age is 4
print you should have some vaccines
if the age is 5
print you can start reading
else go to school
DO THIS WITH SWITCH STATEMENT
*/
/*
Create one String whereYouLive
if where you live is equals to "US"
print you live in United States
if where you live is equals to "BEL"
print you live in Belgium
if where you live is equals to "CAN"
print you live in Canada
if where you live is equals to "DEU"
print you live in Germany
*/
switch("de"){
case "de":
System.out.println("sadsa");
}
}
}
|
[
"makoklu32@gmail.com"
] |
makoklu32@gmail.com
|
1bc8efe389f32d8d1d2827b1f8c67a6704ff6357
|
cbc61ffb33570a1bc55bb1e754510192b0366de2
|
/ole-app/olefs/src/main/java/org/kuali/ole/gl/batch/service/impl/BatchFileServiceImpl.java
|
9173760df9c01250e54d005cff8d945e346c29d3
|
[
"ECL-2.0"
] |
permissive
|
VU-libtech/OLE-INST
|
42b3656d145a50deeb22f496f6f430f1d55283cb
|
9f5efae4dfaf810fa671c6ac6670a6051303b43d
|
refs/heads/master
| 2021-07-08T11:01:19.692655
| 2015-05-15T14:40:50
| 2015-05-15T14:40:50
| 24,459,494
| 1
| 0
|
ECL-2.0
| 2021-04-26T17:01:11
| 2014-09-25T13:40:33
|
Java
|
UTF-8
|
Java
| false
| false
| 1,296
|
java
|
/*
* Copyright 2006-2009 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kuali.ole.gl.batch.service.impl;
import java.util.Date;
import org.kuali.ole.gl.batch.service.BatchFileService;
import org.kuali.ole.sys.context.SpringContext;
import org.kuali.rice.core.api.datetime.DateTimeService;
/**
* A general use implementation of BatchFileServiceImpl
*/
public class BatchFileServiceImpl implements BatchFileService {
public String addTimeInfoToFilename(String fileName, Date timeInfo){
DateTimeService dateTimeService = SpringContext.getBean(DateTimeService.class);
String formattedDate = dateTimeService.toDateTimeStringForFilename(timeInfo);
return fileName + "." + formattedDate;
}
}
|
[
"david.lacy@villanova.edu"
] |
david.lacy@villanova.edu
|
abbcb8e84334550d769aa41ad720fcf42ef3f857
|
e46900bb355977257591c4f0d2b2aa94fc428790
|
/sensitive-core/src/main/java/com/github/houbb/sensitive/core/util/ReflectionUtil.java
|
6c6130c43dee03abcb3561b5e84fcacb4f652f78
|
[
"Apache-2.0"
] |
permissive
|
yajxh/sensitive
|
37f6383ab131d16b4390f18924332a7ab845218c
|
b0ef9fda80761027b4be511237f8d0e0afc68af9
|
refs/heads/master
| 2020-04-15T15:25:33.264650
| 2019-01-03T02:00:07
| 2019-01-03T02:00:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,808
|
java
|
package com.github.houbb.sensitive.core.util;
import java.lang.reflect.Field;
import java.util.*;
/**
* 反射工具类
* @author binbin.hou
* date 2018/12/29
*/
public final class ReflectionUtil {
private ReflectionUtil(){}
/**
* 获取所有对象字段
* @param object 对象
* @return 字段列表
*/
public static List<Field> getAllFieldList(final Object object) {
if(null == object) {
return Collections.emptyList();
}
final Class clazz = object.getClass();
return getAllFieldList(clazz);
}
/**
* 获取类所有的字段信息
* ps: 这个方法有个问题 如果子类和父类有相同的字段 会不会重复
* 1. 还会获取到 serialVersionUID 这个字段。
* @param clazz 类
* @return 字段列表
*/
public static List<Field> getAllFieldList(final Class clazz) {
List<Field> fieldList = new ArrayList<>() ;
Class tempClass = clazz;
while (tempClass != null) {
fieldList.addAll(Arrays.asList(tempClass.getDeclaredFields()));
tempClass = tempClass.getSuperclass();
}
for(Field field : fieldList) {
field.setAccessible(true);
}
return fieldList;
}
/**
* 获取一个对象的所有字段 map
* @param object 对象
* @return map key 是属性的名字,value 是 field
*/
public static Map<String, Field> getAllFieldMap(final Object object) {
List<Field> fieldList = getAllFieldList(object);
Map<String, Field> map = new HashMap<>(fieldList.size());
for(Field field : fieldList) {
final String fieldName = field.getName();
map.put(fieldName, field);
}
return map;
}
}
|
[
"1060732496@qq.com"
] |
1060732496@qq.com
|
e603b116a17822ca241867aa74ec81d40281242b
|
217b37b1935b039001daca10a2d068787fb806b9
|
/titan-test-jar/src/main/java/com/titan/clients/GroupByHaving.java
|
eff88c61df4728e1423050a8ee25f08bdc8f1863
|
[
"Apache-2.0"
] |
permissive
|
java-tools/scannotation
|
b9e855f2b48194c4231987448550f61c3fb70638
|
71341b3ec8815c311f9e33094291538bea4bcb6c
|
refs/heads/master
| 2021-05-27T00:32:49.045171
| 2013-06-16T03:58:17
| 2013-06-16T03:58:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,503
|
java
|
package com.titan.clients;
import com.titan.domain.*;
import java.util.*;
import javax.persistence.*;
public class GroupByHaving
{
public static void main(String[] args) throws Exception
{
HashMap map = new HashMap();
//map.put("hibernate.show_sql", "true");
EntityManagerFactory factory =
Persistence.createEntityManagerFactory("titan", map);
EntityManager entityManager = factory.createEntityManager();
entityManager.getTransaction().begin();
try
{
System.out.println("Initialize DB");
InitializeDB.initialize(entityManager);
System.out.println();
System.out.println();
groupBy(entityManager);
having(entityManager);
entityManager.getTransaction().commit();
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
entityManager.close();
factory.close();
}
}
public static void groupBy(EntityManager manager)
{
System.out.println("GROUP BY Clause");
System.out.println("--------------------------------");
System.out.println("SELECT new com.titan.clients.ReservationSummary(" +
"cr.name, COUNT(res), SUM(res.amountPaid))");
System.out.println("FROM Cruise cr");
System.out.println("LEFT JOIN cr.reservations res");
System.out.println("GROUP BY cr.name");
Query query;
query = manager.createQuery("SELECT new com.titan.clients.ReservationSummary(" +
"cr.name, COUNT(res), SUM(res.amountPaid)) " +
"FROM Cruise cr " +
"LEFT JOIN cr.reservations res " +
"GROUP BY cr.name");
List summaries = query.getResultList();
Iterator it = summaries.iterator();
while (it.hasNext())
{
ReservationSummary summary = (ReservationSummary)it.next();
System.out.println(" " + summary.cruise + ": "
+ summary.numReservations + " " +
+ summary.cashflow);
}
}
public static void having(EntityManager manager)
{
System.out.println("GROUP BY Clause");
System.out.println("--------------------------------");
System.out.println("SELECT new com.titan.clients.ReservationSummary(" +
"cr.name, COUNT(res), SUM(res.amountPaid))");
System.out.println("FROM Cruise cr");
System.out.println("LEFT JOIN cr.reservations res");
System.out.println("GROUP BY cr.name");
System.out.println("HAVING count(res) > 1");
Query query;
query = manager.createQuery("SELECT new com.titan.clients.ReservationSummary(" +
"cr.name, COUNT(res), SUM(res.amountPaid)) " +
"FROM Cruise cr " +
"LEFT JOIN cr.reservations res " +
"GROUP BY cr.name " +
"HAVING count(res) > 1");
List summaries = query.getResultList();
Iterator it = summaries.iterator();
while (it.hasNext())
{
ReservationSummary summary = (ReservationSummary)it.next();
System.out.println(" " + summary.cruise + ": "
+ summary.numReservations + " " +
+ summary.cashflow);
}
}
}
|
[
"srbala@gmail.com"
] |
srbala@gmail.com
|
e694ff20ac1213499c3bfaa311df8eb1157a5dc7
|
727cebcda6c1811694af4096e7c5775a96713f77
|
/app/src/main/java/com/jusfoun/jusfouninquire/ui/activity/DishonestResultActivity.java
|
a9748b8cb1c7180a1251140c66f34c32cf3a41f6
|
[] |
no_license
|
JusofunAppMobile/QuanNengBaoAndroid
|
967a983ac29830d00e898561b67b3e0ac272fed0
|
4355fec57ff1c274581c36f788ebc09a3329cb9f
|
refs/heads/master
| 2020-04-13T11:00:14.493442
| 2018-12-26T09:42:11
| 2018-12-26T09:42:11
| 163,160,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,889
|
java
|
package com.jusfoun.jusfouninquire.ui.activity;
import android.graphics.Typeface;
import android.support.v4.widget.DrawerLayout;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.jusfoun.jusfouninquire.R;
import com.jusfoun.jusfouninquire.net.callback.NetWorkCallBack;
import com.jusfoun.jusfouninquire.net.model.FilterModel;
import com.jusfoun.jusfouninquire.net.model.SearchDisHonestModel;
import com.jusfoun.jusfouninquire.net.route.SearchRoute;
import com.jusfoun.jusfouninquire.net.util.TouchUtil;
import com.jusfoun.jusfouninquire.service.event.DishonestResultEvent;
import com.jusfoun.jusfouninquire.sharedpreference.LoginSharePreference;
import com.jusfoun.jusfouninquire.ui.adapter.DishonestAdapter;
import com.jusfoun.jusfouninquire.ui.util.PhoneUtil;
import com.jusfoun.jusfouninquire.ui.view.FilterDrawerView;
import com.jusfoun.jusfouninquire.ui.widget.SearchViewPager;
import java.util.HashMap;
import de.greenrobot.event.EventBus;
/**
* Author wangchenchen
* CreateDate 2016/8/31.
* Email wcc@jusfoun.com
* Description 失信搜索结果页
*/
public class DishonestResultActivity extends BaseInquireActivity implements View.OnClickListener {
public static final String SEARCHKEY="searchkey";
public static final String MODEL="model";
protected ImageView imgBack;
protected TextView editSearch;
protected TextView all;
protected TextView person;
protected TextView company;
protected TextView filter;
protected ImageView clear;
private DishonestAdapter adapter;
private SearchViewPager viewPager;
private FilterDrawerView filterDrawerView;
private DrawerLayout drawerLayout;
private HashMap<String,String> params=new HashMap<>();
private String searchkey;
private SearchDisHonestModel model;
@Override
protected void initData() {
super.initData();
searchkey=getIntent().getStringExtra(SEARCHKEY);
searchkey=searchkey==null?"":searchkey;
model= (SearchDisHonestModel) getIntent().getSerializableExtra(MODEL);
}
@Override
protected void initView() {
setContentView(R.layout.activity_dishonest_result);
imgBack = (ImageView) findViewById(R.id.img_back);
clear = (ImageView) findViewById(R.id.clear);
editSearch = (TextView) findViewById(R.id.edit_search);
all = (TextView) findViewById(R.id.all);
person = (TextView) findViewById(R.id.person);
company = (TextView) findViewById(R.id.company);
filter = (TextView) findViewById(R.id.filter);
viewPager= (SearchViewPager) findViewById(R.id.viewpager);
filterDrawerView= (FilterDrawerView) findViewById(R.id.filter_drawer);
drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
}
@Override
protected void initWidgetActions() {
editSearch.setOnClickListener(DishonestResultActivity.this);
all.setOnClickListener(DishonestResultActivity.this);
person.setOnClickListener(DishonestResultActivity.this);
imgBack.setOnClickListener(DishonestResultActivity.this);
company.setOnClickListener(DishonestResultActivity.this);
clear.setOnClickListener(this);
filter.setOnClickListener(this);
TouchUtil.createTouchDelegate(clear, PhoneUtil.dip2px(mContext,50));
TouchUtil.createTouchDelegate(imgBack, PhoneUtil.dip2px(mContext,50));
editSearch.setText(searchkey);
adapter=new DishonestAdapter(getSupportFragmentManager(),searchkey,model);
viewPager.setmNotTouchScoll(true);
viewPager.setAdapter(adapter);
viewPager.setOffscreenPageLimit(3);
initTitleColor();
// all.setTextColor(getResources().getColor(R.color.search_name_color));
viewPager.setCurrentItem(0);
drawerLayout.closeDrawer(filterDrawerView);
filterNet();
filterDrawerView.setParams(params);
filterDrawerView.setListener(new FilterDrawerView.SearchSureListener() {
@Override
public void onSure() {
drawerLayout.closeDrawer(filterDrawerView);
DishonestResultEvent event=new DishonestResultEvent();
event.setParams(params);
event.setPosition(viewPager.getCurrentItem());
EventBus.getDefault().post(event);
}
});
}
private void initTitleColor(){
// all.setTextColor(getResources().getColor(R.color.black));
// person.setTextColor(getResources().getColor(R.color.black));
// company.setTextColor(getResources().getColor(R.color.black));
setSelect(all, true);
}
private void setSelect(TextView textView, boolean select) {
textView.setSelected(select);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, select ? 16 : 14);
textView.setTypeface(select ? Typeface.defaultFromStyle(Typeface.BOLD) : Typeface.defaultFromStyle(Typeface.NORMAL));
}
@Override
public void onClick(View view) {
if (view.getId() == R.id.img_back) {
setResult(SearchDishonestActivity.RESULT_FINISH);
onBackPressed();
} else if (view.getId() == R.id.edit_search) {
} else if (view.getId() == R.id.layout_search) {
} else if (view.getId() == R.id.all) {
initTitleColor();
setSelect(all, true);
setSelect(person, false);
setSelect(company, false);
// all.setTextColor(getResources().getColor(R.color.search_name_color));
viewPager.setCurrentItem(0);
} else if (view.getId() == R.id.person) {
initTitleColor();
setSelect(all, false);
setSelect(person, true);
setSelect(company, false);
// person.setTextColor(getResources().getColor(R.color.search_name_color));
viewPager.setCurrentItem(1);
} else if (view.getId() == R.id.company) {
initTitleColor();
setSelect(all, false);
setSelect(person, false);
setSelect(company, true);
// company.setTextColor(getResources().getColor(R.color.search_name_color));
viewPager.setCurrentItem(2);
}else if (view.getId()==R.id.filter){
if (drawerLayout.isDrawerOpen(filterDrawerView))
drawerLayout.closeDrawer(filterDrawerView);
else
drawerLayout.openDrawer(filterDrawerView);
}else if (view.getId()==R.id.clear){
setResult(SearchDishonestActivity.RESULT_CLEAR);
onBackPressed();
}
}
private void filterNet() {
HashMap<String, String> params = new HashMap<>();
if (LoginSharePreference.getUserInfo(mContext) != null
&& !TextUtils.isEmpty(LoginSharePreference.getUserInfo(mContext).getUserid())) {
params.put("userid", LoginSharePreference.getUserInfo(mContext).getUserid());
} else {
params.put("userid", "");
}
SearchRoute.getDisFilter(this, params, this.getLocalClassName(), new NetWorkCallBack() {
@Override
public void onSuccess(Object data) {
FilterModel model= (FilterModel) data;
if (model.getResult()==0){
filterDrawerView.setData(model,false);
}else {
// showToast(model.getMsg());
}
}
@Override
public void onFail(String error) {
// showToast(error);
}
});
}
}
|
[
"515376293@qq.com"
] |
515376293@qq.com
|
82aa5f5c955b2cd26da1e60c3f91dc67d2bfaa5a
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava3/Foo808.java
|
e097b353aa5734cc8da2d70ca34f9ad5ac482ada
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 575
|
java
|
package applicationModulepackageJava3;
public class Foo808 {
public void foo0() {
final Runnable anything0 = () -> System.out.println("anything");
new applicationModulepackageJava3.Foo807().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
public void foo9() {
foo8();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
b81b7ee4b80d7ef8a5c6df71cff283e884b8aa8d
|
ad63e7b98d35b531c2c6fff312c2e0d9ba648abc
|
/ProjectOS 2013/src/server/game/players/packets/ReportHandler.java
|
41cb663d600b779a205cb432b78550b71c9a7cd5
|
[] |
no_license
|
SiF2/Project_PS
|
16981e3442b2421e6ec8393a0a2901bf91ebc242
|
76b850be612437e4cbb779f6957463b8895bd4a6
|
refs/heads/master
| 2021-01-10T15:45:05.329769
| 2013-03-05T21:48:16
| 2013-03-05T21:48:16
| 8,542,662
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,709
|
java
|
package server.game.players.packets;
import server.Connection;
import server.game.players.Client;
import server.util.Misc;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ReportHandler {
public static String[] savedNames = new String[500];
public static String[] savedSpeach = new String[500];
public static String[] savedTimes = new String[500];
/**
* Reports
*/
public static final String[] reportNames = {
"Offensive language",
"Item scamming", "Password scamming", "Bug abuse",
"Staff impersonation", "Account Sharing/Trading", "Macroing", "Multiple Logging in",
"Encouragig others to break the rules", "Misuse of Customer Support",
"Advertising", "Real World Trading", "Asking for personal detail"
};
/**
* Adding texts
*
* @param name The player's name.
* @param data The data.
* @param dataLength The data's length.
*/
public static void addText(String name, byte[] data, int dataLength) {
for (int i = 499; i > 0; i--) {
savedNames[i] = savedNames[i - 1];
savedSpeach[i] = savedSpeach[i - 1];
savedTimes[i] = savedTimes[i - 1];
}
savedNames[0] = name;
savedSpeach[0] = Misc.textUnpack(data, dataLength);
String minute = new SimpleDateFormat("mm").format(new Date());
String second = new SimpleDateFormat("ss").format(new Date());
String hour = new SimpleDateFormat("hh").format(new Date());
savedTimes[0] = hour + ":" + minute + ":" + second;
}
/**
* Report Handler
* @param c Client x
* @throws Exception ex
*/
public static void handleReport(Client c) throws Exception {
String player = Misc.longToReportPlayerName(c.inStream.readQWord2());
player = player.replaceAll("_", " ");
byte rule = (byte) c.inStream.readUnsignedByte();
int mute = c.getInStream().readUnsignedByte();
if (c.lastReported.equalsIgnoreCase(player)
&& (System.currentTimeMillis() - c.lastReport) < 60000) {
c.sendMessage("You can only report a player once every 60 seconds.");
return;
}
if (c.playerName.equalsIgnoreCase(player)) {
c.sendMessage("You cannot report yourself!");
return;
}
if (hasSpoke(player)) {
String sendText = "";
for (int i = 20; i > 0; i--) {
if (savedNames[i] != null) {
if (savedNames[i].equalsIgnoreCase(c.playerName)
|| savedNames[i].equalsIgnoreCase(player)) {
sendText += " -[" + savedTimes[i] + ": "
+ savedNames[i] + "]: " + savedSpeach[i]
+ "\r\n";
}
}
}
sendText = sendText.replaceAll("'", " ");
String month = getMonth(new SimpleDateFormat("MM").format(new Date()));
String day = new SimpleDateFormat("dd").format(new Date());
writeReport(player + " was reported by " + c.playerName + ", "
+ reportNames[rule] + ", " + month + ", " + day + "",
sendText + ".", reportNames[rule]);
c.sendMessage("Thank you, your report has been received and will be reviewed.");
if (mute == 1 && c.playerRights > 0) {
Connection.addNameToMuteList(player);
c.sendMessage("The player has been muted for 72 hours, misusing this will result in a ban.");
}
c.lastReported = player;
c.lastReport = System.currentTimeMillis();
} else {
c.sendMessage("You can only report someone who has spoken in the last 60 seconds.");
}
}
/**
* Saves Reports to System
*
* @param data The data.
* @param text The text.
* @param file The file.
*
*/
public static void writeReport(String data, String text, String file) {
BufferedWriter bw = null;
try {
bw = new BufferedWriter(new FileWriter("./data/logs/Report Center/" + file + ".txt", true));
bw.write(data);
bw.newLine();
bw.write(text);
bw.newLine();
bw.newLine();
bw.flush();
} catch (IOException ioe) {
ioe.printStackTrace();
} finally {
if (bw != null)
try {
bw.close();
} catch (IOException ioe2) {
System.out.println("Error writing system log.");
ioe2.printStackTrace();
}
}
}
public static boolean hasSpoke(String s) {
for (int i = 0; i < 500; i++) {
if (savedNames[i] != null) {
if (savedNames[i].equalsIgnoreCase(s))
return true;
}
}
return false;
}
/**
* Gets the Month
*
* @param s The s.
* @return return
*/
public static String getMonth(String s) {
try {
int i = Integer.parseInt(s);
String[] months = {
"", "January", "February", "March", "April",
"May", "June", "July", "August", "September", "October",
"November", "December"
};
return months[i];
} catch (Exception e) {
e.printStackTrace();
}
return "Unknown";
}
}
|
[
"killi05@hotmail.com"
] |
killi05@hotmail.com
|
ad665cc38833b67951e969300d2b9f12689bbfd1
|
471e6b055d50812fc5fd33972aa7929575cde990
|
/pay_pal_microservice/PayPalMicroservice/src/main/java/com/rmj/PayPalMicroservice/exception/AlreadyExistsException.java
|
40c4360b4edc0ed8917bdda9f8375f5d60465531
|
[] |
no_license
|
jovosunjka/PaymentConcentrator
|
a238e937e89d30e8b32919f4ac165ad960b5a61b
|
b0856f428c582e9e95b67d47795c011ee9baf808
|
refs/heads/master
| 2023-01-24T08:35:06.737256
| 2020-02-20T16:36:27
| 2020-02-20T16:36:27
| 223,024,597
| 0
| 0
| null | 2023-01-09T18:07:04
| 2019-11-20T20:47:35
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 240
|
java
|
package com.rmj.PayPalMicroservice.exception;
public class AlreadyExistsException extends RuntimeException {
public AlreadyExistsException() {
}
public AlreadyExistsException(String message) {
super(message);
}
}
|
[
"sunjkajovo@gmail.com"
] |
sunjkajovo@gmail.com
|
7fcb6c2391c71def3b9c87749a7c9f15ee15fd05
|
57e8247a8974f1eec0516ac7e17d3d62c0cafc76
|
/Apatar/plugins/connectors/salesforcecom/src/com/apatar/salesforcecom/ws/QueryOptions.java
|
2709f49fc74de9f989ec97afb7f03df033223ad8
|
[] |
no_license
|
vagvaz/Leads-QueryProcessor
|
6c3132313ead06323a9573fc4409faaa3798291a
|
920d65ec55d44fbf2fde278fe17172e8eb88d002
|
refs/heads/master
| 2020-05-07T21:47:03.854677
| 2014-10-05T17:13:44
| 2014-10-05T17:13:44
| 24,820,445
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,563
|
java
|
/**
* QueryOptions.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.apatar.salesforcecom.ws;
public class QueryOptions implements java.io.Serializable {
private java.lang.Integer batchSize;
public QueryOptions() {
}
public QueryOptions(
java.lang.Integer batchSize) {
this.batchSize = batchSize;
}
/**
* Gets the batchSize value for this QueryOptions.
*
* @return batchSize
*/
public java.lang.Integer getBatchSize() {
return batchSize;
}
/**
* Sets the batchSize value for this QueryOptions.
*
* @param batchSize
*/
public void setBatchSize(java.lang.Integer batchSize) {
this.batchSize = batchSize;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof QueryOptions)) return false;
QueryOptions other = (QueryOptions) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.batchSize==null && other.getBatchSize()==null) ||
(this.batchSize!=null &&
this.batchSize.equals(other.getBatchSize())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getBatchSize() != null) {
_hashCode += getBatchSize().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(QueryOptions.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">QueryOptions"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("batchSize");
elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "batchSize"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"vagvaz@gmail.com"
] |
vagvaz@gmail.com
|
38a25bece209144ddcf1b88ee897ca3f28725886
|
f09e549c92dfebe1fb467575916ed56e6a6e327e
|
/snap/src/main/java/org/snapscript/compile/assemble/EvaluationBuilder.java
|
64ccc814473ebc212b3af7395223376397dbc86e
|
[] |
no_license
|
karino2/FileScripting
|
10e2ff7f5d688a7a107d01f1b36936c00bc4d6ad
|
4790830a22c2effacaaff6b109ced57cb6a5a230
|
refs/heads/master
| 2021-04-27T19:28:23.138720
| 2018-05-04T11:09:18
| 2018-05-04T11:09:18
| 122,357,523
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,164
|
java
|
package org.snapscript.compile.assemble;
import static org.snapscript.core.Reserved.GRAMMAR_FILE;
import static org.snapscript.tree.Instruction.EXPRESSION;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.concurrent.FutureTask;
import org.snapscript.common.Cache;
import org.snapscript.common.LeastRecentlyUsedCache;
import org.snapscript.compile.verify.Verifier;
import org.snapscript.core.Evaluation;
import org.snapscript.core.module.FilePathConverter;
import org.snapscript.core.module.Path;
import org.snapscript.core.module.PathConverter;
import org.snapscript.core.scope.Scope;
import org.snapscript.parse.SyntaxCompiler;
import org.snapscript.parse.SyntaxNode;
import org.snapscript.parse.SyntaxParser;
public class EvaluationBuilder {
private final Cache<String, Evaluation> cache;
private final PathConverter converter;
private final SyntaxCompiler compiler;
private final Assembler assembler;
private final Verifier verifier;
private final Executor executor;
private final int limit;
public EvaluationBuilder(Assembler assembler, Verifier verifier, Executor executor){
this(assembler, verifier, executor, 200);
}
public EvaluationBuilder(Assembler assembler, Verifier verifier, Executor executor, int limit) {
this.cache = new LeastRecentlyUsedCache<String, Evaluation>();
this.compiler = new SyntaxCompiler(GRAMMAR_FILE);
this.converter = new FilePathConverter();
this.assembler = assembler;
this.executor = executor;
this.verifier = verifier;
this.limit = limit;
}
public Evaluation create(Scope scope, String source, String module) throws Exception{
Evaluation evaluation = cache.fetch(source);
if(evaluation == null) {
Executable executable = new Executable(scope, source, module);
FutureTask<Evaluation> task = new FutureTask<Evaluation>(executable);
if(executor != null) {
executor.execute(task); // reduce android stack size using another thread
} else {
task.run();
}
return task.get();
}
return evaluation;
}
private class Executable implements Callable<Evaluation> {
private final String source;
private final String module;
private final Scope scope;
public Executable(Scope scope, String source, String module) {
this.source = source;
this.module = module;
this.scope = scope;
}
@Override
public Evaluation call() throws Exception {
SyntaxParser parser = compiler.compile();
SyntaxNode node = parser.parse(module, source, EXPRESSION.name);
Path path = converter.createPath(module);
Evaluation evaluation = assembler.assemble(node, path);
int length = source.length();
evaluation.define(scope);
evaluation.compile(scope, null);
verifier.verify();
if(length < limit) {
cache.cache(source, evaluation);
}
return evaluation;
}
}
}
|
[
"hogeika2@gmailcom"
] |
hogeika2@gmailcom
|
68ed189338d5822c0661a61f35a0fcf669d22281
|
27d79138dfa98524df761b73bb3922cb435489a4
|
/v1_12_R1/src/main/java/simplepets/brainsynder/nms/v1_12_R1/entities/list/EntityHorsePet.java
|
bce5b68cb3d4594a84817e8a5d17413e50de6374
|
[] |
no_license
|
Hackerjef/SimplePets
|
d22ec3106b0156d59f2c050be26a358bf15c38ce
|
08b1c3d85d75ee1a557eb45be8ac4529b2b9e28d
|
refs/heads/master
| 2023-04-05T01:07:54.414919
| 2021-02-21T04:44:58
| 2021-02-21T04:44:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,456
|
java
|
package simplepets.brainsynder.nms.v1_12_R1.entities.list;
import net.minecraft.server.v1_12_R1.DataWatcher;
import net.minecraft.server.v1_12_R1.DataWatcherObject;
import net.minecraft.server.v1_12_R1.World;
import simple.brainsynder.nbt.StorageTagCompound;
import simplepets.brainsynder.PetCore;
import simplepets.brainsynder.api.Size;
import simplepets.brainsynder.api.entity.passive.IEntityHorsePet;
import simplepets.brainsynder.api.pet.IPet;
import simplepets.brainsynder.nms.v1_12_R1.entities.branch.EntityHorseAbstractPet;
import simplepets.brainsynder.nms.v1_12_R1.utils.DataWatcherWrapper;
import simplepets.brainsynder.player.PetOwner;
import simplepets.brainsynder.wrapper.HorseArmorType;
import simplepets.brainsynder.wrapper.HorseColorType;
import simplepets.brainsynder.wrapper.HorseStyleType;
@Size(width = 1.4F, length = 1.6F)
public class EntityHorsePet extends EntityHorseAbstractPet implements IEntityHorsePet {
private static final DataWatcherObject<Integer> HORSE_VARIANT;
private static final DataWatcherObject<Integer> HORSE_ARMOR;
static {
HORSE_VARIANT = DataWatcher.a(EntityHorsePet.class, DataWatcherWrapper.INT);
HORSE_ARMOR = DataWatcher.a(EntityHorsePet.class, DataWatcherWrapper.INT);
}
public EntityHorsePet(World world) {
super(world);
}
public EntityHorsePet(World world, IPet pet) {
super(world, pet);
}
@Override
protected void registerDatawatchers() {
super.registerDatawatchers();
this.datawatcher.register(HORSE_VARIANT, 0);
this.datawatcher.register(HORSE_ARMOR, 0);
}
private int getVariant() {
return this.datawatcher.get(HORSE_VARIANT);
}
@Override
public HorseStyleType getStyle() {
return HorseStyleType.values()[this.getVariant() >>> 8];
}
@Override
public void setStyle(HorseStyleType style) {
this.datawatcher.set(HORSE_VARIANT, this.getColor().ordinal() & 255 | style.ordinal() << 8);
PetCore.get().getInvLoaders().PET_DATA.update(PetOwner.getPetOwner(getOwner()));
}
@Override
public HorseColorType getColor() {
return HorseColorType.values()[this.getVariant() & 255];
}
@Override
public void setColor(HorseColorType color) {
this.datawatcher.set(HORSE_VARIANT, color.ordinal() & 255 | this.getStyle().ordinal() << 8);
PetCore.get().getInvLoaders().PET_DATA.update(PetOwner.getPetOwner(getOwner()));
}
@Override
public StorageTagCompound asCompound() {
StorageTagCompound object = super.asCompound();
object.setString("armor", getArmor().name());
object.setString("horsecolor", getColor().name());
object.setString("style", getStyle().name());
return object;
}
@Override
public void applyCompound(StorageTagCompound object) {
if (object.hasKey("armor")) setArmor(HorseArmorType.getByName(object.getString("armor")));
if (object.hasKey("color")) setColor(HorseColorType.getByName(object.getString("color")));
if (object.hasKey("style")) setStyle(HorseStyleType.getByName(object.getString("style")));
super.applyCompound(object);
}
@Override
public void setArmor(HorseArmorType a) {
this.datawatcher.set(HORSE_ARMOR, a.ordinal());
}
@Override
public HorseArmorType getArmor() {
return HorseArmorType.values()[datawatcher.get(HORSE_ARMOR)];
}
}
|
[
"briansnyder498@gmail.com"
] |
briansnyder498@gmail.com
|
297f0569c8802ed154f1d12e7f660ce0acc5d916
|
429c9be33131f67c641f224b72b552fc8778395c
|
/src/_04EnumerationsAndAnnotationsExercises/_06CustomEnumAnnotations/Enumeration.java
|
457b079de4e3104e423b38eccc42a2c9ebefd2ae
|
[] |
no_license
|
plamen911/java-oop-advanced
|
afad63f5668f94870c8c853b1c3f1af226f75e65
|
d5e3f4cc40d4a2074e30e1cfd3fce970cb85fd6c
|
refs/heads/master
| 2020-05-26T11:54:50.161150
| 2017-03-31T05:56:54
| 2017-03-31T05:56:54
| 84,996,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 430
|
java
|
package _04EnumerationsAndAnnotationsExercises._06CustomEnumAnnotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by Plamen Markov on 3/26/17.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Enumeration {
String category();
String description();
}
|
[
"1"
] |
1
|
eda30328e04af0f462dea9fc051552c7d746748f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_55aa3b9ffb75ef598b24fd60128ed92e5c87fc50/Game/4_55aa3b9ffb75ef598b24fd60128ed92e5c87fc50_Game_t.java
|
9e7be3be6d5ae588a97ce769ae2afcff8fcc7ca8
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,007
|
java
|
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
import javax.swing.JPanel;
import javax.swing.Timer;
public class Game extends JPanel implements ActionListener {
private static final long serialVersionUID = -36131189042163368L;
private Timer timer;
private boolean[][] cells;
private int CELL_SIZE = 1, FPS = 60, width, height, xSize, ySize;
public Game() {
setDoubleBuffered(true);
setBackground(Color.black);
timer = new Timer(1000 / FPS, this);
timer.start();
}
private void checkDimensions() {
// Figure out the drawing space.
Dimension size = getSize();
Insets insets = getInsets();
int width = size.width - insets.left - insets.right, height = size.height - insets.top - insets.bottom;
int xSize = (int) Math.ceil((double) width / CELL_SIZE), ySize = (int) Math.ceil((double) height / CELL_SIZE);
if (width != this.width || height != this.height) {
this.width = width;
this.height = height;
this.xSize = xSize;
this.ySize = ySize;
cells = new boolean[xSize][ySize];
seedCells();
}
}
private void seedCells() {
Random r = new Random();
for (int x = 0; x < xSize; x++) {
for (int y = 0; y < ySize; y++) {
boolean alive = r.nextBoolean() && r.nextBoolean() && r.nextBoolean();
cells[x][y] = alive;
}
}
}
@Override
public void actionPerformed(ActionEvent arg0) {
repaint();
}
public void paint(Graphics g) {
checkDimensions();
g.setColor(Color.black);
g.fillRect(0, 0, width, height);
paintCells(g);
buildNextGeneration();
Toolkit.getDefaultToolkit().sync();
g.dispose();
}
private void paintCells(Graphics g) {
g.setColor(Color.white);
for (int x = 0; x < xSize; x++) {
for (int y = 0; y < ySize; y++) {
boolean alive = cells[x][y];
if (alive) {
g.fillRect(x * CELL_SIZE, y * CELL_SIZE, CELL_SIZE, CELL_SIZE);
}
}
}
}
private void buildNextGeneration() {
for (int x = 0; x < xSize; x++) {
for (int y = 0; y < ySize; y++) {
cells[x][y] = getNextState(x, y, cells[x][y]);
}
}
}
private boolean getNextState(int x, int y, boolean alive) {
int count = 0;
boolean xm1 = x > 0, xp1 = x + 1 < xSize, ym1 = y > 0, yp1 = y + 1 < ySize;
if (xm1) {
if (ym1 && cells[x - 1][y - 1]) {
count++;
}
if (cells[x - 1][y]) {
count++;
}
if (yp1 && cells[x - 1][y + 1]) {
count++;
}
}
if (xp1) {
if (ym1 && cells[x + 1][y - 1]) {
count++;
}
if (cells[x + 1][y]) {
count++;
}
if (yp1 && cells[x + 1][y + 1]) {
count++;
}
}
if (ym1 && cells[x][y - 1]) {
count++;
}
if (yp1 && cells[x][y + 1]) {
count++;
}
return (alive && (count == 2 || count == 3)) || (!alive && count == 3);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
95b09f53da5b6213057412dbec47c1c45a09e161
|
7dff8a8e5b8faa9d3d708bd9e2d35d6d864d1c19
|
/src/main/java/com/xandersu/readingnotes/imooc/class404_spring_source_code/event_my1/IWeatherListener.java
|
9f2951e5d297e4fca95b21955c4460204beaca45
|
[] |
no_license
|
xandersu/reading-notes
|
e9605e7ce32ea1446e454a085b18bea791dd4a41
|
282f8a1627b7d6eb2caa5f1234facf2c877713fd
|
refs/heads/master
| 2022-06-28T13:21:08.021689
| 2020-09-14T03:42:58
| 2020-09-14T03:42:58
| 173,523,954
| 2
| 0
| null | 2022-06-17T03:02:53
| 2019-03-03T02:54:44
|
Java
|
UTF-8
|
Java
| false
| false
| 255
|
java
|
package com.xandersu.readingnotes.imooc.class404_spring_source_code.event_my1;
/**
* @author: suxun
* @date: 2020/3/15 13:44
* @description:
*/
@FunctionalInterface
public interface IWeatherListener {
void onWeatherEvent(WeatherEvent event);
}
|
[
"840595532@qq.com"
] |
840595532@qq.com
|
79d0f9c865c7ee1076cf92c1a553e7415b2274bc
|
cbc7f5b1f0ec0f07700aedf8f37b1a3fd79fb191
|
/27_septiembre/henryZerda/src/BadParamsDirException.java
|
aac18676e36a0116af784a5a2de58e0521e28d39
|
[] |
no_license
|
henryzrr/arquitectura_software
|
831328f73edfba926471b499897f6b3394804f8e
|
e20ff182bd8ac887540cb94b4aac85df55893cbd
|
refs/heads/master
| 2020-07-09T03:24:41.965384
| 2019-10-07T16:22:29
| 2019-10-07T16:22:29
| 203,859,734
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 139
|
java
|
public class BadParamsDirException extends Exception {
public BadParamsDirException(String message ) {
super(message);
}
}
|
[
"henry.zrz@gmail.com"
] |
henry.zrz@gmail.com
|
6581e33f2236ba34a7cd4a996fa48fa583ab5eb9
|
bd2139703c556050403c10857bde66f688cd9ee6
|
/skara/278/webrev.00/vcs/src/main/java/org/openjdk/skara/vcs/ReadOnlyRepository.java
|
e48b7e06db5e4dda5c7a07d024fe74edcf6092dc
|
[] |
no_license
|
isabella232/cr-archive
|
d03427e6fbc708403dd5882d36371e1b660ec1ac
|
8a3c9ddcfacb32d1a65d7ca084921478362ec2d1
|
refs/heads/master
| 2023-02-01T17:33:44.383410
| 2020-12-17T13:47:48
| 2020-12-17T13:47:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,718
|
java
|
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.skara.vcs;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.charset.StandardCharsets;
import java.util.stream.Collectors;
import java.util.*;
public interface ReadOnlyRepository {
Hash head() throws IOException;
Optional<Branch> currentBranch() throws IOException;
Optional<Bookmark> currentBookmark() throws IOException;
Branch defaultBranch() throws IOException;
List<Branch> branches() throws IOException;
Optional<Tag> defaultTag() throws IOException;
List<Tag> tags() throws IOException;
Commits commits() throws IOException;
Commits commits(int n) throws IOException;
Commits commits(boolean reverse) throws IOException;
Commits commits(int n, boolean reverse) throws IOException;
Commits commits(String range) throws IOException;
Commits commits(String range, boolean reverse) throws IOException;
Commits commits(String range, int n) throws IOException;
Commits commits(String range, int n, boolean reverse) throws IOException;
Optional<Commit> lookup(Hash h) throws IOException;
Optional<Commit> lookup(Branch b) throws IOException;
Optional<Commit> lookup(Tag t) throws IOException;
List<CommitMetadata> commitMetadata() throws IOException;
Path root() throws IOException;
boolean exists() throws IOException;
boolean isHealthy() throws IOException;
boolean isEmpty() throws IOException;
boolean isClean() throws IOException;
Hash mergeBase(Hash first, Hash second) throws IOException;
boolean isAncestor(Hash ancestor, Hash descendant) throws IOException;
Optional<Hash> resolve(String ref) throws IOException;
default Optional<Hash> resolve(Tag t) throws IOException {
return resolve(t.name());
}
default Optional<Hash> resolve(Branch b) throws IOException {
return resolve(b.name());
}
boolean contains(Branch b, Hash h) throws IOException;
Optional<String> username() throws IOException;
Optional<byte[]> show(Path p, Hash h) throws IOException;
default Optional<List<String>> lines(Path p, Hash h) throws IOException {
return show(p, h).map(bytes -> new String(bytes, StandardCharsets.UTF_8).lines().collect(Collectors.toList()));
}
List<FileEntry> files(Hash h, List<Path> paths) throws IOException;
default List<FileEntry> files(Hash h, Path... paths) throws IOException {
return files(h, Arrays.asList(paths));
}
void dump(FileEntry entry, Path to) throws IOException;
List<StatusEntry> status(Hash from, Hash to) throws IOException;
Diff diff(Hash base, Hash head) throws IOException;
Diff diff(Hash base, Hash head, List<Path> files) throws IOException;
Diff diff(Hash head) throws IOException;
Diff diff(Hash head, List<Path> files) throws IOException;
List<String> config(String key) throws IOException;
Repository copyTo(Path destination) throws IOException;
String pullPath(String remote) throws IOException;
String pushPath(String remote) throws IOException;
boolean isValidRevisionRange(String expression) throws IOException;
Optional<String> upstreamFor(Branch branch) throws IOException;
List<Reference> remoteBranches(String remote) throws IOException;
List<String> remotes() throws IOException;
List<Submodule> submodules() throws IOException;
static Optional<ReadOnlyRepository> get(Path p) throws IOException {
return Repository.get(p).map(r -> r);
}
static boolean exists(Path p) throws IOException {
return Repository.exists(p);
}
Optional<Tag.Annotated> annotate(Tag tag) throws IOException;
}
|
[
"duke@openjdk.java.net"
] |
duke@openjdk.java.net
|
12f92d85f71785b35b07963eed82a28196980b5c
|
a35acb0449dfab8dfdf65162a8bb17f07a6ce49a
|
/app/src/main/java/com/example/rathana/dialogfragmentdemo/MainActivity.java
|
5376af4bec16d3aa89aaf29eb47ba8b7512eac87
|
[] |
no_license
|
1st-short-course/custom-alter-dialog
|
988adc4a4af97e398e4c924c92882b50b5570aa6
|
8e0894b0ab7954316e58b167670d228e68aadb85
|
refs/heads/master
| 2020-03-23T01:46:42.041998
| 2018-07-14T10:27:05
| 2018-07-14T10:27:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,534
|
java
|
package com.example.rathana.dialogfragmentdemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.TextView;
import com.example.rathana.dialogfragmentdemo.callback.OnItemClickListener;
import com.example.rathana.dialogfragmentdemo.dialog.AlterDialogFragment;
import com.example.rathana.dialogfragmentdemo.dialog.CustomAlterDialogFagment;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class MainActivity extends AppCompatActivity
implements OnItemClickListener{
@BindView(R.id.btnDialogFragment)
Button btnDialogFragment;
@BindView(R.id.gender)
TextView tvGender;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
}
@OnClick(R.id.btnDialogFragment)
void onButtonDialogFragment(){
new AlterDialogFragment().show(getFragmentManager(),"alter dialog");
}
@OnClick(R.id.btnCustomDialogFragment)
void onCustomAlterDialog(){
new CustomAlterDialogFagment().show(getFragmentManager(),"custom alter dialog");
}
@Override
public void onItemClick(String smg) {
tvGender.setText(smg);
}
@Override
public void onSendObject(User user) {
Log.e(TAG, "onSendObject: "+user.toString() );
}
private static final String TAG = "MainActivity";
}
|
[
"rathanavoy07@gmail.com"
] |
rathanavoy07@gmail.com
|
92a456939d4ec5cebe7448725736791ef3912011
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13916-1-16-FEMO-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/objects/classes/BaseClass_ESTest_scaffolding.java
|
8f3c2cd7ad76271b03ad8a5c11c6ff680505f66e
|
[] |
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
| 7,113
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 03 19:06:39 UTC 2020
*/
package com.xpn.xwiki.objects.classes;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class BaseClass_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 = "com.xpn.xwiki.objects.classes.BaseClass";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
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.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(BaseClass_ESTest_scaffolding.class.getClassLoader() ,
"com.xpn.xwiki.XWikiException",
"org.xwiki.model.reference.EntityReference",
"com.xpn.xwiki.objects.classes.BooleanClass",
"com.xpn.xwiki.objects.classes.UsersClass",
"org.dom4j.tree.DefaultText",
"org.apache.commons.lang3.StringUtils",
"com.xpn.xwiki.objects.BaseCollection",
"org.dom4j.Entity",
"org.dom4j.tree.NamespaceStack",
"org.xwiki.component.manager.CompatibilityComponentManager",
"org.dom4j.tree.AbstractBranch",
"org.apache.ecs.Element",
"org.dom4j.ProcessingInstruction",
"com.xpn.xwiki.objects.classes.ListClass",
"com.xpn.xwiki.objects.LargeStringProperty",
"com.xpn.xwiki.objects.FloatProperty",
"org.dom4j.Namespace",
"com.xpn.xwiki.objects.classes.PropertyClass",
"org.apache.ecs.Filter",
"org.dom4j.tree.AbstractText",
"org.xwiki.component.util.DefaultParameterizedType",
"org.dom4j.tree.AbstractDocument",
"org.dom4j.tree.NamespaceCache",
"com.xpn.xwiki.objects.PropertyInterface",
"org.dom4j.Attribute",
"com.xpn.xwiki.objects.ElementInterface",
"org.dom4j.Document",
"org.dom4j.tree.ConcurrentReaderHashMap",
"org.dom4j.tree.ConcurrentReaderHashMap$Entry",
"com.xpn.xwiki.plugin.query.XWikiQuery",
"org.xwiki.edit.EditException",
"org.xwiki.component.manager.ComponentLookupException",
"org.dom4j.tree.QNameCache",
"com.xpn.xwiki.objects.LongProperty",
"com.xpn.xwiki.doc.merge.MergeConfiguration",
"com.xpn.xwiki.objects.classes.PropertyClassInterface",
"com.xpn.xwiki.objects.classes.StringClass",
"com.xpn.xwiki.objects.meta.PropertyMetaClass",
"org.dom4j.CDATA",
"org.dom4j.IllegalAddException",
"org.dom4j.tree.FlyweightText",
"com.xpn.xwiki.objects.StringProperty",
"org.dom4j.tree.AbstractNode",
"org.apache.ecs.ElementRegistry",
"org.dom4j.tree.ConcurrentReaderHashMap$BarrierLock",
"com.xpn.xwiki.objects.ListProperty",
"org.dom4j.CharacterData",
"org.dom4j.dom.DOMDocumentFactory",
"com.xpn.xwiki.objects.NumberProperty",
"com.xpn.xwiki.objects.DBStringListProperty",
"org.xwiki.model.reference.ClassPropertyReference",
"org.dom4j.NodeFilter",
"org.dom4j.tree.DefaultNamespace",
"com.xpn.xwiki.objects.BaseProperty",
"com.xpn.xwiki.objects.meta.ListMetaClass",
"com.xpn.xwiki.doc.merge.MergeResult",
"com.xpn.xwiki.objects.classes.NumberClass",
"com.xpn.xwiki.objects.meta.DBListMetaClass",
"com.xpn.xwiki.objects.BaseStringProperty",
"org.apache.commons.collections4.comparators.ComparableComparator",
"org.xwiki.model.reference.EntityReferenceResolver",
"org.xwiki.localization.ContextualLocalizationManager",
"org.xwiki.model.reference.DocumentReference",
"com.xpn.xwiki.XWikiContext",
"org.apache.commons.collections4.ComparatorUtils",
"com.xpn.xwiki.doc.XWikiDocument",
"org.dom4j.QName",
"com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface",
"org.xwiki.model.reference.WikiReference",
"com.xpn.xwiki.objects.classes.BaseClass",
"org.dom4j.tree.DefaultElement",
"org.xwiki.bridge.DocumentModelBridge",
"org.dom4j.Node",
"org.dom4j.util.SingletonStrategy",
"com.xpn.xwiki.objects.StringListProperty",
"com.xpn.xwiki.objects.classes.ClassInterface",
"com.xpn.xwiki.objects.meta.MetaClass",
"com.xpn.xwiki.objects.ObjectInterface",
"com.xpn.xwiki.objects.classes.TextAreaClass",
"com.xpn.xwiki.web.Utils",
"com.xpn.xwiki.objects.classes.TextAreaClass$ContentType",
"org.dom4j.DocumentType",
"com.xpn.xwiki.objects.meta.DBTreeListMetaClass",
"org.dom4j.tree.DefaultDocument",
"org.xwiki.model.reference.EntityReferenceSerializer",
"org.dom4j.dom.DOMElement",
"com.xpn.xwiki.objects.DoubleProperty",
"org.xwiki.model.reference.ObjectPropertyReference",
"org.xwiki.component.manager.ComponentManager",
"org.dom4j.util.SimpleSingleton",
"org.dom4j.dom.DOMDocument",
"com.xpn.xwiki.internal.objects.classes.PropertyClassProvider",
"org.xwiki.component.annotation.Component",
"com.xpn.xwiki.objects.classes.TextAreaClass$EditorType",
"org.dom4j.io.XMLWriter",
"org.dom4j.io.OutputFormat",
"com.xpn.xwiki.objects.classes.StaticListClass",
"org.dom4j.dom.DOMNamespace",
"org.dom4j.tree.AbstractElement",
"org.dom4j.DocumentFactory",
"org.dom4j.DocumentException",
"org.xwiki.model.reference.DocumentReferenceResolver",
"org.dom4j.rule.Pattern",
"org.dom4j.Comment",
"org.apache.commons.collections4.comparators.NullComparator",
"com.xpn.xwiki.objects.BaseObject",
"org.dom4j.Branch",
"org.dom4j.Text",
"org.dom4j.tree.AbstractCharacterData",
"com.xpn.xwiki.objects.BaseElement",
"com.xpn.xwiki.objects.CompatibilityObjectInterface",
"org.dom4j.XPath",
"com.xpn.xwiki.objects.IntegerProperty",
"org.dom4j.Element",
"com.xpn.xwiki.plugin.query.XWikiCriteria",
"com.xpn.xwiki.objects.ElementComparator"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
59797e675eb1441795ffc8268e29bf30e248b905
|
3efa417c5668b2e7d1c377c41d976ed31fd26fdc
|
/src/br/com/mind5/business/personLegal/model/action/PeregVisiEnforceLChanged.java
|
a039775c899d23b828a2a1c89d56f49652da3f5b
|
[] |
no_license
|
grazianiborcai/Agenda_WS
|
4b2656716cc49a413636933665d6ad8b821394ef
|
e8815a951f76d498eb3379394a54d2aa1655f779
|
refs/heads/master
| 2023-05-24T19:39:22.215816
| 2023-05-15T15:15:15
| 2023-05-15T15:15:15
| 109,902,084
| 0
| 0
| null | 2022-06-29T19:44:56
| 2017-11-07T23:14:21
|
Java
|
UTF-8
|
Java
| false
| false
| 706
|
java
|
package br.com.mind5.business.personLegal.model.action;
import br.com.mind5.business.personLegal.info.PeregInfo;
import br.com.mind5.business.personLegal.info.PeregSetterLChanged;
import br.com.mind5.info.InfoSetter;
import br.com.mind5.model.action.ActionVisitorTemplateEnforce;
import br.com.mind5.model.decisionTree.DeciTreeOption;
public final class PeregVisiEnforceLChanged extends ActionVisitorTemplateEnforce<PeregInfo> {
public PeregVisiEnforceLChanged(DeciTreeOption<PeregInfo> option) {
super(option);
}
@Override protected PeregInfo enforceHook(PeregInfo recordInfo) {
InfoSetter<PeregInfo> attrSetter = new PeregSetterLChanged();
return attrSetter.setAttr(recordInfo);
}
}
|
[
"mmaciel@mind5.com"
] |
mmaciel@mind5.com
|
af1afe49306ca82a5d5279037ef0911770d66033
|
8b4f67a34540cbf039619c4ada66d9f1fa7fca18
|
/app/src/main/java/com/jingcai/apps/aizhuan/service/business/partjob/partjob01/Partjob01Request.java
|
73074044529f0155f88bd25504b4cc29ac248135
|
[] |
no_license
|
feng350679858/daxue
|
3c7ddc79cebb75a5ab55fc20fc1cb2ea71e91669
|
dececc5bf1a479cad39272926b37e43b803a77b4
|
HEAD
| 2016-09-06T05:33:31.726651
| 2015-08-25T01:33:29
| 2015-08-25T01:33:29
| 40,883,987
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,346
|
java
|
package com.jingcai.apps.aizhuan.service.business.partjob.partjob01;
import com.jingcai.apps.aizhuan.service.base.BaseRequest;
import com.jingcai.apps.aizhuan.service.business.BizConstant;
/**
* Created by Json Ding on 2015/4/29.
*/
public class Partjob01Request extends BaseRequest {
@Override
public String getTranscode() {
return BizConstant.BIZ_PARTTIME_JOB_01;
}
private Parttimejob parttimejob;
public Parttimejob getParttimejob() {
return parttimejob;
}
public void setParttimejob(Parttimejob parttimejob) {
this.parttimejob = parttimejob;
}
public class Parttimejob {
private String gender;
private String worktype;
private String areacode;
private String areacode2;
private String gisx;
private String gisy;
private String studentid;
private String provincename;
private String cityname;
private String districtname;
private String keys;
private String start;
private String pagesize;
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getWorktype() {
return worktype;
}
public void setWorktype(String worktype) {
this.worktype = worktype;
}
public String getAreacode() {
return areacode;
}
public void setAreacode(String areacode) {
this.areacode = areacode;
}
public String getAreacode2() {
return areacode2;
}
public void setAreacode2(String areacode2) {
this.areacode2 = areacode2;
}
public String getGisx() {
return gisx;
}
public void setGisx(String gisx) {
this.gisx = gisx;
}
public String getGisy() {
return gisy;
}
public void setGisy(String gisy) {
this.gisy = gisy;
}
public String getStudentid() {
return studentid;
}
public void setStudentid(String studentid) {
this.studentid = studentid;
}
public String getProvincename() {
return provincename;
}
public void setProvincename(String provincename) {
this.provincename = provincename;
}
public String getCityname() {
return cityname;
}
public void setCityname(String cityname) {
this.cityname = cityname;
}
public String getDistrictname() {
return districtname;
}
public void setDistrictname(String districtname) {
this.districtname = districtname;
}
public String getKeys() {
return keys;
}
public void setKeys(String keys) {
this.keys = keys;
}
public String getStart() {
return start;
}
public void setStart(String start) {
this.start = start;
}
public String getPagesize() {
return pagesize;
}
public void setPagesize(String pagesize) {
this.pagesize = pagesize;
}
}
}
|
[
"lejingw@163.com"
] |
lejingw@163.com
|
305b8468f7d0ec8e02cce8fdce65cd6d8ff83484
|
bdba19cc0346b5719e200c74159896391117723f
|
/tps/travelPortalRest/src/igc/tech/com/model/NpayConfigModel.java
|
e1cb4679333bbe684388406d5c966e9460596b8e
|
[] |
no_license
|
tilakpeace/tps1
|
181f2812b640cf2f28624a825047c19ad01db28a
|
dd164199c635dd6783f63248759de0073750491e
|
refs/heads/master
| 2021-01-22T03:06:19.769511
| 2017-02-06T15:41:04
| 2017-02-06T15:41:04
| 81,099,126
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,868
|
java
|
package igc.tech.com.model;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Created by Ganga on 7/17/2016.
*/
@XmlRootElement
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class NpayConfigModel {
private String npayConfigId, merchantId, merchantUserName, merchantPassword, signature, type, active;
private String interfaceUrl;
private String apiUrl;
private String merchantTxnId;
private String amount;
private String purchaseDesc;
private String gatewayRefNo;
public NpayConfigModel() {
}
public NpayConfigModel(String npayConfigId, String merchantId, String merchantUserName, String merchantPassword, String signature, String type, String active) {
this.npayConfigId = npayConfigId;
this.merchantId = merchantId;
this.merchantUserName = merchantUserName;
this.merchantPassword = merchantPassword;
this.signature = signature;
this.type = type;
this.active = active;
}
public NpayConfigModel(String npayConfigId, String merchantId, String merchantUserName, String merchantPassword, String signature, String type, String active, String interfaceUrl, String apiUrl, String merchantTxnId, String amount, String purchaseDesc, String gatewayRefNo) {
this.npayConfigId = npayConfigId;
this.merchantId = merchantId;
this.merchantUserName = merchantUserName;
this.merchantPassword = merchantPassword;
this.signature = signature;
this.type = type;
this.active = active;
this.interfaceUrl = interfaceUrl;
this.apiUrl = apiUrl;
this.merchantTxnId = merchantTxnId;
this.amount = amount;
this.purchaseDesc = purchaseDesc;
this.gatewayRefNo = gatewayRefNo;
}
public String getInterfaceUrl() {
return interfaceUrl;
}
public void setInterfaceUrl(String interfaceUrl) {
this.interfaceUrl = interfaceUrl;
}
public String getApiUrl() {
return apiUrl;
}
public void setApiUrl(String apiUrl) {
this.apiUrl = apiUrl;
}
public String getGatewayRefNo() {
return gatewayRefNo;
}
public void setGatewayRefNo(String gatewayRefNo) {
this.gatewayRefNo = gatewayRefNo;
}
public String getMerchantTxnId() {
return merchantTxnId;
}
public void setMerchantTxnId(String merchantTxnId) {
this.merchantTxnId = merchantTxnId;
}
public String getAmount() {
return amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
public String getPurchaseDesc() {
return purchaseDesc;
}
public void setPurchaseDesc(String purchaseDesc) {
this.purchaseDesc = purchaseDesc;
}
public String getNpayConfigId() {
return npayConfigId;
}
public void setNpayConfigId(String npayConfigId) {
this.npayConfigId = npayConfigId;
}
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getMerchantUserName() {
return merchantUserName;
}
public void setMerchantUserName(String merchantUserName) {
this.merchantUserName = merchantUserName;
}
public String getMerchantPassword() {
return merchantPassword;
}
public void setMerchantPassword(String merchantPassword) {
this.merchantPassword = merchantPassword;
}
public String getSignature() {
return signature;
}
public void setSignature(String signature) {
this.signature = signature;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getActive() {
return active;
}
public void setActive(String active) {
this.active = active;
}
@Override
public String toString() {
return "NpayConfigModel{" +
"npayConfigId='" + npayConfigId + '\'' +
", merchantId='" + merchantId + '\'' +
", merchantUserName='" + merchantUserName + '\'' +
", merchantPassword='" + merchantPassword + '\'' +
", signature='" + signature + '\'' +
", type='" + type + '\'' +
", active='" + active + '\'' +
", merchantTxnId='" + merchantTxnId + '\'' +
", amount='" + amount + '\'' +
", purchaseDesc='" + purchaseDesc + '\'' +
", gatewayRefNo='" + gatewayRefNo + '\'' +
'}';
}
}
|
[
"tilakpeace0000@gmail.com"
] |
tilakpeace0000@gmail.com
|
f98d103050de6c89d7980ec4d96b739a03ef0797
|
f6ef69c7507c0ab9f72388546ec4630c9fd55deb
|
/src/main/java/reborncore/mcmultipart/multipart/IMultipart.java
|
eaf3419599799664a9a74239bd4713d469b73844
|
[
"MIT"
] |
permissive
|
meew0/RebornCore
|
2f074caba522432802f1ff9bfe3f4dce527e07e9
|
6b29ef9a41e05a6da728ec8e864bb00a5390fd02
|
refs/heads/1.11.2
| 2023-08-22T02:53:15.430968
| 2017-04-24T15:59:55
| 2017-04-24T15:59:55
| 89,519,346
| 1
| 1
| null | 2017-04-26T19:34:34
| 2017-04-26T19:34:33
| null |
UTF-8
|
Java
| false
| false
| 7,563
|
java
|
package reborncore.mcmultipart.multipart;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.PacketBuffer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.mcmultipart.client.multipart.AdvancedParticleManager;
import reborncore.mcmultipart.multipart.IPartFactory.IAdvancedPartFactory;
import reborncore.mcmultipart.raytrace.PartMOP;
import reborncore.mcmultipart.raytrace.RayTraceUtils.AdvancedRayTraceResultPart;
import java.util.List;
import java.util.Random;
/**
* Interface that represents a multipart. This has all the methods required for a multipart to work properly.<br/>
* For a simple, default implementation of most of these methods and some helpers, you can extend {@link Multipart} directly.
*/
public interface IMultipart {
/**
* Gets the world this part is in.
*/
public World getWorld();
/**
* Gets the location of this part in the world.
*/
public BlockPos getPos();
/**
* Gets the {@link IMultipartContainer} that contains this part.
*/
public IMultipartContainer getContainer();
/**
* Sets the {@link IMultipartContainer} that contains this part.
*/
public void setContainer(IMultipartContainer container);
/**
* Returns the identifier for this type of part. This will be passed into the {@link IPartFactory} or {@link IAdvancedPartFactory} to
* create the part in the client, or when loaded from NBT.
*/
public ResourceLocation getType();
/**
* Gets the path to the model used by this part.
*/
public ResourceLocation getModelPath();
/**
* Ray traces through the part's collision from start vector to end vector returning a ray trace hit.
*
* @return The closest hit to the start vector, if any.
*/
public AdvancedRayTraceResultPart collisionRayTrace(Vec3d start, Vec3d end);
/**
* Adds this part's collision boxes to the list for the specified entity if they intersect the mask.
*
* @param mask A mask that represents the bounds of the block. All boxes added to the list must intersect this mask.
* @param list The list of collision boxes.
* @param collidingEntity The entity that's colliding with this part. May be null.
*/
public void addCollisionBoxes(AxisAlignedBB mask, List<AxisAlignedBB> list, Entity collidingEntity);
/**
* Performs an occlusion test against the specified part. Returning true means that they aren't occluding each other, returning false
* means otherwise.
*/
public boolean occlusionTest(IMultipart part);
/**
* Gets the amount of light emitted by this part (from 0 to 15).
*/
public int getLightValue();
/**
* Gets the block that will be obtained by creative players when they middle-click this part.
*/
public ItemStack getPickBlock(EntityPlayer player, PartMOP hit);
/**
* Gets the items dropped by this part when broken.
*/
public List<ItemStack> getDrops();
/**
* Harvests this part, removing it from the container it's in.
*/
public void harvest(EntityPlayer player, PartMOP hit);
/**
* Gets the strength of a player against this part. Not to be confused with {@link Multipart#getHardness(PartMOP)}. This also takes
* potion effects and tools into account.
*/
public float getStrength(EntityPlayer player, PartMOP hit);
/**
* Called when a part in the same block block changes.
*/
public void onPartChanged(IMultipart part);
/**
* Called when a neighbor block changes.
*/
public void onNeighborBlockChange(Block block);
/**
* Called when a neighbor tile changes.
*/
public void onNeighborTileChange(EnumFacing facing);
/**
* Called when this part is added to the container.
*/
public void onAdded();
/**
* Called right before this part is removed from the container.
*/
public void onRemoved();
/**
* Called when the chunk this part is on is loaded.
*/
public void onLoaded();
/**
* Called when the chunk this part is on is unloaded.
*/
public void onUnloaded();
/**
* Called when the block equivalent of this part has been converted.
*/
public void onConverted(TileEntity tile);
/**
* Rotates this part around the specified axis.
*/
public boolean rotatePart(EnumFacing axis);
/**
* Gets all the valid rotations for this part.
*/
public EnumFacing[] getValidRotations();
/**
* Called when a player right-clicks this part. Return true to play the right-click animation.
*/
public boolean onActivated(EntityPlayer player, EnumHand hand, PartMOP hit);
/**
* Called when a player left-clicks this part.
*/
public void onClicked(EntityPlayer player, PartMOP hit);
/**
* Writes this part's NBT data to a tag so it can be saved.
*/
public NBTTagCompound writeToNBT(NBTTagCompound tag);
/**
* Loads this part's data from the saved NBT tag.
*/
public void readFromNBT(NBTTagCompound tag);
/**
* Writes this part's data to a packet buffer for it to be sent to the client. This is called when the client gets close enough to the
* container that it gets synced and also and when {@link IMultipart#sendUpdatePacket()} is called.
*/
public void writeUpdatePacket(PacketBuffer buf);
/**
* Reads this part's data from a packet sent form the server.
*/
public void readUpdatePacket(PacketBuffer buf);
/**
* Writes this part's data to a packet and sends it to the client.
*/
public void sendUpdatePacket();
/**
* Checks whether or not this part can be rendered in the specified world layer.
*/
public boolean canRenderInLayer(BlockRenderLayer layer);
/**
* Creates a {@link BlockState} for this part with the required properties.
*/
public BlockStateContainer createBlockState();
/**
* Gets the actual state of this part. <b>ONLY USED FOR RENDERING, THIS IS NOT WHERE YOU STORE DATA.</b>
*/
public IBlockState getActualState(IBlockState state);
/**
* Gets the extended state of this part. <b>ONLY USED FOR RENDERING, THIS IS NOT WHERE YOU STORE DATA.</b>
*/
public IBlockState getExtendedState(IBlockState state);
/**
* Gets the bounding box used to render this part dynamically. By default, all multipart containers have a bounding box that goes from
* (0, 0, 0) to (1, 1, 1) so that breaking animations can be rendered, but this can be expanded here.
*/
@SideOnly(Side.CLIENT)
public AxisAlignedBB getRenderBoundingBox();
@SideOnly(Side.CLIENT)
public void randomDisplayTick(Random rand);
@SideOnly(Side.CLIENT)
public boolean addDestroyEffects(AdvancedParticleManager particleManager);
@SideOnly(Side.CLIENT)
public boolean addHitEffects(PartMOP hit, AdvancedParticleManager particleManager);
public void onEntityStanding(Entity entity);
public void onEntityCollided(Entity entity);
public Boolean isAABBInsideMaterial(AxisAlignedBB aabb, Material material);
public Boolean isEntityInsideMaterial(Entity entity, double yToTest, Material material, boolean testingHead);
}
|
[
"modmuss50@gmail.com"
] |
modmuss50@gmail.com
|
f2ee4ae4d5fe2d5b22a7c490018b2a212f2fa35a
|
9197a9e656f6d9f9a77beaabb10004b46687d03b
|
/iot_dhtmlx/src/main/java/com/iot/spring/dao/impl/ConnectionDAOImpl.java
|
4c7063bf9d14245c6262fd4b6cd0ac103cae3462
|
[] |
no_license
|
cupr789/iot_dhtmlx
|
3b07ad9f0d90694546d727ccfa4ddc802d6627e4
|
05953e1905d2e1b7bae4751f8e4bef0133cd5b8c
|
refs/heads/master
| 2021-05-04T21:26:54.182129
| 2018-03-13T00:13:53
| 2018-03-13T00:13:53
| 119,927,569
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,969
|
java
|
package com.iot.spring.dao.impl;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.iot.spring.common.dbcon.DBConnector;
import com.iot.spring.dao.ConnectionDAO;
import com.iot.spring.vo.ColumnVO;
import com.iot.spring.vo.ConnectionInfoVO;
import com.iot.spring.vo.TableVO;
@Repository
public class ConnectionDAOImpl implements ConnectionDAO {
@Autowired
private SqlSessionFactory ssf;
@Override
public List<ConnectionInfoVO> selectConnectionList(ConnectionInfoVO ci) {
List<ConnectionInfoVO> result = null;
SqlSession ss= ssf.openSession();
result = ss.selectList("con.selectConnectionInfo", ci);
ss.close();
return result;
}
@Override
public ConnectionInfoVO selectConnection(int ciNo) {
SqlSession ss= ssf.openSession();
ConnectionInfoVO ci = ss.selectOne("con.selectConnectionInfoWithCiNo", ciNo);
ss.close();
return ci;
}
@Override
public int insertConnection(ConnectionInfoVO ci) {
SqlSession ss = ssf.openSession();
int result = ss.insert("con.insertConnectionInfo", ci);
ss.close();
return result;
}
@Override
public List<Map<String, Object>> selectDatabaseList(SqlSession ss) throws Exception {
return ss.selectList("con.selectDatabase");
}
@Override
public List<TableVO> selectTableList(SqlSession ss,String dbName) {
List<TableVO> result = null;
result = ss.selectList("con.selectTable",dbName);
return result;
}
@Override
public List<ColumnVO> selectColumnList(String dbName) {
List<ColumnVO> result = null;
final SqlSession ss = ssf.openSession();
result = ss.selectList("con.selectColumn", dbName);
ss.close();
return result;
}
}
|
[
"DJA@DJA-PC"
] |
DJA@DJA-PC
|
4f5cce55a3566fe038c414bcf1df971971990752
|
01b0f08de4d2b3fbec07f3141397357f76c60d0b
|
/Session16/src/co/edureka/model/Person.java
|
ef80f870bc532af5f356c4a83ff1284b9d9c30f1
|
[] |
no_license
|
ishantk/EdurekaJavaApril2
|
8db2f8b368569fbde8196832348b9c09a99ae9e2
|
d957a2f3e223f17d7d1193c8d886d7a0f1967b26
|
refs/heads/master
| 2020-03-08T07:44:02.589748
| 2018-04-30T02:34:58
| 2018-04-30T02:34:58
| 128,002,109
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,279
|
java
|
package co.edureka.model;
import java.util.List;
public class Person {
String name;
String email;
int age;
Address address; // HAS-A Relation
List<String> certificates; // HAS-A Relation and we got Collection
public Person(){
}
// Resolve Dependency with LOW Coupling using Constructor
public Person(Address address) {
System.out.println("** DI with Constructor **");
this.address = address;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public Address getAddress() {
return address;
}
// Resolve Dependency with LOW Coupling using Setter
public void setAddress(Address address) {
System.out.println("** DI with Setter **");
this.address = address;
}
public List<String> getCertificates() {
return certificates;
}
public void setCertificates(List<String> certificates) {
this.certificates = certificates;
}
@Override
public String toString() {
return "Person [name=" + name + ", email=" + email + ", age=" + age + ", address=" + address + "]";
}
}
|
[
"er.ishant@gmail.com"
] |
er.ishant@gmail.com
|
694504e805eca647357201fc1dffae361d061f9d
|
6e11c9d461da9807d32d93efddd6effbf256ca6c
|
/sami-service/src/main/java/com/bben/samiservice/Dto/PatientDto.java
|
11df0f4b1de54741f8d53b57039886e80efbaf5c
|
[] |
no_license
|
zhenwei-li/medical
|
ab6fee4769d95939e3eec958a6ca318a774abf8e
|
fe6672e4b65370f613b171abcdf714980ec96697
|
refs/heads/master
| 2020-04-11T15:21:18.113561
| 2019-01-21T05:44:30
| 2019-01-21T05:44:30
| 161,889,118
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,358
|
java
|
package com.bben.samiservice.Dto;
import com.bben.common.util.JsonUtil;
import com.bben.samiservice.model.samiservice.TPatient;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.Date;
@Getter
@Setter
@NoArgsConstructor
public class PatientDto {
@ApiParam("病人编码")
private String code;
@ApiParam("病人姓名")
private String name;
@ApiParam("病人医院id")
private String hospitalId;
@ApiParam("病人院区id")
private String districtId;
@ApiParam("科室id")
private String deptId;
@ApiParam("病区id")
private String wardId;
@ApiParam("病房号")
private String sickroomNo;
@ApiParam("住院号")
private String cureNo;
@ApiParam("病床号")
private String bedNo;
@ApiParam("护理级别")
private String nurseLevel;
@ApiParam("性别(0-男、1-女、2-未知)")
private Integer sex;
@ApiParam("婚姻情况(0-未婚、1-已婚、2-未知)")
private Integer marriage;
@ApiParam("出生日期")
private Date birthday;
@ApiParam("行政区代码")
private Integer pcaCode;
@ApiParam("地址")
private String address;
@ApiParam("手机号码")
private String mobile;
@ApiParam("学历")
private String education;
@ApiParam("社会机构及职务")
private String duties;
@ApiParam("证件类型")
private Integer idType;
@ApiParam("证件号码")
private String idNumber;
@ApiParam("身高")
private BigDecimal height;
@ApiParam("体重")
private BigDecimal weight;
@ApiParam("区域")
private String areaCode;
@ApiParam("入院时间")
private Date admissionTime;
@ApiParam("出院时间")
private Date dischargeTime;
@ApiParam("状态1=有效,0=无效")
private Byte status;
@ApiParam("备注")
private String description;
public static TPatient assemblyData(PatientDto patientDto){
TPatient tPatient = JsonUtil.convert(patientDto,TPatient.class);
tPatient.setHospitalId("1");
tPatient.setDistrictId("1");
tPatient.setIdNumber("1");
tPatient.setIdType(1);
tPatient.setCreateTime(new Date());
return tPatient;
}
}
|
[
"your email"
] |
your email
|
799b3881ce1dcfaa854d8a006bd50f71da3cb21b
|
23bf7d377566f2e55117fe506b56a605184722dd
|
/src/net/sourceforge/plantuml/core/UmlSource.java
|
093ef263bfafd68bfb135e4050995c2bc46f76c5
|
[] |
no_license
|
fangjing828/plantuml
|
9147ef24e0a0dedbdd8d6d4fcdad52253ecef681
|
136819ca484cd9d3c725e21bdd6fad56e905e4da
|
refs/heads/master
| 2020-12-03T08:13:28.375139
| 2015-05-03T15:36:36
| 2015-05-03T15:36:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,042
|
java
|
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2014, Arnaud Roques
*
* Project Info: http://plantuml.sourceforge.net
*
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
* in the United States and other countries.]
*
* Original Author: Arnaud Roques
*
* Revision $Revision: 4768 $
*
*/
package net.sourceforge.plantuml.core;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.sourceforge.plantuml.command.regex.MyPattern;
import net.sourceforge.plantuml.cucadiagram.Display;
import net.sourceforge.plantuml.utils.StartUtils;
import net.sourceforge.plantuml.StringUtils;
import net.sourceforge.plantuml.version.IteratorCounter;
import net.sourceforge.plantuml.version.IteratorCounterImpl;
/**
* Represents the textual source of some diagram.
* The source should start with a <code>@startfoo</code> and end with <code>@endfoo</code>.
* <p>
* So the diagram does not have to be a UML one.
*
* @author Arnaud Roques
*
*/
final public class UmlSource {
final private List<String> source;
/**
* Build the source from a text.
*
* @param source the source of the diagram
* @param checkEndingBackslash <code>true</code> if an ending backslash means that a line has
* to be collapsed with the following one.
*/
public UmlSource(List<? extends CharSequence> source, boolean checkEndingBackslash) {
final List<String> tmp = new ArrayList<String>();
// final DiagramType type =
// DiagramType.getTypeFromArobaseStart(source.get(0).toString());
if (checkEndingBackslash) {
final StringBuilder pending = new StringBuilder();
for (CharSequence cs : source) {
final String s = cs.toString();
if (StringUtils.endsWithBackslash(s)) {
pending.append(s.substring(0, s.length() - 1));
} else {
pending.append(s);
tmp.add(pending.toString());
pending.setLength(0);
}
}
} else {
for (CharSequence s : source) {
tmp.add(s.toString());
}
}
this.source = Collections.unmodifiableList(tmp);
}
/**
* Retrieve the type of the diagram.
* This is based on the first line <code>@startfoo</code>.
*
* @return the type of the diagram.
*/
public DiagramType getDiagramType() {
return DiagramType.getTypeFromArobaseStart(source.get(0));
}
/**
* Allows to iterator over the source.
*
* @return a iterator that allow counting line number.
*/
public IteratorCounter iterator() {
return new IteratorCounterImpl(source.iterator());
}
/**
* Return the source as a single String with <code>\n</code> as line separator.
*
* @return the whole diagram source
*/
public String getPlainString() {
final StringBuilder sb = new StringBuilder();
for (String s : source) {
sb.append(s);
sb.append('\r');
sb.append('\n');
}
return sb.toString();
}
/**
* Return a specific line of the diagram description.
*
* @param n line number, starting at 0
* @return
*/
public String getLine(int n) {
return source.get(n);
}
/**
* Return the number of line in the diagram.
*
* @return
*/
public int getTotalLineCount() {
return source.size();
}
/**
* Check if a source diagram description is empty.
* Does not take comment line into account.
*
* @return <code>true<code> if the diagram does not contain information.
*/
public boolean isEmpty() {
for (String s : source) {
if (StartUtils.isArobaseStartDiagram(s)) {
continue;
}
if (StartUtils.isArobaseEndDiagram(s)) {
continue;
}
if (s.matches("\\s*'.*")) {
continue;
}
if (s.trim().length() != 0) {
return false;
}
}
return true;
}
/**
* Retrieve the title, if defined in the diagram source.
* Never return <code>null</code>.
* @return
*/
public Display getTitle() {
final Pattern p = MyPattern.cmpile("(?i)^[%s]*title[%s]+(.+)$");
for (String s : source) {
final Matcher m = p.matcher(s);
final boolean ok = m.matches();
if (ok) {
return Display.create(m.group(1));
}
}
return Display.empty();
}
}
|
[
"plantuml@gmail.com"
] |
plantuml@gmail.com
|
28f99fcd6eb11c5f40b8028b3bd9f199bf0e01e0
|
0dd187dcadff5c37f538f3e2a5f75ca51f8e8984
|
/src/test/java/de/fibz/beyond/unit/test/config/WebConfigurerTest.java
|
bab38f0ee226dee861af6b86ed0dd83e623d459f
|
[] |
no_license
|
Fibzy/testcontainer-sample-project
|
f642356e4c73d554b508f7c998149fbe4b132a50
|
9f292fb180070b30009227f5350509c8f09bd7ae
|
refs/heads/master
| 2021-08-07T01:08:28.856953
| 2019-08-09T11:16:24
| 2019-08-09T11:16:24
| 201,452,970
| 0
| 0
| null | 2020-07-17T23:43:25
| 2019-08-09T11:16:12
|
Java
|
UTF-8
|
Java
| false
| false
| 7,188
|
java
|
package de.fibz.beyond.unit.test.config;
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.config.JHipsterProperties;
import io.github.jhipster.web.filter.CachingHttpHeadersFilter;
import org.h2.server.web.WebServlet;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.mock.env.MockEnvironment;
import org.springframework.mock.web.MockServletContext;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import javax.servlet.*;
import java.io.File;
import java.util.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.options;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
/**
* Unit tests for the {@link WebConfigurer} class.
*/
public class WebConfigurerTest {
private WebConfigurer webConfigurer;
private MockServletContext servletContext;
private MockEnvironment env;
private JHipsterProperties props;
@BeforeEach
public void setup() {
servletContext = spy(new MockServletContext());
doReturn(mock(FilterRegistration.Dynamic.class))
.when(servletContext).addFilter(anyString(), any(Filter.class));
doReturn(mock(ServletRegistration.Dynamic.class))
.when(servletContext).addServlet(anyString(), any(Servlet.class));
env = new MockEnvironment();
props = new JHipsterProperties();
webConfigurer = new WebConfigurer(env, props);
}
@Test
public void testStartUpProdServletContext() throws ServletException {
env.setActiveProfiles(JHipsterConstants.SPRING_PROFILE_PRODUCTION);
webConfigurer.onStartup(servletContext);
verify(servletContext).addFilter(eq("cachingHttpHeadersFilter"), any(CachingHttpHeadersFilter.class));
verify(servletContext, never()).addServlet(eq("H2Console"), any(WebServlet.class));
}
@Test
public void testStartUpDevServletContext() throws ServletException {
env.setActiveProfiles(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT);
webConfigurer.onStartup(servletContext);
verify(servletContext, never()).addFilter(eq("cachingHttpHeadersFilter"), any(CachingHttpHeadersFilter.class));
verify(servletContext).addServlet(eq("H2Console"), any(WebServlet.class));
}
@Test
public void testCustomizeServletContainer() {
env.setActiveProfiles(JHipsterConstants.SPRING_PROFILE_PRODUCTION);
UndertowServletWebServerFactory container = new UndertowServletWebServerFactory();
webConfigurer.customize(container);
assertThat(container.getMimeMappings().get("abs")).isEqualTo("audio/x-mpeg");
assertThat(container.getMimeMappings().get("html")).isEqualTo("text/html;charset=utf-8");
assertThat(container.getMimeMappings().get("json")).isEqualTo("text/html;charset=utf-8");
if (container.getDocumentRoot() != null) {
assertThat(container.getDocumentRoot()).isEqualTo(new File("build/resources/main/static/"));
}
}
@Test
public void testCorsFilterOnApiPath() throws Exception {
props.getCors().setAllowedOrigins(Collections.singletonList("*"));
props.getCors().setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE"));
props.getCors().setAllowedHeaders(Collections.singletonList("*"));
props.getCors().setMaxAge(1800L);
props.getCors().setAllowCredentials(true);
MockMvc mockMvc = MockMvcBuilders.standaloneSetup(new WebConfigurerTestController())
.addFilters(webConfigurer.corsFilter())
.build();
mockMvc.perform(
options("/api/test-cors")
.header(HttpHeaders.ORIGIN, "other.domain.com")
.header(HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD, "POST"))
.andExpect(status().isOk())
.andExpect(header().string(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN, "other.domain.com"))
.andExpect(header().string(HttpHeaders.VARY, "Origin"))
.andExpect(header().string(HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS, "GET,POST,PUT,DELETE"))
.andExpect(header().string(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS, "true"))
.andExpect(header().string(HttpHeaders.ACCESS_CONTROL_MAX_AGE, "1800"));
mockMvc.perform(
get("/api/test-cors")
.header(HttpHeaders.ORIGIN, "other.domain.com"))
.andExpect(status().isOk())
.andExpect(header().string(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN, "other.domain.com"));
}
@Test
public void testCorsFilterOnOtherPath() throws Exception {
props.getCors().setAllowedOrigins(Collections.singletonList("*"));
props.getCors().setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE"));
props.getCors().setAllowedHeaders(Collections.singletonList("*"));
props.getCors().setMaxAge(1800L);
props.getCors().setAllowCredentials(true);
MockMvc mockMvc = MockMvcBuilders.standaloneSetup(new WebConfigurerTestController())
.addFilters(webConfigurer.corsFilter())
.build();
mockMvc.perform(
get("/test/test-cors")
.header(HttpHeaders.ORIGIN, "other.domain.com"))
.andExpect(status().isOk())
.andExpect(header().doesNotExist(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN));
}
@Test
public void testCorsFilterDeactivated() throws Exception {
props.getCors().setAllowedOrigins(null);
MockMvc mockMvc = MockMvcBuilders.standaloneSetup(new WebConfigurerTestController())
.addFilters(webConfigurer.corsFilter())
.build();
mockMvc.perform(
get("/api/test-cors")
.header(HttpHeaders.ORIGIN, "other.domain.com"))
.andExpect(status().isOk())
.andExpect(header().doesNotExist(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN));
}
@Test
public void testCorsFilterDeactivated2() throws Exception {
props.getCors().setAllowedOrigins(new ArrayList<>());
MockMvc mockMvc = MockMvcBuilders.standaloneSetup(new WebConfigurerTestController())
.addFilters(webConfigurer.corsFilter())
.build();
mockMvc.perform(
get("/api/test-cors")
.header(HttpHeaders.ORIGIN, "other.domain.com"))
.andExpect(status().isOk())
.andExpect(header().doesNotExist(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN));
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
5a83d7b3277cdfac7f7bbc4ffb4d062d80cfed12
|
097e701d4735e4a01125c005a4a2769337a494c2
|
/brederplugin/src/breder/plugin/editor/BrederEditor.java
|
8360fc0c4482c36839fcb38def09911908d75344
|
[] |
no_license
|
bernardobreder/monograph
|
f937631945cab0c439e01b6831138b3a27cf301d
|
a8ebb1c7a119cebb1ebee365c0c8748575c2b311
|
refs/heads/master
| 2021-07-05T02:24:06.585183
| 2017-09-22T23:56:11
| 2017-09-22T23:56:11
| 104,519,515
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,364
|
java
|
package breder.plugin.editor;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.ui.editors.text.FileDocumentProvider;
import org.eclipse.ui.editors.text.TextEditor;
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import breder.plugin.editor.parser.BrederConfiguration;
import breder.plugin.element.breder.BClass;
public class BrederEditor extends TextEditor {
private ColorManager colorManager;
private BrederContentOutlinePage myOutlinePage;
public BrederEditor() {
super();
colorManager = new ColorManager();
setSourceViewerConfiguration(new BrederConfiguration(colorManager));
setDocumentProvider(new FileDocumentProvider());
}
public Object getAdapter(Class required) {
if (IContentOutlinePage.class.equals(required)) {
if (myOutlinePage == null
&& this.getEditorInput() instanceof FileEditorInput) {
FileEditorInput input = (FileEditorInput) this.getEditorInput();
BClass element = new BClass(null, input.getFile());
myOutlinePage = new BrederContentOutlinePage(element);
}
return myOutlinePage;
}
return super.getAdapter(required);
}
@Override
public void dispose() {
colorManager.dispose();
super.dispose();
}
@Override
public void doSave(IProgressMonitor progressMonitor) {
super.doSave(progressMonitor);
}
}
|
[
"bernardobreder@gmail.com"
] |
bernardobreder@gmail.com
|
a2187fc18ea17cd8b6762eb34bcb410333f13282
|
1f79656ce0131ca13c0b37ff1b599a9c2428f13c
|
/ocl-core/src/main/java/org/omg/ocl/analysis/semantics/type/SequenceType.java
|
af3845d17bbca7b25a687cd11616c1b3c6f460a8
|
[
"Apache-2.0"
] |
permissive
|
opatrascoiu/ocl
|
10fa4977683d16f10db9377221daec4728e47476
|
c0655994831d352ab31758ca9b8719c6a68edf99
|
refs/heads/master
| 2021-01-11T03:29:10.643970
| 2016-11-20T14:29:29
| 2016-11-20T14:29:29
| 71,003,720
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 787
|
java
|
/*
Copyright 2016.
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.omg.ocl.analysis.semantics.type;
/**
* Created by Octavian Patrascoiu on 15-Oct-16.
*/
public class SequenceType extends CollectionType {
public SequenceType(Type elementType) {
super(elementType);
}
}
|
[
"opatrascoiu@yahoo.com"
] |
opatrascoiu@yahoo.com
|
b9866028ef1d85724aa7513df27b749761f9ea03
|
28aead05e90c80a6862cc6f02f7b62b0d0fbbc5a
|
/corejava/src/main/java/com/bobozhuang/exam/Merge1.java
|
876ecdede872c62a7ba202212db451ccb94deed6
|
[
"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
| 1,239
|
java
|
package main.java.com.bobozhuang.exam;
import java.util.*;
/**
* description:数据表记录包含表索引和数值(int范围的整数),请对表索引相同的记录进行合并,即将相同索引的数值进行求和运算,
* 输出按照key值升序进行输出。
* author Hubery
* date 2020-05-28
* version v0.0.1
* since v0.0.1
**/
public class Merge1 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNext()) {
TreeMap<Object, Object> hashMap = new TreeMap();
String s = scanner.nextLine();
for (int i = 0; i < Integer.valueOf(s); i++) {
String s1 = scanner.nextLine();
String[] s2 = s1.split(" ");
String o = (String) hashMap.get(s2[0]);
if (null != o) {
hashMap.put(s2[0], Integer.valueOf(o) + Integer.valueOf(s2[1]));
} else {
hashMap.put(s2[0], s2[1]);
}
}
for (Map.Entry entry :
hashMap.entrySet()) {
System.out.println(entry.getKey() + " " + entry.getValue());
}
}
}
}
|
[
"12345678"
] |
12345678
|
1273c3a675fff9f9e360e44e5f735d6837c3d5a4
|
04bfaf142c9c2aaa52dceeba7b37452a4b7fd03b
|
/plms/V1.0.2/src/main/java/com/vilio/plms/dao/OverdueDetailDao.java
|
d081927d3741cc64c9e46a024943977afe596d47
|
[] |
no_license
|
yanzj/hhsite
|
a1dd19a11a5623bcc04651dd364640767df9b335
|
603ef16f7d4d53494e4ab99cae631cfafeee3159
|
refs/heads/master
| 2020-04-14T04:18:35.363346
| 2018-12-31T02:18:04
| 2018-12-31T02:18:04
| 163,632,151
| 0
| 1
| null | 2018-12-31T02:16:10
| 2018-12-31T02:16:10
| null |
UTF-8
|
Java
| false
| false
| 1,515
|
java
|
package com.vilio.plms.dao;
import com.vilio.plms.pojo.OverdueDetail;
import java.util.List;
import java.util.Map;
/**
* 类名: OverdueDetailDao<br>
* 功能:罚息流水Dao<br>
* 版本: 1.0<br>
* 日期: 2017年6月25日<br>
* 作者: wangxf<br>
* 版权:vilio<br>
* 说明:<br>
*/
public interface OverdueDetailDao {
//查询罚息流水表记录:时间所属日期大于资金到账日期小于等于当前日期。
public List<OverdueDetail> queryOverdueDetailByOverdueCodeAndTime(Map param);
//罚息流水批量标记为无效,根据code
public int updateOverdueDetailStatusByCodeBatch(List<OverdueDetail> overdueDetails);
//根据日期分组,查询罚息明细表(统计出每条还款明细回滚的逾期天数,因为本金、利息和服务费罚息明细日期会重叠)
public Integer queryOverdueGroupDateByScheduleDetailCode(Map param);
//根据日期和逾期天数进行分组,统计出逾期天数(本息逾期天数计算,统计出每条还款明细回滚的逾期天数,因为本金、利息和服务费罚息明细日期会重叠)
public Integer queryPrcpalAndIntstOverdueGroupByScheduleDetailCode(Map param);
//根据日期和逾期天数进行分组,统计出逾期天数(服务费逾期天数计算,统计出每条还款明细回滚的逾期天数,因为本金、利息和服务费罚息明细日期会重叠)
public Integer queryServiceFeeOverdueGroupByScheduleDetailCode(Map param);
}
|
[
"panda7168@163.com"
] |
panda7168@163.com
|
48aa2f91194efe82cbf06f6b778a14e61aa5e95e
|
19e8eaaf10a50920b4bc1a9100e40664c908d96e
|
/src/main/java/org/dbflute/maven/plugin/LoadDataReverseCommandPlugin.java
|
a01da95ba9a2426d71480dc38f0e71ddc9b05d30
|
[] |
no_license
|
dbflute/dbflute-maven-plugin
|
bf835bbe346a1b3f734783db7f9286c775c7b4b3
|
c7c866da45e487dd6c284d6a52c44b2e2268ffc2
|
refs/heads/master
| 2021-01-25T10:43:52.400137
| 2015-05-04T01:02:00
| 2015-05-04T01:02:00
| 26,355,366
| 0
| 0
| null | 2015-02-16T14:12:29
| 2014-11-08T09:08:31
|
Java
|
UTF-8
|
Java
| false
| false
| 1,523
|
java
|
/*
* Copyright 2014-2014 The DBFlute Project and the Others.
*
* 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.dbflute.maven.plugin;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.dbflute.maven.plugin.command.CommandExecutor;
import org.dbflute.maven.plugin.util.LogUtil;
/**
* LoadDataReverseCommandPlugin provides load-data-reverse goal to run manage.[sh|bat] load-data-reverse.
*
* @goal load-data-reverse
*
* @author shinsuke
*
*/
public class LoadDataReverseCommandPlugin extends CommandPlugin {
public void execute() throws MojoExecutionException, MojoFailureException {
LogUtil.init(getLog());
CommandExecutor creator = new CommandExecutor(this);
creator.execute("manage");
}
/**
* @param cmds arguments for a command line
*/
@Override
public void updateArgs(List<String> cmds) {
cmds.add("load-data-reverse");
}
}
|
[
"shinsuke@yahoo.co.jp"
] |
shinsuke@yahoo.co.jp
|
147cb4f4d0939f5611ee597ac882133f7bf5b4a3
|
7773ea6f465ffecfd4f9821aad56ee1eab90d97a
|
/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/collect/beforeCollectToMapPutInvalid.java
|
618d3734b626426bef9e251c0d6fbc26f8d1fc30
|
[
"Apache-2.0"
] |
permissive
|
aghasyedbilal/intellij-community
|
5fa14a8bb62a037c0d2764fb172e8109a3db471f
|
fa602b2874ea4eb59442f9937b952dcb55910b6e
|
refs/heads/master
| 2023-04-10T20:55:27.988445
| 2020-05-03T22:00:26
| 2020-05-03T22:26:23
| 261,074,802
| 2
| 0
|
Apache-2.0
| 2020-05-04T03:48:36
| 2020-05-04T03:48:35
| null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
// "Replace with collect" "false"
import java.util.HashMap;
import java.util.Map;
public class Main {
private Map<String, Integer> test(String... list) {
HashMap<String, Integer> map = new HashMap<>();
for(String s : lis<caret>t) {
if(s != null) {
map.put(s, 1,);
}
}
return map;
}
public static void main(String[] args) {
System.out.println(new Main().test("a", "bbb", null, "cc", "dd", "eedasfasdfs", "dd"));
}
}
|
[
"Tagir.Valeev@jetbrains.com"
] |
Tagir.Valeev@jetbrains.com
|
af3d6297772e2c01fba9467e0639f5f0ea23e345
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/model/control/printer/common/transfer/PrinterDescriptionTransfer.java
|
1aea76d96501c5ae52bd28a21bbe5c81bd323e34
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,980
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// --------------------------------------------------------------------------------
package com.echothree.model.control.printer.common.transfer;
import com.echothree.model.control.party.common.transfer.LanguageTransfer;
import com.echothree.util.common.transfer.BaseTransfer;
public class PrinterDescriptionTransfer
extends BaseTransfer {
private LanguageTransfer language;
private PrinterTransfer printer;
private String description;
/** Creates a new instance of PrinterDescriptionTransfer */
public PrinterDescriptionTransfer(LanguageTransfer language, PrinterTransfer printer, String description) {
this.language = language;
this.printer = printer;
this.description = description;
}
public LanguageTransfer getLanguage() {
return language;
}
public void setLanguage(LanguageTransfer language) {
this.language = language;
}
public PrinterTransfer getPrinter() {
return printer;
}
public void setPrinter(PrinterTransfer printer) {
this.printer = printer;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
f22ec4ae3114644e6f4bd1fc33678177b364661c
|
a5d03b6fffc8ec756a813d7d2f78b526ca9045f5
|
/skeleton-plugin-springcloud/src/main/java/com/nepxion/skeleton/plugin/springcloud/generator/client/java/ClientControllerClassGenerator.java
|
8cc078602753bc5d44002d7722e8126136e38a67
|
[
"Apache-2.0"
] |
permissive
|
xiaode123/Skeleton
|
0c8db47b79fb13036d9e6bee657c5e7ec8a03e6c
|
cccaf4bc5659f3b3d725d060fd4ad8c38ad9c630
|
refs/heads/master
| 2020-11-28T18:48:39.701233
| 2019-11-01T11:47:33
| 2019-11-01T11:47:33
| 229,896,344
| 1
| 0
|
Apache-2.0
| 2019-12-24T07:44:54
| 2019-12-24T07:44:53
| null |
UTF-8
|
Java
| false
| false
| 1,676
|
java
|
package com.nepxion.skeleton.plugin.springcloud.generator.client.java;
/**
* <p>Title: Nepxion Skeleton</p>
* <p>Description: Nepxion Skeleton For Freemarker</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import java.util.HashMap;
import java.util.Map;
import com.nepxion.skeleton.engine.constant.SkeletonConstant;
import com.nepxion.skeleton.engine.context.SkeletonContext;
import com.nepxion.skeleton.engine.generator.SkeletonJavaGenerator;
import com.nepxion.skeleton.engine.property.SkeletonProperties;
public class ClientControllerClassGenerator extends SkeletonJavaGenerator {
public ClientControllerClassGenerator(SkeletonContext skeletonContext, SkeletonProperties skeletonProperties) {
super(skeletonContext.clone("client", ClientControllerClassGenerator.class), skeletonProperties);
}
@Override
protected String getPackage() {
return super.getPackage() + ".controller";
}
@Override
protected String getClassName() {
return "ClientController";
}
@Override
protected String getTemplateName() {
return "ClientController.java.template";
}
@Override
protected boolean isMainCode() {
return true;
}
@Override
protected Object getDataModel() {
Map<String, Object> dataModel = new HashMap<String, Object>();
dataModel.put(SkeletonConstant.PACKAGE, getPackage());
dataModel.put(SkeletonConstant.BASE_PACKAGE, super.getPackage());
dataModel.put("clientHystrixEnabled", skeletonProperties.getString("clientHystrixEnabled"));
return dataModel;
}
}
|
[
"1394997@qq.com"
] |
1394997@qq.com
|
b193a8ccefeb73f2d610d2b061843833649e4f5b
|
de8bc4878621799bb5096504d230dda1a3bfc193
|
/src/main/java/com/github/sergueik/swet/TestConfigurationParser.java
|
1d993d5c9e88ccfd84ce9259d68aaee16acf4a25
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
themenucha/SWET
|
e61f133208c0b0609b03e2b4f1595bda8ef6ff7c
|
69bd37f97a3bdeb4fce8eeaffbeb34af0193eb1c
|
refs/heads/master
| 2021-10-27T09:35:38.771808
| 2018-05-09T02:50:24
| 2018-05-09T02:50:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,513
|
java
|
package com.github.sergueik.swet;
/**
* Copyright 2014 - 2017 Serguei Kouzmine
*/
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
/**
* Configuration table helper for Selenium WebDriver Elementor Tool (SWET)
* @author: Serguei Kouzmine (kouzmine_serguei@yahoo.com)
*/
public class TestConfigurationParser {
private static boolean skipHeaders = true;
private static String defaultConfig = "test.configuration";
private static Scanner scanner;
public static void main(String[] args) {
String configuPath = (args.length == 0)
? String.format("%s/src/main/resources/%s",
System.getProperty("user.dir"), defaultConfig)
: String.format("%s/%s", System.getProperty("user.dir"), args[0]);
TestConfigurationParser.getConfiguration(configuPath);
}
@SuppressWarnings("resource")
public static Scanner loadTestData(final String filename) {
Scanner scanner = null;
System.err
.println(String.format("Reading configuration file: '%s'", filename));
try {
scanner = new Scanner(new File(filename)).useDelimiter("(?:\\r?\\n)+");
} catch (FileNotFoundException e) {
System.err.println(
String.format("Configuration file was not found: '%s'", filename));
e.printStackTrace();
}
return scanner;
}
public static List<String[]> getConfiguration(final String filename) {
List<String[]> result = new LinkedList<>();
scanner = loadTestData(filename);
List<String> separators = new ArrayList<String>(
Arrays.asList(new String[] { "|", "\t", ";", "," }));
String separator = String
.format("(?:%s)",
String.join("|",
separators.stream().map(o -> Pattern.compile("(\\||/)")
.matcher(o).replaceAll("\\\\$1"))
.collect(Collectors.toList())));
int lineNum = 0;
// System.err.println("separator:" + separator);
while (scanner.hasNext()) {
String line = scanner.next();
// System.err.println("line: " + line);
// skip comments
if (line.matches("^#.*$")) {
continue;
}
lineNum++;
// skip headers
if (skipHeaders) {
if (lineNum == 1) {
continue;
}
}
String[] columns = line.split(separator);
/*
for (String column : columns) {
System.err.println("data column: " + column);
}
*/
result.add(columns);
}
scanner.close();
return result;
}
}
|
[
"kouzmine_serguei@yahoo.com"
] |
kouzmine_serguei@yahoo.com
|
74887efb6143979ef3b42f85836356e7686eb572
|
e7bb45a13209049f669a3220dd0815c15eab473a
|
/springboot-admin/src/main/java/com/bo/springboot/admin/module/sys/form/SysLoginForm.java
|
583ae5a622a7aeb1a48d375d185dd213800c94dd
|
[] |
no_license
|
Nobodylesszb/middle-ware-boot
|
75f2a945a5772f16dfe973658d891af332292045
|
5fd0f24dcd9a7914d47703c9dea20a2381cba907
|
refs/heads/master
| 2023-03-05T17:44:07.960000
| 2022-05-05T03:16:41
| 2022-05-05T03:16:41
| 247,861,475
| 1
| 0
| null | 2023-02-22T07:43:19
| 2020-03-17T02:30:50
|
Java
|
UTF-8
|
Java
| false
| false
| 298
|
java
|
package com.bo.springboot.admin.module.sys.form;
import lombok.Data;
/**
* @auther: bo
* @Date: 2020/11/5 10:36
* @version:
* @description:
*/
@Data
public class SysLoginForm {
private String username;
private String password;
private String captcha;
private String uuid;
}
|
[
"nobodylesszb@163.com"
] |
nobodylesszb@163.com
|
af4b34922459f97e31f35fadb92bb4946acb3ace
|
76baa7106257c71580e0e441fa9836a1f3b22772
|
/java/src/com/programming/leetcode/spiral_matrix_54/Solution.java
|
4e1b0571b2c4cce37d0150dfabc1de9740e7e6b6
|
[] |
no_license
|
yogeshrnaik/programming-problems
|
58072a69484772978e3d4cc6feae7b6494f45c6d
|
6fd05bbbc019a9d9a19e20de2ba022109db42db6
|
refs/heads/master
| 2023-08-08T03:22:19.989331
| 2023-07-31T12:04:17
| 2023-07-31T12:04:17
| 38,365,498
| 0
| 1
| null | 2023-07-25T20:49:57
| 2015-07-01T10:37:27
|
Java
|
UTF-8
|
Java
| false
| false
| 1,249
|
java
|
package com.programming.leetcode.spiral_matrix_54;
import java.util.ArrayList;
import java.util.List;
// Problem: https://leetcode.com/problems/spiral-matrix/
class Solution {
private static int VISITED_VALUE = Integer.MAX_VALUE;
public List<Integer> spiralOrder(int[][] matrix) {
List<Integer> result = new ArrayList<>();
int[] colDir = new int[]{1, 0, -1, 0};
int[] rowDir = new int[]{0, 1, 0, -1};
int limit = matrix.length * matrix[0].length;
int counter = 0;
int row = 0;
int col = 0;
int dir = 0;
while (counter++ < limit) {
result.add(matrix[row][col]);
matrix[row][col] = VISITED_VALUE;
row += rowDir[dir];
col += colDir[dir];
if (isInvalid(row, col, matrix)) {
row -= rowDir[dir];
col -= colDir[dir];
dir = (dir + 1) % 4;
row += rowDir[dir];
col += colDir[dir];
}
}
return result;
}
private boolean isInvalid(int row, int col, int[][] matrix) {
return (row < 0 || col < 0 || row >= matrix.length || col >= matrix[0].length || matrix[row][col] == VISITED_VALUE);
}
}
|
[
"yogeshrnaik@gmail.com"
] |
yogeshrnaik@gmail.com
|
12dd693f82607bc0223f2d350bef964fa55054b7
|
698517f21dbe7b794d7fb06095383fa0a2e03de7
|
/command/src/main/java/com/kyocoolcool/command/Color.java
|
cabd2b92379892e43735aaa8160bb58aa4b8e1d8
|
[] |
no_license
|
kyocoolcool/java-design-pattern
|
dea9e5efb289052a5685ca5f1594b971ff1fa2cb
|
8fb9816f432349502e7e83e4cfdf22da06a8c291
|
refs/heads/master
| 2023-05-07T06:38:14.510848
| 2021-05-21T05:56:55
| 2021-05-21T05:56:55
| 366,612,115
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,391
|
java
|
/**
* MIT License
* <p>
* Copyright (c) 2017 James
* <p>
* 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:
* <p>
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* <p>
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.kyocoolcool.command;
/**
* 字体颜色
*/
public enum Color {
RED("红"), BLACK("黑");
private String name;
Color(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
|
[
"kyocoolcool@hotmail.com"
] |
kyocoolcool@hotmail.com
|
30facffd990177ba48609ec86afb088cd42b84bb
|
8692972314994b8923b6f12b7ae9e76b30a36391
|
/memory_managment/ClassesList/src/Class38.java
|
74f2c3ea55756a1f56f73bf77c4acf19713eb30d
|
[] |
no_license
|
Petrash-Samoilenka/2017W-D2D3-ST-Petrash-Samoilenka
|
d2cd65c1d10bec3c4d1b69b124d4f0aeef1d7308
|
214fbb3682ef6714514af86cc9eaca62f02993e1
|
refs/heads/master
| 2020-05-27T15:04:52.163194
| 2017-06-16T14:19:38
| 2017-06-16T14:19:38
| 82,560,968
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,744
|
java
|
public class Class38 extends Class1 {
private String _s1;
private String _s2;
private String _s3;
private String _s4;
private String _s5;
private String _s6;
private String _s7;
private String _s8;
public Class38() {
}
public void getValue1(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue2(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue3(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue4(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue5(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue6(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue7(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue8(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue9(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue10(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue11(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue12(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue13(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue14(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue15(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue16(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue17(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue18(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue19(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
public void getValue20(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) {
_s1 = s1;
_s2 = s2;
_s3 = s3;
_s4 = s4;
}
}
|
[
"rn.samoylenko@gmail.com"
] |
rn.samoylenko@gmail.com
|
b838627fbabe74f3013eab614f6c4c659b2b24cd
|
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
|
/tags/2009-05-19/seasar2-2.4.37/s2jdbc-gen/s2jdbc-gen/src/main/java/org/seasar/extension/jdbc/gen/model/ServiceModelFactory.java
|
6a9aa32e6754f6470460cf15adbd7ddb751ab776
|
[
"Apache-2.0"
] |
permissive
|
svn2github/s2container
|
54ca27cf0c1200a93e1cb88884eb8226a9be677d
|
625adc6c4e1396654a7297d00ec206c077a78696
|
refs/heads/master
| 2020-06-04T17:15:02.140847
| 2013-08-09T09:38:15
| 2013-08-09T09:38:15
| 10,850,644
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,141
|
java
|
/*
* Copyright 2004-2009 the Seasar Foundation and the Others.
*
* 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.seasar.extension.jdbc.gen.model;
import org.seasar.extension.jdbc.EntityMeta;
/**
* {@link ServiceModel サービスモデル}のファクトリです。
*
* @author taedium
*/
public interface ServiceModelFactory {
/**
* サービスモデルを返します。
*
* @param entityMeta
* エンティティメタデータ
* @return サービスモデル
*/
ServiceModel getServiceModel(EntityMeta entityMeta);
}
|
[
"koichik@319488c0-e101-0410-93bc-b5e51f62721a"
] |
koichik@319488c0-e101-0410-93bc-b5e51f62721a
|
6fdfcbd22556b07b605922cd19bec7a82cefe3d8
|
12dc36dbff1769f991841af06ac2095001a39d5e
|
/orderManagerSystem/orderEureka/src/test/java/com/jihu/graduation/AppTest.java
|
50222a9122a38da4db40658b38b95090111a0b02
|
[] |
no_license
|
Springhuge/ordermanager
|
0d0d0ce9eb1ea5ee573504de9d0ee6d417d4ab6a
|
2f713887324913887d00191181eb36c3bafd134a
|
refs/heads/master
| 2022-02-26T13:07:54.199292
| 2020-01-07T13:07:31
| 2020-01-07T13:07:31
| 218,790,881
| 3
| 0
| null | 2022-02-09T22:19:34
| 2019-10-31T14:54:17
|
Java
|
UTF-8
|
Java
| false
| false
| 291
|
java
|
package com.jihu.graduation;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}
|
[
"529581062@qq.com"
] |
529581062@qq.com
|
1d48914405f4556a566dee9e6e22dd4d597bcdc9
|
bb9444b75e8781d366c853ee45297546e8c67922
|
/Utopia-WS/src/tmp/server/intel/IntelListener.java
|
69a3dc397af171a0c594926e71cba26b3615efb0
|
[] |
no_license
|
spetzreborn/lucidbot
|
7b34de9e6956337c52818171b6e1fb560dee96dc
|
a707b1475a20817faed2e391e98a567989accc75
|
refs/heads/master
| 2021-03-12T22:50:09.227074
| 2013-09-30T06:48:17
| 2013-09-30T06:48:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,667
|
java
|
/*
* Copyright (c) 2012, Fredrik Yttergren
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name LucidBot 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 Fredrik Yttergren BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package tmp.server.intel;
import api.runtime.ThreadingManager;
import api.settings.PropertiesCollection;
import api.tools.common.CleanupUtil;
import lombok.extern.log4j.Log4j;
import spi.web.WebService;
import tools.UtopiaPropertiesConfig;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.io.IOException;
import java.net.ServerSocket;
/**
* The server socket listening for connections from the forum agent site
*/
@Singleton
@Log4j
public class IntelListener implements WebService {
private final PropertiesCollection properties;
private final int webServerPort;
private final ThreadingManager threadingManager;
private final IntelHostFactory intelHostFactory;
private ServerSocket serverSocket;
@Inject
public IntelListener(final PropertiesCollection properties, final ThreadingManager threadingManager,
final IntelHostFactory intelHostFactory) {
this.properties = properties;
this.webServerPort = properties.getInteger(UtopiaPropertiesConfig.SEPERATE_INTEL_SERVER_PORT);
this.threadingManager = threadingManager;
this.intelHostFactory = intelHostFactory;
}
@Override
public void start() {
try {
serverSocket = new ServerSocket(webServerPort);
while (true) {
try {
threadingManager.execute(intelHostFactory.createIntelHost(serverSocket.accept()));
} catch (final IOException e) {
return;
}
}
} catch (IOException ignore) {
// we've been interrupted, so it's time to shut down
}
}
@Override
public boolean isEnabled() {
return properties.getBoolean(UtopiaPropertiesConfig.SEPERATE_INTEL_SERVER);
}
@Override
public Runnable getShutdownRunner() {
return new Runnable() {
@Override
public void run() {
shutdown();
}
};
}
private void shutdown() {
CleanupUtil.closeSilently(serverSocket);
}
}
|
[
"fredrik.yttergren@gmail.com"
] |
fredrik.yttergren@gmail.com
|
bf2bc80c500c8796be86bf634904df7bdb259467
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_7/Testnull_628.java
|
8cb9a3cab83125a5de9474093194eacb35b5519e
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 300
|
java
|
package org.gradle.test.performancenull_7;
import static org.junit.Assert.*;
public class Testnull_628 {
private final Productionnull_628 production = new Productionnull_628("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
5d9e9910596dea29e6e02faabada63137108ec3b
|
9bde9aca2fe151e4b71217981c82ff310ae4d283
|
/src/main/java/techguns/client/render/RenderAdditionalSlotSharedItem.java
|
47fb84c2ab15f4d5df44b27f1d1b2ba213af746b
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
TerdyTheTerd/Techguns2
|
1d510b29f5664e554c5cfb645fc714df276566e3
|
7367c44721e54cb9195a58695ea42d97cd733c45
|
refs/heads/master
| 2020-05-29T17:02:35.166363
| 2019-04-02T19:02:12
| 2019-04-02T19:02:12
| 189,265,734
| 1
| 3
|
NOASSERTION
| 2019-05-29T16:58:28
| 2019-05-29T16:58:28
| null |
UTF-8
|
Java
| false
| false
| 1,184
|
java
|
package techguns.client.render;
import java.util.HashMap;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.entity.RenderPlayer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
public class RenderAdditionalSlotSharedItem extends RenderAdditionalSlotItem {
private HashMap<Integer,RenderAdditionalSlotItem> renderMap = new HashMap<>();
public RenderAdditionalSlotSharedItem() {
super((ModelBiped)null,(ResourceLocation)null);
}
@Override
public void render(ItemStack slot, EntityPlayer player, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch,
float scale, RenderPlayer renderplayer) {
Integer damageValue = slot.getItemDamage();
RenderAdditionalSlotItem render = renderMap.get(damageValue);
if(render!=null) {
render.render(slot, player, limbSwing, limbSwingAmount, partialTicks, ageInTicks, netHeadYaw, headPitch, scale, renderplayer);
}
}
public void addRenderForSharedItem(Integer dmgVal, RenderAdditionalSlotItem render) {
this.renderMap.put(dmgVal, render);
}
}
|
[
"winkler.gernot@gmail.com"
] |
winkler.gernot@gmail.com
|
70a5eebf2624c0f62781613973cfaf875a7e74b4
|
2993feda802f507fc33f07caf190c057ca7f4ff5
|
/src/org/obicere/bytecode/core/objects/type/parser/FormatException.java
|
fd0c80528b0dfc3c019363b77f1a3aca3d554f7a
|
[] |
no_license
|
mattwzawislak/ByteCodeCore
|
cd2ea5d54f3ffee767f6a072bfee557165742de7
|
0913e2b30b69f3ccc6e8bfb8739a194f96e62622
|
refs/heads/master
| 2021-06-29T22:48:55.066527
| 2017-09-18T21:25:16
| 2017-09-18T21:25:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 287
|
java
|
package org.obicere.bytecode.core.objects.type.parser;
/**
* @author Obicere
*/
public class FormatException extends RuntimeException {
public FormatException(final String message, final QueueString string){
super(message + ", remainder: " + string.toString());
}
}
|
[
"mattwzawislak@gmail.com"
] |
mattwzawislak@gmail.com
|
0a9b27c9762bdf7858866bd57efab0bbb27b8dcb
|
02a108d2eeb1c0245a306ee1d766db7f03e020f0
|
/DECOUPLING_common_15-12/src/main/java/com/vodafone/global/er/decoupling/binding/response/ChargingId.java
|
85626ec22db3bb373ee183a6157dbd5a8222bf50
|
[] |
no_license
|
raghera/er-common
|
fa30398ac6d3589ace42c3834c840879d4a81c99
|
38894e2d5cf765e5c97e8a2fc0e51943520a9a9a
|
refs/heads/master
| 2021-01-13T09:07:08.157301
| 2016-09-27T14:54:57
| 2016-09-27T14:54:57
| 69,253,161
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,097
|
java
|
package com.vodafone.global.er.decoupling.binding.response;
import java.io.Serializable;
import javax.xml.bind.Element;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>Java class for chargingId complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="chargingId">
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "chargingId", namespace = "http://localhost:8080/decoupling/schemas/common", propOrder = {
"value"
})
public class ChargingId
implements Serializable, Element
{
private final static long serialVersionUID = 1L;
@XmlValue
protected String value;
@XmlAttribute(name = "type")
protected String type;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
}
|
[
"raghera@hotmail.com"
] |
raghera@hotmail.com
|
8cd1745749d9d2ffea9130cf70ec65cf6fa83a99
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/google/android/gms/wearable/DataItemBuffer.java
|
a2d02215e6652a1481ba6d9647691086aa74b498
|
[] |
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
| 988
|
java
|
package com.google.android.gms.wearable;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.common.data.EntityBuffer;
import com.tencent.matrix.trace.core.AppMethodBeat;
public class DataItemBuffer
extends EntityBuffer<DataItem>
implements Result
{
private final Status zzp;
public DataItemBuffer(DataHolder paramDataHolder)
{
super(paramDataHolder);
AppMethodBeat.i(100784);
this.zzp = new Status(paramDataHolder.getStatusCode());
AppMethodBeat.o(100784);
}
public String getPrimaryDataMarkerColumn()
{
return "path";
}
public Status getStatus()
{
return this.zzp;
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes7.jar
* Qualified Name: com.google.android.gms.wearable.DataItemBuffer
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
155c187fae981ec1fc90511ebbc3f4cd3075d0f7
|
f50256968c1df795f4157ffe849a35b112597bcc
|
/fluent-mybatis/src/main/java/cn/org/atool/fluent/mybatis/mapper/FluentConst.java
|
0e3b71a3d2d31eddbf26e5d90f065a7eb1cbfc84
|
[
"Apache-2.0"
] |
permissive
|
repubsky/fluent-mybatis
|
01076f0d39ae96f9f2567e6ab2137999ab9db017
|
38460ec93f1c42f7735842fd29f4fd076b022a4f
|
refs/heads/master
| 2023-08-25T03:13:27.302440
| 2021-10-31T11:01:13
| 2021-10-31T11:01:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,483
|
java
|
package cn.org.atool.fluent.mybatis.mapper;
/**
* fluent mybatis用到的常量定义
*
* @author wudarui
*/
public interface FluentConst {
String Suffix_Mapper = "Mapper";
String Suffix_BaseDao = "BaseDao";
String Suffix_EntityMapping = "Mapping";
String Suffix_Ref = "Ref";
String Suffix_mapping = "mapping";
String Suffix_MAPPING = "MAPPING";
String Suffix_Query = "Query";
String Suffix_Update = "Update";
String Suffix_EntityWhere = "EntityWhere";
String Suffix_QueryWhere = "QueryWhere";
String Suffix_UpdateWhere = "UpdateWhere";
String Suffix_Selector = "Selector";
String Suffix_GroupBy = "GroupBy";
String Suffix_Having = "Having";
String Suffix_QueryOrderBy = "QueryOrderBy";
String Suffix_UpdateOrderBy = "UpdateOrderBy";
String Suffix_UpdateSetter = "UpdateSetter";
String Suffix_EntityFormSetter = "FormSetter";
String Suffix_ISegment = "ASegment";
String Suffix_Segment = "Segment";
String Pack_Helper = "helper";
String Pack_BaseDao = "dao.base";
String Pack_Mapper = "mapper";
String Pack_Wrapper = "wrapper";
String Param_List = "list";
String Param_EW = "ew";
String Param_Procedure = "procedure";
String Param_P = "p";
String Param_Fields = "fields";
String Param_Entity = "entity";
String M_Insert = "insert";
String M_insertWithPk = "insertWithPk";
String M_InsertBatch = "insertBatch";
String M_insertBatchWithPk = "insertBatchWithPk";
String M_listEntity = "listEntity";
String M_insertSelect = "insertSelect";
String M_updateBy = "updateBy";
String M_listObjs = "listObjs";
String M_listMaps = "listMaps";
String M_count = "count";
String M_countNoLimit = "countNoLimit";
String M_delete = "delete";
String M_batchCrud = "batchCrud";
/**
* RichEntity save 方法
*/
String RE_Save = "save";
/**
* RichEntity updateById 方法
*/
String RE_UpdateById = "updateById";
/**
* RichEntity findById 方法
*/
String RE_FindById = "findById";
/**
* RichEntity deleteById 方法
*/
String RE_DeleteById = "deleteById";
/**
* RichEntity logicDeleteById 方法
*/
String RE_LogicDeleteById = "logicDeleteById";
/**
* RichEntity listByNotNull 方法
*/
String RE_ListByNotNull = "listByNotNull";
String F_Entity_Class = "entityClass";
}
|
[
"darui.wu@163.com"
] |
darui.wu@163.com
|
0559aedee7e7dff4ec4ed91315a3ab1811789924
|
678a3d58c110afd1e9ce195d2f20b2531d45a2e0
|
/sources/com/airbnb/android/cohosting/activities/AcceptCohostInvitationActivity$$Lambda$4.java
|
5d1e2cec6cf7c924ca9d6d17dcc3495ec0e942d5
|
[] |
no_license
|
jasonnth/AirCode
|
d1c37fb9ba3d8087efcdd9fa2103fb85d13735d5
|
d37db1baa493fca56f390c4205faf5c9bbe36604
|
refs/heads/master
| 2020-07-03T08:35:24.902940
| 2019-08-12T03:34:56
| 2019-08-12T03:34:56
| 201,842,970
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 740
|
java
|
package com.airbnb.android.cohosting.activities;
import android.view.View;
import android.view.View.OnClickListener;
final /* synthetic */ class AcceptCohostInvitationActivity$$Lambda$4 implements OnClickListener {
private final AcceptCohostInvitationActivity arg$1;
private AcceptCohostInvitationActivity$$Lambda$4(AcceptCohostInvitationActivity acceptCohostInvitationActivity) {
this.arg$1 = acceptCohostInvitationActivity;
}
public static OnClickListener lambdaFactory$(AcceptCohostInvitationActivity acceptCohostInvitationActivity) {
return new AcceptCohostInvitationActivity$$Lambda$4(acceptCohostInvitationActivity);
}
public void onClick(View view) {
this.arg$1.finish();
}
}
|
[
"thanhhuu2apc@gmail.com"
] |
thanhhuu2apc@gmail.com
|
ba42b699b011db53af12032cf52cbe282522bfa1
|
e56b192d8b091b30894cf96055a9722f956905ff
|
/springcloud-client/src/main/java/com/wwjd/eurekaclient/controller/RabbitMQController.java
|
f21f22aad1a7bdf940da501d0abc1e31fc11d963
|
[] |
no_license
|
wanwujiedao/spring-cloud-study
|
49afbbc1a3d975a79adc720072202ad746cae9e5
|
f547d3ad12dd43e6da53259ec88122ee97e03beb
|
refs/heads/master
| 2021-09-24T21:23:46.398211
| 2018-10-15T01:43:40
| 2018-10-15T01:43:40
| 110,647,408
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,276
|
java
|
package com.wwjd.eurekaclient.controller;
import com.wwjd.eurekaclient.rabbitmq.Send;
import com.wwjd.eurekaclient.rabbitmq.SendHasCallBack;
import com.wwjd.eurekaclient.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* @author 董朱旭
* @version BUILD1001
* @fileName com.wwjd.eurekaclient.controller.RabbitMQControlle.java
* @CopyRright (c) 2017-bxm:杭州微财科技有限公司
* @created 2017-11-14 13:36:00
* @modifier 董朱旭
* @updated 2017-11-14 13:36:00
* @description
*/
@RestController
public class RabbitMQController {
@Autowired
private Send send;
@Autowired
private SendHasCallBack sendHasCallBack;
@GetMapping("/rabbit")
public ResultUtil<String> sendMsg(@RequestParam(name = "msg") String msg){
send.sendMsg(msg);
return new ResultUtil<>(1200,"ok!",msg);
}
@GetMapping("/rabbit/callbacl")
public ResultUtil<String> sendMsgCallback(@RequestParam(name = "msg") String msg){
sendHasCallBack.sendMsg(msg);
return new ResultUtil<>(1200,"ok!",msg);
}
}
|
[
"1"
] |
1
|
840ead14fcb65ca4cec1370f749fffd4ee040e14
|
6f649ef39ce23adb0b1cc6d3e55b7e6bdc0afc50
|
/src/native/com/stmtnode/primitive/value/SizeofTypeNativeNode.java
|
1f75dd89c25420da8353d3e94d284dcf7a01c86d
|
[] |
no_license
|
bernardobreder/stmtnode-shell
|
d23042ffeb5e1df26486158bdc50dfd653c3f2a0
|
23102ada1723d352aee659a7cfdc43be4a3e38f1
|
refs/heads/master
| 2021-05-09T05:28:15.804390
| 2018-02-19T22:03:06
| 2018-02-19T22:03:06
| 119,310,635
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 536
|
java
|
package com.stmtnode.primitive.value;
import com.stmtnode.primitive.NativeCodeOutput;
import com.stmtnode.primitive.type.TypeNativeNode;
public class SizeofTypeNativeNode extends ValueNativeNode {
public final TypeNativeNode type;
/**
* @param type
*/
public SizeofTypeNativeNode(TypeNativeNode type) {
super();
this.type = type;
}
/**
* {@inheritDoc}
*/
@Override
public void writeToC(NativeCodeOutput output) {
output.write("sizeof");
output.write('(');
type.writeToC(output);
output.write(')');
}
}
|
[
"bernardobreder@gmail.com"
] |
bernardobreder@gmail.com
|
c8357960b21562b80b0b200c2903c35cec4acc4c
|
09dd033f6b7e831924dd85ecf6c8a692d431db7c
|
/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/policies/EndpointDiagramEndpointCompartmentItemSemanticEditPolicy.java
|
4bdff09df77dbe2966ffec91921364917ad59452
|
[
"Apache-2.0"
] |
permissive
|
sumuditha-viraj/developer-studio
|
354c4402b3f4667344b0454f585f3aca9589b858
|
cef47b9847bed96c241b9a070bfa00ecc6716ef0
|
refs/heads/master
| 2021-01-17T23:44:15.476712
| 2018-08-22T07:34:53
| 2018-08-22T07:34:53
| 30,071,053
| 0
| 0
| null | 2015-01-30T16:10:08
| 2015-01-30T12:29:53
|
Java
|
UTF-8
|
Java
| false
| false
| 2,625
|
java
|
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.policies;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.AddressEndPoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.DefaultEndPoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.FailoverEndPoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.HTTPEndpoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.LoadBalanceEndPoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.RecipientListEndPoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.TemplateEndpoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.WSDLEndPoint2CreateCommand;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.providers.EsbElementTypes;
/**
* @generated
*/
public class EndpointDiagramEndpointCompartmentItemSemanticEditPolicy extends
EsbBaseItemSemanticEditPolicy {
/**
* @generated
*/
public EndpointDiagramEndpointCompartmentItemSemanticEditPolicy() {
super(EsbElementTypes.EndpointDiagram_3642);
}
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
if (EsbElementTypes.DefaultEndPoint_3643 == req.getElementType()) {
return getGEFWrapper(new DefaultEndPoint2CreateCommand(req));
}
if (EsbElementTypes.AddressEndPoint_3646 == req.getElementType()) {
return getGEFWrapper(new AddressEndPoint2CreateCommand(req));
}
if (EsbElementTypes.FailoverEndPoint_3649 == req.getElementType()) {
return getGEFWrapper(new FailoverEndPoint2CreateCommand(req));
}
if (EsbElementTypes.RecipientListEndPoint_3696 == req.getElementType()) {
return getGEFWrapper(new RecipientListEndPoint2CreateCommand(req));
}
if (EsbElementTypes.WSDLEndPoint_3653 == req.getElementType()) {
return getGEFWrapper(new WSDLEndPoint2CreateCommand(req));
}
if (EsbElementTypes.LoadBalanceEndPoint_3656 == req.getElementType()) {
return getGEFWrapper(new LoadBalanceEndPoint2CreateCommand(req));
}
if (EsbElementTypes.HTTPEndpoint_3712 == req.getElementType()) {
return getGEFWrapper(new HTTPEndpoint2CreateCommand(req));
}
if (EsbElementTypes.TemplateEndpoint_3725 == req.getElementType()) {
return getGEFWrapper(new TemplateEndpoint2CreateCommand(req));
}
return super.getCreateCommand(req);
}
}
|
[
"harshana@wso2.com"
] |
harshana@wso2.com
|
e99ff1d2f03409c2651a153759e29e85e4d3038a
|
7bb3e77181bce2fd222ae3d1b87431b10f2b3461
|
/clevercloud/sourcesOLD/org/clever/Common/Communicator/ModuleCommunicator.java
|
c83fc41a17ba322057430ef383aeece0ef3b644a
|
[] |
no_license
|
apanarello/cleverNew
|
457abbced532d5635b68e3b58ed4924e6e035cbd
|
e9cb034c2c821742d2a9bd8d5956b44c06fb341f
|
refs/heads/master
| 2021-01-25T10:29:29.894358
| 2015-02-25T12:00:52
| 2015-02-25T12:00:52
| 22,683,614
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,903
|
java
|
/*
* Copyright (c) 2010 Filippo Bua
* Copyright (c) 2010 Maurizio Paone
* Copyright (c) 2010 Francesco Tusa
* Copyright (c) 2010 Massimo Villari
* Copyright (c) 2010 Antonio Celesti
* Copyright (c) 2010 Antonio Nastasi
*
* 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.clever.Common.Communicator;
import org.clever.Common.Exceptions.CleverException;
import org.clever.Common.XMLTools.FileStreamer;
import org.clever.Common.XMLTools.MessageFormatter;
import org.clever.Common.XMLTools.ParserXML;
import java.io.IOException;
import javax.management.Notification;
import org.apache.log4j.*;
import java.util.Properties;
import java.io.InputStream;
public class ModuleCommunicator implements MessageHandler {
private CommunicationPlugin cp;
private Agent invokerHandler;
//private NotifyEventHandler eventHandler;
private Logger logger;
public ModuleCommunicator(String moduleName, String group) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException {
logger = Logger.getLogger("ModuleCommunicator");
try {
Properties prop = new Properties();
InputStream in = getClass().getResourceAsStream("/org/clever/Common/Shared/logger.properties");
prop.load(in);
PropertyConfigurator.configure(prop);
} catch (java.lang.NullPointerException e) {
throw new java.lang.NullPointerException("Missing logger.properties");
}
try {
FileStreamer fs = new FileStreamer();
InputStream inxml = getClass().getResourceAsStream("/org/clever/Common/Communicator/configuration_communicator.xml");
ParserXML pXML = new ParserXML(fs.xmlToString(inxml));
//Class c = Class.forName(pXML.getElementContent("communicationPlugin")+"."+pXML.getElementContent("communicationPlugin"));
//Attenzione ho dovuto integrare il nome del package all'interno del file
//di configurazione del plugin
Class c = Class.forName(pXML.getElementContent("communicationPlugin"));
cp = (CommunicationPlugin) c.newInstance();
cp.init(moduleName, group);
} catch (IOException ex) {
logger.error("Error while initializing Module Communicator", ex);
}
cp.setMessageHandler(this);
}
@Override
public String handleMessage(String msg) throws CleverException {
Object rcvd = MessageFormatter.objectFromMessage(msg);
Object obj;
logger.debug(">:( sono qui");
if (rcvd instanceof MethodInvoker) {
try {
obj = invokerHandler.handleInvocation((MethodInvoker) rcvd);
} catch (CleverException ex) {
//TODO throw CleverException
logger.error("Error on method invocation: " + ex.getMessage());
throw ex;
}
return (MessageFormatter.messageFromObject(obj));
} else {
logger.debug("Sono nel ELSE del handleMessage");
//eventHandler.handleNotification( ( Notification ) rcvd );
return (null);
}
}
public Object invoke(MethodInvoker method) throws CleverException {
if (method.getHasReturn()) {
logger.debug("Before sendRecv with has return: " + method.getModule());
logger.debug("!!!SONO QUI!!!"+method.getMethodName());
String s = cp.sendRecv(method.getModule(), MessageFormatter.messageFromObject(method));
logger.debug("After sendRecv with has return :" + s);
Object result = null;
if (s != null) {
result = MessageFormatter.objectFromMessage(s);
}
logger.debug("Result :" + result);
if (result instanceof CleverException) {
logger.debug("Exception received :");
throw (CleverException) result;
}
return (result);
} else {
logger.debug("SendRecv without has return ");
cp.asyncSend(method.getModule(), MessageFormatter.messageFromObject(method));
return (null);
}
}
/*
* public void notifyEvent( String module, Notification notify ) throws
* CleverException { cp.asyncSend( module,
* MessageFormatter.messageFromObject( notify ) );
}
*/
public Agent getMethodInvokerHandler() {
return (invokerHandler);
}
public void setMethodInvokerHandler(Agent invokerHandler) {
this.invokerHandler = invokerHandler;
}
/*
* public NotifyEventHandler getNotifyEventHandler() { return ( eventHandler
* );
}
*/
/*
* public void setNotifyEventHandler( NotifyEventHandler eventHandler ) {
* this.eventHandler = eventHandler;
}
*/
}
|
[
"apanarello@apanarello.(none)"
] |
apanarello@apanarello.(none)
|
770aad173f15a77f2b8c3739837cd6725a22ce42
|
083c8f766ca7c409bdba73027e3f2a2ca68b9a3c
|
/ashesJSuite/benchmarks/gj/executionInput/soot/jimple/parser/node/AIdentityNoTypeStatement.java
|
dbf47abbc2229d11d0ac7b98e31803d00a8cac49
|
[] |
no_license
|
petablox/petablox-bench
|
08fe7cdd27219e44aeb269e934e9605756c57d8e
|
7d2671cc50d775c1c70a3df381b8cc161ced3c16
|
refs/heads/master
| 2021-09-22T20:37:52.437177
| 2018-09-16T00:41:52
| 2018-09-16T00:41:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,294
|
java
|
/* This file was generated by SableCC (http://www.sable.mcgill.ca/sablecc/). */
package soot.jimple.parser.node;
import java.util.*;
import soot.jimple.parser.analysis.*;
public final class AIdentityNoTypeStatement extends PStatement
{
private PLocalName _localName_;
private TColonEquals _colonEquals_;
private TAtIdentifier _atIdentifier_;
private TSemicolon _semicolon_;
public AIdentityNoTypeStatement()
{
}
public AIdentityNoTypeStatement(
PLocalName _localName_,
TColonEquals _colonEquals_,
TAtIdentifier _atIdentifier_,
TSemicolon _semicolon_)
{
setLocalName(_localName_);
setColonEquals(_colonEquals_);
setAtIdentifier(_atIdentifier_);
setSemicolon(_semicolon_);
}
public Object clone()
{
return new AIdentityNoTypeStatement(
(PLocalName) cloneNode(_localName_),
(TColonEquals) cloneNode(_colonEquals_),
(TAtIdentifier) cloneNode(_atIdentifier_),
(TSemicolon) cloneNode(_semicolon_));
}
public void apply(Switch sw)
{
((Analysis) sw).caseAIdentityNoTypeStatement(this);
}
public PLocalName getLocalName()
{
return _localName_;
}
public void setLocalName(PLocalName node)
{
if(_localName_ != null)
{
_localName_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
_localName_ = node;
}
public TColonEquals getColonEquals()
{
return _colonEquals_;
}
public void setColonEquals(TColonEquals node)
{
if(_colonEquals_ != null)
{
_colonEquals_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
_colonEquals_ = node;
}
public TAtIdentifier getAtIdentifier()
{
return _atIdentifier_;
}
public void setAtIdentifier(TAtIdentifier node)
{
if(_atIdentifier_ != null)
{
_atIdentifier_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
_atIdentifier_ = node;
}
public TSemicolon getSemicolon()
{
return _semicolon_;
}
public void setSemicolon(TSemicolon node)
{
if(_semicolon_ != null)
{
_semicolon_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
_semicolon_ = node;
}
public String toString()
{
return ""
+ toString(_localName_)
+ toString(_colonEquals_)
+ toString(_atIdentifier_)
+ toString(_semicolon_);
}
void removeChild(Node child)
{
if(_localName_ == child)
{
_localName_ = null;
return;
}
if(_colonEquals_ == child)
{
_colonEquals_ = null;
return;
}
if(_atIdentifier_ == child)
{
_atIdentifier_ = null;
return;
}
if(_semicolon_ == child)
{
_semicolon_ = null;
return;
}
}
void replaceChild(Node oldChild, Node newChild)
{
if(_localName_ == oldChild)
{
setLocalName((PLocalName) newChild);
return;
}
if(_colonEquals_ == oldChild)
{
setColonEquals((TColonEquals) newChild);
return;
}
if(_atIdentifier_ == oldChild)
{
setAtIdentifier((TAtIdentifier) newChild);
return;
}
if(_semicolon_ == oldChild)
{
setSemicolon((TSemicolon) newChild);
return;
}
}
}
|
[
"aditya@fir10.gtisc.gatech.edu"
] |
aditya@fir10.gtisc.gatech.edu
|
5843c0b814d3a81a282973746ddad74c1b1b8880
|
61602d4b976db2084059453edeafe63865f96ec5
|
/com/xunlei/downloadprovider/shortvideo/videodetail/a/ad.java
|
ec730533837ea753611d3545c74a145aa25d735d
|
[] |
no_license
|
ZoranLi/thunder
|
9d18fd0a0ec0a5bb3b3f920f9413c1ace2beb4d0
|
0778679ef03ba1103b1d9d9a626c8449b19be14b
|
refs/heads/master
| 2020-03-20T23:29:27.131636
| 2018-06-19T06:43:26
| 2018-06-19T06:43:26
| 137,848,886
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,631
|
java
|
package com.xunlei.downloadprovider.shortvideo.videodetail.a;
import android.view.View;
import com.xunlei.downloadprovider.R;
import com.xunlei.downloadprovider.shortvideo.entity.VideoUserInfo;
import com.xunlei.downloadprovider.shortvideo.videodetail.a.ap.a;
import com.xunlei.downloadprovider.shortvideo.videodetail.model.c;
import com.xunlei.downloadprovider.shortvideo.videodetail.widget.ShortMoviePublisherInfoView;
/* compiled from: PublisherInfoInnerViewHolder */
public final class ad {
public ShortMoviePublisherInfoView a;
private View b;
private a c;
private VideoUserInfo d = null;
private c e = null;
public ad(View view, a aVar) {
this.b = view;
this.c = aVar;
this.a = (ShortMoviePublisherInfoView) this.b.findViewById(R.id.short_movie_publisher_info_view);
this.a.setListener(this.c);
this.a.setBackgroundColor(view.getContext().getResources().getColor(R.color.white));
this.a.setDividerVisibility(null);
}
public final void a(VideoUserInfo videoUserInfo, c cVar) {
StringBuilder stringBuilder = new StringBuilder("bindData. (videoUserInfo == null): ");
boolean z = false;
stringBuilder.append(videoUserInfo == null);
stringBuilder.append(" (followInfo == null)");
if (cVar == null) {
z = true;
}
stringBuilder.append(z);
this.d = videoUserInfo;
this.e = cVar;
videoUserInfo = this.a;
VideoUserInfo videoUserInfo2 = this.d;
c cVar2 = this.e;
videoUserInfo.a(videoUserInfo2);
videoUserInfo.a(cVar2);
}
}
|
[
"lizhangliao@xiaohongchun.com"
] |
lizhangliao@xiaohongchun.com
|
4499e9e197b6d1f8655dd745415759e33ab7bd2a
|
5f2afe2a6371a4d68d2532266a448c8c3d5c7d13
|
/jc101-password/src/test/java/fr/bmartel/passwords/Password.java
|
a75bded0cc4c54b64ccf307e8b59099dc3c732d4
|
[
"MIT"
] |
permissive
|
bertrandmartel/javacard-tutorial
|
6c9caed8064641b8d63aa405b25691d95145fb81
|
82ebc12cf640eb4b1e646aeaddc716fa243b5800
|
refs/heads/master
| 2021-08-28T14:37:08.151069
| 2018-11-06T21:50:44
| 2018-11-06T21:50:44
| 102,047,648
| 26
| 10
|
MIT
| 2021-09-01T18:19:05
| 2017-08-31T21:38:13
|
Java
|
UTF-8
|
Java
| false
| false
| 609
|
java
|
package fr.bmartel.passwords;
import fr.bmartel.helloworld.util.TestUtils;
public class Password {
private byte[] id;
private byte[] username;
private byte[] password;
public Password(byte[] id, byte[] username, byte[] password) {
this.id = id;
this.username = username;
this.password = password;
}
public byte[] getFullApdu() {
return TestUtils.concatByteArray(id, username, password);
}
public byte[] getId() {
return id;
}
public byte[] getData() {
return TestUtils.concatByteArray(username, password);
}
}
|
[
"bmartel.fr@gmail.com"
] |
bmartel.fr@gmail.com
|
e77fd55392c878b3e49fabc7d9b5b65b46170e50
|
d42072b4bcb2f254fbf22416ad7c3405e98c3edb
|
/14_Spring_MVC_Form_Simple/src/main/java/ua/service/SpecificationStringService.java
|
e2ab4750412916a7e26cc22f76d27761a11c644e
|
[] |
no_license
|
SokolSerhiy/Logos
|
ec8423581d14d98fa768b8be45264f0e245d73a8
|
6f4f62b2abc9d5688695778edc69363dd1b39192
|
refs/heads/master
| 2021-01-01T20:35:03.276125
| 2017-08-20T23:02:35
| 2017-08-20T23:02:35
| 41,263,797
| 15
| 23
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 196
|
java
|
package ua.service;
import java.util.List;
import ua.entity.SpecificationString;
public interface SpecificationStringService {
List<SpecificationString> findAll();
void delete(int id);
}
|
[
"sokol.serhij@gmail.com"
] |
sokol.serhij@gmail.com
|
9001a76fd9804bbdc3cbb2220afde4ddd759adc6
|
543b609a4d5e008134884fc9eb4a3fb4d80c9135
|
/rdf/src/main/java/com/globalmentor/rdf/RDFPlainLiteral.java
|
7344b5123de60b147a8fe48c6c99bac5ef2b7a71
|
[] |
no_license
|
globalmentor/globalmentor-rdf
|
dc586b360b22f26b3ebd902e979c608696a75bf6
|
494eee69e659ee26c865b4acad4fb671b0bc0cb4
|
refs/heads/main
| 2022-10-17T13:13:56.305290
| 2022-10-06T21:51:50
| 2022-10-06T21:51:50
| 229,635,978
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,128
|
java
|
/*
* Copyright © 1996-2008 GlobalMentor, Inc. <https://www.globalmentor.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
*
* 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 com.globalmentor.rdf;
import java.text.Collator;
import java.util.Locale;
import static java.util.Objects.*;
import com.globalmentor.model.LocaledText;
/**
* Represents a plain RDF literal.
* @author Garret Wilson
*/
public class RDFPlainLiteral extends RDFLiteral {
/** The lexical form, a Unicode string in Normal Form C. */
private final String lexicalForm;
/** @return The lexical form, a Unicode string in Normal Form C. */
public String getLexicalForm() {
return lexicalForm;
}
/**
* The language of the plain literal, or <code>null</code> if there is no language specified.
*/
private Locale language;
/** @return The language of the plain literal, or <code>null</code> if there is no language specified. */
public Locale getLanguage() {
return language;
}
/** @return A locale-aware representation of the literal's lexical form, indicating any locale information available. */
public LocaledText toLocaleText() {
return new LocaledText(getLexicalForm(), getLanguage()); //return the text and the language
}
/**
* Constructs a plain literal with a lexical value.
* @param lexicalValue The lexical form of the literal.
* @throws NullPointerException if the given lexical value is <code>null</code>.
*/
public RDFPlainLiteral(final String lexicalValue) {
this(lexicalValue, null); //construct a plain literal with no language specified
}
/**
* Constructs a plain literal with a lexical value and a language.
* @param lexicalValue The lexical form of the literal.
* @param languageLocale A locale representing the language, or <code>null</code> if no language should be specified.
* @throws NullPointerException if the given lexical value is <code>null</code>.
*/
public RDFPlainLiteral(final String lexicalValue, final Locale languageLocale) {
lexicalForm = requireNonNull(lexicalValue, "Lexical value cannot be null."); //set the lexical form
language = languageLocale; //set the language locale
}
//TODO update hashCode() to work take into account the language
/**
* Returns an initialized collator appropriate for comparing this literal to another.
* <p>
* This version returns a language-specific collator if both literals specify languages and both languages are the same. Otherwise, the default collator for
* the default locale is returned. This is done to ensure that all non-same-language literals will get sorted the same way, regardless of order of comparison.
* </p>
* @return A collator appropriate for comparing this literal to the given literal.
* @see #initializeCollator(Collator)
*/
protected Collator getCollator(final RDFLiteral literal) {
final Locale language1 = getLanguage(); //get our language
if(language1 != null) { //if we have a language
if(literal instanceof RDFPlainLiteral) { //if both literals are plain literals
final RDFPlainLiteral plainLiteral = (RDFPlainLiteral)literal; //cast the literal to a plain literal
final Locale language2 = plainLiteral.getLanguage(); //get the language of the plain literal
if(language1.equals(language2)) { //if we and the other literal have the same languages, we'll use a collator for that language
return initializeCollator(Collator.getInstance(language1)); //get a collator using whatever locale we're in and initialize it
}
}
}
return super.getCollator(literal); //if the other literal isn't a plain literal, or it has a different language, return the default collator
}
}
|
[
"garret@globalmentor.com"
] |
garret@globalmentor.com
|
69a6dc3a624b43d2fd0c2efee73efcff5f35f033
|
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
|
/google/cloud/aiplatform/v1beta1/google-cloud-aiplatform-v1beta1-java/proto-google-cloud-aiplatform-v1beta1-java/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineStateProto.java
|
9fb5dfe0acb5a8a65a2197f76c18ef268ca614e7
|
[
"Apache-2.0"
] |
permissive
|
dizcology/googleapis-gen
|
74a72b655fba2565233e5a289cfaea6dc7b91e1a
|
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
|
refs/heads/master
| 2023-06-04T15:51:18.380826
| 2021-06-16T20:42:38
| 2021-06-16T20:42:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 2,040
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/pipeline_state.proto
package com.google.cloud.aiplatform.v1beta1;
public final class PipelineStateProto {
private PipelineStateProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n4google/cloud/aiplatform/v1beta1/pipeli" +
"ne_state.proto\022\037google.cloud.aiplatform." +
"v1beta1\032\034google/api/annotations.proto*\223\002" +
"\n\rPipelineState\022\036\n\032PIPELINE_STATE_UNSPEC" +
"IFIED\020\000\022\031\n\025PIPELINE_STATE_QUEUED\020\001\022\032\n\026PI" +
"PELINE_STATE_PENDING\020\002\022\032\n\026PIPELINE_STATE" +
"_RUNNING\020\003\022\034\n\030PIPELINE_STATE_SUCCEEDED\020\004" +
"\022\031\n\025PIPELINE_STATE_FAILED\020\005\022\035\n\031PIPELINE_" +
"STATE_CANCELLING\020\006\022\034\n\030PIPELINE_STATE_CAN" +
"CELLED\020\007\022\031\n\025PIPELINE_STATE_PAUSED\020\010B\206\001\n#" +
"com.google.cloud.aiplatform.v1beta1B\022Pip" +
"elineStateProtoP\001ZIgoogle.golang.org/gen" +
"proto/googleapis/cloud/aiplatform/v1beta" +
"1;aiplatformb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
});
com.google.api.AnnotationsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
d12479df2749cf77a72be3eacabce8d1aef0f0ce
|
dda81b93a12e0695dc1c85a6a8ca3785f2e36e23
|
/spigot/work/decompile-93a89a75/net/minecraft/server/ItemBlock.java
|
001e20d644690c224e793f961fc28b14fbbb4f4d
|
[] |
no_license
|
skychwang/MindCraft
|
a4a8a337738b884af6ecc65c133b314418757a7d
|
48923ed1c2b9fbc807a61619cc17001312082b83
|
refs/heads/master
| 2023-07-20T14:36:48.872240
| 2021-09-07T20:00:04
| 2021-09-07T20:00:04
| 336,148,107
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,594
|
java
|
package net.minecraft.server;
import java.util.Iterator;
import java.util.Map;
import javax.annotation.Nullable;
public class ItemBlock extends Item {
@Deprecated
private final Block a;
public ItemBlock(Block block, Item.Info item_info) {
super(item_info);
this.a = block;
}
@Override
public EnumInteractionResult a(ItemActionContext itemactioncontext) {
EnumInteractionResult enuminteractionresult = this.a(new BlockActionContext(itemactioncontext));
return enuminteractionresult != EnumInteractionResult.SUCCESS && this.isFood() ? this.a(itemactioncontext.e, itemactioncontext.b, itemactioncontext.c).a() : enuminteractionresult;
}
public EnumInteractionResult a(BlockActionContext blockactioncontext) {
if (!blockactioncontext.b()) {
return EnumInteractionResult.FAIL;
} else {
BlockActionContext blockactioncontext1 = this.b(blockactioncontext);
if (blockactioncontext1 == null) {
return EnumInteractionResult.FAIL;
} else {
IBlockData iblockdata = this.c(blockactioncontext1);
if (iblockdata == null) {
return EnumInteractionResult.FAIL;
} else if (!this.a(blockactioncontext1, iblockdata)) {
return EnumInteractionResult.FAIL;
} else {
BlockPosition blockposition = blockactioncontext1.getClickPosition();
World world = blockactioncontext1.getWorld();
EntityHuman entityhuman = blockactioncontext1.getEntity();
ItemStack itemstack = blockactioncontext1.getItemStack();
IBlockData iblockdata1 = world.getType(blockposition);
Block block = iblockdata1.getBlock();
if (block == iblockdata.getBlock()) {
iblockdata1 = this.a(blockposition, world, itemstack, iblockdata1);
this.a(blockposition, world, entityhuman, itemstack, iblockdata1);
block.postPlace(world, blockposition, iblockdata1, entityhuman, itemstack);
if (entityhuman instanceof EntityPlayer) {
CriterionTriggers.y.a((EntityPlayer) entityhuman, blockposition, itemstack);
}
}
SoundEffectType soundeffecttype = iblockdata1.r();
world.playSound(entityhuman, blockposition, this.a(iblockdata1), SoundCategory.BLOCKS, (soundeffecttype.a() + 1.0F) / 2.0F, soundeffecttype.b() * 0.8F);
itemstack.subtract(1);
return EnumInteractionResult.SUCCESS;
}
}
}
}
protected SoundEffect a(IBlockData iblockdata) {
return iblockdata.r().e();
}
@Nullable
public BlockActionContext b(BlockActionContext blockactioncontext) {
return blockactioncontext;
}
protected boolean a(BlockPosition blockposition, World world, @Nullable EntityHuman entityhuman, ItemStack itemstack, IBlockData iblockdata) {
return a(world, entityhuman, blockposition, itemstack);
}
@Nullable
protected IBlockData c(BlockActionContext blockactioncontext) {
IBlockData iblockdata = this.getBlock().getPlacedState(blockactioncontext);
return iblockdata != null && this.b(blockactioncontext, iblockdata) ? iblockdata : null;
}
private IBlockData a(BlockPosition blockposition, World world, ItemStack itemstack, IBlockData iblockdata) {
IBlockData iblockdata1 = iblockdata;
NBTTagCompound nbttagcompound = itemstack.getTag();
if (nbttagcompound != null) {
NBTTagCompound nbttagcompound1 = nbttagcompound.getCompound("BlockStateTag");
BlockStateList<Block, IBlockData> blockstatelist = iblockdata.getBlock().getStates();
Iterator iterator = nbttagcompound1.getKeys().iterator();
while (iterator.hasNext()) {
String s = (String) iterator.next();
IBlockState<?> iblockstate = blockstatelist.a(s);
if (iblockstate != null) {
String s1 = nbttagcompound1.get(s).asString();
iblockdata1 = a(iblockdata1, iblockstate, s1);
}
}
}
if (iblockdata1 != iblockdata) {
world.setTypeAndData(blockposition, iblockdata1, 2);
}
return iblockdata1;
}
private static <T extends Comparable<T>> IBlockData a(IBlockData iblockdata, IBlockState<T> iblockstate, String s) {
return (IBlockData) iblockstate.b(s).map((comparable) -> {
return (IBlockData) iblockdata.set(iblockstate, comparable);
}).orElse(iblockdata);
}
protected boolean b(BlockActionContext blockactioncontext, IBlockData iblockdata) {
EntityHuman entityhuman = blockactioncontext.getEntity();
VoxelShapeCollision voxelshapecollision = entityhuman == null ? VoxelShapeCollision.a() : VoxelShapeCollision.a((Entity) entityhuman);
return (!this.d() || iblockdata.canPlace(blockactioncontext.getWorld(), blockactioncontext.getClickPosition())) && blockactioncontext.getWorld().a(iblockdata, blockactioncontext.getClickPosition(), voxelshapecollision);
}
protected boolean d() {
return true;
}
protected boolean a(BlockActionContext blockactioncontext, IBlockData iblockdata) {
return blockactioncontext.getWorld().setTypeAndData(blockactioncontext.getClickPosition(), iblockdata, 11);
}
public static boolean a(World world, @Nullable EntityHuman entityhuman, BlockPosition blockposition, ItemStack itemstack) {
MinecraftServer minecraftserver = world.getMinecraftServer();
if (minecraftserver == null) {
return false;
} else {
NBTTagCompound nbttagcompound = itemstack.b("BlockEntityTag");
if (nbttagcompound != null) {
TileEntity tileentity = world.getTileEntity(blockposition);
if (tileentity != null) {
if (!world.isClientSide && tileentity.isFilteredNBT() && (entityhuman == null || !entityhuman.isCreativeAndOp())) {
return false;
}
NBTTagCompound nbttagcompound1 = tileentity.save(new NBTTagCompound());
NBTTagCompound nbttagcompound2 = nbttagcompound1.clone();
nbttagcompound1.a(nbttagcompound);
nbttagcompound1.setInt("x", blockposition.getX());
nbttagcompound1.setInt("y", blockposition.getY());
nbttagcompound1.setInt("z", blockposition.getZ());
if (!nbttagcompound1.equals(nbttagcompound2)) {
tileentity.load(nbttagcompound1);
tileentity.update();
return true;
}
}
}
return false;
}
}
@Override
public String getName() {
return this.getBlock().l();
}
@Override
public void a(CreativeModeTab creativemodetab, NonNullList<ItemStack> nonnulllist) {
if (this.a(creativemodetab)) {
this.getBlock().a(creativemodetab, nonnulllist);
}
}
public Block getBlock() {
return this.a;
}
public void a(Map<Block, Item> map, Item item) {
map.put(this.getBlock(), item);
}
}
|
[
"sky.wang@yahoo.com"
] |
sky.wang@yahoo.com
|
84177e9243f6e198537b3dbd8fe271b0003b8948
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/3/3_df717447b36fac8520c7d3781b73b9224057fcca/GetData/3_df717447b36fac8520c7d3781b73b9224057fcca_GetData_t.java
|
00f1ed2902a70fbe31fad812632e46d77ca8536f
|
[] |
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,635
|
java
|
package alma.logoot.network;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class GetData
*/
public class GetData extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public GetData() {
super();
}
private void proceed(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
System.out
.println("Begin for session: "
+ request.getSession(true).getId());
response.setHeader("pragma", "no-cache,no-store");
response.setHeader("cache-control",
"no-cache,no-store,max-age=0,max-stale=0");
response.setHeader("Accept-Charset", "utf-8");
response.setContentType("text/event-stream;charset=utf-8;");
response.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
// int messagesSent = 0;
/*
* ouverture socket
*/
String clientSentence;
System.out.println("GetData : Creation de la socket sur le port 9990");
ServerSocket welcomeSocket = new ServerSocket(NetworkServiceImpl.PORTCLIENT);
while (true) {
System.out.println("GetData : Acceptation de la socket");
Socket connectionSocket = welcomeSocket.accept();
BufferedReader inFromClient = new BufferedReader(
new InputStreamReader(connectionSocket.getInputStream()));
// clientSentence = inFromClient.readLine();
char[] buffer=new char[4096];
inFromClient.read(buffer);
clientSentence=(new String(buffer).trim().replaceAll("\n", "<br>"));
out.print("data: " + clientSentence + "\n\n");
out.flush();
}
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
* response)
*/
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
System.out.println("here");
proceed(request, response);
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
* response)
*/
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
System.out.println("here");
proceed(request, response);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
2f241859085b1e9b8ec2427f887853d824e1baa3
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/MOCKITO-10b-8-16-Single_Objective_GGA-WeightedSum/org/mockito/internal/stubbing/defaultanswers/ReturnsDeepStubs_ESTest_scaffolding.java
|
999529583d07a11b6386273e843f268ad1628713
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Mar 31 12:09:49 UTC 2020
*/
package org.mockito.internal.stubbing.defaultanswers;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class ReturnsDeepStubs_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
57bd2f86871cd45397b00e9dfd9f698390a0238c
|
077ee93c95f74fdcf18069e5dd085dcd90f0adda
|
/智慧成绩可视化分析与错题辅助平台—匠心队/gradeAnalyse/src/main/java/com/ssm/controller/scorecontroller.java
|
43c0010c3b1f82f3f71ed8a0155a5327c36550c0
|
[] |
no_license
|
javasmall/YUNXIN-MINI-Challenge
|
aaa671f970a7a03639676341124867ac34df21ad
|
916da6010ca23c224a14eab4681c9f497b986bc8
|
refs/heads/master
| 2020-06-04T20:58:14.854264
| 2019-07-05T18:34:21
| 2019-07-05T18:34:21
| 192,189,578
| 0
| 0
| null | 2019-06-16T12:41:35
| 2019-06-16T12:41:34
| null |
UTF-8
|
Java
| false
| false
| 4,106
|
java
|
package com.ssm.controller;
import com.ssm.bean.score;
import com.ssm.dao.scoreMapper;
import com.ssm.service.scoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Controller
public class scorecontroller {
@Autowired(required = false)
private scoreMapper scoremapper;
@Autowired(required = false)
private scoreService scoreservice;
@RequestMapping(value = "/score", method = RequestMethod.GET)
@ResponseBody
public List<score> score() {
return scoremapper.findAll();
}
//����ѧ���÷����
@RequestMapping(value = "/studentscore", method = RequestMethod.GET)
@ResponseBody
public List<score> studentscore(String id, String lesson) {
return scoremapper.findbyid(Long.parseLong(id), lesson);
}
@GetMapping("/getproblemscorebystuid")
@ResponseBody
public List<Map<String,Object>>getproblemscorebystuid(String lesson,long studentid,String testname)
{
return scoremapper.getproblemscorebystuid(lesson,studentid,testname);
}
//������Ŀ�ĵ÷����
@RequestMapping(value = "/getproblemscore", method = RequestMethod.GET)
@ResponseBody
public List<Map<String, Object>> studentrank(String lesson, long classid, int index, String test) {
return scoremapper.getproblemscore(lesson, classid, index, test);
}
@RequestMapping(value = "/getwaproblem", method = RequestMethod.GET)
@ResponseBody
public List<Map<String, Object>> getwrongcount(long id, double pecent, String test, String lesson) {
return scoremapper.getwacount(id, pecent, test, lesson);
}
@RequestMapping(value = "/getscorebypoint")
@ResponseBody
public List<Map<String, Object>> getscorebypoint(String testname, long stuid, String lessonname) {
return scoreservice.getscorebypoint(testname, stuid, lessonname);
}
@RequestMapping(value = "/getscorebytype")
@ResponseBody
public List<Map<String, Object>> getscorebytype(String testname, long stuid, String lessonname) {
return scoreservice.getscorebytype(testname, stuid, lessonname);
}
/*
������Ҫ����
*/
@RequestMapping(value = "/getmosterrorbypoint")
@ResponseBody
public List<Map<String, Object>> getmosterrorbypoint(String testname, String lesson, String stuid) {
int id = 1;
if (testname != null) {
String num = testname.substring(testname.length() - 2);
if (testname.charAt(0) < '0' || testname.charAt(2) > '9') {
num = num.substring(1);
}
id = Integer.parseInt(num);//
}
List<String> list = new ArrayList<String>();
for (int i = 0; i < id; i++) {
list.add("test" + (i + 1));
System.out.println(list.get(i));
}
return scoreservice.getmosterrorbypoint(list, lesson, Long.parseLong(stuid), list.size());
}
@RequestMapping(value = "/getmosterrorbytype")
@ResponseBody
public List<Map<String, Object>> getmosterrorbytype(String testname, String lesson, String stuid) {
int num = Integer.parseInt(testname.substring(testname.length() - 1));
List<String> list = new ArrayList<String>();
for (int i = 0; i < num; i++) {
list.add("test" + (i + 1));
System.out.println(list.get(i));
}
return scoreservice.getmosterrorbytype(list, lesson, Long.parseLong(stuid), list.size());
}
// @RequestMapping(value = "/score", method = RequestMethod.GET)
// public String score( ModelMap model) {
// model.addAttribute("score", scoremapper.findAll().get(0));
// return "index";
// }
}
|
[
"1315426911@qq.com"
] |
1315426911@qq.com
|
f1474e9b0e6491bbe4c2fe81379c16f8bf96d962
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/32/32_a15d014996effb32d60501b981bc26359a344d66/OrderInfo/32_a15d014996effb32d60501b981bc26359a344d66_OrderInfo_t.java
|
848eec0bd962632950b9c035247fdc902724e400
|
[] |
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
| 578
|
java
|
package com.ecwid.mailchimp.method.v2_0.ecomm;
import java.util.Date;
import java.util.List;
import com.ecwid.mailchimp.MailChimpObject;
public class OrderInfo extends MailChimpObject {
@Field
public String id;
@Field
public String campaign_id;
@Field
public String email_id;
@Field
public Double total;
@Field
public Date order_date;
@Field
public Double shipping;
@Field
public Double tax;
@Field
public String store_id;
@Field
public String store_name;
@Field
public List<OrderItemInfo> items;
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
9aa0981a293b1676e5ee9980a5774d26e40aaeef
|
03d61086047f041168f9a77b02a63a9af83f0f3f
|
/newrelic/src/main/java/com/newrelic/agent/deps/com/google/common/cache/LoadingCache.java
|
dba488e27a8b367389fd2decceec49c866f3b471
|
[] |
no_license
|
masonmei/mx2
|
fa53a0b237c9e2b5a7c151999732270b4f9c4f78
|
5a4adc268ac1e52af1adf07db7a761fac4c83fbf
|
refs/heads/master
| 2021-01-25T10:16:14.807472
| 2015-07-30T21:49:33
| 2015-07-30T21:49:35
| 39,944,476
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 836
|
java
|
//
// Decompiled by Procyon v0.5.29
//
package com.newrelic.agent.deps.com.google.common.cache;
import java.util.concurrent.ConcurrentMap;
import com.newrelic.agent.deps.com.google.common.collect.ImmutableMap;
import java.util.concurrent.ExecutionException;
import com.newrelic.agent.deps.com.google.common.annotations.GwtCompatible;
import com.newrelic.agent.deps.com.google.common.annotations.Beta;
import com.newrelic.agent.deps.com.google.common.base.Function;
@Beta
@GwtCompatible
public interface LoadingCache<K, V> extends Cache<K, V>, Function<K, V>
{
V get(K p0) throws ExecutionException;
V getUnchecked(K p0);
ImmutableMap<K, V> getAll(Iterable<? extends K> p0) throws ExecutionException;
@Deprecated
V apply(K p0);
void refresh(K p0);
ConcurrentMap<K, V> asMap();
}
|
[
"dongxu.m@gmail.com"
] |
dongxu.m@gmail.com
|
1fc441d48f3718d576779ca1e90bc7b01c7df919
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas/applicationModule/src/test/java/applicationModulepackageJava17/Foo651Test.java
|
0d0959f9430b8c8c15e1d8a166a4e70dfc8ebb6a
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 482
|
java
|
package applicationModulepackageJava17;
import org.junit.Test;
public class Foo651Test {
@Test
public void testFoo0() {
new Foo651().foo0();
}
@Test
public void testFoo1() {
new Foo651().foo1();
}
@Test
public void testFoo2() {
new Foo651().foo2();
}
@Test
public void testFoo3() {
new Foo651().foo3();
}
@Test
public void testFoo4() {
new Foo651().foo4();
}
@Test
public void testFoo5() {
new Foo651().foo5();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
67812f7d063b696240039c2053bf520cbd17a2c2
|
de7b67d4f8aa124f09fc133be5295a0c18d80171
|
/workspace_java-src/java-src-test/src/sun/util/calendar/Gregorian.java
|
abf694756af9bee0f63782da85ab8f46ae37e4a9
|
[] |
no_license
|
lin-lee/eclipse_workspace_test
|
adce936e4ae8df97f7f28965a6728540d63224c7
|
37507f78bc942afb11490c49942cdfc6ef3dfef8
|
refs/heads/master
| 2021-05-09T10:02:55.854906
| 2018-01-31T07:19:02
| 2018-01-31T07:19:02
| 119,460,523
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,340
|
java
|
/*
* %W% %E%
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package sun.util.calendar;
import java.util.TimeZone;
/**
* Gregorian calendar implementation.
*
* @author Masayoshi Okutsu
* @since 1.5
*/
public class Gregorian extends BaseCalendar {
static class Date extends BaseCalendar.Date {
protected Date() {
super();
}
protected Date(TimeZone zone) {
super(zone);
}
public int getNormalizedYear() {
return getYear();
}
public void setNormalizedYear(int normalizedYear) {
setYear(normalizedYear);
}
}
Gregorian() {
}
public String getName() {
return "gregorian";
}
public Date getCalendarDate() {
return getCalendarDate(System.currentTimeMillis(), newCalendarDate());
}
public Date getCalendarDate(long millis) {
return getCalendarDate(millis, newCalendarDate());
}
public Date getCalendarDate(long millis, CalendarDate date) {
return (Date) super.getCalendarDate(millis, date);
}
public Date getCalendarDate(long millis, TimeZone zone) {
return getCalendarDate(millis, newCalendarDate(zone));
}
public Date newCalendarDate() {
return new Date();
}
public Date newCalendarDate(TimeZone zone) {
return new Date(zone);
}
}
|
[
"lilin@lvmama.com"
] |
lilin@lvmama.com
|
1cdc2ccaf7a3c4e143a57f69a59e5f69439dcc66
|
2f4a058ab684068be5af77fea0bf07665b675ac0
|
/app/com/facebook/common/collect/TopologicalSort$Node.java
|
83505059e0ac6672fa30aefa2794f3b94e082a16
|
[] |
no_license
|
cengizgoren/facebook_apk_crack
|
ee812a57c746df3c28fb1f9263ae77190f08d8d2
|
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
|
refs/heads/master
| 2021-05-26T14:44:04.092474
| 2013-01-16T08:39:00
| 2013-01-16T08:39:00
| 8,321,708
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 744
|
java
|
package com.facebook.common.collect;
import com.google.common.collect.Lists;
import java.util.List;
public class TopologicalSort$Node<T>
{
public final T a;
final List<TopologicalSort.Edge<T>> b;
final List<TopologicalSort.Edge<T>> c;
public TopologicalSort$Node(T paramT)
{
this.a = paramT;
this.b = Lists.a();
this.c = Lists.a();
}
public void a(Node<T> paramNode)
{
TopologicalSort.Edge localEdge = new TopologicalSort.Edge(this, paramNode);
this.c.add(localEdge);
paramNode.b.add(localEdge);
}
}
/* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar
* Qualified Name: com.facebook.common.collect.TopologicalSort.Node
* JD-Core Version: 0.6.0
*/
|
[
"macluz@msn.com"
] |
macluz@msn.com
|
ee16e5101e4fa6a93273a50dba186813238385ea
|
d1fd0c4703f46b854103d442e14569dc7b2a8b68
|
/libraries/FFMpeg/src/main/java/com/nativelibs4java/ffmpeg/avfilter/AVFilterBufferRefAudioProps.java
|
a53ab14282c11a3f77859fc4a3a6b7b681eb135f
|
[] |
no_license
|
jonhare/nativelibs4java
|
ba239d2dee11156d6e6cc57c28b41b8c6d8100e1
|
07565be828ad8bb7d8dad9051616f16d40a9d16a
|
refs/heads/master
| 2020-12-25T17:45:59.682097
| 2020-10-17T14:14:52
| 2020-10-17T14:14:52
| 5,001,967
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,769
|
java
|
package com.nativelibs4java.ffmpeg.avfilter;
import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.Field;
import org.bridj.ann.Library;
/**
* <i>native declaration : libavfilter/avfilter.h</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
*/
@Library("avfilter")
public class AVFilterBufferRefAudioProps extends StructObject {
public AVFilterBufferRefAudioProps() {
super();
}
public AVFilterBufferRefAudioProps(Pointer pointer) {
super(pointer);
}
/// < channel layout of audio buffer
@Field(0)
public long channel_layout() {
return this.io.getLongField(this, 0);
}
/// < channel layout of audio buffer
@Field(0)
public AVFilterBufferRefAudioProps channel_layout(long channel_layout) {
this.io.setLongField(this, 0, channel_layout);
return this;
}
public final long channel_layout_$eq(long channel_layout) {
channel_layout(channel_layout);
return channel_layout;
}
/// < number of audio samples
@Field(1)
public int nb_samples() {
return this.io.getIntField(this, 1);
}
/// < number of audio samples
@Field(1)
public AVFilterBufferRefAudioProps nb_samples(int nb_samples) {
this.io.setIntField(this, 1, nb_samples);
return this;
}
public final int nb_samples_$eq(int nb_samples) {
nb_samples(nb_samples);
return nb_samples;
}
/// < audio buffer size
@Field(2)
public int size() {
return this.io.getIntField(this, 2);
}
/// < audio buffer size
@Field(2)
public AVFilterBufferRefAudioProps size(int size) {
this.io.setIntField(this, 2, size);
return this;
}
public final int size_$eq(int size) {
size(size);
return size;
}
/// < audio buffer sample rate
@Field(3)
public int sample_rate() {
return this.io.getIntField(this, 3);
}
/// < audio buffer sample rate
@Field(3)
public AVFilterBufferRefAudioProps sample_rate(int sample_rate) {
this.io.setIntField(this, 3, sample_rate);
return this;
}
public final int sample_rate_$eq(int sample_rate) {
sample_rate(sample_rate);
return sample_rate;
}
/// < audio buffer - planar or packed
@Field(4)
public int planar() {
return this.io.getIntField(this, 4);
}
/// < audio buffer - planar or packed
@Field(4)
public AVFilterBufferRefAudioProps planar(int planar) {
this.io.setIntField(this, 4, planar);
return this;
}
public final int planar_$eq(int planar) {
planar(planar);
return planar;
}
}
|
[
"olivier.chafik@gmail.com"
] |
olivier.chafik@gmail.com
|
3242db71abee12c91bdb8633cbd6adf38b675877
|
9f38c66cd0b9a5dc252e6af9a3adc804915ff0e9
|
/java/src/designpatterns/gof/designpatterns/gof/creational/simplefactory/demo/Main.java
|
0d854fcf0213330fd158e7902ffa2caabe99390a
|
[
"MIT"
] |
permissive
|
vuquangtin/designpattern
|
4d4a7d09780a0ebde6b12f8edf589b6f45b38f62
|
fc672493ef31647bd02c4122ab01992fca14675f
|
refs/heads/master
| 2022-09-12T07:00:42.637733
| 2020-09-29T04:20:50
| 2020-09-29T04:20:50
| 225,505,298
| 0
| 0
| null | 2022-09-01T23:16:34
| 2019-12-03T01:41:33
|
Java
|
UTF-8
|
Java
| false
| false
| 294
|
java
|
package designpatterns.gof.creational.simplefactory.demo;
public class Main {
public static void main(String[] args) {
Operation oper = OperationFactory.createOperation("*");
oper.setNumberA(5);
oper.setNumberB(3);
double result = oper.getResult();
System.out.println(result);
}
}
|
[
"tinvuquang@admicro.vn"
] |
tinvuquang@admicro.vn
|
c029b5cd4f257b73cfd700b2a2b44bdff4a9bcdc
|
99aa42fafa8d430c3e349d3daa788aca4bddd410
|
/src/main/java/sprint/boot/starter/topic/model/Topic.java
|
f9c9ed7a4853fcd2b4b306b5ca1634c24a8ab240
|
[] |
no_license
|
pankajnimgade/Spring_Boot
|
74a162b8ca246a44967df732d2b2c770963b20dc
|
8bbba68ea1fca12042f4c01cc60c0f0e452b675b
|
refs/heads/master
| 2021-05-08T16:21:22.551174
| 2018-04-08T01:33:12
| 2018-04-08T01:33:12
| 120,152,716
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 768
|
java
|
package sprint.boot.starter.topic.model;
public class Topic {
private String id;
private String name;
private String description;
public Topic() {
}
public Topic(String id, String name, String description) {
this();
this.id = id;
this.name = name;
this.description = description;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
|
[
"pankaj.nimgade@gmail.com"
] |
pankaj.nimgade@gmail.com
|
b744a9e58eb39574eef6ed762e486222dacb4eca
|
05948ca1cd3c0d2bcd65056d691c4d1b2e795318
|
/classes/com/alimama/listener/MMULoopImageListener.java
|
da03d7dc6322d84fe384780f5f15bffdccc18918
|
[] |
no_license
|
waterwitness/xiaoenai
|
356a1163f422c882cabe57c0cd3427e0600ff136
|
d24c4d457d6ea9281a8a789bc3a29905b06002c6
|
refs/heads/master
| 2021-01-10T22:14:17.059983
| 2016-10-08T08:39:11
| 2016-10-08T08:39:11
| 70,317,042
| 0
| 8
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 551
|
java
|
package com.alimama.listener;
import com.alimama.config.MMUAdInfo;
import java.util.List;
public abstract interface MMULoopImageListener
{
public abstract void onClicked(String paramString);
public abstract void onRequestAdFail(String paramString, int paramInt);
public abstract void onRequestAdSuccess(String paramString, List<MMUAdInfo> paramList);
}
/* Location: E:\apk\xiaoenai2\classes-dex2jar.jar!\com\alimama\listener\MMULoopImageListener.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
73c7908778f4dc855bd7f078b7bbbe2b6160e1e1
|
82c51770e255de26cee7a8a67fc217f4ab6f9d47
|
/src/main/java/com/newheart/video/newheartvideo/NewheartVideoApplication.java
|
a01953d601cf5bf2a899a848bc1ea096b7ffa080
|
[] |
no_license
|
Mr2692685776/xdvideo
|
61846cd7a7cc82b1abd32cd3f80cb87a2a008b98
|
2dfdcd3cf5e1126d5b239e6af9a1aa7348060062
|
refs/heads/master
| 2022-06-25T23:23:20.690957
| 2020-02-29T01:39:32
| 2020-02-29T01:39:32
| 242,167,375
| 0
| 0
| null | 2022-06-21T02:52:39
| 2020-02-21T15:12:46
|
Java
|
UTF-8
|
Java
| false
| false
| 455
|
java
|
package com.newheart.video.newheartvideo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.newheart.video.newheartvideo.mapper")
public class NewheartVideoApplication {
public static void main(String[] args) {
SpringApplication.run(NewheartVideoApplication.class, args);
}
}
|
[
"1"
] |
1
|
e14e8ed323c53d88f25189a090af929d3d57802e
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/DrJava/rev3734-3786/right-branch-3786/src/edu/rice/cs/drjava/ui/SimpleInteractionsWindow.java
|
d1006c2919d3faf423e45658ac6224002b46e845
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,990
|
java
|
package edu.rice.cs.drjava.ui;
import javax.swing.*;
import java.awt.Font;
import java.awt.event.*;
import java.io.File;
import edu.rice.cs.drjava.config.FileOption;
import edu.rice.cs.drjava.model.repl.*;
public class SimpleInteractionsWindow extends JFrame {
private final SimpleInteractionsModel _model;
private final InteractionsDJDocument _adapter;
private final InteractionsPane _pane;
private final InteractionsController _controller;
public SimpleInteractionsWindow() { this("Interactions Window"); }
public SimpleInteractionsWindow(String title) {
super(title);
setSize(600, 400);
_adapter = new InteractionsDJDocument();
_model = new SimpleInteractionsModel(_adapter);
_pane = new InteractionsPane(_adapter) {
public int getPromptPos() {
return _model.getDocument().getPromptPos();
}
};
_controller = new InteractionsController(_model, _adapter, _pane);
_pane.setFont(Font.decode("monospaced"));
_model.addListener(new InteractionsListener() {
public void interactionStarted() { _pane.setEditable(false); }
public void interactionEnded() {
_controller.moveToPrompt();
_pane.setEditable(true);
}
public void interpreterResetting() { _pane.setEditable(false); }
public void interactionErrorOccurred(int offset, int length) { _pane.highlightError(offset, length); }
public void interpreterReady(File wd) {
_controller.moveToPrompt();
_pane.setEditable(true);
}
public void interpreterExited(int status) { }
public void interpreterChanged(boolean inProgress) { _pane.setEditable(inProgress); }
public void interpreterResetFailed(Throwable t) { interpreterReady(FileOption.NULL_FILE); }
public void interactionIncomplete() {
int caretPos = _pane.getCaretPosition();
_controller.getConsoleDoc().insertNewLine(caretPos);
}
public void slaveJVMUsed() { }
});
JScrollPane scroll = new JScrollPane(_pane);
getContentPane().add(scroll);
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent ev) { close(); }
});
}
protected void close() { System.exit(0); }
public InteractionsController getController() { return _controller; }
public void defineVariable(String name, Object value) { _model.defineVariable(name, value); }
public void defineConstant(String name, Object value) { _model.defineConstant(name, value); }
public void setInterpreterPrivateAccessible(boolean accessible) {
_model.setInterpreterPrivateAccessible(accessible);
}
public static void main(String[] args) {
SimpleInteractionsWindow w = new SimpleInteractionsWindow();
if (args.length > 0 && args[0].equals("-debug")) {
w.defineVariable("FRAME", w);
w.defineVariable("CONTROLLER", w.getController());
w.setInterpreterPrivateAccessible(true);
}
w.setVisible(true);
}
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.