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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c3470c19a456ed6f44d452fc5d1de90a34d061c
|
1f8b92826076ccc4710ed1ca50feb1b94a05779b
|
/src/main/java/com/viewfunction/vfmab/restful/activityManagement/ActivityStepDataUpdateVO.java
|
ab248e2eb66b0104a80956570f86757dcde5ebfa
|
[] |
no_license
|
wangyingchu/Business-activity-management-Microservice_viewfunction
|
0c32fc9939cf026b56db5a63f93a827ffc917f67
|
ca8eba1bb58eea06e4d76c6d90c399d29a639460
|
refs/heads/master
| 2020-03-08T02:05:58.489677
| 2018-04-03T04:19:07
| 2018-04-03T04:19:07
| 127,849,707
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 861
|
java
|
package com.viewfunction.vfmab.restful.activityManagement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "ActivityStepDataUpdateVO")
public class ActivityStepDataUpdateVO {
private ActivityDataFieldValueVOList activityDataFieldValueList;
private ActivityStepOperationVO activityStepOperationVO;
public ActivityDataFieldValueVOList getActivityDataFieldValueList() {
return activityDataFieldValueList;
}
public void setActivityDataFieldValueList(ActivityDataFieldValueVOList activityDataFieldValueList) {
this.activityDataFieldValueList = activityDataFieldValueList;
}
public ActivityStepOperationVO getActivityStepOperationVO() {
return activityStepOperationVO;
}
public void setActivityStepOperationVO(ActivityStepOperationVO activityStepOperationVO) {
this.activityStepOperationVO = activityStepOperationVO;
}
}
|
[
"yingchuwang@gmail.com"
] |
yingchuwang@gmail.com
|
7e8ea7f07d2bd80bbadc95b9a9e5157490df0efa
|
cec1602d23034a8f6372c019e5770773f893a5f0
|
/sources/org/apache/commons/cli/PosixParser.java
|
8849218866155cc8371afa578eaa9dfb32f10b9f
|
[] |
no_license
|
sengeiou/zeroner_app
|
77fc7daa04c652a5cacaa0cb161edd338bfe2b52
|
e95ae1d7cfbab5ca1606ec9913416dadf7d29250
|
refs/heads/master
| 2022-03-31T06:55:26.896963
| 2020-01-24T09:20:37
| 2020-01-24T09:20:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,736
|
java
|
package org.apache.commons.cli;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class PosixParser extends Parser {
private Option currentOption;
private boolean eatTheRest;
private Options options;
private List tokens = new ArrayList();
private void init() {
this.eatTheRest = false;
this.tokens.clear();
}
/* access modifiers changed from: protected */
public String[] flatten(Options options2, String[] arguments, boolean stopAtNonOption) {
init();
this.options = options2;
Iterator iter = Arrays.asList(arguments).iterator();
while (iter.hasNext()) {
String token = (String) iter.next();
if (token.startsWith(HelpFormatter.DEFAULT_LONG_OPT_PREFIX)) {
int pos = token.indexOf(61);
String opt = pos == -1 ? token : token.substring(0, pos);
if (!options2.hasOption(opt)) {
processNonOptionToken(token, stopAtNonOption);
} else {
this.currentOption = options2.getOption(opt);
this.tokens.add(opt);
if (pos != -1) {
this.tokens.add(token.substring(pos + 1));
}
}
} else if (HelpFormatter.DEFAULT_OPT_PREFIX.equals(token)) {
this.tokens.add(token);
} else if (!token.startsWith(HelpFormatter.DEFAULT_OPT_PREFIX)) {
processNonOptionToken(token, stopAtNonOption);
} else if (token.length() == 2 || options2.hasOption(token)) {
processOptionToken(token, stopAtNonOption);
} else {
burstToken(token, stopAtNonOption);
}
gobble(iter);
}
return (String[]) this.tokens.toArray(new String[this.tokens.size()]);
}
private void gobble(Iterator iter) {
if (this.eatTheRest) {
while (iter.hasNext()) {
this.tokens.add(iter.next());
}
}
}
private void processNonOptionToken(String value, boolean stopAtNonOption) {
if (stopAtNonOption && (this.currentOption == null || !this.currentOption.hasArg())) {
this.eatTheRest = true;
this.tokens.add(HelpFormatter.DEFAULT_LONG_OPT_PREFIX);
}
this.tokens.add(value);
}
private void processOptionToken(String token, boolean stopAtNonOption) {
if (stopAtNonOption && !this.options.hasOption(token)) {
this.eatTheRest = true;
}
if (this.options.hasOption(token)) {
this.currentOption = this.options.getOption(token);
}
this.tokens.add(token);
}
/* access modifiers changed from: protected */
public void burstToken(String token, boolean stopAtNonOption) {
int i = 1;
while (i < token.length()) {
String ch = String.valueOf(token.charAt(i));
if (this.options.hasOption(ch)) {
this.tokens.add(new StringBuffer().append(HelpFormatter.DEFAULT_OPT_PREFIX).append(ch).toString());
this.currentOption = this.options.getOption(ch);
if (!this.currentOption.hasArg() || token.length() == i + 1) {
i++;
} else {
this.tokens.add(token.substring(i + 1));
return;
}
} else if (stopAtNonOption) {
processNonOptionToken(token.substring(i), true);
return;
} else {
this.tokens.add(token);
return;
}
}
}
}
|
[
"johan@sellstrom.me"
] |
johan@sellstrom.me
|
f67ecae0277ff4f64694db5c226987e5268869a6
|
cd8843d24154202f92eaf7d6986d05a7266dea05
|
/saaf-base-5.0/2001_saaf-plm-model/src/main/java/com/sie/watsons/base/plmBase/model/entities/PlmProductBaseunitEntity_HI.java
|
467a60df8efe2459adfab5b1ed1bf6de0c6cb6d1
|
[] |
no_license
|
lingxiaoti/tta_system
|
fbc46c7efc4d408b08b0ebb58b55d2ad1450438f
|
b475293644bfabba9aeecfc5bd6353a87e8663eb
|
refs/heads/master
| 2023-03-02T04:24:42.081665
| 2021-02-07T06:48:02
| 2021-02-07T06:48:02
| 336,717,227
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,036
|
java
|
package com.sie.watsons.base.plmBase.model.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.GenerationType;
import javax.persistence.SequenceGenerator;
import javax.persistence.Version;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import javax.persistence.Transient;
/**
* PlmProductBaseunitEntity_HI Entity Object
* Tue Feb 11 15:25:18 CST 2020 Auto Generate
*/
@Entity
@Table(name="plm_product_baseunit")
public class PlmProductBaseunitEntity_HI {
private Integer id;
private String unitName;
private String unitDesc;
private Integer versionNum;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date creationDate;
private Integer createdBy;
private Integer lastUpdatedBy;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date lastUpdateDate;
private Integer lastUpdateLogin;
private Integer operatorUserId;
public void setId(Integer id) {
this.id = id;
}
@Id
@Column(name="id", nullable=false, length=22)
public Integer getId() {
return id;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
@Column(name="unit_name", nullable=true, length=255)
public String getUnitName() {
return unitName;
}
public void setUnitDesc(String unitDesc) {
this.unitDesc = unitDesc;
}
@Column(name="unit_desc", nullable=true, length=255)
public String getUnitDesc() {
return unitDesc;
}
public void setVersionNum(Integer versionNum) {
this.versionNum = versionNum;
}
@Version
@Column(name="version_num", nullable=true, length=22)
public Integer getVersionNum() {
return versionNum;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
@Column(name="creation_date", nullable=true, length=7)
public Date getCreationDate() {
return creationDate;
}
public void setCreatedBy(Integer createdBy) {
this.createdBy = createdBy;
}
@Column(name="created_by", nullable=true, length=22)
public Integer getCreatedBy() {
return createdBy;
}
public void setLastUpdatedBy(Integer lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
@Column(name="last_updated_by", nullable=true, length=22)
public Integer getLastUpdatedBy() {
return lastUpdatedBy;
}
public void setLastUpdateDate(Date lastUpdateDate) {
this.lastUpdateDate = lastUpdateDate;
}
@Column(name="last_update_date", nullable=true, length=7)
public Date getLastUpdateDate() {
return lastUpdateDate;
}
public void setLastUpdateLogin(Integer lastUpdateLogin) {
this.lastUpdateLogin = lastUpdateLogin;
}
@Column(name="last_update_login", nullable=true, length=22)
public Integer getLastUpdateLogin() {
return lastUpdateLogin;
}
public void setOperatorUserId(Integer operatorUserId) {
this.operatorUserId = operatorUserId;
}
@Transient
public Integer getOperatorUserId() {
return operatorUserId;
}
}
|
[
"huang491591@qq.com"
] |
huang491591@qq.com
|
32fdb3d834950ea6fd333b97ee0fb0a1d0cbde09
|
c1349f4e5ffa7093445e13e3177c53f34a71376d
|
/src/main/java/com/wnzhong/ajavasebasic/bgrammer/amultiloop/Test.java
|
f3f99c51e6274f9b404e952583222f2fb4351ea6
|
[] |
no_license
|
wayne06/interview
|
4a404a6d48450036a8bf332937d56bb3e2931e58
|
46eccf59739eb955e4ac9bef03549522ed188ef6
|
refs/heads/master
| 2023-02-06T00:25:23.769115
| 2020-12-29T09:24:43
| 2020-12-29T09:24:43
| 315,233,278
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 752
|
java
|
package com.wnzhong.ajavasebasic.bgrammer.amultiloop;
import java.util.concurrent.ForkJoinPool;
/**
* @author wayne
*/
public class Test {
public static void main(String[] args) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
System.out.println(j);
if (j == 1) {
break;
}
}
}
System.out.println("Over1");
labelA:
for (int i = 0; i < 3; i++) {
labelB:
for (int j = 0; j < 3; j++) {
System.out.println(j);
if (j == 1) {
break labelA;
}
}
}
System.out.println("Over2");
}
}
|
[
"zs577215@gmail.com"
] |
zs577215@gmail.com
|
6f6b01a98291dda2ab45d68ae90587f48d386287
|
8e9e10734775849c1049840727b63de749c06aae
|
/src/java/com/webify/shared/edi/model/hipaa837i/beans/Field1359.java
|
ebdb5d9ae61e49968ac3eaf79dc13be6297cab64
|
[] |
no_license
|
mperham/edistuff
|
6ee665082b7561d73cb2aa49e7e4b0142b14eced
|
ebb03626514d12e375fa593e413f1277a614ab76
|
refs/heads/master
| 2023-08-24T00:17:34.286847
| 2020-05-04T21:31:42
| 2020-05-04T21:31:42
| 261,299,559
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,924
|
java
|
package com.webify.shared.edi.model.hipaa837i.beans;
import java.util.*;
import com.webify.shared.edi.model.*;
/*
* AUTOGENERATED FILE - DO NOT EDIT!!!
*/
public class Field1359 {
private static final Object[] DEFAULT_LEGAL_VALUES = new Object[2];
private static final Map valueOverrides = new HashMap();
static {
DEFAULT_LEGAL_VALUES[0] = new String[] { "A", "C" };
DEFAULT_LEGAL_VALUES[1] = "P";
createOverrides();
}
public static Object[] getLegalValues(String overrideKey) {
Object[] currentValues = (Object[]) valueOverrides.get(overrideKey);
if (currentValues == null) {
return DEFAULT_LEGAL_VALUES;
}
return currentValues;
}
private static void createOverrides() {
Object[] currentValues = null;
currentValues = new Object[2];
currentValues[0] = "A";
currentValues[1] = "C";
valueOverrides.put("38-7", currentValues);
currentValues = new Object[2];
currentValues[0] = "A";
currentValues[1] = "C";
valueOverrides.put("168-7", currentValues);
}
public static boolean validateValue(String value) {
return EDIUtils.validateValue(value, DEFAULT_LEGAL_VALUES);
}
public static void validateInputValue(EDIInputStream eis, String fieldName, String value, int segmentOrdinal, int fieldOrdinal) {
String overrideKey = segmentOrdinal + "-" + fieldOrdinal;
Object[] values = (Object[]) valueOverrides.get(overrideKey);
eis.validateInputValue(value, (values == null ? DEFAULT_LEGAL_VALUES : values), fieldName, overrideKey);
}
public static void validateInputValue(EDIInputStream eis, String fieldName, String value, String compositeOrdinal, int elementOrdinal) {
String overrideKey = compositeOrdinal + "-" + elementOrdinal;
Object[] values = (Object[]) valueOverrides.get(overrideKey);
eis.validateInputValue(value, (values == null ? DEFAULT_LEGAL_VALUES : values), fieldName, overrideKey);
}
}
|
[
"mperham@gmail.com"
] |
mperham@gmail.com
|
743c2d2644b15b5460ff7156f139d4eaa1ef7b43
|
6395a4761617ad37e0fadfad4ee2d98caf05eb97
|
/.history/src/main/java/frc/robot/subsystems/Wrist_20191117145420.java
|
64672c04967e244d4c7e3263a29eb0d8f16b7be3
|
[] |
no_license
|
iNicole5/Cheesy_Drive
|
78383e3664cf0aeca42fe14d583ee4a8af65c1a1
|
80e1593512a92dbbb53ede8a8af968cc1efa99c5
|
refs/heads/master
| 2020-09-22T06:38:04.415411
| 2019-12-01T00:50:53
| 2019-12-01T00:50:53
| 225,088,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,080
|
java
|
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot.subsystems;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import frc.robot.Robot;
import frc.robot.RobotMap;
import frc.robot.commands.cmdWristJoystick;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.CounterBase.EncodingType;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
public class Wrist extends Subsystem {
public WPI_TalonSRX wristMotor = new WPI_TalonSRX(RobotMap.wristMotor);
public boolean PIDmodeWrist = false;
private Encoder Wristencoder;
int horizontalPos = 0;
double ticksPerAngle = 347/360;
int currentPos = wristMotor.getSelectedSensorPosition();
double degrees = (currentPos - horizontalPos) / ticksPerAngle;
double radians = java.lang.Math.toRadians(degrees);
double cosineScalar = java.lang.Math.cos(radians);
double maxGravity = 2;
public Wrist()
{
initWristEncoder();
wristMotor.setNeutralMode(NeutralMode.Brake);
wristMotor.set(ControlMode.MotionMagic, demand0, demand1Type, demand1);)
}
private void initWristEncoder()
{
Wristencoder = new Encoder(2, 3, false, EncodingType.k4X);
Wristencoder.setSamplesToAverage(5);
Wristencoder.reset();
}
public void wristDrive(double motor)
{
wristMotor.set(-motor * .75); //55
}
public void stop()
{
wristMotor.stopMotor();
}
public double getWristEncoder()
{
return Wristencoder.getDistance();
}
public void periodic()
{
SmartDashboard.putNumber("Wrist Encoder Value", getWristEncoder());
SmartDashboard.putNumber("Wrist motor Value", wristMotor.getMotorOutputVoltage());
if ((Math.abs(Robot.oi.Operator.getRawAxis(5)) > 0.1) && (PIDmodeWrist))
{
PIDmodeWrist = false;
Command wristJoy = new cmdWristJoystick();
wristJoy.start();
}
}
public void JoystickWristBreak(Joystick joystick, double motor)
{
if(getWristEncoder() >= 50000)
{
wristMotor.set(-motor);
} else {
wristMotor.set(-motor * .35);
}
}
public double getWristVoltage()
{
return wristMotor.getMotorOutputVoltage();
}
public void joystickWrist(Joystick joystick)
{
wristMotor.set(joystick.getRawAxis(5));
}
@Override
public void initDefaultCommand()
{
// Set the default command for a subsystem here.
// setDefaultCommand(new MySpecialCommand());
}
}
|
[
"40499551+iNicole5@users.noreply.github.com"
] |
40499551+iNicole5@users.noreply.github.com
|
2e75190416ea5260fdf3658b2208e5d43c9ff238
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/baike/sources/qsbk/app/live/model/LiveDollMessage.java
|
fa060dcaab90291a193709c45a9e42091a2bc939
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,651
|
java
|
package qsbk.app.live.model;
import qsbk.app.core.model.User;
public class LiveDollMessage extends LiveMessage {
public static int mBackDiamondNum = 0;
public LiveDollMessageContent m;
public LiveDollMessage(long j, int i, int i2) {
super(j, i);
this.m = new LiveDollMessageContent();
this.m.o = i2;
}
public LiveCommonMessageContent getLiveMessageContent() {
return this.m;
}
public int getOperation() {
return this.m != null ? this.m.o : 0;
}
public String getChannel() {
return this.m != null ? this.m.c : null;
}
public int getTimeLimit() {
return this.m != null ? this.m.l : 0;
}
public long getRoundId() {
return this.m != null ? this.m.i : 0;
}
public int getResult() {
return this.m != null ? this.m.r : 0;
}
public long getSource() {
return this.m != null ? this.m.s : 0;
}
public long getSourceId() {
return this.m != null ? this.m.d : 0;
}
public User getMicUser() {
User user = new User();
if (this.m != null) {
user.origin_id = this.m.d;
user.origin = this.m.s;
user.name = this.m.n;
user.headurl = this.m.a;
}
return user;
}
public int getPrice() {
return this.m != null ? this.m.p : 0;
}
public int getBackDiamondNum() {
return this.m != null ? this.m.b : 0;
}
public int getFrequency() {
return this.m != null ? this.m.g : 0;
}
public static void setBackDiamondNum(int i) {
mBackDiamondNum = i;
}
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
b2415a9cfc859570b65c4cba572295291e29c789
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_1/src/d/a/a/Calc_1_1_3002.java
|
75299e42bbdf37f8ccddea616e32c39ff41454d5
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 131
|
java
|
package d.a.a;
public class Calc_1_1_3002 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
56cb7a227592763b3c263fb45144cf1dace1b10e
|
a3e9de23131f569c1632c40e215c78e55a78289a
|
/alipay/alipay_sdk/src/main/java/com/alipay/api/domain/KoubeiMerchantDepartmentShopsQueryModel.java
|
55c7e6614ccfe8fca95a3ef53f8b0ddff642f223
|
[] |
no_license
|
P79N6A/java_practice
|
80886700ffd7c33c2e9f4b202af7bb29931bf03d
|
4c7abb4cde75262a60e7b6d270206ee42bb57888
|
refs/heads/master
| 2020-04-14T19:55:52.365544
| 2019-01-04T07:39:40
| 2019-01-04T07:39:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,204
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 查询部门对应门店
*
* @author auto create
* @since 1.0, 2018-03-23 15:00:30
*/
public class KoubeiMerchantDepartmentShopsQueryModel extends AlipayObject {
private static final long serialVersionUID = 4858961321175145126L;
/**
* isv回传的auth_code,通过auth_code校验当前操作人与商户的关系
*/
@ApiField("auth_code")
private String authCode;
/**
* 部门id
*/
@ApiField("dept_id")
private String deptId;
/**
* 判断是否需要加载下属部门的门店列表,当为true是加载当前及其下属部门关联的门店列表,为false时仅加载当前部门id关联的门店列表
*/
@ApiField("need_sub")
private Boolean needSub;
public String getAuthCode() {
return this.authCode;
}
public void setAuthCode(String authCode) {
this.authCode = authCode;
}
public String getDeptId() {
return this.deptId;
}
public void setDeptId(String deptId) {
this.deptId = deptId;
}
public Boolean getNeedSub() {
return this.needSub;
}
public void setNeedSub(Boolean needSub) {
this.needSub = needSub;
}
}
|
[
"jiaojianjun1991@gmail.com"
] |
jiaojianjun1991@gmail.com
|
0607a17a9451236f6cf7d7c59f6ced99f0d4aec3
|
77103d473b86ca2460b6c706e7887c7ef30a4ceb
|
/legstar-cixsgen/legstar-jaxws-generator/src/test/java/com/legstar/test/cixs/charsets/ObjectFactory.java
|
a966bcccfb40c6b6af5cbc6603bd77b5d5c74bc7
|
[] |
no_license
|
wdamick/legstar
|
d3ddbf22e287153f37f4ebd381b80ed970dfedad
|
cbde6d7ec862888aaa3fcb1cf0333aa251960b9e
|
refs/heads/master
| 2016-09-14T06:53:17.479467
| 2015-02-13T16:44:37
| 2015-02-13T16:44:37
| 56,787,081
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,190
|
java
|
package com.legstar.test.cixs.charsets;
import javax.xml.bind.annotation.XmlRegistry;
/**
* A JAXB ObjectFactory for wrapper classes.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes
* for package: com.legstar.test.cixs.charsets.
*
*/
public ObjectFactory() {
}
/**
* @return an instance of {@link CharsetsHostHeader }
*
*/
public CharsetsHostHeader createCharsetsHostHeader() {
return new CharsetsHostHeader();
}
/**
* @return an instance of {@link CharsetsRequest }
*
*/
public CharsetsRequest createCharsetsRequest() {
return new CharsetsRequest();
}
/**
* @return an instance of {@link CharsetsResponse }
*
*/
public CharsetsResponse createCharsetsResponse() {
return new CharsetsResponse();
}
/**
* @return an instance of {@link CharsetsFaultInfo }
*
*/
public CharsetsFaultInfo createCharsetsFaultInfo() {
return new CharsetsFaultInfo();
}
}
|
[
"fady.moussallam@122eaf1c-c83d-11dd-a8b6-f5aca7b582bb"
] |
fady.moussallam@122eaf1c-c83d-11dd-a8b6-f5aca7b582bb
|
e46ab47463ac888e4df08f7fd30fe17991f96885
|
e75be673baeeddee986ece49ef6e1c718a8e7a5d
|
/submissions/blizzard/Corpus/eclipse.jdt.core/3720.java
|
6bbc529af07114da26b175057a97567eac430eeb
|
[
"MIT"
] |
permissive
|
zhendong2050/fse18
|
edbea132be9122b57e272a20c20fae2bb949e63e
|
f0f016140489961c9e3c2e837577f698c2d4cf44
|
refs/heads/master
| 2020-12-21T11:31:53.800358
| 2018-07-23T10:10:57
| 2018-07-23T10:10:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,834
|
java
|
/*******************************************************************************
* Copyright (c) 2005, 2008 BEA Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* sbandow@bea.com - initial API and implementation
*
*******************************************************************************/
package org.eclipse.jdt.apt.tests.annotations.filegen;
import java.io.IOException;
import java.io.PrintWriter;
import org.eclipse.jdt.apt.tests.annotations.BaseProcessor;
import org.eclipse.jdt.apt.tests.annotations.ProcessorTestStatus;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.apt.Filer;
public class FileGenLocationAnnotationProcessor extends BaseProcessor {
public FileGenLocationAnnotationProcessor(AnnotationProcessorEnvironment env) {
super(env);
}
public void process() {
ProcessorTestStatus.setProcessorRan();
try {
Filer f = _env.getFiler();
//$NON-NLS-1$
PrintWriter pwa = f.createSourceFile("test.A");
pwa.print(CODE_GEN_IN_PKG);
pwa.close();
//$NON-NLS-1$
PrintWriter pwb = f.createSourceFile("B");
pwb.print(CODE_GEN_AT_PROJ_ROOT);
pwb.close();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
protected String CODE_GEN_IN_PKG = "package test;" + "\n" + "public class A" + "\n" + "{" + "\n" + "}";
protected String CODE_GEN_AT_PROJ_ROOT = "public class B" + "\n" + "{" + "\n" + " test.A a;" + "\n" + "}";
}
|
[
"tim.menzies@gmail.com"
] |
tim.menzies@gmail.com
|
20d8a99d34fa997349be9a57996565fbf59c2165
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/zhihu/android/notification/database/room/p1756db/AbstractC22764a.java
|
c2e849c158de4467c5bfeb9e2319fcec2c88cdb6
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 603
|
java
|
package com.zhihu.android.notification.database.room.p1756db;
import com.zhihu.android.notification.database.room.model.MessageDraft;
import java.util.List;
/* renamed from: com.zhihu.android.notification.database.room.db.a */
/* compiled from: MessageDraftDao */
public interface AbstractC22764a {
/* renamed from: a */
List<MessageDraft> mo101227a();
/* renamed from: a */
void mo101228a(String str, String str2);
/* renamed from: a */
void mo101229a(MessageDraft... messageDraftArr);
/* renamed from: b */
List<MessageDraft> mo101230b(String str, String str2);
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
28de43c90f557eb7636034d75d74345427696caf
|
a3157de18983cbd453fc27e3aee89a75a09480de
|
/iNaturalist/src/main/java/org/inaturalist/android/AboutLicensesActivity.java
|
32d266eb642ff3de2b2aa4bc2597ef411c39399c
|
[
"CC-BY-NC-4.0",
"MIT"
] |
permissive
|
inaturalist/iNaturalistAndroid
|
ba93086144e67f71b33d22a9a6c5386b4de53412
|
914913bb569fd81f4a87c6f6376177ebcb374dda
|
refs/heads/main
| 2023-09-01T13:21:32.404770
| 2023-08-24T04:31:10
| 2023-08-24T04:31:10
| 3,569,082
| 148
| 55
|
MIT
| 2023-09-01T22:58:43
| 2012-02-28T07:42:07
|
Java
|
UTF-8
|
Java
| false
| false
| 2,178
|
java
|
package org.inaturalist.android;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.livefront.bridge.Bridge;
public class AboutLicensesActivity extends AppCompatActivity {
private static final String TAG = "AboutLicensesActivity";
private INaturalistApp mApp;
private RecyclerView mLicensesList;
private AboutLicensesAdapter mAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bridge.restoreInstanceState(this, savedInstanceState);
mApp = (INaturalistApp)getApplication();
mApp.applyLocaleSettings(getBaseContext());
setContentView(R.layout.about_licenses);
ActionBar ab = getSupportActionBar();
ab.setTitle(R.string.about_licenses);
ab.setDisplayHomeAsUpEnabled(true);
mLicensesList = findViewById(R.id.licenses_list);
}
@Override
public void onResume() {
super.onResume();
if (mApp == null) {
mApp = (INaturalistApp) getApplicationContext();
}
mLicensesList.addItemDecoration(new DividerItemDecoration(this, 0));
LinearLayoutManager llm = new LinearLayoutManager(this);
llm.setOrientation(LinearLayoutManager.VERTICAL);
mLicensesList.setLayoutManager(llm);
mAdapter = new AboutLicensesAdapter(this, LicenseUtils.getAllLicenseTypes(mApp));
mLicensesList.setAdapter(mAdapter);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
// Respond to the action bar's Up/Home button
this.onBackPressed();
return true;
}
return super.onOptionsItemSelected(item);
}
}
|
[
"budowski@gmail.com"
] |
budowski@gmail.com
|
f34b8cf99404fcb32317001dbbcee61134ffd720
|
f763af9d7f3cb2d9015e512e353385bc5abc8318
|
/DSAJ-Ch5-Doubly_Linked_List/src/Demo.java
|
7e9a13cbb7a60e8d3f91bc6fbea4bc10999ae2f2
|
[] |
no_license
|
shonessy/Data_Structures_And_Algorithms_in_Java-AND-Programming_Interviews_Exposed
|
18b66b5656cf577b88189fadad79c940800835f0
|
c1c8fd74385fcae1ee2ec0b7e84a68de4bcbc2b6
|
refs/heads/master
| 2021-09-03T03:50:12.432391
| 2017-12-18T23:37:56
| 2017-12-18T23:37:56
| 109,734,362
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 511
|
java
|
public class Demo {
public static void main(String[] args) {
DoublyLinkedList list = new DoublyLinkedList();
list.insertFirst(new Worker("Marko", 21));
list.insertFirst(new Worker("Ana", 17));
list.insertFirst(new Worker("Jelena", 43));
list.insertLast(new Worker("Iva", 15));
list.insertLast(new Worker("Srdja", 28));
list.displayList();
System.out.println();
list.deleteFirst();
list.displayList();
System.out.println();
list.deleteLast();
list.displayList();
}
}
|
[
"nemanja.el@hotmail.com"
] |
nemanja.el@hotmail.com
|
e08370dc0b8a980875e27c819763a700c1e3c926
|
8c94ca4f8629594153dc5afc95acbcd3007ab9fd
|
/Module 4/exam/src/main/java/com/exam/model/repository/ICustomerTypeRepository.java
|
eb14071a478078b9adca4ef22c605814a0d25953
|
[] |
no_license
|
huynhnguyenc0221g1/C0221G1_Nguyen_Hoang_Huynh
|
37a5fe93e4840c5e9349b248e1d9dfa8d4a8e84f
|
e47027a10543d3293612f8c67a9bf6c089c15773
|
refs/heads/main
| 2023-06-30T09:53:06.487752
| 2021-08-02T08:21:21
| 2021-08-02T08:21:21
| 342,121,315
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 290
|
java
|
package com.exam.model.repository;
import com.exam.model.entity.CustomerType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ICustomerTypeRepository extends JpaRepository<CustomerType,Long> {
}
|
[
"huynhnguyen@Huynhs-MacBook-Pro.local"
] |
huynhnguyen@Huynhs-MacBook-Pro.local
|
2471d5b4be146049c9d0c329dfca3b81d2483e5e
|
493a8065cf8ec4a4ccdf136170d505248ac03399
|
/net.sf.ictalive.coordination.wfannotation.mapping.diagram/src/net/sf/ictalive/coordination/wfannotation/mapping/diagram/edit/policies/ScopeScopeCompartment7CanonicalEditPolicy.java
|
ba3c40f443e0da313cf83856d69f7a4dc3ff58c7
|
[] |
no_license
|
ignasi-gomez/aliveclipse
|
593611b2d471ee313650faeefbed591c17beaa50
|
9dd2353c886f60012b4ee4fe8b678d56972dff97
|
refs/heads/master
| 2021-01-14T09:08:24.839952
| 2014-10-09T14:21:01
| 2014-10-09T14:21:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,592
|
java
|
package net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.policies;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Assign8EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Compensate8EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.CompensateScope8EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Empty8EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.EventHandlerEditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Exit8EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.ExtensionActivity8EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.ForEach5EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Invoke5EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.OpaqueActivity5EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.PartnerActivity5EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Pick5EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Receive4EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Reply3EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Rethrow3EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.Scope2EditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.ThrowEditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.ValidateEditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.WaitEditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.edit.parts.WhileEditPart;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.part.MappingDiagramUpdater;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.part.MappingNodeDescriptor;
import net.sf.ictalive.coordination.wfannotation.mapping.diagram.part.MappingVisualIDRegistry;
import org.eclipse.bpel.model.BPELPackage;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
import org.eclipse.gmf.runtime.notation.View;
/**
* @generated
*/
public class ScopeScopeCompartment7CanonicalEditPolicy extends
CanonicalEditPolicy {
/**
* @generated
*/
Set myFeaturesToSynchronize;
/**
* @generated
*/
protected List getSemanticChildrenList() {
View viewObject = (View) getHost().getModel();
List result = new LinkedList();
for (Iterator it = MappingDiagramUpdater
.getScopeScopeCompartment_7059SemanticChildren(viewObject)
.iterator(); it.hasNext();) {
result.add(((MappingNodeDescriptor) it.next()).getModelElement());
}
return result;
}
/**
* @generated
*/
protected boolean isOrphaned(Collection semanticChildren, final View view) {
int visualID = MappingVisualIDRegistry.getVisualID(view);
switch (visualID) {
case Assign8EditPart.VISUAL_ID:
case Compensate8EditPart.VISUAL_ID:
case CompensateScope8EditPart.VISUAL_ID:
case Empty8EditPart.VISUAL_ID:
case Exit8EditPart.VISUAL_ID:
case ExtensionActivity8EditPart.VISUAL_ID:
case Scope2EditPart.VISUAL_ID:
case ForEach5EditPart.VISUAL_ID:
case Invoke5EditPart.VISUAL_ID:
case OpaqueActivity5EditPart.VISUAL_ID:
case PartnerActivity5EditPart.VISUAL_ID:
case Pick5EditPart.VISUAL_ID:
case Receive4EditPart.VISUAL_ID:
case Reply3EditPart.VISUAL_ID:
case Rethrow3EditPart.VISUAL_ID:
case ThrowEditPart.VISUAL_ID:
case ValidateEditPart.VISUAL_ID:
case WaitEditPart.VISUAL_ID:
case WhileEditPart.VISUAL_ID:
case EventHandlerEditPart.VISUAL_ID:
if (!semanticChildren.contains(view.getElement())) {
return true;
}
}
return false;
}
/**
* @generated
*/
protected String getDefaultFactoryHint() {
return null;
}
/**
* @generated
*/
protected Set getFeaturesToSynchronize() {
if (myFeaturesToSynchronize == null) {
myFeaturesToSynchronize = new HashSet();
myFeaturesToSynchronize.add(BPELPackage.eINSTANCE
.getScope_Activity());
myFeaturesToSynchronize.add(BPELPackage.eINSTANCE
.getScope_EventHandlers());
}
return myFeaturesToSynchronize;
}
}
|
[
"salvarez@lsi.upc.edu"
] |
salvarez@lsi.upc.edu
|
88bb53af1b923a4ac584c668ba2aacc25ea3613c
|
6811fd178ae01659b5d207b59edbe32acfed45cc
|
/jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/notification/type/ApplicationUserToRecipient.java
|
5cd126b16a7b00bd4964bf698887f42282500d81
|
[] |
no_license
|
xiezhifeng/mysource
|
540b09a1e3c62614fca819610841ddb73b12326e
|
44f29e397a6a2da9340a79b8a3f61b3d51e331d1
|
refs/heads/master
| 2023-04-14T00:55:23.536578
| 2018-04-19T11:08:38
| 2018-04-19T11:08:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 711
|
java
|
package com.atlassian.jira.notification.type;
import javax.annotation.Nonnull;
import com.atlassian.jira.notification.NotificationRecipient;
import com.atlassian.jira.user.ApplicationUser;
import com.google.common.base.Function;
/**
* Converts an {@link ApplicationUser} to a {@link com.atlassian.jira.notification.NotificationRecipient}.
*
* @since v6.0
*/
public class ApplicationUserToRecipient implements Function<ApplicationUser, NotificationRecipient>
{
public static final ApplicationUserToRecipient INSTANCE = new ApplicationUserToRecipient();
@Override
public NotificationRecipient apply(@Nonnull ApplicationUser user)
{
return new NotificationRecipient(user);
}
}
|
[
"moink635@gmail.com"
] |
moink635@gmail.com
|
5e4156300d9276e0c592570fa310c3afa0616430
|
2500d83cb5e5224ffded5f6a4eafbf86bb91edbc
|
/src/topdank/java/org/topdank/banalysis/asm/insn/InstructionSearcher.java
|
95fdd51382b1dd70727c192a52aa5b30257aa2a6
|
[] |
no_license
|
Shadowrs/redeob-rs
|
d97095106ce571090e994604484d2b2de36731d3
|
df5be8763751aa52ba5212d7c0f64486dec92c42
|
refs/heads/master
| 2020-03-26T00:09:30.091958
| 2016-02-25T04:52:21
| 2016-02-25T04:52:21
| 144,308,539
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,626
|
java
|
package org.topdank.banalysis.asm.insn;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.InsnList;
public class InstructionSearcher implements Opcodes {
protected Collection<AbstractInsnNode> insns;
protected InstructionPattern pattern;
protected List<AbstractInsnNode[]> matches;
public InstructionSearcher(Collection<AbstractInsnNode> insns,
InstructionPattern pattern) {
this.insns = insns;
this.pattern = pattern;
matches = new ArrayList<AbstractInsnNode[]>();
}
public InstructionSearcher(InsnList insns, int[] opcodes) {
this(insns, new InstructionPattern(opcodes));
}
public InstructionSearcher(InsnList insns, AbstractInsnNode[] ains) {
this(insns, new InstructionPattern(ains));
}
public InstructionSearcher(InsnList insns, InstructionPattern pattern) {
this.insns = Arrays.asList(insns.toArray());
this.pattern = pattern;
matches = new ArrayList<AbstractInsnNode[]>();
}
public boolean search() {
for(AbstractInsnNode ain : insns) {
//if (ain instanceof LineNumberNode || ain instanceof FrameNode || ain instanceof LabelNode)
// continue;
if(ain.opcode() == -1)
continue;
if (pattern.accept(ain)) {
matches.add(pattern.getLastMatch());
pattern.resetMatch();
}
}
return size() != 0;
}
public List<AbstractInsnNode[]> getMatches() {
return matches;
}
public int size() {
return matches.size();
}
}
|
[
"GenerallyCool@hotmail.com"
] |
GenerallyCool@hotmail.com
|
090ed29885be506435e18a1a1da880225040ba21
|
f77d04f1e0f64a6a5e720ce24b65b1ccb3c546d2
|
/zyj-hec-master/zyj-hec/src/main/java/com/hand/hec/expm/service/IExpReportInterfaceService.java
|
1dd9d5edf863cd7df36be1ba0e39f6069cba5a4a
|
[] |
no_license
|
floodboad/zyj-hssp
|
3139a4e73ec599730a67360cd04aa34bc9eaf611
|
dc0ef445935fa48b7a6e86522ec64da0042dc0f3
|
refs/heads/master
| 2023-05-27T21:28:01.290266
| 2020-01-03T06:21:59
| 2020-01-03T06:29:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 391
|
java
|
package com.hand.hec.expm.service;
import com.hand.hap.core.ProxySelf;
import com.hand.hap.system.service.IBaseService;
import com.hand.hec.expm.dto.ExpReportInterface;
/**
* <p>
* IExpReportInterfaceService
* </p>
*
* @author yang.duan 2019/01/10 15:06
*/
public interface IExpReportInterfaceService extends IBaseService<ExpReportInterface>, ProxySelf<IExpReportInterfaceService>{
}
|
[
"1961187382@qq.com"
] |
1961187382@qq.com
|
1a04c46ece7e3c1f3091ece79d7944e7cb69e839
|
d354f3aeca94444d242691e1ae64e583d7cedaa4
|
/qulice-maven-plugin/src/main/java/com/qulice/maven/ValidatorsProvider.java
|
3acba9a45bc6d5a1d57da160273bea8fae20a24f
|
[
"BSD-2-Clause"
] |
permissive
|
longtimeago/qulice
|
cb542d7cddcf13ca8b2ce23c14fb8a3197a76bf3
|
702ff0bc5022af02bbda046243366c258f2511e3
|
refs/heads/master
| 2020-12-11T01:39:38.804913
| 2014-03-14T19:46:48
| 2014-03-14T19:46:48
| 18,005,916
| 0
| 1
| null | 2016-03-09T06:37:52
| 2014-03-22T09:14:51
|
Java
|
UTF-8
|
Java
| false
| false
| 2,097
|
java
|
/**
* Copyright (c) 2011-2013, Qulice.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: 1) Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer. 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution. 3) Neither the name of the Qulice.com nor
* the names of its contributors may be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
* NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.qulice.maven;
import com.qulice.spi.Validator;
import java.util.Set;
/**
* Provider of validators.
*
* @author Yegor Bugayenko (yegor@tpc2.com)
* @version $Id$
*/
interface ValidatorsProvider {
/**
* Get a collection of internal validators.
* @return List of them
* @see CheckMojo#execute()
*/
Set<MavenValidator> internal();
/**
* Get a collection of external validators.
* @return List of them
* @see CheckMojo#execute()
*/
Set<Validator> external();
}
|
[
"yegor@tpc2.com"
] |
yegor@tpc2.com
|
0e8eda9b2b67891dc38af6b82ac728a9d9f9fa0a
|
9b6b8cdeeff07fe0dd791a01d4d3f823a28b5fd0
|
/ontrack-extension-git/src/main/java/net/nemerosa/ontrack/extension/git/support/BasicGitConfigurator.java
|
6ae0f3c4d92e31ab48237e384766aeb902767e8c
|
[
"MIT"
] |
permissive
|
pjayaramanma/ontrack
|
3a1893d85a10f92d4253d928089b6f6f7eab8f01
|
e8a97a15954598c44e834b947f76e30774ebce21
|
refs/heads/master
| 2020-07-23T09:32:33.947197
| 2016-11-04T10:54:59
| 2016-11-04T10:54:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,166
|
java
|
package net.nemerosa.ontrack.extension.git.support;
import net.nemerosa.ontrack.extension.git.model.GitConfiguration;
import net.nemerosa.ontrack.extension.git.model.GitConfigurator;
import net.nemerosa.ontrack.extension.git.property.GitProjectConfigurationProperty;
import net.nemerosa.ontrack.extension.git.property.GitProjectConfigurationPropertyType;
import net.nemerosa.ontrack.model.structure.Project;
import net.nemerosa.ontrack.model.structure.PropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Optional;
@Component
public class BasicGitConfigurator implements GitConfigurator {
private final PropertyService propertyService;
@Autowired
public BasicGitConfigurator(PropertyService propertyService) {
this.propertyService = propertyService;
}
@Override
public Optional<GitConfiguration> getConfiguration(Project project) {
return propertyService.getProperty(project, GitProjectConfigurationPropertyType.class)
.option()
.map(GitProjectConfigurationProperty::getConfiguration);
}
}
|
[
"damien.coraboeuf@gmail.com"
] |
damien.coraboeuf@gmail.com
|
792331ee5cfb00760bf7de3893daf31f46757dc7
|
cb924dd72b0ff66490b77d8a787e4a91f650d3dd
|
/app/src/main/java/vn/com/vnpt/vinaphone/vnptsoftware/qlvbdhcaobang/model/pojo/respone/FinishDocumentRespone.java
|
884dbf786994dc8ab84e85fbb567071e44387c69
|
[] |
no_license
|
minhdn7/mic_tap_doan_2
|
63d688fee53b275be8d796f9f85694993d20a320
|
593206e3b86f7450e8f039b2923ac161bda2b117
|
refs/heads/master
| 2020-04-10T04:36:47.564430
| 2018-12-07T09:42:01
| 2018-12-07T09:42:01
| 160,803,159
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 353
|
java
|
package vn.com.vnpt.vinaphone.vnptsoftware.qlvbdhcaobang.model.pojo.respone;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
/**
* Created by VietNH on 9/12/2017.
*/
public class FinishDocumentRespone extends StatusRespone {
@SerializedName("data")
@Setter @Getter
private String data;
}
|
[
"minhdn231@gmail.com"
] |
minhdn231@gmail.com
|
c1854ac8ce79d5e842fdad66898410f697fd8d3f
|
51b90e6a68baee33e7c653d79b1c3e26ad71878c
|
/helianto-inventory/src/main/java/org/helianto/inventory/ProcurementOption.java
|
780b5a7f4d2433a625412c30672715757528f99f
|
[
"Apache-2.0"
] |
permissive
|
eldevanjr/helianto
|
38a231abfe6fa8bc146e49b49959dc04f894a589
|
61c13ffeaa0d63bd243d9a4c00e01255f65baa40
|
refs/heads/master
| 2021-01-11T19:20:45.193650
| 2017-01-26T19:55:49
| 2017-01-26T19:55:49
| 79,360,379
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,005
|
java
|
/* Copyright 2005 I Serv Consultoria Empresarial Ltda.
*
* 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.helianto.inventory;
/**
* Make or buy.
*
* @author Mauricio Fernandes de Castro
*/
public enum ProcurementOption {
UNRESOLVED('9'),
MAKE('0'),
BUY('1'),
IMPORT('2');
private ProcurementOption(char value) {
this.value = value;
}
private char value;
/**
* The value assigned to procurement option.
*/
public char getValue() {
return value;
}
}
|
[
"eldevanjr@iservport.com"
] |
eldevanjr@iservport.com
|
f6bf87a1a97d2658318f0dc713946c2424217bd7
|
52019a46c8f25534afa491a5f68bf5598e68510b
|
/core/runtime/src/main/java/org/nakedobjects/runtime/NakedObjects.java
|
d0fd763818e69b9b73401c87fb6bdcce0d396b21
|
[
"Apache-2.0"
] |
permissive
|
JavaQualitasCorpus/nakedobjects-4.0.0
|
e765b4980994be681e5562584ebcf41e8086c69a
|
37ee250d4c8da969eac76749420064ca4c918e8e
|
refs/heads/master
| 2023-08-29T13:48:01.268876
| 2020-06-02T18:07:23
| 2020-06-02T18:07:23
| 167,005,009
| 0
| 1
|
Apache-2.0
| 2022-06-10T22:44:43
| 2019-01-22T14:08:50
|
Java
|
UTF-8
|
Java
| false
| false
| 6,766
|
java
|
package org.nakedobjects.runtime;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.nakedobjects.metamodel.commons.threads.ThreadRunner;
import org.nakedobjects.runtime.installers.InstallerLookup;
import org.nakedobjects.runtime.options.standard.OptionHandlerDeploymentType;
import org.nakedobjects.runtime.options.standard.OptionHandlerDeploymentTypeNakedObjects;
import org.nakedobjects.runtime.options.standard.OptionHandlerPassword;
import org.nakedobjects.runtime.options.standard.OptionHandlerUser;
import org.nakedobjects.runtime.system.DeploymentType;
import org.nakedobjects.runtime.system.NakedObjectsSystem;
import org.nakedobjects.runtime.system.NakedObjectsSystemBootstrapper;
import org.nakedobjects.runtime.system.SystemConstants;
import org.nakedobjects.runtime.viewer.NakedObjectsViewer;
import org.nakedobjects.runtime.viewer.NakedObjectsViewerInstaller;
import org.nakedobjects.runtime.web.EmbeddedWebServer;
import org.nakedobjects.runtime.web.EmbeddedWebServerInstaller;
import org.nakedobjects.runtime.web.WebAppSpecification;
public class NakedObjects extends NakedObjectsAbstract {
private static final String DEFAULT_EMBEDDED_WEBSERVER = SystemConstants.WEBSERVER_DEFAULT;
private OptionHandlerUser flagHandlerUser;
private OptionHandlerPassword flagHandlerPassword;
private OptionHandlerDeploymentType flagHandlerDeploymentType;
public static void main(final String[] args) {
new NakedObjects().run(args);
}
protected void addOptionHandlers(InstallerLookup installerLookup) {
super.addOptionHandlers(installerLookup);
addOptionHandler(flagHandlerDeploymentType = createOptionHandlerDeploymentType());
addOptionHandler(flagHandlerUser = new OptionHandlerUser());
addOptionHandler(flagHandlerPassword = new OptionHandlerPassword());
}
protected OptionHandlerDeploymentType createOptionHandlerDeploymentType() {
return new OptionHandlerDeploymentTypeNakedObjects();
}
protected DeploymentType deploymentType() {
return flagHandlerDeploymentType.getDeploymentType();
}
protected boolean validateUserAndPasswordCombo() {
String user = flagHandlerUser.getUserName();
String password = flagHandlerPassword.getPassword();
return password == null && user == null || password != null && user != null;
}
/**
* Overridable.
*/
protected void bootstrapNakedObjects(
InstallerLookup installerLookup,
DeploymentType deploymentType,
List<String> viewerNames) {
List<NakedObjectsViewer> viewers = lookupViewers(installerLookup, viewerNames, deploymentType);
bootstrapSystem(installerLookup, deploymentType);
bootstrapViewers(installerLookup, viewers);
}
private List<NakedObjectsViewer> lookupViewers(
InstallerLookup installerLookup,
List<String> viewerNames,
DeploymentType deploymentType) {
List<String> viewersToStart = new ArrayList<String>(viewerNames);
deploymentType.addDefaultViewer(viewersToStart);
List<NakedObjectsViewer> viewers = new ArrayList<NakedObjectsViewer>();
for (String requestedViewer : viewersToStart) {
final NakedObjectsViewerInstaller viewerInstaller = installerLookup.viewerInstaller(requestedViewer);
final NakedObjectsViewer viewer = viewerInstaller.createViewer();
viewers.add(viewer);
}
return viewers;
}
/**
* Bootstrap the {@link NakedObjectsSystem}, injecting into all {@link NakedObjectsViewer viewer}s.
*/
private void bootstrapSystem(InstallerLookup installerLookup, DeploymentType deploymentType) {
NakedObjectsSystemBootstrapper bootstrapper = new NakedObjectsSystemBootstrapper(installerLookup);
bootstrapper.bootSystem(deploymentType);
}
private void bootstrapViewers(InstallerLookup installerLookup, List<NakedObjectsViewer> viewers) {
// split viewers into web viewers and non-web viewers
List<NakedObjectsViewer> webViewers = findWebViewers(viewers);
List<NakedObjectsViewer> nonWebViewers = findNonWebViewers(viewers, webViewers);
startNonWebViewers(nonWebViewers);
startWebViewers(installerLookup, webViewers);
}
private List<NakedObjectsViewer> findWebViewers(List<NakedObjectsViewer> viewers) {
List<NakedObjectsViewer> webViewers = new ArrayList<NakedObjectsViewer>(viewers);
CollectionUtils.filter(webViewers, new Predicate() {
public boolean evaluate(Object object) {
NakedObjectsViewer viewer = (NakedObjectsViewer) object;
return viewer.getWebAppSpecification() != null;
}
});
return webViewers;
}
private List<NakedObjectsViewer> findNonWebViewers(List<NakedObjectsViewer> viewers, List<NakedObjectsViewer> webViewers) {
List<NakedObjectsViewer> nonWebViewers = new ArrayList<NakedObjectsViewer>(viewers);
nonWebViewers.removeAll(webViewers);
return nonWebViewers;
}
/**
* Starts each (non web) {@link NakedObjectsViewer viewer} in its own thread.
*/
private void startNonWebViewers(List<NakedObjectsViewer> viewers) {
for (final NakedObjectsViewer viewer : viewers) {
Runnable target = new Runnable() {
public void run() {
viewer.init();
}
};
new ThreadRunner().startThread(target, "Viewer");
}
}
/**
* Starts all the web {@link NakedObjectsViewer viewer}s in an instance of an {@link EmbeddedWebServer}.
*/
private void startWebViewers(final InstallerLookup installerLookup, final List<NakedObjectsViewer> webViewers) {
if (webViewers.size() == 0) {
return;
}
// TODO: we could potentially offer pluggability here
EmbeddedWebServerInstaller webServerInstaller = installerLookup.embeddedWebServerInstaller(DEFAULT_EMBEDDED_WEBSERVER);
EmbeddedWebServer embeddedWebServer = webServerInstaller.createEmbeddedWebServer();
for (final NakedObjectsViewer viewer : webViewers) {
WebAppSpecification webContainerRequirements = viewer.getWebAppSpecification();
embeddedWebServer.addWebAppSpecification(webContainerRequirements);
}
embeddedWebServer.init();
}
}
// Copyright (c) Naked Objects Group Ltd.
|
[
"taibi@sonar-scheduler.rd.tut.fi"
] |
taibi@sonar-scheduler.rd.tut.fi
|
5e48d58835adccb1226737f6c5e97f8af03e4a04
|
981df8aa31bf62db3b9b4e34b5833f95ef4bd590
|
/xworker_core/src/main/java/xworker/java/lang/ShellCommander.java
|
d4c444ebe08e50e28d723c470f52147fc3475162
|
[
"Apache-2.0"
] |
permissive
|
x-meta/xworker
|
638c7cd935f0a55d81f57e330185fbde9dce9319
|
430fba081a78b5d3871669bf6fcb1e952ad258b2
|
refs/heads/master
| 2022-12-22T11:44:10.363983
| 2021-10-15T00:57:10
| 2021-10-15T01:00:24
| 217,432,322
| 1
| 0
|
Apache-2.0
| 2022-12-12T23:21:16
| 2019-10-25T02:13:51
|
Java
|
UTF-8
|
Java
| false
| false
| 715
|
java
|
package xworker.java.lang;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class ShellCommander {
private static ShellCommander instance = new ShellCommander();
InputStreamReader inr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(inr);
private ShellCommander(){
}
public ShellCommander getInstance(){
return instance;
}
public String getLine() throws IOException{
return br.readLine();
}
public void println(String message){
System.out.println(message);
}
public void print(String message){
System.out.print(message);
}
public void exit(){
System.exit(0);
}
}
|
[
"zhangyuxiang@tom.com"
] |
zhangyuxiang@tom.com
|
0114bb028e1a7cad9c7626ded0820f2c3cf8956e
|
45c221ad829c8a848dd889338e7a9394c6e29f83
|
/src/main/java/com/igomall/entity/PromotionPluginSvc.java
|
b3dbd37480ee67dca94c4c5e7d75b3d137cb0bed
|
[] |
no_license
|
wyxhd2008/shop_v6_index
|
ac2c7bc229237f2c05afa36aa0d877bd8c52658f
|
94d44931af80535eb98d1cf8d49a2d3ec8a7ad82
|
refs/heads/master
| 2022-11-06T06:38:29.410277
| 2020-06-21T23:36:19
| 2020-06-21T23:36:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 688
|
java
|
package com.igomall.entity;
import javax.persistence.Entity;
/**
* Entity - 促销插件服务
*
* @author 好源++ Team
* @version 6.1
*/
@Entity
public class PromotionPluginSvc extends Svc {
private static final long serialVersionUID = 7240764880070217374L;
/**
* 促销插件Id
*/
private String promotionPluginId;
/**
* 获取促销插件Id
*
* @return 促销插件Id
*/
public String getPromotionPluginId() {
return promotionPluginId;
}
/**
* 设置促销插件Id
*
* @param promotionPluginId
* 促销插件Id
*/
public void setPromotionPluginId(String promotionPluginId) {
this.promotionPluginId = promotionPluginId;
}
}
|
[
"a12345678"
] |
a12345678
|
c57b5cf72bf2a738d67f45227420a105e1aec775
|
5f4e7b18c82bca2f3f8ff944a5b0ef31aaf5248e
|
/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/HapiTerminologySvcDstu2.java
|
8b4ab6446efb52f3f7a2192f54ec79ec0a78425d
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
shayaanmunshi/hapi-fhir
|
1e080ac18393f43cbe069229b674a34dd42a6535
|
be07ebc4ef73feb776192cc7ce91d95fde466d8d
|
refs/heads/master
| 2021-06-30T18:53:51.655542
| 2017-09-21T12:33:20
| 2017-09-21T12:33:20
| 201,999,525
| 1
| 0
|
Apache-2.0
| 2019-08-12T19:55:49
| 2019-08-12T19:55:49
| null |
UTF-8
|
Java
| false
| false
| 1,403
|
java
|
package ca.uhn.fhir.jpa.term;
/*
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2017 University Health Network
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import ca.uhn.fhir.jpa.entity.TermCodeSystemVersion;
import ca.uhn.fhir.rest.api.server.RequestDetails;
import org.hl7.fhir.instance.hapi.validation.IValidationSupport;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
public class HapiTerminologySvcDstu2 extends BaseHapiTerminologySvc {
@Autowired
private IValidationSupport myValidationSupport;
@Override
public List<VersionIndependentConcept> expandValueSet(String theValueSet) {
throw new UnsupportedOperationException();
}
@Override
public void storeNewCodeSystemVersion(String theSystem, TermCodeSystemVersion theCodeSystemVersion, RequestDetails theRequestDetails) {
// nothing yet
}
}
|
[
"jamesagnew@gmail.com"
] |
jamesagnew@gmail.com
|
a2f8764e3171aa2acfe7b7c494ef3ad6dd4ea095
|
ad64a14fac1f0d740ccf74a59aba8d2b4e85298c
|
/linkwee-supermarket-team/src/main/java/com/linkwee/web/response/LcsStatisticalResponse.java
|
4a5ea181d792815781b5f4acb16c15fe84b5730c
|
[] |
no_license
|
zhangjiayin/supermarket
|
f7715aa3fdd2bf202a29c8683bc9322b06429b63
|
6c37c7041b5e1e32152e80564e7ea4aff7128097
|
refs/heads/master
| 2020-06-10T16:57:09.556486
| 2018-10-30T07:03:15
| 2018-10-30T07:03:15
| 193,682,975
| 0
| 1
| null | 2019-06-25T10:03:03
| 2019-06-25T10:03:03
| null |
UTF-8
|
Java
| false
| false
| 535
|
java
|
package com.linkwee.web.response;
import java.math.BigDecimal;
public class LcsStatisticalResponse {
private Integer totalCount;
private BigDecimal totalAmount;
public Integer getTotalCount() {
return totalCount;
}
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
public BigDecimal getTotalAmount() {
return totalAmount.setScale(2,BigDecimal.ROUND_DOWN);
}
public void setTotalAmount(BigDecimal totalAmount) {
this.totalAmount = totalAmount;
}
}
|
[
"liqimoon@qq.com"
] |
liqimoon@qq.com
|
021be59417068b6ab2608339691813bf798f8887
|
7614de61c16c6bd6b68f5d950f6e9c7b99b64834
|
/prosayj-admin/src/main/java/prosayj/framework/quartz/domain/SysJob.java
|
ccab7945a662afe77d996b6a11b25930587f7cfa
|
[] |
no_license
|
ProSayJ/thinking-javaee-technology-stack
|
b5c25571cee52977761687849dd3ce5d750ec235
|
8b36977698bc523afb26d666fb89115254e64cd2
|
refs/heads/main
| 2023-03-20T19:33:07.945926
| 2021-02-28T14:15:51
| 2021-02-28T14:15:51
| 338,383,511
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,723
|
java
|
package prosayj.framework.quartz.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import prosayj.framework.common.annotation.Excel;
import prosayj.framework.common.constant.ScheduleConstants;
import prosayj.framework.common.core.domain.BaseEntity;
import prosayj.framework.common.utils.StringUtils;
import prosayj.framework.quartz.util.CronUtils;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
/**
* 定时任务调度表 sys_job
*/
public class SysJob extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 任务ID
*/
@Excel(name = "任务序号", cellType = Excel.ColumnType.NUMERIC)
private Long jobId;
/**
* 任务名称
*/
@Excel(name = "任务名称")
private String jobName;
/**
* 任务组名
*/
@Excel(name = "任务组名")
private String jobGroup;
/**
* 调用目标字符串
*/
@Excel(name = "调用目标字符串")
private String invokeTarget;
/**
* cron执行表达式
*/
@Excel(name = "执行表达式 ")
private String cronExpression;
/**
* cron计划策略
*/
@Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;
/**
* 是否并发执行(0允许 1禁止)
*/
@Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
private String concurrent;
/**
* 任务状态(0正常 1暂停)
*/
@Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
private String status;
public Long getJobId() {
return jobId;
}
public void setJobId(Long jobId) {
this.jobId = jobId;
}
@NotBlank(message = "任务名称不能为空")
@Size(min = 0, max = 64, message = "任务名称不能超过64个字符")
public String getJobName() {
return jobName;
}
public void setJobName(String jobName) {
this.jobName = jobName;
}
public String getJobGroup() {
return jobGroup;
}
public void setJobGroup(String jobGroup) {
this.jobGroup = jobGroup;
}
@NotBlank(message = "调用目标字符串不能为空")
@Size(min = 0, max = 500, message = "调用目标字符串长度不能超过500个字符")
public String getInvokeTarget() {
return invokeTarget;
}
public void setInvokeTarget(String invokeTarget) {
this.invokeTarget = invokeTarget;
}
@NotBlank(message = "Cron执行表达式不能为空")
@Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符")
public String getCronExpression() {
return cronExpression;
}
public void setCronExpression(String cronExpression) {
this.cronExpression = cronExpression;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getNextValidTime() {
if (StringUtils.isNotEmpty(cronExpression)) {
return CronUtils.getNextExecution(cronExpression);
}
return null;
}
public String getMisfirePolicy() {
return misfirePolicy;
}
public void setMisfirePolicy(String misfirePolicy) {
this.misfirePolicy = misfirePolicy;
}
public String getConcurrent() {
return concurrent;
}
public void setConcurrent(String concurrent) {
this.concurrent = concurrent;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("jobId", getJobId())
.append("jobName", getJobName())
.append("jobGroup", getJobGroup())
.append("cronExpression", getCronExpression())
.append("nextValidTime", getNextValidTime())
.append("misfirePolicy", getMisfirePolicy())
.append("concurrent", getConcurrent())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}
|
[
"15665662468@163.com"
] |
15665662468@163.com
|
1bbea80b586b6a2a495c9bbb68b9598ffab6e2cc
|
19ba8f487f1bc8965b6155469acae4d5059c77c5
|
/src/mx/tiendas3b/tdexpress/entities/Diagnostico.java
|
47571bb2e3bf58dfaff15df99d5177f3d4139202
|
[] |
no_license
|
opelayoa/tdexpress
|
a7c8460159786b3a7ee2f40912788fd62c17cb07
|
d917858db7dcbce94d42c7e2d940af80c72ea11f
|
refs/heads/master
| 2020-04-26T14:31:52.936070
| 2019-06-10T02:11:55
| 2019-06-10T02:11:55
| 173,617,629
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,552
|
java
|
package mx.tiendas3b.tdexpress.entities;
// Generated 6/03/2019 08:16:53 AM by Hibernate Tools 4.3.5.Final
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Diagnostico generated by hbm2java
*/
@Entity
@Table(name = "diagnostico", catalog = "itaid")
public class Diagnostico implements java.io.Serializable {
private Integer id;
private int sintomaId;
private String descripcion;
private String status;
public Diagnostico() {
}
public Diagnostico(int sintomaId, String descripcion, String status) {
this.sintomaId = sintomaId;
this.descripcion = descripcion;
this.status = status;
}
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
@Column(name = "sintoma_id", nullable = false)
public int getSintomaId() {
return this.sintomaId;
}
public void setSintomaId(int sintomaId) {
this.sintomaId = sintomaId;
}
@Column(name = "descripcion", nullable = false)
public String getDescripcion() {
return this.descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
@Column(name = "status", nullable = false, length = 8)
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
}
|
[
"od.pelayo@gmail.com"
] |
od.pelayo@gmail.com
|
1c3adb7c09097f1dbde3ba396131197261877e95
|
982f6c3a3c006d2b03f4f53c695461455bee64e9
|
/src/main/java/com/alipay/api/domain/AlipayEbppProdmodeReconconfQueryModel.java
|
5ce76f04024110969b4ae2de10a65e88a84c7468
|
[
"Apache-2.0"
] |
permissive
|
zhaomain/Alipay-Sdk
|
80ffc0505fe81cc7dd8869d2bf9a894b823db150
|
552f68a2e7c10f9ffb33cd8e0036b0643c7c2bb3
|
refs/heads/master
| 2022-11-15T03:31:47.418847
| 2020-07-09T12:18:59
| 2020-07-09T12:18:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 871
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 对账配置查询接口
*
* @author auto create
* @since 1.0, 2020-06-15 10:00:15
*/
public class AlipayEbppProdmodeReconconfQueryModel extends AlipayObject {
private static final long serialVersionUID = 5675665288776535357L;
/**
* 缴费业务类型
*/
@ApiField("biz_type")
private String bizType;
/**
* 销账机构编码
*/
@ApiField("chargeoff_code")
private String chargeoffCode;
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
}
public String getChargeoffCode() {
return this.chargeoffCode;
}
public void setChargeoffCode(String chargeoffCode) {
this.chargeoffCode = chargeoffCode;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
f6cdd0e93dd25aba5a8c6d5a21e9ee0d80fcbeb6
|
0e33212225909d0f5cb5e851cdebf328543425fb
|
/flexgame-server/src/main/java/net/zomis/spring/games/generic/GameRestDelegate.java
|
cf97c30d05486135b2bd35a15930a832496cdbc3
|
[
"Apache-2.0"
] |
permissive
|
Zomis/flexgame-server
|
09cbad4478f8d79108a80068565191c77749c536
|
18dd6c34407bb925e214b5edec26f0466f75136b
|
refs/heads/master
| 2022-07-23T02:04:57.322728
| 2022-07-19T10:27:06
| 2022-07-19T10:27:06
| 63,680,442
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,241
|
java
|
package net.zomis.spring.games.generic;
import com.fasterxml.jackson.databind.JsonNode;
import net.zomis.spring.games.messages.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
public class GameRestDelegate {
private static final Logger logger = LoggerFactory.getLogger(GameRestDelegate.class);
private final GameHelper helper;
private final TokenGenerator tokenGenerator;
private final Map<UUID, GenericGame> games = new ConcurrentHashMap<>();
public GameRestDelegate(GameHelper helper, TokenGenerator tokenGenerator) {
this.helper = helper;
this.tokenGenerator = tokenGenerator;
}
private Optional<GenericGame> getGame(UUID uuid) {
if (games.containsKey(uuid)) {
return Optional.of(games.get(uuid));
}
return Optional.empty();
}
public GameList listGames() {
return new GameList(games.values().stream().map(GenericGame::getGameInfo).collect(Collectors.toList()));
}
public ResponseEntity<CreateGameResponse> startNewGame(CreateGameRequest request) {
logger.info("Received start game request: " + request);
GenericGame game = new GenericGame(helper, helper.constructGame(request.getGameConfig()), tokenGenerator);
games.put(game.getUUID(), game);
ResponseEntity<JoinGameResponse> joinResponse = game.addPlayer(request.getPlayerName(), request.getPlayerConfig());
CreateGameResponse response = new CreateGameResponse(game.getUUID().toString(),
joinResponse.getBody().getPrivateKey());
return ResponseEntity.status(HttpStatus.CREATED).body(response);
}
public ResponseEntity<JoinGameResponse> joinGame(String gameID, JoinGameRequest request) {
logger.info("Received join game request: " + request);
Optional<GenericGame> game = getGame(UUID.fromString(gameID));
if (!game.isPresent()) {
return ResponseEntity.badRequest().body(null);
}
return game.get().addPlayer(request.getPlayerName(), request.getPlayerConfig());
}
public ResponseEntity<GameInfo> summary(String uuid) {
Optional<GenericGame> game = getGame(UUID.fromString(uuid));
if (!game.isPresent()) {
return ResponseEntity.badRequest().body(null);
}
return ResponseEntity.ok(game.get().getGameInfo());
}
public ResponseEntity<Object> getDetailedInfo(String uuid) {
logger.info("Received details request: " + uuid);
Optional<GenericGame> game = getGame(UUID.fromString(uuid));
if (!game.isPresent()) {
return ResponseEntity.badRequest().body(null);
}
return ResponseEntity.ok(game.get().getGameDetails());
}
public ResponseEntity<GameMoveResult> action(String gameUUID, String authToken,
String actionType, JsonNode jsonNode) {
logger.info("Received action request of type '" + actionType + "' in game " + gameUUID + ": " + jsonNode);
Optional<GenericGame> game = getGame(UUID.fromString(gameUUID));
if (!game.isPresent()) {
return ResponseEntity.badRequest().body(new GameMoveResult("Game not found"));
}
Optional<PlayerInGame> player = game.get().authorize(authToken);
if (!player.isPresent()) {
logger.warn("No player found with " + authToken + " in game " + game);
return ResponseEntity.badRequest().body(new GameMoveResult("Player in game not found"));
}
GameMoveResult result = helper.performAction(player.get(), actionType, jsonNode);
if (result == null) {
throw new NullPointerException("Perform action must return a response");
}
return ResponseEntity.ok(result);
}
public ResponseEntity<StartGameResponse> start(String game) {
Optional<GenericGame> theGame = getGame(UUID.fromString(game));
theGame.get().start();
return ResponseEntity.ok(new StartGameResponse(true));
}
}
|
[
"zomis2k@hotmail.com"
] |
zomis2k@hotmail.com
|
ffca62b4c3d3fe974cce2c4b8dbbe4d88edbf19f
|
8a56372dbbd78c71322c7cac1f014d44ccb96adc
|
/de.fhdo.lemma.data.datadsl.ui/xtend-gen/de/fhdo/lemma/data/ui/contentassist/DataDslProposalProvider.java
|
ebfa1edb73f5074a44d29907f0823b93c70be5bb
|
[
"MIT"
] |
permissive
|
pwizenty/lemma
|
45ea1c7923021be3eaa33f61f2e7b07b74cc31be
|
ae9bc1ab7f6926a48164c3c4f79aba4739113735
|
refs/heads/master
| 2020-08-01T18:55:38.683366
| 2019-10-07T08:13:55
| 2019-10-07T08:13:55
| 211,083,839
| 0
| 0
|
MIT
| 2019-10-07T08:13:44
| 2019-09-26T12:30:21
|
Java
|
UTF-8
|
Java
| false
| false
| 408
|
java
|
/**
* generated by Xtext 2.12.0
*/
package de.fhdo.lemma.data.ui.contentassist;
import de.fhdo.lemma.data.ui.contentassist.AbstractDataDslProposalProvider;
/**
* See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#content-assist
* on how to customize the content assistant.
*/
@SuppressWarnings("all")
public class DataDslProposalProvider extends AbstractDataDslProposalProvider {
}
|
[
"florian.rademacher@fh-dortmund.de"
] |
florian.rademacher@fh-dortmund.de
|
6566f1fb33288313301b181270db81104cf60f11
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas_ReducedClassCount/applicationModule/src/test/java/applicationModulepackageJava7/Foo985Test.java
|
9ccb45d2386c197522e0b1d2e4727e915297fd7b
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 741
|
java
|
package applicationModulepackageJava7;
import org.junit.Test;
public class Foo985Test {
@Test
public void testFoo0() {
new Foo985().foo0();
}
@Test
public void testFoo1() {
new Foo985().foo1();
}
@Test
public void testFoo2() {
new Foo985().foo2();
}
@Test
public void testFoo3() {
new Foo985().foo3();
}
@Test
public void testFoo4() {
new Foo985().foo4();
}
@Test
public void testFoo5() {
new Foo985().foo5();
}
@Test
public void testFoo6() {
new Foo985().foo6();
}
@Test
public void testFoo7() {
new Foo985().foo7();
}
@Test
public void testFoo8() {
new Foo985().foo8();
}
@Test
public void testFoo9() {
new Foo985().foo9();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
adeca2e5723c03b9e27d66862434040eaa05d0ce
|
d2e0c5f31863db4aceb40a9fa19063dacf821996
|
/application-module/rpc-module/support-service-rpc/src/main/java/org/smartframework/cloud/examples/support/rpc/gateway/GatewayAuthRpc.java
|
be637df2680510c03fa0980d7e59e1aebbce906d
|
[
"Apache-2.0"
] |
permissive
|
cwj3000/smart-cloud-examples
|
e102c7e629835aabb8519eaacf28003f6a4732cc
|
86c9eeb66078fbfba47440a3c3e948350089052f
|
refs/heads/master
| 2022-11-24T11:37:17.142476
| 2020-05-31T16:54:22
| 2020-05-31T16:54:22
| 284,935,469
| 1
| 0
|
Apache-2.0
| 2020-08-04T09:29:41
| 2020-08-04T09:29:40
| null |
UTF-8
|
Java
| false
| false
| 1,254
|
java
|
package org.smartframework.cloud.examples.support.rpc.gateway;
import javax.validation.Valid;
import org.smartframework.cloud.common.pojo.Base;
import org.smartframework.cloud.common.pojo.vo.RespVO;
import org.smartframework.cloud.examples.support.rpc.constant.RpcConstants;
import org.smartframework.cloud.examples.support.rpc.gateway.request.rpc.GatewayAuthUpdateReqVO;
import org.smartframework.cloud.examples.support.rpc.gateway.request.rpc.GatewayAuthUploadReqVO;
import org.smartframework.cloud.starter.rpc.feign.annotation.SmartFeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import springfox.documentation.annotations.ApiIgnore;
@SmartFeignClient(name = RpcConstants.Gateway.FEIGN_CLIENT_NAME)
@Api(tags = "权限rpc相关接口")
@ApiIgnore
public interface GatewayAuthRpc {
@ApiOperation("上传权限信息")
@PostMapping("gateway/rpc/auth/upload")
RespVO<Base> upload(@RequestBody @Valid GatewayAuthUploadReqVO req);
@ApiOperation("上传权限信息")
@PostMapping("gateway/rpc/auth/update")
RespVO<Base> update(@RequestBody @Valid GatewayAuthUpdateReqVO req);
}
|
[
"1634753825@qq.com"
] |
1634753825@qq.com
|
6157d76ad1b0a9bfabad8adc1ba1278fb9cde940
|
74dd63d7d113e2ff3a41d7bb4fc597f70776a9d9
|
/timss-finance/src/main/java/com/timss/finance/flow/itc/carcostone/v002/ApplicantModify.java
|
4317bc07a33de15c628206e3975ebab2f894dfe3
|
[] |
no_license
|
gspandy/timssBusiSrc
|
989c7510311d59ec7c9a2bab3b04f5303150d005
|
a5d37a397460a7860cc221421c5f6e31b48cac0f
|
refs/heads/master
| 2023-08-14T02:14:21.232317
| 2017-02-16T07:18:21
| 2017-02-16T07:18:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 682
|
java
|
package com.timss.finance.flow.itc.carcostone.v002;
import org.springframework.beans.factory.annotation.Autowired;
import com.timss.finance.service.FinanceMainService;
import com.yudean.workflow.service.WorkflowService;
import com.yudean.workflow.task.TaskHandlerBase;
import com.yudean.workflow.task.TaskInfo;
public class ApplicantModify extends TaskHandlerBase {
@Autowired
WorkflowService wfs;
@Autowired
private FinanceMainService financeMainService;
public void init(TaskInfo taskInfo) {
String fid = (String) wfs.getVariable( taskInfo.getProcessInstanceId(),"fid" );
financeMainService.updateFinanceMainStatusByFid( "applicant_modify", fid );
}
}
|
[
"londalonda@qq.com"
] |
londalonda@qq.com
|
9f98301117a56fd972b014f7e98810288e287e56
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/102/146.java
|
4c57b328bd4b14eea1f4d063f07f4fac91f84c91
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,519
|
java
|
package <missing>;
public class GlobalMembers
{
public static char[][] a = new char[40][10];
public static float[] b = new float[40];
public static char temp;
public static float t;
public static float s1;
public static float s2;
public static int count = 0;
public static int Main()
{
int n;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
n = Integer.parseInt(tempVar);
}
int i;
int j;
int k;
for (i = 0; i < n;i++)
{
a[i] = ConsoleInput.readToWhiteSpace(true).charAt(0);
b[i] = Float.parseFloat(ConsoleInput.readToWhiteSpace(true));
//scanf("%s",a[i]);
//scanf("%f",b[i]);
}
for (i = 0; i < n;i++)
{
if (a[i][0] == 'm')
{
count++;
}
}
for (i = 0;i < n - 1;i++)
{
for (j = i + 1; j < n;j++)
{
if (a[i][0] < a[j][0])
{
for (k = 0;k < 10;k++)
{
temp = a[i][k];
a[i][k] = a[j][k];
a[j][k] = temp;
}
t = b[i];
b[i] = b[j];
b[j] = t;
}
}
}
for (i = 0; i < count - 1; i++)
{
for (j = i + 1; j < count; j++)
{
if (b[i] > b[j])
{
s1 = b[i];
b[i] = b[j];
b[j] = s1;
}
}
}
for (i = count; i < n - 1; i++)
{
for (j = i + 1; j < n; j++)
{
if (b[i] < b[j])
{
s2 = b[i];
b[i] = b[j];
b[j] = s2;
}
}
}
for (i = 0;i < n - 1;i++)
{
System.out.printf("%.2f ",b[i]);
}
System.out.printf("%.2f\n",b[n - 1]);
return 0;
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
40589e25ffb7d9e73e5b13b217d799090b5efd75
|
af7b6ed22b26e91286a2135a408d85ac740299c0
|
/androidlibrary/commonlibrary/src/main/java/com/android/commonlibrary/util/DoubleClickUtil.java
|
e9870cf148fd5514a7a2bcbada606dbff2672c1b
|
[
"Apache-2.0"
] |
permissive
|
ShaoqiangPei/AndroidLibrary
|
8ec06649fe7cc64805e84c0b58e0e6d3e5069f9b
|
462c8be8d0acea940dcc0ba1c4273aaca333f75c
|
refs/heads/master
| 2022-08-23T19:48:05.975951
| 2022-08-17T16:55:09
| 2022-08-17T16:55:09
| 165,163,144
| 9
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,034
|
java
|
package com.android.commonlibrary.util;
import android.view.View;
/**
* Created by Admin on 2017/6/26.
* 防止按钮连击工具类
*/
public class DoubleClickUtil {
private static final long DEFAULT_MILLISECONDS=1000;//一秒
private static long mLastClick;
public static boolean isDoubleClick(){
return isDoubleClick(DEFAULT_MILLISECONDS);
}
public static boolean isDoubleClick(long milliseconds){
//大于一秒方个通过
if (System.currentTimeMillis() - mLastClick <= milliseconds){
return true;
}
mLastClick = System.currentTimeMillis();
return false;
}
public static void shakeClick(final View v) {
shakeClick(v,DEFAULT_MILLISECONDS);
}
public static void shakeClick(final View v, long milliseconds) {
v.setClickable(false);
v.postDelayed(new Runnable(){
@Override
public void run() {
v.setClickable(true);
}
}, milliseconds);
}
}
|
[
"769936726@qq.com"
] |
769936726@qq.com
|
955fe6b76d193bceae1811fe9425fff73c0d5da5
|
24525ebc414e22380e2639876d36e6673dff9657
|
/gateway-sms/src/main/java/com/siloyou/jmsg/gateway/smgp/handler/listener/GateWayMTListener.java
|
d71a6edc3c5c792cf32b869e9f3de7d7e5ccd9e4
|
[] |
no_license
|
yyf736057729/sms
|
a3b172b7b818411a22ccb7baeaeff1647c7cd106
|
02a72c7bbd712782888c3c897d5494d4052f4cc8
|
refs/heads/master
| 2020-04-22T14:19:39.377203
| 2019-02-13T04:30:02
| 2019-02-13T04:30:02
| 170,440,034
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,044
|
java
|
package com.siloyou.jmsg.gateway.smgp.handler.listener;
import java.util.List;
import com.aliyun.openservices.ons.api.Action;
import com.aliyun.openservices.ons.api.ConsumeContext;
import com.aliyun.openservices.ons.api.Message;
import com.aliyun.openservices.ons.api.MessageListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.siloyou.jmsg.common.message.SmsMtMessage;
import com.siloyou.jmsg.common.message.SmsSrMessage;
import com.siloyou.jmsg.common.util.FstObjectSerializeUtil;
import com.siloyou.jmsg.gateway.Result;
import com.siloyou.jmsg.gateway.api.GateWayMessageAbstract;
import com.siloyou.jmsg.gateway.api.GatewayFactory;
//public class GateWayMTListener implements MessageListenerConcurrently
public class GateWayMTListener implements MessageListener
{
Logger logger = LoggerFactory.getLogger(GateWayMTListener.class);
private GatewayFactory gatewayFactory;
private GateWayMessageAbstract gateWayMessage;
@Override
public Action consume(Message message, ConsumeContext consumeContext) {
Result result = null;
logger.info("smgp listener recv mt, topic:{}, tag:{}, msgid:{}, key:{}", message.getTopic(), message.getTag(), message.getMsgID(), message.getKey());
SmsMtMessage smsMtMessage = null;
try
{
smsMtMessage = (SmsMtMessage)FstObjectSerializeUtil.read(message.getBody());
if (smsMtMessage != null)
{
result = gatewayFactory.sendMsg(smsMtMessage);
}
else
{
result = new Result("F10106", "消息解析无数据");
logger.info("{}: 无数据", message.getMsgID());
}
}
catch (Exception ex)
{
logger.error("消费异常", ex);
result = new Result("F10107", "消息解析异常");
// 再次放进队列
return Action.CommitMessage;
}
//失败,放入队列
if (!result.isSuccess())
{
SmsSrMessage smsSrMessage =
new SmsSrMessage(message.getMsgID(), result.getErrorCode(), smsMtMessage);
smsSrMessage.setReserve(result.getErrorMsg());
try
{
// GateWayQueueFactory.getSubmitRespQueue().put(smsSrMessage);
gateWayMessage.sendSmsSRMessage(smsSrMessage, smsMtMessage.getGateWayID());
}
catch (Exception e)
{
logger.error("msgid:{}, key:{}, 消息解析异常:{}", message.getMsgID(), message.getKey(), e.getMessage());
}
}
return Action.CommitMessage;
}
// @Override
// public ConsumeConcurrentlyStatus consumeMessage(List<MessageExt> msgs, ConsumeConcurrentlyContext context)
// {
// Result result = null;
// for (MessageExt message : msgs)
// {
// logger.info("smgp listener recv mt, topic:{}, tag:{}, msgid:{}, key:{}", message.getTopic(), message.getTags(), message.getMsgId(), message.getKeys());
// SmsMtMessage smsMtMessage = null;
//
// try
// {
// smsMtMessage = (SmsMtMessage)FstObjectSerializeUtil.read(message.getBody());
// if (smsMtMessage != null)
// {
// result = gatewayFactory.sendMsg(smsMtMessage);
// }
// else
// {
// result = new Result("F10106", "消息解析无数据");
// logger.info("{}: 无数据", message.getMsgId());
// }
// }
// catch (Exception ex)
// {
// logger.error("消费异常", ex);
// result = new Result("F10107", "消息解析异常");
// // 再次放进队列
// return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
// }
//
// //失败,放入队列
// if (!result.isSuccess())
// {
// SmsSrMessage smsSrMessage =
// new SmsSrMessage(message.getMsgId(), result.getErrorCode(), smsMtMessage);
// smsSrMessage.setReserve(result.getErrorMsg());
// try
// {
// // GateWayQueueFactory.getSubmitRespQueue().put(smsSrMessage);
// gateWayMessage.sendSmsSRMessage(smsSrMessage, smsMtMessage.getGateWayID());
// }
// catch (Exception e)
// {
// logger.error("msgid:{}, key:{}, 消息解析异常:{}", message.getMsgId(), message.getKeys(), e.getMessage());
// }
// }
// }
// return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
// }
public void setGatewayFactory(GatewayFactory gatewayFactory)
{
this.gatewayFactory = gatewayFactory;
}
public void setGateWayMessage(GateWayMessageAbstract gateWayMessage)
{
this.gateWayMessage = gateWayMessage;
}
}
|
[
"13282810305@163.com"
] |
13282810305@163.com
|
b1116e6e1deec405ce1e02f6a2149574711c2213
|
41a5724ef5cf75d2d63f97113865f29d5bd71344
|
/plugins/com.seekon.system.auth.client/src/com/seekon/system/auth/client/view/role/basicinfo/RoleValidator.java
|
b018e2ef8c7b8263521452ae50a2637124fd04b2
|
[] |
no_license
|
undyliu/mars
|
dcf9e68813c0af19ea71be0a3725029e5ae54575
|
63e6c569ca1e253f10a9fe5fdc758cadad993c71
|
refs/heads/master
| 2021-01-10T18:31:16.111134
| 2013-08-19T12:55:38
| 2013-08-19T12:55:38
| 10,619,113
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 787
|
java
|
package com.seekon.system.auth.client.view.role.basicinfo;
import com.jgoodies.validation.ValidationResult;
import com.jgoodies.validation.Validator;
import com.jgoodies.validation.util.PropertyValidationSupport;
import com.seekon.system.auth.client.util.ValidationUtil;
import com.seekon.system.auth.model.Role;
public class RoleValidator implements Validator<Role> {
@Override
public ValidationResult validate(Role role) {
PropertyValidationSupport support = new PropertyValidationSupport(role, "角色");
if (ValidationUtil.isBlank(role.getRoleCode())) {
support.addError("代码", "不能为空!");
}
if (ValidationUtil.isBlank(role.getRoleName())) {
support.addError("名称", "不能为空!");
}
return support.getResult();
}
}
|
[
"undyliu@126.com"
] |
undyliu@126.com
|
06635f3d7342a910016a61d51c69ba05fa84fd4a
|
d991dfbef8c02b207ba543ac0720cbd7bda94e57
|
/service/ncip/src/main/java/org/oclc/circill/toolkit/service/ncip/LimitType.java
|
6d5ba6a264705048049e19304a43188fbae6927f
|
[
"MIT"
] |
permissive
|
OCLC-Developer-Network/circill-toolkit
|
fa66f6a800029b51960634dc674562c4588c63ae
|
f29d6f59a8b223dabf7b733f178be8fd4489ad58
|
refs/heads/master
| 2023-03-18T22:06:48.392938
| 2021-03-04T22:19:07
| 2021-03-04T22:19:07
| 307,710,469
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,464
|
java
|
/*
* Copyright (c) 2015 eXtensible Catalog Organization.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the MIT/X11 license. The text of the license can be
* found at http://www.opensource.org/licenses/mit-license.php.
*/
package org.oclc.circill.toolkit.service.ncip;
import org.oclc.circill.toolkit.service.base.ConfigurationException;
import org.oclc.circill.toolkit.service.base.SchemeValuePair;
import org.oclc.circill.toolkit.service.base.ToolkitInternalException;
/**
* Identifies the type of limit.
*/
public class LimitType extends SchemeValuePair {
public LimitType(final String scheme, final String value) {
super(scheme, value);
}
public LimitType(final String value) {
super(value);
}
/**
* Find the LimitType that matches the scheme & value strings supplied.
*
* @param scheme a String representing the Scheme URI.
* @param value a String representing the Value in the Scheme.
* @return an LimitType that matches, or null if none is found to match.
* @throws ConfigurationException if the Toolkit is not configured properly
* @throws ToolkitInternalException if there is an unexpected condition
*/
public static LimitType find(final String scheme, final String value) throws ConfigurationException, ToolkitInternalException {
return (LimitType) find(scheme, value, LimitType.class);
}
}
|
[
"73138532+bushmanb614@users.noreply.github.com"
] |
73138532+bushmanb614@users.noreply.github.com
|
f9cbce38205daf178f542f9bfa12ed6f85119715
|
ae07af7911a5ba8f5d39f23fbd518bdb94ee8414
|
/.svn/pristine/7d/7d11bfaf3b8b76278c4c7ec13f41e089cbe42423.svn-base
|
981fab9b1c58d8c782efbc7053b4a118ef13be91
|
[] |
no_license
|
polo0908/purchase
|
cebc5825cbbff6d57abfd2906d553a0aaae1b541
|
024e8f1437c42c05a5991d1fddcc6ffdff11fb52
|
refs/heads/master
| 2022-12-24T05:49:51.201446
| 2019-05-30T03:32:55
| 2019-05-30T03:32:55
| 188,944,158
| 0
| 0
| null | 2022-12-16T09:49:04
| 2019-05-28T03:03:33
|
Java
|
UTF-8
|
Java
| false
| false
| 1,317
|
package com.cn.hnust.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateUtil {
/**
* 字符串转换成日期
* @param str
* @return date
*/
public static Date StrToDate(String str) {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Date date = null;
try {
date = format.parse(str);
} catch (Exception e) {
e.printStackTrace();
}
return date;
}
/**
* 根据当前时间得到前两周的时间
* @return
*/
public static String getTwoWeeksDate(){
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
//过去两周
c.setTime(new Date());
c.add(Calendar.DATE, - 14);
Date d = c.getTime();
String date = format.format(d);
return date;
}
/**
* 获取上个月日期
* @Title getPrevMonthDate
* @Description
* @param date
* @return
* @return Date
*/
public static Date getPrevMonthDate(Date date){
Calendar calendar = Calendar.getInstance();
calendar.setTime(date); // 设置为当前时间
calendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) - 1); // 设置为上一个月
date = calendar.getTime();
return date;
}
}
|
[
"545731790@qq.com"
] |
545731790@qq.com
|
|
2ac57c969e1dfcaa922a9bef4633baed7e4a3da1
|
aeffafe36bb222977f761913fc0a9a4b1b481162
|
/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/io/FrameInputBuffer.java
|
ca0547db61de0f0add783ed9c9a8f643bfdedef5
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown"
] |
permissive
|
vyalyh-oleg/httpcomponents-core
|
690fe22207dad89affa51de68d94ef960270cdfa
|
51edf2ac6fd47c059abc27d9b6067836f5652cc0
|
refs/heads/master
| 2021-04-26T22:43:57.008223
| 2018-04-22T15:32:11
| 2018-04-22T15:32:11
| 124,137,749
| 0
| 0
|
Apache-2.0
| 2018-04-22T15:32:12
| 2018-03-06T20:59:12
|
Java
|
UTF-8
|
Java
| false
| false
| 5,392
|
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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.hc.core5.http2.impl.io;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import org.apache.hc.core5.http.ConnectionClosedException;
import org.apache.hc.core5.http2.H2ConnectionException;
import org.apache.hc.core5.http2.H2CorruptFrameException;
import org.apache.hc.core5.http2.H2Error;
import org.apache.hc.core5.http2.H2TransportMetrics;
import org.apache.hc.core5.http2.frame.FrameConsts;
import org.apache.hc.core5.http2.frame.FrameFlag;
import org.apache.hc.core5.http2.frame.RawFrame;
import org.apache.hc.core5.http2.impl.BasicH2TransportMetrics;
import org.apache.hc.core5.util.Args;
/**
* Frame input buffer for HTTP/2 blocking connections.
*
* @since 5.0
*/
public final class FrameInputBuffer {
private final BasicH2TransportMetrics metrics;
private final int maxFramePayloadSize;
private final byte[] buffer;
private int off;
private int dataLen;
FrameInputBuffer(final BasicH2TransportMetrics metrics, final int bufferLen, final int maxFramePayloadSize) {
Args.notNull(metrics, "HTTP2 transport metrcis");
Args.positive(maxFramePayloadSize, "Maximum payload size");
this.metrics = metrics;
this.maxFramePayloadSize = maxFramePayloadSize;
this.buffer = new byte[bufferLen];
this.dataLen = 0;
}
public FrameInputBuffer(final BasicH2TransportMetrics metrics, final int maxFramePayloadSize) {
this(metrics, FrameConsts.HEAD_LEN + maxFramePayloadSize, maxFramePayloadSize);
}
public FrameInputBuffer(final int maxFramePayloadSize) {
this(new BasicH2TransportMetrics(), maxFramePayloadSize);
}
boolean hasData() {
return this.dataLen > 0;
}
void fillBuffer(final InputStream instream, final int requiredLen) throws IOException {
while (dataLen < requiredLen) {
if (off > 0) {
System.arraycopy(buffer, off, buffer, 0, dataLen);
off = 0;
}
final int bytesRead = instream.read(buffer, off + dataLen, buffer.length - dataLen);
if (bytesRead == -1) {
if (dataLen > 0) {
throw new H2CorruptFrameException("Corrupt or incomplete HTTP2 frame");
} else {
throw new ConnectionClosedException("Connection closed");
}
} else {
dataLen += bytesRead;
this.metrics.incrementBytesTransferred(bytesRead);
}
}
}
public RawFrame read(final InputStream instream) throws IOException {
fillBuffer(instream, FrameConsts.HEAD_LEN);
final int payloadOff = FrameConsts.HEAD_LEN;
final int payloadLen = (buffer[off] & 0xff) << 16 | (buffer[off + 1] & 0xff) << 8 | (buffer[off + 2] & 0xff);
final int type = buffer[off + 3] & 0xff;
final int flags = buffer[off + 4] & 0xff;
final int streamId = Math.abs(buffer[off + 5] & 0xff) << 24 | (buffer[off + 6] & 0xff << 16) | (buffer[off + 7] & 0xff) << 8 | (buffer[off + 8] & 0xff);
if (payloadLen > maxFramePayloadSize) {
throw new H2ConnectionException(H2Error.FRAME_SIZE_ERROR, "Frame size exceeds maximum");
}
final int frameLen = payloadOff + payloadLen;
fillBuffer(instream, frameLen);
if ((flags & FrameFlag.PADDED.getValue()) > 0) {
if (payloadLen == 0) {
throw new H2ConnectionException(H2Error.PROTOCOL_ERROR, "Inconsistent padding");
}
final int padding = buffer[off + FrameConsts.HEAD_LEN] & 0xff;
if (payloadLen < padding + 1) {
throw new H2ConnectionException(H2Error.PROTOCOL_ERROR, "Inconsistent padding");
}
}
final ByteBuffer payload = payloadLen > 0 ? ByteBuffer.wrap(buffer, off + payloadOff, payloadLen) : null;
final RawFrame frame = new RawFrame(type, flags, streamId, payload);
off += frameLen;
dataLen -= frameLen;
this.metrics.incrementFramesTransferred();
return frame;
}
public H2TransportMetrics getMetrics() {
return metrics;
}
}
|
[
"olegk@apache.org"
] |
olegk@apache.org
|
d2313629a3a3a09e0590bda645495f0b41bea399
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/38/org/apache/commons/math/ode/JacobianMatrices_JacobianMatrices_121.java
|
a6101fb325d86a6018984ca46f4cc7d6c8caa0fd
|
[] |
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
| 2,436
|
java
|
org apach common math od
defin set link secondari equat secondaryequ secondari equat
comput jacobian matric respect initi state vector
paramet primari od set
intend pack link expand state od expandablestatefulod
conjunct primari set od
link order differenti equat firstorderdifferentialequ
link main state jacobian provid mainstatejacobianprovid
order comput jacobian matric respect paramet
primari od set paramet jacobian provid set
link paramet jacobian provid parameterjacobianprovid
link parameter od parameterizedod
expand state od expandablestatefulod
order differenti equat firstorderdifferentialequ
main state jacobian provid mainstatejacobianprovid
paramet jacobian provid parameterjacobianprovid
parameter od parameterizedod
version
jacobian matric jacobianmatric
simpl constructor secondari equat set comput jacobian matric
paramet belong support link
parameteriz paramet name getparametersnam primari set differenti
equat link parameteriz
note select clear previou select paramet
param jode primari order differenti equat set extend
param paramet paramet jacobian matric process
paramet jacobian desir
except math illeg argument except mathillegalargumentexcept paramet support
jacobian matric jacobianmatric main state jacobian provid mainstatejacobianprovid jode
string paramet
math illeg argument except mathillegalargumentexcept
efod
index
jode jode
pode
state dim statedim jode dimens getdimens
paramet
select paramet selectedparamet
param dim paramdim
select paramet selectedparamet paramet configur parameterconfigur paramet length
paramet length
select paramet selectedparamet paramet configur parameterconfigur paramet doubl nan
param dim paramdim paramet length
dirti paramet dirtyparamet
jacobian provid jacobianprovid arrai list arraylist paramet jacobian provid parameterjacobianprovid
set initi state jacobian ident
initi paramet jacobian matrix
matric data matricesdata state dim statedim param dim paramdim state dim statedim
state dim statedim
matric data matricesdata state dim statedim
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
6c5fe6908230f0f85191a56e89b7ef85c78b6299
|
f0daa8b59ca5accb6920aa61007c6bd10d6e2961
|
/src/test/java/mr/MR10_3TestIndex1Loop1NumOfThreads5.java
|
42f71d4bd09d9711e69a56f46d86c5f0468e3c24
|
[] |
no_license
|
phantomDai/cptiscas
|
09b211ff984c228471d9ab28f8c5c05f946c753c
|
83e3ef777b7677c913a0839f8dd8e4df1bc20e0e
|
refs/heads/master
| 2021-07-05T10:54:16.856267
| 2019-06-06T06:18:12
| 2019-06-06T06:18:12
| 143,225,040
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 379
|
java
|
package mr;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class MR10_3TestIndex1Loop1NumOfThreads5 extends TestCase{
MR10_3 mr;
@Before
public void setUp(){
mr = new MR10_3();
}
@After
public void tearDown(){
mr = null;
}
@Test
public void testMR(){
mr.executeService(1,1,5,"FineGrainedHeap");
}
}
|
[
"daihepeng@sina.cn"
] |
daihepeng@sina.cn
|
5cfd0fdd8e573683af2bd05d625a1a8a632311ac
|
fe354a50f8a66cd4a11b5960d2ee13be9b5a97ac
|
/addon-mergeable-test/src/test/java/com/github/lbroudoux/roo/addon/mergeable/domain/TweetDataOnDemand.java
|
7e78a2bd47ce0c9b847e7cc3ce8f44e3ca7cf2f1
|
[] |
no_license
|
lbroudoux/spring-roo-addon-mergeable
|
45aba2a8dfbfaed4b4bec57e3062a405ccf86207
|
a37ef6fdf0dee831d598dcd16ddd94a885cda08b
|
refs/heads/master
| 2016-09-10T20:29:54.252385
| 2012-09-18T21:37:41
| 2012-09-18T21:37:41
| 5,833,346
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 191
|
java
|
package com.github.lbroudoux.roo.addon.mergeable.domain;
import org.springframework.roo.addon.dod.RooDataOnDemand;
@RooDataOnDemand(entity = Tweet.class)
public class TweetDataOnDemand {
}
|
[
"laurent.broudoux@gmail.com"
] |
laurent.broudoux@gmail.com
|
18e14f010b7c177e01f75d9939ee21c18189fc5b
|
6500848c3661afda83a024f9792bc6e2e8e8a14e
|
/gp_JADX/com/google/android/finsky/layout/play/C3700i.java
|
e89c67c1ebdd36444dac5408b4ed8361f4a53095
|
[] |
no_license
|
enaawy/gproject
|
fd71d3adb3784d12c52daf4eecd4b2cb5c81a032
|
91cb88559c60ac741d4418658d0416f26722e789
|
refs/heads/master
| 2021-09-03T03:49:37.813805
| 2018-01-05T09:35:06
| 2018-01-05T09:35:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 632
|
java
|
package com.google.android.finsky.layout.play;
import android.content.Context;
import com.google.android.finsky.C1473m;
import com.squareup.haha.perflib.HprofParser;
final class C3700i implements Runnable {
public final /* synthetic */ Context f18781a;
public final /* synthetic */ FinskyDrawerLayout f18782b;
C3700i(FinskyDrawerLayout finskyDrawerLayout, Context context) {
this.f18782b = finskyDrawerLayout;
this.f18781a = context;
}
public final void run() {
this.f18782b.m17537b((int) HprofParser.ROOT_REFERENCE_CLEANUP);
C1473m.f7980a.bp().mo4363b(this.f18781a);
}
}
|
[
"genius.ron@gmail.com"
] |
genius.ron@gmail.com
|
3790bf30d034c4ee668e5f1f9fbf4bc7095613b8
|
f9f61351f75ac43808171b49323a346fb672cb28
|
/MySql-1.16/MySql-1.16/cbs-ejb/src/java/com/cbs/dto/npci/cts/ow/reverse/package-info.java
|
7c7767b1fcab8ce61bc1781eaa461638951a2fcf
|
[] |
no_license
|
Udit0079/Projects
|
9ab8bafdd2ac1d88b85b556127d7b24b692f09ca
|
16e780c6cabf7ea8b46341665aaab3024334e3ad
|
refs/heads/master
| 2022-12-27T11:59:04.018772
| 2021-02-23T09:18:52
| 2021-02-23T09:18:52
| 229,883,071
| 0
| 0
| null | 2022-12-15T23:24:01
| 2019-12-24T06:19:27
|
Java
|
UTF-8
|
Java
| false
| false
| 547
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2017.06.16 at 02:21:07 PM IST
//
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:schemas-ncr-com:ECPIX:RF:FileStructure:010001", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package com.cbs.dto.npci.cts.ow.reverse;
|
[
"udit@infostellar.com"
] |
udit@infostellar.com
|
49ec512f2690ff0446a765d34e8d680d80fcb9ec
|
40768c7a7ce209f86a1ae3326c7e1e4831a989b5
|
/microservices-project1/spring-demo-test/src/main/java/com/springinaction/chapter_01/annotationMode/knights/BraveKnight.java
|
3b04703dd4208bde770baa6187e4734c73fd4801
|
[] |
no_license
|
huangxuesong2018/arclncode
|
62b011d516f0070a83294563b009a9512a57b0f2
|
6fa53434433c61754b611f5afdee854d57eacace
|
refs/heads/master
| 2022-12-22T01:39:59.724402
| 2019-08-26T07:02:39
| 2019-08-26T07:02:39
| 152,358,991
| 0
| 0
| null | 2022-12-16T04:27:16
| 2018-10-10T03:40:32
|
Java
|
UTF-8
|
Java
| false
| false
| 1,711
|
java
|
package com.springinaction.chapter_01.annotationMode.knights;
import com.springinaction.chapter_01.Knight;
import com.springinaction.chapter_01.Quest;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import javax.annotation.PostConstruct;
/**
* @author HXS
* @copyright
* @since 2019-02-18
*/
public class BraveKnight implements Knight,
BeanNameAware,BeanFactoryAware,ApplicationContextAware {
//这个地方使用构造注入
private Quest quest;
/**
* AnnotationConfigApplicationContextStarter 方式启动时 会调用
*/
@PostConstruct
public void init(){
System.out.println("【使用注释】BraveKnight 使用 @PostConstruct 初始");
}
public BraveKnight(Quest quest) {
this.quest = quest;
}
public void embarkOnQuest(){
quest.embark();
}
@Override
public void setBeanName(String name) {
System.out.println("【使用注释】BraveKnight 实现了 BeanNameAware 接口--"+name);
}
@Override
public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
System.out.println("【使用注释】BraveKnight实现了 BeanFactoryAware 接口--");
}
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
System.out.println("【使用注释】BraveKnight实现了 ApplicationContextAware 接口--");
}
}
|
[
"106410277@qq.com"
] |
106410277@qq.com
|
fd208bf74c4f9434ac33e5e676d673017b15bf00
|
b8c0c8450fe777dbe08b31cf12bc6a1a1b6531e3
|
/src/main/java/Lesson4/iterator/TestIterator.java
|
eb4c8f5c8888a0820d8111fcd87557623172a1bb
|
[] |
no_license
|
ganiushina/Array
|
8da07ab44f193148fb22a7c7d3097c4c3b194c02
|
81f1419a94c05645d2d4eb77111641de0a16cc88
|
refs/heads/master
| 2020-06-04T08:57:58.277013
| 2019-09-02T13:22:44
| 2019-09-02T13:22:44
| 191,954,305
| 0
| 0
| null | 2019-09-02T13:25:14
| 2019-06-14T14:11:51
|
Java
|
UTF-8
|
Java
| false
| false
| 451
|
java
|
package Lesson4.iterator;
import Lesson4.SimpleLinkedListImpl;
public class TestIterator {
public static void main(String[] args) {
Lesson4.LinkedList linkedList = new SimpleLinkedListImpl();
linkedList.insertFirst(1);
linkedList.insertFirst(2);
linkedList.insertFirst(3);
linkedList.insertFirst(4);
for (Object value : linkedList) {
System.out.println(value);
}
}
}
|
[
"32090008+ganiushina@users.noreply.github.com"
] |
32090008+ganiushina@users.noreply.github.com
|
d155e4fa56357947c71f85258f4803edad09dd8c
|
807e0deb469fbd13346f7bea14d4823f6fd40946
|
/src/main/java/com/liujun/datastruct/queue/leetcode/code703/KthLargest.java
|
231386e6e8c5e32f74782764617885ee57af011b
|
[] |
no_license
|
huangjiewen4/datastruct
|
07731bd117fb74a8c0246ca7883d105ca66f20c9
|
502b39eca7dd32c7d1f204b6988db6eabd94c62c
|
refs/heads/master
| 2020-04-12T18:45:49.801204
| 2018-12-19T11:43:25
| 2018-12-19T11:43:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 910
|
java
|
package com.liujun.datastruct.queue.leetcode.code703;
import java.util.PriorityQueue;
/**
* 在一个数据流中找出第K大的元素
*
* @author liujun
* @version 0.0.1
* @date 2018/11/17
*/
public class KthLargest {
/** 优先队列 */
private PriorityQueue<Integer> queue;
/** 堆的大小 */
private int k;
public KthLargest(int k, int[] nums) {
// 维护一个最小堆
queue = new PriorityQueue<>(k);
queue = new PriorityQueue<>(10);
this.k = k;
for (int s : nums) {
add(s);
}
}
public int add(int value) {
// 当数据的规模小于K时直接加入
if (queue.size() < k) {
queue.add(value);
}
// 是否比当前值小,则移除头,加入队列
else if (queue.peek() < value) {
// 移除队列头
queue.poll();
// 加入队列中
queue.offer(value);
}
return queue.peek();
}
}
|
[
"422134235@qq.com"
] |
422134235@qq.com
|
0977272944b5121f1e0f95df3b84b1ece3198a19
|
69bb76650dd536ad900bc59d349f62984f334051
|
/spring-ssm/src/main/java/com/issac/ssm/design_pattern/adapter/GBSocket.java
|
5f0009bfc026a8734bac4525ff4239c755fc54a8
|
[] |
no_license
|
IssacYoung2013/pratice
|
932fbadc060c8a9327655393b8802fe148dbd4ff
|
9636d070a0b8dc8a72d8f949925f189ae241db14
|
refs/heads/master
| 2022-12-23T02:58:54.986926
| 2019-08-01T00:37:41
| 2019-08-01T00:37:41
| 191,263,461
| 0
| 0
| null | 2022-12-16T04:34:02
| 2019-06-11T00:15:38
|
Java
|
UTF-8
|
Java
| false
| false
| 170
|
java
|
package com.issac.ssm.design_pattern.adapter;
/**
*
*
* @author: ywy
* @date: 2019-06-27
* @desc: 中国插排
*/
public interface GBSocket {
void charge();
}
|
[
"issacyoung@msn.cn"
] |
issacyoung@msn.cn
|
d132f1326e2cf4c9f70f0e55726f007c219ae4d9
|
7fdaaa02f2ec9a9afe4a31d145ed4160a006e53b
|
/doma-core/src/main/java/org/seasar/doma/jdbc/SqlLogType.java
|
5be8d2e2ef57e83648d55141e43ae2e3179a031a
|
[
"Apache-2.0"
] |
permissive
|
domaframework/doma
|
90637ffd3395fc9acc225550ad9921a62f69e16c
|
a7ea354df6fb4a479d888c4f767875ba8f2c6cbc
|
refs/heads/master
| 2023-08-29T01:32:32.416047
| 2023-08-23T11:05:24
| 2023-08-23T13:14:33
| 17,404,938
| 389
| 95
|
Apache-2.0
| 2023-09-11T05:05:30
| 2014-03-04T14:30:03
|
Java
|
UTF-8
|
Java
| false
| false
| 543
|
java
|
package org.seasar.doma.jdbc;
import org.seasar.doma.jdbc.dialect.Dialect;
/** Defines the SQL log formats. */
public enum SqlLogType {
/**
* The raw SQL.
*
* <p>The bind variables are displayed as {@code ?}.
*/
RAW,
/**
* The formatted SQL.
*
* <p>The bind variables are replaced with the string representations of the parameters. The
* string representations is determined by the object that is return from {@link
* Dialect#getSqlLogFormattingVisitor()}.
*/
FORMATTED,
/** No output. */
NONE
}
|
[
"toshihiro.nakamura@gmail.com"
] |
toshihiro.nakamura@gmail.com
|
60477bfaa2d20504f6293b25e02740fd4fd528d8
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/ax/d.java
|
81072e20b8288244eb1a80b65f6e046a49d898ad
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 449
|
java
|
package com.tencent.mm.ax;
import com.tencent.mm.plugin.messenger.foundation.a.a.e.b;
import com.tencent.mm.protocal.c.bet;
import com.tencent.mm.protocal.c.qi;
import com.tencent.mm.sdk.platformtools.bi;
@Deprecated
public final class d extends b {
private qi hKF = new qi();
public d(String str, long j) {
super(8);
this.hKF.wfM = new bet().Vf(bi.oM(str));
this.hKF.vNT = j;
this.ouK = this.hKF;
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
ddf695d96203121d095f801954bff4251a2f9acd
|
eb5f5353f49ee558e497e5caded1f60f32f536b5
|
/javax/management/openmbean/CompositeDataInvocationHandler.java
|
3d355d920f935de6b2b3de6d288dbf12d68352d7
|
[] |
no_license
|
mohitrajvardhan17/java1.8.0_151
|
6fc53e15354d88b53bd248c260c954807d612118
|
6eeab0c0fd20be34db653f4778f8828068c50c92
|
refs/heads/master
| 2020-03-18T09:44:14.769133
| 2018-05-23T14:28:24
| 2018-05-23T14:28:24
| 134,578,186
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,730
|
java
|
package javax.management.openmbean;
import com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory;
import com.sun.jmx.mbeanserver.MXBeanLookup;
import com.sun.jmx.mbeanserver.MXBeanMapping;
import com.sun.jmx.mbeanserver.MXBeanMappingFactory;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class CompositeDataInvocationHandler
implements InvocationHandler
{
private final CompositeData compositeData;
private final MXBeanLookup lookup;
public CompositeDataInvocationHandler(CompositeData paramCompositeData)
{
this(paramCompositeData, null);
}
CompositeDataInvocationHandler(CompositeData paramCompositeData, MXBeanLookup paramMXBeanLookup)
{
if (paramCompositeData == null) {
throw new IllegalArgumentException("compositeData");
}
compositeData = paramCompositeData;
lookup = paramMXBeanLookup;
}
public CompositeData getCompositeData()
{
assert (compositeData != null);
return compositeData;
}
public Object invoke(Object paramObject, Method paramMethod, Object[] paramArrayOfObject)
throws Throwable
{
String str1 = paramMethod.getName();
if (paramMethod.getDeclaringClass() == Object.class)
{
if ((str1.equals("toString")) && (paramArrayOfObject == null)) {
return "Proxy[" + compositeData + "]";
}
if ((str1.equals("hashCode")) && (paramArrayOfObject == null)) {
return Integer.valueOf(compositeData.hashCode() + 1128548680);
}
if ((str1.equals("equals")) && (paramArrayOfObject.length == 1) && (paramMethod.getParameterTypes()[0] == Object.class)) {
return Boolean.valueOf(equals(paramObject, paramArrayOfObject[0]));
}
return paramMethod.invoke(this, paramArrayOfObject);
}
String str2 = DefaultMXBeanMappingFactory.propertyName(paramMethod);
if (str2 == null) {
throw new IllegalArgumentException("Method is not getter: " + paramMethod.getName());
}
Object localObject1;
if (compositeData.containsKey(str2))
{
localObject1 = compositeData.get(str2);
}
else
{
localObject2 = DefaultMXBeanMappingFactory.decapitalize(str2);
if (compositeData.containsKey((String)localObject2))
{
localObject1 = compositeData.get((String)localObject2);
}
else
{
String str3 = "No CompositeData item " + str2 + (((String)localObject2).equals(str2) ? "" : new StringBuilder().append(" or ").append((String)localObject2).toString()) + " to match " + str1;
throw new IllegalArgumentException(str3);
}
}
Object localObject2 = MXBeanMappingFactory.DEFAULT.mappingForType(paramMethod.getGenericReturnType(), MXBeanMappingFactory.DEFAULT);
return ((MXBeanMapping)localObject2).fromOpenValue(localObject1);
}
private boolean equals(Object paramObject1, Object paramObject2)
{
if (paramObject2 == null) {
return false;
}
Class localClass1 = paramObject1.getClass();
Class localClass2 = paramObject2.getClass();
if (localClass1 != localClass2) {
return false;
}
InvocationHandler localInvocationHandler = Proxy.getInvocationHandler(paramObject2);
if (!(localInvocationHandler instanceof CompositeDataInvocationHandler)) {
return false;
}
CompositeDataInvocationHandler localCompositeDataInvocationHandler = (CompositeDataInvocationHandler)localInvocationHandler;
return compositeData.equals(compositeData);
}
}
/* Location: C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar!\javax\management\openmbean\CompositeDataInvocationHandler.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"mohit.rajvardhan@ericsson.com"
] |
mohit.rajvardhan@ericsson.com
|
92e8e06e50259e67b5a95d988177aacc229693f5
|
a68b6a8ebf9c5461c89c4e7a4357dd0542002c4a
|
/ComvivaDemo/src/com/viva/MountainBicycle.java
|
34aeb0eb530db017fb753fcfea593852abf56085
|
[] |
no_license
|
puneetvashisht/comviva
|
277386e88c981aeff2e9733ac537eff05c1f7dae
|
d78192dc5ab55d00ed8970825143565d9f875df9
|
refs/heads/master
| 2022-12-24T19:08:24.946677
| 2020-02-27T06:59:58
| 2020-02-27T06:59:58
| 237,902,046
| 1
| 5
| null | 2022-12-16T08:53:11
| 2020-02-03T06:45:02
|
Java
|
UTF-8
|
Java
| false
| false
| 455
|
java
|
package com.viva;
public class MountainBicycle extends Bicycle{
int gears;
public MountainBicycle(int speed) {
super(speed);
}
public MountainBicycle(int speed, int gears) {
this(speed);
// super(speed);
this.gears = gears;
}
// public void speedUp(){
// this.speed++;
// }
//
@Override
public void brakeDown(){
this.speed--;
}
@Override
public String toString() {
return "MountainBicycle [speed=" + speed + "]";
}
}
|
[
"puneetvashsiht@gmail.com"
] |
puneetvashsiht@gmail.com
|
513b8eaf09337f237d88bf3eaa2a085921b028cb
|
73fb3212274525b1ad47c4eeca7082a6a0a97250
|
/commonlibs/zdkplayer/dkplayer-sample/src/main/java/xyz/doikki/dkplayer/util/cache/PreloadManagerDk.java
|
45d84e3919e2e7b508e3cd0f214f2feccb7ce99d
|
[] |
no_license
|
dahui888/androidkuangjia2021
|
d6ba565e14b50f2a484154d8fffdb486ee56f433
|
624e212b97bb4b47d4763f644be30ef2a26d244d
|
refs/heads/main
| 2023-07-18T00:00:43.079443
| 2021-08-26T10:15:53
| 2021-08-26T10:15:53
| 383,725,172
| 1
| 0
| null | 2021-07-07T08:18:31
| 2021-07-07T08:18:30
| null |
UTF-8
|
Java
| false
| false
| 6,259
|
java
|
package xyz.doikki.dkplayer.util.cache;
import android.content.Context;
import com.danikula.videocachedk.HttpProxyCacheServer;
import xyz.doikki.videoplayer.util.L;
import java.io.File;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 抖音预加载工具,使用AndroidVideoCache实现
*/
public class PreloadManagerDk {
private static PreloadManagerDk sPreloadManager;
/**
* 单线程池,按照添加顺序依次执行{@link PreloadTaskDk}
*/
private ExecutorService mExecutorService = Executors.newSingleThreadExecutor();
/**
* 保存正在预加载的{@link PreloadTaskDk}
*/
private LinkedHashMap<String, PreloadTaskDk> mPreloadTasks = new LinkedHashMap<>();
/**
* 标识是否需要预加载
*/
private boolean mIsStartPreload = true;
private HttpProxyCacheServer mHttpProxyCacheServer;
/**
* 预加载的大小,每个视频预加载512KB,这个参数可根据实际情况调整
*/
public static final int PRELOAD_LENGTH = 512 * 1024;
private PreloadManagerDk(Context context) {
mHttpProxyCacheServer = ProxyVideoCacheManagerDk.getProxy(context);
}
public static PreloadManagerDk getInstance(Context context) {
if (sPreloadManager == null) {
synchronized (PreloadManagerDk.class) {
if (sPreloadManager == null) {
sPreloadManager = new PreloadManagerDk(context.getApplicationContext());
}
}
}
return sPreloadManager;
}
/**
* 开始预加载
*
* @param rawUrl 原始视频地址
*/
public void addPreloadTask(String rawUrl, int position) {
if (isPreloaded(rawUrl)) {
return;
}
PreloadTaskDk task = new PreloadTaskDk();
task.mRawUrl = rawUrl;
task.mPosition = position;
task.mCacheServer = mHttpProxyCacheServer;
L.i("addPreloadTask: " + position);
mPreloadTasks.put(rawUrl, task);
if (mIsStartPreload) {
//开始预加载
task.executeOn(mExecutorService);
}
}
/**
* 判断该播放地址是否已经预加载
*/
private boolean isPreloaded(String rawUrl) {
//先判断是否有缓存文件,如果已经存在缓存文件,并且其大小大于1KB,则表示已经预加载完成了
File cacheFile = mHttpProxyCacheServer.getCacheFile(rawUrl);
if (cacheFile.exists()) {
if (cacheFile.length() >= 1024) {
return true;
} else {
//这种情况一般是缓存出错,把缓存删掉,重新缓存
cacheFile.delete();
return false;
}
}
//再判断是否有临时缓存文件,如果已经存在临时缓存文件,并且临时缓存文件超过了预加载大小,则表示已经预加载完成了
File tempCacheFile = mHttpProxyCacheServer.getTempCacheFile(rawUrl);
if (tempCacheFile.exists()) {
return tempCacheFile.length() >= PRELOAD_LENGTH;
}
return false;
}
/**
* 暂停预加载
* 根据是否反向滑动取消在position之下或之上的PreloadTask
*
* @param position 当前滑到的位置
* @param isReverseScroll 列表是否反向滑动
*/
public void pausePreload(int position, boolean isReverseScroll) {
L.d("pausePreload:" + position + " isReverseScroll: " + isReverseScroll);
mIsStartPreload = false;
for (Map.Entry<String, PreloadTaskDk> next : mPreloadTasks.entrySet()) {
PreloadTaskDk task = next.getValue();
if (isReverseScroll) {
if (task.mPosition >= position) {
task.cancel();
}
} else {
if (task.mPosition <= position) {
task.cancel();
}
}
}
}
/**
* 恢复预加载
* 根据是否反向滑动开始在position之下或之上的PreloadTask
*
* @param position 当前滑到的位置
* @param isReverseScroll 列表是否反向滑动
*/
public void resumePreload(int position, boolean isReverseScroll) {
L.d("resumePreload:" + position + " isReverseScroll: " + isReverseScroll);
mIsStartPreload = true;
for (Map.Entry<String, PreloadTaskDk> next : mPreloadTasks.entrySet()) {
PreloadTaskDk task = next.getValue();
if (isReverseScroll) {
if (task.mPosition < position) {
if (!isPreloaded(task.mRawUrl)) {
task.executeOn(mExecutorService);
}
}
} else {
if (task.mPosition > position) {
if (!isPreloaded(task.mRawUrl)) {
task.executeOn(mExecutorService);
}
}
}
}
}
/**
* 通过原始地址取消预加载
*
* @param rawUrl 原始地址
*/
public void removePreloadTask(String rawUrl) {
PreloadTaskDk task = mPreloadTasks.get(rawUrl);
if (task != null) {
task.cancel();
mPreloadTasks.remove(rawUrl);
}
}
/**
* 取消所有的预加载
*/
public void removeAllPreloadTask() {
Iterator<Map.Entry<String, PreloadTaskDk>> iterator = mPreloadTasks.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry<String, PreloadTaskDk> next = iterator.next();
PreloadTaskDk task = next.getValue();
task.cancel();
iterator.remove();
}
}
/**
* 获取播放地址
*/
public String getPlayUrl(String rawUrl) {
PreloadTaskDk task = mPreloadTasks.get(rawUrl);
if (task != null) {
task.cancel();
}
if (isPreloaded(rawUrl)) {
return mHttpProxyCacheServer.getProxyUrl(rawUrl);
} else {
return rawUrl;
}
}
}
|
[
"liangxiao6@live.com"
] |
liangxiao6@live.com
|
c137ca7d140f4bdddceeb935a139694f7fe350d4
|
b481557b5d0e85a057195d8e2ed85555aaf6b4e7
|
/src/test/java/com/jlee/leetcodesolutions/TestLeetCode0576.java
|
7dc12b698a82bc0c1752456760080bd5ef4656b0
|
[] |
no_license
|
jlee301/leetcodesolutions
|
b9c61d7fbe96bcb138a2727b69b3a39bbe153911
|
788ac8c1c95eb78eda27b21ecb7b29eea1c7b5a4
|
refs/heads/master
| 2021-06-05T12:27:42.795124
| 2019-08-11T23:04:07
| 2019-08-11T23:04:07
| 113,272,040
| 0
| 1
| null | 2020-10-12T23:39:27
| 2017-12-06T05:16:39
|
Java
|
UTF-8
|
Java
| false
| false
| 985
|
java
|
package com.jlee.leetcodesolutions;
import com.jlee.leetcodesolutions.LeetCode0576;
import org.junit.Assert;
import org.junit.Test;
public class TestLeetCode0576 {
@Test
public void testProblemCase1() {
int m = 2, n = 2, N = 2, i = 0, j = 0;
LeetCode0576 solution = new LeetCode0576();
Assert.assertEquals(6, solution.findPaths(m, n, N, i, j));
}
@Test
public void testProblemCase2() {
int m = 1, n = 3, N = 3, i = 0, j = 1;
LeetCode0576 solution = new LeetCode0576();
Assert.assertEquals(12, solution.findPaths(m, n, N, i, j));
}
@Test
public void testMaxConditions() {
int m = 50, n = 50, N = 50, i = 0, j = 0;
LeetCode0576 solution = new LeetCode0576();
Assert.assertEquals(678188903, solution.findPaths(m, n, N, i, j));
}
@Test
public void testNoSteps() {
int m = 50, n = 50, N = 0, i = 0, j = 0;
LeetCode0576 solution = new LeetCode0576();
Assert.assertEquals(0, solution.findPaths(m, n, N, i, j));
}
}
|
[
"john.m.lee@gmail.com"
] |
john.m.lee@gmail.com
|
d927b83b684a586ae0bd3b84534eaf5d8bdde0eb
|
c8cdff97fb4b6ce366bb6ab9adaff866b761a791
|
/src/day40_arrayList/ArrayListExample.java
|
ca2dd1e1ec0de356f3d88a0fd7e4da9726919447
|
[] |
no_license
|
SDET222/java-programmingC
|
6a50c147f526f60382c8febfe68c1a1c7f2921b2
|
f6098a8a3ff2412135120efde901ab3ac558c362
|
refs/heads/master
| 2023-06-22T00:48:25.451665
| 2021-07-26T23:51:53
| 2021-07-26T23:51:53
| 366,196,266
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 553
|
java
|
package day40_arrayList;
import java.util.*;
public class ArrayListExample {
public static void main(String[] args) {
ArrayList<Integer> nums = new ArrayList<>();
nums.add(255);
nums.add(10);
nums.add(7);
System.out.println("size = "+nums.size());
System.out.println(nums);
System.out.println("index 0 = "+nums.get(0));
System.out.println("index 1 = "+nums.get(1));
System.out.println("index 2 = "+nums.get(2));
nums.remove(0);
System.out.println(nums);
}
}
|
[
"jkrogers222@gmail.com"
] |
jkrogers222@gmail.com
|
43d73194891e21b86bec27e80dbca64f2bcefd53
|
62accff45f74eda60411d0c5b79480788981d413
|
/src/main/java/com/ioc/spring/util/ClassUtil.java
|
90f0ec10b52fb4246f2ca8d635a47edc04f20951
|
[] |
no_license
|
yuanshuaif/SpringBoot
|
d1f05b461dd32a564063917f7166f803e0e42ff4
|
082861e06f8a3cbf53bf461a3f0d836decf2c2e9
|
refs/heads/master
| 2022-07-20T07:50:58.380072
| 2022-07-17T05:29:46
| 2022-07-17T05:29:46
| 243,789,945
| 1
| 1
| null | 2021-01-13T08:11:57
| 2020-02-28T15:10:39
|
Java
|
UTF-8
|
Java
| false
| false
| 9,092
|
java
|
package com.ioc.spring.util;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.net.JarURLConnection;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/**
* 获取某个包下面的所有类信息
* isAssignableFrom()方法与instanceof关键字的区别总结为以下两个点:
* isAssignableFrom()方法是从类继承的角度去判断,instanceof关键字是从实例继承的角度去判断。
* isAssignableFrom()方法是判断是否为某个类的父类,instanceof关键字是判断是否某个类的子类。
* 使用方法:1.父类.class.isAssignableFrom(子类.class);2.子类实例 instanceof 父类类型
*/
public class ClassUtil {
/**
* 取得某个接口下所有实现这个接口的类
*/
public static List<Class> getAllClassByInterface(Class c) {
List<Class> returnClassList = null;
if (c.isInterface()) {
// 获取当前的包名
String packageName = c.getPackage().getName();
// 获取当前包下以及子包下所以的类
List<Class<?>> allClass = getClasses(packageName);
if (allClass != null) {
returnClassList = new ArrayList<>();
for (Class classes : allClass) {
// 判断是否是同一个父类
if (c.isAssignableFrom(classes)) {
// 本身不加入进去
if (!c.equals(classes)) {
returnClassList.add(classes);
}
}
}
}
}
return returnClassList;
}
/*
* 取得某一类所在包的所有类名 不含迭代
*/
public static String[] getPackageAllClassName(String classLocation, String packageName) {
// 将packageName分解
String[] packagePathSplit = packageName.split("[.]");
String realClassLocation = classLocation;
int packageLength = packagePathSplit.length;
for (int i = 0; i < packageLength; i++) {
realClassLocation = realClassLocation + File.separator + packagePathSplit[i];
}
File packeageDir = new File(realClassLocation);
if (packeageDir.isDirectory()) {
String[] allClassName = packeageDir.list();
return allClassName;
}
return null;
}
/**
* 从包package中获取所有的Class
* 1.有的web server在部署运行时会解压jar包,因此class文件会在普通的文件目录下。
* 2.如果web server不解压jar包,则class文件会直接存在于Jar包中。
* 3.对于前者,只需定位到class文件所在目录,然后将class文件名读取出即可;
* 4.对于后者,则需先定位到jar包所在目录,然后使用JarInputStream读取Jar包,得到class类名。
* @param packageName
* @return
*/
public static List<Class<?>> getClasses(String packageName) {
// 第一个class类的集合
List<Class<?>> classes = new ArrayList<Class<?>>();
// 是否循环迭代
boolean recursive = true;
// 获取包的名字 并进行替换
String packageDirName = packageName.replace('.', '/');
// 定义一个枚举的集合 并进行循环来处理这个目录下的things
Enumeration<URL> dirs;
try {
dirs = Thread.currentThread().getContextClassLoader().getResources(packageDirName);
// 循环迭代下去
while (dirs.hasMoreElements()) {
// 获取下一个元素
URL url = dirs.nextElement();
// 得到协议的名称
String protocol = url.getProtocol();
// 如果是以文件的形式保存在服务器上
if ("file".equals(protocol)) {
// 获取包的物理路径
String filePath = URLDecoder.decode(url.getFile(), "UTF-8");
// 以文件的方式扫描整个包下的文件 并添加到集合中
findAndAddClassesInPackageByFile(packageName, filePath, recursive, classes);
} else if ("jar".equals(protocol)) {
// 如果是jar包文件
// 定义一个JarFile
JarFile jar;
try {
// 获取jar
jar = ((JarURLConnection) url.openConnection()).getJarFile();
// 从此jar包 得到一个枚举类
Enumeration<JarEntry> entries = jar.entries();
// 同样的进行循环迭代
while (entries.hasMoreElements()) {
// 获取jar里的一个实体 可以是目录 和一些jar包里的其他文件 如META-INF等文件
JarEntry entry = entries.nextElement();
String name = entry.getName();
// 如果是以/开头的
if (name.charAt(0) == '/') {
// 获取后面的字符串
name = name.substring(1);
}
// 如果前半部分和定义的包名相同
if (name.startsWith(packageDirName)) {
int idx = name.lastIndexOf('/');
// 如果以"/"结尾 是一个包
if (idx != -1) {
// 获取包名 把"/"替换成"."
packageName = name.substring(0, idx).replace('/', '.');
}
// 如果可以迭代下去 并且是一个包
if ((idx != -1) || recursive) {
// 如果是一个.class文件 而且不是目录
if (name.endsWith(".class") && !entry.isDirectory()) {
// 去掉后面的".class" 获取真正的类名
String className = name.substring(packageName.length() + 1, name.length() - 6);
try {
// 添加到classes
classes.add(Class.forName(packageName + '.' + className));
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
} catch (IOException e) {
e.printStackTrace();
}
return classes;
}
/**
* 以文件的形式来获取包下的所有Class
*
* @param packageName
* @param packagePath
* @param recursive
* @param classes
*/
public static void findAndAddClassesInPackageByFile(String packageName, String packagePath, final boolean recursive,
List<Class<?>> classes) {
// 获取此包的目录 建立一个File
File dir = new File(packagePath);
// 如果不存在或者 也不是目录就直接返回
if (!dir.exists() || !dir.isDirectory()) {
return;
}
// 如果存在 就获取包下的所有文件 包括目录
File[] dirfiles = dir.listFiles(new FileFilter() {
// 自定义过滤规则 如果可以循环(包含子目录) 或则是以.class结尾的文件(编译好的java类文件)
public boolean accept(File file) {
return (recursive && file.isDirectory()) || (file.getName().endsWith(".class"));
}
});
// 循环所有文件
for (File file : dirfiles) {
// 如果是目录 则继续扫描
if (file.isDirectory()) {
findAndAddClassesInPackageByFile(packageName + "." + file.getName(), file.getAbsolutePath(), recursive,
classes);
} else {
// 如果是java类文件 去掉后面的.class 只留下类名
String className = file.getName().substring(0, file.getName().length() - 6);
try {
// 添加到集合中去
classes.add(Class.forName(packageName + '.' + className));
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
}
}
|
[
"yuanshuaif@yonyou.com"
] |
yuanshuaif@yonyou.com
|
bc4c09a30ae697cd1b92f0e2e88ce5a838caaf4a
|
25f88faeabdcdd056c69d119a10e5834baf99259
|
/src/test/java/voxswirl/util/PreloadCodeGenerator.java
|
6e52ed08df89fd91652a1237ab151da4fe052779
|
[
"Apache-2.0"
] |
permissive
|
Eisenwave/vox-swirl
|
ecc6f13cddef5723a554ddbaabf11f39a8470ac1
|
d15a761966b39a9acb9865ada5b631015ed0747c
|
refs/heads/master
| 2022-11-27T23:49:21.835755
| 2020-08-08T06:10:13
| 2020-08-08T06:10:13
| 286,570,936
| 0
| 0
| null | 2020-08-10T20:20:32
| 2020-08-10T20:20:31
| null |
UTF-8
|
Java
| false
| false
| 3,802
|
java
|
package voxswirl.util;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
import com.badlogic.gdx.utils.TimeUtils;
import com.github.tommyettinger.anim8.PaletteReducer;
import voxswirl.visual.Coloring;
/**
* Generates preload codes as big Strings that get read into byte arrays.
* <br>
* Created by Tommy Ettinger on 1/21/2018. Wow, that's old...
*/
public class PreloadCodeGenerator extends ApplicationAdapter {
public static void main(String[] arg) {
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
config.setTitle("Preload Code Generator");
config.setWindowedMode(320, 320);
config.setIdleFPS(1);
config.setResizable(false);
new Lwjgl3Application(new PreloadCodeGenerator(), config);
}
public void create() {
generatePreloadCode(new PaletteReducer(Coloring.MANOS64).paletteMapping, "ManosPreload.txt");
generatePreloadCode(new PaletteReducer(Coloring.MANOSSUS256).paletteMapping, "ManossusPreload.txt");
Gdx.app.exit();
}
/**
* Given a byte array, this writes a file containing a code snippet that can be pasted into Java code as the preload
* data used by {@link PaletteReducer#exact(int[], byte[])}; this is almost never needed by external code. When
* using this for preload data, the byte array should be {@link PaletteReducer#paletteMapping}.
* @param data the bytes to use as preload data, usually {@link PaletteReducer#paletteMapping}
*/
public static void generatePreloadCode(final byte[] data) {
generatePreloadCode(data, "bytes_" + TimeUtils.millis() + ".txt");
}
/**
* Given a byte array, this appends to a file called {@code filename} containing a code snippet that can be pasted
* into Java code as the preload data used by {@link PaletteReducer#exact(int[], byte[])}; this is almost never
* needed by external code. When using this for preload data, the byte array should be
* {@link PaletteReducer#paletteMapping}.
* @param data the bytes to use as preload data, usually {@link PaletteReducer#paletteMapping}
* @param filename the name of the text file to append to
*/
public static void generatePreloadCode(final byte[] data, String filename){
StringBuilder sb = new StringBuilder(data.length + 400);
sb.append('"');
for (int i = 0; i < data.length;) {
for (int j = 0; j < 0x80 && i < data.length; j++) {
byte b = data[i++];
switch (b)
{
case '\t': sb.append("\\t");
break;
case '\b': sb.append("\\b");
break;
case '\n': sb.append("\\n");
break;
case '\r': sb.append("\\r");
break;
case '\f': sb.append("\\f");
break;
case '\"': sb.append("\\\"");
break;
case '\\': sb.append("\\\\");
break;
default:
if(Character.isISOControl(b))
sb.append(String.format("\\%03o", b));
else
sb.append((char) (b&0xFF));
break;
}
}
}
sb.append("\".getBytes(StandardCharsets.ISO_8859_1);\n");
Gdx.files.local(filename).writeString(sb.toString(), true, "ISO-8859-1");
System.out.println("Wrote code snippet to " + filename);
}
}
|
[
"tommy.ettinger@gmail.com"
] |
tommy.ettinger@gmail.com
|
9982ddec3281a5ffbb656fc646fe42eccd4197c0
|
1cabdaf318286a508da5d9d6385b322b5c353377
|
/src/main/java/dao/UserDaoJdbc.java
|
e3e4043b040a48a428a03ab75b8fd2ba710e9004
|
[] |
no_license
|
Lokie89/toby-spring
|
68e033fa3b8369b734af278ee4748d829d30462b
|
8a1a1f0a8144c57603339fa6789d653c03913198
|
refs/heads/master
| 2022-09-26T08:51:33.803367
| 2020-06-07T06:24:23
| 2020-06-07T06:24:23
| 259,182,349
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,623
|
java
|
package dao;
import domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.PreparedStatementCreator;
import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
@Repository
public class UserDaoJdbc implements UserDao {
@Autowired
private SqlService sqlService;
JdbcTemplate jdbcTemplate;
private RowMapper<User> userRowMapper =
new RowMapper<User>() {
@Override
public User mapRow(ResultSet rs, int rowNum) throws SQLException {
User user = new User();
user.setId(rs.getString("id"));
user.setName(rs.getString("name"));
user.setPassword(rs.getString("password"));
user.setLevel(Level.valueOf(rs.getInt("level")));
user.setLogin(rs.getInt("login"));
user.setRecommend(rs.getInt("recommend"));
user.setEmail(rs.getString("email"));
return user;
}
};
public UserDaoJdbc() {
}
@Autowired
public void setDataSource(DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
public void add(User user) {
this.jdbcTemplate.update(this.sqlService.getSql("userAdd"),
user.getId(), user.getName(), user.getPassword(), user.getLevel().intValue(), user.getLogin(), user.getRecommend(), user.getEmail());
}
public User get(String id) {
return this.jdbcTemplate.queryForObject(this.sqlService.getSql("userGet"),
new Object[]{id}, this.userRowMapper);
}
public void deleteAll() {
this.jdbcTemplate.update(
new PreparedStatementCreator() {
@Override
public PreparedStatement createPreparedStatement(Connection con) throws SQLException {
return con.prepareCall(sqlService.getSql("userDeleteAll"));
}
}
);
}
public int getCount() {
return this.jdbcTemplate.query(new PreparedStatementCreator() {
@Override
public PreparedStatement createPreparedStatement(Connection con) throws SQLException {
return con.prepareStatement(sqlService.getSql("userGetCount"));
}
}, new ResultSetExtractor<Integer>() {
@Override
public Integer extractData(ResultSet rs) throws SQLException, DataAccessException {
rs.next();
return rs.getInt(1);
}
});
// return this.jdbcTemplate.queryForObject("select count(*) from users", Integer.class);
}
public List<User> getAll() {
return this.jdbcTemplate.query(this.sqlService.getSql("userGetAll"), this.userRowMapper);
}
public void update(User user) {
this.jdbcTemplate.update(this.sqlService.getSql("userUpdate"),
user.getName(), user.getPassword(), user.getLevel().intValue(), user.getLogin(), user.getRecommend(), user.getEmail(),
user.getId()
);
}
}
|
[
"traeuman@gmail.com"
] |
traeuman@gmail.com
|
0f43f6e14f7fc68b43c77d5f86e26d39d55d747e
|
dc30d03453d6ded9e05825c77a1adda809e39ae9
|
/WEB-INF/classes/com/bemeal/web/cmm/Auth.java
|
4ed4070480776d19d644fd857cfe268ce19d4da0
|
[] |
no_license
|
kosoto/bemeal_final
|
e2acaf60fa1f5dda39152a96cafd6ee070799d20
|
a0aec9667a83b685ed496c24cb6b875e1714ccf1
|
refs/heads/master
| 2020-04-04T23:27:18.705696
| 2018-11-06T09:38:09
| 2018-11-06T09:38:09
| 156,359,441
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 354
|
java
|
package com.bemeal.web.cmm;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Retention(RUNTIME)
@Target(METHOD)
public @interface Auth {
public enum Role {USER,ADMIN}
public Role role() default Role.USER;
}
|
[
"kstad@naver.com"
] |
kstad@naver.com
|
2e468dc33e642794a638fb1a29d676580973d50d
|
e52f88dfe64b13bd9360b0f802183bcb379d3bc6
|
/web/src/main/java/org/adamalang/web/assets/cache/MemoryCacheAsset.java
|
e9b72a7091d28da5a5161c26d662445d586dcaf5
|
[
"MIT"
] |
permissive
|
mathgladiator/adama-lang
|
addfc85111fe329eb23942605457b77e4f59d5d2
|
a03326cc678aaac5f566606408a708b5f871553d
|
refs/heads/master
| 2023-09-01T02:35:07.985525
| 2023-08-31T23:47:07
| 2023-08-31T23:47:07
| 245,283,238
| 94
| 14
|
MIT
| 2023-09-10T18:12:37
| 2020-03-05T22:47:40
|
Java
|
UTF-8
|
Java
| false
| false
| 3,829
|
java
|
/*
* This file is subject to the terms and conditions outlined in the
* file 'LICENSE' (it's dual licensed) located in the root directory
* near the README.md which you should also read. For more information
* about the project which owns this file, see https://www.adama-platform.com/ .
*
* (c) 2021 - 2023 by Adama Platform Initiative, LLC
*/
package org.adamalang.web.assets.cache;
import org.adamalang.common.NamedRunnable;
import org.adamalang.common.SimpleExecutor;
import org.adamalang.runtime.natives.NtAsset;
import org.adamalang.web.assets.AssetStream;
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
/** A cache that is 100% in-memory */
public class MemoryCacheAsset implements CachedAsset {
private final NtAsset asset;
private final SimpleExecutor executor;
private ByteArrayOutputStream memory;
private boolean done;
private ArrayList<AssetStream> streams;
private Integer failed;
public MemoryCacheAsset(NtAsset asset, SimpleExecutor executor) {
this.asset = asset;
this.executor = executor;
this.memory = new ByteArrayOutputStream();
this.done = false;
this.streams = new ArrayList<>();
this.failed = null;
}
@Override
public SimpleExecutor executor() {
return executor;
}
@Override
public void evict() {
// no-op
}
@Override
public AssetStream attachWhileInExecutor(AssetStream attach) {
if (failed != null) {
attach.failure(failed);
return null;
}
attach.headers(asset.size, asset.contentType, asset.md5);
if (done) { // the cache item has been fed, so simply replay what was captured
byte[] body = memory.toByteArray();
attach.body(body, 0, body.length, done);
return null;
}
// otherwise, we need to wait for data...
if (streams.size() == 0) {
// this is the first attach call which is special; return the asset stream to pump both attach and late-joiners
streams.add(attach);
return new AssetStream() {
@Override
public void headers(long length, String contentType, String md5) {
// the headers were already transmitted
}
@Override
public void body(byte[] chunk, int offset, int length, boolean last) {
byte[] clone = Arrays.copyOfRange(chunk, offset, length); // TODO: this signature of byte[] chunk is... bad
// forward the body to all connected streams
executor.execute(new NamedRunnable("mc-body") {
@Override
public void execute() throws Exception {
// replicate the write to all attached streams
for (AssetStream existing : streams) {
existing.body(clone, 0, length, last);
}
// record the chunk to memory
memory.write(clone, 0, length);
// if this is the last chunk, then set the done flag and clean things up
if (last) {
done = true;
streams.clear();
}
}
});
}
@Override
public void failure(int code) {
executor.execute(new NamedRunnable("mc-failure") {
@Override
public void execute() throws Exception {
failed = code;
for (AssetStream existing : streams) {
existing.failure(code);
}
streams.clear();
}
});
}
};
} else {
// another stream has started pumping data, so we simply need to replay what has already been record
byte[] body = memory.toByteArray();
attach.body(body, 0, body.length, false);
streams.add(attach);
return null;
}
}
@Override
public long measure() {
return asset.size;
}
}
|
[
"48896921+mathgladiator@users.noreply.github.com"
] |
48896921+mathgladiator@users.noreply.github.com
|
bb8b929978962d6ed3f5c66d472dd0fe2a8ff559
|
b1f29387cadbc66efd9bf23670e5b41d23b03006
|
/lib-net/src/main/java/com/example/kson/lib_net/network/http/HttpRequest.java
|
1be92c13a152ebc31de128cfb766658cfaaffd17
|
[] |
no_license
|
KsonCode/ModuleDemo
|
367c39e3a3ec5fde164bccf11da147f43ba13e92
|
7eaa2f31034ec9a45696527c3e561edffe78cffe
|
refs/heads/master
| 2020-04-03T14:42:45.307670
| 2019-08-05T09:25:57
| 2019-08-05T09:25:57
| 155,332,112
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 672
|
java
|
package com.example.kson.lib_net.network.http;
import java.util.HashMap;
import java.util.List;
import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.Response;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Url;
public interface HttpRequest {
void post(String url, HashMap<String, Object> params, ICallback callback);
void get(String url, HashMap<String, Object> params, ICallback callback);
void uploadFile(@Url String fileUrl, @PartMap HashMap<String,String> content,
@Part() List<MultipartBody.Part> parts,ICallback callback);
}
|
[
"19655910@qq.com"
] |
19655910@qq.com
|
319612a98fddee779b8472be0f86648a5d80aa38
|
17abe434c2bc8995fbc73f7f81217e49a0283c2e
|
/src/main/java/com/google/gwt/cell/client/AbstractEditableCell.java
|
66a4bcb305c6fbc2b811794c0c783d31c8714094
|
[
"Apache-2.0"
] |
permissive
|
aliz-ai/gwt-mock-2.5.1
|
6d7d41c9f29d3110eef5c74b23a3d63b3af5e71b
|
af5495454005f2bba630b8d869fde75930d4ec2e
|
refs/heads/master
| 2022-12-31T06:00:31.983924
| 2020-07-13T12:06:47
| 2020-07-13T12:06:47
| 55,702,877
| 1
| 1
|
NOASSERTION
| 2020-10-13T09:09:21
| 2016-04-07T14:48:45
|
Java
|
UTF-8
|
Java
| false
| false
| 3,456
|
java
|
/*
* Copyright 2010 Google 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.google.gwt.cell.client;
import com.google.gwt.cell.client.Cell.Context;
import com.google.gwt.dom.client.Element;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* A default implementation of the {@link Cell} interface used for editable
* cells that need to save view data state for specific values.
*
* <p>
* <h3>Example</h3>
* {@example com.google.gwt.examples.cell.EditableCellExample}
* </p>
*
* @param <C> the type that this Cell represents
* @param <V> the data type of the view data state
*/
public abstract class AbstractEditableCell<C, V> extends AbstractCell<C> {
/**
* The map of value keys to the associated view data.
*/
private final Map<Object, V> viewDataMap = new HashMap<Object, V>();
/**
* Construct a new {@link AbstractEditableCell} with the specified consumed
* events.
*
* @param consumedEvents the events that this cell consumes
*/
public AbstractEditableCell(String... consumedEvents) {
super(consumedEvents);
}
/**
* Construct a new {@link AbstractEditableCell} with the specified consumed
* events.
*
* @param consumedEvents the events that this cell consumes
*/
public AbstractEditableCell(Set<String> consumedEvents) {
super(consumedEvents);
}
/**
* Clear the view data associated with the specified key.
*
* @param key the key identifying the row value
*/
public void clearViewData(Object key) {
if (key != null) {
viewDataMap.remove(key);
}
}
/**
* Get the view data associated with the specified key.
*
* @param key the key identifying the row object
* @return the view data, or null if none has been set
* @see #setViewData(Object, Object)
*/
public V getViewData(Object key) {
return (key == null) ? null : viewDataMap.get(key);
}
/**
* Returns true if the cell is currently editing the data identified by the
* given element and key. While a cell is editing, widgets containing the cell
* may choose to pass keystrokes directly to the cell rather than using them
* for navigation purposes.
*
* @param context the {@link Context} of the cell
* @param parent the parent Element
* @param value the value associated with the cell
* @return true if the cell is in edit mode
*/
@Override
public abstract boolean isEditing(Context context, Element parent, C value);
/**
* Associate view data with the specified key. If the key is null, the view
* data will be ignored.
*
* @param key the key of the view data
* @param viewData the view data to associate
* @see #getViewData(Object)
*/
public void setViewData(Object key, V viewData) {
if (key == null) {
return;
}
if (viewData == null) {
clearViewData(key);
} else {
viewDataMap.put(key, viewData);
}
}
}
|
[
"gabor.farkas@doctusoft.com"
] |
gabor.farkas@doctusoft.com
|
aec73320450a3223237641b3939f41c7978815af
|
57165e77a7403e1fadc98b05a12bf7013ceb196e
|
/src/main/java/com/lympid/core/behaviorstatemachines/builder/CompositeStateEntry.java
|
d06519d02cd568bf42258c54a7fd4b4afc785c73
|
[
"Apache-2.0"
] |
permissive
|
lympid/lympid-core
|
9486ea2e9834eefe5eb38257d9d808eefa078173
|
3c923eb20ff155fafeb35f7bf0b7cd6a26b38f0f
|
refs/heads/master
| 2021-01-17T13:46:07.987458
| 2018-01-09T17:15:11
| 2018-01-09T17:15:11
| 30,514,711
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,989
|
java
|
/*
* Copyright 2015 Fabien Renaud.
*
* 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.lympid.core.behaviorstatemachines.builder;
import com.lympid.core.behaviorstatemachines.StateBehavior;
/**
* Provides an interface for building:
* <ul>
* <li>entry behaviors</li>
* <li>exit behaviors</li>
* <li>an activity behavior</li>
* <li>local transitions</li>
* <li>internal transitions</li>
* <li>external transitions</li>
* </ul>
* for a composite or orthogonal state.
*
* @param <V> A {@link CompositeStateBuilder} or {@link OrthogonalStateBuilder}.
* @param <C> Type of the state machine context.
*
* @see CompositeStateExit
* @author Fabien Renaud
*/
public interface CompositeStateEntry<V extends StateBuilder<?, C>, C> extends CompositeStateExit<V, C> {
/**
* Adds an entry behavior to the composite/orthogonal state.
*
* @param entry The entry behavior.
* @return An interface to add more entry behaviors to the
* composite/orthogonal state.
*/
CompositeStateEntry<V, C> entry(StateBehavior<C> entry);
/**
* Adds an entry behavior to the composite/orthogonal state.
*
* The instance of the entry behavior is provided by the
* {@link BehaviorFactory}.
*
* @param entry The {@code StateBehavior} class of the entry behavior.
* @return An interface to add more entry behaviors to the
* composite/orthogonal state.
*/
CompositeStateEntry<V, C> entry(Class<? extends StateBehavior<C>> entry);
}
|
[
"fabienrenaud.fr@gmail.com"
] |
fabienrenaud.fr@gmail.com
|
3880b519222f018539d74cd96b814a28f3e69f6d
|
b7d66d3b161bbde4d268e24240909ab6224ac012
|
/messaging/src/main/java/org/cloudiator/messaging/services/MatchmakingServiceImpl.java
|
6b7e9fecafd242f4858d57ebb0541ff4bb38b970
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
cloudiator/common
|
ce6e9c5a3b4dae9982c8dc78d37390812a9c6202
|
680be60f4924c51c93ae66c8f405517f52fe6f62
|
refs/heads/master
| 2021-06-30T00:31:00.217663
| 2020-01-13T09:33:58
| 2020-01-13T09:33:58
| 40,171,079
| 0
| 3
|
Apache-2.0
| 2020-02-25T14:09:10
| 2015-08-04T07:54:42
|
Java
|
UTF-8
|
Java
| false
| false
| 2,417
|
java
|
package org.cloudiator.messaging.services;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.inject.Inject;
import javax.inject.Named;
import org.cloudiator.messages.entities.Matchmaking.MatchmakingRequest;
import org.cloudiator.messages.entities.Matchmaking.MatchmakingResponse;
import org.cloudiator.messages.entities.Matchmaking.NodeCandidateRequestMessage;
import org.cloudiator.messages.entities.Matchmaking.NodeCandidateRequestResponse;
import org.cloudiator.messages.entities.Matchmaking.SolutionRequest;
import org.cloudiator.messaging.MessageInterface;
import org.cloudiator.messaging.ResponseCallback;
import org.cloudiator.messaging.ResponseException;
public class MatchmakingServiceImpl implements MatchmakingService {
private final MessageInterface messageInterface;
@Inject(optional = true)
@Named("responseTimeout")
private long timeout = 20000;
@Inject
public MatchmakingServiceImpl(MessageInterface messageInterface) {
checkNotNull(messageInterface, "messageInterface is null");
this.messageInterface = messageInterface;
}
@Override
public NodeCandidateRequestResponse requestNodes(
NodeCandidateRequestMessage nodeCandidateRequestMessage) throws ResponseException {
checkNotNull(nodeCandidateRequestMessage, "nodeCandidateRequestMessage is null");
return messageInterface
.call(nodeCandidateRequestMessage, NodeCandidateRequestResponse.class, timeout);
}
@Override
public void requestNodesAsync(NodeCandidateRequestMessage nodeCandidateRequestMessage,
ResponseCallback<NodeCandidateRequestResponse> callback) {
messageInterface
.callAsync(nodeCandidateRequestMessage, NodeCandidateRequestResponse.class, callback);
}
@Override
public MatchmakingResponse requestMatch(MatchmakingRequest matchmakingRequest)
throws ResponseException {
return messageInterface.call(matchmakingRequest, MatchmakingResponse.class);
}
@Override
public void requestMatchAsync(MatchmakingRequest matchmakingRequest,
ResponseCallback<MatchmakingResponse> response) {
messageInterface.callAsync(matchmakingRequest, MatchmakingResponse.class, response);
}
@Override
public MatchmakingResponse retrieveSolution(SolutionRequest solutionRequest)
throws ResponseException {
return messageInterface.call(solutionRequest, MatchmakingResponse.class, timeout);
}
}
|
[
"daniel.baur@uni-ulm.de"
] |
daniel.baur@uni-ulm.de
|
02957c7b56fbf0e078438d1987ccabc3e13e60bd
|
87873856a23cd5ebdcd227ef39386fb33f5d6b13
|
/java-algorithm/src/main/java/io/jsd/training/udemy/balazs/problems/backtracking/hamiltoniancycle/App.java
|
74cd69bad353b019d0d2d7a19bb6fb2b248b7932
|
[] |
no_license
|
jsdumas/java-training
|
da204384223c3e7871ccbb8f4a73996ae55536f3
|
8df1da57ea7a5dd596fea9b70c6cd663534d9d18
|
refs/heads/master
| 2022-06-28T16:08:47.529631
| 2019-06-06T07:49:30
| 2019-06-06T07:49:30
| 113,677,424
| 0
| 0
| null | 2022-06-20T23:48:24
| 2017-12-09T14:55:56
|
Java
|
UTF-8
|
Java
| false
| false
| 517
|
java
|
package io.jsd.training.udemy.balazs.problems.backtracking.hamiltoniancycle;
class App {
public static void main(String args[]) {
HamiltonianAlgorithm hamiltonian = new HamiltonianAlgorithm();
/**
(0)
|
|
|
(1)-------(2) */
int adjacencyMatrix[][] = {{0, 1, 0},
{1, 0, 1},
{0, 1, 0}
};
hamiltonian.hamiltonianCycle(adjacencyMatrix);
}
}
|
[
"jsdumas@free.fr"
] |
jsdumas@free.fr
|
69c729e30f3bbe27791dd606f8acaa9badd61e6d
|
d270f397f3c674199d169f8adf47b4140984cf2e
|
/src/main/java/org/jtester/module/database/environment/typesmap/OracleTypeMap.java
|
ef983658b6539cba333f8a1ccdcc5418d60e7a9e
|
[] |
no_license
|
colddew/jtester
|
1f6a3119f2696e9142251a62ee0bd8f75277e91d
|
6979128c43d6dcb1c9dc71aac9af97a0d822a6ae
|
refs/heads/master
| 2021-01-19T05:12:44.180386
| 2019-05-06T14:27:30
| 2019-05-06T14:27:30
| 23,995,747
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,504
|
java
|
package org.jtester.module.database.environment.typesmap;
import java.io.InputStream;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
import oracle.jdbc.driver.OracleTypes;
import oracle.sql.BLOB;
import oracle.sql.CLOB;
import oracle.sql.TIMESTAMP;
import org.jtester.module.database.environment.typesmap.TypeMap.JavaSQLType;
import org.jtester.utility.DateUtil;
@SuppressWarnings({ "rawtypes", "serial" })
public class OracleTypeMap extends AbstractTypeMap {
private static TypeMap maps = new TypeMap() {
private static final long serialVersionUID = 4142728734422012716L;
{
this.put("VARCHAR", String.class, Types.VARCHAR);
this.put("VARCHAR2", String.class, Types.VARCHAR);
this.put("NVARCHAR2", String.class, Types.VARCHAR);
this.put("CHAR", String.class, Types.VARCHAR);
this.put("NCHAR", String.class, Types.VARCHAR);
this.put("CLOB", CLOB.class, Types.CLOB);
this.put("BLOB", BLOB.class, Types.BLOB);
this.put("RAW", byte[].class, Types.BINARY);
this.put("ROWID", String.class, Types.VARCHAR);
this.put("BINARY_INTEGER", BigDecimal.class, Types.NUMERIC);
this.put("NUMBER", BigDecimal.class, Types.NUMERIC);
this.put("FLOAT", BigDecimal.class, Types.NUMERIC);
this.put("DATE", Timestamp.class, Types.TIMESTAMP);
this.put("TIMESTAMP", Timestamp.class, Types.TIMESTAMP);
this.put("REF", ResultSet.class, OracleTypes.CURSOR);
//
this.put("LONGVARCHAR", String.class, Types.VARCHAR);
this.put("NUMERIC", BigDecimal.class, Types.DECIMAL);
this.put("DECIMAL", BigDecimal.class, Types.DECIMAL);
this.put("BIT", Boolean.class, Types.BOOLEAN);
this.put("TINYINT", Byte.class, Types.BIT);
this.put("SMALLINT", Short.class, Types.SMALLINT);
}
};
public static Class getJavaType(String type) {
JavaSQLType map = maps.get(type);
return map == null ? null : map.getJavaType();
}
public static Integer getSQLType(String type) {
JavaSQLType map = maps.get(type);
return map == null ? null : map.getSqlType();
}
public static Map<String, Class> types = new HashMap<String, Class>() {
{
this.put("oracle.sql.CLOB", oracle.sql.CLOB.class);
this.put("oracle.sql.BLOB", oracle.sql.BLOB.class);
this.put("oracle.sql.TIMESTAMP", oracle.sql.TIMESTAMP.class);
}
};
/**
* 将string对象转换为java对象
*
* @param input
* @param javaType
* @return
*/
public Object toObjectByType(String input, Class javaType) {
if (javaType == TIMESTAMP.class) {
long time = DateUtil.parse(input).getTime();
Timestamp stamp = new Timestamp(time);
return new TIMESTAMP(stamp);
}
if (javaType == oracle.sql.CLOB.class || javaType == oracle.sql.BLOB.class) {
InputStream is = getStream(input);
return is;
}
return input;
}
@Override
protected Class getJavaTypeByName(String typeName) {
Class type = types.get(typeName);
return type == null ? String.class : type;
}
@Override
protected Object getDefaultValue(Class javaType) {
if (javaType == TIMESTAMP.class) {
java.util.Date now = new java.util.Date();
Timestamp stamp = new Timestamp(now.getTime());
return new TIMESTAMP(stamp);
}
if (javaType == oracle.sql.CLOB.class || javaType == oracle.sql.BLOB.class) {
InputStream is = getStream("stream");
return is;
}
return null;
}
}
|
[
"88028842@qq.com"
] |
88028842@qq.com
|
4e6bac8d461c597d08358a7169e651884fd09634
|
ee976027fa60f8a0b60d1877c552c2356acc241d
|
/ursa/src/test/java/jssi/ursa/pair/GroupOrderElementTest.java
|
6204fd70fee7f16d50a4cf76ed09252ed127c5de
|
[
"Apache-2.0"
] |
permissive
|
UBICUA-JSSI/jssi.didcomm
|
654a6239b0fb90abba2854421fd6985b482918e3
|
e12a465dc2814ea3f737a224593fa3c394cf9769
|
refs/heads/main
| 2023-05-31T23:31:00.373503
| 2021-06-13T08:20:23
| 2021-06-13T08:20:23
| 365,575,043
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,718
|
java
|
/*
* Copyright 2013 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 jssi.ursa.pair;
import org.junit.jupiter.api.Test;
import jssi.ursa.util.Bytes;
import static org.junit.jupiter.api.Assertions.*;
class GroupOrderElementTest {
@Test
void fromBytes() throws CryptoException {
byte[] vec = new byte[]{
(byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
(byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
(byte) 116, (byte) 221, (byte) 243, (byte) 243, (byte) 0, (byte) 77, (byte) 170, (byte) 65,
(byte) 179, (byte) 245, (byte) 119, (byte) 182, (byte) 251, (byte) 185, (byte) 78, (byte) 98};
GroupOrderElement bytes = GroupOrderElement.fromBytes(vec);
byte[] result = bytes.toBytes();
assertArrayEquals(vec, result);
}
@Test
void toBytes() throws CryptoException {
GroupOrderElement goe = new GroupOrderElement();
byte[] bytes = goe.toBytes();
byte[] result = GroupOrderElement.fromHex(Bytes.toHex(bytes)).toBytes();
assertArrayEquals(bytes, result);
}
@Test
void toHex(){
String data = "9A7934671787E7 B44902FD431283 E541AB2729B4F7 E4BDDF7F08FE77 19ADFD0";
try {
GroupOrderElement goe = GroupOrderElement.fromHex(data.split(" "));
assertEquals(goe.toHex(), data);
assertEquals(goe.toBytes().length, GroupOrderElement.BYTES_REPR_SIZE);
} catch (CryptoException e){
assertTrue(false, e.getMessage());
}
}
@Test
void inverse() throws CryptoException {
GroupOrderElement goe = new GroupOrderElement();
GroupOrderElement inverse = goe.inverse();
GroupOrderElement result = inverse.inverse();
assertArrayEquals(goe.toBytes(), result.toBytes());
}
@Test
void modneg() {
GroupOrderElement goe = new GroupOrderElement();
GroupOrderElement modneg = goe.modneg();
GroupOrderElement result = modneg.modneg();
assertArrayEquals(goe.toBytes(), result.toBytes());
}
}
|
[
"vladimir.perez.gonzalez@gmail.com"
] |
vladimir.perez.gonzalez@gmail.com
|
a9fcd010ed9a7474dac2ce1f004f9276b709f34a
|
ec991b664cd4168bdcd595c59f00aa96e39825b3
|
/core/src/main/java/com/sdu/spark/shuffle/sort/UnsafeShuffleWriter.java
|
8f2906dd88d0e0c1bfe667581a3018bab93c99a1
|
[] |
no_license
|
sjl421/spark-java
|
bb476cd4aa8d13c39dc1db2ffa25089a6a5c09a6
|
7558c3ef26976f3553253a1b9451bfc228703dce
|
refs/heads/master
| 2021-04-06T08:57:30.901216
| 2017-11-23T11:29:37
| 2017-11-23T11:29:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,120
|
java
|
package com.sdu.spark.shuffle.sort;
import com.sdu.spark.TaskContext;
import com.sdu.spark.memory.TaskMemoryManager;
import com.sdu.spark.rpc.SparkConf;
import com.sdu.spark.scheduler.MapStatus;
import com.sdu.spark.shuffle.IndexShuffleBlockResolver;
import com.sdu.spark.shuffle.SerializedShuffleHandle;
import com.sdu.spark.shuffle.ShuffleWriter;
import com.sdu.spark.storage.BlockManager;
import com.sdu.spark.utils.scala.Product2;
import java.io.IOException;
import java.util.Iterator;
/**
* TODO: 待开发
*
* @author hanhan.zhang
* */
public class UnsafeShuffleWriter<K, V> implements ShuffleWriter<K, V> {
public UnsafeShuffleWriter(
BlockManager blockManager,
IndexShuffleBlockResolver shuffleBlockResolver,
TaskMemoryManager memoryManager,
SerializedShuffleHandle<K, V> handle,
int mapId,
TaskContext taskContext,
SparkConf sparkConf) {
}
@Override
public void write(Iterator<Product2<K, V>> records) {
}
@Override
public MapStatus stop(boolean success) {
return null;
}
}
|
[
"zhanghan13@meituan.com"
] |
zhanghan13@meituan.com
|
34c6e49508e720bdabdbbc0caf6009f95e8824f5
|
440da98f89c06ff2830a372fcb703fa1cba788d6
|
/biz.webgate.domino.mywebgate.scrum/Code/Java/biz/webgate/xpages/dss/binding/StringArrayBinder.java
|
c41500f5ffd5362eaf921ef871a87e81af854427
|
[
"CC-BY-3.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
erichilarysmithsr/myWebGate-Scrum
|
c94265bd44bdecc4a0df96a37c397d86ee12f97b
|
e061d6c9f7d845eb48b9d0f5630a5eb5604a0b2a
|
refs/heads/master
| 2021-01-16T22:36:20.343506
| 2013-09-02T13:19:53
| 2013-09-02T13:19:53
| null | 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 3,133
|
java
|
/*
* © Copyright WebGate Consulting AG, 2012
*
* 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 biz.webgate.xpages.dss.binding;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Vector;
import lotus.domino.Document;
import lotus.domino.Item;
import biz.webgate.xpages.dss.binding.util.NamesProcessor;
public class StringArrayBinder implements IBinder<String[]> {
private static StringArrayBinder m_Binder;
@SuppressWarnings("unchecked")
public void processDomino2Java(Document docCurrent, Object objCurrent,
String strNotesField, String strJavaField, HashMap<String, Object> addValues) {
try {
Method mt = objCurrent.getClass().getMethod("set" + strJavaField,
new Class[] { String[].class });
Vector vecResult = docCurrent.getItemValue(strNotesField);
//String[] strValues = (String[]) vecResult.toArray(new String[vecResult.size()]);
String[] strValues = new String[vecResult.size()];
int i = 0;
for(Object strValue: vecResult){
strValues[i] = NamesProcessor.getInstance().getPerson(addValues, strValue.toString());
i += 1;
}
mt.invoke(objCurrent, new Object[] { strValues });
} catch (Exception e) {
e.printStackTrace();
}
}
public void processJava2Domino(Document docCurrent, Object objCurrent,
String strNotesField, String strJavaField, HashMap<String, Object> addValues) {
try {
String[] strValues = getValue(objCurrent, strJavaField);
Vector<String> vecValues = new Vector<String>(strValues.length);
boolean isNamesValue = false;
if(addValues != null && addValues.size() > 0){
docCurrent.replaceItemValue(strNotesField,"");
Item iNotesField = docCurrent.getFirstItem(strNotesField);
isNamesValue = NamesProcessor.getInstance().setNamesField(addValues, iNotesField);
}
for (String strVal : strValues) {
vecValues.addElement(NamesProcessor.getInstance().setPerson(strVal, isNamesValue));
}
docCurrent.replaceItemValue(strNotesField, vecValues);
} catch (Exception e) {
e.printStackTrace();
}
}
public static IBinder<String[]> getInstance() {
if (m_Binder == null) {
m_Binder = new StringArrayBinder();
}
return m_Binder;
}
private StringArrayBinder(){
}
public String[] getValue(Object objCurrent, String strJavaField) {
try {
Method mt = objCurrent.getClass().getMethod("get" + strJavaField);
return (String[]) mt.invoke(objCurrent);
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}
}
|
[
"christian.guedemann@webgate.biz"
] |
christian.guedemann@webgate.biz
|
162a61ad6ce6f7e019b06c3f203453706e7b4670
|
3de66036569aa8389333a80371ca98d18df1ef43
|
/core/src/main/java/eu/javaspecialists/books/dynamicproxies/util/chain/UnhandledMethodException.java
|
7e49d96af53845af003fec6fb4c3b85d8e9beb93
|
[
"Apache-2.0"
] |
permissive
|
sbordet/dynamic-proxies-samples
|
0472948bee21d7c258865e99995ddd5f5e77a4d4
|
47a9a71d5002a0dc0beef8d3546be6b74ba68311
|
refs/heads/master
| 2021-01-26T03:05:14.063339
| 2020-02-26T08:48:23
| 2020-02-26T08:48:23
| 243,283,883
| 1
| 0
|
Apache-2.0
| 2020-02-26T14:34:09
| 2020-02-26T14:34:08
| null |
UTF-8
|
Java
| false
| false
| 1,249
|
java
|
/*
* Copyright (C) 2020 Heinz Max Kabutz
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Heinz Max Kabutz
* 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 eu.javaspecialists.books.dynamicproxies.util.chain;
import java.lang.reflect.*;
import java.util.*;
// tag::listing[]
public class UnhandledMethodException
extends IllegalArgumentException {
private final Collection<Method> unhandled;
UnhandledMethodException(Collection<Method> unhandled) {
super("Unhandled methods: " + unhandled);
this.unhandled = List.copyOf(unhandled);
}
public Collection<Method> getUnhandled() {
return unhandled;
}
}
// end::listing[]
|
[
"heinz@javaspecialists.eu"
] |
heinz@javaspecialists.eu
|
4ace57e7c452af584d5b613450fed935f8ae1618
|
c5b99712271f56dda907991bc0d6ba846ee01ac7
|
/app/src/main/java/com/yumao/yumaosmart/utils/KeyboardUtils.java
|
b09508489eebe9a68e0fc95c2bd89459d301a111
|
[] |
no_license
|
tome34/YuMaoSmart
|
1c0c046e07a3d6bd7561b93c6f427094e240aff6
|
385f3f851b2bc619e2e895aa52760c6f8e1ca382
|
refs/heads/master
| 2020-11-30T01:46:05.107355
| 2017-07-29T03:06:34
| 2017-07-29T03:06:34
| 95,624,072
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,804
|
java
|
package com.yumao.yumaosmart.utils;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
/**
* 软键盘的工具类
*/
public final class KeyboardUtils {
private KeyboardUtils() {
throw new UnsupportedOperationException("u can't instantiate me...");
}
/*
避免输入法面板遮挡
<p>在manifest.xml中activity中设置</p>
<p>android:windowSoftInputMode="adjustPan"</p>
*/
/**
* 动态隐藏软键盘
*
* @param activity activity
*/
public static void hideSoftInput(Activity activity) {
View view = activity.getCurrentFocus();
if (view == null) view = new View(activity);
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);
if (imm == null) return;
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
/**
* 动态隐藏软键盘
*
* @param context 上下文
* @param view 视图
*/
public static void hideSoftInput(Context context, View view) {
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm == null) return;
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
/**
* 点击屏幕空白区域隐藏软键盘
* <p>根据EditText所在坐标和用户点击的坐标相对比,来判断是否隐藏键盘</p>
* <p>需重写dispatchTouchEvent</p>
* <p>参照以下注释代码</p>
*/
public static void clickBlankArea2HideSoftInput() {
Log.d("tips", "U should copy the following code.");
/*
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
View v = getCurrentFocus();
if (isShouldHideKeyboard(v, ev)) {
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
}
}
return super.dispatchTouchEvent(ev);
}
// 根据EditText所在坐标和用户点击的坐标相对比,来判断是否隐藏键盘
private boolean isShouldHideKeyboard(View v, MotionEvent event) {
if (v != null && (v instanceof EditText)) {
int[] l = {0, 0};
v.getLocationInWindow(l);
int left = l[0],
top = l[1],
bottom = top + v.getHeight(),
right = left + v.getWidth();
return !(event.getX() > left && event.getX() < right
&& event.getY() > top && event.getY() < bottom);
}
return false;
}
*/
}
/**
* 动态显示软键盘
*
* @param edit 输入框
*/
public static void showSoftInput(EditText edit, Context context) {
edit.setFocusable(true);
edit.setFocusableInTouchMode(true);
edit.requestFocus();
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm == null) return;
imm.showSoftInput(edit, 0);
}
/**
* 切换键盘显示与否状态
*/
public static void toggleSoftInput(Context context) {
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm == null) return;
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
}
}
|
[
"wytome@163.com"
] |
wytome@163.com
|
7a89797eee4ba7ccef4ae242d22ecf7ad7035617
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_0f61f50a8ce8b7c0faedd909fff16a9bf78bc97e/World/2_0f61f50a8ce8b7c0faedd909fff16a9bf78bc97e_World_t.java
|
76c4adec8a672f9d4b6fab26e86cc47ea5361aaa
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,187
|
java
|
package objects;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.Vector;
import util.annotations.Column;
import util.annotations.Row;
import util.annotations.StructurePattern;
@StructurePattern("Bean Pattern")
public class World {
private Player player;
private ItemTab itemTab;
private SceneTab sceneTab;
private EventTab eventTab;
private GameInfoTab gameInfoTab;
// private Vector<Event> events;
private Vector<Ctrl> ctrls;
private Translator translator = new Translator();
public World(){
player = new Player();
itemTab = new ItemTab();
sceneTab = new SceneTab();
eventTab = new EventTab();
gameInfoTab = new GameInfoTab();
// events = new Vector<Event>();
ctrls = new Vector<Ctrl>();
}
// public Player getPlayer() {
// return player;
// }
@Row(0) @Column(0)
public ItemTab getItem(){
return itemTab;
}
@Row(0) @Column(1)
public SceneTab getScene(){
return sceneTab;
}
@Row(0) @Column(2)
public EventTab getEvent(){
return eventTab;
}
public GameInfoTab getGameInfo(){
return gameInfoTab;
}
// @Row(3) @Column(0)
// public Vector<Event> getEvents() {
// return events;
// }
//
// public void addEvent(Event event){
// //Check to make sure world does not already contain the event
// if(!events.contains(event)){
// events.add(event);
// }
// else
// System.out.println("World already contains "+event.getId());
// }
//
// public void removeEvent(Event event){
// int i=0;
// //Search for first occurrence of "event" and removes it from vector. We are guaranteed a single occurrence of
// //an event by addEvent(Event)
// while(!events.get(i).getId().equalsIgnoreCase(event.getId())){
// i++;
// if(i==events.size()){
// System.out.println("Event "+event.getId()+" was not found.");
// return;
// }
// }
// events.remove(event);
// }
public void translate() throws FileNotFoundException{
File file = new File("world.json");
PrintWriter writer = new PrintWriter(file);
translator.initialize(writer);
Iterator<Item> itemItr = itemTab.getItems().iterator();
if(itemItr.hasNext()){
writer.printf(",\r\n");
}
while(itemItr.hasNext()){
translator.itemTranslate(writer, itemItr.next());
if(itemItr.hasNext()){
writer.printf(",\r\n");
}
}
Iterator<Scene> sceneItr = sceneTab.getScenes().iterator();
if(sceneItr.hasNext()){
writer.printf(",\r\n");
}
while(sceneItr.hasNext()){
translator.sceneTranslate(writer, sceneItr.next());
if(sceneItr.hasNext()){
writer.printf(",\r\n");
}
}
Iterator<Event> eventItr = eventTab.getEvents().iterator();
if(eventItr.hasNext()){
writer.printf(",\r\n");
}
while(eventItr.hasNext()){
translator.eventTranslate(writer, eventItr.next());
if(eventItr.hasNext()){
writer.printf(",\r\n");
}
}
writer.printf("\r\n]");
writer.close();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
046e22838558ab50734f08d866bd8d26943bf629
|
c64320897222d4036306614f354fd92831c45f88
|
/erui-parent/erui-report/src/main/java/com/erui/report/model/MarketerCount.java
|
e7b4e4b061701b045030f92b9c5f9fce40c138bc
|
[] |
no_license
|
codeherofromchina/common
|
71559bcf0b0f9f2454e52d47c4603d6ef418d648
|
b8b028b22687add2952184c87b9c87709ecfa8ee
|
refs/heads/prepare
| 2022-12-25T06:14:27.124338
| 2019-07-03T01:52:22
| 2019-07-03T01:52:22
| 191,476,465
| 0
| 3
| null | 2022-12-16T06:44:32
| 2019-06-12T01:40:17
|
Java
|
UTF-8
|
Java
| false
| false
| 2,490
|
java
|
package com.erui.report.model;
import java.math.BigDecimal;
import java.util.Date;
public class MarketerCount {
private Long id;
private Date createTime;
private String area;
private String country;
private String marketer;
private Integer inquiryCount;
private Integer quoteCount;
private Integer bargainCount;
private BigDecimal bargainAmount;
private BigDecimal inquiryAmount;
private Integer newMemberCount;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area == null ? null : area.trim();
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country == null ? null : country.trim();
}
public String getMarketer() {
return marketer;
}
public void setMarketer(String marketer) {
this.marketer = marketer == null ? null : marketer.trim();
}
public Integer getInquiryCount() {
return inquiryCount;
}
public void setInquiryCount(Integer inquiryCount) {
this.inquiryCount = inquiryCount;
}
public Integer getQuoteCount() {
return quoteCount;
}
public void setQuoteCount(Integer quoteCount) {
this.quoteCount = quoteCount;
}
public Integer getBargainCount() {
return bargainCount;
}
public void setBargainCount(Integer bargainCount) {
this.bargainCount = bargainCount;
}
public BigDecimal getBargainAmount() {
return bargainAmount;
}
public void setBargainAmount(BigDecimal bargainAmount) {
this.bargainAmount = bargainAmount;
}
public BigDecimal getInquiryAmount() {
return inquiryAmount;
}
public void setInquiryAmount(BigDecimal inquiryAmount) {
this.inquiryAmount = inquiryAmount;
}
public Integer getNewMemberCount() {
return newMemberCount;
}
public void setNewMemberCount(Integer newMemberCount) {
this.newMemberCount = newMemberCount;
}
}
|
[
"wangxiaodan@sheyuan.com"
] |
wangxiaodan@sheyuan.com
|
096c840ef3d99c5445dae0b5f0b78d4c77ef007b
|
a4cb372ced240bf1cf0a9d123bdd4a805ff05df6
|
/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizersTests.java
|
823b286e9efee764c2399f8b64100c00bf2075a5
|
[] |
no_license
|
ZhaoBinxian/spring-boot-maven-ben
|
c7ea6a431c3206959009ff5344547436e98d75ca
|
ebd43548bae1e35fff174c316ad154cd0e5defb3
|
refs/heads/master
| 2023-07-18T12:53:49.028864
| 2021-09-07T04:55:54
| 2021-09-07T04:55:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,299
|
java
|
/*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://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.springframework.boot.autoconfigure.cache;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.cache.CacheManager;
import org.springframework.cache.caffeine.CaffeineCacheManager;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
/**
* @author Stephane Nicoll
*/
class CacheManagerCustomizersTests {
@Test
void customizeWithNullCustomizersShouldDoNothing() {
new CacheManagerCustomizers(null).customize(mock(CacheManager.class));
}
@Test
void customizeSimpleCacheManager() {
CacheManagerCustomizers customizers = new CacheManagerCustomizers(
Collections.singletonList(new CacheNamesCacheManagerCustomizer()));
ConcurrentMapCacheManager cacheManager = new ConcurrentMapCacheManager();
customizers.customize(cacheManager);
assertThat(cacheManager.getCacheNames()).containsOnly("one", "two");
}
@Test
void customizeShouldCheckGeneric() {
List<TestCustomizer<?>> list = new ArrayList<>();
list.add(new TestCustomizer<>());
list.add(new TestConcurrentMapCacheManagerCustomizer());
CacheManagerCustomizers customizers = new CacheManagerCustomizers(list);
customizers.customize(mock(CacheManager.class));
assertThat(list.get(0).getCount()).isEqualTo(1);
assertThat(list.get(1).getCount()).isEqualTo(0);
customizers.customize(mock(ConcurrentMapCacheManager.class));
assertThat(list.get(0).getCount()).isEqualTo(2);
assertThat(list.get(1).getCount()).isEqualTo(1);
customizers.customize(mock(CaffeineCacheManager.class));
assertThat(list.get(0).getCount()).isEqualTo(3);
assertThat(list.get(1).getCount()).isEqualTo(1);
}
static class CacheNamesCacheManagerCustomizer implements CacheManagerCustomizer<ConcurrentMapCacheManager> {
@Override
public void customize(ConcurrentMapCacheManager cacheManager) {
cacheManager.setCacheNames(Arrays.asList("one", "two"));
}
}
static class TestCustomizer<T extends CacheManager> implements CacheManagerCustomizer<T> {
private int count;
@Override
public void customize(T cacheManager) {
this.count++;
}
int getCount() {
return this.count;
}
}
static class TestConcurrentMapCacheManagerCustomizer extends TestCustomizer<ConcurrentMapCacheManager> {
}
}
|
[
"zhaobinxian@greatyun.com"
] |
zhaobinxian@greatyun.com
|
86f12711fc8a962edc5a8d2afa2388fd9e2c0605
|
71dc08ecd65afd5096645619eee08c09fc80f50d
|
/src/main/java/com/tomatolive/library/ui/presenter/DedicateTopPresenter.java
|
a49ab5f11a2b707317551ac07c08dc55c69119bb
|
[] |
no_license
|
lanshifu/FFmpegDemo
|
d5a4a738feadcb15d8728ee92f9eb00f00c77413
|
fdbafde0bb8150503ae68c42ae98361c030bf046
|
refs/heads/master
| 2020-06-25T12:24:12.590952
| 2019-09-08T07:35:16
| 2019-09-08T07:35:16
| 199,304,834
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,302
|
java
|
package com.tomatolive.library.ui.presenter;
import android.content.Context;
import com.tomatolive.library.base.a;
import com.tomatolive.library.http.HttpRxObserver;
import com.tomatolive.library.http.RequestParams;
import com.tomatolive.library.http.ResultCallBack;
import com.tomatolive.library.model.AnchorEntity;
import com.tomatolive.library.ui.view.iview.IDedicateTopView;
import com.tomatolive.library.ui.view.widget.StateView;
import java.util.List;
public class DedicateTopPresenter extends a<IDedicateTopView> {
public DedicateTopPresenter(Context context, IDedicateTopView iDedicateTopView) {
super(context, iDedicateTopView);
}
public void getDataList(StateView stateView, String str, int i, boolean z, final boolean z2) {
addMapSubscription(this.mApiService.getDedicateTopListService(new RequestParams().getContributionListParams(str)), new HttpRxObserver(getContext(), new ResultCallBack<List<AnchorEntity>>() {
public void onError(int i, String str) {
}
public void onSuccess(List<AnchorEntity> list) {
if (list != null) {
((IDedicateTopView) DedicateTopPresenter.this.getView()).onDataListSuccess(list, false, z2);
}
}
}, stateView, z));
}
}
|
[
"lanxiaobin@jiaxincloud.com"
] |
lanxiaobin@jiaxincloud.com
|
cdcc0a4e1a6cb49487d9dccb97b79ddab6858eed
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module0830_public/tests/unittests/src/java/module0830_public_tests_unittests/a/IFoo1.java
|
26fc4ff53f3978c20e600d27793d4fa2ee53684a
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 863
|
java
|
package module0830_public_tests_unittests.a;
import java.rmi.*;
import java.nio.file.*;
import java.sql.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see java.util.logging.Filter
* @see java.util.zip.Deflater
* @see javax.annotation.processing.Completion
*/
@SuppressWarnings("all")
public interface IFoo1<N> extends module0830_public_tests_unittests.a.IFoo0<N> {
javax.lang.model.AnnotatedConstruct f0 = null;
javax.management.Attribute f1 = null;
javax.naming.directory.DirContext f2 = null;
String getName();
void setName(String s);
N get();
void set(N e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
a371feb037c28aeaed2e774486e1d030171e0e3e
|
ba55269057e8dc503355a26cfab3c969ad7eb278
|
/POSNirvanaORM/src/com/nirvanaxp/types/entities/catalog/items/ItemsToPrinter_.java
|
d4c63eac4dd8ec01aeae2b77d06c51b584abe4f7
|
[
"Apache-2.0"
] |
permissive
|
apoorva223054/SF3
|
b9db0c86963e549498f38f7e27f65c45438b2a71
|
4dab425963cf35481d2a386782484b769df32986
|
refs/heads/master
| 2022-03-07T17:13:38.709002
| 2020-01-29T05:19:06
| 2020-01-29T05:19:06
| 236,907,773
| 0
| 0
|
Apache-2.0
| 2022-02-09T22:46:01
| 2020-01-29T05:10:51
|
Java
|
UTF-8
|
Java
| false
| false
| 569
|
java
|
package com.nirvanaxp.types.entities.catalog.items;
import com.nirvanaxp.types.entities.POSNirvanaBaseClass_;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="Dali", date="2019-03-26T14:43:31.792+0530")
@StaticMetamodel(ItemsToPrinter.class)
public class ItemsToPrinter_ extends POSNirvanaBaseClass_ {
public static volatile SingularAttribute<ItemsToPrinter, String> itemsId;
public static volatile SingularAttribute<ItemsToPrinter, String> printersId;
}
|
[
"naman223054@gmail.com"
] |
naman223054@gmail.com
|
a9b7e2f3fcf87322ad86ec5d577bb2fd71ca6e78
|
1d91a0db534e17208b0f485045dbfe42e223f3a4
|
/app/src/main/java/mine/amap/CoordinateActivity.java
|
405ad481687eda6afa8b2db981b8272393fa55c8
|
[] |
no_license
|
ipipip1735/Amap
|
c3081faa38482002e7a21b3711b3c1a1f80231ef
|
21954213289fe84b347659456ad3361813d53e6d
|
refs/heads/master
| 2023-03-17T09:46:03.756304
| 2021-03-04T07:25:41
| 2021-03-04T07:25:41
| 299,243,241
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,824
|
java
|
package mine.amap;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.location.Location;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.AppCompatActivity;
import com.amap.api.maps2d.AMap;
import com.amap.api.maps2d.AMapOptions;
import com.amap.api.maps2d.CameraUpdate;
import com.amap.api.maps2d.CameraUpdateFactory;
import com.amap.api.maps2d.CoordinateConverter;
import com.amap.api.maps2d.LocationSource;
import com.amap.api.maps2d.MapView;
import com.amap.api.maps2d.MapsInitializer;
import com.amap.api.maps2d.model.BitmapDescriptor;
import com.amap.api.maps2d.model.BitmapDescriptorFactory;
import com.amap.api.maps2d.model.CameraPosition;
import com.amap.api.maps2d.model.LatLng;
import com.amap.api.maps2d.model.MarkerOptions;
import com.amap.api.maps2d.model.MyLocationStyle;
import static com.amap.api.maps2d.AMapOptions.LOGO_POSITION_BOTTOM_LEFT;
import static com.amap.api.maps2d.AMapOptions.ZOOM_POSITION_RIGHT_CENTER;
/**
* Created by Administrator on 2020/9/28.
*/
public class CoordinateActivity extends AppCompatActivity {
MapView mMapView = null;
AMap aMap = null;
int n = 0;
double longitude = 114.420535d;
double latitude = 30.592849d;
LocationSource.OnLocationChangedListener onLocationChangedListener;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
System.out.println("********* " + getClass().getSimpleName() + ".onCreate *********");
setContentView(R.layout.activity_main);
System.out.println("MapsInitializer.getVersion is " + MapsInitializer.getVersion());
System.out.println("MapsInitializer.getProtocol is " + MapsInitializer.getProtocol());
try {
ApplicationInfo applicationInfo = getPackageManager().getApplicationInfo(getPackageName(), PackageManager.GET_META_DATA);
Bundle bundle = applicationInfo.metaData;
for (String key : bundle.keySet()) {
System.out.println("key is " + key);
System.out.println(bundle.getString(key));
}
MapsInitializer.setApiKey(bundle.getString("com.amap.api.v2.apikey"));
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
LatLng centerBJPoint= new LatLng(latitude,longitude);
AMapOptions mapOptions = new AMapOptions();
mapOptions.camera(new CameraPosition(centerBJPoint, 10f, 0, 0));
mMapView = new MapView(this, mapOptions);
ViewGroup viewGroup = findViewById(R.id.fl);
viewGroup.addView(mMapView);
mMapView.onCreate(savedInstanceState);
if (aMap == null) {
aMap = mMapView.getMap();
System.out.println("getMaxZoomLevel is " + aMap.getMaxZoomLevel());
System.out.println("getMinZoomLevel() is " + aMap.getMinZoomLevel());
}
}
@Override
protected void onStart() {
super.onStart();
System.out.println("********* " + getClass().getSimpleName() + ".onStart *********");
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
System.out.println("********* " + getClass().getSimpleName() + ".onRestoreInstanceState *********");
}
@Override
protected void onRestart() {
super.onRestart();
System.out.println("********* " + getClass().getSimpleName() + ".onRestart *********");
}
@Override
protected void onResume() {
super.onResume();
System.out.println("********* " + getClass().getSimpleName() + ".onResume *********");
aMap.setOnMyLocationChangeListener(new AMap.OnMyLocationChangeListener() {
@Override
public void onMyLocationChange(Location location) {
System.out.println("~~onMyLocationChange~~");
System.out.println(location.getLatitude() + ", " + location.getLongitude());
// camera();
}
});
}
@Override
protected void onPause() {
super.onPause();
System.out.println("********* " + getClass().getSimpleName() + ".onPause *********");
aMap.setOnMyLocationChangeListener(null);
mMapView.onPause();
}
@Override
public void onBackPressed() {
super.onBackPressed();
System.out.println("********* " + getClass().getSimpleName() + ".onBackPressed *********");
}
@Override
protected void onStop() {
super.onStop();
System.out.println("********* " + getClass().getSimpleName() + ".onStop *********");
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
System.out.println("********* " + getClass().getSimpleName() + ".onSaveInstanceState *********");
mMapView.onSaveInstanceState(outState);
}
@Override
protected void onDestroy() {
super.onDestroy();
System.out.println("********* " + getClass().getSimpleName() + ".onDestroy *********");
mMapView.onDestroy();
}
public void start(View view) {
System.out.println("~~button.start~~");
CoordinateConverter converter = new CoordinateConverter();
converter.from(CoordinateConverter.CoordType.GPS);
LatLng originLatLng = new LatLng(30.552431,114.289295);
System.out.println("originLatLng is " + originLatLng);
converter.coord(originLatLng);
LatLng desLatLng = converter.convert();
System.out.println("desLatLng is " + desLatLng);
aMap.clear();
aMap.addMarker(new MarkerOptions()
.position(originLatLng)
.title("title|originLatLng")
.snippet("snippet|"))
.showInfoWindow();
aMap.addMarker(new MarkerOptions()
.position(desLatLng)
.title("title|desLatLng")
.snippet("snippet|"))
.showInfoWindow();
}
public void stop(View view) {
System.out.println("~~button.stop~~");
}
public void pause(View view) {
System.out.println("~~button.pause~~");
}
public void resume(View view) {
System.out.println("~~button.resume~~");
aMap.setMyLocationEnabled(true);
}
public void reloading(View view) {
System.out.println("~~button.reloading~~");
}
public void del(View view) {
System.out.println("~~button.del~~");
}
public void query(View view) {
System.out.println("~~button.query~~");
}
}
|
[
"ipipip1735@163.com"
] |
ipipip1735@163.com
|
4e315cf8be94947194c3e959cde8fca27a8b51db
|
4be61634117a0aa988f33246d0f425047c027f4c
|
/zkredis-app/src/jdk6/org/omg/PortableServer/POAManagerOperations.java
|
5ab86afb152896af4a6de4694b88f1d9188169cc
|
[] |
no_license
|
oldshipmaster/zkredis
|
c02e84719f663cd620f1a76fba38e4452d755a0c
|
3ec53d6904a47a5ec79bc7768b1ca6324facb395
|
refs/heads/master
| 2022-12-27T01:31:23.786539
| 2020-08-12T01:22:07
| 2020-08-12T01:22:07
| 34,658,942
| 1
| 3
| null | 2022-12-16T04:32:34
| 2015-04-27T09:55:48
|
Java
|
UTF-8
|
Java
| false
| false
| 3,086
|
java
|
package org.omg.PortableServer;
/**
* org/omg/PortableServer/POAManagerOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
* Sunday, October 11, 2009 1:14:29 AM GMT-08:00
*/
/**
* Each POA object has an associated POAManager object.
* A POA manager may be associated with one or more
* POA objects. A POA manager encapsulates the processing
* state of the POAs it is associated with.
*/
public interface POAManagerOperations
{
/**
* This operation changes the state of the POA manager
* to active, causing associated POAs to start processing
* requests.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void activate () throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation changes the state of the POA manager
* to holding, causing associated POAs to queue incoming
* requests.
* @param wait_for_completion if FALSE, the operation
* returns immediately after changing state.
* If TRUE, it waits for all active requests
* to complete.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void hold_requests (boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation changes the state of the POA manager
* to discarding. This causes associated POAs to discard
* incoming requests.
* @param wait_for_completion if FALSE, the operation
* returns immediately after changing state.
* If TRUE, it waits for all active requests
* to complete.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void discard_requests (boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation changes the state of the POA manager
* to inactive, causing associated POAs to reject the
* requests that have not begun executing as well as
* as any new requests.
* @param etherealize_objects a flag to indicate whether
* to invoke the etherealize operation of the
* associated servant manager for all active
* objects.
* @param wait_for_completion if FALSE, the operation
* returns immediately after changing state.
* If TRUE, it waits for all active requests
* to complete.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void deactivate (boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation returns the state of the POA manager.
*/
org.omg.PortableServer.POAManagerPackage.State get_state ();
} // interface POAManagerOperations
|
[
"oldshipmaster@163.com"
] |
oldshipmaster@163.com
|
e7a3c55ce3176cc1ad59043282d23a5f93a5ae9e
|
086afffe5f69712e04a53ddbcb4c6cd767f4e82c
|
/uizabase/src/main/java/vn/uiza/utils/CallbackGetDetailEntity.java
|
3985411eed9b1e5cb22e80e2fd5ee59f2ef5b908
|
[
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
haiminhtran810/uiza-android-sdk-player
|
238141566ae602446d07c0e6f1c16e8ce353cd4f
|
bfda3753a0932348aeb9f2932eab21c5ed4ed8a8
|
refs/heads/master
| 2020-05-23T11:33:46.998650
| 2019-05-14T08:49:04
| 2019-05-14T08:49:04
| 186,738,605
| 0
| 0
|
BSD-2-Clause
| 2019-05-23T09:28:24
| 2019-05-15T02:57:55
|
Java
|
UTF-8
|
Java
| false
| false
| 218
|
java
|
package vn.uiza.utils;
import vn.uiza.restapi.uiza.model.v3.metadata.getdetailofmetadata.Data;
public interface CallbackGetDetailEntity {
public void onSuccess(Data data);
public void onError(Throwable e);
}
|
[
"loitp@pateco.vn"
] |
loitp@pateco.vn
|
79725156ecc084b61f05ba314d4928a884b771a4
|
be4c0f3cfa564995515abd9531a72fdb296cfec7
|
/Automated Testing TDD/BT-ChuongTrinhTinhKetQuaFizzBuzz/src/FizzBuzz.java
|
0025905cfccc1611ec485cab2f474d455d1b8536
|
[] |
no_license
|
satasy102/Week2_Module2
|
0ee8d81b2eecfd61022d49736e7f317d5adfb029
|
b0454e398c3228bf51b56ba4d115c3ef03b18f94
|
refs/heads/master
| 2022-12-07T21:01:41.245211
| 2020-08-25T14:54:16
| 2020-08-25T14:54:16
| 286,639,845
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 412
|
java
|
public class FizzBuzz {
public static String findFizzBuzz(int number) {
boolean chiaHetCho3va5 = number % 15 == 0;
boolean chiaHetCho3 = number % 3 == 0;
boolean chiaHetCho5 = number % 5 == 0;
if (chiaHetCho3va5) return "FizzBuzz";
else if (chiaHetCho3) return "Fizz";
else if (chiaHetCho5) return "Buzz";
else return String.valueOf(number);
}
}
|
[
"@gmail"
] |
@gmail
|
9c9aff28f2fa2d618148731511dff0ab8d33c476
|
60ab345245921aea8cab939fd44679d758b0d093
|
/src/org/activiti/editor/language/json/converter/BpmnJsonConverterUtil.java
|
3f6f1177cbc456bea2768cd9de5ecf244fe4634f
|
[] |
no_license
|
guogongzhou/afunms
|
405d56f7c5cad91d0a5e1fea5c9858f1358d0172
|
40127ef7aecdc7428a199b0e8cce30b27207fee8
|
refs/heads/master
| 2021-01-15T19:23:43.488074
| 2014-11-11T06:36:48
| 2014-11-11T06:36:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,766
|
java
|
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.editor.language.json.converter;
import org.activiti.editor.constants.EditorJsonConstants;
import org.activiti.engine.impl.bpmn.behavior.NoneEndEventActivityBehavior;
import org.activiti.engine.impl.bpmn.behavior.NoneStartEventActivityBehavior;
import org.activiti.engine.impl.pvm.process.ActivityImpl;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.node.ArrayNode;
import org.codehaus.jackson.node.ObjectNode;
/**
* @author Tijs Rademakers
*/
public class BpmnJsonConverterUtil implements EditorJsonConstants {
private static ObjectMapper objectMapper = new ObjectMapper();
public static ObjectNode createChildShape(String id, String type, double lowerRightX, double lowerRightY, double upperLeftX, double upperLeftY) {
ObjectNode shapeNode = objectMapper.createObjectNode();
shapeNode.put(EDITOR_BOUNDS, createBoundsNode(lowerRightX, lowerRightY, upperLeftX, upperLeftY));
shapeNode.put(EDITOR_SHAPE_ID, id);
ArrayNode shapesArrayNode = objectMapper.createArrayNode();
shapeNode.put(EDITOR_CHILD_SHAPES, shapesArrayNode);
ObjectNode stencilNode = objectMapper.createObjectNode();
stencilNode.put(EDITOR_STENCIL_ID, type);
shapeNode.put(EDITOR_STENCIL, stencilNode);
return shapeNode;
}
public static ObjectNode createBoundsNode(double lowerRightX, double lowerRightY, double upperLeftX, double upperLeftY) {
ObjectNode boundsNode = objectMapper.createObjectNode();
boundsNode.put(EDITOR_BOUNDS_LOWER_RIGHT, createPositionNode(lowerRightX, lowerRightY));
boundsNode.put(EDITOR_BOUNDS_UPPER_LEFT, createPositionNode(upperLeftX, upperLeftY));
return boundsNode;
}
public static ObjectNode createPositionNode(double x, double y) {
ObjectNode positionNode = objectMapper.createObjectNode();
positionNode.put(EDITOR_BOUNDS_X, x);
positionNode.put(EDITOR_BOUNDS_Y, y);
return positionNode;
}
public static ObjectNode createResourceNode(String id) {
ObjectNode resourceNode = objectMapper.createObjectNode();
resourceNode.put(EDITOR_SHAPE_ID, id);
return resourceNode;
}
public static double getActivityWidth(ActivityImpl activity) {
if (activity.getActivityBehavior() instanceof NoneStartEventActivityBehavior ||
activity.getActivityBehavior() instanceof NoneEndEventActivityBehavior) {
return 30.0;
} else {
return activity.getWidth();
}
}
public static double getActivityHeight(ActivityImpl activity) {
if (activity.getActivityBehavior() instanceof NoneStartEventActivityBehavior ||
activity.getActivityBehavior() instanceof NoneEndEventActivityBehavior) {
return 30.0;
} else {
return activity.getHeight();
}
}
public static String getStencilId(JsonNode objectNode) {
String stencilId = null;
JsonNode stencilNode = objectNode.get(EDITOR_STENCIL);
if (stencilNode != null && stencilNode.get(EDITOR_STENCIL_ID) != null) {
stencilId = stencilNode.get(EDITOR_STENCIL_ID).asText();
}
return stencilId;
}
}
|
[
"happysoftware@foxmail.com"
] |
happysoftware@foxmail.com
|
daf2be620b85aa1e7c279a5fca70731f18258338
|
63193edebcf27f26c8ba91ae1301a02ef4f56036
|
/app/src/main/java/com/sts_ni/estudiocohortecssfv/tools/LstViewGenericaExp.java
|
5720aecadd5c3e66d042b941473004cd7ba86a9f
|
[] |
no_license
|
wmonterrey/ESTUDIOCOHORTEMOVIL
|
a24043520f61bdc5f0047e70759399b3aa95946f
|
07fce0ad61fd882eb641b8310eb35e36072fd4f9
|
refs/heads/master
| 2020-04-06T16:15:27.348327
| 2019-03-14T19:18:50
| 2019-03-14T19:18:50
| 157,612,651
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,014
|
java
|
package com.sts_ni.estudiocohortecssfv.tools;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.sts_ni.estudiocohortecssfv.InicioConsultaActivity;
import com.sts_ni.estudiocohortecssfv.InicioEnfermeriaActivity;
import com.sts_ni.estudiocohortecssfv.PantallaInicioActivity;
import com.sts_ni.estudiocohortecssfv.R;
import com.sts_ni.estudiocohortecssfv.dto.ExpedienteDTO;
import com.sts_ni.estudiocohortecssfv.expedientesactivities.ExpedienteActivity;
import java.util.ArrayList;
/**
* Autor: Ing. Leandro Vanegas
* Fecha: 26 Marzo 2015
* Descripción: Controlador del List View Customizado.
*/
public class LstViewGenericaExp extends ArrayAdapter<ExpedienteDTO> implements View.OnClickListener, AbsListView.OnScrollListener {
private Context CONTEXT;
private Object ACTIVITY_INST;
private ArrayList<ExpedienteDTO> VALUES;
private Resources RES;
private int CURRENT_FIRST_VISIBLE_ITEM;
private int CURRENT_VISIBLE_ITEM_COUNT;
private int CURRENT_SCROLLSTATE;
/************* CustomAdapter Constructor *****************/
public LstViewGenericaExp(Context context, Object activityInst, ArrayList<ExpedienteDTO> values, Resources res) {
super(context, R.layout.lista_generica_exp_layout, values);
/********** Take passed values **********/
this.CONTEXT = context;
this.ACTIVITY_INST = activityInst;
this.VALUES = values;
this.RES = res;
/*********** Layout inflator to call external xml layout () ***********/
//inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}
/****** Depends upon data size called for each row , Create each ListView row *****/
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View rowView = convertView;
ListaExpedienteHolder holder = null;
if (rowView == null) {
LayoutInflater inflater = (LayoutInflater) ((Activity) CONTEXT)
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
rowView = inflater.inflate(R.layout.lista_generica_exp_layout,
parent, false);
/************ Set Model values in Holder elements ***********/
holder = new ListaExpedienteHolder();
holder.txtvNumHojaConsulta = (TextView) rowView
.findViewById(R.id.txtvNumHojaConsulta);
holder.txtvFecha = (TextView) rowView
.findViewById(R.id.txtvFecha);
holder.txtvHora = (TextView) rowView
.findViewById(R.id.txtvHora);
holder.txtvNomMedico = (TextView) rowView
.findViewById(R.id.txtvNomMedico);
holder.txtvEstado = (TextView) rowView
.findViewById(R.id.txtvEstado);
rowView.setTag(holder);
} else {
// Get holder
holder = (ListaExpedienteHolder) rowView.getTag();
}
holder.txtvNumHojaConsulta.setText("" + ((ExpedienteDTO) this.VALUES.get(position)).getNumHojaConsulta());
holder.txtvFecha.setText(((ExpedienteDTO) this.VALUES.get(position)).getFechaConsulta());
holder.txtvHora.setText(((ExpedienteDTO) this.VALUES.get(position)).getHoraConsulta());
holder.txtvNomMedico.setText(((ExpedienteDTO) this.VALUES.get(position)).getNomMedico());
holder.txtvEstado.setText(((ExpedienteDTO) this.VALUES.get(position)).getEstado());
/******** Set Item Click Listner for LayoutInflater for each row *******/
rowView.setOnClickListener(new OnItemClickListener(position));
if (position % 2 == 1) {
rowView.setBackgroundColor(android.graphics.Color.rgb(222,231,209));
} else {
rowView.setBackgroundColor(android.graphics.Color.rgb(239,243,234));
}
return rowView;
}
public ExpedienteDTO getItem(int posicion){
return this.VALUES.get(posicion);
}
@Override
public void onClick(View v) {
//Log.v("CustomAdapter", "=====Row button clicked=====");
}
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
this.CURRENT_SCROLLSTATE = scrollState;
this.isScrollCompleted();
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
this.CURRENT_FIRST_VISIBLE_ITEM = firstVisibleItem;
this.CURRENT_VISIBLE_ITEM_COUNT = visibleItemCount;
}
private void isScrollCompleted() {
if (this.CURRENT_VISIBLE_ITEM_COUNT > 0 && this.CURRENT_SCROLLSTATE == SCROLL_STATE_IDLE) {
if (ACTIVITY_INST instanceof PantallaInicioActivity){
PantallaInicioActivity pInicioActivity = (PantallaInicioActivity) CONTEXT;
pInicioActivity.onLastScroll();
}
}
}
static class ListaExpedienteHolder
{
TextView txtvNumHojaConsulta;
TextView txtvFecha;
TextView txtvHora;
TextView txtvNomMedico;
TextView txtvEstado;
}
/********* Called when Item click in ListView ************/
private class OnItemClickListener implements View.OnClickListener {
private int mPosition;
OnItemClickListener(int position){
mPosition = position;
}
@Override
public void onClick(View arg0) {
if (ACTIVITY_INST instanceof ExpedienteActivity) {
ExpedienteActivity pInicioActivity = (ExpedienteActivity) CONTEXT;
pInicioActivity.onItemClick(mPosition);
}
}
}
public ArrayList<ExpedienteDTO> getResultado()
{
return VALUES;
}
}
|
[
"waviles@icsnicaragua.org"
] |
waviles@icsnicaragua.org
|
db53107cf3aed3538673e2e3ea8373243c03ad17
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-vcs/src/main/java/com/aliyuncs/vcs/model/v20200515/DeleteDeviceForInstanceResponse.java
|
e2a1e015d16c1da77433366c6ff0a982015a242b
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,807
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.vcs.model.v20200515;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.vcs.transform.v20200515.DeleteDeviceForInstanceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteDeviceForInstanceResponse extends AcsResponse {
private String requestId;
private String message;
private String code;
private Boolean success;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
@Override
public DeleteDeviceForInstanceResponse getInstance(UnmarshallerContext context) {
return DeleteDeviceForInstanceResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
b1663069838da671505ccc37a1290a2fffe88124
|
abf39d3633d78ddefbb8dcc882dabeb33ffde55f
|
/utilslibrary/src/main/java/com/aaron/base/AppException.java
|
7a8ee03f6d7fc81a6cd4056f735fc4e9739adfd3
|
[] |
no_license
|
StarsAaron/ApplicationTemplate
|
8bfb0efc765ab5883d8506b8d03686e0a1ba7137
|
147d48d56f89d0ca433efd4aead025aca6c8bb20
|
refs/heads/master
| 2021-05-16T06:38:18.786026
| 2017-09-30T09:05:34
| 2017-09-30T09:05:34
| 103,515,045
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,098
|
java
|
package com.aaron.base;
import android.text.TextUtils;
import org.apache.http.conn.ConnectTimeoutException;
import java.net.ConnectException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
/**
* 名称:AppException.java
* 描述:公共异常类.
* 对异常描述信息进行修饰,输出普通用户可以理解的信息
*/
public class AppException extends Exception {
/**
* The Constant serialVersionUID.
*/
private static final long serialVersionUID = 1;
/**
* 异常消息.
*/
private String msg = null;
/**
* 构造异常类.
*
* @param e 异常
*/
public AppException(Exception e) {
super();
try {
if (e instanceof ConnectException) {
msg = AppConfig.CONNECT_EXCEPTION;
} else if (e instanceof ConnectTimeoutException) {
msg = AppConfig.CONNECT_EXCEPTION;
} else if (e instanceof UnknownHostException) {
msg = AppConfig.UNKNOWN_HOST_EXCEPTION;
} else if (e instanceof SocketException) {
msg = AppConfig.SOCKET_EXCEPTION;
} else if (e instanceof SocketTimeoutException) {
msg = AppConfig.SOCKET_TIMEOUT_EXCEPTION;
} else if (e instanceof NullPointerException) {
msg = AppConfig.NULL_POINTER_EXCEPTION;
} else {
if (e == null || TextUtils.isEmpty(e.getMessage())) {
msg = AppConfig.NULL_MESSAGE_EXCEPTION;
} else {
msg = e.getMessage();
}
}
} catch (Exception e1) {
}
}
/**
* 用一个消息构造异常类.
*
* @param message 异常的消息
*/
public AppException(String message) {
super(message);
msg = message;
}
/**
* 描述:获取异常信息.
*
* @return the message
*/
@Override
public String getMessage() {
return msg;
}
}
|
[
"103514303@qq.com"
] |
103514303@qq.com
|
c6f8c10a038eaae7434b0aaa2c470556253b2949
|
d4ca2dd69fd587e823a2855dfa6f3bb075c4d8f0
|
/plugins/markdown/src/org/intellij/plugins/markdown/ui/preview/MarkdownSplitEditorProvider.java
|
83b67671a421cd787753c5919aac9e7ecbab494d
|
[
"Apache-2.0"
] |
permissive
|
bagerard/intellij-community
|
533ff61aa81de97104f1239671c952141a47449a
|
3be75c89930d70c4d272728cc670fb04bf9142e2
|
refs/heads/master
| 2023-04-21T14:24:55.880959
| 2021-05-10T17:28:21
| 2021-05-10T17:30:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,241
|
java
|
package org.intellij.plugins.markdown.ui.preview;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.TextEditor;
import com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider;
import com.intellij.openapi.util.registry.Registry;
import org.intellij.plugins.markdown.ui.split.SplitTextEditorProvider;
import org.jetbrains.annotations.NotNull;
public class MarkdownSplitEditorProvider extends SplitTextEditorProvider {
public MarkdownSplitEditorProvider() {
super(new PsiAwareTextEditorProvider(), new MarkdownPreviewFileEditorProvider());
}
@Override
protected FileEditor createSplitEditor(@NotNull final FileEditor firstEditor, @NotNull FileEditor secondEditor) {
if (!(firstEditor instanceof TextEditor) || !(secondEditor instanceof MarkdownPreviewFileEditor)) {
throw new IllegalArgumentException("Main editor should be TextEditor");
}
if (Registry.is("markdown.use.platform.editor.with.preview", false)) {
return new MarkdownEditorWithPreview(((TextEditor)firstEditor), ((MarkdownPreviewFileEditor)secondEditor));
} else {
return new MarkdownSplitEditor(((TextEditor)firstEditor), ((MarkdownPreviewFileEditor)secondEditor));
}
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
75a75340f0ce32f3522d4583cdf58368d1aa20fc
|
c9106d023a926f5968808a9958449e56a4170612
|
/jenax-arq-parent/jenax-arq-plugins-parent/jenax-arq-plugins-bundle/src/main/java/org/aksw/jena_sparql_api/sparql/ext/json/AggregatorsJson.java
|
610f4979b849be265af36dad3e6fae8228a9c857
|
[] |
no_license
|
Scaseco/jenax
|
c6f726fa25fd4b15e05119d05dbafaf44c8f5411
|
58a8dec0b055eaca3f6848cab4b552c9fd19a6ec
|
refs/heads/develop
| 2023-08-24T13:37:16.574857
| 2023-08-24T11:53:24
| 2023-08-24T11:53:24
| 416,700,558
| 5
| 0
| null | 2023-08-03T14:41:53
| 2021-10-13T10:54:14
|
Java
|
UTF-8
|
Java
| false
| false
| 3,581
|
java
|
package org.aksw.jena_sparql_api.sparql.ext.json;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.stream.Collectors;
import org.aksw.commons.collector.core.AggBuilder;
import org.aksw.commons.collector.domain.Aggregator;
import org.aksw.commons.collector.domain.ParallelAggregator;
import org.aksw.commons.lambda.serializable.SerializableSupplier;
import org.aksw.jena_sparql_api.sparql.ext.geosparql.GeometryWrapperUtils;
import org.apache.jena.geosparql.implementation.GeometryWrapper;
import org.apache.jena.geosparql.implementation.datatype.WKTDatatype;
import org.apache.jena.geosparql.implementation.jts.CustomGeometryFactory;
import org.apache.jena.sparql.engine.binding.Binding;
import org.apache.jena.sparql.expr.Expr;
import org.apache.jena.sparql.expr.NodeValue;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import com.google.common.collect.Iterables;
import com.google.gson.JsonArray;
//public class AggregatorsJson {
// public static Aggregator<Binding, NodeValue> aggJsonArray(Expr geomExpr, boolean distinct) {
// return aggJsonArray(geomExpr, distinct).finish(GeometryWrapper::asNodeValue);
// }
//
// public static Aggregator<Binding, GeometryWrapper> aggJsonArray(Expr geomExpr, boolean distinct) {
// return aggJsonArray(geomExpr, distinct, CustomGeometryFactory.theInstance());
// }
//
// public static Aggregator<Binding, JsonArray> aggJsonArray(
// Expr geomExpr,
// boolean distinct,
// GeometryFactory geomFactory) {
//
// // TODO This approach silently ignores invalid input
// // We should probably instead yield effectively 'null'
// return
// AggBuilder.inputTransform(
// (Binding binding) -> {
// NodeValue nv = geomExpr.eval(binding, null);
// return GeometryWrapperUtils.extractGeometryWrapperOrNull(nv);
// },
// AggBuilder.inputFilter(input -> input != null,
// aggGeometryWrapperCollection(distinct, geomFactory)));
// }
//
// /**
// * Creates an aggregator that collects geometries into a geometry collection
// * All geometries must have the same spatial reference system (SRS).
// * The resulting geometry will be in the same SRS.
// *
// * @param distinct Whether to collect geometries in a set or a list
// * @param geomFactory The geometry factory. If null then jena's default one is used.
// */
// public static ParallelAggregator<GeometryWrapper, GeometryWrapper, ?> aggGeometryWrapperCollection(boolean distinct, GeometryFactory geomFactory) {
//
// GeometryFactory gf = geomFactory == null ? CustomGeometryFactory.theInstance() : geomFactory;
//
// SerializableSupplier<Collection<GeometryWrapper>> collectionSupplier = distinct
// ? LinkedHashSet::new
// : ArrayList::new; // LinkedList?
//
// return AggBuilder.outputTransform(
// AggBuilder.collectionSupplier(collectionSupplier),
// col -> {
// GeometryWrapper r;
// if (col.isEmpty()) {
// r = GeometryWrapper.getEmptyWKT();
// } else {
// Set<String> srsUris = col.stream().map(GeometryWrapper::getSrsURI).collect(Collectors.toSet());
// Collection<Geometry> geoms = col.stream().map(GeometryWrapper::getParsingGeometry).collect(Collectors.toList());
// Geometry geom = gf.createGeometryCollection(geoms.toArray(new Geometry[0]));
//
// // Mixing SRS not allowed here; convert before aggregation
// String srsUri = Iterables.getOnlyElement(srsUris);
//
// r = new GeometryWrapper(geom, srsUri, WKTDatatype.URI);
// }
// return r;
// });
// }
//
//}
|
[
"RavenArkadon@googlemail.com"
] |
RavenArkadon@googlemail.com
|
c22ff5b79f35f01e558f6ce8a8aecbace8493a3c
|
8bbbc894fbc0a666a0557443a0b86d7625e89e70
|
/src/main/java/org/bian/dto/SDTransactionEngineRetrieveInputModelServiceDomainRetrieveActionRecordControlRecordPortfolioAnalysis.java
|
cdcfb2eb0048e5b238050c402946bea58ab0b167
|
[
"Apache-2.0"
] |
permissive
|
bianapis/sd-transaction-engine-v2
|
4b4f18eff662df8e13a5b8a51c616824f977f94d
|
e5d3bbc7425139fbf996733f4d4b0ad11409e160
|
refs/heads/master
| 2020-07-23T00:15:34.983371
| 2019-09-10T05:16:24
| 2019-09-10T05:16:24
| 207,380,481
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,173
|
java
|
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* SDTransactionEngineRetrieveInputModelServiceDomainRetrieveActionRecordControlRecordPortfolioAnalysis
*/
public class SDTransactionEngineRetrieveInputModelServiceDomainRetrieveActionRecordControlRecordPortfolioAnalysis {
private String controlRecordPortfolioAnalysisReference = null;
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier general-info: Reference to the control record portfolio analysis view maintained by the service center
* @return controlRecordPortfolioAnalysisReference
**/
public String getControlRecordPortfolioAnalysisReference() {
return controlRecordPortfolioAnalysisReference;
}
public void setControlRecordPortfolioAnalysisReference(String controlRecordPortfolioAnalysisReference) {
this.controlRecordPortfolioAnalysisReference = controlRecordPortfolioAnalysisReference;
}
}
|
[
"team1@bian.org"
] |
team1@bian.org
|
1936b7683b49d3617dfe4dbac240b194fa883993
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/81/org/apache/commons/math/util/MathUtils_normalizeArray_1020.java
|
7cc11633e767c65cf845713c018ac5c68ad9dadf
|
[] |
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
| 3,091
|
java
|
org apach common math util
addit built function link math
version revis date
math util mathutil
normal arrai make sum
return result transform pre
normal sum normalizedsum sum
pre
appli nan element input arrai sum
sum nan entri input arrai
throw illeg argument except illegalargumentexcept code normal sum normalizedsum code infinit
nan arithmet except arithmeticexcept input arrai infinit element
sum
ignor copi unchang output arrai nan input arrai
param valu input arrai normal
param normal sum normalizedsum target sum normal arrai
normal arrai
arithmet except arithmeticexcept input arrai infinit element sum
illeg argument except illegalargumentexcept target sum infinit nan
normal arrai normalizearrai valu normal sum normalizedsum
arithmet except arithmeticexcept illeg argument except illegalargumentexcept
doubl infinit isinfinit normal sum normalizedsum
math runtim except mathruntimeexcept creat illeg argument except createillegalargumentexcept
normal infinit
doubl isnan normal sum normalizedsum
math runtim except mathruntimeexcept creat illeg argument except createillegalargumentexcept
normal nan
sum
len valu length
len
len
doubl infinit isinfinit valu
math runtim except mathruntimeexcept creat arithmet except createarithmeticexcept
arrai infinit element index valu
doubl isnan valu
sum valu
sum
math runtim except mathruntimeexcept creat arithmet except createarithmeticexcept
arrai sum
len
doubl isnan valu
doubl nan
valu normal sum normalizedsum sum
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
2ce6e7dada5c85c1949b46bc921c330ce6e46d0b
|
3f62e9241f37b5d39ca8c885f308ee3971fdf7b8
|
/iotsys-common/src/at/ac/tuwien/auto/iotsys/commons/obix/objects/weatherforecast/impl/ProbabilityCodeImpl.java
|
a20d4f9559d0ca64574bfbc039759c3a8354788c
|
[] |
no_license
|
niclash/iotsys
|
e014617c175a9e5b8648195459fdc53cce6b0a53
|
4d8a60d31b921306bae1069d082e451968ec8e5a
|
refs/heads/master
| 2021-01-22T18:23:46.892442
| 2014-09-10T15:34:52
| 2014-09-10T15:34:52
| 32,944,656
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 934
|
java
|
package at.ac.tuwien.auto.iotsys.commons.obix.objects.weatherforecast.impl;
import at.ac.tuwien.auto.iotsys.commons.obix.objects.weatherforecast.ProbabilityCode;
public class ProbabilityCodeImpl implements ProbabilityCode {
public static int GetByName(String name) {
int id;
if (name == null)
name = NAME_UNKNOWN;
name = name.toLowerCase();
if (name.equals(NAME_HIGHLY_PROBABLE))
id = ID_HIGHLY_PROBABLE;
else if (name.equals(NAME_PROBABLE))
id = ID_PROBABLE;
else if (name.equals(NAME_UNCERTAIN))
id = ID_UNCERTAIN;
else
id = ID_UNKNOWN;
return id;
}
public static String GetByID(int id) {
String name;
if (id == ID_HIGHLY_PROBABLE)
name = NAME_HIGHLY_PROBABLE;
else if (id == ID_PROBABLE)
name = NAME_PROBABLE;
else if (id == ID_UNCERTAIN)
name = NAME_UNCERTAIN;
else
name = NAME_UNKNOWN;
return name;
}
}
|
[
"jschober88@gmail.com"
] |
jschober88@gmail.com
|
d004427ff715a29aa9ec9f79ac6d0d38401108c5
|
e0d2d84c6c3ff1955b1a440edf820252f4e37547
|
/ex1/src/Fishing/fishcase.java
|
fdaec0511750504ba35dd7bfa932b10e3c6ad7be
|
[] |
no_license
|
kimyoungjukyg/kyg
|
0dc06bb872a0050b6bdf0d86e565d59fc2c1923e
|
5f39366c14b9c8dfa559c23447018a761bb51b6a
|
refs/heads/master
| 2020-03-18T20:59:31.502660
| 2018-06-08T02:32:07
| 2018-06-08T02:32:07
| 135,251,411
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 475
|
java
|
package Fishing;
import java.util.Scanner;
public class fishcase {
//수조관
Scanner sc=new Scanner(System.in);
//닉네임,물고기종류 ,길이
void fishroom() {
login log=new login();
shop shop=new shop();
System.out.println("1.상점 2.나가기");
int num0=sc.nextInt();
if(num0==2) {
log.gamem();
}else if(num0==1) {
shop.enterShop();
}
else {
System.out.println("잘못된키입니다.");
}
}
}
|
[
"user@user-PC"
] |
user@user-PC
|
243fccdb4ce2fc53676847737fbee93f59b4fb09
|
094e66aff18fd3a93ea24e4f23f5bc4efa5d71d6
|
/yit-education-util/src/main/java/com/yuu/yit/education/util/tools/EnumUtil.java
|
1966586d6d5726ebbcbea7efed00180831d1476e
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
71yuu/YIT
|
55b76dbec855b8e67f42a7eb00e9fa8e919ec4cb
|
53bb7ba8b8e686b2857c1e2812a0f38bd32f57e3
|
refs/heads/master
| 2022-09-08T06:51:30.819760
| 2019-11-29T06:24:19
| 2019-11-29T06:24:19
| 216,706,258
| 0
| 0
|
Apache-2.0
| 2022-09-01T23:14:33
| 2019-10-22T02:27:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,902
|
java
|
package com.yuu.yit.education.util.tools;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public final class EnumUtil {
private static final String DEFAULT_ENUM_NAME = "name";
/**
* 枚举转List格式
*
* @param targetEnumClazz 目标枚举Clazz
* @return 装换结果
*/
public static List<Map<String, Object>> toList(Class targetEnumClazz) {
return toList(targetEnumClazz, DEFAULT_ENUM_NAME);
}
/**
* 枚举转List格式
*
* @param targetEnumClazz 目标枚举Clazz
* @param enumName 返回JSON中枚举名称对应的Key
* @return 装换结果
*/
public static List<Map<String, Object>> toList(Class targetEnumClazz, String enumName) {
try {
//获取方法
Method[] methods = targetEnumClazz.getMethods();
Field[] fields = targetEnumClazz.getDeclaredFields();
List<Field> fieldList = new ArrayList<>();
for (Method method : methods) {
for (Field field : fields) {
if (method.getName().endsWith(toUpperCaseFirstOne(field.getName()))) {
fieldList.add(field);
}
}
}
List<Map<String, Object>> resultList = new ArrayList<>();
//获取值
Enum[] enums = (Enum[]) targetEnumClazz.getEnumConstants();
for (Enum e : enums) {
Map<String, Object> eMap = new HashMap<>();
String enumNameValue = e.name();
for (Field field : fieldList) {
field.setAccessible(true);
if (field.getName().equals(enumName)) {
enumNameValue = enumNameValue + ";" + field.get(e);
} else {
eMap.put(field.getName(), field.get(e));
}
}
if (enumNameValue.startsWith(";")) {
enumNameValue = enumNameValue.substring(1);
}
eMap.put(enumName, enumNameValue);
resultList.add(eMap);
}
return resultList;
} catch (RuntimeException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
return null;
}
/**
* 首字母转大写
*
* @param s 需要操作的字符串
* @return 转换后结果
*/
private static String toUpperCaseFirstOne(String s) {
if (Character.isUpperCase(s.charAt(0))) {
return s;
} else {
return (new StringBuilder()).append(Character.toUpperCase(s.charAt(0))).append(s.substring(1)).toString();
}
}
}
|
[
"1225459207@qq.com"
] |
1225459207@qq.com
|
8697341000a1072f17160958a6b3f3473d585b0c
|
9a6ea6087367965359d644665b8d244982d1b8b6
|
/src/main/java/X/C49382Qg.java
|
22234862eebeed45872e8e9eb0ba0ac09b15f946
|
[] |
no_license
|
technocode/com.wa_2.21.2
|
a3dd842758ff54f207f1640531374d3da132b1d2
|
3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9
|
refs/heads/master
| 2023-02-12T11:20:28.666116
| 2021-01-14T10:22:21
| 2021-01-14T10:22:21
| 329,578,591
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,182
|
java
|
package X;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.android.search.verification.client.R;
import com.whatsapp.group.NewGroup;
import java.util.List;
/* renamed from: X.2Qg reason: invalid class name and case insensitive filesystem */
public class C49382Qg extends ArrayAdapter {
public final LayoutInflater A00 = LayoutInflater.from(this.A01);
public final /* synthetic */ NewGroup A01;
public long getItemId(int i) {
return (long) (i << 10);
}
public boolean hasStableIds() {
return true;
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C49382Qg(NewGroup newGroup, Context context, List list) {
super(context, (int) R.layout.selected_contact, list);
this.A01 = newGroup;
}
public int getCount() {
return this.A01.A0C.size();
}
@Override // android.widget.ArrayAdapter
public Object getItem(int i) {
return this.A01.A0C.get(i);
}
public View getView(int i, View view, ViewGroup viewGroup) {
NewGroup newGroup = this.A01;
C007003k r3 = (C007003k) newGroup.A0C.get(i);
if (r3 != null) {
if (view == null) {
view = this.A00.inflate(R.layout.selected_contact, viewGroup, false);
}
((TextView) AnonymousClass0Q7.A0D(view, R.id.contact_name)).setText(newGroup.A0G.A08(r3, false));
AnonymousClass0Q7.A0D(view, R.id.close).setVisibility(8);
ImageView imageView = (ImageView) AnonymousClass0Q7.A0D(view, R.id.contact_row_photo);
newGroup.A09.A02(r3, imageView);
AnonymousClass0Q7.A0W(imageView, 2);
AnonymousClass01X r4 = ((AnonymousClass2C0) newGroup).A01;
AnonymousClass0Q7.A0d(view, new AnonymousClass0Q9(new AnonymousClass0Q8[]{new AnonymousClass0Q8(1, R.string.new_group_contact_content_description)}, r4));
return view;
}
throw null;
}
}
|
[
"madeinborneo@gmail.com"
] |
madeinborneo@gmail.com
|
8a80d4824ddee8b64d25e0a303454adfdc1df81c
|
d82abe22de29543a68e0c2641c021d3cdd49fc30
|
/src/main/java/mods/hinasch/unsaga/material/UnsagaMaterials.java
|
8ea2aaa76ff8c91fdcdd64318aaa2d2f54e255af
|
[] |
no_license
|
damofujiki/UnsagaMod-for-1.12
|
80f7b782649e66894e0ea90d41ed3d7567ca512e
|
bbd64f025b81e83e4f8c15fd833afc02e103803a
|
refs/heads/master
| 2020-03-15T03:01:30.694580
| 2018-05-03T02:43:22
| 2018-05-03T02:43:22
| 131,932,242
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,385
|
java
|
package mods.hinasch.unsaga.material;
public class UnsagaMaterials {
public static final UnsagaMaterial DUMMY = new UnsagaMaterial("dummy");
public static final UnsagaMaterial FEATHER = new UnsagaMaterial("feather");
public static final UnsagaMaterial COTTON = new UnsagaMaterial("cotton");
public static final UnsagaMaterial SILK = new UnsagaMaterial("silk");
public static final UnsagaMaterial VELVET = new UnsagaMaterial("velvet");
public static final UnsagaMaterial LIVE_SILK = new UnsagaMaterial("live_silk");
public static final UnsagaMaterial FUR = new UnsagaMaterial("fur");
public static final UnsagaMaterial SNAKE_LEATHER = new UnsagaMaterial("snake_leather");
public static final UnsagaMaterial CROCODILE_LEATHER = new UnsagaMaterial("crocodile_leather");
public static final UnsagaMaterial HYDRA_LEATHER = new UnsagaMaterial("hydra_leather");
/** 雑木*/
public static final UnsagaMaterial WOOD = new UnsagaMaterial("wood");
/** ヒノキ*/
public static final UnsagaMaterial CYPRESS = new UnsagaMaterial("cypress");
public static final UnsagaMaterial OAK = new UnsagaMaterial("oak");
public static final UnsagaMaterial TONERIKO = new UnsagaMaterial("toneriko");
public static final UnsagaMaterial TUSK1 = new UnsagaMaterial("tusk1","tusk");
public static final UnsagaMaterial TUSK2 = new UnsagaMaterial("tusk2","tusk");
public static final UnsagaMaterial BONE1 = new UnsagaMaterial("bone1","bone");
public static final UnsagaMaterial BONE2 = new UnsagaMaterial("bone2","bone");
public static final UnsagaMaterial THIN_SCALE = new UnsagaMaterial("thin_scale");
/** 甲板*/
public static final UnsagaMaterial CHITIN = new UnsagaMaterial("chitin");
public static final UnsagaMaterial ANCIENT_FISH_SCALE = new UnsagaMaterial("ancient_fish_scale");
public static final UnsagaMaterial DRAGON_SCALE = new UnsagaMaterial("dragon_scale");
public static final UnsagaMaterial LIGHT_STONE = new UnsagaMaterial("light_stone");
public static final UnsagaMaterial DARK_STONE = new UnsagaMaterial("dark_stone");
public static final UnsagaMaterial DEBRIS1 = new UnsagaMaterial("debris1","debris");
public static final UnsagaMaterial DEBRIS2 = new UnsagaMaterial("debris2","debris");
/** 朱雀石*/
public static final UnsagaMaterial CARNELIAN = new UnsagaMaterial("carnelian");
/** 黄龍石(土)*/
public static final UnsagaMaterial TOPAZ = new UnsagaMaterial("topaz");
/** 玄武石(水)*/
public static final UnsagaMaterial RAVENITE = new UnsagaMaterial("ravenite");
/** 蒼龍石(木)*/
public static final UnsagaMaterial LAZULI = new UnsagaMaterial("lazuli");
/** 白虎石(金)*/
public static final UnsagaMaterial OPAL = new UnsagaMaterial("opal");
public static final UnsagaMaterial SERPENTINE = new UnsagaMaterial("serpentine");
public static final UnsagaMaterial COPPER_ORE = new UnsagaMaterial("copper_ore");
public static final UnsagaMaterial QUARTZ = new UnsagaMaterial("quartz");
public static final UnsagaMaterial METEORITE = new UnsagaMaterial("meteorite");
public static final UnsagaMaterial IRON_ORE = new UnsagaMaterial("iron_ore");
public static final UnsagaMaterial SILVER = new UnsagaMaterial("silver");
public static final UnsagaMaterial OBSIDIAN = new UnsagaMaterial("obsidian");
public static final UnsagaMaterial RUBY = new UnsagaMaterial("ruby","corundum");
public static final UnsagaMaterial SAPPHIRE = new UnsagaMaterial("sapphire","corundum");
public static final UnsagaMaterial DIAMOND = new UnsagaMaterial("diamond");
public static final UnsagaMaterial COPPER = new UnsagaMaterial("copper");
public static final UnsagaMaterial LEAD = new UnsagaMaterial("lead");
public static final UnsagaMaterial IRON = new UnsagaMaterial("iron");
public static final UnsagaMaterial METEORIC_IRON = new UnsagaMaterial("meteoric_iron");
public static final UnsagaMaterial STEEL1 = new UnsagaMaterial("steel1","steel");
public static final UnsagaMaterial STEEL2 = new UnsagaMaterial("steel2","steel");
public static final UnsagaMaterial FAERIE_SILVER = new UnsagaMaterial("faerie_silver");
public static final UnsagaMaterial DAMASCUS = new UnsagaMaterial("damascus");
public static final UnsagaMaterial DRAGON_HEART = new UnsagaMaterial("dragon_heart");
public static final UnsagaMaterial SIVA_QUEEN = new UnsagaMaterial("siva_queen");
public static final UnsagaMaterial ROADSTER = new UnsagaMaterial("roadster");
//////////////////こっから追加要素
public static final UnsagaMaterial JUNGLE_WOOD = new UnsagaMaterial("jungle_wood");
public static final UnsagaMaterial SPRUCE= new UnsagaMaterial("spruce");
public static final UnsagaMaterial BIRCH= new UnsagaMaterial("birch");
public static final UnsagaMaterial ACACIA = new UnsagaMaterial("acacia");
public static final UnsagaMaterial DARK_OAK = new UnsagaMaterial("dark_oak");
public static final UnsagaMaterial GOLD = new UnsagaMaterial("gold");
public static final UnsagaMaterial BRASS = new UnsagaMaterial("brass");
public static final UnsagaMaterial NICKEL_SILVER = new UnsagaMaterial("nickel_silver");
public static final UnsagaMaterial CHALCEDONY = new UnsagaMaterial("chalcedony");
public static final UnsagaMaterial BAMBOO = new UnsagaMaterial("bamboo");
public static final UnsagaMaterial OSMIUM = new UnsagaMaterial("osmium");
public static final UnsagaMaterial STONE = new UnsagaMaterial("stone");
public static final UnsagaMaterial PRISMARINE = new UnsagaMaterial("prismarine");
public static final UnsagaMaterial SHULKER = new UnsagaMaterial("shulker");
public static void register(){
put(FEATHER,COTTON,SILK,VELVET,LIVE_SILK);
put(FUR,SNAKE_LEATHER,CROCODILE_LEATHER,HYDRA_LEATHER);
put(WOOD,CYPRESS,TONERIKO,OAK);
put(TUSK1,TUSK2,BONE1,BONE2);
put(THIN_SCALE,CHITIN,ANCIENT_FISH_SCALE,DRAGON_SCALE);
put(LIGHT_STONE,DARK_STONE);
put(DEBRIS1,DEBRIS2);
put(CARNELIAN,TOPAZ,RAVENITE,OPAL,LAZULI,SERPENTINE);
put(COPPER,COPPER_ORE,IRON,IRON_ORE,SILVER,OBSIDIAN);
put(METEORITE,METEORIC_IRON);
put(RUBY,SAPPHIRE,OBSIDIAN,QUARTZ);
put(DIAMOND,LEAD,STEEL1,STEEL2);
put(FAERIE_SILVER,DAMASCUS,DRAGON_HEART,SIVA_QUEEN,ROADSTER);
put(JUNGLE_WOOD,BIRCH,SPRUCE,ACACIA,DARK_OAK);
put(GOLD,BRASS,NICKEL_SILVER,CHALCEDONY,BAMBOO,OSMIUM,STONE);
put(PRISMARINE,SHULKER);
}
public static void put(UnsagaMaterial... m){
UnsagaMaterialRegistry.instance().register(m);
}
}
|
[
"ahoahomen@gmail.com"
] |
ahoahomen@gmail.com
|
f60f9c5a3ab7653d723d58fae3d8a6d72378632c
|
1074c97cdd65d38c8c6ec73bfa40fb9303337468
|
/rda0105-agl-aus-java-a43926f304e3/xms-delivery/src/main/java/com/gms/delivery/dhl/xmlpi/datatype/pickup/request/OutputFormat.java
|
3b569711c854217a664de63d1b83054870b9a458
|
[] |
no_license
|
gahlawat4u/repoName
|
0361859254766c371068e31ff7be94025c3e5ca8
|
523cf7d30018b7783e90db98e386245edad34cae
|
refs/heads/master
| 2020-05-17T01:26:00.968575
| 2019-04-29T06:11:52
| 2019-04-29T06:11:52
| 183,420,568
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,906
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2016.01.18 at 07:53:58 PM ICT
//
package com.gms.delivery.dhl.xmlpi.datatype.pickup.request;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for OutputFormat.
* <p>
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="OutputFormat">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="PDF"/>
* <enumeration value="PL2"/>
* <enumeration value="ZPL2"/>
* <enumeration value="JPG"/>
* <enumeration value="PNG"/>
* <enumeration value="EPL2"/>
* <enumeration value="EPLN"/>
* <enumeration value="ZPLN"/>
* </restriction>
* </simpleType>
* </pre>
*/
@XmlType(name = "OutputFormat")
@XmlEnum
public enum OutputFormat {
PDF("PDF"),
@XmlEnumValue("PL2")
PL_2("PL2"),
@XmlEnumValue("ZPL2")
ZPL_2("ZPL2"),
JPG("JPG"),
PNG("PNG"),
@XmlEnumValue("EPL2")
EPL_2("EPL2"),
EPLN("EPLN"),
ZPLN("ZPLN");
private final String value;
OutputFormat(String v) {
value = v;
}
public String value() {
return value;
}
public static OutputFormat fromValue(String v) {
for (OutputFormat c : OutputFormat.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"sachin.gahlawat19@gmail.com"
] |
sachin.gahlawat19@gmail.com
|
f6c6108ee137d71e71cf5c3b2ca368c88c011d13
|
db75c2977498151e949971627c5b6b111e7f6f69
|
/guide-project-server/step/v35/src/main/java/com/eomcs/lms/servlet/BoardUpdateServlet.java
|
9b276e6210dc850369045b5cca0f73142648bd47
|
[] |
no_license
|
yh0921k/GuideProject
|
5bd7eb1882d07281ccafafb30bdfe5775bcd80ab
|
b8bba0025acc6086926e810b31ee2dc14efd207c
|
refs/heads/master
| 2020-11-26T03:12:27.536475
| 2020-04-20T09:06:27
| 2020-04-21T00:51:53
| 228,948,427
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 660
|
java
|
package com.eomcs.lms.servlet;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import com.eomcs.lms.dao.BoardDao;
import com.eomcs.lms.domain.Board;
public class BoardUpdateServlet implements Servlet {
BoardDao boardDao;
public BoardUpdateServlet(BoardDao boardDao) {
this.boardDao = boardDao;
}
@Override
public void service(ObjectInputStream in, ObjectOutputStream out) throws Exception {
Board board = (Board) in.readObject();
if (boardDao.update(board) > 0) {
out.writeUTF("OK");
} else {
out.writeUTF("FAIL");
out.writeUTF("해당 번호의 게시물이 없습니다.");
}
}
}
|
[
"yh0921k@gmail.com"
] |
yh0921k@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.