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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
068d7e12bc797068308e5c1e862b8904e0b6a860
|
34938115cdbc79cea7935f64db45998a0de2275c
|
/aws/core/src/test/java/org/jclouds/aws/ec2/compute/EucalyptusComputeServiceLiveTest.java
|
48bea286b217587481dcfadda7b2e5595ac5563d
|
[
"Apache-2.0"
] |
permissive
|
csamuel/jclouds
|
8ec15eae2500ecbf1e49d68566763ed1ddcb2e6c
|
f9a233274fb957822d08e4b65b017941b8b9579f
|
refs/heads/master
| 2021-01-18T13:22:15.978261
| 2010-10-27T04:02:33
| 2010-10-27T04:02:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,916
|
java
|
/**
*
* Copyright (C) 2010 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
package org.jclouds.aws.ec2.compute;
import static org.jclouds.compute.util.ComputeServiceUtils.getCores;
import static org.testng.Assert.assertEquals;
import org.jclouds.compute.domain.OsFamily;
import org.jclouds.compute.domain.Template;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
*
* @author Adrian Cole
*/
@Test(groups = "live", sequential = true, testName = "ec2.EucalyptusComputeServiceLiveTest")
public class EucalyptusComputeServiceLiveTest extends EC2ComputeServiceLiveTest {
public EucalyptusComputeServiceLiveTest() {
provider = "eucalyptus";
}
@BeforeClass
@Override
public void setServiceDefaults() {
// security groups must be <30 characters
tag = "euc";
}
@Override
protected void assertDefaultWorks() {
Template defaultTemplate = client.templateBuilder().build();
assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true);
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.CENTOS);
assertEquals(getCores(defaultTemplate.getHardware()), 2.0d);
}
}
|
[
"adrian@jclouds.org"
] |
adrian@jclouds.org
|
86f4086053c18e92e7ce2994834f6f8128c2b004
|
2217436bbd6ee532a403ef06f793d4df978fa9bd
|
/src/main/java/org/spongepowered/asm/mixin/injection/callback/CallbackInfo.java
|
26d6466a78ff433a744489263c902b080eb64c1d
|
[
"MIT"
] |
permissive
|
Aaron1011/Mixin
|
b4e32365ad9f181f69a8acbd821f6d66cb479a44
|
fc1742a54ef5f7a825cf68d5f17f75db270576fe
|
refs/heads/master
| 2021-01-23T02:30:01.179811
| 2014-12-24T15:59:48
| 2014-12-25T01:32:50
| 28,596,945
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,604
|
java
|
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.asm.mixin.injection.callback;
import org.objectweb.asm.Type;
/**
* CallbackInfo instances are passed to callbacks in order to provide information and handling opportunities to the callback to interact with the
* callback itself. For example by allowing the callback to be "cancelled" and return from a method prematurely.
*/
public class CallbackInfo implements Cancellable {
protected static final String STRING = "Ljava/lang/String;";
protected static final String OBJECT = "Ljava/lang/Object;";
/**
* Method name being injected into, this is useful if a single callback is injecting into multiple methods
*/
private final String name;
/**
* True if this callback is cancellable
*/
private final boolean cancellable;
/**
* True if this callback has been cancelled
*/
private boolean cancelled;
/**
* This ctor is always called by injected code
*/
public CallbackInfo(String name, boolean cancellable) {
this.name = name;
this.cancellable = cancellable;
}
/**
* Get the method name where this callback originated
*/
public String getName() {
return this.name;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return String.format("CallbackInfo[TYPE=%s,NAME=%s,CANCELLABLE=%s]", this.getClass().getSimpleName(), this.name, this.cancellable);
}
/* (non-Javadoc)
* @see org.spongepowered.asm.mixin.injection.callback.Cancellable#isCancellable()
*/
@Override
public final boolean isCancellable() {
return this.cancellable;
}
/* (non-Javadoc)
* @see org.spongepowered.asm.mixin.injection.callback.Cancellable#isCancelled()
*/
@Override
public final boolean isCancelled() {
return this.cancelled;
}
/* (non-Javadoc)
* @see org.spongepowered.asm.mixin.injection.callback.Cancellable#cancel()
*/
@Override
public void cancel() throws CancellationException {
if (!this.cancellable) {
throw new CancellationException(String.format("The call %s is not cancellable.", this.name));
}
this.cancelled = true;
}
// Methods below this point used by the CallbackInjector
static String getCallInfoClassName() {
return CallbackInfo.class.getName();
}
static String getCallInfoClassName(Type returnType) {
return (returnType.equals(Type.VOID_TYPE) ? CallbackInfo.class.getName() : CallbackInfoReturnable.class.getName()).replace('.', '/');
}
static String getConstructorDescriptor(Type returnType) {
if (returnType.equals(Type.VOID_TYPE)) {
return CallbackInfo.getConstructorDescriptor();
}
if (returnType.getSort() == Type.OBJECT) {
return String.format("(%sZ%s)V", CallbackInfo.STRING, CallbackInfo.OBJECT);
}
return String.format("(%sZ%s)V", CallbackInfo.STRING, returnType.getDescriptor());
}
static String getConstructorDescriptor() {
return String.format("(%sZ)V", CallbackInfo.STRING);
}
static String getIsCancelledMethodName() {
return "isCancelled";
}
static String getIsCancelledMethodSig() {
return "()Z";
}
}
|
[
"adam@eq2.co.uk"
] |
adam@eq2.co.uk
|
9cc4cc313a262d610a2aee3b8093ff3c51234a8c
|
95c82867f7233f4c48bc0aa9048080e52a4384c0
|
/app/src/main/java/com/furestic/office/ppt/lxs/docx/pdf/viwer/reader/free/fc/hssf/record/DrawingGroupRecord.java
|
80b1e07e2f2b4f2e163ff483e5a96d975e6d192e
|
[] |
no_license
|
MayBenz/AllDocsReader
|
b4f2d4b788545c0ed476f20c845824ea7057f393
|
1914cde82471cb2bc21e00bb5ac336706febfd30
|
refs/heads/master
| 2023-01-06T04:03:43.564202
| 2020-10-16T13:14:09
| 2020-10-16T13:14:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,890
|
java
|
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.hssf.record;
import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.ddf.EscherRecord;
import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.ddf.NullEscherSerializationListener;
import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.util.ArrayUtil;
import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.util.LittleEndian;
import java.util.Iterator;
import java.util.List;
public final class DrawingGroupRecord extends AbstractEscherHolderRecord {
public static final short sid = 0xEB;
static final int MAX_RECORD_SIZE = 8228;
private static final int MAX_DATA_SIZE = MAX_RECORD_SIZE - 4;
public DrawingGroupRecord()
{
}
public DrawingGroupRecord( RecordInputStream in )
{
super( in );
}
protected String getRecordName()
{
return "MSODRAWINGGROUP";
}
public short getSid()
{
return sid;
}
public int serialize(int offset, byte[] data)
{
byte[] rawData = getRawData();
if (getEscherRecords().size() == 0 && rawData != null)
{
return writeData( offset, data, rawData );
}
byte[] buffer = new byte[getRawDataSize()];
int pos = 0;
for (Iterator iterator = getEscherRecords().iterator(); iterator.hasNext(); )
{
EscherRecord r = (EscherRecord) iterator.next();
pos += r.serialize(pos, buffer, new NullEscherSerializationListener() );
}
return writeData( offset, data, buffer );
}
/**
* Process the bytes into escher records.
* (Not done by default in case we break things,
* unless you set the "poi.deserialize.escher"
* system property)
*/
public void processChildRecords() {
convertRawBytesToEscherRecords();
}
public int getRecordSize() {
// TODO - convert this to a RecordAggregate
return grossSizeFromDataSize(getRawDataSize());
}
private int getRawDataSize() {
List escherRecords = getEscherRecords();
byte[] rawData = getRawData();
if (escherRecords.size() == 0 && rawData != null)
{
return rawData.length;
}
int size = 0;
for (Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )
{
EscherRecord r = (EscherRecord) iterator.next();
size += r.getRecordSize();
}
return size;
}
static int grossSizeFromDataSize(int dataSize)
{
return dataSize + ( (dataSize - 1) / MAX_DATA_SIZE + 1 ) * 4;
}
private int writeData( int offset, byte[] data, byte[] rawData )
{
int writtenActualData = 0;
int writtenRawData = 0;
while (writtenRawData < rawData.length)
{
int segmentLength = Math.min( rawData.length - writtenRawData, MAX_DATA_SIZE);
if (writtenRawData / MAX_DATA_SIZE >= 2)
writeContinueHeader( data, offset, segmentLength );
else
writeHeader( data, offset, segmentLength );
writtenActualData += 4;
offset += 4;
ArrayUtil.arraycopy( rawData, writtenRawData, data, offset, segmentLength );
offset += segmentLength;
writtenRawData += segmentLength;
writtenActualData += segmentLength;
}
return writtenActualData;
}
private void writeHeader( byte[] data, int offset, int sizeExcludingHeader )
{
LittleEndian.putShort(data, 0 + offset, getSid());
LittleEndian.putShort(data, 2 + offset, (short) sizeExcludingHeader);
}
private void writeContinueHeader( byte[] data, int offset, int sizeExcludingHeader )
{
LittleEndian.putShort(data, 0 + offset, ContinueRecord.sid);
LittleEndian.putShort(data, 2 + offset, (short) sizeExcludingHeader);
}
}
|
[
"zeeshanhayat61@gmail.com"
] |
zeeshanhayat61@gmail.com
|
2c153e5f7191de4603396f7a486e9a5374340ecf
|
8b6856b3ec10fb77c8af5980bd9beb6aa2e2d4a3
|
/service/dataresolver/src/main/java/com/alibaba/citrus/service/dataresolver/DataResolverException.java
|
a4bba9a6632c84dc4984d6e89277e21da99bb5c1
|
[
"Apache-2.0"
] |
permissive
|
huxiaohang/citrus
|
400a528895cd051ccd24b1ec690817c70aa067a5
|
f915cc1bb0389899adaaabb2eaf4e301517dbfa1
|
refs/heads/master
| 2020-12-25T12:27:43.092996
| 2011-11-05T09:18:10
| 2011-11-05T09:18:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,273
|
java
|
/*
* Copyright 2010 Alibaba Group Holding Limited.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.citrus.service.dataresolver;
/**
* 代表一个<code>DataResolver</code>查找的异常。
*
* @author Michael Zhou
*/
public class DataResolverException extends RuntimeException {
private static final long serialVersionUID = 4440104570457632691L;
public DataResolverException() {
}
public DataResolverException(String message, Throwable cause) {
super(message, cause);
}
public DataResolverException(String message) {
super(message);
}
public DataResolverException(Throwable cause) {
super(cause);
}
}
|
[
"yizhi@taobao.com"
] |
yizhi@taobao.com
|
27a072c8e5ade078433eab9122df4a2ccf9b6eb4
|
d664922140376541680caeff79873f21f64eb5aa
|
/branches/x/MC/src/net/sf/gap/mc/qagesa/agents/services/impl/mum/MuMRepository.java
|
86185f2e3f8262751ee229a7d7934169e83f805a
|
[] |
no_license
|
gnovelli/gap
|
7d4b6e2eb7e1c0e62e86d26147c5de9c558d62f7
|
fd1cac76504d10eb96294a768833a9bdb102e66f
|
refs/heads/master
| 2021-01-10T20:11:00.977571
| 2012-02-23T20:19:44
| 2012-02-23T20:19:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,775
|
java
|
/*
****************************************************************************************
* Copyright © Giovanni Novelli
* All Rights Reserved.
****************************************************************************************
*
* MuMRepository.java
*
* Created on 15 March 2007, 21.06
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*
* $Id: MuMRepository.java 344 2008-02-06 08:28:10Z gnovelli $
*
*/
package net.sf.gap.mc.qagesa.agents.services.impl.mum;
import java.util.Iterator;
import java.util.HashMap;
/**
*
* @author admin
*/
public class MuMRepository extends HashMap<String, GEList> {
/**
*
*/
private static final long serialVersionUID = 8523491610508912425L;
public boolean containsSE(GEList list, int se_id) {
boolean result = false;
Iterator it = list.iterator();
while (it.hasNext()) {
Integer id = (Integer) it.next();
if (id==se_id) {
result = true;
break;
}
}
return result;
}
public GEList put(String repTag, int se_id) {
GEList list;
if (this.containsKey(repTag)) {
list = this.get(repTag);
} else {
list = new GEList();
}
if (!this.containsSE(list, se_id)) {
list.add(se_id);
return this.put(repTag, list);
} else {
return list;
}
}
public GEList getGEList(String name) {
return this.get(name);
}
}
|
[
"giovanni.novelli@gmail.com"
] |
giovanni.novelli@gmail.com
|
7f5bafbae8548bc750e8879f3fc972dfd6d9afb2
|
6e57bdc0a6cd18f9f546559875256c4570256c45
|
/external/vogar/src/vogar/android/HostRuntime.java
|
948be555aebc0f518efc472a1d64d0c78cde6336
|
[
"Apache-2.0"
] |
permissive
|
dongdong331/test
|
969d6e945f7f21a5819cd1d5f536d12c552e825c
|
2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e
|
refs/heads/master
| 2023-03-07T06:56:55.210503
| 2020-12-07T04:15:33
| 2020-12-07T04:15:33
| 134,398,935
| 2
| 1
| null | 2022-11-21T07:53:41
| 2018-05-22T10:26:42
| null |
UTF-8
|
Java
| false
| false
| 6,392
|
java
|
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vogar.android;
import com.google.common.collect.Iterables;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import vogar.Action;
import vogar.Classpath;
import vogar.Mode;
import vogar.ModeId;
import vogar.Run;
import vogar.Toolchain;
import vogar.Variant;
import vogar.commands.VmCommandBuilder;
import vogar.tasks.MkdirTask;
import vogar.tasks.RunActionTask;
import vogar.tasks.Task;
/**
* Executes actions on a Dalvik or ART runtime on a Linux desktop.
*/
public final class HostRuntime implements Mode {
private final Run run;
private final ModeId modeId;
private final Variant variant;
public HostRuntime(Run run, ModeId modeId, Variant variant) {
if (!modeId.isHost() || !modeId.supportsVariant(variant)) {
throw new IllegalArgumentException("Unsupported mode:" + modeId +
" or variant: " + variant);
}
this.run = run;
this.modeId = modeId;
this.variant = variant;
}
@Override public Task executeActionTask(Action action, boolean useLargeTimeout) {
return new RunActionTask(run, action, useLargeTimeout);
}
private File dalvikCache() {
return run.localFile("android-data", run.dalvikCache);
}
@Override public Set<Task> installTasks() {
Set<Task> result = new HashSet<Task>();
for (File classpathElement : run.classpath.getElements()) {
// Libraries need to be dex'ed and put in the temporary directory.
String name = run.basenameOfJar(classpathElement);
File localDex = run.localDexFile(name);
File localTempDir = run.localDir(name);
result.add(createCreateDexJarTask(run.classpath, classpathElement, name,
null /* action */, localDex, localTempDir));
}
result.add(new MkdirTask(run.mkdir, dalvikCache()));
return result;
}
@Override public Set<Task> cleanupTasks(Action action) {
return Collections.emptySet();
}
@Override public Set<Task> installActionTasks(Action action, File jar) {
File localDexFile = run.localDexFile(action.getName());
File localTempDir = run.localDir(action.getName());
Task createDexJarTask = createCreateDexJarTask(Classpath.of(jar), jar, action.getName(),
action, localDexFile, localTempDir);
return Collections.singleton(createDexJarTask);
}
@Override public VmCommandBuilder newVmCommandBuilder(Action action, File workingDirectory) {
String hostOut = System.getenv("ANDROID_HOST_OUT");
if (hostOut == null || hostOut.length() == 0) {
hostOut = System.getenv("ANDROID_BUILD_TOP");
if (hostOut == null) {
hostOut = "";
} else {
hostOut += "/";
}
hostOut += "out/host/linux-x86";
}
List<File> jars = new ArrayList<File>();
for (String jar : modeId.getJarNames()) {
jars.add(new File(hostOut, "framework/" + jar + ".jar"));
}
Classpath bootClasspath = Classpath.of(jars);
String libDir = hostOut;
if (variant == Variant.X32) {
libDir += "/lib";
} else if (variant == Variant.X64) {
libDir += "/lib64";
} else {
throw new AssertionError("Unsupported variant:" + variant);
}
List<String> vmCommand = new ArrayList<String>();
Iterables.addAll(vmCommand, run.invokeWith());
vmCommand.add(hostOut + "/bin/" + run.vmCommand);
// If you edit this, see also DeviceRuntime...
VmCommandBuilder builder = new VmCommandBuilder(run.log)
.env("ANDROID_PRINTF_LOG", "tag")
.env("ANDROID_LOG_TAGS", "*:i")
.env("ANDROID_DATA", dalvikCache().getParent())
.env("ANDROID_ROOT", hostOut)
.env("LD_LIBRARY_PATH", libDir)
.env("DYLD_LIBRARY_PATH", libDir)
// This is needed on the host so that the linker loads core.oat at the necessary
// address.
.env("LD_USE_LOAD_BIAS", "1")
.vmCommand(vmCommand)
.vmArgs("-Xbootclasspath:" + bootClasspath.toString())
.vmArgs("-Duser.language=en")
.vmArgs("-Duser.region=US");
if (run.debugPort != null) {
builder.vmArgs(
"-Xcompiler-option", "--debuggable", "-Xplugin:libopenjdkjvmti.so",
"-agentpath:libjdwp.so=transport=dt_socket,address=" + run.debugPort
+ ",server=y,suspend=y");
}
if (!run.benchmark && run.checkJni) {
builder.vmArgs("-Xcheck:jni");
}
// dalvikvm defaults to no limit, but the framework sets the limit at 2000.
builder.vmArgs("-Xjnigreflimit:2000");
return builder;
}
@Override public Classpath getRuntimeClasspath(Action action) {
Classpath result = new Classpath();
result.addAll(run.localDexFile(action.getName()));
for (File classpathElement : run.classpath.getElements()) {
result.addAll(run.localDexFile(run.basenameOfJar(classpathElement)));
}
result.addAll(run.resourceClasspath);
return result;
}
private Task createCreateDexJarTask(Classpath classpath, File classpathElement, String name,
Action action, File localDex, File localTempDir) {
return new DexTask(run.toolchain.getDexer(), run.androidSdk, classpath, run.benchmark, name,
classpathElement, action, localDex, localTempDir, run.multidex);
}
}
|
[
"dongdong331@163.com"
] |
dongdong331@163.com
|
b2d5a2fa135927f8718752e16e963479e3adb101
|
a7cd1c3eb4a32b3955f6aba4a04fe544cf389b73
|
/demo/src/main/java/cn/bingoogolapple/refreshlayout/demo/ui/fragment/StickyNavRecyclerViewFragment.java
|
83c36f44306ff642902d2d9bd91451b0f2d88f9a
|
[
"Apache-2.0"
] |
permissive
|
rbqren000/BGARefreshLayout-Android
|
121a068af4fcb3a53390bcf51eab1a0ca16ceac2
|
c5bfc787ad28b2e59e02b1c0b88c83205e1a8419
|
refs/heads/master
| 2023-04-02T17:27:41.071375
| 2021-04-05T12:28:38
| 2021-04-05T12:28:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,645
|
java
|
package cn.bingoogolapple.refreshlayout.demo.ui.fragment;
import android.os.Bundle;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import cn.bingoogolapple.baseadapter.BGAOnItemChildClickListener;
import cn.bingoogolapple.baseadapter.BGAOnItemChildLongClickListener;
import cn.bingoogolapple.baseadapter.BGAOnRVItemClickListener;
import cn.bingoogolapple.baseadapter.BGAOnRVItemLongClickListener;
import cn.bingoogolapple.refreshlayout.BGARefreshLayout;
import cn.bingoogolapple.refreshlayout.demo.R;
import cn.bingoogolapple.refreshlayout.demo.adapter.NormalRecyclerViewAdapter;
import cn.bingoogolapple.refreshlayout.demo.model.RefreshModel;
import cn.bingoogolapple.refreshlayout.demo.ui.activity.MainActivity;
import cn.bingoogolapple.refreshlayout.demo.ui.activity.ViewPagerActivity;
import cn.bingoogolapple.refreshlayout.demo.util.ThreadUtil;
import cn.bingoogolapple.refreshlayout.demo.widget.Divider;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/**
* 作者:王浩 邮件:bingoogolapple@gmail.com
* 创建时间:15/9/27 下午12:38
* 描述:
*/
public class StickyNavRecyclerViewFragment extends BaseFragment implements BGAOnItemChildClickListener, BGAOnItemChildLongClickListener, BGAOnRVItemClickListener, BGAOnRVItemLongClickListener, BGARefreshLayout.BGARefreshLayoutDelegate {
private RecyclerView mDataRv;
private NormalRecyclerViewAdapter mAdapter;
private int mNewPageNumber = 0;
private int mMorePageNumber = 0;
@Override
protected void initView(Bundle savedInstanceState) {
setContentView(R.layout.fragment_recyclerview_sticky_nav);
mDataRv = getViewById(R.id.data);
}
@Override
protected void setListener() {
mAdapter = new NormalRecyclerViewAdapter(mDataRv);
mAdapter.setOnRVItemClickListener(this);
mAdapter.setOnRVItemLongClickListener(this);
mAdapter.setOnItemChildClickListener(this);
mAdapter.setOnItemChildLongClickListener(this);
}
@Override
protected void processLogic(Bundle savedInstanceState) {
mDataRv.addItemDecoration(new Divider(mApp));
// mDataRv.setLayoutManager(new GridLayoutManager(mApp, 2, GridLayoutManager.VERTICAL, false));
mDataRv.setLayoutManager(new LinearLayoutManager(mApp, LinearLayoutManager.VERTICAL, false));
mDataRv.setAdapter(mAdapter);
}
@Override
protected void onLazyLoadOnce() {
mNewPageNumber = 0;
mMorePageNumber = 0;
mEngine.loadInitDatas().enqueue(new Callback<List<RefreshModel>>() {
@Override
public void onResponse(Call<List<RefreshModel>> call, Response<List<RefreshModel>> response) {
mAdapter.setData(response.body());
}
@Override
public void onFailure(Call<List<RefreshModel>> call, Throwable t) {
}
});
}
@Override
public void onItemChildClick(ViewGroup viewGroup, View childView, int position) {
if (childView.getId() == R.id.tv_item_normal_delete) {
mAdapter.removeItem(position);
}
}
@Override
public boolean onItemChildLongClick(ViewGroup viewGroup, View childView, int position) {
if (childView.getId() == R.id.tv_item_normal_delete) {
showToast("长按了删除 " + mAdapter.getItem(position).title);
return true;
}
return false;
}
@Override
public void onRVItemClick(ViewGroup viewGroup, View itemView, int position) {
showToast("点击了条目 " + mAdapter.getItem(position).title);
}
@Override
public boolean onRVItemLongClick(ViewGroup viewGroup, View itemView, int position) {
showToast("长按了条目 " + mAdapter.getItem(position).title);
return true;
}
@Override
public void onBGARefreshLayoutBeginRefreshing(BGARefreshLayout refreshLayout) {
mNewPageNumber++;
if (mNewPageNumber > 4) {
((ViewPagerActivity) getActivity()).endRefreshing();
showToast("没有最新数据了");
return;
}
showLoadingDialog();
mEngine.loadNewData(mNewPageNumber).enqueue(new Callback<List<RefreshModel>>() {
@Override
public void onResponse(Call<List<RefreshModel>> call, final Response<List<RefreshModel>> response) {
// 数据放在七牛云上的比较快,这里加载完数据后模拟延时
ThreadUtil.runInUIThread(new Runnable() {
@Override
public void run() {
((ViewPagerActivity) getActivity()).endRefreshing();
dismissLoadingDialog();
mAdapter.addNewData(response.body());
mDataRv.smoothScrollToPosition(0);
}
}, MainActivity.LOADING_DURATION);
}
@Override
public void onFailure(Call<List<RefreshModel>> call, Throwable t) {
((ViewPagerActivity) getActivity()).endRefreshing();
dismissLoadingDialog();
}
});
}
@Override
public boolean onBGARefreshLayoutBeginLoadingMore(BGARefreshLayout refreshLayout) {
mMorePageNumber++;
if (mMorePageNumber > 4) {
((ViewPagerActivity) getActivity()).endLoadingMore();
showToast("没有更多数据了");
return false;
}
showLoadingDialog();
mEngine.loadMoreData(mMorePageNumber).enqueue(new Callback<List<RefreshModel>>() {
@Override
public void onResponse(Call<List<RefreshModel>> call, final Response<List<RefreshModel>> response) {
// 数据放在七牛云上的比较快,这里加载完数据后模拟延时
ThreadUtil.runInUIThread(new Runnable() {
@Override
public void run() {
((ViewPagerActivity) getActivity()).endLoadingMore();
dismissLoadingDialog();
mAdapter.addMoreData(response.body());
}
}, MainActivity.LOADING_DURATION);
}
@Override
public void onFailure(Call<List<RefreshModel>> call, Throwable t) {
((ViewPagerActivity) getActivity()).endLoadingMore();
dismissLoadingDialog();
}
});
return true;
}
}
|
[
"bingoogolapple@gmail.com"
] |
bingoogolapple@gmail.com
|
cf0062be533d90d2d28c21da43c68406f9599d86
|
7a0acc1c2e808c7d363043546d9581d21a129693
|
/jobbie/src/java/org/openqa/selenium/ie/TimedOutException.java
|
fc7a6142b7eb57d2c7f0f387c18ede2908c1f0b5
|
[
"Apache-2.0"
] |
permissive
|
epall/selenium
|
39b9759f8719a168b021b28e500c64afc5f83582
|
273260522efb84116979da2a499f64510250249b
|
refs/heads/master
| 2022-06-25T22:15:25.493076
| 2010-03-11T00:43:02
| 2010-03-11T00:43:02
| 552,908
| 3
| 0
|
Apache-2.0
| 2022-06-10T22:44:36
| 2010-03-08T19:10:45
|
C
|
UTF-8
|
Java
| false
| false
| 910
|
java
|
/*
Copyright 2009 WebDriver committers
Copyright 2009 Google 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 org.openqa.selenium.ie;
/**
* Represents an exception in the underlying IE instance, where the command did
* not complete in enough time
*/
public class TimedOutException extends IllegalStateException {
public TimedOutException(String message) {
super(message);
}
}
|
[
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] |
simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9
|
79add463d0e75783394f4d6f5b49a7bd346f4c33
|
d461286b8aa5d9606690892315a007062cb3e0f3
|
/src/main/java/egovframework/adm/lcms/cts/dao/LcmsManiseqDAO.java
|
559f57ccca93007648c603253e33468d2a5db547
|
[] |
no_license
|
leemiran/NISE_DEV
|
f85b26c78aaa5ffadc62c0512332c9bdfe5813b6
|
6b618946945d8afa08826cb98b5359f295ff0c73
|
refs/heads/master
| 2020-08-07T05:04:38.474163
| 2019-10-10T01:55:33
| 2019-10-10T01:55:33
| 212,016,199
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,897
|
java
|
/*
* LcmsManiseqDAO.java 1.00 2011-09-14
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the license agreement
* you entered into with um2m.
*/
package egovframework.adm.lcms.cts.dao;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
import egovframework.adm.lcms.cts.domain.LcmsManiseq;
/**
* <pre>
* system :
* menu :
* source : LcmsManiseqDAO.java
* description :
* </pre>
* @version
* <pre>
* 1.0 2011-09-14 created by ?
* 1.1
* </pre>
*/
@Repository("lcmsManiseqDAO")
public class LcmsManiseqDAO extends EgovAbstractDAO{
public List selectLcmsManiseqPageList( Map<String, Object> commandMap) throws Exception{
return list("lcmsManiseqDAO.selectLcmsManiseqPageList", commandMap);
}
public int selectLcmsManiseqPageListTotCnt( Map<String, Object> commandMap) throws Exception{
return (Integer)getSqlMapClientTemplate().queryForObject("lcmsManiseqDAO.selectLcmsManiseqPageListTotCnt", commandMap);
}
public List selectLcmsManiseqList( Map<String, Object> commandMap) throws Exception{
return list("lcmsManiseqDAO.selectLcmsManiseqPageList", commandMap);
}
public Object selectLcmsManiseq( Map<String, Object> commandMap) throws Exception{;
return (Object)getSqlMapClientTemplate().queryForObject("lcmsManiseqDAO.selectLcmsManiseq", commandMap);
}
public Object insertLcmsManiseq( Map<String, Object> commandMap) throws Exception{
return insert("lcmsManiseqDAO.insertLcmsManiseq", commandMap);
}
public int updateLcmsManiseq( Map<String, Object> commandMap) throws Exception{
return update("lcmsManiseqDAO.updateLcmsManiseq", commandMap);
}
public int updateFieldLcmsManiseq( Map<String, Object> commandMap) throws Exception{
return update("lcmsManiseqDAO.updateFieldLcmsManiseq", commandMap);
}
public int deleteLcmsManiseq( Map<String, Object> commandMap) throws Exception{
return delete("lcmsManiseqDAO.deleteLcmsManiseq", commandMap);
}
public int deleteLcmsManiseqAll( Map<String, Object> commandMap) throws Exception{
return delete("lcmsManiseqDAO.deleteAllLcmsManiseq", commandMap);
}
public int selectLcmsManiSeq( Map<String, Object> commandMap) throws Exception{
return (Integer)getSqlMapClientTemplate().queryForObject("lcmsManiseqDAO.selectLcmsManiSeq", commandMap);
}
public Object existLcmsManiseq( LcmsManiseq lcmsManiseq) throws Exception{
return (Object)getSqlMapClientTemplate().queryForObject("lcmsManiseqDAO.existLcmsManiseq", lcmsManiseq);
}
}
|
[
"knise@10.60.223.121"
] |
knise@10.60.223.121
|
e6420181074bb315612b736721e9b335db00a57e
|
f08256664e46e5ac1466f5c67dadce9e19b4e173
|
/sources/p163g/p201e/p203b/p316t/p317u/C7807c.java
|
a19b221b3c16d00f93423080c2352563ba779154
|
[] |
no_license
|
IOIIIO/DisneyPlusSource
|
5f981420df36bfbc3313756ffc7872d84246488d
|
658947960bd71c0582324f045a400ae6c3147cc3
|
refs/heads/master
| 2020-09-30T22:33:43.011489
| 2019-12-11T22:27:58
| 2019-12-11T22:27:58
| 227,382,471
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,548
|
java
|
package p163g.p201e.p203b.p316t.p317u;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.disney.disneyplus.R;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import p512h.p513c.p514k.C11888g;
@Metadata(mo31005bv = {1, 0, 3}, mo31006d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u0000 \r2\u00020\u0001:\u0001\rB\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0016J$\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\f2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0016¨\u0006\u000e"}, mo31007d2 = {"Lcom/bamtechmedia/dominguez/options/help/HelpTvFragment;", "Ldagger/android/support/DaggerDialogFragment;", "()V", "onCreate", "", "savedInstanceState", "Landroid/os/Bundle;", "onCreateView", "Landroid/view/View;", "inflater", "Landroid/view/LayoutInflater;", "container", "Landroid/view/ViewGroup;", "Companion", "tv_prodGoogleRelease"}, mo31008k = 1, mo31009mv = {1, 1, 15})
/* renamed from: g.e.b.t.u.c */
/* compiled from: HelpTvFragment.kt */
public final class C7807c extends C11888g {
/* renamed from: c */
private HashMap f16899c;
/* renamed from: g.e.b.t.u.c$a */
/* compiled from: HelpTvFragment.kt */
public static final class C7808a {
private C7808a() {
}
public /* synthetic */ C7808a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
static {
new C7808a(null);
}
public void _$_clearFindViewByIdCache() {
HashMap hashMap = this.f16899c;
if (hashMap != null) {
hashMap.clear();
}
}
public void onCreate(Bundle bundle) {
setStyle(2, 2132017164);
super.onCreate(bundle);
}
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.fragment_help_tv, viewGroup, false);
Intrinsics.checkReturnedValueIsNotNull((Object) inflate, "inflater.inflate(R.layou…elp_tv, container, false)");
return inflate;
}
public /* synthetic */ void onDestroyView() {
super.onDestroyView();
_$_clearFindViewByIdCache();
}
}
|
[
"101110@vivaldi.net"
] |
101110@vivaldi.net
|
15f5ac237256688f972ffb8e5b65e7cb32dbb809
|
54522b277caff432c858eba799cf9b6a7d777a54
|
/java/squeek/wailaharvestability/WailaHandler.java
|
b174c02346a844c772bbb870094f98bbcad9a1a0
|
[
"Unlicense"
] |
permissive
|
Vexatos/WailaHarvestability
|
7f99e6f572afd84c92ba9b3a5a5ba169751306b6
|
61bd311b3b6fa5190f322c9fbb50b491938f1090
|
refs/heads/master
| 2020-12-25T10:36:59.908567
| 2014-07-16T19:12:02
| 2014-07-16T19:12:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,963
|
java
|
package squeek.wailaharvestability;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import squeek.wailaharvestability.helpers.BlockHelper;
import squeek.wailaharvestability.helpers.ColorHelper;
import squeek.wailaharvestability.helpers.OreHelper;
import squeek.wailaharvestability.helpers.StringHelper;
import squeek.wailaharvestability.helpers.ToolHelper;
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
import mcp.mobius.waila.api.IWailaDataProvider;
import mcp.mobius.waila.api.IWailaRegistrar;
import mcp.mobius.waila.api.impl.ConfigHandler;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.ForgeHooks;
public class WailaHandler implements IWailaDataProvider
{
@Override
public ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config)
{
return null;
}
@Override
public List<String> getWailaHead(ItemStack itemStack, List<String> toolTip, IWailaDataAccessor accessor, IWailaConfigHandler config)
{
return toolTip;
}
@Override
public List<String> getWailaBody(ItemStack itemStack, List<String> toolTip, IWailaDataAccessor accessor, IWailaConfigHandler config)
{
Block block = accessor.getBlock();
int meta = accessor.getMetadata();
// for disguised blocks
if (itemStack.getItem() instanceof ItemBlock)
{
block = Block.blocksList[itemStack.itemID];
meta = itemStack.getItemDamage();
}
if (config.getConfig("harvestability.toolrequiredonly") && block.blockMaterial.isToolNotRequired())
return toolTip;
boolean isSneaking = accessor.getPlayer().isSneaking();
boolean showHarvestLevel = config.getConfig("harvestability.harvestlevel") && (!config.getConfig("harvestability.harvestlevel.sneakingonly") || isSneaking);
boolean showEffectiveTool = config.getConfig("harvestability.effectivetool") && (!config.getConfig("harvestability.effectivetool.sneakingonly") || isSneaking);
boolean showCurrentlyHarvestable = config.getConfig("harvestability.currentlyharvestable") && (!config.getConfig("harvestability.currentlyharvestable.sneakingonly") || isSneaking);
boolean showOresOnly = config.getConfig("harvestability.oresonly", false);
boolean minimalLayout = config.getConfig("harvestability.minimal", false);
boolean hideWhileHarvestable = config.getConfig("harvestability.unharvestableonly", false);
if (showHarvestLevel || showEffectiveTool || showCurrentlyHarvestable)
{
if (showOresOnly && !OreHelper.isItemAnOre(itemStack))
{
return toolTip;
}
String toolClasses[] = new String[]{"pickaxe", "shovel", "axe"};
int harvestLevels[] = new int[toolClasses.length];
boolean blockHasEffectiveTools = BlockHelper.getHarvestLevelsOf(block, meta, toolClasses, harvestLevels);
if (!blockHasEffectiveTools)
return toolTip;
int harvestLevel = -1;
String effectiveTool = "";
int i = 0;
for (String toolClass : toolClasses)
{
if (harvestLevels[i] >= 0)
{
harvestLevel = harvestLevels[i];
effectiveTool = toolClass;
break;
}
i++;
}
boolean canHarvest = false;
boolean isEffective = false;
boolean isAboveMinHarvestLevel = false;
boolean isHoldingTinkersTool = false;
ItemStack itemHeld = accessor.getPlayer().getHeldItem();
if (itemHeld != null)
{
isHoldingTinkersTool = ToolHelper.hasToolTag(itemHeld);
canHarvest = ToolHelper.canToolHarvestBlock(itemHeld, block, meta) || (!isHoldingTinkersTool && block.canHarvestBlock(accessor.getPlayer(), meta));
isAboveMinHarvestLevel = (showCurrentlyHarvestable || showHarvestLevel) && ToolHelper.canToolHarvestLevel(itemHeld, block, meta, harvestLevel);
isEffective = showEffectiveTool && ToolHelper.isToolEffectiveAgainst(itemHeld, block, meta, effectiveTool);
}
boolean isCurrentlyHarvestable = (canHarvest && isAboveMinHarvestLevel) || (!isHoldingTinkersTool && ForgeHooks.canHarvestBlock(block, accessor.getPlayer(), meta));
if (hideWhileHarvestable && isCurrentlyHarvestable)
return toolTip;
List<String> stringParts = new ArrayList<String>();
if (showCurrentlyHarvestable)
stringParts.add(ColorHelper.getBooleanColor(isCurrentlyHarvestable) + (isCurrentlyHarvestable ? Config.CURRENTLY_HARVESTABLE_STRING : Config.NOT_CURRENTLY_HARVESTABLE_STRING) + (!minimalLayout ? EnumChatFormatting.RESET + StatCollector.translateToLocal("wailaharvestability.currentlyharvestable") : ""));
if (harvestLevel != -1 && showEffectiveTool)
stringParts.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + StatCollector.translateToLocal("wailaharvestability.toolclass." + effectiveTool));
if (harvestLevel >= 1 && showHarvestLevel)
stringParts.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.harvestlevel") : "") + ColorHelper.getBooleanColor(isAboveMinHarvestLevel && canHarvest) + StringHelper.stripFormatting(StringHelper.getHarvestLevelName(harvestLevel)));
if (!stringParts.isEmpty())
{
if (minimalLayout)
toolTip.add(StringHelper.concatenateStringList(stringParts, EnumChatFormatting.RESET + Config.MINIMAL_SEPARATOR_STRING));
else
toolTip.addAll(stringParts);
}
}
return toolTip;
}
@Override
public List<String> getWailaTail(ItemStack itemStack, List<String> toolTip, IWailaDataAccessor accessor, IWailaConfigHandler config)
{
return toolTip;
}
public static HashMap<String, Boolean> configOptions = new HashMap<String, Boolean>();
static
{
configOptions.put("harvestability.harvestlevel", true);
configOptions.put("harvestability.effectivetool", true);
configOptions.put("harvestability.currentlyharvestable", true);
configOptions.put("harvestability.harvestlevel.sneakingonly", false);
configOptions.put("harvestability.effectivetool.sneakingonly", false);
configOptions.put("harvestability.currentlyharvestable.sneakingonly", false);
configOptions.put("harvestability.oresonly", false);
configOptions.put("harvestability.minimal", false);
configOptions.put("harvestability.unharvestableonly", false);
configOptions.put("harvestability.toolrequiredonly", true);
}
public static void callbackRegister(IWailaRegistrar registrar)
{
WailaHandler instance = new WailaHandler();
for (Map.Entry<String, Boolean> entry : configOptions.entrySet())
{
// hacky way to set default values to anything but true
ConfigHandler.instance().getConfig(entry.getKey(), entry.getValue());
registrar.addConfig("Harvestability", entry.getKey(), "option." + entry.getKey());
}
registrar.registerBodyProvider(instance, Block.class);
}
}
|
[
"squeek502@hotmail.com"
] |
squeek502@hotmail.com
|
f03118d8a9df1dd0a4ae30bb037b60ef61690dbd
|
96196a9b6c8d03fed9c5b4470cdcf9171624319f
|
/decompiled/com/google/android/gms/plus/model/moments/MomentBuffer.java
|
b966f38df3ccdd516ba251e30f93d413f84db4d1
|
[] |
no_license
|
manciuszz/KTU-Asmens-Sveikatos-Ugdymas
|
8ef146712919b0fb9ad211f6cb7cbe550bca10f9
|
41e333937e8e62e1523b783cdb5aeedfa1c7fcc2
|
refs/heads/master
| 2020-04-27T03:40:24.436539
| 2019-03-05T22:39:08
| 2019-03-05T22:39:08
| 174,031,152
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 436
|
java
|
package com.google.android.gms.plus.model.moments;
import com.google.android.gms.common.data.DataBuffer;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.internal.kr;
public final class MomentBuffer extends DataBuffer<Moment> {
public MomentBuffer(DataHolder dataHolder) {
super(dataHolder);
}
public Moment get(int position) {
return new kr(this.DG, position);
}
}
|
[
"evilquaint@gmail.com"
] |
evilquaint@gmail.com
|
6efa1c0cc25759b2b235fa97c3f84ec72514ac43
|
d2402ea937a0330e92ccaf6e1bfd8fc02e1b29c9
|
/src/com/ms/silverking/cloud/dht/TimeoutResponse.java
|
06f6f17633f600200de7a27640db01276e16605c
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
duyangzhou/SilverKing
|
b8880e0527eb6b5d895da4dbcf7a600b8a7786d8
|
b1b582f96d3771c01bf8239c64e99869f54bb3a1
|
refs/heads/master
| 2020-04-29T19:34:13.958262
| 2019-07-25T17:48:17
| 2019-07-25T17:48:17
| 176,359,498
| 0
| 0
|
Apache-2.0
| 2019-03-18T19:55:08
| 2019-03-18T19:55:08
| null |
UTF-8
|
Java
| false
| false
| 496
|
java
|
package com.ms.silverking.cloud.dht;
/**
* Specifies the response of a WaitFor operation to a timeout. Exit quietly or throw an exception.
*/
public enum TimeoutResponse {
/** Throw an exception when a WaitFor timeout occurs */
EXCEPTION,
/** Ignore the timeout and exit quietly when a WaitFor timeout occurs */
IGNORE;
/**
* By default, throw an exception when a timeout occurs.
*/
public static final TimeoutResponse defaultResponse = EXCEPTION;
}
|
[
"Benjamin.Holst@morganstanley.com"
] |
Benjamin.Holst@morganstanley.com
|
82652814fdd6d2c0dfe4e2d90dc050e6c764dd66
|
27a13543c5a21811e696278b5212755ecdebca53
|
/hsco/src/main/java/hsco/mis/acc/ACC010102/ACC010102Controller.java
|
c4c1b17db4f26ed96d6bae5763ee6e52ca321dc2
|
[] |
no_license
|
chaseDeveloper/hsco
|
9dad73c971500c4bd98adfefa3e91a91d26ca318
|
7052d6da3ac772cd3b13ec391818139355935916
|
refs/heads/master
| 2023-06-15T23:55:10.592683
| 2021-07-06T07:46:07
| 2021-07-06T07:46:07
| 383,377,343
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,864
|
java
|
package hsco.mis.acc.ACC010102;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import hsco.cmm.controller.BaseContoller;
import hsco.cmm.ria.nexacro.NexacroConstant;
import hsco.cmm.ria.nexacro.map.NexacroMapDTO;
/**
* <pre>
* @Project Name : 화성도시공사 차세대정보시스템
* @Class Name : ACC010102Controller.java
* @Description : 마감일관리 Controller 클래스
* @author : 이상명
* @since : 2015. 07. 15.
* @version : 1.0
* @see :
* @COPYRIGHT (c) 2017 NANUMICT, Inc. All Right Reserved.
* <pre>
* ------------------------------------------------------------------
* Modification Information
* ------------------------------------------------------------------
* 작성일 작성자 내용
* ------------------------------------------------------------------
* 2015. 07. 15. 이상명 최초생성
* 2016. 01. 18. 이수지 역분개실행(팝업)
* </pre>
*/
@Controller
public class ACC010102Controller extends BaseContoller {
protected Logger log = LoggerFactory.getLogger(ACC010102Controller.class);
@Resource(name="acc010102Service")
ACC010102ServiceImpl acc010102Service;
/**
* 마감일관리 목록
* @param xpDto
* @param model
* @return
* @throws Exception
*/
@RequestMapping("/hsco/mis/acc/ACC010102/closDeManageList.do")
public ModelAndView closDeManageList(NexacroMapDTO xpDto, Model model) throws Exception {
if(log.isInfoEnabled()) log.info("closDeManageList Started!");
ModelAndView mav = new ModelAndView("nexacroMapView");
execService(acc010102Service, "closDeManageList", xpDto, mav);
mav.addObject(NexacroConstant.ERROR_CODE, "0");
mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회");
return mav;
}
/**
* 마감일관리 저장
* @param xpDto
* @param model
* @return
* @throws Exception
*/
@RequestMapping("/hsco/mis/acc/ACC010102/closDeManageCUD.do")
public ModelAndView closDeManageCUD(NexacroMapDTO xpDto, Model model) throws Exception {
ModelAndView mav = new ModelAndView("nexacroMapView");
execService(acc010102Service, "closDeManageCUD", xpDto, mav);
mav.addObject(NexacroConstant.ERROR_CODE, "0");
mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회");
return mav;
}
/**
* 역분개 조회
* @param xpDto
* @param model
* @return
* @throws Exception
*/
@RequestMapping("/hsco/mis/acc/ACC010102/selectinverseJrnlzpr.do")
public ModelAndView selectinverseJrnlzpr(NexacroMapDTO xpDto, Model model) throws Exception {
ModelAndView mav = new ModelAndView("nexacroMapView");
execService(acc010102Service, "selectinverseJrnlzpr", xpDto, mav);
mav.addObject(NexacroConstant.ERROR_CODE, "0");
mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회");
return mav;
}
/**
* 역분개
* @param xpDto
* @param model
* @return
* @throws Exception
*/
@RequestMapping("/hsco/mis/acc/ACC010102/inverseJrnlzpr.do")
public ModelAndView inverseJrnlzpr(NexacroMapDTO xpDto, Model model) throws Exception {
ModelAndView mav = new ModelAndView("nexacroMapView");
execService(acc010102Service, "inverseJrnlzpr", xpDto, mav);
mav.addObject(NexacroConstant.ERROR_CODE, "0");
mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회");
return mav;
}
}
|
[
"kdk@ichase.co.kr"
] |
kdk@ichase.co.kr
|
68d347f8e3f97ef25dc8b90e0ba4c8fef0a3c7fc
|
83284b69f682904fe692428e4339c03d1b229b76
|
/app/src/main/java/com/benben/yishanbang/ui/service/adapter/ServiceCateDetailsListAdapter.java
|
bd90605203a222451b6655def97d59730101125c
|
[] |
no_license
|
wanghkzzz/YiShanBang
|
cc749a7163f78a9dcb418d6876ce5c8aaa6b30ab
|
2777e818fd8375ff16e47b4d8110bea9bf798f7c
|
refs/heads/master
| 2020-08-03T15:22:18.702281
| 2019-09-30T07:30:37
| 2019-09-30T07:30:37
| 211,798,525
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,685
|
java
|
package com.benben.yishanbang.ui.service.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.benben.yishanbang.R;
import com.benben.yishanbang.adapter.AFinalRecyclerViewAdapter;
import com.benben.yishanbang.adapter.BaseRecyclerViewHolder;
import com.benben.yishanbang.ui.service.bean.ServiceCateDetailsListBean;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* Create by wanghk on 2019-08-07.
* Describe:服务分类详情adapter
*/
public class ServiceCateDetailsListAdapter extends AFinalRecyclerViewAdapter<ServiceCateDetailsListBean> {
public ServiceCateDetailsListAdapter(Context ctx) {
super(ctx);
}
@Override
protected BaseRecyclerViewHolder onCreateCustomerViewHolder(ViewGroup parent, int viewType) {
return new CommonViewHolder(m_Inflater.inflate(R.layout.item_service_cate_details_list, parent, false));
}
@Override
protected void onBindCustomerViewHolder(BaseRecyclerViewHolder holder, int position) {
((CommonViewHolder) holder).setContent(getItem(position), position);
}
public class CommonViewHolder extends BaseRecyclerViewHolder {
@BindView(R.id.iv_cate_img)
ImageView ivCateImg;
@BindView(R.id.tv_cate_name)
TextView tvCateName;
View itemView;
public CommonViewHolder(View view) {
super(view);
ButterKnife.bind(this, view);
itemView = view;
}
private void setContent(ServiceCateDetailsListBean mServiceCateListBean, int position) {
}
}
}
|
[
"1157038440@qq.com"
] |
1157038440@qq.com
|
acb5266a7a675cdfab4aa637c156e34d23f4668f
|
876724d654445d8bc8d21e95371d4b33e74559f8
|
/X10JAVA/singleThreadedJava/CleanedTplasmaX10ToJavaSingleThreaded/TplasmaX10ToJavaSingleThreaded/util/types/X10Void.java
|
fcd58d93cfc4741110700be8b1452ef1e95fb488
|
[] |
no_license
|
Mah-D/Retargetable-Compiler
|
c119e48ec8d6efee095f8d4bf994016da54cbbc0
|
84b7b81bb35bf5fc24bf5e6799b83d42880c3ffa
|
refs/heads/master
| 2016-08-04T21:41:26.159827
| 2015-07-14T20:18:33
| 2015-07-14T20:18:33
| 39,096,022
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 198
|
java
|
package util.types;
public class X10Void extends X10Type {
public X10Void() {
super("void");
}
public boolean equals(Object o)
{
if(o instanceof X10Void)return true;
return false;
}
}
|
[
"eslamimehr@ucla.edu"
] |
eslamimehr@ucla.edu
|
17f6000da1b5c67e7099b6e3094514f44fd8cffd
|
5d2c2614adfb3762eb76916f9326f855e345cd54
|
/src/main/java/com/melardev/boot/datamongo/models/Author.java
|
81caacbd867a4f630251612712cae5038a32a9e4
|
[
"MIT"
] |
permissive
|
charlesdccti/JavaSpringBootMongoDbEmbedded
|
b986d9e346d6b4e2249c17d93b761a28d0c4174f
|
86abb8e83ca4d3f7e97f8099e7714a2b5a631431
|
refs/heads/master
| 2020-08-08T08:16:24.341669
| 2019-06-05T20:55:23
| 2019-06-05T20:55:23
| 213,789,851
| 1
| 0
| null | 2019-10-09T01:13:31
| 2019-10-09T01:13:31
| null |
UTF-8
|
Java
| false
| false
| 972
|
java
|
package com.melardev.boot.datamongo.models;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;
@Document(collection = "authors")
public class Author {
@Id
private String id;
private String username;
private List<Article> articles;
public Author() {
}
public Author(String username, List<Article> articles) {
this.username = username;
this.articles = articles;
}
public void setArticles(List<Article> articles) {
this.articles = articles;
}
public void setId(String id) {
this.id = id;
}
public String getId() {
return id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public List<Article> getArticles() {
return articles;
}
}
|
[
"melardev@users.noreply.github.com"
] |
melardev@users.noreply.github.com
|
125dbbbace62b741036a115e62cf87f5a1d6de49
|
9dfb07095844525a9d1b5a3e5de3cb840486c12b
|
/MinecraftServer/src/net/minecraft/network/play/INetHandlerPlayServer.java
|
6382bddd07afc9aee8132ecfc323f669c95fbfcf
|
[] |
no_license
|
ilYYYa/ModdedMinecraftServer
|
0ae1870e6ba9d388afb8fd6e866ca6a62f96a628
|
7b8143a11f848bf6411917e3d9c60b0289234a3f
|
refs/heads/master
| 2020-12-24T20:10:30.533606
| 2017-04-03T15:32:15
| 2017-04-03T15:32:15
| 86,241,373
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,323
|
java
|
package net.minecraft.network.play;
import net.minecraft.network.INetHandler;
import net.minecraft.network.play.client.CPacketAnimation;
import net.minecraft.network.play.client.CPacketChatMessage;
import net.minecraft.network.play.client.CPacketClickWindow;
import net.minecraft.network.play.client.CPacketClientSettings;
import net.minecraft.network.play.client.CPacketClientStatus;
import net.minecraft.network.play.client.CPacketCloseWindow;
import net.minecraft.network.play.client.CPacketConfirmTeleport;
import net.minecraft.network.play.client.CPacketConfirmTransaction;
import net.minecraft.network.play.client.CPacketCreativeInventoryAction;
import net.minecraft.network.play.client.CPacketCustomPayload;
import net.minecraft.network.play.client.CPacketEnchantItem;
import net.minecraft.network.play.client.CPacketEntityAction;
import net.minecraft.network.play.client.CPacketHeldItemChange;
import net.minecraft.network.play.client.CPacketInput;
import net.minecraft.network.play.client.CPacketKeepAlive;
import net.minecraft.network.play.client.CPacketPlayer;
import net.minecraft.network.play.client.CPacketPlayerAbilities;
import net.minecraft.network.play.client.CPacketPlayerDigging;
import net.minecraft.network.play.client.CPacketPlayerTryUseItem;
import net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock;
import net.minecraft.network.play.client.CPacketResourcePackStatus;
import net.minecraft.network.play.client.CPacketSpectate;
import net.minecraft.network.play.client.CPacketSteerBoat;
import net.minecraft.network.play.client.CPacketTabComplete;
import net.minecraft.network.play.client.CPacketUpdateSign;
import net.minecraft.network.play.client.CPacketUseEntity;
import net.minecraft.network.play.client.CPacketVehicleMove;
public interface INetHandlerPlayServer extends INetHandler
{
void handleAnimation(CPacketAnimation packetIn);
/**
* Process chat messages (broadcast back to clients) and commands (executes)
*/
void processChatMessage(CPacketChatMessage packetIn);
/**
* Retrieves possible tab completions for the requested command string and sends them to the client
*/
void processTabComplete(CPacketTabComplete packetIn);
/**
* Processes the client status updates: respawn attempt from player, opening statistics or achievements, or
* acquiring 'open inventory' achievement
*/
void processClientStatus(CPacketClientStatus packetIn);
/**
* Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
* and whether to show the cape
*/
void processClientSettings(CPacketClientSettings packetIn);
/**
* Received in response to the server requesting to confirm that the client-side open container matches the servers'
* after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
* contents
*/
void processConfirmTransaction(CPacketConfirmTransaction packetIn);
/**
* Enchants the item identified by the packet given some convoluted conditions (matching window, which
* should/shouldn't be in use?)
*/
void processEnchantItem(CPacketEnchantItem packetIn);
/**
* Executes a container/inventory slot manipulation as indicated by the packet. Sends the serverside result if they
* didn't match the indicated result and prevents further manipulation by the player until he confirms that it has
* the same open container/inventory
*/
void processClickWindow(CPacketClickWindow packetIn);
/**
* Processes the client closing windows (container)
*/
void processCloseWindow(CPacketCloseWindow packetIn);
/**
* Synchronizes serverside and clientside book contents and signing
*/
void processCustomPayload(CPacketCustomPayload packetIn);
/**
* Processes interactions ((un)leashing, opening command block GUI) and attacks on an entity with players currently
* equipped item
*/
void processUseEntity(CPacketUseEntity packetIn);
/**
* Updates a players' ping statistics
*/
void processKeepAlive(CPacketKeepAlive packetIn);
/**
* Processes clients perspective on player positioning and/or orientation
*/
void processPlayer(CPacketPlayer packetIn);
/**
* Processes a player starting/stopping flying
*/
void processPlayerAbilities(CPacketPlayerAbilities packetIn);
/**
* Processes the player initiating/stopping digging on a particular spot, as well as a player dropping items?. (0:
* initiated, 1: reinitiated, 2? , 3-4 drop item (respectively without or with player control), 5: stopped; x,y,z,
* side clicked on;)
*/
void processPlayerDigging(CPacketPlayerDigging packetIn);
/**
* Processes a range of action-types: sneaking, sprinting, waking from sleep, opening the inventory or setting jump
* height of the horse the player is riding
*/
void processEntityAction(CPacketEntityAction packetIn);
/**
* Processes player movement input. Includes walking, strafing, jumping, sneaking; excludes riding and toggling
* flying/sprinting
*/
void processInput(CPacketInput packetIn);
/**
* Updates which quickbar slot is selected
*/
void processHeldItemChange(CPacketHeldItemChange packetIn);
/**
* Update the server with an ItemStack in a slot.
*/
void processCreativeInventoryAction(CPacketCreativeInventoryAction packetIn);
void processUpdateSign(CPacketUpdateSign packetIn);
void processRightClickBlock(CPacketPlayerTryUseItemOnBlock packetIn);
/**
* Processes block placement and block activation (anvil, furnace, etc.)
*/
void processPlayerBlockPlacement(CPacketPlayerTryUseItem packetIn);
void handleSpectate(CPacketSpectate packetIn);
void handleResourcePackStatus(CPacketResourcePackStatus packetIn);
void processSteerBoat(CPacketSteerBoat packetIn);
void processVehicleMove(CPacketVehicleMove packetIn);
void processConfirmTeleport(CPacketConfirmTeleport packetIn);
}
|
[
"ilyyya.777@gmail.com"
] |
ilyyya.777@gmail.com
|
410c10c4372800f7c87c29cf75c29318c809d641
|
5c007a23b88f1f2c51843199904da7724ff34bae
|
/base/lib_package/src/main/java/blog/pds/com/three/htmlcompat/compat/HtmlFormatter.java
|
b983a33d2ec98e5ec3da60072f3062685f789165
|
[] |
no_license
|
bubian/BlogProject
|
d8100916fee3ba8505c9601a216a6b9b1147b048
|
8278836ff8fe62af977b5ca330767a2f425d8792
|
refs/heads/master
| 2023-08-10T17:52:46.490579
| 2021-09-14T06:42:58
| 2021-09-14T06:42:58
| 161,014,161
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,041
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package blog.pds.com.three.htmlcompat.compat;
import android.text.Html;
import android.text.Html.ImageGetter;
import android.text.Spanned;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
public class HtmlFormatter {
private HtmlFormatter() {
}
public static Spanned formatHtml(@NonNull final HtmlFormatterBuilder builder) {
return formatHtml(
builder.getHtml(), builder.getImageGetter(), builder.getClickableTableSpan(),
builder.getDrawTableLinkSpan(), new TagClickListenerProvider() {
@Override public OnClickATagListener provideTagClickListener() {
return builder.getOnClickATagListener();
}
}, builder.getIndent(),
builder.isRemoveTrailingWhiteSpace()
);
}
interface TagClickListenerProvider {
OnClickATagListener provideTagClickListener();
}
public static Spanned formatHtml(@Nullable String html, ImageGetter imageGetter, ClickableTableSpan clickableTableSpan, DrawTableLinkSpan drawTableLinkSpan, TagClickListenerProvider tagClickListenerProvider, float indent, boolean removeTrailingWhiteSpace) {
final HtmlTagHandler htmlTagHandler = new HtmlTagHandler();
htmlTagHandler.setClickableTableSpan(clickableTableSpan);
htmlTagHandler.setDrawTableLinkSpan(drawTableLinkSpan);
htmlTagHandler.setOnClickATagListenerProvider(tagClickListenerProvider);
htmlTagHandler.setListIndentPx(indent);
html = htmlTagHandler.overrideTags(html);
Spanned formattedHtml;
if (removeTrailingWhiteSpace) {
formattedHtml = removeHtmlBottomPadding(Html.fromHtml(html, imageGetter, new WrapperContentHandler(htmlTagHandler)));
} else {
formattedHtml = Html.fromHtml(html, imageGetter, new WrapperContentHandler(htmlTagHandler));
}
return formattedHtml;
}
/**
* Html.fromHtml sometimes adds extra space at the bottom.
* This methods removes this space again.
* See https://github.com/SufficientlySecure/html-textview/issues/19
*/
@Nullable
private static Spanned removeHtmlBottomPadding(@Nullable Spanned text) {
if (text == null) {
return null;
}
while (text.length() > 0 && text.charAt(text.length() - 1) == '\n') {
text = (Spanned) text.subSequence(0, text.length() - 1);
}
return text;
}
}
|
[
"pengdaosong@medlinker.com"
] |
pengdaosong@medlinker.com
|
b7f63170018d13bb1819665cdf4f158763c3c49e
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/offline/a/j.java
|
813797d95c36dee42cb7f2d3474cba7815f68698
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,362
|
java
|
package com.tencent.mm.plugin.offline.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.wallet_core.tenpay.model.m;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
public final class j extends m
{
public j(String paramString)
{
AppMethodBeat.i(43399);
HashMap localHashMap = new HashMap();
localHashMap.put("passwd", paramString);
localHashMap.put("device_id", com.tencent.mm.compatible.e.q.LM());
M(localHashMap);
AppMethodBeat.o(43399);
}
public final int ZU()
{
return 566;
}
public final void a(int paramInt1, int paramInt2, int paramInt3, String paramString, com.tencent.mm.network.q paramq, byte[] paramArrayOfByte)
{
AppMethodBeat.i(43400);
super.a(paramInt1, paramInt2, paramInt3, paramString, paramq, paramArrayOfByte);
AppMethodBeat.o(43400);
}
public final void a(int paramInt, String paramString, JSONObject paramJSONObject)
{
}
public final int bgI()
{
return 47;
}
public final String getUri()
{
return "/cgi-bin/mmpay-bin/tenpay/offlineclose";
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes3-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.offline.a.j
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
7f67f2d88434a38532f48ee9773c0c37eb3ff92a
|
ecbc8d2a8cf2294e92ab66dc3f338759392ab690
|
/src/ibis/ipl/impl/androidbt/registry/central/server/IterativeEventPusher.java
|
84722c2c9b1b8eea001db3cde1ba0f83f50b9304
|
[] |
no_license
|
JungleComputing/AndroidBtIbis
|
a7eec136029b5e1e47f8b5580b2525f7799d124f
|
3e528a81c00115823ff5ebc24f91a7f45894fed2
|
refs/heads/master
| 2021-08-19T16:00:09.450876
| 2011-01-21T09:10:21
| 2011-01-21T09:10:21
| 112,114,305
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,217
|
java
|
package ibis.ipl.impl.androidbt.registry.central.server;
import ibis.ipl.registry.central.Member;
import ibis.util.ThreadPool;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Sends events to clients from the server.
*/
final class IterativeEventPusher implements Runnable {
private static final int THREADS = 25;
private class WorkQ {
private List<Member> q;
private int count;
WorkQ(Member[] work) {
// Arrays.asList list does not support remove, so do this "trick"
q = new LinkedList<Member>();
q.addAll(Arrays.asList(work));
count = this.q.size();
}
synchronized Member next() {
if (q.isEmpty()) {
return null;
}
return q.remove(0);
}
synchronized void doneJob() {
count--;
if (count <= 0) {
notifyAll();
}
}
synchronized void waitUntilDone() {
while (count > 0) {
try {
wait();
} catch (InterruptedException e) {
// IGNORE
}
}
}
}
private class EventPusherThread implements Runnable {
WorkQ workQ;
EventPusherThread(WorkQ workQ) {
this.workQ = workQ;
ThreadPool.createNew(this, "event pusher thread");
}
public void run() {
while (true) {
Member work = workQ.next();
if (work == null) {
// done pushing
return;
}
logger.debug("pushing to " + work);
pool.push(work, false, useTree);
workQ.doneJob();
logger.debug("done pushing to " + work);
}
}
}
private static final Logger logger =
LoggerFactory.getLogger(IterativeEventPusher.class);
private final Pool pool;
private final long timeout;
private final boolean eventTriggersPush;
private final boolean useTree;
IterativeEventPusher(Pool pool, long timeout, boolean eventTriggersPush,
boolean useTree) {
this.pool = pool;
this.timeout = timeout;
this.eventTriggersPush = eventTriggersPush;
this.useTree = useTree;
ThreadPool.createNew(this, "event pusher scheduler thread");
}
public void run() {
while (!pool.hasEnded()) {
int eventTime = pool.getEventTime();
Member[] children;
if (useTree) {
children = pool.getChildren();
if (logger.isInfoEnabled()) {
String message = "broadcasting to " + children.length + " children:";
for (Member member : children) {
message += "\n" + member;
}
logger.info(message);
}
} else {
children = pool.getMembers();
}
logger.info("updating " + children.length
+ " nodes in pool (pool size = " + pool.getSize()
+ ") to event-time " + eventTime + " using tree: "
+ useTree);
WorkQ workQ = new WorkQ(children);
int threads = Math.min(THREADS, children.length);
for (int i = 0; i < threads; i++) {
new EventPusherThread(workQ);
}
workQ.waitUntilDone();
logger.info("DONE updating nodes in pool to event-time "
+ eventTime);
pool.purgeHistory();
// try {
// Thread.sleep(100);
// } catch (InterruptedException e) {
// //IGNORE
// }
if (eventTriggersPush) {
pool.waitForEventTime(eventTime + 1, timeout);
} else {
// wait for the timeout, or until the pool ends
pool.waitForEventTime(Integer.MAX_VALUE, timeout);
}
}
}
}
|
[
"c.j.h.jacobs@vu.nl"
] |
c.j.h.jacobs@vu.nl
|
93e8835fa121b5bd7cb912292f752c83839eedc3
|
633d1ab8579a9de4ae73c1bfe3c2de74a10088e7
|
/src/main/java/myshops/proxies/LocalizationProxy.java
|
f458c7f8fd4f5bcb9a3024f45f94c995e9458ea9
|
[
"Unlicense"
] |
permissive
|
MyEssentials/MyShops
|
c7627e5ae8b3a355affd43ab8af63aad5b2a87aa
|
46f97ff1209ed7183366e420bb3201fe83e5f77a
|
refs/heads/master
| 2020-12-30T11:14:53.640922
| 2015-04-06T14:30:59
| 2015-04-06T14:30:59
| 33,448,937
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,748
|
java
|
package myshops.proxies;
import myshops.Config;
import myshops.utils.Constants;
import mytown.core.Localization;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
public class LocalizationProxy {
private static Logger logger = LogManager.getLogger("MyShops.Localization");
private static Localization localization;
/**
* Loads the {@link Localization}. First tries to load it from config/MyTown/Localization, then the classpath, then loads en_US in its place
*/
public static void load() {
try {
InputStream is = null;
File file = new File(Constants.CONFIG_FOLDER + "/localization/" + Config.localization + ".lang");
if (file.exists()) {
is = new FileInputStream(file);
}
if (is == null) {
is = LocalizationProxy.class.getResourceAsStream("/localization/" + Config.localization + ".lang");
}
if (is == null) {
is = LocalizationProxy.class.getResourceAsStream("/localization/en_US.lang");
logger.warn("Reverting to en_US.lang because {} does not exist!", Config.localization + ".lang");
}
LocalizationProxy.localization = new Localization(new InputStreamReader(is));
LocalizationProxy.localization.load();
} catch (Exception ex) {
logger.warn("Failed to load localization!", ex);
}
}
public static Localization getLocalization() {
if(localization == null)
load();
return LocalizationProxy.localization;
}
}
|
[
"jgoett154@gmail.com"
] |
jgoett154@gmail.com
|
589022717150f6575c4ee827c2736e246b541aba
|
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
|
/src/main/java/com/alipay/api/response/MybankPaymentTradeNormalpayOrderDisburseResponse.java
|
7eabb5e85ff7c85899f4a61db5b487374126a09b
|
[
"Apache-2.0"
] |
permissive
|
zhoujiangzi/alipay-sdk-java-all
|
00ef60ed9501c74d337eb582cdc9606159a49837
|
560d30b6817a590fd9d2c53c3cecac0dca4449b3
|
refs/heads/master
| 2022-12-26T00:27:31.553428
| 2020-09-07T03:39:05
| 2020-09-07T03:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,510
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: mybank.payment.trade.normalpay.order.disburse response.
*
* @author auto create
* @since 1.0, 2019-02-25 19:19:52
*/
public class MybankPaymentTradeNormalpayOrderDisburseResponse extends AlipayResponse {
private static final long serialVersionUID = 5436658645495431312L;
/**
* 网商受理打款操作返回的流水号
*/
@ApiField("operate_no")
private String operateNo;
/**
* 请求受理时间,格式是yyyyMMddHHmmss
*/
@ApiField("request_accept_time")
private String requestAcceptTime;
/**
* 请求流水号
*/
@ApiField("request_no")
private String requestNo;
/**
* 外部平台是否可重试,失败时有值
*/
@ApiField("retry")
private String retry;
public void setOperateNo(String operateNo) {
this.operateNo = operateNo;
}
public String getOperateNo( ) {
return this.operateNo;
}
public void setRequestAcceptTime(String requestAcceptTime) {
this.requestAcceptTime = requestAcceptTime;
}
public String getRequestAcceptTime( ) {
return this.requestAcceptTime;
}
public void setRequestNo(String requestNo) {
this.requestNo = requestNo;
}
public String getRequestNo( ) {
return this.requestNo;
}
public void setRetry(String retry) {
this.retry = retry;
}
public String getRetry( ) {
return this.retry;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
faf3c8ab6650cf7d142cfb61bcd813280aced224
|
5e4100a6611443d0eaa8774a4436b890cfc79096
|
/src/main/java/com/alipay/api/domain/ZolozAuthenticationCustomerFacemanageCreateModel.java
|
b55b86b70021630dbaa344a321f0cb6eefafca78
|
[
"Apache-2.0"
] |
permissive
|
coderJL/alipay-sdk-java-all
|
3b471c5824338e177df6bbe73ba11fde8bc51a01
|
4f4ed34aaf5a320a53a091221e1832f1fe3c3a87
|
refs/heads/master
| 2020-07-15T22:57:13.705730
| 2019-08-14T10:37:41
| 2019-08-14T10:37:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,998
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 热脸入库
*
* @author auto create
* @since 1.0, 2018-12-03 14:28:13
*/
public class ZolozAuthenticationCustomerFacemanageCreateModel extends AlipayObject {
private static final long serialVersionUID = 2827881419828832853L;
/**
* 地域编码
*/
@ApiField("areacode")
private String areacode;
/**
* 人脸产品能力
*/
@ApiField("biz_type")
private String bizType;
/**
* 业务量规模
*/
@ApiField("bizscale")
private String bizscale;
/**
* 商户品牌
*/
@ApiField("brandcode")
private String brandcode;
/**
* 商户机具唯一编码,关键参数
*/
@ApiField("devicenum")
private String devicenum;
/**
* 拓展参数
*/
@ApiField("extinfo")
private String extinfo;
/**
* 入库类型
IDCARD:身份证
ALIPAY_USER:支付宝用户id,
ALIPAY_TEL:手机号入库
CUSTOMER:自定义
*/
@ApiField("facetype")
private String facetype;
/**
* 入库用户信息
*/
@ApiField("faceval")
private String faceval;
/**
* 分组5
*/
@ApiField("group")
private String group;
/**
* 门店编码
*/
@ApiField("storecode")
private String storecode;
/**
* 有效期天数,如7天、30天、365天
*/
@ApiField("validtimes")
private String validtimes;
public String getAreacode() {
return this.areacode;
}
public void setAreacode(String areacode) {
this.areacode = areacode;
}
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
}
public String getBizscale() {
return this.bizscale;
}
public void setBizscale(String bizscale) {
this.bizscale = bizscale;
}
public String getBrandcode() {
return this.brandcode;
}
public void setBrandcode(String brandcode) {
this.brandcode = brandcode;
}
public String getDevicenum() {
return this.devicenum;
}
public void setDevicenum(String devicenum) {
this.devicenum = devicenum;
}
public String getExtinfo() {
return this.extinfo;
}
public void setExtinfo(String extinfo) {
this.extinfo = extinfo;
}
public String getFacetype() {
return this.facetype;
}
public void setFacetype(String facetype) {
this.facetype = facetype;
}
public String getFaceval() {
return this.faceval;
}
public void setFaceval(String faceval) {
this.faceval = faceval;
}
public String getGroup() {
return this.group;
}
public void setGroup(String group) {
this.group = group;
}
public String getStorecode() {
return this.storecode;
}
public void setStorecode(String storecode) {
this.storecode = storecode;
}
public String getValidtimes() {
return this.validtimes;
}
public void setValidtimes(String validtimes) {
this.validtimes = validtimes;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
dfb414a69f1f03c8ab0d3481ec3b7c1469427b75
|
3b5bae84267cd885f4e3bbc3f0cf46d2cb1a0d43
|
/source/kone-basic-interfaces-src/kxd/remote/scs/beans/BasePayWay.java
|
56e3063f54a55822946a0552768b8378dbd5c808
|
[] |
no_license
|
deerme/KXD
|
ef0e3f5e2bf5c0397cc67fab7601a6ac3b16ba54
|
9f7210ab01f827dd1abbedab70ea35d6eae641c7
|
refs/heads/master
| 2021-06-18T09:54:33.585911
| 2017-06-08T02:12:53
| 2017-06-08T02:12:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,249
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kxd.remote.scs.beans;
import kxd.remote.scs.util.emun.PayWayType;
import kxd.util.IdableObject;
import kxd.util.ListItem;
import org.apache.log4j.Logger;
/**
*
* @author 赵明
*/
public class BasePayWay extends ListItem<Short> {
private static final long serialVersionUID = 1L;
private String payWayDesp;
private boolean needTrade;
private PayWayType type;
@Override
public String getText() {
return payWayDesp;
}
@Override
public void setText(String text) {
payWayDesp = text;
}
@Override
protected void loggingContent(Logger logger, String prefix) {
logger.debug(prefix + "id: " + getId() + ";");
logger.debug(prefix + "desp: " + payWayDesp + ";");
}
public BasePayWay() {
}
@Override
public void copyData(Object src) {
super.copyData(src);
if (!(src instanceof BasePayWay))
return;
BasePayWay d = (BasePayWay) src;
payWayDesp = d.payWayDesp;
needTrade = d.needTrade;
type = d.type;
}
@Override
public IdableObject<Short> createObject() {
return new BasePayWay();
}
public BasePayWay(Short payWay) {
super(payWay);
}
public BasePayWay(Short payWay, String payWayDesp) {
super(payWay);
this.payWayDesp = payWayDesp;
}
public Short getPayWayId() {
return getId();
}
public void setPayWayId(Short payWayId) {
this.setId(payWayId);
}
public String getPayWayDesp() {
return payWayDesp;
}
public void setPayWayDesp(String payWayDesp) {
this.payWayDesp = payWayDesp;
}
@Override
protected String toDisplayLabel() {
return payWayDesp;
}
@Override
public String toString() {
return payWayDesp + "(" + getId() + ")";
}
@Override
public String getIdString() {
if (getId() == null)
return null;
else
return getId().toString();
}
@Override
public void setIdString(String id) {
if (id == null || id.trim().isEmpty())
setId(null);
else
setId(Short.parseShort(id));
}
public boolean isNeedTrade() {
return needTrade;
}
public void setNeedTrade(boolean needTrade) {
this.needTrade = needTrade;
}
public PayWayType getType() {
return type;
}
public void setType(PayWayType type) {
this.type = type;
}
}
|
[
"wangyz@wangyz-PC"
] |
wangyz@wangyz-PC
|
fbad35f8e2b0eb3611826887f5ff70a7cbfdfde8
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes6.dex_source_from_JADX/com/facebook/photos/upload/serverprocessing/VideoStatusQueryParsers.java
|
b0e1a76ec296546eba6e41ad73ff40943f9d211c
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,680
|
java
|
package com.facebook.photos.upload.serverprocessing;
import com.facebook.flatbuffers.FlatBufferBuilder;
import com.facebook.graphql.enums.GraphQLVideoStatusType;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
/* compiled from: fullText */
public class VideoStatusQueryParsers {
/* compiled from: fullText */
public final class VideoStatusQueryParser {
public static int m21931a(JsonParser jsonParser, FlatBufferBuilder flatBufferBuilder) {
int[] iArr = new int[3];
boolean[] zArr = new boolean[1];
int[] iArr2 = new int[1];
while (jsonParser.c() != JsonToken.END_OBJECT) {
String i = jsonParser.i();
jsonParser.c();
if (!(jsonParser.g() == JsonToken.VALUE_NULL || i == null)) {
if (i.equals("id")) {
iArr[0] = flatBufferBuilder.b(jsonParser.o());
} else if (i.equals("processing_progress")) {
zArr[0] = true;
iArr2[0] = jsonParser.E();
} else if (i.equals("video_status_type")) {
iArr[2] = flatBufferBuilder.a(GraphQLVideoStatusType.fromString(jsonParser.o()));
} else {
jsonParser.f();
}
}
}
flatBufferBuilder.c(3);
flatBufferBuilder.b(0, iArr[0]);
if (zArr[0]) {
flatBufferBuilder.a(1, iArr2[0], 0);
}
flatBufferBuilder.b(2, iArr[2]);
return flatBufferBuilder.d();
}
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
98a105d93b7fb40299531f9bcb36f06789d3192e
|
1fc6412873e6b7f6df6c9333276cd4aa729c259f
|
/JavaPatterns/src/com/javapatterns/facade/security/Light.java
|
128c0baa287715361068ee97c743d8c48610f635
|
[] |
no_license
|
youzhibicheng/ThinkingJava
|
dbe9bec5b17e46c5c781a98f90e883078ebbd996
|
5390a57100ae210dc57bea445750c50b0bfa8fc4
|
refs/heads/master
| 2021-01-01T05:29:01.183768
| 2016-05-10T01:07:58
| 2016-05-10T01:07:58
| 58,379,014
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 352
|
java
|
package com.javapatterns.facade.security;
public class Light
{
public void turnOn()
{
System.out.println("Turning on the camera.");
}
public void turnOff()
{
System.out.println("Turning off the camera.");
}
public void changeBulb()
{
System.out.println("changing the light-bulb.");
}
}
|
[
"youzhibicheng@163.com"
] |
youzhibicheng@163.com
|
f144a09eaaa1068931de5680efbd8be17e7182f2
|
22b1fe6a0af8ab3c662551185967bf2a6034a5d2
|
/experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_1021.java
|
2e9ba6b61762f3255b5fa45ee973511ed52251f3
|
[
"Apache-2.0"
] |
permissive
|
lesaint/experimenting-annotation-processing
|
b64ed2182570007cb65e9b62bb2b1b3f69d168d6
|
1e9692ceb0d3d2cda709e06ccc13290262f51b39
|
refs/heads/master
| 2021-01-23T11:20:19.836331
| 2014-11-13T10:37:14
| 2014-11-13T10:37:14
| 26,336,984
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 151
|
java
|
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_1021 {
}
|
[
"sebastien.lesaint@gmail.com"
] |
sebastien.lesaint@gmail.com
|
8844376ea1e9d859e0add75f0c4f96bb6c570937
|
5f4a495a45451da3ad2003b70e67fd602152826b
|
/app/src/main/java/com/goixeomdriver/Activity/NotificationActivity.java
|
1461fdf953f8a124ec6db045b80007bffa67b8d7
|
[] |
no_license
|
goixeom/xeomdriver
|
500f634f5ee8f15e099c3b99564be0b3978a8c54
|
bb7f34d7a6705176072c9d3ed81207115684787b
|
refs/heads/master
| 2021-01-02T22:27:19.148605
| 2017-09-05T09:10:57
| 2017-09-05T09:10:57
| 99,320,352
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,310
|
java
|
package com.goixeomdriver.Activity;
import android.location.Location;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.View;
import android.widget.ImageView;
import com.goixeom.R;
import com.goixeomdriver.View.CustomTextView;
import com.goixeomdriver.adapters.AdapterNotification;
import com.goixeomdriver.apis.ApiConstants;
import com.goixeomdriver.apis.ApiResponse;
import com.goixeomdriver.apis.CallBackCustom;
import com.goixeomdriver.interfaces.OnResponse;
import com.goixeomdriver.models.NotificationData;
import com.goixeomdriver.utils.Constants;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import retrofit2.Call;
/**
* Created by Huy on 6/9/2017.
*/
public class NotificationActivity extends BaseActivity {
Unbinder unbinder;
@BindView(R.id.img_back)
ImageView imgBack;
@BindView(R.id.txt_toolbar)
CustomTextView txtToolbar;
@BindView(R.id.rcv)
RecyclerView rcv;
AdapterNotification adapterNotification;
List<NotificationData> list;
@BindView(R.id.img_empty)
ImageView imgEmpty;
public NotificationActivity() {
}
@Override
public void pingNotification(String title, String content) {
getNotification();
}
@Override
public void onSocketReady() {
}
@Override
public void onLocationChange(Location location) {
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.content_notification);
unbinder = ButterKnife.bind(this);
list = new ArrayList<>();
adapterNotification = new AdapterNotification(this, list);
rcv.setLayoutManager(new LinearLayoutManager(this));
rcv.setHasFixedSize(true);
rcv.setAdapter(adapterNotification);
getNotification();
txtToolbar.setText(Html.fromHtml(getString(R.string.txt_toolbar_notification)));
}
private void getNotification() {
getDialogProgress().showDialog();
Call<ApiResponse<List<NotificationData>>> getNoti = getmApi().getNotification(ApiConstants.API_KEY, getmSetting().getInt(Constants.ID));
getNoti.enqueue(new CallBackCustom<ApiResponse<List<NotificationData>>>(this, getDialogProgress(), new OnResponse<ApiResponse<List<NotificationData>>>() {
@Override
public void onResponse(ApiResponse<List<NotificationData>> object) {
if (object.getData() != null) {
list.clear();
list.addAll(object.getData());
adapterNotification.notifyDataSetChanged();
if (object.getData().size() > 0) {
imgEmpty.setVisibility(View.GONE);
} else {
imgEmpty.setVisibility(View.VISIBLE);
}
}else{
imgEmpty.setVisibility(View.VISIBLE);
}
}
}));
}
@OnClick(R.id.img_back)
public void onViewClicked() {
vibrate();
finish();
}
}
|
[
"duongnv1996@gmail.com"
] |
duongnv1996@gmail.com
|
9e144acf266bea35e53b0bb4c456d002527ddcd6
|
e332a17be509398d6e313e30a2f1ef7788223655
|
/src/test/java/hello/core/beanfind/ApplicationContextSameBeanFindTest.java
|
fc9484e56155a5313cbb061394eb0cdf9161951f
|
[] |
no_license
|
minjun0124/spring-core
|
4cbd539a8125217eb7374605dc504f3a8dcc2a5a
|
039ba8297146736c8924c0c3e49871b889ac9301
|
refs/heads/master
| 2023-05-05T19:35:56.976556
| 2021-05-17T14:24:37
| 2021-05-17T14:24:37
| 360,755,038
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,315
|
java
|
package hello.core.beanfind;
import hello.core.AppConfig;
import hello.core.discount.DiscountPolicy;
import hello.core.member.MemberRepository;
import hello.core.member.MemoryMemberRepository;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Map;
import static org.assertj.core.api.Assertions.*;
public class ApplicationContextSameBeanFindTest {
AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(SameBeanConfig.class);
/*
@Test
@DisplayName("타입으로 조회시 같은 타입이 둘 이상 있으면, 중복 오류가 발생한다")
void findBeanByTypeDuplicate() {
MemberRepository bean = ac.getBean(MemberRepository.class);
}
*/
@Test
@DisplayName("타입으로 조회시 같은 타입이 둘 이상 있으면, 빈 이름을 지정해주면 된다")
void findBeanByName() {
MemberRepository memberRepository = ac.getBean("memberRepository1", MemberRepository.class);
assertThat(memberRepository).isInstanceOf(MemberRepository.class);
}
@Test
@DisplayName("특정 타입을 모두 조회하기")
void findAllBeanByType(){
Map<String, MemberRepository> beansOfType = ac.getBeansOfType(MemberRepository.class);
for (String key : beansOfType.keySet()) {
System.out.println("key = " + key + "value = " + beansOfType.get(key));
}
System.out.println("beansOfType = " + beansOfType);
assertThat(beansOfType.size()).isEqualTo(2);
}
/**
* class 내부의 class : scope이 이곳으로 제한된다.
* 아래 설정처럼 같은 인스턴스로 몇가지 빈을 생성할 수도 있다.
* 생성자의 인자가 다양하다던지...
*/
@Configuration
static class SameBeanConfig {
@Bean
public MemberRepository memberRepository1() {
return new MemoryMemberRepository();
}
@Bean
public MemberRepository memberRepository2() {
return new MemoryMemberRepository();
}
}
}
|
[
"minjun0124@gmail.com"
] |
minjun0124@gmail.com
|
c1ce335b392fe9b192eca95ab1de53afa1db9fd0
|
bfdf5095a4c5d058dab0a9b95ad58f4aed72a6be
|
/src/com/crackingthetcodingtinterviews/chapter03/Prob_03_02.java
|
505f3664a3e89c52aee10ddf1f437d9f6b131ba0
|
[] |
no_license
|
sivajik/DSandAlgorithms
|
9fb822506315f1b93ae279f1edba47b87b2d107c
|
a972e6c0b0f6991e0000b66a941ab113a09829fc
|
refs/heads/master
| 2022-07-16T17:39:54.314720
| 2022-05-25T20:37:33
| 2022-05-25T20:37:33
| 229,936,402
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 844
|
java
|
package com.crackingthetcodingtinterviews.chapter03;
import java.util.Stack;
public class Prob_03_02 {
public static void main(String[] args) {
StackWithMin s = new StackWithMin();
s.push(5);
s.push(6);
s.push(3);
s.push(7);
System.out.println(s.pop() + "," + s.min());
System.out.println(s.pop() + "," + s.min());
}
}
class StackWithMin extends Stack<Integer> {
Stack<Integer> minStack;
public StackWithMin() {
this.minStack = new Stack<>();
}
public void push(int i) {
if (i <= min()) {
minStack.push(i);
}
super.push(i);
}
public Integer pop() {
int value = super.pop();
if (value == min()) { // no way value can be less than min()
minStack.pop();
}
return value;
}
public int min() {
if (minStack.isEmpty()) {
return Integer.MAX_VALUE;
} else {
return minStack.peek();
}
}
}
|
[
"sivaji_kondapalli@yahoo.com"
] |
sivaji_kondapalli@yahoo.com
|
e15b7ca3e43e96fcb4ec8e824bbeb68ef3ec16ea
|
7bf9512e1cc49641ad80e55d43bfbd41b6903e03
|
/Rabbitmq-springboot/src/main/java/com/bing/lan/rabbitmq/mq/Sender.java
|
e26ba34a99010ceb94b13c974f0f2a49f1539d51
|
[] |
no_license
|
lanboys/RabbitMQDemo
|
26a86b636a98b4f79abb4364a5667b331c4296ea
|
2ffac87b677f460bc2d4bc1d11cd5c1c54bffa55
|
refs/heads/master
| 2022-12-22T14:52:38.383591
| 2020-04-14T07:56:01
| 2020-04-14T07:56:01
| 177,506,753
| 0
| 0
| null | 2022-12-16T06:52:15
| 2019-03-25T03:20:17
|
Java
|
UTF-8
|
Java
| false
| false
| 811
|
java
|
package com.bing.lan.rabbitmq.mq;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import static com.bing.lan.rabbitmq.RabbitConfig.BING_QUEUES;
import static com.bing.lan.rabbitmq.RabbitConfig.HELLO_QUEUES;
/**
* @author lan_bing
* @date 2019-03-25 10:08
*/
@Component
public class Sender {
@Autowired
AmqpTemplate rabbitTemplate;
public void helloSend(String context) {
System.out.println("队列 hello Sender : " + context);
rabbitTemplate.convertAndSend(HELLO_QUEUES, context);
}
public void bingSend(Bing context) {
System.out.println("队列 bing Sender : " + context);
rabbitTemplate.convertAndSend(BING_QUEUES, context);
}
}
|
[
"lan_bing2013@163.com"
] |
lan_bing2013@163.com
|
b8089d6a298f3839277f96cb908d91d05b1f526e
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/eclipsejdt_cluster/61773/tar_0.java
|
84f4f1e76e2ce4de0a118b15c09c6c52771dd3f2
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,810
|
java
|
package org.eclipse.jdt.internal.core.search;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.*;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.internal.core.index.*;
import org.eclipse.jdt.core.search.*;
import org.eclipse.jdt.internal.core.search.indexing.*;
import org.eclipse.jdt.internal.core.search.matching.*;
import org.eclipse.jdt.internal.core.search.processing.*;
import java.io.*;
public class PatternSearchJob implements IJob {
protected SearchPattern pattern;
protected IJavaSearchScope scope;
protected IJavaElement focus;
protected IIndexSearchRequestor requestor;
protected IndexManager indexManager;
protected int detailLevel;
protected IndexSelector indexSelector;
protected long executionTime = 0;
public PatternSearchJob(
SearchPattern pattern,
IJavaSearchScope scope,
int detailLevel,
IIndexSearchRequestor requestor,
IndexManager indexManager) {
this(
pattern,
scope,
null,
detailLevel,
requestor,
indexManager);
}
public PatternSearchJob(
SearchPattern pattern,
IJavaSearchScope scope,
IJavaElement focus,
int detailLevel,
IIndexSearchRequestor requestor,
IndexManager indexManager) {
this.pattern = pattern;
this.scope = scope;
this.focus = focus;
this.detailLevel = detailLevel;
this.requestor = requestor;
this.indexManager = indexManager;
}
public boolean belongsTo(String jobFamily) {
return true;
}
/**
* execute method comment.
*/
public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled())
throw new OperationCanceledException();
boolean isComplete = COMPLETE;
executionTime = 0;
if (this.indexSelector == null) {
this.indexSelector =
new IndexSelector(this.scope, this.focus, this.indexManager);
}
IIndex[] searchIndexes = this.indexSelector.getIndexes();
for (int i = 0, max = searchIndexes.length; i < max; i++) {
isComplete &= search(searchIndexes[i], progressMonitor);
}
if (JobManager.VERBOSE) {
System.out.println(
"-> execution time: " + executionTime + " ms. for : " + this);
//$NON-NLS-2$ //$NON-NLS-1$
}
return isComplete;
}
/**
* execute method comment.
*/
public boolean search(IIndex index, IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled())
throw new OperationCanceledException();
if (index == null)
return COMPLETE;
ReadWriteMonitor monitor = indexManager.getMonitorFor(index);
if (monitor == null)
return COMPLETE; // index got deleted since acquired
try {
monitor.enterRead(); // ask permission to read
/* if index has changed, commit these before querying */
if (index.hasChanged()) {
try {
monitor.exitRead(); // free read lock
monitor.enterWrite(); // ask permission to write
if (IndexManager.VERBOSE)
System.out.println("-> merging index : " + index.getIndexFile());
//$NON-NLS-1$
index.save();
} catch (IOException e) {
return FAILED;
} finally {
monitor.exitWrite(); // finished writing
monitor.enterRead(); // reaquire read permission
}
}
long start = System.currentTimeMillis();
pattern.findIndexMatches(
index,
requestor,
detailLevel,
progressMonitor,
this.scope);
executionTime += System.currentTimeMillis() - start;
return COMPLETE;
} catch (IOException e) {
return FAILED;
} finally {
monitor.exitRead(); // finished reading
}
}
public String toString() {
return "searching " + pattern.toString(); //$NON-NLS-1$
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
d1dc4b33183586330a609fa5fd895d571a83ff64
|
777eed2c7c459896bb6aeab36b0540d0582a6d29
|
/Selenium3.0/src/DataProviderTestNG/Ex02/File_Library.java
|
f4d319ad47cbed380f2fc3e4192b4de8d8419d3e
|
[] |
no_license
|
jagdalemanoj7/JAVA01
|
f020fcb85bcd8091619cf21bf1097ec6f32847fa
|
252041105ec67514756531ab9ceee87a2c7ad60c
|
refs/heads/master
| 2020-11-23T22:24:09.057824
| 2019-12-13T13:15:57
| 2019-12-13T13:15:57
| 227,845,235
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,876
|
java
|
package DataProviderTestNG.Ex02;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.poi.EncryptedDocumentException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.testng.annotations.DataProvider;
public class File_Library {
static String path = "../Selenium3.0/Excel/Worksheet01.xlsx";
static int last_Row, last_Cell;
static Workbook book; static Sheet sheet; static Row row; static Cell cell;
public static void excelConfig() {
try {
book = WorkbookFactory.create(new FileInputStream(path));
} catch (EncryptedDocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static Object[][] getExcelData() {
excelConfig();
sheet = book.getSheet("Sheet2");
Object[][] data = new Object[sheet.getLastRowNum()+1][sheet.getRow(0).getLastCellNum()];
for (int i = 0; i <= sheet.getLastRowNum(); i++) {
for (int j = 0; j < sheet.getRow(i).getLastCellNum(); j++) {
//data[i][j]=sheet.getRow(i+1).getCell(j).toString();
data[i][j]=sheet.getRow(i).getCell(j).getStringCellValue();
}
}
return data;
}
}
/*
public static int getLastRowNum() {
excelConfig("Sheet2");
last_Row = sheet.getLastRowNum();
return last_Row;
}
public static int getLastCellNum(int row_Index) {
excelConfig("Sheet2");
row = sheet.getRow(row_Index);
last_Cell = row.getLastCellNum();
return last_Cell;
}*/
|
[
"admin@admin-PC"
] |
admin@admin-PC
|
910e513f4293c42fe648c8b0cc302cd965653a14
|
f73d5954772b62697ee50b9e72332d9e6ac4d227
|
/src/test/java/com/example/project_exam/ProjectExamApplicationTests.java
|
3ed76f1c21f51f6d59c1e58cc6cb05cd55ddbfd3
|
[] |
no_license
|
pqanh12344/Project_New
|
b817b8629ca4bf55f6aa01894a845cc500f3227c
|
e63c53fc3a95aa7c2a00f031e519ba88d9ca936e
|
refs/heads/master
| 2023-07-04T02:25:29.559589
| 2021-08-10T04:18:15
| 2021-08-10T04:18:15
| 391,584,960
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 230
|
java
|
package com.example.project_exam;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ProjectExamApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"="
] |
=
|
8ef9b25c50dd68fadd3a035c7d7412996526b8a8
|
17526f7e97f5bf477887b433bfc6d554f9f96a10
|
/src/main/java/ch22enums/menu/Meal.java
|
1845c28909c5ed03e87a974ddc35955f13a38cb7
|
[] |
no_license
|
CoryJia/OnJava8-ThinkingInJava5th
|
f29a041c9867be48431e54badbbd623b997e143d
|
8e321225e2de049862ae2a4c2114be976151bdc2
|
refs/heads/master
| 2021-01-09T19:52:35.022402
| 2020-04-11T16:40:48
| 2020-04-11T16:40:48
| 242,437,396
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 768
|
java
|
// enums/menu/Meal.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {java enums.menu.Meal}
package ch22enums.menu;
public class Meal {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
for (Course course : Course.values()) {
Food food = course.randomSelection();
System.out.println(food);
}
System.out.println("************************");
}
}
}
/* Output:
SPRING_ROLLS
VINDALOO
FRUIT
DECAF_COFFEE
***
SOUP
VINDALOO
FRUIT
TEA
***
SALAD
BURRITO
FRUIT
TEA
***
SALAD
BURRITO
CREME_CARAMEL
LATTE
***
SOUP
BURRITO
TIRAMISU
ESPRESSO
***
*/
|
[
"jianbojia@Jianbos-iMac.local"
] |
jianbojia@Jianbos-iMac.local
|
6a9552d870dd782269b9a72992d9cadef333bec0
|
90312ad74e5af744750d358a9d97a90d99ca9ebf
|
/app/src/main/java/com/github/vase4kin/teamcityapp/buildlist/filter/BuildListFilterImpl.java
|
504e121f6226d49fe84480ee47d1f335e8b10df4
|
[
"Apache-2.0"
] |
permissive
|
morristech/TeamCityApp
|
2f8c862f44829141010201027ed83c702cfd806e
|
358ccd4a217d173e28c1da317e56562df551da8d
|
refs/heads/master
| 2020-03-29T22:26:19.451025
| 2018-07-01T17:00:37
| 2018-07-01T17:00:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,129
|
java
|
/*
* Copyright 2016 Andrey Tolpeev
*
* 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.github.vase4kin.teamcityapp.buildlist.filter;
import android.text.TextUtils;
import com.github.vase4kin.teamcityapp.filter_builds.view.FilterBuildsView;
/**
* Impl of {@link BuildListFilter}
*/
public class BuildListFilterImpl implements BuildListFilter {
private int mFilterType;
private String mBranch;
private boolean mIsPersonal = false;
private boolean mIsPinned = false;
/**
* {@inheritDoc}
*/
@Override
public void setFilter(int filter) {
this.mFilterType = filter;
}
/**
* {@inheritDoc}
*/
@Override
public void setBranch(String branch) {
this.mBranch = branch;
}
/**
* {@inheritDoc}
*/
@Override
public void setPersonal(boolean isPersonal) {
this.mIsPersonal = isPersonal;
}
/**
* {@inheritDoc}
*/
@Override
public void setPinned(boolean isPinned) {
this.mIsPinned = isPinned;
}
/**
* {@inheritDoc}
*/
@Override
public String toLocator() {
StringBuilder locatorBuilder = new StringBuilder();
switch (mFilterType) {
case FilterBuildsView.FILTER_SUCCESS:
locatorBuilder.append("status:SUCCESS");
break;
case FilterBuildsView.FILTER_FAILED:
locatorBuilder.append("status:FAILURE");
break;
case FilterBuildsView.FILTER_ERROR:
locatorBuilder.append("status:ERROR");
break;
case FilterBuildsView.FILTER_CANCELLED:
locatorBuilder.append("canceled:true");
break;
case FilterBuildsView.FILTER_FAILED_TO_START:
locatorBuilder.append("failedToStart:true");
break;
case FilterBuildsView.FILTER_RUNNING:
locatorBuilder.append("running:true");
break;
case FilterBuildsView.FILTER_QUEUED:
locatorBuilder.append("state:queued");
break;
case FilterBuildsView.FILTER_NONE:
default:
locatorBuilder.append("state:any,canceled:any,failedToStart:any");
break;
}
locatorBuilder.append(",");
if (!TextUtils.isEmpty(mBranch)) {
locatorBuilder.append("branch:name:");
locatorBuilder.append(mBranch);
} else {
locatorBuilder.append("branch:default:any");
}
locatorBuilder.append(",");
locatorBuilder.append("personal:");
locatorBuilder.append(String.valueOf(mIsPersonal));
locatorBuilder.append(",");
locatorBuilder.append("pinned:");
// Queued builds can be shown if only pinned:any, because queued builds can't be pinned
// ONLY DO SO FOR QUEUED BUILDS FILTER (For now it's expected behavior)
if (mFilterType == FilterBuildsView.FILTER_QUEUED) {
locatorBuilder.append("any");
} else {
locatorBuilder.append(String.valueOf(mIsPinned));
}
// Remove count for queued and running build cause they don't have next href
if (mFilterType == FilterBuildsView.FILTER_RUNNING) {
return locatorBuilder.toString();
}
if (mFilterType == FilterBuildsView.FILTER_QUEUED) {
return locatorBuilder.toString();
}
locatorBuilder.append(",");
locatorBuilder.append("count:10");
return locatorBuilder.toString();
}
}
|
[
"andrey.tolpeev@gmail.com"
] |
andrey.tolpeev@gmail.com
|
f43e4371a1a74c6a358a8fa9e6b181a5325cc089
|
4c71fd34b53df0c9be0997d86aaa5622bd4dbcaa
|
/src/com/zjjershouche/service/UserService.java
|
69dce4d80023809b4fea6f70cabcae448c4183d2
|
[] |
no_license
|
parker-hh/ershouche
|
0b1f61e254795d286209378b47d6b80ebac7da94
|
fdfd3e57d24ce4788296f22b0141f3c42ccc00bd
|
refs/heads/master
| 2021-06-10T10:35:44.001923
| 2017-01-03T07:39:02
| 2017-01-03T07:39:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,380
|
java
|
package com.zjjershouche.service;
import java.util.List;
import com.zjjershouche.dao.UserDao;
import com.zjjershouche.model.Car;
import com.zjjershouche.model.Carpinpai;
import com.zjjershouche.model.User;
public class UserService {
public User login(User user){
return userDao.login(user);
}
public int register(User user) {
return userDao.register(user);
}
public User yanzhenUser(User user) {
return userDao.yanzhenUser(user);
}
public List<Car> indexCar() {
return userDao.indexCar();
}
public List<Car> indexCarL() {
return userDao.indexCarL();
}
public List<Car> indexCarM() {
return userDao.indexCarM();
}
public List<Car> indexCarS() {
return userDao.indexCarS();
}
public UserDao userDao;
public UserDao getUserDao() {
return userDao;
}
public void setUserDao(UserDao userDao) {
this.userDao = userDao;
}
public List<Carpinpai> searchCarSelect() {
return userDao.searchCarSelect();
}
public List<Car> remenCarList() {
return userDao.remenCarList();
}
public List<Car> zuixinCar() {
return userDao.zuixinCar();
}
public List<Car> qiugouCar() {
return userDao.qiugouCar();
}
public int editUser(User user) {
return userDao.editUser(user);
}
public int editPassword(User user) {
return userDao.editPassword(user);
}
}
|
[
"289115128@qq.com"
] |
289115128@qq.com
|
3afb64c1422830e052b345e2911dfb6566fc01ce
|
af2b3ba0c64f3b4c9d2059f73e79d4c377a0b5d1
|
/AndroidStudioProjects/CriminalIntentChallenge12.2/app/src/main/java/com/bignerdranch/android/criminalintent/PickerDialogFragment.java
|
97cf9de5e6460ba96da4c1250f95efb3cdac17e1
|
[] |
no_license
|
xuelang201201/Android
|
495b411a3bcdf70969ff01cf8fcb7ee8ea5abfd8
|
0829c4904193c07cb41048543defae83f6c5a226
|
refs/heads/master
| 2022-05-06T09:09:48.921737
| 2020-04-22T08:41:15
| 2020-04-22T08:41:15
| 257,838,791
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,924
|
java
|
package com.bignerdranch.android.criminalintent;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import java.util.Calendar;
import java.util.Date;
public abstract class PickerDialogFragment extends DialogFragment {
private static final String ARG_DATE = "date";
public static final String EXTRA_DATE = "com.bignerdranch.android.criminalintent.date";
protected Calendar mCalendar;
protected abstract View initLayout();
protected abstract Date getDate();
protected Button mDateOKButton;
protected static Bundle getArgs(Date date) {
Bundle args = new Bundle();
args.putSerializable(ARG_DATE, date);
return args;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Date date = (Date) getArguments().getSerializable(ARG_DATE);
mCalendar = Calendar.getInstance();
mCalendar.setTime(date);
final View v = initLayout();
mDateOKButton = (Button) v.findViewById(R.id.crime_date_picker_ok);
mDateOKButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
v.setVisibility(View.GONE);
Date date = getDate();
sendResult(Activity.RESULT_OK ,date);
dismiss();
}
});
return v;
}
private void sendResult(int resultCode, Date date) {
if (getTargetFragment() == null) {
return;
}
Intent intent = new Intent();
intent.putExtra(EXTRA_DATE, date);
getTargetFragment().onActivityResult(getTargetRequestCode(), resultCode, intent);
}
}
|
[
"xuelang201201@gmail.com"
] |
xuelang201201@gmail.com
|
eee83ae7117831d10cbe5f656fc3ea0d1cc1e6a8
|
44fb1e7fe52a1609115170f50cbd5a1385de88c2
|
/Java/zipkin/zipkin-storage/elasticsearch-http/src/test/java/zipkin/storage/elasticsearch/LazyElasticsearchHttpStorage.java
|
982c90575ff9959547197ec6a6c11e9829a825dc
|
[
"Apache-2.0"
] |
permissive
|
JLLeitschuh/Corpus
|
64d69507ac9a49490fca3d2c1b0cc3592a807120
|
7186ac8dab669b6791cf8b5373f3e4fbbe152838
|
refs/heads/master
| 2021-01-02T15:28:02.789111
| 2017-06-04T05:35:31
| 2017-06-04T05:35:31
| 239,679,322
| 0
| 0
| null | 2020-02-11T04:54:30
| 2020-02-11T04:54:29
| null |
UTF-8
|
Java
| false
| false
| 3,306
|
java
|
/**
* Copyright 2015-2017 The OpenZipkin 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 zipkin.storage.elasticsearch;
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableList;
import java.io.IOException;
import okhttp3.OkHttpClient;
import org.junit.AssumptionViolatedException;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.wait.HttpWaitStrategy;
import zipkin.Component;
import zipkin.internal.LazyCloseable;
import zipkin.storage.elasticsearch.http.HttpClientBuilder;
@Deprecated
class LazyElasticsearchHttpStorage extends LazyCloseable<ElasticsearchStorage> implements TestRule {
final String image;
GenericContainer container;
LazyElasticsearchHttpStorage(String image) {
this.image = image;
}
@Override protected ElasticsearchStorage compute() {
try {
container = new GenericContainer(image)
.withExposedPorts(9200)
.waitingFor(new HttpWaitStrategy().forPath("/"));
container.start();
System.out.println("Will use TestContainers Elasticsearch instance");
} catch (Exception e) {
// Ignore
}
ElasticsearchStorage result = computeStorageBuilder().build();
Component.CheckResult check = result.check();
if (check.ok) {
return result;
} else {
throw new AssumptionViolatedException(check.exception.getMessage(), check.exception);
}
}
public ElasticsearchStorage.Builder computeStorageBuilder() {
ElasticsearchStorage.Builder builder =
ElasticsearchStorage.builder(HttpClientBuilder.create(new OkHttpClient()))
.index("test_zipkin_http").flushOnWrites(true);
if (container != null && container.isRunning()) {
String endpoint = String.format("http://%s:%d", container.getContainerIpAddress(),
container.getMappedPort(9200));
builder.hosts(ImmutableList.of(endpoint));
} else {
// Use localhost if we failed to start a container (i.e. Docker is not available)
builder.hosts(ImmutableList.of("localhost:9200"));
}
return builder;
}
@Override public void close() {
try {
ElasticsearchStorage storage = maybeNull();
if (storage != null) storage.close();
} catch (IOException e) {
Throwables.propagate(e);
} finally {
if (container != null) container.stop();
}
}
@Override public Statement apply(Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {
get();
try {
base.evaluate();
} finally {
close();
}
}
};
}
}
|
[
"dor.d.ma@gmail.com"
] |
dor.d.ma@gmail.com
|
7b0eb0abf575f03b99acb6a258f45c5b4a6c94e2
|
e6c5205c9e4d0d81095f7a764a7a2df002d60830
|
/src/org/apache/ctakes/typesystem/type/textsem/MedicationRouteModifier.java
|
921f5d4a95528ac08928e5115830f1a43e601592
|
[
"Apache-2.0"
] |
permissive
|
harryhoch/DeepPhe
|
796009a6f583bd7f0032d26300cad8692b0d7a6d
|
fe8c2d2c79ec53bb048235816535901bee961090
|
refs/heads/master
| 2020-12-26T03:22:44.606278
| 2015-05-22T15:21:45
| 2015-05-22T15:21:45
| 50,454,055
| 0
| 0
| null | 2016-01-26T19:39:54
| 2016-01-26T19:39:54
| null |
UTF-8
|
Java
| false
| false
| 2,221
|
java
|
/* First created by JCasGen Mon May 11 11:00:52 EDT 2015 */
package org.apache.ctakes.typesystem.type.textsem;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
/** Means by which the medication was taken or administered. Value set includes Topical, Enteral_Oral, Parenteral_Intravenous, Other, undetermined, etc.
* Updated by JCasGen Mon May 11 11:00:52 EDT 2015
* XML source: /home/tseytlin/Work/DeepPhe/ctakes-cancer/src/main/resources/org/apache/ctakes/cancer/types/TypeSystem.xml
* @generated */
public class MedicationRouteModifier extends Modifier {
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int typeIndexID = JCasRegistry.register(MedicationRouteModifier.class);
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int type = typeIndexID;
/** @generated
* @return index of the type
*/
@Override
public int getTypeIndexID() {return typeIndexID;}
/** Never called. Disable default constructor
* @generated */
protected MedicationRouteModifier() {/* intentionally empty block */}
/** Internal - constructor used by generator
* @generated
* @param addr low level Feature Structure reference
* @param type the type of this Feature Structure
*/
public MedicationRouteModifier(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
/** @generated
* @param jcas JCas to which this Feature Structure belongs
*/
public MedicationRouteModifier(JCas jcas) {
super(jcas);
readObject();
}
/** @generated
* @param jcas JCas to which this Feature Structure belongs
* @param begin offset to the begin spot in the SofA
* @param end offset to the end spot in the SofA
*/
public MedicationRouteModifier(JCas jcas, int begin, int end) {
super(jcas);
setBegin(begin);
setEnd(end);
readObject();
}
/**
* <!-- begin-user-doc -->
* Write your own initialization here
* <!-- end-user-doc -->
*
* @generated modifiable
*/
private void readObject() {/*default - does nothing empty block */}
}
|
[
"tseytlin@pitt.edu"
] |
tseytlin@pitt.edu
|
b0498a068bdd079614ecf8d7a1fa7d2b6b14ae9f
|
280ce9155107a41d88167818054fca9bceda796b
|
/jre_emul/android/platform/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/LongHashtable.java
|
74f01fb24a583c2e563030506f099d812e6f704e
|
[
"Apache-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"APSL-1.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-red-hat-attribution",
"ICU",
"MIT",
"CPL-1.0",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-copyleft",
"NAIST-2003",
"GPL-2.0-or-later",
"APSL-2.0",
"LicenseRef-scancode-oracle-openjdk-exception-2.0"
] |
permissive
|
google/j2objc
|
bd4796cdf77459abe816ff0db6e2709c1666627c
|
57b9229f5c6fb9e710609d93ca49eda9fa08c0e8
|
refs/heads/master
| 2023-08-28T16:26:05.842475
| 2023-08-26T03:30:58
| 2023-08-26T03:32:25
| 16,389,681
| 5,053
| 1,041
|
Apache-2.0
| 2023-09-14T20:32:57
| 2014-01-30T20:19:56
|
Java
|
UTF-8
|
Java
| false
| false
| 1,312
|
java
|
/* GENERATED SOURCE. DO NOT MODIFY. */
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
package android.icu.dev.test.normalizer;
import java.util.HashMap;
import java.util.Map;
/**
*******************************************************************************
* Copyright (C) 2002-2010, International Business Machines Corporation and *
* Unicode, Inc. All Rights Reserved. *
*******************************************************************************
*
* Hashtable storing ints addressed by longs. Used
* for storing of composition data.
* @author Vladimir Weinstein
*/
public class LongHashtable {
public LongHashtable (int defaultValue) {
this.defaultValue = defaultValue;
}
public void put(long key, int value) {
if (value == defaultValue) {
table.remove(new Long(key));
} else {
table.put(new Long(key), new Integer(value));
}
}
public int get(long key) {
Integer value = table.get(new Long(key));
if (value == null) return defaultValue;
return value.intValue();
}
private int defaultValue;
private Map<Long, Integer> table = new HashMap<Long, Integer>();
}
|
[
"antoniocortes@google.com"
] |
antoniocortes@google.com
|
13a3523fc669a90c221842e3ecb57381c1d3f46d
|
8d77ad479e3747ca0b69f42abef278a6e547ce0e
|
/src/com/bhtec/service/iface/platform/mainframefun/MainFrameFunService.java
|
01de834ff7479f2359eb4aed871a2fce065cdb5d
|
[] |
no_license
|
Hoop88/bhtsys
|
95e3dc24fe31cf98197ca65841fc96cc933160a7
|
48f57a29105077d12fb14f6a418aac3ace14e862
|
refs/heads/master
| 2021-01-01T19:33:59.712988
| 2015-08-11T19:15:39
| 2015-08-11T19:15:39
| 11,946,815
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,234
|
java
|
/**
*功能说明:
* @author jacobliang
* @time @Jul 24, 2010 @10:05:20 PM
*/
package com.bhtec.service.iface.platform.mainframefun;
import java.io.File;
import java.util.List;
import java.util.Map;
import org.dom4j.Document;
import org.dom4j.Element;
import com.bhtec.common.tools.XmlOpUtil;
import com.bhtec.domain.pojohelper.platform.mainframefun.MainFrameFun;
import com.bhtec.exception.ApplicationException;
import com.bhtec.service.iface.BaseService;
import com.bhtec.service.impl.platform.mainframefun.MainFrameFunServiceImpl;
public interface MainFrameFunService extends BaseService{
/**
* 功能说明:增加功能區,同时包含修改功能区功能
* @author jacobliang
* @param mainFrameFun 功能区对象
* @throws
* @time Jul 24, 2010 4:31:07 PM
*/
public void saveMainFrameFun(MainFrameFun mainFrameFun)throws ApplicationException;
/**
* 功能说明:修改功能區
* @author jacobliang
* @throws
* @time Jul 24, 2010 4:31:52 PM
*/
public void modifyMainFrameFun();
/**
* 功能说明:刪除功能區
* @author jacobliang
* @param delRecIds 功能区名称
* @throws
* @time Jul 24, 2010 4:32:29 PM
*/
public void deleteMainFrameFun(String delRecIds)throws ApplicationException;
/**
* 功能说明:
* @author jacobliang
* @throws
* @time Jul 24, 2010 4:34:52 PM
*/
public MainFrameFun findMainFrameFunByFunName(String modViewRecId)throws ApplicationException;
/**
* 功能说明:根据条件查询所有主框架功能区
* @author jacobliang
* @return
* @throws
* @time Aug 9, 2010 6:37:54 PM
*/
public Map findMainFrameFunByCon(int start,int limit,String funName)throws ApplicationException;
/**
* 功能说明:根据id查找功能区
* @author jacobliang
* @throws
* @time Jul 24, 2010 4:34:52 PM
*/
public MainFrameFun findMainFrameFunByFunId(String modViewRecId)throws ApplicationException;
/**
* 功能说明:获得定义的所有功能区列表
* @author jacobliang
* @return
* @throws
* @time Aug 19, 2010 7:37:38 PM
*/
public Map<String,List<MainFrameFun>> findAllMainFrameFun()throws ApplicationException;
}
|
[
"liudi7799@163.com"
] |
liudi7799@163.com
|
997a841ce1f3fe248ad8927fb940e0c5b3132252
|
39bfefe6d7b6b151cf4f9396b89f759b8605aca7
|
/MS_LIBRARY/src/org/yeastrc/ms/domain/analysis/peptideProphet/PeptideProphetROC.java
|
34d4c5c913c0eac038fa2249b1dd0f0052d2ea3c
|
[
"Apache-2.0"
] |
permissive
|
yeastrc/msdapl
|
45bc25a7833e23908905c6190aa811cfc1aa0e56
|
0239d2dc34a41702eec39ee4cf1de95593044777
|
refs/heads/master
| 2021-01-19T04:43:52.705399
| 2017-12-19T00:30:02
| 2017-12-19T00:30:02
| 45,417,924
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,561
|
java
|
/**
* PeptideProphet_ROC.java
* @author Vagisha Sharma
* Jul 23, 2009
* @version 1.0
*/
package org.yeastrc.ms.domain.analysis.peptideProphet;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public class PeptideProphetROC {
private int searchAnalysisId;
private List<PeptideProphetROCPoint> rocPoints;
public PeptideProphetROC() {
rocPoints = new ArrayList<PeptideProphetROCPoint>();
}
public int getSearchAnalysisId() {
return searchAnalysisId;
}
public void setSearchAnalysisId(int searchAnalysisId) {
this.searchAnalysisId = searchAnalysisId;
for(PeptideProphetROCPoint point: rocPoints) {
point.setSearchAnalysisId(searchAnalysisId);
}
}
public List<PeptideProphetROCPoint> getRocPoints() {
return rocPoints;
}
public void addRocPoint(PeptideProphetROCPoint point) {
this.rocPoints.add(point);
point.setSearchAnalysisId(this.searchAnalysisId);
}
public void setRocPoints(List<PeptideProphetROCPoint> rocPoints) {
this.rocPoints = rocPoints;
for(PeptideProphetROCPoint point: rocPoints)
point.setSearchAnalysisId(searchAnalysisId);
}
public double getMinProbabilityForError(double error) {
double closestError = Double.MIN_VALUE;
double probability = -1.0;
for(PeptideProphetROCPoint point: rocPoints) {
if(probability == -1.0) {
closestError = point.getError();
probability = point.getMinProbability();
continue;
}
double diff = Math.abs(error - point.getError());
double oldDiff = Math.abs(error - closestError);
if(diff < oldDiff) {
closestError = point.getError();
probability = point.getMinProbability();
}
}
if(probability == -1.0)
return 0.0;
return probability;
}
public double getClosestError(double error) {
if(rocPoints == null || rocPoints.size() == 0)
{
return 1.0;
}
double closestError = rocPoints.get(0).getError();
for(PeptideProphetROCPoint point: rocPoints) {
double diff = Math.abs(error - point.getError());
double oldDiff = Math.abs(error - closestError);
if(diff < oldDiff) {
closestError = point.getError();
}
}
return closestError;
}
}
|
[
"danjasuw@users.noreply.github.com"
] |
danjasuw@users.noreply.github.com
|
1894bb73a02aa4174677a1d9c50d1d3aac913c44
|
e787186ae56200db6b82e4a7af2a08463cb34064
|
/http/src/main/java/org/zgl/logic/hall/shop/cmd/ShopBuy_gold.java
|
b8f86a7e150f86fa4bb0ef86c83247dfc0c9e5aa
|
[] |
no_license
|
zglbig/hall_1.0
|
a12daf20bce09df9f91142fd725dcbad815f3f17
|
de0890ebd21b7d3b6f44deedb56f979652a3d8f1
|
refs/heads/master
| 2020-03-18T08:10:49.451796
| 2018-05-25T07:18:59
| 2018-05-25T07:18:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,067
|
java
|
package org.zgl.logic.hall.shop.cmd;
import org.zgl.error.LogAppError;
import org.zgl.jetty.operation.OperateCommandAbstract;
import org.zgl.jetty.session.SessionManager;
import org.zgl.logic.hall.shop.data.CommodityDataTable;
import org.zgl.logic.hall.shop.manager.ShopManager;
import org.zgl.player.UserMap;
import org.zgl.utils.builder_clazz.ann.Protocol;
/**
* @作者: big
* @创建时间: 2018/5/21
* @文件描述:
*/
@Protocol("24")
public class ShopBuy_gold extends OperateCommandAbstract {
private final int commodityId;
public ShopBuy_gold(int commodityId, String account) {
super(account);
this.commodityId = commodityId;
}
@Override
public Object execute() {
CommodityDataTable dataTable = CommodityDataTable.get(commodityId);
if(dataTable == null)
new LogAppError("获取不到id为:"+commodityId+" 商城对应的物品");
UserMap userMap = SessionManager.getSession(getAccount());
return ShopManager.getInstance().bay(userMap,dataTable,commodityId);
}
}
|
[
"1030681978@qq.com"
] |
1030681978@qq.com
|
05ad133440768f3e2cb177385fcb2e0520c1bfb1
|
5d45c239058b592d3a982dc6b5048b5c0ec0ed8d
|
/src/xscript/XRuntimeScriptException.java
|
d78fe44253050ca55a5cfb7c2435d8c92eebbfa4
|
[] |
no_license
|
XOR19/XScript
|
b41a7e03dd8489c88eb006fefbfba215896c6b92
|
766614a7e962baec3af2f74cefabbd5f7731d5c8
|
refs/heads/master
| 2016-09-09T17:56:21.759617
| 2015-03-06T18:43:32
| 2015-03-06T18:43:32
| 15,005,397
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 232
|
java
|
package xscript;
public class XRuntimeScriptException extends RuntimeException {
private static final long serialVersionUID = 9093737675607211218L;
public XRuntimeScriptException(XScriptException cause){
super(cause);
}
}
|
[
"nils.h.emmerich@gmail.com"
] |
nils.h.emmerich@gmail.com
|
0588524f3c4bf858de2895a88d38a5bf6fccf143
|
a493a137a0dcf581560a4e3ecef0259e4e583611
|
/bitcamp-java-application4-server/v43_1/src/main/java/com/eomcs/lms/handler/MemberUpdateCommand.java
|
058ec9ddf9ef90ef8afd845eafd5f22fb8ab4aa1
|
[] |
no_license
|
EoneTrance/bitcamp-java-20190527
|
609df28c371809723853058431259326c5d14c71
|
665da58407b1051c8633b3ee6cb033477e9c9a07
|
refs/heads/master
| 2020-06-13T20:16:55.776575
| 2019-09-30T03:00:17
| 2019-09-30T03:00:17
| 194,775,347
| 1
| 0
| null | 2020-04-30T11:49:50
| 2019-07-02T02:41:02
|
Java
|
UTF-8
|
Java
| false
| false
| 1,738
|
java
|
package com.eomcs.lms.handler;
import java.io.BufferedReader;
import java.io.PrintStream;
import com.eomcs.lms.dao.MemberDao;
import com.eomcs.lms.domain.Member;
import com.eomcs.util.Input;
public class MemberUpdateCommand implements Command {
private MemberDao memberDao;
public MemberUpdateCommand(MemberDao memberDao) {
this.memberDao = memberDao;
}
@Override
public void execute(BufferedReader in, PrintStream out) {
try {
int no = Input.getIntValue(in, out, "번호?");
Member member = memberDao.findBy(no);
if (member == null) {
out.println("해당 번호의 데이터가 없습니다!");
return;
}
// 사용자로부터 변경할 값을 입력 받는다.
String str = Input.getStringValue(in, out, "이름(" + member.getName() + ")?");
if (str.length() > 0) {
member.setName(str);
}
str = Input.getStringValue(in, out, "이메일(" + member.getEmail() + ")?");
if (str.length() > 0) {
member.setEmail(str);
}
str = Input.getStringValue(in, out, "암호?");
if (str.length() > 0) {
member.setPassword(str);
}
str = Input.getStringValue(in, out, "사진(" + member.getPhoto() + ")?");
if (str.length() > 0) {
member.setPhoto(str);
}
str = Input.getStringValue(in, out, "전화(" + member.getTel() + ")?");
if (str.length() > 0) {
member.setTel(str);
}
memberDao.update(member);
out.println("데이터를 변경하였습니다.");
} catch (Exception e) {
out.println("데이터 변경에 실패했습니다!");
System.out.println(e.getMessage());
}
}
}
|
[
"karnenis@gmail.com"
] |
karnenis@gmail.com
|
d28e2b552df6e7ab7be7f7cda587454d1c5b2a24
|
d0cc71fab7b56c1dd3f1516a27b85f2cc68602ff
|
/src/java/main/com/cnblogs/hoojo/reflection/DynamicProxyTest.java
|
1ffc31d5962963527d1ab4557879ec6bcd42e44f
|
[] |
no_license
|
cohaolee/guava-example
|
60557d9c160ec203ecba60d14160fb4cc01d22f6
|
3c30cf3bcbd07310f8398eaffe6aefcc42da8435
|
refs/heads/master
| 2020-06-01T23:14:46.208004
| 2019-01-30T07:17:28
| 2019-01-30T07:17:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,069
|
java
|
package com.cnblogs.hoojo.reflection;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import org.junit.Test;
import com.google.common.reflect.AbstractInvocationHandler;
import com.google.common.reflect.Reflection;
/**
* 动态代理
* 实用方法Reflection.newProxy(Class, InvocationHandler)是一种更安全,更方便的API,
* 它只有一个单一的接口类型需要被代理来创建Java动态代理时。
* @author hoojo
* @createDate 2018年12月26日 下午4:58:41
* @file DynamicProxyTest.java
* @package com.cnblogs.hoojo.reflection
* @project guava-example
* @blog http://hoojo.cnblogs.com
* @email hoojo_@126.com
* @version 1.0
*/
public class DynamicProxyTest {
interface Foo {
}
@Test
public void test1() {
// JDK 代理
InvocationHandler invocationHandler = new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
return null;
}
};
Foo foo = (Foo) Proxy.newProxyInstance(
Foo.class.getClassLoader(),
new Class<?>[] { Foo.class },
invocationHandler);
out(foo);
// Reflection
foo = Reflection.newProxy(Foo.class, invocationHandler);
out(foo);
// AbstractInvocationHandler
// 动态代理能够更直观的支持equals(),hashCode()和toString(),那就是:
// 一个代理实例equal另外一个代理实例,只要他们有同样的接口类型和equal的invocation handlers。
// 一个代理实例的toString()会被代理到invocation handler的toString(),这样更容易自定义。
AbstractInvocationHandler handler = new AbstractInvocationHandler() {
// 确保传递给handleInvocation(Object, Method, Object[]))的参数数组永远不会空
protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
return null;
}
};
out(handler);
}
private void out(Object o) {
System.out.println(o);
}
}
|
[
"hoojo@qq.com"
] |
hoojo@qq.com
|
530ae3e77962ae8a4386671273e3ea69dda2b285
|
1f84291b31b6ef9ed808d606a43524e7e5cce0f6
|
/src/main/java/com/l2jserver/commons/database/pool/impl/ConnectionFactory.java
|
1922c392f851bc5047b7c8fb7cc3ffcf362c0ba2
|
[] |
no_license
|
cucky/l2j_server_custom
|
ad57dae381fd9e7fa59a0ce455d595806f8883d7
|
980d9505824f77c7eb4c85449e0e9dabce7fc138
|
refs/heads/master
| 2021-01-19T17:25:19.131683
| 2017-03-01T09:34:02
| 2017-03-01T09:34:02
| 82,452,550
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,847
|
java
|
/*
* Copyright (C) 2004-2015 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server 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.
*
* L2J Server is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.commons.database.pool.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.l2jserver.Config;
import com.l2jserver.commons.database.pool.IConnectionFactory;
/**
* Connection Factory implementation.
* @author Zoey76
*/
public class ConnectionFactory
{
public static IConnectionFactory getInstance()
{
return SingletonHolder.INSTANCE;
}
private static class SingletonHolder
{
private static final Logger LOG = LoggerFactory.getLogger(ConnectionFactory.class);
protected static final IConnectionFactory INSTANCE;
static
{
switch (Config.DATABASE_CONNECTION_POOL)
{
default:
case "HikariCP":
{
INSTANCE = new HikariCPConnectionFactory();
break;
}
case "C3P0":
{
INSTANCE = new C3P0ConnectionFactory();
break;
}
case "BoneCP":
{
INSTANCE = new BoneCPConnectionFactory();
break;
}
}
LOG.info("Using {} connection pool.", INSTANCE.getClass().getSimpleName().replace("ConnectionFactory", ""));
}
}
}
|
[
"Michal@Michal"
] |
Michal@Michal
|
e873b263a1256c4e57fae7585c282a80054715f8
|
9f8304a649e04670403f5dc1cb049f81266ba685
|
/common/src/main/java/com/cmcc/vrp/wx/beans/InviteQrcodeReqActionInfo.java
|
bcbeafcc4d2a87dda7ba358c5a0fb7caac3809e9
|
[] |
no_license
|
hasone/pdata
|
632d2d0df9ddd9e8c79aca61a87f52fc4aa35840
|
0a9cfd988e8a414f3bdbf82ae96b82b61d8cccc2
|
refs/heads/master
| 2020-03-25T04:28:17.354582
| 2018-04-09T00:13:55
| 2018-04-09T00:13:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 447
|
java
|
package com.cmcc.vrp.wx.beans;
import com.alibaba.fastjson.annotation.JSONField;
/**
* InviteQrcodeReqActionInfo.java
* @author wujiamin
* @date 2017年2月27日
*/
public class InviteQrcodeReqActionInfo {
@JSONField(name="scene")
private InviteQrcodeReqScene scene;
public InviteQrcodeReqScene getScene() {
return scene;
}
public void setScene(InviteQrcodeReqScene scene) {
this.scene = scene;
}
}
|
[
"fromluozuwu@qq.com"
] |
fromluozuwu@qq.com
|
1c8b7f9116d6eaa0200b4d9a3e689fda086f86fc
|
fff3302fe8193d13360f12e5b13d376ef76cf4d6
|
/AppLock/com/google/android/gms/p004b/C2428e.java
|
50272830ed8b032ba9b2859b0841a2bd924b1f2d
|
[] |
no_license
|
shaolin-example-com-my-shopify-com/KidWatcher
|
2912950b7ca4773c3d29005b9d231ad6035b4912
|
f67a81b757043159ea358b7f9e4b16fd6be0e0c0
|
refs/heads/master
| 2022-04-25T17:19:28.800922
| 2020-04-30T02:53:20
| 2020-04-30T02:53:20
| 260,098,439
| 0
| 0
| null | 2020-04-30T02:51:49
| 2020-04-30T02:51:48
| null |
UTF-8
|
Java
| false
| false
| 975
|
java
|
package com.google.android.gms.p004b;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.util.concurrent.Executor;
public abstract class C2428e<TResult> {
@NonNull
public C2428e<TResult> mo3306a(@NonNull C0625a<TResult> c0625a) {
throw new UnsupportedOperationException("addOnCompleteListener is not implemented");
}
@NonNull
public C2428e<TResult> mo3307a(@NonNull Executor executor, @NonNull C0625a<TResult> c0625a) {
throw new UnsupportedOperationException("addOnCompleteListener is not implemented");
}
@NonNull
public abstract C2428e<TResult> mo3308a(@NonNull Executor executor, @NonNull C2425b c2425b);
@NonNull
public abstract C2428e<TResult> mo3309a(@NonNull Executor executor, @NonNull C2426c<? super TResult> c2426c);
public abstract boolean mo3310a();
public abstract TResult mo3311b();
@Nullable
public abstract Exception mo3312c();
}
|
[
"Nist@netcompany.com"
] |
Nist@netcompany.com
|
d97e1bf069208e85e43bd2a6dbedb8225f1b7933
|
dac8a56ee2c38c3a48f7a38677cc252fd0b5f94a
|
/java9/ControlStatementPart2/Program4/Program4.java
|
34524412962bcecf95e6414fc8ea7b3bbd1dfe26
|
[] |
no_license
|
nikitasanjaypatil/Java9
|
64dbc0ec8b204c54bfed128d9517ea0fb00e97a4
|
fd92b1b13d767e5ee48d88fe22f0260d3d1ac391
|
refs/heads/master
| 2023-03-15T03:44:34.347450
| 2021-02-28T17:13:01
| 2021-02-28T17:13:01
| 281,289,978
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,151
|
java
|
class SwitchDemo {
public static void main(String[] args) {
/* char x = 'A';
switch(x) {
case 'B' :
System.out.println("B Char");
break;
case 'A' :
System.out.println("A char"); // A char
break;
} */
char x = '8';
switch(x) {
case 8 :
System.out.println("8 Val");
break;
case '8' :
System.out.println("8 char"); // 8 char
break;
}
/* char x = '40'; // Error
switch(x) {
case 8 :
System.out.println("8 Val");
break;
case '8' :
System.out.println("8 char");
break;
} */
}
}
|
[
"nikitaspatilaarvi@gmail.com"
] |
nikitaspatilaarvi@gmail.com
|
425527e738db379d727dd375f85c36ec11b51275
|
1707a57b8aa60f802bd85faed518bb16e6591c9c
|
/src/main/java/io/apigo/api/governance/service/mapper/UserMapper.java
|
1d186229a4034c331eb1d8b55b238865919131c0
|
[
"Apache-2.0"
] |
permissive
|
ConsuelosIP/api-governance
|
e25a30879fc7b0afd42fc40ff6526fa70830a674
|
6fd55bea125182c987ba02d3f780e3998f06fdbc
|
refs/heads/master
| 2021-07-16T11:12:29.094706
| 2017-10-23T18:46:27
| 2017-10-23T18:46:27
| 111,264,305
| 2
| 1
| null | 2017-11-19T04:31:41
| 2017-11-19T04:31:41
| null |
UTF-8
|
Java
| false
| false
| 2,341
|
java
|
package io.apigo.api.governance.service.mapper;
import io.apigo.api.governance.domain.Authority;
import io.apigo.api.governance.domain.User;
import io.apigo.api.governance.service.dto.UserDTO;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
/**
* Mapper for the entity User and its DTO called UserDTO.
*
* Normal mappers are generated using MapStruct, this one is hand-coded as MapStruct
* support is still in beta, and requires a manual step with an IDE.
*/
@Service
public class UserMapper {
public UserDTO userToUserDTO(User user) {
return new UserDTO(user);
}
public List<UserDTO> usersToUserDTOs(List<User> users) {
return users.stream()
.filter(Objects::nonNull)
.map(this::userToUserDTO)
.collect(Collectors.toList());
}
public User userDTOToUser(UserDTO userDTO) {
if (userDTO == null) {
return null;
} else {
User user = new User();
user.setId(userDTO.getId());
user.setLogin(userDTO.getLogin());
user.setFirstName(userDTO.getFirstName());
user.setLastName(userDTO.getLastName());
user.setEmail(userDTO.getEmail());
user.setImageUrl(userDTO.getImageUrl());
user.setActivated(userDTO.isActivated());
user.setLangKey(userDTO.getLangKey());
Set<Authority> authorities = this.authoritiesFromStrings(userDTO.getAuthorities());
if(authorities != null) {
user.setAuthorities(authorities);
}
return user;
}
}
public List<User> userDTOsToUsers(List<UserDTO> userDTOs) {
return userDTOs.stream()
.filter(Objects::nonNull)
.map(this::userDTOToUser)
.collect(Collectors.toList());
}
public User userFromId(Long id) {
if (id == null) {
return null;
}
User user = new User();
user.setId(id);
return user;
}
public Set<Authority> authoritiesFromStrings(Set<String> strings) {
return strings.stream().map(string -> {
Authority auth = new Authority();
auth.setName(string);
return auth;
}).collect(Collectors.toSet());
}
}
|
[
"carlos@adaptive.me"
] |
carlos@adaptive.me
|
32da730ce176fe9e976524b1986dc7e5915e783b
|
db97ce70bd53e5c258ecda4c34a5ec641e12d488
|
/src/main/java/com/alipay/api/response/AlipayZdatafrontDatatransferedFileuploadResponse.java
|
0cb70327b8338a18237fbcf7843d547f24c4e83d
|
[
"Apache-2.0"
] |
permissive
|
smitzhang/alipay-sdk-java-all
|
dccc7493c03b3c937f93e7e2be750619f9bed068
|
a835a9c91e800e7c9350d479e84f9a74b211f0c4
|
refs/heads/master
| 2022-11-23T20:32:27.041116
| 2020-08-03T13:03:02
| 2020-08-03T13:03:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,021
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.zdatafront.datatransfered.fileupload response.
*
* @author auto create
* @since 1.0, 2019-03-08 15:29:11
*/
public class AlipayZdatafrontDatatransferedFileuploadResponse extends AlipayResponse {
private static final long serialVersionUID = 5887443838859672717L;
/**
* 返回用户数据推送产生的结果数据,如picPath为文件上传后返回文件内部存储的位置信息
*/
@ApiField("result_data")
private String resultData;
/**
* 数据上传结果,true/false
*/
@ApiField("success")
private String success;
public void setResultData(String resultData) {
this.resultData = resultData;
}
public String getResultData( ) {
return this.resultData;
}
public void setSuccess(String success) {
this.success = success;
}
public String getSuccess( ) {
return this.success;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
d3012a8e74fbae98426f68b0bb69ddd50979f1f7
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas/applicationModule/src/main/java/applicationModulepackageJava6/Foo394.java
|
b8d926a8d521a358bddc7f3b42af42c03741df33
|
[] |
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
| 346
|
java
|
package applicationModulepackageJava6;
public class Foo394 {
public void foo0() {
new applicationModulepackageJava6.Foo393().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
741652fa00f04f835c4efe32ec719d3d7515b809
|
7344866370bd60505061fcc7e8c487339a508bb9
|
/OpenConcerto/src/org/openconcerto/ui/group/modifier/AddItemModifier.java
|
7976981826f3547d16335e8912252d5c8738122f
|
[] |
no_license
|
sanogotech/openconcerto_ERP_JAVA
|
ed3276858f945528e96a5ccfdf01a55b58f92c8d
|
4d224695be0a7a4527851a06d8b8feddfbdd3d0e
|
refs/heads/master
| 2023-04-11T09:51:29.952287
| 2021-04-21T14:39:18
| 2021-04-21T14:39:18
| 360,197,474
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,301
|
java
|
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
*
* The contents of this file are subject to the terms of the GNU General Public License Version 3
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each file.
*/
package org.openconcerto.ui.group.modifier;
import org.openconcerto.ui.group.Group;
import org.openconcerto.ui.group.GroupModifier;
public class AddItemModifier extends ItemGroupModifier {
public AddItemModifier(String itemId) {
super(itemId);
}
@Override
public void applyOn(Group g) {
g.addItem(getItemId());
}
@Override
public boolean canBeAppliedOn(Group g) {
return !g.contains(getItemId());
}
@Override
public boolean isCompatibleWith(GroupModifier g) {
if (g instanceof RemoveItemModifier) {
return !((RemoveItemModifier) g).getItemId().equals(getItemId());
}
return true;
}
}
|
[
"davask.42@gmail.com"
] |
davask.42@gmail.com
|
820882589a49c341df205769839c061b140604f6
|
95d20c83d8aff34e314c56a3ecb2b87c9fa9fc86
|
/Ghidra/Features/Base/src/main/java/ghidra/app/services/ProgramLocationPair.java
|
9abc8bbe5ac02b6b996b3326893135f9172a7583
|
[
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
NationalSecurityAgency/ghidra
|
969fe0d2ca25cb8ac72f66f0f90fc7fb2dbfa68d
|
7cc135eb6bfabd166cbc23f7951dae09a7e03c39
|
refs/heads/master
| 2023-08-31T21:20:23.376055
| 2023-08-29T23:08:54
| 2023-08-29T23:08:54
| 173,228,436
| 45,212
| 6,204
|
Apache-2.0
| 2023-09-14T18:00:39
| 2019-03-01T03:27:48
|
Java
|
UTF-8
|
Java
| false
| false
| 1,493
|
java
|
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ghidra.app.services;
import ghidra.program.model.listing.Program;
import ghidra.program.util.ProgramLocation;
/** A simple object that contains a ProgramLocation and its associated Program */
public class ProgramLocationPair {
private final Program program;
private final ProgramLocation location;
public ProgramLocationPair( Program program, ProgramLocation location ) {
if ( program == null ) {
throw new NullPointerException( "Program cannot be null" );
}
if ( location == null ) {
throw new NullPointerException( "ProgramLocation cannot be null" );
}
this.program = program;
this.location = location;
}
public Program getProgram() {
return program;
}
public ProgramLocation getProgramLocation() {
return location;
}
}
|
[
"46821332+nsadeveloper789@users.noreply.github.com"
] |
46821332+nsadeveloper789@users.noreply.github.com
|
339d0e4b09fdb88cf4f96db894b3015c14df2a7f
|
7e06d07b3d9752b1a12874c9f647cfe809b926f8
|
/18-subsets-ii/11-6-2018.java
|
190ea79843c47572d4eeac02414714209485b30b
|
[] |
no_license
|
wushangzhen/LeetCode-Practice
|
e44363f1e0ff72b80e060ac39984fe469dba04d8
|
afba5a3dc84e8615685f893b8394b5137e9a42b6
|
refs/heads/master
| 2020-03-09T18:07:32.825047
| 2019-09-17T00:14:40
| 2019-09-17T00:14:40
| 128,924,476
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 963
|
java
|
class Solution {
public List<List<Integer>> subsetsWithDup(int[] nums) {
List<List<Integer>> res = new ArrayList<>();
if (nums == null || nums.length == 0) {
return res;
}
Arrays.sort(nums);
int n = nums.length;
boolean[] visit = new boolean[n];
dfs(0, nums, visit, new LinkedList<>(), res);
return res;
}
void dfs(int start, int[] nums, boolean[] visit, List<Integer> list, List<List<Integer>> res) {
if (start > nums.length) {
return;
}
res.add(new ArrayList<>(list));
for (int i = start; i < nums.length; i++) {
if (i != start && nums[i - 1] == nums[i] && !visit[i - 1]) {
continue;
}
visit[i] = true;
list.add(nums[i]);
dfs(i + 1, nums, visit, list, res);
visit[i] = false;
list.remove(list.size() - 1);
}
}
}
|
[
"wushangzhen_bupt@163.com"
] |
wushangzhen_bupt@163.com
|
e647fa464fc66afb8e6f32b14dbe8948a2b1d91e
|
b33e3ad7e9b73074cef6c5b0bed30c160266ea35
|
/수학p4/src/수학p4/n_14470.java
|
d73f4ba1ae3b57e834597f59414e315849f3b4c7
|
[] |
no_license
|
Jaejeong98/java
|
9bea9e8fa072abf5e36407c44c526876754ff572
|
8b8c31266031b59a0d60727b1c83576bb48827e8
|
refs/heads/master
| 2022-05-26T12:59:56.430185
| 2022-03-16T11:24:50
| 2022-03-16T11:24:50
| 176,660,171
| 1
| 0
| null | null | null | null |
ISO-8859-7
|
Java
| false
| false
| 360
|
java
|
package ΌφΗΠp4;
import java.util.*;
public class n_14470 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int arr[]=new int[5];
for(int i=0; i<5; i++)
arr[i]=sc.nextInt();
if(arr[0]<0)
System.out.println(Math.abs(arr[0])*arr[2]+arr[3]+arr[1]*arr[4]);
else
System.out.println((arr[1]-arr[0])*arr[4]);
}
}
|
[
"jaejeong98@naver.com"
] |
jaejeong98@naver.com
|
a393768bb5267f93e7dc8e2435fefc88b0dd31ed
|
f2f1d0075ad033a4e9c79984ce3aab8a28a02a98
|
/src/com/bergerkiller/bukkit/mw/commands/WorldSetSpawn.java
|
a5ca4d9b04e4f037f269c60ff0d2bcde1b09ca0f
|
[] |
no_license
|
Joooo/MyWorlds
|
0aeffe68ebbb7520c36ba01dd660a1860c4d2629
|
3505541d7920d70938eba6b36d661bec10a7178a
|
refs/heads/master
| 2020-12-24T09:45:13.729616
| 2012-01-02T21:24:37
| 2012-01-02T21:24:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 854
|
java
|
package com.bergerkiller.bukkit.mw.commands;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import com.bergerkiller.bukkit.mw.Position;
import com.bergerkiller.bukkit.mw.WorldManager;
public class WorldSetSpawn extends Command {
public WorldSetSpawn(CommandSender sender, String[] args) {
super(sender, args);
this.node = "world.setspawn";
}
public void execute() {
this.removeArg(0);
Position pos = new Position(player.getLocation());
this.genWorldname(0);
if (this.handleWorld()) {
WorldManager.setSpawn(worldname, pos);
if (worldname.equalsIgnoreCase(player.getWorld().getName())) {
player.getWorld().setSpawnLocation(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
}
sender.sendMessage(ChatColor.GREEN + "Spawn location of world '" + worldname + "' set to your position!");
}
}
}
|
[
"bergerkiller@gmail.com"
] |
bergerkiller@gmail.com
|
4d56eabce2bb35e7ad0d54b3010cf48c9cb4cf9e
|
e4da97ab81ec813fbecade1ad1fc4f346aed35e6
|
/src/core/api/src/main/java/org/ogema/core/channelmanager/ChannelConfiguration.java
|
6e8c2a378c6c50e29963e0b02016836bebde830e
|
[
"Apache-2.0"
] |
permissive
|
JoKoo619/ogema
|
49ae2afbdfed4141e1e2c9c4375b0788219ea6ed
|
21e3d6827e416893461e9e8a8b80c01d75d135f9
|
refs/heads/public
| 2020-12-11T09:30:27.575002
| 2015-11-27T09:42:42
| 2015-11-27T09:42:42
| 49,029,409
| 0
| 1
| null | 2016-01-04T23:23:52
| 2016-01-04T23:23:48
| null |
UTF-8
|
Java
| false
| false
| 2,695
|
java
|
/**
* This file is part of OGEMA.
*
* OGEMA is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation.
*
* OGEMA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OGEMA. If not, see <http://www.gnu.org/licenses/>.
*/
package org.ogema.core.channelmanager;
import org.ogema.core.channelmanager.driverspi.ChannelLocator;
import org.ogema.core.channelmanager.driverspi.DeviceLocator;
/**
*
* ChannelCofiguration is the Interface for the Configurations of Channels
*/
public interface ChannelConfiguration {
/**
* Channel manager should use driver in listening mode
*/
public static final long LISTEN_FOR_UPDATE = -1;
/**
* ChannelManager should use driver in command mode, with no periodic reading or listening.
*/
public static final long NO_READ_NO_LISTEN = 0;
/**
* Get the ChannelLocator associated with this ChannelConfiguration
*
* @return ChannelLocator
*/
public ChannelLocator getChannelLocator();
/**
* Get the DeviceLocator associated with this ChannelConfiguration
*
* @return DeviceLocator
*/
public DeviceLocator getDeviceLocator();
/**
* Direction of the Channel, <br>
* INPUT = read the values from channel <br>
* OUTPUT = write values at the channel
*/
public enum Direction {
DIRECTION_INPUT, /* from gateways point of view */
DIRECTION_OUTPUT, DIRECTION_INOUT
}
/**
* Get the sampling period (in milliseconds)
* @return the sampling period in ms
*/
public long getSamplingPeriod();
/**
*
* @param samplingPeriodInMs
* sampling period in Ms - can be set to LISTEN_FOR_UPDATE if the channel manager should not actively
* poll the driver but instruct the driver to listen and update the channel.
*
* A Sampling Period of 0, will be not listen and not reading it's only for sending comands or reading
* on command. You can use the Variable NO_READ_NO_LISTEN
*/
public void setSamplingPeriod(long samplingPeriodInMs);
/**
*
* @return the Direction of Channel
*/
public Direction getDirection();
/**
* Set Direction of the Channel
*
* @param direction
*/
public void setDirection(Direction direction);
/* other properties may be scaling factor, offset, ... */
// public void setOffset(float offset);
// public void setFactor(float factor);
}
|
[
"jan.lapp@iwes.fraunhofer.de"
] |
jan.lapp@iwes.fraunhofer.de
|
0ca660d9dec2366e406d63044e3d9725f6750001
|
59f95845e9b7267a68015389939f9aa4b8fe9672
|
/telco/custom/telcotrail/telcotrailstorefront/web/src/de/hybris/telcotrail/storefront/tags/TestIdTag.java
|
415dc8aa817f117bfd147d3f8bc2bf250fa49794
|
[] |
no_license
|
vkscorpio3/serg_project
|
0dae0446c157ee674365a164c7b64c94756788c7
|
09dbb7206bed0acd51048d9dda6d34a942cf9709
|
refs/heads/master
| 2021-01-22T12:25:22.724659
| 2016-06-28T18:57:28
| 2016-06-28T18:57:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,056
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2015 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with hybris.
*
*
*/
package de.hybris.telcotrail.storefront.tags;
import de.hybris.platform.util.Config;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;
/**
* Tag that generates a wrapping div with the specified id. The id is suffixed with an incrementing counter for the page
* request to ensure that it is unique. The wrapper divs can be turned on and off via a configuration property.
*/
public class TestIdTag extends SimpleTagSupport
{
protected static final String ENABLE_TEST_IDS_PROPERTY = "telcotrailstorefront.testIds.enable";
protected static final String TEST_ID_TAG_NEXT = "__test_id_tag_next__";
private String code;
protected String getCode()
{
return code;
}
public void setCode(final String code)
{
this.code = code;
}
@Override
public void doTag() throws JspException, IOException
{
final boolean enabled = Config.getBoolean(ENABLE_TEST_IDS_PROPERTY, false);
if (enabled)
{
final PageContext pageContext = (PageContext) getJspContext();
final JspWriter jspWriter = pageContext.getOut();
final int nextUniqueId = getNextUniqueId(pageContext);
jspWriter.append("<div id=\"").append("test_").append(cleanupHtmlId(getCode())).append("_$")
.append(String.valueOf(nextUniqueId)).append("\" style=\"display:inline\">");
// Write the body out
getJspBody().invoke(jspWriter);
jspWriter.println("</div>");
}
else
{
// Just render the contents
getJspBody().invoke(getJspContext().getOut());
}
}
protected int getNextUniqueId(final PageContext pageContext)
{
final Object value = pageContext.getAttribute(TEST_ID_TAG_NEXT, PageContext.PAGE_SCOPE);
if (value instanceof Integer)
{
final int nextVal = ((Integer) value).intValue();
pageContext.setAttribute(TEST_ID_TAG_NEXT, Integer.valueOf(nextVal + 1), PageContext.PAGE_SCOPE);
return nextVal;
}
else
{
// No attribute found, set next to 2, and return 1.
pageContext.setAttribute(TEST_ID_TAG_NEXT, Integer.valueOf(2), PageContext.PAGE_SCOPE);
return 1;
}
}
protected String cleanupHtmlId(final String text)
{
final StringBuilder result = new StringBuilder(text.length());
for (int i = 0; i < text.length(); i++)
{
final char c = text.charAt(i); // NOPMD
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '-' || c == '_' || c == '.'
|| c == ':')
{
result.append(c);
}
}
return result.toString();
}
}
|
[
"sergii_tyhchenko@epam.com"
] |
sergii_tyhchenko@epam.com
|
e01223e2d385cfdfd4ac8927fbd6cd4aa2b7bde4
|
3699b45d47014fb71a9cd9d50159eb55bb637cb3
|
/src/generated/java/com/sphenon/basics/many/tplinst/ReadOnlyVectorImplSingle_Vector_String_long__long_.java
|
ed3f987a686ebc6e14e2d261e2d8ca07f1b189d9
|
[
"Apache-2.0"
] |
permissive
|
616c/java-com.sphenon.components.basics.many
|
0d78a010db033e54a46d966123ed2d15f72a5af4
|
918e6e1e1f2ef4bdae32a8318671500ed20910bb
|
refs/heads/master
| 2020-03-22T05:45:56.259576
| 2018-07-06T16:19:40
| 2018-07-06T16:19:40
| 139,588,622
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,019
|
java
|
// instantiated with javainst.pl from /workspace/sphenon/projects/components/basics/many/v0001/origin/source/java/com/sphenon/basics/many/templates/ReadOnlyVectorImplSingle.javatpl
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
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.
*****************************************************************************/
// please do not modify this file directly
package com.sphenon.basics.many.tplinst;
import com.sphenon.basics.context.*;
import com.sphenon.basics.exception.*;
import com.sphenon.basics.notification.*;
import com.sphenon.basics.customary.*;
import com.sphenon.basics.many.*;
import com.sphenon.basics.many.returncodes.*;
public class ReadOnlyVectorImplSingle_Vector_String_long__long_
implements ReadOnlyVector_Vector_String_long__long_ {
protected Vector_String_long_ item;
public ReadOnlyVectorImplSingle_Vector_String_long__long_ (CallContext context, Vector_String_long_ item) {
this.item = item;
}
public Vector_String_long_ get (CallContext context, long index) throws DoesNotExist {
if (index != 0) {
DoesNotExist.createAndThrow (context);
throw (DoesNotExist) null; // compiler insists
}
return item;
}
public Vector_String_long_ tryGet (CallContext context, long index) {
if (index != 0) {
return null;
}
return item;
}
public boolean canGet (CallContext context, long index) {
return (index == 0 ? true : false);
}
public IteratorItemIndex_Vector_String_long__long_ getNavigator (CallContext context) {
return new VectorIteratorImpl_Vector_String_long__long_ (context, this);
}
public VectorReferenceToMember_Vector_String_long__long_ getReference (CallContext context, long index) throws DoesNotExist {
if ( ! canGet(context, index)) {
DoesNotExist.createAndThrow (context);
throw (DoesNotExist) null; // compiler insists
}
return new VectorReferenceToMember_Vector_String_long__long_(context, this, 0L);
}
public VectorReferenceToMember_Vector_String_long__long_ tryGetReference (CallContext context, long index) {
if ( ! canGet(context, index)) { return null; }
return new VectorReferenceToMember_Vector_String_long__long_(context, this, 0L);
}
public long getSize (CallContext context) {
return 1;
}
}
|
[
"adev@leue.net"
] |
adev@leue.net
|
3dd061ce57128ae375ed339e79e2c8349bc609ac
|
80576460f983a1ce5e11348e144257d6a2e12a97
|
/Integracao/ContaCapitalIntegracaoLegadoEJB/src/main/java/br/com/sicoob/sisbr/cca/legado/persistencia/ContaCapitalIntegracaoLegadoConnectionProvider.java
|
f90d72f1bbdadc1104f18710ff39dea7e7ba6c91
|
[] |
no_license
|
pabllo007/cca
|
8d3812e403deccdca5ba90745b188e10699ff44c
|
99c24157ff08459ea3e7c2415ff75bcb6a0102e4
|
refs/heads/master
| 2022-12-01T05:20:26.998529
| 2019-10-27T21:33:11
| 2019-10-27T21:33:11
| 217,919,304
| 0
| 0
| null | 2022-11-24T06:24:00
| 2019-10-27T21:31:25
|
Java
|
UTF-8
|
Java
| false
| false
| 2,015
|
java
|
/*
*
*/
package br.com.sicoob.sisbr.cca.legado.persistencia;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import javax.sql.DataSource;
import br.com.bancoob.infraestrutura.conexao.BancoobConnectionProvider;
import br.com.sicoob.infraestrutura.log.ISicoobLogger;
import br.com.sicoob.infraestrutura.log.SicoobLoggerPadrao;
/**
* Connection provider - esta com implementacao para WAS (hibernate5) e JBoss (hibernate3)
*/
public class ContaCapitalIntegracaoLegadoConnectionProvider extends BancoobConnectionProvider {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
/** O atributo logger. */
private final transient ISicoobLogger logger = SicoobLoggerPadrao.getInstance(getClass());
/**
* WAS - Hibernate 5
* @see org.hibernate.connection.DatasourceConnectionProvider#configure(java.util.Properties)
*/
// @Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void configure(Map configValues) {
logger.debug("Configurando o Connection Provider ContaCapitalIntegracaoLegadoConnectionProvider.");
Properties propriedades = new Properties();
Map<Object, Object> map = configValues;
for (Entry<Object, Object> entry : map.entrySet()) {
propriedades.put(entry.getKey(), entry.getValue());
}
DataSource dataSource = new ContaCapitalIntegracaoLegadoDataSource(propriedades.getProperty(NOME_JNDI), propriedades);
setDataSource(dataSource);
logger.debug("Connection Provider configurado ContaCapitalIntegracaoLegadoConnectionProvider.");
}
/**
* JBOSS - Hibernate 3
*/
public void configure(Properties propriedades) {
logger.debug("Configurando o Connection Provider ContaCapitalIntegracaoLegadoConnectionProvider.");
DataSource dataSource = new ContaCapitalIntegracaoLegadoDataSource(propriedades.getProperty(NOME_JNDI), propriedades);
setDataSource(dataSource);
logger.debug("Connection Provider configurado ContaCapitalIntegracaoLegadoConnectionProvider.");
}
}
|
[
"="
] |
=
|
9d2376f1ccce4034f0491ec1ce361fcbb1bf057b
|
027c0c52ab66f181be386217c91a28188dd3a4d2
|
/dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dxf/converter/ReportTablePeriodConverter.java
|
dff40ca1c550f686b1e7ee5ba700162ae96361c6
|
[
"BSD-3-Clause"
] |
permissive
|
rubendw/dhis2
|
96f3af9fb4fa0f9d421b39098ad7aa4096c82af3
|
b9f5272ea001020717e4fc630ddb9f145b95d6ef
|
refs/heads/master
| 2022-02-15T08:35:43.775194
| 2009-03-04T15:10:07
| 2009-03-04T15:10:07
| 142,915
| 1
| 0
| null | 2022-01-21T23:21:45
| 2009-03-04T15:13:23
|
Java
|
UTF-8
|
Java
| false
| false
| 6,338
|
java
|
package org.hisp.dhis.importexport.dxf.converter;
/*
* Copyright (c) 2004-2007, University of Oslo
* 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 of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import java.util.Collection;
import java.util.Map;
import org.amplecode.staxwax.reader.XMLReader;
import org.amplecode.staxwax.writer.XMLWriter;
import org.hisp.dhis.aggregation.batch.handler.BatchHandler;
import org.hisp.dhis.importexport.AssociationType;
import org.hisp.dhis.importexport.ExportParams;
import org.hisp.dhis.importexport.GroupMemberAssociation;
import org.hisp.dhis.importexport.GroupMemberType;
import org.hisp.dhis.importexport.ImportObjectService;
import org.hisp.dhis.importexport.ImportParams;
import org.hisp.dhis.importexport.XMLConverter;
import org.hisp.dhis.importexport.converter.AbstractGroupMemberConverter;
import org.hisp.dhis.period.Period;
import org.hisp.dhis.reporttable.ReportTable;
/**
* @author Lars Helge Overland
* @version $Id$
*/
public class ReportTablePeriodConverter
extends AbstractGroupMemberConverter implements XMLConverter
{
public static final String COLLECTION_NAME = "reportTablePeriods";
public static final String ELEMENT_NAME = "reportTablePeriod";
private static final String FIELD_REPORTTABLE = "reportTable";
private static final String FIELD_PERIOD = "period";
private static final String FIELD_SORT_ORDER = "sortOrder";
// -------------------------------------------------------------------------
// Properties
// -------------------------------------------------------------------------
private Map<Object, Integer> reportTableMapping;
private Map<Object, Integer> periodMapping;
// -------------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------------
/**
* Constructor for write operations.
*/
public ReportTablePeriodConverter()
{
}
/**
* Constructor for read operations.
*/
public ReportTablePeriodConverter( BatchHandler batchHandler,
ImportObjectService importObjectService,
Map<Object, Integer> reportTableMapping,
Map<Object, Integer> periodMapping )
{
this.batchHandler = batchHandler;
this.importObjectService = importObjectService;
this.reportTableMapping = reportTableMapping;
this.periodMapping = periodMapping;
}
// -------------------------------------------------------------------------
// XMLConverter implementation
// -------------------------------------------------------------------------
public void write( XMLWriter writer, ExportParams params )
{
Collection<ReportTable> reportTables = params.getReportTables();
if ( reportTables != null && reportTables.size() > 0 )
{
writer.openElement( COLLECTION_NAME );
for ( ReportTable reportTable : reportTables )
{
if ( reportTable.getPeriods() != null )
{
int sortOrder = 0;
for ( Period period : reportTable.getPeriods() )
{
writer.openElement( ELEMENT_NAME );
writer.writeElement( FIELD_REPORTTABLE, String.valueOf( reportTable.getId() ) );
writer.writeElement( FIELD_PERIOD, String.valueOf( period.getId() ) );
writer.writeElement( FIELD_SORT_ORDER, String.valueOf( sortOrder++ ) );
writer.closeElement( ELEMENT_NAME );
}
}
}
writer.closeElement( COLLECTION_NAME );
}
}
public void read( XMLReader reader, ImportParams params )
{
while ( reader.moveToStartElement( ELEMENT_NAME, COLLECTION_NAME ) )
{
GroupMemberAssociation association = new GroupMemberAssociation( AssociationType.LIST );
reader.moveToStartElement( FIELD_REPORTTABLE );
association.setGroupId( reportTableMapping.get( Integer.parseInt( reader.getElementValue() ) ) );
reader.moveToStartElement( FIELD_PERIOD );
association.setMemberId( periodMapping.get( Integer.parseInt( reader.getElementValue() ) ) );
reader.moveToStartElement( FIELD_SORT_ORDER );
association.setSortOrder( Integer.parseInt( reader.getElementValue() ) );
read( association, GroupMemberAssociation.class, GroupMemberType.REPORTTABLE_PERIOD, params );
}
}
}
|
[
"oddmunds@leia.ifi.uio.no"
] |
oddmunds@leia.ifi.uio.no
|
3ac95afc20a6871b02945c36d26fca22f0cad92d
|
a7b868c8c81984dbcb17c1acc09c0f0ab8e36c59
|
/src/main/java/com/alipay/api/response/AlipayUserSigncardExistenceQueryResponse.java
|
d379d147e1911e3b2df6c1cad18898fc6ea37167
|
[
"Apache-2.0"
] |
permissive
|
1755616537/alipay-sdk-java-all
|
a7ebd46213f22b866fa3ab20c738335fc42c4043
|
3ff52e7212c762f030302493aadf859a78e3ebf7
|
refs/heads/master
| 2023-02-26T01:46:16.159565
| 2021-02-02T01:54:36
| 2021-02-02T01:54:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 777
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.user.signcard.existence.query response.
*
* @author auto create
* @since 1.0, 2019-01-24 15:10:01
*/
public class AlipayUserSigncardExistenceQueryResponse extends AlipayResponse {
private static final long serialVersionUID = 8588129114125371141L;
/**
* 是否已经签约快捷或卡通,只统计已激活的签约信息。T代表是,F代表否。
*/
@ApiField("sign_card_exist")
private String signCardExist;
public void setSignCardExist(String signCardExist) {
this.signCardExist = signCardExist;
}
public String getSignCardExist( ) {
return this.signCardExist;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
209329b9b252caff3df28ebc0753d5c6ecd27c33
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/pluginsdk/i/a/d/i$3.java
|
c2215f732ce4278e0cc9d17702471979e78b2b6f
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 630
|
java
|
package com.tencent.mm.pluginsdk.i.a.d;
import com.tencent.mm.sdk.platformtools.bh;
import java.util.List;
class i$3 implements Runnable {
final /* synthetic */ l iFL;
final /* synthetic */ String vgy;
final /* synthetic */ List vhG;
final /* synthetic */ i vhH;
i$3(i iVar, List list, l lVar, String str) {
this.vhH = iVar;
this.vhG = list;
this.iFL = lVar;
this.vgy = str;
}
public final void run() {
for (d dVar : this.vhG) {
if (bh.ou(dVar.aab()).equals(this.iFL.groupId)) {
dVar.OF(this.vgy);
}
}
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
bdf2b74f32f04a11bd15ea3a2c37361f65bf07b0
|
e201b6597dd9d7db625e4fa389de9e915b9fe096
|
/jql-core/src/main/java/io/github/benas/jql/core/TypeIndexer.java
|
9cbddb96deb2d93f1475c4ed6856feaa1e7a4937
|
[
"MIT"
] |
permissive
|
cybernetics/jql
|
81ca405354198d258d70195a51fead9a5eb1499a
|
fa4e01a7a2360e61f1dd505a9b36ffdf87ca24f6
|
refs/heads/master
| 2021-01-22T14:02:14.497080
| 2016-07-27T14:45:16
| 2016-07-27T14:45:16
| 64,451,850
| 1
| 0
| null | 2016-07-29T05:01:59
| 2016-07-29T05:01:59
| null |
UTF-8
|
Java
| false
| false
| 2,524
|
java
|
/**
* The MIT License
*
* Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*
* 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 io.github.benas.jql.core;
import com.github.javaparser.ast.body.*;
import io.github.benas.jql.domain.TypeDao;
import io.github.benas.jql.model.Type;
import static java.lang.reflect.Modifier.*;
public class TypeIndexer {
private TypeDao typeDao;
private BodyDeclarationIndexer bodyDeclarationIndexer;
public TypeIndexer(TypeDao typeDao, BodyDeclarationIndexer bodyDeclarationIndexer) {
this.typeDao = typeDao;
this.bodyDeclarationIndexer = bodyDeclarationIndexer;
}
public void index(TypeDeclaration type, int cuId) {
int modifiers = type.getModifiers();
boolean isInterface = type instanceof ClassOrInterfaceDeclaration && ((ClassOrInterfaceDeclaration) type).isInterface();
boolean isAnnotation = type instanceof AnnotationDeclaration;
boolean isEnumeration = type instanceof EnumDeclaration;
boolean isClass = !isAnnotation && !isEnumeration && !isInterface;
Type t = new Type(type.getName(), isPublic(modifiers), isStatic(modifiers), isFinal(modifiers), isAbstract(modifiers), isClass, isInterface, isEnumeration, isAnnotation, cuId);
int typeId = typeDao.save(t);
for (BodyDeclaration member : type.getMembers()) {
bodyDeclarationIndexer.index(member, typeId);
}
}
}
|
[
"mahmoud.benhassine@icloud.com"
] |
mahmoud.benhassine@icloud.com
|
50233dcf2e899c013d3e06a556564f342b21d818
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/retrofit2/Response.java
|
79757f48fd08e025c207a7e95750c59983ad75bd
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 2,952
|
java
|
package retrofit2;
import android.support.v7.widget.helper.ItemTouchHelper.Callback;
import javax.annotation.Nullable;
import okhttp3.C15957l;
import okhttp3.C15963q.C15962a;
import okhttp3.C15966s;
import okhttp3.C15966s.C15965a;
import okhttp3.C15968t;
import okhttp3.Protocol;
public final class Response<T> {
@Nullable
private final T body;
@Nullable
private final C15968t errorBody;
private final C15966s rawResponse;
public static <T> Response<T> success(@Nullable T t) {
return success((Object) t, new C15965a().a(Callback.DEFAULT_DRAG_ANIMATION_DURATION).a("OK").a(Protocol.HTTP_1_1).a(new C15962a().a("http://localhost/").d()).a());
}
public static <T> Response<T> success(@Nullable T t, C15957l c15957l) {
Utils.checkNotNull(c15957l, "headers == null");
return success((Object) t, new C15965a().a(Callback.DEFAULT_DRAG_ANIMATION_DURATION).a("OK").a(Protocol.HTTP_1_1).a(c15957l).a(new C15962a().a("http://localhost/").d()).a());
}
public static <T> Response<T> success(@Nullable T t, C15966s c15966s) {
Utils.checkNotNull(c15966s, "rawResponse == null");
if (c15966s.d()) {
return new Response(c15966s, t, null);
}
throw new IllegalArgumentException("rawResponse must be successful response");
}
public static <T> Response<T> error(int i, C15968t c15968t) {
if (i >= 400) {
return error(c15968t, new C15965a().a(i).a("Response.error()").a(Protocol.HTTP_1_1).a(new C15962a().a("http://localhost/").d()).a());
}
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("code < 400: ");
stringBuilder.append(i);
throw new IllegalArgumentException(stringBuilder.toString());
}
public static <T> Response<T> error(C15968t c15968t, C15966s c15966s) {
Utils.checkNotNull(c15968t, "body == null");
Utils.checkNotNull(c15966s, "rawResponse == null");
if (!c15966s.d()) {
return new Response(c15966s, null, c15968t);
}
throw new IllegalArgumentException("rawResponse should not be successful response");
}
private Response(C15966s c15966s, @Nullable T t, @Nullable C15968t c15968t) {
this.rawResponse = c15966s;
this.body = t;
this.errorBody = c15968t;
}
public C15966s raw() {
return this.rawResponse;
}
public int code() {
return this.rawResponse.c();
}
public String message() {
return this.rawResponse.e();
}
public C15957l headers() {
return this.rawResponse.g();
}
public boolean isSuccessful() {
return this.rawResponse.d();
}
@Nullable
public T body() {
return this.body;
}
@Nullable
public C15968t errorBody() {
return this.errorBody;
}
public String toString() {
return this.rawResponse.toString();
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
cbcd4cc993f2d447d11f82437f3e7404e71615ac
|
29196e2d4adfb14ddd7c2ca8c1e60f8c10c26dad
|
/src/main/java/it/csi/siac/siacfin2ser/frontend/webservice/msg/RicercaRegistroIva.java
|
ee53dee70a1e89320734ea01b14795d8e1f8c07d
|
[] |
no_license
|
unica-open/siacbilitf
|
bbeef5ceca40e9fb83d5b1176e7f54e8d84592bf
|
85f3254c05c719a0016fe55cea1a105bcb6b89b2
|
refs/heads/master
| 2021-01-06T14:51:17.786934
| 2020-03-03T13:27:47
| 2020-03-03T13:27:47
| 241,366,581
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 772
|
java
|
/*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacfin2ser.frontend.webservice.msg;
import it.csi.siac.siaccorser.model.ServiceRequest;
import it.csi.siac.siacfin2ser.frontend.webservice.FIN2SvcDictionary;
import it.csi.siac.siacfin2ser.model.RegistroIva;
import javax.xml.bind.annotation.XmlType;
@XmlType(namespace = FIN2SvcDictionary.NAMESPACE)
public class RicercaRegistroIva extends ServiceRequest {
private RegistroIva registroIva;
/**
* @return the registroIva
*/
public RegistroIva getRegistroIva() {
return registroIva;
}
/**
* @param registroIva the registroIva to set
*/
public void setRegistroIva(RegistroIva registroIva) {
this.registroIva = registroIva;
}
}
|
[
"barbara.malano@csi.it"
] |
barbara.malano@csi.it
|
1278ef1b3ed5d23ad29f7f06f389992ad741a7f4
|
3180c5a659d5bfdbf42ab07dfcc64667f738f9b3
|
/src/unk/com/zing/zalo/f/c.java
|
0f9701b4c2d200d05239ed3b61fe4d4ece85da5e
|
[] |
no_license
|
tinyx3k/ZaloRE
|
4b4118c789310baebaa060fc8aa68131e4786ffb
|
fc8d2f7117a95aea98a68ad8d5009d74e977d107
|
refs/heads/master
| 2023-05-03T16:21:53.296959
| 2013-05-18T14:08:34
| 2013-05-18T14:08:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,295
|
java
|
package unk.com.zing.zalo.f;
import com.zing.zalo.b.e;
import com.zing.zalo.ui.ChatActivity;
import java.util.ArrayList;
class c
implements com.zing.zalo.b.a
{
c(a parama, com.zing.zalo.d.a parama1)
{
}
public void a(e parame)
{
for (int i = 0; ; i++)
try
{
if (i >= a.b(this.rg).size())
return;
if (((Integer)a.b(this.rg).get(i)).intValue() == this.nt.cY())
{
a.b(this.rg).remove(i);
return;
}
}
catch (Exception localException)
{
localException.printStackTrace();
return;
}
}
public void s(Object paramObject)
{
for (int i = 0; ; i++)
try
{
if (i >= a.b(this.rg).size());
while (true)
{
if (com.zing.zalo.g.a.np == null)
return;
com.zing.zalo.g.a.np.mO();
return;
if (((Integer)a.b(this.rg).get(i)).intValue() != this.nt.cY())
break;
a.b(this.rg).remove(i);
}
}
catch (Exception localException)
{
localException.printStackTrace();
return;
}
}
}
/* Location: /home/danghvu/0day/Zalo/Zalo_1.0.8_dex2jar.jar
* Qualified Name: com.zing.zalo.f.c
* JD-Core Version: 0.6.2
*/
|
[
"danghvu@gmail.com"
] |
danghvu@gmail.com
|
04ab65868c8b6e434dac20edb658ef36153e6f1b
|
4cebe0d2407e5737a99d67c99ab84ca093f11cff
|
/src/multithread/chapter2/demo13SynchronizedThisConfirm/Run.java
|
dd796e115797393fff314ebaf44f04acd78d81ad
|
[] |
no_license
|
MoXiaogui0301/MultiThread-Program
|
049be7ca7084955cb2a2372bf5acb3e9584f4086
|
1492e1add980342fbbcc2aed7866efca119998c9
|
refs/heads/master
| 2020-04-28T00:14:37.871448
| 2019-04-02T04:20:04
| 2019-04-02T04:20:04
| 174,808,187
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 965
|
java
|
package multithread.chapter2.demo13SynchronizedThisConfirm;
/**
* P80
* 验证Synchronized(this)的this为当前对象
*
* Result:
* synchronized threadName=A i=1
* -------------- run otherMethod
* synchronized threadName=A i=2
* synchronized threadName=A i=3
* synchronized threadName=A i=4
* synchronized threadName=A i=5
*
* 更改otherMethod为Synchronized方法,发现和doLongTimeTask()共用一把锁(当前对象)
*
* Result:
* synchronized threadName=A i=1
* synchronized threadName=A i=2
* synchronized threadName=A i=3
* synchronized threadName=A i=4
* synchronized threadName=A i=5
* -------------- run otherMethod
*
*/
public class Run {
public static void main(String[] args) {
Task task = new Task();
MyThread threadA = new MyThread(task);
threadA.setName("A");
MyThread threadB = new MyThread(task);
threadB.setName("b");
threadA.start();
threadB.start();
}
}
|
[
"361941176@qq.com"
] |
361941176@qq.com
|
2b66151a7301a0a5bef1a3e777b86e413fbbed4d
|
056ff5f928aec62606f95a6f90c2865dc126bddc
|
/javashop/shop-core/src/main/java/com/enation/app/shop/component/payment/plugin/alipay/sdk34/api/domain/KoubeiMarketingCampaignQrcodeQueryModel.java
|
299beece0634abf0fde27d9fe8d683bf535d5e34
|
[] |
no_license
|
luobintianya/javashop
|
7846c7f1037652dbfdd57e24ae2c38237feb1104
|
ac15b14e8f6511afba93af60e8878ff44e380621
|
refs/heads/master
| 2022-11-17T11:12:39.060690
| 2019-09-04T08:57:58
| 2019-09-04T08:57:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 737
|
java
|
package com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.domain;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayObject;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiField;
/**
* 口碑活动二维码查询接口
*
* @author auto create
* @since 1.0, 2017-04-18 11:55:05
*/
public class KoubeiMarketingCampaignQrcodeQueryModel extends AlipayObject {
private static final long serialVersionUID = 4365661358444596339L;
/**
* 活动id
*/
@ApiField("camp_id")
private String campId;
public String getCampId() {
return this.campId;
}
public void setCampId(String campId) {
this.campId = campId;
}
}
|
[
"sylow@javashop.cn"
] |
sylow@javashop.cn
|
914d26eead0133b668416a986f2b4ac380cd7298
|
b40b76705b45589b45744b7616209d754a5d2ac4
|
/ch-20/fangjia-sjdbc-sharding-db-table/src/main/java/com/fangjia/sjdbc/service/UserServiceImpl.java
|
31ccacf61d58e22dc17781f53aa7d372ef2334c3
|
[] |
no_license
|
gaohanghang/Spring-Cloud-Book-Code-2
|
91aa2ec166a0155198558da5d739829dae398745
|
6adde8b577f8238eade41571f58a5e2943b0912e
|
refs/heads/master
| 2021-10-24T04:07:36.293149
| 2021-10-17T10:49:48
| 2021-10-17T10:49:48
| 203,406,993
| 2
| 0
| null | 2020-10-13T16:17:46
| 2019-08-20T15:47:02
|
Java
|
UTF-8
|
Java
| false
| false
| 581
|
java
|
package com.fangjia.sjdbc.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.cxytiandi.jdbc.EntityService;
import com.fangjia.sjdbc.po.User;
@Service
public class UserServiceImpl extends EntityService<User> implements UserService {
public List<User> list() {
return super.list();
}
public Long add(User user) {
return (Long) super.save(user, "id");
}
@Override
public User findById(Long id) {
return super.getById("id", id);
}
@Override
public User findByName(String name) {
return super.getById("name", name);
}
}
|
[
"1341947277@qq.com"
] |
1341947277@qq.com
|
4c60bf7e599df0591e2b31ccaa1c32a4477b3b4e
|
5ca3901b424539c2cf0d3dda52d8d7ba2ed91773
|
/src_cfr/com/google/common/cache/RemovalCause$5.java
|
1729f8a6e659ff2b99d0bf152d06e68b9044afec
|
[] |
no_license
|
fjh658/bindiff
|
c98c9c24b0d904be852182ecbf4f81926ce67fb4
|
2a31859b4638404cdc915d7ed6be19937d762743
|
refs/heads/master
| 2021-01-20T06:43:12.134977
| 2016-06-29T17:09:03
| 2016-06-29T17:09:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
/*
* Decompiled with CFR 0_115.
*/
package com.google.common.cache;
import com.google.common.cache.RemovalCause;
import com.google.common.cache.RemovalCause$1;
final class RemovalCause$5
extends RemovalCause {
RemovalCause$5(String string2, int n3) {
super(string, n2, null);
}
@Override
boolean wasEvicted() {
return true;
}
}
|
[
"manouchehri@riseup.net"
] |
manouchehri@riseup.net
|
79b51a947c5f2c3d80da8008e72f6320b71cf072
|
e5f296107e6a346c8653e8de489af8f261d74907
|
/cqrs/src/main/java/com/iluwatar/mycqrs/query/QueryServiceImpl.java
|
e1868b481683de201e5af04f14bfae1a5c7c7316
|
[
"MIT"
] |
permissive
|
guilherme-alves-silve/java-design-patterns
|
e4de90a5b2a1cf37bf7a318835324e13c6c89524
|
b183a7fee69d55eccb945553ea341f2e06aa5656
|
refs/heads/master
| 2021-06-14T10:52:14.481771
| 2021-05-01T19:15:16
| 2021-05-01T19:15:16
| 277,318,982
| 1
| 0
|
NOASSERTION
| 2020-07-05T14:31:53
| 2020-07-05T14:31:52
| null |
UTF-8
|
Java
| false
| false
| 2,629
|
java
|
package com.iluwatar.mycqrs.query;
import com.iluwatar.mycqrs.domain.model.Author;
import com.iluwatar.mycqrs.domain.model.Book;
import com.iluwatar.mycqrs.dto.AuthorDTO;
import com.iluwatar.mycqrs.dto.BookDTO;
import com.iluwatar.mycqrs.util.DBTable;
import com.iluwatar.mycqrs.util.MemoryDatabase;
import java.math.BigInteger;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
import static java.util.stream.Collectors.toList;
public class QueryServiceImpl implements QueryService {
private final MemoryDatabase db;
public QueryServiceImpl() {
this.db = MemoryDatabase.db();
}
@Override
public Optional<AuthorDTO> getAuthorByUsername(final String username) {
return findAuthorByUsername(username);
}
@Override
public Optional<BookDTO> getBook(final String title) {
return findBookByTitle(title);
}
@Override
public List<BookDTO> getAuthorBooks(final String username) {
return findAuthorsBookByUsername(username)
.map(this::toDTO)
.collect(toList());
}
@Override
public BigInteger getAuthorBooksCount(final String username) {
final var count = findAuthorsBookByUsername(username)
.count();
return BigInteger.valueOf(count);
}
@Override
public BigInteger getAuthorsCount() {
final var count = db.<Author>getList(DBTable.AUTHOR_TBL)
.count();
return BigInteger.valueOf(count);
}
private Stream<Book> findAuthorsBookByUsername(final String username) {
return db.<Book>getList(DBTable.BOOK_TBL)
.filter(book -> book.getAuthor().getUsername().equals(username));
}
private Optional<AuthorDTO> findAuthorByUsername(final String username) {
return db.<Author>getList(DBTable.AUTHOR_TBL)
.filter(author -> author.getUsername().equals(username))
.map(this::toDTO)
.findFirst();
}
private Optional<BookDTO> findBookByTitle(final String title) {
return db.<Book>getList(DBTable.BOOK_TBL)
.filter(book -> book.getTitle().equals(title))
.map(this::toDTO)
.findFirst();
}
private BookDTO toDTO(final Book book) {
return new BookDTO(
book.getTitle(),
book.getPrice()
);
}
private AuthorDTO toDTO(final Author author) {
return new AuthorDTO(
author.getName(),
author.getEmail(),
author.getUsername()
);
}
}
|
[
"guilherme_alves_silve@hotmail.com"
] |
guilherme_alves_silve@hotmail.com
|
e97e89920f29782ba6df8e11e04f2f687f572147
|
5389ac067fc9a50395f7c175f7e6ae8f4a808e3d
|
/app/src/main/java/bibi/com/babayonlie/adapter/ClassFicationAdapter.java
|
bbc326137a5a2fa1a0b611e33d59a4e0f9cee8cf
|
[] |
no_license
|
zhangyalong123feiyu/BabayOnline
|
402fd48a01adaeab9f5ff38cbd39ef4aab5c8088
|
2138d422d1e11212b1cb5f9b0f3b45ad4deef579
|
refs/heads/master
| 2021-01-23T04:20:41.278742
| 2017-05-31T09:23:49
| 2017-05-31T09:23:49
| 92,926,618
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,829
|
java
|
package bibi.com.babayonlie.adapter;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.gson.Gson;
import org.xutils.x;
import java.util.ArrayList;
import java.util.List;
import bibi.com.babayonlie.R;
import bibi.com.babayonlie.bean.ImageInfo;
import bibi.com.babayonlie.bean.KnowledgeBean;
/**
* Created by bibinet on 2016/12/6.
*/
public class ClassFicationAdapter extends BaseAdapter {
private Context context;
private List<KnowledgeBean> lits=new ArrayList<>();
public ClassFicationAdapter(Context context, List<KnowledgeBean> lits) {
this.context = context;
this.lits = lits;
}
@Override
public int getCount() {
return lits.size();
}
@Override
public Object getItem(int position) {
return position;
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder viewHolder;
if (convertView==null){
viewHolder=new ViewHolder();
convertView= LayoutInflater.from(context).inflate(R.layout.item_classfication,null);
viewHolder.classficationphoto=(ImageView)convertView.findViewById(R.id.classficationphoto);
viewHolder.classficationcontent=(TextView)convertView.findViewById(R.id.classficationcontent);
viewHolder.classficationtime=(TextView)convertView.findViewById(R.id.classficationtime);
viewHolder.classficationevalute=(TextView)convertView.findViewById(R.id.classficationevaluate);
viewHolder.classficationtitle=(TextView)convertView.findViewById(R.id.classficationtitle);
convertView.setTag(viewHolder);
}else {
viewHolder= (ViewHolder) convertView.getTag();
}
KnowledgeBean info = lits.get(position);
String imageurl = info.getImageurl();
Log.i("TAG","imageurl"+imageurl);
Gson gson=new Gson();
ImageInfo iamgeinfo = gson.fromJson(imageurl, ImageInfo.class);
x.image().bind(viewHolder.classficationphoto,iamgeinfo.getUrl());
viewHolder.classficationtitle.setText(info.getTitle());
viewHolder.classficationevalute.setText(String.valueOf(info.getCommentNum()));
viewHolder.classficationcontent.setText(info.getContent());
viewHolder.classficationtime.setText(info.getTime());
return convertView;
}
class ViewHolder{
ImageView classficationphoto;
TextView classficationtitle,classficationcontent,classficationtime,classficationevalute;
}
}
|
[
"409812937@qq.com"
] |
409812937@qq.com
|
64b77538bdd9ba3bb8d777e0a05f1404070493cb
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project22/src/test/java/org/gradle/test/performance22_5/Test22_411.java
|
8df78af72bcd6c1186f5dccab83d0e678d9501e6
|
[] |
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
| 292
|
java
|
package org.gradle.test.performance22_5;
import static org.junit.Assert.*;
public class Test22_411 {
private final Production22_411 production = new Production22_411("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
5e5f13c911dcf8ec8a6f3782b2eaf47f78a8ec0c
|
3c18b4ab3a20dab175dc48758835fb1a854a92c8
|
/aspects/aspects/BctLA14.java
|
c29b13df5e3d3673cfa4571292e5fa6ab324b141
|
[
"Apache-2.0"
] |
permissive
|
lta-disco-unimib-it/BCT
|
2c6bcf52894db8798d8ad14c7ebe066262dd22e4
|
1c7fcb52f42bae9f5169c94032ded919cb1c42c4
|
refs/heads/master
| 2020-08-24T16:32:03.904958
| 2019-10-22T20:30:10
| 2019-10-22T20:30:10
| 216,863,231
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,536
|
java
|
/*******************************************************************************
* Copyright 2019 Fabrizio Pastore, Leonardo Mariani
*
* 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 aspects;
import org.codehaus.aspectwerkz.joinpoint.ConstructorRtti;
import org.codehaus.aspectwerkz.joinpoint.JoinPoint;
import org.codehaus.aspectwerkz.joinpoint.MethodRtti;
import probes.ComponentCallStack;
import recorders.LoggingActionRecorder;
import util.ClassNameAndDefinitionFormatter;
public class BctLA14 {
private final static int ENTER = 0;
private final static int EXIT = 1;
public static class Exec {
public void logEntry(final JoinPoint joinPoint) {
//System.out.println("ENTER "+BctLA14.Exec.class.getName()+" "+getSignature(joinPoint));
try {
ComponentCallStack s = ComponentCallStack.getInstance();
if ( BctLA14.Exec.class == s.lastElement() ){
s.push( BctLA14.Exec.class );
//System.out.println("ENTER#"+BctLA14.Exec.class.getName()+" "+getSignature(joinPoint));
return;
}
s.push( BctLA14.Exec.class );
logIO(joinPoint, ENTER);
LoggingActionRecorder.logInteractionEnter(getSignature(joinPoint), Thread.currentThread().getId() );
} catch ( Exception e ){
e.printStackTrace();
}
}
public void logExit(final JoinPoint joinPoint) {
//System.out.println("EXIT "+BctLA14.Exec.class.getName()+" "+getSignature(joinPoint));
try {
ComponentCallStack s = ComponentCallStack.getInstance();
if ( s.lastElement() != BctLA14.Exec.class )
System.out.println("POPERROR "+BctLA14.Exec.class.getName()+" "+getSignature(joinPoint));
s.pop();
if ( BctLA14.Exec.class == s.lastElement() ){
//System.out.println("EXIT#"+BctLA14.Exec.class.getName()+" "+getSignature(joinPoint));
return;
}
logIO(joinPoint, EXIT);
LoggingActionRecorder.logInteractionExit(getSignature(joinPoint), Thread.currentThread().getId() );
} catch ( Exception e ){
e.printStackTrace();
}
}
}
public static class Call {
public void logEntry(final JoinPoint joinPoint) {
//System.out.println("ENTER "+BctLA14.Call.class.getName()+" "+getSignature(joinPoint));
try {
ComponentCallStack s = ComponentCallStack.getInstance();
s.push( BctLA14.Call.class );
logIO(joinPoint, ENTER);
LoggingActionRecorder.logInteractionEnter(getSignature(joinPoint), Thread.currentThread().getId() );
} catch ( Exception e ){
e.printStackTrace();
}
}
public void logExit(final JoinPoint joinPoint) {
//System.out.println("EXIT "+BctLA14.Call.class.getName()+" "+getSignature(joinPoint));
try {
ComponentCallStack.getInstance().pop();
logIO(joinPoint, EXIT);
LoggingActionRecorder.logInteractionExit(getSignature(joinPoint), Thread.currentThread().getId() );
} catch ( Exception e ){
e.printStackTrace();
}
}
}
private static String getSignature(JoinPoint joinPoint){
String signature = null;
if ( joinPoint.getRtti() instanceof MethodRtti ) {
MethodRtti rtti = (MethodRtti)joinPoint.getRtti();
signature = ClassNameAndDefinitionFormatter.estractMethodSignature(joinPoint.getTargetClass().getName(),rtti.getName(), rtti.getReturnType(), rtti.getParameterTypes());
}
else {
ConstructorRtti rtti = (ConstructorRtti)joinPoint.getRtti();
signature = ClassNameAndDefinitionFormatter.estractConstructorSignature(rtti.getName(), rtti.getParameterTypes());
}
return signature;
}
private static void logIO(JoinPoint joinPoint, int callType) {
Object returnValue = null;
Class returnType = null;
Class[] argumentTypes = null;
Object[] argumentValues = null;
String signature = null;
//Get method signature
if ( joinPoint.getRtti() instanceof MethodRtti ) {
MethodRtti rtti = (MethodRtti)joinPoint.getRtti();
returnValue = rtti.getReturnValue();
returnType = rtti.getReturnType();
argumentValues = rtti.getParameterValues();
argumentTypes = rtti.getParameterTypes();
signature = ClassNameAndDefinitionFormatter.estractMethodSignature(joinPoint.getTargetClass().getName(), rtti.getName(), returnType, argumentTypes);
}
else {
ConstructorRtti rtti = (ConstructorRtti)joinPoint.getRtti();
argumentValues = rtti.getParameterValues();
argumentTypes = rtti.getParameterTypes();
signature = ClassNameAndDefinitionFormatter.estractConstructorSignature(rtti.getName(), argumentTypes);
}
//do logging actions
if ( callType == ENTER ) {
LoggingActionRecorder.logIoEnter(signature, argumentValues);
} else {
if ( returnType == void.class )
LoggingActionRecorder.logIoExit(signature, argumentValues);
else
LoggingActionRecorder.logIoExit(signature, argumentValues, returnValue);
}
}
}
|
[
"fabrizio.pastore@gmail.com"
] |
fabrizio.pastore@gmail.com
|
cce317f2481c83afc39b263f1936764d809253db
|
49b4cb79c910a17525b59d4b497a09fa28a9e3a8
|
/parserValidCheck/src/main/java/com/ke/css/cimp/fwb/fwb9/Rule_Grp_Goods_Description.java
|
30ef66bbaee5118cb9c55487a5af5c29380c3668
|
[] |
no_license
|
ganzijo/koreanair
|
a7d750b62cec2647bfb2bed4ca1bf8648d9a447d
|
e980fb11bc4b8defae62c9d88e5c70a659bef436
|
refs/heads/master
| 2021-04-26T22:04:17.478461
| 2018-03-06T05:59:32
| 2018-03-06T05:59:32
| 124,018,887
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,123
|
java
|
package com.ke.css.cimp.fwb.fwb9;
/* -----------------------------------------------------------------------------
* Rule_Grp_Goods_Description.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Tue Mar 06 10:38:42 KST 2018
*
* -----------------------------------------------------------------------------
*/
import java.util.ArrayList;
final public class Rule_Grp_Goods_Description extends Rule
{
public Rule_Grp_Goods_Description(String spelling, ArrayList<Rule> rules)
{
super(spelling, rules);
}
public Object accept(Visitor visitor)
{
return visitor.visit(this);
}
public static Rule_Grp_Goods_Description parse(ParserContext context)
{
context.push("Grp_Goods_Description");
boolean parsed = true;
int s0 = context.index;
ParserAlternative a0 = new ParserAlternative(s0);
ArrayList<ParserAlternative> as1 = new ArrayList<ParserAlternative>();
parsed = false;
{
int s1 = context.index;
ParserAlternative a1 = new ParserAlternative(s1);
parsed = true;
if (parsed)
{
boolean f1 = true;
int c1 = 0;
for (int i1 = 0; i1 < 1 && f1; i1++)
{
int g1 = context.index;
ArrayList<ParserAlternative> as2 = new ArrayList<ParserAlternative>();
parsed = false;
{
int s2 = context.index;
ParserAlternative a2 = new ParserAlternative(s2);
parsed = true;
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_Sep_Slant.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_Hid_AWB_Column_Identifier_N.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_Hid_Goods_data_Identifier_G.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_Sep_Slant.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_NATURE_AND_QUANTITY_OF_GOODS.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
as2.add(a2);
}
context.index = s2;
}
ParserAlternative b = ParserAlternative.getBest(as2);
parsed = b != null;
if (parsed)
{
a1.add(b.rules, b.end);
context.index = b.end;
}
f1 = context.index > g1;
if (parsed) c1++;
}
parsed = c1 == 1;
}
if (parsed)
{
as1.add(a1);
}
context.index = s1;
}
ParserAlternative b = ParserAlternative.getBest(as1);
parsed = b != null;
if (parsed)
{
a0.add(b.rules, b.end);
context.index = b.end;
}
Rule rule = null;
if (parsed)
{
rule = new Rule_Grp_Goods_Description(context.text.substring(a0.start, a0.end), a0.rules);
}
else
{
context.index = s0;
}
context.pop("Grp_Goods_Description", parsed);
return (Rule_Grp_Goods_Description)rule;
}
}
/* -----------------------------------------------------------------------------
* eof
* -----------------------------------------------------------------------------
*/
|
[
"wrjo@wrjo-PC"
] |
wrjo@wrjo-PC
|
e1748be0b77b7b22a3e4fdc8efb89fbf24b62c41
|
280da3630f692c94472f2c42abd1051fb73d1344
|
/src/net/minecraft/network/status/client/C00PacketServerQuery.java
|
5c6c8c2b955400aff25ba7cac0db1610ca1a692f
|
[] |
no_license
|
MicrowaveClient/Clarinet
|
7c35206c671eb28bc139ee52e503f405a14ccb5b
|
bd387bc30329e0febb6c1c1b06a836d9013093b5
|
refs/heads/master
| 2020-04-02T18:47:52.047731
| 2016-07-14T03:21:46
| 2016-07-14T03:21:46
| 63,297,767
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 961
|
java
|
package net.minecraft.network.status.client;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.status.INetHandlerStatusServer;
import java.io.IOException;
public class C00PacketServerQuery implements Packet {
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException {
}
/**
* Writes the raw packet data to the data stream.
*/
public void writePacketData(PacketBuffer buf) throws IOException {
}
public void processPacket(INetHandlerStatusServer handler) {
handler.processServerQuery(this);
}
/**
* Passes this Packet on to the NetHandler for processing.
*/
public void processPacket(INetHandler handler) {
this.processPacket((INetHandlerStatusServer) handler);
}
}
|
[
"justanormalpcnoghostclientoranyt@justanormalpcnoghostclientoranyt-Aspire-XC-704"
] |
justanormalpcnoghostclientoranyt@justanormalpcnoghostclientoranyt-Aspire-XC-704
|
dd87fa89443e6af894667a30d7bdf891cf002dd6
|
42e94aa09fe8d979f77449e08c67fa7175a3e6eb
|
/src/net/minecraft/world/storage/MapData$MapInfo.java
|
2b1377c63d251bd9a482ff6b48e98b0d5a824d47
|
[
"Unlicense"
] |
permissive
|
HausemasterIssue/novoline
|
6fa90b89d5ebf6b7ae8f1d1404a80a057593ea91
|
9146c4add3aa518d9aa40560158e50be1b076cf0
|
refs/heads/main
| 2023-09-05T00:20:17.943347
| 2021-11-26T02:35:25
| 2021-11-26T02:35:25
| 432,312,803
| 1
| 0
|
Unlicense
| 2021-11-26T22:12:46
| 2021-11-26T22:12:45
| null |
UTF-8
|
Java
| false
| false
| 1,768
|
java
|
package net.minecraft.world.storage;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S34PacketMaps;
import net.minecraft.world.storage.MapData;
public class MapData$MapInfo {
public final EntityPlayer entityplayerObj;
private boolean field_176105_d;
private int minX;
private int minY;
private int maxX;
private int maxY;
private int field_176109_i;
public int field_82569_d;
final MapData this$0;
public MapData$MapInfo(MapData var1, EntityPlayer var2) {
this.this$0 = var1;
this.field_176105_d = true;
this.minX = 0;
this.minY = 0;
this.maxX = 127;
this.maxY = 127;
this.entityplayerObj = var2;
}
public Packet getPacket(ItemStack var1) {
if(this.field_176105_d) {
this.field_176105_d = false;
return new S34PacketMaps(var1.getMetadata(), this.this$0.scale, this.this$0.mapDecorations.values(), this.this$0.colors, this.minX, this.minY, this.maxX + 1 - this.minX, this.maxY + 1 - this.minY);
} else {
return this.field_176109_i++ % 5 == 0?new S34PacketMaps(var1.getMetadata(), this.this$0.scale, this.this$0.mapDecorations.values(), this.this$0.colors, 0, 0, 0, 0):null;
}
}
public void update(int var1, int var2) {
if(this.field_176105_d) {
this.minX = Math.min(this.minX, var1);
this.minY = Math.min(this.minY, var2);
this.maxX = Math.max(this.maxX, var1);
this.maxY = Math.max(this.maxY, var2);
} else {
this.field_176105_d = true;
this.minX = var1;
this.minY = var2;
this.maxX = var1;
this.maxY = var2;
}
}
}
|
[
"91408199+jeremypelletier@users.noreply.github.com"
] |
91408199+jeremypelletier@users.noreply.github.com
|
b55fa5d4359a9accb0dfbb6ecef9e742ee040e1a
|
097df92ce1bfc8a354680725c7d10f0d109b5b7d
|
/com/amazon/ws/emr/hadoop/fs/shaded/com/amazonaws/util/EncodingSchemeEnum$2.java
|
d7d1451fa02e93997a1f47068bfc866c62954400
|
[] |
no_license
|
cozos/emrfs-hadoop
|
7a1a1221ffc3aa8c25b1067cf07d3b46e39ab47f
|
ba5dfa631029cb5baac2f2972d2fdaca18dac422
|
refs/heads/master
| 2022-10-14T15:03:51.500050
| 2022-10-06T05:38:49
| 2022-10-06T05:38:49
| 233,979,996
| 2
| 2
| null | 2022-10-06T05:41:46
| 2020-01-15T02:24:16
|
Java
|
UTF-8
|
Java
| false
| false
| 526
|
java
|
package com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.util;
enum EncodingSchemeEnum$2
{
EncodingSchemeEnum$2()
{
super(paramString, paramInt, null);
}
public String encodeAsString(byte[] bytes)
{
return Base32.encodeAsString(bytes);
}
public byte[] decode(String encoded)
{
return Base32.decode(encoded);
}
}
/* Location:
* Qualified Name: com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.util.EncodingSchemeEnum.2
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"Arwin.tio@adroll.com"
] |
Arwin.tio@adroll.com
|
243b9e98b364681b5f1b5da62db41721854c19cb
|
9a8349e3e961699c4eb582e1bc0a571fcf3d28b6
|
/modules/frame/src/main/java/com/giants3/android/convert/JsonParser.java
|
611b2c3cfb4b79db105f5fdd4adfb42cf6483c57
|
[] |
no_license
|
davidleen/WorkSpace
|
bb31ce2768b31d5e1276fc1d2eb014bd2ed57836
|
058b94c7092f531076c5bb7b629a4c028658fbc9
|
refs/heads/master
| 2021-09-12T07:19:45.209564
| 2021-09-05T15:49:03
| 2021-09-05T15:49:03
| 150,992,553
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 169
|
java
|
package com.giants3.android.convert;
public interface JsonParser {
public <T> String toJson(T object);
public <T> T fromJson(String json,Class<T> tClass);
}
|
[
"davidleen29@gmail.com"
] |
davidleen29@gmail.com
|
0afa2fdae826b79399f5e55250b5b2a27e5af867
|
4f4ddc396fa1dfc874780895ca9b8ee4f7714222
|
/src/java/com/gensym/beaneditor/Directions.java
|
9540e40e5cf73ec93e2d3b286e5249d7f64e2dbb
|
[] |
no_license
|
UtsavChokshiCNU/GenSym-Test2
|
3214145186d032a6b5a7486003cef40787786ba0
|
a48c806df56297019cfcb22862dd64609fdd8711
|
refs/heads/master
| 2021-01-23T23:14:03.559378
| 2017-09-09T14:20:09
| 2017-09-09T14:20:09
| 102,960,203
| 3
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 862
|
java
|
package com.gensym.beaneditor;
class Directions
{
public static final int LEFT = 0;
public static final int TOP = 1;
public static final int RIGHT = 2;
public static final int BOTTOM = 3;
public static final int TOP_LEFT = 4;
public static final int TOP_RIGHT = 5;
public static final int BOTTOM_LEFT = 6;
public static final int BOTTOM_RIGHT = 7;
public static int invertDirection(int direction)
{
switch (direction)
{
case LEFT:
return RIGHT;
case RIGHT:
return LEFT;
case TOP:
return BOTTOM;
case BOTTOM:
return TOP;
}
return LEFT;
}
public static String getName(int direction)
{
switch (direction)
{
case LEFT:
return "LEFT";
case RIGHT:
return "RIGHT";
case TOP:
return "TOP";
case BOTTOM:
return "BOTTOM";
}
return "LEFT";
}
}
|
[
"utsavchokshi@Utsavs-MacBook-Pro.local"
] |
utsavchokshi@Utsavs-MacBook-Pro.local
|
cbaaeb3fc0a175c0c6b75204ea847e5ef5133064
|
446a957520320ae14b5e4fc5d9da6d9c6a54efb4
|
/src/java/br/edu/ifnmg/GestaoProjetos/Apresentacao/Converters/AgenciaFinanciadoraConverter.java
|
533897a11819f2614fb5013efc9f2a784c11d7d4
|
[] |
no_license
|
petroniocandido/GestaoProjetos
|
97388b3bf3cc3cffd7779122557d30d1d2a86c15
|
20db53b53de8271595b7cb77e2735e46510b3a18
|
refs/heads/master
| 2021-01-17T05:03:56.711903
| 2015-06-11T14:05:15
| 2015-06-11T14:05:15
| 22,998,908
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,190
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.edu.ifnmg.GestaoProjetos.Apresentacao.Converters;
import br.edu.ifnmg.GestaoProjetos.Aplicacao.GenericConverter;
import br.edu.ifnmg.GestaoProjetos.DomainModel.AgenciaFinanciadora;
import br.edu.ifnmg.GestaoProjetos.DomainModel.Servicos.AgenciaFinanciadoraRepositorio;
import javax.inject.Named;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.inject.Singleton;
/**
*
* @author Isla Guedes
*/
@Named(value = "agenciaFinanciadoraConverter")
@Singleton
public class AgenciaFinanciadoraConverter
extends GenericConverter<AgenciaFinanciadora, AgenciaFinanciadoraRepositorio>
implements Serializable {
@EJB
AgenciaFinanciadoraRepositorio dao;
@PostConstruct
public void init() {
setRepositorio(dao);
}
public List<AgenciaFinanciadora> autoCompleteAgenciaFinanciadora(String query) {
AgenciaFinanciadora i = new AgenciaFinanciadora();
i.setNome(query);
return dao.Buscar(i);
}
}
|
[
"petronio.candido@gmail.com"
] |
petronio.candido@gmail.com
|
3885b17d204351e97561b7123a1070b3822e8a16
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_41fc2237be82b2fe3e44a14ba7a46dbb2a4a1546/FormatData_hu_HU/2_41fc2237be82b2fe3e44a14ba7a46dbb2a4a1546_FormatData_hu_HU_s.java
|
d86cfd72c48e458064a6de3e2c11f5869b814f89
|
[] |
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,407
|
java
|
/*
* Portions Copyright 1998-2005 Sun Microsystems, Inc. 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. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
* (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
*
* The original version of this source code and documentation
* is copyrighted and owned by Taligent, Inc., a wholly-owned
* subsidiary of IBM. These materials are provided under terms
* of a License Agreement between Taligent and Sun. This technology
* is protected by multiple US and International patents.
*
* This notice and attribution to Taligent may not be removed.
* Taligent is a registered trademark of Taligent, Inc.
*
*/
package sun.text.resources;
import java.util.ListResourceBundle;
public class FormatData_hu_HU extends ListResourceBundle {
/**
* Overrides ListResourceBundle
*/
protected final Object[][] getContents() {
return new Object[][] {
{ "NumberPatterns",
new String[] {
"#,##0.###;-#,##0.###", // decimal pattern
"\u00A4#,##0.##;-\u00A4#,##0.##", // currency pattern
"#,##0%" // percent pattern
}
},
};
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a619560aee8e3b3a127185ff9b9e951ffb903de0
|
7cfbcbc0b47722b535a94785826032abc8ca011f
|
/application.db.modules/events.system/src/main/java/events/system/model/RatingDescriptions.java
|
29532cf272706229a904597410c8ac7e31576fcf
|
[] |
no_license
|
jimmyMaci/turbo-sansa
|
2838ebb021d319a7c4e3ac7ae2bcdeb69ba8f274
|
23416d1d267edd847247f7213f2f7583e1b990f1
|
refs/heads/master
| 2022-07-14T00:14:31.628055
| 2022-06-30T11:25:20
| 2022-06-30T11:25:20
| 26,208,979
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,184
|
java
|
package events.system.model;
import hbm.entity.BaseEntity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;
import org.hibernate.annotations.Index;
/**
* The Entity class {@RatingDescriptions} is keeping the
* information for the rating descriptions and is associatate with the Entity
* class {@EventRatings}.
*/
@Entity
@Table(name = "rating_descriptions")
public class RatingDescriptions extends BaseEntity<Integer> implements
Cloneable {
/** The serial Version UID */
private static final long serialVersionUID = 1L;
/**
* The eventRatings attribute that references to the Entity class
* {@EventRatings}.
*/
private EventRatings eventRatings;
/** A description what the user liked less from the event. */
private String lessLikeRating;
/** A description what the user liked most from the event. */
private String mostLikeRating;
/** A description if the user recommend the consultant from the event. */
private String recommendConsultant;
/** A description if the user recommend the event. */
private String recommendEvent;
/**
* Default constructor, mainly for hibernate use
*/
public RatingDescriptions() {
// Default constructor
}
/**
* Return the value associated with the column: eventRatings
*
* @return A EventRatings object (this.eventRatings)
*/
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "event_ratings_id", nullable = true, referencedColumnName = "id")
@Index(name = "IDX_RATING_DESCRIPTIONS_EVENT_RATINGS_ID")
@ForeignKey(name = "FK_RATING_DESCRIPTIONS_EVENT_RATINGS_ID")
public EventRatings getEventRatings() {
return this.eventRatings;
}
/**
* Set the value related to the column: eventRatings
*
* @param eventRatings
* the eventRatings value you wish to set
*/
public void setEventRatings(final EventRatings eventRatings) {
this.eventRatings = eventRatings;
}
/**
* Return the value associated with the column: lessLikeRating
*
* @return A String object (this.lessLikeRating)
*/
@Column(name = "less_like_rating", length = 1024)
public String getLessLikeRating() {
return this.lessLikeRating;
}
/**
* Set the value related to the column: lessLikeRating
*
* @param lessLikeRating
* the lessLikeRating value you wish to set
*/
public void setLessLikeRating(final String lessLikeRating) {
this.lessLikeRating = lessLikeRating;
}
/**
* Return the value associated with the column: mostLikeRating
*
* @return A String object (this.mostLikeRating)
*/
@Column(name = "most_like_rating", length = 1024)
public String getMostLikeRating() {
return this.mostLikeRating;
}
/**
* Set the value related to the column: mostLikeRating
*
* @param mostLikeRating
* the mostLikeRating value you wish to set
*/
public void setMostLikeRating(final String mostLikeRating) {
this.mostLikeRating = mostLikeRating;
}
/**
* Return the value associated with the column: recommendConsultant
*
* @return A String object (this.recommendConsultant)
*/
@Column(name = "recommend_consultant", length = 1024)
public String getRecommendConsultant() {
return this.recommendConsultant;
}
/**
* Set the value related to the column: recommendConsultant
*
* @param recommendConsultant
* the recommendConsultant value you wish to set
*/
public void setRecommendConsultant(final String recommendConsultant) {
this.recommendConsultant = recommendConsultant;
}
/**
* Return the value associated with the column: recommendEvent
*
* @return A String object (this.recommendEvent)
*/
@Column(name = "recommend_event", length = 1024)
public String getRecommendEvent() {
return this.recommendEvent;
}
/**
* Set the value related to the column: recommendEvent
*
* @param recommendEvent
* the recommendEvent value you wish to set
*/
public void setRecommendEvent(final String recommendEvent) {
this.recommendEvent = recommendEvent;
}
}
|
[
"asterios.raptis@gmx.net"
] |
asterios.raptis@gmx.net
|
484a23d49d139ad56104411b6bb923102c3e0d0a
|
8afb5afd38548c631f6f9536846039ef6cb297b9
|
/MY_REPOS/misc-experiments/_FIREBFIRE/netty/transport/src/main/java/io/netty/channel/ChannelInboundHandlerAdapter.java
|
6e08e9ad8ee8595ddcf13b7be66143b4f63b1a95
|
[
"MIT",
"LGPL-2.1-only",
"CC-PDDC",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] |
permissive
|
bgoonz/UsefulResourceRepo2.0
|
d87588ffd668bb498f7787b896cc7b20d83ce0ad
|
2cb4b45dd14a230aa0e800042e893f8dfb23beda
|
refs/heads/master
| 2023-03-17T01:22:05.254751
| 2022-08-11T03:18:22
| 2022-08-11T03:18:22
| 382,628,698
| 10
| 12
|
MIT
| 2022-10-10T14:13:54
| 2021-07-03T13:58:52
| null |
UTF-8
|
Java
| false
| false
| 816
|
java
|
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.channel;
/**
* @deprecated Use {@link ChannelHandlerAdapter} instead.
*/
@Deprecated
public class ChannelInboundHandlerAdapter extends ChannelHandlerAdapter { }
|
[
"bryan.guner@gmail.com"
] |
bryan.guner@gmail.com
|
27e423b151fb53402eae07641ca799ce713a6686
|
038ee6b20cae51169a2ed4ed64a7b8e99b5cbaad
|
/schemaOrgDomaConv/src/org/kyojo/schemaorg/m3n5/doma/healthLifesci/medicalObservationalStudyDesign/CrossSectionalConverter.java
|
bc66607ff1c99404720bb0da0932aa3d41832b9c
|
[
"Apache-2.0"
] |
permissive
|
nagaikenshin/schemaOrg
|
3dec1626781913930da5585884e3484e0b525aea
|
4c9d6d098a2741c2dc2a814f1c708ee55c36e9a8
|
refs/heads/master
| 2021-06-25T04:52:49.995840
| 2019-05-12T06:22:37
| 2019-05-12T06:22:37
| 134,319,974
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 693
|
java
|
package org.kyojo.schemaorg.m3n5.doma.healthLifesci.medicalObservationalStudyDesign;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n5.healthLifesci.medicalObservationalStudyDesign.CROSS_SECTIONAL;
import org.kyojo.schemaorg.m3n5.healthLifesci.MedicalObservationalStudyDesign.CrossSectional;
@ExternalDomain
public class CrossSectionalConverter implements DomainConverter<CrossSectional, String> {
@Override
public String fromDomainToValue(CrossSectional domain) {
return domain.getNativeValue();
}
@Override
public CrossSectional fromValueToDomain(String value) {
return new CROSS_SECTIONAL(value);
}
}
|
[
"nagai@nagaikenshin.com"
] |
nagai@nagaikenshin.com
|
10e6050ce385e514d64ec310d20e40e464bc1f72
|
69fab4d6876b83731d86fafd97db010ff1a6d95b
|
/src/main/java/com/pro/common/persistencedto/SaveAddressPersistenanceDTO.java
|
b23c8da60435750b8c79498d9314d53bd6117c8a
|
[] |
no_license
|
Ranjeetkumars/common_service
|
12a2b68b4171449df80a75185eec533680940287
|
e121f3c533fbe3c8bed8d15550b21b3949458e4c
|
refs/heads/master
| 2023-07-16T10:34:11.761859
| 2021-09-03T08:14:09
| 2021-09-03T08:14:09
| 402,695,950
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 398
|
java
|
package com.pro.common.persistencedto;
import lombok.Data;
@Data
public class SaveAddressPersistenanceDTO {
private String eventid;
private String houseno;
private String laneStreet;
private String landmarkid;
private String localityid;
private String cityid;
private String mandalid;
private String districtid;
private String userid;
private String moduleid;
private String roleid;
}
|
[
"ranjeetkumar@procreate.co.in"
] |
ranjeetkumar@procreate.co.in
|
4c08424cf217fad7ff75daabac96206cccc625f9
|
0e3898dbcb55563c96d11f93c06e8e2a3b8b545f
|
/ModelTest/src/com/pq/tracs/model/services/view/TraxEventContractView1VO/TraxEventContractView1VOTest.java
|
f1b38f39d1a85f1c6d658daba2c994d06e2fcf09
|
[] |
no_license
|
AALIYAR/PQ-TRACS
|
a811913cbcbe015d85c48a76447d1e01186b2f27
|
79a98fcb21007675d7fb083ebf21d074990f40ff
|
refs/heads/master
| 2020-04-02T10:42:16.724392
| 2018-10-23T13:46:16
| 2018-10-23T13:46:16
| 154,350,815
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 558
|
java
|
package com.pq.tracs.model.services.view.TraxEventContractView1VO;
import com.pq.tracs.model.services.applicationModule.TracsServiceAMFixture;
import com.pq.tracs.model.services.view.VOCreateTestBase;
import oracle.jbo.ViewObject;
import org.junit.*;
import static org.junit.Assert.*;
public class TraxEventContractView1VOTest extends VOCreateTestBase {
public TraxEventContractView1VOTest() {
myName = "TraxEventContractView1";
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
}
|
[
"43814640+AALIYAR@users.noreply.github.com"
] |
43814640+AALIYAR@users.noreply.github.com
|
39b95111f3632cf7c5f00559baaaac5b116b3797
|
d60bd7144cb4428a6f7039387c3aaf7b295ecc77
|
/ScootAppSource/com/google/android/gms/common/stats/g.java
|
2275893f9cb699225e3610990d078bf373c6ebc5
|
[] |
no_license
|
vaquarkhan/Scoot-mobile-app
|
4f58f628e7e2de0480f7c41998cdc38100dfef12
|
befcfb58c1dccb047548f544dea2b2ee187da728
|
refs/heads/master
| 2020-06-10T19:14:25.985858
| 2016-12-08T04:39:10
| 2016-12-08T04:39:10
| 75,902,491
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,611
|
java
|
package com.google.android.gms.common.stats;
import android.os.SystemClock;
import android.support.v4.g.q;
import android.util.Log;
public final class g
{
private final long a;
private final int b;
private final q<String, Long> c;
public g()
{
this.a = 60000L;
this.b = 10;
this.c = new q(10);
}
public g(int paramInt, long paramLong)
{
this.a = paramLong;
this.b = paramInt;
this.c = new q();
}
private void a(long paramLong1, long paramLong2)
{
int i = this.c.size() - 1;
while (i >= 0)
{
if (paramLong2 - ((Long)this.c.c(i)).longValue() > paramLong1) {
this.c.d(i);
}
i -= 1;
}
}
public Long a(String paramString)
{
long l2 = SystemClock.elapsedRealtime();
long l1 = this.a;
try
{
while (this.c.size() >= this.b)
{
a(l1, l2);
l1 /= 2L;
int i = this.b;
Log.w("ConnectionTracker", 94 + "The max capacity " + i + " is not enough. Current durationThreshold is: " + l1);
}
paramString = (Long)this.c.put(paramString, Long.valueOf(l2));
}
finally {}
return paramString;
}
public boolean b(String paramString)
{
for (;;)
{
try
{
if (this.c.remove(paramString) != null)
{
bool = true;
return bool;
}
}
finally {}
boolean bool = false;
}
}
}
/* Location: D:\Android\dex2jar-2.0\classes-dex2jar.jar!\com\google\android\gms\common\stats\g.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"vaquar.khan@gmail.com"
] |
vaquar.khan@gmail.com
|
9a681d8d6a19f87b77bb2d7fcb0d5700c9aaa77f
|
9ca4d8243e743cde069ec8c10450b868e4f381de
|
/eclipse/MostPixelsEver/src/mpe/examples/quotes/QuoteFetcher.java
|
f0974d3f4c92f24c0ad797b2568ef2d4f613cc62
|
[] |
no_license
|
radamchin/Most-Pixels-Ever
|
5586b5316e50d9a9ab777f74e5f773472fc6fc02
|
4879ec6089aa81bff07242deff9764d67cb83bb6
|
refs/heads/master
| 2020-12-25T15:51:32.027951
| 2013-08-02T12:40:37
| 2013-08-02T12:40:37
| 2,722,175
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,407
|
java
|
/**
* Quotes Demo
* The QuoteFetcher is an asynchronous client which fetches the quotes from a
* server and broadcasts them for the QuoteDisplays to display.
* <http://code.google.com/p/mostpixelsever/>
*
* @author Elie Zananiri
*/
package mpe.examples.quotes;
import mpe.client.*;
import processing.core.*;
public class QuoteFetcher extends PApplet {
//--------------------------------------
static final int B_MARGIN = 50;
static final int B_SIZE = 100;
static final String CARTMAN_URL = "http://www.smacie.com/randomizer/southpark/cartman.html";
static final String HOMER_URL = "http://www.smacie.com/randomizer/simpsons/homer.html";
//--------------------------------------
AsyncClient client;
PFont font;
//--------------------------------------
public void setup() {
// set up the client
client = new AsyncClient("localhost",9003);
size(350, 200);
// init the drawing functions
smooth();
// init the text functions
String[] fonts = PFont.list();
font = createFont(fonts[(int)random(0, fonts.length)], 12);
textFont(font, 18);
textAlign(CENTER, CENTER);
}
//--------------------------------------
public void draw() {
background(255);
// draw the buttons
stroke(0);
if (inside("Cartman"))
fill(255, 128, 0);
else
fill(128, 255, 0);
rect(B_MARGIN, B_MARGIN, B_SIZE, B_SIZE);
if (inside("Homer"))
fill(255, 128, 0);
else
fill(128, 255, 0);
rect(B_MARGIN*2 + B_SIZE, B_MARGIN, B_SIZE, B_SIZE);
// draw the labels
noStroke();
fill(0);
text("Cartman", B_MARGIN + B_SIZE/2, B_MARGIN + B_SIZE/2);
text("Homer", B_MARGIN*2 + B_SIZE*3/2, B_MARGIN + B_SIZE/2);
// draw the title
text("The Quote Fetcher", width/2, B_MARGIN/2);
}
//--------------------------------------
public void mousePressed() {
if (inside("Cartman")) {
client.broadcast(getQuote("Cartman"));
}
else if (inside("Homer")) {
client.broadcast(getQuote("Homer"));
}
}
//--------------------------------------
public boolean inside(String button) {
if (button == "Cartman") {
if (mouseX > B_MARGIN && mouseX < B_MARGIN + B_SIZE &&
mouseY > B_MARGIN && mouseY < B_MARGIN + B_SIZE)
return true;
return false;
}
else {
if (mouseX > B_MARGIN*2 + B_SIZE && mouseX < B_MARGIN*2 + B_SIZE*2 &&
mouseY > B_MARGIN && mouseY < B_MARGIN + B_SIZE)
return true;
return false;
}
}
//--------------------------------------
public String getQuote(String button) {
String quote;
if (button == "Cartman")
quote = join(loadStrings(CARTMAN_URL), "");
else
quote = join(loadStrings(HOMER_URL), "");
quote = split(quote, "<font face=\"Comic Sans MS\">")[3];
quote = split(quote, "</font>")[0];
println(quote);
return quote;
}
//--------------------------------------
static public void main(String args[]) {
PApplet.main(new String[] { "mpe.examples.quotes.QuoteFetcher" });
}
}
|
[
"daniel@shiffman.net"
] |
daniel@shiffman.net
|
9ed8789d0898fd449cb66e27c85e6fde3102dcb2
|
21693fde38d7756a5936c70debc7ac080863396b
|
/two/chap18/chap18/Five/BufferedInputStreamExample.java
|
d96c0483d780553e5c1496ea49ba23d09359db2c
|
[] |
no_license
|
whtjdghks/homejava
|
554c5e186646acd4e5e7ab10361f4c13ef48201c
|
81943c02313d995cb0c3e8a771c557e6733d90c4
|
refs/heads/master
| 2023-07-01T13:09:07.269552
| 2021-08-05T09:01:58
| 2021-08-05T09:01:58
| 385,997,376
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 853
|
java
|
package chap18.Five;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
public class BufferedInputStreamExample {
public static void main(String[] args) throws Exception {
long start = 0;
long end = 0;
FileInputStream fis1=new FileInputStream("C:/imgsource/justdo.mp3");
start =System.currentTimeMillis();
while(fis1.read()!=-1) {}
end =System.currentTimeMillis();
System.out.println("사용하지 않았을 때 :"+(end-start)+"ms");
fis1.close();
FileInputStream fis2 = new FileInputStream("C:/imgsource/justdo.mp3");
BufferedInputStream bis = new BufferedInputStream(fis2);
start = System.currentTimeMillis();
while(bis.read()!=-1) {}
end = System.currentTimeMillis();
System.out.println("사용했을 때 :"+(end-start)+"ms");
bis.close();
fis2.close();
}
}
|
[
"504@DESKTOP-B0KVD9C"
] |
504@DESKTOP-B0KVD9C
|
3b4eb23a7932a26d6f821eb036376c5a3848a2ca
|
d90d4c663cd7a06112150ad7323b20ed0ca2f76d
|
/src/main/java/jp/co/yahoo/yosegi/encryptor/IEncryptorFactory.java
|
1ec6ea1f0e5b3bdf0ce6577557bc8e19344def01
|
[
"Apache-2.0"
] |
permissive
|
yohto/yosegi
|
1cf2cd740a78c2a00dcaeece135d4c93ce84ac4b
|
300fe0015fd1e36aea84b9b70cd963837ea99cb3
|
refs/heads/master
| 2021-07-10T16:54:33.290744
| 2020-08-07T05:55:18
| 2020-08-07T05:55:18
| 192,878,849
| 0
| 0
|
Apache-2.0
| 2019-06-20T08:15:47
| 2019-06-20T08:15:47
| null |
UTF-8
|
Java
| false
| false
| 1,146
|
java
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jp.co.yahoo.yosegi.encryptor;
public interface IEncryptorFactory {
int getEncryptSize(
final int textSize , final Module module , final AdditionalAuthenticationData aad );
IEncryptor createEncryptor(
final EncryptionKey key ,
final Module module ,
final AdditionalAuthenticationData aad );
}
|
[
"kijima@yahoo-corp.jp"
] |
kijima@yahoo-corp.jp
|
cb5948a58b68f361d333521aa40f50a39b7db252
|
1594d85883fb5e65a3b5217d9bcbed0773c274ae
|
/src/main/java/datastructure/binarytree/lowest_common_ancestor/PrintCommonAncestor.java
|
6e9370b201c4a45c2064b73468857c774a73cf82
|
[] |
no_license
|
vinay25788/AlgorithimsAndDataStructure
|
01af50bbef79f2614e4e83230683b7dc068c4633
|
9d78f86514e13b87554c03a6087e875b55dba6c2
|
refs/heads/master
| 2023-01-13T06:27:49.790242
| 2022-12-26T15:44:34
| 2022-12-26T15:44:34
| 248,677,681
| 0
| 0
| null | 2022-03-09T01:49:32
| 2020-03-20T05:45:34
|
Java
|
UTF-8
|
Java
| false
| false
| 1,776
|
java
|
package datastructure.binarytree.lowest_common_ancestor;
public class PrintCommonAncestor {
public static void printCommonNodes(Node root,int a,int b)
{
Node lca = findLCA(root,a,b);
if(lca == null)
{
System.out.println(" no common ancestor ");
return;
}
printCommonAncenstor(root,lca.data);
}
public static Node findLCA(Node root, int a, int b)
{
if(root == null)
return null;
if(root. data == a || root.data == b)
return root;
Node left = findLCA(root.left,a,b);
Node right = findLCA(root.right,a,b);
if(left != null && right != null)
return root;
if(left == null && right == null)
return null;
return left != null ? left : right;
}
public static boolean printCommonAncenstor(Node root, int target)
{
if(root == null)
return false;
if(root.data == target)
{
System.out.print(root.data +" ");
return true;
}
if(printCommonAncenstor(root.left,target) || printCommonAncenstor(root.right,target))
{
System.out.print(root.data+" ");
return true;
}
return false;
}
public static void main(String[] args) {
Node root = new Node(1);
root.left = new Node(2);
root.right = new Node(3);
root.left.left = new Node(4);
root.left.right = new Node(5);
root.right.left = new Node(6);
root.right.right = new Node(7);
root.left.left.left = new Node(8);
root.right.left.left = new Node(9);
root.right.left.right = new Node(10);
printCommonNodes(root, 10,9);
}
}
|
[
"Vinay.Kumar@target.com"
] |
Vinay.Kumar@target.com
|
375f31561f7548215161dbe780c27c32675dfb2b
|
d902beab8fac862d828390349b21dea2bea7e9e2
|
/items-thinking-in-java/src/test/java/org/andy/items/thkinjava/annotations/TableCreatorTest.java
|
ee9a41b54a782900272622e7e018fa918bd5a24b
|
[
"Apache-2.0"
] |
permissive
|
andyChenHuaYing/scattered-items
|
bb7fa22d4a5501d215261adefd5d6bca8b3a3d2f
|
33a5e2b3aec34831b8335475fc5dec661622c28b
|
refs/heads/master
| 2022-06-22T09:25:51.935840
| 2021-12-30T11:33:44
| 2021-12-30T11:33:44
| 25,461,048
| 8
| 5
|
Apache-2.0
| 2022-06-17T03:30:30
| 2014-10-20T10:15:08
|
Java
|
UTF-8
|
Java
| false
| false
| 222
|
java
|
package org.andy.items.thkinjava.annotations;
import org.junit.Test;
public class TableCreatorTest {
@Test
public void testCreateTable() throws Exception {
TableCreator.createTable(Member.class);
}
}
|
[
"461857202@qq.com"
] |
461857202@qq.com
|
e0b88581f63a8a7b7406c497603376afd97d9302
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XCOMMONS-928-1-12-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/extension/repository/internal/installed/DefaultInstalledExtensionRepository_ESTest.java
|
46706297cc3914a095e378a0693645aa6f60a8fa
|
[] |
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
| 626
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun Apr 05 14:16:14 UTC 2020
*/
package org.xwiki.extension.repository.internal.installed;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DefaultInstalledExtensionRepository_ESTest extends DefaultInstalledExtensionRepository_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
e33c9cbc90cfd8a2cb748b37125dd648ddc72b50
|
f116c57b95683b85de6aa43afa28e373c500d103
|
/app/src/main/java/com/chetu/engineer/view/LoadingLayout.java
|
1033d3df4111cbb1ad1cf0365393611679fa7ec9
|
[] |
no_license
|
Yunzhong-Zhou/LQCFEngineer
|
a193a4e2a10ae2fcf4346e1e934931215c0c1938
|
010034ee727b92a125ac48181ceb5686558fc05b
|
refs/heads/master
| 2023-08-18T01:02:23.022883
| 2021-09-24T13:39:31
| 2021-09-24T13:39:31
| 324,514,349
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,235
|
java
|
package com.chetu.engineer.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import com.chetu.engineer.R;
/**
* 加载样式(数据空、数据错误、数据请求)
*/
public class LoadingLayout extends FrameLayout {
private int emptyView, errorView, loadingView;
private OnClickListener onRetryClickListener;
public LoadingLayout(Context context) {
this(context, null);
}
public LoadingLayout(Context context, AttributeSet attrs) {
this(context, attrs, -1);
}
public LoadingLayout(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.LoadingLayout, 0, 0);
try {
emptyView = a.getResourceId(R.styleable.LoadingLayout_emptyView, R.layout.view_empty);
errorView = a.getResourceId(R.styleable.LoadingLayout_errorView, R.layout.view_error);
loadingView = a.getResourceId(R.styleable.LoadingLayout_loadingView, R.layout.view_loading);
LayoutInflater inflater = LayoutInflater.from(getContext());
inflater.inflate(emptyView, this, true);
inflater.inflate(errorView, this, true);
inflater.inflate(loadingView, this, true );
} finally {
a.recycle();
}
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
for(int i = 0; i < getChildCount() - 1; i++) {
getChildAt(i).setVisibility(GONE);
}
findViewById(R.id.btn_empty_retry).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (null != onRetryClickListener) {
onRetryClickListener.onClick(v);
}
}
});
findViewById(R.id.btn_error_retry).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (null != onRetryClickListener) {
onRetryClickListener.onClick(v);
}
}
});
}
public void setOnRetryClickListener(OnClickListener onRetryClickListener) {
this.onRetryClickListener = onRetryClickListener;
}
public void showEmpty() {
for(int i = 0; i < this.getChildCount(); i++) {
View child = this.getChildAt(i);
if (i == 0) {
child.setVisibility(VISIBLE);
} else {
child.setVisibility(GONE);
}
}
}
public void showError() {
for(int i = 0; i < this.getChildCount(); i++) {
View child = this.getChildAt(i);
if (i == 1) {
child.setVisibility(VISIBLE);
} else {
child.setVisibility(GONE);
}
}
}
public void showLoading() {
for(int i = 0; i < this.getChildCount(); i++) {
View child = this.getChildAt(i);
if (i == 2) {
child.setVisibility(VISIBLE);
} else {
child.setVisibility(GONE);
}
}
}
public void showContent() {
for(int i = 0; i < this.getChildCount(); i++) {
View child = this.getChildAt(i);
if (i == 3) {
child.setVisibility(VISIBLE);
} else {
child.setVisibility(GONE);
}
}
}
}
|
[
"1125213018@qq.com"
] |
1125213018@qq.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.