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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10d737323ac4dc4e4be713cdbf6760aefec7bf11
|
1b37b8f82665d9a1d82da522325acbbcdcc07155
|
/src/main/java/com/jn/langx/util/io/file/comparator/LastModifiedFileComparator.java
|
29acc981fcfc8c5a2744367b07b79fac7c18e852
|
[
"MIT"
] |
permissive
|
zhangxiaolu125/langx-java
|
c1369a5f643a420d7ad617907673802f581b30bf
|
4f44333f80514e2a1a475e2f86989e8476d395fb
|
refs/heads/master
| 2020-09-17T11:00:34.254716
| 2019-11-25T12:27:48
| 2019-11-25T12:27:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 989
|
java
|
package com.jn.langx.util.io.file.comparator;
import java.io.File;
import java.util.Comparator;
public class LastModifiedFileComparator implements Comparator<File> {
/**
* Compare the last the last modified date/time of two files.
*
* @param file1 The first file to compare
* @param file2 The second file to compare
* @return a negative value if the first file's lastmodified date/time
* is less than the second, zero if the lastmodified date/time are the
* same and a positive value if the first files lastmodified date/time
* is greater than the second file.
*/
@Override
public int compare(final File file1, final File file2) {
long delta = file1.lastModified() - file2.lastModified();
if (delta > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
if (delta < Integer.MIN_VALUE) {
return Integer.MIN_VALUE;
}
return Integer.parseInt(delta + "");
}
}
|
[
"fs1194361820@163.com"
] |
fs1194361820@163.com
|
105455af7abf03261319835589bb371e65c53641
|
c0fdef195d19802d3d103b1dcea7918568fa29cd
|
/src/main/java/com/dxj/skc/repository/BaseRepository.java
|
2a51814db2f1fcc719115caebc95fd6b38d07ce1
|
[] |
no_license
|
Allen47/skc-spring-boot-starter
|
3792bf64746378ed662655b671643ca959bd4541
|
1b4e09cce17468861b4e083c88f9c67419d607da
|
refs/heads/master
| 2023-02-07T19:27:43.991702
| 2020-12-25T07:42:42
| 2020-12-25T07:42:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 586
|
java
|
package com.dxj.skc.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;
import java.io.Serializable;
/**
* @Description: 自定义接口 不会创建接口的实例 必须加此注解
* @Author: Sinkiang
* @Date: 2020/3/27 15:50
* @CopyRight: 2020 sk-admin all rights reserved.
*/
@NoRepositoryBean
public interface BaseRepository<E, ID extends Serializable> extends JpaRepository<E, ID>, JpaSpecificationExecutor<E> {
}
|
[
"dengsinkiang@gmail.com"
] |
dengsinkiang@gmail.com
|
ed568ecbc108fddb60ba1a4f6d10275e4260b712
|
ba3b25d6cf9be46007833ce662d0584dc1246279
|
/droidsafe_modified/modeling/api/com/google/android/collect/Maps.java
|
32b432103cf31e29a74b3799db40ea82a44b5ccd
|
[] |
no_license
|
suncongxd/muDep
|
46552d4156191b9dec669e246188080b47183a01
|
b891c09f2c96ff37dcfc00468632bda569fc8b6d
|
refs/heads/main
| 2023-03-20T20:04:41.737805
| 2021-03-01T19:52:08
| 2021-03-01T19:52:08
| 326,209,904
| 8
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,352
|
java
|
/*
* Copyright (C) 2015, Massachusetts Institute of Technology
*
* 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 2 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Please email droidsafe@lists.csail.mit.edu if you need additional
* information or have any questions.
*
*
* This file incorporates work covered by the following copyright and
* permission notice:
*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/***** THIS FILE HAS BEEN MODIFIED FROM THE ORIGINAL BY THE DROIDSAFE PROJECT. *****/
package com.google.android.collect;
// Droidsafe Imports
import droidsafe.runtime.*;
import droidsafe.helpers.*;
import droidsafe.annotations.*;
import java.util.HashMap;
public class Maps {
public static <K, V> HashMap<K, V> newHashMap() {
return new HashMap<K, V>();
}
@DSSafe(DSCat.SAFE_OTHERS)
@DSGenerator(tool_name = "Doppelganger", tool_version = "0.4.2", generated_on = "2013-07-17 10:24:29.486 -0400", hash_original_method = "D14A46AD9A44F18F095D421F94A96F01", hash_generated_method = "D14A46AD9A44F18F095D421F94A96F01")
public Maps ()
{
//Synthesized constructor
}
}
|
[
"suncong@xidian.edu.cn"
] |
suncong@xidian.edu.cn
|
40559e4453361f1d1491f6dc658231bbfa170e68
|
2088303ad9939663f5f8180f316b0319a54bc1a6
|
/src/main/java/com/lottery/lottype/hubei11x5/Hubei11x5SQ2.java
|
57a105539cb4701165c049b385a53431d3e560d6
|
[] |
no_license
|
lichaoliu/lottery
|
f8afc33ccc70dd5da19c620250d14814df766095
|
7796650e5b851c90fce7fd0a56f994f613078e10
|
refs/heads/master
| 2022-12-23T05:30:22.666503
| 2019-06-10T13:46:38
| 2019-06-10T13:46:38
| 141,867,129
| 7
| 1
| null | 2022-12-16T10:52:50
| 2018-07-22T04:59:44
|
Java
|
UTF-8
|
Java
| false
| false
| 1,996
|
java
|
package com.lottery.lottype.hubei11x5;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import com.lottery.common.contains.ErrorCode;
import com.lottery.common.contains.lottery.LotteryDrawPrizeAwarder;
import com.lottery.common.exception.LotteryException;
import com.lottery.lottype.SplitedLot;
public class Hubei11x5SQ2 extends Hubei11x5X{
@Override
public String caculatePrizeLevel(String betcode, String wincode,
int oneAmount) {
String[] betcodes = betcode.split("\\-")[1].split("\\^");
StringBuilder prize = new StringBuilder();
for(String bet:betcodes) {
if(wincode.substring(0, 5).equals(bet)) {
prize.append(LotteryDrawPrizeAwarder.HUBEI11X5_Q2.value).append(",");
}
}
if(prize.toString().endsWith(",")) {
prize = prize.deleteCharAt(prize.length()-1);
}
return prize.toString();
}
@Override
public long getSingleBetAmount(String betcode, BigDecimal beishu,
int oneAmount) {
if(!betcode.matches(SQ2)) {
throw new LotteryException(ErrorCode.betamount_error, ErrorCode.betamount_error.memo);
}
for(String bet:betcode.split("\\-")[1].split("\\^")) {
if(isBetcodeDuplication(bet)) {
throw new LotteryException(ErrorCode.betamount_error, ErrorCode.betamount_error.memo);
}
}
return betcode.split("\\^").length*200*beishu.longValue();
}
@Override
public List<SplitedLot> splitByType(String betcode, int lotmulti,
int oneAmount) {
List<SplitedLot> list = new ArrayList<SplitedLot>();
List<SplitedLot> zhumaList = transformfive(betcode,lotmulti);
for(SplitedLot splitedLot:zhumaList) {
if(!SplitedLot.isToBeSplit99(splitedLot.getLotMulti(),splitedLot.getAmt())) {
list.add(splitedLot);
}else {
list.addAll(SplitedLot.splitToPermissionMulti(splitedLot.getBetcode(), splitedLot.getLotMulti(), 99,lotterytype));
}
}
for(SplitedLot s:list) {
s.setAmt(getSingleBetAmount(s.getBetcode(), new BigDecimal(s.getLotMulti()), 200));
}
return list;
}
}
|
[
"1147149597@qq.com"
] |
1147149597@qq.com
|
1e9abc7de4709ba887e75fcda70f88eae4e7da94
|
bfed0d992f925ee137eb94026f0283724eba17fa
|
/V2.0/ZODB/src/nl/zeesoft/zodb/database/model/MdlString.java
|
b5b5ec9f1042705c5739b037902526f23a537b01
|
[] |
no_license
|
DyzLecticus/Zeesoft
|
c17c469b000f15301ff2be6c19671b12bba25f99
|
b5053b762627762ffeaa2de4f779d6e1524a936d
|
refs/heads/master
| 2023-04-15T01:42:36.260351
| 2023-04-10T06:50:40
| 2023-04-10T06:50:40
| 28,697,832
| 7
| 2
| null | 2023-02-27T16:30:37
| 2015-01-01T22:57:39
|
Java
|
UTF-8
|
Java
| false
| false
| 1,662
|
java
|
package nl.zeesoft.zodb.database.model;
import nl.zeesoft.zodb.file.xml.XMLElem;
import nl.zeesoft.zodb.file.xml.XMLFile;
public class MdlString extends MdlProperty {
private int maxLength = 24;
private boolean encode = false;
protected MdlString(MdlModel mdl) {
super(mdl);
}
@Override
protected XMLFile toXML() {
XMLFile file = super.toXML();
new XMLElem("maxLength",new StringBuilder("" + maxLength),file.getRootElement());
new XMLElem("encode",new StringBuilder("" + encode),file.getRootElement());
return file;
}
@Override
protected void fromXML(XMLElem rootElem) {
super.fromXML(rootElem);
for (XMLElem propElem: rootElem.getChildren()) {
if (propElem.getName().equals("maxLength")) {
setMaxLength(Integer.parseInt(propElem.getValue().toString()));
}
if (propElem.getName().equals("encode")) {
setEncode(Boolean.parseBoolean(propElem.getValue().toString()));
}
}
}
@Override
protected MdlProperty copy() {
MdlString r = new MdlString(getModel());
r.setCls(getCls());
r.setName(new String(getName()));
r.setIndex(new Boolean(isIndex()));
r.setMaxLength(new Integer(maxLength));
r.setEncode(new Boolean(encode));
return r;
}
/**
* @return the maxLength
*/
public int getMaxLength() {
return maxLength;
}
/**
* @param maxLength the maxLength to set
*/
public void setMaxLength(int maxLength) {
if (maxLength<1) {
maxLength = 1;
}
this.maxLength = maxLength;
}
/**
* @return the encode
*/
public boolean isEncode() {
return encode;
}
/**
* @param encode the encode to set
*/
public void setEncode(boolean encode) {
this.encode = encode;
}
}
|
[
"dyz@xs4all.nl"
] |
dyz@xs4all.nl
|
1e02063ea91cc21daac9b3881d26944df33a0c94
|
afe4f64dc7811131b430a58d8a755f40fd7ab204
|
/app/src/main/java/com/example/nayan/kidsgame/model/MImage.java
|
8ab346ffc330d79b6864c2377a93e9a8a2177941
|
[] |
no_license
|
nayan5565/KidsGameApp
|
e1b61ba046985190baf635246f74a0fd0684804d
|
dc32dc94976ed532860f3a5be27152a33703fc68
|
refs/heads/master
| 2020-07-16T04:10:49.253444
| 2016-11-23T22:08:54
| 2016-11-23T22:08:54
| 73,953,087
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 659
|
java
|
package com.example.nayan.kidsgame.model;
/**
* Created by NAYAN on 8/22/2016.
*/
public class MImage {
String image;
int status,id,type;
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
}
|
[
"nayan5565@gmail.com"
] |
nayan5565@gmail.com
|
8f5deb479f0b523b6f31eb4cfa54b51be57037e3
|
5a2a8492de88dff120d88d51a6ba2c6b196e329c
|
/retrieval/src/com/sxjun/core/GlobalConfig.java
|
a96e2eef073be36754e81be118c6f4448c1a2ce5
|
[] |
no_license
|
alxe1528/retrieval2014
|
116155f2bbeadcad70356cb834f8e637a698898e
|
6f2e9ff1238625acea762b8387f86f2949678e92
|
refs/heads/master
| 2021-01-21T05:36:38.904940
| 2014-04-30T03:03:06
| 2014-04-30T03:03:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,324
|
java
|
package com.sxjun.core;
import java.util.TimeZone;
import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.kit.StringKit;
import com.jfinal.plugin.ehcache.EhCachePlugin;
import com.jfinal.render.ViewType;
import com.sxjun.core.interceptor.SessionInterceptor;
import com.sxjun.core.plugin.redis.RedisPlugin;
import com.sxjun.core.routes.RetrievalAdminRoutes;
import com.sxjun.core.routes.RetrievalFrontRoutes;
import com.sxjun.core.routes.SystemRoutes;
import com.sxjun.retrieval.common.Global;
import frame.base.core.util.RSAUtil;
public class GlobalConfig extends JFinalConfig {
private final String json = System.getenv("VCAP_SERVICES");
private boolean isLocal = StringKit.isBlank(json);
@Override
public void configConstant(Constants me) {
Global.properties = loadPropertyFile("conf.properties");
Global.pageSize = getPropertyToInt("pageSize",10);
Global.frontPath = getProperty("frontPath","f");
Global.adminPath = getProperty("adminPath","a");
Global.urlSuffix = getProperty("urlSuffix");
Global.licenseInfo = RSAUtil.getLicenceInfo();
if (isLocal) {
me.setDevMode(true);
}
me.setViewType(ViewType.JSP);
me.setBaseViewPath("/WEB-INF/");
me.setError404View("/WEB-INF/error/404.html");
me.setError500View("/WEB-INF/error/500.html");
}
public void configRoute(Routes me) {
me.add(new RetrievalAdminRoutes());
me.add(new RetrievalFrontRoutes());
me.add(new SystemRoutes());
}
public void configPlugin(Plugins me) {
String host,port,dbIndex;
host = getProperty("host", "127.0.0.1");
port = getProperty("port", "6379");
dbIndex = getProperty("dbIndex", "0");
me.add(new EhCachePlugin());
RedisPlugin redisPlugin = new RedisPlugin(host,Integer.parseInt(port),Integer.parseInt(dbIndex));
me.add(redisPlugin);
}
public void configInterceptor(Interceptors me) {
me.add(new SessionInterceptor());
}
public void configHandler(Handlers me) {
}
@Override
public void afterJFinalStart() {
// 设置默认时间为北京时间
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
}
}
|
[
"sxjun1904@qq.com"
] |
sxjun1904@qq.com
|
f1f702d23615af1bccccae322a79e13bdf86979a
|
4e72deae64847042ec9c0c6653280a813b99d190
|
/oneview-sdk-java-lib/src/main/java/com/hp/ov/sdk/dto/HpSmartUpdateToolStatus.java
|
cd729845c13f97c4128d13db71ebb7136669cf77
|
[
"Apache-2.0"
] |
permissive
|
turbonomic/oneview-sdk-java
|
05d848c2e8d8bac48b7addd96ab7465712df1360
|
1f08bdb02568a387af7410b4344ef5f2fc0030c5
|
refs/heads/master
| 2020-04-02T01:54:12.669131
| 2016-08-25T18:05:25
| 2016-08-25T18:05:25
| 64,190,438
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,085
|
java
|
/*
* (C) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* 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.hp.ov.sdk.dto;
import java.io.Serializable;
public class HpSmartUpdateToolStatus implements Serializable {
private static final long serialVersionUID = 1L;
private InstallState hpSUTInstallState;
private InstallState installState;
private String lastOperationTime;
private String mode;
private String serviceState;
private String version;
public InstallState getHpSUTInstallState() {
return hpSUTInstallState;
}
public void setHpSUTInstallState(InstallState hpSUTInstallState) {
this.hpSUTInstallState = hpSUTInstallState;
}
public InstallState getInstallState() {
return installState;
}
public void setInstallState(InstallState installState) {
this.installState = installState;
}
public String getLastOperationTime() {
return lastOperationTime;
}
public void setLastOperationTime(String lastOperationTime) {
this.lastOperationTime = lastOperationTime;
}
public String getMode() {
return mode;
}
public void setMode(String mode) {
this.mode = mode;
}
public String getServiceState() {
return serviceState;
}
public void setServiceState(String serviceState) {
this.serviceState = serviceState;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
}
|
[
"luiz.her.svoboda@hpe.com"
] |
luiz.her.svoboda@hpe.com
|
63ca52914ef551c8d6833f594cd77cfc08107011
|
f216e337ef81c5535ff97ad02da2f33502778471
|
/core/src/main/java/net/kuujo/copycat/util/AbstractConfigurable.java
|
4ae59b65b34ac5f1378552a3039cc5882a34accc
|
[
"Apache-2.0"
] |
permissive
|
cazacugmihai/copycat
|
9fe167c32f2107d89fef58839debdd2d403787ec
|
f7e54857a9f68c8744cc9e926319cbc5167401b0
|
refs/heads/master
| 2020-12-25T20:54:43.735564
| 2015-01-24T06:32:26
| 2015-01-24T06:32:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,439
|
java
|
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.kuujo.copycat.util;
import net.kuujo.copycat.util.internal.Assert;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
/**
* Base configuration for configurable types.
*
* @author <a href="http://github.com/kuujo">Jordan Halterman</a>
*/
public abstract class AbstractConfigurable implements Configurable {
public static final String CONFIG_CLASS = "class";
protected Map<String, Object> config;
protected AbstractConfigurable() {
this(new HashMap<>(128));
}
protected AbstractConfigurable(Map<String, Object> config) {
this.config = config;
}
protected AbstractConfigurable(Configurable config) {
this(config.toMap());
}
@Override
public Configurable copy() {
try {
Configurable copy = getClass().newInstance();
copy.configure(toMap());
return copy;
} catch (InstantiationException | IllegalAccessException e) {
throw new ConfigurationException("Failed to create configuration copy", e);
}
}
@Override
public void configure(Map<String, Object> config) {
this.config = config;
}
/**
* Puts a configuration value in the configuration.
*
* @param key The configuration key.
* @param value The configuration value.
*/
@SuppressWarnings("unchecked")
protected void put(String key, Object value) {
config.put(Assert.isNotNull(key, "key"), value instanceof Configurable ? ((Configurable) value).toMap() : value);
}
/**
* Gets a configuration value from the configuration.
*
* @param key The configuration key.
* @param <U> The configuration value type.
* @return The configuration value.
*/
@SuppressWarnings("unchecked")
protected <U> U get(String key) {
return get(key, k -> null);
}
/**
* Gets a configuration value from the configuration.
*
* @param key The configuration key.
* @param defaultValue The default value to return if the configuration does not exist.
* @param <U> The configuration type.
* @return The configuration value.
*/
@SuppressWarnings("unchecked")
protected <U> U get(String key, U defaultValue) {
return get(key, k -> defaultValue);
}
/**
* Gets a configuration value from the configuration. If the value is not present then it is calculated with the
* given value calculator function.
*
* @param key The configuration key.
* @param computer The function with which to compute the value if not present.
* @param <U> The configuration type.
* @return The configuration value.
*/
@SuppressWarnings("unchecked")
protected <U> U get(String key, Function<String, U> computer) {
Assert.isNotNull(key, "key");
Object value = config.get(key);
if (value == null) {
return computer.apply(key);
} else if (value instanceof Map) {
String className = (String) ((Map<?, ?>) value).get(CONFIG_CLASS);
if (className != null) {
return (U) Configurable.load((Map<String, Object>) value);
}
}
return (U) value;
}
/**
* Removes a configuration value from the configuration.
*
* @param key The configuration key.
* @param <U> The configuration value type.
* @return The configuration value that was removed.
*/
@SuppressWarnings("unchecked")
protected <U> U remove(String key) {
return (U) config.remove(Assert.isNotNull(key, "key"));
}
/**
* Returns a boolean value indicating whether the configuration contains a key.
*
* @param key The key to check.
* @return Indicates whether the configuration contains the given key.
*/
protected boolean containsKey(String key) {
return config.containsKey(Assert.isNotNull(key, "key"));
}
/**
* Returns the configuration key set.
*
* @return The configuration key set.
*/
protected Set<String> keySet() {
return config.keySet();
}
/**
* Returns the configuration entry set.
*
* @return The configuration entry set.
*/
protected Set<Map.Entry<String, Object>> entrySet() {
return config.entrySet();
}
/**
* Clears the configuration.
*/
@SuppressWarnings("unchecked")
protected void clear() {
config.clear();
}
@Override
public Map<String, Object> toMap() {
Map<String, Object> config = new HashMap<>(this.config);
config.put("class", getClass().getName());
return config;
}
@Override
public boolean equals(Object object) {
if (object instanceof Map) {
return config.equals(object);
} else if (object instanceof Configurable) {
return ((Configurable) object).toMap().equals(config);
}
return false;
}
@Override
public int hashCode() {
return 37 * config.hashCode();
}
@Override
public String toString() {
return String.format("Config%s", config);
}
}
|
[
"jordan.halterman@gmail.com"
] |
jordan.halterman@gmail.com
|
3b69a6a94c9776aa226ddc291ea98f393c768e22
|
32fd0a92293e1f28c3acc0d66f82f9e74b37d357
|
/app/src/main/java/com/music/event/PlaySongEvent.java
|
6e21d57069af27185fb1d7342cd35269d43acdfb
|
[] |
no_license
|
Clyr/TestList
|
bba28d62ffb50420b171a73f524f9680b6977b62
|
3af631927075dea14dcdfef04c82bcf19f7f6e08
|
refs/heads/master
| 2021-07-10T13:03:19.494218
| 2020-08-18T12:13:12
| 2020-08-18T12:13:12
| 185,518,920
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 313
|
java
|
package com.music.event;
import com.music.data.model.Song;
/**
* Created with Android Studio.
* User: ryan.hoo.j@gmail.com
* Date: 9/5/16
* Time: 6:32 PM
* Desc: PlaySongEvent
*/
public class PlaySongEvent {
public Song song;
public PlaySongEvent(Song song) {
this.song = song;
}
}
|
[
"fxsinb2@163.com"
] |
fxsinb2@163.com
|
f972214ed7ba235c3c11c28897c4e10c95363b63
|
6b9588d36a20f37323724d39cf196feb31dc3103
|
/skycloset_malware/src/com/google/android/gms/common/api/internal/ax.java
|
c1f0e42daddb45911b92674d5a88c6590b602f65
|
[] |
no_license
|
won21kr/Malware_Project_Skycloset
|
f7728bef47c0b231528fdf002e3da4fea797e466
|
1ad90be1a68a4e9782a81ef1490f107489429c32
|
refs/heads/master
| 2022-12-07T11:27:48.119778
| 2019-12-16T21:39:19
| 2019-12-16T21:39:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,021
|
java
|
package com.google.android.gms.common.api.internal;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Application;
import android.content.ComponentCallbacks2;
import android.content.res.Configuration;
import android.os.Bundle;
import com.google.android.gms.common.util.f;
import java.util.ArrayList;
import java.util.concurrent.atomic.AtomicBoolean;
public final class ax implements Application.ActivityLifecycleCallbacks, ComponentCallbacks2 {
private static final ax a = new ax();
private final AtomicBoolean b = new AtomicBoolean();
private final AtomicBoolean c = new AtomicBoolean();
private final ArrayList<ay> d = new ArrayList();
private boolean e = false;
public static ax a() { return a; }
public static void a(Application paramApplication) {
synchronized (a) {
if (!a.e) {
paramApplication.registerActivityLifecycleCallbacks(a);
paramApplication.registerComponentCallbacks(a);
a.e = true;
}
return;
}
}
private final void b(boolean paramBoolean) {
synchronized (a) {
ArrayList arrayList = (ArrayList)this.d;
int i = arrayList.size();
byte b1 = 0;
while (b1 < i) {
Object object = arrayList.get(b1);
b1++;
((ay)object).a(paramBoolean);
}
return;
}
}
public final void a(ay paramay) {
synchronized (a) {
this.d.add(paramay);
return;
}
}
@TargetApi(16)
public final boolean a(boolean paramBoolean) {
if (!this.c.get())
if (f.b()) {
ActivityManager.RunningAppProcessInfo runningAppProcessInfo = new ActivityManager.RunningAppProcessInfo();
ActivityManager.getMyMemoryState(runningAppProcessInfo);
if (!this.c.getAndSet(true) && runningAppProcessInfo.importance > 100)
this.b.set(true);
} else {
return true;
}
return this.b.get();
}
public final void onActivityCreated(Activity paramActivity, Bundle paramBundle) {
boolean bool = this.b.compareAndSet(true, false);
this.c.set(true);
if (bool)
b(false);
}
public final void onActivityDestroyed(Activity paramActivity) {}
public final void onActivityPaused(Activity paramActivity) {}
public final void onActivityResumed(Activity paramActivity) {
boolean bool = this.b.compareAndSet(true, false);
this.c.set(true);
if (bool)
b(false);
}
public final void onActivitySaveInstanceState(Activity paramActivity, Bundle paramBundle) {}
public final void onActivityStarted(Activity paramActivity) {}
public final void onActivityStopped(Activity paramActivity) {}
public final void onConfigurationChanged(Configuration paramConfiguration) {}
public final void onLowMemory() {}
public final void onTrimMemory(int paramInt) {
if (paramInt == 20 && this.b.compareAndSet(false, true)) {
this.c.set(true);
b(true);
}
}
}
|
[
"root@localhost.localdomain"
] |
root@localhost.localdomain
|
01ced1f2fd70291b8651099ac92667e040d4a224
|
9e43ad7a51773b54a9cd2c6eb28c4aea83cc7886
|
/java/java2/src/session10/Scrollable_ResultSet_Example.java
|
298206b47314034ada58bc09e594001639a87617
|
[] |
no_license
|
lnminh58/All_Work_Space
|
01434cf6b575bb94f7cf48e3c5d74c664d5543d1
|
12667639481c862b99046db7b41554bb31e6e534
|
refs/heads/master
| 2023-01-05T18:08:22.525652
| 2019-11-24T08:42:35
| 2019-11-24T08:42:35
| 127,608,330
| 0
| 0
| null | 2023-01-05T11:21:58
| 2018-04-01T07:43:35
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 4,375
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package session10;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
/**
*
* @author nguyenducthao
*/
public class Scrollable_ResultSet_Example {
static void TYPE_FORWARD_ONLY() throws ClassNotFoundException, SQLException {
Connection conn;
Statement stmt;
Class.forName(session10Constants.JDBC_DRIVER);
System.out.println("Dang ket noi toi co so du lieu ...");
conn = DriverManager.getConnection(session10Constants.DB_URL + session10Constants.DATABASENAME + session10Constants.USER + session10Constants.PASS);
System.out.println("Tao cac lenh truy van SQL ...");
stmt = conn.createStatement();
String sql = "SELECT studentid, batch, name FROM student";
try (ResultSet rs = stmt.executeQuery(sql)) {
while (rs.next()) {
System.out.println("Student ID: " + rs.getString("studentid"));
System.out.println("Batch: " + rs.getString("batch"));
System.out.println("Name: " + rs.getString("name"));
}
// rs.previous();//error
}
stmt.close();
conn.close();
}
static void TYPE_SCROLL_INSENSITIVE() throws ClassNotFoundException, SQLException {
Connection conn;
Statement stmt;
Class.forName(session10Constants.JDBC_DRIVER);
System.out.println("Dang ket noi toi co so du lieu ...");
conn = DriverManager.getConnection(session10Constants.DB_URL + session10Constants.DATABASENAME + session10Constants.USER + session10Constants.PASS);
System.out.println("Tao cac lenh truy van SQL ...");
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
String sql = "SELECT studentid, batch, name FROM student";
try (ResultSet rs = stmt.executeQuery(sql)) {
while (rs.next()) {
System.out.println("Student ID: " + rs.getString("studentid"));
System.out.println("Batch: " + rs.getString("batch"));
System.out.println("Name: " + rs.getString("name"));
}
rs.previous();
System.out.println("Student ID: " + rs.getString("studentid"));
System.out.println("Batch: " + rs.getString("batch"));
System.out.println("Name: " + rs.getString("name"));
}
stmt.close();
conn.close();
}
static void TYPE_SCROLL_SENSITIVE() {
System.out.println("Xem ví dụ update_ResultSet");
}
public static void main(String[] args) throws ClassNotFoundException, SQLException {
// TYPE_FORWARD_ONLY();
TYPE_SCROLL_INSENSITIVE();
// TYPE_SCROLL_SENSITIVE();
}
}
/*
resultSetType:
TYPE_FORWARD_ONLY: ResultSet chỉ cho phép duyệt từ trên xuống dưới, từ trái sang phải. Đây là kiểu mặc định của các ResultSet.
TYPE_SCROLL_INSENSITIVE: ResultSet cho phép cuộn tiến lùi, sang trái, sang phải, nhưng không nhạy với các sự thay đổi dữ liệu dưới DB.
Nghĩa là trong quá trình duyệt qua một bản ghi và lúc nào đó duyệt lại bản ghi đó, nó không lấy các dữ liệu mới nhất của bản ghi mà có thể bị ai đó thay đổi.
TYPE_SCROLL_SENSITIVE: ResultSet cho phép cuộn tiến lùi, sang trái, sang phải, và nhạy cảm với sự thay đổi dữ liệu.
resultSetConcurrency:
CONCUR_READ_ONLY: Khi duyệt dữ liệu với các ResultSet kiểu này bạn chỉ có thể đọc dữ liệu.
CONCUR_UPDATABLE: Khi duyệt dữ liệu với các ResultSet kiểu này bạn chỉ có thể thay đổi dữ liệu tại nơi con trỏ đứng, ví dụ update giá trị cột nào đó.
Sự kết hợp giữa resultSetType và resultSetConcurrency:
TYPE_FORWARD_ONLY + CONCUR_READ_ONLY
TYPE_SCROLL_INSENSITIVE + CONCUR_READ_ONLY
TYPE_SCROLL_SENSITIVE + CONCUR_UPDATABLE
Nếu sử dụng:
TYPE_SCROLL_INSENSITIVE + CONCUR_UPDATABLE -> Error
*/
|
[
"lnminh58@gmail.com"
] |
lnminh58@gmail.com
|
fbd40b793c4fdea8fa3822dd3c365ca08fbdebae
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12482-5-30-SPEA2-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/hibernate/query/HqlQueryExecutor_ESTest_scaffolding.java
|
d7dc4d24e3bdbf4054db7fd89e55a22695ac5005
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 456
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Apr 06 03:59:09 UTC 2020
*/
package com.xpn.xwiki.store.hibernate.query;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class HqlQueryExecutor_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
43abac7814660127dec73519b568fee56f4bdf0d
|
0023b120832aabe1f985b8848b56281675ee2f48
|
/restygwt/src/it/restygwt-cxf-jaxson-example/src/main/java/org/fusesource/restygwt/examples/client/MapResult.java
|
79d3d8e461cbd31812cab02082b3d90601d53edb
|
[
"Apache-2.0"
] |
permissive
|
didinj/resty-gwt
|
5a5f3f4d4d636a2615600b3e24ba985b03ae99d6
|
f0cf1cbb994e19986db0d96afeb2a855e40c99e3
|
refs/heads/master
| 2020-12-30T19:37:25.630805
| 2012-04-10T13:33:54
| 2012-04-10T13:33:54
| 4,061,423
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,588
|
java
|
/**
* Copyright (C) 2009-2011 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fusesource.restygwt.examples.client;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class MapResult {
public Map<String, String> result = new LinkedHashMap<String, String>();
public MapResult() {
}
public MapResult(Map<String, String> map) {
this.result = map;
}
@Override
public int hashCode() {
return result.hashCode();
}
@Override
public boolean equals(Object obj) {
try {
MapResult other = (MapResult) obj;
return result.equals(other.result);
} catch (Throwable e) {
return false;
}
}
}
|
[
"hiram@hiramchirino.com"
] |
hiram@hiramchirino.com
|
ce3de8b0b092778adcd538484df9f74a87e69e71
|
6853baa915a04feb55a8eff3786ff78c1764fd36
|
/shoebox/SlidrLib/src/main/java/com/r0adkll/slidr/model/SlidrInterface.java
|
e5054f1ad3f42323ff9144e5214545465c81613d
|
[
"MIT"
] |
permissive
|
HKMOpen/SogoShoesBoxes
|
cb097cf425527f4eb311f5ee191b6b19663994b1
|
67a38ae913d340f4613315f7bff73228d37d2c2f
|
refs/heads/master
| 2020-05-15T02:20:37.114378
| 2015-04-09T03:46:24
| 2015-04-09T03:46:24
| 33,644,871
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 161
|
java
|
package com.r0adkll.slidr.model;
/**
* Created by r0adkll on 1/9/15.
*/
public interface SlidrInterface {
public void lock();
public void unlock();
}
|
[
"jobhesk@gmail.com"
] |
jobhesk@gmail.com
|
683fed8794bb6876b46271feb34ff70ff97299a4
|
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
|
/tags/2008-10-08/seasar2-2.4.30/seasar2/s2-framework/src/main/java/org/seasar/framework/util/DateConversionUtil.java
|
59db1677b5a4262a7b340440273663f0a28a084a
|
[
"Apache-2.0"
] |
permissive
|
svn2github/s2container
|
54ca27cf0c1200a93e1cb88884eb8226a9be677d
|
625adc6c4e1396654a7297d00ec206c077a78696
|
refs/heads/master
| 2020-06-04T17:15:02.140847
| 2013-08-09T09:38:15
| 2013-08-09T09:38:15
| 10,850,644
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,600
|
java
|
/*
* Copyright 2004-2008 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.seasar.framework.util;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import org.seasar.framework.exception.ParseRuntimeException;
/**
* {@link Date}用の変換ユーティリティです。
*
* @author higa
*
*/
public class DateConversionUtil {
/**
* インスタンスを構築します。
*/
protected DateConversionUtil() {
}
/**
* {@link Date}に変換します。
*
* @param o
* @return {@link Date}
*/
public static Date toDate(Object o) {
return toDate(o, null);
}
/**
* {@link Date}に変換します。
*
* @param o
* @param pattern
* @return {@link Date}
*/
public static Date toDate(Object o, String pattern) {
if (o == null) {
return null;
} else if (o instanceof String) {
return toDate((String) o, pattern);
} else if (o instanceof Date) {
return (Date) o;
} else if (o instanceof Calendar) {
return ((Calendar) o).getTime();
} else {
return toDate(o.toString(), pattern);
}
}
/**
* {@link Date}に変換します。
*
* @param s
* @param pattern
* @return {@link Date}
*/
public static Date toDate(String s, String pattern) {
return toDate(s, pattern, Locale.getDefault());
}
/**
* @param s
* @param pattern
* @param locale
* @return
*/
public static Date toDate(String s, String pattern, Locale locale) {
if (StringUtil.isEmpty(s)) {
return null;
}
SimpleDateFormat sdf = getDateFormat(s, pattern, locale);
try {
return sdf.parse(s);
} catch (ParseException ex) {
throw new ParseRuntimeException(ex);
}
}
/**
* {@link SimpleDateFormat}を返します。
*
* @param s
* @param pattern
* @param locale
* @return {@link SimpleDateFormat}
*/
public static SimpleDateFormat getDateFormat(String s, String pattern,
Locale locale) {
if (pattern != null) {
return new SimpleDateFormat(pattern);
}
return getDateFormat(s, locale);
}
/**
* {@link SimpleDateFormat}を返します。
*
* @param s
* @param locale
* @return {@link SimpleDateFormat}
*/
public static SimpleDateFormat getDateFormat(String s, Locale locale) {
String pattern = getPattern(locale);
String shortPattern = removeDelimiter(pattern);
String delimitor = findDelimiter(s);
if (delimitor == null) {
if (s.length() == shortPattern.length()) {
return new SimpleDateFormat(shortPattern);
}
if (s.length() == shortPattern.length() + 2) {
return new SimpleDateFormat(StringUtil.replace(shortPattern,
"yy", "yyyy"));
}
} else {
String[] array = StringUtil.split(s, delimitor);
for (int i = 0; i < array.length; ++i) {
if (array[i].length() == 4) {
pattern = StringUtil.replace(pattern, "yy", "yyyy");
break;
}
}
return new SimpleDateFormat(pattern);
}
return new SimpleDateFormat();
}
/**
* {@link SimpleDateFormat}を返します。
*
* @param locale
* @return {@link SimpleDateFormat}
*/
public static SimpleDateFormat getDateFormat(Locale locale) {
return new SimpleDateFormat(getPattern(locale));
}
/**
* 年4桁用の{@link SimpleDateFormat}を返します。
*
* @param locale
* @return 年4桁用の{@link SimpleDateFormat}
*/
public static SimpleDateFormat getY4DateFormat(Locale locale) {
return new SimpleDateFormat(getY4Pattern(locale));
}
/**
* 年4桁用の日付パターンを返します。
*
* @param locale
* @return 年4桁用の日付パターン
*/
public static String getY4Pattern(Locale locale) {
String pattern = getPattern(locale);
if (pattern.indexOf("yyyy") < 0) {
pattern = StringUtil.replace(pattern, "yy", "yyyy");
}
return pattern;
}
/**
* 日付パターンを返します。
*
* @param locale
* @return 日付パターン
*/
public static String getPattern(Locale locale) {
SimpleDateFormat df = (SimpleDateFormat) DateFormat.getDateInstance(
DateFormat.SHORT, locale);
String pattern = df.toPattern();
int index = pattern.indexOf(' ');
if (index > 0) {
pattern = pattern.substring(0, index);
}
if (pattern.indexOf("MM") < 0) {
pattern = StringUtil.replace(pattern, "M", "MM");
}
if (pattern.indexOf("dd") < 0) {
pattern = StringUtil.replace(pattern, "d", "dd");
}
return pattern;
}
/**
* 日付のデリミタを探します。
*
* @param value
* @return 日付のデリミタ
*/
public static String findDelimiter(String value) {
for (int i = 0; i < value.length(); ++i) {
char c = value.charAt(i);
if (Character.isDigit(c)) {
continue;
}
return Character.toString(c);
}
return null;
}
/**
* 日付パターンから日付のデリミタを探します。
*
* @param pattern
* @return 日付のデリミタ
*/
public static String findDelimiterFromPattern(String pattern) {
String ret = null;
for (int i = 0; i < pattern.length(); ++i) {
char c = pattern.charAt(i);
if (c != 'y' && c != 'M' && c != 'd') {
ret = String.valueOf(c);
break;
}
}
return ret;
}
/**
* 日付パターンから日付のデリミタを取り除きます。
*
* @param pattern
* パターン
* @return 日付のデリミタを取り除いた後のパターン
*/
public static String removeDelimiter(String pattern) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < pattern.length(); ++i) {
char c = pattern.charAt(i);
if (c == 'y' || c == 'M' || c == 'd') {
buf.append(c);
}
}
return buf.toString();
}
}
|
[
"koichik@319488c0-e101-0410-93bc-b5e51f62721a"
] |
koichik@319488c0-e101-0410-93bc-b5e51f62721a
|
9463d65fec335f8c182a8a18a6621b54b1aed7ae
|
e1d211fadfeead37dc7797f4651bc7a4dd9ced57
|
/schedule/spring/src/main/java/com/blazebit/job/schedule/spring/TriggerScheduleFactory.java
|
318d214662b41d599d5c3c6c3d6ef3d86e70205b
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Blazebit/blaze-job
|
e066e72089752c2dcd81a414d7f7391bc31a7def
|
94cf7e6f8c5ecfb22c070e3dd19f80bd3a9094bf
|
refs/heads/master
| 2023-07-11T06:06:13.846853
| 2023-02-27T12:52:05
| 2023-02-27T12:58:03
| 213,312,903
| 0
| 3
|
Apache-2.0
| 2023-02-27T12:58:05
| 2019-10-07T06:42:34
|
Java
|
UTF-8
|
Java
| false
| false
| 2,020
|
java
|
/*
* Copyright 2018 - 2023 Blazebit.
*
* 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.blazebit.job.schedule.spring;
import com.blazebit.apt.service.ServiceProvider;
import com.blazebit.job.Schedule;
import com.blazebit.job.spi.ScheduleFactory;
import org.springframework.scheduling.support.CronTrigger;
import java.time.Instant;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.temporal.ChronoField;
/**
* A factory for {@link TriggerSchedule}.
*
* @author Christian Beikov
* @since 1.0.0
*/
@ServiceProvider(ScheduleFactory.class)
public class TriggerScheduleFactory implements ScheduleFactory {
private static final DateTimeFormatter CRON_FORMATTER = new DateTimeFormatterBuilder()
.appendValue(ChronoField.SECOND_OF_MINUTE)
.appendLiteral(' ')
.appendValue(ChronoField.MINUTE_OF_HOUR)
.appendLiteral(' ')
.appendValue(ChronoField.HOUR_OF_DAY)
.appendLiteral(' ')
.appendValue(ChronoField.DAY_OF_MONTH)
.appendLiteral(' ')
.appendValue(ChronoField.MONTH_OF_YEAR)
.appendLiteral(" ? ")
.toFormatter();
@Override
public String asCronExpression(Instant instant) {
return CRON_FORMATTER.format(instant.atOffset(ZoneOffset.UTC));
}
@Override
public Schedule createSchedule(String cronExpression) {
return new TriggerSchedule(new CronTrigger(cronExpression));
}
}
|
[
"christian.beikov@gmail.com"
] |
christian.beikov@gmail.com
|
a57d7fe328c5c90129f6c5bf7a8bcb6ddbd5e1b2
|
c5f0b9a449b0e22ad87a05f2a4d7a010ed167cb3
|
/3_implementation/src/net/hudup/server/external/ui/SetupExternalServerWizardConsole.java
|
b93703518b622119e9a3b92e22ed65163b20df48
|
[
"MIT"
] |
permissive
|
sunflowersoft/hudup-ext
|
91bcd5b48d84ab33d6d8184e381d27d8f42315f7
|
cb62d5d492a82f1ecc7bc28955a52e767837afd3
|
refs/heads/master
| 2023-08-03T12:25:02.578863
| 2023-07-21T08:23:52
| 2023-07-21T08:23:52
| 131,940,602
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 806
|
java
|
/**
* HUDUP: A FRAMEWORK OF E-COMMERCIAL RECOMMENDATION ALGORITHMS
* (C) Copyright by Loc Nguyen's Academic Network
* Project homepage: hudup.locnguyen.net
* Email: ng_phloc@yahoo.com
* Phone: +84-975250362
*/
package net.hudup.server.external.ui;
import net.hudup.core.logistic.NextUpdate;
import net.hudup.server.PowerServerConfig;
import net.hudup.server.ui.SetupServerWizardConsole;
/**
* This class provides a console wizard to set up external server.
*
* @author Loc Nguyen
* @version 1.0
*
*/
@NextUpdate
public class SetupExternalServerWizardConsole extends SetupServerWizardConsole {
/**
* Constructor with configuration.
* @param srvConfig power server configuration.
*/
public SetupExternalServerWizardConsole(PowerServerConfig srvConfig) {
super(srvConfig);
}
}
|
[
"ngphloc@gmail.com"
] |
ngphloc@gmail.com
|
188fbac070ee9dd299a27f441744893799ff44b8
|
699dbc3791f5b034c303ba4aeef835e5e0b528a1
|
/app/src/main/java/com/polda/ari/palapps/SessionSharePreference.java
|
738d58d19f6f123c1574ec728a3922007cbb5d23
|
[] |
no_license
|
arikurniawans/palapp
|
e26e8ae96d8ae67615d3eb53be0d1566d56daf6c
|
f8a9943d49ba1fdbe1e3f5aff2373579d8c95907
|
refs/heads/master
| 2020-04-29T16:58:25.109136
| 2019-03-18T12:36:35
| 2019-03-18T12:36:35
| 176,281,360
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 737
|
java
|
package com.polda.ari.palapps;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by Ari on 3/5/2018.
*/
public class SessionSharePreference {
SharedPreferences pref;
SharedPreferences.Editor editor;
Context context;
int private_mode = 0;
private static final String PREF_NAME = "tutorial";
public SessionSharePreference(Context context){
this.context = context;
pref = context.getSharedPreferences(PREF_NAME, private_mode);
editor = pref.edit();
}
public void setNama(String nama){
editor.putString("nama",nama);
editor.commit();
}
public String getNama(){
return pref.getString("nama", null);
}
}
|
[
"ari.curnia.one@gmail.com"
] |
ari.curnia.one@gmail.com
|
a79ddb999b548735f07057f792248b037ab6a35f
|
00c33114a5d65d9f4b0b2552716e57b6bae5dab7
|
/ThinkCommunity2/src/main/java/com/myIsoland/enums/NoticeType.java
|
c81e0c472ef58c585adf3fd8d8fa128740df8a6f
|
[
"Apache-2.0"
] |
permissive
|
wehelloworld123/thinkBacken
|
74a24648c078bd9667f311620cd5da520e8aca7f
|
57d4a89140b65b49e0393883b630510e473b6dc4
|
refs/heads/master
| 2022-07-03T11:53:00.126577
| 2020-10-12T07:05:13
| 2020-10-12T07:05:13
| 245,771,114
| 0
| 0
| null | 2022-06-17T03:29:16
| 2020-03-08T07:30:12
|
Java
|
UTF-8
|
Java
| false
| false
| 618
|
java
|
package com.myIsoland.enums;
public enum NoticeType {
Sys(1),
CorpPri(2),
CorpPub(3),
Act(4);
private int value;
NoticeType(int value){this.value=value;}
public int getValue() {
return value;
}
public NoticeType valueOf(int value) {
switch (value) {
case 1:
return NoticeType.Sys;
case 2:
return NoticeType.CorpPri;
case 3:
return NoticeType.CorpPub;
case 4:
return NoticeType.Act;
default:
return null;
}
}
}
|
[
"1131095930@qq.com"
] |
1131095930@qq.com
|
3fae54822575643ecd02252b051ebbdda2e15436
|
3e87995150fbf7c681923b1128abf6e6c0c249d1
|
/app/src/main/java/com/longxiang/woniuke/myview/DateObject.java
|
9ba4efa1d154aa39300c357fe9d589fc0d54a76c
|
[] |
no_license
|
Finderchangchang/Yupaopao
|
eac4e130cbbdcda45b10544a35768ebafd1e07e5
|
6d48899090210a4d883f5a8ad6d2bd26d76f9445
|
refs/heads/master
| 2021-05-11T23:02:33.504238
| 2018-01-15T06:22:56
| 2018-01-15T06:22:56
| 117,505,480
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,036
|
java
|
package com.longxiang.woniuke.myview;
import java.util.Calendar;
public class DateObject extends Object{
private int year ;
private int month;
private int day;
private int week;
private int hour;
private int minute;
private String listItem;
/**
* 日期对象的4个参数构造器,用于设置日期
* @param year
* @param month
* @param day
* @author sxzhang
*/
public DateObject(int year2, int month2, int day2,int week2) {
super();
this.year = year2;
int maxDayOfMonth = Calendar.getInstance().getActualMaximum(Calendar.DAY_OF_MONTH);
if(day2 > maxDayOfMonth){
this.month = month2 + 1;
this.day = day2 % maxDayOfMonth;
}else{
this.month = month2;
this.day = day2;
}
this.week = week2 % 7 == 0 ? 7 : week2 % 7;
if(day == Calendar.getInstance().get(Calendar.DAY_OF_MONTH)){
this.listItem = String.format("%02d", this.month) +"月" + String.format("%02d", this.day) +
"日 "+ " 今天 ";
}else{
this.listItem = String.format("%02d", this.month) +"月" + String.format("%02d", this.day) +
"日 "+ getDayOfWeekCN(week);
}
}
/**
* 日期对象的2个参数构造器,用于设置时间
* @param hour2
* @param minute2
* @param isHourType true:传入的是hour; false: 传入的是minute
* @author sxzhang
*/
public DateObject(int hour2,int minute2,boolean isHourType) {
super();
if(isHourType == true && hour2 != -1){ //设置小时
if(hour2 >= 24){
this.hour = hour2 % 24;
}else
this.hour = hour2;
this.listItem = this.hour + "时";
}else if(isHourType == false && minute2 != -1){ //设置分钟
if(minute2 >= 60)
this.minute = minute2 % 60;
else
this.minute = minute2;
this.listItem = this.minute + "分";
}
}
public int getHour() {
return hour;
}
public void setHour(int hour) {
this.hour = hour;
}
public int getMinute() {
return minute;
}
public void setMinute(int minute) {
this.minute = minute;
}
public int getWeek() {
return week;
}
public void setWeek(int week) {
this.week = week;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public int getMonth() {
return month;
}
public void setMonth(int month) {
this.month = month;
}
public int getDay() {
return day;
}
public void setDay(int day) {
this.day = day;
}
public String getListItem() {
return listItem;
}
public void setListItem(String listItem) {
this.listItem = listItem;
}
/**
* 根据day_of_week得到汉字星期
* @return
*/
public static String getDayOfWeekCN(int day_of_week){
String result = null;
switch(day_of_week){
case 1:
result = "星期日";
break;
case 2:
result = "星期一";
break;
case 3:
result = "星期二";
break;
case 4:
result = "星期三";
break;
case 5:
result = "星期四";
break;
case 6:
result = "星期五";
break;
case 7:
result = "星期六";
break;
default:
break;
}
return result;
}
}
|
[
"chang19930228"
] |
chang19930228
|
bf9fe4d308661cd671f0cc607c16ce0830c61a73
|
92225460ebca1bb6a594d77b6559b3629b7a94fa
|
/src/com/kingdee/eas/fdc/invite/supplier/app/AbstractSupplierFileTypeListUIHandler.java
|
2607cf842a8ac601ec06bbd484ded92ce6e89b17
|
[] |
no_license
|
yangfan0725/sd
|
45182d34575381be3bbdd55f3f68854a6900a362
|
39ebad6e2eb76286d551a9e21967f3f5dc4880da
|
refs/heads/master
| 2023-04-29T01:56:43.770005
| 2023-04-24T05:41:13
| 2023-04-24T05:41:13
| 512,073,641
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 399
|
java
|
/**
* output package name
*/
package com.kingdee.eas.fdc.invite.supplier.app;
import com.kingdee.bos.Context;
import com.kingdee.eas.framework.batchHandler.RequestContext;
import com.kingdee.eas.framework.batchHandler.ResponseContext;
/**
* output class name
*/
public abstract class AbstractSupplierFileTypeListUIHandler extends com.kingdee.eas.fdc.basedata.app.FDCBaseDataListUIHandler
{
}
|
[
"yfsmile@qq.com"
] |
yfsmile@qq.com
|
e7b23f4b8f08e2f432ed69343946cdf40a1b2d5f
|
ca4f3625b4585e887372fbec7d4359af3ca3f144
|
/app/src/main/java/com/app/usertreatzasia/entities/PointHistoryEnt.java
|
41ff47c733ab6fa4dc44e9edc13e02055c762f8c
|
[] |
no_license
|
SaeedHyder/TreatsAsiaUser
|
c907470f0c2587d8b430ce475abbc558f154a07d
|
cef64755304eccc05c812a9ad352408163cd8251
|
refs/heads/master
| 2021-11-30T09:53:42.618262
| 2019-03-12T06:04:21
| 2019-03-12T06:04:21
| 176,736,046
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,144
|
java
|
package com.app.usertreatzasia.entities;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class PointHistoryEnt {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("user_id")
@Expose
private String userId;
@SerializedName("point")
@Expose
private String point;
@SerializedName("message")
@Expose
private String message;
@SerializedName("ma_message")
@Expose
private String maMessage;
@SerializedName("in_message")
@Expose
private String inMessage;
@SerializedName("status")
@Expose
private String status;
@SerializedName("created_at")
@Expose
private String createdAt;
@SerializedName("updated_at")
@Expose
private String updatedAt;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getPoint() {
return point;
}
public void setPoint(String point) {
this.point = point;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getMaMessage() {
return maMessage;
}
public void setMaMessage(String maMessage) {
this.maMessage = maMessage;
}
public String getInMessage() {
return inMessage;
}
public void setInMessage(String inMessage) {
this.inMessage = inMessage;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
}
|
[
"saeedhyder@axact.com"
] |
saeedhyder@axact.com
|
b4a6a1181b0176a2df41d37a21186764493657e4
|
a13ab684732add3bf5c8b1040b558d1340e065af
|
/java7-src/org/omg/CosNaming/BindingIterator.java
|
ecd5eac91e67928f5672b91acb98cf4543a49ec8
|
[] |
no_license
|
Alivop/java-source-code
|
554e199a79876343a9922e13ccccae234e9ac722
|
f91d660c0d1a1b486d003bb446dc7c792aafd830
|
refs/heads/master
| 2020-03-30T07:21:13.937364
| 2018-10-25T01:49:39
| 2018-10-25T01:51:38
| 150,934,150
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 716
|
java
|
package org.omg.CosNaming;
/**
* org/omg/CosNaming/BindingIterator.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
* Friday, July 25, 2014 8:50:01 AM PDT
*/
/**
* The BindingIterator interface allows a client to iterate through
* the bindings using the next_one or next_n operations.
*
* The bindings iterator is obtained by using the <tt>list</tt>
* method on the <tt>NamingContext</tt>.
* @see org.omg.CosNaming.NamingContext#list
*/
public interface BindingIterator extends BindingIteratorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} // interface BindingIterator
|
[
"liulp@zjhjb.com"
] |
liulp@zjhjb.com
|
f44e6879eafc821d3e0d034ac433a811876064cf
|
74f1d9c4cecd58262888ffed02101c1b6bedfe13
|
/src/main/java/com/chinaxiaopu/xiaopuMobi/vo/topic/MoreChildChannelVo.java
|
59d6c1d8b7255c0e7f84baf404dba411439802c4
|
[] |
no_license
|
wwm0104/xiaopu
|
341da3f711c0682d3bc650ac62179935330c27b2
|
ddb1b57c84cc6e6fdfdd82c2e998eea341749c87
|
refs/heads/master
| 2021-01-01T04:38:42.376033
| 2017-07-13T15:44:19
| 2017-07-13T15:44:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 369
|
java
|
package com.chinaxiaopu.xiaopuMobi.vo.topic;
import lombok.Data;
/**
* 更多 频道列表 子数据
* Created by 武宁 on 2016/12/1.
*/
@Data
public class MoreChildChannelVo {
private Integer PId;
private Integer channelId;
private String slogan;
private String posterImg;
private Integer sort;//越大越靠前
private Integer type;
}
|
[
"ellien"
] |
ellien
|
eb1a53a0430d0d5df7d3f09b1f2e53f178651937
|
f959f0ddea0579455fd63efd73f68796ca3c89a3
|
/thinkis-core/src/main/java/com/thinkis/common/web/JwtUtils.java
|
bdf33a3a08a3c29a0170296ebb882df268625588
|
[
"MIT"
] |
permissive
|
chocoai/firsthinkis
|
951e48acd86c4e8eb69d3a4b7bdcf2489828f813
|
63920660440c8b08ab6f81bccdd948f3464ac6f2
|
refs/heads/master
| 2022-04-06T12:37:57.431079
| 2019-12-22T03:37:52
| 2019-12-22T03:37:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,154
|
java
|
package com.thinkis.common.web;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.Date;
/**
* jwt工具类
* @author liuzhiping
* @date 2018-4-27 22:00:49
*/
@Component
public class JwtUtils {
private Logger logger = LoggerFactory.getLogger(getClass());
@Value("#{APP_PROP['jwt.secret']}")
private String secret;
@Value("#{APP_PROP['jwt.expire']}")
private long expire;
@Value("#{APP_PROP['jwt.header']}")
private String header;
/**
* 生成jwt token
*/
public String generateToken(String userId) {
Date nowDate = new Date();
//过期时间
Date expireDate = new Date(nowDate.getTime() + expire * 1000);
return Jwts.builder()
.setHeaderParam("typ", "JWT")
.setSubject(userId+"")
.setIssuedAt(nowDate)
.setExpiration(expireDate)
.signWith(SignatureAlgorithm.HS512, secret)
.compact();
}
public Claims getClaimByToken(String token) {
try {
return Jwts.parser()
.setSigningKey(secret)
.parseClaimsJws(token)
.getBody();
}catch (Exception e){
logger.debug("validate is token error ", e);
return null;
}
}
/**
* token是否过期
* @return true:过期
*/
public boolean isTokenExpired(Date expiration) {
return expiration.before(new Date());
}
public String getSecret() {
return secret;
}
public void setSecret(String secret) {
this.secret = secret;
}
public long getExpire() {
return expire;
}
public void setExpire(long expire) {
this.expire = expire;
}
public String getHeader() {
return header;
}
public void setHeader(String header) {
this.header = header;
}
}
|
[
"18229712137@189.cn"
] |
18229712137@189.cn
|
43e754a0437ebbcfabb1b90d39ed49d394af3908
|
84e064c973c0cc0d23ce7d491d5b047314fa53e5
|
/latest9.7/hej/net/sf/saxon/expr/flwor/LetClausePull.java
|
f2c224afea023f5d8d219c088e2c340bfe5c93f2
|
[] |
no_license
|
orbeon/saxon-he
|
83fedc08151405b5226839115df609375a183446
|
250c5839e31eec97c90c5c942ee2753117d5aa02
|
refs/heads/master
| 2022-12-30T03:30:31.383330
| 2020-10-16T15:21:05
| 2020-10-16T15:21:05
| 304,712,257
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,299
|
java
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2015 Saxonica Limited.
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
package net.sf.saxon.expr.flwor;
import net.sf.saxon.expr.XPathContext;
import net.sf.saxon.expr.parser.ExpressionTool;
import net.sf.saxon.om.Sequence;
import net.sf.saxon.trans.XPathException;
/**
* Implements the changes to a tuple stream effected by the Let clause in a FLWOR expression
*/
public class LetClausePull extends TuplePull {
TuplePull base;
LetClause letClause;
public LetClausePull(TuplePull base, LetClause letClause) {
this.base = base;
this.letClause = letClause;
}
/**
* Move on to the next tuple. Before returning, this method must set all the variables corresponding
* to the "returned" tuple in the local stack frame associated with the context object
*
* @param context the dynamic evaluation context
* @return true if another tuple has been generated; false if the tuple stream is exhausted. If the
* method returns false, the values of the local variables corresponding to this tuple stream
* are undefined.
*/
@Override
public boolean nextTuple(XPathContext context) throws XPathException {
if (!base.nextTuple(context)) {
return false;
}
Sequence val = ExpressionTool.lazyEvaluate(letClause.getSequence(), context, 100);
// TODO: be smarter, see LetExpression.eval()
context.setLocalVariable(letClause.getRangeVariable().getLocalSlotNumber(), val);
return true;
}
/**
* Close the tuple stream, indicating that although not all tuples have been read,
* no further tuples are required and resources can be released
*/
@Override
public void close() {
base.close();
}
}
|
[
"oneil@saxonica.com"
] |
oneil@saxonica.com
|
f9485b4ca9f1c15e12a58dcd2868c196102fa6ec
|
f909ec612f17254be491c3ef9cdc1f0b186e8daf
|
/java_plugin/jun_designpattern/src/main/test/designpatterns/行为型模式/通过中间类/访问者模式/Subject.java
|
4d35154a36d07055f0efda386bfd356d27b22661
|
[] |
no_license
|
kingking888/jun_java_plugin
|
8853f845f242ce51aaf01dc996ed88784395fd83
|
f57e31fa496d488fc96b7e9bab3c245f90db5f21
|
refs/heads/master
| 2023-06-04T19:30:29.554726
| 2021-06-24T17:19:55
| 2021-06-24T17:19:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 254
|
java
|
package designpatterns.行为型模式.通过中间类.访问者模式;
public interface Subject {
//接受将要访问它的对象
public void accept(Visitor visitor);
//获取将要被访问的属性
public String getSubject();
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
15bc1816335a838c0a5d05506905bd709d23bbda
|
c9cf73543d7c81f8e87a58e051380e98e92f978a
|
/baseline/happy_trader/platform/client/clientHT/clientUI/src/com/fin/httrader/hlpstruct/remotecall/Int_Proxy.java
|
0d8be40a6a0f4de66bbefef9d9218f6817c6651e
|
[] |
no_license
|
vit2000005/happy_trader
|
0802d38b49d5313c09f79ee88407806778cb4623
|
471e9ca4a89db1b094e477d383c12edfff91d9d8
|
refs/heads/master
| 2021-01-01T19:46:10.038753
| 2015-08-23T10:29:57
| 2015-08-23T10:29:57
| 41,203,190
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 706
|
java
|
/*
* Int_Proxy.java
*
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.fin.httrader.hlpstruct.remotecall;
import com.fin.httrader.utils.hlpstruct.XmlParameter;
/**
*
* @author Victor_Zoubok
*/
public class Int_Proxy extends ParamBase<Long> {
@Override
public void convertToXmlParameter(XmlParameter xmlparameter) throws Exception {
xmlparameter.clear();
xmlparameter.setString( "type", "Int_Proxy" );
xmlparameter.setInt("value", get() );
}
@Override
public void convertFromXmlparameter(XmlParameter xmlparameter) throws Exception {
set( Long.valueOf( xmlparameter.getInt("value" ) ) );
}
}
|
[
"victorofff@gmail.com"
] |
victorofff@gmail.com
|
5f9d4be7c6b739e6c727488b398f5e25ab94cf87
|
43334ae5400646e072ce2c217cb6b647d9c50734
|
/src/main/java/org/drip/dynamics/evolution/LSQMPointRecord.java
|
016163689c442ef49c2b74ba71c8bea93adf8baf
|
[
"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
| 5,916
|
java
|
package org.drip.dynamics.evolution;
/*
* -*- 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.
*/
/**
* LSQMPointRecord contains the Record of the Evolving Point Latent State Quantification Metrics.
*
* @author Lakshmi Krishnamurthy
*/
public class LSQMPointRecord {
private java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.Double>> _mmLSQMValue =
new java.util.HashMap<java.lang.String, java.util.Map<java.lang.String, java.lang.Double>>();
/**
* Empty LSQMPointRecord Constructor
*/
public LSQMPointRecord()
{
}
/**
* Retrieve the Latent State Labels
*
* @return The Latent State Labels
*/
public java.util.Set<java.lang.String> latentStateLabel()
{
return _mmLSQMValue.keySet();
}
/**
* Indicate if Quantification Metrics are available for the specified Latent State
*
* @param lsl The Latent State Label
*
* @return TRUE - Quantification Metrics are available for the specified Latent State
*/
public boolean containsLatentState (
final org.drip.state.identifier.LatentStateLabel lsl)
{
return null == lsl ? false : _mmLSQMValue.containsKey (lsl.fullyQualifiedName());
}
/**
* Set the LSQM Value
*
* @param lsl The Latent State Label
* @param strQM The Quantification Metric
* @param dblValue The QM's Value
*
* @return TRUE - The QM successfully set
*/
public boolean setQM (
final org.drip.state.identifier.LatentStateLabel lsl,
final java.lang.String strQM,
final double dblValue)
{
if (null == lsl || null == strQM || strQM.isEmpty() || !org.drip.quant.common.NumberUtil.IsValid
(dblValue))
return false;
java.lang.String strLatentStateLabel = lsl.fullyQualifiedName();
java.util.Map<java.lang.String, java.lang.Double> mapLSQM = _mmLSQMValue.containsKey
(strLatentStateLabel) ? _mmLSQMValue.get (strLatentStateLabel) : new
java.util.HashMap<java.lang.String, java.lang.Double>();
mapLSQM.put (strQM, dblValue);
_mmLSQMValue.put (lsl.fullyQualifiedName(), mapLSQM);
return true;
}
/**
* Indicate if the Value for the specified Quantification Metric is available
*
* @param lsl The Latent State Label
* @param strQM The Quantification Metric
*
* @return TRUE - The Requested Value is available
*/
public boolean containsQM (
final org.drip.state.identifier.LatentStateLabel lsl,
final java.lang.String strQM)
{
if (null == lsl || null == strQM || strQM.isEmpty()) return false;
java.lang.String strLatentStateLabel = lsl.fullyQualifiedName();
return _mmLSQMValue.containsKey (strLatentStateLabel) && _mmLSQMValue.get
(strLatentStateLabel).containsKey (strQM);
}
/**
* Retrieve the specified Quantification Metric Value
*
* @param lsl The Latent State Label
* @param strQM The Quantification Metric
*
* @return The Quantification Metric Value
*
* @throws java.lang.Exception Thrown if the Quantification Metric is not available
*/
public double qm (
final org.drip.state.identifier.LatentStateLabel lsl,
final java.lang.String strQM)
throws java.lang.Exception
{
if (null == lsl || null == strQM || strQM.isEmpty())
throw new java.lang.Exception ("LSQMPointRecord::qm => Invalid Inputs");
java.lang.String strLatentStateLabel = lsl.fullyQualifiedName();
if (!_mmLSQMValue.containsKey (strLatentStateLabel))
throw new java.lang.Exception ("LSQMPointRecord::qm => Invalid Inputs");
java.util.Map<java.lang.String, java.lang.Double> mapLSQM = _mmLSQMValue.get (strLatentStateLabel);
if (!mapLSQM.containsKey (strQM))
throw new java.lang.Exception ("LSQMPointRecord::qm => No LSQM Entry");
return mapLSQM.get (strQM);
}
}
|
[
"lakshmi7977@gmail.com"
] |
lakshmi7977@gmail.com
|
6bd309115aafcfbdc3b27f61b2394f979fc7a660
|
3180c5a659d5bfdbf42ab07dfcc64667f738f9b3
|
/src/unk/com/zing/zalo/ui/amp.java
|
088162df10a6d998809275f28a0b07c400adffc1
|
[] |
no_license
|
tinyx3k/ZaloRE
|
4b4118c789310baebaa060fc8aa68131e4786ffb
|
fc8d2f7117a95aea98a68ad8d5009d74e977d107
|
refs/heads/master
| 2023-05-03T16:21:53.296959
| 2013-05-18T14:08:34
| 2013-05-18T14:08:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 634
|
java
|
package unk.com.zing.zalo.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class amp
implements DialogInterface.OnClickListener
{
amp(UserDetailsActivity paramUserDetailsActivity)
{
}
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
paramDialogInterface.dismiss();
if (UserDetailsActivity.l(this.asK) != null)
UserDetailsActivity.c(this.asK, UserDetailsActivity.l(this.asK));
}
}
/* Location: /home/danghvu/0day/Zalo/Zalo_1.0.8_dex2jar.jar
* Qualified Name: com.zing.zalo.ui.amp
* JD-Core Version: 0.6.2
*/
|
[
"danghvu@gmail.com"
] |
danghvu@gmail.com
|
6056cb9b3ed3ce73a9823aabe31af3b33833005d
|
9773d111843e96b4b21baef2b9f2f9dd5f1d172b
|
/lectures/c09/src/eu/ase/threads/ProgMainExecutors2.java
|
b7202827615c09d1eff43034a99bbf57883ec987
|
[
"MIT"
] |
permissive
|
critoma/javase
|
ab39da07b22e1a53b5083239211e73d9273e90a4
|
65655298d993a6344e4477d28bc3038e85605884
|
refs/heads/master
| 2023-06-07T16:33:42.196338
| 2023-05-30T09:29:45
| 2023-05-30T09:29:45
| 94,933,916
| 37
| 34
|
MIT
| 2020-10-13T04:34:31
| 2017-06-20T20:50:25
|
Java
|
UTF-8
|
Java
| false
| false
| 1,075
|
java
|
package eu.ase.threads;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class ProgMainExecutors2 {
private static final int NTHREDS = 10;
public static void main(String[] args) {
ExecutorService executor1 = Executors.newFixedThreadPool(NTHREDS/2);
ExecutorService executor2 = Executors.newFixedThreadPool(NTHREDS/2);
for (int i = 0; i < 500; i++) {
Runnable worker = new MyRunnable(10000000L + i);
if(i % 2 == 0)
executor1.execute(worker);
else
executor2.execute(worker);
}
// This will make the executor accept no new threads
// and finish all existing threads in the queue
executor1.shutdown();
executor2.shutdown();
try {
// Wait until all threads are finish
executor1.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
executor2.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Finished all threads");
}
}
|
[
"cristian.toma@ie.ase.ro"
] |
cristian.toma@ie.ase.ro
|
cc42c9a7f2912034598abce824ed5d00c97f2f1d
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/finder/live/component/ag$$ExternalSyntheticLambda1.java
|
b381c58119b658998f25483d1ec3286833dc3963
|
[] |
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
| 386
|
java
|
package com.tencent.mm.plugin.finder.live.component;
public final class ag$$ExternalSyntheticLambda1
implements Runnable
{
public final void run() {}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes3.jar
* Qualified Name: com.tencent.mm.plugin.finder.live.component.ag..ExternalSyntheticLambda1
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
6454b82f0da145da0558a8b86f7e36c87ecbbead
|
1465bbefeaf484c893d72b95b2996a504ce30577
|
/zk/src/org/zkoss/zk/ui/ext/Includer.java
|
3836b6275620e2a37cf7095194381a872b7b1eae
|
[] |
no_license
|
dije/zk
|
a2c74889d051f988e23cb056096d07f8b41133e9
|
17b8d24a970d63f65f1f3a9ffe4be999b5000304
|
refs/heads/master
| 2021-01-15T19:40:42.842829
| 2011-10-21T03:23:53
| 2011-10-21T03:23:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,677
|
java
|
/* Includer.java
Purpose:
Description:
History:
Mon Oct 20 14:02:51 2008, Created by tomyeh
Copyright (C) 2008 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 3.0 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.zk.ui.ext;
import org.zkoss.zk.ui.Page;
/**
* Implemented by a component to indicate that
* it might include another ZUML page.
*
* <p>The owner of the included page is this page
* (see {@link org.zkoss.zk.ui.sys.PageCtrl#getOwner}).
*
* @author tomyeh
* @since 5.0.0
* @see org.zkoss.zk.ui.sys.PageCtrl#getOwner
*/
public interface Includer {
/** Returns the child page.
*/
public Page getChildPage();
/** Sets the child page.
* <p>Used only for implementing an includer component (such as
* {@link org.zkoss.zul.Include}).
* <P>Note: the child page is actually maintained by
* the included page, so the implementation of this method
* needs only to store the page in a transient member.
* <p>Notice that, like {@link #setRenderingResult}, it is called only if
* the included page is a ZUML document.
*/
public void setChildPage(Page page);
/** Sets the rendering result
* It is called when the child page ({@link #getChildPage}) has
* been rendered. The includer can then generate it to the output
* in the way it'd like.
* <p>Used only for implementing an includer component (such as
* {@link org.zkoss.zul.Include}).
* <p>Notice that, like {@link #setChildPage}, it is called only if
* the included page is a ZUML document.
* @since 5.0.6
*/
public void setRenderingResult(String result);
}
|
[
"tomyeh@zkoss.org"
] |
tomyeh@zkoss.org
|
429b7d9f0e90fcd6cba174c4300393d23d63ffcd
|
7b1c8f10e7d83a72f6f6a34637d33c0977d72dbd
|
/handler/richtext/src/test/java/io/wcm/handler/richtext/testcontext/DummyLinkHandlerConfig.java
|
b1ad38043dee94af49b124cc3d679b9765d44d12
|
[
"Apache-2.0"
] |
permissive
|
npeltier/wcm-io
|
12cb28118350286aa8965fb954903f707cebbbd8
|
656ef0968fa7ec16ce00fb933360eb0442183042
|
refs/heads/master
| 2021-01-15T16:14:36.562151
| 2014-10-06T13:29:50
| 2014-10-06T13:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,276
|
java
|
/*
* #%L
* wcm.io
* %%
* Copyright (C) 2014 wcm.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package io.wcm.handler.richtext.testcontext;
import io.wcm.config.spi.annotations.Application;
import io.wcm.handler.link.AbstractLinkHandlerConfig;
import io.wcm.handler.link.LinkHandlerConfig;
import io.wcm.handler.link.LinkMarkupBuilder;
import io.wcm.handler.link.LinkType;
import io.wcm.handler.link.markup.SimpleLinkMarkupBuilder;
import io.wcm.handler.link.type.ExternalLinkType;
import io.wcm.handler.link.type.InternalLinkType;
import io.wcm.handler.link.type.MediaLinkType;
import java.util.List;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.Model;
import com.google.common.collect.ImmutableList;
/**
* Dummy link configuration
*/
@Model(adaptables = {
SlingHttpServletRequest.class, Resource.class
}, adapters = LinkHandlerConfig.class)
@Application(AppAemContext.APPLICATION_ID)
public class DummyLinkHandlerConfig extends AbstractLinkHandlerConfig {
private static final List<Class<? extends LinkType>> LINK_TYPES = ImmutableList.<Class<? extends LinkType>>of(
InternalLinkType.class,
ExternalLinkType.class,
MediaLinkType.class
);
private static final List<Class<? extends LinkMarkupBuilder>> LINK_MARKUP_BUILDERS = ImmutableList.<Class<? extends LinkMarkupBuilder>>of(
SimpleLinkMarkupBuilder.class
);
@Override
public List<Class<? extends LinkType>> getLinkTypes() {
return LINK_TYPES;
}
@Override
public List<Class<? extends LinkMarkupBuilder>> getLinkMarkupBuilders() {
return LINK_MARKUP_BUILDERS;
}
}
|
[
"sseifert@pro-vision.de"
] |
sseifert@pro-vision.de
|
9c4c7b1f3249c85e2f4a839e91ce9ffd9efde55b
|
732e141ce268d8988a8535aaa767f93db9b2dbe5
|
/src/test/java/dog_shoppingmall_proj/dao/impl/DogDaoImplTest.java
|
c362be4ac15fb912307807739b5c84b6a34cd93e
|
[] |
no_license
|
mywns123/dog_shoppingmall_proj
|
3d7d74e41949107bc4c8299441a2f6540dabc37a
|
93d99409dc40bdeaefc09816faf2ee5b515ad88f
|
refs/heads/master
| 2023-05-08T17:24:49.653520
| 2021-06-02T06:54:52
| 2021-06-02T06:54:52
| 361,590,540
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,692
|
java
|
package dog_shoppingmall_proj.dao.impl;
import java.sql.Connection;
import java.util.List;
import org.junit.After;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import dog_shoppingmall_proj.JdbcUtil;
import dog_shoppingmall_proj.dto.Dog;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class DogDaoImplTest {
private static Connection con = JdbcUtil.getConnection();
private static DogDaoImpl dao = DogDaoImpl.getInstance();
@BeforeClass
public static void setUpBeforeClass() throws Exception {
dao.setCon(con);
}
@After
public void tearDown() throws Exception {
System.out.println();
}
@Test
public void test04SelectDogList() {
System.out.printf("%s()%n", "test04SelectDogList()");
List<Dog> list = dao.selectDogList();
Assert.assertNotNull(list);
list.stream().forEach(System.out::println);
}
@Test
public void test02SelectDog() {
System.out.printf("%s()%n", "test02SelectDog()");
int id = 1;
Dog res = dao.selectDog(id);
Assert.assertNotNull(res);
System.out.println("SelectDog >> " + res);
}
@Test
public void test01InsertDog() {
System.out.println("test01InsertDog()");
Dog dog = new Dog(
"푸들4",1000,"pu.jpg","프랑스",1,20,"털 많다");
int res = dao.insertDog(dog);
Assert.assertEquals(1, res);
}
@Test
public void test03UpdateReadCount() {
System.out.println("test03UpdateReadCount()");
int id = 1;
int res = dao.updateReadCount(id);
Assert.assertNotEquals(-1, res);
System.out.println("UpdateReadCount >> " + res);
}
}
|
[
"wnsduq2000@naver.com"
] |
wnsduq2000@naver.com
|
60b9e09f424b257e96c79fb25bb4bc643db17d9e
|
5f88783e5bc891e869ea021723a30ea9ca0762db
|
/dbflute-ymir-example/src/main/java/com/example/dbflute/ymir/dbflute/bsbhv/loader/LoaderOfProduct.java
|
59e961d635eb4557ca15516d27710630c9a9b102
|
[
"Apache-2.0"
] |
permissive
|
seasarorg/dbflute-example-friends-frank
|
7c338728a6a8e07dad6a2bec922a8de234c3ac91
|
243a714bf4124eef46123e0fa73a33a851f80838
|
refs/heads/master
| 2016-09-06T07:58:47.800053
| 2014-11-29T13:38:08
| 2014-11-29T13:38:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,532
|
java
|
package com.example.dbflute.ymir.dbflute.bsbhv.loader;
import java.util.List;
import org.seasar.dbflute.*;
import org.seasar.dbflute.bhv.*;
import com.example.dbflute.ymir.dbflute.exbhv.*;
import com.example.dbflute.ymir.dbflute.exentity.*;
import com.example.dbflute.ymir.dbflute.cbean.*;
/**
* The referrer loader of PRODUCT as TABLE. <br />
* <pre>
* [primary key]
* PRODUCT_ID
*
* [column]
* PRODUCT_ID, PRODUCT_NAME, PRODUCT_HANDLE_CODE, PRODUCT_CATEGORY_CODE, PRODUCT_STATUS_CODE, REGULAR_PRICE, REGISTER_DATETIME, REGISTER_USER, UPDATE_DATETIME, UPDATE_USER, VERSION_NO
*
* [sequence]
*
*
* [identity]
* PRODUCT_ID
*
* [version-no]
* VERSION_NO
*
* [foreign table]
* PRODUCT_CATEGORY, PRODUCT_STATUS
*
* [referrer table]
* PURCHASE
*
* [foreign property]
* productCategory, productStatus
*
* [referrer property]
* purchaseList
* </pre>
* @author DBFlute(AutoGenerator)
*/
public class LoaderOfProduct {
// ===================================================================================
// Attribute
// =========
protected List<Product> _selectedList;
protected BehaviorSelector _selector;
protected ProductBhv _myBhv; // lazy-loaded
// ===================================================================================
// Ready for Loading
// =================
public LoaderOfProduct ready(List<Product> selectedList, BehaviorSelector selector)
{ _selectedList = selectedList; _selector = selector; return this; }
protected ProductBhv myBhv()
{ if (_myBhv != null) { return _myBhv; } else { _myBhv = _selector.select(ProductBhv.class); return _myBhv; } }
// ===================================================================================
// Load Referrer
// =============
protected List<Purchase> _referrerPurchaseList;
public NestedReferrerLoaderGateway<LoaderOfPurchase> loadPurchaseList(ConditionBeanSetupper<PurchaseCB> setupper) {
myBhv().loadPurchaseList(_selectedList, setupper).withNestedReferrer(new ReferrerListHandler<Purchase>() {
public void handle(List<Purchase> referrerList) { _referrerPurchaseList = referrerList; }
});
return new NestedReferrerLoaderGateway<LoaderOfPurchase>() {
public void withNestedReferrer(ReferrerLoaderHandler<LoaderOfPurchase> handler) {
handler.handle(new LoaderOfPurchase().ready(_referrerPurchaseList, _selector));
}
};
}
// ===================================================================================
// Pull out Foreign
// ================
protected LoaderOfProductCategory _foreignProductCategoryLoader;
public LoaderOfProductCategory pulloutProductCategory() {
if (_foreignProductCategoryLoader != null) { return _foreignProductCategoryLoader; }
List<ProductCategory> pulledList = myBhv().pulloutProductCategory(_selectedList);
_foreignProductCategoryLoader = new LoaderOfProductCategory().ready(pulledList, _selector);
return _foreignProductCategoryLoader;
}
protected LoaderOfProductStatus _foreignProductStatusLoader;
public LoaderOfProductStatus pulloutProductStatus() {
if (_foreignProductStatusLoader != null) { return _foreignProductStatusLoader; }
List<ProductStatus> pulledList = myBhv().pulloutProductStatus(_selectedList);
_foreignProductStatusLoader = new LoaderOfProductStatus().ready(pulledList, _selector);
return _foreignProductStatusLoader;
}
// ===================================================================================
// Accessor
// ========
public List<Product> getSelectedList() { return _selectedList; }
public BehaviorSelector getSelector() { return _selector; }
}
|
[
"dbflute@gmail.com"
] |
dbflute@gmail.com
|
585c1c460240ef015afbc8239f8e9510c5b25fe4
|
6e7a516aee7328b10eb64a2ade1688985fa1a0b6
|
/com.io7m.jtensors.documentation/src/main/java/com/io7m/jtensors/documentation/Documentation.java
|
d8bad810506cfdc8bb37aa975ca62516776ffd09
|
[
"ISC"
] |
permissive
|
herike/jtensors
|
aebd3f1ff9bacd70e8b70018aed24082f6fd2a9c
|
c8d8fd96a287f1323178e59ca1a6c6772de8fd01
|
refs/heads/master
| 2021-06-19T07:55:13.102564
| 2017-06-27T21:22:15
| 2017-06-27T21:22:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,016
|
java
|
/*
* Copyright © 2017 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, 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 USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package com.io7m.jtensors.documentation;
/**
* Marker class for looking up files by resource.
*/
public final class Documentation
{
private Documentation()
{
throw new AssertionError("Unreachable code");
}
}
|
[
"code@io7m.com"
] |
code@io7m.com
|
c599b34c1634381973adf31c41dfd7888ce9f16f
|
716b231c89805b3e1217c6fc0a4ff9fbcdcdb688
|
/train19eManagerCheckCode/src/com/l9e/transaction/dao/DepartDao.java
|
bcb5ebbe073d2f8dcfc5c2060582a0309aa74d80
|
[] |
no_license
|
d0l1u/train_ticket
|
32b831e441e3df73d55559bc416446276d7580be
|
c385cb36908f0a6e9e4a6ebb9b3ad737edb664d7
|
refs/heads/master
| 2020-06-14T09:00:34.760326
| 2019-07-03T00:30:46
| 2019-07-03T00:30:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,610
|
java
|
package com.l9e.transaction.dao;
import java.util.List;
import java.util.Map;
public interface DepartDao {
Map<String, Object> queryDepartCodeCount(String department);
Map<String, Object> queryDepartCodeCountMonth(String department);
int queryDepartCodeCountToday(String department);
Map<String, Object> queryDepartCodeCountWeek(String department);
Map<String, Object> queryDepartCodeCountYesterday(String department);
int queryDepartCodeFailToday(String department);
int queryDepartCodeOvertimeToday(String department);
int queryDepartCodeToday(String department);
int queryDepartCurrentNameCount(Map<String, Object> paramMap);
int queryAdminCodeTodayCount(String optRen);
int queryAdminCodeTodayFail(String optRen);
int queryAdminCodeTodayOvertime(String optRen);
int queryAdminCodeTodaySuccess(String optRen);
List<Map<String, Object>> queryAdminCurrentName(Map<String, Object> paramMap);
int queryPictureCount(Map<String, Object> paramMap);
List<Map<String, String>> queryPictureList(Map<String, Object> paramMap);
int queryDayPageCount(Map<String, Object> paramMap);
List<Map<String, String>> queryDayPageList(Map<String, Object> paramMap);
List<Map<String, String>> queryAdminCodeList(Map<String, Object> paramMap);
int queryByAdminPageCount(Map<String, Object> paramMap);
void addAdmin(Map<String, String> addMap);
List<Map<String, Object>> queryDepartAdminUserList(
Map<String, Object> paramMap);
int queryDepartAdminUserListPageCount(Map<String, Object> paramMap);
void deleteDepartAdmin(String optRen);
String queryDepartment(String optRen);
}
|
[
"meizs"
] |
meizs
|
5c366c4599a2a076acd84f96e6c15a818d308624
|
534a5dbfe61c92ed7e8f8f56a14ccb15d479a73d
|
/app/src/main/java/com/android/systemui/statusbar/phone/ButtonDispatcher.java
|
ead10715749fd01af7de54c925646cf35ff6088f
|
[] |
no_license
|
binglancangyue/SystemUI8.1
|
3c1a6d3c924b781bd27db5da4e413cd476a1fb0d
|
d9a1c3dbc268897c211a9ea1bc30fc5a96b98ba7
|
refs/heads/master
| 2023-04-08T20:28:05.200722
| 2021-04-19T05:51:24
| 2021-04-19T05:51:24
| 310,743,886
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,923
|
java
|
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.android.systemui.statusbar.phone;
import android.graphics.drawable.Drawable;
import android.view.View;
import com.android.systemui.plugins.statusbar.phone.NavBarButtonProvider.ButtonInterface;
import com.android.systemui.statusbar.policy.KeyButtonDrawable;
import java.util.ArrayList;
/**
* Dispatches common view calls to multiple views. This is used to handle
* multiples of the same nav bar icon appearing.
*/
public class ButtonDispatcher {
private final ArrayList<View> mViews = new ArrayList<>();
private final int mId;
private View.OnClickListener mClickListener;
private View.OnTouchListener mTouchListener;
private View.OnLongClickListener mLongClickListener;
private Boolean mLongClickable;
private Integer mAlpha;
private Float mDarkIntensity;
private Integer mVisibility = -1;
private KeyButtonDrawable mImageDrawable;
private View mCurrentView;
private boolean mVertical;
public ButtonDispatcher(int id) {
mId = id;
}
void clear() {
mViews.clear();
}
void addView(View view) {
mViews.add(view);
view.setOnClickListener(mClickListener);
view.setOnTouchListener(mTouchListener);
view.setOnLongClickListener(mLongClickListener);
if (mLongClickable != null) {
view.setLongClickable(mLongClickable);
}
if (mAlpha != null) {
view.setAlpha(mAlpha);
}
if (mDarkIntensity != null) {
((ButtonInterface) view).setDarkIntensity(mDarkIntensity);
}
if (mVisibility != null) {
view.setVisibility(mVisibility);
}
if (mImageDrawable != null) {
((ButtonInterface) view).setImageDrawable(mImageDrawable);
}
if (view instanceof ButtonInterface) {
((ButtonInterface) view).setVertical(mVertical);
}
}
public int getId() {
return mId;
}
public int getVisibility() {
return mVisibility != null ? mVisibility : View.VISIBLE;
}
public float getAlpha() {
return mAlpha != null ? mAlpha : 1;
}
public void setImageDrawable(KeyButtonDrawable drawable) {
mImageDrawable = drawable;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
((ButtonInterface) mViews.get(i)).setImageDrawable(mImageDrawable);
}
}
public void setVisibility(int visibility) {
if (mVisibility == visibility) return;
mVisibility = visibility;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setVisibility(mVisibility);
}
}
public void setSelected(boolean selected) {
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setSelected(selected);
}
}
public void abortCurrentGesture() {
// This seems to be an instantaneous thing, so not going to persist it.
final int N = mViews.size();
for (int i = 0; i < N; i++) {
((ButtonInterface) mViews.get(i)).abortCurrentGesture();
}
}
public void setAlpha(int alpha) {
mAlpha = alpha;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setAlpha(alpha);
}
}
public void setDarkIntensity(float darkIntensity) {
mDarkIntensity = darkIntensity;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
((ButtonInterface) mViews.get(i)).setDarkIntensity(darkIntensity);
}
}
public void setOnClickListener(View.OnClickListener clickListener) {
mClickListener = clickListener;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setOnClickListener(mClickListener);
}
}
public void setOnTouchListener(View.OnTouchListener touchListener) {
mTouchListener = touchListener;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setOnTouchListener(mTouchListener);
}
}
public void setLongClickable(boolean isLongClickable) {
mLongClickable = isLongClickable;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setLongClickable(mLongClickable);
}
}
public void setOnLongClickListener(View.OnLongClickListener longClickListener) {
mLongClickListener = longClickListener;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
mViews.get(i).setOnLongClickListener(mLongClickListener);
}
}
public ArrayList<View> getViews() {
return mViews;
}
public View getCurrentView() {
return mCurrentView;
}
public void setCurrentView(View currentView) {
mCurrentView = currentView.findViewById(mId);
}
public void setVertical(boolean vertical) {
mVertical = vertical;
final int N = mViews.size();
for (int i = 0; i < N; i++) {
final View view = mViews.get(i);
if (view instanceof ButtonInterface) {
((ButtonInterface) view).setVertical(vertical);
}
}
}
}
|
[
"binglancangyue@163.com"
] |
binglancangyue@163.com
|
9e7c12d07701c72e70341827483255e90965a23e
|
d5ff41b041e5769082045e8f2b9ff221da1a6e73
|
/test/com/atguigu/surveypark/test/TestDataSource.java
|
1d1fecd8439b22299312f54a9c14824fa7eaf670
|
[] |
no_license
|
Tralo/lsn_surveypark
|
e0fdc8601471e401f48639b23c82bfa6a2009f9f
|
01d961cf3b1dbe5200ce9f98d95800b3bf4849df
|
refs/heads/master
| 2021-01-12T13:08:36.189897
| 2016-11-06T14:27:42
| 2016-11-06T14:27:42
| 72,123,311
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 546
|
java
|
package com.atguigu.surveypark.test;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 时数据源
*/
public class TestDataSource {
@Test
public void getConnection() throws SQLException{
ApplicationContext ac = new ClassPathXmlApplicationContext("beans.xml");
DataSource ds = (DataSource) ac.getBean("dataSource");
System.out.println(ds.getConnection());
}
}
|
[
"13580548169@163.com"
] |
13580548169@163.com
|
b877a930cf71c15e49f2c4eee7617e7105a90daf
|
4d6f449339b36b8d4c25d8772212bf6cd339f087
|
/netreflected/src/Core/System.Windows.Forms,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089/system/windows/forms/DataGridViewDataErrorEventArgs.java
|
fa7001f51cb8deab1684b5c738a4e5667621b3c1
|
[
"MIT"
] |
permissive
|
lvyitian/JCOReflector
|
299a64550394db3e663567efc6e1996754f6946e
|
7e420dca504090b817c2fe208e4649804df1c3e1
|
refs/heads/master
| 2022-12-07T21:13:06.208025
| 2020-08-28T09:49:29
| 2020-08-28T09:49:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,012
|
java
|
/*
* MIT License
*
* Copyright (c) 2020 MASES s.r.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.
*/
/**************************************************************************************
* <auto-generated>
* This code was generated from a template using JCOReflector
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
* </auto-generated>
*************************************************************************************/
package system.windows.forms;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.windows.forms.DataGridViewCellCancelEventArgs;
import system.windows.forms.DataGridViewDataErrorContexts;
/**
* The base .NET class managing System.Windows.Forms.DataGridViewDataErrorEventArgs, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Extends {@link NetObject}.
* <p>
*
* See: <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.DataGridViewDataErrorEventArgs" target="_top">https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.DataGridViewDataErrorEventArgs</a>
*/
public class DataGridViewDataErrorEventArgs extends DataGridViewCellCancelEventArgs {
/**
* Fully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
*/
public static final String assemblyFullName = "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
/**
* Assembly name: System.Windows.Forms
*/
public static final String assemblyShortName = "System.Windows.Forms";
/**
* Qualified class name: System.Windows.Forms.DataGridViewDataErrorEventArgs
*/
public static final String className = "System.Windows.Forms.DataGridViewDataErrorEventArgs";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
return bridge.GetType(className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName));
} catch (JCException e) {
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DataGridViewDataErrorEventArgs(Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public Object getJCOInstance() {
return classInstance;
}
public void setJCOInstance(JCObject instance) {
classInstance = instance;
super.setJCOInstance(classInstance);
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link DataGridViewDataErrorEventArgs}, a cast assert is made to check if types are compatible.
*/
public static DataGridViewDataErrorEventArgs cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new DataGridViewDataErrorEventArgs(from.getJCOInstance());
}
// Constructors section
public DataGridViewDataErrorEventArgs() throws Throwable {
}
public DataGridViewDataErrorEventArgs(NetException exception, int columnIndex, int rowIndex, DataGridViewDataErrorContexts context) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.NotSupportedException, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException {
try {
// add reference to assemblyName.dll file
addReference(JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(exception == null ? null : exception.getJCOInstance(), columnIndex, rowIndex, context == null ? null : context.getJCOInstance()));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Methods section
// Properties section
public boolean getThrowException() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("ThrowException");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setThrowException(boolean ThrowException) throws Throwable, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("ThrowException", ThrowException);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetException getException() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Exception");
return new NetException(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DataGridViewDataErrorContexts getContext() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Context");
return new DataGridViewDataErrorContexts(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
}
|
[
"mario.mastrodicasa@masesgroup.com"
] |
mario.mastrodicasa@masesgroup.com
|
a4a31303cc7f1b15561e0aec62b1c3aa44c2eb7a
|
dc945e62937adfecd9faad1ce434d5856316369e
|
/src/gui/reports/ReportType.java
|
ace9365c37187f4ff249315dd4c796e07734f202
|
[] |
no_license
|
SCRAPPYDOO/ScrappyAirsoftShop
|
bbdc7a7da4f1ab0b47ffb08905d6cf3ee031bd35
|
977a7030b3643ce7796cf8e4d0005eb55aafd5bc
|
refs/heads/master
| 2021-03-12T21:45:57.101351
| 2015-09-16T10:49:45
| 2015-09-16T10:49:45
| 41,765,695
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 250
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gui.reports;
/**
*
* @author User
*/
public enum ReportType {
SUMA_SPRZEDAZY,
SUMA_SPRZEDAZY_TEMP,
MONTH_SALE_SUMMARY
;
}
|
[
"scrapek69@gmail.com"
] |
scrapek69@gmail.com
|
fc1649bcbf1a05e732b6b1620835978124cc00d3
|
883abff6b6560e3e64f4d695b0ee4cf3b4b9c5dd
|
/src/main/java/com/cxrus/microservices/netflixzuulapigatewayserver/SecurityTokenConfig.java
|
a98ab8a1b6618129cb66d664e4dedd018ded091f
|
[] |
no_license
|
andizunzun/netflix-zuul-api-gateway-server
|
4e669e518bb8416e278c02811af77d1bcd996374
|
0dc7e414422c609b934046d3533db6d5896c797b
|
refs/heads/master
| 2021-03-15T00:24:44.628563
| 2019-06-21T09:27:19
| 2019-06-21T09:27:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,880
|
java
|
package com.cxrus.microservices.netflixzuulapigatewayserver;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
public class SecurityTokenConfig extends WebSecurityConfigurerAdapter {
@Autowired
private JwtConfig jwtConfig;
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.csrf().disable()
// make sure we use stateless session; session won't be used to store user's state.
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
// handle an authorized attempts
.exceptionHandling().authenticationEntryPoint((req, rsp, e) -> rsp.sendError(HttpServletResponse.SC_UNAUTHORIZED))
.and()
// Add a filter to validate the tokens with every request
.addFilterAfter(new JwtTokenAuthenticationFilter(jwtConfig), UsernamePasswordAuthenticationFilter.class)
// authorization requests config
.authorizeRequests()
// allow all who are accessing "auth" service
.antMatchers(HttpMethod.POST, jwtConfig.getUri()).permitAll()
// must be an admin if trying to access admin area (authentication is also required here)
// .antMatchers("/gallery" + "/admin/**").hasRole("ADMIN")
// Any other request must be authenticated
.anyRequest().authenticated();
}
@Bean
public JwtConfig jwtConfig() {
return new JwtConfig();
}
}
|
[
"sidie88@gmail.com"
] |
sidie88@gmail.com
|
f2f541e4453496c5f271454aa950eaec40045f54
|
7250b1d9f942b0ed200204c664857b1aa804f3c9
|
/src/main/java/com/github/wangyi/thrift/simpleRpc/appchina_rpc/thrift/server/ThriftThreadPoolServer.java
|
f6e117c62b91dc8f679ed79a36cd95a2c5203fe2
|
[] |
no_license
|
himalayaRange/rpc-thrift-rim-hetty-netty-hessian-springSession
|
a65fa6dca3c19cb473ce3412ce87afd231bdfbdd
|
caa2e4f4988a18b0b3f5dc932709e63a9d51beca
|
refs/heads/master
| 2021-01-18T17:25:50.607180
| 2017-03-31T08:41:06
| 2017-03-31T08:41:06
| 86,796,739
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,719
|
java
|
package com.github.wangyi.thrift.simpleRpc.appchina_rpc.thrift.server;
import java.util.concurrent.TimeUnit;
import org.apache.thrift.TProcessor;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.server.TServer;
import org.apache.thrift.server.TThreadPoolServer;
import org.apache.thrift.transport.TServerSocket;
import org.apache.thrift.transport.TServerTransport;
import org.apache.thrift.transport.TTransportException;
import com.github.wangyi.thrift.simpleRpc.appchina_rpc.base.server.ServerProcessor;
import com.github.wangyi.thrift.simpleRpc.appchina_rpc.thrift.ThriftGenericConfig;
import com.github.wangyi.thrift.simpleRpc.appchina_rpc.thrift.support.Request;
import com.github.wangyi.thrift.simpleRpc.appchina_rpc.thrift.support.Response;
/**
*
* ========================================================
* 日 期:@2016-12-15
* 作 者:wangyi
* 版 本:1.0.0
* 类说明:每个客户端消耗一个服务器线程
* 延迟率低,短连接可以考虑
* 阻塞式Socket工作方式
* TODO
* ========================================================
* 修订日期 :
* 修订人 :
* 描述:
*/
public class ThriftThreadPoolServer extends AbstractThriftServer{
protected int requestTimeout=(int)TimeUnit.SECONDS.toMillis(60);
protected int minWorkerThreads=ThriftGenericConfig.MINWORKERRHREAD;
public ThriftThreadPoolServer() {
super();
}
public ThriftThreadPoolServer(ServerProcessor<Request, Response> processor) {
super(processor);
}
@Override
protected TServer buildThriftServer(TProcessor thriftProcessor)
throws TTransportException {
TServerTransport transport = new TServerSocket(port, clientTimeout);
TThreadPoolServer.Args args = new TThreadPoolServer.Args(transport);
args.processor(thriftProcessor);
if(protocolFactory==null){
protocolFactory=new TTupleProtocol.Factory();
}
setProtocol(protocol);
args.protocolFactory(protocolFactory);
args.maxWorkerThreads(workerThreads);
args.minWorkerThreads(minWorkerThreads);
args.requestTimeout(requestTimeout);
args.requestTimeoutUnit(TimeUnit.MILLISECONDS);
args.stopTimeoutVal(stopTimeoutVal);
args.stopTimeoutUnit = TimeUnit.MILLISECONDS;
if(LOG.isWarnEnabled()){
LOG.warn(">>>>>Init Server Thread By ThriftThreadPoolServer,Publisher Port:"+this.port+"<<<<<");
}
return new TThreadPoolServer(args);
}
public int getRequestTimeout() {
return requestTimeout;
}
public void setRequestTimeout(int requestTimeout) {
this.requestTimeout = requestTimeout;
}
public int getMinWorkerThreads() {
return minWorkerThreads;
}
public void setMinWorkerThreads(int minWorkerThreads) {
this.minWorkerThreads = minWorkerThreads;
}
}
|
[
"2531592408@qq.com"
] |
2531592408@qq.com
|
686be551c5d1b36731b4494ea32a02e25c25afa3
|
fb3d77879fe03a14a72b5d836c8867dba63fce49
|
/src/main/java/xdi2/connector/facebook/mapping/FacebookMapping.java
|
9178c7437a3c92e7e15612bf5b05d27f99c88662
|
[
"MIT"
] |
permissive
|
Kapil-Vats/xdi2-connector-facebook
|
d74a9650a4570938d468e686e7b4fe808a90fed9
|
9134b1fe6a00d58f4477f4575455176f2e1d9dab
|
refs/heads/master
| 2020-12-26T01:12:28.864804
| 2014-01-26T10:43:52
| 2014-01-26T10:43:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,675
|
java
|
package xdi2.connector.facebook.mapping;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import xdi2.core.ContextNode;
import xdi2.core.Graph;
import xdi2.core.exceptions.Xdi2RuntimeException;
import xdi2.core.features.dictionary.Dictionary;
import xdi2.core.features.equivalence.Equivalence;
import xdi2.core.features.nodetypes.XdiAbstractContext;
import xdi2.core.impl.memory.MemoryGraphFactory;
import xdi2.core.io.XDIReaderRegistry;
import xdi2.core.xri3.XDI3Segment;
public class FacebookMapping {
public static final XDI3Segment XRI_S_FACEBOOK_CONTEXT = XDI3Segment.create("(https://facebook.com/)");
private static final Logger log = LoggerFactory.getLogger(FacebookMapping.class);
private static FacebookMapping instance;
private Graph mappingGraph;
public FacebookMapping() {
this.mappingGraph = MemoryGraphFactory.getInstance().openGraph();
try {
XDIReaderRegistry.getAuto().read(this.mappingGraph, FacebookMapping.class.getResourceAsStream("mapping.xdi"));
} catch (Exception ex) {
throw new Xdi2RuntimeException(ex.getMessage(), ex);
}
}
public static FacebookMapping getInstance() {
if (instance == null) instance = new FacebookMapping();
return instance;
}
/**
* Converts a Facebook user ID XRI to a native Facebook user ID.
* Example: [!]!588183713 --> 588183713
*/
public String facebookUserIdXriToFacebookUserId(XDI3Segment facebookUserIdXri) {
if (facebookUserIdXri == null) throw new NullPointerException();
// convert
String facebookUserId = facebookUserIdXri.getLastSubSegment().getLiteral();
// done
if (log.isDebugEnabled()) log.debug("Converted " + facebookUserIdXri + " to " + facebookUserId);
return facebookUserId;
}
/**
* Converts a native Facebook user ID to a Facebook user ID XRI.
* Example: 588183713 --> [!]!588183713
*/
public XDI3Segment facebookUserIdToFacebookUserIdXri(String facebookUserId) {
if (facebookUserId == null) throw new NullPointerException();
// convert
XDI3Segment facebookUserIdXri = XDI3Segment.create("[!]!" + facebookUserId);
// done
if (log.isDebugEnabled()) log.debug("Converted " + facebookUserId + " to " + facebookUserIdXri);
return facebookUserIdXri;
}
/**
* Converts a Facebook data XRI to a native Facebook object identifier.
* Example: +(user)<+(first_name)> --> user
*/
public String facebookDataXriToFacebookObjectIdentifier(XDI3Segment facebookDataXri) {
if (facebookDataXri == null) throw new NullPointerException();
// convert
String facebookObjectIdentifier = Dictionary.instanceXriToNativeIdentifier(XdiAbstractContext.getBaseArcXri(facebookDataXri.getSubSegment(0)));
// done
if (log.isDebugEnabled()) log.debug("Converted " + facebookDataXri + " to " + facebookObjectIdentifier);
return facebookObjectIdentifier;
}
/**
* Converts a Facebook data XRI to a native Facebook field identifier.
* Example: +(user)<+(first_name)> --> first_name
*/
public String facebookDataXriToFacebookFieldIdentifier(XDI3Segment facebookDataXri) {
if (facebookDataXri == null) throw new NullPointerException();
// convert
String facebookFieldIdentifier = Dictionary.instanceXriToNativeIdentifier(XdiAbstractContext.getBaseArcXri(facebookDataXri.getSubSegment(1)));
// done
if (log.isDebugEnabled()) log.debug("Converted " + facebookDataXri + " to " + facebookFieldIdentifier);
return facebookFieldIdentifier;
}
/**
* Maps and converts a Facebook data XRI to an XDI data XRI.
* Example: +(user)<+(first_name)> --> +first<+name>
*/
public XDI3Segment facebookDataXriToXdiDataXri(XDI3Segment facebookDataXri) {
if (facebookDataXri == null) throw new NullPointerException();
// convert
StringBuffer buffer1 = new StringBuffer();
for (int i=0; i<facebookDataXri.getNumSubSegments(); i++) {
buffer1.append(Dictionary.instanceXriToDictionaryXri(facebookDataXri.getSubSegment(i)));
}
// map
XDI3Segment facebookDataDictionaryXri = XDI3Segment.create("" + XRI_S_FACEBOOK_CONTEXT + buffer1.toString());
ContextNode facebookDataDictionaryContextNode = this.mappingGraph.getDeepContextNode(facebookDataDictionaryXri);
if (facebookDataDictionaryContextNode == null) return null;
ContextNode xdiDataDictionaryContextNode = Equivalence.getReferenceContextNode(facebookDataDictionaryContextNode);
XDI3Segment xdiDataDictionaryXri = xdiDataDictionaryContextNode.getXri();
// convert
StringBuilder buffer2 = new StringBuilder();
for (int i=0; i<xdiDataDictionaryXri.getNumSubSegments(); i++) {
buffer2.append(Dictionary.dictionaryXriToInstanceXri(xdiDataDictionaryXri.getSubSegment(i)));
}
XDI3Segment xdiDataXri = XDI3Segment.create(buffer2.toString());
// done
if (log.isDebugEnabled()) log.debug("Mapped and converted " + facebookDataXri + " to " + xdiDataXri);
return xdiDataXri;
}
/**
* Maps and converts an XDI data XRI to a Facebook data XRI.
* Example: +first<+name> --> +(user)<+(first_name)>
*/
public XDI3Segment xdiDataXriToFacebookDataXri(XDI3Segment xdiDataXri) {
if (xdiDataXri == null) throw new NullPointerException();
// convert
StringBuffer buffer1 = new StringBuffer();
for (int i=0; i<xdiDataXri.getNumSubSegments(); i++) {
buffer1.append(Dictionary.instanceXriToDictionaryXri(xdiDataXri.getSubSegment(i)));
}
// map
XDI3Segment xdiDataDictionaryXri = XDI3Segment.create(buffer1.toString());
ContextNode xdiDataDictionaryContextNode = this.mappingGraph.getDeepContextNode(xdiDataDictionaryXri);
if (xdiDataDictionaryContextNode == null) return null;
ContextNode facebookDataDictionaryContextNode = Equivalence.getIncomingReferenceContextNodes(xdiDataDictionaryContextNode).next();
XDI3Segment facebookDataDictionaryXri = facebookDataDictionaryContextNode.getXri();
// convert
StringBuilder buffer2 = new StringBuilder();
for (int i=1; i<facebookDataDictionaryXri.getNumSubSegments(); i++) {
buffer2.append(Dictionary.dictionaryXriToInstanceXri(facebookDataDictionaryXri.getSubSegment(i)));
}
XDI3Segment facebookDataXri = XDI3Segment.create(buffer2.toString());
// done
if (log.isDebugEnabled()) log.debug("Mapped and converted " + xdiDataXri + " to " + facebookDataXri);
return facebookDataXri;
}
/*
* Getters and setters
*/
public Graph getMappingGraph() {
return this.mappingGraph;
}
public void setMappingGraph(Graph mappingGraph) {
this.mappingGraph = mappingGraph;
}
}
|
[
"markus.sabadello@gmail.com"
] |
markus.sabadello@gmail.com
|
97ab19cd8ba4b8074a665d642e85ec2132cee538
|
c68263cef6dacf521ac4a2bce0b156d61d66dbc8
|
/src/main/java/vip/efactory/common/i18n/config/I18NLocaleChangeInterceptor.java
|
7d83cf1b039079efd091c748877616238b6299b3
|
[] |
no_license
|
lizhengjava/common-i18n
|
3a5643521893ab91b4647bee3cc486852c6cddfc
|
a1c965c2b43a585f70aec980a6125576be29f2f3
|
refs/heads/master
| 2022-12-09T05:53:18.814039
| 2020-09-04T11:33:37
| 2020-09-04T11:33:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,878
|
java
|
package vip.efactory.common.i18n.config;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
import org.springframework.web.servlet.support.RequestContextUtils;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* 默认的LocaleChangeInterceptor只能从请求中获取区域信息,这样是不够的
* 此处继承它,重写相关的方法,实现从header头中和请求中获取区域locale信息
*/
public class I18NLocaleChangeInterceptor extends LocaleChangeInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws ServletException {
// 先从请求头中获取国际化的区域信息
String headerLocale = request.getHeader(getParamName());
String requestLocale = request.getParameter(getParamName());
// 若请求头中没有国际化参数,则从请求中获取,若都没有则为null
String parseLocale = StringUtils.isEmpty(headerLocale) ? (StringUtils.isEmpty(requestLocale) ? null : requestLocale) : headerLocale;
if (parseLocale != null) {
if (checkHttpMethod(request.getMethod())) {
LocaleResolver localeResolver = RequestContextUtils.getLocaleResolver(request);
if (localeResolver == null) {
throw new IllegalStateException(
"No LocaleResolver found: not in a DispatcherServlet request?");
}
try {
localeResolver.setLocale(request, response, parseLocaleValue(parseLocale));
} catch (IllegalArgumentException ex) {
if (isIgnoreInvalidLocale()) {
if (logger.isDebugEnabled()) {
logger.debug("Ignoring invalid locale value [" + parseLocale + "]: " + ex.getMessage());
}
} else {
throw ex;
}
}
}
}
// Proceed in any case.
return true;
}
/**
* 和父类中的方法一样,之所以在此处出现,是因为方法为私有,但是又需要用到.
*/
private boolean checkHttpMethod(String currentMethod) {
String[] configuredMethods = getHttpMethods();
if (ObjectUtils.isEmpty(configuredMethods)) {
return true;
}
for (String configuredMethod : configuredMethods) {
if (configuredMethod.equalsIgnoreCase(currentMethod)) {
return true;
}
}
return false;
}
}
|
[
"1797890817@qq.com"
] |
1797890817@qq.com
|
2cbaad78277e197e9aa51ba72725f067eb40389a
|
1a150a026b0067f8df98893fea4b54a17db1f84d
|
/demo1/src/main/java/com/zzz/play/ui/MainWindow.java
|
f86c8450675b1428ebe8e929cce343d87f8f6392
|
[] |
no_license
|
zhangdongjava/grab
|
01f299b2e5ab91c4de30efd54e473ebd3a87f274
|
e9cd739457ae233c722289ed772c47db3904d92c
|
refs/heads/master
| 2021-01-13T10:55:30.097227
| 2017-06-01T07:27:02
| 2017-06-01T07:27:02
| 72,276,473
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,977
|
java
|
package com.zzz.play.ui;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Map;
/**
* Created by dell_2 on 2016/10/29.
*/
public class MainWindow extends JFrame {
private javax.swing.JLabel L_img;
private javax.swing.JLabel L_img2;
private PopupMenu pop;
private MenuItem open, close;
private TrayIcon trayicon;
private TabPanel tabPanel;
private MyDialog myDialog;
private SysSetDialog sysSetDialog;
private JLabel jLabel = new JLabel("暂无物品!");
// public static String[] scripts = {"scripts/材料/大柳虫"};
public static String[] scripts = {"scripts/材料/血印分身蒙汗药", "scripts/材料/大柳虫", "scripts/材料/大白菜"};
public static int count = 0;
public MainWindow() {
this.setSize(400, 600);
this.setLayout(null);
this.setLocationRelativeTo(null);
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
tabPanel = new TabPanel(this);
this.setContentPane(tabPanel);
myDialog = new MyDialog(this);
sysSetDialog = new SysSetDialog(this);
initMenu();
initToTray();
this.setAlwaysOnTop(false);
this.setVisible(true);
}
private void initMenu() {
JMenu jm = new JMenu("选项卡"); //创建JMenu菜单对象
JMenu set = new JMenu("设置"); //创建JMenu菜单对象
JMenuItem addTab = new JMenuItem("添加"); //菜单项
JMenuItem scriptPath = new JMenuItem("脚本路径"); //菜单项
addTab.addActionListener((e) -> addTab());
scriptPath.addActionListener((e) -> scriptPath());
jm.add(addTab); //将菜单项目添加到菜单
set.add(scriptPath); //将菜单项目添加到菜单
JMenuBar br = new JMenuBar(); //创建菜单工具栏
br.add(jm); //将菜单增加到菜单工具栏
br.add(set); //将菜单增加到菜单工具栏
this.setJMenuBar(br); //为 窗体设置 菜单工具栏
}
private void scriptPath() {
sysSetDialog.setVisible(true);
}
/**
* 初始化最小化托盘
*/
private void initToTray() {
L_img = new javax.swing.JLabel();
L_img2 = new javax.swing.JLabel();
pop = new PopupMenu();
open = new MenuItem("open");
open.addActionListener((e) -> openFrame());
close = new MenuItem("close");
close.addActionListener((e) -> System.exit(-1));
pop.add(open);
pop.add(close);
if (SystemTray.isSupported()) {
SystemTray tray = SystemTray.getSystemTray();
Image icon = getToolkit().getImage(getClass().getResource("/image/icon.png"));
trayicon = new TrayIcon(icon, "java swing", pop);
trayicon.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
if (getExtendedState() == JFrame.ICONIFIED) {
openFrame();// 还原窗口
} else {
// 设置窗口状态(最小化至托盘)
setExtendedState(JFrame.ICONIFIED);
}
}
}
});
try {
tray.add(trayicon);
} catch (AWTException e) {
e.printStackTrace();
}
}
this.addWindowListener(new WindowAdapter() {
//窗口最小化
@Override
public void windowIconified(WindowEvent e) {
setVisible(false);// 设置为不可见
}
});
}
private void addTab() {
myDialog.setVisible(true);
}
public static void main(String[] args) throws ClassNotFoundException, UnsupportedLookAndFeelException, InstantiationException, IllegalAccessException {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");//Nimbus风格,jdk6
new MainWindow();
}
public void showGoods(Map<String, Integer> goods) {
StringBuffer stringBuffer = new StringBuffer();
for (Map.Entry<String, Integer> entry : goods.entrySet()) {
stringBuffer.append(entry.getKey() + ":" + entry.getValue() + ",");
}
if (stringBuffer.length() > 0)
stringBuffer.deleteCharAt(stringBuffer.length() - 1);
jLabel.setText(stringBuffer.toString());
}
public void addTab(String name, String url) {
tabPanel.addPanel(name, url);
count++;
}
/**
* 从托盘显示出来
*/
public void openFrame() {
setVisible(true);// 设置为可见
//setAlwaysOnTop(true);// 设置置顶
// 设置窗口状态(在最小化状态弹出显示)
setExtendedState(JFrame.NORMAL);
}
}
|
[
"787395919@qq.com"
] |
787395919@qq.com
|
630db463128a2a9546ca844d7b453d2664edfe4d
|
efb8272823f47f5d64cb4a0ad9c9aaf4d83acf86
|
/weshop-goods-api/src/main/java/tech/wetech/weshop/goods/fallback/GoodsSpecificationApiFallback.java
|
ae81a72ec8df9f653f3798a86e3c9cfea04948bc
|
[] |
no_license
|
easyteam2019/weshop
|
c69997507b183fc42795fca4d733bdf350cf7853
|
607de89aba790cd6443f9dd0ab3c5171db20534c
|
refs/heads/master
| 2020-05-17T12:46:34.457402
| 2019-04-27T02:31:28
| 2019-04-27T02:31:28
| 183,718,930
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 702
|
java
|
package tech.wetech.weshop.goods.fallback;
import org.springframework.stereotype.Component;
import tech.wetech.weshop.enums.ResultCodeEnum;
import tech.wetech.weshop.fallback.ApiFallback;
import tech.wetech.weshop.goods.api.GoodsSpecificationApi;
import tech.wetech.weshop.goods.po.GoodsSpecification;
import tech.wetech.weshop.utils.Result;
import java.util.List;
@Component
public class GoodsSpecificationApiFallback extends ApiFallback<GoodsSpecification> implements GoodsSpecificationApi {
@Override
public Result<List<String>> queryValueByGoodsIdAndIdIn(Integer goodsId, List<Integer> goodsSpecificationIds) {
return Result.failure(ResultCodeEnum.REMOTE_SERVICE_ERROR);
}
}
|
[
"cjbi@outlook.com"
] |
cjbi@outlook.com
|
c3f3c596eeb83b4995f2db36cd05a138bc30f41b
|
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
|
/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateApplicationRequest.java
|
a675041f181274ce16dd658582f832a920ed96a3
|
[
"Apache-2.0"
] |
permissive
|
huaweicloud/huaweicloud-sdk-java-v3
|
51b32a451fac321a0affe2176663fed8a9cd8042
|
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
|
refs/heads/master
| 2023-08-29T06:50:15.642693
| 2023-08-24T08:34:48
| 2023-08-24T08:34:48
| 262,207,545
| 91
| 57
|
NOASSERTION
| 2023-09-08T12:24:55
| 2020-05-08T02:27:00
|
Java
|
UTF-8
|
Java
| false
| false
| 4,581
|
java
|
package com.huaweicloud.sdk.cae.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Request Object
*/
public class CreateApplicationRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Enterprise-Project-ID")
private String xEnterpriseProjectID;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Environment-ID")
private String xEnvironmentID;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "body")
private CreateApplicationRequestBody body;
public CreateApplicationRequest withXEnterpriseProjectID(String xEnterpriseProjectID) {
this.xEnterpriseProjectID = xEnterpriseProjectID;
return this;
}
/**
* 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
* @return xEnterpriseProjectID
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Enterprise-Project-ID")
public String getXEnterpriseProjectID() {
return xEnterpriseProjectID;
}
public void setXEnterpriseProjectID(String xEnterpriseProjectID) {
this.xEnterpriseProjectID = xEnterpriseProjectID;
}
public CreateApplicationRequest withXEnvironmentID(String xEnvironmentID) {
this.xEnvironmentID = xEnvironmentID;
return this;
}
/**
* 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
* @return xEnvironmentID
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Environment-ID")
public String getXEnvironmentID() {
return xEnvironmentID;
}
public void setXEnvironmentID(String xEnvironmentID) {
this.xEnvironmentID = xEnvironmentID;
}
public CreateApplicationRequest withBody(CreateApplicationRequestBody body) {
this.body = body;
return this;
}
public CreateApplicationRequest withBody(Consumer<CreateApplicationRequestBody> bodySetter) {
if (this.body == null) {
this.body = new CreateApplicationRequestBody();
bodySetter.accept(this.body);
}
return this;
}
/**
* Get body
* @return body
*/
public CreateApplicationRequestBody getBody() {
return body;
}
public void setBody(CreateApplicationRequestBody body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
CreateApplicationRequest that = (CreateApplicationRequest) obj;
return Objects.equals(this.xEnterpriseProjectID, that.xEnterpriseProjectID)
&& Objects.equals(this.xEnvironmentID, that.xEnvironmentID) && Objects.equals(this.body, that.body);
}
@Override
public int hashCode() {
return Objects.hash(xEnterpriseProjectID, xEnvironmentID, body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateApplicationRequest {\n");
sb.append(" xEnterpriseProjectID: ").append(toIndentedString(xEnterpriseProjectID)).append("\n");
sb.append(" xEnvironmentID: ").append(toIndentedString(xEnvironmentID)).append("\n");
sb.append(" body: ").append(toIndentedString(body)).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
|
0d9bc794517ad72572120c04c7099f8c2b94d9b7
|
adad299298b3a4ddbc0d152093b3e5673a940e52
|
/neoHort5/src/main/java/neohort/universal/output/lib_pdf/pagebreak.java
|
805958c609bcbcdbc063869829ede839b4430d2f
|
[] |
no_license
|
surban1974/neohort
|
a692e49c8e152cea0b155d81c2b2b1b167630ba8
|
0c371590e739defbc25d5befd1d44fcf18d1bcab
|
refs/heads/master
| 2022-07-27T18:57:49.916560
| 2022-01-04T18:00:12
| 2022-01-04T18:00:12
| 5,521,942
| 2
| 1
| null | 2022-06-30T20:10:02
| 2012-08-23T08:33:40
|
Java
|
UTF-8
|
Java
| false
| false
| 3,303
|
java
|
/**
* Creation date: (14/12/2005)
* @author: Svyatoslav Urbanovych surban@bigmir.net svyatoslav.urbanovych@gmail.com
*/
/********************************************************************************
*
* Copyright (C) 2005 Svyatoslav Urbanovych
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*********************************************************************************/
package neohort.universal.output.lib_pdf;
import java.util.Hashtable;
import neohort.log.stubs.iStub;
import neohort.universal.output.iConst;
import neohort.universal.output.lib.report_element_base;
import com.itextpdf.text.Document;
import com.itextpdf.text.PageSize;
public class pagebreak extends element{
private static final long serialVersionUID = -8931736222173377614L;
private java.lang.String ORIENTATION;
private java.lang.String MARGINS;
public pagebreak() {
super();
}
public void executeFirst(Hashtable _tagLibrary, Hashtable _beanLibrary){
try{
Document document = ((Document)(((report_element_base)_beanLibrary.get("SYSTEM:"+iConst.iHORT_SYSTEM_Document)).getContent()));
if(getORIENTATION()!=null && getORIENTATION().trim().equalsIgnoreCase("LANDSCAPE"))
document.setPageSize(PageSize.A4.rotate());
if(getORIENTATION()!=null && getORIENTATION().trim().equalsIgnoreCase("PORTRAIT"))
document.setPageSize(PageSize.A4);
if(getMARGINS()!=null && !getMARGINS().equals("")){
try{
int p1 = 30;
int p2 = 30;
int p3 = 30;
int p4 = 30;
java.util.StringTokenizer st = new java.util.StringTokenizer(getMARGINS(), ",");
p1 = Integer.valueOf(st.nextToken()).intValue();
p2 = Integer.valueOf(st.nextToken()).intValue();
p3 = Integer.valueOf(st.nextToken()).intValue();
p4 = Integer.valueOf(st.nextToken()).intValue();
document.setMargins(p1, p2, p3, p4);
}catch(Exception e){
document.setMargins(30, 30, 30, 30);
}
}
document.newPage();
}catch(Exception e){
setError(e,iStub.log_WARN);
}
}
public void executeLast(Hashtable _tagLibrary, Hashtable _beanLibrary){
try{
if(_tagLibrary.get(getName()+":"+getID())==null)
_tagLibrary.remove(getName()+":"+getID()+"_ids_"+this.motore.hashCode());
else _tagLibrary.remove(getName()+":"+getID());
}catch(Exception e){
setError(e,iStub.log_WARN);
}
}
public void reimposta() {
setName("PAGEBREAK");
ORIENTATION = "";
MARGINS = "";
}
public java.lang.String getORIENTATION() {
return ORIENTATION;
}
public void setORIENTATION(java.lang.String string) {
ORIENTATION = string;
}
public java.lang.String getMARGINS() {
return MARGINS;
}
public void setMARGINS(java.lang.String string) {
MARGINS = string;
}
}
|
[
"svyatoslav.urbanovych@gmail.com"
] |
svyatoslav.urbanovych@gmail.com
|
7a74dcbc43747dd38edd429aeb46dae50fc0f401
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/26/26_7947e8053d81fee824e015ff523563c731004eb4/TaskI18NHelper/26_7947e8053d81fee824e015ff523563c731004eb4_TaskI18NHelper_s.java
|
569421b29dcd8c1b45a0a42e61da0dd73a415175
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 1,447
|
java
|
/*
* Copyright 2012 JBoss by Red Hat.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jbpm.console.ng.ht.backend.server;
import java.util.ArrayList;
import java.util.List;
import org.jbpm.task.impl.model.I18NTextImpl;
import org.kie.internal.task.api.model.I18NText;
/**
*
*/
public class TaskI18NHelper {
public static List<I18NText> adaptI18NList(List<String> list){
List<I18NText> result = new ArrayList<I18NText>(list.size());
for(String s : list){
// FIX
result.add(new I18NTextImpl("en-UK", s));
}
return result;
}
static List<String> adaptStringList(List<I18NText> descriptions) {
List<String> result = new ArrayList<String>(descriptions.size());
for(I18NText t : descriptions){
// FIX
result.add(t.getText());
}
return result;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
9e7446761d6091336e8b7d14fcd29b7db81e740f
|
c88b9ff58047f8ecfd6c95bfc8a6fbe32fba79c9
|
/src/me/daddychurchill/CityWorld/Context/CivilizedContext.java
|
7c8ef06044ebd8453a9b3aa419b279d1a190fa80
|
[] |
no_license
|
keenerb/CityWorld-Outlands
|
df1831e8b7ef20c489d86e9bf4380fad5a703d38
|
3559e7041f004326168a5383568c844e676b19db
|
refs/heads/master
| 2020-06-03T05:59:48.392264
| 2014-01-21T06:36:42
| 2014-01-21T06:36:42
| 191,470,641
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,188
|
java
|
package me.daddychurchill.CityWorld.Context;
import me.daddychurchill.CityWorld.WorldGenerator;
import me.daddychurchill.CityWorld.Plats.PlatLot;
import me.daddychurchill.CityWorld.Plats.PlatLot.LotStyle;
import me.daddychurchill.CityWorld.Support.Odds;
import me.daddychurchill.CityWorld.Support.PlatMap;
public abstract class CivilizedContext extends DataContext {
public CivilizedContext(WorldGenerator generator) {
super(generator);
}
@Override
protected void initialize() {
oddsOfIsolatedLots = oddsExtremelyLikely;
oddsOfIsolatedConstructs = oddsSomewhatLikely;
oddsOfParks = oddsVeryLikely;
oddsOfIdenticalBuildingHeights = oddsExtremelyLikely;
oddsOfSimilarBuildingHeights = oddsExtremelyLikely;
oddsOfSimilarBuildingRounding = oddsExtremelyLikely;
oddsOfStairWallMaterialIsWallMaterial = oddsExtremelyLikely;
oddsOfUnfinishedBuildings = oddsLikely;
oddsOfOnlyUnfinishedBasements = oddsVeryLikely;
oddsOfCranes = oddsVeryLikely;
oddsOfBuildingWallInset = oddsExtremelyLikely;
oddsOfSimilarInsetBuildings = oddsExtremelyLikely;
oddsOfFlatWalledBuildings = oddsExtremelyLikely;
//TODO oddsOfMissingRoad is current not used... I need to fix this
//oddsOfMissingRoad = oddsLikely;
oddsOfRoundAbouts = oddsLikely;
oddsOfMissingArt = oddsUnlikely;
oddsOfNaturalArt = oddsExtremelyLikely;
}
protected abstract PlatLot getBackfillLot(WorldGenerator generator, PlatMap platmap, Odds odds, int chunkX, int chunkZ);
@Override
public void validateMap(WorldGenerator generator, PlatMap platmap) {
Odds platmapOdds = platmap.getOddsGenerator();
for (int x = 0; x < PlatMap.Width; x++) {
for (int z = 0; z < PlatMap.Width; z++) {
PlatLot current = platmap.getLot(x, z);
// if we are trulyIsolated and one of our neighbors are as well then recycle the lot
if (current != null &&
current.style == LotStyle.STRUCTURE &&
current.trulyIsolated && !platmap.isTrulyIsolatedLot(x, z)) {
// replace it then
current = getBackfillLot(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z);
platmap.setLot(x, z, current);
}
}
}
}
}
|
[
"eddie@virtualchurchill.com"
] |
eddie@virtualchurchill.com
|
75fa51cfafa861d14dbae4ceff1954125696c755
|
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
|
/services/rms/src/main/java/com/huaweicloud/sdk/rms/v1/model/ShowAggregateComplianceDetailsByPolicyAssignmentRequest.java
|
e213fed96e437738d087d9e4e55f712345c483b9
|
[
"Apache-2.0"
] |
permissive
|
huaweicloud/huaweicloud-sdk-java-v3
|
51b32a451fac321a0affe2176663fed8a9cd8042
|
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
|
refs/heads/master
| 2023-08-29T06:50:15.642693
| 2023-08-24T08:34:48
| 2023-08-24T08:34:48
| 262,207,545
| 91
| 57
|
NOASSERTION
| 2023-09-08T12:24:55
| 2020-05-08T02:27:00
|
Java
|
UTF-8
|
Java
| false
| false
| 3,628
|
java
|
package com.huaweicloud.sdk.rms.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Request Object
*/
public class ShowAggregateComplianceDetailsByPolicyAssignmentRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "marker")
private String marker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "body")
private AggregateComplianceDetailRequest body;
public ShowAggregateComplianceDetailsByPolicyAssignmentRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 最大的返回数量
* minimum: 1
* maximum: 200
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ShowAggregateComplianceDetailsByPolicyAssignmentRequest withMarker(String marker) {
this.marker = marker;
return this;
}
/**
* 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
* @return marker
*/
public String getMarker() {
return marker;
}
public void setMarker(String marker) {
this.marker = marker;
}
public ShowAggregateComplianceDetailsByPolicyAssignmentRequest withBody(AggregateComplianceDetailRequest body) {
this.body = body;
return this;
}
public ShowAggregateComplianceDetailsByPolicyAssignmentRequest withBody(
Consumer<AggregateComplianceDetailRequest> bodySetter) {
if (this.body == null) {
this.body = new AggregateComplianceDetailRequest();
bodySetter.accept(this.body);
}
return this;
}
/**
* Get body
* @return body
*/
public AggregateComplianceDetailRequest getBody() {
return body;
}
public void setBody(AggregateComplianceDetailRequest body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowAggregateComplianceDetailsByPolicyAssignmentRequest that =
(ShowAggregateComplianceDetailsByPolicyAssignmentRequest) obj;
return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker)
&& Objects.equals(this.body, that.body);
}
@Override
public int hashCode() {
return Objects.hash(limit, marker, body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowAggregateComplianceDetailsByPolicyAssignmentRequest {\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" marker: ").append(toIndentedString(marker)).append("\n");
sb.append(" body: ").append(toIndentedString(body)).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
|
9a33c3c0da453f7b3cad3aefdab6c876c0f4a8e7
|
f34602b407107a11ce0f3e7438779a4aa0b1833e
|
/professor/dvl/roadnet-client/src/main/java/com/roadnet/apex/IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage.java
|
bd96fe88b626a87b46d590a0f2e6699a49078276
|
[] |
no_license
|
ggmoura/treinar_11836
|
a447887dc65c78d4bd87a70aab2ec9b72afd5d87
|
0a91f3539ccac703d9f59b3d6208bf31632ddf1c
|
refs/heads/master
| 2022-06-14T13:01:27.958568
| 2020-04-04T01:41:57
| 2020-04-04T01:41:57
| 237,103,996
| 0
| 2
| null | 2022-05-20T21:24:49
| 2020-01-29T23:36:21
|
Java
|
UTF-8
|
Java
| false
| false
| 1,578
|
java
|
package com.roadnet.apex;
import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.2.4
* 2020-03-15T13:07:04.800-03:00
* Generated source version: 3.2.4
*/
@WebFault(name = "TransferErrorCode", targetNamespace = "http://roadnet.com/apex/DataContracts/")
public class IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage extends Exception {
private com.roadnet.apex.datacontracts.TransferErrorCode transferErrorCode;
public IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage() {
super();
}
public IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage(String message) {
super(message);
}
public IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage(String message, java.lang.Throwable cause) {
super(message, cause);
}
public IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage(String message, com.roadnet.apex.datacontracts.TransferErrorCode transferErrorCode) {
super(message);
this.transferErrorCode = transferErrorCode;
}
public IQueryServiceRetrieveEquipmentDataHistoryTransferErrorCodeFaultMessage(String message, com.roadnet.apex.datacontracts.TransferErrorCode transferErrorCode, java.lang.Throwable cause) {
super(message, cause);
this.transferErrorCode = transferErrorCode;
}
public com.roadnet.apex.datacontracts.TransferErrorCode getFaultInfo() {
return this.transferErrorCode;
}
}
|
[
"gleidson.gmoura@gmail.com"
] |
gleidson.gmoura@gmail.com
|
3f57a7a2cb05ac7c43d225cbc66e45ac6b63f4f8
|
df48dc6e07cdf202518b41924444635f30d60893
|
/jinx-com4j/src/main/java/com/exceljava/com4j/excel/Filter.java
|
f27a8ccaa5e4058ed380dfaa5ad97e991e6d25be
|
[
"MIT"
] |
permissive
|
ashwanikaggarwal/jinx-com4j
|
efc38cc2dc576eec214dc847cd97d52234ec96b3
|
41a3eaf71c073f1282c2ab57a1c91986ed92e140
|
refs/heads/master
| 2022-03-29T12:04:48.926303
| 2020-01-10T14:11:17
| 2020-01-10T14:11:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,828
|
java
|
package com.exceljava.com4j.excel ;
import com4j.*;
@IID("{00020400-0000-0000-C000-000000000046}")
public interface Filter extends Com4jObject {
// Methods:
/**
* <p>
* Getter method for the COM property "Application"
* </p>
*/
@DISPID(148)
@PropGet
com.exceljava.com4j.excel._Application getApplication();
/**
* <p>
* Getter method for the COM property "Creator"
* </p>
*/
@DISPID(149)
@PropGet
com.exceljava.com4j.excel.XlCreator getCreator();
/**
* <p>
* Getter method for the COM property "Parent"
* </p>
*/
@DISPID(150)
@PropGet
com4j.Com4jObject getParent();
/**
* <p>
* Getter method for the COM property "On"
* </p>
*/
@DISPID(1618)
@PropGet
boolean getOn();
/**
* <p>
* Getter method for the COM property "Criteria1"
* </p>
*/
@DISPID(796)
@PropGet
java.lang.Object getCriteria1();
/**
* <p>
* Getter method for the COM property "_Operator"
* </p>
*/
@DISPID(2641)
@PropGet
com.exceljava.com4j.excel.XlAutoFilterOperator get_Operator();
/**
* <p>
* Getter method for the COM property "Criteria2"
* </p>
*/
@DISPID(798)
@PropGet
java.lang.Object getCriteria2();
/**
* <p>
* Getter method for the COM property "Operator"
* </p>
*/
@DISPID(797)
@PropGet
com.exceljava.com4j.excel.XlAutoFilterOperator getOperator();
/**
* <p>
* Setter method for the COM property "Operator"
* </p>
* @param rhs Mandatory com.exceljava.com4j.excel.XlAutoFilterOperator parameter.
*/
@DISPID(797)
@PropPut
void setOperator(
com.exceljava.com4j.excel.XlAutoFilterOperator rhs);
/**
* <p>
* Getter method for the COM property "Count"
* </p>
*/
@DISPID(118)
@PropGet
int getCount();
// Properties:
}
|
[
"tony@pyxll.com"
] |
tony@pyxll.com
|
b3e1c3a37062d10f18a43c19ef4a0d242b3f6e3d
|
e9a6574e6ec50c39a6923ade3743da1401776f6f
|
/Spring/Spring_01/src/main/java/ua/levelup/BraveKnight.java
|
646249775f331cda9cc762633171d0b264ed4fcd
|
[] |
no_license
|
bardas-oleksandr/Homeworks_All
|
bc1a6658c5c70aca94c5a5345ba42f00caf9de40
|
bf24021afcb4d0287469762761fdfff1d816a329
|
refs/heads/master
| 2020-04-28T06:47:36.046027
| 2019-03-11T19:34:51
| 2019-03-11T19:34:51
| 175,071,275
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 974
|
java
|
package ua.levelup;
import java.util.List;
public class BraveKnight implements Knight {
private Quest quest;
private String knightName;
private Sword sword;
private List<Damsel> damselList;
BraveKnight(Quest quest){
this.quest = quest;
this.damselList = null;
}
public void setKnightName(String knightName) {
this.knightName = knightName;
}
public void setSword(Sword sword) {
this.sword = sword;
}
@Override
public List<Damsel> getDamselList() {
return this.damselList;
}
@Override
public void embarkOnQuest() {
this.quest.embark();
}
@Override
public void appearingOnTheScene(){
System.out.println("I'm knight. My name is " + this.knightName +
".\nMy sword is " + sword.getLength() + " feets long.\n");
}
@Override
public void lastScene(){
System.out.println("The knight was buried like a hero\n");
}
}
|
[
"iskander0119@gmail.com"
] |
iskander0119@gmail.com
|
fc67331c9f13aafd6fed1402fbc02ca58d2674a8
|
4ca1ee4b61510e5c1002f5039ff123ec487c6dd1
|
/appng-core/src/main/java/org/appng/core/security/signing/SignatureWrapper.java
|
62d6073e5a61c705c89ee8b5732d4ca91e80ff6f
|
[
"Apache-2.0"
] |
permissive
|
appNG/appng
|
014f417f83e30e65a75f503393373b119f285277
|
98a4874cdae6b74986d53ffd3773027523adb914
|
refs/heads/appng-1.26.x
| 2023-09-01T03:37:15.040991
| 2023-08-29T09:43:16
| 2023-08-29T09:43:16
| 95,534,270
| 39
| 18
|
Apache-2.0
| 2023-09-12T21:12:17
| 2017-06-27T08:13:25
|
Java
|
UTF-8
|
Java
| false
| false
| 1,356
|
java
|
/*
* Copyright 2011-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.appng.core.security.signing;
/**
* A simple wrapper class for the index, the signature and the client certificate
*
* @author Matthias Müller
*/
public class SignatureWrapper {
private byte[] index;
private byte[] signature;
private byte[] cert;
public SignatureWrapper() {
}
public byte[] getIndex() {
return index;
}
public void setIndex(byte[] index) {
this.index = index;
}
public byte[] getSignature() {
return signature;
}
public void setSignature(byte[] signature) {
this.signature = signature;
}
public boolean isValid() {
return null != signature && null != index;
}
public byte[] getCert() {
return cert;
}
public void setCert(byte[] cert) {
this.cert = cert;
}
}
|
[
"matthias.mueller@appng.org"
] |
matthias.mueller@appng.org
|
b601cada0dfef4b9516d06ed5cb69854b1a459ea
|
7c4c2011d97d6f2ad81a2a74fc50e34b409b9779
|
/Java/coursera/arrays_lists_structured_data/week_one/commonWords.java
|
8cf32c7f0b0d7f15f2871350ec50f465202c5bae
|
[
"MIT"
] |
permissive
|
juhuyoon/codeLibrary
|
f001982baa94bc12bae8f40d2411ae97c1966337
|
4a964a2d326772659715f9fdd807a91f480642f8
|
refs/heads/master
| 2023-01-11T07:25:24.651877
| 2020-07-23T03:23:38
| 2020-07-23T03:23:38
| 121,058,856
| 14
| 18
| null | 2023-01-03T15:39:12
| 2018-02-10T22:12:00
|
Java
|
UTF-8
|
Java
| false
| false
| 1,703
|
java
|
import edu.duke.*;
public class CommonWords {
/*
* Opening a file resource to read the contents and returning the most common
* word.
*/
public String[] getCommon() {
FileResource resource = new FileResource("data/common.txt");
String[] common = new String[20];
int index = 0;
for (String s : resource.words()) {
common[index] = s;
index += 1;
}
return common;
}
public int indexOf(String[] list, String word) {
for (int k = 0; k < list.length; k++) {
if (list[k].equals(word)) {
return k;
}
}
return -1;
}
/*
* Counting the occurrences of common words.
*/
public void countWords(FileResource resource, String[] common, int[] counts) {
for (String word : resource.words()) {
word = word.toLowerCase();
int index = indexOf(common, word);
if (index != -1) {
counts[index] += 1;
}
}
}
void countShakespeare() {
String[] plays = { "caesar.txt", "errors.txt", "hamlet.txt", "likeit.txt", "macbeth.txt", "romeo.txt" };
// String[] plays = {"small.txt"};
String[] common = getCommon();
int[] counts = new int[common.length];
for (int k = 0; k < plays.length; k++) {
FileResource resource = new FileResource("data/" + plays[k]);
countWords(resource, common, counts);
System.out.println("done with " + plays[k]);
}
for (int k = 0; k < common.length; k++) {
System.out.println(common[k] + "\t" + counts[k]);
}
}
}
|
[
"juhuyoon@yahoo.com"
] |
juhuyoon@yahoo.com
|
fddf470ddda67b398dc80f6e9deed4fe7418da22
|
20645b984308f6644d097fdae820389ab79a3084
|
/workspace_ehotel/[InterfaceAppeHotelWAIJsoinIntercon]/src/com/elcom/eodapp/media/common/eServiceSub.java
|
d7300eb8d84babab27ac1b7837eb65806b18b243
|
[] |
no_license
|
elcomthien/source
|
d314a09c317ea10a2cc057f897c9117263690994
|
b2cbb7dec061eb3d037d98b9f134ab6dc45216a8
|
refs/heads/master
| 2021-09-16T23:37:40.547101
| 2018-06-26T02:48:06
| 2018-06-26T02:48:06
| 109,084,993
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 903
|
java
|
package com.elcom.eodapp.media.common;
public class eServiceSub {
int menuId;
String menuName;
String urlImage;
String urlBg;
String urlIcon;
String ilevel;
public String getIlevel() {
return ilevel;
}
public void setIlevel(String ilevel) {
this.ilevel = ilevel;
}
public int getMenuId() {
return menuId;
}
public void setMenuId(int menuId) {
this.menuId = menuId;
}
public String getMenuName() {
return menuName;
}
public void setMenuName(String menuName) {
this.menuName = menuName;
}
public String getUrlImage() {
return urlImage;
}
public void setUrlImage(String urlImage) {
this.urlImage = urlImage;
}
public String getUrlBg() {
return urlBg;
}
public void setUrlBg(String urlBg) {
this.urlBg = urlBg;
}
public String getUrlIcon() {
return urlIcon;
}
public void setUrlIcon(String urlIcon) {
this.urlIcon = urlIcon;
}
}
|
[
"32834285+app-core@users.noreply.github.com"
] |
32834285+app-core@users.noreply.github.com
|
5005b54f6148cb72cbbdab1d1dbfdfb91eede3e5
|
5f4afbc92a72bd847b8aa9ae95f9be9d706ad7d8
|
/commons/src/main/java/com/westangel/common/bean/user/TDoctorMinInfo.java
|
202837630dfb5ec5732808e99aecbddb2725f72f
|
[] |
no_license
|
331491512/esz
|
dfc13ba9e142ab1cbacc92cd0bf1b55fec2a05a1
|
8edd10a74b75d36d3963d2ae64602d02ba548b43
|
refs/heads/master
| 2021-04-06T20:31:45.968785
| 2018-03-16T02:56:36
| 2018-03-16T02:56:36
| 125,451,748
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,068
|
java
|
/**
* <b>项目名:</b>易随诊<br/>
* <b>包名:</b>com.esuizhen.cloudservice.user.bean<br/>
* <b>文件名:</b>DeviceInfo.java<br/>
* <b>版本信息:</b><br/>
* <b>日期:</b>2015年12月3日-上午11:54:01<br/>
* <b>Copyright (c)</b> 2015西部天使公司-版权所有<br/>
*
*/
package com.westangel.common.bean.user;
import java.io.Serializable;
/**
* @ClassName: TDoctorMinInfo
* @Description: 医生最简信息
* @author YYCHEN
* @date 2016年04月05日 下午17:26:01
*/
public class TDoctorMinInfo implements Serializable {
private static final long serialVersionUID = 1L;
//
private Long id;
//医生ID
private Long doctorId;
//医生姓名
private String trueName;
public Long getDoctorId() {
return doctorId;
}
public void setDoctorId(Long doctorId) {
this.doctorId = doctorId;
}
public String getTrueName() {
return trueName;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setTrueName(String trueName) {
this.trueName = trueName;
}
}
|
[
"zhuguo@qgs-china.com"
] |
zhuguo@qgs-china.com
|
f746fed9e10069e01ac282c6f5f04c3c3fbffefb
|
4d1e07a45f541e451c229ac4c41b44e7483e1a01
|
/src/com/MobileBankingSystem/main/BankingSystem.java
|
0fce523287b8563b113a7c99eecf8d4e599b49f1
|
[] |
no_license
|
msegeya/MobileBankingSystemProject
|
a026529ab2f60080eef2b6aabe47731f76c81130
|
598fd2029cac8f33cbdfdb43adb83858c121fbc0
|
refs/heads/master
| 2020-12-03T02:30:15.510891
| 2015-11-26T02:52:45
| 2015-11-26T02:52:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,591
|
java
|
package com.MobileBankingSystem.main;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import com.MobileBankingSystem.customer.Customer;
import com.MobileBankingSystem.customer.Customer_Member;
import com.MobileBankingSystem.info.Customer_Info;
import com.MobileBankingSystem.ui.BankingSystem_UI;
import com.MobileBankingSystem.ui.Management;
// BankingSystem
public class BankingSystem {
public ArrayList<Customer> members;
public static void main(String[] args) {
// TODO Auto-generated method stub
int menu_select_num;
BankingSystem_UI banking_system_ui = new BankingSystem_UI();
Scanner scanner = new Scanner(System.in);
while(true)
{
banking_system_ui.customer_menu();
menu_select_num = scanner.nextInt();
switch(menu_select_num){
case 1: new Management();
break;
case 2: new Management();
break;
case 3:
System.exit(0);
default:
System.out.println("�뜝�룞�삕�샇�뜝�룞�삕 �뜝�뙥紐뚯삕�뜝�뙃琉꾩삕�뜝�떦�뀲�룞�삕�뜝�떦�뙋�삕. �뜝�뙐�룞�삕�뜝�뙃琉꾩삕�뜝�룞�삕�뜝�뙇�눦�삕�뜝�룞�삕.");
break;
}
}
}
public BankingSystem(){
members = new ArrayList<Customer>();
members.add(new Customer_Member("1", "1"));
members.add(new Customer_Member("2", "2"));
// members.add(new Customer_Nonmember("01046190225","1"));
// System.out.println(members.size());
// System.out.println(Arrays.asList(members));
}
}
|
[
"bit-user@bit"
] |
bit-user@bit
|
57e64676ba8ae5c1bbb10c437646644e6ff362da
|
a2e6605b95fcf9eec63f19a76e697c5ead1275fe
|
/Week_03/NIO-HomeWork/client/src/main/java/pers/cocoadel/client/netty/DefaultHttpClientHandler.java
|
e928d22f377972e99ad2572cfabd9fd1877becf3
|
[] |
no_license
|
cocoZwwang/JAVA-000
|
d13f8c9f81d363c6f5b29aa23baf099076630c37
|
a8017eb33628dec1069965c8ae4e9c6e8796910f
|
refs/heads/main
| 2023-03-05T01:52:42.771882
| 2021-02-20T12:13:47
| 2021-02-20T12:13:47
| 305,645,082
| 1
| 0
| null | 2020-10-20T08:45:09
| 2020-10-20T08:45:08
| null |
UTF-8
|
Java
| false
| false
| 1,420
|
java
|
package pers.cocoadel.client.netty;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.codec.http.*;
import io.netty.util.CharsetUtil;
public class DefaultHttpClientHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET,"/");
request.headers()
.set(HttpHeaderNames.CONTENT_TYPE, "text/plain;charset=UTF-8")
//开启长连接
.set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE)
//设置传递请求内容的长度
.set(HttpHeaderNames.CONTENT_LENGTH, request.content().readableBytes());
//发送数据
ctx.writeAndFlush(request);
}
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
FullHttpResponse response = (FullHttpResponse) msg;
ByteBuf content = response.content();
String s = content.toString(CharsetUtil.UTF_8);
System.out.println("返回内容:" + s);
// ctx.close();
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
ctx.close();
}
}
|
[
"zwwang_cool@163.com"
] |
zwwang_cool@163.com
|
f0d079447fe63131c7731f0dd92b8b66fcee834b
|
c8ca6930710424f69c29e6ce664e4bac415af948
|
/plugins/org.jkiss.dbeaver.model.sourcecode/src/org/jkiss/dbeaver/model/sourcecode/GeneratorSourceCode.java
|
ac113bc0ce8843af68ea82b682f56e92c1a8d3ad
|
[] |
no_license
|
ljincheng/dbeaver-sourcecode
|
a8b820dbaa16dbf63a4da56a82744285f5cca6ae
|
08449a5fdfcbddce39bbbf6ecf4ee022f44cc4c1
|
refs/heads/master
| 2022-12-15T23:04:15.807646
| 2020-09-14T03:03:25
| 2020-09-14T03:03:25
| 282,782,505
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,074
|
java
|
package org.jkiss.dbeaver.model.sourcecode;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.jkiss.code.NotNull;
import org.jkiss.dbeaver.DBException;
import org.jkiss.dbeaver.model.DBPScriptObject;
import org.jkiss.dbeaver.model.DBPScriptObjectExt;
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.dbeaver.model.sourcecode.registry.SourceCodeGenerator;
import org.jkiss.dbeaver.model.sql.SQLConstants;
import org.jkiss.dbeaver.model.sql.generator.SQLGenerator;
import org.jkiss.dbeaver.model.struct.DBStructUtils;
import org.jkiss.dbeaver.model.struct.rdb.DBSTable;
import org.jkiss.dbeaver.utils.GeneralUtils;
import org.jkiss.utils.CommonUtils;
public abstract class GeneratorSourceCode extends SourceCodeGenerator<DBPScriptObject> {
@Override
public void run(DBRProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
boolean allTables = true;
List<DBSTable> tableList = new ArrayList<>();
for (DBPScriptObject object : objects) {
if (!(object instanceof DBSTable)) {
allTables = false;
break;
} else {
tableList.add((DBSTable) object);
}
}
if (!allTables) {
super.run(monitor);
return;
}
StringBuilder sql = new StringBuilder(100);
Map<String, Object> options = new HashMap<>();
addOptions(options);
try {
generateTableListCode(monitor, sql, tableList, options);
} catch (DBException e) {
throw new InvocationTargetException(e);
}
result = sql.toString().trim();
}
public abstract void generateTableListCode(@NotNull DBRProgressMonitor monitor, @NotNull StringBuilder sql, @NotNull List<DBSTable> tablesOrViews, Map<String, Object> options) throws DBException;
}
|
[
"ljincheng@126.com"
] |
ljincheng@126.com
|
ae5def54a5f02b4d2e88eee4d7c6fa6eee8aef44
|
5db30d963b870f9b202007d6a4904b97f38fe4b5
|
/app/src/main/java/cn/com/startai/socket/sign/scm/bean/TimingTempHumiData.java
|
5b11b2895c774c68c34c405e14a808bedad34467
|
[] |
no_license
|
GuoqiangSun/Socket
|
e4e47bcd1d882554e8062a439adc30d8127bd80e
|
07076b2932fe9ef0d0241201f45713dff1f3adac
|
refs/heads/master
| 2020-03-29T18:35:09.424752
| 2019-11-07T04:14:25
| 2019-11-07T04:14:25
| 150,221,753
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,514
|
java
|
package cn.com.startai.socket.sign.scm.bean;
import org.json.JSONException;
import org.json.JSONObject;
import cn.com.startai.socket.sign.scm.util.SocketSecureKey;
/**
* author: Guoqiang_Sun
* date : 2018/7/3 0003
* desc :
*/
public class TimingTempHumiData {
public String mac;
public boolean result;
// 温度 还是湿度
public byte type;
public void setTypeIsTemp() {
type = SocketSecureKey.Util.getTemperature();
}
public boolean isTemp() {
return SocketSecureKey.Util.isTemperature(type);
}
public boolean isHumi() {
return SocketSecureKey.Util.isHumidity(type);
}
/**
* 模式
*/
public byte model;
public void setModel(byte model) {
this.model = model;
}
public void setModelIsHot() {
this.model = SocketSecureKey.Model.ALARM_LIMIT_UP;
}
public boolean modelIsHot() {
return SocketSecureKey.Util.isLimitUp(model);
}
public void setModelIsCode() {
this.model = SocketSecureKey.Model.ALARM_LIMIT_DOWN;
}
public boolean modelIsCode() {
return SocketSecureKey.Util.isLimitDown(model);
}
public byte confirm;
public byte id;
public boolean on;
public boolean startup;
public int week;
public int alarmValue;
public void setAlarmValue(int alarmValue) {
this.alarmValue = alarmValue;
}
@Override
public String toString() {
return " id:" + id
+ " confirm:" + confirm
+ " startHour:" + startHour
+ " startMinute:" + startMinute
+ " endHour:" + endHour
+ " endMinute:" + endMinute
+ " on :" + on
+ " onIntervalHour:" + onIntervalHour
+ " onIntervalMinute:" + onIntervalMinute
+ " offIntervalHour:" + offIntervalHour
+ " offIntervalMinute:" + offIntervalMinute
+ " startup:" + startup
+ " model:" + model
+ " alarmValue:" + alarmValue;
}
// "time": "21:25",
// "time2": "23:25",
// "id": 1, // day 2 night
// "state": false // true启动
// "week": 5, // 10进制转换成二进制00000101表示
// // 周三、周一
// "onCycle": "01:01", // 开机时间间隔
// "offCycle": "00:01",
// "alarmValue": 25, // 目标温度
// "currentValue": 20, // 实时温度,
// "mode": 1 // 制热 2 制冷
public JSONObject toJsonObj() {
JSONObject mObj = new JSONObject();
try {
mObj.put("time", onTime);
mObj.put("time2", offTime);
mObj.put("id", id);
mObj.put("state", startup);
mObj.put("week", week);
mObj.put("onCycle", onIntervalTime);
mObj.put("offCycle", offIntervalTime);
mObj.put("alarmValue", alarmValue);
mObj.put("model", model);
} catch (JSONException e) {
e.printStackTrace();
}
return mObj;
}
public int startHour;
public int startMinute;
public String onTime;
/**
* 保存
*/
public static final int STATE_CONFIRM = 0x01;
/**
* 删除
*/
public static final int STATE_DELETE = 0x02;
public void setStateIsConfirm() {
this.state = STATE_CONFIRM;
}
public boolean stateIsConfirm() {
return (state == STATE_CONFIRM);
}
public void setStateIsDelete() {
this.state = STATE_DELETE;
}
public boolean stateIsDelete() {
return (state == STATE_DELETE);
}
public void setOnTime(String onTime) {
this.onTime = onTime;
}
/**
* 保存 删除
*/
public byte state;
public void setOnTimeSplit(String onTime) {
this.onTime = onTime;
if (this.onTime == null) {
this.startHour = this.startMinute = 0;
return;
}
String[] split = this.onTime.replaceAll(" ", "").split(":");
if (split.length >= 1) {
String s = split[0].trim();
try {
this.startHour = Integer.parseInt(s);
} catch (Exception e) {
this.startHour = 0;
}
}
if (split.length >= 2) {
String s = split[1].trim();
try {
this.startMinute = Integer.parseInt(s);
} catch (Exception e) {
this.startMinute = 0;
}
}
}
public int endHour;
public int endMinute;
public String offTime;
public void setOffTime(String offTime) {
this.offTime = offTime;
}
public void setOffTimeSplit(String offTime) {
this.offTime = offTime;
if (this.offTime == null) {
this.endHour = this.endMinute = 0;
return;
}
String[] split = this.offTime.replaceAll(" ", "").split(":");
if (split.length >= 1) {
String s = split[0].trim();
try {
this.endHour = Integer.parseInt(s);
} catch (Exception e) {
this.endHour = 0;
}
}
if (split.length >= 2) {
String s = split[1].trim();
try {
this.endMinute = Integer.parseInt(s);
} catch (Exception e) {
this.endMinute = 0;
}
}
}
public int onIntervalHour;
public int onIntervalMinute;
public String onIntervalTime;
public void setOnIntervalTime(String onIntervalTime) {
this.onIntervalTime = onIntervalTime;
if (this.onIntervalTime == null) {
this.onIntervalHour = this.onIntervalMinute = 0;
return;
}
String[] split = this.onIntervalTime.replaceAll(" ", "").split(":");
if (split.length >= 1) {
String s = split[0].trim();
try {
this.onIntervalHour = Integer.parseInt(s);
} catch (Exception e) {
this.onIntervalHour = 0;
}
}
if (split.length >= 2) {
String s = split[1].trim();
try {
this.onIntervalMinute = Integer.parseInt(s);
} catch (Exception e) {
this.onIntervalMinute = 0;
}
}
}
public int offIntervalHour;
public int offIntervalMinute;
public String offIntervalTime;
public void setOffIntervalTime(String offIntervalTime) {
this.offIntervalTime = offIntervalTime;
if (this.offIntervalTime == null) {
this.offIntervalHour = this.offIntervalMinute = 0;
return;
}
String[] split = this.offIntervalTime.replaceAll(" ", "").split(":");
if (split.length >= 1) {
String s = split[0].trim();
try {
this.offIntervalHour = Integer.parseInt(s);
} catch (Exception e) {
this.offIntervalHour = 0;
}
}
if (split.length >= 2) {
String s = split[1].trim();
try {
this.offIntervalMinute = Integer.parseInt(s);
} catch (Exception e) {
this.offIntervalMinute = 0;
}
}
}
}
|
[
"2481288068@qq.com"
] |
2481288068@qq.com
|
8b71617cb483c5fe6f03fe36ae76c79c20dc16e9
|
aaccdc6095fe8111f7c6a0d6368f3da893cff573
|
/src/com/freedom/search/admin/dao/RoleDAO.java
|
6d93e28378354a4a93e1a0bae93d2e718e2744e7
|
[] |
no_license
|
hecj/solr-search
|
b08daf1b579684c90fe42c29ef9629a9b9adf1a2
|
65a7fb89ea0c5663a47c6b223ccce5fb1d3a2b41
|
refs/heads/master
| 2021-01-01T16:31:16.937843
| 2015-03-19T08:43:25
| 2015-03-19T08:43:25
| 27,591,848
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 141
|
java
|
package com.freedom.search.admin.dao;
import com.freedom.search.admin.entity.LzRole;
public interface RoleDAO extends BaseDAO<LzRole> {
}
|
[
"275070023@qq.com"
] |
275070023@qq.com
|
d5606482b26a967a00b53ac4a2de92661ed5f98b
|
f128faaf396d547183a8c1d640276409a1896b7c
|
/11architect-stage-15-mycat/分布式事务/tcc-demo/src/main/java/com/example/tccdemo/db131/model/User.java
|
a77a0023d0ec75cce8e3f752b4a6080b08fefa1f
|
[] |
no_license
|
wjphappy90/JiaGou
|
0708a2c4d2cf0a1fda4a46f09e728cf855a938dc
|
367fc5e7101cb42d99686027494bb15f73558147
|
refs/heads/master
| 2023-01-05T22:04:59.604537
| 2020-10-28T12:15:34
| 2020-10-28T12:15:34
| 307,754,947
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,369
|
java
|
package com.example.tccdemo.db131.model;
public class User {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column t_user.id
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column t_user.username
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
private String username;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column t_user.sex
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
private Integer sex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column t_user.age
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
private Integer age;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column t_user.update_count
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
private Integer updateCount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column t_user.version
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
private Integer version;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column t_user.id
*
* @return the value of t_user.id
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column t_user.id
*
* @param id the value for t_user.id
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column t_user.username
*
* @return the value of t_user.username
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public String getUsername() {
return username;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column t_user.username
*
* @param username the value for t_user.username
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column t_user.sex
*
* @return the value of t_user.sex
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public Integer getSex() {
return sex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column t_user.sex
*
* @param sex the value for t_user.sex
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public void setSex(Integer sex) {
this.sex = sex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column t_user.age
*
* @return the value of t_user.age
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public Integer getAge() {
return age;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column t_user.age
*
* @param age the value for t_user.age
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public void setAge(Integer age) {
this.age = age;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column t_user.update_count
*
* @return the value of t_user.update_count
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public Integer getUpdateCount() {
return updateCount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column t_user.update_count
*
* @param updateCount the value for t_user.update_count
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public void setUpdateCount(Integer updateCount) {
this.updateCount = updateCount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column t_user.version
*
* @return the value of t_user.version
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public Integer getVersion() {
return version;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column t_user.version
*
* @param version the value for t_user.version
*
* @mbg.generated Mon Oct 14 23:03:13 CST 2019
*/
public void setVersion(Integer version) {
this.version = version;
}
}
|
[
"981146457@qq.com"
] |
981146457@qq.com
|
15c3076e67f8cb8ca97ee013be5f8fd4d121e1b0
|
19b463e046a46db4131ca866537a131ac6acb150
|
/qpalx-elearning-domain/src/main/java/com/quaza/solutions/qpalx/elearning/domain/lms/curriculum/QPalXEMicroLessonActivity.java
|
959bdfe45c497b68c3bb459673b755b594609bf9
|
[] |
no_license
|
Quaza-Solutions/quaza-solutions-elearning-qpalx
|
49f913b4eea3d02f7097cdb40e972ae027bad17e
|
421501cda3cb1aa59f11e4d9a330f4b3bf6c2236
|
refs/heads/master
| 2020-04-04T07:30:09.545713
| 2016-12-11T04:55:29
| 2016-12-11T04:55:29
| 50,192,947
| 0
| 0
| null | 2016-12-11T04:55:29
| 2016-01-22T16:26:47
|
Java
|
UTF-8
|
Java
| false
| false
| 7,695
|
java
|
package com.quaza.solutions.qpalx.elearning.domain.lms.curriculum;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import javax.persistence.*;
/**
* @author manyce400
*/
@Entity
@Table(name="QPalXEMicroLessonActivity")
public class QPalXEMicroLessonActivity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name="ID", nullable=false)
private Long id;
@Column(name="MicroLessonActivityName", nullable=false, length=255)
private String microLessonActivityName;
@Column(name="MicroLessonActivityDescription", nullable=false, length=255)
private String microLessonActivityDescription;
// Tracks and records the learning activity taken/engaged in as part of this micro lesson activity
@Column(name="MicroLessonActivityType", nullable=false, length=10)
@Enumerated(EnumType.STRING)
private MicroLessonActivityTypeE microLessonActivityType;
// Always fetch this Eager as we always need the parent QPalXELesson always avaialable
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "QPalXEMicroLessonID", nullable = false)
private QPalXEMicroLesson qPalXEMicroLesson;
// Provides information on Media Content that is associated with this activity.
@Embedded
private ELearningMediaContent eLearningMediaContent;
// DateTime that the ELearning Media Content was uploaded on the QPalX platform.
@Column(name="EntryDate", nullable=true)
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentDateTime")
private DateTime entryDate;
// IF set to true then this QPalXEMicroLesson is currently active
@Column(name="MicroLessonActivityActive", nullable = true, columnDefinition = "TINYINT", length = 1)
@Type(type = "org.hibernate.type.NumericBooleanType")
private boolean microLessonActivityActive;
public QPalXEMicroLessonActivity() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getMicroLessonActivityName() {
return microLessonActivityName;
}
public void setMicroLessonActivityName(String microLessonActivityName) {
this.microLessonActivityName = microLessonActivityName;
}
public String getMicroLessonActivityDescription() {
return microLessonActivityDescription;
}
public void setMicroLessonActivityDescription(String microLessonActivityDescription) {
this.microLessonActivityDescription = microLessonActivityDescription;
}
public MicroLessonActivityTypeE getMicroLessonActivityType() {
return microLessonActivityType;
}
public void setMicroLessonActivityType(MicroLessonActivityTypeE microLessonActivityType) {
this.microLessonActivityType = microLessonActivityType;
}
public QPalXEMicroLesson getqPalXEMicroLesson() {
return qPalXEMicroLesson;
}
public void setqPalXEMicroLesson(QPalXEMicroLesson qPalXEMicroLesson) {
this.qPalXEMicroLesson = qPalXEMicroLesson;
}
public ELearningMediaContent geteLearningMediaContent() {
return eLearningMediaContent;
}
public void seteLearningMediaContent(ELearningMediaContent eLearningMediaContent) {
this.eLearningMediaContent = eLearningMediaContent;
}
public DateTime getEntryDate() {
return entryDate;
}
public void setEntryDate(DateTime entryDate) {
this.entryDate = entryDate;
}
public boolean isMicroLessonActivityActive() {
return microLessonActivityActive;
}
public void setMicroLessonActivityActive(boolean microLessonActivityActive) {
this.microLessonActivityActive = microLessonActivityActive;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
QPalXEMicroLessonActivity that = (QPalXEMicroLessonActivity) o;
return new EqualsBuilder()
.append(microLessonActivityActive, that.microLessonActivityActive)
.append(id, that.id)
.append(microLessonActivityName, that.microLessonActivityName)
.append(microLessonActivityDescription, that.microLessonActivityDescription)
.append(microLessonActivityType, that.microLessonActivityType)
.append(qPalXEMicroLesson, that.qPalXEMicroLesson)
.append(eLearningMediaContent, that.eLearningMediaContent)
.append(entryDate, that.entryDate)
.isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37)
.append(id)
.append(microLessonActivityName)
.append(microLessonActivityDescription)
.append(microLessonActivityType)
.append(qPalXEMicroLesson)
.append(eLearningMediaContent)
.append(entryDate)
.append(microLessonActivityActive)
.toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("id", id)
.append("microLessonActivityName", microLessonActivityName)
.append("microLessonActivityDescription", microLessonActivityDescription)
.append("microLessonActivityType", microLessonActivityType)
.append("qPalXEMicroLesson", qPalXEMicroLesson)
.append("eLearningMediaContent", eLearningMediaContent)
.append("entryDate", entryDate)
.append("microLessonActivityActive", microLessonActivityActive)
.toString();
}
public static final Builder builder() {
return new Builder();
}
public static final class Builder {
private final QPalXEMicroLessonActivity qPalXEMicroLessonActivity = new QPalXEMicroLessonActivity();
public Builder microLessonActivityName(String microLessonActivityName) {
qPalXEMicroLessonActivity.microLessonActivityName = microLessonActivityName;
return this;
}
public Builder microLessonActivityDescription(String microLessonActivityDescription) {
qPalXEMicroLessonActivity.microLessonActivityDescription = microLessonActivityDescription;
return this;
}
public Builder microLessonActivityType(MicroLessonActivityTypeE microLessonActivityType) {
qPalXEMicroLessonActivity.microLessonActivityType = microLessonActivityType;
return this;
}
public Builder qPalXEMicroLesson(QPalXEMicroLesson qPalXEMicroLesson) {
qPalXEMicroLessonActivity.qPalXEMicroLesson = qPalXEMicroLesson;
return this;
}
public Builder eLearningMediaContent(ELearningMediaContent eLearningMediaContent) {
qPalXEMicroLessonActivity.eLearningMediaContent = eLearningMediaContent;
return this;
}
public Builder entryDate(DateTime entryDate) {
qPalXEMicroLessonActivity.entryDate = entryDate;
return this;
}
public Builder microLessonActivityActive(boolean microLessonActivityActive) {
qPalXEMicroLessonActivity.microLessonActivityActive = microLessonActivityActive;
return this;
}
public QPalXEMicroLessonActivity build() {
return qPalXEMicroLessonActivity;
}
}
}
|
[
"fallon12"
] |
fallon12
|
b403ca5aee5e921b4133b6613a320eb3858c4fdf
|
d182f1250a8da7df336bb7df0c9b4c9a01d5fa0d
|
/Java DB Advanced/Exercise/HibernateCodeFirstEntityRelations/src/main/java/vehicles/entities/CargoShip.java
|
a291e32291451cc57d6658c274541d5226342851
|
[] |
no_license
|
abdullahsalem72/Java
|
fc4f301ba927a859670951a5f18efcaff4880d65
|
29ad94f841d4f4fca24800b17f5a13f6aabb0184
|
refs/heads/master
| 2021-05-05T23:24:54.326025
| 2017-11-20T22:20:35
| 2017-11-20T22:20:35
| 116,716,608
| 1
| 0
| null | 2018-01-08T19:07:47
| 2018-01-08T19:07:47
| null |
UTF-8
|
Java
| false
| false
| 1,235
|
java
|
package vehicles.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
/**
* Created by Hristo Skipernov on 23/07/2017.
*/
@Entity
@Table(name = "cargo_ships")
@PrimaryKeyJoinColumn(name = "vehicle_id")
public class CargoShip extends Ship {
@Column(name = "max_load_kilograms")
private double maxLoadKilograms;
public CargoShip() {
}
public CargoShip(String manufacturer, double price, double maxSpeed, int numberOfEngines, String engineType, double tankCapacity, String nationality, String captainName, int sizeOfShipCrew, double maxLoadKilograms) {
super(manufacturer, price, maxSpeed, numberOfEngines, engineType, tankCapacity, nationality, captainName, sizeOfShipCrew);
this.maxLoadKilograms = maxLoadKilograms;
}
public double getMaxLoadKilograms() {
return this.maxLoadKilograms;
}
public void setMaxLoadKilograms(double maxLoadKilograms) {
this.maxLoadKilograms = maxLoadKilograms;
}
@Override
public String toString() {
return "CargoShip{" +
"maxLoadKilograms=" + maxLoadKilograms +
'}';
}
}
|
[
"ico_skipernov@abv.bg"
] |
ico_skipernov@abv.bg
|
d2a2dfd762bd76f11dddb96c4b8c94fcf5911556
|
58ce44ff5fcc13be7876dd903e700b5be989ab19
|
/JavaWork/Lec01_Hello/src/com/lec/java/hello/Hello.java
|
16e4f3be4ee37c4758c5ccefd5ace5f00f4fe323
|
[] |
no_license
|
binna/full-stack
|
eb78836414a8d60d5dc5e78f5abc57b9348af48d
|
9e6990e1ce7eff8a515603b1cd71b25660b40f80
|
refs/heads/main
| 2023-04-23T08:50:52.441080
| 2021-05-15T15:33:05
| 2021-05-15T15:33:05
| 320,798,523
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 787
|
java
|
package com.lec.java.hello;
/*
* Java 첫 프로그램.
* [학습목표]
* - 기본 출력 : println(), print()
* - 주석 (Comment)
*/
public class Hello {
public static void main(String[] args) {
System.out.println("Hello Java!!"); //한 줄 주석 : line comment
System.out.println("안녕하세요"); //println()은 화면 출력하고 줄바꿈.
System.out.println();
System.out.println(1 + 2);
System.out.println("1" + "2");
System.out.println('A' + 'B');
System.out.println('1' + 2);
System.out.println();
System.out.println('J' + "ava");
//print()는 출력하고 줄바꿈 안함
System.out.print("자바");
System.out.print("프레임워크");
System.out.println("풀스택 과정");
System.out.println("2020-03-16");
}
}
|
[
"every5116@naver.com"
] |
every5116@naver.com
|
b65ebc365fff3bc240c0195acae22b43bc9164c7
|
85cfc652459ca2f015aa8c8dc55240721632cee0
|
/bin/platform/ext/platformservices/src/de/hybris/platform/product/impl/GlobalDiscountRowPrepareInterceptor.java
|
01bc2a2ff653e0bb74fef70c653e28e2d0854149
|
[] |
no_license
|
varshadhamal/Hybris-test
|
43e5479b9909e41e6276dfde6b4f4ff1cdae9b0e
|
a29c6090680110ab733e2077772c9c477d497df6
|
refs/heads/master
| 2020-03-18T06:31:01.940494
| 2018-05-22T11:58:12
| 2018-05-22T11:58:12
| 134,400,503
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,746
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the license agreement you entered into with SAP Hybris.
*/
package de.hybris.platform.product.impl;
import de.hybris.platform.europe1.model.GlobalDiscountRowModel;
import de.hybris.platform.europe1.model.PDTRowModel;
import de.hybris.platform.servicelayer.interceptor.InterceptorContext;
import de.hybris.platform.servicelayer.interceptor.InterceptorException;
import de.hybris.platform.servicelayer.interceptor.PrepareInterceptor;
/**
* {@link PrepareInterceptor} for the {@link GlobalDiscountRowModel}.
*/
public class GlobalDiscountRowPrepareInterceptor extends PDTRowPrepareInterceptor
{
@Override
public void onPrepare(final Object model, final InterceptorContext ctx) throws InterceptorException
{
if (model instanceof GlobalDiscountRowModel)
{
final GlobalDiscountRowModel gdModel = (GlobalDiscountRowModel) model;
if (ctx.isNew(gdModel))
{
gdModel.setProduct(null);
gdModel.setPg(null);
}
super.handleUserAndUserGroup((GlobalDiscountRowModel) model, ctx);
super.updateUserMatchQualifier((GlobalDiscountRowModel) model, ctx);
}
}
@Override
protected void updateProductMatchQualifier(final PDTRowModel prModel, final InterceptorContext ctx)
{
// do nothing here
// Global discount rows do not have a product and no product group, so this is a no-op.
}
@Override
protected void updateCatalogVersion(final PDTRowModel pdtModel)
{
// do nothing here
}
}
|
[
"varsha.d.saste@accenture.com"
] |
varsha.d.saste@accenture.com
|
b9df68d7c3324f1e24dde6b71351d15291bda381
|
2cd64269df4137e0a39e8e67063ff3bd44d72f1b
|
/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/type/TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl.java
|
412fef36c5a61cce200184c9b20fef930846d9e5
|
[
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] |
permissive
|
commercetools/commercetools-sdk-java-v2
|
a8703f5f8c5dde6cc3ebe4619c892cccfcf71cb8
|
76d5065566ff37d365c28829b8137cbc48f14df1
|
refs/heads/main
| 2023-08-14T16:16:38.709763
| 2023-08-14T11:58:19
| 2023-08-14T11:58:19
| 206,558,937
| 29
| 13
|
Apache-2.0
| 2023-09-14T12:30:00
| 2019-09-05T12:30:27
|
Java
|
UTF-8
|
Java
| false
| false
| 1,527
|
java
|
package com.commercetools.api.predicates.query.type;
import com.commercetools.api.predicates.query.*;
public class TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl {
public TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl() {
}
public static TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl of() {
return new TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl();
}
public StringComparisonPredicateBuilder<TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl> action() {
return new StringComparisonPredicateBuilder<>(
BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")),
p -> new CombinationQueryPredicate<>(p, TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl::of));
}
public StringComparisonPredicateBuilder<TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl> fieldName() {
return new StringComparisonPredicateBuilder<>(
BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldName")),
p -> new CombinationQueryPredicate<>(p, TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl::of));
}
public StringCollectionPredicateBuilder<TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl> keys() {
return new StringCollectionPredicateBuilder<>(
BinaryQueryPredicate.of().left(new ConstantQueryPredicate("keys")),
p -> new CombinationQueryPredicate<>(p, TypeChangeLocalizedEnumValueOrderActionQueryBuilderDsl::of));
}
}
|
[
"automation@commercetools.com"
] |
automation@commercetools.com
|
68f6391a132c3260360fd7df90c1e70351393a48
|
a1425aa8500f75b3d2552503e2b15cf41128b76e
|
/demo/src/main/java/tech/riemann/demo/controller/dictionary/GroupController.java
|
95b64818f4f1ef9563312be5703da62d6173e65d
|
[
"Apache-2.0"
] |
permissive
|
nakeyxie/nutz-spring-boot-starter
|
1034442462709fe6e49773c5a3b2e219e53e5f43
|
19462641a09962639f6d73978023566d1dacfd83
|
refs/heads/master
| 2023-08-02T03:03:44.483407
| 2021-09-30T06:47:41
| 2021-09-30T06:47:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,889
|
java
|
package tech.riemann.demo.controller.dictionary;
import java.util.Optional;
import org.nutz.dao.Chain;
import org.nutz.dao.Cnd;
import org.nutz.spring.boot.service.entity.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import club.zhcs.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import tech.riemann.demo.entity.dictionary.Group;
import tech.riemann.demo.service.dictionary.GroupService;
/**
* <p>
* 码本分组 前端控制器
* </p>
*
* @author Kerbores
* @since 2021-08-12
*/
@RestController
@Api(value = "Group", tags = {"码本分组模块"})
public class GroupController {
@Autowired
GroupService groupService;
@GetMapping("groups")
@ApiOperation("分页加载字典分组")
public Result<Pagination<Group>> search(
@ApiParam("页面") @RequestParam(value = "page", required = false, defaultValue = "1") int page,
@ApiParam("分页大小") @RequestParam(value = "size", required = false, defaultValue = "15") int pageSize,
@ApiParam("状态筛选 true(启用)/false(禁用)/null(不过滤)") @RequestParam(value = "state", required = false) Boolean state,
@ApiParam("搜索关键词") @RequestParam(value = "key", required = false) String key) {
return Result.success(groupService.searchByKeyAndPage(Optional.ofNullable(key)
.orElse(""),
page,
pageSize,
Cnd.NEW().andEX("disabled", "=", state),
Group.Fields.key,
Group.Fields.name,
Group.Fields.description)
.addParam("key", key));
}
@GetMapping("group/{id}")
@ApiOperation("获取指定字典分组")
public Result<Group> get(
@ApiParam("字典分组id") @PathVariable("id") long id) {
return Result.success(groupService.fetch(id));
}
@PostMapping("group")
@ApiOperation("新增字典分组")
public Result<Group> add(
@ApiParam("字典分组数据") @RequestBody Group group) {
return Result.success(groupService.save(group));
}
@PutMapping("group")
@ApiOperation("根据id更新字典分组")
public Result<Void> edit(
@ApiParam("字典分组数据") @RequestBody Group group) {
return groupService.update(group, "name", "description") ? Result.success() : Result.fail("更新分组失败");
}
@DeleteMapping("group/{id}")
@ApiOperation("删除字典分组")
public Result<Void> delete(
@ApiParam("字典分组id") @PathVariable("id") long id) {
return groupService.update(Chain.make(Group.Fields.disabled, true), Cnd.where("id", "=", id)) == 1 ? Result.success() : Result.fail("删除分组失败");
}
}
|
[
"kerbores@gmail.com"
] |
kerbores@gmail.com
|
014e6bd9d0a55b14de3c0c9fc0e164915dbf175f
|
a27e299027da8448854e976714bb7d90c5b4f7dc
|
/javaRush/projects/JavaRushTasks/1.JavaSyntax/src/com/javarush/task/task08/task0826/Solution.java
|
b4708106e875c2be228e415b9d835cd5e5b3e1e5
|
[] |
no_license
|
blaec/JavaRush
|
5951be4ac0c0208cc5e136f7a511f7519381bd1b
|
bc5004cf4c29e8ef9e5ea74b3730349ab3042f1c
|
refs/heads/master
| 2021-01-01T16:59:11.760609
| 2017-09-22T20:30:21
| 2017-09-22T20:30:21
| 97,763,099
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,074
|
java
|
package com.javarush.task.task08.task0826;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
/*
Пять победителей
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] array = new int[20];
for (int i = 0; i < array.length; i++) {
array[i] = Integer.parseInt(reader.readLine());
}
sort(array);
System.out.println(array[0]);
System.out.println(array[1]);
System.out.println(array[2]);
System.out.println(array[3]);
System.out.println(array[4]);
}
public static void sort(int[] array) {
//напишите тут ваш код
Arrays.sort(array);
int[] tempArray = new int[array.length];
for (int i = 0; i < array.length; i++) {
tempArray[i] = array[array.length-i-1];
}
System.arraycopy(tempArray,0,array,0,tempArray.length);
}
}
|
[
"odeskonst@yandex.ru"
] |
odeskonst@yandex.ru
|
cb4114c9edcd76f1b8348375dfd3ab06a00aed15
|
868bf400c0143e6a13c9dc2804726449816e4b68
|
/CTCI/Cracking-the-Coding-Interview_solutions-master/Chp. 01 - Arrays and Strings/__Intro_ArrayList/WelcomeWithThreeMessages.java
|
139f5fa58dc35cb99496d64f09b150b99670e713
|
[] |
no_license
|
EngrDevDom/Java-Codes
|
7d39efd8fc7f5d9589c34f98adaa71fc923308b9
|
ab6934cbe5a3e0330b64cca53738180675a1f74a
|
refs/heads/master
| 2022-12-02T08:14:58.380076
| 2020-08-11T16:02:18
| 2020-08-11T16:02:18
| 286,783,520
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 242
|
java
|
public class WelcomeWithThreeMessages {
public static void main(String[] args) {
System.out.println("Programming is fun!");
System.out.println("Fundamentals First.");
System.out.println("Problem Driven.");
}
}
|
[
"60880034+EngrDevDom@users.noreply.github.com"
] |
60880034+EngrDevDom@users.noreply.github.com
|
833d87196bd182741aee01b9026730a2bc79eea9
|
c35500eea5b33131d911c05de69ec14184eda679
|
/soa-client/src/main/java/org/ebayopensource/turmeric/runtime/common/impl/internal/g11n/GlobalIdEntryImpl.java
|
61df7e56fbb003d80519cf01fb2c37f01df3d963
|
[
"Apache-2.0"
] |
permissive
|
ramananandh/MyPublicRepo
|
42b9fd2c1fce41fd0de9b828531aa4ada2c75185
|
686129c380f438f0858428cc19c2ebc7f5e6b13f
|
refs/heads/master
| 2020-06-06T17:49:41.818826
| 2011-08-29T06:34:07
| 2011-08-29T06:34:07
| 1,922,268
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,131
|
java
|
/*******************************************************************************
* Copyright (c) 2006-2010 eBay 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
*******************************************************************************/
package org.ebayopensource.turmeric.runtime.common.impl.internal.g11n;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.ebayopensource.turmeric.runtime.common.g11n.GlobalIdEntry;
import org.ebayopensource.turmeric.runtime.common.g11n.LocaleId;
import org.ebayopensource.turmeric.runtime.common.g11n.LocaleInfo;
import org.ebayopensource.turmeric.runtime.common.types.SOAConstants;
public class GlobalIdEntryImpl implements GlobalIdEntry {
public static final LocaleInfo FALLBACK_LOCALE = new LocaleInfo("en-US", "US", true, false, false);
private final Map<String, LocaleInfo> m_locales;
private final String m_id;
private final boolean m_isDefault;
private LocaleInfo m_defaultLocale = FALLBACK_LOCALE;
public GlobalIdEntryImpl(String id, Map<String, LocaleInfo> locales) {
if (id == null || locales == null) {
throw new NullPointerException();
}
m_id = id;
m_locales = locales;
if (id.equals(SOAConstants.DEFAULT_GLOBAL_ID)) { // TODO have a real xml element for this?
m_isDefault = true;
} else {
m_isDefault = false;
}
for (LocaleInfo locale : locales.values()) {
if (locale.isDefault()) {
m_defaultLocale = locale;
break;
}
}
}
public Collection<LocaleInfo> getAllLocales() {
return Collections.unmodifiableCollection(m_locales.values());
}
public LocaleInfo getDefaultLocale() {
return m_defaultLocale;
}
public LocaleInfo getLocale(LocaleId id) {
return m_locales.get(id.toString());
}
/**
* @return the m_isDefault
*/
public boolean isDefaultGlobalId() {
return m_isDefault;
}
public String getId() {
return m_id;
}
public GlobalIdEntryImpl copy() {
// LocaleInfo is immutable so we just create shallow copy of the hashmap.
Map<String, LocaleInfo> outLocales = new HashMap<String, LocaleInfo>(m_locales);
GlobalIdEntryImpl result = new GlobalIdEntryImpl(m_id, outLocales);
return result;
}
public void dump(StringBuffer sb) {
sb.append("global Id: " + m_id + '\n');
List<String> locales = new ArrayList<String> (m_locales.keySet());
Collections.sort(locales);
for (String key : locales) {
LocaleInfo locale = m_locales.get(key);
//for (LocaleInfo locale: m_locales.values()) {
sb.append(" Locale: lang=" + locale.getLanguage() + " terr=" + locale.getTerritory());
if (locale.isDefault()) {
sb.append(" default=true");
}
if (locale.isDisabledInRegistry()) {
sb.append(" disabledInRegistry=true");
}
if (locale.isDisabledByPlatform()) {
sb.append(" disabledByPlatform=true");
}
sb.append('\n');
}
}
}
|
[
"anav@ebay.com"
] |
anav@ebay.com
|
16650589160b7f4346450918742d24ce0e6aa8e4
|
269592748cf52fdb60b04d655b6096bc99ac19d3
|
/job_1/myMap/src/com/map/MapTest1.java
|
89ae5946ab76f2c7c5b4ba56fe3608e73ac30be4
|
[] |
no_license
|
xcm31725/xcm
|
bdc4f510473206fed1399cab09de9ebfd1790fa6
|
90e6c31bf0dd6cf50b0961b394e7ddc786fb73c8
|
refs/heads/master
| 2021-09-15T23:16:50.943304
| 2018-06-12T14:22:35
| 2018-06-12T14:22:35
| 115,909,747
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,340
|
java
|
package com.map;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/*
* itheima:基础班,就业班
* 基础班:01 xcm;02 xgd
* 就业班:01 zc; 02 sd
*
* 学校Map
* 基础班 基础班学生List
* 就业班 就业班学生List
* Map嵌套Collection
* */
public class MapTest1 {
public static void main(String[] args) {
Map<String,List<Student>> itheima = new HashMap<String,List<Student>>();
//基础班学生List
List<Student> base = new ArrayList<Student>();
base.add(new Student("01","xcm"));
base.add(new Student("02","xgd"));
//就业班学生List
List<Student> job = new ArrayList<Student>();
job.add(new Student("01","zc"));
job.add(new Student("02","sd"));
itheima.put("基础班", base);
itheima.put("就业班", job);
//遍历学校Map,查看有多少班级和对应的学生
//获取所有Entry对象
Set<Map.Entry<String,List<Student>>> entrys = itheima.entrySet();
for (Map.Entry<String, List<Student>> entry : entrys) {
//获取班级
String key = entry.getKey();
System.out.println("班级信息:"+key);
//获取包含了学生对象List
List<Student> value = entry.getValue();
for (Student student : value) {
System.out.println(student);
}
}
}
}
|
[
"xltfn0317@gmail.com"
] |
xltfn0317@gmail.com
|
37192f5deb49fb015fa0464297597ca8ff3d70c7
|
6b568c6f42c8909b30bb69e992c6527695c1fd15
|
/dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xls/exporter/XLSExportPipeThread.java
|
02e551bbd9c165c751396c10ccfc1f831b12333c
|
[
"BSD-3-Clause"
] |
permissive
|
onaio/dhis2
|
7f156f2b015b7b3683527c044c9ec6fd52c9bc66
|
2b4da26297dd6b27fd75babc743cf6b3be14aec0
|
refs/heads/master
| 2020-04-28T15:09:21.763055
| 2013-12-20T17:13:46
| 2013-12-20T17:14:38
| 15,343,468
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,662
|
java
|
package org.hisp.dhis.importexport.xls.exporter;
/*
* Copyright (c) 2004-2013, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import java.util.zip.ZipOutputStream;
import jxl.write.WritableWorkbook;
import org.hibernate.SessionFactory;
import org.hisp.dhis.importexport.ExportParams;
import org.hisp.dhis.importexport.XLSConverter;
import org.hisp.dhis.system.process.OpenSessionThread;
import org.hisp.dhis.system.util.ExcelUtils;
import org.hisp.dhis.system.util.StreamUtils;
/**
* @author Dang Duy Hieu
* @version $Id$
*/
public class XLSExportPipeThread
extends OpenSessionThread
{
private ZipOutputStream outputStream;
public void setOutputStream( ZipOutputStream outputStream )
{
this.outputStream = outputStream;
}
private ExportParams exportParams;
public void setExportParams( ExportParams exportParams )
{
this.exportParams = exportParams;
}
private XLSConverter dataElementConverter;
public void setDataElementConverter( XLSConverter dataElementConverter )
{
this.dataElementConverter = dataElementConverter;
}
private XLSConverter indicatorConverter;
public void setIndicatorConverter( XLSConverter indicatorConverter )
{
this.indicatorConverter = indicatorConverter;
}
private XLSConverter organisationUnitHierarchyConverter;
public void setOrganisationUnitHierarchyConverter( XLSConverter organisationUnitHierarchyConverter )
{
this.organisationUnitHierarchyConverter = organisationUnitHierarchyConverter;
}
private XLSConverter organisationUnitConverter;
public void setOrganisationUnitConverter( XLSConverter organisationUnitConverter )
{
this.organisationUnitConverter = organisationUnitConverter;
}
// -------------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------------
public XLSExportPipeThread( SessionFactory sessionFactory )
{
super( sessionFactory );
}
// -------------------------------------------------------------------------
// Thread implementation
// -------------------------------------------------------------------------
@Override
public void doRun()
{
int sheetIndex = 0;
WritableWorkbook workbook = null;
try
{
workbook = ExcelUtils.openWorkbook( outputStream );
dataElementConverter.write( workbook, exportParams, sheetIndex++ );
indicatorConverter.write( workbook, exportParams, sheetIndex++ );
organisationUnitConverter.write( workbook, exportParams, sheetIndex++ );
organisationUnitHierarchyConverter.write( workbook, exportParams, sheetIndex++ );
ExcelUtils.writeAndCloseWorkbook( workbook );
}
finally
{
StreamUtils.closeZipEntry( outputStream );
StreamUtils.closeOutputStream( outputStream );
}
}
}
|
[
"peter@helioid.com"
] |
peter@helioid.com
|
d99aa8f6934d6f17d61899a780f0d671744f882f
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/profiletab/presenter/C14475w.java
|
03ab0acb7e1500438fae914f721765bc260b3560
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 631
|
java
|
package com.tinder.profiletab.presenter;
import com.tinder.profile.target.C16125c;
import com.tinder.profile.target.ControllaTarget;
/* renamed from: com.tinder.profiletab.presenter.w */
public class C14475w {
/* renamed from: a */
public static void m55271a(C14474d c14474d, ControllaTarget controllaTarget) {
c14474d.f45818a = controllaTarget;
c14474d.m55249a();
c14474d.m55259b();
c14474d.m55260c();
c14474d.m55261d();
}
/* renamed from: a */
public static void m55270a(C14474d c14474d) {
c14474d.m55262e();
c14474d.f45818a = new C16125c();
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
057088d355dd4d670d1d28c75430342cdbe90f78
|
34bc5ddf57babe8b1045e1274a7a8a49636cf85a
|
/app/src/androidTest/java/kk/techbytecare/roomdb/ExampleInstrumentedTest.java
|
ea096f557ec444b80b352f43d06752c3dc83ca81
|
[] |
no_license
|
UncagedMist/RoomDB
|
bc84f0988ad629043326cce7e03fda3bc4bb2a04
|
c6243cd86284388ef2e1bc8e34dfd3ae70a93d9a
|
refs/heads/master
| 2020-07-15T23:56:54.017640
| 2019-09-05T08:23:05
| 2019-09-05T08:23:05
| 205,676,820
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 760
|
java
|
package kk.techbytecare.roomdb;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("kk.techbytecare.roomdb", appContext.getPackageName());
}
}
|
[
"Kundan_kk52@outlook.com"
] |
Kundan_kk52@outlook.com
|
12a701fd8b3b85b3501f6f008efe16192ad771f5
|
34b713d69bae7d83bb431b8d9152ae7708109e74
|
/common/src/main/java/org/broadleafcommerce/common/sandbox/service/SandBoxServiceImpl.java
|
a337484bdd6244d01cd878843a04af83e5c4f376
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
sinotopia/BroadleafCommerce
|
d367a22af589b51cc16e2ad094f98ec612df1577
|
502ff293d2a8d58ba50a640ed03c2847cb6369f6
|
refs/heads/BroadleafCommerce-4.0.x
| 2021-01-23T14:14:45.029362
| 2019-07-26T14:18:05
| 2019-07-26T14:18:05
| 93,246,635
| 0
| 0
| null | 2017-06-03T12:27:13
| 2017-06-03T12:27:13
| null |
UTF-8
|
Java
| false
| false
| 6,369
|
java
|
/*
* #%L
* BroadleafCommerce Open Admin Platform
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.broadleafcommerce.common.sandbox.service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.broadleafcommerce.common.sandbox.dao.SandBoxDao;
import org.broadleafcommerce.common.sandbox.domain.SandBox;
import org.broadleafcommerce.common.sandbox.domain.SandBoxType;
import org.broadleafcommerce.common.util.TransactionUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Resource;
@Service(value = "blSandBoxService")
public class SandBoxServiceImpl implements SandBoxService {
private static final Log LOG = LogFactory.getLog(SandBoxServiceImpl.class);
@Resource(name = "blSandBoxDao")
protected SandBoxDao sandBoxDao;
@Override
public SandBox retrieveSandBoxById(Long sandboxId) {
return sandBoxDao.retrieve(sandboxId);
}
@Override
public List<SandBox> retrieveAllSandBoxes() {
return sandBoxDao.retrieveAllSandBoxes();
}
@Override
public List<SandBox> retrieveSandBoxesByType(SandBoxType type) {
return sandBoxDao.retrieveSandBoxesByType(type);
}
@Override
public SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId) {
return sandBoxDao.retrieveUserSandBoxForParent(authorId, parentSandBoxId);
}
@Override
public SandBox retrieveSandBoxManagementById(Long sandBoxId) {
return sandBoxDao.retrieveSandBoxManagementById(sandBoxId);
}
@Override
public List<SandBox> retrievePreviewSandBoxes(Long authorId) {
List<SandBox> returnList = new ArrayList<SandBox>();
List<SandBox> authorBoxes = sandBoxDao.retrieveSandBoxesForAuthor(authorId, SandBoxType.USER);
List<SandBox> approvalBoxes = sandBoxDao.retrieveSandBoxesByType(SandBoxType.APPROVAL);
List<SandBox> defaultBoxes = sandBoxDao.retrieveSandBoxesByType(SandBoxType.DEFAULT);
List<SandBox> candidateBoxes = new ArrayList<SandBox>();
candidateBoxes.addAll(approvalBoxes);
candidateBoxes.addAll(defaultBoxes);
returnList.addAll(authorBoxes);
for (SandBox cb : candidateBoxes) {
boolean match = false;
for (SandBox authorBox : authorBoxes) {
if (authorBox.getId().equals(cb.getId()) ||
(authorBox.getParentSandBox() != null && authorBox.getParentSandBox().getId().equals(cb.getId()))) {
match = true;
}
}
if (!match) {
returnList.add(cb);
}
}
return returnList;
}
@Override
public SandBox retrieveUserSandBox(Long authorId, Long overrideSandBoxId, String sandBoxName) {
SandBox userSandbox;
if (overrideSandBoxId != null) {
userSandbox = retrieveSandBoxById(overrideSandBoxId);
} else {
userSandbox = retrieveSandBox(sandBoxName, SandBoxType.USER);
if (userSandbox == null) {
userSandbox = createSandBox(sandBoxName, SandBoxType.USER);
}
}
return userSandbox;
}
@Override
public Map<Long, String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds) {
return sandBoxDao.retrieveAuthorNamesForSandBoxes(sandBoxIds);
}
@Override
public synchronized SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType) {
return sandBoxDao.createSandBox(sandBoxName, sandBoxType);
}
@Override
public synchronized SandBox createUserSandBox(Long authorId, SandBox approvalSandBox) {
if (checkForExistingSandbox(SandBoxType.USER, approvalSandBox.getName(), authorId)) {
return sandBoxDao.createUserSandBox(authorId, approvalSandBox);
}
return sandBoxDao.retrieveNamedSandBox(SandBoxType.USER, approvalSandBox.getName(), authorId);
}
@Override
public synchronized SandBox createDefaultSandBox() {
return sandBoxDao.createDefaultSandBox();
}
@Override
public SandBox retrieveSandBox(String sandBoxName, SandBoxType sandBoxType) {
return sandBoxDao.retrieveNamedSandBox(sandBoxType, sandBoxName);
}
@Override
@Deprecated
public List<SandBox> retrieveAllUserSandBoxes(Long authorId) {
return sandBoxDao.retrieveAllUserSandBoxes(authorId);
}
@Override
@Transactional(TransactionUtils.DEFAULT_TRANSACTION_MANAGER)
public void archiveChildSandboxes(Long parentSandBoxId) {
List<SandBox> childSandBoxes = retrieveChildSandBoxesByParentId(parentSandBoxId);
for (SandBox sandbox : childSandBoxes) {
sandbox.setArchived('Y');
sandBoxDao.merge(sandbox);
}
}
public List<SandBox> retrieveChildSandBoxesByParentId(Long parentSandBoxId) {
return sandBoxDao.retrieveChildSandBoxesByParentId(parentSandBoxId);
}
@Override
public boolean checkForExistingApprovalSandboxWithName(String sandboxName) {
return checkForExistingSandbox(SandBoxType.APPROVAL, sandboxName, null);
}
@Override
public boolean checkForExistingSandbox(SandBoxType sandBoxType, String sandboxName, Long authorId) {
SandBox sb = sandBoxDao.retrieveNamedSandBox(sandBoxType, sandboxName, authorId);
return sb == null;
}
}
|
[
"sinosie7en@gmail.com"
] |
sinosie7en@gmail.com
|
cc604768fc5d1b04b6bf53cd8cc859b13d952ac3
|
bd19e3c94a76ec8bb338d52acad99e1baa9d099f
|
/TestUtil/src/com/example/testutil/data/DefaultDataBaseActivity.java
|
2e1a773976c6774a526c4d7247a16f367363baee
|
[] |
no_license
|
evrimulgen/UtilXX
|
685095e76d44ab7eb35fb2aee1a907ad79a9392b
|
b000e7a62acd1181a72f6dbf15b40c0d616b7d17
|
refs/heads/master
| 2021-01-12T02:02:35.360784
| 2017-01-08T15:50:00
| 2017-01-08T15:50:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,071
|
java
|
package com.example.testutil.data;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ListView;
import com.example.testutil.R;
import com.example.testutil.data.adapter.DataAdapter;
import com.example.testutil.data.dao.default_.DBManager;
import com.example.testutil.data.entity.Student;
import com.xuexiang.app.BaseActivity;
import com.xuexiang.util.data.db.ormlite.default_.DBService;
public class DefaultDataBaseActivity extends BaseActivity implements OnClickListener{
private DBService<Student> mDatabaseService;
private DataAdapter adapter;
private List<Student> data = new ArrayList<Student>();
private ListView lvData;
@Override
public void onCreateActivity() {
setContentView(R.layout.activity_database);
initTitleBar(TAG);
lvData = (ListView) findViewById(R.id.lvData);
mDatabaseService = DBManager.getInstance(this).getDataBase(Student.class);
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.add:
Student student = new Student();
student.setUsername("xuexiang");
student.setSex("男");
student.setAge(23);
// student.setScore(100);
try {
mDatabaseService.insert(student);
} catch (SQLException e) {
e.printStackTrace();
}
break;
case R.id.query:
try {
data = mDatabaseService.queryAllData();
adapter = new DataAdapter(this, data, mDatabaseService);
lvData.setAdapter(adapter);
} catch (IOException e) {
e.printStackTrace();
}
break;
case R.id.update:
try {
mDatabaseService.updateDataByColumn("username", "xuexiang", "username", "xxxx");
} catch (SQLException e1) {
e1.printStackTrace();
}
break;
case R.id.delete:
try {
mDatabaseService.deleteAll();
} catch (SQLException e) {
e.printStackTrace();
}
break;
default:
break;
}
}
}
|
[
"xuexiangjys@163.com"
] |
xuexiangjys@163.com
|
70fcd020ef162630cc7b4242209538c085a7ba54
|
d884455a9fbc20e77d72535546e6b5c455a8a4fb
|
/SearchEngine/src/com/progdan/searchengine/analysis/LetterTokenizer.java
|
b1a031af3a3ade44dc98e31def6426aca9c0bbbe
|
[] |
no_license
|
maksymmykytiuk/EDMIS
|
53634f4d071829a805f58efd497eba011f4e2c03
|
4dff1ca6f68cede51ee9f6076d1641fd1c5711fd
|
refs/heads/master
| 2021-05-28T20:03:38.711307
| 2013-02-08T18:21:20
| 2013-02-08T18:21:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,407
|
java
|
package com.progdan.searchengine.analysis;
/**
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.Reader;
/** A LetterTokenizer is a tokenizer that divides text at non-letters. That's
to say, it defines tokens as maximal strings of adjacent letters, as defined
by java.lang.Character.isLetter() predicate.
Note: this does a decent job for most European languages, but does a terrible
job for some Asian languages, where words are not separated by spaces. */
public class LetterTokenizer extends CharTokenizer {
/** Construct a new LetterTokenizer. */
public LetterTokenizer(Reader in) {
super(in);
}
/** Collects only characters which satisfy
* {@link Character#isLetter(char)}.*/
protected boolean isTokenChar(char c) {
return Character.isLetter(c);
}
}
|
[
"progdan@gmail.com"
] |
progdan@gmail.com
|
b2c681287e806bd9eaa69a344575a24792b1789c
|
f2f53bd7a97e815053b17c0a3885bbe0e5f9a02f
|
/annotation/src/main/java/com/xh/annotation/BindStatusColor.java
|
78f1bd85a1e917dd90e78caa497f5d74b686e219
|
[] |
no_license
|
huiliang2liu/frame
|
543f57477ccb52e75d4634ad88ee11dad8927035
|
8b27ab000bc5c077f9c462ba7418ec91a914236e
|
refs/heads/master
| 2020-03-23T18:21:47.915966
| 2018-07-26T14:53:01
| 2018-07-26T14:53:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 412
|
java
|
package com.xh.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 2018/7/24 16:23
* instructions:
* author:liuhuiliang email:825378291@qq.com
**/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.CLASS)
public @interface BindStatusColor {
String color() default "";
}
|
[
"825378291@qq.com"
] |
825378291@qq.com
|
37c9d952c7e0551540257b7f567f5f16f27d88bd
|
91e72ef337a34eb7e547fa96d99fca5a4a6dc89e
|
/subjects/commons-cli/results/evosuite/1564584217/0003/evosuite-tests/org/apache/commons/cli/DefaultParser_ESTest_scaffolding.java
|
d77167e4228c1272bbe694425824800bebc96c56
|
[] |
no_license
|
STAMP-project/descartes-amplification-experiments
|
deda5e2f1a122b9d365f7c76b74fb2d99634aad4
|
a5709fd78bbe8b4a4ae590ec50704dbf7881e882
|
refs/heads/master
| 2021-06-27T04:13:17.035471
| 2020-10-14T08:17:05
| 2020-10-14T08:17:05
| 169,711,716
| 0
| 0
| null | 2020-10-14T08:17:07
| 2019-02-08T09:32:43
|
Java
|
UTF-8
|
Java
| false
| false
| 4,885
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Jul 31 14:48:27 GMT 2019
*/
package org.apache.commons.cli;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class DefaultParser_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.cli.DefaultParser";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("user.dir", "/home/ubuntu/oscar/descartes-evosuite/subjects/commons-cli/results/evosuite/1564584217/0003");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DefaultParser_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.cli.UnrecognizedOptionException",
"org.apache.commons.cli.CommandLineParser",
"org.apache.commons.cli.Options",
"org.apache.commons.cli.Option$Builder",
"org.apache.commons.cli.MissingOptionException",
"org.apache.commons.cli.DefaultParser",
"org.apache.commons.cli.AmbiguousOptionException",
"org.apache.commons.cli.AlreadySelectedException",
"org.apache.commons.cli.ParseException",
"org.apache.commons.cli.OptionValidator",
"org.apache.commons.cli.OptionGroup",
"org.apache.commons.cli.CommandLine",
"org.apache.commons.cli.Option",
"org.apache.commons.cli.MissingArgumentException",
"org.apache.commons.cli.Util"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(DefaultParser_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.apache.commons.cli.DefaultParser",
"org.apache.commons.cli.Options",
"org.apache.commons.cli.CommandLine",
"org.apache.commons.cli.Util",
"org.apache.commons.cli.ParseException",
"org.apache.commons.cli.UnrecognizedOptionException",
"org.apache.commons.cli.Option",
"org.apache.commons.cli.OptionValidator",
"org.apache.commons.cli.MissingOptionException"
);
}
}
|
[
"oscarlvp@gmail.com"
] |
oscarlvp@gmail.com
|
61ee1f12935064588186cc3d567b64d0513db982
|
746572ba552f7d52e8b5a0e752a1d6eb899842b9
|
/JDK8Source/src/main/java/com/sun/corba/se/PortableActivationIDL/ActivatorOperations.java
|
920390bb8541eb4f2c85eab39d77cab826f58ad9
|
[] |
no_license
|
lobinary/Lobinary
|
fde035d3ce6780a20a5a808b5d4357604ed70054
|
8de466228bf893b72c7771e153607674b6024709
|
refs/heads/master
| 2022-02-27T05:02:04.208763
| 2022-01-20T07:01:28
| 2022-01-20T07:01:28
| 26,812,634
| 7
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,378
|
java
|
/***** Lobxxx Translate Finished ******/
package com.sun.corba.se.PortableActivationIDL;
/**
* com/sun/corba/se/PortableActivationIDL/ActivatorOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u45/3627/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
* Thursday, April 30, 2015 12:42:08 PM PDT
*/
public interface ActivatorOperations
{
/** A new ORB started server registers itself with the Activator
/* <p>
*/
void registerServer (String serverId, com.sun.corba.se.PortableActivationIDL.ServerProxy serverObj) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered;
/** A server is shutting down that was started by this activator.
* Complete termination of the server is detected by the death of the
* process implementing the server.
* <p>
* 实现服务器的进程的死亡检测到服务器的完全终止。
*
*/
void serverGoingDown (String serverId);
/** Called whenever an ORB instance is created. This registers
* the transport endpoints and the ORB proxy callback object.
* Note that we cannot detect when an ORB shuts down, although
* all of the POA shutdowns should still be reported.
* <p>
* 传输端点和ORB代理回调对象。请注意,我们无法检测到ORB何时关闭,虽然所有POA关机仍应报告。
*
*/
void registerORB (String serverId, String orbId, com.sun.corba.se.PortableActivationIDL.ORBProxy orb, com.sun.corba.se.PortableActivationIDL.EndPointInfo[] endPointInfo) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint, com.sun.corba.se.PortableActivationIDL.ORBAlreadyRegistered;
/** Construct or find an ORBD object template corresponding to the
* server's object template and return it. Called whenever a
* persistent POA is created.
* <p>
* 服务器的对象模板并返回它。每当创建持久POA时调用。
*
*/
org.omg.PortableInterceptor.ObjectReferenceTemplate registerPOA (String serverId, String orbId, org.omg.PortableInterceptor.ObjectReferenceTemplate poaTemplate);
/** Called whenever a POA is destroyed.
/* <p>
*/
void poaDestroyed (String serverId, String orbId, org.omg.PortableInterceptor.ObjectReferenceTemplate poaTemplate);
/** If the server is not running, start it up. This is allowed
* whether or not the server has been installed.
* <p>
* 无论服务器是否已安装。
*
*/
void activate (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerAlreadyActive, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown;
/** If the server is running, shut it down
/* <p>
*/
void shutdown (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotActive, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered;
/** Invoke the server install hook. If the server is not
* currently running, this method will activate it.
* <p>
* 当前运行,这个方法会激活它。
*
*/
void install (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown, com.sun.corba.se.PortableActivationIDL.ServerAlreadyInstalled;
/** Invoke the server uninstall hook. If the server is not
* currently running, this method will activate it.
* After this hook completes, the server may still be running.
* <p>
* 当前运行,这个方法会激活它。此挂接完成后,服务器可能仍在运行。
*
*/
void uninstall (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown, com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalled;
/** list active servers
/* <p>
*/
String[] getActiveServers ();
/** list all registered ORBs for a server
/* <p>
*/
String[] getORBNames (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered;
/** Find the server template that corresponds to the ORBD's
* adapter id.
* <p>
* 适配器标识。
*/
org.omg.PortableInterceptor.ObjectReferenceTemplate lookupPOATemplate (String serverId, String orbId, String[] orbAdapterName);
} // interface ActivatorOperations
|
[
"919515134@qq.com"
] |
919515134@qq.com
|
ddd68e3cb70cac2e7f5aa8c80f9d3a88b41c648c
|
2672cc2d80ec6b504e1731a5a786ed4e4392e20c
|
/javarmdjt/javacrmdjtslb_51146/java_source/sl/.metadata/.plugins/org.eclipse.core.resources/.history/11/e0032a54f8e2001e1d3bfd2a5179ddab
|
011fc4e363d612bf7b2d4a3952bbf6db440aea79
|
[
"MIT"
] |
permissive
|
zuoyuegit/Java-From_beginner_to_master_CN
|
5b072886ae262cef1170ef838c9ac70d86f45c5c
|
2904a71fa6227c70df996be38d63d93def873896
|
refs/heads/master
| 2021-09-25T21:44:05.536151
| 2018-10-25T22:25:51
| 2018-10-25T22:25:51
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 5,651
|
package com.lzw.iframe;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.event.*;
import com.lzw.Item;
import com.lzw.dao.Dao;
import com.lzw.dao.model.TbKucun;
public class JiaGeTiaoZheng extends JInternalFrame {
private TbKucun kcInfo;
private JLabel guiGe;
private JTextField kuCunJinE;
private JTextField kuCunShuLiang;
private JTextField danJia;
private JComboBox shangPinMingCheng;
private void updateJinE() {
Double dj = Double.valueOf(danJia.getText());
Integer sl = Integer.valueOf(kuCunShuLiang.getText());
kuCunJinE.setText((dj * sl) + "");
}
public JiaGeTiaoZheng() {
super();
addInternalFrameListener(new InternalFrameAdapter() {
public void internalFrameActivated(final InternalFrameEvent e) {
DefaultComboBoxModel mingChengModel = (DefaultComboBoxModel) shangPinMingCheng
.getModel();
mingChengModel.removeAllElements();
List list = Dao.getKucunInfos();
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
List element = (List) iterator.next();
Item item=new Item();
item.setId((String) element.get(0));
item.setName((String) element.get(1));
mingChengModel.addElement(item);
}
}
});
setMaximizable(true);
setIconifiable(true);
setClosable(true);
getContentPane().setLayout(new GridBagLayout());
setTitle("价格调整");
setBounds(100, 100, 531, 253);
setupComponet(new JLabel("商品名称:"), 0, 0, 1, 1, false);
shangPinMingCheng = new JComboBox();
shangPinMingCheng.setPreferredSize(new Dimension(220,21));
setupComponet(shangPinMingCheng, 1, 0, 1, 1, true);
setupComponet(new JLabel("规 格:"), 2, 0, 1, 0, false);
guiGe = new JLabel();
guiGe.setForeground(Color.BLUE);
guiGe.setPreferredSize(new Dimension(130,21));
setupComponet(guiGe, 3, 0, 1, 1, true);
setupComponet(new JLabel("产 地: "), 0, 1, 1, 0, false);
final JLabel chanDi = new JLabel();
chanDi.setForeground(Color.BLUE);
setupComponet(chanDi, 1, 1, 1, 1, true);
setupComponet(new JLabel("简 称:"), 2, 1, 1, 0, false);
final JLabel jianCheng = new JLabel();
jianCheng.setForeground(Color.BLUE);
setupComponet(jianCheng, 3, 1, 1, 1, true);
setupComponet(new JLabel("包 装:"), 0, 2, 1, 0, false);
final JLabel baoZhuang = new JLabel();
baoZhuang.setForeground(Color.BLUE);
setupComponet(baoZhuang, 1, 2, 1, 1, true);
setupComponet(new JLabel("单 位:"), 2, 2, 1, 0, false);
final JLabel danWei = new JLabel();
danWei.setForeground(Color.BLUE);
setupComponet(danWei, 3, 2, 1, 1, true);
setupComponet(new JLabel("单 价:"), 0, 3, 1, 0, false);
danJia = new JTextField();
danJia.addKeyListener(new KeyAdapter() {
public void keyReleased(final KeyEvent e) {
updateJinE();
}
});
setupComponet(danJia, 1, 3, 1, 1, true);
setupComponet(new JLabel("库存数量:"), 2, 3, 1, 0, false);
kuCunShuLiang = new JTextField();
kuCunShuLiang.setEditable(false);
setupComponet(kuCunShuLiang, 3, 3, 1, 1, true);
setupComponet(new JLabel("库存金额:"), 0, 4, 1, 0, false);
kuCunJinE = new JTextField();
kuCunJinE.setEditable(false);
setupComponet(kuCunJinE, 1, 4, 1, 1, true);
final JButton okButton = new JButton();
okButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
kcInfo.setDj(Double.valueOf(danJia.getText()));
kcInfo.setKcsl(Integer.valueOf(kuCunShuLiang.getText()));
int rs = Dao.updateKucunDj(kcInfo);
if (rs > 0)
JOptionPane.showMessageDialog(getContentPane(), "价格调整完毕。",
kcInfo.getSpname() + "价格调整",
JOptionPane.QUESTION_MESSAGE);
}
});
okButton.setText("确定");
setupComponet(okButton, 1, 5, 1, 1, false);
final JButton closeButton = new JButton();
closeButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
JiaGeTiaoZheng.this.doDefaultCloseAction();
}
});
closeButton.setText("关闭");
setupComponet(closeButton, 2, 5, 1, 1, false);
shangPinMingCheng.addItemListener(new ItemListener() {
public void itemStateChanged(final ItemEvent e) {
Object selectedItem = shangPinMingCheng.getSelectedItem();
if (selectedItem == null)
return;
Item item = (Item) selectedItem;
kcInfo = Dao.getKucun(item);
if(kcInfo.getId()==null)
return;
int dj, sl;
dj = kcInfo.getDj().intValue();
sl = kcInfo.getKcsl().intValue();
chanDi.setText(kcInfo.getCd());
jianCheng.setText(kcInfo.getJc());
baoZhuang.setText(kcInfo.getBz());
danWei.setText(kcInfo.getDw());
danJia.setText(kcInfo.getDj() + "");
kuCunShuLiang.setText(kcInfo.getKcsl() + "");
kuCunJinE.setText(dj * sl + "");
guiGe.setText(kcInfo.getGg());
}
});
}
// 设置组件位置并添加到容器中
private void setupComponet(JComponent component, int gridx, int gridy,
int gridwidth, int ipadx, boolean fill) {
final GridBagConstraints gridBagConstrains = new GridBagConstraints();
gridBagConstrains.gridx = gridx;
gridBagConstrains.gridy = gridy;
if (gridwidth > 1)
gridBagConstrains.gridwidth = gridwidth;
if (ipadx > 0)
gridBagConstrains.ipadx = ipadx;
gridBagConstrains.insets = new Insets(5, 1, 3, 5);
if (fill)
gridBagConstrains.fill = GridBagConstraints.HORIZONTAL;
getContentPane().add(component, gridBagConstrains);
}
}
|
[
"specter01wj@gmail.com"
] |
specter01wj@gmail.com
|
|
4d5861bab17bfe37e98c99d129def9c8a47f71e7
|
f792281aed4a5690239468f6c94df8e44139d8e9
|
/MicroServices/hello-webclient-service/src/test/java/com/hello/client/HelloWebclientServiceApplicationTests.java
|
8372c528c65ea9a3609795e9ec1daaf21f06a50f
|
[] |
no_license
|
rahulsrivastava243/SpringBoot-MicroServices-Sync
|
2222795de82321489b96ec8269c021de8124aac6
|
2c46d969b44eedecb86cdd656b1b05eccab9c1fe
|
refs/heads/main
| 2023-01-24T03:15:04.476401
| 2020-11-27T10:11:50
| 2020-11-27T10:11:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 223
|
java
|
package com.hello.client;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class HelloWebclientServiceApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"sasubramanian_md@hotmail.com"
] |
sasubramanian_md@hotmail.com
|
d59383c1faab4fa4658d16397461f0bd2cc9e2b0
|
3bab81792c722411c542596fedc8e4b1d086c1a9
|
/src/main/java/com/gome/maven/codeInsight/completion/CompletionLocation.java
|
c454949fcba607f1d34248c6c796cbc2ff06e9cf
|
[] |
no_license
|
nicholas879110/maven-code-check-plugin
|
80d6810cc3c12a3b6c22e3eada331136e3d9a03e
|
8162834e19ed0a06ae5240b5e11a365c0f80d0a0
|
refs/heads/master
| 2021-04-30T07:09:42.455482
| 2018-03-01T03:21:21
| 2018-03-01T03:21:21
| 121,457,530
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,867
|
java
|
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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.gome.maven.codeInsight.completion;
import com.gome.maven.openapi.project.Project;
import com.gome.maven.openapi.util.Key;
import com.gome.maven.openapi.util.UserDataHolder;
import com.gome.maven.util.ProcessingContext;
/**
* @author peter
*/
public class CompletionLocation implements UserDataHolder {
private final CompletionParameters myCompletionParameters;
private final ProcessingContext myProcessingContext = new ProcessingContext();
public CompletionLocation(final CompletionParameters completionParameters) {
myCompletionParameters = completionParameters;
}
public CompletionParameters getCompletionParameters() {
return myCompletionParameters;
}
public CompletionType getCompletionType() {
return myCompletionParameters.getCompletionType();
}
public Project getProject() {
return myCompletionParameters.getPosition().getProject();
}
public ProcessingContext getProcessingContext() {
return myProcessingContext;
}
@Override
public <T> T getUserData( Key<T> key) {
return myProcessingContext.get(key);
}
@Override
public <T> void putUserData( Key<T> key, T value) {
myProcessingContext.put(key, value);
}
}
|
[
"zhangliewei@gome.com.cn"
] |
zhangliewei@gome.com.cn
|
8cc5d1e453d1142c9fa0f280222a08efe10e196a
|
5741045375dcbbafcf7288d65a11c44de2e56484
|
/reddit-decompilada/com/google/android/gms/ads/mediation/NativeAppInstallAdMapper.java
|
d922bb291ce763fac64ab664a53ca2309e1165b8
|
[] |
no_license
|
miarevalo10/ReporteReddit
|
18dd19bcec46c42ff933bb330ba65280615c281c
|
a0db5538e85e9a081bf268cb1590f0eeb113ed77
|
refs/heads/master
| 2020-03-16T17:42:34.840154
| 2018-05-11T10:16:04
| 2018-05-11T10:16:04
| 132,843,706
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 414
|
java
|
package com.google.android.gms.ads.mediation;
import com.google.android.gms.ads.formats.NativeAd.Image;
import java.util.List;
public class NativeAppInstallAdMapper extends NativeAdMapper {
public String f13784h;
public List<Image> f13785i;
public String f13786j;
public Image f13787k;
public String f13788l;
public double f13789m;
public String f13790n;
public String f13791o;
}
|
[
"mi.arevalo10@uniandes.edu.co"
] |
mi.arevalo10@uniandes.edu.co
|
c14207061a490d42134db1cc1240adc3a883dccb
|
a5d01febfd8d45a61f815b6f5ed447e25fad4959
|
/Source Code/5.5.1/sources/com/airbnb/lottie/model/content/k.java
|
4cdb541bf5a9028b460683c0cf9d29991464ca3e
|
[] |
no_license
|
kkagill/Decompiler-IQ-Option
|
7fe5911f90ed2490687f5d216cb2940f07b57194
|
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
|
refs/heads/master
| 2020-09-14T20:44:49.115289
| 2019-11-04T06:58:55
| 2019-11-04T06:58:55
| 223,236,327
| 1
| 0
| null | 2019-11-21T18:17:17
| 2019-11-21T18:17:16
| null |
UTF-8
|
Java
| false
| false
| 1,011
|
java
|
package com.airbnb.lottie.model.content;
import com.airbnb.lottie.a.a.b;
import com.airbnb.lottie.a.a.p;
import com.airbnb.lottie.model.a.h;
import com.airbnb.lottie.model.layer.a;
/* compiled from: ShapePath */
public class k implements b {
private final int index;
private final String name;
private final h nk;
public k(String str, int i, h hVar) {
this.name = str;
this.index = i;
this.nk = hVar;
}
public String getName() {
return this.name;
}
public h eH() {
return this.nk;
}
public b a(com.airbnb.lottie.h hVar, a aVar) {
return new p(hVar, aVar, this);
}
public String toString() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("ShapePath{name=");
stringBuilder.append(this.name);
stringBuilder.append(", index=");
stringBuilder.append(this.index);
stringBuilder.append('}');
return stringBuilder.toString();
}
}
|
[
"yihsun1992@gmail.com"
] |
yihsun1992@gmail.com
|
93ff3faa2aa6af654c5ddafb2aec7ca3cadf4686
|
59a28030b9bbfce8b6c7ad51a9e5cbb7aadc36b9
|
/QdmKnimeTranslator/src/main/java/edu/phema/jaxb/ihe/svs/ParenteralRoute.java
|
ff6b131df090bc05f5d2571b395b568fbb477205
|
[] |
no_license
|
PheMA/qdm-knime
|
c3970566c7fe529eefe94a9311d7beeed6d39dc8
|
fb3e2925a6cd15ebba83ba5fc95bb604a54ff564
|
refs/heads/master
| 2020-12-24T14:27:42.708153
| 2016-05-25T21:42:57
| 2016-05-25T21:42:57
| 29,319,651
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 984
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.12.15 at 03:09:44 PM CST
//
package edu.phema.jaxb.ihe.svs;
import javax.xml.bind.annotation.XmlEnum;
/**
* <p>Java class for ParenteralRoute.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ParenteralRoute">
* <restriction base="{urn:ihe:iti:svs:2008}cs">
* <enumeration value="PARENTINJ"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum ParenteralRoute {
PARENTINJ;
public String value() {
return name();
}
public static ParenteralRoute fromValue(String v) {
return valueOf(v);
}
}
|
[
"thompsow@r1001-lt-100-f.enhnet.org"
] |
thompsow@r1001-lt-100-f.enhnet.org
|
786178e3e469d794b567c547c35a7e4c62e757d9
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/ocr-api-20210707/src/main/java/com/aliyun/ocr_api20210707/models/RecognizeRollTicketRequest.java
|
1671805745e8854683431cd59d06e9c20d8b8a6a
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 892
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ocr_api20210707.models;
import com.aliyun.tea.*;
public class RecognizeRollTicketRequest extends TeaModel {
@NameInMap("Url")
public String url;
@NameInMap("body")
public java.io.InputStream body;
public static RecognizeRollTicketRequest build(java.util.Map<String, ?> map) throws Exception {
RecognizeRollTicketRequest self = new RecognizeRollTicketRequest();
return TeaModel.build(map, self);
}
public RecognizeRollTicketRequest setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return this.url;
}
public RecognizeRollTicketRequest setBody(java.io.InputStream body) {
this.body = body;
return this;
}
public java.io.InputStream getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
64bf070005f483402d69662639706a509e5f8966
|
4abab33500b1b7bdb6124a467ae05c3c083dacfd
|
/src/efungame/efg_wallet/src/main/java/com/efun/wallet/thread/btc/BtcBlockIdDispatchRunner.java
|
c4626ff8c5b31a41109b971e648c4eb23d53c7f9
|
[] |
no_license
|
easyfun/efungame
|
245a2987746c87ec5d2d9d144175abb82acd6265
|
80cde77f8c4f414798f20f5655e3bd2b66772152
|
refs/heads/master
| 2021-01-01T15:45:42.179303
| 2018-09-29T08:17:31
| 2018-09-29T08:17:31
| 97,691,286
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,303
|
java
|
package com.efun.wallet.thread.btc;
import com.efun.wallet.service.btc.BtcBlockIdDispatchInterface;
import com.efun.wallet.service.eth.EthBlockNumberDispatchInterface;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Created by Administrator on 2018/3/30.
* 获取BTC,ETH最新区块,插入区块同步记录
*/
//@Component
public class BtcBlockIdDispatchRunner implements Runnable {
private static final Logger LOGGER = LoggerFactory.getLogger(BtcBlockIdDispatchRunner.class);
@Autowired
private BtcBlockIdDispatchInterface btcBlockIdDispatchInterface;
@Override
public void run() {
while (!Thread.currentThread().isInterrupted()) {
try {
btcBlockIdDispatchInterface.run();
} catch (Exception e) {
e.printStackTrace();
LOGGER.error("btc充值分发任务执行出错.", e);
}
// 1分钟同步一次
for (int i=0; i<1*60*100; i++) {
try {
Thread.sleep(10);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
break;
}
}
}
}
}
|
[
"ywd979@foxmail.com"
] |
ywd979@foxmail.com
|
654f0185cb1858ec6ac41fe2c556858a19bd635c
|
30851c89a4cf3a616566ca41cfe3e13de1c775e3
|
/super-heroes/event-statistics/src/main/java/io/quarkus/workshop/superheroes/statistics/TopWinnerWebSocket.java
|
4f401bba3136f63af21506b50410acc9fe7d2f81
|
[
"Apache-2.0"
] |
permissive
|
joedayz/quarkus-super-heroes-workshop
|
cb04ee6801feafa88a683ce9273f0255b9e015d7
|
efecde976e3e23560fe745a1e2f7fc85b281eaa4
|
refs/heads/main
| 2023-03-16T06:15:29.957018
| 2021-03-06T22:07:03
| 2021-03-06T22:07:03
| 343,220,298
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,990
|
java
|
// tag::adocWebSocket[]
package io.quarkus.workshop.superheroes.statistics;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.subscription.Cancellable;
import org.eclipse.microprofile.reactive.messaging.Channel;
import org.jboss.logging.Logger;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.json.bind.Jsonb;
import javax.json.bind.JsonbBuilder;
import javax.websocket.OnClose;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
@ServerEndpoint("/stats/winners")
@ApplicationScoped
public class TopWinnerWebSocket {
private static final Logger LOGGER = Logger.getLogger(TopWinnerWebSocket.class);
private Jsonb jsonb;
@Inject @Channel("winner-stats")
Multi<Iterable<Score>> winners;
private final List<Session> sessions = new CopyOnWriteArrayList<>();
private Cancellable cancellable;
@OnOpen
public void onOpen(Session session) {
sessions.add(session);
}
@OnClose
public void onClose(Session session) {
sessions.remove(session);
}
@PostConstruct
public void subscribe() {
jsonb = JsonbBuilder.create();
cancellable = winners
.map(scores -> jsonb.toJson(scores))
.subscribe().with(serialized -> sessions.forEach(session -> write(session, serialized)));
}
@PreDestroy
public void cleanup() throws Exception {
cancellable.cancel();
jsonb.close();
}
private void write(Session session, String serialized) {
session.getAsyncRemote().sendText(serialized, result -> {
if (result.getException() != null) {
LOGGER.error("Unable to write message to web socket", result.getException());
}
});
}
}
// end::adocWebSocket[]
|
[
"jadiaz@farmaciasperuanas.pe"
] |
jadiaz@farmaciasperuanas.pe
|
8dca70cc3249dbff9e495334cf1a60c89bd0e755
|
74dd63d7d113e2ff3a41d7bb4fc597f70776a9d9
|
/timss-workorder/src/main/java/com/timss/workorder/service/WoDelayConfigService.java
|
6328d841fa238ec393eafd0df4d5357cf912c467
|
[] |
no_license
|
gspandy/timssBusiSrc
|
989c7510311d59ec7c9a2bab3b04f5303150d005
|
a5d37a397460a7860cc221421c5f6e31b48cac0f
|
refs/heads/master
| 2023-08-14T02:14:21.232317
| 2017-02-16T07:18:21
| 2017-02-16T07:18:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 220
|
java
|
package com.timss.workorder.service;
import com.timss.workorder.bean.WoDelayConfig;
public interface WoDelayConfigService {
WoDelayConfig queryWoDelayConfig(String delayType, String priority, String siteid);
}
|
[
"londalonda@qq.com"
] |
londalonda@qq.com
|
c9c34d6ac08b342dc7119517cbea3cf5af3c2058
|
2508d476946f199ff396ff4a361e182401a2ed71
|
/src/behavior/interpreter/demo3/ExpressionNode.java
|
df18f7a4cb7361b3585fee4b00696f43d4118be0
|
[] |
no_license
|
617076674/design-pattern
|
71edf4c04d908622e4bd0e0040de99a3318a36a0
|
cd35a031ddcaf696aeac1821d2175398aff07bc7
|
refs/heads/master
| 2020-06-10T12:56:45.839886
| 2020-03-27T08:27:55
| 2020-03-27T08:27:55
| 193,647,844
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package behavior.interpreter.demo3;
import java.util.ArrayList;
import java.util.Iterator;
public class ExpressionNode extends Node {
private ArrayList<Node> list = new ArrayList<>();
@Override
public void interpret(Context context) {
while (true) {
if (context.currentToken() == null) {
break;
} else if (context.currentToken().equals("END")) {
context.skipToken("END");
break;
} else {
Node commandNode = new CommandNode();
commandNode.interpret(context);
list.add(commandNode);
}
}
}
@Override
public void execute() {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
((Node) iterator.next()).execute();
}
}
}
|
[
"617076674@qq.com"
] |
617076674@qq.com
|
fa9bc0b63985a6c68f5232b65c846d3c2c2d04e2
|
e3780c806fdb6798abf4ad5c3a7cb49e3d05f67a
|
/src/main/java/com/hankcs/hanlp/dictionary/nr/JapanesePersonDictionary.java
|
99dbfeede5fabf19d0706ef9e5ecfde7b39c571e
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
AnyListen/HanLP
|
7e3cf2774f0980d24ecab0568ad59774232a56d6
|
58e5f6cda0b894cad156b06ac75bd397c9e26de3
|
refs/heads/master
| 2021-01-22T04:23:14.514117
| 2018-12-11T01:27:36
| 2018-12-11T01:27:36
| 125,140,795
| 1
| 1
|
Apache-2.0
| 2018-04-16T16:49:47
| 2018-03-14T02:04:04
|
Java
|
UTF-8
|
Java
| false
| false
| 5,982
|
java
|
/*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/11/12 20:17</create-date>
*
* <copyright file="JapanesePersonDictionary.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.linrunsoft.com/
* This source is subject to the LinrunSpace License. Please contact 上海林原信息科技有限公司 to get more information.
* </copyright>
*/
package com.hankcs.hanlp.dictionary.nr;
import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.collection.trie.DoubleArrayTrie;
import com.hankcs.hanlp.corpus.io.ByteArray;
import com.hankcs.hanlp.corpus.io.IOUtil;
import com.hankcs.hanlp.dictionary.BaseSearcher;
import com.hankcs.hanlp.utility.Predefine;
import java.io.*;
import java.util.LinkedList;
import java.util.Map;
import java.util.TreeMap;
import static com.hankcs.hanlp.utility.Predefine.logger;
/**
* @author hankcs
*/
public class JapanesePersonDictionary
{
static String path = HanLP.Config.JapanesePersonDictionaryPath;
static DoubleArrayTrie<Character> trie;
/**
* 姓
*/
public static final char X = 'x';
/**
* 名
*/
public static final char M = 'm';
/**
* bad case
*/
public static final char A = 'A';
static
{
long start = System.currentTimeMillis();
if (!load())
{
throw new IllegalArgumentException("日本人名词典" + path + "加载失败");
}
logger.info("日本人名词典" + HanLP.Config.PinyinDictionaryPath + "加载成功,耗时" + (System.currentTimeMillis() - start) + "ms");
}
static boolean load()
{
trie = new DoubleArrayTrie<Character>();
if (loadDat()) return true;
try
{
BufferedReader br = new BufferedReader(new InputStreamReader(IOUtil.newInputStream(path), "UTF-8"));
String line;
TreeMap<String, Character> map = new TreeMap<String, Character>();
while ((line = br.readLine()) != null)
{
String[] param = line.split(" ", 2);
map.put(param[0], param[1].charAt(0));
}
br.close();
logger.info("日本人名词典" + path + "开始构建双数组……");
trie.build(map);
logger.info("日本人名词典" + path + "开始编译DAT文件……");
logger.info("日本人名词典" + path + "编译结果:" + saveDat(map));
}
catch (Exception e)
{
logger.severe("自定义词典" + path + "读取错误!" + e);
return false;
}
return true;
}
/**
* 保存dat到磁盘
* @param map
* @return
*/
static boolean saveDat(TreeMap<String, Character> map)
{
try
{
DataOutputStream out = new DataOutputStream(new BufferedOutputStream(IOUtil.newOutputStream(path + Predefine.VALUE_EXT)));
out.writeInt(map.size());
for (Character character : map.values())
{
out.writeChar(character);
}
out.close();
}
catch (Exception e)
{
logger.warning("保存值" + path + Predefine.VALUE_EXT + "失败" + e);
return false;
}
return trie.save(path + Predefine.TRIE_EXT);
}
static boolean loadDat()
{
ByteArray byteArray = ByteArray.createByteArray(path + Predefine.VALUE_EXT);
if (byteArray == null) return false;
int size = byteArray.nextInt();
Character[] valueArray = new Character[size];
for (int i = 0; i < valueArray.length; ++i)
{
valueArray[i] = byteArray.nextChar();
}
return trie.load(path + Predefine.TRIE_EXT, valueArray);
}
/**
* 是否包含key
* @param key
* @return
*/
public static boolean containsKey(String key)
{
return trie.containsKey(key);
}
/**
* 包含key,且key至少长length
* @param key
* @param length
* @return
*/
public static boolean containsKey(String key, int length)
{
if (!trie.containsKey(key)) return false;
return key.length() >= length;
}
public static Character get(String key)
{
return trie.get(key);
}
public static DoubleArrayTrie<Character>.LongestSearcher getSearcher(char[] charArray)
{
return trie.getLongestSearcher(charArray, 0);
}
/**
* 最长分词
*/
public static class Searcher extends BaseSearcher<Character>
{
/**
* 分词从何处开始,这是一个状态
*/
int begin;
DoubleArrayTrie<Character> trie;
protected Searcher(char[] c, DoubleArrayTrie<Character> trie)
{
super(c);
this.trie = trie;
}
protected Searcher(String text, DoubleArrayTrie<Character> trie)
{
super(text);
this.trie = trie;
}
@Override
public Map.Entry<String, Character> next()
{
// 保证首次调用找到一个词语
Map.Entry<String, Character> result = null;
while (begin < c.length)
{
LinkedList<Map.Entry<String, Character>> entryList = trie.commonPrefixSearchWithValue(c, begin);
if (entryList.size() == 0)
{
++begin;
}
else
{
result = entryList.getLast();
offset = begin;
begin += result.getKey().length();
break;
}
}
if (result == null)
{
return null;
}
return result;
}
}
}
|
[
"jfservice@126.com"
] |
jfservice@126.com
|
17935b8635baabad91fe2af7d0e6747ed09cce53
|
f2b6d20a53b6c5fb451914188e32ce932bdff831
|
/src/com/linkedin/android/growth/login/login/LoginFragmentFactory.java
|
a5b896d5123ac133c88d6bd012791cb95297d94d
|
[] |
no_license
|
reverseengineeringer/com.linkedin.android
|
08068c28267335a27a8571d53a706604b151faee
|
4e7235e12a1984915075f82b102420392223b44d
|
refs/heads/master
| 2021-04-09T11:30:00.434542
| 2016-07-21T03:54:43
| 2016-07-21T03:54:43
| 63,835,028
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 548
|
java
|
package com.linkedin.android.growth.login.login;
import android.support.v4.app.Fragment;
import com.linkedin.android.infra.DefaultBundle;
import com.linkedin.android.infra.FragmentFactory;
import javax.inject.Inject;
public final class LoginFragmentFactory
extends FragmentFactory<DefaultBundle>
{
public final Fragment provideFragment()
{
return new LoginFragment();
}
}
/* Location:
* Qualified Name: com.linkedin.android.growth.login.login.LoginFragmentFactory
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
3ac53f495cfbff6a3fdcb84414775935dd31bff0
|
89e1811c3293545c83966995cb000c88fc95fa79
|
/MCHH-sms/src/main/java/com/threefiveninetong/mchh/core/vo/BasePageVo.java
|
2aef56a3659b4ed36c76d22423df12f2cf344196
|
[] |
no_license
|
wxddong/MCHH-parent
|
9cafcff20d2f36b5d528fd8dd608fa9547327486
|
2898fdf4e778afc01b850d003899f25005b8e415
|
refs/heads/master
| 2021-01-01T17:25:29.109072
| 2017-07-23T02:28:59
| 2017-07-23T02:28:59
| 96,751,862
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,193
|
java
|
package com.threefiveninetong.mchh.core.vo;
import java.util.List;
/**
* @ClassName: BasePageVo
* @Description: TODO 基础分页vo
* @author: jixf
* @date: 2016年1月10日 上午10:34:10
*/
public class BasePageVo<T> extends BaseVo {
/**
* @Fields rows : 每页显示记录数
*/
private int rows = 5;
/**
* @Fields total : 总记录数
*/
private int total = 0;
/**
* @Fields page : 显示页数
*/
private int page = 1;
/**
* @Fields list : 分页结果集合
*/
private List<T> list;
public BasePageVo(){}
public BasePageVo(int page,int rows,int total,List<T> list) {
super();
this.rows = rows;
this.total = total;
this.page = page;
this.list = list;
}
public int getRows() {
return rows;
}
public void setRows(int rows) {
this.rows = rows;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page;
}
public List<T> getList() {
return list;
}
public void setList(List<T> list) {
this.list = list;
}
public int getTotalPage() {
return total/rows+(total%rows==0?0:1);
}
}
|
[
"wxd_1024@163.com"
] |
wxd_1024@163.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.