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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
913154dd2d1396c31a7a8e4edbeabbd06c4b1f1a
|
9cdf4a803b5851915b53edaeead2546f788bddc6
|
/machinelearning/5.0.x/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/flow/ruleflow/editor/action/CheckRuleFlowAction.java
|
8b15052b529b18abcd038c016e2eb2d5e8437d5d
|
[
"Apache-2.0"
] |
permissive
|
kiegroup/droolsjbpm-contributed-experiments
|
8051a70cfa39f18bc3baa12ca819a44cc7146700
|
6f032d28323beedae711a91f70960bf06ee351e5
|
refs/heads/master
| 2023-06-01T06:11:42.641550
| 2020-07-15T15:09:02
| 2020-07-15T15:09:02
| 1,184,582
| 1
| 13
| null | 2021-06-24T08:45:52
| 2010-12-20T15:42:26
|
Java
|
UTF-8
|
Java
| false
| false
| 2,814
|
java
|
package org.drools.eclipse.flow.ruleflow.editor.action;
/*
* Copyright 2005 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.drools.eclipse.DroolsEclipsePlugin;
import org.drools.eclipse.flow.ruleflow.editor.RuleFlowModelEditor;
import org.drools.process.core.validation.ProcessValidationError;
import org.drools.ruleflow.core.validation.RuleFlowProcessValidator;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.ui.IEditorActionDelegate;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.actions.ActionDelegate;
/**
* Action for checking a RuleFlow.
*
* @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
*/
public class CheckRuleFlowAction extends ActionDelegate implements IEditorActionDelegate {
private IEditorPart editor;
public void run(IAction action) {
execute();
}
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
editor = targetEditor;
}
private void execute() {
ProcessValidationError[] errors = RuleFlowProcessValidator.getInstance().validateProcess(
((RuleFlowModelEditor) editor).getRuleFlowModel().getRuleFlowProcess());
if (errors.length == 0) {
MessageDialog.openInformation(editor.getSite().getShell(),
"Check RuleFlow", "The RuleFlow model was checked successfully.");
} else {
StringBuffer error = new StringBuffer(errors[0].toString());
error.append("\n");
for (int i = 1; i < errors.length; i++) {
error.append(" ");
error.append(errors[i]);
error.append("\n");
}
ErrorDialog.openError(editor.getSite().getShell(),
"Check RuleFlow", "The RuleFlow model contains errors.",
new Status(
IStatus.ERROR,
DroolsEclipsePlugin.getDefault().getBundle().getSymbolicName(),
IStatus.ERROR,
error.toString(),
null)
);
}
}
}
|
[
"gizil.oguz@gmail.com"
] |
gizil.oguz@gmail.com
|
9d5f35b5d27db540f23be146ebe344b13cdcce89
|
622259e01d8555d552ddeba045fafe6624d80312
|
/edu.harvard.i2b2.eclipse.plugins.workplace/gensrc/edu/harvard/i2b2/crcxmljaxb/datavo/pdo/query/PageType.java
|
d6641e44c08bbff1c2f59c6c08ae31b2ca9639c4
|
[] |
no_license
|
kmullins/i2b2-workbench-old
|
93c8e7a3ec7fc70b68c4ce0ae9f2f2c5101f5774
|
8144b0b62924fa8a0e4076bf9672033bdff3b1ff
|
refs/heads/master
| 2021-05-30T01:06:11.258874
| 2015-11-05T18:00:58
| 2015-11-05T18:00:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,012
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.2-b01-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: 2015.07.21 at 10:39:00 AM EDT
//
package edu.harvard.i2b2.crcxmljaxb.datavo.pdo.query;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for pageType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="pageType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="paging_by_patients" type="{http://www.i2b2.org/xsd/cell/crc/pdo/1.1/}pageByPatient_Type"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "pageType", propOrder = {
"pagingByPatients"
})
public class PageType {
@XmlElement(name = "paging_by_patients", required = true)
protected PageByPatientType pagingByPatients;
/**
* Gets the value of the pagingByPatients property.
*
* @return
* possible object is
* {@link PageByPatientType }
*
*/
public PageByPatientType getPagingByPatients() {
return pagingByPatients;
}
/**
* Sets the value of the pagingByPatients property.
*
* @param value
* allowed object is
* {@link PageByPatientType }
*
*/
public void setPagingByPatients(PageByPatientType value) {
this.pagingByPatients = value;
}
}
|
[
"Janice@phs000774.partners.org"
] |
Janice@phs000774.partners.org
|
645ac0c2d1331ab874dcef327a5966034954d754
|
1095fea85170be0fead52a277f7c5c2661c747ff
|
/rs3 files/876 Deob/source/com/jagex/Class17.java
|
e3cded57c6a8f3ab2fdcc89f273f4a5969a547ae
|
[
"Apache-2.0"
] |
permissive
|
emcry666/project-scape
|
fed5d533f561cb06b3187ea116ff2692b840b6b7
|
827d213f129a9fd266cf42e7412402609191c484
|
refs/heads/master
| 2021-09-01T01:01:40.472745
| 2017-12-23T19:55:02
| 2017-12-23T19:55:02
| 114,505,346
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,574
|
java
|
/* Class17 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
package com.jagex;
import java.util.Date;
public class Class17 implements Interface13, Interface6 {
Class464[][] aClass464ArrayArray189;
Object[][] anObjectArrayArray190;
static String aString191;
public static int anInt192;
void method772(RSBuffer class523_sub34, int i, int i_0_) {
if (3 == i) {
int i_1_ = class523_sub34.readUnsignedByte(-253894589);
if (null == anObjectArrayArray190) {
anObjectArrayArray190 = new Object[i_1_][];
aClass464ArrayArray189 = new Class464[i_1_][];
}
for (int i_2_ = class523_sub34.readUnsignedByte(800234314); 255 != i_2_; i_2_ = class523_sub34.readUnsignedByte(-88601404)) {
int i_3_ = class523_sub34.readUnsignedByte(1994773078);
Class464[] class464s = new Class464[i_3_];
for (int i_4_ = 0; i_4_ < i_3_; i_4_++)
class464s[i_4_] = ((Class464) Class334.method5910(Class464.method7532((byte) -5), class523_sub34.readUnsignedSmart(368514876), -591798519));
anObjectArrayArray190[i_2_] = Class525.method8709(class523_sub34, class464s, -1626409258);
aClass464ArrayArray189[i_2_] = class464s;
}
}
}
public void readValues(RSBuffer class523_sub34, int i) {
for (;;) {
int i_5_ = class523_sub34.readUnsignedByte(104973570);
if (0 == i_5_)
break;
method772(class523_sub34, i_5_, -1565460130);
}
}
public Object[] method773(int i, byte i_6_) {
if (null == anObjectArrayArray190)
return null;
return anObjectArrayArray190[i];
}
public void method60(RSBuffer class523_sub34) {
for (;;) {
int i = class523_sub34.readUnsignedByte(-1516056212);
if (0 == i)
break;
method772(class523_sub34, i, -1565460130);
}
}
public void method74(byte i) {
/* empty */
}
public void method52(int i, byte i_7_) {
/* empty */
}
public void method75(RSBuffer class523_sub34) {
for (;;) {
int i = class523_sub34.readUnsignedByte(-1257817366);
if (0 == i)
break;
method772(class523_sub34, i, -1565460130);
}
}
Class17() {
/* empty */
}
public void method73() {
/* empty */
}
public void method63(RSBuffer class523_sub34) {
for (;;) {
int i = class523_sub34.readUnsignedByte(-1700200194);
if (0 == i)
break;
method772(class523_sub34, i, -1565460130);
}
}
public void readValues(RSBuffer class523_sub34) {
for (;;) {
int i = class523_sub34.readUnsignedByte(1634567731);
if (0 == i)
break;
method772(class523_sub34, i, -1565460130);
}
}
public void method58(RSBuffer class523_sub34) {
for (;;) {
int i = class523_sub34.readUnsignedByte(1178599844);
if (0 == i)
break;
method772(class523_sub34, i, -1565460130);
}
}
public void method78() {
/* empty */
}
public void method79() {
/* empty */
}
public void method77() {
/* empty */
}
public void method76(RSBuffer class523_sub34) {
for (;;) {
int i = class523_sub34.readUnsignedByte(1854474466);
if (0 == i)
break;
method772(class523_sub34, i, -1565460130);
}
}
public void method51(int i) {
/* empty */
}
public Object[] method774(int i) {
if (null == anObjectArrayArray190)
return null;
return anObjectArrayArray190[i];
}
void method775(RSBuffer class523_sub34, int i) {
if (3 == i) {
int i_8_ = class523_sub34.readUnsignedByte(965739606);
if (null == anObjectArrayArray190) {
anObjectArrayArray190 = new Object[i_8_][];
aClass464ArrayArray189 = new Class464[i_8_][];
}
for (int i_9_ = class523_sub34.readUnsignedByte(-803663641); 255 != i_9_; i_9_ = class523_sub34.readUnsignedByte(-649715283)) {
int i_10_ = class523_sub34.readUnsignedByte(615153785);
Class464[] class464s = new Class464[i_10_];
for (int i_11_ = 0; i_11_ < i_10_; i_11_++)
class464s[i_11_] = ((Class464) Class334.method5910(Class464.method7532((byte) 22), class523_sub34.readUnsignedSmart(368514876), -531222271));
anObjectArrayArray190[i_9_] = Class525.method8709(class523_sub34, class464s, -881642933);
aClass464ArrayArray189[i_9_] = class464s;
}
}
}
static void method776(long l) {
Class91.aCalendar893.setTime(new Date(l));
}
static final void method777(Class669 class669, int i) {
int i_12_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
InterfaceComponentDefinitions class250 = Class188.getDefinitions(i_12_, -794045031);
Class242 class242 = Class31.aClass242Array302[i_12_ >> 16];
Class145_Sub1.method14915(class250, class242, class669, (byte) 3);
}
static void method778(int i, int i_13_) {
/* empty */
}
}
|
[
"34613829+emcry666@users.noreply.github.com"
] |
34613829+emcry666@users.noreply.github.com
|
3b711190d8b667b0fd4c77b618cf8a7b3b807047
|
d528fe4f3aa3a7eca7c5ba4e0aee43421e60857f
|
/main/com/zfsoft/xgxt/xszz/xfbzmd/XfbzmdService.java
|
dad2ea0354f43c7d83bafe08f12735e070148b9a
|
[] |
no_license
|
gxlioper/xajd
|
81bd19a7c4b9f2d1a41a23295497b6de0dae4169
|
b7d4237acf7d6ffeca1c4a5a6717594ca55f1673
|
refs/heads/master
| 2022-03-06T15:49:34.004924
| 2019-11-19T07:43:25
| 2019-11-19T07:43:25
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 594
|
java
|
/**
* @部门:学工产品事业部
* @日期:2016-7-18 下午03:45:18
*/
package com.zfsoft.xgxt.xszz.xfbzmd;
import com.zfsoft.xgxt.base.service.impl.SuperServiceImpl;
/**
* @系统名称: 学生工作管理系统
* @模块名称: XXXX管理模块
* @类功能描述: TODO(这里用一句话描述这个类的作用)
* @作者: 孟威[工号:1186]
* @时间: 2016-7-18 下午03:45:18
* @版本: V1.0
* @修改记录: 类修改者-修改日期-修改说明
*/
public class XfbzmdService extends SuperServiceImpl<XfbzmdForm,XfbzmdDao> {
}
|
[
"1398796456@qq.com"
] |
1398796456@qq.com
|
ff088d26c7b856d860adad033b3a8872f941d97f
|
b924c45521b81251cc1acbe4ba3f993951731ee4
|
/jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/util/jsonschema/validate/SwitchProperty.java
|
4bcd9d9fffaeaf45b6bdc9cc075a4bf07b756dfe
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
xudongyi/jeecg-boot-new
|
336004a7b717f8245d3972028c32354030715078
|
f4c59e6e924c16da67d8ba4a86c09ead1c6d9612
|
refs/heads/master
| 2021-10-06T10:38:21.091681
| 2021-09-26T09:18:58
| 2021-09-26T09:18:58
| 224,561,208
| 1
| 0
|
Apache-2.0
| 2020-05-11T05:10:55
| 2019-11-28T03:17:50
| null |
UTF-8
|
Java
| false
| false
| 1,107
|
java
|
package org.jeecg.common.util.jsonschema.validate;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.jeecg.common.util.jsonschema.CommonProperty;
import java.util.HashMap;
import java.util.Map;
/**
* 开关 属性
*/
public class SwitchProperty extends CommonProperty {
//扩展参数配置信息
private String extendStr;
public SwitchProperty() {}
/**
* 构造器
*/
public SwitchProperty(String key, String title, String extendStr) {
this.type = "string";
this.view = "switch";
this.key = key;
this.title = title;
this.extendStr = extendStr;
}
@Override
public Map<String, Object> getPropertyJson() {
Map<String,Object> map = new HashMap<>();
map.put("key",getKey());
JSONObject prop = getCommonJson();
JSONArray array = new JSONArray();
if(extendStr!=null) {
array = JSONArray.parseArray(extendStr);
prop.put("extendOption",array);
}
map.put("prop",prop);
return map;
}
//TODO 重构问题:数据字典 只是字符串类的还是有存储的数值类型?只有字符串请跳过这个 只改前端
}
|
[
"zhangdaiscott@163.com"
] |
zhangdaiscott@163.com
|
e05ab612008c2463261af58c463a60e50f4c737a
|
56d1741a60880067ae377ecede5ece2a45ecbe12
|
/RFPDAAPP/wms_erp/src/main/java/com/example/wms_erp/model/VersionInfo.java
|
7735de1fc7d51e6067e1ef88fd1c44247123640a
|
[] |
no_license
|
StephenGiant/wharehouse
|
7ee5c3f2d2e456e39f33136f29eddb72b84f94d2
|
523fe66fa68b3c01077a3b68502bda2085573a22
|
refs/heads/master
| 2020-04-10T21:58:06.655227
| 2017-02-24T10:03:13
| 2017-02-24T10:03:13
| 65,800,410
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,133
|
java
|
package com.example.wms_erp.model;
/**
* Created by Administrator on 2016/10/27.
*/
public class VersionInfo {
/**
* name : WMS_ERP管理
* version : 2
* changelog : null
* updated_at : 1477557796
* versionShort : 1.2
* build : 2
* installUrl : http://download.fir.im/v2/app/install/580d77a4ca87a87ac60004f5?download_token=bd8144d76a69a14241e61d1d63df4cbe
* install_url : http://download.fir.im/v2/app/install/580d77a4ca87a87ac60004f5?download_token=bd8144d76a69a14241e61d1d63df4cbe
* direct_install_url : http://download.fir.im/v2/app/install/580d77a4ca87a87ac60004f5?download_token=bd8144d76a69a14241e61d1d63df4cbe
* update_url : http://fir.im/qlgf
* binary : {"fsize":4325902}
*/
private String name;
private String version;
private Object changelog;
private int updated_at;
private String versionShort;
private String build;
private String installUrl;
private String install_url;
private String direct_install_url;
private String update_url;
/**
* fsize : 4325902
*/
private BinaryBean binary;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public Object getChangelog() {
return changelog;
}
public void setChangelog(Object changelog) {
this.changelog = changelog;
}
public int getUpdated_at() {
return updated_at;
}
public void setUpdated_at(int updated_at) {
this.updated_at = updated_at;
}
public String getVersionShort() {
return versionShort;
}
public void setVersionShort(String versionShort) {
this.versionShort = versionShort;
}
public String getBuild() {
return build;
}
public void setBuild(String build) {
this.build = build;
}
public String getInstallUrl() {
return installUrl;
}
public void setInstallUrl(String installUrl) {
this.installUrl = installUrl;
}
public String getInstall_url() {
return install_url;
}
public void setInstall_url(String install_url) {
this.install_url = install_url;
}
public String getDirect_install_url() {
return direct_install_url;
}
public void setDirect_install_url(String direct_install_url) {
this.direct_install_url = direct_install_url;
}
public String getUpdate_url() {
return update_url;
}
public void setUpdate_url(String update_url) {
this.update_url = update_url;
}
public BinaryBean getBinary() {
return binary;
}
public void setBinary(BinaryBean binary) {
this.binary = binary;
}
public static class BinaryBean {
private int fsize;
public int getFsize() {
return fsize;
}
public void setFsize(int fsize) {
this.fsize = fsize;
}
}
}
|
[
"zjttqyp@126.com"
] |
zjttqyp@126.com
|
a68da38a088f7e52948b05f96d9cd13ece0f88c2
|
0c0f7d6b46b9830ff4baf4a7ae52d6ea74e16248
|
/xauth/src/main/java/com/github/haozi/config/LiquibaseConfiguration.java
|
3e781567d8439e55cf26354ffc9994b00c440f4b
|
[] |
no_license
|
haoziapple/hello-world
|
e4b76c1447613f55eff36ca65d1cf62bb6113fb1
|
945d20701749592ae2ed9de25b22d688f7a3bec2
|
refs/heads/master
| 2023-01-31T22:51:23.500400
| 2019-07-12T03:09:41
| 2019-07-12T03:09:41
| 52,886,890
| 3
| 0
| null | 2023-01-11T22:17:36
| 2016-03-01T15:21:52
|
Java
|
UTF-8
|
Java
| false
| false
| 1,990
|
java
|
package com.github.haozi.config;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.core.task.TaskExecutor;
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.config.liquibase.AsyncSpringLiquibase;
import liquibase.integration.spring.SpringLiquibase;
@Configuration
public class LiquibaseConfiguration {
private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class);
private final Environment env;
public LiquibaseConfiguration(Environment env) {
this.env = env;
}
@Bean
public SpringLiquibase liquibase(@Qualifier("taskExecutor") TaskExecutor taskExecutor,
DataSource dataSource, LiquibaseProperties liquibaseProperties) {
// Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously
SpringLiquibase liquibase = new AsyncSpringLiquibase(taskExecutor, env);
liquibase.setDataSource(dataSource);
liquibase.setChangeLog("classpath:config/liquibase/master.xml");
liquibase.setContexts(liquibaseProperties.getContexts());
liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema());
liquibase.setDropFirst(liquibaseProperties.isDropFirst());
liquibase.setChangeLogParameters(liquibaseProperties.getParameters());
if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE)) {
liquibase.setShouldRun(false);
} else {
liquibase.setShouldRun(liquibaseProperties.isEnabled());
log.debug("Configuring Liquibase");
}
return liquibase;
}
}
|
[
"haozixiaowang@163.com"
] |
haozixiaowang@163.com
|
649e948cd1f0a3c7fcbb732f13c9f8a6888a0ad3
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/ddospro-20170725/src/main/java/com/aliyun/ddospro20170725/models/UpdateCcCustomedRuleResponseBody.java
|
8d9c7c77994bc41758fc3196ee5e4644598917b1
|
[
"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
| 706
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ddospro20170725.models;
import com.aliyun.tea.*;
public class UpdateCcCustomedRuleResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
public static UpdateCcCustomedRuleResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateCcCustomedRuleResponseBody self = new UpdateCcCustomedRuleResponseBody();
return TeaModel.build(map, self);
}
public UpdateCcCustomedRuleResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
ae057c5a4b8856bdca1a01167c65888259dc7fbb
|
4589a9b3563e39d49039aa846fea25d9dbc10a8a
|
/src/before/factory/factory_one/IWorkFactory.java
|
461fa60c6b9df5b804e4905cec2f7552f4658630
|
[] |
no_license
|
moocstudent/DesignPattern1
|
3769f733484e963110f65a6b75e5293cd1ec76ef
|
b728ea7c82e96960fac20baab0f3dc6f80336ea2
|
refs/heads/master
| 2022-03-06T13:07:06.189716
| 2019-12-07T15:08:16
| 2019-12-07T15:08:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 170
|
java
|
package before.factory.factory_one;
/**
* 获取工作的接口 可以理解为智联/58/Boss等招聘平台
*/
public interface IWorkFactory {
Work getWork();
}
|
[
"deadzq@qq.com"
] |
deadzq@qq.com
|
47a092b17cdf07b5c39e79733c09ac3c866e8f00
|
5f84735a68feec078b9fcef19283fcda537ebe5a
|
/api/src/main/java/org/queryall/api/querytype/QueryTypeEnum.java
|
6f0069ac1fbad1879ece7b076221ae5918b4f701
|
[] |
no_license
|
ansell/queryall
|
a07bea0f3a889ca6aeba9275f3255fa77b7a4be4
|
870cb10467737ebcb7a39543f5a0fe6a3f3ba40c
|
refs/heads/develop
| 2020-05-19T20:57:21.319597
| 2015-12-27T05:38:16
| 2015-12-27T05:38:16
| 2,281,948
| 1
| 0
| null | 2013-07-14T23:45:40
| 2011-08-28T03:44:23
|
Java
|
UTF-8
|
Java
| false
| false
| 1,588
|
java
|
/**
*
*/
package org.queryall.api.querytype;
import java.util.Collection;
import java.util.Set;
import org.openrdf.model.URI;
import org.queryall.api.services.QueryAllEnum;
import org.queryall.api.services.ServiceUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* QueryType implementations register themselves with this enumeration when they are loaded.
*
* NOTE: This is not an enumeration as java does not support extensible enumerations, but it should
* act like one for all purposes other than java's underpowered switch case statement.
*
*/
public class QueryTypeEnum extends QueryAllEnum
{
private static final Logger LOG = LoggerFactory.getLogger(QueryTypeEnum.class);
@SuppressWarnings("unused")
private static final boolean TRACE = QueryTypeEnum.LOG.isTraceEnabled();
private static final boolean DEBUG = QueryTypeEnum.LOG.isDebugEnabled();
@SuppressWarnings("unused")
private static final boolean INFO = QueryTypeEnum.LOG.isInfoEnabled();
/**
* @deprecated Use {@link ServiceUtils#getQueryTypeEnumsByTypeUris(Set<URI>)} instead
*/
@Deprecated
public static Collection<QueryTypeEnum> byTypeUris(final Set<URI> nextTypeUris)
{
return ServiceUtils.getQueryTypeEnumsByTypeUris(nextTypeUris);
}
/**
* Create a new QueryType enum using the given name, which must be unique.
*
* @param nextName
* @param nextTypeURIs
*/
public QueryTypeEnum(final String nextName, final Set<URI> nextTypeURIs)
{
super(nextName, nextTypeURIs);
}
}
|
[
"p_ansell@yahoo.com"
] |
p_ansell@yahoo.com
|
11d02c24342c4433457ee68ce0619478e8b00e85
|
85cfc652459ca2f015aa8c8dc55240721632cee0
|
/bin/custom/cartridge/cartridgestorefront/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonResponsiveStrategy.java
|
2744135c1ea6f78a52b594df2bb93e80a9076749
|
[] |
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
| 773
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("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.
*/
package de.hybris.platform.smarteditaddon.interceptors.beforeview;
/**
* Strategy to determine if the storefront is responsive or non responsive.
*/
public interface SmarteditaddonResponsiveStrategy
{
/**
* Indicate if the storefront is responsive (true) or not (false).
*
* @return Boolean representing the responsiveness of the storefront
*/
Boolean isResponsive();
}
|
[
"varsha.d.saste@accenture.com"
] |
varsha.d.saste@accenture.com
|
75dae0caa264248f06fb05ccbcdc095c7b23eb1e
|
e9124854d2bb3a40f6642858f3777e89a88b1d54
|
/custom/toint/tointfacades/testsrc/org/toint/facades/suggestion/DefaultSimpleSuggestionFacadeIntegrationTest.java
|
0833721316cf916a3180c4a021c810fd12f724e7
|
[] |
no_license
|
Prashanth-techouts/Toint
|
9bcba94fd0422f20131c24cd9e0ec19e789941d6
|
dbd466fae6303a6c796ffd52f169119a4a7ee134
|
refs/heads/master
| 2023-09-03T02:20:49.827317
| 2021-10-22T10:48:30
| 2021-10-22T10:48:30
| 419,990,956
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,759
|
java
|
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package org.toint.facades.suggestion;
import de.hybris.bootstrap.annotations.IntegrationTest;
import de.hybris.platform.catalog.enums.ProductReferenceTypeEnum;
import de.hybris.platform.commercefacades.product.data.ProductData;
import de.hybris.platform.core.model.user.UserModel;
import de.hybris.platform.servicelayer.ServicelayerTransactionalTest;
import de.hybris.platform.servicelayer.user.UserService;
import de.hybris.platform.site.BaseSiteService;
import org.toint.facades.suggestion.impl.DefaultSimpleSuggestionFacade;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.annotation.Resource;
import junit.framework.Assert;
import org.apache.commons.lang.math.NumberUtils;
import org.junit.Before;
import org.junit.Test;
/**
* Integration test suite for {@link DefaultSimpleSuggestionFacade}.
*/
@IntegrationTest
public class DefaultSimpleSuggestionFacadeIntegrationTest extends ServicelayerTransactionalTest
{
@Resource
private SimpleSuggestionFacade simpleSuggestionFacade;
@Resource
private BaseSiteService baseSiteService;
@Resource
private UserService userService;
@Before
public void setUp() throws Exception
{
userService.setCurrentUser(userService.getAnonymousUser());
importCsv("/tointfacades/test/testSimpleSuggestionFacade.csv", "utf-8");
baseSiteService.setCurrentBaseSite(baseSiteService.getBaseSiteForUID("testSite"), false);
}
@Test
public void testReferencesForPurchasedInCategory()
{
final UserModel user = userService.getUserForUID("dejol");
userService.setCurrentUser(user);
List<ProductData> result = simpleSuggestionFacade.getReferencesForPurchasedInCategory("cameras", Collections.EMPTY_LIST,
false, null);
Assert.assertEquals(4, result.size());
result = simpleSuggestionFacade.getReferencesForPurchasedInCategory("cameras", Collections.EMPTY_LIST, false,
NumberUtils.INTEGER_ONE);
Assert.assertEquals(1, result.size());
result = simpleSuggestionFacade.getReferencesForPurchasedInCategory("cameras",
Arrays.asList(ProductReferenceTypeEnum.SIMILAR), false, null);
Assert.assertEquals(1, result.size());
result = simpleSuggestionFacade.getReferencesForPurchasedInCategory("cameras",
Arrays.asList(ProductReferenceTypeEnum.ACCESSORIES), false, null);
Assert.assertEquals(2, result.size());
result = simpleSuggestionFacade.getReferencesForPurchasedInCategory("cameras",
Arrays.asList(ProductReferenceTypeEnum.ACCESSORIES), true, null);
Assert.assertEquals(1, result.size());
final ProductData product = result.get(0);
Assert.assertEquals("adapterDC", product.getCode());
Assert.assertEquals("adapter", product.getName());
}
}
|
[
"prashanth.g@techouts.com"
] |
prashanth.g@techouts.com
|
81360d0dcf2edbe88fb6ef241c867d2f76899c2a
|
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
|
/Method_Scraping/xml_scraping/NicadOutputFile_t2_flink/Nicad_t2_flink658.java
|
5c11baa6066e86a2de04f7cf8d54d62bbbb29264
|
[] |
no_license
|
ryosuke-ku/TestCodeSeacherPlus
|
cfd03a2858b67a05ecf17194213b7c02c5f2caff
|
d002a52251f5461598c7af73925b85a05cea85c6
|
refs/heads/master
| 2020-05-24T01:25:27.000821
| 2019-08-17T06:23:42
| 2019-08-17T06:23:42
| 187,005,399
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 632
|
java
|
// clone pairs:11468:90%
// 13083:flink/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/job/SubtaskExecutionAttemptAccumulatorsInfo.java
public class Nicad_t2_flink658
{
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubtaskExecutionAttemptAccumulatorsInfo that = (SubtaskExecutionAttemptAccumulatorsInfo) o;
return subtaskIndex == that.subtaskIndex &&
attemptNum == that.attemptNum &&
Objects.equals(id, that.id) &&
Objects.equals(userAccumulatorList, that.userAccumulatorList);
}
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
b400b5540149b4e3d7fae83a483a3bf1f3375c99
|
a9073cbdb325801bdddf35f1b2b13e6a9eeb2e7d
|
/hw15-0036479615/src/main/java/hr/fer/zemris/java/tecaj_13/web/servlets/NewEntryServlet.java
|
c95f24200c08fa4ba3f9fa8958d90c7ef825f93a
|
[] |
no_license
|
svennjegac/FER-java-opjj
|
6b1dc8fb691940c561c589233af3a5b46f96309e
|
d7e59bf000c63d9ffa3941d5c22256d2dd426a06
|
refs/heads/master
| 2020-03-29T04:13:54.366615
| 2019-09-08T00:27:36
| 2019-09-08T00:27:36
| 149,521,553
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,148
|
java
|
package hr.fer.zemris.java.tecaj_13.web.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import hr.fer.zemris.java.tecaj_13.model.BlogUser;
/**
* Servlet processes request for new entry.
*
* @author Sven Njegač
* @version 1.0
*/
@WebServlet(name="add-entry-servlet", urlPatterns={"/author/new"})
public class NewEntryServlet extends HttpServlet {
/** UID. */
private static final long serialVersionUID = 1L;
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
BlogUser user = (BlogUser) req.getAttribute("author");
if (user == null
|| req.getSession().getAttribute("current_user_id") == null
|| user.getId() != (Long) req.getSession().getAttribute("current_user_id"))
{
resp.sendRedirect(req.getContextPath() + "/servleti/main");
return;
}
req.getRequestDispatcher("/WEB-INF/pages/edit-update-entry.jsp").forward(req, resp);
}
}
|
[
"sven.njegac@fer.hr"
] |
sven.njegac@fer.hr
|
4b3b672154091ea52e5235da8f97af5acec78298
|
eb3a129479a5ea1bc722ffca10921c81b025f380
|
/cc-demo/src/main/java/cc/creativecomputing/demo/gl2/rendertotexture/CCShaderTextureTest.java
|
e17e72cadc17b10302700e4c54fc12678465a56c
|
[] |
no_license
|
texone/creativecomputing
|
855fe4116322c17aff576020f7c1ba11c3dc30dd
|
c276d2060a878f115db29bb7d2e7419f5de33e0a
|
refs/heads/master
| 2022-01-25T09:36:11.280953
| 2022-01-11T19:51:48
| 2022-01-11T19:51:48
| 42,046,027
| 8
| 3
| null | 2019-11-02T15:04:26
| 2015-09-07T10:10:58
|
Java
|
UTF-8
|
Java
| false
| false
| 2,422
|
java
|
/*
* Copyright (c) 2013 christianr.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.html
*
* Contributors:
* christianr - initial API and implementation
*/
package cc.creativecomputing.demo.gl2.rendertotexture;
import java.nio.FloatBuffer;
import cc.creativecomputing.app.modules.CCAnimator;
import cc.creativecomputing.graphics.CCGraphics;
import cc.creativecomputing.graphics.app.CCGL2Adapter;
import cc.creativecomputing.graphics.app.CCGL2Application;
import cc.creativecomputing.graphics.shader.CCShaderBuffer;
import cc.creativecomputing.math.CCMath;
public class CCShaderTextureTest extends CCGL2Adapter {
private CCShaderBuffer _myShaderTexture;
public void init(CCGraphics g, CCAnimator theAnimator) {
_myShaderTexture = new CCShaderBuffer(400, 400);
g.pointSize(2);
g.smooth();
// g.debug();
}
public void display(CCGraphics g) {
g.clearColor(0);
g.clear();
_myShaderTexture.beginDraw(g);
g.clearColor(255,0,0);
g.clear();
g.color(255);
CCMath.randomSeed(0);
for(int i = 0; i < 200;i++) {
g.color(CCMath.random(),CCMath.random(),CCMath.random());
g.ellipse(CCMath.random(400),CCMath.random(400),0,20,20);
}
g.rect(-200,-200, 50,50);
_myShaderTexture.endDraw(g);
FloatBuffer outputData0 = _myShaderTexture.getData(0);
System.err.printf("toutput0\toutput1\toutput2\toutput3\n");
for (int i = 0; i < _myShaderTexture.width() * _myShaderTexture.height() * 3; i++)
System.err.printf("t%.2f\t%.2f\t%.2f\n", outputData0.get(), outputData0.get(), outputData0.get());
g.color(255);
g.image(_myShaderTexture.attachment(0), 0,0,200,200);
// g.texture(_myRenderBuffer);
// g.beginShape(CCDrawMode.QUADS);
// g.vertex(-200, -200, 0, 0f);
// g.vertex( 200, -200, 1, 0f);
// g.vertex( 200, 200, 1, 1);
// g.vertex(-200, 200, 0, 1);
// g.endShape();
// g.noTexture();
}
public static void main(String[] args) {
CCShaderTextureTest demo = new CCShaderTextureTest();
CCGL2Application myAppManager = new CCGL2Application(demo);
myAppManager.glcontext().size(1900, 1000);
myAppManager.animator().framerate = 30;
myAppManager.animator().animationMode = CCAnimator.CCAnimationMode.FRAMERATE_PRECISE;
myAppManager.start();
}
}
|
[
"info@texone.org"
] |
info@texone.org
|
7f9d8d13d0ef43fc2016716c8f4b1c06222a94f0
|
54c2ba8bcede572abae27886fe7a599215030924
|
/src/main/java/com/jd/open/api/sdk/request/wms/LogisticsPoGetRequest.java
|
aa8b74ae102ce536b932ed95d1c8de18f4e2ea18
|
[] |
no_license
|
pingjiang/jd-open-api-sdk-src
|
4c8bcc1e139657c0b6512126e9408cc71873ee30
|
0d82d3a14fb7f931a4a1e25dc18fb2f1cfaadd81
|
refs/heads/master
| 2021-01-01T17:57:04.734329
| 2014-06-26T03:49:36
| 2014-06-26T03:49:36
| 21,227,086
| 17
| 15
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,198
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: LogisticsPoGetRequest.java
package com.jd.open.api.sdk.request.wms;
import com.jd.open.api.sdk.internal.util.JsonUtil;
import com.jd.open.api.sdk.request.AbstractRequest;
import com.jd.open.api.sdk.request.JdRequest;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
public class LogisticsPoGetRequest extends AbstractRequest
implements JdRequest {
public LogisticsPoGetRequest() {
}
public void setInboundNo(String inboundNo) {
this.inboundNo = inboundNo;
}
public String getInboundNo() {
return inboundNo;
}
public String getApiMethod() {
return "jingdong.logistics.po.get";
}
public String getAppJsonParams()
throws IOException {
Map pmap = new TreeMap();
pmap.put("inbound_no", inboundNo);
return JsonUtil.toJson(pmap);
}
public Class getResponseClass() {
return com.jd.open.api.sdk.response.wms.LogisticsPoGetResponse.class;
}
private String inboundNo;
}
|
[
"pingjiang1989@gmail.com"
] |
pingjiang1989@gmail.com
|
f9cbe53285884418e13a7d7139c93626dbd9b688
|
c7f8221de49bfc2b6c28fcd34c833f96658e9a0b
|
/src/main/java/rustichromia/gui/GuiHandler.java
|
8ca9f76e6fdc24564c410ed83b70128896eb0925
|
[
"MIT"
] |
permissive
|
DaedalusGame/Heterorustichromia
|
9276330ce3e35a787a0a489207e6512f51c29162
|
f32893b1a7fc7a4b0116e4dbbd5d165663299d02
|
refs/heads/master
| 2021-07-14T21:23:28.470907
| 2020-07-11T11:13:44
| 2020-07-11T11:13:44
| 185,208,292
| 1
| 2
|
MIT
| 2020-07-11T11:13:45
| 2019-05-06T14:01:49
|
Java
|
UTF-8
|
Java
| false
| false
| 1,724
|
java
|
package rustichromia.gui;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.network.IGuiHandler;
import rustichromia.tile.TileEntityAssembler;
import rustichromia.tile.TileEntityRatiobox;
public class GuiHandler implements IGuiHandler {
public static final int ASSEMBLER_RECIPE = 0;
public static final int RATIOBOX = 1;
public static final int FILTER_ITEM = 2;
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
switch (ID) {
case ASSEMBLER_RECIPE:
TileEntityAssembler assembler = (TileEntityAssembler) world.getTileEntity(new BlockPos(x, y, z));
return new ContainerAssembler(player, assembler);
case RATIOBOX:
TileEntityRatiobox ratioBox = (TileEntityRatiobox) world.getTileEntity(new BlockPos(x, y, z));
return new ContainerRatioBox(player, ratioBox);
default:
return null;
}
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
switch (ID) {
case ASSEMBLER_RECIPE:
TileEntityAssembler assembler = (TileEntityAssembler) world.getTileEntity(new BlockPos(x, y, z));
return new GuiAssembler(player, assembler);
case RATIOBOX:
TileEntityRatiobox ratioBox = (TileEntityRatiobox) world.getTileEntity(new BlockPos(x, y, z));
return new GuiRatioBox(player, ratioBox);
default:
return null;
}
}
}
|
[
"bordlistian@hotmail.de"
] |
bordlistian@hotmail.de
|
5c26e67a217ea1886a5f2a4e8e9c372626572ebb
|
5432aee1665affbe200a6e8cfcb081fa66139bc9
|
/src/main/java/com/robertx22/mine_and_slash/items/gearitems/armor/leather/LeatherBootsItem.java
|
a1626f333aebda474d1cc6ee284a3eeaca071583
|
[] |
no_license
|
saki-saki/Mine-and-Slash
|
9cc8587e5c082470847c7159223666cbc099c454
|
9fd77a6c661f821bf36e773cfbfb944b682020d7
|
refs/heads/1.14.4
| 2020-08-28T20:26:13.061684
| 2019-10-30T21:41:33
| 2019-10-30T21:41:33
| 217,811,792
| 0
| 1
| null | 2019-10-30T21:41:34
| 2019-10-27T05:57:39
|
Java
|
UTF-8
|
Java
| false
| false
| 809
|
java
|
package com.robertx22.mine_and_slash.items.gearitems.armor.leather;
import com.robertx22.mine_and_slash.db_lists.Rarities;
import com.robertx22.mine_and_slash.items.gearitems.bases.BaseDyableArmorItem;
import com.robertx22.mine_and_slash.saveclasses.gearitem.gear_bases.Rarity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.Item;
import java.util.HashMap;
public class LeatherBootsItem extends BaseDyableArmorItem {
public static HashMap<Integer, Item> Items = new HashMap<Integer, Item>();
public LeatherBootsItem(int rarity) {
super(Type.LEATHER, rarity, EquipmentSlotType.FEET);
}
@Override
public String locNameForLangFile() {
Rarity rar = Rarities.Items.get(rarity);
return rar.textFormatColor() + "Leather Boots";
}
}
|
[
"treborx555@gmail.com"
] |
treborx555@gmail.com
|
0d15831d309765dee71050f9e24465b000f72716
|
8bdda30bbcea1990fb56c2a083ca2a5693ca9b13
|
/sources/com/google/android/gms/fitness/request/SessionRegistrationRequest.java
|
b53c8c6233adcc2e6cb39819b53d53377125e9ba
|
[] |
no_license
|
yusato0378/aa
|
b14e247470efaf28efcc847433eff4aeb7790be6
|
ffc764c33c6f423d8dd6b1837446583d96a67e05
|
refs/heads/master
| 2021-01-10T01:10:49.084058
| 2016-01-09T12:02:01
| 2016-01-09T12:02:01
| 49,321,731
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,503
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package com.google.android.gms.fitness.request;
import android.app.PendingIntent;
import android.os.IBinder;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzu;
import com.google.android.gms.internal.zzjm;
// Referenced classes of package com.google.android.gms.fitness.request:
// zzw
public class SessionRegistrationRequest
implements SafeParcelable
{
SessionRegistrationRequest(int i, PendingIntent pendingintent, IBinder ibinder, String s)
{
zzzH = i;
mPendingIntent = pendingintent;
if(ibinder == null)
pendingintent = null;
else
pendingintent = com.google.android.gms.internal.zzjm.zza.zzaS(ibinder);
zzaeH = pendingintent;
zzJd = s;
}
public SessionRegistrationRequest(PendingIntent pendingintent, zzjm zzjm1, String s)
{
zzzH = 4;
mPendingIntent = pendingintent;
zzaeH = zzjm1;
zzJd = s;
}
private boolean zzb(SessionRegistrationRequest sessionregistrationrequest)
{
return zzu.equal(mPendingIntent, sessionregistrationrequest.mPendingIntent);
}
public int describeContents()
{
return 0;
}
public boolean equals(Object obj)
{
return this == obj || (obj instanceof SessionRegistrationRequest) && zzb((SessionRegistrationRequest)obj);
}
public String getPackageName()
{
return zzJd;
}
int getVersionCode()
{
return zzzH;
}
public int hashCode()
{
return zzu.hashCode(new Object[] {
mPendingIntent
});
}
public String toString()
{
return zzu.zzq(this).zzg("pendingIntent", mPendingIntent).toString();
}
public void writeToParcel(Parcel parcel, int i)
{
zzw.zza(this, parcel, i);
}
public IBinder zzpf()
{
if(zzaeH == null)
return null;
else
return zzaeH.asBinder();
}
public PendingIntent zzpr()
{
return mPendingIntent;
}
public static final android.os.Parcelable.Creator CREATOR = new zzw();
private final PendingIntent mPendingIntent;
private final String zzJd;
private final zzjm zzaeH;
private final int zzzH;
}
|
[
"yu0378@gmail.com"
] |
yu0378@gmail.com
|
92dd8f3b414cb323038d84e16e4024487807f700
|
e89d45f9e6831afc054468cc7a6ec675867cd3d7
|
/src/main/java/com/microsoft/graph/models/generated/PrintScaling.java
|
718156528ee19428ed11fb2a29b2f4d421354585
|
[
"MIT"
] |
permissive
|
isabella232/msgraph-beta-sdk-java
|
67d3b9251317f04a465042d273fe533ef1ace13e
|
7d2b929d5c99c01ec1af1a251f4bf5876ca95ed8
|
refs/heads/dev
| 2023-03-12T05:44:24.349020
| 2020-11-19T15:51:17
| 2020-11-19T15:51:17
| 318,158,544
| 0
| 0
|
MIT
| 2021-02-23T20:48:09
| 2020-12-03T10:37:46
| null |
UTF-8
|
Java
| false
| false
| 799
|
java
|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models.generated;
/**
* The Enum Print Scaling.
*/
public enum PrintScaling
{
/**
* auto
*/
AUTO,
/**
* shrink To Fit
*/
SHRINK_TO_FIT,
/**
* fill
*/
FILL,
/**
* fit
*/
FIT,
/**
* none
*/
NONE,
/**
* unknown Future Value
*/
UNKNOWN_FUTURE_VALUE,
/**
* For PrintScaling values that were not expected from the service
*/
UNEXPECTED_VALUE
}
|
[
"GraphTooling@service.microsoft.com"
] |
GraphTooling@service.microsoft.com
|
51f696d7076b7713f6f2b6512df2e3dfe22de2d5
|
77385a16dd57d3ec587963d20df2d275756591d6
|
/01-Design-Patterns/src/aula04_Decorator/TemplateDeImpostoCondicional.java
|
3b6cc682c1063f63de0ff03240a8dc605e6df7a0
|
[] |
no_license
|
josemalcher/Curso-ALURA-Curso-Design-Patterns-Java-I
|
f7879d2a74f201742f9251c9e473a6fc244905e6
|
7939b21cbf45068945fc8bc0d8921aa86c52d528
|
refs/heads/master
| 2021-01-11T10:13:39.225266
| 2016-11-07T14:10:47
| 2016-11-07T14:10:47
| 72,580,511
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 554
|
java
|
package aula04_Decorator;
public abstract class TemplateDeImpostoCondicional extends Imposto{
@Override
public double calcula(Orcamento orcamento) {
if(deveUsarMaximaTaxacao(orcamento)){
return maximaTaxacao(orcamento) + calculoDoOutroImpostos(orcamento);
}else{
return miniTaxacao(orcamento) + calculoDoOutroImpostos(orcamento);
}
}
public abstract double miniTaxacao(Orcamento orcamento);
public abstract double maximaTaxacao(Orcamento orcamento);
public abstract boolean deveUsarMaximaTaxacao(Orcamento orcamento);
}
|
[
"malcher.malch@gmail.com"
] |
malcher.malch@gmail.com
|
bf38b0742589f91363050f932a480a0ac3668e4c
|
333f031638b9357162730551f5fece29de26f58e
|
/app/src/main/java/com/kinth/football/listener/ISaveListener.java
|
f9bfd60c4137fa4b155c8f8d97b9a0b75b4b22c3
|
[] |
no_license
|
Solaning/cloud-football
|
19a21f0585989c639846f44bd30cdff8aff84f22
|
7e310daceb2694851c6a52c3a956a8bc4a7a3d2f
|
refs/heads/master
| 2021-01-10T15:43:08.658612
| 2015-10-24T08:52:55
| 2015-10-24T08:52:55
| 44,853,394
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 146
|
java
|
package com.kinth.football.listener;
public interface ISaveListener {
public void onSuccess();
public void onFailure(int arg0, String arg1);
}
|
[
"384276310@qq.com"
] |
384276310@qq.com
|
259163b25aa9316c4816d997c8fee2028b939087
|
6b6d7a257784227fcde48fe169fc9a28c33da8e6
|
/app/src/main/java/com/wjx/android/wanandroidmvp/base/application/WanAndroidApplication.java
|
8119da77f98e0839f9d86929fe377df9b31eabf4
|
[
"Apache-2.0"
] |
permissive
|
LillteZheng/WanAndroidMvp
|
66a0adc0ecbbb94f2997d11eaeb453b231024506
|
b31dda65fd0fcd16026a05f6ecf4d6f430ce2d54
|
refs/heads/master
| 2020-12-28T00:37:07.765991
| 2020-02-02T11:11:58
| 2020-02-02T11:11:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,225
|
java
|
package com.wjx.android.wanandroidmvp.base.application;
import android.content.res.Configuration;
import androidx.appcompat.app.AppCompatDelegate;
import com.blankj.utilcode.util.SPUtils;
import com.blankj.utilcode.util.Utils;
import com.wjx.android.wanandroidmvp.base.utils.Constant;
import org.litepal.LitePal;
import org.litepal.LitePalApplication;
/**
* Created with Android Studio.
* Description: Base Application
*
* @author: Wangjianxian
* @date: 2019/12/18
* Time: 21:26
*/
public class WanAndroidApplication extends LitePalApplication {
@Override
public void onCreate() {
super.onCreate();
LitePal.initialize(this);
Utils.init(this);
changeMode();
}
private void changeMode() {
boolean isNightMode = SPUtils.getInstance(Constant.CONFIG_SETTINGS).getBoolean
(Constant.KEY_NIGHT_MODE, false);
int currentMode = getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
boolean isSystemNightMode = currentMode == Configuration.UI_MODE_NIGHT_YES;
AppCompatDelegate.setDefaultNightMode(isNightMode ? AppCompatDelegate.MODE_NIGHT_YES :
AppCompatDelegate.MODE_NIGHT_NO);
}
}
|
[
"jianxianwang198@163.com"
] |
jianxianwang198@163.com
|
50d92751be0364bcd352077ce9f14479c9fa6d6d
|
4d8265c59bc37d9ef7a6f73cfc381b98ac980d28
|
/smalljava-core/src/com/smalljava/core/l5_expression/eval/plugin/two/LogicGreaterOperEvalPlugin.java
|
fde9087cc616ac4a985947e17bb5f5f31dbbf114
|
[
"Apache-2.0"
] |
permissive
|
liujunsong68922/smalljava-v2
|
61b8d076a94eb8cb685e7e268c366e552d992c73
|
7d078e879e6d748fa08a2f0a02fc24fc97ea6f8c
|
refs/heads/main
| 2023-08-16T03:21:38.996010
| 2021-10-13T10:20:57
| 2021-10-13T10:20:57
| 415,445,930
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 3,926
|
java
|
package com.smalljava.core.l5_expression.eval.plugin.two;
import com.smalljava.core.common.VarValue;
import com.smalljava.core.common.logging.Logger;
import com.smalljava.core.common.logging.LoggerFactory;
import com.smalljava.core.l5_expression.eval.ExpressionEval;
import com.smalljava.core.l5_expression.eval.IExpressionEval;
import com.smalljava.core.l5_expression.eval.operelement.DoubleValue;
import com.smalljava.core.l5_expression.eval.operelement.FloatValue;
import com.smalljava.core.l5_expression.eval.operelement.IntegerValue;
import com.smalljava.core.l5_expression.eval.operelement.LongValue;
import com.smalljava.core.l5_expression.vo.RootAST;
import com.smalljava.core.l5_expression.vo.two.DualOperDataOperElement;
import com.smalljava.core.l9_space.classtable.IClassTable;
import com.smalljava.core.l9_space.vartable.IVarTable;
/**
* MEMO 执行加法运算
* @author liujunsong
*
*/
public class LogicGreaterOperEvalPlugin implements IExpressionEval {
private Logger logger = LoggerFactory.getLogger(LogicGreaterOperEvalPlugin.class);
@Override
public VarValue eval(RootAST root, IVarTable vartable, IClassTable classtable) {
if (root == null || vartable == null || classtable == null) {
return null;
}
if (root instanceof DualOperDataOperElement) {
DualOperDataOperElement oper = (DualOperDataOperElement) root;
// 加法计算
if (oper.getOpercode().equals(">")) {
RootAST leftelement = oper.getChildren().get(0);
RootAST rightelement = oper.getChildren().get(1);
// 生成一个新的评估器
ExpressionEval eeval = new ExpressionEval();
VarValue leftvar = eeval.eval(leftelement, vartable, classtable);
VarValue rightvar = eeval.eval(rightelement, vartable, classtable);
if (leftvar == null || rightvar == null) {
logger.error("加法计算失败,参数为null");
return null;
}
if (leftvar.getVartype() == null) {
logger.error("程序逻辑错误,左操作对象类型为null");
return null;
}
if (leftvar.getVartype().equals("int")) {
IntegerValue intoper = new IntegerValue(leftvar.getVarsvalue());
boolean b1 = intoper.doGreater(rightvar.getVarsvalue());
VarValue varvalue1 = new VarValue();
varvalue1.setVarname("");
varvalue1.setVartype("boolean");
varvalue1.setVarsvalue("" + b1);
return varvalue1;
}
if (leftvar.getVartype().equals("long")) {
LongValue longoper = new LongValue(leftvar.getVarsvalue());
// 把第二个节点的字符串传进去
logger.error("Long右面操作数:" + rightvar.getVarsvalue());
boolean b2 = longoper.doGreater(rightvar.getVarsvalue());
VarValue varvalue2 = new VarValue();
varvalue2.setVarname("");
varvalue2.setVartype("boolean");
varvalue2.setVarsvalue("" + b2);
return varvalue2;
}
if (leftvar.getVartype().equals("float")) {
FloatValue floatoper = new FloatValue(leftvar.getVarsvalue());
logger.error("Float右面操作数:" + rightvar.getVarsvalue());
boolean b3 = floatoper.doGreater(rightvar.getVarsvalue());
VarValue varvalue3 = new VarValue();
varvalue3.setVarname("");
varvalue3.setVartype("boolean");
varvalue3.setVarsvalue("" + b3);
return varvalue3;
}
if (leftvar.getVartype().equals("double")) {
DoubleValue doubleoper = new DoubleValue(leftvar.getVarsvalue());
;
// 把第二个节点的字符串传进去
logger.error("Double右面操作数:" + rightvar.getVarsvalue());
boolean b4 = doubleoper.doGreater(rightvar.getVarsvalue());
VarValue varvalue4 = new VarValue();
varvalue4.setVarname("");
varvalue4.setVartype("boolean");
varvalue4.setVarsvalue("" + b4);
return varvalue4;
}
logger.error("【ERROR】GE操作遇到了不支持的数据类型:" + leftvar.getVartype());
return null;
}
}
return null;
}
}
|
[
"liujunsong@aliyun.com"
] |
liujunsong@aliyun.com
|
6f16620d42500a7730a6a7129e3b9fcbf90d643f
|
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
|
/src/chosun/ciis/ad/tax/dao/AdTax1000DAO.java
|
e538b7a873de7080c5e94c8c749ab972cf7c175d
|
[] |
no_license
|
nosmoon/misdevteam
|
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
|
1829d5bd489eb6dd307ca244f0e183a31a1de773
|
refs/heads/master
| 2020-04-15T15:57:05.480056
| 2019-01-10T01:12:01
| 2019-01-10T01:12:01
| 164,812,547
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 7,738
|
java
|
/***************************************************************************************************
* 파일명 : AdTax1000DAO.java
* 기능 :
* 작성일자 :
* 작성자 :
***************************************************************************************************/
/***************************************************************************************************
* 수정내역 :
* 수정자 :
* 수정일자 :
* 백업 :
***************************************************************************************************/
package chosun.ciis.ad.tax.dao;
import somo.framework.db.DBManager;
import somo.framework.expt.AppException;
import chosun.ciis.ad.common.dm.AD_CO_9004_SDM;
import chosun.ciis.ad.common.ds.AD_CO_9004_SDataSet;
import chosun.ciis.ad.tax.dm.AD_TAX_1000_MDM;
import chosun.ciis.ad.tax.dm.AD_TAX_1010_LDM;
import chosun.ciis.ad.tax.dm.AD_TAX_1020_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1021_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1022_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1023_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1030_SDM;
import chosun.ciis.ad.tax.dm.AD_TAX_1040_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1041_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1050_LDM;
import chosun.ciis.ad.tax.dm.AD_TAX_1060_LDM;
import chosun.ciis.ad.tax.dm.AD_TAX_1070_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1071_ADM;
import chosun.ciis.ad.tax.dm.AD_TAX_1011_SDM;
import chosun.ciis.ad.tax.ds.AD_TAX_1000_MDataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1010_LDataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1020_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1021_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1022_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1023_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1030_SDataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1040_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1041_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1050_LDataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1060_LDataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1070_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1071_ADataSet;
import chosun.ciis.ad.tax.ds.AD_TAX_1011_SDataSet;
/**
*
*/
public class AdTax1000DAO {
public AD_TAX_1000_MDataSet ad_tax_1000_m(AD_TAX_1000_MDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1000_MDataSet ds = (AD_TAX_1000_MDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1010_LDataSet ad_tax_1010_l(AD_TAX_1010_LDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1010_LDataSet ds = (AD_TAX_1010_LDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1011_SDataSet ad_tax_1011_s(AD_TAX_1011_SDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1011_SDataSet ds = (AD_TAX_1011_SDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_CO_9004_SDataSet ad_tax_1012_s(AD_CO_9004_SDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_CO_9004_SDataSet ds = (AD_CO_9004_SDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1020_ADataSet ad_tax_1020_a(AD_TAX_1020_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1020_ADataSet ds = (AD_TAX_1020_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1021_ADataSet ad_tax_1021_a(AD_TAX_1021_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1021_ADataSet ds = (AD_TAX_1021_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1022_ADataSet ad_tax_1022_a(AD_TAX_1022_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1022_ADataSet ds = (AD_TAX_1022_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1023_ADataSet ad_tax_1023_a(AD_TAX_1023_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1023_ADataSet ds = (AD_TAX_1023_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1030_SDataSet ad_tax_1030_s(AD_TAX_1030_SDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1030_SDataSet ds = (AD_TAX_1030_SDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1040_ADataSet ad_tax_1040_a(AD_TAX_1040_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1040_ADataSet ds = (AD_TAX_1040_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1041_ADataSet ad_tax_1041_a(AD_TAX_1041_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1041_ADataSet ds = (AD_TAX_1041_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1050_LDataSet ad_tax_1050_l(AD_TAX_1050_LDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1050_LDataSet ds = (AD_TAX_1050_LDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1060_LDataSet ad_tax_1060_l(AD_TAX_1060_LDM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1060_LDataSet ds = (AD_TAX_1060_LDataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1070_ADataSet ad_tax_1070_a(AD_TAX_1070_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1070_ADataSet ds = (AD_TAX_1070_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
public AD_TAX_1071_ADataSet ad_tax_1071_a(AD_TAX_1071_ADM dm) throws AppException {
DBManager manager = new DBManager("MISADV");
AD_TAX_1071_ADataSet ds = (AD_TAX_1071_ADataSet) manager.executeCall(dm);
if (!"".equals(ds.errcode)) {
throw new AppException(ds.errcode, ds.errmsg);
}
return ds;
}
}
|
[
"DLCOM000@172.16.30.11"
] |
DLCOM000@172.16.30.11
|
0aed1cd87f0502081f1d91db3d12ac55e9000390
|
951a2cebfb3b742a0b9da0dee787f4610505292c
|
/toq/Misc/JavaSrc/org/apache/log4j/pattern/ThreadPatternConverter.java
|
e99b2b98e2019d94e97f57a917d29b9da8ac01fc
|
[] |
no_license
|
marciallus/mytoqmanager
|
eca30683508878b712e9c1c6642f39f34c2e257b
|
65fe1d54e8593900262d5b263d75feb646c015e6
|
refs/heads/master
| 2020-05-17T01:03:44.121469
| 2014-12-10T07:22:14
| 2014-12-10T07:22:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 863
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) fieldsfirst noctor space
package org.apache.log4j.pattern;
import org.apache.log4j.spi.LoggingEvent;
// Referenced classes of package org.apache.log4j.pattern:
// LoggingEventPatternConverter
public class ThreadPatternConverter extends LoggingEventPatternConverter
{
private static final ThreadPatternConverter INSTANCE = new ThreadPatternConverter();
private ThreadPatternConverter()
{
super("Thread", "thread");
}
public static ThreadPatternConverter newInstance(String as[])
{
return INSTANCE;
}
public void format(LoggingEvent loggingevent, StringBuffer stringbuffer)
{
stringbuffer.append(loggingevent.getThreadName());
}
}
|
[
"marc.lanouiller@gmail.com"
] |
marc.lanouiller@gmail.com
|
e24544817157903f18da6b693312fd4155bc16c9
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_59df3e5fd25aac4a7f81fd22e04743d71530df7d/ChecksumExtractor/19_59df3e5fd25aac4a7f81fd22e04743d71530df7d_ChecksumExtractor_s.java
|
7cad54d3cae97d244bc2da7cf248f6a50bee5520
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,011
|
java
|
/*
* #%L
* Bitrepository Reference Pillar
* %%
* Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
* This 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 Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
* #L%
*/
package org.bitrepository.pillar.cache.database;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.bitrepository.service.database.DBConnector;
import org.bitrepository.service.database.DatabaseUtils;
import org.bitrepository.pillar.cache.ChecksumEntry;
import static org.bitrepository.pillar.cache.database.DatabaseConstants.CHECKSUM_TABLE;
import static org.bitrepository.pillar.cache.database.DatabaseConstants.CS_CHECKSUM;
import static org.bitrepository.pillar.cache.database.DatabaseConstants.CS_DATE;
import static org.bitrepository.pillar.cache.database.DatabaseConstants.CS_FILE_ID;
/**
* Extracts data from the checksum database.
*/
public class ChecksumExtractor {
/** The connector for the database.*/
private final DBConnector connector;
/**
* Constructor.
* @param connector The connector for the database.
*/
public ChecksumExtractor(DBConnector connector) {
this.connector = connector;
}
/**
* Extracts the date for a given file.
* @param fileId The id of the file to extract the date for.
* @return The date for the given file.
*/
public Date extractDateForFile(String fileId) {
String sql = "SELECT " + CS_DATE + " FROM " + CHECKSUM_TABLE + " WHERE " + CS_FILE_ID + " = ?";
return DatabaseUtils.selectDateValue(connector, sql, fileId);
}
/**
* Extracts the checksum for a given file.
* @param fileId The id of the file to extract the checksum for.
* @return The checksum for the given file.
*/
public String extractChecksumForFile(String fileId) {
String sql = "SELECT " + CS_CHECKSUM + " FROM " + CHECKSUM_TABLE + " WHERE " + CS_FILE_ID + " = ?";
return DatabaseUtils.selectStringValue(connector, sql, fileId);
}
/**
* Extracts whether a given file exists.
* @param fileId The id of the file to extract whose existence is in question.
* @return Whether the given file exists.
*/
public boolean hasFile(String fileId) {
String sql = "SELECT COUNT(*) FROM " + CHECKSUM_TABLE + " WHERE " + CS_FILE_ID + " = ?";
return DatabaseUtils.selectIntValue(connector, sql, fileId) != 0;
}
/**
* Extracts all the file ids in the table.
* @return The list of file ids.
*/
public List<String> getAllFileIDs() {
String sql = "SELECT " + CS_FILE_ID + " FROM " + CHECKSUM_TABLE;
return DatabaseUtils.selectStringList(connector, sql, new Object[0]);
}
/**
* Extracts the checksum entry for a single file.
* @param fileId The id of the file whose checksum entry should be extracted.
* @return The checksum entry for the file.
*/
public ChecksumEntry extractSingleEntry(String fileId) {
String sql = "SELECT " + CS_FILE_ID + " , " + CS_CHECKSUM + " , " + CS_DATE + " FROM " + CHECKSUM_TABLE
+ " WHERE " + CS_FILE_ID + " = ?";
try {
PreparedStatement ps = null;
ResultSet res = null;
Connection conn = null;
try {
conn = connector.getConnection();
ps = DatabaseUtils.createPreparedStatement(conn, sql, fileId);
res = ps.executeQuery();
if(!res.next()) {
throw new IllegalStateException("No entry for the file '" + fileId + "'.");
}
return extractChecksumEntry(res);
} finally {
if(res != null) {
res.close();
}
if(ps != null) {
ps.close();
}
if(conn != null) {
conn.close();
}
}
} catch (SQLException e) {
throw new IllegalStateException("Cannot extract the ChecksumEntry for '" + fileId + "'", e);
}
}
/**
* Extracts all the checksum entries in the database.
* @return The checksum entry for the file.
*/
public List<ChecksumEntry> extractAllEntries() {
String sql = "SELECT " + CS_FILE_ID + " , " + CS_CHECKSUM + " , " + CS_DATE + " FROM " + CHECKSUM_TABLE;
try {
PreparedStatement ps = null;
ResultSet resultSet = null;
Connection conn = null;
List<ChecksumEntry> res = new ArrayList<ChecksumEntry>();
try {
conn = connector.getConnection();
ps = DatabaseUtils.createPreparedStatement(conn, sql, new Object[0]);
resultSet = ps.executeQuery();
while(resultSet.next()) {
res.add(extractChecksumEntry(resultSet));
}
return res;
} finally {
if(res != null) {
resultSet.close();
}
if(ps != null) {
ps.close();
}
if(conn != null) {
conn.close();
}
}
} catch (SQLException e) {
throw new IllegalStateException("Cannot extract all the ChecksumEntries", e);
}
}
/**
* Extracts a checksum entry from a result set.
* The result set needs to have requested the elements in the right order:
* - File id.
* - Checksum.
* - Date.
*
* @param resSet The resultset from the database.
* @return The checksum entry extracted from the result set.
*/
private ChecksumEntry extractChecksumEntry(ResultSet resSet) throws SQLException {
String fileId = resSet.getString(1);
String checksum = resSet.getString(2);
Date date = resSet.getTimestamp(3);
return new ChecksumEntry(fileId, checksum, date);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
032fe5876d90b43168a5065285cb1afc49ae49f9
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-3b-8-20-MOEAD-WeightedSum:TestLen:CallDiversity/org/mockito/internal/handler/NullResultGuardian_ESTest.java
|
72bb280d0a4da532178b6b0f00e1fc1555505e01
|
[] |
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
| 571
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Apr 07 14:47:33 UTC 2020
*/
package org.mockito.internal.handler;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class NullResultGuardian_ESTest extends NullResultGuardian_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
4a7db0b4b3db01b12201ee13e91f31e2d6923ae8
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Lang/44/org/apache/commons/lang/math/NumberRange_toString_229.java
|
6500441c4f0d8c120abf9ff42bb0a299e383931d
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 767
|
java
|
org apach common lang math
code number rang numberrang code repres inclus rang
link java lang number object type
author href mailto chrise esha christoph elkin
author stephen colebourn
previous org apach common lang
version
number rang numberrang rang serializ
rang code string code
format string rang 'rang min max
code string code represent rang
string string tostr
string tostr
string buffer stringbuff buf string buffer stringbuff
buf append rang
buf append min
buf append
buf append max
buf append
string tostr buf string tostr
string tostr
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
ac2a194f745bf938207131dfb6a06c9b0d381ff9
|
e054c1e6903e4b5eb166d107802c0c2cadd2eb03
|
/modules/datex-serializer/src/generated/java/eu/datex2/schema/_3/locationreferencing/PointCoordinates.java
|
86c92d0fa2baa69abfb1288ca1b59a40af4b3fe5
|
[
"MIT"
] |
permissive
|
svvsaga/gradle-modules-public
|
02dc90ad2feb58aef7629943af3e0d3a9f61d5cf
|
e4ef4e2ed5d1a194ff426411ccb3f81d34ff4f01
|
refs/heads/main
| 2023-05-27T08:25:36.578399
| 2023-05-12T14:15:47
| 2023-05-12T14:33:14
| 411,986,217
| 2
| 1
|
MIT
| 2023-05-12T14:33:15
| 2021-09-30T08:36:11
|
Java
|
UTF-8
|
Java
| false
| false
| 5,568
|
java
|
package eu.datex2.schema._3.locationreferencing;
import java.util.ArrayList;
import java.util.List;
import eu.datex2.schema._3.common._ExtensionType;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* <p>Java class for PointCoordinates complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PointCoordinates">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="latitude" type="{http://datex2.eu/schema/3/common}Float"/>
* <element name="longitude" type="{http://datex2.eu/schema/3/common}Float"/>
* <element name="heightCoordinate" type="{http://datex2.eu/schema/3/locationReferencing}HeightCoordinate" maxOccurs="3" minOccurs="0"/>
* <element name="positionConfidenceEllipse" type="{http://datex2.eu/schema/3/locationReferencing}PositionConfidenceEllipse" minOccurs="0"/>
* <element name="horizontalPositionAccuracy" type="{http://datex2.eu/schema/3/locationReferencing}PositionAccuracy" minOccurs="0"/>
* <element name="_pointCoordinatesExtension" type="{http://datex2.eu/schema/3/common}_ExtensionType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PointCoordinates", propOrder = {
"latitude",
"longitude",
"heightCoordinate",
"positionConfidenceEllipse",
"horizontalPositionAccuracy",
"_PointCoordinatesExtension"
})
public class PointCoordinates {
protected float latitude;
protected float longitude;
protected List<HeightCoordinate> heightCoordinate;
protected PositionConfidenceEllipse positionConfidenceEllipse;
protected PositionAccuracy horizontalPositionAccuracy;
@XmlElement(name = "_pointCoordinatesExtension")
protected _ExtensionType _PointCoordinatesExtension;
/**
* Gets the value of the latitude property.
*
*/
public float getLatitude() {
return latitude;
}
/**
* Sets the value of the latitude property.
*
*/
public void setLatitude(float value) {
this.latitude = value;
}
/**
* Gets the value of the longitude property.
*
*/
public float getLongitude() {
return longitude;
}
/**
* Sets the value of the longitude property.
*
*/
public void setLongitude(float value) {
this.longitude = value;
}
/**
* Gets the value of the heightCoordinate property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the heightCoordinate property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getHeightCoordinate().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link HeightCoordinate }
*
*
*/
public List<HeightCoordinate> getHeightCoordinate() {
if (heightCoordinate == null) {
heightCoordinate = new ArrayList<HeightCoordinate>();
}
return this.heightCoordinate;
}
/**
* Gets the value of the positionConfidenceEllipse property.
*
* @return
* possible object is
* {@link PositionConfidenceEllipse }
*
*/
public PositionConfidenceEllipse getPositionConfidenceEllipse() {
return positionConfidenceEllipse;
}
/**
* Sets the value of the positionConfidenceEllipse property.
*
* @param value
* allowed object is
* {@link PositionConfidenceEllipse }
*
*/
public void setPositionConfidenceEllipse(PositionConfidenceEllipse value) {
this.positionConfidenceEllipse = value;
}
/**
* Gets the value of the horizontalPositionAccuracy property.
*
* @return
* possible object is
* {@link PositionAccuracy }
*
*/
public PositionAccuracy getHorizontalPositionAccuracy() {
return horizontalPositionAccuracy;
}
/**
* Sets the value of the horizontalPositionAccuracy property.
*
* @param value
* allowed object is
* {@link PositionAccuracy }
*
*/
public void setHorizontalPositionAccuracy(PositionAccuracy value) {
this.horizontalPositionAccuracy = value;
}
/**
* Gets the value of the _PointCoordinatesExtension property.
*
* @return
* possible object is
* {@link _ExtensionType }
*
*/
public _ExtensionType get_PointCoordinatesExtension() {
return _PointCoordinatesExtension;
}
/**
* Sets the value of the _PointCoordinatesExtension property.
*
* @param value
* allowed object is
* {@link _ExtensionType }
*
*/
public void set_PointCoordinatesExtension(_ExtensionType value) {
this._PointCoordinatesExtension = value;
}
}
|
[
"geir.sagberg@gmail.com"
] |
geir.sagberg@gmail.com
|
a2536ced716d3377b0710720a481010e9e9406c0
|
84e3dfdf4e7887c0bc421c0771bb6e3eb5f19ead
|
/opennlp-distr/target/filtered-md/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java
|
030754d4d3d688753ae23340f97e33111a8d9e30
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
shrsv/opennlp-testing
|
0db621dfc112fe56a1777d90ee53f3adb74c14f4
|
aad23bcbbedb628dce0e30cf0982a87ff06a5fa9
|
refs/heads/master
| 2023-04-23T01:36:18.018271
| 2020-05-30T23:01:42
| 2020-05-30T23:01:42
| 258,618,873
| 1
| 0
|
Apache-2.0
| 2021-04-26T20:20:05
| 2020-04-24T20:37:28
|
HTML
|
UTF-8
|
Java
| false
| false
| 4,278
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package opennlp.tools.namefind;
import opennlp.tools.dictionary.Dictionary;
import opennlp.tools.tokenize.SimpleTokenizer;
import opennlp.tools.util.Span;
import opennlp.tools.util.StringList;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Tests for the {@link DictionaryNameFinder} class.
*/
public class DictionaryNameFinderTest {
private Dictionary mDictionary = new Dictionary();
private TokenNameFinder mNameFinder;
public DictionaryNameFinderTest() {
StringList vanessa = new StringList(new String[]{"Vanessa"});
mDictionary.put(vanessa);
StringList vanessaWilliams = new StringList("Vanessa", "Williams");
mDictionary.put(vanessaWilliams);
StringList max = new StringList(new String[]{"Max"});
mDictionary.put(max);
StringList michaelJordan = new
StringList("Michael", "Jordan");
mDictionary.put(michaelJordan);
}
@Before
public void setUp() throws Exception {
mNameFinder = new DictionaryNameFinder(mDictionary);
}
@Test
public void testSingleTokeNameAtSentenceStart() {
String sentence = "Max a b c d";
SimpleTokenizer tokenizer = SimpleTokenizer.INSTANCE;
String[] tokens = tokenizer.tokenize(sentence);
Span[] names = mNameFinder.find(tokens);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].getStart() == 0 && names[0].getEnd() == 1);
}
@Test
public void testSingleTokeNameInsideSentence() {
String sentence = "a b Max c d";
SimpleTokenizer tokenizer = SimpleTokenizer.INSTANCE;
String[] tokens = tokenizer.tokenize(sentence);
Span[] names = mNameFinder.find(tokens);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].getStart() == 2 && names[0].getEnd() == 3);
}
@Test
public void testSingleTokeNameAtSentenceEnd() {
String sentence = "a b c Max";
SimpleTokenizer tokenizer = SimpleTokenizer.INSTANCE;
String[] tokens = tokenizer.tokenize(sentence);
Span[] names = mNameFinder.find(tokens);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].getStart() == 3 && names[0].getEnd() == 4);
}
@Test
public void testLastMatchingTokenNameIsChoosen() {
String[] sentence = {"a", "b", "c", "Vanessa"};
Span[] names = mNameFinder.find(sentence);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].getStart() == 3 && names[0].getEnd() == 4);
}
@Test
public void testLongerTokenNameIsPreferred() {
String[] sentence = {"a", "b", "c", "Vanessa", "Williams"};
Span[] names = mNameFinder.find(sentence);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].getStart() == 3 && names[0].getEnd() == 5);
}
@Test
public void testCaseSensitivity() {
String[] sentence = {"a", "b", "c", "vanessa", "williams"};
Span[] names = mNameFinder.find(sentence);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].getStart() == 3 && names[0].getEnd() == 5);
}
@Test
public void testCaseLongerEntry() {
String[] sentence = {"a", "b", "michael", "jordan"};
Span[] names = mNameFinder.find(sentence);
Assert.assertTrue(names.length == 1);
Assert.assertTrue(names[0].length() == 2);
}
}
|
[
"shrijith.sv@gmail.com"
] |
shrijith.sv@gmail.com
|
f5c25a9704ec1cee3c3c02b35fdb41eab2040b78
|
027b42368e671d4ccb244a4a816ad26b455919f2
|
/app/src/main/java/com/yadong/pattern/creational/prototype/shallow_clone/MailUtil.java
|
cfee12a2e3bd5a3af6f4c7e624a485d19b00051d
|
[] |
no_license
|
ydstar/DesignPattern
|
de38fc9260ea2a6b2c950e8fda72e8fc4da46e50
|
42f77a4807b058ed5e5f4365e736809d88061cc3
|
refs/heads/master
| 2022-04-19T12:30:09.050210
| 2020-04-16T02:15:26
| 2020-04-16T02:15:26
| 138,538,416
| 19
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 542
|
java
|
package com.yadong.pattern.creational.prototype.shallow_clone;
import java.text.MessageFormat;
public class MailUtil {
public static void sendMail(Mail mail){
String outputContent = "向{0}同学,邮件地址:{1},邮件内容:{2}发送邮件成功";
System.out.println(MessageFormat.format(outputContent,mail.getName(),mail.getEmailAddress(),mail.getContent()));
}
public static void saveOriginMailRecord(Mail mail){
System.out.println("存储originMail记录,originMail:"+mail.getContent());
}
}
|
[
"hydznsqk@163.com"
] |
hydznsqk@163.com
|
d26d7807080369cbe2cae6cb66a5d93e8ac3c763
|
17c30fed606a8b1c8f07f3befbef6ccc78288299
|
/Mate10_8_1_0/src/main/java/com/android/internal/telephony/HwPhone.java
|
9809c5cae2209c38eda79b018489d2e3dc0d6072
|
[] |
no_license
|
EggUncle/HwFrameWorkSource
|
4e67f1b832a2f68f5eaae065c90215777b8633a7
|
162e751d0952ca13548f700aad987852b969a4ad
|
refs/heads/master
| 2020-04-06T14:29:22.781911
| 2018-11-09T05:05:03
| 2018-11-09T05:05:03
| 157,543,151
| 1
| 0
| null | 2018-11-14T12:08:01
| 2018-11-14T12:08:01
| null |
UTF-8
|
Java
| false
| false
| 6,404
|
java
|
package com.android.internal.telephony;
import android.os.Message;
import android.telephony.CellLocation;
import android.telephony.Rlog;
import com.android.internal.telephony.PhoneConstants.DataState;
import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType;
public class HwPhone {
private static final /* synthetic */ int[] -com-android-internal-telephony-uicc-IccCardApplicationStatus$AppTypeSwitchesValues = null;
private static final String LOG_TAG = "HwPhone";
private Phone mPhone;
private static /* synthetic */ int[] -getcom-android-internal-telephony-uicc-IccCardApplicationStatus$AppTypeSwitchesValues() {
if (-com-android-internal-telephony-uicc-IccCardApplicationStatus$AppTypeSwitchesValues != null) {
return -com-android-internal-telephony-uicc-IccCardApplicationStatus$AppTypeSwitchesValues;
}
int[] iArr = new int[AppType.values().length];
try {
iArr[AppType.APPTYPE_CSIM.ordinal()] = 1;
} catch (NoSuchFieldError e) {
}
try {
iArr[AppType.APPTYPE_ISIM.ordinal()] = 2;
} catch (NoSuchFieldError e2) {
}
try {
iArr[AppType.APPTYPE_RUIM.ordinal()] = 3;
} catch (NoSuchFieldError e3) {
}
try {
iArr[AppType.APPTYPE_SIM.ordinal()] = 4;
} catch (NoSuchFieldError e4) {
}
try {
iArr[AppType.APPTYPE_UNKNOWN.ordinal()] = 6;
} catch (NoSuchFieldError e5) {
}
try {
iArr[AppType.APPTYPE_USIM.ordinal()] = 5;
} catch (NoSuchFieldError e6) {
}
-com-android-internal-telephony-uicc-IccCardApplicationStatus$AppTypeSwitchesValues = iArr;
return iArr;
}
public HwPhone(Phone phoneproxy) {
this.mPhone = phoneproxy;
log("init HwPhone mPhone = " + this.mPhone);
}
private void log(String msg) {
Rlog.d(LOG_TAG, "[PhoneIntfMgr] " + msg);
}
public String getMeid() {
return this.mPhone.getMeid();
}
public String getPesn() {
return this.mPhone.getPesn();
}
public String getNVESN() {
return this.mPhone.getNVESN();
}
public void closeRrc() {
this.mPhone.closeRrc();
}
public boolean isCDMAPhone() {
if (this.mPhone == null || (((GsmCdmaPhone) this.mPhone).isPhoneTypeGsm() ^ 1) == 0) {
return false;
}
return true;
}
public void setDefaultMobileEnable(boolean enabled) {
this.mPhone.mDcTracker.setEnabledPublic(0, enabled);
}
public void setDataEnabledWithoutPromp(boolean enabled) {
this.mPhone.mDcTracker.setDataEnabled(enabled);
}
public void setDataRoamingEnabledWithoutPromp(boolean enabled) {
this.mPhone.mDcTracker.setDataRoamingEnabledByUser(enabled);
}
public DataState getDataConnectionState() {
return this.mPhone.getDataConnectionState();
}
public void setPreferredNetworkType(int networkType, Message response) {
this.mPhone.setPreferredNetworkType(networkType, response);
}
public void getPreferredNetworkType(Message response) {
this.mPhone.getPreferredNetworkType(response);
}
public String getImei() {
return this.mPhone.getImei();
}
public Phone getPhone() {
return this.mPhone;
}
public int getHwPhoneType() {
Rlog.d(LOG_TAG, "[enter]getHwPhoneType");
return this.mPhone.getPhoneType();
}
public String getCdmaGsmImsi() {
Rlog.d(LOG_TAG, "getCdmaGsmImsi: in HuaweiPhoneService");
return this.mPhone.getCdmaGsmImsi();
}
public int getUiccCardType() {
Rlog.d(LOG_TAG, "[enter]getUiccCardType");
return this.mPhone.getUiccCardType();
}
public CellLocation getCellLocation() {
Rlog.d(LOG_TAG, "[enter]getUiccCardType");
return this.mPhone.getCellLocation();
}
public String getCdmaMlplVersion() {
Rlog.d(LOG_TAG, "getCdmaMlplVersion: in HuaweiPhoneService");
return this.mPhone.getCdmaMlplVersion();
}
public String getCdmaMsplVersion() {
Rlog.d(LOG_TAG, "getCdmaMsplVersion: in HuaweiPhoneService");
return this.mPhone.getCdmaMsplVersion();
}
public void testVoiceLoopBack(int mode) {
this.mPhone.testVoiceLoopBack(mode);
}
public boolean setISMCOEX(String setISMCoex) {
return this.mPhone.setISMCOEX(setISMCoex);
}
public int getUiccAppType() {
switch (-getcom-android-internal-telephony-uicc-IccCardApplicationStatus$AppTypeSwitchesValues()[this.mPhone.getCurrentUiccAppType().ordinal()]) {
case 1:
return 4;
case 2:
return 5;
case 3:
return 3;
case 4:
return 1;
case 5:
return 2;
default:
return 0;
}
}
public boolean isRadioAvailable() {
return this.mPhone.isRadioAvailable();
}
public void setImsSwitch(boolean value) {
this.mPhone.setImsSwitch(value);
}
public boolean getImsSwitch() {
return this.mPhone.getImsSwitch();
}
public void setImsDomainConfig(int domainType) {
this.mPhone.setImsDomainConfig(domainType);
}
public void handleMapconImsaReq(byte[] Msg) {
this.mPhone.handleMapconImsaReq(Msg);
}
public void getImsDomain(Message Msg) {
this.mPhone.getImsDomain(Msg);
}
public void handleUiccAuth(int auth_type, byte[] rand, byte[] auth, Message Msg) {
this.mPhone.handleUiccAuth(auth_type, rand, auth, Msg);
}
public boolean cmdForECInfo(int event, int action, byte[] buf) {
try {
return this.mPhone.cmdForECInfo(event, action, buf);
} catch (Exception ex) {
Rlog.e(LOG_TAG, "cmdForECInfo fail:" + ex);
return false;
}
}
public void requestForECInfo(Message msg, int event, byte[] buf) {
this.mPhone.sendHWSolicited(msg, event, buf);
}
public boolean isCtSimCard() {
String iccId = this.mPhone.getIccSerialNumber();
if (iccId == null || iccId.length() < 7) {
return false;
}
return HwAllInOneController.isCTCard(iccId.substring(0, 7));
}
}
|
[
"lygforbs0@mail.com"
] |
lygforbs0@mail.com
|
4c1466de74d119439680401958997297c1e102b4
|
8f30ec284c29e02d8cacf2ef0b2b901d84fddb7a
|
/net.dougqh.jak.core/src/net/dougqh/jak/JavaModifiers.java
|
e545bc1c1b988a4341a6ca0495c689abdeececd7
|
[
"BSD-3-Clause",
"BSD-2-Clause"
] |
permissive
|
dougqh/JAK
|
8b7096766b36909262d03a3754ae71b1c8c67e03
|
e10da7384cce6466530c12378ee782a1d8209b51
|
refs/heads/master
| 2021-01-01T16:19:39.434996
| 2013-04-04T04:01:42
| 2013-04-04T04:01:42
| 732,624
| 11
| 2
| null | 2013-04-04T04:01:27
| 2010-06-21T20:00:44
|
Java
|
UTF-8
|
Java
| false
| false
| 6,442
|
java
|
package net.dougqh.jak;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.Arrays;
import java.util.List;
import net.dougqh.functional.Filter;
import static net.dougqh.jak.Flags.*;
import static net.dougqh.jak.Methods.*;
public final class JavaModifiers extends Filter<JavaElement> {
private static final TypeVariable<?>[] EMPTY_TYPE_VARS = {};
private final int flags;
private final TypeVariable<?>[] typeVars;
JavaModifiers() {
this( NO_FLAGS );
}
JavaModifiers( final int flag ) {
this.flags = flag;
this.typeVars = EMPTY_TYPE_VARS;
}
JavaModifiers(
final JavaModifiers baseModifiers,
final int flag )
{
if ( baseModifiers.typeVars.length != 0 ) {
throw new IllegalStateException();
}
this.flags = baseModifiers.flags | flag;
this.typeVars = EMPTY_TYPE_VARS;
}
JavaModifiers(
final JavaModifiers baseModifiers,
final TypeVariable<?>[] typeVars )
{
if ( baseModifiers.typeVars.length != 0 ) {
throw new IllegalStateException();
}
this.flags = baseModifiers.flags;
this.typeVars = typeVars;
}
@Override
public final boolean matches(final JavaElement javaElement) {
return ( (javaElement.getFlags() & this.flags) == this.flags );
}
public final JavaModifiers public_() {
return new JavaModifiers( this, PUBLIC );
}
public final JavaModifiers protected_() {
return new JavaModifiers( this, PROTECTED );
}
public final JavaModifiers private_() {
return new JavaModifiers( this, PRIVATE );
}
public final JavaModifiers static_() {
return new JavaModifiers( this, STATIC );
}
public final JavaModifiers abstract_() {
return new JavaModifiers( this, ABSTRACT );
}
public final JavaModifiers final_() {
return new JavaModifiers( this, FINAL );
}
public final JavaModifiers synchronized_() {
return new JavaModifiers( this, SYNCHRONIZED );
}
public final JavaModifiers native_() {
return new JavaModifiers( this, NATIVE );
}
public final JavaModifiers strictfp_() {
return new JavaModifiers( this, STRICTFP );
}
public final JavaModifiers volatile_() {
return new JavaModifiers( this, VOLATILE );
}
public final JavaModifiers transient_() {
return new JavaModifiers( this, TRANSIENT );
}
public final JavaModifiers varargs() {
return new JavaModifiers( this, VAR_ARGS );
}
public final JavaModifiers parameterize( final TypeVariable<?>... typeArgs ) {
return new JavaModifiers( this, typeArgs );
}
public final JavaFieldImpl field(
final Type fieldType,
final CharSequence fieldName )
{
return new JavaFieldImpl(
this,
fieldType,
fieldName );
}
public final JavaMethodDescriptor method(
final Type returnType,
final String methodName )
{
return new JavaMethodDescriptor(
this,
returnType,
methodName );
}
public final JavaMethodDescriptor method(
final Type returnType,
final String methodName,
final Type arg1Type, final String arg1Name )
{
return this.method( returnType, methodName ).
arg( arg1Type, arg1Name );
}
public final JavaMethodDescriptor method(
final Type returnType,
final String methodName,
final Type arg1Type, final String arg1Name,
final Type arg2Type, final String arg2Name )
{
return this.method( returnType, methodName ).
arg( arg1Type, arg1Name ).
arg( arg2Type, arg2Name );
}
public final JavaMethodDescriptor method(
final Type returnType,
final String methodName,
final Type arg1Type, final String arg1Name,
final Type arg2Type, final String arg2Name,
final Type arg3Type, final String arg3Name )
{
return this.method( returnType, methodName ).
arg( arg1Type, arg1Name ).
arg( arg2Type, arg2Name ).
arg( arg3Type, arg3Name );
}
public final JavaMethodDescriptor method(
final Type returnType,
final String methodName,
final Type... args )
{
return this.method( returnType, methodName ).args( args );
}
public final JavaMethodDescriptor method(
final Type returnType,
final String methodName,
final List<? extends Type> args )
{
return this.method( returnType, methodName ).args( args );
}
public final JavaMethodDescriptor init() {
return new JavaMethodDescriptor( this, void.class, INIT );
}
public final JavaMethodDescriptor init( final Type... args ) {
return this.init().args( args );
}
public final JavaClassDescriptor class_( final Package aPackage, final String className ) {
return new JavaClassDescriptor( this, aPackage.getName() + "." + className );
}
public final JavaClassDescriptor class_( final String className ) {
return new JavaClassDescriptor( this, className );
}
public final JavaInterfaceDescriptor interface_( final String interfaceName ) {
return new JavaInterfaceDescriptor( this, interfaceName );
}
public final JavaInterfaceDescriptor interface_( final Package aPackage, final String interfaceName ) {
return new JavaInterfaceDescriptor( this, aPackage.getName() + "." + interfaceName );
}
public final JavaEnumDescriptor enum_( final Package aPackage, final String className ) {
return new JavaEnumDescriptor( this, aPackage.getName() + "." + className );
}
public final JavaEnumDescriptor enum_( final String className ) {
return new JavaEnumDescriptor( this, className );
}
public final JavaAnnotationDescriptor $interface( final String annotationName ) {
return new JavaAnnotationDescriptor( this, annotationName );
}
public final JavaAnnotationDescriptor annotation( final String annotationName ) {
return $interface( annotationName );
}
public final JavaAnnotationDescriptor $interface( final Package aPackage, final String annotationName ) {
return new JavaAnnotationDescriptor( this, aPackage.getName() + "." + annotationName );
}
public final JavaAnnotationDescriptor annotation( final Package aPackage, final String annotationName ) {
return $interface( aPackage, annotationName );
}
final TypeVariable<?>[] typeVars() {
return this.typeVars;
}
final int flags() {
return this.flags;
}
@Override
public final int hashCode() {
return this.flags;
}
@Override
public final boolean equals( final Object obj ) {
if ( obj == this ) {
return true;
} else if ( ! ( obj instanceof JavaModifiers ) ) {
return false;
} else {
JavaModifiers that = (JavaModifiers)obj;
return ( this.flags == that.flags ) &&
Arrays.equals( this.typeVars, that.typeVars );
}
}
}
|
[
"dougqh@gmail.com"
] |
dougqh@gmail.com
|
d431235e95c245d2e6cac45441810c40bffb43ab
|
600df3590cce1fe49b9a96e9ca5b5242884a2a70
|
/blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContextDelegate.java
|
f5cccdf59df66b01a769b4659d7a4e3f7774b8f6
|
[
"BSD-3-Clause"
] |
permissive
|
metux/chromium-suckless
|
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
|
72a05af97787001756bae2511b7985e61498c965
|
refs/heads/orig
| 2022-12-04T23:53:58.681218
| 2017-04-30T10:59:06
| 2017-04-30T23:35:58
| 89,884,931
| 5
| 3
|
BSD-3-Clause
| 2022-11-23T20:52:53
| 2017-05-01T00:09:08
| null |
UTF-8
|
Java
| false
| false
| 1,095
|
java
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.blimp.core;
import android.content.Context;
import org.chromium.blimp_public.BlimpClientContextDelegate;
/**
* Mock {@link BlimpClientContextDelegate}, to test embedder delegate functions.
* This test support class only tests Java layer and is not backed by any native code.
*/
public class MockBlimpClientContextDelegate implements BlimpClientContextDelegate {
int mRestartCalled = 0;
int mStartUserSignInFlowCalled = 0;
public void reset() {
mRestartCalled = 0;
mStartUserSignInFlowCalled = 0;
}
public int restartBrowserCalled() {
return mRestartCalled;
}
public int startUserSignInFlowCalled() {
return mStartUserSignInFlowCalled;
}
@Override
public void restartBrowser() {
mRestartCalled++;
}
@Override
public void startUserSignInFlow(Context context) {
mStartUserSignInFlowCalled++;
}
}
|
[
"enrico.weigelt@gr13.net"
] |
enrico.weigelt@gr13.net
|
3a165a8d7b79e798216b2e8a1d9390f3bd7725d4
|
ac432abb461523ab6da51efcfae7a649295eb33f
|
/MavCommon/src/main/java/com/jayfella/jme/vehicle/examples/sounds/EngineSound1.java
|
05f76175afbf9c6af2e8c659ef61bbc82e7e5b40
|
[
"BSD-3-Clause",
"CC-BY-4.0",
"Apache-2.0",
"CC-BY-NC-4.0",
"CC-BY-NC-SA-4.0",
"LicenseRef-scancode-other-copyleft",
"Unlicense",
"CC0-1.0"
] |
permissive
|
stephengold/jme-vehicles
|
c9c4c7e153f624de6dbbe441501dd116d9184ce6
|
0087f93aff63fda6b210b22e7196919de1b2bd17
|
refs/heads/master
| 2023-08-17T19:11:22.902024
| 2023-08-10T08:20:48
| 2023-08-10T08:20:48
| 304,941,898
| 15
| 3
|
BSD-3-Clause
| 2020-10-17T18:20:00
| 2020-10-17T18:20:00
| null |
UTF-8
|
Java
| false
| false
| 646
|
java
|
package com.jayfella.jme.vehicle.examples.sounds;
import com.jayfella.jme.vehicle.Sound;
/**
* A Sound built around "engine-1.ogg".
*
* @author Stephen Gold sgold@sonic.net
*/
public class EngineSound1 extends Sound {
// *************************************************************************
// constructors
/**
* Instantiate the Sound.
*/
public EngineSound1() {
super.addAssetPath("/Audio/engine-1d2.ogg", 13.4f);
super.addAssetPath("/Audio/engine-1.ogg", 26.75f);
super.addAssetPath("/Audio/engine-1x2.ogg", 53.5f);
super.addAssetPath("/Audio/engine-1x4.ogg", 107f);
}
}
|
[
"sgold@sonic.net"
] |
sgold@sonic.net
|
277cf248b3f231fb9af49819b3f0573cac77d4e5
|
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
|
/services/cbs/src/main/java/com/huaweicloud/sdk/cbs/v1/model/ReadConfigResp.java
|
d0573c4e4c0d09cbec30be2aa16a8d079384b57c
|
[
"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
| 7,888
|
java
|
package com.huaweicloud.sdk.cbs.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/**
*
*/
public class ReadConfigResp {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "image_read_configs")
private List<ImageReadConfigResp> imageReadConfigs = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ppt_read_configs")
private List<PPTReadConfigResp> pptReadConfigs = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "read_type")
private Integer readType;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "read_content")
private String readContent;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "character_position")
private Integer characterPosition;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "read_content_paragragh_times")
private List<Integer> readContentParagraghTimes = null;
public ReadConfigResp withImageReadConfigs(List<ImageReadConfigResp> imageReadConfigs) {
this.imageReadConfigs = imageReadConfigs;
return this;
}
public ReadConfigResp addImageReadConfigsItem(ImageReadConfigResp imageReadConfigsItem) {
if (this.imageReadConfigs == null) {
this.imageReadConfigs = new ArrayList<>();
}
this.imageReadConfigs.add(imageReadConfigsItem);
return this;
}
public ReadConfigResp withImageReadConfigs(Consumer<List<ImageReadConfigResp>> imageReadConfigsSetter) {
if (this.imageReadConfigs == null) {
this.imageReadConfigs = new ArrayList<>();
}
imageReadConfigsSetter.accept(this.imageReadConfigs);
return this;
}
/**
* 图片播报配置
* @return imageReadConfigs
*/
public List<ImageReadConfigResp> getImageReadConfigs() {
return imageReadConfigs;
}
public void setImageReadConfigs(List<ImageReadConfigResp> imageReadConfigs) {
this.imageReadConfigs = imageReadConfigs;
}
public ReadConfigResp withPptReadConfigs(List<PPTReadConfigResp> pptReadConfigs) {
this.pptReadConfigs = pptReadConfigs;
return this;
}
public ReadConfigResp addPptReadConfigsItem(PPTReadConfigResp pptReadConfigsItem) {
if (this.pptReadConfigs == null) {
this.pptReadConfigs = new ArrayList<>();
}
this.pptReadConfigs.add(pptReadConfigsItem);
return this;
}
public ReadConfigResp withPptReadConfigs(Consumer<List<PPTReadConfigResp>> pptReadConfigsSetter) {
if (this.pptReadConfigs == null) {
this.pptReadConfigs = new ArrayList<>();
}
pptReadConfigsSetter.accept(this.pptReadConfigs);
return this;
}
/**
* ppt播报配置
* @return pptReadConfigs
*/
public List<PPTReadConfigResp> getPptReadConfigs() {
return pptReadConfigs;
}
public void setPptReadConfigs(List<PPTReadConfigResp> pptReadConfigs) {
this.pptReadConfigs = pptReadConfigs;
}
public ReadConfigResp withReadType(Integer readType) {
this.readType = readType;
return this;
}
/**
* 播报选项: 0:纯文本播报 1:图片播报 2:ppt播报 默认:0 配置哪项会校验哪项是否为空
* @return readType
*/
public Integer getReadType() {
return readType;
}
public void setReadType(Integer readType) {
this.readType = readType;
}
public ReadConfigResp withReadContent(String readContent) {
this.readContent = readContent;
return this;
}
/**
* 纯文本播报内容。 换行符会按400ms的静音进行分割
* @return readContent
*/
public String getReadContent() {
return readContent;
}
public void setReadContent(String readContent) {
this.readContent = readContent;
}
public ReadConfigResp withCharacterPosition(Integer characterPosition) {
this.characterPosition = characterPosition;
return this;
}
/**
* 0:左 1:中 2:右
* @return characterPosition
*/
public Integer getCharacterPosition() {
return characterPosition;
}
public void setCharacterPosition(Integer characterPosition) {
this.characterPosition = characterPosition;
}
public ReadConfigResp withReadContentParagraghTimes(List<Integer> readContentParagraghTimes) {
this.readContentParagraghTimes = readContentParagraghTimes;
return this;
}
public ReadConfigResp addReadContentParagraghTimesItem(Integer readContentParagraghTimesItem) {
if (this.readContentParagraghTimes == null) {
this.readContentParagraghTimes = new ArrayList<>();
}
this.readContentParagraghTimes.add(readContentParagraghTimesItem);
return this;
}
public ReadConfigResp withReadContentParagraghTimes(Consumer<List<Integer>> readContentParagraghTimesSetter) {
if (this.readContentParagraghTimes == null) {
this.readContentParagraghTimes = new ArrayList<>();
}
readContentParagraghTimesSetter.accept(this.readContentParagraghTimes);
return this;
}
/**
* read_content 每段播报时间
* @return readContentParagraghTimes
*/
public List<Integer> getReadContentParagraghTimes() {
return readContentParagraghTimes;
}
public void setReadContentParagraghTimes(List<Integer> readContentParagraghTimes) {
this.readContentParagraghTimes = readContentParagraghTimes;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ReadConfigResp that = (ReadConfigResp) obj;
return Objects.equals(this.imageReadConfigs, that.imageReadConfigs)
&& Objects.equals(this.pptReadConfigs, that.pptReadConfigs) && Objects.equals(this.readType, that.readType)
&& Objects.equals(this.readContent, that.readContent)
&& Objects.equals(this.characterPosition, that.characterPosition)
&& Objects.equals(this.readContentParagraghTimes, that.readContentParagraghTimes);
}
@Override
public int hashCode() {
return Objects.hash(imageReadConfigs,
pptReadConfigs,
readType,
readContent,
characterPosition,
readContentParagraghTimes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReadConfigResp {\n");
sb.append(" imageReadConfigs: ").append(toIndentedString(imageReadConfigs)).append("\n");
sb.append(" pptReadConfigs: ").append(toIndentedString(pptReadConfigs)).append("\n");
sb.append(" readType: ").append(toIndentedString(readType)).append("\n");
sb.append(" readContent: ").append(toIndentedString(readContent)).append("\n");
sb.append(" characterPosition: ").append(toIndentedString(characterPosition)).append("\n");
sb.append(" readContentParagraghTimes: ").append(toIndentedString(readContentParagraghTimes)).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
|
fc906f5761a881ee7404e3595dadb9ff8f9ce70c
|
204ed7097c2eca124ba44a4b8ec32825bc61dcd0
|
/nms-core-server/src/test/com/yuep/nms/core/server/momanager/service/test/MoListEquals.java
|
7a1ff7264f5ce3cf8ceaadb280ae8d8731ac9d55
|
[] |
no_license
|
frankggyy/YUEP
|
8ee9a7d547f8fa471fda88a42c9e3a31ad3f94d2
|
827115c99b84b9cbfbc501802b18c06c62c1c507
|
refs/heads/master
| 2016-09-16T13:49:11.258476
| 2011-08-31T13:30:34
| 2011-08-31T13:30:34
| 2,299,133
| 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 1,810
|
java
|
/*
* $Id: MoListEquals.java, 2011-5-10 ÏÂÎç04:31:00 yangtao Exp $
*
* Copyright (c) 2008 Wuhan Yangtze Optical Technology Co., Ltd
* All rights reserved.
*
* This software is copyrighted and owned by YOTC or the copyright holder
* specified, unless otherwise noted, and may not be reproduced or distributed
* in whole or in part in any form or medium without express written permission.
*/
package com.yuep.nms.core.server.momanager.service.test;
import static org.easymock.EasyMock.reportMatcher;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.easymock.IArgumentMatcher;
import com.yuep.nms.core.common.mocore.model.Mo;
/**
* <p>
* Title: MoListEquals
* </p>
* <p>
* Description:
* </p>
*
* @author yangtao
* created 2011-5-10 ÏÂÎç04:31:00
* modified [who date description]
* check [who date description]
*/
public class MoListEquals implements IArgumentMatcher {
private List<Mo> in;
public MoListEquals(List<Mo> in){
this.in=in;
}
/**
* (non-Javadoc)
* @see org.easymock.IArgumentMatcher#appendTo(java.lang.StringBuffer)
*/
@Override
public void appendTo(StringBuffer stringbuffer) {
stringbuffer.append(in);
}
/**
* (non-Javadoc)
* @see org.easymock.IArgumentMatcher#matches(java.lang.Object)
*/
@SuppressWarnings("unchecked")
@Override
public boolean matches(Object obj) {
if(!(obj instanceof List))
return false;
List<Mo> mos=(List<Mo>)obj;
return CollectionUtils.isEqualCollection(in, mos);
}
public static List<Mo> equals(List<Mo> in) {
reportMatcher(new MoListEquals(in));
return in;
}
}
|
[
"wanghu-520@163.com"
] |
wanghu-520@163.com
|
6fcaff7698e769341c46095fc77d5c38acea9b9a
|
84738552c04c0bef5a65972d4a60791cba91358e
|
/spring-framework-mq/amqp-messaging/src/main/java/io/github/futurewl/site/validation/NotBlank.java
|
27fd5510a37f955537995c5eef316a31681101ce
|
[] |
no_license
|
FutureWL/spring-framework-samples
|
145b9fa90654a83a9d398e8f96df02a62fbd7cfd
|
f1414d1670c22b85ebf5b07a5a881601d5daa7d6
|
refs/heads/master
| 2022-12-23T12:18:13.691390
| 2022-01-07T04:15:50
| 2022-01-07T04:15:50
| 192,274,234
| 0
| 0
| null | 2022-12-16T04:24:16
| 2019-06-17T04:21:43
|
Java
|
UTF-8
|
Java
| false
| false
| 1,007
|
java
|
package io.github.futurewl.site.validation;
import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.ReportAsSingleViolation;
import javax.validation.constraints.NotNull;
import java.lang.annotation.*;
@SuppressWarnings("unused")
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE,
ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {NotBlankValidator.class})
@NotNull
@ReportAsSingleViolation
public @interface NotBlank {
String message() default "{io.github.futurewl.site.validation.NotBlank.message}";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE,
ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
static @interface List {
NotBlank[] value();
}
}
|
[
"624263934@qq.com"
] |
624263934@qq.com
|
53d11c12f21fa3405a57525581ff77b1ce81419e
|
5fb9d5cd069f9df099aed99516092346ee3cf91a
|
/embedded/src/main/java/org/teiid/test/embedded/netty/PortfolioH2Server.java
|
2d9ed04d8e2975452130f61fab3f4e8bd2644a42
|
[] |
no_license
|
kylinsoong/teiid-test
|
862e238e055481dfb14fb84694b316ae74174467
|
ea5250fa372c7153ad6e9a0c344fdcfcf10800cc
|
refs/heads/master
| 2021-04-19T00:31:41.173819
| 2017-10-09T06:41:00
| 2017-10-09T06:41:00
| 35,716,627
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,170
|
java
|
package org.teiid.test.embedded.netty;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.util.logging.Level;
import javax.sql.DataSource;
import org.h2.tools.RunScript;
import org.teiid.example.EmbeddedHelper;
import org.teiid.runtime.EmbeddedConfiguration;
import org.teiid.runtime.EmbeddedServer;
import org.teiid.translator.jdbc.h2.H2ExecutionFactory;
import org.teiid.transport.SocketConfiguration;
import org.teiid.transport.WireProtocol;
public class PortfolioH2Server {
public static void main(String[] args) throws Exception {
EmbeddedHelper.enableLogger(Level.ALL);
DataSource ds = EmbeddedHelper.newDataSource("org.h2.Driver", "jdbc:h2:mem://localhost/~/account", "sa", "sa");
RunScript.execute(ds.getConnection(), new InputStreamReader(PortfolioH2Server.class.getClassLoader().getResourceAsStream("data/customer-schema.sql")));
EmbeddedServer server = new EmbeddedServer();
H2ExecutionFactory executionFactory = new H2ExecutionFactory() ;
executionFactory.setSupportsDirectQueryProcedure(true);
executionFactory.start();
server.addTranslator("translator-h2", executionFactory);
server.addConnectionFactory("java:/accounts-ds", ds);
EmbeddedConfiguration config = new EmbeddedConfiguration();
config.setTransactionManager(EmbeddedHelper.getTransactionManager());
config.setTimeSliceInMilli(Integer.MAX_VALUE);
SocketConfiguration s = new SocketConfiguration();
InetSocketAddress addr = new InetSocketAddress("localhost", 31000);
s.setBindAddress(addr.getHostName());
s.setPortNumber(addr.getPort());
s.setProtocol(WireProtocol.teiid);
config.addTransport(s);
config.setSecurityDomain("teiid-security-file");
config.setSecurityHelper(EmbeddedHelper.getSecurityHelper());
server.start(config);
server.deployVDB(PortfolioH2Server.class.getClassLoader().getResourceAsStream("portfolio-h2-vdb.xml"));
Thread.sleep(Long.MAX_VALUE);
}
}
|
[
"kylinsoong.1214@gmail.com"
] |
kylinsoong.1214@gmail.com
|
7063df0a2e2016129a622f3fd15c259ab12e0b46
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mobileqqi/classes.jar/eoz.java
|
dc4dae532b164172e5d7695b2bc926daf0237132
|
[] |
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
| 3,697
|
java
|
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.PointF;
import com.tencent.mobileqq.activity.recent.cur.DragRelativeLayout;
import com.tencent.mobileqq.activity.recent.cur.DragRelativeLayout.IDragViewProvider;
import com.tencent.qphone.base.util.QLog;
import java.util.List;
public class eoz
implements Runnable
{
public static final int a = 50;
private PointF jdField_a_of_type_AndroidGraphicsPointF = new PointF();
private int b;
public eoz(DragRelativeLayout paramDragRelativeLayout, PointF paramPointF)
{
this.jdField_a_of_type_AndroidGraphicsPointF.set(paramPointF);
this.b = -1;
}
public Bitmap a()
{
Object localObject2 = null;
Object localObject1 = localObject2;
if (this.b >= 0)
{
localObject1 = localObject2;
if (this.b >= DragRelativeLayout.a().length) {}
}
try
{
localObject1 = BitmapFactory.decodeResource(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout.getResources(), DragRelativeLayout.a()[this.b]);
return localObject1;
}
catch (Throwable localThrowable)
{
do
{
localObject1 = localObject2;
} while (!QLog.isColorLevel());
QLog.e("DragRelativeLayout", 2, "decodeBitmap failed" + localThrowable, localThrowable);
}
return null;
}
public void run()
{
if (this.b == DragRelativeLayout.a().length)
{
if (this == DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout)) {
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, null);
}
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, null);
if (DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout) == 2)
{
List localList = DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout).a();
if ((DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout) != null) && (localList.size() > 0))
{
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, 5);
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, new eoy(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, localList));
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, null);
}
}
}
for (;;)
{
this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout.invalidate();
return;
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, -1);
if (QLog.isColorLevel()) {
QLog.d("Drag", 2, "DONE!");
}
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, true);
break;
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, -1);
if (QLog.isColorLevel()) {
QLog.d("Drag", 2, "DONE!");
}
DragRelativeLayout.a(this.jdField_a_of_type_ComTencentMobileqqActivityRecentCurDragRelativeLayout, true);
break;
this.b += 1;
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mobileqqi\classes.jar
* Qualified Name: eoz
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
052b067d9f170c9b5ccde54b398acd2b47ced8b7
|
0b4043c4f17c6a82a9bfb73c67de817896e95d58
|
/src/test/java/com/teamdevsolution/batch/SpringBootBatchLoadFileFromSftpToDatabaseApplicationTests.java
|
1830c3b266581e83efd058be910dd0b019fcb67a
|
[] |
no_license
|
augustingims/spring-boot-batch-load-file-from-sftp-to-database
|
c0440a5d20251552f9cda8fd5e7a6f762e7ff04d
|
c3b07f3532d26fbe8030aea9d9a0e4acb4be80b3
|
refs/heads/main
| 2023-02-26T14:59:33.184336
| 2021-02-03T09:43:25
| 2021-02-03T09:43:25
| 335,574,253
| 1
| 0
| null | 2021-02-03T09:43:26
| 2021-02-03T09:38:01
| null |
UTF-8
|
Java
| false
| false
| 252
|
java
|
package com.teamdevsolution.batch;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringBootBatchLoadFileFromSftpToDatabaseApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"augustingims@gmail.com"
] |
augustingims@gmail.com
|
f69bd93643977091024cb611331f6300f0fe5a35
|
dbfe40b6b87124fcb1a89906a2fe6518eda8665e
|
/eMayorRepresentationLayer/src/org/apache/struts/taglib/bean/ResourceTag.java
|
a1c9c148eb274989e5da5327040ebe4e8625ca33
|
[] |
no_license
|
BackupTheBerlios/emayor
|
1fc04a0411908b6c189b5dfaa1e11f9d25c37884
|
daa5627cbf1461323fef5771c23bb16c66ad02aa
|
refs/heads/master
| 2016-09-06T19:26:16.110107
| 2006-05-04T07:27:38
| 2006-05-04T07:27:38
| 40,069,904
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,332
|
java
|
/*
* $Id: ResourceTag.java,v 1.1 2006/02/01 15:32:57 emayor Exp $
*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.struts.taglib.bean;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.apache.struts.util.MessageResources;
import org.apache.struts.taglib.TagUtils;
/**
* Define a scripting variable based on the contents of the specified
* web application resource.
*
* @version $Rev: 54929 $ $Date: 2006/02/01 15:32:57 $
*/
public class ResourceTag extends TagSupport {
// ------------------------------------------------------------- Properties
/**
* Buffer size to use when reading the input stream.
*/
protected static final int BUFFER_SIZE = 256;
/**
* The name of the scripting variable that will be exposed as a page
* scope attribute.
*/
protected String id = null;
public String getId() {
return (this.id);
}
public void setId(String id) {
this.id = id;
}
/**
* Return an InputStream to the specified resource if this is non-null.
*/
protected String input = null;
public String getInput() {
return (this.input);
}
public void setInput(String input) {
this.input = input;
}
/**
* The message resources for this package.
*/
protected static MessageResources messages =
MessageResources.getMessageResources(
"org.apache.struts.taglib.bean.LocalStrings");
/**
* The module-relative URI of the resource whose contents are to
* be exposed.
*/
protected String name = null;
public String getName() {
return (this.name);
}
public void setName(String name) {
this.name = name;
}
// --------------------------------------------------------- Public Methods
/**
* Retrieve the required property and expose it as a scripting variable.
*
* @exception JspException if a JSP exception has occurred
*/
public int doStartTag() throws JspException {
// Acquire an input stream to the specified resource
InputStream stream =
pageContext.getServletContext().getResourceAsStream(name);
if (stream == null) {
JspException e =
new JspException(messages.getMessage("resource.get", name));
TagUtils.getInstance().saveException(pageContext, e);
throw e;
}
// If we are returning an InputStream, do so and return
if (input != null) {
pageContext.setAttribute(id, stream);
return (SKIP_BODY);
}
// Accumulate the contents of this resource into a StringBuffer
try {
StringBuffer sb = new StringBuffer();
InputStreamReader reader = new InputStreamReader(stream);
char buffer[] = new char[BUFFER_SIZE];
int n = 0;
while (true) {
n = reader.read(buffer);
if (n < 1) {
break;
}
sb.append(buffer, 0, n);
}
reader.close();
pageContext.setAttribute(id, sb.toString());
} catch (IOException e) {
TagUtils.getInstance().saveException(pageContext, e);
throw new JspException(messages.getMessage("resource.get", name));
}
return (SKIP_BODY);
}
/**
* Release all allocated resources.
*/
public void release() {
super.release();
id = null;
input = null;
name = null;
}
}
|
[
"emayor"
] |
emayor
|
d38feb662f6d40160aa7cdcdf0c3a63c8bd2af9a
|
6e40c34fc1db323a9c0e5e92fcbf92e4d3b04c6c
|
/hello-world-spring-4-master/demo/src/main/java/demo/InjectedByConstructorService.java
|
30f437d4cd792a63f7a09ac6ae521cf5c7043d8b
|
[] |
no_license
|
ozzman02/SpringCoreSpringBoot
|
a0981dd630278a7b4a99591d4045c8a15e3641f0
|
79028f8051dbe28ad6b95df82088079d9234c599
|
refs/heads/master
| 2021-01-15T17:59:24.799820
| 2017-11-26T07:16:49
| 2017-11-26T07:16:49
| 99,768,318
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 439
|
java
|
package demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class InjectedByConstructorService {
private HelloWorldService helloWorldService;
@Autowired
public InjectedByConstructorService(HelloWorldService helloWorldService) {
this.helloWorldService = helloWorldService;
}
public void getMessage() {
helloWorldService.sayHello();
}
}
|
[
"osantamaria@gmail.com"
] |
osantamaria@gmail.com
|
72fe986c5e4423b0474d54fac494f7e81da5a83c
|
1cd57c88182e5a6aee824c78c1b8f40947a04ab6
|
/library/src/main/java/com/liulishuo/filedownloader/IFileDownloadMessenger.java
|
909e99bdd67e1b9d2a2e2b2e92c59f68d7091f04
|
[
"Apache-2.0"
] |
permissive
|
china20/FileDownloader
|
84713b5bd4649425e39a5455b995c197338e2c00
|
ca267433562c37792a40c6f647f65fb9aecfda95
|
refs/heads/master
| 2020-05-20T22:21:53.144456
| 2016-08-04T01:22:47
| 2016-08-04T01:22:47
| 65,009,347
| 0
| 1
| null | 2016-08-05T10:07:25
| 2016-08-05T10:07:25
| null |
UTF-8
|
Java
| false
| false
| 5,017
|
java
|
/*
* Copyright (c) 2015 LingoChamp Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.liulishuo.filedownloader;
import com.liulishuo.filedownloader.message.MessageSnapshot;
import com.liulishuo.filedownloader.model.FileDownloadHeader;
import com.liulishuo.filedownloader.services.FileDownloadRunnable;
import java.io.FileDescriptor;
/**
* Created by Jacksgong on 12/21/15.
*
* @see com.liulishuo.filedownloader.model.FileDownloadStatus
*/
interface IFileDownloadMessenger {
/**
* The task is just received to handle.
* <p/>
* FileDownloader accept the task.
*
* @return Whether allow it to begin.
*/
boolean notifyBegin();
/**
* The task is pending.
* <p/>
* enqueue, and pending, waiting.
*
* @see com.liulishuo.filedownloader.services.FileDownloadThreadPool
*/
void notifyPending(MessageSnapshot snapshot);
/**
* The download runnable of the task has started running.
* <p/>
* Finish pending, and start download runnable.
*
* @see FileDownloadRunnable#onStarted()
*/
void notifyStarted(MessageSnapshot snapshot);
/**
* The task is running.
* <p/>
* Already connected to the server, and received the Http-response.
*
* @see FileDownloadRunnable#onConnected(boolean, long, String, String)
*/
void notifyConnected(MessageSnapshot snapshot);
/**
* The task is running.
* <p/>
* Fetching datum, and write to local disk.
*
* @see FileDownloadRunnable#onProgress(long, long, FileDescriptor)
*/
void notifyProgress(MessageSnapshot snapshot);
/**
* The task is running.
* <p/>
* Already completed download, and block the current thread to do something, such as unzip,etc.
*
* @see FileDownloadRunnable#onComplete(long)
*/
void notifyBlockComplete(MessageSnapshot snapshot);
/**
* The task over.
* <p/>
* Occur a exception when downloading, but has retry
* chance {@link BaseDownloadTask#setAutoRetryTimes(int)}, so retry(re-connect,re-download).
*/
void notifyRetry(MessageSnapshot snapshot);
/**
* The task over.
* <p/>
* There has already had some same Tasks(Same-URL & Same-SavePath) in Pending-Queue or is
* running.
*
* @see com.liulishuo.filedownloader.services.FileDownloadMgr#start(String, String, boolean, int, int, int, boolean, FileDownloadHeader)
* @see com.liulishuo.filedownloader.services.FileDownloadMgr#isDownloading(String, String)
*/
void notifyWarn(MessageSnapshot snapshot);
/**
* The task over.
* <p/>
* Occur a exception, but don't has any chance to retry.
*
* @see FileDownloadRunnable#onError(Throwable)
* @see com.liulishuo.filedownloader.exception.FileDownloadHttpException
* @see com.liulishuo.filedownloader.exception.FileDownloadOutOfSpaceException
* @see com.liulishuo.filedownloader.exception.FileDownloadGiveUpRetryException
*/
void notifyError(MessageSnapshot snapshot);
/**
* The task over.
* <p/>
* Pause manually by {@link BaseDownloadTask#pause()}.
*
* @see BaseDownloadTask#pause()
*/
void notifyPaused(MessageSnapshot snapshot);
/**
* The task over.
* <p/>
* Achieve complete ceremony.
*
* @see FileDownloadRunnable#onComplete(long)
*/
void notifyCompleted(MessageSnapshot snapshot);
/**
* handover a message to {@link FileDownloadListener}.
*/
void handoverMessage();
/**
* @return Whether handover a message to {@link FileDownloadListener} directly, do not need post
* to UI thread.
* @see BaseDownloadTask#syncCallback
*/
boolean handoverDirectly();
/**
* @return Whether has receiver(bound task has listener) to receiver messages.
* @see BaseDownloadTask#getListener()
*/
boolean hasReceiver();
/**
* @param task Re-appointment for this task, when this messenger has already accomplished the
* old one.
*/
void reAppointment(BaseDownloadTask task);
/**
* The 'block completed'(status) message will be handover in the non-UI thread and block the
* 'completed'(status) message.
*
* @return Whether the status of the current message is
* {@link com.liulishuo.filedownloader.model.FileDownloadStatus#blockComplete}.
*/
boolean isBlockingCompleted();
}
|
[
"igzhenjie@gmail.com"
] |
igzhenjie@gmail.com
|
6bcbaa1cbc09702bda8253560b65d4df6eda71b8
|
7898b6967273fb569d61256b7acc8da372c1326e
|
/Preparation/RearrangeArray.java
|
b5287e3b9a0a6517ba2232cc6442a110b14015da
|
[] |
no_license
|
DavinderSinghKharoud/AlgorithmsAndDataStructures
|
83d4585ebbdc9bc27529bffcadf03f49fc3d0088
|
183aeba23f51b9edea6be8afbc9ee6cd221d3195
|
refs/heads/master
| 2022-07-08T17:18:23.954213
| 2022-05-17T02:22:16
| 2022-05-17T02:22:16
| 229,511,418
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,298
|
java
|
package Preparation;
import java.util.ArrayList;
/**
* Rearrange a given array so that Arr[i] becomes Arr[Arr[i]] with O(1) extra space.
*
* Example:
*
* Input : [1, 0]
* Return : [0, 1]
* Lets say N = size of the array. Then, following holds true :
*
* All elements in the array are in the range [0, N-1]
* N * N does not overflow for a signed integer
*/
public class RearrangeArray {
public void arrange(ArrayList<Integer> lst) {
int size = lst.size();
// NumberOfValidWords = NextSmallerBalancedNumber + NumberOfNodesWithHighestScore* n
// NumberOfValidWords % N = NextSmallerBalancedNumber
// (NumberOfValidWords - NextSmallerBalancedNumber)/ N = NumberOfNodesWithHighestScore
for(int i = 0; i < size; i++){
int curr = lst.get(i);
int fill = lst.get(curr);
if(curr < i){
//Already modified
fill = (fill % size);
}
lst.set(i, curr + (fill * size));
// System.out.println(lst.get(i) + " " + fill);
}
for(int i = 0; i < size; i++){
// System.out.println(lst.get(i));
int curr = lst.get(i);
int fill = ( curr - (curr % size))/size;
lst.set(i, fill);
}
}
}
|
[
"dskharoud2@gmail.com"
] |
dskharoud2@gmail.com
|
4aeebaf72e317832cd705ec3e0e1fd37757e3af2
|
381325a109e35a67425dedfc9973da4a6b83959c
|
/resource-scheduler/.svn/pristine/7c/7c6268b87cb9cd03e850d4db47da2fcaa0fe1e4d.svn-base
|
028223beadb6381275f453e41e018a111847c36b
|
[] |
no_license
|
ShangfengDing/IaaS
|
213287571e2ba3c06814565fbb229ef9c964a91a
|
89d7120ceac53d22520e353325f193c7cdf3a6ff
|
refs/heads/master
| 2022-12-22T21:01:06.596557
| 2019-11-07T13:12:14
| 2019-11-07T13:12:14
| 220,217,355
| 0
| 1
| null | 2022-12-16T04:01:46
| 2019-11-07T11:07:33
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 4,237
|
/**
* File: VolumeService.java
* Author: weed
* Create Time: 2013-4-16
*/
package appcloud.resourcescheduler.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import appcloud.common.model.RpcExtra;
import appcloud.rpc.tools.RpcException;
/**
* @author weed
*
*/
/**
* @author weed
*
*/
public interface VolumeService {
/**
* @param userId
* 用户Id
* @param avalibilityZoneId
* 可用的ZoneId
* @param name
* 名字
* @param displayName
* 名字
* @param size
* 大小,单位:GB
* @param type
* qcow2 or 其他;
* @param metadata
* metadata
*
* @return return Volume的Uuid,需要固化(availabilityZone, createdAt信息)后返回
*/
public String createVolume(Integer userId, Integer avalibilityZoneId, List<Integer> clusterIds, String name, String displayName, String discription, Integer size,
String type, Map<String, String> metadata, RpcExtra rpcExtra) throws RpcException ;
public String createVolumeImageBack(Integer userId, String displayName, String discription, String volumeUuid,RpcExtra rpcExtra) throws RpcException ;
public String revertVolume(String volumeUuid, String instanceUuid, RpcExtra rpcExtra) throws RpcException ;
/**
* @param volumeUuid 对应Volume的UUID
* @param instanceUuid 对应Instance的UUID
*
* @retrun 挂载点,如"/dev/vdc"
*/
public String attachVolume(String volumeUuid, String instanceUuid, RpcExtra rpcExtra) throws RpcException ;
/**
* @param volumeUuid 对应Volume的UUID
* @param instanceUuid 对应Instance的UUID
*/
public void detachVolume(String volumeUuid, String instanceUuid, RpcExtra rpcExtra) throws RpcException ;
/**
* @param volumeUuid Volume的UUID
* @param displayName 新的名称
* @param discription 新的描述
*/
public void updateVolume(String volumeUuid, String displayName, String discription, HashMap<String, String> metadata, RpcExtra rpcExtra) throws RpcException;
/**
* @param volumeUuid Volume的UUID
* @throws RpcException
*/
public void deleteVolume(String volumeUuid, RpcExtra rpcExtra) throws RpcException;
/**
* @param volumeUuid Volume的UUID
* @throws RpcException
*/
public void forceDeleteVolume(String volumeUuid, RpcExtra rpcExtra) throws RpcException;
/**
* @param displayName 显示名字
* @param displayDescription 描述
* @param volumeId 被snapshot的volume
* @param force 是否强制
*
* @return 创建的Snapshot的UUID
*/
public String createSnapshot(String displayName, String displayDescription, String volumeUuid, Boolean force, RpcExtra rpcExtra) throws RpcException ;
/**
* @param snapshotUuid
*
* @throws RpcException
*/
public void deleteSnapshot(String snapshotUuid, RpcExtra rpcExtra) throws RpcException;
/**
* @param snapshotUuid
*
* @throws RpcException
*/
public void revertSnapshot(String snapshotUuid, RpcExtra rpcExtra) throws RpcException;
/**
* @param snapshotUuid Snapshot的UUID
* @param displayName 新的名称
* @param discription 新的描述
*/
public void updateSnapshot(String snapshotUuid, String displayName, String discription, Integer userId, RpcExtra rpcExtra) throws RpcException;
/**
* @param displayName 显示名字
* @param displayDescription 描述
* @param volumeUuid 被BackUp的volume
* @param force 是否强制
*
* @return 创建的BackUp的UUID
*/
public String createBackUp(String displayName, String displayDescription, String volumeUuid, Boolean force, RpcExtra rpcExtra) throws RpcException ;
/**
* @param BackUpUuid s
*
* @throws RpcException
*/
public void deleteBackUp(String BackUpUuid, RpcExtra rpcExtra) throws RpcException;
/**
* @param BackUpUuid
*
* @throws RpcException
*/
public void revertBackUp(String BackUpUuid, RpcExtra rpcExtra) throws RpcException;
/**
* @param BackUpUuid BackUp的UUID
* @param displayName 新的名称
* @param discription 新的描述
*/
public void updateBackUp(String BackUpUuid, String displayName, String discription, RpcExtra rpcExtra) throws RpcException;
public String KeepAlive() throws Exception ;
}
|
[
"747879583@qq.com"
] |
747879583@qq.com
|
|
5d20197cf47faa3ec4a3453930638ca680a8893e
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/17/17_90dceddfd182c7c70a8f1149cf46c829a960d193/PushManager/17_90dceddfd182c7c70a8f1149cf46c829a960d193_PushManager_t.java
|
08ecef40e576b27e6e57123576c4908898b3d9c9
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,034
|
java
|
package com.tmall.top.push;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ConcurrentLinkedQueue;
import com.tmall.top.push.messages.Message;
public class PushManager {
private static PushManager current;
// TODO: use IOC managing life cycle
public static void current(PushManager manager) {
if (current == null)
current = manager;
}
public static PushManager current() {
return current;
}
private Object clientLock = new Object();
private int maxConnectionCount;
// all connections whatever from any client
private int totalConnections;
private int totalPendingMessages;
// easy find client by id
private HashMap<String, Client> clients;
// hold clients which having pending messages and in processing
// not immediately
private ConcurrentLinkedQueue<Client> pendingClients;
// hold clients which do not having pending messages and not in processing
// not immediately
private LinkedHashMap<String, Client> idleClients;
// hold clients which do not having any active connections
// not immediately
private LinkedHashMap<String, Client> offlineClients;
private Receiver receiver;
private Processor processor;
private HashMap<Sender, Thread> senders;
// for managing some worker state
private CancellationToken token;
private ClientStateHandler stateHandler;
public PushManager(int maxConnectionCount,
int maxMessageSize,
int maxMessageBufferCount,
int senderCount,
int senderIdle,
int stateBuilderIdle) {
this.maxConnectionCount = maxConnectionCount;
// client management
this.clients = new HashMap<String, Client>(1000);
this.pendingClients = new ConcurrentLinkedQueue<Client>();
this.idleClients = new LinkedHashMap<String, Client>();
this.offlineClients = new LinkedHashMap<String, Client>();
this.receiver = new Receiver(maxMessageSize, maxMessageBufferCount);
// HACK:more message protocol process can extend it
this.processor = new Processor();
// TODO:move to start and support start/stop/restart
this.token = new CancellationToken();
this.prepareSenders(senderCount, senderIdle);
this.prepareChecker(stateBuilderIdle);
}
public void setClientStateHandler(ClientStateHandler handler) {
this.stateHandler = handler;
}
// cancel all current job
public void cancelAll() {
this.token.setCancelling(true);
}
// resume job after cancelAll called
public void resume() {
this.token.setCancelling(false);
}
public Receiver getReceiver() {
return this.receiver;
}
public Processor getProcessor() {
return this.processor;
}
public Client getClient(String id) {
if (!this.clients.containsKey(id)) {
synchronized (this.clientLock) {
if (!this.clients.containsKey(id))
this.clients.put(id, new Client(id, this));
}
}
return this.clients.get(id);
}
public boolean isReachMaxConnectionCount() {
return this.totalConnections >= this.maxConnectionCount;
}
public boolean isIdleClient(String id) {
return this.idleClients.containsKey(id);
}
public boolean isOfflineClient(String id) {
return this.offlineClients.containsKey(id);
}
public Client pollPendingClient() {
return this.pendingClients.poll();
}
public int getPendingClientCount() {
// size() is O(n)
return this.pendingClients.size();
}
public void pendingMessage(Message message) {
if (!this.isOfflineClient(message.to))
this.getClient(message.to).pendingMessage(message);
else if (this.stateHandler != null)
this.stateHandler.onClientOffline(this.getClient(message.to), message);
}
private void prepareSenders(int senderCount, int senderIdle) {
this.senders = new HashMap<Sender, Thread>();
for (int i = 0; i < senderCount; i++) {
Sender sender = new Sender(this, this.token, senderIdle);
Thread thread = new Thread(sender);
thread.start();
this.senders.put(sender, thread);
}
}
private void prepareChecker(int stateBuilderIdle) {
// timer check
TimerTask task = new TimerTask() {
public void run() {
// checking senders
try {
for (Map.Entry<Sender, Thread> entry : senders.entrySet()) {
if (!entry.getValue().isAlive())
System.out.println(String.format("sender#%s is broken!", entry.getKey()));
}
} catch (Exception e) {
e.printStackTrace();
}
try {
rebuildClientsState();
System.out.println(String.format(
"total %s pending messages, total %s connections, total %s clients, %s is idle, %s is offline",
totalPendingMessages, totalConnections,
clients.size(),
idleClients.size(),
offlineClients.size()));
} catch (Exception e) {
e.printStackTrace();
}
}
};
Timer timer = new Timer(true);
timer.schedule(task, new Date(), stateBuilderIdle);
}
// build pending/idle clients queue
private void rebuildClientsState() {
int totalConn = 0;
int totalPending = 0;
int connCount, pendingCount;
// still have pending clients in processing
boolean noPending = this.pendingClients.isEmpty();
boolean offline, pending;
Object[] keys = null;
// is there a better way? avoid array create
synchronized (this.clientLock) {
keys = this.clients.keySet().toArray();
}
for (int i = 0; i < keys.length; i++) {
Client client = this.clients.get(keys[i]);
if (client == null)
continue;
connCount = client.getConnectionsCount();
pendingCount = client.getPendingMessagesCount();
totalConn += connCount;
totalPending += pendingCount;
offline = connCount == 0;
pending = pendingCount > 0;
try {
this.rebuildClientsState(client, noPending, pending, offline);
} catch (Exception e) {
System.err.println(String.format("error on rebuilding client#%s state", client.getId()));
e.printStackTrace();
}
}
this.totalConnections = totalConn;
this.totalPendingMessages = totalPending;
}
private void rebuildClientsState(Client client, boolean noPending,
boolean pending, boolean offline) {
if (noPending && pending && !offline) {
this.pendingClients.add(client);
this.idleClients.remove(client.getId());
this.offlineClients.remove(client.getId());
if (this.stateHandler != null)
this.stateHandler.onClientPending(client);
} else if (!pending && !offline) {
this.idleClients.put(client.getId(), client);
this.offlineClients.remove(client.getId());
if (this.stateHandler != null)
this.stateHandler.onClientIdle(client);
} else if (offline) {
// TODO:clear pending messages of offline client after
// a long time
this.offlineClients.put(client.getId(), client);
this.idleClients.remove(client.getId());
if (this.stateHandler != null)
this.stateHandler.onClientOffline(client);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
eb0d09dae15dc1bea6685fff5619c69bf4176040
|
d24de9be4c3993d9dc726e9a3c74d9662c470226
|
/reverse/Rocketbank_All_3.12.4_source_from_JADX/sources/android/support/v7/widget/PopupMenu.java
|
b6b185812da2d691c3e7df71b6f4c6eeab6c99ef
|
[] |
no_license
|
MEJIOMAH17/rocketbank-api
|
b18808ee4a2fdddd8b3045cd16655b0d82e0b13b
|
fc4eb0cbb4a8f52277fdb09a3b26b4cceef6ff79
|
refs/heads/master
| 2022-07-17T20:24:29.721131
| 2019-07-26T18:55:21
| 2019-07-26T18:55:21
| 198,698,231
| 4
| 0
| null | 2022-06-20T22:43:15
| 2019-07-24T19:31:49
|
Smali
|
UTF-8
|
Java
| false
| false
| 4,244
|
java
|
package android.support.v7.widget;
import android.content.Context;
import android.support.annotation.RestrictTo;
import android.support.v7.view.SupportMenuInflater;
import android.support.v7.view.menu.MenuBuilder;
import android.support.v7.view.menu.MenuBuilder.Callback;
import android.support.v7.view.menu.MenuPopupHelper;
import android.support.v7.view.menu.ShowableListMenu;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ListView;
import ru.rocketbank.r2d2.C0859R;
public class PopupMenu {
private final View mAnchor;
private final Context mContext;
private OnTouchListener mDragListener;
private final MenuBuilder mMenu;
OnMenuItemClickListener mMenuItemClickListener;
OnDismissListener mOnDismissListener;
final MenuPopupHelper mPopup;
/* renamed from: android.support.v7.widget.PopupMenu$2 */
class C02582 implements android.widget.PopupWindow.OnDismissListener {
C02582() {
}
public void onDismiss() {
if (PopupMenu.this.mOnDismissListener != null) {
PopupMenu.this.mOnDismissListener.onDismiss(PopupMenu.this);
}
}
}
public interface OnDismissListener {
void onDismiss(PopupMenu popupMenu);
}
public interface OnMenuItemClickListener {
boolean onMenuItemClick(MenuItem menuItem);
}
/* renamed from: android.support.v7.widget.PopupMenu$1 */
class C09671 implements Callback {
public void onMenuModeChange(MenuBuilder menuBuilder) {
}
C09671() {
}
public boolean onMenuItemSelected(MenuBuilder menuBuilder, MenuItem menuItem) {
return PopupMenu.this.mMenuItemClickListener != null ? PopupMenu.this.mMenuItemClickListener.onMenuItemClick(menuItem) : null;
}
}
public PopupMenu(Context context, View view) {
this(context, view, 0);
}
public PopupMenu(Context context, View view, int i) {
this(context, view, i, C0859R.attr.popupMenuStyle, 0);
}
public PopupMenu(Context context, View view, int i, int i2, int i3) {
this.mContext = context;
this.mAnchor = view;
this.mMenu = new MenuBuilder(context);
this.mMenu.setCallback(new C09671());
this.mPopup = new MenuPopupHelper(context, this.mMenu, view, false, i2, i3);
this.mPopup.setGravity(i);
this.mPopup.setOnDismissListener(new C02582());
}
public void setGravity(int i) {
this.mPopup.setGravity(i);
}
public int getGravity() {
return this.mPopup.getGravity();
}
public OnTouchListener getDragToOpenListener() {
if (this.mDragListener == null) {
this.mDragListener = new ForwardingListener(this.mAnchor) {
protected boolean onForwardingStarted() {
PopupMenu.this.show();
return true;
}
protected boolean onForwardingStopped() {
PopupMenu.this.dismiss();
return true;
}
public ShowableListMenu getPopup() {
return PopupMenu.this.mPopup.getPopup();
}
};
}
return this.mDragListener;
}
public Menu getMenu() {
return this.mMenu;
}
public MenuInflater getMenuInflater() {
return new SupportMenuInflater(this.mContext);
}
public void inflate(int i) {
getMenuInflater().inflate(i, this.mMenu);
}
public void show() {
this.mPopup.show();
}
public void dismiss() {
this.mPopup.dismiss();
}
public void setOnMenuItemClickListener(OnMenuItemClickListener onMenuItemClickListener) {
this.mMenuItemClickListener = onMenuItemClickListener;
}
public void setOnDismissListener(OnDismissListener onDismissListener) {
this.mOnDismissListener = onDismissListener;
}
@RestrictTo
ListView getMenuListView() {
if (this.mPopup.isShowing()) {
return this.mPopup.getListView();
}
return null;
}
}
|
[
"mekosichkin.ru"
] |
mekosichkin.ru
|
50da0495b6448fac3ca6ee2fb869a68d5ae01657
|
c4b9942d6e45eeba8d211d2cf7327804b6cbb984
|
/2.JavaCore/src/com/javarush/task/task19/task1915/Solution.java
|
7e86a94d4ac7039082492c10300ae0ecc89b783b
|
[] |
no_license
|
sabonv/JRushTasks
|
0db05ae4862f50e8916ed5462e178f9eb08035a1
|
1bcabed0dd42f46c43ea583b1283ba8d699227d4
|
refs/heads/master
| 2021-01-22T19:31:06.143779
| 2018-01-16T16:27:43
| 2018-01-16T16:27:43
| 85,204,939
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,158
|
java
|
package com.javarush.task.task19.task1915;
/*
Дублируем текст
*/
import java.io.*;
public class Solution {
public static TestString testString = new TestString();
public static void main(String[] args) throws Exception{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
FileOutputStream fileW = new FileOutputStream(reader.readLine());
reader.close();
PrintStream trueStream = System.out;
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
PrintStream stream = new PrintStream(outputStream);
System.setOut(stream);
testString.printSomething();
String result = outputStream.toString();
char[] resCh = result.toCharArray();
for (char ch: resCh) {
fileW.write(ch);
}
fileW.close();
//Возвращаем все как было
System.setOut(trueStream);
System.out.println(result);
}
public static class TestString {
public void printSomething() {
System.out.println("it's a text for testing");
}
}
}
|
[
"znakomiymne@list.ru"
] |
znakomiymne@list.ru
|
274d7ecdee9ecce06009cfe3962db8ab718a5d60
|
ad531b3c9f5d2aa2a1ddc49a4bcf973aaf93cb1d
|
/src/com/sample/service/TaskService.java
|
6a48578a7fe8093b9b61f03a4208eeea0d9f5371
|
[] |
no_license
|
1649865412/sports
|
4354d938a51ab37a2b9858d856fbb6cd04319dd5
|
23e45465582c76f8e061cbd167642c2bae086058
|
refs/heads/master
| 2021-01-01T16:39:17.046220
| 2015-06-26T06:45:48
| 2015-06-26T06:45:48
| 38,094,922
| 0
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,845
|
java
|
/**
* code generation
*/
package com.sample.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.base.util.dwz.Page;
import com.base.util.dwz.PageUtils;
import com.sample.entity.Task;
import com.sample.dao.TaskDAO;
@Service
@Transactional
public class TaskService {
@Autowired
private TaskDAO taskDAO;
/*
* (non-Javadoc)
* @see com.sample.service.TaskService#get(java.lang.Long)
*/
public Task get(Long id) {
return taskDAO.findOne(id);
}
/*
* (non-Javadoc)
* @see com.sample.service.TaskService#saveOrUpdate(com.sample.entity.Task)
*/
public void saveOrUpdate(Task task) {
taskDAO.save(task);
}
/*
* (non-Javadoc)
* @see com.sample.service.TaskService#delete(java.lang.Long)
*/
public void delete(Long id) {
taskDAO.delete(id);
}
/*
* (non-Javadoc)
* @see com.sample.service.TaskService#findAll(com.base.util.dwz.Page)
*/
public List<Task> findAll(Page page) {
org.springframework.data.domain.Page<Task> springDataPage = taskDAO.findAll(PageUtils.createPageable(page));
page.setTotalCount(springDataPage.getTotalElements());
return springDataPage.getContent();
}
/*
* (non-Javadoc)
* @see com.sample.service.TaskService#findByExample(org.springframework.data.jpa.domain.Specification, com.base.util.dwz.Page)
*/
public List<Task> findByExample(
Specification<Task> specification, Page page) {
org.springframework.data.domain.Page<Task> springDataPage = taskDAO.findAll(specification, PageUtils.createPageable(page));
page.setTotalCount(springDataPage.getTotalElements());
return springDataPage.getContent();
}
}
|
[
"1649865412@qq.com"
] |
1649865412@qq.com
|
1a24e3e700f41f0fcc4244671592076a0b0a6a39
|
4312a71c36d8a233de2741f51a2a9d28443cd95b
|
/RawExperiments/Math/math98/3/AstorMain-math_98/src/default/org/apache/commons/math/random/RandomAdaptor.java
|
d6cff228d4e7ea7b0715b0018287e3752d35eb70
|
[] |
no_license
|
SajjadZaidi/AutoRepair
|
5c7aa7a689747c143cafd267db64f1e365de4d98
|
e21eb9384197bae4d9b23af93df73b6e46bb749a
|
refs/heads/master
| 2021-05-07T00:07:06.345617
| 2017-12-02T18:48:14
| 2017-12-02T18:48:14
| 112,858,432
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,396
|
java
|
package org.apache.commons.math.random;
public class RandomAdaptor extends java.util.Random implements org.apache.commons.math.random.RandomGenerator {
private static final long serialVersionUID = 2570805822599485047L;
private org.apache.commons.math.random.RandomGenerator randomGenerator = null;
private RandomAdaptor() {
}
public RandomAdaptor(org.apache.commons.math.random.RandomGenerator randomGenerator) {
org.apache.commons.math.random.RandomAdaptor.this.randomGenerator = randomGenerator;
}
public static java.util.Random createAdaptor(org.apache.commons.math.random.RandomGenerator randomGenerator) {
return new org.apache.commons.math.random.RandomAdaptor(randomGenerator);
}
public boolean nextBoolean() {
return randomGenerator.nextBoolean();
}
public void nextBytes(byte[] bytes) {
randomGenerator.nextBytes(bytes);
}
public double nextDouble() {
return randomGenerator.nextDouble();
}
public float nextFloat() {
return randomGenerator.nextFloat();
}
public double nextGaussian() {
return randomGenerator.nextGaussian();
}
public int nextInt() {
return randomGenerator.nextInt();
}
public int nextInt(int n) {
return randomGenerator.nextInt(n);
}
public long nextLong() {
return randomGenerator.nextLong();
}
public void setSeed(long seed) {
if ((randomGenerator) != null) {
randomGenerator.setSeed(seed);
}
}
}
|
[
"sajjad.syed@ucalgary.ca"
] |
sajjad.syed@ucalgary.ca
|
409a919f22574240e22fbbf7e622a8b9be400904
|
278a44f854ce69a464bb4f96e51a4782cd17b846
|
/java/poi-utils/src/main/java/com/chris/poi/enums/XlsType.java
|
3f92007e79cfce964003d5cbf137dda7eadd19a1
|
[] |
no_license
|
Yi-Kuan/development-libs
|
e308a61b43b6fc903b4843ce7fa8af826bf676fa
|
47398214fbdb9aeb137b0cca82fa9b18518d3295
|
refs/heads/master
| 2021-05-26T10:52:54.045814
| 2020-02-19T17:49:43
| 2020-02-19T17:49:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 613
|
java
|
package com.chris.poi.enums;
/**
* Created by Chris Chen
* 2018/12/10
* Explain: xls文件版本格式
*/
public enum XlsType {
XLS("xls", ".xls"), XLSX("xlsx", ".xlsx");
private String extName;
private String ext;
XlsType(String extName, String ext) {
this.extName = extName;
this.ext = ext;
}
public String getExtName() {
return extName;
}
public void setExtName(String extName) {
this.extName = extName;
}
public String getExt() {
return ext;
}
public void setExt(String ext) {
this.ext = ext;
}
}
|
[
"chrischen2018@163.com"
] |
chrischen2018@163.com
|
486bbe8bd2ca166a014b7c23fee6fdd0fa4afc16
|
3df715c046ce3d96680b3df88ca26a048fb3c71d
|
/src/문제집/프로그래머스/해시/위장/MainV2.java
|
1d55a0dee75c56d3ed79d6f9a3a65ea24d3c3e44
|
[] |
no_license
|
camel-man-ims/algorithm-collection
|
79163d0f0681b4e682ed14b3ac3cc499e832204d
|
225473c41f206337de9c97a33ea92414f2793c37
|
refs/heads/main
| 2022-12-27T04:52:59.505738
| 2022-11-16T15:23:14
| 2022-11-16T15:23:14
| 303,552,853
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 671
|
java
|
package 문제집.프로그래머스.해시.위장;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* date: 22.03.02
*/
public class MainV2 {
public static void main(String[] args) {
}
static class Solution {
public int solution(String[][] clothes) {
Map<String, Integer> map = new HashMap<>();
for(String [] c : clothes){
map.put(c[1],map.getOrDefault(c[1],0)+1);
}
int cnt = 1;
Set<String> keys = map.keySet();
for(String s : keys){
cnt *= map.get(s)+1;
}
return cnt-1;
}
}
}
|
[
"gudwnsrh@gmail.com"
] |
gudwnsrh@gmail.com
|
ce26aa77daf3b92649f39d9dd6525f885df65a66
|
56fe53e612720292dc30927072e6f76c2eea6567
|
/onvifcxf/src/org/onvif/ver10/schema/HostnameInformation.java
|
e5c24dfd561f1ee92f9c3ec3e2e78e8998d8b979
|
[] |
no_license
|
guishijin/onvif4java
|
f0223e63cda3a7fcd44e49340eaae1d7e5354ad0
|
9b15dba80f193ee4ba952aad377dda89a9952343
|
refs/heads/master
| 2020-04-08T03:22:51.810275
| 2019-10-23T11:16:46
| 2019-10-23T11:16:46
| 124,234,334
| 1
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 3,690
|
java
|
package org.onvif.ver10.schema;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
/**
* <p>HostnameInformation complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* <complexType name="HostnameInformation">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="FromDHCP" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="Name" type="{http://www.w3.org/2001/XMLSchema}token" minOccurs="0"/>
* <element name="Extension" type="{http://www.onvif.org/ver10/schema}HostnameInformationExtension" minOccurs="0"/>
* </sequence>
* <anyAttribute processContents='lax'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HostnameInformation", propOrder = {
"fromDHCP",
"name",
"extension"
})
public class HostnameInformation {
@XmlElement(name = "FromDHCP")
protected boolean fromDHCP;
@XmlElement(name = "Name")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "token")
protected String name;
@XmlElement(name = "Extension")
protected HostnameInformationExtension extension;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* 获取fromDHCP属性的值。
*
*/
public boolean isFromDHCP() {
return fromDHCP;
}
/**
* 设置fromDHCP属性的值。
*
*/
public void setFromDHCP(boolean value) {
this.fromDHCP = value;
}
/**
* 获取name属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* 设置name属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* 获取extension属性的值。
*
* @return
* possible object is
* {@link HostnameInformationExtension }
*
*/
public HostnameInformationExtension getExtension() {
return extension;
}
/**
* 设置extension属性的值。
*
* @param value
* allowed object is
* {@link HostnameInformationExtension }
*
*/
public void setExtension(HostnameInformationExtension value) {
this.extension = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
|
[
"420188751@qq.com"
] |
420188751@qq.com
|
8b73ae5b159998d6c615c3487323833f8fa1cc88
|
9aa0fe268ce50060bffaab239db64f3496b3a062
|
/src/main/java/com/uc/bpg/service/impl/DeviceTypeListServiceImpl.java
|
90f759fdea4f2894f695a119e211215c4a75c18f
|
[] |
no_license
|
guohong365/bpg
|
b3601e108ff28dde8a35277d6740de198c54cd38
|
72bbe5f206f758d2fd85e4b332f7ab1a0e3586d7
|
refs/heads/master
| 2021-01-20T07:52:27.613117
| 2019-03-26T14:11:14
| 2019-03-26T14:11:14
| 90,056,947
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,040
|
java
|
package com.uc.bpg.service.impl;
import org.springframework.util.StringUtils;
import com.uc.bpg.forms.DeviceTypeQueryForm;
import com.uc.bpg.service.BusinessListServiceBase;
import com.uc.bpg.service.DeviceTypeListService;
import com.uc.web.forms.ListQueryForm;
public class DeviceTypeListServiceImpl extends BusinessListServiceBase<DeviceTypeQueryForm> implements DeviceTypeListService{
@Override
public boolean prepareQueryForm(ListQueryForm queryForm) {
super.prepareQueryForm(queryForm);
DeviceTypeQueryForm deviceTypeQueryForm=(DeviceTypeQueryForm) queryForm;
if(StringUtils.isEmpty(deviceTypeQueryForm.getQueryName())){
deviceTypeQueryForm.setQueryName(null);
}
if(StringUtils.isEmpty(deviceTypeQueryForm.getQueryProduct())){
deviceTypeQueryForm.setQueryProduct(null);
}
if(deviceTypeQueryForm.getQueryAll()==null || !deviceTypeQueryForm.getQueryAll()){
deviceTypeQueryForm.setQueryAll(false);
} else {
deviceTypeQueryForm.setQueryAll(true);
}
return true;
}
}
|
[
"guohong365@263.net"
] |
guohong365@263.net
|
14c1dc53392ea41efcb5f0b4d10c0e51ba693063
|
b28d60148840faf555babda5ed44ed0f1b164b2c
|
/java/misshare_cloud-multi-tenant/traffic-manage/src/main/java/com/qhieco/trafficmanage/entity/response/LockPayResponse.java
|
3e1625f66c2fba449b3bd4eba62f944b4dc2d328
|
[] |
no_license
|
soon14/Easy_Spring_Backend
|
e2ec16afb1986ea19df70821d96edcb922d7978e
|
49bceae4b0c3294945dc4ad7ff53cae586127e50
|
refs/heads/master
| 2020-07-26T16:12:01.337615
| 2019-04-09T08:15:37
| 2019-04-09T08:15:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 428
|
java
|
package com.qhieco.trafficmanage.entity.response;
import lombok.Data;
/**
* @author 郑旭 790573267@qq.com
* @version 2.0.1 创建时间: 18-6-13 下午1:45
* <p>
* 类说明:
* ${description}
*/
@Data
public class LockPayResponse extends BaseResponse {
//服务商系统记录流水号
private String CSPTLS;
//处理结果
private String CLJG;
//处理结果描述
private String CLJGMS;
}
|
[
"k2160789@163.com"
] |
k2160789@163.com
|
50666688e1652c47117f65b9e48ceae2057b6c77
|
7773ea6f465ffecfd4f9821aad56ee1eab90d97a
|
/plugins/markdown/src/org/intellij/plugins/markdown/lang/psi/impl/MarkdownCompositePsiElementBase.java
|
0d0915299f57a6a0afdcb347dec4c267daeecbc9
|
[
"Apache-2.0"
] |
permissive
|
aghasyedbilal/intellij-community
|
5fa14a8bb62a037c0d2764fb172e8109a3db471f
|
fa602b2874ea4eb59442f9937b952dcb55910b6e
|
refs/heads/master
| 2023-04-10T20:55:27.988445
| 2020-05-03T22:00:26
| 2020-05-03T22:26:23
| 261,074,802
| 2
| 0
|
Apache-2.0
| 2020-05-04T03:48:36
| 2020-05-04T03:48:35
| null |
UTF-8
|
Java
| false
| false
| 2,267
|
java
|
package org.intellij.plugins.markdown.lang.psi.impl;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.lang.ASTNode;
import com.intellij.navigation.ItemPresentation;
import org.intellij.plugins.markdown.lang.psi.MarkdownPsiElement;
import org.intellij.plugins.markdown.structureView.MarkdownBasePresentation;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
public abstract class MarkdownCompositePsiElementBase extends ASTWrapperPsiElement implements MarkdownCompositePsiElement {
public static final int PRESENTABLE_TEXT_LENGTH = 50;
public MarkdownCompositePsiElementBase(@NotNull ASTNode node) {
super(node);
}
@NotNull
protected CharSequence getChars() {
return getTextRange().subSequence(getContainingFile().getViewProvider().getContents());
}
@NotNull
protected String shrinkTextTo(int length) {
final CharSequence chars = getChars();
return chars.subSequence(0, Math.min(length, chars.length())).toString();
}
@NotNull
@Override
public List<MarkdownPsiElement> getCompositeChildren() {
return Arrays.asList(findChildrenByClass(MarkdownPsiElement.class));
}
/**
* @return {@code true} if there is more than one composite child
* OR there is one child which is not a paragraph, {@code false} otherwise.
*/
public boolean hasTrivialChildren() {
final Collection<MarkdownPsiElement> children = getCompositeChildren();
if (children.size() != 1) {
return false;
}
return children.iterator().next() instanceof MarkdownParagraphImpl;
}
@Override
public ItemPresentation getPresentation() {
return new MarkdownBasePresentation() {
@Nullable
@Override
public String getPresentableText() {
if (!isValid()) {
return null;
}
return getPresentableTagName();
}
@Nullable
@Override
public String getLocationString() {
if (!isValid()) {
return null;
}
if (getCompositeChildren().size() == 0) {
return shrinkTextTo(PRESENTABLE_TEXT_LENGTH);
}
else {
return null;
}
}
};
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
d545251aaa6c151ed1f25835b197601543da071d
|
1e194aa41e80c9ac433615bb0b08a00fbeaa4ac1
|
/app/src/main/java/com/hywy/publichzt/adapter/item/ReservoirItem.java
|
1279ee0d8bcbc0462c7cad4640a12d616d39f88f
|
[] |
no_license
|
Sususuperman/-app
|
b88ce5c01ae0e3f66d3ced81fda73f61652af733
|
909a81ea30932427113f5735581618e9fd56abca
|
refs/heads/master
| 2020-03-30T06:12:13.370937
| 2018-09-29T08:58:35
| 2018-09-29T08:58:35
| 150,845,026
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,053
|
java
|
package com.hywy.publichzt.adapter.item;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.cs.common.utils.StringUtils;
import com.hywy.publichzt.R;
import com.hywy.publichzt.entity.Reservoir;
import java.text.DecimalFormat;
import java.util.List;
import eu.davidea.flexibleadapter.FlexibleAdapter;
import eu.davidea.flexibleadapter.items.AbstractFlexibleItem;
import eu.davidea.viewholders.FlexibleViewHolder;
/**
* 水库水位监测
*
* @author Superman
*/
public class ReservoirItem extends AbstractFlexibleItem<ReservoirItem.EntityViewHolder> {
private Reservoir reservoir;
public Reservoir getData() {
return reservoir;
}
public ReservoirItem(Reservoir reservoir) {
this.reservoir = reservoir;
}
@Override
public int getLayoutRes() {
return R.layout.item_reservoir;
}
@Override
public ReservoirItem.EntityViewHolder createViewHolder(FlexibleAdapter adapter, LayoutInflater inflater, ViewGroup parent) {
return new ReservoirItem.EntityViewHolder(inflater.inflate(getLayoutRes(), parent, false), adapter);
}
static class EntityViewHolder extends FlexibleViewHolder {
TextView tv_title_r;
TextView tv_address_r;
TextView tv_water_r;
TextView tv_stream_r;
TextView tv_time_r;
public EntityViewHolder(View view, FlexibleAdapter adapter) {
super(view, adapter);
tv_title_r = (TextView) view.findViewById(R.id.tv_title_r);
tv_address_r = (TextView) view.findViewById(R.id.tv_address_r);
tv_water_r = (TextView) view.findViewById(R.id.water_height);
tv_stream_r = (TextView) view.findViewById(R.id.stream_day);
tv_time_r = (TextView) view.findViewById(R.id.tv_time_r);
}
}
@Override
public void bindViewHolder(FlexibleAdapter adapter, EntityViewHolder holder, int position, List payloads) {
if (reservoir != null) {
if (StringUtils.hasLength(reservoir.getSTNM())) {
holder.tv_title_r.setText(reservoir.getSTNM());
}
if (reservoir.getSTLC() != null) {
holder.tv_address_r.setText(reservoir.getSTLC());
}
holder.tv_water_r.setText(reservoir.getRZ() + "mm");
holder.tv_stream_r.setText(reservoir.getOTQ() + "m³/s");
holder.tv_time_r.setText(reservoir.getTM());
}
}
/**
* 将数据保留两位小数
*/
private String getTwoDecimal(double num) {
DecimalFormat dFormat = new DecimalFormat("#########0.00");
String str = dFormat.format(num);
return str;
}
/**
*/
@Override
public boolean equals(Object o) {
// if (o instanceof WaterAndRainItem) {
// WaterAndRainItem odata = (WaterAndRainItem) o;
// return waterRain.getOrganID() == odata.getData().getOrganID();
// }
return false;
}
}
|
[
"chaoisgoodman@163.com"
] |
chaoisgoodman@163.com
|
cbef7a3061e2373d68c913c47dc3bd4e409a9165
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/onboarding/presenter/C14102u.java
|
178cf664a7db2a9decc1a31ee8b1ebbaa0ac2ba0
|
[] |
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
| 516
|
java
|
package com.tinder.onboarding.presenter;
import com.tinder.onboarding.target.BirthdayStepTarget;
import org.joda.time.LocalDate;
import rx.functions.Action1;
/* renamed from: com.tinder.onboarding.presenter.u */
final /* synthetic */ class C14102u implements Action1 {
/* renamed from: a */
private final LocalDate f44778a;
C14102u(LocalDate localDate) {
this.f44778a = localDate;
}
public void call(Object obj) {
((BirthdayStepTarget) obj).setBirthday(this.f44778a);
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
dafae313dd5cf9be1803684b8c91996b344d5c25
|
1f3c00468850bc6e7794cb70efd8dd1c73eda1b5
|
/Channel/channel/com/channel/bean/XcDt.java
|
f450b46a553bb6fc3614e0fc010c20d7b28e4226
|
[] |
no_license
|
litcas/PRJ
|
2861f3eabe163465fb640b5259d0b946a3d3778a
|
2cceb861502d8b7b0f54e4b99c50469b3c97b63a
|
refs/heads/master
| 2021-06-27T19:32:47.168612
| 2017-09-17T05:44:31
| 2017-09-17T05:44:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,985
|
java
|
package com.channel.bean;
import org.apache.struts2.json.annotations.JSON;
import java.util.Date;
/**
* Created by Administrator on 2016/8/9.
*/
public class XcDt {
private int id;
private String hdmc;
private String qd;
private String zd;
private String qdzh;
private String zdzh;
private String ztqk;
private String deptname;
private Date starttime;
private Date endtime;
private int yhgkid;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getHdmc() {
return hdmc;
}
public void setHdmc(String hdmc) {
this.hdmc = hdmc;
}
public String getQd() {
return qd;
}
public void setQd(String qd) {
this.qd = qd;
}
public String getZd() {
return zd;
}
public void setZd(String zd) {
this.zd = zd;
}
public String getQdzh() {
return qdzh;
}
public void setQdzh(String qdzh) {
this.qdzh = qdzh;
}
public String getZdzh() {
return zdzh;
}
public void setZdzh(String zdzh) {
this.zdzh = zdzh;
}
public String getDeptname() {
return deptname;
}
public void setDeptname(String deptname) {
this.deptname = deptname;
}
public String getZtqk() {
return ztqk;
}
public void setZtqk(String ztqk) {
this.ztqk = ztqk;
}
@JSON(format = "yyyy-MM-dd HH:mm:ss")
public Date getStarttime() {
return starttime;
}
public void setStarttime(Date starttime) {
this.starttime = starttime;
}
@JSON(format = "yyyy-MM-dd HH:mm:ss")
public Date getEndtime() {
return endtime;
}
public void setEndtime(Date endtime) {
this.endtime = endtime;
}
public int getYhgkid() {
return yhgkid;
}
public void setYhgkid(int yhgkid) {
this.yhgkid = yhgkid;
}
}
|
[
"393054246@qq.com"
] |
393054246@qq.com
|
d4bb0b2edc41ee54f73bae2ec0d8c60a010201d2
|
2bf30c31677494a379831352befde4a5e3d8ed19
|
/vipr-portal/com.iwave.ext.linux/src/java/com/iwave/ext/linux/command/lvm/DeleteLogicalVolumeCommand.java
|
5a4e6815f381c54cfbb0a01b5623bb31ceb1bd0f
|
[] |
no_license
|
dennywangdengyu/coprhd-controller
|
fed783054a4970c5f891e83d696a4e1e8364c424
|
116c905ae2728131e19631844eecf49566e46db9
|
refs/heads/master
| 2020-12-30T22:43:41.462865
| 2015-07-23T18:09:30
| 2015-07-23T18:09:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 545
|
java
|
/*
* Copyright 2012-2015 iWave Software LLC
* All Rights Reserved
*/
package com.iwave.ext.linux.command.lvm;
import com.iwave.ext.linux.command.CommandConstants;
import com.iwave.ext.linux.command.LinuxScriptCommand;
public class DeleteLogicalVolumeCommand extends LinuxScriptCommand {
public DeleteLogicalVolumeCommand(String logicalVolume) {
addCommandLine("%s -a n %s", CommandConstants.LVCHANGE, logicalVolume);
addCommandLine("%s %s", CommandConstants.LVREMOVE, logicalVolume);
setRunAsRoot(true);
}
}
|
[
"review-coprhd@coprhd.org"
] |
review-coprhd@coprhd.org
|
72d7c2432eda226752859425574c8d5cb756ae41
|
2248734678262394c05755c8ac5c0d9d34ec0a52
|
/src/com/sigma/codaclient/common/CodaClientConfiguration.java
|
a651ff44b78af07813d2a1aecd5b5363b96172eb
|
[] |
no_license
|
phi2039/codalib
|
17f717af931421761a3f711cb2ed6bf0f4ed165c
|
3623e2c0e30c269f641e079502bb9081b669b93e
|
refs/heads/master
| 2021-01-10T05:35:46.433899
| 2015-12-03T16:22:05
| 2015-12-03T16:22:05
| 47,346,059
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,406
|
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 com.sigma.codaclient.common;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
/**
*
* @author clance
*/
public class CodaClientConfiguration {
CodaClientProperties activeProfile = null;
final Properties properties = new Properties();
public CodaClientConfiguration(String path) {
try {
final FileInputStream in = new FileInputStream(path);
properties.load(in);
in.close();
} catch (FileNotFoundException fe) {
System.err.println("Could not read configuration from file: " + path);
} catch (IOException ioe) {
System.err.println("IOException encountered while reading from " + path);
}
String activeProfileName = properties.getProperty("active_configuration","");
activeProfile = new CodaClientProperties(properties, activeProfileName);
}
public CodaClientProperties getActiveProfile() {
return activeProfile;
}
public void setActiveProfile(String profileName) {
activeProfile = getProfile(profileName);
}
public CodaClientProperties getProfile(String profileName) {
return new CodaClientProperties(properties, profileName);
}
}
|
[
"climber2039@gmail.com"
] |
climber2039@gmail.com
|
305ba4a5d65070350c3c93b2458019c0d397fbfe
|
8365232271e33790914ea087fa8a39641173cf55
|
/src/main/java/br/com/cui/config/DateTimeFormatConfiguration.java
|
e6cdfef641851e82b952898e1559b5d7fdaaa44b
|
[] |
no_license
|
bruno-ayres/cui
|
ce70958c2c3fbeb2ab4d3a20665c4b9dab894160
|
a22a9d3a9d766a663da29dbf08c2c69b4297c14e
|
refs/heads/master
| 2020-04-11T22:07:25.701592
| 2018-12-17T15:13:18
| 2018-12-17T15:13:18
| 162,125,936
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 717
|
java
|
package br.com.cui.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Configure the converters to use the ISO format for dates by default.
*/
@Configuration
public class DateTimeFormatConfiguration implements WebMvcConfigurer {
@Override
public void addFormatters(FormatterRegistry registry) {
DateTimeFormatterRegistrar registrar = new DateTimeFormatterRegistrar();
registrar.setUseIsoFormat(true);
registrar.registerFormatters(registry);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
293b1c82e72a5fa6eec63fa51c15c7156b3125f8
|
08ceda6be642e612425ad90c968ed79a9a06f092
|
/lab3/src/Expression.java
|
6a5b6c750fa084feeb458b839a30743b6246dd66
|
[] |
no_license
|
wushangzhen/Projects
|
3c1964d1023fab1912f1a1ad38eecb3b8af09807
|
c124ecdae12cecb7bb18cd0c317d05a11050b135
|
refs/heads/master
| 2020-04-09T15:07:39.485934
| 2018-12-04T22:06:03
| 2018-12-04T22:06:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 259
|
java
|
package edu.neu.ccs.cs5010.lab3;
/**
*
*/
public interface Expression {
/**
* Evaluate this expression and return the final value
*
* @return result of evaluating this expression
*/
Val eval(Context ctx) throws Exception;
void trace();
}
|
[
"wushangzhen_bupt@163.com"
] |
wushangzhen_bupt@163.com
|
84b8845df7d208eebc6a8ed3fc79b05373236044
|
7b0e0015cad07fce81803cb8f7ccf0feeee62ec4
|
/src/main/java/com/dw/suppercms/application/system/impl/SysParamServiceImpl.java
|
60a4963d8a26c139a3a2c570c9e639789a02c43b
|
[] |
no_license
|
shenqidekobe/supercms
|
ecb191c5537355a4de8a45f978932d8007fab9a6
|
0bb6afcb7a1bd2cada454ae29de2f54553436da7
|
refs/heads/master
| 2021-01-24T20:54:05.369022
| 2018-02-28T09:54:33
| 2018-02-28T09:54:33
| 123,263,266
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,478
|
java
|
package com.dw.suppercms.application.system.impl;
import static org.junit.Assert.assertNotNull;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.BeanUtils;
import com.dw.framework.core.annotation.ApplicationService;
import com.dw.suppercms.application.system.SysParamService;
import com.dw.suppercms.domain.system.SysParamInfo;
import com.dw.suppercms.domain.system.SysParamInfo.PARAM_CODE;
import com.dw.suppercms.domain.system.SysParamRepository;
import com.googlecode.genericdao.search.Search;
/**
* 系统参数服务实现类
* */
@ApplicationService
public class SysParamServiceImpl implements SysParamService{
@Resource
private SysParamRepository sysParamRepository;
@Override
public SysParamInfo createSysParam(SysParamInfo obj) {
assertNotNull(obj);
sysParamRepository.save(obj);
return obj;
}
@Override
public SysParamInfo modifySysParam(Long id, SysParamInfo obj) {
assertNotNull(obj);
SysParamInfo pojo=this.findSysParamById(id);
BeanUtils.copyProperties(obj, pojo);
this.sysParamRepository.save(pojo);
return pojo;
}
@Override
public void removeSysParam(Long id) {
assertNotNull(id);
this.sysParamRepository.removeById(id);
}
@Override
public boolean validateParamKey(PARAM_CODE paramCode, String paramKey) {
assertNotNull(paramCode);
assertNotNull(paramKey);
return this.sysParamRepository.search(new Search().addFilterEqual("paramCode", paramCode).addFilterEqual("paramKey", paramKey)).size()==0?true:false;
}
@Override
public SysParamInfo findSysParamById(Long id) {
assertNotNull(id);
return this.sysParamRepository.find(id);
}
@Override
public List<SysParamInfo> findSysParamListByCode(PARAM_CODE paramCode) {
return this.sysParamRepository.search(new Search().addFilterEqual("paramCode", paramCode));
}
@Override
public SysParamInfo findSysParamByCodeAndKey(PARAM_CODE paramCode, String paramKey) {
List<SysParamInfo> list=this.sysParamRepository.search(new Search().addFilterEqual("paramCode", paramCode).addFilterEqual("paramKey", paramKey));
if(!list.isEmpty()){
return list.get(0);
}
return null;
}
@Override
public String findSysParamValByCodeAndKey(PARAM_CODE paramCode,String paramKey){
SysParamInfo param=findSysParamByCodeAndKey(paramCode, paramKey);
if(param!=null){
return param.getParamVal();
}
return null;
}
@Override
public List<SysParamInfo> all(){
return this.sysParamRepository.findAll();
}
}
|
[
"liuyuan_kobe@163.com"
] |
liuyuan_kobe@163.com
|
950b5952fbb0574e5f3c6d261491dbe24b5b80d1
|
c79772dcab46880686e7d16931360e24d3ce3eec
|
/src/main/java/io/moonman/emergingtechnology/proxy/CommonProxy.java
|
865a5bddd8a0a2b448c1126515da3d9d3bb7f4f2
|
[
"MIT"
] |
permissive
|
DSSDevelopment/EmergingTechnology
|
5a01f7726a735b568e767a26c97c0090ad6ed276
|
1b1e4b87406f9e7ad326ddb4d8848d9b790948b6
|
refs/heads/master
| 2021-02-18T21:04:16.749245
| 2020-03-08T19:51:23
| 2020-03-08T19:51:23
| 245,236,690
| 0
| 0
|
MIT
| 2020-03-05T18:18:19
| 2020-03-05T18:18:18
| null |
UTF-8
|
Java
| false
| false
| 4,034
|
java
|
package io.moonman.emergingtechnology.proxy;
import io.moonman.emergingtechnology.EmergingTechnology;
import io.moonman.emergingtechnology.config.EmergingTechnologyConfig;
import io.moonman.emergingtechnology.providers.ModBulbProvider;
import io.moonman.emergingtechnology.providers.ModFluidProvider;
import io.moonman.emergingtechnology.providers.ModMediumProvider;
import io.moonman.emergingtechnology.providers.ModTissueProvider;
import io.moonman.emergingtechnology.integration.ModLoader;
import io.moonman.emergingtechnology.recipes.RecipeBuilder;
import io.moonman.emergingtechnology.worldgen.OreGenerator;
import io.moonman.emergingtechnology.worldgen.WorldTickHandler;
import io.moonman.emergingtechnology.init.OreRegistrationHandler;
import io.moonman.emergingtechnology.init.RegistrationHandler;
import io.moonman.emergingtechnology.integration.crafttweaker.CraftTweakerHelper;
import io.moonman.emergingtechnology.network.PacketHandler;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.world.World;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.registries.IForgeRegistryModifiable;
@EventBusSubscriber(modid = EmergingTechnology.MODID)
public abstract class CommonProxy {
public static Configuration config;
@SubscribeEvent
public static void registerItems(Register<Item> event) {
RegistrationHandler.registerItems(event);
}
@SubscribeEvent
public static void registerBlocks(Register<Block> event) {
RegistrationHandler.registerBlocks(event);
}
@SubscribeEvent
public static void registerRecipes(Register<IRecipe> event) {
IForgeRegistryModifiable<IRecipe> registry = (IForgeRegistryModifiable<IRecipe>) event.getRegistry();
RecipeBuilder.removeRecipes(registry);
}
@SideOnly(Side.CLIENT)
@SubscribeEvent
public static void registerModels(ModelRegistryEvent event) {
RegistrationHandler.registerModels(event);
}
public void preInit(FMLPreInitializationEvent e) {
RegistrationHandler.registerFluids();
EmergingTechnologyConfig.preInit();
ModLoader.preInit();
GameRegistry.registerWorldGenerator(OreGenerator.instance, 10);
MinecraftForge.EVENT_BUS.register(OreGenerator.instance);
ModBulbProvider.preInit(e);
ModMediumProvider.preInit(e);
ModFluidProvider.preInit(e);
ModTissueProvider.preInit(e);
CraftTweakerHelper.preInit();
PacketHandler.registerMessages(EmergingTechnology.MODID);
}
public void init(FMLInitializationEvent e) {
MinecraftForge.EVENT_BUS.register(WorldTickHandler.instance);
OreRegistrationHandler.init();
RecipeBuilder.buildMachineRecipes();
}
public void postInit(FMLPostInitializationEvent e) {
}
public World getWorld(MessageContext ctx) {
return ctx.getServerHandler().player.world;
}
abstract public boolean playerIsInCreativeMode(EntityPlayer player);
/**
* is this a dedicated server?
*
* @return true if this is a dedicated server, false otherwise
*/
abstract public boolean isDedicatedServer();
}
|
[
"moonmanmodding@gmail.com"
] |
moonmanmodding@gmail.com
|
8d2df2b77b7e3f6f38b54118b9ac98668e9994ec
|
c1791bce8b55528352e9b4b5bfd07367733a279e
|
/MineTweaker3-API/src/main/java/minetweaker/api/event/PlayerSmeltedEvent.java
|
62d5743ed720cc6d420c875a09bef1f854ed6ecf
|
[] |
no_license
|
AnodeCathode/MineTweaker3
|
612ccd943729e755a3feafffeaf4a836e321eb92
|
f254aa99e33e2549757fc77ca83aeeca53f89bcb
|
refs/heads/master
| 2021-01-17T14:13:04.603498
| 2015-08-12T04:26:42
| 2015-08-12T04:26:42
| 40,580,018
| 0
| 0
| null | 2015-08-12T04:22:37
| 2015-08-12T04:22:37
| null |
UTF-8
|
Java
| false
| false
| 745
|
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 minetweaker.api.event;
import minetweaker.api.item.IItemStack;
import minetweaker.api.player.IPlayer;
import stanhebben.zenscript.annotations.ZenGetter;
/**
*
* @author Stan
*/
public class PlayerSmeltedEvent {
private final IPlayer player;
private final IItemStack output;
public PlayerSmeltedEvent(IPlayer player, IItemStack output) {
this.player = player;
this.output = output;
}
@ZenGetter("player")
public IPlayer getPlayer() {
return player;
}
@ZenGetter("output")
public IItemStack getOutput() {
return output;
}
}
|
[
"stanhebben@gmail.com"
] |
stanhebben@gmail.com
|
e1d7eb5f20c4ad5cd8fa82035334209ef4cbf032
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MATH-84b-3-30-SPEA2-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/optimization/direct/DirectSearchOptimizer_ESTest_scaffolding.java
|
811d2553a14b5e2bddd91a752b5a9994ee858785
|
[] |
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
| 3,934
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Apr 06 16:02:03 UTC 2020
*/
package org.apache.commons.math.optimization.direct;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import static org.evosuite.shaded.org.mockito.Mockito.*;
@EvoSuiteClassExclude
public class DirectSearchOptimizer_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.optimization.direct.DirectSearchOptimizer";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {}
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DirectSearchOptimizer_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.optimization.direct.DirectSearchOptimizer$1",
"org.apache.commons.math.MathException",
"org.apache.commons.math.optimization.OptimizationException",
"org.apache.commons.math.optimization.RealConvergenceChecker",
"org.apache.commons.math.optimization.SimpleScalarValueChecker",
"org.apache.commons.math.ConvergenceException",
"org.apache.commons.math.MaxEvaluationsExceededException",
"org.apache.commons.math.MaxIterationsExceededException",
"org.apache.commons.math.analysis.MultivariateRealFunction",
"org.apache.commons.math.optimization.MultivariateRealOptimizer",
"org.apache.commons.math.FunctionEvaluationException",
"org.apache.commons.math.optimization.RealPointValuePair",
"org.apache.commons.math.optimization.direct.MultiDirectional",
"org.apache.commons.math.MathRuntimeException",
"org.apache.commons.math.MathRuntimeException$1",
"org.apache.commons.math.MathRuntimeException$2",
"org.apache.commons.math.MathRuntimeException$3",
"org.apache.commons.math.MathRuntimeException$4",
"org.apache.commons.math.MathRuntimeException$5",
"org.apache.commons.math.MathRuntimeException$6",
"org.apache.commons.math.MathRuntimeException$7",
"org.apache.commons.math.optimization.direct.DirectSearchOptimizer",
"org.apache.commons.math.MathRuntimeException$8",
"org.apache.commons.math.optimization.GoalType",
"org.apache.commons.math.MathRuntimeException$10",
"org.apache.commons.math.MathRuntimeException$9"
);
}
private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException {
mock(Class.forName("org.apache.commons.math.analysis.MultivariateRealFunction", false, DirectSearchOptimizer_ESTest_scaffolding.class.getClassLoader()));
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
e05ef8dfcd6f4173dc5b3d6aef6b140a5145805a
|
6629cef4b676b40de6d9d82d000325f215e50834
|
/com/ekalife/elions/model/AgentTax.java
|
153ab559ed817e140c580aba9df85c9d525df2e4
|
[] |
no_license
|
fidesetratio/insurance
|
a9bf169b9d1b568a2ae570b233a234a2500a4e31
|
6ba971ae6dc6d4858949f333b48b9113ef7ae8c4
|
refs/heads/master
| 2023-01-01T17:38:50.269848
| 2020-10-27T03:39:52
| 2020-10-27T03:39:52
| 307,576,991
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,490
|
java
|
package com.ekalife.elions.model;
import java.io.Serializable;
import java.util.Date;
/**
* MST_AGENT_TAX
* @since 16 Oct 09
* @author Yusuf
*
*/
public class AgentTax implements Serializable {
private static final long serialVersionUID = 1L;
public Date adt_date;
public String as_msag;
public Double adec_comm_month;
public Double adec_comm_year;
public Double adec_ptkp;
public Double adec_pkp_month;
public Double adec_pkp_year;
public Double adec_tax_pct;
public Double adec_tax_paid;
public Double adec_tax_real;
public Date adt_pay;
public String as_spt;
public boolean ab_update;
public boolean isAb_update() {
return ab_update;
}
public void setAb_update(boolean ab_update) {
this.ab_update = ab_update;
}
public Double getAdec_comm_month() {
return adec_comm_month;
}
public void setAdec_comm_month(Double adec_comm_month) {
this.adec_comm_month = adec_comm_month;
}
public Double getAdec_comm_year() {
return adec_comm_year;
}
public void setAdec_comm_year(Double adec_comm_year) {
this.adec_comm_year = adec_comm_year;
}
public Double getAdec_pkp_month() {
return adec_pkp_month;
}
public void setAdec_pkp_month(Double adec_pkp_month) {
this.adec_pkp_month = adec_pkp_month;
}
public Double getAdec_pkp_year() {
return adec_pkp_year;
}
public void setAdec_pkp_year(Double adec_pkp_year) {
this.adec_pkp_year = adec_pkp_year;
}
public Double getAdec_ptkp() {
return adec_ptkp;
}
public void setAdec_ptkp(Double adec_ptkp) {
this.adec_ptkp = adec_ptkp;
}
public Double getAdec_tax_paid() {
return adec_tax_paid;
}
public void setAdec_tax_paid(Double adec_tax_paid) {
this.adec_tax_paid = adec_tax_paid;
}
public Double getAdec_tax_pct() {
return adec_tax_pct;
}
public void setAdec_tax_pct(Double adec_tax_pct) {
this.adec_tax_pct = adec_tax_pct;
}
public Double getAdec_tax_real() {
return adec_tax_real;
}
public void setAdec_tax_real(Double adec_tax_real) {
this.adec_tax_real = adec_tax_real;
}
public Date getAdt_date() {
return adt_date;
}
public void setAdt_date(Date adt_date) {
this.adt_date = adt_date;
}
public Date getAdt_pay() {
return adt_pay;
}
public void setAdt_pay(Date adt_pay) {
this.adt_pay = adt_pay;
}
public String getAs_msag() {
return as_msag;
}
public void setAs_msag(String as_msag) {
this.as_msag = as_msag;
}
public String getAs_spt() {
return as_spt;
}
public void setAs_spt(String as_spt) {
this.as_spt = as_spt;
}
}
|
[
"Patar.Tambunan@SINARMASMSIGLIFE.CO.ID"
] |
Patar.Tambunan@SINARMASMSIGLIFE.CO.ID
|
a3d1dacab616d33eb540c4fb5e31fb86519bd8d3
|
0a5779aba8eb91684e4965df4d40c0c149f7c268
|
/src/main/java/com/hadi/zikr/security/jwt/JWTConfigurer.java
|
7e11931f1564dfb7eb2ad1087bdac48445f09284
|
[] |
no_license
|
jaouadmed/zikr-hadi
|
515fe3c84732afd1c298a906b9714136b72784ce
|
e0d6da9231f559a255935c1390582f9f2c08b339
|
refs/heads/main
| 2023-03-30T20:01:49.653839
| 2021-04-03T21:48:58
| 2021-04-03T21:48:58
| 352,364,732
| 0
| 0
| null | 2021-04-01T00:20:01
| 2021-03-28T15:24:12
|
Java
|
UTF-8
|
Java
| false
| false
| 842
|
java
|
package com.hadi.zikr.security.jwt;
import org.springframework.security.config.annotation.SecurityConfigurerAdapter;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.web.DefaultSecurityFilterChain;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
public class JWTConfigurer extends SecurityConfigurerAdapter<DefaultSecurityFilterChain, HttpSecurity> {
private final TokenProvider tokenProvider;
public JWTConfigurer(TokenProvider tokenProvider) {
this.tokenProvider = tokenProvider;
}
@Override
public void configure(HttpSecurity http) {
JWTFilter customFilter = new JWTFilter(tokenProvider);
http.addFilterBefore(customFilter, UsernamePasswordAuthenticationFilter.class);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
20b3b0f7315a42ac8ca0b19fb4190cab1c4a415a
|
21cc908c06949e4e00e5f82ca6b9fbe991a6ea17
|
/src/com/ibm/dp/service/StockTransferService.java
|
b4da6fd19bc96f19195344e3aeed1a1e9a12d83f
|
[] |
no_license
|
Beeru1/DPDTH_New
|
b93cca6a2dc99b64de242b024f3e48327102d3fc
|
80e3b364bb7634841e47fa41df7d3e633baedf72
|
refs/heads/master
| 2021-01-12T06:54:25.644819
| 2016-12-19T11:57:08
| 2016-12-19T11:57:08
| 76,858,059
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,002
|
java
|
package com.ibm.dp.service;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import com.ibm.dp.beans.StockTransferFormBean;
import com.ibm.dp.dto.DistributorDTO;
import com.ibm.dp.dto.DistributorDetailsDTO;
import com.ibm.dp.dto.InterSSDTransferDTO;
import com.ibm.dp.exception.DPServiceException;
import com.ibm.virtualization.recharge.exception.DAOException;
/**
* @author Mohammad Aslam
*/
public interface StockTransferService {
public List<DistributorDTO> getFromDistributors(long accountId) throws DPServiceException, DAOException, SQLException;
public List<DistributorDTO> getToDistributors(long accountId) throws DPServiceException, DAOException, SQLException;
public List<DistributorDetailsDTO> getTransferDetails(long accountId, long fromDistId, long toDistId) throws DPServiceException, DAOException, SQLException;
public String getDCNumber() throws DPServiceException, DAOException, SQLException;
public String submitTransferDetails(StockTransferFormBean stfb, List<DistributorDetailsDTO> distributorDetailsList, long accountId) throws DPServiceException, DAOException, SQLException;
public String getContactNameForAccontId(long accountId) throws DPServiceException, DAOException, SQLException;
public List getSerailNumberList(long accountId, long productId) throws DPServiceException, DAOException, SQLException;
public List<InterSSDTransferDTO> interSSDTrans(Long accountId) throws DPServiceException, DAOException, SQLException;
public Map interSSDTransDetails(String trans_no,String transType,String transsubtype,int circle_id) throws DPServiceException, DAOException, SQLException;
//public List<InterSSDTransferDTO> distList(int circle_id) throws DPServiceException, DAOException, SQLException;
public String hirarchyTransfer(List<InterSSDTransferDTO> list) throws DPServiceException, DAOException, SQLException;
//public InterSSDTransferDTO getCurrentDist(String str) throws DPServiceException, DAOException, SQLException;
}
|
[
"sgurugub@in.ibm.com"
] |
sgurugub@in.ibm.com
|
50fd5d060f72b83ddac69fe4e3389425e0146021
|
68e8aa9c993f3daeb32322e02d75c2047cb0d742
|
/src/main/java/com/zih/booking/dao/SenderMapper.java
|
b5ab3fd11b5acf8b0bd62948ad86fd2d08e7b0b4
|
[] |
no_license
|
WZCtqs/booking
|
129a5d45190f7f81146ecf41039f5df361c65c6a
|
59171db0fd6ed4015db2967249947c263f7399b2
|
refs/heads/main
| 2023-03-03T14:52:06.457169
| 2021-02-17T08:55:09
| 2021-02-17T08:55:09
| 339,660,157
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 264
|
java
|
package com.zih.booking.dao;
import com.zih.booking.model.Sender;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author wsl123
* @since 2020-02-25
*/
public interface SenderMapper extends BaseMapper<Sender> {
}
|
[
"1120159229@qq.com"
] |
1120159229@qq.com
|
8be86fd9cd330f6dff9d05e8e447a1684d480bb9
|
1c785b15245b122d974c300e5004de60056ef55d
|
/projects/gpd/plugins/ru.runa.gpd.form.ftl/src/ru/runa/gpd/htmleditor/editors/HTMLDoubleClickStrategy.java
|
95778aa938b8a8cbe01b65d7295ed7a203290bb7
|
[] |
no_license
|
kuimovvg/RunaWFE-4.x
|
13e58f873d0fb751751a10294473d18b394a4b17
|
9b7d34f1e402d963213efda9dab9c305b090db0d
|
refs/heads/trunk
| 2020-12-25T20:30:53.442175
| 2015-07-29T16:03:24
| 2015-07-29T16:03:24
| 39,517,577
| 0
| 0
| null | 2015-07-22T16:36:09
| 2015-07-22T16:36:08
| null |
UTF-8
|
Java
| false
| false
| 2,282
|
java
|
package ru.runa.gpd.htmleditor.editors;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.ITextDoubleClickStrategy;
import org.eclipse.jface.text.ITextViewer;
public class HTMLDoubleClickStrategy implements ITextDoubleClickStrategy {
protected ITextViewer fText;
public void doubleClicked(ITextViewer part) {
int pos = part.getSelectedRange().x;
if (pos < 0)
return;
fText = part;
if (!selectComment(pos)) {
selectWord(pos);
}
}
protected boolean selectComment(int caretPos) {
IDocument doc = fText.getDocument();
int startPos, endPos;
try {
int pos = caretPos;
char c = ' ';
while (pos >= 0) {
c = doc.getChar(pos);
if (c == '\\') {
pos -= 2;
continue;
}
if (c == Character.LINE_SEPARATOR || c == '\"' || c=='<' || c=='>')
break;
--pos;
}
if (c != '\"')
return false;
startPos = pos;
pos = caretPos;
int length = doc.getLength();
c = ' ';
while (pos < length) {
c = doc.getChar(pos);
if (c == Character.LINE_SEPARATOR || c == '\"' || c=='<' || c=='>')
break;
++pos;
}
if (c != '\"')
return false;
endPos = pos;
int offset = startPos + 1;
int len = endPos - offset;
fText.setSelectedRange(offset, len);
return true;
} catch (BadLocationException x) {
}
return false;
}
protected boolean selectWord(int caretPos) {
IDocument doc = fText.getDocument();
int startPos, endPos;
try {
int pos = caretPos;
char c;
while (pos >= 0) {
c = doc.getChar(pos);
if (!Character.isJavaIdentifierPart(c))
break;
--pos;
}
startPos = pos;
pos = caretPos;
int length = doc.getLength();
while (pos < length) {
c = doc.getChar(pos);
if (!Character.isJavaIdentifierPart(c))
break;
++pos;
}
endPos = pos;
selectRange(startPos, endPos);
return true;
} catch (BadLocationException x) {
}
return false;
}
private void selectRange(int startPos, int stopPos) {
int offset = startPos + 1;
int length = stopPos - offset;
fText.setSelectedRange(offset, length);
}
}
|
[
"gritsenko_s@999c22fd-c5eb-e245-b5be-d41808c6d2cd"
] |
gritsenko_s@999c22fd-c5eb-e245-b5be-d41808c6d2cd
|
41f458d201ca036a3665af1498c787bf353cc2a4
|
cccbc4b07ba32dba83c27557b99350620edbf999
|
/src/main/java/com/algaworks/brewer/controller/UsuariosController.java
|
d2e0dcd3845008861ca379cba8ffc0263c2c11fc
|
[] |
no_license
|
lucasbarrossantos/brewer
|
7ec3b85edcc6f9cb4931c4bbc195bf92509b1c8e
|
969b4ffafdc81244f21d4b92ab3bee7853fee8c6
|
refs/heads/master
| 2021-06-18T21:34:16.782766
| 2019-08-28T01:56:52
| 2019-08-28T01:56:52
| 204,824,134
| 0
| 0
| null | 2021-04-30T20:26:15
| 2019-08-28T01:44:45
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 379
|
java
|
package com.algaworks.brewer.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/usuarios")
public class UsuariosController {
@GetMapping("/novo")
public String novo() {
return "usuario/cadastro-usuario";
}
}
|
[
"lucas-barros28@hotmail.com"
] |
lucas-barros28@hotmail.com
|
99e0ca314042badf373cf1cfea9ff8860d269f56
|
b0d7ca2e5f19a4676c903b70d526e3e8080ea0e3
|
/src/main/java/br/ufpa/labes/spm/repository/ConnectionRepository.java
|
a6fbd34f83e4baa20fc2ad034f4710912e270a45
|
[] |
no_license
|
Lakshamana/spm
|
366f425e66d40a50c1248eb47a677315639555df
|
ba98a47557f196fa1429670e52549c188bbf00a1
|
refs/heads/master
| 2022-12-25T08:58:03.366441
| 2019-10-03T15:04:16
| 2019-10-03T15:04:16
| 170,921,469
| 0
| 0
| null | 2022-12-16T05:03:13
| 2019-02-15T20:03:02
|
Java
|
UTF-8
|
Java
| false
| false
| 370
|
java
|
package br.ufpa.labes.spm.repository;
import br.ufpa.labes.spm.domain.Connection;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the Connection entity.
*/
@SuppressWarnings("unused")
@Repository
public interface ConnectionRepository extends JpaRepository<Connection, Long> {
}
|
[
"guitrompa1@gmail.com"
] |
guitrompa1@gmail.com
|
b57c1fcc5bbb8ae14ef98fb7b4e4c306e4850c94
|
d67219096979725c05f3d02a2cfd8c6420233af5
|
/at.medevit.elexis.impfplan.ui/src/at/medevit/elexis/impfplan/ui/VaccinationEffectCheckboxTreeViewer.java
|
a72d82f46b8e46dd5ac7d3205c158222bcb07e7e
|
[] |
no_license
|
jntme/elexis-3-base
|
b2543e799b81702c7f8a79f0fdca55de1cdaca18
|
a1f5222a585de40ca8529ae2a39dec5c09b13fb8
|
refs/heads/master
| 2021-01-21T10:22:28.681959
| 2017-03-01T13:42:52
| 2017-03-01T14:05:48
| 83,418,140
| 0
| 0
| null | 2017-02-28T10:10:25
| 2017-02-28T10:10:25
| null |
UTF-8
|
Java
| false
| false
| 3,467
|
java
|
package at.medevit.elexis.impfplan.ui;
import java.util.Arrays;
import java.util.List;
import org.eclipse.jface.viewers.CheckboxTreeViewer;
import org.eclipse.jface.viewers.ICheckStateProvider;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewerColumn;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import at.medevit.elexis.impfplan.model.DiseaseDefinitionModel;
import at.medevit.elexis.impfplan.model.DiseaseDefinitionModel.DiseaseDefinition;
import ch.elexis.core.constants.StringConstants;
public class VaccinationEffectCheckboxTreeViewer extends CheckboxTreeViewer
implements ICheckStateProvider {
private String initialCheckedElements = "";
public VaccinationEffectCheckboxTreeViewer(Composite parent, int style,
String initialCheckedElements){
super(parent, style);
this.initialCheckedElements =
(initialCheckedElements != null) ? initialCheckedElements : StringConstants.EMPTY;
GridData gd_tree = new GridData(SWT.FILL, SWT.TOP, true, false);
gd_tree.heightHint = 200;
getTree().setLayoutData(gd_tree);
getTree().setHeaderVisible(false);
getTree().setLinesVisible(true);
TreeViewerColumn col = new TreeViewerColumn(this, SWT.NONE);
col.getColumn().setWidth(225);
setContentProvider(new DiseaseTreeContentProvider());
setLabelProvider(new DiseaseTreeLabelProvider());
setInput(DiseaseDefinitionModel.getDiseaseDefinitions());
setCheckStateProvider(this);
}
public String getCheckedElementsAsCommaSeparatedString(){
Object[] checkedElements = getCheckedElements();
List<Object> list = Arrays.asList(checkedElements);
return list.stream().map(o -> (DiseaseDefinition) o).map(o -> o.getATCCode())
.reduce((u, t) -> u + StringConstants.COMMA + t).get();
}
private class DiseaseTreeContentProvider implements ITreeContentProvider {
@Override
public void dispose(){}
@Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput){}
@Override
public Object[] getElements(Object inputElement){
return DiseaseDefinitionModel.getDiseaseDefinitions().toArray();
}
@Override
public Object[] getChildren(Object parentElement){
return null;
}
@Override
public Object getParent(Object element){
return (DiseaseDefinition) element;
}
@Override
public boolean hasChildren(Object element){
return false;
}
}
private class DiseaseTreeLabelProvider implements ILabelProvider {
@Override
public void addListener(ILabelProviderListener listener){}
@Override
public void dispose(){}
@Override
public boolean isLabelProperty(Object element, String property){
return false;
}
@Override
public void removeListener(ILabelProviderListener listener){}
@Override
public Image getImage(Object element){
return null;
}
@Override
public String getText(Object element){
return ((DiseaseDefinition) element).getDiseaseLabel();
}
}
@Override
public boolean isChecked(Object element){
DiseaseDefinition dd = (DiseaseDefinition) element;
return initialCheckedElements.contains(dd.getATCCode());
}
@Override
public boolean isGrayed(Object element){
return false;
}
}
|
[
"marco@descher.at"
] |
marco@descher.at
|
3a7278303af2141a23eb77614d358eb5f51d8193
|
3a64f07a0240597d10651ea731e5c0be9a76674e
|
/eclipse/frag2demo/src/edu/cs4730/frag2demo/textActivity.java
|
7f0c9683919c6e50392494e8bf8ea21f8865bfee
|
[
"Apache-2.0"
] |
permissive
|
JimSeker/ui
|
9f50327fa72b0328b229f7c399874b7565dbb895
|
ff388e01c32ba36c42b4a2a385db4882c2825fee
|
refs/heads/master
| 2023-09-04T09:50:55.154765
| 2023-08-29T17:08:09
| 2023-08-29T17:08:09
| 17,833,557
| 37
| 38
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,991
|
java
|
package edu.cs4730.frag2demo;
import android.support.v4.app.FragmentActivity;
//import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.view.MenuItem;
public class textActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_text);
// Show the Up button in the action bar.
if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB) {
getActionBar().setHomeButtonEnabled(true);
}
// savedInstanceState is non-null when there is fragment state
// saved from previous configurations of this activity
// (e.g. when rotating the screen from portrait to landscape).
// In this case, the fragment will automatically be re-added
// to its container so we don't need to manually add it.
// For more information, see the Fragments API guide at:
//
// http://developer.android.com/guide/components/fragments.html
//
if (savedInstanceState == null) {
// Create the detail fragment and add it to the activity
// using a fragment transaction.
textFrag fragment = new textFrag();
getSupportFragmentManager().beginTransaction()
.add(R.id.text_container, fragment).commit();
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
Intent upIntent = new Intent(this, Fd2.class);
// This ID represents the Home or Up button. In the case of this
// activity, the Up button is shown. Use NavUtils to allow users
// to navigate up one level in the application structure. For
// more details, see the Navigation pattern on Android Design:
//
// http://developer.android.com/design/patterns/navigation.html#up-vs-back
//
NavUtils.navigateUpTo(this, upIntent);
return true;
}
return super.onOptionsItemSelected(item);
}
}
|
[
"seker@uwyo.edu"
] |
seker@uwyo.edu
|
0fbb949f9dbc9bcb6dccf1f39cccfe64aa6f56f9
|
6a32bf1cf2ad1deaf6a47ab4fc113aad352cdf2b
|
/src/minecraft/me/imfr0zen/guiapi/listeners/TextListener.java
|
b2d0b098e1feb9df0c07aa93233f8583ecafe303
|
[] |
no_license
|
holdhands/WizardsWandClient
|
7fcc284f579946db8ae2875a5ee4fb6d5ae2f065
|
da0894f7d1b88bb2e3a232f9cc0f8f4e33e9965f
|
refs/heads/master
| 2021-01-13T17:06:19.496857
| 2016-11-03T19:33:28
| 2016-11-03T19:33:28
| 72,530,823
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 419
|
java
|
package me.imfr0zen.guiapi.listeners;
/**
*
* Used by {@link me.imfr0zen.guiapi.components.GuiTextField}
* @author ImFr0zen
*
*/
public interface TextListener {
/**
* Gets called when entering a character
* @param key
* @param text
*/
void keyTyped(char key, String text);
/**
* Gets called when pressing enter or
* @param text
*/
void stringEntered(String text);
}
|
[
"jaspersmit2801@gmail.com"
] |
jaspersmit2801@gmail.com
|
5f3408b14922267a870c7215c37c6c1edc480b48
|
bb8a4b5236076be3a946bd5a18f334e8566b13d5
|
/src/Proxy/CGLibProxy/main.java
|
f73179dcffd88c44093bcd852fc261fe002004c7
|
[] |
no_license
|
adamhand/testall
|
1ab74216c0c87ef45f2d63c655619eb4cda3a10a
|
754473aa61e220d5d3071d6c5fa0adcf466167b2
|
refs/heads/master
| 2022-11-03T01:31:32.432191
| 2020-01-04T04:21:43
| 2020-01-04T04:21:43
| 162,571,081
| 0
| 0
| null | 2022-10-04T23:49:22
| 2018-12-20T11:35:11
|
Java
|
UTF-8
|
Java
| false
| false
| 278
|
java
|
package Proxy.CGLibProxy;
import Proxy.StaticProxy.Hello;
import Proxy.StaticProxy.HelloImp;
public class main {
public static void main(String[] args) {
HelloImp helloImp = CGLibProxy.getInstance().getProxy(HelloImp.class);
helloImp.say("Jack");
}
}
|
[
"adaihand@163.com"
] |
adaihand@163.com
|
4c1ead6ae0511c1b2d19ec275bae3364216e5675
|
6238ea13425638779d4794cd47785da5f7bf052d
|
/src/main/java/com/diyiliu/web/controller/TestController.java
|
f1dda917f08a865a53ea7907602e1a2b87683d38
|
[] |
no_license
|
diyiliu/admin
|
be14d9042f11a56f2458e982e824d642d58db2ab
|
92876944c75e54f9c5d563ff2407768022a57275
|
refs/heads/master
| 2021-01-21T04:41:16.385433
| 2016-07-28T03:27:20
| 2016-07-28T03:27:20
| 55,219,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,707
|
java
|
package com.diyiliu.web.controller;
import com.diyiliu.support.other.Pagination;
import com.diyiliu.support.other.PaginationHelper;
import com.diyiliu.support.util.CommonUtil;
import com.diyiliu.web.controller.base.BaseController;
import com.diyiliu.web.entity.Test;
import com.diyiliu.web.entity.User;
import com.diyiliu.web.service.UserService;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Description: TestController
* Author: DIYILIU
* Update: 2016-03-14 11:19
*/
@Controller
@RequestMapping(value = "/test")
public class TestController extends BaseController{
@Resource
private UserService userService;
@RequestMapping
public void test(HttpServletResponse response) throws IOException {
response.getWriter().write("hello!");
}
@RequestMapping(value = "/1")
public Test test1(Test test) {
return test;
}
@RequestMapping(value = "/2")
public void test2(User user) {
System.out.println(user.getId());
}
@RequestMapping(value = "/form")
public String form(User user, HttpServletResponse response) throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
map.put("user", user);
//map.put("array", a);
ObjectMapper objectMapper = new ObjectMapper();
response.getWriter().write(objectMapper.writeValueAsString(map));
return null;
}
@ResponseBody
@RequestMapping(value = "/table")
public String table( Pagination pagination, @RequestParam(required = false) String search) {
PaginationHelper.page(pagination.getOffset(), pagination.getLimit());
List<User> list = userService.selectUsers(CommonUtil.isEmpty(search) ? null : search.trim());
pagination.setTotal(PaginationHelper.getCount());
pagination.setRows(list);
return toJson(pagination);
}
@ResponseBody
@RequestMapping(value = "/dynamicQuery")
public String selectBySql() {
String sql = "SELECT" +
" t.*" +
" FROM" +
" city t" +
" INNER JOIN country c ON t.CountryCode = c.`Code`" +
" AND c.`Name` = 'china'";
List<Map> list = userService.selectBySql(sql);
return toJson(list);
}
}
|
[
"572772828@qq.com"
] |
572772828@qq.com
|
82b1b37071857d1bb14cee2072bc4b12c2131b9c
|
f912f0fe9b865a18b5bc31fe62c7eb8d97d108db
|
/workspace/at.jku.weiner.c.parser/emf-gen/at/jku/weiner/c/parser/parser/SpecifierQualifierList.java
|
80595c366879db12af1e1a9d541fb83092e3beec
|
[] |
no_license
|
timeraider4u/kefax
|
44db2c63ea85e10a5157436bb2dabd742b590032
|
7e46c1730f561d1b76017f0ddb853c94dbb93cd6
|
refs/heads/master
| 2020-04-16T01:58:01.195430
| 2016-10-30T22:08:29
| 2016-10-30T22:08:29
| 41,462,260
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,179
|
java
|
/**
*/
package at.jku.weiner.c.parser.parser;
import fr.inria.atlanmod.neoemf.core.PersistentEObject;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Specifier Qualifier List</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link at.jku.weiner.c.parser.parser.SpecifierQualifierList#getTypeSpecifier <em>Type Specifier</em>}</li>
* <li>{@link at.jku.weiner.c.parser.parser.SpecifierQualifierList#getTypeQualifier <em>Type Qualifier</em>}</li>
* </ul>
* </p>
*
* @see at.jku.weiner.c.parser.parser.ParserPackage#getSpecifierQualifierList()
* @model
* @extends PersistentEObject
* @generated
*/
public interface SpecifierQualifierList extends PersistentEObject
{
/**
* Returns the value of the '<em><b>Type Specifier</b></em>' containment reference list.
* The list contents are of type {@link at.jku.weiner.c.parser.parser.TypeSpecifier}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Type Specifier</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Type Specifier</em>' containment reference list.
* @see at.jku.weiner.c.parser.parser.ParserPackage#getSpecifierQualifierList_TypeSpecifier()
* @model containment="true"
* @generated
*/
EList<TypeSpecifier> getTypeSpecifier();
/**
* Returns the value of the '<em><b>Type Qualifier</b></em>' containment reference list.
* The list contents are of type {@link at.jku.weiner.c.parser.parser.TypeQualifier}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Type Qualifier</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Type Qualifier</em>' containment reference list.
* @see at.jku.weiner.c.parser.parser.ParserPackage#getSpecifierQualifierList_TypeQualifier()
* @model containment="true"
* @generated
*/
EList<TypeQualifier> getTypeQualifier();
} // SpecifierQualifierList
|
[
"timeraider@gmx.at"
] |
timeraider@gmx.at
|
41d938036b7b29d444b2745eecaea37c44e146a0
|
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
|
/src/chosun/ciis/mt/prnpap/dm/MT_PRNPAP_3304_LDM.java
|
4daa94ee9d08a9938c18bb9dfe3b1f3b3299f43b
|
[] |
no_license
|
nosmoon/misdevteam
|
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
|
1829d5bd489eb6dd307ca244f0e183a31a1de773
|
refs/heads/master
| 2020-04-15T15:57:05.480056
| 2019-01-10T01:12:01
| 2019-01-10T01:12:01
| 164,812,547
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 4,887
|
java
|
/***************************************************************************************************
* 파일명 : .java
* 기능 : 독자우대-구독신청
* 작성일자 : 2007-05-22
* 작성자 : 김대섭
***************************************************************************************************/
/***************************************************************************************************
* 수정내역 :
* 수정자 :
* 수정일자 :
* 백업 :
***************************************************************************************************/
package chosun.ciis.mt.prnpap.dm;
import java.sql.*;
import oracle.jdbc.driver.*;
import somo.framework.db.*;
import somo.framework.util.*;
import chosun.ciis.mt.prnpap.ds.*;
import chosun.ciis.mt.prnpap.rec.*;
/**
*
*/
public class MT_PRNPAP_3304_LDM extends somo.framework.db.BaseDM implements java.io.Serializable{
public String cmpy_cd;
public String issu_dt;
public String fac_clsf;
public MT_PRNPAP_3304_LDM(){}
public MT_PRNPAP_3304_LDM(String cmpy_cd, String issu_dt, String fac_clsf){
this.cmpy_cd = cmpy_cd;
this.issu_dt = issu_dt;
this.fac_clsf = fac_clsf;
}
public void setCmpy_cd(String cmpy_cd){
this.cmpy_cd = cmpy_cd;
}
public void setIssu_dt(String issu_dt){
this.issu_dt = issu_dt;
}
public void setFac_clsf(String fac_clsf){
this.fac_clsf = fac_clsf;
}
public String getCmpy_cd(){
return this.cmpy_cd;
}
public String getIssu_dt(){
return this.issu_dt;
}
public String getFac_clsf(){
return this.fac_clsf;
}
public String getSQL(){
return "{ call MISMAT.SP_MT_PRNPAP_3304_L(? ,? ,? ,? ,? ,? ,?) }";
}
public void setParams(CallableStatement cstmt, BaseDM bdm) throws SQLException{
MT_PRNPAP_3304_LDM dm = (MT_PRNPAP_3304_LDM)bdm;
cstmt.registerOutParameter(1, Types.VARCHAR);
cstmt.registerOutParameter(2, Types.VARCHAR);
cstmt.setString(3, dm.cmpy_cd);
cstmt.setString(4, dm.issu_dt);
cstmt.setString(5, dm.fac_clsf);
cstmt.registerOutParameter(6, OracleTypes.CURSOR);
cstmt.registerOutParameter(7, OracleTypes.CURSOR);
}
public BaseDataSet createDataSetObject(){
return new chosun.ciis.mt.prnpap.ds.MT_PRNPAP_3304_LDataSet();
}
public void print(){
System.out.println("SQL = " + this.getSQL());
System.out.println("cmpy_cd = [" + getCmpy_cd() + "]");
System.out.println("issu_dt = [" + getIssu_dt() + "]");
System.out.println("fac_clsf = [" + getFac_clsf() + "]");
}
}
/*----------------------------------------------------------------------------------------------------
Web Tier에서 req.getParameter() 처리 및 결과확인 검사시 사용하십시오.
String cmpy_cd = req.getParameter("cmpy_cd");
if( cmpy_cd == null){
System.out.println(this.toString+" : cmpy_cd is null" );
}else{
System.out.println(this.toString+" : cmpy_cd is "+cmpy_cd );
}
String issu_dt = req.getParameter("issu_dt");
if( issu_dt == null){
System.out.println(this.toString+" : issu_dt is null" );
}else{
System.out.println(this.toString+" : issu_dt is "+issu_dt );
}
String fac_clsf = req.getParameter("fac_clsf");
if( fac_clsf == null){
System.out.println(this.toString+" : fac_clsf is null" );
}else{
System.out.println(this.toString+" : fac_clsf is "+fac_clsf );
}
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 req.getParameter() 처리시 사용하십시오.
String cmpy_cd = Util.checkString(req.getParameter("cmpy_cd"));
String issu_dt = Util.checkString(req.getParameter("issu_dt"));
String fac_clsf = Util.checkString(req.getParameter("fac_clsf"));
----------------------------------------------------------------------------------------------------*//*----------------------------------------------------------------------------------------------------
Web Tier에서 한글처리와 동시에 req.getParameter() 처리시 사용하십시오.
String cmpy_cd = Util.Uni2Ksc(Util.checkString(req.getParameter("cmpy_cd")));
String issu_dt = Util.Uni2Ksc(Util.checkString(req.getParameter("issu_dt")));
String fac_clsf = Util.Uni2Ksc(Util.checkString(req.getParameter("fac_clsf")));
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 DM 파일의 변수를 설정시 사용하십시오.
dm.setCmpy_cd(cmpy_cd);
dm.setIssu_dt(issu_dt);
dm.setFac_clsf(fac_clsf);
----------------------------------------------------------------------------------------------------*/
/* 작성시간 : Wed Mar 08 17:53:16 KST 2017 */
|
[
"DLCOM000@172.16.30.11"
] |
DLCOM000@172.16.30.11
|
97fc1033f43902d325f90e3995251b8e44f4fcff
|
e705ea3a001ed23604fb2b4d85da04fc1a97b81b
|
/Answers/_153_FindMinimuminRotatedSortedArray.java
|
6fa3e3b3fdb9feb9971a22a6ad7992ac2d555fd8
|
[] |
no_license
|
shitterlmj2016/Leetcode_java
|
4b8f81f0f6338751222b45fe2b711082495396e4
|
92b2d6a83a8bfb49f3ea1bae6e641912d2160873
|
refs/heads/master
| 2020-04-15T22:54:46.831100
| 2019-04-15T03:05:15
| 2019-04-15T03:05:15
| 165,088,940
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,436
|
java
|
/**
* 本代码来自 Cspiration,由 @Cspiration 提供
* 题目来源:http://leetcode.com
* - Cspiration 致力于在 CS 领域内帮助中国人找到工作,让更多海外国人受益
* - 现有课程:Leetcode Java 版本视频讲解(1-900题)(上)(中)(下)三部
* - 算法基础知识(上)(下)两部;题型技巧讲解(上)(下)两部
* - 节省刷题时间,效率提高2-3倍,初学者轻松一天10题,入门者轻松一天20题
* - 讲师:Edward Shi
* - 官方网站:https://cspiration.com
* - 版权所有,转发请注明出处
*/
public class _153_FindMinimuminRotatedSortedArray {
/**
* 153. Find Minimum in Rotated Sorted Array
* Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
*
4 5 6 7 0 1 2
4 5 6 0 1 2 3
2 1
* time : O(logn)
* space : O(1);
* @param nums
* @return
*/
public int findMin(int[] nums) {
if (nums == null || nums.length == 0) return -1;
int start = 0;
int end = nums.length - 1;
while (start + 1 < end) {
int mid = (end - start) / 2 + start;
if (nums[mid] < nums[end]) {
end = mid;
} else {
start = mid + 1;
}
}
if (nums[start] < nums[end]) return nums[start];
else return nums[end];
}
}
|
[
"xchuang1995@163.com"
] |
xchuang1995@163.com
|
fbbb4e0f4bc516ab56010fa869692cc4131adf91
|
f1f5734f383d227a8cebd553fe5d6e2b3b470633
|
/net/divinerpg/blocks/vethea/BlockVetheaMetalCage.java
|
c2298ba655a21883402138da0c9fbb4438331468
|
[
"MIT"
] |
permissive
|
mazetar/Divine-Rpg
|
eec230de679b8187e9ecbef54d439e3287f219e1
|
ed865743547265e8d085e9c370229be8a3d8789a
|
refs/heads/master
| 2016-09-05T20:35:28.769169
| 2013-10-04T19:12:13
| 2013-10-04T19:12:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 336
|
java
|
package net.divinerpg.blocks.vethea;
import net.minecraft.block.material.Material;
public class BlockVetheaMetalCage extends BlockVethea {
public BlockVetheaMetalCage(int par1, int par2, Material par3) {
super(par1, par2, par3);
}
@Override
public boolean isOpaqueCube() {
return false;
}
}
|
[
"admin@mazetar.com"
] |
admin@mazetar.com
|
d00c2e5714d712d3dad7f16bbf788151fddc8eed
|
8d275de8a0ef91c38ec614e451b7f60d309f4cd3
|
/wms-orders/src/main/java/com/amazonservices/mws/orders/_2013_09_01/util/XMLGregorianCalendarUtil.java
|
07648377bb5424dddeeb65b84a3b3df088ecb65c
|
[] |
no_license
|
owengoodluck/JavaLib2
|
3d6ed543a3d94dad89c221c3be324baf7f8a3bf9
|
c1e5576729c826929da3a60017d1faf6ca56b706
|
refs/heads/master
| 2021-01-10T05:19:53.303106
| 2016-02-25T14:02:21
| 2016-02-25T14:02:21
| 51,063,234
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,255
|
java
|
package com.amazonservices.mws.orders._2013_09_01.util;
import java.util.Calendar;
import java.util.Date;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
public class XMLGregorianCalendarUtil {
public static Date xmlDate2Date(XMLGregorianCalendar cal){
if(cal!=null){
return cal.toGregorianCalendar().getTime();
}else{
return null;
}
}
public static XMLGregorianCalendar dateToXmlDate(Date date){
Calendar cal = Calendar.getInstance();
cal.setTime(date);
DatatypeFactory dtf = null;
try {
dtf = DatatypeFactory.newInstance();
} catch (DatatypeConfigurationException e) {
}
XMLGregorianCalendar dateType = dtf.newXMLGregorianCalendar();
dateType.setYear(cal.get(Calendar.YEAR));
dateType.setMonth(cal.get(Calendar.MONTH)+1);
dateType.setDay(cal.get(Calendar.DAY_OF_MONTH));
dateType.setHour(cal.get(Calendar.HOUR_OF_DAY));
dateType.setMinute(cal.get(Calendar.MINUTE));
dateType.setSecond(cal.get(Calendar.SECOND));
return dateType;
}
}
|
[
"owen.goodluck@gmail.com"
] |
owen.goodluck@gmail.com
|
ff5f996b5d4e3b92df2b94720244da748aa2affe
|
db97ce70bd53e5c258ecda4c34a5ec641e12d488
|
/src/main/java/com/alipay/api/response/AlipayOpenMiniInnerbaseinfoQueryResponse.java
|
871f7f820735850cfe5910a9e41738334b7fec50
|
[
"Apache-2.0"
] |
permissive
|
smitzhang/alipay-sdk-java-all
|
dccc7493c03b3c937f93e7e2be750619f9bed068
|
a835a9c91e800e7c9350d479e84f9a74b211f0c4
|
refs/heads/master
| 2022-11-23T20:32:27.041116
| 2020-08-03T13:03:02
| 2020-08-03T13:03:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,757
|
java
|
package com.alipay.api.response;
import java.util.Date;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.mini.innerbaseinfo.query response.
*
* @author auto create
* @since 1.0, 2020-07-28 20:35:20
*/
public class AlipayOpenMiniInnerbaseinfoQueryResponse extends AlipayResponse {
private static final long serialVersionUID = 3757694886664755216L;
/**
* 小程序别名,简称
*/
@ApiField("app_alias_name")
private String appAliasName;
/**
* 类目Id列表
*/
@ApiField("app_category_ids")
private String appCategoryIds;
/**
* 小程序应用描述
*/
@ApiField("app_desc")
private String appDesc;
/**
* 小程序英文名称
*/
@ApiField("app_english_name")
private String appEnglishName;
/**
* 手淘开放平台鉴权key,支付宝不需要
*/
@ApiField("app_key")
private String appKey;
/**
* 小程序应用logo图标
*/
@ApiField("app_logo")
private String appLogo;
/**
* 小程序名称
*/
@ApiField("app_name")
private String appName;
/**
* 小程序简介
*/
@ApiField("app_slogan")
private String appSlogan;
/**
* 小程序类型,TINYAPP_TEMPLATE,TINYAPP_NORMAL,TINYAPP_PLUGIN
*/
@ApiField("app_sub_type")
private String appSubType;
/**
* 小程序所属主体信息
*/
@ApiField("dev_id")
private String devId;
/**
* 小程序主体创建时间
*/
@ApiField("gmt_create")
private Date gmtCreate;
/**
* 小程序主体更新时间
*/
@ApiField("gmt_modified")
private Date gmtModified;
/**
* 小程序Id
*/
@ApiField("mini_app_id")
private String miniAppId;
/**
* 应用创建来源,alipay = 支付宝,taobao = 淘宝
*/
@ApiField("origin")
private String origin;
/**
* 小程序主体信息
*/
@ApiField("owner_entity")
private String ownerEntity;
/**
* 小程序客服邮箱
*/
@ApiField("service_email")
private String serviceEmail;
/**
* 小程序客服电话
*/
@ApiField("service_phone")
private String servicePhone;
public void setAppAliasName(String appAliasName) {
this.appAliasName = appAliasName;
}
public String getAppAliasName( ) {
return this.appAliasName;
}
public void setAppCategoryIds(String appCategoryIds) {
this.appCategoryIds = appCategoryIds;
}
public String getAppCategoryIds( ) {
return this.appCategoryIds;
}
public void setAppDesc(String appDesc) {
this.appDesc = appDesc;
}
public String getAppDesc( ) {
return this.appDesc;
}
public void setAppEnglishName(String appEnglishName) {
this.appEnglishName = appEnglishName;
}
public String getAppEnglishName( ) {
return this.appEnglishName;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
public String getAppKey( ) {
return this.appKey;
}
public void setAppLogo(String appLogo) {
this.appLogo = appLogo;
}
public String getAppLogo( ) {
return this.appLogo;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getAppName( ) {
return this.appName;
}
public void setAppSlogan(String appSlogan) {
this.appSlogan = appSlogan;
}
public String getAppSlogan( ) {
return this.appSlogan;
}
public void setAppSubType(String appSubType) {
this.appSubType = appSubType;
}
public String getAppSubType( ) {
return this.appSubType;
}
public void setDevId(String devId) {
this.devId = devId;
}
public String getDevId( ) {
return this.devId;
}
public void setGmtCreate(Date gmtCreate) {
this.gmtCreate = gmtCreate;
}
public Date getGmtCreate( ) {
return this.gmtCreate;
}
public void setGmtModified(Date gmtModified) {
this.gmtModified = gmtModified;
}
public Date getGmtModified( ) {
return this.gmtModified;
}
public void setMiniAppId(String miniAppId) {
this.miniAppId = miniAppId;
}
public String getMiniAppId( ) {
return this.miniAppId;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public String getOrigin( ) {
return this.origin;
}
public void setOwnerEntity(String ownerEntity) {
this.ownerEntity = ownerEntity;
}
public String getOwnerEntity( ) {
return this.ownerEntity;
}
public void setServiceEmail(String serviceEmail) {
this.serviceEmail = serviceEmail;
}
public String getServiceEmail( ) {
return this.serviceEmail;
}
public void setServicePhone(String servicePhone) {
this.servicePhone = servicePhone;
}
public String getServicePhone( ) {
return this.servicePhone;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
8ed1d1c6b6452c9319f82148dac507636a84b77a
|
7d622de6755c886df7c014551f5eb5624378ea74
|
/src/edu/arizona/cs/mrpkm/kmeridx/KmerIndexBuilderPartitioner.java
|
8de8e1d47159360890fcdf76c43c04480c7f8ebc
|
[] |
no_license
|
iychoi/MR-PKM
|
f0c8caf7e3bfb3a1b47d8449ed7b893113d8885f
|
903f04c17326c92c73389b52e3e430bd04b706f9
|
refs/heads/master
| 2020-05-19T09:35:50.544923
| 2015-05-08T09:52:59
| 2015-05-08T09:52:59
| 22,664,930
| 1
| 1
| null | 2015-05-06T19:25:06
| 2014-08-06T01:06:16
|
Java
|
UTF-8
|
Java
| false
| false
| 5,092
|
java
|
package edu.arizona.cs.mrpkm.kmeridx;
import edu.arizona.cs.mrpkm.types.kmerrangepartition.KmerRangePartition;
import edu.arizona.cs.mrpkm.types.kmerrangepartition.KmerRangePartitioner;
import edu.arizona.cs.mrpkm.types.namedoutputs.NamedOutputs;
import edu.arizona.cs.mrpkm.types.histogram.KmerHistogram;
import edu.arizona.cs.mrpkm.readididx.KmerHistogramHelper;
import edu.arizona.cs.mrpkm.types.hadoop.CompressedIntArrayWritable;
import edu.arizona.cs.mrpkm.types.hadoop.CompressedSequenceWritable;
import edu.arizona.cs.mrpkm.types.hadoop.MultiFileCompressedSequenceWritable;
import edu.arizona.cs.mrpkm.helpers.SequenceHelper;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configurable;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapreduce.Partitioner;
/**
*
* @author iychoi
*/
public class KmerIndexBuilderPartitioner extends Partitioner<MultiFileCompressedSequenceWritable, CompressedIntArrayWritable> implements Configurable {
private static final Log LOG = LogFactory.getLog(KmerIndexBuilderPartitioner.class);
private Configuration conf;
private boolean initialized = false;
private NamedOutputs namedOutputs = null;
private KmerIndexBuilderConfig builderConfig = null;
private KmerRangePartition[][] partitions;
private CompressedSequenceWritable[][] partitionEndKeys;
@Override
public void setConf(Configuration conf) {
this.conf = conf;
}
@Override
public Configuration getConf() {
return this.conf;
}
private void initialize() throws IOException {
this.namedOutputs = new NamedOutputs();
this.namedOutputs.loadFrom(conf);
this.builderConfig = new KmerIndexBuilderConfig();
this.builderConfig.loadFrom(conf);
if (this.builderConfig.getKmerSize() <= 0) {
throw new RuntimeException("kmer size has to be a positive value");
}
this.partitions = new KmerRangePartition[this.namedOutputs.getSize()][];
this.partitionEndKeys = new CompressedSequenceWritable[this.namedOutputs.getSize()][];
}
private void initialize(int fileID, int numReduceTasks) throws IOException {
if(this.partitionEndKeys[fileID] == null) {
KmerHistogram histogram = null;
// search index file
String filename = this.namedOutputs.getRecordFromID(fileID).getFilename();
Path histogramHadoopPath = new Path(this.builderConfig.getHistogramPath(), KmerHistogramHelper.makeHistogramFileName(filename));
FileSystem fs = histogramHadoopPath.getFileSystem(this.conf);
if (fs.exists(histogramHadoopPath)) {
histogram = new KmerHistogram();
histogram.loadFrom(histogramHadoopPath, fs);
} else {
throw new IOException("k-mer histogram is not found in given paths");
}
KmerRangePartitioner partitioner = new KmerRangePartitioner(this.builderConfig.getKmerSize(), numReduceTasks);
this.partitions[fileID] = partitioner.getHistogramPartitions(histogram.getSortedRecords(), histogram.getKmerCount());
this.partitionEndKeys[fileID] = new CompressedSequenceWritable[numReduceTasks];
for (int i = 0; i < this.partitions[fileID].length; i++) {
try {
this.partitionEndKeys[fileID][i] = new CompressedSequenceWritable(this.partitions[fileID][i].getPartitionEndKmer());
} catch (IOException ex) {
throw new RuntimeException(ex.toString());
}
}
}
}
@Override
public int getPartition(MultiFileCompressedSequenceWritable key, CompressedIntArrayWritable value, int numReduceTasks) {
if(!this.initialized) {
try {
initialize();
this.initialized = true;
} catch (IOException ex) {
throw new RuntimeException(ex.toString());
}
}
try {
initialize(key.getFileID(), numReduceTasks);
} catch (IOException ex) {
throw new RuntimeException(ex.toString());
}
int partition = getPartitionIndex(key);
if(partition < 0) {
throw new RuntimeException("partition failed");
}
return partition;
}
private int getPartitionIndex(MultiFileCompressedSequenceWritable key) {
int fileID = key.getFileID();
for(int i=0;i<this.partitionEndKeys[fileID].length;i++) {
int comp = SequenceHelper.compareSequences(key.getCompressedSequence(), this.partitionEndKeys[fileID][i].getCompressedSequence());
if(comp <= 0) {
return i;
}
}
return -1;
}
}
|
[
"iychoi@email.arizona.edu"
] |
iychoi@email.arizona.edu
|
9a9fb14a5ec8986bbb3faf5ebdf31d0a38720a3a
|
573a66e4f4753cc0f145de8d60340b4dd6206607
|
/JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/357876/2014.11.04/cgeo-market_20141104/cgeo-market_20141104/main/src/cgeo/geocaching/sorting/TerrainComparator.java
|
9bbb5f76f1e25237017e6d4716c0d49074fec03f
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
mkaouer/Code-Smells-Detection-in-JavaScript
|
3919ec0d445637a7f7c5f570c724082d42248e1b
|
7130351703e19347884f95ce6d6ab1fb4f5cfbff
|
refs/heads/master
| 2023-03-09T18:04:26.971934
| 2022-03-23T22:04:28
| 2022-03-23T22:04:28
| 73,915,037
| 8
| 3
| null | 2023-02-28T23:00:07
| 2016-11-16T11:47:44
| null |
UTF-8
|
Java
| false
| false
| 473
|
java
|
package cgeo.geocaching.sorting;
import cgeo.geocaching.Geocache;
/**
* sorts caches by terrain rating
*
*/
public class TerrainComparator extends AbstractCacheComparator {
@Override
protected boolean canCompare(final Geocache cache) {
return cache.getTerrain() != 0.0;
}
@Override
protected int compareCaches(final Geocache cache1, final Geocache cache2) {
return Float.compare(cache1.getTerrain(), cache2.getTerrain());
}
}
|
[
"mmkaouer@umich.edu"
] |
mmkaouer@umich.edu
|
3989d9df7986202ee5299d42a3e903c5805bb093
|
79d081703d7516e474be2da97ee6419a5320b6ff
|
/src/everyday/fractionToDecimal/Solution.java
|
9e1d15a937faca631d2bf55b153a0158e07b9362
|
[] |
no_license
|
ITrover/Algorithm
|
e22494ca4c3b2e41907cc606256dcbd1d173886d
|
efa4eecc7e02754078d284269556657814cb167c
|
refs/heads/master
| 2022-05-26T01:48:28.956693
| 2022-04-01T11:58:24
| 2022-04-01T11:58:24
| 226,656,770
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,787
|
java
|
package everyday.fractionToDecimal;
import java.util.HashMap;
import java.util.Map;
/**
* @author itrover
* 166. 分数到小数 https://leetcode-cn.com/problems/fraction-to-recurring-decimal/
* 长除法
*/
class Solution {
public String fractionToDecimal(int numerator, int denominator) {
long numeratorLong = numerator;
long denominatorLong = denominator;
// 能整除,直接返回结果
if (numeratorLong % denominatorLong == 0) {
return String.valueOf(numeratorLong / denominatorLong);
}
// 负数的情况
StringBuilder sb = new StringBuilder();
if (numeratorLong < 0 ^ denominatorLong < 0) {
sb.append('-');
}
// 整数部分
numeratorLong = Math.abs(numeratorLong);
denominatorLong = Math.abs(denominatorLong);
long integerPart = numeratorLong / denominatorLong;
sb.append(integerPart);
sb.append('.');
// 小数部分
StringBuilder fractionPart = new StringBuilder();
Map<Long, Integer> remainderIndexMap = new HashMap<>();
long remainder = numeratorLong % denominatorLong;
int index = 0;
while (remainder != 0 && !remainderIndexMap.containsKey(remainder)) {
remainderIndexMap.put(remainder, index);
remainder *= 10;
fractionPart.append(remainder / denominatorLong);
remainder %= denominatorLong;
index++;
}
// 有循环
if (remainder != 0) {
int insertIndex = remainderIndexMap.get(remainder);
fractionPart.insert(insertIndex, '(');
fractionPart.append(')');
}
sb.append(fractionPart.toString());
return sb.toString();
}
}
|
[
"1172610139@qq.com"
] |
1172610139@qq.com
|
2288ae98fcb808ab2dc2113e0b9648186a7cb0bb
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_27346.java
|
45e29861ae15c5727a1fc99d67252fd05450d76a
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,411
|
java
|
@Nullable private static Intent getReleases(@NonNull Context context,@NonNull Uri uri,boolean isEnterprise){
List<String> segments=uri.getPathSegments();
if (segments != null && segments.size() > 2) {
if (uri.getPathSegments().get(2).equals("releases")) {
String owner=segments.get(0);
String repo=segments.get(1);
String tag=uri.getLastPathSegment();
if (tag != null && !repo.equalsIgnoreCase(tag)) {
if (TextUtils.isDigitsOnly(tag)) {
return ReleasesListActivity.getIntent(context,owner,repo,InputHelper.toLong(tag),isEnterprise);
}
else {
return ReleasesListActivity.getIntent(context,owner,repo,tag,isEnterprise);
}
}
return ReleasesListActivity.getIntent(context,owner,repo);
}
else if (segments.size() > 3 && segments.get(3).equalsIgnoreCase("releases")) {
String owner=segments.get(1);
String repo=segments.get(2);
String tag=uri.getLastPathSegment();
if (tag != null && !repo.equalsIgnoreCase(tag)) {
if (TextUtils.isDigitsOnly(tag)) {
return ReleasesListActivity.getIntent(context,owner,repo,InputHelper.toLong(tag),isEnterprise);
}
else {
return ReleasesListActivity.getIntent(context,owner,repo,tag,isEnterprise);
}
}
return ReleasesListActivity.getIntent(context,owner,repo);
}
return null;
}
return null;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
fa5b53420dca52fb7ae1e62cffeab198e1d44352
|
8e65148fc5334566b393743d19db2fd20ffbc873
|
/.svn/pristine/6c/6ce0c4cf030d898085f756d33492b4a233333cb6.svn-base
|
7fb4320a10ac8322e0d50449ea80ee8977b09bec
|
[] |
no_license
|
wangtao12138/charge-customer
|
7af506c038f52deabb894bff9b34ef6b1c7374a0
|
d567e5eebbbe062bab756219c20eb78b0b9e9a83
|
refs/heads/master
| 2020-04-08T10:57:49.258091
| 2018-11-27T06:45:13
| 2018-11-27T06:45:13
| 159,288,583
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 636
|
package cn.com.cdboost.charge.customer.vo.info;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* @author wt
* @desc
* @create in 2018/8/15
**/
@Getter
@Setter
public class CustomerInfoListInfo implements Serializable{
private String customerState;
private String customerContact;
private String remainAmount;
private String remainCnt;
private String chargeCount;
private String alipayNickName="";
private String customerName="";
private String cardId="";
private String updateTime;
private String customerGuid;
private String projectName;
}
|
[
"770320215@qq.com"
] |
770320215@qq.com
|
|
558077118ebd4ea27fef6f4412a11eda2c3beffb
|
a4a51084cfb715c7076c810520542af38a854868
|
/src/main/java/com/shopee/app/react/modules/ui/login/LoginModule.java
|
b1c19bd224b58cb9f7eacc260ede1148c666ae38
|
[] |
no_license
|
BharathPalanivelu/repotest
|
ddaf56a94eb52867408e0e769f35bef2d815da72
|
f78ae38738d2ba6c9b9b4049f3092188fabb5b59
|
refs/heads/master
| 2020-09-30T18:55:04.802341
| 2019-12-02T10:52:08
| 2019-12-02T10:52:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,203
|
java
|
package com.shopee.app.react.modules.ui.login;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.UiThreadUtil;
import com.facebook.react.module.annotations.ReactModule;
import com.shopee.app.react.c;
import com.shopee.app.react.modules.base.ReactBaseLifecycleModule;
@ReactModule(name = "GALogin")
public class LoginModule extends ReactBaseLifecycleModule<a> {
protected static final String NAME = "GALogin";
public String getName() {
return NAME;
}
public LoginModule(ReactApplicationContext reactApplicationContext) {
super(reactApplicationContext);
}
public a initHelper(c cVar) {
return new a();
}
@ReactMethod
public void showLoginScreen(final int i, final String str, final Promise promise) {
UiThreadUtil.runOnUiThread(new Runnable() {
public void run() {
if (LoginModule.this.isMatchingReactTag(i)) {
((a) LoginModule.this.getHelper()).a(LoginModule.this.getCurrentActivity(), str, promise);
}
}
});
}
}
|
[
"noiz354@gmail.com"
] |
noiz354@gmail.com
|
364915f76d0dfb856a645496dd139714d7465dff
|
bdb87a3d1f5270df91aed759cf7ab3fc95d5813c
|
/src/main/java/chap10/StopThreadGood.java
|
b93f32d3a8fa766e992f072fdc10f08f2d314d14
|
[] |
no_license
|
hjy628/effective-java-example
|
9f9f2de1a399cc80cb36b7a92a2d424c72c2950b
|
a4234f0d998b29cef79b1ec22b156d28dbd28e2a
|
refs/heads/master
| 2020-03-23T09:04:30.054690
| 2018-11-29T09:09:19
| 2018-11-29T09:09:19
| 141,365,530
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 793
|
java
|
package chap10;
import java.util.concurrent.TimeUnit;
//Properly synchronized cooperative thread termination
public class StopThreadGood {
private static boolean stopRequested;
private static synchronized void requestStop(){
stopRequested = true;
}
private static synchronized boolean sopRequested(){
return stopRequested;
}
public static void main(String[] args) throws InterruptedException{
Thread backgroundThread = new Thread(new Runnable() {
@Override
public void run() {
int i = 0;
while (!sopRequested()){
i++;
}
}
});
backgroundThread.start();
TimeUnit.SECONDS.sleep(1);
requestStop();
}
}
|
[
"hjy628@gmail.com"
] |
hjy628@gmail.com
|
5b270e63019dd9dfca411e1ed45e1186dddaa4b2
|
0800c206efb883e15322f063b5c6668b1b1215ac
|
/ref/newrelic_rewriter/com/newrelic/com/google/common/io/AppendableWriter.java
|
aa1928fbbd43f7a1288cf5a5c85fbceaef146c5a
|
[] |
no_license
|
PioneerLab/OpenAPM-Android
|
b125af273b53c2996f2f0cc9261bff7cdc6c6013
|
df42726ce7917ddd81135f27c0164a83e47b055c
|
refs/heads/master
| 2021-04-24T22:44:42.934592
| 2017-04-15T09:38:14
| 2017-04-15T09:38:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,414
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package com.newrelic.com.google.common.io;
import javax.annotation.Nullable;
import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;
import com.newrelic.com.google.common.base.Preconditions;
import java.io.Writer;
class AppendableWriter extends Writer
{
private final Appendable target;
private boolean closed;
AppendableWriter(final Appendable target) {
this.target = Preconditions.checkNotNull(target);
}
@Override
public void write(final char[] cbuf, final int off, final int len) throws IOException {
this.checkNotClosed();
this.target.append(new String(cbuf, off, len));
}
@Override
public void flush() throws IOException {
this.checkNotClosed();
if (this.target instanceof Flushable) {
((Flushable)this.target).flush();
}
}
@Override
public void close() throws IOException {
this.closed = true;
if (this.target instanceof Closeable) {
((Closeable)this.target).close();
}
}
@Override
public void write(final int c) throws IOException {
this.checkNotClosed();
this.target.append((char)c);
}
@Override
public void write(@Nullable final String str) throws IOException {
this.checkNotClosed();
this.target.append(str);
}
@Override
public void write(@Nullable final String str, final int off, final int len) throws IOException {
this.checkNotClosed();
this.target.append(str, off, off + len);
}
@Override
public Writer append(final char c) throws IOException {
this.checkNotClosed();
this.target.append(c);
return this;
}
@Override
public Writer append(@Nullable final CharSequence charSeq) throws IOException {
this.checkNotClosed();
this.target.append(charSeq);
return this;
}
@Override
public Writer append(@Nullable final CharSequence charSeq, final int start, final int end) throws IOException {
this.checkNotClosed();
this.target.append(charSeq, start, end);
return this;
}
private void checkNotClosed() throws IOException {
if (this.closed) {
throw new IOException("Cannot write to a closed writer.");
}
}
}
|
[
"maohongbin01@baidu.com"
] |
maohongbin01@baidu.com
|
a161df34321a9ed054853b9416892db31d5297e8
|
50787898a113f326641ff64823cd60583d3b3188
|
/src/com/facebook/buck/core/starlark/rule/SkylarkRuleContext.java
|
295a707cb861d1dee5f656dfd13a555bcd8684da
|
[
"Apache-2.0"
] |
permissive
|
isfaaghyth/buck
|
76469193910dd8b7d5d0f7aba01936e7fc0e594c
|
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
|
refs/heads/master
| 2022-12-10T16:24:52.753251
| 2019-07-02T23:45:03
| 2019-07-03T00:53:38
| 195,009,781
| 1
| 0
|
Apache-2.0
| 2019-07-03T08:15:48
| 2019-07-03T08:15:47
| null |
UTF-8
|
Java
| false
| false
| 1,175
|
java
|
/*
* Copyright 2019-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.facebook.buck.core.starlark.rule;
import com.google.devtools.build.lib.cmdline.Label;
import com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter;
/** The context passed to user defined rules' implementation functions */
public class SkylarkRuleContext implements SkylarkRuleContextApi {
private final Label label;
public SkylarkRuleContext(Label label) {
this.label = label;
}
@Override
public void repr(SkylarkPrinter printer) {
printer.append("<ctx>");
}
@Override
public Label getLabel() {
return label;
}
}
|
[
"facebook-github-bot@users.noreply.github.com"
] |
facebook-github-bot@users.noreply.github.com
|
68221349583cb2838588fd81dc28fbdcee0f6eb6
|
ca021ff2fb3d5abdaf7f65fbaab776e869ccd7a5
|
/src/LeetCodeAnswer/no12_IntegerToRoman/Solution.java
|
a8e8b611109ad98fdce5834a72edc013191861f5
|
[] |
no_license
|
teddywang1992/leetcode
|
56ab4c072c9f0f2db31a0721294b1619a12856cd
|
7d676f2e67a1a2ba073a5c11fc5f17e8c6b77e69
|
refs/heads/master
| 2021-01-22T18:07:23.152614
| 2018-11-24T22:46:09
| 2018-11-24T22:46:09
| 100,737,117
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 489
|
java
|
package LeetCodeAnswer.no12_IntegerToRoman;
public class Solution {
public String intToRoman(int num) {
String M[] = {"", "M", "MM", "MMM"};
String C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"};
String X[] = {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"};
String I[] = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"};
return M[num/1000] + C[(num%1000)/100] + X[(num%100)/10] + I[num%10];
}
}
|
[
"443909723@qq.com"
] |
443909723@qq.com
|
94f9a1a34191b448dd73ee3a16ca54a3cccffd05
|
e457376950380dd6e09e58fa7bee3d09e2a0f333
|
/python-impl/src/main/java/com/jetbrains/python/impl/codeInsight/UnindentingInsertHandler.java
|
f2c8198753da7fed7ad9cb2ecb39fb537cdc9194
|
[
"Apache-2.0"
] |
permissive
|
consulo/consulo-python
|
b816b7b9a4b346bee5d431ef6c39fdffe40adf40
|
e191cd28f043c1211eb98af42d3c0a40454b2d98
|
refs/heads/master
| 2023-08-09T02:27:03.585942
| 2023-07-09T08:33:47
| 2023-07-09T08:33:47
| 12,317,018
| 0
| 0
|
Apache-2.0
| 2020-06-05T17:16:50
| 2013-08-23T07:16:43
|
Java
|
UTF-8
|
Java
| false
| false
| 5,012
|
java
|
/*
* Copyright 2000-2013 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.jetbrains.python.impl.codeInsight;
import consulo.codeEditor.action.EditorActionUtil;
import consulo.language.editor.completion.lookup.InsertHandler;
import consulo.language.editor.completion.lookup.InsertionContext;
import consulo.document.Document;
import consulo.codeEditor.Editor;
import consulo.project.Project;
import consulo.language.psi.PsiDocumentManager;
import consulo.language.psi.PsiElement;
import consulo.language.psi.PsiFile;
import consulo.language.psi.util.PsiTreeUtil;
import com.jetbrains.python.impl.codeInsight.completion.PythonLookupElement;
import com.jetbrains.python.psi.PyStatementWithElse;
import com.jetbrains.python.psi.PyTryExceptStatement;
/**
* Adjusts indentation after a final part keyword is inserted, e.g. an "else:".
* User: dcheryasov
* Date: Mar 2, 2010 6:48:40 PM
*/
public class UnindentingInsertHandler implements InsertHandler<PythonLookupElement> {
public final static UnindentingInsertHandler INSTANCE = new UnindentingInsertHandler();
private UnindentingInsertHandler() {
}
public void handleInsert(InsertionContext context, PythonLookupElement item) {
unindentAsNeeded(context.getProject(), context.getEditor(), context.getFile());
}
/**
* Unindent current line to be flush with a starting part, detecting the part if necessary.
* @param project
* @param editor
* @param file
* @return true if unindenting succeeded
*/
public static boolean unindentAsNeeded(Project project, Editor editor, PsiFile file) {
// TODO: handle things other than "else"
final Document document = editor.getDocument();
int offset = editor.getCaretModel().getOffset();
CharSequence text = document.getCharsSequence();
if (offset >= text.length()) offset = text.length() - 1;
int line_start_offset = document.getLineStartOffset(document.getLineNumber(offset));
int nonspace_offset = findBeginning(line_start_offset, text);
Class<? extends PsiElement> parentClass = null;
int last_offset = nonspace_offset + "finally".length(); // the longest of all
if (last_offset > offset) last_offset = offset;
int local_length = last_offset - nonspace_offset + 1;
if (local_length > 0) {
String piece = text.subSequence(nonspace_offset, last_offset+1).toString();
final int else_len = "else".length();
if (local_length >= else_len) {
if ((piece.startsWith("else") || piece.startsWith("elif")) && (else_len == piece.length() || piece.charAt(else_len) < 'a' || piece.charAt(else_len) > 'z')) {
parentClass = PyStatementWithElse.class;
}
}
final int except_len = "except".length();
if (local_length >= except_len) {
if (piece.startsWith("except") && (except_len == piece.length() || piece.charAt(except_len) < 'a' || piece.charAt(except_len) > 'z')) {
parentClass = PyTryExceptStatement.class;
}
}
final int finally_len = "finally".length();
if (local_length >= finally_len) {
if (piece.startsWith("finally") && (finally_len == piece.length() || piece.charAt(finally_len) < 'a' || piece.charAt(finally_len) > 'z')) {
parentClass = PyTryExceptStatement.class;
}
}
}
if (parentClass == null) return false; // failed
PsiDocumentManager.getInstance(project).commitDocument(document); // reparse
PsiElement token = file.findElementAt(offset-2); // -1 is our ':'; -2 is even safer.
PsiElement outer = PsiTreeUtil.getParentOfType(token, parentClass);
if (outer != null) {
int outer_offset = outer.getTextOffset();
int outer_indent = outer_offset - document.getLineStartOffset(document.getLineNumber(outer_offset));
assert outer_indent >= 0;
int current_indent = nonspace_offset - line_start_offset;
EditorActionUtil.indentLine(project, editor, document.getLineNumber(offset), outer_indent - current_indent);
return true;
}
return false;
}
// finds offset of first non-space in the line
private static int findBeginning(int start_offset, CharSequence text) {
int current_offset = start_offset;
int text_length = text.length();
while (current_offset < text_length) {
char current_char = text.charAt(current_offset);
if (current_char != ' ' && current_char != '\t' && current_char != '\n') break;
current_offset += 1;
}
return current_offset;
}
}
|
[
"vistall.valeriy@gmail.com"
] |
vistall.valeriy@gmail.com
|
20065120677645e28a4373e1091c2c23d2c90202
|
6c271fbbe1860985c8ceb6fb4f122b5368d87a12
|
/src/main/java/com/perforce/common/schema/JournalRecord.java
|
6525cc89510649a15a092622e1d92e7453c841d4
|
[
"BSD-2-Clause"
] |
permissive
|
p4paul/p4convert
|
5ad676f257188a769fa632cf55d2ee1b3b168279
|
40808e37ff6364e2a1aac5c49f51e71e49b1b9b7
|
refs/heads/master
| 2023-01-21T06:16:50.491312
| 2018-02-07T17:08:33
| 2018-02-07T17:08:33
| 315,887,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,388
|
java
|
package com.perforce.common.schema;
import java.util.ArrayList;
import java.util.List;
import com.perforce.common.ConverterException;
public class JournalRecord {
static class Entry {
public Attribute attrib;
public Object value;
public Entry(Attribute attrib, Object value) {
this.attrib = attrib;
this.value = value;
}
}
private String action;
private String table;
private int version;
private TableVersion schema;
private List<Entry> fields = new ArrayList<Entry>();
public JournalRecord(String action, String table, int version) {
this.action = action;
this.table = table;
this.version = version;
schema = Schema.GetTableVersion(table, version);
// System.out.println(table);
// System.out.println(schema);
}
public void addField(String key, Object value) throws ConverterException {
int next = fields.size();
Attribute attrib = schema.getAttribute(next);
if (attrib.getName().equals(key)) {
fields.add(new Entry(attrib, value));
} else {
throw new ConverterException("Journal field error(" + key + ")");
}
}
public String toJournalString() {
StringBuffer sb = new StringBuffer();
sb.append("@" + action + "@ ");
sb.append(version + " ");
sb.append("@" + table + "@ ");
for (Entry e : fields) {
sb.append(e.attrib.getDomain().toJournalFormat(e.value));
sb.append(" ");
}
return sb.toString();
}
}
|
[
"pallen@perforce.com"
] |
pallen@perforce.com
|
0dbc88bb28552a278ce9022f3c85fc8856d5f9dc
|
82dc5807c02a9c81d574f59c74f72cabce8595a2
|
/Epos/src/com/yifeng/skzs/entity/User.java
|
2fda66ec0af337156ba68b9818071c0b60bcada4
|
[] |
no_license
|
duslabo/android_work
|
48d073e04cb58189c8cd363d4e1d8ada716474ea
|
adcaec07b3a7dd64b98763645522972387c67e73
|
refs/heads/master
| 2020-05-22T18:05:31.669708
| 2017-04-21T08:21:29
| 2017-04-21T08:21:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,752
|
java
|
package com.yifeng.skzs.entity;
/**用户登录
* comment:存放用户信息
*
*/
public class User {
public String RespCode="";// "RespCode":"000" 应答码 定长3位 必须 000表示成功,其余表示失败 详细解释请见附录5.1
private String RespDesc; //"RespDesc":"成功" 应答码描述 变长 最大128位 必须
private static String SessionId; //"SessionId":"UKu5vp5ykRWAYHdviEHPoJhcaeJHRN3e" 会话id 最大30位 必须 后续使用其他需要验证session的接口时使用的会话id
/**
* 绑定
*/
private String BindStat;
// private static String MtId = "003010000029"; //移动终端设备号 固定12位 必须
private static String MtId = "001000000050"; //移动终端设备号 固定12位 必须
// private static String MtId = "003010000030"; //移动终端设备号 固定12位 必须
private static String custId; //"CustId":"6000060000007692" 用户客户号 最大16位 必须 登录号对应的用户客户号,后续接口都需要上送客户号
private static String UserName; //"UserName":"ceshu" 用户姓名 最大50位 必须
private static String name;
private static String pwd;
/**
* 账户查询
*/
private String TotalOrdCnt; //当日累计交易笔数 最大3位 必须
private String TotalOrdAmt; //当日累计交易金额 变长 最大14位 必须 小数点后保留2位
private String CashCardNo; //取现银行卡卡号 最大25位 必须 卡号形式前6后4,中间数字以*替代
private String BankId; //取现银行卡所属银行 定长2位 必须 详细解释请见附录5.2
private String BindedMtId; //绑定的设备号 定长12位 可选 绑定的设备号
private String AvailCashAmt;//可取现金额 变长 最大14位 必须 小数点后保留2位
private String NeedLiqAmt; //待结算余额 变长 最大14位 必须 小数点后保留2位,收款金额可以T+N日再进行结算
private int state;// 查询状态 -1服务器异常,0找不到,1加载成功,2数据解析异常
private String imsi;
private String key;
private boolean rememberPwd = false;// 是否记住密码
public static String getName() {
return name;
}
public static void setName(String value) {
name = value;
}
public static String getPwd() {
return pwd;
}
public static void setPwd(String value) {
pwd = value;
}
public String getRespCode() {
return RespCode;
}
public void setRespCode(String respCode) {
RespCode = respCode;
}
public String getRespDesc() {
return RespDesc;
}
public void setRespDesc(String respDesc) {
RespDesc = respDesc;
}
public static String getCustId() {
return custId;
}
public static void setCustId(String value) {
custId = value;
}
public static String getUserName() {
return UserName;
}
public static void setUserName(String userName) {
UserName = userName;
}
public static String getSessionId() {
return SessionId;
}
public static void setSessionId(String sessionId) {
SessionId = sessionId;
}
public String getBindStat() {
return BindStat;
}
public void setBindStat(String bindStat) {
BindStat = bindStat;
}
public static String getMtId() {
return MtId;
}
public static void setMtId(String mtId) {
MtId = mtId;
}
public String getTotalOrdCnt() {
return TotalOrdCnt;
}
public void setTotalOrdCnt(String totalOrdCnt) {
TotalOrdCnt = totalOrdCnt;
}
public String getTotalOrdAmt() {
return TotalOrdAmt;
}
public void setTotalOrdAmt(String totalOrdAmt) {
TotalOrdAmt = totalOrdAmt;
}
public String getCashCardNo() {
return CashCardNo;
}
public void setCashCardNo(String cashCardNo) {
CashCardNo = cashCardNo;
}
public String getBankId() {
return BankId;
}
public void setBankId(String bankId) {
BankId = bankId;
}
public String getBindedMtId() {
return BindedMtId;
}
public void setBindedMtId(String bindedMtId) {
BindedMtId = bindedMtId;
}
public String getAvailCashAmt() {
return AvailCashAmt;
}
public void setAvailCashAmt(String availCashAmt) {
AvailCashAmt = availCashAmt;
}
public String getNeedLiqAmt() {
return NeedLiqAmt;
}
public void setNeedLiqAmt(String needLiqAmt) {
NeedLiqAmt = needLiqAmt;
}
//
public int getState() {
return state;
}
public void setState(int state) {
this.state = state;
}
public String getImsi() {
return imsi;
}
public void setImsi(String imsi) {
this.imsi = imsi;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
//
// public String getMobileNo() {
// return mobileNo;
// }
//
// public void setMobileNo(String mobileNo) {
// this.mobileNo = mobileNo;
// }
//
// public String getPublicKey() {
// return publicKey;
// }
//
// public void setPublicKey(String publicKey) {
// this.publicKey = publicKey;
// }
//
// public String getUserId() {
// return userId;
// }
//
// public void setUserId(String userId) {
// this.userId = userId;
// }
//
// public String getUserName() {
// return userName;
// }
//
// public void setUserName(String userName) {
// this.userName = userName;
// }
//
// public String getUserPwd() {
// return userPwd;
// }
//
// public void setUserPwd(String userPwd) {
// this.userPwd = userPwd;
// }
//
public boolean isRememberPwd() {
return rememberPwd;
}
public void setRememberPwd(boolean rememberPwd) {
this.rememberPwd = rememberPwd;
}
//
// public String getCompanyId() {
// return companyId;
// }
//
// public void setCompanyId(String companyId) {
// this.companyId = companyId;
// }
//
// public String getCompanyName() {
// return companyName;
// }
//
// public void setCompanyName(String companyName) {
// this.companyName = companyName;
// }
}
|
[
"dongyongzhi@foxmail.com"
] |
dongyongzhi@foxmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.