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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f680b50c6fc173ab6f75f456fcbc9f0bccd338fa
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2016/4/DefaultSchemaIndexProviderMap.java
|
9ea7818a8b75e25a515535f5d29c9551c1b97ebf
|
[] |
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,851
|
java
|
/*
* Copyright (c) 2002-2016 "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.kernel.impl.transaction.state;
import org.neo4j.kernel.api.index.SchemaIndexProvider;
import org.neo4j.kernel.impl.api.index.SchemaIndexProviderMap;
public class DefaultSchemaIndexProviderMap implements SchemaIndexProviderMap
{
private final SchemaIndexProvider indexProvider;
public DefaultSchemaIndexProviderMap( SchemaIndexProvider indexProvider )
{
this.indexProvider = indexProvider;
}
@Override
public SchemaIndexProvider getDefaultProvider()
{
return indexProvider;
}
@Override
public SchemaIndexProvider apply( SchemaIndexProvider.Descriptor descriptor )
{
if ( indexProvider.getProviderDescriptor().getKey().equals( descriptor.getKey() ) )
return indexProvider;
throw new IllegalArgumentException( "Tried to get index provider for an existing index with provider " +
descriptor + " whereas the default and only supported provider in this session is " +
indexProvider.getProviderDescriptor() );
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
00c7627fdefd0c9fb7b9144189fcae16381a369a
|
99eab68b796c1bf50f03e8b7355628b194c71abf
|
/service/report/src/main/java/com/accumulate/report/service/ReportService.java
|
185fb1b48a9fc2201d375c72c1451f3fc1752422
|
[] |
no_license
|
syz133350475/triumph
|
9156aff8aa74c5b4bc47b83617da1b013f318994
|
7cb62d54d52de82edc96faed1b292a8083173e56
|
refs/heads/master
| 2022-02-24T04:55:46.320724
| 2019-09-23T02:16:24
| 2019-09-23T02:16:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 158
|
java
|
package com.accumulate.report.service;
/**
*@System: 车贷金融
*@Auther: hukaijia
*@Description:
*@Modified By:
*/
public interface ReportService {
}
|
[
"190916516@qq.com"
] |
190916516@qq.com
|
b49d853f9ce1884a562877bd759a8d67fe973853
|
2bc2eadc9b0f70d6d1286ef474902466988a880f
|
/tags/mule-2.0.0-M2/tests/integration/src/test/java/org/mule/test/integration/providers/file/FileFunctionalTestCase.java
|
84d42d2209e458287ea95ff50219618a41dbbbc2
|
[] |
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
| 3,423
|
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.test.integration.providers.file;
import org.mule.tck.FunctionalTestCase;
import org.mule.tck.functional.FunctionalTestComponent;
import org.mule.tck.functional.FunctionalTestNotification;
import org.mule.tck.functional.FunctionalTestNotificationListener;
import org.mule.umo.UMOEventContext;
import org.mule.umo.manager.UMOServerNotification;
import org.mule.util.FileUtils;
import org.mule.util.IOUtils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
public class FileFunctionalTestCase extends FunctionalTestCase implements FunctionalTestNotificationListener
{
private Object receivedData = null;
public FileFunctionalTestCase()
{
super.setDisposeManagerPerSuite(true);
}
//@Override
protected void doSetUp() throws Exception
{
super.doSetUp();
managementContext.registerListener(this);
}
// @Override
protected void doTearDown() throws Exception
{
super.doTearDown();
managementContext.unregisterListener(this);
}
// @Override
protected String getConfigResources()
{
return "org/mule/test/integration/providers/file/file-config.xml";
}
public void testRelative() throws IOException, InterruptedException
{
// create binary file data to be written
byte[] data = new byte[100000];
for (int i = 0; i < data.length; i++)
{
data[i] = (byte)(Math.random() * 128);
}
File f = FileUtils.newFile("./test/testfile.temp");
f.createNewFile();
FileOutputStream fos = new FileOutputStream(f);
IOUtils.write(data, fos);
IOUtils.closeQuietly(fos);
// atomically rename the file to make it available for polling
f.renameTo(FileUtils.newFile(f.getPath().replaceAll(".temp", ".data")));
// give polling a chance
Thread.sleep(5000);
synchronized (this)
{
assertNotNull(receivedData);
assertTrue(receivedData instanceof byte[]);
byte[] receivedBytes = (byte[])receivedData;
assertEquals(data.length, receivedBytes.length);
assertTrue(Arrays.equals(data, receivedBytes));
}
}
public void onNotification(UMOServerNotification notification)
{
synchronized (this)
{
logger.debug("received notification: " + notification);
// save the received message data for verification
this.receivedData = ((FunctionalTestNotification)notification).getReplyMessage();
}
}
public static class FileTestComponent extends FunctionalTestComponent
{
public Object onCall(UMOEventContext context) throws Exception
{
// there should not be any transformers configured by default, so the
// return message should be a byte[]
super.setReturnMessage(context.getTransformedMessage());
return super.onCall(context);
}
}
}
|
[
"tcarlson@bf997673-6b11-0410-b953-e057580c5b09"
] |
tcarlson@bf997673-6b11-0410-b953-e057580c5b09
|
8015d7f34545115122cf9f72887c2160b038bbe2
|
24bc32e0a59c1def4fe5c42110e48e23c39bd288
|
/LeetCode/src/Medium/no535/Codec.java
|
6387a073600c474b2f66c28829b2858896c01e9f
|
[] |
no_license
|
Sword-Is-Cat/LeetCode
|
01e47108153d816947cad48f4b073a1743dd46c8
|
73b08b0945810fb4b976a2a5d3bc46cefbd923b6
|
refs/heads/master
| 2023-08-30T21:45:58.136842
| 2023-08-29T00:22:35
| 2023-08-29T00:22:35
| 253,831,514
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 857
|
java
|
package Medium.no535;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
public class Codec {
Map<String, String> map;
final String MYURL = "https://shorts.com/";
Codec() {
map = new HashMap<>();
}
// Encodes a URL to a shortened URL.
public String encode(String longUrl) {
String key = randomKey();
while (map.containsKey(key))
key = randomKey();
map.put(key, longUrl);
return MYURL + key;
}
// Decodes a shortened URL to its original URL.
public String decode(String shortUrl) {
String key = shortUrl.replace(MYURL, "");
return map.containsKey(key) ? map.get(key) : null;
}
public String randomKey() {
StringBuilder sb = new StringBuilder();
int cnt = 8;
Random ran = new Random();
while (cnt-- > 0) {
sb.append((char) 'a' + ran.nextInt(26));
}
return sb.toString();
}
}
|
[
"jhbsp@naver.com"
] |
jhbsp@naver.com
|
10daaa522b5cbe443aaa35ef714d202829faaf77
|
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
|
/app/src/main/java/com/p118pd/sdk/C8180oOOo00o.java
|
1eadf543af950df413f3ee042457187401f6a807
|
[] |
no_license
|
rcoolboy/guilvN
|
3817397da465c34fcee82c0ca8c39f7292bcc7e1
|
c779a8e2e5fd458d62503dc1344aa2185101f0f0
|
refs/heads/master
| 2023-05-31T10:04:41.992499
| 2021-07-07T09:58:05
| 2021-07-07T09:58:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,266
|
java
|
package com.p118pd.sdk;
/* renamed from: com.pd.sdk.oOOo00o reason: case insensitive filesystem */
public class C8180oOOo00o {
public static final double OooO00o = 16384.0d;
/* renamed from: OooO00o reason: collision with other field name */
public static final int f21235OooO00o = 16384;
public static final double OooO0O0 = 16384.999999999996d;
public static float OooO00o(float f, float f2) {
return f > f2 ? f2 : f;
}
public static float OooO00o(float f, float f2, float f3) {
return f <= f2 ? f2 : f >= f3 ? f3 : f;
}
public static int OooO00o(float f) {
double d = (double) f;
Double.isNaN(d);
return ((int) (d + 16384.999999999996d)) - 16384;
}
public static int OooO00o(int i, int i2) {
return i > i2 ? i2 : i;
}
public static int OooO00o(int i, int i2, int i3) {
return i <= i2 ? i2 : i >= i3 ? i3 : i;
}
public static float OooO0O0(float f, float f2) {
return f < f2 ? f2 : f;
}
public static int OooO0O0(float f) {
double d = (double) f;
Double.isNaN(d);
return ((int) (d + 16384.0d)) - 16384;
}
public static int OooO0O0(int i, int i2) {
return i < i2 ? i2 : i;
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
604eeaef217ec7a6e9499f4cac03e1a5b383b6dc
|
4b8b3856382b239e9061b3910bd7a533952c000e
|
/JDK-source-review/src/base/obj/TestMethodDispatcher.java
|
43b79e5b13b10cb22a208566f0c65218a5d7ca9b
|
[] |
no_license
|
challengerzsz/Java-Road
|
4d67530d74d579cad3e3d5383e19b63bb716af80
|
74016d61847d51647c8bfbeef01df417f6b21d48
|
refs/heads/master
| 2022-12-24T17:08:47.550380
| 2020-04-17T13:05:20
| 2020-04-17T13:05:20
| 105,871,894
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 834
|
java
|
package base.obj;
/**
* @author : zengshuaizhi
* @date : 2019-10-19 15:21
*/
public class TestMethodDispatcher {
public static void test(int a) {
System.out.println("int");
}
public static void test(long a) {
System.out.println("long");
}
public static void test(float a) {
System.out.println("float");
}
public static void test(double a) {
System.out.println("a");
}
public static void test(Object a) {
System.out.println("obj");
}
public static void test(Object... a) {
System.out.println("object ...");
}
/**
* invokestatic -> Object... 重载方法调用依赖静态分派 编译期即可知道方法分派对象
* @param args
*/
public static void main(String[] args) {
test(null);
}
}
|
[
"challengerzsz@126.com"
] |
challengerzsz@126.com
|
1fd4fb589e196d5895315391f1321b197d2a1a06
|
732182a102a07211f7c1106a1b8f409323e607e0
|
/gsd/src/lx/gs/event/KillWorldBossEvent.java
|
ff32e9d0ad982f919d59b5ac6a27a3bb11e07030
|
[] |
no_license
|
BanyLee/QYZ_Server
|
a67df7e7b4ec021d0aaa41cfc7f3bd8c7f1af3da
|
0eeb0eb70e9e9a1a06306ba4f08267af142957de
|
refs/heads/master
| 2021-09-13T22:32:27.563172
| 2018-05-05T09:20:55
| 2018-05-05T09:20:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
package lx.gs.event;
/**
* @author Jin Shuai
*/
public class KillWorldBossEvent extends AbstractEvent {
public KillWorldBossEvent(long roleId) {
super(roleId, EventType.KILL_WORLDBOSS);
}
}
|
[
"hadowhadow@gmail.com"
] |
hadowhadow@gmail.com
|
f6423091ff741778a98d940ea93de6bbd6601cda
|
dac87fb3394ef89d6b737e1f4264800023556aac
|
/scribble-core/src/main/java/org/scribble/ast/Parallel.java
|
965a83f99667f078e9501859e19e0756e8de637d
|
[
"Apache-2.0"
] |
permissive
|
objectiser/scribble-java
|
b0d844234d2b0caf4e0841b6548407257d3167b1
|
88d2ce8529f01f33630a4208ace0f61776b178a9
|
refs/heads/master
| 2021-01-18T10:34:29.266471
| 2017-06-29T15:23:38
| 2017-06-29T15:23:38
| 1,631,075
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,774
|
java
|
/**
* Copyright 2008 The Scribble 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.scribble.ast;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
import org.antlr.runtime.tree.CommonTree;
import org.scribble.main.ScribbleException;
import org.scribble.sesstype.kind.ProtocolKind;
import org.scribble.visit.AstVisitor;
public abstract class Parallel<K extends ProtocolKind> extends CompoundInteractionNode<K>
{
private final List<? extends ProtocolBlock<K>> blocks;
protected Parallel(CommonTree source, List<? extends ProtocolBlock<K>> blocks)
{
super(source);
this.blocks = new LinkedList<>(blocks);
}
public abstract Parallel<K> reconstruct(List<? extends ProtocolBlock<K>> blocks);
@Override
public Parallel<K> visitChildren(AstVisitor nv) throws ScribbleException
{
List<? extends ProtocolBlock<K>> blocks = visitChildListWithClassEqualityCheck(this, this.blocks, nv);
return reconstruct(blocks);
}
public List<? extends ProtocolBlock<K>> getBlocks()
{
return Collections.unmodifiableList(this.blocks);
}
/*@Override
public NodeContextBuilder enterContextBuilding(NodeContextBuilder builder) throws ScribbleException
{
builder.pushContext(new CompoundInteractionNodeContext());
return builder;
}
@Override
public Parallel<T> leaveContextBuilding(NodeContextBuilder builder) throws ScribbleException
{
CompoundInteractionNodeContext pcontext = (CompoundInteractionNodeContext) builder.popContext();
List<ProtocolBlockContext> bcontexts =
this.blocks.stream().map((b) -> b.getContext()).collect(Collectors.toList());
pcontext = (CompoundInteractionNodeContext) pcontext.merge(bcontexts);
builder.replaceContext(((CompoundInteractionContext) builder.peekContext()).merge(pcontext));
//return new Parallel<>(this.ct, this.blocks, pcontext);
return reconstruct(this.ct, this.blocks, pcontext, getEnv());
}
@Override
public Parallel<T> leaveWFChoiceCheck(WellFormedChoiceChecker checker) throws ScribbleException
{
checker.getEnv().leave(this, checker);
return this;
}
@Override
public Parallel<T> leaveReachabilityCheck(ReachabilityChecker checker) throws ScribbleException
{
checker.getEnv().leave(this, checker);
return this;
}
/*@Override
public Parallel checkWellFormedness(WellFormednessChecker wfc) throws ScribbleException
{k
return visitWithEnv(wfc);
}
@Override
public Parallel project(Projector proj) throws ScribbleException
{
return visitWithEnv(proj);
}
@Override
public Parallel checkReachability(ReachabilityChecker rc) throws ScribbleException
{
return visitWithEnv(rc);
}
public Parallel visitWithEnv(EnvVisitor nv) throws ScribbleException
{
Env env = nv.getEnv();
List<ProtocolBlock> blocks = new LinkedList<>();
for (ProtocolBlock block : this.blocks)
{
nv.setEnv(new Env(env));
ProtocolBlock visited = (ProtocolBlock) nv.visit(block);
blocks.add(visited);
}
nv.setEnv(env);
return new Parallel(this.ct, blocks);
}*/
@Override
public String toString()
{
String sep = " " + Constants.AND_KW + " ";
return Constants.PAR_KW + " "
+ this.blocks.stream().map((block) -> block.toString()).collect(Collectors.joining(sep));
}
}
|
[
"raymond.hu@imperial.ac.uk"
] |
raymond.hu@imperial.ac.uk
|
64e2bc5983afb46c6f677539045df6db055345cb
|
a307bd6319532a82feb3bf7c4321bd9b2a512f03
|
/08.EnumsAndAnnotations-Exercise/src/p05_card_compareTo/Main.java
|
069c733ea7670c45fca25743a322ad4f8c9c6fc9
|
[] |
no_license
|
CarlitoBG/JavaOOP-Advanced
|
d8e6471223bbc7243ae37d22dac2a420318bd3d0
|
e9da95e1c12df1e2155308e75d40d870cbc6045b
|
refs/heads/master
| 2020-04-08T09:16:59.012470
| 2018-11-26T18:55:25
| 2018-11-26T18:55:25
| 159,216,363
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 999
|
java
|
package p05_card_compareTo;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String firstCardRank = reader.readLine().toUpperCase();
String firstCardSuit = reader.readLine().toUpperCase();
String secondCardRank = reader.readLine().toUpperCase();
String secondCardSuit = reader.readLine().toUpperCase();
CardDeck firstCardDeck = new CardDeck(RankPowers.valueOf(firstCardRank), SuitPowers.valueOf(firstCardSuit));
CardDeck secondCardDeck = new CardDeck(RankPowers.valueOf(secondCardRank), SuitPowers.valueOf(secondCardSuit));
if (firstCardDeck.compareTo(secondCardDeck) < 0){
System.out.println(secondCardDeck.toString());
}else {
System.out.println(firstCardDeck.toString());
}
}
}
|
[
"dimitrov.dians@gmail.com"
] |
dimitrov.dians@gmail.com
|
2d298f0abac00d21ad86566956348b4df4a444e3
|
c46ddafe6d27384dc9bd638f5377064ef4526181
|
/src/main/java/map/IdentityHashMapClient.java
|
956f035f62f85a8e1a8eb27d838bd92d2731d836
|
[] |
no_license
|
jerrik123/jdk_learn_notes
|
764339bc97e4b64d32d8a12ebb6407b18c8a10bd
|
f0920480abde8e163adb32c54f6634430978933e
|
refs/heads/master
| 2021-04-27T04:28:46.447291
| 2018-02-24T07:27:46
| 2018-02-24T07:27:46
| 122,580,138
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,269
|
java
|
package map;
import java.util.IdentityHashMap;
import java.util.Map;
/**
* Copyright 2018/2/23 lcfarm All Rights Reserved
* 请添加类/接口的说明:
*
* @Package: map
* @author: Jerrik
* @date: 2018/2/23 14:29
*/
public class IdentityHashMapClient {
private static class Person{
private Integer age;
private String name;
public Person(Integer age, String name) {
this.age = age;
this.name = name;
}
@Override
public int hashCode() {
return age.hashCode() + name.hashCode();
}
@Override
public boolean equals(Object obj) {
if(!(obj instanceof Person)){
return false;
}
Person p = (Person)obj;
return this.age.equals(p) && this.name.equals(p.name);
}
}
public static void main(String[] args) {
Map<Person,Object> map = new IdentityHashMap();
Person p1 = new Person(20,"jerrik");
Person p2 = new Person(21,"smith");
Person p3 = new Person(20,"jerrik");
map.put(p1,"world");
map.put(p2,"world1");
map.put(p3,"world2");
System.out.println(map);
System.out.println(map.get(p3));
}
}
|
[
"yangjie_software@163.com"
] |
yangjie_software@163.com
|
93227370bf0bcc8eb1458e4fee8586c3bd6bfc85
|
91e72ef337a34eb7e547fa96d99fca5a4a6dc89e
|
/subjects/jcodemodel/results/evosuite/1564623861/0042/evosuite-tests/com/helger/jcodemodel/util/JCValueEnforcer_ESTest.java
|
a4d2d9e69999fee1f9c547c825845d612649325b
|
[] |
no_license
|
STAMP-project/descartes-amplification-experiments
|
deda5e2f1a122b9d365f7c76b74fb2d99634aad4
|
a5709fd78bbe8b4a4ae590ec50704dbf7881e882
|
refs/heads/master
| 2021-06-27T04:13:17.035471
| 2020-10-14T08:17:05
| 2020-10-14T08:17:05
| 169,711,716
| 0
| 0
| null | 2020-10-14T08:17:07
| 2019-02-08T09:32:43
|
Java
|
UTF-8
|
Java
| false
| false
| 1,204
|
java
|
/*
* This file was automatically generated by EvoSuite
* Thu Aug 01 02:30:31 GMT 2019
*/
package com.helger.jcodemodel.util;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.helger.jcodemodel.util.JCValueEnforcer;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
public class JCValueEnforcer_ESTest extends JCValueEnforcer_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
// Undeclared exception!
try {
JCValueEnforcer.isFalse(true, "OHZ");
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// The expression must be false but it is not: OHZ
//
verifyException("com.helger.jcodemodel.util.JCValueEnforcer", e);
}
}
@Test(timeout = 4000)
public void test1() throws Throwable {
JCValueEnforcer.isFalse(false, "OHZ");
}
}
|
[
"oscarlvp@gmail.com"
] |
oscarlvp@gmail.com
|
a89bd4c43ab23ce0068af888f22d43605eeaa0a0
|
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
|
/google/bigtable/admin/v2/google-cloud-bigtable-admin-v2-java/proto-google-cloud-bigtable-admin-v2-java/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotMetadataOrBuilder.java
|
b33b0422f98d8fdcf6e664f7736e3e66b2ff0732
|
[
"Apache-2.0"
] |
permissive
|
oltoco/googleapis-gen
|
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
|
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
|
refs/heads/master
| 2023-07-17T22:11:47.848185
| 2021-08-29T20:39:47
| 2021-08-29T20:39:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 2,848
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/bigtable/admin/v2/bigtable_table_admin.proto
package com.google.bigtable.admin.v2;
public interface CreateTableFromSnapshotMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The request that prompted the initiation of this CreateTableFromSnapshot
* operation.
* </pre>
*
* <code>.google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1;</code>
* @return Whether the originalRequest field is set.
*/
boolean hasOriginalRequest();
/**
* <pre>
* The request that prompted the initiation of this CreateTableFromSnapshot
* operation.
* </pre>
*
* <code>.google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1;</code>
* @return The originalRequest.
*/
com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest getOriginalRequest();
/**
* <pre>
* The request that prompted the initiation of this CreateTableFromSnapshot
* operation.
* </pre>
*
* <code>.google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1;</code>
*/
com.google.bigtable.admin.v2.CreateTableFromSnapshotRequestOrBuilder getOriginalRequestOrBuilder();
/**
* <pre>
* The time at which the original request was received.
* </pre>
*
* <code>.google.protobuf.Timestamp request_time = 2;</code>
* @return Whether the requestTime field is set.
*/
boolean hasRequestTime();
/**
* <pre>
* The time at which the original request was received.
* </pre>
*
* <code>.google.protobuf.Timestamp request_time = 2;</code>
* @return The requestTime.
*/
com.google.protobuf.Timestamp getRequestTime();
/**
* <pre>
* The time at which the original request was received.
* </pre>
*
* <code>.google.protobuf.Timestamp request_time = 2;</code>
*/
com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder();
/**
* <pre>
* The time at which the operation failed or was completed successfully.
* </pre>
*
* <code>.google.protobuf.Timestamp finish_time = 3;</code>
* @return Whether the finishTime field is set.
*/
boolean hasFinishTime();
/**
* <pre>
* The time at which the operation failed or was completed successfully.
* </pre>
*
* <code>.google.protobuf.Timestamp finish_time = 3;</code>
* @return The finishTime.
*/
com.google.protobuf.Timestamp getFinishTime();
/**
* <pre>
* The time at which the operation failed or was completed successfully.
* </pre>
*
* <code>.google.protobuf.Timestamp finish_time = 3;</code>
*/
com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder();
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
59275f546d4cfa094f7c384348692b6962922c8a
|
9cee9d7219193795895bcfb1d342fe19f5b15c83
|
/netlibrary/src/main/java/com/geziwulian/netlibrary/utils/ConstantUtil.java
|
533dca969defef4398016dca95cbdf4f66abad01
|
[] |
no_license
|
DavyJohn/GeziAndroid
|
ae73e866d850768c4403b424bb8b89b9a3d28e2f
|
d9c64c66532010183ecf7850277b7e2766c3b02e
|
refs/heads/master
| 2020-04-12T06:41:49.031776
| 2016-10-20T08:42:46
| 2016-10-20T08:42:46
| 64,716,218
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 933
|
java
|
package com.geziwulian.netlibrary.utils;
import android.content.Context;
/**
* Created by yyx on 16/3/1.
*/
public class ConstantUtil {
/**
* 服务器地址
*/
public static final String API_HOST = "https://v1.ibangi.cn/api/";
/**
* 预定加密字符串
*/
public static final String SCRECT_STR = "ycTdDZtjCqNNevYSCjtgOcGWggJL9OQnlVYs";
public static final String HEADER_ACCEPT = "Accept";
public static final String HEADER_ACCEPT_VALVE = "application/vnd.ibang12345.v1+json";
public static final String CONTENT_TYPE = "Content-Type";
public static final String CONTENT_TYPE_JSON = "application/json";
public static final String CONTENT_TYPE_FILE = "multipart/form-data";
public static final String AUTHORIZZTION = "Authorization";
public static final String USER_PHONE_NUMBER = "USER_PHONE_NUMBER";
public static final String USER_NAME = "USER_NAME";
}
|
[
"1139099003@qq.com"
] |
1139099003@qq.com
|
26f7eecfbcbcb59a77ace6ad3260e24319e74b2c
|
4a6f37db71a57b796161f19b61b345f0bbe8714e
|
/stack/src/exception/EmptyStackException.java
|
1e16472e95255a18967a579973cee4c3aa62d1c4
|
[] |
no_license
|
matana/java
|
68f90db42884973f6a4044f77282c4fa8ea555bf
|
dbc704a9c479bc916aa7b02f3dba0a5fb774a12c
|
refs/heads/master
| 2021-06-13T06:11:11.621463
| 2017-06-26T19:57:52
| 2017-06-26T19:57:52
| 55,959,099
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 248
|
java
|
package exception;
public class EmptyStackException extends Exception {
private static final long serialVersionUID = 1L;
public EmptyStackException() {
super();
}
public EmptyStackException(String message) {
super(message);
}
}
|
[
"atanassov.mihail@gmail.com"
] |
atanassov.mihail@gmail.com
|
3db83d39945042b3416627e3ba5a8bfa1cc9ac66
|
3b5dce38a7ec8186b434dd96b0143b6c6ed7b584
|
/jbbvm/bbvm-core/src/main/java/me/wener/bbvm/vm/SymbolTable.java
|
8a709a89368e303d67a3c55eed52ca407ea64618
|
[
"Apache-2.0"
] |
permissive
|
wenerme/bbvm
|
be4cb9481425ccdb89e1527f5b7da9e754305378
|
764e6f07536ca9e530be76110a641346f2294cb4
|
refs/heads/master
| 2023-03-18T17:36:48.928196
| 2021-06-27T19:03:36
| 2021-06-27T19:03:36
| 23,155,396
| 16
| 4
|
Apache-2.0
| 2023-03-07T01:14:52
| 2014-08-20T16:19:48
|
Java
|
UTF-8
|
Java
| false
| false
| 320
|
java
|
package me.wener.bbvm.vm;
import java.util.Map;
import java.util.NavigableMap;
/**
* @author wener
* @since 15/12/11
*/
public interface SymbolTable {
Symbol getSymbol(String name);
Symbol getSymbol(int address);
Map<String, Symbol> getNameMap();
NavigableMap<Integer, Symbol> getAddressMap();
}
|
[
"wenermail@gmail.com"
] |
wenermail@gmail.com
|
2a271b19cc23c9b152e590bcfc517a9270a0743b
|
c94f888541c0c430331110818ed7f3d6b27b788a
|
/ak_400ea6dfa54b4ff2b087cdac4431e34b/java/src/main/java/com/antgroup/antchain/openapi/ak_400ea6dfa54b4ff2b087cdac4431e34b/models/Config.java
|
05f7f84da98ef1fbfb48fffbbd8afc223614c8be
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
alipay/antchain-openapi-prod-sdk
|
48534eb78878bd708a0c05f2fe280ba9c41d09ad
|
5269b1f55f1fc19cf0584dc3ceea821d3f8f8632
|
refs/heads/master
| 2023-09-03T07:12:04.166131
| 2023-09-01T08:56:15
| 2023-09-01T08:56:15
| 275,521,177
| 9
| 10
|
MIT
| 2021-03-25T02:35:20
| 2020-06-28T06:22:14
|
PHP
|
UTF-8
|
Java
| false
| false
| 5,775
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.ak_400ea6dfa54b4ff2b087cdac4431e34b.models;
import com.aliyun.tea.*;
/**
* Model for initing client
*/
public class Config extends TeaModel {
// accesskey id
@NameInMap("accessKeyId")
public String accessKeyId;
// accesskey secret
@NameInMap("accessKeySecret")
public String accessKeySecret;
// security token
@NameInMap("securityToken")
public String securityToken;
// http protocol
@NameInMap("protocol")
public String protocol;
// read timeout
@NameInMap("readTimeout")
public Number readTimeout;
// connect timeout
@NameInMap("connectTimeout")
public Number connectTimeout;
// http proxy
@NameInMap("httpProxy")
public String httpProxy;
// https proxy
@NameInMap("httpsProxy")
public String httpsProxy;
// endpoint
@NameInMap("endpoint")
public String endpoint;
// proxy white list
@NameInMap("noProxy")
public String noProxy;
// max idle conns
@NameInMap("maxIdleConns")
public Number maxIdleConns;
// user agent
@NameInMap("userAgent")
public String userAgent;
// socks5 proxy
@NameInMap("socks5Proxy")
public String socks5Proxy;
// socks5 network
@NameInMap("socks5NetWork")
public String socks5NetWork;
// 长链接最大空闲时长
@NameInMap("maxIdleTimeMillis")
public Number maxIdleTimeMillis;
// 长链接最大连接时长
@NameInMap("keepAliveDurationMillis")
public Number keepAliveDurationMillis;
// 最大连接数(长链接最大总数)
@NameInMap("maxRequests")
public Number maxRequests;
// 每个目标主机的最大连接数(分主机域名的长链接最大总数
@NameInMap("maxRequestsPerHost")
public Number maxRequestsPerHost;
public static Config build(java.util.Map<String, ?> map) throws Exception {
Config self = new Config();
return TeaModel.build(map, self);
}
public Config setAccessKeyId(String accessKeyId) {
this.accessKeyId = accessKeyId;
return this;
}
public String getAccessKeyId() {
return this.accessKeyId;
}
public Config setAccessKeySecret(String accessKeySecret) {
this.accessKeySecret = accessKeySecret;
return this;
}
public String getAccessKeySecret() {
return this.accessKeySecret;
}
public Config setSecurityToken(String securityToken) {
this.securityToken = securityToken;
return this;
}
public String getSecurityToken() {
return this.securityToken;
}
public Config setProtocol(String protocol) {
this.protocol = protocol;
return this;
}
public String getProtocol() {
return this.protocol;
}
public Config setReadTimeout(Number readTimeout) {
this.readTimeout = readTimeout;
return this;
}
public Number getReadTimeout() {
return this.readTimeout;
}
public Config setConnectTimeout(Number connectTimeout) {
this.connectTimeout = connectTimeout;
return this;
}
public Number getConnectTimeout() {
return this.connectTimeout;
}
public Config setHttpProxy(String httpProxy) {
this.httpProxy = httpProxy;
return this;
}
public String getHttpProxy() {
return this.httpProxy;
}
public Config setHttpsProxy(String httpsProxy) {
this.httpsProxy = httpsProxy;
return this;
}
public String getHttpsProxy() {
return this.httpsProxy;
}
public Config setEndpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
public String getEndpoint() {
return this.endpoint;
}
public Config setNoProxy(String noProxy) {
this.noProxy = noProxy;
return this;
}
public String getNoProxy() {
return this.noProxy;
}
public Config setMaxIdleConns(Number maxIdleConns) {
this.maxIdleConns = maxIdleConns;
return this;
}
public Number getMaxIdleConns() {
return this.maxIdleConns;
}
public Config setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public String getUserAgent() {
return this.userAgent;
}
public Config setSocks5Proxy(String socks5Proxy) {
this.socks5Proxy = socks5Proxy;
return this;
}
public String getSocks5Proxy() {
return this.socks5Proxy;
}
public Config setSocks5NetWork(String socks5NetWork) {
this.socks5NetWork = socks5NetWork;
return this;
}
public String getSocks5NetWork() {
return this.socks5NetWork;
}
public Config setMaxIdleTimeMillis(Number maxIdleTimeMillis) {
this.maxIdleTimeMillis = maxIdleTimeMillis;
return this;
}
public Number getMaxIdleTimeMillis() {
return this.maxIdleTimeMillis;
}
public Config setKeepAliveDurationMillis(Number keepAliveDurationMillis) {
this.keepAliveDurationMillis = keepAliveDurationMillis;
return this;
}
public Number getKeepAliveDurationMillis() {
return this.keepAliveDurationMillis;
}
public Config setMaxRequests(Number maxRequests) {
this.maxRequests = maxRequests;
return this;
}
public Number getMaxRequests() {
return this.maxRequests;
}
public Config setMaxRequestsPerHost(Number maxRequestsPerHost) {
this.maxRequestsPerHost = maxRequestsPerHost;
return this;
}
public Number getMaxRequestsPerHost() {
return this.maxRequestsPerHost;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
fa1264c32ded0af2fdb39134f35fb8e0a4382f1e
|
b796403692acd9cd1dcae90ee41c37ef4bc56f44
|
/CobolPorterParser/src/main/java/tr/com/vbt/java/general/JavaInnerClassElement.java
|
e5d8a1d929c5ec4cc3cc8a3bea28287a3563cb7b
|
[] |
no_license
|
latift/PorterEngine
|
7626bae05f41ef4e7828e13f2a55bf77349e1bb3
|
c78a12f1cb2e72c90b1b22d6f50f71456d0c4345
|
refs/heads/master
| 2023-09-02T05:16:24.793958
| 2021-09-29T12:02:52
| 2021-09-29T12:02:52
| 95,788,676
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,291
|
java
|
package tr.com.vbt.java.general;
import tr.com.vbt.java.AbstractJava;
import tr.com.vbt.java.AbstractJavaElement;
import tr.com.vbt.util.CustomStringUtils;
//01 WS-NUM1 PIC 9 --> int ws-num1;
//01 WS-NUM1 PIC A --> String ws-num1;
/**
*GROUP_DATA_TYPE-->
class WS_STUDENT_REC{
int WS_STUDENT_ID;
int WS_STUDENT_NAME;
int WS_STUDENT_ADDRESS;
@Override
public String toString() {
// TODO Auto-generated method stub
return super.toString();
}
}
*
*/
public class JavaInnerClassElement extends AbstractJavaElement{
private String className;
@Override
public boolean writeJavaToStream() throws Exception{ super.writeJavaToStream();
className=(String) this.parameters.get("dataName");
AbstractJavaElement.javaCodeBuffer.append("public "+JavaConstants.CLASS+ " "+ CustomStringUtils.replaceMiddleLineWithSubLine(className)+ " "+JavaConstants.OPEN_BRACKET+JavaConstants.NEW_LINE );
if(this.children!=null){
for (AbstractJava jge : children) {
jge.writeJavaToStream();
}
}
AbstractJavaElement.javaCodeBuffer.append(JavaConstants.NEW_LINE+JavaConstants.CLOSE_BRACKET);
return true;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
}
|
[
"latiftopcu@gmail.com"
] |
latiftopcu@gmail.com
|
aa5ce606e7142a310c359b8bf60e6da7f4936f88
|
3418f94731052fd741dacb0f41d13fdb90a53f69
|
/springboot-mq/src/main/java/cn/duwei/springboot/jdk/ConnectionFactoryUtil.java
|
1a7a5652b91e7d1d467f3e388d04e112768d467f
|
[] |
no_license
|
missyoufv/springboot-learn
|
9ecb70276512ea0eb8091e9a3b76d6081caf234e
|
f4faaa8fc3a15444e721ab6d7706abcad9940492
|
refs/heads/master
| 2022-12-23T09:05:29.127869
| 2020-05-30T07:29:29
| 2020-05-30T07:29:29
| 259,576,875
| 1
| 0
| null | 2022-11-14T23:09:14
| 2020-04-28T08:28:13
|
Java
|
UTF-8
|
Java
| false
| false
| 966
|
java
|
package cn.duwei.springboot.jdk;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
public class ConnectionFactoryUtil {
private static ConnectionFactory connectionFactory = null;
static {
connectionFactory = new ConnectionFactory();
connectionFactory.setUsername("duwei");
connectionFactory.setPassword("duwei");
connectionFactory.setHost("192.168.154.129");
connectionFactory.setPort(5672);
}
private ConnectionFactoryUtil() {
}
public static Connection getConnection() {
try {
return connectionFactory.newConnection();
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}
public static void close(Connection connection) {
try {
connection.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
"1234qwer"
] |
1234qwer
|
37c19ed7c1cb890338fe925132849d926e102240
|
c74c2e590b6c6f967aff980ce465713b9e6fb7ef
|
/game-logic/src/main/java/com/bdoemu/core/network/receivable/CMRemoveCharacterFromField.java
|
f8e70f997a2bd8d383842efa34788da410103dc5
|
[] |
no_license
|
lingfan/bdoemu
|
812bb0abb219ddfc391adadf68079efa4af43353
|
9c49b29bfc9c5bfe3192b2a7fb1245ed459ef6c1
|
refs/heads/master
| 2021-01-01T13:10:13.075388
| 2019-12-02T09:23:20
| 2019-12-02T09:23:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,374
|
java
|
package com.bdoemu.core.network.receivable;
import com.bdoemu.commons.model.enums.EStringTable;
import com.bdoemu.commons.network.ReceivablePacket;
import com.bdoemu.commons.network.SendablePacket;
import com.bdoemu.core.configs.LocalizingOptionConfig;
import com.bdoemu.core.network.GameClient;
import com.bdoemu.core.network.sendable.SMRemoveCharacterFromField;
import com.bdoemu.core.network.sendable.SMRemoveCharacterFromFieldNak;
import com.bdoemu.gameserver.databaseCollections.PlayersDBCollection;
import com.bdoemu.gameserver.databaseCollections.ServantsDBCollection;
import com.bdoemu.gameserver.dataholders.ItemData;
import com.bdoemu.gameserver.model.items.templates.ItemTemplate;
import com.bdoemu.gameserver.service.GameTimeService;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
public class CMRemoveCharacterFromField extends ReceivablePacket<GameClient> {
private long objectId;
public CMRemoveCharacterFromField(final short opcode) {
super(opcode);
}
protected void read() {
this.objectId = this.readQ();
readC();
}
public void runImpl() {
final BasicDBObject removed = ((GameClient) this.getClient()).getLoginAccountInfo().getPlayer(this.objectId);
if (removed != null) {
long deletionDate = removed.getLong("deletionDate");
if (deletionDate > 0L) {
return;
}
final BasicDBObject playerBag = (BasicDBObject) removed.get("playerBag");
final BasicDBObject equipment = (BasicDBObject) playerBag.get("Equipments");
final BasicDBObject inventory = (BasicDBObject) playerBag.get("Inventory");
final BasicDBList equipmentDB = (BasicDBList) equipment.get("items");
for (final Object anEquipmentDB : equipmentDB) {
final BasicDBObject itemDB = (BasicDBObject) anEquipmentDB;
final int itemId = itemDB.getInt("itemId");
final ItemTemplate template = ItemData.getInstance().getItemTemplate(itemId);
if (template.getNeedContribute() != null) {
this.sendPacket((SendablePacket) new SMRemoveCharacterFromFieldNak(this.objectId, EStringTable.eErrNoRemoveCharacterByExporePointItem));
return;
}
}
final BasicDBList inventoryDB = (BasicDBList) inventory.get("items");
for (final Object anInventoryDB : inventoryDB) {
final BasicDBObject itemDB2 = (BasicDBObject) anInventoryDB;
final int itemId2 = itemDB2.getInt("itemId");
final ItemTemplate template2 = ItemData.getInstance().getItemTemplate(itemId2);
if (template2.getNeedContribute() != null) {
this.sendPacket((SendablePacket) new SMRemoveCharacterFromFieldNak(this.objectId, EStringTable.eErrNoRemoveCharacterByExporePointItem));
return;
}
}
final long playerObjectId = removed.getLong("_id");
if (ServantsDBCollection.getInstance().isSummonedByPlayer(playerObjectId)) {
this.sendPacket((SendablePacket) new SMRemoveCharacterFromFieldNak(this.objectId, EStringTable.eErrNoRemoveCharacterByServant));
return;
}
final int level = removed.getInt("level");
deletionDate = GameTimeService.getServerTimeInSecond() + ((level < LocalizingOptionConfig.CHARACTER_REMOVE_TIME_CHECK_LEVEL) ? LocalizingOptionConfig.LOW_LEVEL_CHARACTER_REMOVE_TIME : LocalizingOptionConfig.CHARACTER_REMOVE_TIME);
if (GameTimeService.getServerTimeInSecond() >= deletionDate) {
((GameClient) this.getClient()).getLoginAccountInfo().getPlayers().remove(removed);
PlayersDBCollection.getInstance().delete(this.objectId);
((GameClient) this.getClient()).sendPacket((SendablePacket) new SMRemoveCharacterFromField(this.objectId, deletionDate, 0));
} else {
removed.append("deletionDate", (Object) deletionDate);
PlayersDBCollection.getInstance().updateDeletionDate(this.objectId, deletionDate);
((GameClient) this.getClient()).sendPacket((SendablePacket) new SMRemoveCharacterFromField(this.objectId, deletionDate, 1));
}
}
}
}
|
[
"511459965@qq.com"
] |
511459965@qq.com
|
f4ca41dc8d134e88766377d95eb4b33f10dea95a
|
a0de607d1c4eee25bc5083b6c1bd32a7a460ac4a
|
/sdks/java/http_client/v1/src/test/java/org/openapitools/client/model/V1ListOrganizationsResponseTest.java
|
b79416e2d1961baef2b9fb511c662b885246da08
|
[
"Apache-2.0"
] |
permissive
|
gaocegege/polyaxon
|
c4c54ba7d8620039e61fdb1badcf9612e17b8990
|
4552d5ed1f76abba3d0281dba6ada993542bb612
|
refs/heads/master
| 2022-08-22T01:10:12.722744
| 2020-05-22T15:15:34
| 2020-05-22T15:17:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,387
|
java
|
// Copyright 2018-2020 Polyaxon, 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.
/*
* Polyaxon SDKs and REST API specification.
* Polyaxon SDKs and REST API specification.
*
* The version of the OpenAPI document: 1.0.90
* Contact: contact@polyaxon.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.model;
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 java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.V1Organization;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for V1ListOrganizationsResponse
*/
public class V1ListOrganizationsResponseTest {
private final V1ListOrganizationsResponse model = new V1ListOrganizationsResponse();
/**
* Model tests for V1ListOrganizationsResponse
*/
@Test
public void testV1ListOrganizationsResponse() {
// TODO: test V1ListOrganizationsResponse
}
/**
* Test the property 'count'
*/
@Test
public void countTest() {
// TODO: test count
}
/**
* Test the property 'results'
*/
@Test
public void resultsTest() {
// TODO: test results
}
/**
* Test the property 'previous'
*/
@Test
public void previousTest() {
// TODO: test previous
}
/**
* Test the property 'next'
*/
@Test
public void nextTest() {
// TODO: test next
}
}
|
[
"mouradmourafiq@gmail.com"
] |
mouradmourafiq@gmail.com
|
42e58e1eb76b957fb876797b8b1d76a8ab95a1e6
|
3729763ddb479b21c7f3a5f1e0a9954500850b52
|
/targetSources/com/workday/sources/SexualOrientationRequestCriteriaType.java
|
b8750ea117b652faf2fbbaf4a2dc80c09dbdbd1c
|
[] |
no_license
|
SANDEEPERUMALLA/workdayscanner
|
fe0816e9a95de73a598d6e29be5b20aeeca6cb60
|
8a4c3660cc588402aa49f948afe2168c4faa9df5
|
refs/heads/master
| 2020-03-18T22:30:21.218489
| 2018-05-29T20:24:36
| 2018-05-29T20:24:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 812
|
java
|
package com.workday.sources;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* The Criteria of the request
*
* <p>Java class for Sexual_Orientation_Request_CriteriaType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Sexual_Orientation_Request_CriteriaType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Sexual_Orientation_Request_CriteriaType")
public class SexualOrientationRequestCriteriaType {
}
|
[
"p.sandeepkumargupta@gmail.com"
] |
p.sandeepkumargupta@gmail.com
|
24405a1f66902b9c116ac22610a922856d692429
|
8dadce08a76ce387608951673fc0364feaa9a06a
|
/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/ie/widget/IEReusableWidget.java
|
851e716d6c18931499db25fa1a4fae5f9e034687
|
[] |
no_license
|
melbarra/openflexo
|
b8e1a97d73a9edebad198df4e776d396ae8e9a09
|
9b2d8efe1982ec8f64dee8c43a2e7207594853f3
|
refs/heads/master
| 2021-01-24T02:22:47.141424
| 2012-03-12T00:15:57
| 2012-03-12T00:15:57
| 2,756,256
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,141
|
java
|
/*
* (c) Copyright 2010-2011 AgileBirds
*
* This file is part of OpenFlexo.
*
* OpenFlexo 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.
*
* OpenFlexo 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 OpenFlexo. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.openflexo.foundation.ie.widget;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openflexo.foundation.Inspectors;
import org.openflexo.foundation.ie.ComponentInstanceOwner;
import org.openflexo.foundation.ie.IEObject;
import org.openflexo.foundation.ie.IEWOComponent;
import org.openflexo.foundation.ie.IObject;
import org.openflexo.foundation.ie.PartialComponentInstance;
import org.openflexo.foundation.ie.cl.PartialComponentDefinition;
import org.openflexo.foundation.ie.dm.ReusableWidgetRemoved;
import org.openflexo.foundation.rm.FlexoProject;
import org.openflexo.foundation.xml.FlexoComponentBuilder;
import org.openflexo.inspector.InspectableObject;
import org.openflexo.logging.FlexoLogger;
public abstract class IEReusableWidget<C extends PartialComponentDefinition,CI extends PartialComponentInstance> extends IEWidget implements ComponentInstanceOwner, InspectableObject
{
private static final Logger logger = FlexoLogger.getLogger(IEReusableWidget.class.getPackage().getName());
protected CI reusableComponentInstance;
/**
* Constructor used by deserialization
* @param builder
*/
public IEReusableWidget(FlexoComponentBuilder builder) {
this(builder.woComponent, null,builder.getProject());
}
private IEReusableWidget(IEWOComponent woComponent, IEObject parent, FlexoProject prj)
{
super(woComponent, parent, prj);
}
/**
* Constructor used at runtime
* @param woComponent
* @param componentDefinition
* @param parent
* @param prj
*/
public IEReusableWidget(IEWOComponent woComponent, C componentDefinition, IEObject parent, FlexoProject prj)
{
this(woComponent, parent, prj);
if (componentDefinition!=null) {
reusableComponentInstance = createComponentInstance(componentDefinition, woComponent);
reusableComponentInstance.setReusableWidget(this);
}
}
protected abstract CI createComponentInstance(C componentDefinition, IEWOComponent woComponent);
@Override
public void performAfterDeleteOperations() {
super.performAfterDeleteOperations();
getReusableComponentInstance().delete();
setChanged();
notifyObservers(new ReusableWidgetRemoved(this));
}
public CI getReusableComponentInstance()
{
return reusableComponentInstance;
}
public void setReusableComponentInstance(CI widgetComponentInstance)
{
if(reusableComponentInstance!=null)
reusableComponentInstance.delete();
reusableComponentInstance = widgetComponentInstance;
if(widgetComponentInstance!=null){
widgetComponentInstance.setReusableWidget(this);
}
}
@Override
public void setWOComponent(IEWOComponent woComponent) {
if (reusableComponentInstance!=null)
reusableComponentInstance.updateDependancies(getWOComponent(), woComponent);
super.setWOComponent(woComponent);
}
@Override
public Vector<IObject> getEmbeddedIEObjects()
{
Vector<IObject> answer = new Vector<IObject>();
answer.add(reusableComponentInstance);
return answer;
}
public IEWidget getRootObject()
{
if (getReusableComponentInstance() != null)
return getReusableComponentInstance().getWOComponent().getRootSequence();
else {
if (logger.isLoggable(Level.WARNING))
logger.warning("Reusable component with no definition");
return null;
}
}
@Override
public String getInspectorName()
{
if (_inspectorName == null) {
return getDefaultInspectorName();
}
return _inspectorName;
}
@Override
public boolean areComponentInstancesValid() {
return this.reusableComponentInstance!=null && this.reusableComponentInstance.getComponentDefinition()!=null;
}
@Override
public String getDefaultInspectorName() {
return Inspectors.IE.REUSABLE_WIDGET_INSPECTOR;
}
@Override
public void removeInvalidComponentInstances() {
if (this.reusableComponentInstance==null || this.reusableComponentInstance.getComponentDefinition()==null)
removeFromContainer();
}
@Override
public String getClassNameKey() {
return "reusable_widget";
}
@Override
public String getFullyQualifiedName() {
return null;
}
}
|
[
"guillaume.polet@gmail.com"
] |
guillaume.polet@gmail.com
|
74edbde697d6e464d6a7fb9c75bab170652316db
|
c4eed6d1086c85ea1cb31b45084009f9e564233a
|
/common/src/main/java/com/cross/utils/zookeeper/service/ZookeeperAbstractLock.java
|
e96625b645ffe1b99f0121154ba59247b8735f92
|
[] |
no_license
|
Dairy-cn/kjds
|
a6f91e752bc8c7c6a03aa6e604f1ab8cc79590a8
|
c7714a9d3eb8ea82588ab14f90414232766d486a
|
refs/heads/master
| 2023-07-28T22:38:43.661625
| 2020-06-15T14:33:40
| 2021-09-27T09:49:17
| 410,811,380
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,737
|
java
|
//package com.hpkj.utils.zookeeper.service;
//
//
//import org.I0Itec.zkclient.ZkClient;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import java.util.concurrent.CountDownLatch;
//
///**
// * @ProjectName: qianxiaohao
// * @ClassName: ZookeeperAbstractLock
// * @Author: dary
// * @Description:
// * @Version: 1.0
// */
//
//public abstract class ZookeeperAbstractLock implements ExtLock {
//
//
// private static final Logger log = LoggerFactory.getLogger(ZookeeperAbstractLock.class);
//
//
// /**
// * 集群地址
// */
//// protected String CONNECTION="127.0.0.1:2181";
//
////
//// protected ZookeeperLockLocalUtil zookeeperLockLocalUtil=new ZookeeperLockLocalUtil();
////
//// protected ZkClient zkClient=new ZkClient(zookeeperLockLocalUtil.url);
//
//
// protected CountDownLatch countDownLatch = new CountDownLatch(1);
//
// public void getLock(String lockPath, ZkClient zkClient) {
// if (tryLock(lockPath, zkClient)) {
// log.info("#####获取锁成功######");
// } else {
// waitLock(lockPath, zkClient);
// getLock(lockPath, zkClient);
// }
// }
//
// /**
// * 获取锁
// *
// * @param lockPath
// * @return
// */
// public abstract boolean tryLock(String lockPath, ZkClient zkClient);
//
//
// /**
// * 等待锁
// *
// * @return
// */
// public abstract void waitLock(String lockPath, ZkClient zkClient);
//
// /**
// * 释放锁
// */
// @Override
// public void unLock(ZkClient zkClient) {
// if (zkClient != null) {
// log.info("######释放锁######");
// zkClient.close();
//
// }
//
//
// }
//
//
//}
|
[
"2997266712@qq.com"
] |
2997266712@qq.com
|
3ef6d338b0b277d57fb72da4a56ce6ed3504bee2
|
31a8861a391903739f7065725615eb38d2add5f2
|
/modules/test-enterprise/test-enterprise-suite/src/test/java/org/jbpm/test/jms/QueueMapMessageTest.java
|
bce9e2e81863438be4e1ee8e837c508d6b22ee6d
|
[] |
no_license
|
achrafelkari/jbpm4community
|
8b6cda20bfcf1a3dc290ac7d3088b5fe25a64aa3
|
68218dbcfaca0de06226c7b5437d6c54516893a9
|
refs/heads/master
| 2020-05-17T22:19:19.883824
| 2010-07-21T03:20:35
| 2010-07-21T03:20:35
| 34,602,056
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,036
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jbpm.test.jms;
import javax.jms.MapMessage;
import javax.jms.Session;
import junit.framework.Test;
import org.apache.cactus.ServletTestSuite;
import org.jbpm.test.JbpmTestCase;
public class QueueMapMessageTest extends JbpmTestCase {
public static Test suite() {
ServletTestSuite servletTestSuite = new ServletTestSuite();
servletTestSuite.addTestSuite(QueueMapMessageTest.class);
return servletTestSuite;
}
protected void setUp() throws Exception {
super.setUp();
registerDeployment(repositoryService.createDeployment().addResourceFromClasspath("org/jbpm/test/jms/queue.map.process.jpdl.xml").deploy());
}
public void testQueueMapMessage() throws Exception {
executionService.startProcessInstanceByKey("JmsQueueMap");
MapMessage mapMessage = (MapMessage) jmsConsumeMessageFromQueue("java:JmsXA", "queue/jbpm-test-queue", 1000, false, Session.AUTO_ACKNOWLEDGE);
assertTrue(mapMessage.itemExists("x"));
assertEquals("foo", mapMessage.getObject("x"));
}
}
|
[
"lingosurf168@gmail.com@4176473f-49b9-eb0f-29b8-c11706d975a3"
] |
lingosurf168@gmail.com@4176473f-49b9-eb0f-29b8-c11706d975a3
|
3c6a19102fb54097d807257884b40277ae18da2a
|
12a99ab3fe76e5c7c05609c0e76d1855bd051bbb
|
/src/main/java/com/alipay/api/response/AlipayMarketingDataDeerInsightQueryResponse.java
|
4b2df8a858954d5becf6b915c70d0ad5fd477775
|
[
"Apache-2.0"
] |
permissive
|
WindLee05-17/alipay-sdk-java-all
|
ce2415cfab2416d2e0ae67c625b6a000231a8cfc
|
19ccb203268316b346ead9c36ff8aa5f1eac6c77
|
refs/heads/master
| 2022-11-30T18:42:42.077288
| 2020-08-17T05:57:47
| 2020-08-17T05:57:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 873
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.marketing.data.deer.insight.query response.
*
* @author auto create
* @since 1.0, 2019-05-22 14:30:20
*/
public class AlipayMarketingDataDeerInsightQueryResponse extends AlipayResponse {
private static final long serialVersionUID = 3133513553248862823L;
/**
* 凤蝶洞察信息
*/
@ApiField("result")
private String result;
/**
* 请求是否成功
*/
@ApiField("success")
private Boolean success;
public void setResult(String result) {
this.result = result;
}
public String getResult( ) {
return this.result;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Boolean getSuccess( ) {
return this.success;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
78103361b7b96c058f23dd10b533a14e3410d0ed
|
bebd89940b37962e290968b1a39aa1a5a305ed53
|
/src/main/java/com/honeywell/fireiot/entity/FormData.java
|
25b7b79f2f8cf815b227d4b1996c4acdd84bd7a6
|
[] |
no_license
|
tanxiaoqiao/iot
|
911a26494b003758c3d26e5ee57e3bde9af1f85e
|
eb911c0b07974282996c0e7f9f0be426684ab1c5
|
refs/heads/master
| 2022-07-02T10:10:31.530354
| 2019-07-29T01:14:13
| 2019-07-29T01:14:13
| 199,354,147
| 1
| 3
| null | 2021-04-26T19:22:49
| 2019-07-29T01:03:27
|
Java
|
UTF-8
|
Java
| false
| false
| 854
|
java
|
package com.honeywell.fireiot.entity;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import javax.persistence.Id;
import java.util.List;
/**
* 动态表单数据存储类
*
* @Author: zhenzhong.wang@honeywell.com
* @Date: 2018/12/3 1:52 PM
*/
@Data
@Document(collection = "formData")
public class FormData {
@Id
private String id;
@Indexed
private String uuid; // 表单编号
private String name; // 表单名称
private String description;
private boolean isRoot; // 是否为根表单
private int layoutMode = 1; // 布局模式,1为Element独占一行,2为根据Element中的length进行布局
private List<FormStructure> subForms;
private List<FormElement> elements;
}
|
[
"george.qian@honeywell.com"
] |
george.qian@honeywell.com
|
65eee5e89bdb2f91b2a7e47aae8c51098d4c2cb2
|
9fa5ebf072a9b341c544428442d905aac45b66f1
|
/source/Tooling/pre-migration/technical feasibility tool/TFT/eu.artist.premigration.tft/src/eu/artist/premigration/tft/tft/effort/EffortCalculator.java
|
5fbfda970fac6660be9794c7591ea66ed77cfb91
|
[] |
no_license
|
greenandro/ARTIST
|
0f8cc7be6be73bf443e17c29d62d722fa96b8ad0
|
ef914b42703c1b513568ff343e0bddb33f4c32c2
|
refs/heads/master
| 2020-06-25T22:44:13.258083
| 2020-06-19T10:22:06
| 2020-06-19T10:22:06
| 96,996,203
| 0
| 0
| null | 2017-07-12T10:37:27
| 2017-07-12T10:37:27
| null |
UTF-8
|
Java
| false
| false
| 2,847
|
java
|
/*******************************************************************************
* Copyright (c) 2014 Atos.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Burak Karaboga (Atos) - main development
* Initially developed in the context of ARTIST EU project www.artist-project.eu
*******************************************************************************/
package eu.artist.premigration.tft.tft.effort;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Properties;
import eu.artist.premigration.tft.tft.model.Component;
import eu.artist.premigration.tft.tft.model.migrationstrategy.MigrationStrategy;
/**
* Singleton providing methods for calculating the effort needed to migrate a certain component to the cloud
* according to the migration strategies
*
* @author Burak Karaboga
*
*/
public enum EffortCalculator {
INSTANCE;
//Loading the effort weights for each strategy category
private static Properties effortProperties;
static {
try {
effortProperties = new Properties();
effortProperties.load(EffortCalculator.class.getResourceAsStream("effort_weight.properties"));
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* Returns effort weight for given strategy
*
* @param migrationStrategy {@link} MigrationStrategy for which the effort will be calculated
* @return Effort weight value for given strategy
*/
public int getEffortWeightForStrategy (MigrationStrategy migrationStrategy){
String weight = (String) effortProperties.get(migrationStrategy.getCategory().name()+ "." + migrationStrategy.getComplexity().name());
if (weight != null) {
return Integer.valueOf(weight);
}
return -1;
}
/**
* Calculates the effort needed for migration for a specific component
* @param component {@link} Component for which the effort will be calculated
* @return Effort weight value for given component
*/
public BigDecimal calculateEffortForComponent (Component component){
float effort = 0;
for(MigrationStrategy strategy : component.getMigrationStrategies()){
float effortForStrategy = calculateEffortForStrategy(component, strategy);
if (!Float.isNaN(effortForStrategy))
effort += effortForStrategy;
}
BigDecimal bdEffort = BigDecimal.valueOf(effort);
return bdEffort.setScale(2, BigDecimal.ROUND_HALF_UP);
}
public float calculateEffortForStrategy (Component component, MigrationStrategy strategy){
return getEffortWeightForStrategy(strategy)*component.getComplexity();
}
}
|
[
"burak.karaboga@atos.net"
] |
burak.karaboga@atos.net
|
2241dc62384f254cf6547d7ae05b73db924c9a0c
|
2c6e2ba03eb71ca45fe690ff6e4586f6e2fa0f17
|
/material/apks/banco/sources/ar/com/santander/rio/mbanking/app/ui/activities/SuscripcionActivity$$ViewInjector.java
|
d2e4a6c071cd902e63c6dc904bac4db7e8e20fcd
|
[] |
no_license
|
lcrcastor/curso-mobile-2019
|
3088a196139b3e980ed6e09797a0bbf5efb6440b
|
7585fccb6437a17c841772c1d9fb0701d6c68042
|
refs/heads/master
| 2023-04-06T21:46:32.333236
| 2020-10-30T19:47:54
| 2020-10-30T19:47:54
| 308,680,747
| 0
| 1
| null | 2023-03-26T06:57:57
| 2020-10-30T16:08:31
|
Java
|
UTF-8
|
Java
| false
| false
| 2,159
|
java
|
package ar.com.santander.rio.mbanking.app.ui.activities;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import ar.com.santander.rio.mbanking.R;
import ar.com.santander.rio.mbanking.view.EditTextValidator;
import butterknife.ButterKnife.Finder;
public class SuscripcionActivity$$ViewInjector {
public static void inject(Finder finder, SuscripcionActivity suscripcionActivity, Object obj) {
suscripcionActivity.aceptarButton = (Button) finder.findRequiredView(obj, R.id.aceptarButton, "field 'aceptarButton'");
suscripcionActivity.linearCelular = (LinearLayout) finder.findRequiredView(obj, R.id.linearCelular, "field 'linearCelular'");
suscripcionActivity.linearCelular1 = (LinearLayout) finder.findRequiredView(obj, R.id.linearCelular1, "field 'linearCelular1'");
suscripcionActivity.linearMail = (LinearLayout) finder.findRequiredView(obj, R.id.linearMail, "field 'linearMail'");
suscripcionActivity.empresaCelular = (LinearLayout) finder.findRequiredView(obj, R.id.empresaCelular, "field 'empresaCelular'");
suscripcionActivity.idLine = finder.findRequiredView(obj, R.id.idLine2, "field 'idLine'");
suscripcionActivity.textViewCelular = (TextView) finder.findRequiredView(obj, R.id.idCelular, "field 'textViewCelular'");
suscripcionActivity.textViewEmpresaCelular = (TextView) finder.findRequiredView(obj, R.id.idEmpresaCelular, "field 'textViewEmpresaCelular'");
suscripcionActivity.editTextMail = (EditTextValidator) finder.findRequiredView(obj, R.id.emailSusc, "field 'editTextMail'");
}
public static void reset(SuscripcionActivity suscripcionActivity) {
suscripcionActivity.aceptarButton = null;
suscripcionActivity.linearCelular = null;
suscripcionActivity.linearCelular1 = null;
suscripcionActivity.linearMail = null;
suscripcionActivity.empresaCelular = null;
suscripcionActivity.idLine = null;
suscripcionActivity.textViewCelular = null;
suscripcionActivity.textViewEmpresaCelular = null;
suscripcionActivity.editTextMail = null;
}
}
|
[
"luis@MARK-2.local"
] |
luis@MARK-2.local
|
be1caafde5971a6e54b0d3a482c1cfc496eb80ca
|
f3f9f231f6e9d97c4e87ff2aff6517f890bcc459
|
/android/lesson13-16.10.17/DialogFragment/app/src/main/java/example/com/dialogfragment/MyDialogFragment.java
|
ae0081a3e03638c6a6071a15ef1b47931cb3f324
|
[] |
no_license
|
maayanpolitzer/Android2017May
|
24dcde4d6f9a49ec5757a921f0cd34443eb580f5
|
209eee60d78e05fd345f3ae47dd3d3d63cb9b731
|
refs/heads/master
| 2021-01-23T04:49:19.733026
| 2017-11-07T15:22:15
| 2017-11-07T15:22:15
| 92,943,597
| 5
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,258
|
java
|
package example.com.dialogfragment;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
/**
* Created by hackeru on 10/16/2017.
*/
public class MyDialogFragment extends DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
Bundle bundle = getArguments();
String name = bundle.getString("name");
return new AlertDialog.Builder(getActivity())
.setTitle("Are you sure " + name)
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// finish the activity...
((MyListener)getActivity()).closeApp();
}
})
.setNegativeButton("No", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
((MyListener)getActivity()).displayToast("working");
}
})
.create();
}
}
|
[
"maayanp163@gmail.com"
] |
maayanp163@gmail.com
|
a95e6cada19583c7d506e8aaa59e0a5cbeaacdb0
|
5464a3b66cada36c41d194b8803fb082f9b1fe51
|
/lib/api/models/requests/PaymentAgentWithdrawalRequest.java
|
6a0caae7b624e366ab2ef5b1bdeed93b6a8e29f9
|
[] |
no_license
|
tlmacedo/myBinary
|
de5d765ae93a8575385942f733bbe1afe462820d
|
3c99e6654331608d585152c339985d3856db9d83
|
refs/heads/master
| 2022-12-08T03:21:42.550516
| 2020-08-16T22:49:51
| 2020-08-16T22:49:51
| 288,034,261
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,524
|
java
|
package api.models.requests;
import api.models.responses.PaymentAgentWithdrawalResponse;
import com.google.gson.annotations.SerializedName;
import java.math.BigDecimal;
/**
* <h1>PaymentAgentWithdrawalRequest</h1>
*
* <h2>Payment Agent Withdrawal Request</h2>
* <p>Initiate a withdrawal to an approved Payment Agent.</p>
*
* @author Morteza Tavanarad
* @version 1.0.0
* @since 9/15/2017
*/
public class PaymentAgentWithdrawalRequest extends RequestBase {
@SerializedName("paymentagent_withdraw")
private final int paymentAgentWithdraw = 1;
/**
* The payment agent loginid received from the paymentagent_list call
*/
@SerializedName("paymentagent_loginid")
private String loginId;
/**
* Currency
*/
@SerializedName("currency")
private String currency;
/**
* Amount
*/
@SerializedName("amount")
private BigDecimal amount;
/**
* Email verification code (received from a verify_email call, which must be done first)
*/
@SerializedName("verification_code")
private String verificationCode;
/**
* Optional field for remarks about the withdraw. Only letters, numbers, space, period, comma, - ' are allowed.
*/
@SerializedName("description")
private String description;
/**
* If 1, just do validation
*/
@SerializedName("dry_run")
private Integer dryRun;
public PaymentAgentWithdrawalRequest() {
this.responseType = PaymentAgentWithdrawalResponse.class;
}
public String getLoginId() {
return loginId;
}
public void setLoginId(String loginId) {
this.loginId = loginId;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public String getVerificationCode() {
return verificationCode;
}
public void setVerificationCode(String verificationCode) {
this.verificationCode = verificationCode;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean getDryRun() {
return dryRun == 1 ? true : false;
}
public void setDryRun(boolean dryRun) {
this.dryRun = dryRun ? 1 : 0;
}
}
|
[
"tl.macedo@hotmail.com"
] |
tl.macedo@hotmail.com
|
2b5710fe6a50a145976ef27d731d98e976884658
|
592602b2786ad48e2c1d288182498ea623c6a324
|
/source/exceptions/com/compilerUser/exceptions/FatalCompilationException.java
|
9aba808e6941a950419723a3f9f9cf5ec0432578
|
[
"MIT"
] |
permissive
|
raphaelcohn/compilerUser
|
3dbdad7c2b4e8d6296f201a6973750455cf21f5f
|
293a91a061f5616ebfdcd45f97b8806e6474d2eb
|
refs/heads/master
| 2016-09-16T01:27:12.210877
| 2015-08-03T14:28:41
| 2015-08-03T14:28:41
| 39,946,175
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 981
|
java
|
/*
* This file is part of compilerUser. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/raphaelcohn/compilerUser/master/COPYRIGHT. No part of compilerUser, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
* Copyright © 2014-2015 The developers of compilerUser. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/raphaelcohn/compilerUser/master/COPYRIGHT.
*/
package com.compilerUser.exceptions;
import org.jetbrains.annotations.NotNull;
public final class FatalCompilationException extends Exception
{
public FatalCompilationException(@NotNull final String message)
{
super(message);
}
public FatalCompilationException(@NotNull final String message, @NotNull final Exception cause)
{
super(message, cause);
}
}
|
[
"raphael.cohn@stormmq.com"
] |
raphael.cohn@stormmq.com
|
6982dbf7ede9ef430b31bc7161c6726edf6503ce
|
bbfd3058f560ee3d440a78bfc73763f34371be33
|
/src/main/java/com/kunyao/assistant/web/service/OrderService.java
|
c7b432d7718095061e479409d5f156f18b42cbd1
|
[] |
no_license
|
xiaoniao/temp
|
34ff1a3670699aca679dc3ab1d9f1979c26eb15b
|
1bb437c2a2b2b03cbd6b74190bff9b05de57ea29
|
refs/heads/master
| 2021-04-26T22:27:52.144518
| 2018-03-06T15:15:52
| 2018-03-06T15:15:52
| 124,095,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,242
|
java
|
package com.kunyao.assistant.web.service;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.kunyao.assistant.core.entity.PageData;
import com.kunyao.assistant.core.entity.PageInfo;
import com.kunyao.assistant.core.exception.ServiceException;
import com.kunyao.assistant.core.generic.GenericService;
import com.kunyao.assistant.core.model.Order;
public interface OrderService extends GenericService<Order, Integer> {
void loop() throws ServiceException;
Order createOrder(Integer userId, Integer crossUserId, String startTime, String endTime, String couponId, Integer payMethod,
Integer cityId, Integer isNeedInvoice, String invoiceTitle, String invoiceAddress, String invoicePeople, String invoiceMobile) throws ParseException, ServiceException;
Order fillOrder(Integer orderId, Integer isNeedInvoice, String invoiceTitle, String invoiceAddress,
String invoicePeople, String invoiceMobile, Integer contactMethod, Integer costPayMethod,
String travelDescId, String travelRequireText, String travelRequireVoice) throws ServiceException;
Map<String, Object> payOrder(HttpServletRequest request, Order order) throws ServiceException;
Map<String, Object> payOrder(HttpServletRequest request, Integer orderId) throws ServiceException;
Order finishPay(Integer orderId, String thirdTradeNo);
Order queryOrderInfo(Integer orderId);
Order queryOrderByOrderCard(String orderCard) throws ServiceException;
Order queryOrderRequire(Integer orderId);
Map<String, Object> queryPayInfo(Integer userId, Integer day) throws ServiceException;
/**
* 金鹰端 查询金鹰订单列表
*/
PageData<Order> queryByCrossUserId(Integer crossUserId, String search, Integer currentPage, Integer pagesize) throws ServiceException;
/**
* 金鹰端 订单详情
*/
Order queryOrderDetail(Integer orderId) throws ServiceException;
/**
* 订单列表-用户端
* @param userId
* @param currentPage
* @param pageSize
* @return
*/
public PageData<Order> queryOrderList(Integer userId, Integer currentPage, Integer pageSize);
/**
* 用户取消 订单
* @param orderId
*/
public Order updateCancelOrder(Integer orderId) throws ServiceException;
/**
* 根据金鹰用户id查询有无服务中的订单
* @param crossUserId
* @return
*/
public int findOrderByCrossUserId(Integer crossUserId);
public PageData<Order> findOrderListWithTravel(Integer userId, Integer currentPage, Integer pageSize);
/**
* 后台订单列表
* @param currentPage
* @param rowNum
* @param order
* @return
*/
public List<Order> queryList(Integer currentPage, Integer rowNum, Order order);
/**
* 后台订单列表数量
*
* @param model
* @return int
*/
PageInfo selectListCount(Integer pageSize, Order order);
/**
* 订单详情
* @param orderId
* @return
*/
public Order queryDetail(Integer orderId);
/**
* 结束服务投诉订单
* @param orderId
* @param refundMethod
* @return
*/
public int updateEndComplaintOrder(Integer orderId, Integer refundMethod) throws ServiceException;
/**
* 直接结束服务退款
* @param orderId
* @return
*/
public int updateEndService(Integer orderId) throws ServiceException;
/**
* 用户更换金鹰
* @param orderId
* @return
*/
public int updateOrderReplaceCross(Integer orderId, Integer crossId) throws ServiceException;
/**
* 金鹰更换金鹰
* @param orderId
* @return
*/
public int updateCrossReplaceCross(Integer orderId, Integer crossId) throws ServiceException;
/**
* 账单异议订单列表
* @return
*/
public List<Order> objectionOrderList(Integer currentPage, Integer pagesize, Order model);
/**
* 账单异议订单列表数量
*
* @param model
* @return int
*/
PageInfo objectionOrderCount(Integer pageSize, Order order);
/**
* 提前结束订单列表
* @param currentPage
* @param pagesize
* @param model
* @return
*/
public List<Order> orderEndList(Integer currentPage, Integer pagesize, Order model);
/**
* 晚9点未结束订单数量
*
* @param model
* @return int
*/
public Integer orderNineCount();
/**
* 晚9点未结束订单
* @param currentPage
* @param pagesize
* @param model
* @return
*/
public List<Order> orderNineList(Integer currentPage, Integer pagesize, Order model);
/**
* 提前结束订单列表数量
*
* @param model
* @return int
*/
PageInfo orderEndCount(Integer pageSize, Order order);
/**
* 投诉订单列表
* @param currentPage
* @param pagesize
* @param model
* @return
*/
public List<Order> orderComplaintList(Integer currentPage, Integer pagesize, Order model);
/**
* 投诉订单列表数量
*
* @param model
* @return int
*/
PageInfo orderComplaintCount(Integer pageSize, Order order);
Map<String, Object> findOrderTotalInfo(Integer orderId) throws ServiceException;
Order findOrderRequireInfo(Integer orderId) throws NumberFormatException, ServiceException;
/**
* 查询金鹰历史订单
*/
PageData<Order> queryCrossHistoryOrder(Integer crossUserId, Integer currentPage, Integer pagesize);
/**
* 金鹰端 查询订单详情
*/
Order queryCrossOrderInfo(Integer orderId);
/**
* 查找最后一条订单的流水号
*/
Integer queryLastOrderNo();
/**
* 输入服务编码
*/
Order serviceCode(Integer orderId, String serviceCode) throws ServiceException;
/**
* 金鹰编辑订单
*/
Order edit(Integer orderId, Integer contactMethod, Integer costPayMethod) throws ServiceException;
Order selectOrderNotFinished(Integer userId) throws ServiceException;
int updatePlaceOrder(Integer orderId, String date, Double money) throws ServiceException;
int findCountServing(Integer userId) throws ServiceException;
}
|
[
"401111207@qq.com"
] |
401111207@qq.com
|
26b8a9f9bfde80f5b21e631d84221b569eaf99c6
|
ecce768f98461211d0b2fb894fc4ab563b5a7891
|
/src/dev/mikit/atcoder/lib/math/euclid/BigIntEuclidSolver.java
|
8dd5a607285c6a527a4acf84f77088d372a8d4a0
|
[] |
no_license
|
m1kit/competitive-lib
|
12ef4cb31cd32d10617a1352cc20173ce9a407b5
|
bf12f1430c095ec31df629ff1ad7972763d53184
|
refs/heads/master
| 2021-06-12T22:04:26.452820
| 2021-03-22T04:58:21
| 2021-03-22T04:58:21
| 167,724,265
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,022
|
java
|
package dev.mikit.atcoder.lib.math.euclid;
import dev.mikit.atcoder.lib.math.geo.Vec3bi;
import java.math.BigInteger;
public class BigIntEuclidSolver {
/**
* Solves ax+by=gcd(a, b).
*
* @param a
* @param b
* @return (a, b, gcd (a, b))
*/
public static Vec3bi solve(BigInteger a, BigInteger b) {
ReferenceBigInt p = new ReferenceBigInt(), q = new ReferenceBigInt();
BigInteger d = solve(a, b, p, q);
return new Vec3bi(p.val, q.val, d);
}
private static BigInteger solve(BigInteger a, BigInteger b, ReferenceBigInt p, ReferenceBigInt q) {
if (BigInteger.ZERO.equals(b)) {
p.val = BigInteger.ONE;
q.val = BigInteger.ZERO;
return a;
} else {
BigInteger d = solve(b, a.mod(b), q, p);
q.val = q.val.subtract(a.divide(b).multiply(p.val));
return d;
}
}
private static class ReferenceBigInt {
private BigInteger val = BigInteger.ZERO;
}
}
|
[
"mikihito0906@gmail.com"
] |
mikihito0906@gmail.com
|
c6b92693ede86fda41d2aa6db62476d31ba76fa5
|
aa15f9df4b59e733b3e7aaf666f4d61311a0d5d1
|
/src/lintcode/LongestCommonPrefix.java
|
aa7960fa07933d029c7fb9d4bddaca3f9ce4ceb3
|
[] |
no_license
|
ifhuang/Problems
|
7a7343b0bb0d2b4af94d35f3b978b2c81b71026b
|
36fd59f159f416bd9104c1d7f1d250c5bc7f32b8
|
refs/heads/master
| 2021-01-17T09:30:08.102953
| 2016-05-14T12:36:29
| 2016-05-14T12:36:29
| 23,748,984
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 726
|
java
|
package lintcode;
// http://www.lintcode.com/en/problem/longest-common-prefix/
public class LongestCommonPrefix {
/**
* @param strs: A list of strings
* @return: The longest common prefix
*/
public String longestCommonPrefix(String[] strs) {
// write your code here
if (strs.length == 0) {
return "";
}
int min = Integer.MAX_VALUE;
for (String s : strs) {
min = Math.min(min, s.length());
}
int i = 0;
for (; i < min; i++) {
int j = 1;
for (; j < strs.length; j++) {
if (strs[j].charAt(i) != strs[0].charAt(i)) {
break;
}
}
if (j < strs.length) {
break;
}
}
return strs[0].substring(0, i);
}
}
|
[
"ifhuang91@gmail.com"
] |
ifhuang91@gmail.com
|
688947a9687f014a6dee3febe65bd9ed07a4de3e
|
34c8b01849d7265c73bcc696e7f0c11312c7f84d
|
/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt/ImageTag.java
|
37eb6334fce43e68dee95bf0b5e9293bcd53cd5e
|
[
"Apache-2.0"
] |
permissive
|
pwntester/jelly
|
03ddb422005970ddfc86f0e1cc7c5b5a84f7e431
|
cb7966734f339619e5ee8e57b08009acbf5e1d10
|
refs/heads/master
| 2021-01-16T11:55:47.916026
| 2017-11-27T20:21:47
| 2017-11-27T20:21:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,398
|
java
|
/*
* Copyright 2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.jelly.tags.swt;
import java.io.InputStream;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.TagSupport;
import org.apache.commons.jelly.XMLOutput;
import org.apache.commons.jelly.util.ClassLoaderUtils;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Decorations;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Widget;
/**
* This creates an image on the parent Widget.
*
* @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster</a>
* @version CVS ImageTag.java,v 1.5 2004/09/07 02:41:40 dion Exp
*/
public class ImageTag extends TagSupport {
/** path to file */
private String src;
/** variable name, if specified */
private String var;
/** resource name, if specified */
private String resource;
/**
* Sets the resource
* @param resource image resource location
*/
public void setResource(String resource) {
this.resource = resource;
}
/**
* Obtains the resource
* @return the image resource
*/
public String getResource() {
return resource;
}
/**
* Sets the variable name
*/
public void setVar(String var) {
this.var = var;
}
/**
* Obtain the variable name.
* @return String the variable name
*/
public String getVar() {
return this.var;
}
/**
* Sets the src.
* @param src The src to set
*/
public void setSrc(String src) {
this.src = src;
}
/**
* Method getSrc.
* @return String
*/
public String getSrc() {
return src;
}
/**
* @return the parent widget which this widget will be added to.
*/
public Widget getParentWidget() {
WidgetTag tag = (WidgetTag) findAncestorWithClass(WidgetTag.class);
if (tag != null) {
return tag.getWidget();
}
return null;
}
// Tag interface
//-------------------------------------------------------------------------
/**
* @see org.apache.commons.jelly.Tag#doTag(org.apache.commons.jelly.XMLOutput)
*/
public void doTag(XMLOutput output) throws JellyTagException {
// invoke by body just in case some nested tag configures me
invokeBody(output);
Widget parent = getParentWidget();
if (parent == null) {
throw new JellyTagException("This tag must be nested within a Widget or a Window");
}
Image image = null;
if (getSrc() != null) {
image = loadLocalImage(parent.getDisplay());
} else if (getResource() != null) {
image = loadResourceImage(parent.getDisplay());
} else {
throw new JellyTagException("Either an image location or a resource must be specified");
}
setWidgetImage(parent, image);
// store the image as a context variable if specified
if (var != null) {
context.setVariable(var, image);
}
}
/**
* Creates an Image, loaded from the local disk
*/
private Image loadLocalImage(Display display) {
return new Image(display, getSrc());
}
/**
* Creates an Image, loaded from a specified resource.
*/
private Image loadResourceImage(Display display) {
ClassLoader loader = ClassLoaderUtils.getClassLoader(null, getContext().getUseContextClassLoader(), getClass());
InputStream stream = loader.getResourceAsStream(getResource());
return new Image(display, stream);
}
/**
* Add image to a widget
* @param parent
* @param image
* @throws JellyTagException
*/
protected void setWidgetImage(Widget parent, Image image) throws JellyTagException {
if (parent instanceof Label) {
Label label = (Label) parent;
label.setImage(image);
} else if (parent instanceof Button) {
Button button = (Button) parent;
button.setImage(image);
} else if (parent instanceof Item) {
Item item = (Item) parent;
item.setImage(image);
} else if (parent instanceof Decorations) {
Decorations item = (Decorations) parent;
item.setImage(image);
} else {
throw new JellyTagException("This tag must be nested inside a <label>, <button>, <shell> or <item> tag");
}
}
}
|
[
"kk@kohsuke.org"
] |
kk@kohsuke.org
|
b05e2efe1e17a922541ea7c7199d44d651d74dc8
|
ab1d7509916b188d251485d9e5f03dca004e4fb2
|
/src/test/java/ru/javawebinar/topjava/UserTestData.java
|
42c90944f33461e1db0a27c532568fd2d0a9f20c
|
[] |
no_license
|
VladimirTischenko/topjava8_old
|
f346d5743a7ca9bbf91719b04c6689f68c60ce21
|
f5d4bf00be015fb740bc2c112283da8103f2a52d
|
refs/heads/master
| 2021-06-05T21:47:52.943930
| 2016-10-25T08:18:35
| 2016-10-25T08:18:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,446
|
java
|
package ru.javawebinar.topjava;
import ru.javawebinar.topjava.matcher.ModelMatcher;
import ru.javawebinar.topjava.model.Role;
import ru.javawebinar.topjava.model.User;
import java.util.Objects;
import static ru.javawebinar.topjava.model.BaseEntity.START_SEQ;
/**
* GKislin
* 24.09.2015.
*/
public class UserTestData {
public static final int USER_ID = START_SEQ;
public static final int ADMIN_ID = START_SEQ + 1;
public static final User USER = new User(USER_ID, "User", "user@yandex.ru", "password", Role.ROLE_USER);
public static final User ADMIN = new User(ADMIN_ID, "Admin", "admin@gmail.com", "admin", Role.ROLE_ADMIN, Role.ROLE_USER);
public static final ModelMatcher<User> MATCHER = new ModelMatcher<>(User.class,
(expected, actual) -> expected == actual ||
(Objects.equals(expected.getPassword(), actual.getPassword())
&& Objects.equals(expected.getId(), actual.getId())
&& Objects.equals(expected.getName(), actual.getName())
&& Objects.equals(expected.getEmail(), actual.getEmail())
&& Objects.equals(expected.getCaloriesPerDay(), actual.getCaloriesPerDay())
&& Objects.equals(expected.isEnabled(), actual.isEnabled())
&& Objects.equals(expected.getRoles(), actual.getRoles())
)
);
}
|
[
"vtischenko@meta.ua"
] |
vtischenko@meta.ua
|
81b6b1522205cdc14f413433becfe3d4ba44dc21
|
c4d1992bbfe4552ad16ff35e0355b08c9e4998d6
|
/releases/2.0.0RC/src/java/org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder.java
|
cde4c76d172450f7f0444a0ff159f3ed8ea2df8b
|
[] |
no_license
|
BGCX261/zkpoi-svn-to-git
|
36f2a50d2618c73e40f24ddc2d3df5aadc8eca30
|
81a63fb1c06a2dccff20cab1291c7284f1687508
|
refs/heads/master
| 2016-08-04T08:42:59.622864
| 2015-08-25T15:19:51
| 2015-08-25T15:19:51
| 41,594,557
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,214
|
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.poi.hssf.eventusermodel;
import java.util.ArrayList;
import java.util.List;
import org.apache.poi.hssf.model.HSSFFormulaParser;
import org.apache.poi.hssf.model.InternalWorkbook;
import org.apache.poi.hssf.record.BoundSheetRecord;
import org.apache.poi.hssf.record.EOFRecord;
import org.apache.poi.hssf.record.ExternSheetRecord;
import org.apache.poi.hssf.record.Record;
import org.apache.poi.hssf.record.SSTRecord;
import org.apache.poi.hssf.record.SupBookRecord;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
/**
* When working with the EventUserModel, if you want to
* process formulas, you need an instance of
* {@link InternalWorkbook} to pass to a {@link HSSFWorkbook},
* to finally give to {@link HSSFFormulaParser},
* and this will build you stub ones.
* Since you're working with the EventUserModel, you
* wouldn't want to get a full {@link InternalWorkbook} and
* {@link HSSFWorkbook}, as they would eat too much memory.
* Instead, you should collect a few key records as they
* go past, then call this once you have them to build a
* stub {@link InternalWorkbook}, and from that a stub
* {@link HSSFWorkbook}, to use with the {@link HSSFFormulaParser}.
*
* The records you should collect are:
* * {@link ExternSheetRecord}
* * {@link BoundSheetRecord}
* You should probably also collect {@link SSTRecord},
* but it's not required to pass this in.
*
* To help, this class includes a HSSFListener wrapper
* that will do the collecting for you.
*/
public class EventWorkbookBuilder {
/**
* Creates a stub Workbook from the supplied records,
* suitable for use with the {@link HSSFFormulaParser}
* @param externs The ExternSheetRecords in your file
* @param bounds The BoundSheetRecords in your file
* @param sst The SSTRecord in your file.
* @return A stub Workbook suitable for use with {@link HSSFFormulaParser}
*/
public static InternalWorkbook createStubWorkbook(ExternSheetRecord[] externs,
BoundSheetRecord[] bounds, SSTRecord sst) {
List wbRecords = new ArrayList();
// Core Workbook records go first
if(bounds != null) {
for(int i=0; i<bounds.length; i++) {
wbRecords.add(bounds[i]);
}
}
if(sst != null) {
wbRecords.add(sst);
}
// Now we can have the ExternSheetRecords,
// preceded by a SupBookRecord
if(externs != null) {
wbRecords.add(SupBookRecord.createInternalReferences(
(short)externs.length));
for(int i=0; i<externs.length; i++) {
wbRecords.add(externs[i]);
}
}
// Finally we need an EoF record
wbRecords.add(EOFRecord.instance);
return InternalWorkbook.createWorkbook(wbRecords);
}
/**
* Creates a stub workbook from the supplied records,
* suitable for use with the {@link HSSFFormulaParser}
* @param externs The ExternSheetRecords in your file
* @param bounds The BoundSheetRecords in your file
* @return A stub Workbook suitable for use with {@link HSSFFormulaParser}
*/
public static InternalWorkbook createStubWorkbook(ExternSheetRecord[] externs,
BoundSheetRecord[] bounds) {
return createStubWorkbook(externs, bounds, null);
}
/**
* A wrapping HSSFListener which will collect
* {@link BoundSheetRecord}s and {@link ExternSheetRecord}s as
* they go past, so you can create a Stub {@link InternalWorkbook} from
* them once required.
*/
public static class SheetRecordCollectingListener implements HSSFListener {
private HSSFListener childListener;
private List boundSheetRecords = new ArrayList();
private List externSheetRecords = new ArrayList();
private SSTRecord sstRecord = null;
public SheetRecordCollectingListener(HSSFListener childListener) {
this.childListener = childListener;
}
public BoundSheetRecord[] getBoundSheetRecords() {
return (BoundSheetRecord[])boundSheetRecords.toArray(
new BoundSheetRecord[boundSheetRecords.size()]
);
}
public ExternSheetRecord[] getExternSheetRecords() {
return (ExternSheetRecord[])externSheetRecords.toArray(
new ExternSheetRecord[externSheetRecords.size()]
);
}
public SSTRecord getSSTRecord() {
return sstRecord;
}
public HSSFWorkbook getStubHSSFWorkbook() {
return HSSFWorkbook.create(getStubWorkbook());
}
public InternalWorkbook getStubWorkbook() {
return createStubWorkbook(
getExternSheetRecords(), getBoundSheetRecords(),
getSSTRecord()
);
}
/**
* Process this record ourselves, and then
* pass it on to our child listener
*/
public void processRecord(Record record) {
// Handle it ourselves
processRecordInternally(record);
// Now pass on to our child
childListener.processRecord(record);
}
/**
* Process the record ourselves, but do not
* pass it on to the child Listener.
*/
public void processRecordInternally(Record record) {
if(record instanceof BoundSheetRecord) {
boundSheetRecords.add(record);
}
else if(record instanceof ExternSheetRecord) {
externSheetRecords.add(record);
}
else if(record instanceof SSTRecord) {
sstRecord = (SSTRecord)record;
}
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
a30d1c65c2207be77e4efea9c838cfb3bf8e1374
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-110-18-SPEA2-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest_scaffolding.java
|
0504430c3c9f730cc98de13f4c3f9a500c7fafed
|
[] |
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
* Tue Apr 07 04:56:21 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
|
a0160375b64a414a57823b6f5cb4a75a5d747089
|
29157211b23507a88a58a31585cbb819f9ed6b0e
|
/open-metadata-implementation/repository-services/repository-services-apis/src/main/java/org/odpi/openmetadata/repositoryservices/events/v1/OMRSEventV1.java
|
d587d617fca90a3566827062dbc6873c46b63c72
|
[
"Apache-2.0"
] |
permissive
|
zbraiterman/egeria
|
252fc64e0dae0765261fb246efd4f778c7425835
|
10f74db0d9a6ede87ffc5f0c9bfdb58864e8e08c
|
refs/heads/master
| 2020-03-22T16:34:31.443953
| 2018-07-04T14:00:37
| 2018-07-04T14:00:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,389
|
java
|
/* SPDX-License-Identifier: Apache-2.0 */
package org.odpi.openmetadata.repositoryservices.events.v1;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openmetadata.repositoryservices.events.OMRSEventCategory;
import org.odpi.openmetadata.repositoryservices.events.OMRSEventOriginator;
import java.io.Serializable;
import java.util.Date;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
/**
* OMRSEventV1 is the OMRSEvent payload for version 1 of the open metadata and governance message exchange.
*/
@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class OMRSEventV1 implements Serializable
{
private static final long serialVersionUID = 1L;
private final String protocolVersionId = "OMRS V1.0";
private Date timestamp = null;
private OMRSEventOriginator originator = null;
private OMRSEventCategory eventCategory = null;
private OMRSEventV1RegistrySection registryEventSection = null;
private OMRSEventV1TypeDefSection typeDefEventSection = null;
private OMRSEventV1InstanceSection instanceEventSection = null;
private OMRSEventV1ErrorSection errorSection = null;
public OMRSEventV1()
{
}
public String getProtocolVersionId()
{
return protocolVersionId;
}
public Date getTimestamp()
{
return timestamp;
}
public void setTimestamp(Date timestamp)
{
this.timestamp = timestamp;
}
public OMRSEventOriginator getOriginator()
{
return originator;
}
public void setOriginator(OMRSEventOriginator originator)
{
this.originator = originator;
}
public OMRSEventCategory getEventCategory()
{
return eventCategory;
}
public void setEventCategory(OMRSEventCategory eventCategory)
{
this.eventCategory = eventCategory;
}
public OMRSEventV1RegistrySection getRegistryEventSection()
{
return registryEventSection;
}
public void setRegistryEventSection(OMRSEventV1RegistrySection registryEventSection)
{
this.registryEventSection = registryEventSection;
}
public OMRSEventV1TypeDefSection getTypeDefEventSection()
{
return typeDefEventSection;
}
public void setTypeDefEventSection(OMRSEventV1TypeDefSection typeDefEventSection)
{
this.typeDefEventSection = typeDefEventSection;
}
public OMRSEventV1InstanceSection getInstanceEventSection()
{
return instanceEventSection;
}
public void setInstanceEventSection(OMRSEventV1InstanceSection instanceEventSection)
{
this.instanceEventSection = instanceEventSection;
}
public OMRSEventV1ErrorSection getErrorSection()
{
return errorSection;
}
public void setErrorSection(OMRSEventV1ErrorSection errorSection)
{
this.errorSection = errorSection;
}
}
|
[
"mandy_chessell@uk.ibm.com"
] |
mandy_chessell@uk.ibm.com
|
bde3221aa18844592a95ec35fee24a75f31dbac6
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes10.dex_source_from_JADX/com/facebook/widget/recyclerview/interleaved/InterleavedRecyclerViewAdapter.java
|
1f564c5cbe2bb944ed56cea63d524c8014e9e6dd
|
[] |
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
| 5,040
|
java
|
package com.facebook.widget.recyclerview.interleaved;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.Adapter;
import android.support.v7.widget.RecyclerView.AdapterDataObserver;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.util.SparseIntArray;
import android.view.ViewGroup;
/* compiled from: exposure_point */
public class InterleavedRecyclerViewAdapter<IA extends Adapter<? super ViewHolder> & Interleavable<? super ViewHolder>> extends Adapter<ViewHolder> implements Interleavable<ViewHolder> {
private final WhichAdapterInfo f12994a = new WhichAdapterInfo();
private final SparseIntArray f12995b;
public final Adapter[] f12996c;
private final ForwardingDataObserver f12997d = new ForwardingDataObserver(this);
/* compiled from: exposure_point */
class ForwardingDataObserver extends AdapterDataObserver {
final /* synthetic */ InterleavedRecyclerViewAdapter f12991a;
public ForwardingDataObserver(InterleavedRecyclerViewAdapter interleavedRecyclerViewAdapter) {
this.f12991a = interleavedRecyclerViewAdapter;
}
public final void bb_() {
m13021b();
}
public final void m13022a(int i, int i2) {
m13021b();
}
public final void m13024b(int i, int i2) {
m13021b();
}
public final void m13025c(int i, int i2) {
m13021b();
}
public final void m13023a(int i, int i2, int i3) {
m13021b();
}
private void m13021b() {
this.f12991a.notifyDataSetChanged();
}
}
/* compiled from: exposure_point */
public class WhichAdapterInfo {
public int f12992a;
public int f12993b;
}
public InterleavedRecyclerViewAdapter(IA ia, Adapter adapter) {
boolean z = ia.en_() && adapter.en_();
super.a(z);
this.f12995b = new SparseIntArray();
this.f12996c = new Adapter[2];
this.f12996c[0] = ia;
this.f12996c[1] = adapter;
}
public final ViewHolder m13029a(ViewGroup viewGroup, int i) {
return this.f12996c[this.f12995b.get(i)].a(viewGroup, i);
}
public final void m13031a(ViewHolder viewHolder, int i) {
WhichAdapterInfo g = m13028g(i);
this.f12996c[g.f12992a].a(viewHolder, g.f12993b);
}
public final int aZ_() {
return this.f12996c[0].aZ_() + this.f12996c[1].aZ_();
}
public int getItemViewType(int i) {
WhichAdapterInfo g = m13028g(i);
int itemViewType = this.f12996c[g.f12992a].getItemViewType(g.f12993b);
this.f12995b.put(itemViewType, g.f12992a);
return itemViewType;
}
public final long H_(int i) {
WhichAdapterInfo g = m13028g(i);
Adapter adapter = this.f12996c[g.f12992a];
long H_ = adapter.H_(g.f12993b);
return (31 * ((long) adapter.hashCode())) + ((H_ >>> 32) ^ H_);
}
public final void m13032a(boolean z) {
this.f12996c[0].a(z);
this.f12996c[1].a(z);
}
public final void m13030a(ViewHolder viewHolder) {
this.f12996c[this.f12995b.get(viewHolder.e)].a(viewHolder);
}
public final boolean m13035b(ViewHolder viewHolder) {
return this.f12996c[this.f12995b.get(viewHolder.e)].b(viewHolder);
}
public final void m13036c(ViewHolder viewHolder) {
this.f12996c[this.f12995b.get(viewHolder.e)].c(viewHolder);
}
public final void m13037d(ViewHolder viewHolder) {
this.f12996c[this.f12995b.get(viewHolder.e)].d(viewHolder);
}
public final void a_(RecyclerView recyclerView) {
this.f12996c[0].a(this.f12997d);
this.f12996c[0].a_(recyclerView);
this.f12996c[1].a(this.f12997d);
this.f12996c[1].a_(recyclerView);
}
public final void m13033b(RecyclerView recyclerView) {
this.f12996c[0].b(recyclerView);
this.f12996c[0].b(this.f12997d);
this.f12996c[1].b(recyclerView);
this.f12996c[1].b(this.f12997d);
}
public final boolean mo451b(int i) {
return i < aZ_();
}
private void m13027a(WhichAdapterInfo whichAdapterInfo, int i) {
if (i < 0) {
throw new IllegalArgumentException("position=" + i);
} else if (((Interleavable) this.f12996c[0]).mo451b(i)) {
whichAdapterInfo.f12992a = 0;
whichAdapterInfo.f12993b = m13026a((Interleavable) this.f12996c[0], i);
} else {
whichAdapterInfo.f12992a = 1;
whichAdapterInfo.f12993b = i - m13026a((Interleavable) this.f12996c[0], i);
}
}
private WhichAdapterInfo m13028g(int i) {
m13027a(this.f12994a, i);
return this.f12994a;
}
public static int m13026a(Interleavable interleavable, int i) {
int i2 = 0;
for (int i3 = 0; i3 < i; i3++) {
if (interleavable.mo451b(i3)) {
i2++;
}
}
return i2;
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
4bd5c09e5c7b6f81f4ef03028b77243e692d2a3a
|
98503f4fef67ed9d01ce54ecac0267bf48adfa75
|
/Practices/src/ThinkingInJava/C15/GenericsAndCovariance.java
|
1ba4eddd73d92accab2d35fe547340b342fd43b7
|
[] |
no_license
|
kiribeam/practices
|
9a35bf01e93bf152a8371c9094c5606642242e0b
|
e60de9cb6c7d23d919403aabe3e415c04764f7cf
|
refs/heads/master
| 2020-06-26T11:19:13.125241
| 2019-07-30T09:28:40
| 2019-07-30T09:28:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
import java.util.*;
public class GenericsAndCovariance{
public static void main(String[] args){
List<? extends Fruit> flist = new ArrayList<Apple>();
//flist.add(new Apple());
//flist.add(new Fruit());
//flist.add(new Object());
flist.add(null);
Fruit f = flist.get(0);
}
}
|
[
"kiribeam@outlook.com"
] |
kiribeam@outlook.com
|
1f6423c3416ca20d32bbaa654d23e53c2949c641
|
427fddaae61e3e1c0dcc792f17ba37c79e339b98
|
/rabbit/src/main/java/com/helger/rabbit/util/SimpleUserHandler.java
|
17e938745d81e69a684f298ba15e2842be510224
|
[
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] |
permissive
|
phax/rabbit-proxy
|
7f96d42918cbca1f74ad001f83aded8962a986f6
|
b88b679465ee20cf1b8c0ade055912f8b88684b6
|
refs/heads/master
| 2023-08-27T20:40:44.834019
| 2019-03-27T13:06:45
| 2019-03-27T13:06:45
| 66,196,599
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,667
|
java
|
package com.helger.rabbit.util;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.helger.commons.io.stream.StreamHelper;
/**
* This is a class that handles users authentication using a simple text file.
*
* @author <a href="mailto:robo@khelekore.org">Robert Olofsson</a>
*/
public class SimpleUserHandler
{
private static final Logger LOGGER = LoggerFactory.getLogger (SimpleUserHandler.class);
private String userFile = null;
private Map <String, String> users = new HashMap <> ();
/**
* Set the file to use for users, will read the files. Will discard any
* previous loaded users.
*
* @param userFile
* the filename to read the users from.
*/
public void setFile (final String userFile)
{
this.userFile = userFile;
FileReader fr = null;
try
{
fr = new FileReader (userFile);
users = loadUsers (fr);
}
catch (final FileNotFoundException e)
{
LOGGER.warn ("could not load the users file: '" + userFile, e);
}
catch (final IOException e)
{
LOGGER.warn ("Error while loading the users file: '" + userFile, e);
}
finally
{
final Closeable c = fr;
StreamHelper.close (c);
}
}
/**
* Load the users from the given Reader.
*
* @param r
* the Reader with the users.
* @return a Map with usernames and passwords
* @throws IOException
* if reading the users fail
*/
public Map <String, String> loadUsers (final Reader r) throws IOException
{
final BufferedReader br = new BufferedReader (r);
String line;
final Map <String, String> u = new HashMap <> ();
while ((line = br.readLine ()) != null)
{
final String [] creds = line.split ("[: \n\t]");
if (creds.length != 2)
continue;
final String name = creds[0];
final String pass = creds[1];
u.put (name, pass);
}
return u;
}
/**
* Saves the users from the given Reader.
*
* @param r
* the Reader with the users.
* @throws IOException
* if reading the users fail if writing users fails
*/
public void saveUsers (final Reader r) throws IOException
{
if (userFile == null)
return;
final BufferedReader br = new BufferedReader (r);
try (PrintWriter fw = new PrintWriter (new FileWriter (userFile)))
{
String line;
while ((line = br.readLine ()) != null)
fw.println (line);
fw.flush ();
}
}
/**
* Return the hash of users.
*
* @return the Map of usernames to passwords
*/
public Map <String, String> getUsers ()
{
return users;
}
/**
* Set the usernames and passwords to use for authentication.
*
* @param users
* the new set of usernames and passwords
*/
public void setUsers (final Map <String, String> users)
{
this.users = users;
}
/**
* Check if a user/password combination is valid.
*
* @param username
* the username.
* @param password
* the decrypted password.
* @return true if both username and password match a valid user.
*/
public boolean isValidUser (final String username, final String password)
{
if (username == null)
return false;
final String pass = users.get (username);
return pass != null && password != null && pass.equals (password);
}
}
|
[
"philip@helger.com"
] |
philip@helger.com
|
6c9481e08dee6ff9c330525a91b97220ac78bb8f
|
ffee96d08ef70627194dcb8b73a2fdabbe6aa4f9
|
/src/main/java/de/ropemc/api/wrapper/net/minecraft/block/BlockCarpet.java
|
8c4b2b2db25e2b202cd8d94af992281b7dd9d471
|
[
"MIT"
] |
permissive
|
RopeMC/RopeMC
|
0db2b4dd78a1842708de69e2455b7e0f60e9b9c9
|
b464fb9a67e410355a6a498f2d6a2d3b0d022b3d
|
refs/heads/master
| 2021-07-09T18:04:37.632199
| 2019-01-02T21:48:17
| 2019-01-02T21:48:17
| 103,042,886
| 11
| 1
|
MIT
| 2018-11-24T16:06:35
| 2017-09-10T16:07:39
|
Java
|
UTF-8
|
Java
| false
| false
| 1,615
|
java
|
package de.ropemc.api.wrapper.net.minecraft.block;
import de.ropemc.api.wrapper.net.minecraft.world.World;
import de.ropemc.api.wrapper.net.minecraft.util.BlockPos;
import de.ropemc.api.wrapper.net.minecraft.block.state.IBlockState;
import de.ropemc.api.wrapper.net.minecraft.block.state.BlockState;
import de.ropemc.api.wrapper.net.minecraft.block.material.MapColor;
import de.ropemc.api.wrapper.net.minecraft.item.Item;
import de.ropemc.api.wrapper.net.minecraft.creativetab.CreativeTabs;
import java.util.List;
import de.ropemc.api.wrapper.net.minecraft.world.IBlockAccess;
import de.ropemc.api.wrapper.net.minecraft.util.EnumFacing;
import de.ropemc.api.wrapper.WrappedClass;
@WrappedClass("net.minecraft.block.BlockCarpet")
public interface BlockCarpet {
boolean canBlockStay(World var0, BlockPos var1);
boolean canPlaceBlockAt(World var0, BlockPos var1);
boolean checkForDrop(World var0, BlockPos var1, IBlockState var2);
BlockState createBlockState();
int damageDropped(IBlockState var0);
MapColor getMapColor(IBlockState var0);
int getMetaFromState(IBlockState var0);
IBlockState getStateFromMeta(int var0);
void getSubBlocks(Item var0, CreativeTabs var1, List var2);
boolean isFullCube();
boolean isOpaqueCube();
void onNeighborBlockChange(World var0, BlockPos var1, IBlockState var2, Block var3);
void setBlockBoundsBasedOnState(IBlockAccess var0, BlockPos var1);
void setBlockBoundsForItemRender();
void setBlockBoundsFromMeta(int var0);
boolean shouldSideBeRendered(IBlockAccess var0, BlockPos var1, EnumFacing var2);
}
|
[
"jan@bebendorf.eu"
] |
jan@bebendorf.eu
|
0f9bb6a51c7c26705de3811845e5545af363a404
|
d3e53fb7e786db061818bc927e77743f976aeeff
|
/src/main/java/com/gioov/nimrod/system/controller/AttachmentController.java
|
af3453cc6dbcbd588927a8e71274577644c47716
|
[
"MIT"
] |
permissive
|
VegTableBird/nimrod
|
e62b0ae9b98e57479410bdd52b6780a7681be9ea
|
905fbd4c31d4f7d3eb8cc68c4784a1fc53d34651
|
refs/heads/master
| 2020-04-27T07:22:29.610615
| 2019-03-01T09:03:30
| 2019-03-01T09:03:30
| 174,133,896
| 1
| 0
|
MIT
| 2019-03-06T11:40:15
| 2019-03-06T11:40:15
| null |
UTF-8
|
Java
| false
| false
| 1,415
|
java
|
package com.gioov.nimrod.system.controller;
import com.gioov.nimrod.common.Common;
import com.gioov.nimrod.common.Url;
import com.gioov.nimrod.system.System;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import static com.gioov.nimrod.user.service.UserService.SYSTEM_ADMIN;
/**
* @author godcheese [godcheese@outlook.com]
* @date 2018-02-22
*/
@Controller
@RequestMapping(System.Page.ATTACHMENT)
public class AttachmentController {
@PreAuthorize("hasRole('" + SYSTEM_ADMIN + "') OR hasAuthority('/SYSTEM/ATTACHMENT/PAGE_ALL')")
@RequestMapping("/page_all")
public String pageAll() {
return Common.trimSlash(System.Page.ATTACHMENT + "/page_all");
}
@PreAuthorize("isAuthenticated()")
@RequestMapping("/upload_one_dialog")
public String uploadOneDialog() {
return Common.trimSlash(System.Page.ATTACHMENT + "/upload_one_dialog");
}
@PreAuthorize("isAuthenticated()")
@RequestMapping("/upload_all_dialog")
public String uploadAllDialog() {
return Common.trimSlash(System.Page.ATTACHMENT + "/upload_all_dialog");
}
@PreAuthorize("isAuthenticated()")
@RequestMapping("/edit_dialog")
public String editDialog() {
return Common.trimSlash(System.Page.ATTACHMENT + "/edit_dialog");
}
}
|
[
"godcheese@outlook.com"
] |
godcheese@outlook.com
|
beb9f70a3955a391a44d9e625de114f2a4ede9f1
|
370aae4bdc2fae261b38e3e819696005b218f2a8
|
/server-rest/src/main/java/miage/pds/api/mmefire/uc/sms/dao/Message.java
|
378a14df02864654bb59a1157034c53c0f60d1c3
|
[] |
no_license
|
balamuthu1/CRM-Android
|
535fd7a80f88afe3dfdedb334d57a0a917aeec18
|
5dfe30a17bafbca4f9e74b1301ff23ac9e94eb56
|
refs/heads/master
| 2021-01-01T04:04:37.946795
| 2016-05-13T22:40:25
| 2016-05-13T22:40:25
| 58,776,231
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 587
|
java
|
package miage.pds.api.mmefire.uc.sms.dao;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import java.lang.String;
import java.util.Date;
@Entity
public class Message {
@Id
public String id;
public String content;
public String sender;
public String recipient;
public boolean statut;
public Date date;
public Message() {
super();
}
public Message(String id, String content, String sender, String recipient, Date date) {
this.content = content;
this.sender = sender;
this.recipient = recipient;
this.date = date;
}
}
|
[
"muthukumarasamy.balabascarin@etu.u-pec.fr"
] |
muthukumarasamy.balabascarin@etu.u-pec.fr
|
b1923554afe3b3dd0bb7b4d93473543df697c12d
|
81de1910ad0a1416076d80ce70ef6b20c2d26e01
|
/im/src/main/java/com/library/im/receiver/CallReceiver.java
|
0ee3e77fec7d089cb575bfe02bcb5f8c658ba304
|
[] |
no_license
|
duanjisi/Guapi
|
95ab6b7ff570f426f1a1853cb16a0715d56bd9a4
|
aded71013b5e261fd65c1238c63be7805dc1775a
|
refs/heads/master
| 2021-05-16T09:27:07.121809
| 2017-11-17T05:57:11
| 2017-11-17T05:57:11
| 104,427,172
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,883
|
java
|
///**
// * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
// *
// * Licensed under the Apache License, Version 2.0 (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// * http://www.apache.org/licenses/LICENSE-2.0
// * Unless required by applicable law or agreed to in writing, software
// * distributed under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//
//package com.library.im.receiver;
//
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//
//import com.hyphenate.util.EMLog;
//import com.library.im.controller.HxHelper;
//import com.library.im.ui.VideoCallActivity;
//import com.library.im.ui.VoiceCallActivity;
//
//public class CallReceiver extends BroadcastReceiver{
//
// @Override
// public void onReceive(Context context, Intent intent) {
// if(!HxHelper.getInstance().isLoggedIn())
// return;
// //拨打方username
// String from = intent.getStringExtra("from");
// //call type
// String type = intent.getStringExtra("type");
// if("video".equals(type)){ //视频通话
// context.startActivity(new Intent(context, VideoCallActivity.class).
// putExtra("username", from).putExtra("isComingCall", true).
// addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
// }else{ //音频通话
// context.startActivity(new Intent(context, VoiceCallActivity.class).
// putExtra("username", from).putExtra("isComingCall", true).
// addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
// }
// EMLog.d("CallReceiver", "app received a incoming call");
// }
//
//}
|
[
"576248427@qq.com"
] |
576248427@qq.com
|
07a6b463ef6898811a0bd232601c1a6aa66a0f4d
|
9ac8184133b176912b5489e9fe90046404cff6a3
|
/c-Java EE/0-MyBatis/MyBatis_SectionIII/TableRelationDemo/src/main/java/org/iqqcode/dao/IAccountDao.java
|
3492fe2a5fc48b5377537b2139fe5c11c84f14ae
|
[] |
no_license
|
IQQcode/Code-Java
|
d5524151b33811d423c6f877418b948f10f10c96
|
96b3157c16674be50e0b8a1ea58867a3de11d930
|
refs/heads/master
| 2022-12-27T12:32:05.824182
| 2022-07-31T09:32:18
| 2022-07-31T09:32:18
| 159,743,511
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 492
|
java
|
package org.iqqcode.dao;
import org.iqqcode.domain.Account;
import java.util.List;
/**
* @Author: Mr.Q
* @Date: 2020-04-19 15:31
* @Description:账户与用户一对一
*/
public interface IAccountDao {
/**
* 查询所有账户,同时还要获取到当前账户的所属用户信息
* @return
*/
List<Account> findAll();
/**
* 查询所有账户,并且带有用户名称和地址信息
* @return
*/
List<Account> findAccountUser();
}
|
[
"2726109782@qq.com"
] |
2726109782@qq.com
|
f391de8f116dcaa7554a3e824bfe29a446a2d85e
|
eb5f8863ce9e617b99e58a82927161b53d451b5c
|
/Particle.java
|
5328792a9b2c643d4784ba8f80f0c93e8fb7afde
|
[] |
no_license
|
ojasdeshpnde/ParticleFractalSimulation
|
5b44b53d31436e2df9f080c081f077da28c6ce69
|
f7447ae4fb2c9b9e7b22c2019c2e7000090d2e96
|
refs/heads/master
| 2021-09-15T00:12:54.891627
| 2018-05-22T16:24:19
| 2018-05-22T16:24:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 132
|
java
|
public class Particle
{
public int myX;
public int myY;
public Particle(int x ,int y) {
myX = x;
myY = y;
}
}
|
[
"root@localhost.localdomain"
] |
root@localhost.localdomain
|
d0bde85b0b8b96a5bb735f26774c06d7b11b0cd0
|
90159357decf6ffeccd8827bf56f86dc9e969603
|
/example/automenta/netention/demo/swing/RunAbout.java
|
53e5e397d9a421aff98ddfb0744890117cd468bf
|
[] |
no_license
|
automenta/automenta.spacegraphj
|
4c0fef50111db1d1ef356b31b57ed8f73c9beb94
|
63ce16396911104d3bbf7332f4306363e483a9da
|
refs/heads/master
| 2021-01-23T12:06:51.836749
| 2010-10-23T18:21:14
| 2010-10-23T18:21:14
| 977,630
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 758
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package automenta.netention.demo.swing;
import automenta.netention.demo.Demo;
import automenta.netention.demo.Demo;
import javax.swing.JPanel;
/**
*
* @author seh
*/
public class RunAbout implements Demo {
@Override
public String getName() {
return "What is Netention?";
}
@Override
public String getDescription() {
return "Introduction to the Netention system";
}
@Override
public JPanel newPanel() {
JPanel j = new JPanel();
return j;
}
//explain netention
//include all documentation
//powered by...
/*
* Java
* dANN
* JOGL
* etc
*/
}
|
[
"seh999@gmail.com"
] |
seh999@gmail.com
|
84bb8ecb5799fe0b89829ff0ce3ccb3cab121156
|
208ba847cec642cdf7b77cff26bdc4f30a97e795
|
/fg/fe/src/main/java/org.wp.fe/ui/stats/models/GeoviewModel.java
|
e301526b0c87d1eb614e30b510ef96eb53572eef
|
[] |
no_license
|
kageiit/perf-android-large
|
ec7c291de9cde2f813ed6573f706a8593be7ac88
|
2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8
|
refs/heads/master
| 2021-01-12T14:00:19.468063
| 2016-09-27T13:10:42
| 2016-09-27T13:10:42
| 69,685,305
| 0
| 0
| null | 2016-09-30T16:59:49
| 2016-09-30T16:59:48
| null |
UTF-8
|
Java
| false
| false
| 1,156
|
java
|
package org.wp.fe.ui.stats.models;
import java.io.Serializable;
/**
* A model to represent a geoview stat.
*/
public class GeoviewModel implements Serializable {
private final String mCountryShortName;
private final String mCountryFullName;
private int mViews;
private final String mFlagIconURL;
private final String mFlatFlagIconURL;
public GeoviewModel(String countryShortName, String countryFullName, int views, String flagIcon, String flatFlagIcon) {
this.mCountryShortName = countryShortName;
this.mCountryFullName = countryFullName;
this.mViews = views;
this.mFlagIconURL = flagIcon;
this.mFlatFlagIconURL = flatFlagIcon;
}
public String getCountryFullName() {
return mCountryFullName;
}
public String getCountryShortName() {
return mCountryShortName;
}
public int getViews() {
return mViews;
}
public void setViews(int views) {
this.mViews = views;
}
public String getFlagIconURL() {
return mFlagIconURL;
}
public String getFlatFlagIconURL() {
return mFlatFlagIconURL;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
9def220750222cb0d1d50fc8e5d1705168e44fe5
|
85720de1b78e09c53d0b113e08d91e30b2ce0f0f
|
/TimeManager/src/com/paySystem/ic/dao/message/MessFeeParamDAO.java
|
1f34b38672d50822c89a34fb8d0382b54e7e9f0d
|
[] |
no_license
|
supermanxkq/projects
|
4f2696708f15d82d6b8aa8e6d6025163e52d0f76
|
19925f26935f66bd196abe4831d40a47b92b4e6d
|
refs/heads/master
| 2020-06-18T23:48:07.576254
| 2016-11-28T08:44:15
| 2016-11-28T08:44:15
| 74,933,844
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,679
|
java
|
package com.paySystem.ic.dao.message;
import java.util.LinkedHashMap;
import java.util.List;
import com.paySystem.ic.bean.message.MessFeeParam;
import com.paySystem.ic.dao.common.DAO;
import com.paySystem.ic.web.dto.ReturnDTO;
import com.paySystem.ic.web.dto.message.MessageDTO;
/**
* @ClassName:MessParamDAO
* @Description:TODO
* @date: 2014-3-19上午11:48:33
* @author: 张亚运
* @version: V1.0
*/
public interface MessFeeParamDAO extends DAO<MessFeeParam> {
public static final String MESSFEEPARAMDAO= "messFeeParamDao";
/**
*@Title:queryAll
*@Description:查询短信参数方法
*@param:@param page
*@param:@param pageNum
*@param:@param messageDto
*@param:@param orderBy
*@param:@return
*@param:@throws Exception
*@return:List<MessageDTO>
*@author:张亚运
*@thorws:
*/
List<MessageDTO> queryAll(int page, int pageNum,
MessageDTO messageDto,LinkedHashMap<String, String> orderBy)
throws Exception;
/**
*@Title:saveMessFeeParam
*@Description:添加保存参数方法
*@param:@param messagedto
*@param:@return
*@return:MessageDTO
*@author:张亚运
*@thorws:
*/
public MessFeeParam saveMessFeeParam(MessageDTO messagedto);
/**
*@Title:updateMessFeeParam
*@Description:更新参数方法(修改)
*@param:@param messagedto
*@param:@return
*@return:ReturnDTO
*@author:张亚运
*@thorws:
*/
public ReturnDTO updateMessFeeParam(MessageDTO messagedto);
/**
*@Title:queryMessName
*@Description:查询参数名称是否存在
*@param:@param orgMerId
*@param:@return
*@return:boolean
*@author:张亚运
*@thorws:
*/
public boolean queryMessName(String messName);
}
|
[
"994028591@qq.com"
] |
994028591@qq.com
|
32042c3d5150990566229b6a25fb857e8329e2e5
|
61adb4fbead4f25a0fda9bd09f0e4781f46b0942
|
/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/ParamsTest.java
|
42c1949b690c20929927f7221162b889d12f7168
|
[
"Apache-2.0"
] |
permissive
|
kdnakt/quarkus
|
4772d02f4a6afea6dad40931f591583ea9016f2d
|
e3e1cc7a60bb9849d7122b5ddf58f4190ce5c772
|
refs/heads/master
| 2023-05-25T13:30:49.999376
| 2022-05-18T15:27:53
| 2022-05-18T15:27:53
| 230,545,590
| 3
| 0
|
Apache-2.0
| 2023-03-02T21:02:33
| 2019-12-28T02:07:52
|
Java
|
UTF-8
|
Java
| false
| false
| 4,373
|
java
|
package io.quarkus.it.extension;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.junit.jupiter.params.provider.ValueSource;
import io.quarkus.test.junit.QuarkusTest;
/**
* Exercise {@link ParameterizedTest @ParameterizedTest}s.
*
* <p>
* This test will run into <a href="https://github.com/x-stream/xstream/issues/253">x-stream/xstream#253</a> on Java 16 and
* newer if the custom XStream converters are not used
*/
@QuarkusTest
public class ParamsTest {
@ParameterizedTest
@ValueSource(booleans = { true, false })
public void valuesBooleans(boolean ignore) {
}
@ParameterizedTest
@ValueSource(strings = { "true", "false" })
public void valuesStrings(String ignore) {
}
@ParameterizedTest
@ValueSource(classes = { String.class, TestData.class })
public void valuesClasses(Class<?> ignore) {
}
@ParameterizedTest
@ValueSource(chars = { 'a', 'b', 'c' })
public void valuesChars(char ignore) {
}
@ParameterizedTest
@ValueSource(bytes = { (byte) 1, (byte) 2, (byte) 3 })
public void valuesBytes(byte ignore) {
}
@ParameterizedTest
@MethodSource("testDataStreamList")
public void methodStreamList(List<String> ignore) {
}
static Stream<List<String>> testDataStreamList() {
return Stream.of(Arrays.asList("a"), Arrays.asList("b"));
}
@ParameterizedTest
@MethodSource("testDataStreamListOf")
public void methodStreamListOf(List<String> ignore) {
}
static Stream<List<String>> testDataStreamListOf() {
return Stream.of(List.of("a"));
}
@ParameterizedTest
@MethodSource("testDataStreamSetOf")
public void methodStreamListOf(Set<String> ignore) {
}
static Stream<Set<String>> testDataStreamSetOf() {
return Stream.of(Set.of("a"));
}
@ParameterizedTest
@MethodSource("testDataStreamArrayList")
public void methodStreamArrayList(List<String> ignore) {
}
static Stream<List<String>> testDataStreamArrayList() {
return Stream.of(Collections.emptyList());
}
@ParameterizedTest
@MethodSource("testDataStream")
public void methodStream(TestData ignore) {
}
static Stream<TestData> testDataStream() {
return Stream.of(new TestData());
}
@ParameterizedTest
@MethodSource("testDataList")
public void methodList(TestData ignore) {
}
static List<TestData> testDataList() {
return List.of(new TestData());
}
@ParameterizedTest
@MethodSource("testDataStreamArguments")
public void methodList(TestData ignore, String ignored) {
}
static Stream<Arguments> testDataStreamArguments() {
return Stream.of(Arguments.of(new TestData(), "foo"));
}
@ParameterizedTest
@MethodSource("testDataListArguments")
public void methodListArguments(TestData ignore, String ignored) {
}
static List<Arguments> testDataListArguments() {
return Arrays.asList(Arguments.of(new TestData(), "foo"), Arguments.of(new TestData(), "foo"));
}
@ParameterizedTest
@MethodSource("testStreamOfMapEntryArguments")
public void methodList(Map.Entry<String, String> ignore) {
}
static Stream<Map.Entry<String, String>> testStreamOfMapEntryArguments() {
return Map.of("a", "b").entrySet().stream();
}
@SuppressWarnings("unused")
static class TestData {
final List<String> foo = Arrays.asList("one", "two", "three");
}
static Stream<Arguments> arguments() {
return Stream.of(
Arguments.of(new TestObject1()),
Arguments.of(new TestObject2()));
}
@ParameterizedTest
@MethodSource("arguments")
void map(Object o) {
}
static class TestObject1 {
private final Map<String, String> map = Collections.emptyMap();
Map<String, String> getMap() {
return map;
}
}
static class TestObject2 {
private final Map<String, String> map = Map.of();
Map<String, String> getMap() {
return map;
}
}
}
|
[
"geoand@gmail.com"
] |
geoand@gmail.com
|
f246119ac0057492fe06da78025edb8e18e71f3c
|
582a3f197a7886344a3cdb74d45cf06b6e062817
|
/3.JavaMultithreading/src/com/javarush/task/task30/task3001/Solution.java
|
4abb702f24a1466874613002dcc8a71f280977ed
|
[] |
no_license
|
sfill70/JavaRushTasks
|
66a15073945b5efd271bbbaa1d08df8b2d1185f2
|
f5763c59989d82b85b2c00ebfbaceae80c30337e
|
refs/heads/master
| 2021-09-14T18:47:04.840991
| 2018-05-17T13:56:16
| 2018-05-17T13:56:16
| 115,197,516
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,074
|
java
|
package com.javarush.task.task30.task3001;
import java.math.BigInteger;
/*
Конвертер систем счислений
*/
public class Solution {
public static void main(String[] args) {
Number number = new Number(NumerationSystemType._10, "6");
Number result = convertNumberToOtherNumerationSystem(number, NumerationSystemType._2);
System.out.println(result); //expected 110
number = new Number(NumerationSystemType._16, "6df");
result = convertNumberToOtherNumerationSystem(number, NumerationSystemType._8);
System.out.println(result); //expected 3337
}
public static Number convertNumberToOtherNumerationSystem(Number number, NumerationSystem expectedNumerationSystem) {
BigInteger a= new BigInteger(number.getDigit(),number.getNumerationSystem().getNumerationSystemIntValue());
Number result= new Number(expectedNumerationSystem,a.toString(expectedNumerationSystem.getNumerationSystemIntValue()));
//напишите тут ваш код
return result;
}
}
|
[
"sergfill70@yandex.ru"
] |
sergfill70@yandex.ru
|
dd66b38852b11ece6012362cfde7ecd137451a58
|
57b95a057dc4c7526736cb90abda10ef68ef9a8d
|
/designer_base/src/com/fr/design/mainframe/dnd/ArrayListTransferHandler.java
|
7b11954037dd0d04664981e1453c1518072c5475
|
[] |
no_license
|
jingedawang/fineRep
|
1f97702f8690d6119a817bba8f44c265e9d7fcb5
|
fce3e7a9238dd13fc168bf475f93496abd4a9f39
|
refs/heads/master
| 2021-01-18T08:21:05.238130
| 2016-02-28T11:15:25
| 2016-02-28T11:15:25
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 6,683
|
java
|
/*
* Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved.
*/
package com.fr.design.mainframe.dnd;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.ArrayList;
import javax.swing.DefaultListModel;
import javax.swing.JComponent;
import javax.swing.JList;
import javax.swing.TransferHandler;
import com.fr.base.FRContext;
/**
* Used for JList.
*/
public class ArrayListTransferHandler extends TransferHandler {
private DataFlavor localArrayListFlavor;
private DataFlavor serialArrayListFlavor;
private String localArrayListType = DataFlavor.javaJVMLocalObjectMimeType +
";class=java.util.ArrayList";
private JList source = null;
private int[] indices = null;
private int addIndex = -1; //Location where items were added
private int addCount = 0; //Number of items added
public ArrayListTransferHandler() {
try {
localArrayListFlavor = new DataFlavor(localArrayListType);
} catch (ClassNotFoundException e) {
FRContext.getLogger().error(e.getMessage(), e);
}
serialArrayListFlavor = new DataFlavor(ArrayList.class, "ArrayList");
}
public boolean importData(JComponent c, Transferable t) {
JList target = null;
ArrayList alist = null;
if (!canImport(c, t.getTransferDataFlavors())) {
return false;
}
try {
target = (JList) c;
if (hasLocalArrayListFlavor(t.getTransferDataFlavors())) {
alist = (ArrayList) t.getTransferData(localArrayListFlavor);
} else if (hasSerialArrayListFlavor(t.getTransferDataFlavors())) {
alist = (ArrayList) t.getTransferData(serialArrayListFlavor);
} else {
return false;
}
} catch (UnsupportedFlavorException ufe) {
FRContext.getLogger().error(ufe.getMessage(), ufe);
return false;
} catch (IOException ioe) {
FRContext.getLogger().error(ioe.getMessage(), ioe);
return false;
}
//At this point we use the same code to retrieve the data
//locally or serially.
//We'll drop at the current selected index.
int index = target.getSelectedIndex();
//Prevent the user from dropping data back on itself.
//For example, if the user is moving items #4,#5,#6 and #7 and
//attempts to insert the items after item #5, this would
//be problematic when removing the original items.
//This is interpreted as dropping the same data on itself
//and has no effect.
if (source.equals(target)) {
if (indices != null && index >= indices[0] - 1 &&
index <= indices[indices.length - 1]) {
indices = null;
return true;
}
}
DefaultListModel listModel = (DefaultListModel) target.getModel();
int max = listModel.getSize();
if (index < 0) {
index = max;
} else {
index++;
if (index > max) {
index = max;
}
}
addIndex = index;
addCount = alist.size();
this.importJListData(target, addIndex, alist);
return true;
}
protected void importJListData(JList targetList, int addIndex, ArrayList dataList) {
DefaultListModel targetListModel = (DefaultListModel) targetList.getModel();
int[] selectedIndices = new int[dataList.size()];
for (int i = 0; i < dataList.size(); i++) {
selectedIndices[i] = addIndex;
targetListModel.add(addIndex++, dataList.get(i));
}
targetList.setSelectedIndices(selectedIndices);
targetList.ensureIndexIsVisible(selectedIndices[0]);
}
protected void exportJListDone(JList targetList, int[] indices) {
//一般情况下,不需要删除.前一个JList当中的数据.所以这里什么也不做.
// DefaultListModel model = (DefaultListModel) targetList.getModel();
//
// for (int i = indices.length - 1; i >= 0; i--) {
// model.remove(indices[i]);
// }
}
protected void exportDone(JComponent c, Transferable data, int action) {
if ((action == MOVE) && (indices != null)) {
//If we are moving items around in the same list, we
//need to adjust the indices accordingly since those
//after the insertion point have moved.
if (addCount > 0) {
for (int i = 0; i < indices.length; i++) {
if (indices[i] > addIndex) {
indices[i] += addCount;
}
}
}
exportJListDone((JList) c, indices);
}
indices = null;
addIndex = -1;
addCount = 0;
}
private boolean hasLocalArrayListFlavor(DataFlavor[] flavors) {
if (localArrayListFlavor == null) {
return false;
}
for (int i = 0; i < flavors.length; i++) {
if (flavors[i].equals(localArrayListFlavor)) {
return true;
}
}
return false;
}
private boolean hasSerialArrayListFlavor(DataFlavor[] flavors) {
if (serialArrayListFlavor == null) {
return false;
}
for (int i = 0; i < flavors.length; i++) {
if (flavors[i].equals(serialArrayListFlavor)) {
return true;
}
}
return false;
}
public boolean canImport(JComponent c, DataFlavor[] flavors) {
if (hasLocalArrayListFlavor(flavors)) {
return true;
}
return hasSerialArrayListFlavor(flavors);
}
protected Transferable createTransferable(JComponent c) {
if (c instanceof JList) {
source = (JList) c;
indices = source.getSelectedIndices();
Object[] values = source.getSelectedValues();
if (values == null || values.length == 0) {
return null;
}
ArrayList alist = new ArrayList(values.length);
for (int i = 0; i < values.length; i++) {
Object o = values[i];
String str = o.toString();
if (str == null) str = "";
alist.add(str);
}
return new ArrayListTransferable(alist);
}
return null;
}
public int getSourceActions(JComponent c) {
return COPY_OR_MOVE;
}
}
|
[
"develop@finereport.com"
] |
develop@finereport.com
|
f2261ea523f4e634fd4a83cc50608407cf4d7e8a
|
7af928921898828426b7af6eff4dd9b7e4252817
|
/platforms/android-28/android-stubs-src/file/android/accounts/OnAccountsUpdateListener.java
|
0e99f73925b34bb788fea0a720421d4332a30a66
|
[] |
no_license
|
Davidxiahao/RAPID
|
40c546a739a818a6562d0c9bce5df9f1a462d92b
|
e99f46155a2f3e6b84324ba75ecd22a278ba7167
|
refs/heads/master
| 2023-06-27T13:09:02.418736
| 2020-03-06T01:38:16
| 2020-03-06T01:38:16
| 239,509,129
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,040
|
java
|
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.accounts;
/**
* An interface that contains the callback used by the AccountManager
*/
@SuppressWarnings({"unchecked", "deprecation", "all"})
public interface OnAccountsUpdateListener {
/**
* This invoked when the AccountManager starts up and whenever the account
* set changes.
* @param accounts the current accounts
*/
public void onAccountsUpdated(android.accounts.Account[] accounts);
}
|
[
"davidxiahao@gmail.com"
] |
davidxiahao@gmail.com
|
a2c914005d31ecc49a8d063bbc30e38aba66c133
|
a58d6cfae17d7b457ac4690ba1619b24729f615d
|
/webapps-commons-modules/webapps-commons-errors/src/main/java/com/bellotapps/webapps_commons/errors/UniqueViolationError.java
|
fb1c3a7cf5f7bd3a048bdc34c6d0ef80ad23b4cc
|
[
"Apache-2.0"
] |
permissive
|
bellotapps/webapps-commons
|
0b763668d12e97c5a7fd39fc012ec4a2fec92f25
|
9f2b54a3642fb3d4d1058626f2830a99d665b225
|
refs/heads/master
| 2020-03-28T11:57:20.286255
| 2019-03-28T23:04:37
| 2019-03-28T23:04:37
| 148,258,835
| 0
| 0
|
Apache-2.0
| 2019-03-28T23:04:38
| 2018-09-11T04:10:11
|
Java
|
UTF-8
|
Java
| false
| false
| 1,169
|
java
|
/*
* Copyright 2018-2019 BellotApps
*
* 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.bellotapps.webapps_commons.errors;
/**
* Class representing an error that occurs when setting an already in use value (or group of values)
* that must be unique.
*/
public final class UniqueViolationError extends MultiFieldError {
/**
* Constructor.
*
* @param message A helper message to be used for debugging purposes.
* @param uniqueFields The group of values that must be unique.
*/
public UniqueViolationError(final String message, final String... uniqueFields) {
super(message, uniqueFields);
}
}
|
[
"juanmbellini@gmail.com"
] |
juanmbellini@gmail.com
|
13ca604f452403c622abe4a6a4c5065a5151f973
|
57f105ae5d547b76d762552f86a57d7354eed7c5
|
/ppp/src/main/java/com/ylfcf/ppp/parse/JsonParseBanner.java
|
6d116c4f2b11d66a8bb53085640f0754a94ed9a4
|
[] |
no_license
|
yuanlifan/pppandroid
|
eaea175c5fc5f240bd58112b6dea45ae4b845584
|
2635c8c9aded85218b6485b86c21481c8b0d8c57
|
refs/heads/master
| 2021-04-15T04:32:50.915493
| 2018-08-20T09:58:09
| 2018-08-20T09:58:09
| 126,144,259
| 0
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,535
|
java
|
package com.ylfcf.ppp.parse;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.ylfcf.ppp.entity.BannerInfo;
import com.ylfcf.ppp.entity.BannerPageInfo;
import com.ylfcf.ppp.entity.BaseInfo;
import com.ylfcf.ppp.entity.ExtensionIncomeInfo;
import com.ylfcf.ppp.entity.ExtensionPageInfo;
import com.ylfcf.ppp.entity.ExtensionUserInfo;
import com.ylfcf.ppp.util.MainJson;
import com.ylfcf.ppp.util.SettingsManager;
/**
* Banner
* @author Administrator
*
*/
public class JsonParseBanner {
private BaseInfo baseInfo;
private BannerPageInfo pageInfo;
private List<BannerInfo> bannerInfoList;
public BaseInfo getBaseInfo() {
return baseInfo;
}
private void parseList(String data){
bannerInfoList = new ArrayList<BannerInfo>();
try {
JSONArray jsonArray = new JSONArray(data);
int size = jsonArray.length();
for(int i=0;i<size;i++){
JSONObject object = jsonArray.getJSONObject(i);
BannerInfo info = (BannerInfo) MainJson.fromJson(BannerInfo.class, object);
bannerInfoList.add(info);
}
pageInfo.setBannerList(bannerInfoList);
} catch (Exception e) {
e.printStackTrace();
}
}
private void parsePageInfo(String data){
JSONObject object = null;
try {
object = new JSONObject(data);
} catch (Exception e) {
}
if(object != null) {
try {
pageInfo = (BannerPageInfo)MainJson.fromJson(BannerPageInfo.class, object);
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
parseList(pageInfo.getList());
baseInfo.setmBannerPageInfo(pageInfo);
}
}
/**
* @param result
* @throws Exception
*/
public void parseMain(String result) throws Exception{
JSONObject object = null;
try {
object = new JSONObject(result);
} catch (Exception e) {
}
if(object != null) {
baseInfo = (BaseInfo)MainJson.fromJson(BaseInfo.class, object);
int resultCode = SettingsManager.getResultCode(baseInfo);
if(resultCode == 0){
parsePageInfo(baseInfo.getMsg());
}
}
}
/**
* 解析调用接口
* @param result
* @return
* @throws JSONException
* @throws IllegalArgumentException
* @throws IllegalAccessException
* @throws InstantiationException
*/
public static BaseInfo parseData(String result) throws Exception {
JsonParseBanner jsonParse = new JsonParseBanner();
jsonParse.parseMain(result);
return jsonParse.getBaseInfo();
}
}
|
[
"1308289210@qq.com"
] |
1308289210@qq.com
|
849a817795729e2f405e06df080c951b6fbabc6f
|
100f2cbf27a04991aaec068a3a7bdf3e5529303d
|
/src/main/java/com/alibaba/druid/stat/service/DruidStatService.java
|
e57e69f63c02313ac065c224ca32f91a91885fe6
|
[] |
no_license
|
lihc2022/druid
|
ef4066744115ca1a520bc5345965f13c396e7c58
|
ff91ee541dcddf89998daa88c45c0ba0128c342a
|
refs/heads/master
| 2022-05-04T17:23:53.601554
| 2012-08-08T13:13:26
| 2012-08-08T13:13:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,439
|
java
|
package com.alibaba.druid.stat.service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.stat.DruidDataSourceStatManager;
import com.alibaba.druid.stat.JdbcSqlStat;
import com.alibaba.druid.stat.service.dto.DataSourceInfo;
import com.alibaba.druid.stat.service.dto.SqlInfo;
import com.alibaba.druid.stat.service.impl.DruidStatMemoryStore;
public class DruidStatService {
private ScheduledExecutorService scheduler;
private ScheduledFuture<?> collectPlan;
private int collectPeriodSeconds = 60 * 5;
private DruidStatStore store;
public int getCollectPeriodSeconds() {
return collectPeriodSeconds;
}
public void setCollectPeriodSeconds(int collectPeriodSeconds) {
this.collectPeriodSeconds = collectPeriodSeconds;
}
public synchronized void start() {
if (store != null) {
store = new DruidStatMemoryStore();
}
scheduler = Executors.newSingleThreadScheduledExecutor();
collectPlan = scheduler.scheduleAtFixedRate(new CollectTask(), collectPeriodSeconds, collectPeriodSeconds,
TimeUnit.SECONDS);
}
public synchronized void stop() {
if (collectPlan == null) {
collectPlan.cancel(true);
}
if (scheduler != null) {
scheduler.shutdown();
}
}
public void collect() {
List<DataSourceInfo> dataSourceStatList = new ArrayList<DataSourceInfo>();
for (DruidDataSource dataSource : DruidDataSourceStatManager.getDruidDataSourceInstances()) {
DataSourceInfo dataSourceStat = new DataSourceInfo();
dataSourceStat.setCollectTimeMillis(System.currentTimeMillis());
dataSourceStat.setId(dataSource.getID());
dataSourceStat.setUrl(dataSource.getUrl());
dataSourceStat.setDbType(dataSource.getDbType());
dataSourceStat.setActiveCount(dataSource.getActiveCount());
dataSourceStat.setActivePeak(dataSource.getActivePeak());
dataSourceStat.setCloseCount((int) dataSource.getCloseCount());
dataSourceStat.setConnectCount((int) dataSource.getConnectCount());
dataSourceStat.setConnectErrorCount((int) dataSource.getConnectErrorCount());
dataSourceStat.setCreateCount((int) dataSource.getCreateCount());
dataSourceStat.setCreateErrorCount((int) dataSource.getCreateErrorCount());
dataSourceStat.setDestoryCount((int) dataSource.getDestroyCount());
dataSourceStat.setExecuteCount((int) dataSource.getExecuteCount());
dataSourceStat.setPoolingCount(dataSource.getPoolingCount());
dataSourceStat.setConnectionHoldHistogram(dataSource.getDataSourceStat().getConnectionHistogramValues());
dataSourceStat.setTransactionHistogram(dataSource.getTransactionHistogramValues());
Collection<JdbcSqlStat> sqlStats = dataSource.getDataSourceStat().getSqlStatMap().values();
Map<String, SqlInfo> sqlStatInfoMap = new HashMap<String, SqlInfo>(sqlStats.size());
for (JdbcSqlStat sqlStat : dataSource.getDataSourceStat().getSqlStatMap().values()) {
if (sqlStat.getExecuteCount() == 0 && sqlStat.getRunningCount() == 0) {
continue;
}
SqlInfo sqlStatInfo = DruidStatServiceUtils.createSqlInfo(sqlStat);
SqlInfo oldsqlStatInfo = sqlStatInfoMap.get(sqlStatInfo.getSql());
if (oldsqlStatInfo != null) {
oldsqlStatInfo.merge(sqlStatInfo);
} else {
sqlStatInfoMap.put(sqlStatInfo.getSql(), sqlStatInfo);
}
}
dataSourceStat.setSqlList(new ArrayList<SqlInfo>(sqlStatInfoMap.values()));
dataSourceStatList.add(dataSourceStat);
}
store.saveDataSource(dataSourceStatList);
}
private final class CollectTask implements Runnable {
public void run() {
collect();
}
}
}
|
[
"szujobs@hotmail.com"
] |
szujobs@hotmail.com
|
0db5a99406411a5d7134f6430453a3a19ec0ecce
|
f403a4f64d08e622aced1111930537f688eef3ed
|
/src/main/java/pl/programmers/jtable_wrap_text/TextAreaRendererInTable.java
|
1d336ecf4663e61a34a17818701bfaecf26c4270
|
[] |
no_license
|
DanielMichalski/4programmers
|
c28c2315d5b09243da89c6034ba99583b4d5bb0d
|
5dcff3d534532743bb2f5e9ec98ad352295b978d
|
refs/heads/master
| 2020-05-19T18:45:36.057132
| 2014-10-29T10:18:45
| 2014-10-29T10:18:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,656
|
java
|
package pl.programmers.jtable_wrap_text;
import javax.swing.*;
import javax.swing.table.*;
public class TextAreaRendererInTable extends JFrame {
/**
* Creates a TextAreaRendererInTable object.
*/
public TextAreaRendererInTable() {
}
/**
* This method build the table.
*/
private void showTable() {
JTable table = new JTable(5, 3);
TableColumnModel cmodel = table.getColumnModel();
TextAreaRenderer textAreaRenderer = new TextAreaRenderer();
cmodel.getColumn(0).setCellRenderer(new DefaultTableCellRenderer());
cmodel.getColumn(1).setCellRenderer(textAreaRenderer);
cmodel.getColumn(2).setCellRenderer(textAreaRenderer);
addRows(table);
getContentPane().add(new JScrollPane(table));
setSize(500, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setTitle("Text Area Renderer In Table");
setVisible(true);
}
/**
* This method will add rows into table.
*
* @param table - JTable object
*/
private void addRows(JTable table) {
String props = "Joy is not in things but in us";
for (int i = 0; i < 5; i++) {
table.setValueAt(props + "-" + props, i, 0);
table.setValueAt(props, i, 1);
table.setValueAt(props + "-" + props + "-" + props, i, 2);
}
}
/**
* Main method of TextAreaRendererInTable class
*
* @param args - Defualt main method string args
*/
public static void main(String[] args) {
new TextAreaRendererInTable().showTable();
}
}
|
[
"michalskidaniel2@gmail.com"
] |
michalskidaniel2@gmail.com
|
bd049c89e6f7f60736d037d8d81ea35523bdee37
|
cb36cb6c60ff1adb1ce4f87f8b325190b290712e
|
/com.legooframework.redis/src/test/java/com/legooframework/model/redis/entity/RedisKeyEventMessageListenerTest.java
|
532f307363bf816dbc512314ee4c0abccf2edace
|
[] |
no_license
|
haozm/legooframework
|
db27d1c96669e8b46cb5fd1e983a95888bef3795
|
ad0f99c0344de78a37c38d4cfe4bdbbd253a6731
|
refs/heads/master
| 2020-03-19T07:09:00.643277
| 2019-12-07T13:47:17
| 2019-12-07T13:47:17
| 136,090,435
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 745
|
java
|
package com.legooframework.model.redis.entity;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.util.ResourceUtils;
public class RedisKeyEventMessageListenerTest {
public static void main(String[] args) {
ApplicationContext app = new ClassPathXmlApplicationContext(ResourceUtils.CLASSPATH_URL_PREFIX + "META-INF/junit/spring-nodb-cfg.xml",
ResourceUtils.CLASSPATH_URL_PREFIX + "META-INF/core/spring-model-cfg.xml",
ResourceUtils.CLASSPATH_URL_PREFIX + "META-INF/redis/spring-model-cfg.xml",
ResourceUtils.CLASSPATH_URL_PREFIX + "META-INF/redis/spring-adds-cfg.xml");
}
}
|
[
"xiaojie.hao@live.com"
] |
xiaojie.hao@live.com
|
d3ed38315386003a03b6e8cd0cb3b10a4bfb8a1d
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/neo4j/learning/2668/BooleanValue.java
|
9fa8555eccc9f293863a2a286ea33791bfc59939
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,483
|
java
|
/*
* Copyright (c) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.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.values.storable;
import org.neo4j.hashing.HashFunction;
import org.neo4j.values.ValueMapper;
import static java.lang.String.format;
/**
* This does not extend AbstractProperty since the JVM can take advantage of the 4 byte initial field alignment if
* we don't extend a class that has fields.
*/
public abstract class BooleanValue extends ScalarValue
{
private BooleanValue()
{
}
@Override
public boolean eq( Object other )
{
return other instanceof Value && equals( (Value) other );
}
@Override
public <T> T map( ValueMapper<T> mapper )
{
return mapper.mapBoolean( this );
}
@Override
public ValueGroup valueGroup()
{
return ValueGroup.BOOLEAN;
}
public abstract boolean booleanValue();
@Override
public NumberType numberType()
{
return NumberType.NO_NUMBER;
}
@Override
public long updateHash( HashFunction hashFunction, long hash )
{
return hashFunction.update( hash, hashCode() );
}
@Override
public String getTypeName()
{
return "Boolean";
}
public static final BooleanValue TRUE = new BooleanValue()
{
@Override
public boolean equals( Value other )
{
return this == other;
}
@Override
public boolean equals( boolean x )
{
return x;
}
@Override
public int computeHash()
{
//Use same as Boolean.TRUE.hashCode
return 1231;
}
@Override
public boolean booleanValue()
{
return true;
}
@Override
int unsafeCompareTo( Value otherValue )
{
BooleanValue other = (BooleanValue) otherValue;
return other.booleanValue() ? 0 : 1;
}
@Override
public <E extends Exception> void writeTo( ValueWriter<E> writer ) throws E
{
writer.writeBoolean( true );
}
@Override
public Object asObjectCopy()
{
return Boolean.TRUE;
}
@Override
public String prettyPrint()
{
return Boolean.toString( true );
}
@Override
public String toString()
{
return format( "%s('%s')", getTypeName(), Boolean.toString( true ) );
}
};
public static final BooleanValue FALSE = new BooleanValue()
{
@Override
public boolean equals( Value other )
{
return this == other;
}
@Override
public boolean equals( boolean x )
{
return !x;
}
@Override
public int computeHash()
{
//Use same as Boolean.FALSE.hashCode
return 1237;
}
@Override
public boolean booleanValue()
{
return false;
}
@Override
int unsafeCompareTo( Value otherValue )
{
BooleanValue other = (BooleanValue) otherValue; return !other.booleanValue() ? 0 : -1;
}
@Override
public <E extends Exception> void writeTo( ValueWriter<E> writer ) throws E
{
writer.writeBoolean( false );
}
@Override
public Object asObjectCopy()
{
return Boolean.FALSE;
}
@Override
public String prettyPrint()
{
return Boolean.toString( false );
}
@Override
public String toString()
{
return format( "%s('%s')", getTypeName(), Boolean.toString( false ) );
}
};
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
39f77d5ea1ecb0bd87cb33a7f42ef49a9997fbc7
|
ca3bc4c8c68c15c961098c4efb2e593a800fe365
|
/TableToMyibatisUtf-8/file/com/neusoft/crm/api/cpc/prod/data/ObjAttrRstrRulTempletDO.java
|
fcda3e49bcb86d05ab85b745c791bda344ec0f6d
|
[] |
no_license
|
fansq-j/fansq-summary
|
211b01f4602ceed077b38bb6d2b788fcd4f2c308
|
00e838843e6885135eeff1eb1ac95d0553fc36ea
|
refs/heads/master
| 2022-12-17T01:18:34.323774
| 2020-01-14T06:57:24
| 2020-01-14T06:57:24
| 214,321,994
| 0
| 0
| null | 2022-11-17T16:20:29
| 2019-10-11T02:02:23
|
Java
|
UTF-8
|
Java
| false
| false
| 8,508
|
java
|
package com.neusoft.crm.api.cpc.prod.data;
import com.neusoft.crm.common.persistence.BaseDO;
import com.neusoft.crm.common.utils.SeqUtils;
/**
* @实体描述:记录对象属性约束规则的模板,表达的是规则的规格。
* @实体表 :OBJ_ATTR_RSTR_RUL_TEMPLET
*/
public class ObjAttrRstrRulTempletDO extends BaseDO{
/**
*主键对应的序列名称
*/
public static final String ID_SEQ = "OBJ_ATTR_RSTR_RUL_TEMPLET_S";
/**
* 记录对象属性约束规则模板主键
*/
public java.lang.Long attrRstrTempId;
/**
* 记录规则分类,LOVB=RUL-C-0013
*/
public java.lang.String ruleType;
/**
* 记录关联对象类型,LOVB=RUL-C-0014
*/
public java.lang.String relObjType;
/**
* 记录A端业务对象类型,LOVB=RUL-C-0014
*/
public java.lang.String aObjType;
/**
* 记录A端属性类型
*/
public java.lang.String aAttrType;
/**
* 记录A端适用服务提供
*/
public java.lang.String aServerOfferId;
/**
* 记录Z段业务对象类型,LOVB=RUL-C-0014
*/
public java.lang.String zObjType;
/**
* 记录Z端属性类型
*/
public java.lang.String zAttrType;
/**
* 记录Z端适用服务提供
*/
public java.lang.String zServerOfferId;
/**
* 记录取值约束,LOVB=RUL-C-0015
*/
public java.lang.String restrictType;
/**
* 记录约束方向,LOVB=RUL-C-0016
*/
public java.lang.String direction;
/**
* 记录规则提示
*/
public java.lang.String rulePrompt;
/**
* 记录状态,LOVB=PUB-C-0001。
*/
public java.lang.String statusCd;
/**
* 记录的创建时间
*/
public java.util.Date createDate;
/**
* 状态的变更时间
*/
public java.util.Date statusDate;
/**
* 记录的修改时间
*/
public java.util.Date updateDate;
/**
* 记录创建的员工
*/
public java.lang.Long createStaff;
/**
* 记录修改的员工
*/
public java.lang.Long updateStaff;
/**
* 记录备注信息。
*/
public java.lang.String remark;
/**
* 设置 记录对象属性约束规则模板主键
*/
public void setAttrRstrTempId(java.lang.Long attrRstrTempId) {
this.attrRstrTempId = attrRstrTempId;
}
/**
* 获取 记录对象属性约束规则模板主键
*/
public java.lang.Long getAttrRstrTempId() {
return this.attrRstrTempId;
}
/**
* 设置主键,并返回主键ID
*/
public java.lang.Long doCreateId(){
this.attrRstrTempId = SeqUtils.createLongId(ID_SEQ);
return this.attrRstrTempId;
}
/**
* 静态方法-生成主键ID
*/
public static final java.lang.Long createId(){
return SeqUtils.createLongId(ID_SEQ);
}
/**
* 设置 记录规则分类,LOVB=RUL-C-0013
*/
public void setRuleType(java.lang.String ruleType) {
this.ruleType = ruleType;
}
/**
* 获取 记录规则分类,LOVB=RUL-C-0013
*/
public java.lang.String getRuleType() {
return this.ruleType;
}
/**
* 设置 记录关联对象类型,LOVB=RUL-C-0014
*/
public void setRelObjType(java.lang.String relObjType) {
this.relObjType = relObjType;
}
/**
* 获取 记录关联对象类型,LOVB=RUL-C-0014
*/
public java.lang.String getRelObjType() {
return this.relObjType;
}
/**
* 设置 记录A端业务对象类型,LOVB=RUL-C-0014
*/
public void setAObjType(java.lang.String aObjType) {
this.aObjType = aObjType;
}
/**
* 获取 记录A端业务对象类型,LOVB=RUL-C-0014
*/
public java.lang.String getAObjType() {
return this.aObjType;
}
/**
* 设置 记录A端属性类型
*/
public void setAAttrType(java.lang.String aAttrType) {
this.aAttrType = aAttrType;
}
/**
* 获取 记录A端属性类型
*/
public java.lang.String getAAttrType() {
return this.aAttrType;
}
/**
* 设置 记录A端适用服务提供
*/
public void setAServerOfferId(java.lang.String aServerOfferId) {
this.aServerOfferId = aServerOfferId;
}
/**
* 获取 记录A端适用服务提供
*/
public java.lang.String getAServerOfferId() {
return this.aServerOfferId;
}
/**
* 设置 记录Z段业务对象类型,LOVB=RUL-C-0014
*/
public void setZObjType(java.lang.String zObjType) {
this.zObjType = zObjType;
}
/**
* 获取 记录Z段业务对象类型,LOVB=RUL-C-0014
*/
public java.lang.String getZObjType() {
return this.zObjType;
}
/**
* 设置 记录Z端属性类型
*/
public void setZAttrType(java.lang.String zAttrType) {
this.zAttrType = zAttrType;
}
/**
* 获取 记录Z端属性类型
*/
public java.lang.String getZAttrType() {
return this.zAttrType;
}
/**
* 设置 记录Z端适用服务提供
*/
public void setZServerOfferId(java.lang.String zServerOfferId) {
this.zServerOfferId = zServerOfferId;
}
/**
* 获取 记录Z端适用服务提供
*/
public java.lang.String getZServerOfferId() {
return this.zServerOfferId;
}
/**
* 设置 记录取值约束,LOVB=RUL-C-0015
*/
public void setRestrictType(java.lang.String restrictType) {
this.restrictType = restrictType;
}
/**
* 获取 记录取值约束,LOVB=RUL-C-0015
*/
public java.lang.String getRestrictType() {
return this.restrictType;
}
/**
* 设置 记录约束方向,LOVB=RUL-C-0016
*/
public void setDirection(java.lang.String direction) {
this.direction = direction;
}
/**
* 获取 记录约束方向,LOVB=RUL-C-0016
*/
public java.lang.String getDirection() {
return this.direction;
}
/**
* 设置 记录规则提示
*/
public void setRulePrompt(java.lang.String rulePrompt) {
this.rulePrompt = rulePrompt;
}
/**
* 获取 记录规则提示
*/
public java.lang.String getRulePrompt() {
return this.rulePrompt;
}
/**
* 设置 记录状态,LOVB=PUB-C-0001。
*/
public void setStatusCd(java.lang.String statusCd) {
this.statusCd = statusCd;
}
/**
* 获取 记录状态,LOVB=PUB-C-0001。
*/
public java.lang.String getStatusCd() {
return this.statusCd;
}
/**
* 设置 记录的创建时间
*/
public void setCreateDate(java.util.Date createDate) {
this.createDate = createDate;
}
/**
* 获取 记录的创建时间
*/
public java.util.Date getCreateDate() {
return this.createDate;
}
/**
* 设置 状态的变更时间
*/
public void setStatusDate(java.util.Date statusDate) {
this.statusDate = statusDate;
}
/**
* 获取 状态的变更时间
*/
public java.util.Date getStatusDate() {
return this.statusDate;
}
/**
* 设置 记录的修改时间
*/
public void setUpdateDate(java.util.Date updateDate) {
this.updateDate = updateDate;
}
/**
* 获取 记录的修改时间
*/
public java.util.Date getUpdateDate() {
return this.updateDate;
}
/**
* 设置 记录创建的员工
*/
public void setCreateStaff(java.lang.Long createStaff) {
this.createStaff = createStaff;
}
/**
* 获取 记录创建的员工
*/
public java.lang.Long getCreateStaff() {
return this.createStaff;
}
/**
* 设置 记录修改的员工
*/
public void setUpdateStaff(java.lang.Long updateStaff) {
this.updateStaff = updateStaff;
}
/**
* 获取 记录修改的员工
*/
public java.lang.Long getUpdateStaff() {
return this.updateStaff;
}
/**
* 设置 记录备注信息。
*/
public void setRemark(java.lang.String remark) {
this.remark = remark;
}
/**
* 获取 记录备注信息。
*/
public java.lang.String getRemark() {
return this.remark;
}
}
|
[
"13552796829@163.com"
] |
13552796829@163.com
|
003d4076e125db5edeca6b8830d803b7ce3295fb
|
0f1138e69d3c7fda9879f2b0f809624763eaca5d
|
/src/main/java/com/yaic/app/order/dto/msg/QueryPolicyEndorInfoResp.java
|
02af08eee43da9d2b41bfd467a68599eec3a5d98
|
[] |
no_license
|
Jxyxl259/order_provider
|
23e880de8efb017423c665ce3ec4d899241095a4
|
f1a884a13d3aca6f01104309f030f5438f7e8b2b
|
refs/heads/master
| 2020-03-29T08:21:26.216815
| 2018-09-21T03:46:08
| 2018-09-21T03:46:08
| 149,706,291
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 962
|
java
|
package com.yaic.app.order.dto.msg;
import java.util.List;
import com.yaic.app.order.dto.custom.endorNoInfoDto;
public class QueryPolicyEndorInfoResp {
/** 大保单号 **/
private String associatedNo;
/** 小保单号 **/
private String policyNo;
/** 批单列表 **/
private List<endorNoInfoDto> endorNoList;
/** 大保单号 **/
public String getAssociatedNo() {
return associatedNo;
}
/** 大保单号 **/
public void setAssociatedNo(String associatedNo) {
this.associatedNo = associatedNo;
}
/** 小保单号 **/
public String getPolicyNo() {
return policyNo;
}
/** 小保单号 **/
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
/** 批单列表 **/
public List<endorNoInfoDto> getEndorNoList() {
return endorNoList;
}
/** 批单列表 **/
public void setEndorNoList(List<endorNoInfoDto> endorNoList) {
this.endorNoList = endorNoList;
}
}
|
[
"jxy_259_job@163.com"
] |
jxy_259_job@163.com
|
c8444c4d89aafcb1c276fdb560d99837c3942d5a
|
96560e570f534ed24bdb8655514ac3b7068dd834
|
/src/main/java/org/jenkinsci/plugins/p4/scm/GraphScmSource.java
|
aacf18eff025d9132f8852b635a0ee6adabf9f9e
|
[
"BSD-2-Clause"
] |
permissive
|
mlynnyk/p4-plugin
|
3c9c95ccec72e4e63f0279fe28cca83f1d8bb6fc
|
51e47165ed99f94dd77bc162363c016bf9ee5f4d
|
refs/heads/master
| 2021-01-16T05:44:27.865591
| 2020-02-17T16:58:19
| 2020-02-17T16:58:19
| 242,996,610
| 0
| 0
|
NOASSERTION
| 2020-02-25T12:39:53
| 2020-02-25T12:39:53
| null |
UTF-8
|
Java
| false
| false
| 6,180
|
java
|
package org.jenkinsci.plugins.p4.scm;
import com.perforce.p4java.core.IRepo;
import com.perforce.p4java.exception.P4JavaException;
import com.perforce.p4java.graph.IGraphRef;
import com.perforce.p4java.option.server.GraphShowRefOptions;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.DescriptorExtensionList;
import hudson.Extension;
import hudson.model.Descriptor;
import hudson.model.TaskListener;
import jenkins.model.Jenkins;
import jenkins.scm.api.SCMHeadCategory;
import jenkins.scm.impl.ChangeRequestSCMHeadCategory;
import jenkins.scm.impl.UncategorizedSCMHeadCategory;
import jenkins.util.NonLocalizable;
import org.jenkinsci.Symbol;
import org.jenkinsci.plugins.p4.browsers.P4Browser;
import org.jenkinsci.plugins.p4.changes.P4Ref;
import org.jenkinsci.plugins.p4.client.ConnectionHelper;
import org.jenkinsci.plugins.p4.client.ViewMapHelper;
import org.jenkinsci.plugins.p4.populate.Populate;
import org.jenkinsci.plugins.p4.populate.PopulateDescriptor;
import org.jenkinsci.plugins.p4.workspace.ManualWorkspaceImpl;
import org.jenkinsci.plugins.p4.workspace.Workspace;
import org.jenkinsci.plugins.p4.workspace.WorkspaceSpec;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
import java.util.ArrayList;
import java.util.List;
public class GraphScmSource extends AbstractP4ScmSource {
private P4Browser browser;
@DataBoundConstructor
public GraphScmSource(String credential, String includes, String charset, String format) {
super(credential);
setIncludes(includes);
setCharset(charset);
setFormat(format);
}
@DataBoundSetter
public void setBrowser(P4Browser browser) {
this.browser = browser;
}
@Override
public P4Browser getBrowser() {
return browser;
}
@Override
public List<P4SCMHead> getTags(@NonNull TaskListener listener) throws Exception {
List<P4SCMHead> list = new ArrayList<>();
List<String> includes = getIncludePaths();
try (ConnectionHelper p4 = new ConnectionHelper(getOwner(), credential, listener)) {
for (String inc : includes) {
List<IRepo> repos = p4.listRepos(inc);
list.addAll(getRefsFromRepos(repos, p4));
}
}
return list;
}
@Override
public List<P4SCMHead> getHeads(@NonNull TaskListener listener) throws Exception {
List<P4SCMHead> list = new ArrayList<>();
List<String> includes = getIncludePaths();
try (ConnectionHelper p4 = new ConnectionHelper(getOwner(), credential, listener)) {
for (String inc : includes) {
List<IRepo> repos = p4.listRepos(inc);
list.addAll(getBranchesFromRepos(repos, p4));
}
}
return list;
}
private List<P4SCMHead> getBranchesFromRepos(List<IRepo> repos, ConnectionHelper p4) throws Exception {
List<P4SCMHead> list = new ArrayList<>();
for (IRepo repo : repos) {
String repoName = getRepoName(repo);
List<IGraphRef> refs = getRefs(p4, repoName, "branch");
for (IGraphRef ref : refs) {
String branchName = ref.getName();
P4Path p4Path = new P4Path(repoName);
p4Path.setRevision(branchName);
String name = p4Path.getName();
P4SCMHead head = new P4SCMHead(name, p4Path);
list.add(head);
}
}
return list;
}
private List<P4GraphRequestSCMHead> getRefsFromRepos(List<IRepo> repos, ConnectionHelper p4) throws Exception {
List<P4GraphRequestSCMHead> list = new ArrayList<>();
for (IRepo repo : repos) {
String repoName = getRepoName(repo);
List<IGraphRef> refs = getRefs(p4, repoName, "ref");
for (IGraphRef ref : refs) {
String branchName = ref.getName();
// only process 'merge'
if (!branchName.endsWith("/merge")) {
continue;
}
P4Path p4Path = new P4Path(repoName);
p4Path.setRevision(branchName);
String name = p4Path.getName();
P4SCMHead target = new P4SCMHead(name, p4Path);
P4GraphRequestSCMHead tag = new P4GraphRequestSCMHead(name, repoName, branchName, p4Path, target);
list.add(tag);
}
}
return list;
}
private String getRepoName(IRepo repo) {
String repoName = repo.getName();
if (repoName.endsWith(".git")) {
repoName = repoName.substring(0, repoName.lastIndexOf(".git"));
}
return repoName;
}
private List<IGraphRef> getRefs(ConnectionHelper p4, String repoName, String type) throws P4JavaException {
GraphShowRefOptions opts = new GraphShowRefOptions();
opts.setType(type);
opts.setRepo(repoName);
List<IGraphRef> refs = p4.getConnection().getGraphShowRefs(opts);
return refs;
}
@Override
public P4SCMRevision getRevision(P4SCMHead head, TaskListener listener) throws Exception {
try (ConnectionHelper p4 = new ConnectionHelper(getOwner(), credential, listener)) {
P4Ref ref = p4.getGraphHead(head.getPath().getPath());
P4SCMRevision revision = new P4SCMRevision(head, ref);
return revision;
}
}
@Override
public Workspace getWorkspace(P4Path path) {
if (path == null) {
throw new IllegalArgumentException("missing path");
}
StringBuffer depotView = new StringBuffer();
depotView.append(path.getPath());
depotView.append("/...");
String client = getFormat();
String view = ViewMapHelper.getClientView(depotView.toString(), client, false);
WorkspaceSpec spec = new WorkspaceSpec(view, null);
return new ManualWorkspaceImpl(getCharset(), false, client, spec);
}
@Extension
@Symbol("multiGraph")
public static final class DescriptorImpl extends P4SCMSourceDescriptor {
@Override
public String getDisplayName() {
return "Helix4Git";
}
@NonNull
@Override
protected SCMHeadCategory[] createCategories() {
return new SCMHeadCategory[]{
new UncategorizedSCMHeadCategory(new NonLocalizable("Branches")),
new ChangeRequestSCMHeadCategory(new NonLocalizable("Reviews"))
};
}
public List getGraphPopulateDescriptors() {
Jenkins j = Jenkins.getInstance();
DescriptorExtensionList<Populate, Descriptor<Populate>> list = j.getDescriptorList(Populate.class);
for (Descriptor<Populate> d : list) {
if (!(d instanceof PopulateDescriptor)) {
list.remove(d);
} else {
PopulateDescriptor p = (PopulateDescriptor) d;
if (!p.isGraphCompatible()) {
list.remove(p);
}
}
}
return list;
}
}
}
|
[
"pallen@perforce.com"
] |
pallen@perforce.com
|
7dd2df8b323ee09431c664a5a00b72053eb60fee
|
15b260ccada93e20bb696ae19b14ec62e78ed023
|
/v2/src/main/java/com/alipay/api/response/AlipayBossProdAntlegalchainEcsealApplyResponse.java
|
0b2971c067af3aad2f0bc4a09f3432cc28639a48
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-java-all
|
df461d00ead2be06d834c37ab1befa110736b5ab
|
8cd1750da98ce62dbc931ed437f6101684fbb66a
|
refs/heads/master
| 2023-08-27T03:59:06.566567
| 2023-08-22T14:54:57
| 2023-08-22T14:54:57
| 132,569,986
| 470
| 207
|
Apache-2.0
| 2022-12-25T07:37:40
| 2018-05-08T07:19:22
|
Java
|
UTF-8
|
Java
| false
| false
| 376
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.boss.prod.antlegalchain.ecseal.apply response.
*
* @author auto create
* @since 1.0, 2023-05-31 01:37:18
*/
public class AlipayBossProdAntlegalchainEcsealApplyResponse extends AlipayResponse {
private static final long serialVersionUID = 5732236259222557997L;
}
|
[
"auto-publish"
] |
auto-publish
|
bc93328808e51ad142aea0fac24e692ee6cab309
|
a7bb712f72f50433cb50597ad2ae603e5ee530d9
|
/Renders/RenderBigTurbine.java
|
5fbb4494a645fa441839bfb895d0ea9a7d3cbdf5
|
[] |
no_license
|
ReikaKalseki/ReactorCraft
|
cb845d4e1ad8e3a6ce11b30e9bbc4a11fc32bf1b
|
d788f1bcd33c66758d687faaf692c2668595021b
|
refs/heads/master
| 2023-07-26T06:50:57.928091
| 2023-07-24T05:27:05
| 2023-07-24T05:27:05
| 12,451,413
| 41
| 42
| null | 2021-12-26T14:22:38
| 2013-08-29T04:19:52
|
Java
|
UTF-8
|
Java
| false
| false
| 720
|
java
|
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2017
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.ReactorCraft.Renders;
import Reika.ReactorCraft.Models.ModelBigTurbine;
import Reika.ReactorCraft.Models.ModelTurbine;
public class RenderBigTurbine extends RenderTurbine
{
@Override
protected Class<? extends ModelTurbine> getModelClass() {
return ModelBigTurbine.class;
}
@Override
protected String getTextureName() {
return "bigturbine";
}
}
|
[
"reikasminecraft@gmail.com"
] |
reikasminecraft@gmail.com
|
5f9aedfd6527bd2a899a9066e3e83b6908bb8035
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/DarkOakTanbarkBlock.java
|
943d14bfc3f93cded2251144891e3991deda7cc1
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,941
|
java
|
2
https://raw.githubusercontent.com/KarogathModdingStudios/Enhanced-Vanilla-1.15/master/src/main/java/com/karogath/enhancedvanilla/block/DarkOakTanbarkBlock.java
package com.karogath.enhancedvanilla.block;
import net.minecraftforge.registries.ObjectHolder;
import net.minecraftforge.common.ToolType;
import net.minecraft.world.storage.loot.LootContext;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.Item;
import net.minecraft.item.BlockItem;
import net.minecraft.block.material.Material;
import net.minecraft.block.SoundType;
import net.minecraft.block.FallingBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.Block;
import java.util.List;
import java.util.Collections;
import com.karogath.enhancedvanilla.EnhancedVanillaElements;
@EnhancedVanillaElements.ModElement.Tag
public class DarkOakTanbarkBlock extends EnhancedVanillaElements.ModElement {
@ObjectHolder("enhancedvanilla:dark_oak_tanbark")
public static final Block block = null;
public DarkOakTanbarkBlock(EnhancedVanillaElements instance) {
super(instance, 51);
}
@Override
public void initElements() {
elements.blocks.add(() -> new CustomBlock());
elements.items
.add(() -> new BlockItem(block, new Item.Properties().group(ItemGroup.BUILDING_BLOCKS)).setRegistryName(block.getRegistryName()));
}
public static class CustomBlock extends FallingBlock {
public CustomBlock() {
super(Block.Properties.create(Material.SAND).sound(SoundType.WOOD).hardnessAndResistance(1f, 10f).lightValue(0).harvestLevel(1)
.harvestTool(ToolType.AXE));
setRegistryName("dark_oak_tanbark");
}
@Override
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
List<ItemStack> dropsOriginal = super.getDrops(state, builder);
if (!dropsOriginal.isEmpty())
return dropsOriginal;
return Collections.singletonList(new ItemStack(this, 1));
}
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
cf26748a26a0df5538e993057ba68964af47e165
|
9233d3bebc35d34e9e772b955e7349acc1a1499d
|
/src/core/cli/server/handlers/TaskActionHandler.java
|
2bcb619208d5f16d9df5aa19c77a2c9bdbf7c9ac
|
[
"Apache-2.0"
] |
permissive
|
repeats/Repeat
|
6ea2f8b33e4b66604638a10c2a7152f7adb7b268
|
6e91d22d38b79a7321e42446348c6206a548b950
|
refs/heads/master
| 2023-09-05T21:06:06.617333
| 2023-06-18T18:16:18
| 2023-06-18T18:16:18
| 67,899,304
| 1,047
| 83
|
Apache-2.0
| 2020-07-08T03:57:46
| 2016-09-10T23:19:40
|
Java
|
UTF-8
|
Java
| false
| false
| 2,578
|
java
|
package core.cli.server.handlers;
import java.io.IOException;
import java.util.logging.Logger;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.nio.protocol.HttpAsyncExchange;
import org.apache.http.protocol.HttpContext;
import argo.jdom.JsonNode;
import core.cli.messages.TaskGroupMessage;
import core.cli.messages.TaskIdentifier;
import core.cli.server.CliRpcCodec;
import core.userDefinedTask.TaskGroup;
import core.userDefinedTask.UserDefinedAction;
import core.webui.webcommon.HttpHandlerWithBackend;
public abstract class TaskActionHandler extends HttpHandlerWithBackend {
private static final Logger LOGGER = Logger.getLogger(TaskActionHandler.class.getName());
private static final String ACCEPTED_METHOD = "POST";
@Override
protected void handleWithBackend(HttpRequest request, HttpAsyncExchange exchange, HttpContext context)
throws HttpException, IOException {
String method = request.getRequestLine().getMethod();
if (!method.equalsIgnoreCase(ACCEPTED_METHOD)) {
LOGGER.warning("Ignoring request with unknown method " + method);
CliRpcCodec.prepareResponse(exchange, 400, "Method must be " + ACCEPTED_METHOD);
return;
}
JsonNode requestData = CliRpcCodec.decodeRequest(getRequestBody(request));
if (requestData == null) {
LOGGER.warning("Failed to parse request into JSON!");
CliRpcCodec.prepareResponse(exchange, 400, "Cannot parse request!");
return;
}
handleTaskActionWithBackend(exchange, requestData);
}
protected abstract Void handleTaskActionWithBackend(HttpAsyncExchange exchange, JsonNode request) throws IOException;
protected UserDefinedAction getTask(TaskGroup group, TaskIdentifier taskIdentifier) {
UserDefinedAction task = null;
if (group != null) {
task = group.getTask(taskIdentifier.getTask().getIndex());
if (task == null) {
task = group.getTaskByName(taskIdentifier.getTask().getName());
}
return task;
}
return backEndHolder.getTaskByName(taskIdentifier.getTask().getName());
}
protected TaskGroup getGroup(TaskIdentifier taskIdentifier) {
return getGroup(taskIdentifier.getGroup());
}
protected TaskGroup getGroup(TaskGroupMessage taskGroup) {
int index = taskGroup.getIndex();
String name = taskGroup.getName();
if (index == TaskGroupMessage.UNKNOWN_INDEX && name.isEmpty()) {
index = 0;
}
TaskGroup group = null;
if (taskGroup != null) {
group = backEndHolder.getTaskGroup(index);
if (group == null) {
group = backEndHolder.getTaskGroupFromName(name);
}
}
return group;
}
}
|
[
"hptruong93@gmail.com"
] |
hptruong93@gmail.com
|
d1bd126c82d6ac7c90dcd363439e28f80fcfffdb
|
1e163133d3e4d230dd478e273ac2e5ced45718a4
|
/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/sms/SmsTemplateMapper.java
|
d89449156183363bbc5a20708cffa63b3d75f3f4
|
[
"LicenseRef-scancode-unknown-license-reference",
"MulanPSL-1.0",
"LicenseRef-scancode-mulanpsl-1.0-en"
] |
permissive
|
HaoHaoDaYouXi/onemall
|
0b394cc8a7740f2b78df501803203477020a69f7
|
51c6ad1fd91212aa3f33304d2355e096bc295cfb
|
refs/heads/master
| 2022-07-19T15:50:58.984710
| 2022-06-26T14:12:06
| 2022-06-26T14:12:06
| 266,753,032
| 0
| 0
| null | 2020-05-25T10:41:53
| 2020-05-25T10:41:53
| null |
UTF-8
|
Java
| false
| false
| 2,714
|
java
|
package cn.iocoder.yudao.module.system.dal.mysql.sms;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateExportReqVO;
import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplatePageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsTemplateDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.Date;
import java.util.List;
@Mapper
public interface SmsTemplateMapper extends BaseMapperX<SmsTemplateDO> {
@Select("SELECT COUNT(*) FROM system_sms_template WHERE update_time > #{maxUpdateTime}")
Long selectCountByUpdateTimeGt(Date maxUpdateTime);
default SmsTemplateDO selectByCode(String code) {
return selectOne(SmsTemplateDO::getCode, code);
}
default PageResult<SmsTemplateDO> selectPage(SmsTemplatePageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<SmsTemplateDO>()
.eqIfPresent(SmsTemplateDO::getType, reqVO.getType())
.eqIfPresent(SmsTemplateDO::getStatus, reqVO.getStatus())
.likeIfPresent(SmsTemplateDO::getCode, reqVO.getCode())
.likeIfPresent(SmsTemplateDO::getContent, reqVO.getContent())
.likeIfPresent(SmsTemplateDO::getApiTemplateId, reqVO.getApiTemplateId())
.eqIfPresent(SmsTemplateDO::getChannelId, reqVO.getChannelId())
.betweenIfPresent(SmsTemplateDO::getCreateTime, reqVO.getBeginCreateTime(), reqVO.getEndCreateTime())
.orderByDesc(SmsTemplateDO::getId));
}
default List<SmsTemplateDO> selectList(SmsTemplateExportReqVO reqVO) {
return selectList(new LambdaQueryWrapperX<SmsTemplateDO>()
.eqIfPresent(SmsTemplateDO::getType, reqVO.getType())
.eqIfPresent(SmsTemplateDO::getStatus, reqVO.getStatus())
.likeIfPresent(SmsTemplateDO::getCode, reqVO.getCode())
.likeIfPresent(SmsTemplateDO::getContent, reqVO.getContent())
.likeIfPresent(SmsTemplateDO::getApiTemplateId, reqVO.getApiTemplateId())
.eqIfPresent(SmsTemplateDO::getChannelId, reqVO.getChannelId())
.betweenIfPresent(SmsTemplateDO::getCreateTime, reqVO.getBeginCreateTime(), reqVO.getEndCreateTime())
.orderByDesc(SmsTemplateDO::getId));
}
default Long selectCountByChannelId(Long channelId) {
return selectCount(SmsTemplateDO::getChannelId, channelId);
}
}
|
[
"zhijiantianya@gmail.com"
] |
zhijiantianya@gmail.com
|
9bdf332bf77911de586308cb0169fb3436624372
|
2d0de05ba47ad7200e3091bad8b2fbf1dc127684
|
/Books-Code-Example/HeadFirstDesignPatterns/src/main/java/com/sayem/command/simpleremote/GarageDoor.java
|
7d9ee0e6dbfaa9e9682639ff1f1d1540d7b4d82b
|
[] |
no_license
|
alvarozs/OnlineCode
|
10a05685ef515b42468521ae19a0e9e1061b49ad
|
c859d36c14520a11c1af31f12c20e89a19b4e24c
|
refs/heads/master
| 2021-01-22T01:04:42.278651
| 2013-07-24T03:16:12
| 2013-07-24T03:16:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 460
|
java
|
package com.sayem.command.simpleremote;
public class GarageDoor {
public GarageDoor() {
}
public void up() {
System.out.println("Garage Door is Open");
}
public void down() {
System.out.println("Garage Door is Closed");
}
public void stop() {
System.out.println("Garage Door is Stopped");
}
public void lightOn() {
System.out.println("Garage light is on");
}
public void lightOff() {
System.out.println("Garage light is off");
}
}
|
[
"mohammad.hemel@gmail.com"
] |
mohammad.hemel@gmail.com
|
50330821fec3905bf80a3b519b2c1142df0fe56e
|
5677f626d4f0644771c7758dae25cfeb37e1db94
|
/app/src/main/java/com/ftc300/androidskills/rxjava2/ui/SelectionActivity.java
|
fa14063ac35fcaa136c7774bc972a4f40b46da31
|
[] |
no_license
|
ftc300/AndroidSkills
|
502415489ecb6c45ea26f845758ffe7133a29c60
|
d1fe046ace0a65d506e8a71a62e4324034880d61
|
refs/heads/master
| 2020-03-27T01:18:09.070252
| 2018-09-04T10:59:26
| 2018-09-04T10:59:26
| 145,698,449
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,759
|
java
|
package com.ftc300.androidskills.rxjava2.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.ftc300.androidskills.App;
import com.ftc300.androidskills.R;
import com.ftc300.androidskills.rxjava2.ui.compose.ComposeOperatorExampleActivity;
import com.ftc300.androidskills.rxjava2.ui.networking.NetworkingActivity;
import com.ftc300.androidskills.rxjava2.ui.pagination.PaginationActivity;
import com.ftc300.androidskills.rxjava2.ui.rxbus.RxBusActivity;
import com.ftc300.androidskills.rxjava2.ui.search.SearchActivity;
public class SelectionActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_selection);
}
public void startOperatorsActivity(View view) {
startActivity(new Intent(SelectionActivity.this, OperatorsActivity.class));
}
public void startNetworkingActivity(View view) {
startActivity(new Intent(SelectionActivity.this, NetworkingActivity.class));
}
public void startRxBusActivity(View view) {
((App) getApplication()).sendAutoEvent();
startActivity(new Intent(SelectionActivity.this, RxBusActivity.class));
}
public void startPaginationActivity(View view) {
startActivity(new Intent(SelectionActivity.this, PaginationActivity.class));
}
public void startComposeOperator(View view) {
startActivity(new Intent(SelectionActivity.this, ComposeOperatorExampleActivity.class));
}
public void startSearchActivity(View view) {
startActivity(new Intent(SelectionActivity.this, SearchActivity.class));
}
}
|
[
"cd@inshowlife.com"
] |
cd@inshowlife.com
|
02cb20b4ecd7047004856431b0636686af462322
|
d64b90cc90e8e8cf9c5a8dc4b7cf66f8407420c2
|
/src/com/ydy258/ydy/filter/SiteStatusFilter.java
|
9f3012a846ae6ee22dd6da3dd803c06fd6e9959c
|
[] |
no_license
|
dengzhongmingabc/demopf
|
f6d4f3dde919c9d47f58e07834055fde6a0e072b
|
42c7cfbd7cb8d549614b4524100e5a0a37039b76
|
refs/heads/master
| 2021-01-22T03:29:46.176501
| 2017-05-25T08:06:27
| 2017-05-25T08:06:27
| 92,380,353
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,480
|
java
|
package com.ydy258.ydy.filter;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.util.AntPathMatcher;
import org.springframework.web.filter.OncePerRequestFilter;
import com.ydy258.ydy.Setting;
import com.ydy258.ydy.util.SettingUtils;
@Component("siteStatusFilter")
public class SiteStatusFilter extends OncePerRequestFilter {
/** Ĭ�Ϻ���URL */
private static final String[] DEFAULT_IGNORE_URL_PATTERNS = new String[] { "/admin/**" };
/** Ĭ���ض���URL */
private static final String DEFAULT_REDIRECT_URL = "/common/site_close.jhtml";
/** antPathMatcher */
private static AntPathMatcher antPathMatcher = new AntPathMatcher();
/** ����URL */
private String[] ignoreUrlPatterns = DEFAULT_IGNORE_URL_PATTERNS;
/** �ض���URL */
private String redirectUrl = DEFAULT_REDIRECT_URL;
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
Setting setting = SettingUtils.get();
if (setting.getIsSiteEnabled()) {
filterChain.doFilter(request, response);
} else {
String path = request.getServletPath();
if (path.equals(redirectUrl)) {
filterChain.doFilter(request, response);
return;
}
if (ignoreUrlPatterns != null) {
for (String ignoreUrlPattern : ignoreUrlPatterns) {
if (antPathMatcher.match(ignoreUrlPattern, path)) {
filterChain.doFilter(request, response);
return;
}
}
}
response.sendRedirect(request.getContextPath() + redirectUrl);
}
}
/**
* ��ȡ����URL
*
* @return ����URL
*/
public String[] getIgnoreUrlPatterns() {
return ignoreUrlPatterns;
}
/**
* ���ú���URL
*
* @param ignoreUrlPatterns
* ����URL
*/
public void setIgnoreUrlPatterns(String[] ignoreUrlPatterns) {
this.ignoreUrlPatterns = ignoreUrlPatterns;
}
/**
* ��ȡ�ض���URL
*
* @return �ض���URL
*/
public String getRedirectUrl() {
return redirectUrl;
}
/**
* �����ض���URL
*
* @param redirectUrl
* �ض���URL
*/
public void setRedirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
}
}
|
[
"admin@163.com"
] |
admin@163.com
|
b8c233a594ff0c42f0c69ad4bb219713f7ef3f85
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/95/org/apache/commons/math/distribution/FDistributionImpl_getInitialDomain_143.java
|
d46276279e3cd727b7e5de900d18d58fab5abb0f
|
[] |
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
| 598
|
java
|
org apach common math distribut
default implement
link org apach common math distribut distribut fdistribut
version revis date
distribut impl fdistributionimpl
access initi domain base code code
bracket cdf root method
link invers cumul probabl inversecumulativeprob find critic valu
param desir probabl critic
initi domain
initi domain getinitialdomain
ret
denomin degre freedom getdenominatordegreesoffreedom
ret
ret
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
072869b857730393a70f72577ab6397d04ac1c09
|
936aa88990d1e478491aa66627b0263b5590aaa0
|
/Platform/mp-cloud.develop/src/editor-face/org/mo/cloud/editor/face/inc/form/FFormAction.java
|
c913a2f8db5cff53836c353d63d6a7c613072e11
|
[] |
no_license
|
favedit/MoCloud3d
|
f6d417412c5686a0f043a2cc53cd34214ee35618
|
ef6116df5b66fbc16468bd5e915ba19bb982d867
|
refs/heads/master
| 2021-01-10T12:12:22.837243
| 2016-02-21T09:05:53
| 2016-02-21T09:05:53
| 48,077,310
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,428
|
java
|
package org.mo.cloud.editor.face.inc.form;
import org.mo.com.lang.RString;
import org.mo.com.xml.EXmlConfig;
import org.mo.com.xml.IXmlObject;
import org.mo.core.aop.face.ALink;
import org.mo.jfa.face.inc.form.FFormPage;
import org.mo.jfa.face.inc.form.IFormAction;
import org.mo.web.core.action.IActionConsole;
import org.mo.web.core.webform.IWebFormConsole;
import org.mo.web.protocol.context.IWebContext;
public class FFormAction
implements
IFormAction
{
@ALink
protected IActionConsole _actionConsole;
@ALink
protected IWebFormConsole _formConsole;
@Override
public String back(IWebContext context,
FFormPage page){
String formId = RString.nvl(context.parameter("fid"), page.getFormName());
IXmlObject form = _formConsole.find(formId);
if(null != form){
page.setAction("back");
page.setForm(form);
//page.setFields(form.controls());
}
return null;
}
@Override
public String delete(IWebContext context,
FFormPage page){
String formId = RString.nvl(context.parameter("fid"), page.getFormName());
IXmlObject form = _formConsole.find(formId);
if(null != form){
page.setAction("delete");
page.setForm(form);
//page.setFields(form.controls());
}
return null;
}
@Override
public String deleteSave(IWebContext context,
FFormPage page){
// TODO Auto-generated method stub
return null;
}
@Override
public String insert(IWebContext context,
FFormPage page){
String formId = RString.nvl(context.parameter("fid"), page.getFormName());
IXmlObject form = _formConsole.find(formId);
if(null != form){
page.setAction("insert");
page.setForm(form);
//page.setFields(form.controls());
}
return null;
}
@Override
public String insertSave(IWebContext context,
FFormPage page){
// TODO Auto-generated method stub
return null;
}
@Override
public String search(IWebContext context,
FFormPage page){
String formId = RString.nvl(context.parameter("fid"), page.getFormName());
IXmlObject form = _formConsole.find(formId);
if(null != form){
page.setAction("search");
page.setForm(form);
//page.setFields(form.controls());
}
return null;
}
@Override
public String show(IWebContext context,
FFormPage page){
String redirect = null;
String formId = RString.nvl(context.parameter("form_name"), page.getFormName());
IXmlObject form = _formConsole.find(formId);
if(null != form){
page.setAction("show");
page.setForm(form);
page.setFormConfig(_formConsole.build(form.name(), EXmlConfig.Simple).xml());
// Action
String action = form.innerGet("action");
if(RString.isNotBlank(action)){
redirect = _actionConsole.execute(context, action);
}
}
return RString.nvl(redirect, "Show");
}
@Override
public String update(IWebContext context,
FFormPage page){
String redirect = null;
String formId = RString.nvl(context.parameter("form_name"), page.getFormName());
IXmlObject form = _formConsole.find(formId);
if(null != form){
page.setAction("update");
page.setForm(form);
//page.setFields(form.controls());
// Action -> fill data
page.setFormConfig(_formConsole.build(form.name(), EXmlConfig.Simple).xml());
// Action
String action = form.innerGet("action");
if(RString.isNotBlank(action)){
redirect = _actionConsole.execute(context, action);
}
}
return RString.nvl(redirect, "Update");
}
@Override
public String updateSave(IWebContext context,
FFormPage page){
String redirect = null;
IXmlObject form = page.getForm();
if(null != form){
page.setAction("updateSave");
// Action -> fill data
String action = form.innerGet("action");
if(RString.isNotBlank(action)){
redirect = _actionConsole.execute(context, action);
}
}
return redirect;
}
}
|
[
"favedit@hotmail.com"
] |
favedit@hotmail.com
|
c1d2d414c5bde08e04411ba8c46051be6748d36f
|
156ed60b65c508f7210f279a6680280a10006400
|
/3.JavaMultithreading/src/com/javarush/task/task35/task3513/MoveEfficiency.java
|
0b905e85f3138447dbe9e3e72f89981c7d3f71d1
|
[] |
no_license
|
Abergaz/JavaRushTasks
|
90f42c6d37402098528d5cb6b7dfb63bd51220ae
|
5dcb38dff61c09384bf711d2357848f7327b08ec
|
refs/heads/master
| 2020-04-29T02:16:21.371765
| 2019-07-23T11:13:27
| 2019-07-23T11:13:27
| 175,760,604
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,496
|
java
|
package com.javarush.task.task35.task3513;
/**
* описывает эффективность хода
*/
public class MoveEfficiency implements Comparable<MoveEfficiency> {
//количесиво пустыъ клеток после хода
private int numberOfEmptyTiles;
//счет после хода
private int score;
private Move move;
public MoveEfficiency(int numberOfEmptyTiles, int score, Move move) {
this.numberOfEmptyTiles = numberOfEmptyTiles;
this.score = score;
this.move = move;
}
public Move getMove() {
return move;
}
/**
* В методе compareTo первым делом сравни количество пустых плиток (numberOfEmptyTiles),
* потом счет (score), если количество пустых плиток равное.
* Если и счет окажется равным, будем считать эффективность ходов равной и вернем ноль. *
*/
@Override
public int compareTo(MoveEfficiency that) {
if (this == that) return 0;
if (this.numberOfEmptyTiles > that.numberOfEmptyTiles) return 1;
if (this.numberOfEmptyTiles < that.numberOfEmptyTiles) return -1;
if (this.numberOfEmptyTiles == that.numberOfEmptyTiles) {
if (this.score > that.score) return 1;
if (this.score < that.score) return -1;
}
return 0;
}
}
|
[
"zagreba@gmail.com"
] |
zagreba@gmail.com
|
8ef3833022649ef16c899ed9a2ee33153a1ddce7
|
08506438512693067b840247fa2c9a501765f39d
|
/Product/Production/Adapters/PatientDiscovery_a0/src/test/java/gov/hhs/fha/nhinc/patientdiscovery/adapter/deferred/request/queue/AdapterPatientDiscoveryDeferredReqQueueProcessTest.java
|
68494f9864bde4df05404d104fd3fe85ee67073b
|
[] |
no_license
|
AurionProject/Aurion
|
2f577514de39e91e1453c64caa3184471de891fa
|
b99e87e6394ecdde8a4197b755774062bf9ef890
|
refs/heads/master
| 2020-12-24T07:42:11.956869
| 2017-09-27T22:08:31
| 2017-09-27T22:08:31
| 49,459,710
| 1
| 0
| null | 2017-03-07T23:24:56
| 2016-01-11T22:55:12
|
Java
|
UTF-8
|
Java
| false
| false
| 4,126
|
java
|
/*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of the United States Government nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE UNITED STATES GOVERNMENT BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.queue;
import gov.hhs.fha.nhinc.gateway.adapterpatientdiscoveryreqqueueprocess.PatientDiscoveryDeferredReqQueueProcessRequestType;
import gov.hhs.fha.nhinc.gateway.adapterpatientdiscoveryreqqueueprocess.PatientDiscoveryDeferredReqQueueProcessResponseType;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.integration.junit4.JMock;
import org.jmock.integration.junit4.JUnit4Mockery;
import org.jmock.lib.legacy.ClassImposteriser;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
*
* @author akong
*/
@RunWith(JMock.class)
public class AdapterPatientDiscoveryDeferredReqQueueProcessTest {
Mockery context = new JUnit4Mockery() {
{
setImposteriser(ClassImposteriser.INSTANCE);
}
};
final AdapterPatientDiscoveryDeferredReqQueueProcessImpl mockImpl = context
.mock(AdapterPatientDiscoveryDeferredReqQueueProcessImpl.class);
@Test
public void testGetAdapterPatientDiscoveryDeferredReqQueueProcessImpl() {
AdapterPatientDiscoveryDeferredReqQueueProcess process = new AdapterPatientDiscoveryDeferredReqQueueProcess();
AdapterPatientDiscoveryDeferredReqQueueProcessImpl processImpl = process
.getAdapterPatientDiscoveryDeferredReqQueueProcessImpl();
assertNotNull(processImpl);
}
@Test
public void testProcessPatientDiscoveryDeferredReqQueue() {
AdapterPatientDiscoveryDeferredReqQueueProcess process = new AdapterPatientDiscoveryDeferredReqQueueProcess() {
@Override
protected AdapterPatientDiscoveryDeferredReqQueueProcessImpl getAdapterPatientDiscoveryDeferredReqQueueProcessImpl() {
return mockImpl;
}
};
context.checking(new Expectations() {
{
oneOf(mockImpl).processPatientDiscoveryDeferredReqQueue(
with(any(PatientDiscoveryDeferredReqQueueProcessRequestType.class)),
with(any(javax.xml.ws.WebServiceContext.class)));
will(returnValue(new PatientDiscoveryDeferredReqQueueProcessResponseType()));
}
});
PatientDiscoveryDeferredReqQueueProcessResponseType response = process
.processPatientDiscoveryDeferredReqQueue(null);
assertNotNull(response);
}
}
|
[
"neilkwebb@hotmail.com"
] |
neilkwebb@hotmail.com
|
80d236cc362ef0567db6bb0e39b80f008f6143db
|
b993337fb2ccf8f8f9c6246ef26a5daef7a20aa3
|
/xiaobaoKotlin/app/src/main/java/com/example/xiaobao/xiaobaokotlin/home6/day2/home6_day2_imagetest_activity.java
|
00abbe6c4f3e9a5de4895a470603d0007af85da3
|
[] |
no_license
|
shuyangxiaobao/android_app
|
e94b874b36a42f032e60ba1fce136efcb1a9773a
|
45027c72e3f6421ee3fcd358f3b5b1a62200c480
|
refs/heads/master
| 2022-11-19T08:01:08.352180
| 2020-07-20T07:53:22
| 2020-07-20T07:53:22
| 271,435,250
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,245
|
java
|
package com.example.xiaobao.xiaobaokotlin.home6.day2;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.ProgressBar;
import com.example.xiaobao.xiaobaokotlin.R;
/**
* Created by xiaobao on 2020/6/10.
*/
public class home6_day2_imagetest_activity extends Activity {
private ImageView mImageView;
private ProgressBar mProgressBar;
private static String URL_String = "http://img.mukewang.com/5518bbe30001c32006000338-300-170.jpg";
private Handler handler = new Handler();
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.home6_day2_imagetest);
mImageView = findViewById(R.id.home6_day2_imageview);
mProgressBar = findViewById(R.id.home6_day2_progressbar);
demo2();
}
public void demo1(){
home6_day2_myAsyncTask task = new home6_day2_myAsyncTask();
task.execute();
}
public void demo2(){
home6_day2_myAsyncTask2 task = new home6_day2_myAsyncTask2(mImageView,mProgressBar);
task.execute(URL_String);
}
}
|
[
"825065886@qq.com"
] |
825065886@qq.com
|
30987edf75fbc42c0e8d9c3edb0f0fde42e4d45e
|
f8af02dd6d14287f6bfbb8725e3b11094261875b
|
/deps/src/main/java/com/newrelic/deps/com/google/common/collect/ForwardingObject.java
|
2f971ec975d906265c1ceba0f9c9fc4d9af528e1
|
[] |
no_license
|
masonmei/mx
|
fca12bedf2c9fef30452a485b81e23d416a0b534
|
38e0909f9a1720f32d59af280d7fd9a591c45f6c
|
refs/heads/master
| 2021-01-11T04:57:18.501563
| 2015-07-30T08:20:28
| 2015-07-30T08:20:31
| 39,553,289
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,139
|
java
|
/*
* Copyright (C) 2007 The Guava 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 com.newrelic.deps.com.google.common.collect;
import com.newrelic.deps.com.google.common.annotations.GwtCompatible;
import java.io.Serializable;
/**
* An abstract base class for implementing the <a
* href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
* The {@link #delegate()} method must be overridden to return the instance
* being decorated.
*
* <p>This class does <i>not</i> forward the {@code hashCode} and {@code equals}
* methods through to the backing object, but relies on {@code Object}'s
* implementation. This is necessary to preserve the symmetry of {@code equals}.
* Custom definitions of equality are usually based on an interface, such as
* {@code Set} or {@code List}, so that the implementation of {@code equals} can
* cast the object being tested for equality to the custom interface. {@code
* ForwardingObject} implements no such custom interfaces directly; they
* are implemented only in subclasses. Therefore, forwarding {@code equals}
* would break symmetry, as the forwarding object might consider itself equal to
* the object being tested, but the reverse could not be true. This behavior is
* consistent with the JDK's collection wrappers, such as
* {@link java.util.Collections#unmodifiableCollection}. Use an
* interface-specific subclass of {@code ForwardingObject}, such as {@link
* ForwardingList}, to preserve equality behavior, or override {@code equals}
* directly.
*
* <p>The {@code toString} method is forwarded to the delegate. Although this
* class does not implement {@link Serializable}, a serializable subclass may be
* created since this class has a parameter-less constructor.
*
* @author Mike Bostock
* @since 2.0 (imported from Google Collections Library)
*/
@GwtCompatible
public abstract class ForwardingObject {
/** Constructor for use by subclasses. */
protected ForwardingObject() {}
/**
* Returns the backing delegate instance that methods are forwarded to.
* Abstract subclasses generally override this method with an abstract method
* that has a more specific return type, such as {@link
* ForwardingSet#delegate}. Concrete subclasses override this method to supply
* the instance being decorated.
*/
protected abstract Object delegate();
/**
* Returns the string representation generated by the delegate's
* {@code toString} method.
*/
@Override public String toString() {
return delegate().toString();
}
/* No equals or hashCode. See class comments for details. */
}
|
[
"dongxu.m@gmail.com"
] |
dongxu.m@gmail.com
|
affce3a02c050cd5c5c7cf12bb792b6e2b585570
|
8392d705d9a16d5a5c0b5ce45388b69e2eee560a
|
/app/src/main/java/com/tupperware/mgt/ui/main/fragment/MeFragment.java
|
ddc61abe7665f80ec71467b1288c87bd99766e17
|
[] |
no_license
|
Demo-H/Manager
|
1effb3b2135e91ba489dbf99ad881d787040d859
|
c0a02a8f2a913afc33853eb8be5c5cfc9f3b7627
|
refs/heads/master
| 2020-04-20T14:37:39.466625
| 2019-02-03T03:27:53
| 2019-02-03T03:27:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,722
|
java
|
package com.tupperware.mgt.ui.main.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.dhunter.common.config.GlobalConfig;
import com.facebook.drawee.view.SimpleDraweeView;
import com.tupperware.mgt.R;
import com.tupperware.mgt.base.BaseFragment;
import com.tupperware.mgt.entity.login.EmployeeInfo;
import com.tupperware.mgt.ui.me.activity.SettingActivity;
import com.tupperware.mgt.utils.ObjectUtil;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
* Created by dhunter on 2018/11/19.
*/
public class MeFragment extends BaseFragment {
private View rootView = null;
@BindView(R.id.tv_name)
TextView nameTv;
@BindView(R.id.tv_uid)
TextView uidTv;
@BindView(R.id.tv_position)
TextView positionTv;
@BindView(R.id.head_img)
SimpleDraweeView headImageView;
@BindView(R.id.rl_setting)
RelativeLayout settingLayout;
public MeFragment() {
}
public static MeFragment newInstance() {
MeFragment fragment = new MeFragment();
return fragment;
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
rootView = inflater.inflate(getLayoutId(), container, false);
unbinder = ButterKnife.bind(this, rootView);
initLayout();
requestData();
return rootView;
}
@Override
public void initLayout() {
String infoJson = mDataManager.getSPData(GlobalConfig.LOGIN_EMPLOYEE_INFO);
EmployeeInfo info = ObjectUtil.fromJson(infoJson, EmployeeInfo.class);
if (info != null){
nameTv.setText(info.getpName());
uidTv.setText(info.getpUid());
positionTv.setText(info.getpOrganization() + "-"+info.getpPosition());
if (!TextUtils.isEmpty(info.getpWxHeadimg())){
headImageView.setImageURI(info.getpWxHeadimg());
}
}
}
@Override
public void requestData() {
}
@Override
public int getLayoutId() {
return R.layout.fragment_me;
}
@OnClick({R.id.rl_setting})
public void onClick(View view) {
switch (view.getId()) {
case R.id.rl_setting:
Intent intent = new Intent(getActivity(),SettingActivity.class);
startActivity(intent);
break;
}
}
}
|
[
"wbin18@126.com"
] |
wbin18@126.com
|
02c801456409bc13c035732708bb705677cf9b79
|
6eb9945622c34e32a9bb4e5cd09f32e6b826f9d3
|
/src/com/nirhart/parallaxscroll/views/ParallaxScrollView$ScrollViewParallaxedItem.java
|
9ce4245770a00a886df864ed3482ac05f71b0888
|
[] |
no_license
|
alexivaner/GadgetX-Android-App
|
6d700ba379d0159de4dddec4d8f7f9ce2318c5cc
|
26c5866be12da7b89447814c05708636483bf366
|
refs/heads/master
| 2022-06-01T09:04:32.347786
| 2020-04-30T17:43:17
| 2020-04-30T17:43:17
| 260,275,241
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 704
|
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.nirhart.parallaxscroll.views;
import android.view.View;
// Referenced classes of package com.nirhart.parallaxscroll.views:
// ParallaxedView, ParallaxScrollView
protected class this._cls0 extends ParallaxedView
{
final ParallaxScrollView this$0;
protected void translatePreICS(View view, float f)
{
view.offsetTopAndBottom((int)f - lastOffset);
lastOffset = (int)f;
}
public (View view)
{
this$0 = ParallaxScrollView.this;
super(view);
}
}
|
[
"hutomoivan@gmail.com"
] |
hutomoivan@gmail.com
|
ab12a77dd4a4e373d1d409b3fa5b528ed9a59368
|
90f9d0d74e6da955a34a97b1c688e58df9f627d0
|
/com.ibm.ccl.soa.deploy.ihs/src/com/ibm/ccl/soa/deploy/ihs/validation/IhsWasAdminModuleUnitValidator.java
|
8def3dbe278e1e406aabe65681fc659a6a4abc9f
|
[] |
no_license
|
kalapriyakannan/UMLONT
|
0431451674d7b3eb744fb436fab3d13e972837a4
|
560d9f5d2ba6a800398a24fd8265e5a946179fd3
|
refs/heads/master
| 2020-03-30T03:16:44.327160
| 2018-09-28T03:28:11
| 2018-09-28T03:28:11
| 150,679,726
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,022
|
java
|
/*******************************************************************************
* Copyright (c) 2003, 2007 IBM Corporation Licensed Material - Property of IBM. All rights reserved.
*
* US Government Users Restricted Rights - Use, duplication or disclosure v1.0 restricted by GSA ADP
* Schedule Contract with IBM Corp.
*
* Contributors: IBM Corporation - initial API and implementation
*******************************************************************************/
package com.ibm.ccl.soa.deploy.ihs.validation;
/**
* A sample validator interface for {@link com.ibm.ccl.soa.deploy.ihs.IhsWasAdminModuleUnit}. This
* doesn't really do anything, and it's not a real EMF artifact. It was generated by the
* org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can
* be extended. This can be disabled with -vmargs
* -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface IhsWasAdminModuleUnitValidator {
boolean validate();
}
|
[
"kalapriya.kannan@in.ibm.com"
] |
kalapriya.kannan@in.ibm.com
|
3be5ea8f41a9677fbc285c6aa4942be591ded9ed
|
fec4a09f54f4a1e60e565ff833523efc4cc6765a
|
/Dependencies/work/decompile-00fabbe5/net/minecraft/world/entity/ai/control/ControllerMoveFlying.java
|
8da9aa4bfce12c86e2f0ccf919e4df1d9f13bd53
|
[] |
no_license
|
DefiantBurger/SkyblockItems
|
012d2082ae3ea43b104ac4f5bf9eeb509889ec47
|
b849b99bd4dc52ae2f7144ddee9cbe2fd1e6bf03
|
refs/heads/master
| 2023-06-23T17:08:45.610270
| 2021-07-27T03:27:28
| 2021-07-27T03:27:28
| 389,780,883
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,163
|
java
|
package net.minecraft.world.entity.ai.control;
import net.minecraft.util.MathHelper;
import net.minecraft.world.entity.EntityInsentient;
import net.minecraft.world.entity.ai.attributes.GenericAttributes;
public class ControllerMoveFlying extends ControllerMove {
private final int maxTurn;
private final boolean hoversInPlace;
public ControllerMoveFlying(EntityInsentient entityinsentient, int i, boolean flag) {
super(entityinsentient);
this.maxTurn = i;
this.hoversInPlace = flag;
}
@Override
public void a() {
if (this.operation == ControllerMove.Operation.MOVE_TO) {
this.operation = ControllerMove.Operation.WAIT;
this.mob.setNoGravity(true);
double d0 = this.wantedX - this.mob.locX();
double d1 = this.wantedY - this.mob.locY();
double d2 = this.wantedZ - this.mob.locZ();
double d3 = d0 * d0 + d1 * d1 + d2 * d2;
if (d3 < 2.500000277905201E-7D) {
this.mob.v(0.0F);
this.mob.u(0.0F);
return;
}
float f = (float) (MathHelper.d(d2, d0) * 57.2957763671875D) - 90.0F;
this.mob.setYRot(this.a(this.mob.getYRot(), f, 90.0F));
float f1;
if (this.mob.isOnGround()) {
f1 = (float) (this.speedModifier * this.mob.b(GenericAttributes.MOVEMENT_SPEED));
} else {
f1 = (float) (this.speedModifier * this.mob.b(GenericAttributes.FLYING_SPEED));
}
this.mob.r(f1);
double d4 = Math.sqrt(d0 * d0 + d2 * d2);
if (Math.abs(d1) > 9.999999747378752E-6D || Math.abs(d4) > 9.999999747378752E-6D) {
float f2 = (float) (-(MathHelper.d(d1, d4) * 57.2957763671875D));
this.mob.setXRot(this.a(this.mob.getXRot(), f2, (float) this.maxTurn));
this.mob.v(d1 > 0.0D ? f1 : -f1);
}
} else {
if (!this.hoversInPlace) {
this.mob.setNoGravity(false);
}
this.mob.v(0.0F);
this.mob.u(0.0F);
}
}
}
|
[
"joseph.cicalese@gmail.com"
] |
joseph.cicalese@gmail.com
|
01687b8ab3241360a5c84e7cd253e770e602235f
|
809852b69e3a056472d88eab817f756b68b9889f
|
/src/com/joshua/Game.java
|
6db0a013cc39244c5b4f6e5bf87e76f8b1e105a2
|
[] |
no_license
|
joshua-qa/java-2048game
|
835e00fecc65a3a26c07aafe01c2ce189a38f5a7
|
b778cff8c3c03e5a64880a96fb2d17538cd34f31
|
refs/heads/master
| 2021-01-19T21:05:59.943430
| 2017-04-18T09:22:59
| 2017-04-18T09:22:59
| 88,606,412
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 601
|
java
|
package com.joshua;
/**
* Created by jgchoi.qa on 2017. 4. 18..
*/
public class Game implements Play {
private static int[][] gameArray = new int[4][4];
@Override
public void drawGame() {
}
@Override
public boolean numberGenerate() {
return false;
}
@Override
public boolean rotateUp() {
return false;
}
@Override
public boolean rotateDown() {
return false;
}
@Override
public boolean rotateLeft() {
return false;
}
@Override
public boolean rotateRight() {
return false;
}
}
|
[
"jgchoi.qa@gmail.com"
] |
jgchoi.qa@gmail.com
|
a15ca33913b1ce82705ce40d3509a5410a6b6850
|
c20c3cb1699f726fc285a6917d0ee673915f5b06
|
/VV/src/net/java/otr4j/io/messages/PlainTextMessage.java
|
c2f70f09d693fe61a544a23fec39a60113312881
|
[
"Apache-2.0"
] |
permissive
|
zoozooll/MyExercise
|
35a18c0ead552d5be45f627066a5066f6cc8c99b
|
1be14e0252babb28e32951fa1e35fc867a6ac070
|
refs/heads/master
| 2023-04-04T04:24:14.275531
| 2021-04-18T15:01:03
| 2021-04-18T15:01:03
| 108,665,215
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,065
|
java
|
/*
* otr4j, the open source java otr library.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.otr4j.io.messages;
import java.util.List;
/**
* @author George Politis
*/
public class PlainTextMessage extends QueryMessage {
// Fields.
public String cleanText;
// Ctor.
public PlainTextMessage(List<Integer> versions, String cleanText) {
super(MESSAGE_PLAINTEXT, versions);
this.cleanText = cleanText;
}
// Methods.
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result
+ ((cleanText == null) ? 0 : cleanText.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
PlainTextMessage other = (PlainTextMessage) obj;
if (cleanText == null) {
if (other.cleanText != null)
return false;
} else if (!cleanText.equals(other.cleanText))
return false;
return true;
}
}
|
[
"kangkang365@gmail.com"
] |
kangkang365@gmail.com
|
3fff42803a5806774e59cdfce4d1ba7a4328dbbe
|
c360e2239860cd74527eb71115f09e92455b4901
|
/src/main/java/com/resource/server/repository/ProductSetDetailsRepository.java
|
829bd6c7cef3deb44390c9da7d86c039d4f7203c
|
[] |
no_license
|
thetlwinoo/ecp-resource
|
ff2be4bb831f108a44b3969eda379885c1472625
|
9659b178a333b7443604197301cc0b5f2cbbbaa8
|
refs/heads/master
| 2022-12-25T08:34:06.665691
| 2019-11-01T10:12:08
| 2019-11-01T10:12:08
| 216,721,900
| 0
| 0
| null | 2022-12-16T04:40:35
| 2019-10-22T04:16:44
|
Java
|
UTF-8
|
Java
| false
| false
| 446
|
java
|
package com.resource.server.repository;
import com.resource.server.domain.ProductSetDetails;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the ProductSetDetails entity.
*/
@SuppressWarnings("unused")
@Repository
public interface ProductSetDetailsRepository extends JpaRepository<ProductSetDetails, Long>, JpaSpecificationExecutor<ProductSetDetails> {
}
|
[
"thetlwinoo85@yahoo.com"
] |
thetlwinoo85@yahoo.com
|
422544ec9547498f5aff21e7675769b776454e68
|
459a1c502a8cdc4309872f04eed41f3ede6454b1
|
/collect_app/src/test/java/org/odk/collect/android/widgets/base/FileWidgetTest.java
|
beef9e49e52cf7e75d2abeb0499babf6953d0adf
|
[
"Apache-2.0"
] |
permissive
|
dta613/collect
|
b818f9b1600194ed667da1617ae7684159db61b9
|
007873caeb3be063dc393d963c0910e6f86d24b6
|
refs/heads/master
| 2021-07-07T16:59:30.439102
| 2017-10-04T06:19:59
| 2017-10-04T06:19:59
| 105,789,721
| 0
| 1
| null | 2017-10-04T16:13:12
| 2017-10-04T16:13:12
| null |
UTF-8
|
Java
| false
| false
| 1,927
|
java
|
package org.odk.collect.android.widgets.base;
import android.support.annotation.NonNull;
import net.bytebuddy.utility.RandomString;
import org.javarosa.core.model.data.StringData;
import org.junit.Test;
import org.mockito.Mock;
import org.odk.collect.android.widgets.FileWidget;
import java.io.File;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
public abstract class FileWidgetTest<W extends FileWidget> extends BinaryWidgetTest<W, StringData> {
@Mock
public File instancePath;
@NonNull
@Override
public StringData getInitialAnswer() {
return new StringData(RandomString.make());
}
@Override
public void setUp() throws Exception {
super.setUp();
when(formController.getInstancePath()).thenReturn(instancePath);
when(instancePath.getParent()).thenReturn("");
}
@Test
public void settingANewAnswerShouldCallDeleteMediaToRemoveTheOldFile() {
prepareForSetAnswer();
super.settingANewAnswerShouldRemoveTheOldAnswer();
W widget = getWidget();
verify(widget).deleteFile();
}
@Test
public void callingClearAnswerShouldCallDeleteMediaAndRemoveTheExistingAnswer() {
super.callingClearShouldRemoveTheExistingAnswer();
W widget = getWidget();
verify(widget).deleteFile();
}
@Override
public void getAnswerShouldReturnCorrectAnswerAfterBeingSet() {
prepareForSetAnswer();
super.getAnswerShouldReturnCorrectAnswerAfterBeingSet();
}
@Override
public void settingANewAnswerShouldRemoveTheOldAnswer() {
prepareForSetAnswer();
super.settingANewAnswerShouldRemoveTheOldAnswer();
}
/**
* Override this to provide additional set-up prior to testing any set answer methods.
*/
protected void prepareForSetAnswer() {
// Default implementation does nothing.
}
}
|
[
"lognaturel@gmail.com"
] |
lognaturel@gmail.com
|
50f22f361d35eda4b4735552a3a1e49a717b473f
|
1aa62cf22aaaeb399d6af63f3c7219938686f158
|
/project/《java从入门到精通》/chapter17/src/com/github/mrzhqiang/Account.java
|
b1ae01a437e5181f312fb016fb9709eac5e18bb8
|
[
"Apache-2.0"
] |
permissive
|
mrzhqiang/studyjava-zz
|
ae2dbc2e8d2b3483f21d8c58ea394e3cb4d4809f
|
b80f263d2ed6cdd686808aba7f18aec9e03f117e
|
refs/heads/master
| 2021-10-24T09:54:04.134384
| 2019-03-25T01:54:17
| 2019-03-25T01:54:17
| 110,648,689
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 588
|
java
|
package com.github.mrzhqiang;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Account {
public String username;
public String password;
public User user;
public int type;
public Account of(ResultSet rs) throws SQLException {
username = rs.getString("username");
password = rs.getString("password");
user = new User().of(rs);
return this;
}
@Override
public String toString() {
return "Account: username=" + username + ", password=" + password + ", user=" + user + ", type=" + type;
}
}
|
[
"287431404@qq.com"
] |
287431404@qq.com
|
4f72382e2d2c36f6aeed1a4e359ca60a477b7542
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project496/src/main/java/org/gradle/test/performance/largejavamultiproject/project496/p2480/Production49611.java
|
d69ad4619f8f892122bf08f43f78024913c9d169
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,971
|
java
|
package org.gradle.test.performance.largejavamultiproject.project496.p2480;
public class Production49611 {
private Production49608 property0;
public Production49608 getProperty0() {
return property0;
}
public void setProperty0(Production49608 value) {
property0 = value;
}
private Production49609 property1;
public Production49609 getProperty1() {
return property1;
}
public void setProperty1(Production49609 value) {
property1 = value;
}
private Production49610 property2;
public Production49610 getProperty2() {
return property2;
}
public void setProperty2(Production49610 value) {
property2 = value;
}
private String property3;
public String getProperty3() {
return property3;
}
public void setProperty3(String value) {
property3 = value;
}
private String property4;
public String getProperty4() {
return property4;
}
public void setProperty4(String value) {
property4 = value;
}
private String property5;
public String getProperty5() {
return property5;
}
public void setProperty5(String value) {
property5 = value;
}
private String property6;
public String getProperty6() {
return property6;
}
public void setProperty6(String value) {
property6 = value;
}
private String property7;
public String getProperty7() {
return property7;
}
public void setProperty7(String value) {
property7 = value;
}
private String property8;
public String getProperty8() {
return property8;
}
public void setProperty8(String value) {
property8 = value;
}
private String property9;
public String getProperty9() {
return property9;
}
public void setProperty9(String value) {
property9 = value;
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
d035a2d48d1d5bd725cb1bd276d8222c0d919ac1
|
722f7b4175ff4d72db431e484e6413771a5d8a4e
|
/REFORZAMIENTO/ProyectoVentasG2/src/main/java/pe/edu/upeu/util/LeerTeclado.java
|
e1be67dddf2de55984a1b9f2d5be1aa653a44ac5
|
[
"Apache-2.0"
] |
permissive
|
davidmp/upeu-proyecto
|
16d9fcf7f3822d30d9128daed91e71a59bc93575
|
b721a9d86b47d0847c0c5736088b71761aee654f
|
refs/heads/main
| 2023-06-11T05:03:15.240874
| 2021-07-07T17:27:19
| 2021-07-07T17:27:19
| 357,867,078
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,931
|
java
|
package pe.edu.upeu.util;
import java.io.*;
public class LeerTeclado {
BufferedReader teclado = new BufferedReader(new InputStreamReader(System.in));
public int leer(int valor, String msg) {
System.out.println(msg);
try {
valor=Integer.parseInt(teclado.readLine());
} catch (NumberFormatException ex) {
System.err.println(ex.getMessage());
valor=leer(valor, msg);
} catch (Exception e) {
System.err.println(e.getMessage());
valor=leer(valor, msg);
}
return valor;
}
public long leer(long valor, String msg) {
System.out.println(msg);
try {
valor=Long.parseLong(teclado.readLine());
} catch (Exception e) {
valor=leer(valor, msg);
}
return valor;
}
public double leer(double valor, String msg) {
System.out.println(msg);
try {
valor=Double.parseDouble(teclado.readLine());
} catch (Exception e) {
valor=leer(valor, msg);
}
return valor;
}
public char leer(char valor, String msg) {
System.out.println(msg);
try {
valor=teclado.readLine().charAt(0); //David
} catch (Exception e) {
valor=leer(valor, msg);
}
return valor;
}
public String leer(String valor, String msg) {
System.out.println(msg);
try {
valor=String.valueOf(teclado.readLine()); //
} catch (Exception e) {
valor=leer(valor, msg);
}
return valor;
}
public boolean leer(boolean valor, String msg) {
System.out.println(msg);
try {
valor=Boolean.parseBoolean(teclado.readLine()); //David
} catch (Exception e) {
valor=leer(valor, msg);
}
return valor;
}
}
|
[
"mamanipari@gmail.com"
] |
mamanipari@gmail.com
|
ff1370eb6a84b666913f34fe181235db82bf36fe
|
7e437625632bf88c8320d5700d4c4e64144f44a4
|
/target/classes/extracted1/c-jdbc-controller/org/objectweb/cjdbc/controller/loadbalancer/policies/createtable/CreateTableRoundRobin_ESTest_scaffolding.java
|
3da6979694712205b13ec89e7e54f3e9ee9e0d7a
|
[] |
no_license
|
hussainbzu344/Testing-system
|
ffe8d0c34dcbef4d1a94ea910759336fda7d1a2b
|
cf37e28c779838cb6fe718b1af9874b3c2e5c076
|
refs/heads/master
| 2020-04-22T23:23:18.632957
| 2019-02-14T18:41:38
| 2019-02-14T18:41:38
| 170,739,994
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,244
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Jul 18 21:10:23 GMT 2016
*/
package org.objectweb.cjdbc.controller.loadbalancer.policies.createtable;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class CreateTableRoundRobin_ESTest_scaffolding {
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRoundRobin";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.specification.version", "1.8");
java.lang.System.setProperty("java.home", "/usr/local/lib/java/jdk1.8.0_91/jre");
java.lang.System.setProperty("user.dir", "/home/li/Projects/phd/corpus-x/data/qualitas_corpus_20130901/c_jdbc-2.0.2/.xcorpus");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("user.home", "/home/li");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit");
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("file.separator", "/");
java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment");
java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob");
java.lang.System.setProperty("java.class.path", "/tmp/EvoSuite_pathingJar1962963780705443365.jar");
java.lang.System.setProperty("java.class.version", "52.0");
java.lang.System.setProperty("java.endorsed.dirs", "/usr/local/lib/java/jdk1.8.0_91/jre/lib/endorsed");
java.lang.System.setProperty("java.ext.dirs", "/usr/local/lib/java/jdk1.8.0_91/jre/lib/ext:/usr/java/packages/lib/ext");
java.lang.System.setProperty("java.library.path", "lib");
java.lang.System.setProperty("java.runtime.name", "Java(TM) SE Runtime Environment");
java.lang.System.setProperty("java.runtime.version", "1.8.0_91-b14");
java.lang.System.setProperty("java.specification.name", "Java Platform API Specification");
java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/");
java.lang.System.setProperty("java.version", "1.8.0_91");
java.lang.System.setProperty("java.vm.info", "mixed mode");
java.lang.System.setProperty("java.vm.name", "Java HotSpot(TM) 64-Bit Server VM");
java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification");
java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vm.specification.version", "1.8");
java.lang.System.setProperty("java.vm.version", "25.91-b14");
java.lang.System.setProperty("line.separator", "\n");
java.lang.System.setProperty("os.arch", "amd64");
java.lang.System.setProperty("os.name", "Linux");
java.lang.System.setProperty("os.version", "4.4.0-31-generic");
java.lang.System.setProperty("path.separator", ":");
java.lang.System.setProperty("user.country", "NZ");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "li");
java.lang.System.setProperty("user.timezone", "Pacific/Auckland");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(CreateTableRoundRobin_ESTest_scaffolding.class.getClassLoader() ,
"org.objectweb.cjdbc.common.xml.XmlComponent",
"org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableException",
"org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule",
"org.objectweb.cjdbc.common.exceptions.CJDBCException",
"org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTablePolicy",
"org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRoundRobin"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(CreateTableRoundRobin_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.objectweb.cjdbc.common.exceptions.CJDBCException",
"org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableException",
"org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTablePolicy"
);
}
}
|
[
"hussainbzu344@gmail.com"
] |
hussainbzu344@gmail.com
|
b8b77b008d7e83a3fd4bf5675f641213551e1ef0
|
48138594f8aeb67ac85f01ccf7d66b7a6f3ccee6
|
/wit-common/src/main/java/com/cj/witcommon/entity/SynBasicInformation.java
|
858f2f6a9aac11d548dc66cdf583d0b3fa671b7f
|
[] |
no_license
|
XDFHTY/wit
|
fd5c448155338a4a9f6bde0c91d004e4d6e34ecb
|
082f0b47fb96df1c140d0a55659c614d6bce1dd1
|
refs/heads/master
| 2020-03-25T17:44:21.917055
| 2018-08-08T09:49:45
| 2018-08-08T09:49:56
| 143,993,010
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package com.cj.witcommon.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SynBasicInformation {
private String name; //用户名
private String nickName; //昵称
private String englishName; //英文名
private Date birthday; //yyyy-MM-dd
private String sex; //1.男,2,女
private String avatar; //头像
}
|
[
"a1668281642@gmail.com"
] |
a1668281642@gmail.com
|
087181b0bb0966d796ae31f4726fccc4a3d17edd
|
d94d83a1f2decdaba1eaa69fb9e9259c811e966d
|
/src/MyLinkedList.java
|
4fa5aa923e2d182376c274f6bc7741b71ba683f2
|
[] |
no_license
|
Zshuangshuang/08-18
|
fa2dd9f4660c0e280a916ce598beed46ab6fe7ec
|
f3e2b065d14cf38ab388abe322dd40744d58b659
|
refs/heads/master
| 2022-12-03T15:39:10.534332
| 2020-08-18T12:53:08
| 2020-08-18T12:53:08
| 288,455,276
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,185
|
java
|
/**
* Created With IntelliJ IDEA.
* Description:
* User:ZouSS
* Date:2020-08-18
* Time:20:14
**/
class Node{
private Node next;
private int data;
public Node getNext() {
return next;
}
public void setNext(Node next) {
this.next = next;
}
public int getData() {
return data;
}
public void setData(int data) {
this.data = data;
}
public Node( int data) {
this.next = null;
this.data = data;
}
}
public class MyLinkedList {
public Node head;
public MyLinkedList() {
this.head = head;
}
public void addFirst(int data){
Node node = new Node(data);
if (this.head == null){
this.head = node;
return;
}
node.setNext(this.head);
this.head = node;
}
public void display(){
Node cur = this.head;
while(cur != null){
System.out.print(cur.getData()+" ");
cur = cur.getNext();
}
System.out.println();
}
public void addLast(int data){
Node node = new Node(data);
if (this.head == null){
this.head = node;
return;
}
Node cur = this.head;
while(cur.getNext() != null){
cur = cur.getNext();
}
cur.setNext(node);
}
public boolean isContains( int toFind){
Node cur = this.head;
while(cur != null){
if (cur.getData() == toFind){
return true;
}
cur = cur.getNext();
}
return false;
}
public int size(){
Node cur = this.head;
int count = 0;
while (cur != null){
count++;
cur = cur.getNext();
}
return count;
}
public Node findPrev(int index){
Node prev = this.head;
while (index-1 >0 ){
prev = prev.getNext();
index--;
}
return prev;
}
public void addIndex(int pos, int data){
if (pos < 0 || pos >size()){
return;
}
if (pos == 0){
addFirst(data);
return;
}
if (pos == size()){
addLast(data);
return;
}
Node prev = findPrev(pos);
Node node = new Node(data);
node.setNext(prev.getNext());
prev.setNext(node);
}
public Node findToRemove(int toRemove){
Node prev = this.head;
while(prev != null){
if (prev.getNext().getData() == toRemove && prev.getNext() != null){
return prev;
}
prev = prev.getNext();
}
return null;
}
public void remove(int toRemove){
if (this.head == null){
return;
}
if (this.head.getData() == toRemove){
this.head = this.head.getNext();
return;
}
Node prev = findToRemove(toRemove);
if (prev == null){
return;
}
Node del = prev.getNext();
prev.setNext(del.getNext());
}
public void removeAllKey(int toRemove){
Node cur= this.head;
Node curNext = this.head.getNext();
while (curNext != null){
if (curNext.getData() == toRemove){
cur.setNext(curNext.getNext());
curNext = cur.getNext();
}else {
cur = curNext;
curNext = curNext.getNext();
}
}
if (this.head.getData() == toRemove){
this.head = this.head.getNext();
}
}
public static void main(String[] args) {
MyLinkedList myLinkedList = new MyLinkedList();
myLinkedList.addFirst(10);
myLinkedList.addLast(10);
myLinkedList.addLast(50);
myLinkedList.addLast(10);
myLinkedList.display();
/* System.out.println(myLinkedList.isContains(10));
myLinkedList.addIndex(1,20);
myLinkedList.display();
myLinkedList.remove(20);
myLinkedList.display();*/
myLinkedList.removeAllKey(10);
myLinkedList.display();
}
}
|
[
"1434278632@qq.com"
] |
1434278632@qq.com
|
9192e3b1ad13e73505e52a4b24706d9cc2dccf33
|
1684b4a2f729a8fd506e83ab40694d7345252418
|
/app/src/main/java/com/ashwin/viewpagersandbox/fragtab2/FragTab2Activity.java
|
92d6937e40c173dd576b321d0870b89d608c3ef8
|
[] |
no_license
|
ashwindmk/android_viewpager_sandbox
|
311ca29df8794e9f64e9dc3291743d9c32200f53
|
f15b2b1ac476a17e53cb65f7b244b2d063fc5fa0
|
refs/heads/main
| 2023-07-02T13:09:01.904886
| 2021-08-07T14:34:42
| 2021-08-07T14:34:42
| 391,400,488
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,090
|
java
|
package com.ashwin.viewpagersandbox.fragtab2;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import com.ashwin.viewpagersandbox.Constant;
import com.ashwin.viewpagersandbox.R;
import com.ashwin.viewpagersandbox.next.NextActivity;
import com.google.android.material.tabs.TabLayout;
import com.google.android.material.tabs.TabLayoutMediator;
public class FragTab2Activity extends AppCompatActivity {
private TabLayout mTabLayout;
private ViewPager2 mViewPager;
private FragTabAdapter2 mFragTabAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_frag_tab2);
mTabLayout = findViewById(R.id.tab_layout);
mViewPager = findViewById(R.id.view_pager);
mFragTabAdapter = new FragTabAdapter2(getSupportFragmentManager(), this.getLifecycle());
mViewPager.setAdapter(mFragTabAdapter);
setUpTabViewPager2();
Button nextButton = findViewById(R.id.next_button);
nextButton.setOnClickListener(view -> {
startActivity(new Intent(FragTab2Activity.this, NextActivity.class));
});
}
// Recommended
private void setUpTabViewPager2() {
new TabLayoutMediator(mTabLayout, mViewPager, new TabLayoutMediator.TabConfigurationStrategy() {
@Override
public void onConfigureTab(@NonNull TabLayout.Tab tab, int position) {
switch (position) {
case 1:
tab.setText("TWO");
break;
case 2:
tab.setText("THREE");
break;
default:
tab.setText("ONE");
break;
}
}
}).attach();
}
// Not recommended
private void setUpTabViewPager1() {
mTabLayout.addTab(mTabLayout.newTab().setText("ONE"));
mTabLayout.addTab(mTabLayout.newTab().setText("TWO"));
mTabLayout.addTab(mTabLayout.newTab().setText("THREE"));
mTabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(TabLayout.Tab tab) {
// Current tab
Log.d(Constant.TAG, "FragTabActivity: onTabSelected: " + tab.getPosition());
mViewPager.setCurrentItem(tab.getPosition());
}
@Override
public void onTabUnselected(TabLayout.Tab tab) {
// Previous tab
Log.d(Constant.TAG, "FragTabActivity: onTabUnselected: " + tab.getPosition());
}
@Override
public void onTabReselected(TabLayout.Tab tab) {
Log.d(Constant.TAG, "FragTabActivity: onTabReselected: " + tab.getPosition());
}
});
mViewPager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
super.onPageScrolled(position, positionOffset, positionOffsetPixels);
Log.d(Constant.TAG, "FragTabActivity: onPageScrolled: " + position);
}
@Override
public void onPageSelected(int position) {
super.onPageSelected(position);
// Current page
Log.d(Constant.TAG, "FragTabActivity: onPageSelected: " + position);
mTabLayout.selectTab(mTabLayout.getTabAt(position));
}
@Override
public void onPageScrollStateChanged(int state) {
super.onPageScrollStateChanged(state);
Log.d(Constant.TAG, "FragTabActivity: onPageScrollStateChanged: " + state);
}
});
}
}
|
[
"ashwin.dinesh01@gmail.com"
] |
ashwin.dinesh01@gmail.com
|
0e257ed0739f6bc2de02647d7787dd9bd029127d
|
69005ab4c8cc5d88d7996d47ac8def0b28730b95
|
/android-medium/app/src/main/java/test/perf/MyPerfClass_1028.java
|
9c5a2e7515b4ecb45d0e899f083efd6294a0e6fc
|
[] |
no_license
|
sakerbuild/performance-comparisons
|
ed603c9ffa0d34983a7da74f7b2b731dc3350d7e
|
78cd8d7896c4b0255ec77304762471e6cab95411
|
refs/heads/master
| 2020-12-02T19:14:57.865537
| 2020-05-11T14:09:40
| 2020-05-11T14:09:40
| 231,092,201
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 803
|
java
|
package test.perf;
public class MyPerfClass_1028{
private final String property;
public MyPerfClass_1028(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((property == null) ? 0 : property.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
MyPerfClass_1028 other = (MyPerfClass_1028) obj;
if (property == null) {
if (other.property != null)
return false;
} else if (!property.equals(other.property))
return false;
return true;
}
}
|
[
"10866741+Sipkab@users.noreply.github.com"
] |
10866741+Sipkab@users.noreply.github.com
|
eea4f7fca65b909d871e109edca9ea95be9f508a
|
8487a8ea928d4e2f933ef2ae158fd7c20f38df2a
|
/modules/citrus-core/src/main/java/com/consol/citrus/validation/callback/ValidationCallback.java
|
c1e1b92f460edcd1ddd534bb31cddeaa2f74f4e2
|
[
"Apache-2.0"
] |
permissive
|
wanghy6503/citrus
|
97a1ff49cafa56a84bad68096d77536ee948c04e
|
1637c186e5c3ba44eb35bec896f78bac3c7ad52c
|
refs/heads/master
| 2022-12-06T18:38:27.441133
| 2014-08-01T11:51:58
| 2014-08-01T11:51:58
| 22,563,504
| 0
| 0
|
Apache-2.0
| 2022-11-25T16:23:48
| 2014-08-03T01:23:23
| null |
UTF-8
|
Java
| false
| false
| 1,295
|
java
|
/*
* Copyright 2006-2012 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 com.consol.citrus.validation.callback;
import org.springframework.context.ApplicationContext;
import org.springframework.integration.Message;
/**
* Callback called by receive message action for validation purpose. Implementations
* to validate the received message with Java code.
*
* @author Christoph Deppisch
*/
public interface ValidationCallback {
/**
* Validate callback method with received message.
*
* @param message
*/
void validate(Message<?> message);
/**
* Set optional application context instance on this callback.
* @param ctx
*/
void setApplicationContext(ApplicationContext ctx);
}
|
[
"deppisch@consol.de"
] |
deppisch@consol.de
|
20e1604b3e22cd282f90f1f096392c05b0983873
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project461/src/test/java/org/gradle/test/performance/largejavamultiproject/project461/p2305/Test46112.java
|
28a252ec9c7875ce0ecedd705e3a64d42e346fbc
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,182
|
java
|
package org.gradle.test.performance.largejavamultiproject.project461.p2305;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test46112 {
Production46112 objectUnderTest = new Production46112();
@Test
public void testProperty0() {
Production46103 value = new Production46103();
objectUnderTest.setProperty0(value);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() {
Production46107 value = new Production46107();
objectUnderTest.setProperty1(value);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() {
Production46111 value = new Production46111();
objectUnderTest.setProperty2(value);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() {
String value = "value";
objectUnderTest.setProperty3(value);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() {
String value = "value";
objectUnderTest.setProperty4(value);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() {
String value = "value";
objectUnderTest.setProperty5(value);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() {
String value = "value";
objectUnderTest.setProperty6(value);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() {
String value = "value";
objectUnderTest.setProperty7(value);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() {
String value = "value";
objectUnderTest.setProperty8(value);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() {
String value = "value";
objectUnderTest.setProperty9(value);
assertEquals(value, objectUnderTest.getProperty9());
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
3995bc5e30cf54eab880638cc2002166e8f88d9f
|
664051e1225a165f4189499c9f955fc47c3baada
|
/bindings/bungeecord/src/main/java/me/piggypiglet/chatgifs/ChatGifsPlugin.java
|
956faaedc81806f0aa73c6e787645ccc95c69ad6
|
[
"MIT"
] |
permissive
|
PiggyPiglet/ChatGifs
|
e5f2613e705139b2e438057eee9f6e573a0ee76b
|
684ed3a08bc8839c23bb225884090d03f01c53a3
|
refs/heads/master
| 2020-11-30T19:23:55.038788
| 2019-12-27T17:46:53
| 2019-12-27T17:46:53
| 230,462,767
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 471
|
java
|
package me.piggypiglet.chatgifs;
import net.md_5.bungee.api.plugin.Plugin;
// ------------------------------
// Copyright (c) PiggyPiglet 2019
// https://www.piggypiglet.me
// ------------------------------
public final class ChatGifsPlugin extends Plugin {
@Override
public void onEnable() {
ChatGifs.builder()
.main(this)
.dataFolder(getDataFolder().getPath())
.build()
.init();
}
}
|
[
"noreply@piggypiglet.me"
] |
noreply@piggypiglet.me
|
c5bdc54d950f159042de2e6cbb5890cd894b255e
|
9fb7ff7582e57134d5b6f26beced30ef31006b9a
|
/src/main/java/uk/joshiejack/penguinlib/scripting/wrappers/BiomeJS.java
|
d429d435ccca2e45abd7029717817f9e6d8d3fea
|
[] |
no_license
|
joshiejack/Harvest-Festival
|
4febd8c74ef5554c950f877b8d6becc7a8009266
|
a1772ac9a3f58de40c3de8fe111b30d0752d2e7b
|
refs/heads/1.12.2
| 2023-05-03T13:35:54.039007
| 2021-05-13T05:11:26
| 2021-05-13T05:11:26
| 29,319,358
| 12
| 6
| null | 2022-10-19T05:15:23
| 2015-01-15T21:35:26
|
Java
|
UTF-8
|
Java
| false
| false
| 640
|
java
|
package uk.joshiejack.penguinlib.scripting.wrappers;
import net.minecraft.world.biome.Biome;
import net.minecraftforge.common.BiomeDictionary;
public class BiomeJS extends AbstractJS<Biome> {
public BiomeJS(Biome biome) {
super(biome);
}
public boolean snows() {
return penguinScriptingObject.getDefaultTemperature() < 0.15F;
}
public boolean is (String name) {
return penguinScriptingObject.getRegistryName().toString().equals(name);
}
public boolean isType (String type) {
return BiomeDictionary.hasType(penguinScriptingObject, BiomeDictionary.Type.getType(type));
}
}
|
[
"joshjackwildman@gmail.com"
] |
joshjackwildman@gmail.com
|
cf9caadc08d690a821df0542cdbae800436b8b95
|
7c5a8ff6d560ba01aa97984f91e0b9ad82e02a41
|
/src/main/java/com/voximplant/apiexamples/GetPhoneNumberCountryStatesExample.java
|
a37d71d2d74e1f8845736601042c5c638a249104
|
[
"MIT"
] |
permissive
|
NikolasMelui/apiclient-java
|
7a8e60a69851a912208b277037f3df3ccfe922ea
|
5e5987b911b15292e48844a429d72a608097f9fa
|
refs/heads/master
| 2022-12-31T01:46:16.761919
| 2020-10-08T13:34:50
| 2020-10-08T13:34:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,168
|
java
|
package com.voximplant.apiexamples;
import com.voximplant.apiclient.ClientException;
import com.voximplant.apiclient.request.GetPhoneNumberCountryStatesRequest;
import com.voximplant.apiclient.response.GetPhoneNumberCountryStatesResponse;
import com.voximplant.apiclient.VoximplantAPIClient;
import com.voximplant.apiclient.util.MultiArgument;
import java.util.Date;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Calendar;
import java.util.TimeZone;
import java.io.IOException;
/**
* Get the AL (Alabama) state info.
*/
public class GetPhoneNumberCountryStatesExample {
public static void main(String [] args) {
try {
VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json");
GetPhoneNumberCountryStatesResponse res = client.getPhoneNumberCountryStates(new GetPhoneNumberCountryStatesRequest()
.setCountryCode("US")
.setPhoneCategoryName("GEOGRAPHIC")
.setCountryState("AL")
);
System.out.println("OK");
} catch (IOException | ClientException e) {
e.printStackTrace();
}
}
}
|
[
"mnosov@voximplant.com"
] |
mnosov@voximplant.com
|
2e2807effe1a9b331ef32e6599419421ade22612
|
c80f25f9c8faa1ea9db5bb1b8e36c3903a80a58b
|
/laosiji-sources/feng/android/sources/com/tencent/bugly/proguard/ao.java
|
408165b95ef5ef9d627c23690943cdef2edda6c4
|
[] |
no_license
|
wenzhaot/luobo_tool
|
05c2e009039178c50fd878af91f0347632b0c26d
|
e9798e5251d3d6ba859bb15a00d13f085bc690a8
|
refs/heads/master
| 2020-03-25T23:23:48.171352
| 2019-09-21T07:09:48
| 2019-09-21T07:09:48
| 144,272,972
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 447
|
java
|
package com.tencent.bugly.proguard;
/* compiled from: BUGLY */
public final class ao extends k implements Cloneable {
public String a = "";
private String b = "";
public final void a(j jVar) {
jVar.a(this.a, 0);
jVar.a(this.b, 1);
}
public final void a(i iVar) {
this.a = iVar.b(0, true);
this.b = iVar.b(1, true);
}
public final void a(StringBuilder stringBuilder, int i) {
}
}
|
[
"tanwenzhao@vipkid.com.cn"
] |
tanwenzhao@vipkid.com.cn
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.