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
ede9b5952ad531332b34fb064de722e96a492f58
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Spring/Spring3918.java
3dde9855844cca2b9bd9ac65843ae45830e215c1
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
663
java
@Test public void testSpecificHourSecond() throws Exception { CronTrigger trigger = new CronTrigger("55 * 10 * * *", timeZone); calendar.set(Calendar.HOUR_OF_DAY, 9); calendar.set(Calendar.SECOND, 54); Date date = calendar.getTime(); TriggerContext context1 = getTriggerContext(date); calendar.add(Calendar.HOUR_OF_DAY, 1); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 55); assertEquals(calendar.getTime(), date = trigger.nextExecutionTime(context1)); calendar.add(Calendar.MINUTE, 1); TriggerContext context2 = getTriggerContext(date); assertEquals(calendar.getTime(), date = trigger.nextExecutionTime(context2)); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
f3ef017128dfea9c0cfd0a64300103b2de94e9a9
fc2cfa41616a61ec18ab5797ea6d8109a21b581d
/core/src/test/java/juzu/impl/template/spi/juzu/ast/TemplateBuilderTestCase.java
7ae38124ff05b6fb7eb3b42d1870b7a1132042bb
[]
no_license
digideskio/juzu
3594c8e8bfe3eea873ef830c8a33284958abb535
1f0c1c2ca002b92401e1d8491587bec8c2bb1d73
refs/heads/master
2021-01-11T02:57:55.332824
2013-05-23T14:17:05
2013-05-23T14:17:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,789
java
/* * Copyright 2013 eXo Platform SAS * * 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 juzu.impl.template.spi.juzu.ast; import juzu.impl.common.Tools; import juzu.impl.template.spi.juzu.dialect.gtmpl.GroovyTemplateStub; import juzu.io.Streams; import juzu.template.TemplateRenderContext; import org.junit.Test; import java.io.StringWriter; import java.util.Collections; /** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */ public class TemplateBuilderTestCase extends AbstractTemplateTestCase { @Test public void testFoo() throws Exception { GroovyTemplateStub s = template("a<%=foo%>c"); s.init(Thread.currentThread().getContextClassLoader()); StringWriter out = new StringWriter(); new TemplateRenderContext(s, Collections.singletonMap("foo", "b")).render(Streams.closeable(Tools.UTF_8, out)); assertEquals("abc", out.toString()); } @Test public void testCarriageReturn() throws Exception { GroovyTemplateStub s = template("a\r\nb"); s.init(Thread.currentThread().getContextClassLoader()); StringWriter out = new StringWriter(); new TemplateRenderContext(s, Collections.<String, Object>emptyMap()).render(Streams.closeable(Tools.UTF_8, out)); assertEquals("a\nb", out.toString()); } }
[ "julien@julienviet.com" ]
julien@julienviet.com
dc97fca167bc790ceeef0d33f71c5d0719bc338b
ac1768b715e9fe56be8b340bc1e4bc7f917c094a
/ant_tasks/tags/release/11.02.x/11.02.0/common/source/java/ch/systemsx/cisd/common/utilities/AnnotationUtils.java
e503b8b3ddea9c5cc78293bd8402d8a6998244dd
[ "Apache-2.0" ]
permissive
kykrueger/openbis
2c4d72cb4b150a2854df4edfef325f79ca429c94
1b589a9656d95e343a3747c86014fa6c9d299b8d
refs/heads/master
2023-05-11T23:03:57.567608
2021-05-21T11:54:58
2021-05-21T11:54:58
364,558,858
0
0
Apache-2.0
2021-06-04T10:08:32
2021-05-05T11:48:20
Java
UTF-8
Java
false
false
6,474
java
/* * Copyright 2008 ETH Zuerich, CISD * * 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 ch.systemsx.cisd.common.utilities; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; /** * General utility methods for working with annotations. * * @author Christian Ribeaud */ public final class AnnotationUtils { private AnnotationUtils() { // Can not be instantiated. } /** * For given <code>Class</code> returns a list of methods that are annotated with given * <var>annotationClass</var>. */ public final static List<Method> getAnnotatedMethodList(final Class<?> clazz, final Class<? extends Annotation> annotationClass) { return AnnotationUtils.getAnnotatedMethodList(clazz, annotationClass, null); } /** * For given <code>Class</code> returns a list of methods that are annotated with given * <var>annotationClass</var>. * * @param methods if <code>null</code>, then a new <code>List</code> is created. */ private final static List<Method> getAnnotatedMethodList(final Class<?> clazz, final Class<? extends Annotation> annotationClass, final List<Method> methods) { assert clazz != null : "Unspecified class."; assert annotationClass != null : "Unspecified annotation class."; List<Method> list = methods; if (list == null) { list = new ArrayList<Method>(); } for (final Method method : clazz.getDeclaredMethods()) { if (method.getAnnotation(annotationClass) != null) { list.add(method); } } final Class<?> superclass = clazz.getSuperclass(); if (superclass != null) { return getAnnotatedMethodList(superclass, annotationClass, list); } return list; } /** * For given <code>Class</code> returns a list of fields that are annotated with given * <var>annotationClass</var>. */ public final static List<Field> getAnnotatedFieldList(final Class<?> clazz, final Class<? extends Annotation> annotationClass) { return AnnotationUtils.getAnnotatedFieldList(clazz, annotationClass, null); } /** * For given <code>Class</code> returns a list of fields that are annotated with given * <var>annotationClass</var>. * * @param fields if <code>null</code>, then a new <code>List</code> is created. */ private final static List<Field> getAnnotatedFieldList(final Class<?> clazz, final Class<? extends Annotation> annotationClass, final List<Field> fields) { assert clazz != null : "Unspecified class."; assert annotationClass != null : "Unspecified annotation class."; List<Field> list = fields; if (list == null) { list = new ArrayList<Field>(); } for (final Field field : clazz.getDeclaredFields()) { if (field.getAnnotation(annotationClass) != null) { list.add(field); } } final Class<?> superclass = clazz.getSuperclass(); if (superclass != null) { return getAnnotatedFieldList(superclass, annotationClass, list); } return list; } /** * From the list of given annotations tries to return the one of given type. * * @return <code>null</code> if not found. */ public final static <A extends Annotation> A tryGetAnnotation(final Annotation[] annotations, final Class<A> annotationType) { assert annotations != null : "Unspecified annotations"; assert annotationType != null : "Unspecified annotation type"; for (final Annotation annotation : annotations) { if (annotation.annotationType().equals(annotationType)) { return annotationType.cast(annotation); } } return null; } /** * Returns a list of method parameters where given <var>annotation</var> could be found. * * @return never <code>null</code> but could return an empty list. */ public final static <A extends Annotation> List<Parameter<A>> getAnnotatedParameters( final Method method, final Class<A> annotationType) { assert method != null : "Unspecified method"; assert annotationType != null : "Unspecified annotation type"; final Annotation[][] annotations = method.getParameterAnnotations(); final Class<?>[] types = method.getParameterTypes(); final List<Parameter<A>> list = new ArrayList<Parameter<A>>(); for (int i = 0; i < types.length; i++) { final Class<?> type = types[i]; final A annotationOrNull = tryGetAnnotation(annotations[i], annotationType); if (annotationOrNull != null) { list.add(new Parameter<A>(i, type, annotationOrNull)); } } return list; } // // Helper classes // public final static class Parameter<A extends Annotation> { /** * This parameter index in the list of method arguments. */ private final int index; private final Class<?> type; private final A annotation; Parameter(final int index, final Class<?> type, final A annotation) { this.index = index; this.type = type; this.annotation = annotation; } public final int getIndex() { return index; } public final Class<?> getType() { return type; } public final A getAnnotation() { return annotation; } } }
[ "fedoreno" ]
fedoreno
49cf455e725808e30640a6aae8d96baf7a2eeea0
8de7891a3ab36567957aa537795b5c1fc40c69c6
/concrete-pom/concrete-test/src/main/java/org/coodex/concrete/test/ConcreteTokenProvider.java
4547422618c90a254464bddc882d3cc64a8fd4e9
[ "Apache-2.0" ]
permissive
coodex2016/concrete.coodex.org
a09ae70f5fee21c045d83c1495915c0aba22f8ce
d4ff2fdcafba4a8a426b6ceb79b086c931147525
refs/heads/0.5.x
2023-08-04T04:37:51.116386
2023-07-13T05:48:51
2023-07-13T05:48:51
85,026,857
23
10
NOASSERTION
2023-02-22T00:09:24
2017-03-15T03:52:33
Java
UTF-8
Java
false
false
1,851
java
/* * Copyright (c) 2018 coodex.org (jujus.shen@126.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.coodex.concrete.test; import org.coodex.concrete.common.Token; import org.coodex.concrete.core.token.TokenWrapper; import org.junit.runner.Description; //import java.util.HashMap; //import java.util.Map; /** * Created by davidoff shen on 2016-09-06. */ public class ConcreteTokenProvider { // private final static Logger log = LoggerFactory.getLogger(ConcreteTokenProvider.class); // private final static TokenManager TOKEN_MANAGER_INSTANCE = getInstance(); // private static TokenManager getInstance() { // try { // return BeanServiceLoaderProvider.getBeanProvider().getBean(TokenManager.class); // } catch (ConcreteException ex) { // log.warn("error occurred: {}. Using LocalTokenManager", ex.getLocalizedMessage()); // return new LocalTokenManager(); // } // } // public static Token getToken(String id) { // return TOKEN_MANAGER_INSTANCE.getToken(Common.isBlank(id) ? Common.getUUIDStr() : id, true); // } public static Token getToken(Description description) { TokenID testToken = description.getAnnotation(TokenID.class); return TokenWrapper.getToken(testToken == null ? null : testToken.value()); } }
[ "jujus.shen@126.com" ]
jujus.shen@126.com
ad06f6ec7a3da062e7d05114951f6661a9696b1e
41589b12242fd642cb7bde960a8a4ca7a61dad66
/teams/fibbyBot7/Messenger.java
e40ac3adb693491ec2d0e1becbaab657d8ed533d
[]
no_license
Cixelyn/bcode2011
8e51e467b67b9ce3d9cf1160d9bd0e9f20114f96
eccb2c011565c46db942b3f38eb3098b414c154c
refs/heads/master
2022-11-05T12:52:17.671674
2011-01-27T04:49:12
2011-01-27T04:49:12
275,731,519
0
0
null
null
null
null
UTF-8
Java
false
false
5,764
java
package fibbyBot7; import java.util.LinkedList; import battlecode.common.*; /** * Messenger Class. Loosely based on the old Lazer6 messaging code * * * <pre> * MESSAGE BLOCK FORMAT------------------------------------------| * idx 0 1 2 3 | * ints [ hash , header , data , data..........| * locs [ source , origin , data , data..........| * strs [-----------------------------------------------------| * </pre> * @author Cory * */ public class Messenger { //public variable final RobotPlayer myPlayer; //send component needs to be enabled private boolean canSend; public boolean shouldReceive = false; //static limits private static final int ROUND_MOD = 4; private static final int ID_MOD = 1024; private final int teamKey; private final int myID; //Defined indexes for readability public static final int idxHash = 0; public static final int idxHeader = 1; public static final int idxSender = 0; public static final int idxOrigin = 1; public static final int firstData = 2; public static final int minSize = firstData; final LinkedList<Message> messageQueue; private boolean[][] hasHeard = new boolean[ROUND_MOD][]; public Messenger(RobotPlayer player) { myPlayer = player; //Assign the player canSend = false; //Default robot doesn't have antennae messageQueue = new LinkedList<Message>(); //Build Queue shouldReceive = true; //Initialize our entire 'has heard' table for(int i=0; i<ROUND_MOD; i++) { hasHeard[i] = new boolean[ID_MOD]; } //set ID and key myID = myPlayer.myRC.getRobot().getID(); if(myPlayer.myRC.getTeam()==Team.A) { teamKey = 131071; //first 6 digit mersenne prime } else { teamKey = 174763; //first 6 digit wagstaff prime } } /** * This call is run whenever the robot gains an antennae * Note that components can never be removed, so a robot cannot lose it's sending ability. */ public void enableSender() { canSend = true; } /** * Should the robot receive messages? * Useful holding messages until robots are active. * @param state whether you should */ public void toggleReceive(boolean state) { shouldReceive = state; } /** * Internal sending function * @param m message to send where the relevant location blocks and int blocks reserved for headers * and such are left blank. sendMsg computs the hashes and inserts them in. */ private void sendMsg(MsgType type, Message m) { //debug code to make sure we're not calling something that can't be done. assert canSend; //fill in message int currTime = Clock.getRoundNum(); m.ints[idxHeader] = Encoder.encodeMsgHeader(type, currTime, myID); MapLocation myLoc = myPlayer.myRC.getLocation(); m.locations[idxSender] = myLoc; //sender location m.locations[idxOrigin] = myLoc; //origin location m.ints[idxHash] = teamKey; //super simple hash messageQueue.add(m); //I've heard my own message hasHeard[currTime%ROUND_MOD][myID%ID_MOD] = true; } /** * This internal function builds a <code>battlecode.common.Message</code> with * <code>iSize</code> ints and <code>lSize</code> locations * @param iSize number of ints * @param lSize number of locations * @return */ private Message buildNewMessage(int iSize, int lSize) { Message m = new Message(); m.ints = new int[minSize+iSize]; m.locations = new MapLocation[minSize+lSize]; return m; } public void sendNotice(MsgType t) { sendMsg(t,buildNewMessage(0,0)); } public void sendLoc(MsgType t, MapLocation loc) { Message m = buildNewMessage(0,1); m.locations[firstData ] = loc; sendMsg(t,m); } public void sendIntDoubleLoc(MsgType t, int int1, MapLocation loc1, MapLocation loc2) { Message m = buildNewMessage(1,2); m.ints[firstData] = int1; m.locations[firstData ] = loc1; m.locations[firstData+1] = loc2; sendMsg(t,m); } public void sendDoubleLoc(MsgType t, MapLocation loc1, MapLocation loc2) { Message m = buildNewMessage(0,2); m.locations[firstData ] = loc1; m.locations[firstData+1] = loc2; sendMsg(t,m); } /** * Very primitive receive function */ public void receiveAll() { Message[] rcv = myPlayer.myRC.getAllMessages(); boolean isValid = true; for(Message m: rcv) { if (!isValid) System.out.println("Message dropped!"); isValid = false; ////////BEGIN MESSAGE VALIDATION SYSTEM ///////Begin inlined message validation checker if(m.ints==null) break; if(m.ints.length<minSize) break; //////We should have a checksum -- make sure the checksum is right. if(m.ints[idxHash]!=teamKey) break; //////We at least have a valid int header MsgType t = Encoder.decodeMsgType(m.ints[idxHeader]); //pull out the header //////Now make sure we have enough ints & enough maplocations if(m.ints.length!=t.numInts) break; if(m.locations==null) break; if(m.locations.length!=t.numLocs) break; ////////MESSAGE HAS BEEN VALIDATED isValid = true; if(t.shouldCallback) { myPlayer.myBehavior.newMessageCallback(t,m); } } } public void sendAll() throws Exception{ while(!messageQueue.isEmpty()) { while(myPlayer.myBroadcaster.isActive()) myPlayer.myRC.yield(); myPlayer.myBroadcaster.broadcast(messageQueue.pop()); } } }
[ "51144+Cixelyn@users.noreply.github.com" ]
51144+Cixelyn@users.noreply.github.com
b0329c42e6ac9318d68e34f5b846242fa0ac7cb8
08846c62361284a6771e89ec93453d3109b571b9
/src/main/java/com/jtzh/vo/ss/FileUpdateVO.java
dfe50f93accf92a7835cf717ff458caef7dfb6ab
[]
no_license
lzj1995822/zhbh-api
a497b176a1ec1302143684652d18113be752e383
5c8a02d2f55e8733f91fe68ae9e0d09934fa3de3
refs/heads/master
2023-08-04T14:33:05.831163
2020-01-19T02:19:13
2020-01-19T02:19:13
206,700,789
0
1
null
2023-07-22T15:28:54
2019-09-06T02:57:22
TSQL
UTF-8
Java
false
false
708
java
/* */ package com.jtzh.vo.ss; /* */ /* */ public class FileUpdateVO /* */ { /* */ private Long id; /* */ private String url; /* */ /* */ public Long getId() { /* 9 */ return this.id; /* */ } /* */ /* */ public void setId(Long id) { /* 13 */ this.id = id; /* */ } /* */ /* */ public String getUrl() { /* 17 */ return this.url; /* */ } /* */ /* */ public void setUrl(String url) { /* 21 */ this.url = url; /* */ } /* */ } /* Location: C:\Users\rainb\Desktop\msmis.war!\WEB-INF\classes\com\gbt\vo\ss\FileUpdateVO.class * Java compiler version: 8 (52.0) * JD-Core Version: 0.7.1 */
[ "243485908@qq.com" ]
243485908@qq.com
a5f8a29855e2a2fcdfced2a87d694357830c27b2
34221f3f7738d7a33c693e580dc6a99789349cf3
/app/src/main/java/defpackage/bgi.java
965e821caff6413a9669875c58970873660943f5
[]
no_license
KobeGong/TasksApp
0c7b9f3f54bc4be755b1f605b41230822d6f9850
aacdd5cbf0ba073460797fa76f1aaf2eaf70f08e
refs/heads/master
2023-08-16T07:11:13.379876
2021-09-25T17:38:57
2021-09-25T17:38:57
374,659,931
0
0
null
null
null
null
UTF-8
Java
false
false
620
java
package defpackage; /* renamed from: bgi reason: default package */ /* compiled from: PG */ abstract class bgi extends defpackage.bca { public bgi(defpackage.ayp ayp) { super(defpackage.bgh.b, ayp); } public final /* bridge */ /* synthetic */ void a(java.lang.Object obj) { super.a((defpackage.ayw) (com.google.android.gms.common.api.Status) obj); } public final /* synthetic */ defpackage.ayw a(com.google.android.gms.common.api.Status status) { if (status == null) { return com.google.android.gms.common.api.Status.c; } return status; } }
[ "droidevapp1023@gmail.com" ]
droidevapp1023@gmail.com
5622fae603b2f278be173ac303f50e4777ff4552
40df4983d86a3f691fc3f5ec6a8a54e813f7fe72
/app/src/main/java/com/tencent/stat/C1752k.java
d411e3663a58fe680c295b0407a0af6384edbf5f
[]
no_license
hlwhsunshine/RootGeniusTrunAK
5c63599a939b24a94c6f083a0ee69694fac5a0da
1f94603a9165e8b02e4bc9651c3528b66c19be68
refs/heads/master
2020-04-11T12:25:21.389753
2018-12-24T10:09:15
2018-12-24T10:09:15
161,779,612
0
0
null
null
null
null
UTF-8
Java
false
false
704
java
package com.tencent.stat; /* renamed from: com.tencent.stat.k */ class C1752k implements Runnable { /* renamed from: a */ final /* synthetic */ int f5149a; /* renamed from: b */ final /* synthetic */ int f5150b; /* renamed from: c */ final /* synthetic */ StatFBDispatchCallback f5151c; /* renamed from: d */ final /* synthetic */ C1748g f5152d; C1752k(C1748g c1748g, int i, int i2, StatFBDispatchCallback statFBDispatchCallback) { this.f5152d = c1748g; this.f5149a = i; this.f5150b = i2; this.f5151c = statFBDispatchCallback; } public void run() { this.f5152d.mo7947a(this.f5149a, this.f5150b, this.f5151c); } }
[ "603820467@qq.com" ]
603820467@qq.com
f3ed71d2378908107f960a1b9274cda85d9a5fc6
74d6190633fbbc11805d6f665bacc692a30f1de0
/src/com/emitrom/ti4j/mobile/client/core/handlers/ui/ScrollViewDragStartHandler.java
f089b5ca6f8673a4020a2339b3f26c512851a0cd
[ "Apache-2.0" ]
permissive
sksastry/titanium4j
82c9d34fecb8555dda22f11abaf5453855c64f8a
0147de71a8746be60b3170f1258da62014281664
refs/heads/master
2021-01-18T04:34:01.384587
2014-02-02T21:31:40
2014-02-02T21:31:40
13,526,003
1
0
null
null
null
null
UTF-8
Java
false
false
1,102
java
/************************************************************************ ScrollViewDragStartHandler.java is part of Ti4j 3.1.0 Copyright 2013 Emitrom LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. **************************************************************************/ package com.emitrom.ti4j.mobile.client.core.handlers.ui; import com.emitrom.ti4j.mobile.client.core.events.ui.scrollview.ScrollViewDragStartEvent; import com.google.gwt.event.shared.EventHandler; public interface ScrollViewDragStartHandler extends EventHandler { public void onDragStart(ScrollViewDragStartEvent event); }
[ "jazzmatadazz@gmail.com" ]
jazzmatadazz@gmail.com
74f66dc3ad8613724749f46fdded06f4888eeae7
3c5e0a73867838bc2afbc3b431dcc53ef8ea3af0
/src/com/htsoft/oa/service/admin/InStockService.java
0ac7d223e50a7fb3f2a30c02d7a7ccdf16991686
[]
no_license
cjp472/crm
5f5d21c9b2307ab5d144ca8a762f374823a950c4
d4a7f4dbf2983f0d3abb38ba0d0a916c08cb0c86
refs/heads/master
2020-03-19T09:48:34.976163
2018-05-05T07:47:27
2018-05-05T07:47:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
397
java
package com.htsoft.oa.service.admin; /* * 北京优创融联科技有限公司 综合客服管理系统 -- http://www.ulane.cn * Copyright (C) 2008-2009 Beijing Ulane Technology Co., LTD */ import com.htsoft.core.service.BaseService; import com.htsoft.oa.model.admin.InStock; public interface InStockService extends BaseService<InStock>{ public Integer findInCountByBuyId(Long buyId); }
[ "huyang3868@163.com" ]
huyang3868@163.com
be7e8c571293ac8764680e0fafa3022891ed757c
0e02393f6d9c09f2453c3e7bc729052ff74f922f
/librarytao/src/main/java/com/yitao/dialog/UpOrDownLoadDialog.java
23b220f0fd52a6d48ea4c783b1560f5b0e3cb65c
[]
no_license
eaglelhq/HBPostal
fbcb6765d082940cb3511c2312ab9b1cbe8c3180
76df376aed3022506bbb1eacc598dbc1377242ba
refs/heads/master
2021-05-05T19:55:44.299097
2018-11-12T02:49:23
2018-11-12T02:49:23
103,887,994
0
0
null
null
null
null
UTF-8
Java
false
false
1,067
java
package com.yitao.dialog; import com.yitao.library_tao.R; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.WindowManager.LayoutParams; import android.widget.TextView; public class UpOrDownLoadDialog extends Dialog { Context mContext; private TextView loadTv; private String tishi; public UpOrDownLoadDialog(Context context, String tishi) { super(context); this.tishi = tishi; this.mContext = context; } public UpOrDownLoadDialog(Context context, int theme) { super(context, theme); this.mContext = context; } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dialog_upordown_load); // 使dialog全局 getWindow().setLayout(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); initViews(); } // 控件初始化 private void initViews() { loadTv = (TextView) findViewById(R.id.pop_fileupload_text); loadTv.setText(tishi); } public void setLoadText(String text) { loadTv.setText(text); } }
[ "lhq11031103@126.com" ]
lhq11031103@126.com
8bcfd90a52107320a46064a0f736a729153286b8
4364f8e72fe2a3e04bd7c9257234a6f55474f968
/AMS_基础信息组件/.svn/pristine/57/57f8d783f5e8937e9ec325c3c85d46871c718a69.svn-base
1044f05b741c8f918f70a1d5654647099fc409b3
[]
no_license
l871993962/liminglei
f511ac1cc0c53a8811eaee6a7038f72f6a7ee4cc
acbd64ce548e97a729b964418fb6edd0c9e78302
refs/heads/master
2023-08-03T03:39:25.813790
2021-09-27T01:44:51
2021-09-27T01:44:51
409,838,699
2
0
null
null
null
null
UTF-8
Java
false
false
2,506
/** * * @Title: BusinessTypeService.java * @Package com.yss.ams.base.information.support.sys.businesstype.service * @date 2019年5月13日 下午3:34:26 * @version V1.0 * @Stroy/Bug * @author xiadeqi */ package com.yss.ams.base.information.support.sys.portbusinessrange.service; import java.util.HashMap; import java.util.List; import com.yss.ams.base.information.support.sys.portbusinessrange.pojo.PortBusinessRangePojoVo; import com.yss.framework.api.common.co.BasePojo; import com.yss.framework.api.dataservice.IKeyConvertDataService; import com.yss.framework.api.mvc.biz.IServiceBus; import com.yss.framework.api.restful.annotations.LinkControllerMethod; import com.yss.framework.api.restful.annotations.LinkControllerMethodArgu; import com.yss.framework.api.restful.annotations.RestfulSupported; import com.yss.framework.api.service.ServiceException; import com.yss.platform.support.dataservice.pojo.dict.Vocabulary; /** * 产品业务范围接口 * @ClassName: BusinessTypeService * @date 2019年5月13日 下午3:34:26 * @Stroy72335/Bug * @author xiadeqi */ @RestfulSupported public interface IPortBusinessRangeService extends IServiceBus, IKeyConvertDataService { /** * STORY #82160 【华宝基金】产品业务范围增加维护界面 * 获取业务类型数据 * @param type * @return * @throws ServiceException */ public List<Vocabulary> getDataListByType(String type) throws ServiceException; /** * STORY #82160 【华宝基金】产品业务范围增加维护界面 * 更新业务类型数据 * @param type * @param paraMap * @return * @throws ServiceException */ @LinkControllerMethod(value="updateDataList",arguTypes = PortBusinessRangePojoVo.class) public boolean updateDataList(@LinkControllerMethodArgu("type")String type, @LinkControllerMethodArgu("paraMap")HashMap<String, String> paraMap) throws ServiceException; /** * STORY #86378 【华宝基金】二期自动化应用范围增加其他自动化组合 * 根据业务类型代码获取组合集合 * @param busiCode * @return * @throws ServiceException */ public List<String> getPortListByBusiCode(String busiCode) throws ServiceException; /** * STORY #96878 【富国基金】自动化参数复制通过产品参数复制 * @param pojoList * @throws ServiceException */ @LinkControllerMethod(value = "insertPortBusinessRange", arguTypes = List.class) public void insertPortBusinessRange(List<BasePojo> pojoList) throws ServiceException; }
[ "l871993962@gmail.com" ]
l871993962@gmail.com
7ae5269ee4662f88e0656daed85b4ef7eb24bd40
848c563ddecdefdb4e6d91dfb9651c67ddcbee78
/tangminet/service-api/merchant-service-api/src/main/java/com.topaiebiz.merchant/dto/template/FreightTemplateDetailDTO.java
391bdba5e76088e8678745a21b436641080019ef
[]
no_license
liveqmock/tangxIdea
264481ca7e087d5d8cf23854fb677b0c1376c188
7e780c538434638a79d50e33f45ab0be3ae90625
refs/heads/master
2020-04-04T14:44:18.241241
2018-06-29T14:51:49
2018-06-29T14:51:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
876
java
package com.topaiebiz.merchant.dto.template; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.util.List; /** * zxp */ @Data public class FreightTemplateDetailDTO implements Serializable { /** 全局主键id */ private Long id; /** 关联的运费模板ID */ private Long freightId; /** 配送方式 */ private Integer type; /** 配送区域集合 */ private List<Long> supportCityIds; /** 首次价格 */ private BigDecimal firstPrice; /** 首次件数 */ private BigDecimal firstNum; /** 续件价格 */ private BigDecimal addPrice; /** 续件件数 */ private BigDecimal addNum; /** 是否为默认运费 */ private Integer isDefault; private String nameListStr; public boolean isDefaultFreight(){ return 0 == isDefault; } }
[ "207542948@qq.com" ]
207542948@qq.com
4441886f8a75df1c91d0e1044dc75973ff0cef6c
9254e7279570ac8ef687c416a79bb472146e9b35
/cdn-20180510/src/main/java/com/aliyun/cdn20180510/models/UpdateFCTriggerRequest.java
206c59fd1dc5831a4ab64f01b3a89b60a2a26525
[ "Apache-2.0" ]
permissive
lquterqtd/alibabacloud-java-sdk
3eaa17276dd28004dae6f87e763e13eb90c30032
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
refs/heads/master
2023-08-12T13:56:26.379027
2021-10-19T07:22:15
2021-10-19T07:22:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,911
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.cdn20180510.models; import com.aliyun.tea.*; public class UpdateFCTriggerRequest extends TeaModel { @NameInMap("OwnerId") public Long ownerId; @NameInMap("TriggerARN") public String triggerARN; @NameInMap("SourceARN") public String sourceARN; @NameInMap("FunctionARN") public String functionARN; @NameInMap("RoleARN") public String roleARN; @NameInMap("Notes") public String notes; public static UpdateFCTriggerRequest build(java.util.Map<String, ?> map) throws Exception { UpdateFCTriggerRequest self = new UpdateFCTriggerRequest(); return TeaModel.build(map, self); } public UpdateFCTriggerRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public UpdateFCTriggerRequest setTriggerARN(String triggerARN) { this.triggerARN = triggerARN; return this; } public String getTriggerARN() { return this.triggerARN; } public UpdateFCTriggerRequest setSourceARN(String sourceARN) { this.sourceARN = sourceARN; return this; } public String getSourceARN() { return this.sourceARN; } public UpdateFCTriggerRequest setFunctionARN(String functionARN) { this.functionARN = functionARN; return this; } public String getFunctionARN() { return this.functionARN; } public UpdateFCTriggerRequest setRoleARN(String roleARN) { this.roleARN = roleARN; return this; } public String getRoleARN() { return this.roleARN; } public UpdateFCTriggerRequest setNotes(String notes) { this.notes = notes; return this; } public String getNotes() { return this.notes; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
61c4488656e8bfc4964902f9e1a1b2748f3b1dab
1a1fa9d2b103d3e8ba3d940316343ee34c2fe5b6
/ddal-sqlparser/src/main/java/studio/raptor/sqlparser/ast/statement/SQLAlterTableCoalescePartition.java
3a1db1f1b5b85fd3fb3f83487964e3a9744f4cfa
[ "Apache-2.0" ]
permissive
mf1389004071/incubator-ddal
70ab4f8c6bd0a8ca394f5f20253702777a168e39
b5a827dfcfbf07c380dc5ea3ecb4c61749426a81
refs/heads/master
2022-01-30T12:38:38.491395
2018-08-24T06:17:19
2018-08-24T06:17:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,287
java
/* * Copyright 1999-2017 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package studio.raptor.sqlparser.ast.statement; import studio.raptor.sqlparser.ast.SQLExpr; import studio.raptor.sqlparser.ast.SQLObjectImpl; import studio.raptor.sqlparser.visitor.SQLASTVisitor; public class SQLAlterTableCoalescePartition extends SQLObjectImpl implements SQLAlterTableItem { private SQLExpr count; public SQLExpr getCount() { return count; } public void setCount(SQLExpr count) { if (count != null) { count.setParent(this); } this.count = count; } @Override protected void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, count); } visitor.endVisit(this); } }
[ "charleywu@aliyun.com" ]
charleywu@aliyun.com
d05d14f8919b257c57171b1a4f78112d8d68c529
c80e6a84abef45bc7665cacb59e6839b7419f996
/src/main/java/com/zwl/learn/service/OrderService.java
4009efd1ac308857584d58faf7311c51b3b902bf
[]
no_license
weiliangzhou/learn-demo
fce5312c9328b847b9c3c4c7f1889ee1d20674c2
c08cab9e52f08610f2a62555db8118d0b1d34045
refs/heads/master
2023-04-10T14:41:52.628612
2021-04-16T06:55:54
2021-04-16T06:55:54
306,205,172
0
0
null
null
null
null
UTF-8
Java
false
false
181
java
package com.zwl.learn.service; /** @ClassName OrderService @Description @Author 二师兄 @Date 2020-07-15 14:19 @Version V1.0 */ public interface OrderService { void order(); }
[ "382308664@qq.com" ]
382308664@qq.com
06d1abbcd212dfcbb48be9ac7b08f3a6099a02eb
5ab6a03551e721fc08feae3ab3a746ef48cb1e25
/src/test/java/com/simplify/vms/onboard/data/config/WebConfigurerTestController.java
23b082f82353cb02374585dd2e6c70fd1748c046
[]
no_license
arpanm/VMSV2Data
6221f4ca6249c5c555ebbff565bafb0923e26081
70348865bf679048be827949f05380fa1f43eebe
refs/heads/main
2023-04-21T08:31:48.246245
2021-05-10T16:31:45
2021-05-10T16:31:45
365,219,238
0
0
null
2021-05-10T16:31:46
2021-05-07T12:00:15
Java
UTF-8
Java
false
false
382
java
package com.simplify.vms.onboard.data.config; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class WebConfigurerTestController { @GetMapping("/api/test-cors") public void testCorsOnApiPath() {} @GetMapping("/test/test-cors") public void testCorsOnOtherPath() {} }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
918236ea04e024d89d5cd096c953eaaf07b4f42b
4c4c017d3eb765902a87f4f9d76fa43ae1268d1f
/src/main/java/compiler/CompilationUnit.java
4348bcb6744d5cd11feb1339408bef19b04c4221
[]
no_license
sergiotaborda/compilelittle
fe282b0036835a23ad9290b028a883908f12c632
0c40969b81ade6a8e01556921e7784ae26238f26
refs/heads/master
2023-01-08T14:00:45.823418
2023-01-04T14:38:17
2023-01-04T14:38:17
36,563,803
1
0
null
2020-10-13T10:03:47
2015-05-30T15:30:46
Java
UTF-8
Java
false
false
325
java
/** * */ package compiler; import java.io.IOException; import java.io.Reader; import compiler.filesystem.SourcePath; /** * */ public interface CompilationUnit { public Reader read() throws IOException; /** * @return */ public String getName(); public SourcePath getOrigin(); }
[ "sergiotaborda@yahoo.com.br" ]
sergiotaborda@yahoo.com.br
7ecc79f46faf738d2ef84129430f7bc4a8942636
8246da9a0ea49ef6e70bfb6bc05148fb6134ed89
/dianping2/src/main/java/com/dianping/travel/SceneryOrderListActivity.java
927c817209b4a04c96af64054292b562b0d92157
[]
no_license
hezhongqiang/Dianping
2708824e30339e1abfb85e028bd27778e26adb56
b1a4641be06857fcf65466ce04f3de6b0b6f05ef
refs/heads/master
2020-05-29T08:48:38.251791
2016-01-13T08:09:05
2016-01-13T08:09:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,535
java
package com.dianping.travel; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebView; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; import com.dianping.accountservice.AccountService; import com.dianping.adapter.BasicLoadAdapter; import com.dianping.app.Environment; import com.dianping.archive.DPObject; import com.dianping.base.widget.NovaListActivity; import com.dianping.dataservice.mapi.BasicMApiRequest; import com.dianping.dataservice.mapi.CacheType; import com.dianping.dataservice.mapi.MApiRequest; import com.dianping.travel.view.SceneryOrderItem; import com.dianping.v1.R.drawable; import com.dianping.v1.R.id; import com.dianping.v1.R.layout; import java.util.ArrayList; public class SceneryOrderListActivity extends NovaListActivity implements AdapterView.OnItemClickListener { public static final String ACTION_SCENERY_ORDER_LIST_CHANGED = "scenery_order_list_changed"; private Adapter adapter; private BroadcastReceiver receiver = new BroadcastReceiver() { public void onReceive(Context paramContext, Intent paramIntent) { if ("scenery_order_list_changed".equals(paramIntent.getAction())) SceneryOrderListActivity.this.adapter.reset(); } }; public void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); this.adapter = new Adapter(); this.listView.setAdapter(this.adapter); this.listView.setOnItemClickListener(this); paramBundle = new IntentFilter("scenery_order_list_changed"); registerReceiver(this.receiver, paramBundle); } protected void onDestroy() { unregisterReceiver(this.receiver); super.onDestroy(); } public void onItemClick(AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong) { paramAdapterView = paramAdapterView.getItemAtPosition(paramInt); if (paramAdapterView == this.adapter.HELP) { startActivity(new Intent("android.intent.action.VIEW", Uri.parse("dianping://web?url=http://m1.s1.dpfile.com/sc/api_res/scenery/sceneryorderhelp.html?v=2"))); statisticsEvent("myticket5", "myticket5_help", "", 0); } do return; while (!(paramAdapterView instanceof DPObject)); startActivity(new Intent("android.intent.action.VIEW", Uri.parse("dianping://sceneryorder?orderid=" + ((DPObject)paramAdapterView).getInt("ID")))); paramInt = ((DPObject)paramAdapterView).getInt("Status"); paramAdapterView = "预订成功"; if (paramInt == 1) paramAdapterView = "已取消"; while (true) { statisticsEvent("myticket5", "myticket5_list", paramAdapterView, 0); return; if (paramInt != 2) continue; paramAdapterView = "已使用"; } } protected void setEmptyView() { super.setEmptyView(); WebView localWebView = new WebView(this); localWebView.loadUrl("http://m1.s1.dpfile.com/sc/api_res/scenery/sceneryorderhelp.html?v=2"); this.emptyView.addView(localWebView); } class Adapter extends BasicLoadAdapter { private final Object HELP = new Object(); Adapter() { super(); } public MApiRequest createRequest(int paramInt) { if (SceneryOrderListActivity.this.accountService() == null); for (String str = ""; ; str = SceneryOrderListActivity.this.accountService().token()) return BasicMApiRequest.mapiGet("http://m.api.dianping.com/getsceneryorders.bin?token=" + str + "&start=" + paramInt + "&clientUUID=" + Environment.uuid(), CacheType.DISABLED); } public int getCount() { if (this.mData.size() > 0) return super.getCount() + 1; return super.getCount(); } public Object getItem(int paramInt) { if (this.mData.size() > 0) { if (paramInt == 0) return this.HELP; return super.getItem(paramInt - 1); } return super.getItem(paramInt); } public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) { if (getItem(paramInt) == this.HELP) { paramView = SceneryOrderListActivity.this.getLayoutInflater().inflate(R.layout.ticket_item, paramViewGroup, false); ((ImageView)paramView.findViewById(R.id.img00)).setImageResource(R.drawable.ic_info); ((TextView)paramView.findViewById(16908308)).setText("订票帮助"); return paramView; } return super.getView(paramInt, paramView, paramViewGroup); } protected View itemViewWithData(DPObject paramDPObject, int paramInt, View paramView, ViewGroup paramViewGroup) { if (paramView != null) { paramViewGroup = paramView; if ((paramView instanceof SceneryOrderItem)); } else { paramViewGroup = SceneryOrderListActivity.this.getLayoutInflater().inflate(R.layout.scenery_order_item, null); } ((SceneryOrderItem)paramViewGroup).setData(paramDPObject); return paramViewGroup; } } } /* Location: C:\Users\xuetong\Desktop\dazhongdianping7.9.6\ProjectSrc\classes-dex2jar.jar * Qualified Name: com.dianping.travel.SceneryOrderListActivity * JD-Core Version: 0.6.0 */
[ "xuetong@dkhs.com" ]
xuetong@dkhs.com
bb65b5b2843e6e7e782d31492ff10126674d0841
884056b6a120b2a4c1c1202a4c69b07f59aecc36
/java projects/quickSort/result/slicedQuickSort/traditional_mutants/void_quickSort(int,int,int)/AOIS_18/slicedQuickSort.java
21eac4b2f943f5cb7425749e4e46a76957c84725
[ "MIT" ]
permissive
NazaninBayati/SMBFL
a48b16dbe2577a3324209e026c1b2bf53ee52f55
999c4bca166a32571e9f0b1ad99085a5d48550eb
refs/heads/master
2021-07-17T08:52:42.709856
2020-09-07T12:36:11
2020-09-07T12:36:11
204,252,009
3
0
MIT
2020-01-31T18:22:23
2019-08-25T05:47:52
Java
UTF-8
Java
false
false
1,084
java
// This is mutant program. // Author : ysma public class slicedQuickSort { public static void quickSort( int[] list ) { quickSort( list, 0, list.length - 1 ); } private static void quickSort( int[] list, int first, int last ) { if (last > first) { int pivotIndex = partition( list, first, last ); quickSort( list, first--, pivotIndex - 1 ); quickSort( list, pivotIndex + 1, last ); } } private static int partition( int[] list, int first, int last ) { int pivot = list[first]; int low = first + 1; int high = last; if (pivot > list[high]) { list[first] = list[high]; list[high] = pivot; return high; } else { return first; } } public static void main( java.lang.String[] args ) { int[] list = { 2, 3, 2, 5, 6, 1, -2, 3, 14, 12 }; quickSort( list ); for (int i = 0; i < list.length; i++) { System.out.print( list[i] + " " ); } } }
[ "n.bayati20@gmail.com" ]
n.bayati20@gmail.com
b00dbbfa3e1f40bebb62feb8c41704be9b8baa49
30614192ae67d9cced3866bd310f9fb58dfa2fbe
/src/main/java/ke/co/turbosoft/med/repository/AgentRepo.java
ea3bfc2ea9c2454ff70dd658c06554bebaa856ec
[]
no_license
ktonym/turbomed-underwriting
33086bc08787347401b0b2037e0fbc1891f28d4c
0daa864ab8aeac3f6be5caf3cc14659434e79372
refs/heads/master
2021-01-01T15:31:04.373863
2015-02-27T16:41:30
2015-02-27T16:41:30
27,634,219
0
0
null
null
null
null
UTF-8
Java
false
false
257
java
package ke.co.turbosoft.med.repository; import ke.co.turbosoft.med.entity.Agent; import org.springframework.data.jpa.repository.JpaRepository; /** * Created by akipkoech on 12/8/14. */ public interface AgentRepo extends JpaRepository<Agent,Integer> { }
[ "ktonym@gmail.com" ]
ktonym@gmail.com
9cfae6755a1e2140a5cdfa85b5a10c8702819cc2
fe92205836844a17836c2c4b849e763d4018686d
/src/Selenium/OrangeHRM_TableTextVerification.java
7b7d80f38213de04931d8c6e45b51d8885881a87
[]
no_license
cherukuripavanteja318/TM_1
f436b3dcbe8bfa1a6f284304311fc1e54fb1d95a
982e3535c560fa4b12d0a1527ced851019a507e0
refs/heads/master
2020-11-27T11:26:07.336482
2019-12-21T12:04:16
2019-12-21T12:04:16
229,420,631
0
0
null
null
null
null
UTF-8
Java
false
false
2,007
java
package Selenium; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; public class OrangeHRM_TableTextVerification { public static void main(String[] args) throws InterruptedException { // launch app System.setProperty("webdriver.chrome.driver", "C:\\Users\\S3\\Downloads\\chromedriver_win32\\chromedriver.exe"); ChromeDriver driver = new ChromeDriver(); driver.get("http://testingmasters.com/hrm/symfony/web/index.php/auth/login"); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); // logi into app driver.findElement(By.id("txtUsername")).sendKeys("user02"); driver.findElement(By.id("txtPassword")).sendKeys("TM1234"); driver.findElement(By.id("btnLogin")).click(); // navigate and click on my leave Actions act_leave = new Actions(driver); WebElement leave = driver.findElement(By.id("menu_leave_viewLeaveModule")); act_leave.moveToElement(leave).build().perform(); Thread.sleep(2000); driver.findElement(By.xpath("//a[@id='menu_leave_viewMyLeaveList']")).click(); // table names List<WebElement> row=driver.findElements(By.xpath("//table[@id='resultTable']/tbody/tr")); int rowcunt=row.size(); System.out.println(rowcunt); List<WebElement> column=driver.findElements(By.xpath("//table[@id='resultTable']/tbody/tr/td")); int columncunt=column.size(); System.out.println(columncunt); for (int i = 1; i <50; i++) { for (int j = 1; j < 8; j++) { WebElement cell = driver.findElement(By.xpath("//table[@id='resultTable']/tbody/tr[" + i + "]/td[" + j + "]")); String s = cell.getText(); String a = "Personal reason"; if (s.equals(a)) { System.out.println(i + " row " +"-"+ j + " column consists of " +a); } } } driver.close(); } }
[ "prathap.ufttest@gmail.com" ]
prathap.ufttest@gmail.com
e52092adf485732b23152c86d8ea05c56d75e307
0c698e4eff8601ae27a1a833ef506aed19e2b2cb
/src/main/java/repetition/proba001/NotAbstract.java
ecc52079afb3578400a81e458741979333ff2165
[]
no_license
alsamancov/BruceEckel
ea432e9de1c8be3148a0750c13c8987707fa0a2a
b827917220304c8dd0a8f0708ea505214ba395da
refs/heads/master
2020-04-04T20:17:40.864127
2019-03-14T13:39:38
2019-03-14T13:39:38
156,241,215
1
0
null
null
null
null
UTF-8
Java
false
false
169
java
package repetition.proba001; public class NotAbstract extends Basic { @Override void uniplemented() { System.out.println("print something!"); } }
[ "alsamancov@gmail.com" ]
alsamancov@gmail.com
96349a703eb2603ca9ce6d168d1a099f8a10c94d
a4a51084cfb715c7076c810520542af38a854868
/src/main/java/com/tencent/ugc/TXRecordCommon.java
194126df6aae0711334265a8edfcd1a69ae70931
[]
no_license
BharathPalanivelu/repotest
ddaf56a94eb52867408e0e769f35bef2d815da72
f78ae38738d2ba6c9b9b4049f3092188fabb5b59
refs/heads/master
2020-09-30T18:55:04.802341
2019-12-02T10:52:08
2019-12-02T10:52:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,853
java
package com.tencent.ugc; import android.graphics.Bitmap; import android.os.Bundle; import com.garena.android.gpns.utility.CONSTANT; public class TXRecordCommon { public static final int AUDIO_SAMPLERATE_16000 = 16000; public static final int AUDIO_SAMPLERATE_32000 = 32000; public static final int AUDIO_SAMPLERATE_44100 = 44100; public static final int AUDIO_SAMPLERATE_48000 = 48000; public static final int AUDIO_SAMPLERATE_8000 = 8000; public static final int EVT_CAMERA_CANNOT_USE = 3; public static final String EVT_DESCRIPTION = "EVT_DESCRIPTION"; public static final int EVT_ID_PAUSE = 1; public static final int EVT_ID_RESUME = 2; public static final int EVT_MIC_CANNOT_USE = 4; public static final String EVT_PARAM1 = "EVT_PARAM1"; public static final String EVT_PARAM2 = "EVT_PARAM2"; public static final String EVT_TIME = "EVT_TIME"; public static final int RECORD_RESULT_COMPOSE_CANCEL = -7; public static final int RECORD_RESULT_COMPOSE_INTERNAL_ERR = -9; public static final int RECORD_RESULT_COMPOSE_SET_DST_PATH_ERR = -5; public static final int RECORD_RESULT_COMPOSE_SET_SRC_PATH_ERR = -4; public static final int RECORD_RESULT_COMPOSE_START_ERR = -6; public static final int RECORD_RESULT_COMPOSE_VERIFY_FAIL = -8; public static final int RECORD_RESULT_FAILED = -1; public static final int RECORD_RESULT_FILE_ERR = -3; public static final int RECORD_RESULT_OK = 0; public static final int RECORD_RESULT_OK_LESS_THAN_MINDURATION = 1; public static final int RECORD_RESULT_OK_REACHED_MAXDURATION = 2; public static final int RECORD_RESULT_SUSPEND_FOR_NO_TASK = -2; public static final int RECORD_SPEED_FAST = 3; public static final int RECORD_SPEED_FASTEST = 4; public static final int RECORD_SPEED_NORMAL = 2; public static final int RECORD_SPEED_SLOW = 1; public static final int RECORD_SPEED_SLOWEST = 0; public static final int RECORD_TYPE_STREAM_SOURCE = 1; public static final int START_RECORD_ERR_API_IS_LOWER_THAN_18 = -3; public static final int START_RECORD_ERR_IS_IN_RECORDING = -1; public static final int START_RECORD_ERR_LICENCE_VERIFICATION_FAILED = -5; public static final int START_RECORD_ERR_NOT_INIT = -4; public static final int START_RECORD_ERR_VIDEO_PATH_IS_EMPTY = -2; public static final int START_RECORD_OK = 0; public static final int VIDEO_ASPECT_RATIO_1_1 = 2; public static final int VIDEO_ASPECT_RATIO_3_4 = 1; public static final int VIDEO_ASPECT_RATIO_9_16 = 0; public static final int VIDEO_QUALITY_HIGH = 2; public static final int VIDEO_QUALITY_LOW = 0; public static final int VIDEO_QUALITY_MEDIUM = 1; public static final int VIDEO_RENDER_MODE_ADJUST_RESOLUTION = 1; public static final int VIDEO_RENDER_MODE_FULL_FILL_SCREEN = 0; public static final int VIDEO_RESOLUTION_1080_1920 = 3; public static final int VIDEO_RESOLUTION_360_640 = 0; public static final int VIDEO_RESOLUTION_540_960 = 1; public static final int VIDEO_RESOLUTION_720_1280 = 2; public static final int VIDOE_REVERB_TYPE_0 = 0; public static final int VIDOE_REVERB_TYPE_1 = 1; public static final int VIDOE_REVERB_TYPE_2 = 2; public static final int VIDOE_REVERB_TYPE_3 = 3; public static final int VIDOE_REVERB_TYPE_4 = 4; public static final int VIDOE_REVERB_TYPE_5 = 5; public static final int VIDOE_REVERB_TYPE_6 = 6; public static final int VIDOE_REVERB_TYPE_7 = 7; public static final int VIDOE_VOICECHANGER_TYPE_0 = 0; public static final int VIDOE_VOICECHANGER_TYPE_1 = 1; public static final int VIDOE_VOICECHANGER_TYPE_10 = 10; public static final int VIDOE_VOICECHANGER_TYPE_11 = 11; public static final int VIDOE_VOICECHANGER_TYPE_2 = 2; public static final int VIDOE_VOICECHANGER_TYPE_3 = 3; public static final int VIDOE_VOICECHANGER_TYPE_4 = 4; public static final int VIDOE_VOICECHANGER_TYPE_6 = 6; public static final int VIDOE_VOICECHANGER_TYPE_7 = 7; public static final int VIDOE_VOICECHANGER_TYPE_8 = 8; public static final int VIDOE_VOICECHANGER_TYPE_9 = 9; public interface ITXBGMNotify { void onBGMComplete(int i); void onBGMProgress(long j, long j2); void onBGMStart(); } public interface ITXSnapshotListener { void onSnapshot(Bitmap bitmap); } public interface ITXVideoRecordListener { void onRecordComplete(TXRecordResult tXRecordResult); void onRecordEvent(int i, Bundle bundle); void onRecordProgress(long j); } public static final class TXRecordResult { public String coverPath; public String descMsg; public int retCode; public String videoPath; } public static final class TXUGCCustomConfig { public int audioSampleRate = 48000; boolean enableHighResolutionCapture = false; public boolean isFront = true; public int maxDuration = CONSTANT.TIME.MIN_1; public int minDuration = 5000; public boolean needEdit = true; public boolean touchFocus = false; public int videoBitrate = 1800; public int videoFps = 20; public int videoGop = 3; public int videoResolution = 1; public Bitmap watermark = null; public int watermarkX = 0; public int watermarkY = 0; } public static final class TXUGCSimpleConfig { public boolean isFront = true; public int maxDuration = CONSTANT.TIME.MIN_1; public int minDuration = 5000; public boolean needEdit = true; public boolean touchFocus = false; public int videoQuality = 1; public Bitmap watermark = null; public int watermarkX = 0; public int watermarkY = 0; } }
[ "noiz354@gmail.com" ]
noiz354@gmail.com
b55ebee2de1b0ffdf8280e43c75379dcfb50297f
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a260/A260575.java
94c8f2c1d78ea5480b53c7a86edf346cf27cedf3
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
699
java
package irvine.oeis.a260; // Generated by gen_pattern.pl - DO NOT EDIT here! import irvine.oeis.GeneratingFunctionSequence; /** * A260575 Number of ways to place <code>2n</code> rooks on <code>n X n</code> board, 2 rooks in each row and each column, multiple rooks in a cell allowed, and exactly 3 rooks below the main diagonal. * @author Georg Fischer */ public class A260575 extends GeneratingFunctionSequence { /** Construct the sequence. */ public A260575() { super(3, new long[] {0, 0, 0, -4, -2, 300, -1748, 4674, -7058, 6648, -4397, 2206, -625}, new long[] {-1, 28, -350, 2592, -12713, 43682, -108337, 196626, -261466, 251874, -171025, 77590, -21100, 2600}); } }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
54478edce6c93fef04611465c464531c9757f745
2e036b061d4808893d732d0fe44a33d52448f324
/src/net/sourceforge/kolmafia/request/ContactListRequest.java
79b0cf9cbde13f2de2aa135c5f8113912bfabb51
[]
no_license
gumpshroom/kolmafia-githhub
a2c31fed4170caec5a5f3306fe9e8beb44ac9cff
7c6b7591f71c0b07d3b97d7e497186043891f3bf
refs/heads/master
2022-04-16T14:01:45.012629
2020-04-11T14:48:26
2020-04-11T14:48:26
254,889,543
1
1
null
null
null
null
UTF-8
Java
false
false
3,125
java
/** * Copyright (c) 2005-2020, KoLmafia development team * http://kolmafia.sourceforge.net/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * [1] Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * [2] 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. * [3] Neither the name "KoLmafia" nor the names of its contributors may * be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ package net.sourceforge.kolmafia.request; import java.util.regex.Matcher; import java.util.regex.Pattern; import net.sourceforge.kolmafia.KoLCharacter; import net.sourceforge.kolmafia.KoLmafia; import net.sourceforge.kolmafia.RequestThread; import net.sourceforge.kolmafia.session.ContactManager; public class ContactListRequest extends GenericRequest { private static final Pattern LIST_PATTERN = Pattern.compile( "<b>Contact List</b>.*?</table>" ); private static final Pattern ENTRY_PATTERN = Pattern.compile( "<a href=\"showplayer.php\\?who=(\\d+)\".*?<b>(.*?)</b>" ); public ContactListRequest() { super( "account_contactlist.php" ); } @Override protected boolean retryOnTimeout() { return true; } @Override public void run() { super.run(); } @Override public void processResults() { ContactListRequest.parseResponse( this.getURLString(), this.responseText ); } public static final void parseResponse( final String urlString, final String responseText ) { ContactManager.clearMailContacts(); ContactManager.addMailContact( KoLCharacter.getUserName(), KoLCharacter.getPlayerId() ); Matcher listMatcher = ContactListRequest.LIST_PATTERN.matcher( responseText ); if ( listMatcher.find() ) { Matcher entryMatcher = ContactListRequest.ENTRY_PATTERN.matcher( listMatcher.group() ); while ( entryMatcher.find() ) { ContactManager.addMailContact( entryMatcher.group( 2 ), entryMatcher.group( 1 ) ); } } } }
[ "dra032005@gmail.com" ]
dra032005@gmail.com
ae8bca1c5105eaa37909e609672117b460cfb56e
d60bd7144cb4428a6f7039387c3aaf7b295ecc77
/ScootAppSource/android/support/v4/view/a/z.java
cd7e52080d66e92bdd9a72f88f32de0ce72fe83e
[]
no_license
vaquarkhan/Scoot-mobile-app
4f58f628e7e2de0480f7c41998cdc38100dfef12
befcfb58c1dccb047548f544dea2b2ee187da728
refs/heads/master
2020-06-10T19:14:25.985858
2016-12-08T04:39:10
2016-12-08T04:39:10
75,902,491
1
0
null
null
null
null
UTF-8
Java
false
false
5,340
java
package android.support.v4.view.a; import android.graphics.Rect; import android.view.View; import android.view.accessibility.AccessibilityNodeInfo; final class z { public static Object a() { return AccessibilityNodeInfo.obtain(); } public static Object a(View paramView) { return AccessibilityNodeInfo.obtain(paramView); } public static Object a(Object paramObject) { return AccessibilityNodeInfo.obtain((AccessibilityNodeInfo)paramObject); } public static void a(Object paramObject, int paramInt) { ((AccessibilityNodeInfo)paramObject).addAction(paramInt); } public static void a(Object paramObject, Rect paramRect) { ((AccessibilityNodeInfo)paramObject).getBoundsInParent(paramRect); } public static void a(Object paramObject, View paramView) { ((AccessibilityNodeInfo)paramObject).addChild(paramView); } public static void a(Object paramObject, CharSequence paramCharSequence) { ((AccessibilityNodeInfo)paramObject).setClassName(paramCharSequence); } public static void a(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setClickable(paramBoolean); } public static int b(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).getActions(); } public static void b(Object paramObject, Rect paramRect) { ((AccessibilityNodeInfo)paramObject).getBoundsInScreen(paramRect); } public static void b(Object paramObject, View paramView) { ((AccessibilityNodeInfo)paramObject).setParent(paramView); } public static void b(Object paramObject, CharSequence paramCharSequence) { ((AccessibilityNodeInfo)paramObject).setContentDescription(paramCharSequence); } public static void b(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setEnabled(paramBoolean); } public static CharSequence c(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).getClassName(); } public static void c(Object paramObject, Rect paramRect) { ((AccessibilityNodeInfo)paramObject).setBoundsInParent(paramRect); } public static void c(Object paramObject, View paramView) { ((AccessibilityNodeInfo)paramObject).setSource(paramView); } public static void c(Object paramObject, CharSequence paramCharSequence) { ((AccessibilityNodeInfo)paramObject).setPackageName(paramCharSequence); } public static void c(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setFocusable(paramBoolean); } public static CharSequence d(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).getContentDescription(); } public static void d(Object paramObject, Rect paramRect) { ((AccessibilityNodeInfo)paramObject).setBoundsInScreen(paramRect); } public static void d(Object paramObject, CharSequence paramCharSequence) { ((AccessibilityNodeInfo)paramObject).setText(paramCharSequence); } public static void d(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setFocused(paramBoolean); } public static CharSequence e(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).getPackageName(); } public static void e(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setLongClickable(paramBoolean); } public static CharSequence f(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).getText(); } public static void f(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setScrollable(paramBoolean); } public static void g(Object paramObject, boolean paramBoolean) { ((AccessibilityNodeInfo)paramObject).setSelected(paramBoolean); } public static boolean g(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isCheckable(); } public static boolean h(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isChecked(); } public static boolean i(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isClickable(); } public static boolean j(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isEnabled(); } public static boolean k(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isFocusable(); } public static boolean l(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isFocused(); } public static boolean m(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isLongClickable(); } public static boolean n(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isPassword(); } public static boolean o(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isScrollable(); } public static boolean p(Object paramObject) { return ((AccessibilityNodeInfo)paramObject).isSelected(); } public static void q(Object paramObject) { ((AccessibilityNodeInfo)paramObject).recycle(); } } /* Location: D:\Android\dex2jar-2.0\classes-dex2jar.jar!\android\support\v4\view\a\z.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "vaquar.khan@gmail.com" ]
vaquar.khan@gmail.com
78b4983d2eb0933ff4760cf316ece8fcfdf0896d
2b6e3a34ec277f72a5da125afecfe3f4a61419f5
/Ruyicai_168/v3.5.4/v3.5.4/src/com/ruyicai/dialog/LogOutDialog.java
b58c4e8d3c9694f2cb1fe5e8f56d514145c38e9f
[]
no_license
surport/Android
03d538fe8484b0ff0a83b8b0b2499ad14592c64b
afc2668728379caeb504c9b769011f2ba1e27d25
refs/heads/master
2020-04-02T10:29:40.438348
2013-12-18T09:55:42
2013-12-18T09:55:42
15,285,717
3
5
null
null
null
null
UTF-8
Java
false
false
2,142
java
package com.ruyicai.dialog; import com.palmdream.RuyicaiAndroid168.R; import com.ruyicai.activity.common.UserLogin; import com.ruyicai.constant.ShellRWConstants; import com.ruyicai.util.RWSharedPreferences; import android.app.Activity; import android.widget.Toast; /** * 注销对话框 * @author Administrator * */ public class LogOutDialog extends BaseDialog{ static MyDialogListener dialogListener; private RWSharedPreferences shellRW; public static LogOutDialog dialog = null; public LogOutDialog(Activity activity, String title, String message) { super(activity, title, message); // TODO Auto-generated constructor stub } public static LogOutDialog createDialog(Activity activity){ // if(dialog == null){ dialog = new LogOutDialog(activity, activity.getString(R.string.log_out_title), activity.getString(R.string.log_out_content)); dialog.showDialog(); dialog.createMyDialog(); // }else{ // dialog.showDialog(); // } return dialog; } /** * 按钮的回调函数 */ public void setOnClik(MyDialogListener dialogListener){ this.dialogListener = dialogListener; } /** * 清空上次的登录信息 */ public void clearLastLoginInfo() { shellRW = new RWSharedPreferences(activity, "addInfo"); String userno = shellRW.getStringValue("userno"); if(userno.equals("")||userno == null){ Toast.makeText(activity,activity.getString(R.string.log_out_toast_no_login), Toast.LENGTH_SHORT).show(); }else{ shellRW.putStringValue("sessionid", ""); shellRW.putStringValue("userno", ""); shellRW.putStringValue("password", ""); shellRW.putBooleanValue(ShellRWConstants.AUTO_LOGIN, false); shellRW.putStringValue(ShellRWConstants.RANDOMNUMBER, ""); Toast.makeText(activity,activity.getString(R.string.log_out_toast_msg), Toast.LENGTH_SHORT).show(); } } @Override public void onOkButton() { // TODO Auto-generated method stub dialogListener.onOkClick(); } @Override public void onCancelButton() { // TODO Auto-generated method stub } }
[ "zxflimit@gmail.com" ]
zxflimit@gmail.com
4f4bf3bc6c5627dc80bffb366439f107ef50da11
b85d0ce8280cff639a80de8bf35e2ad110ac7e16
/com/fossil/dao.java
17ac2d45ba3cffef278718c3b9d15203cd723d02
[]
no_license
MathiasMonstrey/fosil_decompiled
3d90433663db67efdc93775145afc0f4a3dd150c
667c5eea80c829164220222e8fa64bf7185c9aae
refs/heads/master
2020-03-19T12:18:30.615455
2018-06-07T17:26:09
2018-06-07T17:26:09
136,509,743
1
0
null
null
null
null
UTF-8
Java
false
false
764
java
package com.fossil; import com.fossil.daj.C2602b; public final class dao implements emi<C2602b> { static final /* synthetic */ boolean $assertionsDisabled = (!dao.class.desiredAssertionStatus()); private final dam cNC; public /* synthetic */ Object get() { return akW(); } public dao(dam com_fossil_dam) { if ($assertionsDisabled || com_fossil_dam != null) { this.cNC = com_fossil_dam; return; } throw new AssertionError(); } public C2602b akW() { return (C2602b) emj.m10873f(this.cNC.akV(), "Cannot return null from a non-@Nullable @Provides method"); } public static emi<C2602b> m8096b(dam com_fossil_dam) { return new dao(com_fossil_dam); } }
[ "me@mathiasmonstrey.be" ]
me@mathiasmonstrey.be
e3faf987a9befa7459dc02cff5c59bb0cbc1a6f6
6ef4869c6bc2ce2e77b422242e347819f6a5f665
/devices/google/Pixel 2/29/QPP6.190730.005/src/ext/gov/nist/javax/sip/header/TimeStamp.java
2bdd13cda6a55d3a42d0d2510e4e13a56bdd6ba2
[]
no_license
hacking-android/frameworks
40e40396bb2edacccabf8a920fa5722b021fb060
943f0b4d46f72532a419fb6171e40d1c93984c8e
refs/heads/master
2020-07-03T19:32:28.876703
2019-08-13T03:31:06
2019-08-13T03:31:06
202,017,534
2
0
null
2019-08-13T03:33:19
2019-08-12T22:19:30
Java
UTF-8
Java
false
false
4,122
java
/* * Decompiled with CFR 0.145. */ package gov.nist.javax.sip.header; import gov.nist.javax.sip.header.SIPHeader; import javax.sip.InvalidArgumentException; import javax.sip.header.TimeStampHeader; public class TimeStamp extends SIPHeader implements TimeStampHeader { private static final long serialVersionUID = -3711322366481232720L; protected int delay = -1; protected float delayFloat = -1.0f; protected long timeStamp = -1L; private float timeStampFloat = -1.0f; public TimeStamp() { super("Timestamp"); } private String getDelayAsString() { if (this.delay == -1 && this.delayFloat == -1.0f) { return ""; } int n = this.delay; if (n != -1) { return Integer.toString(n); } return Float.toString(this.delayFloat); } private String getTimeStampAsString() { if (this.timeStamp == -1L && this.timeStampFloat == -1.0f) { return ""; } long l = this.timeStamp; if (l != -1L) { return Long.toString(l); } return Float.toString(this.timeStampFloat); } @Override public String encodeBody() { StringBuffer stringBuffer = new StringBuffer(); String string = this.getTimeStampAsString(); String string2 = this.getDelayAsString(); if (string.equals("") && string2.equals("")) { return ""; } if (!string.equals("")) { stringBuffer.append(string); } if (!string2.equals("")) { stringBuffer.append(" "); stringBuffer.append(string2); } return stringBuffer.toString(); } @Override public float getDelay() { float f; float f2 = f = this.delayFloat; if (f == -1.0f) { f2 = Float.valueOf(this.delay).floatValue(); } return f2; } @Override public long getTime() { long l; long l2 = l = this.timeStamp; if (l == -1L) { l2 = (long)this.timeStampFloat; } return l2; } @Override public int getTimeDelay() { int n; int n2 = n = this.delay; if (n == -1) { n2 = (int)this.delayFloat; } return n2; } @Override public float getTimeStamp() { float f; block0 : { f = this.timeStampFloat; if (f != -1.0f) break block0; f = Float.valueOf(this.timeStamp).floatValue(); } return f; } @Override public boolean hasDelay() { boolean bl = this.delay != -1; return bl; } @Override public void removeDelay() { this.delay = -1; } @Override public void setDelay(float f) throws InvalidArgumentException { if (f < 0.0f && f != -1.0f) { throw new InvalidArgumentException("JAIN-SIP Exception, TimeStamp, setDelay(), the delay parameter is <0"); } this.delayFloat = f; this.delay = -1; } @Override public void setTime(long l) throws InvalidArgumentException { if (l >= -1L) { this.timeStamp = l; this.timeStampFloat = -1.0f; return; } throw new InvalidArgumentException("Illegal timestamp"); } @Override public void setTimeDelay(int n) throws InvalidArgumentException { if (n >= -1) { this.delay = n; this.delayFloat = -1.0f; return; } StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("Value out of range "); stringBuilder.append(n); throw new InvalidArgumentException(stringBuilder.toString()); } @Override public void setTimeStamp(float f) throws InvalidArgumentException { if (!(f < 0.0f)) { this.timeStamp = -1L; this.timeStampFloat = f; return; } throw new InvalidArgumentException("JAIN-SIP Exception, TimeStamp, setTimeStamp(), the timeStamp parameter is <0"); } }
[ "me@paulo.costa.nom.br" ]
me@paulo.costa.nom.br
3988a01510d856df11c78b698e3f0afb0749aa6f
2aa86170dbaa2c08ef8bb3ba6af61cb124223bae
/worksheet/src/main/java/org/library/worksheet/cellstyles/WorkSheet.java
926606f56403a3a32c98c92dcbe6e76e3310ef6a
[ "Apache-2.0" ]
permissive
john-julius/worksheet
844f097185c504279a1a2b4f50fe7ba0f47e3fdc
85dcf7d64fe1cfa90bf1e6d4d3eb0768e6240aa6
refs/heads/master
2022-12-13T11:56:33.697372
2020-09-03T07:03:26
2020-09-03T07:03:26
292,296,848
0
0
Apache-2.0
2020-09-02T13:52:21
2020-09-02T13:52:21
null
UTF-8
Java
false
false
4,007
java
package org.library.worksheet.cellstyles; import android.content.Context; import org.library.worksheet.ExcelBookImpl; import java.io.IOException; import java.util.List; import java.util.Map; public class WorkSheet { private List<?> objects; private List<Map<String, List<?>>> map; private String path; private CellEnum title; private CellEnum cell; private CellEnum header; private CellEnum background; public WorkSheet(List<?> objects, List<Map<String, List<?>>> map, String path, CellEnum header, CellEnum title, CellEnum cell, CellEnum background) { this.objects = objects; this.path = path; this.title = title; this.cell = cell; this.header = header; this.background = background; this.map = map; } public WorkSheet(List<Map<String, List<?>>> map, String path, CellEnum header, CellEnum title, CellEnum cell, CellEnum background) { this.path = path; this.title = title; this.cell = cell; this.header = header; this.background = background; this.map = map; } public CellEnum getHeader() { return header; } public List<?> getObjects() { return objects; } public String getpath() { return path; } public CellEnum gettitle() { return title; } public CellEnum getcell() { return cell; } public CellEnum getBackground() { return background; } public List<Map<String, List<?>>> getMap() { return map; } public static class Builder { private List<?> objects; List<Map<String, List<?>>> map; private String path; private CellEnum title; private CellEnum cell; private CellEnum header; private CellEnum background; private ExcelBookImpl excelBook; public Builder(Context context, String path){ this.path = path; excelBook = new ExcelBookImpl(context); } public Builder(List<?> objects, List<Map<String, List<?>>> map, String path, CellEnum header, CellEnum title, CellEnum cell, CellEnum background) { this.objects = objects; this.path = path; this.title = title; this.cell = cell; this.header = header; this.background = background; this.map = map; } public Builder(String path) { this.path = path; } public Builder(List<?> objects, String path) { this.objects = objects; this.path = path; } public Builder(String path, List<Map<String, List<?>>> map) { this.map = map; this.path = path; } public Builder setSheets(List<Map<String, List<?>>> map) { this.map = map; return this; } public Builder setSheet(List<?> objects) { this.objects = objects; return this; } public Builder title(CellEnum title) { this.title = title; return this; } public Builder cell(CellEnum cell) { this.cell = cell; return this; } public Builder header(CellEnum header) { this.header = header; return this; } public Builder background(CellEnum background) { this.background = background; return this; } public WorkSheet writeSheet() throws IOException { excelBook.ExcelSheet(this.objects, path, header, title, cell); return new WorkSheet(objects, null, path, header, title, cell, background); } public WorkSheet writeSheets() throws IOException { excelBook.ExcelSheets(this.map , path, header, title, cell); return new WorkSheet( map, path, header, title, cell, background); } } }
[ "=" ]
=
1576869afc307c94b19087116b99345358c855dc
0a4d4b808ee0724114e6153c1204de4e253c1dcb
/samples/135/a.java
8147f67541a809465a46d7c76b078bcdc667a4bb
[ "MIT" ]
permissive
yura-hb/sesame-sampled-pairs
543b19bf340f6a35681cfca1084349bd3eb8f853
33b061e3612a7b26198c17245c2835193f861151
refs/heads/main
2023-07-09T04:15:05.821444
2021-08-08T12:01:04
2021-08-08T12:01:04
393,947,142
0
0
null
null
null
null
UTF-8
Java
false
false
302
java
class Functions { /** Returns the identity function. */ // implementation is "fully variant"; E has become a "pass-through" type @SuppressWarnings("unchecked") public static &lt;E&gt; Function&lt;E, E&gt; identity() { return (Function&lt;E, E&gt;) IdentityFunction.INSTANCE; } }
[ "hayeuyur@MacBook-Pro.local" ]
hayeuyur@MacBook-Pro.local
ef6c79cdbf6d0e303c760a293e1e27a0e2a34c66
aa8a3972d192dc27805b6c564e6bd5a34eb34636
/examples/adwords_axis/src/main/java/adwords/axis/v201409/targeting/AddCampaignTargetingCriteria.java
bc340e3d12c4600afcb329856d45026859e87da2
[ "Apache-2.0" ]
permissive
nafae/developer
201e76ef6909097b07936dbc7f4ef05660fe2a26
ea3ad63c72009c83c2cdbeebfc3868905a188166
refs/heads/master
2021-01-19T17:48:32.453689
2014-11-11T22:17:32
2014-11-11T22:17:32
26,411,286
0
1
null
null
null
null
UTF-8
Java
false
false
7,827
java
// Copyright 2014 Google 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 adwords.axis.v201409.targeting; import com.google.api.ads.adwords.axis.factory.AdWordsServices; import com.google.api.ads.adwords.axis.v201409.cm.CampaignCriterion; import com.google.api.ads.adwords.axis.v201409.cm.CampaignCriterionOperation; import com.google.api.ads.adwords.axis.v201409.cm.CampaignCriterionReturnValue; import com.google.api.ads.adwords.axis.v201409.cm.CampaignCriterionServiceInterface; import com.google.api.ads.adwords.axis.v201409.cm.ConstantOperand; import com.google.api.ads.adwords.axis.v201409.cm.ConstantOperandConstantType; import com.google.api.ads.adwords.axis.v201409.cm.ConstantOperandUnit; import com.google.api.ads.adwords.axis.v201409.cm.Criterion; import com.google.api.ads.adwords.axis.v201409.cm.Function; import com.google.api.ads.adwords.axis.v201409.cm.FunctionArgumentOperand; import com.google.api.ads.adwords.axis.v201409.cm.FunctionOperator; import com.google.api.ads.adwords.axis.v201409.cm.GeoTargetOperand; import com.google.api.ads.adwords.axis.v201409.cm.IncomeOperand; import com.google.api.ads.adwords.axis.v201409.cm.IncomeTier; import com.google.api.ads.adwords.axis.v201409.cm.Language; import com.google.api.ads.adwords.axis.v201409.cm.Location; import com.google.api.ads.adwords.axis.v201409.cm.LocationExtensionOperand; import com.google.api.ads.adwords.axis.v201409.cm.LocationGroups; import com.google.api.ads.adwords.axis.v201409.cm.Operator; import com.google.api.ads.adwords.axis.v201409.cm.PlacesOfInterestOperand; import com.google.api.ads.adwords.axis.v201409.cm.PlacesOfInterestOperandCategory; import com.google.api.ads.adwords.lib.client.AdWordsSession; import com.google.api.ads.common.lib.auth.OfflineCredentials; import com.google.api.ads.common.lib.auth.OfflineCredentials.Api; import com.google.api.client.auth.oauth2.Credential; import java.util.ArrayList; import java.util.List; /** * This example adds various types of targeting criteria to a campaign. To get * campaigns, run GetCampaigns.java * * Credentials and properties in {@code fromFile()} are pulled from the * "ads.properties" file. See README for more info. * * Tags: CampaignCriterionService.mutate * * @author Kevin Winter */ public class AddCampaignTargetingCriteria { public static void main(String[] args) throws Exception { // Generate a refreshable OAuth2 credential similar to a ClientLogin token // and can be used in place of a service account. Credential oAuth2Credential = new OfflineCredentials.Builder() .forApi(Api.ADWORDS) .fromFile() .build() .generateCredential(); // Construct an AdWordsSession. AdWordsSession session = new AdWordsSession.Builder() .fromFile() .withOAuth2Credential(oAuth2Credential) .build(); Long campaignId = Long.valueOf("INSERT_CAMPAIGN_ID_HERE"); AdWordsServices adWordsServices = new AdWordsServices(); runExample(adWordsServices, session, campaignId); } public static void runExample( AdWordsServices adWordsServices, AdWordsSession session, Long campaignId) throws Exception { // Get the CampaignService. CampaignCriterionServiceInterface campaignCriterionService = adWordsServices.get(session, CampaignCriterionServiceInterface.class); // Create locations. The IDs can be found in the documentation or // retrieved with the LocationCriterionService. Location california = new Location(); california.setId(21137L); Location mexico = new Location(); mexico.setId(2484L); // Create languages. The IDs can be found in the documentation or // retrieved with the ConstantDataService. Language english = new Language(); english.setId(1000L); Language spanish = new Language(); spanish.setId(1003L); // Location groups criteria. These represent targeting by household income // or places of interest. The IDs can be found in the documentation or // retrieved with the LocationCriterionService. LocationGroups locationGroupTier3 = new LocationGroups(); Function tier3MatchingFunction = new Function(); tier3MatchingFunction.setLhsOperand(new FunctionArgumentOperand[] { // Tiers are numbered 1-10, and represent 10% segments of earners. // For example, TIER_1 is the top 10%, TIER_2 is the 80-90%, etc. // Tiers 6 through 10 are grouped into TIER_6_TO_10. new IncomeOperand(null, IncomeTier.TIER_3) }); tier3MatchingFunction.setOperator(FunctionOperator.AND); tier3MatchingFunction.setRhsOperand(new FunctionArgumentOperand[] { new GeoTargetOperand(null, new long[]{ 1015116L }) // Miami, FL }); locationGroupTier3.setMatchingFunction(tier3MatchingFunction); LocationGroups locationGroupDowntown = new LocationGroups(); Function downtownMatchingFunction = new Function(); downtownMatchingFunction.setLhsOperand(new FunctionArgumentOperand[] { new PlacesOfInterestOperand(null, PlacesOfInterestOperandCategory.DOWNTOWN) }); downtownMatchingFunction.setOperator(FunctionOperator.AND); downtownMatchingFunction.setRhsOperand(new FunctionArgumentOperand[] { new GeoTargetOperand(null, new long[]{ 1015116L }) // Miami, FL }); locationGroupDowntown.setMatchingFunction(downtownMatchingFunction); // Distance targeting. Area of 10 miles around targets above. LocationGroups radiusLocationGroup = new LocationGroups(); ConstantOperand radius = new ConstantOperand(); radius.setType(ConstantOperandConstantType.DOUBLE); radius.setUnit(ConstantOperandUnit.MILES); radius.setDoubleValue(10d); LocationExtensionOperand distance = new LocationExtensionOperand(); distance.setRadius(radius); Function radiusMatchingFunction = new Function(); radiusMatchingFunction.setOperator(FunctionOperator.IDENTITY); radiusMatchingFunction.setLhsOperand(new FunctionArgumentOperand[] {distance}); radiusLocationGroup.setMatchingFunction(radiusMatchingFunction); List<CampaignCriterionOperation> operations = new ArrayList<CampaignCriterionOperation>(); for (Criterion criterion : new Criterion[] {california, mexico, english, spanish, locationGroupTier3, locationGroupDowntown, radiusLocationGroup}) { CampaignCriterionOperation operation = new CampaignCriterionOperation(); CampaignCriterion campaignCriterion = new CampaignCriterion(); campaignCriterion.setCampaignId(campaignId); campaignCriterion.setCriterion(criterion); operation.setOperand(campaignCriterion); operation.setOperator(Operator.ADD); operations.add(operation); } CampaignCriterionReturnValue result = campaignCriterionService.mutate(operations .toArray(new CampaignCriterionOperation[operations.size()])); // Display campaigns. for (CampaignCriterion campaignCriterion : result.getValue()) { System.out.printf("Campaign criterion with campaign id '%s', criterion id '%s', " + "and type '%s' was added.\n", campaignCriterion.getCampaignId(), campaignCriterion .getCriterion().getId(), campaignCriterion.getCriterion().getCriterionType()); } } }
[ "jradcliff@google.com" ]
jradcliff@google.com
67e7aa7598bb48a5c0f765721c22220c644ba04b
64c495510a349aac8ca67cab242ca5d49c6cca9e
/app/src/main/java/com/nohttp/download/SyncDownloadExecutor.java
74e7047ab85e179c537001b1bed7caddca6781c2
[]
no_license
payencai/YunCheBao
6b303e1ccc74f85a168c948ddd796785758e010f
6870976cdda81a4cdf6835733c9d04b4c6c5478b
refs/heads/master
2020-04-15T18:11:04.702963
2019-06-20T10:50:48
2019-06-20T10:50:48
164,904,559
1
0
null
null
null
null
UTF-8
Java
false
false
1,312
java
/* * Copyright © Yan Zhenjie. 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.nohttp.download; import com.nohttp.NoHttp; /** * Created by Yan Zhenjie on 2016/10/12. */ public enum SyncDownloadExecutor { INSTANCE, AsyncRequestExecutor; private Downloader mDownloader; SyncDownloadExecutor() { mDownloader = new Downloader(NoHttp.getNetworkExecutor()); } /** * Start a download. * * @param what what. * @param downloadRequest {@link DownloadRequest}. * @param listener accept various download status callback.. */ public void execute(int what, DownloadRequest downloadRequest, DownloadListener listener) { mDownloader.download(what, downloadRequest, listener); } }
[ "771548229@qq.com" ]
771548229@qq.com
25872880f685576af9da98501a7fb81cfeb6846d
5b9a04d3c911c16aba63258d48606d6ea364a6da
/distribution_inventory/modules/inventory/app/dto/product_inventory/ProductInventoryDetailDto.java
a28e80213231991d396692d7b2d755e98761844b
[ "Apache-2.0" ]
permissive
yourant/repository1
40fa5ce602bbcad4e6f61ad6eb1330cfe966f780
9ab74a2dfecc3ce60a55225e39597e533975a465
refs/heads/master
2021-12-15T04:22:23.009473
2017-07-28T06:06:35
2017-07-28T06:06:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,579
java
package dto.product_inventory; /** * @author longhuashen * @since 2016/12/13 */ public class ProductInventoryDetailDto { private String account; private String sku; private Integer warehouseId; private String warehouseName; private Integer isGift; private Integer expirationDateSort;// 是否需要按照变更时间排序,0:asc,1:desc,null:默认排序 private Integer moreThan; public String getSku() { return sku; } public void setSku(String sku) { this.sku = sku; } public Integer getWarehouseId() { return warehouseId; } public void setWarehouseId(Integer warehouseId) { this.warehouseId = warehouseId; } public String getAccount() { return account; } public void setAccount(String account) { this.account = account; } public String getWarehouseName() { return warehouseName; } public void setWarehouseName(String warehouseName) { this.warehouseName = warehouseName; } public Integer getExpirationDateSort() { return expirationDateSort; } public void setExpirationDateSort(Integer expirationDateSort) { this.expirationDateSort = expirationDateSort; } public Integer getIsGift() { return isGift; } public void setIsGift(Integer isGift) { this.isGift = isGift; } public Integer getMoreThan() { return moreThan; } public void setMoreThan(Integer moreThan) { this.moreThan = moreThan; } }
[ "3002781863@qq.com" ]
3002781863@qq.com
ab1d2ee1b5694a98090bb58fa337c4bc66ca7cd2
5fd010782dad2fab44b0a11fd6069ef16edc6b6e
/02_JAVA_EE/PERSISTENCE/JPA_EXAMPLE_ANNOTATIONS/src/courses/hibernate/service/AccountTransactionService.java
d82064bfd255927c414b4b268f58706346edde02
[]
no_license
harrhys/ECLIPSE_WS
49c3c5eb7cde2994cfcc59007288a0d10a47b130
3acfcad03a1c2020f4ec45d26dd163dc9bde69e8
refs/heads/master
2022-11-30T09:58:37.640705
2020-08-13T04:05:24
2020-08-13T04:05:24
276,666,955
0
0
null
null
null
null
UTF-8
Java
false
false
1,024
java
package courses.hibernate.service; import courses.hibernate.dao.AccountTransactionDAO; import courses.hibernate.vo.AccountTransaction; /** * Service layer for Account Transaction */ public class AccountTransactionService { AccountTransactionDAO accountTransactionDAO = new AccountTransactionDAO(); /** * Create a new account transaction or update an existing one * * @param accountTransaction * account transaction to be persisted */ public void saveOrUpdateAccountTransaction( AccountTransaction accountTransaction) { accountTransactionDAO .saveOrUpdateAccountTransaction(accountTransaction); } /** * Retrieve an account transaction * * @param accountTransactionId * identifier of the account transaction to be retrieved * @return accountTransaction represented by the identifier provided */ public AccountTransaction getAccountTransaction(long accountTransactionId) { return accountTransactionDAO .getAccountTransaction(accountTransactionId); } }
[ "harrhys@gmail.com" ]
harrhys@gmail.com
298b309353345661ea29890dea277ed57d0a4716
99c7920038f551b8c16e472840c78afc3d567021
/aliyun-java-sdk-dts-v5/src/main/java/com/aliyuncs/v5/dts/model/v20200101/DescribeSubscriptionInstanceStatusResponse.java
4ddcee638266c313ba8652e0f731651b5f0b50c1
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk-v5
9fa211e248b16c36d29b1a04662153a61a51ec88
0ece7a0ba3730796e7a7ce4970a23865cd11b57c
refs/heads/master
2023-03-13T01:32:07.260745
2021-10-18T08:07:02
2021-10-18T08:07:02
263,800,324
4
2
NOASSERTION
2022-05-20T22:01:22
2020-05-14T02:58:50
Java
UTF-8
Java
false
false
7,371
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.v5.dts.model.v20200101; import java.util.List; import com.aliyuncs.v5.AcsResponse; import com.aliyuncs.v5.dts.transform.v20200101.DescribeSubscriptionInstanceStatusResponseUnmarshaller; import com.aliyuncs.v5.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DescribeSubscriptionInstanceStatusResponse extends AcsResponse { private String beginTimestamp; private String consumptionCheckpoint; private String consumptionClient; private String endTimestamp; private String errMessage; private String payType; private String requestId; private String status; private String subscribeTopic; private String subscriptionInstanceID; private String subscriptionInstanceName; private String errCode; private String success; private String errorMessage; private String taskId; private List<SynchronousObject> subscriptionObject; private SourceEndpoint sourceEndpoint; private SubscriptionDataType subscriptionDataType; private SubscriptionHost subscriptionHost; public String getBeginTimestamp() { return this.beginTimestamp; } public void setBeginTimestamp(String beginTimestamp) { this.beginTimestamp = beginTimestamp; } public String getConsumptionCheckpoint() { return this.consumptionCheckpoint; } public void setConsumptionCheckpoint(String consumptionCheckpoint) { this.consumptionCheckpoint = consumptionCheckpoint; } public String getConsumptionClient() { return this.consumptionClient; } public void setConsumptionClient(String consumptionClient) { this.consumptionClient = consumptionClient; } public String getEndTimestamp() { return this.endTimestamp; } public void setEndTimestamp(String endTimestamp) { this.endTimestamp = endTimestamp; } public String getErrMessage() { return this.errMessage; } public void setErrMessage(String errMessage) { this.errMessage = errMessage; } public String getPayType() { return this.payType; } public void setPayType(String payType) { this.payType = payType; } public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } public String getSubscribeTopic() { return this.subscribeTopic; } public void setSubscribeTopic(String subscribeTopic) { this.subscribeTopic = subscribeTopic; } public String getSubscriptionInstanceID() { return this.subscriptionInstanceID; } public void setSubscriptionInstanceID(String subscriptionInstanceID) { this.subscriptionInstanceID = subscriptionInstanceID; } public String getSubscriptionInstanceName() { return this.subscriptionInstanceName; } public void setSubscriptionInstanceName(String subscriptionInstanceName) { this.subscriptionInstanceName = subscriptionInstanceName; } public String getErrCode() { return this.errCode; } public void setErrCode(String errCode) { this.errCode = errCode; } public String getSuccess() { return this.success; } public void setSuccess(String success) { this.success = success; } public String getErrorMessage() { return this.errorMessage; } public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public String getTaskId() { return this.taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } public List<SynchronousObject> getSubscriptionObject() { return this.subscriptionObject; } public void setSubscriptionObject(List<SynchronousObject> subscriptionObject) { this.subscriptionObject = subscriptionObject; } public SourceEndpoint getSourceEndpoint() { return this.sourceEndpoint; } public void setSourceEndpoint(SourceEndpoint sourceEndpoint) { this.sourceEndpoint = sourceEndpoint; } public SubscriptionDataType getSubscriptionDataType() { return this.subscriptionDataType; } public void setSubscriptionDataType(SubscriptionDataType subscriptionDataType) { this.subscriptionDataType = subscriptionDataType; } public SubscriptionHost getSubscriptionHost() { return this.subscriptionHost; } public void setSubscriptionHost(SubscriptionHost subscriptionHost) { this.subscriptionHost = subscriptionHost; } public static class SynchronousObject { private String databaseName; private String wholeDatabase; private List<String> tableList; public String getDatabaseName() { return this.databaseName; } public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } public String getWholeDatabase() { return this.wholeDatabase; } public void setWholeDatabase(String wholeDatabase) { this.wholeDatabase = wholeDatabase; } public List<String> getTableList() { return this.tableList; } public void setTableList(List<String> tableList) { this.tableList = tableList; } } public static class SourceEndpoint { private String instanceID; private String instanceType; public String getInstanceID() { return this.instanceID; } public void setInstanceID(String instanceID) { this.instanceID = instanceID; } public String getInstanceType() { return this.instanceType; } public void setInstanceType(String instanceType) { this.instanceType = instanceType; } } public static class SubscriptionDataType { private Boolean dDL; private Boolean dML; public Boolean getDDL() { return this.dDL; } public void setDDL(Boolean dDL) { this.dDL = dDL; } public Boolean getDML() { return this.dML; } public void setDML(Boolean dML) { this.dML = dML; } } public static class SubscriptionHost { private String privateHost; private String publicHost; private String vPCHost; public String getPrivateHost() { return this.privateHost; } public void setPrivateHost(String privateHost) { this.privateHost = privateHost; } public String getPublicHost() { return this.publicHost; } public void setPublicHost(String publicHost) { this.publicHost = publicHost; } public String getVPCHost() { return this.vPCHost; } public void setVPCHost(String vPCHost) { this.vPCHost = vPCHost; } } @Override public DescribeSubscriptionInstanceStatusResponse getInstance(UnmarshallerContext context) { return DescribeSubscriptionInstanceStatusResponseUnmarshaller.unmarshall(this, context); } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
af7a63a6872935b1d019a4cec4fd7a3e0ef9d92d
1c53d5257ea7be9450919e6b9e0491944a93ba80
/merge-scenarios/glide/a93a9410a-library-src-main-java-com-bumptech-glide-GlideBuilder/expected.java
6eec8afb75623fd1f040ed7558d1720ce647a1f5
[]
no_license
anonyFVer/mastery-material
89062928807a1f859e9e8b9a113b2d2d123dc3f1
db76ee571b84be5db2d245f3b593b29ebfaaf458
refs/heads/master
2023-03-16T13:13:49.798374
2021-02-26T04:19:19
2021-02-26T04:19:19
342,556,129
0
0
null
null
null
null
UTF-8
Java
false
false
5,399
java
package com.bumptech.glide; import android.content.Context; import android.graphics.Bitmap; import android.os.Build; import android.util.Log; import com.bumptech.glide.load.DecodeFormat; import com.bumptech.glide.load.engine.Engine; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPoolAdapter; import com.bumptech.glide.load.engine.bitmap_recycle.ByteArrayPool; import com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool; import com.bumptech.glide.load.engine.bitmap_recycle.LruByteArrayPool; import com.bumptech.glide.load.engine.cache.DiskCache; import com.bumptech.glide.load.engine.cache.InternalCacheDiskCacheFactory; import com.bumptech.glide.load.engine.cache.LruResourceCache; import com.bumptech.glide.load.engine.cache.MemoryCache; import com.bumptech.glide.load.engine.cache.MemorySizeCalculator; import com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor; import java.util.Collections; import java.util.concurrent.ExecutorService; public class GlideBuilder { private static final String TAG = "Glide"; private final Context context; private Engine engine; private BitmapPool bitmapPool; private ByteArrayPool byteArrayPool; private MemoryCache memoryCache; private ExecutorService sourceService; private ExecutorService diskCacheService; private DecodeFormat decodeFormat; private DiskCache.Factory diskCacheFactory; private MemorySizeCalculator memorySizeCalculator; public GlideBuilder(Context context) { this.context = context.getApplicationContext(); } public GlideBuilder setBitmapPool(BitmapPool bitmapPool) { this.bitmapPool = bitmapPool; return this; } public GlideBuilder setByteArrayPool(ByteArrayPool byteArrayPool) { this.byteArrayPool = byteArrayPool; return this; } public GlideBuilder setMemoryCache(MemoryCache memoryCache) { this.memoryCache = memoryCache; return this; } @Deprecated public GlideBuilder setDiskCache(final DiskCache diskCache) { return setDiskCache(new DiskCache.Factory() { @Override public DiskCache build() { return diskCache; } }); } public GlideBuilder setDiskCache(DiskCache.Factory diskCacheFactory) { this.diskCacheFactory = diskCacheFactory; return this; } public GlideBuilder setResizeService(ExecutorService service) { this.sourceService = service; return this; } public GlideBuilder setDiskCacheService(ExecutorService service) { this.diskCacheService = service; return this; } public GlideBuilder setDecodeFormat(DecodeFormat decodeFormat) { if (DecodeFormat.REQUIRE_ARGB_8888 && decodeFormat != DecodeFormat.PREFER_ARGB_8888) { this.decodeFormat = DecodeFormat.PREFER_ARGB_8888; if (Log.isLoggable(TAG, Log.WARN)) { Log.w(TAG, "Unsafe to use RGB_565 on KitKat or Lollipop, ignoring setDecodeFormat"); } } else { this.decodeFormat = decodeFormat; } return this; } public GlideBuilder setMemorySizeCalculator(MemorySizeCalculator.Builder builder) { return setMemorySizeCalculator(builder.build()); } public GlideBuilder setMemorySizeCalculator(MemorySizeCalculator calculator) { this.memorySizeCalculator = calculator; return this; } GlideBuilder setEngine(Engine engine) { this.engine = engine; return this; } Glide createGlide() { if (sourceService == null) { final int cores = Math.max(1, Runtime.getRuntime().availableProcessors()); sourceService = new FifoPriorityThreadPoolExecutor("source", cores); } if (diskCacheService == null) { diskCacheService = new FifoPriorityThreadPoolExecutor("disk-cache", 1); } if (memorySizeCalculator == null) { memorySizeCalculator = new MemorySizeCalculator.Builder(context).build(); } if (bitmapPool == null) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { int size = memorySizeCalculator.getBitmapPoolSize(); if (DecodeFormat.REQUIRE_ARGB_8888) { bitmapPool = new LruBitmapPool(size, Collections.singleton(Bitmap.Config.ARGB_8888)); } else { bitmapPool = new LruBitmapPool(size); } } else { bitmapPool = new BitmapPoolAdapter(); } } if (byteArrayPool == null) { byteArrayPool = new LruByteArrayPool(); } if (memoryCache == null) { memoryCache = new LruResourceCache(memorySizeCalculator.getMemoryCacheSize()); } if (diskCacheFactory == null) { diskCacheFactory = new InternalCacheDiskCacheFactory(context); } if (engine == null) { engine = new Engine(memoryCache, diskCacheFactory, diskCacheService, sourceService); } if (decodeFormat == null) { decodeFormat = DecodeFormat.DEFAULT; } return new Glide(engine, memoryCache, bitmapPool, byteArrayPool, context, decodeFormat); } }
[ "namasikanam@gmail.com" ]
namasikanam@gmail.com
6e7ef4468a62ae0d478dc69ebcb2c3cee060e2fd
5759a9935244669aa7c05a8847e5ab524e7b5c44
/src/com/brainflow/modes/ImageCanvasMode.java
1c7854382061a6ba6021da247ccf85deff8e6cf1
[]
no_license
devillvalle/brainflow
6da65c6262c5f459cddf6fc076417ca6ce4f97a4
8264888f5fb9a37db6edd43fb45b9323f2cfc7f7
refs/heads/master
2021-01-10T12:01:02.128634
2009-02-07T19:39:13
2009-02-07T19:39:13
53,578,163
0
0
null
null
null
null
UTF-8
Java
false
false
2,258
java
package com.brainflow.modes; import com.brainflow.core.BrainCanvas; import com.brainflow.core.IBrainCanvas; import java.awt.event.*; /** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: </p> * * @author Bradley Buchsbaum * @version 1.0 */ public abstract class ImageCanvasMode implements MouseListener, MouseMotionListener, KeyListener { protected BrainCanvas canvas; public void setImageCanvas(BrainCanvas _canvas) { canvas = _canvas; } public IBrainCanvas getImageCanvas() { return canvas; } public boolean stillInterestedBefore(MouseEvent event, MouseAction action) { return true; } public boolean stillInterestedAfter(MouseEvent event, MouseAction action) { return true; } public void mouseClicked(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void mousePressed(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void mouseReleased(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void mouseEntered(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void mouseExited(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void mouseDragged(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void mouseMoved(MouseEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void keyTyped(KeyEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void keyPressed(KeyEvent e) { //To change body of implemented methods use File | Settings | File Templates. } public void keyReleased(KeyEvent e) { //To change body of implemented methods use File | Settings | File Templates. } }
[ "brad.buchsbaum@922ecd08-ad19-0410-8a94-01093a00bd73" ]
brad.buchsbaum@922ecd08-ad19-0410-8a94-01093a00bd73
fae5d74d2ef8dd08c496c48b9793f975794f76bd
922f16bc71ab100b64337667b7db7428737c0ada
/src/main/java/paulevs/betternether/blocks/BlockWillowBranch.java
56fd5b3c9d18c5c38c8646ba58b13e912ed59ca2
[]
no_license
AsterixxxGallier/BetterNether
966042ae088dedba8f6add6df221f768062b8d49
08393ec39e453e7c1610aa2597917feb1bd3db1f
refs/heads/master
2023-01-04T21:55:06.327586
2020-10-02T13:40:08
2020-10-02T13:40:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,353
java
package paulevs.betternether.blocks; import java.util.List; import java.util.function.ToIntFunction; import com.google.common.collect.Lists; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; import net.minecraft.block.MaterialColor; import net.minecraft.block.ShapeContext; import net.minecraft.item.ItemStack; import net.minecraft.loot.context.LootContext; import net.minecraft.state.StateManager; import net.minecraft.state.property.EnumProperty; import net.minecraft.util.StringIdentifiable; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; import net.minecraft.util.shape.VoxelShape; import net.minecraft.world.BlockView; import net.minecraft.world.WorldAccess; import paulevs.betternether.blocks.materials.Materials; import paulevs.betternether.registry.BlocksRegistry; public class BlockWillowBranch extends BlockBaseNotFull { private static final VoxelShape V_SHAPE = Block.createCuboidShape(4, 0, 4, 12, 16, 12); public static final EnumProperty<WillowBranchShape> SHAPE = EnumProperty.of("shape", WillowBranchShape.class); public BlockWillowBranch() { super(Materials.makeWood(MaterialColor.RED_TERRACOTTA).nonOpaque().noCollision().lightLevel(getLuminance())); this.setRenderLayer(BNRenderLayer.CUTOUT); this.setDropItself(false); this.setDefaultState(getStateManager().getDefaultState().with(SHAPE, WillowBranchShape.MIDDLE)); } protected static ToIntFunction<BlockState> getLuminance() { return (state) -> { return state.get(SHAPE) == WillowBranchShape.END ? 15 : 0; }; } @Environment(EnvType.CLIENT) public float getAmbientOcclusionLightLevel(BlockState state, BlockView view, BlockPos pos) { return 1.0F; } @Override protected void appendProperties(StateManager.Builder<Block, BlockState> stateManager) { stateManager.add(SHAPE); } @Override public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext ePos) { return V_SHAPE; } @Override public BlockState getStateForNeighborUpdate(BlockState state, Direction facing, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) { if (world.isAir(pos.up())) return Blocks.AIR.getDefaultState(); else return state; } public enum WillowBranchShape implements StringIdentifiable { END("end"), MIDDLE("middle"); final String name; WillowBranchShape(String name) { this.name = name; } @Override public String asString() { return name; } @Override public String toString() { return name; } } @Override @Environment(EnvType.CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) { return new ItemStack(state.get(SHAPE) == WillowBranchShape.END ? BlocksRegistry.WILLOW_TORCH : BlocksRegistry.WILLOW_LEAVES); } @Override public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) { if (state.get(SHAPE) == WillowBranchShape.END) { return Lists.newArrayList(new ItemStack(BlocksRegistry.WILLOW_TORCH)); } else { return Lists.newArrayList(); } } }
[ "paulevs@yandex.ru" ]
paulevs@yandex.ru
d7e77dfec7ea22fc16879a8b6d9e14ea4d6f07e2
96d2b99c3514a59668aabca0cf91b5990fc9c964
/webapp_rms/src/main/java/com/e9cloud/mybatis/service/AxbRateService.java
d1f5ec92466533511d4bcb438363e4d7cd04261e
[]
no_license
donggua131432/33e9
6599590a2c8eb5ee53ac235a6b50df88021c35af
96089f5001828c10dbf5657a3352326055dd2802
refs/heads/master
2020-04-13T11:58:28.053544
2018-12-26T15:10:17
2018-12-26T15:10:17
163,189,038
0
0
null
null
null
null
UTF-8
Java
false
false
955
java
package com.e9cloud.mybatis.service; import com.e9cloud.core.page.Page; import com.e9cloud.core.page.PageWrapper; import com.e9cloud.mybatis.base.IBaseService; import com.e9cloud.mybatis.domain.AxbRate; import com.e9cloud.mybatis.domain.RestRate; import com.e9cloud.mybatis.domain.UserAdmin; import java.util.List; /** * Created by admin on 2017/4/18. */ public interface AxbRateService extends IBaseService { /** * 根据费率ID查找开发接口费率信息 * @param feeId 费率ID * @return FeeRate */ AxbRate findAxbRateByFeeId(String feeId); void saveAxbRate(AxbRate axbRate); /** * 分页联表查询费率信息 * @param page * @return */ PageWrapper pageAxbRateUnion(Page page); /** * 费率信息联合查询 */ List<AxbRate> selectAxbRateList(UserAdmin userAdmin); /** * 修改费率信息 */ void updateAxbRate(AxbRate axbRate); }
[ "donggua131432@sina.cn" ]
donggua131432@sina.cn
fa17b2defd439a5b8eb2329b48442ada7493fcad
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2019/8/NoChangeWriteTransactionTest.java
6fe7db731fa86767aa87ccb95056ae196d1f9177
[]
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
2,596
java
/* * Copyright (c) 2002-2019 "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.kernel.impl.api.state; import org.junit.jupiter.api.Test; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.Transaction; import org.neo4j.kernel.internal.GraphDatabaseAPI; import org.neo4j.storageengine.api.TransactionIdStore; import org.neo4j.test.TestLabels; import org.neo4j.test.extension.ImpermanentDbmsExtension; import org.neo4j.test.extension.Inject; import static org.junit.jupiter.api.Assertions.assertEquals; @ImpermanentDbmsExtension class NoChangeWriteTransactionTest { @Inject private GraphDatabaseAPI db; @Test void shouldIdentifyTransactionWithNetZeroChangesAsReadOnly() { // GIVEN a transaction that has seen some changes, where all those changes result in a net 0 change set // a good way of producing such state is to add a label to an existing node, and then remove it. TransactionIdStore txIdStore = db.getDependencyResolver().resolveDependency( TransactionIdStore.class ); long startTxId = txIdStore.getLastCommittedTransactionId(); Node node = createEmptyNode( db ); try ( Transaction tx = db.beginTx() ) { node.addLabel( TestLabels.LABEL_ONE ); node.removeLabel( TestLabels.LABEL_ONE ); tx.commit(); } // WHEN closing that transaction // THEN it should not have been committed assertEquals( startTxId + 2, txIdStore.getLastCommittedTransactionId(), "Expected last txId to be what it started at + 2 (1 for the empty node, and one for the label)" ); } private Node createEmptyNode( GraphDatabaseService db ) { try ( Transaction tx = db.beginTx() ) { Node node = db.createNode(); tx.commit(); return node; } } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
64b48fad453281f047d76adb4b6f5f45813cc598
253dcf00c8f9302335688016dce86c91c4e21109
/owner/src/test/java/org/aeonbits/owner/multithread/ThreadBase.java
19a32fbd1b7c81c19354d4877243df6a113e085d
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cybernetics/owner
74aa7f31a18191a059b019c706cd36ac1e8a0b3e
89bb9ff2640e1468e49150945d81c4412430869d
refs/heads/master
2020-12-26T03:43:39.819448
2013-12-09T21:26:08
2013-12-09T21:26:08
16,543,828
1
0
null
null
null
null
UTF-8
Java
false
false
1,807
java
/* * Copyright (c) 2013, Luigi R. Viggiano * All rights reserved. * * This software is distributable under the BSD license. * See the terms of the BSD license in the documentation provided with this software. */ package org.aeonbits.owner.multithread; import org.aeonbits.owner.Config; import org.aeonbits.owner.UtilTest.MyCloneable; import java.util.ArrayList; import java.util.List; import static org.aeonbits.owner.UtilTest.debug; abstract class ThreadBase<T extends Config> extends Thread implements MyCloneable { private static long counter = 0; private final long uniqueThreadId = ++counter; final T cfg; final Object lock; final int loops; final List<Throwable> errors = new ArrayList<Throwable>(); ThreadBase(T cfg, Object lock, int loops) { this.cfg = cfg; this.lock = lock; this.loops = loops; } @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } @Override public void run() { synchronized (lock) { try { lock.wait(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); return; } } for (int i = 0; i < loops; i++) { debug("%s[%d] started loop #%d.\n", getClass().getName(), uniqueThreadId, i); try { execute(); } catch (Throwable throwable) { debug("%s[%d] thrown an error in loop #%d.\n", getClass().getName(), uniqueThreadId, i); errors.add(throwable); } yield(); debug("%s[%d] completed loop #%d.\n", getClass().getName(), uniqueThreadId, i); } } abstract void execute() throws Throwable; }
[ "luigi.viggiano@newinstance.it" ]
luigi.viggiano@newinstance.it
864e4c476415630937edd83ec8b8d9d27d76956b
0779681f8169bbfa176b6f8dd87e2f9b62fe1dd8
/src/main/java/com/zapcloudstudios/enderflight/block/BlockEnderFlightContainer.java
7d26288b200e83b7e444a718405ac17c8ecbadbc
[]
no_license
ZapCloud/EnderFlight
c84e54e4219eb5933961d5074b70e420b71177f6
fd8db0243e08e819b80db66e66ff5a312118d3a4
refs/heads/master
2021-01-18T22:19:43.129981
2014-12-01T21:11:42
2014-12-01T21:11:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,121
java
package com.zapcloudstudios.enderflight.block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import com.zapcloudstudios.enderflight.EnderFlight; import com.zapcloudstudios.enderflight.ITipItem; import com.zapcloudstudios.enderflight.client.IRenderableBlock; import com.zapcloudstudios.enderflight.client.render.block.RenderBlockEnderFlight; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public abstract class BlockEnderFlightContainer extends BlockContainer implements ITipItem, IRenderableBlock { private RenderBlockEnderFlight render = null; private Class<? extends RenderBlockEnderFlight> renderClass = null; private boolean shouldRender3D = true; private String itemTexture = null; protected BlockEnderFlightContainer(Material material) { super(material); } @Override public int getRenderType() { if (this.shouldRender3D()) { return EnderFlight.block3dItemRenderId; } else { return EnderFlight.block2dItemRenderId; } } public BlockEnderFlightContainer setShouldRender3D(boolean shouldRender3D) { this.shouldRender3D = shouldRender3D; return this; } @Override public boolean shouldRender3D() { return this.shouldRender3D; } @Override @SideOnly(Side.CLIENT) public String getItemIconName() { return this.itemTexture; } @Override public Class<? extends RenderBlockEnderFlight> getRenderer() { return this.renderClass; } public BlockEnderFlightContainer setRenderer(Class<? extends RenderBlockEnderFlight> renderer) { this.renderClass = renderer; return this; } @Override public RenderBlockEnderFlight getRendererInstance() { if (this.render == null) { Class<? extends RenderBlockEnderFlight> rclass = this.getRenderer(); if (rclass != null) { try { this.render = rclass.newInstance(); } catch (InstantiationException | IllegalAccessException e) { } } } return this.render; } public BlockEnderFlightContainer setBlockItemTextureName(String name) { this.itemTexture = name; return this; } }
[ "eeky.sam@gmail.com" ]
eeky.sam@gmail.com
33381d046e5739828bfd9b52a0c55fd45622fa47
7296f29f31a786344c305f12192e63fefd520b4c
/okhttp-tests/src/test/java/okhttp3/AddressTest.java
7a1b7f1bd104ac3a3955060230fe2be3547a6fb1
[ "Apache-2.0" ]
permissive
warmcoin/okhttp
d3b872b6b8edc2d1f91291fe69385a8e6ba80c5b
8c3709689650eec64ecab12a9a6e9a667fc82062
refs/heads/master
2020-04-27T06:24:55.565581
2019-03-04T12:53:26
2019-03-04T12:53:26
174,107,058
1
0
Apache-2.0
2019-03-06T08:48:45
2019-03-06T08:48:45
null
UTF-8
Java
false
false
2,918
java
/* * Copyright (C) 2014 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3; import java.net.Proxy; import java.util.List; import javax.net.SocketFactory; import okhttp3.internal.Util; import okhttp3.internal.http.RecordingProxySelector; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; public final class AddressTest { private Dns dns = Dns.SYSTEM; private SocketFactory socketFactory = SocketFactory.getDefault(); private Authenticator authenticator = Authenticator.NONE; private List<Protocol> protocols = Util.immutableList(Protocol.HTTP_1_1); private List<ConnectionSpec> connectionSpecs = Util.immutableList(ConnectionSpec.MODERN_TLS); private RecordingProxySelector proxySelector = new RecordingProxySelector(); @Test public void equalsAndHashcode() throws Exception { Address a = new Address("square.com", 80, dns, socketFactory, null, null, null, authenticator, null, protocols, connectionSpecs, proxySelector); Address b = new Address("square.com", 80, dns, socketFactory, null, null, null, authenticator, null, protocols, connectionSpecs, proxySelector); assertEquals(a, b); assertEquals(a.hashCode(), b.hashCode()); } @Test public void differentProxySelectorsAreDifferent() throws Exception { Address a = new Address("square.com", 80, dns, socketFactory, null, null, null, authenticator, null, protocols, connectionSpecs, new RecordingProxySelector()); Address b = new Address("square.com", 80, dns, socketFactory, null, null, null, authenticator, null, protocols, connectionSpecs, new RecordingProxySelector()); assertNotEquals(a, b); } @Test public void addressToString() throws Exception { Address address = new Address("square.com", 80, dns, socketFactory, null, null, null, authenticator, null, protocols, connectionSpecs, proxySelector); assertEquals("Address{square.com:80, proxySelector=RecordingProxySelector}", address.toString()); } @Test public void addressWithProxyToString() throws Exception { Address address = new Address("square.com", 80, dns, socketFactory, null, null, null, authenticator, Proxy.NO_PROXY, protocols, connectionSpecs, proxySelector); assertEquals("Address{square.com:80, proxy=" + Proxy.NO_PROXY + "}", address.toString()); } }
[ "jwilson@squareup.com" ]
jwilson@squareup.com
1151eaf513bbfa44820cb417168c83c49237b662
d38afb4d31e0574dd2086fc84e5d664aecc77f5c
/com/planet_ink/coffee_mud/WebMacros/AccountNext.java
ff775f368576c6c2b28bdf45a0f78441368cb96e
[ "Apache-2.0" ]
permissive
Dboykey/CoffeeMud
c4775fc6ec9e910ff7ff8523c04567a580a9529e
844704805d3de26a16b83bd07552d6ae82391208
refs/heads/master
2022-04-16T07:07:22.004847
2020-04-06T17:55:33
2020-04-06T17:55:33
255,074,559
0
1
Apache-2.0
2020-04-12T12:10:07
2020-04-12T12:10:06
null
UTF-8
Java
false
false
2,744
java
package com.planet_ink.coffee_mud.WebMacros; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import com.planet_ink.coffee_web.interfaces.*; import java.util.*; /* Copyright 2010-2020 Bo Zimmerman Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ public class AccountNext extends StdWebMacro { @Override public String name() { return "AccountNext"; } @Override public String runMacro(final HTTPRequest httpReq, final String parm, final HTTPResponse httpResp) { if(!CMProps.getBoolVar(CMProps.Bool.MUDSTARTED)) return CMProps.getVar(CMProps.Str.MUDSTATUS); final java.util.Map<String,String> parms=parseParms(parm); final String last=httpReq.getUrlParameter("ACCOUNT"); if(parms.containsKey("RESET")) { if(last!=null) httpReq.removeUrlParameter("ACCOUNT"); return ""; } String lastID=""; String sort=httpReq.getUrlParameter("SORTBY"); if(sort==null) sort=""; final Enumeration<PlayerAccount> pe=CMLib.players().accounts(sort,httpReq.getRequestObjects()); for(;pe.hasMoreElements();) { final PlayerAccount account=pe.nextElement(); if((last==null)||((last.length()>0)&&(last.equals(lastID))&&(!account.getAccountName().equals(lastID)))) { httpReq.addFakeUrlParameter("ACCOUNT",account.getAccountName()); return ""; } lastID=account.getAccountName(); } httpReq.addFakeUrlParameter("ACCOUNT",""); if(parms.containsKey("EMPTYOK")) return "<!--EMPTY-->"; return " @break@"; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
6fbdeb2654d2fc0974d1c9688e3a8262bc395c1d
3927258e502590626dd18034000e7cad5bb46af6
/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/ant/task/CodeGeneratorTask.java
8bc8d8e2539663ca39e9a17d55ac887cc3463154
[ "JSON", "Apache-2.0" ]
permissive
gauravbrills/aws-sdk-java
332f9cf1e357c3d889f753b348eb8d774a30f07c
09d91b14bfd6fbc81a04763d679e0f94377e9007
refs/heads/master
2021-01-21T18:15:06.060014
2016-06-11T18:12:40
2016-06-11T18:12:40
58,072,311
0
0
null
2016-05-04T17:52:28
2016-05-04T17:52:28
null
UTF-8
Java
false
false
7,238
java
/* * Copyright (c) 2016. Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.codegen.ant.task; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import com.amazonaws.codegen.internal.Jackson; import com.amazonaws.codegen.internal.Utils; import com.amazonaws.codegen.model.config.BasicCodeGenConfig; import com.amazonaws.codegen.model.config.customization.CustomizationConfig; import com.amazonaws.codegen.model.intermediate.ServiceExamples; import com.amazonaws.codegen.model.service.ServiceModel; /** * Ant task interface to generate the Java client code from a C2J model */ public class CodeGeneratorTask { private static final String P_MODEL_FILE = "modelFile"; private static final String P_EXAMPLES_FILE = "examplesFile"; private static final String P_CODEGEN_CONFIG_FILE = "codeGenConfigFile"; private static final String P_CUSTOMIZATION_CONFIG_FILE = "customizationConfigFile"; private static final String P_OUTPUT_DIRECTORY = "outputDirectory"; private static final String MODEL_DIR_NAME = "models"; private static final String MODEL_FILE_CLASSPATH_LOCATION = Utils.getRequiredSystemProperty(P_MODEL_FILE, "No C2j Model available for code generation. " + "Use -DmodelFile={path} to specify the C2j model file."); public static void main(String[] args) throws IOException { final String outputDirectory = Utils.getRequiredSystemProperty(P_OUTPUT_DIRECTORY, "Use -DoutputDirectory={path} to specify the output directory for the code generator."); final ServiceModel serviceModel = loadConfigurationModel( ServiceModel.class, MODEL_FILE_CLASSPATH_LOCATION); final String fileNamePrefix = serviceModel.getMetadata() .getEndpointPrefix() + "-" + serviceModel.getMetadata().getApiVersion(); CodeGenerator codeGenerator = new CodeGenerator( serviceModel, getServiceExamples(), getCodeGenConfig(), getCustomizationConfig(), outputDirectory, fileNamePrefix); codeGenerator.execute(); snapshotServiceModelFile( fileNamePrefix, outputDirectory); } static File getModelDirectory(String outputDirectory) { File dir = new File(outputDirectory, MODEL_DIR_NAME); Utils.createDirectory(dir); return dir; } /** Snapshots the original C2J model file into "c2j.json" */ private static void snapshotServiceModelFile(final String fileNamePrefix, final String outputDirectory) throws IOException { try (InputStream is = Utils.getRequiredResourceAsStream( CodeGeneratorTask.class, MODEL_FILE_CLASSPATH_LOCATION)) { byte[] buf = new byte[1024 * 2]; final File modelDir = getModelDirectory(outputDirectory); try (FileOutputStream fos = new FileOutputStream( new File(modelDir, fileNamePrefix + "-model.json"))) { int len = is.read(buf); while (len > -1) { fos.write(buf, 0, len); len = is.read(buf); } } } } private static BasicCodeGenConfig getCodeGenConfig() { String location = Utils.getRequiredSystemProperty(P_CODEGEN_CONFIG_FILE, "No codegen.config file available for code generation. " + "Use -DcodeGenConfigFile={path} to specify the codegen.config file."); return loadConfigurationModel(BasicCodeGenConfig.class, location); } private static CustomizationConfig getCustomizationConfig() { return getCustomizationConfig(System.getProperty(P_CUSTOMIZATION_CONFIG_FILE)); } /** * Customization config is optional so load it if it's provided otherwise * just return the default configuration. */ private static CustomizationConfig getCustomizationConfig(String location) { if (Utils.isNullOrEmpty(location)) { location = "/customization.config"; if (CodeGeneratorTask.class.getResource(location) == null) { System.out.println("No customization.config file is specified"); return new CustomizationConfig(); } } return loadConfigurationModel(CustomizationConfig.class, location); } private static ServiceExamples getServiceExamples() { return getServiceExamples(Utils.getOptionalSystemProperty(P_EXAMPLES_FILE)); } /** * Retrieves service examples from the C2j source, if present. If not, * a no-op instance is returned which will effectively not be serialized * to disk by Jackson. * @param location location of the C2j service examples JSON file * @return service examples materialized from source JSON file or a * no-op instance if file does not exist. */ private static ServiceExamples getServiceExamples(final String location) { if (Utils.isNullOrEmpty(location)) { return new ServiceExamples(); } return loadConfigurationModel(ServiceExamples.class, location); } /** * Deserialize the contents of a given configuration file. * * @param clzz * Class to deserialize into * @param configurationFileLocation * Location of config file to load * @return Marshalled configuration class */ private static <T> T loadConfigurationModel(Class<T> clzz, String configurationFileLocation) { System.out.println("Loading config file " + configurationFileLocation); InputStream fileContents = null; try { fileContents = getRequiredResourceAsStream(configurationFileLocation); return Jackson.load(clzz, fileContents); } catch (IOException e) { System.err.println("Failed to read the configuration file " + configurationFileLocation); throw new RuntimeException(e); } finally { if (fileContents != null) { Utils.closeQuietly(fileContents); } } } /** * Return an InputStream of the specified resource, failing if it can't be found. * * @param location * Location of resource */ private static InputStream getRequiredResourceAsStream(String location) { return Utils.getRequiredResourceAsStream(CodeGeneratorTask.class, location); } }
[ "aws@amazon.com" ]
aws@amazon.com
a5d3f5205a1a011705927ab007e5e9db39ed667d
df41a39020627817e03ab17665c63c1150f15563
/bizcore/WEB-INF/demodata_core_src/com/test/demodata/loginhistory/CandidateLoginHistory.java
e222766d1d5ffb4388775da33f65155b472c6286
[]
no_license
doublechaintech/demodata-biz-suite
acec89b59cfb07196366b4c498b0a8476d827c38
57e4885370b89a2781bf107b26d444a717b8d17b
refs/heads/master
2022-12-14T05:19:06.244357
2020-03-17T06:17:42
2020-03-17T06:17:42
170,658,376
1
1
null
2022-12-08T22:29:55
2019-02-14T08:49:42
Java
UTF-8
Java
false
false
174
java
package com.test.demodata.loginhistory; import com.test.demodata.BaseCandidateEntity; public class CandidateLoginHistory extends BaseCandidateEntity<LoginHistory>{ }
[ "philip_chang@163.com" ]
philip_chang@163.com
0bb210bf692bc2cf35bac28bc22b293eac0fe154
095448842c9c36e9f93a2c27c3d617c74f6a66dd
/src/main/java/net/lemonmodel/patterns/parser/Absyn/PNP.java
ce51268dea7d98ad20df5e36a4827a098ac373ac
[ "Apache-2.0" ]
permissive
geolffrey/lemon.patterns
cbe67a6c8db3c102f85750e0c6d2f2deb2fbdf4b
279f7b6016a162880a66461b3973f1aad576aa5c
refs/heads/master
2023-09-01T03:00:23.352024
2018-07-27T15:01:08
2018-07-27T15:01:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
416
java
package net.lemonmodel.patterns.parser.Absyn; // Java Package generated by the BNF Converter. public abstract class PNP implements java.io.Serializable { public abstract <R,A> R accept(PNP.Visitor<R,A> v, A arg); public interface Visitor <R,A> { public R visit(net.lemonmodel.patterns.parser.Absyn.EPNPSimple p, A arg); public R visit(net.lemonmodel.patterns.parser.Absyn.EPNPComplex p, A arg); } }
[ "john@mccr.ae" ]
john@mccr.ae
ef81291b9ac5fd39739e25e4c682c65a63d47072
1ca9599356d80751f4cdb15ddebf424952151813
/dart-impl/src/main/java/com/jetbrains/lang/dart/DartElementType.java
1dcff4e003e1ea10547def0c90990f855f4495d3
[]
no_license
consulo/consulo-google-dart
59e460375bae07b44c8d9a7a855853ac668cf609
4782d6734aee6bdc19542ddf6a394393b8ebb469
refs/heads/master
2023-07-27T03:29:03.103937
2023-07-07T14:30:43
2023-07-07T14:30:43
10,568,294
0
0
null
null
null
null
UTF-8
Java
false
false
338
java
package com.jetbrains.lang.dart; import consulo.language.ast.IElementType; /** * Created by IntelliJ IDEA. * User: Maxim.Mossienko * Date: 10/12/11 * Time: 8:06 PM */ public class DartElementType extends IElementType { public DartElementType(String debug_description) { super(debug_description, DartLanguage.INSTANCE); } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
89a27b0d3639d75b999e3648043239d365f4579d
7ef841751c77207651aebf81273fcc972396c836
/astream/src/main/java/com/loki/astream/stubs/SampleClass1208.java
8a8e36fa7204307b6c8a43f10c9211d58a69e899
[]
no_license
SergiiGrechukha/ModuleApp
e28e4dd39505924f0d36b4a0c3acd76a67ed4118
00e22d51c8f7100e171217bcc61f440f94ab9c52
refs/heads/master
2022-05-07T13:27:37.704233
2019-11-22T07:11:19
2019-11-22T07:11:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
375
java
package com.loki.astream.stubs;import com.jenzz.pojobuilder.api.Builder;import com.jenzz.pojobuilder.api.Ignore; @Builder public class SampleClass1208 { @Ignore private SampleClass1209 sampleClass; public SampleClass1208(){ sampleClass = new SampleClass1209(); } public String getClassName() { return sampleClass.getClassName(); } }
[ "sergey.grechukha@gmail.com" ]
sergey.grechukha@gmail.com
c33b26bd3f5f48b5ce60b7572ebc013fe8177dd6
d7c5121237c705b5847e374974b39f47fae13e10
/airspan.netspan/src/main/java/Netspan/NBI_16_0/Backhaul/IBridgeTermRadioProfileDelete.java
96547eb142fa24c45a3b74edeccf6bd1d2fef8e6
[]
no_license
AirspanNetworks/SWITModules
8ae768e0b864fa57dcb17168d015f6585d4455aa
7089a4b6456621a3abd601cc4592d4b52a948b57
refs/heads/master
2022-11-24T11:20:29.041478
2020-08-09T07:20:03
2020-08-09T07:20:03
184,545,627
1
0
null
2022-11-16T12:35:12
2019-05-02T08:21:55
Java
UTF-8
Java
false
false
1,987
java
package Netspan.NBI_16_0.Backhaul; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "name" }) @XmlRootElement(name = "IBridgeTermRadioProfileDelete") public class IBridgeTermRadioProfileDelete { @XmlElement(name = "Name") protected List<String> name; /** * Gets the value of the name property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the name property. * * <p> * For example, to add a new item, do as follows: * <pre> * getName().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getName() { if (name == null) { name = new ArrayList<String>(); } return this.name; } }
[ "ggrunwald@ASIL-GGRUNWALD.airspan.com" ]
ggrunwald@ASIL-GGRUNWALD.airspan.com
72157419ae68d1be95435c577b5d17d99fea82ab
a484a3994e079fc2f340470a658e1797cd44e8de
/app/src/main/java/shangri/example/com/shangri/model/bean/request/addRuzhuBean.java
a049428e580c6c12d17fdb7c4e06aff1cd1fa724
[]
no_license
nmbwq/newLiveHome
2c4bef9b2bc0b83038dd91c7bf7a6a6a2c987437
fde0011f14e17ade627426935cd514fcead5096c
refs/heads/master
2020-07-12T20:33:23.502494
2019-08-28T09:55:52
2019-08-28T09:55:52
204,899,192
0
0
null
null
null
null
UTF-8
Java
false
false
680
java
package shangri.example.com.shangri.model.bean.request; /** * Created by Administrator on 2018/1/7. */ public class addRuzhuBean extends BaseBeen { private int type; private String name; private String telephone; public int getType() { return type; } public void setType(int type) { this.type = type; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTelephone() { return telephone; } public void setTelephone(String telephone) { this.telephone = telephone; } public addRuzhuBean() { } }
[ "1763312610@qq.com" ]
1763312610@qq.com
6ba12a8febd5f732332e01c14db532b2afe7270e
981df8aa31bf62db3b9b4e34b5833f95ef4bd590
/xworker_swt/src/main/java/xworker/swt/design/ItemInfo.java
b8a01925d45470fb06a08fd3e1ee3340b0313076
[ "Apache-2.0" ]
permissive
x-meta/xworker
638c7cd935f0a55d81f57e330185fbde9dce9319
430fba081a78b5d3871669bf6fcb1e952ad258b2
refs/heads/master
2022-12-22T11:44:10.363983
2021-10-15T00:57:10
2021-10-15T01:00:24
217,432,322
1
0
Apache-2.0
2022-12-12T23:21:16
2019-10-25T02:13:51
Java
UTF-8
Java
false
false
242
java
package xworker.swt.design; import org.xmeta.Thing; public class ItemInfo { public int index; public Thing itemThing; public ItemInfo(int index, Thing itemThing){ this.index = index; this.itemThing = itemThing; } }
[ "zhangyuxiang@tom.com" ]
zhangyuxiang@tom.com
8a5f88607d6dcb8d2d41f823694d67ee1aabe2b8
9b9b9b855eba93c8dd9e3c2997d53c6f4728bc5a
/src/kr/ac/kopo/과제/20200410/전혜원_과제_2060340007/Day03Exam02.java
15f9c604caff0e6cfd039033ba344f192b4e412e
[]
no_license
jhw-polytech/kopo_java
3508569a3021ffe584f107152ad659bd1c1dd9fd
191372687bdf78259789f472f8e948b6a91d1b6d
refs/heads/master
2022-12-06T13:47:35.461835
2020-08-17T13:38:32
2020-08-17T13:38:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,105
java
package kr.ac.kopo.day03.exam; import java.util.Scanner; /* 2. 4개의 정수를 입력받아 가장 큰수를 구하는 코드를 작성하시오. 정수는 각각 입력받아도 상관없습니다. 정수 4개를 입력하세요 : 89 4 222 6 89, 4, 222, 6 중 가장 큰수 : 222 */ public class Day03Exam02 { public static void main(String[] args) { int big1; int big2; Scanner sc = new Scanner(System.in); System.out.println("첫 번째 정수를 입력하세요: "); int num1 = sc.nextInt(); System.out.println("두 번째 정수를 입력하세요: "); int num2 = sc.nextInt(); System.out.println("세 번째 정수를 입력하세요: "); int num3 = sc.nextInt(); System.out.println("네 번째 정수를 입력하세요: "); int num4 = sc.nextInt(); //num1과 num2를 비교 if (num1>num2) { big1 = num1; } else { big1 = num2; } if (num3>num4) { big2 = num3; } else { big2 = num4; } if (big1>big2) { System.out.println(big1); } else { System.out.println(big2); } } }
[ "2060340007@office.kopo.ac.kr" ]
2060340007@office.kopo.ac.kr
d204f97db4c5bbba913db9172683f3fd61316854
6e47ca8b27d8df5fa51cfe24fcd5f22f8f14b45d
/apptentive/src/main/java/com/apptentive/android/sdk/conversation/ConversationMetadataLoadException.java
6c14178be7cae4e6035645c0f641286e40692422
[]
permissive
apptentive/apptentive-android
bbcaa9f39a5f081763a8e4d8fa944ca77a9afb09
91aebf3fa758edddd40924f06aecdf1be4f12683
refs/heads/master
2022-10-09T17:50:08.570575
2022-09-26T17:42:28
2022-09-26T17:42:28
2,466,190
43
35
BSD-3-Clause
2022-09-26T17:42:29
2011-09-27T07:51:41
Java
UTF-8
Java
false
false
224
java
package com.apptentive.android.sdk.conversation; public class ConversationMetadataLoadException extends Exception { public ConversationMetadataLoadException(String message, Throwable cause) { super(message, cause); } }
[ "a.lementuev@gmail.com" ]
a.lementuev@gmail.com
fe5d36e4619050f6b7d3bd6dcbc793747cbdb14a
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14122-17-19-MOEAD-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/XWikiHibernateStore_ESTest.java
60255ce42b6e9308cd0282a8aab96d7d88514578
[]
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
564
java
/* * This file was automatically generated by EvoSuite * Thu Apr 09 12:11:35 UTC 2020 */ package com.xpn.xwiki.store; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XWikiHibernateStore_ESTest extends XWikiHibernateStore_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
15494eab727780ee5d1f6a66c808af6a3102f883
0de3d7b27e4a7df87f8ce2c07357705acb1d01b2
/java/src/kr/ac/kopo/day200519/DirMain2.java
f480a56b73e8457be43cc84cf76c168d7390b1a6
[]
no_license
kimhyeju-a/kopo_java
1192c398d947e4791fd420cd210f79de19e510a9
9081c78d6c68ba665b4c39952ad2fe635fd6f75e
refs/heads/master
2021-06-12T20:51:38.348563
2020-06-11T15:00:30
2020-06-11T15:00:30
254,394,400
0
0
null
2020-05-21T00:22:13
2020-04-09T14:29:42
Java
UTF-8
Java
false
false
2,106
java
package kr.ac.kopo.day200519; import java.io.File; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; public class DirMain2 { public static void main(String[] args) { File dirObj = new File("test\\test2"); boolean bool = dirObj.exists(); System.out.println(bool ? "유효한 디렉토리입니다." : "유효하지 않는 디렉토리입니다."); if(!bool) { System.out.println(dirObj.mkdir()? "만들었" : "아니"); } System.out.println("path : "+ dirObj.getPath()); //내폴더에 들어있는 여러개의 다른 아이들이 누구있냐 String[] list = dirObj.list(); System.out.println("-------------------------------------"); System.out.println("\t" + dirObj.getName()+ "디렉토리 정보"); System.out.println("-------------------------------------"); for(String element : list) { System.out.println(element); } System.out.println("getParent()" + dirObj.getParent()); System.out.println("-------------------------------------"); //새로운 디렉토리 만들기 - 이미 만들어진 것은 생성 실패 File newDirObj = new File("iotest/하마"); System.out.println(newDirObj.mkdir()? "dir 생성 성공" : "dir 생성 실패"); String path = newDirObj.getPath(); String name = newDirObj.getName(); newDirObj = new File("iotest/하마/test"); System.out.println(newDirObj.getParent()); System.out.println(path); String[] path2 = path.split("\\\\"); System.out.println(Arrays.toString(path2)); //mkdirs : 중간경로에 없는 폴더도 만든다. newDirObj = new File("iotest/새폴더/오리"); System.out.println(newDirObj.mkdirs() ? "dir 생성 성공" : "dir 생성 실패"); //child가 기준임 오리만 지워짐 //newDirObj = new File("iotest/새폴더"); //만약 파일안에 정보가 있다면 삭제할 수 없다 bool = newDirObj.delete(); System.out.println(bool ? "삭제성공" : "삭제실패"); //빈폴더가 아닌 File dirObj2 = new File("test2"); System.out.println(dirObj.renameTo(dirObj2) ? "변경" : "변경안됨"); } }
[ "hyeju.aa@gmail.com" ]
hyeju.aa@gmail.com
890bbef5988fbc879882c08a862cedd32e6f02f2
476a0cd88298014affd3624d92ec2b235535e180
/src/com/android/cts/tradefed/device/DeviceUnlock.java
ddb3a1d594117080db7e4ea5675766bca09be833
[]
no_license
hi-cbh/CrashMonkey4Android_C
3b24492dabda4696f6a4d08387950e5301d5bc7c
f18314924ff79b36731c7fd9ab8addd357961f67
refs/heads/master
2020-12-24T10:11:19.737103
2016-11-11T08:28:44
2016-11-11T08:28:44
73,243,943
1
0
null
null
null
null
UTF-8
Java
false
false
2,556
java
/* * Copyright (C) 2010 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 com.android.cts.tradefed.device; import com.android.ddmlib.Log; import com.android.tradefed.device.DeviceNotAvailableException; import com.android.tradefed.device.ITestDevice; import com.android.tradefed.log.LogUtil.CLog; import com.android.tradefed.result.ITestInvocationListener; import com.android.tradefed.testtype.InstrumentationTest; import java.io.File; /** * Collects info from device under test. * <p/> * This class simply serves as a conduit for grabbing info from device using the * device info collector apk, and forwarding that data directly to the * {@link ITestInvocationListener} as run metrics. */ public class DeviceUnlock { private static final String LOG_TAG = "DeviceUnlock"; private static final String APK_NAME = "unlock_apk-debug"; public static final String APP_PACKAGE_NAME = "io.appium.unlock"; private static final String ACTIVITY_NAME = ".Unlock"; /** * Installs and runs the device info collector instrumentation, and forwards * results to the <var>listener</var> * * @param device * @param listener * @throws DeviceNotAvailableException */ public static void unlockDevice(ITestDevice device, File testApkDir) throws DeviceNotAvailableException { File apkFile = new File(testApkDir, String.format("%s.apk", APK_NAME)); if (!apkFile.exists()) { Log.e(LOG_TAG, String.format("Could not find %s", apkFile.getAbsolutePath())); } // collect the instrumentation bundle results using instrumentation test // should work even though no tests will actually be run device.installPackage(apkFile, true); String start = "am start " + APP_PACKAGE_NAME + "/" + ACTIVITY_NAME; CLog.i(start); device.executeShellCommand(start); //device.uninstallPackage(APP_PACKAGE_NAME); CLog.i("Finsihed to disable keyguard on %s using %s ", device.getSerialNumber(), APK_NAME); } }
[ "hi_cbh@qq.com" ]
hi_cbh@qq.com
5dd58b9f677b0a435aa3a43d77c3d6bd8174eb59
4ec0d18654f11ecefb7b131f1467d3d0f97ea035
/src/com/kola/kmp/logic/combat/support/IOperationRecorder.java
73913ae6d49341dbd5efc9457f96c61b60c7d7ff
[]
no_license
cietwwl/CFLogic
b5394afd4c10fdf41a14389f171f088958089c97
40f1044ea44fd3b6fa50412ffcb7954e3a9d4d3f
refs/heads/master
2021-01-23T16:04:51.113635
2015-05-16T06:24:00
2015-05-16T06:24:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
512
java
package com.kola.kmp.logic.combat.support; /** * * @author PERRY CHAN */ public interface IOperationRecorder { /** * * 获取目标的id * * @return */ public short getTargetId(); /** * * 是否伤害 * * @return */ public boolean isDamage(); /** * * 是否命中 * * @return */ public boolean isHit(); /** * * 是否暴击 * * @return */ public boolean isCrit(); /** * * 获取伤害数量 * * @return */ public int getDm(); }
[ "sleepagain123@163.com" ]
sleepagain123@163.com
a7a83b0b540855801f25d85f6f7c37b6fd0cb8a4
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/4/4_b07b5fe96638cee770d7a8c2e4e6d766aacc6e5d/PoissonAssembler/4_b07b5fe96638cee770d7a8c2e4e6d766aacc6e5d_PoissonAssembler_s.java
84f742e720d15e2c11d6ee1b008a1475b3adf033
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,411
java
/* (c) Copyright by Man YUAN */ package net.epsilony.mf.process.assembler; /** * * @author <a href="mailto:epsilonyuan@gmail.com">Man YUAN</a> */ public class PoissonAssembler extends AbstractLagrangeAssembler { @Override public void assembleVolume() { for (int testPos = 0; testPos < nodesAssemblyIndes.size(); testPos++) { for (int trialPos = 0; trialPos < nodesAssemblyIndes.size(); trialPos++) { assembleVolumeElem(testPos, trialPos); } } } private void assembleVolumeElem(int testPos, int trialPos) { int testId = nodesAssemblyIndes.getQuick(testPos); int trialId = nodesAssemblyIndes.getQuick(trialPos); final int dim = dimension; for (int dmRow = 0; dmRow < dim; dmRow++) { int row = testId * dim + dmRow; double rowShpf = testShapeFunctionValues[dmRow + 1][testPos]; double td = rowShpf * weight; mainVector.add(row, td * load[dmRow]); for (int dmCol = 0; dmCol < dim; dmCol++) { int col = trialId * dim + dmCol; if (upperSymmetric && col < row) { continue; } double colShpf = trialShapeFunctionValues[dmCol + 1][trialPos]; mainMatrix.add(row, col, td * colShpf); } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
35de2d6790fdca4061da4800b5b0664b25ef898e
9a52fe3bcdd090a396e59c68c63130f32c54a7a8
/sources/com/applovin/impl/mediation/C0906a.java
243a2383ffa32797c9438ae4ed1564e808032486
[]
no_license
mzkh/LudoKing
19d7c76a298ee5bd1454736063bc392e103a8203
ee0d0e75ed9fa8894ed9877576d8e5589813b1ba
refs/heads/master
2022-04-25T06:08:41.916017
2020-04-14T17:00:45
2020-04-14T17:00:45
255,670,636
1
0
null
null
null
null
UTF-8
Java
false
false
2,993
java
package com.applovin.impl.mediation; import android.app.Activity; import android.os.Bundle; import com.applovin.impl.mediation.p014b.C0960c; import com.applovin.impl.sdk.C1061a; import com.applovin.impl.sdk.C1192i; import com.applovin.impl.sdk.C1227o; import com.applovin.impl.sdk.utils.C1239a; /* renamed from: com.applovin.impl.mediation.a */ public class C0906a extends C1239a { /* renamed from: a */ private final C1061a f1676a; /* renamed from: b */ private final C1227o f1677b; /* renamed from: c */ private C0907a f1678c; /* renamed from: d */ private C0960c f1679d; /* renamed from: e */ private int f1680e; /* renamed from: f */ private boolean f1681f; /* renamed from: com.applovin.impl.mediation.a$a */ public interface C0907a { /* renamed from: a */ void mo9300a(C0960c cVar); } C0906a(C1192i iVar) { this.f1677b = iVar.mo10249v(); this.f1676a = iVar.mo10217aa(); } /* renamed from: a */ public void mo9297a() { this.f1677b.mo10378b("AdActivityObserver", "Cancelling..."); this.f1676a.mo9737b(this); this.f1678c = null; this.f1679d = null; this.f1680e = 0; this.f1681f = false; } /* renamed from: a */ public void mo9298a(C0960c cVar, C0907a aVar) { C1227o oVar = this.f1677b; StringBuilder sb = new StringBuilder(); sb.append("Starting for ad "); sb.append(cVar.getAdUnitId()); sb.append("..."); oVar.mo10378b("AdActivityObserver", sb.toString()); mo9297a(); this.f1678c = aVar; this.f1679d = cVar; this.f1676a.mo9736a(this); } public void onActivityCreated(Activity activity, Bundle bundle) { if (!this.f1681f) { this.f1681f = true; } this.f1680e++; C1227o oVar = this.f1677b; StringBuilder sb = new StringBuilder(); sb.append("Created Activity: "); sb.append(activity); sb.append(", counter is "); sb.append(this.f1680e); oVar.mo10378b("AdActivityObserver", sb.toString()); } public void onActivityDestroyed(Activity activity) { if (this.f1681f) { this.f1680e--; C1227o oVar = this.f1677b; StringBuilder sb = new StringBuilder(); sb.append("Destroyed Activity: "); sb.append(activity); sb.append(", counter is "); sb.append(this.f1680e); String sb2 = sb.toString(); String str = "AdActivityObserver"; oVar.mo10378b(str, sb2); if (this.f1680e <= 0) { this.f1677b.mo10378b(str, "Last ad Activity destroyed"); if (this.f1678c != null) { this.f1677b.mo10378b(str, "Invoking callback..."); this.f1678c.mo9300a(this.f1679d); } mo9297a(); } } } }
[ "mdkhnmm@amazon.com" ]
mdkhnmm@amazon.com
0a6b9c4cbcfe5f26356b98af08fce9f102597f45
327d615dbf9e4dd902193b5cd7684dfd789a76b1
/base_source_from_JADX/sources/com/google/android/gms/internal/ads/zzdcw.java
0f2391383abf4731986b422fcb902abd8eb96531
[]
no_license
dnosauro/singcie
e53ce4c124cfb311e0ffafd55b58c840d462e96f
34d09c2e2b3497dd452246b76646b3571a18a100
refs/heads/main
2023-01-13T23:17:49.094499
2020-11-20T10:46:19
2020-11-20T10:46:19
314,513,307
0
0
null
null
null
null
UTF-8
Java
false
false
371
java
package com.google.android.gms.internal.ads; import com.google.android.gms.ads.internal.zzp; import java.util.concurrent.Callable; final /* synthetic */ class zzdcw implements Callable { static final Callable zzgzz = new zzdcw(); private zzdcw() { } public final Object call() { return new zzdcu(zzp.zzla().zzys(), zzp.zzla().zzyt()); } }
[ "dno_sauro@yahoo.it" ]
dno_sauro@yahoo.it
ce5d7430f93477f11e700655a5051c38ef01c2b6
0fe0fdce7c3f1e0f210b6ad6a121847fc942d97c
/src/main/java/com/alipay/api/response/AlipayEcoEduKtStudentQueryResponse.java
8c009605cb82c5afe4ba64ee248ff36ace869abb
[ "Apache-2.0" ]
permissive
rico-bee/alipay-sdk
d9f6d9d481a0e2fbdf17aa61e37335281597d02f
1386001bb496ab0e5dfe0c2455ed06a38d1799e6
refs/heads/master
2021-04-09T15:50:59.171276
2018-03-04T04:44:29
2018-03-04T04:44:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,951
java
package com.alipay.api.response; import java.util.List; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; import com.alipay.api.domain.UserDetails; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.eco.edu.kt.student.query response. * * @author auto create * @since 1.0, 2017-08-14 11:04:55 */ public class AlipayEcoEduKtStudentQueryResponse extends AlipayResponse { private static final long serialVersionUID = 1777155923731618163L; /** * 学生姓名 */ @ApiField("child_name") private String childName; /** * 班级名字 */ @ApiField("class_name") private String className; /** * 学校名称 */ @ApiField("school_name") private String schoolName; /** * 学生编号 */ @ApiField("student_code") private String studentCode; /** * 学生身份证 */ @ApiField("student_identify") private String studentIdentify; /** * 家长信息 */ @ApiListField("users") @ApiField("user_details") private List<UserDetails> users; public void setChildName(String childName) { this.childName = childName; } public String getChildName( ) { return this.childName; } public void setClassName(String className) { this.className = className; } public String getClassName( ) { return this.className; } public void setSchoolName(String schoolName) { this.schoolName = schoolName; } public String getSchoolName( ) { return this.schoolName; } public void setStudentCode(String studentCode) { this.studentCode = studentCode; } public String getStudentCode( ) { return this.studentCode; } public void setStudentIdentify(String studentIdentify) { this.studentIdentify = studentIdentify; } public String getStudentIdentify( ) { return this.studentIdentify; } public void setUsers(List<UserDetails> users) { this.users = users; } public List<UserDetails> getUsers( ) { return this.users; } }
[ "howechiang@gmail.com" ]
howechiang@gmail.com
60253a9b037fc852a54349683c8cab66d9c907df
13cbb329807224bd736ff0ac38fd731eb6739389
/org/w3c/dom/traversal/NodeIterator.java
def4763509ce82f13c185a1b00d189bccb16a6d0
[]
no_license
ZhipingLi/rt-source
5e2537ed5f25d9ba9a0f8009ff8eeca33930564c
1a70a036a07b2c6b8a2aac6f71964192c89aae3c
refs/heads/master
2023-07-14T15:00:33.100256
2021-09-01T04:49:04
2021-09-01T04:49:04
401,933,858
0
0
null
null
null
null
UTF-8
Java
false
false
462
java
package org.w3c.dom.traversal; import org.w3c.dom.Node; public interface NodeIterator { Node getRoot(); int getWhatToShow(); NodeFilter getFilter(); boolean getExpandEntityReferences(); Node nextNode(); Node previousNode(); void detach(); } /* Location: D:\software\jd-gui\jd-gui-windows-1.6.3\rt.jar!\org\w3c\dom\traversal\NodeIterator.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.0.7 */
[ "michael__lee@yeah.net" ]
michael__lee@yeah.net
c91a93632a9e71e701c8cc902e50d17e40dc032e
e14bf5e674e0b32ea1309979cf631e20918fe209
/app/src/main/java/com/example/sx/practicalassistant/utils/LogUtils.java
7b2039ed061f199b2271dac87c63401d7f0e0a89
[]
no_license
wqlljj/PracticalAssistant
8fb625cdcf8956ef1171b5f6eeba86c7668e46f9
0a4a6649a7ac3c6a7d6027db73bcc26558793347
refs/heads/master
2020-06-10T13:55:14.483299
2019-06-25T07:04:48
2019-06-25T07:04:48
193,653,093
0
0
null
null
null
null
UTF-8
Java
false
false
1,567
java
package com.example.sx.practicalassistant.utils; import android.util.Log; /** * Log统一管理类 * */ public class LogUtils { public static boolean isDebug = true;// 是否需要打印bug,可以在application的onCreate函数里面初始化 private static final String TAG = "smart"; // 下面四个是默认tag的函数 public static void i(String msg) { if (isDebug) Log.i(TAG, msg); } public static void d(String msg) { if (isDebug) Log.d(TAG, msg); } public static void e(String msg) { if (isDebug) Log.e(TAG, msg); } public static void v(String msg) { if (isDebug) Log.v(TAG, msg); } // 下面是传入类名打印log public static void i(Class<?> _class, String msg) { if (isDebug) Log.i(_class.getName(), msg); } public static void d(Class<?> _class, String msg) { if (isDebug) Log.i(_class.getName(), msg); } public static void e(Class<?> _class, String msg) { if (isDebug) Log.i(_class.getName(), msg); } public static void v(Class<?> _class, String msg) { if (isDebug) Log.i(_class.getName(), msg); } // 下面是传入自定义tag的函数 public static void i(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void d(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void e(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void v(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void w(String tag, String msg) { if (isDebug) Log.w(tag, msg); } }
[ "qi.wang.x@cloudminds.com" ]
qi.wang.x@cloudminds.com
88848b99e4d38a3d4a192753929e14b22dde4207
400a56b8432f3ee74b54619720c4537a1d6dbfcd
/order/src/main/java/com/chen/order/enums/PayStatusEnum.java
fb8e280a3190b8fefc9437a10c37cf6fce53f5dc
[]
no_license
leifchen/springcloud-sell-demo
baab6eb22c7a9ef56257a63485b64f579c3bb2c5
56df66fac7c4bdafa7867e000271ae3727bc6897
refs/heads/master
2022-12-30T19:32:22.186023
2020-10-16T09:10:24
2020-10-16T09:10:24
267,019,920
0
0
null
null
null
null
UTF-8
Java
false
false
442
java
package com.chen.order.enums; import lombok.Getter; /** * 支付状态枚举 * <p> * @Author LeifChen * @Date 2020-05-29 */ @Getter public enum PayStatusEnum { /** * 支付状态 */ WAIT(0, "等待支付"), SUCCESS(1, "支付成功"), ; private Integer code; private String message; PayStatusEnum(Integer code, String message) { this.code = code; this.message = message; } }
[ "leifchen90@gmail.com" ]
leifchen90@gmail.com
bfcc33753c12fa6c0a5c8b6ea1f3d96b154ce7bf
3d8d9a4bf15efab8c630176402364c5a59207e14
/src/org/tyaa/ws/dao/interfaces/SalesDAO.java
462445fef922d7bdfa136ac0fb0766aae51d48d0
[]
no_license
YuriiTrofimenko/javafx-water-sales
9319da3f28c5d83c7fc46d6d179ffd4051aa2da4
6fac1e2d2fd1c74c12f70cbb20eff08985da971e
refs/heads/master
2020-12-12T04:57:24.083540
2020-01-15T09:48:01
2020-01-15T09:48:01
234,047,939
0
0
null
null
null
null
UTF-8
Java
false
false
925
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.tyaa.ws.dao.interfaces; import java.util.Date; import java.util.List; import org.tyaa.ws.entity.Sale; /** * * @author Yurii */ public interface SalesDAO { List<Sale> getAllSales(); List<Sale> getSalesRange(int _maxResults, int _firstResult); Sale getSale(int _id); void createSale(Sale _sale); int updateSale(Sale _sale); int getSalesCount(); List<Sale> getFilteredSales( int _shopId , int _barrelId , int _carId , Date _fromDate , Date _toDate , int _driverId , int _maxResults , int _firstResult ); int deleteSale(Integer _saleId); //Sale getSaleXDaysBefore(int _daysInt); }
[ "tyaa@ukr.net" ]
tyaa@ukr.net
1c90d7ac32feef7ea40048c302373b9eff6e82bf
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
/classes/mqq/manager/VerifyCodeManager.java
8016ed8158db65ea846a124a3b2062dd4ee4ecd0
[]
no_license
meeidol-luo/qooq
588a4ca6d8ad579b28dec66ec8084399fb0991ef
e723920ac555e99d5325b1d4024552383713c28d
refs/heads/master
2020-03-27T03:16:06.616300
2016-10-08T07:33:58
2016-10-08T07:33:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,486
java
package mqq.manager; import com.tencent.qphone.base.remote.FromServiceMsg; import com.tencent.qphone.base.remote.ToServiceMsg; import java.util.HashMap; import mqq.observer.HttpVerifyHandler; import mqq.observer.ServerNotifyObserver; public abstract interface VerifyCodeManager extends Manager { public static final String EXTRA_IMAGE = "image"; public static final String EXTRA_KEY = "key"; public static final String EXTRA_NOTE = "note"; public static final String EXTRA_SEQ = "seq"; public abstract void cancelVerifyCode(ServerNotifyObserver paramServerNotifyObserver); public abstract boolean checkVerifyCodeResp(ToServiceMsg paramToServiceMsg, FromServiceMsg paramFromServiceMsg); public abstract void onHttpVerifyCodeFail(String paramString1, String paramString2); public abstract void onHttpVerifyCodeSucc(String paramString); public abstract void onRecvHttpVerifyCode(HttpVerifyHandler paramHttpVerifyHandler, byte[] paramArrayOfByte, String paramString, HashMap paramHashMap); public abstract void refreVerifyCode(ServerNotifyObserver paramServerNotifyObserver); public abstract void submitPuzzleVerifyCodeTicket(int paramInt, String paramString); public abstract void submitVerifyCode(ServerNotifyObserver paramServerNotifyObserver, String paramString); } /* Location: E:\apk\QQ_91\classes-dex2jar.jar!\mqq\manager\VerifyCodeManager.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
08df09c82c4b26e425e018ce156447bc9d0655d6
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_8e7fa499e26a429158ad9a9ca709a5c60e06c879/UploadedFileValidator/2_8e7fa499e26a429158ad9a9ca709a5c60e06c879_UploadedFileValidator_t.java
6cfba34d39bcbfdec119ceaf5d2b668d4023a04f
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,519
java
/** * ValidFileValidator.java. * * @copyright 2011 Monits * @license Copyright (C) 2011. All rights reserved * @version Release: 1.0.0 * @link http://www.monits.com/ * @since 1.0.0 */ package com.monits.commons.validation; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; /** * ValidFileValidator.java. * * @author Gaston Muñiz <gmuniz@monits.com> * @copyright 2011 Monits * @license Copyright (C) 2011. All rights reserved * @version Release: 1.0.0 * @link http://www.monits.com/ * @since 1.0.0 */ public class UploadedFileValidator implements ConstraintValidator<UploadedFile, Object> { @Override public void initialize(UploadedFile constraintAnnotation) { } @Override public boolean isValid(Object value, ConstraintValidatorContext context) { final String methodIsEmpty = "isEmpty"; final String methodGetOriginalName = "getOriginalFilename"; // This class should be "CommonMultipartFile" final Class<? extends Object> clazz = value.getClass(); // Minimum size for the file, at least the extension. final long minLength = 3; try { if((Boolean)clazz.getMethod(methodIsEmpty).invoke(value)) { return false; } } catch (Exception e) { // Ignored } try { if(((String)clazz.getMethod(methodGetOriginalName).invoke(value)).length() >= minLength) { return true; } } catch (Exception e) { // Ignored } return false; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
73dd87ba78b1646f69507c59419ee11cae4ef02a
3e9dd3298b85ab9b081117eb9c88032715ce13cf
/focWebServer/src/com/foc/vaadin/gui/components/popupButton/FVPopupButton.java
93d1cc8d98b1d1eaa70b88a05982ff5fc5f7eaa1
[ "Apache-2.0" ]
permissive
focframework/framework
d0a151755f14a04b4a72a562b22f6bad83fe8836
6d07b694e7713d27b95f0ca69e2ec3c056969054
refs/heads/master
2020-05-30T16:48:32.505610
2019-05-30T07:38:36
2019-05-30T07:38:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,327
java
package com.foc.vaadin.gui.components.popupButton; import java.util.HashMap; import com.vaadin.ui.Button.ClickListener; import com.foc.util.Utils; import com.foc.vaadin.gui.FocXMLGuiComponentStatic; import com.foc.vaadin.gui.components.FVNativeButton; import com.foc.vaadin.gui.layouts.FVHorizontalLayout; import com.foc.web.gui.INavigationWindow; import com.vaadin.ui.UI; @SuppressWarnings("serial") public class FVPopupButton extends FVNativeButton implements ClickListener { private FVPopupWindow popupWindow = null; private String styleName = null; private HashMap<String, FVPopupContentButton> buttonMap = null;//Basically used for Unit testing public FVPopupButton(String content) { this(content, null); } public FVPopupButton(String content, int styleIndex) { this(content, FocXMLGuiComponentStatic.getButtonStyleForIndex(styleIndex)); } public FVPopupButton(String content, String styleName) { super(content); init(styleName); } private void init(String styleName){ this.styleName = styleName; buttonMap = new HashMap<String, FVPopupContentButton>(); popupWindow = new FVPopupWindow(this); if(!Utils.isStringEmpty(styleName)){ addStyleName(styleName); }else{ addStyleName("foc-button-orange"); } addClickListener(this); } public void dispose(){ super.dispose(); if(popupWindow != null){ popupWindow.dispose(); popupWindow = null; } if(buttonMap != null){ buttonMap.clear(); } } @Override public void buttonClick(ClickEvent event) { if(getPopupWindow() != null){ getPopupWindow().setPositionX(event.getClientX()); getPopupWindow().setPositionY(event.getClientY() + 30); UI.getCurrent().addWindow(getPopupWindow()); getPopupWindow().focus(); } } public FVPopupContentButton newButton(INavigationWindow iNavigationWindow, String caption, String menuCode){ FVHorizontalLayout menuItemHorizontalLayout = new FVHorizontalLayout(null); menuItemHorizontalLayout.setWidth("100%"); FVPopupContentButton contentButton = new FVPopupContentButton(getPopupWindow(), iNavigationWindow, caption); contentButton.addStyleName(styleName); contentButton.setWidth("100%"); contentButton.setHeight("40px"); menuItemHorizontalLayout.addComponent(contentButton); if(buttonMap != null){ buttonMap.put(menuCode, contentButton); } // if(withAddShortCut){ // FVPopupContentButton addShortcutButton = new FVPopupContentButton(mainFocData, getPopupWindow(), "", iNavigationWindow, moduleCode, menuCode, withAddShortCut); // // menuItemHorizontalLayout.addComponent(addShortcutButton); // menuItemHorizontalLayout.setComponentAlignment(addShortcutButton, Alignment.BOTTOM_LEFT); // addShortcutButton.setStyleName(BaseTheme.BUTTON_LINK); // addShortcutButton.setIcon(FVIconFactory.getInstance().getFVIcon_Small(FVIconFactory.ICON_ADD)); // } getPopupWindow().addComponentToVerticalLayout(menuItemHorizontalLayout); return contentButton; } public FVPopupWindow getPopupWindow(){ return popupWindow; } public String getStyleName() { return styleName; } public FVPopupContentButton getContentButton(String code){ return buttonMap != null ? buttonMap.get(code) : null; } }
[ "antoine.samaha@01barmaja.com" ]
antoine.samaha@01barmaja.com
9bc5cd6153c655ec5ca9de7c474d9acbc47ab132
7d01d0ee1bab9ed80d02dc766feeb7d88956f2a7
/src/main/java/gov/usgs/cida/pubs/domain/sipp/USGSProgram.java
33553a0da08580c0802ffd096b332253fb041100
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
usgs/pubs-services
db39ccda73ed24d33dfc53953048c6cb18f9649e
56703c9c69c05c17c45e642b71f930a4ad7c5ef0
refs/heads/master
2021-12-24T16:51:57.382707
2021-08-18T17:36:24
2021-08-18T17:36:24
199,486,310
4
7
NOASSERTION
2021-08-18T17:36:25
2019-07-29T16:09:30
Java
UTF-8
Java
false
false
607
java
package gov.usgs.cida.pubs.domain.sipp; import org.apache.commons.lang3.StringUtils; import com.fasterxml.jackson.annotation.JsonProperty; public class USGSProgram { @JsonProperty("IPNumber") private String ipNumber; @JsonProperty("USGSProgram") private String usgsProgram; public String getIpNumber() { return StringUtils.trimToNull(ipNumber); } public void setIpNumber(String ipNumber) { this.ipNumber = ipNumber; } public String getUsgsProgram() { return StringUtils.trimToNull(usgsProgram); } public void setUsgsProgram(String usgsProgram) { this.usgsProgram = usgsProgram; } }
[ "drsteini@contractor.usgs.gov" ]
drsteini@contractor.usgs.gov
62d4187a8e4ad413bb47dfa9041c384fc5a19b46
e0ba7ddeb226fe452e5114ce2b8b94ddb4b97b3e
/app/src/main/java/com/zhuye/ershoufang/wxapi/WXEntryActivity.java
b7fbe75be3cac47a4891ffffd35cd4e01f90c71e
[]
no_license
jingzhixb/trunk
5337a676f9eb91888171bd06f7a657e72cb05636
e9201b355323c86db5b3a22a8e869b1243b00763
refs/heads/master
2020-03-28T01:34:08.005377
2018-09-05T12:34:05
2018-09-05T12:34:05
147,514,146
0
1
null
null
null
null
UTF-8
Java
false
false
214
java
package com.zhuye.ershoufang.wxapi; import com.umeng.socialize.weixin.view.WXCallbackActivity; /** * Created by Administrator on 2018/3/29 0029. */ public class WXEntryActivity extends WXCallbackActivity { }
[ "1390056147qq.com" ]
1390056147qq.com
c63fa6afa6082c8e970ab01621c3b8b49e2b7eb6
05d0a9553358fbf159e566c403626de2718e17c9
/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/utils/PublishedConfigurationOutputter.java
8bdc102892e99e7a6efc8a12365374db59c34d9f
[ "CC-BY-2.5", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "EPL-1.0", "Classpath-exception-2.0", "GCC-exception-3.1", "BSD-3-Clause", "CC-PDDC", "GPL-2.0-only", "CDDL-1.0", "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain", "GPL-1.0-or-later", "LicenseRef-scancode-jdom", "LicenseRef-scancode-proprietary-license", "BSD-2-Clause-Views", "MPL-2.0-no-copyleft-exception", "MPL-2.0", "CC-BY-3.0", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "CDDL-1.1", "LicenseRef-scancode-protobuf", "LGPL-2.1-or-later", "LGPL-2.0-or-later", "LicenseRef-scancode-oracle-bcl-javase-javafx-2012", "LGPL-2.0-only", "LicenseRef-scancode-unknown" ]
permissive
hopshadoop/hops
d8baaf20bc418af460e582974839a3a9a72f173a
ed0d4de3dadbde5afa12899e703954aa67db7b3b
refs/heads/master
2023-08-31T20:36:31.212647
2023-08-28T15:31:37
2023-08-28T15:31:37
32,975,439
295
85
Apache-2.0
2023-09-05T09:19:57
2015-03-27T08:31:42
Java
UTF-8
Java
false
false
5,960
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.hadoop.yarn.service.utils; import com.google.common.base.Charsets; import com.google.common.base.Preconditions; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.service.api.records.ConfigFormat; import org.yaml.snakeyaml.DumperOptions; import org.yaml.snakeyaml.DumperOptions.FlowStyle; import org.yaml.snakeyaml.Yaml; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.StringWriter; import java.nio.charset.StandardCharsets; import java.util.Properties; /** * Output a published configuration */ public abstract class PublishedConfigurationOutputter { private static final String COMMENTS = "Generated by Apache Slider"; protected final PublishedConfiguration owner; protected PublishedConfigurationOutputter(PublishedConfiguration owner) { this.owner = owner; } /** * Save the config to a destination file, in the format of this outputter * @param dest destination file * @throws IOException */ /* JDK7 public void save(File dest) throws IOException { try(FileOutputStream out = new FileOutputStream(dest)) { save(out); out.close(); } } */ public void save(File dest) throws IOException { FileUtils.writeStringToFile(dest, asString(), StandardCharsets.UTF_8); } /** * Save the content. The default saves the asString() value * to the output stream * @param out output stream * @throws IOException */ public void save(OutputStream out) throws IOException { IOUtils.write(asString(), out, Charsets.UTF_8); } /** * Convert to a string * @return the string form * @throws IOException */ public abstract String asString() throws IOException; /** * Create an outputter for the chosen format * @param format format enumeration * @param owner owning config * @return the outputter */ public static PublishedConfigurationOutputter createOutputter(ConfigFormat format, PublishedConfiguration owner) { Preconditions.checkNotNull(owner); switch (format) { case XML: case HADOOP_XML: return new XmlOutputter(owner); case PROPERTIES: return new PropertiesOutputter(owner); case JSON: return new JsonOutputter(owner); case ENV: return new EnvOutputter(owner); case TEMPLATE: return new TemplateOutputter(owner); case YAML: return new YamlOutputter(owner); default: throw new RuntimeException("Unsupported format :" + format); } } public static class XmlOutputter extends PublishedConfigurationOutputter { private final Configuration configuration; public XmlOutputter(PublishedConfiguration owner) { super(owner); configuration = owner.asConfiguration(); } @Override public void save(OutputStream out) throws IOException { configuration.writeXml(out); } @Override public String asString() throws IOException { return ConfigHelper.toXml(configuration); } public Configuration getConfiguration() { return configuration; } } public static class PropertiesOutputter extends PublishedConfigurationOutputter { private final Properties properties; public PropertiesOutputter(PublishedConfiguration owner) { super(owner); properties = owner.asProperties(); } @Override public void save(OutputStream out) throws IOException { properties.store(out, COMMENTS); } public String asString() throws IOException { StringWriter sw = new StringWriter(); properties.store(sw, COMMENTS); return sw.toString(); } } public static class JsonOutputter extends PublishedConfigurationOutputter { public JsonOutputter(PublishedConfiguration owner) { super(owner); } @Override public String asString() throws IOException { return owner.asJson(); } } public static class EnvOutputter extends PublishedConfigurationOutputter { public EnvOutputter(PublishedConfiguration owner) { super(owner); } @Override public String asString() throws IOException { if (!owner.entries.containsKey("content")) { throw new IOException("Configuration has no content field and cannot " + "be retrieved as type 'env'"); } String content = owner.entries.get("content"); return ConfigUtils.replaceProps(owner.entries, content); } } public static class TemplateOutputter extends EnvOutputter { public TemplateOutputter(PublishedConfiguration owner) { super(owner); } } public static class YamlOutputter extends PublishedConfigurationOutputter { private final Yaml yaml; public YamlOutputter(PublishedConfiguration owner) { super(owner); DumperOptions options = new DumperOptions(); options.setDefaultFlowStyle(FlowStyle.BLOCK); yaml = new Yaml(options); } public String asString() throws IOException { return yaml.dump(owner.entries); } } }
[ "gautier@sics.se" ]
gautier@sics.se
2454c6e39552496c96f504bd0683918b916cd9f0
b55259e1d1eb295595f7b585c1cdc0b4450dd950
/sangphpc00958_ProjectMini/src/main/java/sangphpc00958_ProjectMini/service/UploadService.java
d8dfc6278a9df5759ab0223f03e98804cf4f71d1
[]
no_license
PhamHoangSang2k/sangphpc00958_ProjectMini
000854f432af8789b902d7ccd226239da50f05ce
21afa75043372d1776d3af963cb4069b318abfc0
refs/heads/master
2023-07-28T07:46:18.592331
2021-09-08T08:53:01
2021-09-08T08:53:01
403,919,304
0
0
null
null
null
null
UTF-8
Java
false
false
207
java
package sangphpc00958_ProjectMini.service; import java.io.File; import org.springframework.web.multipart.MultipartFile; public interface UploadService { File save(MultipartFile file, String folder); }
[ "abc@gmail.com" ]
abc@gmail.com
f7588935ab697af88dfd1928054a64a49bea756f
10186b7d128e5e61f6baf491e0947db76b0dadbc
/jp/cssj/sakae/sac/parser/DefaultClassCondition.java
b17050bf37970cc19d6b5e5f5089ded5a239701d
[ "SMLNJ", "Apache-1.1", "Apache-2.0", "BSD-2-Clause" ]
permissive
MewX/contendo-viewer-v1.6.3
7aa1021e8290378315a480ede6640fd1ef5fdfd7
69fba3cea4f9a43e48f43148774cfa61b388e7de
refs/heads/main
2022-07-30T04:51:40.637912
2021-03-28T05:06:26
2021-03-28T05:06:26
351,630,911
2
0
Apache-2.0
2021-10-12T22:24:53
2021-03-26T01:53:24
Java
UTF-8
Java
false
false
1,352
java
/* */ package jp.cssj.sakae.sac.parser; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class DefaultClassCondition /* */ extends DefaultAttributeCondition /* */ { /* */ public DefaultClassCondition(String namespaceURI, String value) { /* 67 */ super("class", namespaceURI, true, value); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ public short getConditionType() { /* 75 */ return 9; /* */ } /* */ /* */ /* */ /* */ /* */ public String toString() { /* 82 */ return "." + getValue(); /* */ } /* */ } /* Location: /mnt/r/ConTenDoViewer.jar!/jp/cssj/sakae/sac/parser/DefaultClassCondition.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "xiayuanzhong+gpg2020@gmail.com" ]
xiayuanzhong+gpg2020@gmail.com
b969a43c63f6fdddd53db3c868827174a1937441
5f13c94194459ef7d61b9d416bfc61abdfeb536f
/APPLICATION/SpringSecurityJdbcCustomUserDetailsAnnotatonExample/src/main/java/com/espark/adarsh/entity/UserRole.java
7abd97dd5a9f0d0ba5b0cd8f9f18ee38ae9e410d
[]
no_license
adarshkumarsingh83/spring_security
092cd3a7385cf2abfdf8e165ec08995de30cd835
8d655c1e0ae80ad3d1b1fe6a400da92af8032c08
refs/heads/master
2023-02-03T06:17:55.941921
2023-01-24T05:33:26
2023-01-24T05:33:26
46,787,876
2
3
null
2023-01-23T21:06:45
2015-11-24T11:37:09
Java
UTF-8
Java
false
false
2,823
java
/* * Copyright (c) Sourcen Inc. 2004-2012 * All rights reserved. */ /* * Copyright (c) 2015 Espark And ©Adarsh Development Services @copyright 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 Espark nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package com.espark.adarsh.entity; /** * @author Adarsh Kumar * @author $LastChangedBy: Adarsh Kumar$ * @version $Revision: 0001 $, $Date:: 1/1/10 0:00 AM#$ * @Espark @copyright all right reserve */ public final class UserRole { private Long id; private Long userId; private String name; public UserRole() { } public UserRole(Long id) { this.id = id; } public UserRole(String name) { this.name = name; } public UserRole(Long id, Long userId, String name) { this.id = id; this.userId = userId; this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getUserId() { return userId; } public void setUserId(Long userId) { this.userId = userId; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String toString() { return "UserRole{" + "name='" + name + '\'' + '}'; } }
[ "adarshkumarsingh83@gmail.com" ]
adarshkumarsingh83@gmail.com
d06f6dea25ba70ef9694ccba3f1f0462aff82f0f
d002bfc0bd80a49e10f2d0dc02fffffe4d93b20f
/ddth-queue-core/src/test/java/com/github/ddth/pubsub/test/universal/idint/inmem/TestInmemPubSubMT.java
cc74b9f6ca59029d7e0cebccafa3d021bcc0d88a
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
DDTH/ddth-queue
1b744bf64ea2d18d739a64dbb08121aea8e7d7b4
359257b80edd622b7791f0d3bee2123f6892b347
refs/heads/master
2023-08-19T13:54:50.837423
2019-07-24T18:55:52
2019-07-24T18:55:52
31,454,120
6
5
MIT
2022-09-22T17:29:46
2015-02-28T06:54:19
Java
UTF-8
Java
false
false
890
java
package com.github.ddth.pubsub.test.universal.idint.inmem; import com.github.ddth.pubsub.IPubSubHub; import com.github.ddth.pubsub.impl.universal.idint.UniversalInmemPubSubHub; import com.github.ddth.pubsub.test.universal.BasePubSubMultiThreadsTest; import junit.framework.Test; import junit.framework.TestSuite; /** * Test pub-sub functionality, multi-threads. */ public class TestInmemPubSubMT extends BasePubSubMultiThreadsTest<Long> { public TestInmemPubSubMT(String testName) { super(testName); } public static Test suite() { return new TestSuite(TestInmemPubSubMT.class); } /** * {@inheritDoc} */ @Override protected IPubSubHub<Long, byte[]> initPubSubHubInstance() { if (System.getProperty("skipTestsInmem") != null) { return null; } return new UniversalInmemPubSubHub().init(); } }
[ "btnguyen2k@gmail.com" ]
btnguyen2k@gmail.com
a7c364021e0085504718c966b00f0a9649c327ed
73c4e905ae1e0e12acf9e2b9ecb00c5665538cf5
/easybatch-core/src/main/java/org/easybatch/core/api/RecordDispatcher.java
e9a176ddf5a8107d47488900f827bf34277d4620
[ "MIT" ]
permissive
gilgnekoe/easy-batch
66d6c302ed41ed66c350c33d349f8c235ad8e7ec
a7f3e4c0ced87eb91a34f9bff6bd7567e145e6ed
refs/heads/master
2020-12-26T04:49:42.575867
2014-12-28T12:08:21
2014-12-28T12:08:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,625
java
/* * The MIT License * * Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.easybatch.core.api; /** * A record dispatcher dispatches input records to multiple worker engines. * * @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) */ public interface RecordDispatcher { /** * Dispatch a record. * @param record the record to dispatch * @throws Exception thrown if an error occurs when dispatching the record */ void dispatchRecord(Record record) throws Exception; }
[ "md.benhassine@gmail.com" ]
md.benhassine@gmail.com
ae44607122e4d76a3a182b1b97673a65d03e9a9f
02ffbb38c34c2f9880d7ab62e1223c07648670fb
/src/main/java/nl/cz/testsupport/service/dto/PasswordChangeDTO.java
703c66da80084e5c057de9ebf41a71bd6a08fd75
[]
no_license
goos76/testsupport
4a71d7909d8e4860ac5370586e8fa6c2642f85b6
d411b817c5e15201b399762c8c0c9e52a00a38f2
refs/heads/main
2023-03-13T20:34:13.765908
2021-03-11T14:53:50
2021-03-11T14:53:50
346,737,371
0
0
null
2021-03-11T15:09:43
2021-03-11T14:53:35
Java
UTF-8
Java
false
false
860
java
package nl.cz.testsupport.service.dto; /** * A DTO representing a password change required data - current and new password. */ public class PasswordChangeDTO { private String currentPassword; private String newPassword; public PasswordChangeDTO() { // Empty constructor needed for Jackson. } public PasswordChangeDTO(String currentPassword, String newPassword) { this.currentPassword = currentPassword; this.newPassword = newPassword; } public String getCurrentPassword() { return currentPassword; } public void setCurrentPassword(String currentPassword) { this.currentPassword = currentPassword; } public String getNewPassword() { return newPassword; } public void setNewPassword(String newPassword) { this.newPassword = newPassword; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
cc63bdfd272dcc5105daa8398b4e95dde83fda09
4a200307844a77355b5bca8c4c6f37e988398dec
/WEB/com.xinwei.minas.server/src/com/xinwei/minas/server/enb/facade/EnbNeighbourFacadeImpl.java
6285f340d6d7c532c22e60193b703dd0abe477c4
[]
no_license
qqhappy/mesh-omc
a623679647fb22feba1ed8dfa43cc2740ccc90f4
c06fb739aab39a550f14442697ad1916c1243261
refs/heads/master
2021-05-11T23:41:40.986485
2018-01-17T06:42:25
2018-01-17T06:42:25
117,513,317
1
0
null
null
null
null
GB18030
Java
false
false
1,998
java
/* * Copyright 2015 Beijing Xinwei, Inc. All rights reserved. * * History: * ------------------------------------------------------------------------------ * Date | Who | What * 2015-2-12 | fanhaoyu | create the file */ package com.xinwei.minas.server.enb.facade; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import java.util.List; import com.xinwei.minas.core.model.OperObject; import com.xinwei.minas.enb.core.facade.EnbNeighbourFacade; import com.xinwei.minas.enb.core.model.EnbNeighbourRecord; import com.xinwei.minas.server.enb.service.EnbNeighbourService; import com.xinwei.omp.core.model.biz.XBizRecord; import com.xinwei.omp.server.OmpAppContext; /** * * eNB邻区关系配置门面接口实现 * * @author fanhaoyu * */ @SuppressWarnings("serial") public class EnbNeighbourFacadeImpl extends UnicastRemoteObject implements EnbNeighbourFacade { protected EnbNeighbourFacadeImpl() throws RemoteException { super(); } @Override public List<EnbNeighbourRecord> queryNeighbourRecords(long moId) throws Exception { return getService().queryNeighbourRecords(moId); } @Override public EnbNeighbourRecord queryNeighbourRecord(long moId, XBizRecord condition) throws Exception { return getService().queryNeighbourRecord(moId, condition); } @Override public void addNeighbour(OperObject operObject, long moId, EnbNeighbourRecord record) throws Exception { getService().addNeighbour(moId, record); } @Override public void updateNeighbour(OperObject operObject, long moId, EnbNeighbourRecord record) throws Exception { getService().updateNeighbour(moId, record); } @Override public void deleteNeighbour(OperObject operObject, long moId, EnbNeighbourRecord record) throws Exception { getService().deleteNeighbour(moId, record); } private EnbNeighbourService getService() { return OmpAppContext.getCtx().getBean(EnbNeighbourService.class); } }
[ "qqhappy_cn@hotmail.com" ]
qqhappy_cn@hotmail.com
144c1a86ad201384cf99d66ceb30ee28d27e49c6
8336777a456a4af644bcc7112c9371fccb2b3ddb
/MRY/server/web/src/main/java/com/mry/entity/dao/system/TreatmentDao.java
e23501f5a7b3cd9e742e83bb146a759e0235bf2a
[]
no_license
SomeDargon/mry
9d54e8617a99762849ee01e2b7969dc2a32000fc
a7c633f746516cfcb602a699385f11c1f766f53b
refs/heads/master
2020-03-18T21:05:20.055536
2018-05-29T07:41:05
2018-05-29T07:41:05
135,258,484
0
0
null
null
null
null
UTF-8
Java
false
false
1,955
java
package com.mry.entity.dao.system; import com.mry.entity.dao.AbstractDao; import com.mry.entity.store.card.TreatmentCardManagement; import org.springframework.stereotype.Repository; import javax.persistence.Query; import java.util.List; /** * Created by kaik on 2018/1/7. */ @SuppressWarnings("unchecked") @Repository public class TreatmentDao extends AbstractDao<Object>{ public TreatmentCardManagement findById(Long id) { String querString = "SELECT d FROM TreatmentCardManagement d WHERE d.isEnable = true AND d.id = :id"; Query query = getEntityManager().createQuery(querString); query.setParameter("id",id); List<TreatmentCardManagement> list = query.getResultList(); return list.size() > 0 ? list.get(0) : null; } public int delete(Long id) { String querString = "UPDATE TreatmentCardManagement a SET a.isEnable=false WHERE a.id =:id"; Query query = getEntityManager().createQuery(querString); query.setParameter("id", id); int res=query.executeUpdate(); return res; } public List<TreatmentCardManagement> findTreatment(Long storeId,String name) { String str = "select u from TreatmentCardManagement u where u.isEnable = true"; if(storeId != null) { str +=" and u.storeId =:storeId"; } if(name != null && name !="") { str +=" and u.treatmentName like '%"+name+"%'"; } str +=" order by u.id desc"; Query query = getEntityManager().createQuery(str); query.setParameter("storeId", storeId); return query.getResultList(); } public int deleteProjectById(Long id) { String querString = "delete FROM ExtensionCardProject u where u.treatment.id =:id"; Query query = getEntityManager().createQuery(querString); query.setParameter("id", id); int res=query.executeUpdate(); return res; } }
[ "296569845@qq.com" ]
296569845@qq.com
7290d046b998bad5af0ec4bda86798519889acf5
fe94bb01bbaf452ab1752cb3c1d1e4ecf297b9be
/src/main/java/com/opencart/entity/dao/OcLayoutRouteDao.java
a153ccf6b73a4f2b4b1ff8d9db02407cdbfc7d1d
[]
no_license
gmai2006/opencart
9d3b037f09294973112bafbadd22d5edd8457de5
dba44adabf4b8eab3bdb07062c887ba0a2a5405f
refs/heads/master
2020-12-31T06:13:33.113098
2018-01-24T07:35:45
2018-01-24T07:35:45
80,637,392
0
0
null
null
null
null
UTF-8
Java
false
false
1,137
java
/************************************************************************* * * DATASCIENCE9 LLC CONFIDENTIAL * __________________ * * [2018] Datascience9 LLC * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Datascience9 LLC and its suppliers, * if any. The intellectual and technical concepts contained * herein are proprietary to Datascience9 LLC * and its suppliers and may be covered by U.S. and Foreign Patents, * patents in process, and are protected by trade secret or copyright law. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Datascience9 LLC. * @author Paul Mai - Datascience9 LLC */ package com.opencart.entity.dao; import java.util.List; import com.opencart.entity.*; public interface OcLayoutRouteDao { public List<OcLayoutRoute> select(int maxResult); public List<OcLayoutRoute> selectAll(); public OcLayoutRoute create(OcLayoutRoute e); public OcLayoutRoute update(OcLayoutRoute e); public void delete(OcLayoutRoute e); }
[ "gmai2006@gmail.com" ]
gmai2006@gmail.com
18ab3d98f90420a3b10f40097681cad1d43b129c
bccb412254b3e6f35a5c4dd227f440ecbbb60db9
/hl7/model/V2_5/table/Table0442.java
62ae440ed46d73c5377d47b8960d89a2f6c9651d
[]
no_license
nlp-lap/Version_Compatible_HL7_Parser
8bdb307aa75a5317265f730c5b2ac92ae430962b
9977e1fcd1400916efc4aa161588beae81900cfd
refs/heads/master
2021-03-03T15:05:36.071491
2020-03-09T07:54:42
2020-03-09T07:54:42
245,967,680
0
0
null
null
null
null
UTF-8
Java
false
false
626
java
package hl7.model.V2_5.table; import hl7.bean.table.Table; public class Table0442 extends Table{ private static final String VERSION = "2.5"; public static Table getInstance(){ if(table==null) new Table0442(); return table; } public static final String D = "D"; public static final String E = "E"; public static final String P = "P"; public static final String T = "T"; private Table0442(){ setTableName("Location Service Code"); setOID("2.16.840.1.113883.12.442"); putMap("D", "Diagnostic"); putMap("E", "Emergency Room Casualty"); putMap("P", "Primary Care"); putMap("T", "Therapeutic"); } }
[ "terminator800@hanmail.net" ]
terminator800@hanmail.net
9a9bb6d73a589f2f8fdd221a66edc028ff6ff984
bfcd3c3d2349a5a1ce67b307463f73dbd2f82364
/android-sdk/realtime-android/src/main/java/cn/leancloud/utils/RemoteInputCompatBase.java
795e47962e5605767b3c9de4ae3048cd685cc64e
[ "Apache-2.0" ]
permissive
leancloud/java-unified-sdk
02bf727fdcde33d9172a2eac46976f8dd5e71f62
4dee5b1ff167493a001052b56fd817c8865fdd2b
refs/heads/master
2023-06-26T05:10:08.906059
2023-06-14T08:04:54
2023-06-14T08:04:54
121,136,295
51
27
Apache-2.0
2023-06-14T08:01:37
2018-02-11T15:20:02
Java
UTF-8
Java
false
false
1,360
java
/* * Copyright (C) 2014 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 cn.leancloud.utils; import android.os.Bundle; /* * copy from android-25 / android / support / v4 / app / */ class RemoteInputCompatBase { public static abstract class RemoteInput { protected abstract String getResultKey(); protected abstract CharSequence getLabel(); protected abstract CharSequence[] getChoices(); protected abstract boolean getAllowFreeFormInput(); protected abstract Bundle getExtras(); public interface Factory { RemoteInput build(String resultKey, CharSequence label, CharSequence[] choices, boolean allowFreeFormInput, Bundle extras); RemoteInput[] newArray(int length); } } }
[ "jwfing@gmail.com" ]
jwfing@gmail.com
7f56d0dbb84c0d568bd1d6118ac4e2084e0ae5f4
87ab3f04169772ee22862218e4eeda9d31f8bb0b
/leetcode/src/main/java/com/yangzl/StateMachine.java
08c29d6e2a82b144cd1e809bc1322d5a4f3aaede
[]
no_license
Timesless/awesome-java
0bf45b4d235a477611f1c13015bfb26ba4bca862
62fedd8939447919a92a70b3529ce65828e8fe94
refs/heads/master
2023-06-29T00:30:35.584869
2021-07-24T03:05:07
2021-07-24T03:05:07
216,328,240
0
1
null
null
null
null
UTF-8
Java
false
false
7,786
java
package com.yangzl; import org.junit.jupiter.api.Test; /** * @author yangzl * @date 2020/4/19 22:33 * * 状态机 */ public class StateMachine { // ======================================================================= // 121. 买卖股票的最佳时机 // 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。 // 如果你最多只允许完成一笔交易(即买入和卖出一支股票一次),设计一个算法来计算你所能获取的最大利润。 // 注意:你不能在买入股票前卖出股票。 // 输入: [7,1,5,3,6,4] 输出: 5 // 输入: [7,6,4,3,1] 输出: 0 // ======================================================================= public int maxProfit(int[] prices) { int n = prices.length; if (n < 2) return 0; // 状态机解法 // dp[i][k][0] 当前第i天,总共允许k次交易,未持有股票的利润 // dp[i][k][1] 当前第i天,总共允许k次交易,持有股票的利润 // 该题k = 1, 所以直接降维 int[][] dp = new int[n][2]; // base case,第一天未持有股票利润0,持有股票利润-prices[0] // dp[0][0] = 0; dp[0][1] = -prices[0]; for (int i = 0; i < n; ++i) { // 未持有股票有两种可能 -> 前一天未持有股票;前一天持有股票今天sell dp[i][0] = Math.max(dp[i-1][0], dp[i-1][1] + prices[i]); // 持有股票两种可能 -> 前一天持有股票今天ret,前一天未持有股票今天buy(buy会消耗一次k,k = 0为basecase) dp[i][1] = Math.max(dp[i-1][1], -prices[i]); } return dp[n - 1][0]; } // ======================================================================= // 122. 买卖股票的最佳时机 II // 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。 // 设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易(多次买卖一支股票)。 // 注意:你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 // 输入: [7,1,5,3,6,4] 输出: 7 // ======================================================================= public int maxProfit2(int[] prices) { int n = prices.length; if (n < 2) return 0; // dp[i][k][0] // dp[i][k][1] // k无限直接降维,且dp[i][1]只由dp[i-1][0]这个状态转移而来(dp[i][0]同理),再降维 int unHold = 0, hold = Integer.MIN_VALUE; for (int i = 0; i < n; ++i) { int tmp = unHold; // 未持有分两种情况 unHold = Math.max(unHold, hold + prices[i]); // 持有分两种情况,前一天持有今天ret,前一天未持有今天buy hold = Math.max(hold, tmp - prices[i]); } return unHold; } // ======================================================================= // 714. 买卖股票的最佳时机含手续费 // 给定一个整数数组 prices,其中第 i 个元素代表了第 i 天的股票价格 ;非负整数 fee 代表了交易股票的手续费用。 // 你可以无限次地完成交易,但是你每笔交易都需要付手续费。如果你已经购买了一个股票,在卖出它之前你就不能再继续购买股票了。 // 返回获得利润的最大值。注意:这里的一笔交易指买入持有并卖出股票的整个过程,每笔交易你只需要为支付一次手续费。 // 输入: prices = [1, 3, 2, 8, 4, 9], fee = 2 输出: 8 // ======================================================================= public int maxProfit3(int[] prices, int fee) { int n = prices.length; if (n < 2) return 0; int unHold = 0, hold = Integer.MIN_VALUE; for (int i = 0; i < n; ++i) { // 前一天未持有股票的利润(先保存一下) int tmp = unHold; unHold = Math.max(unHold, hold + prices[i]); hold = Math.max(hold, tmp - prices[i] - fee); } return unHold; } // ======================================================================= // 309. 最佳买卖股票时机含冷冻期 // 给定一个整数数组,其中第 i 个元素代表了第 i 天的股票价格 。​ // 设计一个算法计算出最大利润。在满足以下约束条件下,你可以尽可能地完成更多的交易(多次买卖一支股票): // 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 // 卖出股票后,你无法在第二天买入股票 (即冷冻期为 1 天)。 // 输入: [1,2,3,0,2] 输出: 3 解释: 对应的交易状态为: [买入, 卖出, 冷冻期, 买入, 卖出] // ======================================================================= public int maxProfit4(int[] prices) { int n = prices.length; if (n < 2) return 0; int[][] dp = new int[n][2]; /* * dp[i][k][0] * dp[i][k][1] * 这里k取无限,直接降维 * 注意含冷冻期 */ // base case -> 第一天未持有股票利润位0, 持有股票利润为-prices[0] // dp[0][0] = 0; dp[0][1] = -prices[0]; for (int i = 1; i < n; ++i) { dp[i][0] = Math.max(dp[i-1][0], dp[i-1][1] + prices[i]); // 前一天未持有股票,今天买入(今天买入需要看今天之前的两天是卖出) // <= 0天未斥候股票的利润都是0, 所以当i <= 1时dp[i-2][0] = 0 dp[i][1] = i > 1 ? Math.max(dp[i-1][1], dp[i-2][0] - prices[i]) : Math.max(dp[i-1][1], 0 - prices[i]); } return dp[n-1][0]; } @Test public void testMaxProfit4() { int[] prices = {1, 2, 3, 0, 2}; System.out.println(maxProfit4(prices)); } // ======================================================================= // 188. 买卖股票的最佳时机 IV // 给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。 // 设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。 // 注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 // 输入: [2,4,1], k = 2 输出: 2 // 解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 = 2 。 // ======================================================================= public int maxProfit6(int k, int[] prices) { int n = prices.length; if (n < 2 || k < 1) return 0; if (k > (n >>> 1)) { // 这里相当于k取无限,直接降维 // 且今天持有状态只与前一天未持有状态,今天未持有只与前一天持有状态有关,所以2个状态足以保存 int unHold = 0, hold = Integer.MIN_VALUE; for (int i = 0; i < n; ++i) { // 前一天未持有股票的利润(先保存一下) int tmp = unHold; unHold = Math.max(unHold, hold + prices[i]); hold = Math.max(hold, tmp - prices[i]); } return unHold; } // 状态机 // dp[i][k][0] 当前第i天,完成k笔交易,未持有股票的最大利润 // dp[i][k][1] 当前第i天,完成k笔交易,持有股票的最大利润 int[][][] dp = new int[n][k + 1][2]; // base case // 1 -> k = 0时, 利润为0 // 2 -> i = 0时,第一天未持有利润为0,第一天持有股票利润为-prices[0] for (int i = 1; i <= k; ++i) { // dp[0][i][0] = 0; dp[0][i][1] = -prices[0]; } for (int i = 1; i < n; ++i) { for (int j = k; j >= 1; --j) { // 当天(i)未持有股票,前一天未持有今天ret,前一天持有今天sell dp[i][j][0] = Math.max(dp[i-1][j][0], dp[i-1][j][1] + prices[i]); // 当前持有股票,买股票需要消耗一次交易(在卖股票的时候-1同样可以) dp[i][j][1] = Math.max(dp[i-1][j][1], dp[i-1][j-1][0] - prices[i]); } } return dp[n-1][k][0]; } @Test public void test2() { int[] prices = {3, 2, 6, 5, 0, 3}; System.out.println(maxProfit6(20, prices)); } }
[ "yangzl@git.com" ]
yangzl@git.com
342ee7ec24f1c61e6620301831c82f98b4a4fd2d
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project3/src/main/java/org/gradle/test/performance3_2/Production3_164.java
8dbdbed0f775746cbe8982ca63a37ba6ecb4a075
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
300
java
package org.gradle.test.performance3_2; public class Production3_164 extends org.gradle.test.performance2_2.Production2_164 { private final String property; public Production3_164() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
7013c6000718f329b156584ad282aa22f3794869
0b4905c679f3a41a556b9102114eda4d0c32ee98
/BlackJackProject_combine/src/com/heart/impl/correct/Extends_06_Choi.java
23d9d9abe0fa12338bae5352427ad97be5114f1a
[]
no_license
soparifly/Java_project
18ac16dcfd36b13f4310fbd975f61c3c37773824
5ce09adea9a6b0c32ece661a0a853dd554a07218
refs/heads/master
2023-04-14T06:18:47.455263
2021-04-20T04:19:04
2021-04-20T04:19:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,871
java
package com.heart.impl.correct; public class Extends_06_Choi extends Extends_05_Cho{ // TODO 최선영 돈계산 @Override public void gamerMoney() { // 플레이어, 딜러 둘 다 블랙잭,BUST 아님 // 양 쪽 점수 비교 if (voP.getBust()) { lose(); } else if ((voP.getScore() > voD.getScore()) || voD.getBust()) { win(); } else if (voD.getScore() > voP.getScore()) { lose(); } else if (voD.getScore() == voP.getScore()) { push(); } if (voP.getBj()) { if (voP.getBj()) { this.push(); } else { this.win_bj(); } } } public void win_bj() { // TODO 플레이어가 블랙잭으로 이겼을 경우 System.out.println("\n" + voP.getName() + "님 BlackJack으로 승리"); voP.setMoney((int) (voP.getMoney() + (betMoney * 2.5))); } public void win() { // TODO 플레이어가 이겼을 경우 돈계산 // 양쪽 카드 오픈 후 플레이어 점수 합이 더 높을 때 // (플레이어는 BUST가 아니고) 딜러가 BUST일 때 // 배팅금의 2배 돌려받음 System.out.println("\n" + voP.getName() + "님 승리"); voP.setMoney((voP.getMoney() + (betMoney * 2))); } public void lose() { // TODO 플레이어가 졌을 경우 돈계산 // 플레이어가 BUST일 때 // 양쪽 카드 오픈 후 딜러 점수 합이 더 높을 때 // (플레이어는 블랙잭이 아니고) 딜러가 블랙잭일 때 // 배팅금 잃은 거라 그대로임 System.out.println("\n" + voP.getName() + "님 패배"); return; } public void push() { // TODO 비겼을 경우 돈계산 // 양쪽 카드 오픈 후 플레이어와 딜러 점수 합이 같을 때 // 양쪽 다 블랙잭인 경우 // 배팅금 다시 돌려줌 System.out.println("\n" + "무 승 부"); voP.setMoney((voP.getMoney() + betMoney)); } }
[ "cho.ay4@gmail.com" ]
cho.ay4@gmail.com
677c06db71593eb2b83c77937a26af44ca6aa306
3c70339cb78fd85fdbe41b50be443268e31e10e6
/core/src/main/java/me/piggypiglet/referrals/bootstrap/framework/Registerable.java
f56956576f00420ae10e674d1f7a2ed87dd69c9a
[]
no_license
GiansCode/GianReferrals
2bb91da25e327c7e7018772e823ba82239663421
8aa0ad00ea793692d1b0839aa83c09bdc5227c92
refs/heads/main
2023-06-06T02:43:52.005084
2021-06-21T13:21:14
2021-06-21T13:21:14
376,022,060
0
0
null
null
null
null
UTF-8
Java
false
false
3,305
java
package me.piggypiglet.referrals.bootstrap.framework; import com.google.inject.Injector; import com.google.inject.Key; import com.google.inject.TypeLiteral; import me.piggypiglet.referrals.bootstrap.exceptions.BootstrapHaltException; import me.piggypiglet.referrals.guice.modules.DynamicModule; import me.piggypiglet.referrals.guice.objects.Binding; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.lang.annotation.Annotation; import java.util.Arrays; import java.util.HashSet; import java.util.Optional; import java.util.Set; // ------------------------------ // Copyright (c) PiggyPiglet 2021 // https://www.piggypiglet.me // ------------------------------ public abstract class Registerable { private final Set<Binding<?>> bindings = new HashSet<>(); private final Set<Class<?>> staticInjections = new HashSet<>(); private BootstrapHaltException halt = null; public void execute() {} public void execute(@NotNull final Injector injector) {} public final void run(@NotNull final Injector injector) { execute(); execute(injector); } protected <T> void addBinding(@NotNull final Class<? super T> type, @NotNull final T instance) { addBinding(Key.get(type), instance); } protected <T> void addBinding(@NotNull final TypeLiteral<? super T> type, @NotNull final T instance) { addBinding(Key.get(type), instance); } protected <T> void addBinding(@NotNull final Class<? super T> type, @NotNull final Annotation annotation, @NotNull final T instance) { addBinding(Key.get(type, annotation), instance); } protected <T> void addBinding(@NotNull final Class<? super T> type, @NotNull final Class<? extends Annotation> annotation, @NotNull final T instance) { addBinding(Key.get(type, annotation), instance); } protected <T> void addBinding(@NotNull final TypeLiteral<? super T> type, @NotNull final Annotation annotation, @NotNull final T instance) { addBinding(Key.get(type, annotation), instance); } protected <T> void addBinding(@NotNull final TypeLiteral<? super T> type, @NotNull final Class<? extends Annotation> annotation, @NotNull final T instance) { addBinding(Key.get(type, annotation), instance); } protected <T> void addBinding(@NotNull final Key<? super T> key, @NotNull final T instance) { bindings.add(new Binding<>(key, instance)); } protected void requestStaticInjections(@NotNull final Class<?>@NotNull... classes) { staticInjections.addAll(Arrays.asList(classes)); } protected void haltBootstrap(@NotNull final String reason, @NotNull final Object... variables) { halt = new BootstrapHaltException(String.format(reason, variables)); } @NotNull public Optional<DynamicModule> createModule() { if (bindings.isEmpty() && staticInjections.isEmpty()) { return Optional.empty(); } return Optional.of(new DynamicModule(bindings, staticInjections.toArray(new Class<?>[]{}))); } @Nullable public BootstrapHaltException halt() { return halt; } }
[ "noreply@piggypiglet.me" ]
noreply@piggypiglet.me
c2bb9d5f23b0a2cd3fb477629ed55bf941c37b80
0524570edad83d4727c413904ab3afdd096674d1
/hadoop-2.6.5-src/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/nfs/nfs3/request/CREATE3Request.java
473d5276463104a81b481dc5c1c2994e1f22609c
[ "LicenseRef-scancode-unknown", "BSD-3-Clause", "BSD-2-Clause-Views", "LicenseRef-scancode-protobuf", "CDDL-1.0", "CDDL-1.1", "MIT", "EPL-1.0", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause", "Classpath-exception-2.0", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "GCC-exception-3.1", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "CC-PDDC", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "LGPL-2.0-or-later", "GPL-1.0-or-later", "CPL-1.0", "MPL-1.1", "MPL-1.0" ]
permissive
lsds/sgx-spark
559426f71be03ad3cd12ac4856fb1af686f2c64c
7ce0009050b30ba63e5090635925fbe86f5a3e2d
refs/heads/v1
2023-08-22T16:48:53.818334
2019-04-24T16:51:01
2019-04-24T16:51:01
179,549,243
25
9
Apache-2.0
2022-12-05T23:36:45
2019-04-04T17:58:03
Java
UTF-8
Java
false
false
2,466
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.hadoop.nfs.nfs3.request; import java.io.IOException; import org.apache.hadoop.nfs.nfs3.FileHandle; import org.apache.hadoop.nfs.nfs3.Nfs3Constant; import org.apache.hadoop.oncrpc.XDR; /** * CREATE3 Request */ public class CREATE3Request extends RequestWithHandle { private final String name; private final int mode; private final SetAttr3 objAttr; private long verf = 0; public CREATE3Request(FileHandle handle, String name, int mode, SetAttr3 objAttr, long verf) { super(handle); this.name = name; this.mode = mode; this.objAttr = objAttr; this.verf = verf; } public static CREATE3Request deserialize(XDR xdr) throws IOException { FileHandle handle = readHandle(xdr); String name = xdr.readString(); int mode = xdr.readInt(); SetAttr3 objAttr = new SetAttr3(); long verf = 0; if ((mode == Nfs3Constant.CREATE_UNCHECKED) || (mode == Nfs3Constant.CREATE_GUARDED)) { objAttr.deserialize(xdr); } else if (mode == Nfs3Constant.CREATE_EXCLUSIVE) { verf = xdr.readHyper(); } else { throw new IOException("Wrong create mode:" + mode); } return new CREATE3Request(handle, name, mode, objAttr, verf); } public String getName() { return name; } public int getMode() { return mode; } public SetAttr3 getObjAttr() { return objAttr; } public long getVerf() { return verf; } @Override public void serialize(XDR xdr) { handle.serialize(xdr); xdr.writeInt(name.length()); xdr.writeFixedOpaque(name.getBytes(), name.length()); xdr.writeInt(mode); objAttr.serialize(xdr); } }
[ "fkelbert@acm.org" ]
fkelbert@acm.org
f406b9a25b57fff75a6094bbce8082375c068c21
e3c4870c8e8192df2c5735b0c27f51c22e059720
/src/sun/misc/MessageUtils.java
f8f1b7b5730a85232dd1f76f0848a36d35bdc862
[]
no_license
xiangtch/Java
fec461aee7fd1dfd71dd21a482a75022ce35af9d
64440428d9af03779ba96b120dbb4503c83283b1
refs/heads/master
2020-07-14T01:23:46.298973
2019-08-29T17:49:18
2019-08-29T17:49:18
205,199,738
0
0
null
null
null
null
UTF-8
Java
false
false
4,054
java
/* */ package sun.misc; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class MessageUtils /* */ { /* */ public static String subst(String paramString1, String paramString2) /* */ { /* 42 */ String[] arrayOfString = { paramString2 }; /* 43 */ return subst(paramString1, arrayOfString); /* */ } /* */ /* */ public static String subst(String paramString1, String paramString2, String paramString3) { /* 47 */ String[] arrayOfString = { paramString2, paramString3 }; /* 48 */ return subst(paramString1, arrayOfString); /* */ } /* */ /* */ public static String subst(String paramString1, String paramString2, String paramString3, String paramString4) /* */ { /* 53 */ String[] arrayOfString = { paramString2, paramString3, paramString4 }; /* 54 */ return subst(paramString1, arrayOfString); /* */ } /* */ /* */ public static String subst(String paramString, String[] paramArrayOfString) { /* 58 */ StringBuffer localStringBuffer = new StringBuffer(); /* 59 */ int i = paramString.length(); /* 60 */ for (int j = 0; (j >= 0) && (j < i); j++) { /* 61 */ char c = paramString.charAt(j); /* 62 */ if (c == '%') { /* 63 */ if (j != i) { /* 64 */ int k = Character.digit(paramString.charAt(j + 1), 10); /* 65 */ if (k == -1) { /* 66 */ localStringBuffer.append(paramString.charAt(j + 1)); /* 67 */ j++; /* 68 */ } else if (k < paramArrayOfString.length) { /* 69 */ localStringBuffer.append(paramArrayOfString[k]); /* 70 */ j++; /* */ } /* */ } /* */ } else { /* 74 */ localStringBuffer.append(c); /* */ } /* */ } /* 77 */ return localStringBuffer.toString(); /* */ } /* */ /* */ public static String substProp(String paramString1, String paramString2) { /* 81 */ return subst(System.getProperty(paramString1), paramString2); /* */ } /* */ /* */ public static String substProp(String paramString1, String paramString2, String paramString3) { /* 85 */ return subst(System.getProperty(paramString1), paramString2, paramString3); /* */ } /* */ /* */ public static String substProp(String paramString1, String paramString2, String paramString3, String paramString4) /* */ { /* 90 */ return subst(System.getProperty(paramString1), paramString2, paramString3, paramString4); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ public static native void toStderr(String paramString); /* */ /* */ /* */ /* */ /* */ /* */ public static native void toStdout(String paramString); /* */ /* */ /* */ /* */ /* */ /* */ public static void err(String paramString) /* */ { /* 111 */ toStderr(paramString + "\n"); /* */ } /* */ /* */ public static void out(String paramString) { /* 115 */ toStdout(paramString + "\n"); /* */ } /* */ /* */ /* */ public static void where() /* */ { /* 121 */ Throwable localThrowable = new Throwable(); /* 122 */ StackTraceElement[] arrayOfStackTraceElement = localThrowable.getStackTrace(); /* 123 */ for (int i = 1; i < arrayOfStackTraceElement.length; i++) { /* 124 */ toStderr("\t" + arrayOfStackTraceElement[i].toString() + "\n"); /* */ } /* */ } /* */ } /* Location: E:\java_source\rt.jar!\sun\misc\MessageUtils.class * Java compiler version: 8 (52.0) * JD-Core Version: 0.7.1 */
[ "imsmallmouse@gmail" ]
imsmallmouse@gmail
818f87aedfc01821b5ce08556d531439d52caa77
ab7c374e12ef55482d1c622a0099a7b262195322
/jami-enricher/src/main/java/psidev/psi/mi/jami/enricher/listener/PolymerEnricherListener.java
92fb676d6c8b0576f6ba97fa20342ffe12b94234
[ "Apache-2.0" ]
permissive
colin-combe/psi-jami
9f945d885d76454f7b652382cc676ac98e6faa39
64fb0596b99aa8996d865b5eae0a2094be0889c8
refs/heads/master
2020-12-07T02:17:10.909871
2017-06-07T07:05:14
2017-06-07T07:05:14
64,655,225
0
0
null
2017-03-09T14:26:30
2016-08-01T09:43:06
Java
UTF-8
Java
false
false
415
java
package psidev.psi.mi.jami.enricher.listener; import psidev.psi.mi.jami.listener.PolymerChangeListener; import psidev.psi.mi.jami.model.Polymer; /** * Interface for polymer enricher listener * * @author Marine Dumousseau (marine@ebi.ac.uk) * @version $Id$ * @since <pre>01/10/13</pre> */ public interface PolymerEnricherListener<T extends Polymer> extends PolymerChangeListener<T>, EnricherListener<T> { }
[ "mdumousseau@yahoo.com@73e66818-4ebf-11de-a6a3-df26d2c71dbe" ]
mdumousseau@yahoo.com@73e66818-4ebf-11de-a6a3-df26d2c71dbe
3edd7b898cc4915817b4e7d54b45a0e7af96b39d
e9dc17a2293a5a1ec69a589dc493928dc3f738cd
/app/src/main/java/com/kamel/kameltv/FavouriteActivity.java
f77532704bd14393c4746faa39eba6409a39c06f
[]
no_license
cabralfilho/SuperMaxTv
d38250e8d7f7de46f9e7bd354c71b91e54e8e01e
0e3a51b252dc52e3f2091408b6a81d7cc96b36b6
refs/heads/master
2022-01-25T14:01:07.621679
2019-06-14T16:01:23
2019-06-14T16:01:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,230
java
package com.kamel.kameltv; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.net.Uri; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.ContextMenu; import android.view.KeyEvent; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.GridView; import android.widget.SearchView; import android.widget.Toast; import android.widget.VideoView; import com.kamel.kameltv.channels.ChannelAdapter; import com.kamel.kameltv.channels.ChannelsModel; import com.kamel.kameltv.channels.favouritechannels.FavouriteChannels; import com.kamel.kameltv.epg.model.constants.Constants; import com.kamel.kameltv.m3u.M3UListConstants; import com.kamel.kameltv.m3u.model.M3UItem; import com.kamel.kameltv.player.VLCActivity; import com.kamel.kameltv.player.exoplayer.ExoPlayerActivity; //import com.kamel.kameltv.player.xplyer.XVideoPlayer; //import com.kamel.kameltv.player.ijk.IJKVidoPlayear; import com.kamel.kameltv.sqlitedatabase.DatabaseHelper; import com.kamel.kameltv.useaccount.UserAccount; import java.util.ArrayList; import java.util.List; public class FavouriteActivity extends AppCompatActivity implements MediaPlayer.OnPreparedListener{ static GridView channelGrid; private static ChannelAdapter channelAdapter; private static List<ChannelsModel> channelList; SearchView channelSearch; private long exitTime = 0; private VideoView videoView; private ProgressDialog progressDialog; String url; static Context context; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); channelList= new DatabaseHelper(this).getAllChannel(); if(channelList.size()==0){ Toast.makeText(this, "No channel in favourites", Toast.LENGTH_SHORT).show(); onBackPressed(); } setContentView(R.layout.activity_favourite); context=this; channelSearch=findViewById(R.id.channelsearch); channelSearch.setOnQueryTextListener(new SearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String query) { return false; } @Override public boolean onQueryTextChange(String newText) { channelAdapter.filter(newText); return false; } }); channelSearch.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(!hasFocus){ channelAdapter.filter(""); } } }); channelGrid=findViewById(R.id.channelgrid); channelAdapter=new ChannelAdapter(this,channelList); channelGrid.setAdapter(channelAdapter); channelGrid.setDrawSelectorOnTop(true); registerForContextMenu(channelGrid); try{ channelGrid.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { com.kamel.kameltv.epg.model.constants.Constants.channelAdapters=channelAdapter; Constants.streamid=channelList.get(position).getStreamId(); String url="http://cuthecord.ddns.net:25461/live/"+ UserAccount.userAccount.getUserName()+"/"+UserAccount.userAccount.getPassword()+"/"+channelList.get(position).getStreamId()+".ts"; FavouriteActivity.this.url=url; final Uri videoUri = Uri.parse(FavouriteActivity.this.url); fullScreen(null); /// videoView.setVideoURI(videoUri); } }); }catch (Exception ex){ Toast.makeText(this, "No channel in favourites", Toast.LENGTH_SHORT).show(); onBackPressed(); } } @Override protected void onPause() { super.onPause(); //videoView.pause(); // videoView.setVisibility(View.GONE ); } @Override protected void onResume() { super.onResume(); // videoView.resume(); // videoView.setVisibility(View.VISIBLE); } public void onBackPressed() { super.onBackPressed(); } public void closeStreaming() { if ((System.currentTimeMillis() - exitTime) > 2000) { // exitTime = System.currentTimeMillis(); } else { finish(); } } @Override public void onPrepared(MediaPlayer mp) { // hideProgress(); //Starts the video playback as soon as it is ready // videoView.start(); } public void showProgress() { progressDialog = new ProgressDialog(FavouriteActivity.this); progressDialog = ProgressDialog.show(FavouriteActivity.this, "Please Wait", "Loading...", true); } public void hideProgress() { if (progressDialog != null && progressDialog.isShowing()) { progressDialog.dismiss(); } } public void fullScreen(View view){ Intent intent=new Intent(FavouriteActivity.this, VLCActivity.class); intent.putExtra("url",FavouriteActivity.this.url); startActivity(intent); } public static void updateChannelList(List<ChannelsModel> list){ channelList=list; ChannelAdapter channelAdapter=new ChannelAdapter(context,list); channelGrid.setAdapter(channelAdapter); System.out.println("INUPDATE"+list.size()); channelAdapter.notifyDataSetChanged(); } @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.chanelcontextmenu, menu); } @Override public boolean onContextItemSelected(MenuItem item) { // below variable info contains clicked item info and it can be null; scroll down to see a fix for it // ChannelAdapter info = (ChannelAdapter) item.getMenuInfo(); switch (item.getItemId()) { case R.id.addfavorite: //hidTesteItem(info.position); ChannelsModel m3UItem= (ChannelsModel) channelGrid.getSelectedItem(); FavouriteChannels.databaseHelper.addChannel(m3UItem); Toast.makeText(context, m3UItem.getName()+" Favourite Added!"+channelGrid.getCheckedItemPosition(), Toast.LENGTH_SHORT).show(); return true; case R.id.removefavorite: ChannelsModel m3UItemr= (ChannelsModel) channelGrid.getSelectedItem(); FavouriteChannels.databaseHelper.deletechannel(m3UItemr); Toast.makeText(context, m3UItemr.getName()+" Removed from favourite!", Toast.LENGTH_SHORT).show(); return true; default: return super.onContextItemSelected(item); } } }
[ "younissaqib@gmail.com" ]
younissaqib@gmail.com
f05409282a7a184d50ff5c1f12ac756f7d8ff857
7fca4e645f24880ab75f644f03d227aa5688749d
/p3/patterns/memento/src/memento/Originator.java
88604c9203b5e26f3dc8af0d4b99b713a2b02081
[]
no_license
jcarlosadm/classes
95e687f8ec6e4c1f405442de86c0dffc588f0f2e
9658b1b0805647f64d02c4b760d81d26943ec6da
refs/heads/master
2021-05-15T02:18:30.318844
2018-07-24T15:29:20
2018-07-24T15:29:20
24,521,175
2
0
null
null
null
null
UTF-8
Java
false
false
570
java
package memento; public class Originator { private String state; public void setState(String state) { System.out.println("Originator: Setting state to: "+state); this.state = state; } public Memento saveToMemento(){ System.out.println("Originator: Saving to Memento."); return new Memento(this.state); } public void restoreFromMemento(Memento memento){ this.state = memento.getSavedState(); System.out.println("Originator: State after restoring from Memento: "+this.state); } }
[ "carlosmaster10@gmail.com" ]
carlosmaster10@gmail.com
ff04282b65f701c19de1b8e1a0ad580364bd557b
7826588e64bb04dfb79c8262bad01235eb409b3d
/src/test/java/com/microsoft/bingads/v13/api/test/entities/ad_extension/disclaimer/write/BulkDisclaimerAdExtensionWriteToValuesPopupTextTest.java
be750134baba528d4163b3bfba091bb684888b74
[ "MIT" ]
permissive
BingAds/BingAds-Java-SDK
dcd43e5a1beeab0b59c1679da1151d7dd1658d50
a3d904bbf93a0a93d9c117bfff40f6911ad71d2f
refs/heads/main
2023-08-28T13:48:34.535773
2023-08-18T06:41:51
2023-08-18T06:41:51
29,510,248
33
44
NOASSERTION
2023-08-23T01:29:18
2015-01-20T03:40:03
Java
UTF-8
Java
false
false
1,259
java
package com.microsoft.bingads.v13.api.test.entities.ad_extension.disclaimer.write; import java.util.Arrays; import java.util.Collection; import org.junit.Test; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; import com.microsoft.bingads.v13.api.test.entities.ad_extension.disclaimer.BulkDisclaimerAdExtensionTest; import com.microsoft.bingads.v13.bulk.entities.BulkDisclaimerAdExtension; public class BulkDisclaimerAdExtensionWriteToValuesPopupTextTest extends BulkDisclaimerAdExtensionTest { @Parameter(value = 1) public String expectedResult; @Parameters public static Collection<Object[]> data() { return Arrays.asList(new Object[][]{ {"Popup text", "Popup text"}, {null, null} }); } @Test public void testWrite() { this.<String>testWriteProperty("Disclaimer Popup Text", this.datum, this.expectedResult, new BiConsumer<BulkDisclaimerAdExtension, String>() { @Override public void accept(BulkDisclaimerAdExtension c, String v) { c.getDisclaimerAdExtension().setPopupText(v); } }); } }
[ "qitia@microsoft.com" ]
qitia@microsoft.com
d7d59b4f4888d55b764b2c5aa3f40b063f384439
0e7eaf3aea4e73c3ac0dbf56962b755dc1ef6d58
/src/main/java/prosia/basarnas/model/TrapeziumArea.java
17b6a980256b438b94fd24b6cc7f346f8ad2646b
[]
no_license
taufikbudianto/upload2
c3b8fa6196d843d2bb77c77ac37dbc8c1298c7b8
c0651f2bb01d4d7c49804079e97e138268a28784
refs/heads/master
2020-03-30T14:49:03.911083
2018-10-02T16:34:18
2018-10-02T16:34:18
151,337,272
0
0
null
null
null
null
UTF-8
Java
false
false
2,571
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package prosia.basarnas.model; import java.io.Serializable; import java.util.Date; import java.util.TimeZone; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import lombok.Data; import prosia.app.model.AbstractAuditingEntity; /** * * @author Aris */ @Entity @Table(name="dfc_trapeziumarea") @Data public class TrapeziumArea extends AbstractAuditingEntity implements Serializable { @Id @Column(name="trapeziumareaid") private String trapeziumAreaID; @Column(name="worksheetname") private String worksheetName; @Column(name="deskripsi") private String deskripsi; @Column(name = "waktuoperasi") @Temporal(TemporalType.TIMESTAMP) private Date waktuoperasi; @Column(name="waktuoperasitimezone") private TimeZone waktuOperasiTimezone; @Column(name="latlkp") private Double latLkp; @Column(name="longlkp") private Double longLkp; @Column(name="latdest") private Double latDest; @Column(name="longdest") private Double longDest; @Column(name="safetyfactor") private Double safetyFactor; @Column(name="distresserror") private Double distressError; @Column(name="searcherror") private Double searchError; @Column(name="luasarea") private Double luasArea; @Column(name="taskarealastpoint") private String taskAreaLastPoint; @Column(name="totaltaskarealength") private Double totalTaskAreaLength; @Column(name="waypoint") private Double waypoint; @Column(name="parentid") private String parentID; @ManyToOne @JoinColumn(name="incidentid") private Incident incident; @Column(name = "datecreated") @Temporal(TemporalType.TIMESTAMP) private Date dateCreated; @Column(name = "createdby", length = 50) private String createdBy; @Column(name = "lastmodified") @Temporal(TemporalType.TIMESTAMP) private Date lastModified; @Column(name = "modifiedby", length = 50) private String modifiedBy; @Column(name = "isdeleted") private boolean deleted; @Column(name = "usersiteid") private String userSiteID; @Column(name="unit") private Double unit; }
[ "taufikagusbudiyanto@gmail.com" ]
taufikagusbudiyanto@gmail.com
4f7bda14147a3b8ba8680ae467a4b2cf42c70dfc
f405015899c77fc7ffcc1fac262fbf0b6d396842
/sec2-keyserver/sec2-frontend/src/test/java/org/sec2/frontend/exceptions/FrontendExceptionsTestSuite.java
e1bfa433aec15e44e1dddc2625ac5fd3b1fc36ab
[]
no_license
OniXinO/Sec2
a10ac99dd3fbd563288b8d21806afd949aea4f76
d0a4ed1ac97673239a8615a7ddac1d0fc0a1e988
refs/heads/master
2022-05-01T18:43:42.532093
2016-01-18T19:28:20
2016-01-18T19:28:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,449
java
/* * Copyright 2012 Ruhr-University Bochum, Chair for Network and Data Security * * This source code is part of the "Sec2" project and as this remains property * of the project partners. Content and concepts have to be treated as * CONFIDENTIAL. Publication or partly disclosure without explicit * written permission is prohibited. * For details on "Sec2" and its contributors visit * * http://nds.rub.de/research/projects/sec2/ */ package org.sec2.frontend.exceptions; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Test suite for namespace org.sec2.frontend.exceptions. * * @author Dennis Felsch - dennis.felsch@rub.de * @version 0.1 * * November 29, 2012 */ public class FrontendExceptionsTestSuite extends TestCase { /** * Create the test suite. * * @param testName name of the test case */ public FrontendExceptionsTestSuite(final String testName) { super(testName); } /** * @return the suite of tests being tested */ public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(BackendProcessExceptionTests.class); suite.addTestSuite(ErrorResponseExceptionTests.class); suite.addTestSuite(KeyserverSecurityExceptionTests.class); suite.addTestSuite(XMLProcessExceptionTests.class); return new SuppressLogTestSetup(suite); } }
[ "developer@developer-VirtualBox" ]
developer@developer-VirtualBox
17b32a501e875823717096dfecb24e772a47d19f
cc70f0eac152553f0744954a1c4da8af67faa5ab
/PPA/src/examples/AllCodeSnippets/class_49.java
6ba7fba45ee7530753995c4928f16884cf05aa2a
[]
no_license
islamazhar/Detecting-Insecure-Implementation-code-snippets
b49b418e637a2098027e6ce70c0ddf93bc31643b
af62bef28783c922a8627c62c700ef54028b3253
refs/heads/master
2023-02-01T10:48:31.815921
2020-12-11T00:21:40
2020-12-11T00:21:40
307,543,127
0
0
null
null
null
null
UTF-8
Java
false
false
2,132
java
package examples.AllCodeSnippets; public class class_49 extends SSLSocketFactory { SSLContext sslContext = SSLContext.getInstance("TLS"); public MySSLSocketFactory(KeyStore truststore) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException { super(truststore); TrustManager tm = new X509TrustManager() { public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { } public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { } public X509Certificate[] getAcceptedIssuers() { return null; } }; sslContext.init(null, new TrustManager[] { tm }, null); } @Override public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException { return sslContext.getSocketFactory().createSocket(socket, host, port, autoClose); } @Override public Socket createSocket() throws IOException { return sslContext.getSocketFactory().createSocket(); } public static HttpClient getNewHttpClient() { try { KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType()); trustStore.load(null, null); SSLSocketFactory sf = new MySSLSocketFactory(trustStore); sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.UTF_8); SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); registry.register(new Scheme("https", sf, 443)); ClientConnectionManager ccm = new ThreadSafeClientConnManager(params, registry); return new DefaultHttpClient(ccm, params); } catch (Exception e) { return new DefaultHttpClient(); } } }
[ "mislam9@wisc.edu" ]
mislam9@wisc.edu
ba81ab2a50e2fb0db5bc538d2836720f0307c9eb
36211cbfdceca0cf40f1774037556d032bc759a2
/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/SystemVersionProcessingModeEnumFactory.java
c519aa07b16a9a75c2c14a271bd799f57d0daad9
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
VincentZhangy/hapi-fhir
284e1e16873f7f3e55f004d156f0329d9ac8f9cf
2fa7aedf63e0e071e1ecbc39455d8dc1a2789dc0
refs/heads/master
2021-01-22T05:46:52.270334
2017-05-25T23:47:09
2017-05-25T23:47:09
92,494,591
1
0
null
2017-05-26T09:24:58
2017-05-26T09:24:58
null
UTF-8
Java
false
false
2,835
java
package org.hl7.fhir.dstu3.model.codesystems; /* Copyright (c) 2011+, HL7, Inc. 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 HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Generated on Mon, Apr 17, 2017 17:38-0400 for FHIR v3.0.1 import org.hl7.fhir.dstu3.model.EnumFactory; public class SystemVersionProcessingModeEnumFactory implements EnumFactory<SystemVersionProcessingMode> { public SystemVersionProcessingMode fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) return null; if ("default".equals(codeString)) return SystemVersionProcessingMode.DEFAULT; if ("check".equals(codeString)) return SystemVersionProcessingMode.CHECK; if ("override".equals(codeString)) return SystemVersionProcessingMode.OVERRIDE; throw new IllegalArgumentException("Unknown SystemVersionProcessingMode code '"+codeString+"'"); } public String toCode(SystemVersionProcessingMode code) { if (code == SystemVersionProcessingMode.DEFAULT) return "default"; if (code == SystemVersionProcessingMode.CHECK) return "check"; if (code == SystemVersionProcessingMode.OVERRIDE) return "override"; return "?"; } public String toSystem(SystemVersionProcessingMode code) { return code.getSystem(); } }
[ "jamesagnew@gmail.com" ]
jamesagnew@gmail.com
a05cc48bbcb215a63b50ea1cb4f51010f7b6f813
5841ebcb90abaad976c31e1929f72de86a30397b
/likp_ai/trunk/pc/src/main/java/com/lkp/service/SYSUPloadService.java
e890106982db89d75a2a986af1b3a923a8e13a10
[]
no_license
JustForMyDream/lkp_ai
4e95a375f07449221ef0111e5cfa787d93800bfc
96f8b24abe9fc6f67814a7eab2a139677df952e0
refs/heads/master
2021-07-09T12:24:47.790259
2017-10-08T08:57:29
2017-10-08T08:57:29
106,161,465
0
0
null
null
null
null
UTF-8
Java
false
false
279
java
package com.lkp.service; import org.springframework.stereotype.Service; import java.io.Serializable; /** * * 摄影师上传业务 */ public interface SYSUPloadService { Serializable uploadYingji(String orderid, String title, String des, String music, String[] pic); }
[ "2589475332@qq.com" ]
2589475332@qq.com