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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff549a7f51c2cdc9e3d4e0e7a5506ffc48cead40
|
0365904960c1b09e3ad21f9807507009085bf522
|
/trees-immutable/src/main/java/com/mattunderscore/trees/immutable/EmptyConstructor.java
|
ea94c0bec3aca90911ce32580729f54269409271
|
[
"BSD-3-Clause"
] |
permissive
|
mattunderscorechampion/tree-root
|
885f8c482af462c8b0bd4597943f3103155349e2
|
216fcc65044a451296a9881012443733515f58fd
|
refs/heads/master
| 2023-03-16T18:04:22.976498
| 2016-10-04T20:47:32
| 2016-10-04T20:47:32
| 21,217,047
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,241
|
java
|
/* Copyright © 2015 Matthew Champion
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 mattunderscore.com 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 MATTHEW CHAMPION 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.mattunderscore.trees.immutable;
import com.mattunderscore.trees.spi.EmptyTreeConstructor;
import com.mattunderscore.trees.tree.Node;
import com.mattunderscore.trees.tree.Tree;
/**
* Implementation of {@link com.mattunderscore.trees.spi.EmptyTreeConstructor} for
* {@link com.mattunderscore.trees.immutable.TreeNodeImpl}.
* @author Matt Champion on 28/01/15.
*/
public final class EmptyConstructor<E> implements EmptyTreeConstructor<E, Node<E>, TreeNodeImpl<E>> {
@SuppressWarnings("unchecked")
@Override
public final TreeNodeImpl<E> build() {
return new TreeNodeImpl(null, new TreeNodeImpl[0]);
}
@Override
public Class<? extends Tree> forClass() {
return TreeNodeImpl.class;
}
}
|
[
"mattunderscorechampion@gmail.com"
] |
mattunderscorechampion@gmail.com
|
4d12276b7200028c939299e1420ead7384f7eb8a
|
66e2f35b7b56865552616cf400e3a8f5928d12a2
|
/src/main/java/com/alipay/api/response/AlipayOpenMiniPlanOperateModifyResponse.java
|
36213b3d8c53c0e0524fd30401bd56b7a719adb1
|
[
"Apache-2.0"
] |
permissive
|
xiafaqi/alipay-sdk-java-all
|
18dc797400847c7ae9901566e910527f5495e497
|
606cdb8014faa3e9125de7f50cbb81b2db6ee6cc
|
refs/heads/master
| 2022-11-25T08:43:11.997961
| 2020-07-23T02:58:22
| 2020-07-23T02:58:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 382
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.mini.plan.operate.modify response.
*
* @author auto create
* @since 1.0, 2020-03-26 22:35:14
*/
public class AlipayOpenMiniPlanOperateModifyResponse extends AlipayResponse {
private static final long serialVersionUID = 5873496573326952611L;
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
3b80148c3ff4950f38fe7d6739795002df1641bd
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithLambdas/applicationModule/src/test/java/applicationModulepackageJava1/Foo650Test.java
|
df72f6a7bd07c14b553a56f59c63d1be21f9d5d2
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 741
|
java
|
package applicationModulepackageJava1;
import org.junit.Test;
public class Foo650Test {
@Test
public void testFoo0() {
new Foo650().foo0();
}
@Test
public void testFoo1() {
new Foo650().foo1();
}
@Test
public void testFoo2() {
new Foo650().foo2();
}
@Test
public void testFoo3() {
new Foo650().foo3();
}
@Test
public void testFoo4() {
new Foo650().foo4();
}
@Test
public void testFoo5() {
new Foo650().foo5();
}
@Test
public void testFoo6() {
new Foo650().foo6();
}
@Test
public void testFoo7() {
new Foo650().foo7();
}
@Test
public void testFoo8() {
new Foo650().foo8();
}
@Test
public void testFoo9() {
new Foo650().foo9();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
6b060b9b829a192db3ae4e4dc93115f80a4a1688
|
e9d1b2db15b3ae752d61ea120185093d57381f73
|
/mytcuml-src/src/java/components/xmi_reader_uml_model_plugin/trunk/src/java/tests/com/topcoder/xmi/reader/handlers/modelfactory/TestHelper.java
|
e01a4f02af7ae66ed0bcde5e50cd60b9d5c56ae6
|
[] |
no_license
|
kinfkong/mytcuml
|
9c65804d511ad997e0c4ba3004e7b831bf590757
|
0786c55945510e0004ff886ff01f7d714d7853ab
|
refs/heads/master
| 2020-06-04T21:34:05.260363
| 2014-10-21T02:31:16
| 2014-10-21T02:31:16
| 25,495,964
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,872
|
java
|
/*
* Copyright (C) 2006 TopCoder Inc., All Rights Reserved.
*/
package com.topcoder.xmi.reader.handlers.modelfactory;
import java.io.File;
import com.topcoder.util.config.ConfigManager;
/**
* <p>
* A helper class to perform those common operations which are helpful for the test.
* </p>
*
* @author TCSDEVELOPER
* @version 1.0
*/
public class TestHelper {
/**
* <p>
* This private constructor prevents to create a new instance.
* </p>
*/
private TestHelper() {
}
/**
* <p>
* Use the given file to config the given namespace the format of the config file is
* ConfigManager.CONFIG_XML_FORMAT.
* </p>
*
* @param namespace use the namespace to load config information to ConfigManager
* @param fileName config file to set up environment
*
* @throws Exception when any exception occurs
*/
public static void loadSingleXMLConfig(String namespace, String fileName) throws Exception {
//set up environment
ConfigManager config = ConfigManager.getInstance();
File file = new File(fileName);
//config namespace
if (config.existsNamespace(namespace)) {
config.removeNamespace(namespace);
}
config.add(namespace, file.getCanonicalPath(), ConfigManager.CONFIG_XML_FORMAT);
}
/**
* <p>
* Remove the given namespace in the ConfigManager.
* </p>
*
* @param namespace namespace use to remove the config information in ConfigManager
*
* @throws Exception when any exception occurs
*/
public static void clearConfigFile(String namespace) throws Exception {
ConfigManager config = ConfigManager.getInstance();
//clear the environment
if (config.existsNamespace(namespace)) {
config.removeNamespace(namespace);
}
}
}
|
[
"kinfkong@126.com"
] |
kinfkong@126.com
|
ea1202940f291e449a202824bd7aa70da1cf204a
|
9f4daecbf4b7fc24f4667c1f9239b1374cf6fef7
|
/NIO-Chat/src/main/java/server/TCPServerProvider.java
|
bba53bde7eddc10b5d31ecfdf301c94fb5996ead
|
[] |
no_license
|
2568808909/NIO-Chatroom
|
0a9f04c04569a2cd7c2dd961caf27044bb507518
|
d9d4e298b96e1d2ab9885c12b0c7985e1a990117
|
refs/heads/master
| 2022-01-31T14:17:56.876197
| 2019-07-21T03:14:50
| 2019-07-21T03:14:50
| 198,006,406
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,161
|
java
|
package server;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class TCPServerProvider implements ClientHandlerCallBack{
private static Provider PROVIDER=null;
private int port;
private List<ClientHandler> clientHandlers=new ArrayList<>();
private Selector selector;
private ServerSocketChannel server;
public TCPServerProvider(int port) {
this.port=port;
}
public void stop() {
if(PROVIDER!=null) {
PROVIDER.exit();
PROVIDER=null;
System.out.println("TCPServer end.");
}
for (ClientHandler clientHandler : clientHandlers) {
clientHandler.exit();
}
}
public boolean start() {
System.out.println("TCPServer start.");
stop();
try {
//开启选择器
selector=Selector.open();
//开启通道
server=ServerSocketChannel.open();
//设置为非阻塞
server.configureBlocking(false);
//绑定本地端口
server.socket().bind(new InetSocketAddress(port));
//注册客户端连接到客户端的监听
server.register(selector, SelectionKey.OP_ACCEPT);
Provider provider=new Provider();
provider.start();
PROVIDER=provider;
}catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
public class Provider extends Thread{
private boolean done;
public Provider()throws IOException {
done=false;
}
public void run() {
do {
try {
if(selector.select()==0) {
if(done) {
break;
}
}
Iterator<SelectionKey> iterator=selector.selectedKeys().iterator();
while(iterator.hasNext()) {
if(done) {
break;
}
SelectionKey key=iterator.next();
if(key.isAcceptable()) {
ServerSocketChannel serverSocketChannel=(ServerSocketChannel)key.channel();
SocketChannel socketChannel=serverSocketChannel.accept();
System.out.println("accepted.");
try {
ClientHandler clientHandler=new ClientHandler(socketChannel,TCPServerProvider.this);
clientHandlers.add(clientHandler);
}catch (Exception e) {
e.printStackTrace();
System.out.println("客户端连接异常"+e.getMessage());
}
}
}
}catch (Exception e) {
continue;
}
}while(!done);
}
public void close() {
if(server!=null) {
try {
server.close();
server=null;
}catch (Exception e) {
e.printStackTrace();
}
}
}
public void exit() {
close();
done=true;
}
}
public void boardcast(String str) {
for (ClientHandler clientHandler : clientHandlers) {
clientHandler.send(str);;
}
}
@Override
public void onCloseNotify(ClientHandler handler) {
clientHandlers.remove(handler);
}
@Override
public void onReadNotify(ClientHandler handler,String msg) {
for (ClientHandler clientHandler : clientHandlers) {
if(clientHandler.equals(handler)) {
continue;
}
clientHandler.send(msg);
}
}
}
|
[
"2568808909@qq.com"
] |
2568808909@qq.com
|
9721701334462d095260ef8b9c045488bac5f8ab
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_1a4bfe438c7bb7a63d89fd7299baabc0f2765170/AppellationSimpleTypeahead/23_1a4bfe438c7bb7a63d89fd7299baabc0f2765170_AppellationSimpleTypeahead_s.java
|
37cff234c0fc255ae5e25a15738abc1999661a35
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,720
|
java
|
/*
* Copyright 2011, MyCellar
*
* This file is part of MyCellar.
*
* MyCellar 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.
*
* MyCellar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MyCellar. If not, see <http://www.gnu.org/licenses/>.
*/
package fr.peralta.mycellar.interfaces.client.web.components.wine.autocomplete;
import java.util.List;
import org.apache.wicket.event.IEvent;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.StringResourceModel;
import org.apache.wicket.spring.injection.annot.SpringBean;
import fr.peralta.mycellar.domain.shared.repository.FilterEnum;
import fr.peralta.mycellar.domain.shared.repository.SearchForm;
import fr.peralta.mycellar.domain.wine.Appellation;
import fr.peralta.mycellar.interfaces.client.web.components.shared.AjaxTool;
import fr.peralta.mycellar.interfaces.client.web.components.shared.autocomplete.SimpleIdentifiedEntityTypeahead;
import fr.peralta.mycellar.interfaces.client.web.shared.FilterEnumHelper;
import fr.peralta.mycellar.interfaces.facades.wine.WineServiceFacade;
/**
* @author speralta
*/
public class AppellationSimpleTypeahead extends SimpleIdentifiedEntityTypeahead<Appellation> {
private static final long serialVersionUID = 201107252130L;
private static final String REGION_COMPONENT_ID = "region";
@SpringBean
private WineServiceFacade wineServiceFacade;
private final RegionSimpleTypeahead regionSimpleTypeahead;
/**
* @param id
* @param label
* @param searchFormModel
* @param filters
*/
public AppellationSimpleTypeahead(String id, IModel<String> label,
IModel<SearchForm> searchFormModel, FilterEnum... filters) {
super(id, label, searchFormModel);
add(regionSimpleTypeahead = new RegionSimpleTypeahead(REGION_COMPONENT_ID,
new StringResourceModel("region", this, null), searchFormModel,
FilterEnumHelper.removeFilter(filters, FilterEnum.REGION)));
}
/**
* {@inheritDoc}
*/
@Override
public List<Appellation> getChoices(String term) {
return wineServiceFacade.getAppellationsLike(term, getSearchFormModel().getObject(),
getFilters());
}
/**
* {@inheritDoc}
*/
@Override
protected boolean isReadyToSelect() {
return regionSimpleTypeahead.isValued();
}
/**
* {@inheritDoc}
*/
@Override
protected Appellation createDefaultObject() {
Appellation region = new Appellation();
region.setRegion(regionSimpleTypeahead.getModelObject());
return region;
}
/**
* {@inheritDoc}
*/
@Override
protected void onModelChanged(IEvent<?> event) {
getSearchFormModel().getObject().replaceSet(FilterEnum.REGION,
regionSimpleTypeahead.getModelObject());
if (!regionSimpleTypeahead.isValued()) {
markAsNonValued();
}
AjaxTool.ajaxReRender(this);
event.stop();
}
/**
* {@inheritDoc}
*/
@Override
protected FilterEnum getFilterToReplace() {
return FilterEnum.APPELLATION;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
95d50902b7061a62ae885b312d77717c2c4b4041
|
a770e95028afb71f3b161d43648c347642819740
|
/sources/org/telegram/messenger/MessagesController$$ExternalSyntheticLambda167.java
|
c5a445dd2f94913ca741952094230f380588ba7e
|
[] |
no_license
|
Edicksonjga/TGDecompiledBeta
|
d7aa48a2b39bbaefd4752299620ff7b72b515c83
|
d1db6a445d5bed43c1dc8213fb8dbefd96f6c51b
|
refs/heads/master
| 2023-08-25T04:12:15.592281
| 2021-10-28T20:24:07
| 2021-10-28T20:24:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,173
|
java
|
package org.telegram.messenger;
import java.io.File;
import org.telegram.tgnet.TLRPC$TL_wallPaperSettings;
import org.telegram.tgnet.TLRPC$WallPaper;
import org.telegram.ui.ActionBar.Theme;
public final /* synthetic */ class MessagesController$$ExternalSyntheticLambda167 implements Runnable {
public final /* synthetic */ MessagesController f$0;
public final /* synthetic */ TLRPC$WallPaper f$1;
public final /* synthetic */ TLRPC$TL_wallPaperSettings f$2;
public final /* synthetic */ Theme.OverrideWallpaperInfo f$3;
public final /* synthetic */ File f$4;
public /* synthetic */ MessagesController$$ExternalSyntheticLambda167(MessagesController messagesController, TLRPC$WallPaper tLRPC$WallPaper, TLRPC$TL_wallPaperSettings tLRPC$TL_wallPaperSettings, Theme.OverrideWallpaperInfo overrideWallpaperInfo, File file) {
this.f$0 = messagesController;
this.f$1 = tLRPC$WallPaper;
this.f$2 = tLRPC$TL_wallPaperSettings;
this.f$3 = overrideWallpaperInfo;
this.f$4 = file;
}
public final void run() {
this.f$0.lambda$didReceivedNotification$20(this.f$1, this.f$2, this.f$3, this.f$4);
}
}
|
[
"fabian_pastor@msn.com"
] |
fabian_pastor@msn.com
|
bf849d84281c6eb8c95b193f97f9a301fbdfa1c6
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MOCKITO-16b-3-22-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage-opt/org/mockito/internal/MockitoCore_ESTest_scaffolding.java
|
b7de56618de54d5ec7a44864d3af3201f8a81bb3
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,584
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Oct 29 07:56:39 UTC 2021
*/
package org.mockito.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class MockitoCore_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.mockito.internal.MockitoCore";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(MockitoCore_ESTest_scaffolding.class.getClassLoader() ,
"org.mockito.cglib.proxy.Callback",
"org.mockito.exceptions.misusing.UnfinishedVerificationException",
"org.mockito.internal.stubbing.InvocationContainer",
"org.mockito.internal.invocation.InvocationMatcher",
"org.mockito.internal.creation.MockSettingsImpl",
"org.mockito.internal.verification.AtLeast",
"org.mockito.internal.stubbing.InvocationContainerImpl",
"org.mockito.internal.invocation.realmethod.FilteredCGLIBProxyRealMethod",
"org.mockito.exceptions.misusing.NotAMockException",
"org.mockito.internal.stubbing.OngoingStubbingImpl",
"org.mockito.internal.invocation.realmethod.RealMethod",
"org.mockito.internal.progress.MockingProgress",
"org.mockito.internal.util.MockitoLogger",
"org.mockito.exceptions.misusing.MissingMethodInvocationException",
"org.mockito.exceptions.verification.SmartNullPointerException",
"org.mockito.exceptions.verification.TooLittleActualInvocations",
"org.mockito.internal.progress.MockingProgressImpl",
"org.mockito.internal.invocation.StubInfo",
"org.mockito.internal.configuration.GlobalConfiguration",
"org.mockito.stubbing.DeprecatedOngoingStubbing",
"org.mockito.cglib.proxy.MethodInterceptor",
"org.mockito.exceptions.verification.TooManyActualInvocations",
"org.mockito.exceptions.misusing.MockitoConfigurationException",
"org.mockito.internal.progress.IOngoingStubbing",
"org.mockito.internal.invocation.MockitoMethod",
"org.mockito.cglib.proxy.MethodProxy$CreateInfo",
"org.mockito.internal.debugging.Localized",
"org.mockito.internal.MockitoCore",
"org.mockito.internal.invocation.SerializableMethod",
"org.mockito.cglib.proxy.MethodProxy$FastClassInfo",
"org.mockito.stubbing.Stubber",
"org.mockito.asm.Type",
"org.mockito.stubbing.Answer",
"org.mockito.internal.verification.Times",
"org.mockito.internal.exceptions.base.StackTraceFilter",
"org.mockito.invocation.InvocationOnMock",
"org.mockito.internal.progress.ArgumentMatcherStorageImpl",
"org.mockito.internal.verification.InOrderWrapper",
"org.mockito.internal.verification.NoMoreInteractions",
"org.mockito.configuration.IMockitoConfiguration",
"org.mockito.exceptions.misusing.WrongTypeOfReturnValue",
"org.mockito.stubbing.OngoingStubbing",
"org.mockito.MockSettings",
"org.mockito.internal.progress.ArgumentMatcherStorage",
"org.mockito.exceptions.base.MockitoAssertionError",
"org.mockito.internal.invocation.InvocationMarker",
"org.mockito.exceptions.verification.NeverWantedButInvoked",
"org.mockito.cglib.core.CodeGenerationException",
"org.mockito.internal.util.CreationValidator",
"org.hamcrest.Matcher",
"org.mockito.internal.util.MockName",
"org.mockito.internal.creation.SerializableMockitoMethodProxy",
"org.mockito.configuration.AnnotationEngine",
"org.mockito.internal.stubbing.StubbedInvocationMatcher",
"org.mockito.exceptions.Reporter",
"org.mockito.exceptions.verification.VerificationInOrderFailure",
"org.mockito.configuration.DefaultMockitoConfiguration",
"org.mockito.cglib.reflect.FastClass",
"org.mockito.exceptions.misusing.NullInsteadOfMockException",
"org.mockito.stubbing.VoidMethodStubbable",
"org.mockito.internal.creation.DelegatingMockitoMethodProxy",
"org.mockito.internal.util.StringJoiner",
"org.mockito.stubbing.ClonesArguments",
"org.mockito.internal.verification.RegisteredInvocations",
"org.mockito.internal.verification.AtMost",
"org.mockito.internal.creation.MockitoMethodProxy",
"org.mockito.internal.reporting.PrintingFriendlyInvocation",
"org.mockito.exceptions.verification.ArgumentsAreDifferent",
"org.hamcrest.SelfDescribing",
"org.mockito.configuration.MockitoConfiguration",
"org.mockito.exceptions.misusing.InvalidUseOfMatchersException",
"org.mockito.exceptions.misusing.UnfinishedStubbingException",
"org.mockito.internal.invocation.Invocation",
"org.mockito.internal.debugging.DebuggingInfo",
"org.mockito.exceptions.verification.NoInteractionsWanted",
"org.mockito.internal.creation.AbstractMockitoMethodProxy",
"org.mockito.internal.invocation.CapturesArgumensFromInvocation",
"org.mockito.exceptions.PrintableInvocation",
"org.mockito.internal.configuration.ClassPathLoader",
"org.mockito.exceptions.base.MockitoException",
"org.mockito.internal.verification.VerificationDataImpl",
"org.mockito.internal.verification.api.VerificationData",
"org.mockito.internal.invocation.realmethod.HasCGLIBMethodProxy",
"org.mockito.internal.exceptions.base.ConditionalStackTraceFilter",
"org.mockito.exceptions.verification.WantedButNotInvoked",
"org.mockito.internal.verification.Only",
"org.mockito.internal.progress.ThreadSafeMockingProgress",
"org.mockito.internal.stubbing.ConsecutiveStubbing",
"org.mockito.internal.verification.api.VerificationMode",
"org.mockito.internal.invocation.InvocationsFinder",
"org.mockito.cglib.core.Signature",
"org.mockito.internal.stubbing.BaseStubbing",
"org.mockito.internal.debugging.Location",
"org.mockito.InOrder",
"org.mockito.internal.MockitoInvocationHandler",
"org.mockito.cglib.proxy.MethodProxy",
"org.mockito.internal.util.MockUtil",
"org.mockito.internal.verification.api.VerificationInOrderMode",
"org.mockito.internal.invocation.realmethod.CGLIBProxyRealMethod",
"org.mockito.internal.reporting.PrintSettings"
);
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
0694f70432bd19f034fd6371ab307120d47302bd
|
f2ec1514cee5a3023ff076b81e6487628406e3f2
|
/src/Negocio/NModulo.java
|
9e387f973d3a09cf528e551fb9ac4ef2360207bc
|
[] |
no_license
|
hunterlh4/Biblioteca
|
c31faf39d701a46a389a8bf8f397146f5ac9db18
|
bba4af4cb6ad0634bc9c0e563e53e1edc3b9e481
|
refs/heads/master
| 2020-07-28T23:30:03.984781
| 2019-09-19T14:49:44
| 2019-09-19T14:51:25
| 209,579,084
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,509
|
java
|
package Negocio;
import java.sql.ResultSet;
import java.util.List;
import Entidad.EModulo;
import Interface.INegocio;
import Utilidad.Inicializador;
public class NModulo implements INegocio<EModulo> {
@Override
public int Agregar(EModulo Obj) {
// TODO Auto-generated method stub
try {
ResultSet r = NConexion.Ejecutar(Obj, "SP_AGREGAR_Modulo");
r.first();
return r.getInt("lid");
} catch (Exception e) {
System.out.println("Error al Agregar Modulo: " + e.getMessage());
return 0;
}
}
@Override
public boolean Modificar(EModulo Obj) {
// TODO Auto-generated method stub
try {
int afectados = NConexion.EjecutarActualizacion(Obj, "SP_MODIFICAR_Modulo");
return afectados > 0;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
@Override
public boolean Eliminar(EModulo Obj) {
// TODO Auto-generated method stub
try {
int afectados = NConexion.EjecutarActualizacion(Obj, "SP_ELIMINAR_Modulo");
return afectados > 0;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
@Override
public List<EModulo> Listar() {
List<EModulo> Lista = null;
// TODO Auto-generated method stub
try {
ResultSet r = NConexion.Ejecutar(new EModulo(), "SP_LISTAR_USUARIO");
Lista = (List<EModulo>) (List<?>) Inicializador.IniciarlizarArrayObjetos(r, new EModulo());
} catch (Exception e) {
e.printStackTrace();
}
return Lista;
}
}
|
[
"Alex@Alex-PC"
] |
Alex@Alex-PC
|
a3e245f8c8f1aab6e6da03b9c733e97b9813ed12
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21/applicationModule/src/test/java/applicationModulepackageJava18/Foo467Test.java
|
4c5288caa0bd06f155f41243b2ff804da15e2dce
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 482
|
java
|
package applicationModulepackageJava18;
import org.junit.Test;
public class Foo467Test {
@Test
public void testFoo0() {
new Foo467().foo0();
}
@Test
public void testFoo1() {
new Foo467().foo1();
}
@Test
public void testFoo2() {
new Foo467().foo2();
}
@Test
public void testFoo3() {
new Foo467().foo3();
}
@Test
public void testFoo4() {
new Foo467().foo4();
}
@Test
public void testFoo5() {
new Foo467().foo5();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
938984099a7b32b8b94a9e3cbe9bab7a34d7173d
|
852ae668be85e1bbbfb213ac030cd2bd9b13eb6e
|
/PUB/PubTermBrowser/build/generated-sources/jax-ws/de/fhdo/terminologie/ws/authoring/GetRemoveTerminologyOrConceptPubRunningResponse.java
|
01e2afd7af20d08e509a6d2b1f88f1f721b06fd1
|
[] |
no_license
|
TechnikumWienAcademy/Terminologieserver
|
e2a568ef04b8c378dfbe10b9add23d6253a708f9
|
bdb719233891efcc3c6761557898799a6eafcedd
|
refs/heads/master
| 2023-06-29T07:54:00.597735
| 2021-06-05T10:03:57
| 2021-06-05T10:03:57
| 176,249,973
| 0
| 0
| null | 2021-08-02T06:39:39
| 2019-03-18T09:44:26
|
Java
|
ISO-8859-1
|
Java
| false
| false
| 1,398
|
java
|
package de.fhdo.terminologie.ws.authoring;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für getRemoveTerminologyOrConceptPubRunningResponse complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType name="getRemoveTerminologyOrConceptPubRunningResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getRemoveTerminologyOrConceptPubRunningResponse", propOrder = {
"_return"
})
public class GetRemoveTerminologyOrConceptPubRunningResponse {
@XmlElement(name = "return")
protected boolean _return;
/**
* Ruft den Wert der return-Eigenschaft ab.
*
*/
public boolean isReturn() {
return _return;
}
/**
* Legt den Wert der return-Eigenschaft fest.
*
*/
public void setReturn(boolean value) {
this._return = value;
}
}
|
[
"bachinge@technikum-wien.at"
] |
bachinge@technikum-wien.at
|
f662bc91b191b26af9a608cc43d9c40830648dd3
|
a4cb372ced240bf1cf0a9d123bdd4a805ff05df6
|
/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ReactiveElasticsearchRepositoriesAutoConfigurationTests.java
|
bfa3978c858ef0e4f1349130b928fb0d14c26344
|
[] |
no_license
|
ZhaoBinxian/spring-boot-maven-ben
|
c7ea6a431c3206959009ff5344547436e98d75ca
|
ebd43548bae1e35fff174c316ad154cd0e5defb3
|
refs/heads/master
| 2023-07-18T12:53:49.028864
| 2021-09-07T04:55:54
| 2021-09-07T04:55:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,373
|
java
|
/*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.autoconfigure.data.elasticsearch;
import java.time.Duration;
import org.junit.jupiter.api.Test;
import org.testcontainers.elasticsearch.ElasticsearchContainer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
import org.springframework.boot.autoconfigure.data.alt.elasticsearch.CityReactiveElasticsearchDbRepository;
import org.springframework.boot.autoconfigure.data.elasticsearch.city.City;
import org.springframework.boot.autoconfigure.data.elasticsearch.city.ReactiveCityRepository;
import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.testsupport.testcontainers.DockerImageNames;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.core.ReactiveElasticsearchTemplate;
import org.springframework.data.elasticsearch.repository.config.EnableReactiveElasticsearchRepositories;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link ReactiveElasticsearchRepositoriesAutoConfiguration}.
*
* @author Phillip Webb
* @author Andy Wilkinson
* @author Brian Clozel
*/
@Testcontainers(disabledWithoutDocker = true)
class ReactiveElasticsearchRepositoriesAutoConfigurationTests {
@Container
static ElasticsearchContainer elasticsearch = new ElasticsearchContainer(DockerImageNames.elasticsearch())
.withStartupAttempts(5).withStartupTimeout(Duration.ofMinutes(10));
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(ReactiveElasticsearchRestClientAutoConfiguration.class,
ReactiveElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class))
.withPropertyValues(
"spring.data.elasticsearch.client.reactive.endpoints=" + elasticsearch.getHost() + ":"
+ elasticsearch.getFirstMappedPort(),
"spring.data.elasticsearch.client.reactive.socket-timeout=30s");
@Test
void testDefaultRepositoryConfiguration() {
this.contextRunner.withUserConfiguration(TestConfiguration.class).run((context) -> assertThat(context)
.hasSingleBean(ReactiveCityRepository.class).hasSingleBean(ReactiveElasticsearchTemplate.class));
}
@Test
void testNoRepositoryConfiguration() {
this.contextRunner.withUserConfiguration(EmptyConfiguration.class)
.run((context) -> assertThat(context).hasSingleBean(ReactiveElasticsearchTemplate.class));
}
@Test
void doesNotTriggerDefaultRepositoryDetectionIfCustomized() {
this.contextRunner.withUserConfiguration(CustomizedConfiguration.class)
.run((context) -> assertThat(context).hasSingleBean(CityReactiveElasticsearchDbRepository.class));
}
@Configuration(proxyBeanMethods = false)
@TestAutoConfigurationPackage(City.class)
static class TestConfiguration {
}
@Configuration(proxyBeanMethods = false)
@TestAutoConfigurationPackage(EmptyDataPackage.class)
static class EmptyConfiguration {
}
@Configuration(proxyBeanMethods = false)
@TestAutoConfigurationPackage(ReactiveElasticsearchRepositoriesAutoConfigurationTests.class)
@EnableReactiveElasticsearchRepositories(basePackageClasses = CityReactiveElasticsearchDbRepository.class)
static class CustomizedConfiguration {
}
}
|
[
"zhaobinxian@greatyun.com"
] |
zhaobinxian@greatyun.com
|
0125045eb42cd001b753f20999239706b32e7e43
|
affdf5712257b2c62ea07700fd53b6c1ac55b951
|
/workup-old/bankcard-parent/card-web/src/main/java/solent/ac/uk/ood/examples/cardcheck/service/rest/TransactionApiRestImpl.java
|
531bd6943fdb592d1b5119ea0d3aa7787f76c4f1
|
[
"Apache-2.0"
] |
permissive
|
Madeoro/solent2Public
|
a89cfd663967b67d3d3d9ec97fb8b10e3fc95115
|
f747b5550c8e3d79d7bd3979561f26681a54af82
|
refs/heads/master
| 2020-03-29T15:58:46.272137
| 2019-01-25T00:55:34
| 2019-01-25T00:55:34
| 150,090,669
| 0
| 0
|
Apache-2.0
| 2018-09-24T11:11:19
| 2018-09-24T11:11:19
| null |
UTF-8
|
Java
| false
| false
| 2,667
|
java
|
package solent.ac.uk.ood.examples.cardcheck.service.rest;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import solent.ac.uk.ood.examples.cardcheck.model.ResultCodes;
import solent.ac.uk.ood.examples.cardcheck.model.Transaction;
import solent.ac.uk.ood.examples.cardcheck.model.TransactionResult;
import solent.ac.uk.ood.examples.cardcheck.service.ServiceObjectFactory;
import solent.ac.uk.ood.examples.cardcheck.service.TransactionApi;
@Path("/transaction")
public class TransactionApiRestImpl {
//POST http://localhost:8680/rest/transaction/requestPreAuthorisation
//Accept: application/json
//Content-Type: application/json
//{
// "timestamp": null,
// "transactionId": null,
// "from": null,
// "to": null,
// "amount": null,
// "cardFrom": null,
// "cardTo": null,
// "id": null
//}
// public TransactionResult requestPreAuthorisation(Transaction requestTransaction);
@POST
@Path("/requestPreAuthorisation")
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public TransactionResult requestPreAuthorisation(Transaction requestTransaction) {
ServiceObjectFactory serviceObjectFactory = AppObjectFactory.getServiceObjectFactory();
TransactionApi transactionApi = serviceObjectFactory.getTransactonApi();
TransactionResult result = transactionApi.requestPreAuthorisation(requestTransaction);
// TransactionResult result = new TransactionResult();
// result.setResultCode(ResultCodes.DECLINED);
// result.setTransaction(requestTransaction);
return result;
}
// public TransactionResult requestTransaction(Transaction transactionRequest);
@POST
@Path("/requestTransaction")
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public TransactionResult requestTransaction(Transaction requestTransaction) {
ServiceObjectFactory serviceObjectFactory = AppObjectFactory.getServiceObjectFactory();
TransactionApi transactionApi = serviceObjectFactory.getTransactonApi();
TransactionResult result = transactionApi.requestTransaction(requestTransaction);
// alternative dummy response
// TransactionResult result = new TransactionResult();
// result.setResultCode(ResultCodes.DECLINED);
// result.setTransaction(requestTransaction);
return result;
}
}
|
[
"cgallen@opennms.org"
] |
cgallen@opennms.org
|
9245215ae43fa58f3e093b4bc6682615528aef28
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/80_wheelwebtool-wheel.components.TextInput-1.0-9/wheel/components/TextInput_ESTest_scaffolding.java
|
ddbd466db7820973a1ef9ebbf537f1d4e1f4fb45
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 532
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Oct 26 01:03:01 GMT 2019
*/
package wheel.components;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class TextInput_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
0cac26faaafba19e64e75fdcc59bccb36424bfb5
|
2cc15ed7f278ae6c54908731137325a0018584d0
|
/app/src/main/java/com/tenilodev/healthyfinder/utils/GeoUtil.java
|
38280a4981048b00ee9b6d184e80e2372287b508
|
[] |
no_license
|
basriumar12/apphealty
|
2b6fa00a2663a069a03b1324a3cbfe9623e925f1
|
84ed85fad7cd49db7152d671a15f266ecaaad6fc
|
refs/heads/master
| 2021-01-04T18:37:48.028243
| 2020-02-15T13:18:24
| 2020-02-15T13:18:24
| 240,712,365
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 756
|
java
|
package com.tenilodev.healthyfinder.utils;
/**
* Created by aisatriani on 22/08/15.
*/
public class GeoUtil {
public static double distance(double lat1, double lng1, double lat2, double lng2) {
double earthRadius = 6371.0; // miles 3958.75 (or 6371.0 kilometers)
double dLat = Math.toRadians(lat2-lat1);
double dLng = Math.toRadians(lng2-lng1);
double sindLat = Math.sin(dLat / 2);
double sindLng = Math.sin(dLng / 2);
double a = Math.pow(sindLat, 2) + Math.pow(sindLng, 2)
* Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2));
double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
double dist = earthRadius * c * 1000 ;
return dist;
}
}
|
[
"basriumar12@gmail.com"
] |
basriumar12@gmail.com
|
4fddc5c9cb99ce3d6db544edb98be69d7647a328
|
1f207999be869a53c773c4b3dc4cff3d78f60aca
|
/ybg_base_jar/src/main/java/com/alipay/api/domain/AlipayTradeCancelModel.java
|
9441f14eed79369d97139d6f6faa744a6135c9c5
|
[] |
no_license
|
BrendaHub/quanmin_admin
|
8b4f1643112910b728adc172324b8fb8a2f672dc
|
866548dc219a2eaee0a09efbc3b6410eb3c2beb9
|
refs/heads/master
| 2021-05-09T04:17:03.818182
| 2018-01-28T15:00:12
| 2018-01-28T15:00:12
| 119,267,872
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 891
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 统一收单交易撤销接口
*
* @author auto create
* @since 1.0, 2017-10-19 16:09:44
*/
public class AlipayTradeCancelModel extends AlipayObject {
private static final long serialVersionUID = 4688158589913591593L;
/**
* 原支付请求的商户订单号,和支付宝交易号不能同时为空
*/
@ApiField("out_trade_no")
private String outTradeNo;
/**
* 支付宝交易号,和商户订单号不能同时为空
*/
@ApiField("trade_no")
private String tradeNo;
public String getOutTradeNo() {
return this.outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getTradeNo() {
return this.tradeNo;
}
public void setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
}
}
|
[
"13552666934@139.com"
] |
13552666934@139.com
|
1b0fccc4b6605b3c671a751f8f5b065bbade77c6
|
8df3759e699c44301ae31ee7f35b1968e553770a
|
/src/main/java/yichenliang/leetcode/binarySearch/FindMinimumInRotatedSortedArray.java
|
c4207012759d38d149d5a3f35b0f7b8fd0a9ae4e
|
[] |
no_license
|
yichenliang/LeetCode-Programming
|
ae73fe1f9e5b49c71585ac1363085d9cd03e64d5
|
65bffcf8a01efe0a2bb3c9b58d76ba9f347d18a0
|
refs/heads/master
| 2020-03-22T03:02:36.341876
| 2019-08-15T15:46:41
| 2019-08-15T15:46:41
| 139,409,771
| 1
| 1
| null | 2019-02-22T16:00:56
| 2018-07-02T07:54:21
|
Java
|
UTF-8
|
Java
| false
| false
| 797
|
java
|
package yichenliang.leetcode.binarySearch;
/**
* 153. Find Minimum in Rotated Sorted Array
*
* binary search
*
* time complexity: O(logn)
* space complexity: O(1)
*
* 2019/8/10
*/
public class FindMinimumInRotatedSortedArray {
public int findMin(int[] nums) {
if(nums == null || nums.length == 0) return 0;
if(nums.length == 1) return nums[0];
// binary search
int l = 0, r = nums.length;
int first = nums[0];
while(l < r){
int m = l + (r - l) / 2;
if(nums[m] >= first){
l = m + 1;
}
else{
r = m;
}
}
if(l == nums.length){
return nums[0];
}
return nums[l];
}
}
|
[
"yichenliang@ufl.edu"
] |
yichenliang@ufl.edu
|
446fc2d0d8187c804b40be16a5fe980f763ba842
|
689cdf772da9f871beee7099ab21cd244005bfb2
|
/classes2/com/tencent/imsdk/userid/UserIdToTinyId.java
|
7fed647c67a67b1e245097b1ee13de104f019ce4
|
[] |
no_license
|
waterwitness/dazhihui
|
9353fd5e22821cb5026921ce22d02ca53af381dc
|
ad1f5a966ddd92bc2ac8c886eb2060d20cf610b3
|
refs/heads/master
| 2020-05-29T08:54:50.751842
| 2016-10-08T08:09:46
| 2016-10-08T08:09:46
| 70,314,359
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,507
|
java
|
package com.tencent.imsdk.userid;
import com.tencent.imsdk.IMMsfCoreProxy;
import com.tencent.imsdk.IMMsfUserInfo;
import com.tencent.imsdk.QLog;
import com.tencent.imsdk.WrapCmdListener;
import com.tencent.mobileqq.pb.ByteStringMicro;
import com.tencent.mobileqq.pb.PBBytesField;
import com.tencent.mobileqq.pb.PBRepeatMessageField;
import com.tencent.mobileqq.pb.PBUInt32Field;
import com.tencent.openqq.IMError;
import com.tencent.openqq.IMUserId;
import com.tencent.openqq.IMUserIdListener;
import com.tencent.openqq.protocol.imsdk.im_open_common.IMUserId;
import com.tencent.openqq.protocol.imsdk.userid_to_tinyid.ReqBody;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
public class UserIdToTinyId
{
static UserIdToTinyId inst = new UserIdToTinyId();
private static final String tag = "MSF.C.UserIdToTinyId";
ConcurrentHashMap<IMUserId, Long> userIdToTinyId = new ConcurrentHashMap();
public static UserIdToTinyId get()
{
return inst;
}
private void localUserIdToTinyId(List<IMUserId> paramList1, List<IMUserId> paramList2)
{
paramList1 = paramList1.iterator();
while (paramList1.hasNext())
{
IMUserId localIMUserId1 = (IMUserId)paramList1.next();
if (this.userIdToTinyId.containsKey(localIMUserId1))
{
IMUserId localIMUserId2 = new IMUserId(localIMUserId1);
localIMUserId2.setTinyId(((Long)this.userIdToTinyId.get(localIMUserId1)).longValue());
paramList2.add(localIMUserId2);
paramList1.remove();
}
}
}
public void userIdToTinyId(List<IMUserId> paramList, IMUserIdListener paramIMUserIdListener)
{
Object localObject1 = IMMsfCoreProxy.get().getAnyOnLineMsfUserInfo();
if ((localObject1 == null) || (!((IMMsfUserInfo)localObject1).isLoggedIn()))
{
paramIMUserIdListener.onError(IMError.FAIL, "not logged in");
return;
}
ʾ localʾ = new ʾ(this, paramIMUserIdListener);
Object localObject2 = new ArrayList();
localʾ.setUserIdList((List)localObject2);
localUserIdToTinyId(paramList, (List)localObject2);
if (paramList.isEmpty())
{
paramList = ((List)localObject2).iterator();
while (paramList.hasNext())
{
localObject1 = (IMUserId)paramList.next();
QLog.d("MSF.C.UserIdToTinyId", 1, "local get userid: " + localObject1 + "|tinyid: " + ((IMUserId)localObject1).getTinyId());
}
paramIMUserIdListener.onSucc((List)localObject2);
return;
}
paramIMUserIdListener = new userid_to_tinyid.ReqBody();
paramList = paramList.iterator();
while (paramList.hasNext())
{
localObject2 = (IMUserId)paramList.next();
im_open_common.IMUserId localIMUserId = new im_open_common.IMUserId();
localIMUserId.uidtype.set(ByteStringMicro.copyFromUtf8(((IMUserId)localObject2).getUidType()));
localIMUserId.userappid.set(((IMUserId)localObject2).getUserAppId());
localIMUserId.userid.set(ByteStringMicro.copyFromUtf8(((IMUserId)localObject2).getUserId()));
paramIMUserIdListener.userid.add(localIMUserId);
}
IMMsfCoreProxy.get().request(((IMMsfUserInfo)localObject1).getUserId(), IMMsfCoreProxy.get().getSdkType() + ".pbuseridtotinyid", paramIMUserIdListener.toByteArray(), localʾ);
}
}
/* Location: E:\apk\dazhihui2\classes2-dex2jar.jar!\com\tencent\imsdk\userid\UserIdToTinyId.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
06d0c53cfdb6d54f906df31473f136484a10a920
|
774d36285e48bd429017b6901a59b8e3a51d6add
|
/sources/com/google/android/gms/internal/ads/zzbdv.java
|
a77a52dd0230e232675cdc8872fead1950e63a6e
|
[] |
no_license
|
jorge-luque/hb
|
83c086851a409e7e476298ffdf6ba0c8d06911db
|
b467a9af24164f7561057e5bcd19cdbc8647d2e5
|
refs/heads/master
| 2023-08-25T09:32:18.793176
| 2020-10-02T11:02:01
| 2020-10-02T11:02:01
| 300,586,541
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 590
|
java
|
package com.google.android.gms.internal.ads;
/* compiled from: com.google.android.gms:play-services-ads@@19.1.0 */
public final class zzbdv extends zzbdl {
public zzbdv(zzbbx zzbbx) {
super(zzbbx);
}
public final void abort() {
}
public final boolean zzfl(String str) {
zzbbx zzbbx = (zzbbx) this.zzego.get();
if (zzbbx != null) {
zzbbx.zza(zzfm(str), (zzbdl) this);
}
zzazw.zzfc("VideoStreamNoopCache is doing nothing.");
zza(str, zzfm(str), "noop", "Noop cache is a noop.");
return false;
}
}
|
[
"jorge.luque@taiger.com"
] |
jorge.luque@taiger.com
|
07432ad500cccdeb76b439dd419605e0f0cb650f
|
de76d31cb027eba7e8e569da7c37c1d33508f431
|
/src/generics/Erased.java
|
e25ea8c32b3c85224797c2c91e20abb466268e23
|
[] |
no_license
|
BingYu-track/Thinking-In-Java-Learning
|
83e4235c66b46e7a3525fc19bb0542f9688f331b
|
44da040a6ae50b634e793fc50ef97bdfcdbd1acf
|
refs/heads/master
| 2023-06-12T09:42:08.872559
| 2021-07-04T15:00:06
| 2021-07-04T15:00:06
| 122,946,178
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 706
|
java
|
package generics;
/**
* @version 1.0
* @Description: 擦除丢失了一些操作能力----任何在运行时需要知道确切类型信息的操作都将无法工作
* @author: hxw
* @date: 2018/10/9 8:01
*/
public class Erased<T> {
private final int SIZE = 100;
public static void f(Object arg) {
/*if(arg instanceof T) {} // Error 在这里使用instanceof报错,因为类型信息已经被擦除;但是我们可以引入类型标签转而使用动态的isInstance()方法来补偿
T var = new T(); // Error 无法创建泛型对象
T[] array = new T[SIZE]; // Error 无法创建泛型数组
T[] array = (T)new Object[SIZE]; // Unchecked warning*/
}
}
|
[
"525782303@qq.com"
] |
525782303@qq.com
|
8645d6577aa9bc87ee87972ac2a5e91d3725fbb6
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_17317.java
|
162bf8c33dace163bbc02b2652a611912922b613
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
@Override @SuppressWarnings("unchecked") public void onRemoved(Iterable<CacheEntryEvent<? extends K,? extends V>> events){
if (listener instanceof CacheEntryRemovedListener<?,?>) {
((CacheEntryRemovedListener<K,V>)listener).onRemoved(events);
}
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
cc2302fc08e1110987669bf55dc657d035cd36e9
|
50cde68afda968bf2a214462522f7000d146c270
|
/ejb-beans/src/main/java/com/isaccanedo/singletonbean/CountryState.java
|
43c9f7321a1632d8d7db5d4d06d2bf072e97d40e
|
[] |
no_license
|
isaccanedo/EJB-Set-up
|
cce59c77407de7198b2b23d2c022333c8e823856
|
747cd00f275a51526023384f84b109993c7982a5
|
refs/heads/master
| 2023-04-16T20:24:57.523423
| 2021-04-12T14:36:03
| 2021-04-12T14:36:03
| 357,222,558
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 251
|
java
|
package com.isaccanedo.singletonbean;
import java.util.List;
import javax.ejb.Local;
@Local
public interface CountryState {
public List<String> getStates(String country);
public void setStates(String country, List<String> states);
}
|
[
"isaccanedo@gmail.com"
] |
isaccanedo@gmail.com
|
785f235b2fbc5e14cb685f44f470689cd4aea92c
|
13dfd110df6cccc7ed5ce992ba5e7eadc56a42af
|
/sm-core-model/src/main/java/com/salesmanager/core/model/catalog/product/Pack.java
|
279a3f5ac1a17da6c67071af70399b338825ce5a
|
[] |
no_license
|
ajaytiwari000/Habbit
|
24ca9455f0200e648640079945a04b01918dac7b
|
1ccff760c0a17515748cdc7c9d133fae71b8d937
|
refs/heads/master
| 2023-03-21T11:32:26.708784
| 2021-03-12T07:38:02
| 2021-03-12T07:38:02
| 265,888,454
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,051
|
java
|
package com.salesmanager.core.model.catalog.product;
import com.salesmanager.core.constants.SchemaConstant;
import com.salesmanager.core.model.common.audit.AuditListener;
import com.salesmanager.core.model.common.audit.AuditSection;
import com.salesmanager.core.model.common.audit.Auditable;
import com.salesmanager.core.model.generic.SalesManagerEntity;
import javax.persistence.*;
@Entity
@EntityListeners(value = AuditListener.class)
@Table(
name = "PACK_SIZE",
schema = SchemaConstant.SALESMANAGER_SCHEMA,
uniqueConstraints = @UniqueConstraint(columnNames = {"PACK_ID"}))
public class Pack extends SalesManagerEntity<Long, Pack> implements Auditable {
private static final long serialVersionUID = 12304056009087L;
@Embedded private AuditSection auditSection = new AuditSection();
@Id
@Column(name = "PACK_ID", unique = true, nullable = false)
@TableGenerator(
name = "TABLE_GEN",
table = "SM_SEQUENCER",
pkColumnName = "SEQ_NAME",
valueColumnName = "SEQ_COUNT",
pkColumnValue = "PACK_SEQ_NEX_VAL")
@GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_GEN")
private Long id;
@Column(name = "PACK_VALUE", nullable = false, unique = true)
private String packSizeValue;
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE)
@JoinColumn(name = "PACK_ICON_ID", nullable = true, updatable = true)
private PackIcon packIcon;
public PackIcon getPackIcon() {
return packIcon;
}
public void setPackIcon(PackIcon packIcon) {
this.packIcon = packIcon;
}
@Override
public AuditSection getAuditSection() {
return auditSection;
}
@Override
public void setAuditSection(AuditSection auditSection) {
this.auditSection = auditSection;
}
@Override
public Long getId() {
return id;
}
@Override
public void setId(Long id) {
this.id = id;
}
public String getPackSizeValue() {
return packSizeValue;
}
public void setPackSizeValue(String packSizeValue) {
this.packSizeValue = packSizeValue;
}
}
|
[
"ajaytiwari000@gmail.com"
] |
ajaytiwari000@gmail.com
|
6d4d174ade2ac4693c955840868e2202cd39bdec
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/8/8_85cdac53245b142f0132370702c32b252b43fe62/Import/8_85cdac53245b142f0132370702c32b252b43fe62_Import_t.java
|
3d917ca21d75bf98b2d4e9018d80430128cfec34
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,935
|
java
|
/*--------------------------------------------------------------------------
* Copyright 2008 utgenome.org
*
* 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.
*--------------------------------------------------------------------------*/
//--------------------------------------
// utgb-shell Project
//
// Import.java
// Since: Jan 20, 2009
//
// $URL$
// $Author$
//--------------------------------------
package org.utgenome.shell;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Iterator;
import net.sf.samtools.SAMFileReader;
import net.sf.samtools.SAMFileWriter;
import net.sf.samtools.SAMFileWriterFactory;
import net.sf.samtools.SAMRecord;
import org.apache.tools.ant.util.ReaderInputStream;
import org.utgenome.format.bed.BEDDatabaseGenerator;
import org.utgenome.format.fasta.FASTA2Db;
import org.utgenome.format.silk.read.ReadDBBuilder;
import org.utgenome.format.wig.WIGDatabaseGenerator;
import org.xerial.util.log.Logger;
import org.xerial.util.opt.Argument;
import org.xerial.util.opt.Option;
/**
* import command
*
* @author leo
*
*/
// @Usage(command = "> utgb import", description = "import command")
public class Import extends UTGBShellCommand {
private static Logger _logger = Logger.getLogger(Import.class);
public static enum FileType {
AUTO, READ, BED, SAM, FASTA, WIG, UNKNOWN
}
@Option(symbol = "t", longName = "type", description = "specify the input file type: (AUTO, FASTA, READ, BED, WIG)")
private FileType fileType = FileType.AUTO;
@Argument(index = 0, required = false)
private String inputFilePath = null;
@Option(symbol = "d", description = "output directory. default = db")
private String outDir = "db";
@Option(symbol = "o", longName = "output", varName = "DB FILE NAME", description = "output SQLite DB file name")
private String outputFileName;
@Option(symbol = "w", longName = "overwrite", description = "overwrite existing DB files")
private boolean overwriteDB = false;
@Override
public void execute(String[] args) throws Exception {
File input = null;
Reader in = null;
if (inputFilePath == null) {
_logger.info("use STDIN for the input");
in = new InputStreamReader(System.in);
}
else {
_logger.info("input file: " + inputFilePath);
input = new File(inputFilePath);
if (!input.exists())
throw new UTGBShellException("file not found: " + inputFilePath);
in = new BufferedReader(new FileReader(input));
}
if (fileType == FileType.AUTO)
fileType = detectFileType(inputFilePath);
_logger.info("file type: " + fileType);
if (outputFileName == null) {
// new File("db").mkdirs();
String inputName = inputFilePath == null ? "out" : inputFilePath;
if (fileType == FileType.SAM) {
outputFileName = org.xerial.util.FileType.replaceFileExt(inputName, "bam");
}
else {
outputFileName = String.format("%s.sqlite", inputName);
}
int count = 1;
if (!overwriteDB) {
while (new File(outputFileName).exists()) {
if (fileType == FileType.SAM) {
outputFileName = org.xerial.util.FileType.replaceFileExt(inputName, String.format("%d.bam", count));
}
else {
outputFileName = String.format("%s.%d.sqlite", inputName, count);
}
count++;
}
}
}
_logger.info("output file: " + outputFileName);
switch (fileType) {
case READ: {
ReadDBBuilder builder = new ReadDBBuilder(outputFileName);
builder.build(in);
break;
}
case BED: {
BEDDatabaseGenerator.toSQLiteDB(in, outputFileName);
break;
}
case FASTA:
if (input != null)
FASTA2Db.main(new String[] { inputFilePath, "-o", outputFileName });
else
FASTA2Db.main(new String[] { "-o", outputFileName });
break;
case WIG:
WIGDatabaseGenerator.toSQLiteDB(in, outputFileName);
break;
case SAM: {
_logger.info("creating BAM and BAI files from SAM.");
SAMFileReader reader = new SAMFileReader(new ReaderInputStream(in));
String bamOut = outputFileName;
if (!bamOut.endsWith(".bam"))
bamOut += ".bam";
_logger.info("output BAM: " + bamOut);
final SAMFileWriter writer = new SAMFileWriterFactory().makeBAMWriter(reader.getFileHeader(), true, new File(bamOut));
final Iterator<SAMRecord> iterator = reader.iterator();
while (iterator.hasNext()) {
writer.addAlignment(iterator.next());
}
reader.close();
writer.close();
}
break;
case UNKNOWN:
default: {
_logger.warn("specify the input file type with -t option. Type utgb import --help to see the list of the supported file types");
break;
}
}
}
public static FileType detectFileType(String fileName) {
if (fileName == null)
return FileType.UNKNOWN;
if (fileName.endsWith(".fa") || fileName.endsWith(".fasta"))
return FileType.FASTA;
else if (fileName.endsWith(".bed"))
return FileType.BED;
else if (fileName.endsWith(".wig"))
return FileType.WIG;
else if (fileName.endsWith(".sam"))
return FileType.SAM;
return FileType.AUTO;
}
@Override
public String name() {
return "import";
}
@Override
public String getOneLinerDescription() {
return "import a file and create a new database";
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
3236de1eb0b3424994600c1b21c932167737547b
|
5ec14f78722de7786e0fff100101ef7d670a70a9
|
/src/main/java/net/minecraft/advancements/ICriterionTrigger.java
|
f372e405b2f83b56e118a7311d107189e37fd55c
|
[
"MIT"
] |
permissive
|
CBM1014/AkarinForge
|
2a0af52c99853455cdb5c0968a0ff502bdcaba88
|
bcfc57de2149c841b1a1514fd22cdb8e77a9d1b8
|
refs/heads/master
| 2020-03-21T09:28:59.891983
| 2018-06-23T12:52:51
| 2018-06-23T12:52:51
| 138,401,937
| 1
| 0
|
MIT
| 2018-06-23T13:09:30
| 2018-06-23T13:09:30
| null |
UTF-8
|
Java
| false
| false
| 2,570
|
java
|
package net.minecraft.advancements;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonObject;
import net.minecraft.util.ResourceLocation;
public interface ICriterionTrigger<T extends ICriterionInstance>
{
ResourceLocation func_192163_a();
void func_192165_a(PlayerAdvancements p_192165_1_, ICriterionTrigger.Listener<T> p_192165_2_);
void func_192164_b(PlayerAdvancements p_192164_1_, ICriterionTrigger.Listener<T> p_192164_2_);
void func_192167_a(PlayerAdvancements p_192167_1_);
T func_192166_a(JsonObject p_192166_1_, JsonDeserializationContext p_192166_2_);
public static class Listener<T extends ICriterionInstance>
{
private final T field_192160_a;
private final Advancement field_192161_b;
private final String field_192162_c;
public Listener(T p_i47405_1_, Advancement p_i47405_2_, String p_i47405_3_)
{
this.field_192160_a = p_i47405_1_;
this.field_192161_b = p_i47405_2_;
this.field_192162_c = p_i47405_3_;
}
public T func_192158_a()
{
return this.field_192160_a;
}
public void func_192159_a(PlayerAdvancements p_192159_1_)
{
p_192159_1_.func_192750_a(this.field_192161_b, this.field_192162_c);
}
public boolean equals(Object p_equals_1_)
{
if (this == p_equals_1_)
{
return true;
}
else if (p_equals_1_ != null && this.getClass() == p_equals_1_.getClass())
{
ICriterionTrigger.Listener<?> listener = (ICriterionTrigger.Listener)p_equals_1_;
if (!this.field_192160_a.equals(listener.field_192160_a))
{
return false;
}
else
{
return !this.field_192161_b.equals(listener.field_192161_b) ? false : this.field_192162_c.equals(listener.field_192162_c);
}
}
else
{
return false;
}
}
public int hashCode()
{
int i = this.field_192160_a.hashCode();
i = 31 * i + this.field_192161_b.hashCode();
i = 31 * i + this.field_192162_c.hashCode();
return i;
}
}
}
|
[
"i@omc.hk"
] |
i@omc.hk
|
be21698b245133f4409a1f9873435d6232cedcd5
|
7dbbe21b902fe362701d53714a6a736d86c451d7
|
/BzenStudio-5.6/Source/com/zend/ide/o/b/c.java
|
009f43d3d7bfa689e61de984d5e653d533405386
|
[] |
no_license
|
HS-matty/dev
|
51a53b4fd03ae01981549149433d5091462c65d0
|
576499588e47e01967f0c69cbac238065062da9b
|
refs/heads/master
| 2022-05-05T18:32:24.148716
| 2022-03-20T16:55:28
| 2022-03-20T16:55:28
| 196,147,486
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 325
|
java
|
package com.zend.ide.o.b;
public class c extends a
{
public void b(String paramString, int paramInt)
{
a(paramString, paramInt, "&local=1&start_profile=1");
}
}
/* Location: C:\Program Files\Zend\ZendStudio-5.5.1\bin\ZendIDE.jar
* Qualified Name: com.zend.ide.o.b.c
* JD-Core Version: 0.6.0
*/
|
[
"byqdes@gmail.com"
] |
byqdes@gmail.com
|
df05651be8716e1683df2047b19ee686f2822861
|
b0d7ca2e5f19a4676c903b70d526e3e8080ea0e3
|
/src/main/java/br/ufpa/labes/spm/repository/impl/plannerInfo/AgentInstSuggestionToAgentDAO.java
|
41149a99d23b7172674ad285f54eed143e774ade
|
[] |
no_license
|
Lakshamana/spm
|
366f425e66d40a50c1248eb47a677315639555df
|
ba98a47557f196fa1429670e52549c188bbf00a1
|
refs/heads/master
| 2022-12-25T08:58:03.366441
| 2019-10-03T15:04:16
| 2019-10-03T15:04:16
| 170,921,469
| 0
| 0
| null | 2022-12-16T05:03:13
| 2019-02-15T20:03:02
|
Java
|
UTF-8
|
Java
| false
| false
| 621
|
java
|
package br.ufpa.labes.spm.repository.impl.plannerInfo;
import br.ufpa.labes.spm.repository.impl.BaseDAO;
import br.ufpa.labes.spm.repository.interfaces.plannerInfo.IAgentInstSuggestionToAgentDAO;
import br.ufpa.labes.spm.domain.AgentInstSuggestionToAgent;
public class AgentInstSuggestionToAgentDAO extends BaseDAO<AgentInstSuggestionToAgent, Integer>
implements IAgentInstSuggestionToAgentDAO {
protected AgentInstSuggestionToAgentDAO(Class<AgentInstSuggestionToAgent> businessClass) {
super(businessClass);
}
public AgentInstSuggestionToAgentDAO() {
super(AgentInstSuggestionToAgent.class);
}
}
|
[
"guitrompa1@gmail.com"
] |
guitrompa1@gmail.com
|
6f21127483fba2357204caacd14113aef0b42513
|
4539931b9ef3ebecdabb18b59ea9be672f70a38d
|
/app/src/main/java/marc/com/viewadavanced/view/WaveBezier.java
|
722e20939269170ebb04415606e6752b06edd26a
|
[] |
no_license
|
broderickwang/ViewAdavanced
|
58f4f8cea1a8f546d165e08e1c080f9508f38c4a
|
93866e3c0e8ff9933b6c11a40a837edf14da36c9
|
refs/heads/master
| 2021-01-15T18:26:43.839421
| 2017-08-25T09:21:25
| 2017-08-25T09:21:25
| 99,784,918
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,685
|
java
|
package marc.com.viewadavanced.view;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.support.annotation.ColorRes;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.LinearInterpolator;
/**
* Created by 王成达
* Date: 2017/8/11
* Time: 11:26
* Version: 1.0
* Description:波浪视图
* Email:wangchengda1990@gmail.com
**/
public class WaveBezier extends View implements View.OnClickListener {
private Paint mPaint;
private Path mPath;
private int mWaveLength = 1000;
private int mOffset;
private int mScreenHeight;
private int mScreenWidth;
private int mWaveCount;
private int mCenterY;
public WaveBezier(Context context) {
super(context);
}
public WaveBezier(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
public WaveBezier(Context context, AttributeSet attrs) {
super(context, attrs);
mPath = new Path();
mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mPaint.setColor(Color.LTGRAY);
mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
setOnClickListener(this);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mScreenHeight = h;
mScreenWidth = w;
mWaveCount = (int) Math.round(mScreenWidth / mWaveLength + 1.5);
mCenterY = mScreenHeight / 2;
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
mPath.reset();
mPath.moveTo(-mWaveLength + mOffset, mCenterY);
for (int i = 0; i < mWaveCount; i++) {
// + (i * mWaveLength)
// + mOffset
mPath.quadTo((-mWaveLength * 3 / 4) + (i * mWaveLength) + mOffset, mCenterY + 60, (-mWaveLength / 2) + (i * mWaveLength) + mOffset, mCenterY);
mPath.quadTo((-mWaveLength / 4) + (i * mWaveLength) + mOffset, mCenterY - 60, i * mWaveLength + mOffset, mCenterY);
}
mPath.lineTo(mScreenWidth, mScreenHeight);
mPath.lineTo(0, mScreenHeight);
mPath.close();
canvas.drawPath(mPath, mPaint);
}
@Override
public void onClick(View view) {
ValueAnimator animator = ValueAnimator.ofInt(0, mWaveLength);
animator.setDuration(1000);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setInterpolator(new LinearInterpolator());
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
mOffset = (int) animation.getAnimatedValue();
postInvalidate();
}
});
animator.start();
}
}
|
[
"wangchengda1990@gmail.com"
] |
wangchengda1990@gmail.com
|
c3e4998870be1e4035c59c7360bf76f245f72f7c
|
1c99931e81886ebecb758d68003f22e072951ff9
|
/alipay/api/domain/ItemInfo.java
|
f949c72211c73c5af50f8153e72169e198220f4a
|
[] |
no_license
|
futurelive/vscode
|
f402e497933c12826ef73abb14506aab3c541c98
|
9f8d1da984cf4f9f330af2b75ddb21a7fff00eb9
|
refs/heads/master
| 2020-04-08T06:30:13.208537
| 2018-11-26T07:09:55
| 2018-11-26T07:09:55
| 159,099,314
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,766
|
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, 2017-11-23 10:24:01
*/
public class ItemInfo extends AlipayObject {
private static final long serialVersionUID = 8341353543463251595L;
/**
* 券适用的单品码列表
最少配置1个单品码
最多配置500个单品码
*/
@ApiListField("item_ids")
@ApiField("string")
private List<String> itemIds;
/**
* 单品图片列表
单品图片不能超过3张
*/
@ApiListField("item_imgs")
@ApiField("string")
private List<String> itemImgs;
/**
* 单品券详细介绍跳转链接
*/
@ApiField("item_link")
private String itemLink;
/**
* 单品名称
*/
@ApiField("item_name")
private String itemName;
/**
* 单品券说明
*/
@ApiField("item_text")
private String itemText;
/**
* 单品券适用的商品列表中,每一个商品最高可享受优惠的件数;
如:券适用于A,B两种商品,该字段设置为1,则用券A,B两种商品每种最多只有一件可享受优惠;
*/
@ApiField("max_discount_num")
private String maxDiscountNum;
/**
* 单品券适用商品列表中,每种商品享受优惠最低购买件数的门槛;
如:券适用于A,B两种商品,该字段设置为3,则A,B两种商品每种最少需要购买3件才可享受优惠;
*/
@ApiField("min_consume_num")
private String minConsumeNum;
/**
* 单品的原价,单位元
必须为合法金额类型字符串,如9.99
*/
@ApiField("original_price")
private String originalPrice;
/**
* 券适用SKU的最低消费金额门槛
如券适用A,B两个SKU,该字段设置的值为100,则订单中购买A,B两个SKU的合计金额需大于100元才可用券
*/
@ApiField("sku_min_consume")
private String skuMinConsume;
/**
* 如果一个单品券适用A,B,C三个单品,若设置了该字段为2,则在一笔交易中,A,B,C三个单品加起来最多只有俩件能够享受优惠
*/
@ApiField("total_max_discount_num")
private String totalMaxDiscountNum;
public List<String> getItemIds() {
return this.itemIds;
}
public void setItemIds(List<String> itemIds) {
this.itemIds = itemIds;
}
public List<String> getItemImgs() {
return this.itemImgs;
}
public void setItemImgs(List<String> itemImgs) {
this.itemImgs = itemImgs;
}
public String getItemLink() {
return this.itemLink;
}
public void setItemLink(String itemLink) {
this.itemLink = itemLink;
}
public String getItemName() {
return this.itemName;
}
public void setItemName(String itemName) {
this.itemName = itemName;
}
public String getItemText() {
return this.itemText;
}
public void setItemText(String itemText) {
this.itemText = itemText;
}
public String getMaxDiscountNum() {
return this.maxDiscountNum;
}
public void setMaxDiscountNum(String maxDiscountNum) {
this.maxDiscountNum = maxDiscountNum;
}
public String getMinConsumeNum() {
return this.minConsumeNum;
}
public void setMinConsumeNum(String minConsumeNum) {
this.minConsumeNum = minConsumeNum;
}
public String getOriginalPrice() {
return this.originalPrice;
}
public void setOriginalPrice(String originalPrice) {
this.originalPrice = originalPrice;
}
public String getSkuMinConsume() {
return this.skuMinConsume;
}
public void setSkuMinConsume(String skuMinConsume) {
this.skuMinConsume = skuMinConsume;
}
public String getTotalMaxDiscountNum() {
return this.totalMaxDiscountNum;
}
public void setTotalMaxDiscountNum(String totalMaxDiscountNum) {
this.totalMaxDiscountNum = totalMaxDiscountNum;
}
}
|
[
"1052418627@qq.com"
] |
1052418627@qq.com
|
7f96ca5f018e5cba706b510fc405f51f886bd694
|
12ac90c71a646511fe50ee0589caed73ab4dc544
|
/QuickAdapter/adapter/src/main/java/com/heaven7/adapter/applier/BackgroundColorViewApplier.java
|
cdf6b87282422978c80db33ed8ec5301c4a6f5de
|
[
"Apache-2.0"
] |
permissive
|
LightSun/android-common-util-light
|
828269bdd22258c9ca21a933ca5a3bef2eb9147e
|
6008027bc211f581930ae16a77383c5db3095f9e
|
refs/heads/master
| 2020-04-04T07:14:47.471760
| 2019-05-16T11:57:29
| 2019-05-16T11:57:29
| 52,590,493
| 14
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package com.heaven7.adapter.applier;
import android.content.Context;
import android.view.View;
import com.heaven7.adapter.ISelectable;
import com.heaven7.adapter.RecycleViewComponentsAdapter;
/**
* Created by heaven7 on 2019/3/11.
* @since 2.0.0
*/
public class BackgroundColorViewApplier extends BaseViewApplier implements RecycleViewComponentsAdapter.TwoStateApplier {
private final int selectColor;
private final int unselectColor;
public BackgroundColorViewApplier(int id, int selectColor, int unselectColor) {
super(id);
this.selectColor = selectColor;
this.unselectColor = unselectColor;
}
@Override
protected void apply(Context context, Object contextData, int position, ISelectable item, View view) {
view.setBackgroundColor(item.isSelected() ? selectColor : unselectColor);
}
}
|
[
"978136772@qq.com"
] |
978136772@qq.com
|
5c4d1e74839660f41fc54d4a0ed01ce886c44ffb
|
9534f9a0b1bb443d853e77250f6265dc5f3c5a0a
|
/src/main/java/com/yqc/math/integer/BigIntegerDemo2.java
|
0db2346e7908d3560ef796837f0c882e719ba71e
|
[] |
no_license
|
arsenal-ac/java-basic
|
48a2a8a5eddd9956625a57b6820102aafc7ad734
|
2aece800b5008b58f0d33d8f293a755b2849b296
|
refs/heads/master
| 2020-12-30T13:27:55.621179
| 2018-04-22T10:46:40
| 2018-04-22T10:46:40
| 91,216,861
| 0
| 2
| null | 2017-05-14T03:33:55
| 2017-05-14T03:15:58
|
Java
|
UTF-8
|
Java
| false
| false
| 938
|
java
|
package com.yqc.math.integer;
import java.math.BigInteger;
/*
* public BigInteger add(BigInteger val); ��
* public BigInteger subtract(BigInteger val); ��
* public BigInteger multiply(BigInteger val); ��
* public BigInteger divide(BigInteger val); ��
* public BigInteger[] divideAndRemainder(BigInteger val)
* �����̺�����������
* 2015.10.2
*/
public class BigIntegerDemo2 {
public static void main(String[] args) {
BigInteger big1=new BigInteger("100");
BigInteger big2=new BigInteger("90");
System.out.println("add:"+big1.add(big2));
System.out.println("dubtract:"+big1.subtract(big2));
System.out.println("multiple:"+big1.multiply(big2));
System.out.println("divide:"+big1.divide(big2)); //����ֻ����
BigInteger[] bis=big1.divideAndRemainder(big2);
System.out.println("��:"+bis[0]);
System.out.println("����:"+bis[1]);
}
}
|
[
"yangqc_ars@outlook.com"
] |
yangqc_ars@outlook.com
|
14f32473e177635a20425b8c9ece41e94e73e073
|
fcf8139123133dec8cdd344d12e2dc778cd706fc
|
/src/com/avrgaming/civcraft/object/BuffManager.java
|
50875fe57ce5d0e238d7f39bc376038140fdacdf
|
[] |
no_license
|
YourCoal/phase3beta-check
|
ae689c17a0f5075b3b2e10eb2f8006b826b66135
|
470b858ded994cd6161dd51cc95c1629f087e503
|
refs/heads/master
| 2021-01-20T20:45:07.179785
| 2016-06-25T23:52:11
| 2016-06-25T23:52:11
| 61,965,954
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,564
|
java
|
/*************************************************************************
*
* AVRGAMING LLC
* __________________
*
* [2013] AVRGAMING LLC
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of AVRGAMING LLC and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to AVRGAMING LLC
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from AVRGAMING LLC.
*/
package com.civcraft.object;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import com.civcraft.exception.CivException;
import com.civcraft.main.CivLog;
public class BuffManager {
/*
* Contains a list of buffs currently active for this 'object'(town, or wonder)
* it will manage which goods stack with which and provide easy
* access functions to the amounts from each bonus and totals.
*/
/* Contains _all_ of the buffs attached to us. */
private HashMap<String, Buff> buffs = new HashMap<String, Buff>();
/* Contains the _effective_ buffs attached to us, taking stacking into account. */
private HashMap<String, Buff> effectiveBuffs = new HashMap<String, Buff>();
public void clearBuffs() {
synchronized(this) {
buffs.clear();
effectiveBuffs.clear();
}
}
private boolean hasBuffId(String id, HashMap<String, Buff> map) {
for (Buff buff : map.values()) {
if (buff.getId().equals(id)) {
return true;
}
}
return false;
}
/* Adds a buff to this collection. */
public void addBuff(String buffkey, String buff_id, String source) throws CivException {
synchronized(this) {
if (buffs.containsKey(buffkey)) {
throw new CivException("Already contains buff key:"+buffkey);
}
Buff buff = new Buff(buffkey, buff_id, source);
buffs.put(buff.getKey(), buff);
if (buff.isStackable() || !hasBuffId(buff_id, effectiveBuffs)) {
effectiveBuffs.put(buff.getKey(), buff);
}
}
}
/* Removes a buff from this collection. */
public void removeBuff(String buff_key) {
buffs.remove(buff_key);
effectiveBuffs.remove(buff_key);
}
public Collection<Buff> getEffectiveBuffs() {
return effectiveBuffs.values();
}
public Collection<Buff> getEffectiveBuffs(String buff_id) {
ArrayList<Buff> returnList = new ArrayList<Buff>();
synchronized(this) {
for (Buff buff : effectiveBuffs.values()) {
if (buff.getParent().equals(buff_id)) {
returnList.add(buff);
}
}
}
return returnList;
}
/*
* searches for any buff who's parent matches this id.
* Buffs with no parent get it set to it's own id when loaded in.
* This allows us to have multiple levels of buffs e.g. buff_monopoly_2
* whose parent is set to buff_monopoly so that it will act like a normal
* monopoly buff with a different value.
*/
public double getEffectiveDouble(String buff_id) {
double ret = 0.0;
synchronized(this) {
for (Buff buff : effectiveBuffs.values()) {
if (buff.getParent().equals(buff_id)) {
ret += Double.valueOf(buff.getValue());
}
}
}
return ret;
}
public int getEffectiveInt(String buff_id) {
int ret = 0;
synchronized(this) {
for (Buff buff : effectiveBuffs.values()) {
if (buff.getParent().equals(buff_id)) {
ret += Integer.valueOf(buff.getValue());
}
}
}
return ret;
}
/* Gets the value of the first buff it finds with buff id. */
public String getValue(String buff_id) {
synchronized(this) {
for (Buff buff : effectiveBuffs.values()) {
if (buff.getParent().equals(buff_id)) {
return buff.getValue();
}
}
}
return null;
}
public void debugPrint() {
String out = "";
for (Buff buff : buffs.values()) {
out += "key:"+buff.getKey()+" id:"+buff.getId()+" source:"+buff.getSource()+",";
}
out = "";
for (Buff buff : effectiveBuffs.values()) {
out += "key:"+buff.getKey()+" id:"+buff.getId()+" source:"+buff.getSource()+",";
}
CivLog.info(out);
}
public boolean hasBuff(String id) {
for (Buff buff : buffs.values()) {
if (buff.getId().equals(id) || buff.getParent().equals(id)) {
return true;
}
}
return false;
}
public Collection<Buff> getAllBuffs() {
return this.buffs.values();
}
public boolean hasBuffKey(String key) {
return buffs.containsKey(key);
}
}
|
[
"yourcoal5446@gmail.com"
] |
yourcoal5446@gmail.com
|
8e7ac774d3bf3e2e2f65f4ab80e1ed1b3b50ca3b
|
2134b10210af35e728799cb37c695b7167d537ad
|
/client-autoupdate/src/bean/step/DelayStep.java
|
a8ba2b23cd17655c5e1d0630efd401c9d355499f
|
[] |
no_license
|
rusteer/plugin
|
c1e9a6f46f61b1b5a5f5d149ab2dee272df02403
|
9268d8744d5b085d89b1e562c7923c92757b95e5
|
refs/heads/master
| 2020-12-24T05:20:53.595288
| 2016-08-04T08:17:33
| 2016-08-04T08:17:33
| 61,505,486
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 555
|
java
|
package bean.step;
import org.json.JSONException;
import org.json.JSONObject;
import bean.Step;
public class DelayStep extends Step {
public int delayTime;
public DelayStep() {
super();
actionId = Step.DELAY;
}
@Override
protected void init(JSONObject obj) {
super.init(obj);
delayTime = obj.optInt("o1");
}
@Override
public JSONObject toJson() throws JSONException {
JSONObject obj = super.toJson();
if (delayTime > 0) obj.put("o1", delayTime);
return obj;
}
}
|
[
"rusteer@outlook.com"
] |
rusteer@outlook.com
|
5956ce37e63574ac66ab9c3b25ac8c415db0e764
|
04b1803adb6653ecb7cb827c4f4aa616afacf629
|
/chrome/android/features/media_router/junit/src/org/chromium/chrome/browser/media/router/caf/ShadowCastContext.java
|
b154aa8c1f4597e6d437d53f86073b0f58ec2b84
|
[
"BSD-3-Clause"
] |
permissive
|
Samsung/Castanets
|
240d9338e097b75b3f669604315b06f7cf129d64
|
4896f732fc747dfdcfcbac3d442f2d2d42df264a
|
refs/heads/castanets_76_dev
| 2023-08-31T09:01:04.744346
| 2021-07-30T04:56:25
| 2021-08-11T05:45:21
| 125,484,161
| 58
| 49
|
BSD-3-Clause
| 2022-10-16T19:31:26
| 2018-03-16T08:07:37
| null |
UTF-8
|
Java
| false
| false
| 773
|
java
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.media.router.caf;
import android.content.Context;
import com.google.android.gms.cast.framework.CastContext;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/** Shadow for {@link CastContext}. */
@Implements(CastContext.class)
public class ShadowCastContext {
private static CastContext sInstance;
@Implementation
public static CastContext getSharedInstance(Context context) {
return sInstance;
}
public static void setInstance(CastContext instance) {
sInstance = instance;
}
}
|
[
"sunny.nam@samsung.com"
] |
sunny.nam@samsung.com
|
3271e82aca554cc76849808a215de163dd362578
|
89ce74f7132847612aded67ff6468cb5d6a15112
|
/src/test/java/j7orm/test/entity/BrandEntity.java
|
9f7a5092ea68ea74f37f7679ccd96be7552b41a6
|
[
"Apache-2.0"
] |
permissive
|
marcoromagnolo/j7ORM
|
3e1d31825a09d04869799e7b7fc624546269d7f2
|
ffb508bf27bc63676c850e56f172a66de9d186b0
|
refs/heads/master
| 2021-05-10T09:21:45.891379
| 2018-01-25T14:27:56
| 2018-01-25T14:27:56
| 118,923,452
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 893
|
java
|
/**
* Copyright 2016 Marco Romagnolo
*
* 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 j7orm.test.entity;
import j7orm.Entity;
import j7orm.test.table.BrandTable;
/**
* @author Marco Romagnolo
*/
public class BrandEntity extends BrandTable implements Entity {
@Override
public String toString() {
return "BrandEntity{} " + super.toString();
}
}
|
[
"mail@marcoromagnolo.it"
] |
mail@marcoromagnolo.it
|
85cce6436295cf819ecb7e386ccda0d37d216199
|
4be72dee04ebb3f70d6e342aeb01467e7e8b3129
|
/bin/ext-accelerator/acceleratorfacades/src/de/hybris/platform/acceleratorfacades/payment/PaymentFacade.java
|
f658b7c25f35bb7cb4c715d4aae566eed338c05f
|
[] |
no_license
|
lun130220/hybris
|
da00774767ba6246d04cdcbc49d87f0f4b0b1b26
|
03c074ea76779f96f2db7efcdaa0b0538d1ce917
|
refs/heads/master
| 2021-05-14T01:48:42.351698
| 2018-01-07T07:21:53
| 2018-01-07T07:21:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,618
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2015 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with hybris.
*
*
*/
package de.hybris.platform.acceleratorfacades.payment;
import de.hybris.platform.acceleratorservices.payment.data.HostedOrderPageRequest;
import de.hybris.platform.acceleratorservices.payment.data.PaymentData;
import de.hybris.platform.acceleratorfacades.payment.data.PaymentSubscriptionResultData;
import de.hybris.platform.commercefacades.order.data.CCPaymentInfoData;
import java.util.Map;
/**
* HOP/SOP facade interface. Service is responsible for getting all necessary information required to build
* request and .. response from the implemented hosted order page or silent order post provider.
*/
public interface PaymentFacade
{
/**
* Gets the Hosted Order Page request data which includes all data required to create a
* subscription (customer profile).
*
* @param responseUrl
* - requires a {@link HostedOrderPageRequest} object containing all the request data.
* @param merchantCallbackUrl
- The URL of the MerchantCallbackController used by the Provider to send validation responses.
* @return a {@link PaymentData} object which contains all data required to create a subscription.
*/
PaymentData beginHopCreateSubscription(String responseUrl, String merchantCallbackUrl);
/**
* Gets the Silent Order Post request data which includes all data required to create a
* subscription (customer profile).
*
* @param responseUrl
* - requires a {@link HostedOrderPageRequest} object containing all the request data.
* @param merchantCallbackUrl
- The URL of the MerchantCallbackController used by the Provider to send validation responses.
* @return a {@link PaymentData} object which contains all data required to create a subscription.
*/
PaymentData beginSopCreateSubscription(String responseUrl, String merchantCallbackUrl);
/**
* Called to create a subscription internally with the result parameters obtained from the provider's Hosted Order
* Page.
*
* @param parameters
* - a Map of key-value paired Strings with the result data returned from the HOP/SOP response.
* @param saveInAccount
* - a Flag to tell if the PaymentInfo created should saved to the account. During guest checkout the
* Anonymous user should not hav the PaymentInfos assigned
* @return - a {@link CCPaymentInfoData} object representing the subscription created by the HOP/SOP response.
*/
PaymentSubscriptionResultData completeHopCreateSubscription(Map<String, String> parameters, boolean saveInAccount);
/**
* Called to create a subscription internally with the result parameters obtained from the provider's Silent Order
* Post.
*
* @param parameters
* - a Map of key-value paired Strings with the result data returned from the HOP/SOP response.
* @param saveInAccount
* - a Flag to tell if the PaymentInfo created should saved to the account. During guest checkout the
* Anonymous user should not hav the PaymentInfos assigned
* @return - a {@link CCPaymentInfoData} object representing the subscription created by the HOP/SOP response.
*/
PaymentSubscriptionResultData completeSopCreateSubscription(Map<String, String> parameters, boolean saveInAccount);
}
|
[
"lun130220@gamil.com"
] |
lun130220@gamil.com
|
0f7733bed04d58a2187328fe7146d9f53da4f61e
|
e67d2ea298784488581dca23b3d20b8020093f4a
|
/core/src/com/lc/game/Scene/scenes/Trough.java
|
2f5c503b6e632639c09b3a51c0681926790e5d67
|
[] |
no_license
|
bentubox/Liar-s_Christmas
|
17f9fb9a557bad137debaaa92df16e0fdfb5afb8
|
4f2335110088198fa1e1c2df01562d7e8bdfdc50
|
refs/heads/master
| 2021-08-17T08:18:06.897954
| 2017-11-21T00:22:25
| 2017-11-21T00:22:25
| 104,020,335
| 0
| 1
| null | 2017-11-21T00:22:26
| 2017-09-19T03:12:49
|
Java
|
UTF-8
|
Java
| false
| false
| 459
|
java
|
package com.lc.game.Scene.scenes;
import com.badlogic.gdx.assets.AssetManager;
import com.lc.game.AssetList;
import com.lc.game.Event.AEvent;
import com.lc.game.Scene.Scene;
public class Trough extends Scene {
final static String backdrop = AssetList.SCENETROUGH.toString();
public Trough(AssetManager assetManager) {
super(assetManager, backdrop);
}
@Override
public void init() {
addEvent(new AEvent[]{
});
}
}
|
[
"donpommelo@gmail"
] |
donpommelo@gmail
|
a3dab068ea1f4b4ca330802fac4e19781d51cb02
|
bdada8dd2fee5ed621fb4663adf2ae91edf7f390
|
/xc-gl/src/main/java/com/xzsoft/xc/gl/modal/VHead.java
|
6d947572465261e8a123356fb0dd5796fa8541c5
|
[] |
no_license
|
yl23250/xc
|
abaf7dbbdf1ec3b32abe16a1aeca19ee29568387
|
47877dc79e8ea8947f526bb21a1242cae5d70dd8
|
refs/heads/master
| 2020-09-16T20:49:54.040706
| 2018-06-23T13:25:56
| 2018-06-23T13:25:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,434
|
java
|
package com.xzsoft.xc.gl.modal;
import java.util.Date;
import java.util.List;
/**
* @ClassName: VHead
* @Description: 凭证头信息
* @author linp
* @date 2016年3月1日 下午1:30:08
*
*/
public class VHead {
private String headId ; // 凭证头ID
private String ledgerId ; // 账簿ID
private String ledgerCode ; // 账簿编码
private String hrcyId ; // 会计科目体系
private String periodCode ; // 会计期
private String categoryId ; // 凭证分类
private String categoryCode ; // 凭证分类编码
private String srcCode ; // 来源编码
private String srcId ; // 来源ID
private String serialNum ; // 凭证号
private int attchTotal ; // 附件数
private String verifierId ; // 审核人ID
private String verifier; // 审核人
private Date verifyDate ; // 审核日期
private String isSigned ; // 是否需要签字
private String signatoryId ; // 签字人ID
private String signatory ; // 签字人
private Date signDate ; // 签字日期
private String bookkeeperId ; // 记账人ID
private String bookkeeper ; // 记账人
private Date bookDate ; // 记账日期
private String isWriteOff ; // 是否冲销
private String writeOffNum ; // 冲销凭证号
private double totalDR ; // 借方合计数
private double totalCR ; // 贷方合计数
private String summary ; // 摘要
private String templateType ; // 凭证模板分类
private String vStatus ; // 凭证状态
private String sumFlag ; // 是否汇总
private String optype; // 操作模式
private List<VLine> lines ; // 凭证分录行
private List<VLine> addLines ; // 新增分录行
private List<VLine> updLines ; // 更新分录行
private List<String> delLines ; // 删除分录行
private List<Account> accList ; // 账簿会计科目信息
private List<String> accIdList; // 账簿会计科目ID列表信息
private Date creationDate ; // 制单日期
private String createdBy ; // 制单人ID
private String createdName ; // 制单人
private Date lastUpdateDate ; // 最后更新日期
private String lastUpdatedBy ; // 最后更新人
private Date synchronizeDate ;
private String tdr ;
private String tcr ;
public String getTdr() {
return tdr;
}
public void setTdr(String tdr) {
this.tdr = tdr;
}
public String getTcr() {
return tcr;
}
public void setTcr(String tcr) {
this.tcr = tcr;
}
public String getHeadId() {
return headId;
}
public void setHeadId(String headId) {
this.headId = headId;
}
public String getLedgerId() {
return ledgerId;
}
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId;
}
public String getLedgerCode() {
return ledgerCode;
}
public void setLedgerCode(String ledgerCode) {
this.ledgerCode = ledgerCode;
}
public String getHrcyId() {
return hrcyId;
}
public void setHrcyId(String hrcyId) {
this.hrcyId = hrcyId;
}
public String getPeriodCode() {
return periodCode;
}
public void setPeriodCode(String periodCode) {
this.periodCode = periodCode;
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public String getCategoryCode() {
return categoryCode;
}
public void setCategoryCode(String categoryCode) {
this.categoryCode = categoryCode;
}
public String getSrcCode() {
return srcCode;
}
public void setSrcCode(String srcCode) {
this.srcCode = srcCode;
}
public String getSrcId() {
return srcId;
}
public void setSrcId(String srcId) {
this.srcId = srcId;
}
public String getSerialNum() {
return serialNum;
}
public void setSerialNum(String serialNum) {
this.serialNum = serialNum;
}
public int getAttchTotal() {
return attchTotal;
}
public void setAttchTotal(int attchTotal) {
this.attchTotal = attchTotal;
}
public String getVerifierId() {
return verifierId;
}
public void setVerifierId(String verifierId) {
this.verifierId = verifierId;
}
public String getVerifier() {
return verifier;
}
public void setVerifier(String verifier) {
this.verifier = verifier;
}
public Date getVerifyDate() {
return verifyDate;
}
public void setVerifyDate(Date verifyDate) {
this.verifyDate = verifyDate;
}
public String getIsSigned() {
return isSigned;
}
public void setIsSigned(String isSigned) {
this.isSigned = isSigned;
}
public String getSignatoryId() {
return signatoryId;
}
public void setSignatoryId(String signatoryId) {
this.signatoryId = signatoryId;
}
public String getSignatory() {
return signatory;
}
public void setSignatory(String signatory) {
this.signatory = signatory;
}
public Date getSignDate() {
return signDate;
}
public void setSignDate(Date signDate) {
this.signDate = signDate;
}
public String getBookkeeperId() {
return bookkeeperId;
}
public void setBookkeeperId(String bookkeeperId) {
this.bookkeeperId = bookkeeperId;
}
public String getBookkeeper() {
return bookkeeper;
}
public void setBookkeeper(String bookkeeper) {
this.bookkeeper = bookkeeper;
}
public Date getBookDate() {
return bookDate;
}
public void setBookDate(Date bookDate) {
this.bookDate = bookDate;
}
public String getIsWriteOff() {
return isWriteOff;
}
public void setIsWriteOff(String isWriteOff) {
this.isWriteOff = isWriteOff;
}
public String getWriteOffNum() {
return writeOffNum;
}
public void setWriteOffNum(String writeOffNum) {
this.writeOffNum = writeOffNum;
}
public double getTotalDR() {
return totalDR;
}
public void setTotalDR(double totalDR) {
this.totalDR = totalDR;
}
public double getTotalCR() {
return totalCR;
}
public void setTotalCR(double totalCR) {
this.totalCR = totalCR;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getTemplateType() {
return templateType;
}
public void setTemplateType(String templateType) {
this.templateType = templateType;
}
public String getVStatus() {
return vStatus;
}
public void setVStatus(String vStatus) {
this.vStatus = vStatus;
}
public String getSumFlag() {
return sumFlag;
}
public void setSumFlag(String sumFlag) {
this.sumFlag = sumFlag;
}
public String getOptype() {
return optype;
}
public void setOptype(String optype) {
this.optype = optype;
}
public List<VLine> getLines() {
return lines;
}
public void setLines(List<VLine> lines) {
this.lines = lines;
}
public List<VLine> getAddLines() {
return addLines;
}
public void setAddLines(List<VLine> addLines) {
this.addLines = addLines;
}
public List<VLine> getUpdLines() {
return updLines;
}
public void setUpdLines(List<VLine> updLines) {
this.updLines = updLines;
}
public List<String> getDelLines() {
return delLines;
}
public void setDelLines(List<String> delLines) {
this.delLines = delLines;
}
public List<Account> getAccList() {
return accList;
}
public void setAccList(List<Account> accList) {
this.accList = accList;
}
public List<String> getAccIdList() {
return accIdList;
}
public void setAccIdList(List<String> accIdList) {
this.accIdList = accIdList;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public String getCreatedName() {
return createdName;
}
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
public Date getLastUpdateDate() {
return lastUpdateDate;
}
public void setLastUpdateDate(Date lastUpdateDate) {
this.lastUpdateDate = lastUpdateDate;
}
public String getLastUpdatedBy() {
return lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
public Date getSynchronizeDate() {
return synchronizeDate;
}
public void setSynchronizeDate(Date synchronizeDate) {
this.synchronizeDate = synchronizeDate;
}
}
|
[
"381666890@qq.com"
] |
381666890@qq.com
|
9d2a2ef191e224b49d8975e41bc322804e8e7223
|
1bbbc069c709e37382959c554e434d58c23b56f6
|
/index-server/src/main/java/com/pl/model/wx/TRelation.java
|
1f25d5cf0c8bc68d3abdc837cb6576cabd0d843e
|
[] |
no_license
|
HuangGuangLei666/index-server
|
05d9738fb46482c6f4bc123c9c050797ec97374b
|
d6d932a3426e79aaff2253dcaaee7dac5db4965a
|
refs/heads/master
| 2022-12-21T00:15:20.409144
| 2020-02-25T11:22:17
| 2020-02-25T11:22:17
| 239,097,671
| 0
| 0
| null | 2022-12-06T00:44:57
| 2020-02-08T09:04:34
|
Java
|
UTF-8
|
Java
| false
| false
| 1,105
|
java
|
package com.pl.model.wx;
import java.util.Date;
public class TRelation {
private Integer id;
private String openid;
private String openidRelation;
private Date createTime;
private Integer status;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid == null ? null : openid.trim();
}
public String getOpenidRelation() {
return openidRelation;
}
public void setOpenidRelation(String openidRelation) {
this.openidRelation = openidRelation == null ? null : openidRelation.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}
|
[
"1144716956@qq.com"
] |
1144716956@qq.com
|
e34ebd88288043f37213fc2f456a0cda57467c30
|
e425c13a0e62ede731b19e432471c0821b1dd098
|
/bc/src/public/nc/uap/lfw/core/comp/ctx/ExcelContext.java
|
c2f56726a6dccd8ad57e7402ee2e6621c32acc72
|
[] |
no_license
|
thimda/rsd_web
|
42c6ee54fcdd2fc699b74a1a48af2424fb5fd751
|
8c32851118eb98de1df2f0889a693258f10eab11
|
refs/heads/master
| 2020-05-17T18:58:22.839246
| 2012-04-01T22:24:41
| 2012-04-01T22:24:41
| 3,823,167
| 3
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 751
|
java
|
package nc.uap.lfw.core.comp.ctx;
public class ExcelContext extends BaseContext {
private static final long serialVersionUID = -1969504825610051676L;
private boolean enabled;
private boolean editable;
// 显示列ID字符串,用“,”分割,中间不能有空格,用于在后台中向前台传递context
private String showColumns;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public boolean isEditable() {
return editable;
}
public void setEditable(boolean editable) {
this.editable = editable;
}
public String getShowColumns() {
return showColumns;
}
public void setShowColumns(String showColumns) {
this.showColumns = showColumns;
}
}
|
[
"devin_2012@163.com"
] |
devin_2012@163.com
|
0a3cbce112ccdbcd34eb98e56c6f19fd98143764
|
c14dd8eb767636ad9430705547753d07eb43afdc
|
/src/main/java/com/lee/springbootdemo/service/PcCpmAppraiseAttaService.java
|
a17b916543e05429356177b99d00d9ee0a4ca614
|
[] |
no_license
|
lideqiang01/springboot-demo
|
badf20b148fbcb3889fc2228312d1ad9695dd14f
|
ec7ef1dc04fd54336dd8a949a89b2f64ce7c990f
|
refs/heads/master
| 2022-06-25T10:40:09.203223
| 2019-09-21T01:16:27
| 2019-09-21T01:16:27
| 209,905,677
| 0
| 0
| null | 2022-06-21T01:54:34
| 2019-09-21T01:13:04
|
Java
|
UTF-8
|
Java
| false
| false
| 369
|
java
|
package com.lee.springbootdemo.service;
import com.lee.springbootdemo.entity.PcCpmAppraiseAtta;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* v2党员自我鉴定记录表附件表(弃用) 服务类
* </p>
*
* @author admin
* @since 2019-09-20
*/
public interface PcCpmAppraiseAttaService extends IService<PcCpmAppraiseAtta> {
}
|
[
"lideqiang0909@163.com"
] |
lideqiang0909@163.com
|
2d1dfb28821a826dbb4aebd183fd370cb2ea0d19
|
df7c3edc1a236c5a79ff41ec693fde25addd488f
|
/testsuite/testsuite-impl/src/main/java/at/ac/tuwien/big/testsuite/impl/exporter/checklist/lab2/ConcurrentTestChecklistCheck.java
|
5c817c15e4c16e897fbd129888340cac8c1e8d4c
|
[
"Apache-2.0"
] |
permissive
|
beikov/web-engineering-tutor-2012
|
b8f1ab499942849ffee34821c8d30ee9a7a2a6c1
|
5c75158e119a5243c0c747d659162a353b5e8f1d
|
refs/heads/master
| 2020-06-06T17:22:58.599680
| 2014-07-13T16:20:52
| 2014-07-13T16:20:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,161
|
java
|
/*
* Copyright 2013 BIG TU Wien.
*
* 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 at.ac.tuwien.big.testsuite.impl.exporter.checklist.lab2;
import at.ac.tuwien.big.testsuite.api.model.ValidationResult;
import at.ac.tuwien.big.testsuite.api.model.ValidationResultEntry;
import at.ac.tuwien.big.testsuite.impl.util.TestsuiteConstants;
/**
* Checks for occurance of concurrent test errors
*
* @author Florian Zoubek
*/
public class ConcurrentTestChecklistCheck extends SeleniumChecklistCheck {
private float points = 1.0f;
public ConcurrentTestChecklistCheck(){
}
public ConcurrentTestChecklistCheck(float points){
this.points = points;
}
@Override
public void passValidationResult(ValidationResult validationResult) {
// No op
}
@Override
public void passValidationResultEntry(ValidationResultEntry validationResultEntry) {
if (inSeleniumResultType) {
String title = validationResultEntry.getTitle();
if(title != null) {
if ((title.startsWith(TestsuiteConstants.KNOWN_ERROR_PREFIX+" Concurrent test") || title.startsWith(TestsuiteConstants.KNOWN_ERROR_PREFIX+" Concurrent test could not be executed")) || !title.startsWith(TestsuiteConstants.KNOWN_ERROR_PREFIX)) {
if (points > 0) {
points = 0;
}
}
}
}
}
@Override
public float getPoints() {
return points;
}
@Override
public String getDescription() {
return "More than one user is able to play at once";
}
}
|
[
"christian.beikov@gmail.com"
] |
christian.beikov@gmail.com
|
506ddd3ba9d516e2594117e9ca186e58408fd3be
|
2bfa964b7a42b4995fd166a62865d886e7715989
|
/app/src/main/java/com/jlwteam/rebate/page/me/adapter/MainUserAdapter.java
|
73b01ac72c241903d56408966008677fcc65094a
|
[] |
no_license
|
DaYinTeamCode/JLW_XJ
|
ca5d80e6d8d57d925020a8e462e193f3276ee694
|
c1e58530584297e94a4da0f8d1cf33ebe4adce9b
|
refs/heads/master
| 2023-06-22T05:27:41.315330
| 2020-05-07T02:40:59
| 2020-05-07T02:40:59
| 234,859,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package com.jlwteam.rebate.page.me.adapter;
import android.view.ViewGroup;
import com.androidex.widget.rv.adapter.ExRvAdapterMulti;
import com.androidex.widget.rv.vh.ExRvItemViewHolderBase;
import com.jlwteam.rebate.page.me.bean.UserItemSet;
import com.jlwteam.rebate.page.me.viewholder.MainMenuItemViewHolder;
/**
* 用户中心 适配器
* <p>
* Create By DaYin(gaoyin_vip@126.com) on 2019/6/20 3:14 PM
*/
public class MainUserAdapter extends ExRvAdapterMulti<Object> {
public static final int TYPE_SET_ITEM = 0;
public MainUserAdapter() {
}
@Override
public int getDataItemViewType(int dataPos) {
return TYPE_SET_ITEM;
}
@Override
public ExRvItemViewHolderBase onCreateDataViewHolder(ViewGroup parent, int viewType) {
return new MainMenuItemViewHolder(parent);
}
@Override
public void onBindDataViewHolder(ExRvItemViewHolderBase holder, int dataPos) {
if (holder instanceof MainMenuItemViewHolder) {
((MainMenuItemViewHolder) holder).invalidataContentView((UserItemSet) getDataItem(dataPos));
}
}
}
|
[
"gaoyin_vip@126.com"
] |
gaoyin_vip@126.com
|
4487d24eae4db1e2c051060a9603937ce5967383
|
9b01ffa3db998c4bca312fd28aa977f370c212e4
|
/app/src/streamC/java/com/loki/singlemoduleapp/stub/SampleClass5883.java
|
687dec2c89b216fee049964bce83cee75700cad7
|
[] |
no_license
|
SergiiGrechukha/SingleModuleApp
|
932488a197cb0936785caf0e73f592ceaa842f46
|
b7fefea9f83fd55dbbb96b506c931cc530a4818a
|
refs/heads/master
| 2022-05-13T17:15:21.445747
| 2017-07-30T09:55:36
| 2017-07-30T09:56:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 281
|
java
|
package com.loki.singlemoduleapp.stub;
public class SampleClass5883 {
private SampleClass5884 sampleClass;
public SampleClass5883(){
sampleClass = new SampleClass5884();
}
public String getClassName() {
return sampleClass.getClassName();
}
}
|
[
"sergey.grechukha@gmail.com"
] |
sergey.grechukha@gmail.com
|
f2879df542c64e5e0bf385e402930badbca216c5
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/schedulerx2-20190430/src/main/java/com/aliyun/schedulerx220190430/models/DeleteWorkflowRequest.java
|
bf84d28100bd0dae4ac1600993a185fa31263414
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 2,206
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.schedulerx220190430.models;
import com.aliyun.tea.*;
public class DeleteWorkflowRequest extends TeaModel {
/**
* <p>The application ID. You can obtain the application ID on the Application Management page in the SchedulerX console.</p>
*/
@NameInMap("GroupId")
public String groupId;
/**
* <p>The namespace ID. You can obtain the namespace ID on the Namespace page in the SchedulerX console.</p>
*/
@NameInMap("Namespace")
public String namespace;
/**
* <p>The source of the namespace. This parameter is required only for a special third party.</p>
*/
@NameInMap("NamespaceSource")
public String namespaceSource;
/**
* <p>The region ID.</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The workflow ID.</p>
*/
@NameInMap("WorkflowId")
public Long workflowId;
public static DeleteWorkflowRequest build(java.util.Map<String, ?> map) throws Exception {
DeleteWorkflowRequest self = new DeleteWorkflowRequest();
return TeaModel.build(map, self);
}
public DeleteWorkflowRequest setGroupId(String groupId) {
this.groupId = groupId;
return this;
}
public String getGroupId() {
return this.groupId;
}
public DeleteWorkflowRequest setNamespace(String namespace) {
this.namespace = namespace;
return this;
}
public String getNamespace() {
return this.namespace;
}
public DeleteWorkflowRequest setNamespaceSource(String namespaceSource) {
this.namespaceSource = namespaceSource;
return this;
}
public String getNamespaceSource() {
return this.namespaceSource;
}
public DeleteWorkflowRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public DeleteWorkflowRequest setWorkflowId(Long workflowId) {
this.workflowId = workflowId;
return this;
}
public Long getWorkflowId() {
return this.workflowId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
df623816cedf3c8dd545f9d039e5c9b54f22fad1
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-dyvms/src/main/java/com/aliyuncs/dyvms/model/v20170620/CreateVoiceASRRequest.java
|
635cf63e93be88293ac8e47ee6b7a95756af4f4e
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,777
|
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.dyvms.model.v20170620;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dyvms.Endpoint;
/**
* @author auto create
* @version
*/
public class CreateVoiceASRRequest extends RpcAcsRequest<CreateVoiceASRResponse> {
private Long resourceOwnerId;
private String resourceOwnerAccount;
private String prodCode;
private Long ownerId;
private Integer prodType;
public CreateVoiceASRRequest() {
super("Dyvms", "2017-06-20", "CreateVoiceASR", "dyvms");
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 Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getProdCode() {
return this.prodCode;
}
public void setProdCode(String prodCode) {
this.prodCode = prodCode;
if(prodCode != null){
putQueryParameter("ProdCode", prodCode);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public Integer getProdType() {
return this.prodType;
}
public void setProdType(Integer prodType) {
this.prodType = prodType;
if(prodType != null){
putQueryParameter("ProdType", prodType.toString());
}
}
@Override
public Class<CreateVoiceASRResponse> getResponseClass() {
return CreateVoiceASRResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
631c0015c82784cceb55657c8ca85a0237615214
|
29754a8382c6fbc937a1684915df5c245932c4ee
|
/src/main/java/com/work/drdo/dao/UserFileDAO.java
|
fb2d8b00318f03a014932bf72947ff4989f3785e
|
[] |
no_license
|
ramkishor05/DR-Web_Boot
|
c876c99abb538f53b13b0f0670ae0d31d6e51a80
|
2d81dd47fb012286c0c95f419c7a504ed3eb6beb
|
refs/heads/master
| 2020-04-17T18:33:40.793974
| 2019-01-31T05:08:26
| 2019-01-31T05:08:26
| 166,831,486
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 239
|
java
|
package com.work.drdo.dao;
import com.work.drdo.executive.entity.UserFile;
public interface UserFileDAO {
public String saveFile(UserFile entity);
public void merge(UserFile entity);
public UserFile getReference(Integer fileID);
}
|
[
"ramkishor0509@gmail.com"
] |
ramkishor0509@gmail.com
|
432fe11809e412beda92a6097a594a29cde8998d
|
e98ad9d22fb7be489a2cbf13074fdcbc83d081f1
|
/src/com/emi/android/bean/ProcessTaskDetailSamplingRsp.java
|
57b8c8c059830b7bcd1c4df3b20c9602d7a7993e
|
[] |
no_license
|
yuronghao/LugErp
|
fca52dcd22910dc9add6fd2867354f04dbbd3c03
|
8b4415e72994e5d34cdaaa3ddaf88bb83e849fc7
|
refs/heads/master
| 2020-03-07T08:10:56.665798
| 2018-07-09T03:29:19
| 2018-07-09T03:29:19
| 127,370,129
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,098
|
java
|
package com.emi.android.bean;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class ProcessTaskDetailSamplingRsp implements Serializable {
private static final long serialVersionUID = 7122786953650204813L;
private Integer success;//0失败 1成功
private String failInfor;//失败时消息
private String goodsCode;
private String goodsName;//生产产品名称
private String goodsStandard;
private String billCode;//生产订单号
private Date startTime;//计划开工日期
private Date endTime;//计划完工日期
private BigDecimal canSamplingNum;//可抽检数量
private String produceCuid;//生产订单产品表gid
public String getGoodsCode() {
return goodsCode;
}
public void setGoodsCode(String goodsCode) {
this.goodsCode = goodsCode;
}
public String getGoodsStandard() {
return goodsStandard;
}
public void setGoodsStandard(String goodsStandard) {
this.goodsStandard = goodsStandard;
}
public Integer getSuccess() {
return success;
}
public void setSuccess(Integer success) {
this.success = success;
}
public String getFailInfor() {
return failInfor;
}
public void setFailInfor(String failInfor) {
this.failInfor = failInfor;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getBillCode() {
return billCode;
}
public void setBillCode(String billCode) {
this.billCode = billCode;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public BigDecimal getCanSamplingNum() {
return canSamplingNum;
}
public void setCanSamplingNum(BigDecimal canSamplingNum) {
this.canSamplingNum = canSamplingNum;
}
public String getProduceCuid() {
return produceCuid;
}
public void setProduceCuid(String produceCuid) {
this.produceCuid = produceCuid;
}
}
|
[
"286470940@qq.com"
] |
286470940@qq.com
|
d88f322e72c154802017f4672af43565172fff04
|
ce8e8f0255db724ba9d6a901e45efd10f8821b44
|
/io.github.u2ware.spring.security/src/main/java/com/example/demo/ApplicationCorsFilter.java
|
fda60c0561f57c33d96c85bd6662495db6e76049
|
[
"Apache-2.0"
] |
permissive
|
u2waremanager/u2ware-incubator
|
51ffc7c44fe2876c53c768d0b0875cb5bf5df473
|
353d97ac2ba5c874222051a5d3966237675b28ce
|
refs/heads/master
| 2022-09-20T14:22:25.637944
| 2021-02-26T04:55:44
| 2021-02-26T04:55:44
| 177,071,627
| 1
| 0
|
Apache-2.0
| 2022-09-01T23:22:45
| 2019-03-22T04:32:17
|
Java
|
UTF-8
|
Java
| false
| false
| 2,800
|
java
|
package com.example.demo;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Component;
@Component
@Order(Ordered.HIGHEST_PRECEDENCE)
public class ApplicationCorsFilter implements Filter {
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
final HttpServletResponse response = (HttpServletResponse) res;
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Methods", "POST, PUT, GET, OPTIONS, DELETE");
response.setHeader("Access-Control-Allow-Headers", "Authorization, Content-Type");
response.setHeader("Access-Control-Max-Age", "3600");
if (HttpMethod.OPTIONS.name().equalsIgnoreCase(((HttpServletRequest) req).getMethod())) {
response.setStatus(HttpServletResponse.SC_OK);
} else {
chain.doFilter(req, res);
}
}
// @Bean
// public CorsConfigurationSource corsConfigurationSource() {
// UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
// CommonOAuth2Provider d;
// CorsConfiguration configuration = new CorsConfiguration();
// configuration.setMaxAge(86400l);
// configuration.setAllowedOrigins(Arrays.asList("*"));
// configuration.setAllowCredentials(true);
// configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
// configuration.setAllowedHeaders(Arrays.asList("*"));
// configuration.setExposedHeaders(Arrays.asList("Authorization", "xsrf-token", "content-type", "content-Disposition", "content-transfer-encoding"));
// source.registerCorsConfiguration("/**", configuration);
// return source;
// }
// @Bean
// public WebMvcConfigurer corsConfigurer() {
// return new WebMvcConfigurer() {
// @Override
// public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOrigins("*")
// .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
// .allowCredentials(true)
// .allowedHeaders("*")
// .exposedHeaders("Authorization", "xsrf-token", "content-type", "content-Disposition", "content-transfer-encoding");
// }
// };
// }
}
|
[
"u2waremanager@gmail.com"
] |
u2waremanager@gmail.com
|
a787d2e80bba85b0d02ce3ce5284c4ffd524e358
|
7af846ccf54082cd1832c282ccd3c98eae7ad69a
|
/ftmap/src/main/java/taxi/nicecode/com/ftmap/generated/package_15/Foo5.java
|
5ab803602798d6e7c83e4df02cc17d3669f74459
|
[] |
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
| 266
|
java
|
package taxi.nicecode.com.ftmap.generated.package_15;
public class Foo5 {
public void foo0(){
new Foo4().foo5();
}
public void foo1(){
foo0();
}
public void foo2(){
foo1();
}
public void foo3(){
foo2();
}
public void foo4(){
foo3();
}
public void foo5(){
foo4();
}
}
|
[
"1"
] |
1
|
3dab3d395c9a608a08216771b4d1d66501432bb1
|
17d6ff86d3eb8f79e56773d9f78fd012bdf00ef8
|
/myth-demo/myth-demo-springcloud/myth-demo-springcloud-inventory/src/main/java/com/github/myth/demo/springcloud/inventory/InventoryApplication.java
|
4f4039696c6988acf6e87224d6a39313e5dc6774
|
[] |
no_license
|
lan1tian/myth
|
84e745ebddac874fc89f5ef2d74cc40cad97a099
|
38556c8e56b97dd1a1aa82ab7486c0017bbb5c8c
|
refs/heads/master
| 2021-08-29T23:27:04.997443
| 2017-12-15T08:38:42
| 2017-12-15T08:38:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,734
|
java
|
/*
*
* Copyright 2017-2018 549477611@qq.com(xiaoyu)
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, 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 Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution; if not, see <http://www.gnu.org/licenses/>.
*
*/
package com.github.myth.demo.springcloud.inventory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;
/**
* @author xiaoyu
*/
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@EnableEurekaClient
@EnableFeignClients
@ImportResource({"classpath:applicationContext.xml"})
@MapperScan("com.github.myth.demo.springcloud.inventory.mapper")
public class InventoryApplication {
public static void main(String[] args) {
SpringApplication.run(InventoryApplication.class, args);
}
}
|
[
"yu.xiao@happylifeplat.com"
] |
yu.xiao@happylifeplat.com
|
b152d9b92f858a2e9d37801eacccda8f2e9cda3f
|
a696918dd28b1bc27928f25d8438316cb7e1e84b
|
/src/main/java/com/bracongo/clientapi/dao/SpringDaoConfig.java
|
510893edc61a7222b10c8d3a06928a44a48c619e
|
[
"Apache-2.0"
] |
permissive
|
Roykens/bracongoProClient
|
2f894648a6b41c68b473ec4fb42382ed64af8ce7
|
2a9ccb2b9420ed0594a4e474564c015a05aca03d
|
refs/heads/master
| 2021-01-20T01:40:24.872636
| 2017-08-24T13:04:51
| 2017-08-24T13:04:51
| 101,295,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 369
|
java
|
/**
*
*/
package com.bracongo.clientapi.dao;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
/**
* @author Kenfack Valmy-Roi <roykenvalmy@gmail.com>
*
*/
@Configuration
@EnableJpaRepositories(basePackages = "com.bracongo.clientapi.dao")
public class SpringDaoConfig {
}
|
[
"roykenvalmy@gmail.com"
] |
roykenvalmy@gmail.com
|
158fd24d39875e157e35e3a94491a1f6fc77d601
|
dc530e309a708610686246234098cd0d191a9386
|
/src/main/java/com/betterprojectsfaster/tutorial/jhipsterdocker/service/dto/ProductOrderDTO.java
|
2757af6e1e2459d671bd2297f070222f10579e8f
|
[] |
no_license
|
josamartinezv/bpf-tutorial-jhipster-docker
|
033df261a89b6e6c470d2e4b2fa0e73723386b33
|
c6f9f8714319e9412798853b2baea4fb31407318
|
refs/heads/master
| 2020-11-26T03:32:34.981307
| 2019-08-01T13:02:30
| 2019-08-01T13:02:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,925
|
java
|
package com.betterprojectsfaster.tutorial.jhipsterdocker.service.dto;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;
/**
* A DTO for the {@link com.betterprojectsfaster.tutorial.jhipsterdocker.domain.ProductOrder} entity.
*/
public class ProductOrderDTO implements Serializable {
private Long id;
@NotNull
@Min(value = 0)
@Max(value = 5)
private Integer amount;
private Long buyerId;
private String buyerLogin;
private Long productId;
private String productName;
private Long overallOrderId;
private String overallOrderName;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getAmount() {
return amount;
}
public void setAmount(Integer amount) {
this.amount = amount;
}
public Long getBuyerId() {
return buyerId;
}
public void setBuyerId(Long userId) {
this.buyerId = userId;
}
public String getBuyerLogin() {
return buyerLogin;
}
public void setBuyerLogin(String userLogin) {
this.buyerLogin = userLogin;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Long getOverallOrderId() {
return overallOrderId;
}
public void setOverallOrderId(Long shoppingOrderId) {
this.overallOrderId = shoppingOrderId;
}
public String getOverallOrderName() {
return overallOrderName;
}
public void setOverallOrderName(String shoppingOrderName) {
this.overallOrderName = shoppingOrderName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProductOrderDTO productOrderDTO = (ProductOrderDTO) o;
if (productOrderDTO.getId() == null || getId() == null) {
return false;
}
return Objects.equals(getId(), productOrderDTO.getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
@Override
public String toString() {
return "ProductOrderDTO{" +
"id=" + getId() +
", amount=" + getAmount() +
", buyer=" + getBuyerId() +
", buyer='" + getBuyerLogin() + "'" +
", product=" + getProductId() +
", product='" + getProductName() + "'" +
", overallOrder=" + getOverallOrderId() +
", overallOrder='" + getOverallOrderName() + "'" +
"}";
}
}
|
[
"karsten.silz@outlook.com"
] |
karsten.silz@outlook.com
|
e6673f52e407a3e275f685053e2a6a65f02418b2
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/UpdateUserRequest.java
|
d194eb3f9ef85fbe3f1028f992de413104fd572f
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 879
|
java
|
9
https://raw.githubusercontent.com/everest-engineering/lhotse/master/api/src/main/java/engineering/everest/lhotse/api/rest/requests/UpdateUserRequest.java
package engineering.everest.lhotse.api.rest.requests;
import io.swagger.annotations.ApiModel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@ApiModel(description = "Updates non-empty user fields. Missing or blank fields are ignored.")
@Getter
@Setter
@ToString
@EqualsAndHashCode
public class UpdateUserRequest {
private String displayName;
private String email;
private String password; // Don't do this. Example only!
public UpdateUserRequest() {
}
public UpdateUserRequest(String displayName, String email, String password) {
this.displayName = displayName;
this.email = email;
this.password = password;
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
a91870efb1e581d0279a2027003f55da61dfab14
|
8bc8038babd1e278c63d533fc7a351cac7ef4905
|
/mybatis/src/test/java/org/apache/ibatis/submitted/parametrizedlist/User.java
|
57233632bd3f93323f482f16ce57590d94f0f922
|
[] |
no_license
|
jinbaizhe/mybatis
|
a336709bca5f81b8b9b7931f2603348aa4f6a21e
|
1726a7a63762e9200864564473ecb30570487842
|
refs/heads/main
| 2023-06-24T02:29:07.984538
| 2021-07-27T12:16:29
| 2021-07-27T12:16:29
| 361,598,595
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,101
|
java
|
/*
* Copyright 2009-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ibatis.submitted.parametrizedlist;
public class User<T> {
private Integer id;
private String name;
public User() {
}
public User(Integer id, String name) {
this.id = id;
this.name = name;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"jinbaizhe@leoao.com"
] |
jinbaizhe@leoao.com
|
fa3fe8680c8c5f10c431cdf3baefb78639e844ab
|
28864ab1b1223d09139b384f695b4d4eea99bdf5
|
/xir/src/org/betterxml/xir/XIREcho.java
|
5cb385ddc4bf3be922e5d34971eebc0d356f4241
|
[] |
no_license
|
LoyolaChicagoCode/betterxml.java
|
030fe2fb0fab326dc02619c30a9dfc428232986a
|
d24897def5ba0db5960384c35902274a4f071743
|
refs/heads/master
| 2016-09-05T21:48:27.698596
| 2011-05-30T01:58:49
| 2011-05-30T01:58:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 769
|
java
|
package org.betterxml.xir;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
// TODO: Implement the XIREcho class.
public class XIREcho {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
FileReader inFile;
try {
inFile = new FileReader(args[0]);
} catch (FileNotFoundException e) {
System.err.println("Cannot open " + args[0]);
e.printStackTrace();
return;
}
XIRReader reader = new XIRReader(inFile);
OutputStreamWriter out = new OutputStreamWriter(System.out);
XIRContentHandler handler = new XIREchoHandler(out);
XIRParser xp = new XIRParser(reader, handler);
xp.parse();
out.flush();
}
}
|
[
"devnull@localhost"
] |
devnull@localhost
|
0c63c56dd54dc0d1696797aa980a60a26aab37b5
|
51934a954934c21cae6a8482a6f5e6c3b3bd5c5a
|
/output/b8a59d340ef64e19bab75294db6a3c66.java
|
d666b18e171d161be6b426a076d5022490d44313
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
comprakt/comprakt-fuzz-tests
|
e8c954d94b4f4615c856fd3108010011610a5f73
|
c0082d105d7c54ad31ab4ea461c3b8319358eaaa
|
refs/heads/master
| 2021-09-25T15:29:58.589346
| 2018-10-23T17:33:46
| 2018-10-23T17:33:46
| 154,370,249
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,692
|
java
|
class KCPF {
}
class pdhpdBD0Pxv0 {
}
class WDMLL {
public DOCGd8 NIHhKgcaO;
public static void lbLAUBFBU (String[] klDiadUbEB8) throws hi {
while ( raikEWeD4Zx4y.YXlg0Gk4acU()) return;
while ( --true[ U_().msN7LT2_ny]) ;
boolean zJnC5gnMu4;
;
return;
return;
int[] gUPHU;
}
public void M2Gc9dv7JKnR (boolean[][] MHncE, void[][][][] I, boolean t) {
while ( -new ugvTKYvyq[ 9[ !-!!true[ null[ --!61157991.zM9P8G9y]]]].f5iOVt1k3MSr8()) null.HZ9uVNqRK();
{
( -false.SCD66sLUXp())[ this[ !!null.NlwHEPjhuQ7()]];
boolean[] GOWZeoStdmB8wx;
W3FPh().DTM;
boolean[] _Z7sYMv12;
void lab_3eo;
while ( -( !!CPK_q().DQN_M5Uq4()).ipLtJyGeAT()) if ( -!--!new OS().M8qBwCVD1vE()) {
boolean IyKrBF_;
}
boolean wpv4r;
while ( new gJn()._xDla_514jPsX()) while ( PVBQeU.JRsl99Zu) return;
IAT[] Z5NX;
while ( -true[ new e6OIwXik[ this.CWg()].yoNxCj]) true.HDNnG6BwVhE();
}
{
void[] QxWj;
}
void[][][][] AIk3thkO = -new FHza()[ CyurspvIY.SsV] = this[ -null.atWn];
xe3_bSgx0[][][][][] I7xDZPQ = DfhOkwDCHTCt.uNdSB_n;
void[][] BgOsgudVE;
;
new uHmN91IcJ6nT[ -YMary.yGuwBN()][ s5CoEjFOcx9().je_p];
;
}
public boolean oM;
public void rdYqQy;
public boolean fqe47qnU3au_B;
public int[][] OkNCdHP;
public int[][][] oNGawtfAcZ;
public static void dO_CNZgL5JmY (String[] xorEhaKYRAm) {
;
boolean[] oCZ8R = ( -!this[ !!---!-!( -this[ -null.p]).UczWnJxQa()]).NHK5BDWwWs3hlL();
UnjNSC[][] O = null[ true.yvqxxwO8()] = !---new jcbit1yJ00()[ !new int[ true.D_djdW6g()].S8hWnhVZDAh8Dy];
return !-!!this.rISKw3IZqb4eL();
!!--52087.CJMmYkwKvOYAmm;
-G.jDDqp;
void[][] FO;
null[ -null.z];
boolean SmtLmyJlI1m = new TTyKwGy2StH()._m();
G[][][] gOLoSq6J1z3;
int[] VSU_6 = !new void[ false.Bj()].B2 = new c0K()[ new void[ -!--!-!false.h8].t13EPUMoTdhn()];
-( -!true[ BXD[ -false._r]]).PjCv7();
if ( !null.YGb0hqODmb) if ( ( !-!-!!Hjul[ --!N_[ false.t]]).Lv0()) while ( -!-YPske().T) ---!bNv9()[ F.TTZDloCDfxA()];
if ( -false[ -!( -----new qfQ2V3Y1UJ3Jd[ -raVx9sdO2IIBW[ new S_d().WDUc]][ !null.yz])[ new Fh3N()[ PJHyW2UBCf.jz7k]]]) if ( ( !!-false[ -!!-!new SimO().DLLg5UG0rb]).oG9WIp_uv2u9t) ;else return;
{
void[][] Lbo;
bxZiEUgtwzry[] CL;
;
boolean[] Kbw8oe29;
return;
{
void[] x29EDyt3V7msKT;
}
void Qi_65XxX5yg6SB;
fD5kNQzQ6 jBhXIGHMrBV;
int[][][] HBXH0rU_uPE3Mg;
if ( -0511241[ --( new void[ true.H].PQzTLpsOn)[ new wIXmYPp7g[ null.bl3w2YXr5y6()].cLjUWXcs8X()]]) return;
if ( 1.Er()) false.c();
OPyquD GzG0WvF36dvlz;
int[][][][][] u3dxa;
int qIluW;
void[][][] v8V;
boolean G;
int[] g;
if ( new uvnMc9KX[ !!false.C_eLRLcS()][ -null.MGOxzSb8pfYV]) while ( ( true.BrW)[ !true.MKfBc1m]) {
;
}
if ( !this.nqtEs5T65_()) while ( SRMkfTz3[ --new R().j2e0lUUVnL()]) if ( !new tX6ZTje().DtJo03kV) false[ !-780022969.TCcUNZm];
while ( !!iIliwmDc.ssCjLYksk()) ;
}
boolean r79O5p_1rGHM = this[ 98.uNa_4oIh()] = -229740[ -!-!null._cdsnuWevJ6_];
boolean yCiRUPR = null.xiZoT_2PuYmgi();
return;
}
public static void c87Ha (String[] lTRzME) throws zDej1at {
false[ true.jdJb()];
return;
!-null.L_PBDG();
L[] xv;
void[][] Llvz5 = !!-new bDAPMKs1f()[ JHbbP2p.mJ2lITJhoH1] = false[ !null.LiVbO];
mZAo fog = 5835.m0W;
pv8muVGxkxO[] SoZPU1DMgkBI = ---( null.d9huMHHa())[ TXvnQPM()[ -false.Ilqub()]];
LI[][][] m9h_ePKncC = !-this.qW1OF0DOPgBB() = !!false[ ( -new void[ -false.xmD23pMLYk()].lKYTVAmc()).SuaHsi()];
while ( 88911.LJCF_rcQE()) while ( -null[ 2405014[ -!!new P_p2ExEe()[ vLqt9eTn.ZBiVpx6fYzChJ()]]]) null.K;
int q_ = -!!!new boolean[ 92603.k7()]._KKdGhejuD3() = -!false.ov4l;
boolean F8;
void[][][][] hpDKLW0N = !new boolean[ !!-46718.O_qO9ae()].HNY() = 498741566.g1();
int[] SH = false.HXcc5YurKU = false.R9A();
boolean s4c6SIsub;
if ( -!-4531750.JeR) return;else {
int UmX3AUsf4nVF;
}
!!--!--435185051[ !!VAn[ this.uM1FGY5w()]];
void aX;
( null[ false.DBTuWW3KUOi()]).TJ7Zn7PgG;
int c6lI8eeAo42DQ = -this[ !-!new xC0t58gQ9T().GDjcz2Kl8tP()] = -jzSwxjHkOU0KwE[ --2007.fS3KWX9hr];
}
public vXAZbM7[] lVEtkA2GlByUUT;
public static void jPy (String[] sP6a46_BJhM) throws gsUWZwyM8eg {
boolean mhKqPW01sdK = ( new ZN5QsJn().xCId2G).mbAOKC0CP() = null.zPVtIBr;
void xz8hL3nZ4N1 = tSRpr9GccVmJy.gbNolwafYN;
int Vd = L9eJShLalOoE().Uv7K() = !INaqJR3YP[ !null.G];
S4bdo9MVof0[][] FnJdTzx9nlkP8P;
return;
if ( true.Y2u) {
{
void[] CTEaf8GdI;
}
}
Lr1jJj6GobNfD[][][][][] nQn3LG9;
QPrfH[] b9cXD;
void[][][] lY9iWeWxBBQUb = !null.igSTGJHK9NeMW();
void[] f7FV = !new X_[ !-this[ !YX().XjDNp()]][ this.qGwBt6VzUGBO()] = true.Z65BM4_54Vz;
return;
}
public static void KYVEQq7791N (String[] b7nujyj_bz1Qzo) {
{
void gqJFZYyvpM6I;
-l6Q9ar2IaH0().wrjw_7bWPAijd();
if ( ---false.D_m()) if ( new jI2RRDE[ -29[ !Mh.Xf]].An()) ;
m().RufRI;
!-null[ --( 2.Z2g())[ !!A[ false[ J.l6AWiJlUIV]]]];
while ( -z().KFS1V2k) ( 2.vJORSorA()).aEdhUztCk0;
void BFNDN4Z15EMoH;
return;
boolean[] Nh;
;
eX2GYo[] vKEY5f3t;
if ( !new t().j96YThybHGZ_()) {
int hmsMELIAaIzkC;
}
return;
A88O2XU DVfom;
l0oQ1k[] fqb;
void yi4x;
boolean[] KaO4ucU;
zDBPXcvZZH[][] c;
while ( this.X79dM9YlY()) ;
int[][][] zzvnU1vrs9gQuF;
}
while ( !-!HGdsFUJpzVG2.fLZ0ufiUK0ye) ;
while ( true.dk) while ( this.v9y964ZY()) K().my0KJQ5z;
if ( LDV6Z8Kq().pA()) return;
int[] RKBXm = false.QMLvF5ZjDC = g2b_pcCt().QE2c_;
void Mi = ---86900777[ !new z6uFa0mn().DrveVO()] = ahP4P.mzMbzxrGY1U();
int[] Da8;
boolean[][] A05w7UW5Ce1i = --!false.rV();
int[][][] FJHYFQL2ADhAtf;
if ( null.q78dDG8OZyz) if ( false.IhZTq()) {
wudSdEAWRGMfR qgLPa71Q;
}else while ( !-null[ true.dFM8Bl()]) {
{
void[][] ZyIJGIz;
}
}
}
public static void a5pzuCU7DPkdeR (String[] b) throws HgxQSU7Y {
Nb4mPU3tE RYr6hgcRNO;
HR6VTY6cD GFzG;
while ( !false[ 2.GACYWcCqH0lO]) if ( null.sGdd()) new r5jizw7YNw().Vxmshv();
}
}
class t {
public int[] jT_xF9TmW4Q9WG;
public boolean oYtrtU6;
public EgNI_TwLZq_ XHhIAuBLR8vVLi () {
void eLcYAjs = -865386979.GLQOsmCR();
sf[][][] fJvhD = 2418.LQ8JxYIdUPifj() = -new JX114fwm()[ !-!cERSocqLJ9()[ --new QVm6vCTu_RrNL().dbluSIUVTJFDv]];
int[][] k5cDX;
}
public boolean[][][] FYzAoxgQ;
}
class fF6T_OCfLnQv {
}
class paFH1MjEdf712d {
}
|
[
"hello@philkrones.com"
] |
hello@philkrones.com
|
1db9fd0468d48d6c1bdef4e1021adb89ca4ef70c
|
5b7e650957679bcdb1f4d345e965b5f7dabcbffe
|
/app/src/main/java/com/yk/adverte/util/FastBlur.java
|
399ec420a266df4932be086caf1b7b85972245b4
|
[] |
no_license
|
muyishuangfeng/CustomAdverte
|
bfa1d26cc471e140f90672ed60e41363ad26dde0
|
ca0a5cea78b5d2220df869ce860d83788623bd95
|
refs/heads/master
| 2020-03-19T23:28:27.034209
| 2018-06-12T02:42:46
| 2018-06-12T02:42:46
| 137,007,544
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,074
|
java
|
package com.yk.adverte.util;
import android.graphics.Bitmap;
/**
* from internet
* 图像模糊处理算法
*/
public class FastBlur {
public static Bitmap doBlur(Bitmap sentBitmap, int radius,
boolean canReuseInBitmap) {
Bitmap bitmap;
if (canReuseInBitmap) {
bitmap = sentBitmap;
} else {
bitmap = sentBitmap.copy(sentBitmap.getConfig(), true);
}
if (radius < 1) {
return (null);
}
int w = bitmap.getWidth();
int h = bitmap.getHeight();
int[] pix = new int[w * h];
bitmap.getPixels(pix, 0, w, 0, 0, w, h);
int wm = w - 1;
int hm = h - 1;
int wh = w * h;
int div = radius + radius + 1;
int r[] = new int[wh];
int g[] = new int[wh];
int b[] = new int[wh];
int rsum, gsum, bsum, x, y, i, p, yp, yi, yw;
int vmin[] = new int[Math.max(w, h)];
int divsum = (div + 1) >> 1;
divsum *= divsum;
int dv[] = new int[256 * divsum];
for (i = 0; i < 256 * divsum; i++) {
dv[i] = (i / divsum);
}
yw = yi = 0;
int[][] stack = new int[div][3];
int stackpointer;
int stackstart;
int[] sir;
int rbs;
int r1 = radius + 1;
int routsum, goutsum, boutsum;
int rinsum, ginsum, binsum;
for (y = 0; y < h; y++) {
rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;
for (i = -radius; i <= radius; i++) {
p = pix[yi + Math.min(wm, Math.max(i, 0))];
sir = stack[i + radius];
sir[0] = (p & 0xff0000) >> 16;
sir[1] = (p & 0x00ff00) >> 8;
sir[2] = (p & 0x0000ff);
rbs = r1 - Math.abs(i);
rsum += sir[0] * rbs;
gsum += sir[1] * rbs;
bsum += sir[2] * rbs;
if (i > 0) {
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
} else {
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
}
}
stackpointer = radius;
for (x = 0; x < w; x++) {
r[yi] = dv[rsum];
g[yi] = dv[gsum];
b[yi] = dv[bsum];
rsum -= routsum;
gsum -= goutsum;
bsum -= boutsum;
stackstart = stackpointer - radius + div;
sir = stack[stackstart % div];
routsum -= sir[0];
goutsum -= sir[1];
boutsum -= sir[2];
if (y == 0) {
vmin[x] = Math.min(x + radius + 1, wm);
}
p = pix[yw + vmin[x]];
sir[0] = (p & 0xff0000) >> 16;
sir[1] = (p & 0x00ff00) >> 8;
sir[2] = (p & 0x0000ff);
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
rsum += rinsum;
gsum += ginsum;
bsum += binsum;
stackpointer = (stackpointer + 1) % div;
sir = stack[(stackpointer) % div];
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
rinsum -= sir[0];
ginsum -= sir[1];
binsum -= sir[2];
yi++;
}
yw += w;
}
for (x = 0; x < w; x++) {
rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;
yp = -radius * w;
for (i = -radius; i <= radius; i++) {
yi = Math.max(0, yp) + x;
sir = stack[i + radius];
sir[0] = r[yi];
sir[1] = g[yi];
sir[2] = b[yi];
rbs = r1 - Math.abs(i);
rsum += r[yi] * rbs;
gsum += g[yi] * rbs;
bsum += b[yi] * rbs;
if (i > 0) {
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
} else {
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
}
if (i < hm) {
yp += w;
}
}
yi = x;
stackpointer = radius;
for (y = 0; y < h; y++) {
// Preserve alpha channel: ( 0xff000000 & pix[yi] )
pix[yi] = (0xff000000 & pix[yi]) | (dv[rsum] << 16)
| (dv[gsum] << 8) | dv[bsum];
rsum -= routsum;
gsum -= goutsum;
bsum -= boutsum;
stackstart = stackpointer - radius + div;
sir = stack[stackstart % div];
routsum -= sir[0];
goutsum -= sir[1];
boutsum -= sir[2];
if (x == 0) {
vmin[y] = Math.min(y + r1, hm) * w;
}
p = x + vmin[y];
sir[0] = r[p];
sir[1] = g[p];
sir[2] = b[p];
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
rsum += rinsum;
gsum += ginsum;
bsum += binsum;
stackpointer = (stackpointer + 1) % div;
sir = stack[stackpointer];
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
rinsum -= sir[0];
ginsum -= sir[1];
binsum -= sir[2];
yi += w;
}
}
bitmap.setPixels(pix, 0, w, 0, 0, w, h);
return (bitmap);
}
}
|
[
"yangkemuyi@sina.com"
] |
yangkemuyi@sina.com
|
65770e32a73311131fa35bdd4c92863eff328e00
|
a2442677f80c221c703533f8d024da8f32b121d7
|
/src/main/java/org/safari/platform/modules/rept/mapper/u_vipMapper.java
|
d923a293dfa555bf90c2b1cbf9213d4a925c1c00
|
[] |
no_license
|
jecn/qiaodan-platform
|
0f80b279323bd8ced55170c2fe705256e39b6d36
|
602c46042c81131f79a4a6b388c51653275aef34
|
refs/heads/master
| 2021-08-31T17:31:43.651121
| 2017-12-22T07:53:17
| 2017-12-22T07:53:17
| 112,808,508
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 997
|
java
|
package org.safari.platform.modules.rept.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.safari.platform.common.annotation.MyBatisMapper;
import org.safari.platform.common.mapper.BaseMapper;
import org.safari.platform.modules.rept.entity.UserAges;
import org.safari.platform.modules.rept.entity.UserData;
import org.safari.platform.modules.rept.entity.u_vip;
@MyBatisMapper
public interface u_vipMapper extends BaseMapper<u_vip>{
int deleteByPrimaryKey(String id);
int insert(u_vip record);
int insertSelective(u_vip record);
u_vip selectByPrimaryKey(String id);
int updateByPrimaryKeySelective(u_vip record);
int updateByPrimaryKey(u_vip record);
List<UserData> getUserData();
List<UserData> selectTableOfActiveUser();
List<UserAges> getUserAges(@Param("isActive")boolean isActive);
List<UserAges> getUserPosition(@Param("isActive")boolean isActive);
List<u_vip> getUser(@Param("isActive")boolean isActive);
}
|
[
"xlwei920@163.com"
] |
xlwei920@163.com
|
948ddb5c260c06afcaf5db34b64f91d4175bc58c
|
f6899a2cf1c10a724632bbb2ccffb7283c77a5ff
|
/grizzly-1.9.50/modules/http/src/main/java/com/sun/grizzly/ssl/SSLAsyncProtocolFilter.java
|
60313a092f0041295b335d8307a46a3a44f990ec
|
[] |
no_license
|
Appdynamics/OSS
|
a8903058e29f4783e34119a4d87639f508a63692
|
1e112f8854a25b3ecf337cad6eccf7c85e732525
|
refs/heads/master
| 2023-07-22T03:34:54.770481
| 2021-10-28T07:01:57
| 2021-10-28T07:01:57
| 19,390,624
| 2
| 13
| null | 2023-07-08T02:26:33
| 2014-05-02T22:42:20
| null |
UTF-8
|
Java
| false
| false
| 6,298
|
java
|
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007-2011 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
package com.sun.grizzly.ssl;
import com.sun.grizzly.Context;
import com.sun.grizzly.arp.AsyncProtocolFilter;
import com.sun.grizzly.http.HttpWorkerThread;
import com.sun.grizzly.http.ProcessorTask;
import com.sun.grizzly.util.ByteBufferFactory;
import com.sun.grizzly.util.InputReader;
import com.sun.grizzly.util.StreamAlgorithm;
import com.sun.grizzly.util.WorkerThread;
import com.sun.grizzly.util.net.SSLImplementation;
import com.sun.grizzly.util.net.SSLSupport;
import java.io.InputStream;
import java.net.InetAddress;
/**
* Asynchronous SSL support over NIO. This {@link com.sun.grizzly.http.Task} handles the SSL
* requests using a non blocking socket. The SSL handshake is done using this
* class. Once the handshake is successful, the {@link SSLProcessorTask} is
* executed.
*
* @author Jean-Francois Arcand
*/
public class SSLAsyncProtocolFilter extends AsyncProtocolFilter {
/**
* The Coyote SSLImplementation used to retrive the {@link javax.net.ssl.SSLContext}
*/
protected SSLImplementation sslImplementation;
/**
* <p>
* Invokes {@link com.sun.grizzly.ssl.SSLAsyncProtocolFilter#AsyncProtocolFilter(Class, java.net.InetAddress, int)}
* with a <code>null</code> {@link InetAddress}.
* </p>
*
* @param algorithmClass the {@link StreamAlgorithm}
* @param port the network port to associate with this filter
* @param sslImplementation the {@link SSLImplementation} to associate with
* this filter
*
* @deprecated Use {@link com.sun.grizzly.ssl.SSLAsyncProtocolFilter#AsyncProtocolFilter(Class, java.net.InetAddress, int)}
*/
@Deprecated
public SSLAsyncProtocolFilter(Class algorithmClass, int port,
SSLImplementation sslImplementation) {
super(algorithmClass, port);
this.sslImplementation = sslImplementation;
}
/**
* <p>
* Constructs a new <code>SSLAsyncProtocolFilter</code>.
* </p>
*
* @param algorithmClass the {@link StreamAlgorithm}
* @param address the network address to associate with this filter
* @param port the network port to associate with this filter
* @param sslImplementation the {@link SSLImplementation} to associate with
* this filter
*/
public SSLAsyncProtocolFilter(Class algorithmClass,
InetAddress address,
int port,
SSLImplementation sslImplementation) {
super(algorithmClass, address, port);
this.sslImplementation = sslImplementation;
}
/**
* {@inheritDoc}
*/
@Override
protected void configureProcessorTask(ProcessorTask processorTask,
Context context, StreamAlgorithm streamAlgorithm, InputStream inputStream) {
super.configureProcessorTask(processorTask, context,
streamAlgorithm, inputStream);
WorkerThread workerThread = (WorkerThread) Thread.currentThread();
SSLSupport sslSupport = sslImplementation.
getSSLSupport(workerThread.getSSLEngine());
processorTask.setSSLSupport(sslSupport);
// SSLAsyncProcessorTask should be initialized
if (!processorTask.isInitialized()) {
processorTask.initialize();
}
SSLAsyncOutputBuffer outputBuffer =
((SSLAsyncProcessorTask)processorTask).getSSLAsyncOutputBuffer();
outputBuffer.setSSLEngine(workerThread.getSSLEngine());
outputBuffer.setOutputBB(workerThread.getOutputBB());
}
/**
* {@inheritDoc}
*/
@Override
protected InputReader createInputReader() {
return new SSLAsyncStream(ByteBufferFactory.allocateView(bbSize,false));
}
/**
* {@inheritDoc}
*/
@Override
protected void configureInputBuffer(
InputReader inputStream, Context context,
HttpWorkerThread workerThread) {
inputStream.setSelectionKey(context.getSelectionKey());
inputStream.setSslEngine(workerThread.getSSLEngine());
((SSLAsyncStream) inputStream).setInputBB(workerThread.getInputBB());
}
/**
* {@inheritDoc}
*/
@Override
protected boolean isSecure() {
return true;
}
}
|
[
"srini@appdynamics.com"
] |
srini@appdynamics.com
|
1adbdfaf220635c657d2dd2024fadbd816d96b82
|
4fc5c337959217bfdc5d4971874b721d566d05ab
|
/core/src/test/java/com/github/weisj/darklaf/ui/demo/DemoExecutor.java
|
1c592c0dd62b228ad6ab24f6114a9676ca9cae30
|
[
"MIT"
] |
permissive
|
weisJ/darklaf
|
dffd809b86d451bb088150df03bc5d54c7efa846
|
0622af33ba287b33f415e062158dfe4cc7b0d763
|
refs/heads/master
| 2023-07-27T06:08:22.902495
| 2023-05-26T07:22:31
| 2023-05-29T18:38:27
| 207,628,269
| 439
| 53
|
MIT
| 2023-08-27T19:41:22
| 2019-09-10T18:00:09
|
Java
|
UTF-8
|
Java
| false
| false
| 7,810
|
java
|
/*
* MIT License
*
* Copyright (c) 2021-2022 Jannis Weis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.github.weisj.darklaf.ui.demo;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.Window;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.atomic.AtomicReference;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.jetbrains.annotations.NotNull;
import com.github.weisj.darklaf.DarkLaf;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.platform.SystemInfo;
import com.github.weisj.darklaf.properties.icons.IconLoader;
import com.github.weisj.darklaf.settings.ThemeSettings;
import com.github.weisj.darklaf.theme.Theme;
import com.github.weisj.darklaf.theme.spec.PreferredThemeStyle;
import com.github.weisj.swingdsl.inspector.InspectorKt;
public final class DemoExecutor {
public static boolean isRunningOnModulePath() {
if (SystemInfo.isJava9OrGreater) {
try {
Object module = Class.class.getMethod("getModule").invoke(DarkLaf.class);
Class<?> moduleClass = Class.forName("java.lang.Module");
return Boolean.TRUE.equals(moduleClass.getMethod("isNamed").invoke(module));
} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException
| ClassNotFoundException e) {
return false;
}
}
return false;
}
public static Theme getPreferredTheme() {
PreferredThemeStyle themeStyle = LafManager.getPreferredThemeStyle();
return LafManager.themeForPreferredStyle(
new PreferredThemeStyle(themeStyle.getContrastRule(), themeStyle.getColorToneRule()));
}
public static void showDemo(final ComponentDemo demo) {
showDemo(demo, false);
}
public static AtomicReference<Window> showDemo(final ComponentDemo demo, final boolean asDialog) {
InspectorKt.installInspector();
LafManager.enabledPreferenceChangeReporting(false);
LafManager.addThemePreferenceChangeListener(e -> {
if (ThemeSettings.isInitialized() && ThemeSettings.getInstance().isSystemPreferencesEnabled()) return;
LafManager.installTheme(e);
});
return showDemoWithoutSetup(demo, asDialog);
}
public static AtomicReference<Window> showDemoWithoutSetup(final ComponentDemo demo, final boolean asDialog) {
AtomicReference<Window> windowRef = new AtomicReference<>();
DemoExecutionSpec executionSpec = demo.getExecutionSpec();
if (SystemInfo.isJava9OrGreater && !isRunningOnModulePath()) {
throw new IllegalStateException("Not running on module path");
}
Runnable demoRunnable = () -> {
try {
setupLaf(executionSpec);
Window window = createWindow(demo, asDialog);
executionSpec.configureWindow(window);
Icon icon = executionSpec.getFrameIcon();
if (icon != null) {
window.setIconImage(IconLoader.createFrameIcon(icon, window));
}
window.pack();
configureWindowSize(executionSpec, window);
window.setVisible(true);
window.setLocationRelativeTo(null);
synchronized (windowRef) {
windowRef.set(window);
}
} finally {
synchronized (windowRef) {
windowRef.notifyAll();
}
}
};
if (SwingUtilities.isEventDispatchThread()) {
demoRunnable.run();
} else {
SwingUtilities.invokeLater(demoRunnable);
synchronized (windowRef) {
try {
windowRef.wait();
} catch (InterruptedException e) {
throw new IllegalStateException(e);
}
}
}
return windowRef;
}
@NotNull
private static Window createWindow(final ComponentDemo demo, final boolean asDialog) {
Window window;
if (!asDialog) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle(demo.getName());
frame.setContentPane(demo.getContentPane());
if (demo.getExecutionSpec().hasMenuBar()) {
frame.setJMenuBar(createMenuBar(demo));
}
window = frame;
} else {
JDialog dialog = new JDialog();
dialog.setModalityType(Dialog.ModalityType.MODELESS);
dialog.setTitle(demo.getName());
dialog.setContentPane(demo.getContentPane());
if (demo.getExecutionSpec().hasMenuBar()) {
dialog.setJMenuBar(createMenuBar(demo));
}
window = dialog;
}
return window;
}
private static JMenuBar createMenuBar(final ComponentDemo demo) {
JMenuBar menuBar = new DemoMenuBar();
demo.getExecutionSpec().createMenus().forEach(menuBar::add);
return menuBar;
}
private static void configureWindowSize(DemoExecutionSpec executionSpec, Window window) {
Dimension dimension = executionSpec.getWindowSize();
if (dimension == null) {
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension dim = new Dimension(screenSize.width / 2, screenSize.height / 2);
Dimension targetSize = window.getSize();
targetSize.width = Math.min(targetSize.width, dim.width);
targetSize.height = Math.min(targetSize.height, dim.height);
window.setSize(targetSize);
} else {
window.setSize(dimension);
}
}
private static void setupLaf(DemoExecutionSpec executionSpec) {
if (executionSpec.useDarklaf()) {
if (!LafManager.isInstalled()) {
LafManager.install(executionSpec.getTheme());
}
} else {
installSystemLaf();
}
}
private static void installSystemLaf() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
LafManager.updateLaf();
} catch (ClassNotFoundException | UnsupportedLookAndFeelException | IllegalAccessException
| InstantiationException classNotFoundException) {
classNotFoundException.printStackTrace();
}
}
}
|
[
"31143295+weisJ@users.noreply.github.com"
] |
31143295+weisJ@users.noreply.github.com
|
2610d8e449398bf70510e3759f66120ced55b42f
|
68997877e267f71388a878d37e3380e161f2f1bb
|
/app/src/main/java/com/sy/bottle/servlet/CheckSmsCode_Servlet.java
|
cc9540a650a4bd1f9d0257796d85e3f887cf5f15
|
[] |
no_license
|
jiangadmin/Bottle
|
1af8555efb6d54a314c500ec8e83fe795c20f796
|
582c7ab0eb216400980cd4aae830a3db131b66f6
|
refs/heads/master
| 2020-03-20T00:53:31.757289
| 2018-07-25T01:22:42
| 2018-07-25T01:22:42
| 137,059,653
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,333
|
java
|
package com.sy.bottle.servlet;
import android.app.Activity;
import android.os.AsyncTask;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.sy.bottle.app.MyApp;
import com.sy.bottle.dialog.Loading;
import com.sy.bottle.dialog.ReLogin_Dialog;
import com.sy.bottle.entity.Base_Entity;
import com.sy.bottle.entity.Const;
import com.sy.bottle.entity.Save_Key;
import com.sy.bottle.utils.HttpUtil;
import com.sy.bottle.utils.LogUtil;
import com.sy.bottle.utils.SaveUtils;
import com.sy.bottle.view.TabToast;
/**
* @author: jiangyao
* @date: 2018/5/22
* @Email: www.fangmu@qq.com
* @Phone: 186 6120 1018
* TODO: 校验短信验证码
*/
public class CheckSmsCode_Servlet extends AsyncTask<String, Integer, Base_Entity> {
private static final String TAG = "CheckSmsCode_Servlet";
Activity activity;
String phone;
public CheckSmsCode_Servlet(Activity activity) {
this.activity = activity;
}
@Override
protected Base_Entity doInBackground(String... strings) {
phone = strings[0];
String res = HttpUtil.request(HttpUtil.GET,Const.API + "codes/" + phone + "/" + strings[1],null);
LogUtil.e(TAG, res);
Base_Entity entity;
if (TextUtils.isEmpty(res)) {
entity = new Base_Entity();
entity.setStatus(-1);
entity.setMessage("连接服务器失败");
} else {
try {
entity = new Gson().fromJson(res, Base_Entity.class);
} catch (Exception e) {
entity = new Base_Entity();
entity.setStatus(-2);
entity.setMessage("数据解析失败");
}
}
return entity;
}
@Override
protected void onPostExecute(Base_Entity entity) {
super.onPostExecute(entity);
Loading.dismiss();
switch (entity.getStatus()) {
case 200:
Loading.show(activity, "请稍后");
SaveUtils.setString(Save_Key.S_手机号, phone);
//注册操作
new Register_Servlet().execute();
break;
case 401:
new ReLogin_Dialog();
break;
default:
TabToast.makeText(entity.getMessage());
break;
}
}
}
|
[
"www.fangmu@qq.com"
] |
www.fangmu@qq.com
|
2d884faa95ce93d157c36c3b2b28d28ff77890d0
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.horizon-Horizon/sources/X/C09731os.java
|
fdb20cd8b51f24b00fbf75f8e20470b8fa1fe5ed
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 238
|
java
|
package X;
import java.io.File;
/* renamed from: X.1os reason: invalid class name and case insensitive filesystem */
public class C09731os {
public final File A00;
public C09731os(File file) {
this.A00 = file;
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
f8569c1bfbdb7dd48966b87a9f51dad6296cf07d
|
0864e1d4a2fd63d081ef3f0409b595ef3b0b4dc1
|
/javageci-examples/src/main/java/module-info.java
|
ae726c6a8ab927f37d0640026221ca42df3f5420
|
[
"Apache-2.0"
] |
permissive
|
charleech/javageci
|
452c87f113bad06866f9b7717667a2d53c267eb7
|
7906ceb70bb18d7510e6b12f781b086fbf2e7044
|
refs/heads/master
| 2020-04-18T00:43:19.301508
| 2019-04-16T14:22:22
| 2019-04-16T14:22:22
| 167,088,427
| 0
| 0
|
Apache-2.0
| 2019-04-16T14:22:24
| 2019-01-23T00:20:51
|
Java
|
UTF-8
|
Java
| false
| false
| 221
|
java
|
module geci.examples {
requires geci.engine;
requires geci.tools;
requires geci.api;
requires geci.annotation;
requires geci.core;
requires java.xml;
exports javax0.geci.tutorials.xmlbuilder;
}
|
[
"peter@verhas.com"
] |
peter@verhas.com
|
a8c5ebabc2804a8bfc45d6dd0c129ca69eb840dc
|
5d6447dfb0c343ba1410a549aac89ed3c6bcd48b
|
/src/cn/entity/ItemoutTwo.java
|
0402ffac1ca25a1ef9235255756ac7d9cebc6891
|
[] |
no_license
|
HExinyu33/Y218HFS
|
2c494211429220748b28802cd5c78713ccae631f
|
99f6ce12a673507e117e6b6935edf1d6c8b56379
|
refs/heads/master
| 2020-04-24T13:02:58.070248
| 2019-02-25T00:51:50
| 2019-02-25T00:51:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,668
|
java
|
package cn.entity;
import java.util.Date;
public class ItemoutTwo {
private int iid;
private int iitemid;
private int istorageid;
private int icount;
private Date itime;
private int did;
private String dname;
private int sid;
private String sname;
public int getIid() {
return iid;
}
public void setIid(int iid) {
this.iid = iid;
}
public int getIitemid() {
return iitemid;
}
public void setIitemid(int iitemid) {
this.iitemid = iitemid;
}
public int getIstorageid() {
return istorageid;
}
public void setIstorageid(int istorageid) {
this.istorageid = istorageid;
}
public int getIcount() {
return icount;
}
public void setIcount(int icount) {
this.icount = icount;
}
public Date getItime() {
return itime;
}
public void setItime(Date itime) {
this.itime = itime;
}
public int getDid() {
return did;
}
public void setDid(int did) {
this.did = did;
}
public String getDname() {
return dname;
}
public void setDname(String dname) {
this.dname = dname;
}
public int getSid() {
return sid;
}
public void setSid(int sid) {
this.sid = sid;
}
public String getSname() {
return sname;
}
public void setSname(String sname) {
this.sname = sname;
}
public ItemoutTwo(int iid, int iitemid, int istorageid, int icount, Date itime, int did, String dname, int sid, String sname) {
super();
this.iid = iid;
this.iitemid = iitemid;
this.istorageid = istorageid;
this.icount = icount;
this.itime = itime;
this.did = did;
this.dname = dname;
this.sid = sid;
this.sname = sname;
}
public ItemoutTwo() {
super();
// TODO Auto-generated constructor stub
}
}
|
[
"johndoe@example.com"
] |
johndoe@example.com
|
02577e4749f459a77345b0a54eadb339cce307f4
|
4ac51f07e5e4d5da395caa5cc8c3516923ef3012
|
/taverna-workflowmodel-impl/src/main/java/net/sf/taverna/t2/workflowmodel/impl/DataflowInputPortImpl.java
|
804bc5a52442454f1026ae43e9dcb23bac5c7173
|
[] |
no_license
|
taverna-incubator/incubator-taverna-engine
|
eb2b5d2c956982696e06b9404c6b94a2346417fe
|
1eca6315f88bfd19672114e3f3b574246a2994a5
|
refs/heads/master
| 2021-01-01T18:11:06.502122
| 2015-02-21T23:43:42
| 2015-02-21T23:43:42
| 28,545,860
| 0
| 1
| null | 2015-02-04T15:45:25
| 2014-12-27T20:40:19
|
Java
|
UTF-8
|
Java
| false
| false
| 3,283
|
java
|
/*******************************************************************************
* Copyright (C) 2007 The University of Manchester
*
* Modifications to the initial code base are copyright of their
* respective authors, or their employers as appropriate.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
******************************************************************************/
package net.sf.taverna.t2.workflowmodel.impl;
import net.sf.taverna.t2.invocation.WorkflowDataToken;
import net.sf.taverna.t2.workflowmodel.Dataflow;
import net.sf.taverna.t2.workflowmodel.DataflowInputPort;
import net.sf.taverna.t2.workflowmodel.Datalink;
import net.sf.taverna.t2.workflowmodel.EventForwardingOutputPort;
public class DataflowInputPortImpl extends AbstractEventHandlingInputPort
implements DataflowInputPort {
protected BasicEventForwardingOutputPort internalOutput;
private int granularInputDepth;
private Dataflow dataflow;
DataflowInputPortImpl(String name, int depth, int granularDepth, Dataflow df) {
super(name, depth);
granularInputDepth = granularDepth;
dataflow = df;
internalOutput = new BasicEventForwardingOutputPort(name, depth,
granularDepth);
}
@Override
public int getGranularInputDepth() {
return granularInputDepth;
}
void setDepth(int depth) {
this.depth = depth;
internalOutput.setDepth(depth);
}
void setGranularDepth(int granularDepth) {
this.granularInputDepth = granularDepth;
internalOutput.setGranularDepth(granularDepth);
}
@Override
public EventForwardingOutputPort getInternalOutputPort() {
return internalOutput;
}
/**
* Receive an input event, relay it through the internal output port to all
* connected entities
*/
@Override
public void receiveEvent(WorkflowDataToken t) {
WorkflowDataToken transformedToken = t.pushOwningProcess(dataflow.getLocalName());
/*
* I'd rather avoid casting to the implementation but in this case we're
* in the same package - the only reason to do this is to allow dummy
* implementations of parts of this infrastructure during testing, in
* 'real' use this should always be a dataflowimpl
*/
if (dataflow instanceof DataflowImpl)
((DataflowImpl) dataflow).tokenReceived(transformedToken
.getOwningProcess(), t.getContext());
for (Datalink dl : internalOutput.getOutgoingLinks())
dl.getSink().receiveEvent(transformedToken);
}
@Override
public Dataflow getDataflow() {
return dataflow;
}
@Override
public void setName(String newName) {
this.name = newName;
internalOutput.setName(newName);
}
}
|
[
"stain@apache.org"
] |
stain@apache.org
|
8e1144b4ce28aaba50a7e82fbfa26e59f05dbfbc
|
de47391655e864ca3853fddc0a5835c6bb618148
|
/src/main/java/com/hd/manager/dao/bean/HTDepartmentBean.java
|
f9f3dde7c5207b83b9bffbf305f56799cb1ef4be
|
[] |
no_license
|
changbaolong1989/HANTTEN-WEB
|
ea4b6dd2025bc80f4a6dd846d1998fc9b61cf1f7
|
b0016bbd28141a704f60a4a1c5b4d5f4017a6719
|
refs/heads/master
| 2020-12-27T11:46:12.511852
| 2020-02-03T05:03:09
| 2020-02-03T05:04:41
| 237,890,828
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,719
|
java
|
package com.hd.manager.dao.bean;
import com.hd.base.bean.BaseBean;
public class HTDepartmentBean extends BaseBean {
/**
* 部门ID
*/
private String departmentId;
/**
*部门名称
*/
private String departmentName;
/**
*部门按钮状态
*/
private String departmentBtnFlag;
/**
*层级
*/
private String departmentLevel;
/**
*所属业务类型
*/
private String bussinessType;
/**
*父级ID
*/
private String parentDepartmentId;
/**
*父级名称
*/
private String parentDepartmentName;
/**
*部门职位
*/
private String departmentJob;
/**
* 用户ID
*/
private String userId;
/*----------------------get/set方法--------------------------------*/
public String getDepartmentId() {
return departmentId;
}
public void setDepartmentId(String departmentId) {
this.departmentId = departmentId;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public String getDepartmentLevel() {
return departmentLevel;
}
public void setDepartmentLevel(String departmentLevel) {
this.departmentLevel = departmentLevel;
}
public String getBussinessType() {
return bussinessType;
}
public void setBussinessType(String bussinessType) {
this.bussinessType = bussinessType;
}
public String getParentDepartmentId() {
return parentDepartmentId;
}
public void setParentDepartmentId(String parentDepartmentId) {
this.parentDepartmentId = parentDepartmentId;
}
public String getParentDepartmentName() {
return parentDepartmentName;
}
public void setParentDepartmentName(String parentDepartmentName) {
this.parentDepartmentName = parentDepartmentName;
}
public String getDepartmentJob() {
return departmentJob;
}
public void setDepartmentJob(String departmentJob) {
this.departmentJob = departmentJob;
}
/**
* userId
*
* @return userId 项目描述(略)
*/
public String getUserId() {
return userId;
}
/**
* userId
*
* @param userId 项目描述(略)
*/
public void setUserId(String userId) {
this.userId = userId;
}
public String getDepartmentBtnFlag() {
return departmentBtnFlag;
}
public void setDepartmentBtnFlag(String departmentBtnFlag) {
this.departmentBtnFlag = departmentBtnFlag;
}
}
|
[
"13940572922@163.com"
] |
13940572922@163.com
|
ddc79c01786dcf3fe7be42ad913c472d358983db
|
f009dc33f9624aac592cb66c71a461270f932ffa
|
/src/main/java/com/alipay/api/response/AlipayOfflineMaterialImageUploadResponse.java
|
587d49234c2d2b524b86e7b6026a832c64b73e7b
|
[
"Apache-2.0"
] |
permissive
|
1093445609/alipay-sdk-java-all
|
d685f635af9ac587bb8288def54d94e399412542
|
6bb77665389ba27f47d71cb7fa747109fe713f04
|
refs/heads/master
| 2021-04-02T16:49:18.593902
| 2020-03-06T03:04:53
| 2020-03-06T03:04:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,012
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.offline.material.image.upload response.
*
* @author auto create
* @since 1.0, 2019-03-08 15:29:11
*/
public class AlipayOfflineMaterialImageUploadResponse extends AlipayResponse {
private static final long serialVersionUID = 6771458489371276847L;
/**
* 图片/视频在商家中心的唯一标识
*/
@ApiField("image_id")
private String imageId;
/**
* 图片/视频的访问地址(为了防止盗链,该地址不允许嵌在其他页面展示,只能在新页面展示)
*/
@ApiField("image_url")
private String imageUrl;
public void setImageId(String imageId) {
this.imageId = imageId;
}
public String getImageId( ) {
return this.imageId;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getImageUrl( ) {
return this.imageUrl;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a604623fe00385e6988238bd71c1d729ffe24ea2
|
6732796da80d70456091ec1c3cc1ee9748b97cc5
|
/TS/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/JsonValueExtTypeIdTest.java
|
7293debb8303e666e24fc11e13b2a4fab431d3a3
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
nharrand/argo
|
f88c13a1fb759f44fab6dbc6614de3c0c0554549
|
c09fccba668e222a1b349b95d34177b5964e78e1
|
refs/heads/main
| 2023-08-13T10:39:48.526694
| 2021-10-13T09:40:19
| 2021-10-13T09:40:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,857
|
java
|
package com.fasterxml.jackson.databind.jsontype.ext;
import java.io.*;
import java.math.BigDecimal;
import java.util.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
@SuppressWarnings("serial")
public class JsonValueExtTypeIdTest extends BaseMapTest
{
// The following is required for the testDecimalMetadata test case. That case fails.
@JsonTypeName(value = "decimalValue")
public static class DecimalValue {
private BigDecimal value;
public DecimalValue() { value = new BigDecimal("111.1"); }
@JsonValue
public BigDecimal getValue(){ return value; }
}
@JsonPropertyOrder({"key","value"})
public static class DecimalEntry {
public DecimalEntry() {}
public String getKey() { return "num"; }
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.EXTERNAL_PROPERTY)
public DecimalValue getValue(){
return new DecimalValue();
}
}
public static class DecimalMetadata {
@JsonProperty("metadata")
public List<DecimalEntry> getMetadata() {
return new ArrayList<DecimalEntry>() { {add(new DecimalEntry());} };
}
}
// The following succeeds. It's included for comparison
@JsonTypeName(value = "doubleValue")
public static class DoubleValue {
private Double value;
public DoubleValue() { value = 1234.25; }
@JsonValue
public Double getValue() { return value; }
}
@JsonPropertyOrder({"key","value"})
public static class DoubleEntry {
public DoubleEntry(){}
public String getKey(){ return "num"; }
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.EXTERNAL_PROPERTY)
public DoubleValue getValue(){ return new DoubleValue(); }
}
public static class DoubleMetadata {
@JsonProperty("metadata")
public List<DoubleEntry> getMetadata() {
return new ArrayList<DoubleEntry>() { {add(new DoubleEntry());} };
}
}
final ObjectMapper MAPPER = new ObjectMapper();
public void testDoubleMetadata() throws IOException {
DoubleMetadata doub = new DoubleMetadata();
String expected = "{\"metadata\":[{\"key\":\"num\",\"value\":1234.25,\"@type\":\"doubleValue\"}]}";
String json = MAPPER.writeValueAsString(doub);
//ARGO_PLACEBO
assertEquals("Serialized json not equivalent", expected, json);
}
public void testDecimalMetadata() throws IOException{
DecimalMetadata dec = new DecimalMetadata();
String expected = "{\"metadata\":[{\"key\":\"num\",\"value\":111.1,\"@type\":\"decimalValue\"}]}";
String json = MAPPER.writeValueAsString(dec);
//ARGO_PLACEBO
assertEquals("Serialized json not equivalent", expected, json);
}
}
|
[
"nicolas.harrand@gmail.com"
] |
nicolas.harrand@gmail.com
|
d0e994fda1f562a2579ccb47edf17dcb972679e2
|
e3fda3bef6562966ffff79c0b34f5b14c8974cba
|
/processor/src/test/java/org/mapstruct/ap/test/selection/generics/ErroneousSourceTargetMapper2.java
|
90e7aff95706d3be4959a8f217801a0d3df13ec5
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
cybernetics/mapstruct
|
4dfaccb290ab1f164af91cf498270d532e06160b
|
80383dd122951c93bac51bebf0804c4d90b3b532
|
refs/heads/master
| 2020-12-29T01:41:47.064922
| 2016-07-17T15:00:42
| 2016-07-17T15:00:42
| 63,751,501
| 1
| 0
| null | 2016-07-20T04:57:55
| 2016-07-20T04:57:53
| null |
UTF-8
|
Java
| false
| false
| 1,180
|
java
|
/**
* Copyright 2012-2016 Gunnar Morling (http://www.gunnarmorling.de/)
* and/or other contributors as indicated by the @authors tag. See the
* copyright.txt file in the distribution for a full listing of all
* contributors.
*
* 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.mapstruct.ap.test.selection.generics;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper( uses = GenericTypeMapper.class )
public interface ErroneousSourceTargetMapper2 {
ErroneousSourceTargetMapper2 INSTANCE = Mappers.getMapper( ErroneousSourceTargetMapper2.class );
ErroneousTarget2 sourceToTarget(ErroneousSource2 source);
}
|
[
"gunnar.morling@googlemail.com"
] |
gunnar.morling@googlemail.com
|
49de77cf2bba68aa6c4a9191d0ddcd60e84054b3
|
d26f11c1611b299e169e6a027f551a3deeecb534
|
/workbench/org/fdesigner/workbench/internal/IChangeListener.java
|
9151cefc5bb0eccb9d0c9a4715cbb97d868a5204
|
[] |
no_license
|
WeControlTheFuture/fdesigner-ui
|
1bc401fd71a57985544220b9f9e42cf18db6491d
|
62efb51e57e5d7f25654e67ef8b2762311b766b6
|
refs/heads/master
| 2020-11-24T15:00:24.450846
| 2019-12-27T08:47:23
| 2019-12-27T08:47:23
| 228,199,674
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 919
|
java
|
/*******************************************************************************
* Copyright (c) 2004, 2006 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.fdesigner.workbench.internal;
/**
* Interface that can receive change notifiecations from a Model object
*/
public interface IChangeListener {
/**
* Called with false when the listener is first attached to the model, and
* called with true every time the model's state changes.
*/
void update(boolean changed);
}
|
[
"491676539@qq.com"
] |
491676539@qq.com
|
a45024bf3f25409a33ee89ac03a1dcea165ed1e7
|
90ac4c91b60a53f6f7143639f20a8bbf6ea687b0
|
/DKClothing/src/main/java/com/dk/clothing/entities/LadiesDenim.java
|
746230a8b9cb69d4560ff14dbd019c483de318a5
|
[] |
no_license
|
abdulahadanwer/DKClothing
|
bf619e5dd3fd56fad89308b899cbdea061397224
|
2cfc500487dfa13c7ea539b67fe0047576bf6bf8
|
refs/heads/master
| 2021-05-09T11:42:51.964512
| 2018-04-02T00:27:52
| 2018-04-02T00:27:52
| 118,996,104
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,714
|
java
|
package com.dk.clothing.entities;
import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
/**
* The persistent class for the ladies_denim database table.
*
*/
@Entity
@Table(name="ladies_denim")
@NamedQuery(name="LadiesDenim.findAll", query="SELECT l FROM LadiesDenim l")
public class LadiesDenim extends Code implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="denim_id")
private int denimId;
//bi-directional many-to-one association to LadiesDenimSizeCdtb
@ManyToOne
@JoinColumn(name="product_status_cd")
private ProductStatusCdtb productStatusCdtb;
//bi-directional many-to-one association to LadiesDenimSizeCdtb
@ManyToOne
@JoinColumn(name="ladies_denim_size_cd")
private LadiesDenimSizeCdtb ladiesDenimSizeCdtb;
//bi-directional many-to-one association to Product
@ManyToOne
@JoinColumn(name="product_id")
private Product product;
public LadiesDenim() {
}
public int getDenimId() {
return this.denimId;
}
public void setDenimId(int denimId) {
this.denimId = denimId;
}
public LadiesDenimSizeCdtb getLadiesDenimSizeCdtb() {
return this.ladiesDenimSizeCdtb;
}
public void setLadiesDenimSizeCdtb(LadiesDenimSizeCdtb ladiesDenimSizeCdtb) {
this.ladiesDenimSizeCdtb = ladiesDenimSizeCdtb;
}
public Product getProduct() {
return this.product;
}
public void setProduct(Product product) {
this.product = product;
}
public ProductStatusCdtb getProductStatusCdtb() {
return productStatusCdtb;
}
public void setProductStatusCdtb(ProductStatusCdtb productStatusCdtb) {
this.productStatusCdtb = productStatusCdtb;
}
}
|
[
"you@example.com"
] |
you@example.com
|
8cc6ee6af7d121495be13e4b8a1365697bcbf150
|
5d6c374a2518d469d674a1327d21d8e0cf2b54f7
|
/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java
|
24aaa9f7ba213cf21a81d3f98e579935d3f338fd
|
[] |
no_license
|
HGitMaster/geotools-osgi
|
648ebd9343db99a1e2688d9aefad857f6521898d
|
09f6e327fb797c7e0451e3629794a3db2c55c32b
|
refs/heads/osgi
| 2021-01-19T08:33:56.014532
| 2014-03-19T18:04:03
| 2014-03-19T18:04:03
| 4,750,321
| 3
| 0
| null | 2014-03-19T13:50:54
| 2012-06-22T11:21:01
|
Java
|
UTF-8
|
Java
| false
| false
| 2,538
|
java
|
/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2005-2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.maven.taglet;
import java.util.regex.Matcher;
import org.junit.*;
import static org.junit.Assert.*;
/**
* Tests the {@link Source} taglet.
*
* @source $URL: http://svn.osgeo.org/geotools/tags/8.0-M1/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java $
* @version $Id: SourceTest.java 36993 2011-04-22 12:19:55Z jive $
* @author Martin Desruisseaux
*/
public class SourceTest {
/**
* Tests the regular expression validity using the tag for this source file.
*/
@Test
public void testCurrentTag() {
Source s = new Source();
Matcher m;
String tag, url, group, category, module;
tag = "$URL: http://svn.osgeo.org/geotools/tags/8.0-M1/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java $";
//The url above is only converted from $URL: http://svn.osgeo.org/geotools/tags/8.0-M1/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java $ if we have obtained the
// file using a standard access mechanism to SVN. This fails, for
// example, with mercurial converstion 'hg convert svnrepo hgrepo'
if ( !tag.equals("$URL: http://svn.osgeo.org/geotools/tags/8.0-M1/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java $") ){
m = s.findURL.matcher(tag);
assertTrue(m.matches());
// Try to match the URL provided by SVN.
url = m.group(1).trim();
m = s.findModule.matcher(url);
assertTrue(m.matches());
group = m.group(1);
category = m.group(2);
module = m.group(3);
assertEquals("build", group);
assertEquals("maven", category);
assertEquals("javadoc", module);
}
}
}
|
[
"devnull@localhost"
] |
devnull@localhost
|
95ad05347fbea1aa97af7b7779e5c5a2dbdae6f1
|
c0fe21b86f141256c85ab82c6ff3acc56b73d3db
|
/apigateway/src/main/java/com/jdcloud/sdk/service/apigateway/model/QueryKeyGroupListResult.java
|
46d05a0921e0e3db1e3ba077816ec0c2c91a3fbc
|
[
"Apache-2.0"
] |
permissive
|
jdcloud-api/jdcloud-sdk-java
|
3fec9cf552693520f07b43a1e445954de60e34a0
|
bcebe28306c4ccc5b2b793e1a5848b0aac21b910
|
refs/heads/master
| 2023-07-25T07:03:36.682248
| 2023-07-25T06:54:39
| 2023-07-25T06:54:39
| 126,275,669
| 47
| 61
|
Apache-2.0
| 2023-09-07T08:41:24
| 2018-03-22T03:41:41
|
Java
|
UTF-8
|
Java
| false
| false
| 2,072
|
java
|
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* API调用者密钥
* 关于API调用者密钥操作的相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.apigateway.model;
import java.util.List;
import java.util.ArrayList;
import com.jdcloud.sdk.service.apigateway.model.BindGroups;
import com.jdcloud.sdk.service.JdcloudResult;
/**
* 查询可绑定部署列表
*/
public class QueryKeyGroupListResult extends JdcloudResult implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* bindGroups
*/
private List<BindGroups> bindGroups;
/**
* get bindGroups
*
* @return
*/
public List<BindGroups> getBindGroups() {
return bindGroups;
}
/**
* set bindGroups
*
* @param bindGroups
*/
public void setBindGroups(List<BindGroups> bindGroups) {
this.bindGroups = bindGroups;
}
/**
* set bindGroups
*
* @param bindGroups
*/
public QueryKeyGroupListResult bindGroups(List<BindGroups> bindGroups) {
this.bindGroups = bindGroups;
return this;
}
/**
* add item to bindGroups
*
* @param bindGroup
*/
public void addBindGroup(BindGroups bindGroup) {
if (this.bindGroups == null) {
this.bindGroups = new ArrayList<>();
}
this.bindGroups.add(bindGroup);
}
}
|
[
"tancong@jd.com"
] |
tancong@jd.com
|
abca40621ce7cb42bba45544b914fb29078e52a3
|
4536078b4070fc3143086ff48f088e2bc4b4c681
|
/v1.1.2/decompiled/l/a/b/a/d/g0/z.java
|
b416b82125c2959bcb13d52235ed7bb29dc1dd07
|
[] |
no_license
|
olealgoritme/smittestopp_src
|
485b81422752c3d1e7980fbc9301f4f0e0030d16
|
52080d5b7613cb9279bc6cda5b469a5c84e34f6a
|
refs/heads/master
| 2023-05-27T21:25:17.564334
| 2023-05-02T14:24:31
| 2023-05-02T14:24:31
| 262,846,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 676
|
java
|
package l.a.b.a.d.g0;
import java.util.Map;
import l.a.b.a.b.h;
public class z
{
public h a;
public e b;
public e0 c;
public int d = 1;
public z(h paramh, e parame, e0 parame0)
{
a = paramh;
b = parame;
c = parame0;
}
public void a()
{
m localm = c.f;
k0 localk0 = H.L;
if (localk0 != null)
{
if ((localm instanceof q))
{
p.remove(a);
b.c(false);
}
else
{
q.remove(a);
b.c(false);
}
b.l();
return;
}
throw null;
}
}
/* Location:
* Qualified Name: l.a.b.a.d.g0.z
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"olealgoritme@gmail.com"
] |
olealgoritme@gmail.com
|
69f32ad4033f04bdda548b32e630a011ef9f9ba7
|
e4e000db442e88dbad133dad4603521fea5f509e
|
/src/problems/stack/RemoveAllAdjacentDuplicates.java
|
50bd31391376f37977c1274ea80d3b690d65730a
|
[] |
no_license
|
XurajB/data_structure_algorithms
|
363669c2c4098a3e3bab5069a1d7ef11b8a899a2
|
3f7825d1bf68deaa13d08bd616ec4425a26e5ac9
|
refs/heads/master
| 2023-03-13T17:50:45.818163
| 2021-03-05T03:20:22
| 2021-03-05T03:20:22
| 223,202,201
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,488
|
java
|
package problems.stack;
import java.util.Stack;
/**
* Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them.
* We repeatedly make duplicate removals on S until we no longer can.
* Return the final string after all such duplicate removals have been made. It is guaranteed the answer is unique.
*/
public class RemoveAllAdjacentDuplicates {
public static void main(String[] args) {
System.out.println(removeDuplicates("abbaca"));
}
// O(N), O(N)
private static String removeDuplicates(String S) {
Stack<Character> stack = new Stack<>();
for (int i = 0; i < S.length(); i++) {
if (!stack.isEmpty() && S.charAt(i) == stack.peek()) {
stack.pop();
} else {
stack.push(S.charAt(i));
}
}
StringBuilder sb = new StringBuilder();
while (!stack.isEmpty()) {
sb.append(stack.pop());
}
return sb.reverse().toString();
}
//// using sb as stack
private static String removeDuplicates2(String S) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < S.length(); i++) {
if (sb.length() > 0 && S.charAt(i) == sb.charAt(sb.length() - 1)) {
sb.deleteCharAt(sb.length() - 1);
} else {
sb.append(S.charAt(i));
}
}
return sb.toString();
}
}
|
[
"surajbh@hotmail.com"
] |
surajbh@hotmail.com
|
501566174585c695e0f81afca714cff4a87a4f83
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/P40_HarmonyOS_2.0.0_Developer_Beta1/src/main/java/com/huawei/okhttp3/internal/http/StatusLine.java
|
fd88524de4cdcb9846fd0112bd16578578f9d8ca
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,059
|
java
|
package com.huawei.okhttp3.internal.http;
import com.huawei.okhttp3.Protocol;
import com.huawei.okhttp3.Response;
import java.io.IOException;
import java.net.ProtocolException;
@Deprecated
public final class StatusLine {
public static final int HTTP_CONTINUE = 100;
public static final int HTTP_PERM_REDIRECT = 308;
public static final int HTTP_TEMP_REDIRECT = 307;
public final int code;
public final String message;
public final Protocol protocol;
public StatusLine(Protocol protocol2, int code2, String message2) {
this.protocol = protocol2;
this.code = code2;
this.message = message2;
}
public static StatusLine get(Response response) {
return new StatusLine(response.protocol(), response.code(), response.message());
}
public static StatusLine parse(String statusLine) throws IOException {
Protocol protocol2;
int codeStart;
if (statusLine.startsWith("HTTP/1.")) {
if (statusLine.length() < 9 || statusLine.charAt(8) != ' ') {
throw new ProtocolException("Unexpected status line: " + statusLine);
}
int httpMinorVersion = statusLine.charAt(7) - '0';
codeStart = 9;
if (httpMinorVersion == 0) {
protocol2 = Protocol.HTTP_1_0;
} else if (httpMinorVersion == 1) {
protocol2 = Protocol.HTTP_1_1;
} else {
throw new ProtocolException("Unexpected status line: " + statusLine);
}
} else if (statusLine.startsWith("ICY ")) {
protocol2 = Protocol.HTTP_1_0;
codeStart = 4;
} else {
throw new ProtocolException("Unexpected status line: " + statusLine);
}
if (statusLine.length() >= codeStart + 3) {
try {
int code2 = Integer.parseInt(statusLine.substring(codeStart, codeStart + 3));
String message2 = "";
if (statusLine.length() > codeStart + 3) {
if (statusLine.charAt(codeStart + 3) == ' ') {
message2 = statusLine.substring(codeStart + 4);
} else {
throw new ProtocolException("Unexpected status line: " + statusLine);
}
}
return new StatusLine(protocol2, code2, message2);
} catch (NumberFormatException e) {
throw new ProtocolException("Unexpected status line: " + statusLine);
}
} else {
throw new ProtocolException("Unexpected status line: " + statusLine);
}
}
public String toString() {
StringBuilder result = new StringBuilder();
result.append(this.protocol == Protocol.HTTP_1_0 ? "HTTP/1.0" : "HTTP/1.1");
result.append(' ');
result.append(this.code);
if (this.message != null) {
result.append(' ');
result.append(this.message);
}
return result.toString();
}
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
9ce25d2bd3b8116f6926493456fb5c71d8dc080a
|
9e6cf5995e1e0d5aed1e8c20db97095d50f6d31f
|
/src/main/java/com/mbcrmsys/pojo/ServeType.java
|
220d4bd44ac766cbc038dd7121571886f7c21604
|
[] |
no_license
|
TACHAI/MBCrmSys
|
e480a0a91dbe3ce691cbb0ef882770195e0303ef
|
f11cd4414fe230e478b4d093965ff541bd971989
|
refs/heads/master
| 2021-04-27T16:13:57.952111
| 2018-09-01T11:28:36
| 2018-09-01T11:28:36
| 122,484,455
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 413
|
java
|
package com.mbcrmsys.pojo;
public class ServeType {
private Integer seId;
private String seName;
public Integer getSeId() {
return seId;
}
public void setSeId(Integer seId) {
this.seId = seId;
}
public String getSeName() {
return seName;
}
public void setSeName(String seName) {
this.seName = seName == null ? null : seName.trim();
}
}
|
[
"1206966083@qq.com"
] |
1206966083@qq.com
|
65755c56f296cfae6de71ed8e30795438313fa68
|
a0e4f155a7b594f78a56958bca2cadedced8ffcd
|
/header/src/main/java/org/zstack/header/storage/primary/PrimaryToBackupStorageMediator.java
|
70e03634cbe0c5397988891c989bba20d86b2d76
|
[
"Apache-2.0"
] |
permissive
|
zhao-qc/zstack
|
e67533eabbbabd5ae9118d256f560107f9331be0
|
b38cd2324e272d736f291c836f01966f412653fa
|
refs/heads/master
| 2020-08-14T15:03:52.102504
| 2019-10-14T03:51:12
| 2019-10-14T03:51:12
| 215,187,833
| 3
| 0
|
Apache-2.0
| 2019-10-15T02:27:17
| 2019-10-15T02:27:16
| null |
UTF-8
|
Java
| false
| false
| 259
|
java
|
package org.zstack.header.storage.primary;
import java.util.List;
public interface PrimaryToBackupStorageMediator {
String getSupportedPrimaryStorageType();
String getSupportedBackupStorageType();
List<String> getSupportedHypervisorTypes();
}
|
[
"xuexuemiao@yeah.net"
] |
xuexuemiao@yeah.net
|
d9bfd11a1a1a9196848bdd44ebe21fefebbc7436
|
844278ef535f10214b471008bc76b212c8ca2d7b
|
/src/main/java/Algorithm/Solutions/LeetCode/LeetCode57.java
|
c8d06382239e26e07acc381be61da00fcd62f351
|
[] |
no_license
|
Sunxy88/PracticingCoding
|
3dd510a54d50f90acfe8506a196c12ae28cbf217
|
73027bc56cabc24d39ac8cc8c18bf1665504453f
|
refs/heads/master
| 2023-08-29T13:26:01.981206
| 2021-10-22T12:55:14
| 2021-10-22T12:55:14
| 255,333,515
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,080
|
java
|
package Algorithm.Solutions.LeetCode;
import java.util.ArrayList;
import java.util.List;
public class LeetCode57 {
public int[][] insert(int[][] intervals, int[] newInterval) {
int left = newInterval[0];
int right = newInterval[1];
boolean flag = false;
List<int[]> ansList = new ArrayList<>();
for (int[] interval : intervals) {
if (interval[0] > right) {
if (!flag) {
ansList.add(new int[]{left, right});
flag = true;
}
ansList.add(interval);
} else if (interval[1] < left) {
ansList.add(interval);
} else {
left = Math.min(interval[0], left);
right = Math.max(interval[1], right);
}
}
if (!flag) {
ansList.add(new int[]{left, right});
}
int[][] ans = new int[ansList.size()][2];
for (int i = 0; i < ans.length; i++) {
ans[i] = ansList.get(i);
}
return ans;
}
}
|
[
"sungxisx@icloud.com"
] |
sungxisx@icloud.com
|
de7e32ac2d3b5af605ca6e2082634d182d56da90
|
45e5b8e4d43925525e60fe3bc93dc43a04962c4a
|
/nodding/libs/GlassVoice/com/google/android/speech/message/S3RequestStream.java
|
cd1f3299d5d7b7735804154e258ad5119394f65c
|
[
"BSD-3-Clause"
] |
permissive
|
ramonwirsch/glass_snippets
|
1818ba22b4c11cdb8a91714e00921028751dd405
|
2495edec63efc051e3a10bf5ed8089811200e9ad
|
refs/heads/master
| 2020-04-08T09:37:22.980415
| 2014-06-24T12:07:53
| 2014-06-24T12:07:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,185
|
java
|
package com.google.android.speech.message;
import com.google.android.speech.utils.HexUtils;
import com.google.common.base.Preconditions;
import com.google.speech.s3.S3.S3Request;
import java.io.Closeable;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.ByteBuffer;
public class S3RequestStream
implements Closeable
{
private static final boolean DEBUG = false;
private static final byte[] S3_STREAM_PREFIX = { 0, 0 };
private static final String TAG = "S3RequestStream";
private final boolean mChunked;
private final String mHeader;
private boolean mHeaderWritten;
private final OutputStream mOut;
private final ByteBuffer mScratch = ByteBuffer.wrap(new byte[1024]);
public S3RequestStream(OutputStream paramOutputStream, String paramString, boolean paramBoolean)
{
this.mOut = paramOutputStream;
this.mHeader = paramString;
this.mChunked = paramBoolean;
}
private void internalWrite(S3.S3Request paramS3Request)
throws IOException
{
maybeChunkAndSendBytes(paramS3Request.toByteArray());
}
private void maybeChunkAndSendBytes(byte[] paramArrayOfByte)
throws IOException
{
int i = paramArrayOfByte.length;
this.mScratch.putInt(i);
try
{
if (!this.mChunked)
{
this.mOut.write(this.mScratch.array(), 0, this.mScratch.position());
this.mOut.write(paramArrayOfByte);
this.mScratch.clear();
}
while (true)
{
return;
while (i > 0)
{
int j = Math.min(this.mScratch.remaining(), i);
this.mScratch.put(paramArrayOfByte, paramArrayOfByte.length - i, j);
i -= j;
if ((this.mScratch.remaining() == 0) || (i == 0))
{
this.mOut.write(this.mScratch.array(), 0, this.mScratch.position());
this.mScratch.clear();
}
}
}
}
finally
{
this.mScratch.clear();
}
}
public void close()
throws IOException
{
this.mOut.close();
}
public void flush()
throws IOException
{
this.mOut.flush();
}
public void write(S3.S3Request paramS3Request)
throws IOException
{
Preconditions.checkState(this.mHeaderWritten);
if (this.mScratch.position() == 0);
for (boolean bool = true; ; bool = false)
{
Preconditions.checkState(bool);
internalWrite(paramS3Request);
return;
}
}
public void writeHeader(S3.S3Request paramS3Request)
throws IOException
{
if (!this.mHeaderWritten);
for (boolean bool1 = true; ; bool1 = false)
{
Preconditions.checkState(bool1);
int i = this.mScratch.position();
boolean bool2 = false;
if (i == 0)
bool2 = true;
Preconditions.checkState(bool2);
this.mScratch.put(S3_STREAM_PREFIX);
this.mScratch.put(HexUtils.hexToBytes(this.mHeader.replace("_", "")));
internalWrite(paramS3Request);
this.mHeaderWritten = true;
return;
}
}
}
/* Location: /home/phil/workspace/glass_hello_world/libs/GlassVoice-dex2jar.jar
* Qualified Name: com.google.android.speech.message.S3RequestStream
* JD-Core Version: 0.6.2
*/
|
[
"scholl@ess.tu-darmstadt.de"
] |
scholl@ess.tu-darmstadt.de
|
0c37f5cf1926b76b99f019ebad55d94e26decb32
|
0d07286a1f5236159658fe76825485435bfc6bf4
|
/PhD/SmallScripts/src/main/java/misc/MatrixGetSubSetOfColumns.java
|
ef9892a02eb315c513ba09b286b7c1ceacb0c886
|
[] |
no_license
|
harmjanwestra/personalcode
|
8801b58d8ad6a586020936f69f809e5a9a2b3a42
|
9955d3164131edf431b21c02eee91feff37f1a5d
|
refs/heads/master
| 2023-02-16T16:39:50.434889
| 2023-01-23T20:44:31
| 2023-01-23T20:44:31
| 125,522,564
| 0
| 1
| null | 2023-01-23T20:45:58
| 2018-03-16T13:51:48
|
Java
|
UTF-8
|
Java
| false
| false
| 2,012
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package misc;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import umcg.genetica.io.text.TextFile;
import umcg.genetica.math.matrix.DoubleMatrixDataset;
/**
*
* @author harmjan
*/
public class MatrixGetSubSetOfColumns {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String file1 = "/Volumes/iSnackHD/Data/Projects/2013-06-CellTypeSpecificEQTLs/Datasets/2013-07-08-Groningen/Normalization/ExpressionData/ExpressionDataSamplePCQC-QNormLog2Transform.CovariatesRemoved.txt.gz";
String file2 = "/Volumes/iSnackHD/Data/GeneticalGenomicsDatasets/BloodHT12/BloodHT12OriginalExpressionData4SNPPCRemoved/ExpressionData.txt.gz.40PCAsOverSamplesRemoved.txt.gz";
String query = "2000128";
String query2 = "130717";
try {
DoubleMatrixDataset<String, String> ds1 = new DoubleMatrixDataset<String, String>(file1);
DoubleMatrixDataset<String, String> ds2 = new DoubleMatrixDataset<String, String>(file2);
ds2.recalculateHashMaps();
Integer rowId11 = ds1.hashRows.get(query);
Integer rowId12 = ds1.hashRows.get(query2);
Integer rowId21 = ds2.hashRows.get(query);
Integer rowId22 = ds2.hashRows.get(query2);
for (int i = 0; i < ds2.nrCols; i++) {
String sample = ds2.colObjects.get(i);
Integer otherDsSampleId = ds2.hashCols.get(sample);
if (otherDsSampleId != null) {
System.out.println(sample + "\t" + ds1.rawData[rowId11][i] + "\t" + ds1.rawData[rowId12][i] + "\t" + ds2.rawData[rowId21][otherDsSampleId] + "\t" + ds2.rawData[rowId22][otherDsSampleId]);
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
"westra.harmjan@outlook.com"
] |
westra.harmjan@outlook.com
|
fafba1572439510cfbec4c8d23ae85998da618c3
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/pluginsdk/ui/m.java
|
e13ce45ff38fae34868ba22a2fa2e868d7d9ca34
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,067
|
java
|
package com.tencent.mm.pluginsdk.ui;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.PorterDuff.Mode;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Interpolator;
import android.view.animation.LinearInterpolator;
import com.tencent.mm.R;
import com.tencent.mm.bu.a;
import com.tencent.mm.sdk.platformtools.x;
import java.util.Random;
public final class m extends Drawable {
private Context context;
private Paint jbA = new Paint(1);
private ValueAnimator kco = ValueAnimator.ofFloat(new float[]{0.0f, 100.0f});
private Random random = new Random(System.currentTimeMillis());
private Drawable vrM = null;
private int vrN = 0;
private int vrO = 0;
private Interpolator vrP = new LinearInterpolator();
private Interpolator vrQ = new AccelerateDecelerateInterpolator();
private int vrR;
private int vrS;
private int vrT;
private int vrU;
private int vrV;
private int vrW;
private int vrX;
private int vrY;
private int vrZ;
private int vsa;
private int vsb = 0;
private float vsc = 0.0f;
private float vsd = -90.0f;
private float vse = 0.0f;
private float vsf = 0.0f;
private float vsg = 5.0f;
private boolean vsh = false;
private int vsi;
private int vsj;
private int vsk;
private int vsl = 2;
private RectF vsm;
public m(Context context) {
this.kco.setInterpolator(this.vrP);
this.kco.addUpdateListener(new AnimatorUpdateListener() {
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
m.this.vsc = ((Float) valueAnimator.getAnimatedValue()).floatValue();
m.this.invalidateSelf();
}
});
this.vsm = new RectF();
this.context = context;
this.vrN = a.c(context, R.e.buj);
this.vrO = a.c(context, R.e.bts);
this.vrM = context.getResources().getDrawable(R.k.dBI);
this.vrU = a.ab(context, R.f.byq);
this.vrV = a.ab(context, R.f.byp);
this.vrW = a.ab(context, R.f.byj);
this.vsb = a.ab(context, R.f.byo);
this.vrS = a.c(context, R.e.bua);
this.vrT = a.ab(context, R.f.byl);
this.vrZ = a.ab(context, R.f.byk);
this.vsa = a.c(context, R.e.bub);
this.vsi = this.vrZ;
this.vsj = this.vsi;
this.vsk = a.ab(context, R.f.byn);
this.vrX = a.ab(context, R.f.byn);
this.vrY = a.ab(context, R.f.bym);
this.vrR = a.ab(context, R.f.byr);
}
public final void cbd() {
x.d("MicroMsg.VoiceInputDrawable", "longClickState %s", Integer.valueOf(this.vsl));
this.vsl = 7;
this.kco.cancel();
this.vsc = 0.0f;
invalidateSelf();
}
public final void cbe() {
x.d("MicroMsg.VoiceInputDrawable", "readyState %s", Integer.valueOf(this.vsl));
this.vsl = 2;
this.kco.cancel();
this.vsc = 0.0f;
this.vsd = -90.0f;
this.vse = 0.0f;
this.vsf = 0.0f;
this.vsg = 5.0f;
invalidateSelf();
}
public final void cbf() {
x.d("MicroMsg.VoiceInputDrawable", "readyPressState %s", Integer.valueOf(this.vsl));
this.vsl = 6;
this.kco.cancel();
this.vsc = 0.0f;
invalidateSelf();
}
public final void lb(boolean z) {
x.d("MicroMsg.VoiceInputDrawable", "recordingStartState() called with: maxAmplitudeRate = [%s] fromLongCkick = %s", Integer.valueOf(0), Boolean.valueOf(z));
if (!z) {
this.vsl = 3;
}
this.vsh = true;
invalidateSelf();
}
public final void Ck(int i) {
boolean z = true;
x.d("MicroMsg.VoiceInputDrawable", "recordingState() called with: maxAmplitudeRate = [%s]", Integer.valueOf(i));
if (i >= 28) {
z = false;
}
this.vsh = z;
invalidateSelf();
}
public final void cbg() {
x.d("MicroMsg.VoiceInputDrawable", "recognizingState %s", Integer.valueOf(this.vsl));
this.vsl = 4;
this.kco.cancel();
this.vsc = 0.0f;
this.kco.setInterpolator(new AccelerateDecelerateInterpolator());
this.kco.setDuration(1000);
this.kco.setRepeatCount(-1);
this.kco.start();
}
public final void cbh() {
x.d("MicroMsg.VoiceInputDrawable", "disableState %s", Integer.valueOf(this.vsl));
this.vsl = 5;
this.kco.cancel();
this.vsc = 0.0f;
invalidateSelf();
}
public final void draw(Canvas canvas) {
int width;
int height;
if ((this.vsl == 6 || this.vsl == 7) && !i(canvas)) {
width = canvas.getWidth() >> 1;
height = canvas.getHeight() >> 1;
this.jbA.setShader(null);
this.jbA.setStyle(Style.FILL);
this.jbA.setColor(this.vrS);
if (this.vsl == 7) {
if (this.vsh) {
this.vsk -= 4;
} else {
this.vsk += 4;
}
this.vsk = Math.min(Math.max(this.vrX, this.vsk), this.vrY);
canvas.drawCircle((float) width, (float) height, (float) this.vsk, this.jbA);
} else {
canvas.drawCircle((float) width, (float) height, (float) this.vrX, this.jbA);
}
}
if (!(this.vrM == null || i(canvas))) {
if (this.vsl == 5) {
this.vrM.setColorFilter(this.vrO, Mode.SRC_ATOP);
} else {
this.vrM.setColorFilter(this.vrN, Mode.SRC_ATOP);
}
width = canvas.getWidth() / 2;
height = canvas.getHeight() / 2;
this.vrM.setBounds(width - this.vsb, height - this.vsb, width + this.vsb, height + this.vsb);
this.vrM.draw(canvas);
}
if (this.vsl == 4 && canvas != null) {
this.jbA.setColor(this.vrN);
this.jbA.setStrokeWidth((float) this.vrR);
this.jbA.setStyle(Style.STROKE);
this.jbA.clearShadowLayer();
this.jbA.setShader(null);
this.vsm.left = (float) ((canvas.getWidth() / 2) - this.vrZ);
this.vsm.top = (float) ((canvas.getHeight() / 2) - this.vrZ);
this.vsm.right = (float) ((canvas.getWidth() / 2) + this.vrZ);
this.vsm.bottom = (float) ((canvas.getHeight() / 2) + this.vrZ);
canvas.drawArc(this.vsm, this.vsd, this.vsf, false, this.jbA);
this.vsd += this.vse;
this.vsf += this.vsg;
if (this.vsf >= 360.0f) {
this.vsg = -this.vsg;
this.vse = 5.0f;
} else if (this.vsf <= 0.0f) {
this.vsg = -this.vsg;
this.vse = 0.0f;
this.vsd = -90.0f;
this.vsf = 0.0f;
}
}
if ((this.vsl == 6 || this.vsl == 7) && !i(canvas)) {
this.jbA.setStyle(Style.FILL);
this.jbA.setColor(this.vsa);
canvas.drawCircle((float) (canvas.getWidth() >> 1), (float) (canvas.getHeight() >> 1), (float) this.vsb, this.jbA);
}
}
public final void setAlpha(int i) {
}
public final void setColorFilter(ColorFilter colorFilter) {
}
public final int getIntrinsicWidth() {
if (this.context == null) {
return 0;
}
return a.eB(this.context);
}
public final int getIntrinsicHeight() {
return this.vsb * 2;
}
public final int getOpacity() {
return -3;
}
private static boolean i(Canvas canvas) {
return canvas == null || canvas.getWidth() == 0 || canvas.getHeight() == 0;
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
14ac5bfa5758672ca55a384e5c15b8adc58a64f4
|
cc9b5c59184bda2966d615239807140574f90917
|
/src/main/java/com/braintreegateway/CreditCardVerificationCreditCardRequest.java
|
98002988018fff54cf22baa347ce9cca46b1ae28
|
[
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-other-permissive",
"Apache-2.0"
] |
permissive
|
appscode/braintree_java
|
210562eebad91ee3e3d4f19d481874473f87628a
|
b4433b31179f0e1a770d2a5babdc044f9d182fea
|
refs/heads/master
| 2021-01-11T19:00:48.798614
| 2017-01-11T19:59:42
| 2017-01-11T19:59:42
| 79,289,710
| 2
| 0
|
MIT
| 2019-07-21T21:14:13
| 2017-01-18T01:14:19
|
Java
|
UTF-8
|
Java
| false
| false
| 2,311
|
java
|
package com.braintreegateway;
public class CreditCardVerificationCreditCardRequest extends Request {
private CreditCardVerificationRequest parent;
private String cardholderName;
private String cvv;
private String expirationDate;
private String expirationMonth;
private String expirationYear;
private String number;
private CreditCardVerificationBillingAddressRequest billingAddress;
public CreditCardVerificationCreditCardRequest(CreditCardVerificationRequest parent) {
this.parent = parent;
}
public CreditCardVerificationRequest done() {
return parent;
}
public CreditCardVerificationCreditCardRequest cardholderName(String cardholderName) {
this.cardholderName = cardholderName;
return this;
}
public CreditCardVerificationCreditCardRequest cvv(String cvv) {
this.cvv = cvv;
return this;
}
public CreditCardVerificationCreditCardRequest expirationDate(String expirationDate) {
this.expirationDate = expirationDate;
return this;
}
public CreditCardVerificationCreditCardRequest expirationMonth(String expirationMonth) {
this.expirationMonth = expirationMonth;
return this;
}
public CreditCardVerificationCreditCardRequest expirationYear(String expirationYear) {
this.expirationYear = expirationYear;
return this;
}
public CreditCardVerificationCreditCardRequest number(String number) {
this.number = number;
return this;
}
public CreditCardVerificationBillingAddressRequest billingAddress() {
billingAddress = new CreditCardVerificationBillingAddressRequest(this);
return billingAddress;
}
@Override
public String toXML() {
return buildRequest("creditCard").toXML();
}
protected RequestBuilder buildRequest(String root) {
return new RequestBuilder(root).
addElement("cardholderName", cardholderName).
addElement("cvv", cvv).
addElement("number", number).
addElement("expirationDate", expirationDate).
addElement("expirationMonth", expirationMonth).
addElement("expirationYear", expirationYear).
addElement("billingAddress", billingAddress);
}
}
|
[
"code@getbraintree.com"
] |
code@getbraintree.com
|
836c38b3327a50da73f7d863db3b2e08d5146ad3
|
a4707705c3820442b28dd0b3ee8d50b8c0a38252
|
/slime-core/src/main/java/com/github/nekolr/slime/domain/mapper/DataSourceMapper.java
|
12afba9136510d4750edc753c65f5e4bba09a1a3
|
[
"MIT"
] |
permissive
|
CrackerCat/slime
|
6b4522eb8708c63644bc42d216a6e2698544e5b2
|
847a7d7453bb8f38e401ec0307e8b8ed841e7d58
|
refs/heads/master
| 2023-06-16T19:28:23.298120
| 2021-07-13T15:27:48
| 2021-07-13T15:27:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 391
|
java
|
package com.github.nekolr.slime.domain.mapper;
import com.github.nekolr.slime.domain.DataSource;
import com.github.nekolr.slime.domain.dto.DataSourceDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface DataSourceMapper extends EntityMapper<DataSource, DataSourceDTO> {
}
|
[
"excalibll@163.com"
] |
excalibll@163.com
|
38a0865efa04ff87405d7f8f1bd3e991822e812c
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MATH-31b-8-12-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/apache/commons/math3/distribution/AbstractIntegerDistribution_ESTest_scaffolding.java
|
f062fa3d63fd8217e546314e514455b993b0cd77
|
[] |
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
| 469
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Jan 21 21:27:09 UTC 2020
*/
package org.apache.commons.math3.distribution;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AbstractIntegerDistribution_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
a4ddbbb194886f774bc7040c81ed9db2171f6d06
|
bd6d40ccc1d62d3aaabaf250ec332042791fde80
|
/2_jsp4/src/com/bjpowernode/servlet/StudentDeletesServlet.java
|
53738dc817d68b9b4e58c2912fc6f2fedc4556cc
|
[] |
no_license
|
DataBoxWx/mvc_servlet_3
|
ab9577c5f1e9f6be4829ece2aaaa217ffafe48ab
|
206a8118714635b072f3f1bf9089fe722d659eb5
|
refs/heads/master
| 2020-04-26T07:48:37.172198
| 2019-03-02T04:58:55
| 2019-03-02T04:58:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,302
|
java
|
package com.bjpowernode.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.bjpowernode.domain.Student;
import com.bjpowernode.util.DBUtil;
public class StudentDeletesServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
System.out.println("进入到删除学生操作 可批量删除");
/*
* 事务
*
* 转账
* t_account
*
* id account balance
* 1 zs 2000
* 2 ls 2000
*
* zs给ls转500块钱
*
*
*
*/
//接收需要删除记录的id
//String id = request.getParameter("id");
String ids[] = request.getParameterValues("id");
Connection conn = null;
PreparedStatement ps = null;
String sql = "delete from tbl_student where id=?";
try{
conn = DBUtil.getConn();
//将jdbc中的事务修改为手动提交 开启一个事务
conn.setAutoCommit(false);
ps = conn.prepareStatement(sql);
for(String id:ids){
ps.setString(1,id);
ps.executeUpdate();
}
conn.commit();
}catch(SQLException e){
try {
conn.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}finally{
try {
DBUtil.myClose(conn, ps, null);
} catch (SQLException e) {
e.printStackTrace();
}
}
/*
* 以上是完成了删除的操作
* 以下是完成删除后,应该跳转到学生列表操作 student/list.do
*
* 转发还是重定向?
*
* 转发:
* student/delete.do
*
* 重定向:
* student/list.do
*
*/
response.sendRedirect(request.getContextPath() + "/student/list.do");
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
this.doGet(request, response);
}
}
|
[
"1136421035@qq.com"
] |
1136421035@qq.com
|
a9f9974815b2c579fa4eb66d422438041ccb2b8e
|
999030f60e1ac3be7cdbf9da30f6cf70de148bf7
|
/monitoring/src/java/com/x3/monitoring/admin/ReportDaftarPerusahaanLandscapeWnd.java
|
d05d4ff96d3b03a3d08accdb64d786a0c4806271
|
[] |
no_license
|
hendrosteven/x3-solutions
|
1ea8b62749487c87b283ea280d771fbae23dfe35
|
5ce5129237abf5600dfcc33df0ea9e61074f8554
|
refs/heads/master
| 2021-01-10T10:39:00.521923
| 2013-07-04T05:15:16
| 2013-07-04T05:15:16
| 49,036,926
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,654
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.x3.monitoring.admin;
import com.x3.monitoring.ApplicationContextWindow;
import java.sql.Connection;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.data.JRTableModelDataSource;
import org.zkoss.zkex.zul.Jasperreport;
import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Textbox;
/**
*
* @author Hendro Steven
*/
public class ReportDaftarPerusahaanLandscapeWnd extends ApplicationContextWindow {
Jasperreport jasper;
Textbox sql;
public ReportDaftarPerusahaanLandscapeWnd() {
}
public void onCreate() throws Exception {
jasper = (Jasperreport) getFellow("jasper");
sql = (Textbox) getFellow("sql");
loadReport();
}
public void loadReport() throws Exception {
Connection conn = getConn();
try {
String imgPath = this.getDesktop().getWebApp().getRealPath("/");
imgPath = imgPath.replace('\\', '/');
jasper.setSrc("/report/DaftarPerusahaanLandscape.jasper");
jasper.setType("pdf");
Map mp = new HashMap();
mp.put("imagePath", imgPath + "/WEB-INF/classes/report/logo/salatiga-rpt.jpg");
jasper.setParameters(mp);
ResultSetTableModel rstm = new ResultSetTableModel(getConn(), sql.getValue());
jasper.setDatasource(new JRTableModelDataSource(rstm));
} catch (Exception ex) {
ex.printStackTrace();
Messagebox.show(ex.getMessage());
} finally {
conn.close();
}
}
}
|
[
"hendro.steven@gmail.com"
] |
hendro.steven@gmail.com
|
c5386372866c9a361895cc7974d9de7eed4a7c7c
|
5e2ae88cb7453c7d7285f172995d9b736679a2f6
|
/drawee-backends/drawee-pipeline/src/main/java/com/facebook/drawee/backends/pipeline/info/ImageOrigin.java
|
1be34b9c7359900262ad0e86aabadc4facb73d76
|
[
"MIT"
] |
permissive
|
qhyuan1992/fresco
|
04fb983f3e0f87df91b7b03bfec74bb2be240ecd
|
4d3f5a7d6d88e8e97a8cb08293803bab5c1e9589
|
refs/heads/master
| 2020-03-28T02:54:43.541567
| 2018-09-06T03:31:17
| 2018-09-06T03:31:17
| 147,606,137
| 0
| 0
|
MIT
| 2018-09-06T02:26:54
| 2018-09-06T02:26:53
| null |
UTF-8
|
Java
| false
| false
| 1,124
|
java
|
/*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.drawee.backends.pipeline.info;
import static com.facebook.drawee.backends.pipeline.info.ImageOrigin.DISK;
import static com.facebook.drawee.backends.pipeline.info.ImageOrigin.MEMORY_BITMAP;
import static com.facebook.drawee.backends.pipeline.info.ImageOrigin.MEMORY_ENCODED;
import static com.facebook.drawee.backends.pipeline.info.ImageOrigin.NETWORK;
import static com.facebook.drawee.backends.pipeline.info.ImageOrigin.UNKNOWN;
import static java.lang.annotation.RetentionPolicy.SOURCE;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
/**
* Image origin that indicates whether an image has been loaded from cache, network or other source.
*/
@Retention(SOURCE)
@IntDef({
UNKNOWN,
NETWORK,
DISK,
MEMORY_ENCODED,
MEMORY_BITMAP,
})
public @interface ImageOrigin {
int UNKNOWN = -1;
int NETWORK = 0;
int DISK = 1;
int MEMORY_ENCODED = 2;
int MEMORY_BITMAP = 3;
}
|
[
"facebook-github-bot@users.noreply.github.com"
] |
facebook-github-bot@users.noreply.github.com
|
0f8bd99446ed0852bca1c00a8a59ff21d3401748
|
0f2d15e30082f1f45c51fdadc3911472223e70e0
|
/src/3.7/plugins/com.perforce.team.ui/src/com/perforce/team/ui/p4java/actions/NewChangelistAction.java
|
18057294fd89e0e710069509ddcf42b4b77fe19e
|
[
"BSD-2-Clause"
] |
permissive
|
eclipseguru/p4eclipse
|
a28de6bd211df3009d58f3d381867d574ee63c7a
|
7f91b7daccb2a15e752290c1f3399cc4b6f4fa54
|
refs/heads/master
| 2022-09-04T05:50:25.271301
| 2022-09-01T12:47:06
| 2022-09-01T12:47:06
| 136,226,938
| 2
| 1
|
BSD-2-Clause
| 2022-09-01T19:42:29
| 2018-06-05T19:45:54
|
Java
|
UTF-8
|
Java
| false
| false
| 7,154
|
java
|
/**
* Copyright (c) 2008 Perforce Software. All rights reserved.
*/
package com.perforce.team.ui.p4java.actions;
import com.perforce.team.core.p4java.IP4Connection;
import com.perforce.team.core.p4java.IP4File;
import com.perforce.team.core.p4java.IP4Job;
import com.perforce.team.core.p4java.IP4PendingChangelist;
import com.perforce.team.core.p4java.IP4Resource;
import com.perforce.team.core.p4java.IP4Runnable;
import com.perforce.team.core.p4java.P4Collection;
import com.perforce.team.core.p4java.P4Runnable;
import com.perforce.team.ui.PerforceUIPlugin;
import com.perforce.team.ui.p4java.dialogs.ChangeSpecDialog;
import java.util.List;
import java.util.Map;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.window.Window;
import org.eclipse.ui.progress.UIJob;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
public class NewChangelistAction extends P4Action {
/**
* Runs the action and optionally shows a dialog where files can be selected
* that will be re-opened in the new changelist. If showDialog is false a
* new empty changelist will be created with the description parameter if
* non-null. If showDialog is false and description is null than this action
* will do nothing.
*
* @param showDialog
* @param description
* @param files
* @param jobs
*/
public void runAction(boolean showDialog, String description,
IP4File[] files, IP4Job[] jobs) {
final P4Collection collection = getResourceSelection();
IP4Connection connection = null;
for (IP4Resource resource : collection.members()) {
if (resource.getConnection() != null) {
connection = resource.getConnection();
break;
}
}
if (connection != null) {
if (jobs == null) {
jobs = new IP4Job[0];
}
if (files == null) {
files = new IP4File[0];
}
refreshAndCreate(showDialog, description, files, jobs, connection);
}
}
private void refreshAndCreate(final boolean showDialog,
final String description, final IP4File[] files,
final IP4Job[] jobs, final IP4Connection connection) {
IP4Runnable runnable = new P4Runnable() {
@Override
public void run(IProgressMonitor monitor) {
IP4PendingChangelist defaultChangelist = connection
.getPendingChangelist(0);
if (defaultChangelist != null) {
defaultChangelist.refresh();
create(showDialog, description, files, jobs, connection,
defaultChangelist);
}
}
@Override
public String getTitle() {
return Messages.NewChangelistAction_RefreshingDefaultChangelist;
}
};
runRunnable(runnable);
}
private void create(boolean showDialog, String description,
IP4File[] files, IP4Job[] jobs, final IP4Connection connection,
final IP4PendingChangelist defaultChangelist) {
if (showDialog) {
UIJob job = new UIJob(
Messages.NewChangelistAction_DisplayingNewChangelistDialog) {
@Override
public IStatus runInUIThread(IProgressMonitor monitor) {
final ChangeSpecDialog dlg = new ChangeSpecDialog(
defaultChangelist, null, getShell(), false);
if (dlg.open() == Window.OK) {
String enteredDescription = dlg.getDescription();
IP4File[] selectedFiles = dlg.getCheckedFiles();
IP4Job[] selectedJobs = dlg.getCheckedJobs();
createChangelist(enteredDescription, selectedJobs,
selectedFiles, connection);
}
return Status.OK_STATUS;
}
};
job.schedule();
} else {
createChangelist(description, jobs, files, connection);
}
}
/**
* Create a new pending changelist with the specified files in the
* selection.
*/
public void create() {
P4Collection collection = getFileSelection();
Map<IP4Connection, List<IP4File>> connectionMap = collection
.toFileMap();
for (Map.Entry<IP4Connection, List<IP4File>> entry: connectionMap.entrySet()) {
final IP4Connection connection = entry.getKey();
final IP4File[] files = entry.getValue().toArray(new IP4File[0]);
PerforceUIPlugin.syncExec(new Runnable() {
public void run() {
// TODO: "Test" seems unlikely to be an appropriate dialog
// title here
final ChangeSpecDialog dlg = new ChangeSpecDialog(
connection, files, null, getShell(),
Messages.NewChangelistAction_Test);
if (dlg.open() == Window.OK) {
String enteredDescription = dlg.getDescription();
IP4File[] selectedFiles = dlg.getCheckedFiles();
IP4Job[] selectedJobs = dlg.getCheckedJobs();
createChangelist(enteredDescription, selectedJobs,
selectedFiles, connection);
}
}
});
}
}
private void createChangelist(final String p4Description,
final IP4Job[] p4Jobs, final IP4File[] p4Files,
final IP4Connection p4Connection) {
if (p4Jobs != null && p4Files != null && p4Description != null) {
IP4Runnable runnable = new P4Runnable() {
@Override
public void run(IProgressMonitor monitor) {
p4Connection.createChangelist(p4Description, p4Files,
p4Jobs);
}
@Override
public String getTitle() {
return Messages.NewChangelistAction_CreatingNewChangelist;
}
};
runRunnable(runnable);
}
}
/**
* Runs the action and optionally shows a dialog where files can be selected
* that will be re-opened in the new changelist. If showDialog is false a
* new empty changelist will be created with the description parameter if
* non-null. If showDialog is false and description is null than this action
* will do nothing.
*
* @param showDialog
* @param description
*/
public void runAction(boolean showDialog, String description) {
runAction(showDialog, description, null, null);
}
/**
* @see com.perforce.team.ui.p4java.actions.P4Action#runAction()
*/
@Override
public void runAction() {
runAction(true, null);
}
}
|
[
"gunnar@wagenknecht.org"
] |
gunnar@wagenknecht.org
|
a2e98e1860a19c97ade57b6dfbab46f19fc7e5f6
|
21c4501a5494bc7503ebb78a7247b033fb4723a4
|
/SmartDashboardExtensions/CoordinateGui/src/com/snobot/coordinate_gui/ui/layers/FieldImageLayer.java
|
fa11b34510b87bb308381eaba96e7aa28fd4d344
|
[
"MIT"
] |
permissive
|
Htoob/snobot-2017
|
e530ed7beb93c0861fd19916c10ebb1e1ed74514
|
e3fd83e059c342b9223980e38cf17dd44f9aca87
|
refs/heads/master
| 2020-04-04T22:52:56.809500
| 2017-04-10T01:42:46
| 2017-04-10T01:42:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,145
|
java
|
package com.snobot.coordinate_gui.ui.layers;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import javax.imageio.ImageIO;
import com.snobot.coordinate_gui.model.PixelConverter;
public class FieldImageLayer implements ILayer
{
protected BufferedImage mFieldImage;
protected PixelConverter mPixelConverter;
protected Dimension mPreferredSize;
protected double mFieldWidth;
protected double mFieldHeight;
public FieldImageLayer(String aImagePath, PixelConverter aPixelConverter, double aFieldWidth, double aFieldHeight)
{
readFieldImage(aImagePath);
mPixelConverter = aPixelConverter;
mFieldWidth = aFieldWidth;
mFieldHeight = aFieldHeight;
}
/**
* Reads the image file. If it is not found nothing happens
*/
private void readFieldImage(String aImagePath)
{
try
{
InputStream in = getClass().getResourceAsStream(aImagePath);
// Image exists
if (in != null)
{
mFieldImage = ImageIO.read(in);
if (mFieldImage != null)
{
mPreferredSize = new Dimension(mFieldImage.getWidth(), mFieldImage.getHeight());
}
else
{
System.out.println("Could not open image file : '" + aImagePath + "'");
}
}
else
{
System.out.println("Could not find image file : '" + aImagePath + "'");
}
}
catch (Exception ex)
{
System.err.println(ex);
}
}
@Override
public void render(Graphics2D aGraphics)
{
if (mFieldImage != null)
{
int width = mPixelConverter.convertFeetToPixels(mFieldWidth);
int height = mPixelConverter.convertFeetToPixels(mFieldHeight);
aGraphics.drawImage(mFieldImage, 0, 0, width, height, null);
}
}
public Dimension getPreferredSize()
{
return mPreferredSize;
}
}
|
[
"pj.reiniger@gmail.com"
] |
pj.reiniger@gmail.com
|
c1aa0e20b62321ff3080ce49c2ed2e8f1afeabe0
|
ad32344c4c016cdf06ebb47af43ddaa5c6e2ac39
|
/alipay-service/alipay-service-3rdparty/src/main/java/com/alipay/api/domain/DiscountInfo.java
|
9178f94102f5d67e1be74fb0186e0dada87786b1
|
[] |
no_license
|
leijuan1014/ljj-project
|
96f4bcded39ab3ff422ddf3cd515c38511d7524d
|
dda018e182c4c1229d5392d6d2ed16b0c7001fbd
|
refs/heads/master
| 2021-01-20T23:47:32.854069
| 2017-10-09T07:10:31
| 2017-10-09T07:10:31
| 101,843,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,004
|
java
|
package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 广告投放优惠模型
*
* @author auto create
* @since 1.0, 2017-06-21 11:45:12
*/
public class DiscountInfo extends AlipayObject {
private static final long serialVersionUID = 2395988564535449588L;
/**
* 全场代金的门槛金额
*/
@ApiField("apply_condition")
private String applyCondition;
/**
* 买M送N的描述
*/
@ApiField("buy_send_desc")
private String buySendDesc;
/**
* 折扣率
仅当券类型为折扣券时有效
有效折扣率取值范围0.11-0.99
仅允许保留小数点后两位
*/
@ApiField("discount")
private String discount;
/**
* 最近店铺离当前用户的距离
*/
@ApiField("distance")
private String distance;
/**
* 优惠结束时间
*/
@ApiField("end_time")
private String endTime;
/**
* 券的图片地址
*/
@ApiField("image_url")
private String imageUrl;
/**
* 优惠id
*/
@ApiField("item_id")
private String itemId;
/**
* 券的名称
*/
@ApiField("item_name")
private String itemName;
/**
* 商品的一些标签
*/
@ApiField("label")
private String label;
/**
* 减至券的原价
*/
@ApiField("original_price")
private String originalPrice;
/**
* 每满thresholdPrice元减perPrice元,封顶topPrice元
*/
@ApiField("per_price")
private String perPrice;
/**
* 当券类型是代金券的时候,这个字段代表实际金额;当券类型是减至券的时候,这个字段代表减至到的金额
*/
@ApiField("price")
private String price;
/**
* 券推荐语
*/
@ApiField("reason")
private String reason;
/**
* 买A送B中,B的描述
*/
@ApiField("send_item_name")
private String sendItemName;
/**
* 门店id
*/
@ApiField("shop_id")
private String shopId;
/**
* 券的店铺名
*/
@ApiField("shop_name")
private String shopName;
/**
* 已领数
*/
@ApiField("sold")
private String sold;
/**
* 优惠开始时间
*/
@ApiField("start_time")
private Date startTime;
/**
* 每满thresholdPrice元减perPrice元,封顶topPrice元
*/
@ApiField("threshold_price")
private String thresholdPrice;
/**
* 每满减用的字段:每满thresholdPrice元减perPrice元,封顶topPrice元
*/
@ApiField("top_price")
private String topPrice;
/**
* 目前有discount:折扣券;cash:代金券;exchange:兑换券;limit_reduce_cash:减至券
*/
@ApiField("type")
private String type;
/**
* 券二级类型。all_discount:全场折扣;single_discount:单品折扣;all_cash:全场代金;single_cash:单品代金
*/
@ApiField("vol_type")
private String volType;
public String getApplyCondition() {
return this.applyCondition;
}
public void setApplyCondition(String applyCondition) {
this.applyCondition = applyCondition;
}
public String getBuySendDesc() {
return this.buySendDesc;
}
public void setBuySendDesc(String buySendDesc) {
this.buySendDesc = buySendDesc;
}
public String getDiscount() {
return this.discount;
}
public void setDiscount(String discount) {
this.discount = discount;
}
public String getDistance() {
return this.distance;
}
public void setDistance(String distance) {
this.distance = distance;
}
public String getEndTime() {
return this.endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public String getImageUrl() {
return this.imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getItemId() {
return this.itemId;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
public String getItemName() {
return this.itemName;
}
public void setItemName(String itemName) {
this.itemName = itemName;
}
public String getLabel() {
return this.label;
}
public void setLabel(String label) {
this.label = label;
}
public String getOriginalPrice() {
return this.originalPrice;
}
public void setOriginalPrice(String originalPrice) {
this.originalPrice = originalPrice;
}
public String getPerPrice() {
return this.perPrice;
}
public void setPerPrice(String perPrice) {
this.perPrice = perPrice;
}
public String getPrice() {
return this.price;
}
public void setPrice(String price) {
this.price = price;
}
public String getReason() {
return this.reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public String getSendItemName() {
return this.sendItemName;
}
public void setSendItemName(String sendItemName) {
this.sendItemName = sendItemName;
}
public String getShopId() {
return this.shopId;
}
public void setShopId(String shopId) {
this.shopId = shopId;
}
public String getShopName() {
return this.shopName;
}
public void setShopName(String shopName) {
this.shopName = shopName;
}
public String getSold() {
return this.sold;
}
public void setSold(String sold) {
this.sold = sold;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public String getThresholdPrice() {
return this.thresholdPrice;
}
public void setThresholdPrice(String thresholdPrice) {
this.thresholdPrice = thresholdPrice;
}
public String getTopPrice() {
return this.topPrice;
}
public void setTopPrice(String topPrice) {
this.topPrice = topPrice;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getVolType() {
return this.volType;
}
public void setVolType(String volType) {
this.volType = volType;
}
}
|
[
"leijuan1014@163.com"
] |
leijuan1014@163.com
|
880ecc612794daf6f548c57e33b856235aa2f377
|
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
|
/laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/namespaces/Hamcrest/classes/NullDescription.java
|
fa215077f32d42480bcbb23adc2b4bb0f8c2fc12
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
RuntimeConverter/RuntimeConverterLaravelJava
|
657b4c73085b4e34fe4404a53277e056cf9094ba
|
7ae848744fbcd993122347ffac853925ea4ea3b9
|
refs/heads/master
| 2020-04-12T17:22:30.345589
| 2018-12-22T10:32:34
| 2018-12-22T10:32:34
| 162,642,356
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,123
|
java
|
package com.project.convertedCode.globalNamespace.namespaces.Hamcrest.classes;
import java.lang.invoke.MethodHandles;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.project.convertedCode.globalNamespace.namespaces.Hamcrest.classes.Description;
import com.runtimeconverter.runtime.classes.StaticBaseClass;
import com.runtimeconverter.runtime.classes.NoConstructor;
import com.runtimeconverter.runtime.classes.RuntimeClassBase;
import com.runtimeconverter.runtime.RuntimeEnv;
import com.runtimeconverter.runtime.annotations.ConvertedMethod;
import com.runtimeconverter.runtime.ZVal;
import com.runtimeconverter.runtime.reflection.ReflectionClassData;
import com.runtimeconverter.runtime.annotations.ConvertedParameter;
import com.runtimeconverter.runtime.arrays.ZPair;
import static com.runtimeconverter.runtime.ZVal.assignParameter;
/*
Converted with The Runtime Converter (runtimeconverter.com)
vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php
*/
public class NullDescription extends RuntimeClassBase implements Description {
public NullDescription(RuntimeEnv env, Object... args) {
super(env);
}
public NullDescription(NoConstructor n) {
super(n);
}
@ConvertedMethod
@ConvertedParameter(index = 0, name = "text")
public Object appendText(RuntimeEnv env, Object... args) {
Object text = assignParameter(args, 0, false);
return ZVal.assign(this);
}
@ConvertedMethod
@ConvertedParameter(index = 0, name = "value", typeHint = "Hamcrest\\SelfDescribing")
public Object appendDescriptionOf(RuntimeEnv env, Object... args) {
Object value = assignParameter(args, 0, false);
return ZVal.assign(this);
}
@ConvertedMethod
@ConvertedParameter(index = 0, name = "value")
public Object appendValue(RuntimeEnv env, Object... args) {
Object value = assignParameter(args, 0, false);
return ZVal.assign(this);
}
@ConvertedMethod
@ConvertedParameter(index = 0, name = "start")
@ConvertedParameter(index = 1, name = "separator")
@ConvertedParameter(index = 2, name = "end")
@ConvertedParameter(index = 3, name = "values")
public Object appendValueList(RuntimeEnv env, Object... args) {
Object start = assignParameter(args, 0, false);
Object separator = assignParameter(args, 1, false);
Object end = assignParameter(args, 2, false);
Object values = assignParameter(args, 3, false);
return ZVal.assign(this);
}
@ConvertedMethod
@ConvertedParameter(index = 0, name = "start")
@ConvertedParameter(index = 1, name = "separator")
@ConvertedParameter(index = 2, name = "end")
@ConvertedParameter(index = 3, name = "values")
public Object appendList(RuntimeEnv env, Object... args) {
Object start = assignParameter(args, 0, false);
Object separator = assignParameter(args, 1, false);
Object end = assignParameter(args, 2, false);
Object values = assignParameter(args, 3, false);
return ZVal.assign(this);
}
@ConvertedMethod
public Object __toString(RuntimeEnv env, Object... args) {
return "";
}
public static final Object CONST_class = "Hamcrest\\NullDescription";
// Runtime Converter Internals
// RuntimeStaticCompanion contains static methods
// RequestStaticProperties contains static (per-request) properties
// ReflectionClassData contains php reflection data used by the runtime library
public static class RuntimeStaticCompanion extends StaticBaseClass {
private static final MethodHandles.Lookup staticCompanionLookup = MethodHandles.lookup();
}
public static final RuntimeStaticCompanion runtimeStaticObject = new RuntimeStaticCompanion();
private static final ReflectionClassData runtimeConverterReflectionData =
ReflectionClassData.builder()
.setName("Hamcrest\\NullDescription")
.setLookup(
NullDescription.class,
MethodHandles.lookup(),
RuntimeStaticCompanion.staticCompanionLookup)
.setLocalProperties()
.setFilename(
"vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php")
.addInterface("Hamcrest\\Description")
.get();
@Override
public ReflectionClassData getRuntimeConverterReflectionData() {
return runtimeConverterReflectionData;
}
@Override
public Object converterRuntimeCallExtended(
RuntimeEnv env,
String method,
Class<?> caller,
PassByReferenceArgs passByReferenceArgs,
Object... args) {
return RuntimeClassBase.converterRuntimeCallExtendedWithDataStatic(
this,
runtimeConverterReflectionData,
env,
method,
caller,
passByReferenceArgs,
args);
}
}
|
[
"git@runtimeconverter.com"
] |
git@runtimeconverter.com
|
a099d366e3012f45962639106c37268930d54340
|
64b008ca7d2f2291e7a0094a3f9f22db48099168
|
/android/versioned-abis/expoview-abi37_0_0/src/main/java/abi37_0_0/expo/modules/av/AVManagerInterface.java
|
cbedf061cb35b5f1f282f5dd862a20acd10b81ff
|
[
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
kojoYeboah53i/expo
|
bb971d566cd54750030dc431030a8d3045adff82
|
75d1b44ed4c4bbd05d7ec109757a017628c43415
|
refs/heads/master
| 2021-05-19T04:19:26.747650
| 2020-03-31T05:05:26
| 2020-03-31T05:05:26
| 251,520,515
| 5
| 0
|
NOASSERTION
| 2020-03-31T06:37:14
| 2020-03-31T06:37:13
| null |
UTF-8
|
Java
| false
| false
| 2,049
|
java
|
package abi37_0_0.expo.modules.av;
import android.content.Context;
import abi37_0_0.org.unimodules.core.ModuleRegistry;
import abi37_0_0.org.unimodules.core.Promise;
import abi37_0_0.org.unimodules.core.arguments.ReadableArguments;
import abi37_0_0.expo.modules.av.video.VideoView;
public interface AVManagerInterface {
void registerVideoViewForAudioLifecycle(final VideoView videoView);
void unregisterVideoViewForAudioLifecycle(final VideoView videoView);
void abandonAudioFocusIfUnused();
Context getContext();
float getVolumeForDuckAndFocus(boolean isMuted, float volume);
void acquireAudioFocus() throws AudioFocusNotAcquiredException;
void setAudioIsEnabled(final Boolean value);
void setAudioMode(final ReadableArguments map);
void loadForSound(final ReadableArguments source, final ReadableArguments status, final Promise promise);
void unloadForSound(final Integer key, final Promise promise);
void setStatusForSound(final Integer key, final ReadableArguments status, final Promise promise);
void replaySound(final Integer key, final ReadableArguments status, final Promise promise);
void getStatusForSound(final Integer key, final Promise promise);
void loadForVideo(final Integer tag, final ReadableArguments source, final ReadableArguments status, final Promise promise);
void unloadForVideo(final Integer tag, final Promise promise);
void setStatusForVideo(final Integer tag, final ReadableArguments status, final Promise promise);
void replayVideo(final Integer tag, final ReadableArguments status, final Promise promise);
void getStatusForVideo(final Integer tag, final Promise promise);
void prepareAudioRecorder(final ReadableArguments options, final Promise promise);
void startAudioRecording(final Promise promise);
void pauseAudioRecording(final Promise promise);
void stopAudioRecording(final Promise promise);
void getAudioRecordingStatus(final Promise promise);
void unloadAudioRecorder(final Promise promise);
ModuleRegistry getModuleRegistry();
}
|
[
"eric@expo.io"
] |
eric@expo.io
|
bf4f2349592d8ef90fccc6b6b74f34746250b9c2
|
43d259774d4a0462fa898e43b846bcbb005efe91
|
/2.JavaCore/src/com/javarush/task/task12/task1229/Solution.java
|
7cc0c58a5249ac2898dad92afa6a87ed1d3e8269
|
[] |
no_license
|
GreegAV/JavaRushTasks
|
bd669f625ce31c288df44e6ba72c4f1c04f3a558
|
a009cf0eeb87f30706ae888ca7ca41278283f885
|
refs/heads/master
| 2021-01-19T20:27:29.941180
| 2019-02-26T08:33:06
| 2019-02-26T08:33:06
| 88,509,251
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,502
|
java
|
package com.javarush.task.task12.task1229;
/*
Родитель класса CTO
Добавь такой класс-родитель к классу CTO(технический директор), чтобы класс перестал быть абстрактным.
Добавлять/реализовывать методы в классе CTO запрещается.
Требования:
1. Класс Solution должен содержать интерфейс Businessman с методом void workHard().
2. Класс Solution должен содержать не абстрактный класс CTO.
3. Класс CTO должен реализовывать интерфейс Businessman.
4. Класс CTO не должен содержать методов.
5. Класс Solution должен содержать дополнительный класс.
6. Класс CTO должен наследоваться от дополнительного класса.
7. Дополнительный класс должен содержать один метод.
*/
public class Solution {
public static void main(String[] args) {
CTO cto = new CTO();
System.out.println(cto);
}
public static interface Businessman {
public void workHard();
}
public static class Worker implements Businessman {
@Override
public void workHard() {
}
}
public static class CTO extends Worker implements Businessman {
}
}
|
[
"greegav@gmail.com"
] |
greegav@gmail.com
|
25698ddda532a7755d56c8700cc19de2acdddea0
|
f009dc33f9624aac592cb66c71a461270f932ffa
|
/src/main/java/com/alipay/api/domain/AntMerchantExpandItemOpenBatchqueryModel.java
|
3c4141e92f05fc8e1294680b7c8f66a455cb5432
|
[
"Apache-2.0"
] |
permissive
|
1093445609/alipay-sdk-java-all
|
d685f635af9ac587bb8288def54d94e399412542
|
6bb77665389ba27f47d71cb7fa747109fe713f04
|
refs/heads/master
| 2021-04-02T16:49:18.593902
| 2020-03-06T03:04:53
| 2020-03-06T03:04:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 748
|
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, 2019-09-17 17:21:20
*/
public class AntMerchantExpandItemOpenBatchqueryModel extends AlipayObject {
private static final long serialVersionUID = 8454822135832372558L;
/**
* 商品ID列表
*/
@ApiListField("item_id_list")
@ApiField("string")
private List<String> itemIdList;
public List<String> getItemIdList() {
return this.itemIdList;
}
public void setItemIdList(List<String> itemIdList) {
this.itemIdList = itemIdList;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
757915f5382e3ac8fbf99cb3eb4274b5fcd88993
|
022980735384919a0e9084f57ea2f495b10c0d12
|
/src/ext-lltnxp/ext-service/src/com/sgs/portlet/pmllevelsend/NoSuchPmlEdmLevelSendException.java
|
77afa6185a1f0b631e8401ae2cf4532b27a3f6b8
|
[] |
no_license
|
thaond/nsscttdt
|
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
|
ae7dacc924efe578ce655ddfc455d10c953abbac
|
refs/heads/master
| 2021-01-10T03:00:24.086974
| 2011-02-19T09:18:34
| 2011-02-19T09:18:34
| 50,081,202
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,783
|
java
|
/**
* Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.sgs.portlet.pmllevelsend;
import com.liferay.portal.PortalException;
/**
* <a href="NoSuchPmlEdmLevelSendException.java.html"><b><i>View Source</i></b></a>
*
* @author Brian Wing Shun Chan
*
*/
public class NoSuchPmlEdmLevelSendException extends PortalException {
public NoSuchPmlEdmLevelSendException() {
super();
}
public NoSuchPmlEdmLevelSendException(String msg) {
super(msg);
}
public NoSuchPmlEdmLevelSendException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchPmlEdmLevelSendException(Throwable cause) {
super(cause);
}
}
|
[
"nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e"
] |
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
|
131e4cfe6d81fb179ae42df833fb523acce1829a
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/JFreeChart/rev91-1538/right-trunk-1538/source/org/jfree/data/xy/VectorSeriesCollection.java
|
eb15a898d17f6a4f6813c3d620b4796514e7ffd8
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,172
|
java
|
package org.jfree.data.xy;
import java.io.Serializable;
import java.util.List;
import org.jfree.chart.util.ObjectUtilities;
import org.jfree.chart.util.PublicCloneable;
import org.jfree.data.general.DatasetChangeEvent;
public class VectorSeriesCollection extends AbstractXYDataset
implements VectorXYDataset, PublicCloneable, Serializable {
private List data;
public VectorSeriesCollection() {
this.data = new java.util.ArrayList();
}
public void addSeries(VectorSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
this.data.add(series);
series.addChangeListener(this);
fireDatasetChanged();
}
public boolean removeSeries(VectorSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
boolean removed = this.data.remove(series);
if (removed) {
series.removeChangeListener(this);
fireDatasetChanged();
}
return removed;
}
public void removeAllSeries() {
for (int i = 0; i < this.data.size(); i++) {
VectorSeries series = (VectorSeries) this.data.get(i);
series.removeChangeListener(this);
}
this.data.clear();
fireDatasetChanged();
}
public int getSeriesCount() {
return this.data.size();
}
public VectorSeries getSeries(int series) {
if ((series < 0) || (series >= getSeriesCount())) {
throw new IllegalArgumentException("Series index out of bounds");
}
return (VectorSeries) this.data.get(series);
}
public Comparable getSeriesKey(int series) {
return getSeries(series).getKey();
}
public int indexOf(VectorSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
return this.data.indexOf(series);
}
public int getItemCount(int series) {
return getSeries(series).getItemCount();
}
public double getXValue(int series, int item) {
VectorSeries s = (VectorSeries) this.data.get(series);
VectorDataItem di = (VectorDataItem) s.getDataItem(item);
return di.getXValue();
}
public Number getX(int series, int item) {
return new Double(getXValue(series, item));
}
public double getYValue(int series, int item) {
VectorSeries s = (VectorSeries) this.data.get(series);
VectorDataItem di = (VectorDataItem) s.getDataItem(item);
return di.getYValue();
}
public Number getY(int series, int item) {
return new Double(getYValue(series, item));
}
public Vector getVector(int series, int item) {
VectorSeries s = (VectorSeries) this.data.get(series);
VectorDataItem di = (VectorDataItem) s.getDataItem(item);
return di.getVector();
}
public double getVectorXValue(int series, int item) {
VectorSeries s = (VectorSeries) this.data.get(series);
VectorDataItem di = (VectorDataItem) s.getDataItem(item);
return di.getVectorX();
}
public double getVectorYValue(int series, int item) {
VectorSeries s = (VectorSeries) this.data.get(series);
VectorDataItem di = (VectorDataItem) s.getDataItem(item);
return di.getVectorY();
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof VectorSeriesCollection)) {
return false;
}
VectorSeriesCollection that = (VectorSeriesCollection) obj;
return ObjectUtilities.equal(this.data, that.data);
}
public Object clone() throws CloneNotSupportedException {
VectorSeriesCollection clone
= (VectorSeriesCollection) super.clone();
clone.data = (List) ObjectUtilities.deepClone(this.data);
return clone;
}
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
ac7d9d80f1d3d5887c6aa8f6c263846aed427a53
|
a8c5b7b04eace88b19b5a41a45f1fb030df393e3
|
/projects/starling-client/src/main/java/com/mcleodmoores/starling/client/marketdata/DataProviderFactory.java
|
a6eb842b7cfb55c950f070d11383a188459cf82e
|
[
"Apache-2.0"
] |
permissive
|
McLeodMoores/starling
|
3f6cfe89cacfd4332bad4861f6c5d4648046519c
|
7ae0689e06704f78fd9497f8ddb57ee82974a9c8
|
refs/heads/master
| 2022-12-04T14:02:00.480211
| 2020-04-28T17:22:44
| 2020-04-28T17:22:44
| 46,577,620
| 4
| 4
|
Apache-2.0
| 2022-11-24T07:26:39
| 2015-11-20T17:48:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,340
|
java
|
/**
* Copyright (C) 2015 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.starling.client.marketdata;
import org.joda.convert.FromString;
import com.opengamma.util.AbstractNamedInstanceFactory;
import com.opengamma.util.ArgumentChecker;
/**
* Factory for creating and registering named instances of DataProvider.
* This pattern is used because it saves memory and more importantly, UI tools can query available values.
*/
public class DataProviderFactory extends AbstractNamedInstanceFactory<DataProvider> {
/**
* Singleton instance.
*/
public static final DataProviderFactory INSTANCE = new DataProviderFactory();
/**
* Protected no-arg constructor.
*/
protected DataProviderFactory() {
super(DataProvider.class);
}
/**
* Return the named instance of a DataProvider given a name, and create one if one isn't available.
* @param name the name of the DataProvider
* @return the instance of the dataProvider corresponding to the name
*/
@FromString
public DataProvider of(final String name) {
try {
return instance(name);
} catch (final IllegalArgumentException e) {
ArgumentChecker.notNull(name, "name");
final DataProvider dataProvider = DataProvider.parse(name);
return addInstance(dataProvider);
}
}
}
|
[
"em.mcleod@gmail.com"
] |
em.mcleod@gmail.com
|
d384cbea29f920df2e5156fc9401e17475735eb5
|
d3d61f042dbd8cf6488df4309b380fd986f56b45
|
/javarunner/src/main/java/com/example/sort/JavaSort.java
|
c36b90e59bc488ef5a0b6aea3dbaa9c3b8ee4e02
|
[
"Apache-2.0"
] |
permissive
|
wherego/My-MVP
|
5ff3274a2fd5500d2749375c19590108c1fa318c
|
1de1cedb2a74122bb7d1098389314b710d62f189
|
refs/heads/master
| 2021-01-20T14:23:13.161850
| 2017-04-18T15:50:53
| 2017-04-18T15:50:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 900
|
java
|
package com.example.sort;
/**
* Created by rookie on 2017/1/16.
*/
public class JavaSort {
public static int[] array = {19, 89, 588, 193, 1, 10, 543, 111, 7, 10};
public static void QuickInsertSort() {
int temp = 0;
for (int i = 1; i < array.length; i++) {
int j = i - 1;
temp = array[i];
for (; j >= 0 && temp < array[j]; j--) {
array[j + 1] = array[j];
}
array[j + 1] = temp;
}
}
public static void main(String[] args) {
System.out.println("The Original data is :");
for (int m = 0; m < array.length; m++) {
System.out.print(array[m] + " ");
}
System.out.println("\nAfter sortrd data is :");
QuickInsertSort();
for (int m = 0; m < array.length; m++) {
System.out.print(array[m] + " ");
}
}
}
|
[
"foreverlove.zyl@163.com"
] |
foreverlove.zyl@163.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.