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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
620f50eeb235bcc2b22b99f604eb7bc2d7252038
|
e0b33a64f1bd7a7c8f3977e204c3aabcfc2fefc3
|
/mediator-vipvopPlugin/src/main/java/net/chinacloud/mediator/vip/vop/task/VopCommonTask.java
|
217e67f24dfcdb69a9d8099e7df8ae6d781be93a
|
[] |
no_license
|
shengzhiconghaoshuai/mediator
|
d0b44c5cf2ab90504d6e65106b2d571dd9a51252
|
48971b8a386e5df1e900a010ab7960edd6b26035
|
refs/heads/feature/JIT-flow
| 2022-12-21T21:08:57.962836
| 2019-10-16T07:38:55
| 2019-10-16T07:38:55
| 215,488,655
| 0
| 2
| null | 2022-12-16T02:29:44
| 2019-10-16T07:48:21
|
Java
|
UTF-8
|
Java
| false
| false
| 1,270
|
java
|
/**
* 文件名:VopCommonTask.java
* 版权:Copyright 2015- LakeCloud Tech. Co. Ltd. All Rights Reserved.
* 描述:
*/
package net.chinacloud.mediator.vip.vop.task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import net.chinacloud.mediator.service.cache.ServiceManager;
import net.chinacloud.mediator.task.Task;
/**
* <TODO simple description>
* <TODO detail description>
* @author mwu@wuxicloud.com
* @version 0.0.0,2015年2月26日
* @since 2015年2月26日
*/
@Component
@Scope(value="prototype")
public abstract class VopCommonTask extends Task{
private static final Logger LOGGER = LoggerFactory.getLogger(VopCommonTask.class);
@Autowired
private ServiceManager serviceManager;
/**
* 获取渠道对应的业务接口实现
* @param clazz 业务接口
* @param channelCode 渠道标识
* @return
*/
protected <T> T getService(Class<T> clazz, String channelCode){
if(LOGGER.isDebugEnabled()){
LOGGER.debug("get service " + clazz.getSimpleName() + " for channel " + channelCode);
}
return serviceManager.getService(clazz, channelCode);
}
}
|
[
"zhangyu@wuxicloud.com"
] |
zhangyu@wuxicloud.com
|
63ccf5f6c367e27b21e91cef2ed9f25b008989e8
|
4c1b59312ecf261c30e933ea751e3f25d7ece627
|
/src/main/java/com/thinkgem/jeesite/modules/wlpt/dao/card/UserMetroPosDao.java
|
49a86d288568621227b12c19669d261d9275a183
|
[
"Apache-2.0"
] |
permissive
|
nowimwrok/zd_ztpor
|
e18d58545ac0f02c64cff81e38bfb0510352047d
|
1e53899726f0a5e89ce8dab647504be7b4e68a03
|
refs/heads/master
| 2021-04-05T23:43:06.065526
| 2018-03-09T06:17:07
| 2018-03-09T06:17:07
| 124,496,758
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 574
|
java
|
/**
*
*/
package com.thinkgem.jeesite.modules.wlpt.dao.card;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import java.util.List;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.wlpt.entity.card.UserMetroPos;
/**
* 一卡通POS机列表DAO接口
* @author 曾煜佳
* @version 2016-11-30
*/
@MyBatisDao
public interface UserMetroPosDao extends CrudDao<UserMetroPos> {
/**
* 获取POS机信息
* @param userMetroPos
* @return
*/
UserMetroPos getMetroPosInfo(UserMetroPos userMetroPos);
}
|
[
"nowimwork@foxmail.com"
] |
nowimwork@foxmail.com
|
ce446537fd2d34c34b1716656c37b938cc18ca13
|
bf07fbce8898cfbe273afc0f96190b85da54a499
|
/slipstream/src/main/java/slipstream/replicator/extractor/mysql/LoadDataInfileEvent.java
|
aa54798029fd0d708ec54e427a35b5c02cb3e724
|
[] |
no_license
|
sand-stone/dataswitch
|
700426898b54df450c45063486eed1bd634acd97
|
d161e66fca2fa4b1ebecf08b94f0e454ac635ebc
|
refs/heads/master
| 2020-05-22T02:45:52.161556
| 2017-02-25T02:23:47
| 2017-02-25T02:23:47
| 62,422,612
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,627
|
java
|
/**
* VMware Continuent Tungsten Replicator
* Copyright (C) 2015 VMware, 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.
*
* Initial developer(s): Stephane Giron
* Contributor(s):
*/
package slipstream.replicator.extractor.mysql;
/**
* @author <a href="mailto:stephane.giron@continuent.com">Stephane Giron</a>
* @version 1.0
*/
public interface LoadDataInfileEvent
{
/**
* Returns the file ID of this Load Data Infile command.
*
* @return a file ID
*/
public int getFileID();
/**
* Sets whether the next event of this event can be appended to it in the
* same THL event, i.e. if it is part of the same load data infile command.
*
* @param b
*/
public void setNextEventCanBeAppended(boolean b);
/**
* Indicates whether next event in the binlog can be appended to this one.
* This is possible if the next event is part of the same Load Data Infile
* command.
*
* @return true if next event can be appended, false otherwise.
*/
public boolean canNextEventBeAppended();
}
|
[
"sand.m.stone@gmail.com"
] |
sand.m.stone@gmail.com
|
43209359d284bdfd5f1547cb9f1efdd0fd8ccfbf
|
83964a56c3d3fff94d0ff0e52386552d193aca03
|
/src/main/java/com/sun/jersey/server/impl/model/parameter/multivalued/MultivaluedParameterExtractor.java
|
abfc7b52f50380022f16a82923c1ccb8bf86db05
|
[] |
no_license
|
onurtokat/hal-streaming
|
9a0da5c050b9dd79984427a2594ef8726cae270a
|
63063991e94698d6588c1cf2170965f3991c78e3
|
refs/heads/master
| 2020-04-30T23:19:24.625158
| 2019-03-22T13:02:57
| 2019-03-22T13:02:57
| 177,141,138
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 328
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package com.sun.jersey.server.impl.model.parameter.multivalued;
import javax.ws.rs.core.MultivaluedMap;
public interface MultivaluedParameterExtractor
{
String getName();
String getDefaultStringValue();
Object extract(final MultivaluedMap<String, String> p0);
}
|
[
"onurtkt@gmail.com"
] |
onurtkt@gmail.com
|
6d015ab92063c16bfb3050f068acc3bf6f00b101
|
e91b6f25ea849f44f5834ba8f9bfc8c0742722a1
|
/source/1_Java/ch15_api/src/com/tj/ex4_object/Rectangle.java
|
58bd40018b07347ec678750162f0d7457b2ab479
|
[] |
no_license
|
AsnemBlue/mega_IT
|
c1e7ede26515a981179e1986a18144da0646d33f
|
710236379ec2c2cf5baac7c9dc9253cb4197bf39
|
refs/heads/master
| 2021-05-26T09:03:32.138726
| 2020-04-08T05:53:52
| 2020-04-08T05:53:52
| 254,068,727
| 1
| 0
| null | 2020-04-08T11:28:53
| 2020-04-08T11:28:52
| null |
UHC
|
Java
| false
| false
| 996
|
java
|
package com.tj.ex4_object;
public class Rectangle implements Cloneable{ // 빨간색 가로5, 세로6 네모
private int width;
private int height;
private String color;
public Rectangle() {}
public Rectangle(int width, int height,
String color) {
this.width = width;
this.height = height;
this.color = color;
}
@Override
public String toString() {
return "가로:"+width+"\t세로:"+height+"\t색상:"+color+"인 네모";
}
@Override
public boolean equals(Object obj) { // r1.equals(r2) r1->this r2->obj
if(obj!=null && obj instanceof Rectangle) {
boolean widthChk = this.width == ((Rectangle)obj).width;
boolean heightChk = this.height == ((Rectangle)obj).height;
boolean colorChk = this.color.equals(((Rectangle)obj).color);
return widthChk && heightChk && colorChk;
}else {
return false;
}//if
}
@Override
protected Object clone() throws CloneNotSupportedException {
// TODO Auto-generated method stub
return super.clone();
}
}
|
[
"spacenyi@naver.com"
] |
spacenyi@naver.com
|
6befda8f92a0653a3e10c8332fcab8448a4c9e69
|
35c1febe451ee28c5022807942dd970a8568a9c9
|
/MVCBoot31-LoginApp/src/main/java/com/nt/service/LoginMgmtServiceImpl.java
|
552abf5f68c8310bee104d1e6caa16e423821a23
|
[] |
no_license
|
Chetan-Dhoble/Spring
|
27c3b77753d82bbfdbce628f4bde7f06af4ff113
|
895c884075473a474dcb0b1f7122adb31c8f72e6
|
refs/heads/master
| 2022-09-28T21:18:54.263417
| 2020-05-27T14:30:25
| 2020-05-27T14:30:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 917
|
java
|
package com.nt.service;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.nt.bo.UserBO;
import com.nt.dao.LoginDAO;
import com.nt.dto.UserDTO;
@Service("loginService")
public class LoginMgmtServiceImpl implements LoginMgmtService {
@Autowired
private LoginDAO dao;
@Override
@Transactional(propagation = Propagation.REQUIRED, transactionManager = "transactionManager")
public String authenticate(UserDTO dto) {
UserBO bo=null;
int count=0;
//convert dto to bo
bo=new UserBO();
BeanUtils.copyProperties(dto,bo);
//use dAO
count=dao.validate(bo);
return count==0?"InValid Credentials ": "Valid Credentials";
}
}
|
[
"TL@gmail.com"
] |
TL@gmail.com
|
b3b0a43eaf3ee7d79c9fa86a42eb89241cfbb7cc
|
92dd6bc0a9435c359593a1f9b309bb58d3e3f103
|
/src/May2021Leetcode/_0311SparseMatrixMultiplication.java
|
b8dda2a7018d6c5b29b418253f1f6feff42c1fb2
|
[
"MIT"
] |
permissive
|
darshanhs90/Java-Coding
|
bfb2eb84153a8a8a9429efc2833c47f6680f03f4
|
da76ccd7851f102712f7d8dfa4659901c5de7a76
|
refs/heads/master
| 2023-05-27T03:17:45.055811
| 2021-06-16T06:18:08
| 2021-06-16T06:18:08
| 36,981,580
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 674
|
java
|
package May2021Leetcode;
public class _0311SparseMatrixMultiplication {
public static void main(String[] args) {
System.out.println(multiply(new int[][] { new int[] { 1, 0, 0 }, new int[] { -1, 0, 3 } },
new int[][] { new int[] { 7, 0, 0 }, new int[] { 0, 0, 0 }, new int[] { 0, 0, 1 } }));
}
public static int[][] multiply(int[][] A, int[][] B) {
int outRow = A.length;
int outCol = B[0].length;
int commonCol = A[0].length;
int[][] out = new int[outRow][outCol];
for (int i = 0; i < outRow; i++) {
for (int j = 0; j < outCol; j++) {
for (int k = 0; k < commonCol; k++) {
out[i][j] += A[i][k] * B[k][j];
}
}
}
return out;
}
}
|
[
"hsdars@gmail.com"
] |
hsdars@gmail.com
|
847b990b6e5bd8edde14793e6bd5f17bce01e69e
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/google/android/gms/internal/measurement/zzt.java
|
598f853d1983187cbb5d4a68d3caa4635ed6543a
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,001
|
java
|
package com.google.android.gms.internal.measurement;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import com.tencent.matrix.trace.core.AppMethodBeat;
public final class zzt
extends zzn
implements zzr
{
zzt(IBinder paramIBinder)
{
super(paramIBinder, "com.google.android.finsky.externalreferrer.IGetInstallReferrerService");
}
public final Bundle zza(Bundle paramBundle)
{
AppMethodBeat.i(2266);
Object localObject = obtainAndWriteInterfaceToken();
zzp.zza((Parcel)localObject, paramBundle);
paramBundle = transactAndReadException(1, (Parcel)localObject);
localObject = (Bundle)zzp.zza(paramBundle, Bundle.CREATOR);
paramBundle.recycle();
AppMethodBeat.o(2266);
return localObject;
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes7.jar
* Qualified Name: com.google.android.gms.internal.measurement.zzt
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
d56c9f8a9b627ac02bca5e12cdbc3363182b0731
|
4c03af53e4bf38961923b167bcc3fd5fb4d4a789
|
/example/tiger/manual/tiger/src/main/java/mb/tiger/package-info.java
|
4cac77abf8c5756ea74e1cb1aa676a02001e018d
|
[
"Apache-2.0"
] |
permissive
|
metaborg/spoofax-pie
|
a367b679bd21d7f89841f4ef3e984e5c1653d5af
|
98f49ef75fcd4d957a65c9220e4dc4c01d354b01
|
refs/heads/develop
| 2023-07-27T06:08:28.446264
| 2023-07-16T14:46:02
| 2023-07-16T14:46:02
| 102,472,170
| 10
| 16
|
Apache-2.0
| 2023-02-06T17:30:58
| 2017-09-05T11:19:03
|
Java
|
UTF-8
|
Java
| false
| false
| 172
|
java
|
@DefaultQualifier(NonNull.class)
package mb.tiger;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.framework.qual.DefaultQualifier;
|
[
"gabrielkonat@gmail.com"
] |
gabrielkonat@gmail.com
|
4aead020feb537818126352a7487c50c175d2e40
|
e70abc02efbb8a7637eb3655f287b0a409cfa23b
|
/hyjf-mybatis/src/main/java/com/hyjf/mybatis/mapper/customize/AppointmentAuthLogCustomizeMapper.java
|
9799ed0372432ec916b99e7343a80b3624568c73
|
[] |
no_license
|
WangYouzheng1994/hyjf
|
ecb221560460e30439f6915574251266c1a49042
|
6cbc76c109675bb1f120737f29a786fea69852fc
|
refs/heads/master
| 2023-05-12T03:29:02.563411
| 2020-05-19T13:49:56
| 2020-05-19T13:49:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 987
|
java
|
package com.hyjf.mybatis.mapper.customize;
import java.util.List;
import java.util.Map;
import com.hyjf.mybatis.model.customize.AppointmentAuthLogCustomize;
import com.hyjf.mybatis.model.customize.AppointmentRecodLogCustomize;
public interface AppointmentAuthLogCustomizeMapper {
int countAppointRecordTotalNum(AppointmentAuthLogCustomize appointmentAuthLogCustomize);
List<AppointmentAuthLogCustomize> getAppointRecordList(
AppointmentAuthLogCustomize appoint);
int countAuthAppointRecordTotalNum(AppointmentAuthLogCustomize appoint);
List<AppointmentAuthLogCustomize> getAuthAppointRecordList(
AppointmentAuthLogCustomize appoint);
int countAppointRecordTotalNumMain(Map<String, Object> params);
List<AppointmentAuthLogCustomize> getAppointRecordListMain(
Map<String, Object> params);
List<AppointmentRecodLogCustomize> getAppointRecordListRecordMain(
Map<String, Object> params);
int countAppointRecordTotalRecordNumMain(Map<String, Object> params);
}
|
[
"heshuying@hyjf.com"
] |
heshuying@hyjf.com
|
5c6377219492c701ba0158649d54773cfcbe8d2d
|
4b659c77f681d93f66f016ecb319bc1b20874866
|
/scorpion-container/src/java/com/scorpion/huakerongtong/rabbit/util/http/fileupload/ThresholdingOutputStream.java
|
662316e63f73262c9247a709fc4767d182888dee
|
[] |
no_license
|
liangtao3838/scorpion-container
|
e024145f90215b163d33fff27c2dc1946754c0e7
|
93a0a20cf31e8352abe9aab972bd6933d8c358b4
|
refs/heads/master
| 2020-03-08T21:38:13.853867
| 2017-11-04T12:24:59
| 2017-11-04T12:24:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,475
|
java
|
/*
* Licensed to the HKRT Software Foundation (HKRTSF) 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 HKRT 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.scorpion.huakerongtong.com/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.scorpion.huakerongtong.rabbit.util.http.fileupload;
import java.io.IOException;
import java.io.OutputStream;
/**
* An output stream which triggers an event when a specified number of bytes of
* data have been written to it. The event can be used, for example, to throw
* an exception if a maximum has been reached, or to switch the underlying
* stream type when the threshold is exceeded.
* <p>
* This class overrides all <code>OutputStream</code> methods. However, these
* overrides ultimately call the corresponding methods in the underlying output
* stream implementation.
* <p>
* NOTE: This implementation may trigger the event <em>before</em> the threshold
* is actually reached, since it triggers when a pending write operation would
* cause the threshold to be exceeded.
*/
public abstract class ThresholdingOutputStream
extends OutputStream
{
// ----------------------------------------------------------- Data members
/**
* The threshold at which the event will be triggered.
*/
private final int threshold;
/**
* The number of bytes written to the output stream.
*/
private long written;
/**
* Whether or not the configured threshold has been exceeded.
*/
private boolean thresholdExceeded;
// ----------------------------------------------------------- Constructors
/**
* Constructs an instance of this class which will trigger an event at the
* specified threshold.
*
* @param threshold The number of bytes at which to trigger an event.
*/
public ThresholdingOutputStream(int threshold)
{
this.threshold = threshold;
}
// --------------------------------------------------- OutputStream methods
/**
* Writes the specified byte to this output stream.
*
* @param b The byte to be written.
*
* @exception IOException if an error occurs.
*/
@Override
public void write(int b) throws IOException
{
checkThreshold(1);
getStream().write(b);
written++;
}
/**
* Writes <code>b.length</code> bytes from the specified byte array to this
* output stream.
*
* @param b The array of bytes to be written.
*
* @exception IOException if an error occurs.
*/
@Override
public void write(byte b[]) throws IOException
{
checkThreshold(b.length);
getStream().write(b);
written += b.length;
}
/**
* Writes <code>len</code> bytes from the specified byte array starting at
* offset <code>off</code> to this output stream.
*
* @param b The byte array from which the data will be written.
* @param off The start offset in the byte array.
* @param len The number of bytes to write.
*
* @exception IOException if an error occurs.
*/
@Override
public void write(byte b[], int off, int len) throws IOException
{
checkThreshold(len);
getStream().write(b, off, len);
written += len;
}
/**
* Flushes this output stream and forces any buffered output bytes to be
* written out.
*
* @exception IOException if an error occurs.
*/
@Override
public void flush() throws IOException
{
getStream().flush();
}
/**
* Closes this output stream and releases any system resources associated
* with this stream.
*
* @exception IOException if an error occurs.
*/
@Override
public void close() throws IOException
{
try
{
flush();
}
catch (IOException ignored)
{
// ignore
}
getStream().close();
}
// --------------------------------------------------------- Public methods
/**
* Determines whether or not the configured threshold has been exceeded for
* this output stream.
*
* @return {@code true} if the threshold has been reached;
* {@code false} otherwise.
*/
public boolean isThresholdExceeded()
{
return written > threshold;
}
// ------------------------------------------------------ Protected methods
/**
* Checks to see if writing the specified number of bytes would cause the
* configured threshold to be exceeded. If so, triggers an event to allow
* a concrete implementation to take action on this.
*
* @param count The number of bytes about to be written to the underlying
* output stream.
*
* @exception IOException if an error occurs.
*/
protected void checkThreshold(int count) throws IOException
{
if (!thresholdExceeded && written + count > threshold)
{
thresholdExceeded = true;
thresholdReached();
}
}
// ------------------------------------------------------- Abstract methods
/**
* Returns the underlying output stream, to which the corresponding
* <code>OutputStream</code> methods in this class will ultimately delegate.
*
* @return The underlying output stream.
*
* @exception IOException if an error occurs.
*/
protected abstract OutputStream getStream() throws IOException;
/**
* Indicates that the configured threshold has been reached, and that a
* subclass should take whatever action necessary on this event. This may
* include changing the underlying output stream.
*
* @exception IOException if an error occurs.
*/
protected abstract void thresholdReached() throws IOException;
}
|
[
"zhengchenglei@jd.com"
] |
zhengchenglei@jd.com
|
76db15906d0fe89962ae6aa37432343e83707d33
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/java-design-patterns/learning/429/AbstractFilter.java
|
7d7bd30cc359fe63b8e8e1100372560f58019c69
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,909
|
java
|
/**
* The MIT License
* Copyright (c) 2014-2016 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.iluwatar.intercepting.filter;
/**
* Base class for order processing filters. Handles chain management.
*
*/
public abstract class AbstractFilter implements Filter {
private Filter next;
public AbstractFilter() {}
public AbstractFilter(Filter next) {
this.next = next;
}
@Override
public void setNext(Filter filter) {
this.next = filter;
}
@Override
public Filter getNext() {
return next;
}
@Override
public Filter getLast() {
Filter last = this;
while (last.getNext() != null) {
last = last.getNext();
}
return last;
}
@Override
public String execute(Order order) {
if (getNext() != null) {
return getNext().execute(order);
} else {
return "";
}
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
1bf7b501c85ecc9f3871b8c9990ee90395ffb756
|
14b497b11196ca5bf170bbed99b54e172404c4ce
|
/src/learning_java/GrammarTest/ScannerTest.java
|
ab866b40172536b7709a2986136b9b2db023bf8a
|
[] |
no_license
|
lenfranky/java_learning_lz
|
54a326cf23f3248bd2a5386dd146ec36cbfeeed4
|
619bcf7b4ab60156940260debed3bd9dc8c702ba
|
refs/heads/master
| 2020-04-03T15:43:49.104485
| 2019-06-26T12:24:22
| 2019-06-26T12:24:22
| 155,374,640
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 448
|
java
|
package learning_java.GrammarTest;
import java.util.Scanner;
public class ScannerTest {
public static void scannerTest() {
Scanner input = new Scanner(System.in);
int intValue = input.nextInt();
String line = input.nextLine();
System.out.println("intValue:" + intValue);
System.out.println("line:" + line);
}
public static void main(String[] args) {
ScannerTest.scannerTest();
}
}
|
[
"327792549@qq.com"
] |
327792549@qq.com
|
a369502418b571253fce7f6f3b02f9121e29351b
|
b1979f178fe4c13b6e6b82f75acc012c8e327412
|
/Venice/Venice-Interface-Model/src/main/java/com/gdn/venice/facade/RafLoginHistorySessionEJBRemote.java
|
e8d4e65bd17db83d97b6688634bd2ebb7bd08c07
|
[
"Apache-2.0"
] |
permissive
|
yauritux/venice-legacy
|
57ce5ff6c37dcb4e6efd299975326101c7ef6bd5
|
0a04259bed3a3564b2d6663b663fd8901fb67e3c
|
refs/heads/master
| 2016-09-06T12:04:43.249545
| 2013-12-10T18:47:09
| 2013-12-10T18:47:09
| 14,918,264
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,594
|
java
|
package com.gdn.venice.facade;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Remote;
import com.gdn.venice.persistence.RafLoginHistory;
import com.djarum.raf.utilities.JPQLAdvancedQueryCriteria;
import com.gdn.venice.facade.finder.FinderReturn;
@Remote
public interface RafLoginHistorySessionEJBRemote {
/**
* queryByRange - allows querying by range/block
*
* @param jpqlStmt
* @param firstResult
* @param maxResults
* @return a list of RafLoginHistory
*/
public List<RafLoginHistory> queryByRange(String jpqlStmt, int firstResult,
int maxResults);
/**
* persistRafLoginHistory persists a country
*
* @param rafLoginHistory
* @return the persisted RafLoginHistory
*/
public RafLoginHistory persistRafLoginHistory(RafLoginHistory rafLoginHistory);
/**
* persistRafLoginHistoryList - persists a list of RafLoginHistory
*
* @param rafLoginHistoryList
* @return the list of persisted RafLoginHistory
*/
public ArrayList<RafLoginHistory> persistRafLoginHistoryList(
List<RafLoginHistory> rafLoginHistoryList);
/**
* mergeRafLoginHistory - merges a RafLoginHistory
*
* @param rafLoginHistory
* @return the merged RafLoginHistory
*/
public RafLoginHistory mergeRafLoginHistory(RafLoginHistory rafLoginHistory);
/**
* mergeRafLoginHistoryList - merges a list of RafLoginHistory
*
* @param rafLoginHistoryList
* @return the merged list of RafLoginHistory
*/
public ArrayList<RafLoginHistory> mergeRafLoginHistoryList(
List<RafLoginHistory> rafLoginHistoryList);
/**
* removeRafLoginHistory - removes a RafLoginHistory
*
* @param rafLoginHistory
*/
public void removeRafLoginHistory(RafLoginHistory rafLoginHistory);
/**
* removeRafLoginHistoryList - removes a list of RafLoginHistory
*
* @param rafLoginHistoryList
*/
public void removeRafLoginHistoryList(List<RafLoginHistory> rafLoginHistoryList);
/**
* findByRafLoginHistoryLike - finds a list of RafLoginHistory Like
*
* @param rafLoginHistory
* @return the list of RafLoginHistory found
*/
public List<RafLoginHistory> findByRafLoginHistoryLike(RafLoginHistory rafLoginHistory,
JPQLAdvancedQueryCriteria criteria, int firstResult, int maxResults);
/**
* findByRafLoginHistory>LikeFR - finds a list of RafLoginHistory> Like with a finder return object
*
* @param rafLoginHistory
* @return the list of RafLoginHistory found
*/
public FinderReturn findByRafLoginHistoryLikeFR(RafLoginHistory rafLoginHistory,
JPQLAdvancedQueryCriteria criteria, int firstResult, int maxResults);
}
|
[
"yauritux@gmail.com"
] |
yauritux@gmail.com
|
1286979464a405a7d404f3437ad9012bdd35dd6e
|
4bdf74d8dbb210d29db0fdf1ae97aad08929612c
|
/data_test/84424/Account.java
|
cd791d43059b165b5030416f9323e193ef732fd4
|
[] |
no_license
|
huyenhuyen1204/APR_data
|
cba03642f68ce543690a75bcefaf2e0682df5e7e
|
cb9b78b9e973202e9945d90e81d1bfaef0f9255c
|
refs/heads/master
| 2023-05-13T21:52:20.294382
| 2021-06-02T17:52:30
| 2021-06-02T17:52:30
| 373,250,240
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,281
|
java
|
import java.util.ArrayList;
public class Account {
private double balance;
private ArrayList<Transaction> transitionList = new ArrayList<>();
public Account() {
}
private void deposit(double amount) {
if (amount <= 0) {
System.out.println("So tien ban nap vao khong hop le!");
}
this.balance = this.balance + amount;
}
private void withdraw(double amount) {
if (amount <= 0) {
System.out.println("So tien ban rut ra khong hop le!");
}
if (amount > this.balance) {
System.out.println("So tien ban rut vuot qua so du!");
}
this.balance = this.balance - amount;
}
/**
* Them giao dich.
* @param amount so tien giao dich
* @param operation ten giao dich
*/
public void addTransaction(double amount, String operation) {
if (operation.equals("deposit")) {
this.deposit(amount);
if (amount > 0) {
Transaction transaction
= new Transaction("Nap tien", amount, this.balance);
this.transitionList.add(transaction);
}
return;
}
if (operation.equals("withdraw")) {
this.withdraw(amount);
if (amount > 0 && amount <= this.balance) {
Transaction transaction
= new Transaction("Rut tien", amount, this.balance);
this.transitionList.add(transaction);
}
return;
}
System.out.println("Yeu cau khong hop le!");
}
public String rounding(double x) {
x = (double) Math.round(x * 100) / 100;
return String.format("%.2f", x);
}
/**
* in thong tin.
*/
public void printTransaction() {
for (int i = 0; i < this.transitionList.size(); i++) {
Transaction transaction = this.transitionList.get(i);
String text = "";
text += "Giao dich " + (i + 1) + ": " + transaction.getOperation();
text += " $" + this.rounding(transaction.getAmount()) + ". ";
text += "So du luc nay: $" + this.rounding(transaction.getBalance()) + ".";
System.out.println(text);
}
}
}
|
[
"nguyenhuyen98pm@gmail.com"
] |
nguyenhuyen98pm@gmail.com
|
677734a67ed00d697a9b74f5b18f2407dfc29619
|
df134b422960de6fb179f36ca97ab574b0f1d69f
|
/net/minecraft/server/v1_16_R2/InventoryEnderChest.java
|
948654e93a6bd4d85c8a4894356875ad91f65f8b
|
[] |
no_license
|
TheShermanTanker/NMS-1.16.3
|
bbbdb9417009be4987872717e761fb064468bbb2
|
d3e64b4493d3e45970ec5ec66e1b9714a71856cc
|
refs/heads/master
| 2022-12-29T15:32:24.411347
| 2020-10-08T11:56:16
| 2020-10-08T11:56:16
| 302,324,687
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,229
|
java
|
/* */ package net.minecraft.server.v1_16_R2;
/* */ import org.bukkit.inventory.InventoryHolder;
/* */
/* */ public class InventoryEnderChest extends InventorySubcontainer {
/* */ private TileEntityEnderChest a;
/* */
/* */ public TileEntityEnderChest getTileEntity() {
/* 8 */ return this.a;
/* */ }
/* */ private final EntityHuman owner;
/* */
/* */ public InventoryHolder getBukkitOwner() {
/* 13 */ return (InventoryHolder)this.owner.getBukkitEntity();
/* */ }
/* */
/* */
/* */ public Location getLocation() {
/* 18 */ if (getTileEntity() == null) return null;
/* 19 */ return new Location((World)this.a.getWorld().getWorld(), this.a.getPosition().getX(), this.a.getPosition().getY(), this.a.getPosition().getZ());
/* */ }
/* */
/* */ public InventoryEnderChest(EntityHuman owner) {
/* 23 */ super(27);
/* 24 */ this.owner = owner;
/* */ }
/* */
/* */
/* */ public void a(TileEntityEnderChest tileentityenderchest) {
/* 29 */ this.a = tileentityenderchest;
/* */ }
/* */
/* */
/* */
/* */ public void a(NBTTagList nbttaglist) {
/* */ int i;
/* 36 */ for (i = 0; i < getSize(); i++) {
/* 37 */ setItem(i, ItemStack.b);
/* */ }
/* */
/* 40 */ for (i = 0; i < nbttaglist.size(); i++) {
/* 41 */ NBTTagCompound nbttagcompound = nbttaglist.getCompound(i);
/* 42 */ int j = nbttagcompound.getByte("Slot") & 0xFF;
/* */
/* 44 */ if (j >= 0 && j < getSize()) {
/* 45 */ setItem(j, ItemStack.a(nbttagcompound));
/* */ }
/* */ }
/* */ }
/* */
/* */
/* */
/* */ public NBTTagList g() {
/* 53 */ NBTTagList nbttaglist = new NBTTagList();
/* */
/* 55 */ for (int i = 0; i < getSize(); i++) {
/* 56 */ ItemStack itemstack = getItem(i);
/* */
/* 58 */ if (!itemstack.isEmpty()) {
/* 59 */ NBTTagCompound nbttagcompound = new NBTTagCompound();
/* */
/* 61 */ nbttagcompound.setByte("Slot", (byte)i);
/* 62 */ itemstack.save(nbttagcompound);
/* 63 */ nbttaglist.add(nbttagcompound);
/* */ }
/* */ }
/* */
/* 67 */ return nbttaglist;
/* */ }
/* */
/* */
/* */ public boolean a(EntityHuman entityhuman) {
/* 72 */ return (this.a != null && !this.a.a(entityhuman)) ? false : super.a(entityhuman);
/* */ }
/* */
/* */
/* */ public void startOpen(EntityHuman entityhuman) {
/* 77 */ if (this.a != null) {
/* 78 */ this.a.d();
/* */ }
/* */
/* 81 */ super.startOpen(entityhuman);
/* */ }
/* */
/* */
/* */ public void closeContainer(EntityHuman entityhuman) {
/* 86 */ if (this.a != null) {
/* 87 */ this.a.f();
/* */ }
/* */
/* 90 */ super.closeContainer(entityhuman);
/* 91 */ this.a = null;
/* */ }
/* */ }
/* Location: C:\Users\Josep\Downloads\Decompile Minecraft\tuinity-1.16.3.jar!\net\minecraft\server\v1_16_R2\InventoryEnderChest.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"tanksherman27@gmail.com"
] |
tanksherman27@gmail.com
|
ce6d11e7b42da5dc51ef2bd4455655e1b2383f42
|
354867d9184b091df443731b1c8c39e443f949ae
|
/skill6-parent/skill6-dashboard/src/main/java/cn/skill6/dashboard/model/po/SysPermissionInfo.java
|
d8482f5431a7b24e5946fdcbe6c63f8b620d93ab
|
[
"Apache-2.0"
] |
permissive
|
BossDing/skill6
|
00b07d271480009148e7063813af34637b29edaa
|
f5e04f8f8a1a9ef4f01a305fbf3b1b2eb956afac
|
refs/heads/master
| 2020-04-05T11:42:27.707068
| 2018-11-01T16:53:38
| 2018-11-01T16:53:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package cn.skill6.dashboard.model.po;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 系统权限实体类
*
* @author 何明胜
* @version 1.1
* @since 2018年9月27日 下午11:20:00
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysPermissionInfo {
private Long permissionId;
private String permissionName;
private String permissionCode;
private String permissionDesc;
private Boolean permissionNavi;
private String permissionUrl;
private Date permissionCreateTime;
private Date permissionLastModifyTime;
private Boolean permissionValid;
}
|
[
"husen@hemingsheng.cn"
] |
husen@hemingsheng.cn
|
0de544b8b880911fb0ad974cecd59acc121eca45
|
6367716b8dc38b4d735344233fd9817d244f1f58
|
/src/main/java/com/alipay/api/response/KoubeiItemExtitemCreateResponse.java
|
81c5bab32945cbd8b03ebfda7c34bfd9ba460718
|
[] |
no_license
|
xuejike/alipay_sdk
|
c7db3d1bd9e9cae03513bde8e69995ecc3f2cd56
|
a96782df615b340a4515e7758f55a1232be63389
|
refs/heads/master
| 2021-01-12T03:49:09.482092
| 2017-01-07T09:17:59
| 2017-01-07T09:17:59
| 78,266,945
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 344
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.item.extitem.create response.
*
* @author auto create
* @since 1.0, 2016-07-06 10:48:25
*/
public class KoubeiItemExtitemCreateResponse extends AlipayResponse {
private static final long serialVersionUID = 8154496123819898228L;
}
|
[
"xuejike2004@126.com"
] |
xuejike2004@126.com
|
ae0c9eba5cabb7943f101b2ba8e86e3c1298479e
|
dba87418d2286ce141d81deb947305a0eaf9824f
|
/sources/com/iaai/android/bdt/feature/auctionMainPage/AuctionMainListFragment$handleKeywordSearch$1.java
|
bfdc1a0f30a6cde12f60c8c7af468f5cbdd1eab5
|
[] |
no_license
|
Sluckson/copyOavct
|
1f73f47ce94bb08df44f2ba9f698f2e8589b5cf6
|
d20597e14411e8607d1d6e93b632d0cd2e8af8cb
|
refs/heads/main
| 2023-03-09T12:14:38.824373
| 2021-02-26T01:38:16
| 2021-02-26T01:38:16
| 341,292,450
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,670
|
java
|
package com.iaai.android.bdt.feature.auctionMainPage;
import android.content.Intent;
import android.view.View;
import android.widget.EditText;
import com.iaai.android.C2723R;
import com.iaai.android.bdt.feature.findVehiclePage.SearchPanelFindVehicleActivity;
import com.iaai.android.bdt.utils.Constants_MVVM;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(mo66931bv = {1, 0, 3}, mo66932d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, mo66933d2 = {"<anonymous>", "", "it", "Landroid/view/View;", "kotlin.jvm.PlatformType", "onClick"}, mo66934k = 3, mo66935mv = {1, 1, 13})
/* compiled from: AuctionMainListFragment.kt */
final class AuctionMainListFragment$handleKeywordSearch$1 implements View.OnClickListener {
final /* synthetic */ AuctionMainListFragment this$0;
AuctionMainListFragment$handleKeywordSearch$1(AuctionMainListFragment auctionMainListFragment) {
this.this$0 = auctionMainListFragment;
}
public final void onClick(View view) {
Intent intent = new Intent(this.this$0.getActivity(), SearchPanelFindVehicleActivity.class);
intent.putExtra(Constants_MVVM.EXTRA_IS_AUCTION_SEARCH, true);
EditText editText = (EditText) this.this$0._$_findCachedViewById(C2723R.C2726id.etSearch);
Intrinsics.checkExpressionValueIsNotNull(editText, "etSearch");
intent.putExtra(Constants_MVVM.EXTRA_SEARCH_INPUT_KEY, editText.getText().toString());
this.this$0.startActivityForResult(intent, 104);
}
}
|
[
"lucksonsurprice94@gmail.com"
] |
lucksonsurprice94@gmail.com
|
f4b46303376f623a4cedc4d2bf03a1440f9ac6b2
|
e1938b85ba2f6f15bd925e916727f48d9db5490d
|
/src/main/java/com/qunjie/mysql/mapper/CrmLoggerMapper.java
|
e7e5b5b1ce3f710a072297e5d443d18f73be81b5
|
[] |
no_license
|
weizhuxiao/integration
|
5a6daea250f4becf7f6286d1818e2fab754289cd
|
56765a97bbeb804004cfbb5841386c6f0185ea37
|
refs/heads/main
| 2023-08-19T04:26:48.267906
| 2021-05-19T08:35:20
| 2021-05-19T08:35:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 648
|
java
|
package com.qunjie.mysql.mapper;
import com.qunjie.mysql.model.LoggerEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* Copyright (C),2020-2020,群杰印章物联网
* FileName: com.qunje.oacrmbridge.mysql.mapper.CrmLoggerMapper
*
* @author whs
* Date: 2020/12/29 9:39
* Description: 人资同步日志
* History:
* <author> <time> <version> <desc>
* 修改人姓名 修改时间 版本号 描述
*/
@Repository
public interface CrmLoggerMapper {
public int add(@Param("condition") LoggerEntity condition);
}
|
[
"704378949@qq.com"
] |
704378949@qq.com
|
ea1bbc380a3f0e7f5cb1683eef45c74757a85dd1
|
5fe8c30ffb36e468eb81dce4a66b25caca387c37
|
/app/com/vangav/vos_instagram/controllers/unlike_post/ControllerUnlikePost.java
|
2cc72aa04e40eb682a3bc2e6b82538d3728f61c7
|
[
"MIT"
] |
permissive
|
HomeIncorporated/vos_instagram
|
bfa90dbc951d06eca1d52be45130b84377778a51
|
87dae01ef5c1ba2e4a6d9e20e83b3fc2cacd5438
|
refs/heads/master
| 2022-02-21T19:37:11.984058
| 2019-10-02T12:22:02
| 2019-10-02T12:22:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,172
|
java
|
/**
* "First, solve the problem. Then, write the code. -John Johnson"
* "Or use Vangav M"
* www.vangav.com
* */
/**
* MIT License
*
* Copyright (c) 2016 Vangav
*
* 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.
* */
/**
* Community
* Facebook Group: Vangav Open Source - Backend
* fb.com/groups/575834775932682/
* Facebook Page: Vangav
* fb.com/vangav.f
*
* Third party communities for Vangav Backend
* - play framework
* - cassandra
* - datastax
*
* Tag your question online (e.g.: stack overflow, etc ...) with
* #vangav_backend
* to easier find questions/answers online
* */
package com.vangav.vos_instagram.controllers.unlike_post;
import play.libs.F.Promise;
import play.mvc.Controller;
import play.mvc.Result;
/**
* GENERATED using ControllersGeneratorMain.java
*/
/**
* ControllerUnlikePost
* is the entry point for UnlikePost
* */
public class ControllerUnlikePost extends Controller {
public static Promise<Result> postUnlikePost () {
final HandlerUnlikePost handlerUnlikePost =
new HandlerUnlikePost();
return handlerUnlikePost.handleRequestAsync(request() );
}
}
|
[
"travolque@gmail.com"
] |
travolque@gmail.com
|
01fbfd2e4263a530df8ff430e193954e3a44248a
|
1818a443f9bda707ec5399ec955d43fea8fdbc11
|
/src/com/ceco/oreo/gravitybox/shortcuts/NetworkModeShortcut.java
|
c8da05edbacda6dfe0ba95ad5ef6588545363ad4
|
[
"Apache-2.0"
] |
permissive
|
Firefds/GravityBox
|
1ed21f6f268cdba5553426fc5af3318d99c6f34f
|
a6ce8728ee2924a964bc3d54579fbaf137073bfa
|
refs/heads/oreo
| 2022-12-11T12:38:58.964325
| 2019-02-18T09:57:51
| 2019-02-18T09:57:51
| 106,823,639
| 7
| 1
| null | 2019-02-18T09:57:54
| 2017-10-13T12:49:55
|
Java
|
UTF-8
|
Java
| false
| false
| 6,862
|
java
|
/*
* Copyright (C) 2015 Peter Gregus for GravityBox Project (C3C076@xda)
* 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.ceco.oreo.gravitybox.shortcuts;
import java.util.ArrayList;
import java.util.List;
import com.ceco.oreo.gravitybox.R;
import com.ceco.oreo.gravitybox.PhoneWrapper;
import com.ceco.oreo.gravitybox.adapters.IIconListAdapterItem;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
public class NetworkModeShortcut extends AMultiShortcut {
protected static final String ACTION = PhoneWrapper.ACTION_CHANGE_NETWORK_TYPE;
public NetworkModeShortcut(Context context) {
super(context);
}
@Override
public String getText() {
return mContext.getString(R.string.shortcut_network_mode);
}
@Override
public Drawable getIconLeft() {
return mContext.getDrawable(R.drawable.shortcut_network_mode);
}
@Override
protected String getAction() {
return ACTION;
}
@Override
protected String getShortcutName() {
return getText();
}
@Override
protected List<IIconListAdapterItem> getShortcutList() {
final List<IIconListAdapterItem> list = new ArrayList<IIconListAdapterItem>();
list.add(new ShortcutItem(mContext, R.string.network_mode_1,
R.drawable.shortcut_network_mode_2g, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_GSM_ONLY);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_3,
R.drawable.shortcut_network_mode_2g3g, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_GSM_WCDMA_AUTO);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_0,
R.drawable.shortcut_network_mode_3g2g, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_WCDMA_PREFERRED);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_2,
R.drawable.shortcut_network_mode_3g, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_WCDMA_ONLY);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_4,
R.drawable.shortcut_network_mode_cdma_evdo, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_CDMA_EVDO);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_5,
R.drawable.shortcut_network_mode_cdma, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_CDMA_ONLY);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_6,
R.drawable.shortcut_network_mode_evdo, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_EVDO_ONLY);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_7,
R.drawable.shortcut_network_mode_2g3g, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_GLOBAL);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_8,
R.drawable.shortcut_network_mode_lte_cdma, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_LTE_CDMA_EVDO);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_9,
R.drawable.shortcut_network_mode_lte_gsm, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_LTE_GSM_WCDMA);
}
}));
list.add(new ShortcutItem(mContext, R.string.network_mode_10,
R.drawable.shortcut_network_mode_lte_global, new ExtraDelegate() {
@Override
public void addExtraTo(Intent intent) {
intent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
PhoneWrapper.NT_LTE_CMDA_EVDO_GSM_WCDMA);
}
}));
return list;
}
public static void launchAction(final Context context, Intent intent) {
Intent launchIntent = new Intent(ACTION);
launchIntent.putExtra(PhoneWrapper.EXTRA_NETWORK_TYPE,
intent.getIntExtra(PhoneWrapper.EXTRA_NETWORK_TYPE, 0));
context.sendBroadcast(launchIntent);
}
}
|
[
"ceco@ceco.sk.eu.org"
] |
ceco@ceco.sk.eu.org
|
b85262e2766670a3dfc1b4faca6dd9d698be8ef4
|
c2933cb819e2e025492bd918be701eb4a216b4eb
|
/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/ClientPWCBHandler.java
|
88fc0d63fa9860f0785376e00255d6776b270402
|
[
"Apache-2.0",
"BSD-3-Clause",
"W3C",
"LicenseRef-scancode-service-comp-arch"
] |
permissive
|
mcombell/tuscany-sca
|
d97b80936fdab29a6d3574b0836842ad0d49be21
|
1c3eb7960e96bf6e5db07fffa6f0f75d426e2114
|
refs/heads/2.0-M2
| 2022-07-12T00:10:09.889305
| 2009-03-20T11:18:39
| 2009-03-20T11:18:39
| 175,441
| 1
| 1
|
Apache-2.0
| 2022-07-08T18:56:43
| 2009-04-14T10:47:16
|
Shell
|
UTF-8
|
Java
| false
| false
| 1,891
|
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.tuscany.sca.binding.ws.axis2.itests.policy.mixed;
import java.io.IOException;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;
import org.apache.ws.security.WSPasswordCallback;
/**
* Sample userid passwd generation class
*
* @version $Rev$ $Date$
*/
public class ClientPWCBHandler implements CallbackHandler {
public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
System.out.println("*** Calling Client UserId/Password Handler .... ");
WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
System.out.println(" **** 1. UserId : " + pwcb.getIdentifer());
System.out.println(" **** 2. Passwd : " + pwcb.getPassword());
System.out.println(" **** 3. Usage : " + pwcb.getUsage());
pwcb.setPassword("TuscanyWsUserPasswd");
}
}
}
|
[
"lresende@apache.org"
] |
lresende@apache.org
|
82d7da81c515bc81ab46a648837bb96ace94dd8f
|
75c4712ae3f946db0c9196ee8307748231487e4b
|
/src/main/java/com/alipay/api/domain/AlipayOpenAppServiceMiniappnearbyQueryModel.java
|
a071315a262d2987e97961b480d4c680a17ffa2f
|
[
"Apache-2.0"
] |
permissive
|
yuanbaoMarvin/alipay-sdk-java-all
|
70a72a969f464d79c79d09af8b6b01fa177ac1be
|
25f3003d820dbd0b73739d8e32a6093468d9ed92
|
refs/heads/master
| 2023-06-03T16:54:25.138471
| 2021-06-25T14:48:21
| 2021-06-25T14:48:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 638
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 小程序功能服务poi查询
*
* @author auto create
* @since 1.0, 2019-08-01 20:34:59
*/
public class AlipayOpenAppServiceMiniappnearbyQueryModel extends AlipayObject {
private static final long serialVersionUID = 2759151246932861462L;
/**
* 服务编码
*/
@ApiField("service_code")
private String serviceCode;
public String getServiceCode() {
return this.serviceCode;
}
public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a6a63249531df676e7e2f7ab77ea91484d9c0669
|
c4ae981b1ed9400bba4889810af69ec4ee412eb5
|
/presenter/src/main/java/cn/appscomm/presenter/message/manager/NotificationManager.java
|
26133446e194d3951c58dac64fb050d227e4c4cf
|
[] |
no_license
|
cuijiehui/Module
|
975db270565dddadd6f346423f1b33721293172d
|
0b8add0c8d130f7c87b6fd0361c743d5a0c7bea6
|
refs/heads/master
| 2021-01-25T06:30:56.521949
| 2017-07-07T08:21:27
| 2017-07-07T08:21:27
| 93,586,646
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,054
|
java
|
package cn.appscomm.presenter.message.manager;
import android.os.Handler;
import android.text.TextUtils;
import cn.appscomm.presenter.message.appparse.FacebookMessenger;
import cn.appscomm.presenter.message.PackageMap;
import cn.appscomm.presenter.message.appparse.QQEmail;
import cn.appscomm.presenter.message.appparse.Skype;
import cn.appscomm.presenter.message.appparse.WhatsApp;
import cn.appscomm.presenter.mode.NotificationInfo;
import cn.appscomm.presenter.mode.NotificationRecord;
import cn.appscomm.presenter.mode.Notifications;
import cn.appscomm.presenter.util.LogUtil;
/**
* 作者:hsh
* 日期:2017/4/24
* 说明:
*/
public enum NotificationManager {
INSTANCE;
private boolean socialSwitch = false;
private boolean emailSwitch = false;
private boolean calendarSwitch = false;
private static int emailCount;
private static int calendarCount;
private void checkNotificationSwitch() {
boolean[] notificationSwitch = MessageManager.INSTANCE.checkNotificationSwitch();
if (notificationSwitch != null && notificationSwitch.length == 3) {
socialSwitch = notificationSwitch[0];
emailSwitch = notificationSwitch[1];
calendarSwitch = notificationSwitch[2];
}
LogUtil.i("NotificationReceiveService", "社交开关:" + socialSwitch + " 邮件开关:" + emailSwitch + " 日历开关:" + calendarSwitch);
}
NotificationRecord removeNotifications;
Runnable removeMsgCountRunnable = new Runnable() {
@Override
public void run() {
if (removeNotifications != null) {
LogUtil.i("NotificationReceiveService", "社交清零...");
removeNotifications.notificationCount = 0;
}
}
};
// 移除消息
public void removeNotification(Handler myHandler, String packageName) {
NotificationRecord notificationRecord = PackageMap.getMap().get(packageName);
if (notificationRecord != null && (Math.abs(System.currentTimeMillis() - notificationRecord.removeTime) > 500)) {
switch (notificationRecord.notificationType) {
case PackageMap.TYPE_EMAIL:
emailCount--;
emailCount = emailCount < 0 ? 0 : emailCount;
break;
case PackageMap.TYPE_CALENDAR:
calendarCount--;
calendarCount = calendarCount < 0 ? 0 : calendarCount;
break;
case PackageMap.TYPE_SOCIAL:
case PackageMap.TYPE_WECHAT:
case PackageMap.TYPE_VIBER:
case PackageMap.TYPE_SNAPCHAT:
case PackageMap.TYPE_WHATSAPP:
case PackageMap.TYPE_FACEBOOK:
case PackageMap.TYPE_HANGOUTS:
case PackageMap.TYPE_GMAIL:
case PackageMap.TYPE_MESSENGER:
case PackageMap.TYPE_INSTAGRAM:
case PackageMap.TYPE_TWITTER:
case PackageMap.TYPE_LINKEDIN:
case PackageMap.TYPE_UBER:
case PackageMap.TYPE_LINE:
case PackageMap.TYPE_SKYPE:
notificationRecord.notificationCount = 0;
break;
case PackageMap.TYPE_QQ:
removeNotifications = notificationRecord;
myHandler.postDelayed(removeMsgCountRunnable, 1000); // 延迟1秒钟执行,若1秒钟内有新消息过来,则取消执行(解决QQ有新消息过来会先移除消息)
break;
}
notificationRecord.removeTime = System.currentTimeMillis();
}
}
// 解析消息并发送
public void parseNotification(Handler myHandler, Notifications notifications) {
myHandler.removeCallbacks(removeMsgCountRunnable);
boolean result = true;
NotificationRecord notificationRecord = PackageMap.getMap().get(notifications.packageName);
if (notificationRecord != null && (Math.abs(System.currentTimeMillis() - notificationRecord.addTime) > 100)) {
notificationRecord.addTime = System.currentTimeMillis();
if (!TextUtils.isEmpty(notificationRecord.note)) {
switch (notificationRecord.note) {
case PackageMap.TYPE_NOTE_SOCIAL_WHATS_APP:
LogUtil.i("NotificationReceiveService", "WhatsApp特殊处理");
notificationRecord.addTime = 0L;
result = WhatsApp.parse(notifications);
break;
case PackageMap.TYPE_NOTE_SOCIAL_FACEBOOK_MESSENGER:
LogUtil.i("NotificationReceiveService", "Facebook Messenger特殊处理");
result = FacebookMessenger.parse(notifications);
break;
case PackageMap.TYPE_NOTE_SOCIAL_SKYPE:
LogUtil.i("NotificationReceiveService", "Skype特殊处理");
result = Skype.parse(notifications);
break;
case PackageMap.TYPE_NOTE_EMAIL_QQ:
LogUtil.i("NotificationReceiveService", "QQ邮件特殊处理");
result = QQEmail.parse(notifications);
break;
}
}
if (result) {
checkNotificationSwitch();
switch (notificationRecord.notificationType) {
case PackageMap.TYPE_SOCIAL:
case PackageMap.TYPE_WECHAT:
case PackageMap.TYPE_VIBER:
case PackageMap.TYPE_SNAPCHAT:
case PackageMap.TYPE_WHATSAPP:
case PackageMap.TYPE_QQ:
case PackageMap.TYPE_FACEBOOK:
case PackageMap.TYPE_HANGOUTS:
case PackageMap.TYPE_GMAIL:
case PackageMap.TYPE_MESSENGER:
case PackageMap.TYPE_INSTAGRAM:
case PackageMap.TYPE_TWITTER:
case PackageMap.TYPE_LINKEDIN:
case PackageMap.TYPE_UBER:
case PackageMap.TYPE_LINE:
case PackageMap.TYPE_SKYPE:
if (socialSwitch) {
LogUtil.i("NotificationReceiveService", "发送社交");
notificationRecord.notificationCount++;
MessageManager.INSTANCE.sendSocial(new NotificationInfo(notifications.title, notifications.content, notifications.timeStamp, notificationRecord.notificationType, notificationRecord.notificationCount));
}
break;
case PackageMap.TYPE_EMAIL:
if (emailSwitch) {
LogUtil.i("NotificationReceiveService", "发送邮件");
emailCount = emailCount < 0 ? 0 : emailCount;
emailCount++;
MessageManager.INSTANCE.sendEmail(new NotificationInfo(notifications.title, notifications.content, notifications.timeStamp, notificationRecord.notificationType, emailCount));
}
break;
case PackageMap.TYPE_CALENDAR:
if (calendarSwitch) {
LogUtil.i("NotificationReceiveService", "发送日历");
calendarCount = calendarCount < 0 ? 0 : calendarCount;
calendarCount++;
MessageManager.INSTANCE.sendCalendar(calendarCount);
}
break;
}
}
}
}
}
|
[
"714888928@qq.com"
] |
714888928@qq.com
|
1666e59dc2338e661961ed442c6c5beb12f1b51f
|
1e17d9f15e9f08686ec503cb3579f91e7ae755fe
|
/urm-core/src/main/java/com/iluwatar/DomainMapper.java
|
637f5fc94e073bae35d9ed9661b36a6128663388
|
[
"Apache-2.0"
] |
permissive
|
safiqksm/uml-reverse-mapper
|
dec2236b77a1cc6489c490f395ac05293f0abc6b
|
631e2dba518551b873f5d68ce92670ad4ad4e657
|
refs/heads/master
| 2021-01-21T00:56:49.011208
| 2015-09-14T20:13:43
| 2015-09-14T20:13:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,917
|
java
|
package com.iluwatar;
import com.iluwatar.domain.DomainObject;
import com.iluwatar.domain.Edge;
import com.iluwatar.presenters.DefaultGraphvizPresenter;
import com.iluwatar.presenters.Presenter;
import com.iluwatar.scanners.FieldScanner;
import com.iluwatar.scanners.HierarchyScanner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class DomainMapper {
private static final Logger log = LoggerFactory.getLogger(DomainMapper.class);
private final FieldScanner fieldScanner;
private final HierarchyScanner hierarchyScanner;
private final List<Class<?>> classes;
private final Presenter presenter = new DefaultGraphvizPresenter();
DomainMapper(final List<Class<?>> classes) {
this.classes = classes;
fieldScanner = new FieldScanner(classes);
hierarchyScanner = new HierarchyScanner(classes);
}
public String describeDomain() throws ClassNotFoundException {
List<Edge> edges = new ArrayList<>();
edges.addAll(fieldScanner.getEdges());
edges.addAll(hierarchyScanner.getEdges());
List<DomainObject> domainObjects = classes.stream().map(DomainObject::new).collect(Collectors.toList());
return presenter.describe(domainObjects, edges);
}
public List<Class<?>> getClasses() {
return classes;
}
public static DomainMapper create(List<String> packages, URLClassLoader classLoader) throws ClassNotFoundException {
List<Class<?>> allClasses = DomainClassFinder.findClasses(packages, classLoader);
log.debug("Found " + allClasses.size() + " classes.");
return new DomainMapper(allClasses);
}
public static DomainMapper create(final List<String> packages) throws ClassNotFoundException {
return create(packages, null);
}
}
|
[
"iluwatar@gmail.com"
] |
iluwatar@gmail.com
|
c857d36491c21170e6199188697e1a225e17d33a
|
ccf82688f082e26cba5fc397c76c77cc007ab2e8
|
/Mage.Sets/src/mage/cards/o/OldManWillow.java
|
9c8463d993645f3b929c8193bfc9c9d01844d98c
|
[
"MIT"
] |
permissive
|
magefree/mage
|
3261a89320f586d698dd03ca759a7562829f247f
|
5dba61244c738f4a184af0d256046312ce21d911
|
refs/heads/master
| 2023-09-03T15:55:36.650410
| 2023-09-03T03:53:12
| 2023-09-03T03:53:12
| 4,158,448
| 1,803
| 1,133
|
MIT
| 2023-09-14T20:18:55
| 2012-04-27T13:18:34
|
Java
|
UTF-8
|
Java
| false
| false
| 3,115
|
java
|
package mage.cards.o;
import mage.MageInt;
import mage.MageObject;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.common.delayed.ReflexiveTriggeredAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.dynamicvalue.common.LandsYouControlCount;
import mage.abilities.effects.common.DoWhenCostPaid;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.Zone;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.ObjectSourcePlayer;
import mage.filter.predicate.ObjectSourcePlayerPredicate;
import mage.filter.predicate.mageobject.AnotherPredicate;
import mage.game.Game;
import mage.game.permanent.PermanentToken;
import mage.target.common.TargetOpponentsCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class OldManWillow extends CardImpl {
private static final FilterControlledPermanent filter
= new FilterControlledPermanent("another creature or a token");
static {
filter.add(OldManWillowPredicate.instance);
}
public OldManWillow(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{G}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.TREEFOLK);
this.power = new MageInt(0);
this.toughness = new MageInt(0);
// Old Man Willow's power and toughness are each equal to the number of lands you control.
this.addAbility(new SimpleStaticAbility(
Zone.ALL, new SetBasePowerToughnessSourceEffect(LandsYouControlCount.instance)
));
// Whenever Old Man Willow attacks, you may sacrifice another creature or a token. When you do, target creature an opponent controls gets -2/-2 until end of turn.
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(
new BoostTargetEffect(-2, -2), false
);
ability.addTarget(new TargetOpponentsCreaturePermanent());
this.addAbility(new AttacksTriggeredAbility(new DoWhenCostPaid(
ability, new SacrificeTargetCost(filter),
"Sacrifice another creature or a token?"
)));
}
private OldManWillow(final OldManWillow card) {
super(card);
}
@Override
public OldManWillow copy() {
return new OldManWillow(this);
}
}
enum OldManWillowPredicate implements ObjectSourcePlayerPredicate<MageObject> {
instance;
@Override
public boolean apply(ObjectSourcePlayer<MageObject> input, Game game) {
if (input.getObject() instanceof PermanentToken) {
return true;
}
return AnotherPredicate.instance.apply(input, game) && input.getObject().isCreature(game);
}
}
|
[
"theelk801@gmail.com"
] |
theelk801@gmail.com
|
7b56bd5bcdfab0eec16c2b3bc398641747aaa68f
|
4650372384cb3e3c5d14bf5c418c7301868a4f5e
|
/componet/src/main/java/org/zgl/service/client/err/AppError.java
|
9bab07d88bae92541b094a58ae1065b05640b35c
|
[] |
no_license
|
zglbig/eib
|
d5a63d6788849d461ff6b7e0e1541141ddf1bef7
|
d79afa7af18f126b1513f2ecfcb1fd30be754d0d
|
refs/heads/master
| 2020-03-27T08:28:44.304459
| 2018-08-27T07:05:04
| 2018-08-27T07:05:29
| 146,258,757
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 262
|
java
|
package org.zgl.service.client.err;
import org.zgl.proxy.rule.ITcpAsyncService;
/**
* @author: 猪哥亮
* @创建时间: 2018/8/15
* @文件描述:
*/
public interface AppError extends ITcpAsyncService {
void error(int errorCode, String msg);
}
|
[
"1030681978@qq.com"
] |
1030681978@qq.com
|
0fad91ffd91b34b8bdcd8135e512c060a2c15e66
|
94be114d4f9824ff29b0a3be7114f6f4bf66e187
|
/src/gov/ucore/ucore/_2_0/impl/DecimalErrorBoundAttributeImpl.java
|
79d4a2c4c159a6aa96cb90a26c061adc0f5d66f8
|
[] |
no_license
|
CSTARS/uicds
|
590b120eb3dcc24a2b73986bd32018e919c4af6a
|
b4095b7a33cc8af6e8a1b40ab8e83fc280d2d31a
|
refs/heads/master
| 2016-09-11T12:58:01.097476
| 2013-05-09T22:42:38
| 2013-05-09T22:42:38
| 9,942,515
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,617
|
java
|
/*
* An XML attribute type.
* Localname: decimalErrorBound
* Namespace: http://ucore.gov/ucore/2.0
* Java type: gov.ucore.ucore._2_0.DecimalErrorBoundAttribute
*
* Automatically generated - do not modify.
*/
package gov.ucore.ucore._2_0.impl;
/**
* A document containing one decimalErrorBound(@http://ucore.gov/ucore/2.0) attribute.
*
* This is a complex type.
*/
public class DecimalErrorBoundAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.ucore.ucore._2_0.DecimalErrorBoundAttribute
{
public DecimalErrorBoundAttributeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DECIMALERRORBOUND$0 =
new javax.xml.namespace.QName("http://ucore.gov/ucore/2.0", "decimalErrorBound");
/**
* Gets the "decimalErrorBound" attribute
*/
public java.math.BigDecimal getDecimalErrorBound()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DECIMALERRORBOUND$0);
if (target == null)
{
return null;
}
return target.getBigDecimalValue();
}
}
/**
* Gets (as xml) the "decimalErrorBound" attribute
*/
public org.apache.xmlbeans.XmlDecimal xgetDecimalErrorBound()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDecimal target = null;
target = (org.apache.xmlbeans.XmlDecimal)get_store().find_attribute_user(DECIMALERRORBOUND$0);
return target;
}
}
/**
* True if has "decimalErrorBound" attribute
*/
public boolean isSetDecimalErrorBound()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(DECIMALERRORBOUND$0) != null;
}
}
/**
* Sets the "decimalErrorBound" attribute
*/
public void setDecimalErrorBound(java.math.BigDecimal decimalErrorBound)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DECIMALERRORBOUND$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DECIMALERRORBOUND$0);
}
target.setBigDecimalValue(decimalErrorBound);
}
}
/**
* Sets (as xml) the "decimalErrorBound" attribute
*/
public void xsetDecimalErrorBound(org.apache.xmlbeans.XmlDecimal decimalErrorBound)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDecimal target = null;
target = (org.apache.xmlbeans.XmlDecimal)get_store().find_attribute_user(DECIMALERRORBOUND$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlDecimal)get_store().add_attribute_user(DECIMALERRORBOUND$0);
}
target.set(decimalErrorBound);
}
}
/**
* Unsets the "decimalErrorBound" attribute
*/
public void unsetDecimalErrorBound()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(DECIMALERRORBOUND$0);
}
}
}
|
[
"jrmerz@gmail.com"
] |
jrmerz@gmail.com
|
a53747621d028b04bc50033353f74cf6ab9831ab
|
e977c424543422f49a25695665eb85bfc0700784
|
/benchmark/icse15/693606/buggy-version/lucene/solr/trunk/src/java/org/apache/solr/search/function/ShortFieldSource.java
|
517c135971b567f2ba14a685c7805f2e54ec1edd
|
[] |
no_license
|
amir9979/pattern-detector-experiment
|
17fcb8934cef379fb96002450d11fac62e002dd3
|
db67691e536e1550245e76d7d1c8dced181df496
|
refs/heads/master
| 2022-02-18T10:24:32.235975
| 2019-09-13T15:42:55
| 2019-09-13T15:42:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,956
|
java
|
package org.apache.solr.search.function;
import org.apache.lucene.search.FieldCache;
import org.apache.lucene.index.IndexReader;
import java.io.IOException;
/**
*
*
**/
public class ShortFieldSource extends FieldCacheSource{
FieldCache.ShortParser parser;
public ShortFieldSource(String field) {
this(field, null);
}
public ShortFieldSource(String field, FieldCache.ShortParser parser) {
super(field);
this.parser = parser;
}
public String description() {
return "short(" + field + ')';
}
public DocValues getValues(IndexReader reader) throws IOException {
final short[] arr = (parser == null) ?
cache.getShorts(reader, field) :
cache.getShorts(reader, field, parser);
return new DocValues() {
@Override
public byte byteVal(int doc) {
return (byte) arr[doc];
}
@Override
public short shortVal(int doc) {
return (short) arr[doc];
}
public float floatVal(int doc) {
return (float) arr[doc];
}
public int intVal(int doc) {
return (int) arr[doc];
}
public long longVal(int doc) {
return (long) arr[doc];
}
public double doubleVal(int doc) {
return (double) arr[doc];
}
public String strVal(int doc) {
return Short.toString(arr[doc]);
}
public String toString(int doc) {
return description() + '=' + shortVal(doc);
}
};
}
public boolean equals(Object o) {
if (o.getClass() != ShortFieldSource.class) return false;
ShortFieldSource
other = (ShortFieldSource) o;
return super.equals(other)
&& this.parser == null ? other.parser == null :
this.parser.getClass() == other.parser.getClass();
}
public int hashCode() {
int h = parser == null ? Short.class.hashCode() : parser.getClass().hashCode();
h += super.hashCode();
return h;
}
}
|
[
"durieuxthomas@hotmail.com"
] |
durieuxthomas@hotmail.com
|
581fe3572e9d67acdb5b77dde9dbf31e10709e88
|
1b5987a7e72a58e12ac36a36a60aa6add2661095
|
/code/org/processmining/exporting/ExportPluginCollection.java
|
12a27c90a8eecf925b5050d535fbbb955c6b6c1f
|
[] |
no_license
|
qianc62/BePT
|
f4b1da467ee52e714c9a9cc2fb33cd2c75bdb5db
|
38fb5cc5521223ba07402c7bb5909b17967cfad8
|
refs/heads/master
| 2021-07-11T16:25:25.879525
| 2020-09-22T10:50:51
| 2020-09-22T10:50:51
| 201,562,390
| 36
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,533
|
java
|
/***********************************************************
* This software is part of the ProM package *
* http://www.processmining.org/ *
* *
* Copyright (c) 2003-2006 TU/e Eindhoven *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by Eindhoven University of Technology *
* Department of Information Systems *
* http://is.tm.tue.nl *
* *
**********************************************************/
package org.processmining.exporting;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import org.processmining.ProMSplash;
import org.processmining.framework.plugin.AnnotatedPlugin;
import org.processmining.framework.plugin.AnnotatedPluginAcceptingObject;
import org.processmining.framework.plugin.Plugin;
import org.processmining.framework.plugin.PluginCollection;
import org.processmining.framework.plugin.ProvidedObject;
/**
* @author Peter van den Brand
* @version 1.0
*/
public class ExportPluginCollection extends PluginCollection {
private static ExportPluginCollection instance = null;
protected ExportPluginCollection() {
super(Exporter.class);
}
/**
* Returns an instance of an <code>ExportPluginCollection</code>.
*
* @return an instance of an <code>ExportPluginCollection</code>
*/
public static ExportPluginCollection getInstance() {
if (instance == null) {
instance = new ExportPluginCollection();
}
return instance;
}
/**
* Returns <code>true</code> if the given plugin is an
* <code>ExportPlugin</code>.
*
* @param plugin
* the plugin to check
* @return <code>true</code> if the given plugin is an
* <code>ExportPlugin</code>, <code>false</code> otherwise.
*/
public boolean isValidPlugin(Plugin plugin) {
return plugin instanceof ExportPlugin;
}
@Override
protected AnnotatedPlugin createFromAnnotation(Class<?> pluginClass,
Method pluginMethod, Annotation annotation, ProMSplash splash) {
return new AnnotatedExportPlugin(pluginClass, pluginMethod, annotation);
}
}
class AnnotatedExportPlugin extends AnnotatedPluginAcceptingObject implements
ExportPlugin {
private String extension;
public AnnotatedExportPlugin(Class<?> pluginClass, Method pluginMethod,
Annotation annotation) {
super(pluginClass, pluginMethod, ((Exporter) annotation).name(),
((Exporter) annotation).help(), ((Exporter) annotation)
.sortName(), pluginMethod.getParameterTypes()[0]);
this.extension = ((Exporter) annotation).extension();
}
public String getFileExtension() {
return extension;
}
public void export(ProvidedObject object, OutputStream output)
throws IOException {
try {
getPluginMethod().invoke(getNewPluginInstance(),
findObject(object), output);
} catch (Throwable t) {
t.printStackTrace();
throw new IOException(t.getMessage());
}
}
@Override
public void validate() throws Exception {
if (getPluginMethod().getParameterTypes().length != 2
|| !getPluginMethod().getParameterTypes()[1]
.equals(OutputStream.class)) {
throw new Exception(
"Export plugin methods need to have exactly 2 parameters: the object to export and an OutputStream");
}
}
}
|
[
"qianc62@gmail.com"
] |
qianc62@gmail.com
|
871faafc1d66566e87aa1080c18fcf2e46e0a774
|
92c1674aacda6c550402a52a96281ff17cfe5cff
|
/module06/module233/module2/src/main/java/com/android/example/module06_module233_module2/ClassAAJ.java
|
961fa2e8d0c91fbc7436e78e40f92dfb82333704
|
[] |
no_license
|
bingranl/android-benchmark-project
|
2815c926df6a377895bd02ad894455c8b8c6d4d5
|
28738e2a94406bd212c5f74a79179424dd72722a
|
refs/heads/main
| 2023-03-18T20:29:59.335650
| 2021-03-12T11:47:03
| 2021-03-12T11:47:03
| 336,009,838
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,091
|
java
|
package com.android.example.module06_module233_module2;
public class ClassAAJ {
private com.android.example.module06_module233_module1.ClassAAF instance_var_1_0 = new com.android.example.module06_module233_module1.ClassAAF();
private com.android.example.module01_module20.ClassAAB instance_var_1_1 = new com.android.example.module01_module20.ClassAAB();
private com.android.example.module06_module233_module1.ClassAAJ instance_var_1_2 = new com.android.example.module06_module233_module1.ClassAAJ();
private com.android.example.module06_module233_module1.ClassAAI instance_var_1_3 = new com.android.example.module06_module233_module1.ClassAAI();
public void method0(
com.android.example.module06_module233_module1.ClassAAC param0,
com.android.example.module06_module233_module1.ClassAAI param1,
com.android.example.module06_module233_module3.ClassAAB param2) throws Throwable {
com.android.example.module15_module55_module1.ClassAAD local_var_2_3 = new com.android.example.module15_module55_module1.ClassAAD();
local_var_2_3.method0(new com.android.example.module15_module20_module1.ClassAAF(), new com.android.example.module15_module20_module1.ClassAAE());
for (int iAb = 0; iAb < 4; iAb++) {
com.android.example.module06_module353_module4.ClassAAB local_var_3_0 = new com.android.example.module06_module353_module4.ClassAAB();
local_var_3_0.method1(new com.squareup.workflow.diagnostic.SimpleLoggingDiagnosticListener(), new io.reactivex.observers.TestObserver(), new com.squareup.workflow.diagnostic.SimpleLoggingDiagnosticListener(), new com.squareup.workflow.diagnostic.SimpleLoggingDiagnosticListener());
com.android.example.module06_module254.ClassAAE local_var_3_1 = new com.android.example.module06_module254.ClassAAE();
local_var_3_1.method0(new com.android.example.module15_module21_module1.ClassAAH(), new com.android.example.module06_module109_module1.ClassAAC(), new com.android.example.module06_module351_module1.ClassAAF(), new com.android.example.module06_module200_module2.ClassAAG());
}
com.android.example.module06_module173_module1.ClassAAG local_var_2_4 = new com.android.example.module06_module173_module1.ClassAAG();
local_var_2_4.method3(new io.reactivex.subscribers.TestSubscriber());
param0.method1(new com.android.example.module06_module233_module3.ClassAAB(), new com.android.example.module06_module233_module3.ClassAAB());
}
public void method1(
com.android.example.module01_module20.ClassAAE param0) throws Throwable {
com.android.example.module06_module149.ClassAAJ local_var_2_1 = new com.android.example.module06_module149.ClassAAJ();
local_var_2_1.method3("SomeString", "SomeString", "SomeString");
com.android.example.module06_module149.ClassAAH local_var_2_2 = new com.android.example.module06_module149.ClassAAH();
local_var_2_2.method4("SomeString", "SomeString", "SomeString");
com.android.example.module15_module62_module1.ClassAAE local_var_2_3 = new com.android.example.module15_module62_module1.ClassAAE();
local_var_2_3.method4(new com.android.example.module15_module20_module1.ClassAAJ(), new com.android.example.module15_module20_module1.ClassAAB(), new com.android.example.module15_module20_module1.ClassAAJ());
}
public void method2(
com.android.example.module06_module233_module1.ClassAAF param0,
com.android.example.module06_module326.ClassAAJ param1,
com.android.example.module06_module233_module3.ClassAAA param2,
com.android.example.module01_module20.ClassAAH param3) throws Throwable {
com.android.example.module06_module359.ClassAAE local_var_2_4 = new com.android.example.module06_module359.ClassAAE();
local_var_2_4.method4(new com.android.example.module06_module192.ClassAAD(), new com.android.example.module06_module194.ClassAAF());
}
public void method3(
com.android.example.module06_module233_module1.ClassAAC param0,
com.android.example.module06_module233_module1.ClassAAH param1,
com.android.example.module06_module233_module3.ClassAAH param2,
com.android.example.module06_module233_module3.ClassAAC param3) throws Throwable {
}
}
|
[
"bingran@google.com"
] |
bingran@google.com
|
64000a2e9621cfe0d1b49a28fa21b3e4532f6e3a
|
0c98cf3f64a72ceb4987f23936979d587183e269
|
/services/cpts/src/main/java/com/huaweicloud/sdk/cpts/v1/model/CreateVariableResqJson.java
|
eea83d8aaa2c3591ce1fa75f523947191702ec87
|
[
"Apache-2.0"
] |
permissive
|
cwray01/huaweicloud-sdk-java-v3
|
765d08e4b6dfcd88c2654bdbf5eb2dd9db19f2ef
|
01b5a3b4ea96f8770a2eaa882b244930e5fd03e7
|
refs/heads/master
| 2023-07-17T10:31:20.119625
| 2021-08-31T11:38:37
| 2021-08-31T11:38:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,809
|
java
|
package com.huaweicloud.sdk.cpts.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** json */
public class CreateVariableResqJson {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "variable_id")
private Integer variableId;
public CreateVariableResqJson withVariableId(Integer variableId) {
this.variableId = variableId;
return this;
}
/** variable_id minimum: 0 maximum: 2147483647
*
* @return variableId */
public Integer getVariableId() {
return variableId;
}
public void setVariableId(Integer variableId) {
this.variableId = variableId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateVariableResqJson createVariableResqJson = (CreateVariableResqJson) o;
return Objects.equals(this.variableId, createVariableResqJson.variableId);
}
@Override
public int hashCode() {
return Objects.hash(variableId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateVariableResqJson {\n");
sb.append(" variableId: ").append(toIndentedString(variableId)).append("\n");
sb.append("}");
return sb.toString();
}
/** Convert the given object to string with each line indented by 4 spaces (except the first line). */
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"hwcloudsdk@huawei.com"
] |
hwcloudsdk@huawei.com
|
17bba34436bc577901ac5b5661825211f67966fb
|
9cabda1375ff58add6b597a1399df48c17175bd8
|
/app/src/main/java/com/ljt/freeviewcollection/customwanim/ParallaxLayoutInflater.java
|
5d254a8328d5f20cdf6fa27873721f8649af8823
|
[] |
no_license
|
HotBloodMan/FreeViewCollection
|
2f430d7709179131505af4b8d2b94fc97038bf1f
|
bc78f0ebfa7400a7c08c716942d16b472b4c0c78
|
refs/heads/master
| 2021-05-03T19:54:22.296539
| 2018-04-04T05:27:47
| 2018-04-04T05:27:47
| 120,424,574
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,388
|
java
|
package com.ljt.freeviewcollection.customwanim;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import com.ljt.freeviewcollection.R;
/**
* Created by ${JT.L} on 2018/3/9.
*/
public class ParallaxLayoutInflater extends LayoutInflater{
private IParallaxView mParallaxView;
protected ParallaxLayoutInflater(Context context) {
super(context);
}
protected ParallaxLayoutInflater(LayoutInflater original, Context newContext,IParallaxView fragment) {
super(original, newContext);
this.mParallaxView=fragment;
setFactory(new ParallaxFactory(mParallaxView,this));
}
@Override
public LayoutInflater cloneInContext(Context newContext) {
return new ParallaxLayoutInflater(this,newContext,mParallaxView);
}
public class ParallaxFactory implements LayoutInflater.Factory2{
private IParallaxView mParallaxView;
private LayoutInflater inflater;
private final String[] sClassPrefix = {
"android.widget.",
"android.view."
};
public ParallaxFactory(IParallaxView mParallaxView, LayoutInflater inflater) {
this.mParallaxView = mParallaxView;
this.inflater = inflater;
}
@Override
public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
View view=createViewOrFailQuietly(name,context,attrs);
if(view !=null){
setViewTag(view,context,attrs);
mParallaxView.getParallaxViews().add(view);
}
return view;
}
private void setViewTag(View view,Context context,AttributeSet attrs){
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AnimationView);
if(a !=null && a.length() >0){
ParallaxViewTag tag = new ParallaxViewTag();
tag.xIn=a.getFloat(R.styleable.AnimationView_x_in,0f);
tag.xOut=a.getFloat(R.styleable.AnimationView_x_out,0f);
tag.yIn=a.getFloat(R.styleable.AnimationView_y_in,0f);
tag.yOut=a.getFloat(R.styleable.AnimationView_y_out,0f);
view.setTag(view.getId(),tag);
a.recycle();
}
}
private View createViewOrFailQuietly(String name,Context context,AttributeSet atts){
//自定义控件
if(name.contains(".")){
createViewOrFailQuietly(name,null,context,atts);
}
//系统控件
for(String prefix:sClassPrefix){
View view = createViewOrFailQuietly(name, prefix, context, atts);
if(view!=null){
return view;
}
}
return null;
}
private View createViewOrFailQuietly(String name, String prefix, Context context, AttributeSet atts) {
try {
return inflater.createView(name,prefix,atts);
}catch (Exception e){
e.printStackTrace();
return null;
}
}
@Override
public View onCreateView(String name, Context context, AttributeSet attrs) {
return null;
}
}
}
|
[
"18303011272@163.com"
] |
18303011272@163.com
|
4259a009b54e40a25c6a6d321ab6414e630c9a0a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_7309ac88d34e31b79c4386395622f1f181f0040b/DataInputStream/2_7309ac88d34e31b79c4386395622f1f181f0040b_DataInputStream_t.java
|
2aeba61c679e1aeff788a082b09a830b2b2b44a4
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,486
|
java
|
/*
* Java core library component.
*
* Copyright (c) 1997, 1998
* Transvirtual Technologies, Inc. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
package java.io;
import java.lang.String;
public class DataInputStream
extends FilterInputStream
implements DataInput
{
public DataInputStream(InputStream in) {
super(in);
}
final public int read(byte b[]) throws IOException {
return read(b, 0, b.length);
}
final public int read(byte b[], int off, int len) throws IOException {
return in.read(b, off, len);
}
final public boolean readBoolean() throws IOException {
return (readUnsignedByte() != 0);
}
final public byte readByte() throws IOException {
int value = in.read();
if (value == -1) {
throw new EOFException();
}
return ((byte)value);
}
final public char readChar() throws IOException {
int val = in.read() << 8;
val |= in.read();
if (val == -1) {
throw new EOFException();
}
return ((char)val);
}
final public double readDouble() throws IOException {
return Double.longBitsToDouble(readLong());
}
final public float readFloat() throws IOException {
return Float.intBitsToFloat(readInt());
}
final public void readFully(byte b[]) throws IOException {
readFully(b, 0, b.length);
}
final public void readFully(byte b[], int off, int len) throws IOException {
int total = 0;
while (total < len) {
int got = read(b, off + total, len + total);
if (got == -1) {
throw new EOFException();
}
total += got;
}
}
final public int readInt() throws IOException {
int v1 = in.read() << 24;
v1 |= in.read() << 16;
v1 |= in.read() << 8;
int v2 = in.read();
if (v2 == -1) {
throw new EOFException();
}
return (v1 | v2);
}
/**
* @deprecated
*/
final public String readLine() throws IOException {
final StringBuffer buffer = new StringBuffer();
int nread = 0;
while (true) {
final int data = super.read();
final char ch = (char) (data & 0xff);
if (data == -1) {
break;
}
nread++;
if (ch == '\n') {
break;
}
if (ch == '\r') { // Check for '\r\n'
int data2;
// Note that we don't know whether the InputStream
// implements mark() and reset(), but we're using
// them anyway. If they don't, then characters
// after a lone '\r' will be elided from the input
// (ie, this is a bug). We could override mark()
// and reset() to always provide at least a
// one-character buffer, but then we'd violate
// the spec, which says to inherit these from
// FilterInputStream...
super.mark(1);
data2 = super.read();
if (data2 != -1 && (char) (data2 & 0xff) != '\n') {
try {
super.reset();
} catch (IOException e) { }
}
break;
}
buffer.append(ch);
}
return (nread == 0) ? null : buffer.toString();
}
final public long readLong() throws IOException {
long v1 = (long)in.read() << 56;
v1 |= (long)in.read() << 48;
v1 |= (long)in.read() << 40;
v1 |= (long)in.read() << 32;
v1 |= (long)in.read() << 24;
v1 |= (long)in.read() << 16;
v1 |= (long)in.read() << 8;
int v2 = in.read();
if (v2 == -1) {
throw new EOFException();
}
return (v1 | (long)v2);
}
final public short readShort() throws IOException {
int val = in.read() << 8;
val |= in.read();
if (val == -1) {
throw new EOFException();
}
return ((short)val);
}
final public String readUTF() throws IOException {
return readUTF(this);
}
final public static synchronized String readUTF(DataInput in) throws IOException {
int length=in.readUnsignedShort();
StringBuffer buffer=new StringBuffer();
int pos=0;
while (pos<length) {
int data=in.readUnsignedByte();
if ((data & 0x80)==0x80) {
/* Hi-bit set, multi byte char */
if ((data & 0xE0)==0xC0) {
/* Valid 2 byte string '110' */
byte data2=in.readByte();
if ((data2 & 0xC0) == 0x80) {
/* Valid 2nd byte */
char toAdd=(char )((((int )(data & 0x1F)) << 6) + (data2 & 0x3F));
buffer.append(toAdd);
pos=pos+2;
}
else throw new UTFDataFormatException();
} else if ((data & 0xF0)==0xE0) {
/* Valid 3 byte string '1110' */
byte data2=in.readByte();
if ((data2 & 0xC0) == 0x80) {
/* Valid 2nd byte */
byte data3=in.readByte();
if ((data3 & 0xC0) == 0x80) {
/* Valid 3rd byte */
char toAdd=(char )((((int )(data & 0x0F)) << 12) + (((int )(data2 & 0x3F)) << 6)+ (data3 & 0x3F));
buffer.append(toAdd);
pos=pos+3;
}
else throw new UTFDataFormatException();
}
else throw new UTFDataFormatException();
}
else throw new UTFDataFormatException();
}
else {
buffer.append((char )data);
pos++;
}
}
if (pos>length) throw new UTFDataFormatException();
return buffer.toString();
}
final public int readUnsignedByte() throws IOException {
int value=in.read();
if (value == -1) {
throw new EOFException();
}
return (value);
}
final public int readUnsignedShort() throws IOException {
int val = in.read() << 8;
val |= in.read();
if (val == -1) {
throw new EOFException();
}
return (val);
}
final public int skipBytes(int n) throws IOException
{
int skipped = (int)in.skip((long)n);
if (skipped != n) {
throw new EOFException();
}
return (skipped);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
eb5f374992a55add449f4502134fc3420023df70
|
6eed04056792f6ae63cf88cc96c69e1dc91c8214
|
/src/main/java/algorithms/other/string/LongestPalindromeSubseq.java
|
51f01e1a3b8f6f9c7113b65205e3e077797850fc
|
[] |
no_license
|
Hulk904/hulk_design
|
1093ad816f25a76a153c1e8df929de94f6ffebcc
|
98b4d5c0705cd2454110d26846d3610ee8d8d28e
|
refs/heads/master
| 2022-06-23T20:51:52.172259
| 2022-05-06T14:14:26
| 2022-05-06T14:14:26
| 126,194,449
| 0
| 0
| null | 2022-06-17T02:50:05
| 2018-03-21T14:49:18
|
Java
|
UTF-8
|
Java
| false
| false
| 967
|
java
|
package algorithms.other.string;
/**
* Created by yangyuan on 2020/11/15.
* 516. 最长回文子序列
*
* 给定一个字符串 s ,找到其中最长的回文子序列,并返回该序列的长度。可以假设 s 的最大长度为 1000 。
*/
public class LongestPalindromeSubseq {
//区间dp ,求值模式类似,先枚举长度,后枚举左端点
public int longestPalindromeSubseq(String s) {
int n = s.length();
int[][] dp = new int[n][n];
for (int len = 1; len <= n; len++){//注意 len <= n 这个等号
for (int i = 0; i + len - 1 < n; i++){
int j = i + len - 1;
if (len == 1) dp[i][j] = 1;
else {
if (s.charAt(i) == s.charAt(j)) dp[i][j] = dp[i + 1][j - 1] + 2;
dp[i][j] = Math.max(dp[i][j], Math.max(dp[i+ 1][j], dp[i][j - 1]));
}
}
}
return dp[0][n - 1];
}
}
|
[
"yangyuan@yangyuandeMacBook-Pro.local"
] |
yangyuan@yangyuandeMacBook-Pro.local
|
80b38824c70d2931b3fd7e43d58985772e914356
|
200d3afa03b325eb8dad0dd9bb841a6a09426b0a
|
/src/prob3/Prob3.java
|
d86c444bb01ee5782b862874fb37619c349d03a4
|
[] |
no_license
|
StandardJazz/practice02
|
e0a36ae44f8f878b9f97a6387c2d768498088a83
|
30793e5b69cb5eef664e8ac7a720a07735e73717
|
refs/heads/master
| 2021-01-12T03:12:59.225466
| 2017-01-05T19:51:59
| 2017-01-05T19:51:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 500
|
java
|
package prob3;
public class Prob3 {
public static void main(String args[]) {
char c[] = { 'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'a', ' ', 'p', 'e', 'n', 'c', 'i', 'l', '.' };
// 원래 배열 원소 출력
printCharArray(c);
// 공백 문자 바꾸기
replaceSpace(c);
// 수정된 배열 원소 출력
printCharArray(c);
}
public static void replaceSpace(char c[]) {
}
public static void printCharArray(char c[]) {
System.out.println( c );
}
}
|
[
"kickscar@gmail.com"
] |
kickscar@gmail.com
|
98c6fceb0c9721df435b318d803b20f6d18eb1f8
|
21dfe17976c75f772ce2e90e35e669cc4ea53bde
|
/PlanDetailsJiotelApplication-2/src/main/java/com/ust/casestudy/Controller/PlansController.java
|
500ef8f695dff4584ffa133145c9c3130753fc57
|
[] |
no_license
|
mendajayaram/CaseStudtUst
|
7251df5424e9ecea48e72093cf5054c6fd44a0e8
|
53cd893883614d16b050082b7d4a5969bd7eec9a
|
refs/heads/master
| 2023-03-26T20:26:16.922084
| 2021-03-22T05:21:13
| 2021-03-22T05:21:13
| 350,201,947
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,047
|
java
|
package com.ust.casestudy.Controller;
import java.util.List;
import java.util.NoSuchElementException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ust.casestudy.Service.PlansService;
import com.ust.casestudy.model.Plans;
@RestController
@RequestMapping("/planDetails")
public class PlansController {
@Autowired
private PlansService customerService;
@GetMapping("/planlist")
public List<Plans> list() {
return customerService.listAllplans();
}
@GetMapping("/planbyid/{id}")
public ResponseEntity<Plans> get(@PathVariable Integer id) {
try {
Plans plans = customerService.getplan(id);
return new ResponseEntity<Plans>(plans, HttpStatus.OK);
} catch (NoSuchElementException e) {
return new ResponseEntity<Plans>(HttpStatus.NOT_FOUND);
}
}
@PostMapping("/registerplan")
public Plans add(@RequestBody Plans user) {
customerService.saveplans(user);
return user;
}
@PutMapping("/updateplan/{id}")
public ResponseEntity<?> update(@RequestBody Plans plans, @PathVariable Integer id) {
try {
Plans existUser = customerService.getplan(id);
plans.setId(id);
customerService.saveplans(plans);
return new ResponseEntity<>(plans,HttpStatus.OK);
} catch (NoSuchElementException e) {
return new ResponseEntity<>("OOPS!!! Data Not Found ",HttpStatus.NOT_FOUND);
}
}
@DeleteMapping("/deleteplan/{id}")
public void delete(@PathVariable Integer id) {
customerService.deleteplan(id);
}
}
|
[
"="
] |
=
|
62d1ec70e1d10ce461663dcd9da474bfe42e1fca
|
56319e53f4155b0f0ae4ab249b1d3249fc8ddd98
|
/apache-tomcat-8.0.39/converted/org/apache/catalina/webresources/MainForTestFileResourceSet_testWrite.java
|
002b90e0f44a1a1445c058eded8610b4b4820cd3
|
[] |
no_license
|
SnowOnion/J2mConvertedTestcases
|
2f904e2f2754f859f6125f248d3672eb1a70abd1
|
e74b0e4c08f12e5effeeb8581670156ace42640a
|
refs/heads/master
| 2021-01-11T19:01:42.207334
| 2017-01-19T12:22:22
| 2017-01-19T12:22:22
| 79,295,183
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 605
|
java
|
package org.apache.catalina.webresources;
import org.apache.catalina.webresources.TestFileResourceSet;
public class MainForTestFileResourceSet_testWrite {
public static void main(String[] args) {
try {
TestFileResourceSet.before();
TestFileResourceSet objTestFileResourceSet = new TestFileResourceSet();
objTestFileResourceSet.setup();
objTestFileResourceSet.testWrite();
objTestFileResourceSet.teardown();
TestFileResourceSet.after();
} catch (Throwable e) {
e.printStackTrace();
}
}
}
|
[
"snowonionlee@gmail.com"
] |
snowonionlee@gmail.com
|
1b429b2cb17a3ce238ba676a3314c7e388a887a9
|
b2a635e7cc27d2df8b1c4197e5675655add98994
|
/e/f/a/e/i/l/a.java
|
bf7f81d33af6ba3d974e4f9001eb07e0a9f008df
|
[] |
no_license
|
history-purge/LeaveHomeSafe-source-code
|
5f2d87f513d20c0fe49efc3198ef1643641a0313
|
0475816709d20295134c1b55d77528d74a1795cd
|
refs/heads/master
| 2023-06-23T21:38:37.633657
| 2021-07-28T13:27:30
| 2021-07-28T13:27:30
| 390,328,492
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 452
|
java
|
package e.f.a.e.i.l;
import android.os.IBinder;
import android.os.IInterface;
public class a implements IInterface {
private final IBinder a;
protected a(IBinder paramIBinder, String paramString) {
this.a = paramIBinder;
}
public IBinder asBinder() {
return this.a;
}
}
/* Location: /home/yc/Downloads/LeaveHomeSafe.jar!/e/f/a/e/i/l/a.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
[
"game0427game@gmail.com"
] |
game0427game@gmail.com
|
827cc27439799dbda6337493c1d216ca27e575e4
|
391a7d7e3d2b367fdd827bcf9da94e38214f71f3
|
/repos/.svn/pristine/b9/b9fd7b81c57b98684a7f97ddd9ab733b546b7cce.svn-base
|
835e27ce392b4c74d0f072b1672138668eec6d34
|
[] |
no_license
|
kiichi7/WorkFiles
|
ce8cf1561c75f52b1ea945f86599e7add6332990
|
d47c342140221ddca8cd06bfc21880d7a46de64b
|
refs/heads/master
| 2020-12-25T20:42:04.265880
| 2013-11-06T07:04:56
| 2013-11-06T07:04:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,133
|
package com.unicom.mms.cms.service.ipml;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.unicom.mms.cms.dao.CommonDAO;
import com.unicom.mms.cms.dao.HotbillboardDAO;
import com.unicom.mms.cms.service.HotBillboardService;
import com.unicom.mms.common.BlankUtil;
import com.unicom.mms.entity.TbHotBillboard;
import com.unicom.mms.entity.TbTemplateCard;
/**
*
* 功能描述:最热推荐管理业务逻辑处理类
* @author lujia 新增日期:2013-3-3
* @since mms-cms-unicom
*/
@Service("hotBillboardService")
public class HotBillboardServiceImpl extends CommonServiceImpl<TbHotBillboard> implements HotBillboardService{
public static Logger log = Logger.getLogger(HotBillboardServiceImpl.class);
@Autowired(required = true)
private HotbillboardDAO hotbillboardDAO;
public HotbillboardDAO getHotbillboardDAO() {
return hotbillboardDAO;
}
public void setHotbillboardDAO(HotbillboardDAO hotbillboardDAO) {
this.hotbillboardDAO = hotbillboardDAO;
}
@Override
public CommonDAO<TbHotBillboard> getBindDao() {
return hotbillboardDAO;
}
@Override
public void addHotBillboard(String[] ids) {
if(!BlankUtil.isBlank(ids) && ids.length==10){
int[] pkids = new int[ids.length];
for (int i = 0; i < ids.length; i++) {
pkids[i] = Integer.parseInt(ids[i]);
}
//先删除之前的最热推荐
deleteAll();
//设置最热推荐
TbHotBillboard hotbillboardEntity = new TbHotBillboard();
TbTemplateCard cardEntity1 = new TbTemplateCard();
cardEntity1.setId(pkids[0]);
hotbillboardEntity.setTop1(cardEntity1);
TbTemplateCard cardEntity2 = new TbTemplateCard();
cardEntity2.setId(pkids[1]);
hotbillboardEntity.setTop2(cardEntity2);
TbTemplateCard cardEntity3 = new TbTemplateCard();
cardEntity3.setId(pkids[2]);
hotbillboardEntity.setTop3(cardEntity3);
TbTemplateCard cardEntity4 = new TbTemplateCard();
cardEntity4.setId(pkids[3]);
hotbillboardEntity.setTop4(cardEntity4);
TbTemplateCard cardEntity5 = new TbTemplateCard();
cardEntity5.setId(pkids[4]);
hotbillboardEntity.setTop5(cardEntity5);
TbTemplateCard cardEntity6 = new TbTemplateCard();
cardEntity6.setId(pkids[5]);
hotbillboardEntity.setTop6(cardEntity6);
TbTemplateCard cardEntity7 = new TbTemplateCard();
cardEntity7.setId(pkids[6]);
hotbillboardEntity.setTop7(cardEntity7);
TbTemplateCard cardEntity8 = new TbTemplateCard();
cardEntity8.setId(pkids[7]);
hotbillboardEntity.setTop8(cardEntity8);
TbTemplateCard cardEntity9 = new TbTemplateCard();
cardEntity9.setId(pkids[8]);
hotbillboardEntity.setTop9(cardEntity9);
TbTemplateCard cardEntity10 = new TbTemplateCard();
cardEntity10.setId(pkids[9]);
hotbillboardEntity.setTop10(cardEntity10);
hotbillboardDAO.save(hotbillboardEntity);
}else{
log.info("最热推荐必须设置10条。");
}
}
private void deleteAll(){
String hql = " delete from TbHotBillboard ";
int result = hotbillboardDAO.executeByHQL(hql);
}
}
|
[
"kiichi77@outlook.com"
] |
kiichi77@outlook.com
|
|
a15a0328d2d3f1b2d2206fa0d02d046911ba0c89
|
00abc1aec703a1d48c393bf853be907fc44280f5
|
/yeb-server/src/main/java/com/ming/server/controller/AppraiseController.java
|
b89a860ddff85cd3f422736685bbc94a2be50795
|
[] |
no_license
|
xiaoming-master/yeb
|
81c5f96e70881c5d9cff1b521f74a27c56115d24
|
843750239e67c1f92969a7990ac304c952e33593
|
refs/heads/master
| 2023-06-24T09:27:42.757753
| 2021-07-24T17:30:08
| 2021-07-24T17:30:08
| 387,009,042
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 337
|
java
|
package com.ming.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author zhanglishen
* @since 2021-07-17
*/
@RestController
@RequestMapping("/appraise")
public class AppraiseController {
}
|
[
"1186927930@qq.com"
] |
1186927930@qq.com
|
bb6a89ead8b6936699ff7c850727754c2e91c674
|
3637342fa15a76e676dbfb90e824de331955edb5
|
/2s/config/src/main/java/com/bcgogo/config/model/ConfigDaoManager.java
|
142a75ae032768461cb7fc6dcb87e6c07fb75290
|
[] |
no_license
|
BAT6188/bo
|
6147f20832263167101003bea45d33e221d0f534
|
a1d1885aed8cf9522485fd7e1d961746becb99c9
|
refs/heads/master
| 2023-05-31T03:36:26.438083
| 2016-11-03T04:43:05
| 2016-11-03T04:43:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,009
|
java
|
package com.bcgogo.config.model;
import com.bcgogo.config.ConfigServiceFactory;
import com.bcgogo.service.GenericDaoManager;
import com.bcgogo.service.ServiceFactory;
import com.bcgogo.service.ServiceManager;
import org.springframework.stereotype.Component;
@Component
public class ConfigDaoManager extends GenericDaoManager<ConfigReader, ConfigWriter> {
public ConfigWriter getWriter() {
return getWriterByNodeId("100");
}
public ConfigReader getReader() {
return getReaderByNodeId("100");
}
@Override
protected ConfigWriter createWriter(String nodeId) {
ServiceFactory factory = ServiceManager.getServiceFactory(ConfigServiceFactory.class);
return new ConfigWriter(factory.createResourceTransactionManager("config", nodeId));
}
@Override
protected ConfigReader createReader(String nodeId) {
ServiceFactory factory = ServiceManager.getServiceFactory(ConfigServiceFactory.class);
return new ConfigReader(factory.createSessionFactory("config", nodeId));
}
}
|
[
"ndong211@163.com"
] |
ndong211@163.com
|
62edd55e0d6f56923477957a2e96188bf8993746
|
b4b62c5c77ec817db61820ccc2fee348d1d7acc5
|
/src/main/java/com/alipay/api/domain/AntMerchantExpandAssetproduceAssignQueryModel.java
|
9d43b9eca20b35defbd41773aefb820e08931646
|
[
"Apache-2.0"
] |
permissive
|
zhangpo/alipay-sdk-java-all
|
13f79e34d5f030ac2f4367a93e879e0e60f335f7
|
e69305d18fce0cc01d03ca52389f461527b25865
|
refs/heads/master
| 2022-11-04T20:47:21.777559
| 2020-06-15T08:31:02
| 2020-06-15T08:31:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 646
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 获取生产指令接口
*
* @author auto create
* @since 1.0, 2020-06-11 20:01:46
*/
public class AntMerchantExpandAssetproduceAssignQueryModel extends AlipayObject {
private static final long serialVersionUID = 5387731915444196196L;
/**
* 每次拉取最大记录数量,可选值为[1,200] ;
*/
@ApiField("page_size")
private Long pageSize;
public Long getPageSize() {
return this.pageSize;
}
public void setPageSize(Long pageSize) {
this.pageSize = pageSize;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
b92e15303e47785accd5359f5666557df74442b8
|
e0b11a101c6ef411b5b281d3e6a09242bdef96cc
|
/day24 JVM+JWT/代码/springsecurity+jwt项目代码(改mysql和redis地址即可)/qf-security-master/src/main/java/com/boot/security/server/config/JobConfig.java
|
9fd7060e3c938f00a2ae65c2c2ed85138a05e1c8
|
[] |
no_license
|
lei720/phase-4
|
9bf26ef8877eebf1d8fa70998807a087ece73b57
|
3a9cb4d27a3cc7e1f907b29b941ce1e4e3d9ac3d
|
refs/heads/main
| 2023-08-18T17:59:23.504331
| 2021-10-16T06:08:37
| 2021-10-16T06:08:37
| 417,735,056
| 0
| 0
| null | 2021-10-16T06:07:07
| 2021-10-16T06:07:07
| null |
UTF-8
|
Java
| false
| false
| 1,115
|
java
|
package com.boot.security.server.config;
import java.io.IOException;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.PropertiesLoaderUtils;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
@Configuration
public class JobConfig {
public static final String KEY = "applicationContextSchedulerContextKey";
@Bean("adminQuartzScheduler")
public SchedulerFactoryBean quartzScheduler(DataSource dataSource) {
SchedulerFactoryBean quartzScheduler = new SchedulerFactoryBean();
try {
quartzScheduler.setQuartzProperties(
PropertiesLoaderUtils.loadProperties(new ClassPathResource("quartz.properties")));
} catch (IOException e) {
e.printStackTrace();
}
quartzScheduler.setDataSource(dataSource);
quartzScheduler.setOverwriteExistingJobs(true);
quartzScheduler.setApplicationContextSchedulerContextKey(KEY);
quartzScheduler.setStartupDelay(10);
return quartzScheduler;
}
}
|
[
"790165133@qq.com"
] |
790165133@qq.com
|
9d2b810c44e4c551471ee06ef1dbd581de550791
|
43334ae5400646e072ce2c217cb6b647d9c50734
|
/src/main/java/org/drip/sample/algo/SubStringSetExtraction.java
|
15232c8599580c1d18f0185318e1410a613f7590
|
[
"Apache-2.0"
] |
permissive
|
BukhariH/DROP
|
0e2f70ff441f082a88c7f26a840585fb593665fb
|
8770f84c747c41ed2022155fee1e6f63bb09f6fa
|
refs/heads/master
| 2020-03-30T06:27:29.042934
| 2018-09-29T06:13:19
| 2018-09-29T06:13:19
| 150,862,864
| 1
| 0
|
Apache-2.0
| 2018-09-29T12:37:29
| 2018-09-29T12:37:28
| null |
UTF-8
|
Java
| false
| false
| 3,255
|
java
|
package org.drip.sample.algo;
import java.util.*;
import org.drip.service.env.EnvManager;
import org.drip.spaces.big.SubStringSetExtractor;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2018 Lakshmi Krishnamurthy
* Copyright (C) 2017 Lakshmi Krishnamurthy
* Copyright (C) 2016 Lakshmi Krishnamurthy
* Copyright (C) 2015 Lakshmi Krishnamurthy
*
* This file is part of DRIP, a free-software/open-source library for buy/side financial/trading model
* libraries targeting analysts and developers
* https://lakshmidrip.github.io/DRIP/
*
* DRIP is composed of four main libraries:
*
* - DRIP Fixed Income - https://lakshmidrip.github.io/DRIP-Fixed-Income/
* - DRIP Asset Allocation - https://lakshmidrip.github.io/DRIP-Asset-Allocation/
* - DRIP Numerical Optimizer - https://lakshmidrip.github.io/DRIP-Numerical-Optimizer/
* - DRIP Statistical Learning - https://lakshmidrip.github.io/DRIP-Statistical-Learning/
*
* - DRIP Fixed Income: Library for Instrument/Trading Conventions, Treasury Futures/Options,
* Funding/Forward/Overnight Curves, Multi-Curve Construction/Valuation, Collateral Valuation and XVA
* Metric Generation, Calibration and Hedge Attributions, Statistical Curve Construction, Bond RV
* Metrics, Stochastic Evolution and Option Pricing, Interest Rate Dynamics and Option Pricing, LMM
* Extensions/Calibrations/Greeks, Algorithmic Differentiation, and Asset Backed Models and Analytics.
*
* - DRIP Asset Allocation: Library for model libraries for MPT framework, Black Litterman Strategy
* Incorporator, Holdings Constraint, and Transaction Costs.
*
* - DRIP Numerical Optimizer: Library for Numerical Optimization and Spline Functionality.
*
* - DRIP Statistical Learning: Library for Statistical Evaluation and Machine Learning.
*
* 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.
*/
/**
* SubStringSetExtraction demonstrates the Extraction of Permuted and Contiguous Sub-string Sets.
*
* @author Lakshmi Krishnamurthy
*/
public class SubStringSetExtraction {
public static void main (
final String[] astrArgs)
{
EnvManager.InitEnv (
"",
true
);
String strMaster = "abc";
List<String> lsTarget = new ArrayList<String>();
for (int i = 1; i <= strMaster.length(); ++i)
lsTarget.addAll (SubStringSetExtractor.ExhaustivePermutationScan (strMaster, i));
System.out.println ();
System.out.println ("Permuted Set: " + lsTarget);
System.out.println ("Permuted String Set Size: " + lsTarget.size());
System.out.println ("Contiguous Set: " + SubStringSetExtractor.Contiguous (strMaster));
System.out.println ();
EnvManager.TerminateEnv();
}
}
|
[
"lakshmi7977@gmail.com"
] |
lakshmi7977@gmail.com
|
28ef1d141b3ac0f2bd55f00a8cfd8d620e0343f7
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_116/Testnull_11514.java
|
37aa11270cfd592eea7e6a03855c32aa08c24702
|
[] |
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
| 308
|
java
|
package org.gradle.test.performancenull_116;
import static org.junit.Assert.*;
public class Testnull_11514 {
private final Productionnull_11514 production = new Productionnull_11514("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
2c875f38a59b53398fdad505b6942e573e261b20
|
0493ffe947dad031c7b19145523eb39209e8059a
|
/OpenJdk8uTest/src/test/java/util/Calendar/GenericTimeZoneNamesTest.java
|
6390850061c09604ad436e7e508633258cbc1c06
|
[] |
no_license
|
thelinh95/Open_Jdk8u_Test
|
7612f1b63b5001d1df85c1df0d70627b123de80f
|
4df362a71e680dbd7dfbb28c8922e8f20373757a
|
refs/heads/master
| 2021-01-16T19:27:30.506632
| 2017-08-13T23:26:05
| 2017-08-13T23:26:05
| 100,169,775
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,298
|
java
|
package test.java.util.Calendar;
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.util.Locale;
import java.util.TimeZone;
import sun.util.locale.provider.TimeZoneNameUtility;
import test.java.util.*;
public class GenericTimeZoneNamesTest {
private static final String[] PT = {
"America/Los_Angeles", "US/Pacific", "PST"
};
private static int errors = 0;
public static void main(String[] args) {
for (String tag : args) {
Locale locale = Locale.forLanguageTag(tag);
for (String tzid : PT) {
test(tzid, TimeZone.LONG, locale, "Pacific Time");
test(tzid, TimeZone.SHORT, locale, "PT");
}
}
if (errors != 0) {
throw new RuntimeException("test failed");
}
}
private static void test(String tzid, int style, Locale locale, String expected) {
// No public API to get generic time zone names (JDK 8)
String got = TimeZoneNameUtility.retrieveGenericDisplayName(tzid, style, locale);
if (!expected.equals(got)) {
System.err.printf("test: tzid=%s, locale=%s, style=%d, got=\"%s\", expected=\"%s\"%n",
tzid, locale, style, got, expected);
errors++;
}
}
}
|
[
"truongthelinh95@gmail.com"
] |
truongthelinh95@gmail.com
|
801b98d408498fce446ab52673e225e3ef421745
|
589c6ee52f2ce3b935fcd58299a16619ca0f2c34
|
/rwiki/rwiki-api/api/src/java/uk/ac/cam/caret/sakai/rwiki/service/api/dao/RWikiObjectContentDao.java
|
5a50a5a624cc6b6ca2e6033b5d46b38803b1b42c
|
[
"ECL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-only",
"ECL-2.0",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later"
] |
permissive
|
sakaiproject/sakai
|
f8f44eef300fee1557aea97e70273955b8f57360
|
657ee6ed3b92785ed9f38dc9f57592f96f1be385
|
refs/heads/master
| 2023-09-03T23:27:38.862565
| 2023-09-01T20:05:22
| 2023-09-01T20:05:22
| 28,589,709
| 1,042
| 1,142
|
ECL-2.0
| 2023-09-14T17:14:16
| 2014-12-29T11:14:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,633
|
java
|
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/
package uk.ac.cam.caret.sakai.rwiki.service.api.dao;
import uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject;
import uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObjectContent;
// FIXME: Service
public interface RWikiObjectContentDao
{
/**
* get the content object for the RWikiObject
*
* @param parent
* the RWikiObject
* @return
*/
RWikiObjectContent getContentObject(RWikiObject parent);
/**
* Create a new content object and associate it with the RWikiObject
*
* @param parent
* @return
*/
RWikiObjectContent createContentObject(RWikiObject parent);
/**
* Update the content object
*
* @param content
*/
void update(RWikiObjectContent content);
}
|
[
"ieb@tfd.co.uk"
] |
ieb@tfd.co.uk
|
2a6aad3ae9971703e77de99387cb7ee8500b0002
|
5224fe749da8fe3aa8b078d73bde8a74408364ac
|
/yim_dao/src/main/java/top/learn/configuration/UserDao.java
|
aabb6dc33341bdfd6b20c408e9875d8799c07d30
|
[] |
no_license
|
rookiesswang/YIM
|
849e3b09bbc21a4411ccc239fa9a2fcb5dcfa734
|
c807acc91f1896d57b09abdb06367daf8c9aecd6
|
refs/heads/master
| 2022-12-22T04:18:16.529747
| 2019-09-19T07:25:10
| 2019-09-19T07:25:10
| 172,299,354
| 0
| 0
| null | 2022-12-10T05:29:38
| 2019-02-24T05:19:58
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 361
|
java
|
package top.learn.configuration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.learn.entity.User;
@Repository
@Mapper
public interface UserDao extends tk.mybatis.mapper.common.Mapper<User>{
User selectByAccount(@Param("account") String account);
}
|
[
"x"
] |
x
|
63a188f4c28aac553dcb33b1bedd1b02e1506a78
|
5947cfe58348f6cdf30588b8e411ebf55ec50e05
|
/anjbo-credit-common/.svn/pristine/f2/f254620751ac28e0cc831416a61b45d319f64632.svn-base
|
780b509b40a5dc9ffc688ae94ae9cae3eed2c98b
|
[] |
no_license
|
superJack2222/work-credit
|
197de8c94df3691f0d1e249ea431c526ca6f3867
|
4d6dfdabe92d8fee2b49de96fc08e281763a31ba
|
refs/heads/master
| 2023-04-28T05:09:40.511601
| 2020-07-21T00:43:07
| 2020-07-21T00:43:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,895
|
/*
*Project: anjbo-credit-common
*File: com.anjbo.service.BaseService.java <2017年10月24日>
****************************************************************
* 版权所有@2017 ANJBO.COM 保留所有权利.
***************************************************************/
package com.anjbo.service;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import com.anjbo.bean.vo.PageList;
/**
* @Author KangLG
* @Date 2017年10月24日 下午3:16:30
* @version 1.0
*/
public interface BaseService<T, KID extends Serializable>{
/**
* 列表查询
* @Author KangLG<2017年10月24日>
* @param dto
* @return
*/
List<T> search(T dto);
PageList<T> searchPage(T dto);
/**
* 列表复合查询
* @Author KangLG<2017年10月24日>
* @param map
* @return
*/
List<Object> searchComplex(Map<String, Object> map);
PageList<Object> searchComplexPage(Map<String, Object> map);
/**
* 获取实体BY主键
* @Author KangLG<2017年10月24日>
* @param id
* @return
*/
T getEntity(KID id);
/**
* 新增
* @Author KangLG<2017年10月24日>
* @param dto
* @return 主键ID
*/
KID insert(T dto);
/**
* 删除
* @Author KangLG<2017年10月24日>
* @param dto
* @return 受影响行数
*/
int delete(T dto);
/**
* 修改
* @Author KangLG<2017年10月24日>
* @param dto
* @return 受影响行数
*/
int update(T dto);
/**
* 批量新增
* @Author KangLG<2017年10月24日>
* @param list
* @return 受影响行数
*/
int batchInsert(List<T> list);
/**
* 批量删除
* @Author KangLG<2017年10月24日>
* @param list
* @return 受影响行数
*/
int batchDelete(List<KID> list);
/**
* 批量修改
* @Author KangLG<2017年10月24日>
* @param list
* @return 受影响行数
*/
int batchUpdate(List<T> list);
}
|
[
"395859675@qq.com"
] |
395859675@qq.com
|
|
490cdd725cd0526407e921e84c38a7a7dc18e420
|
c22ce16197170669949672f4ae37e3b2a7040552
|
/src/main/java/com/ccx/dictionary/service/EnterpriseNatureService.java
|
f7b534fa2ebd9b0ff97340fbf972f882307134db
|
[] |
no_license
|
526dong/credit-risk-back
|
be4beb817d697ffc581ab14ab8abd9bf951e570f
|
b2cd771164e5d940cad613253e3f5b20f5646c4b
|
refs/heads/master
| 2021-09-05T04:19:31.500283
| 2018-01-24T05:35:53
| 2018-01-24T05:35:53
| 118,707,111
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 567
|
java
|
package com.ccx.dictionary.service;
import java.util.List;
import com.ccx.dictionary.model.EnterpriseNature;
import com.ccx.util.page.Page;
/**
* 企业性质
* @author xzd
* @date 2017/7/5
*/
public interface EnterpriseNatureService {
void insert(EnterpriseNature nature);
void deleteById(Integer id);
void update(EnterpriseNature nature);
Page<EnterpriseNature> findAll(Page<EnterpriseNature> page);
List<EnterpriseNature> findAllNature();
EnterpriseNature findById(Integer id);
int findByName(String name);
}
|
[
"1476719022@qq.com"
] |
1476719022@qq.com
|
cfef78426ca5951d365f68df75c14eb6884eccce
|
a636258c60406f8db850d695b064836eaf75338b
|
/src/org/openbravo/erpCommon/ad_callouts/SE_ProjectLine_Value.java
|
ccd1848cb08dbe2bfcc931cacfd9e63205fc4a40
|
[] |
no_license
|
Afford-Solutions/openbravo-payroll
|
ed08af5a581fa41455f4e9b233cb182d787d5064
|
026fee4fe79b1f621959670fdd9ae6dec33d263e
|
refs/heads/master
| 2022-03-10T20:43:13.162216
| 2019-11-07T18:31:05
| 2019-11-07T18:31:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,161
|
java
|
/*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.1 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in compliance with the License. You may obtain a copy of
* the License at http://www.openbravo.com/legal/license.html
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
* All portions are Copyright (C) 2001-2012 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
*/
package org.openbravo.erpCommon.ad_callouts;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.openbravo.base.secureApp.HttpSecureAppServlet;
import org.openbravo.base.secureApp.VariablesSecureApp;
import org.openbravo.erpCommon.businessUtility.Tax;
import org.openbravo.erpCommon.utility.DateTimeData;
import org.openbravo.erpCommon.utility.OBMessageUtils;
import org.openbravo.erpCommon.utility.Utility;
import org.openbravo.utils.FormatUtilities;
import org.openbravo.xmlEngine.XmlDocument;
public class SE_ProjectLine_Value extends HttpSecureAppServlet {
private static final long serialVersionUID = 1L;
public void init(ServletConfig config) {
super.init(config);
boolHist = false;
}
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException,
ServletException {
VariablesSecureApp vars = new VariablesSecureApp(request);
if (vars.commandIn("DEFAULT")) {
String strmProductId = vars.getStringParameter("inpmProductId");
String strTabId = vars.getStringParameter("inpTabId");
String strProjectId = vars.getStringParameter("inpcProjectId");
String strPhaseId = vars.getStringParameter("inpcProjectphaseId");
String strADOrgID = vars.getStringParameter("inpadOrgId");
String strPriceStd = vars.getNumericParameter("inpmProductId_PSTD");
String strCreatePL = vars.getStringParameter("inpcreatetemppricelist");
String strStatus = vars.getStringParameter("inpprojectstatus");
String strPriceListVersion = vars.getGlobalVariable("inpPriceListVersion",
"Product.priceListVersion", "");
try {
printPage(response, vars, strmProductId, strPriceListVersion, strTabId, strProjectId,
strPhaseId, strADOrgID, strPriceStd, strCreatePL, strStatus);
} catch (ServletException ex) {
pageErrorCallOut(response);
}
} else
pageError(response);
}
private void printPage(HttpServletResponse response, VariablesSecureApp vars,
String strmProductId, String strPriceListVersion, String strTabId, String strProjectId,
String strPhaseId, String strADOrgID, String strPriceStd, String strCreatePL, String strStatus)
throws IOException, ServletException {
if (log4j.isDebugEnabled())
log4j.debug("Output: dataSheet");
XmlDocument xmlDocument = xmlEngine.readXmlTemplate(
"org/openbravo/erpCommon/ad_callouts/CallOut").createXmlDocument();
String strMessage = "";
StringBuffer resultado = new StringBuffer();
resultado.append("var calloutName='SE_ProjectLine_Value';\n\n");
resultado.append("var respuesta = new Array(\n");
SEProjectLineValueData[] data = null;
SEProjectLineValueData[] data1 = null;
if (strmProductId != null && !strmProductId.equals("")) {
data = SEProjectLineValueData.select(this, strmProductId);
String strDate = DateTimeData.today(this);
if (strPhaseId != null && !strPhaseId.equals("")) {
if (strProjectId == null || strProjectId.equals("")) {
strProjectId = SEProjectLineValueData.selectPhaseProject(this, strPhaseId);
}
}
data1 = SEProjectLineValueData.selectProject(this, strProjectId);
String strCBPartnerLocationID = data1[0].bplocation;
String strMWarehouseID = data1[0].warehouse;
String strProjCat = data1[0].projcat;
if (!strPriceListVersion.equals("")) {
String plannedprice = SEProjectLineValueData.selectPlannedPrice(this, strPriceListVersion,
strmProductId, strProjectId);
if (plannedprice != null && !plannedprice.equals("")) {
if (!strProjCat.equals("S")) {
resultado.append("new Array(\"inpplannedprice\", "
+ (plannedprice.equals("") ? "\"\"" : plannedprice) + "),\n");
} else {
resultado.append("new Array(\"inppriceactual\", "
+ (plannedprice.equals("") ? "\"\"" : plannedprice) + ")\n");
}
} else
strMessage = "PriceNotFound";
}
if ("OR".equalsIgnoreCase(strStatus) && "Y".equalsIgnoreCase(strCreatePL)) {
// Warning message: is not going to add in the pricelist.
strMessage = OBMessageUtils.messageBD("PriceListNotUpdated");
}
resultado.append("new Array(\"inpplannedprice\", " + strPriceStd + " ),\n");
if (!strProjCat.equals("S")) {
if (strCBPartnerLocationID != null && !strCBPartnerLocationID.equals("")
&& strMWarehouseID != null && !strMWarehouseID.equals("")) {
String strIsSOTrx = "Y";
String strCTaxID = Tax.get(this, strmProductId, strDate, strADOrgID, strMWarehouseID,
strCBPartnerLocationID, strCBPartnerLocationID, strProjectId, strIsSOTrx.equals("Y"));
if (strCTaxID != null && !strCTaxID.equals("")) {
resultado.append("new Array(\"inpcTaxId\", \""
+ (strCTaxID.equals("") ? "\"\"" : strCTaxID) + "\"),\n");
} else
strMessage = "TaxNotFound";
}
resultado.append("new Array(\"inpproductValue\", \"" + data[0].value + "\"),\n");
resultado.append("new Array(\"inpproductName\", \""
+ FormatUtilities.replaceJS(data[0].name) + "\"),\n");
resultado.append("new Array(\"inpproductDescription\", \""
+ FormatUtilities.replaceJS(data[0].description) + "\")\n");
}
} else {
data = SEProjectLineValueData.set();
}
if (!strMessage.equals(""))
resultado.append(", new Array('MESSAGE', \""
+ FormatUtilities.replaceJS(Utility.messageBD(this, strMessage, vars.getLanguage()))
+ "\")\n");
resultado.append(");");
xmlDocument.setParameter("array", resultado.toString());
xmlDocument.setParameter("frameName", "appFrame");
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
out.println(xmlDocument.print());
out.close();
}
}
|
[
"rcss@ubuntu-server.administrator"
] |
rcss@ubuntu-server.administrator
|
d31371c6ecaa147d249a9e1b53b436e40bdae21f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/1/1_266ad806c84863e8f74fa1c44c8bbd2149254964/WienProvider/1_266ad806c84863e8f74fa1c44c8bbd2149254964_WienProvider_t.java
|
784579e4213a04e9b911a1a4072318aec3e16b1d
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,032
|
java
|
/*
* Copyright 2013 the original author or authors.
*
* This program 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 de.schildbach.pte;
import java.util.HashMap;
import java.util.Map;
import de.schildbach.pte.dto.Style;
/**
* @author Andreas Schildbach
*/
public class WienProvider extends AbstractEfaProvider
{
public static final NetworkId NETWORK_ID = NetworkId.WIEN;
private final static String API_BASE = "http://www.wienerlinien.at/ogd_routing/";
public WienProvider()
{
super(API_BASE);
setIncludeRegionId(false);
setStyles(STYLES);
setRequestUrlEncoding(UTF_8);
}
public NetworkId id()
{
return NETWORK_ID;
}
public boolean hasCapabilities(final Capability... capabilities)
{
for (final Capability capability : capabilities)
if (capability == Capability.AUTOCOMPLETE_ONE_LINE || capability == Capability.DEPARTURES || capability == Capability.TRIPS)
return true;
return false;
}
private static final Map<String, Style> STYLES = new HashMap<String, Style>();
static
{
// Wien
STYLES.put("SS1", new Style(Style.Shape.ROUNDED, Style.parseColor("#1e5cb3"), Style.WHITE));
STYLES.put("SS2", new Style(Style.Shape.ROUNDED, Style.parseColor("#59c594"), Style.WHITE));
STYLES.put("SS3", new Style(Style.Shape.ROUNDED, Style.parseColor("#c8154c"), Style.WHITE));
STYLES.put("SS7", new Style(Style.Shape.ROUNDED, Style.parseColor("#dc35a3"), Style.WHITE));
STYLES.put("SS40", new Style(Style.Shape.ROUNDED, Style.parseColor("#f24d3e"), Style.WHITE));
STYLES.put("SS45", new Style(Style.Shape.ROUNDED, Style.parseColor("#0f8572"), Style.WHITE));
STYLES.put("SS50", new Style(Style.Shape.ROUNDED, Style.parseColor("#34b6e5"), Style.WHITE));
STYLES.put("SS60", new Style(Style.Shape.ROUNDED, Style.parseColor("#82b429"), Style.WHITE));
STYLES.put("SS80", new Style(Style.Shape.ROUNDED, Style.parseColor("#e96619"), Style.WHITE));
STYLES.put("UU1", new Style(Style.Shape.RECT, Style.parseColor("#c6292a"), Style.WHITE));
STYLES.put("UU2", new Style(Style.Shape.RECT, Style.parseColor("#a82783"), Style.WHITE));
STYLES.put("UU3", new Style(Style.Shape.RECT, Style.parseColor("#f39315"), Style.WHITE));
STYLES.put("UU4", new Style(Style.Shape.RECT, Style.parseColor("#23a740"), Style.WHITE));
STYLES.put("UU6", new Style(Style.Shape.RECT, Style.parseColor("#be762c"), Style.WHITE));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
292b853f53fa6be21e54ce7e706d645dfa280ef9
|
f6e779832105f380eae21b8206041c7aa70145ee
|
/app/src/main/java/greencode/ir/blankproject/ui/main/MainActivity.java
|
7c8a654c3b7226a0055a4372bc0e69734fb38f8f
|
[] |
no_license
|
alirezat66/blankAndroidProject
|
617e7bd373294eb4373707f27c0b718cdbdc213c
|
7c6deaf3d14e5de7c33d14fddfa146b3f41e2b26
|
refs/heads/master
| 2020-04-25T16:26:03.019068
| 2019-02-27T12:44:09
| 2019-02-27T12:44:09
| 172,911,520
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 384
|
java
|
package greencode.ir.blankproject.ui.main;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import greencode.ir.blankproject.R;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
|
[
"alirezataghizadeh66@gmail.com"
] |
alirezataghizadeh66@gmail.com
|
37258e34d0da0994573918cf3cc5d84ec393520f
|
7b34d4a9ce538a5c10c3a00c27ab98a1f358b8d3
|
/web-driver-1-basics/src/test/java/com/in28minutes/webdriver/basics/AbstractChromeWebDriverTest.java
|
cd49d6972782b0b91c493a1f16ae6ad1a9007b85
|
[] |
no_license
|
kiranmai790/automation-testing-with-java-and-selenium
|
0b26571e38b4618f50a6f740c9f2ef9a91fe2883
|
fac547a5f22edc62af652f3bfcd69ff6ec6517f4
|
refs/heads/master
| 2022-11-18T08:17:21.533428
| 2020-07-18T15:26:04
| 2020-07-18T15:26:04
| 279,108,818
| 0
| 2
| null | 2020-07-18T15:09:14
| 2020-07-12T16:56:52
|
HTML
|
UTF-8
|
Java
| false
| false
| 819
|
java
|
package com.in28minutes.webdriver.basics;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import io.github.bonigarcia.wdm.WebDriverManager;
public abstract class AbstractChromeWebDriverTest {
protected WebDriver driver;
public AbstractChromeWebDriverTest() {
super();
}
@BeforeTest
public void beforeTest() {
//Download the web driver executable
WebDriverManager.chromedriver().setup();
//Create a instance of your web driver - chrome
driver = new ChromeDriver();
}
@AfterTest
public void afterTest() {
driver.quit();
}
public void sleep(int seconds) {
try {
Thread.sleep(seconds * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
|
[
"rangaraokaranam@Rangas-MacBook-Pro.local"
] |
rangaraokaranam@Rangas-MacBook-Pro.local
|
c295fd5d6418245eb3aa42119f749eef28e7232d
|
46167791cbfeebc8d3ddc97112764d7947fffa22
|
/quarkus/src/main/java/com/justexample/repository/Entity1675Repository.java
|
df32f21c8770e1d3071ee9ce1b1eee9f1a12f510
|
[] |
no_license
|
kahlai/unrealistictest
|
4f668b4822a25b4c1f06c6b543a26506bb1f8870
|
fe30034b05f5aacd0ef69523479ae721e234995c
|
refs/heads/master
| 2023-08-25T09:32:16.059555
| 2021-11-09T08:17:22
| 2021-11-09T08:17:22
| 425,726,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 244
|
java
|
package com.example.repository;
import java.util.List;
import com.example.entity.Entity1675;
import org.springframework.data.jpa.repository.JpaRepository;
public interface Entity1675Repository extends JpaRepository<Entity1675,Long>{
}
|
[
"laikahhoe@gmail.com"
] |
laikahhoe@gmail.com
|
8f904ec8a39816365bfe674f7e4465f7a2c848bb
|
a2df6764e9f4350e0d9184efadb6c92c40d40212
|
/aliyun-java-sdk-hbr/src/main/java/com/aliyuncs/hbr/model/v20170908/SendEmailVerifyCodeRequest.java
|
5d1335fca3ba0fcab3dee0982c4cef99e595b3ea
|
[
"Apache-2.0"
] |
permissive
|
warriorsZXX/aliyun-openapi-java-sdk
|
567840c4bdd438d43be6bd21edde86585cd6274a
|
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
|
refs/heads/master
| 2022-12-06T15:45:20.418475
| 2020-08-20T08:37:31
| 2020-08-26T06:17:49
| 290,450,773
| 1
| 0
|
NOASSERTION
| 2020-08-26T09:15:48
| 2020-08-26T09:15:47
| null |
UTF-8
|
Java
| false
| false
| 1,876
|
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.hbr.model.v20170908;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.hbr.Endpoint;
/**
* @author auto create
* @version
*/
public class SendEmailVerifyCodeRequest extends RpcAcsRequest<SendEmailVerifyCodeResponse> {
private String token;
private String email;
public SendEmailVerifyCodeRequest() {
super("hbr", "2017-09-08", "SendEmailVerifyCode", "hbr");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
if(token != null){
putQueryParameter("Token", token);
}
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
if(email != null){
putQueryParameter("Email", email);
}
}
@Override
public Class<SendEmailVerifyCodeResponse> getResponseClass() {
return SendEmailVerifyCodeResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
df166d7c876b41540d753e4c98ee618b7b048169
|
b80af238a3e3f46878e90d2fcf0159a6017f2e96
|
/retrofit2_poc/src/main/java/tech/viacom/conman/model/StreamModel.java
|
5bc0f4017bded9ff1b3132b5884e382c1798ab46
|
[] |
no_license
|
kiryl-zaytes/poc
|
0c6fe52d569ce0f1343ccf69d858fea390ebac3e
|
46bf2b88376c813dff71ed46808074042ac48d46
|
refs/heads/master
| 2020-03-25T05:22:02.962744
| 2019-05-07T17:20:50
| 2019-05-07T17:20:50
| 143,443,173
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,343
|
java
|
package tech.viacom.conman.model;
import com.fasterxml.jackson.annotation.*;
import java.util.HashMap;
import java.util.Map;
/**
* Created by kiryl_zayets on 2/26/17.
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"deviceId",
"ended",
"estimatedEnd",
"id",
"providerId",
"requested",
"userProviderId"
})
public class StreamModel {
@JsonProperty("deviceId")
public String deviceId;
@JsonProperty("ended")
public Ended ended;
@JsonProperty("estimatedEnd")
public String estimatedEnd;
@JsonProperty("id")
public String id;
@JsonProperty("providerId")
public String providerId;
@JsonProperty("requested")
public String requested;
@JsonProperty("userProviderId")
public String userProviderId;
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
public StreamModel withDeviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}
public StreamModel withEnded(Ended ended) {
this.ended = ended;
return this;
}
public StreamModel withEstimatedEnd(String estimatedEnd) {
this.estimatedEnd = estimatedEnd;
return this;
}
public StreamModel withId(String id) {
this.id = id;
return this;
}
public StreamModel withProviderId(String providerId) {
this.providerId = providerId;
return this;
}
public StreamModel withRequested(String requested) {
this.requested = requested;
return this;
}
public StreamModel withUserProviderId(String userProviderId) {
this.userProviderId = userProviderId;
return this;
}
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public StreamModel withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
}
|
[
"kiril.zayets@gmail.com"
] |
kiril.zayets@gmail.com
|
522cca6df88f9e02d38d3ab6293503512e9e4562
|
02c26d4aa26dce7557f9af955d09cbc74da80861
|
/kernel/sqlsh/src/main/java/com/twosigma/beaker/sqlsh/BeakerInputVar.java
|
99fcc06b092847a9fc35321e1e78b936b5464eac
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
murpher9/beakerx
|
ef08b59b2ffe010cc7fa313c4a6888f7952115fb
|
6a23a9d58f31af0518c31d266ee327ab8ff20b87
|
refs/heads/master
| 2021-01-19T13:31:46.023955
| 2017-04-12T15:08:15
| 2017-04-12T15:08:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,456
|
java
|
/*
* Copyright 2014 TWO SIGMA OPEN SOURCE, 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.twosigma.beaker.sqlsh;
public class BeakerInputVar {
String fieldName;
String objectName;
String type;
boolean array;
boolean object;
boolean all;
int index;
String errorMessage;
public BeakerInputVar(String var) {
int a = var.indexOf('[');
int b = var.indexOf(']');
int dot = var.indexOf('.', b);
if (a >= 0 && b > a) {
if ((dot - b) > 1 || (dot < 1 && (var.length() - 1) > b)) {
errorMessage = "expected token '.' after ']': " + var;
return;
}
array = true;
objectName = var.substring(0, a);
String index = var.substring(a + 1, b);
if (objectName.isEmpty()) {
errorMessage = "unexpected token '[': " + var;
return;
}
if (index.isEmpty()) {
errorMessage = "index of array element should be defined: " + var;
return;
}
if ("*".equals(index)) {
all = true;
} else {
try {
this.index = Integer.parseInt(index);
} catch (NumberFormatException n) {
errorMessage = "NumberFormatException in " + var + "; " + n.getMessage();
return;
}
}
} else if (a > b && b >=0) {
errorMessage = "unexpected token ']': " + var;
return;
} else if (a >= 0) {
errorMessage = "unexpected token '[': " + var;
return;
} else if (b >= 0) {
errorMessage = "unexpected token ']': " + var;
return;
}
if (dot > 0) {
object = true;
fieldName = var.substring(dot + 1);
if (fieldName.isEmpty()) {
errorMessage = "unexpected token '.': " + var;
return;
}
if (objectName == null) {
objectName = var.substring(0, dot);
}
}
if (objectName == null) objectName = var;
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public boolean isArray() {
return array;
}
public void setArray(boolean array) {
this.array = array;
}
public boolean isObject() {
return object;
}
public void setObject(boolean object) {
this.object = object;
}
public boolean isAll() {
return all;
}
public void setAll(boolean all) {
this.all = all;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
public String getObjectName() {
return objectName;
}
public void setObjectName(String objectName) {
this.objectName = objectName;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}
|
[
"spot@draves.org"
] |
spot@draves.org
|
f2e42308ad6b4db6467e3a6b79214ed82c276c3e
|
482fe32082940c1c2b6b78fedfcf967022564c6e
|
/Object_Oriented_Software_Construction/Assignment3/code/src/main/java/org.jhotdraw7.samples.svg/org/jhotdraw/samples/svg/figures/SVGAttributedFigure.java
|
534a3b0f7c5ac1f8a37033d5752914572af04e86
|
[] |
no_license
|
ulfet/RWTH-Informatik
|
9f33b3b8afca8d738119c25a6341b4707f3d8b32
|
38ae6779f97287b838d20caac1706ac3a1e8a183
|
refs/heads/main
| 2023-02-11T14:05:18.356824
| 2021-01-16T17:55:26
| 2021-01-16T17:55:26
| 330,211,701
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,966
|
java
|
/* @(#)SVGAttributedFigure.java
* Copyright © The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw.samples.svg.figures;
import org.jhotdraw.draw.AbstractAttributedFigure;
import org.jhotdraw.draw.AttributeKey;
import org.jhotdraw.samples.svg.SVGLabels;
import org.jhotdraw.samples.svg.SVGAttributeKeys;
import org.jhotdraw.util.ResourceBundleUtil;
import javax.swing.AbstractAction;
import javax.swing.Action;
import java.awt.AlphaComposite;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.event.ActionEvent;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.util.Collection;
import java.util.LinkedList;
import static org.jhotdraw.samples.svg.SVGAttributeKeys.OPACITY;
import static org.jhotdraw.samples.svg.SVGAttributeKeys.STROKE_WIDTH;
import static org.jhotdraw.samples.svg.SVGAttributeKeys.TRANSFORM;
/**
* SVGAttributedFigure.
*
* @author Werner Randelshofer
* @version $Id$
*/
public abstract class SVGAttributedFigure extends AbstractAttributedFigure {
private static final long serialVersionUID = 1L;
/** Creates a new instance. */
public SVGAttributedFigure() {
}
@Override
public void draw(Graphics2D g) {
double opacity = get(OPACITY);
opacity = Math.min(Math.max(0d, opacity), 1d);
if (opacity != 0d) {
if (opacity != 1d) {
Rectangle2D.Double drawingArea = getDrawingArea();
Rectangle2D clipBounds = g.getClipBounds();
if (clipBounds != null) {
Rectangle2D.intersect(drawingArea, clipBounds, drawingArea);
}
if (! drawingArea.isEmpty()) {
BufferedImage buf = new BufferedImage(
Math.max(1, (int) ((2 + drawingArea.width) * g.getTransform().getScaleX())),
Math.max(1, (int) ((2 + drawingArea.height) * g.getTransform().getScaleY())),
BufferedImage.TYPE_INT_ARGB);
Graphics2D gr = buf.createGraphics();
gr.scale(g.getTransform().getScaleX(), g.getTransform().getScaleY());
gr.translate((int) -drawingArea.x, (int) -drawingArea.y);
gr.setRenderingHints(g.getRenderingHints());
drawFigure(gr);
gr.dispose();
Composite savedComposite = g.getComposite();
g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, (float) opacity));
g.drawImage(buf, (int) drawingArea.x, (int) drawingArea.y,
2 + (int) drawingArea.width, 2 + (int) drawingArea.height, null);
g.setComposite(savedComposite);
}
} else {
drawFigure(g);
}
}
}
/**
* This method is invoked before the rendered image of the figure is
* composited.
*/
public void drawFigure(Graphics2D g) {
AffineTransform savedTransform = null;
if (get(TRANSFORM) != null) {
savedTransform = g.getTransform();
g.transform(get(TRANSFORM));
}
Paint paint = SVGAttributeKeys.getFillPaint(this);
if (paint != null) {
g.setPaint(paint);
drawFill(g);
}
paint = SVGAttributeKeys.getStrokePaint(this);
if (paint != null && get(STROKE_WIDTH) > 0) {
g.setPaint(paint);
g.setStroke(SVGAttributeKeys.getStroke(this));
drawStroke(g);
}
if (get(TRANSFORM) != null) {
g.setTransform(savedTransform);
}
}
@Override
public <T> void set(AttributeKey<T> key, T newValue) {
if (key == TRANSFORM) {
invalidate();
}
super.set(key, newValue);
}
@Override public Collection<Action> getActions(Point2D.Double p) {
LinkedList<Action> actions = new LinkedList<Action>();
if (get(TRANSFORM) != null) {
ResourceBundleUtil labels = SVGLabels.getLabels();
actions.add(new AbstractAction(labels.getString("edit.removeTransform.text")) {
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent evt) {
willChange();
fireUndoableEditHappened(
TRANSFORM.setUndoable(SVGAttributedFigure.this, null)
);
changed();
}
});
}
return actions;
}
}
|
[
"ulfet.rwth@gmail.com"
] |
ulfet.rwth@gmail.com
|
920b409ccf546883b5ace6c64313e65bcffc729d
|
d593ad37a82a6396effceaf11679e70fddcabc06
|
/stepbystep/DBAdvLabCustomer/src/com/andro/CustomerDelActivity.java
|
a33ca61be0b89263243fe138d749838f489422c1
|
[] |
no_license
|
psh667/android
|
8a18ea22c8c977852ba2cd9361a8489586e06f05
|
8f7394de8e26ce5106d9828cf95eb1617afca757
|
refs/heads/master
| 2018-12-27T23:30:46.988404
| 2013-09-09T13:16:46
| 2013-09-09T13:16:46
| 12,700,292
| 3
| 5
| null | null | null | null |
UHC
|
Java
| false
| false
| 1,638
|
java
|
package com.andro;
import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.Bundle;
public class CustomerDelActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// 정보를 추출할 인텐트의 생성
Intent it = getIntent();
///// 인텐트로부터 정보추출: 시작
// 인텐트로부터 send_name의 값을 추출함
String str_name = it.getStringExtra("it_name");
String sql = "";
try {
// DB객체 생성(DB가 존재하지 않으면 생성함)
DBManager dbmgr = new DBManager(this);
SQLiteDatabase sdb;
// DB연결
sdb = dbmgr.getWritableDatabase();
// members 테이블에 추출정보 추가
sql = "delete from customers " +
" where name = '" + str_name + "' ";
sdb.execSQL(sql);
// DB닫음
dbmgr.close();
} catch (SQLiteException e) {
// 예외처리(생략)
}
// 현재 클래스(This)에서 호출할 클래스(QueryActivity.class) 지정
Intent it2 = new Intent(this, TabViewActivity.class);
// 이텐트에서 지정한 액티비티 실행
startActivity(it2);
// 현재 액티비티 종료
finish();
}
}
|
[
"paksan@daum.net"
] |
paksan@daum.net
|
4e610946535e95a51c3ee661aa7ac4f76be4deb2
|
d845bddf7e1bcb79b189d837900552a96d787cfb
|
/integrationtests/all-embedded-query-it/src/test/java/org/infinispan/all/embeddedquery/EmbeddedAllQueryTest.java
|
4a04103d628460c49529e7936b3de6c4b7b3e503
|
[
"Apache-2.0"
] |
permissive
|
bibryam/infinispan
|
ccb1a1404eac409f2d740f25415fd443c4897023
|
a48aa6210a20157f5d25d4db9e214b9dea3a0264
|
refs/heads/master
| 2020-12-26T23:54:48.336369
| 2014-10-28T17:42:41
| 2014-10-28T17:50:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,687
|
java
|
package org.infinispan.all.embeddedquery;
import static org.testng.AssertJUnit.assertEquals;
import org.apache.lucene.search.Query;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.configuration.cache.Index;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.query.CacheQuery;
import org.infinispan.query.Search;
import org.infinispan.query.SearchManager;
import org.testng.annotations.Test;
@Test
public class EmbeddedAllQueryTest {
public void testAllEmbedded() {
ConfigurationBuilder builder = new ConfigurationBuilder();
builder
.indexing()
.index(Index.ALL)
.addProperty("default.directory_provider", "ram")
.addProperty("lucene_version", "LUCENE_CURRENT");
EmbeddedCacheManager cm = new DefaultCacheManager(builder.build());
Cache<Long, TestEntity> cache = cm.getCache();
cache.put(1l, new TestEntity("Adam", "Smith", 1l, "A note about Adam"));
cache.put(2l, new TestEntity("Eve", "Smith", 2l, "A note about Eve"));
cache.put(3l, new TestEntity("Abel", "Smith", 3l, "A note about Abel"));
cache.put(4l, new TestEntity("Cain", "Smith", 4l, "A note about Cain"));
SearchManager sm = Search.getSearchManager(cache);
Query query = sm.buildQueryBuilderForClass(TestEntity.class)
.get().keyword().onField("name").matching("Eve").createQuery();
CacheQuery q1 = sm.getQuery(query);
assertEquals(1, q1.getResultSize());
assertEquals(TestEntity.class, q1.list().get(0).getClass());
cm.stop();
}
}
|
[
"galder@zamarreno.com"
] |
galder@zamarreno.com
|
4a1ae56b40df48b26857a3ef47cb9212db39e8f8
|
eb36ddb1e9c25d2a35d1fc94abaa6ef0f8fa6f7b
|
/src/main/java/POGOProtos/Rpc/StartTutorialOutProtoOrBuilder.java
|
cb4fd5814298c91b5a26e4cde821c69dde1ec893
|
[
"BSD-3-Clause"
] |
permissive
|
pokemongo-dev-contrib/pogoprotos-java
|
bbc941b238c051fd1430d364fae108604b13eebd
|
af129776faf08bfbfc69b32e19e8293bff2e8991
|
refs/heads/master
| 2021-06-10T15:45:44.441267
| 2021-02-04T21:46:16
| 2021-02-04T21:46:16
| 83,863,204
| 6
| 1
|
NOASSERTION
| 2020-10-17T20:10:32
| 2017-03-04T03:51:45
|
Java
|
UTF-8
|
Java
| false
| true
| 650
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos.Rpc.proto
package POGOProtos.Rpc;
public interface StartTutorialOutProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Rpc.StartTutorialOutProto)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.POGOProtos.Rpc.StartTutorialOutProto.Result result = 1;</code>
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* <code>.POGOProtos.Rpc.StartTutorialOutProto.Result result = 1;</code>
* @return The result.
*/
POGOProtos.Rpc.StartTutorialOutProto.Result getResult();
}
|
[
"msntchat@hotmail.fr"
] |
msntchat@hotmail.fr
|
188a07f2d9844d17df649702524aaaf79ea18538
|
4379b7763949615f3539a976420b4a939b288b92
|
/service-broker/src/test/java/io/enmasse/osb/HTTPServerTest.java
|
056052429d308f5a73716ad65bd64afa299a3e72
|
[
"Apache-2.0"
] |
permissive
|
ertanden/enmasse
|
f3a19b4b2999ff51a973efd03b4832e28504700f
|
81e40101e35ea5d9f42b5f44497bec170c646b85
|
refs/heads/master
| 2020-03-17T20:42:34.812385
| 2018-05-18T08:32:52
| 2018-05-18T08:37:00
| 133,925,255
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,842
|
java
|
/*
* Copyright 2016-2018, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.osb;
import io.enmasse.address.model.AddressSpace;
import io.enmasse.address.model.Endpoint;
import io.enmasse.address.model.Status;
import io.enmasse.api.auth.AuthApi;
import io.enmasse.api.auth.SubjectAccessReview;
import io.enmasse.api.auth.TokenReview;
import io.enmasse.k8s.api.TestAddressSpaceApi;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@RunWith(VertxUnitRunner.class)
public class HTTPServerTest {
private Vertx vertx;
private TestAddressSpaceApi instanceApi;
private AddressSpace addressSpace;
private HTTPServer httpServer;
@Before
public void setup(TestContext context) {
vertx = Vertx.vertx();
instanceApi = new TestAddressSpaceApi();
String addressSpaceName = "myinstance";
addressSpace = createAddressSpace(addressSpaceName);
instanceApi.createAddressSpace(addressSpace);
AuthApi authApi = mock(AuthApi.class);
when(authApi.getNamespace()).thenReturn("controller");
when(authApi.performTokenReview(eq("mytoken"))).thenReturn(new TokenReview("foo", "myid", true));
when(authApi.performSubjectAccessReview(eq("foo"), any(), any(), any())).thenReturn(new SubjectAccessReview("foo", true));
when(authApi.performSubjectAccessReview(eq("foo"), any(), any(), any())).thenReturn(new SubjectAccessReview("foo", true));
httpServer = new HTTPServer(instanceApi, new TestSchemaProvider(),authApi, null, false, null, 0, "http://localhost/console");
vertx.deployVerticle(httpServer, context.asyncAssertSuccess());
}
@After
public void teardown(TestContext context) {
vertx.close(context.asyncAssertSuccess());
}
private AddressSpace createAddressSpace(String name) {
return new AddressSpace.Builder()
.setName(name)
.setNamespace(name)
.setType("mytype")
.setPlan("myplan")
.setStatus(new Status(false))
.appendEndpoint(new Endpoint.Builder()
.setName("foo")
.setService("messaging")
.build())
.build();
}
@Test
public void testOpenServiceBrokerAPI(TestContext context) {
HttpClientOptions options = new HttpClientOptions();
HttpClient client = vertx.createHttpClient(options);
try {
Async async = context.async();
HttpClientRequest request = client.get(httpServer.getActualPort(), "localhost", "/osbapi/v2/catalog", response -> {
response.bodyHandler(buffer -> {
JsonObject data = buffer.toJsonObject();
context.assertTrue(data.containsKey("services"));
async.complete();
});
});
putAuthzToken(request);
request.end();
async.awaitSuccess(60_000);
} finally {
client.close();
}
}
private static HttpClientRequest putAuthzToken(HttpClientRequest request) {
request.putHeader("Authorization", "Bearer mytoken");
return request;
}
}
|
[
"lulf@pvv.ntnu.no"
] |
lulf@pvv.ntnu.no
|
0343af8a4001995b8d971214343524df35289416
|
93b5ab4dc571675e23c113ee6c116502e3f9ef72
|
/schema/src/main/java/com/webex/schemas/_2002/_06/service/site/PasswordCriteriaType.java
|
8227752e5136878190f8bfc20ec48df18bd1e7db
|
[] |
no_license
|
kumarph/webex-java-sdk
|
813d59ee9d7c0e1627ba8e24990d9b5e54bcd6d4
|
6894314132bfa419af6798b38acb965ee5f2f2e3
|
refs/heads/master
| 2021-01-10T07:57:37.982118
| 2011-04-22T10:01:24
| 2011-04-22T10:01:24
| 44,167,936
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,078
|
java
|
/*
* Copyright 2010-2011 Nabeel Mukhtar
*
* 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.webex.schemas._2002._06.service.site;
import java.io.Serializable;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.w3._2001.xmlschema.Adapter1;
/**
* <p>Java class for passwordCriteriaType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="passwordCriteriaType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="mixedCase" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="minLength" type="{http://www.w3.org/2001/XMLSchema}integer"/>
* <element name="minAlpha" type="{http://www.w3.org/2001/XMLSchema}integer"/>
* <element name="minNumeric" type="{http://www.w3.org/2001/XMLSchema}integer"/>
* <element name="minSpecial" type="{http://www.w3.org/2001/XMLSchema}integer"/>
* <element name="disallowWebTextSessions" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="disallowWebTextAccounts" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="disallowList" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="disallowValue" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "passwordCriteriaType", propOrder = {
"mixedCase",
"minLength",
"minAlpha",
"minNumeric",
"minSpecial",
"disallowWebTextSessions",
"disallowWebTextAccounts",
"disallowList",
"disallowValue"
})
public class PasswordCriteriaType
implements Serializable
{
private final static long serialVersionUID = 2461660169443089969L;
protected boolean mixedCase;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "integer")
protected Long minLength;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "integer")
protected Long minAlpha;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "integer")
protected Long minNumeric;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "integer")
protected Long minSpecial;
protected boolean disallowWebTextSessions;
protected boolean disallowWebTextAccounts;
protected boolean disallowList;
protected List<String> disallowValue;
/**
* Gets the value of the mixedCase property.
*
*/
public boolean isMixedCase() {
return mixedCase;
}
/**
* Sets the value of the mixedCase property.
*
*/
public void setMixedCase(boolean value) {
this.mixedCase = value;
}
/**
* Gets the value of the minLength property.
*
* @return
* possible object is
* {@link String }
*
*/
public Long getMinLength() {
return minLength;
}
/**
* Sets the value of the minLength property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMinLength(Long value) {
this.minLength = value;
}
/**
* Gets the value of the minAlpha property.
*
* @return
* possible object is
* {@link String }
*
*/
public Long getMinAlpha() {
return minAlpha;
}
/**
* Sets the value of the minAlpha property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMinAlpha(Long value) {
this.minAlpha = value;
}
/**
* Gets the value of the minNumeric property.
*
* @return
* possible object is
* {@link String }
*
*/
public Long getMinNumeric() {
return minNumeric;
}
/**
* Sets the value of the minNumeric property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMinNumeric(Long value) {
this.minNumeric = value;
}
/**
* Gets the value of the minSpecial property.
*
* @return
* possible object is
* {@link String }
*
*/
public Long getMinSpecial() {
return minSpecial;
}
/**
* Sets the value of the minSpecial property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMinSpecial(Long value) {
this.minSpecial = value;
}
/**
* Gets the value of the disallowWebTextSessions property.
*
*/
public boolean isDisallowWebTextSessions() {
return disallowWebTextSessions;
}
/**
* Sets the value of the disallowWebTextSessions property.
*
*/
public void setDisallowWebTextSessions(boolean value) {
this.disallowWebTextSessions = value;
}
/**
* Gets the value of the disallowWebTextAccounts property.
*
*/
public boolean isDisallowWebTextAccounts() {
return disallowWebTextAccounts;
}
/**
* Sets the value of the disallowWebTextAccounts property.
*
*/
public void setDisallowWebTextAccounts(boolean value) {
this.disallowWebTextAccounts = value;
}
/**
* Gets the value of the disallowList property.
*
*/
public boolean isDisallowList() {
return disallowList;
}
/**
* Sets the value of the disallowList property.
*
*/
public void setDisallowList(boolean value) {
this.disallowList = value;
}
/**
* Gets the value of the disallowValue 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 disallowValue property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDisallowValue().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getDisallowValue() {
if (disallowValue == null) {
disallowValue = new ArrayList<String>();
}
return this.disallowValue;
}
}
|
[
"nabeelmukhtar@yahoo.com"
] |
nabeelmukhtar@yahoo.com
|
8124ccc315a21742bd27611f838f719485cf9532
|
967502523508f5bb48fdaac93b33e4c4aca20a4b
|
/aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/AbstractAWSDirectoryService.java
|
ccc47837faf477ebccbe539994cd38d6b3f7fc2c
|
[
"Apache-2.0",
"JSON"
] |
permissive
|
hanjk1234/aws-sdk-java
|
3ac0d8a9bf6f7d9bf1bc5db8e73a441375df10c0
|
07da997c6b05ae068230401921860f5e81086c58
|
refs/heads/master
| 2021-01-17T18:25:34.913778
| 2015-10-23T03:20:07
| 2015-10-23T03:20:07
| 44,951,249
| 1
| 0
| null | 2015-10-26T06:53:25
| 2015-10-26T06:53:24
| null |
UTF-8
|
Java
| false
| false
| 4,927
|
java
|
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.directory;
import com.amazonaws.services.directory.model.*;
/**
* Abstract implementation of {@code AWSDirectoryService}. Convenient method
* forms pass through to the corresponding overload that takes a request object,
* which throws an {@code UnsupportedOperationException}.
*/
public class AbstractAWSDirectoryService implements AWSDirectoryService {
protected AbstractAWSDirectoryService() {
}
@Override
public void setEndpoint(String endpoint) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public void setRegion(com.amazonaws.regions.Region region) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public ConnectDirectoryResult connectDirectory(
ConnectDirectoryRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public CreateAliasResult createAlias(CreateAliasRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public CreateComputerResult createComputer(CreateComputerRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public CreateDirectoryResult createDirectory(CreateDirectoryRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public CreateSnapshotResult createSnapshot(CreateSnapshotRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public DeleteDirectoryResult deleteDirectory(DeleteDirectoryRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public DeleteSnapshotResult deleteSnapshot(DeleteSnapshotRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public DescribeDirectoriesResult describeDirectories(
DescribeDirectoriesRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public DescribeDirectoriesResult describeDirectories() {
return describeDirectories(new DescribeDirectoriesRequest());
}
@Override
public DescribeSnapshotsResult describeSnapshots(
DescribeSnapshotsRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public DescribeSnapshotsResult describeSnapshots() {
return describeSnapshots(new DescribeSnapshotsRequest());
}
@Override
public DisableRadiusResult disableRadius(DisableRadiusRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public DisableSsoResult disableSso(DisableSsoRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public EnableRadiusResult enableRadius(EnableRadiusRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public EnableSsoResult enableSso(EnableSsoRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public GetDirectoryLimitsResult getDirectoryLimits(
GetDirectoryLimitsRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public GetDirectoryLimitsResult getDirectoryLimits() {
return getDirectoryLimits(new GetDirectoryLimitsRequest());
}
@Override
public GetSnapshotLimitsResult getSnapshotLimits(
GetSnapshotLimitsRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public RestoreFromSnapshotResult restoreFromSnapshot(
RestoreFromSnapshotRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public UpdateRadiusResult updateRadius(UpdateRadiusRequest request) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public void shutdown() {
throw new java.lang.UnsupportedOperationException();
}
@Override
public com.amazonaws.ResponseMetadata getCachedResponseMetadata(
com.amazonaws.AmazonWebServiceRequest request) {
throw new java.lang.UnsupportedOperationException();
}
}
|
[
"aws@amazon.com"
] |
aws@amazon.com
|
8878c3ffcfebccc0b6b5d009edb1798a5ffb2f6e
|
96342d1091241ac93d2d59366b873c8fedce8137
|
/dist/game/data/scripts/handlers/chathandlers/ChatClan.java
|
62edf655ffb8d8e82c4dbe98b4192a5c517d55d6
|
[] |
no_license
|
soultobe/L2JOlivia_EpicEdition
|
c97ac7d232e429fa6f91d21bb9360cf347c7ee33
|
6f9b3de9f63d70fa2e281b49d139738e02d97cd6
|
refs/heads/master
| 2021-01-10T03:42:04.091432
| 2016-03-09T06:55:59
| 2016-03-09T06:55:59
| 53,468,281
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,955
|
java
|
/*
* This file is part of the L2J Olivia project.
*
* This program 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 handlers.chathandlers;
import com.l2jolivia.Config;
import com.l2jolivia.gameserver.enums.ChatType;
import com.l2jolivia.gameserver.handler.IChatHandler;
import com.l2jolivia.gameserver.model.actor.instance.L2PcInstance;
import com.l2jolivia.gameserver.network.SystemMessageId;
import com.l2jolivia.gameserver.network.serverpackets.CreatureSay;
/**
* Clan chat handler
* @author durgus
*/
public final class ChatClan implements IChatHandler
{
private static final ChatType[] CHAT_TYPES =
{
ChatType.CLAN,
};
@Override
public void handleChat(ChatType type, L2PcInstance activeChar, String target, String text)
{
if (activeChar.getClan() == null)
{
activeChar.sendPacket(SystemMessageId.YOU_ARE_NOT_IN_A_CLAN);
return;
}
if (activeChar.isChatBanned() && Config.BAN_CHAT_CHANNELS.contains(type))
{
activeChar.sendPacket(SystemMessageId.CHATTING_IS_CURRENTLY_PROHIBITED_IF_YOU_TRY_TO_CHAT_BEFORE_THE_PROHIBITION_IS_REMOVED_THE_PROHIBITION_TIME_WILL_INCREASE_EVEN_FURTHER);
return;
}
activeChar.getClan().broadcastCSToOnlineMembers(new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text), activeChar);
}
@Override
public ChatType[] getChatTypeList()
{
return CHAT_TYPES;
}
}
|
[
"kim@tsnet-j.co.jp"
] |
kim@tsnet-j.co.jp
|
a5e9e9b008f7725d5fd9ccc8bd3e457af1464108
|
a2835d20ee14b8326b2d0d00989d0dee0eaa2b01
|
/common/src/main/java/org/apache/commons/math3/filter/DefaultProcessModel.java
|
0f0abc4fa142840d478d4d582502678c68c696c5
|
[] |
no_license
|
kovzol/geogebra
|
935278a6e1d9e9a912bac9a53aac84061b7c2ff4
|
819c28d50d2082117f05170c9e988952bf12ece8
|
refs/heads/master
| 2023-08-04T12:10:17.639860
| 2023-07-27T08:45:08
| 2023-07-27T08:45:08
| 188,601,919
| 2
| 4
| null | 2021-05-05T16:34:02
| 2019-05-25T18:52:14
|
Java
|
UTF-8
|
Java
| false
| false
| 6,674
|
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.commons.math3.filter;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.ArrayRealVector;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;
/**
* Default implementation of a {@link ProcessModel} for the use with a {@link KalmanFilter}.
*
* @since 3.0
*/
public class DefaultProcessModel implements ProcessModel {
/**
* The state transition matrix, used to advance the internal state estimation each time-step.
*/
private RealMatrix stateTransitionMatrix;
/**
* The control matrix, used to integrate a control input into the state estimation.
*/
private RealMatrix controlMatrix;
/** The process noise covariance matrix. */
private RealMatrix processNoiseCovMatrix;
/** The initial state estimation of the observed process. */
private RealVector initialStateEstimateVector;
/** The initial error covariance matrix of the observed process. */
private RealMatrix initialErrorCovMatrix;
/**
* Create a new {@link ProcessModel}, taking double arrays as input parameters.
*
* @param stateTransition
* the state transition matrix
* @param control
* the control matrix
* @param processNoise
* the process noise matrix
* @param initialStateEstimate
* the initial state estimate vector
* @param initialErrorCovariance
* the initial error covariance matrix
* @throws NullArgumentException
* if any of the input arrays is {@code null}
* @throws NoDataException
* if any row / column dimension of the input matrices is zero
* @throws DimensionMismatchException
* if any of the input matrices is non-rectangular
*/
public DefaultProcessModel(final double[][] stateTransition,
final double[][] control,
final double[][] processNoise,
final double[] initialStateEstimate,
final double[][] initialErrorCovariance)
throws NullArgumentException, NoDataException, DimensionMismatchException {
this(new Array2DRowRealMatrix(stateTransition),
new Array2DRowRealMatrix(control),
new Array2DRowRealMatrix(processNoise),
new ArrayRealVector(initialStateEstimate),
new Array2DRowRealMatrix(initialErrorCovariance));
}
/**
* Create a new {@link ProcessModel}, taking double arrays as input parameters.
* <p>
* The initial state estimate and error covariance are omitted and will be initialized by the
* {@link KalmanFilter} to default values.
*
* @param stateTransition
* the state transition matrix
* @param control
* the control matrix
* @param processNoise
* the process noise matrix
* @throws NullArgumentException
* if any of the input arrays is {@code null}
* @throws NoDataException
* if any row / column dimension of the input matrices is zero
* @throws DimensionMismatchException
* if any of the input matrices is non-rectangular
*/
public DefaultProcessModel(final double[][] stateTransition,
final double[][] control,
final double[][] processNoise)
throws NullArgumentException, NoDataException, DimensionMismatchException {
this(new Array2DRowRealMatrix(stateTransition),
new Array2DRowRealMatrix(control),
new Array2DRowRealMatrix(processNoise), null, null);
}
/**
* Create a new {@link ProcessModel}, taking double arrays as input parameters.
*
* @param stateTransition
* the state transition matrix
* @param control
* the control matrix
* @param processNoise
* the process noise matrix
* @param initialStateEstimate
* the initial state estimate vector
* @param initialErrorCovariance
* the initial error covariance matrix
*/
public DefaultProcessModel(final RealMatrix stateTransition,
final RealMatrix control,
final RealMatrix processNoise,
final RealVector initialStateEstimate,
final RealMatrix initialErrorCovariance) {
this.stateTransitionMatrix = stateTransition;
this.controlMatrix = control;
this.processNoiseCovMatrix = processNoise;
this.initialStateEstimateVector = initialStateEstimate;
this.initialErrorCovMatrix = initialErrorCovariance;
}
/** {@inheritDoc} */
public RealMatrix getStateTransitionMatrix() {
return stateTransitionMatrix;
}
/** {@inheritDoc} */
public RealMatrix getControlMatrix() {
return controlMatrix;
}
/** {@inheritDoc} */
public RealMatrix getProcessNoise() {
return processNoiseCovMatrix;
}
/** {@inheritDoc} */
public RealVector getInitialStateEstimate() {
return initialStateEstimateVector;
}
/** {@inheritDoc} */
public RealMatrix getInitialErrorCovariance() {
return initialErrorCovMatrix;
}
}
|
[
"zbynek@geogebra.org"
] |
zbynek@geogebra.org
|
29749f5e4c6f28175339675ad1c62a84f4e7d7f5
|
7c9f40c50e5cabcb320195e3116384de139002c6
|
/Plugin_Parser/src/tinyos/yeti/nesc12/parser/ast/nodes/expression/SizeofExpression.java
|
93efa6353b742ab9129ac306c4adab356db3f910
|
[] |
no_license
|
phsommer/yeti
|
8e89ad89f1a4053e46693244256d03e71fe830a8
|
dec8c79e75b99c2a2a43aa5425f608128b883e39
|
refs/heads/master
| 2021-01-10T05:33:57.285499
| 2015-05-21T19:41:02
| 2015-05-21T19:41:02
| 36,033,399
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,513
|
java
|
/*
* Yeti 2, NesC development in Eclipse.
* Copyright (C) 2009 ETH Zurich
*
* This program 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/>.
*
* Web: http://tos-ide.ethz.ch
* Mail: tos-ide@tik.ee.ethz.ch
*/
package tinyos.yeti.nesc12.parser.ast.nodes.expression;
import tinyos.yeti.nesc12.parser.ast.ASTException;
import tinyos.yeti.nesc12.parser.ast.ASTVisitor;
import tinyos.yeti.nesc12.parser.ast.AnalyzeStack;
import tinyos.yeti.nesc12.parser.ast.elements.Type;
import tinyos.yeti.nesc12.parser.ast.elements.Value;
import tinyos.yeti.nesc12.parser.ast.elements.types.BaseType;
import tinyos.yeti.nesc12.parser.ast.elements.values.IntegerValue;
import tinyos.yeti.nesc12.parser.ast.elements.values.UnknownValue;
import tinyos.yeti.nesc12.parser.ast.nodes.ASTNode;
import tinyos.yeti.nesc12.parser.ast.nodes.declaration.TypeName;
public class SizeofExpression extends AbstractFixedExpression implements Expression{
public static final String ARGUMENT = "argument";
public SizeofExpression(){
super( "SizeofExpression", ARGUMENT );
}
public SizeofExpression( ASTNode argument ){
this();
setArgument( argument );
}
public Type resolveType() {
Value value = resolveConstantValue();
if( value == null || value.getType() == null )
return BaseType.U_INT;
return value.getType();
}
public Value resolveConstantValue() {
if( isResolved( "value" ))
return resolved( "value" );
ASTNode argument = getArgument();
if( argument == null )
return resolved( "value", null );
int check = -1;
if( argument instanceof Expression ){
Expression expr = (Expression)argument;
Type type = expr.resolveType();
if( type == null )
return resolved( "value", null );
check = type.sizeOf();
if( check == -1 ){
Value value = expr.resolveConstantValue();
if( value != null ){
check = value.sizeOf();
}
else if( type.asGenericType() != null ){
return resolved( "value", new UnknownValue( BaseType.U_INT ));
}
}
}
if( argument instanceof TypeName ){
TypeName name = (TypeName)argument;
Type type = name.resolveType();
if( type == null )
return resolved( "value", null );
if( type.asGenericType() != null )
return resolved( "value", new UnknownValue( BaseType.U_INT ));
check = type.sizeOf();
}
if( check == -1 )
return resolved( "value", null );
return resolved( "value", new IntegerValue( BaseType.U_INT, check ) );
}
public boolean hasCommas() {
return false;
}
public boolean isConstant() {
return resolveConstantValue() != null;
}
@Override
public void resolve( AnalyzeStack stack ) {
// TODO method not implemented
super.resolve( stack );
}
public void setArgument( ASTNode argument ){
setField( 0, argument );
}
public ASTNode getArgument(){
return getNoError( 0 );
}
@Override
protected void checkField( int index, ASTNode node ) throws ASTException {
if( node instanceof Expression )
return;
if( node instanceof TypeName )
return;
throw new ASTException( node, "Must be either Expression or TypeName" );
}
@Override
protected boolean visit( ASTVisitor visitor ) {
return visitor.visit( this );
}
@Override
protected void endVisit( ASTVisitor visitor ) {
visitor.endVisit( this );
}
}
|
[
"besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b"
] |
besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b
|
1b7a8d1ba1fb1f98175618e5c1c9eff4cb813e80
|
b1105e327a8b13c18dd2d38a1791b4760cbc5d5e
|
/leetcode/src/main/java/L0834_Ambiguous_Coordinates.java
|
f681703bf80ccb8b686daadbc4f4b48451dd5263
|
[] |
no_license
|
shengmingqijiquan/LeetCode
|
56eaf674822a180b605ea999353f35d15b766c60
|
64f622a1d98ec05ee2928906b9681b72b1ca98af
|
refs/heads/master
| 2022-12-01T11:13:13.816908
| 2020-08-19T13:02:19
| 2020-08-19T13:02:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 184
|
java
|
import java.util.List;
// https://leetcode-cn.com/problems/ambiguous-coordinates/
class L0834_Ambiguous_Coordinates {
public List<String> ambiguousCoordinates(String S) {
}
}
|
[
"15822882820@163.com"
] |
15822882820@163.com
|
837bcefe4c782e1fb80c050c9efcfd7f35f103d4
|
4ba3a51538e6e65e62593beb2c7a38b891c9e907
|
/Xcaret/83_RemoveDuplicatesfromSortedList.java
|
126669002f8b85239273cf8bd0533db69f06ea77
|
[] |
no_license
|
RuiLu/Xel-Ha
|
86c92daf5d6f849b8ae44e76d834375354301a7d
|
cad5404ec91a5fe6bb84094564805682c56a104b
|
refs/heads/master
| 2021-01-10T19:27:30.551992
| 2017-02-22T19:52:37
| 2017-02-22T19:52:37
| 55,649,444
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 887
|
java
|
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
public class Solution {
/**
* By using the following method, we keep the last node of duplicated nodes.
* Time complexity -> O(n)
* In place.
*/
public ListNode deleteDuplicates(ListNode head) {
if (head == null || head.next == null) return head;
ListNode fakeHead = new ListNode(-1);
fakeHead.next = head;
ListNode fast = head;
ListNode slow = fakeHead;
while (fast != null) {
while (fast.next != null && fast.val == fast.next.val) {
fast = fast.next;
}
slow.next = fast;
slow = fast;
fast = fast.next;
}
return fakeHead.next;
}
}
|
[
"rlu0213@hotmail.com"
] |
rlu0213@hotmail.com
|
2c469740ea1c4fd8b9ffe07c5baaec9622fda636
|
b138700a5a4786b8dbb56e99b4c81c7a20051b56
|
/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jberet/store/ModifyJdbcRepository.java
|
1905f48fc7ff9ab32a64e87ba2204782c756d5ec
|
[] |
no_license
|
jamezp/hal-core
|
91a953e68a2359bb7a23c94f911a78d4cafa2f81
|
b8ec58b38c377568c549b832c8d01339e4753803
|
refs/heads/master
| 2020-12-31T03:41:59.008045
| 2015-08-28T14:31:00
| 2015-08-31T16:10:33
| 18,334,716
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,607
|
java
|
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.as.console.client.shared.subsys.jberet.store;
import java.util.Map;
/**
* @author Harald Pehl
*/
public class ModifyJdbcRepository implements JberetAction {
private final String name;
private final Map<String, Object> changedValues;
public ModifyJdbcRepository(final String name, final Map<String, Object> changedValues) {
this.name = name;
this.changedValues = changedValues;
}
public String getName() {
return name;
}
public Map<String, Object> getChangedValues() {
return changedValues;
}
}
|
[
"harald.pehl@gmail.com"
] |
harald.pehl@gmail.com
|
bffe9962f03fd25b2817a0f9d25dc36e7706a8a7
|
0604a773b4519b8ae1eb53379e4079bec134b198
|
/src/main/java/com/lcyzh/nmerp/common/ueditor/define/AppInfo.java
|
ec6202d74a554663ff23566b0fc39cafd488c8fa
|
[] |
no_license
|
guanzhongheng/smErp
|
bd33cff4a5f53ebaff234adfb87832511cf3ea88
|
e2e3a7bedff0174bbf68382d609784b35f53e447
|
refs/heads/master
| 2022-11-10T16:17:03.524547
| 2020-03-21T07:27:16
| 2020-03-21T07:27:16
| 190,545,650
| 1
| 1
| null | 2022-10-12T20:28:24
| 2019-06-06T08:35:08
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,991
|
java
|
package com.lcyzh.nmerp.common.ueditor.define;
import java.util.HashMap;
import java.util.Map;
public final class AppInfo {
public static final int SUCCESS = 0;
public static final int MAX_SIZE = 1;
public static final int PERMISSION_DENIED = 2;
public static final int FAILED_CREATE_FILE = 3;
public static final int IO_ERROR = 4;
public static final int NOT_MULTIPART_CONTENT = 5;
public static final int PARSE_REQUEST_ERROR = 6;
public static final int NOTFOUND_UPLOAD_DATA = 7;
public static final int NOT_ALLOW_FILE_TYPE = 8;
public static final int INVALID_ACTION = 101;
public static final int CONFIG_ERROR = 102;
public static final int PREVENT_HOST = 201;
public static final int CONNECTION_ERROR = 202;
public static final int REMOTE_FAIL = 203;
public static final int NOT_DIRECTORY = 301;
public static final int NOT_EXIST = 302;
public static final int ILLEGAL = 401;
@SuppressWarnings("serial")
public static Map<Integer, String> info = new HashMap<Integer, String>(){{
put( AppInfo.SUCCESS, "SUCCESS" );
// 无效的Action
put( AppInfo.INVALID_ACTION, "\u65E0\u6548\u7684Action" );
// 配置文件初始化失败
put( AppInfo.CONFIG_ERROR, "\u914D\u7F6E\u6587\u4EF6\u521D\u59CB\u5316\u5931\u8D25" );
// 抓取远程图片失败
put( AppInfo.REMOTE_FAIL, "\u6293\u53D6\u8FDC\u7A0B\u56FE\u7247\u5931\u8D25" );
// 被阻止的远程主机
put( AppInfo.PREVENT_HOST, "\u88AB\u963B\u6B62\u7684\u8FDC\u7A0B\u4E3B\u673A" );
// 远程连接出错
put( AppInfo.CONNECTION_ERROR, "\u8FDC\u7A0B\u8FDE\u63A5\u51FA\u9519" );
// "文件大小超出限制"
put( AppInfo.MAX_SIZE, "\u6587\u4ef6\u5927\u5c0f\u8d85\u51fa\u9650\u5236" );
// 权限不足, 多指写权限
put( AppInfo.PERMISSION_DENIED, "\u6743\u9650\u4E0D\u8DB3" );
// 创建文件失败
put( AppInfo.FAILED_CREATE_FILE, "\u521B\u5EFA\u6587\u4EF6\u5931\u8D25" );
// IO错误
put( AppInfo.IO_ERROR, "IO\u9519\u8BEF" );
// 上传表单不是multipart/form-data类型
put( AppInfo.NOT_MULTIPART_CONTENT, "\u4E0A\u4F20\u8868\u5355\u4E0D\u662Fmultipart/form-data\u7C7B\u578B" );
// 解析上传表单错误
put( AppInfo.PARSE_REQUEST_ERROR, "\u89E3\u6790\u4E0A\u4F20\u8868\u5355\u9519\u8BEF" );
// 未找到上传数据
put( AppInfo.NOTFOUND_UPLOAD_DATA, "\u672A\u627E\u5230\u4E0A\u4F20\u6570\u636E" );
// 不允许的文件类型
put( AppInfo.NOT_ALLOW_FILE_TYPE, "\u4E0D\u5141\u8BB8\u7684\u6587\u4EF6\u7C7B\u578B" );
// 指定路径不是目录
put( AppInfo.NOT_DIRECTORY, "\u6307\u5B9A\u8DEF\u5F84\u4E0D\u662F\u76EE\u5F55" );
// 指定路径并不存在
put( AppInfo.NOT_EXIST, "\u6307\u5B9A\u8DEF\u5F84\u5E76\u4E0D\u5B58\u5728" );
// callback参数名不合法
put( AppInfo.ILLEGAL, "Callback\u53C2\u6570\u540D\u4E0D\u5408\u6CD5" );
}};
public static String getStateInfo ( int key ) {
return AppInfo.info.get( key );
}
}
|
[
"373284103@qq.com"
] |
373284103@qq.com
|
1166611c733f7a20b8f4484981f28e9a29bf12a2
|
ea1dea63ac1869fac618783252ae3a78026cea7e
|
/app/src/main/java/com/sk/sqhk/base/GlideLoader.java
|
567cfa885a1d66b63f3dde6961cf60e5af98fcf3
|
[] |
no_license
|
20180910/SQHK
|
fc1995497e562fea607cd4179db8ce43640cb30a
|
a1ac36c9df883cabbef981989db83560775a4287
|
refs/heads/master
| 2020-03-28T10:20:50.998517
| 2018-03-08T08:02:42
| 2018-03-08T08:02:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 524
|
java
|
package com.sk.sqhk.base;
import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.sk.sqhk.R;
import com.youth.banner.loader.ImageLoader;
/**
* Created by Administrator on 2017/3/9.
*/
public class GlideLoader extends ImageLoader {
@Override
public void displayImage(Context context, Object path, ImageView imageView) {
Glide.with(context).
load(path).
error(R.color.c_press).
into(imageView);
}
}
|
[
"2380253499@qq.com"
] |
2380253499@qq.com
|
a73d685e4f45d4ae17ebcf46ab463dc737e65f3c
|
bb7f944f4fe14358a1f84898f3a0b12cf1590c9a
|
/android/support/v4/view/ScrollingView.java
|
f20fbe3dc613c5a57a4ce8dee5928b7211d26b41
|
[] |
no_license
|
snehithraj27/Pedometer-Android-Application
|
0c53fe02840920c0449baeb234eda4b43b6cf8b6
|
e0d93eda0b5943b6ab967d38f7aa3240d2501dfb
|
refs/heads/master
| 2020-03-07T01:28:11.432466
| 2018-03-28T18:54:59
| 2018-03-28T18:54:59
| 127,184,714
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 618
|
java
|
package android.support.v4.view;
public abstract interface ScrollingView
{
public abstract int computeHorizontalScrollExtent();
public abstract int computeHorizontalScrollOffset();
public abstract int computeHorizontalScrollRange();
public abstract int computeVerticalScrollExtent();
public abstract int computeVerticalScrollOffset();
public abstract int computeVerticalScrollRange();
}
/* Location: /Users/snehithraj/Desktop/a/dex2jar-2.0/classes-dex2jar.jar!/android/support/v4/view/ScrollingView.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"snehithraj27@users.noreply.github.com"
] |
snehithraj27@users.noreply.github.com
|
0ce944ba916bf9d0f8b50d3599fc04098516baea
|
6566f0390bc77b3810636bd5cb6df3d7f60adf7f
|
/apptentive/src/main/java/com/apptentive/android/sdk/network/HttpRequestRetryPolicyDefault.java
|
05fdad295d446ec05a4fd3a7b73be24c52594f43
|
[] |
permissive
|
itabas016/apptentive-android
|
55d634680871df31d9aeb7fa112948e0583816a9
|
23f733fc29731a5453e10a1282042d46ac746a1f
|
refs/heads/master
| 2021-01-06T03:55:58.504184
| 2018-02-08T18:46:18
| 2018-02-08T18:46:18
| 124,333,036
| 1
| 0
|
BSD-3-Clause
| 2018-03-08T03:50:29
| 2018-03-08T03:45:49
|
Java
|
UTF-8
|
Java
| false
| false
| 1,682
|
java
|
/*
* Copyright (c) 2017, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.sdk.network;
public class HttpRequestRetryPolicyDefault implements HttpRequestRetryPolicy {
public static final int RETRY_COUNT_INFINITE = -1;
public static final long DEFAULT_RETRY_TIMEOUT_MILLIS = 5 * 1000;
public static final int DEFAULT_RETRY_COUNT = 5;
/**
* How many times should request retry before giving up
*/
private int maxRetryCount = DEFAULT_RETRY_COUNT;
/**
* How long should we wait before retrying again
*/
private long retryTimeoutMillis = DEFAULT_RETRY_TIMEOUT_MILLIS;
/**
* Returns <code>true</code> is request should be retried.
*
* @param responseCode - HTTP response code for the request
*/
@Override
public boolean shouldRetryRequest(int responseCode, int retryAttempt) {
if (responseCode >= 400 && responseCode < 500) {
return false; // don't retry if request was rejected permanently
}
if (maxRetryCount == RETRY_COUNT_INFINITE) {
return true; // keep retrying indefinitely
}
return retryAttempt <= maxRetryCount; // retry if we still can
}
/**
* Returns the delay in millis for the next retry
*
* @param retryAttempt - number of retries attempted already
*/
@Override
public long getRetryTimeoutMillis(int retryAttempt) {
return retryTimeoutMillis;
}
public void setMaxRetryCount(int maxRetryCount) {
this.maxRetryCount = maxRetryCount;
}
public void setRetryTimeoutMillis(long retryTimeoutMillis) {
this.retryTimeoutMillis = retryTimeoutMillis;
}
}
|
[
"a.lementuev@gmail.com"
] |
a.lementuev@gmail.com
|
973c5131bfbb3f476b60a1463ee2446ab5d48ed3
|
f400fff2a9ea37b8bd20dfcdfeaf82456a8f5360
|
/alura_training/05_lacos/WhileTest2.java
|
47e14906725c2b1b3127f3ae0b34cae418d22cba
|
[] |
no_license
|
edneyRoldao/exercises-java-certified
|
f69878d941022c6d531f6c68832f19f8eaa51454
|
88035b867792fafce8e43e2ce066d3c2dbae5128
|
refs/heads/master
| 2021-01-01T18:20:35.297341
| 2017-10-19T17:05:57
| 2017-10-19T17:05:57
| 98,312,285
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 244
|
java
|
public class WhileTest2 {
public static void main(String[] args) {
/* Quando passamos um boolean com final temos o mesmo comportamento acima */
final boolean i = false;
while(i) {
System.out.println("test");
}
int a = 20;
}
}
|
[
"edneyroldao@gmail.com"
] |
edneyroldao@gmail.com
|
6ba571681487cdf9d00b2dd449ba0c11870e4932
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_13310.java
|
30a02f927990a2ba42fc1552207ca3ad623dba39
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 357
|
java
|
protected void parseLine(String content,int index,int eol){
int start=content.indexOf("at ",index);
if ((start != -1) && (start < eol)) {
int leftParenthesisIndex=content.indexOf('(',start);
if ((leftParenthesisIndex != -1) && (leftParenthesisIndex < eol)) {
addHyperlink(new LogHyperlinkData(start + 3,leftParenthesisIndex));
}
}
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
c798118d49a22a31ce0e9b3abadc06349ffdcee9
|
0552841b2dc604c88a9d538662428131a0b4839a
|
/src/main/java/com/qwazr/search/query/SortedFloatDocValuesExactQuery.java
|
6d3e032c204e97068256f757537f8e7fd2300a6c
|
[] |
no_license
|
mikalv/search-1
|
2f62ea568bd5c2197b0f19e91c409a8f058ac4f1
|
a265d9cd3f08422abeb545a7d9329c1f7902ae41
|
refs/heads/master
| 2021-07-20T05:55:38.095699
| 2017-10-28T20:16:39
| 2017-10-28T20:16:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,724
|
java
|
/*
* Copyright 2015-2017 Emmanuel Keller / QWAZR
*
* 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.qwazr.search.query;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.qwazr.search.index.QueryContext;
import org.apache.lucene.document.SortedNumericDocValuesField;
import org.apache.lucene.search.Query;
import org.apache.lucene.util.NumericUtils;
import java.io.IOException;
public class SortedFloatDocValuesExactQuery extends AbstractExactQuery<Float, SortedFloatDocValuesExactQuery> {
@JsonCreator
public SortedFloatDocValuesExactQuery(@JsonProperty("generic_field") final String genericField,
@JsonProperty("field") final String field, @JsonProperty("value") final Float value) {
super(SortedFloatDocValuesExactQuery.class, genericField, field, value == null ? 0 : value);
}
public SortedFloatDocValuesExactQuery(final String field, final Float value) {
this(null, field, value);
}
@Override
public Query getQuery(final QueryContext queryContext) throws IOException {
return SortedNumericDocValuesField.newExactQuery(resolveField(queryContext.getFieldMap()),
NumericUtils.floatToSortableInt(value));
}
}
|
[
"ekeller@open-search-server.com"
] |
ekeller@open-search-server.com
|
77be7a65ab3630fea7ae8812e4fdc4e689e34f75
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/tags/2.2.1-stable/code/base/ui-eclipse/src/org/terracotta/dso/editors/GarbageCollectionPanel.java
|
d1fe5714200ec2ae1f93057fc719f9b5e0fe8e78
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,673
|
java
|
/*
* All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
*/
package org.terracotta.dso.editors;
import org.dijon.ContainerResource;
import org.dijon.Label;
import org.terracotta.dso.editors.xmlbeans.XmlBooleanToggle;
import org.terracotta.dso.editors.xmlbeans.XmlIntegerSpinner;
import org.terracotta.dso.editors.xmlbeans.XmlObjectStructureChangeEvent;
import org.terracotta.dso.editors.xmlbeans.XmlObjectStructureListener;
import com.terracottatech.configV2.DsoServerData;
import com.terracottatech.configV2.GarbageCollection;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public class GarbageCollectionPanel extends ConfigurationEditorPanel
implements ActionListener,
ChangeListener,
XmlObjectStructureListener
{
private DsoServerData m_dsoServerData;
private GarbageCollection m_garbageCollection;
private XmlBooleanToggle m_isGcEnabled;
private XmlBooleanToggle m_isVerboseGc;
private XmlIntegerSpinner m_gcInterval;
private Label m_gcIntervalLabel;
public GarbageCollectionPanel() {
super();
}
public void load(ContainerResource containerRes) {
super.load(containerRes);
m_isGcEnabled = (XmlBooleanToggle)findComponent("IsGCEnabled");
m_isGcEnabled.init(GarbageCollection.class, "enabled");
m_isVerboseGc = (XmlBooleanToggle)findComponent("IsVerboseGC");
m_isVerboseGc.init(GarbageCollection.class, "verbose");
m_gcInterval = (XmlIntegerSpinner)findComponent("GCInterval");
m_gcInterval.init(GarbageCollection.class, "interval");
m_gcIntervalLabel = (Label)findComponent("GCIntervalLabel");
m_gcIntervalLabel.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent me) {
if(me.getClickCount() == 1) {
m_gcInterval.unset();
}
}
});
}
public void ensureXmlObject() {
super.ensureXmlObject();
if(m_garbageCollection == null) {
removeListeners();
m_garbageCollection = m_dsoServerData.addNewGarbageCollection();
updateChildren();
addListeners();
}
}
public boolean hasAnySet() {
return m_garbageCollection != null &&
(m_garbageCollection.isSetEnabled() ||
m_garbageCollection.isSetVerbose() ||
m_garbageCollection.isSetInterval());
}
public void actionPerformed(ActionEvent ae) {
setDirty();
}
public void stateChanged(ChangeEvent e) {
setDirty();
}
public void structureChanged(XmlObjectStructureChangeEvent e) {
syncModel();
}
private void syncModel() {
if(!hasAnySet() && m_dsoServerData.getGarbageCollection() != null) {
m_dsoServerData.unsetGarbageCollection();
m_garbageCollection = null;
fireXmlObjectStructureChanged();
updateChildren();
}
else {
setDirty();
}
}
private void fireXmlObjectStructureChanged() {
fireXmlObjectStructureChanged(m_dsoServerData);
}
private void addListeners() {
m_isGcEnabled.addActionListener(this);
m_isGcEnabled.addXmlObjectStructureListener(this);
m_isVerboseGc.addActionListener(this);
m_isVerboseGc.addXmlObjectStructureListener(this);
m_gcInterval.addChangeListener(this);
m_gcInterval.addXmlObjectStructureListener(this);
}
private void removeListeners() {
m_isGcEnabled.removeActionListener(this);
m_isGcEnabled.removeXmlObjectStructureListener(this);
m_isVerboseGc.removeActionListener(this);
m_isVerboseGc.removeXmlObjectStructureListener(this);
m_gcInterval.removeChangeListener(this);
m_gcInterval.removeXmlObjectStructureListener(this);
}
private void updateChildren() {
m_isGcEnabled.setup(m_garbageCollection);
m_isVerboseGc.setup(m_garbageCollection);
m_gcInterval.setup(m_garbageCollection);
}
public void setup(DsoServerData dsoServerData) {
setEnabled(true);
removeListeners();
m_dsoServerData = dsoServerData;
m_garbageCollection = m_dsoServerData != null ?
m_dsoServerData.getGarbageCollection() :
null;
updateChildren();
addListeners();
}
public void tearDown() {
removeListeners();
m_dsoServerData = null;
m_garbageCollection = null;
m_isGcEnabled.tearDown();
m_isVerboseGc.tearDown();
m_gcInterval.tearDown();
setEnabled(false);
}
}
|
[
"jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864
|
b610dc0e89d3feac73bd72bfcf45131872a49c92
|
1cca6247c31a6c983c3d30884b4601b52db07d39
|
/service-customer/src/main/java/com/pgy/customer/entity/req/query/OperatorQuery.java
|
2e6d2b216854bcaaf9193d73f65d562bf82e7b0b
|
[] |
no_license
|
huangzfa/pgy_manage
|
18c14d987ccaf1ca57a5e124d666626ef7348933
|
a5611da9e3a2d4501f3a71ceef27fc7701828c96
|
refs/heads/master
| 2022-06-30T04:54:51.092559
| 2019-06-28T01:26:50
| 2019-06-28T01:26:50
| 192,880,079
| 1
| 0
| null | 2022-02-09T22:15:01
| 2019-06-20T08:23:34
|
Java
|
UTF-8
|
Java
| false
| false
| 378
|
java
|
package com.pgy.customer.entity.req.query;
import com.pgy.common.entity.ReqParam;
import lombok.Data;
/**
* @author huangzhongfa
* @description
* @date 2019/6/17
*/
@Data
public class OperatorQuery extends ReqParam{
/**
* 登陆账号
*/
private String loginName;
/**
* 姓名
*/
private String realName;
private Integer opId;
}
|
[
"1593582614@qq.com"
] |
1593582614@qq.com
|
1ed8dd703236b477a86543b441b6646b5b95f5b3
|
83e7feacfbc0276f0dd2081b2ab810697a6e817e
|
/net/futureclient/loader/mixin/forge/entity/living/player/MixinPlayerControllerMP.java
|
3fad25f46bf6812192a6c4d7ecb7421b0ea0e277
|
[
"MIT"
] |
permissive
|
BriceRoles/future
|
0546e4569f2f2b5a689f77a856b6ff5c8b9eb039
|
0b21d02f7952e5d87c40264c9df7a2d16d1dd945
|
refs/heads/main
| 2023-06-18T22:56:09.730199
| 2021-07-19T01:23:34
| 2021-07-19T01:23:34
| 387,303,718
| 0
| 0
|
MIT
| 2021-07-19T01:17:42
| 2021-07-19T01:17:41
| null |
UTF-8
|
Java
| false
| false
| 1,167
|
java
|
package net.futureclient.loader.mixin.forge.entity.living.player;
import net.futureclient.client.RF;
import net.futureclient.client.jE;
import net.futureclient.client.kH;
import net.minecraft.client.multiplayer.PlayerControllerMP;
import net.minecraft.util.math.BlockPos;
import org.spongepowered.asm.mixin.Dynamic;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin({PlayerControllerMP.class})
public class MixinPlayerControllerMP {
@Inject(
method = {"onPlayerDestroyBlock"},
at = {@At(
value = "INVOKE",
target = "net/minecraft/block/Block.removedByPlayer(Lnet/minecraft/block/state/IBlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/EntityPlayer;Z)Z"
)},
cancellable = true
)
@Dynamic
private void f$E(BlockPos var1, CallbackInfoReturnable<Boolean> var2) {
jE var3 = new jE();
kH.f$E().f$E().f$E((RF)var3);
if (var3.f$E()) {
var2.setReturnValue(false);
}
}
}
|
[
"66845682+chrispycreme420@users.noreply.github.com"
] |
66845682+chrispycreme420@users.noreply.github.com
|
ae176577218c3b94234efa0337619469e8cb79d5
|
3cc644883c3be68dc4aca8d9e35941a592f33670
|
/examples/demo/domain/src/main/java/demoapp/dom/types/javatime/javatimelocaltime/holder/JavaTimeLocalTimeHolder2.java
|
4f46fcf3dd3f2b831a8227976853c07e28be1735
|
[
"Apache-2.0"
] |
permissive
|
IsisVgoddess/isis
|
0e09eba4d9a791612dd03b01898d8574452b29a9
|
d34e5ed20578d274635424a9f41b4450c5109365
|
refs/heads/master
| 2023-03-07T08:57:38.060227
| 2022-03-11T05:55:55
| 2022-03-11T05:55:55
| 208,384,527
| 1
| 0
|
Apache-2.0
| 2023-03-06T22:25:01
| 2019-09-14T03:42:20
|
Java
|
UTF-8
|
Java
| false
| false
| 2,835
|
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 demoapp.dom.types.javatime.javatimelocaltime.holder;
import org.apache.isis.applib.annotation.LabelPosition;
import org.apache.isis.applib.annotation.Property;
import org.apache.isis.applib.annotation.PropertyLayout;
import org.apache.isis.applib.annotation.Where;
//tag::class[]
public interface JavaTimeLocalTimeHolder2 extends JavaTimeLocalTimeHolder {
@Property // <.>
@PropertyLayout(
labelPosition = LabelPosition.LEFT, // <.>
describedAs =
"@PropertyLayout(labelPosition=LEFT)",
hidden = Where.ALL_TABLES,
fieldSetId = "label-positions", sequence = "1") // <.>
default java.time.LocalTime getReadOnlyPropertyDerivedLabelPositionLeft() {
return getReadOnlyProperty();
}
@Property
@PropertyLayout(
labelPosition = LabelPosition.TOP, // <.>
describedAs =
"@PropertyLayout(labelPosition=TOP)",
hidden = Where.ALL_TABLES,
fieldSetId = "label-positions", sequence = "2")
default java.time.LocalTime getReadOnlyPropertyDerivedLabelPositionTop() {
return getReadOnlyProperty();
}
@Property
@PropertyLayout(
labelPosition = LabelPosition.RIGHT, // <.>
describedAs =
"@PropertyLayout(labelPosition=RIGHT)",
hidden = Where.ALL_TABLES,
fieldSetId = "label-positions", sequence = "3")
default java.time.LocalTime getReadOnlyPropertyDerivedLabelPositionRight() {
return getReadOnlyProperty();
}
@Property
@PropertyLayout(
labelPosition = LabelPosition.NONE, // <.>
describedAs =
"@PropertyLayout(labelPosition=NONE)",
hidden = Where.ALL_TABLES,
fieldSetId = "label-positions", sequence = "4")
default java.time.LocalTime getReadOnlyPropertyDerivedLabelPositionNone() {
return getReadOnlyProperty();
}
}
//end::class[]
|
[
"ahuber@apache.org"
] |
ahuber@apache.org
|
8687829effed5e99748834139cb8c2b3fde3683f
|
f59ea6fc21caaa5b9f7ef21cb08ed7337ad1ff5b
|
/app/src/main/java/com/shengui/app/android/shengui/android/ui/serviceui/sgu/model/VideoGaveBean.java
|
14b0d206951f5cd6a07a1f27e3e4a31053940ba0
|
[] |
no_license
|
chengyue5923/shenguinewproject
|
bd66ad7d463438a2c848a1f5799c4db49574dcd1
|
9020a4d55befb95d18aa42bf65886c04a2e1630b
|
refs/heads/master
| 2021-01-20T13:06:43.854795
| 2017-05-06T09:08:06
| 2017-05-06T09:08:06
| 90,450,821
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,557
|
java
|
package com.shengui.app.android.shengui.android.ui.serviceui.sgu.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by Administrator on 2017/3/24.
*/
public class VideoGaveBean {
/**
* message : 执行成功
* imageServer : http://192.168.1.129/image.server
* time : 1490316787
* courseServer : http://192.168.1.129
* status : 1
* data : [{"id":"20170318101917465740282451522228","objectId":"23453","objectType":11,"userId":"zengxiangtest","count":1,"price":1,"createTime":1489803557,"status":2,"memo":null},{"id":"20170318101648403325487732116242","objectId":"23453","objectType":11,"userId":"zengxiangtest","count":1,"price":1,"createTime":1489803408,"status":2,"memo":null}]
* void : null
*/
private String message;
private String imageServer;
private int time;
private String courseServer;
private int status;
@SerializedName("void")
private Object voidX;
private List<DataBean> data;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getImageServer() {
return imageServer;
}
public void setImageServer(String imageServer) {
this.imageServer = imageServer;
}
public int getTime() {
return time;
}
public void setTime(int time) {
this.time = time;
}
public String getCourseServer() {
return courseServer;
}
public void setCourseServer(String courseServer) {
this.courseServer = courseServer;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public Object getVoidX() {
return voidX;
}
public void setVoidX(Object voidX) {
this.voidX = voidX;
}
public List<DataBean> getData() {
return data;
}
public void setData(List<DataBean> data) {
this.data = data;
}
public static class DataBean {
/**
* id : 20170318101917465740282451522228
* objectId : 23453
* objectType : 11
* userId : zengxiangtest
* count : 1
* price : 1
* createTime : 1489803557
* status : 2
* memo : null
*/
private String id;
private String objectId;
private int objectType;
private String userId;
private int count;
private int price;
private int createTime;
private int status;
private Object memo;
private String userName;
private String userImage;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserImage() {
return userImage;
}
public void setUserImage(String userImage) {
this.userImage = userImage;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
public int getObjectType() {
return objectType;
}
public void setObjectType(int objectType) {
this.objectType = objectType;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
public int getCreateTime() {
return createTime;
}
public void setCreateTime(int createTime) {
this.createTime = createTime;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public Object getMemo() {
return memo;
}
public void setMemo(Object memo) {
this.memo = memo;
}
}
}
|
[
"chengyue5923@163.com"
] |
chengyue5923@163.com
|
49aa811ef6183ccbc06d3bfe08c42e2ae7086eed
|
14592d21bb11525b219a7cf528fa4264114fa2f2
|
/thinking_in_java/src/main/java/concurrency/PipedIO.java
|
93fd93773ad32eb9186dd512e40f833bf9273470
|
[] |
no_license
|
MABIY/learn_java
|
cf09648e3d666dfbe5eaa4187de50cbb3e70a790
|
617dd5ba68748f1adfec5146b52a3723ee42dac7
|
refs/heads/master
| 2021-10-07T15:54:06.827242
| 2021-09-22T07:16:47
| 2021-09-22T07:16:47
| 121,255,181
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,939
|
java
|
package concurrency;
import access.foreign.SprinklerSystem;
import java.io.IOException;
import java.io.PipedReader;
import java.io.PipedWriter;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import static net.mindview.util.Print.print;
/**
* @author lh
* Using pipes for inter-task I/O
*/
class Sender implements Runnable {
private Random rand = new Random(47);
private PipedWriter out = new PipedWriter();
public PipedWriter getPipedWriter() {
return out;
}
@Override
public void run() {
try {
while (true) {
for (char c = 'A'; c <= 'z'; c++) {
out.write(c);
TimeUnit.MILLISECONDS.sleep(rand.nextInt(500));
}
}
} catch (IOException e) {
print(e + " Sender write exception");
} catch (InterruptedException e) {
print(e + " Sender sleep interrupted");
}
}
}
class Receiver implements Runnable {
private PipedReader in;
public Receiver(Sender sender) throws IOException {
this.in = new PipedReader(sender.getPipedWriter());
}
@Override
public void run() {
try {
while (true) {
// Blocks until characters are there:
print("Read: " + (char)in.read());
}
} catch (IOException e) {
print(e + " receiver read exception");
}
}
}
public class PipedIO {
public static void main(String[] args) throws IOException, InterruptedException {
Sender sender = new Sender();
Receiver receiver = new Receiver(sender);
ExecutorService exec = Executors.newCachedThreadPool();
exec.execute(sender);
exec.execute(receiver);
TimeUnit.SECONDS.sleep(5);
exec.shutdownNow();
}
}
|
[
"jyfc7879@gmail.com"
] |
jyfc7879@gmail.com
|
761ee84723d66cd2ad67fabe432f13943274394a
|
426040f19e4ab0abb5977e8557451cfd94bf6c2d
|
/apks/aldi/src/com/google/android/gms/common/api/internal/zacs.java
|
bb68e0a25d345fe3d5bdd9c80bf59a5d67b935d7
|
[] |
no_license
|
kmille/android-pwning
|
0e340965f4c27dfc9df6ecadddd124448e6cec65
|
e82b96d484e618fe8b2c3f8ff663e74f793541b8
|
refs/heads/master
| 2020-05-09T17:22:54.876992
| 2020-04-06T18:04:16
| 2020-04-06T18:04:16
| 181,300,145
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 395
|
java
|
package com.google.android.gms.common.api.internal;
abstract interface zacs
{
public abstract void zac(BasePendingResult<?> paramBasePendingResult);
}
/* Location: /home/kmille/projects/android-pwning/apks/aldi/ALDI TALK_v6.2.1_apkpure.com-dex2jar.jar!/com/google/android/gms/common/api/internal/zacs.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"christian.schneider@androidloves.me"
] |
christian.schneider@androidloves.me
|
3aae1e0658a16607cd67eb001e9e68c90dc55916
|
00b85668294e2b729d4649b11309ab785e6adef6
|
/eclipse/1110f_TP3_TP4/src/uml/LinkEndCreationData.java
|
e7f1fbe204d8b05830b3f4c1d07b81e6361ceb6c
|
[] |
no_license
|
Doelia/M2-modeles
|
d61eb955ba4a48ef473f17164847db90c091261f
|
1030fff0775e60cc2a002d624bc07a8825d355ff
|
refs/heads/master
| 2021-01-25T05:34:08.814437
| 2015-12-02T09:34:39
| 2015-12-02T09:34:39
| 42,939,571
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,241
|
java
|
/**
*/
package uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Link End Creation Data</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A link end creation data is not an action. It is an element that identifies links. It identifies one end of a link to be created by a create link action.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link uml.LinkEndCreationData#isIsReplaceAll <em>Is Replace All</em>}</li>
* <li>{@link uml.LinkEndCreationData#getInsertAt <em>Insert At</em>}</li>
* </ul>
*
* @see uml.UmlPackage#getLinkEndCreationData()
* @model
* @generated
*/
public interface LinkEndCreationData extends LinkEndData {
/**
* Returns the value of the '<em><b>Is Replace All</b></em>' attribute.
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Specifies whether the existing links emanating from the object on this end should be destroyed before creating a new link.
* <!-- end-model-doc -->
* @return the value of the '<em>Is Replace All</em>' attribute.
* @see #setIsReplaceAll(boolean)
* @see uml.UmlPackage#getLinkEndCreationData_IsReplaceAll()
* @model default="false" dataType="uml.Boolean" required="true" ordered="false"
* @generated
*/
boolean isIsReplaceAll();
/**
* Sets the value of the '{@link uml.LinkEndCreationData#isIsReplaceAll <em>Is Replace All</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Replace All</em>' attribute.
* @see #isIsReplaceAll()
* @generated
*/
void setIsReplaceAll(boolean value);
/**
* Returns the value of the '<em><b>Insert At</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Specifies where the new link should be inserted for ordered association ends, or where an existing link should be moved to. The type of the input is UnlimitedNatural, but the input cannot be zero. This pin is omitted for association ends that are not ordered.
* <!-- end-model-doc -->
* @return the value of the '<em>Insert At</em>' reference.
* @see #setInsertAt(InputPin)
* @see uml.UmlPackage#getLinkEndCreationData_InsertAt()
* @model ordered="false"
* @generated
*/
InputPin getInsertAt();
/**
* Sets the value of the '{@link uml.LinkEndCreationData#getInsertAt <em>Insert At</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Insert At</em>' reference.
* @see #getInsertAt()
* @generated
*/
void setInsertAt(InputPin value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations. self.LinkAction.oclIsKindOf(CreateLinkAction)
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean create_link_action(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Link end creation data for ordered association ends must have a single input pin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. let insertAtPins : Collection = self.insertAt in if self.end.ordering = #unordered then insertAtPins->size() = 0 else let insertAtPin : InputPin = insertAts->asSequence()->first() in insertAtPins->size() = 1 and insertAtPin.type = UnlimitedNatural and insertAtPin.multiplicity.is(1,1)) endif
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean single_input_pin(DiagnosticChain diagnostics, Map<Object, Object> context);
} // LinkEndCreationData
|
[
"kyxalia@gmail.com"
] |
kyxalia@gmail.com
|
a242b3f9747f4da4810d863292b90f5d04621def
|
65437ff42acc1ed0ba4c89055b6dc08dbf07198b
|
/src/main/java/com/ghx/auto/cm/ui/page/NVDMyProfileTabPage.java
|
32c1c701ac444ea90ee6f7a265fe41994fa8624e
|
[] |
no_license
|
DreamNk/auto-cm
|
352f77bbe883cd6dfab77f433870fbad0225060f
|
d5f944c5465cf863806434bfaca3f19fda69ba5b
|
refs/heads/master
| 2020-09-29T20:56:44.226535
| 2019-12-10T13:00:54
| 2019-12-10T13:00:54
| 227,121,131
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,828
|
java
|
package com.ghx.auto.cm.ui.page;
import org.openqa.selenium.By;
public class NVDMyProfileTabPage extends CMAbstractPage<NVDMyProfileTabPage>{
//Locators for navigation and view only operations
private By first_name = By.xpath(".//div[@id='contactPersonalInfoViewTabContent']/div[2]/div[2]/span[2]/div");
private By address_and_information_accordion = By.id("MyProfileAccordion-2-label");
private By your_work_email = By.xpath(".//div[@id='businessAddressInformationViewTabContent']/div[2]/div[1]/span[2]/div");
private By badge_photo_accordion = By.id("MyProfileAccordion-3-label");
private By badge_photo_text = By.xpath(".//*[@id='BadgePhoto']/div[2]/p");
private By product_and_service_offering_accordion = By.id("MyProfileAccordion-4-label");
private By product_service_offering = By.xpath(".//div[@id='productServiceOfferingViewTabContent']/div[1]/div[1]/h3");
private By sales_territory_accordion = By.id("MyProfileAccordion-5-label");
private By sales_territory = By.xpath(".//div[@id='tabSubPI1']/div[2]/div[1]/div[1]/h3");
private By sales_territory_help = By.id("SalesTerritoryViewHelp");
private By supervisor_information_accordion = By.id("MyProfileAccordion-6-label");
private By supervisor_information = By.xpath(".//div[@id='supervisorInfoViewTabContent']/div[1]/div[1]/h3");
private By references_accordion = By.id("MyProfileAccordion-7-label");
private By references = By.xpath(".//div[@id='referencesViewTabContent']/div[1]/div[1]/h3");
//Locators of Edit options
private By Edit_badge_photo_button = By.id ("badgePhotoEditActiveButton");
private By browse_button = By.id("confirmSaveSup");
private By save_badge_photo_button = By.id("confirmSaveBadgePhoto");
private By delete_badge_photo_button = By.id("deleteBadgePhoto");
private By confirm_delete = By.id("badgephoto.delete.confirm.delete");
//Methods to verify the accordion contents of My profile tab (Navigations and View Only)
public NVDMyProfileTabPage verify_contact_and_personal_information(String msg){
return verify_element_by_text(first_name, msg);
}
public NVDMyProfileTabPage click_address_and_information_accordion(){
wait_until(5);
return click_button(address_and_information_accordion);
}
public NVDMyProfileTabPage verify_work_email_in_address_and_information_accordion(String msg){
return verify_element_by_text(your_work_email, msg);
}
public NVDMyProfileTabPage click_badge_photo_accordion(){
wait_until(5);
return click_button(badge_photo_accordion);
}
public NVDMyProfileTabPage verify_badge_photo_text(String msg){
return verify_element_by_text(badge_photo_text, msg);
}
public NVDMyProfileTabPage click_product_and_service_accordion(){
wait_until(5);
return click_button(product_and_service_offering_accordion);
}
public NVDMyProfileTabPage verify_product_and_service_offering(String msg){
return verify_element_by_text(product_service_offering, msg);
}
public NVDMyProfileTabPage click_sales_territory_accordion(){
wait_until(5);
return click_button(sales_territory_accordion);
}
public NVDMyProfileTabPage verify_sales_territory(String msg){
return verify_element_by_text(sales_territory, msg);
}
public NVDMyProfileTabPage verify_sales_territory_help(String msg){
return verify_element_by_text(sales_territory_help, msg);
}
public NVDMyProfileTabPage click_supervisor_information_accordion(){
wait_until(5);
return click_button(supervisor_information_accordion);
}
public NVDMyProfileTabPage verify_supervisor_information(String msg){
return verify_element_by_text(supervisor_information, msg);
}
public NVDMyProfileTabPage click_references_accordion(){
wait_until(5);
return click_button(references_accordion);
}
public NVDMyProfileTabPage verify_references(String msg){
return verify_element_by_text(references, msg);
}
//Methods to edit the accordion contents of My profile tab (Edit transactions)
public NVDMyProfileTabPage click_edit_badge_photo(){
return click_button(Edit_badge_photo_button);
}
public NVDMyProfileTabPage click_browse_files_to_upload(){
wait_until(30);
return click_button(browse_button);
}
public NVDMyProfileTabPage click_save_badge_photo(){
return click_button(save_badge_photo_button);
}
public NVDMyProfileTabPage click_delete_badge_photo(){
return click_button(delete_badge_photo_button);
}
public NVDMyProfileTabPage click_confirm_to_delete_badge_photo(){
return click_button(confirm_delete);
}
}
|
[
"nban@netchexonline.com"
] |
nban@netchexonline.com
|
919b99b1b520639f3a7e20c8eb88b0087972d088
|
2ebe6e87a7f96bbee2933103a4f43f46ea239996
|
/src/main/java/com/xceptance/xlt/report/TestReport.java
|
98b19376cebfccf4b420612aa24ee84ed661a997
|
[
"Apache-2.0",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"EPL-1.0",
"CDDL-1.1",
"EPL-2.0",
"MPL-2.0",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Xceptance/XLT
|
b4351c915d8c66d918b02a6c71393a151988be46
|
c6609f0cd9315217727d44b3166f705acc4da0b4
|
refs/heads/develop
| 2023-08-18T18:20:56.557477
| 2023-08-08T16:04:16
| 2023-08-08T16:04:16
| 237,251,821
| 56
| 12
|
Apache-2.0
| 2023-09-01T14:52:25
| 2020-01-30T16:13:24
|
Java
|
UTF-8
|
Java
| false
| false
| 1,406
|
java
|
/*
* Copyright (c) 2005-2023 Xceptance Software Technologies GmbH
*
* 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.xceptance.xlt.report;
import java.util.ArrayList;
import java.util.List;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
/**
* Represents the over-all test report. So far, this includes:
* <ul>
* <li>the configuration for the test</li>
* <li>the timer statistics per test case</li>
* <li>the over-all timer statistics</li>
* </ul>
*/
@XStreamAlias("testreport")
public class TestReport
{
@XStreamImplicit
private final List<Object> reportFragments = new ArrayList<Object>();
public void addReportFragment(final Object fragment)
{
reportFragments.add(fragment);
}
public List<Object> getReportFragments()
{
return reportFragments;
}
}
|
[
"4639399+jowerner@users.noreply.github.com"
] |
4639399+jowerner@users.noreply.github.com
|
a28d7be45c2cf39053d69a83c0e416080b84a719
|
fa9c7cc793458184aab612536fb30d1df62010e0
|
/open_source_framework/自定义控件库/SVG-Android/SVG/src/com/github/megatronking/svg/sample/extend/SVGTextViewAlphaSampleActivity.java
|
b705af21909415039b28d57ca92df3a69f5e918c
|
[] |
no_license
|
xdcs100/UtilXX
|
1056e62b7b25af023b6a42b0f5b2826f1fd56f4d
|
62ba9e5a5fef09ec5328bf624ab6c5c2c7522e39
|
refs/heads/master
| 2021-07-11T14:28:44.729444
| 2017-10-10T15:57:07
| 2017-10-10T15:57:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,357
|
java
|
package com.github.megatronking.svg.sample.extend;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.github.megatronking.svg.sample.R;
import com.github.megatronking.svg.support.extend.SVGTextView;
public class SVGTextViewAlphaSampleActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_extend_textview_alpha_sample);
setTitle(getIntent().getStringExtra("title"));
// set in code
SVGTextView view1 = (SVGTextView) findViewById(R.id.extend_textview1);
view1.setLeftSvgAlpha(0.2f);
view1.setTopSvgAlpha(0.4f);
view1.setRightSvgAlpha(0.6f);
view1.setBottomSvgAlpha(0.8f);
SVGTextView view2 = (SVGTextView) findViewById(R.id.extend_textview2);
view2.setLeftSvgAlpha(0.2f);
view2.setTopSvgAlpha(0.4f);
view2.setRightSvgAlpha(0.6f);
view2.setBottomSvgAlpha(0.8f);
view2.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_android_red,
R.drawable.ic_android_red, R.drawable.ic_android_red, R.drawable.ic_android_red);
// influence all compound drawables
// view.setSvgAlpha(0.5f);
}
}
|
[
"xuexiangjys@163.com"
] |
xuexiangjys@163.com
|
e12d96f4abd6dd0df1f47ada7a39d5e36e25f197
|
a03ddb4111faca852088ea25738bc8b3657e7b5c
|
/TestTransit/src/org/codehaus/jackson/map/ser/ArraySerializers$CharArraySerializer.java
|
29fe31fd8d5eae78963100ac8e5622c65ce37384
|
[] |
no_license
|
randhika/TestMM
|
5f0de3aee77b45ca00f59cac227450e79abc801f
|
4278b34cfe421bcfb8c4e218981069a7d7505628
|
refs/heads/master
| 2020-12-26T20:48:28.446555
| 2014-09-29T14:37:51
| 2014-09-29T14:37:51
| 24,874,176
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,315
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.codehaus.jackson.map.ser;
import java.io.IOException;
import java.lang.reflect.Type;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.SerializerProvider;
import org.codehaus.jackson.map.TypeSerializer;
import org.codehaus.jackson.node.ObjectNode;
// Referenced classes of package org.codehaus.jackson.map.ser:
// SerializerBase, ArraySerializers
public static final class extends SerializerBase
{
private final void _writeArrayContents(JsonGenerator jsongenerator, char ac[])
throws IOException, JsonGenerationException
{
int i = 0;
for (int j = ac.length; i < j; i++)
{
jsongenerator.writeString(ac, i, 1);
}
}
public JsonNode getSchema(SerializerProvider serializerprovider, Type type)
{
ObjectNode objectnode = createSchemaNode("array", true);
ObjectNode objectnode1 = createSchemaNode("string");
objectnode1.put("type", "string");
objectnode.put("items", objectnode1);
return objectnode;
}
public volatile void serialize(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider)
throws IOException, JsonGenerationException
{
serialize((char[])obj, jsongenerator, serializerprovider);
}
public void serialize(char ac[], JsonGenerator jsongenerator, SerializerProvider serializerprovider)
throws IOException, JsonGenerationException
{
if (serializerprovider.isEnabled(org.codehaus.jackson.map.R_ARRAYS_AS_JSON_ARRAYS))
{
jsongenerator.writeStartArray();
_writeArrayContents(jsongenerator, ac);
jsongenerator.writeEndArray();
return;
} else
{
jsongenerator.writeString(ac, 0, ac.length);
return;
}
}
public volatile void serializeWithType(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider, TypeSerializer typeserializer)
throws IOException, JsonProcessingException
{
serializeWithType((char[])obj, jsongenerator, serializerprovider, typeserializer);
}
public void serializeWithType(char ac[], JsonGenerator jsongenerator, SerializerProvider serializerprovider, TypeSerializer typeserializer)
throws IOException, JsonGenerationException
{
if (serializerprovider.isEnabled(org.codehaus.jackson.map.R_ARRAYS_AS_JSON_ARRAYS))
{
typeserializer.writeTypePrefixForArray(ac, jsongenerator);
_writeArrayContents(jsongenerator, ac);
typeserializer.writeTypeSuffixForArray(ac, jsongenerator);
return;
} else
{
typeserializer.writeTypePrefixForScalar(ac, jsongenerator);
jsongenerator.writeString(ac, 0, ac.length);
typeserializer.writeTypeSuffixForScalar(ac, jsongenerator);
return;
}
}
public ()
{
super([C);
}
}
|
[
"metromancn@gmail.com"
] |
metromancn@gmail.com
|
41b39f87db0f5b5263341c60dbeacd4252dac67f
|
57e8a51c85eebc844e53e38976f3d40038f7d200
|
/contentlib/src/main/java/com/mu/zi/contentlib/p4_template_method_pattern/TemplateMethod.java
|
97ea7b9ba551e6c0cbf4665157f89b09c6fd4788
|
[] |
no_license
|
cyp206/DesignModeLearning
|
32b9506c6efe542864a7dc9561c44294f049e9c7
|
afb912c85f4dd0294e303301de28d38c9418ea34
|
refs/heads/master
| 2021-05-14T15:58:52.026392
| 2018-02-10T16:51:59
| 2018-02-10T16:51:59
| 116,008,620
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 876
|
java
|
package com.mu.zi.contentlib.p4_template_method_pattern;
/**
* Created by y on 2018/1/4.
*/
public class TemplateMethod {
public abstract class AbstractClass {
//通用方法
final void doSomething() {
System.out.println("is public method");
}
protected abstract void doAnything();
}
public class Class1 extends AbstractClass {
@Override
protected void doAnything() {
System.out.println("Class1 doAnything");
}
}
public class Class2 extends AbstractClass {
@Override
protected void doAnything() {
System.out.println("Class2 doAnything");
}
}
public TemplateMethod() {
AbstractClass a1 = new Class1();
a1.doAnything();
AbstractClass a2 = new Class1();
a2.doAnything();
}
}
|
[
"cyp206@qq.com"
] |
cyp206@qq.com
|
287065e202249df7008748fe235771a5e1070be3
|
4ed42cc1320c27a7add0c393b960a4bd27e17d17
|
/src/main/java/com/lambdasys/movieflix/mapper/MovieMapper.java
|
9e4b23a25dc2037dedf66ee28d36cef73dbbd61a
|
[
"Apache-2.0"
] |
permissive
|
leoluzh/movieflix-kubernetes
|
3ef22e3dceeca7a8adf16f634821958376b5fa30
|
00769d9930258e8e18bff47bc14b5e64541ee2c7
|
refs/heads/master
| 2023-04-18T08:11:25.297961
| 2021-04-29T01:02:42
| 2021-04-29T01:02:42
| 358,076,232
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 380
|
java
|
package com.lambdasys.movieflix.mapper;
import com.lambdasys.movieflix.dto.MovieDTO;
import com.lambdasys.movieflix.entity.Movie;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper
public interface MovieMapper {
MovieMapper INSTANCE = Mappers.getMapper(MovieMapper.class);
Movie toModel(MovieDTO movieDTO);
MovieDTO toDTO(Movie movie);
}
|
[
"leonardo.l.fernandes@gmail.com"
] |
leonardo.l.fernandes@gmail.com
|
efd534a9116c616e3e2b6d97052a1ed5a0b0275c
|
ffeaf567e9b1aadb4c00d95cd3df4e6484f36dcd
|
/Hotgram/org/telegram/ui/-$$Lambda$PassportActivity$6lQsSYr5slO_jvBJxggKac2g49o.java
|
7774f15bfc0183d5e2ec5970bbd98e7dc9cd0a18
|
[] |
no_license
|
danielperez9430/Third-party-Telegram-Apps-Spy
|
dfe541290c8512ca366e401aedf5cc5bfcaa6c3e
|
f6fc0f9c677bd5d5cd3585790b033094c2f0226d
|
refs/heads/master
| 2020-04-11T23:26:06.025903
| 2018-12-18T10:07:20
| 2018-12-18T10:07:20
| 162,166,647
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 530
|
java
|
package org.telegram.ui;
import org.telegram.tgnet.TLObject;
import org.telegram.tgnet.TLRPC$TL_error;
public final class -$$Lambda$PassportActivity$6lQsSYr5slO_jvBJxggKac2g49o implements Runnable {
public -$$Lambda$PassportActivity$6lQsSYr5slO_jvBJxggKac2g49o(PassportActivity arg1, TL_error arg2, TLObject arg3) {
super();
this.f$0 = arg1;
this.f$1 = arg2;
this.f$2 = arg3;
}
public final void run() {
PassportActivity.lambda$null$9(this.f$0, this.f$1, this.f$2);
}
}
|
[
"dpefe@hotmail.es"
] |
dpefe@hotmail.es
|
024e1f0ae3739d0404c0583ac7a4bf94e1bf9162
|
50a10882505c9dcae2edc88770821a5aec1dd86f
|
/tds/src/main/java/thredds/server/metadata/MetadataRequestParameterBean.java
|
a4d86cd4c2d1bd7e9276238774581cdcee48e5db
|
[
"NetCDF"
] |
permissive
|
codemonkeyneo/thredds
|
e19c8de503fdca1b701ecda0be9b64ead3c585b4
|
b731bcb45b6e10b7e6102e97a9ef35e9fef43c93
|
refs/heads/5.0.0
| 2021-01-24T00:15:47.827378
| 2016-09-07T17:44:32
| 2016-09-07T17:44:32
| 68,065,015
| 1
| 0
| null | 2016-09-13T02:05:15
| 2016-09-13T02:05:14
| null |
UTF-8
|
Java
| false
| false
| 2,560
|
java
|
/*
* Copyright 1998-2015 John Caron and University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings on the user. The user is granted the right, without
* any fee or cost, to use, copy, modify, alter, enhance and distribute
* this software, and any derivative works thereof, and its supporting
* documentation for any purpose whatsoever, provided that this entire
* notice appears in all copies of the software, derivative works and
* supporting documentation. Further, UCAR requests that the user credit
* UCAR/Unidata in any publications that result from the use of this
* software or in any product that includes this software. The names UCAR
* and/or Unidata, however, may not be used in any advertising or publicity
* to endorse or promote any products or commercial entity unless specific
* written permission is obtained from UCAR/Unidata. The user also
* understands that UCAR/Unidata is not obligated to provide the user with
* any support, consulting, training or assistance of any kind with regard
* to the use, operation and performance of this software nor to provide
* the user with any updates, revisions, new versions or "bug fixes."
*
* THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "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 UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package thredds.server.metadata;
import javax.validation.constraints.NotNull;
/**
* Describe
*
* @author caron
* @since 6/5/12
*/
public class MetadataRequestParameterBean {
@NotNull
private String metadata;
private String accept;
public String getMetadata() {
return metadata;
}
public void setMetadata(String metadata) {
this.metadata = metadata;
}
public String getAccept() {
return accept;
}
public void setAccept(String accept) {
this.accept = accept;
}
}
|
[
"caron@unidata.ucar.edu"
] |
caron@unidata.ucar.edu
|
bd08cd69343fb283ee55c37ec905249fa25aea70
|
5145b7405f1ae107ba99a41fd28f638772165994
|
/Android/Iansoft Agency/app/src/main/java/com/example/agency/BluetoothConnector.java
|
a9f04138cecd9dedb6bfce57a37235f1a53ee125
|
[
"MIT"
] |
permissive
|
ewkonzo/Projects
|
a55f45ff363dfc4892e57459f357d255e302d5ba
|
bf3efc30353086978cdeb0253680743f48d8fa86
|
refs/heads/master
| 2022-01-29T11:47:26.939493
| 2019-07-21T08:51:57
| 2019-07-21T08:51:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,421
|
java
|
package com.example.agency;
/**
* Created by Paul on 01-Oct-16.
*/
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class BluetoothConnector {
private BluetoothSocketWrapper bluetoothSocket;
private BluetoothDevice device;
private boolean secure;
private BluetoothAdapter adapter;
private List<UUID> uuidCandidates;
private int candidate;
/**
* @param device the device
* @param secure if connection should be done via a secure socket
* @param adapter the Android BT adapter
* @param uuidCandidates a list of UUIDs. if null or empty, the Serial PP id is used
*/
public BluetoothConnector(BluetoothDevice device, boolean secure, BluetoothAdapter adapter,
List<UUID> uuidCandidates) {
this.device = device;
this.secure = secure;
this.adapter = adapter;
this.uuidCandidates = uuidCandidates;
if (this.uuidCandidates == null || this.uuidCandidates.isEmpty()) {
this.uuidCandidates = new ArrayList<UUID>();
this.uuidCandidates.add(UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"));
}
}
public BluetoothSocket connect() throws IOException {
boolean success = false;
BluetoothSocket bs=null ;
while (selectSocket()) {
adapter.cancelDiscovery();
try {
bs= bluetoothSocket.connect();
success = true;
break;
} catch (IOException e) {
//try the fallback
try {
bluetoothSocket = new FallbackBluetoothSocket(bluetoothSocket.getUnderlyingSocket());
Thread.sleep(500);
bs= bluetoothSocket.connect();
success = true;
break;
} catch (FallbackException e1) {
Log.w("BT", "Could not initialize FallbackBluetoothSocket classes.", e);
} catch (InterruptedException e1) {
Log.w("BT", e1.getMessage(), e1);
} catch (IOException e1) {
Log.w("BT", "Fallback failed. Cancelling.", e1);
}
}
}
if (!success) {
throw new IOException("Could not connect to device: "+ device.getAddress());
}
return bs;
}
private boolean selectSocket() throws IOException {
if (candidate >= uuidCandidates.size()) {
return false;
}
BluetoothSocket tmp;
UUID uuid = uuidCandidates.get(candidate++);
Log.i("BT", "Attempting to connect to Protocol: "+ uuid);
if (secure) {
tmp = device.createRfcommSocketToServiceRecord(uuid);
} else {
tmp = device.createInsecureRfcommSocketToServiceRecord(uuid);
}
bluetoothSocket = new NativeBluetoothSocket(tmp);
return true;
}
public static interface BluetoothSocketWrapper {
InputStream getInputStream() throws IOException;
OutputStream getOutputStream() throws IOException;
String getRemoteDeviceName();
BluetoothSocket connect() throws IOException;
String getRemoteDeviceAddress();
void close() throws IOException;
BluetoothSocket getUnderlyingSocket();
}
public static class NativeBluetoothSocket implements BluetoothSocketWrapper {
private BluetoothSocket socket;
public NativeBluetoothSocket(BluetoothSocket tmp) {
this.socket = tmp;
}
@Override
public InputStream getInputStream() throws IOException {
return socket.getInputStream();
}
@Override
public OutputStream getOutputStream() throws IOException {
return socket.getOutputStream();
}
@Override
public String getRemoteDeviceName() {
return socket.getRemoteDevice().getName();
}
@Override
public BluetoothSocket connect() throws IOException {
socket.connect();
return getUnderlyingSocket();
}
@Override
public String getRemoteDeviceAddress() {
return socket.getRemoteDevice().getAddress();
}
@Override
public void close() throws IOException {
socket.close();
}
@Override
public BluetoothSocket getUnderlyingSocket() {
return socket;
}
}
public class FallbackBluetoothSocket extends NativeBluetoothSocket {
private BluetoothSocket fallbackSocket;
public FallbackBluetoothSocket(BluetoothSocket tmp) throws FallbackException {
super(tmp);
try
{
Class<?> clazz = tmp.getRemoteDevice().getClass();
Class<?>[] paramTypes = new Class<?>[] {Integer.TYPE};
Method m = clazz.getMethod("createRfcommSocket", paramTypes);
Object[] params = new Object[] {Integer.valueOf(1)};
fallbackSocket = (BluetoothSocket) m.invoke(tmp.getRemoteDevice(), params);
}
catch (Exception e)
{
throw new FallbackException(e);
}
}
@Override
public InputStream getInputStream() throws IOException {
return fallbackSocket.getInputStream();
}
@Override
public OutputStream getOutputStream() throws IOException {
return fallbackSocket.getOutputStream();
}
@Override
public BluetoothSocket connect() throws IOException {
fallbackSocket.connect();
return fallbackSocket;
}
@Override
public void close() throws IOException {
fallbackSocket.close();
}
}
public static class FallbackException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
public FallbackException(Exception e) {
super(e);
}
}
}
|
[
"mbugus2008@gmail.com"
] |
mbugus2008@gmail.com
|
40a33230e34685d9ad9a33fc16a3f66ca87f70f9
|
fa622aa8d5ddd44c33cbd5a3513c980f29bac2e2
|
/com.archimatetool.editor/src/com/archimatetool/editor/diagram/commands/CreateDiagramArchimateObjectCommand.java
|
211ee372a46a59e00531245af5b9018fcf4cd9ad
|
[
"MIT",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
nicorikken/archi
|
7ca3d9fdbdac5db040b8e284d3da1dda4d2da82b
|
eaef02d995345835c8bedd07c55bca04a63a95e1
|
refs/heads/master
| 2020-09-14T05:20:14.938612
| 2019-11-18T14:31:21
| 2019-11-18T14:31:21
| 223,030,901
| 1
| 0
|
MIT
| 2019-11-20T21:28:48
| 2019-11-20T21:28:47
| null |
UTF-8
|
Java
| false
| false
| 3,135
|
java
|
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.diagram.commands;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.CompoundCommand;
import org.eclipse.gef.requests.CreateRequest;
import org.eclipse.swt.widgets.Display;
import com.archimatetool.editor.preferences.ConnectionPreferences;
import com.archimatetool.model.IDiagramModelArchimateObject;
/**
* Create New Diagram Archimate Object Command
*
* @author Phillip Beauvoir
*/
public class CreateDiagramArchimateObjectCommand extends CreateDiagramObjectCommand {
/**
* Create Nested Relation Command
*/
protected CompoundCommand subCommand = new CompoundCommand();
public CreateDiagramArchimateObjectCommand(EditPart parentEditPart, CreateRequest request, Rectangle bounds) {
super(parentEditPart, request, bounds);
}
@Override
public void execute() {
addChild();
// Create Nested Relation as well if prefs and both types are Archimate
if(ConnectionPreferences.createRelationWhenAddingNewElement() &&
fParent instanceof IDiagramModelArchimateObject && fChild instanceof IDiagramModelArchimateObject) {
// We need to have this on a thread. There has been a case of the odd glitch causing a NPE.
Display.getCurrent().asyncExec(new Runnable() {
@Override
public void run() {
Command cmd = new CreateNestedArchimateConnectionsWithDialogCommand((IDiagramModelArchimateObject)fParent,
(IDiagramModelArchimateObject)fChild);
subCommand.add(cmd);
subCommand.execute();
// Edit name on this thread
editNameOfNewObject();
}
});
}
else {
// Edit name on a new thread
Display.getCurrent().asyncExec(new Runnable() {
@Override
public void run() {
editNameOfNewObject();
}
});
}
}
@Override
public void undo() {
super.undo();
// Remove the Archimate model object from its containing folder
((IDiagramModelArchimateObject)fChild).removeArchimateConceptFromModel();
subCommand.undo();
}
@Override
public void redo() {
// This first
super.redo();
// Add the Archimate model object to a default folder
((IDiagramModelArchimateObject)fChild).addArchimateConceptToModel(null);
subCommand.redo();
}
@Override
public void dispose() {
super.dispose();
subCommand.dispose();
}
}
|
[
"p.beauvoir@dadabeatnik.com"
] |
p.beauvoir@dadabeatnik.com
|
c224aed4919b62ec41ff904e25f3ffdee854953f
|
db9e7654723af21e2062dc4fea4bfd9751bbf702
|
/kybaby/src/main/java/com/kybaby/domain/Banner.java
|
820fd86fd3f50a07781212b9b2f407b0ea8d0126
|
[] |
no_license
|
c19t043/comTest
|
25ab7fadbd667c3fc520ac82b0ab734c49925d83
|
ae59bde6fa671c009bded3b1aa05d32bec88ddd8
|
refs/heads/master
| 2020-12-24T06:40:17.174421
| 2016-11-18T08:44:57
| 2016-11-18T08:44:57
| 73,466,674
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,435
|
java
|
package com.kybaby.domain;
/**
* Banner entity. @author MyEclipse Persistence Tools
*/
public class Banner implements java.io.Serializable {
// Fields
private Long id;
private String name;
private String value;
private String bannerStatus;
private String updateTime;
private String comments;
// Constructors
/** default constructor */
public Banner() {
}
/** full constructor */
public Banner(String name, String value, String bannerStatus,
String updateTime, String comments) {
this.name = name;
this.value = value;
this.bannerStatus = bannerStatus;
this.updateTime = updateTime;
this.comments = comments;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getBannerStatus() {
return this.bannerStatus;
}
public void setBannerStatus(String bannerStatus) {
this.bannerStatus = bannerStatus;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getComments() {
return this.comments;
}
public void setComments(String comments) {
this.comments = comments;
}
}
|
[
"176158750@qq.com"
] |
176158750@qq.com
|
75c850e8d2ef11e7f4984a5afee791d1f30b928a
|
83d99a8c668e0587a5cad69648c14e9e1a030f24
|
/src/main/java/software/cstl/service/dto/AttendanceCriteria.java
|
89e2ea9cfed0e8cf4c3e03d16a498da53fc5f395
|
[] |
no_license
|
codenodesoft/taro-erp
|
dc42db87e48a9b1087b7c9d3143e8329921a088e
|
63b648aa989be6afb814a86d16c4cfc14b75456a
|
refs/heads/master
| 2023-08-01T10:22:12.683539
| 2021-09-29T09:02:31
| 2021-09-29T09:02:31
| 410,503,280
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,961
|
java
|
package software.cstl.service.dto;
import java.io.Serializable;
import java.util.Objects;
import io.github.jhipster.service.Criteria;
import io.github.jhipster.service.filter.BooleanFilter;
import io.github.jhipster.service.filter.DoubleFilter;
import io.github.jhipster.service.filter.Filter;
import io.github.jhipster.service.filter.FloatFilter;
import io.github.jhipster.service.filter.IntegerFilter;
import io.github.jhipster.service.filter.LongFilter;
import io.github.jhipster.service.filter.StringFilter;
import io.github.jhipster.service.filter.ZonedDateTimeFilter;
/**
* Criteria class for the {@link software.cstl.domain.Attendance} entity. This class is used
* in {@link software.cstl.web.rest.AttendanceResource} to receive all the possible filtering options from
* the Http GET request parameters.
* For example the following could be a valid request:
* {@code /attendances?id.greaterThan=5&attr1.contains=something&attr2.specified=false}
* As Spring is unable to properly convert the types, unless specific {@link Filter} class are used, we need to use
* fix type specific filters.
*/
public class AttendanceCriteria implements Serializable, Criteria {
private static final long serialVersionUID = 1L;
private LongFilter id;
private StringFilter machineNo;
private StringFilter employeeMachineId;
private ZonedDateTimeFilter attendanceDateTime;
private StringFilter remarks;
private LongFilter attendanceDataUploadId;
public AttendanceCriteria() {
}
public AttendanceCriteria(AttendanceCriteria other) {
this.id = other.id == null ? null : other.id.copy();
this.machineNo = other.machineNo == null ? null : other.machineNo.copy();
this.employeeMachineId = other.employeeMachineId == null ? null : other.employeeMachineId.copy();
this.attendanceDateTime = other.attendanceDateTime == null ? null : other.attendanceDateTime.copy();
this.remarks = other.remarks == null ? null : other.remarks.copy();
this.attendanceDataUploadId = other.attendanceDataUploadId == null ? null : other.attendanceDataUploadId.copy();
}
@Override
public AttendanceCriteria copy() {
return new AttendanceCriteria(this);
}
public LongFilter getId() {
return id;
}
public void setId(LongFilter id) {
this.id = id;
}
public StringFilter getMachineNo() {
return machineNo;
}
public void setMachineNo(StringFilter machineNo) {
this.machineNo = machineNo;
}
public StringFilter getEmployeeMachineId() {
return employeeMachineId;
}
public void setEmployeeMachineId(StringFilter employeeMachineId) {
this.employeeMachineId = employeeMachineId;
}
public ZonedDateTimeFilter getAttendanceDateTime() {
return attendanceDateTime;
}
public void setAttendanceDateTime(ZonedDateTimeFilter attendanceDateTime) {
this.attendanceDateTime = attendanceDateTime;
}
public StringFilter getRemarks() {
return remarks;
}
public void setRemarks(StringFilter remarks) {
this.remarks = remarks;
}
public LongFilter getAttendanceDataUploadId() {
return attendanceDataUploadId;
}
public void setAttendanceDataUploadId(LongFilter attendanceDataUploadId) {
this.attendanceDataUploadId = attendanceDataUploadId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final AttendanceCriteria that = (AttendanceCriteria) o;
return
Objects.equals(id, that.id) &&
Objects.equals(machineNo, that.machineNo) &&
Objects.equals(employeeMachineId, that.employeeMachineId) &&
Objects.equals(attendanceDateTime, that.attendanceDateTime) &&
Objects.equals(remarks, that.remarks) &&
Objects.equals(attendanceDataUploadId, that.attendanceDataUploadId);
}
@Override
public int hashCode() {
return Objects.hash(
id,
machineNo,
employeeMachineId,
attendanceDateTime,
remarks,
attendanceDataUploadId
);
}
// prettier-ignore
@Override
public String toString() {
return "AttendanceCriteria{" +
(id != null ? "id=" + id + ", " : "") +
(machineNo != null ? "machineNo=" + machineNo + ", " : "") +
(employeeMachineId != null ? "employeeMachineId=" + employeeMachineId + ", " : "") +
(attendanceDateTime != null ? "attendanceDateTime=" + attendanceDateTime + ", " : "") +
(remarks != null ? "remarks=" + remarks + ", " : "") +
(attendanceDataUploadId != null ? "attendanceDataUploadId=" + attendanceDataUploadId + ", " : "") +
"}";
}
}
|
[
"farihaarifin@gmail.com"
] |
farihaarifin@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.