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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d665a2f5154db69d715c216f727cb578f70af19b
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/data/profile/C13075b.java
|
0b4454ac50c6bbe00509c9cf154d4b033d080b00
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 1,188
|
java
|
package com.tinder.data.profile;
import com.tinder.api.TinderUserApi;
import com.tinder.data.profile.adapter.C10915e;
import dagger.internal.Factory;
import javax.inject.Provider;
/* renamed from: com.tinder.data.profile.b */
public final class C13075b implements Factory<C8753a> {
/* renamed from: a */
private final Provider<TinderUserApi> f41648a;
/* renamed from: b */
private final Provider<C10915e> f41649b;
public /* synthetic */ Object get() {
return m50889a();
}
public C13075b(Provider<TinderUserApi> provider, Provider<C10915e> provider2) {
this.f41648a = provider;
this.f41649b = provider2;
}
/* renamed from: a */
public C8753a m50889a() {
return C13075b.m50887a(this.f41648a, this.f41649b);
}
/* renamed from: a */
public static C8753a m50887a(Provider<TinderUserApi> provider, Provider<C10915e> provider2) {
return new C8753a((TinderUserApi) provider.get(), (C10915e) provider2.get());
}
/* renamed from: b */
public static C13075b m50888b(Provider<TinderUserApi> provider, Provider<C10915e> provider2) {
return new C13075b(provider, provider2);
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
8c0e192b29270fda4b986c2b6f41d95b47a53332
|
2d659a53f1b1ea4472737691b80ad9354f1e4db4
|
/android/support/v4/widget/C0106g.java
|
8a92612cabc0270c27778f8ffcfe423251199a1d
|
[] |
no_license
|
sydneyli/bylock_src
|
52117e0e419f4d57f352547c5e5c597228247a93
|
226d54fdafb14dfd3bab48c1a343c83a5544e060
|
refs/heads/master
| 2021-04-29T18:11:57.792778
| 2018-02-15T23:05:02
| 2018-02-15T23:05:02
| 121,687,542
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 234
|
java
|
package android.support.v4.widget;
import android.view.View;
/* compiled from: MyApp */
public interface C0106g {
void m892a(int i);
void m893a(View view);
void m894a(View view, float f);
void m895b(View view);
}
|
[
"sydney@eff.org"
] |
sydney@eff.org
|
59592c8716e030b696ec03312dc1008457c02bf6
|
e3df657f6a17ba9f1f2346c64d12cb1b6c806c71
|
/sdk/src/main/java/com/zz/opensdk/sdk/domain/OpenAPIEntity.java
|
efe7c74248f722d321e1cc8abd3eb21f15360065
|
[] |
no_license
|
zhangzui/my_opensdk
|
fa8d206195ee49ab31cd216fa06808e9d52e0092
|
af48b830ba7264e606317fe402c81fc7a3b23298
|
refs/heads/master
| 2020-03-27T12:41:13.985500
| 2018-09-10T08:57:11
| 2018-09-10T08:57:11
| 146,561,978
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,911
|
java
|
package com.zz.opensdk.sdk.domain;
/**
* @author zhangzuizui
* @date 2018/7/11 12:13
*/
public class OpenAPIEntity {
/**
* 版本号
*/
public String version;
/**
* appId
*/
public String appId;
/**
* timestamp
* 发送请求的时间,格式"yyyy-MM-dd HH:mm:ss"
*/
public String timestamp;
/**
* 字符集GBK/UTF-8等
*/
public String charset;
/**
* 交易类型
*/
public String apiType;
/**
* 加密类型
*/
public String encryptType;
/**
* 签名类型
*/
public String signType;
/**
* 业务数据
*/
public String data;
/**
* 商户号
*/
private String merchantNo;
/**
* 所有数据签名
*/
public String sign;
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public String getCharset() {
return charset;
}
public void setCharset(String charset) {
this.charset = charset;
}
public String getApiType() {
return apiType;
}
public void setApiType(String apiType) {
this.apiType = apiType;
}
public String getEncryptType() {
return encryptType;
}
public void setEncryptType(String encryptType) {
this.encryptType = encryptType;
}
public String getSignType() {
return signType;
}
public void setSignType(String signType) {
this.signType = signType;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String getMerchantNo() {
return merchantNo;
}
public void setMerchantNo(String merchantNo) {
this.merchantNo = merchantNo;
}
public String getSign() {
return sign;
}
public void setSign(String sign) {
this.sign = sign;
}
@Override
public String toString() {
return "BizEntity{" +
"version='" + version + '\'' +
", appId='" + appId + '\'' +
", timestamp='" + timestamp + '\'' +
", charset='" + charset + '\'' +
", encryptType='" + encryptType + '\'' +
", signType='" + signType + '\'' +
", apiType='" + apiType + '\'' +
", data='" + data + '\'' +
", merchantNo='" + merchantNo + '\'' +
", sign='" + sign + '\'' +
'}';
}
}
|
[
"zhangzuizui@qq.com"
] |
zhangzuizui@qq.com
|
ba464b71e2d82b09179fed1fe5dad4b994f9923a
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/JetBrains--intellij-community/b29c6a934c6e0cb03ba932c64a13a9ed0d799330/before/MoveClassesHandler.java
|
1d66c2dc106c476191e8b646cdc849b24bf4e792
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,932
|
java
|
package com.intellij.refactoring.move.moveClassesOrPackages;
import com.intellij.psi.*;
import com.intellij.psi.impl.source.jsp.jspJava.JspClass;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.ex.DataConstantsEx;
import com.intellij.openapi.editor.Editor;
import org.jetbrains.annotations.Nullable;
public class MoveClassesHandler extends MoveClassesOrPackagesHandlerBase {
public boolean canMove(final PsiElement[] elements, @Nullable final PsiElement targetContainer) {
for(PsiElement element: elements) {
if (element instanceof JspClass) return false;
if (!(element instanceof PsiClass)) return false;
if (!(element.getParent() instanceof PsiFile)) return false;
}
return super.canMove(elements, targetContainer);
}
public boolean isValidTarget(final PsiElement psiElement) {
return psiElement instanceof PsiClass ||
MovePackagesHandler.isPackageOrDirectory(psiElement);
}
public boolean tryToMove(final PsiElement element, final Project project, final DataContext dataContext, final PsiReference reference,
final Editor editor) {
if (isReferenceInAnonymousClass(reference)) return false;
if (element instanceof PsiClass && !(element instanceof PsiAnonymousClass) && element.getParent() instanceof PsiFile) {
MoveClassesOrPackagesImpl.doMove(project, new PsiElement[]{element},
(PsiElement)dataContext.getData(DataConstantsEx.TARGET_PSI_ELEMENT), null);
return true;
}
return false;
}
public static boolean isReferenceInAnonymousClass(@Nullable final PsiReference reference) {
if (reference instanceof PsiJavaCodeReferenceElement &&
((PsiJavaCodeReferenceElement)reference).getParent() instanceof PsiAnonymousClass) {
return true;
}
return false;
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
4a4d12f8c94a7bfce38db81d29d6e72bbb1bef1b
|
ec9f9f08913a68a4bf08d418867b5a35003199d6
|
/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerStartupConfigurationTest.java
|
464cdfe51d20392da6df963c460a527ae84a5e78
|
[] |
no_license
|
jusbrasil/maven-surefire
|
d0aa3235dd941157ebe759257172d9e82b78e025
|
3ad8cf4f5067f213b5c25ff10849d9f81da9a68f
|
refs/heads/trunk
| 2023-04-26T20:32:06.330387
| 2012-07-04T22:34:55
| 2012-07-04T22:34:55
| 4,927,671
| 0
| 0
| null | 2023-04-14T20:08:47
| 2012-07-06T16:22:07
|
Java
|
UTF-8
|
Java
| false
| false
| 7,796
|
java
|
package org.apache.maven.plugin.surefire.booterclient;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Properties;
import org.apache.maven.surefire.booter.BooterDeserializer;
import org.apache.maven.surefire.booter.ClassLoaderConfiguration;
import org.apache.maven.surefire.booter.Classpath;
import org.apache.maven.surefire.booter.ClasspathConfiguration;
import org.apache.maven.surefire.booter.PropertiesWrapper;
import org.apache.maven.surefire.booter.ProviderConfiguration;
import org.apache.maven.surefire.booter.StartupConfiguration;
import org.apache.maven.surefire.booter.SystemPropertyManager;
import org.apache.maven.surefire.report.ReporterConfiguration;
import org.apache.maven.surefire.testset.DirectoryScannerParameters;
import org.apache.maven.surefire.testset.RunOrderParameters;
import org.apache.maven.surefire.testset.TestArtifactInfo;
import org.apache.maven.surefire.testset.TestRequest;
import org.apache.maven.surefire.util.RunOrder;
import junit.framework.TestCase;
/**
* Performs roundtrip testing of serialization/deserialization of The StartupConfiguration
*
* @author Kristian Rosenvold
*/
public class BooterDeserializerStartupConfigurationTest
extends TestCase
{
private final ClasspathConfiguration classpathConfiguration = createClasspathConfiguration();
public void testProvider()
throws IOException
{
assertEquals( "com.provider", getReloadedStartupConfiguration().getProviderClassName() );
}
public void testClassPathConfiguration()
throws IOException
{
ClasspathConfiguration reloadedClasspathConfiguration =
getReloadedStartupConfiguration().getClasspathConfiguration();
assertEquals( classpathConfiguration, reloadedClasspathConfiguration );
}
private void assertEquals( ClasspathConfiguration expectedConfiguration,
ClasspathConfiguration actualConfiguration )
{
assertEquals( expectedConfiguration.getTestClasspath().getClassPath(),
actualConfiguration.getTestClasspath().getClassPath() );
Properties propertiesForExpectedConfiguration = getPropertiesForClasspathConfiguration( expectedConfiguration );
Properties propertiesForActualConfiguration = getPropertiesForClasspathConfiguration( actualConfiguration );
assertEquals( propertiesForExpectedConfiguration, propertiesForActualConfiguration );
}
private Properties getPropertiesForClasspathConfiguration( ClasspathConfiguration configuration )
{
Properties properties = new Properties();
configuration.setForkProperties( new PropertiesWrapper( properties ) );
return properties;
}
public void testClassLoaderConfiguration()
throws IOException
{
assertFalse( getReloadedStartupConfiguration().isManifestOnlyJarRequestedAndUsable() );
}
public void testClassLoaderConfigurationTrues()
throws IOException
{
final StartupConfiguration testStartupConfiguration =
getTestStartupConfiguration( getManifestOnlyJarForkConfiguration() );
boolean current = testStartupConfiguration.isManifestOnlyJarRequestedAndUsable();
assertEquals( current, saveAndReload( testStartupConfiguration ).isManifestOnlyJarRequestedAndUsable() );
}
private ClasspathConfiguration createClasspathConfiguration()
{
Classpath testClassPath = new Classpath( Arrays.asList( new String[]{ "CP1", "CP2" } ) );
Classpath providerClasspath = new Classpath( Arrays.asList( new String[]{ "SP1", "SP2" } ) );
return new ClasspathConfiguration( testClassPath, providerClasspath, new Classpath(), true, true );
}
public static ClassLoaderConfiguration getSystemClassLoaderConfiguration()
{
return new ClassLoaderConfiguration( true, false );
}
public static ClassLoaderConfiguration getManifestOnlyJarForkConfiguration()
{
return new ClassLoaderConfiguration( true, true );
}
private StartupConfiguration getReloadedStartupConfiguration()
throws IOException
{
ClassLoaderConfiguration classLoaderConfiguration = getSystemClassLoaderConfiguration();
return saveAndReload( getTestStartupConfiguration( classLoaderConfiguration ) );
}
private StartupConfiguration saveAndReload( StartupConfiguration startupConfiguration )
throws IOException
{
final ForkConfiguration forkConfiguration = ForkConfigurationTest.getForkConfiguration();
Properties props = new Properties();
BooterSerializer booterSerializer = new BooterSerializer( forkConfiguration, props );
String aTest = "aTest";
booterSerializer.serialize( getProviderConfiguration(), startupConfiguration, aTest, "never" );
final File propsTest =
SystemPropertyManager.writePropertiesFile( props, forkConfiguration.getTempDirectory(), "propsTest", true );
BooterDeserializer booterDeserializer = new BooterDeserializer( new FileInputStream( propsTest ) );
return booterDeserializer.getProviderConfiguration();
}
private ProviderConfiguration getProviderConfiguration()
{
File cwd = new File( "." );
DirectoryScannerParameters directoryScannerParameters =
new DirectoryScannerParameters( cwd, new ArrayList<String>(), new ArrayList<String>(),
new ArrayList<String>(), Boolean.TRUE, "hourly" );
ReporterConfiguration reporterConfiguration = new ReporterConfiguration( cwd, Boolean.TRUE );
String aUserRequestedTest = "aUserRequestedTest";
String aUserRequestedTestMethod = "aUserRequestedTestMethod";
TestRequest testSuiteDefinition =
new TestRequest( Arrays.asList( getSuiteXmlFileStrings() ), getTestSourceDirectory(), aUserRequestedTest,
aUserRequestedTestMethod );
RunOrderParameters runOrderParameters = new RunOrderParameters( RunOrder.DEFAULT, null );
return new ProviderConfiguration( directoryScannerParameters, runOrderParameters, true, reporterConfiguration,
new TestArtifactInfo( "5.0", "ABC" ), testSuiteDefinition, new Properties(),
BooterDeserializerProviderConfigurationTest.aTestTyped );
}
private StartupConfiguration getTestStartupConfiguration( ClassLoaderConfiguration classLoaderConfiguration )
{
return new StartupConfiguration( "com.provider", classpathConfiguration, classLoaderConfiguration, "never",
false );
}
private File getTestSourceDirectory()
{
return new File( "TestSrc" );
}
private Object[] getSuiteXmlFileStrings()
{
return new Object[]{ "A1", "A2" };
}
}
|
[
"krosenvold@apache.org"
] |
krosenvold@apache.org
|
bf42653561158ac9fb5653c00051482765b18331
|
c19435aface677d3de0958c7fa8b0aa7e3b759f3
|
/base/api/src/main/java/org/artifactory/api/rest/blob/Parts.java
|
0bff91f49ecc481289b1f3b997aac2564bcd837a
|
[] |
no_license
|
apaqi/jfrog-artifactory-5.11.0
|
febc70674b4a7b90f37f2dfd126af36b90784c28
|
6a4204ed9ce9334d3eb7a8cb89c1d9dc72d709c1
|
refs/heads/master
| 2020-03-18T03:13:41.286825
| 2018-05-21T06:57:30
| 2018-05-21T06:57:30
| 134,229,368
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 528
|
java
|
package org.artifactory.api.rest.blob;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.List;
import java.util.Map;
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class Parts {
@JsonProperty("parts_list")
public List<PartsList> partsList;
@JsonProperty("checksums_ordinal")
public Map<String, Long> checksumsOrdinal;
}
|
[
"wangpeixuan00@126.com"
] |
wangpeixuan00@126.com
|
8a9339b5a2c3256a2023300b98518e38dd0473bf
|
810c67990dc291d31723691defa68e35f20405c3
|
/okhttpmanager/src/main/java/com/dpzx/okhttpmanager/User.java
|
4f98d699faabfa969c6fa19f437f3cd6057bf88f
|
[
"Apache-2.0"
] |
permissive
|
iblue007/okhttpManager-master
|
2c6105cd47144fb421324321de3eddec2a04c217
|
62ecdfb53f88d7e7b768bc4f044d7919f29dbe8f
|
refs/heads/master
| 2020-04-27T15:35:39.082410
| 2019-03-08T02:07:27
| 2019-03-08T02:07:27
| 174,452,175
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 432
|
java
|
package com.dpzx.okhttpmanager;
public class User {
public String username ;
public String password ;
public User() {
// TODO Auto-generated constructor stub
}
public User(String username, String password) {
this.username = username;
this.password = password;
}
@Override
public String toString()
{
return "User{" +
"username='" + username + '\'' +
", password='" + password + '\'' +
'}';
}
}
|
[
"744639775@qq.com"
] |
744639775@qq.com
|
daff4b2ad028c8efa39b3149ecd8360fd9f36552
|
7e02f58d78bb10bf96c7dd383ef4072cecf03287
|
/leopard-test/src/test/java/io/leopard/test/mock/stubbing/AssertMethodHandlerTest.java
|
287c96a950960c663fca8f2d4a9052f6d87535d5
|
[] |
no_license
|
iopass4/leopard
|
849ec2a6af47a6deacf17d76c835ef51dd38af72
|
304f002ebfc89a0bda26ebe33ce6959f9ead8d2f
|
refs/heads/master
| 2021-01-17T08:18:30.956585
| 2015-02-24T06:54:18
| 2015-02-24T06:54:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 554
|
java
|
package io.leopard.test.mock.stubbing;
import java.lang.reflect.Method;
import org.junit.Assert;
import org.junit.Test;
public class AssertMethodHandlerTest {
public static class MethodHandlerImpl extends AssertMethodHandler {
@Override
public Object invoke(Object self, Method thisMethod, Method proceed, Object[] args) throws Throwable {
return null;
}
}
@Test
public void setMock() {
MethodHandlerImpl methodHandler = new MethodHandlerImpl();
methodHandler.setMock("str");
Assert.assertNotNull(methodHandler.getMock());
}
}
|
[
"tanhaichao@gmail.com"
] |
tanhaichao@gmail.com
|
6fb58b8881f1ce1c6f3e43640aeffcf62e53c7ef
|
ca992e8df8bdb3a75b02284f8fca8db5a0a64311
|
/bos_management/src/main/java/cn/itcast/bos/dao/PermissionRepository.java
|
d3081b50b79192de3618989ed5303167c8b32c00
|
[] |
no_license
|
chenxup/bos
|
d992e6b2aa2ade9cf24279f36c4174df06cb7726
|
c0a81b746b902f5db66add91029956279b2670e0
|
refs/heads/master
| 2021-07-08T14:27:26.032566
| 2017-10-06T08:33:04
| 2017-10-06T08:33:04
| 103,370,416
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 575
|
java
|
package cn.itcast.bos.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import cn.itcast.bos.domain.system.Permission;
public interface PermissionRepository extends JpaRepository<Permission,Integer>,JpaSpecificationExecutor<Permission> {
@Query("select distinct p from Permission p inner join p.roles r inner join r.users u where u.id=?")
List<Permission> findByUser(Integer id);
}
|
[
"123"
] |
123
|
e6e160c3b0f983a58a9865aaee821488656c1b29
|
23b9cf65e3377c2e91445503a9f2bbfd1c93be22
|
/Java/workspace/Java1-Chapter14/test/com/skilldistillery/stringtest/StringTest.java
|
bd691d95f95f44a9b34e6d86ec08f18fed11e398
|
[] |
no_license
|
TravisWay/Skill-Distillery
|
6d596529664e9e492d40d0e92f081fe6e32cf473
|
153ae2cbb070761e7accc0ca291f41c608ecefb1
|
refs/heads/master
| 2021-01-23T10:43:27.491949
| 2017-07-14T01:03:29
| 2017-07-14T01:03:29
| 93,082,758
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,728
|
java
|
package com.skilldistillery.stringtest;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.sun.org.apache.xml.internal.resolver.helpers.PublicId;
import sun.security.util.Length;
public class StringTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void test_CharAt_returns_character_at_index() {
String tester = "abcde";
assertEquals('a', tester.charAt(0));
assertEquals('e', tester.charAt(4));
}
@Test
public void test_CharAt_throws_IndexOutOfBounds_for_negative_or_notless_than_Length_of_string(){
try {
String tester = "0123";
tester.charAt(4);
fail("Should have thrown exception here");
} catch (IndexOutOfBoundsException e) {
// TODO: handle exception
}
}
@Test
public void test_Concat(){
String tester = "abc";
String tester2 = "def";
assertEquals("abcdef",tester.concat(tester2));
}
@Test
public void test_contains(){
String tester = "abc";
assertEquals(true,tester.contains("a"));
}
@Test
public void test_contains_if_String_is_null_throws_NullPointerException(){
try {
String tester= null;
tester.contains("a");
fail("Should have thrown a Null Pointer Exception");
} catch (NullPointerException e) {
// TODO: handle exception
}
}
@Test
public void testendsWith(){
String tester = "abcd";
assertEquals(true,tester.endsWith("d"));
}
@Test
public void testindexOf(){
String tester ="abcd";
assertEquals(2, tester.indexOf("c"));
}
@Test
public void testisEmpty(){
String tester ="abcd";
assertEquals(false, tester.isEmpty());
}
}
|
[
"travis_sti@yahoo.com"
] |
travis_sti@yahoo.com
|
59478038966bc5ab0001edfba3475578cf23593d
|
8679c1b269edb868415211667911b01ee087c82b
|
/src/main/java/be/jcrafters/pastebin/DumpRecogniser.java
|
43a1c33d47a33efa2ec05eb61d0d46100b4dc851
|
[] |
no_license
|
YThibos/code-with-quarkus
|
16c1ba1586bbbb4081e180f0fcd3962ea228bb95
|
4c71ace228ccbaf15abc635a5b19c60e92aa8542
|
refs/heads/master
| 2023-07-13T09:49:23.420653
| 2021-08-31T11:43:29
| 2021-08-31T11:43:29
| 394,668,045
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 203
|
java
|
package be.jcrafters.pastebin;
import javax.enterprise.context.RequestScoped;
@RequestScoped
public class DumpRecogniser {
public Dump handle(String stringDump) {
return new Dump(stringDump);
}
}
|
[
"yannick.thibos@gmail.com"
] |
yannick.thibos@gmail.com
|
d8268428c49e4d5f1cef3303a4aa588c34a27d1e
|
d5515553d071bdca27d5d095776c0e58beeb4a9a
|
/src/net/sourceforge/plantuml/activitydiagram3/command/CommandRepeatWhile3.java
|
d23c3179355c1d8adc88271fa762e8ef5098b45c
|
[] |
no_license
|
ccamel/plantuml
|
29dfda0414a3dbecc43696b63d4dadb821719489
|
3100d49b54ee8e98537051e071915e2060fe0b8e
|
refs/heads/master
| 2022-07-07T12:03:37.351931
| 2016-12-14T21:01:03
| 2016-12-14T21:01:03
| 77,067,872
| 1
| 0
| null | 2022-05-30T09:56:21
| 2016-12-21T16:26:58
|
Java
|
UTF-8
|
Java
| false
| false
| 3,813
|
java
|
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
*
* Original Author: Arnaud Roques
*
*
*/
package net.sourceforge.plantuml.activitydiagram3.command;
import net.sourceforge.plantuml.activitydiagram3.ActivityDiagram3;
import net.sourceforge.plantuml.command.CommandExecutionResult;
import net.sourceforge.plantuml.command.SingleLineCommand2;
import net.sourceforge.plantuml.command.regex.RegexConcat;
import net.sourceforge.plantuml.command.regex.RegexLeaf;
import net.sourceforge.plantuml.command.regex.RegexOptional;
import net.sourceforge.plantuml.command.regex.RegexOr;
import net.sourceforge.plantuml.command.regex.RegexResult;
import net.sourceforge.plantuml.cucadiagram.Display;
import net.sourceforge.plantuml.graphic.Rainbow;
public class CommandRepeatWhile3 extends SingleLineCommand2<ActivityDiagram3> {
public CommandRepeatWhile3() {
super(getRegexConcat());
}
static RegexConcat getRegexConcat() {
return new RegexConcat(//
new RegexLeaf("^"), //
new RegexLeaf("repeat[%s]?while"), //
new RegexLeaf("[%s]*"), //
new RegexOr(//
new RegexConcat(new RegexLeaf("TEST3", "\\((.*?)\\)"), //
new RegexLeaf("[%s]*(is|equals?)[%s]*"), //
new RegexLeaf("WHEN3", "\\((.+?)\\)"), //
new RegexLeaf("[%s]*(not)[%s]*"), //
new RegexLeaf("OUT3", "\\((.+?)\\)")), //
new RegexConcat(new RegexLeaf("TEST4", "\\((.*?)\\)"), //
new RegexLeaf("[%s]*(not)[%s]*"), //
new RegexLeaf("OUT4", "\\((.+?)\\)")), //
new RegexConcat(new RegexLeaf("TEST2", "\\((.*?)\\)"), //
new RegexLeaf("[%s]*(is|equals?)[%s]*"), //
new RegexLeaf("WHEN2", "\\((.+?)\\)") //
), //
new RegexLeaf("TEST1", "(?:\\((.*)\\))?") //
), //
new RegexLeaf("[%s]*"), //
new RegexOptional(new RegexConcat( //
new RegexOr(//
new RegexLeaf("->"), //
new RegexLeaf("COLOR", CommandArrow3.STYLE_COLORS)), //
new RegexLeaf("[%s]*"), //
new RegexOr(//
new RegexLeaf("LABEL", "(.*)"), //
new RegexLeaf("")) //
)), //
new RegexLeaf(";?$"));
}
@Override
protected CommandExecutionResult executeArg(ActivityDiagram3 diagram, RegexResult arg) {
final Display test = Display.getWithNewlines(arg.getLazzy("TEST", 0));
final Display yes = Display.getWithNewlines(arg.getLazzy("WHEN", 0));
final Display out = Display.getWithNewlines(arg.getLazzy("OUT", 0));
final String colorString = arg.get("COLOR", 0);
final Rainbow rainbow;
if (colorString == null) {
rainbow = Rainbow.none();
} else {
rainbow = Rainbow.build(diagram.getSkinParam(), colorString, diagram.getSkinParam()
.colorArrowSeparationSpace());
}
final Display linkLabel = Display.getWithNewlines(arg.get("LABEL", 0));
return diagram.repeatWhile(test, yes, out, linkLabel, rainbow);
}
}
|
[
"plantuml@gmail.com"
] |
plantuml@gmail.com
|
04222483169c700ec62c94bc38e5a0d79b5e5c7c
|
978f8e0107e19dfbb7d71c28b4c745f29da30ae4
|
/java文档资料/java/spring/spring/word/全用xml配置的ssh的架构 案例/myShopping/src/cn/wulin/action/AuthorAction.java
|
0927951f65d20287faf9df4a174f23c4e8502b79
|
[] |
no_license
|
buyaoyongroot/wulin_java_resources_repository
|
e9eb134fa14b80de32124a911902f737e44cf078
|
de2ffc06e4227a7a5e4068243d8e8745865a9e23
|
refs/heads/master
| 2022-03-08T09:52:24.172318
| 2019-11-15T02:04:05
| 2019-11-15T02:04:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 301
|
java
|
package cn.wulin.action;
import cn.wulin.base.ModelDrivenBaseAction;
import cn.wulin.domain.Author;
public class AuthorAction extends ModelDrivenBaseAction<Author>{
private static final long serialVersionUID = 8170603451090522065L;
public String list() throws Exception {
return null;
}
}
|
[
"1178649872@qq.com"
] |
1178649872@qq.com
|
734b685ab14059ee2a589249ebb354f509a2ee9d
|
9f907527f44fdfc33b5add9f8d313bbeb96d1192
|
/src/codeforces/contests301_400/problemset320/PingPong.java
|
09ecb470835a9cc70f019a698d1d2a3bb40b5a88
|
[] |
no_license
|
kocko/algorithms
|
7af7052b13a080992dcfbff57171a2cac7c50c67
|
382b6b50538220a26e1af1644e72a4e1796374b6
|
refs/heads/master
| 2023-08-03T21:15:27.070471
| 2023-08-03T14:39:45
| 2023-08-03T14:39:45
| 45,342,667
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,196
|
java
|
package codeforces.contests301_400.problemset320;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class PingPong implements Closeable {
private InputReader in = new InputReader(System.in);
private PrintWriter out = new PrintWriter(System.out);
private class Interval {
int a;
int b;
private Interval(int a, int b) {
this.a = a;
this.b = b;
}
}
private boolean[][] graph = new boolean[101][101];
private boolean[] visited;
private void dfs(int u) {
visited[u] = true;
for (int i = 1; i < 101; i++) {
if (graph[u][i] && !visited[i]) {
dfs(i);
}
}
}
public void solve() {
int n = in.ni();
Interval[] intervals = new Interval[101];
int idx = 1;
for (int c = 1; c <= n; c++) {
int type = in.ni();
int u = in.ni(), v = in.ni();
if (type == 1) {
Interval interval = new Interval(u, v);
intervals[idx] = interval;
for (int i = 1; i <= idx; i++) {
if (reachable(intervals[i], interval)) {
graph[i][idx] = true;
}
if (reachable(interval, intervals[i])) {
graph[idx][i] = true;
}
}
idx++;
} else {
visited = new boolean[101];
dfs(u);
out.println(visited[v] ? "YES" : "NO");
}
}
}
private boolean reachable(Interval m, Interval n) {
return (m.a > n.a && m.a < n.b) || (m.b > n.a && m.b < n.b);
}
@Override
public void close() throws IOException {
in.close();
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int ni() {
return Integer.parseInt(next());
}
public long nl() {
return Long.parseLong(next());
}
public void close() throws IOException {
reader.close();
}
}
public static void main(String[] args) throws IOException {
try (PingPong instance = new PingPong()) {
instance.solve();
}
}
}
|
[
"konstantin.yovkov@tis.biz"
] |
konstantin.yovkov@tis.biz
|
335b9fb8ab69fd33d7a08b89fd6939941bbde002
|
1c6fdc01317bea90fc891394aed224225c9101cd
|
/home/home-parent/home-cart-service/src/main/java/com/kai/home/cart/dao/OmsCartItemMapper.java
|
3431f0a16f2f2af88754fc346994224431494f67
|
[] |
no_license
|
MENGRUStyle/xiangmu
|
cd0c16ec8081f3bd2e54978602d148e58d2c930a
|
45f2d01019912680b57bf76d5ef427415e73777e
|
refs/heads/master
| 2022-12-29T12:51:52.596088
| 2020-10-19T10:11:09
| 2020-10-19T10:11:09
| 305,314,698
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 186
|
java
|
package com.kai.home.cart.dao;
import com.kai.home.product.pojo.OmsCartItem;
import tk.mybatis.mapper.common.Mapper;
public interface OmsCartItemMapper extends Mapper<OmsCartItem> {
}
|
[
"admin@admin.com"
] |
admin@admin.com
|
f96fe1dda745a44c3d37d27b3436697fcecb4a70
|
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
|
/tags/2007-08-13/seasar2-2.4.17/s2-extension/src/main/java/org/seasar/extension/dbcp/ConnectionWrapper.java
|
fbb82f4f499c814f6dbc97362a186573a822521d
|
[
"Apache-2.0"
] |
permissive
|
svn2github/s2container
|
54ca27cf0c1200a93e1cb88884eb8226a9be677d
|
625adc6c4e1396654a7297d00ec206c077a78696
|
refs/heads/master
| 2020-06-04T17:15:02.140847
| 2013-08-09T09:38:15
| 2013-08-09T09:38:15
| 10,850,644
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,189
|
java
|
/*
* Copyright 2004-2007 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.seasar.extension.dbcp;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.XAConnection;
import javax.transaction.xa.XAResource;
/**
* コネクションをラップするためのインターフェースです。 {@link ConnectionPool}で管理するのはこのインターフェースのオブジェクトです。
*
* @author higa
*
*/
public interface ConnectionWrapper extends Connection {
/**
* 本当にクローズします。 {@link Connection#close()}を呼び出すとプールに返るだけで実際にはクローズしません。
*/
void closeReally();
/**
* 解放します。
*
* @throws SQLException
* SQL例外が発生した場合
*/
void release() throws SQLException;
/**
* 初期化します。
*
* @param localTx
* トランザクション中かどうか
*/
void init(boolean localTx);
/**
* クリーンアップします。
*/
void cleanup();
/**
* 物理的なコネクションを返します。
*
* @return 物理的なコネクション
*/
Connection getPhysicalConnection();
/**
* XAリソースを返します。
*
* @return XAリソース
*/
XAResource getXAResource();
/**
* XAコネクションを返します。
*
* @return XAコネクション
*/
XAConnection getXAConnection();
}
|
[
"koichik@319488c0-e101-0410-93bc-b5e51f62721a"
] |
koichik@319488c0-e101-0410-93bc-b5e51f62721a
|
54c5717c9be4bfa2595f6cd5a5927968011dfa8e
|
6117cc2c481355d20b25a47e1d557609b784ac75
|
/src/main/java/interview/bean/Invoice.java
|
0f9b48cf94f585ad6467afa25dad82b6fb284c38
|
[] |
no_license
|
kocko/interview
|
4a7b1d9926746c55cfdd031aab2c55911a434ec6
|
eb374d691f1d181797624d0f479a836e2f9f2113
|
refs/heads/master
| 2021-01-19T13:50:28.817760
| 2014-11-20T13:54:31
| 2014-11-20T13:54:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,354
|
java
|
package interview.bean;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
@XmlRootElement
public class Invoice {
private String id;
private String invoiceNo;
private String buyer;
private BigDecimal amount;
private String currency;
private String purchaseOrder;
private String invoiceImage;
private String imageName;
private Integer itemNumber;
private BigDecimal itemAmount;
private Double quantity;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getInvoiceNo() {
return invoiceNo;
}
@XmlElement(name = "invoice_number")
public void setInvoiceNo(String invoiceNo) {
this.invoiceNo = invoiceNo;
}
public String getBuyer() {
return buyer;
}
public void setBuyer(String buyer) {
this.buyer = buyer;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getPurchaseOrder() {
return purchaseOrder;
}
@XmlElement(name = "purchase_order")
public void setPurchaseOrder(String purchaseOrder) {
this.purchaseOrder = purchaseOrder;
}
public String getInvoiceImage() {
return invoiceImage;
}
@XmlTransient
public void setInvoiceImage(String invoiceImage) {
this.invoiceImage = invoiceImage;
}
public String getImageName() {
return imageName;
}
@XmlElement(name = "image_name")
public void setImageName(String imageName) {
this.imageName = imageName;
}
public Integer getItemNumber() {
return itemNumber;
}
@XmlElement(name = "item_number")
public void setItemNumber(Integer itemNumber) {
this.itemNumber = itemNumber;
}
public BigDecimal getItemAmount() {
return itemAmount;
}
@XmlElement(name = "item_amount")
public void setItemAmount(BigDecimal itemAmount) {
this.itemAmount = itemAmount;
}
public Double getQuantity() {
return quantity;
}
public void setQuantity(Double quantity) {
this.quantity = quantity;
}
}
|
[
"konstantin.yovkov@gmail.com"
] |
konstantin.yovkov@gmail.com
|
2aaa3a7d9ed84b4e2198603bb906cc2e90cb7d1e
|
8a86f37d2404198bacd2f75fba3112cd78e71d81
|
/1-Learn/PlayMp3Correctly/app/src/androidTest/java/com/jikexueyuan/playmp3correctly/ApplicationTest.java
|
df55a6b90edad25d8b802df38be74136095896da
|
[] |
no_license
|
BinYangXian/AndroidStudioProjects
|
86791a16b99570aeb585524f03ccea3d3360596a
|
9438f0271625eb30de846bb3c2e8f14be2cf069c
|
refs/heads/master
| 2020-12-25T09:57:45.860434
| 2016-07-30T02:27:12
| 2016-07-30T02:27:12
| 62,277,964
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 363
|
java
|
package com.jikexueyuan.playmp3correctly;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
|
[
"350852832@qq.com"
] |
350852832@qq.com
|
9ada4149201e9b87bf56698b164bb00ca012c73c
|
6b34e9f52ebd095dc190ee9e89bcb5c95228aed6
|
/l2gw-core/highfive/loginserver/java/ru/l2gw/extensions/ccpGuard/login/crypt/ProtectionCrypt.java
|
b7c511496114921bb704036c7e1ad3c1ca90268d
|
[] |
no_license
|
tablichka/play4
|
86c057ececdb81f24fc493c7557b7dbb7260218d
|
b0c7d142ab162b7b37fe79d203e153fcf440a8a6
|
refs/heads/master
| 2022-04-25T17:04:32.244384
| 2020-04-27T12:59:45
| 2020-04-27T12:59:45
| 259,319,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,683
|
java
|
package ru.l2gw.extensions.ccpGuard.login.crypt;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import ru.l2gw.extensions.ccpGuard.ConfigProtect;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.StringTokenizer;
/**
* @author: rage
* @date: 03.03.12 16:28
*/
public class ProtectionCrypt
{
private static final Log _log = LogFactory.getLog(ProtectionCrypt.class.getSimpleName());
private static byte [] KeyData = new byte[272];
int x;
int y;
byte[] state = new byte[256];
final int arcfour_byte()
{
int x;
int y;
int sx, sy;
x = (this.x + 1) & 0xff;
sx = (int) state[x];
y = (sx + this.y) & 0xff;
sy = (int) state[y];
this.x = x;
this.y = y;
state[y] = (byte) (sx & 0xff);
state[x] = (byte) (sy & 0xff);
return (int) state[((sx + sy) & 0xff)];
}
public void setModKey(int key)
{
byte[] bKey = new byte[16];
intToBytes(getValue((byte) (key & 0xff)), bKey, 0);
intToBytes(getValue((byte) (key >> 0x08 & 0xff)), bKey, 4);
intToBytes(getValue((byte) (key >> 0x10 & 0xff)), bKey, 8);
intToBytes(getValue((byte) (key >> 0x18 & 0xff)), bKey, 12);
setKey(bKey);
}
public synchronized void doCrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len)
{
int end = srcOff + len;
for(int si = srcOff, di = destOff; si < end; si++, di++)
dest[di] = (byte) (((int) src[si] ^ arcfour_byte()) & 0xff);
}
public void setKey(byte[] key)
{
int t, u;
int counter;
this.x = 0;
this.y = 0;
for(counter = 0; counter < 256; counter++)
state[counter] = (byte) counter;
int keyindex = 0;
int stateindex = 0;
for(counter = 0; counter < 256; counter++)
{
t = (int) state[counter];
stateindex = (stateindex + key[keyindex] + t) & 0xff;
u = (int) state[stateindex];
state[stateindex] = (byte) (t & 0xff);
state[counter] = (byte) (u & 0xff);
if(++keyindex >= key.length)
keyindex = 0;
}
}
public static int bytesToInt(byte[] array, int offset)
{
return (((int) array[offset++] & 0xff) | (((int) array[offset++] & 0xff) << 8) | (((int) array[offset++] & 0xff) << 16) | (((int) array[offset++] & 0xff) << 24));
}
public static void intToBytes(int value, byte[] array, int offset)
{
array[offset++] = (byte) (value & 0xff);
array[offset++] = (byte) (value >> 0x08 & 0xff);
array[offset++] = (byte) (value >> 0x10 & 0xff);
array[offset++] = (byte) (value >> 0x18 & 0xff);
}
public static int getValue(int idx)
{
return bytesToInt(KeyData, idx & 0xFF);
}
public static void loadProtectData()
{
if(!ConfigProtect.PROTECT_LOGIN_ANTIBRUTE)
return;
LineNumberReader reader = null;
try
{
File file = new File("config/loginprotect.key");
if(!file.exists())
{
_log.warn("ProtectManager: file config/loginprotect.key not found!");
return;
}
reader = new LineNumberReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
String line;
int i = 0;
while((line = reader.readLine()) != null)
{
StringTokenizer st = new StringTokenizer(line);
while(st.hasMoreTokens())
{
int l = Integer.decode(st.nextToken());
KeyData[i] = (byte) l;
i++;
}
}
}
catch(Exception e)
{
_log.warn("ProtectManager: error while reading config/loginprotect.key " + e);
e.printStackTrace();
}
finally
{
try
{
if(reader != null)
reader.close();
}
catch(Exception e2)
{
// nothing
}
}
}
}
|
[
"ubuntu235@gmail.com"
] |
ubuntu235@gmail.com
|
95178a70ebb6646d512a5863bc8d44f41e54492f
|
4939a0ba3ff6e387c23e4928a7a5b707a2b41244
|
/org/spongepowered/asm/mixin/Interface$Remap.java
|
9fce6d0597c5caef05c18a4091e39f0d7089b18a
|
[] |
no_license
|
XeonLyfe/Glow-1.0.4-Deobf-Source-Leak
|
39356b4e9ec35d6631aa811ec65005a2ae1a95ab
|
fd3b7315a80ec56bc86dfa9db87bde35327dde5d
|
refs/heads/master
| 2022-03-29T03:51:08.343934
| 2019-11-30T01:58:05
| 2019-11-30T01:58:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 736
|
java
|
package org.spongepowered.asm.mixin;
public enum Remap
{
ALL,
FORCE(true),
ONLY_PREFIXED,
NONE;
private final boolean forceRemap;
private static final Remap[] $VALUES;
public static Remap[] values() {
return Remap.$VALUES.clone();
}
public static Remap valueOf(final String s) {
return Enum.valueOf(Remap.class, s);
}
private Remap() {
this(false);
}
private Remap(final boolean forceRemap) {
this.forceRemap = forceRemap;
}
public boolean forceRemap() {
return this.forceRemap;
}
static {
$VALUES = new Remap[] { Remap.ALL, Remap.FORCE, Remap.ONLY_PREFIXED, Remap.NONE };
}
}
|
[
"57571957+RIPBackdoored@users.noreply.github.com"
] |
57571957+RIPBackdoored@users.noreply.github.com
|
c7a5af4cbaddc46ad6826c52bcd1404eef22ac12
|
de1cda237890a0d7a66cda2188caef3efcedd6f6
|
/yaya/jbms/src/test/java/ActiveCodeTest.java
|
b7269b7acfa3e084c7361f03cad475730c957697
|
[] |
no_license
|
gewuxy/jx_backend
|
98525725d8e7af1728d1753f1444f4b56779db6e
|
7d6f24e45f8f8ca05d76b5f147b607b5b33fb04b
|
refs/heads/master
| 2021-04-09T10:18:28.607080
| 2018-03-13T05:36:51
| 2018-03-13T05:36:51
| 125,453,798
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,060
|
java
|
import cn.medcn.common.utils.ActiveCodeUtils;
import cn.medcn.user.model.ActiveCode;
import cn.medcn.user.service.ActiveCodeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.util.Date;
/**
* Created by lixuan on 2017/5/5.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath*:spring-context-common.xml"})
public class ActiveCodeTest {
@Autowired
private ActiveCodeService activeCodeService;
@Test
public void testAddCode(){
for(int i=0; i < 100; i ++){
ActiveCode code = new ActiveCode();
code.setUsed(false);
code.setCode(ActiveCodeUtils.genericActiveCode());
code.setOnwerid(14);
code.setSendTime(new Date());
code.setActived(true);
activeCodeService.insert(code);
}
}
}
|
[
"lixuan@medcn.cn"
] |
lixuan@medcn.cn
|
aa233c2c581855e2c3b43304cc36267d2466bd2d
|
2bae978bf70f8d1e1e4896a9819e9ad5f95bc89f
|
/zuul_lab/s2g-zuul/s2g-zuul-core/src/main/java/io/spring2go/zuul/mobile/Stats.java
|
0edc10d2e10dd5e81d9d8672697500d90c4191fa
|
[
"MIT"
] |
permissive
|
xinlc/microservices-in-action
|
00ee3843c888dee92c00f7625021ac5a5beb03f9
|
2c67bc0f029bdffca0f647a2b60541e931573273
|
refs/heads/master
| 2022-07-20T21:55:06.070831
| 2020-02-05T05:48:36
| 2020-02-05T05:48:36
| 212,609,078
| 1
| 0
|
MIT
| 2022-07-07T22:14:38
| 2019-10-03T15:06:27
|
Java
|
UTF-8
|
Java
| false
| false
| 797
|
java
|
package io.spring2go.zuul.mobile;
import io.spring2go.zuul.context.RequestContext;
import io.spring2go.zuul.filters.ZuulFilter;
import io.spring2go.zuul.monitoring.StatManager;
public class Stats extends ZuulFilter {
@Override
public String filterType() {
return "post";
}
@Override
public int filterOrder() {
return 20000;
}
@Override
public boolean shouldFilter() {
return true;
}
@Override
public Object run() {
RequestContext ctx = RequestContext.getCurrentContext();
int status = ctx.getResponseStatusCode();
StatManager sm = StatManager.getManager();
sm.collectRequestStats(ctx.getRequest());
sm.collectRouteStatusStats(ctx.getRouteName(), status);
return null;
}
}
|
[
"xinlichao2016@gmail.com"
] |
xinlichao2016@gmail.com
|
4b75239fb7d21324b92e76001ff5b5f25ca9c350
|
a33aac97878b2cb15677be26e308cbc46e2862d2
|
/data/libgdx/btRigidBodyFloatData_getCollisionObjectData.java
|
239986b8ae24d1e561dfa44264b98a6fa711fadd
|
[] |
no_license
|
GabeOchieng/ggnn.tensorflow
|
f5d7d0bca52258336fc12c9de6ae38223f28f786
|
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
|
refs/heads/master
| 2022-05-30T11:17:42.278048
| 2020-05-02T11:33:31
| 2020-05-02T11:33:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 230
|
java
|
public btCollisionObjectFloatData getCollisionObjectData() {
long cPtr = DynamicsJNI.btRigidBodyFloatData_collisionObjectData_get(swigCPtr, this);
return (cPtr == 0) ? null : new btCollisionObjectFloatData(cPtr, false);
}
|
[
"bdqnghi@gmail.com"
] |
bdqnghi@gmail.com
|
5e3c03312bb4f2cf688cc7af2381c70cf1037719
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/appbrand/jsapi/g/a/a$19.java
|
8857bd5d15fba14de16461e336ea50c7e5204161
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,385
|
java
|
package com.tencent.mm.plugin.appbrand.jsapi.g.a;
import com.tencent.mapsdk.raster.model.IndoorMapPoi;
import com.tencent.mapsdk.raster.model.LatLng;
import com.tencent.mapsdk.raster.model.MapPoi;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.tencentmap.mapsdk.map.TencentMap.OnMapPoiClickListener;
final class a$19
implements TencentMap.OnMapPoiClickListener
{
a$19(a parama)
{
}
public final void onClicked(MapPoi paramMapPoi)
{
AppMethodBeat.i(51168);
if (this.hNv.hNd != null)
{
b.p localp = new b.p();
localp.latitude = paramMapPoi.getPosition().getLatitude();
localp.longitude = paramMapPoi.getPosition().getLongitude();
localp.name = paramMapPoi.getName();
if (((paramMapPoi instanceof IndoorMapPoi)) && (!bo.isNullOrNil(((IndoorMapPoi)paramMapPoi).getBuildingId())))
{
localp.buildingId = ((IndoorMapPoi)paramMapPoi).getBuildingId();
localp.floorName = ((IndoorMapPoi)paramMapPoi).getFloorName();
}
this.hNv.hNd.a(localp);
}
AppMethodBeat.o(51168);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes2-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.appbrand.jsapi.g.a.a.19
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
483531be899a909c41e3b091989dd893f1845aaa
|
b998b375e53c0d8141db7f8e07cb01b494ed3d0a
|
/boot.oat_files/arm64/dex/out1/com/android/internal/os/SmartManagerProvider.java
|
7079a33b2c7f46a5070b9d9e6d6c4af0cba8adb5
|
[] |
no_license
|
atthisaccount/SPay-inner-workings
|
c3b6256c8ed10c2492d19eca8e63f656cd855be2
|
6dd83a6ea0916c272423ea0dc1fa3757baa632e7
|
refs/heads/master
| 2022-03-22T04:12:05.100198
| 2019-10-06T13:25:49
| 2019-10-06T13:25:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,877
|
java
|
package com.android.internal.os;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import com.android.internal.telephony.PhoneConstants;
public class SmartManagerProvider extends ContentProvider {
static final int ALL_PACKAGES = 1;
static final int BATTERY_DELTA = 2;
static final int PACKAGE_NAME = 4;
static final int POWER_CONSUMING_PACKAGES = 3;
static final UriMatcher uriMatcher = new UriMatcher(-1);
BatteryStatsDBHelper batteryStatsDBHelper;
static {
uriMatcher.addURI(SMProviderContract.PROVIDER_NAME, "Battery_Delta", 2);
uriMatcher.addURI(SMProviderContract.PROVIDER_NAME, "power_consuming_packages", 3);
uriMatcher.addURI(SMProviderContract.PROVIDER_NAME, PhoneConstants.APN_TYPE_ALL, 1);
}
public boolean onCreate() {
this.batteryStatsDBHelper = BatteryStatsDBHelper.getInstance(getContext());
if (this.batteryStatsDBHelper != null) {
return true;
}
return false;
}
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
Cursor cursor = null;
if (uri != null) {
synchronized (this.batteryStatsDBHelper) {
SQLiteDatabase database = this.batteryStatsDBHelper.getReadableDatabase();
BatteryStatsDBHelper batteryStatsDBHelper;
switch (uriMatcher.match(uri)) {
case 1:
String table_name = uri.getLastPathSegment();
if (!PhoneConstants.APN_TYPE_ALL.equals(table_name)) {
cursor = database.query("[" + table_name + "]", projection, selection, selectionArgs, sortOrder, null, null);
break;
}
cursor = database.rawQuery("SELECT name FROM sqlite_master WHERE type='table' AND name!='android_metadata' AND name!='Battery_Delta' AND name!='power_consuming_packages' AND name!='null' AND name!='all'", null);
break;
case 2:
batteryStatsDBHelper = this.batteryStatsDBHelper;
cursor = database.query("Battery_Delta", projection, selection, selectionArgs, sortOrder, null, null);
break;
case 3:
batteryStatsDBHelper = this.batteryStatsDBHelper;
cursor = database.query("power_consuming_packages", projection, selection, selectionArgs, sortOrder, null, null);
break;
default:
String contentURI = uri.toString();
if (contentURI.contains(SMProviderContract.URL)) {
String newURI = contentURI.replace("content://com.sec.smartmanager.provider/", "");
if (!newURI.isEmpty()) {
cursor = database.query("[" + newURI + "]", projection, selection, selectionArgs, sortOrder, null, null);
break;
}
}
throw new IllegalArgumentException("Unknown URI " + uri);
break;
}
}
}
return cursor;
}
public String getType(Uri uri) {
return null;
}
public Uri insert(Uri uri, ContentValues values) {
return null;
}
public int delete(Uri uri, String selection, String[] selectionArgs) {
return 0;
}
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
return 0;
}
}
|
[
"pandalion98@gmail.com"
] |
pandalion98@gmail.com
|
3132af0103886939b48f73f7fff6fa15045277f5
|
8228efa27043e0a236ca8003ec0126012e1fdb02
|
/L2JOptimus_Core/java/net/sf/l2j/gameserver/model/L2EnchantSkillData.java
|
f7281b722bfdd786b717e55c88f08276ab9c6f77
|
[] |
no_license
|
wan202/L2JDeath
|
9982dfce14ae19a22392955b996b42dc0e8cede6
|
e0ab026bf46ac82c91bdbd048a0f50dc5213013b
|
refs/heads/master
| 2020-12-30T12:35:59.808276
| 2017-05-16T18:57:25
| 2017-05-16T18:57:25
| 91,397,726
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,321
|
java
|
package net.sf.l2j.gameserver.model;
public final class L2EnchantSkillData
{
private final int _costExp;
private final int _costSp;
private final int _itemId;
private final int _itemCount;
private final int _rate76;
private final int _rate77;
private final int _rate78;
public L2EnchantSkillData(int costExp, int costSp, int itemId, int itemCount, int rate76, int rate77, int rate78)
{
_costExp = costExp;
_costSp = costSp;
_itemId = itemId;
_itemCount = itemCount;
_rate76 = rate76;
_rate77 = rate77;
_rate78 = rate78;
}
/**
* @return Returns the costExp.
*/
public int getCostExp()
{
return _costExp;
}
/**
* @return Returns the costSp.
*/
public int getCostSp()
{
return _costSp;
}
/**
* @return Returns the itemId.
*/
public int getItemId()
{
return _itemId;
}
/**
* @return Returns the itemAmount.
*/
public int getItemCount()
{
return _itemCount;
}
/**
* @return Returns the rate according to level.
* @param level : Level determines the rate.
*/
public int getRate(int level)
{
switch (level)
{
case 76:
return _rate76;
case 77:
return _rate77;
case 78:
case 79:
case 80:
return _rate78;
default:
return 0;
}
}
}
|
[
"wande@DESKTOP-DM71DUV"
] |
wande@DESKTOP-DM71DUV
|
68268733641b9e874aea7a6664d6efa0fab801c9
|
23b6d6971a66cf057d1846e3b9523f2ad4e05f61
|
/MLMN-core/ejbModule/vn/com/vhc/sts/cni/STS_BasicConverter.java
|
2b544126ec537c9eb5c635f3d024fea4df7bdea7
|
[] |
no_license
|
vhctrungnq/mlmn
|
943f5a44f24625cfac0edc06a0d1b114f808dfb8
|
d3ba1f6eebe2e38cdc8053f470f0b99931085629
|
refs/heads/master
| 2020-03-22T13:48:30.767393
| 2018-07-08T05:14:12
| 2018-07-08T05:14:12
| 140,132,808
| 0
| 1
| null | 2018-07-08T05:29:27
| 2018-07-08T02:57:06
|
Java
|
UTF-8
|
Java
| false
| false
| 5,288
|
java
|
package vn.com.vhc.sts.cni;
import java.io.File;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import vn.com.vhc.sts.core.STS_Global;
import vn.com.vhc.sts.util.STS_Setting;
import vn.com.vhc.sts.util.STS_Util;
import vn.com.vhc.sts.util.exceptions.STS_ConvertException;
public abstract class STS_BasicConverter implements STS_IConverter {
private static Logger logger = Logger.getLogger(STS_BasicConverter.class.getName());
protected String separator = "\t";
protected String commentChar = "@";
protected String nodeName = "";
public void convertFile(File file, String direcPath, Hashtable<Byte, String> params, Connection conn)
throws STS_ConvertException {
}
public abstract void convertFile(File file, String direcPath, Hashtable<Byte, String> params) throws STS_ConvertException;
public void prepareParams(Hashtable<Byte, String> params) throws STS_ConvertException {
if (params == null) {
throw new STS_ConvertException("Invalid parameter");
}
if (params.containsKey(STS_Setting.SEPARATOR_KEY)) {
separator = params.get(STS_Setting.SEPARATOR_KEY);
}
if (params.containsKey(STS_Setting.COMMENT_CHAR_KEY)) {
commentChar = params.get(STS_Setting.COMMENT_CHAR_KEY);
}
if (params.containsKey(STS_Setting.NODE_NAME_KEY)) {
nodeName = params.get(STS_Setting.NODE_NAME_KEY);
}
}
public void makeDirectory(String direcPath) throws STS_ConvertException {
if (direcPath == null || direcPath.length() == 0) {
throw new STS_ConvertException("Invalid directory parameter");
}
// make a destination directory
File dir = new File(direcPath);
if (!dir.exists()) {
dir.mkdirs();
}
}
/**
* @return
*/
public List<String> getFileHeaderInfo() {
List<String> list = new ArrayList<String>();
list.add("---------------------------------------------");
list.add(" File duoc chuan hoa boi he thong VMSC2");
list.add(" Thoi gian chuan hoa: " + STS_Util.getCurrentTime());
list.add(" Class xu ly: " + this.getClass().getName());
list.add("---------------------------------------------");
return list;
}
public List<String> getFileHeaderInfo(int columnCount) {
List<String> list = getFileHeaderInfo();
if (columnCount <= 0) {
return list;
}
list.remove(list.size() - 1);
list.add(" Tong so cot du lieu: " + columnCount);
list.add("---------------------------------------------");
return list;
}
public List<String> getFileHeaderInfo(String[] columnNames, String sep) {
List<String> list = getFileHeaderInfo();
if (columnNames == null || columnNames.length == 0) {
return list;
}
list.remove(list.size() - 1);
list.add(" Tong so cot du lieu: " + columnNames.length);
list.add("---------------------------------------------");
String cols = "";
for (String s : columnNames) {
if (cols.length() > 0) {
cols += sep;
}
cols += s;
}
list.add(cols);
return list;
}
public List<String> getFileHeaderInfo(List<String> columnNames, String sep) {
List<String> list = getFileHeaderInfo();
if (columnNames == null || columnNames.size() == 0) {
return list;
}
list.remove(list.size() - 1);
list.add(" Tong so cot du lieu: " + columnNames.size());
list.add("---------------------------------------------");
String cols = "";
for (String s : columnNames) {
if (cols.length() > 0) {
cols += sep;
}
cols += s;
}
list.add(cols);
return list;
}
public String getFileName(String fileName) {
String name = "";
if (fileName != null && fileName.length() > 0) {
int indexOf = fileName.lastIndexOf(".");
name = (indexOf == -1) ? fileName : fileName.substring(0, indexOf);
}
name += STS_Setting.FILE_EXTENSION;
// System.out.println("Stand file name: " + name);
return name;
}
public String getTimeFromFileName(String fileName, String regex) {
String time = "";
Pattern timePattern = Pattern.compile(regex);
Matcher m = timePattern.matcher(fileName.trim());
if (m.find()) {
time = m.group().trim();
}
return time;
}
public void executeSQLCommand(String sqlCommand) throws SQLException {
Connection conn = null;
try {
conn = STS_Global.DATA_SOURCE.getConnection();
Statement st = conn.createStatement();
st.execute(sqlCommand);
st.close();
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
logger.warn("Cannot close connection to database");
}
}
}
}
public void duplicateRecord(long fileId, String fileName, String rawTable) throws SQLException {
String sql = "insert /*+ APPEND NOLOGGING */ into C_RAW_FILES_MLMN (FILE_ID,PATTERN_ID,FILE_NAME,DAY," + "HOUR,CONVERT_FLAG,IMPORT_FLAG, NODE_NAME, RAW_TABLE, ORIGINAL_NAME) "
+ "select SEQ_CRF.NEXTVAL,PATTERN_ID, '" + fileName + "',DAY,HOUR,1,0,NODE_NAME,'" + rawTable
+ "',ORIGINAL_NAME from C_RAW_FILES_MLMN where FILE_ID = " + fileId;
executeSQLCommand(sql);
}
}
|
[
"trungnq@vhc.com.vn"
] |
trungnq@vhc.com.vn
|
07809fb1874b2820643bc62064ef753736f74b52
|
a2df6764e9f4350e0d9184efadb6c92c40d40212
|
/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/SetBoardCallbackRequest.java
|
de8993fc6673a4a6e2cee94a8b426ecf34129137
|
[
"Apache-2.0"
] |
permissive
|
warriorsZXX/aliyun-openapi-java-sdk
|
567840c4bdd438d43be6bd21edde86585cd6274a
|
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
|
refs/heads/master
| 2022-12-06T15:45:20.418475
| 2020-08-20T08:37:31
| 2020-08-26T06:17:49
| 290,450,773
| 1
| 0
|
NOASSERTION
| 2020-08-26T09:15:48
| 2020-08-26T09:15:47
| null |
UTF-8
|
Java
| false
| false
| 3,202
|
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.live.model.v20161101;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.live.Endpoint;
/**
* @author auto create
* @version
*/
public class SetBoardCallbackRequest extends RpcAcsRequest<SetBoardCallbackResponse> {
private String authKey;
private Integer callbackEnable;
private String callbackEvents;
private Long ownerId;
private String callbackUri;
private String appId;
private String authSwitch;
public SetBoardCallbackRequest() {
super("live", "2016-11-01", "SetBoardCallback");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getAuthKey() {
return this.authKey;
}
public void setAuthKey(String authKey) {
this.authKey = authKey;
if(authKey != null){
putQueryParameter("AuthKey", authKey);
}
}
public Integer getCallbackEnable() {
return this.callbackEnable;
}
public void setCallbackEnable(Integer callbackEnable) {
this.callbackEnable = callbackEnable;
if(callbackEnable != null){
putQueryParameter("CallbackEnable", callbackEnable.toString());
}
}
public String getCallbackEvents() {
return this.callbackEvents;
}
public void setCallbackEvents(String callbackEvents) {
this.callbackEvents = callbackEvents;
if(callbackEvents != null){
putQueryParameter("CallbackEvents", callbackEvents);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getCallbackUri() {
return this.callbackUri;
}
public void setCallbackUri(String callbackUri) {
this.callbackUri = callbackUri;
if(callbackUri != null){
putQueryParameter("CallbackUri", callbackUri);
}
}
public String getAppId() {
return this.appId;
}
public void setAppId(String appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId);
}
}
public String getAuthSwitch() {
return this.authSwitch;
}
public void setAuthSwitch(String authSwitch) {
this.authSwitch = authSwitch;
if(authSwitch != null){
putQueryParameter("AuthSwitch", authSwitch);
}
}
@Override
public Class<SetBoardCallbackResponse> getResponseClass() {
return SetBoardCallbackResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
d8d5d12a661a70f1976ff030f43b5ad2f2ad0f64
|
a1a185e3ea226c62b99086db33f70604cc611476
|
/sofa-demo/sofaboot_server/src/main/java/com/citydo/sofaboot_server/service/SampleGenericService.java
|
302960225c62a46f5230d4459de292cb28a1451b
|
[] |
no_license
|
jianbo-feng/public-repository
|
4a680b1401c9fd2f7ba72386330a80079ee2d129
|
5481d6ebbb0b15374dfe08b8cd3d61e1eb692703
|
refs/heads/master
| 2022-08-11T06:07:02.485707
| 2020-05-27T14:11:29
| 2020-05-27T14:11:29
| 186,141,931
| 1
| 6
| null | 2022-06-21T01:12:00
| 2019-05-11T14:19:24
|
Java
|
UTF-8
|
Java
| false
| false
| 310
|
java
|
package com.citydo.sofaboot_server.service;
import com.citydo.sofaboot_server.model.SampleGenericParamModel;
import com.citydo.sofaboot_server.model.SampleGenericResultModel;
public interface SampleGenericService {
SampleGenericResultModel sayGeneric(SampleGenericParamModel sampleGenericParamModel);
}
|
[
"445121408@qq.com"
] |
445121408@qq.com
|
7002b49c8282a030e121704c3c236df7af8eb0ac
|
eadbd6ba5a2d5c960ffa9788f5f7e79eeb98384d
|
/src/com/google/android/m4b/maps/ba/i.java
|
050940e1985594e096f65dc87b31157221346ba8
|
[] |
no_license
|
marcoucou/com.tinder
|
37edc3b9fb22496258f3a8670e6349ce5b1d8993
|
c68f08f7cacf76bf7f103016754eb87b1c0ac30d
|
refs/heads/master
| 2022-04-18T23:01:15.638983
| 2020-04-14T18:04:10
| 2020-04-14T18:04:10
| 255,685,521
| 0
| 0
| null | 2020-04-14T18:00:06
| 2020-04-14T18:00:05
| null |
UTF-8
|
Java
| false
| false
| 5,036
|
java
|
package com.google.android.m4b.maps.ba;
import java.io.InputStream;
public final class i
{
private static final byte[] a = new byte['Ā'];
private static final byte[] e = { 90, -18, 3, -99, 14, -41, 106, -78, 116, 63, 54, 80, 40, -121, -32, -17 };
private static final byte[] f = new byte[16];
private final byte[] b = new byte['Ā'];
private int c;
private int d;
static
{
int i = 0;
while (i < 256)
{
a[i] = ((byte)i);
i += 1;
}
}
private void a(int paramInt)
{
int m = c;
int k = d;
int j = 0;
while (j < paramInt)
{
m = m + 1 & 0xFF;
k = k + b[m] & 0xFF;
int i = b[m];
b[m] = b[k];
b[k] = i;
j += 1;
}
c = m;
d = k;
}
public static void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, long paramLong, byte[] paramArrayOfByte)
{
a(paramArrayOfByte);
int i = paramInt4;
if (paramInt4 < 8) {
i = 0;
}
paramArrayOfByte[16] = ((byte)(paramInt1 >> 24));
paramArrayOfByte[17] = ((byte)(paramInt1 >> 16));
paramArrayOfByte[18] = ((byte)(paramInt1 >> 8));
paramArrayOfByte[19] = ((byte)paramInt1);
paramArrayOfByte[20] = ((byte)(paramInt2 >> 24));
paramArrayOfByte[21] = ((byte)(paramInt2 >> 16));
paramArrayOfByte[22] = ((byte)(paramInt2 >> 8));
paramArrayOfByte[23] = ((byte)paramInt2);
paramArrayOfByte[24] = ((byte)(paramInt3 >> 24));
paramArrayOfByte[25] = ((byte)(paramInt3 >> 16));
paramArrayOfByte[26] = ((byte)(paramInt3 >> 8));
paramArrayOfByte[27] = ((byte)paramInt3);
paramInt1 = i & 0xFFFF;
paramArrayOfByte[28] = ((byte)(paramInt1 >> 8));
paramArrayOfByte[29] = ((byte)paramInt1);
paramInt1 = paramInt5 & 0xFFFF;
paramArrayOfByte[30] = ((byte)(paramInt1 >> 8));
paramArrayOfByte[31] = ((byte)paramInt1);
paramArrayOfByte[32] = ((byte)(int)(paramLong >> 56));
paramArrayOfByte[33] = ((byte)(int)(paramLong >> 48));
paramArrayOfByte[34] = ((byte)(int)(paramLong >> 40));
paramArrayOfByte[35] = ((byte)(int)(paramLong >> 32));
paramArrayOfByte[36] = ((byte)(int)(paramLong >> 24));
paramArrayOfByte[37] = ((byte)(int)(paramLong >> 16));
paramArrayOfByte[38] = ((byte)(int)(paramLong >> 8));
paramArrayOfByte[39] = ((byte)(int)paramLong);
}
public static void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, byte[] paramArrayOfByte)
{
a(paramArrayOfByte);
paramArrayOfByte[16] = ((byte)(paramInt1 >> 24));
paramArrayOfByte[17] = ((byte)(paramInt1 >> 16));
paramArrayOfByte[18] = ((byte)(paramInt1 >> 8));
paramArrayOfByte[19] = ((byte)paramInt1);
paramArrayOfByte[20] = ((byte)(paramInt2 >> 24));
paramArrayOfByte[21] = ((byte)(paramInt2 >> 16));
paramArrayOfByte[22] = ((byte)(paramInt2 >> 8));
paramArrayOfByte[23] = ((byte)paramInt2);
paramArrayOfByte[24] = ((byte)(paramInt3 >> 24));
paramArrayOfByte[25] = ((byte)(paramInt3 >> 16));
paramArrayOfByte[26] = ((byte)(paramInt3 >> 8));
paramArrayOfByte[27] = ((byte)paramInt3);
paramArrayOfByte[28] = ((byte)(paramInt4 >> 24));
paramArrayOfByte[29] = ((byte)(paramInt4 >> 16));
paramArrayOfByte[30] = ((byte)(paramInt4 >> 8));
paramArrayOfByte[31] = ((byte)paramInt4);
}
public static void a(InputStream paramInputStream)
{
paramInputStream.read(f);
paramInputStream.close();
}
private static void a(byte[] paramArrayOfByte)
{
int i = 0;
for (;;)
{
byte[] arrayOfByte = e;
if (i >= 16) {
break;
}
paramArrayOfByte[i] = ((byte)(e[i] * 47 ^ f[i]));
i += 1;
}
}
public final void a(byte[] paramArrayOfByte, int paramInt)
{
System.arraycopy(a, 0, b, 0, 256);
int j = 0;
paramInt = 0;
while (paramInt < 256)
{
j = j + b[paramInt] + paramArrayOfByte[(paramInt % 40)] & 0xFF;
int i = b[paramInt];
b[paramInt] = b[j];
b[j] = i;
paramInt += 1;
}
c = 0;
d = 0;
a(256);
}
public final void a(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
{
int n = c;
int m = d;
int k = 0;
while (k < paramInt2)
{
n = n + 1 & 0xFF;
m = m + b[n] & 0xFF;
int i = b[n];
int j = b[m];
b[n] = j;
b[m] = i;
int i1 = paramArrayOfByte[paramInt1];
paramArrayOfByte[paramInt1] = ((byte)(b[(i + j & 0xFF)] ^ i1));
k += 1;
paramInt1 += 1;
}
c = n;
d = m;
}
public final void b(byte[] paramArrayOfByte, int paramInt)
{
System.arraycopy(a, 0, b, 0, 256);
int j = 0;
paramInt = 0;
while (paramInt < 256)
{
j = j + b[paramInt] + paramArrayOfByte[(paramInt & 0x1F)] & 0xFF;
int i = b[paramInt];
b[paramInt] = b[j];
b[j] = i;
paramInt += 1;
}
c = 0;
d = 0;
a(256);
}
}
/* Location:
* Qualified Name: com.google.android.m4b.maps.ba.i
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
76790c378a9ff4819248b3feb2427bb941a26c8c
|
f1d567b5664ba4db93b9527dbc645b76babb5501
|
/src/com/javarush/test/level05/lesson09/task05/Rectangle.java
|
ff43cd6e58d975709e70633dbab4338c4e05e537
|
[] |
no_license
|
zenonwch/JavaRushEducation
|
8b619676ba7f527497b5a657b060697925cf0d8c
|
73388fd058bdd01f1673f87ab309f89f98e38fb4
|
refs/heads/master
| 2020-05-21T20:31:07.794128
| 2016-11-12T16:28:22
| 2016-11-12T16:28:22
| 65,132,378
| 8
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,413
|
java
|
package com.javarush.test.level05.lesson09.task05;
/* Создать класс прямоугольник (Rectangle)
Создать класс прямоугольник (Rectangle). Его данными будут top, left, width, height (левая координата, верхняя, ширина и высота). Создать для него как можно больше конструкторов:
Примеры:
- заданы 4 параметра: left, top, width, height
- ширина/высота не задана (оба равны 0)
- высота не задана (равно ширине) создаём квадрат
- создаём копию другого прямоугольника (он и передаётся в параметрах)
*/
public class Rectangle {
int top;
int left;
int width;
int height;
public Rectangle(Rectangle rectangle) {
this.top = rectangle.top;
this.left = rectangle.left;
this.width = rectangle.width;
this.height = rectangle.height;
}
public Rectangle(int top, int left, int width) {
this.top = top;
this.left = left;
this.width = width;
height = width;
}
public Rectangle(int top, int left) {
this.top = top;
this.left = left;
width = 0;
height = 0;
}
public Rectangle(int top, int left, int width, int height) {
this.top = top;
this.left = left;
this.width = width;
this.height = height;
}
}
|
[
"andrey.veshtard@ctco.lv"
] |
andrey.veshtard@ctco.lv
|
c74f63be50b6ad6f780144af8ed1511038245ffb
|
ed67cbeb339348a7a9da43868adaeea8dd4cdc07
|
/datastructure/list/linkedlist/java/SimpleQueue.java
|
6d807710fb18b16a3f84bb1db6006b12c134358c
|
[] |
no_license
|
giraffe-tree/Algorithms
|
5c4671ae684326819839aa18ba2214aeba6e7b60
|
c55264cbebadb90b2cfb31019e576acb99f922cc
|
refs/heads/master
| 2020-05-19T21:02:28.081425
| 2019-05-29T16:18:46
| 2019-05-29T16:18:46
| 185,213,890
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 234
|
java
|
package me.giraffetree.java.algorithms.week01.day02;
/**
* @author GiraffeTree
* @date 2019-05-13
*/
public interface SimpleQueue<T> {
void addFirst(T t);
void addLast(T t);
T removeFirst();
T removeLast();
}
|
[
"15355498770@163.com"
] |
15355498770@163.com
|
8047b3e62d947fefd21e42115edf22f084f372b4
|
4a04c7541224c663c930c2249acee8b4607c0eb3
|
/sourcecode/src/main/java/com/mpos/lottery/te/valueaddservice/vat/service/VatSaleService.java
|
15e91a06ccbb023c2b63f86ae6957da0336b6077
|
[] |
no_license
|
ramonli/eGame_TE
|
92e1f4d7af05a4e2cb31aec89d96f00a40688fa0
|
937b7ef487ff4b9053de8693a237733f2ced7bc4
|
refs/heads/master
| 2020-12-24T14:57:07.251672
| 2015-07-20T05:55:15
| 2015-07-20T05:55:15
| 39,357,089
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,988
|
java
|
package com.mpos.lottery.te.valueaddservice.vat.service;
import com.mpos.lottery.te.config.exception.ApplicationException;
import com.mpos.lottery.te.port.Context;
import com.mpos.lottery.te.valueaddservice.vat.VatSaleTransaction;
import com.mpos.lottery.te.valueaddservice.vat.support.VatReversalOrCancelStrategy;
public interface VatSaleService {
/**
* VAT amount can be used to buy raffle or magic100 ticket. Raffle ticket is for B2B retailer, and magic100 ticket
* is for B2C retailer.
* <p>
* Though this service is extending from <code>TicketService</code>, its logic is completedly different from sale
* service of a real game, actually it is more understandable if regard this service as a front end of
* Raffle/Magic100 sale service, and the implementation of this service will definitely dispatch request to
* Raffle(B2B)/Magic100(B2C) sale service accordingly.
* <p>
* Before dispatching request, this service will perform below operations:
* <ul>
* <li>Determine the business type of device. B2B or B2C??</li>
* <li>
* <b>if B2B</b>
* <ol>
* <li>No matter the VAT amount, a single raffle ticket will be sold.</li>
* <li>Record the VAT sale transaction <code>VatSaleTransaction</code>.</li>
* <li>Increment Vat sale balance.</code>
* </ol>
* </li>
* <li>
* <b>If B2C</b>
* <ol>
* <li>Determine the total amount of sale by (vatAmount*vatRate), also round down/up will be considered. For example
* vatAmount is 800, vatRate is 0.3, the sale total amount will be <code>800*0.3=240</code>, if round down, and base
* amount of magic100 is 100, then only 2 tickets can be sold(240/100=2.4, round down to 2).</li>
* <li>Record the VAT sale transaction <code>VatSaleTransaction</code>.</li>
* <li>Increment Vat sale balance.</code></li>
* </ol>
* </li>
* </ul>
* <p/>
* <b>Pre-Condition</b>
* <ul>
* <li>VAT is valid.</li>
* <li>VAT has been allocated to current merchant</li>
* </ul>
* <p>
* <b>Post-Condition</b>
* <ul>
* <li>Record the general
* <code>Transaction<code>, in which the game type will be set to Raffle or Magic100 accordingly,
* also the total amount will be set to SALE total amount.</li>
* <li>Record the detailed <code>VatSaleTransaction</code>.</li>
* <li>Increment the VAT sale balance</code>
* <li>Generate tickets which have been sold.</li>
* </ul>
* <p>
* <b>Usage Restriction</b>
* <ul>
* <li>Authorization - Can only be called by authorized GPEs.</li>
* <li>Concurrent Access - To a single device, this interface must be called sequentially. To multiple devices,
* there are no limitation on the number of concurrent accesses.</li>
* </ul>
*
* @param respCtx
* The context represents the response.
* @param clientSale
* A client ticket request, a instance of <code>VatTicket</code>.
* @return The sold ticket, either RAFFLE or MAGIC100.
*/
public VatSaleTransaction sell(Context<?> respCtx, VatSaleTransaction clientSale) throws ApplicationException;
/**
* Refund a VAT invoice. Customer can request to refund sales and the associated VAT invoice must be refunded as
* well, in essential it is same with the cancellation of {@link #sell(Context, VatSaleTransaction)}.
* <p>
* Refer to
* {@link VatReversalOrCancelStrategy#cancelOrReverse(Context, com.mpos.lottery.te.trans.domain.Transaction)}
*
* @param respCtx
* The context of current refunding transaction.
* @param vatTrans
* The refunding request, the following components must be set: vatRefNo
* @throws ApplicationException
* if encounter any biz exception.
*/
void refundVat(Context<?> respCtx, VatSaleTransaction vatTrans) throws ApplicationException;
}
|
[
"myroulade@gmail.com"
] |
myroulade@gmail.com
|
c997486909d470c16b45e1e6fc9761bc44354bc1
|
1415496f94592ba4412407b71dc18722598163dd
|
/doc/jitsi-bundles-dex/sources/org/jitsi/javax/sip/address/SipURI.java
|
710034cbf7e4955579d38a924b7c805405c5f397
|
[
"Apache-2.0"
] |
permissive
|
lhzheng880828/VOIPCall
|
ad534535869c47b5fc17405b154bdc651b52651b
|
a7ba25debd4bd2086bae2a48306d28c614ce0d4a
|
refs/heads/master
| 2021-07-04T17:25:21.953174
| 2020-09-29T07:29:42
| 2020-09-29T07:29:42
| 183,576,020
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,276
|
java
|
package org.jitsi.javax.sip.address;
import java.text.ParseException;
import java.util.Iterator;
import org.jitsi.javax.sip.InvalidArgumentException;
import org.jitsi.javax.sip.header.Parameters;
public interface SipURI extends URI, Parameters {
String getHeader(String str);
Iterator getHeaderNames();
String getHost();
String getMAddrParam();
String getMethodParam();
int getPort();
int getTTLParam();
String getTransportParam();
String getUser();
String getUserParam();
String getUserPassword();
boolean hasLrParam();
boolean isSecure();
void removePort();
void setHeader(String str, String str2) throws ParseException;
void setHost(String str) throws ParseException;
void setLrParam();
void setMAddrParam(String str) throws ParseException;
void setMethodParam(String str) throws ParseException;
void setPort(int i);
void setSecure(boolean z);
void setTTLParam(int i) throws InvalidArgumentException;
void setTransportParam(String str) throws ParseException;
void setUser(String str) throws ParseException;
void setUserParam(String str) throws ParseException;
void setUserPassword(String str) throws ParseException;
String toString();
}
|
[
"lhzheng@grandstream.cn"
] |
lhzheng@grandstream.cn
|
6f3b52ca668cd038da154adf676cca1866c9e0c7
|
8df0553905ff0503e705c29e37a7fe588e7e332d
|
/hljlivelibrary/src/main/java/com/hunliji/hljlivelibrary/models/LiveSpotMedia.java
|
cf40b094f686770ae030ee1112ff6445de3ec7d3
|
[] |
no_license
|
Catfeeds/myWorkspace
|
9cd0af10597af9d28f8d8189ca0245894d270feb
|
3c0932e626e72301613334fd19c5432494f198d2
|
refs/heads/master
| 2020-04-11T12:19:27.141598
| 2018-04-04T08:14:31
| 2018-04-04T08:14:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
package com.hunliji.hljlivelibrary.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.hunliji.hljcommonlibrary.models.Media;
import com.hunliji.hljcommonlibrary.models.note.NoteSpot;
import java.util.List;
/**
* Created by luohanlin on 2017/11/30.
*/
public class LiveSpotMedia implements Parcelable {
private Media media;
private List<NoteSpot> spots;
public LiveSpotMedia(Media media) {
this.media = media;
}
public LiveSpotMedia(
Media media, List<NoteSpot> spots) {
this.media = media;
this.spots = spots;
}
public Media getMedia() {
return media;
}
public List<NoteSpot> getSpots() {
return spots;
}
@Override
public int describeContents() { return 0; }
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeParcelable(this.media, flags);
dest.writeTypedList(this.spots);
}
protected LiveSpotMedia(Parcel in) {
this.media = in.readParcelable(Media.class.getClassLoader());
this.spots = in.createTypedArrayList(NoteSpot.CREATOR);
}
public static final Parcelable.Creator<LiveSpotMedia> CREATOR = new Parcelable
.Creator<LiveSpotMedia>() {
@Override
public LiveSpotMedia createFromParcel(Parcel source) {return new LiveSpotMedia(source);}
@Override
public LiveSpotMedia[] newArray(int size) {return new LiveSpotMedia[size];}
};
}
|
[
"hdwhhc@sina.cn"
] |
hdwhhc@sina.cn
|
282a92d1865be0104615e2b35b8bbf1881b4150e
|
ff7e107a5068b07436342353dbf912d587c3840b
|
/resflow-master0925/resflow-intf/src/main/java/com/zres/project/localnet/portal/webservice/res/BusinessRenameServiceIntf.java
|
74ab7658d10d071b730c0d89362feb3f1a4fef53
|
[] |
no_license
|
lichao20000/resflow-master
|
0f0668c7a6cb03cafaca153b9e9b882b2891b212
|
78217aa31f17dd5c53189e695a3a0194fced0d0a
|
refs/heads/master
| 2023-01-27T19:15:40.752341
| 2020-12-10T02:07:32
| 2020-12-10T02:07:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 319
|
java
|
package com.zres.project.localnet.portal.webservice.res;
import java.util.Map;
/**
* @ClassName BusinessRenameServiceIntf
* @Description TODO
* @Author wang.g2
* @Date 2020/8/11 11:44
*/
public interface BusinessRenameServiceIntf {
public Map<String, Object> custInfoRename(Map<String, Object> custInfo);
}
|
[
"2832383563@qq.com"
] |
2832383563@qq.com
|
98ad3379771bef04c5b3052de4710ed9b1b6bf71
|
f0591201f9e05a43ae063ec0f3f4b4915e2e4a59
|
/project-sysmgr-ui/src/main/java/com/spirit/project/sysmgr/ui/client/RoleFeignClient.java
|
059edfdacbe19c7f1510e70fbfaeffd9f16dec1f
|
[] |
no_license
|
dante7qx/microservice-spirit
|
d7867237eb499bc4c5b83ad12650aaf658ea72f4
|
e6a2cd52ac44c12ea6d983430a801a3db43c0e8f
|
refs/heads/master
| 2021-01-22T22:20:39.295929
| 2017-08-08T02:03:56
| 2017-08-08T02:03:56
| 85,531,358
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,994
|
java
|
package com.spirit.project.sysmgr.ui.client;
import java.util.List;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.spirit.feignconfig.FeignClientConfig;
import com.spirit.project.commom.dto.req.PageReq;
import com.spirit.project.commom.dto.resp.BaseResp;
import com.spirit.project.commom.dto.resp.PageResp;
import com.spirit.project.sysmgr.ui.client.fallback.RoleFeignClientFallback;
import com.spirit.project.sysmgr.ui.constant.SpiritServiceConsts;
import com.spirit.project.sysmgr.ui.vo.role.AuthorityRoleVO;
import com.spirit.project.sysmgr.ui.vo.role.RoleVO;
/**
* 角色Feign Client
*
* @author dante
*
*/
@FeignClient(name = SpiritServiceConsts.PROJECT_SYSMGR_SERVER_NAME, fallback = RoleFeignClientFallback.class, configuration=FeignClientConfig.class)
public interface RoleFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/role/query_page")
BaseResp<PageResp<RoleVO>> findPage(PageReq pageReq);
@RequestMapping(method = RequestMethod.POST, value = "/role/query_by_id/{id}")
BaseResp<RoleVO> findByRoleId(@PathVariable("id") Long id);
@RequestMapping(method = RequestMethod.POST, value = "/role/query_all_role")
BaseResp<List<RoleVO>> findAllRole();
@RequestMapping(method = RequestMethod.POST, value = "/role/query_authority_role_by_id/{id}")
BaseResp<List<AuthorityRoleVO>> findAuthorityRoleByRoleId(@PathVariable("id") Long id);
@RequestMapping(method = RequestMethod.POST, value = "/role/add")
BaseResp<RoleVO> addRole(RoleVO roleVO);
@RequestMapping(method = RequestMethod.POST, value = "/role/update")
BaseResp<RoleVO> updateRole(RoleVO roleVO);
@SuppressWarnings("rawtypes")
@RequestMapping(method = RequestMethod.DELETE, value = "/role/delete_by_id/{id}")
BaseResp deleteByRoleId(@PathVariable("id") Long id);
}
|
[
"sunchao.0129@163.com"
] |
sunchao.0129@163.com
|
3bec6345b6c6962d8864ede0dd493c1266936361
|
81b0bb3cfb2e9501f53451e7f03ec072ee2b0e13
|
/src/com/google/android/gms/internal/zzki.java
|
bd7f14fb913cd7aa14daa402d11d4a2916a721dd
|
[] |
no_license
|
reverseengineeringer/me.lyft.android
|
48bb85e8693ce4dab50185424d2ec51debf5c243
|
8c26caeeb54ffbde0711d3ce8b187480d84968ef
|
refs/heads/master
| 2021-01-19T02:32:03.752176
| 2016-07-19T16:30:00
| 2016-07-19T16:30:00
| 63,710,356
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 673
|
java
|
package com.google.android.gms.internal;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import com.google.android.gms.ads.internal.zzu;
@zzir
public class zzki
extends Handler
{
public zzki(Looper paramLooper)
{
super(paramLooper);
}
public void handleMessage(Message paramMessage)
{
try
{
super.handleMessage(paramMessage);
return;
}
catch (Exception paramMessage)
{
zzu.zzft().zzb(paramMessage, false);
throw paramMessage;
}
}
}
/* Location:
* Qualified Name: com.google.android.gms.internal.zzki
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
4bf9bc6c517ae7476325fa898d436c1dfc21e348
|
d132a32f07cdc583c021e56e61a4befff6228900
|
/src/main/java/net/minecraft/network/play/server/S2APacketParticles.java
|
ea17b6e8ea136cea8bd4e7399806c0a8acf51d23
|
[] |
no_license
|
TechCatOther/um_clean_forge
|
27d80cb6e12c5ed38ab7da33a9dd9e54af96032d
|
b4ddabd1ed7830e75df9267e7255c9e79d1324de
|
refs/heads/master
| 2020-03-22T03:14:54.717880
| 2018-07-02T09:28:10
| 2018-07-02T09:28:10
| 139,421,233
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,055
|
java
|
package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
import net.minecraft.util.EnumParticleTypes;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class S2APacketParticles implements Packet
{
private EnumParticleTypes particleType;
private float xCoord;
private float yCoord;
private float zCoord;
private float xOffset;
private float field_149230_f;
private float field_149231_g;
private float particleSpeed;
private int particleCount;
private boolean field_179752_j;
private int[] particleArguments;
private static final String __OBFID = "CL_00001308";
public S2APacketParticles() {}
public S2APacketParticles(EnumParticleTypes p_i45977_1_, boolean p_i45977_2_, float p_i45977_3_, float p_i45977_4_, float p_i45977_5_, float p_i45977_6_, float yOffset, float zOffset, float particleSpeedIn, int p_i45977_10_, int ... p_i45977_11_)
{
this.particleType = p_i45977_1_;
this.field_179752_j = p_i45977_2_;
this.xCoord = p_i45977_3_;
this.yCoord = p_i45977_4_;
this.zCoord = p_i45977_5_;
this.xOffset = p_i45977_6_;
this.field_149230_f = yOffset;
this.field_149231_g = zOffset;
this.particleSpeed = particleSpeedIn;
this.particleCount = p_i45977_10_;
this.particleArguments = p_i45977_11_;
}
public void readPacketData(PacketBuffer buf) throws IOException
{
this.particleType = EnumParticleTypes.getParticleFromId(buf.readInt());
if (this.particleType == null)
{
this.particleType = EnumParticleTypes.BARRIER;
}
this.field_179752_j = buf.readBoolean();
this.xCoord = buf.readFloat();
this.yCoord = buf.readFloat();
this.zCoord = buf.readFloat();
this.xOffset = buf.readFloat();
this.field_149230_f = buf.readFloat();
this.field_149231_g = buf.readFloat();
this.particleSpeed = buf.readFloat();
this.particleCount = buf.readInt();
int i = this.particleType.getArgumentCount();
this.particleArguments = new int[i];
for (int j = 0; j < i; ++j)
{
this.particleArguments[j] = buf.readVarIntFromBuffer();
}
}
public void writePacketData(PacketBuffer buf) throws IOException
{
buf.writeInt(this.particleType.getParticleID());
buf.writeBoolean(this.field_179752_j);
buf.writeFloat(this.xCoord);
buf.writeFloat(this.yCoord);
buf.writeFloat(this.zCoord);
buf.writeFloat(this.xOffset);
buf.writeFloat(this.field_149230_f);
buf.writeFloat(this.field_149231_g);
buf.writeFloat(this.particleSpeed);
buf.writeInt(this.particleCount);
int i = this.particleType.getArgumentCount();
for (int j = 0; j < i; ++j)
{
buf.writeVarIntToBuffer(this.particleArguments[j]);
}
}
@SideOnly(Side.CLIENT)
public EnumParticleTypes func_179749_a()
{
return this.particleType;
}
public void handleParticles(INetHandlerPlayClient netHandler)
{
netHandler.handleParticles(this);
}
public void processPacket(INetHandler handler)
{
this.handleParticles((INetHandlerPlayClient)handler);
}
@SideOnly(Side.CLIENT)
public boolean func_179750_b()
{
return this.field_179752_j;
}
@SideOnly(Side.CLIENT)
public double getXCoordinate()
{
return (double)this.xCoord;
}
@SideOnly(Side.CLIENT)
public double getYCoordinate()
{
return (double)this.yCoord;
}
@SideOnly(Side.CLIENT)
public double getZCoordinate()
{
return (double)this.zCoord;
}
@SideOnly(Side.CLIENT)
public float getXOffset()
{
return this.xOffset;
}
@SideOnly(Side.CLIENT)
public float getYOffset()
{
return this.field_149230_f;
}
@SideOnly(Side.CLIENT)
public float getZOffset()
{
return this.field_149231_g;
}
@SideOnly(Side.CLIENT)
public float getParticleSpeed()
{
return this.particleSpeed;
}
@SideOnly(Side.CLIENT)
public int getParticleCount()
{
return this.particleCount;
}
@SideOnly(Side.CLIENT)
public int[] getParticleArgs()
{
return this.particleArguments;
}
}
|
[
"alone.inbox@gmail.com"
] |
alone.inbox@gmail.com
|
4e0cf6acc0422d972bfaa62436312725ade993c8
|
71c826ffa53ac8af9760f4443ba0dc0d78b4a8e9
|
/src/main/java/oasis/names/specification/ubl/schema/xsd/commonaggregatecomponents_2/UnstructuredPriceType.java
|
bcd002fd0883c18fde26829269d88299aa435426
|
[] |
no_license
|
yosmellopez/xml-dependencies
|
5fc4df3b40ea9af6d6815d64a55aa02cbbe2fb45
|
ad2404c11ae9982e9500692f2173261b2f258796
|
refs/heads/master
| 2022-09-25T15:03:45.927106
| 2020-05-27T03:20:13
| 2020-05-27T03:20:13
| 267,195,324
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,876
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.04.19 at 09:27:25 AM COT
//
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PriceAmountQuantityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TimeAmountQuantityType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <pre>
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Unstructured Price. Details</ccts:DictionaryEntryName><ccts:Definition>This class is a alternative to the class Price, and it contain a Tele line</ccts:Definition><ccts:ObjectClass>Unstructured Price</ccts:ObjectClass>
* </ccts:Component>
* </pre>
*
*
*
* <p>Java class for UnstructuredPriceType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="UnstructuredPriceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PriceAmountQuantity" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TimeAmountQuantity" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "UnstructuredPriceType", propOrder = {
"priceAmountQuantity",
"timeAmountQuantity"
})
public class UnstructuredPriceType {
@XmlElement(name = "PriceAmountQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PriceAmountQuantityType priceAmountQuantity;
@XmlElement(name = "TimeAmountQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected TimeAmountQuantityType timeAmountQuantity;
/**
* <pre>
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Unstructured Price. Price_ Amount. Quantity</ccts:DictionaryEntryName><ccts:Definition>Statement for the price amount</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Unstructured Price</ccts:ObjectClass><ccts:PropertyTermQualifier>Price</ccts:PropertyTermQualifier><ccts:PropertyTerm>Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Quantity</ccts:RepresentationTerm><ccts:DataType>Quantity. Type</ccts:DataType>
* </ccts:Component>
* </pre>
*
* @return possible object is
* {@link PriceAmountQuantityType }
*/
public PriceAmountQuantityType getPriceAmountQuantity() {
return priceAmountQuantity;
}
/**
* Sets the value of the priceAmountQuantity property.
*
* @param value allowed object is
* {@link PriceAmountQuantityType }
*/
public void setPriceAmountQuantity(PriceAmountQuantityType value) {
this.priceAmountQuantity = value;
}
/**
* <pre>
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Unstructured Price. Time_ Amount. Quantity</ccts:DictionaryEntryName><ccts:Definition>Statement for the time amount</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Unstructured Price</ccts:ObjectClass><ccts:PropertyTermQualifier>Time</ccts:PropertyTermQualifier><ccts:PropertyTerm>Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Quantity</ccts:RepresentationTerm><ccts:DataType>Quantity. Type</ccts:DataType>
* </ccts:Component>
* </pre>
*
* @return possible object is
* {@link TimeAmountQuantityType }
*/
public TimeAmountQuantityType getTimeAmountQuantity() {
return timeAmountQuantity;
}
/**
* Sets the value of the timeAmountQuantity property.
*
* @param value allowed object is
* {@link TimeAmountQuantityType }
*/
public void setTimeAmountQuantity(TimeAmountQuantityType value) {
this.timeAmountQuantity = value;
}
}
|
[
"yosmellopez@gmail.com"
] |
yosmellopez@gmail.com
|
4d0756e8253aaeee8eb1d88ae00b0a2395131432
|
7457025bbad3f37dd8bc9128d1fc254be53285b7
|
/weixin-sdk/weixin-sdk-qy/src/main/java/com/dmd/weixin/qy/contact/tag/TagUsersResult.java
|
6813e08d24af46e0bfb173ae765af7fd67129e23
|
[
"MIT"
] |
permissive
|
zeng08/weixin
|
8f21a7f665343bfeba6a660eb059e404145b6976
|
07954f6ebabc75bb61a987afae44500d3054228a
|
refs/heads/master
| 2020-03-19T02:03:24.964055
| 2017-09-11T06:09:41
| 2017-09-11T06:09:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,331
|
java
|
package com.dmd.weixin.qy.contact.tag;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Arrays;
import java.util.List;
/**
* Created by exizhai on 10/5/2015.
*/
public class TagUsersResult {
@JsonProperty("errcode")
private int code;
@JsonProperty("errmsg")
private String message;
@JsonIgnore
private String invalidUsers;
@JsonProperty("partylist")
private List<Integer> invalidDepartments;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@JsonProperty("invalidlist")
public void setInvalidUsers(String invalidUsers) {
this.invalidUsers = invalidUsers;
}
public List<String> getInvalidUserList() {
//fuck, 为何不返回数组
String[] users = this.invalidUsers.split("|");
return Arrays.asList(users);
}
public List<Integer> getInvalidDepartments() {
return invalidDepartments;
}
public void setInvalidDepartments(List<Integer> invalidDepartments) {
this.invalidDepartments = invalidDepartments;
}
}
|
[
"qiaozhi_china@163.com"
] |
qiaozhi_china@163.com
|
3f8c33c9bc815d66d41b9ca69cf503e1f8ee98a4
|
29acc5b6a535dfbff7c625f5513871ba55554dd2
|
/aws-java-sdk-support/src/main/java/com/amazonaws/services/support/model/DescribeAttachmentLimitExceededException.java
|
a2a80b671710cbda251a7895cce2b34095b13ea7
|
[
"JSON",
"Apache-2.0"
] |
permissive
|
joecastro/aws-sdk-java
|
b2d25f6a503110d156853836b49390d2889c4177
|
fdbff1d42a73081035fa7b0f172b9b5c30edf41f
|
refs/heads/master
| 2021-01-21T16:52:46.982971
| 2016-01-11T22:55:28
| 2016-01-11T22:55:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,265
|
java
|
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.support.model;
import com.amazonaws.AmazonServiceException;
/**
* <p>
* The limit for the number of <a>DescribeAttachment</a> requests in a short
* period of time has been exceeded.
* </p>
*/
public class DescribeAttachmentLimitExceededException extends
AmazonServiceException {
private static final long serialVersionUID = 1L;
/**
* Constructs a new DescribeAttachmentLimitExceededException with the
* specified error message.
*
* @param message
* Describes the error encountered.
*/
public DescribeAttachmentLimitExceededException(String message) {
super(message);
}
}
|
[
"aws@amazon.com"
] |
aws@amazon.com
|
dc97bfc041d80b57bc5e3c9ee757e2d9d2519c84
|
156ed60b65c508f7210f279a6680280a10006400
|
/3.JavaMultithreading/src/com/javarush/task/task27/task2708/RealEstate.java
|
e7f5d312799500b8da2862bfa629a86b634f3012
|
[] |
no_license
|
Abergaz/JavaRushTasks
|
90f42c6d37402098528d5cb6b7dfb63bd51220ae
|
5dcb38dff61c09384bf711d2357848f7327b08ec
|
refs/heads/master
| 2020-04-29T02:16:21.371765
| 2019-07-23T11:13:27
| 2019-07-23T11:13:27
| 175,760,604
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,138
|
java
|
package com.javarush.task.task27.task2708;
import java.util.HashSet;
import java.util.Set;
public class RealEstate {
private final Set<Apartment> allApartments;
private final Set<Apartment> activeApartments;
public RealEstate() {
allApartments = new HashSet();
activeApartments = new HashSet();
//add some data
allApartments.add(new Apartment(this));
allApartments.add(new Apartment(this));
allApartments.add(new Apartment(this));
allApartments.add(new Apartment(this));
allApartments.add(new Apartment(this));
allApartments.add(new Apartment(this));
}
public Set<Apartment> getAllApartments() {
return allApartments;
}
public void up(Apartment apartment) {
activeApartments.add(apartment);
}
public void revalidate() {
synchronized (activeApartments) {
activeApartments.clear();
for (Apartment apartment : allApartments) {
boolean randomValue = Math.random() * 2 % 2 == 0;
apartment.revalidate(randomValue);
}
}
}
}
|
[
"zagreba@gmail.com"
] |
zagreba@gmail.com
|
19d794653bfecd10878acce29a87447b4ee6e3df
|
312150cdb29a686ec8462abb991c1f05d64a2c22
|
/buffer/src/main/java/io/atomix/catalyst/buffer/SwappedBuffer.java
|
a69296ca57809c4c42a221ad0dafd6027e84b498
|
[
"Apache-2.0"
] |
permissive
|
y-higuchi/catalyst
|
67ede205bca392017f6eef8bc5bbb4411aad808a
|
a81d4305595415815a2497f5eafae0fca4677552
|
refs/heads/master
| 2021-01-24T21:57:49.827231
| 2016-05-02T06:45:45
| 2016-05-02T06:45:45
| 58,782,180
| 0
| 0
| null | 2016-05-14T00:50:55
| 2016-05-14T00:50:52
|
Java
|
UTF-8
|
Java
| false
| false
| 2,242
|
java
|
/*
* Copyright 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 io.atomix.catalyst.buffer;
import io.atomix.catalyst.util.ReferenceManager;
import java.nio.ByteOrder;
/**
* Byte order swapped buffer.
*
* @author <a href="http://github.com/kuujo">Jordan Halterman</a>
*/
public class SwappedBuffer extends AbstractBuffer {
private final Buffer root;
SwappedBuffer(Buffer root, Bytes bytes, ReferenceManager<Buffer> referenceManager) {
super(bytes, referenceManager);
this.root = root;
}
public SwappedBuffer(Buffer buffer, long offset, long initialCapacity, long maxCapacity, ReferenceManager<Buffer> referenceManager) {
super(buffer.bytes().order(buffer.order() == ByteOrder.BIG_ENDIAN ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN), offset, initialCapacity, maxCapacity, referenceManager);
this.root = buffer instanceof SwappedBuffer ? ((SwappedBuffer) buffer).root : buffer;
root.acquire();
}
/**
* Returns the root buffer.
*
* @return The root buffer.
*/
public Buffer root() {
return root;
}
@Override
public boolean isDirect() {
return root.isDirect();
}
@Override
public boolean isFile() {
return root.isFile();
}
@Override
public boolean isReadOnly() {
return root.isReadOnly();
}
@Override
protected void compact(long from, long to, long length) {
if (root instanceof AbstractBuffer) {
((AbstractBuffer) root).compact(from, to, length);
}
}
@Override
public Buffer acquire() {
root.acquire();
return this;
}
@Override
public boolean release() {
return root.release();
}
@Override
public void close() {
root.release();
}
}
|
[
"jordan.halterman@gmail.com"
] |
jordan.halterman@gmail.com
|
595c4f658e130068f4c38f537c1f043ba1dc45bc
|
590f065619a7168d487eec05db0fd519cfb103b5
|
/evosuite-tests/com/iluwatar/roleobject/CustomerCore_ESTest_scaffolding.java
|
32a23fff7648ba370d9329a28367ebb983dda312
|
[] |
no_license
|
parthenos0908/EvoSuiteTrial
|
3de131de94e8d23062ab3ba97048d01d504be1fb
|
46f9eeeca7922543535737cca3f5c62d71352baf
|
refs/heads/master
| 2023-02-17T05:00:39.572316
| 2021-01-18T00:06:01
| 2021-01-18T00:06:01
| 323,848,050
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,215
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Jan 11 12:00:16 GMT 2021
*/
package com.iluwatar.roleobject;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class CustomerCore_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "com.iluwatar.roleobject.CustomerCore";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("user.dir", "C:\\Users\\disto\\gitrepos\\EvoSuiteTrial");
java.lang.System.setProperty("java.io.tmpdir", "C:\\Users\\disto\\AppData\\Local\\Temp\\");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(CustomerCore_ESTest_scaffolding.class.getClassLoader() ,
"com.iluwatar.roleobject.BorrowerRole",
"com.iluwatar.roleobject.CustomerCore",
"com.iluwatar.roleobject.Role",
"com.iluwatar.roleobject.CustomerRole",
"com.iluwatar.roleobject.Customer",
"com.iluwatar.roleobject.InvestorRole"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(CustomerCore_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"com.iluwatar.roleobject.Customer",
"com.iluwatar.roleobject.CustomerCore",
"com.iluwatar.roleobject.CustomerRole",
"com.iluwatar.roleobject.BorrowerRole",
"com.iluwatar.roleobject.InvestorRole"
);
}
}
|
[
"distortion0908@gmail.com"
] |
distortion0908@gmail.com
|
87e9613f77181fd19535629dc19497ee8fac7215
|
2fa6639cab62e9ce19b5edd4c3048c8df8682c9c
|
/src/org/rs2server/rs2/tickable/impl/CleanupTick.java
|
2e6bf20be6abdfee3300c1a43c39e5896e66097c
|
[
"MIT"
] |
permissive
|
kewle003/hyperion
|
c320f6c217ac9177e1fe842f101cb3e7fce2dc83
|
35c24a0127b844ab2ce3d8168db6b933aee33a29
|
refs/heads/master
| 2021-01-19T00:16:03.714756
| 2013-11-25T04:56:15
| 2013-11-25T04:56:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 702
|
java
|
package org.rs2server.rs2.tickable.impl;
import org.rs2server.rs2.model.World;
import org.rs2server.rs2.task.impl.CleanupTask;
import org.rs2server.rs2.tickable.Tickable;
/**
* A tickable which runs periodically and performs tasks such as garbage
* collection.
* @author Graham Edgecombe
*
*/
public class CleanupTick extends Tickable {
/**
* The delay in ticks between consecutive cleanups.
*/
public static final int CLEANUP_CYCLE_TIME = 500;
/**
* Creates the cleanup event to run every 5 minutes.
*/
public CleanupTick() {
super(CLEANUP_CYCLE_TIME);
}
@Override
public void execute() {
World.getWorld().submit(new CleanupTask());
}
}
|
[
"markkewley@hotmail.com"
] |
markkewley@hotmail.com
|
66e3cb29688654310bd7b9ce6e5a6c978211eebf
|
a08f0c2e3e492c364f035d3b3b5fc4c29611e7c9
|
/testing-application-from-scatch/junit-5-fundamentals/06/demos/m5/Module5Gradle/src/test/java/com/wiredbraincoffee/reward/tests/RewardByConversionServiceTest.java
|
5cdcd3f5c49bb0a5377ed06c06fa91ff9c738719
|
[] |
no_license
|
chamanbharti/java-works
|
9832eb8ba6a81c88250fa81a71fa9db728993cd3
|
aec6b503bde515dc174b23404c936635a7f59add
|
refs/heads/master
| 2023-04-26T16:49:48.915313
| 2021-05-31T12:44:50
| 2021-05-31T12:44:50
| 328,213,982
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,798
|
java
|
package com.wiredbraincoffee.reward.tests;
import com.wiredbraincoffee.reward.RewardByConversionService;
import com.wiredbraincoffee.reward.RewardInformation;
import com.wiredbraincoffee.reward.RewardService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class RewardByConversionServiceTest implements TestHelper {
private RewardByConversionService reward = null;
@BeforeEach
void setUp() {
reward = new RewardByConversionService();
reward.setAmount(10);
reward.setNeededPoints(100);
}
@Test
@DisplayName("Correct amount is set")
void correctAmount() {
assertEquals(10, reward.getAmount());
}
@Test
@DisplayName("When empty order and zero points no rewards should be applied")
void emptyOrderZeroPoints() {
RewardInformation info = reward.applyReward(getEmptyOrder(), 0);
assertEquals(0, info.getDiscount());
assertEquals(0, info.getPointsRedeemed());
}
@Test
@DisplayName("When not enough points no rewards should be applied")
void notEnoughPoints() {
RewardInformation info = reward.applyReward(getSampleOrder(), 10);
assertEquals(0, info.getDiscount());
assertEquals(0, info.getPointsRedeemed());
}
@Test
@DisplayName("When empty order and enough points no rewards should be applied")
void emptyOrderEnoughPoints() {
RewardInformation info = reward.applyReward(getEmptyOrder(), 200);
assertEquals(0, info.getDiscount());
assertEquals(0, info.getPointsRedeemed());
}
@Override
public RewardService getRewardService() {
return reward;
}
}
|
[
"chaman.bharti84@gmail.com"
] |
chaman.bharti84@gmail.com
|
c2e374133b7f37fd0e98053bdcbfe0dbd2ea8a3b
|
96fea6041c7c832a10305450bd3ccf7e073a6c62
|
/kanbanboard-contract/src/main/java/de/muspellheim/kanbanboard/contract/messages/commands/Failure.java
|
469da24c0685c48bf2a10394404f398325ab4ff1
|
[
"MIT"
] |
permissive
|
falkoschumann/kanbanboard
|
3e2c8faf0984a377c5db1a56f5f62826c3073977
|
d132e746afcc0a79d3068af0e039f8c143e2abea
|
refs/heads/master
| 2022-12-25T12:29:19.773249
| 2020-10-12T18:39:14
| 2020-10-12T18:39:14
| 297,732,704
| 0
| 0
| null | 2020-10-07T13:26:11
| 2020-09-22T18:09:56
|
Kotlin
|
UTF-8
|
Java
| false
| false
| 302
|
java
|
/*
* Kanban Board - Contract
* Copyright (c) 2020 Falko Schumann <falko.schumann@muspellheim.de>
*/
package de.muspellheim.kanbanboard.contract.messages.commands;
import lombok.NonNull;
import lombok.Value;
@Value
public class Failure implements CommandStatus {
@NonNull String errorMessage;
}
|
[
"falko.schumann@muspellheim.de"
] |
falko.schumann@muspellheim.de
|
d1925d5f2b4c4d67d2d3c891fd26827e6fa95cb0
|
3ca53c13d2953805c00406476ceda9684887a8ad
|
/src/com/iwxxm/taf/MDBandType.java
|
ddadfc012b13b37a7e844406f227cd31b2b9426c
|
[] |
no_license
|
yw2017051032/tac2iwxxm
|
ae93c12b08b7316cd59de032d4ae2e8082bc6c0b
|
5a08cb9ecd0833fd4435bf6db81a2b8126380ec1
|
refs/heads/master
| 2020-03-17T03:03:06.671868
| 2018-06-05T16:55:59
| 2018-06-05T17:06:03
| 133,217,637
| 3
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 6,761
|
java
|
//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2018.04.04 时间 07:08:22 PM CST
//
package com.iwxxm.taf;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>MD_Band_Type complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* <complexType name="MD_Band_Type">
* <complexContent>
* <extension base="{http://www.isotc211.org/2005/gmd}MD_RangeDimension_Type">
* <sequence>
* <element name="maxValue" type="{http://www.isotc211.org/2005/gco}Real_PropertyType" minOccurs="0"/>
* <element name="minValue" type="{http://www.isotc211.org/2005/gco}Real_PropertyType" minOccurs="0"/>
* <element name="units" type="{http://www.isotc211.org/2005/gco}UomLength_PropertyType" minOccurs="0"/>
* <element name="peakResponse" type="{http://www.isotc211.org/2005/gco}Real_PropertyType" minOccurs="0"/>
* <element name="bitsPerValue" type="{http://www.isotc211.org/2005/gco}Integer_PropertyType" minOccurs="0"/>
* <element name="toneGradation" type="{http://www.isotc211.org/2005/gco}Integer_PropertyType" minOccurs="0"/>
* <element name="scaleFactor" type="{http://www.isotc211.org/2005/gco}Real_PropertyType" minOccurs="0"/>
* <element name="offset" type="{http://www.isotc211.org/2005/gco}Real_PropertyType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MD_Band_Type", namespace = "http://www.isotc211.org/2005/gmd", propOrder = {
"maxValue",
"minValue",
"units",
"peakResponse",
"bitsPerValue",
"toneGradation",
"scaleFactor",
"offset"
})
public class MDBandType
extends MDRangeDimensionType
{
protected RealPropertyType maxValue;
protected RealPropertyType minValue;
protected UomLengthPropertyType units;
protected RealPropertyType peakResponse;
protected IntegerPropertyType bitsPerValue;
protected IntegerPropertyType toneGradation;
protected RealPropertyType scaleFactor;
protected RealPropertyType offset;
/**
* 获取maxValue属性的值。
*
* @return
* possible object is
* {@link RealPropertyType }
*
*/
public RealPropertyType getMaxValue() {
return maxValue;
}
/**
* 设置maxValue属性的值。
*
* @param value
* allowed object is
* {@link RealPropertyType }
*
*/
public void setMaxValue(RealPropertyType value) {
this.maxValue = value;
}
/**
* 获取minValue属性的值。
*
* @return
* possible object is
* {@link RealPropertyType }
*
*/
public RealPropertyType getMinValue() {
return minValue;
}
/**
* 设置minValue属性的值。
*
* @param value
* allowed object is
* {@link RealPropertyType }
*
*/
public void setMinValue(RealPropertyType value) {
this.minValue = value;
}
/**
* 获取units属性的值。
*
* @return
* possible object is
* {@link UomLengthPropertyType }
*
*/
public UomLengthPropertyType getUnits() {
return units;
}
/**
* 设置units属性的值。
*
* @param value
* allowed object is
* {@link UomLengthPropertyType }
*
*/
public void setUnits(UomLengthPropertyType value) {
this.units = value;
}
/**
* 获取peakResponse属性的值。
*
* @return
* possible object is
* {@link RealPropertyType }
*
*/
public RealPropertyType getPeakResponse() {
return peakResponse;
}
/**
* 设置peakResponse属性的值。
*
* @param value
* allowed object is
* {@link RealPropertyType }
*
*/
public void setPeakResponse(RealPropertyType value) {
this.peakResponse = value;
}
/**
* 获取bitsPerValue属性的值。
*
* @return
* possible object is
* {@link IntegerPropertyType }
*
*/
public IntegerPropertyType getBitsPerValue() {
return bitsPerValue;
}
/**
* 设置bitsPerValue属性的值。
*
* @param value
* allowed object is
* {@link IntegerPropertyType }
*
*/
public void setBitsPerValue(IntegerPropertyType value) {
this.bitsPerValue = value;
}
/**
* 获取toneGradation属性的值。
*
* @return
* possible object is
* {@link IntegerPropertyType }
*
*/
public IntegerPropertyType getToneGradation() {
return toneGradation;
}
/**
* 设置toneGradation属性的值。
*
* @param value
* allowed object is
* {@link IntegerPropertyType }
*
*/
public void setToneGradation(IntegerPropertyType value) {
this.toneGradation = value;
}
/**
* 获取scaleFactor属性的值。
*
* @return
* possible object is
* {@link RealPropertyType }
*
*/
public RealPropertyType getScaleFactor() {
return scaleFactor;
}
/**
* 设置scaleFactor属性的值。
*
* @param value
* allowed object is
* {@link RealPropertyType }
*
*/
public void setScaleFactor(RealPropertyType value) {
this.scaleFactor = value;
}
/**
* 获取offset属性的值。
*
* @return
* possible object is
* {@link RealPropertyType }
*
*/
public RealPropertyType getOffset() {
return offset;
}
/**
* 设置offset属性的值。
*
* @param value
* allowed object is
* {@link RealPropertyType }
*
*/
public void setOffset(RealPropertyType value) {
this.offset = value;
}
}
|
[
"852406820@qq.com"
] |
852406820@qq.com
|
71ad86702000d9df366349dd66287638aacf12e6
|
a0caa255f3dbe524437715adaee2094ac8eff9df
|
/src/main/java/p000/cul.java
|
8cb054155da6195ef9c8d99e420b6dd01dc24e2c
|
[] |
no_license
|
AndroidTVDeveloper/com.google.android.tvlauncher
|
16526208b5b48fd48931b09ed702fe606fe7d694
|
0f959c41bbb5a93e981145f371afdec2b3e207bc
|
refs/heads/master
| 2021-01-26T07:47:23.091351
| 2020-02-26T20:58:19
| 2020-02-26T20:58:19
| 243,363,961
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package p000;
/* renamed from: cul */
/* compiled from: PG */
public interface cul {
/* renamed from: f */
void mo3526f();
}
|
[
"eliminater74@gmail.com"
] |
eliminater74@gmail.com
|
5a71681e4383189ad6da81c3d6c7baf66732ea1f
|
0c21777557f347ae4ac1b3197d1f7c28e05aed1b
|
/com/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java
|
2d9c1a3b49f4f84f156c18389d814d09faaace0d
|
[] |
no_license
|
dmisuvorov/HappyFresh.Android
|
68421b90399b72523f398aabbfd30b61efaeea1f
|
242c5b0c006e7825ed34da57716d2ba9d1371d65
|
refs/heads/master
| 2020-04-29T06:47:34.143095
| 2016-01-11T06:24:16
| 2016-01-11T06:24:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,174
|
java
|
package com.google.gson.internal.bind;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
final class TypeAdapterRuntimeTypeWrapper<T>
extends TypeAdapter<T>
{
private final Gson context;
private final TypeAdapter<T> delegate;
private final Type type;
TypeAdapterRuntimeTypeWrapper(Gson paramGson, TypeAdapter<T> paramTypeAdapter, Type paramType)
{
this.context = paramGson;
this.delegate = paramTypeAdapter;
this.type = paramType;
}
private Type getRuntimeTypeIfMoreSpecific(Type paramType, Object paramObject)
{
Object localObject = paramType;
if (paramObject != null) {
if ((paramType != Object.class) && (!(paramType instanceof TypeVariable)))
{
localObject = paramType;
if (!(paramType instanceof Class)) {}
}
else
{
localObject = paramObject.getClass();
}
}
return (Type)localObject;
}
public T read(JsonReader paramJsonReader)
throws IOException
{
return (T)this.delegate.read(paramJsonReader);
}
public void write(JsonWriter paramJsonWriter, T paramT)
throws IOException
{
TypeAdapter localTypeAdapter = this.delegate;
Type localType = getRuntimeTypeIfMoreSpecific(this.type, paramT);
if (localType != this.type)
{
localTypeAdapter = this.context.getAdapter(TypeToken.get(localType));
if ((localTypeAdapter instanceof ReflectiveTypeAdapterFactory.Adapter)) {
break label52;
}
}
for (;;)
{
localTypeAdapter.write(paramJsonWriter, paramT);
return;
label52:
if (!(this.delegate instanceof ReflectiveTypeAdapterFactory.Adapter)) {
localTypeAdapter = this.delegate;
}
}
}
}
/* Location: /Users/michael/Downloads/dex2jar-2.0/HappyFresh.jar!/com/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"michael@MJSTONE-MACBOOK.local"
] |
michael@MJSTONE-MACBOOK.local
|
70f2afb2af609378006ecd50935935192e7c028f
|
d796db6405f3943c863c4de7f9dba7fbcd04af2e
|
/src/bean/HWTransmissionHead.java
|
11f6515166ec452013bc89fb3411ca0517b0d4c1
|
[] |
no_license
|
Bjelijah/SSL_Socket_Client
|
46f49f38e59874ac52c27b6690d8397f90c71a60
|
73d6040bc06b5ed2514b1953b20c023c05b40cd1
|
refs/heads/master
| 2021-01-16T21:03:37.955407
| 2016-08-03T05:54:51
| 2016-08-03T05:54:51
| 64,819,092
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,540
|
java
|
package bean;
import javolution.io.Struct;
public class HWTransmissionHead extends Struct {
Unsigned8 sync = new Unsigned8(0xa5);
Unsigned8 version = new Unsigned8();
Unsigned8 flag = new Unsigned8();
Unsigned8 reserved = new Unsigned8(0);
Unsigned16 command = new Unsigned16();
Unsigned16 seq = new Unsigned16();
Unsigned32 payload_len = new Unsigned32();
Unsigned32 reserved2 = new Unsigned32(0);
public Unsigned8 getSync() {
return sync;
}
public void setSync(Unsigned8 sync) {
this.sync = sync;
}
public Unsigned8 getVersion() {
return version;
}
public void setVersion(int version) {
this.version = new Unsigned8(version);
}
public Unsigned8 getFlag() {
return flag;
}
public void setFlag(int flag) {
this.flag = new Unsigned8(flag);
}
public Unsigned8 getReserved() {
return reserved;
}
public void setReserved(Unsigned8 reserved) {
this.reserved = reserved;
}
public Unsigned16 getCommand() {
return command;
}
public void setCommand(int command) {
this.command = new Unsigned16(command);
}
public Unsigned16 getSeq() {
return seq;
}
public void setSeq(int seq) {
this.seq = new Unsigned16(seq);
}
public Unsigned32 getPayload_len() {
return payload_len;
}
public void setPayload_len(int payload_len) {
this.payload_len = new Unsigned32(payload_len);
}
public Unsigned32 getReserved2() {
return reserved2;
}
public void setReserved2(Unsigned32 reserved2) {
this.reserved2 = reserved2;
}
}
|
[
"elijah@live.cn"
] |
elijah@live.cn
|
936aeaa874eed46ad71e36dc2a93ad862005ceaf
|
6693de50e9ff8a04edd3b0c8bdd0be737c27e755
|
/app/src/main/java/com/kidd/store/presenter/account/password/forget_password/ForgetPasswordPresenterImpl.java
|
6f55f957522519f98ad5a26abd8d4bf014c9fa83
|
[] |
no_license
|
tuananhkidd/Store
|
636aa28c67fd62d8b478b627eab302a096db2bcf
|
13aeb7d87828f2ff108767d64108cce64854bad9
|
refs/heads/master
| 2021-07-18T06:11:36.158789
| 2021-05-28T11:33:31
| 2021-05-28T11:33:31
| 126,852,555
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,806
|
java
|
package com.kidd.store.presenter.account.password.forget_password;
import android.content.Context;
import android.widget.Toast;
import com.kidd.store.view.account.password.reset_password.ForgetPasswordView;
public class ForgetPasswordPresenterImpl implements ForgetPasswordPresenter {
private Context context;
private ForgetPasswordView forgetPasswordView;
private ForgetPasswordInterator forgetPasswordInterator;
public ForgetPasswordPresenterImpl(Context context, ForgetPasswordView forgetPasswordView) {
this.context = context;
this.forgetPasswordView = forgetPasswordView;
this.forgetPasswordInterator = new ForgetPasswordInteratorImpl(context);
}
@Override
public void onViewDestroy() {
forgetPasswordInterator.onViewDestroy();
}
@Override
public void validateEmail(String email) {
if(email.isEmpty()){
forgetPasswordView.showEmailInputError();
return;
}
forgetPasswordView.showLoadingDialog();
forgetPasswordInterator.ForgetPassword(email, new OnSuccessListener() {
@Override
public void onSuccess() {
forgetPasswordView.hideLoadingDialog();
forgetPasswordView.backToHome();
Toast.makeText(context, "Gửi thành công !", Toast.LENGTH_SHORT).show();
}
@Override
public void onError(String msg) {
forgetPasswordView.hideLoadingDialog();
Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
}
@Override
public void onInvalidEmail() {
forgetPasswordView.hideLoadingDialog();
forgetPasswordView.showEmailInputInvalid();
}
});
}
}
|
[
"worksfit.dev.team@gmail.com"
] |
worksfit.dev.team@gmail.com
|
42239e114b50a63907ed8b3c41b3e717eb724878
|
5c52ad5c2dbccc649fe27cb3749b3e12d9ad70a3
|
/src/main/java/com/zea7ot/lc/lvl1/lc0258/SolutionApproachDFS.java
|
8e132bc13eda5b53ce8ba905cc5f5e832ce8767d
|
[] |
no_license
|
XizheSun0914/lc-java-zea7ot
|
c14c378a099a34cbfa1714820134b145f591a280
|
d548827ae2ba343904464cac1d3f40420d75c0ec
|
refs/heads/master
| 2022-11-25T03:09:56.218685
| 2020-07-20T22:47:04
| 2020-07-20T22:47:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 371
|
java
|
package com.zea7ot.lc.lvl1.lc0258;
public class SolutionApproachDFS {
public int addDigits(int num) {
String n = Integer.toString(num);
if(n.length() == 1) return Integer.parseInt(n);
int sum = 0;
for(char c : n.toCharArray()){
sum += Character.getNumericValue(c);
}
return addDigits(sum);
}
}
|
[
"yanglyu.leon.7@gmail.com"
] |
yanglyu.leon.7@gmail.com
|
6b8cd6d2ed785b58fddbd351d29924ba58644ab5
|
5e6abc6bca67514b4889137d1517ecdefcf9683a
|
/Server/src/main/java/plugin/dialogue/RomilyWeaklaxDialogue.java
|
074c94473395c2e6bbcfd5ca027b049825697f94
|
[] |
no_license
|
dginovker/RS-2009-317
|
88e6d773d6fd6814b28bdb469f6855616c71fc26
|
9d285c186656ace48c2c67cc9e4fb4aeb84411a4
|
refs/heads/master
| 2022-12-22T18:47:47.487468
| 2019-09-20T21:24:34
| 2019-09-20T21:24:34
| 208,949,111
| 2
| 2
| null | 2022-12-15T23:55:43
| 2019-09-17T03:15:17
|
Java
|
UTF-8
|
Java
| false
| false
| 3,660
|
java
|
package plugin.dialogue;
import org.gielinor.game.content.dialogue.DialoguePlugin;
import org.gielinor.game.content.dialogue.FacialExpression;
import org.gielinor.game.content.dialogue.OptionSelect;
import org.gielinor.game.content.global.shop.Shops;
import org.gielinor.game.node.entity.npc.NPC;
import org.gielinor.game.node.entity.player.Player;
/**
* Handles the RomilyWeaklaxDialogue dialogue.
*
* @author 'Vexia
*/
public class RomilyWeaklaxDialogue extends DialoguePlugin {
public RomilyWeaklaxDialogue() {
}
public RomilyWeaklaxDialogue(Player player) {
super(player);
}
@Override
public int[] getIds() {
return new int[]{ 3205 };
}
@Override
public boolean handle(int interfaceId, OptionSelect optionSelect) {
switch (stage) {
case 0:
interpreter.sendOptions("Select an Option", "I'd like to buy some pies.", "Do you need any help?", "I'm good thanks.");
stage = 1;
break;
case 1:
switch (optionSelect.getButtonId()) {
case 1:
interpreter.sendDialogues(player, FacialExpression.NO_EXPRESSION, "I'd like to buy some pies.");
stage = 10;
break;
case 2:
interpreter.sendDialogues(player, FacialExpression.NO_EXPRESSION, "Do you need any help?");
stage = 20;
break;
case 3:
interpreter.sendDialogues(player, FacialExpression.NO_EXPRESSION, "I'm good thanks.");
stage = 50;
break;
}
break;
case 10:
end();
Shops.ROMILY_WEAKLAX.open(player);
break;
case 20:
interpreter.sendDialogues(npc, FacialExpression.NO_EXPRESSION, "Actually I could, you see I'm running out of stock and I", "don't have tme to bake any more pies. would you be", "willing to bake me some pies? I'll pay you well for them.");
stage = 21;
break;
case 21:
interpreter.sendOptions("Select an Option", "Sure, what do you need?", "Sorry, I can't help you.");
stage = 22;
break;
case 22:
switch (optionSelect.getButtonId()) {
case 1:
interpreter.sendDialogues(player, FacialExpression.NO_EXPRESSION, "Sure, what do you need?");
stage = 200;
break;
case 2:
break;
}
break;
case 200:
interpreter.sendDialogues(npc, FacialExpression.NO_EXPRESSION, "Great, can you bake me 11 Wild Pies please.");
stage = 201;
break;
case 201:
end();
break;
case 50:
end();
break;
}
return true;
}
@Override
public DialoguePlugin newInstance(Player player) {
return new RomilyWeaklaxDialogue(player);
}
@Override
public boolean open(Object... args) {
npc = (NPC) args[0];
interpreter.sendDialogues(npc, FacialExpression.NO_EXPRESSION, "Hello and welcome to my pie shop, how can I help you?");
stage = 0;
return true;
}
}
|
[
"dcress01@uoguelph.ca"
] |
dcress01@uoguelph.ca
|
8f6ac83012c90f8d6a68416ebdca8b269a399fb9
|
ed865190ed878874174df0493b4268fccb636a29
|
/PuridiomWeb/src/com/tsa/puridiom/handlers/DepartmentRetrieveAllHandler.java
|
def1f70a354608354d55b6afdde5b8b5aa7db036
|
[] |
no_license
|
zach-hu/srr_java8
|
6841936eda9fdcc2e8185b85b4a524b509ea4b1b
|
9b6096ba76e54da3fe7eba70989978edb5a33d8e
|
refs/heads/master
| 2021-01-10T00:57:42.107554
| 2015-11-06T14:12:56
| 2015-11-06T14:12:56
| 45,641,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,079
|
java
|
package com.tsa.puridiom.handlers;
import com.tsagate.foundation.processengine.*;
import java.util.*;
public class DepartmentRetrieveAllHandler implements IHandler
{
public Map handleRequest (Map incomingRequest) throws Exception
{
try
{
PuridiomProcessLoader processLoader = new PuridiomProcessLoader();
PuridiomProcess process = processLoader.loadProcess("department-retrieve-all.xml");
process.executeProcess(incomingRequest);
if (process.getStatus() == Status.SUCCEEDED)
{
incomingRequest.put("viewPage", (String) incomingRequest.get("successPage"));
}
else
{
incomingRequest.put("viewPage", (String) incomingRequest.get("failurePage"));
}
}
catch (Exception exception)
{
incomingRequest.put("errorMsg", exception.getMessage());
incomingRequest.put("viewPage", (String) incomingRequest.get("failurePage"));
throw exception;
}
finally
{
if (incomingRequest.get("viewPage") == null)
{
incomingRequest.put("viewPage", (String) incomingRequest.get("failurePage"));
}
}
return incomingRequest;
}
}
|
[
"brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466"
] |
brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466
|
db2377063bd6cb7b88a49961be385753d261cd58
|
1c095b6823286b3ba85aa56af5fd9274e5547a1b
|
/src/main/java/fr/inria/stamp/mutationtest/descartes/DescartesMutationEngine.java
|
e3449d43a5a169d539d67e8a5cf8276a1628d461
|
[] |
no_license
|
danglotb/pitest-descartes
|
1c203e256a3481ba7c9d38c758b0d8174009eef2
|
11e6ffc81a57e7293ea4f8382f79bdf1fdb33944
|
refs/heads/master
| 2021-01-23T06:10:34.468512
| 2017-03-14T16:59:01
| 2017-03-14T16:59:01
| 86,342,296
| 0
| 0
| null | 2017-03-27T13:59:26
| 2017-03-27T13:59:26
| null |
UTF-8
|
Java
| false
| false
| 3,272
|
java
|
package fr.inria.stamp.mutationtest.descartes;
import java.util.*;
import edu.emory.mathcs.backport.java.util.Arrays;
import fr.inria.stamp.mutationtest.descartes.operators.VoidMutationOperator;
import org.pitest.classinfo.ClassByteArraySource;
import org.pitest.functional.F;
import org.pitest.functional.predicate.False;
import org.pitest.functional.predicate.Predicate;
import org.pitest.functional.FCollection;
import org.pitest.mutationtest.engine.MutationEngine;
import org.pitest.mutationtest.engine.Mutater;
import org.pitest.reloc.asm.commons.Method;
import fr.inria.stamp.mutationtest.descartes.operators.MutationOperator;
public class DescartesMutationEngine implements MutationEngine {
private final Predicate<Method> excludedMethods;
private final Set<String> logginClasses;
private final Collection<MutationOperator> operators;
public DescartesMutationEngine(Collection<MutationOperator> operators) {
this(False.<Method>instance(), Collections.<String>emptySet(), operators);
}
@SuppressWarnings("unchecked")
public DescartesMutationEngine(MutationOperator... operators) {
this(Arrays.<MutationOperator>asList(operators));
}
@SuppressWarnings("unchecked")
public DescartesMutationEngine(Predicate<Method> excludedMethods, Set<String> logginClasses, MutationOperator...operators) {
this(excludedMethods, logginClasses, Arrays.<MutationOperator>asList(operators));
}
public DescartesMutationEngine(Predicate<Method> excludedMethods, Set<String> logginClasses, Collection<MutationOperator> operators) {
if(excludedMethods == null) throw new IllegalArgumentException("excludedMethod argument can not be null");
if(logginClasses == null) throw new IllegalArgumentException("logginClasses argument can not be null");
if(operators == null) throw new IllegalArgumentException("operators argument can not be null");
this.excludedMethods = excludedMethods;
this.logginClasses = logginClasses;
this.operators = operators;
}
public Mutater createMutator(final ClassByteArraySource byteSource) {
return new DescartesMutater(byteSource, this);
}
public Collection<String> getMutatorNames() {
return FCollection.map(operators, new F<MutationOperator, String>() {
public String apply(MutationOperator operator) {
return operator.getID();
}
});
}
public boolean mayMutateClass(final String className) {
return !FCollection.contains(logginClasses, new Predicate<String>() {
public Boolean apply(String prefix) {
return className.startsWith(prefix);
}
});
}
public Collection<MutationOperator> getOperatorsFor(final Method method) {
if(excludedMethods.apply(method))
return new ArrayList<MutationOperator>(0);
return FCollection.filter(operators, new Predicate<MutationOperator>() {
public Boolean apply(MutationOperator operator) {
return operator.canMutate(method);
}
});
}
@Override
public String toString() {
return "DescartesMutationEngine"; //TODO: Add more details here
}
}
|
[
"oscarlvp@gmail.com"
] |
oscarlvp@gmail.com
|
ff5860adae11c8c21f11c1b27427e8f8745eaa70
|
ce0e785348eccfbe071648e1a32ba7b9b74ead60
|
/guoren-market-web-springboot/src/main/java/com/gop/user/controller/JubiUserController.java
|
e1846f80cd899ec830f59d1e4be4a3e439d23479
|
[] |
no_license
|
littleOrange8023/market
|
0c279e8dd92db4dd23e20aeff037e4b2998f9e0e
|
093ce8850624061bb6e51dd064b606c82fccbadd
|
refs/heads/master
| 2020-04-19T11:05:11.191298
| 2019-01-25T07:04:27
| 2019-01-25T07:04:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,883
|
java
|
package com.gop.user.controller;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.gop.code.consts.CommonCodeConst;
import com.gop.code.consts.IdentifyingCodeConst;
import com.gop.code.consts.UserCodeConst;
import com.gop.domain.JubiUserInformation;
import com.gop.domain.User;
import com.gop.domain.enums.JubiRegisterFlag;
import com.gop.exception.AppException;
import com.gop.user.dto.JubiAssetDto;
import com.gop.user.dto.JubiAuthDto;
import com.gop.user.dto.JubiUserDto;
import com.gop.user.facade.UserFacade;
import com.gop.user.service.JubiUserInfoService;
import com.gop.user.service.UserService;
import com.gop.util.ConstantUtil;
import com.gop.util.EmailVerify;
import com.gop.util.PasswordUtil;
import com.gop.util.PhoneVerify;
import com.gop.web.base.annotation.AuthForHeader;
import com.gop.web.base.auth.AuthContext;
import com.gop.web.base.auth.annotation.Strategy;
import com.gop.web.base.auth.annotation.Strategys;
import lombok.extern.slf4j.Slf4j;
/**
* 聚币用户配置
*/
@RestController("JubiUserController")
@RequestMapping("/user")
@Slf4j
public class JubiUserController {
@Autowired
@Qualifier("userService")
private UserService userService;
@Autowired
private JubiUserInfoService jubiUserInfoService;
@Autowired
private UserFacade userFacade;
@Autowired
private StringRedisTemplate redisTemplate;
private long expireTime = 15;
private final String randomKeyPrix = "RandomKey";
//获取用户资产状况
@Strategys(strategys = { @Strategy(authStrategy = "exe({{'checkServiceCodeStrategy'}})")})
@RequestMapping(value = "/jubi-query", method = RequestMethod.POST)
public JubiAssetDto getJubiUserAssetsInfo(@AuthForHeader AuthContext context) {
String jubiAccount = context.getUserAccount();
List<JubiUserInformation> jubiinfos = new ArrayList<JubiUserInformation>();
if (EmailVerify.validEmailNumber(jubiAccount)) {
jubiinfos = jubiUserInfoService.getJubiUserInfosByEmail(jubiAccount);
}else if(PhoneVerify.validMobileNumber(jubiAccount)){
jubiinfos = jubiUserInfoService.getJubiUserInfosByPhone(jubiAccount);
}else {
throw new AppException(CommonCodeConst.FIELD_ERROR);
}
List<JubiAuthDto> jubiAuthDtos = new ArrayList<JubiAuthDto>();
for(JubiUserInformation jubiinfo : jubiinfos) {
if(JubiRegisterFlag.UNREGISTER.equals(jubiinfo.getRegisterFlag())) {
JubiAuthDto jubiAuthDto = new JubiAuthDto();
jubiAuthDto.setAssetCode(jubiinfo.getAssetCode());
jubiAuthDto.setAssetCodeAmount(jubiinfo.getAmount().setScale(2, BigDecimal.ROUND_DOWN).toPlainString());
jubiAuthDtos.add(jubiAuthDto);
}
}
if(jubiAuthDtos.isEmpty()) {
throw new AppException(UserCodeConst.JUBI_USER_HAS_REGISTER);
}
String randomKey=UUID.randomUUID().toString().trim().replaceAll("-", "");
redisTemplate.opsForValue().set(jubiAccount + ":" + randomKeyPrix, randomKey, expireTime, TimeUnit.MINUTES);
JubiAssetDto jubiAssetDto = new JubiAssetDto();
jubiAssetDto.setAssetList(jubiAuthDtos);
jubiAssetDto.setRandomkey(randomKey);
return jubiAssetDto;
}
//聚币用户注册
@Strategys(strategys = { @Strategy(authStrategy = "exe({{'checkServiceCodeStrategy'}})")})
@RequestMapping(value = "/jubi-register", method = RequestMethod.POST)
public void jubiUserRegister(@AuthForHeader AuthContext context,@RequestBody JubiUserDto jubiuserDto) {
String userAccount = context.getUserAccount();
String jubiAccount = jubiuserDto.getJubiAccount();
String redisRandomKey = redisTemplate.opsForValue().get(jubiAccount + ":" + randomKeyPrix);
//校验及查询聚币用户信息
List<JubiUserInformation> jubiinfos = new ArrayList<JubiUserInformation>();
if (EmailVerify.validEmailNumber(jubiAccount)) {
jubiinfos = jubiUserInfoService.getJubiUserInfosByEmail(jubiAccount);
}else if(PhoneVerify.validMobileNumber(jubiAccount)){
jubiinfos = jubiUserInfoService.getJubiUserInfosByPhone(jubiAccount);
}else {
throw new AppException(CommonCodeConst.FIELD_ERROR);
}
//校验聚币用户是否所有资产均已注册
boolean isAllRegister = true;
List<JubiUserInformation> unRegJubiInfo= new ArrayList<JubiUserInformation>();
for (JubiUserInformation jubiinfo : jubiinfos) {
if(JubiRegisterFlag.UNREGISTER.equals(jubiinfo.getRegisterFlag())) {
unRegJubiInfo.add(jubiinfo);
isAllRegister=false;
}
}
if (isAllRegister) {
throw new AppException(UserCodeConst.JUBI_USER_HAS_REGISTER);
}
//校验用户邮箱格式
if (!EmailVerify.validEmailNumber(userAccount)) {
throw new AppException(UserCodeConst.EMAIL_FORMAT_ERROR);
}
//校验邮箱是否已注册
Boolean isReg = userService.isMailRegister(userAccount);
if (isReg) {
throw new AppException(UserCodeConst.HAS_REGISTER);
}
//校验用户randomKey
if (StringUtils.isEmpty(redisRandomKey)) {
throw new AppException(CommonCodeConst.FIELD_ERROR);
}
if (!jubiuserDto.getRandomkey().equals(redisRandomKey)) {
throw new AppException(IdentifyingCodeConst.IDENTIFYING_CODE_EEROR);
}
//校验登录密码及支付密码
String loginPassword = jubiuserDto.getLoginPassword();
String payPassword = jubiuserDto.getPayPassword();
loginPassword = ConstantUtil.charConvert(loginPassword);
payPassword = ConstantUtil.charConvert(payPassword);
if (loginPassword.length() < 6 || loginPassword.length() > 20) {
throw new AppException(UserCodeConst.LOGIN_PASSWORD_VALID_ERROR);
}
if (!PasswordUtil.checkPasswordFormat(loginPassword)) {
throw new AppException(UserCodeConst.LOGIN_PASSWORD_VALID_ERROR);
}
if (payPassword.length() < 8 || payPassword.length() > 20) {
throw new AppException(UserCodeConst.PAY_PASSWORD_VALID_ERROR);
}
if (!PasswordUtil.checkPasswordFormat(payPassword)) {
throw new AppException(UserCodeConst.PAY_PASSWORD_VALID_ERROR);
}
//开始注册聚币账户
User user = userFacade.createUser(userAccount, null, loginPassword, payPassword, 0, "", 10003);
//开始为聚币账户加各项资产
// if (null != user) {
// for(JubiUserInformation jubiinfo : unRegJubiInfo) {
// jubiUserInfoService.assetOperationJubiUser(user.getUid(),jubiinfo.getAmount(),jubiinfo.getId(),jubiinfo.getAssetCode());
// }
// }
return;
}
}
|
[
"ydq@yangdongqiongdeMacBook-Air.local"
] |
ydq@yangdongqiongdeMacBook-Air.local
|
1baefa68341dba09ee3258ce15feb1cfa3edc44c
|
1007cf13b771338fdb0e0b12e568549a722ae290
|
/src/com/github/clilystudio/leetcode/question/easy/Q0762.java
|
40200b05df806be25db8bd9d88d480f84174952d
|
[
"Apache-2.0"
] |
permissive
|
clilystudio/LeetCode_CN_Java
|
7f7ec9ff5da0bf12b5ec99aaea59ed8a1e23a3d7
|
2a1d6ddbef7b7f82959c477b8383ff09367d57fe
|
refs/heads/master
| 2020-04-29T01:21:39.230610
| 2019-03-18T08:12:19
| 2019-03-18T08:12:19
| 175,727,662
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,269
|
java
|
/*******************************************************************************
* Copyright 2019 ClilyStudio.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package com.github.clilystudio.leetcode.question.easy;
/// -----------------------------------------------------------------------------
/// [762] Prime Number of Set Bits in Binary Representation
///
/// https://leetcode-cn.com/problems/prime-number-of-set-bits-in-binary-representation/description/
///
/// 给定两个整数 L 和 R ,找到闭区间 [L, R] 范围内,计算置位位数为质数的整数个数。
///
/// (注意,计算置位代表二进制表示中1的个数。例如 21 的二进制表示 10101 有 3 个计算置位。还有,1 不是质数。)
///
/// 示例 1:
///
/// 输入: L = 6, R = 10
/// 输出: 4
/// 解释:
/// 6 -> 110 (2 个计算置位,2 是质数)
/// 7 -> 111 (3 个计算置位,3 是质数)
/// 9 -> 1001 (2 个计算置位,2 是质数)
/// 10-> 1010 (2 个计算置位,2 是质数)
///
/// 示例 2:
///
/// 输入: L = 10, R = 15
/// 输出: 5
/// 解释:
/// 10 -> 1010 (2 个计算置位, 2 是质数)
/// 11 -> 1011 (3 个计算置位, 3 是质数)
/// 12 -> 1100 (2 个计算置位, 2 是质数)
/// 13 -> 1101 (3 个计算置位, 3 是质数)
/// 14 -> 1110 (3 个计算置位, 3 是质数)
/// 15 -> 1111 (4 个计算置位, 4 不是质数)
///
/// 注意:
///
/// L, R 是 L <= R 且在 [1, 10^6] 中的整数。
/// R - L 的最大值为 10000。
/// -----------------------------------------------------------------------------
public class Q0762 {
public int countPrimeSetBits(int L, int R) {
// TODO
return 0;
}
}
|
[
"bullsgl@gmail.com"
] |
bullsgl@gmail.com
|
b3d1a80b59f9d67492fdd2ce5842509319bb7cec
|
8b0e76f39886e3331a836dab07a04a252777d835
|
/gulimall-member/src/main/java/com/xchb/gulimall/member/service/impl/MemberCollectSpuServiceImpl.java
|
f7dfc09ad7805711c161d304fabb9031688a5a3b
|
[
"Apache-2.0"
] |
permissive
|
gaohao2020/gulimall
|
51f97865b3fdf7a9e481c66d2143446544a0586a
|
c955c6895e6d77e15437608592599d1de0e70325
|
refs/heads/master
| 2023-07-05T07:54:13.813893
| 2021-08-16T23:55:03
| 2021-08-16T23:55:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,083
|
java
|
package com.xchb.gulimall.member.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xchb.gulimall.common.utils.PageUtils;
import com.xchb.gulimall.common.utils.Query;
import com.xchb.gulimall.member.dao.MemberCollectSpuDao;
import com.xchb.gulimall.member.entity.MemberCollectSpuEntity;
import com.xchb.gulimall.member.service.MemberCollectSpuService;
@Service("memberCollectSpuService")
public class MemberCollectSpuServiceImpl extends ServiceImpl<MemberCollectSpuDao, MemberCollectSpuEntity> implements MemberCollectSpuService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MemberCollectSpuEntity> page = this.page(
new Query<MemberCollectSpuEntity>().getPage(params),
new QueryWrapper<MemberCollectSpuEntity>()
);
return new PageUtils(page);
}
}
|
[
"704566072@qq.com"
] |
704566072@qq.com
|
444838faa200ce4e10d5b878cd6b47e779a76361
|
9a6ea6087367965359d644665b8d244982d1b8b6
|
/src/main/java/X/C14590mX.java
|
94df43f3779bba30f48d4989c9d4edbf00f76358
|
[] |
no_license
|
technocode/com.wa_2.21.2
|
a3dd842758ff54f207f1640531374d3da132b1d2
|
3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9
|
refs/heads/master
| 2023-02-12T11:20:28.666116
| 2021-01-14T10:22:21
| 2021-01-14T10:22:21
| 329,578,591
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package X;
import android.content.ComponentName;
import android.support.v4.app.INotificationSideChannel;
import java.util.ArrayDeque;
/* renamed from: X.0mX reason: invalid class name and case insensitive filesystem */
public class C14590mX {
public int A00 = 0;
public INotificationSideChannel A01;
public ArrayDeque A02 = new ArrayDeque();
public boolean A03 = false;
public final ComponentName A04;
public C14590mX(ComponentName componentName) {
this.A04 = componentName;
}
}
|
[
"madeinborneo@gmail.com"
] |
madeinborneo@gmail.com
|
80893937b7b679815c51b347a5a9c9e8621242db
|
ea866a11daf4ebbecd080c19595867154ca95f45
|
/app/src/main/java/com/szy/yishopcustomer/Interface/OnFragmentFinish.java
|
0b27d43f64e279b975e645fe1d8eea0cb97aed56
|
[] |
no_license
|
wongainia/lyzb
|
a7def27abf59371164a19344eede2b734403472c
|
22fcb1f45672c4186c883df88621b1913f789c80
|
refs/heads/master
| 2022-01-08T14:23:22.605769
| 2019-07-18T04:48:46
| 2019-07-18T04:48:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 201
|
java
|
package com.szy.yishopcustomer.Interface;
import android.support.v4.app.Fragment;
/**
* Created by Smart on 2017/11/13.
*/
public interface OnFragmentFinish{
void onFinish(Fragment fragment);
}
|
[
"chenchaozheng@lyzb.cn"
] |
chenchaozheng@lyzb.cn
|
72be748e3b6f1872cd9cecac3d66f87011a6f471
|
17a33488736d3f6b84beaacbfcdc15dc43261a9e
|
/core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/mfa/trigger/BaseMultifactorAuthenticationTriggerTests.java
|
0a45854f8528be8103ad30c8df0a3247e46ace69
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
hdeadman/cas
|
68fa815d55ccc36a31b5037f500a8e827b6a566d
|
6d3cf1b64b2d4f9ab1ba07ab1105c9b7c77e8870
|
refs/heads/pr-puppeteerwin2
| 2023-08-06T05:59:12.248532
| 2022-03-16T00:32:45
| 2022-03-16T00:32:45
| 80,761,455
| 1
| 1
|
Apache-2.0
| 2022-03-22T00:15:11
| 2017-02-02T19:38:09
|
Java
|
UTF-8
|
Java
| false
| false
| 3,982
|
java
|
package org.apereo.cas.authentication.mfa.trigger;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.adaptive.geo.GeoLocationService;
import org.apereo.cas.authentication.mfa.TestMultifactorAuthenticationProvider;
import org.apereo.cas.authentication.principal.Principal;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.services.RegisteredService;
import org.apereo.cas.util.HttpRequestUtils;
import org.apereo.cas.util.spring.ApplicationContextProvider;
import lombok.val;
import org.apereo.inspektr.common.web.ClientInfo;
import org.apereo.inspektr.common.web.ClientInfoHolder;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.TestInfo;
import org.springframework.boot.autoconfigure.aop.AopAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.autoconfigure.RefreshAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.StaticApplicationContext;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import java.util.List;
import java.util.Map;
import static org.mockito.Mockito.*;
/**
* This is {@link BaseMultifactorAuthenticationTriggerTests}.
*
* @author Misagh Moayyed
* @since 6.1.0
*/
@SpringBootTest(classes = {
RefreshAutoConfiguration.class,
WebMvcAutoConfiguration.class,
AopAutoConfiguration.class
})
@EnableConfigurationProperties(CasConfigurationProperties.class)
public abstract class BaseMultifactorAuthenticationTriggerTests {
protected GeoLocationService geoLocationService;
protected Authentication authentication;
protected RegisteredService registeredService;
protected MockHttpServletRequest httpRequest;
protected MockHttpServletResponse httpResponse;
protected TestMultifactorAuthenticationProvider multifactorAuthenticationProvider;
protected ConfigurableApplicationContext applicationContext;
@BeforeEach
public void setup(final TestInfo info) {
this.applicationContext = new StaticApplicationContext();
applicationContext.refresh();
ApplicationContextProvider.holdApplicationContext(applicationContext);
if (!info.getTags().contains("DisableProviderRegistration")) {
this.multifactorAuthenticationProvider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
}
this.authentication = mock(Authentication.class);
val principal = mock(Principal.class);
when(principal.getId()).thenReturn("casuser");
when(principal.getAttributes()).thenReturn(Map.of("email", List.of("casuser@example.org")));
when(authentication.getAttributes()).thenReturn(Map.of("category", List.of("user-object"), "mfa-mode", List.of("mfa-other")));
when(authentication.getPrincipal()).thenReturn(principal);
this.registeredService = mock(RegisteredService.class);
when(registeredService.getName()).thenReturn("Service");
when(registeredService.getServiceId()).thenReturn("http://app.org");
when(registeredService.getId()).thenReturn(1000L);
this.geoLocationService = mock(GeoLocationService.class);
this.httpRequest = new MockHttpServletRequest();
this.httpRequest.setRemoteAddr("185.86.151.11");
this.httpRequest.setLocalAddr("185.88.151.12");
this.httpRequest.addHeader(HttpRequestUtils.USER_AGENT_HEADER, "Mozilla/5.0 (Windows NT 10.0; WOW64)");
var clientInfo = new ClientInfo(this.httpRequest);
ClientInfoHolder.setClientInfo(clientInfo);
this.httpResponse = new MockHttpServletResponse();
}
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
242d8675c17a42b93e1023e02db518bd9b635921
|
014e3dc945a34defa2643a4f1bd9a3bfd2b2eec6
|
/org.dbdoclet.herold.package/src/test/java/org/dbdoclet/herold/WhitespaceTests.java
|
20fd0ddc2c5a146ea6fe6071dc35e66f78760590
|
[] |
no_license
|
mfuchs23/trafo
|
584798993623374c448078984e687918b5a76091
|
703251e410c95c611d40146621f00adf774a606e
|
refs/heads/master
| 2023-06-22T19:16:08.726025
| 2023-06-07T10:52:33
| 2023-06-07T10:52:33
| 22,428,272
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,117
|
java
|
package org.dbdoclet.herold;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.dbdoclet.trafo.TrafoConstants;
import org.dbdoclet.trafo.param.TextParam;
import org.dbdoclet.trafo.script.Namespace;
import org.dbdoclet.trafo.script.Script;
import org.dbdoclet.trafo.script.Section;
import org.junit.Ignore;
import org.junit.Test;
import org.xml.sax.SAXException;
public class WhitespaceTests extends AbstractTests {
/** TODO */
@Test
@Ignore
public void verlorenesLeerzeichen() throws IOException, SAXException,
ParserConfigurationException {
Script script = new Script();
Namespace namespace = script.getNamespace();
Section section = namespace.findOrCreateSection(TrafoConstants.SECTION_SECTION_DETECTION);
section.setParam(new TextParam(TrafoConstants.PARAM_SECTION_NUMBERING_PATTERN, "((\\d+\\.)+)?\\d*\\.?\\p{Z}"));
String xmlCode = transform("<h1><a name='dd'><span>1.2.3</span><span> </span><span>Donald </span></a><span>Duck</span></h1>", script);
assertEquals("Donald Duck", xmlCode);
}
}
|
[
"michael.fuchs@dbdoclet.org"
] |
michael.fuchs@dbdoclet.org
|
8024c5c28bb1739f55bef522ddf688c4d2789431
|
231b34e984f084b0d4b48d11923669f88d2287d0
|
/mods/scourgecraft/blocks/BlockLightFence.java
|
c2c11dfd671d15dc22e80b25505673f7e99ee99b
|
[] |
no_license
|
KenBeanNet/Scourge1.5.2
|
a5f1aa6e5ba91f69ee41aac56198f9ac30ffa36e
|
4a8883f8abff8737cdca9f324924696ace225b18
|
refs/heads/master
| 2020-06-04T04:26:49.668307
| 2013-08-20T13:59:08
| 2013-08-20T13:59:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,636
|
java
|
package mods.scourgecraft.blocks;
import java.util.Random;
import mods.scourgecraft.ScourgeCraftCore;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFence;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class BlockLightFence extends BlockFence
{
private final boolean powered;
public BlockLightFence(int var1, boolean var2, String var3)
{
super(var1, var3, Material.rock);
this.powered = var2;
if (var2)
{
this.setLightValue(1.0F);
}
}
@Override
public void registerIcons(IconRegister reg)
{
this.blockIcon = reg.registerIcon(ScourgeCraftCore.modid + ":" + this.getUnlocalizedName2());
}
/**
* Returns true if the specified block can be connected by a fence
*/
public boolean canConnectFenceTo(IBlockAccess var1, int var2, int var3, int var4)
{
int var5 = var1.getBlockId(var2, var3, var4);
if (var5 != ScourgeCraftCore.configBlocks.fenceLightoff.blockID && var5 != Block.fenceGate.blockID && var5 != ScourgeCraftCore.configBlocks.fenceLighton.blockID && var5 != ScourgeCraftCore.configBlocks.fenceLighton1.blockID && var5 != ScourgeCraftCore.configBlocks.fenceLightoff1.blockID)
{
Block var6 = Block.blocksList[var5];
return var6 != null && var6.blockMaterial.isOpaque() && var6.renderAsNormalBlock() ? var6.blockMaterial != Material.pumpkin : false;
}
else
{
return true;
}
}
/**
* Called whenever the block is added into the world. Args: world, x, y, z
*/
public void onBlockAdded(World var1, int var2, int var3, int var4)
{
if (!var1.isRemote)
{
if (this.powered && !var1.isBlockIndirectlyGettingPowered(var2, var3, var4))
{
var1.scheduleBlockUpdate(var2, var3, var4, this.blockID, 4);
}
else if (!this.powered && var1.isBlockIndirectlyGettingPowered(var2, var3, var4))
{
var1.setBlock(var2, var3, var4, ScourgeCraftCore.configBlocks.fenceLighton.blockID);
}
}
}
/**
* Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are
* their own) Args: x, y, z, neighbor blockID
*/
public void onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)
{
if (!var1.isRemote)
{
if (this.powered && !var1.isBlockIndirectlyGettingPowered(var2, var3, var4))
{
var1.scheduleBlockUpdate(var2, var3, var4, this.blockID, 4);
}
else if (!this.powered && var1.isBlockIndirectlyGettingPowered(var2, var3, var4))
{
var1.setBlock(var2, var3, var4, ScourgeCraftCore.configBlocks.fenceLighton.blockID);
}
}
}
/**
* Ticks the block if it's been scheduled
*/
public void updateTick(World var1, int var2, int var3, int var4, Random var5)
{
if (!var1.isRemote && this.powered && !var1.isBlockIndirectlyGettingPowered(var2, var3, var4))
{
var1.setBlock(var2, var3, var4, ScourgeCraftCore.configBlocks.fenceLightoff.blockID);
}
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int var1, Random var2, int var3)
{
return ScourgeCraftCore.configBlocks.fenceLightoff.blockID;
}
}
|
[
"Ken@ThisIsTheEnd.com"
] |
Ken@ThisIsTheEnd.com
|
7e460021b404de98d11b024361e2f69ca136daf4
|
b1f51f8ba05ad83ecfbd80e6e7f140e70850bf01
|
/ACE_ERP/src/Ehr/common/popup/lctr/dao/LCTRDAO.java
|
0e6e3ed5a96482947256b9bef974ac290cdbb256
|
[] |
no_license
|
hyundaimovex-asanwas/asanwas-homepage
|
27e0ba1ed7b41313069e732f3dc9df20053caddd
|
75e30546f11258d8b70159cfbe8ee36b18371bd0
|
refs/heads/master
| 2023-06-07T03:41:10.170367
| 2021-07-01T10:23:54
| 2021-07-01T10:23:54
| 376,739,168
| 1
| 1
| null | null | null | null |
UHC
|
Java
| false
| false
| 1,318
|
java
|
package Ehr.common.popup.lctr.dao;
import com.shift.gef.core.exception.CException;
import com.shift.gef.dbms.utility.XmlSqlUtils;
import com.shift.gef.enterprise.dao.AbstractDAO;
import com.shift.gef.gauce.utility.TrBox;
import com.shift.gef.support.collection.CBox;
public class LCTRDAO extends AbstractDAO {
/**
* LCTRDAO 생성자 이며, FirstRow 기능을 지원하기 위해서는 아래와 같이
* Connection, TrBox객체를 이용해서 생성자를 만들어 주어야 한다.
* @param p_conn Connection
* @param p_tr TrBox
* @throws CException
*/
public LCTRDAO(String p_conn, TrBox p_tr) throws CException {
/** SuperClass의 생성자 호출 **/
super(p_conn, p_tr);
}
/**
* 강사명에 해당하는 주민번호와 강의분야를 조회해 오는 DAO메소드
* @param p_box CBox
* @throws CException
*/
public void LCTR_SHR(CBox p_box) throws CException {
/** 외부 XML에서 SQL을 읽어 온다 **/
String sql = XmlSqlUtils.getSQL("common", "LCTR_SHR");
/** SQL에 바인딩 될 값을 순차적으로 넣어 준다 **/
Object[] bind = new Object[] {
p_box.get("ENO_NM"), // 강사명
p_box.get("ENO_NM") // 주민번호
};
/** SELECT메소드 호출 **/
this.selectProcessFirstRow(sql, bind, prop);
}
}
|
[
"86274611+evnmoon@users.noreply.github.com"
] |
86274611+evnmoon@users.noreply.github.com
|
a81b30d68f368530b62e7d40b0e51d1f8a53c2e1
|
f02dd2ddd0cb5a191066175404efe466600d1c9e
|
/bgmanage/src/main/java/org/java/dao/Case_ReportMapper.java
|
46c584dd062d31e67b4a6fbb5ff5a6e130091c00
|
[] |
no_license
|
742005021/insureProject
|
de7ac39572cbffd88df5e00e9275a0f6806eb11e
|
6c60fe45412271fa439ecb6933cf0b625b02e912
|
refs/heads/master
| 2022-08-20T20:23:42.178254
| 2019-07-29T11:34:32
| 2019-07-29T11:34:32
| 196,135,816
| 0
| 1
| null | 2022-06-30T20:18:50
| 2019-07-10T05:15:14
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,517
|
java
|
package org.java.dao;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface Case_ReportMapper {
@Insert("INSERT case_report VALUES ("+
"#{m.cr_id},#{m.insured_name},#{m.insured_sex},#{m.insured_crad_id},#{m.insured_age},"+
"#{m.cr_enterprise},#{m.insured_profession},#{m.accident_date},#{m.accident_cause},#{m.accident_address},"+
"#{m.situation},#{m.things},#{m.autopsy},#{m.deathcertificate},#{m.cr_name},"+
"#{m.cr_phone},#{m.cr_relationship},#{m.cr_policy_id},now(),#{m.notice_address},"+
"#{m.post_code},#{m.payment},#{m.bank_name},#{m.bank_no},0," +
"#{m.process_instance_id} )"
)
public int insert(@Param("m") Map<String,Object> map);
@Select("SELECT * FROM case_report")
public Map<String,Object> getAll();
@Select("SELECT cr_id,insured_name,accident_date,cr_name,cr_phone,cr_policy_id,cr_time,statu " +
"FROM case_report WHERE statu = #{statu}"
)
List<Map<String,Object>> getList_ByStatu(@Param("statu") int statu);
@Select("SELECT cr_id, insured_name,insured_sex,insured_crad_id,insured_age ,"+
" cr_enterprise,insured_profession,accident_date,accident_cause,accident_address ,"+
" situation,things,autopsy,cr_name,cr_phone ,"+
" cr_relationship,cr_policy_id,cr_time,notice_address,post_code ,"+
" payment,bank_name,bank_no,statu,process_instance_id "+
" FROM case_report where cr_id=#{cr_id}"
)
Map<String,Object> getReport_ById(@Param("cr_id") String cr_id);
@Update("update case_report set statu = #{statu} where cr_id=#{cr_id} ")
int update_Statu(@Param("cr_id") String cr_id,@Param("statu") int statu);
@Select("SELECT * FROM case_report r " +
"LEFT JOIN case_entrust e ON r.cr_id=e.report_id " +
"WHERE e.entrust_id = #{task_id}")
Map<String,Object> getReport_ByEntrustId(@Param("task_id") String task_id);
@Select("select count(*) from policy where policy_id = #{policy_no}")
int policy_check(@Param("policy_no") String policy_no);
@Select("SELECT policyorder pdf FROM policy WHERE policy_id= #{policy_id}")
Map<String,Object> getPolicyImg(@Param("policy_id") String policy_id);
@Select("SELECT deathcertificate file FROM case_report WHERE cr_id= #{cr_id}")
Map<String, Object> getDeathcertificate(String cr_id);
}
|
[
"123"
] |
123
|
da06c44c87272858c92b53e03b1391badff9b12f
|
5825f8e9ed7e97dac071f9899bf9fb185a9151c6
|
/clients/Base/src/org/spongycastle/crypto/tls/TlsRSAUtils.java
|
9e9728f0e8ef530d9c0aaf5dbcee6436a21ab66a
|
[
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] |
permissive
|
stko/oobd
|
58072f58455ae1cd7ea2b36130d69728618317df
|
44a74d3fa4845b2d6743209e771d2a8bb3f81080
|
refs/heads/master
| 2023-03-14T02:04:54.662033
| 2022-02-20T06:35:14
| 2022-02-20T06:35:14
| 33,430,824
| 12
| 8
| null | 2023-03-05T23:09:16
| 2015-04-05T04:56:49
|
Java
|
UTF-8
|
Java
| false
| false
| 1,744
|
java
|
package org.spongycastle.crypto.tls;
import java.io.IOException;
import java.io.OutputStream;
import org.spongycastle.crypto.InvalidCipherTextException;
import org.spongycastle.crypto.encodings.PKCS1Encoding;
import org.spongycastle.crypto.engines.RSABlindedEngine;
import org.spongycastle.crypto.params.ParametersWithRandom;
import org.spongycastle.crypto.params.RSAKeyParameters;
public class TlsRSAUtils
{
public static byte[] generateEncryptedPreMasterSecret(TlsClientContext context,
RSAKeyParameters rsaServerPublicKey, OutputStream os) throws IOException
{
/*
* Choose a PremasterSecret and send it encrypted to the server
*/
byte[] premasterSecret = new byte[48];
context.getSecureRandom().nextBytes(premasterSecret);
TlsUtils.writeVersion(context.getClientVersion(), premasterSecret, 0);
PKCS1Encoding encoding = new PKCS1Encoding(new RSABlindedEngine());
encoding.init(true, new ParametersWithRandom(rsaServerPublicKey, context.getSecureRandom()));
try
{
boolean isTls = context.getServerVersion().getFullVersion() >= ProtocolVersion.TLSv10.getFullVersion();
byte[] keData = encoding.processBlock(premasterSecret, 0, premasterSecret.length);
if (isTls)
{
TlsUtils.writeOpaque16(keData, os);
}
else
{
os.write(keData);
}
}
catch (InvalidCipherTextException e)
{
/*
* This should never happen, only during decryption.
*/
throw new TlsFatalAlert(AlertDescription.internal_error);
}
return premasterSecret;
}
}
|
[
"steffen.koehlers.de@gmail.com@f834055d-ee70-0692-e1cb-8b28bc4b2f15"
] |
steffen.koehlers.de@gmail.com@f834055d-ee70-0692-e1cb-8b28bc4b2f15
|
b3f1a57fc0c3983bcd13ca4960e0df4e7de4a5d6
|
da205bce53df38da79e43aeb15ca7710ae0795c3
|
/src/main/java/com/medwin/landison/common/strategy/ReservationServiceHandler.java
|
de2c78cbe8bbcbb3869cd1020493c2d468237b5b
|
[] |
no_license
|
medwinwang/landison
|
7c86624d6d2c61a24cfbcacec18260057e8430e4
|
c1aadc26547c2a1e05adc7f2d01366a80a87fe9a
|
refs/heads/master
| 2020-04-01T20:03:40.263160
| 2019-03-04T13:40:01
| 2019-03-04T13:40:01
| 153,586,357
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package com.medwin.landison.common.strategy;
import com.medwin.landison.exception.KmsSystemException;
import org.springframework.util.StringUtils;
import javax.xml.soap.SOAPHeader;
import static com.medwin.landison.common.KmsClientHandler.ERR_REASON;
import static com.medwin.landison.common.KmsClientHandler.RET_CODE;
import static com.medwin.landison.common.KmsClientHandler.getValueByEle;
/**
* Created by medwin on 2018/12/12.
*/
public class ReservationServiceHandler implements HandlerStrategy {
@Override
public void handler(SOAPHeader soapHeader) {
String retCode = getValueByEle(soapHeader, RET_CODE);
if(!StringUtils.isEmpty(retCode) && !"5001".equals(retCode)) {
String errReason = getValueByEle(soapHeader, ERR_REASON);
throw new KmsSystemException(retCode, errReason);
}
}
}
|
[
"wm1990315@gmail.com"
] |
wm1990315@gmail.com
|
181f461ba92ba0d3b07838bf5026eaab89c38fcf
|
7af846ccf54082cd1832c282ccd3c98eae7ad69a
|
/ftmap/src/main/java/taxi/nicecode/com/ftmap/generated/package_28/Foo136.java
|
2c245afbad5df140b74024457988c4f80b0c0830
|
[] |
no_license
|
Kadanza/TestModules
|
821f216be53897d7255b8997b426b359ef53971f
|
342b7b8930e9491251de972e45b16f85dcf91bd4
|
refs/heads/master
| 2020-03-25T08:13:09.316581
| 2018-08-08T10:47:25
| 2018-08-08T10:47:25
| 143,602,647
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 270
|
java
|
package taxi.nicecode.com.ftmap.generated.package_28;
public class Foo136 {
public void foo0(){
new Foo135().foo5();
}
public void foo1(){
foo0();
}
public void foo2(){
foo1();
}
public void foo3(){
foo2();
}
public void foo4(){
foo3();
}
public void foo5(){
foo4();
}
}
|
[
"1"
] |
1
|
2d2b57e67e66df1e5c137d1cbb100a10767733ad
|
c46f99dbb1ea967302d4ba6f974928c43e0b7eb1
|
/src/xlsx4j/java/org/xlsx4j/sml/STPane.java
|
8b300a14d10e8082b58deadaedd9e2c7a763a626
|
[
"Apache-2.0"
] |
permissive
|
manivannans/docx4j
|
688320ebde87c6f6d7cd43f32d475eb635d5e9c1
|
777c78a844b98e15c3d472fedd3b3e01e6017327
|
refs/heads/master
| 2020-12-25T00:50:18.304299
| 2012-05-29T03:59:59
| 2012-05-29T03:59:59
| 4,479,085
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,172
|
java
|
/*
* Copyright 2010, Plutext Pty Ltd.
*
* This file is part of docx4j.
docx4j is 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.xlsx4j.sml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ST_Pane.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ST_Pane">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="bottomRight"/>
* <enumeration value="topRight"/>
* <enumeration value="bottomLeft"/>
* <enumeration value="topLeft"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ST_Pane")
@XmlEnum
public enum STPane {
/**
* Bottom Right Pane
*
*/
@XmlEnumValue("bottomRight")
BOTTOM_RIGHT("bottomRight"),
/**
* Top Right Pane
*
*/
@XmlEnumValue("topRight")
TOP_RIGHT("topRight"),
/**
* Bottom Left Pane
*
*/
@XmlEnumValue("bottomLeft")
BOTTOM_LEFT("bottomLeft"),
/**
* Top Left Pane
*
*/
@XmlEnumValue("topLeft")
TOP_LEFT("topLeft");
private final String value;
STPane(String v) {
value = v;
}
public String value() {
return value;
}
public static STPane fromValue(String v) {
for (STPane c: STPane.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"jason@plutext.org"
] |
jason@plutext.org
|
86d1c0060953232a86f121c8393618ea1378386a
|
8b9e9b63ff42885d3f5597653f662bc8bbeacbed
|
/cs-101-exercises/04-recursion/001-recursion/src/main/java/org/joolzminer/examples/adt/recursion/runners/LabyrinthSolver.java
|
897c16ff341923551229d6f11638cf8d3c7465cc
|
[] |
no_license
|
sergiofgonzalez/cs-101
|
d261df34ff8a5a336ac30040f6e9d4f5509c42f1
|
dc904f51bdb98cd2170e0af7eafb849a1936aa54
|
refs/heads/master
| 2021-01-10T04:14:56.018304
| 2015-09-02T16:56:06
| 2015-09-02T16:56:06
| 36,550,244
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,528
|
java
|
package org.joolzminer.examples.adt.recursion.runners;
public class LabyrinthSolver {
private static final char WALL = 'W';
private static final char START = 'S';
private static final char EXIT = 'E';
private static final char VISITED_PATH = 'X';
private static final char EXIT_FOUND = '⓿';
private static char[][] labyrinth =
{
{'S', ' ', 'W', ' ', ' ', ' ', ' ', ' '},
{'W', ' ', 'W', ' ', 'W', ' ', 'W', ' '},
{'W', ' ', 'W', ' ', 'W', ' ', ' ', 'W'},
{'W', ' ', ' ', ' ', 'W', 'W', 'E', 'W'},
};
private static char[][] labyrinth2 =
{
{'S', ' ', ' ', ' ', 'W', 'W', 'W', ' ', ' ', 'W', ' ', ' '},
{' ', ' ', 'W', ' ', ' ', ' ', 'W', ' ', ' ', 'W', ' ', 'W'},
{'W', ' ', 'W', 'W', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
{'W', ' ', ' ', ' ', 'W', ' ', ' ', 'W', ' ', ' ', 'W', ' '},
{'W', ' ', ' ', ' ', 'W', 'W', 'W', ' ', ' ', ' ', 'W', ' '},
{' ', 'W', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'W', ' ', ' '},
{' ', 'W', 'W', 'W', ' ', ' ', 'W', 'W', 'W', 'W', ' ', 'W'},
{' ', ' ', ' ', ' ', ' ', ' ', 'W', ' ', ' ', 'W', ' ', ' '},
{' ', 'W', ' ', 'W', 'W', ' ', ' ', ' ', ' ', 'W', 'W', 'W'},
{'W', ' ', ' ', ' ', ' ', ' ', ' ', 'W', ' ', ' ', ' ', 'E'},
};
private static char[][] labyrinth3 =
{
{'S', ' ', ' ', ' ', 'W', 'W', 'W', ' ', ' ', 'W', ' ', ' '},
{' ', ' ', 'W', ' ', ' ', ' ', 'W', ' ', ' ', 'W', ' ', 'W'},
{'W', ' ', 'W', 'W', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
{'W', ' ', ' ', ' ', 'W', ' ', ' ', 'W', ' ', ' ', 'W', ' '},
{'W', ' ', ' ', ' ', 'W', 'W', 'W', ' ', ' ', ' ', 'W', ' '},
{' ', 'W', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'W', ' ', ' '},
{' ', 'W', 'W', 'W', ' ', ' ', 'W', 'W', 'W', 'W', ' ', 'W'},
{' ', ' ', ' ', ' ', ' ', ' ', 'W', ' ', ' ', 'W', ' ', ' '},
{' ', 'W', ' ', 'W', 'W', 'W', ' ', ' ', ' ', 'W', 'W', 'W'},
{'W', ' ', ' ', ' ', ' ', ' ', ' ', 'W', ' ', ' ', 'W', 'E'},
};
public static void main(String[] args) throws Exception {
// Easy one, with solution
prettyPrint(labyrinth);
findLabyrinthExit(labyrinth, 0, 0);
prettyPrint(labyrinth);
// More complicated one with solution
prettyPrint(labyrinth2);
findLabyrinthExit(labyrinth2, 0, 0);
prettyPrint(labyrinth2);
// More complicated one without solution
prettyPrint(labyrinth3);
findLabyrinthExit(labyrinth3, 0, 0);
prettyPrint(labyrinth3);
}
private static boolean findLabyrinthExit(char[][] labyrinth, int row, int col) {
if (row < 0 || row >= labyrinth.length || col < 0 || col >= labyrinth[0].length) {
return false;
} else if (EXIT == labyrinth[row][col]) {
labyrinth[row][col] = EXIT_FOUND;
return true;
} else if (WALL == labyrinth[row][col] || VISITED_PATH == labyrinth[row][col]) {
return false;
} else {
if (START != labyrinth[row][col]) {
labyrinth[row][col] = VISITED_PATH;
prettyPrint(labyrinth);
delay();
}
return findLabyrinthExit(labyrinth, row - 1, col) ||
findLabyrinthExit(labyrinth, row, col + 1) ||
findLabyrinthExit(labyrinth, row + 1, col) ||
findLabyrinthExit(labyrinth, row, col - 1);
}
}
/**
* ┌─┬─┬─┬─┬─┬─┬─┐
* │S│ │▓│ │ │ │▓│
* ├─┼─┼─┼─┼─┼─┼─┤
* │E│ │▓│ │ │ │▓│
* └─┴─┴─┴─┴─┴─┴─┘
*/
public static void prettyPrint(char[][] labyrinth) {
int rows = labyrinth.length;
int cols = labyrinth[0].length;
for (int col = 0; col < cols; col++) {
if (col == 0) {
System.out.print('┌');
} else {
System.out.print('┬');
}
System.out.print('─');
}
System.out.println('┐');
for (int row = 0; row < rows; row++) {
for (int col = 0; col < cols; col++) {
System.out.print('│');
System.out.print((WALL == labyrinth[row][col])? '▓' : labyrinth[row][col]);
}
System.out.println('│');
if (row < rows -1) {
for (int col = 0; col < cols; col++) {
if (col == 0) {
System.out.print('├');
} else {
System.out.print('┼');
}
System.out.print('─');
}
System.out.println('┤');
}
}
for (int col = 0; col < cols; col++) {
if (col == 0) {
System.out.print('└');
} else {
System.out.print('┴');
}
System.out.print('─');
}
System.out.println('┘');
}
private static void delay() {
try {
Thread.sleep(750L);
} catch (InterruptedException e) {
// swallow
}
}
}
|
[
"sergio.f.gonzalez@gmail.com"
] |
sergio.f.gonzalez@gmail.com
|
82b18634adaba28aee6072c8fafa4573f89397de
|
f35e9ffcdde1f80b1641300549ad0aa183e9c69d
|
/MobileSensingCollector/ref-src/Controller.java
|
9b15ad25854995235f09f58e01912a0a29ac76b9
|
[] |
no_license
|
Institute-Web-Science-and-Technologies/MobSens
|
8aad2e62514354ca7ff15c928d91d7cd2558ee22
|
68ef62a862680df37860bc3479168bb6f34262b6
|
refs/heads/master
| 2021-01-13T06:27:49.014355
| 2014-05-08T08:21:15
| 2014-05-08T08:21:15
| 19,567,624
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,168
|
java
|
package mobsens.collector;
import java.util.Date;
import mobsens.collector.communications.ConnectingActivity;
import mobsens.collector.drivers.messaging.CollectorStatusDriver;
import mobsens.collector.drivers.messaging.ExternalizeResponseDriver;
import mobsens.collector.drivers.messaging.LogDriver;
import mobsens.collector.drivers.messaging.UploadResponseDriver;
import mobsens.collector.intents.IntentStartCollector;
import mobsens.collector.intents.IntentStopCollector;
import mobsens.collector.util.Logging;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class Controller extends ConnectingActivity
{
private final LogDriver logDriver;
private final UploadResponseDriver uploadResponseDriver;
private final ExternalizeResponseDriver externalizeResponseDriver;
private final CollectorStatusDriver collectorStatusDriver;
private CollectorIPC collectorIPC;
private TextView textViewControllerLog;
private TextView textViewControllerTitle;
private Button buttonControllerStartStop;
public Controller()
{
super(Collector.class);
logDriver = new LogDriver(this)
{
@Override
protected void onLog(Date time, String title, String subtitle, String description)
{
String text = title + "\r\n " + subtitle;
if (description != null)
{
text += "\r\n" + description.replaceAll("(?m)^", "> ");
}
textViewControllerLog.setText(text + "\r\n\r\n" + textViewControllerLog.getText());
}
};
uploadResponseDriver = new UploadResponseDriver(this)
{
@Override
protected void onUploadResponse(String handle, Date startTime, Date endTime, long transmitted, String response, Throwable exception)
{
Logging.log(Controller.this, endTime, "Upload complete", handle, transmitted + " bytes transmitted");
}
};
externalizeResponseDriver = new ExternalizeResponseDriver(this)
{
@Override
protected void onExternalizeResponse(String handle, Date startTime, Date endTime, long transmitted, Throwable exception)
{
Logging.log(Controller.this, endTime, "Externalize complete", handle, transmitted + " bytes transmitted");
}
};
collectorStatusDriver = new CollectorStatusDriver(this)
{
@Override
protected void onCollectorStatus(boolean status)
{
if (status)
{
buttonControllerStartStop.setText("Stop");
}
else
{
buttonControllerStartStop.setText("Start");
}
}
};
collectorIPC = null;
}
@Override
public boolean onMenuItemSelected(int featureId, MenuItem item)
{
switch (item.getItemId())
{
case R.id.action_settings:
startActivity(new Intent(getApplicationContext(), Settings.class));
return true;
case R.id.action_tag:
startActivity(new Intent(getApplicationContext(), Fasttag.class));
return true;
case R.id.action_map:
startActivity(new Intent(getApplicationContext(), Map.class));
return true;
case R.id.action_stage:
startActivity(new Intent(getApplicationContext(), Stage.class));
return true;
default:
return super.onMenuItemSelected(featureId, item);
}
}
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_controller);
textViewControllerLog = (TextView) findViewById(R.id.controller_log);
textViewControllerTitle = (TextView) findViewById(R.id.controller_title);
buttonControllerStartStop = (Button) findViewById(R.id.controller_start_stop);
buttonControllerStartStop.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
if (collectorIPC != null)
{
try
{
if (collectorIPC.isCollecting())
{
IntentStopCollector.sendBroadcast(Controller.this);
}
else
{
IntentStartCollector.sendBroadcast(Controller.this, textViewControllerTitle.getText().toString());
}
}
catch (RemoteException e)
{
Logging.log(Controller.this, e);
}
}
}
});
logDriver.start();
uploadResponseDriver.start();
externalizeResponseDriver.start();
collectorStatusDriver.start();
}
@Override
protected void onDestroy()
{
logDriver.stop();
uploadResponseDriver.stop();
externalizeResponseDriver.stop();
collectorStatusDriver.stop();
super.onDestroy();
}
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.controller, menu);
return true;
}
@Override
protected void onConnected(IBinder service)
{
collectorIPC = CollectorIPC.Stub.asInterface(service);
try
{
if (collectorIPC.isCollecting())
{
buttonControllerStartStop.setText("Stop");
}
else
{
buttonControllerStartStop.setText("Start");
}
}
catch (RemoteException e)
{
Logging.log(this, e);
}
Logging.log(this, "Controller", "Connected", null);
}
@Override
protected void onDisconnected()
{
collectorIPC = null;
Logging.log(this, "Controller", "Disconnected", null);
}
@Override
protected void onSaveInstanceState(Bundle outState)
{
super.onSaveInstanceState(outState);
outState.putString(R.id.controller_log + "text", textViewControllerLog.getText().toString());
outState.putString(R.id.controller_title + "text", textViewControllerTitle.getText().toString());
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState)
{
super.onRestoreInstanceState(savedInstanceState);
textViewControllerLog.setText(savedInstanceState.getString(R.id.controller_log + "text"));
textViewControllerTitle.setText(savedInstanceState.getString(R.id.controller_title + "text"));
}
}
|
[
"lukashaertel@googlemail.com"
] |
lukashaertel@googlemail.com
|
02206e2d611625b26986532195d341400c507bf0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_0b70443882dbcdde31a1ee5c0c53f7b98da277ef/SifterHelper/11_0b70443882dbcdde31a1ee5c0c53f7b98da277ef_SifterHelper_s.java
|
e4fa86fac5a51dc40e42882ca8912c25397bddff
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,751
|
java
|
package com.SifterReader.android;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.content.res.Resources.NotFoundException;
public class SifterHelper {
private final Context mContext;
private String mAccessKey;
public SifterHelper(Context context, String accessKey) {
mContext = context;
mAccessKey = accessKey;
}
public SifterHelper(Context context) {
mContext = context;
getKey();
}
public URLConnection getSifterConnection(String sifterURL) {
URLConnection sifterConnection = null;
try {
// create URL object to SifterAPI
URL sifter = new URL(sifterURL); // throws MalformedURLException
// open connection to SifterAPI
sifterConnection = sifter.openConnection(); // throws IOException
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} // catch errors, do nothing, return null, use onConnectionError
return sifterConnection;
}
public InputStream getSifterInputStream(URLConnection sifterConnection) {
// send header requests
sifterConnection.setRequestProperty(SifterReader.X_SIFTER_TOKEN, mAccessKey);
sifterConnection.addRequestProperty(SifterReader.HEADER_REQUEST_ACCEPT, SifterReader.APPLICATION_JSON);
InputStream is = null;
try {
is = sifterConnection.getInputStream(); // throws FileNotFound, IOException
} catch (IOException e) {
e.printStackTrace();
// also catches FileNotFoundException: invalid domain
// IOException: invalid access key
HttpURLConnection httpSifterConnection = (HttpURLConnection)sifterConnection;
is = httpSifterConnection.getErrorStream();
} // catch errors, return error stream, could be null if none found
return is;
}
public JSONObject onConnectionError() throws JSONException, NotFoundException {
JSONObject connectionError = new JSONObject();
connectionError.put(SifterReader.LOGIN_ERROR, // throws JSONException
mContext.getResources().getString(R.string.connection_error)); // throws NotFoundException
connectionError.put(SifterReader.LOGIN_DETAIL,
mContext.getResources().getString(R.string.connection_error_msg));
return connectionError;
}
public void resetKey(String accessKey) {
mAccessKey = accessKey; // TODO SifterHelper should get keys from key_file
}
public void getKey(){
File keyFile = mContext.getFileStreamPath(SifterReader.KEY_FILE);
// if (!keyFile.exists()) {
// if (onMissingToken())
// loginKeys();
// return;
// }
// boolean fileReadError = false;
try {
BufferedReader in = new BufferedReader(new FileReader(keyFile));
String inputLine;
StringBuilder x = new StringBuilder();
while ((inputLine = in.readLine()) != null) {
x.append(inputLine);
}
in.close();
JSONObject loginKeys = new JSONObject(x.toString());
mAccessKey = loginKeys.getString(SifterReader.ACCESS_KEY);
} catch (FileNotFoundException e) {
e.printStackTrace();
// fileReadError = true;
} catch (IOException e) {
e.printStackTrace();
// fileReadError = true;
} catch (JSONException e) {
e.printStackTrace();
// fileReadError = true;
}
// if (fileReadError || mDomain.isEmpty() || mAccessKey.isEmpty()) {
// if (onMissingToken())
// loginKeys();
// return;
// }
}
public JSONObject getSifterJSONObject(URLConnection sifterConnection) throws JSONException,NotFoundException,IOException {
JSONObject sifterJSONObject = new JSONObject();
InputStream sifterInputStream = getSifterInputStream(sifterConnection);
if (sifterInputStream == null) { // null means MalformedURLException or IOException
return onConnectionError(); // throws JSONException, NotFoundException
}
BufferedReader in = new BufferedReader(new InputStreamReader(sifterInputStream));
String inputLine;
StringBuilder x = new StringBuilder();
try {
while ((inputLine = in.readLine()) != null)
x.append(inputLine);
} catch (IOException e) {
in.close();sifterInputStream.close();
throw e;
} // catch error and close buffered reader
in.close();sifterInputStream.close();
// sifterInputStream must stay open for buffered reader
sifterJSONObject = new JSONObject(x.toString()); // throws JSONException
return sifterJSONObject;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8bdde6e1bfe50ea57cc8aecfde22262bcd46c854
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/apache--hadoop/35f64962fccc472f5fbd172f3f824fdd72a43143/before/FileSetUtils.java
|
bee4da1f7f2a97f7098b73253ef2ae6dc2c787c0
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,007
|
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 org.apache.hadoop.maven.plugin.util;
import org.apache.maven.model.FileSet;
import org.codehaus.plexus.util.FileUtils;
import java.io.File;
import java.io.IOException;
import java.util.List;
/**
* FileSetUtils contains helper methods for mojo implementations that need to
* work with a Maven FileSet.
*/
public class FileSetUtils {
/**
* Returns a string containing every element of the given list, with each
* element separated by a comma.
*
* @param list List of all elements
* @return String containing every element, comma-separated
*/
private static String getCommaSeparatedList(List list) {
StringBuilder buffer = new StringBuilder();
String separator = "";
for (Object e : list) {
buffer.append(separator).append(e);
separator = ",";
}
return buffer.toString();
}
/**
* Converts a Maven FileSet to a list of File objects.
*
* @param source FileSet to convert
* @return List containing every element of the FileSet as a File
* @throws IOException if an I/O error occurs while trying to find the files
*/
@SuppressWarnings("unchecked")
public static List<File> convertFileSetToFiles(FileSet source) throws IOException {
String includes = getCommaSeparatedList(source.getIncludes());
String excludes = getCommaSeparatedList(source.getExcludes());
return FileUtils.getFiles(new File(source.getDirectory()), includes, excludes);
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
798c8dbd711cf7ed3d35d65159f9fe51622f319a
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/tags/4.2.1/common/src/test/java/com/tc/util/runtime/ThreadDumpUtilJdk16Test.java
|
a04d280bba2c71ffb4bb5853b099443d49c3d73b
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,361
|
java
|
/*
* All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package com.tc.util.runtime;
import com.tc.util.Assert;
public class ThreadDumpUtilJdk16Test extends ThreadDumpUtilTestBase {
public void testThreadDump() throws Throwable {
final int numThreads = 10;
TraceThread[] threads = new TraceThread[numThreads];
for (int i = 0; i < numThreads; ++i) {
threads[i] = new TraceThread();
}
String dump = getDump(threads);
try {
assertTrue(dump.contains("- locked"));
Assert.eval("The text \"Full thread dump \" should be present in the thread dump",
dump.indexOf("Full thread dump ") >= 0);
// we expect to see all the created threads waiting on a CountDownLatch
assertEquals(numThreads, countSubstrings(dump, OBSERVER_GATE));
} catch (Throwable t) {
System.err.println(dump);
throw t;
}
}
/**
* Thread.getId() should be final but it isn't, so subclasses can break the contract.
* When this happens we need to behave gracefully. See CDV-1262.
* We used to use Thread.getId in ThreadDumpUtilJdk16.getThreadDump(). Since Thread.getId
* method is not final so if any thread override the method we used to get Exception
* DEV-3897 changed the behavior for ThreadDumpUtilJdk16.getThreadDump and so we get the
* correct thread dump even in case when the Thread.getId() method id overridden.
*/
public void testBadThreadId() throws Throwable {
final int numThreads = 10;
TraceThread[] threads = new TraceThread[numThreads];
for (int i = 0; i < numThreads; ++i) {
threads[i] = (i % 2 == 0) ? new TraceThread() : new BadIdThread();
}
String dump = getDump(threads);
try {
Assert.eval("The text \"Full thread dump \" should be present in the thread dump",
dump.indexOf("Full thread dump ") >= 0);
// we expect to see all the created threads waiting on a CountDownLatch
assertEquals(numThreads, countSubstrings(dump, OBSERVER_GATE));
// half the strings should be complaining about unrecognized IDs
assertEquals(0, countSubstrings(dump, OVERRIDDEN));
} catch (Throwable t) {
System.err.println(dump);
throw t;
}
}
}
|
[
"cruise@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
cruise@7fc7bbf3-cf45-46d4-be06-341739edd864
|
df0ce5e515cb8ebc53e0d2cbc5c9f1adc4b625d9
|
5e4100a6611443d0eaa8774a4436b890cfc79096
|
/src/main/java/com/alipay/api/domain/GroupRecord.java
|
5063147396688851f02362b3b2b263ff07855612
|
[
"Apache-2.0"
] |
permissive
|
coderJL/alipay-sdk-java-all
|
3b471c5824338e177df6bbe73ba11fde8bc51a01
|
4f4ed34aaf5a320a53a091221e1832f1fe3c3a87
|
refs/heads/master
| 2020-07-15T22:57:13.705730
| 2019-08-14T10:37:41
| 2019-08-14T10:37:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,363
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 搜索结果分组
*
* @author auto create
* @since 1.0, 2018-11-29 20:18:37
*/
public class GroupRecord extends AlipayObject {
private static final long serialVersionUID = 4867943891547261974L;
/**
* 本次返回的结果数量
*/
@ApiField("count")
private Long count;
/**
* 展位ID,finetinyapp:精品小程序 finecard:场景card
*/
@ApiField("group_id")
private String groupId;
/**
* 显示名称,可为空
*/
@ApiField("group_name")
private String groupName;
/**
* 是否还有更多结果
*/
@ApiField("has_more")
private Boolean hasMore;
/**
* 命中结果
*/
@ApiListField("hits")
@ApiField("hit")
private List<Hit> hits;
/**
* 更多显示名称
*/
@ApiField("more_link_name")
private String moreLinkName;
/**
* 更多url
*/
@ApiField("more_link_url")
private String moreLinkUrl;
/**
* 搜索命中结果总数量
*/
@ApiField("total_count")
private Long totalCount;
public Long getCount() {
return this.count;
}
public void setCount(Long count) {
this.count = count;
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public Boolean getHasMore() {
return this.hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
public List<Hit> getHits() {
return this.hits;
}
public void setHits(List<Hit> hits) {
this.hits = hits;
}
public String getMoreLinkName() {
return this.moreLinkName;
}
public void setMoreLinkName(String moreLinkName) {
this.moreLinkName = moreLinkName;
}
public String getMoreLinkUrl() {
return this.moreLinkUrl;
}
public void setMoreLinkUrl(String moreLinkUrl) {
this.moreLinkUrl = moreLinkUrl;
}
public Long getTotalCount() {
return this.totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
d613ea857cfe0ddb45c9c650da2896f5293cadec
|
b61cfd8d0eb8fc6d4423e980c682af78383993eb
|
/accounts-api/src/main/java/uk/gov/caz/accounts/dto/CreateAndInviteUserRequestDto.java
|
c1ea3ceabfd08120d10203b4f337c37fdd50dda4
|
[
"OGL-UK-3.0"
] |
permissive
|
DEFRA/clean-air-zones-api
|
984e6ba7d16cc484e74dd57b1fab6150e230ce1c
|
e6437781ff5dc71b01ffce9fd6f8bec2226ee0a6
|
refs/heads/master
| 2023-07-24T13:59:03.152029
| 2021-05-06T16:24:20
| 2021-05-06T16:24:20
| 232,327,284
| 0
| 2
|
NOASSERTION
| 2023-07-13T17:02:58
| 2020-01-07T13:10:59
|
Java
|
UTF-8
|
Java
| false
| false
| 5,192
|
java
|
package uk.gov.caz.accounts.dto;
import io.swagger.annotations.ApiModelProperty;
import java.net.URI;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
import lombok.Builder;
import lombok.Value;
import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator;
import org.springframework.util.StringUtils;
import uk.gov.caz.accounts.controller.exception.InvalidRequestPayloadException;
import uk.gov.caz.accounts.util.MapPreservingOrderBuilder;
import uk.gov.caz.common.util.Strings;
/**
* Class that represents incoming JSON payload for an endpoint that creates and invites a user.
*/
@Value
@Builder
public class CreateAndInviteUserRequestDto {
public static final int NAME_MAX_LENGTH = 255;
private static final EmailValidator EMAIL_VALIDATOR = new EmailValidator();
/**
* Email of the invited user.
*/
@ApiModelProperty(value = "${swagger.model.descriptions.create-and-invite-user-for-account."
+ "email}")
String email;
/**
* Username of the invited user.
*/
@ApiModelProperty(value = "${swagger.model.descriptions.create-and-invite-user-for-account."
+ "name}")
String name;
/**
* Internal identifier of the inviting user.
*/
@ApiModelProperty(value = "${swagger.model.descriptions.create-and-invite-user-for-account."
+ "is-administered-by}")
String isAdministeredBy;
/**
* URL to which user will be redirected in order to verify email.
*/
@ApiModelProperty(
value = "${swagger.operations.accounts.create-and-invite-user-for-account.verification-url}")
String verificationUrl;
/**
* List of permissions that needs to added for given user.
*/
@ApiModelProperty(value = "${swagger.model.descriptions.users.permissions}")
Set<String> permissions;
/**
* Public method that validates given object and throws exceptions if validation doesn't pass.
*/
public void validate() {
validators.forEach((validator, message) -> {
boolean isValid = validator.apply(this);
if (!isValid) {
throw new InvalidRequestPayloadException(message);
}
});
}
/**
* Private field with validation rules.
*/
private static final Map<Function<CreateAndInviteUserRequestDto, Boolean>, String> validators =
MapPreservingOrderBuilder
.<Function<CreateAndInviteUserRequestDto, Boolean>, String>builder()
.put(emailIsNotBlank(), "email cannot be null or empty.")
.put(emailIsValid(), "email is not valid.")
.put(nameIsNotBlank(), "name cannot be null or empty.")
.put(nameIsNotTooLong(), "name is too long.")
.put(isAdministeredByIsNotBlank(), "isAdministeredBy cannot be null or empty.")
.put(isAdministeredByIsValidUuid(), "isAdministeredBy should be a valid UUID value.")
.put(verificationUrlIsNotBlank(), "verificationUrl cannot be null or empty.")
.put(verificationUrlIsValid(), "verificationUrl is not valid.")
.build();
/**
* Returns a lambda that verifies if 'name' is not blank.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> nameIsNotBlank() {
return request -> StringUtils.hasText(request.getName());
}
/**
* Returns a lambda that verifies if 'name' is not too long.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> nameIsNotTooLong() {
return request -> request.getName().length() <= NAME_MAX_LENGTH;
}
/**
* Returns a lambda that verifies if 'isAdministeredBy' is not blank.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> isAdministeredByIsNotBlank() {
return request -> StringUtils.hasText(request.getIsAdministeredBy());
}
/**
* Returns a lambda that verifies if 'isAdministeredBy' is a valid UUID identifier.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> isAdministeredByIsValidUuid() {
return request -> Strings.isValidUuid(request.getIsAdministeredBy());
}
/**
* Returns a lambda that verifies if 'email' is not blank.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> emailIsNotBlank() {
return request -> StringUtils.hasText(request.getEmail());
}
/**
* Returns a lambda that verifies if 'email' is valid.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> emailIsValid() {
return request -> EMAIL_VALIDATOR.isValid(request.getEmail(), null);
}
/**
* Returns a lambda that verifies if 'verificationUrl' is not blank.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> verificationUrlIsNotBlank() {
return request -> StringUtils.hasText(request.getVerificationUrl());
}
/**
* Returns a lambda that verifies if 'verificationUrl' is valid.
*/
private static Function<CreateAndInviteUserRequestDto, Boolean> verificationUrlIsValid() {
return request -> isValidUri(request.getVerificationUrl());
}
/**
* Helper method for validating URI format.
*/
private static boolean isValidUri(String uri) {
try {
URI.create(uri);
return true;
} catch (IllegalArgumentException e) {
return false;
}
}
}
|
[
"james.cruddas@informed.com"
] |
james.cruddas@informed.com
|
3036ec9391b912477a1a224a56c51ebabe3b35bb
|
affe223efe18ba4d5e676f685c1a5e73caac73eb
|
/clients/webservice/src/main/java/com/vmware/vim/RefreshStorageSystemResponse.java
|
ec1944c77283ead14dd33801b204d406a1fdf6d2
|
[] |
no_license
|
RohithEngu/VM27
|
486f6093e0af2f6df1196115950b0d978389a985
|
f0f4f177210fd25415c2e058ec10deb13b7c9247
|
refs/heads/master
| 2021-01-16T00:42:30.971054
| 2009-08-14T19:58:16
| 2009-08-14T19:58:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,154
|
java
|
/**
* RefreshStorageSystemResponse.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.vmware.vim;
public class RefreshStorageSystemResponse implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public RefreshStorageSystemResponse() {
}
private java.lang.Object __equalsCalc = null;
@Override
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RefreshStorageSystemResponse)) {
return false;
}
RefreshStorageSystemResponse other = (RefreshStorageSystemResponse) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true;
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
@Override
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
RefreshStorageSystemResponse.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim2",
">RefreshStorageSystemResponse"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType, java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
_xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType, java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
_xmlType, typeDesc);
}
}
|
[
"sankarachary@intalio.com"
] |
sankarachary@intalio.com
|
480d0dcd68987a02e757486bae5fbe69541ae6bf
|
7a9046ca4c162ba2c87f94dfc400bda981888e03
|
/src/java/com/cardpay/pccredit/datapri/constant/DataPriConstants.java
|
f7d8608479e9e78ac7ce83b36d6409405a71fdb1
|
[
"Apache-2.0"
] |
permissive
|
wangpggg/PCCredit_YQ
|
6041d430ec7e56b29ba9b55b8dd26194894f1bf6
|
79863c047f309b16b9ae3be5d686ac345629c33e
|
refs/heads/master
| 2021-01-18T12:01:44.526784
| 2016-06-20T08:17:10
| 2016-06-20T08:17:10
| 61,018,565
| 0
| 0
| null | 2016-06-13T08:03:47
| 2016-06-13T08:03:46
| null |
UTF-8
|
Java
| false
| false
| 1,547
|
java
|
package com.cardpay.pccredit.datapri.constant;
public class DataPriConstants {
//表名
public static final String JINJIAN_TABLE = "CUSTOMER_APPLICATION_INFO";
public static final String KEHU_TABLE = "BASIC_CUSTOMER_INFORMATION";
public static final String KEHUJINGLI_TABLE = "ACCOUNT_MANAGER_PARAMETER";
public static final String CHANGPIN_TABLE = "PRODUCT_ATTRIBUTE";
public static final String CURRENT_ROLE_ID = "${currentRoleId}";
public static final String CURRENT_DEPT_ID = "${currentDeptId}";
public static final String CURRENT_ORG_ID = "${currentOrgId}";
public static final String CURRENT_USER_ID = "${currentUserId}";
public static final String TEMP_ROLE_REPLACE_VALUE = "'1'";
public static final String TEMP_DEPT_REPLACE_VALUE = "'1'";
public static final String TEMP_ORG_REPLACE_VALUE = "'1'";
public static final String TEMP_USER_REPLACE_VALUE = "'1'";
public final static String ORG_TYPE = "org";
public final static String DEPT_TYPE = "dept";
public final static String SYS_EXCEPTION_MSG="系统异常";
public final static String CHANGE_SUCCESS="系统异常";
public final static String VALIDE_SQL_MSG = "请检查拼配置,配置生成sql如: {0}";
public static final String CURRENT_ROLE_MSG = "角色";
public static final String CURRENT_DEPT_MSG = "部门";
public static final String CURRENT_ORG_MSG = "机构";
public static final String CURRENT_USER_MSG = "用户";
public static final String TEMP_VALIDATE_SQL = "select count(*) as ct from {0} where 1=2 {1}";
}
|
[
"jianghanshi@vip.qq.com"
] |
jianghanshi@vip.qq.com
|
f70404012a5485dda808b9e57b2f184c2abfec8e
|
44a7ae21c3c3e9b959e9c1984f9d3e68ea3349a1
|
/jaulp-wicket-base/src/main/java/de/alpharogroup/wicket/base/request/mapper/RequestMapperBean.java
|
ff39fc33f1b7d4747e3732db64fb03af174380ba
|
[
"Apache-2.0"
] |
permissive
|
astrapi69/jaulp-wicket
|
abc45a21d6ec43e71653c92c8b15838c5bda05cd
|
099e8fb6a7306207f10d7484efb6dcc48da3e6d4
|
refs/heads/master
| 2023-08-28T08:57:04.366835
| 2017-12-12T14:39:13
| 2017-12-12T14:39:13
| 6,269,725
| 5
| 2
| null | 2017-06-06T15:31:06
| 2012-10-17T22:25:32
|
Java
|
UTF-8
|
Java
| false
| false
| 1,608
|
java
|
/**
* Copyright (C) 2010 Asterios Raptis
*
* 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 de.alpharogroup.wicket.base.request.mapper;
import java.io.Serializable;
import org.apache.wicket.request.IRequestMapper;
import org.apache.wicket.util.lang.Args;
import lombok.Getter;
/**
* Bean that holds the {@link IRequestMapper} and the compatibility score of it.
*/
public class RequestMapperBean implements Serializable
{
/** The serialVersionUID. */
private static final long serialVersionUID = 1L;
/**
* The compatibility score.
*/
@Getter
private int compatibilityScore;
/**
* The mapper.
*/
@Getter
private IRequestMapper mapper;
/**
* Instantiates a new {@link RequestMapperBean}.
*
* @param mapper
* the mapper
* @param compatibilityScore
* the compatibility score
*/
public RequestMapperBean(final IRequestMapper mapper, final int compatibilityScore)
{
this.mapper = Args.notNull(mapper, "mapper");
this.compatibilityScore = compatibilityScore;
}
}
|
[
"asterios.raptis@gmx.net"
] |
asterios.raptis@gmx.net
|
69994fbd6885b9f1dc395e7191df8813300afccd
|
4c2e83907706317c147433e4560a49d431badf1b
|
/app/src/main/java/android/support/customtabs/CustomTabsSessionToken.java
|
7345d2628668ba1c3800a8fdb88c1dcf4e86c23d
|
[
"Unlicense"
] |
permissive
|
renyuanceshi/KingKingRE
|
92c80328556853029eb5b7bbf3a48a19182cf056
|
b15295bec2cee47867b786dbe0841c1a4edaff5e
|
refs/heads/master
| 2020-12-13T14:41:26.365794
| 2020-01-17T04:27:21
| 2020-01-17T04:27:21
| 234,442,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,147
|
java
|
package android.support.customtabs;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.customtabs.ICustomTabsCallback;
import android.support.v4.app.BundleCompat;
import android.util.Log;
public class CustomTabsSessionToken {
private static final String TAG = "CustomTabsSessionToken";
private final CustomTabsCallback mCallback = new CustomTabsCallback() {
public void extraCallback(String str, Bundle bundle) {
try {
CustomTabsSessionToken.this.mCallbackBinder.extraCallback(str, bundle);
} catch (RemoteException e) {
Log.e(CustomTabsSessionToken.TAG, "RemoteException during ICustomTabsCallback transaction");
}
}
public void onMessageChannelReady(Bundle bundle) {
try {
CustomTabsSessionToken.this.mCallbackBinder.onMessageChannelReady(bundle);
} catch (RemoteException e) {
Log.e(CustomTabsSessionToken.TAG, "RemoteException during ICustomTabsCallback transaction");
}
}
public void onNavigationEvent(int i, Bundle bundle) {
try {
CustomTabsSessionToken.this.mCallbackBinder.onNavigationEvent(i, bundle);
} catch (RemoteException e) {
Log.e(CustomTabsSessionToken.TAG, "RemoteException during ICustomTabsCallback transaction");
}
}
public void onPostMessage(String str, Bundle bundle) {
try {
CustomTabsSessionToken.this.mCallbackBinder.onPostMessage(str, bundle);
} catch (RemoteException e) {
Log.e(CustomTabsSessionToken.TAG, "RemoteException during ICustomTabsCallback transaction");
}
}
};
/* access modifiers changed from: private */
public final ICustomTabsCallback mCallbackBinder;
CustomTabsSessionToken(ICustomTabsCallback iCustomTabsCallback) {
this.mCallbackBinder = iCustomTabsCallback;
}
public static CustomTabsSessionToken getSessionTokenFromIntent(Intent intent) {
IBinder binder = BundleCompat.getBinder(intent.getExtras(), CustomTabsIntent.EXTRA_SESSION);
if (binder == null) {
return null;
}
return new CustomTabsSessionToken(ICustomTabsCallback.Stub.asInterface(binder));
}
public boolean equals(Object obj) {
if (!(obj instanceof CustomTabsSessionToken)) {
return false;
}
return ((CustomTabsSessionToken) obj).getCallbackBinder().equals(this.mCallbackBinder.asBinder());
}
public CustomTabsCallback getCallback() {
return this.mCallback;
}
/* access modifiers changed from: package-private */
public IBinder getCallbackBinder() {
return this.mCallbackBinder.asBinder();
}
public int hashCode() {
return getCallbackBinder().hashCode();
}
public boolean isAssociatedWith(CustomTabsSession customTabsSession) {
return customTabsSession.getBinder().equals(this.mCallbackBinder);
}
}
|
[
"lewis@spectratech.com"
] |
lewis@spectratech.com
|
9f5af46d7ad423def6a1bbc72feb2b16e316c5c1
|
47eb5bf54da6c19ca175fc8938ca9b6a2b545dfa
|
/smpp-esme/src/main/java/com/whty/smpp/socket/transcoder/SessionSmppPduDecoder.java
|
edd0916d12b98d1b8098d8c26964cab27f36b697
|
[] |
no_license
|
liszhu/whatever_ty
|
44ddb837f2de19cb980c28fe06e6634f9d6bd8cb
|
e02ef9e125cac9103848c776e420edcf0dcaed2f
|
refs/heads/master
| 2021-12-13T21:37:06.539805
| 2017-04-05T01:50:23
| 2017-04-05T01:50:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,372
|
java
|
/**
* Copyright (c).
* All rights reserved.
*
* Created on 2017-1-20
* Id: SessionSmppPduDecoder.java,v 1.0 2017-1-20 上午9:49:14 Administrator
*/
package com.whty.smpp.socket.transcoder;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.handler.codec.frame.FrameDecoder;
/**
* @ClassName SessionSmppPduDecoder
* @author Administrator
* @date 2017-1-20 上午9:49:14
* @Description TODO(这里用一句话描述这个类的作用)
*/
public class SessionSmppPduDecoder extends FrameDecoder {
private final ISmppPduTranscoder transcoder;
/**
* @param transcoder
*/
public SessionSmppPduDecoder(ISmppPduTranscoder transcoder) {
super();
this.transcoder = transcoder;
}
/**
* @author Administrator
* @date 2017-1-20
* @param ctx
* @param channel
* @param buffer
* @return
* @throws Exception
* @Description TODO(这里用一句话描述这个方法的作用)
* @see org.jboss.netty.handler.codec.frame.FrameDecoder#decode(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.Channel, org.jboss.netty.buffer.ChannelBuffer)
*/
@Override
protected Object decode(ChannelHandlerContext ctx, Channel channel,
ChannelBuffer buffer) throws Exception {
return transcoder.decode(buffer);
}
}
|
[
"652241956@qq.com"
] |
652241956@qq.com
|
12fa7fbdcbd01eafa798a712bc37d3f54cf565f8
|
263b9556d76279459ab9942b0005a911e2b085c5
|
/src/main/java/com/alipay/api/domain/InsProduct.java
|
01370fecff2731beb2fdca12f364753bc8110b26
|
[
"Apache-2.0"
] |
permissive
|
getsgock/alipay-sdk-java-all
|
1c98ffe7cb5601c715b4f4b956e6c2b41a067647
|
1ee16a85df59c08fb9a9b06755743711d5cd9814
|
refs/heads/master
| 2020-03-30T05:42:59.554699
| 2018-09-19T06:17:22
| 2018-09-19T06:17:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,096
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 保险产品
*
* @author auto create
* @since 1.0, 2018-01-02 14:36:49
*/
public class InsProduct extends AlipayObject {
private static final long serialVersionUID = 5384657232555567371L;
/**
* 险种列表
*/
@ApiField("coverages")
private InsProdCoverage coverages;
/**
* 起保时间,格式:yyyy-MM-dd HH:mm:ss
*/
@ApiField("effect_date")
private String effectDate;
/**
* 结束时间,格式:yyyy-MM-dd HH:mm:ss
*/
@ApiField("invalid_date")
private String invalidDate;
/**
* 是否标准产品
*/
@ApiField("is_sp")
private Boolean isSp;
/**
* 责任信息
*/
@ApiListField("liabilities")
@ApiField("ins_liability")
private List<InsLiability> liabilities;
/**
* 保险机构;当产品为标准产品时该值为空
*/
@ApiField("merchant")
private InsMerchant merchant;
/**
* 产品编码;由蚂蚁保险平台分配,商户通过该产品编码投保特定的保险产品
*/
@ApiField("prod_code")
private String prodCode;
/**
* 产品描述
*/
@ApiField("prod_desc")
private String prodDesc;
/**
* 产品名称
*/
@ApiField("prod_name")
private String prodName;
/**
* 标准产品码
*/
@ApiField("prod_no")
private String prodNo;
/**
* 产品版本号
*/
@ApiField("prod_version")
private String prodVersion;
/**
* 实付保费[优惠后的金额]
*/
@ApiField("real_premium")
private String realPremium;
/**
* 优惠保费
*/
@ApiField("reduce_premium")
private String reducePremium;
/**
* 资源项
*/
@ApiListField("resources")
@ApiField("ins_prod_resource")
private List<InsProdResource> resources;
/**
* 产品销量,配置了销量统计的产品才会有销量信息
*/
@ApiField("sales")
private Long sales;
/**
* 产品简称
*/
@ApiField("short_name")
private String shortName;
/**
* 标准产品编码;标准产品是不同保险公司同一类型产品的一种抽象
*/
@ApiField("sp_code")
private String spCode;
/**
* 标记列表
*/
@ApiListField("tags")
@ApiField("ins_prod_tag")
private List<InsProdTag> tags;
/**
* 总保费
*/
@ApiField("total_premium")
private String totalPremium;
public InsProdCoverage getCoverages() {
return this.coverages;
}
public void setCoverages(InsProdCoverage coverages) {
this.coverages = coverages;
}
public String getEffectDate() {
return this.effectDate;
}
public void setEffectDate(String effectDate) {
this.effectDate = effectDate;
}
public String getInvalidDate() {
return this.invalidDate;
}
public void setInvalidDate(String invalidDate) {
this.invalidDate = invalidDate;
}
public Boolean getIsSp() {
return this.isSp;
}
public void setIsSp(Boolean isSp) {
this.isSp = isSp;
}
public List<InsLiability> getLiabilities() {
return this.liabilities;
}
public void setLiabilities(List<InsLiability> liabilities) {
this.liabilities = liabilities;
}
public InsMerchant getMerchant() {
return this.merchant;
}
public void setMerchant(InsMerchant merchant) {
this.merchant = merchant;
}
public String getProdCode() {
return this.prodCode;
}
public void setProdCode(String prodCode) {
this.prodCode = prodCode;
}
public String getProdDesc() {
return this.prodDesc;
}
public void setProdDesc(String prodDesc) {
this.prodDesc = prodDesc;
}
public String getProdName() {
return this.prodName;
}
public void setProdName(String prodName) {
this.prodName = prodName;
}
public String getProdNo() {
return this.prodNo;
}
public void setProdNo(String prodNo) {
this.prodNo = prodNo;
}
public String getProdVersion() {
return this.prodVersion;
}
public void setProdVersion(String prodVersion) {
this.prodVersion = prodVersion;
}
public String getRealPremium() {
return this.realPremium;
}
public void setRealPremium(String realPremium) {
this.realPremium = realPremium;
}
public String getReducePremium() {
return this.reducePremium;
}
public void setReducePremium(String reducePremium) {
this.reducePremium = reducePremium;
}
public List<InsProdResource> getResources() {
return this.resources;
}
public void setResources(List<InsProdResource> resources) {
this.resources = resources;
}
public Long getSales() {
return this.sales;
}
public void setSales(Long sales) {
this.sales = sales;
}
public String getShortName() {
return this.shortName;
}
public void setShortName(String shortName) {
this.shortName = shortName;
}
public String getSpCode() {
return this.spCode;
}
public void setSpCode(String spCode) {
this.spCode = spCode;
}
public List<InsProdTag> getTags() {
return this.tags;
}
public void setTags(List<InsProdTag> tags) {
this.tags = tags;
}
public String getTotalPremium() {
return this.totalPremium;
}
public void setTotalPremium(String totalPremium) {
this.totalPremium = totalPremium;
}
}
|
[
"liuqun.lq@alibaba-inc.com"
] |
liuqun.lq@alibaba-inc.com
|
397e30e83151f4d5869747d065ba3df1e2b303e7
|
d7ea498b04fdac1650a6faa0f1092f53cfb6db45
|
/src/class_Feb26/RandomPassword_lower_case.java
|
0bde8233d1417d0dc040b2378fce97b7fa418b7b
|
[] |
no_license
|
mekanhan/JavaBoot
|
9e2dc44996c31730505a6fc1ae8d3003b7f16e5e
|
585b6aabe115ddeb9da96a5b2ed1645b05b14f09
|
refs/heads/master
| 2021-05-22T00:38:12.219035
| 2020-08-26T20:20:41
| 2020-08-26T20:20:41
| 252,887,770
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 356
|
java
|
package class_Feb26;
public class RandomPassword_lower_case {
public static void main(String[] args) {
//97-122 ASCII
LetterMethod();
}
public static void LetterMethod() {
for (int i = 0; i <= 5; i++) {
int one = 97 + (int) (Math.random() * 26);
System.out.print((char) one);
}
}
}
|
[
"mekjanhan@gmail.com"
] |
mekjanhan@gmail.com
|
16d6839278c4ad5f6b308aa1747fd7c21ed1c4d6
|
1b523bf1b3bfd9782227ca394ac20143baf4974c
|
/official/chapter05/phoneme/phoneme_feature-mr3-rel-src-b01-17_jul_2008/jsr256/src/share/classes/javax/microedition/sensor/ConditionListener.java
|
273ee4e22ee920f0b6f43c4f817363d29c4cb2f4
|
[] |
no_license
|
Joyounger/armlinuxbook
|
66c80192a2d4ea068bba2e21c92067705da08949
|
b7fea1d8c235cbd1f4551b5495bbacc777d91916
|
refs/heads/master
| 2021-05-06T10:17:58.433025
| 2018-03-31T09:14:02
| 2018-03-31T09:14:02
| 114,165,147
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,196
|
java
|
/*
* Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 only, as published by the Free Software Foundation.
*
* This 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 version 2 for more details (a copy is
* included at /legal/license.txt).
*
* You should have received a copy of the GNU General Public License
* version 2 along with this work; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 or visit www.sun.com if you need additional
* information or have any questions.
*/
package javax.microedition.sensor;
public interface ConditionListener {
public void conditionMet(SensorConnection sensor, Data data, Condition condition);
}
|
[
"942510346@qq.com"
] |
942510346@qq.com
|
0d90ac7422634bf3531fad8a4b04c9fd8023861d
|
88e4c2a0f6e9097efe89b47612509f32b79badb8
|
/src/main/java/com/alipay/api/domain/AlipaySecurityProdAmlriskQueryModel.java
|
e0ffd38248a82f4a5b7c5c453d216132e57d00bb
|
[] |
no_license
|
xushaomin/alipay-sdk-java
|
15f8e311b6ded9a565f473cd732e2747ed33d8b0
|
a03324a1ddc6eb3469c18f831512d5248bc98461
|
refs/heads/master
| 2020-06-15T13:26:40.913354
| 2016-12-01T12:23:27
| 2016-12-01T12:23:27
| 75,289,929
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,791
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 该API用于外部商户准入时的反洗钱风险分析。
*
* @author auto create
* @since 1.0, 2016-10-26 18:05:13
*/
public class AlipaySecurityProdAmlriskQueryModel extends AlipayObject {
private static final long serialVersionUID = 6216425142358521222L;
/**
* 办公地址
*/
@ApiField("business_address")
private String businessAddress;
/**
* 标识该次反洗钱风险分析事件请求的id,商户应保证此id唯一。
*/
@ApiField("event_id")
private String eventId;
/**
* 与商户相关个体的信息列表,可以有0个到多个。
*/
@ApiListField("individual_list")
@ApiField("individual_info")
private List<IndividualInfo> individualList;
/**
* 公司名称、类型、性质
*/
@ApiField("legal_name")
private String legalName;
/**
* 商户ID
*/
@ApiField("merchant_id")
private String merchantId;
/**
* 该商户准入申请的id
*/
@ApiField("order_id")
private String orderId;
/**
* 公司注册地址
*/
@ApiField("registered_address")
private String registeredAddress;
/**
* 公司注册号
*/
@ApiField("registration_number")
private String registrationNumber;
public String getBusinessAddress() {
return this.businessAddress;
}
public void setBusinessAddress(String businessAddress) {
this.businessAddress = businessAddress;
}
public String getEventId() {
return this.eventId;
}
public void setEventId(String eventId) {
this.eventId = eventId;
}
public List<IndividualInfo> getIndividualList() {
return this.individualList;
}
public void setIndividualList(List<IndividualInfo> individualList) {
this.individualList = individualList;
}
public String getLegalName() {
return this.legalName;
}
public void setLegalName(String legalName) {
this.legalName = legalName;
}
public String getMerchantId() {
return this.merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getOrderId() {
return this.orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getRegisteredAddress() {
return this.registeredAddress;
}
public void setRegisteredAddress(String registeredAddress) {
this.registeredAddress = registeredAddress;
}
public String getRegistrationNumber() {
return this.registrationNumber;
}
public void setRegistrationNumber(String registrationNumber) {
this.registrationNumber = registrationNumber;
}
}
|
[
"xushaomin@foxmail.com"
] |
xushaomin@foxmail.com
|
bda5296eadafcda782e13281af70e47c491a3659
|
f490119b5f7eea314c3049fc212ff77dd29a1e67
|
/core/src/main/java/com/alibaba/alink/operator/batch/recommendation/ItemCfSimilarItemsRecommBatchOp.java
|
2e012a55f08e8941ceb7d977e83c3746c425ba60
|
[
"Apache-2.0"
] |
permissive
|
lethetann/Alink
|
b4cb3ddab211baa77e3a93a9b099ddcde662b903
|
a483a8a25ecd136ad4e18709c17c5a242c7e76fa
|
refs/heads/master
| 2021-10-27T17:11:40.158889
| 2021-10-08T10:05:41
| 2021-10-08T10:05:41
| 229,357,943
| 0
| 0
|
Apache-2.0
| 2020-08-06T01:30:39
| 2019-12-21T00:55:32
|
Java
|
UTF-8
|
Java
| false
| false
| 830
|
java
|
package com.alibaba.alink.operator.batch.recommendation;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.common.recommendation.ItemCfRecommKernel;
import com.alibaba.alink.operator.common.recommendation.RecommType;
import com.alibaba.alink.params.recommendation.BaseSimilarItemsRecommParams;
/**
* Recommend similar items for the given item.
*/
public class ItemCfSimilarItemsRecommBatchOp extends BaseRecommBatchOp <ItemCfSimilarItemsRecommBatchOp>
implements BaseSimilarItemsRecommParams <ItemCfSimilarItemsRecommBatchOp> {
private static final long serialVersionUID = 6634328547891381236L;
public ItemCfSimilarItemsRecommBatchOp() {
this(null);
}
public ItemCfSimilarItemsRecommBatchOp(Params params) {
super(ItemCfRecommKernel::new, RecommType.SIMILAR_ITEMS, params);
}
}
|
[
"xuyang1706@gmail.com"
] |
xuyang1706@gmail.com
|
759d38e3338657a720f028a19101923eee9e2f05
|
d3097a3fc8ca2d3b555693c253574f90f065613f
|
/app/src/main/java/com/techuva/iot/ngt/views/CustomToast.java
|
0baa5b6f42cb7776b77240b7bb02dca59370f505
|
[] |
no_license
|
nikks-tu/IT_MYPOLLBOOK_GKVK_MOBILE
|
ea9225de2c70410ae426702795132d1104e76fd7
|
a3ea4bfcad2ab55a500d7cf48e1dc050bb43e207
|
refs/heads/master
| 2022-04-23T08:57:16.098692
| 2020-04-20T15:31:56
| 2020-04-20T15:31:56
| 257,324,894
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 692
|
java
|
/**
* @category ContusMessanger
* @package com.contusfly.views
* @version 1.0
* @author ContusTeam <developers@contus.in>
* @copyright Copyright (C) 2015 <Contus>. All rights reserved.
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
package com.techuva.iot.ngt.views;
import android.content.Context;
import android.widget.Toast;
/**
* The Class CustomToast.
*/
public class CustomToast {
/**
* Show toast.
*
* @param context
* the context
* @param msg
* the msg
*/
public static void showToast(Context context, String msg) {
Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
}
}
|
[
"nikita@vishwakarma7@gmail.com"
] |
nikita@vishwakarma7@gmail.com
|
7713a63488209fc7102c731d1caf0b80fa0c5bee
|
d9cc2a2609b39d64433efeccb8c18e0e4e0527bb
|
/imageio/imageio-pcx/src/test/java/com/twelvemonkeys/imageio/plugins/pcx/PCXImageReaderTest.java
|
164c91441da6da6a116b9c5c19a185b0d70e8714
|
[
"BSD-3-Clause"
] |
permissive
|
githabibi/TwelveMonkeys
|
dcf7997fedfcf7868ad0264fdfb3c93a36a5081a
|
0809fbfba55e6a5b8c1cf31c9f30177bfc820995
|
refs/heads/master
| 2022-11-29T23:32:24.326777
| 2020-08-03T15:23:40
| 2020-08-03T15:23:40
| 284,734,581
| 0
| 0
|
BSD-3-Clause
| 2020-08-03T15:19:37
| 2020-08-03T15:19:36
| null |
UTF-8
|
Java
| false
| false
| 8,163
|
java
|
/*
* Copyright (c) 2014, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.twelvemonkeys.imageio.plugins.pcx;
import com.twelvemonkeys.imageio.util.ImageReaderAbstractTest;
import org.junit.Test;
import javax.imageio.ImageIO;
import javax.imageio.ImageReadParam;
import javax.imageio.spi.ImageReaderSpi;
import javax.imageio.stream.ImageInputStream;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* PCXImageReaderTest
*
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
* @author last modified by $Author: haraldk$
* @version $Id: PCXImageReaderTest.java,v 1.0 03.07.14 22:28 haraldk Exp$
*/
public class PCXImageReaderTest extends ImageReaderAbstractTest<PCXImageReader> {
@Override
protected List<TestData> getTestData() {
return Arrays.asList(
new TestData(getClassLoaderResource("/pcx/MARBLES.PCX"), new Dimension(1419, 1001)), // RLE encoded RGB
new TestData(getClassLoaderResource("/pcx/lena.pcx"), new Dimension(512, 512)), // RLE encoded RGB
new TestData(getClassLoaderResource("/pcx/lena2.pcx"), new Dimension(512, 512)), // RLE encoded, 256 color indexed (8 bps/1 channel)
new TestData(getClassLoaderResource("/pcx/lena3.pcx"), new Dimension(512, 512)), // RLE encoded, 16 color indexed (4 bps/1 channel)
new TestData(getClassLoaderResource("/pcx/lena4.pcx"), new Dimension(512, 512)), // RLE encoded, 16 color indexed (1 bps/4 channels)
new TestData(getClassLoaderResource("/pcx/lena5.pcx"), new Dimension(512, 512)), // RLE encoded, 256 color indexed (8 bps/1 channel)
new TestData(getClassLoaderResource("/pcx/lena6.pcx"), new Dimension(512, 512)), // RLE encoded, 8 color indexed (1 bps/3 channels)
new TestData(getClassLoaderResource("/pcx/lena7.pcx"), new Dimension(512, 512)), // RLE encoded, 4 color indexed (1 bps/2 channels)
new TestData(getClassLoaderResource("/pcx/lena8.pcx"), new Dimension(512, 512)), // RLE encoded, 4 color indexed (2 bps/1 channel)
new TestData(getClassLoaderResource("/pcx/lena9.pcx"), new Dimension(512, 512)), // RLE encoded, 2 color indexed (1 bps/1 channel)
new TestData(getClassLoaderResource("/pcx/lena10.pcx"), new Dimension(512, 512)), // RLE encoded, 16 color indexed (4 bps/1 channel) (uses only 8 colors)
new TestData(getClassLoaderResource("/pcx/DARKSTAR.PCX"), new Dimension(88, 52)), // RLE encoded monochrome (1 bps/1 channel)
new TestData(getClassLoaderResource("/pcx/no-palette-monochrome.pcx"), new Dimension(128, 152)), // RLE encoded monochrome (1 bps/1 channel)
// See cga-pcx.txt, however, the text seems to be in error, the bits can not not as described
new TestData(getClassLoaderResource("/pcx/CGA_BW.PCX"), new Dimension(640, 200)), // RLE encoded indexed (CGA mode)
new TestData(getClassLoaderResource("/pcx/CGA_FSD.PCX"), new Dimension(320, 200)), // RLE encoded indexed (CGA mode)
new TestData(getClassLoaderResource("/pcx/CGA_RGBI.PCX"), new Dimension(320, 200)), // RLE encoded indexed (CGA mode)
new TestData(getClassLoaderResource("/pcx/CGA_TST1.PCX"), new Dimension(320, 200)) // RLE encoded indexed (CGA mode)
);
}
@Override
protected ImageReaderSpi createProvider() {
return new PCXImageReaderSpi();
}
@Override
protected Class<PCXImageReader> getReaderClass() {
return PCXImageReader.class;
}
@Override
protected PCXImageReader createReader() {
return new PCXImageReader(createProvider());
}
@Override
protected List<String> getFormatNames() {
return Arrays.asList("PCX", "pcx");
}
@Override
protected List<String> getSuffixes() {
return Collections.singletonList("pcx");
}
@Override
protected List<String> getMIMETypes() {
return Arrays.asList(
"image/pcx", "image/x-pcx"
);
}
@Test
public void testReadGray() throws IOException {
// Seems like the last scan lines have been overwritten by an unnecessary 768 byte palette + 1 byte magic...
try (ImageInputStream input = ImageIO.createImageInputStream(getClassLoaderResource("/pcx/GMARBLES.PCX"))) {
PCXImageReader reader = createReader();
reader.setInput(input);
assertEquals(1, reader.getNumImages(true));
assertEquals(1419, reader.getWidth(0));
assertEquals(1001, reader.getHeight(0));
ImageReadParam param = reader.getDefaultReadParam();
param.setSourceRegion(new Rectangle(1419, 1000)); // Ignore the last garbled line
BufferedImage image = reader.read(0, param);
assertNotNull(image);
assertEquals(BufferedImage.TYPE_BYTE_INDEXED, image.getType());
assertEquals(1419, image.getWidth());
assertEquals(1000, image.getHeight());
}
}
@Test
public void testReadMonochromeNoPalette() throws IOException {
// Monochrome image V3 (no palette), palette is all 0's
try (ImageInputStream input = ImageIO.createImageInputStream(getClassLoaderResource("/pcx/no-palette-monochrome.pcx"))) {
PCXImageReader reader = createReader();
reader.setInput(input);
assertEquals(1, reader.getNumImages(true));
assertEquals(128, reader.getWidth(0));
assertEquals(152, reader.getHeight(0));
BufferedImage image = reader.read(0);
assertNotNull(image);
assertEquals(BufferedImage.TYPE_BYTE_BINARY, image.getType());
assertEquals(128, image.getWidth());
assertEquals(152, image.getHeight());
assertRGBEquals("Should have white background", 0xffffffff, image.getRGB(0, 0), 0);
assertRGBEquals("Should have black skull", 0xff000000, image.getRGB(64, 10), 0);
}
}
@Test
public void testReadWithSourceRegionParamEqualImage() throws IOException {
TestData data = getTestData().get(1);
assertReadWithSourceRegionParamEqualImage(new Rectangle(200, 0, 4, 4), data, 0);
assertReadWithSourceRegionParamEqualImage(new Rectangle(100, 100, 4, 4), data, 0);
assertReadWithSourceRegionParamEqualImage(new Rectangle(0, 200, 4, 4), data, 0);
}
}
|
[
"harald.kuhr@gmail.com"
] |
harald.kuhr@gmail.com
|
8a30516430927222bec8c2f3d7af6c58eb011d29
|
e61953c32a5a288429983b25c992f0d235dea668
|
/library/test/src/test/java/com/bumptech/glide/tests/KeyTester.java
|
e5ea5413e557d4f513549a2a013da25d99977c09
|
[
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause-Views",
"Xfig",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
BoleLiu/glide
|
b43bfbdb9b23c13bd55aa872b298eb7559b1045f
|
8dd10672ca52a0f0733c2ef1600df615ffe6cf19
|
refs/heads/master
| 2022-01-11T18:58:29.284841
| 2019-05-28T19:39:24
| 2019-05-28T19:52:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,521
|
java
|
package com.bumptech.glide.tests;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth.assert_;
import static org.junit.Assert.fail;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import com.bumptech.glide.load.Key;
import com.google.common.base.Equivalence;
import com.google.common.testing.EquivalenceTester;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
public final class KeyTester implements TestRule {
private static final String EMPTY_DIGEST_STRING =
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
// Use LinkedHashMap to keep iteration based on insertion order.
private final Map<Key, String> regressionTests = new LinkedHashMap<>();
private final Sha256 sha256 = new Sha256();
private final EquivalenceTester<Key> tester = EquivalenceTester.of(new KeyEquivalence(sha256));
private boolean isUsedWithoutCallingTest;
private boolean isUsedAsRule;
@Override
public Statement apply(final Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {
isUsedAsRule = true;
base.evaluate();
if (isUsedWithoutCallingTest) {
fail("You used KeyTester but failed to call test()!");
}
}
};
}
private void assertUsedAsRule() {
if (!isUsedAsRule) {
fail("You must use KeyTester as an @Rule");
}
}
@CheckResult
public KeyTester addEquivalenceGroup(Key first, Key... rest) {
assertUsedAsRule();
isUsedWithoutCallingTest = true;
tester.addEquivalenceGroup(first, rest);
return this;
}
@CheckResult
public KeyTester addRegressionTest(Key key, String expectedDigest) {
assertUsedAsRule();
if (EMPTY_DIGEST_STRING.equals(expectedDigest)) {
throw new IllegalArgumentException(
"Expected digest is empty, if this is intended use "
+ "addEmptyDigestRegressionTest instead");
}
return addRegressionTestInternal(key, expectedDigest);
}
@CheckResult
public KeyTester addEmptyDigestRegressionTest(Key key) {
assertUsedAsRule();
return addRegressionTestInternal(key, EMPTY_DIGEST_STRING);
}
private KeyTester addRegressionTestInternal(Key key, String expectedDigest) {
isUsedWithoutCallingTest = true;
String oldValue = regressionTests.put(key, expectedDigest);
if (oldValue != null) {
throw new IllegalArgumentException(
"Given multiple values for: " + key + " old: " + oldValue + " new: " + expectedDigest);
}
return this;
}
public void test() {
assertUsedAsRule();
isUsedWithoutCallingTest = false;
tester.test();
assertThat(regressionTests).isNotEmpty();
int i = 1;
for (Entry<Key, String> entry : regressionTests.entrySet()) {
assert_()
.withMessage(
"Unexpected digest for regression test [" + i + "]: with key: " + entry.getKey())
.that(sha256.getStringDigest(entry.getKey()))
.isEqualTo(entry.getValue());
i++;
}
}
private static final class Sha256 {
private final MessageDigest digest;
Sha256() {
try {
digest = MessageDigest.getInstance("SHA-256");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
}
private byte[] getDigest(Key key) {
try {
key.updateDiskCacheKey(digest);
return digest.digest();
} finally {
digest.reset();
}
}
String getStringDigest(Key key) {
return com.bumptech.glide.util.Util.sha256BytesToHex(getDigest(key));
}
}
/** Tests equals, hashcode and digest methods of {@link Key}s. */
private static final class KeyEquivalence extends Equivalence<Key> {
private final Sha256 sha256;
KeyEquivalence(Sha256 sha256) {
this.sha256 = sha256;
}
@Override
protected boolean doEquivalent(@NonNull Key a, @NonNull Key b) {
byte[] aDigest = sha256.getDigest(a);
byte[] bDigest = sha256.getDigest(b);
return a.equals(b) && Arrays.equals(aDigest, bDigest);
}
@Override
protected int doHash(@NonNull Key key) {
return key.hashCode();
}
}
}
|
[
"judds@google.com"
] |
judds@google.com
|
98cf8f9b8ff5adfd19adf63d52821d0c10a9614e
|
8564cf42e6fc2e1fa33af5413f1d3b1d2957d2b1
|
/core/plugins/model-sql/src/main/java/org/visallo/sql/web/SqlModelWebAppPlugin.java
|
9913ef09f531d09713f2381b22bf574e2ae67f65
|
[
"Apache-2.0"
] |
permissive
|
ipmsmgr/visallo
|
36736112cade2884b2627f0b053d85add497c236
|
ed8473aa1b719e64af0347234b95c226303345c9
|
refs/heads/master
| 2021-01-21T09:35:01.792537
| 2015-10-06T14:22:35
| 2015-10-06T14:23:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,754
|
java
|
package org.visallo.sql.web;
import com.google.inject.Inject;
import org.visallo.core.util.VisalloLogger;
import org.visallo.core.util.VisalloLoggerFactory;
import com.v5analytics.webster.Handler;
import org.visallo.sql.model.HibernateSessionManager;
import org.visallo.web.ApplicationBootstrap;
import org.visallo.web.WebApp;
import org.visallo.web.WebAppPlugin;
import javax.servlet.DispatcherType;
import javax.servlet.FilterRegistration;
import javax.servlet.ServletContext;
import java.util.EnumSet;
public class SqlModelWebAppPlugin implements WebAppPlugin {
private static final VisalloLogger LOGGER = VisalloLoggerFactory.getLogger(SqlModelWebAppPlugin.class);
public static final String FILTER_NAME = "hibernate-session-manager";
private HibernateSessionManager sessionManager;
@Inject
public void configure(HibernateSessionManager sessionManager) {
this.sessionManager = sessionManager;
}
@Override
public void init(WebApp app, ServletContext servletContext, Handler authenticationHandler) {
FilterRegistration.Dynamic filter = servletContext.addFilter(FILTER_NAME, new HibernateSessionManagementFilter(sessionManager));
addMapping(filter, ApplicationBootstrap.VISALLO_SERVLET_NAME);
addMapping(filter, ApplicationBootstrap.ATMOSPHERE_SERVLET_NAME);
// TODO: servletContext.getServletRegistrations().keySet() includes atmosphere but not visallo?
filter.setAsyncSupported(true);
}
private void addMapping(FilterRegistration.Dynamic filter, String servletName) {
LOGGER.info("mapping %s filter for servlet %s", FILTER_NAME, servletName);
filter.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST), false, servletName);
}
}
|
[
"joe@fernsroth.com"
] |
joe@fernsroth.com
|
c3551f5ff3ba61b80250d77f9f804e2783c9561b
|
b36a85dd502904fc014f318e91a7ff5d67537905
|
/src/main/java/com/redxun/sys/core/manager/SysPrivatePropertiesManager.java
|
134556bd779d91c687dd0cb6991553aa0ade8fcf
|
[] |
no_license
|
clickear/jsaas
|
7c0819b4f21443c10845e549b521fa50c3a1c760
|
ddffd4c42ee40c8a2728d46e4c7009a95f7f801f
|
refs/heads/master
| 2020-03-16T09:00:40.649868
| 2018-04-18T12:13:50
| 2018-04-18T12:13:50
| 132,606,788
| 4
| 8
| null | 2018-05-08T12:37:25
| 2018-05-08T12:37:25
| null |
UTF-8
|
Java
| false
| false
| 2,163
|
java
|
package com.redxun.sys.core.manager;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.redxun.core.dao.IDao;
import com.redxun.core.dao.mybatis.BaseMybatisDao;
import com.redxun.core.manager.ExtBaseManager;
import com.redxun.core.util.EncryptUtil;
import com.redxun.sys.core.dao.SysPrivatePropertiesDao;
import com.redxun.sys.core.dao.SysPrivatePropertiesQueryDao;
import com.redxun.sys.core.dao.SysPropertiesQueryDao;
import com.redxun.sys.core.entity.SysPrivateProperties;
import com.redxun.sys.core.entity.SysProperties;
/**
*
* <pre>
* 描述:私有参数 处理接口
* 作者:ray
* 日期:2017-06-21 10:30:22
* 版权:广州红迅软件
* </pre>
*/
@Service
public class SysPrivatePropertiesManager extends ExtBaseManager<SysPrivateProperties>{
@Resource
private SysPrivatePropertiesDao sysPrivatePropertiesDao;
@Resource
private SysPrivatePropertiesQueryDao sysPrivatePropertiesQueryDao;
@Resource
private SysPropertiesQueryDao sysPropertiesQueryDao;
@SuppressWarnings("rawtypes")
@Override
protected IDao getDao() {
return sysPrivatePropertiesQueryDao;
}
@Override
public BaseMybatisDao getMyBatisDao() {
return sysPrivatePropertiesQueryDao;
}
public String getValByProId(String proId,String tenantId) throws Exception{
SysProperties properties=sysPropertiesQueryDao.get(proId);
SysPrivateProperties privateProperties =sysPrivatePropertiesDao.getByProId(proId,tenantId);
if(privateProperties==null) return null;
boolean isEncypt="YES".equals(properties.getEncrypt());
if(isEncypt){
return EncryptUtil.decrypt(privateProperties.getPriValue());
}
return privateProperties.getPriValue();
}
public SysPrivateProperties getByProId(String proId,String tenantId) {
SysPrivateProperties privateProperties =sysPrivatePropertiesDao.getByProId(proId,tenantId);
return privateProperties;
}
public List<SysPrivateProperties> getAllByProId(String proId){
return sysPrivatePropertiesDao.getAllByProId(proId);
}
public void deleteByProId(String proId){
sysPrivatePropertiesQueryDao.deleteByProId(proId);
}
}
|
[
"yijiang331"
] |
yijiang331
|
2a1edc33a78c65cca6915131e87535ed9aa0e932
|
40665051fadf3fb75e5a8f655362126c1a2a3af6
|
/ibinti-bugvm/e6287f5d89455b6590a9c8032fcee429d0eaed9e/7242/UIControlState.java
|
5e5f89f5b1cfe5c1c5befdd5c3f83349e32a26d9
|
[] |
no_license
|
fermadeiral/StyleErrors
|
6f44379207e8490ba618365c54bdfef554fc4fde
|
d1a6149d9526eb757cf053bc971dbd92b2bfcdf1
|
refs/heads/master
| 2020-07-15T12:55:10.564494
| 2019-10-24T02:30:45
| 2019-10-24T02:30:45
| 205,546,543
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,601
|
java
|
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* 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.bugvm.apple.uikit;
/*<imports>*/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coredata.*;
import com.bugvm.apple.coreimage.*;
import com.bugvm.apple.coretext.*;
import com.bugvm.apple.corelocation.*;
/*</imports>*/
/*<javadoc>*/
/*</javadoc>*/
/*<annotations>*/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/*</annotations>*/
public final class /*<name>*/UIControlState/*</name>*/ extends Bits</*<name>*/UIControlState/*</name>*/> {
/*<values>*/
public static final UIControlState Normal = new UIControlState(0L);
public static final UIControlState Highlighted = new UIControlState(1L);
public static final UIControlState Disabled = new UIControlState(2L);
public static final UIControlState Selected = new UIControlState(4L);
public static final UIControlState Application = new UIControlState(16711680L);
public static final UIControlState Reserved = new UIControlState(4278190080L);
/*</values>*/
private static final /*<name>*/UIControlState/*</name>*/[] values = _values(/*<name>*/UIControlState/*</name>*/.class);
public /*<name>*/UIControlState/*</name>*/(long value) { super(value); }
private /*<name>*/UIControlState/*</name>*/(long value, long mask) { super(value, mask); }
protected /*<name>*/UIControlState/*</name>*/ wrap(long value, long mask) {
return new /*<name>*/UIControlState/*</name>*/(value, mask);
}
protected /*<name>*/UIControlState/*</name>*/[] _values() {
return values;
}
public static /*<name>*/UIControlState/*</name>*/[] values() {
return values.clone();
}
}
|
[
"fer.madeiral@gmail.com"
] |
fer.madeiral@gmail.com
|
427fe6219f90ac0296867ce672c573399ef5b156
|
25b348a3de5656c928e35fc2bd4072fe6b2a4e1b
|
/src/main/java/com/jos/dem/springboot/aop/controller/DemoController.java
|
f45d32cc77bea750efd5fe9a76a587ed3c7b8bb0
|
[] |
no_license
|
josdem/spring-boot-aop
|
18a5b87052ed52a5dfca24c6407c463a0cb23ceb
|
12ac13926a32e94321be2d77c33cd707e68dda48
|
refs/heads/master
| 2021-05-11T00:02:07.779148
| 2018-10-06T22:47:02
| 2018-10-06T22:47:02
| 118,294,319
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 496
|
java
|
package com.jos.dem.springboot.aop.controller;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import com.jos.dem.springboot.aop.service.DemoService;
@RestController
public class DemoController {
@Autowired
private DemoService demoService;
@RequestMapping("/")
public String index(){
demoService.show();
return "Hello World!";
}
}
|
[
"joseluis.delacruz@gmail.com"
] |
joseluis.delacruz@gmail.com
|
5b2b49f6c8c2707ec5470c335a4576cd6dfdce03
|
b718686e4feb0fb7579af268f2037c737a1ceb9a
|
/src/main/java/com/mossle/core/util/EncodeUtils.java
|
ebbf6e83522b83acca7ad50692756b5422b4bb2e
|
[
"Apache-2.0"
] |
permissive
|
SuiteLHY/lemon
|
cc0ff01df0c16c3ffaebdf64ae4a7bf736e47dea
|
b2bfe0487adbc8cdd5042dab7e2a992c4bb36e53
|
refs/heads/master
| 2020-05-26T19:51:03.913796
| 2019-05-07T11:20:46
| 2019-05-07T11:20:46
| 188,353,423
| 1
| 0
|
Apache-2.0
| 2019-05-24T04:42:42
| 2019-05-24T04:42:42
| null |
UTF-8
|
Java
| false
| false
| 6,057
|
java
|
package com.mossle.core.util;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Hex;
/**
* encode utils.
*
* @author Lingo
*/
public class EncodeUtils {
/** default url encoding. */
private static final String DEFAULT_URL_ENCODING = "UTF-8";
/** unprintable char code. */
private static final int UNPRINTABLE_CHAR_CODE = 16;
/** ansi char code. */
private static final int ANSI_CHAR_CODE = 256;
/** hex. */
private static final int HEX = 16;
/** unicode length. */
private static final int UNICODE_LENGTH = "\\u0000".length();
/** ansi length. */
private static final int ANSI_LENGTH = "%FF".length();
/** protected constructor. */
protected EncodeUtils() {
}
/**
* Hex编码.
*
* @param input
* byte[]
* @return String
*/
public static String hexEncode(byte[] input) {
return Hex.encodeHexString(input);
}
/**
* Hex解码.
*
* @param input
* String
* @return byte[]
*/
public static byte[] hexDecode(String input) {
try {
return Hex.decodeHex(input.toCharArray());
} catch (DecoderException e) {
throw new IllegalStateException("Hex Decoder exception", e);
}
}
/**
* Base64编码.
*
* @param input
* byte[]
* @return String
*/
public static String base64Encode(byte[] input)
throws UnsupportedEncodingException {
return new String(Base64.encodeBase64(input), "UTF-8");
}
/**
* Base64编码, URL安全(将Base64中的URL非法字符如+,/=转为其他字符, 见RFC3548).
*
* @param input
* byte[]
* @return String
*/
public static String base64UrlSafeEncode(byte[] input) {
return Base64.encodeBase64URLSafeString(input);
}
/**
* Base64解码.
*
* @param input
* String
* @return byte[]
*/
public static byte[] base64Decode(String input) {
return Base64.decodeBase64(input);
}
/**
* URL 编码, Encode默认为UTF-8.
*
* @param input
* String
* @return String
*/
public static String urlEncode(String input)
throws UnsupportedEncodingException {
return URLEncoder.encode(input, DEFAULT_URL_ENCODING);
}
/**
* URL 解码, Encode默认为UTF-8.
*
* @param input
* String
* @return String
*/
public static String urlDecode(String input)
throws UnsupportedEncodingException {
return URLDecoder.decode(input, DEFAULT_URL_ENCODING);
}
/**
* Html 转码.
*
* @param html
* String
* @return String
*/
public static String htmlEscape(String html) {
return StringUtils.escapeHtml(html);
}
/**
* Html 解码.
*
* @param htmlEscaped
* String
* @return String
*/
public static String htmlUnescape(String htmlEscaped) {
return StringUtils.unescapeHtml(htmlEscaped);
}
/**
* Xml 转码.
*
* @param xml
* String
* @return String
*/
public static String xmlEscape(String xml) {
return StringUtils.escapeXml(xml);
}
/**
* Xml 解码.
*
* @param xmlEscaped
* String
* @return String
*/
public static String xmlUnescape(String xmlEscaped) {
return StringUtils.unescapeXml(xmlEscaped);
}
/**
* 对应js的escape.
*
* @param src
* String
* @return String
*/
public static String escapeJS(String src) {
int i;
char j;
StringBuffer tmp = new StringBuffer();
tmp.ensureCapacity(src.length() * UNICODE_LENGTH);
for (i = 0; i < src.length(); i++) {
j = src.charAt(i);
if (Character.isDigit(j) || Character.isLowerCase(j)
|| Character.isUpperCase(j)) {
tmp.append(j);
} else if (j < ANSI_CHAR_CODE) {
tmp.append("%");
if (j < UNPRINTABLE_CHAR_CODE) {
tmp.append("0");
}
tmp.append(Integer.toString(j, HEX));
} else {
tmp.append("%u");
tmp.append(Integer.toString(j, HEX));
}
}
return tmp.toString();
}
/**
* 对应js的unescape.
*
* @param src
* String
* @return String
*/
public static String unescapeJS(String src) {
StringBuffer tmp = new StringBuffer();
tmp.ensureCapacity(src.length());
int lastPos = 0;
int pos = 0;
char ch;
while (lastPos < src.length()) {
pos = src.indexOf('%', lastPos);
if (pos == lastPos) {
if (src.charAt(pos + 1) == 'u') {
ch = (char) Integer.parseInt(
src.substring(pos + 2, pos + UNICODE_LENGTH), HEX);
tmp.append(ch);
lastPos = pos + UNICODE_LENGTH;
} else {
ch = (char) Integer.parseInt(
src.substring(pos + 1, pos + ANSI_LENGTH), HEX);
tmp.append(ch);
lastPos = pos + ANSI_LENGTH;
}
} else {
if (pos == -1) {
tmp.append(src.substring(lastPos));
lastPos = src.length();
} else {
tmp.append(src.substring(lastPos, pos));
lastPos = pos;
}
}
}
return tmp.toString();
}
}
|
[
"xyz20003@gmail.com"
] |
xyz20003@gmail.com
|
c2f29bdb2838cd471ba641d4f2203e11f871c0e9
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13616-6-22-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/mail/internal/thread/SendMailRunnable_ESTest_scaffolding.java
|
c7df7c1a1e96fcdd9ba629025da8628c10e38c33
|
[] |
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
| 451
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Apr 08 00:37:00 UTC 2020
*/
package org.xwiki.mail.internal.thread;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class SendMailRunnable_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
5a42d4166898c8c9a2070317ede3dfc96ffbe3ae
|
a30fdb04452c6ec0d041c506f6d80505ce5717e4
|
/src/com/hjedu/customer/dao/IBbsUserDAO.java
|
f0557916347b1ae15fbfe3bc2b99b594d787df1b
|
[] |
no_license
|
azhangge/hj-old
|
9b2a4361c8aaf59dbedfffb1e77a9fab93f4f80a
|
448a10cd4303a8009260ad961bfe405da1516c8c
|
refs/heads/master
| 2021-04-18T21:41:42.338249
| 2018-03-26T03:51:37
| 2018-03-26T03:51:37
| 126,580,166
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,186
|
java
|
package com.hjedu.customer.dao;
import java.util.Date;
import java.util.List;
import com.hjedu.customer.entity.AdminInfo;
import com.hjedu.customer.entity.BbsUser;
public interface IBbsUserDAO {
public abstract void addBbsUser(BbsUser bbsUser);
public abstract void updateBbsUser(BbsUser user);
public abstract void deleteBbsUser(String id);
public abstract void deleteBbsUserByUrn(String urn);
public abstract BbsUser findBbsUser(String id);
public List<BbsUser> findBbsUserByDeptNotInExam(String departId, String examId, Date startDate, Date endDate);
public abstract BbsUser findBbsUserByUrn(String paramString);
public abstract List<BbsUser> findBbsUsersLikeUrn(String urn);
public abstract BbsUser findBbsUserByEmail(String paramString);
public abstract BbsUser findBbsUserByPid(String pid);
public abstract BbsUser findBbsUserByPhone(String phone);
public BbsUser findBbsUserByExtid(String extid);
public abstract BbsUser findBbsUserByPhoneAppNotNull(String phone);
public abstract BbsUser findBbsUserByPhoneAppNull(String phone);
public BbsUser findBbsUserByCid(String cid);
public BbsUser findSysUser();
public long getBbsUserNum();
public long getBbsUserNumByBusinessId(String businessId);
public abstract List<BbsUser> findAllBbsUser(String businessId);
public abstract void enableUser(String id);
public abstract void disableUser(String id);
public abstract void activateUser(String id);
public abstract void enMarkDel(String id);
public abstract void deMarkDel(String id);
public void check(String id);
public void uncheck(String id);
List<BbsUser> findAllBbsUserOrderByDept2();
List<BbsUser> findBbsUserByDept(String departId);
List<BbsUser> findTeacherOpt(String businessId);
List<BbsUser> findBbsUserByLessonTypeId(String tid);
public abstract void addBbsUser2(BbsUser user);
List<BbsUser> findBbsUserByPhones(String phone);
BbsUser findBbsUserByPhoneBusinessId(String phone,String businessId);
}
|
[
"1007009258@qq.com"
] |
1007009258@qq.com
|
b9814f57a4ab99a6fae496083533b9d283729d16
|
de82df19acddb2a4df47a420c66eee8705746e29
|
/services/hrdb/src/com/auto_ehfpuclwgl/hrdb/service/HrdbProcedureExecutorService.java
|
9c45f40523560adf2e7567a33ea3d6cad1d2bb68
|
[] |
no_license
|
wavemakerapps/Auto_ehfpuclwgL
|
317d8f294033feb4ace3b84ba653a1f6d7ed49a0
|
eb04c0ae61d8ed754b34d98670cbce1b8df13f97
|
refs/heads/master
| 2021-09-05T08:44:05.698683
| 2018-01-25T18:24:05
| 2018-01-25T18:24:05
| 118,949,564
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
/*Copyright (c) 2015-2016 wavemaker.com All Rights Reserved.
This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance
with the terms of the source code license agreement you entered into with wavemaker.com*/
package com.auto_ehfpuclwgl.hrdb.service;
/*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/
public interface HrdbProcedureExecutorService {
}
|
[
"automate1@wavemaker.com"
] |
automate1@wavemaker.com
|
79db7930229ddb62a4e61a7ccda3ab3e0c78be63
|
aee2f9f1ed01aac6b63160acfbd0d731ad56a719
|
/src/main/java/com/ivg/demo/controller/InBillController.java
|
1b4e05c4c7c53e83ec6b3287ea50d87f0c3f31bd
|
[] |
no_license
|
wolfmuzi/springbootDemoEx
|
cc70c4d30a3a0a0b38d62972d26acff84e0bab1a
|
1a2bc80a59a09806ebe7d606a9b03f7bd100721b
|
refs/heads/master
| 2021-05-11T12:26:37.295623
| 2018-01-16T08:49:11
| 2018-01-16T08:49:11
| 117,658,093
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,561
|
java
|
package com.ivg.demo.controller;
import com.alibaba.fastjson.JSON;
import com.ivg.comp.mq.RabbitMqSend;
import com.ivg.demo.dto.StoreQueryDto;
import com.ivg.demo.model.entity.ex.StoreInBillEx;
import com.ivg.demo.service.StoreInBillExService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
@RequestMapping("inbill")
@Controller
public class InBillController {
@Autowired
private StoreInBillExService inBillExService;
@Autowired
private RabbitMqSend rabbitMqSend;
@RequestMapping("findInBillAll")
@ResponseBody
public List<StoreInBillEx> findInBill() {
return inBillExService.findInBillAll();
}
@RequestMapping("getInBill")
@ResponseBody
public List<StoreInBillEx> getInBillBySupplierCode(String supplierCode){
return inBillExService.getInBillBySupplierCode(supplierCode);
}
@RequestMapping("sendMessage")
@ResponseBody
public String sendMessage(){
StoreQueryDto dto = new StoreQueryDto();
dto.setStatus("true");
dto.setType("test");
dto.setWarehouseCode("001");
String string = JSON.toJSONString(dto);
/*rabbitMqSend.sendMsg1(dto);
rabbitMqSend.sendMsg2(dto);*/
rabbitMqSend.sendMsg1(string);
rabbitMqSend.sendMsg2(string+"test!!!!!!!!!!!!!");
return "hellow rabbitmq!!!";
}
}
|
[
"email@example.com"
] |
email@example.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.