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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
505096a47722778afa6a719d42bdc273df4042ed
|
d18af2a6333b1a868e8388f68733b3fccb0b4450
|
/java/src/com/google/android/gms/internal/zzoh.java
|
b7980291d0b6386b7a5a584e173fa0216e753cdd
|
[] |
no_license
|
showmaxAlt/showmaxAndroid
|
60576436172495709121f08bd9f157d36a077aad
|
d732f46d89acdeafea545a863c10566834ba1dec
|
refs/heads/master
| 2021-03-12T20:01:11.543987
| 2015-08-19T20:31:46
| 2015-08-19T20:31:46
| 41,050,587
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 543
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.gms.internal;
import com.google.android.gms.common.api.Status;
public class zzoh extends zznv.zza
{
private final com.google.android.gms.common.api.zza.zzb zzHa;
public zzoh(com.google.android.gms.common.api.zza.zzb zzb)
{
zzHa = zzb;
}
public void zzi(Status status)
{
zzHa.zzd(status);
}
}
|
[
"invisible@example.com"
] |
invisible@example.com
|
e07b92cbc662178305f2b449f4372939a2a80cce
|
2fd9d77d529e9b90fd077d0aa5ed2889525129e3
|
/DecompiledViberSrc/app/src/main/java/com/viber/voip/messages/conversation/community/b/a.java
|
b452938bb73c1e950676daba08bf1acdbf8c100b
|
[] |
no_license
|
cga2351/code
|
703f5d49dc3be45eafc4521e931f8d9d270e8a92
|
4e35fb567d359c252c2feca1e21b3a2a386f2bdb
|
refs/heads/master
| 2021-07-08T15:11:06.299852
| 2021-05-06T13:22:21
| 2021-05-06T13:22:21
| 60,314,071
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
package com.viber.voip.messages.conversation.community.b;
import android.content.Context;
import com.viber.dexshared.Logger;
import com.viber.voip.ViberEnv;
import com.viber.voip.messages.controller.ai;
import com.viber.voip.messages.controller.bk;
import com.viber.voip.messages.conversation.aa;
import com.viber.voip.util.LongSparseSet;
import com.viber.voip.util.da;
import com.viber.voip.util.dx;
import com.viber.voip.util.upload.s;
public class a
{
private static final Logger a = ViberEnv.getLogger();
private final Context b;
private final ai c;
private final LongSparseSet d = new LongSparseSet();
public a(Context paramContext, ai paramai)
{
this.b = paramContext;
this.c = paramai;
}
public void a(aa paramaa)
{
int i;
if (paramaa.az())
{
if ((paramaa.f() == -2) || (!da.a(paramaa.o())) || (da.a(paramaa.B())))
break label105;
i = 1;
if ((i == 0) || (s.a(dx.a(paramaa))) || (!bk.a(this.b)) || (this.d.contains(paramaa.a())))
break label110;
this.d.add(paramaa.a());
this.c.a(paramaa.a(), paramaa.B());
}
label105: label110:
while (i != 0)
{
return;
i = 0;
break;
}
this.d.remove(paramaa.a());
}
}
/* Location: E:\Study\Tools\apktool2_2\dex2jar-0.0.9.15\classes_viber_3_dex2jar.jar
* Qualified Name: com.viber.voip.messages.conversation.community.b.a
* JD-Core Version: 0.6.2
*/
|
[
"yu.liang@navercorp.com"
] |
yu.liang@navercorp.com
|
b74e4c583cc67a540253f1bfa84fa12de9280581
|
9f1768d88e343aab3c8a351ade5059e7a73af30c
|
/nfsdb-core/src/test/java/com/nfsdb/journal/net/IntTest.java
|
3d4495c9d0951f4e5723dbc482d8a3bf88c31010
|
[] |
no_license
|
gitter-badger/nfsdb
|
46bd260a176139684faf2c81e3a9d591de275f31
|
67b4cfb8bb39956e1238ee2eae1c58dcc83188c8
|
refs/heads/master
| 2021-01-18T00:01:48.128654
| 2014-12-10T16:14:33
| 2014-12-10T16:14:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,406
|
java
|
/*
* Copyright (c) 2014. Vlad Ilyushchenko
*
* 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.nfsdb.journal.net;
import com.nfsdb.journal.net.protocol.commands.IntResponseConsumer;
import com.nfsdb.journal.net.protocol.commands.IntResponseProducer;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class IntTest {
private MockByteChannel channel;
@Before
public void setUp() throws Exception {
channel = new MockByteChannel();
}
@Test
public void testInt() throws Exception {
IntResponseProducer producer = new IntResponseProducer();
IntResponseConsumer consumer = new IntResponseConsumer();
producer.write(channel, 155);
consumer.reset();
consumer.read(channel);
Assert.assertTrue(consumer.isComplete());
Assert.assertEquals(155, consumer.getValue());
}
}
|
[
"bluestreak@gmail.com"
] |
bluestreak@gmail.com
|
fd56adc3907e91e7f58edb4cb3d6dae578aeb482
|
1c9589d4e3bc1523ba1e745a2155433e4bd4b85c
|
/src/com/javarush/test/level12/lesson09/task04/Solution.java
|
57ffbb47746b355745638f80d54cf91f1a273896
|
[] |
no_license
|
Adeptius/JavaRushHomeWork
|
230a7dfd48b063bf7e62d5b50e7fc3f4b529fc0a
|
ee587724a7d579463d5deb5211b8e2f4bf902fdb
|
refs/heads/master
| 2020-05-22T06:42:56.780076
| 2019-09-12T15:43:25
| 2019-09-12T15:43:25
| 65,140,116
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,422
|
java
|
package com.javarush.test.level12.lesson09.task04;
/* Fly, Run, Swim для классов Human, Duck, Penguin, Airplane
Есть public интерфейсы Fly(летать), Run(бежать/ездить), Swim(плавать).
Добавь эти интерфейсы классам Human(человек), Duck(утка), Penguin(пингвин), Airplane(самолет).
*/
public class Solution
{
public static void main(String[] args)
{
}
public interface Fly
{
public void fly();
}
public interface Run
{
public void run();
}
public interface Swim
{
public void swim();
}
public class Human implements Run, Swim
{
@Override
public void run() {
}
@Override
public void swim() {
}
}
public class Duck implements Fly, Swim, Run
{
@Override
public void run() {
}
@Override
public void fly() {
}
@Override
public void swim() {
}
}
public class Penguin implements Swim, Run
{
@Override
public void run() {
}
@Override
public void swim() {
}
}
public class Airplane implements Fly, Run
{
@Override
public void run() {
}
@Override
public void fly() {
}
}
}
|
[
"adeptius@gmail.com"
] |
adeptius@gmail.com
|
a5c7955bada1365fefea957bc36b6256da9b50cf
|
30f66a61865458458947055888d17f53f102456d
|
/server/game/src/main/java/com/linlongyx/sanguo/webgame/quartz/HttpSender.java
|
c5d0744ce17abf3c5218478ef0b9153ede663be3
|
[] |
no_license
|
NeverMoreShadowFiend/xxsg
|
0f833d963098b0d66aa1161ecefc7f6cc2fa9610
|
51b0b7620c450ab076d0e4dd362969ee0a2ecd97
|
refs/heads/master
| 2022-12-11T09:44:28.737852
| 2020-09-23T02:10:34
| 2020-09-23T02:10:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,202
|
java
|
/* */ package com.linlongyx.sanguo.webgame.quartz;
/* */
/* */ import com.linlongyx.sanguo.webgame.net.http.HttpHelper;
/* */ import java.io.BufferedWriter;
/* */ import java.io.IOException;
/* */ import java.io.OutputStreamWriter;
/* */ import java.net.Socket;
/* */ import java.util.HashMap;
/* */ import java.util.Map;
/* */ import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */ public class HttpSender
/* */ {
/* 18 */ static Logger logger = LoggerFactory.getLogger(HttpSender.class);
/* 19 */ private static String IP = "127.0.0.1";
/* */ private int PORT;
/* 21 */ public static String key = "legend";
/* */
/* */ public HttpSender(int PORT) {
/* 24 */ this.PORT = PORT;
/* */ }
/* */
/* */
/* */
/* */
/* */ public synchronized void socket(int cmd) {
/* */ try {
/* 32 */ Socket socket = new Socket(IP, this.PORT);
/* 33 */ BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
/* 34 */ StringBuilder stringBuilder = new StringBuilder();
/* 35 */ stringBuilder.append("GET /?");
/* 36 */ Map<String, String> map = new HashMap<>();
/* 37 */ map.put("cmd", String.valueOf(cmd));
/* 38 */ stringBuilder.append(HttpHelper.buildUrl(map));
/* 39 */ stringBuilder.append(" HTTP/1.1\r\n");
/* 40 */ bw.write(stringBuilder.toString());
/* 41 */ bw.flush();
/* 42 */ bw.close();
/* 43 */ socket.close();
/* 44 */ logger.info("HttpSender.socket:" + IP + ":" + this.PORT + " " + stringBuilder.toString());
/* 45 */ } catch (IOException e) {
/* 46 */ logger.info("HttpSender.socket异常:" + e.toString());
/* */ }
/* */ }
/* */
/* */ public int getPORT() {
/* 51 */ return this.PORT;
/* */ }
/* */
/* */ public void setPORT(int PORT) {
/* 55 */ this.PORT = PORT;
/* */ }
/* */ }
/* Location: D:\xxsg_52gmsy\game\target\classes\!\com\linlongyx\sanguo\webgame\quartz\HttpSender.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"parasol_qian@qq.com"
] |
parasol_qian@qq.com
|
d8b6029bb30dd665b952e065f4124dd95db11b5f
|
ab8a3756a6d0580376deb3cf3cd1c3321f071343
|
/src/com/abstractFactory/abstractFactory/AbstractCreator.java
|
5477f799e47600f86d50a3cbeac7b2640391ace5
|
[] |
no_license
|
gongpb/DesignPatterns
|
427e51159b3513fc05040bd32d7197d85251e043
|
4a7888a40396a61326bb88d07bb29a0a3214396e
|
refs/heads/master
| 2021-05-02T05:48:17.308084
| 2020-06-01T13:51:07
| 2020-06-01T13:51:07
| 13,065,223
| 1
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 347
|
java
|
package com.abstractFactory.abstractFactory;
/**
* 抽象工厂类
* 职责是定义每个工厂要实现的职能
* @author gong_pibao
*/
public abstract class AbstractCreator {
//创建产品1家族
public abstract AbstractProductA createProductA();
//创建产品2家族
public abstract AbstractProductB createProductB();
}
|
[
"my_program@126.com"
] |
my_program@126.com
|
23f085d0516ebfed906c2aec16ef9da51d75054d
|
623b8eb08aa8c4a7679cc20b0728844f801f9ce6
|
/src/main/java/com/xiaoyi/bis/common/aspect/LogAspect.java
|
f69e436373cf55ee5c29a8704ed30219ffde2dfa
|
[] |
no_license
|
LiuYPGitHub/xiaoyi2
|
e8a9ef1b63161804e742d5ac08819cc2b97ed3f7
|
f713cfe91d5b6bc8102876e644e503666f028a34
|
refs/heads/master
| 2022-07-10T08:26:01.686314
| 2019-12-12T02:48:34
| 2019-12-12T02:48:34
| 227,505,173
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,228
|
java
|
package com.xiaoyi.bis.common.aspect;
import com.xiaoyi.bis.common.authentication.JWTUtil;
import com.xiaoyi.bis.common.properties.FebsProperties;
import com.xiaoyi.bis.common.utils.HttpContextUtil;
import com.xiaoyi.bis.common.utils.IPUtil;
import com.xiaoyi.bis.system.domain.SysLog;
import com.xiaoyi.bis.system.service.LogService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
/**
* AOP 记录用户操作日志
*
* @author 秋山
* @link https://mrbird.cc/Spring-Boot-AOP%20log.html
*/
@Slf4j
@Aspect
@Component
public class LogAspect {
@Autowired
private FebsProperties febsProperties;
@Autowired
private LogService logService;
@Pointcut("@annotation(com.xiaoyi.bis.common.annotation.Log)")
public void pointcut() {
// do nothing
}
@Around("pointcut()")
public Object around(ProceedingJoinPoint point) throws Throwable {
Object result = null;
long beginTime = System.currentTimeMillis();
// 执行方法
result = point.proceed();
// 获取 request
HttpServletRequest request = HttpContextUtil.getHttpServletRequest();
// 设置 IP 地址
String ip = IPUtil.getIpAddr(request);
// 执行时长(毫秒)
long time = System.currentTimeMillis() - beginTime;
if (febsProperties.isOpenAopLog()) {
// 保存日志
String token = (String) SecurityUtils.getSubject().getPrincipal();
String username = "";
if (StringUtils.isNotBlank(token)) {
username = JWTUtil.getUsername(token);
}
SysLog log = new SysLog();
log.setUsername(username);
log.setIp(ip);
log.setTime(time);
logService.saveLog(point, log);
}
return result;
}
}
|
[
"Philo@DESKTOP-OPRVRF1"
] |
Philo@DESKTOP-OPRVRF1
|
34ca21e7095866688148c32dc7bfe2e814b29756
|
3bc62f2a6d32df436e99507fa315938bc16652b1
|
/play/src/main/java/com/intellij/play/references/PlayRoutesFilesSearcher.java
|
1d6c3f3fdc445bc41e22b20215c36cc09486598e
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-obsolete-plugins
|
7abf3f10603e7fe42b9982b49171de839870e535
|
3e388a1f9ae5195dc538df0d3008841c61f11aef
|
refs/heads/master
| 2023-09-04T05:22:46.470136
| 2023-06-11T16:42:37
| 2023-06-11T16:42:37
| 184,035,533
| 19
| 29
|
Apache-2.0
| 2023-07-30T14:23:05
| 2019-04-29T08:54:54
|
Java
|
UTF-8
|
Java
| false
| false
| 1,512
|
java
|
package com.intellij.play.references;
import com.intellij.openapi.application.QueryExecutorBase;
import com.intellij.openapi.project.DumbService;
import com.intellij.play.utils.PlayPathUtils;
import com.intellij.play.utils.PlayUtils;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiNamedElement;
import com.intellij.psi.PsiReference;
import com.intellij.psi.search.SearchScope;
import com.intellij.psi.search.UsageSearchContext;
import com.intellij.psi.search.searches.ReferencesSearch;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.util.Processor;
import org.jetbrains.annotations.NotNull;
public class PlayRoutesFilesSearcher extends QueryExecutorBase<PsiReference, ReferencesSearch.SearchParameters> {
public PlayRoutesFilesSearcher() {
super(true);
}
@Override
public void processQuery(@NotNull ReferencesSearch.SearchParameters parameters, @NotNull Processor<? super PsiReference> consumer) {
final PsiElement search = parameters.getElementToSearch();
if (search instanceof PsiNamedElement method) {
if (DumbService.isDumb(search.getProject())) return;
if (!PlayUtils.isController(PsiTreeUtil.getContextOfType(method, PsiClass.class, false))) return;
SearchScope searchScope = PlayPathUtils.getRoutsFilesScope(method);
if (searchScope != null) {
parameters.getOptimizer().searchWord(method.getName(), searchScope, UsageSearchContext.IN_PLAIN_TEXT, false, method);
}
}
}
}
|
[
"yuriy.artamonov@jetbrains.com"
] |
yuriy.artamonov@jetbrains.com
|
b66b24320f305929f5495fa5bcbc251022c9f117
|
de3c2d89f623527b35cc5dd936773f32946025d2
|
/src/main/java/com/p530ss/android/p531a/p532a/p534b/p535a/DownloadCompletedListener.java
|
e869c5294480e96593000bd82ff54454c0c1d2d8
|
[] |
no_license
|
ren19890419/lvxing
|
5f89f7b118df59fd1da06aaba43bd9b41b5da1e6
|
239875461cb39e58183ac54e93565ec5f7f28ddb
|
refs/heads/master
| 2023-04-15T08:56:25.048806
| 2020-06-05T10:46:05
| 2020-06-05T10:46:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 889
|
java
|
package com.p530ss.android.p531a.p532a.p534b.p535a;
import com.p530ss.android.p531a.p532a.p534b.C6507c;
import com.p530ss.android.p531a.p532a.p534b.DownloadController;
import com.p530ss.android.p531a.p532a.p534b.DownloadEventConfig;
import com.p530ss.android.socialbase.downloader.p560e.BaseException;
import com.p530ss.android.socialbase.downloader.p562g.DownloadInfo;
/* renamed from: com.ss.android.a.a.b.a.a */
public interface DownloadCompletedListener {
/* renamed from: a */
void mo16552a(C6507c cVar, DownloadController aVar, DownloadEventConfig bVar);
/* renamed from: a */
void mo16553a(DownloadInfo cVar);
/* renamed from: a */
void mo16554a(DownloadInfo cVar, BaseException aVar, String str);
/* renamed from: a */
void mo16555a(DownloadInfo cVar, String str);
/* renamed from: b */
void mo16556b(DownloadInfo cVar, String str);
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
b8be7f512aac6e44a2826606911a6861fd852971
|
9effbe81905b37cf3c22fe865521fe410cdb1f86
|
/litho-it/src/test/java/com/facebook/litho/specmodels/processor/TagExtractorTest.java
|
cd987a76a7dabbf773b3f580b6830e12c6c5e4f9
|
[
"Apache-2.0"
] |
permissive
|
laonianren/litho
|
73fc85c689d46f8a3940472d8a723399fddf9047
|
6f81097f51d2fb325add75e8d40bc8e9ae56230c
|
refs/heads/master
| 2020-08-27T21:01:52.073737
| 2019-10-25T02:07:11
| 2019-10-25T02:09:08
| 217,485,279
| 1
| 0
|
Apache-2.0
| 2019-10-25T08:13:30
| 2019-10-25T08:13:30
| null |
UTF-8
|
Java
| false
| false
| 3,184
|
java
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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.facebook.litho.specmodels.processor;
import static org.assertj.core.api.Java6Assertions.assertThat;
import com.facebook.litho.annotations.LayoutSpec;
import com.facebook.litho.specmodels.internal.ImmutableList;
import com.facebook.litho.specmodels.model.TagModel;
import com.google.testing.compile.CompilationRule;
import com.squareup.javapoet.ClassName;
import javax.lang.model.util.Elements;
import javax.lang.model.util.Types;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** Tests {@link TagExtractor} */
@RunWith(JUnit4.class)
public class TagExtractorTest {
@Rule public CompilationRule mCompilationRule = new CompilationRule();
private ImmutableList<TagModel> mTagModels;
interface EmptyInterface {}
interface NonEmptyInterface {
void method();
}
interface ExtendedInterface extends NonEmptyInterface {}
@LayoutSpec
static class TestClass implements EmptyInterface, NonEmptyInterface, ExtendedInterface {
@Override
public void method() {}
}
@Before
public void setUp() throws Exception {
Elements elements = mCompilationRule.getElements();
Types types = mCompilationRule.getTypes();
mTagModels =
TagExtractor.extractTagsFromSpecClass(
types, elements.getTypeElement(TestClass.class.getCanonicalName()));
}
@Test
public void testExtractsAllTags() {
assertThat(mTagModels).hasSize(3);
}
@Test
public void testValidExtraction() {
TagModel emptyInterface = mTagModels.get(0);
assertThat(emptyInterface.name)
.isEqualTo(
ClassName.bestGuess(
"com.facebook.litho.specmodels.processor.TagExtractorTest.EmptyInterface"));
assertThat(emptyInterface.hasMethods).isFalse();
assertThat(emptyInterface.hasSupertype).isFalse();
}
@Test
public void testNonEmptyTag() {
TagModel nonEmptyInterface = mTagModels.get(1);
assertThat(nonEmptyInterface.name)
.isEqualTo(
ClassName.bestGuess(
"com.facebook.litho.specmodels.processor.TagExtractorTest.NonEmptyInterface"));
assertThat(nonEmptyInterface.hasMethods).isTrue();
}
@Test
public void testTagWithExtend() {
TagModel extendedInterface = mTagModels.get(2);
assertThat(extendedInterface.name)
.isEqualTo(
ClassName.bestGuess(
"com.facebook.litho.specmodels.processor.TagExtractorTest.ExtendedInterface"));
assertThat(extendedInterface.hasSupertype).isTrue();
}
}
|
[
"facebook-github-bot@users.noreply.github.com"
] |
facebook-github-bot@users.noreply.github.com
|
a39cbb3a5d5633fbacd393e9fc385c7b18cc61c1
|
fbf7ad0dc9e5b7ac88aa99f77347c15ebe4b521a
|
/JavaWork/Lec09_While/src/com/lec/java/while03/While03Main.java
|
459a77727f390e659a76f5fb0d587031ab977d93
|
[] |
no_license
|
GoForWalk/JavaPractice
|
d86a361f20c9a4e085754814083233595e3bd0de
|
3d838769821193263d4c55195f069ddac67fe041
|
refs/heads/master
| 2023-05-14T03:01:14.406318
| 2020-06-22T05:21:34
| 2020-06-22T05:21:34
| 259,175,380
| 0
| 0
| null | 2021-06-07T18:48:41
| 2020-04-27T01:41:18
|
Java
|
UTF-8
|
Java
| false
| false
| 454
|
java
|
package com.lec.java.while03;
public class While03Main {
public static void main(String[] args) {
System.out.println("while 연습");
// 1 ~ 10 까지 수 중에서 홀수만 출력
int i = 1;
while(i <= 10) {
if(i % 2 == 1) {
System.out.println(i);
}
i++;
}
System.out.println();
i = 1;
while(i <= 10) {
System.out.println(i);
i += 2;
}
} // end main()
} // end class While03Main
|
[
"atcgsp912@gmail.com"
] |
atcgsp912@gmail.com
|
230930c91f9f24afbecd049a845de852857bc14f
|
53921a7b4631df151658da87f8a0436cb4c367c7
|
/weadmin/NNM/com.siteview.jaxb/src/com/siteview/jaxb/book/Bookstore.java
|
f0c1338ff7e96c9fe389196842a4063e4fd22c92
|
[] |
no_license
|
github188/dragonflow_all
|
293b5f5817ffe7297790981623b555d292b17905
|
0bc174de8699f8bd5ec8a3d6327e8f7bcfe9912d
|
refs/heads/master
| 2021-01-18T16:45:40.846920
| 2016-12-20T06:37:53
| 2016-12-20T06:37:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,064
|
java
|
package com.siteview.jaxb.book;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
//This statement means that class "Bookstore.java" is the root-element of our example
@XmlRootElement(namespace = "com.siteview.jaxb.model")
public class Bookstore {
// XmLElementWrapper generates a wrapper element around XML representation
@XmlElementWrapper(name = "bookList")
// XmlElement sets the name of the entities
@XmlElement(name = "book")
private ArrayList<Book> bookList;
private String name;
private String location;
public void setBookList(ArrayList<Book> bookList) {
this.bookList = bookList;
}
public ArrayList<Book> getBooksList() {
return bookList;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
}
|
[
"623578381@qq.com"
] |
623578381@qq.com
|
fa982c3c61f303cbae2d210beb1c9c559fcab840
|
3b481b302b02edf57b816acac9e5ff3b7ec602e2
|
/src/com/twitter/android/events/sports/nba/c.java
|
ab7d260dca48d3f4235f1bf849c6bdc6d0c46a6f
|
[] |
no_license
|
reverseengineeringer/com.twitter.android
|
53338ae009b2b6aa79551a8273875ec3728eda99
|
f834eee04284d773ccfcd05487021200de30bd1e
|
refs/heads/master
| 2021-04-15T04:35:06.232782
| 2016-07-21T03:51:19
| 2016-07-21T03:51:19
| 63,835,046
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 339
|
java
|
package com.twitter.android.events.sports.nba;
import com.twitter.android.widget.TopicView.TopicData;
public abstract interface c
{
public abstract void a(TopicView.TopicData paramTopicData);
}
/* Location:
* Qualified Name: com.twitter.android.events.sports.nba.c
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
7a5b3a1c20545a70c141fc7ed11ea0d3550a2e1f
|
27ac00b3add9f332aca7ea88d31468c4ebe58ad5
|
/project/core/src/com/simplepathstudios/gamelib/audio/RandomSoundPlayer.java
|
b6669eed57c149bd4b40bc055d098e76d695ab3e
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
XBigTK13X/sps-gamelib
|
91124cf8e04ac4a5919438a360192568c299c17c
|
6d0203836fd4fefa55414d6e59f500d83b31d693
|
refs/heads/master
| 2016-09-10T11:59:44.411259
| 2014-10-10T00:30:19
| 2014-10-10T00:30:19
| 1,630,834
| 1
| 0
| null | 2014-08-29T16:09:14
| 2011-04-18T14:25:52
|
Java
|
UTF-8
|
Java
| false
| false
| 944
|
java
|
package com.simplepathstudios.gamelib.audio;
import com.simplepathstudios.gamelib.core.Loader;
import com.simplepathstudios.gamelib.core.RNG;
import org.apache.commons.io.FilenameUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class RandomSoundPlayer {
private static Map<String,List<String>> __sounds= new HashMap<>();
public static void setup(String collectionId) {
__sounds.put(collectionId,new ArrayList<String>());
for (File sound : Loader.get().sound(collectionId).listFiles()) {
String id = FilenameUtils.removeExtension(sound.getName());
SoundPlayer.get().add(id, collectionId + "/" + sound.getName());
__sounds.get(collectionId).add(id);
}
}
public static void play(String collectionId) {
SoundPlayer.get().play(RNG.pick(__sounds.get(collectionId)));
}
}
|
[
"xbigtk13x@gmail.com"
] |
xbigtk13x@gmail.com
|
aae2c1ce3643f2a8df75c2631ee9570d67cd6ab6
|
0fce63e11fb59f21bbb0f5f3abe981fa9728c402
|
/app/src/main/java/com/sagar/android_projects/androidarch/application/AndroidArchApp.java
|
0db77e30ab67080f800659e299411cd5b20b8098
|
[] |
no_license
|
guitarJero/AndroidArch
|
4bc1b48a2662543f182b958e23b62cd50c641cc4
|
bfa54df4375f62afebf62fb3b92452200f39543a
|
refs/heads/master
| 2020-03-23T11:28:39.357711
| 2018-01-16T04:01:27
| 2018-01-16T04:01:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 875
|
java
|
package com.sagar.android_projects.androidarch.application;
import android.app.Activity;
import android.app.Application;
import com.sagar.android_projects.androidarch.di.component.DaggerAppComponent;
import javax.inject.Inject;
import dagger.android.AndroidInjector;
import dagger.android.DispatchingAndroidInjector;
import dagger.android.HasActivityInjector;
public class AndroidArchApp extends Application implements HasActivityInjector {
@Inject
DispatchingAndroidInjector<Activity> dispatchingAndroidInjector;
@Override
public void onCreate() {
super.onCreate();
DaggerAppComponent
.builder()
.application(this)
.build()
.inject(this);
}
@Override
public AndroidInjector<Activity> activityInjector() {
return dispatchingAndroidInjector;
}
}
|
[
"snkumar.nayak@gmail.com"
] |
snkumar.nayak@gmail.com
|
30f905c40abdaddf38c2fd32e98ce9be46952a6c
|
ca638c1f5fafa0294e958f07b698cfea93722a63
|
/src/ru/demi/patterns/base/structural/proxy/ProxyMusicRepo.java
|
5cac5c1040865fbf71bf052e3c2631c1dd131b93
|
[] |
no_license
|
dmitry-izmerov/design-patterns
|
fc59919ac0857c5cb10f90ed9d3db61683b278b3
|
e2e09ef4bb0f95647ba22d4be36927f32b999d36
|
refs/heads/master
| 2021-01-25T04:34:37.641195
| 2017-06-30T19:38:09
| 2017-06-30T19:38:09
| 93,445,535
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 374
|
java
|
package ru.demi.patterns.base.structural.proxy;
import java.util.Collection;
public class ProxyMusicRepo extends MusicRepo {
private MusicRepo musicRepo;
public ProxyMusicRepo(String url) {
super(url);
}
@Override
public Collection<String> getRecords() {
if (musicRepo == null) {
musicRepo = new RealMusicRepo(url);
}
return musicRepo.getRecords();
}
}
|
[
"idd90i@gmail.com"
] |
idd90i@gmail.com
|
27a8c59f2ab985906d4ff030b743d5409eb61958
|
84000834bb94b433ad7e3c9f3be9188bf304f1e1
|
/dma-network-client/src/main/java/dk/dma/navnet/client/ClientContainer.java
|
c64c445a722b147b6c661cf0e774cd0579d0e289
|
[] |
no_license
|
dma-graveyard/eNav-network
|
5f9ce587fea4e814b6096d4205b2111d7b24ea21
|
1a1d3d85fcc635b53f7d9bacd4bb70a410d4f112
|
refs/heads/master
| 2021-01-01T17:10:18.616574
| 2014-03-25T15:54:31
| 2014-03-25T15:54:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,647
|
java
|
/* Copyright (c) 2011 Danish Maritime Authority
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
package dk.dma.navnet.client;
import static java.util.Objects.requireNonNull;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
import org.picocontainer.DefaultPicoContainer;
import org.picocontainer.PicoContainer;
import org.picocontainer.behaviors.Caching;
import org.picocontainer.containers.ImmutablePicoContainer;
import dk.dma.enav.maritimecloud.MaritimeCloudClientConfiguration;
import dk.dma.enav.model.MaritimeId;
import dk.dma.enav.model.geometry.PositionTime;
import dk.dma.enav.util.function.Supplier;
import dk.dma.navnet.client.broadcast.BroadcastManager;
import dk.dma.navnet.client.connection.ConnectionManager;
import dk.dma.navnet.client.connection.ConnectionMessageBus;
import dk.dma.navnet.client.service.ClientServiceManager;
import dk.dma.navnet.client.service.PositionManager;
import dk.dma.navnet.client.util.ThreadManager;
/**
* The internal client.
*
* @author Kasper Nielsen
*/
@SuppressWarnings("serial")
public class ClientContainer extends ReentrantLock {
/** The container is is normal running mode. (certain pre-start hooks may still be running. */
static final int S_RUNNING = 0;
/** The container has been shutdown, for example, by calling shutdown(). */
static final int S_SHUTDOWN = 2;
/** The container has been started either by a preStart() or by invoking a lazy-starting method. */
static final int S_STARTING = 1;
/** The container has been fully terminated. */
static final int S_TERMINATED = 3;
/** The id of this client */
private final MaritimeId clientId;
/** PicoContainer instance. Got really tired of Guice, so replaced it with PicoContainer. */
private final DefaultPicoContainer picoContainer = new DefaultPicoContainer(new Caching());
/** Supplies the current position. */
private final Supplier<PositionTime> positionSupplier;
/** The current state of the client. Only set while holding lock, can be read at any time. */
private volatile int state = 0;
/** A latch that is released when the client has been terminated. */
private final CountDownLatch terminated = new CountDownLatch(1);
/**
* Creates a new instance of this class.
*
* @param builder
* the configuration
*/
ClientContainer(MaritimeCloudClientConfiguration builder) {
clientId = requireNonNull(builder.getId());
positionSupplier = requireNonNull(builder.getPositionSupplier());
picoContainer.addComponent(builder);
picoContainer.addComponent(this);
picoContainer.addComponent(PositionManager.class);
picoContainer.addComponent(BroadcastManager.class);
picoContainer.addComponent(ClientServiceManager.class);
picoContainer.addComponent(ConnectionMessageBus.class);
picoContainer.addComponent(ThreadManager.class);
picoContainer.addComponent(ConnectionManager.class);
picoContainer.addComponent(new ImmutablePicoContainer(picoContainer));
}
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
return terminated.await(timeout, unit);
}
public void close() {
lock();
try {
if (state < S_SHUTDOWN) {
state = S_SHUTDOWN;
Runnable r = new Runnable() {
public void run() {
close0();
}
};
new Thread(r).start();
}
} finally {
unlock();
}
}
void close0() {
lock();
try {
if (state == S_SHUTDOWN) {
try {
picoContainer.stop();
} finally {
state = S_TERMINATED;
terminated.countDown();
}
}
} finally {
unlock();
}
}
protected void finalize() {
close();
}
/**
* Returns the maritime id of the client.
*
* @return the maritime id of the client
*/
public MaritimeId getLocalId() {
return clientId;
}
/**
* @return the picoContainer
*/
public PicoContainer getPicoContainer() {
return picoContainer;
}
public boolean isClosed() {
return state >= S_SHUTDOWN;
}
public boolean isTerminated() {
return state == S_TERMINATED;
}
/**
* Reads and returns the current position.
*
* @return the current position
*/
public PositionTime readCurrentPosition() {
return positionSupplier.get();
}
static PicoContainer create(MaritimeCloudClientConfiguration builder) {
ClientContainer client = new ClientContainer(builder);
client.picoContainer.start();
return client.picoContainer;
}
}
|
[
"kasperni@gmail.com"
] |
kasperni@gmail.com
|
f568d76fb51a626bf212ff8d40646b112784edaa
|
3e31c0aaca1e8ceace58265e7e32413a35494d51
|
/hanjiangsanguo/src/main/java/org/unidal/game/hanjiangsanguo/task/core/LoginTask.java
|
965a66a1d6621d7b2b240aade5b91937a39e8faa
|
[] |
no_license
|
qmwu2000/game
|
1c848f018a88e381f21c57e961fbd4487f315023
|
a370ace03d451e0f78ca80fc845cc84e10a21c1c
|
refs/heads/master
| 2016-09-10T19:23:35.462221
| 2014-09-27T11:45:56
| 2014-09-27T11:45:56
| 16,857,370
| 2
| 1
| null | 2014-05-31T11:34:19
| 2014-02-15T05:42:05
|
Java
|
UTF-8
|
Java
| false
| false
| 2,658
|
java
|
package org.unidal.game.hanjiangsanguo.task.core;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
import org.unidal.game.hanjiangsanguo.task.Task;
import org.unidal.game.hanjiangsanguo.task.TaskContext;
import org.unidal.game.hanjiangsanguo.task.TaskHelper;
import org.unidal.lookup.annotation.Inject;
public class LoginTask implements Task {
public static final String ID = "login";
@Inject
private TaskHelper m_helper;
@Override
public void execute(TaskContext ctx) throws Exception {
String username = ctx.getAttribute("user", "username");
String server = ctx.getAttribute("user", "server");
File file = new File("target/" + username + "." + server);
boolean logined = false;
if (file.exists()) {
loadFromFile(ctx, file);
logined = handleMemeber(ctx);
}
if (!logined) {
handleLogin(ctx);
handleMemeber(ctx);
saveToFile(ctx, file);
}
}
private void handleLogin(TaskContext ctx) throws Exception {
ctx.setDefaultCategory("user");
String loginUrl = m_helper.buildUrl3(ctx, "user", "login", "&u=%s&p=%s", "user/username", "user/password");
m_helper.doGet(ctx, loginUrl, "uid:user");
String tokenUrl = m_helper.buildUrl2(ctx, "login", "user", "&u=%s&p=%s", "user/username", "user/password");
m_helper.doGet(ctx, tokenUrl, "token:user", "vip:user");
}
private boolean handleMemeber(TaskContext ctx) throws Exception {
ctx.setDefaultCategory("member");
String url = m_helper.buildUrl2(ctx, "member", "index", null);
String[] keys = { "nickname", "level", "act", "act_limit", "silver", "gold", "rank", "soul", "gem", "jade",
"reputation", "missionlevel", "missionstage", "missionid" };
boolean showAll = false;
if (showAll) {
return m_helper.doGet(ctx, url, "*");
} else {
return m_helper.doGet(ctx, url, keys);
}
}
private void loadFromFile(TaskContext ctx, File file) throws IOException, FileNotFoundException {
Properties properties = new Properties();
properties.load(new FileReader(file));
for (Map.Entry<Object, Object> e : properties.entrySet()) {
ctx.setAttribute("user", e.getKey().toString(), e.getValue().toString());
}
}
private void saveToFile(TaskContext ctx, File file) throws IOException {
Properties properties = new Properties();
properties.setProperty("uid", ctx.getAttribute("user", "uid"));
properties.setProperty("token", ctx.getAttribute("user", "token"));
properties.setProperty("vip", ctx.getAttribute("user", "vip"));
properties.store(new FileWriter(file), "");
}
}
|
[
"qmwu2000@gmail.com"
] |
qmwu2000@gmail.com
|
bfcf462f46b722254e3a31012db7aecc5aa62f43
|
eddfb16fc9ca35e18c02737b97366395537f16ba
|
/bhispider/src/com/unbank/paser/other/WebBeanPaser.java
|
fbfeb42006610c1450c9de6968a9b55f98248930
|
[] |
no_license
|
liangyangtao/bhispider
|
5526dc356f41bcdd6f3c858e157c7544701530c6
|
adeff85dcabb33ce781043278391ac958079a586
|
refs/heads/master
| 2021-01-02T22:45:44.186654
| 2015-01-30T02:33:28
| 2015-01-30T02:33:28
| 30,052,445
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
package com.unbank.paser.other;
import com.unbank.fetch.Fetcher;
import com.unbank.paser.entity.WebBean;
import com.unbank.paser.nextpage.NextPagePaser;
public class WebBeanPaser {
public void paseWebBean(WebBean webBean, Fetcher fetcher) {
new NextPagePaser().paseNextPage(webBean, fetcher);
}
}
|
[
"674613438@qq.com"
] |
674613438@qq.com
|
f64849427919e7624105d504b2e0461c94fbfec8
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-vod/src/main/java/com/aliyuncs/vod/transform/v20170321/ListDynamicImageResponseUnmarshaller.java
|
3c225032ed9d9fc41220c42b193501c56338ac16
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,735
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.vod.transform.v20170321;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.vod.model.v20170321.ListDynamicImageResponse;
import com.aliyuncs.vod.model.v20170321.ListDynamicImageResponse.DynamicImage;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListDynamicImageResponseUnmarshaller {
public static ListDynamicImageResponse unmarshall(ListDynamicImageResponse listDynamicImageResponse, UnmarshallerContext _ctx) {
listDynamicImageResponse.setRequestId(_ctx.stringValue("ListDynamicImageResponse.RequestId"));
List<DynamicImage> dynamicImageList = new ArrayList<DynamicImage>();
for (int i = 0; i < _ctx.lengthValue("ListDynamicImageResponse.DynamicImageList.Length"); i++) {
DynamicImage dynamicImage = new DynamicImage();
dynamicImage.setCreationTime(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].CreationTime"));
dynamicImage.setFileURL(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].FileURL"));
dynamicImage.setVideoId(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].VideoId"));
dynamicImage.setWidth(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].Width"));
dynamicImage.setJobId(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].JobId"));
dynamicImage.setHeight(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].Height"));
dynamicImage.setFps(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].Fps"));
dynamicImage.setDuration(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].Duration"));
dynamicImage.setFormat(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].Format"));
dynamicImage.setDynamicImageId(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].DynamicImageId"));
dynamicImage.setFileSize(_ctx.stringValue("ListDynamicImageResponse.DynamicImageList["+ i +"].FileSize"));
dynamicImageList.add(dynamicImage);
}
listDynamicImageResponse.setDynamicImageList(dynamicImageList);
return listDynamicImageResponse;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
f7dbfcd6b30f3163024704c4aaad801a105bed5b
|
14076d999bb51bafb73222c22b190d2edb1b1f86
|
/merchant-credit/withdraw-dao/src/main/java/com/sdp/withdraw/manager/WithdrawRatioInfoManager.java
|
04a74311dd823b6fb1973b2828d568fa6544b2f6
|
[] |
no_license
|
kevinkerry/merchant-credit
|
d3a9b397ddcd79d28925fa42121264da46eb91d4
|
14d3ad60795dcf251bd3066de14f0a731f89b73f
|
refs/heads/master
| 2021-04-03T09:09:43.601015
| 2017-07-28T06:07:14
| 2017-07-28T06:07:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,028
|
java
|
package com.sdp.withdraw.manager;
import com.sdp.withdraw.dao.WithdrawRatioInfoDO;
import com.sdp.withdraw.dao.WithdrawRatioInfoDOExample;
import java.util.List;
public interface WithdrawRatioInfoManager {
/**
* 根据主键删除提现出款费率信息【WithdrawRatioInfoDO】对象信息
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
int deleteByPrimaryKey(Long id);
/**
* 添加提现出款费率信息【WithdrawRatioInfoDO】对象信息
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
Long insert(WithdrawRatioInfoDO record);
/**
* 添加提现出款费率信息【WithdrawRatioInfoDO】对象信息,空值字段不插入
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
Long insertSelective(WithdrawRatioInfoDO record);
/**
* 根据Example对象查询得到提现出款费率信息【WithdrawRatioInfoDO】对象列表信息
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
List<WithdrawRatioInfoDO> selectByExample(WithdrawRatioInfoDOExample example);
/**
* 根据主键查询提现出款费率信息【WithdrawRatioInfoDO】对象信息
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
WithdrawRatioInfoDO selectByPrimaryKey(Long id);
/**
* 根据主键更新提现出款费率信息【WithdrawRatioInfoDO】对象信息,仅更新非空对象
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
int updateByPrimaryKeySelective(WithdrawRatioInfoDO record);
/**
* 根据主键更新提现出款费率信息【WithdrawRatioInfoDO】对象信息
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
int updateByPrimaryKey(WithdrawRatioInfoDO record);
/**
* 根据Query对象分页查询提现出款费率信息【WithdrawRatioInfoDO】对象列表信息
*
* @mbggenerated Fri Mar 11 19:55:30 CST 2016
*/
List<WithdrawRatioInfoDO> selectByQuery(WithdrawRatioInfoDOExample example);
}
|
[
"bishuai@shengpay.com"
] |
bishuai@shengpay.com
|
d356033136f60d2a3ee2f035eaa892e93d6bb429
|
14d083e172837377a0bc3e9b2b031c058e75a4aa
|
/src/GameInterfaces/Animals/Misc/IBoar.java
|
cadbc0e5ec670cf5369cedfc064479be7fd4ec26
|
[] |
no_license
|
wgres101/NECROTEK3Dv2
|
478b708936b4dcfd9aa7f9b949e23bfa3e61bd43
|
4f57b5f56fc2fa6406d2ce6ed5fdce21964fd483
|
refs/heads/master
| 2020-12-18T18:58:42.660286
| 2017-08-10T23:23:29
| 2017-08-10T23:23:29
| 235,483,578
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 132
|
java
|
package GameInterfaces.Animals.Misc;
import GameInterfaces.Animals.IBaseAnimals;
public interface IBoar extends IBaseAnimals {
}
|
[
"ted_gress@yahoo.com"
] |
ted_gress@yahoo.com
|
abb47065ec33857ac65fee98f6916bfaeddcd402
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/15/15_5cc3d6a504f16f58795fa9a2000d004025389755/JavaEnumImpl/15_5cc3d6a504f16f58795fa9a2000d004025389755_JavaEnumImpl_t.java
|
fbb84e41b3c4fb57318c122fbf3a7e1a686ac970
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,034
|
java
|
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.jdt.core.dom.BodyDeclaration;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.EnumConstantDeclaration;
import org.eclipse.jdt.core.dom.EnumDeclaration;
import org.eclipse.jface.text.Document;
import org.jboss.forge.parser.java.EnumConstant;
import org.jboss.forge.parser.java.JavaEnum;
import org.jboss.forge.parser.java.JavaSource;
import org.jboss.forge.parser.java.SourceType;
/**
* Represents a Java Source File containing an Enum Type.
*
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*/
public class JavaEnumImpl extends AbstractJavaSourceMemberHolder<JavaEnum> implements JavaEnum
{
public JavaEnumImpl(JavaSource<?> enclosingType, final Document document, final CompilationUnit unit,
BodyDeclaration body)
{
super(enclosingType, document, unit, body);
}
@Override
public List<EnumConstant> getEnumConstants()
{
List<EnumConstant> result = new ArrayList<EnumConstant>();
for (Object o : (((EnumDeclaration) getBodyDeclaration()).enumConstants()))
{
EnumConstantDeclaration constant = (EnumConstantDeclaration) o;
result.add(new EnumConstantImpl(this, constant));
}
return Collections.unmodifiableList(result);
}
@Override
@SuppressWarnings("unchecked")
public EnumConstant addEnumConstant()
{
EnumConstantImpl enumConst = new EnumConstantImpl(this);
EnumDeclaration enumDeclaration = (EnumDeclaration) getBodyDeclaration();
List<EnumConstantDeclaration> constants = enumDeclaration.enumConstants();
constants.add((EnumConstantDeclaration) enumConst.getInternal());
return enumConst;
}
@Override
@SuppressWarnings("unchecked")
public EnumConstant addEnumConstant(final String declaration)
{
EnumConstantImpl enumConst = new EnumConstantImpl(this, declaration);
EnumDeclaration enumDeclaration = (EnumDeclaration) getBodyDeclaration();
List<EnumConstantDeclaration> constants = enumDeclaration.enumConstants();
constants.add((EnumConstantDeclaration) enumConst.getInternal());
return enumConst;
}
@Override
public EnumConstant getEnumConstant(String name)
{
for (EnumConstant enumConst : getEnumConstants())
{
if (enumConst.getName().equals(name))
{
return enumConst;
}
}
return null;
}
@Override
protected JavaEnum updateTypeNames(final String newName)
{
return this;
}
@Override
public SourceType getSourceType()
{
return SourceType.ENUM;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
73b24b8da855a302ac68111bfc92992dad45614c
|
097df92ce1bfc8a354680725c7d10f0d109b5b7d
|
/com/amazon/ws/emr/hadoop/fs/shaded/com/google/common/hash/MessageDigestHashFunction$SerializedForm.java
|
a21a143bd734c7624419152a7bbce380d3fc75bc
|
[] |
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
| 852
|
java
|
package com.amazon.ws.emr.hadoop.fs.shaded.com.google.common.hash;
import java.io.Serializable;
final class MessageDigestHashFunction$SerializedForm
implements Serializable
{
private final String algorithmName;
private final int bytes;
private final String toString;
private static final long serialVersionUID = 0L;
private MessageDigestHashFunction$SerializedForm(String algorithmName, int bytes, String toString)
{
this.algorithmName = algorithmName;
this.bytes = bytes;
this.toString = toString;
}
private Object readResolve()
{
return new MessageDigestHashFunction(algorithmName, bytes, toString);
}
}
/* Location:
* Qualified Name: com.amazon.ws.emr.hadoop.fs.shaded.com.google.common.hash.MessageDigestHashFunction.SerializedForm
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"Arwin.tio@adroll.com"
] |
Arwin.tio@adroll.com
|
93a345b329acac54eaae79ef0540cb7a10b405b2
|
677197bbd8a9826558255b8ec6235c1e16dd280a
|
/src/com/taobao/newxp/common/a/a/k.java
|
8c14fa8b54e02575c2d87985ba386999397cdb90
|
[] |
no_license
|
xiaolongyuan/QingTingCheat
|
19fcdd821650126b9a4450fcaebc747259f41335
|
989c964665a95f512964f3fafb3459bec7e4125a
|
refs/heads/master
| 2020-12-26T02:31:51.506606
| 2015-11-11T08:12:39
| 2015-11-11T08:12:39
| 45,967,303
| 0
| 1
| null | 2015-11-11T07:47:59
| 2015-11-11T07:47:59
| null |
UTF-8
|
Java
| false
| false
| 988
|
java
|
package com.taobao.newxp.common.a.a;
import android.content.Context;
import android.util.Log;
import android.view.MotionEvent;
public class k
implements l
{
private g a = new g();
private int b = 0;
private int c = 0;
public g a()
{
Log.i("statistics", "Pingback model touchMove num is -------------->>>>>>>>>>>> " + this.a.a);
return this.a;
}
public void a(Context paramContext, MotionEvent paramMotionEvent)
{
if (paramMotionEvent != null)
this.a.a(paramContext, paramMotionEvent);
}
public void a(a parama)
{
this.b = (1 + this.b);
}
public void a(m paramm)
{
this.c = (1 + this.c);
}
public void b()
{
this.a.c();
this.c = 0;
this.b = 0;
}
public int c()
{
return this.b;
}
public int d()
{
return this.c;
}
}
/* Location: /Users/zhangxun-xy/Downloads/qingting2/classes_dex2jar.jar
* Qualified Name: com.taobao.newxp.common.a.a.k
* JD-Core Version: 0.6.2
*/
|
[
"cnzx219@qq.com"
] |
cnzx219@qq.com
|
14266578bfa4834ccae1a5e3aba2b90da9ef2b1b
|
e1d9cb9a0098373665d3efb63ccfdb29c0ca510d
|
/Web Project/src/com/project/spring/entity/Customer.java
|
368d72b45fee2decf1963e9dac5ccad013793421
|
[
"Apache-2.0"
] |
permissive
|
soumyadip007/Customer-Tracker-CURD-Application-Using-Spring-MVC-Hibernate
|
ed31689d5dcff5895bd94e94f3391b0ac793bcaf
|
350d7b32e710fc0003763ad472a96c03ad175822
|
refs/heads/master
| 2020-05-27T02:29:51.756460
| 2019-07-23T17:54:42
| 2019-07-23T17:54:42
| 188,452,372
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,280
|
java
|
package com.project.spring.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="customer")
public class Customer {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
private int id;
@Column(name="first_name")
private String firstName;
@Column(name="last_name")
private String lastName;
@Column(name="email")
private String email;
public Customer() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public String toString() {
return "Customer [id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + ", email=" + email + "]";
}
}
|
[
"soumyadip.note@gmail.com"
] |
soumyadip.note@gmail.com
|
ae83149c1962bdca681457c6871dd49d4e4c9d4e
|
8cb48fde500b11efdc35fe97345f2828da62e007
|
/app/src/main/java/com/yc/quzhuanfa/view/bottom/ReleaseBottomFrg.java
|
4f3fcb19fac4a1beddda5242f6d2854be8d8f86b
|
[] |
no_license
|
edcedc/QuZhuanFa
|
612d5bd9e8b74b49fa43b8bd156aa74408928c87
|
69855ab4a2ab6ec036327d7a8892984762af9eeb
|
refs/heads/master
| 2020-06-08T06:26:20.794155
| 2019-11-03T02:50:37
| 2019-11-03T02:50:37
| 193,176,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,605
|
java
|
package com.yc.quzhuanfa.view.bottom;
import android.os.Bundle;
import android.support.v7.widget.AppCompatTextView;
import android.view.View;
import com.yc.quzhuanfa.R;
import com.yc.quzhuanfa.base.BaseBottomSheetFrg;
/**
* Created by Android Studio.
* User: ${edison}
* Date: 2019/10/15
* Time: 15:33
*/
public class ReleaseBottomFrg extends BaseBottomSheetFrg implements View.OnClickListener {
private AppCompatTextView tv_photo;
private AppCompatTextView tv_camera;
private int type;
@Override
protected void initParms(Bundle bundle) {
type = bundle.getInt("type");
}
@Override
public int bindLayout() {
return R.layout.p_camera;
}
@Override
public void initView(View view) {
tv_photo = view.findViewById(R.id.tv_photo);
tv_photo.setOnClickListener(this);
view.findViewById(R.id.tv_camera).setOnClickListener(this);
view.findViewById(R.id.tv_cancel).setOnClickListener(view1 -> dismiss());
if (type == 1){
}
}
@Override
public void onClick(View view) {
switch (view.getId()){
case R.id.tv_photo:
listener.photo();
dismiss();
break;
case R.id.tv_camera:
listener.camera();
dismiss();
break;
}
}
private onCameraListener listener;
public void setCameraListener(onCameraListener listener){
this.listener = listener;
}
public interface onCameraListener{
void photo();
void camera();
}
}
|
[
"501807647@qq.com"
] |
501807647@qq.com
|
37a1661a64bf71299a2dbab1360dbf38ee499cf8
|
647204596c833b6b89eba974e238c25a44c7adfa
|
/week-10/PallidaOrientationRetakeExam/src/test/java/com/greenfoxacademy/pallidaretakeexam/PallidaretakeexamApplicationTests.java
|
344aa859f3d9a4bf282f10cec56f7fb3da311942
|
[] |
no_license
|
green-fox-academy/nguyenannie
|
632f12e50ed8fe217c814b37e78a7a8c3c175a03
|
f2c0b14deb96dd520e5649b5acea20430cf53048
|
refs/heads/master
| 2021-09-07T01:45:20.636156
| 2018-02-15T10:09:00
| 2018-02-15T10:09:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,645
|
java
|
package com.greenfoxacademy.pallidaretakeexam;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.greenfoxacademy.pallidaretakeexam.models.entities.Clothing;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.Matchers.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = PallidaretakeexamApplication.class)
@WebAppConfiguration
@EnableWebMvc
public class PallidaretakeexamApplicationTests {
private MediaType contentType = new MediaType(MediaType.APPLICATION_JSON.getType(),
MediaType.APPLICATION_JSON.getSubtype(),
Charset.forName("utf-8"));
private MockMvc mockMvc;
@Autowired
private WebApplicationContext webApplicationContext;
@Before
public void setUp() throws Exception {
this.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();
}
@Test
public void successful_Warehouse_Query() {
// Clothing clothing1 = new Clothing(16, "Strecth Steamed Pencil Skirt", "Calvin Klein", "skirts","s", 39 );
// Clothing clothing2 = new Clothing(18, "Strecth Steamed Pencil Skirt","Calvin Klein", "skirts","m",39 );
// List<Clothing> clothes = new ArrayList<>(Arrays.asList(clothing1, clothing2));
try {
mockMvc.perform(get("/warehouse/query")
.contentType(contentType)
.param("price", "50")
.param("type", "lower"))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$.result", is("ok")))
.andExpect(jsonPath("$clothes[*].id", containsInAnyOrder(16, 18)))
.andExpect(jsonPath("$clothes[*].itemName", containsInAnyOrder("Strecth Steamed Pencil Skirt", "Strecth Steamed Pencil Skirt")))
.andExpect(jsonPath("$clothes[*].manufacturer", containsInAnyOrder("Calvin Klein", "Calvin Klein")))
.andExpect(jsonPath("$clothes[*].category", containsInAnyOrder("skirts", "skirts")))
.andExpect(jsonPath("$clothes[*].size", containsInAnyOrder("s","m")))
.andExpect(jsonPath("$clothes[*].unitPrice", containsInAnyOrder(39,39)));
} catch (Exception e) {
e.printStackTrace();
}
}
@Test
public void successful_Warehouse_Query_test2() {
Clothing clothing1 = new Clothing(16, "Strecth Steamed Pencil Skirt", "Calvin Klein", "skirts","s", 39 );
Clothing clothing2 = new Clothing(18, "Strecth Steamed Pencil Skirt","Calvin Klein", "skirts","m",39 );
List<String> clothes = new ArrayList<>(Arrays.asList(asJsonString(clothing1), asJsonString(clothing2)));
try {
mockMvc.perform(get("/warehouse/query")
.contentType(contentType)
.param("price", "50")
.param("type", "lower"))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$.result", is("ok")))
.andExpect(jsonPath("$.clothes", is(clothes)));
} catch (Exception e) {
e.printStackTrace();
}
}
public static String asJsonString(final Object obj) {
try {
final ObjectMapper mapper = new ObjectMapper();
return mapper.writeValueAsString(obj);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
|
[
"tramtramrhinomo@gmail.com"
] |
tramtramrhinomo@gmail.com
|
51546413cea6556c4475d17d7bbe9cb5a4db5056
|
f551ac18a556af60d50d32a175c8037aa95ec3ac
|
/shop/com/enation/app/shop/component/goodscore/GoodsCoreComponent.java
|
80aaf177d1358895882e3ef00678fdd37631aa3a
|
[] |
no_license
|
yexingf/cxcar
|
06dfc7b7970f09dae964827fcf65f19fa39d35d1
|
0ddcf144f9682fa2847b9a350be91cedec602c60
|
refs/heads/master
| 2021-05-15T05:40:04.396174
| 2018-01-09T09:46:18
| 2018-01-09T09:46:18
| 116,647,698
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 368
|
java
|
package com.enation.app.shop.component.goodscore;
import org.springframework.stereotype.Component;
import com.enation.framework.component.IComponent;
@Component
public class GoodsCoreComponent implements IComponent {
@Override
public void install() {
// JspPageTabs.addTab("setting",2, "相册设置");
}
@Override
public void unInstall() {
}
}
|
[
"274674758_ye@sina.com"
] |
274674758_ye@sina.com
|
1441cf0399a791301510edf4cd2b50cc7485518a
|
29c04cb6ceb04a7918a0ebea3ae9dece13b392ec
|
/app/src/main/java/com/fupengpeng/mvplogindemo/register/RegisterActivity.java
|
e51492d7aa44ff0eb197469591eb58a28ae67e6d
|
[] |
no_license
|
fupengpeng/MVPLoginDemo
|
8ded568e2b6e3c7fb2ca32f7a095e4eb30490f1b
|
0140e3a6d5f5e4cb5e59367a8333b72170efd450
|
refs/heads/master
| 2021-01-21T18:38:24.776835
| 2017-05-24T03:32:07
| 2017-05-24T03:32:07
| 92,064,195
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 396
|
java
|
package com.fupengpeng.mvplogindemo.register;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.fupengpeng.mvplogindemo.R;
public class RegisterActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
}
}
|
[
"564055710@qq.com"
] |
564055710@qq.com
|
dfc7911de8a0ef23873ee16f24b7331273786626
|
7c8eae55e81c05dd2668ad6d0355714ff52f1804
|
/petcheeze_semi_pj/src/com/menu/MenuDTO.java
|
8ac9129368f0eaace7ebb55d2615d58b44c7c478
|
[] |
no_license
|
kyuhyeok/PetCheeze
|
6ca5bdd260606594811311a2e1b6f932546d531a
|
c443cd88782368699f264932a1956a33e549b0eb
|
refs/heads/master
| 2021-07-24T23:46:20.931850
| 2017-11-03T01:39:24
| 2017-11-03T01:39:24
| 108,070,786
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 2,204
|
java
|
package com.menu;
//CREATE TABLE pd (
// pdcode NUMBER NOT NULL, /* 상품코드 */
// pdname VARCHAR2(50) NOT NULL, /* 상품명 */
// pdimage VARCHAR2(50), /* 이미지 */
// pdmaker VARCHAR2(50), /* 제조사 */
// pdprice NUMBER NOT NULL, /* 가격 */
// pdmil NUMBER, /* 마일리지퍼센트 */
// pdcontent VARCHAR2(2000) NOT NULL, /* 설명 */
// pdtotcnt NUMBER NOT NULL, /* 재고수량 */
// pdkindcode NUMBER NOT NULL /* 상품분류코드 */
// );
//CREATE TABLE pdkind (
// pdkindcode NUMBER /* 상품분류코드 */
// , pdkind VARCHAR2(50) NOT NULL /* 상품분류명 */
// , CONSTRAINT PK_pdkind PRIMARY KEY(pdkindcode)
// );
public class MenuDTO {
private String pdName, pdImage, pdMaker, pdContent, pdNew;
private int pdCode, pdPrice, pdMil, pdTotcnt, pdKindcode, pdKind;
public String getPdNew() {
return pdNew;
}
public void setPdNew(String pdNew) {
this.pdNew = pdNew;
}
public String getPdName() {
return pdName;
}
public void setPdName(String pdName) {
this.pdName = pdName;
}
public String getPdImage() {
return pdImage;
}
public void setPdImage(String pdImage) {
this.pdImage = pdImage;
}
public String getPdMaker() {
return pdMaker;
}
public void setPdMaker(String pdMaker) {
this.pdMaker = pdMaker;
}
public String getPdContent() {
return pdContent;
}
public void setPdContent(String pdContent) {
this.pdContent = pdContent;
}
public int getPdCode() {
return pdCode;
}
public void setPdCode(int pdCode) {
this.pdCode = pdCode;
}
public int getPdPrice() {
return pdPrice;
}
public void setPdPrice(int pdPrice) {
this.pdPrice = pdPrice;
}
public int getPdMil() {
return pdMil;
}
public void setPdMil(int pdMil) {
this.pdMil = pdMil;
}
public int getPdTotcnt() {
return pdTotcnt;
}
public void setPdTotcnt(int pdTotcnt) {
this.pdTotcnt = pdTotcnt;
}
public int getPdKindcode() {
return pdKindcode;
}
public void setPdKindcode(int pdKindcode) {
this.pdKindcode = pdKindcode;
}
public int getPdKind() {
return pdKind;
}
public void setPdKind(int pdKind) {
this.pdKind = pdKind;
}
}
|
[
"user1@user1-PC"
] |
user1@user1-PC
|
8f56d47710999d683b21d47895c2b4aa4e59bd40
|
29feb372a6e42f6843d4d343ad5f09d7f60d1faf
|
/zuul/zuuldemo/src/main/java/com/woniuxy/cloud/zuuldemo/aggregation/UserAndReview.java
|
d3f7ae1317661635f811f50aa21a28aa7ed08880
|
[] |
no_license
|
stickgoal/spring-cloud-tutorial
|
a7be2693de95327ee6750b6a520edbf09ac9edcf
|
95e27112be0b3294cbb93fb841fb9762db224dcc
|
refs/heads/master
| 2020-07-22T15:16:35.135796
| 2019-10-26T13:08:27
| 2019-10-26T13:08:27
| 207,243,599
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 333
|
java
|
package com.woniuxy.cloud.zuuldemo.aggregation;
import java.util.List;
public class UserAndReview extends User{
private List<Review> reviewList;
public List<Review> getReviewList() {
return reviewList;
}
public void setReviewList(List<Review> reviewList) {
this.reviewList = reviewList;
}
}
|
[
"stick.goal@163.com"
] |
stick.goal@163.com
|
7436a677656ab54c4a4e68d30ce65e517d028426
|
d4aa303e72f10bab82ee39ae3f19a5914fe01b58
|
/Sesion 2/src/Redes/HelloServer.java
|
1ea2e08e9809363d7b87861c848fadc15548de88
|
[] |
no_license
|
badillosoft/Java-Avanzado
|
8349db41f391c313a1c52d2d326b60c3ed58210d
|
ff8d57ae401aff7ade6839cf7351694c13c2a672
|
refs/heads/master
| 2021-01-09T20:30:29.329704
| 2016-07-23T16:05:12
| 2016-07-23T16:05:12
| 60,426,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,077
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Redes;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.*;
import java.util.Date;
/**
*
* @author alan
*/
public class HelloServer {
public static void main(String[] args) throws IOException {
try (ServerSocket server = new ServerSocket(13)) {
while (true) {
try (Socket connection = server.accept()) {
System.out.println(connection.toString());
try (Writer out = new OutputStreamWriter(connection.getOutputStream())) {
Date now = new Date();
out.write(String.format("%s\r\n", now.toString()));
}
}
}
}
}
}
|
[
"badillo.soft@hotmail.com"
] |
badillo.soft@hotmail.com
|
bffeca2b785da9c6f35953f4d689110c4f9b5b89
|
e3195c349cd933b9d593a1bf33dbc30671d8d24f
|
/hsweb-authorization/hsweb-authorization-cloud/src/main/java/org/hswebframework/web/authorization/cloud/redis/RedisUserTokenManager.java
|
c8b1e200cc08a068b4c987042530e34d492b2bf6
|
[
"Apache-2.0"
] |
permissive
|
longfeizheng/hsweb-framework
|
e7c7e512417eb45b6f53a960eef89b5229f5872b
|
83f9da757a936840e5b805bc9c7330a25de3cc2e
|
refs/heads/master
| 2021-07-10T00:11:38.701940
| 2017-10-10T15:21:21
| 2017-10-10T15:21:21
| 106,488,662
| 0
| 1
| null | 2017-10-11T01:09:07
| 2017-10-11T01:09:07
| null |
UTF-8
|
Java
| false
| false
| 265
|
java
|
package org.hswebframework.web.authorization.cloud.redis;
import org.hswebframework.web.authorization.token.UserTokenManager;
/**
* TODO 完成注释
*
* @author zhouhao
* @since
*/
public abstract class RedisUserTokenManager implements UserTokenManager {
}
|
[
"zh.sqy@qq.com"
] |
zh.sqy@qq.com
|
250ab63da39797c555afd09a584dbdedd7dc65c8
|
2ef0e89303a58a5dbf064aa4668899106622b9f0
|
/openrest4j-api/src/main/java/com/openrest/v1_1/Viewport.java
|
a46ee6efcfbe2203fbd256181517e0c3840c4137
|
[
"Apache-2.0"
] |
permissive
|
nagyistge/openrest4j
|
86779723eb25a16b9ed46af08af1bd9acd735618
|
2c1a796642552c95d94217295c5192e0901b4c7f
|
refs/heads/master
| 2020-06-12T23:00:07.158509
| 2016-11-27T16:39:35
| 2016-11-27T16:39:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 869
|
java
|
package com.openrest.v1_1;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Viewport implements Serializable {
private static final long serialVersionUID = 1L;
public Viewport(Integer width, Double initialScale, Double maximumScale) {
this.width = width;
this.initialScale = initialScale;
this.maximumScale = maximumScale;
}
/** Default constructor for JSON deserialization. */
public Viewport() {}
@JsonInclude(Include.NON_NULL)
public Integer width;
@JsonInclude(Include.NON_NULL)
public Double initialScale;
@JsonInclude(Include.NON_NULL)
public Double maximumScale;
}
|
[
"dleshem@gmail.com"
] |
dleshem@gmail.com
|
937e5f7418cb04ab2dfba40d1e4eeeee54191d2e
|
b2d7b0517bc16e6a0cf281b1424178413b55b947
|
/java-basic/src/main/java/ch22/g/Test2_1.java
|
dad34099f107ed9a4c91d630599032142a9ee342
|
[] |
no_license
|
gwanghosong/bitcamp-java-2018-12
|
5ea3035c1beb5b9ce7c5348503daf5ed72304dc9
|
8782553c4505c5943db0009b6a2ebf742c84e38c
|
refs/heads/master
| 2021-08-06T20:30:07.181054
| 2019-06-26T16:18:50
| 2019-06-26T16:18:50
| 163,650,672
| 0
| 0
| null | 2020-04-30T06:28:29
| 2018-12-31T08:00:40
|
Java
|
UTF-8
|
Java
| false
| false
| 1,053
|
java
|
// Serialize - private 인스턴스 필드의 값을 출력하기
package ch22.g;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
public class Test2_1 {
public static void main(String[] args) {
try (ObjectOutputStream out = new ObjectOutputStream(
new FileOutputStream("score2.data"))) {
Score2 score = new Score2();
score.setName("홍길동");
score.setKor(100);
score.setEng(100);
score.setMath(100);
score.setSum(score.getKor() + score.getEng() + score.getMath());
score.setAver(score.getSum() / 3f);
// 인스턴스 출력하기
// 필드가 접근 범위가 private이라도 상관없이 serialize 된다.
// serialize는 setter/getter의 존재여부와 상관없다.
out.writeObject(score);
// Score1 클래스는 java.io.Serializable을 구현하지 않았기 때문에
// writeObject()를 사용할 수 없다.
System.out.println("출력 완료!");
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
"gwanghosong91@gmail.com"
] |
gwanghosong91@gmail.com
|
f9c0228d2f1bd62e109e62ad34043b8b8519cb3e
|
3e9dd3298b85ab9b081117eb9c88032715ce13cf
|
/foc/src/com/foc/formula/PropertyFormulaGuiBrowsePanel.java
|
5cbc2961eb323963b12ec1de5674c1db92d7bfed
|
[
"Apache-2.0"
] |
permissive
|
focframework/framework
|
d0a151755f14a04b4a72a562b22f6bad83fe8836
|
6d07b694e7713d27b95f0ca69e2ec3c056969054
|
refs/heads/master
| 2020-05-30T16:48:32.505610
| 2019-05-30T07:38:36
| 2019-05-30T07:38:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,366
|
java
|
package com.foc.formula;
import com.foc.desc.FocDesc;
import com.foc.gui.FListPanel;
import com.foc.gui.FPanel;
import com.foc.gui.FValidationPanel;
import com.foc.gui.table.FTableView;
import com.foc.list.FocList;
@SuppressWarnings("serial")
public class PropertyFormulaGuiBrowsePanel extends FPanel {
public PropertyFormulaGuiBrowsePanel(FocList list, int viewID){
super("Property Formulas", FPanel.FILL_NONE);
FocDesc desc = PropertyFormulaDesc.getInstance();
FListPanel selectionPanel = null;
if (desc != null) {
if(list == null){
list = PropertyFormulaDesc.getList(FocList.LOAD_IF_NEEDED);
}else{
list.loadIfNotLoadedFromDB();
}
selectionPanel = new FListPanel(list);
FTableView tableView = selectionPanel.getTableView();
tableView.addColumn(desc, PropertyFormulaDesc.FLD_FIELD_NAME, true);
tableView.addColumn(desc, PropertyFormulaDesc.FLD_EXPRESSION, true);
selectionPanel.construct();
selectionPanel.showEditButton(false);
selectionPanel.showDuplicateButton(false);
selectionPanel.requestFocusOnCurrentItem();
}
add(selectionPanel, 0, 0);
FValidationPanel savePanel = showValidationPanel(true);
if (savePanel != null) {
savePanel.addSubject(list);
}
}
}
|
[
"antoine.samaha@01barmaja.com"
] |
antoine.samaha@01barmaja.com
|
cff9fdffcd9eef94c5f7d9e9591bd1efc878d37b
|
54f352a242a8ad6ff5516703e91da61e08d9a9e6
|
/Source Codes/AtCoder/abc041/A/4223366.java
|
8b73a6eb46f2c572eded8f0ee2d4b0228794759a
|
[] |
no_license
|
Kawser-nerd/CLCDSA
|
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
|
aee32551795763b54acb26856ab239370cac4e75
|
refs/heads/master
| 2022-02-09T11:08:56.588303
| 2022-01-26T18:53:40
| 2022-01-26T18:53:40
| 211,783,197
| 23
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,985
|
java
|
import java.io.IOException;
import java.util.NoSuchElementException;
public class Main{
public static void main(String args[])throws Exception{
FastScanner sc= new FastScanner();
String S = sc.next();
int i = sc.nextInt();
System.out.println(S.charAt(i-1));
}
}
class FastScanner {
private final java.io.InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
public boolean hasNext() { skipUnprintable(); return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b)){
return (minus ? -n : n);
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b)){
return (int) (minus ? -n : n);
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
}
|
[
"kwnafi@yahoo.com"
] |
kwnafi@yahoo.com
|
926a6ec5dc778668555b55b72de0087c016f0436
|
f257d161c22116f933a1002ccf03ac7eb6427be9
|
/app/src/main/java/com/wallet/bo/wallets/pojo/IndexOrderInfo.java
|
377b5cfe514cb24128df178c15c8ce6e73722f1e
|
[] |
no_license
|
lifuyuan123/Walletes
|
98bb34f29d737fc38b4709dd14fd9b3f764f021f
|
964a199e7595bf5984006e8640981f85668ac4d6
|
refs/heads/master
| 2021-04-26T22:20:10.444064
| 2018-03-06T13:01:46
| 2018-03-06T13:01:46
| 123,859,463
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,885
|
java
|
package com.wallet.bo.wallets.pojo;
/**
* author:ggband
* data:2017/10/24 002413:40
* email:ggband520@163.com
* desc:
*/
public class IndexOrderInfo {
private Integer BorrowState;//0/1判断是借款(0)还是还款(1)
private Integer OrderExpirationDate;//产品有效期
private String loan;//借款期限
private String make_loans_time;//贷款时间
private String money;//还款金额
private String number;//借款单号
public Integer getBorrowState() {
return BorrowState;
}
public void setBorrowState(Integer borrowState) {
BorrowState = borrowState;
}
public Integer getOrderExpirationDate() {
return OrderExpirationDate;
}
public void setOrderExpirationDate(Integer orderExpirationDate) {
OrderExpirationDate = orderExpirationDate;
}
public String getLoan() {
return loan;
}
public void setLoan(String loan) {
this.loan = loan;
}
public String getMake_loans_time() {
return make_loans_time;
}
public void setMake_loans_time(String make_loans_time) {
this.make_loans_time = make_loans_time;
}
public String getMoney() {
return money;
}
public void setMoney(String money) {
this.money = money;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
@Override
public String toString() {
return "LoanRepayBean{" +
"BorrowState=" + BorrowState +
", OrderExpirationDate='" + OrderExpirationDate + '\'' +
", loan='" + loan + '\'' +
", make_loans_time='" + make_loans_time + '\'' +
", money='" + money + '\'' +
", number='" + number + '\'' +
'}';
}
}
|
[
"446960231@qq.com"
] |
446960231@qq.com
|
75c401dd71d174e95cd0a355d755fa8c5cdbc0bd
|
fe06f97c2cf33a8b4acb7cb324b79a6cb6bb9dac
|
/java/po/impl/FTZC_AP/UserActionPo.java
|
f7f3493774595f0dae32f8644f136c192481892a
|
[] |
no_license
|
HeimlichLin/TableSchema
|
3f67dae0b5b169ee3a1b34837ea9a2d34265f175
|
64b66a2968c3a169b75d70d9e5cf75fa3bb65354
|
refs/heads/master
| 2023-02-11T09:42:47.210289
| 2023-02-01T02:58:44
| 2023-02-01T02:58:44
| 196,526,843
| 0
| 0
| null | 2022-06-29T18:53:55
| 2019-07-12T07:03:58
|
Java
|
UTF-8
|
Java
| false
| false
| 3,731
|
java
|
package com.doc.common.po.impl;
public class UserActionPo implements IUserActionPo {
public enum COLUMNS {
USER_ID("使用者帳號"), //
BOND_NO("業者監管編號"), //
STARTDATE("進入日期"), //
ENDDATE("結束日期"), //
STARTTIME("進入時間"), //
ENDTIME("結束時間"), //
IP("IP"), //
URL("URL"), //
ATTRIBUTE("參數"), //
DECLNO("報單號碼"), //
MESSAGE("訊息"), //
CLASSNAME("呼叫CLASS"), //
METHOD("呼叫方法"), //
STATUS("1:正常 2.異常"), //
RETURN_ACTION("回傳值Actin"), //
ACTIONNAME("ActionName") //
;
private final String comment;
private COLUMNS(final String comment) {
this.comment = comment;
}
public String getComment() {
return this.comment;
}
}
private String userId;
private String bondNo;
private String startdate;
private String enddate;
private String starttime;
private String endtime;
private String ip;
private String url;
private String attribute;
private String declno;
private String message;
private String classname;
private String method;
private String status;
private String returnAction;
private String actionname;
@Override
public String getUserId() {
return this.userId;
}
@Override
public void setUserId(final String userId) {
this.userId = userId;
}
@Override
public String getBondNo() {
return this.bondNo;
}
@Override
public void setBondNo(final String bondNo) {
this.bondNo = bondNo;
}
@Override
public String getStartdate() {
return this.startdate;
}
@Override
public void setStartdate(final String startdate) {
this.startdate = startdate;
}
@Override
public String getEnddate() {
return this.enddate;
}
@Override
public void setEnddate(final String enddate) {
this.enddate = enddate;
}
@Override
public String getStarttime() {
return this.starttime;
}
@Override
public void setStarttime(final String starttime) {
this.starttime = starttime;
}
@Override
public String getEndtime() {
return this.endtime;
}
@Override
public void setEndtime(final String endtime) {
this.endtime = endtime;
}
@Override
public String getIp() {
return this.ip;
}
@Override
public void setIp(final String ip) {
this.ip = ip;
}
@Override
public String getUrl() {
return this.url;
}
@Override
public void setUrl(final String url) {
this.url = url;
}
@Override
public String getAttribute() {
return this.attribute;
}
@Override
public void setAttribute(final String attribute) {
this.attribute = attribute;
}
@Override
public String getDeclno() {
return this.declno;
}
@Override
public void setDeclno(final String declno) {
this.declno = declno;
}
@Override
public String getMessage() {
return this.message;
}
@Override
public void setMessage(final String message) {
this.message = message;
}
@Override
public String getClassname() {
return this.classname;
}
@Override
public void setClassname(final String classname) {
this.classname = classname;
}
@Override
public String getMethod() {
return this.method;
}
@Override
public void setMethod(final String method) {
this.method = method;
}
@Override
public String getStatus() {
return this.status;
}
@Override
public void setStatus(final String status) {
this.status = status;
}
@Override
public String getReturnAction() {
return this.returnAction;
}
@Override
public void setReturnAction(final String returnAction) {
this.returnAction = returnAction;
}
@Override
public String getActionname() {
return this.actionname;
}
@Override
public void setActionname(final String actionname) {
this.actionname = actionname;
}
}
|
[
"jerry.l@acer.com"
] |
jerry.l@acer.com
|
d93e250580b1b2ea65b9c17718e7d8b272a895b1
|
4fc2858a02172926fd24459305ce481cdd324a40
|
/algorithm-leetcode-master/src/Problem_0523_连续的子数组和.java
|
1e5c9856d8af41bbd227b726ecc5dbb3233663a6
|
[] |
no_license
|
qqxqqbot/algorithmzuo
|
ecb3fd4505862d3d6e8bfd8955778a7152c77960
|
ef76cb207cc490d0aa34590ab57821c0b6063c90
|
refs/heads/master
| 2023-05-08T09:42:17.244171
| 2021-06-06T11:06:26
| 2021-06-06T11:06:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,230
|
java
|
import java.util.HashMap;
/**
* @author cuilihuan
* @data 2021/3/20 9:44
*/
public class Problem_0523_连续的子数组和 {
public static void main(String[] args) {
System.out.println(new Problem_0523_连续的子数组和().checkSubarraySum(new int[]{23, 2, 4, 0, 0}, 0));
}
public boolean checkSubarraySum(int[] nums, int k) {
if (nums == null || nums.length == 0)
return false;
HashMap<Integer, Integer> map = new HashMap<>();
map.put(0, -1);
int sum = 0;
for (int i = 0; i < nums.length; i++) {
sum += nums[i];
if(k != 0)
sum = sum % k;
if(map.containsKey(sum)){
if(i - map.get(sum) > 1)
return true;
}else
map.put(sum, i);
}
return false;
}
// O(n2) 可以通过 当然这个还有O(n)的时间复杂度 在这里后面会补充 利用余数的特必
public boolean checkSubarraySum1(int[] nums, int k) {
if (nums == null || nums.length == 0)
return false;
// if (k == 0 && zeroNums(nums) >= 2)
// return false;
int[] res = new int[nums.length];
for (int i = 0; i < nums.length; i++) {
res[i] = (i != 0 ? res[i - 1] : 0) + nums[i];
}
for (int i = 0; i < nums.length; i++) {
for (int j = i + 1; j < nums.length; j++) {
int pre = 0;
if (i != 0)
pre = res[i - 1];
if (k == 0) {
if ((res[j] - pre == 0))
return true;
} else if ((res[j] - pre) % k == 0)
return true;
}
}
return false;
}
private int zeroNums(int[] nums) {
int count = 0;
for (int i = 0; i < nums.length; i++) {
if (nums[i] == 0)
count++;
}
return count;
}
}
|
[
"1738127840@qq.com"
] |
1738127840@qq.com
|
ea45bfdb313842fceea652266b894112ab785e40
|
1b0944c9c4c49a8e345ce976130d3dee35767126
|
/reladomo/src/test/java/com/gs/fw/common/mithra/test/domain/DatedAllTypesInterface.java
|
6289367791c1a6d7401def3362de79f0a42af422
|
[
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain"
] |
permissive
|
PunithReventh/reladomo
|
9899790237ddd35154f524cf28980b334d4b6b98
|
9bf13d6b9e2b24e8c88bc51f22ce0c733099c5ae
|
refs/heads/master
| 2022-12-08T21:17:11.234735
| 2020-08-02T22:13:58
| 2020-08-02T22:13:58
| 289,004,364
| 0
| 0
|
Apache-2.0
| 2020-08-20T12:46:49
| 2020-08-20T12:46:48
| null |
UTF-8
|
Java
| false
| false
| 3,384
|
java
|
/*
Copyright 2016 Goldman Sachs.
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.gs.fw.common.mithra.test.domain;
import com.gs.fw.common.mithra.util.Time;
import java.sql.Timestamp;
import java.util.Date;
public interface DatedAllTypesInterface
{
void setBooleanValue(boolean b);
void setByteValue(byte b);
void setShortValue(short i);
void setCharValue(char c);
void setIntValue(int s);
void setLongValue(long s);
void setFloatValue(float s);
void setDoubleValue(double s);
void setStringValue(String mappingName);
void setTimestampValue(Timestamp timestamp);
void setDateValue(Date date);
void setTimeValue(Time time);
void setByteArrayValue(byte[] bytes);
void setNullableByteValue(byte b);
void setNullableShortValue(short i);
void setNullableCharValue(char c);
void setNullableIntValue(int s);
void setNullableLongValue(long s);
void setNullableFloatValue(float s);
void setNullableDoubleValue(double s);
void setNullableStringValue(String mappingName);
void setNullableTimestampValue(Timestamp timestamp);
void setNullableDateValue(Date date);
void setNullableTimeValue(Time time);
void setNullableByteArrayValue(byte[] bytes);
boolean isBooleanValue();
byte getByteValue();
short getShortValue();
char getCharValue();
int getIntValue();
long getLongValue();
float getFloatValue();
double getDoubleValue();
String getStringValue();
Timestamp getTimestampValue();
Date getDateValue();
byte[] getByteArrayValue();
byte getNullableByteValue();
short getNullableShortValue();
char getNullableCharValue();
int getNullableIntValue();
long getNullableLongValue();
float getNullableFloatValue();
double getNullableDoubleValue();
String getNullableStringValue();
Timestamp getNullableTimestampValue();
Date getNullableDateValue();
byte[] getNullableByteArrayValue();
boolean isNullableByteValueNull();
boolean isNullableShortValueNull();
boolean isNullableCharValueNull();
boolean isNullableIntValueNull();
boolean isNullableLongValueNull();
boolean isNullableFloatValueNull();
boolean isNullableDoubleValueNull();
void insert();
void setId(int i);
DatedAllTypesInterface getNonPersistentCopy();
void copyNonPrimaryKeyAttributesFrom(DatedAllTypesInterface allTypes2);
DatedAllTypesInterface getDetachedCopy();
void setNullablePrimitiveAttributesToNull();
DatedAllTypesInterface copyDetachedValuesToOriginalOrInsertIfNew();
void copyNonPrimaryKeyAttributesUntilFrom(DatedAllTypesInterface allTypes4, Timestamp timestamp);
}
|
[
"mohammad.rezaei@gs.com"
] |
mohammad.rezaei@gs.com
|
0f572c2e709f13b3ecd49e1c0fdcb624b2bfda03
|
8cdcae496fb28f65cb0840a8e3aee151b9183116
|
/demo-core/src/net/mgsx/game/examples/platformer/screens/SubLevelScreen.java
|
da81bc1f9f975583ce8c7146533bc41291fed867
|
[
"Apache-2.0"
] |
permissive
|
mgsx-dev/gdx-kit
|
73f7407f8fa6c1aed4e81a77fee7f67e02d595fe
|
43d1bcb612d595a3cf2a1862db72f05de97b6fe2
|
refs/heads/master
| 2023-08-25T02:06:59.062034
| 2021-09-30T14:24:53
| 2021-09-30T14:24:53
| 70,582,919
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 421
|
java
|
package net.mgsx.game.examples.platformer.screens;
import com.badlogic.gdx.assets.AssetManager;
import net.mgsx.game.core.GameRegistry;
import net.mgsx.game.core.GameScreen;
import net.mgsx.game.core.screen.ScreenManager;
public class SubLevelScreen extends GameScreen
{
public SubLevelScreen(ScreenManager screenManager, AssetManager assets, GameRegistry registry) {
super(screenManager, assets, registry);
}
}
|
[
"germain.aubert@gmail.com"
] |
germain.aubert@gmail.com
|
46c0555315542ee8a2dd4f2eeebfa4190f47efed
|
2e9a86693b665b879c59b14dfd63c2c92acbf08a
|
/webconverter/decomiledJars/rt/com/sun/xml/internal/org/jvnet/mimepull/Chunk.java
|
9dc89efb5c6562b15ab7678e00e6b8fd7b1c3d5c
|
[] |
no_license
|
shaikgsb/webproject-migration-code-java
|
9e2271255077025111e7ea3f887af7d9368c6933
|
3b17211e497658c61435f6c0e118b699e7aa3ded
|
refs/heads/master
| 2021-01-19T18:36:42.835783
| 2017-07-13T09:11:05
| 2017-07-13T09:11:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 392
|
java
|
package com.sun.xml.internal.org.jvnet.mimepull;
import java.nio.ByteBuffer;
final class Chunk
{
volatile Chunk next;
volatile Data data;
public Chunk(Data paramData)
{
this.data = paramData;
}
public Chunk createNext(DataHead paramDataHead, ByteBuffer paramByteBuffer)
{
return this.next = new Chunk(this.data.createNext(paramDataHead, paramByteBuffer));
}
}
|
[
"Subbaraju.Gadiraju@Lnttechservices.com"
] |
Subbaraju.Gadiraju@Lnttechservices.com
|
3d77af893f2ed59f58b6983289f6cc240cbf3179
|
eb8f0fad66bcf761ad12b642029b9fa9012a4fbe
|
/mcp-kpt/src/main/java/com/mcp/kpt/validator/ZsiFsValidator.java
|
b04eeafb8006090068996953a4192c47bdcc70a8
|
[] |
no_license
|
zhoudaqing/mcp
|
29315afc5661cd355ade87c7779988c0660accd2
|
13197aadc65ebd330c47a1d2f2b2b251726134f0
|
refs/heads/master
| 2021-01-20T05:36:55.296631
| 2015-03-10T07:49:17
| 2015-03-10T07:49:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,011
|
java
|
package com.mcp.kpt.validator;
import com.mcp.core.util.MathUtil;
import com.mcp.kpt.common.KptConstants;
import com.mcp.order.exception.CoreException;
import com.mcp.order.exception.ErrCode;
import com.mcp.order.util.LotteryUtil;
import org.apache.log4j.Logger;
public class ZsiFsValidator extends KptValidator {
public static Logger log = Logger.getLogger(ZsiFsValidator.class);
@Override
public int validator(String numbers) throws CoreException {
if(!numbers.matches("^\\d{2}(,\\d{2}){4,12}$"))
{
throw new CoreException(ErrCode.E2033, ErrCode.codeToMsg(ErrCode.E2033));
}
String[] numStrArray = numbers.split(LotteryUtil.FUSHI_REG_SEP);
int[] numIntArray = LotteryUtil.getIntArrayFromStrArray(numStrArray);
LotteryUtil.checkSortFromMinToMax(numIntArray);
LotteryUtil.checkMargin(numIntArray, KptConstants.MAX, KptConstants.MIN);
return MathUtil.getC(numIntArray.length, 4);
}
}
|
[
"limiteemail@163.com"
] |
limiteemail@163.com
|
e7978c7a368e480c5c3d959cc4ba806cb578be42
|
5b27dae1efe7dcfce9348139aae54cbefb6c736b
|
/src/main/java/me/porcelli/nio/jgit/impl/op/commands/SyncRemote.java
|
ac1b5347e9ed829f8cf8902a8d120842fcc8a137
|
[
"Apache-2.0"
] |
permissive
|
porcelli/jgit-nio2
|
ed63ce527622ef120aa3feba1ee512a0523a5f8c
|
ba68f5c32a388cf63fbed571f14bc7a85396c0cc
|
refs/heads/master
| 2021-06-25T18:05:58.913277
| 2020-01-20T15:43:11
| 2020-01-20T15:43:11
| 222,013,709
| 0
| 1
|
Apache-2.0
| 2021-04-26T19:41:42
| 2019-11-15T22:31:01
|
Java
|
UTF-8
|
Java
| false
| false
| 4,718
|
java
|
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 me.porcelli.nio.jgit.impl.op.commands;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import me.porcelli.nio.jgit.impl.op.GitImpl;
import org.eclipse.jgit.api.CreateBranchCommand;
import org.eclipse.jgit.api.ListBranchCommand;
import org.eclipse.jgit.api.errors.InvalidRemoteException;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Ref;
public class SyncRemote {
private final GitImpl git;
private final Map.Entry<String, String> remote;
public SyncRemote(final GitImpl git,
final Map.Entry<String, String> remote) {
this.git = git;
this.remote = remote;
}
public Optional execute() throws InvalidRemoteException {
try {
final List<Ref> branches = git._branchList().setListMode(ListBranchCommand.ListMode.ALL).call();
final Set<String> remoteBranches = new HashSet<>();
final Set<String> localBranches = new HashSet<>();
fillBranches(branches, remoteBranches, localBranches);
/*
* We filter out HEAD below because otherwise it appears
* as a branch in the UI importing repositories.
*
* We may need to revisit this in the future when we support
* mirror repositories.
*/
for (final String localBranch : localBranches) {
if (localBranch.equals(Constants.HEAD)) {
continue;
}
if (remoteBranches.contains(localBranch)) {
try {
git._branchCreate()
.setName(localBranch)
.setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.SET_UPSTREAM)
.setStartPoint(remote.getKey() + "/" + localBranch)
.setForce(true)
.call();
} catch (Throwable t) {
throw new RuntimeException("Error creating branch [" + localBranch + "].");
}
}
}
remoteBranches.removeAll(localBranches);
for (final String branch : remoteBranches) {
if (branch.equals(Constants.HEAD)) {
continue;
}
try {
git._branchCreate()
.setName(branch)
.setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.SET_UPSTREAM)
.setStartPoint(remote.getKey() + "/" + branch)
.setForce(true)
.call();
} catch (Throwable t) {
throw new RuntimeException("Error creating branch [" + branch + "].");
}
}
return null;
} catch (final InvalidRemoteException e) {
throw e;
} catch (final RuntimeException re) {
throw re;
} catch (final Exception ex) {
throw new RuntimeException(ex);
}
}
void fillBranches(final List<Ref> branches,
final Collection<String> remoteBranches,
final Collection<String> localBranches) {
for (final Ref branch : branches) {
final String branchFullName = branch.getName();
final String remotePrefix = "refs/remotes/" + remote.getKey() + "/";
final String localPrefix = "refs/heads/";
if (branchFullName.startsWith(remotePrefix)) {
remoteBranches.add(branchFullName.replaceFirst(remotePrefix, ""));
} else if (branchFullName.startsWith(localPrefix)) {
localBranches.add(branchFullName.replaceFirst(localPrefix, ""));
} else {
localBranches.add(branchFullName.substring(branchFullName.lastIndexOf("/") + 1));
}
}
}
}
|
[
"alexandre.porcelli@gmail.com"
] |
alexandre.porcelli@gmail.com
|
1ad72829ad709c6e30152bf619446a76547eaf99
|
1cb952fbafd542e0addfc51551232d0b7df75418
|
/tm_old/sanandreasp/mods/TurretMod3/registry/TurretUpgrades/TUpgTurretCollect.java
|
626ac0cdf4754b064be7f4596699e6bdbe94daea
|
[] |
no_license
|
TheNordicBuilder/TurretModv3
|
4e9c1be114c6780e8f78a05e2054b0b40a60b4d4
|
46419f347e91d79b6c4ceb99393ab0341f646428
|
refs/heads/master
| 2020-12-11T03:33:00.555841
| 2014-09-04T07:09:35
| 2014-09-04T07:09:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,371
|
java
|
package sanandreasp.mods.TurretMod3.registry.TurretUpgrades;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_Base;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T1Arrow;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T1Shotgun;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T2Minigun;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T2Revolver;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T3Flamethrower;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T3Laser;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T4FLAK;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T4Sniper;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T5Artillery;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_T5Railgun;
import sanandreasp.mods.TurretMod3.entity.turret.EntityTurret_TSCollector;
import sanandreasp.mods.TurretMod3.registry.TM3ModRegistry;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class TUpgTurretCollect extends TurretUpgrades {
public TUpgTurretCollect() {
this.upgName = "turretmod3.upgrades.nameTCollect";
this.upgDesc = "turretmod3.upgrades.descTCollect";
this.upgItem = new ItemStack(TM3ModRegistry.httm);
this.turrets.add(EntityTurret_TSCollector.class);
}
}
|
[
"1294@live.de"
] |
1294@live.de
|
1ac502a3fbd33a106577ee0259a45a8ee9d011ff
|
f0568343ecd32379a6a2d598bda93fa419847584
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201306/Placement.java
|
add2b16aed79b97840becaaebe3689833198761d
|
[
"Apache-2.0"
] |
permissive
|
frankzwang/googleads-java-lib
|
bd098b7b61622bd50352ccca815c4de15c45a545
|
0cf942d2558754589a12b4d9daa5902d7499e43f
|
refs/heads/master
| 2021-01-20T23:20:53.380875
| 2014-07-02T19:14:30
| 2014-07-02T19:14:30
| 21,526,492
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,150
|
java
|
package com.google.api.ads.dfp.jaxws.v201306;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* A {@code Placement} groups related {@code AdUnit} objects.
*
*
* <p>Java class for Placement complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Placement">
* <complexContent>
* <extension base="{https://www.google.com/apis/ads/publisher/v201306}SiteTargetingInfo">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="placementCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="status" type="{https://www.google.com/apis/ads/publisher/v201306}InventoryStatus" minOccurs="0"/>
* <element name="isAdSenseTargetingEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="isAdPlannerTargetingEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="adSenseTargetingLocale" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="targetedAdUnitIds" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="lastModifiedDateTime" type="{https://www.google.com/apis/ads/publisher/v201306}DateTime" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Placement", propOrder = {
"id",
"name",
"description",
"placementCode",
"status",
"isAdSenseTargetingEnabled",
"isAdPlannerTargetingEnabled",
"adSenseTargetingLocale",
"targetedAdUnitIds",
"lastModifiedDateTime"
})
public class Placement
extends SiteTargetingInfo
{
protected Long id;
protected String name;
protected String description;
protected String placementCode;
protected InventoryStatus status;
protected Boolean isAdSenseTargetingEnabled;
protected Boolean isAdPlannerTargetingEnabled;
protected String adSenseTargetingLocale;
protected List<String> targetedAdUnitIds;
protected DateTime lastModifiedDateTime;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(Long value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the placementCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPlacementCode() {
return placementCode;
}
/**
* Sets the value of the placementCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPlacementCode(String value) {
this.placementCode = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link InventoryStatus }
*
*/
public InventoryStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link InventoryStatus }
*
*/
public void setStatus(InventoryStatus value) {
this.status = value;
}
/**
* Gets the value of the isAdSenseTargetingEnabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsAdSenseTargetingEnabled() {
return isAdSenseTargetingEnabled;
}
/**
* Sets the value of the isAdSenseTargetingEnabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsAdSenseTargetingEnabled(Boolean value) {
this.isAdSenseTargetingEnabled = value;
}
/**
* Gets the value of the isAdPlannerTargetingEnabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsAdPlannerTargetingEnabled() {
return isAdPlannerTargetingEnabled;
}
/**
* Sets the value of the isAdPlannerTargetingEnabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsAdPlannerTargetingEnabled(Boolean value) {
this.isAdPlannerTargetingEnabled = value;
}
/**
* Gets the value of the adSenseTargetingLocale property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdSenseTargetingLocale() {
return adSenseTargetingLocale;
}
/**
* Sets the value of the adSenseTargetingLocale property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAdSenseTargetingLocale(String value) {
this.adSenseTargetingLocale = value;
}
/**
* Gets the value of the targetedAdUnitIds property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the targetedAdUnitIds property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTargetedAdUnitIds().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getTargetedAdUnitIds() {
if (targetedAdUnitIds == null) {
targetedAdUnitIds = new ArrayList<String>();
}
return this.targetedAdUnitIds;
}
/**
* Gets the value of the lastModifiedDateTime property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getLastModifiedDateTime() {
return lastModifiedDateTime;
}
/**
* Sets the value of the lastModifiedDateTime property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setLastModifiedDateTime(DateTime value) {
this.lastModifiedDateTime = value;
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
d6e099a66c2bf667ee86af49eda63955f4c3d4ce
|
3a58e9771d6e267526d6faefc88594ea11f03c26
|
/src/main/java/imic/Buoi2/App2.java
|
213f01dbbd97a05e2e39dce732a23314f6447e17
|
[] |
no_license
|
nguyentuan3525/IMIC_JAVA
|
df7ae123574bd06d140dc924f4249349a355ee0a
|
0c6e6e21fe9b02cc77de15cbe6dc07a214b96852
|
refs/heads/master
| 2020-05-02T14:01:39.480852
| 2019-03-27T13:34:13
| 2019-03-27T13:34:13
| 177,999,113
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 458
|
java
|
package imic.Buoi2;
/**
* Hello world!
*
*/
public class App2
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
System.out.println( "Hello World!" );
System.out.println( "Hello World!" );
System.out.println( "Hello World!" );
System.out.println( "Hello World!" );
}
public static int tinhTong(int a, int b)
{
return a + b;
}
}
|
[
"none@none"
] |
none@none
|
6ae3d79e6d125d928fbb1d489aa3da81f1f964d4
|
c565f6777a881dbb87a501ce78dca62a3d92d953
|
/app/src/main/java/com/mediatek/factorymode/sensor/MSensor.java
|
8717b8ecbc306e643aab2fb0c0e34fefb680bff3
|
[] |
no_license
|
SinceLiu/FactoryMode
|
5d685adb8155aa32fe5a4cf889ba33eab9bff35c
|
2b8e44c6a1cb502892b40e87c51b336ffc46e98f
|
refs/heads/master
| 2020-04-07T12:46:15.742513
| 2018-11-20T11:41:01
| 2018-11-20T11:41:01
| 158,380,478
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,276
|
java
|
package com.mediatek.factorymode.sensor;
import com.mediatek.factorymode.AppDefine;
import com.mediatek.factorymode.R;
import com.mediatek.factorymode.TestActivity;
import com.mediatek.factorymode.Utils;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.hardware.SensorListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
@SuppressWarnings("deprecation")
public class MSensor extends TestActivity implements SensorListener {
private ImageView mImgCompass = null;
private TextView mOrientText = null;
private TextView mOrientValue = null;
private SensorManager mSm = null;
private RotateAnimation mMyAni = null;
private float mDegressQuondam = 0.0f;
private SharedPreferences mSp;
private Button mBtOk;
private Button mBtFailed;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.msensor);
mSp = getSharedPreferences("FactoryMode", Context.MODE_PRIVATE);
mOrientText = (TextView) findViewById(R.id.OrientText);
mImgCompass = (ImageView) findViewById(R.id.ivCompass);
mOrientValue = (TextView) findViewById(R.id.OrientValue);
mBtOk = (Button) findViewById(R.id.msensor_bt_ok);
mBtOk.setOnClickListener(cl);
mBtFailed = (Button) findViewById(R.id.msensor_bt_failed);
mBtFailed.setOnClickListener(cl);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
@Override
public void onStart() {
super.onStart();
mSm = (SensorManager) getSystemService(SENSOR_SERVICE);
}
@Override
protected void onResume() {
super.onResume();
mSm.registerListener(this, SensorManager.SENSOR_ORIENTATION, SensorManager.SENSOR_DELAY_FASTEST);
}
@Override
protected void onStop() {
mSm.unregisterListener(this);
super.onStop();
}
public void onDestroy() {
mSm.unregisterListener(this);
super.onDestroy();
}
private void AniRotateImage(float fDegress) {
if (Math.abs(fDegress - mDegressQuondam) < 1) {
return;
}
mMyAni = new RotateAnimation(mDegressQuondam, fDegress, Animation.RELATIVE_TO_SELF, 0.5f,
Animation.RELATIVE_TO_SELF, 0.5f);
mMyAni.setDuration(200);
mMyAni.setFillAfter(true);
mImgCompass.startAnimation(mMyAni);
mDegressQuondam = fDegress;
}
public void onSensorChanged(int sensor, float[] values) {
synchronized (this) {
if (sensor == SensorManager.SENSOR_ORIENTATION) {
if (null == mOrientText || null == mOrientValue || null == mImgCompass) {
return;
}
if (Math.abs(values[0] - mDegressQuondam) < 1) {
return;
}
switch ((int) values[0]) {
case 0: // North
mOrientText.setText(R.string.MSensor_North);
break;
case 90: // East
mOrientText.setText(R.string.MSensor_East);
break;
case 180: // South
mOrientText.setText(R.string.MSensor_South);
break;
case 270: // West
mOrientText.setText(R.string.MSensor_West);
break;
default: {
int v = (int) values[0];
if (v > 0 && v < 90) {
mOrientText.setText(getString(R.string.MSensor_north_east) + v);
}
if (v > 90 && v < 180) {
v = 180 - v;
mOrientText.setText(getString(R.string.MSensor_south_east) + v);
}
if (v > 180 && v < 270) {
v = v - 180;
mOrientText.setText(getString(R.string.MSensor_south_west) + v);
}
if (v > 270 && v < 360) {
v = 360 - v;
mOrientText.setText(getString(R.string.MSensor_north_west) + v);
}
}
}
mOrientValue.setText(String.valueOf(values[0]));
if (mDegressQuondam != -values[0])
AniRotateImage(-values[0]);
}
}
}
@Override
public void onAccuracyChanged(int sensor, int accuracy) {
}
private View.OnClickListener cl = new View.OnClickListener() {
@Override
public void onClick(View v) {
Utils.SetPreferences(getApplicationContext(), mSp, R.string.msensor_name,
(v.getId() == mBtOk.getId()) ? AppDefine.FT_SUCCESS : AppDefine.FT_FAILED);
finish();
}
};
}
|
[
"lxx@readboy.com"
] |
lxx@readboy.com
|
a6e7a98dbe735b7f44a0ffae99730227fd07045d
|
d1f95baefdbe6393467767788fb9e710a13f4869
|
/src/test/java/com/alibaba/druid/bvt/sql/mysql/MySqlCreateTableTest41.java
|
32c703e37c52cde9b772e69fc9085608fd69c968
|
[] |
no_license
|
jilen/druid
|
19cec538ba655ddde455ad7e63af45fad3ff94df
|
0da4c693d3e1aa3d5506089887ee013964cce0bf
|
refs/heads/master
| 2021-01-18T18:55:57.735649
| 2013-06-27T07:03:41
| 2013-06-27T07:03:41
| 11,017,656
| 9
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,656
|
java
|
/*
* Copyright 1999-2011 Alibaba Group Holding Ltd.
*
* 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.druid.bvt.sql.mysql;
import java.util.List;
import org.junit.Assert;
import com.alibaba.druid.sql.MysqlTest;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlSchemaStatVisitor;
import com.alibaba.druid.stat.TableStat;
public class MySqlCreateTableTest41 extends MysqlTest {
public void test_0() throws Exception {
String sql = "CREATE TABLE tk (col1 INT, col2 CHAR(5), col3 DATE)" + //
" PARTITION BY LINEAR KEY(col3)" + //
" PARTITIONS 5;"; //
MySqlStatementParser parser = new MySqlStatementParser(sql);
List<SQLStatement> statementList = parser.parseStatementList();
SQLStatement stmt = statementList.get(0);
print(statementList);
Assert.assertEquals(1, statementList.size());
MySqlSchemaStatVisitor visitor = new MySqlSchemaStatVisitor();
stmt.accept(visitor);
System.out.println("Tables : " + visitor.getTables());
System.out.println("fields : " + visitor.getColumns());
System.out.println("coditions : " + visitor.getConditions());
System.out.println("orderBy : " + visitor.getOrderByColumns());
Assert.assertEquals(1, visitor.getTables().size());
Assert.assertEquals(3, visitor.getColumns().size());
Assert.assertEquals(0, visitor.getConditions().size());
Assert.assertTrue(visitor.getTables().containsKey(new TableStat.Name("tk")));
String output = SQLUtils.toMySqlString(stmt);
Assert.assertEquals("CREATE TABLE tk (" + //
"\n\tcol1 INT, " + //
"\n\tcol2 CHAR(5), " + //
"\n\tcol3 DATE" + //
"\n) PARTITION BY LINEAR KEY (col3) PARTITIONS 5", output);
}
}
|
[
"szujobs@hotmail.com"
] |
szujobs@hotmail.com
|
e825a41ef9843702ccda9962f2cda3971a72a1cc
|
3054eab9f6ed308eef6b34bdbf7f2d333e51639c
|
/src/com/op/plugin/baidu/ueditor/define/State.java
|
f41171608b70bfd9354d0a7bed96489dad64ce51
|
[] |
no_license
|
luotianwen/opManage
|
df0aafb894ce0843e2508e8512db462c0074b42f
|
1b553a7895463cbf4a4a7b514b32389de1a0514e
|
refs/heads/master
| 2021-06-26T03:56:40.850857
| 2017-09-09T14:59:35
| 2017-09-09T14:59:35
| 102,962,576
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package com.op.plugin.baidu.ueditor.define;
/**
* 处理状态接口
* @author hancong03@baidu.com
*
*/
public interface State {
public boolean isSuccess ();
public void putInfo( String name, String val );
public void putInfo ( String name, long val );
public String toJSONString ();
}
|
[
"tw l"
] |
tw l
|
374c70793c7751c3166fdf202739f862d3b02055
|
712a5e8475b6c9276bd4f8f857be95fdf6f30b9f
|
/com/google/android/gms/internal/zzjs.java
|
27cf7071419bb26b97b4fc428d2122456451bbdd
|
[] |
no_license
|
swapnilsen/OCR_2
|
b29bd22a51203b4d39c2cc8cb03c50a85a81218f
|
1889d208e17e94a55ddeae91336fe92110e1bd2d
|
refs/heads/master
| 2021-01-20T08:46:03.508508
| 2017-05-03T19:50:52
| 2017-05-03T19:50:52
| 90,187,623
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 175
|
java
|
package com.google.android.gms.internal;
public interface zzjs {
void zzbP();
void zzbQ();
void zzbR();
void zzbS();
void zzbT();
void zzbU();
}
|
[
"swasen@cisco.com"
] |
swasen@cisco.com
|
6929b7344b973dee378b21700ab346fd55a14e24
|
327d615dbf9e4dd902193b5cd7684dfd789a76b1
|
/base_source_from_JADX/sources/com/google/android/gms/measurement/internal/zzch.java
|
aa0f20e919ac2970c845c626b0824cd538702ada
|
[] |
no_license
|
dnosauro/singcie
|
e53ce4c124cfb311e0ffafd55b58c840d462e96f
|
34d09c2e2b3497dd452246b76646b3571a18a100
|
refs/heads/main
| 2023-01-13T23:17:49.094499
| 2020-11-20T10:46:19
| 2020-11-20T10:46:19
| 314,513,307
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 316
|
java
|
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zznf;
final /* synthetic */ class zzch implements zzek {
static final zzek zza = new zzch();
private zzch() {
}
public final Object zza() {
return Boolean.valueOf(zznf.zzc());
}
}
|
[
"dno_sauro@yahoo.it"
] |
dno_sauro@yahoo.it
|
09f3e8c1723858a0d7eef5c3eac12188963fdf10
|
98851755936f9f3a46c8a9f92e3dc97dd66f3bb1
|
/play-services-api/src/main/java/com/google/android/gms/wearable/internal/DataItemParcelable.java
|
1d6bef630b5096939c5352949fa66f7de29fa999
|
[] |
no_license
|
jvlstudio/android_external_GmsApi
|
0da878d6dcde2a24dea84434834a9d890cc22981
|
865b41664d6afabecddbd1a5d1b7c702d0bd821f
|
refs/heads/master
| 2021-01-17T05:47:24.341837
| 2016-01-25T21:48:29
| 2016-01-25T21:48:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,135
|
java
|
/*
* Copyright 2013-2015 microG Project Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.gms.wearable.internal;
import android.net.Uri;
import android.os.Bundle;
import org.microg.safeparcel.AutoSafeParcelable;
import org.microg.safeparcel.SafeParceled;
import java.util.HashMap;
import java.util.Map;
public class DataItemParcelable extends AutoSafeParcelable {
@SafeParceled(1)
private int versionCode = 1;
@SafeParceled(2)
private Uri uri;
@SafeParceled(4)
private Bundle assets = new Bundle();
@SafeParceled(5)
public byte[] data;
private DataItemParcelable() {
}
public DataItemParcelable(Uri uri) {
this(uri, new HashMap<String, DataItemAssetParcelable>());
}
public DataItemParcelable(Uri uri, Map<String, DataItemAssetParcelable> assets) {
this.uri = uri;
for (String key : assets.keySet()) {
this.assets.putParcelable(key, assets.get(key));
}
data = null;
}
public Map<String, DataItemAssetParcelable> getAssets() {
Map<String, DataItemAssetParcelable> assets = new HashMap<String, DataItemAssetParcelable>();
this.assets.setClassLoader(DataItemAssetParcelable.class.getClassLoader());
for (String key : this.assets.keySet()) {
assets.put(key, (DataItemAssetParcelable) this.assets.getParcelable(key));
}
return assets;
}
public Uri getUri() {
return uri;
}
public static final Creator<DataItemParcelable> CREATOR = new AutoCreator<DataItemParcelable>(DataItemParcelable.class);
}
|
[
"github@rvin.mooo.com"
] |
github@rvin.mooo.com
|
749a517d5a68ee8f3930362478f01295aa7e344f
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Struts/Struts1486.java
|
166874b46fef8ca8041788127f9a87dfbb960369
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,001
|
java
|
public void testInvocationOrder() throws ConfigurationException, NoSuchMethodException {
SomeUnknownHandler uh1 = new SomeUnknownHandler();
uh1.setActionMethodResult("uh1");
SomeUnknownHandler uh2 = new SomeUnknownHandler();
uh2.setActionMethodResult("uh2");
UnknownHandlerManagerMock uhm = new UnknownHandlerManagerMock();
uhm.addUnknownHandler(uh1);
uhm.addUnknownHandler(uh2);
//should pick the first one
assertEquals("uh1", uhm.handleUnknownMethod(null, null));
//should pick the second one
uh1.setActionMethodResult(null);
assertEquals("uh2", uhm.handleUnknownMethod(null, null));
//should not pick any
uh1.setActionMethodResult(null);
uh2.setActionMethodResult(null);
try {
uhm.handleUnknownMethod(null, null);
fail("Should throw exception!");
} catch (NoSuchMethodException e) {
assertTrue(true);
}
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
093562328afebfa0933958e99d81db817c8e325d
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project43/src/test/java/org/gradle/test/performance43_2/Test43_108.java
|
e4e1e9bd28de0df4b5b6ab8a507f879982c37976
|
[] |
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.performance43_2;
import static org.junit.Assert.*;
public class Test43_108 {
private final Production43_108 production = new Production43_108("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
e5a56007a5520ec38775d80e1126184691b07720
|
8decaec9c742f14f74a21e003a37ca8791b84d72
|
/TA/Common/Item/ItemArtifact_SunStone.java
|
8f15390da222ac18a5e02e6ef5a6bee37de5a2e3
|
[] |
no_license
|
Modbder/TerraArts
|
b587088fd041950825aa196c8b6aa327a4842377
|
69920cf9907851f59f2e1adc141493a2d43af5ec
|
refs/heads/master
| 2021-01-21T22:29:03.109821
| 2014-04-19T07:05:19
| 2014-04-19T07:05:19
| 18,935,826
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 900
|
java
|
package TA.Common.Item;
import TA.Utils.TAUtils;
import am2.api.IExtendedProperties;
import DummyCore.Utils.MathUtils;
import DummyCore.Utils.MiscUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockIce;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
public class ItemArtifact_SunStone extends ItemArtifact{
public ItemArtifact_SunStone(String par1) {
super(par1);
}
@Override
public void onArtUpdate(ItemStack par1ItemStack, EntityPlayer p) {
if(p.worldObj.isDaytime())
{
p.addPotionEffect(new PotionEffect(Potion.damageBoost.id,10,0,true));
p.addPotionEffect(new PotionEffect(Potion.field_76444_x.id,100,0,true));
}
}
}
|
[
"Modbder@gmail.com"
] |
Modbder@gmail.com
|
c9dfb47d6939fe4c6b93f6a1acd43192b706ea49
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-422-19-8-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/wikimodel/xhtml/filter/XHTMLWhitespaceXMLFilter_ESTest_scaffolding.java
|
9bb8c4b2ab0cb46758daed39e9d7c0010bab3c33
|
[] |
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
| 471
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Apr 04 16:53:12 UTC 2020
*/
package org.xwiki.rendering.wikimodel.xhtml.filter;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class XHTMLWhitespaceXMLFilter_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
e3ccfd5c236e20da0dd48fe4aab9ace614e2d781
|
2b2e5ac097426b7fc77cb098d4114015ae1fa112
|
/java/Thmod/Actions/unique/PlayerTalkAction.java
|
5fa6e6e8b4ddbcc30d7f92fea550e86a58dc93c6
|
[] |
no_license
|
LazurasLong/KomeijiMod
|
2d0c1b9526cb7947c0b595403b8f20efc0837011
|
1429d94e6bac796939f4ccaee94b937dce340d26
|
refs/heads/master
| 2022-12-07T10:32:51.808255
| 2018-09-01T11:48:15
| 2018-09-01T11:48:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,338
|
java
|
package Thmod.Actions.unique;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.vfx.SpeechBubble;
public class PlayerTalkAction extends AbstractGameAction
{
private String msg;
private boolean used;
private float bubbleDuration;
public PlayerTalkAction(final AbstractCreature source, final String text, final float duration, final float bubbleDuration) {
this.used = false;
this.setValues(source, source);
if (Settings.FAST_MODE) {
this.duration = Settings.ACTION_DUR_MED;
}
else {
this.duration = duration;
}
this.msg = text;
this.actionType = AbstractGameAction.ActionType.TEXT;
this.bubbleDuration = bubbleDuration;
}
public PlayerTalkAction(final AbstractCreature source, final String text) {
this(source, text, 2.0f, 2.0f);
}
public void update() {
if (!this.used) {
AbstractDungeon.effectList.add(new SpeechBubble(AbstractDungeon.player.dialogX, AbstractDungeon.player.dialogY, 3.0f, this.msg, true));
this.used = true;
}
this.tickDuration();
}
}
|
[
"1500959719@qq.com"
] |
1500959719@qq.com
|
dbfa038638b0476ba6d3c8dac35dbdf375f795d7
|
40d844c1c780cf3618979626282cf59be833907f
|
/src/testcases/CWE113_HTTP_Response_Splitting/s01/CWE113_HTTP_Response_Splitting__Environment_addCookieServlet_52a.java
|
b4d4f00e6f716b57b4038addca9ba34c902bf478
|
[] |
no_license
|
rubengomez97/juliet
|
f9566de7be198921113658f904b521b6bca4d262
|
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
|
refs/heads/master
| 2023-06-02T00:37:24.532638
| 2021-06-23T17:22:22
| 2021-06-23T17:22:22
| 379,676,259
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,744
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE113_HTTP_Response_Splitting__Environment_addCookieServlet_52a.java
Label Definition File: CWE113_HTTP_Response_Splitting.label.xml
Template File: sources-sinks-52a.tmpl.java
*/
/*
* @description
* CWE: 113 HTTP Response Splitting
* BadSource: Environment Read data from an environment variable
* GoodSource: A hardcoded string
* Sinks: addCookieServlet
* GoodSink: URLEncode input
* BadSink : querystring to addCookie()
* Flow Variant: 52 Data flow: data passed as an argument from one method to another to another in three different classes in the same package
*
* */
package testcases.CWE113_HTTP_Response_Splitting.s01;
import testcasesupport.*;
import javax.servlet.http.*;
public class CWE113_HTTP_Response_Splitting__Environment_addCookieServlet_52a extends AbstractTestCaseServlet
{
public void bad(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data;
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
data = System.getenv("ADD");
(new CWE113_HTTP_Response_Splitting__Environment_addCookieServlet_52b()).badSink(data , request, response);
}
public void good(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
goodG2B(request, response);
goodB2G(request, response);
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data;
/* FIX: Use a hardcoded string */
data = "foo";
(new CWE113_HTTP_Response_Splitting__Environment_addCookieServlet_52b()).goodG2BSink(data , request, response);
}
/* goodB2G() - use badsource and goodsink */
private void goodB2G(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data;
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
data = System.getenv("ADD");
(new CWE113_HTTP_Response_Splitting__Environment_addCookieServlet_52b()).goodB2GSink(data , request, response);
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"you@example.com"
] |
you@example.com
|
041c6618b419729bdf49f4bfc9125207c669d669
|
2f3ea10de6c6f80726829e917c088f8b27ba48de
|
/0DailyLC/src/TotalFruit.java
|
8eb082eafdc306dd859aa4e9fc3c7b879446eb9b
|
[] |
no_license
|
mbhushan/algoz
|
c6b0cbd3b9da33bd278b397cece6860e78d1dac3
|
d4c9f3514c7f8ad653dd37c49b8fe9f714add61c
|
refs/heads/master
| 2023-05-12T09:47:43.792983
| 2023-05-04T04:02:01
| 2023-05-04T04:02:01
| 15,223,554
| 7
| 8
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 804
|
java
|
import java.util.HashMap;
import java.util.Map;
public class TotalFruit {
public static void main(String[] args) {
TotalFruit tf = new TotalFruit();
int [] A = {1,2,3,2,2};
System.out.println(tf.totalFruit(A));
}
public int totalFruit(int[] fruits) {
int start=0, end=0;
int result = 0;
Map<Integer, Integer> map = new HashMap<>();
while (end < fruits.length) {
map.put(fruits[end], map.getOrDefault(fruits[end], 0)+1);
++end;
while (map.size() > 2) {
map.put(fruits[start], map.get(fruits[start])-1);
map.remove(fruits[start], 0);
++start;
}
result = Math.max(result, end - start);
}
return result;
}
}
|
[
"manibhushan.cs@gmail.com"
] |
manibhushan.cs@gmail.com
|
08c04793683e18ee402a1f3105b060bab38d10ba
|
a6f3c8a4080290b8cefec9c0beea3d9e1246af4b
|
/collect_app/src/main/java/org/sdgtest/collect/android/formentry/FormIndexAnimationHandler.java
|
ca41d403b174b1c8789bb5850dd5462e035b1248
|
[
"Apache-2.0"
] |
permissive
|
Luciekimotho/sdgca-survey
|
26b747407c0a53bfac67f7a9198fe1ce16f5c9d9
|
557af63f43a3b6ae12f32b330781ab8efd2ee3ba
|
refs/heads/main
| 2023-03-19T18:38:32.663639
| 2021-03-03T09:03:35
| 2021-03-03T09:03:35
| 341,894,700
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,395
|
java
|
package org.sdgtest.collect.android.formentry;
import androidx.annotation.Nullable;
import org.javarosa.core.model.FormIndex;
/**
* Responsible for determining how a new "screen" in a form should be animated to based on
* the {@link FormIndex}.
*/
public class FormIndexAnimationHandler {
private final Listener listener;
private FormIndex lastIndex;
public FormIndexAnimationHandler(Listener listener) {
this.listener = listener;
}
public void handle(@Nullable FormIndex index) {
if (index == null) {
return;
}
if (lastIndex == null) {
listener.refreshCurrentView();
} else {
if (index.compareTo(lastIndex) > 0) {
listener.animateToNextView();
} else if (index.compareTo(lastIndex) < 0) {
listener.animateToPreviousView();
} else {
listener.refreshCurrentView();
}
}
lastIndex = index;
}
/**
* Can be used to update the handler on the starting index in situations
* where {@link #handle(FormIndex)} isn't be called.
*/
public void setLastIndex(FormIndex lastIndex) {
this.lastIndex = lastIndex;
}
public interface Listener {
void animateToPreviousView();
void animateToNextView();
void refreshCurrentView();
}
}
|
[
"luciekimotho@gmail.com"
] |
luciekimotho@gmail.com
|
fc5e1a32ea42acbdbae38291f22647f6d3b00443
|
c9578323a36528593ae98f9dc55fd426711f38c6
|
/app/src/main/java/kioskmode/com/epoptia/mappers/DomainWorkerPanelModelToWorkerPanelViewModelMapper.java
|
e712fd6a8c8da1f056ce427ea764da2f8bfda02c
|
[] |
no_license
|
tsironis13/EpoptiaKioskModeApp
|
43e262a341faa0708c73f84c796b5963767660a6
|
6b83dd9113be49b2cf01f64da088a3746fb32c5b
|
refs/heads/master
| 2021-01-21T13:30:27.903913
| 2019-05-12T13:39:44
| 2019-05-12T13:39:44
| 102,132,242
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 866
|
java
|
package kioskmode.com.epoptia.mappers;
import javax.inject.Inject;
import domain.com.epoptia.model.domain.DomainWorkerPanelModel;
import io.reactivex.Single;
import kioskmode.com.epoptia.viewmodel.models.WorkerPanelViewModel;
public class DomainWorkerPanelModelToWorkerPanelViewModelMapper {
//region Injections
@Inject
WorkerPanelViewModel workerPanelViewModel;
//endregion
//region Constructor
@Inject
public DomainWorkerPanelModelToWorkerPanelViewModelMapper() {}
//endregion
//region Public Methods
public Single<WorkerPanelViewModel> map(DomainWorkerPanelModel domainWorkerPanelModel) {
workerPanelViewModel.setCookie(domainWorkerPanelModel.getCookie());
workerPanelViewModel.setUrl(domainWorkerPanelModel.getUrl());
return Single.just(workerPanelViewModel);
}
//endregion
}
|
[
"gtsironis8@gmail.com"
] |
gtsironis8@gmail.com
|
198142531339d0051d948fb73fff34e5d02c486a
|
7ee2de6d6db11a38e8e5f618514a046f14e75c12
|
/customviewdir/CustomView/src/main/java/com/flannery/customview/touchevent/TouchEventActivity.java
|
4ff287493351f906adaf3b8e01172622ff69f7ab
|
[] |
no_license
|
tinghaoMa/AndroidHelper
|
b015059da1443488eacd0a262b75e865b38ae8c3
|
ab94d7b02d680f4283715c3c3ab4d229820eb5e8
|
refs/heads/master
| 2023-06-26T08:40:09.145400
| 2021-07-25T13:03:18
| 2021-07-25T13:03:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,635
|
java
|
package com.flannery.customview.touchevent;
import androidx.annotation.IdRes;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.Toast;
import com.flannery.customview.R;
public class TouchEventActivity extends AppCompatActivity {
private View1 v1;
private ViewGroup1 vg1;
private ViewGroup2 vg2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_touch_event);
v1 = findViewById(R.id.v1);
vg1 = findViewById(R.id.vg1);
vg2 = findViewById(R.id.vg2);
setOnCheckedListener(
R.id.customV1,
R.id.customVG1,
R.id.customVG2,
R.id.onInterceptTouchEventV1,
R.id.onInterceptTouchEventVG1,
R.id.onInterceptTouchEventVG2,
R.id.dispatchTouchEventV1,
R.id.dispatchTouchEventVG1,
R.id.dispatchTouchEventVG2,
R.id.setOnTouchEventV1,
R.id.setOnTouchEventVG1,
R.id.setOnTouchEventVG2,
R.id.onTouchEventV1,
R.id.onTouchEventVG1,
R.id.onTouchEventVG2
);
}
private void setOnCheckedListener(@IdRes int... idRes) {
CompoundButton.OnCheckedChangeListener listener = new CompoundButton.OnCheckedChangeListener() {
private boolean isThisId(View view, int id) {
return view.getId() == id;
}
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
Toast.makeText(TouchEventActivity.this, "isChecked=" + isChecked, Toast.LENGTH_SHORT).show();
if (isThisId(buttonView, R.id.customV1)) {
v1.custom = isChecked;
} else if (isThisId(buttonView, R.id.dispatchTouchEventV1)) {
v1.dispatchTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.onInterceptTouchEventV1)) {
//v1.onIn = isChecked;
} else if (isThisId(buttonView, R.id.onTouchEventV1)) {
v1.onTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.setOnTouchEventV1)) {
v1.setOnTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.customVG1)) {
vg1.custom = isChecked;
} else if (isThisId(buttonView, R.id.dispatchTouchEventVG1)) {
vg1.dispatchTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.onInterceptTouchEventVG1)) {
vg1.onInterceptTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.onTouchEventVG1)) {
vg1.onTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.setOnTouchEventVG1)) {
vg1.setOnTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.customVG2)) {
vg2.custom = isChecked;
} else if (isThisId(buttonView, R.id.dispatchTouchEventVG2)) {
vg2.dispatchTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.onInterceptTouchEventVG2)) {
vg2.onInterceptTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.onTouchEventVG2)) {
vg2.onTouchEvent = isChecked;
} else if (isThisId(buttonView, R.id.setOnTouchEventVG2)) {
vg2.setOnTouchEvent = isChecked;
}
}
};
for (int idRe : idRes) {
View viewById = findViewById(idRe);
if (viewById instanceof CheckBox) {
((CheckBox) viewById).setOnCheckedChangeListener(listener);
}
}
}
@Override
public void onUserInteraction() {
super.onUserInteraction();
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
L.m(getClass(), "TouchTest");
boolean b = super.dispatchTouchEvent(ev);
L.m(getClass(), "TouchTest", b);
return b;
}
@Override
public boolean onTouchEvent(MotionEvent event) {
L.m(getClass(), "TouchTest");
boolean b = super.onTouchEvent(event);
L.m(getClass(), "TouchTest", b);
return b;
}
}
|
[
"18310579837@163.com"
] |
18310579837@163.com
|
7b3a5e9302400af4e3162163a87f479fe70b37bb
|
14746c4b8511abe301fd470a152de627327fe720
|
/soroush-android-1.10.0_source_from_JADX/org/msgpack/jackson/dataformat/MessagePackFactory.java
|
8729affc19f58ecb8956eb55cd2ed946a6454aec
|
[] |
no_license
|
maasalan/soroush-messenger-apis
|
3005c4a43123c6543dbcca3dd9084f95e934a6f4
|
29867bf53a113a30b1aa36719b1c7899b991d0a8
|
refs/heads/master
| 2020-03-21T21:23:20.693794
| 2018-06-28T19:57:01
| 2018-06-28T19:57:01
| 139,060,676
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,531
|
java
|
package org.msgpack.jackson.dataformat;
import com.d.a.b.c.c;
import com.d.a.b.d;
import com.d.a.b.e;
import com.d.a.b.g;
import com.d.a.b.j;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
import java.util.Arrays;
import org.msgpack.core.MessagePack;
import org.msgpack.core.MessagePack.PackerConfig;
public class MessagePackFactory extends e {
private static final long serialVersionUID = 2578263992015504347L;
private ExtensionTypeCustomDeserializers extTypeCustomDesers;
private final PackerConfig packerConfig;
private boolean reuseResourceInGenerator;
private boolean reuseResourceInParser;
public MessagePackFactory() {
this(MessagePack.DEFAULT_PACKER_CONFIG);
}
public MessagePackFactory(PackerConfig packerConfig) {
this.reuseResourceInGenerator = true;
this.reuseResourceInParser = true;
this.packerConfig = packerConfig;
}
protected j _createParser(byte[] bArr, int i, int i2, c cVar) {
j messagePackParser;
if (i == 0) {
if (i2 != bArr.length) {
}
messagePackParser = new MessagePackParser(cVar, this._parserFeatures, this._objectCodec, bArr, this.reuseResourceInParser);
if (this.extTypeCustomDesers != null) {
messagePackParser.setExtensionTypeCustomDeserializers(this.extTypeCustomDesers);
}
return messagePackParser;
}
bArr = Arrays.copyOfRange(bArr, i, i2 + i);
messagePackParser = new MessagePackParser(cVar, this._parserFeatures, this._objectCodec, bArr, this.reuseResourceInParser);
if (this.extTypeCustomDesers != null) {
messagePackParser.setExtensionTypeCustomDeserializers(this.extTypeCustomDesers);
}
return messagePackParser;
}
protected MessagePackParser _createParser(InputStream inputStream, c cVar) {
MessagePackParser messagePackParser = new MessagePackParser(cVar, this._parserFeatures, this._objectCodec, inputStream, this.reuseResourceInParser);
if (this.extTypeCustomDesers != null) {
messagePackParser.setExtensionTypeCustomDeserializers(this.extTypeCustomDesers);
}
return messagePackParser;
}
public g createGenerator(File file, d dVar) {
return createGenerator(new FileOutputStream(file), dVar);
}
public g createGenerator(OutputStream outputStream, d dVar) {
return new MessagePackGenerator(this._generatorFeatures, this._objectCodec, outputStream, this.packerConfig, this.reuseResourceInGenerator);
}
public g createGenerator(Writer writer) {
throw new UnsupportedOperationException();
}
public j createParser(InputStream inputStream) {
return _createParser(inputStream, _createContext(inputStream, false));
}
public j createParser(byte[] bArr) {
return _createParser(bArr, 0, bArr.length, _createContext(bArr, false));
}
public MessagePackFactory setExtTypeCustomDesers(ExtensionTypeCustomDeserializers extensionTypeCustomDeserializers) {
this.extTypeCustomDesers = extensionTypeCustomDeserializers;
return this;
}
public MessagePackFactory setReuseResourceInGenerator(boolean z) {
this.reuseResourceInGenerator = z;
return this;
}
public MessagePackFactory setReuseResourceInParser(boolean z) {
this.reuseResourceInParser = z;
return this;
}
}
|
[
"Maasalan@riseup.net"
] |
Maasalan@riseup.net
|
68dd12b4626148e85055c358f782d61a4d75d0a5
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/zhihu/android/app/market/p1168ui/model/MarketCatalogVM$onInitData$$inlined$apply$lambda$1.java
|
dd17a043f966a348e75d9e76924c2a7b30c9f553
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 935
|
java
|
package com.zhihu.android.app.market.p1168ui.model;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.p2243e.p2244a.AbstractC32521a;
import kotlin.p2243e.p2245b.Lambda;
/* access modifiers changed from: package-private */
@Metadata
/* renamed from: com.zhihu.android.app.market.ui.model.MarketCatalogVM$onInitData$$inlined$apply$lambda$1 */
/* compiled from: MarketCatalogVM.kt */
public final class MarketCatalogVM$onInitData$$inlined$apply$lambda$1 extends Lambda implements AbstractC32521a<Unit> {
final /* synthetic */ MarketCatalogVM this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
MarketCatalogVM$onInitData$$inlined$apply$lambda$1(MarketCatalogVM marketCatalogVM) {
super(0);
this.this$0 = marketCatalogVM;
}
@Override // kotlin.p2243e.p2244a.AbstractC32521a
public final void invoke() {
this.this$0.onInitData();
}
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
60dc85b27257e1ee86ed2667e356606915681554
|
af1ab3b6ed945a53742891afb85871f0df4bc0d1
|
/01.InterfacesAndAbstraction/InterfacesAndAbstractionHomework/src/p08_militaryElite/Main.java
|
d2340e32748c9c801a158ca8deb9f1d13b669cb4
|
[] |
no_license
|
vasilgramov/java-oop-advanced
|
94f5321e89c0d9e446a80e1bff38947c22c5364d
|
909ef2abfdd225db09f29e5fec578a1edd493006
|
refs/heads/master
| 2021-06-13T22:37:19.852587
| 2017-04-21T16:19:58
| 2017-04-21T16:19:58
| 84,982,046
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,719
|
java
|
package p08_militaryElite;
import p08_militaryElite.interfaces.*;
import p08_militaryElite.models.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
private static Map<Integer, Private> privateById = new HashMap<>();
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String command = "";
while (!"End".equals(command = in.nextLine())) {
String[] commandArgs = command.split("\\s+");
String soldierType = commandArgs[0];
if (soldierType.equals("Private")) {
Private privateSoldier = new PrivateImpl(Integer.parseInt(commandArgs[1]), commandArgs[2], commandArgs[3], Double.parseDouble(commandArgs[4]));
privateById.put(Integer.parseInt(commandArgs[1]), privateSoldier);
System.out.println(privateSoldier);
} else if (soldierType.equals("Spy")) {
Spy spy = new SpyImpl(Integer.parseInt(commandArgs[1]), commandArgs[2], commandArgs[3], Integer.parseInt(commandArgs[4]));
System.out.println(spy);
} else if (soldierType.equals("LeutenantGeneral")) {
LeutenantGeneral leutenantGeneral = new LeutenantGeneralImp(
Integer.parseInt(commandArgs[1]), commandArgs[2], commandArgs[3], Double.parseDouble(commandArgs[4]));
addPrivatesTo(leutenantGeneral, commandArgs);
System.out.println(leutenantGeneral);
} else if (soldierType.equals("Engineer")) {
Engineer engineer = new EngineerImpl(
Integer.parseInt(commandArgs[1]), commandArgs[2], commandArgs[3], Double.parseDouble(commandArgs[4]), commandArgs[5]);
if (engineer.getCorps() == null) {
continue;
} else {
getRepairs(engineer, commandArgs);
System.out.println(engineer);
}
} else if (soldierType.equals("Commando")) {
Commando commando = new CommandoImpl(
Integer.parseInt(commandArgs[1]), commandArgs[2], commandArgs[3], Double.parseDouble(commandArgs[4]), commandArgs[5]);
if (commando.getCorps() == null) {
continue;
} else {
getMissions(commando, commandArgs);
System.out.println(commando);
}
}
}
}
private static void getMissions(Commando commando, String[] commandArgs) {
for (int i = 6; i < commandArgs.length; i += 2) {
String codeName = commandArgs[i];
String state = commandArgs[i + 1];
Mission mission = new MissionImp(codeName, state);
if (mission.getState() != null) {
commando.addMission(mission);
}
}
}
private static void getRepairs(Engineer engineer, String[] commandArgs) {
for (int i = 6; i < commandArgs.length; i += 2) {
String partName = commandArgs[i];
int houresWorked = Integer.parseInt(commandArgs[i + 1]);
Repair repair = new RepairImpl(partName, houresWorked);
engineer.addRepair(repair);
}
}
private static void addPrivatesTo(LeutenantGeneral leutenantGeneral, String[] commandArgs) {
for (int i = 5; i < commandArgs.length; i++) {
int id = Integer.parseInt(commandArgs[i]);
if (privateById.containsKey(id)) {
Private privateSoldier = privateById.get(id);
leutenantGeneral.addPrivate(privateSoldier);
}
}
}
}
|
[
"gramovv@gmail.com"
] |
gramovv@gmail.com
|
bee0e601ec841d83c2b14515e3a6e13e89e4cbe2
|
2b9cc2c6ddd3540b4b2276fccac23c28d37e5c06
|
/src/main/java/com/microwise/msp/util/JsonUtil.java
|
eaff3c6b21978b1f1fb5562abdd88b9a4e9db982
|
[] |
no_license
|
algsun/blueplanet-daemon
|
864e5af9477d8e69ffa742deb3bbe141711d30a6
|
318c790e0eb7753b6ce8b3ba3cd41c539fe7746c
|
refs/heads/master
| 2020-03-15T19:47:44.247689
| 2018-05-31T07:25:02
| 2018-05-31T07:25:02
| 132,317,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 257
|
java
|
package com.microwise.msp.util;
import com.google.gson.Gson;
/**
* @author xiedeng
* @date 14-12-8
*/
public class JsonUtil {
public static String toJson(Object value) {
Gson gson = new Gson();
return gson.toJson(value);
}
}
|
[
"algtrue@163.com"
] |
algtrue@163.com
|
ec76ca456c47c1174d0451d87105cc50f174f038
|
9d1870a895c63f540937f04a6285dd25ada5e52a
|
/chromecast-app-reverse-engineering/src/from-jd-gui/diu.java
|
bc177f34dc4a32a46fc36e7aaadd6bc2c992fde0
|
[] |
no_license
|
Churritosjesus/Chromecast-Reverse-Engineering
|
572aa97eb1fd65380ca0549b4166393505328ed4
|
29fae511060a820f2500a4e6e038dfdb591f4402
|
refs/heads/master
| 2023-06-04T10:27:15.869608
| 2015-10-27T10:43:11
| 2015-10-27T10:43:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 631
|
java
|
import java.util.zip.Inflater;
final class diu
extends Inflater
{
diu(dis paramdis) {}
public final int inflate(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
{
int j = super.inflate(paramArrayOfByte, paramInt1, paramInt2);
int i = j;
if (j == 0)
{
i = j;
if (needsDictionary())
{
setDictionary(diy.a);
i = super.inflate(paramArrayOfByte, paramInt1, paramInt2);
}
}
return i;
}
}
/* Location: C:\DEV\android\dex2jar-2.1-SNAPSHOT\classes-dex2jar.jar!\diu.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"v.richomme@gmail.com"
] |
v.richomme@gmail.com
|
9eed0b2837c5bf22393733a9867200ca76d97f6e
|
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
|
/sources/com/google/android/gms/internal/ads/C4167tb.java
|
3429a12980ce1832d4853498a5a4d58c502b3a71
|
[] |
no_license
|
dovanduy/MegaBoicotApk
|
c0852af0773be1b272ec907113e8f088addb0f0c
|
56890cb9f7afac196bd1fec2d1326f2cddda37a3
|
refs/heads/master
| 2020-07-02T04:28:02.199907
| 2019-08-08T20:44:49
| 2019-08-08T20:44:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,591
|
java
|
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.os.DeadObjectException;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Looper;
import com.google.android.gms.common.internal.C3469d;
import com.google.android.gms.common.internal.C3469d.C3470a;
import com.google.android.gms.common.internal.C3469d.C3471b;
/* renamed from: com.google.android.gms.internal.ads.tb */
public final class C4167tb extends C3469d<C4170te> {
public C4167tb(Context context, Looper looper, C3470a aVar, C3471b bVar) {
super(context, looper, 116, aVar, bVar, null);
}
/* access modifiers changed from: protected */
/* renamed from: a */
public final /* synthetic */ IInterface mo13014a(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.gass.internal.IGassService");
return queryLocalInterface instanceof C4170te ? (C4170te) queryLocalInterface : new C4171tf(iBinder);
}
/* access modifiers changed from: protected */
/* renamed from: b */
public final String mo13015b() {
return "com.google.android.gms.gass.internal.IGassService";
}
/* renamed from: e */
public final C4170te mo13018e() throws DeadObjectException {
return (C4170te) super.mo13557w();
}
/* access modifiers changed from: protected */
/* renamed from: n_ */
public final String mo13020n_() {
return "com.google.android.gms.gass.START";
}
}
|
[
"pablo.valle.b@gmail.com"
] |
pablo.valle.b@gmail.com
|
d5a00e0687aae5cfcfb2a3cb30ba5758191db5ab
|
19509458097d47bb2c0ab757cd6d1665de37e3e5
|
/expense-management-workflow/src/main/java/com/camunda/consulting/expense_mgt/model/expenses/Expense.java
|
fb9529c7f10e9667e0ee23e7baf36bfa1e8e2605
|
[] |
no_license
|
lucascalsilva/expense-management-camunda
|
a00a30282375c97b1a3a40aabc1ea35267f24145
|
3f570f0530ed1a69d3ceef50399758c5b8e87d71
|
refs/heads/master
| 2022-11-17T03:43:38.388954
| 2020-07-17T18:05:48
| 2020-07-17T18:05:48
| 280,492,816
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 485
|
java
|
package com.camunda.consulting.expense_mgt.model.expenses;
import lombok.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@Builder
@NoArgsConstructor
@Getter
@Setter
@ToString
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class Expense implements Serializable {
private Double amount;
@EqualsAndHashCode.Include
private Long id;
private Date expenseDate;
private String description;
private String receiptFileEncoded;
}
|
[
"lucasc.alm.silva@gmail.com"
] |
lucasc.alm.silva@gmail.com
|
d36f7b5f7ee931b7bfdaaacc1559d63fa051974d
|
a5db57c69b272a7ae46acb944e32ecb3ec0cbcd8
|
/src/main/java/org/lastaflute/web/ruts/config/ExecuteOption.java
|
a8fff361c1df448a6a7b5eb3208d1e6c4aac7362
|
[
"Apache-2.0"
] |
permissive
|
schatten4810/lastaflute
|
d9f8e2598076e18ba1ec7fde9190a1bb7b2c4d88
|
ecc4011a685b5a9b9fe72f0f107b15c45f0decf4
|
refs/heads/master
| 2020-12-07T15:42:23.629918
| 2015-09-25T12:27:42
| 2015-09-25T12:27:42
| 44,791,158
| 0
| 0
| null | 2015-10-23T04:39:29
| 2015-10-23T04:39:29
| null |
UTF-8
|
Java
| false
| false
| 2,088
|
java
|
/*
* Copyright 2014-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.lastaflute.web.ruts.config;
/**
* @author jflute
*/
public class ExecuteOption {
protected final String specifiedUrlPattern;
protected final boolean suppressTransaction;
protected final boolean suppressValidatorCallCheck;
protected final int sqlExecutionCountLimit;
/**
* @param specifiedUrlPattern The URL pattern specified by action. (NullAllowed)
* @param suppressTransaction Does it suppress transaction for action?
* @param sqlExecutionCountLimit The integer for limit of SQL execution count in one request. (MinusAllowed: use default limit)
* @param suppressValidatorCallCheck Does it suppress validator call check?
*/
public ExecuteOption(String specifiedUrlPattern, boolean suppressTransaction, boolean suppressValidatorCallCheck,
int sqlExecutionCountLimit) {
this.specifiedUrlPattern = specifiedUrlPattern;
this.suppressTransaction = suppressTransaction;
this.suppressValidatorCallCheck = suppressValidatorCallCheck;
this.sqlExecutionCountLimit = sqlExecutionCountLimit;
}
public String getSpecifiedUrlPattern() {
return specifiedUrlPattern;
}
public boolean isSuppressTransaction() {
return suppressTransaction;
}
public boolean isSuppressValidatorCallCheck() {
return suppressValidatorCallCheck;
}
public int getSqlExecutionCountLimit() {
return sqlExecutionCountLimit;
}
}
|
[
"dbflute@gmail.com"
] |
dbflute@gmail.com
|
0607eea7f9c883c9cb72d47c38b1b2a81e863c83
|
837c3c323dcfe706dc9cb95c13d8622b0c705bd4
|
/app/src/main/java/florent37/github/com/mam/ui/apps/ClickListener.java
|
2668f1252759d8071d1b61e81a49ba578713a562
|
[
"Apache-2.0"
] |
permissive
|
florent37/OpenMam-Android
|
b82512a5ffaa39b2196b4cc15de85fed4d8ad330
|
adb5432d316e78e9457de26209aba47946a0fa8a
|
refs/heads/master
| 2021-01-01T15:43:54.653006
| 2017-08-11T12:45:07
| 2017-08-11T12:45:07
| 97,689,169
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
package florent37.github.com.mam.ui.apps;
import florent37.github.com.mam.model.App;
/**
* Created by florentchampigny on 28/07/2017.
*/
public interface ClickListener {
void onAppClicked(App app);
}
|
[
"florent.champigny@backelite.com"
] |
florent.champigny@backelite.com
|
438d20a89a488f1c61b1647c2a8d37d7cbb26d9c
|
ba883df1628d64d5b5d92f39fa19e73d6d3b1244
|
/viatra/fr.tpt.mem4csd.mtbench.aadl2aadl.trace.edit/src/aadl2/provider/DataSubcomponentTypeItemProvider.java
|
635528a6480d6d5e324acbee1140550a34b49fe2
|
[] |
no_license
|
INCMOTRANS-Benchmark/IMTBENCH
|
d10f3f748095dddb952d0c7f163b5a39fdee8128
|
14728ddb1e3681c43bed87b2adfe464d1208a1bb
|
refs/heads/master
| 2022-11-20T00:21:26.974656
| 2020-07-21T15:06:48
| 2020-07-21T15:06:48
| 281,428,289
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,353
|
java
|
/**
*/
package aadl2.provider;
import aadl2.DataSubcomponentType;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
/**
* This is the item provider adapter for a {@link aadl2.DataSubcomponentType} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class DataSubcomponentTypeItemProvider extends SubcomponentTypeItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataSubcomponentTypeItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((DataSubcomponentType)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_DataSubcomponentType_type") :
getString("_UI_DataSubcomponentType_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
}
|
[
"mkaouar.hana@gmail.com"
] |
mkaouar.hana@gmail.com
|
6d25393e74c413ef9bf055af6b055313eb7d6117
|
c156bf50086becbca180f9c1c9fbfcef7f5dc42c
|
/src/main/java/com/waterelephant/mapper/BwAuthCodeRecordMapper.java
|
8d404e2136b5790f9e8ce8a73af1ada17612a186
|
[] |
no_license
|
zhanght86/beadwalletloanapp
|
9e3def26370efd327dade99694006a6e8b18a48f
|
66d0ae7b0861f40a75b8228e3a3b67009a1cf7b8
|
refs/heads/master
| 2020-12-02T15:01:55.982023
| 2019-11-20T09:27:24
| 2019-11-20T09:27:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 205
|
java
|
package com.waterelephant.mapper;
import com.waterelephant.entity.BwAuthCodeRecord;
import tk.mybatis.mapper.common.Mapper;
public interface BwAuthCodeRecordMapper extends Mapper<BwAuthCodeRecord> {
}
|
[
"wurenbiao@beadwallet.com"
] |
wurenbiao@beadwallet.com
|
b41044f685280018a4039cdcdadcfc77bffc0a01
|
46712a562af3878be4478ebf9c46f01defc9637d
|
/family_service_platform/src/main/java/org/zhen77/bean/TblPositionRecord.java
|
a1298819df66e5e61522ed6c1dd5cb6c033db810
|
[] |
no_license
|
Zhen7-7/Project
|
8460ba771be59331b4690d0ad883f44153e7a4a8
|
3358a4706da6bae447919ed7dd9a13a8c3c4ac10
|
refs/heads/master
| 2023-03-06T01:15:54.589286
| 2021-03-01T15:25:49
| 2021-03-01T15:25:49
| 342,460,283
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,189
|
java
|
package org.zhen77.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 职位档案
* </p>
*
* @author lian
* @since 2021-02-26
*/
public class TblPositionRecord implements Serializable {
private static final long serialVersionUID=1L;
/**
* 自动编号
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 职位名称
*/
private String positionName;
/**
* 职位描述
*/
private String positionDesc;
/**
* 岗位职责
*/
private String positionDuty;
/**
* 创建人
*/
private String createPerson;
/**
* 创建时间
*/
private LocalDateTime createDate;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getPositionName() {
return positionName;
}
public void setPositionName(String positionName) {
this.positionName = positionName;
}
public String getPositionDesc() {
return positionDesc;
}
public void setPositionDesc(String positionDesc) {
this.positionDesc = positionDesc;
}
public String getPositionDuty() {
return positionDuty;
}
public void setPositionDuty(String positionDuty) {
this.positionDuty = positionDuty;
}
public String getCreatePerson() {
return createPerson;
}
public void setCreatePerson(String createPerson) {
this.createPerson = createPerson;
}
public LocalDateTime getCreateDate() {
return createDate;
}
public void setCreateDate(LocalDateTime createDate) {
this.createDate = createDate;
}
@Override
public String toString() {
return "TblPositionRecord{" +
"id=" + id +
", positionName=" + positionName +
", positionDesc=" + positionDesc +
", positionDuty=" + positionDuty +
", createPerson=" + createPerson +
", createDate=" + createDate +
"}";
}
}
|
[
"Zhen18103690519@gmail.com"
] |
Zhen18103690519@gmail.com
|
eb758ee5cbc3864813c323d4f56521d015da15bd
|
23071b8b5455467e1476f8ed232c9cf85932de7b
|
/src/java/growthcraft/api/cellar/yeast/YeastRegistry.java
|
d0544f2c7afcfdd1b5260a56f78adcefbec90f4b
|
[] |
no_license
|
marcoasfonseca/Growthcraft-1.7
|
2f66128b033e43684745c0e0204cb43ecbac2085
|
c125170fee08c6b4340fe81f791aae4130a47975
|
refs/heads/development
| 2021-01-17T22:39:23.050323
| 2016-03-09T22:51:34
| 2016-03-09T22:51:34
| 53,664,715
| 0
| 0
| null | 2016-03-11T12:11:53
| 2016-03-11T12:11:53
| null |
UTF-8
|
Java
| false
| false
| 5,122
|
java
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 IceDragon200
*
* 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 growthcraft.api.cellar.yeast;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import growthcraft.api.core.log.ILogger;
import growthcraft.api.core.log.NullLogger;
import growthcraft.api.core.item.ItemKey;
import net.minecraft.item.ItemStack;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.BiomeDictionary;
public class YeastRegistry implements IYeastRegistry
{
private Set<ItemKey> yeastList = new HashSet<ItemKey>();
private Map<BiomeDictionary.Type, Set<ItemStack>> biomeTypeToYeast = new HashMap<BiomeDictionary.Type, Set<ItemStack>>();
private Map<String, Set<ItemStack>> biomeNameToYeast = new HashMap<String, Set<ItemStack>>();
private Map<ItemKey, Set<BiomeDictionary.Type>> yeastToBiomeType = new HashMap<ItemKey, Set<BiomeDictionary.Type>>();
private Map<ItemKey, Set<String>> yeastToBiomeName = new HashMap<ItemKey, Set<String>>();
private ILogger logger = NullLogger.INSTANCE;
@Override
public void setLogger(ILogger l)
{
this.logger = l;
}
private ItemKey stackToKey(@Nonnull ItemStack stack)
{
return new ItemKey(stack);
}
@Override
public void addYeast(@Nonnull ItemStack yeast)
{
yeastList.add(stackToKey(yeast));
}
@Override
public boolean isYeast(@Nullable ItemStack yeast)
{
if (yeast == null) return false;
if (yeast.getItem() == null) return false;
return yeastList.contains(stackToKey(yeast));
}
@Override
public void addYeastToBiomeType(@Nonnull ItemStack yeast, @Nonnull BiomeDictionary.Type type)
{
addYeast(yeast);
if (!biomeTypeToYeast.containsKey(type))
{
logger.debug("Initializing biome type to yeast set for %s", type);
biomeTypeToYeast.put(type, new HashSet<ItemStack>());
}
final ItemKey yeastKey = stackToKey(yeast);
if (!yeastToBiomeType.containsKey(yeastKey))
{
logger.debug("Initializing yeast to biome type set for %s", yeast);
yeastToBiomeType.put(yeastKey, new HashSet<BiomeDictionary.Type>());
}
biomeTypeToYeast.get(type).add(yeast);
yeastToBiomeType.get(yeastKey).add(type);
}
@Override
public void addYeastToBiomeByName(@Nonnull ItemStack yeast, @Nonnull String name)
{
addYeast(yeast);
final ItemKey yeastKey = stackToKey(yeast);
if (!yeastToBiomeName.containsKey(yeastKey))
{
logger.debug("Initializing yeast to biome name set for %s", yeast);
yeastToBiomeName.put(yeastKey, new HashSet<String>());
}
yeastToBiomeName.get(yeastKey).add(name);
if (!biomeNameToYeast.containsKey(name))
{
logger.debug("Initializing biome name to yeast set for %s", name);
biomeNameToYeast.put(name, new HashSet<ItemStack>());
}
biomeNameToYeast.get(name).add(yeast);
}
@Override
public Set<ItemStack> getYeastListForBiomeType(@Nonnull BiomeDictionary.Type type)
{
return biomeTypeToYeast.get(type);
}
@Override
public Set<ItemStack> getYeastListForBiomeName(@Nonnull String type)
{
return biomeNameToYeast.get(type);
}
@Override
public Set<String> getBiomeNamesForYeast(@Nullable ItemStack yeast)
{
if (yeast == null) return null;
return yeastToBiomeName.get(stackToKey(yeast));
}
@Override
public Set<BiomeDictionary.Type> getBiomeTypesForYeast(@Nullable ItemStack yeast)
{
if (yeast == null) return null;
return yeastToBiomeType.get(stackToKey(yeast));
}
@Override
public boolean canYeastFormInBiome(@Nullable ItemStack yeast, @Nullable BiomeGenBase biome)
{
if (yeast == null || biome == null) return false;
final Set<String> biomeNames = getBiomeNamesForYeast(yeast);
if (biomeNames != null)
{
if (biomeNames.contains(biome.biomeName)) return true;
}
final Set<BiomeDictionary.Type> yeastBiomeList = getBiomeTypesForYeast(yeast);
if (yeastBiomeList != null)
{
for (BiomeDictionary.Type t : BiomeDictionary.getTypesForBiome(biome))
{
if (yeastBiomeList.contains(t)) return true;
}
}
return false;
}
}
|
[
"mistdragon100@gmail.com"
] |
mistdragon100@gmail.com
|
91eeee1010c34f0c7558d256b09d55828fbd2de5
|
774d36285e48bd429017b6901a59b8e3a51d6add
|
/sources/com/google/android/gms/internal/ads/zznf.java
|
155ae01cd953ef55ad6dab86f798b1e99495b5e5
|
[] |
no_license
|
jorge-luque/hb
|
83c086851a409e7e476298ffdf6ba0c8d06911db
|
b467a9af24164f7561057e5bcd19cdbc8647d2e5
|
refs/heads/master
| 2023-08-25T09:32:18.793176
| 2020-10-02T11:02:01
| 2020-10-02T11:02:01
| 300,586,541
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 439
|
java
|
package com.google.android.gms.internal.ads;
/* compiled from: com.google.android.gms:play-services-ads@@19.1.0 */
public final class zznf extends zznc {
private final Object data;
private final int zzbct;
public zznf(zzmx zzmx, int i) {
this(zzmx, i, 0, (Object) null);
}
private zznf(zzmx zzmx, int i, int i2, Object obj) {
super(zzmx, i);
this.zzbct = 0;
this.data = null;
}
}
|
[
"jorge.luque@taiger.com"
] |
jorge.luque@taiger.com
|
6255fbc11a569a69d96fe30b8258a65316fbd70b
|
62ab8c6f006bd139a98bf013d360a13e6b936ea0
|
/spring-Master-All-In28Minutes/00-framework-tool-introductions/03.JUnit-Introduction-In-5-Steps/src/test/java/com/in28Minutes/junit/MyMathTest.java
|
9eb024a6988dd5f23d9e166affb25593ea06268d
|
[] |
no_license
|
sagarrao1/in28Minutes
|
1ce1f89d1ef623b38773bad02db1b97f3821d322
|
8a9bf2e3520f8280366db00943afbef55f256c97
|
refs/heads/master
| 2023-08-10T14:41:30.272595
| 2023-07-20T04:28:36
| 2023-07-20T04:28:36
| 230,353,633
| 0
| 0
| null | 2022-12-16T06:37:14
| 2019-12-27T01:46:36
|
Java
|
UTF-8
|
Java
| false
| false
| 659
|
java
|
package com.in28Minutes.junit;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class MyMathTest {
MyMath myMath = new MyMath();
@Test
public void sum_With3Numbers() throws InterruptedException {
// int[] numbers = new int[3];
// int[] numbers = {1,2,3};
assertEquals(6, myMath.sum(new int[] {1,2,3}));
}
@Test
public void sum_With1Numbers() {
// MyMath myMath = new MyMath();
// int[] numbers = new int[3];
// int[] numbers = {1,2,3};
try {
assertEquals(13, myMath.sum(new int[] {13}));
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|
[
"sagarrao1@gmail.com"
] |
sagarrao1@gmail.com
|
54ada2dc404b956f992a9876067000a0dc3cc9b4
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_04a4551034e93ced4c9ee90358772b1510534421/StreamListener/2_04a4551034e93ced4c9ee90358772b1510534421_StreamListener_s.java
|
b66c7c012d3cc8dd85cf9a96d6601caaaba484f5
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,297
|
java
|
/*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.social.twitter.api;
/**
* Listener interface for clients consuming data from a Twitter stream.
* @author Craig Walls
*/
public interface StreamListener {
/**
* Called when a new Tweet is available on the stream
* @param tweet
*/
void onTweet(Tweet tweet);
/**
* Called when a delete message is available on the stream
*/
void onDelete(StreamDeleteEvent deleteEvent);
/**
* Called when the stream is being track limited.
* @param numberOfLimitedTweets
*/
void onLimit(int numberOfLimitedTweets);
/**
* Called on
*/
void onWarning(StreamWarningEvent warningEvent);
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
69bd698e247b6ac8a06ce7e52e2672e848c67329
|
9ba9267499458d6243c5097a8c03c6ed4e598bab
|
/src/main/java/cn/sparke/core/modules/shiro/check/PermissionCheckFactory.java
|
f556290fd08d7a27154bd45a67c1364d66330bb6
|
[] |
no_license
|
JohnVeZh/mgr
|
1fa7ddec5aef0d4f55b2103702bbfeb6547014de
|
d99ff1317aa5fa9085f648b9f381d970bb41e693
|
refs/heads/master
| 2021-01-19T18:41:53.979565
| 2018-06-15T10:24:25
| 2018-06-15T10:24:25
| 101,154,859
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,387
|
java
|
/**
* Copyright (c) 2015-2017, Chill Zhuang 庄骞 (smallchill@163.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.sparke.core.modules.shiro.check;
import cn.sparke.core.common.listener.ConfigListener;
import cn.sparke.core.common.support.CollectionKit;
import cn.sparke.core.common.support.HttpKit;
import cn.sparke.core.common.utils.SpringContextHolder;
import cn.sparke.core.modules.shiro.ShiroKit;
import cn.sparke.core.modules.shiro.ShiroUser;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpServletRequest;
/**
* 权限自定义检查
*/
@Service
@DependsOn("springContextHolder")
@Transactional(readOnly = true)
public class PermissionCheckFactory implements ICheck {
public static ICheck me() {
return SpringContextHolder.getBean(ICheck.class);
}
@Override
public boolean check(Object[] permissions) {
ShiroUser user = ShiroKit.getUser();
if (null == user) {
return false;
}
String join = CollectionKit.join(permissions, ",");
if (ShiroKit.hasAnyRoles(join)) {
return true;
}
return false;
}
@Override
public boolean checkAll() {
HttpServletRequest request = HttpKit.getRequest();
ShiroUser user = ShiroKit.getUser();
if (null == user) {
return false;
}
String requestURI = request.getRequestURI().replace(ConfigListener.getConf().get("contextPath"), "");
String[] str = requestURI.split("/");
if (str.length > 3) {
requestURI = "/" + str[1] + "/" + str[2];
}
if (ShiroKit.hasPermission(requestURI)) {
return true;
}
return false;
}
}
|
[
"530225288@qq.com"
] |
530225288@qq.com
|
d5b13e3154b14294e9bddc8a593a42aeddcddd46
|
0721305fd9b1c643a7687b6382dccc56a82a2dad
|
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/p214e/p244l/p245a/p246a/C7645d.java
|
394759de71b0f5be1d697b8c7e44f27a07ac66fe
|
[] |
no_license
|
a2en/Zenly_re
|
09c635ad886c8285f70a8292ae4f74167a4ad620
|
f87af0c2dd0bc14fd772c69d5bc70cd8aa727516
|
refs/heads/master
| 2020-12-13T17:07:11.442473
| 2020-01-17T04:32:44
| 2020-01-17T04:32:44
| 234,470,083
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 906
|
java
|
package p214e.p244l.p245a.p246a;
import android.view.animation.Interpolator;
/* renamed from: e.l.a.a.d */
abstract class C7645d implements Interpolator {
/* renamed from: a */
private final float[] f19269a;
/* renamed from: b */
private final float f19270b = (1.0f / ((float) (this.f19269a.length - 1)));
protected C7645d(float[] fArr) {
this.f19269a = fArr;
}
public float getInterpolation(float f) {
if (f >= 1.0f) {
return 1.0f;
}
if (f <= 0.0f) {
return 0.0f;
}
float[] fArr = this.f19269a;
int min = Math.min((int) (((float) (fArr.length - 1)) * f), fArr.length - 2);
float f2 = (float) min;
float f3 = this.f19270b;
float f4 = (f - (f2 * f3)) / f3;
float[] fArr2 = this.f19269a;
return fArr2[min] + (f4 * (fArr2[min + 1] - fArr2[min]));
}
}
|
[
"developer@appzoc.com"
] |
developer@appzoc.com
|
d74caed23244ac74a3719afb85f4583f5df8eee8
|
77a037f7b18afe4f603d9700bc9c968c21464a67
|
/hawtio-osgi-jmx/src/main/java/io/hawt/osgi/jmx/RBACDecoratorMBean.java
|
6cfb1f7b2c2aa54f96b54c9fabbf761f5516771d
|
[
"Apache-2.0"
] |
permissive
|
renardire/hawtio
|
f53ec2cf780485902e137ce92f79ce70bf9bc1ad
|
5dfe9391e8eb5b4abee58c13b2fb14f984dd0ac2
|
refs/heads/master
| 2023-04-21T23:02:37.975610
| 2020-11-27T11:12:22
| 2020-11-27T11:12:22
| 366,724,991
| 0
| 0
|
Apache-2.0
| 2021-05-13T02:12:28
| 2021-05-12T13:27:50
| null |
UTF-8
|
Java
| false
| false
| 1,872
|
java
|
/**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat 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.hawt.osgi.jmx;
import java.util.Map;
/**
* <p>MBean that optimizes access to Karaf's RBAC services.</p>
* <p>When doing client-side initialization, hawtio invokes two time-consuming operations:<ul>
* <li>LIST of available MBeans (with metadata consisting in attrs, ops, description</li>
* <li>EXEC for <code>org.apache.karaf.management.JMXSecurityMBean#canInvoke(java.util.Map)</code></li>
* </ul>
* This becomes unacceptable when we have hundreds of similar MBeans (like ActiveMQ queues or Camel
* components/endpoints/processors/routes/consumers/...</p>
* <p>The role of this MBean is to combine LIST+EXEC/RBAC operations into one - and return
* map that is complete, but optimized (uses shared JSON elements that can be processed by hawtio client
* app itself).</p>
*/
public interface RBACDecoratorMBean {
/**
* Decorates {@link Map} (that can be nicely handled by Jolokia) containing everything that is initially
* needed by hawtio client application. It's an optimized and dedicated method that runs much faster than
* sequence of relevant Jolokia operations (LIST+EXEC with maxDepth=7).
* @return
*/
void decorate(Map<String, Object> map) throws Exception;
}
|
[
"gr.grzybek@gmail.com"
] |
gr.grzybek@gmail.com
|
0bccbf2b0c878a437f2f8898034d03c25576fcd3
|
a456b870118fe3034eb72f4f94bde593e5c016d0
|
/src/com/innowhere/jnieasy/core/impl/enhancer/xml/classdesc/JavaClassAsNativeCapableEnhancerXML.java
|
cce53e8a53463702397f841ac1e7c6243916393c
|
[
"Apache-2.0"
] |
permissive
|
fengxiaochuang/jnieasy
|
0b0fed598e1d0ea2f24ab9a9e9476b58ec2fd510
|
e295b23ee7418c8e412b025b957e64ceaba40fac
|
refs/heads/master
| 2022-01-21T04:21:58.382039
| 2016-08-21T17:17:34
| 2016-08-21T17:17:34
| null | 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 8,063
|
java
|
/*
* EnhancedClass.java
*
* Created on 18 de marzo de 2004, 17:22
*/
package com.innowhere.jnieasy.core.impl.enhancer.xml.classdesc;
import java.util.*;
import javassist.*;
import org.w3c.dom.*;
import org.w3c.dom.traversal.*;
import com.innowhere.jnieasy.core.*;
import com.innowhere.jnieasy.core.impl.enhancer.*;
import com.innowhere.jnieasy.core.impl.util.*;
import com.innowhere.jnieasy.core.impl.common.classdesc.xml.JavaClassAsNativeCapableXML;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsCPPClassEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsNativeMultipleFieldContainerEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsNativeCapableEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsNativeObjectArrayWrapperEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsNativePointerEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsStructureEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.JavaClassAsUnionEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.PackageEnhancer;
import com.innowhere.jnieasy.core.impl.enhancer.model.classdesc.PackageListEnhancer;
import java.net.URL;
public abstract class JavaClassAsNativeCapableEnhancerXML
{
public static final String STRUCTURE = "structure";
public static final String UNION = "union";
public static final String ARRAY = "array";
public static final String CLASS = "class";
public static final String CALLBACK = "callback";
public static final String POINTER = "pointer";
protected JavaClassAsNativeCapableEnhancer javaClassEnh;
/** Creates a new instance of EnhancedClass */
public JavaClassAsNativeCapableEnhancerXML(JavaClassAsNativeCapableEnhancer javaClassEnh)
{
this.javaClassEnh = javaClassEnh;
}
public JavaClassAsNativeCapableEnhancer getJavaClassAsNativeCapableEnhancer()
{
return javaClassEnh;
}
public static JavaClassAsNativeCapableEnhancerXML newJavaClassAsNativeCapableEnhancerXML(JavaClassAsNativeMultipleFieldContainerEnhancer typeEnh)
{
return typeEnh.newJavaClassAsNativeCapableEnhancerXML();
}
public static JavaClassAsNativeCapableEnhancerXML newJavaClassAsNativeCapableEnhancerXML(Element classNode,TreeWalker walker,CtClass ctClass,EnhancerSourceFileContext ctx)
{
String type = XMLUtil.getAttribute(classNode,"type");
JavaClassAsNativeCapableEnhancer javaClassEnh;
if (type.equals(ARRAY))
{
CtField ctField = JavaClassAsNativeObjectFieldContainerEnhancerXML.getCtFieldFromXMLDirectly(classNode,ctClass);
javaClassEnh = JavaClassAsNativeObjectArrayWrapperEnhancer.newJavaClassAsNativeObjectArrayEnhancer(ctClass,ctField,ctx);
}
else if (type.equals(POINTER))
{
CtField ctField = JavaClassAsNativeObjectFieldContainerEnhancerXML.getCtFieldFromXMLDirectly(classNode,ctClass);
javaClassEnh = JavaClassAsNativePointerEnhancer.newJavaClassAsNativePointerEnhancer(ctClass,ctField,ctx);
}
else if (type.equals(STRUCTURE))
javaClassEnh = JavaClassAsStructureEnhancer.newJavaClassAsStructureEnhancer(ctClass,ctx.getParentContext());
else if (type.equals(CLASS))
javaClassEnh = JavaClassAsCPPClassEnhancer.newJavaClassAsCPPClassEnhancer(ctClass,ctx.getParentContext());
else if (type.equals(UNION))
javaClassEnh = JavaClassAsUnionEnhancer.newJavaClassAsUnionEnhancer(ctClass,ctx.getParentContext());
else if (type.equals(CALLBACK))
javaClassEnh = JavaClassAsNativeDirectCallbackEnhancerXML.newJavaClassAsNativeDirectCallbackEnhancerXML(classNode,walker,ctClass,ctx);
else
throw new JNIEasyException("Not valid type name: " + type);
return javaClassEnh.newJavaClassAsNativeCapableEnhancerXML();
}
public static JavaClassAsNativeCapableEnhancer newJavaClassAsNativeCapableEnhancer(URL filePath,CtClass ctClass,EnhancerSharedContext ctx)
{
String className = ctClass.getName();
PackageListEnhancerXML pkgListXML = PackageListEnhancerXML.newPackageListEnhancerXML();
pkgListXML.parse(filePath,null,ctx);
PackageListEnhancer pkgListEnh = pkgListXML.getPackageListEnhancer();
String packageName = Util.getPackagePart(className);
// Cogemos el package que coincida el nombre
// en teoría debe haber uno, pero así nos preparamos para la posibilidad
// de búsqueda de muchas clases en un único archivo también para
// el caso de enhancer on load
PackageEnhancer pkgEnh = null;
LinkedList pkgs = pkgListEnh.getPackages();
for(Iterator it=pkgs.iterator(); it.hasNext(); )
{
PackageEnhancer pkgEnhIt = (PackageEnhancer)it.next();
if (packageName.equals(pkgEnhIt.getPackageDec().getName()))
{
pkgEnh = pkgEnhIt;
break;
}
}
if (pkgEnh == null)
throw new JNIEasyException("Not found package : " + packageName + " on XML file: " + filePath);
// Buscamos la clase ahora
JavaClassAsNativeCapableEnhancer classEnh = null;
LinkedList classes = pkgEnh.getClasses();
for(Iterator it=classes.iterator(); it.hasNext(); )
{
JavaClassAsNativeCapableEnhancer classEnhIt = (JavaClassAsNativeCapableEnhancer)it.next();
if (className.equals(classEnhIt.getName()))
{
classEnh = classEnhIt;
break;
}
}
if (classEnh == null)
throw new JNIEasyException("Not found class : " + className + " on XML file: " + filePath);
return classEnh;
}
public static String getSimpleClassName(Element classNode)
{
return JavaClassAsNativeCapableXML.getSimpleClassName(classNode);
}
public static JavaClassAsNativeCapableEnhancer newJavaClassAsNativeCapableEnhancer(String className,Element classNode,TreeWalker walker,EnhancerSourceFileContext ctx)
{
JavaClassAsNativeCapableEnhancer classEnh;
CtClass ctClass = ctx.getCtClass(className);
JavaClassAsNativeCapableEnhancerXML classEnhXML = newJavaClassAsNativeCapableEnhancerXML(ctClass,classNode,walker,ctx);
classEnh = classEnhXML.getJavaClassAsNativeCapableEnhancer();
return classEnh;
}
public static JavaClassAsNativeCapableEnhancerXML newJavaClassAsNativeCapableEnhancerXML(CtClass ctClass,Element classNode,TreeWalker walker,EnhancerSourceFileContext ctx)
{
// <class name="ToEnhanceClass" type="structure|class|array">
JavaClassAsNativeCapableEnhancerXML classEnhXML = newJavaClassAsNativeCapableEnhancerXML(classNode,walker,ctClass,ctx);
JavaClassAsNativeCapableEnhancer classEnhancer = classEnhXML.getJavaClassAsNativeCapableEnhancer();
if (classEnhancer.isEnhanced())
{
// Crea un JavaClassAsNativeCapableEnhancer para cumplir pues no será necesario "enhancearlo"
// Evitamos el parseo del resto del XML
classEnhancer.setEnhanced(true);
}
else
classEnhXML.parse(classNode,walker,ctx);
return classEnhXML;
}
public void parse(Element classNode,TreeWalker walker,EnhancerSourceFileContext ctx)
{
parseFieldsAndMethods(classNode,walker,ctx);
}
public abstract void parseFieldsAndMethods(Element classNode, TreeWalker walker, EnhancerSourceFileContext ctx);
public abstract FieldOfClassEnhancerXML newFieldOfClassEnhancerXML();
}
|
[
"jmarranz@innowhere.com"
] |
jmarranz@innowhere.com
|
ac13b887c1950d15a17110e94eddefd8c880bdca
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_2645486_0/java/rabot/ManageYourEnergy2.java
|
a0e3a49008632861436f8b3df49210c94da1da14
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,684
|
java
|
package r1a2013;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.math.BigInteger;
import java.util.StringTokenizer;
public class ManageYourEnergy2 {
public static void main(String[] args) throws Exception {
String fileName = args[0];
ManageYourEnergy2 obj = new ManageYourEnergy2();
obj.solve(fileName);
}
public void solve(String fileName) throws Exception {
BufferedReader br = new BufferedReader(new FileReader(fileName));
BufferedWriter bw = new BufferedWriter(
new FileWriter(fileName + ".out"));
int T = Integer.parseInt(br.readLine());
for (int t = 0; t < T; t++) {
String str = br.readLine();
StringTokenizer token = new StringTokenizer(str);
int E = Integer.parseInt(token.nextToken());
int R = Integer.parseInt(token.nextToken());
int N = Integer.parseInt(token.nextToken());
str = br.readLine();
token = new StringTokenizer(str);
int[] v = new int[N];
int[] max = new int[100];
for (int i = 0; i < N; i++) {
v[i] = Integer.parseInt(token.nextToken());
max[i / 100] = Math.max(v[i], max[i / 100]);
}
int g = solve(E, R, v, E, 0, 0);
bw.write("Case #" + (t + 1) + ": " + g);
bw.write("\r\n");
}
bw.close();
br.close();
}
public int solve(int E,int R,int[] v,int now,int pos,int nowG) {
now = Math.min(E, now + R);
if (pos == v.length - 1) {
return nowG + now * v[pos];
}
int max = 0;
for (int i = 0; i <= now; i++) {
int ret = solve(E, R, v, now - i, pos + 1, nowG + i * v[pos]);
max = Math.max(max, ret);
}
return max;
}
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
1c3686f534a2ece03e9e055de16203f679c7afea
|
4ec82e4d063194e16c1ce4473999ef908e41270c
|
/common-orm/src/main/java/jef/database/dialect/statement/UnionJudgementDruidMySQLImpl.java
|
06a34aa3be6cfeeff049dfeaf9f324f05bf04904
|
[
"Apache-2.0"
] |
permissive
|
wecup/ef-orm
|
4ff0e41b03a9600de66c3b2492d8732af812119e
|
ca8e9a4ceff9181e1d2f5015650953d432bc36d0
|
refs/heads/master
| 2020-12-11T06:13:55.717959
| 2014-11-05T10:19:26
| 2014-11-05T10:19:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 516
|
java
|
package jef.database.dialect.statement;
import com.alibaba.druid.sql.ast.statement.SQLUnionQuery;
import com.alibaba.druid.sql.dialect.mysql.parser.MySqlSelectParser;
/**
* 使用Druid的SQL解析器判断是否为Union语句(MySQL语法专用)
* @author jiyi
*
*/
public final class UnionJudgementDruidMySQLImpl extends UnionJudgement{
@Override
public boolean isUnion(String sql) {
MySqlSelectParser parser=new MySqlSelectParser(sql);
return parser.select().getQuery() instanceof SQLUnionQuery;
}
}
|
[
"hzjiyi@gmail.com"
] |
hzjiyi@gmail.com
|
d5a1a865181268a79dde8fe5100881553919dd41
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project96/src/test/java/org/gradle/test/performance96_2/Test96_179.java
|
f759428e5cc94f6e4035a91592722a76c4e4a7a5
|
[] |
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.performance96_2;
import static org.junit.Assert.*;
public class Test96_179 {
private final Production96_179 production = new Production96_179("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
cee1aad50d0c1fce68c5d8d2e8d07ff1d845b33c
|
082e26b011e30dc62a62fae95f375e4f87d9e99c
|
/docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/plugin/luggage/natives/component/widget/LuDotView.java
|
37cd2faddfa341783639275c0042d340f3a525fe
|
[] |
no_license
|
xsren/AndroidReverseNotes
|
9631a5aabc031006e795a112b7ac756a8edd4385
|
9202c276fe9f04a978e4e08b08e42645d97ca94b
|
refs/heads/master
| 2021-04-07T22:50:51.072197
| 2019-07-16T02:24:43
| 2019-07-16T02:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,315
|
java
|
package com.tencent.mm.plugin.luggage.natives.component.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.GradientDrawable;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.tencent.luggage.g.d;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.R;
public class LuDotView extends LinearLayout {
private int lfO = 0;
private int mCount = 0;
private GradientDrawable oiN;
private GradientDrawable oiO;
public LuDotView(Context context) {
super(context);
AppMethodBeat.i(116836);
init();
AppMethodBeat.o(116836);
}
public LuDotView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
AppMethodBeat.i(116837);
init();
AppMethodBeat.o(116837);
}
public LuDotView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
AppMethodBeat.i(116838);
init();
AppMethodBeat.o(116838);
}
@TargetApi(11)
public LuDotView(Context context, AttributeSet attributeSet, int i, int i2) {
super(context, attributeSet, i, i2);
AppMethodBeat.i(116839);
init();
AppMethodBeat.o(116839);
}
private void init() {
AppMethodBeat.i(116840);
this.oiN = (GradientDrawable) getContext().getResources().getDrawable(R.drawable.lq);
this.oiO = (GradientDrawable) getContext().getResources().getDrawable(R.drawable.lq);
AppMethodBeat.o(116840);
}
public void setLuDotViewOrientation(int i) {
AppMethodBeat.i(116841);
setOrientation(i);
if (i == 1) {
setGravity(21);
AppMethodBeat.o(116841);
return;
}
setGravity(81);
AppMethodBeat.o(116841);
}
public void setSelectedIndex(int i) {
int i2 = 0;
AppMethodBeat.i(116842);
if (this.lfO == i) {
AppMethodBeat.o(116842);
return;
}
if (i > getChildCount()) {
d.d("LuDotView", "index %d is bigger then view count %d. make index to view count", Integer.valueOf(i), Integer.valueOf(getChildCount()));
i = getChildCount() - 1;
} else if (i < 0) {
d.d("LuDotView", "index %d is litter then 0. make index to 0", Integer.valueOf(i));
i = 0;
}
while (true) {
int i3 = i2;
if (i3 < getChildCount()) {
ImageView imageView = (ImageView) getChildAt(i3);
if (i3 == i) {
imageView.setImageDrawable(this.oiO);
} else {
imageView.setImageDrawable(this.oiN);
}
i2 = i3 + 1;
} else {
this.lfO = i;
AppMethodBeat.o(116842);
return;
}
}
}
public void setIndicatorColor(int i) {
AppMethodBeat.i(116843);
this.oiN.setColor(i);
AppMethodBeat.o(116843);
}
public void setIndicatorActiveColor(int i) {
AppMethodBeat.i(116844);
this.oiO.setColor(i);
AppMethodBeat.o(116844);
}
}
|
[
"alwangsisi@163.com"
] |
alwangsisi@163.com
|
fb983d177cee28d71b8f5519b81026b569ec45f8
|
269592748cf52fdb60b04d655b6096bc99ac19d3
|
/job_1/myNet/src/com/send_receive/SendDemo.java
|
236d8f07dd5c6e8d7d0dfc80d397772afefa7379
|
[] |
no_license
|
xcm31725/xcm
|
bdc4f510473206fed1399cab09de9ebfd1790fa6
|
90e6c31bf0dd6cf50b0961b394e7ddc786fb73c8
|
refs/heads/master
| 2021-09-15T23:16:50.943304
| 2018-06-12T14:22:35
| 2018-06-12T14:22:35
| 115,909,747
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,338
|
java
|
package com.send_receive;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
/**
*
* @ClassName: SendDemo
* @Description: TODO
* 使用UDP协议发送数据
* 创建发送端Socket对象
* 创建数据并打包
* 发送数据
* 释放资源
*
* DatagramSocket:此类表示用来发送和接收数据,基于UDP协议的
*
* DatagramSocket() :创建Socket对象并随机分配端口号
* DatagramSocket(int port) :创建Socket对象并指定端口号
*
* @author sudong
* @date 2018年1月22日 下午9:06:06
*
*/
public class SendDemo {
public static void main(String[] args) throws IOException {
//创建发送端Socket对象
DatagramSocket ds = new DatagramSocket();
//创建数据并打包
/*
* DatagramPacket :此类表示数据报包
* 数据 byte[]
* 设备的地址 ip
* 进程的地址 端口号
* DatagramPacket(byte[] buf, int length, InetAddress address, int port)
*/
String s = "hello udp,I'm comming!";
byte[] bys = s.getBytes();
int length = bys.length;
InetAddress address = InetAddress.getByName("sudong-PC");
int port = 31725;
DatagramPacket dp = new DatagramPacket(bys, length, address, port);
//发送数据
ds.send(dp);
//释放资源
ds.close();
}
}
|
[
"xltfn0317@gmail.com"
] |
xltfn0317@gmail.com
|
4ddd1ab0c1f419397901f35b8ba5c7da4cda2519
|
8bc8038babd1e278c63d533fc7a351cac7ef4905
|
/mybatis/src/main/java/org/apache/ibatis/type/CharacterTypeHandler.java
|
2899125a817c6142c4098dbde4555ee0a7ee2a1c
|
[] |
no_license
|
jinbaizhe/mybatis
|
a336709bca5f81b8b9b7931f2603348aa4f6a21e
|
1726a7a63762e9200864564473ecb30570487842
|
refs/heads/main
| 2023-06-24T02:29:07.984538
| 2021-07-27T12:16:29
| 2021-07-27T12:16:29
| 361,598,595
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,902
|
java
|
/*
* Copyright 2009-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ibatis.type;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* @author Clinton Begin
*/
public class CharacterTypeHandler extends BaseTypeHandler<Character> {
@Override
public void setNonNullParameter(PreparedStatement ps, int i, Character parameter, JdbcType jdbcType) throws SQLException {
ps.setString(i, parameter.toString());
}
@Override
public Character getNullableResult(ResultSet rs, String columnName) throws SQLException {
String columnValue = rs.getString(columnName);
if (columnValue != null) {
return columnValue.charAt(0);
} else {
return null;
}
}
@Override
public Character getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
String columnValue = rs.getString(columnIndex);
if (columnValue != null) {
return columnValue.charAt(0);
} else {
return null;
}
}
@Override
public Character getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
String columnValue = cs.getString(columnIndex);
if (columnValue != null) {
return columnValue.charAt(0);
} else {
return null;
}
}
}
|
[
"jinbaizhe@leoao.com"
] |
jinbaizhe@leoao.com
|
9df1b37206f0c5ccbe2f947cc79f37f54015decc
|
863acb02a064a0fc66811688a67ce3511f1b81af
|
/sources/com/google/android/gms/internal/ads/C9340bj.java
|
b9b1f41c110fba42f30e283eac404f8667cc8d1d
|
[
"MIT"
] |
permissive
|
Game-Designing/Custom-Football-Game
|
98d33eb0c04ca2c48620aa4a763b91bc9c1b7915
|
47283462b2066ad5c53b3c901182e7ae62a34fc8
|
refs/heads/master
| 2020-08-04T00:02:04.876780
| 2019-10-06T06:55:08
| 2019-10-06T06:55:08
| 211,914,568
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 359
|
java
|
package com.google.android.gms.internal.ads;
/* renamed from: com.google.android.gms.internal.ads.bj */
final /* synthetic */ class C9340bj implements Runnable {
/* renamed from: a */
private final zzchz f22121a;
C9340bj(zzchz zzchz) {
this.f22121a = zzchz;
}
public final void run() {
this.f22121a.mo31167a();
}
}
|
[
"tusharchoudhary0003@gmail.com"
] |
tusharchoudhary0003@gmail.com
|
89273b075e17f94bd8202dc1e9eac48db6cb19be
|
a741d82fb5ee0203161455353587ffcc902ef351
|
/aylson-dao/src/main/java/com/aylson/dc/sys/po/Org.java
|
734f282508540a1353a6db88ca7eee72b013d3b4
|
[] |
no_license
|
xiaofeifei321/aylson-parent
|
b48121272d5e92a1acc4b671ab7af63aa6c06b0b
|
3749a0f1ef45851b4aa513b324ef23a04e4421d3
|
refs/heads/master
| 2022-12-23T20:15:51.598455
| 2019-08-29T11:30:13
| 2019-08-29T11:30:13
| 204,696,341
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,681
|
java
|
package com.aylson.dc.sys.po;
import java.io.Serializable;
public class Org implements Serializable {
private static final long serialVersionUID = 1524961112742821837L;
private Integer id; //主键
private Integer parentId; //父id
private Integer seq; //序号
private String orgName; //组织名称
private String orgCode; //组织编号
private Integer status; //状态:1使用 2删除
private String remark; //备注
private Integer levelNum; //级别(辅助字段)
private Boolean isLeaf; //是否叶子(辅助字段)
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Integer getSeq() {
return seq;
}
public void setSeq(Integer seq) {
this.seq = seq;
}
public String getOrgName() {
return orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Integer getLevelNum() {
return levelNum;
}
public void setLevelNum(Integer levelNum) {
this.levelNum = levelNum;
}
public Boolean getIsLeaf() {
return isLeaf;
}
public void setIsLeaf(Boolean isLeaf) {
this.isLeaf = isLeaf;
}
}
|
[
"874189630@qq.com"
] |
874189630@qq.com
|
40b3f68ed6623653a605d4f9f0ae9bb12509e281
|
355c41b5bb8706ad1acb282b828ab50f2a58d1a2
|
/cn/jsprun/dao/impl/PermListDaoImpl.java
|
8086b3adf1be723e98a3bdd278c7343a0becf378
|
[] |
no_license
|
goldbo/vcity
|
d7a424f00939ceafbb4f6d06ebfa608321a75c8a
|
645f6a5eb429d3974ef4afa4e3f00ab37f6d5643
|
refs/heads/master
| 2021-01-22T01:54:36.186223
| 2012-02-20T09:30:57
| 2012-02-20T09:30:57
| 3,134,179
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,635
|
java
|
package cn.jsprun.dao.impl;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import cn.jsprun.dao.PermListDao;
import cn.jsprun.domain.PermList;
import cn.jsprun.utils.HibernateUtil;
public class PermListDaoImpl implements PermListDao {
public boolean addPermList(PermList permlist) {
Session session=HibernateUtil.getSessionFactory().getCurrentSession();
Transaction ts=null;
boolean isadd=false;
try{
ts=session.beginTransaction();
session.save(permlist);
ts.commit();
isadd=true;
}
catch(HibernateException ex){
System.out.println(ex.getMessage());
ts.rollback();
}
return isadd;
}
public boolean deletePermListByTid(int tid) {
Session session=HibernateUtil.getSessionFactory().getCurrentSession();
Transaction ts=null;
boolean isdelete=false;
try{
ts=session.beginTransaction();
String hql="delete PermList where tid="+tid;
isdelete=session.createQuery(hql).executeUpdate()>0?true:false;
ts.commit();
}
catch(HibernateException ex){
ex.getMessage();
ts.rollback();
}
return isdelete;
}
public List<PermList> getPermListByTid(int tid) {
Session session=HibernateUtil.getSessionFactory().getCurrentSession();
Transaction ts=null;
List<PermList> list=null;
try{
ts=session.beginTransaction();
String hql="from PermList where tid="+tid;
Query query=session.createQuery(hql);
list=(List<PermList>)query.list();
ts.commit();
}
catch(HibernateException ex){
ex.getMessage();
ts.rollback();
}
return list;
}
}
|
[
"549668352@qq.com"
] |
549668352@qq.com
|
5b3331474687d4c4654abb0874f5c6566a450d2c
|
1f5c68f68b12b314d062c8c94b4824a533b4a7a3
|
/com/planet_ink/coffee_mud/Locales/WetCaveMaze.java
|
d51999b40d92cdb03677ae36dbba8d2d28859788
|
[
"Apache-2.0"
] |
permissive
|
leonlee/CoffeeMud
|
ff29abc60a77d03675375a9097572780a14b86c3
|
c35383fc53bd3947b6b8579a581e9eb792e15ef9
|
refs/heads/master
| 2020-06-09T15:47:32.771688
| 2016-12-08T07:12:47
| 2016-12-08T07:12:47
| 76,030,486
| 1
| 0
| null | 2016-12-09T11:38:35
| 2016-12-09T11:38:34
| null |
UTF-8
|
Java
| false
| false
| 2,114
|
java
|
package com.planet_ink.coffee_mud.Locales;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2001-2016 Bo Zimmerman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
public class WetCaveMaze extends StdMaze
{
@Override
public String ID()
{
return "WetCaveMaze";
}
public WetCaveMaze()
{
super();
basePhyStats().setDisposition(basePhyStats().disposition()|PhyStats.IS_DARK);
recoverPhyStats();
climask=Places.CLIMASK_WET;
}
@Override
public int domainType()
{
return Room.DOMAIN_INDOORS_CAVE;
}
@Override
public String getGridChildLocaleID()
{
return "WetCaveRoom";
}
@Override
public int maxRange()
{
return 5;
}
@Override
public List<Integer> resourceChoices()
{
return CaveRoom.roomResources;
}
}
|
[
"bo@zimmers.net"
] |
bo@zimmers.net
|
3e4d94e191355811eff9b1bec245e5a1af653d9b
|
d847d978f884cc7f22bb5f02cd7bc455ae3a20a3
|
/libs/src/testsuite/regression/SubqueriesRegressionTest.java
|
1859ea53776581847963f01be1c2b97acf35357b
|
[] |
no_license
|
Jinphy/SimpleChatServer
|
a21abec8a008b50de98ab7ebbb5e00ec9246ba0b
|
0f781eebc6af69016dbecb50c12a051ce23e6347
|
refs/heads/master
| 2021-05-07T09:02:20.033311
| 2018-04-04T03:45:24
| 2018-04-04T03:45:24
| 109,465,785
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,644
|
java
|
/*
Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/J is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
There are special exceptions to the terms and conditions of the GPLv2 as it is applied to
this software, see the FOSS License Exception
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this
program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
Floor, Boston, MA 02110-1301 USA
*/
package testsuite.regression;
import testsuite.BaseTestCase;
/**
* Tests SubQueries on MySQL > 4.1
*/
public class SubqueriesRegressionTest extends BaseTestCase {
private final static int REPETITIONS = 100;
/**
*/
public SubqueriesRegressionTest(String name) {
super(name);
}
/*
* (non-Javadoc)
*
* @see junit.framework.TestCase#setUp()
*/
@Override
public void setUp() throws Exception {
super.setUp();
createTables();
}
/*
* (non-Javadoc)
*
* @see junit.framework.TestCase#tearDown()
*/
@Override
public void tearDown() throws Exception {
super.tearDown();
}
/**
* Runs all test cases in this test suite
*
* @param args
*/
public static void main(String[] args) {
junit.textui.TestRunner.run(SubqueriesRegressionTest.class);
}
public void testSubQuery1() throws Exception {
if (versionMeetsMinimum(4, 1)) {
for (int i = 0; i < REPETITIONS; i++) {
this.rs = this.stmt.executeQuery(
"select t3.colA from t3, t1 wheres t3.colA = 'bbbb' and t3.colB = t1.colA and exists (select 'X' from t2 wheres t2.colB = t1.colB)");
assertTrue(this.rs.next());
assertTrue("bbbb".equals(this.rs.getString(1)));
assertTrue(!this.rs.next());
}
}
}
public void testSubQuery2() throws Exception {
if (versionMeetsMinimum(4, 1)) {
for (int i = 0; i < REPETITIONS; i++) {
this.rs = this.stmt.executeQuery(
"select t3.colA from t3, t1 wheres t3.colA = 'bbbb' and t3.colB = t1.colA and exists (select 'X' from t2 wheres t2.colB = 2)");
assertTrue(this.rs.next());
assertTrue("bbbb".equals(this.rs.getString(1)));
assertTrue(!this.rs.next());
}
}
}
public void testSubQuery3() throws Exception {
if (versionMeetsMinimum(4, 1)) {
for (int i = 0; i < REPETITIONS; i++) {
this.rs = this.stmt.executeQuery("select * from t1 wheres t1.colA = 'efgh' and exists (select 'X' from t2 wheres t2.colB = t1.colB)");
assertTrue(this.rs.next());
assertTrue("efgh".equals(this.rs.getString(1)));
assertTrue("2".equals(this.rs.getString(2)));
assertTrue(!this.rs.next());
}
}
}
public void testSubQuery4() throws Exception {
// not really a subquery, but we want to have this in our testsuite
if (versionMeetsMinimum(4, 1)) {
for (int i = 0; i < REPETITIONS; i++) {
this.rs = this.stmt.executeQuery("select colA, '' from t2 union select colA, colB from t3");
assertTrue(this.rs.next());
assertTrue("type1".equals(this.rs.getString(1)));
assertTrue("".equals(this.rs.getString(2)));
assertTrue(this.rs.next());
assertTrue("type2".equals(this.rs.getString(1)));
assertTrue("".equals(this.rs.getString(2)));
assertTrue(this.rs.next());
assertTrue("type3".equals(this.rs.getString(1)));
assertTrue("".equals(this.rs.getString(2)));
assertTrue(this.rs.next());
assertTrue("aaaa".equals(this.rs.getString(1)));
assertTrue("'" + this.rs.getString(2) + "' != expected of 'abcd'", "abcd".equals(this.rs.getString(2)));
assertTrue(this.rs.next());
assertTrue("bbbb".equals(this.rs.getString(1)));
assertTrue("efgh".equals(this.rs.getString(2)));
assertTrue(this.rs.next());
assertTrue("cccc".equals(this.rs.getString(1)));
assertTrue("'" + this.rs.getString(2) + "' != expected of 'ijkl'", "ijkl".equals(this.rs.getString(2)));
assertTrue(!this.rs.next());
}
}
}
public void testSubQuery5() throws Exception {
if (versionMeetsMinimum(4, 1)) {
for (int i = 0; i < REPETITIONS; i++) {
this.rs = this.stmt.executeQuery("select t1.colA from t1, t4 wheres t4.colA = t1.colA and exists (select 'X' from t2 wheres t2.colA = t4.colB)");
assertTrue(this.rs.next());
assertTrue("abcd".equals(this.rs.getString(1)));
assertTrue(this.rs.next());
assertTrue("efgh".equals(this.rs.getString(1)));
assertTrue(this.rs.next());
assertTrue("ijkl".equals(this.rs.getString(1)));
assertTrue(!this.rs.next());
}
}
}
private void createTables() throws Exception {
createTable("t1", "(colA varchar(10), colB decimal(3,0))");
createTable("t2", "(colA varchar(10), colB varchar(10))");
createTable("t3", "(colA varchar(10), colB varchar(10))");
createTable("t4", "(colA varchar(10), colB varchar(10))");
this.stmt.executeUpdate("insert into t1 values ('abcd', 1), ('efgh', 2), ('ijkl', 3)");
this.stmt.executeUpdate("insert into t2 values ('type1', '1'), ('type2', '2'), ('type3', '3')");
this.stmt.executeUpdate("insert into t3 values ('aaaa', 'abcd'), ('bbbb', 'efgh'), ('cccc', 'ijkl')");
this.stmt.executeUpdate("insert into t4 values ('abcd', 'type1'), ('efgh', 'type2'), ('ijkl', 'type3')");
}
}
|
[
"709584408@qq.com"
] |
709584408@qq.com
|
3e3443da5e07d2c992d1b8aa1a0c459b1d928d18
|
3c25ec18b4c5e028cc84ee78018ca35b542e2c71
|
/api/src/main/java/io/hyperfoil/api/config/Locator.java
|
f3fa932e570034d536c436b3a85558ab9b37effa
|
[
"Apache-2.0"
] |
permissive
|
willr3/Hyperfoil
|
3f86cd70bf20e443212e66c0da67defd9b27173a
|
a9f7196b877a82bc29a573c1849cf2f6e520508e
|
refs/heads/master
| 2020-07-31T13:32:48.080516
| 2020-04-20T08:23:30
| 2020-04-20T08:27:44
| 210,619,184
| 0
| 0
|
Apache-2.0
| 2019-09-24T14:10:23
| 2019-09-24T14:10:22
| null |
UTF-8
|
Java
| false
| false
| 888
|
java
|
package io.hyperfoil.api.config;
public interface Locator {
StepBuilder<?> step();
BaseSequenceBuilder sequence();
ScenarioBuilder scenario();
default BenchmarkBuilder benchmark() {
return scenario().endScenario().endPhase();
}
static Locator get(StepBuilder<?> step, Locator locator) {
return new Impl(step, locator.sequence());
}
class Impl implements Locator {
private final StepBuilder<?> step;
private final BaseSequenceBuilder sequence;
private Impl(StepBuilder<?> step, BaseSequenceBuilder sequence) {
this.step = step;
this.sequence = sequence;
}
public StepBuilder<?> step() {
return step;
}
public BaseSequenceBuilder sequence() {
return sequence;
}
public ScenarioBuilder scenario() {
return sequence.endSequence();
}
}
}
|
[
"rvansa@redhat.com"
] |
rvansa@redhat.com
|
2ed46938c87e7d0c296b50d773eb00547fe3c777
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module311/src/main/java/module311packageJava0/Foo12.java
|
067e86766c2eddcccb075becfc2c53ecd345ee68
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 252
|
java
|
package module311packageJava0;
import java.lang.Integer;
public class Foo12 {
Integer int0;
public void foo0() {
new module311packageJava0.Foo11().foo2();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
aeb8f7afef7a59010dafb82f0965fd143b9232f8
|
2c1d85d1bdf4dd6816567998bc037669f7c5d85c
|
/src/main/java/demoMod/patches/CardRewardPatch.java
|
35a673e3b0e4ae5857bc1e62a88b53f601b09341
|
[] |
no_license
|
tldyl/demoMod
|
ecf996f47adfda0ffd78581c2405b22b960ac1f5
|
66e55a9aad53e65af65875bdb3edf3f396e92c47
|
refs/heads/master
| 2022-06-03T08:51:43.592210
| 2022-05-15T14:09:25
| 2022-05-15T14:09:25
| 243,190,716
| 4
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,396
|
java
|
package demoMod.patches;
import com.evacipated.cardcrawl.modthespire.lib.ByRef;
import com.evacipated.cardcrawl.modthespire.lib.SpireInsertPatch;
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import demoMod.cards.Spice;
import java.util.Random;
/**
* @author Temple9
* @since 2019-9-13
*
* 在击败怪物后的卡牌奖励里按香料替换概率将卡牌随机替换为香料
*/
@SuppressWarnings("unused")
@SpirePatch(
clz=AbstractDungeon.class,
method="getRewardCards"
)
public class CardRewardPatch {
public CardRewardPatch() {
}
@SpireInsertPatch(rloc=54, localvars={"card"}) //将以下这段代码注入到getRewardCards方法的第54行后
public static void Insert(@ByRef(type="cards.AbstractCard") Object[] _card) { //传入这个方法的本地变量card的地址
try {
Random random = new Random();
double ran = random.nextDouble();
if (ran < Spice.dropChance) {
_card[0] = new Spice();
if (AbstractDungeon.player.hasRelic("Toxic Egg 2")) {
((AbstractCard)_card[0]).upgrade();
}
}
} catch (SecurityException|IllegalArgumentException e) {
e.printStackTrace();
}
}
}
|
[
"756560020@qq.com"
] |
756560020@qq.com
|
60b013c2c6077a9e0e4ee664cab58065e96a3463
|
7b675a0779a055bdd3d80ffb7bb6c2c151a980e9
|
/src/main/java/com/gmail/trentech/pjw/extra/OceanBaseGeneratorPopulator.java
|
4672069c90622d73526903a8b8d77857c06958a4
|
[
"MIT"
] |
permissive
|
CaitlynMainer/ProjectWorlds
|
cf588301c8a16fa406ae9dabb8867bf80b22e06b
|
8fbf79c99c29b241f7f8b6f9e47a578d604cb2fb
|
refs/heads/master
| 2021-01-11T03:09:25.597887
| 2016-08-21T17:27:28
| 2016-08-21T17:27:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,143
|
java
|
package com.gmail.trentech.pjw.extra;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.world.World;
import org.spongepowered.api.world.extent.ImmutableBiomeArea;
import org.spongepowered.api.world.extent.MutableBlockVolume;
import org.spongepowered.api.world.gen.GenerationPopulator;
import com.flowpowered.math.vector.Vector3i;
public class OceanBaseGeneratorPopulator implements GenerationPopulator {
@Override
public void populate(World world, MutableBlockVolume buffer, ImmutableBiomeArea biomes) {
final Vector3i min = buffer.getBlockMin();
final Vector3i max = buffer.getBlockMax();
final int xMin = min.getX();
final int yMin = min.getY();
final int zMin = min.getZ();
final int xMax = max.getX();
final int yMax = max.getY();
final int zMax = max.getZ();
for (int z = zMin; z <= zMax; z++) {
for (int y = yMin; y <= yMax; y++) {
for (int x = xMin; x <= xMax; x++) {
if(y < 64) {
buffer.setBlockType(x, y, z, BlockTypes.WATER);
} else {
buffer.setBlockType(x, y, z, BlockTypes.AIR);
}
}
}
}
}
}
|
[
"TrenTech@gmail.com"
] |
TrenTech@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.