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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4401019a480501fc8c8e8e5fc7e05df1fa780e24
|
7a3e02ff065c53fc3f30796a7558a4f7b9c3edfc
|
/creational-design-patterns/object-pool-pattern/src/main/java/br/com/erudio/ObjectPoolDemo.java
|
6396e4e9d12fbbda3a0a6e5534d2f04e95a704cc
|
[
"Apache-2.0"
] |
permissive
|
leandrocgsi/design-patterns-playground
|
301d02434ceeabcb6096a8bf7adc556bebc1dd44
|
6552c2aa80ead10b5bf468b93b964c876a5330fb
|
refs/heads/main
| 2021-12-28T15:31:01.925122
| 2021-12-22T13:54:01
| 2021-12-22T13:54:01
| 439,394,467
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,249
|
java
|
package br.com.erudio;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
public class ObjectPoolDemo {
private ObjectPool<ExportingProcess> pool;
private AtomicLong processNo = new AtomicLong(0);
public void setUp() {
// Create a pool of objects of type ExportingProcess.
/*
* Parameters: 1) Minimum number of special ExportingProcess instances residing
* in the pool = 4 2) Maximum number of special ExportingProcess instances
* residing in the pool = 10 3) Time in seconds for periodical checking of
* minObjects / maxObjects conditions in a separate thread = 5. -->When the
* number of ExportingProcess instances is less than minObjects, missing
* instances will be created. -->When the number of ExportingProcess instances
* is greater than maxObjects, too many instances will be removed. -->If the
* validation interval is negative, no periodical checking of minObjects /
* maxObjects conditions in a separate thread take place. These boundaries are
* ignored then.
*/
pool = new ObjectPool<ExportingProcess>(4, 10, 5) {
protected ExportingProcess createObject() {
// create a test object which takes some time for creation
return new ExportingProcess(processNo.incrementAndGet());
}
};
}
public void tearDown() {
pool.shutdown();
}
public void testObjectPool() {
ExecutorService executor = Executors.newFixedThreadPool(8);
// execute 8 tasks in separate threads
executor.execute(new ExportingTask(pool, 1));
executor.execute(new ExportingTask(pool, 2));
executor.execute(new ExportingTask(pool, 3));
executor.execute(new ExportingTask(pool, 4));
executor.execute(new ExportingTask(pool, 5));
executor.execute(new ExportingTask(pool, 6));
executor.execute(new ExportingTask(pool, 7));
executor.execute(new ExportingTask(pool, 8));
executor.shutdown();
try {
executor.awaitTermination(30, TimeUnit.SECONDS);
} catch (InterruptedException e)
{
e.printStackTrace();
}
}
public static void main(String args[]) {
ObjectPoolDemo op = new ObjectPoolDemo();
op.setUp();
op.tearDown();
op.testObjectPool();
}
}
|
[
"leandrocgsi@gmail.com"
] |
leandrocgsi@gmail.com
|
6778c543ffa2d3d44b00a08e13072378025acf36
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13942-2-11-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/model/internal/reference/AbstractEntityReferenceResolver_ESTest_scaffolding.java
|
ef99ed1549a477496f10d2978d0a83b3147b4e20
|
[] |
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
| 2,685
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun Apr 05 13:47:48 UTC 2020
*/
package org.xwiki.model.internal.reference;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AbstractEntityReferenceResolver_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.xwiki.model.internal.reference.AbstractEntityReferenceResolver";
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(AbstractEntityReferenceResolver_ESTest_scaffolding.class.getClassLoader() ,
"org.xwiki.model.reference.EntityReferenceResolver",
"org.xwiki.model.internal.reference.ExplicitStringEntityReferenceResolver",
"org.xwiki.component.phase.Initializable",
"org.xwiki.component.annotation.Component",
"org.xwiki.model.reference.EntityReference",
"org.xwiki.model.internal.reference.DefaultSymbolScheme$1",
"org.xwiki.model.internal.reference.SymbolScheme",
"org.xwiki.model.internal.reference.AbstractEntityReferenceResolver",
"org.xwiki.model.internal.reference.AbstractStringEntityReferenceResolver",
"org.xwiki.model.EntityType",
"org.xwiki.component.phase.InitializationException",
"org.xwiki.model.internal.reference.DefaultSymbolScheme"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
dd548858a5329ad709939396f4a0b2cfeecc46c5
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithLambdasApi21/applicationModule/src/test/java/applicationModulepackageJava8/Foo190Test.java
|
32f9461db2b1a083af0476b69fbfe4e617afbbba
|
[] |
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 applicationModulepackageJava8;
import org.junit.Test;
public class Foo190Test {
@Test
public void testFoo0() {
new Foo190().foo0();
}
@Test
public void testFoo1() {
new Foo190().foo1();
}
@Test
public void testFoo2() {
new Foo190().foo2();
}
@Test
public void testFoo3() {
new Foo190().foo3();
}
@Test
public void testFoo4() {
new Foo190().foo4();
}
@Test
public void testFoo5() {
new Foo190().foo5();
}
@Test
public void testFoo6() {
new Foo190().foo6();
}
@Test
public void testFoo7() {
new Foo190().foo7();
}
@Test
public void testFoo8() {
new Foo190().foo8();
}
@Test
public void testFoo9() {
new Foo190().foo9();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
f1821a1cdc4aeda067b8be9745cda8b43f46735c
|
e7309db2a545a8f5e3aeea9b021627b10cf97da7
|
/Salesforce/src/main/java/org/apache/camel/salesforce/dto/NoteAndAttachment.java
|
d1231fcedd47062e0fee5ecdb508c965a186d466
|
[] |
no_license
|
weimeilin79/salesforcesap
|
019f84155b415dc92f6737c3d44f3d408d8a21dc
|
4e0d2e06f5aad7ca814b0242b72ddb85369f6d55
|
refs/heads/master
| 2021-01-20T20:57:13.499851
| 2016-06-27T22:06:42
| 2016-06-27T22:06:42
| 61,784,447
| 1
| 2
| null | 2017-10-18T17:00:38
| 2016-06-23T07:30:56
|
Java
|
UTF-8
|
Java
| false
| false
| 1,521
|
java
|
/*
* Salesforce DTO generated by camel-salesforce-maven-plugin
* Generated on: Fri May 27 17:39:27 CST 2016
*/
package org.apache.camel.salesforce.dto;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Salesforce DTO for SObject NoteAndAttachment
*/
@XStreamAlias("NoteAndAttachment")
public class NoteAndAttachment extends AbstractSObjectBase {
// IsNote
private Boolean IsNote;
@JsonProperty("IsNote")
public Boolean getIsNote() {
return this.IsNote;
}
@JsonProperty("IsNote")
public void setIsNote(Boolean IsNote) {
this.IsNote = IsNote;
}
// ParentId
private String ParentId;
@JsonProperty("ParentId")
public String getParentId() {
return this.ParentId;
}
@JsonProperty("ParentId")
public void setParentId(String ParentId) {
this.ParentId = ParentId;
}
// Title
private String Title;
@JsonProperty("Title")
public String getTitle() {
return this.Title;
}
@JsonProperty("Title")
public void setTitle(String Title) {
this.Title = Title;
}
// IsPrivate
private Boolean IsPrivate;
@JsonProperty("IsPrivate")
public Boolean getIsPrivate() {
return this.IsPrivate;
}
@JsonProperty("IsPrivate")
public void setIsPrivate(Boolean IsPrivate) {
this.IsPrivate = IsPrivate;
}
}
|
[
"weimeilin@gmail.com"
] |
weimeilin@gmail.com
|
15f50ed7b98c300a1d760e744c5a39b519ad5bc2
|
43cbe60e96c7761a447529bad00b8b172fd15966
|
/apps/tools/svnkit/svnsync/src/main/java/net/community/apps/tools/svn/SVNBaseMain.java
|
9f09a4a450e94e3ce8e7a8d980698566b770c75c
|
[
"Apache-2.0"
] |
permissive
|
MaskerPRC/communitychest
|
e913dcdc9c71a94d5c5f5ee540ae0d6fc64a6965
|
5d4f4b58324cd9dbd07223e2ea68ff738bd32459
|
refs/heads/master
| 2023-03-19T00:43:03.353389
| 2016-04-16T13:42:47
| 2016-04-16T13:42:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,298
|
java
|
/*
*
*/
package net.community.apps.tools.svn;
import net.community.apps.common.BaseMain;
import net.community.apps.common.resources.BaseAnchor;
import net.community.chest.svnkit.SVNAccessor;
import org.tmatesoft.svn.core.wc.SVNClientManager;
/**
* <P>Copyright as per GPLv2</P>
* @param <A> Type of {@link BaseAnchor}
* @param <F> Type of {@link SVNBaseMainFrame}
* @author Lyor G.
* @since Aug 19, 2010 11:33:12 AM
*
*/
public abstract class SVNBaseMain<A extends BaseAnchor, F extends SVNBaseMainFrame<A>> extends BaseMain {
protected SVNBaseMain (String... args)
{
super(args);
}
private static final SVNAccessor _svnAcc=new SVNAccessor();
public static final SVNAccessor getSVNAccessor ()
{
return _svnAcc;
}
public static final SVNClientManager getSVNClientManager (boolean createIfNotExist)
{
final SVNAccessor acc=getSVNAccessor();
return (null == acc) ? null : acc.getSVNClientManager(createIfNotExist);
}
protected int processArgument (
final F f, final String a, final int oIndex, final int numArgs, final String ... args)
{
int aIndex=oIndex;
if ("-u".equals(a) || "--user".equals(a))
{
aIndex++;
final SVNAccessor acc=getSVNAccessor();
acc.setUsername(resolveStringArg(a, args, numArgs, aIndex, acc.getUsername()));
}
else if ("-p".equals(a) || "--password".equals(a))
{
aIndex++;
final SVNAccessor acc=getSVNAccessor();
acc.setPassword(resolveStringArg(a, args, numArgs, aIndex, acc.getPassword()));
}
else
aIndex = (f == null) ? Integer.MIN_VALUE : (-1);
return aIndex;
}
public F processMainArgs (final F f, final String ... args)
{
final int numArgs=(null == args) ? 0 : args.length;
for (int aIndex=0; aIndex < numArgs; aIndex++)
{
final String a=args[aIndex];
final int nIndex=processArgument(f, a, aIndex, numArgs, args);
if (nIndex < aIndex)
throw new UnsupportedOperationException("Unknown command line option: " + a);
aIndex = nIndex;
}
return f;
}
}
|
[
"lyor.goldstein@gmail.com"
] |
lyor.goldstein@gmail.com
|
c4a473d1d73dde7db8cff0ad9b40dd2339172f68
|
bb014cbe7981d6605ab14c37923e45af48b86027
|
/MEME/src/java/gov/nih/nlm/meme/integrity/DT_I9.java
|
8dce6219392234012cdc41507978bba1cbe57d70
|
[] |
no_license
|
rwynne/nlmlegacymeme
|
8790c8421fe0c7c1e335c1df02f92a40bc32ac17
|
76ad061ea3ea29308462d893fd512b4e45db29bc
|
refs/heads/master
| 2021-01-01T18:52:27.688542
| 2017-07-26T18:54:03
| 2017-07-26T18:54:03
| 98,453,314
| 0
| 0
| null | 2017-07-26T18:24:06
| 2017-07-26T18:24:05
| null |
UTF-8
|
Java
| false
| false
| 1,420
|
java
|
/*****************************************************************************
*
* Package: gov.nih.nlm.meme.integrity
* Object: DT_I9
*
*****************************************************************************/
package gov.nih.nlm.meme.integrity;
import gov.nih.nlm.meme.common.Concept;
/**
* Validates those {@link gov.nih.nlm.meme.common.Concept}s that contain a current
* version MSH "entry term" and the same approved, releasable {@link gov.nih.nlm.meme.common.Relationship} to
* its MSH MH as another {@link gov.nih.nlm.meme.common.Concept} which also has a current version MSH
* "entry term" with a matching code. The "same relationship" means one
* concept has a BT, NT, or RT relationship and the other either has a
* {@link gov.nih.nlm.meme.common.Relationship} with the same name or it has an RT? relationship.
*
* @author MEME Group
*/
public class DT_I9 extends AbstractDataConstraint {
//
// Constructors
//
/**
* Instantiates a {@link DT_I9} check.
*/
public DT_I9() {
super();
setName("DT_I9");
}
//
// Methods
//
/**
* Not implemented. This is merely a place-holder to be backwards-compatable
* with MEME3.
* @param source the source {@link Concept}
* @return <code>true</code> if there is a violation, <code>false</code> otherwise
*/
public boolean validate(Concept source) {
// unimplemented
return false;
}
}
|
[
"wynner@mail.nih.gov"
] |
wynner@mail.nih.gov
|
31445482aa4db673bdd882152a99b4d3cf3a5375
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_1005268.java
|
66c85c0684bc95e79aa824d90b534bd681d7b512
|
[] |
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
| 462
|
java
|
/**
*/
@RequestMapping(params="delrule") @ResponseBody public AjaxJson delrule(TSDataRule operation,HttpServletRequest request){
String message=null;
AjaxJson j=new AjaxJson();
operation=systemService.getEntity(TSDataRule.class,operation.getId());
message=MutiLangUtil.paramDelSuccess("common.operation");
userService.delete(operation);
systemService.addLog(message,Globals.Log_Type_DEL,Globals.Log_Leavel_INFO);
j.setMsg(message);
return j;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
2d1fd73f15bfbdbcbce05fe0b8a410186b0957cc
|
070b9e745c5aad76fb310f5c9111ed77a1036291
|
/Drona-Package/com/facebook/common/memory/PooledByteBufferFactory.java.obf
|
9c693427107bcb4d75054d7fda4b70e85791a91f
|
[] |
no_license
|
Drona-team/Drona
|
0f057e62e7f77babf112311734ee98c5824f166c
|
e33a9d92011ef7790c7547cc5a5380083f0dbcd7
|
refs/heads/master
| 2022-11-18T06:38:57.404528
| 2020-07-18T09:35:57
| 2020-07-18T09:35:57
| 280,390,561
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 666
|
obf
|
package com.facebook.common.memory;
import java.io.IOException;
import java.io.InputStream;
public abstract interface PooledByteBufferFactory
{
public abstract PooledByteBuffer newByteBuffer(int paramInt);
public abstract PooledByteBuffer newByteBuffer(InputStream paramInputStream)
throws IOException;
public abstract PooledByteBuffer newByteBuffer(InputStream paramInputStream, int paramInt)
throws IOException;
public abstract PooledByteBuffer newByteBuffer(byte[] paramArrayOfByte);
public abstract PooledByteBufferOutputStream newOutputStream();
public abstract PooledByteBufferOutputStream newOutputStream(int paramInt);
}
|
[
"samridh6759@gmail.com"
] |
samridh6759@gmail.com
|
aa8fe6385bc8e346af8b7a624631438dce8f373d
|
7360784e149ba754518b4dce1ff78f4ddbea6650
|
/com/android/server/wifi/WcmConnectivityPacketTracker.java
|
98a918988ef4274481e9111d1149485cdc8c87df
|
[] |
no_license
|
headuck/SM-N9750-TGY-1
|
c4cc11759649c9d0aa0b222c239ba4ab7497e320
|
72a22e5b13d2d2d93267f4d28c76c5758adfdd83
|
refs/heads/main
| 2022-12-25T03:27:33.194017
| 2020-10-15T23:41:56
| 2020-10-15T23:41:56
| 304,472,478
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,029
|
java
|
package com.android.server.wifi;
import android.net.NetworkUtils;
import android.net.util.InterfaceParams;
import android.os.Debug;
import android.os.Handler;
import android.system.ErrnoException;
import android.system.Os;
import android.system.OsConstants;
import android.system.PacketSocketAddress;
import android.text.TextUtils;
import android.util.LocalLog;
import android.util.Log;
import com.android.internal.util.HexDump;
import com.samsung.android.server.wifi.softap.PacketReader;
import com.samsung.android.server.wifi.softap.SemConnectivityPacketSummary;
import java.io.FileDescriptor;
import java.io.IOException;
import java.nio.ByteBuffer;
public class WcmConnectivityPacketTracker {
private static final boolean DBG = Debug.semIsProductDev();
private static final String MARK_NAMED_START = "--- START (%s) ---";
private static final String MARK_NAMED_STOP = "--- STOP (%s) ---";
private static final String MARK_START = "--- START ---";
private static final String MARK_STOP = "--- STOP ---";
private static final String TAG = "WcmConnectivityPacketTracker";
private String mDisplayName;
private final LocalLog mLog;
private final PacketReader mPacketListener;
private boolean mRunning;
private final String mTag;
public WcmConnectivityPacketTracker(Handler h, InterfaceParams ifParams, LocalLog log) {
if (ifParams != null) {
this.mTag = "WcmConnectivityPacketTracker." + ifParams.name;
this.mLog = log;
this.mPacketListener = new PacketListener(h, ifParams);
return;
}
throw new IllegalArgumentException("null InterfaceParams");
}
public void start(String displayName) {
this.mRunning = true;
this.mDisplayName = displayName;
this.mPacketListener.start();
}
public void stop() {
this.mPacketListener.stop();
this.mRunning = false;
this.mDisplayName = null;
}
private final class PacketListener extends PacketReader {
private final InterfaceParams mInterface;
PacketListener(Handler h, InterfaceParams ifParams) {
super(h, ifParams.defaultMtu);
this.mInterface = ifParams;
}
/* access modifiers changed from: protected */
@Override // com.samsung.android.server.wifi.softap.PacketReader
public FileDescriptor createFd() {
FileDescriptor s = null;
try {
s = Os.socket(OsConstants.AF_PACKET, OsConstants.SOCK_RAW, 0);
NetworkUtils.attachControlPacketFilter(s, OsConstants.ARPHRD_ETHER);
Os.bind(s, new PacketSocketAddress((short) OsConstants.ETH_P_ALL, this.mInterface.index));
return s;
} catch (ErrnoException | IOException e) {
logError("Failed to create packet tracking socket: ", e);
closeFd(s);
return null;
}
}
/* access modifiers changed from: protected */
@Override // com.samsung.android.server.wifi.softap.PacketReader
public void handlePacket(byte[] recvbuf, int length) {
String direction;
if (WcmConnectivityPacketTracker.DBG) {
String summary = SemConnectivityPacketSummary.summarize(this.mInterface.macAddr, recvbuf, length);
if (summary != null) {
if (WcmConnectivityPacketTracker.DBG) {
Log.d(WcmConnectivityPacketTracker.this.mTag, summary);
}
addLogEntry(summary + "\n[" + HexDump.toHexString(recvbuf, 0, length) + "]");
return;
}
return;
}
ByteBuffer mPacket = ByteBuffer.wrap(recvbuf, 0, length);
if (mPacket.remaining() < 14) {
direction = "*";
} else if (((InterfaceParams) this.mInterface).macAddr != null) {
mPacket.position(6);
direction = ByteBuffer.wrap(this.mInterface.macAddr.toByteArray()).equals((ByteBuffer) mPacket.slice().limit(6)) ? ">" : "<";
} else {
direction = "*";
}
addLogEntry(direction + " [" + HexDump.toHexString(recvbuf, 0, length) + "]");
}
/* access modifiers changed from: protected */
@Override // com.samsung.android.server.wifi.softap.PacketReader
public void onStart() {
String msg;
if (TextUtils.isEmpty(WcmConnectivityPacketTracker.this.mDisplayName)) {
msg = WcmConnectivityPacketTracker.MARK_START;
} else {
msg = String.format(WcmConnectivityPacketTracker.MARK_NAMED_START, WcmConnectivityPacketTracker.this.mDisplayName);
}
WcmConnectivityPacketTracker.this.mLog.log(msg);
}
/* access modifiers changed from: protected */
@Override // com.samsung.android.server.wifi.softap.PacketReader
public void onStop() {
String msg;
if (TextUtils.isEmpty(WcmConnectivityPacketTracker.this.mDisplayName)) {
msg = WcmConnectivityPacketTracker.MARK_STOP;
} else {
msg = String.format(WcmConnectivityPacketTracker.MARK_NAMED_STOP, WcmConnectivityPacketTracker.this.mDisplayName);
}
if (!WcmConnectivityPacketTracker.this.mRunning) {
msg = msg + " (packet listener stopped unexpectedly)";
}
WcmConnectivityPacketTracker.this.mLog.log(msg);
}
/* access modifiers changed from: protected */
@Override // com.samsung.android.server.wifi.softap.PacketReader
public void logError(String msg, Exception e) {
Log.e(WcmConnectivityPacketTracker.this.mTag, msg, e);
addLogEntry(msg + e);
}
private void addLogEntry(String entry) {
WcmConnectivityPacketTracker.this.mLog.log(entry);
}
}
}
|
[
"headuck@users.noreply.github.com"
] |
headuck@users.noreply.github.com
|
c3e2faac7332e177bd00d682d32d5d1321ca0649
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Spring/Spring10119.java
|
4bcee178c73c8a079ac963a99f02389cc2751193
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 509
|
java
|
@Test
public void write() throws IOException {
MockHttpOutputMessage outputMessage = new MockHttpOutputMessage();
byte[] body = new byte[]{0x1, 0x2};
converter.write(body, null, outputMessage);
assertArrayEquals("Invalid result", body, outputMessage.getBodyAsBytes());
assertEquals("Invalid content-type", new MediaType("application", "octet-stream"),
outputMessage.getHeaders().getContentType());
assertEquals("Invalid content-length", 2, outputMessage.getHeaders().getContentLength());
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
99679d97d2eba4f142e436b1c7e79fcc5bd943c6
|
0b0cc171457f32b5259ac2e0891d617abdfc0e47
|
/src/org/lwjgl/opengl/NVFogDistance.java
|
a87faba422757553c6fa731d6203ecfd6558b5d8
|
[] |
no_license
|
bobolicener/star-rod
|
24b403447b4bd82af1bca734c63ac38785748824
|
59235901ab024c5af267daebf92344b20538251a
|
refs/heads/master
| 2020-07-01T20:12:10.960817
| 2019-08-08T14:54:46
| 2019-08-08T14:54:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 267
|
java
|
package org.lwjgl.opengl;
public final class NVFogDistance
{
public static final int GL_FOG_DISTANCE_MODE_NV = 34138;
public static final int GL_EYE_RADIAL_NV = 34139;
public static final int GL_EYE_PLANE_ABSOLUTE_NV = 34140;
private NVFogDistance() {}
}
|
[
"gregory.degruy@gmail.com"
] |
gregory.degruy@gmail.com
|
23a25021e546b67da59376ef3c75b966e441052d
|
15106c97bfab2c66c9d0a8673f1f683640aa7fe0
|
/spring-cloud-security-study/spring-cloud-security-summary/src/main/java/com/lhx/springcloud/security/entity/User.java
|
5e5a3a6266960ccd65d9f082af8e3b2af32121a4
|
[
"Apache-2.0"
] |
permissive
|
bjlhx15/spring-cloud-base
|
3d828496da1cef563a8311b2406ecc44e5f41861
|
63f50c0a2e7328f8ae8f8f4c68b6ae75bf8b8fa9
|
refs/heads/master
| 2022-07-16T10:29:03.199517
| 2021-03-09T01:16:44
| 2021-03-09T01:16:44
| 143,730,393
| 2
| 3
|
Apache-2.0
| 2022-06-20T23:10:44
| 2018-08-06T13:11:11
|
Java
|
UTF-8
|
Java
| false
| false
| 2,014
|
java
|
package com.lhx.springcloud.security.entity;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
/**
* @author lihongxu
* @desc @link(https://github.com/bjlhx15/spring-cloud-base)
* @since 2018/10/23 上午9:39
*/
@Entity
public class User implements UserDetails, Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false, unique = true)
private String username;
@Column
private String password;
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinTable(name = "user_role", joinColumns = @JoinColumn(name = "user_id", referencedColumnName = "id"),
inverseJoinColumns = @JoinColumn(name = "role_id", referencedColumnName = "id"))
private List<Role> authorities;
public User() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
return authorities;
}
public void setAuthorities(List<Role> authorities) {
this.authorities = authorities;
}
@Override
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@Override
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public boolean isAccountNonExpired() {
return true;
}
@Override
public boolean isAccountNonLocked() {
return true;
}
@Override
public boolean isCredentialsNonExpired() {
return true;
}
@Override
public boolean isEnabled() {
return true;
}
}
|
[
"lihongxu6@jd.com"
] |
lihongxu6@jd.com
|
2cc84abc1089083e91e95ae5a5e84b80ecd33505
|
f88937f0954d1f4c5f3bd1b298d54e1d326b1c9a
|
/cmall/src/com/baiyi/cmall/utils/MobileStateUtils.java
|
dd4110bd52ce25fa6cefc9254fdafd5c6ed8539f
|
[] |
no_license
|
sixdoor123/mx
|
ff431223d473515f2bf2c24743346deaecec61fd
|
49fe9a1d0ffa7b00351f44753484d8d624b44635
|
refs/heads/master
| 2020-04-23T10:59:55.865339
| 2019-02-22T00:23:37
| 2019-02-22T00:23:37
| 171,121,186
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 5,766
|
java
|
package com.baiyi.cmall.utils;
import java.util.ArrayList;
import com.baiyi.cmall.adapter.ShareAdapter;
import com.baiyi.cmall.entity.GoodsSourceInfo;
import com.baiyi.cmall.views.pulldownview.PullToRefreshListView;
import android.app.Activity;
import android.graphics.Rect;
import android.util.Log;
import android.view.View;
import android.view.View.MeasureSpec;
import android.view.ViewGroup.LayoutParams;
import android.widget.Adapter;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ListView;
/**
* 得到手机相关参数的工具类
*
* @author sunxy
*
*/
public class MobileStateUtils {
/**
* 获取手机状态栏的高度
*
* @param activity
* @return > 0 success; <= 0 fail
*/
public static int getStatusHeight(Activity activity) {
int statusHeight = 0;
Rect localRect = new Rect();
activity.getWindow().getDecorView()
.getWindowVisibleDisplayFrame(localRect);
statusHeight = localRect.top;
if (0 == statusHeight) {
Class<?> localClass;
try {
localClass = Class.forName("com.android.internal.R$dimen");
Object localObject = localClass.newInstance();
int i5 = Integer.parseInt(localClass
.getField("status_bar_height").get(localObject)
.toString());
statusHeight = activity.getResources()
.getDimensionPixelSize(i5);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (NumberFormatException e) {
e.printStackTrace();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchFieldException e) {
e.printStackTrace();
}
}
return statusHeight;
}
/**
* 动态获取所有ListView条目的总高度
*
* @param orderAdapter2
* @param listView
*/
public static int getTotalHeightofListView(BaseAdapter orderAdapter2,
PullToRefreshListView listView) {
if (orderAdapter2 == null) {
return 0;
}
int totalHeight = 0;
for (int i = 0; i < orderAdapter2.getCount(); i++) {
View mView = orderAdapter2.getView(i, null, listView);
mView.measure(
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
// mView.measure(0, 0);
totalHeight += mView.getMeasuredHeight() + 1;
Log.w("HEIGHT" + i, String.valueOf(totalHeight));
}
return totalHeight;
}
public static void setHight(BaseAdapter adapter,
PullToRefreshListView listView, ArrayList<?> datas) {
LayoutParams params = listView.getLayoutParams();
params.height = MobileStateUtils.getTotalHeightofListView(adapter,
listView) + (adapter.getCount() * (datas.size() - 1));
listView.setLayoutParams(params);
}
/**
* 计算ListView的高度
*
* @param orderAdapter2
* @param listView
* @return
*/
public static int getTotalHeightofListView(BaseAdapter orderAdapter2,
ListView listView) {
if (orderAdapter2 == null) {
return 0;
}
int totalHeight = 0;
for (int i = 0; i < orderAdapter2.getCount(); i++) {
View mView = orderAdapter2.getView(i, null, listView);
mView.measure(
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
// mView.measure(0, 0);
totalHeight += mView.getMeasuredHeight();
Log.w("HEIGHT" + i, String.valueOf(totalHeight));
}
// totalHeight += (listView.getDividerHeight() *
// (orderAdapter2.getCount() - 1));
return totalHeight;
}
/**
* 判断最后一个child是否完全显示出来
*
* @return true完全显示出来,否则false
*/
public static boolean isLastItemVisible(PullToRefreshListView mListView) {
final Adapter adapter = mListView.getRefreshableView().getAdapter();
if (null == adapter || adapter.isEmpty()) {
return true;
}
final int lastItemPosition = adapter.getCount() - 1;
final int lastVisiblePosition = mListView.getRefreshableView()
.getLastVisiblePosition();
/**
* This check should really just be: lastVisiblePosition ==
* lastItemPosition, but ListView internally uses a FooterView which
* messes the positions up. For me we'll just subtract one to account
* for it and rely on the inner condition which checks getBottom().
*/
if (lastVisiblePosition >= lastItemPosition - 1) {
final int childIndex = lastVisiblePosition
- mListView.getRefreshableView().getFirstVisiblePosition();
final int childCount = mListView.getChildCount();
final int index = Math.min(childIndex, childCount - 1);
final View lastVisibleChild = mListView.getChildAt(index);
if (lastVisibleChild != null) {
return lastVisibleChild.getBottom() <= mListView.getBottom();
}
}
return false;
}
public static int getTotalHeightofGridView(BaseAdapter adapter,
GridView mGdShare) {
if (adapter == null) {
return 0;
}
int totalHeight = 0;
for (int i = 0; i < adapter.getCount() / 4; i++) {
View mView = adapter.getView(i, null, mGdShare);
mView.measure(
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
// mView.measure(0, 0);
totalHeight += mView.getMeasuredHeight() + 50;
Log.w("TAG" + i, String.valueOf(totalHeight)
+ "-------adapter.getCount()--" + (adapter.getCount() / 4));
}
// totalHeight += (listView.getDividerHeight() *
// (orderAdapter2.getCount() - 1));
return totalHeight;
}
}
|
[
"sixdoor123"
] |
sixdoor123
|
cb992567c2d561b2bbb970ce3f4a71d0e9f96757
|
679fee84558e55b5521bf48abbf2047d4996f745
|
/study/src/main/java/com/study/day19/DogStore.java
|
a3092c8615f5c35acead1f9bdc4887f226efeefe
|
[] |
no_license
|
vincenttuan/Java20210726
|
aa540f23cac85af7c681469e7bee838dbc6a2f4e
|
62539b5cb351604eff671c28508a1cdeba213a61
|
refs/heads/master
| 2023-07-09T04:11:46.284334
| 2021-08-12T04:04:06
| 2021-08-12T04:04:06
| 389,519,486
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 196
|
java
|
package com.study.day19;
public class DogStore {
public static void main(String[] args) {
ADog bigDog = new BigDog();
System.out.println(ADog.legs);
bigDog.eat();
bigDog.skill();
}
}
|
[
"vincentjava@yahoo.com.tw"
] |
vincentjava@yahoo.com.tw
|
5963e65e93f450345da03358978e66ebac404957
|
a45fd0840d238002a254068d8463a75fd905de09
|
/servlet_jsp_code/listnerdemo/src/com/web/listners/MyServletContextListner.java
|
669a3354030c2d1e13b51f0762946a2f4e05bc92
|
[] |
no_license
|
rgupta00/servlet-jsp-ymsli
|
60319ae32850e2d5d9b38aa6f23930d234d7030c
|
b539a409a38003648fffc94b1ab912a62ae2cc5c
|
refs/heads/master
| 2023-02-28T19:10:07.714321
| 2021-02-08T10:18:37
| 2021-02-08T10:18:37
| 335,473,290
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 683
|
java
|
package com.web.listners;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.model.Dog;
public class MyServletContextListner implements ServletContextListener {
private Dog dog;
public void contextInitialized(ServletContextEvent sce) {
String dogName=sce.getServletContext().getInitParameter("dogName");
dog=new Dog(dogName);
sce.getServletContext().setAttribute("dog", dog);
System.out.println("dog is added to servlet context...");
}
public void contextDestroyed(ServletContextEvent sce) {
sce.getServletContext().removeAttribute("dog");
System.out.println("dog is remoged form servlet context....");
}
}
|
[
"rgupta.mtech@gmail.com"
] |
rgupta.mtech@gmail.com
|
841e7d61a5ed7bbb41040849bb1397a5b697fd68
|
e615101180a1d3e78cbd1d66162ec42b8999bb9c
|
/swaf-core/src/main/java/della/swaf/background/swing/CollectionBackgroundTask.java
|
cf164d635d79673e4bf14714fb1f7e494710236a
|
[] |
no_license
|
espre05/test-projects
|
7522a76d41e6e6a822d2475e8246aab1730f2e46
|
26120053987e7570f0697a7e80b395edc0899475
|
refs/heads/master
| 2021-01-18T21:29:49.198194
| 2016-04-26T20:26:55
| 2016-04-26T20:26:55
| 31,580,648
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,912
|
java
|
/*
* Created on 19-feb-2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package della.swaf.background.swing;
import java.util.Collection;
import java.util.Iterator;
/**
* @author Daniele
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public abstract class CollectionBackgroundTask extends SwingBackgroundTask {
protected Collection col;
private Iterator iter;
private int period = 0;
public CollectionBackgroundTask() {
}
public CollectionBackgroundTask(Collection collection) {
this.col = collection;
this.iter = col.iterator();
}
public CollectionBackgroundTask(Iterator iter) {
this.iter = iter;
}
protected Object executeInBackground() throws Exception {
int i = 0;
int size = col.size();
firePropertyChange("max", 0, size);
for (Iterator it = col.iterator(); it.hasNext();) {
try {
firePropertyChange(NAME, "", name);
applyTo(it.next());
if (period > 0)
Thread.sleep(period * 1000);
} catch (Exception e) {
e.printStackTrace();
}
setProgress(100 * ++i / size);
// setReachedPoint(i);
}
return null;
}
protected Object executeInBackground2() throws Exception {
int i = 0;
int size = col.size();
firePropertyChange("max", 0, size);
for (Iterator it = iter; it.hasNext();) {
try {
applyTo(it.next());
if (period > 0)
Thread.sleep(period * 1000);
} catch (Exception e) {
e.printStackTrace();
}
setProgress(100 * ++i / size);
// setReachedPoint(i);
}
return null;
}
// protected final void setReachedPoint(int progress) {
// if (progress < 0 || progress > col.size()) {
// throw new IllegalArgumentException("the value should be from 0 to " + col.size());
// }
// int oldProgress = this.iterationState;
// this.iterationState = progress;
// synchronized (this) {
// if (doNotifyIterationChange == null) {
// doNotifyIterationChange =
// new AccumulativeRunnable<Integer>() {
// @Override
// public void run(Integer... args) {
// firePropertyChange("iterationState",
// args[0],
// args[args.length - 1]);
// }
// };
// }
// }
// doNotifyIterationChange.add(oldProgress, progress);
// }
protected abstract void applyTo(Object singleElement);
public final void setCollection(Collection col) {
this.col = col;
this.iter = iter;
}
public void setPausePeriod(int i) {
this.period = i;
}
}
|
[
"espre05@gmail.com"
] |
espre05@gmail.com
|
c39f597598823d54c9015908bcb3524be98a2f46
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/data/message/ActivityFeedItemDataStore$getActivityFeedItemForMessageId$2$1.java
|
ee573e61b90df91a811003970b6bdaf4686a4016
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 1,975
|
java
|
package com.tinder.data.message;
import android.database.Cursor;
import com.squareup.sqldelight.RowMapper;
import com.tinder.data.model.activityfeed.ActivityFeedItemModel.Select_activity_feed_item_by_message_idModel;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.C15825i;
import kotlin.jvm.internal.C2668g;
import kotlin.jvm.internal.FunctionReference;
import kotlin.reflect.KDeclarationContainer;
import org.jetbrains.annotations.NotNull;
@Metadata(bv = {1, 0, 2}, d1 = {"\u0000\u0014\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0015\u0010\u0002\u001a\u00110\u0003¢\u0006\f\b\u0004\u0012\b\b\u0005\u0012\u0004\b\b(\u0006¢\u0006\u0002\b\u0007"}, d2 = {"<anonymous>", "Lcom/tinder/data/model/activityfeed/ActivityFeedItemModel$Select_activity_feed_item_by_message_idModel;", "p1", "Landroid/database/Cursor;", "Lkotlin/ParameterName;", "name", "p0", "invoke"}, k = 3, mv = {1, 1, 10})
final class ActivityFeedItemDataStore$getActivityFeedItemForMessageId$2$1 extends FunctionReference implements Function1<Cursor, Select_activity_feed_item_by_message_idModel> {
ActivityFeedItemDataStore$getActivityFeedItemForMessageId$2$1(RowMapper rowMapper) {
super(1, rowMapper);
}
public final String getName() {
return "map";
}
public final KDeclarationContainer getOwner() {
return C15825i.a(RowMapper.class);
}
public final String getSignature() {
return "map(Landroid/database/Cursor;)Ljava/lang/Object;";
}
public /* synthetic */ Object invoke(Object obj) {
return m54335a((Cursor) obj);
}
@NotNull
/* renamed from: a */
public final Select_activity_feed_item_by_message_idModel m54335a(@NotNull Cursor cursor) {
C2668g.b(cursor, "p1");
return (Select_activity_feed_item_by_message_idModel) ((RowMapper) this.receiver).map(cursor);
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
7496b9110766031a8fd16fc0af0bab0ca9e787cf
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/sls-20191023/src/main/java/com/aliyun/sls20191023/models/AnalyzeProductLogResponseBody.java
|
1bf153c7eaa52da83a9d62c18de8979c76365736
|
[
"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
| 1,419
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sls20191023.models;
import com.aliyun.tea.*;
public class AnalyzeProductLogResponseBody extends TeaModel {
@NameInMap("Code")
public String code;
@NameInMap("Message")
public String message;
@NameInMap("RequestId")
public String requestId;
@NameInMap("Success")
public String success;
public static AnalyzeProductLogResponseBody build(java.util.Map<String, ?> map) throws Exception {
AnalyzeProductLogResponseBody self = new AnalyzeProductLogResponseBody();
return TeaModel.build(map, self);
}
public AnalyzeProductLogResponseBody setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public AnalyzeProductLogResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public AnalyzeProductLogResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public AnalyzeProductLogResponseBody setSuccess(String success) {
this.success = success;
return this;
}
public String getSuccess() {
return this.success;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
ca5e03d4967841baac1690eba943ba928c72c7ea
|
029a60dd1daeac58f1683503d70f9a756d550bbc
|
/level15/src/main/java/lesson12/bonus01/Plane.java
|
f6a06cd6e1ebf1fc53b068cd3e994b0e57ed426d
|
[] |
no_license
|
Borislove/JavaRush-1
|
4d66837bd07697299d97c234b751c0310ea57042
|
752373a5972c32e57fa1bffa60013a0da9e49b67
|
refs/heads/master
| 2023-05-03T12:32:29.577155
| 2021-05-24T13:12:55
| 2021-05-24T13:12:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 206
|
java
|
package lesson12.bonus01;
/**
* Created by Igor on 11.08.2015.
*/
public class Plane implements Flyable
{
public Plane(int passengers)
{
}
@Override
public void fly()
{
}
}
|
[
"krohmal_kirill@mail.ru"
] |
krohmal_kirill@mail.ru
|
1fc4645a09c11ff0ab98b5c8f943e8ad40b951e2
|
f34602b407107a11ce0f3e7438779a4aa0b1833e
|
/professor/dvl/roadnet-client/src/main/java/org/datacontract/schemas/_2004/_07/roadnet_apex_server_services_administration/QueuedMessage.java
|
e78ae033c621bf316513f6a3b0499b2c1673bb22
|
[] |
no_license
|
ggmoura/treinar_11836
|
a447887dc65c78d4bd87a70aab2ec9b72afd5d87
|
0a91f3539ccac703d9f59b3d6208bf31632ddf1c
|
refs/heads/master
| 2022-06-14T13:01:27.958568
| 2020-04-04T01:41:57
| 2020-04-04T01:41:57
| 237,103,996
| 0
| 2
| null | 2022-05-20T21:24:49
| 2020-01-29T23:36:21
|
Java
|
UTF-8
|
Java
| false
| false
| 4,985
|
java
|
package org.datacontract.schemas._2004._07.roadnet_apex_server_services_administration;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
import com.roadnet.apex.datacontracts.AggregateRootEntity;
/**
* <p>Classe Java de QueuedMessage complex type.
*
* <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
*
* <pre>
* <complexType name="QueuedMessage">
* <complexContent>
* <extension base="{http://roadnet.com/apex/DataContracts/}AggregateRootEntity">
* <sequence>
* <element name="Body" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="NotificationMethod_Method" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Recipient" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "QueuedMessage", propOrder = {
"body",
"notificationMethodMethod",
"recipient",
"subject"
})
public class QueuedMessage
extends AggregateRootEntity
{
@XmlElementRef(name = "Body", namespace = "http://schemas.datacontract.org/2004/07/Roadnet.Apex.Server.Services.Administration.DataContracts", type = JAXBElement.class, required = false)
protected JAXBElement<String> body;
@XmlElementRef(name = "NotificationMethod_Method", namespace = "http://schemas.datacontract.org/2004/07/Roadnet.Apex.Server.Services.Administration.DataContracts", type = JAXBElement.class, required = false)
protected JAXBElement<String> notificationMethodMethod;
@XmlElementRef(name = "Recipient", namespace = "http://schemas.datacontract.org/2004/07/Roadnet.Apex.Server.Services.Administration.DataContracts", type = JAXBElement.class, required = false)
protected JAXBElement<String> recipient;
@XmlElementRef(name = "Subject", namespace = "http://schemas.datacontract.org/2004/07/Roadnet.Apex.Server.Services.Administration.DataContracts", type = JAXBElement.class, required = false)
protected JAXBElement<String> subject;
/**
* Obtém o valor da propriedade body.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getBody() {
return body;
}
/**
* Define o valor da propriedade body.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setBody(JAXBElement<String> value) {
this.body = value;
}
/**
* Obtém o valor da propriedade notificationMethodMethod.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getNotificationMethodMethod() {
return notificationMethodMethod;
}
/**
* Define o valor da propriedade notificationMethodMethod.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setNotificationMethodMethod(JAXBElement<String> value) {
this.notificationMethodMethod = value;
}
/**
* Obtém o valor da propriedade recipient.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getRecipient() {
return recipient;
}
/**
* Define o valor da propriedade recipient.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setRecipient(JAXBElement<String> value) {
this.recipient = value;
}
/**
* Obtém o valor da propriedade subject.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getSubject() {
return subject;
}
/**
* Define o valor da propriedade subject.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setSubject(JAXBElement<String> value) {
this.subject = value;
}
}
|
[
"gleidson.gmoura@gmail.com"
] |
gleidson.gmoura@gmail.com
|
89609fd3c1be98900aa793c9ed9751c35294eed3
|
4589a9b3563e39d49039aa846fea25d9dbc10a8a
|
/src/destination_version/bridge/BridgeTest.java
|
5dddb3a3148e97e5bcdae62fa67491a7a586af95
|
[] |
no_license
|
moocstudent/DesignPattern1
|
3769f733484e963110f65a6b75e5293cd1ec76ef
|
b728ea7c82e96960fac20baab0f3dc6f80336ea2
|
refs/heads/master
| 2022-03-06T13:07:06.189716
| 2019-12-07T15:08:16
| 2019-12-07T15:08:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 585
|
java
|
package destination_version.bridge;
/**
* ��������Բ��ͣ�http://blog.csdn.net/zhangerqing
* email:xtfggef@gmail.com
* ����http://weibo.com/xtfggef
* @author egg
*
*/
public class BridgeTest {
public static void main(String[] args) {
Bridge bridge = new MyBridge();
/*���õ�һ������*/
Sourceable source1 = new SourceSub1();
bridge.setSource(source1);
bridge.method();
/*���õڶ�������*/
Sourceable source2 = new SourceSub2();
bridge.setSource(source2);
bridge.method();
}
}
|
[
"deadzq@qq.com"
] |
deadzq@qq.com
|
d411961a7c9a6d3ba8b7847f5675f9a345c2a5ca
|
7898b6967273fb569d61256b7acc8da372c1326e
|
/InterviewBit/ImplementStrStr.java
|
fe9103f7db59c4787df10882e7e1f727ae70483b
|
[] |
no_license
|
DavinderSinghKharoud/AlgorithmsAndDataStructures
|
83d4585ebbdc9bc27529bffcadf03f49fc3d0088
|
183aeba23f51b9edea6be8afbc9ee6cd221d3195
|
refs/heads/master
| 2022-07-08T17:18:23.954213
| 2022-05-17T02:22:16
| 2022-05-17T02:22:16
| 229,511,418
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,565
|
java
|
package InterviewBit;
public class ImplementStrStr {
//Time complexity O(m * n) and space complexity O(1)
public static int strStr(final String needle, final String hayStack) {
int len1 = needle.length();
int len2 = hayStack.length();
if( len1 == 0 || len2 == 0 ){
return -1;
}
for( int index = 0; index < len2; index++ ){
int limit = index + len1;
if( limit <= len2 && needle.equals(hayStack.substring(index, limit ) ) ){
return index;
}
}
return -1;
}
public static void main(String[] args) {
//System.out.println(strStr("hello", "afsdfhello"));
System.out.println(strStr2("abcabyab","abxabcabcaby"));
}
//KMP algorithm
//Time and space complexity O(n)
public static int strStr2(final String needle, final String hayStack) {
int len1 = needle.length();
int len2 = hayStack.length();
int[] pattern = new int[len1];
int start = 0, end = 1;
//Create a dp
while ( end < len1 ){
if(needle.charAt(start) == needle.charAt(end) ){
pattern[end++] = start + 1;
start++;
}else{
start = (start - 1 < 0 )? 0: pattern[start - 1];
if(start == 0 ) end++;
}
}
int index = 0;
start = 0;
int res;
while ( index < len2 ){
if( hayStack.charAt(index) == needle.charAt(start) ){
res = index - start; //update the res
start++;
index++;
if( start == len1 ) {
return res;
}
}else{
if( start == 0 ) {
index++;
continue;
}
start = ( start - 1 > 0 ) ? pattern[start - 1]: 0;
}
}
return -1;
}
}
|
[
"dskharoud2@gmail.com"
] |
dskharoud2@gmail.com
|
c43d8cb514218a690f03719c32a2a290e186d44a
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/52/3875.java
|
40650e5d3ba872b4ca4e5c08cc492e7578b42a87
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,584
|
java
|
package <missing>;
public class GlobalMembers
{
public static void shift(tangible.RefObject<Integer> pta, int n)
{
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
int * p = null; //????
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
int * q = null;
int temp;
p = pta.argValue;
q = pta.argValue + n;
while (p < q)
{ //???????
temp = p;
*p = q;
*q = temp;
p++;
q--;
}
}
public static int Main() //?????
{
int m;
int n;
int i;
int[] a = new int[100]; //???????
//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:
//ORIGINAL LINE: int *pta=null;
int pta = null;
n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
m = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
for (i = 0;i < n;i++)
{ //???????
a[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
}
pta = a; //??????a??????
tangible.RefObject<Integer> tempRef_pta = new tangible.RefObject<Integer>(pta);
shift(tempRef_pta, n); //??shift????????????
pta = tempRef_pta.argValue;
tangible.RefObject<Integer> tempRef_pta2 = new tangible.RefObject<Integer>(pta);
shift(tempRef_pta2, m); //??m?????
pta = tempRef_pta2.argValue;
shift(pta + m, n - m); //??n-m?????
for (i = 0;i < n - 1;i++)
{
System.out.print(pta[i]);
System.out.print(" ");
}
System.out.print(pta[i]);
return 0;
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
ad34b6ecc63ac84f55af899fa34d58f4e3caa58a
|
2bc2eadc9b0f70d6d1286ef474902466988a880f
|
/tags/mule-2.1.2-HF1/transports/axis/src/test/java/org/mule/transport/soap/axis/functional/WebServiceWrapperWithAxisTestCase.java
|
8502bade34bb959a7809af030d91f49c663d3299
|
[] |
no_license
|
OrgSmells/codehaus-mule-git
|
085434a4b7781a5def2b9b4e37396081eaeba394
|
f8584627c7acb13efdf3276396015439ea6a0721
|
refs/heads/master
| 2022-12-24T07:33:30.190368
| 2020-02-27T19:10:29
| 2020-02-27T19:10:29
| 243,593,543
| 0
| 0
| null | 2022-12-15T23:30:00
| 2020-02-27T18:56:48
| null |
UTF-8
|
Java
| false
| false
| 2,185
|
java
|
/*
* $Id$
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.transport.soap.axis.functional;
import org.mule.DefaultMuleMessage;
import org.mule.api.MuleMessage;
import org.mule.module.client.MuleClient;
import org.mule.tck.FunctionalTestCase;
import java.util.Properties;
public class WebServiceWrapperWithAxisTestCase extends FunctionalTestCase
{
private String testString = "test";
public void testWsCall() throws Exception
{
MuleClient client = new MuleClient();
MuleMessage result = client.send("vm://testin?connector=VMConnector", new DefaultMuleMessage(testString));
assertNotNull(result.getPayload());
assertEquals("Payload", "Received: "+ testString, result.getPayloadAsString());
}
public void testWsCallWithUrlFromMessage() throws Exception
{
MuleClient client = new MuleClient();
Properties props = new Properties();
props.setProperty("ws.service.url", "http://localhost:65081/services/TestUMO?method=receive");
MuleMessage result = client.send("vm://testin2?connector=VMConnector", testString, props);
assertNotNull(result.getPayload());
assertEquals("Payload", "Received: "+ testString, result.getPayloadAsString());
}
public void testWsCallWithComplexParameters() throws Exception
{
MuleClient client = new MuleClient();
client.dispatch("vm://queue.in?connector=VMQueue", new Object[]{new Long(3), new Long(3)},null);
MuleMessage result = client.request("vm://queue.out?connector=VMQueue", 500000);
assertNotNull(result.getPayload());
assertTrue(result.getPayload() instanceof Long);
assertEquals("Payload", 6, ((Long)result.getPayload()).intValue());
}
protected String getConfigResources()
{
return "mule-ws-wrapper-config.xml";
}
}
|
[
"dzapata@bf997673-6b11-0410-b953-e057580c5b09"
] |
dzapata@bf997673-6b11-0410-b953-e057580c5b09
|
0aa74d4bc96ef26a1a9a462d9bc9770a7b21b66b
|
1f65e87983cb2f9e9a5683bd11259b1283784d43
|
/app/src/main/java/com/skypremiuminternational/app/app/view/SkyTextInputWithouLineLayout.java
|
aa5ee7bbbe30011085ec8ab9d1ef8fc89a90a8ba
|
[] |
no_license
|
tonyanangel/Skypremium2
|
c40f8339be4f43e8b307e7654af7e788f36df575
|
7b510e184d23a16297b25ce77938ce9ba5e4624a
|
refs/heads/master
| 2023-02-16T23:37:42.088375
| 2021-01-20T04:08:06
| 2021-01-20T04:08:06
| 331,189,329
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,010
|
java
|
package com.skypremiuminternational.app.app.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.text.method.TransformationMethod;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.skypremiuminternational.app.R;
import com.skypremiuminternational.app.app.utils.listener.OnTextChangedListener;
/**
* Created by aeindraaung on 2/8/18.
*/
public class SkyTextInputWithouLineLayout extends LinearLayout {
TextView tv;
EditText edt;
boolean isHintMutable;
String secondaryHint;
String primaryHint;
int hint_color;
String hint = "";
String text = "";
int error_color;
String error = "";
int inputType = -1;
int imeOptions = -1;
InputFilter[] inputFilters = null;
int maxLines = -1;
boolean enabled = true;
Drawable drawableRight = null;
private OnTextChangedListener onTextChangedListener;
public SkyTextInputWithouLineLayout(Context context) {
super(context);
}
public SkyTextInputWithouLineLayout(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
init(attrs);
}
public SkyTextInputWithouLineLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init(attrs);
}
public void setOnTextChangedListener(OnTextChangedListener onTextChangedListener) {
this.onTextChangedListener = onTextChangedListener;
}
private void init(AttributeSet attrs) {
if (!isInEditMode()) {
TypedArray typedArray =
getContext().obtainStyledAttributes(attrs, R.styleable.SkyTextInputLayout);
try {
secondaryHint = typedArray.getString(R.styleable.SkyTextInputLayout_secondaryHint);
isHintMutable = typedArray.getBoolean(R.styleable.SkyTextInputLayout_isHintMutable, false);
hint_color = typedArray.getColor(R.styleable.SkyTextInputLayout_hintColor,
ContextCompat.getColor(getContext(), R.color.orchid));
hint = typedArray.getString(R.styleable.SkyTextInputLayout_android_hint);
primaryHint = hint;
text = typedArray.getString(R.styleable.SkyTextInputLayout_android_text);
error_color = typedArray.getColor(R.styleable.SkyTextInputLayout_errorColor,
ContextCompat.getColor(getContext(), R.color.wineRed));
error = typedArray.getString(R.styleable.SkyTextInputLayout_error);
if (typedArray.hasValue(R.styleable.SkyTextInputLayout_android_inputType)) {
inputType = (typedArray.getInt(R.styleable.SkyTextInputLayout_android_inputType, -1));
}
if (typedArray.hasValue(R.styleable.SkyTextInputLayout_android_enabled)) {
enabled = typedArray.getBoolean(R.styleable.SkyTextInputLayout_android_enabled, true);
}
if (typedArray.hasValue(R.styleable.SkyTextInputLayout_android_drawableRight)) {
drawableRight =
typedArray.getDrawable(R.styleable.SkyTextInputLayout_android_drawableRight);
}
if (typedArray.hasValue(R.styleable.SkyTextInputLayout_android_imeOptions)) {
imeOptions = typedArray.getInt(R.styleable.SkyTextInputLayout_android_imeOptions, -1);
}
if (typedArray.hasValue(R.styleable.SkyTextInputLayout_android_maxLength)) {
inputFilters = new InputFilter[]{
new InputFilter.LengthFilter(
typedArray.getInt(R.styleable.SkyTextInputLayout_android_maxLength, 0))
};
}
if (typedArray.hasValue(R.styleable.SkyTextInputLayout_android_maxLines)) {
maxLines = typedArray.getInt(R.styleable.SkyTextInputLayout_android_maxLines, 1);
}
} finally {
typedArray.recycle();
}
}
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
inflate(getContext(), R.layout.skytextinputwithoutlinelayout, this);
tv = findViewById(R.id.tv);
edt = findViewById(R.id.edt);
edt.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean b) {
if (view.getId() == R.id.edt) {
if (hasFocus()) {
if (TextUtils.isEmpty(edt.getText().toString())) {
tv.setVisibility(View.INVISIBLE);
} else {
tv.setVisibility(View.VISIBLE);
}
} else {
// Toast.makeText(getContext(), "notFocus", Toast.LENGTH_SHORT).show();
}
}
}
});
edt.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
if (isHintMutable) {
if (charSequence.length() > 0) {
setHint(secondaryHint);
} else {
setHint(primaryHint);
}
}
String text = charSequence.toString();
tv.setTextColor(hint_color);
tv.setText(edt.getHint());
if (TextUtils.isEmpty(text)) {
tv.setVisibility(View.INVISIBLE);
} else {
tv.setVisibility(View.VISIBLE);
}
if (onTextChangedListener != null) {
onTextChangedListener.onTextChanged(charSequence.toString());
}
}
@Override
public void afterTextChanged(Editable editable) {
}
});
tv.setText(hint);
edt.setHint(hint);
if (inputType != -1) edt.setInputType(inputType);
if (imeOptions != -1) edt.setImeOptions(imeOptions);
if (maxLines != -1) edt.setMaxLines(maxLines);
if (inputFilters != null) edt.setFilters(inputFilters);
if (drawableRight != null) {
edt.setCompoundDrawablesWithIntrinsicBounds(null, null, drawableRight, null);
}
edt.setEnabled(enabled);
edt.setText(text);
edt.setSelection(edt.getText().length());
}
public String getHint() {
return hint;
}
public void setHint(String hint) {
this.hint = hint;
edt.setHint(hint);
}
public void showError(String error_text) {
tv.setVisibility(VISIBLE);
tv.setTextColor(error_color);
if ((error_text != null) && (!TextUtils.isEmpty(error_text))) {
tv.setText(error_text);
} else {
tv.setText(this.error);
}
}
public void showError() {
//if (!TextUtils.isEmpty(edt.getText().toString())) {
tv.setVisibility(VISIBLE);
tv.setTextColor(error_color);
if (!TextUtils.isEmpty(error)) {
tv.setText(error);
}
//}
}
public void hideError() {
if (TextUtils.isEmpty(edt.getText().toString())) {
tv.setVisibility(INVISIBLE);
} else {
tv.setVisibility(VISIBLE);
}
tv.setTextColor(hint_color);
tv.setText(hint);
}
public void setText(String text) {
this.text = text;
edt.setText(text);
edt.setSelection(edt.getText().length());
}
public String getText() {
return edt.getText().toString();
}
public void setError(String error) {
this.error = error;
tv.setText(error);
}
public String getError() {
return error;
}
public void setInputType(int inputType) {
this.inputType = inputType;
edt.setInputType(inputType);
}
public int getInputType() {
return edt.getInputType();
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public void setEnabled(boolean enabled) {
this.enabled = enabled;
edt.setEnabled(enabled);
}
public void setTransformationMethod(TransformationMethod transformationMethod) {
edt.setTransformationMethod(transformationMethod);
}
}
|
[
"phuqnvn111@gmail.com"
] |
phuqnvn111@gmail.com
|
ad02bee0835659dd5954421fee3855ea979109c3
|
1e109337f4a2de0d7f9a33f11f029552617e7d2e
|
/libraries/jcatapult-crud/tags/1.0-RC13/src/java/main/org/jcatapult/crud/service/SimpleSearchCriteria.java
|
53c6073aa566bf286d5ba577c8e8e659ef9b7ea5
|
[] |
no_license
|
Letractively/jcatapult
|
54fb8acb193bc251e5984c80eba997793844059f
|
f903b78ce32cc5468e48cd7fde220185b2deecb6
|
refs/heads/master
| 2021-01-10T16:54:58.441959
| 2011-12-29T00:43:26
| 2011-12-29T00:43:26
| 45,956,606
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,274
|
java
|
/*
* Copyright (c) 2001-2007, JCatapult.org, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
*/
package org.jcatapult.crud.service;
/**
* <p>
* This class is a simple search criteria for Objects that do not require any
* special handling or that want to implement a search.
* </p>
*
* @author Brian Pontarelli
*/
public class SimpleSearchCriteria<T> extends AbstractSearchCriteria<T> {
private final Class<T> type;
/**
* Constructs the SimpleSearchCriteria for the given type.
*
* @param type The type.
*/
public SimpleSearchCriteria(Class<T> type) {
this.type = type;
}
/**
* Constructs the SimpleSearchCriteria for the given type and using the given initial sort property,
* number of results per page, page number and show all flag.
*
* @param type The type.
* @param sortProperty The initial sort property.
* @param numberPerPage The number per page.
* @param page The initial page number.
* @param showAll The show all flag.
*/
public SimpleSearchCriteria(Class<T> type, String sortProperty, int numberPerPage, int page, boolean showAll) {
super(sortProperty, numberPerPage, page, showAll);
this.type = type;
}
/**
* This method doesn't do anything to the query builder.
*
* @param builder The builder.
*/
protected void buildJPAQuery(QueryBuilder builder) {
}
/**
* This method doesn't do anything to the query builder.
*
* @param builder The builder.
*/
protected void buildJPACountQuery(QueryBuilder builder) {
}
/**
* @return The type.
*/
public Class<T> getResultType() {
return type;
}
}
|
[
"bpontarelli@b10e9645-db3f-0410-a6c5-e135923ffca7"
] |
bpontarelli@b10e9645-db3f-0410-a6c5-e135923ffca7
|
559454157467d163ba8e692b6f335aa6aaeb3d23
|
1dd4227092fb1ebca232518eb5de4eecd2aacaba
|
/spring-core/src/main/java/org/springframework/core/annotation/Order.java
|
1c966420659699ce637adbc3f9366d1e7ae107a3
|
[
"Apache-2.0"
] |
permissive
|
qsk1226/spring-framework
|
65b7dd129722af6d924e0e42cec7faa3e0aaf460
|
77899424e8ce2d37d7a2d21a1d38f4bae39b82d6
|
refs/heads/master
| 2023-03-16T16:02:45.578432
| 2021-03-07T05:07:27
| 2021-03-07T05:07:27
| 271,598,371
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,192
|
java
|
/*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.core.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.core.Ordered;
/**
* {@code @Order} defines the sort order for an annotated component.
*
* <p>The {@link #value} is optional and represents an order value as defined in the
* {@link Ordered} interface. Lower values have higher priority. The default value is
* {@code Ordered.LOWEST_PRECEDENCE}, indicating lowest priority (losing to any other
* specified order value).
*
* <p><b>NOTE:</b> Since Spring 4.0, annotation-based ordering is supported for many
* kinds of components in Spring, even for collection injection where the order values
* of the target components are taken into account (either from their target class or
* from their {@code @Bean} method). While such order values may influence priorities
* at injection points, please be aware that they do not influence singleton startup
* order which is an orthogonal concern determined by dependency relationships and
* {@code @DependsOn} declarations (influencing a runtime-determined dependency graph).
*
* <p>Since Spring 4.1, the standard {@link javax.annotation.Priority} annotation
* can be used as a drop-in replacement for this annotation in ordering scenarios.
* Note that {@code @Priority} may have additional semantics when a single element
* has to be picked (see {@link AnnotationAwareOrderComparator#getPriority}).
*
* <p>Alternatively, order values may also be determined on a per-instance basis
* through the {@link Ordered} interface, allowing for configuration-determined
* instance values instead of hard-coded values attached to a particular class.
*
* <p>Consult the javadoc for {@link org.springframework.core.OrderComparator
* OrderComparator} for details on the sort semantics for non-ordered objects.
*
* @author Rod Johnson
* @author Juergen Hoeller
* @since 2.0
* @see org.springframework.core.Ordered
* @see AnnotationAwareOrderComparator
* @see OrderUtils
* @see javax.annotation.Priority
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Documented
public @interface Order {
/**
* The order value.
* <p>Default is {@link Ordered#LOWEST_PRECEDENCE}.
* @see Ordered#getOrder()
*/
int value() default Ordered.LOWEST_PRECEDENCE;
}
|
[
"qinshengkei@taoche.com"
] |
qinshengkei@taoche.com
|
84d1f3f0bd303a90e777a16c366e34bf8b9e99a5
|
b15ffb661182aaec5679bb93433c23541d4d6ed9
|
/services/hrdb/src/com/auto_kwqjsankie/hrdb/controller/ProcedureExecutionController.java
|
2a436e3b3730d685e5c03c8cc11f3503dc1fb04b
|
[] |
no_license
|
wavemakerapps/Auto_kwqJsankiE
|
5bede12458e70fdb4d58b88a06179a90a35ed11d
|
1873ce9f8dced71c64118a73312b15a8ac208943
|
refs/heads/master
| 2020-03-18T05:51:06.510462
| 2018-05-22T05:37:25
| 2018-05-22T05:37:25
| 134,364,934
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,339
|
java
|
/*Copyright (c) 2015-2016 wavemaker.com All Rights Reserved.
This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance
with the terms of the source code license agreement you entered into with wavemaker.com*/
package com.auto_kwqjsankie.hrdb.controller;
/*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wavemaker.runtime.data.dao.procedure.WMProcedureExecutor;
import com.wordnik.swagger.annotations.Api;
import com.auto_kwqjsankie.hrdb.service.HrdbProcedureExecutorService;
@RestController(value = "Hrdb.ProcedureExecutionController")
@RequestMapping("/hrdb/procedureExecutor")
@Api(value = "ProcedureExecutionController", description = "controller class for procedure execution")
public class ProcedureExecutionController {
@Autowired
private HrdbProcedureExecutorService procedureService;
}
|
[
"automate1@wavemaker.com"
] |
automate1@wavemaker.com
|
cb0da6f0c1adf1c3381aab016beee955bb38d98f
|
b3672b53c6f5ab9e7881d658ad5d3f5b2626b0d2
|
/osp/presentation/tool/src/java/org/theospi/portfolio/presentation/control/PreviewTemplateController.java
|
ea6d1282efbbed4ceedc385e2cb686c701c8d07f
|
[] |
no_license
|
sakai-mirror/ctools
|
e4aee1fe53efc631cb27de7f968172557457b758
|
6e6ddc05e0208a680e61299a42e3b374494239bc
|
refs/heads/master
| 2016-09-06T09:36:31.829901
| 2008-10-03T13:43:35
| 2008-10-03T13:43:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,570
|
java
|
/**********************************************************************************
* $URL:https://source.sakaiproject.org/svn/osp/trunk/presentation/tool/src/java/org/theospi/portfolio/presentation/control/PreviewTemplateController.java $
* $Id:PreviewTemplateController.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
***********************************************************************************
*
* Copyright (c) 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/
package org.theospi.portfolio.presentation.control;
import java.util.Hashtable;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.sakaiproject.metaobj.shared.model.Id;
import org.springframework.validation.Errors;
import org.springframework.web.servlet.ModelAndView;
import org.theospi.portfolio.presentation.model.PresentationTemplate;
import org.theospi.portfolio.shared.model.OspException;
public class PreviewTemplateController extends AbstractPresentationController {
protected final Log logger = LogFactory.getLog(getClass());
public ModelAndView handleRequest(Object requestModel, Map request, Map session,
Map application, Errors errors) {
PresentationTemplate template = (PresentationTemplate) requestModel;
if (template == null || template.getId() == null){
logger.error("no template supplied");
throw new OspException("no template supplied");
}
Id templateId = template.getId();
template = getPresentationManager().getPresentationTemplate(templateId);
if (template == null){
String message = "template with id= " + templateId.getValue() + " not found";
logger.error(message);
throw new OspException(message);
}
Hashtable model = new Hashtable();
model.put("template", template);
return new ModelAndView("success", model);
}
}
|
[
"botimer@umich.edu@66ffb92e-73f9-0310-93c1-f5514f145a0a"
] |
botimer@umich.edu@66ffb92e-73f9-0310-93c1-f5514f145a0a
|
60e181d895b766dd6e22dbcaa2d26c8f2359bb70
|
3f60a26c4404a93a27ad969e1cd8a5ede1057951
|
/linkbinder-framework-core/src/test/java/jp/co/opentone/bsol/framework/core/tracer/MockMethodInvocation.java
|
9bcd360ebad577bf0f011dddcd203370434ef378
|
[
"Apache-2.0"
] |
permissive
|
otsecbsol/linkbinder
|
6c448e43d60daa84461050c8a767d5ae1e86ffed
|
1e59055771d3c4c45c8e2ff4cda05386bc7b19fc
|
refs/heads/master
| 2020-04-06T07:02:58.940469
| 2016-09-20T08:07:50
| 2016-09-20T08:07:50
| 61,767,023
| 6
| 1
| null | 2016-09-20T08:07:51
| 2016-06-23T02:32:44
|
Java
|
UTF-8
|
Java
| false
| false
| 2,079
|
java
|
/*
* Copyright 2016 OPEN TONE Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jp.co.opentone.bsol.framework.core.tracer;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInvocation;
/**
* {@link MethodInvocation}のモッククラス.
* <p>
* @author opentone
*/
public class MockMethodInvocation implements MethodInvocation {
public Method method;
public Object[] arguments;
public Object returnValue;
public Object thisObject;
public AccessibleObject staticPart;
public MockMethodInvocation() {
}
public MockMethodInvocation(Method method) {
this.method = method;
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.Invocation#getArguments()
*/
@Override
public Object[] getArguments() {
return null;
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.Joinpoint#proceed()
*/
@Override
public Object proceed() throws Throwable {
return null;
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.Joinpoint#getThis()
*/
@Override
public Object getThis() {
return null;
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.Joinpoint#getStaticPart()
*/
@Override
public AccessibleObject getStaticPart() {
return null;
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInvocation#getMethod()
*/
@Override
public Method getMethod() {
return method;
}
}
|
[
"aoyagi@opentone.co.jp"
] |
aoyagi@opentone.co.jp
|
a1be324a9635dbe368d9106a5d5198793ee92a70
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/30/30_838eeaf1e56e57d5c41666b4507b67b459f5abb4/mod_Iron/30_838eeaf1e56e57d5c41666b4507b67b459f5abb4_mod_Iron_s.java
|
5d170659cd03feecf6f4a972ab842175f8e0ba8c
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,569
|
java
|
package shadow.mods.metallurgy;
import java.util.Random;
import java.util.Map;
import java.io.File;
import shadow.mods.metallurgy.*;
import shadow.mods.metallurgy.base.BaseConfig;
import shadow.mods.metallurgy.base.mod_MetallurgyBaseMetals;
import shadow.mods.metallurgy.fantasy.FF_EssenceRecipes;
import net.minecraft.src.BaseMod;
import net.minecraft.src.Block;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.FurnaceRecipes;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraft.src.World;
import net.minecraft.client.Minecraft;
import net.minecraftforge.oredict.OreDictionary;
public class mod_Iron
{
public static final int meta = 2;
public static Item IronDust = (new MetallurgyItem(CoreConfig.ItemIronDustID, "/shadow/MetallurgyBaseMetals.png")).setIconCoord(2,3).setItemName("IronDust").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static void load()
{
//Smelting
ModLoader.addSmelting(IronDust.shiftedIndex, new ItemStack(Item.ingotIron, 1));
//Crusher
BC_CrusherRecipes.smelting().addCrushing(Block.oreIron.blockID, new ItemStack(IronDust, 2));
BC_CrusherRecipes.smelting().addCrushing(Item.ingotIron.shiftedIndex, new ItemStack(IronDust, 1));
if(mod_MetallurgyCore.hasFantasy)
FF_EssenceRecipes.essence().addEssenceAmount(Item.ingotIron.shiftedIndex, 3);
//Bricks!
//RecipeHelper.addBrickRecipes(mod_MetallurgyBaseMetals.BaseMetalsBrick.blockID, meta, Item.ingotIron);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
706b66e94a85fe870601954fd608832efde0f11d
|
68a19507f18acff18aa4fa67d6611f5b8ac8913c
|
/plfx/plfx-api/src/main/java/plfx/api/controller/jd/JDHotelInventoryController.java
|
ebcae5b1a85791b682a1553b4be8c419d341327d
|
[] |
no_license
|
ksksks2222/pl-workspace
|
cf0d0be2dfeaa62c0d4d5437f85401f60be0eadd
|
6146e3e3c2384c91cac459d25b27ffeb4f970dcd
|
refs/heads/master
| 2021-09-13T08:59:17.177105
| 2018-04-27T09:46:42
| 2018-04-27T09:46:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,396
|
java
|
package plfx.api.controller.jd;
import hg.log.util.HgLogger;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import plfx.api.client.api.v1.jd.request.qo.JDInventoryApiQO;
import plfx.api.client.api.v1.jd.response.JDHotelInventoryResponse;
import plfx.api.client.base.slfx.ApiRequest;
import plfx.api.client.base.slfx.ApiResponse;
import plfx.api.controller.base.SLFXAction;
import plfx.jd.pojo.dto.ylclient.hotel.HotelDataInventoryResultDTO;
import plfx.jd.pojo.qo.ylclient.JDInventoryQO;
import plfx.jd.spi.inter.HotelService;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
/**
*
* @类功能说明:酒店库存验证api(本接口属于高级功能接口,通常开发使用不到,不建议使用。)
* @类修改者:
* @修改日期:
* @修改说明:
* @公司名称:浙江票量云数据科技股份有限公司
* @部门:技术部
* @作者:caizhenghao
* @创建时间:2015年2月11日下午2:03:25
* @版本:V1.0
*
*/
@Component("jdHotelInventoryController")
public class JDHotelInventoryController implements SLFXAction{
@Autowired
private HotelService hotelService;
@Override
public String execute(ApiRequest apiRequest) {
String fromClientKey = apiRequest.getHead().getFromClientKey();
String clientUserKey = apiRequest.getHead().getClientUserKey();
JSONObject jsonObject = JSON.parseObject(apiRequest.getBody().getPayload());
jsonObject.put("fromClientKey", fromClientKey);
jsonObject.put("clientUserKey", clientUserKey);
JDInventoryApiQO apiQo = JSON.toJavaObject(jsonObject, JDInventoryApiQO.class);
return jdHotelInventory(apiQo);
}
/**
*
* @方法功能说明:酒店库存验证
* @修改者名字:caizhenghao
* @修改时间:2015年2月11日下午2:02:59
* @修改内容:
* @参数:@param apiCommand
* @参数:@return
* @return:String
* @throws
*/
public String jdHotelInventory(JDInventoryApiQO apiQo){
HgLogger.getInstance().info("caizhenghao", "JDHotelInventoryController->[查询酒店库存开始]:" + JSON.toJSONString(apiQo));
HotelDataInventoryResultDTO result = null;
String message = "查询酒店库存失败";
try{
//"apiCommand"转换"分销Command"
JDInventoryQO qo = new JDInventoryQO();
BeanUtils.copyProperties(apiQo,qo);
result = hotelService.queryHotelInventory(qo);
}catch(Exception e){
HgLogger.getInstance().info("caizhenghao", "JDHotelInventoryController->[查询酒店库存异常]:" + HgLogger.getStackTrace(e));
}
JDHotelInventoryResponse jdHotelInventoryResponse = new JDHotelInventoryResponse();
if(result != null){
jdHotelInventoryResponse.setMessage("查询酒店库存成功");
jdHotelInventoryResponse.setResult(ApiResponse.RESULT_CODE_OK);
jdHotelInventoryResponse.setInventories(result.getInventories());
}else{
jdHotelInventoryResponse.setMessage(message);
jdHotelInventoryResponse.setResult(ApiResponse.RESULT_CODE_FAILE);
}
HgLogger.getInstance().info("caizhenghao", "JDHotelInventoryController->[查询酒店库存结束]:" + JSON.toJSONString(jdHotelInventoryResponse));
return JSON.toJSONString(jdHotelInventoryResponse);
}
}
|
[
"cangsong6908@gmail.com"
] |
cangsong6908@gmail.com
|
2929165923ba7d0f1fcd7ddaa950c7e6087b9753
|
75dceb70fffb1819a935fc015fa1dc3f6073359f
|
/examples/java/com/intel/daal/examples/optimization_solvers/SAGALogisticLossDenseBatch.java
|
dd6fbc608fd8cb955514f892ba8090bfecc42b85
|
[
"Apache-2.0",
"Intel"
] |
permissive
|
KalyanovD/daal
|
ae40c16cf0ef6e915c7418227ff8a77390e0ee8e
|
b354b68f83a213102bca6e03d7a11f55ab751f92
|
refs/heads/master
| 2022-06-06T00:47:05.309445
| 2019-11-29T10:46:38
| 2019-11-29T10:46:38
| 210,588,356
| 0
| 0
|
Apache-2.0
| 2019-09-24T12:16:15
| 2019-09-24T11:41:08
| null |
UTF-8
|
Java
| false
| false
| 7,338
|
java
|
/* file: SAGALogisticLossDenseBatch.java */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* 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.
*******************************************************************************/
/*
// Content:
// Java example of dense SAGA in the batch processing mode
// processing mode
////////////////////////////////////////////////////////////////////////////////
*/
/**
* <a name="DAAL-EXAMPLE-JAVA-SAGALOGLOSBATCH">
* @example SAGALogisticLossDenseBatch.java
*/
package com.intel.daal.examples.optimization_solvers;
import com.intel.daal.algorithms.optimization_solver.saga.*;
import com.intel.daal.algorithms.optimization_solver.iterative_solver.InputId;
import com.intel.daal.algorithms.optimization_solver.iterative_solver.Result;
import com.intel.daal.algorithms.optimization_solver.iterative_solver.ResultId;
import com.intel.daal.data_management.data.HomogenNumericTable;
import com.intel.daal.data_management.data.NumericTable;
import com.intel.daal.data_management.data.MergedNumericTable;
import com.intel.daal.data_management.data_source.DataSource;
import com.intel.daal.data_management.data_source.FileDataSource;
import com.intel.daal.examples.utils.Service;
import com.intel.daal.services.DaalContext;
class SAGALogisticLossDenseBatch {
private static final int nFeatures = 100;
private static final double accuracyThreshold = 0.00000001;
private static final long nIterations = 100000;
private static double[] initialPoint = new double[nFeatures + 1];
/* Input data set parameters */
private static final String dataFileName = "../data/batch/XM_100.csv";
private static final String groundTruth = "../data/batch/saga_solution_100_features.csv";
private static DaalContext context = new DaalContext();
public static void main(String[] args) throws java.io.FileNotFoundException, java.io.IOException {
float l1 = 0.06f;
float l2 = 0.0f;
boolean intercept = false;
/* Retrieve the data from input data sets */
FileDataSource dataSource = new FileDataSource(context, dataFileName,
DataSource.DictionaryCreationFlag.DoDictionaryFromContext,
DataSource.NumericTableAllocationFlag.NotAllocateNumericTable);
/* Create Numeric Tables for data and values for dependent variable */
NumericTable data = new HomogenNumericTable(context, Float.class, nFeatures, 0, NumericTable.AllocationFlag.DoNotAllocate);
NumericTable dataDependents = new HomogenNumericTable(context, Float.class, 1, 0, NumericTable.AllocationFlag.DoNotAllocate);
MergedNumericTable mergedData = new MergedNumericTable(context);
mergedData.addNumericTable(data);
mergedData.addNumericTable(dataDependents);
/* Retrieve the data from an input file */
dataSource.loadDataBlock(mergedData);
/* Create an Logistic Loss objective function to compute a SAGA */
com.intel.daal.algorithms.optimization_solver.logistic_loss.Batch logLossFunction =
new com.intel.daal.algorithms.optimization_solver.logistic_loss.Batch(context, Float.class,
com.intel.daal.algorithms.optimization_solver.logistic_loss.Method.defaultDense, data.getNumberOfRows());
logLossFunction.getInput().set(com.intel.daal.algorithms.optimization_solver.logistic_loss.InputId.data, data);
logLossFunction.getInput().set(com.intel.daal.algorithms.optimization_solver.logistic_loss.InputId.dependentVariables, dataDependents);
logLossFunction.parameter.setPenaltyL1(l1);
logLossFunction.parameter.setPenaltyL2(l2);
logLossFunction.parameter.setInterceptFlag(intercept);
/* Create algorithm objects to compute SAGA results */
Batch sagaAlgorithm = new Batch(context, Float.class, Method.defaultDense);
sagaAlgorithm.parameter.setFunction(logLossFunction);
sagaAlgorithm.parameter.setNIterations(nIterations);
sagaAlgorithm.parameter.setAccuracyThreshold(accuracyThreshold);
for(int i = 0; i < (nFeatures+1); i++)
initialPoint[i] = 0;
sagaAlgorithm.input.set(InputId.inputArgument, new HomogenNumericTable(context, initialPoint, 1, nFeatures + 1));
/* Compute the SAGA result for Logistic Loss objective function matrix */
Result result = sagaAlgorithm.compute();
Service.printNumericTable("Minimum:", result.get(ResultId.minimum));
Service.printNumericTable("nIterations:", result.get(ResultId.nIterations));
/* Create an Logistic Loss objective function to check SAGA result */
com.intel.daal.algorithms.optimization_solver.logistic_loss.Batch logLossFunction_check =
new com.intel.daal.algorithms.optimization_solver.logistic_loss.Batch(context, Float.class,
com.intel.daal.algorithms.optimization_solver.logistic_loss.Method.defaultDense, data.getNumberOfRows());
logLossFunction_check.getInput().set(com.intel.daal.algorithms.optimization_solver.logistic_loss.InputId.data, data);
logLossFunction_check.getInput().set(com.intel.daal.algorithms.optimization_solver.logistic_loss.InputId.dependentVariables, dataDependents);
logLossFunction_check.parameter.setPenaltyL1(l1);
logLossFunction_check.parameter.setPenaltyL2(l2);
logLossFunction_check.parameter.setInterceptFlag(intercept);
logLossFunction_check.parameter.setResultsToCompute(com.intel.daal.algorithms.optimization_solver.objective_function.ResultsToComputeId.value);
FileDataSource groundTruthDS = new FileDataSource(context, groundTruth,
DataSource.DictionaryCreationFlag.DoDictionaryFromContext,
DataSource.NumericTableAllocationFlag.NotAllocateNumericTable);
NumericTable groundTruthNT = new HomogenNumericTable(context, Float.class, 1, 0, NumericTable.AllocationFlag.DoNotAllocate);
groundTruthDS.loadDataBlock(groundTruthNT);
logLossFunction_check.getInput().set(com.intel.daal.algorithms.optimization_solver.logistic_loss.InputId.argument, groundTruthNT);
logLossFunction_check.compute();
Service.printNumericTable("groundTruth:", logLossFunction_check.getResult().get(com.intel.daal.algorithms.optimization_solver.objective_function.ResultId.valueIdx));
logLossFunction_check.getInput().set(com.intel.daal.algorithms.optimization_solver.logistic_loss.InputId.argument, result.get(ResultId.minimum));
logLossFunction_check.compute();
Service.printNumericTable("value DAAL:", logLossFunction_check.getResult().get(com.intel.daal.algorithms.optimization_solver.objective_function.ResultId.valueIdx));
context.dispose();
}
}
|
[
"nikolay.a.petrov@intel.com"
] |
nikolay.a.petrov@intel.com
|
a6c4f8e2b2ea26af871d3f49936a23f879945d72
|
8a930767dca3788dacd40b3cb34ecd0d79528640
|
/src/main/java/com/exedosoft/plat/job/example/SimpleRecoveryJob.java
|
52de5c44b677466aea630b84f6c488dfcd28232c
|
[] |
no_license
|
mamacmm/eeplat
|
74c27603b8c34960ed909ce457ddab5c1dd6554f
|
6757848f6d76ba3e17006d6ae1f1a79cabd27b91
|
refs/heads/master
| 2021-01-02T04:53:11.428932
| 2014-03-05T07:22:11
| 2014-03-05T07:22:11
| 17,425,665
| 10
| 7
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,729
|
java
|
/*
* Copyright 2005 - 2009 Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*/
package com.exedosoft.plat.job.example;
import java.util.Date;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <p>
* A dumb implementation of Job, for unittesting purposes.
* </p>
*
* @author James House
*/
public class SimpleRecoveryJob implements Job {
private static Logger _log = LoggerFactory.getLogger(SimpleRecoveryJob.class);
private static final String COUNT = "count";
/**
* Quartz requires a public empty constructor so that the
* scheduler can instantiate the class whenever it needs.
*/
public SimpleRecoveryJob() {
}
/**
* <p>
* Called by the <code>{@link org.quartz.Scheduler}</code> when a
* <code>{@link org.quartz.Trigger}</code> fires that is associated with
* the <code>Job</code>.
* </p>
*
* @throws org.quartz.JobExecutionException
* if there is an exception while executing the job.
*/
public void execute(JobExecutionContext context)
throws JobExecutionException {
JobKey jobKey = context.getJobDetail().getKey();
// if the job is recovering print a message
if (context.isRecovering()) {
_log.info("SimpleRecoveryJob: " + jobKey + " RECOVERING at " + new Date());
} else {
_log.info("SimpleRecoveryJob: " + jobKey + " starting at " + new Date());
}
// delay for ten seconds
long delay = 10L * 1000L;
try {
Thread.sleep(delay);
} catch (Exception e) {
}
JobDataMap data = context.getJobDetail().getJobDataMap();
int count;
if (data.containsKey(COUNT)) {
count = data.getInt(COUNT);
} else {
count = 0;
}
count++;
data.put(COUNT, count);
_log.info("SimpleRecoveryJob: " + jobKey +
" done at " + new Date() +
"\n Execution #" + count);
}
}
|
[
"toweikexin@gmail.com"
] |
toweikexin@gmail.com
|
5e4313dd3fe9f1999835a0b34e42101eee251b51
|
0a5203dd621c26b680832dfa83224984dc65e61b
|
/src/main/java/com/aurospaces/neighbourhood/bean/StudentFeeBean.java
|
7927b7036de0300e184f3d8bf1c86734455f0aa5
|
[] |
no_license
|
SomuNarendarRddy/School
|
7ac9601d61ad79e3601eb50505c7880a4f601500
|
4eb106a5e3f9114426c62aa66600bdb9b5bdff94
|
refs/heads/master
| 2020-03-08T03:41:35.455051
| 2018-04-03T07:20:41
| 2018-04-03T07:20:41
| 127,898,241
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,369
|
java
|
package com.aurospaces.neighbourhood.bean;
import java.util.Date;
public class StudentFeeBean {
protected int id = 0;
protected Date createdTime ;
protected Date updatedTime ;
private String studentId;
private double totalFee;
private double discount;
private double netFee;
private double fee;
private double remaningFee;
private String boardName;
private String className;
private String medium;
private String section;
private String dueFee;
private String feeType;
public String getFeeType() {
return feeType;
}
public void setFeeType(String feeType) {
this.feeType = feeType;
}
public String getDueFee() {
return dueFee;
}
public void setDueFee(String dueFee) {
this.dueFee = dueFee;
}
public String getBoardName() {
return boardName;
}
public void setBoardName(String boardName) {
this.boardName = boardName;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public String getMedium() {
return medium;
}
public void setMedium(String medium) {
this.medium = medium;
}
public String getSection() {
return section;
}
public void setSection(String section) {
this.section = section;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public Date getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
public String getStudentId() {
return studentId;
}
public void setStudentId(String studentId) {
this.studentId = studentId;
}
public double getTotalFee() {
return totalFee;
}
public void setTotalFee(double totalFee) {
this.totalFee = totalFee;
}
public double getDiscount() {
return discount;
}
public void setDiscount(double discount) {
this.discount = discount;
}
public double getNetFee() {
return netFee;
}
public void setNetFee(double netFee) {
this.netFee = netFee;
}
public double getFee() {
return fee;
}
public void setFee(double fee) {
this.fee = fee;
}
public double getRemaningFee() {
return remaningFee;
}
public void setRemaningFee(double remaningFee) {
this.remaningFee = remaningFee;
}
}
|
[
"a.kotaiah12@gmail.com"
] |
a.kotaiah12@gmail.com
|
c400f7e8088b718036d726bf305f1b3b81a2c6bf
|
0f0575da365c6255fb8f7f1e439ee8d8018d94a6
|
/src/main/java/zx/soft/kmeans/cluster/mapred/simple/KMeansReducer.java
|
4e824d542ef7a526d9cbb7112d3b4a7d4edf2294
|
[] |
no_license
|
Lester-liu/kmeans-cluster
|
15ce2aeed9381fb4376b1f6d4bae79b19eef6485
|
43b00d9b70e7be05ffeb3ae5c233b28683e0f956
|
refs/heads/master
| 2021-05-27T22:57:20.757132
| 2014-07-25T07:00:50
| 2014-07-25T07:00:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,182
|
java
|
package zx.soft.kmeans.cluster.mapred.simple;
import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mapred.Reporter;
public class KMeansReducer extends MapReduceBase implements
Reducer<DoubleWritable, DoubleWritable, DoubleWritable, Text> {
/*
* Reduce function will emit all the points to that center and calculate
* the next center for these points
*/
@Override
public void reduce(DoubleWritable key, Iterator<DoubleWritable> values,
OutputCollector<DoubleWritable, Text> output, Reporter reporter) throws IOException {
double newCenter;
double sum = 0;
int no_elements = 0;
String points = "";
while (values.hasNext()) {
double d = values.next().get();
points = points + " " + Double.toString(d);
sum = sum + d;
++no_elements;
}
// We have new center now
newCenter = sum / no_elements;
// Emit new center and point
output.collect(new DoubleWritable(newCenter), new Text(points));
}
}
|
[
"wanggang@zxisl.com"
] |
wanggang@zxisl.com
|
d6b9e4b761444e231b66e6410fa9eb8a1d3d9b5d
|
19989ad71f45ee2e1d182183a78a93530acc49b7
|
/Java Web/Java Web Basics/Exam Preparation/Sboj.bg/Sboj/src/main/java/config/Configuration.java
|
5472181ae4fa06f08904f4fc8097be6cd83af3af
|
[] |
no_license
|
goldenEAGL3/SoftUni
|
b811c070192e317492acc113d80443e58570f2d4
|
ba60411d4deea3d999af20ea10be9c015b899c4a
|
refs/heads/master
| 2023-08-09T10:04:45.414043
| 2020-03-21T18:45:44
| 2020-03-21T18:45:44
| 175,472,191
| 0
| 2
| null | 2023-07-21T17:50:00
| 2019-03-13T17:54:34
|
Java
|
UTF-8
|
Java
| false
| false
| 482
|
java
|
package config;
import org.modelmapper.ModelMapper;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
public class Configuration {
@Produces
public EntityManager entityManager() {
return Persistence
.createEntityManagerFactory("sboj")
.createEntityManager();
}
@Produces
public ModelMapper modelMapper() {
return new ModelMapper();
}
}
|
[
"48495509+goldenEAGL3@users.noreply.github.com"
] |
48495509+goldenEAGL3@users.noreply.github.com
|
c15f5d061e6618ab2ef687255d451d53972f135b
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2018/4/PropertyKeyTokenRecordCheck.java
|
d6e6e9523f1902eebb66b91db1cf0f82beaaed5a
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 1,761
|
java
|
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.consistency.checking;
import org.neo4j.consistency.report.ConsistencyReport;
import org.neo4j.consistency.store.RecordAccess;
import org.neo4j.consistency.store.RecordReference;
import org.neo4j.kernel.impl.store.record.DynamicRecord;
import org.neo4j.kernel.impl.store.record.PropertyKeyTokenRecord;
public class PropertyKeyTokenRecordCheck
extends TokenRecordCheck<PropertyKeyTokenRecord, ConsistencyReport.PropertyKeyTokenConsistencyReport>
{
@Override
protected RecordReference<DynamicRecord> name( RecordAccess records, int id )
{
return records.propertyKeyName( id );
}
@Override
void nameNotInUse( ConsistencyReport.PropertyKeyTokenConsistencyReport report, DynamicRecord name )
{
report.nameBlockNotInUse( name );
}
@Override
void emptyName( ConsistencyReport.PropertyKeyTokenConsistencyReport report, DynamicRecord name )
{
report.emptyName( name );
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
0587ea97dd9eec373fc58739fa7746b62135b7e0
|
b3d9e98f353eaba1cf92e3f1fc1ccd56e7cecbc5
|
/xy-games/game-logic/trunk/src/main/java/com/cai/game/ddz/data/tagAnalyseIndexResult_DDZ.java
|
b49d9abb60edb4477aa397ff074a1ff4291839d6
|
[] |
no_license
|
konser/repository
|
9e83dd89a8ec9de75d536992f97fb63c33a1a026
|
f5fef053d2f60c7e27d22fee888f46095fb19408
|
refs/heads/master
| 2020-09-29T09:17:22.286107
| 2018-10-12T03:52:12
| 2018-10-12T03:52:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 636
|
java
|
package com.cai.game.ddz.data;
import java.util.Arrays;
import com.cai.common.constant.GameConstants;
public class tagAnalyseIndexResult_DDZ {
public int card_index[] = new int[GameConstants.DDZ_MAX_INDEX];
public int card_data[][] = new int[GameConstants.DDZ_MAX_INDEX][GameConstants.MAX_PDK_COUNT_EQ];
public tagAnalyseIndexResult_DDZ() {
for (int i = 0; i < GameConstants.DDZ_MAX_INDEX; i++) {
card_index[i] = 0;
Arrays.fill(card_data[i], 0);
}
}
public void Reset() {
for (int i = 0; i < GameConstants.DDZ_MAX_INDEX; i++) {
card_index[i] = 0;
Arrays.fill(card_data[i], 0);
}
}
}
|
[
"905202059@qq.com"
] |
905202059@qq.com
|
c97a2718694936d2dd007a5ec76fb026a35ff9ac
|
cdbd809c04f137f871cc728dc05ba5442252745f
|
/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/data/PostgreGeometryValueHandler.java
|
3fe289409f079e7506a5eef662963bbc59fc12bc
|
[
"Apache-2.0",
"EPL-2.0"
] |
permissive
|
sumonst21/dbeaver
|
838631436368410285221358bfcfc57ccf5f49af
|
730b0a9b042029717e8e06984ad05ad3e618c74f
|
refs/heads/devel
| 2020-05-17T10:53:46.841567
| 2019-04-26T16:20:33
| 2019-04-26T16:20:33
| 183,670,100
| 0
| 0
|
Apache-2.0
| 2023-09-04T10:31:40
| 2019-04-26T17:35:56
|
Java
|
UTF-8
|
Java
| false
| false
| 6,091
|
java
|
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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.
*/
package org.jkiss.dbeaver.ext.postgresql.model.data;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.io.WKBReader;
import com.vividsolutions.jts.io.WKTReader;
import org.jkiss.dbeaver.ext.postgresql.PostgreConstants;
import org.jkiss.dbeaver.ext.postgresql.PostgreUtils;
import org.jkiss.dbeaver.model.DBUtils;
import org.jkiss.dbeaver.model.exec.DBCException;
import org.jkiss.dbeaver.model.exec.DBCSession;
import org.jkiss.dbeaver.model.exec.jdbc.JDBCPreparedStatement;
import org.jkiss.dbeaver.model.exec.jdbc.JDBCResultSet;
import org.jkiss.dbeaver.model.exec.jdbc.JDBCSession;
import org.jkiss.dbeaver.model.gis.DBGeometry;
import org.jkiss.dbeaver.model.impl.jdbc.data.handlers.JDBCAbstractValueHandler;
import org.jkiss.dbeaver.model.struct.DBSTypedObject;
import org.jkiss.utils.BeanUtils;
import org.jkiss.utils.CommonUtils;
import java.sql.SQLException;
import java.sql.Types;
/**
* Postgre geometry handler
*/
public class PostgreGeometryValueHandler extends JDBCAbstractValueHandler {
public static final PostgreGeometryValueHandler INSTANCE = new PostgreGeometryValueHandler();
@Override
protected Object fetchColumnValue(DBCSession session, JDBCResultSet resultSet, DBSTypedObject type, int index) throws DBCException, SQLException {
return getValueFromObject(session, type,
resultSet.getObject(index),
false);
}
@Override
protected void bindParameter(JDBCSession session, JDBCPreparedStatement statement, DBSTypedObject paramType, int paramIndex, Object value) throws DBCException, SQLException {
if (value instanceof DBGeometry) {
value = ((DBGeometry) value).getRawValue();
}
if (value == null) {
statement.setNull(paramIndex, paramType.getTypeID());
} else if (value instanceof Geometry) {
statement.setObject(paramIndex, getStringFromGeometry(session, (Geometry)value), Types.OTHER);
} else if (value.getClass().getName().equals(PostgreConstants.PG_GEOMETRY_CLASS)) {
statement.setObject(paramIndex, value, Types.OTHER);
} else {
statement.setObject(paramIndex, value.toString(), Types.OTHER);
}
}
@Override
public Class<?> getValueObjectType(DBSTypedObject attribute) {
return DBGeometry.class;
}
@Override
public Object getValueFromObject(DBCSession session, DBSTypedObject type, Object object, boolean copy) throws DBCException {
if (object == null) {
return new DBGeometry();
} else if (object instanceof Geometry) {
return new DBGeometry((Geometry) object);
} else if (object instanceof String) {
return makeGeometryFromWKT(session, (String) object);
} else if (object.getClass().getName().equals(PostgreConstants.PG_GEOMETRY_CLASS)) {
return makeGeometryFromPGGeometry(session, object);
} else if (object.getClass().getName().equals(PostgreConstants.PG_OBJECT_CLASS)) {
return makeGeometryFromWKB(session, CommonUtils.toString(PostgreUtils.extractPGObjectValue(object)));
} else {
return makeGeometryFromWKT(session, object.toString());
}
}
private DBGeometry makeGeometryFromWKB(DBCSession session, String hexString) throws DBCException {
byte[] binaryData = WKBReader.hexToBytes(hexString);
try {
Geometry geometry = new WKBReader().read(binaryData);
return new DBGeometry(geometry);
} catch (Exception e) {
throw new DBCException("Error parsing WKB value", e);
}
}
private DBGeometry makeGeometryFromPGGeometry(DBCSession session, Object value) throws DBCException {
try {
String pgString = value.toString();
return makeGeometryFromWKT(session, pgString);
} catch (Throwable e) {
throw new DBCException(e, session.getDataSource());
}
}
private DBGeometry makeGeometryFromWKT(DBCSession session, String pgString) throws DBCException {
if (CommonUtils.isEmpty(pgString)) {
return new DBGeometry();
}
// Convert from PostGIS EWKT to Geometry type
try {
int divPos = pgString.indexOf(';');
if (divPos == -1) {
return new DBGeometry(pgString);
}
String sridString = pgString.substring(0, divPos);
String wktString = pgString.substring(divPos + 1);
Geometry geometry = new WKTReader().read(wktString);
if (sridString.startsWith("SRID=")) {
geometry.setSRID(CommonUtils.toInt(sridString.substring(5)));
}
return new DBGeometry(geometry);
} catch (Throwable e) {
throw new DBCException(e, session.getDataSource());
}
}
private String getStringFromGeometry(JDBCSession session, Geometry geometry) throws DBCException {
try {
Class<?> jtsGeometry = DBUtils.getDriverClass(session.getDataSource(), PostgreConstants.PG_GEOMETRY_CLASS);
Object jtsg = jtsGeometry.getConstructor(Geometry.class).newInstance(geometry);
return (String)BeanUtils.invokeObjectMethod(
jtsg, "getValue", null, null);
} catch (Throwable e) {
throw new DBCException(e, session.getDataSource());
}
}
}
|
[
"serge@jkiss.org"
] |
serge@jkiss.org
|
d2253d2259264c1f51bdd651f610ef71a2a5ce7a
|
7ced4b8259a5d171413847e3e072226c7a5ee3d2
|
/Workspace/Demux/DP/Tree DP/maximum-sum-bst-in-binary-tree.java
|
92b3fcd7bdc399615be697bace5e0c7c537a2836
|
[] |
no_license
|
tanishq9/Data-Structures-and-Algorithms
|
8d4df6c8a964066988bcf5af68f21387a132cd4d
|
f6f5dec38d5e2d207fb29ad4716a83553924077a
|
refs/heads/master
| 2022-12-13T03:57:39.447650
| 2020-09-05T13:16:55
| 2020-09-05T13:16:55
| 119,425,479
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,622
|
java
|
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this.left = left;
* this.right = right;
* }
* }
*/
class Solution {
class OBJ{
boolean isBST;
int val;
int sum;
int max;
int min;
}
int max;
public int maxSumBST(TreeNode root) {
max=Integer.MIN_VALUE;
helper(root);
return max<0?0:max;
}
OBJ helper(TreeNode root){
if(root==null){
OBJ base=new OBJ();
base.val=-1;
base.sum=0;
base.min=Integer.MAX_VALUE;
base.max=Integer.MIN_VALUE;
base.isBST=true;
return base;
}
OBJ parent=new OBJ();
OBJ left=helper(root.left);
OBJ right=helper(root.right);
parent.val=root.val;
parent.max=Math.max(parent.val,right.max);
parent.min=Math.min(parent.val,left.min);
parent.isBST=(left.isBST && right.isBST && parent.val>left.max && root.val<right.min);
if(parent.isBST){
parent.sum=left.sum+right.sum+parent.val;
}else{
if(left.sum>right.sum){
parent.sum=left.sum;
}else{
parent.sum=right.sum;
}
}
max=Math.max(max,parent.sum);
return parent;
}
}
|
[
"tanishqsaluja18@gmail.com"
] |
tanishqsaluja18@gmail.com
|
784ae5b5dabdd24b2be923bd705883b6f2d8dcf1
|
ab1be1b43edc31a969a4eba4344ddea2eb9219bb
|
/integracion/UARIV/Consulta Registro/Proyecto/srvIntConsultaRUV/src/main/java/com/koghi/nodo/uariv/procesadores/srvIntConsultaRUV/PrcConsumirServicioUariv.java
|
0279d2eb28cc19f295109ee6e14e36a34a521e1c
|
[] |
no_license
|
jarivera94/esb
|
ada170f09615de1efdd862e5e8b838b82d7f6fce
|
0f8855d491e25a5b359a2867e7abfb189516ddc4
|
refs/heads/master
| 2020-04-05T00:42:22.636179
| 2018-11-06T15:45:35
| 2018-11-06T15:45:35
| 156,407,140
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,310
|
java
|
package com.koghi.nodo.uariv.procesadores.srvIntConsultaRUV;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.json.JSONObject;
public class PrcConsumirServicioUariv implements Processor {
public void process(Exchange ex) throws Exception {
String cuerpo;
if (ex.getProperties().containsKey("bodyBackup")) {
cuerpo = ex.getProperty("bodyBackup").toString();
}else {
cuerpo = ex.getIn().getBody().toString();
ex.setProperty("bodyBackup", cuerpo);
}
if (cuerpo.charAt(0) == '[') {
cuerpo = cuerpo.substring(1 , cuerpo.length() - 1);
}
String codap = ex.getIn().getHeader("CODAP").toString();
JSONObject json = new JSONObject(cuerpo);
String documento = json.has("documento") ? json.getString("documento") : "-1";
if (documento.length() <= 1) {
documento = "-1";
}
String idUsuario = ex.getIn().getHeader("idUsuarioUariv").toString();
String token = ex.getIn().getHeader("tokenUariv").toString();
String parametros = codap + "," + idUsuario + "," + token + "," + documento;
ex.getIn().setHeader("CamelHttpPath",parametros);
ex.getIn().setHeader("CamelHttpMethod", "GET");
ex.getIn().setHeader("Content-Type", "text");
// ex.getIn().setHeader("payload", parametros);
ex.getIn().setBody(parametros);
}
}
|
[
"jrivera@koghi.com"
] |
jrivera@koghi.com
|
49ebee367d9e750c6412cd8b5c9afdfefb8e6371
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/73/org/apache/commons/math/analysis/ComposableFunction_asCollector_497.java
|
152289fa7e123d32a510e11eed2893388c84097e
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,151
|
java
|
org apach common math analysi
base link univari real function univariaterealfunct compos function
version revis date
compos function composablefunct univari real function univariaterealfunct
gener function iter appli instanc function
element arrai
call method equival call link
collector ascollector bivari real function bivariaterealfunct collector ascollector binari function binaryfunct add
function iter appli instanc function
element arrai
collector ascollector bivari real function bivariaterealfunct
binari function binaryfunct add
multivari real function multivariaterealfunct collector ascollector
collector ascollector binari function binaryfunct add
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
cac519d1494e26582a1332cb807c450e03be4dc5
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-10b-3-28-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/mockito/internal/creation/MockSettingsImpl_ESTest_scaffolding.java
|
700037067da2bc1219c2eb45188e0cdbf3a26cd7
|
[] |
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
| 450
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Apr 06 08:45:58 UTC 2020
*/
package org.mockito.internal.creation;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class MockSettingsImpl_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
d7a441ffe56736925d87a000f2a23251030236c0
|
e35ec48addb74fd2c32883624356f15679d54e80
|
/app/src/main/java/com/jxxx/zf/utils/GlideImageLoader.java
|
58c23b4d859f6a1262f35b13a09ddf2d3080686d
|
[] |
no_license
|
ltg263/ZuFang
|
e6e816dd7910640579026b5bef7c43dd223f109a
|
2e0195b52e63f1de01f9ace57f449494c1ae0764
|
refs/heads/master
| 2023-07-01T22:18:40.870333
| 2021-08-19T03:55:48
| 2021-08-19T03:55:48
| 371,552,449
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,898
|
java
|
package com.jxxx.zf.utils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions;
import com.jxxx.zf.R;
import com.youth.banner.loader.ImageLoader;
import jp.wasabeef.glide.transformations.BlurTransformation;
import jp.wasabeef.glide.transformations.CropCircleTransformation;
import static com.bumptech.glide.request.RequestOptions.bitmapTransform;
/**
* Created by ShiXL on 2018/1/31.
*/
public class GlideImageLoader extends ImageLoader {
@Override
public void displayImage(Context context, Object path, ImageView imageView) {
/**
注意:
1.图片加载器由自己选择,这里不限制,只是提供几种使用方法
2.返回的图片路径为Object类型,由于不能确定你到底使用的那种图片加载器,
传输的到的是什么格式,那么这种就使用Object接收和返回,你只需要强转成你传输的类型就行,
切记不要胡乱强转!
*/
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
//Glide 加载图片简单用法
Glide.with(context).load(path).into(imageView);
}
/**
* Glide特点
* 使用简单
* 可配置度高,自适应程度高
* 支持常见图片格式 Jpg png gif webp
* 支持多种数据源 网络、本地、资源、Assets 等
* 高效缓存策略 支持Memory和Disk图片缓存 默认Bitmap格式采用RGB_565内存使用至少减少一半
* 生命周期集成 根据Activity/Fragment生命周期自动管理请求
* 高效处理Bitmap 使用Bitmap Pool使Bitmap复用,主动调用recycle回收需要回收的Bitmap,减小系统回收压力
* 这里默认支持Context,Glide支持Context,Activity,Fragment,FragmentActivity
*/
//默认加载
@SuppressLint("CheckResult")
public static void loadImageAndDefault(Context mContext, String path, ImageView mImageView) {
RequestOptions options = new RequestOptions();
options.error(R.mipmap.ic_launcher_round);
Glide.with(mContext).load(path).apply(options).into(mImageView);
}
// //默认加载
// public static void loadImage(Context mContext, String path, ImageView mImageView) {
// Glide.with(mContext).load(path.contains("http")?path:RetrofitManager.IMAGE_URL+path).into(mImageView);
// }
//默认加载
public static void loadImage(Context mContext, int path, ImageView mImageView) {
Glide.with(mContext).load(path).into(mImageView);
}
//加载圆角
public static void loadImageViewRadiusNoCenter(Context mContext, String path, ImageView mImageView) {
Glide.with(mContext).load(path).apply(new RequestOptions().transforms(new RoundedCorners(20))).into(mImageView);
}
//加载圆角
public static void loadImageViewRadius(Context mContext, String path, ImageView mImageView) {
RequestOptions options = new RequestOptions();
options.error(R.mipmap.ic_launcher_round);
options.transform(new CenterCrop(), new RoundedCorners(20));
Glide.with(mContext).load(path).apply(options).into(mImageView);
}
//加载圆角
public static void loadImageViewRadius(Context mContext, String path, int r, ImageView mImageView) {
Glide.with(mContext).load(path).apply(new RequestOptions().transforms(new CenterCrop(), new RoundedCorners(r))).into(mImageView);
}
//加载圆角
public static void loadImageViewRadius(Context mContext, int path, ImageView mImageView) {
Glide.with(mContext).load(path).apply(new RequestOptions().transforms(new CenterCrop(), new RoundedCorners(20))).into(mImageView);
}
//加载圆角
public static void loadImageViewRadius(Context mContext, int path, int r, ImageView mImageView) {
Glide.with(mContext).load(path).apply(new RequestOptions().transforms(new CenterCrop(), new RoundedCorners(r))).into(mImageView);
}
//加载圆形图片
public static void loadImageViewWithCirclr(Context mContext, String path, ImageView mImageView) {
Glide.with(mContext).load(path).thumbnail(0.1f).apply(bitmapTransform(new CropCircleTransformation())).into(mImageView);
}
//加载高斯模糊图片
public static void loadImageViewWithBlur(Context mContext, String path, ImageView mImageView) {
Glide.with(mContext).load(path)
.apply(bitmapTransform(new BlurTransformation(25, 3)))
.into(mImageView);
}
public static void loadImageViewWithBlur(Context mContext, int path, ImageView mImageView) {
Glide.with(mContext).load(path)
.apply(bitmapTransform(new BlurTransformation(25, 3)))
.into(mImageView);
}
// public static void loadImageViewWithBlurWithE(Context mContext, int path, int errorPath, ImageView mImageView) {
// RequestOptions options = new RequestOptions()
// .centerCrop()
// .placeholder(errorPath)
// .dontAnimate()
// .error(errorPath)
// .priority(Priority.HIGH);
// MultiTransformation multi = new MultiTransformation(
// new BlurTransformation(20, 2),
// new ColorFilterTransformation(mContext.getResources().getColor(R.color.trans_black)));
// Glide.with(mContext).load(path)
// .apply(bitmapTransform(multi))
//// .apply(options)
// .into(mImageView);
// }
//
// public static void loadImageViewWithBlurWithE(Context mContext, String path, int errorPath, ImageView mImageView) {
// RequestOptions options = new RequestOptions()
// .centerCrop()
// .placeholder(errorPath)
// .dontAnimate()
// .error(errorPath)
// .priority(Priority.HIGH);
// MultiTransformation multi = new MultiTransformation(
// new BlurTransformation(20, 2),
// new ColorFilterTransformation(mContext.getResources().getColor(R.color.trans_black)));
// Glide.with(mContext).load(path)
// .apply(bitmapTransform(multi))
//// .apply(options)
// .into(mImageView);
// }
//清理磁盘缓存
public static void GuideClearDiskCache(Context mContext) {
//理磁盘缓存 需要在子线程中执行
Glide.get(mContext).clearDiskCache();
}
//清理内存缓存
public static void GuideClearMemory(Context mContext) {
//清理内存缓存 可以在UI主线程中进行
Glide.get(mContext).clearMemory();
}
}
|
[
"qzj842179561@gmail.com"
] |
qzj842179561@gmail.com
|
a62deaca5ac48a2b1d3c53750013ccacc4aaaa9c
|
17ea09477f9712bddf71e7b3637e53f528d7abeb
|
/app/src/main/java/com/delaroystudios/roomdatabaseview/WordRepository.java
|
981c10c82a2b89423feb324052f316b05d567348
|
[] |
no_license
|
VictorVela/RoomPersistentLibrary
|
4ffd2f085a2e4d7bfb3cc547dea6cf824201ed65
|
8289876eabc0279bbc1f7ddcc25d03017b37c293
|
refs/heads/master
| 2020-04-05T06:28:29.571618
| 2018-04-17T11:42:39
| 2018-04-17T11:42:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,417
|
java
|
package com.delaroystudios.roomdatabaseview;
/*
* Copyright (C) 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import android.app.Application;
import android.arch.lifecycle.LiveData;
import android.os.AsyncTask;
import java.util.List;
/**
* Abstracted Repository as promoted by the Architecture Guide.
* https://developer.android.com/topic/libraries/architecture/guide.html
*/
public class WordRepository {
private WordDao mWordDao;
private LiveData<List<Word>> mAllWords;
// Note that in order to unit test the WordRepository, you have to remove the Application
// dependency. This adds complexity and much more code, and this sample is not about testing.
// See the BasicSample in the android-architecture-components repository at
// https://github.com/googlesamples
WordRepository(Application application) {
WordRoomDatabase db = WordRoomDatabase.getDatabase(application);
mWordDao = db.wordDao();
mAllWords = mWordDao.getAlphabetizedWords();
}
// Room executes all queries on a separate thread.
// Observed LiveData will notify the observer when the data has changed.
LiveData<List<Word>> getAllWords() {
return mAllWords;
}
// You must call this on a non-UI thread or your app will crash.
// Like this, Room ensures that you're not doing any long running operations on the main
// thread, blocking the UI.
public void insert (Word word) {
new insertAsyncTask(mWordDao).execute(word);
}
private static class insertAsyncTask extends AsyncTask<Word, Void, Void> {
private WordDao mAsyncTaskDao;
insertAsyncTask(WordDao dao) {
mAsyncTaskDao = dao;
}
@Override
protected Void doInBackground(final Word... params) {
mAsyncTaskDao.insert(params[0]);
return null;
}
}
}
|
[
"bamoyk@yahoo.com"
] |
bamoyk@yahoo.com
|
df5549684e6cb8ebbbadac1041b6c409eb475265
|
96c71c8dac1651828d192d27687fe8884a5e1f74
|
/web/src/main/java/com/pegasus/kafka/config/MybatisPlusConfig.java
|
820e9c7c2e987a6f776ad223f43fd3ff8e2dbf07
|
[] |
no_license
|
ZhangNingPegasus/kafka-monitor
|
b88fe51c62fbc2b45c69df25f6c6c6722ca482de
|
1e68910113efc542d2c55c9710f8b207eae76f5f
|
refs/heads/master
| 2022-11-04T14:44:06.066073
| 2020-11-10T11:24:38
| 2020-11-10T11:24:38
| 220,196,674
| 8
| 7
| null | 2022-10-12T20:34:34
| 2019-11-07T09:17:08
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 4,196
|
java
|
package com.pegasus.kafka.config;
import com.alibaba.druid.pool.DruidDataSource;
import com.baomidou.mybatisplus.core.MybatisConfiguration;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean;
import com.pegasus.kafka.common.utils.Common;
import com.pegasus.kafka.service.property.PropertyService;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.type.JdbcType;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
/**
* Mybatis's config for set the paging.
* <p>
* *****************************************************************
* Name Action Time Description *
* Ning.Zhang Initialize 11/7/2019 Initialize *
* *****************************************************************
*/
@Configuration
public class MybatisPlusConfig {
private static final ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();
private final PropertyService propertyService;
public MybatisPlusConfig(PropertyService propertyService) {
this.propertyService = propertyService;
}
@Bean
public DataSource dataSource() {
return Common.createDataSource(propertyService.getDbHost(),
propertyService.getDbPort().toString(),
propertyService.getDbName(),
propertyService.getDbUsername(),
propertyService.getDbPassword());
}
@Bean("sqlSessionFactory")
public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {
initDatabase();
MybatisSqlSessionFactoryBean sqlSessionFactory = new MybatisSqlSessionFactoryBean();
sqlSessionFactory.setDataSource(dataSource);
sqlSessionFactory.setMapperLocations(resourceResolver.getResources("classpath*:/com.pegasus.kafka.mapper/*Mapper.xml"));
MybatisConfiguration configuration = new MybatisConfiguration();
configuration.setJdbcTypeForNull(JdbcType.NULL);
configuration.setMapUnderscoreToCamelCase(true);
//这个配置会将执行的sql打印出来,在开发或测试的时候可以用
//configuration.setLogImpl(org.apache.ibatis.logging.stdout.StdOutImpl.class);
configuration.setCacheEnabled(false);
sqlSessionFactory.setConfiguration(configuration);
MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor());
sqlSessionFactory.setPlugins(mybatisPlusInterceptor);
return sqlSessionFactory.getObject();
}
@Bean
public PlatformTransactionManager transactionManager() {
return new DataSourceTransactionManager(dataSource());
}
private void initDatabase() {
try {
try (DruidDataSource dataSource = (DruidDataSource) Common.createDataSource(propertyService.getDbHost(),
propertyService.getDbPort().toString(),
"",
propertyService.getDbUsername(),
propertyService.getDbPassword(),
1,
1,
1);
Connection connection = dataSource.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement(String.format("CREATE DATABASE IF NOT EXISTS %s CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci", propertyService.getDbName()))) {
preparedStatement.execute();
}
} catch (Exception ignored) {
}
}
}
|
[
"349409664@qq.com"
] |
349409664@qq.com
|
7d1d3648304e09d28e4d072bbb944ea3861e3b48
|
a9a69943d244894a5da147a24631373eb18dbf8c
|
/src/main/java/com/amazonaws/services/cloudfront_2012_03_15/model/ActiveTrustedSigners.java
|
a7755e079a6335475661a3fed4ecb6bdfa5975ab
|
[
"JSON",
"Apache-2.0"
] |
permissive
|
usmanghani/aws-sdk-java
|
d7309843670a7e2e2e434e9f32458a1ea7468e84
|
8c8bfef0d390d53ec080a8475135c018205a9526
|
refs/heads/master
| 2021-01-20T22:40:11.364360
| 2013-04-14T20:42:25
| 2013-04-14T20:42:25
| 9,434,990
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,938
|
java
|
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.cloudfront_2012_03_15.model;
/**
* <p>
* CloudFront automatically adds this element to the response only if
* you've set up the distribution to serve private content with signed
* URLs. The element lists the key pair IDs that CloudFront is aware of
* for each trusted signer.
* </p>
*/
public class ActiveTrustedSigners {
/**
* Each active trusted signer.
*/
private java.util.List<Signer> signers;
/**
* Default constructor for a new ActiveTrustedSigners object. Callers should use the
* setter or fluent setter (with...) methods to initialize this object after creating it.
*/
public ActiveTrustedSigners() {}
/**
* Constructs a new ActiveTrustedSigners object.
* Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param signers Each active trusted signer.
*/
public ActiveTrustedSigners(java.util.List<Signer> signers) {
this.signers = signers;
}
/**
* Each active trusted signer.
*
* @return Each active trusted signer.
*/
public java.util.List<Signer> getSigners() {
if (signers == null) {
signers = new java.util.ArrayList<Signer>();
}
return signers;
}
/**
* Each active trusted signer.
*
* @param signers Each active trusted signer.
*/
public void setSigners(java.util.Collection<Signer> signers) {
if (signers == null) {
this.signers = null;
return;
}
java.util.List<Signer> signersCopy = new java.util.ArrayList<Signer>(signers.size());
signersCopy.addAll(signers);
this.signers = signersCopy;
}
/**
* Each active trusted signer.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param signers Each active trusted signer.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ActiveTrustedSigners withSigners(Signer... signers) {
if (getSigners() == null) setSigners(new java.util.ArrayList<Signer>(signers.length));
for (Signer value : signers) {
getSigners().add(value);
}
return this;
}
/**
* Each active trusted signer.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param signers Each active trusted signer.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ActiveTrustedSigners withSigners(java.util.Collection<Signer> signers) {
if (signers == null) {
this.signers = null;
} else {
java.util.List<Signer> signersCopy = new java.util.ArrayList<Signer>(signers.size());
signersCopy.addAll(signers);
this.signers = signersCopy;
}
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (signers != null) sb.append("Signers: " + signers + ", ");
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSigners() == null) ? 0 : getSigners().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof ActiveTrustedSigners == false) return false;
ActiveTrustedSigners other = (ActiveTrustedSigners)obj;
if (other.getSigners() == null ^ this.getSigners() == null) return false;
if (other.getSigners() != null && other.getSigners().equals(this.getSigners()) == false) return false;
return true;
}
}
|
[
"fulghum@amazon.com"
] |
fulghum@amazon.com
|
839e0944b5d1436173ee7a046865dc896d834778
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/6/6_8496bda89e957d51a25cb943e8e8f18726d9790f/Account/6_8496bda89e957d51a25cb943e8e8f18726d9790f_Account_t.java
|
d5c28cbff8b6ea35cbdee59be104efb8a8daabe9
|
[] |
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
| 662
|
java
|
package com.bot42;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
public class Account {
private File location;
private String username;
public Account (String username) {
(new File("accounts")).mkdirs();
location = new File("accounts" + File.separator + username + "cfg");
this.username = username;
}
public boolean addUser () throws Exception {
if (location.exists()) return false;
location.createNewFile();
BufferedWriter writer = new BufferedWriter(new FileWriter(location));
writer.write("username=\"" + username + "\"\n");
writer.flush(); writer.close();
return true;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4d152e2a64b6892c00f0ef43bce895e8939d02ba
|
bf286dda193d810c73bcf87a95602ee16b8dd8e8
|
/spring.training/src/main/java/spring/training/cfg/AppConfig4.java
|
aa82ab57154d78a8fb5b94c247d7fe9c3e26e3e1
|
[] |
no_license
|
kayartaya-vinod/2018_02_UNISYS_SPRING
|
ed9688de52dac2d284ccc5cc6a0963a14e13e3cd
|
c25fa55555a0a6a3e8a3212f35cf488a72564089
|
refs/heads/master
| 2020-03-18T12:32:45.711739
| 2019-02-06T07:45:16
| 2019-02-06T07:45:16
| 134,731,146
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,656
|
java
|
package spring.training.cfg;
import java.util.Random;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.jdbc.core.JdbcTemplate;
@Configuration
@PropertySource("classpath:database.properties")
@ComponentScan(basePackages = { "spring.training.repository" })
public class AppConfig4 {
@Bean
// @Scope("prototype")
public String hello() {
// System.out.println("hello() called!");
return "Hello, world! - " + new Random().nextInt(1000);
}
@Bean
public JdbcTemplate jdbcTemplate(DataSource ds) {
// System.out.println("this.getClass().getName()=" + this.getClass().getName());
// System.out.println("jdbcTemplate() called!");
// System.out.println(this.hello());
// System.out.println(this.hello());
// System.out.println(this.hello());
// System.out.println(this.hello());
// System.out.println(this.hello());
return new JdbcTemplate(ds);
}
@Bean
public DataSource dataSource(Environment env) {
BasicDataSource bds = new BasicDataSource();
// db config:
bds.setDriverClassName(env.getProperty("db.driver"));
bds.setUrl(env.getProperty("db.url"));
bds.setUsername(env.getProperty("db.username"));
bds.setPassword(env.getProperty("db.password"));
// pool config:
bds.setInitialSize(50);
bds.setMinIdle(5);
bds.setMaxIdle(50);
bds.setMaxTotal(100);
return bds;
}
}
|
[
"kayartaya.vinod@gmail.com"
] |
kayartaya.vinod@gmail.com
|
5901c2bae0e7abc683b98992caa26044a6a60576
|
2fda0a2f1f5f5d4e7d72ff15a73a4d3e1e93abeb
|
/proFL-plugin-2.0.3/org/codehaus/groovy/runtime/dgm$589.java
|
c34092e5df66ba1551e98fbc93c19a771da14eb9
|
[
"MIT"
] |
permissive
|
ycj123/Research-Project
|
d1a939d99d62dc4b02d9a8b7ecbf66210cceb345
|
08296e0075ba0c13204944b1bc1a96a7b8d2f023
|
refs/heads/main
| 2023-05-29T11:02:41.099975
| 2021-06-08T13:33:26
| 2021-06-08T13:33:26
| 374,899,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,008
|
java
|
//
// Decompiled by Procyon v0.5.36
//
package org.codehaus.groovy.runtime;
import groovy.lang.Closure;
import java.io.InputStream;
import org.codehaus.groovy.reflection.CachedClass;
import org.codehaus.groovy.reflection.GeneratedMetaMethod;
public class dgm$589 extends GeneratedMetaMethod
{
public dgm$589(final String name, final CachedClass declaringClass, final Class returnType, final Class[] parameters) {
super(name, declaringClass, returnType, parameters);
}
public Object invoke(final Object o, final Object[] array) {
return DefaultGroovyMethods.splitEachLine((InputStream)o, (String)array[0], (Closure)array[1]);
}
public final Object doMethodInvoke(final Object o, Object[] coerceArgumentsToClasses) {
coerceArgumentsToClasses = this.coerceArgumentsToClasses(coerceArgumentsToClasses);
return DefaultGroovyMethods.splitEachLine((InputStream)o, (String)coerceArgumentsToClasses[0], (Closure)coerceArgumentsToClasses[1]);
}
}
|
[
"chijiang.yang@student.unimelb.edu.au"
] |
chijiang.yang@student.unimelb.edu.au
|
42e2d57dee2d9c13d5bbfda6a732a2bda0498cbf
|
e51de484e96efdf743a742de1e91bce67f555f99
|
/Android/triviacrack_src/src/com/etermax/gamescommon/animations/v1/AnimatedView.java
|
3cb73dfddafa2b31fe08cd5f61ff3ad133ab8094
|
[] |
no_license
|
adumbgreen/TriviaCrap
|
b21e220e875f417c9939f192f763b1dcbb716c69
|
beed6340ec5a1611caeff86918f107ed6807d751
|
refs/heads/master
| 2021-03-27T19:24:22.401241
| 2015-07-12T01:28:39
| 2015-07-12T01:28:39
| 28,071,899
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,288
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.etermax.gamescommon.animations.v1;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.BitmapDrawable;
import android.os.CountDownTimer;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import com.etermax.gamescommon.animations.d;
import com.etermax.gamescommon.animations.e;
import com.etermax.gamescommon.resources.a;
import com.etermax.gamescommon.resources.b;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
// Referenced classes of package com.etermax.gamescommon.animations.v1:
// d, c, b, a
public class AnimatedView extends RelativeLayout
implements d
{
e a;
private List b;
private com.etermax.gamescommon.animations.v1.b c;
private CountDownTimer d;
private long e;
public AnimatedView(Context context)
{
super(context);
a = e.a;
c();
}
public AnimatedView(Context context, AttributeSet attributeset)
{
super(context, attributeset);
a = e.a;
c();
}
public AnimatedView(Context context, AttributeSet attributeset, int i)
{
super(context, attributeset, i);
a = e.a;
c();
}
static void a(AnimatedView animatedview)
{
animatedview.e();
}
private void a(com.etermax.gamescommon.animations.v1.d d1, a a1)
{
if (d1.c().size() == 1 && ((c)d1.c().get(0)).b() == c.c())
{
RelativeLayout relativelayout = new RelativeLayout(getContext());
BitmapDrawable bitmapdrawable1 = (BitmapDrawable)a1.a(((c)d1.c().get(0)).a());
int l;
int i1;
android.widget.RelativeLayout.LayoutParams layoutparams1;
if (android.os.Build.VERSION.SDK_INT < 16)
{
relativelayout.setBackgroundDrawable(bitmapdrawable1);
} else
{
relativelayout.setBackground(bitmapdrawable1);
}
l = bitmapdrawable1.getBitmap().getWidth();
i1 = bitmapdrawable1.getBitmap().getHeight();
e = e + (long)(4 * (bitmapdrawable1.getBitmap().getWidth() * bitmapdrawable1.getBitmap().getHeight()));
layoutparams1 = new android.widget.RelativeLayout.LayoutParams(l, i1);
layoutparams1.setMargins((int)(d1.a() * c.d()), (int)(d1.b() * c.e()), 0, 0);
relativelayout.setLayoutParams(layoutparams1);
addView(relativelayout);
return;
}
AnimationDrawable animationdrawable = new AnimationDrawable();
Iterator iterator = d1.c().iterator();
int i = 0;
int j = 0;
do
{
if (!iterator.hasNext())
{
break;
}
c c1 = (c)iterator.next();
BitmapDrawable bitmapdrawable = (BitmapDrawable)a1.a(c1.a());
if (bitmapdrawable != null && bitmapdrawable.getBitmap() != null)
{
animationdrawable.addFrame(bitmapdrawable, c1.b() * (1000 / c.b()));
j = Math.max(j, bitmapdrawable.getBitmap().getWidth());
int k = Math.max(i, bitmapdrawable.getBitmap().getHeight());
e = e + (long)(4 * (bitmapdrawable.getBitmap().getWidth() * bitmapdrawable.getBitmap().getHeight()));
i = k;
}
} while (true);
android.widget.RelativeLayout.LayoutParams layoutparams = new android.widget.RelativeLayout.LayoutParams(j, i);
layoutparams.setMargins((int)(d1.a() * c.d()), (int)(d1.b() * c.e()), 0, 0);
com.etermax.gamescommon.animations.v1.a a2 = new com.etermax.gamescommon.animations.v1.a(this, getContext(), animationdrawable);
a2.setLayoutParams(layoutparams);
animationdrawable.setOneShot(true);
b.add(a2);
addView(a2);
}
private void c()
{
b = new ArrayList();
}
private void d()
{
if (d != null)
{
return;
} else
{
d = new CountDownTimer(0x7fffffffffffffffL, c.c() * (1000 / c.b())) {
final AnimatedView a;
public void onFinish()
{
}
public void onTick(long l)
{
com.etermax.gamescommon.animations.v1.AnimatedView.a(a);
}
{
a = AnimatedView.this;
super(l, l1);
}
};
return;
}
}
private void e()
{
for (Iterator iterator = b.iterator(); iterator.hasNext(); ((com.etermax.gamescommon.animations.v1.a)iterator.next()).a()) { }
}
private void f()
{
for (Iterator iterator = b.iterator(); iterator.hasNext(); ((com.etermax.gamescommon.animations.v1.a)iterator.next()).b()) { }
}
public void a()
{
d();
d.start();
a = e.d;
}
public void a(com.etermax.gamescommon.animations.v1.b b1, a a1, b b2)
{
c = b1;
b1.d(com.etermax.gamescommon.resources.a.b(getContext(), b2));
setLayoutParams(new android.widget.RelativeLayout.LayoutParams((int)b1.d(), (int)b1.e()));
e = 0L;
for (Iterator iterator = b1.f().iterator(); iterator.hasNext(); a((com.etermax.gamescommon.animations.v1.d)iterator.next(), a1)) { }
a = e.c;
}
public void b()
{
d();
f();
d.cancel();
a = e.c;
}
public long getDrawablesSize()
{
return e;
}
public long getDuration()
{
Iterator iterator = b.iterator();
long l;
for (l = 0L; iterator.hasNext(); l += ((com.etermax.gamescommon.animations.v1.a)iterator.next()).c()) { }
return l;
}
public e getState()
{
return a;
}
public int getVersion()
{
return 1;
}
protected void onDetachedFromWindow()
{
b();
super.onDetachedFromWindow();
}
}
|
[
"klayderpus@chimble.net"
] |
klayderpus@chimble.net
|
8e8951fdeed6e2057b929c8d3ea1ba590e92cf7b
|
70e207ac63da49eddd761a6e3a901e693f4ec480
|
/net.certware.planning.mspdi.edit/src/net/certware/planning/mspdi/provider/ValuesTypeItemProvider.java
|
69d3e9f26232b62f03cbe98d1b7229118e1bbd76
|
[
"Apache-2.0"
] |
permissive
|
arindam7development/CertWare
|
43be650539963b1efef4ce4cad164f23185d094b
|
cbbfdb6012229444d3c0d7e64c08ac2a15081518
|
refs/heads/master
| 2020-05-29T11:38:08.794116
| 2016-03-29T13:56:37
| 2016-03-29T13:56:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,079
|
java
|
/**
* MSPDI is copyright Microsoft, Inc.
* Implementation wrapper in ecore done by Kestrel Technology LLC
*/
package net.certware.planning.mspdi.provider;
import java.util.Collection;
import java.util.List;
import net.certware.planning.mspdi.MspdiFactory;
import net.certware.planning.mspdi.MspdiPackage;
import net.certware.planning.mspdi.ValuesType;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.FeatureMapUtil;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link net.certware.planning.mspdi.ValuesType} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class ValuesTypeItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ValuesTypeItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(MspdiPackage.Literals.VALUES_TYPE__GROUP);
}
return childrenFeatures;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
}
/**
* This returns ValuesType.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/ValuesType"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
return getString("_UI_ValuesType_type");
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(ValuesType.class)) {
case MspdiPackage.VALUES_TYPE__GROUP:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(MspdiPackage.Literals.VALUES_TYPE__GROUP,
FeatureMapUtil.createEntry
(MspdiPackage.Literals.VALUES_TYPE__VALUE,
MspdiFactory.eINSTANCE.createValueType1())));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return MspdiEditPlugin.INSTANCE;
}
}
|
[
"mrbarry@kestreltechnology.com"
] |
mrbarry@kestreltechnology.com
|
ae01097b7f3a191111db288956a973de40d7d4ba
|
ef78d5a3ce8dc265f5b9d11085e7fc8efffd2f08
|
/android/loginregister_dinas_peternakan/gradle/gradle-4.6/src/ide-native/org/gradle/ide/visualstudio/internal/VisualStudioProjectInternal.java
|
b55d8b75d2278a6ba48a4e7f7205f29e1c4e42ef
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"CPL-1.0",
"LGPL-2.1-only",
"BSD-3-Clause"
] |
permissive
|
muammarkhadafiichsan/htdocs
|
05b2ea63eff868a1be12dac21aeb703a8673a226
|
4a420b54de6a654f6e51e20d626be7bf16b9d73a
|
refs/heads/master
| 2022-12-12T09:51:54.826733
| 2019-07-11T03:00:52
| 2019-07-11T03:00:52
| 174,064,027
| 0
| 0
|
MIT
| 2022-12-03T14:12:50
| 2019-03-06T03:26:45
| null |
UTF-8
|
Java
| false
| false
| 1,273
|
java
|
/*
* Copyright 2018 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.gradle.ide.visualstudio.internal;
import org.gradle.api.artifacts.PublishArtifact;
import org.gradle.ide.visualstudio.VisualStudioProject;
public interface VisualStudioProjectInternal extends VisualStudioProject {
String ARTIFACT_TYPE = "visualStudioProject";
/**
* Returns the name of the component associated with this project
*/
String getComponentName();
/**
* Adds tasks required to build this component.
*/
void builtBy(Object... tasks);
/**
* Returns a {@link org.gradle.api.artifacts.PublishArtifact} associated with this project
*/
PublishArtifact getPublishArtifact();
}
|
[
"47959678+muammarkhadafiichsan@users.noreply.github.com"
] |
47959678+muammarkhadafiichsan@users.noreply.github.com
|
5fbab16e2e1fff3c4bbadd7191b6a34e4764873d
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_3/src/b/g/a/h/Calc_1_3_16070.java
|
134883cbd3beec0ac1f52fb1bedf92d3e54228f8
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package b.g.a.h;
public class Calc_1_3_16070 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
0ec8ef2d7d0b5e0330e2d2768b2c6ec821149c6c
|
38c4451ab626dcdc101a11b18e248d33fd8a52e0
|
/tokens/xerces-2.11.0/src/org/apache/xerces/xni/XMLDTDContentModelHandler.java
|
0c210c20537e6780be85196ae67ae1cbbcd6058c
|
[] |
no_license
|
habeascorpus/habeascorpus-data
|
47da7c08d0f357938c502bae030d5fb8f44f5e01
|
536d55729f3110aee058ad009bcba3e063b39450
|
refs/heads/master
| 2020-06-04T10:17:20.102451
| 2013-02-19T15:19:21
| 2013-02-19T15:19:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,779
|
java
|
package TokenNamepackage
org TokenNameIdentifier
. TokenNameDOT
apache TokenNameIdentifier
. TokenNameDOT
xerces TokenNameIdentifier
. TokenNameDOT
xni TokenNameIdentifier
; TokenNameSEMICOLON
import TokenNameimport
org TokenNameIdentifier
. TokenNameDOT
apache TokenNameIdentifier
. TokenNameDOT
xerces TokenNameIdentifier
. TokenNameDOT
xni TokenNameIdentifier
. TokenNameDOT
parser TokenNameIdentifier
. TokenNameDOT
XMLDTDContentModelSource TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
interface TokenNameinterface
XMLDTDContentModelHandler TokenNameIdentifier
{ TokenNameLBRACE
public TokenNamepublic
static TokenNamestatic
final TokenNamefinal
short TokenNameshort
SEPARATOR_CHOICE TokenNameIdentifier
= TokenNameEQUAL
0 TokenNameIntegerLiteral
; TokenNameSEMICOLON
public TokenNamepublic
static TokenNamestatic
final TokenNamefinal
short TokenNameshort
SEPARATOR_SEQUENCE TokenNameIdentifier
= TokenNameEQUAL
1 TokenNameIntegerLiteral
; TokenNameSEMICOLON
public TokenNamepublic
static TokenNamestatic
final TokenNamefinal
short TokenNameshort
OCCURS_ZERO_OR_ONE TokenNameIdentifier
= TokenNameEQUAL
2 TokenNameIntegerLiteral
; TokenNameSEMICOLON
public TokenNamepublic
static TokenNamestatic
final TokenNamefinal
short TokenNameshort
OCCURS_ZERO_OR_MORE TokenNameIdentifier
= TokenNameEQUAL
3 TokenNameIntegerLiteral
; TokenNameSEMICOLON
public TokenNamepublic
static TokenNamestatic
final TokenNamefinal
short TokenNameshort
OCCURS_ONE_OR_MORE TokenNameIdentifier
= TokenNameEQUAL
4 TokenNameIntegerLiteral
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
startContentModel TokenNameIdentifier
( TokenNameLPAREN
String TokenNameIdentifier
elementName TokenNameIdentifier
, TokenNameCOMMA
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
any TokenNameIdentifier
( TokenNameLPAREN
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
empty TokenNameIdentifier
( TokenNameLPAREN
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
startGroup TokenNameIdentifier
( TokenNameLPAREN
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
pcdata TokenNameIdentifier
( TokenNameLPAREN
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
element TokenNameIdentifier
( TokenNameLPAREN
String TokenNameIdentifier
elementName TokenNameIdentifier
, TokenNameCOMMA
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
separator TokenNameIdentifier
( TokenNameLPAREN
short TokenNameshort
separator TokenNameIdentifier
, TokenNameCOMMA
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
occurrence TokenNameIdentifier
( TokenNameLPAREN
short TokenNameshort
occurrence TokenNameIdentifier
, TokenNameCOMMA
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
endGroup TokenNameIdentifier
( TokenNameLPAREN
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
endContentModel TokenNameIdentifier
( TokenNameLPAREN
Augmentations TokenNameIdentifier
augmentations TokenNameIdentifier
) TokenNameRPAREN
throws TokenNamethrows
XNIException TokenNameIdentifier
; TokenNameSEMICOLON
public TokenNamepublic
void TokenNamevoid
setDTDContentModelSource TokenNameIdentifier
( TokenNameLPAREN
XMLDTDContentModelSource TokenNameIdentifier
source TokenNameIdentifier
) TokenNameRPAREN
; TokenNameSEMICOLON
public TokenNamepublic
XMLDTDContentModelSource TokenNameIdentifier
getDTDContentModelSource TokenNameIdentifier
( TokenNameLPAREN
) TokenNameRPAREN
; TokenNameSEMICOLON
} TokenNameRBRACE
|
[
"pschulam@gmail.com"
] |
pschulam@gmail.com
|
e97923bea9fa14142cc2a2bc54f87a2317a72622
|
ead498241b5673c6370f0f24b96825ff4f2eac8c
|
/src/main/java/ma/munisys/dao/FournisseuRepository.java
|
7f8999ab1c1e5a964b7cb3a29c273f55bcb3bc3c
|
[] |
no_license
|
MUNISYS-GIT/PDC360
|
0b1023491e61172d868c44ceb5d47c0a0fe5ca98
|
8231818d1d7a2c558153ae0fb76a82e422571b2c
|
refs/heads/main
| 2022-12-01T11:23:00.532314
| 2020-08-06T16:53:08
| 2020-08-06T16:53:08
| 282,007,982
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 426
|
java
|
package ma.munisys.dao;
import java.util.Collection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import ma.munisys.entities.Fournisseur;
public interface FournisseuRepository extends JpaRepository<Fournisseur, String> {
@Query("SELECT e FROM Fournisseur e order by e.name asc")
public Collection<Fournisseur> getAllFournisseurs();
}
|
[
"e"
] |
e
|
8c3c37bd4f0ecd766521aaf1e04516f7367ceb8e
|
6b102ab7fec59a757af76d17ea81e998525424e6
|
/CMUPayThirdFront/src/main/java/com/huateng/third/bean/head/Sign.java
|
a2e9552689db8f6334d8e0b890ca207433b57aad
|
[] |
no_license
|
justfordream/my-2
|
a52516b87de9321916c0f111328fe1ced17e3549
|
e7b2d1003afbd5df8351342692e94a11b7ec15c5
|
refs/heads/master
| 2016-08-10T13:48:44.772153
| 2015-06-01T15:40:45
| 2015-06-01T15:40:45
| 36,330,084
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 812
|
java
|
package com.huateng.third.bean.head;
/**
* 消息签名
*
* @author Gary
*
*/
public class Sign {
/**
* 报文数字签名标志(1:有数字签名 0:无数字签名 )
*/
private String SignFlag;
/**
* 证书标识串(CA系统颁发的证书的标识串)
*/
private String CerID;
/**
* 签名值(有签名时必填。内容经Base64编码(原始值为128位,含不可显示字符))
*/
private String SignValue;
public String getSignFlag() {
return SignFlag;
}
public void setSignFlag(String signFlag) {
SignFlag = signFlag;
}
public String getCerID() {
return CerID;
}
public void setCerID(String cerID) {
CerID = cerID;
}
public String getSignValue() {
return SignValue;
}
public void setSignValue(String signValue) {
SignValue = signValue;
}
}
|
[
"2323173088@qq.com"
] |
2323173088@qq.com
|
561c7627a8615d48b12e66a44fb8201d8a23d384
|
9c1c7a727e2218e0e5ccf88f379edeb82fa71ec0
|
/gnu/jemacs/swt/LineOffsets.java
|
4cd1ffbcdb1a84af2eb7104d8b5617c40a5b270a
|
[
"MIT"
] |
permissive
|
uaiim/ai2-kawa
|
c73def804c74639477e4284e3ffa0090e5289732
|
f009546d8a693b16ed2c5f5eece0377cc617285e
|
refs/heads/master
| 2023-03-22T13:31:33.710666
| 2018-03-09T02:38:15
| 2018-03-09T02:38:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,932
|
java
|
package gnu.jemacs.swt;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import gnu.lists.GapVector;
import gnu.lists.U32Vector;
/**
* The purpose of this class is to maintain an ordered set of line offsets for an
* SwtCharBuffer.
* <p>
* With a LineOffsets instance it's possible to map from the number of a line to the text
* position where it begins, and back, reasonably fast.
* (O(1) for line number to line offset, O(log(#lines)) for line offset to line number)
* <p>
* LineOffsets extends GapVector with an U32Vector as base, allowing new line offsets to be inserted
* quickly during normal text typing.
* <p>
* <p>
* Instances of SwtCharBuffer should hold an instance LineOffsets class and notify it whenever the it's text changes.
* The notification happens through the methods:
* <p>
* <ul>
* <li>
* textRegionMoved, which should be called when the gap (of SwtCharBuffer) changes
* (position or size).
* </li>
* <li>
* textInserted.
* </li>
* <li>
* textDeleted.
* </li>
* </ul>
* <p>
* <p>
*
* TODO: decouple this, using a more general event model..
*
* Assume that lineOffset is an instance of LineOffsets, held by swtCharBuffer an instance of
* SwtCharBuffer.
* <p>
* Then a value of <code>o</code> at index <code>i</code> in lineOffsets.base
* means that the line with line number
* <code>n = (i < lOff.gapStart ? i : i + lOff.gapEnd - lOff.gapStart)</code>
* <p>
* starts at text position
* <code>p = (o < swtCB.gapStart ? o : o + swtCB.gapEnd - swtCB.gapStart)</code>
* <p>
* @author Christian Surlykke
* 12-07-2004
*/
public class LineOffsets extends GapVector
{
public final static int minGapSize = 100;
private static Pattern newLinePattern = Pattern.compile("\n|\r\n|\r"); // We recognize all the usual forms of
// linedelimiters
private U32Vector offsets;
public LineOffsets(int initialSize)
{
super(new U32Vector(Math.max(101, initialSize)));
offsets = (U32Vector) base;
insertLine(0, 0); // Line 0 allways starts at position 0 -
// even if the text is just the empty string
}
private void setOffset(int index, int Offset)
{
offsets.setIntAt(index < gapStart ? index : index + gapEnd - gapStart, Offset);
}
private int getOffset(int index)
{
return offsets.intAt(index < gapStart ? index : index + gapEnd - gapStart);
}
public void insertLine(int index, int offSet)
{
gapReserve(index, 1);
offsets.setIntAt(gapStart++, offSet);
}
public int index2offset(int index)
{
return offsets.intAt(index < gapStart ? index : index + gapEnd - gapStart);
}
/**
* We seek the line containing a given text offset using a halfing of intervals algorithm. Therefore
* the method will use O(log(n)) time, n being the number of lines.
*
* @see org.eclipse.swt.custom.StyledTextContent#getLineAtOffset(int)
*/
public int offset2index(int offset)
{
// Adhoc optimization: Very often this class will be asked for the line index belonging to the point
// where insertion happens, i.e. at the start of the gap.
// We try this before the full search so that we may return in O(1) time in this case.
try
{
if (index2offset(gapStart - 1) <= offset && index2offset(gapStart) > offset)
{
return gapStart - 1;
}
}
catch (IndexOutOfBoundsException e)
{
}
// The normal search
int intervalStart = 0;
int intervalEnd = size();
// Invariant: offset(intervalStart) <= offset AND offset(intervalEnd) > offset
while (intervalEnd > intervalStart + 1)
{
int middle = (intervalStart + intervalEnd) / 2;
if (index2offset(middle) <= offset)
{
intervalStart = middle;
}
else
{
intervalEnd = middle;
}
}
return intervalStart;
}
public void deleteLines(int firstLine, int numberOfLines)
{
if (numberOfLines > 0)
{
int pos = createPos(firstLine, false);
removePos(pos, numberOfLines);
releasePos(pos);
}
}
public void insertLines(int index, int[] offsets)
{
if (offsets != null && offsets.length > 0)
{
// The offsets should comply with:
// 0 <= offset[i] < offset[j] for 0 <= i < j
//
// TOCONSIDER:
// Maybe we should define an exception of our own here?
if (index2offset(index) > offsets[0])
{
throw new IllegalArgumentException();
}
if (index < size() && offsets[offsets.length - 1] > index2offset(index + 1))
{
throw new IllegalArgumentException();
}
for(int i = 0; i < offsets.length -1; i++)
{
if (offsets[i] > offsets[i + 1])
{
throw new IllegalArgumentException();
}
}
gapReserve(index + 1, offsets.length);
System.arraycopy(offsets, 0, offsets, index + 1, offsets.length);
}
}
public String toString()
{
StringBuffer sbuf = new StringBuffer();
sbuf.append("Lines: {" + size() + ", " + gapStart + ", " + gapEnd);
sbuf.append(" [");
for (int i = 0; i < size(); i++)
{
if (i == gapStart)
{
sbuf.append("|");
}
sbuf.append(offsets.intAt(i < gapStart ? i : i + gapEnd - gapStart));
if (i < size() - 1)
{
sbuf.append(" ");
}
}
sbuf.append("]}");
return sbuf.toString();
}
public int countLines(String newText)
{
Matcher m = newLinePattern.matcher(newText);
int i = 0;
while (m.find())
{
i++;
}
return i;
}
public int linesInRange(int startOffset, int endOffset)
{
int indexOfStart = offset2index(startOffset);
int indexOfEnd = offset2index(endOffset);
return indexOfEnd - indexOfStart;
}
public void textRegionMoved(int regionStart, int regionEnd, int displacement)
{
int firstIndexToUpdate = offset2index(regionStart) + 1;
int lastIndexToUpdate = offset2index(regionEnd);
for (int index = firstIndexToUpdate; index <= lastIndexToUpdate; index++)
{
setOffset(index, getOffset(index) + displacement);
}
}
public void textInserted(int startOffset, CharSequence seq)
{
int index = offset2index(startOffset);
for (Matcher m = newLinePattern.matcher(seq); m.find(); )
{
insertLine(++index, startOffset + m.end());
}
}
public void textDeleted(int startOffset, int endOffset)
{
int index = offset2index(startOffset);
shiftGap(index + 1);
while (gapEnd < offsets.getBufferLength() && offsets.intAt(gapEnd) <= endOffset)
{
gapEnd++;
}
}
public boolean isLineDelimiter(char c)
{
// TODO Auto-generated method stub
return c == '\n' || c == '\r';
}
}
|
[
"jis@mit.edu"
] |
jis@mit.edu
|
d64063f58d6868d6fe44e10b6561bd1dd940771a
|
153f89e60f5c279497aaffc8d47f1a9e936b9d0f
|
/hummer-pool-web-backend/mpool/mpool-pool-share-admin/src/main/java/com/mpool/share/admin/module/system/controller/SysRoleSysMenuController.java
|
03806eabaab14adcfaabc264c983db53cf14fe3b
|
[] |
no_license
|
Wsh744537645/wshproject
|
3c1bb0b849588d9a4a387541f670ad924b24f60f
|
2a7425da3e10cc57f9582428dcd89d71750bd9a7
|
refs/heads/master
| 2022-09-30T06:37:34.287696
| 2020-06-05T05:50:11
| 2020-06-05T05:50:11
| 195,003,629
| 1
| 1
| null | 2022-09-01T23:35:49
| 2019-07-03T07:37:29
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,637
|
java
|
package com.mpool.share.admin.module.system.controller;
import com.mpool.share.admin.module.system.service.SysRoleSysMenuService;
import com.mpool.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
@RestController
@Api("角色和菜单")
@RequestMapping(value = { "/apis/role/menu", "/role/menu" })
public class SysRoleSysMenuController {
@Autowired
private SysRoleSysMenuService sysRoleSysMenuService;
@PostMapping("/add/{roleId}")
@ApiOperation("角色添加菜单")
public Result roleMenu(@PathVariable(value = "roleId") Integer roleId, @RequestBody Integer[] menuIds) {
sysRoleSysMenuService.insertRoleMenus(roleId, Arrays.asList(menuIds));
return Result.ok();
}
@DeleteMapping("/del/role/menu/all")
@ApiOperation("删除角色下面所有菜单")
public Result deleteRoleAllMenu(@RequestParam(value = "roleId") Integer roleId) {
sysRoleSysMenuService.deleteRoleAllMenu(roleId);
return Result.ok();
}
@DeleteMapping("/del")
@ApiOperation("删除角色下面所有菜单")
public Result deleteRoleMenu(@RequestParam(value = "id") Integer id) {
sysRoleSysMenuService.delete(id);
return Result.ok();
}
@GetMapping("/get/{roleId}")
@ApiOperation("查询该角色下面有哪些菜单")
public Result getMenuByRole(@PathVariable(value = "roleId") Integer roleId) {
List<Map<String, Object>> list = sysRoleSysMenuService.getMenuByRole(roleId);
return Result.ok(list);
}
}
|
[
"744537645@qq.com"
] |
744537645@qq.com
|
f2904d56c4f1e983305929db060a3a49a2999252
|
b2a3210ea197e86967e9d57d1390fd0f804b2a36
|
/on-java8/src/main/java/com/ericaShy/java8/operators/Chess.java
|
03b71b35b2daee68c950c973739b826dec6ddb9b
|
[] |
no_license
|
547358880/javatutorials
|
5b97781755c7b00064e078228120cf8e8775aa67
|
c4f698805e437a30ffd9d4804284c84327d8693b
|
refs/heads/master
| 2021-06-26T19:28:17.101859
| 2020-01-02T00:49:07
| 2020-01-02T00:49:07
| 220,178,290
| 0
| 0
| null | 2021-03-31T21:38:17
| 2019-11-07T07:37:28
|
Java
|
UTF-8
|
Java
| false
| false
| 582
|
java
|
package com.ericaShy.java8.operators;
class Game {
Game(int i) {
System.out.println("Game constructor");
}
}
class BoardGame extends Game {
BoardGame(int i) {
super(i);
System.out.println("BoardGame constructor");
}
}
public class Chess extends BoardGame{
Chess() {
super(11);
System.out.println("Chess constructor");
}
/**
* 输出
* Game constructor
* BoardGame constructor
* Chess constructor
*/
public static void main(String[] args) {
Chess x = new Chess();
}
}
|
[
"547358880@qq.com"
] |
547358880@qq.com
|
1a4601036bd90e815aa8ad7f6b3b4f47100c3fe9
|
ebdcaff90c72bf9bb7871574b25602ec22e45c35
|
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201806/cm/AssetService.java
|
7341f04f195c199383a44fe7158d6e4104a6d4fe
|
[
"Apache-2.0"
] |
permissive
|
ColleenKeegan/googleads-java-lib
|
3c25ea93740b3abceb52bb0534aff66388d8abd1
|
3d38daadf66e5d9c3db220559f099fd5c5b19e70
|
refs/heads/master
| 2023-04-06T16:16:51.690975
| 2018-11-15T20:50:26
| 2018-11-15T20:50:26
| 158,986,306
| 1
| 0
|
Apache-2.0
| 2023-04-04T01:42:56
| 2018-11-25T00:56:39
|
Java
|
UTF-8
|
Java
| false
| false
| 3,273
|
java
|
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.jaxws.v201806.cm;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.1
*
*/
@WebServiceClient(name = "AssetService", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201806", wsdlLocation = "https://adwords.google.com/api/adwords/cm/v201806/AssetService?wsdl")
public class AssetService
extends Service
{
private final static URL ASSETSERVICE_WSDL_LOCATION;
private final static WebServiceException ASSETSERVICE_EXCEPTION;
private final static QName ASSETSERVICE_QNAME = new QName("https://adwords.google.com/api/adwords/cm/v201806", "AssetService");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("https://adwords.google.com/api/adwords/cm/v201806/AssetService?wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
ASSETSERVICE_WSDL_LOCATION = url;
ASSETSERVICE_EXCEPTION = e;
}
public AssetService() {
super(__getWsdlLocation(), ASSETSERVICE_QNAME);
}
public AssetService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
/**
*
* @return
* returns AssetServiceInterface
*/
@WebEndpoint(name = "AssetServiceInterfacePort")
public AssetServiceInterface getAssetServiceInterfacePort() {
return super.getPort(new QName("https://adwords.google.com/api/adwords/cm/v201806", "AssetServiceInterfacePort"), AssetServiceInterface.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns AssetServiceInterface
*/
@WebEndpoint(name = "AssetServiceInterfacePort")
public AssetServiceInterface getAssetServiceInterfacePort(WebServiceFeature... features) {
return super.getPort(new QName("https://adwords.google.com/api/adwords/cm/v201806", "AssetServiceInterfacePort"), AssetServiceInterface.class, features);
}
private static URL __getWsdlLocation() {
if (ASSETSERVICE_EXCEPTION!= null) {
throw ASSETSERVICE_EXCEPTION;
}
return ASSETSERVICE_WSDL_LOCATION;
}
}
|
[
"jradcliff@users.noreply.github.com"
] |
jradcliff@users.noreply.github.com
|
f19ea2190dc311451709a415a24f5c79b1a6ea88
|
d98de110431e5124ec7cc70d15906dac05cfa61a
|
/public/source/strategyagent/src/main/sample_data/samples/java/scripts/OrderSlicer.java
|
ae4495e3c6d06373ca2c7adf39f0efc24d75d4c6
|
[] |
no_license
|
dhliu3/marketcetera
|
367f6df815b09f366eb308481f4f53f928de4c49
|
4a81e931a044ba19d8f35bdadd4ab081edd02f5f
|
refs/heads/master
| 2020-04-06T04:39:55.389513
| 2012-01-30T06:49:25
| 2012-01-30T06:49:25
| 29,947,427
| 0
| 1
| null | 2015-01-28T02:54:39
| 2015-01-28T02:54:39
| null |
UTF-8
|
Java
| false
| false
| 4,208
|
java
|
package sample;
import org.marketcetera.strategy.java.Strategy;
import org.marketcetera.trade.*;
import java.util.Random;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicInteger;
import java.security.SecureRandom;
import java.math.BigDecimal;
/* $License$ */
/**
* Given parameters indicating symbol and size, slices the total size into
* smaller chunks and sends market orders off at random times.
*
* @author anshul@marketcetera.com
* @version $Id: OrderSlicer.java 10917 2009-11-30 23:04:27Z anshul $
* @since 2.0.0
*/
public class OrderSlicer extends Strategy {
/**
* Executed when the strategy is started.
* Use this method to set up data flows
* and other initialization tasks.
*/
@Override
public void onStart() {
String symbol = getParameter("symbol");
String qty = getParameter("quantity");
if (symbol == null || qty == null) {
String msg = "Please specify the 'symbol' and/or 'quantity' parameters (right-click on registered Strategy and go to Properties)";
error(msg);
notifyHigh("Strategy missing parameters", msg);
//throw an exception to prevent the strategy from starting.
throw new IllegalArgumentException(msg);
}
int quantity = Integer.parseInt(qty);
info("Partioning " + quantity + " " + symbol);
List<Integer> partition;
//if it's more than 100 shares, do partitioning in "round lots"
if (quantity > 100) {
// Figure out if we have a odd lot
int oddQty = quantity % 100;
quantity = quantity / 100;
partition = generatePartition(quantity, 100);
if (oddQty > 0) {
partition.add(oddQty);
}
} else {
partition = generatePartition(quantity, 1);
}
mNumPartitions = partition.size();
//Output the partitioning
info("Partitions: " + partition.toString());
//Generate order objects from partition sizes
for(int size: partition) {
OrderSingle order = Factory.getInstance().createOrderSingle();
order.setOrderType(OrderType.Market);
order.setQuantity(new BigDecimal(size));
order.setSide(Side.Buy);
order.setInstrument(new Equity(symbol));
order.setTimeInForce(TimeInForce.Day);
// request a callback for each order at a random time (up to 10 seconds)
requestCallbackAfter(1000 * sRandom.nextInt(10), order);
}
}
/**
* Executed when the strategy receives a callback requested via
* {@link #requestCallbackAt(java.util.Date, Object)} or
* {@link #requestCallbackAfter(long, Object)}. All timer
* callbacks come with the data supplied when requesting callback,
* as an argument.
*
* @param inData the callback data
*/
@Override
public void onCallback(Object inData) {
send(inData);
int sent = mNumSent.incrementAndGet();
info("sent order " + sent + "/" + mNumPartitions);
}
/**
* Generate random partitions of the given quantity. Multiplies each
* partition with the supplied multiple.
*
* @param inQuantity the quantity to be partitioned.
* @param inMultiple the multiple to be applied to each partition.
*
* @return the list of partitions.
*/
private static List<Integer> generatePartition(int inQuantity,
int inMultiple) {
List<Integer> list = new ArrayList<Integer>();
while (inQuantity > 0) {
int split = sRandom.nextInt(inQuantity) + 1;
list.add(split * inMultiple);
inQuantity -= split;
}
Collections.shuffle(list, sRandom);
return list;
}
private volatile int mNumPartitions;
private final AtomicInteger mNumSent = new AtomicInteger(0);
private final static Random sRandom = new SecureRandom();
}
|
[
"stevenshack@stevenshack.com"
] |
stevenshack@stevenshack.com
|
6d0c52f0afb201d9c068b1a7d4cbf11a8d41d505
|
47bbb2f7d41b6b8c0e72744f78b57b6f1bfa3a05
|
/java/com/project/util/jsp/JSPMessage.java
|
6eaf1275677fd8eb5402172a39e5273ddbcdb6f9
|
[] |
no_license
|
devmanager-oxy/oxysystem_sp
|
bd43a9abacc184f611e2ba780921cf85d9bea5b1
|
cc1871d03d2bf952d571b9ec3d57ce9716cc156e
|
refs/heads/master
| 2022-12-22T12:49:30.057223
| 2020-09-29T09:48:30
| 2020-09-29T09:48:30
| 294,572,696
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,405
|
java
|
package com.project.util.jsp;
import java.util.*;
public class JSPMessage
{
public static final int NONE = 0;
// error form constanta
public static final int ERR_NONE = 0;
public static final int ERR_UNKNOWN = 1;
public static final int ERR_REQUIRED = 2;
public static final int ERR_TYPE = 3;
public static final int ERR_FORMAT = 4;
public static final int ERR_SAVED = 5;
public static final int ERR_UPDATED = 6;
public static final int ERR_DELETED = 7;
public static final int ERR_PWDSYNC = 8;
// message form constanta
public static final int MSG_NONE = 1000;
public static final int MSG_SAVED = 1001;
public static final int MSG_UPDATED = 1002;
public static final int MSG_DELETED = 1003;
public static final int MSG_ASKDEL = 1004;
public static final int MSG_INCOMPLATE = 1005;
public static final int MSG_IN_USED = 1006;
public static String[] errString = {
"",
" unknown error occured",
" data required",
" invalid entry type",
" invalid entry format",
"Can not save data",
"Can not update data",
"Can not delete data",
"Password does not match"
};
public static String[] msgString = {
"",
"Data has been saved",
"Data has been updated",
"Data has been deleted",
"Are you sure to delete these data ?",
"Error, incomplete data input",
"Can not delete,<br>Object is currently used by another module"
};
/**
* Get Error String.
* idx is range from 0..errString.length
*/
public static String getErr(int idx)
{
if(idx < 0 || idx >= errString.length) return "";
return errString[idx];
}
/**
* Get Message String.
* idx is
* reange from 0..msgString.length
* or
* reange from MSG_NONE..msgString.length + MSG_NONE
* so
* we can call it as getMsg(MSG_SAVED) or getMsg(1)
* both return the same value
*/
public static String getMsg(int idx)
{
if(idx >= MSG_NONE) {
if(idx >= msgString.length + MSG_NONE)
return "";
return msgString[idx - MSG_NONE];
}else {
if(idx < 0 || idx >= msgString.length)
return "";
return msgString[idx];
}
}
/**
* Get Message String or Error String.
* if idx is < MSG_NOTE it will return Error String from Error array
* if idx is >= MSG_NOTE it will return Message String from Message array
*
* Use this function to get kind of String that you never known before,
* whether it's Message String or Error String !
*/
public static String getMessage(int idx)
{
if(idx >= MSG_NONE) {
if(idx >= msgString.length + MSG_NONE)
return "";
return msgString[idx - MSG_NONE];
}else {
if(idx < 0 || idx >= errString.length)
return "";
return errString[idx];
}
}
} // end of FRMMessage
|
[
"devmgr@oxysystem.com"
] |
devmgr@oxysystem.com
|
0fc10f83e1f2893995e60ca83ccbf949eac06959
|
1644658226be0ff6fab3d48b4d35e3d5f468a372
|
/CodingDojo/src/main/java/com/codenjoy/dojo/web/controller/MainPageController.java
|
29c2117992bfb71ad66dd5c209a8188ca390526e
|
[] |
no_license
|
ustinov/snake
|
003c92d45ee3837baa041c629747509cafcd35b7
|
67e83ab59853c80af980887f111a8c7edd83db59
|
refs/heads/master
| 2020-04-05T23:39:15.398693
| 2013-09-20T22:50:23
| 2013-09-20T22:50:23
| 12,985,478
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,644
|
java
|
package com.codenjoy.dojo.web.controller;
import com.codenjoy.dojo.services.Player;
import com.codenjoy.dojo.services.PlayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
/**
* User: apofig
* Date: 9/20/12
* Time: 1:37 PM
*/
@Controller
public class MainPageController {
@Autowired
private PlayerService playerService;
public MainPageController() {
}
//for unit test
MainPageController(PlayerService playerService) {
this.playerService = playerService;
}
@RequestMapping(value = "/help", method = RequestMethod.GET)
public String help(Model model) {
model.addAttribute("game", playerService.getGameType());
return "help";
}
@RequestMapping(value = "/", method = RequestMethod.GET)
public String getMainPage(HttpServletRequest request, HttpSession session, Model model) {
String userIp = request.getRemoteAddr();
model.addAttribute("ip", userIp);
String playerName = (String) session.getAttribute("playerName");
request.setAttribute("registered", playerName != null);
// Player player = playerService.findPlayerByIp(userIp); // TODO реализовать через регистрацию с паролем
// model.addAttribute("user", player.getName());
return "main";
}
}
|
[
"apofig@gmail.com"
] |
apofig@gmail.com
|
4b22f207137150709b779c48d67625725733fa55
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/zuiyou/sources/cn/xiaochuan/push/meizu/MeizuMessageReceiver.java
|
20cb0d19c6fd10436ccb539bf3e6a8e6d2e83de6
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,233
|
java
|
package cn.xiaochuan.push.meizu;
import android.content.Context;
import android.support.annotation.Nullable;
import cn.xiaochuan.push.a;
import cn.xiaochuan.push.e;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.izuiyou.a.a.b;
import com.meizu.cloud.pushsdk.MzPushMessageReceiver;
import com.meizu.cloud.pushsdk.notification.PushNotificationBuilder;
import com.meizu.cloud.pushsdk.platform.message.PushSwitchStatus;
import com.meizu.cloud.pushsdk.platform.message.RegisterStatus;
import com.meizu.cloud.pushsdk.platform.message.SubAliasStatus;
import com.meizu.cloud.pushsdk.platform.message.SubTagsStatus;
import com.meizu.cloud.pushsdk.platform.message.UnRegisterStatus;
public class MeizuMessageReceiver extends MzPushMessageReceiver {
public void onNotifyMessageArrived(Context context, String str) {
super.onNotifyMessageArrived(context, str);
b.b("Meizu", "message:" + str);
a.a().a(2, "mz", a(str));
}
public void onNotificationArrived(Context context, String str, String str2, String str3) {
b.b("Meizu", "title:" + str + " content:" + str2 + " selfDefineContentString:" + str3);
a.a().a(2, "mz", a(str3));
}
public void onUpdateNotificationBuilder(PushNotificationBuilder pushNotificationBuilder) {
pushNotificationBuilder.setmLargIcon(cn.xc_common.push.a.a.mipush_notification);
pushNotificationBuilder.setmStatusbarIcon(cn.xc_common.push.a.a.mz_push_notification_small_icon);
b.b("Meizu", "onUpdateNotificationBuilder");
}
public void onNotificationClicked(Context context, String str, String str2, String str3) {
a.a().a(3, "mz", a(str3));
}
public void onNotificationDeleted(Context context, String str, String str2, String str3) {
a.a().a(4, "mz", a(str3));
}
@Nullable
private e a(String str) {
try {
b.b("Meizu", str);
JSONObject parseObject = JSON.parseObject(str);
e a = e.a(parseObject);
a.l = "mz";
a.k = parseObject;
a.e = true;
return a;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
public void onRegister(Context context, String str) {
b.b("Meizu", "onRegister:" + str);
a.a().a("mz", str);
}
public void onUnRegister(Context context, boolean z) {
b.b("Meizu", "onUnRegister:" + z);
}
public void onPushStatus(Context context, PushSwitchStatus pushSwitchStatus) {
b.b("Meizu", "onPushStatus:" + pushSwitchStatus);
}
public void onRegisterStatus(Context context, RegisterStatus registerStatus) {
b.b("Meizu", "onRegisterStatus:" + registerStatus);
}
public void onUnRegisterStatus(Context context, UnRegisterStatus unRegisterStatus) {
b.b("Meizu", "onUnRegisterStatus:" + unRegisterStatus);
}
public void onSubTagsStatus(Context context, SubTagsStatus subTagsStatus) {
b.b("Meizu", "onSubTagsStatus:" + subTagsStatus);
}
public void onSubAliasStatus(Context context, SubAliasStatus subAliasStatus) {
b.b("Meizu", "onSubAliasStatus:" + subAliasStatus);
}
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
684a433724face7de3d568ed3dfb03d8eb571b69
|
0092010129e15ef3dcbc19864b4d012624482f67
|
/cache2k-api/src/main/java/org/cache2k/processor/RestartException.java
|
e72dcf24adebaae26e211af18513110f35d1bde3
|
[
"Apache-2.0"
] |
permissive
|
pydawan/cache2k
|
5b602ca7018ddec09641c63c495aaceb34317647
|
3c9ccff12608c598c387ec50957089784cc4b618
|
refs/heads/master
| 2020-05-30T06:56:17.051348
| 2019-04-19T07:03:43
| 2019-04-19T07:03:43
| 189,590,340
| 0
| 1
|
Apache-2.0
| 2019-05-31T12:29:05
| 2019-05-31T12:29:05
| null |
UTF-8
|
Java
| false
| false
| 929
|
java
|
package org.cache2k.processor;
/*
* #%L
* cache2k API
* %%
* Copyright (C) 2000 - 2019 headissue GmbH, Munich
* %%
* 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.
* #L%
*/
import org.cache2k.CacheException;
/**
* Used by the entry processor to abort the processing to carry out
* some, possibly asynchronous, processing.
*
* @author Jens Wilke
*/
public class RestartException extends CacheException {
}
|
[
"jw_github@headissue.com"
] |
jw_github@headissue.com
|
6cfc323eef128b641103e0ae5d957ff0ce9669d7
|
d03660395f2b74f66cb247865d82984ba32279f6
|
/ums/src/main/java/gov/samhsa/c2s/ums/domain/UserAvatar.java
|
f0a8d1bc1851178f04ce6382616d7902530df3d4
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
bhits/ums
|
a08d6fea25803e8d6ba7b654c507dd5a1634a245
|
cdf9a967ae061eea8cad07a43e2e3a643b95e65f
|
refs/heads/master
| 2021-08-11T11:19:34.402596
| 2017-10-19T18:51:44
| 2017-10-19T18:51:44
| 105,575,974
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 934
|
java
|
package gov.samhsa.c2s.ums.domain;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToOne;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Entity
@Data
public class UserAvatar {
@Id
@GeneratedValue
private Long id;
@Lob
@NotEmpty
private byte[] fileContents;
@NotEmpty
private String fileName;
@NotEmpty
private String fileExtension;
@NotNull
@Min(1)
private Long fileSizeBytes;
@NotNull
@Min(1)
private Long fileWidthPixels;
@NotNull
@Min(1)
private Long fileHeightPixels;
@NotNull
@OneToOne(fetch = FetchType.LAZY)
private User user;
}
|
[
"michael.hadjiosif@feisystems.com"
] |
michael.hadjiosif@feisystems.com
|
b8fabbd36d35bf644c1d901166aec3103e8f9383
|
2593fce8f5984e3db26f58269c1262f29fbd4fda
|
/media-fever-android/src/main/java/com/mediafever/repository/MediaSessionsRepository.java
|
a3ed7083837761556593a37cd67179abf59e0c66
|
[] |
no_license
|
gr-public/media-fever
|
ed93b92e4414a458b9398b346ea19080337d845f
|
d3c826a280f7e292086408e8c3f84086d51c8ae6
|
refs/heads/master
| 2021-05-27T01:35:32.255479
| 2013-07-28T20:26:24
| 2013-07-28T20:26:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 466
|
java
|
package com.mediafever.repository;
import java.util.List;
import com.jdroid.android.repository.SynchronizedRepository;
import com.mediafever.domain.session.MediaSession;
/**
*
* @author Maxi Rosson
*/
public interface MediaSessionsRepository extends SynchronizedRepository<MediaSession> {
public List<MediaSession> getPendingMediaSessions();
public List<MediaSession> getActiveMediaSessions();
public List<MediaSession> getExpiredMediaSessions();
}
|
[
"maxirosson@gmail.com"
] |
maxirosson@gmail.com
|
9cbaf337b32c5a32e1c02bb5a12534c84b9fcec5
|
50a4d665699db0cbe65a471f9dd57a376cc597a5
|
/scanner/src/main/java/scanner/Calculator.java
|
69dc749f5b210d377d3eb112145f5673b28639b8
|
[] |
no_license
|
laxmijaya753/CalculatorUsingMaven
|
e1c75f4f1c4ffd8f00639d3e4cbb9c80a0d06b0c
|
ed2cb3393f3345460de36cd4f3896a66723919c2
|
refs/heads/main
| 2023-04-26T03:42:32.946005
| 2021-05-25T23:32:24
| 2021-05-25T23:32:24
| 370,852,516
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 297
|
java
|
package scanner;
import java.util.Scanner;
public class Calculator {
public static int add(int x,int y)
{
return x+y;
}
public static int sub(int x,int y)
{
return x-y;
}
public static int mul(int x,int y)
{
return x*y;
}
public static int div(int x,int y)
{
return x/y;
}
}
|
[
"you@example.com"
] |
you@example.com
|
d44a880ca353e287a8aa8b119b8e11c0a09490cc
|
2c198ef96f6db360765daae85952cf4e2caaf181
|
/src/main/java/calculator/Operator.java
|
1ea031ef174f8b9189c59c69cb7229d1770afe4f
|
[] |
no_license
|
Han-Crew/Java-RacingCar-Game
|
1fbbcc4d1f7e4000464ac0604ab35e270a377a39
|
390d7880584582df9ba52d7a658968a15a0431ed
|
refs/heads/master
| 2023-04-15T11:07:12.577287
| 2021-04-25T14:47:44
| 2021-04-25T14:47:44
| 353,924,140
| 0
| 1
| null | 2021-04-25T14:45:53
| 2021-04-02T06:11:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,396
|
java
|
package calculator;
import java.util.function.BiFunction;
public enum Operator {
PLUS("+" , Integer::sum),
MINUS("-" , (previousValue, nextValue) -> previousValue - nextValue),
MULTIPLY("*" , (previousValue , nextValue) -> previousValue * nextValue),
DIVISION("/" , (previousValue , nextValue) -> {
divisionValidationCheck(nextValue);
return previousValue / nextValue;
});
private String operator;
private BiFunction<Integer , Integer , Integer> calculate;
Operator(String operator , BiFunction<Integer , Integer , Integer> calculate) {
this.operator = operator;
this.calculate = calculate;
}
public String getOperator() {
return operator;
}
public int calculate(int previousValue , int nextValue) {
return calculate.apply(previousValue , nextValue);
}
public static Operator toEnum(String operator) {
for (Operator operationOperator : Operator.values()) {
if (operationOperator.getOperator().equals(operator)) {
return operationOperator;
}
}
throw new IllegalArgumentException("잘못된 기호입니다.");
}
private static void divisionValidationCheck(int divisionValue) {
if (divisionValue == 0) {
throw new IllegalArgumentException("0으로 나눌수 없습니다.");
}
}
}
|
[
"drogba02@naver.com"
] |
drogba02@naver.com
|
dd045a51c5d0416725f0d0e65713babeef0d79f2
|
9b3727b2289a66827017f4b3a703c3ef51c580fa
|
/java/pax/TrainsSchedule/Model/Stop.java
|
46346d413f701cc7358e4441dfc5a7eb22d22eb0
|
[
"MIT"
] |
permissive
|
Rexee/TrainsSchedule
|
f0213569d8313f76c053127657e349281f195a86
|
7c50521471bf80bd056ca32884cab53492627eab
|
refs/heads/master
| 2021-01-10T16:14:03.312843
| 2016-02-03T14:38:12
| 2016-02-03T14:38:12
| 50,854,356
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,299
|
java
|
package pax.TrainsSchedule.Model;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import pax.TrainsSchedule.DTO.Station;
import pax.TrainsSchedule.Util.Multilanguage;
public class Stop {
public int dayOfWeek;
public String fromStation;
public String toStation;
public int arrival; //in minutes
public int departure; //in minutes
public String duration;
public String route;
public String exclude;
public boolean express;
public void fill(Station from, Station to, int dayOfWeek, String departure, String arrival, int duration, String route, String exclude, String express) {
this.fromStation = from.code;
this.toStation = to.code;
this.dayOfWeek = dayOfWeek;
this.departure = getTimeInt(departure);
this.arrival = getTimeInt(arrival);
if (exclude == null || exclude.isEmpty() || exclude.equalsIgnoreCase("везде")) {
this.exclude = "";
}
else if (exclude.equalsIgnoreCase("без остановок")){
this.exclude = Multilanguage.nonstop;
}
else
this.exclude = exclude.substring(0, 1).toUpperCase() + exclude.substring(1);
if (express == null) {
this.express = false;
this.route = route;
} else {
this.express = true;
this.route = route + " (" + Multilanguage.express + ")";
}
this.duration = durationStr(duration);
}
private int getTimeInt(String inStr) {
//2016-01-25 01:07:00 -> 1*60+7 = 67
DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH);
Calendar c = Calendar.getInstance();
try {
c.setTime(format.parse(inStr));
} catch (ParseException e) {
e.printStackTrace();
}
return c.get(Calendar.HOUR_OF_DAY) * 60 + c.get(Calendar.MINUTE);
}
private static String durationStr(int seconds) {
long hr = TimeUnit.SECONDS.toHours(seconds);
long sec = seconds - hr * 3600;
long min = TimeUnit.SECONDS.toMinutes(sec);
if (hr == 0) return "" + min + " " + Multilanguage.min;
return "" + hr + " " + Multilanguage.h + " " + min + " " + Multilanguage.min;
}
public static class List {
private ArrayList<Stop> stops;
public List(ArrayList<Stop> stops) {
if (stops == null) {
stops = new ArrayList<>();
}
this.stops = stops;
}
public ArrayList<Stop> getStops() {
return stops;
}
public int size() {
return stops.size();
}
public Stop get(int position) {
return stops.get(position);
}
public void newStops(List stopsList) {
stops.clear();
for (Stop stop : stopsList.stops) {
stops.add(stop);
}
}
public void addStops(List stopsList) {
for (Stop stop : stopsList.stops) {
stops.add(stop);
}
}
}
}
|
[
"111"
] |
111
|
732ea5b0ba84ef63d179c05fd6202a5c011d450d
|
81467aba20f008a1c321d803519309a0987a90f0
|
/src/main/java/com/boliangshenghe/outteam/controller/HbplanController.java
|
b7543d370863e44b769848dcbd7bc086f0d59582
|
[
"Apache-2.0"
] |
permissive
|
superxuzj/outteamManage
|
f179fc7f2d3e14142689617fa4e8ae5997ee22d0
|
45fa30a7075103af4893dc97955f1bab420bb04f
|
refs/heads/master
| 2021-05-16T08:19:35.288816
| 2018-04-19T08:09:27
| 2018-04-19T08:09:27
| 104,047,217
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,283
|
java
|
package com.boliangshenghe.outteam.controller;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.boliangshenghe.outteam.common.PageBean;
import com.boliangshenghe.outteam.entity.Company;
import com.boliangshenghe.outteam.entity.Hbplan;
import com.boliangshenghe.outteam.entity.HbplanDetail;
import com.boliangshenghe.outteam.service.CompanyService;
import com.boliangshenghe.outteam.service.HbplanDetailService;
import com.boliangshenghe.outteam.service.HbplanService;
/**
* 华北预案管理
*
* @author xuzj
*
*/
@Controller
@RequestMapping("/hbplan")
public class HbplanController {
@Autowired
private HbplanService hbplanService;
@Autowired
private CompanyService companyService;
@Autowired
private HbplanDetailService hbplanDetailService;
@RequestMapping
public String defaultIndex(){
return "redirect:/hbplan/list";
}
@RequestMapping("list")
public String index(HttpServletRequest request,
HttpServletResponse response,Hbplan hbplan,Model model,
@RequestParam(defaultValue = "1", value = "pageNo") Integer pageNo){
PageBean<Hbplan> page = hbplanService.gethbplanByPage(hbplan, pageNo);
model.addAttribute("page", page);
return "hbplan/list";
}
@RequestMapping("info")
public String info(HttpServletRequest request,
HttpServletResponse response,Integer id,Model model){
if(null!=id){
Hbplan hbplan = hbplanService.selectByPrimaryKey(id);
model.addAttribute("hbplan", hbplan);
HbplanDetail hbplanDetail = new HbplanDetail();
hbplanDetail.setHbplanid(id);
hbplanDetail.setType("1");
List<HbplanDetail> firstdetailList = hbplanDetailService.selectHbplanDetailList(hbplanDetail);
model.addAttribute("firstdetailList", firstdetailList);
HbplanDetail hbplanDetail2 = new HbplanDetail();
hbplanDetail2.setHbplanid(id);
hbplanDetail2.setType("2");
List<HbplanDetail> seconddetailList = hbplanDetailService.selectHbplanDetailList(hbplanDetail2);
model.addAttribute("seconddetailList", seconddetailList);
}
return "hbplan/info";
}
/**
* 添加 插入
* @param request
* @param response
* @param outteam
* @param model
* @return
*/
/*@RequestMapping("save")
public String save(HttpServletRequest request,
HttpServletResponse response,Hbplan hbplan,Model model){
hbplanService.addDetail(hbplan);
return "redirect:/hbplan/list";
}*/
@RequestMapping("save")
@ResponseBody
public String save(HttpServletRequest request,
HttpServletResponse response,Hbplan hbplan,Model model){
hbplan.setCreatetime(new Date());
if(hbplan.getId()==null){
hbplanService.insertSelective(hbplan);
String retu = hbplan.getId().toString();
return retu;
}else{
hbplanService.updateByPrimaryKeySelective(hbplan);
return hbplan.getId().toString();
}
}
/**
* 跳转到新增页面
* @return
*/
@RequestMapping("goadd")
public String goadd(HttpServletRequest request,
HttpServletResponse response,Integer id,Model model){
if(null!=id){
Hbplan hbplan = hbplanService.selectByPrimaryKey(id);
model.addAttribute("hbplan", hbplan);
HbplanDetail hbplanDetail = new HbplanDetail();
hbplanDetail.setHbplanid(id);
hbplanDetail.setType("1");
List<HbplanDetail> firstdetailList = hbplanDetailService.selectHbplanDetailList(hbplanDetail);
model.addAttribute("firstdetailList", firstdetailList);
HbplanDetail hbplanDetail2 = new HbplanDetail();
hbplanDetail2.setHbplanid(id);
hbplanDetail2.setType("2");
List<HbplanDetail> seconddetailList = hbplanDetailService.selectHbplanDetailList(hbplanDetail2);
model.addAttribute("seconddetailList", seconddetailList);
}
return "hbplan/addOrEdit";
}
@RequestMapping("delHbplanDetail")
@ResponseBody
public String delHbplanDetail(HttpServletRequest request,
HttpServletResponse response,HbplanDetail hbplanDetail,Model model){
hbplanDetailService.deleteByHbplanDetail(hbplanDetail);//根据航班planid 先删除之前的配置
return "success";
}
/**
* 华北预案添加修改页面ajax添加单位
*
* @param request
* @param response
* @param hbplanDetail
* @param model
* @return
*/
@RequestMapping("addHbplanDetail")
@ResponseBody
public String addHbplanDetail(HttpServletRequest request,
HttpServletResponse response,HbplanDetail hbplanDetail,Model model){
//System.out.println(hbplanDetail.getHbplanid());
Company company = companyService.selectByPrimaryKey(hbplanDetail.getCid());
hbplanDetail.setCompany(company.getProvince());
hbplanDetail.setState("1");
hbplanDetail.setCreatetime(new Date());
hbplanDetailService.insertSelective(hbplanDetail);//
return "success";
}
}
|
[
"271652260@qq.com"
] |
271652260@qq.com
|
26b1f38212ef27f8e2f0cc68f3b40a54237e930d
|
1eda12d3bb5ff72eec6fb3b921e84e7a2dedbd41
|
/java110-bean/src/main/java/com/java110/dto/workflow/WorkflowAuditInfoDto.java
|
b8c74dc3d1f5414910e40830f438901e2bf4912d
|
[
"Apache-2.0"
] |
permissive
|
mengxiangtong/MicroCommunity
|
d906734690b743b820869b52e6b0fcb1eee35877
|
7d77e118cd2746bb1e3036ccebfc96dea9bd26d7
|
refs/heads/master
| 2022-11-06T18:36:51.247615
| 2020-06-27T12:29:38
| 2020-06-27T12:29:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,393
|
java
|
package com.java110.dto.workflow;
import java.io.Serializable;
/**
* @ClassName WorkflowAuditInfoDto
* @Description TODO
* @Author wuxw
* @Date 2020/6/21 22:10
* @Version 1.0
* add by wuxw 2020/6/21
**/
public class WorkflowAuditInfoDto implements Serializable {
private String businessKey;
private String auditName;
private String auditTime;
private String duration;
private String userId;
private String message;
public String getBusinessKey() {
return businessKey;
}
public void setBusinessKey(String businessKey) {
this.businessKey = businessKey;
}
public String getAuditName() {
return auditName;
}
public void setAuditName(String auditName) {
this.auditName = auditName;
}
public String getAuditTime() {
return auditTime;
}
public void setAuditTime(String auditTime) {
this.auditTime = auditTime;
}
public String getDuration() {
return duration;
}
public void setDuration(String duration) {
this.duration = duration;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
|
[
"928255095@qq.com"
] |
928255095@qq.com
|
6ffed66a22ec1f155e70a48528de20ddc47b1b68
|
4de66c464d0fd16801c099805f35a01f3c28be4d
|
/permutation/10972.java
|
5213d7ddb92222415544e0171f95fdaaa25bcd91
|
[] |
no_license
|
wlsgussla123/Algorithms
|
9ec745dea4e45dbc21fff28119e923b3bedf0b5f
|
f7fe0c2509dcb852182dd1f8a673991362f6d174
|
refs/heads/master
| 2021-01-23T09:35:23.721109
| 2020-11-15T06:36:49
| 2020-11-15T06:36:49
| 102,583,416
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,015
|
java
|
package algo;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
new Solution().run();
}
static class Solution {
private int[] arr;
private int N;
private BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private StringTokenizer st = null;
private StringTokenizer getStringTokenizer() throws IOException {
return new StringTokenizer(br.readLine(), " ");
}
private void input() throws IOException {
st = getStringTokenizer();
N = Integer.parseInt(st.nextToken());
arr = new int[N];
st = getStringTokenizer();
for(int i=0; i<N; i++) {
arr[i] = Integer.parseInt(st.nextToken());
}
}
private void swap(int[] arr, int p, int q) {
int temp = arr[p];
arr[p] = arr[q];
arr[q] = temp;
}
private boolean nextPermutation(int[] arr) {
if(arr == null || arr.length < 2) {
return false;
}
int i = arr.length - 1;
while(i > 0 && arr[i - 1] >= arr[i]) {
i--;
}
if(i <= 0) {
return false;
}
int j = arr.length - 1;
while(arr[j] <= arr[i - 1]) {
j--;
}
swap(arr, i - 1 , j);
reverse(arr, i, arr.length - 1);
return true;
}
private void reverse(int[] arr, int left, int right) {
while(left < right) {
swap(arr, left, right);
left++;
right--;
}
}
private void print(int[] arr) {
for(Integer num : arr) {
System.out.print(num + " ");
}
System.out.println();
}
public void run() throws IOException {
input();
if(nextPermutation(arr)) {
print(arr);
} else {
System.out.println("-1");
}
close();
}
private void close() throws IOException {
bw.close();
br.close();
}
}
}
|
[
"wlsgussla123@gmail.com"
] |
wlsgussla123@gmail.com
|
d8334637de03c57ceed5b9240d8e48caf1cffad1
|
f62d998a6fc87c84227be8eb81e4bf14b2e196e8
|
/流程/comp/Attr/visitBinary.java
|
9ab1cbfd541ccb3aee249db5e50ec934a22f69d8
|
[] |
no_license
|
cylee0909/Javac-Research
|
14121f13e7189a141747009a5f1e08a2195c994e
|
3b767454d837e01593a68ec281ea68caec8a8c74
|
refs/heads/master
| 2021-01-21T00:59:27.787365
| 2016-07-01T11:16:53
| 2016-07-01T11:16:53
| 61,563,719
| 3
| 3
| null | 2016-06-20T16:39:29
| 2016-06-20T16:39:23
| null |
UTF-8
|
Java
| false
| false
| 2,334
|
java
|
public void visitBinary(JCBinary tree) {
DEBUG.P(this,"visitBinary(1)");
// Attribute arguments.
Type left = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.lhs, env));
Type right = chk.checkNonVoid(tree.lhs.pos(), attribExpr(tree.rhs, env));
// Find operator.
Symbol operator = tree.operator =
rs.resolveBinaryOperator(tree.pos(), tree.tag, env, left, right);
Type owntype = syms.errType;
if (operator.kind == MTH) {
owntype = operator.type.getReturnType();
int opc = chk.checkOperator(tree.lhs.pos(),
(OperatorSymbol)operator,
tree.tag,
left,
right);
// If both arguments are constants, fold them.
if (left.constValue() != null && right.constValue() != null) {
Type ctype = cfolder.fold2(opc, left, right);
if (ctype != null) {
owntype = cfolder.coerce(ctype, owntype);
// Remove constant types from arguments to
// conserve space. The parser will fold concatenations
// of string literals; the code here also
// gets rid of intermediate results when some of the
// operands are constant identifiers.
if (tree.lhs.type.tsym == syms.stringType.tsym) {
tree.lhs.type = syms.stringType;
}
if (tree.rhs.type.tsym == syms.stringType.tsym) {
tree.rhs.type = syms.stringType;
}
}
}
// Check that argument types of a reference ==, != are
// castable to each other, (JLS???).
if ((opc == ByteCodes.if_acmpeq || opc == ByteCodes.if_acmpne)) {
if (!types.isCastable(left, right, new Warner(tree.pos()))) {
log.error(tree.pos(), "incomparable.types", left, right);
}
}
chk.checkDivZero(tree.rhs.pos(), operator, right);
}
result = check(tree, owntype, VAL, pkind, pt);
DEBUG.P(0,this,"visitBinary(1)");
}
|
[
"zhh200910@gmail.com"
] |
zhh200910@gmail.com
|
250bea776b2e71afaeac312d30eb2119f8def0d0
|
3636877ff47aaeb2d55491382513164ae1ca87e5
|
/src/test/java/org/killbill/billing/plugin/api/TestPluginProperties.java
|
2f4173769f8fbc3fa55e6ad740bb80cfa46624b9
|
[] |
no_license
|
Cloudxtreme/killbill-plugin-framework-java
|
5d4d5533e7db904772889c50d25bc3f88a06d848
|
6d328f95df259977a47c7fb2bfb399a078067b04
|
refs/heads/master
| 2021-05-31T12:25:11.343782
| 2016-01-27T19:23:35
| 2016-01-27T19:23:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,206
|
java
|
/*
* Copyright 2015 Groupon, Inc
* Copyright 2015 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.killbill.billing.plugin.api;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import org.killbill.billing.payment.api.PluginProperty;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Ordering;
public class TestPluginProperties {
private final List<PluginProperty> pluginProperties1 = PluginProperties.buildPluginProperties(ImmutableMap.of("foo", "bar",
"baz", 12L));
private final List<PluginProperty> pluginProperties2 = PluginProperties.buildPluginProperties(ImmutableMap.of("foo", "override",
"baz2", "something else"));
@Test(groups = "fast")
public void testMerge() throws Exception {
final List<PluginProperty> pluginPropertiesRaw = ImmutableList.<PluginProperty>copyOf(PluginProperties.merge(pluginProperties1, pluginProperties2));
final List<PluginProperty> pluginProperties = sort(pluginPropertiesRaw);
Assert.assertEquals(pluginProperties.size(), 3);
Assert.assertEquals(pluginProperties.get(0).getKey(), "baz");
Assert.assertEquals(pluginProperties.get(0).getValue(), (Long) 12L);
Assert.assertFalse(pluginProperties.get(0).getIsUpdatable());
Assert.assertEquals(pluginProperties.get(1).getKey(), "baz2");
Assert.assertEquals(pluginProperties.get(1).getValue(), "something else");
Assert.assertFalse(pluginProperties.get(1).getIsUpdatable());
Assert.assertEquals(pluginProperties.get(2).getKey(), "foo");
Assert.assertEquals(pluginProperties.get(2).getValue(), "override");
Assert.assertFalse(pluginProperties.get(2).getIsUpdatable());
}
@Test(groups = "fast")
public void testToMap() throws Exception {
final Map<String, Object> properties = PluginProperties.toMap(pluginProperties1, pluginProperties2);
Assert.assertEquals(properties.get("baz"), (Long) 12L);
Assert.assertEquals(properties.get("baz2"), "something else");
Assert.assertEquals(properties.get("foo"), "override");
}
@Test(groups = "fast")
public void testToStringMap() throws Exception {
final Map<String, String> properties = PluginProperties.toStringMap(pluginProperties1, pluginProperties2);
Assert.assertEquals(properties.get("baz"), "12");
Assert.assertEquals(properties.get("baz2"), "something else");
Assert.assertEquals(properties.get("foo"), "override");
}
@Test(groups = "fast")
public void testGetValue() throws Exception {
Assert.assertEquals(PluginProperties.getValue("baz", "NO", pluginProperties1), "12");
Assert.assertEquals(PluginProperties.getValue("foo", "NO", pluginProperties1), "bar");
Assert.assertEquals(PluginProperties.getValue("baz2", "YES", pluginProperties1), "YES");
}
@Test(groups = "fast")
public void testFindPluginPropertyValue() throws Exception {
Assert.assertEquals(PluginProperties.findPluginPropertyValue("baz", pluginProperties1), "12");
Assert.assertEquals(PluginProperties.findPluginPropertyValue("foo", pluginProperties1), "bar");
Assert.assertNull(PluginProperties.findPluginPropertyValue("baz2", pluginProperties1));
}
@Test(groups = "fast")
public void testFindPluginPropertiesUsingString() throws Exception {
Assert.assertTrue(PluginProperties.findPluginProperties("baz", pluginProperties1).iterator().hasNext());
Assert.assertFalse(PluginProperties.findPluginProperties("baz2", pluginProperties1).iterator().hasNext());
}
@Test(groups = "fast")
public void testFindPluginPropertiesUsingPattern() throws Exception {
Assert.assertTrue(PluginProperties.findPluginProperties(Pattern.compile("^b.z$"), pluginProperties1).iterator().hasNext());
Assert.assertFalse(PluginProperties.findPluginProperties(Pattern.compile("^b.{2}2$"), pluginProperties1).iterator().hasNext());
Assert.assertTrue(PluginProperties.findPluginProperties(Pattern.compile("^b.{2}2$"), pluginProperties2).iterator().hasNext());
}
@Test(groups = "fast")
public void testBuildPluginProperties() throws Exception {
Assert.assertEquals(pluginProperties1.size(), 2);
Assert.assertEquals(pluginProperties1.get(0).getKey(), "foo");
Assert.assertEquals(pluginProperties1.get(0).getValue(), "bar");
Assert.assertFalse(pluginProperties1.get(0).getIsUpdatable());
Assert.assertEquals(pluginProperties1.get(1).getKey(), "baz");
Assert.assertEquals(pluginProperties1.get(1).getValue(), (Long) 12L);
Assert.assertFalse(pluginProperties1.get(1).getIsUpdatable());
}
private List<PluginProperty> sort(final Iterable<PluginProperty> pluginProperties) {
return Ordering.natural()
.onResultOf(new Function<PluginProperty, String>() {
@Override
public String apply(final PluginProperty pluginProperty) {
return pluginProperty.getKey();
}
})
.immutableSortedCopy(pluginProperties);
}
}
|
[
"pierre@mouraf.org"
] |
pierre@mouraf.org
|
fd25abf0c57d114767bdac61bf74430acc015ca7
|
10186b7d128e5e61f6baf491e0947db76b0dadbc
|
/org/apache/batik/anim/dom/SVGLocatableSupport.java
|
c47091c9530f1d868c459b54470e8cabb0433264
|
[
"SMLNJ",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] |
permissive
|
MewX/contendo-viewer-v1.6.3
|
7aa1021e8290378315a480ede6640fd1ef5fdfd7
|
69fba3cea4f9a43e48f43148774cfa61b388e7de
|
refs/heads/main
| 2022-07-30T04:51:40.637912
| 2021-03-28T05:06:26
| 2021-03-28T05:06:26
| 351,630,911
| 2
| 0
|
Apache-2.0
| 2021-10-12T22:24:53
| 2021-03-26T01:53:24
|
Java
|
UTF-8
|
Java
| false
| false
| 6,358
|
java
|
/* */ package org.apache.batik.anim.dom;
/* */
/* */ import java.awt.geom.AffineTransform;
/* */ import java.awt.geom.NoninvertibleTransformException;
/* */ import org.apache.batik.css.engine.CSSStylableElement;
/* */ import org.apache.batik.css.engine.SVGCSSEngine;
/* */ import org.apache.batik.dom.svg.AbstractSVGMatrix;
/* */ import org.apache.batik.dom.svg.SVGContext;
/* */ import org.w3c.dom.DOMException;
/* */ import org.w3c.dom.Element;
/* */ import org.w3c.dom.svg.SVGElement;
/* */ import org.w3c.dom.svg.SVGException;
/* */ import org.w3c.dom.svg.SVGMatrix;
/* */ import org.w3c.dom.svg.SVGRect;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class SVGLocatableSupport
/* */ {
/* */ public static SVGElement getNearestViewportElement(Element e) {
/* */ CSSStylableElement cSSStylableElement;
/* 55 */ Element elt = e;
/* 56 */ while (elt != null) {
/* 57 */ cSSStylableElement = SVGCSSEngine.getParentCSSStylableElement(elt);
/* 58 */ if (cSSStylableElement instanceof org.w3c.dom.svg.SVGFitToViewBox) {
/* */ break;
/* */ }
/* */ }
/* 62 */ return (SVGElement)cSSStylableElement;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static SVGElement getFarthestViewportElement(Element elt) {
/* 70 */ Element rootSVG = elt.getOwnerDocument().getDocumentElement();
/* 71 */ if (elt == rootSVG) {
/* 72 */ return null;
/* */ }
/* 74 */ return (SVGElement)rootSVG;
/* */ }
/* */
/* */
/* */
/* */
/* */ public static SVGRect getBBox(Element elt) {
/* 81 */ final SVGOMElement svgelt = (SVGOMElement)elt;
/* 82 */ SVGContext svgctx = svgelt.getSVGContext();
/* 83 */ if (svgctx == null) return null;
/* 84 */ if (svgctx.getBBox() == null) return null;
/* */
/* 86 */ return new SVGRect() {
/* */ public float getX() {
/* 88 */ return (float)svgelt.getSVGContext().getBBox().getX();
/* */ }
/* */ public void setX(float x) throws DOMException {
/* 91 */ throw svgelt.createDOMException((short)7, "readonly.rect", null);
/* */ }
/* */
/* */
/* */ public float getY() {
/* 96 */ return (float)svgelt.getSVGContext().getBBox().getY();
/* */ }
/* */ public void setY(float y) throws DOMException {
/* 99 */ throw svgelt.createDOMException((short)7, "readonly.rect", null);
/* */ }
/* */
/* */
/* */ public float getWidth() {
/* 104 */ return (float)svgelt.getSVGContext().getBBox().getWidth();
/* */ }
/* */ public void setWidth(float width) throws DOMException {
/* 107 */ throw svgelt.createDOMException((short)7, "readonly.rect", null);
/* */ }
/* */
/* */
/* */ public float getHeight() {
/* 112 */ return (float)svgelt.getSVGContext().getBBox().getHeight();
/* */ }
/* */ public void setHeight(float height) throws DOMException {
/* 115 */ throw svgelt.createDOMException((short)7, "readonly.rect", null);
/* */ }
/* */ };
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static SVGMatrix getCTM(Element elt) {
/* 126 */ final SVGOMElement svgelt = (SVGOMElement)elt;
/* 127 */ return (SVGMatrix)new AbstractSVGMatrix() {
/* */ protected AffineTransform getAffineTransform() {
/* 129 */ return svgelt.getSVGContext().getCTM();
/* */ }
/* */ };
/* */ }
/* */
/* */
/* */
/* */
/* */ public static SVGMatrix getScreenCTM(Element elt) {
/* 138 */ final SVGOMElement svgelt = (SVGOMElement)elt;
/* 139 */ return (SVGMatrix)new AbstractSVGMatrix() {
/* */ protected AffineTransform getAffineTransform() {
/* 141 */ SVGContext context = svgelt.getSVGContext();
/* 142 */ AffineTransform ret = context.getGlobalTransform();
/* 143 */ AffineTransform scrnTrans = context.getScreenTransform();
/* 144 */ if (scrnTrans != null)
/* 145 */ ret.preConcatenate(scrnTrans);
/* 146 */ return ret;
/* */ }
/* */ };
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static SVGMatrix getTransformToElement(Element elt, SVGElement element) throws SVGException {
/* 158 */ final SVGOMElement currentElt = (SVGOMElement)elt;
/* 159 */ final SVGOMElement targetElt = (SVGOMElement)element;
/* 160 */ return (SVGMatrix)new AbstractSVGMatrix() {
/* */ protected AffineTransform getAffineTransform() {
/* 162 */ AffineTransform cat = currentElt.getSVGContext().getGlobalTransform();
/* */
/* 164 */ if (cat == null) {
/* 165 */ cat = new AffineTransform();
/* */ }
/* 167 */ AffineTransform tat = targetElt.getSVGContext().getGlobalTransform();
/* */
/* 169 */ if (tat == null) {
/* 170 */ tat = new AffineTransform();
/* */ }
/* 172 */ AffineTransform at = new AffineTransform(cat);
/* */ try {
/* 174 */ at.preConcatenate(tat.createInverse());
/* 175 */ return at;
/* 176 */ } catch (NoninvertibleTransformException ex) {
/* 177 */ throw currentElt.createSVGException((short)2, "noninvertiblematrix", null);
/* */ }
/* */ }
/* */ };
/* */ }
/* */ }
/* Location: /mnt/r/ConTenDoViewer.jar!/org/apache/batik/anim/dom/SVGLocatableSupport.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
[
"xiayuanzhong+gpg2020@gmail.com"
] |
xiayuanzhong+gpg2020@gmail.com
|
a6dc3d5acadc54cdc8393309e9ceca0e55fc90c3
|
6073d6c74d4fe2c2cbce4ae41228a72bc0f72881
|
/src/java/com/ambow/trainingengine/policy/web/action/NodeGroupPolicyAction.java
|
9c8e9fbf1f84f9ab3a6b3092c7d03204cf3ea701
|
[] |
no_license
|
buttonwang/etep
|
dbccf09aad77e316d2386f27a75abb77f44e9a41
|
813746b595be3bf83aaba0d3ed82282b2f169800
|
refs/heads/master
| 2021-01-18T19:36:51.936410
| 2014-05-16T12:06:43
| 2014-05-16T12:06:43
| 86,903,026
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,025
|
java
|
package com.ambow.trainingengine.policy.web.action;
import static com.ambow.trainingengine.studyflow.web.util.CommonActionReturnType.NOID;
import static com.ambow.trainingengine.studyflow.web.util.CommonActionReturnType.NOTFOUND;
import static com.ambow.trainingengine.studyflow.web.util.CommonActionReturnType.NOOPTTYPE;
import java.util.List;
import java.util.Map;
import com.ambow.core.dao.support.Page;
import com.ambow.trainingengine.policy.domain.*;
import com.ambow.trainingengine.policy.service.*;
import com.ambow.trainingengine.web.action.WebBaseAction;
public class NodeGroupPolicyAction extends WebBaseAction {
private static final long serialVersionUID = 1686477134758816461L;
public String defaultRtype="show";
public static final String dojo="node_group_policy";
public static final String actionName="nodeGroupPolicy";
public NodeGroupPolicyService nodeGroupPolicyService;
/**action type 请求的操作*/
public String atype;
//输出用
public Long id;
public String ids;
public int pageNo;
public NodeGroupPolicy nodeGroupPolicy;//也可能用于显示
//以下用于显示数据
public Map viewMap;
public List all;
public Page page;
//显示错误消息用
public List errorList;
/**action Return type*/
public String rtype;
/**
* 替除不允许修改的字段,防止用户非法不允许修改的字段
* @param test
* @return
*/
private NodeGroupPolicy removeTestCanotModifyAttr(NodeGroupPolicy nodeGroupPolicy){
//NodeGroupPolicy nodeGroupPolicy =new NodeGroupPolicy();
return nodeGroupPolicy;
}
private void setReturnType(Map viewMap){
if(viewMap ==null||viewMap.size()==0){
if(id==null){
rtype=NOID;
}
rtype=NOTFOUND;
}
}
public String execute(){
if(atype==null||atype.trim().equals("")){
atype=defaultRtype;
}
rtype=atype;
if("show".equals(atype)){
viewMap = nodeGroupPolicyService.showViewMap(id);
setRequestAttribute("v", viewMap);
setRequestAttribute("nodeGroupPolicy", viewMap.get("NodeGroupPolicy"));
setReturnType(viewMap);
}else if("edit".equals(atype)){
viewMap = nodeGroupPolicyService.editViewMap(id);
setRequestAttribute("v", viewMap);
setRequestAttribute("nodeGroupPolicy", viewMap.get("NodeGroupPolicy"));
setReturnType(viewMap);
}else if("add".equals(atype)){
//removeNodeGroupPolicyCanotModifyAttr(NodeGroupPolicy nodeGroupPolicy);
errorList = nodeGroupPolicyService.add(nodeGroupPolicy);
}else if("update".equals(atype)||"iupdate".equals(atype)||"iupdateNodeGroup".equals(atype)){
nodeGroupPolicyService.update(nodeGroupPolicy);
}else if("list".equals(atype)){
page = nodeGroupPolicyService.listByPage(pageNo);
setRequestAttribute("page",page);//
}else if("listAll".equals(atype)){
all = nodeGroupPolicyService.getAll();
setRequestAttribute("all", all);//
}else if("delete".equals(atype)||"showNodedelete".equals(atype)){
errorList = nodeGroupPolicyService.delete(id);
}else if("deleteBatch".equals(atype)){
setRequestAttribute("ids",ids);
errorList = nodeGroupPolicyService.deleteBatch(ids);
}else{
rtype=NOOPTTYPE;
}
if(errorList!=null&&errorList.size()>0){
rtype=rtype+ERROR;
}
setRequestAttribute("errorList", errorList);
setRequestAttribute("atype",atype);
setRequestAttribute("rtype",rtype);
return rtype;
}
public String getDefaultRtype() {
return defaultRtype;
}
public void setDefaultRtype(String defaultRtype) {
this.defaultRtype = defaultRtype;
}
public NodeGroupPolicyService getNodeGroupPolicyService() {
return nodeGroupPolicyService;
}
public void setNodeGroupPolicyService(NodeGroupPolicyService nodeGroupPolicyService) {
this.nodeGroupPolicyService = nodeGroupPolicyService;
}
public String getAtype() {
return atype;
}
public void setAtype(String atype) {
this.atype = atype;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getIds() {
return ids;
}
public void setIds(String ids) {
this.ids = ids;
}
public int getPageNo() {
return pageNo;
}
public void setPageNo(int pageNo) {
this.pageNo = pageNo;
}
public NodeGroupPolicy getNodeGroupPolicy() {
return nodeGroupPolicy;
}
public void setNodeGroupPolicy(NodeGroupPolicy nodeGroupPolicy) {
this.nodeGroupPolicy = nodeGroupPolicy;
}
public Map getViewMap() {
return viewMap;
}
public void setViewMap(Map viewMap) {
this.viewMap = viewMap;
}
public List getAll() {
return all;
}
public void setAll(List all) {
this.all = all;
}
public Page getPage() {
return page;
}
public void setPage(Page page) {
this.page = page;
}
public List getErrorList() {
return errorList;
}
public void setErrorList(List errorList) {
this.errorList = errorList;
}
public String getRtype() {
return rtype;
}
public void setRtype(String rtype) {
this.rtype = rtype;
}
public static String getDojo() {
return dojo;
}
public static String getActionName() {
return actionName;
}
}
|
[
"buttonwang@gmail.com"
] |
buttonwang@gmail.com
|
4a7fe925e87b3f118e4f2a868906ba32098a3436
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_240ae727a2a05285316dc521613ed7ddcfd4dbb0/RestApiBaseTest/4_240ae727a2a05285316dc521613ed7ddcfd4dbb0_RestApiBaseTest_t.java
|
a41b684c5d2f125b09fb19a07cecae89882f91a3
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,955
|
java
|
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package uk.ac.jorum.integration;
import org.junit.Before;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.AfterClass;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.HttpClient;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.client.utils.URIUtils;
import java.net.URI;
import org.dspace.storage.rdbms.DatabaseManager;
import org.dspace.core.ConfigurationManager;
import org.dspace.browse.IndexBrowse;
import java.io.File;
import java.io.FileReader;
public abstract class RestApiBaseTest {
private static String apiHost = "localhost";
private static String apiMountPoint = "/dspace-rest";
private static String apiProtocol = "http";
private static int apiPort = 9090;
private HttpClient client;
@Before
public void ApiSetup() {
client = new DefaultHttpClient();
}
@After
public void ApiTeardown(){
client.getConnectionManager().shutdown();
}
protected String makeRequest(String endpoint) throws Exception {
return makeRequest(endpoint, "");
}
protected String makeRequest(String endpoint, String queryString) throws Exception {
URI uri = URIUtils.createURI(apiProtocol, apiHost, apiPort, apiMountPoint + endpoint, queryString, "");
HttpGet httpget = new HttpGet(uri);
httpget.addHeader("Accept", "application/json");
ResponseHandler<String> responseHandler = new BasicResponseHandler();
return client.execute(httpget, responseHandler);
}
protected int getResponseCode(String endpoint, String queryString) throws Exception{
URI uri = URIUtils.createURI(apiProtocol, apiHost, apiPort, apiMountPoint + endpoint, queryString, "");
HttpGet httpget = new HttpGet(uri);
httpget.addHeader("Accept", "application/json");
HttpResponse response = client.execute(httpget);
return response.getStatusLine().getStatusCode();
}
protected int getResponseCode(String endpoint) throws Exception{
return getResponseCode(endpoint, "");
}
protected static void loadDatabase(String filename) throws Exception {
ConfigurationManager.loadConfig("src/test/resources/config/dspace-integ-testrun.cfg");
System.out.println("Loading database file " + filename);
DatabaseManager.loadSql(new FileReader(new File(filename).getCanonicalPath()));
}
protected void loadFixture(String fixtureName) throws Exception {
loadDatabase("src/test/resources/setup/cleardb.sql");
loadDatabase("src/test/resources/fixtures/" + fixtureName + ".sql");
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
31f5f86d6d6ca3bab1fabbb2f953c9e37f5cc0d1
|
0ceafc2afe5981fd28ce0185e0170d4b6dbf6241
|
/AlgoKit (3rdp)/Code-store v1.0/yaal/archive/2012.04/2012.04.03 - CROC Championship Qualification Round/TaskD.java
|
912a5368a503cc8c7c2e4236192441f1dbe85134
|
[] |
no_license
|
brainail/.happy-coooding
|
1cd617f6525367133a598bee7efb9bf6275df68e
|
cc30c45c7c9b9164095905cc3922a91d54ecbd15
|
refs/heads/master
| 2021-06-09T02:54:36.259884
| 2021-04-16T22:35:24
| 2021-04-16T22:35:24
| 153,018,855
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 591
|
java
|
package net.egork;
import net.egork.utils.io.InputReader;
import net.egork.utils.io.OutputWriter;
public class TaskD {
public void solve(int testNumber, InputReader in, OutputWriter out) {
int start = in.readInt();
int numYears = in.readInt();
int[] maxSquare = new int[start + numYears];
for (int i = 1; i * i < maxSquare.length; i++) {
int delta = i * i;
for (int j = delta, k = 1; j < maxSquare.length; j += delta, k++)
maxSquare[j] = k;
}
long answer = 0;
for (int i = start; i < maxSquare.length; i++)
answer += maxSquare[i];
out.printLine(answer);
}
}
|
[
"wsemirz@gmail.com"
] |
wsemirz@gmail.com
|
3d543f27d3fe4278d7c1fc46637f290705429865
|
f40c5613a833bc38fca6676bad8f681200cffb25
|
/kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/ServiceAccount.java
|
e88f1bd0a0df52fdbded96de72abbb3753c614e4
|
[
"Apache-2.0"
] |
permissive
|
rohanKanojia/kubernetes-client
|
2d599e4ed1beedf603c79d28f49203fbce1fc8b2
|
502a14c166dce9ec07cf6adb114e9e36053baece
|
refs/heads/master
| 2023-07-25T18:31:33.982683
| 2022-04-12T13:39:06
| 2022-04-13T05:12:38
| 106,398,990
| 2
| 3
|
Apache-2.0
| 2023-04-28T16:21:03
| 2017-10-10T09:50:25
|
Java
|
UTF-8
|
Java
| false
| false
| 5,343
|
java
|
package io.fabric8.kubernetes.api.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.model.annotation.Group;
import io.fabric8.kubernetes.model.annotation.Version;
import io.sundr.builder.annotations.Buildable;
import io.sundr.transform.annotations.TemplateTransformation;
import io.sundr.transform.annotations.TemplateTransformations;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"automountServiceAccountToken",
"imagePullSecrets",
"secrets"
})
@ToString
@EqualsAndHashCode
@Setter
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = true, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder")
@Version("v1")
@Group("")
@TemplateTransformations({
@TemplateTransformation(value = "/manifest.vm", outputPath = "core.properties", gather = true)
})
public class ServiceAccount implements HasMetadata, Namespaced
{
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
private String apiVersion = "v1";
@JsonProperty("automountServiceAccountToken")
private Boolean automountServiceAccountToken;
@JsonProperty("imagePullSecrets")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<LocalObjectReference> imagePullSecrets = new ArrayList<LocalObjectReference>();
/**
*
* (Required)
*
*/
@JsonProperty("kind")
private String kind = "ServiceAccount";
@JsonProperty("metadata")
private ObjectMeta metadata;
@JsonProperty("secrets")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ObjectReference> secrets = new ArrayList<ObjectReference>();
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
/**
* No args constructor for use in serialization
*
*/
public ServiceAccount() {
}
/**
*
* @param metadata
* @param apiVersion
* @param automountServiceAccountToken
* @param kind
* @param imagePullSecrets
* @param secrets
*/
public ServiceAccount(String apiVersion, Boolean automountServiceAccountToken, List<LocalObjectReference> imagePullSecrets, String kind, ObjectMeta metadata, List<ObjectReference> secrets) {
super();
this.apiVersion = apiVersion;
this.automountServiceAccountToken = automountServiceAccountToken;
this.imagePullSecrets = imagePullSecrets;
this.kind = kind;
this.metadata = metadata;
this.secrets = secrets;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
@JsonProperty("automountServiceAccountToken")
public Boolean getAutomountServiceAccountToken() {
return automountServiceAccountToken;
}
@JsonProperty("automountServiceAccountToken")
public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken) {
this.automountServiceAccountToken = automountServiceAccountToken;
}
@JsonProperty("imagePullSecrets")
public List<LocalObjectReference> getImagePullSecrets() {
return imagePullSecrets;
}
@JsonProperty("imagePullSecrets")
public void setImagePullSecrets(List<LocalObjectReference> imagePullSecrets) {
this.imagePullSecrets = imagePullSecrets;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}
@JsonProperty("secrets")
public List<ObjectReference> getSecrets() {
return secrets;
}
@JsonProperty("secrets")
public void setSecrets(List<ObjectReference> secrets) {
this.secrets = secrets;
}
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
|
[
"marc@marcnuri.com"
] |
marc@marcnuri.com
|
019dfdfc94e875a3ee2f6c9e72d849980c74e264
|
6140f3f0ff9c53b85a8454436f401234389e8018
|
/3.24-Censoring/src/CTrieFinal3.java
|
2d1cd4e798f3c5e8f0160dec341ec84b4c7d7096
|
[] |
no_license
|
sarahlc888/USACO-2018-Season
|
04aadc2269b3eb3e9e8a588b722ef992ec810d6b
|
23b6b3c60b023d99d10ac1c7b93a592557c86f7d
|
refs/heads/master
| 2021-06-30T04:10:14.728915
| 2019-03-13T01:58:12
| 2019-03-13T01:58:12
| 136,196,626
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,692
|
java
|
import java.io.*;
import java.util.*;
/*
* USACO 2015 February Contest, Gold
* Problem 2. Censoring (Gold)
* 8/23
*
* Aho-Corasick algo
*
* copied off of the answer
* 15/15!!!! got rid of sublist(), used a pointer to the "end" of list instead
*/
public class CTrieFinal3 {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new FileReader("censor.in"));
String S = br.readLine(); // string
int N = Integer.parseInt(br.readLine()); // num censored words
String[] C = new String[N]; // list of words
for (int i = 0; i < N; i++) {
C[i] = br.readLine();
}
br.close();
Arrays.sort(C, (a, b) -> Integer.compare(a.length(), b.length()));
// Trie
Node root = new Node(); // root of the trie
ArrayList<Node> trie = new ArrayList<Node>(); // keep track of end of C[i] so far
for (int i = 0; i < N; i++) { // start everything at the root
trie.add(root);
}
int j = 0; // index in C (goes up with size)
for (int i = 0; j < C.length; i++) { // loop through chars
for (int k = j; k < N; k++) { // loop through words
String word = C[k];
if (i >= word.length()) continue; // catch oob
char ch = C[k].charAt(i);
int chval = ch-'a';
// System.out.println("word: " + word + " ind: " + i + " char: " + ch);
Node curnode = trie.get(k); // get end of the word so far
// if ch does not exist in trie, initialize
if (curnode.next[chval] == null) {
// System.out.println(" init");
curnode.next[chval] = new Node();
}
curnode.next[chval].suff = curnode.suff; // transfer suff to the next node (temporary, will update)
curnode = curnode.next[chval]; // move to the proper node
// identify proper suff
while (curnode.suff != null && curnode.suff.next[chval] == null) {
// while current node has suffix
// while the suff doesn't have the chval as a child
// move up to the next suff
curnode.suff = curnode.suff.suff;
}
if (curnode.suff != null) { // if a suffix is found, update it to include ch
curnode.suff = curnode.suff.next[chval];
} else { // if no suffix, make it the root
curnode.suff = root;
}
curnode.c = ch;
trie.set(k, curnode); // update end of the word so far
}
while (j < C.length && i == C[j].length()-1) {
// while j is in range and while i is the last index of C[j]
trie.get(j).ind = j; // mark it as a completed word
j++;
}
}
// go through string S
List<Character> ret = new ArrayList<Character>();
List<Node> trie2 = new ArrayList<Node>();
trie2.add(root);
int sizeRet = 0;
int sizeTrie2 = 1;
for (int i = 0; i < S.length(); i++) {
char ch = S.charAt(i);
int chval = ch-'a';
Node n = trie2.get(sizeTrie2-1).step(chval); // look for chval off of the last node n
if (sizeRet < ret.size()) {
ret.set(sizeRet, ch);
} else {
ret.add(ch);
}
if (sizeTrie2 < trie2.size()) {
trie2.set(sizeTrie2, n);
} else {
trie2.add(n);
}
sizeRet++;
sizeTrie2++;
// System.out.println("i: " + i + " ch: " + ch);
if (n.ind != -1) {
// if this is the end of a word
// System.out.println(" END of word " + C[n.ind]);
// ret = ret.subList(0, sizeRet-C[n.ind].length());
sizeRet = sizeRet-C[n.ind].length();
// System.out.println(" ret: " + ret);
// trie2 = trie2.subList(0, sizeRet+1);
sizeTrie2 = sizeRet + 1;
// System.out.println(" trie size: " + trie2.size());
}
}
// System.out.println(ret);
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("censor.out")));
for (int i = 0; i < sizeRet; i++) {
pw.print(ret.get(i));
// System.out.print(ret.get(i));
}
pw.println();
pw.close();
}
public static class Node { // node in the trie
char c;
int ind = -1; // index in C
Node[] next; // children
Node suff; // "fall" in the solution
public Node() {
next = new Node[26]; // 26 child characters
}
public Node step(int ch) {
// proceed from cur node to character 'ch'
// System.out.println(" find char: " + ch + " from char: " + c);
if (next[ch] != null) { // if ch is already present
// System.out.println(" present");
return next[ch];
} else if (suff != null) { // if there is suff, go to suff
// System.out.println(" to suff " + suff.c);
return next[ch] = suff.step(ch);
// CACHE THE RESULT!
} else { // NO CH ANYWHERE
// System.out.println(" absent");
return this;
}
}
// public String toString() {
// return "ind: " + ind + " suff: " + suff + " next: [" + Arrays.toString(next);
// }
}
}
|
[
"sarahlc888@gmail.com"
] |
sarahlc888@gmail.com
|
cdf6fa077bdd499c93e1cdd9410fdc2d5ae9ff15
|
3955f3bc4b1e9c41ffabb34fcdbfbfb3a8b2f77c
|
/bizcore/WEB-INF/youbenben_core_src/com/youbenben/youbenben/consumerorderpriceadjustment/ConsumerOrderPriceAdjustmentDAO.java
|
54698f7c73460d310c2636700e6fed0516cdaa33
|
[] |
no_license
|
1342190832/youbenben
|
c9ba34117b30988419d4d053a35960f35cd2c3f0
|
f68fb29f17ff4f74b0de071fe11bc9fb10fd8744
|
refs/heads/master
| 2022-04-25T10:17:48.674515
| 2020-04-25T14:22:40
| 2020-04-25T14:22:40
| 258,133,780
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,410
|
java
|
package com.youbenben.youbenben.consumerorderpriceadjustment;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import com.terapico.caf.baseelement.CandidateQuery;
import com.youbenben.youbenben.BaseDAO;
import com.youbenben.youbenben.BaseEntity;
import com.youbenben.youbenben.SmartList;
import com.youbenben.youbenben.MultipleAccessKey;
import com.youbenben.youbenben.YoubenbenUserContext;
import com.youbenben.youbenben.consumerorder.ConsumerOrder;
import com.youbenben.youbenben.consumerorder.ConsumerOrderDAO;
public interface ConsumerOrderPriceAdjustmentDAO extends BaseDAO{
public SmartList<ConsumerOrderPriceAdjustment> loadAll();
public ConsumerOrderPriceAdjustment load(String id, Map<String,Object> options) throws Exception;
public void enhanceList(List<ConsumerOrderPriceAdjustment> consumerOrderPriceAdjustmentList);
public void collectAndEnhance(BaseEntity ownerEntity);
public void alias(List<BaseEntity> entityList);
public ConsumerOrderPriceAdjustment present(ConsumerOrderPriceAdjustment consumerOrderPriceAdjustment,Map<String,Object> options) throws Exception;
public ConsumerOrderPriceAdjustment clone(String id, Map<String,Object> options) throws Exception;
public ConsumerOrderPriceAdjustment save(ConsumerOrderPriceAdjustment consumerOrderPriceAdjustment,Map<String,Object> options);
public SmartList<ConsumerOrderPriceAdjustment> saveConsumerOrderPriceAdjustmentList(SmartList<ConsumerOrderPriceAdjustment> consumerOrderPriceAdjustmentList,Map<String,Object> options);
public SmartList<ConsumerOrderPriceAdjustment> removeConsumerOrderPriceAdjustmentList(SmartList<ConsumerOrderPriceAdjustment> consumerOrderPriceAdjustmentList,Map<String,Object> options);
public SmartList<ConsumerOrderPriceAdjustment> findConsumerOrderPriceAdjustmentWithKey(MultipleAccessKey key,Map<String, Object> options);
public int countConsumerOrderPriceAdjustmentWithKey(MultipleAccessKey key,Map<String, Object> options);
public Map<String, Integer> countConsumerOrderPriceAdjustmentWithGroupKey(String groupKey, MultipleAccessKey filterKey,
Map<String, Object> options);
public void delete(String consumerOrderPriceAdjustmentId, int version) throws Exception;
public ConsumerOrderPriceAdjustment disconnectFromAll(String consumerOrderPriceAdjustmentId, int version) throws Exception;
public int deleteAll() throws Exception;
public SmartList<ConsumerOrderPriceAdjustment> queryList(String sql, Object ... parmeters);
public int count(String sql, Object ... parmeters);
public CandidateConsumerOrderPriceAdjustment executeCandidatesQuery(CandidateQuery query, String sql, Object ... parmeters) throws Exception ;
public SmartList<ConsumerOrderPriceAdjustment> findConsumerOrderPriceAdjustmentByBizOrder(String consumerOrderId, Map<String,Object> options);
public int countConsumerOrderPriceAdjustmentByBizOrder(String consumerOrderId, Map<String,Object> options);
public Map<String, Integer> countConsumerOrderPriceAdjustmentByBizOrderIds(String[] ids, Map<String,Object> options);
public SmartList<ConsumerOrderPriceAdjustment> findConsumerOrderPriceAdjustmentByBizOrder(String consumerOrderId, int start, int count, Map<String,Object> options);
public void analyzeConsumerOrderPriceAdjustmentByBizOrder(SmartList<ConsumerOrderPriceAdjustment> resultList, String consumerOrderId, Map<String,Object> options);
}
|
[
"1342190832@qq.com"
] |
1342190832@qq.com
|
afff4010fb04191121079786c55c5cd472125e02
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-110-28-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest_scaffolding.java
|
4474a0cc978da215899f73079147322b0d569eb1
|
[] |
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
| 453
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Apr 02 19:47:38 UTC 2020
*/
package org.xwiki.velocity.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultVelocityEngine_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
239913d0feb683e8379d142c536f0497ad595e4d
|
ca6cc030c12d64c50b075aa9f39564db0a5387a5
|
/src/main/java/oracle/jdbc/replay/driver/TxnReplayableOthers.java
|
d30fdc712a35c5abaf84fce71aa91965444ee266
|
[] |
no_license
|
chenqixu/ojdbc7
|
18296d1d880c583f987d2999fd53f8898f242db5
|
b80cae2e795d0a9b21758d5332bb387f4bd99ad3
|
refs/heads/master
| 2023-08-05T11:10:35.668072
| 2021-09-17T07:10:59
| 2021-09-17T07:10:59
| 407,438,833
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,609
|
java
|
package oracle.jdbc.replay.driver;
import java.lang.reflect.Method;
import java.sql.SQLException;
import java.sql.SQLInput;
import oracle.jdbc.proxy.annotation.GetCreator;
import oracle.jdbc.proxy.annotation.GetDelegate;
import oracle.jdbc.proxy.annotation.OnError;
import oracle.jdbc.proxy.annotation.Post;
import oracle.jdbc.proxy.annotation.Pre;
import oracle.jdbc.proxy.annotation.ProxyFor;
import oracle.jdbc.proxy.annotation.SetDelegate;
@ProxyFor({SQLInput.class})
public abstract class TxnReplayableOthers extends TxnReplayableBase implements JDBCReplayable {
private static final String _Copyright_2007_Oracle_All_Rights_Reserved_ = null;
public static final String BUILD_DATE = "Thu_Apr_04_15:09:24_PDT_2013";
@Pre
protected void preForAll(Method var1, Object var2, Object... var3) {
super.preForAll(var1, var2, var3);
}
@Post
protected void postForAll(Method var1) {
this.postForAll(var1, (Object)null);
}
@Post
protected Object postForAll(Method var1, Object var2) {
return super.postForAll(var1, var2);
}
@OnError(SQLException.class)
protected void onErrorVoidForAll(Method var1, SQLException var2) throws SQLException {
super.onErrorVoidForAll(var1, var2);
}
@OnError(SQLException.class)
protected Object onErrorForAll(Method var1, SQLException var2) throws SQLException {
return super.onErrorForAll(var1, var2);
}
@GetDelegate
protected abstract Object getDelegate();
@SetDelegate
protected abstract void setDelegate(Object var1);
@GetCreator
protected abstract Object getCreator();
}
|
[
"13509323824@139.com"
] |
13509323824@139.com
|
8afcb79792e924b0261c885d837103c3ee24d65f
|
8b2dc7787bb572567982c92332451e6cc523bfc4
|
/10_Polymorphism/src/com/poly/dynamicbinding/model/Cat.java
|
aebd0185d2a110c8e2e741e63219037387d566dd
|
[] |
no_license
|
newkayak12/newkayak_lecture
|
e9dc2427517b3eb78164b9cdb64bf7dcc69eaebd
|
066c5de9114ca318acfdea570355eebae6258e5f
|
refs/heads/master
| 2023-03-07T15:36:26.565159
| 2021-02-16T09:02:28
| 2021-02-16T09:02:28
| 318,845,621
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 560
|
java
|
package com.poly.dynamicbinding.model;
import com.poly.dynamicbinding.vo.Animal;
public class Cat extends Animal {
public Cat() {
super();
}
public Cat(String name, String category, int age, int legs) {
super(category, name, age, legs);
}
public String catGrowl() {
return "meow";
}
@Override
public String growl() {
return catGrowl();
}
@Override
public String toString() {
return "Cat [getCategory()=" + getCategory() + ", getName()=" + getName() + ", getAge()=" + getAge()
+ ", getLegs()=" + getLegs() + "]";
}
}
|
[
"newkayak12@gmail.com"
] |
newkayak12@gmail.com
|
b7f3f07ec4f04c08533d5c3914691304a18d8c49
|
e05071d575dd3ede69a8ff6a282d169f0574410a
|
/src/test/java/com/github/GBSEcom/model/RecurringPaymentDetailsTest.java
|
d8adc07e7940e0dc04e60cbc7fbf64e44957fdcc
|
[] |
no_license
|
GBSEcom/java
|
6c4f2c08f3d0ce5f6273060f34630b5c1d3a51ef
|
f934d68a050e001bdb22bdcce755727c9232f257
|
refs/heads/master
| 2022-05-26T10:20:17.355268
| 2021-11-19T21:53:38
| 2021-11-19T21:53:38
| 136,058,114
| 2
| 4
| null | 2022-05-20T20:53:03
| 2018-06-04T17:10:09
|
Java
|
UTF-8
|
Java
| false
| false
| 3,337
|
java
|
/*
* Payment Gateway API Specification.
* The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
*
* The version of the OpenAPI document: 21.5.0.20211029.001
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.github.GBSEcom.model;
import com.github.GBSEcom.model.Amount;
import com.github.GBSEcom.model.Frequency;
import com.github.GBSEcom.model.PaymentMethodDetails;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for RecurringPaymentDetails
*/
public class RecurringPaymentDetailsTest {
private final RecurringPaymentDetails model = new RecurringPaymentDetails();
/**
* Model tests for RecurringPaymentDetails
*/
@Test
public void testRecurringPaymentDetails() {
// TODO: test RecurringPaymentDetails
}
/**
* Test the property 'storeId'
*/
@Test
public void storeIdTest() {
// TODO: test storeId
}
/**
* Test the property 'purchaseOrderNumber'
*/
@Test
public void purchaseOrderNumberTest() {
// TODO: test purchaseOrderNumber
}
/**
* Test the property 'invoiceNumber'
*/
@Test
public void invoiceNumberTest() {
// TODO: test invoiceNumber
}
/**
* Test the property 'creationDate'
*/
@Test
public void creationDateTest() {
// TODO: test creationDate
}
/**
* Test the property 'startDate'
*/
@Test
public void startDateTest() {
// TODO: test startDate
}
/**
* Test the property 'nextAttemptDate'
*/
@Test
public void nextAttemptDateTest() {
// TODO: test nextAttemptDate
}
/**
* Test the property 'transactionAmount'
*/
@Test
public void transactionAmountTest() {
// TODO: test transactionAmount
}
/**
* Test the property 'paymentMethodDetails'
*/
@Test
public void paymentMethodDetailsTest() {
// TODO: test paymentMethodDetails
}
/**
* Test the property 'frequency'
*/
@Test
public void frequencyTest() {
// TODO: test frequency
}
/**
* Test the property 'numberOfPayments'
*/
@Test
public void numberOfPaymentsTest() {
// TODO: test numberOfPayments
}
/**
* Test the property 'runCount'
*/
@Test
public void runCountTest() {
// TODO: test runCount
}
/**
* Test the property 'state'
*/
@Test
public void stateTest() {
// TODO: test state
}
/**
* Test the property 'comments'
*/
@Test
public void commentsTest() {
// TODO: test comments
}
}
|
[
"emargules@bluepay.com"
] |
emargules@bluepay.com
|
84280b659b2d26fbb93c02e0bbc21ae6cf63b793
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes5.dex_source_from_JADX/com/google/common/collect/ImmutableSortedMap$1EntrySet.java
|
dfd1639f8df26847624c23912b99f769007e5eb9
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,044
|
java
|
package com.google.common.collect;
import java.util.Map.Entry;
/* compiled from: button_uri */
class ImmutableSortedMap$1EntrySet extends ImmutableMapEntrySet<K, V> {
final /* synthetic */ ImmutableSortedMap this$0;
/* compiled from: button_uri */
class C08181 extends ImmutableAsList<Entry<K, V>> {
C08181() {
}
public Object get(int i) {
return Maps.a(ImmutableSortedMap$1EntrySet.this.this$0.c.asList().get(i), ImmutableSortedMap$1EntrySet.this.this$0.d.get(i));
}
final ImmutableCollection<Entry<K, V>> m13407a() {
return ImmutableSortedMap$1EntrySet.this;
}
}
ImmutableSortedMap$1EntrySet(ImmutableSortedMap immutableSortedMap) {
this.this$0 = immutableSortedMap;
}
public UnmodifiableIterator<Entry<K, V>> iterator() {
return asList().iterator();
}
ImmutableList<Entry<K, V>> createAsList() {
return new C08181();
}
final ImmutableMap<K, V> m13408a() {
return this.this$0;
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
eef4b15a9cc0701c3927f3ddc07c96bb0c7c19b5
|
589dcd422402477ce80e9c349bd483c2d36b80cd
|
/trunk/adhoc-solr/src/main/java/org/apache/solr/schema/FacetCount.java
|
3411e5f4746a3f13483741dcda2fffee4e306a33
|
[
"Apache-2.0",
"LicenseRef-scancode-unicode-mappings",
"BSD-3-Clause",
"CDDL-1.0",
"Python-2.0",
"MIT",
"ICU",
"CPL-1.0"
] |
permissive
|
baojiawei1230/mdrill
|
e3d92f4f1f85b34f0839f8463e7e5353145a9c78
|
edacdb4dc43ead6f14d83554c1f402aa1ffdec6a
|
refs/heads/master
| 2021-06-10T17:42:11.076927
| 2021-03-15T16:43:06
| 2021-03-15T16:43:06
| 95,193,877
| 0
| 0
|
Apache-2.0
| 2021-03-15T16:43:06
| 2017-06-23T07:15:00
|
Java
|
UTF-8
|
Java
| false
| false
| 1,933
|
java
|
package org.apache.solr.schema;
/**
* distinct统计用类。给namedlist用。
*
* @author jian.qin 2012-7-24
*/
public class FacetCount {
// public String key;
public int count = 0;
public boolean isDouble = false;
public long lastDate = Long.MIN_VALUE;
public long firstDate = Long.MAX_VALUE;
public double sumDouble = 0;
public double maxDouble = Double.NEGATIVE_INFINITY;
public double minDouble = Double.POSITIVE_INFINITY;
public double lastDouble = Double.NEGATIVE_INFINITY;;
public double firstDouble = Double.POSITIVE_INFINITY;;
public long sumLong = 0;
public long maxLong = Long.MIN_VALUE;
public long minLong = Long.MAX_VALUE;
public long lastLong = Long.MIN_VALUE;
public long firstLong = Long.MAX_VALUE;
private double currentDouble = 0;
private long currentLong = 0;
private long currentDate = 0;
public FacetCount(boolean isDouble) {
this.isDouble = isDouble;
}
public void setSum(double v) {
currentDouble = v;
sumDouble += currentDouble;
if (currentDouble > maxDouble) {
maxDouble = currentDouble;
} else if (currentDouble < minDouble) {
minDouble = currentDouble;
}
}
public void setSum(long v) {
currentLong = v;
sumLong += currentLong;
if (currentLong > maxLong) {
maxLong = currentLong;
} else if (currentLong < minLong) {
minLong = currentLong;
}
}
public void setDate(long v) throws java.text.ParseException {
currentDate = v;
if (isDouble) {
if (currentDate > lastDate) {
lastDate = currentDate;
lastDouble = currentDouble;
} else if (currentDate < firstDate) {
firstDate = currentDate;
firstDouble = currentDouble;
}
} else {
if (currentDate > lastDate) {
lastDate = currentDate;
lastLong = currentLong;
} else if (currentDate < firstDate) {
firstDate = currentDate;
firstLong = currentLong;
}
}
}
}
|
[
"myn@163.com"
] |
myn@163.com
|
9e888aac6b1fe37dcaaa44b986a35316273d63b7
|
c28f7f59e5e1cbda80a1fc2f3cd3cef55e86134c
|
/src/main/java/com/negafinity/ironhawk/utils/ImageManager.java
|
1188cd8f2b3ff533b50dea08324647cb5a36398b
|
[] |
no_license
|
InfraredPanda/IronHawk
|
8b6ba388c35b54ff4bd97bd81d75d5837cf53bd7
|
f4c5f4e38dfa57b54c76d63e365292c16d00d356
|
refs/heads/master
| 2021-05-31T19:46:20.982926
| 2016-02-09T02:06:21
| 2016-02-09T02:06:21
| 39,208,047
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,297
|
java
|
package com.negafinity.ironhawk.utils;
import com.negafinity.ironhawk.IronHawk;
import java.awt.image.BufferedImage;
import java.io.IOException;
public class ImageManager
{
public BufferedImage image = new BufferedImage(IronHawk.WIDTH, IronHawk.HEIGHT, BufferedImage.TYPE_INT_RGB);
public BufferedImage spriteSheet;
public BufferedImage background;
public BufferedImage player2Sprite;
public BufferedImage negafinity;
public BufferedImage ironhawkscreen;
public BufferedImage controlscreen;
public BufferedImage ironhawklogo;
public static BufferedImage icon16;
public static BufferedImage icon64;
public ImageManager()
{
this.loadImages();
}
public void loadImages()
{
BufferedImageLoader loader = new BufferedImageLoader();
try
{
spriteSheet = loader.loadImage("spriteSheet.png");
background = loader.loadImage("background.png");
player2Sprite = loader.loadImage("player2Sprite.png");
negafinity = loader.loadImage("negafinity.png");
ironhawkscreen = loader.loadImage("ironhawkscreen.png");
controlscreen = loader.loadImage("controlscreen.png");
ironhawklogo = loader.loadImage("ironhawklogo.png");
icon16 = loader.loadImage("16.png");
icon64 = loader.loadImage("64.png");
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
|
[
"hassansyyid@gmail.com"
] |
hassansyyid@gmail.com
|
b9794b4f26a07cad10bd8c4eb524b0b08471da77
|
f8e846599d14085a214967dfd3b700f6ead01613
|
/app/src/main/java/com/ubn/ummelquwain/dagger/Application/component/ApplicationComponent.java
|
58c480efe9a67e9450fae745bb58288e58ae885a
|
[] |
no_license
|
MohamedAliArafa/UmmElQuwain
|
1332288e6e54e16855c29594c82f573449dcf70d
|
51efbb0a06eb7567da11a9797d4c227daa866e27
|
refs/heads/master
| 2021-01-22T12:25:51.881673
| 2017-11-29T14:00:33
| 2017-11-29T14:00:33
| 102,348,388
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 616
|
java
|
package com.ubn.ummelquwain.dagger.Application.component;
import com.ubn.ummelquwain.dagger.Application.module.ApiServiceModule;
import com.ubn.ummelquwain.dagger.Application.module.PicassoModule;
import com.ubn.ummelquwain.dagger.Application.scope.ApplicationScope;
import com.ubn.ummelquwain.service.ApiService;
import com.squareup.picasso.Picasso;
import dagger.Component;
/**
* Created by mohamed.arafa on 8/27/2017.
*/
@ApplicationScope
@Component(modules = {ApiServiceModule.class, PicassoModule.class})
public interface ApplicationComponent {
Picasso getPicasso();
ApiService getService();
}
|
[
"ghostarafa@gmail.com"
] |
ghostarafa@gmail.com
|
e316ba67e360ba7d90f8205704bb8d9d77ebfaf9
|
794473ff2ba2749db9c0782f5d281b00dd785a95
|
/braches_20171206/qiubaotong-server/qbt-persistent/src/main/java/com/qbt/persistent/dto/BaseSfExpressLogDto.java
|
4350d9d23ec6f15c16981f0f41bc0ecde96b5062
|
[] |
no_license
|
hexilei/qbt
|
a0fbc9c1870da1bf1ec24bba0f508841ca1b9750
|
040e5fcc9fbb27d52712cc1678d71693b5c85cce
|
refs/heads/master
| 2021-05-05T23:03:20.377229
| 2018-01-12T03:33:12
| 2018-01-12T03:33:12
| 116,363,833
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 982
|
java
|
package com.qbt.persistent.dto;
import java.util.Date;
public class BaseSfExpressLogDto {
//类型
private String serviceName;
//关键字
private String keyword;
//状态
private Integer status;
//开始时间
private String beginTime;
//结束时间
private String endTime;
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getBeginTime() {
return beginTime;
}
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
}
|
[
"louis.he@missionsky.com"
] |
louis.he@missionsky.com
|
07eb59237d533995a54e220f0557bcf0683a456d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_622a57e95b57c1f337051ef94558dd7aba79c227/MainFrame/5_622a57e95b57c1f337051ef94558dd7aba79c227_MainFrame_s.java
|
39c9eb10aa3d6d6da9c8466357f827ec15ac1856
|
[] |
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
| 7,729
|
java
|
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Robot;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.KeyEvent;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;
import java.awt.Color;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.factories.FormFactory;
import com.jgoodies.forms.layout.RowSpec;
import javax.swing.JCheckBox;
public class MainFrame extends JFrame {
Thread d;
private JPanel contentPane;
private JTextField text;
private JTextField terxt;
private JTextField d1terxt;
protected JFrame frame;
static JButton btnNewButton;
private JPanel panel;
private static JLabel lblAutotyper;
private JLabel lblText;
private JTextField txtTextToSpam;
private JLabel lblDelayBetweenSpam;
private JLabel lblInitialDelay;
private JLabel lblNumberToSpam;
private JLabel lblForInfinite;
public static void main(String[] args) throws Exception{
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "AutoTyper (zst123)");
EventQueue.invokeLater(new Runnable() {
public void run() {
MainFrame frame = new MainFrame();
// TRANSPARENCY VALUE IN A FLOAT // CURRENTLY 80%
frame.getRootPane().putClientProperty("Window.alpha", new Float(0.80f));
frame.setAlwaysOnTop(true);
frame.setVisible(true);
} });
}
public MainFrame() {
setResizable(false);
setTitle("Universal Auto Typer by zst123");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setAlwaysOnTop(true);
setBounds(100, 100, 310, 281);
contentPane = new JPanel();
contentPane.setBackground(new Color(0, 0, 0));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(new BorderLayout(0, 0));
setContentPane(contentPane);
panel = new JPanel();
panel.setBackground(Color.BLACK);
contentPane.add(panel, BorderLayout.CENTER);
panel.setLayout(new FormLayout(new ColumnSpec[] {
FormFactory.RELATED_GAP_COLSPEC,
FormFactory.DEFAULT_COLSPEC,
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
ColumnSpec.decode("134px:grow"),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
ColumnSpec.decode("70px"),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
ColumnSpec.decode("62px"),},
new RowSpec[] {
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.PREF_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
RowSpec.decode("28px"),
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
RowSpec.decode("default:grow"),}));
lblText = new JLabel("Text to Spam");
lblText.setHorizontalAlignment(SwingConstants.RIGHT);
panel.add(lblText, "2, 2");
lblText.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblText.setForeground(Color.WHITE);
txtTextToSpam = new JTextField();
txtTextToSpam.setFont(new Font("Tahoma", Font.PLAIN, 14));
txtTextToSpam.setText("spam");
panel.add(txtTextToSpam, "4, 2");
txtTextToSpam.setColumns(10);
lblDelayBetweenSpam = new JLabel("Delay Per Spam (ms)");
lblDelayBetweenSpam.setHorizontalAlignment(SwingConstants.RIGHT);
lblDelayBetweenSpam.setForeground(Color.WHITE);
lblDelayBetweenSpam.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(lblDelayBetweenSpam, "2, 4, right, default");
terxt = new JTextField();
terxt.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(terxt, "4, 4, left, top");
terxt.setColumns(10);
terxt.setText("100");
lblInitialDelay = new JLabel("Initial Delay (ms)");
lblInitialDelay.setHorizontalAlignment(SwingConstants.RIGHT);
lblInitialDelay.setForeground(Color.WHITE);
lblInitialDelay.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(lblInitialDelay, "2, 6, right, default");
text = new JTextField();
text.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(text, "4, 6, left, top");
text.setColumns(10);
text.setText("3000");
lblNumberToSpam = new JLabel("Number to Spam");
lblNumberToSpam.setHorizontalAlignment(SwingConstants.RIGHT);
lblNumberToSpam.setForeground(Color.WHITE);
lblNumberToSpam.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(lblNumberToSpam, "2, 8, right, default");
d1terxt = new JTextField();
d1terxt.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(d1terxt, "4, 8");
d1terxt.setColumns(3);
d1terxt.setText("100");
lblForInfinite = new JLabel("(0 for infinite until stopped)");
panel.add(lblForInfinite, "2, 10, 3, 1");
lblForInfinite.setHorizontalAlignment(SwingConstants.CENTER);
lblForInfinite.setForeground(Color.WHITE);
lblForInfinite.setFont(new Font("Tahoma", Font.PLAIN, 12));
lblUse = new JLabel("Alternate Spamming");
lblUse.setHorizontalAlignment(SwingConstants.RIGHT);
lblUse.setForeground(Color.WHITE);
lblUse.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(lblUse, "2, 12");
altbox = new JCheckBox("");
altbox.setVerticalAlignment(SwingConstants.TOP);
altbox.setHorizontalAlignment(SwingConstants.LEFT);
altbox.setForeground(Color.WHITE);
altbox.setFont(new Font("Tahoma", Font.PLAIN, 14));
panel.add(altbox, "4, 12");
btnNewButton = new JButton("Start");
btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
contentPane.add(btnNewButton, BorderLayout.SOUTH);
lblAutotyper = new JLabel("Universal AutoTyper");
lblAutotyper.setForeground(new Color(255, 0, 0));
lblAutotyper.setHorizontalAlignment(SwingConstants.CENTER);
lblAutotyper.setFont(new Font("Arial", Font.BOLD, 20));
contentPane.add(lblAutotyper, BorderLayout.NORTH);
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (start == false){
initSpam();
updateVariable(true);
}else{//force stop
//d.stop();
start = false;
updateVariable(false);
}
}
});
}
public static void updateVariable(boolean on){
if (on == true){
lblAutotyper.setForeground(new Color(0, 255, 0));
btnNewButton.setText("Stop");
}else{
lblAutotyper.setForeground(new Color(255, 0, 0));
btnNewButton.setText("Start");
}
}
public void initSpam(){
int mKey = ModifierKey.get();
String text_spam = txtTextToSpam.getText();
int delay = Integer.parseInt(terxt.getText());
int initial = Integer.parseInt(text.getText());
int loops = Integer.parseInt(d1terxt.getText());
boolean unlimited = false;
if (delay<1){ delay = 1;}
if (loops == 0){ loops = 100; unlimited = true;}
if (altbox.isSelected()){
CopyPaster.type(text_spam, loops, initial, delay, mKey,unlimited);
}else{
try{
ManualTyper.mtype(text_spam, loops, initial, delay, mKey,unlimited);
}catch(Exception e){ }
}
}
static boolean start = false;
private JCheckBox altbox;
private JLabel lblUse;
/* "nix" "nux" "aix" */
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a418b57464e69361fc9dfde28db1f39dccbc0ba3
|
9dfbb51bdca7b9bf5b17affa4ea48a2af7955b3d
|
/coupon-service/src/main/java/com/yikejian/coupon/api/v1/dto/ResponseCoupon.java
|
b6ea5a122991ae33c56bce9b1707993d44a50f7f
|
[] |
no_license
|
hedgehog-zowie/yikejian-parent
|
a9e2a0373b72be025a3af5f3bc6060f69fcd7130
|
cd6f710f70f94312de09ce7c0eef35c877c221c6
|
refs/heads/master
| 2021-09-06T21:02:10.303978
| 2018-02-11T10:19:42
| 2018-02-11T10:19:42
| 114,800,578
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 959
|
java
|
package com.yikejian.coupon.api.v1.dto;
import com.yikejian.coupon.domain.coupon.Coupon;
import java.util.List;
/**
* <code>ResponseRoleDto</code>.
* ${DESCRIPTION}
*
* @author zweig
* @version: 1.0-SNAPSHOT
* date: 2018/1/15 11:28
*/
public class ResponseCoupon {
private List<Coupon> couponList;
private Pagination pagination;
public ResponseCoupon(List<Coupon> couponList) {
this.couponList = couponList;
}
public ResponseCoupon(List<Coupon> couponList, Pagination pagination) {
this.couponList = couponList;
this.pagination = pagination;
}
public List<Coupon> getCouponList() {
return couponList;
}
public void setCouponList(List<Coupon> couponList) {
this.couponList = couponList;
}
public Pagination getPagination() {
return pagination;
}
public void setPagination(Pagination pagination) {
this.pagination = pagination;
}
}
|
[
"hedgehog.zowie@gmail.com"
] |
hedgehog.zowie@gmail.com
|
90e42d376968f957b58ebbe5313b023c0238027b
|
cabd4ac219b5f080ebaf5b6b6929aa6cb1ac5910
|
/javaprj/src/main/java/com/newlecture/web/controller/ErrorController.java
|
5036d82736ec9923897cc84d8d832dc8cf36e84b
|
[] |
no_license
|
mellome-O/-hta_SpringMaven
|
be3cf5ced5da04e837e7fe449750ca6f3253758b
|
c2ec3d0e3de1e0dfb527bcdcab0baf9eaedd066d
|
refs/heads/master
| 2022-12-22T02:18:34.873393
| 2019-07-26T09:01:23
| 2019-07-26T09:01:23
| 196,544,270
| 0
| 0
| null | 2022-05-20T21:03:51
| 2019-07-12T08:51:52
|
Java
|
UHC
|
Java
| false
| false
| 969
|
java
|
package com.newlecture.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import java.sql.SQLException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.newlecture.web.dao.NoticeDao;
import com.newlecture.web.entity.NoticeView;
@Controller("ErrorController")
@RequestMapping("/error/")
public class ErrorController {
//특정번호 따로 하고 싶을때
@GetMapping("403")
public String error403() {
return "error/403";
}
//한 곳에 몰아서 관리할 때
// @GetMapping("{num}") //defaulthandler 만들어 둔 것
// public String error() {
// return "error/default";
// }
}
|
[
"JHTA@JHTA-PC"
] |
JHTA@JHTA-PC
|
2acf981b438d80c4342f5594e6d7a70a18339a26
|
e2760ad1929167ddbf8ecf248105d76c798aad1a
|
/asterix-lang-aql/src/main/java/org/apache/asterix/lang/aql/visitor/AQLCloneAndSubstituteVariablesVisitor.java
|
dfbf75751ab9c3644313c89c9341558ff6c4ae06
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
xizzzz/incubator-asterixdb
|
30e7ee54114c37b95141ce2a7028c2c60a8805f7
|
9dcba3c9fec7c83b9f834c1289fe8dca70be4d32
|
refs/heads/master
| 2021-01-18T00:10:39.968591
| 2016-02-02T03:42:32
| 2016-02-02T05:14:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,000
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.asterix.lang.aql.visitor;
import java.util.ArrayList;
import java.util.List;
import org.apache.asterix.common.exceptions.AsterixException;
import org.apache.asterix.lang.aql.clause.DistinctClause;
import org.apache.asterix.lang.aql.clause.ForClause;
import org.apache.asterix.lang.aql.expression.FLWOGRExpression;
import org.apache.asterix.lang.aql.expression.UnionExpr;
import org.apache.asterix.lang.aql.visitor.base.IAQLVisitor;
import org.apache.asterix.lang.common.base.Clause;
import org.apache.asterix.lang.common.base.Expression;
import org.apache.asterix.lang.common.base.ILangExpression;
import org.apache.asterix.lang.common.expression.VariableExpr;
import org.apache.asterix.lang.common.rewrites.LangRewritingContext;
import org.apache.asterix.lang.common.rewrites.VariableSubstitutionEnvironment;
import org.apache.asterix.lang.common.util.VariableCloneAndSubstitutionUtil;
import org.apache.asterix.lang.common.visitor.CloneAndSubstituteVariablesVisitor;
import org.apache.hyracks.algebricks.common.utils.Pair;
public class AQLCloneAndSubstituteVariablesVisitor extends CloneAndSubstituteVariablesVisitor implements
IAQLVisitor<Pair<ILangExpression, VariableSubstitutionEnvironment>, VariableSubstitutionEnvironment> {
private LangRewritingContext context;
public AQLCloneAndSubstituteVariablesVisitor(LangRewritingContext context) {
super(context);
this.context = context;
}
@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(ForClause fc,
VariableSubstitutionEnvironment env) throws AsterixException {
Pair<ILangExpression, VariableSubstitutionEnvironment> p1 = fc.getInExpr().accept(this, env);
VariableExpr varExpr = fc.getVarExpr();
VariableExpr newVe = generateNewVariable(context, varExpr);
VariableSubstitutionEnvironment resultEnv = new VariableSubstitutionEnvironment(env);
resultEnv.removeSubstitution(varExpr);
VariableExpr posVarExpr = null;
if (fc.hasPosVar()) {
posVarExpr = fc.getPosVarExpr();
resultEnv.removeSubstitution(posVarExpr);
}
ForClause newFor = new ForClause(newVe, (Expression) p1.first, posVarExpr);
return new Pair<ILangExpression, VariableSubstitutionEnvironment>(newFor, resultEnv);
}
@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(FLWOGRExpression flwor,
VariableSubstitutionEnvironment env) throws AsterixException {
List<Clause> newClauses = new ArrayList<Clause>(flwor.getClauseList().size());
VariableSubstitutionEnvironment currentEnv = env;
for (Clause c : flwor.getClauseList()) {
Pair<ILangExpression, VariableSubstitutionEnvironment> p1 = c.accept(this, currentEnv);
currentEnv = p1.second;
newClauses.add((Clause) p1.first);
}
Pair<ILangExpression, VariableSubstitutionEnvironment> p2 = flwor.getReturnExpr().accept(this, currentEnv);
Expression newReturnExpr = (Expression) p2.first;
FLWOGRExpression newFlwor = new FLWOGRExpression(newClauses, newReturnExpr);
return new Pair<ILangExpression, VariableSubstitutionEnvironment>(newFlwor, p2.second);
}
@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(UnionExpr u,
VariableSubstitutionEnvironment env) throws AsterixException {
List<Expression> exprList = VariableCloneAndSubstitutionUtil.visitAndCloneExprList(u.getExprs(), env, this);
UnionExpr newU = new UnionExpr(exprList);
return new Pair<ILangExpression, VariableSubstitutionEnvironment>(newU, env);
}
@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(DistinctClause dc,
VariableSubstitutionEnvironment env) throws AsterixException {
List<Expression> exprList = VariableCloneAndSubstitutionUtil.visitAndCloneExprList(dc.getDistinctByExpr(), env,
this);
DistinctClause dc2 = new DistinctClause(exprList);
return new Pair<ILangExpression, VariableSubstitutionEnvironment>(dc2, env);
}
}
|
[
"buyingyi@gmail.com"
] |
buyingyi@gmail.com
|
71627cdc69ac59356a67ce0764c01fabb15b3447
|
aaa23aeb62910e094784b161adf07ca4bdcec17d
|
/src/main/java/com/gmail/socraticphoenix/forge/randore/item/FlexibleItem.java
|
2a0cf5a458f947e4ec020e804922da9e34a1e3da
|
[] |
no_license
|
Randores/Randores
|
2a0615222ad4b6e60e7ffb8f4ec6a17149538a98
|
0da6e9b6ffd158314793757a9203237e8a802fac
|
refs/heads/master
| 2021-06-20T16:21:34.430950
| 2017-08-04T17:06:47
| 2017-08-04T17:06:47
| 81,740,671
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,828
|
java
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 socraticphoenix@gmail.com
* Copyright (c) 2016 contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.gmail.socraticphoenix.forge.randore.item;
import com.gmail.socraticphoenix.forge.randore.component.Components;
import com.gmail.socraticphoenix.forge.randore.component.MaterialDefinition;
import com.gmail.socraticphoenix.forge.randore.component.ability.AbilityType;
import net.minecraft.item.Item;
import net.minecraft.world.World;
import java.util.List;
public interface FlexibleItem {
int index();
boolean hasDefinition(long seed);
MaterialDefinition getDefinition(long seed);
MaterialDefinition getDefinition(World world);
Components getType();
Item getThis();
List<AbilityType> types();
}
|
[
"socraticphoenix@gmail.com"
] |
socraticphoenix@gmail.com
|
ff5ee11ccb70745b2fe17f6a6787917ea2aebffa
|
6af9037c957d65e3ab4ab2c67456b06a662914f6
|
/src/main/java/com/app/boot/springjpa/validation/CategoryEditedValidation.java
|
abdc78d0c6491bc64e033dc77c5673ce5cc574d7
|
[] |
no_license
|
dickanirwansyah/spring-boot-rest-validation
|
9a039ee37887ab712032f901d93ac3ee8ee29b22
|
1bb42d3ac6b037a415c2bde281d71f6b384d8fb6
|
refs/heads/master
| 2020-03-15T21:07:49.919514
| 2018-05-06T14:54:43
| 2018-05-06T14:54:43
| 132,348,347
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 712
|
java
|
package com.app.boot.springjpa.validation;
import com.app.boot.springjpa.validation.validator.CategoryEditedValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {
CategoryEditedValidator.class
})
@Documented
public @interface CategoryEditedValidation {
String message()
default "CategoryEditedValidation";
Class<?>[] groups()
default {};
Class<? extends Payload>[] payload()
default {};
String[] path()
default {};
}
|
[
"dickanirwansyah@gmail.com"
] |
dickanirwansyah@gmail.com
|
bd8ebbf1c18e8ffbfe9352dc6245d3fe36ea9118
|
ea4da81a69a300624a46fce9e64904391c37267c
|
/src/main/java/com/alipay/api/response/AlipayMobileStdPublicMessageMatcherSendResponse.java
|
3e2e059f648d22f7780335f297d6008b5297af9a
|
[
"Apache-2.0"
] |
permissive
|
shiwei1024/alipay-sdk-java-all
|
741cc3cb8cf757292b657ce05958ff9ad8ecf582
|
d6a051fd47836c719a756607e6f84fee2b26ecb4
|
refs/heads/master
| 2022-12-29T18:46:53.195585
| 2020-10-09T06:34:30
| 2020-10-09T06:34:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,000
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.mobile.std.public.message.matcher.send response.
*
* @author auto create
* @since 1.0, 2019-03-08 15:29:11
*/
public class AlipayMobileStdPublicMessageMatcherSendResponse extends AlipayResponse {
private static final long serialVersionUID = 8419968425557645538L;
/**
* 对应toUserId,标准Alipay UserId
*/
@ApiField("to_alipay_user_id")
private String toAlipayUserId;
/**
* 消息接收人的用户ID,值取的openId
*/
@ApiField("to_user_id")
private String toUserId;
public void setToAlipayUserId(String toAlipayUserId) {
this.toAlipayUserId = toAlipayUserId;
}
public String getToAlipayUserId( ) {
return this.toAlipayUserId;
}
public void setToUserId(String toUserId) {
this.toUserId = toUserId;
}
public String getToUserId( ) {
return this.toUserId;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.