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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3984e68547fd20e4e2e91e0795c36517c54bda1
|
e7765fef3d90e6ee59cbba5bdea3e8f028239c38
|
/src/com/start/netty/httpfile/HttpProxyConfig.java
|
b618248bafa1fb8384a0771d8944a71d0fad560d
|
[] |
no_license
|
BrightStarry/socket
|
55cda3ed428b99bae80cc95fb52f14f4ee05fa32
|
0ef606b6b692b9b4d499815cc6c8c6e6bd5e2c0e
|
refs/heads/master
| 2021-01-20T10:20:57.384051
| 2017-05-05T07:08:35
| 2017-05-05T07:08:35
| 90,347,533
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 479
|
java
|
package com.start.netty.httpfile;
/**
* <br>
* 类 名: HttpCallerConfig <br>
* 描 述: http属性配置参数 <br>
*/
public class HttpProxyConfig {
/**
* 最大连接数
*/
public static int MAX_TOTAL_CONNECTIONS = 800;
/**
* 每个路由最大连接数
*/
public static int MAX_ROUTE_CONNECTIONS = 400;
/**
* 连接超时时间
*/
public static int CONNECT_TIMEOUT = 10000;
/**
* 读取超时时间
*/
public static int READ_TIMEOUT = 10000;
}
|
[
"970389745@qq.com"
] |
970389745@qq.com
|
277d09b5f4afcbadffb2f7da2051d4f458e9b341
|
a4cb372ced240bf1cf0a9d123bdd4a805ff05df6
|
/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/system/DiskSpaceHealthIndicatorTests.java
|
1d151e882544dab1bf13ed1e13a4147d427376c9
|
[] |
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,690
|
java
|
/*
* Copyright 2012-2020 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.actuate.system;
import java.io.File;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.actuate.health.Status;
import org.springframework.util.unit.DataSize;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;
/**
* Tests for {@link DiskSpaceHealthIndicator}.
*
* @author Mattias Severson
* @author Stephane Nicoll
*/
@ExtendWith(MockitoExtension.class)
class DiskSpaceHealthIndicatorTests {
private static final DataSize THRESHOLD = DataSize.ofKilobytes(1);
private static final DataSize TOTAL_SPACE = DataSize.ofKilobytes(10);
@Mock
private File fileMock;
private HealthIndicator healthIndicator;
@BeforeEach
void setUp() {
this.healthIndicator = new DiskSpaceHealthIndicator(this.fileMock, THRESHOLD);
}
@Test
void diskSpaceIsUp() {
given(this.fileMock.exists()).willReturn(true);
long freeSpace = THRESHOLD.toBytes() + 10;
given(this.fileMock.getUsableSpace()).willReturn(freeSpace);
given(this.fileMock.getTotalSpace()).willReturn(TOTAL_SPACE.toBytes());
Health health = this.healthIndicator.health();
assertThat(health.getStatus()).isEqualTo(Status.UP);
assertThat(health.getDetails().get("threshold")).isEqualTo(THRESHOLD.toBytes());
assertThat(health.getDetails().get("free")).isEqualTo(freeSpace);
assertThat(health.getDetails().get("total")).isEqualTo(TOTAL_SPACE.toBytes());
assertThat(health.getDetails().get("exists")).isEqualTo(true);
}
@Test
void diskSpaceIsDown() {
given(this.fileMock.exists()).willReturn(true);
long freeSpace = THRESHOLD.toBytes() - 10;
given(this.fileMock.getUsableSpace()).willReturn(freeSpace);
given(this.fileMock.getTotalSpace()).willReturn(TOTAL_SPACE.toBytes());
Health health = this.healthIndicator.health();
assertThat(health.getStatus()).isEqualTo(Status.DOWN);
assertThat(health.getDetails().get("threshold")).isEqualTo(THRESHOLD.toBytes());
assertThat(health.getDetails().get("free")).isEqualTo(freeSpace);
assertThat(health.getDetails().get("total")).isEqualTo(TOTAL_SPACE.toBytes());
assertThat(health.getDetails().get("exists")).isEqualTo(true);
}
@Test
void whenPathDoesNotExistDiskSpaceIsDown() {
Health health = new DiskSpaceHealthIndicator(new File("does/not/exist"), THRESHOLD).health();
assertThat(health.getStatus()).isEqualTo(Status.DOWN);
assertThat(health.getDetails().get("free")).isEqualTo(0L);
assertThat(health.getDetails().get("total")).isEqualTo(0L);
assertThat(health.getDetails().get("exists")).isEqualTo(false);
}
}
|
[
"zhaobinxian@greatyun.com"
] |
zhaobinxian@greatyun.com
|
c09f1bdbd2b14e05f7b5bb13d0b91fb08bbdc242
|
58822b5c6c22bc6ac9e301989b068c714d177587
|
/src/main/java/aws/example/s3/GetObject.java
|
a68c24c6658550a413c99ea191b3e0b6a7b22011
|
[] |
no_license
|
bofei222/s3examples
|
5f52bf5f526a9c9f8be822241b347edbcac70ef7
|
406f8fab26153dcbcb4b899f874a2bd9273d22a7
|
refs/heads/master
| 2020-04-15T04:30:26.115649
| 2019-04-19T03:01:38
| 2019-04-19T03:01:38
| 163,961,785
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,091
|
java
|
//snippet-sourcedescription:[GetObject.java demonstrates how to get an object within an Amazon S3 bucket.]
//snippet-keyword:[Java]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon S3]
//snippet-keyword:[getObject]
//snippet-service:[s3]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[]
//snippet-sourceauthor:[soo-aws]
/*
Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
This file is licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License. A copy of
the License is located at
http://aws.amazon.com/apache2.0/
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
*/
package aws.example.s3;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.S3Object;
import com.amazonaws.services.s3.model.S3ObjectInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Get an object within an Amazon S3 bucket.
*
* This code expects that you have AWS credentials set up per:
* http://docs.aws.amazon.com/java-sdk/latest/developer-guide/setup-credentials.html
*/
public class GetObject
{
public static void main(String[] args)
{
final String USAGE = "\n" +
"To run this example, supply the name of an S3 bucket and object to\n" +
"download from it.\n" +
"\n" +
"Ex: GetObject <bucketname> <filename>\n";
if (args.length < -2) {
System.out.println(USAGE);
System.exit(1);
}
String bucket_name = "com.bf";
String key_name = "图片/杰尼龟.jpg";
System.out.format("Downloading %s from S3 bucket %s...\n", key_name, bucket_name);
AmazonS3 s3 = AmazonS3ClientBuilder.standard().withRegion(Regions.AP_NORTHEAST_1).build();
try {
S3Object o = s3.getObject(bucket_name, key_name);
S3ObjectInputStream s3is = o.getObjectContent();
FileOutputStream fos = new FileOutputStream(new File(key_name));
byte[] read_buf = new byte[1024];
int read_len = 0;
while ((read_len = s3is.read(read_buf)) > 0) {
fos.write(read_buf, 0, read_len);
}
s3is.close();
fos.close();
} catch (AmazonServiceException e) {
System.err.println(e.getErrorMessage());
System.exit(1);
} catch (FileNotFoundException e) {
System.err.println(e.getMessage());
System.exit(1);
} catch (IOException e) {
System.err.println(e.getMessage());
System.exit(1);
}
System.out.println("Done!");
}
}
|
[
"bofei222@163.com"
] |
bofei222@163.com
|
de2293c2a90e8c84e744722ca6d12717056fb5c0
|
f2fcbf6704eaf09e600ea20d31434d6e530e2115
|
/app/src/test/java/com/duanlei/game2048/ExampleUnitTest.java
|
a549af6b5d307a13fece055278f4273da6aaea9c
|
[] |
no_license
|
nspduanlei/Game2048
|
13cf35e9f76c39774e0c1f9d90209afeeb8bdb61
|
4d6b8cd5a4ba488e71110acf6ba4342648e0e8f0
|
refs/heads/master
| 2021-01-10T05:49:09.363244
| 2016-01-11T02:35:43
| 2016-01-11T02:35:43
| 48,742,018
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 313
|
java
|
package com.duanlei.game2048;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
|
[
"455483293@qq.com"
] |
455483293@qq.com
|
021dd6fdcae698be6c3190c3a327d12d7b63bb23
|
b49ee04177c483ab7dab6ee2cd3cabb44a159967
|
/dgroupDoctorCompany/src/main/java/com/dachen/dgroupdoctorcompany/entity/BaseCompare.java
|
82805f7e25acb5caa649fba09a8208d171a7719a
|
[] |
no_license
|
butaotao/MedicineProject
|
8a22a98a559005bb95fee51b319535b117f93d5d
|
8e57c1e0ee0dac2167d379edd9d97306b52d3165
|
refs/heads/master
| 2020-04-09T17:29:36.570453
| 2016-09-13T09:17:05
| 2016-09-13T09:17:05
| 68,094,294
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 171
|
java
|
package com.dachen.dgroupdoctorcompany.entity;
import java.io.Serializable;
/**
* Created by Burt on 2016/5/20.
*/
public class BaseCompare implements Serializable{
}
|
[
"1802928215@qq.com"
] |
1802928215@qq.com
|
98c464ee6ae8dad9b398b290ec3090daf810dc7c
|
3314bde6ee6f141ff4634bff6fc9a3978d10cca2
|
/src/main/java/sticklings/util/Location.java
|
44f79a6a87b2de016f78e28945bb880d5db89c4d
|
[] |
no_license
|
Sticklings/Sticklings-Game
|
bbce40f92df2c6e0729d895c6f3bc3377b96e968
|
5079dc50c4a8afd8f81bf0de7484973997957d45
|
refs/heads/master
| 2020-07-28T17:44:02.698795
| 2016-11-04T05:40:09
| 2016-11-04T05:40:09
| 67,479,603
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,061
|
java
|
package sticklings.util;
/**
* Represents a location in 2D space
*/
public class Location {
public double x;
public double y;
/**
* Creates a new locatoin at 0,0
*/
public Location() {
this(0, 0);
}
/**
* Creates a new location at the given coords
*
* @param x The x coord
* @param y The y coord
*/
public Location(double x, double y) {
this.x = x;
this.y = y;
}
@Override
public String toString() {
return String.format("Location{%.2f,%.2f}", x, y);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof Location) {
Location other = (Location) obj;
return x == other.x && y == other.y;
} else {
return false;
}
}
@Override
public int hashCode() {
int hash = 7;
hash = hash * 31 + Double.hashCode(x);
hash = hash * 31 + Double.hashCode(y);
return hash;
}
/**
* Clones this Location
*
* @return A new Location that is exactly the same as this
*/
public Location copy() {
return new Location(x, y);
}
}
|
[
"steven.schmoll@gmail.com"
] |
steven.schmoll@gmail.com
|
1219d17936de77a256b8884f4814ea34eee3408f
|
08a95d58927c426e515d7f6d23631abe734105b4
|
/Project/bean/com/dimata/harisma/form/masterdata/FrmDocMasterActionParam.java
|
c596f2f2620f4081ff0a48192e336e7cde09f550
|
[] |
no_license
|
Bagusnanda90/javaproject
|
878ce3d82f14d28b69b7ef20af675997c73b6fb6
|
1c8f105d4b76c2deba2e6b8269f9035c67c20d23
|
refs/heads/master
| 2020-03-23T15:15:38.449142
| 2018-07-21T00:31:47
| 2018-07-21T00:31:47
| 141,734,002
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,014
|
java
|
/* Created on : 30 September 2011 [time] AM/PM
*
* @author : Ari_20110930
* @version : [version]
*/
/*******************************************************************
* Class Description : FrmCompany
* Imput Parameters : [input parameter ...]
* Output : [output ...]
*******************************************************************/
package com.dimata.harisma.form.masterdata;
/**
*
* @author Priska
*/
/* java package */
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/* qdep package */
import com.dimata.qdep.form.*;
/* project package */
import com.dimata.harisma.entity.masterdata.*;
public class FrmDocMasterActionParam extends FRMHandler implements I_FRMInterface, I_FRMType{
private DocMasterActionParam docMasterAction;
public static final String FRM_NAME_DOC_MASTER_ACTION_PARAM = "FRM_NAME_DOC_MASTER_ACTION_PARAM";
public static final int FRM_FIELD_DOC_ACTION_PARAM_ID = 0;
public static final int FRM_FIELD_ACTION_PARAMETER = 1;
public static final int FRM_FIELD_OBJECT_NAME = 2;
public static final int FRM_FIELD_OBJECT_ATTRIBUTE = 3;
public static final int FRM_FIELD_DOC_ACTION_ID = 4;
public static String[] fieldNames = {
"FRM_FIELD_DOC_ACTION_PARAM_ID",
"FRM_FIELD_ACTION_PARAMETER",
"FRM_FIELD_OBJECT_NAME",
"FRM_FIELD_OBJECT_ATTRIBUTE",
"FRM_FIELD_DOC_ACTION_ID"
};
public static int[] fieldTypes = {
TYPE_LONG,
TYPE_STRING,
TYPE_STRING,
TYPE_STRING,
TYPE_LONG
};
public FrmDocMasterActionParam() {
}
public FrmDocMasterActionParam(DocMasterActionParam docMasterAction) {
this.docMasterAction = docMasterAction;
}
public FrmDocMasterActionParam(HttpServletRequest request, DocMasterActionParam docMasterAction) {
super(new FrmDocMasterActionParam(docMasterAction), request);
this.docMasterAction = docMasterAction;
}
public String getFormName() {
return FRM_NAME_DOC_MASTER_ACTION_PARAM;
}
public int[] getFieldTypes() {
return fieldTypes;
}
public String[] getFieldNames() {
return fieldNames;
}
public int getFieldSize() {
return fieldNames.length;
}
public DocMasterActionParam getEntityObject() {
return docMasterAction;
}
public void requestEntityObject(DocMasterActionParam docMasterAction) {
try {
this.requestParam();
docMasterAction.setDocActionParamId(getLong(FRM_FIELD_DOC_ACTION_PARAM_ID));
docMasterAction.setObjectAtribut(getString(FRM_FIELD_OBJECT_ATTRIBUTE));
docMasterAction.setObjectName(getString(FRM_FIELD_OBJECT_NAME));
docMasterAction.setActionParameter(getString(FRM_FIELD_ACTION_PARAMETER));
docMasterAction.setDocActionId(getLong(FRM_FIELD_DOC_ACTION_ID));
} catch (Exception e) {
System.out.println("Error on requestEntityObject : " + e.toString());
}
}
}
|
[
"agungbagusnanda90@gmai.com"
] |
agungbagusnanda90@gmai.com
|
5306d4da0597d642503ee71142064211f4484442
|
b28cd15d937184ac1749110a04095cbb8a2906a9
|
/_ Essentials/src/net/eduard/essentials/command/WhiteListAddCommand.java
|
a85227969c72bb36506c1730f316b16d87a08939
|
[] |
no_license
|
ScoltBr/plugins
|
9a061ebe283390756d5ce58ebe134223e4120d15
|
f3e7a589b1bfe059d87de64c757fd6c43382fe36
|
refs/heads/master
| 2020-04-21T18:33:10.505101
| 2019-01-25T23:47:09
| 2019-01-25T23:47:09
| null | 0
| 0
| null | null | null | null |
WINDOWS-1250
|
Java
| false
| false
| 891
|
java
|
package net.eduard.essentials.command;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import net.eduard.api.lib.manager.CommandManager;
public class WhiteListAddCommand extends CommandManager {
public WhiteListAddCommand() {
super("add", "adicionar");
}
public String message = "§bVoce adicionou o §3$player§b na Lista Branca";
@SuppressWarnings("deprecation")
@Override
public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (args.length <= 1) {
sender.sendMessage("§c/" + label + " " + args[0]+" <player>");
return true;
}
String name = args[1];
OfflinePlayer target = Bukkit.getOfflinePlayer(name);
target.setWhitelisted(true);
sender.sendMessage(message.replace("$player", target.getName()));
return true;
}
}
|
[
"eduardkiller@hotmail.com"
] |
eduardkiller@hotmail.com
|
cdbd9abddf890c2f6c54df9e6d313a098aae1fbe
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/r/a/l.java
|
47a986c26a424849d0ad3711eb8321bf18441302
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 3,524
|
java
|
package com.tencent.mm.r.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.protocal.protobuf.esc;
import com.tencent.mm.protocal.protobuf.kd;
import i.a.a.b;
import java.util.LinkedList;
public final class l
extends esc
{
public String msg;
public int ret;
public final int op(int paramInt, Object... paramVarArgs)
{
AppMethodBeat.i(231425);
if (paramInt == 0)
{
paramVarArgs = (i.a.a.c.a)paramVarArgs[0];
if (this.BaseResponse == null)
{
paramVarArgs = new b("Not all required fields were included: BaseResponse");
AppMethodBeat.o(231425);
throw paramVarArgs;
}
if (this.BaseResponse != null)
{
paramVarArgs.qD(1, this.BaseResponse.computeSize());
this.BaseResponse.writeFields(paramVarArgs);
}
paramVarArgs.bS(2, this.ret);
if (this.msg != null) {
paramVarArgs.g(3, this.msg);
}
AppMethodBeat.o(231425);
return 0;
}
if (paramInt == 1) {
if (this.BaseResponse == null) {
break label436;
}
}
label436:
for (paramInt = i.a.a.a.qC(1, this.BaseResponse.computeSize()) + 0;; paramInt = 0)
{
int i = paramInt + i.a.a.b.b.a.cJ(2, this.ret);
paramInt = i;
if (this.msg != null) {
paramInt = i + i.a.a.b.b.a.h(3, this.msg);
}
AppMethodBeat.o(231425);
return paramInt;
if (paramInt == 2)
{
paramVarArgs = new i.a.a.a.a((byte[])paramVarArgs[0], unknownTagHandler);
for (paramInt = esc.getNextFieldNumber(paramVarArgs); paramInt > 0; paramInt = esc.getNextFieldNumber(paramVarArgs)) {
if (!super.populateBuilderWithField(paramVarArgs, this, paramInt)) {
paramVarArgs.kFT();
}
}
if (this.BaseResponse == null)
{
paramVarArgs = new b("Not all required fields were included: BaseResponse");
AppMethodBeat.o(231425);
throw paramVarArgs;
}
AppMethodBeat.o(231425);
return 0;
}
if (paramInt == 3)
{
Object localObject = (i.a.a.a.a)paramVarArgs[0];
l locall = (l)paramVarArgs[1];
paramInt = ((Integer)paramVarArgs[2]).intValue();
switch (paramInt)
{
default:
AppMethodBeat.o(231425);
return -1;
case 1:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
kd localkd = new kd();
if ((localObject != null) && (localObject.length > 0)) {
localkd.parseFrom((byte[])localObject);
}
locall.BaseResponse = localkd;
paramInt += 1;
}
AppMethodBeat.o(231425);
return 0;
case 2:
locall.ret = ((i.a.a.a.a)localObject).ajGk.aar();
AppMethodBeat.o(231425);
return 0;
}
locall.msg = ((i.a.a.a.a)localObject).ajGk.readString();
AppMethodBeat.o(231425);
return 0;
}
AppMethodBeat.o(231425);
return -1;
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes.jar
* Qualified Name: com.tencent.mm.r.a.l
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
d6e58a85ab5d928d4bfdc56e1da93f148e1fe7cf
|
68de9ba2dc1ed171fe42b6fdbc18f747a8220a7c
|
/pagamento/src/main/java/com/pierredev/repositories/VendaRepository.java
|
a9ebe7989116bed1827958976f04e826b5448aa2
|
[] |
no_license
|
pierreEnoc/ms-vendas-3
|
0feb2aa30ba43ec97f95d964337a860eea0e84b5
|
333b32e856981aeb1bf81791137e8c5504b58536
|
refs/heads/main
| 2023-03-29T07:10:15.048975
| 2021-04-07T02:27:37
| 2021-04-07T02:27:37
| 355,265,197
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 273
|
java
|
package com.pierredev.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.pierredev.entities.Venda;
@Repository
public interface VendaRepository extends JpaRepository<Venda, Long> {
}
|
[
"pierre.enoc@gympass.com"
] |
pierre.enoc@gympass.com
|
53d5f842da6f6349edcb8a935fa7b7337162d864
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteVSwitchResponse.java
|
8cca9ef31422ae2923d48bb25a2a5135a880576f
|
[
"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,212
|
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.ens.model.v20171110;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.ens.transform.v20171110.DeleteVSwitchResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteVSwitchResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public DeleteVSwitchResponse getInstance(UnmarshallerContext context) {
return DeleteVSwitchResponseUnmarshaller.unmarshall(this, context);
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
c82ce99f52f9bb9a5c58cea5291541da413a3ad9
|
1b9878b1defb914f5f65cb14ee3ef9eb292988c3
|
/cooper-webserver/src/main/java/jdepend/webserver/web/WebRelationGraphUtil.java
|
d7b1c178a81fdde321503ca20cf6f696b290ff84
|
[
"Apache-2.0"
] |
permissive
|
tokyobs/cooper
|
116303ca5e3852d86db5df069cafd36c92732587
|
baac23d8372a4ece5c103a815b2a573a55ee59cb
|
refs/heads/master
| 2022-01-07T10:56:50.155287
| 2019-04-28T08:14:33
| 2019-04-28T08:14:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,593
|
java
|
package jdepend.webserver.web;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jdepend.model.Element;
import jdepend.model.Relation;
import net.sf.json.JSONArray;
public class WebRelationGraphUtil {
static RelationGraphData getGraphData(Collection<Relation> relations) {
Collection<Element> elements = Relation.calElements(relations);
List<Node> nodes = new ArrayList<Node>();
Node node;
for (Element element : elements) {
node = new Node();
node.setCategory(0);
node.setName(element.getName());
nodes.add(node);
}
List<Edge> edges = new ArrayList<Edge>();
Edge edge;
for (Relation relation : relations) {
edge = new Edge();
edge.setSource(getPosition(elements, relation.getCurrent()));
edge.setTarget(getPosition(elements, relation.getDepend()));
edges.add(edge);
}
return new RelationGraphData(nodes, edges);
}
private static int getPosition(Collection<Element> elements, Element obj) {
int i = 0;
for (Element element : elements) {
if (obj.equals(element)) {
return i;
}
i++;
}
throw new RuntimeException("数据错误!");
}
public static class RelationGraphData {
private List<Node> nodes;
private List<Edge> edges;
public RelationGraphData(List<Node> nodes, List<Edge> edges) {
super();
this.nodes = nodes;
this.edges = edges;
}
public String getNodeInfo() {
return JSONArray.fromObject(nodes).toString();
}
public String getEdgeInfo() {
return JSONArray.fromObject(edges).toString();
}
}
public static class Node {
private int category;
private String name;
private int value;
public int getCategory() {
return category;
}
public void setCategory(int category) {
this.category = category;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}
public static class Edge {
private int source;
private int target;
private int weight;
public int getSource() {
return source;
}
public void setSource(int source) {
this.source = source;
}
public int getTarget() {
return target;
}
public void setTarget(int target) {
this.target = target;
}
public int getWeight() {
return weight;
}
public void setWeight(int weight) {
this.weight = weight;
}
}
}
|
[
"wangdg@neusoft.com"
] |
wangdg@neusoft.com
|
30af34ead8ab58b061597e2020aa9c09f23f6bce
|
70448098958ff376e2f96cf798e76e593341e18f
|
/MVCProj06-DataRendering/src/main/java/com/nt/bo/EmployeeBO.java
|
2681840eeeaf49f9fda7d24a06ce344e37032692
|
[] |
no_license
|
8341849309/spring-mvc
|
285fca9bf0a4f8100bab8ff5dd79ff4875d3f28c
|
c7bec3000ae439dce4f7fa9305d5bfdd7c1141b3
|
refs/heads/master
| 2023-05-23T20:18:51.253857
| 2021-06-18T14:40:01
| 2021-06-18T14:40:01
| 349,339,808
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 271
|
java
|
package com.nt.bo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NonNull;
@Data
@AllArgsConstructor
public class EmployeeBO {
private int empId;
@NonNull
private String ename;
private float salary;
private String addrs;
}
|
[
"hp@venkat"
] |
hp@venkat
|
09f2c20e6d5eeb6572170529cc6d17f1233d0875
|
efb7efbbd6baa5951748dfbe4139e18c0c3608be
|
/sources/org/bitcoinj/store/BlockStore.java
|
deaa30f90abd984af4b60addf9b1c885cb958fa0
|
[] |
no_license
|
blockparty-sh/600302-1_source_from_JADX
|
08b757291e7c7a593d7ec20c7c47236311e12196
|
b443bbcde6def10895756b67752bb1834a12650d
|
refs/heads/master
| 2020-12-31T22:17:36.845550
| 2020-02-07T23:09:42
| 2020-02-07T23:09:42
| 239,038,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 537
|
java
|
package org.bitcoinj.store;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.core.Sha256Hash;
import org.bitcoinj.core.StoredBlock;
public interface BlockStore {
void close() throws BlockStoreException;
StoredBlock get(Sha256Hash sha256Hash) throws BlockStoreException;
StoredBlock getChainHead() throws BlockStoreException;
NetworkParameters getParams();
void put(StoredBlock storedBlock) throws BlockStoreException;
void setChainHead(StoredBlock storedBlock) throws BlockStoreException;
}
|
[
"hello@blockparty.sh"
] |
hello@blockparty.sh
|
7ec5376149473a133d974963b5557a2169b08e05
|
7f3f9be71479f48b6dbc75f8180f4540f590a48d
|
/src/main/java/com/eduspace/dao/email/interfac/EmailLogDaoI.java
|
c1aa787ea40c85e5f816725f06491982b5236b98
|
[] |
no_license
|
hechenwe/uutool
|
d721521f9c1b87de79633230f45ddcf49c2fb6c2
|
b8e66f22d3d89ba9d43d3445641aa6dcf227af58
|
refs/heads/master
| 2021-01-17T14:51:22.941572
| 2016-08-08T09:14:43
| 2016-08-08T09:14:43
| 55,034,318
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,271
|
java
|
package com.eduspace.dao.email.interfac;
import java.util.List;
import com.eduspace.entity.email.EmailDayTypeStat;
import com.eduspace.entity.email.EmailLog;
import com.sooncode.jdbc.DaoI;
public interface EmailLogDaoI extends DaoI<EmailLog> {
/**
* 获取 产品的编号 集
* @param requestDate 短信发送日期
* @param messageState 短信状态
* @return 产品的编号 集
*/
public List<String> getProductIds(String requestDate,String messageState);
/**
*
* @param productId 产品编号
* @param requestDate 请求时间
* @param messageState 短信状态
* @return 短信数量
*/
public Long getNumber(String productId, String requestDate, String messageState) ;
/**
* 获取当日 短信类型 和短信类型对应的短信数量
* @param productId 产品编号
* @param requestDate 请求时间
* @return 把 短信类别 和短信数量 封装在 SmsDayTypeStat 内
*/
public List<EmailDayTypeStat> getTypeOfNumber(String productId, String requestDate);
/**
* 获取某日 短信日志条数
*/
public Long getSmsSize(String dateString) ;
/**
* 删除某日 短信日志条数
*/
public Long deleteSms(String dateString) ;
}
|
[
"hechen@e-eduspace.com"
] |
hechen@e-eduspace.com
|
627736cdabf03cb8d1924f9235c91aafe00218d2
|
85c8a4b7df9d5bcc2918724e34708a6c28556b14
|
/app-service/src/main/java/com/chenyifaer/app/entity/dto/WechatTokenDTO.java
|
6dd64eb013d34cbd6a2431b85f21047766d30285
|
[] |
no_license
|
wudonghe1996/chenyifaer-shop
|
9b38f59a81bc08a129ad15aa4d838ebea66c0c9b
|
ca51946af31dec7b154c5b0de685c1408761ccdd
|
refs/heads/master
| 2022-06-24T06:17:07.753068
| 2020-05-09T03:58:27
| 2020-05-09T03:58:27
| 178,018,127
| 1
| 1
| null | 2022-06-17T02:05:40
| 2019-03-27T15:02:41
|
Java
|
UTF-8
|
Java
| false
| false
| 879
|
java
|
package com.chenyifaer.app.entity.dto;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* _____ _ __ ___ ______ ________ ____ ______ ____
* / ____| | \ \ / (_) ____| / /____ |___ \____ |___ \
* | | | |__ ___ _ _\ \_/ / _| |__ __ _ ___ _ __ / /_ / / __) | / / __) |
* | | | '_ \ / _ \ '_ \ / | | __/ _` |/ _ \ '__| '_ \ / / |__ < / / |__ <
* | |____| | | | __/ | | | | | | | | (_| | __/ | | (_) / / ___) |/ / ___) |
* \_____|_| |_|\___|_| |_|_| |_|_| \__,_|\___|_| \___/_/ |____//_/ |____/
*
*/
/**
* 获取微信token返回值
* @Author:wudh
* @Date: 2019/7/9 10:57
*/
@Data
@Accessors(chain = true)
public class WechatTokenDTO {
/** accessToken */
private String access_token;
/** 过期时间 */
private String expires_in;
}
|
[
"1044717927@qq.com"
] |
1044717927@qq.com
|
501eff0fe021cf450048756f27c38f6218dba908
|
e26a8434566b1de6ea6cbed56a49fdb2abcba88b
|
/model-setr-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/StayOnSideType1Code.java
|
4b5ef77e28cecf8020d04c199c8b0b3ca1633bb6
|
[
"Apache-2.0"
] |
permissive
|
adilkangerey/prowide-iso20022
|
6476c9eb8fafc1b1c18c330f606b5aca7b8b0368
|
3bbbd6804eb9dc4e1440680e5f9f7a1726df5a61
|
refs/heads/master
| 2023-09-05T21:41:47.480238
| 2021-10-03T20:15:26
| 2021-10-03T20:15:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,105
|
java
|
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for StayOnSideType1Code.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="StayOnSideType1Code">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="OFFR"/>
* <enumeration value="BIDE"/>
* <enumeration value="DCAR"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "StayOnSideType1Code")
@XmlEnum
public enum StayOnSideType1Code {
/**
* An order pegged against the offer price.
*
*/
OFFR,
/**
* An order pegged against the bid price.
*
*/
BIDE,
/**
* Indicates a voluntary absence of choice/decision.
*
*/
DCAR;
public String value() {
return name();
}
public static StayOnSideType1Code fromValue(String v) {
return valueOf(v);
}
}
|
[
"sebastian@prowidesoftware.com"
] |
sebastian@prowidesoftware.com
|
5e1b2650ba3efd3679a1e2c4b65637c51939c674
|
d82acd125fb7d6570e58a522ed1b8f28af11123a
|
/ui/data/RD findbugs/model/src/edu/umd/cs/findbugs/ba/AbstractBlockOrder.java
|
c31855fd290bb711ffa8b024528be1fd6cf72f13
|
[
"Apache-2.0"
] |
permissive
|
fetteradler/Getaviz
|
dba3323060d3bca81d2d93a2c1a19444ca406e16
|
9e80d842312f55b798044c069a1ef297e64da86f
|
refs/heads/master
| 2020-03-22T11:34:46.963754
| 2018-08-29T14:19:09
| 2018-08-29T14:19:09
| 139,980,787
| 0
| 0
|
Apache-2.0
| 2018-07-06T12:16:17
| 2018-07-06T12:16:17
| null |
UTF-8
|
Java
| false
| false
| 2,306
|
java
|
/*
* Bytecode Analysis Framework
* Copyright (C) 2003,2004 University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package edu.umd.cs.findbugs.ba;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
/**
* Abstract base class for BlockOrder variants. It allows the subclass to
* specify just a Comparator for BasicBlocks, and handles the work of doing the
* sorting and providing Iterators.
*
* @see BlockOrder
*/
public abstract class AbstractBlockOrder implements BlockOrder {
private final ArrayList<BasicBlock> blockList;
private final Comparator<BasicBlock> comparator;
public AbstractBlockOrder(CFG cfg, Comparator<BasicBlock> comparator) {
this.comparator = comparator;
// Put the blocks in an array
int numBlocks = cfg.getNumBasicBlocks(), count = 0;
BasicBlock[] blocks = new BasicBlock[numBlocks];
for (Iterator<BasicBlock> i = cfg.blockIterator(); i.hasNext();) {
blocks[count++] = i.next();
}
assert count == numBlocks;
// Sort the blocks according to the comparator
Arrays.sort(blocks, comparator);
// Put the ordered blocks into an array list
blockList = new ArrayList<BasicBlock>(numBlocks);
for (int i = 0; i < numBlocks; ++i)
blockList.add(blocks[i]);
}
public Iterator<BasicBlock> blockIterator() {
return blockList.iterator();
}
public int compare(BasicBlock b1, BasicBlock b2) {
return comparator.compare(b1, b2);
}
}
// vim:ts=4
|
[
"david.baum@uni-leipzig.de"
] |
david.baum@uni-leipzig.de
|
6a7dd6aa6c70e1fb2aae0a32ffe6ad798b90aca3
|
a8c5b7b04eace88b19b5a41a45f1fb030df393e3
|
/projects/financial/src/main/java/com/opengamma/financial/analytics/model/bond/BondAccruedInterestFromCleanPriceFunction.java
|
edac900db429e1d16674602b886ef6fd3b521e10
|
[
"Apache-2.0"
] |
permissive
|
McLeodMoores/starling
|
3f6cfe89cacfd4332bad4861f6c5d4648046519c
|
7ae0689e06704f78fd9497f8ddb57ee82974a9c8
|
refs/heads/master
| 2022-12-04T14:02:00.480211
| 2020-04-28T17:22:44
| 2020-04-28T17:22:44
| 46,577,620
| 4
| 4
|
Apache-2.0
| 2022-11-24T07:26:39
| 2015-11-20T17:48:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,064
|
java
|
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.bond;
import com.opengamma.analytics.financial.interestrate.InstrumentDerivativeVisitorAdapter;
import com.opengamma.analytics.financial.interestrate.bond.calculator.AccruedInterestFromCleanPriceCalculator;
import com.opengamma.engine.value.ValueRequirementNames;
/**
* Calculates the accrued interest from bond yield.
* @deprecated The parent of this class is deprecated.
* Use {@link com.opengamma.financial.analytics.model.bondcleanprice.BondAccruedInterestFromCleanPriceFunction}
*/
@Deprecated
public class BondAccruedInterestFromCleanPriceFunction extends BondFromCleanPriceFunction {
@Override
protected InstrumentDerivativeVisitorAdapter<Double, Double> getCalculator() {
return AccruedInterestFromCleanPriceCalculator.getInstance();
}
@Override
protected String getValueRequirementName() {
return ValueRequirementNames.ACCRUED_INTEREST;
}
}
|
[
"jim.moores@gmail.com"
] |
jim.moores@gmail.com
|
66cca6fcd55c2a9891bf0fdfd0bbd34a6629e05e
|
072e5e07c495afe68cf1694445c026664658b887
|
/src/com/dcdzsoft/business/mb/MBGetInboxPackage.java
|
21fb5011f7b758f91e6f753df11d13f5796831e0
|
[] |
no_license
|
P79N6A/work-dbs-manager
|
084e8d341d5f84ca43cd1aa20f701e68206e2a6d
|
932009426659ccb10f578f73879960975306d276
|
refs/heads/master
| 2021-09-29T13:13:23.092146
| 2018-11-24T13:29:12
| 2018-11-24T13:29:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,957
|
java
|
package com.dcdzsoft.business.mb;
import javax.sql.RowSet;
import com.dcdzsoft.EduException;
import com.dcdzsoft.sda.db.*;
import com.dcdzsoft.util.*;
import com.dcdzsoft.dto.function.*;
import com.dcdzsoft.dto.business.*;
import com.dcdzsoft.dao.*;
import com.dcdzsoft.dao.common.*;
import com.dcdzsoft.constant.*;
import com.dcdzsoft.business.ActionBean;
import com.dcdzsoft.businessproxy.PushBusinessProxy;
/**
* <p>Title: 智能自助包裹柜系统</p>
* <p>Description: 获取设备在箱包裹信息 </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: dcdzsoft</p>
* @author 王中立
* @version 1.0
*/
public class MBGetInboxPackage extends ActionBean {
public int doBusiness(InParamMBGetInboxPackage in) throws EduException {
utilDAO = this.getUtilDAO();
commonDAO = this.getCommonDAO();
dbSession = this.getCurrentDBSession();
int result = 0;
//1. 验证输入参数是否有效,如果无效返回-1。
if (StringUtils.isEmpty(in.OperID)
|| StringUtils.isEmpty(in.TerminalNo))
throw new EduException(ErrorCode.ERR_PARMERR);
//2. 调用CommonDAO.isOnline(操作员编号)判断操作员是否在线。
OPOperOnline operOnline = commonDAO.isOnline(in.OperID);
//3. 调用UtilDAO.getCurrentDateTime()获得系统日期时间。
java.sql.Timestamp sysDateTime = utilDAO.getCurrentDateTime();
in.AutoFlag = "0";
///推送到设备端
PushBusinessProxy.doBusiness(in);
// 调用CommonDAO.addOperatorLog(OperID,功能编号,系统日期时间,“”)
OPOperatorLog log = new OPOperatorLog();
log.OperID = in.OperID;
log.FunctionID = in.getFunctionID();
log.OccurTime = sysDateTime;
log.StationAddr = operOnline.LoginIPAddr;
log.Remark = in.TerminalNo;
commonDAO.addOperatorLog(log);
return result;
}
}
|
[
"zhengxiaoyong@hzdongcheng.com"
] |
zhengxiaoyong@hzdongcheng.com
|
faab56af354ed60fe4c381cc25feb7f3fe776036
|
23b6d6971a66cf057d1846e3b9523f2ad4e05f61
|
/MLMN-Statistics/src/vn/com/vhc/vmsc2/statistics/web/controller/WkRouteCoreReportController.java
|
2546c2dab5b7d598c46e36b0d55ddb695f9278a8
|
[] |
no_license
|
vhctrungnq/mlmn
|
943f5a44f24625cfac0edc06a0d1b114f808dfb8
|
d3ba1f6eebe2e38cdc8053f470f0b99931085629
|
refs/heads/master
| 2020-03-22T13:48:30.767393
| 2018-07-08T05:14:12
| 2018-07-08T05:14:12
| 140,132,808
| 0
| 1
| null | 2018-07-08T05:29:27
| 2018-07-08T02:57:06
|
Java
|
UTF-8
|
Java
| false
| false
| 6,709
|
java
|
package vn.com.vhc.vmsc2.statistics.web.controller;
import java.util.Calendar;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import vn.com.vhc.vmsc2.statistics.dao.WkBscCoreDAO;
import vn.com.vhc.vmsc2.statistics.dao.WkMscQosDAO;
import vn.com.vhc.vmsc2.statistics.dao.WkRouteCoreDAO;
import vn.com.vhc.vmsc2.statistics.dao.WkRouteCoreReportDAO;
import vn.com.vhc.vmsc2.statistics.domain.WkBscCore;
import vn.com.vhc.vmsc2.statistics.domain.WkMscQos;
import vn.com.vhc.vmsc2.statistics.domain.WkRouteCore;
import vn.com.vhc.vmsc2.statistics.domain.WkRouteCoreReport;
import vn.com.vhc.vmsc2.statistics.web.utils.Helper;
@Controller
@RequestMapping("/report/core/route/wk/*")
public class WkRouteCoreReportController extends BaseController {
@Autowired
private WkBscCoreDAO wkBscCoreDao;
@Autowired
private WkMscQosDAO wkMscQosDao;
@Autowired
private WkRouteCoreDAO wkRouteCoreDao;
@Autowired
private WkRouteCoreReportDAO wkRouteCoreReportDao;
@RequestMapping("detail")
public String showReport(@RequestParam(required = true) String fromNode, @RequestParam(required = true) String toNode,
@RequestParam(required = false) String week,@RequestParam(required = false) String year, ModelMap model, HttpServletRequest request) {
Calendar now = Calendar.getInstance();
now.setFirstDayOfWeek(Calendar.MONDAY);
if (week == null)
week = String.valueOf(now.get(Calendar.WEEK_OF_YEAR) - 2);
if (year == null)
year = String.valueOf(now.get(Calendar.YEAR));
Map<String, String> fromNodeMap = null;
Map<String, String> toNodeMap = null;
if (isMsc(fromNode)) {
fromNodeMap = mscNodeMap(week,year, fromNode);
} else if (isBsc(fromNode)) {
fromNodeMap = bscNodeMap(week,year, fromNode);
}
if (isMsc(toNode)) {
toNodeMap = mscNodeMap(week,year, toNode);
} else if (isBsc(toNode)) {
toNodeMap = bscNodeMap(week, year, toNode);
}
List<WkRouteCore> wkRouteCores = wkRouteCoreDao.filter(week,year, fromNode, toNode);
WkRouteCoreReport wkRouteCoreReport = wkRouteCoreReportDao.selectByPrimaryKey(fromNode, toNode, Integer.parseInt(week), Integer.parseInt(year));
model.addAttribute("wkRouteCoreReport", wkRouteCoreReport);
model.addAttribute("week", week);
model.addAttribute("year", year);
model.addAttribute("fromNode", fromNode);
model.addAttribute("toNode", toNode);
model.addAttribute("fromNodeMap", fromNodeMap);
model.addAttribute("toNodeMap", toNodeMap);
model.addAttribute("wkRouteCores", wkRouteCores);
return "wkRouteCoreReportDetailList";
}
private boolean isMsc(String node) {
return node.charAt(0) == 'M';
}
private boolean isBsc(String node) {
return node.charAt(0) == 'B';
}
private Map<String, String> mscNodeMap(String week,String year, String node) {
Map<String, String> mscNodeMap = new LinkedHashMap<String, String>();
WkMscQos wkMscQos = wkMscQosDao.selectByPrimaryKey(node, Integer.parseInt(week),Integer.parseInt( year));
if (wkMscQos == null)
wkMscQos = new WkMscQos();
mscNodeMap.put("%", "N/A");
mscNodeMap.put("MCSSR (%)",
"<a href=\"/VMSC2-Statistics/report/core/msc/wk.htm?mscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#mcssr\">" + Helper.float2String(wkMscQos.getMcssr()) + "%</a>");
mscNodeMap.put("LUSR (%)", "<a href=\"/VMSC2-Statistics/report/core/msc/wk.htm?mscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#lusr\">" + Helper.float2String(wkMscQos.getLusr())
+ "%</a>");
mscNodeMap.put("PSR (%)", "<a href=\"/VMSC2-Statistics/report/core/msc/wk.htm?mscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#psr\">" + Helper.float2String(wkMscQos.getPsr())
+ "%</a>");
mscNodeMap.put("HSR (%)", "<a href=\"/VMSC2-Statistics/report/core/msc/wk.htm?mscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) +"#hsr\">" + Helper.float2String(wkMscQos.getHsr())
+ "%</a>");
mscNodeMap.put("SMSSR (%)",
"<a href=\"/VMSC2-Statistics/report/core/msc/wk.htm?mscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#smssr\">" + Helper.float2String(wkMscQos.getSmssr()) + "%</a>");
mscNodeMap.put("AUSR (%)", "<a href=\"/VMSC2-Statistics/report/core/msc/wk.htm?mscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) +"#ausr\">" + Helper.float2String(wkMscQos.getAusr())
+ "%</a>");
mscNodeMap.put("ECCR (%)", "N/A");
return mscNodeMap;
}
private Map<String, String> bscNodeMap(String week,String year, String node) {
Map<String, String> bscNodeMap = new LinkedHashMap<String, String>();
WkBscCore wkBscCore = wkBscCoreDao.selectByPrimaryKey(node, Integer.parseInt(week), Integer.parseInt(year));
if (wkBscCore == null)
wkBscCore = new WkBscCore();
bscNodeMap.put("%", "N/A");
bscNodeMap.put("CSSR (%)", "<a href=\"/VMSC2-Statistics/report/core/bsc/wk.htm?bscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) +"#cssr\">" + Helper.float2String(wkBscCore.getCssr())
+ "%</a>");
bscNodeMap.put("PSR (%)", "<a href=\"/VMSC2-Statistics/report/core/bsc/wk.htm?bscid=" + node +"&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#psr\">" + Helper.float2String(wkBscCore.getPsr())
+ "%</a>");
bscNodeMap.put("DCRS (%)", "<a href=\"/VMSC2-Statistics/report/core/bsc/wk.htm?bscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#dcrs\">" + Helper.float2String(wkBscCore.getDcrs())
+ "%</a>");
bscNodeMap.put("DCRT (%)", "<a href=\"/VMSC2-Statistics/report/core/bsc/wk.htm?bscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#dcrt\">" + Helper.float2String(wkBscCore.getDcrt())
+ "%</a>");
bscNodeMap.put("TRAUCR (%)",
"<a href=\"/VMSC2-Statistics/report/core/bsc/wk.htm?bscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) +"#traucr\">" + Helper.float2String(wkBscCore.getTraucr()) + "%</a>");
bscNodeMap.put("HSR (%)", "<a href=\"/VMSC2-Statistics/report/core/bsc/wk.htm?bscid=" + node + "&week=" + Integer.parseInt(week) +"&year=" + Integer.parseInt(year) + "#hsr\">" +Helper.float2String(wkBscCore.getHsr())
+ "%</a>");
return bscNodeMap;
}
}
|
[
"trungnq@vhc.com.vn"
] |
trungnq@vhc.com.vn
|
e36587a8427f682e758efaa08ee4f08619fdca34
|
cc3b3a92af34c479bb3080574b8b252db49cd8f4
|
/src/main/java/fr/perioline/web/rest/PractitionerResource.java
|
b8ede14e55fc872e230d7038c215b7f73ebf0372
|
[] |
no_license
|
hchalouati/perioline
|
c03db65bb9a99558e4c9099b843df548abef34e7
|
1f342460a9b771ac20c240010c02d703c0747c6c
|
refs/heads/master
| 2020-03-26T22:13:23.944996
| 2018-08-20T16:22:01
| 2018-08-20T16:22:01
| 145,441,994
| 0
| 1
| null | 2018-08-20T16:18:36
| 2018-08-20T16:17:03
|
Java
|
UTF-8
|
Java
| false
| false
| 5,331
|
java
|
package fr.perioline.web.rest;
import com.codahale.metrics.annotation.Timed;
import fr.perioline.domain.Practitioner;
import fr.perioline.service.PractitionerService;
import fr.perioline.web.rest.errors.BadRequestAlertException;
import fr.perioline.web.rest.util.HeaderUtil;
import fr.perioline.web.rest.util.PaginationUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
/**
* REST controller for managing Practitioner.
*/
@RestController
@RequestMapping("/api")
public class PractitionerResource {
private final Logger log = LoggerFactory.getLogger(PractitionerResource.class);
private static final String ENTITY_NAME = "practitioner";
private final PractitionerService practitionerService;
public PractitionerResource(PractitionerService practitionerService) {
this.practitionerService = practitionerService;
}
/**
* POST /practitioners : Create a new practitioner.
*
* @param practitioner the practitioner to create
* @return the ResponseEntity with status 201 (Created) and with body the new practitioner, or with status 400 (Bad Request) if the practitioner has already an ID
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PostMapping("/practitioners")
@Timed
public ResponseEntity<Practitioner> createPractitioner(@RequestBody Practitioner practitioner) throws URISyntaxException {
log.debug("REST request to save Practitioner : {}", practitioner);
if (practitioner.getId() != null) {
throw new BadRequestAlertException("A new practitioner cannot already have an ID", ENTITY_NAME, "idexists");
}
Practitioner result = practitionerService.save(practitioner);
return ResponseEntity.created(new URI("/api/practitioners/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))
.body(result);
}
/**
* PUT /practitioners : Updates an existing practitioner.
*
* @param practitioner the practitioner to update
* @return the ResponseEntity with status 200 (OK) and with body the updated practitioner,
* or with status 400 (Bad Request) if the practitioner is not valid,
* or with status 500 (Internal Server Error) if the practitioner couldn't be updated
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PutMapping("/practitioners")
@Timed
public ResponseEntity<Practitioner> updatePractitioner(@RequestBody Practitioner practitioner) throws URISyntaxException {
log.debug("REST request to update Practitioner : {}", practitioner);
if (practitioner.getId() == null) {
throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
}
Practitioner result = practitionerService.save(practitioner);
return ResponseEntity.ok()
.headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, practitioner.getId().toString()))
.body(result);
}
/**
* GET /practitioners : get all the practitioners.
*
* @param pageable the pagination information
* @return the ResponseEntity with status 200 (OK) and the list of practitioners in body
*/
@GetMapping("/practitioners")
@Timed
public ResponseEntity<List<Practitioner>> getAllPractitioners(Pageable pageable) {
log.debug("REST request to get a page of Practitioners");
Page<Practitioner> page = practitionerService.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/practitioners");
return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);
}
/**
* GET /practitioners/:id : get the "id" practitioner.
*
* @param id the id of the practitioner to retrieve
* @return the ResponseEntity with status 200 (OK) and with body the practitioner, or with status 404 (Not Found)
*/
@GetMapping("/practitioners/{id}")
@Timed
public ResponseEntity<Practitioner> getPractitioner(@PathVariable Long id) {
log.debug("REST request to get Practitioner : {}", id);
Optional<Practitioner> practitioner = practitionerService.findOne(id);
return ResponseUtil.wrapOrNotFound(practitioner);
}
/**
* DELETE /practitioners/:id : delete the "id" practitioner.
*
* @param id the id of the practitioner to delete
* @return the ResponseEntity with status 200 (OK)
*/
@DeleteMapping("/practitioners/{id}")
@Timed
public ResponseEntity<Void> deletePractitioner(@PathVariable Long id) {
log.debug("REST request to delete Practitioner : {}", id);
practitionerService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
475397ddb178fd44513bbe6549ee0f16a9970d0b
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13096-2-3-FEMO-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/web/DownloadAction_ESTest.java
|
deb9d060089d5906c8e2049bd5d288fbcecfa3bc
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 552
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Apr 03 20:42:50 UTC 2020
*/
package com.xpn.xwiki.web;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DownloadAction_ESTest extends DownloadAction_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
bca0c1dc9d520faa207dbcf0a7a2c325bd19dd79
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_5631989306621952_1/java/enosair/A.java
|
6d39f867a68ac763c642ed9612b9373bf2e0c54d
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,005
|
java
|
import java.io.*;
import java.util.Scanner;
public class A {
public static void main(String [] args) throws IOException {
//Scanner s = new Scanner(new BufferedReader(new FileReader("A-small-attempt0.in")));
Scanner s = new Scanner(new BufferedReader(new FileReader("A-large.in")));
// Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int ncase = s.nextInt();
for (int i = 1; i <= ncase; i++) {
String str = s.next();
System.out.printf("Case #%d: %s\n", i, solve(str));
}
s.close();
}
public static String solve(String S) {
if ( S.length() == 1 ) return S;
String rv = Character.toString( S.charAt(0) );
for (int i = 1; i < S.length(); i++) {
if ( S.charAt(i) >= rv.charAt(0) )
rv = S.charAt(i) + rv;
else
rv += S.charAt(i);
}
return rv;
}
}
|
[
"alexandra1.back@gmail.com"
] |
alexandra1.back@gmail.com
|
a84bae7e7c7fa7150dd3b605deba3080eb198862
|
3a5985651d77a31437cfdac25e594087c27e93d6
|
/ojc-core/component-common/axiondb/external/src/jxl/write/biff/WritableFormattingRecords.java
|
2192a025375ead772cacc21c432595afd0bb0261
|
[] |
no_license
|
vitalif/openesb-components
|
a37d62133d81edb3fdc091abd5c1d72dbe2fc736
|
560910d2a1fdf31879e3d76825edf079f76812c7
|
refs/heads/master
| 2023-09-04T14:40:55.665415
| 2016-01-25T13:12:22
| 2016-01-25T13:12:33
| 48,222,841
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,943
|
java
|
/*********************************************************************
*
* Copyright (C) 2002 Andrew Khan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
package jxl.write.biff;
import common.Assert;
import jxl.biff.Fonts;
import jxl.biff.FormattingRecords;
import jxl.biff.NumFormatRecordsException;
import jxl.write.NumberFormats;
import jxl.write.WritableCellFormat;
/**
* Handles the Format and XF record indexing. The writable subclass
* instantiates the predetermined list of XF records and formats
* present in every Excel Workbook
*/
public class WritableFormattingRecords extends FormattingRecords
{
/**
* The statically defined normal style
*/
public static WritableCellFormat normalStyle;
/**
* Constructor. Instantiates the prerequisite list of formats and
* styles required by all Excel workbooks
*
* @param f the list of Fonts
* @param styles the list of style clones
*/
public WritableFormattingRecords(Fonts f, Styles styles)
{
super(f);
try
{
// Hard code all the styles
StyleXFRecord sxf = new StyleXFRecord
(styles.getArial10Pt(),NumberFormats.DEFAULT);
sxf.setLocked(true);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(2),NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(3),NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
sxf = new StyleXFRecord(styles.getArial10Pt(),
NumberFormats.DEFAULT);
sxf.setLocked(true);
sxf.setCellOptions(0xf400);
addStyle(sxf);
// That's the end of the built ins. Write the normal style
// cell XF here
addStyle(styles.getNormalStyle());
// Continue with "user defined" styles
sxf = new StyleXFRecord(getFonts().getFont(1),
NumberFormats.FORMAT7);
sxf.setLocked(true);
sxf.setCellOptions(0xf800);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),
NumberFormats.FORMAT5);
sxf.setLocked(true);
sxf.setCellOptions(0xf800);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),
NumberFormats.FORMAT8);
sxf.setLocked(true);
sxf.setCellOptions(0xf800);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),
NumberFormats.FORMAT6);
sxf.setLocked(true);
sxf.setCellOptions(0xf800);
addStyle(sxf);
sxf = new StyleXFRecord(getFonts().getFont(1),
NumberFormats.PERCENT_INTEGER);
sxf.setLocked(true);
sxf.setCellOptions(0xf800);
addStyle(sxf);
// Hard code in the pre-defined number formats for now
/*
FormatRecord fr = new FormatRecord
("\"$\"#,##0_);\\(\"$\"#,##0\\)",5);
addFormat(fr);
fr = new FormatRecord
("\"$\"#,##0_);[Red]\\(\"$\"#,##0\\)", 6);
addFormat(fr);
fr = new FormatRecord
("\"$\"#,##0.00_);\\(\"$\"#,##0.00\\)", 7);
addFormat(fr);
fr = new FormatRecord
("\"$\"#,##0.00_);[Red]\\(\"$\"#,##0.00\\)", 8);
addFormat(fr);
fr = new FormatRecord
("_(\"$\"* #,##0_);_(\"$\"* \\(#,##0\\);_(\"$\"* \"-\"_);_(@_)",
0x2a);
// outputFile.write(fr);
fr = new FormatRecord
("_(* #,##0_);_(* \\(#,##0\\);_(* \"-\"_);_(@_)",
0x2e);
// outputFile.write(fr);
fr = new FormatRecord
("_(\"$\"* #,##0.00_);_(\"$\"* \\(#,##0.00\\);_(\"$\"* \"-\"??_);_(@_)",
0x2c);
// outputFile.write(fr);
fr = new FormatRecord
("_(* #,##0.00_);_(* \\(#,##0.00\\);_(* \"-\"??_);_(@_)",
0x2b);
// outputFile.write(fr);
*/
}
catch (NumFormatRecordsException e)
{
// This should not happen yet, since we are just creating the file.
// Bomb out
Assert.verify(false, e.getMessage());
}
}
}
|
[
"bitbucket@bitbucket02.private.bitbucket.org"
] |
bitbucket@bitbucket02.private.bitbucket.org
|
67bbd0bba633b880180903f4bceba9d771fc2399
|
db21a027aefef69adead30350d4f6d1d6195ac92
|
/sample/src/main/java/com/kennyc/sample/MainActivity.java
|
e5f98dd871995ee60e458dd2151e0d85e4f223aa
|
[
"MIT"
] |
permissive
|
sangupandi/TextDrawable
|
b450ec7444ccea458f2025b85b5630e786d9ce0a
|
692c5327faaf7d5e53493936828e24bb557f87ce
|
refs/heads/master
| 2021-01-16T18:04:11.793718
| 2015-08-29T22:37:29
| 2015-08-29T22:37:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,970
|
java
|
package com.kennyc.sample;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import com.amulyakhare.textdrawable.TextDrawable;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView tv1 = (TextView) findViewById(R.id.test1);
TextView tv2 = (TextView) findViewById(R.id.test2);
TextView tv3 = (TextView) findViewById(R.id.test3);
TextView tv4 = (TextView) findViewById(R.id.test4);
TextDrawable d1 = new TextDrawable.Builder()
.setHeight(250)
.setWidth(250)
.setShape(TextDrawable.DRAWABLE_SHAPE_OVAL)
.setText("a")
.setColor(Color.BLUE)
.toUpperCase()
.build();
tv1.setCompoundDrawablesWithIntrinsicBounds(d1, null, null, null);
TextDrawable d2 = new TextDrawable.Builder()
.setHeight(250)
.setWidth(250)
.setShape(TextDrawable.DRAWABLE_SHAPE_OVAL)
.setIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher))
.build();
tv2.setCompoundDrawablesWithIntrinsicBounds(d2, null, null, null);
TextDrawable d3 = new TextDrawable.Builder()
.setHeight(250)
.setWidth(250)
.setShape(TextDrawable.DRAWABLE_SHAPE_RECT)
.setText("a")
.toUpperCase()
.build();
tv3.setCompoundDrawablesWithIntrinsicBounds(d3, null, null, null);
TextDrawable d4 = new TextDrawable.Builder()
.setHeight(250)
.setWidth(250)
.setShape(TextDrawable.DRAWABLE_SHAPE_RECT)
.setIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher))
.build();
tv4.setCompoundDrawablesWithIntrinsicBounds(d4, null, null, null);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
|
[
"kennyc1012@gmail.com"
] |
kennyc1012@gmail.com
|
c97d1812731226f930b661a5a163633ebf8da2be
|
643d701fc59bf663dd8ec809576521147d54c313
|
/src/main/java/gwt/jelement/svg/SVGLength.java
|
c60e22977b81872275f2e358c3119f067604cfef
|
[
"MIT"
] |
permissive
|
gwt-jelement/gwt-jelement
|
8e8cca46b778ed1146a2efd8be996a358f974b44
|
f28303d85f16cefa1fc067ccb6f0b610cdf942f4
|
refs/heads/master
| 2021-01-01T17:03:07.607472
| 2018-01-16T15:46:44
| 2018-01-16T15:46:44
| 97,984,978
| 6
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,394
|
java
|
/*
* Copyright 2017 Abed Tony BenBrahim <tony.benrahim@10xdev.com>
* and Gwt-JElement project contributors.
*
* 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 gwt.jelement.svg;
import gwt.jelement.core.IsObject;
import jsinterop.annotations.*;
@JsType(namespace = JsPackage.GLOBAL, name="SVGLength", isNative = true)
public class SVGLength implements IsObject {
public static short SVG_LENGTHTYPE_UNKNOWN; /* 0 */
public static short SVG_LENGTHTYPE_NUMBER; /* 1 */
public static short SVG_LENGTHTYPE_PERCENTAGE; /* 2 */
public static short SVG_LENGTHTYPE_EMS; /* 3 */
public static short SVG_LENGTHTYPE_EXS; /* 4 */
public static short SVG_LENGTHTYPE_PX; /* 5 */
public static short SVG_LENGTHTYPE_CM; /* 6 */
public static short SVG_LENGTHTYPE_MM; /* 7 */
public static short SVG_LENGTHTYPE_IN; /* 8 */
public static short SVG_LENGTHTYPE_PT; /* 9 */
public static short SVG_LENGTHTYPE_PC; /* 10 */
@JsProperty(name="unitType")
public native short getUnitType();
@JsProperty(name="value")
public native double getValue();
@JsProperty(name="value")
public native void setValue(double value);
@JsProperty(name="valueInSpecifiedUnits")
public native double getValueInSpecifiedUnits();
@JsProperty(name="valueInSpecifiedUnits")
public native void setValueInSpecifiedUnits(double valueInSpecifiedUnits);
@JsProperty(name="valueAsString")
public native String getValueAsString();
@JsProperty(name="valueAsString")
public native void setValueAsString(String valueAsString);
@JsMethod(name = "convertToSpecifiedUnits")
public native void convertToSpecifiedUnits(short unitType);
@JsMethod(name = "newValueSpecifiedUnits")
public native void newValueSpecifiedUnits(short unitType, double valueInSpecifiedUnits);
}
|
[
"tony.benbrahim@gmail.com"
] |
tony.benbrahim@gmail.com
|
9eb65535af640526b48ef732335ee3ef61be1fef
|
20059c7e0d529c5bfb296e98f3d984a696c9e966
|
/common/src/main/java/com/serenegiant/utils/ThreadPool.java
|
0078da3c190baaaca586acd4277dfc5f392e0cd3
|
[
"Apache-2.0"
] |
permissive
|
pocketfpv/libcommon
|
96ec5693c25793a7d1094d049ec7284c697aa8f6
|
c5839d68581028dae530681f0a27c38b700f3871
|
refs/heads/master
| 2021-01-23T13:08:30.634537
| 2019-01-25T01:55:09
| 2019-01-25T01:55:09
| 93,223,526
| 0
| 0
|
Apache-2.0
| 2019-01-25T01:55:10
| 2017-06-03T04:32:28
|
Java
|
UTF-8
|
Java
| false
| false
| 1,885
|
java
|
package com.serenegiant.utils;
/*
* libcommon
* utility/helper classes for myself
*
* Copyright (c) 2014-2018 saki t_saki@serenegiant.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.annotation.NonNull;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class ThreadPool {
// for thread pool
private static final int CORE_POOL_SIZE = 4; // initial/minimum threads
private static final int MAX_POOL_SIZE = 32; // maximum threads
private static final int KEEP_ALIVE_TIME = 10; // time periods while keep the idle thread
private static final ThreadPoolExecutor EXECUTOR
= new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE, KEEP_ALIVE_TIME,
TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
static {
EXECUTOR.allowCoreThreadTimeOut(true); // this makes core threads can terminate
}
public static void preStartAllCoreThreads() {
// in many case, calling createBitmapCache method means start the new query
// and need to prepare to run asynchronous tasks
EXECUTOR.prestartAllCoreThreads();
}
public static void queueEvent(@NonNull final Runnable command) {
EXECUTOR.execute(command);
}
public static boolean removeEvent(@NonNull final Runnable command) {
return EXECUTOR.remove(command);
}
}
|
[
"saki4510t@gmail.com"
] |
saki4510t@gmail.com
|
75148de2578aae9a7e2805a0ae91a4e64b16c876
|
6803987319036e73f92429e357aa3ab8b49c3392
|
/struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/velocity/components/DojoAbstractDirective.java
|
d46a09c551694a878f1419134d36bf7a32427d38
|
[] |
no_license
|
oliverswan/OpenSourceReading
|
8705eac278c3b73426f6d08fc41d14e245b3b97c
|
30f5ae445dc1ca64b071dc2f5d3bb5b963a5e705
|
refs/heads/master
| 2022-10-27T20:34:16.228853
| 2012-11-03T01:18:13
| 2012-11-03T01:18:13
| 5,302,570
| 0
| 1
| null | 2022-10-04T23:36:00
| 2012-08-05T10:19:28
|
Java
|
UTF-8
|
Java
| false
| false
| 1,236
|
java
|
/*
* $Id: DojoAbstractDirective.java 651946 2008-04-27 13:41:38Z apetrelli $
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.struts2.dojo.views.velocity.components;
import org.apache.struts2.views.velocity.components.AbstractDirective;
/**
* Overwrite name prefix
*
*/
public abstract class DojoAbstractDirective extends AbstractDirective {
public String getName() {
return "sx" + getBeanName();
}
}
|
[
"li.fu@agree.com.cn"
] |
li.fu@agree.com.cn
|
662d94cc2877ccc8a82ea68def20ac430929da48
|
35e46a270d1de548763c161c0dac554282a33d9d
|
/CFEC-DevR3/cfec.service/src/main/java/bo/gob/sin/sre/fac/cfec/servicedomain/IUtilitarios.java
|
56657710b114cb94acb2ed12c9a0122740788b42
|
[] |
no_license
|
cruz-victor/ServiciosSOAPyRESTJavaSpringBoot
|
e817e16c8518b3135a26d7ad7f6b0deb8066fe42
|
f04a2b40b118d2d34269c4f954537025b67b3784
|
refs/heads/master
| 2023-01-07T11:09:30.758600
| 2020-11-15T14:01:08
| 2020-11-15T14:01:08
| 312,744,182
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,645
|
java
|
package bo.gob.sin.sre.fac.cfec.servicedomain;
import java.awt.image.BufferedImage;
import java.util.List;
import bo.gob.sin.sre.fac.cfec.dto.XmlRecepcionGenericoDto;
public interface IUtilitarios {
/**
* @autor edwin.coro
* @descripción decodifica archivo enviado en servicio SOAP
* @param pArchivo archivo recibido en servicio SOAP en formato string
* @return archivo xml en formato String, null si existe error
* @fecha 12/11/2018
*/
public String decodificarArchivo(String pArchivo);
/**
* @autor edwin.coro
* @descripción metodo que descomprime paquete y obtiene un listado con los
* archivos xml que contenga el paquete
* @param compressed
* @return obtiene listado de documentos fiscales en formato xml
* @fecha 15/11/2018
*/
public List<String> decompressLoteFacturas(byte[] compressed);
/**
* @param <T>
* @autor edwin.coro
* @descripción mapea facturea de archivo xml a estructura dto
* (cabecera/detalle)
* @param vXmlFactura factura en formato xml
* @param pDto dto que contiene cabecera detalle de la factura
* @return null si existio error, object con mapeo realizado
* @fecha 13/11/2018
*/
public <T> T mapearXmlToDto(String pXmlFactura, Class<?> pObjetoDto);
/**
* @autor reynaldo chambi
* @descripción
* @param Encode
* @return
* @fecha 13/12/2018
*/
public String codificarToBase64(String pArchivo);
/**
* @autor edwin.coro
* @descripción metodo que compara si un archivo xml cumple la estructura de un
* archivo xsd
* @param pArchivoXml archivo xml en formato string
* @param nombreArchivoXsd nombre del archivo xsd (dichos archivos deben estar
* en el mismo repositorio que la clase IUtilitarios)
* @return true si es valido, caso contrario false,
* @fecha 14/12/2018
*/
public boolean validarXmlXsd(String pArchivoXml, String nombreArchivoXsd);
/**
* @autor edwin.coro
* @descripción obtiene cadena xml exceptuando tag signature, a partir de un
* documento fiscal electronico
* @param pArchivoXml documento fiscal electronico en formato xml
* @return cadena en formato xml (quitando tag signature)
* @fecha 06/05/2019
*/
public String formatearSignature(String pArchivoXml);
/**
* @autor edwin.coro
* @descripción decodifica cadena codificada en base 64
* @param pArchivo cadena codificada en base 64
* @return cadena decodificada
* @fecha 06/05/2019
*/
public String decodificarToBase64(String pArchivo);
/**
* @autor edwin.coro
* @descripción valida una cadena en formato xml contra un archivo xsd
* @param archivoXml cadena en formato xml
* @param nombreArchivoXsd nombre del archivo xsd con el que se validara el
* archivo xml
* @return lista con codigo de error si xml no cumple estructura de archivo xsd
* @fecha 06/05/2019
*/
public List<Integer> validarFacturaXml(String archivoXml, String nombreArchivoXsd);
/**
* @autor edwin.coro
* @descripción metodo que compara si un archivo xml cumple la estructura de un
* archivo xsd y lista la descripcion de los errores
* correspondientes
* @param pArchivoXml archivo xml en formato string
* @param nombreArchivoXsd nombre del archivo xsd (dichos archivos deben estar
* en el mismo repositorio que la clase IUtilitarios)
* @return lista de descripcion de errores.
* @fecha 08/05/2019
*/
public List<String> obtenerErroresXmlXsd(String pArchivoXml, String nombreArchivoXsd);
/**
* @autor freddy yuca
* @descripción metodo que obtiene los string de archivos codificados desde una
* ruta local de una factura xml
* @param pRuta archivo xml de la factura
* @return lista de cadenas, archivo codificado y sha.
* @fecha 24/05/2019
*/
public List<String> obtenerArchivosEnvio(String pRuta);
/**
* @autor junior.flores
* @descripción Método que realiza la inserción de los log para la certificación
* de sistemas
* @param pXmlRecGenDto archivo en formato xml pListaErrores Listado de los
* codigos de los errores luego de la validación
* @fecha 04/06/2019
*/
public void registrarLogCertificacionSistemas(XmlRecepcionGenericoDto pXmlRecGenDto, List<Integer> pListaErrores);
public BufferedImage generarImagenQR(String pUrl, String pCuf, Long pNitEmisor, Integer pNumeroFactura);
/**
* @autor reynaldo.chambi
* @descripción conteo de cantidad de archivos
* @fecha 27/09/2019
*/
public int obtenerCantidadPaquete(String pArchivo);
}
|
[
"cruz.gomez.victor@gmail.com"
] |
cruz.gomez.victor@gmail.com
|
02fa4ea41540b6dc04709b2e5bf841c474666793
|
74b6018e594e5cba71d3e26ef70884c92abde0c0
|
/mmstudio/src/main/java/org/micromanager/internal/utils/SortFunctionObjects.java
|
d44a7e0a3c0a048241386b8a41a45d5ef8310a1b
|
[
"BSD-3-Clause"
] |
permissive
|
lwxGitHub123/micro-manager
|
4b5caec8f25de2b7a9e92e7883eecc026fdc08b9
|
a945fdf550ba880744b5b3695fa2c559505f735b
|
refs/heads/main
| 2023-06-24T13:00:29.082165
| 2021-07-29T07:24:13
| 2021-07-29T07:24:13
| 382,203,845
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,447
|
java
|
package org.micromanager.internal.utils;
import java.text.ParseException;
import java.util.Comparator;
public final class SortFunctionObjects
{
/* comparators for GUI ordering of numeric strings
* *
*/
// Comparators for sorting of the possible values
public static class IntStringComp implements Comparator<String>{
@Override
public int compare(String strA, String strB)
{
int valA = 0;
int valB = 0;
try {
valA = NumberUtils.coreStringToInt(strA);
valB = NumberUtils.coreStringToInt(strB);
} catch (ParseException e) {
ReportingUtils.logError(e);
}
return valA - valB;
}
}
public static class DoubleStringComp implements Comparator<String>{
@Override
public int compare(String strA, String strB)
{
double valA = 0.;
double valB = 0.;
try {
valA = NumberUtils.coreStringToDouble(strA);
valB = NumberUtils.coreStringToDouble(strB);
} catch (ParseException e) {
ReportingUtils.logError(e);
}
return Double.compare(valA, valB);
}
}
public static class NumericPrefixStringComp implements Comparator<String>{
private int NumericPrefix( String str0){
int ret = 0;
int ii;
for (ii= 0; ii < str0.length(); ++ii ){
if( !Character.isDigit(str0.charAt(ii))) break;
}
if( 0 < ii)
ret = Integer.valueOf(str0.substring(0,ii));
return ret;
}
@Override
public int compare(String strA, String strB) {
return NumericPrefix(strA) - NumericPrefix(strB) ;
}
}
}
|
[
"test@test.com"
] |
test@test.com
|
2183028f0bd71c00f2a5518a0fb5311ba202d104
|
bad08ce4b707f8d479a6f9d6562f90d397042df7
|
/Zookeeper/ZooKeeper-Watcher机制.java
|
6b6608038363873bcdad11ddaf94d7e63f3f741b
|
[] |
no_license
|
lengyue1024/notes
|
93bf4ec614cbde69341bc7e4decad169a608ff39
|
549358063da05057654811a352ae408e48498f25
|
refs/heads/master
| 2020-04-29T07:14:45.482919
| 2019-03-16T07:51:26
| 2019-03-16T07:51:26
| 175,945,339
| 2
| 0
| null | 2019-03-16T08:19:53
| 2019-03-16T08:19:52
| null |
GB18030
|
Java
| false
| false
| 2,303
|
java
|
--------------------------------
Watcher 机制 |
--------------------------------
# ZK提供了一种订阅发布的功能 Watcher
* 一对多,多个订阅监听一个主题,当主题有变化,会通知到所有的订阅者
# ZK的事件
节点的创建
节点的修改
节点的删除
子节点变化
# Watcher机制的过程
1,客户端向服务端注册Watcher
2,服务端事件发生触发Watcher
3,客户端回调Watcher得到触发事件情况
# Wather机制特点
* 一次性触发
* 事件发生 触发监听,一个 watcher event 就会被送到设置监听的客户端
* 这种效果是一次性的,后续再次发生相同的事件,不会再次触发
* 事件封装
* ZK使用WatcherEvent对象来封装服务端事件并传递
* WatcheEvent 包含了每一个事件的三个基本属性
KeeperState 通知状态
@Deprecated
Unknown (-1),
Disconnected (0),
@Deprecated
NoSyncConnected (1),
SyncConnected (3),
AuthFailed (4),
ConnectedReadOnly (5),
SaslAuthenticated(6),
Expired (-112);
EventType 事件类型
None (-1),
NodeCreated (1),
NodeDeleted (2),
NodeDataChanged (3),
NodeChildrenChanged (4);
Path 节点路径
* event异步发送
* Watcher通知事件从服务端发送到客户端是异步的
* 先注册再触发
* 客户端必须先在服务端注册了监听,才能收到服务端的事件触发通知
# 通知状态和事件类型
SyncConnected
|-None
* 客户端与服务端成功建立连接
|-NodeCreated
* 监听的节点被创建
|-NodeDeleted
* 监听的节点被删除
|-NodeDataChanged
* 监听节点的数据发生修改
|-NodeChildrenChanged
* 监听节点的子节点发生改变
Disconnected
|-None
* 客户端与Zookeeper服务端断开连接
Expired
|-None
* 会话超时
* 通常也会收到 SessionExpiredException 异常
AuthFailed
|-None
* 一般有两种情况
1,使用错误的 schema 进行权限校验
2,SASL 权限检查失败
* 同时也会收到 AuthFailedException
* 连接状态事件(EventType=None,Path=null),不需要客户端主动注册
* 客户端只要有需要,直接处理即可
|
[
"747692844@qq.com"
] |
747692844@qq.com
|
b69b1d3ef3473b13e68a33f810976b0fdc9cc15d
|
b66bdee811ed0eaea0b221fea851f59dd41e66ec
|
/src/com/urbanairship/analytics/CustomEvent.java
|
9e16ae6c40f3dcbbcb2e1a8b155f68fcc3a4a7ae
|
[] |
no_license
|
reverseengineeringer/com.grubhub.android
|
3006a82613df5f0183e28c5e599ae5119f99d8da
|
5f035a4c036c9793483d0f2350aec2997989f0bb
|
refs/heads/master
| 2021-01-10T05:08:31.437366
| 2016-03-19T20:41:23
| 2016-03-19T20:41:23
| 54,286,207
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,606
|
java
|
package com.urbanairship.analytics;
import com.urbanairship.Logger;
import com.urbanairship.UAirship;
import com.urbanairship.push.PushManager;
import com.urbanairship.util.UAStringUtil;
import java.math.BigDecimal;
import org.json.JSONException;
import org.json.JSONObject;
public class CustomEvent
extends Event
{
public static final String CONVERSION_SEND_ID = "conversion_send_id";
public static final String EVENT_NAME = "event_name";
public static final String EVENT_VALUE = "event_value";
public static final String INTERACTION_ID = "interaction_id";
public static final String INTERACTION_TYPE = "interaction_type";
public static final String LAST_RECEIVED_SEND_ID = "last_received_send_id";
private static final int MAX_CHARACTER_LENGTH = 255;
private static final BigDecimal MAX_VALUE = new BigDecimal(Integer.MAX_VALUE);
public static final String MCRAP_TRANSACTION_TYPE = "ua_mcrap";
private static final BigDecimal MIN_VALUE = new BigDecimal(Integer.MIN_VALUE);
public static final String TRANSACTION_ID = "transaction_id";
private static final String TYPE = "custom_event";
private String eventName;
private Long eventValue;
private String interactionId;
private String interactionType;
private String sendId;
private String transactionId;
protected final JSONObject getEventData()
{
JSONObject localJSONObject = new JSONObject();
String str = UAirship.shared().getAnalytics().getConversionSendId();
try
{
localJSONObject.putOpt("event_name", eventName);
localJSONObject.putOpt("event_value", eventValue);
localJSONObject.putOpt("interaction_id", interactionId);
localJSONObject.putOpt("interaction_type", interactionType);
localJSONObject.putOpt("transaction_id", transactionId);
if (!UAStringUtil.isEmpty(sendId))
{
localJSONObject.putOpt("conversion_send_id", sendId);
return localJSONObject;
}
if (str != null)
{
localJSONObject.putOpt("conversion_send_id", str);
return localJSONObject;
}
}
catch (JSONException localJSONException)
{
Logger.error("CustomEvent - Error constructing JSON data.", localJSONException);
return localJSONObject;
}
localJSONObject.putOpt("last_received_send_id", UAirship.shared().getPushManager().getLastReceivedSendId());
return localJSONObject;
}
public final String getType()
{
return "custom_event";
}
}
/* Location:
* Qualified Name: com.urbanairship.analytics.CustomEvent
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
d9291f8b60e8fd0bb5cf2eb0061170e88a9b07fa
|
c3f2fcf8a6bee46374935fa74049e114da9c9ced
|
/src/main/java/com/diffplug/gradle/eclipse/EclipseProjectPlugin.java
|
d4e411e24262ed569af48777383fa81c74b27fc4
|
[
"Apache-2.0"
] |
permissive
|
hannjos/goomph
|
9383ba5c8ab4238fe13e97630914f19648bee370
|
ece1af71d3dff2458a8b353bfa37f497710f1656
|
refs/heads/master
| 2020-04-21T17:02:21.969813
| 2019-02-06T21:31:01
| 2019-02-06T21:31:01
| 162,709,974
| 0
| 0
|
Apache-2.0
| 2019-02-08T10:59:15
| 2018-12-21T12:09:30
|
Java
|
UTF-8
|
Java
| false
| false
| 1,419
|
java
|
/*
* Copyright 2016 DiffPlug
*
* 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.diffplug.gradle.eclipse;
import java.util.function.Consumer;
import org.gradle.api.Project;
import org.gradle.plugins.ide.eclipse.EclipsePlugin;
import org.gradle.plugins.ide.eclipse.model.EclipseModel;
import com.diffplug.gradle.ProjectPlugin;
/** Utility for gradle plugins which modify the eclipse model. */
class EclipseProjectPlugin {
/** Applies the EclipsePlugin and provides the eclipse model for modification. */
public static void modifyEclipseProject(Project project, Consumer<EclipseModel> modifier) {
// make sure the eclipse plugin has been applied
ProjectPlugin.getPlugin(project, EclipsePlugin.class);
// exclude the build folder
project.afterEvaluate(p -> {
EclipseModel eclipseModel = p.getExtensions().getByType(EclipseModel.class);
modifier.accept(eclipseModel);
});
}
}
|
[
"ned.twigg@diffplug.com"
] |
ned.twigg@diffplug.com
|
2a31f5b9fc8db8633a81616343411abf03e20668
|
b2adc96a8f6f1d6b65b663691434336759a5545f
|
/src/main/java/org/silnith/parser/html5/lexical/state/ScriptDataEndTagNameState.java
|
662f643ca1fc3a90c1befd3bcd49fc19982deaca
|
[] |
no_license
|
silnith-org/html5-parser
|
0e5794cf733ef92d3e3ed349a15d9bc5c2a59236
|
b5610e7a1fa8e5d1a29c055ce232a149f940f26b
|
refs/heads/development
| 2021-01-19T03:30:33.067501
| 2020-03-25T17:04:42
| 2020-03-25T17:04:42
| 50,066,369
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,496
|
java
|
package org.silnith.parser.html5.lexical.state;
import static org.silnith.parser.util.UnicodeCodePoints.CHARACTER_TABULATION;
import static org.silnith.parser.util.UnicodeCodePoints.FORM_FEED;
import static org.silnith.parser.util.UnicodeCodePoints.GREATER_THAN_SIGN;
import static org.silnith.parser.util.UnicodeCodePoints.LINE_FEED;
import static org.silnith.parser.util.UnicodeCodePoints.SOLIDUS;
import static org.silnith.parser.util.UnicodeCodePoints.SPACE;
import java.io.IOException;
import java.util.List;
import org.silnith.parser.html5.lexical.Tokenizer;
import org.silnith.parser.html5.lexical.token.CharacterToken;
import org.silnith.parser.html5.lexical.token.TagToken;
import org.silnith.parser.html5.lexical.token.Token;
/**
* Applies the script data end tag name state logic.
* <p>
* Consume the next input character:
* <dl>
* <dt>"tab" (U+0009)
* <dt>"LF" (U+000A)
* <dt>"FF" (U+000C)
* <dt>U+0020 SPACE
* <dd>If the current end tag token is an appropriate end tag token, then switch to the before attribute name state. Otherwise, treat it as per the "anything else" entry below.
* <dt>"/" (U+002F)
* <dd>If the current end tag token is an appropriate end tag token, then switch to the self-closing start tag state. Otherwise, treat it as per the "anything else" entry below.
* <dt>">" (U+003E)
* <dd>If the current end tag token is an appropriate end tag token, then switch to the data state and emit the current tag token. Otherwise, treat it as per the "anything else" entry below.
* <dt>Uppercase ASCII letter
* <dd>Append the lowercase version of the current input character (add 0x0020 to the character's code point) to the current tag token's tag name. Append the current input character to the temporary buffer.
* <dt>Lowercase ASCII letter
* <dd>Append the current input character to the current tag token's tag name. Append the current input character to the temporary buffer.
* <dt>Anything else
* <dd>Switch to the script data state. Emit a U+003C LESS-THAN SIGN character token, a U+002F SOLIDUS character token, and a character token for each of the characters in the temporary buffer (in the order they were added to the buffer). Reconsume the current input character.
* </dl>
*
* @see org.silnith.parser.html5.lexical.Tokenizer.State#SCRIPT_DATA_END_TAG_NAME
* @see <a href="https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#script-data-end-tag-name-state">8.2.4.19 Script data end tag name state</a>
* @author <a href="mailto:silnith@gmail.com">Kent Rosenkoetter</a>
*/
public class ScriptDataEndTagNameState extends TokenizerState {
public ScriptDataEndTagNameState(final Tokenizer tokenizer) {
super(tokenizer);
}
@Override
public int getMaxPushback() {
return 1;
}
@Override
public List<Token> getNextTokens() throws IOException {
final int ch = consume();
switch (ch) {
case CHARACTER_TABULATION: // fall through
case LINE_FEED: // fall through
case FORM_FEED: // fall through
case SPACE: {
if (isAppropriateEndTag()) {
setTokenizerState(Tokenizer.State.BEFORE_ATTRIBUTE_NAME);
return NOTHING;
} else {
return defaultCase(ch);
}
} // break;
case SOLIDUS: {
if (isAppropriateEndTag()) {
setTokenizerState(Tokenizer.State.SELF_CLOSING_START_TAG);
return NOTHING;
} else {
return defaultCase(ch);
}
} // break;
case GREATER_THAN_SIGN: {
if (isAppropriateEndTag()) {
setTokenizerState(Tokenizer.State.DATA);
final TagToken pendingToken = clearPendingTag();
return one(pendingToken);
} else {
return defaultCase(ch);
}
} // break;
case 'A': // fall through
case 'B': // fall through
case 'C': // fall through
case 'D': // fall through
case 'E': // fall through
case 'F': // fall through
case 'G': // fall through
case 'H': // fall through
case 'I': // fall through
case 'J': // fall through
case 'K': // fall through
case 'L': // fall through
case 'M': // fall through
case 'N': // fall through
case 'O': // fall through
case 'P': // fall through
case 'Q': // fall through
case 'R': // fall through
case 'S': // fall through
case 'T': // fall through
case 'U': // fall through
case 'V': // fall through
case 'W': // fall through
case 'X': // fall through
case 'Y': // fall through
case 'Z': {
appendToTagName(toLower((char) ch));
appendToTemporaryBuffer((char) ch);
return NOTHING;
} // break;
case 'a': // fall through
case 'b': // fall through
case 'c': // fall through
case 'd': // fall through
case 'e': // fall through
case 'f': // fall through
case 'g': // fall through
case 'h': // fall through
case 'i': // fall through
case 'j': // fall through
case 'k': // fall through
case 'l': // fall through
case 'm': // fall through
case 'n': // fall through
case 'o': // fall through
case 'p': // fall through
case 'q': // fall through
case 'r': // fall through
case 's': // fall through
case 't': // fall through
case 'u': // fall through
case 'v': // fall through
case 'w': // fall through
case 'x': // fall through
case 'y': // fall through
case 'z': {
appendToTagName((char) ch);
appendToTemporaryBuffer((char) ch);
return NOTHING;
} // break;
default: {
return defaultCase(ch);
} // break;
}
}
private List<Token> defaultCase(final int ch) throws IOException {
unconsume(ch);
setTokenizerState(Tokenizer.State.DATA);
final String content = "</" + clearTemporaryBuffer();
return CharacterToken.toTokens(content);
}
}
|
[
"silnith@gmail.com"
] |
silnith@gmail.com
|
e24d410aae284795acf22ec7af266161c5140336
|
7224e81ecbe5c7233c3db4d2be249ee517c34072
|
/lexuncomm/app/src/main/java/io/cordova/lexuncompany/view/QrCodeScanActivity.java
|
be33fe99d105800cef03ef52c618f8dd48aa0e88
|
[] |
no_license
|
libin1993/jingbaoliankong
|
bbb4e9311db321c282d569747ed053c5beaefef1
|
c51d4bd569209e5ea8a08ec42b270767547fbec5
|
refs/heads/master
| 2020-07-11T18:22:28.039508
| 2019-10-14T09:25:52
| 2019-10-14T09:25:52
| 204,613,282
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,804
|
java
|
package io.cordova.lexuncompany.view;
import android.app.Activity;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.os.Vibrator;
import android.support.v7.app.AppCompatActivity;
import cn.bingoogolapple.photopicker.activity.BGAPhotoPickerActivity;
import cn.bingoogolapple.qrcode.core.QRCodeView;
import io.cordova.lexuncompany.R;
import io.cordova.lexuncompany.databinding.ActivityQrcodeScanBinding;
import io.cordova.lexuncompany.inter.QrCodeScanInter;
public class QrCodeScanActivity extends AppCompatActivity implements QRCodeView.Delegate {
private static final int REQUEST_CODE_CHOOSE_QRCODE_FROM_GALLERY = 666;
private ActivityQrcodeScanBinding mBinding;
private static QrCodeScanInter mQrCodeScanInter; //在AndroidForJSUnits中使用
private String mCallBack;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mBinding = DataBindingUtil.setContentView(this, R.layout.activity_qrcode_scan);
mBinding.zxingview.setDelegate(this);
mCallBack = super.getIntent().getStringExtra("callBack");
setListener();
}
/**
* 在AndroidForJSUnits中动态设置扫描结果监听类
*
* @param qrCodeScanInter
*/
public static void setQrCodeScanInter(QrCodeScanInter qrCodeScanInter) {
mQrCodeScanInter = qrCodeScanInter;
}
private void setListener() {
mBinding.checkboxOpenLight.setOnCheckedChangeListener((compoundButton, b) -> {
turnFlashLightOff();
if (b) {
turnFlashlightOn();
}
});
mBinding.textBtnRight.setOnClickListener(view -> {
Intent photoPickerIntent = new BGAPhotoPickerActivity.IntentBuilder(this)
.cameraFileDir(null)
.maxChooseCount(1)
.selectedPhotos(null)
.pauseOnScroll(false)
.build();
startActivityForResult(photoPickerIntent, REQUEST_CODE_CHOOSE_QRCODE_FROM_GALLERY);
});
mBinding.imgBtnBackComm.setOnClickListener(v -> finish());
}
@Override
protected void onStart() {
super.onStart();
mBinding.zxingview.startCamera(); // 打开后置摄像头开始预览,但是并未开始识别
mBinding.zxingview.startSpotAndShowRect(); // 显示扫描框,并开始识别
}
@Override
protected void onStop() {
mBinding.zxingview.stopCamera(); // 关闭摄像头预览,并且隐藏扫描框
super.onStop();
}
@Override
protected void onDestroy() {
mBinding.zxingview.onDestroy(); // 销毁二维码扫描控件
super.onDestroy();
}
/**
* 打开闪关灯
*/
private void turnFlashlightOn() {
mBinding.checkboxOpenLight.setText("关灯");
mBinding.zxingview.openFlashlight();
}
/**
* 关闭闪关灯
*/
private void turnFlashLightOff() {
mBinding.checkboxOpenLight.setText("开灯");
mBinding.zxingview.closeFlashlight();
}
private void vibrate() {
Vibrator vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);
vibrator.vibrate(200);
}
@Override
public void onScanQRCodeSuccess(String result) {
vibrate();
Intent intent = new Intent();
intent.putExtra("result", result);
this.setResult(RESULT_OK, intent);
//如果QrCodeScan不为空,这执行相关回调,同时销毁对象,防止内存堆积
if (mQrCodeScanInter != null) {
mQrCodeScanInter.getQrCodeScanResult(mCallBack, result);
mQrCodeScanInter = null;
}
finish();
}
@Override
public void onCameraAmbientBrightnessChanged(boolean isDark) {
// 这里是通过修改提示文案来展示环境是否过暗的状态,接入方也可以根据 isDark 的值来实现其他交互效果
if (isDark) {
mBinding.checkboxOpenLight.setChecked(true);
}
}
@Override
public void onScanQRCodeOpenCameraError() {
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
mBinding.zxingview.startSpotAndShowRect(); // 显示扫描框,并开始识别
if (resultCode == Activity.RESULT_OK && requestCode == REQUEST_CODE_CHOOSE_QRCODE_FROM_GALLERY) {
final String picturePath = BGAPhotoPickerActivity.getSelectedPhotos(data).get(0);
// 本来就用到 QRCodeView 时可直接调 QRCodeView 的方法,走通用的回调
mBinding.zxingview.decodeQRCode(picturePath);
}
}
}
|
[
"1993911441@qq.com"
] |
1993911441@qq.com
|
0eb0891d8eeb04c99982de0922d4b7a21e23fc26
|
af0048b7c1fddba3059ae44cd2f21c22ce185b27
|
/springframework/src/main/java/org/springframework/aop/support/RegexpMethodPointcutAdvisor.java
|
8665819094a23dc679ee0ac03dbf29eb639da1e5
|
[] |
no_license
|
P79N6A/whatever
|
4b51658fc536887c870d21b0c198738ed0d1b980
|
6a5356148e5252bdeb940b45d5bbeb003af2f572
|
refs/heads/master
| 2020-07-02T19:58:14.366752
| 2019-08-10T14:45:17
| 2019-08-10T14:45:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,880
|
java
|
package org.springframework.aop.support;
import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.lang.Nullable;
import org.springframework.util.ObjectUtils;
import java.io.Serializable;
@SuppressWarnings("serial")
public class RegexpMethodPointcutAdvisor extends AbstractGenericPointcutAdvisor {
@Nullable
private String[] patterns;
@Nullable
private AbstractRegexpMethodPointcut pointcut;
private final Object pointcutMonitor = new SerializableMonitor();
public RegexpMethodPointcutAdvisor() {
}
public RegexpMethodPointcutAdvisor(Advice advice) {
setAdvice(advice);
}
public RegexpMethodPointcutAdvisor(String pattern, Advice advice) {
setPattern(pattern);
setAdvice(advice);
}
public RegexpMethodPointcutAdvisor(String[] patterns, Advice advice) {
setPatterns(patterns);
setAdvice(advice);
}
public void setPattern(String pattern) {
setPatterns(pattern);
}
public void setPatterns(String... patterns) {
this.patterns = patterns;
}
@Override
public Pointcut getPointcut() {
synchronized (this.pointcutMonitor) {
if (this.pointcut == null) {
this.pointcut = createPointcut();
if (this.patterns != null) {
this.pointcut.setPatterns(this.patterns);
}
}
return this.pointcut;
}
}
protected AbstractRegexpMethodPointcut createPointcut() {
return new JdkRegexpMethodPointcut();
}
@Override
public String toString() {
return getClass().getName() + ": advice [" + getAdvice() + "], pointcut patterns " + ObjectUtils.nullSafeToString(this.patterns);
}
private static class SerializableMonitor implements Serializable {
}
}
|
[
"heavenlystate@163.com"
] |
heavenlystate@163.com
|
4bd44ffe9aeb5d785f897435d7c1cbc00ffe59d5
|
62bbd2ceeb59fc713e610133f37e5fee7271e91b
|
/src/main/java/ua/goit/timonov/enterprise/module_6_2/view/menus/CookedDishHandler.java
|
70883e61c3634ebdd82589899e4e19237a7f6018
|
[] |
no_license
|
alextimonov/GoJavaEnterprise
|
7f4408cc5ad65f1c699cf8193b2098ef4d8d3502
|
56dc584ad5e3ae00933b9e96d46fa79d57756e0a
|
refs/heads/master
| 2021-01-23T14:05:07.584488
| 2016-09-23T21:17:35
| 2016-09-23T21:17:35
| 59,581,892
| 0
| 1
| null | 2016-09-23T22:10:50
| 2016-05-24T14:47:25
|
Java
|
UTF-8
|
Java
| false
| false
| 3,008
|
java
|
package ua.goit.timonov.enterprise.module_6_2.view.menus;
import ua.goit.timonov.enterprise.module_6_2.controllers.CookedDishController;
import ua.goit.timonov.enterprise.module_6_2.controllers.DishController;
import ua.goit.timonov.enterprise.module_6_2.controllers.EmployeeController;
import ua.goit.timonov.enterprise.module_6_2.controllers.OrderController;
import ua.goit.timonov.enterprise.module_6_2.model.*;
import ua.goit.timonov.enterprise.module_6_2.view.console.ConsoleIO;
import java.util.List;
/**
* Handler for tasks with DB Restaurant's component CookedDish
* with implementation of methods from DbItemHandlerWithBaseMethods:
* - get from DB list of all cooked dishes
* - add new cooked dish
*/
public class CookedDishHandler extends DbItemHandlerWithBaseMethods<CookedDish> {
public static final String COOK = "cook's";
public static final String ORDER = "order's";
public static final String DISH_NAME = "dish name";
public static final String NAME = "name";
public static final String COOKED_DISH = "Cooked dish";
private CookedDishController cookedDishController;
private OrderController orderController;
private DishController dishController;
private EmployeeController employeeController;
public void setCookedDishController(CookedDishController cookedDishController) {
this.cookedDishController = cookedDishController;
}
public void setOrderController(OrderController orderController) {
this.orderController = orderController;
}
public void setDishController(DishController dishController) {
this.dishController = dishController;
}
public void setEmployeeController(EmployeeController employeeController) {
this.employeeController = employeeController;
}
/**
* Uses inherited constructor with setting component's name
*/
public CookedDishHandler() {
super(COOKED_DISH);
}
// implementation of inherited methods from DbItemHandlerWithBaseMethods
@Override
protected List<CookedDish> getAllItems() {
return cookedDishController.getAll();
}
@Override
protected void outputItemList(List<CookedDish> cookedDishes) {
ConsoleIO.outputCookedDish(cookedDishes);
}
@Override
protected String getName(CookedDish cookedDish) {
return cookedDish.getName();
}
@Override
protected CookedDish inputItem() {
int orderId = ConsoleIO.inputInteger(ORDER, ID);
String dishName = ConsoleIO.inputString(DISH_NAME, NAME);
int cookId = ConsoleIO.inputInteger(COOK, ID);
Order order = orderController.search(orderId);
Dish dish = dishController.search(dishName);
Employee cook = employeeController.search(cookId);
CookedDish cookedDish = new CookedDish(order, dish, cook);
return cookedDish;
}
@Override
protected void addItem(CookedDish newCookedDish) {
cookedDishController.add(newCookedDish);
}
}
|
[
"timalex1206@gmail.com"
] |
timalex1206@gmail.com
|
8e4ebbfc70748c6955985c20a8fcdf3d56fd95b8
|
ee5774933ab13acffe5b81336fa6e060eacb1cf5
|
/build/src/main/java/com/mypurecloud/sdk/v2/model/QueueConversationSocialExpressionEventTopicJourneyCustomerSession.java
|
74451b6fb446f70fc6c2afd02edb91c80a763f2e
|
[
"MIT"
] |
permissive
|
deerghayu/platform-client-sdk-java
|
d1ad7a7513da57872cae90ac7b5cd7da0be2dd25
|
df466b7e231d1632ab9e669b0953b9a3289c3c34
|
refs/heads/master
| 2022-11-29T18:07:18.173617
| 2020-02-26T05:26:38
| 2020-02-26T05:26:38
| 238,808,182
| 0
| 0
|
MIT
| 2020-02-06T23:47:38
| 2020-02-06T23:47:38
| null |
UTF-8
|
Java
| false
| false
| 2,600
|
java
|
package com.mypurecloud.sdk.v2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* QueueConversationSocialExpressionEventTopicJourneyCustomerSession
*/
public class QueueConversationSocialExpressionEventTopicJourneyCustomerSession implements Serializable {
private String id = null;
private String type = null;
/**
**/
public QueueConversationSocialExpressionEventTopicJourneyCustomerSession id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
**/
public QueueConversationSocialExpressionEventTopicJourneyCustomerSession type(String type) {
this.type = type;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
QueueConversationSocialExpressionEventTopicJourneyCustomerSession queueConversationSocialExpressionEventTopicJourneyCustomerSession = (QueueConversationSocialExpressionEventTopicJourneyCustomerSession) o;
return Objects.equals(this.id, queueConversationSocialExpressionEventTopicJourneyCustomerSession.id) &&
Objects.equals(this.type, queueConversationSocialExpressionEventTopicJourneyCustomerSession.type);
}
@Override
public int hashCode() {
return Objects.hash(id, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueueConversationSocialExpressionEventTopicJourneyCustomerSession {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"purecloud-jenkins@ininica.com"
] |
purecloud-jenkins@ininica.com
|
241cab35037405ffd9910b633f2aa3059ec00080
|
8bc8038babd1e278c63d533fc7a351cac7ef4905
|
/mybatis/src/main/java/org/apache/ibatis/reflection/SystemMetaObject.java
|
aa675c887cb13faa180d549d066a89c3d5028cb3
|
[] |
no_license
|
jinbaizhe/mybatis
|
a336709bca5f81b8b9b7931f2603348aa4f6a21e
|
1726a7a63762e9200864564473ecb30570487842
|
refs/heads/main
| 2023-06-24T02:29:07.984538
| 2021-07-27T12:16:29
| 2021-07-27T12:16:29
| 361,598,595
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,716
|
java
|
/*
* Copyright 2009-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ibatis.reflection;
import org.apache.ibatis.reflection.factory.DefaultObjectFactory;
import org.apache.ibatis.reflection.factory.ObjectFactory;
import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory;
import org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory;
/**
* @author Clinton Begin
*/
public final class SystemMetaObject {
public static final ObjectFactory DEFAULT_OBJECT_FACTORY = new DefaultObjectFactory();
public static final ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY = new DefaultObjectWrapperFactory();
public static final MetaObject NULL_META_OBJECT = MetaObject.forObject(NullObject.class, DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY, new DefaultReflectorFactory());
private SystemMetaObject() {
// Prevent Instantiation of Static Class
}
private static class NullObject {
}
public static MetaObject forObject(Object object) {
return MetaObject.forObject(object, DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY, new DefaultReflectorFactory());
}
}
|
[
"jinbaizhe@leoao.com"
] |
jinbaizhe@leoao.com
|
efd635a7d237d9570ccd888c77d203e68b2e2495
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/21_geo-google-oasis.names.tc.ciq.xsdschema.xal._2.ThoroughfareNumberPrefix-0.5-8/oasis/names/tc/ciq/xsdschema/xal/_2/ThoroughfareNumberPrefix_ESTest.java
|
e56333b05d32bf6a2766c7cde8d9404ae4d2b04f
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 689
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Oct 29 16:05:57 GMT 2019
*/
package oasis.names.tc.ciq.xsdschema.xal._2;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class ThoroughfareNumberPrefix_ESTest extends ThoroughfareNumberPrefix_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
8f81a1767a44f82239c2a4b32eedb0110246b8b8
|
0c9e783b4a5ddd212c965b854c7c3d56e32bd85b
|
/src/ocp11/ch10/review/Dog.java
|
07d7e3fee841be4d8c7f97ec37bd7998759c98ba
|
[] |
no_license
|
mhussainshah1/OCPStudyGuide
|
831209f2e7b224f213e486c68d764fb4ce30963d
|
4248454a0f217cd9494cf929ff64078e34c5444e
|
refs/heads/master
| 2023-06-08T16:01:34.619559
| 2021-06-16T12:07:34
| 2021-06-16T12:07:34
| 319,525,558
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 530
|
java
|
package ocp11.ch10.review;
public class Dog {
public String name;
public void parseName() {
System.out.print("1");
try {
System.out.print("2");
int x = Integer.parseInt(name);
System.out.print("3");
} catch (NumberFormatException e) {
System.out.print("4");
}
}
public static void main(String[] args) {
Dog leroy = new Dog();
leroy.name = "Leroy";
leroy.parseName();
System.out.print("5");
}
}
|
[
"muhammadshah.14@sunymaritime.edu"
] |
muhammadshah.14@sunymaritime.edu
|
1755b506ef955ff7649fc631b63c7bbbff281c91
|
237b275a818a6ea4248f1a58a20f9915346bc0d9
|
/src/test/java/io/bootique/tapestry/testapp2/bq/TestApp2BootiqueModule.java
|
b3e11fabce09505a61ed32e2e1c479c277ad10da
|
[
"Apache-2.0"
] |
permissive
|
const1993/bootique-tapestry
|
b0a0a213c929b5ddb9bb03c5a8d4e17d485a2426
|
7aa6506e997b21041e6976ae8362ea501f89d6b2
|
refs/heads/master
| 2020-03-19T21:18:41.410962
| 2018-06-09T01:01:03
| 2018-06-09T01:01:03
| 136,935,754
| 0
| 0
|
Apache-2.0
| 2018-06-11T14:12:01
| 2018-06-11T14:11:59
|
Java
|
UTF-8
|
Java
| false
| false
| 274
|
java
|
package io.bootique.tapestry.testapp2.bq;
import com.google.inject.Binder;
import com.google.inject.Module;
public class TestApp2BootiqueModule implements Module {
@Override
public void configure(Binder binder) {
binder.bind(BQEchoService.class);
}
}
|
[
"andrus@objectstyle.com"
] |
andrus@objectstyle.com
|
8cd171f3d690b839a58ec6c3b49e6eef9439704f
|
e9d9d51d6f943c2f9664e189c5cf9faa84ea4a18
|
/xc-model/src/main/java/com/zwb/demo/xc/domain/report/ReportCompany.java
|
cba83e03c58e058f25e5ee3b174c259aef849103
|
[] |
no_license
|
zhouwenbin00/xc-service
|
c24b23701e60024dbf43989c064d3693178a2a68
|
8ea4dc77a12ca16bce07271769125863763b71d6
|
refs/heads/master
| 2022-12-08T07:40:43.136198
| 2019-11-04T09:39:45
| 2019-11-04T09:39:45
| 211,318,855
| 0
| 0
| null | 2022-11-24T06:27:06
| 2019-09-27T12:52:31
|
Java
|
UTF-8
|
Java
| false
| false
| 590
|
java
|
package com.zwb.demo.xc.domain.report;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
/** Created by admin on 2018/2/27. */
@Data
@ToString
@Document(collection = "report_company")
public class ReportCompany {
@Id private String id;
private Float evaluation_score; // 评价分数(平均分)
private Float good_scale; // 好评率
private Long course_num; // 课程数
private Long student_num; // 学生人数
private Long play_num; // 播放次数
}
|
[
"2825075112@qq.com"
] |
2825075112@qq.com
|
5ea13019cab46b04694b035276bcfc8a62c17882
|
d35a8a7eade926785878d27eb10a4331c430d198
|
/lichkin-projects-cashier-desk-apis-generator/src/test/java/com/lichkin/application/LKApiGeneratorRunner.java
|
af83688cea465682f8f84884edc726c89f5c1fbe
|
[
"MIT"
] |
permissive
|
LichKinContributor/lichkin-projects-cashier-desk
|
f918a5903b360e2e00fb9013869080b3747ea094
|
bae790a9ea1e62e21295fb38fc0ac4fa66aa49ea
|
refs/heads/master
| 2022-07-04T16:51:35.814189
| 2018-11-02T17:56:11
| 2018-11-02T17:56:11
| 155,856,036
| 0
| 0
|
MIT
| 2022-06-21T00:51:49
| 2018-11-02T11:20:56
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,431
|
java
|
package com.lichkin.application;
import org.junit.Test;
import com.lichkin.springframework.generator.LKApiGenerator;
import com.lichkin.springframework.generator.LKApiGenerator.Type;
public class LKApiGeneratorRunner {
String projectDir = Thread.currentThread().getContextClassLoader().getResource(".").getPath().replace("/target/test-classes/", "");
String apiType = "WEB";
String userType = "ADMIN";
int index = 0;
int errorCode = 170000;
@Test
public void generateInsert() {
LKApiGenerator.generate(userType, apiType, projectDir, "", index, errorCode, Type.Insert, "新增数据接口");
}
@Test
public void generateUpdate() {
LKApiGenerator.generate(userType, apiType, projectDir, "", index, errorCode, Type.Update, "编辑数据接口");
}
@Test
public void generatePage() {
LKApiGenerator.generate(userType, apiType, projectDir, "", index, errorCode, Type.GetPage, "获取分页数据接口");
}
@Test
public void generateList() {
LKApiGenerator.generate(userType, apiType, projectDir, "", index, errorCode, Type.GetList, "获取列表数据接口");
}
@Test
public void generateOne() {
LKApiGenerator.generate(userType, apiType, projectDir, "", index, errorCode, Type.GetOne, "获取单个数据接口");
}
@Test
public void generateUS() {
LKApiGenerator.generate(userType, apiType, projectDir, "", index, errorCode, Type.UpdateUsingStatus, "修改状态接口");
}
}
|
[
"zhuangxuxin@hotmail.com"
] |
zhuangxuxin@hotmail.com
|
954b07c0ad87fb3b8af51d7aaa175ca4826953e5
|
2949e292590d972c6d7f182f489f8f86a969cd69
|
/Module4/02_spring_controller/practive/01_check_email/src/main/java/com/example/service/impl/ValidateServiceImpl.java
|
74a9725633ce79a69a6146faa7e3e0d2a7ebf249
|
[] |
no_license
|
hoangphamdong/C0221G1-hoangphamdon
|
13e519ae4c127909c3c1784ab6351f2ae23c0be0
|
7e238ca6ce80f5cce712544714d6fce5e3ffb848
|
refs/heads/master
| 2023-06-23T07:50:07.790174
| 2021-07-21T10:22:20
| 2021-07-21T10:22:20
| 342,122,557
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 626
|
java
|
package com.example.service.impl;
import com.example.service.IValidateService;
import org.springframework.stereotype.Service;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@Service
public class ValidateServiceImpl implements IValidateService {
private static final String EMAIL_REGEX = "^[A-Za-z0-9]+[A-Za-z0-9]*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)$";
private static Pattern pattern;
private Matcher matcher;
@Override
public boolean validate(String email) {
pattern = Pattern.compile(EMAIL_REGEX);
matcher = pattern.matcher(email);
return matcher.matches();
}
}
|
[
"hpdongbmt@gmail.com"
] |
hpdongbmt@gmail.com
|
e00622f3f5edb5f482c6ef01a5c7141d794137a4
|
fb5bfb5b4cf7a118cb858490953e69517d8060a4
|
/src/lib/utils/Holder.java
|
7dda6199accec38a74b2b1593a37c4e51e24fdb1
|
[] |
no_license
|
v777779/jbook
|
573dd1e4e3847ed51c9b6b66d2b098bf8eb58af5
|
09fc56a27e9aed797327f01ea955bdf1815d0d54
|
refs/heads/master
| 2021-09-19T08:14:16.299382
| 2018-07-25T14:03:12
| 2018-07-25T14:03:12
| 86,017,001
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 628
|
java
|
package lib.utils;
/**
* Created by V1 on 20.03.2017.
*/
public class Holder<T> {
private T value;
public Holder() {
}
public Holder(T value) {
this.value = value;
}
public T getValue() {
return value;
}
public void setValue(T value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
return value.equals(o);
}
public String getName() {
return value.getClass().getSimpleName();
}
@Override
public String toString() {
return "Holder{" +
value +
'}';
}
}
|
[
"vadim.v.voronov@gmail.com"
] |
vadim.v.voronov@gmail.com
|
8dfa83ac734b34dbd66ba66d583f53ee962294b4
|
58d9997a806407a09c14aa0b567e57d486b282d4
|
/com/planet_ink/coffee_mud/Locales/MetalRoom.java
|
dab5ff309ceb26627c2c5e12e3241575a90337a8
|
[
"Apache-2.0"
] |
permissive
|
kudos72/DBZCoffeeMud
|
553bc8619a3542fce710ba43bac01144148fe2ed
|
19a3a7439fcb0e06e25490e19e795394da1df490
|
refs/heads/master
| 2021-01-10T07:57:01.862867
| 2016-03-17T23:04:25
| 2016-03-17T23:04:25
| 39,215,834
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,765
|
java
|
package com.planet_ink.coffee_mud.Locales;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2004-2014 Bo Zimmerman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
public class MetalRoom extends StdRoom
{
@Override public String ID(){return "MetalRoom";}
public MetalRoom()
{
super();
name="the room";
basePhyStats.setWeight(1);
recoverPhyStats();
climask=Places.CLIMASK_NORMAL;
}
@Override public int domainType(){return Room.DOMAIN_INDOORS_METAL;}
}
|
[
"kirk.narey@gmail.com"
] |
kirk.narey@gmail.com
|
ff26f9165e85d1355f5c4943dae23f034ab87b79
|
b3f0b43d8e0e0187ea4d260b746f6b45ccf9e97d
|
/examples/robot/basic-robot/src/main/java/robot/RobotMap.java
|
5da2a0b6937f2293bfcfdf44d3776720c26398dd
|
[
"BSD-3-Clause"
] |
permissive
|
Flash3388/FlashLib
|
55cfacd40ad39f4f12b48250e73992c6696f5bd8
|
482c626ff66d457525abda984933375d159a537e
|
refs/heads/master
| 2023-07-20T02:50:46.912408
| 2023-07-06T19:26:45
| 2023-07-06T19:26:45
| 90,011,594
| 14
| 1
|
BSD-3-Clause
| 2023-05-06T13:55:15
| 2017-05-02T08:51:16
|
Java
|
UTF-8
|
Java
| false
| false
| 749
|
java
|
package robot;
import com.flash3388.flashlib.hid.HidChannel;
import com.flash3388.flashlib.io.IoChannel;
public class RobotMap {
private RobotMap() {}
public static final IoChannel DRIVE_MOTOR_FRONT = new IoChannel.Stub();
public static final IoChannel DRIVE_MOTOR_RIGHT = new IoChannel.Stub();
public static final IoChannel DRIVE_MOTOR_BACK = new IoChannel.Stub();
public static final IoChannel DRIVE_MOTOR_LEFT = new IoChannel.Stub();
public static final IoChannel SHOOTER_MOTOR = new IoChannel.Stub();
public static final IoChannel SHOOTER_MOTOR2 = new IoChannel.Stub();
public static final IoChannel SHOOTER_SOLENOID = new IoChannel.Stub();
public static final HidChannel XBOX = new HidChannel.Stub();
}
|
[
"tomtzook@gmail.com"
] |
tomtzook@gmail.com
|
05d52f77b03f8c1169c2fcb0a123c2959e12e141
|
85a22f15ea9b58061360e491ea0a1a6f6db4371b
|
/android/app/src/main/java/com/githubpopular/MainActivity.java
|
a03929adb4d4ae02fb0974b3ead4f089a1ec681b
|
[] |
no_license
|
jinhuizxc/GithubPopular
|
0e3bdad0b1a3befab443fb84ed673e73e4cb70f5
|
199858055abc23550279986bbf7b889fbe91f0ae
|
refs/heads/master
| 2021-01-19T23:21:31.384652
| 2017-09-01T01:56:29
| 2017-09-01T01:56:29
| 101,264,221
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 604
|
java
|
package com.githubpopular;
import com.facebook.react.ReactActivity;
import com.cboy.rn.splashscreen.SplashScreen;
import android.os.Bundle;
public class MainActivity extends ReactActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
SplashScreen.show(this,true);
super.onCreate(savedInstanceState);
}
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "GithubPopular";
}
}
|
[
"1004260403@qq.com"
] |
1004260403@qq.com
|
fcb2529edd4a88da93d01acf88f80eec72214f8a
|
7b82d70ba5fef677d83879dfeab859d17f4809aa
|
/_part2/firefly_luna/firefly/src/main/java/luna/com/firefly/entity/system/SystemDic.java
|
ee59c4d86ea54d292efad93e7b6dc67a60270a89
|
[
"Apache-2.0"
] |
permissive
|
apollowesley/jun_test
|
fb962a28b6384c4097c7a8087a53878188db2ebc
|
c7a4600c3f0e1b045280eaf3464b64e908d2f0a2
|
refs/heads/main
| 2022-12-30T20:47:36.637165
| 2020-10-13T18:10:46
| 2020-10-13T18:10:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,399
|
java
|
package luna.com.firefly.entity.system;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* <系统字典表>
*
* @author 陆小凤
* @version [1.0, 2015年7月17日]
*/
@Data
@Entity
@Table(name = "SYSTEM_DIC")
public class SystemDic implements Serializable
{
/**
* 注释内容
*/
private static final long serialVersionUID = -2339751794840917306L;
@Id
@Column(name = "ID")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "TYPE")
private String type;
@Column(name = "NAME")
private String name;
@Column(name = "VALUE")
private String value;
@Column(name = "DESCRIPTION")
private String desc;
@Column(name = "SORT_NUM")
private Integer sortNum;
/**
* 创建时间
*/
private Date createTime;
/**
* 状态更改时间
*/
private Date updateTime;
public SystemDic()
{
}
@Override
public String toString()
{
return ToStringBuilder.reflectionToString(this);
}
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
4b2ca6b20fff69e19d9be6f3a4c4cf7707cf8293
|
0b36dc41663acb7a418388272533c49b70922403
|
/eby-chat spring-4.2.0/src/main/java/com/kk/controller/UploadController.java
|
e303f5d0b7b1e07f9452bb22b36ef6d5f4aa9608
|
[] |
no_license
|
kongzhidea/spring-mvc
|
8fa6fab8780f79626d015e73e11b92d55bdf0e5c
|
b88ecc53d35211c2d3108b9f05d599ed00f76e71
|
refs/heads/master
| 2020-04-12T06:41:50.680183
| 2018-10-10T03:12:48
| 2018-10-10T03:12:48
| 64,271,506
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,561
|
java
|
package com.kk.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
/**
* UploadController
*/
@Controller
@RequestMapping("upload")
public class UploadController {
public static final Log logger = LogFactory.getLog(UploadController.class);
@RequestMapping("")
public String test(HttpServletRequest request,
HttpServletResponse response, Model model) {
return "upload";
}
@RequestMapping(value = "/create", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
@ResponseBody
public String create(HttpServletRequest request,
HttpServletResponse response, Model model,
@RequestParam("file_name") MultipartFile file) {
try {
System.out.println(file.getOriginalFilename() + ".." + file.getSize());
return "upload.create";
} catch (Exception e) {
logger.error("catch error! " + e.getMessage(), e);
}
return "upload.error";
}
}
|
[
"563150913@qq.com"
] |
563150913@qq.com
|
6737ead45dabd1e097be7d629ed5168fbd101632
|
491a0054d69f834e87c41ce6c2665bd32d62afc9
|
/src/main/java/zhou/yi/T1_helloworld/App.java
|
a984d1128a701cf21beeb53e57024bdb44896ca7
|
[] |
no_license
|
renmingpinming/rabbitmq-test
|
3ff5fdaf0767220debb2c07427973d7cc30a914b
|
506978f6b40ba9f5c61c8d82c844e6a03734a4b9
|
refs/heads/master
| 2020-05-01T14:38:32.345715
| 2019-03-26T01:36:11
| 2019-03-26T01:36:11
| 177,525,568
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,224
|
java
|
package zhou.yi.T1_helloworld;
import com.rabbitmq.client.*;
import org.junit.Test;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
/**
* @Author: XiaoLang
* @Date: 2019/3/25 11:33
*/
public class App {
@Test
public void send() throws IOException, TimeoutException {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("localhost");
Connection connection = factory.newConnection();
Channel channel = connection.createChannel();
channel.queueDeclare("hello", false, false, false, null);
// 将第二个参数设为true,表示声明一个需要持久化的队列。
// 需要注意的是,若你已经定义了一个非持久的,同名字的队列,要么将其先删除(不然会报错),要么换一个名字。
// channel.queueDeclare("hello", true, false, false, null);
channel.basicPublish("", "hello", null, "Hello World3".getBytes());
// 修改了第三个参数,这是表明消息需要持久化
// channel.basicPublish("", "hello", MessageProperties.PERSISTENT_TEXT_PLAIN, "Hello World3".getBytes());
channel.close();
connection.close();
}
@Test
public void receive() throws Exception {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("localhost");
Connection connection = factory.newConnection();
Channel channel = connection.createChannel();
channel.queueDeclare("hello", false, false, false, null);
channel.basicConsume("hello", true, new DefaultConsumer(channel) {
@Override
public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException {
System.out.println(new String(body, "UTF-8"));
}
});
synchronized (this){
// 因为以上接收消息的方法是异步的(非阻塞),当采用单元测试方式执行该方法时,程序会在打印消息前结束,因此使用wait来防止程序提前终止。若使用main方法执行,则不需要担心该问题。
wait();
}
}
}
|
[
"renmingpinming@163.com"
] |
renmingpinming@163.com
|
d468f8baa735657041868b902470914fcc2648fa
|
54772e8abe7247c3e0bf725357cd627d672dd767
|
/src/net/shopxx/controller/shop/ProductController.java
|
79a8bc515619ff563797d310c8d8724ba27d898f
|
[] |
no_license
|
tomdev2008/newcode
|
a0be11f290009c089a6e874b19aa6585c1606f7c
|
2e78acdd97886f9464df09d2172d21bc78f9bd74
|
refs/heads/master
| 2021-01-16T19:21:42.323854
| 2013-06-15T03:05:18
| 2013-06-15T03:05:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,629
|
java
|
package net.shopxx.controller.shop;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import net.shopxx.Pageable;
import net.shopxx.ResourceNotFoundException;
import net.shopxx.entity.Attribute;
import net.shopxx.entity.Brand;
import net.shopxx.entity.Product;
import net.shopxx.entity.Product.ProductOrderType;
import net.shopxx.entity.ProductCategory;
import net.shopxx.entity.Promotion;
import net.shopxx.service.BrandService;
import net.shopxx.service.ProductCategoryService;
import net.shopxx.service.ProductService;
import net.shopxx.service.PromotionService;
import net.shopxx.service.SearchService;
import net.shopxx.service.TagService;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller("shopProductController")
@RequestMapping({ "/product" })
public class ProductController extends BaseController {
@Resource(name = "productServiceImpl")
private ProductService IIIlllIl;
@Resource(name = "productCategoryServiceImpl")
private ProductCategoryService IIIllllI;
@Resource(name = "brandServiceImpl")
private BrandService IIIlllll;
@Resource(name = "promotionServiceImpl")
private PromotionService IIlIIIII;
@Resource(name = "tagServiceImpl")
private TagService IIlIIIIl;
@Resource(name = "searchServiceImpl")
private SearchService IIlIIIlI;
@RequestMapping(value = { "/history" }, method = { org.springframework.web.bind.annotation.RequestMethod.GET })
@ResponseBody
public List<Product> history(Long[] ids) {
return this.IIIlllIl.findList(ids);
}
@RequestMapping(value = { "/list/{productCategoryId}" }, method = { org.springframework.web.bind.annotation.RequestMethod.GET })
public String list(@PathVariable Long productCategoryId, Long brandId,
Long promotionId, Long[] tagIds, BigDecimal startPrice,
BigDecimal endPrice, ProductOrderType orderType,
Integer pageNumber, Integer pageSize, HttpServletRequest request,
ModelMap model) {
ProductCategory localProductCategory = (ProductCategory) this.IIIllllI
.find(productCategoryId);
if (localProductCategory == null)
throw new ResourceNotFoundException();
Brand localBrand = (Brand) this.IIIlllll.find(brandId);
Promotion localPromotion = (Promotion) this.IIlIIIII.find(promotionId);
List localList = this.IIlIIIIl.findList(tagIds);
HashMap localHashMap = new HashMap();
if (localProductCategory != null) {
Set<Attribute> attributes = localProductCategory.getAttributes();
Iterator<Attribute> localIterator = attributes.iterator();
while (localIterator.hasNext()) {
Attribute localAttribute = (Attribute) localIterator.next();
String str = request.getParameter("attribute_"
+ localAttribute.getId());
if (!StringUtils.isNotEmpty(str))
continue;
localHashMap.put(localAttribute, str);
}
}
Object localObject = new Pageable(pageNumber, pageSize);
model.addAttribute("orderTypes", ProductOrderType.values());
model.addAttribute("productCategory", localProductCategory);
model.addAttribute("brand", localBrand);
model.addAttribute("promotion", localPromotion);
model.addAttribute("tags", localList);
model.addAttribute("attributeValue", localHashMap);
model.addAttribute("startPrice", startPrice);
model.addAttribute("endPrice", endPrice);
model.addAttribute("orderType", orderType);
model.addAttribute("pageNumber", pageNumber);
model.addAttribute("pageSize", pageSize);
model.addAttribute("page", this.IIIlllIl.findPage(localProductCategory,
localBrand, localPromotion, localList, localHashMap,
startPrice, endPrice, Boolean.valueOf(true),
Boolean.valueOf(true), null, Boolean.valueOf(false), null,
null, orderType, (Pageable) localObject));
return (String) "/shop/product/list";
}
@RequestMapping(value = { "/list" }, method = { org.springframework.web.bind.annotation.RequestMethod.GET })
public String list(Long brandId, Long promotionId, Long[] tagIds,
BigDecimal startPrice, BigDecimal endPrice,
ProductOrderType orderType, Integer pageNumber, Integer pageSize,
HttpServletRequest request, ModelMap model) {
Brand localBrand = (Brand) this.IIIlllll.find(brandId);
Promotion localPromotion = (Promotion) this.IIlIIIII.find(promotionId);
List localList = this.IIlIIIIl.findList(tagIds);
Pageable localPageable = new Pageable(pageNumber, pageSize);
model.addAttribute("orderTypes", ProductOrderType.values());
model.addAttribute("brand", localBrand);
model.addAttribute("promotion", localPromotion);
model.addAttribute("tags", localList);
model.addAttribute("startPrice", startPrice);
model.addAttribute("endPrice", endPrice);
model.addAttribute("orderType", orderType);
model.addAttribute("pageNumber", pageNumber);
model.addAttribute("pageSize", pageSize);
model.addAttribute("page", this.IIIlllIl.findPage(null, localBrand,
localPromotion, localList, null, startPrice, endPrice,
Boolean.valueOf(true), Boolean.valueOf(true), null,
Boolean.valueOf(false), null, null, orderType, localPageable));
return "/shop/product/list";
}
@RequestMapping(value = { "/search" }, method = { org.springframework.web.bind.annotation.RequestMethod.GET })
public String search(String keyword, BigDecimal startPrice,
BigDecimal endPrice, ProductOrderType orderType,
Integer pageNumber, Integer pageSize, ModelMap model) {
if (StringUtils.isEmpty(keyword))
return "/shop/common/error";
Pageable localPageable = new Pageable(pageNumber, pageSize);
model.addAttribute("orderTypes", ProductOrderType.values());
model.addAttribute("productKeyword", keyword);
model.addAttribute("startPrice", startPrice);
model.addAttribute("endPrice", endPrice);
model.addAttribute("orderType", orderType);
model.addAttribute("page", this.IIlIIIlI.search(keyword, startPrice,
endPrice, orderType, localPageable));
return "shop/product/search";
}
@RequestMapping(value = { "/hits/{id}" }, method = { org.springframework.web.bind.annotation.RequestMethod.GET })
@ResponseBody
public Long hits(@PathVariable Long id) {
return Long.valueOf(this.IIIlllIl.viewHits(id));
}
}
|
[
"xiaoshi332@163.com"
] |
xiaoshi332@163.com
|
1640a06b628fb65b01b7d19f48fe31eeb180e5f7
|
0ff504f363c057e256556405acefdf3f827006fd
|
/src/main/java/com/app/demo/Gof23Model/strategy/example/BackDoor.java
|
f042f59b4f36823b07729734c2f0b618e6d164a8
|
[] |
no_license
|
Justdoitwj/breeze
|
b16606036c5303f5e9c9b4310ec711629ff77920
|
b772e01a3c1ede32c15cf106bd6a61b18be5671a
|
refs/heads/dev
| 2022-06-30T13:29:47.901212
| 2021-04-11T14:40:32
| 2021-04-11T14:40:32
| 210,748,978
| 1
| 2
| null | 2022-06-21T01:56:21
| 2019-09-25T03:37:36
|
Java
|
UTF-8
|
Java
| false
| false
| 362
|
java
|
/**
*
*/
package com.app.demo.Gof23Model.strategy.example;
/**
* @author cbf4Life cbf4life@126.com
* I'm glad to share my knowledge with you all.
* 找乔国老帮忙,使孙权不能杀刘备
*/
public class BackDoor implements IStrategy {
public void operate() {
System.out.println("找乔国老帮忙,让吴国太给孙权施加压力");
}
}
|
[
"13227866253@163.com"
] |
13227866253@163.com
|
ecd282081cc5aff24902518ec4bef4d6acd959b1
|
954bd8c43237b879fdd659a0f4c207a6ec0da7ea
|
/java.labs/jdnc-trunk/src/kleopatra/java/org/jdesktop/beansbindingx/example/BBOConnor.java
|
85d01c2a9e7a9d72afef82c445276ca4da336f8a
|
[] |
no_license
|
bothmagic/marxenter-labs
|
5e85921ae5b964b9cd58c98602a0faf85be4264e
|
cf1040e4de8cf4fd13b95470d6846196e1c73ff4
|
refs/heads/master
| 2021-01-10T14:15:31.594790
| 2013-12-20T11:22:53
| 2013-12-20T11:22:53
| 46,557,821
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,880
|
java
|
/*
* Created on 26.03.2008
*
*/
package org.jdesktop.beansbindingx.example;
import java.awt.event.ActionEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import javax.swing.JSlider;
import org.jdesktop.beans.AbstractBean;
import org.jdesktop.beansbinding.AutoBinding.UpdateStrategy;
import org.jdesktop.beansbinding.BeanProperty;
import org.jdesktop.beansbinding.Binding;
import org.jdesktop.beansbinding.Bindings;
import org.jdesktop.swingx.incubatorutil.InteractiveTestCase;
public class BBOConnor extends InteractiveTestCase {
public static void main(String[] args) {
BBOConnor test = new BBOConnor();
try {
test.runInteractiveTests();
} catch (Exception e) {
e.printStackTrace();
}
}
public void interactivePOJOBinding() {
final Person person = new Person("baby", 0);
Action action = new AbstractAction("Add year") {
public void actionPerformed(ActionEvent e) {
person.setAge(person.getAge() + 1);
}
};
JSlider age = new JSlider(0, 10, 0);
Binding binding = Bindings.createAutoBinding(UpdateStrategy.READ,
person, BeanProperty.create("age"),
age, BeanProperty.create("value"));
binding.bind();
JButton button = new JButton(action);
JPanel panel = new JPanel();
panel.add(button);
panel.add(age);
JCheckBox box = new JCheckBox("something");
box.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
// TODO Auto-generated method stub
System.out.println(evt.getPropertyName());
}
});
panel.add(box);
showInFrame(panel, "pojo binding");
}
public static class Person extends AbstractBean {
private String name;
private int age;
public Person() {
}
public Person(String name, int age ) {
this.name = name;
this.age = age;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setAge(int age) {
int old = getAge();
this.age = age;
firePropertyChange("age", old, getAge());
}
public int getAge() {
return age;
}
}
}
|
[
"markus.taubert@c8aec436-628a-29fb-4c76-4f2700b0ca23"
] |
markus.taubert@c8aec436-628a-29fb-4c76-4f2700b0ca23
|
9a4d55ad35862acbbac4a9c5bdd509c06bdee680
|
e29cc4f45ee5e223bb72fa096d021f9c63a9594b
|
/src/main/java/uk/ac/soton/ldanalytics/piotre/server/app/App.java
|
7430a1b59210bff6ad1a37d093e4e75ecf1dd492
|
[] |
no_license
|
eugenesiow/piotre-web
|
ae63e6e5089521314bf55bd0d26f3b6a83eccdfc
|
8b225c6aad0353e1f90fafb776fca6bbee560e14
|
refs/heads/master
| 2021-01-18T00:26:51.223044
| 2016-10-16T16:47:55
| 2016-10-16T16:47:55
| 65,021,646
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 632
|
java
|
package uk.ac.soton.ldanalytics.piotre.server.app;
import java.util.UUID;
public class App {
UUID id;
String name;
String author;
String description;
String uri;
public App(UUID id, String name, String author, String description,
String uri) {
super();
this.id = id;
this.name = name;
this.author = author;
this.description = description;
this.uri = uri;
}
public UUID getId() {
return id;
}
public String getName() {
return name;
}
public String getAuthor() {
return author;
}
public String getDescription() {
return description;
}
public String getUri() {
return uri;
}
}
|
[
"kyo116@gmail.com"
] |
kyo116@gmail.com
|
4b1df4b0f3eb10d4d95a542f6e4a3a82026d7ee6
|
53f895ac58cb7c9e1e8976c235df9c4544e79d33
|
/22_Inner Class (115 - 172 in Section 12)/com/source/innerclass1/D.java
|
77464d946b153a8f8478d9f0e5907614b0951e8b
|
[] |
no_license
|
alagurajan/CoreJava
|
c336356b45cdbcdc88311efbba8f57503e050b66
|
be5a8c2a60aac072f777d8b0320e4c94a1266cb3
|
refs/heads/master
| 2021-01-11T01:33:11.447570
| 2016-12-16T22:24:58
| 2016-12-16T22:24:58
| 70,690,915
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 322
|
java
|
package com.source.innerclass1;
class D
{
class E
{
int i;
void test1()
{
}
/***** If we want to make some attribute of innerclass
as static, then we should make the innerclass as static *******/
//static int i;
/*
static void test2()
{
}
*/
}
}
|
[
"aalagurajan@gmail.com"
] |
aalagurajan@gmail.com
|
a13568ddd183ec8e74e86249e5a75f58ef131aab
|
13307b636ffbd5281ff7ab1be700e1f0770e420c
|
/JDK-1.8.0.110-b13/src/com/sun/corba/se/PortableActivationIDL/InitialNameService.java
|
684085288b1c024ec1f8d49206e8d3d894248f9a
|
[] |
no_license
|
844485538/source-code
|
e4f55b6bb70088c6998515345d02de90a8e00c99
|
1ba8a2c3cd6ed6f10dc95ac2932696e03a498159
|
refs/heads/master
| 2022-12-15T04:30:09.751916
| 2019-11-10T09:44:24
| 2019-11-10T09:44:24
| 218,294,819
| 0
| 0
| null | 2022-12-10T10:46:58
| 2019-10-29T13:33:28
|
Java
|
UTF-8
|
Java
| false
| false
| 593
|
java
|
package com.sun.corba.se.PortableActivationIDL;
/**
* com/sun/corba/se/PortableActivationIDL/InitialNameService.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
* Thursday, December 17, 2009 2:13:38 PM GMT-08:00
*/
/** Interface used to support binding references in the bootstrap name
* service.
*/
public interface InitialNameService extends InitialNameServiceOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} // interface InitialNameService
|
[
"844485538@qq.com"
] |
844485538@qq.com
|
ad42299479093907dabb93fc1e4f04682665f945
|
6b5f2c9eacab222beb3ee82ebc0a236de7d84e6b
|
/src/m8mapgenerics/practice/Shape.java
|
e3892b62c637d02cc3998405c9cc77eb2f8dab9d
|
[] |
no_license
|
vasiliykulik/JavaCore
|
dc14c02aab4186b3e690df31fca6e8d15e8de04f
|
96eb9f50710c6ee3f96d4b0e8dfd7d8e1947c63c
|
refs/heads/master
| 2020-12-04T11:13:58.998061
| 2018-02-05T11:40:27
| 2018-02-05T11:40:27
| 66,162,642
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 707
|
java
|
package src.m8mapgenerics.practice;
public abstract class Shape implements Comparable<Shape> {
private Point point;
public Shape(Point point) {
this.point = point;
}
public Point getPoint() {
return point;
}
public abstract double getArea();
public String getClassName() {
return this.getClass().getSimpleName();
}
@Override
public int compareTo(Shape shape) {
/* final double firstArea = getArea();
final double secondArea = shape.getArea();
if (firstArea > secondArea) {
return 1;
}
if (firstArea < secondArea) {
return -1;
}
return 0;*/
//better option
return Double.compare(getArea(), shape.getArea());
}
}
|
[
"detroi.vv@gmail.com"
] |
detroi.vv@gmail.com
|
56bb12508aaf4654466867e60f434dcd30cf2fcd
|
91682c22fa06d64b6fff5008e86260297f28ce0b
|
/mobile-runescape-client/src/main/java/com/jagex/mobilesdk/payments/CategoryListRecyclerViewAdapter$ViewHolder$2.java
|
0e4dd7c89ad604234028cdcb6530d04dcb5771d6
|
[
"BSD-2-Clause"
] |
permissive
|
morscape/mors-desktop
|
a32b441b08605bd4cd16604dc3d1bc0b9da62ec9
|
230174cdfd2e409816c7699756f1a98e89c908d9
|
refs/heads/master
| 2023-02-06T15:35:04.524188
| 2020-12-27T22:00:22
| 2020-12-27T22:00:22
| 324,747,526
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,334
|
java
|
/*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* android.content.Intent
* android.net.Uri
* android.view.View
* android.view.View$OnClickListener
* com.jagex.mobilesdk.payments.CategoryListRecyclerViewAdapter
* net.runelite.mapping.Implements
*/
package com.jagex.mobilesdk.payments;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import com.jagex.mobilesdk.payments.CategoryListRecyclerViewAdapter;
import com.jagex.mobilesdk.payments.CategoryListRecyclerViewAdapter$ViewHolder;
import net.runelite.mapping.Implements;
@Implements(value="CategoryListRecyclerViewAdapter$ViewHolder$2")
class CategoryListRecyclerViewAdapter$ViewHolder$2
implements View.OnClickListener {
final /* synthetic */ CategoryListRecyclerViewAdapter$ViewHolder this$1;
CategoryListRecyclerViewAdapter$ViewHolder$2(CategoryListRecyclerViewAdapter$ViewHolder categoryListRecyclerViewAdapter$ViewHolder) {
this.this$1 = categoryListRecyclerViewAdapter$ViewHolder;
}
public void onClick(View view) {
view = new Intent("android.intent.action.VIEW", Uri.parse((String)"https://www.jagex.com/terms/privacy"));
CategoryListRecyclerViewAdapter.access$300((CategoryListRecyclerViewAdapter)this.this$1.this$0).startActivity((Intent)view);
}
}
|
[
"lorenzo.vaccaro@hotmail.com"
] |
lorenzo.vaccaro@hotmail.com
|
9802dd94d04b59c51cb4174ebcce3b136324c7ea
|
1661886bc7ec4e827acdd0ed7e4287758a4ccc54
|
/srv_unip_pub/src/main/java/com/sa/unip/app/common/controller/UserRoleDataActionGridViewController.java
|
816e285fcf335ba7d7d9402ff6a63c7ec73292d6
|
[
"MIT"
] |
permissive
|
zhanght86/iBizSys_unip
|
baafb4a96920e8321ac6a1b68735bef376b50946
|
a22b15ebb069c6a7432e3401bdd500a3ca37250e
|
refs/heads/master
| 2020-04-25T21:20:23.830300
| 2018-01-26T06:08:28
| 2018-01-26T06:08:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,070
|
java
|
/**
* iBizSys 5.0 机器人生产代码(不要直接修改当前代码)
* http://www.ibizsys.net
*/
package com.sa.unip.app.common.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import net.ibizsys.paas.appmodel.AppModelGlobal;
import net.ibizsys.paas.appmodel.IApplicationModel;
import net.ibizsys.paas.demodel.DEModelGlobal;
import net.ibizsys.paas.demodel.IDataEntityModel;
import net.ibizsys.paas.service.IService;
import net.ibizsys.paas.service.ServiceGlobal;
import net.ibizsys.paas.sysmodel.ISystemModel;
import net.ibizsys.paas.sysmodel.SysModelGlobal;
import net.ibizsys.paas.controller.ViewControllerGlobal;
import net.ibizsys.paas.ctrlmodel.ICtrlModel;
import net.ibizsys.paas.ctrlhandler.ICtrlHandler;
import com.sa.unip.srv.UniPSampleSysModel;
import com.sa.unip.app.appAppModel;
/**
* 视图[UserRoleDataActionGridView]控制类基类
*
* !! 不要对此代码进行修改
*/
@Controller
@RequestMapping(value = "/app/common/UserRoleDataActionGridView.do")
public class UserRoleDataActionGridViewController extends net.ibizsys.paas.controller.GridViewControllerBase {
public UserRoleDataActionGridViewController() throws Exception {
super();
this.setId("c26dee931c921e0c5794487b621088d5");
this.setCaption("用户角色数据操作");
this.setTitle("用户角色数据操作实体表格视图");
this.setAccessUserMode(2);
//支持快速搜索
this.setAttribute("UI.ENABLEQUICKSEARCH","TRUE");
//
this.setAttribute("UI.CTRL.GRID","TRUE");
//
this.setAttribute("UI.CTRL.SEARCHFORM","TRUE");
//
this.setAttribute("UI.CTRL.TOOLBAR","TRUE");
//支持搜常规索
this.setAttribute("UI.ENABLESEARCH","TRUE");
ViewControllerGlobal.registerViewController("/app/common/UserRoleDataActionGridView.do",this);
ViewControllerGlobal.registerViewController("com.sa.unip.app.common.controller.UserRoleDataActionGridViewController",this);
}
@Override
protected void prepareViewParam() throws Exception {
super.prepareViewParam();
}
private UniPSampleSysModel uniPSampleSysModel;
public UniPSampleSysModel getUniPSampleSysModel() {
if(this.uniPSampleSysModel==null) {
try {
this.uniPSampleSysModel = (UniPSampleSysModel)SysModelGlobal.getSystem("com.sa.unip.srv.UniPSampleSysModel");
} catch(Exception ex) {
}
}
return this.uniPSampleSysModel;
}
@Override
public ISystemModel getSystemModel() {
return this.getUniPSampleSysModel();
}
private appAppModel appAppModel;
public appAppModel getappAppModel() {
if(this.appAppModel==null) {
try {
this.appAppModel = (appAppModel)AppModelGlobal.getApplication("com.sa.unip.app.appAppModel");
} catch(Exception ex) {
}
}
return this.appAppModel;
}
@Override
public IApplicationModel getAppModel() {
return this.getappAppModel();
}
private net.ibizsys.psrt.srv.common.demodel.UserRoleDataActionDEModel userRoleDataActionDEModel;
public net.ibizsys.psrt.srv.common.demodel.UserRoleDataActionDEModel getUserRoleDataActionDEModel() {
if(this.userRoleDataActionDEModel==null) {
try {
this.userRoleDataActionDEModel = (net.ibizsys.psrt.srv.common.demodel.UserRoleDataActionDEModel)DEModelGlobal.getDEModel("net.ibizsys.psrt.srv.common.demodel.UserRoleDataActionDEModel");
} catch(Exception ex) {
}
}
return this.userRoleDataActionDEModel;
}
public IDataEntityModel getDEModel() {
return this.getUserRoleDataActionDEModel();
}
public net.ibizsys.psrt.srv.common.service.UserRoleDataActionService getUserRoleDataActionService() {
try {
return (net.ibizsys.psrt.srv.common.service.UserRoleDataActionService)ServiceGlobal.getService("net.ibizsys.psrt.srv.common.service.UserRoleDataActionService",this.getSessionFactory());
} catch(Exception ex) {
return null;
}
}
/* (non-Javadoc)
* @see net.ibizsys.paas.controller.IViewController#getService()
*/
@Override
public IService getService() {
return getUserRoleDataActionService();
}
/**
* 准备部件模型
* @throws Exception
*/
@Override
protected void prepareCtrlModels()throws Exception {
//注册 grid
ICtrlModel grid=(ICtrlModel)getUniPSampleSysModel().createObject("com.sa.unip.app.srv.common.ctrlmodel.UserRoleDataActionMainGridModel");
grid.init(this);
this.registerCtrlModel("grid",grid);
//注册 searchform
ICtrlModel searchForm=(ICtrlModel)getUniPSampleSysModel().createObject("com.sa.unip.app.srv.common.ctrlmodel.UserRoleDataActionDefaultSearchFormModel");
searchForm.init(this);
this.registerCtrlModel("searchform",searchForm);
}
/**
* 准备部件处理对象
* @throws Exception
*/
@Override
protected void prepareCtrlHandlers()throws Exception {
//注册 grid
ICtrlHandler grid = (ICtrlHandler)getUniPSampleSysModel().createObject("com.sa.unip.app.common.ctrlhandler.UserRoleDataActionGridViewGridHandler");
grid.init(this);
this.registerCtrlHandler("grid",grid);
//注册 searchform
ICtrlHandler searchForm = (ICtrlHandler)getUniPSampleSysModel().createObject("com.sa.unip.app.common.ctrlhandler.UserRoleDataActionGridViewSearchFormHandler");
searchForm.init(this);
this.registerCtrlHandler("searchform",searchForm);
}
/**
* 注册界面行为
* @throws Exception
*/
@Override
protected void prepareUIActions()throws Exception {
}
}
|
[
"dev@ibizsys.net"
] |
dev@ibizsys.net
|
6687045fc8e30e81a5435429756646f08d75addb
|
10d77fabcbb945fe37e15ae438e360a89a24ea05
|
/graalvm/transactions/fork/narayana/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/basic/EnvironmentBeanTest.java
|
886ce0272d501323660e03bf9dcc676413e495ce
|
[
"LGPL-2.1-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] |
permissive
|
nmcl/scratch
|
1a881605971e22aa300487d2e57660209f8450d3
|
325513ea42f4769789f126adceb091a6002209bd
|
refs/heads/master
| 2023-03-12T19:56:31.764819
| 2023-02-05T17:14:12
| 2023-02-05T17:14:12
| 48,547,106
| 2
| 1
|
Apache-2.0
| 2023-03-01T12:44:18
| 2015-12-24T15:02:58
|
Java
|
UTF-8
|
Java
| false
| false
| 1,498
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and/or its affiliates,
* and individual contributors as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* (C) 2010,
* @author JBoss, by Red Hat.
*/
package com.hp.mwtests.ts.txoj.basic;
import java.util.HashMap;
import org.junit.Test;
import com.arjuna.ats.txoj.common.TxojEnvironmentBean;
/**
* Unit tests for EnvironmentBean classes.
*
* @author Jonathan Halliday (jonathan.halliday@redhat.com)
*/
public class EnvironmentBeanTest
{
@Test
public void testTxojEnvironmentBean() throws Exception {
HashMap map;
com.arjuna.common.tests.simple.EnvironmentBeanTest.testBeanByReflection(new TxojEnvironmentBean());
}
}
|
[
"mlittle@redhat.com"
] |
mlittle@redhat.com
|
22e331dafbb50e8a883d91573a31cb66405d7413
|
6eb9945622c34e32a9bb4e5cd09f32e6b826f9d3
|
/src/com/crashlytics/android/core/Report.java
|
80bf73103cc1e91c24c2656aee25229c55faf0ce
|
[] |
no_license
|
alexivaner/GadgetX-Android-App
|
6d700ba379d0159de4dddec4d8f7f9ce2318c5cc
|
26c5866be12da7b89447814c05708636483bf366
|
refs/heads/master
| 2022-06-01T09:04:32.347786
| 2020-04-30T17:43:17
| 2020-04-30T17:43:17
| 260,275,241
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 488
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.crashlytics.android.core;
import java.io.File;
import java.util.Map;
interface Report
{
public abstract Map getCustomHeaders();
public abstract File getFile();
public abstract String getFileName();
public abstract String getIdentifier();
public abstract boolean remove();
}
|
[
"hutomoivan@gmail.com"
] |
hutomoivan@gmail.com
|
c7fe09ce786fcce579030cc472009017b6bddfca
|
2c0acb67c8d07c2149f6f6d1e2633cfb033bce2a
|
/app/src/main/java/qf/com/vitamodemo/adapter/SourceSpinnerAdapter.java
|
3fa75cd049faf7b974c34d1a48c7da7a84bf9406
|
[] |
no_license
|
yufeilong92/AiShiPin
|
a4c8dedc1381bf7b1161bf489ff7001ecf8d5782
|
8a7657765132832e3aaf7b44fcda9b8c45004896
|
refs/heads/master
| 2020-03-14T06:28:32.240967
| 2019-02-25T07:27:26
| 2019-02-25T07:27:26
| 131,484,892
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,131
|
java
|
package qf.com.vitamodemo.adapter;
import android.content.Context;
import android.util.Log;
import android.widget.ImageView;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
import java.util.List;
import qf.com.vitamodemo.BaseApp;
import qf.com.vitamodemo.R;
import qf.com.vitamodemo.bean.VideoBean;
/**
* 视频来源spinner的adapter
* Created by Administrator on 2015/10/11 0011.
*/
public class SourceSpinnerAdapter extends AbsAdapter<VideoBean.SitesEntity> {
public SourceSpinnerAdapter(Context context, int layoutRes, List<VideoBean.SitesEntity>
datas) {
super(context, layoutRes, datas, 0);
}
@Override
public void showData(ViewHolder vHolder, VideoBean.SitesEntity data, int position) {
ImageView icon = (ImageView) vHolder.getView(R.id.source_icon);
ImageLoader.getInstance().displayImage(data.getSite_logo(), icon, BaseApp
.getDisplayImageOptions(new FadeInBitmapDisplayer(1000)));
vHolder.setText(R.id.scource_sites, data.getSite_name());
}
}
|
[
"931697478@qq.com"
] |
931697478@qq.com
|
3f57bfb5beb666a42da7024e1edbc5bce5b337ad
|
6b365cd9f51f0c54327136f904c03051a1589c88
|
/orchis-admin/src/main/java/com/orchis/admin/validator/group/QiniuGroup.java
|
0374d882dbdcfbcaea3f10f82839b319f0c4c1b4
|
[] |
no_license
|
lowzc/orchis
|
017b11fa784d8970ad8f1fabfd95b6c282a87674
|
cc7d147abf18f0f9806e4bf2380eccab3c78b492
|
refs/heads/master
| 2022-12-22T18:56:32.322638
| 2020-09-22T04:13:55
| 2020-09-22T04:13:55
| 296,620,446
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 268
|
java
|
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package com.orchis.admin.validator.group;
/**
* 七牛
*
* @author Mark sunlightcs@gmail.com
*/
public interface QiniuGroup {
}
|
[
"huangzucheng"
] |
huangzucheng
|
6e6122e957ec6c6eba8162167bd8c21899d7cf23
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/tags/2.3.0/code/base/dso-spring/tests.unit/com/tctest/spring/bean/TestBean.java
|
33b8cb3ee7d651544afafd19887337deb4b67f1e
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,677
|
java
|
/*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tctest.spring.bean;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.ArrayList;
import java.util.Properties;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.util.ObjectUtils;
/**
* Simple test bean used for testing bean factories,
* AOP framework etc.
*
* @author Rod Johnson
* @since 15 April 2001
*/
public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOther, Comparable {
private String beanName;
private String country;
private BeanFactory beanFactory;
private boolean postProcessed;
private String name;
private String sex;
private int age;
private boolean jedi;
private ITestBean spouse;
private String touchy;
private String[] stringArray;
private Date date = new Date();
private Float myFloat = new Float(0.0);
private Collection friends = new LinkedList();
private Set someSet = new HashSet();
private Map someMap = new HashMap();
private List someList = new ArrayList();
private Properties someProperties = new Properties();
private INestedTestBean doctor = new NestedTestBean();
private INestedTestBean lawyer = new NestedTestBean();
private IndexedTestBean nestedIndexedBean;
private boolean destroyed = false;
private Number someNumber;
public TestBean() {
}
public TestBean(String name) {
this.name = name;
}
public TestBean(ITestBean spouse) {
this.spouse = spouse;
}
public TestBean(String name, int age) {
this.name = name;
this.age = age;
}
public void setBeanName(String beanName) {
this.beanName = beanName;
}
public String getBeanName() {
return beanName;
}
public void setBeanFactory(BeanFactory beanFactory) {
this.beanFactory = beanFactory;
}
public BeanFactory getBeanFactory() {
return beanFactory;
}
public void setPostProcessed(boolean postProcessed) {
this.postProcessed = postProcessed;
}
public boolean isPostProcessed() {
return postProcessed;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public boolean isJedi() {
return jedi;
}
public void setJedi(boolean jedi) {
this.jedi = jedi;
}
public ITestBean getSpouse() {
return spouse;
}
public void setSpouse(ITestBean spouse) {
this.spouse = spouse;
}
public String getTouchy() {
return touchy;
}
public void setTouchy(String touchy) throws Exception {
if (touchy.indexOf('.') != -1) {
throw new Exception("Can't contain a .");
}
if (touchy.indexOf(',') != -1) {
throw new NumberFormatException("Number format exception: contains a ,");
}
this.touchy = touchy;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String[] getStringArray() {
return stringArray;
}
public void setStringArray(String[] stringArray) {
this.stringArray = stringArray;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public Float getMyFloat() {
return myFloat;
}
public void setMyFloat(Float myFloat) {
this.myFloat = myFloat;
}
public Collection getFriends() {
return friends;
}
public void setFriends(Collection friends) {
this.friends = friends;
}
public Set getSomeSet() {
return someSet;
}
public void setSomeSet(Set someSet) {
this.someSet = someSet;
}
public Map getSomeMap() {
return someMap;
}
public void setSomeMap(Map someMap) {
this.someMap = someMap;
}
public List getSomeList() {
return someList;
}
public void setSomeList(List someList) {
this.someList = someList;
}
public Properties getSomeProperties() {
return someProperties;
}
public void setSomeProperties(Properties someProperties) {
this.someProperties = someProperties;
}
public INestedTestBean getDoctor() {
return doctor;
}
public INestedTestBean getLawyer() {
return lawyer;
}
public void setDoctor(INestedTestBean bean) {
doctor = bean;
}
public void setLawyer(INestedTestBean bean) {
lawyer = bean;
}
public Number getSomeNumber() {
return someNumber;
}
public void setSomeNumber(Number someNumber) {
this.someNumber = someNumber;
}
public IndexedTestBean getNestedIndexedBean() {
return nestedIndexedBean;
}
public void setNestedIndexedBean(IndexedTestBean nestedIndexedBean) {
this.nestedIndexedBean = nestedIndexedBean;
}
/**
* @see ITestBean#exceptional(Throwable)
*/
public void exceptional(Throwable t) throws Throwable {
if (t != null) {
throw t;
}
}
/**
* @see ITestBean#returnsThis()
*/
public Object returnsThis() {
return this;
}
/**
* @see IOther#absquatulate()
*/
public void absquatulate() {
}
public int haveBirthday() {
return age++;
}
public void destroy() {
this.destroyed = true;
}
public boolean wasDestroyed() {
return destroyed;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null || !(other instanceof TestBean)) {
return false;
}
TestBean tb2 = (TestBean) other;
return (ObjectUtils.nullSafeEquals(this.name, tb2.name) && this.age == tb2.age);
}
public int hashCode() {
return this.age;
}
public int compareTo(Object other) {
if (this.name != null && other instanceof TestBean) {
return this.name.compareTo(((TestBean) other).getName());
}
else {
return 1;
}
}
public String toString() {
String s = "name=" + name + "; age=" + age + "; touchy=" + touchy;
s += "; spouse={" + (spouse != null ? spouse.getName() : null) + "}";
return s;
}
}
|
[
"jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864
|
2f11b022fe5a3a0534dde276da9c5b51fb2e3186
|
a03530c2d296d90b556a6d9969f230c66712d27b
|
/it.disco.unimib.lta.eclipse.anomalyGraph.diagram/src/it/unimib/disco/lta/eclipse/anomalyGraph/diagram/part/AnomalyGraphCreationWizard.java
|
e79135dd41aebd643e35f3ccc80b5aec10cd6160
|
[] |
no_license
|
lta-disco-unimib-it/BCT_TOOLSET
|
991b6acc64f9518361ddbef2c67e05be94c2463f
|
0eacbed65316a8fc5608161a6396d36dd89f9170
|
refs/heads/master
| 2020-08-24T21:06:48.610483
| 2020-02-27T08:08:57
| 2020-02-27T08:08:57
| 216,904,791
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,452
|
java
|
package it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
/**
* @generated
*/
public class AnomalyGraphCreationWizard extends Wizard implements INewWizard {
/**
* @generated
*/
private IWorkbench workbench;
/**
* @generated
*/
protected IStructuredSelection selection;
/**
* @generated
*/
protected it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.AnomalyGraphCreationWizardPage diagramModelFilePage;
/**
* @generated
*/
protected Resource diagram;
/**
* @generated
*/
private boolean openNewlyCreatedDiagramEditor = true;
/**
* @generated
*/
public IWorkbench getWorkbench() {
return workbench;
}
/**
* @generated
*/
public IStructuredSelection getSelection() {
return selection;
}
/**
* @generated
*/
public final Resource getDiagram() {
return diagram;
}
/**
* @generated
*/
public final boolean isOpenNewlyCreatedDiagramEditor() {
return openNewlyCreatedDiagramEditor;
}
/**
* @generated
*/
public void setOpenNewlyCreatedDiagramEditor(
boolean openNewlyCreatedDiagramEditor) {
this.openNewlyCreatedDiagramEditor = openNewlyCreatedDiagramEditor;
}
/**
* @generated
*/
public void init(IWorkbench workbench, IStructuredSelection selection) {
this.workbench = workbench;
this.selection = selection;
setWindowTitle(it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.Messages.AnomalyGraphCreationWizardTitle);
setDefaultPageImageDescriptor(it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.AnomalyGraphDiagramEditorPlugin
.getBundledImageDescriptor("icons/wizban/NewAnomalyGraphWizard.gif")); //$NON-NLS-1$
setNeedsProgressMonitor(true);
}
/**
* @generated
*/
public void addPages() {
diagramModelFilePage = new it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.AnomalyGraphCreationWizardPage(
"DiagramModelFile", getSelection(), "anomalyGraph_diagram"); //$NON-NLS-1$ //$NON-NLS-2$
diagramModelFilePage
.setTitle(it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.Messages.AnomalyGraphCreationWizard_DiagramModelFilePageTitle);
diagramModelFilePage
.setDescription(it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.Messages.AnomalyGraphCreationWizard_DiagramModelFilePageDescription);
addPage(diagramModelFilePage);
}
/**
* @generated
*/
public boolean performFinish() {
IRunnableWithProgress op = new WorkspaceModifyOperation(null) {
protected void execute(IProgressMonitor monitor)
throws CoreException, InterruptedException {
diagram = it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.AnomalyGraphDiagramEditorUtil
.createDiagram(diagramModelFilePage.getURI(), monitor);
if (isOpenNewlyCreatedDiagramEditor() && diagram != null) {
try {
it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.AnomalyGraphDiagramEditorUtil
.openDiagram(diagram);
} catch (PartInitException e) {
ErrorDialog
.openError(
getContainer().getShell(),
it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.Messages.AnomalyGraphCreationWizardOpenEditorError,
null, e.getStatus());
}
}
}
};
try {
getContainer().run(false, true, op);
} catch (InterruptedException e) {
return false;
} catch (InvocationTargetException e) {
if (e.getTargetException() instanceof CoreException) {
ErrorDialog
.openError(
getContainer().getShell(),
it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.Messages.AnomalyGraphCreationWizardCreationError,
null, ((CoreException) e.getTargetException())
.getStatus());
} else {
it.unimib.disco.lta.eclipse.anomalyGraph.diagram.part.AnomalyGraphDiagramEditorPlugin
.getInstance()
.logError(
"Error creating diagram", e.getTargetException()); //$NON-NLS-1$
}
return false;
}
return diagram != null;
}
}
|
[
"you@example.com"
] |
you@example.com
|
a176d8ccdec638f4ccf66faddc9d7c3b1e57d715
|
97734b7675c7bb24468c9fe4b7917540ce9a65db
|
/app/src/main/java/com/zhejiang/haoxiadan/ui/adapter/cart/CartListAdapter.java
|
e0cd3195384956a4b66ed2946e6c6ddd0961843f
|
[] |
no_license
|
yangyuqi/android_hxd
|
303db8bba4f4419c0792dbcfdd973e1a5165e09a
|
f02cb1c7c625c5f6eaa656d03a82c7459ff4a9a1
|
refs/heads/master
| 2020-04-13T03:47:59.651505
| 2018-12-24T03:06:34
| 2018-12-24T03:06:34
| 162,942,703
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,119
|
java
|
package com.zhejiang.haoxiadan.ui.adapter.cart;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.TextView;
import com.zhejiang.haoxiadan.R;
import com.zhejiang.haoxiadan.model.common.Cart;
import com.zhejiang.haoxiadan.model.common.CartGoods;
import com.zhejiang.haoxiadan.model.common.CartGoodsStyle;
import com.zhejiang.haoxiadan.third.imageload.ImageLoaderUtil;
import com.zhejiang.haoxiadan.ui.adapter.AbsBaseAdapter;
import com.zhejiang.haoxiadan.ui.view.NoScrollListView;
import com.zhejiang.haoxiadan.util.TimeUtils;
import java.util.List;
/**
* 购物车
* Created by KK on 2017/6/7.
*/
public class CartListAdapter extends AbsBaseAdapter<Cart> {
private CartListCallBack callBack;
private boolean isEdit = false;
public interface CartListCallBack {
void onChooseChange();
void onNumChange(String cartId);
}
public CartListAdapter(Context context, List<Cart> datas) {
super(context, datas);
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
final ViewHolder holder;
if (convertView == null) {
holder = new ViewHolder();
convertView = LayoutInflater.from(mContext).inflate(R.layout.listview_cart_list, null);
holder.chooseHeadCb = (CheckBox) convertView.findViewById(R.id.iv_choose_head);
holder.supplierNameTv = (TextView) convertView.findViewById(R.id.tv_supplier);
holder.goodsLV = (NoScrollListView) convertView.findViewById(R.id.lv_goods);
convertView.setTag(holder);
}else{
holder = (ViewHolder)convertView.getTag();
}
final CartGoodsListAdapter adapter = new CartGoodsListAdapter(mContext,mDatas.get(position).getCartGoodses());
holder.goodsLV.setAdapter(adapter);
holder.supplierNameTv.setText(mDatas.get(position).getSupplierName());
holder.chooseHeadCb.setChecked(mDatas.get(position).isChoose());
adapter.setEdit(isEdit);
adapter.setCallBack(new CartGoodsListAdapter.CartGoodsListCallBack() {
@Override
public void onChooseChange() {
boolean isChecked = true;
for(CartGoods cartGoods : mDatas.get(position).getCartGoodses()){
isChecked = isChecked & cartGoods.isChoose();
}
mDatas.get(position).setChoose(isChecked);
holder.chooseHeadCb.setChecked(isChecked);
if(callBack != null){
callBack.onChooseChange();
}
}
@Override
public void onNumChange(String cartId) {
if(callBack != null){
callBack.onNumChange(cartId);
}
}
});
holder.chooseHeadCb.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
boolean isChecked = holder.chooseHeadCb.isChecked();
mDatas.get(position).setChoose(isChecked);
for(CartGoods cartGoods : mDatas.get(position).getCartGoodses()){
cartGoods.setChoose(isChecked);
for(CartGoodsStyle cartGoodsStyle : cartGoods.getGoodsStyles()){
cartGoodsStyle.setChoose(isChecked);
}
}
adapter.notifyDataSetChanged();
if(callBack != null){
callBack.onChooseChange();
}
}
});
return convertView;
}
public void setEdit(boolean isEdit){
this.isEdit = isEdit;
}
public void setCallBack(CartListCallBack callBack) {
this.callBack = callBack;
}
private class ViewHolder{
CheckBox chooseHeadCb;
TextView supplierNameTv;
NoScrollListView goodsLV;
}
}
|
[
"yuqi.yang@ughen.com"
] |
yuqi.yang@ughen.com
|
9a8f435d16996d93db8abc82f98a3236073e52dc
|
952789d549bf98b84ffc02cb895f38c95b85e12c
|
/V_1.x/tag/SpagoBI-1.7(20060201)/SpagoBIProject/src/it/eng/spagobi/bo/dao/IEngineDAO.java
|
6b25be42003dc8bfab9b854008f36b42b5cc5459
|
[] |
no_license
|
emtee40/testingazuan
|
de6342378258fcd4e7cbb3133bb7eed0ebfebeee
|
f3bd91014e1b43f2538194a5eb4e92081d2ac3ae
|
refs/heads/master
| 2020-03-26T08:42:50.873491
| 2015-01-09T16:17:08
| 2015-01-09T16:17:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,632
|
java
|
/**
SpagoBI - The Business Intelligence Free Platform
Copyright (C) 2005 Engineering Ingegneria Informatica S.p.A.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
**/
/*
* Created on 13-mag-2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package it.eng.spagobi.bo.dao;
import it.eng.spago.error.EMFUserError;
import it.eng.spagobi.bo.Engine;
import java.util.List;
/**
* Defines the interfaces for all methods needed to insert, modify and deleting an engine.
*
* @author Zoppello
*/
public interface IEngineDAO {
/**
* Loads all detail information for an engine identified by its <code>engineID</code>. All these information,
* achived by a query to the DB, are stored into an <code>engine</code> object, which is
* returned.
*
* @param engineID The id for the engine to load
* @return An <code>engine</code> object containing all loaded information
* @throws EMFUserError If an Exception occurred
*/
public Engine loadEngineByID(Integer engineID) throws EMFUserError;
/**
* Loads all detail information for all engines. For each of them, detail
* information is stored into an <code>engine</code> object. After that, all engines
* are stored into a <code>List</code>, which is returned.
*
* @return A list containing all engine objects
* @throws EMFUserError If an Exception occurred
*/
public List loadAllEngines() throws EMFUserError;
/**
* Implements the query to modify an engine. All information needed is stored
* into the input <code>engine</code> object.
*
* @param aEngine The object containing all modify information
* @throws EMFUserError If an Exception occurred
*/
public void modifyEngine(Engine aEngine) throws EMFUserError;
/**
* Implements the query to insert an engine. All information needed is stored
* into the input <code>engine</code> object.
*
* @param aEngine The object containing all insert information
* @throws EMFUserError If an Exception occurred
*/
public void insertEngine(Engine aEngine) throws EMFUserError;
/**
* Implements the query to erase an engine. All information needed is stored
* into the input <code>engine</code> object.
*
* @param aEngine The object containing all delete information
* @throws EMFUserError If an Exception occurred
*/
public void eraseEngine(Engine aEngine) throws EMFUserError;
/**
* Tells if an engine is associated to any
* BI Object. It is useful because an engine cannot be deleted
* if it is used by one or more BI Objects.
*
* @param engineId The engine identifier
* @return True if the engine is used by one or more
* objects, else false
* @throws EMFUserError If any exception occurred
*/
public boolean hasBIObjAssociated (String engineId) throws EMFUserError;
}
|
[
"fiscato@99afaf0d-6903-0410-885a-c66a8bbb5f81"
] |
fiscato@99afaf0d-6903-0410-885a-c66a8bbb5f81
|
aafb8897daa84c7f74f25aed5e33e3eb8765a8ee
|
eca3302f30ca2ab99c7077619a3264a6b5ff6c3b
|
/Redis常用技术/src/transaction/TransactionTest.java
|
28f1654c03adf5871506e2f870db46216a120e61
|
[] |
no_license
|
KronosOceanus/Spring
|
bac87731224e0a8fe9cd7b224e88a3e36a2e019e
|
5d292aca5d4bec8ced4bd6b4af101bf1687c2336
|
refs/heads/master
| 2020-06-19T11:20:27.132175
| 2019-10-27T06:36:17
| 2019-10-27T06:36:17
| 196,690,173
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,079
|
java
|
package transaction;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.SessionCallback;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.Pipeline;
import java.util.List;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class TransactionTest {
@Autowired
private RedisTemplate redisTemplate;
@Autowired
private JedisPoolConfig poolConfig;
//事务
@Test
public void demo01(){
//不用理会泛型警告
SessionCallback callback = (SessionCallback) (RedisOperations ops) -> {
// multi,开启事务
ops.multi();
ops.boundValueOps("key1").set("value1");
//事务过程中,命令进入队列,但没有被执行,所以 value1 为空
String value1 = (String)ops.boundValueOps("key1").get();
System.out.println(value1);
// exec,执行事务,之前的结果会以 List 形式返回,也可以直接将 List 返回到 SessionCallback
List list = ops.exec();
//事务结束后获取 value1
value1 = (String)redisTemplate.opsForValue().get("key1");
return value1;
};
String value = (String)redisTemplate.execute(callback);
System.out.println(value);
}
//流水线
@Test
public void demo02(){
//连接池获取连接
Jedis jedis = new JedisPool(poolConfig, "localhost").getResource();
long start = System.currentTimeMillis();
//开启流水线
Pipeline pipeline = jedis.pipelined();
for (int i=0;i<100000;i++){
pipeline.set("pipeline_key" + i, "pipeline_value" + i);
pipeline.get("pipeline_key" + i);
}
// pipeline.sync(),同步,但不返回结果
//同步并返回所有的结果到 List
List result = pipeline.syncAndReturnAll();
long end = System.currentTimeMillis();
System.out.println(end - start);
}
//流水线 + 事务
@Test
public void demo03(){
SessionCallback callback = (SessionCallback)(RedisOperations ops)->{
for (int i=0;i<100000;i++){
int j = i + 1;
ops.boundValueOps("pipeline_key" + j).set("pipeline_value" + j);
ops.boundValueOps("pipeline_key" + j).get();
}
return null;
};
long start = System.currentTimeMillis();
List result = redisTemplate.executePipelined(callback);
long end = System.currentTimeMillis();
System.out.println(end - start);
}
}
|
[
"704690152@qq.com"
] |
704690152@qq.com
|
0abd7b1bc0784f5be16793839bfb7a933e802a8e
|
99a17f6eb28b677e4e2088a2d9ab50afb8a64155
|
/app/src/main/java/com/nuowei/smarthome/appkit/sharingdevice/MsgNoticeActivity.java
|
a9989c79ac58b99ac0a62eb67751f412be57e630
|
[] |
no_license
|
xiaoli1993/KKSmartHome
|
4ba80ff1208bcbc5d1817087c2ad6f5bc5aff049
|
6c480619df17c5a4937928c286aceec503c4d229
|
refs/heads/master
| 2021-01-01T17:51:49.903587
| 2017-07-24T11:04:33
| 2017-07-24T11:04:33
| 98,181,688
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,724
|
java
|
package com.nuowei.smarthome.appkit.sharingdevice;
import com.nuowei.smarthome.R;
import com.nuowei.smarthome.appkit.CommonModule.GosBaseActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.ListView;
import android.widget.TextView;
/**
* Created by Sunny on 2015年6月25日
*
* @author Sunny
*/
public class MsgNoticeActivity extends GosBaseActivity{
private ListView lvNotice;
private TextView tvNoNotice;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_notice);
// setActionBar(true, true, R.string.msg_notice);
initView();
// initData();
}
private void initView(){
lvNotice=(ListView) findViewById(R.id.lvNotice);
tvNoNotice=(TextView) findViewById(R.id.tvNoNotice);
}
// private void initData(){
// NoticeDBService dbService= new NoticeDBService(this);
// ArrayList<NoticeBean> lsNotice=dbService.getNoticeList();
//
// if(lsNotice!=null&&lsNotice.size()>0){
// lvNotice.setVisibility(View.VISIBLE);
// tvNoNotice.setVisibility(View.GONE);
//
// NoticeAdapter na=new NoticeAdapter(this, lsNotice);
// lvNotice.setAdapter(na);
// }else{
// lvNotice.setVisibility(View.GONE);
// tvNoNotice.setVisibility(View.VISIBLE);
// }
// }
@Override
public void onResume() {
super.onResume();
// initData();
}
@Override
public void onPause() {
super.onPause();
}
public boolean onOptionsItemSelected(MenuItem menu) {
super.onOptionsItemSelected(menu);
switch (menu.getItemId()) {
case android.R.id.home:
finish();
break;
default:
break;
}
return true;
}
@Override
public void onBackPressed() {
finish();
}
}
|
[
"554674787@qq.com"
] |
554674787@qq.com
|
7c3f3cbdc938bef38d686ac8170427a6fd84b0a4
|
df9bd289d1b4217d72ab00b26466167e9c2cb66e
|
/Spring-core/src/spring_ex4/Car.java
|
bd8752dad8fe30693667b6f9344f5b37f4eb1df1
|
[] |
no_license
|
wkdalswn11/spring-ex02-20210112
|
47b89b299834fa82cd79b1948023792edba5e0d9
|
022ff8c48d43246958956591dc1841aa15387db6
|
refs/heads/master
| 2023-02-26T08:59:43.516780
| 2021-02-03T02:53:28
| 2021-02-03T02:53:28
| 328,834,277
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 460
|
java
|
package spring_ex4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class Car {
private Tire tire;
@Autowired // 버전에따라 생성자가 하나일때는 tire가 이미 bean이므로 autowired를 생략해도 된다
// 현재 우리버전은 생략가능하다
public Car(Tire tire) {
this.tire = tire;
}
public Tire getTire() {
return tire;
}
}
|
[
"wkdalswn133@naver.com"
] |
wkdalswn133@naver.com
|
67801e6a2ec2d5eb0fa26ad7a0d5b387f5c7191e
|
04bfaf142c9c2aaa52dceeba7b37452a4b7fd03b
|
/plms/V1.0.2/src/main/java/com/vilio/plms/dynamicdatasource/CustomerContextHolder.java
|
48188ba150d71963dc4a19a1d7ae9101ba226909
|
[] |
no_license
|
yanzj/hhsite
|
a1dd19a11a5623bcc04651dd364640767df9b335
|
603ef16f7d4d53494e4ab99cae631cfafeee3159
|
refs/heads/master
| 2020-04-14T04:18:35.363346
| 2018-12-31T02:18:04
| 2018-12-31T02:18:04
| 163,632,151
| 0
| 1
| null | 2018-12-31T02:16:10
| 2018-12-31T02:16:10
| null |
UTF-8
|
Java
| false
| false
| 967
|
java
|
package com.vilio.plms.dynamicdatasource;
import org.apache.commons.lang.StringUtils;
/**
* Created by dell on 2017/5/22/0022.
*/
public class CustomerContextHolder {
public static final String DATA_SOURCE_PCFS = "plmsDataSource";
public static final String DATA_SOURCE_PLMS = "plmsDataSource";
public static final String DATA_SOURCE_BMS = "bmsDataSource";
//用ThreadLocal来设置当前线程使用哪个dataSource
private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
public static void setCustomerType(String customerType) {
contextHolder.set(customerType);
}
public static String getCustomerType() {
String dataSource = contextHolder.get();
if (StringUtils.isEmpty(dataSource)) {
return DATA_SOURCE_PCFS;
}else {
return dataSource;
}
}
public static void clearCustomerType() {
contextHolder.remove();
}
}
|
[
"panda7168@163.com"
] |
panda7168@163.com
|
118e775ebe72b4985e27b807dec9cf46bcd4f75d
|
c3631a36e27fd96f50cb53ad3cf2b435d02c2e96
|
/app/src/main/java/com/fzu/chatrobot/custom/ProgressWebView.java
|
e1615a518380197679b30bf36636d8985c6e7e73
|
[] |
no_license
|
yuruiyin/chatrobot
|
b4f514204bb7533dec030c5e12eeaf7edaca8443
|
a934150076e93ee01da7e50a40d3222a00abefd1
|
refs/heads/master
| 2021-09-13T18:30:44.575432
| 2018-05-03T03:04:46
| 2018-05-03T03:04:46
| 110,125,174
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,509
|
java
|
package com.fzu.chatrobot.custom;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;
import com.fzu.chatrobot.R;
/**
* 自定义包含进度条的WebView
* Created by yury on 2016/9/7.
*/
public class ProgressWebView extends WebView {
private ProgressBar mProgressBar;
public ProgressWebView(Context context, AttributeSet attrs) {
super(context, attrs);
// 新建一个水平进度条
mProgressBar = new ProgressBar(context, null, android.R.attr.progressBarStyleHorizontal);
// 指定进度条的布局,比如宽高和位置
mProgressBar.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 8, 0, 0));
// 定义进度条的样式
Drawable drawable = context.getResources().getDrawable(R.drawable.progress_bar_states);
mProgressBar.setProgressDrawable(drawable);
// 将进度条添加进webView中
addView(mProgressBar);
setWebChromeClient(new MyWebChromeClient());
setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
return false; //点击其他链接依然在webView内部执行
}
});
WebSettings webSettings = getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setBlockNetworkImage(false);
webSettings.setDomStorageEnabled(true);
webSettings.setLoadsImagesAutomatically(true); //支持自动加载图片
//是否支持缩放
webSettings.setSupportZoom(true);
webSettings.setBuiltInZoomControls(true);
}
public class MyWebChromeClient extends android.webkit.WebChromeClient {
@Override
public void onProgressChanged(WebView view, int newProgress) {
super.onProgressChanged(view, newProgress);
if (newProgress >= 100) {
// mProgressBar.setProgress(newProgress);
mProgressBar.setVisibility(GONE);
} else {
if (mProgressBar.getVisibility() == GONE) {
mProgressBar.setVisibility(VISIBLE);
}
mProgressBar.setProgress(newProgress);
}
}
}
@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
LayoutParams lp = (LayoutParams) mProgressBar.getLayoutParams();
lp.x = l;
lp.y = t;
mProgressBar.setLayoutParams(lp);
super.onScrollChanged(l, t, oldl, oldt);
}
}
|
[
"yuruiyin@cyou-inc.com"
] |
yuruiyin@cyou-inc.com
|
a27b984f88c02e7dcacf4d8a0b976660cd9ccea5
|
6839e7abfa2e354becd034ea46f14db3cbcc7488
|
/src/com/sinosoft/schema/OtProductInfoSet.java
|
8cebe4c01a0cee861fe13d6468a1ae34332f1a6c
|
[] |
no_license
|
trigrass2/wj
|
aa2d310baa876f9e32a65238bcd36e7a2440b8c6
|
0d4da9d033c6fa2edb014e3a80715c9751a93cd5
|
refs/heads/master
| 2021-04-19T11:03:25.609807
| 2018-01-12T09:26:11
| 2018-01-12T09:26:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,397
|
java
|
package com.sinosoft.schema;
import com.sinosoft.schema.OtProductInfoSchema;
import com.sinosoft.framework.orm.SchemaSet;
public class OtProductInfoSet extends SchemaSet {
public OtProductInfoSet() {
this(10,0);
}
public OtProductInfoSet(int initialCapacity) {
this(initialCapacity,0);
}
public OtProductInfoSet(int initialCapacity,int capacityIncrement) {
super(initialCapacity,capacityIncrement);
TableCode = OtProductInfoSchema._TableCode;
Columns = OtProductInfoSchema._Columns;
NameSpace = OtProductInfoSchema._NameSpace;
InsertAllSQL = OtProductInfoSchema._InsertAllSQL;
UpdateAllSQL = OtProductInfoSchema._UpdateAllSQL;
FillAllSQL = OtProductInfoSchema._FillAllSQL;
DeleteSQL = OtProductInfoSchema._DeleteSQL;
}
protected SchemaSet newInstance(){
return new OtProductInfoSet();
}
public boolean add(OtProductInfoSchema aSchema) {
return super.add(aSchema);
}
public boolean add(OtProductInfoSet aSet) {
return super.add(aSet);
}
public boolean remove(OtProductInfoSchema aSchema) {
return super.remove(aSchema);
}
public OtProductInfoSchema get(int index) {
OtProductInfoSchema tSchema = (OtProductInfoSchema) super.getObject(index);
return tSchema;
}
public boolean set(int index, OtProductInfoSchema aSchema) {
return super.set(index, aSchema);
}
public boolean set(OtProductInfoSet aSet) {
return super.set(aSet);
}
}
|
[
"liyinfeng0520@163.com"
] |
liyinfeng0520@163.com
|
2f4cbe090593f91dcc17fd7ada110f913a5e9df5
|
c4352bde96e74d997be29e31517aa5f1f54e9795
|
/JavaOOP_2019/OOP_Exams/Hell_Exam_Tests/src/main/java/hell/interfaces/Inventory.java
|
45f5f977dc0d791642a177c684ef3a0182bf3f2e
|
[] |
no_license
|
chmitkov/SoftUni
|
b0f4ec10bb89a7dc350c063a02a3535ef9e901b4
|
52fd6f85718e07ff492c67d8166ed5cfaf5a58ff
|
refs/heads/master
| 2022-11-29T01:06:51.947775
| 2019-10-12T12:29:03
| 2019-10-12T12:29:03
| 138,323,012
| 1
| 0
| null | 2022-11-24T09:42:25
| 2018-06-22T16:09:50
|
Java
|
UTF-8
|
Java
| false
| false
| 309
|
java
|
package hell.interfaces;
public interface Inventory {
long getTotalStrengthBonus();
long getTotalAgilityBonus();
long getTotalIntelligenceBonus();
long getTotalHitPointsBonus();
long getTotalDamageBonus();
void addCommonItem(Item item);
void addRecipeItem(Recipe recipe);
}
|
[
"ch.mitkov@gmail.com"
] |
ch.mitkov@gmail.com
|
aebf1220b1cf1fc85dcb32737c669914532216fc
|
13271d246c158f642681a1a5195235b27756687a
|
/business/src/main/java/com/kevinguanchedarias/owgejava/configurations/DbSchedulerConfiguration.java
|
8df753420fa7029833bfee8f75c76eabee1c27a9
|
[] |
no_license
|
KevinGuancheDarias/owge
|
7024249c48e39f2b332ea3fa78cf273252f2ba96
|
d2e65dd75b642945d43e1538373462589a29b759
|
refs/heads/master
| 2023-09-01T22:41:17.327197
| 2023-08-22T22:41:08
| 2023-08-23T11:04:00
| 178,665,214
| 4
| 3
| null | 2023-06-20T23:16:29
| 2019-03-31T09:04:57
|
Java
|
UTF-8
|
Java
| false
| false
| 706
|
java
|
package com.kevinguanchedarias.owgejava.configurations;
import com.github.kagkarlsson.scheduler.task.Task;
import com.github.kagkarlsson.scheduler.task.helper.Tasks;
import com.kevinguanchedarias.owgejava.job.DbSchedulerRealizationJob;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class DbSchedulerConfiguration {
@Bean
Task<Void> missionProcessingTask(DbSchedulerRealizationJob dbSchedulerRealizationJob) {
return Tasks.oneTime(DbSchedulerRealizationJob.BASIC_ONE_TIME_TASK)
.execute((instance, ctx) -> dbSchedulerRealizationJob.execute(Long.parseLong(instance.getId())));
}
}
|
[
"kevin@kevinguanchedarias.com"
] |
kevin@kevinguanchedarias.com
|
14e89f4f0dc864ee5fb11cfbb059a2a8072808f5
|
bc987d8706ad555c735a3cc0865d82167932bfb3
|
/src/main/java/ezbake/services/provenance/idgenerator/ZookeeperIdProvider.java
|
073e57ed4f7bb3230f89efcdbad3055c2c843ff8
|
[
"Apache-2.0"
] |
permissive
|
ezbake/ezbake-provenance
|
7ad5bd40731531d95f3eef3a87b1f354ff8b3377
|
824497bfbc43311d8d889a63f143bdb58d03a979
|
refs/heads/master
| 2021-01-10T20:10:30.911322
| 2014-11-24T20:37:24
| 2014-11-24T20:37:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,598
|
java
|
/* Copyright (C) 2013-2014 Computer Sciences Corporation
*
* 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 ezbake.services.provenance.idgenerator;
import ezbake.services.provenance.graph.GraphDb;
import ezbakehelpers.ezconfigurationhelpers.zookeeper.ZookeeperConfigurationHelper;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.imps.CuratorFrameworkState;
import org.apache.curator.framework.recipes.atomic.AtomicValue;
import org.apache.curator.framework.recipes.atomic.DistributedAtomicLong;
import org.apache.curator.framework.recipes.atomic.PromotedToLock;
import org.apache.curator.retry.RetryNTimes;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
/**
* Created with IntelliJ IDEA.
* User: dev
* Date: 9/18/14
* Time: 1:53 PM
* To change this template use File | Settings | File Templates.
*/
public class ZookeeperIdProvider implements IdProvider {
private final CuratorFramework curator;
private DistributedAtomicLong document;
private DistributedAtomicLong rule;
private DistributedAtomicLong purge;
public final String documentZkPath;
public final String documentLockZkPath;
public final String ruleZkPath;
public final String ruleLockZkPath;
public final String purgeZkPath;
public final String purgeLockZkPath;
public ZookeeperIdProvider(final Properties properties) {
String indexName = GraphDb.getElasticIndexName(properties);
documentZkPath = String.format("/ezbake/%s/document/counter", indexName);
documentLockZkPath = String.format("/ezbake/%s/document/lock", indexName);
ruleZkPath = String.format("/ezbake/%s/rule/counter", indexName);
ruleLockZkPath = String.format("/ezbake/%s/rule/lock", indexName);
purgeZkPath = String.format("/ezbake/%s/purge/counter", indexName);
purgeLockZkPath = String.format("/ezbake/%s/purge/lock", indexName);
ZookeeperConfigurationHelper zc = new ZookeeperConfigurationHelper(properties);
curator = CuratorFrameworkFactory.builder()
.connectString(zc.getZookeeperConnectionString())
.retryPolicy(new RetryNTimes(5, 1000))
.build();
if (curator.getState() == CuratorFrameworkState.LATENT) {
curator.start();
}
document = new DistributedAtomicLong(curator, documentZkPath, curator.getZookeeperClient().getRetryPolicy(),
PromotedToLock.builder()
.lockPath(documentLockZkPath)
.timeout(250, TimeUnit.MILLISECONDS)
.build());
rule = new DistributedAtomicLong(curator, ruleZkPath, curator.getZookeeperClient().getRetryPolicy(),
PromotedToLock.builder()
.lockPath(ruleLockZkPath)
.timeout(250, TimeUnit.MILLISECONDS)
.build());
purge = new DistributedAtomicLong(curator, purgeZkPath, curator.getZookeeperClient().getRetryPolicy(),
PromotedToLock.builder()
.lockPath(purgeLockZkPath)
.timeout(250, TimeUnit.MILLISECONDS)
.build());
}
@Override
public void shutdown() {
if (curator != null) {
curator.close();
}
}
@Override
public long getNextId(ID_GENERATOR_TYPE type) throws IdGeneratorException {
DistributedAtomicLong atomic = null;
switch (type) {
case DocumentType:
atomic = document;
break;
case AgeOffRule:
atomic = rule;
break;
case PurgeEvent:
atomic = purge;
break;
default:
throw new IdGeneratorException("Not supported ID Generator Type: " + type);
}
try {
AtomicValue<Long> current = atomic.increment();
if (!current.succeeded()) {
throw new IdGeneratorException("Failed to increment id in zookeeper for type " + type);
}
return current.postValue();
}catch (Exception ex) {
throw new IdGeneratorException(ex);
}
}
@Override
public long getNextNId(ID_GENERATOR_TYPE type, long delta) throws IdGeneratorException {
DistributedAtomicLong atomic = null;
switch (type) {
case DocumentType:
atomic = document;
break;
case AgeOffRule:
atomic = rule;
break;
case PurgeEvent:
atomic = purge;
break;
default:
throw new IdGeneratorException("Not supported ID Generator Type: " + type);
}
try {
AtomicValue<Long> current = atomic.add(delta);
if (!current.succeeded()) {
throw new IdGeneratorException(String.format("Failed to increment id in zookeeper for type %s by %d", type, delta));
}
return current.postValue();
}catch (Exception ex) {
throw new IdGeneratorException(ex);
}
}
@Override
public long getCurrentValue(ID_GENERATOR_TYPE type) throws IdGeneratorException {
DistributedAtomicLong atomic = null;
switch (type) {
case DocumentType:
atomic = document;
break;
case AgeOffRule:
atomic = rule;
break;
case PurgeEvent:
atomic = purge;
break;
default:
throw new IdGeneratorException("Not supported ID Generator Type: " + type);
}
try {
AtomicValue<Long> current = atomic.get();
if (!current.succeeded()) {
throw new IdGeneratorException("Failed to get id in zookeeper for type " + type);
}
return current.postValue();
}catch (Exception ex) {
throw new IdGeneratorException(ex);
}
}
@Override
public void setCurrentValue(ID_GENERATOR_TYPE type, long value) throws IdGeneratorException {
DistributedAtomicLong atomic = null;
switch (type) {
case DocumentType:
atomic = document;
break;
case AgeOffRule:
atomic = rule;
break;
case PurgeEvent:
atomic = purge;
break;
default:
throw new IdGeneratorException("Not supported ID Generator Type: " + type);
}
try {
AtomicValue<Long> current = atomic.trySet(value);
if (!current.succeeded()) {
throw new IdGeneratorException("Failed to set current id for type " + type);
}
}catch (Exception ex) {
throw new IdGeneratorException(ex);
}
}
}
|
[
"jhastings@42six.com"
] |
jhastings@42six.com
|
951d4a886bcf1691299185917ba216a18c6aaf09
|
8e03a2d3a5554a7193a5fdb22afdcefe634878cb
|
/Spring-boot/util/ContentCachingRequestWrapper.java
|
801a089ef51a00cac9902416162c8e66afe55478
|
[] |
no_license
|
iathanasy/notes
|
586ae05f0f270307e87e1be8ed009bfa30bb67a7
|
e6eced651f86759ed881a4145b71f340a0493688
|
refs/heads/master
| 2023-08-03T00:58:16.035557
| 2021-09-29T02:01:11
| 2021-09-29T02:01:11
| 414,809,012
| 1
| 0
| null | 2021-10-08T01:33:56
| 2021-10-08T01:33:56
| null |
GB18030
|
Java
| false
| false
| 248
|
java
|
# ContentCachingRequestWrapper
* 可以重用读取流的 HttpServletRequest 包装类
* 必须保证在包装之前, HttpServletRequest 没读取过流, 也就是没执行过 getInputStream() 方法
* 方法
byte[] getContentAsByteArray()
|
[
"747692844@qq.com"
] |
747692844@qq.com
|
b80b1de566df504557ec9c3edcf7570c5c001240
|
fff8d45864fdca7f43e6d65acbe4c1f469531877
|
/erp_ejb_resources/lib/persistence/jboss/respaldo/hibernate-validator-3.1.0.GA-sources/org/hibernate/validator/CreditCardNumber.java
|
ec68dd3cb61a801fb429c6081f0cf4bf34c0ea71
|
[
"Apache-2.0"
] |
permissive
|
jarocho105/pre2
|
26b04cc91ff1dd645a6ac83966a74768f040f418
|
f032fc63741b6deecdfee490e23dfa9ef1f42b4f
|
refs/heads/master
| 2020-09-27T16:16:52.921372
| 2016-09-01T04:34:56
| 2016-09-01T04:34:56
| 67,095,806
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 796
|
java
|
//$Id: CreditCardNumber.java 15133 2008-08-20 10:05:57Z hardy.ferentschik $
package org.hibernate.validator;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* The annotated element has to represent a valid
* credit card number. This is the Luhn algorithm implementation
* which aims to check for user mistake, not credit card validity!
*
* @author Emmanuel Bernard
*/
@Documented
@ValidatorClass( CreditCardNumberValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention( RetentionPolicy.RUNTIME )
public @interface CreditCardNumber {
String message() default "{validator.creditCard}";
}
|
[
"byrondanilo10@hotmail.com"
] |
byrondanilo10@hotmail.com
|
0e7e408c76d95b710d160934166781094afef878
|
3dcfd130abf93d4804db44a29c60d994c4bc8317
|
/src/main/java/com/github/t1/deployer/app/package-info.java
|
c19a74f2a60d29ca1b26e8b999cfe5f7d82b6522
|
[
"Apache-2.0"
] |
permissive
|
derzufall/deployer
|
3fc50b868aef253bfa30f53c5ab38b752016171b
|
bb8c723579d4efb41e569935ddc5e9a3046b7084
|
refs/heads/master
| 2021-06-29T04:47:37.132788
| 2017-09-23T13:10:49
| 2017-09-23T13:10:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 699
|
java
|
@DependsUpon(packagesOf = {
com.github.t1.deployer.container.Container.class,
com.github.t1.deployer.repository.Repository.class,
com.github.t1.deployer.model.Checksum.class,
com.github.t1.deployer.tools.FileWatcher.class,
com.github.t1.problem.ProblemDetail.class,
com.fasterxml.jackson.annotation.JacksonAnnotation.class,
com.fasterxml.jackson.core.JsonGenerator.class,
com.fasterxml.jackson.core.base.GeneratorBase.class,
com.fasterxml.jackson.databind.ObjectMapper.class,
com.fasterxml.jackson.dataformat.yaml.YAMLFactory.class,
})
package com.github.t1.deployer.app;
import com.github.t1.testtools.DependsUpon;
|
[
"snackbox@sinntr.eu"
] |
snackbox@sinntr.eu
|
49b92e04137dc7541ee8cb6bf09d1eae58d6eaa0
|
036b13f99c161e13ca9a3f3c5262db38544131f7
|
/1_java/Chapter12_pattern/src/strategy/step5/modularization/SuperRobot.java
|
7ae40de55b525253ed526e52275c304228c63767
|
[] |
no_license
|
highwindLeos/Webstudy-In-TheJoeun
|
4e442c1ad500232ad69ae11c2a9faa8634ca8ed3
|
06b779765551e617cf37499336d6741720f23fa8
|
refs/heads/master
| 2022-12-22T10:46:37.241449
| 2020-07-28T09:54:03
| 2020-07-28T09:54:03
| 132,757,543
| 0
| 0
| null | 2022-12-16T01:05:47
| 2018-05-09T13:00:52
|
HTML
|
UHC
|
Java
| false
| false
| 432
|
java
|
package strategy.step5.modularization;
import strategy.step5.inter.*;
public class SuperRobot extends Robot {
public SuperRobot() {
setFly(new FlyYes());
setMissile(new MissileYes());
setKnife(new KnifeLazer());
//fly = new FlyYes();
//missile = new MissileYes();
//knife = new KnifeLazer();
}
@Override
public void shape() {
System.out.println("SuperRobot입니다. 외형은 팔다리몸통머리.");
}
}
|
[
"highwind26@gmail.com"
] |
highwind26@gmail.com
|
21cb4a1e46eb6181aa6bea76f97dbc52b1cdf4eb
|
3699b45d47014fb71a9cd9d50159eb55bb637cb3
|
/src/main/java/com/sphenon/basics/many/ObjectExistenceCheck.java
|
a30d5d02965f76ca69ca25e4f440f3cbd3c2aa8b
|
[
"Apache-2.0"
] |
permissive
|
616c/java-com.sphenon.components.basics.many
|
0d78a010db033e54a46d966123ed2d15f72a5af4
|
918e6e1e1f2ef4bdae32a8318671500ed20910bb
|
refs/heads/master
| 2020-03-22T05:45:56.259576
| 2018-07-06T16:19:40
| 2018-07-06T16:19:40
| 139,588,622
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,736
|
java
|
package com.sphenon.basics.many;
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
*****************************************************************************/
import com.sphenon.basics.context.*;
import com.sphenon.basics.context.classes.*;
import com.sphenon.basics.configuration.*;
import com.sphenon.basics.message.*;
import com.sphenon.basics.exception.*;
import com.sphenon.basics.notification.*;
import com.sphenon.basics.customary.*;
import java.lang.Iterable;
import java.util.Iterator;
import java.util.Arrays;
import java.util.Collection;
public class ObjectExistenceCheck {
protected CallContext context;
protected Object object;
protected Object other_object;
public ObjectExistenceCheck (CallContext context, Object object) {
this.context = context;
this.object = object;
}
public ObjectExistenceCheck (CallContext context, Object object, Object other_object) {
this.context = context;
this.object = object;
this.other_object = other_object;
}
public boolean exists(CallContext context) {
return ( this.object != null
&& ( (this.object instanceof Voidable) == false
|| ((Voidable) this.object).isVoid(context) == false
)
);
}
public boolean notexists(CallContext context) {
return ! exists(context);
}
public boolean isvalid(CallContext context) {
if (this.exists(context) == false) { return false; }
if (this.object instanceof Boolean) {
return ((Boolean) this.object);
}
if (this.object instanceof Short) {
return ((Short) this.object) != 0;
}
if (this.object instanceof Integer) {
return ((Integer) this.object) != 0;
}
if (this.object instanceof Long) {
return ((Long) this.object) != 0;
}
return false;
}
public boolean isinvalid(CallContext context) {
return ! isvalid(context);
}
public boolean empty(CallContext context) {
if (this.exists(context) == false) { return true; }
if (this.object instanceof GenericIterable) {
Iterator iterator = ((GenericIterable) this.object).getIterator(context);
if (iterator == null) { return true; }
if ( ! iterator.hasNext()) { return true; }
return false;
}
if (this.object instanceof Iterable) {
Iterator iterator = ((Iterable) this.object).iterator();
if (iterator == null) { return true; }
if ( ! iterator.hasNext()) { return true; }
return false;
}
if (this.object instanceof String) {
String s = (String) object;
return (s == null || s.length() == 0 || s.matches("\\s*"));
}
if (this.object instanceof Short) {
Short s = (Short) object;
return (s == null || s == 0);
}
if (this.object instanceof Integer) {
Integer i = (Integer) object;
return (i == null || i == 0);
}
if (this.object instanceof Long) {
Long l = (Long) object;
return (l == null || l == 0);
}
if (this.object.getClass().isArray()) {
return (java.lang.reflect.Array.getLength(object) == 0 ? true : false);
}
return true;
}
public boolean notempty(CallContext context) {
return ! empty(context);
}
public boolean element(CallContext context) {
if (this.other_object == null) { return false; }
if (this.other_object.getClass().isArray()) {
return Arrays.asList((Object[]) this.other_object).contains(this.object);
}
if (this.other_object instanceof Collection) {
return ((Collection) this.other_object).contains(this.object);
}
return false;
}
public boolean notelement(CallContext context) {
return ! element(context);
}
public Object getValue(CallContext context) {
return this.object;
}
}
|
[
"adev@leue.net"
] |
adev@leue.net
|
62055e6aa9c841299b825d4e91c84d825680a176
|
e32b0fd6472ebbefe5b30786a9eb8242c413f7cc
|
/Lesson10Drink/src/com/company/Drink.java
|
d12621dc6f61dee87363da5a1409e86e8899908b
|
[] |
no_license
|
SZabirov/Java_ITIS_2018
|
d970a9226d8d74ad8da081b75e601affe897a80f
|
ba015c41b0953bb944cece409054a2a3314bfb4a
|
refs/heads/master
| 2021-04-28T21:02:11.060025
| 2018-05-05T15:35:44
| 2018-05-05T15:35:44
| 121,942,677
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 146
|
java
|
package com.company;
public class Drink {
String name;
void open() {
System.out.println("Напиток открыт");
}
}
|
[
"zab.sal42@gmail.com"
] |
zab.sal42@gmail.com
|
6822156976641ceacec8b26d511e29656d8a13e6
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/ant_cluster/24325/src_1607.java
|
4c4aee6957f118e877966310af80d31faaab2cc7
|
[
"Apache-2.0",
"BSD-2-Clause",
"Apache-1.1"
] |
permissive
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,944
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.tools.ant.util;
/**
* BASE 64 encoding of a String or an array of bytes.
*
* Based on RFC 1421.
*
**/
public class Base64Converter {
private static final int BYTE_MASK = 0xFF;
private static final char[] ALPHABET = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', // 0 to 7
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', // 8 to 15
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', // 16 to 23
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', // 24 to 31
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', // 32 to 39
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', // 40 to 47
'w', 'x', 'y', 'z', '0', '1', '2', '3', // 48 to 55
'4', '5', '6', '7', '8', '9', '+', '/'}; // 56 to 63
// CheckStyle:ConstantNameCheck OFF - bc
/** Provided for BC purposes */
public static final char[] alphabet = ALPHABET;
// CheckStyle:ConstantNameCheck ON
/**
* Encode a string into base64 encoding.
* @param s the string to encode.
* @return the encoded string.
*/
public String encode(String s) {
return encode(s.getBytes());
}
/**
* Encode a byte array into base64 encoding.
* @param octetString the byte array to encode.
* @return the encoded string.
*/
public String encode(byte[] octetString) {
int bits24;
int bits6;
char[] out = new char[((octetString.length - 1) / 3 + 1) * 4];
int outIndex = 0;
int i = 0;
while ((i + 3) <= octetString.length) {
// store the octets
bits24 = (octetString[i++] & BYTE_MASK) << 16;
bits24 |= (octetString[i++] & BYTE_MASK) << 8;
bits24 |= octetString[i++];
bits6 = (bits24 & 0x00FC0000) >> 18;
out[outIndex++] = ALPHABET[bits6];
bits6 = (bits24 & 0x0003F000) >> 12;
out[outIndex++] = ALPHABET[bits6];
bits6 = (bits24 & 0x00000FC0) >> 6;
out[outIndex++] = ALPHABET[bits6];
bits6 = (bits24 & 0x0000003F);
out[outIndex++] = ALPHABET[bits6];
}
if (octetString.length - i == 2) {
// store the octets
bits24 = (octetString[i] & BYTE_MASK) << 16;
bits24 |= (octetString[i + 1] & BYTE_MASK) << 8;
bits6 = (bits24 & 0x00FC0000) >> 18;
out[outIndex++] = ALPHABET[bits6];
bits6 = (bits24 & 0x0003F000) >> 12;
out[outIndex++] = ALPHABET[bits6];
bits6 = (bits24 & 0x00000FC0) >> 6;
out[outIndex++] = ALPHABET[bits6];
// padding
out[outIndex++] = '=';
} else if (octetString.length - i == 1) {
// store the octets
bits24 = (octetString[i] & BYTE_MASK) << 16;
bits6 = (bits24 & 0x00FC0000) >> 18;
out[outIndex++] = ALPHABET[bits6];
bits6 = (bits24 & 0x0003F000) >> 12;
out[outIndex++] = ALPHABET[bits6];
// padding
out[outIndex++] = '=';
out[outIndex++] = '=';
}
return new String(out);
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
115987e5fbbe157a2464bd74dee68e43e126907b
|
246bb115cbb4e6654243526c529eccba1aa806b7
|
/engine/src/test/java/org/apache/hop/pipeline/transforms/loadsave/setter/FieldSetter.java
|
a62be63d9f19d46227c4fbe14518b3e394877fd9
|
[
"Apache-2.0"
] |
permissive
|
davidjscience/hop
|
6f8f9391aa367a4fe9b446b1a7fc0f6c59e6a9ce
|
9de84b1957a0b97f17d183f018b0584ed68aae5a
|
refs/heads/master
| 2022-11-08T02:13:28.596902
| 2020-06-28T17:47:27
| 2020-06-28T17:47:27
| 275,682,334
| 0
| 0
|
Apache-2.0
| 2020-06-28T22:55:52
| 2020-06-28T22:55:51
| null |
UTF-8
|
Java
| false
| false
| 1,334
|
java
|
/*! ******************************************************************************
*
* Hop : The Hop Orchestration Platform
*
* http://www.project-hop.org
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
package org.apache.hop.pipeline.transforms.loadsave.setter;
import java.lang.reflect.Field;
public class FieldSetter<T> implements ISetter<T> {
private final Field field;
public FieldSetter( Field field ) {
this.field = field;
}
public void set( Object obj, T value ) {
try {
field.set( obj, value );
} catch ( Exception e ) {
throw new RuntimeException( "Error getting " + field + " on " + obj, e );
}
}
}
|
[
"mattcasters@gmail.com"
] |
mattcasters@gmail.com
|
56d13aae432b7086b750ef90787a8787417445fd
|
c5f1c8e3de2efb8d03758a0f5d3f2c373b42b3bd
|
/src/Login/DAO/LoginDAO.java
|
ac017ca7395d6764cd1ac46d19372d96e9bf09ab
|
[] |
no_license
|
anandpatel0099/E-Governance
|
9ded0f53da787b6bc33e23b724af9e9203b6b008
|
24765852ad5c66fe8a04e8eb0da39df9b14107fc
|
refs/heads/master
| 2020-04-16T05:39:23.055374
| 2019-01-11T21:51:00
| 2019-01-11T21:51:00
| 165,314,778
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,800
|
java
|
package Login.DAO;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import Login.VO.persondetailsVO;
public class LoginDAO
{
public List verify()
{
SessionFactory sf=new Configuration().configure().buildSessionFactory();
Session session=sf.openSession();
String q="select p from persondetailsVO p";
Query query=session.createQuery(q);
List qlist=query.list();
return qlist;
}
public void enter(persondetailsVO pd)
{
SessionFactory sf=new Configuration().configure().buildSessionFactory();
Session session = sf.openSession();
Transaction tx = session.beginTransaction();
session.save(pd);
tx.commit();
}
public List forgotpassword(String un)
{
SessionFactory sf=new Configuration().configure().buildSessionFactory();
Session session=sf.openSession();
String q="select p from persondetailsVO p where p.username=:unm";
Query query=session.createQuery(q);
query.setString("unm", un);
List qlist=query.list();
return qlist;
}
public void updatePassword(persondetailsVO pd)
{
SessionFactory sf=new Configuration().configure().buildSessionFactory();
Session session = sf.openSession();
Transaction tx = session.beginTransaction();
session.update(pd);
tx.commit();
}
public List verify1(String un,String pwd)
{
SessionFactory sf=new Configuration().configure().buildSessionFactory();
Session session=sf.openSession();
String q="select p from persondetailsVO p where p.username=:unm and p.password=:pd";
Query query=session.createQuery(q);
query.setString("unm", un);
query.setString("pd", pwd);
List qlist=query.list();
return qlist;
}
}
|
[
"you@example.com"
] |
you@example.com
|
5a530477e3096afb74755a33cf79e97b26d5ee7e
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_2463486_0/java/sas4eka/Test.java
|
be73702feec94d72c759573247d7353da279dbfe
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,675
|
java
|
import java.io.*;
import java.util.*;
public class Test {
static BufferedReader reader;
static StringTokenizer tokenizer;
static PrintWriter writer;
static int nextInt() throws IOException {
return Integer.parseInt(nextToken());
}
static long nextLong() throws IOException {
return Long.parseLong(nextToken());
}
static double nextDouble() throws IOException {
return Double.parseDouble(nextToken());
}
static String nextToken() throws IOException {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
tokenizer = new StringTokenizer(reader.readLine());
}
return tokenizer.nextToken();
}
static Set<Long> st;
public static void main(String[] args) throws IOException {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(
"C-small-attempt0.in")));
tokenizer = null;
writer = new PrintWriter("C-small-attempt0.out");
st = new TreeSet<Long>();
for (long i = 1; i < 10000000; i++) {
if (isPalindrom(i + "")) {
long sq = i * i;
if (isPalindrom(sq + "")) {
st.add(sq);
}
}
}
int t = nextInt();
for (int i = 1; i <= t; i++) {
writer.print("Case #" + i + ": ");
banana();
}
reader.close();
writer.close();
}
static boolean isPalindrom(String s) {
for (int i = 0; i < s.length() / 2 + 1; i++) {
if (s.charAt(i) != s.charAt(s.length() - i - 1))
return false;
}
return true;
}
private static void banana() throws IOException {
long a = nextInt();
long b = nextInt();
long res = 0;
for (Long l : st) {
if (l >= a && l <= b)
res++;
}
writer.println(res);
}
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
b4a5e76fe47a6213ecb3e82c71b42f87b996f5c8
|
6635387159b685ab34f9c927b878734bd6040e7e
|
/src/bhe.java
|
926703822482d3a40116330c0587be2b8a90ef15
|
[] |
no_license
|
RepoForks/com.snapchat.android
|
987dd3d4a72c2f43bc52f5dea9d55bfb190966e2
|
6e28a32ad495cf14f87e512dd0be700f5186b4c6
|
refs/heads/master
| 2021-05-05T10:36:16.396377
| 2015-07-16T16:46:26
| 2015-07-16T16:46:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,939
|
java
|
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public final class bhe
{
private static final double MAX_ASPECT_RATIO_ERROR = 0.1D;
private static final String TAG = "SaveStoryToGalleryResolutionProvider";
private final xv mDeviceVideoEncodingResolutionSet;
private final xx mTranscodingResolutionProviderFactory;
public bhe()
{
this(xx.a(), xv.a());
}
private bhe(@chc xx paramxx, @chc xv paramxv)
{
mTranscodingResolutionProviderFactory = paramxx;
mDeviceVideoEncodingResolutionSet = paramxv;
}
@chd
private avc a(@chc avc paramavc)
{
Object localObject = mDeviceVideoEncodingResolutionSet.a;
double d3 = paramavc.c();
paramavc = null;
double d1 = 0.0D;
int i = 0;
Iterator localIterator = ((Set)localObject).iterator();
while (localIterator.hasNext())
{
localObject = (avc)localIterator.next();
double d2 = Math.abs(((avc)localObject).c() - d3) / d3;
if (d2 <= 0.1D)
{
int j = ((avc)localObject).d();
if ((paramavc != null) && (d2 >= d1) && ((d2 != d1) || (j <= i))) {
break label125;
}
i = j;
paramavc = (avc)localObject;
d1 = d2;
}
}
label125:
for (;;)
{
break;
return paramavc;
}
}
@chd
private static avc a(@chc Map<avc, avc> paramMap)
{
avc localavc = null;
int i = 0;
double d1 = 0.0D;
Iterator localIterator = paramMap.entrySet().iterator();
paramMap = localavc;
while (localIterator.hasNext())
{
localavc = (avc)((Map.Entry)localIterator.next()).getValue();
if (localavc != null)
{
int j = localavc.d();
double d2 = localavc.c();
if (d1 != 0.0D) {
Math.abs(d2 - d1);
}
if (j <= i) {
break label106;
}
i = j;
paramMap = localavc;
d1 = d2;
}
}
label106:
for (;;)
{
break;
return paramMap;
}
}
@chd
public final avc a(@chc Collection<avc> paramCollection)
{
if (paramCollection.size() == 0) {
throw new IllegalArgumentException("No media source resolutions to compare");
}
HashMap localHashMap = new HashMap();
Iterator localIterator = paramCollection.iterator();
while (localIterator.hasNext())
{
avc localavc = (avc)localIterator.next();
if (!localHashMap.containsKey(localavc))
{
paramCollection = xx.a(localavc).a(4000000);
if (paramCollection != null) {}
for (;;)
{
localHashMap.put(localavc, paramCollection);
break;
paramCollection = a(localavc);
}
}
}
return a(localHashMap);
}
}
/* Location:
* Qualified Name: bhe
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
0eabf46ac8b525891ff8d043adf89ae5ae43ccd5
|
2e98a39e61db1e5da89a71607b13082af4ddca94
|
/flexwdreanew/src/com/flexwm/server/op/PmProductKit.java
|
3aa40fbd1d91b5c3f27d0c501f096f81cff01a65
|
[] |
no_license
|
ceherrera-sym/flexwm-dreanew
|
59b927a48a8246babe827f19a131b9129abe2a52
|
228ed7be7718d46a1f2592c253b096e1b942631e
|
refs/heads/master
| 2022-12-18T13:44:42.804524
| 2020-09-15T15:01:52
| 2020-09-15T15:01:52
| 285,393,781
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 963
|
java
|
/**
* SYMGF
* Derechos Reservados Mauricio Lopez Barba
* Este software es propiedad de Mauricio Lopez Barba, y no puede ser
* utilizado, distribuido, copiado sin autorizacion expresa por escrito.
*
* @author Mauricio Lopez Barba
* @version 2013-10
*/
package com.flexwm.server.op;
import com.symgae.server.PmObject;
import com.symgae.server.PmConn;
import com.symgae.shared.BmObject;
import com.symgae.shared.SFException;
import com.symgae.shared.SFParams;
import com.symgae.shared.SFPmException;
import com.flexwm.shared.op.BmoProductKit;
public class PmProductKit extends PmObject {
BmoProductKit bmoProductKit;
public PmProductKit(SFParams sfParams) throws SFPmException {
super(sfParams);
bmoProductKit = new BmoProductKit();
setBmObject(bmoProductKit);
}
@Override
public BmObject populate(PmConn pmConn) throws SFException {
bmoProductKit = (BmoProductKit)autoPopulate(pmConn, new BmoProductKit());
return bmoProductKit;
}
}
|
[
"ceherrera.symetria@gmail.com"
] |
ceherrera.symetria@gmail.com
|
04ae88fbc7bc1df870d8f509a951312ed3d63f07
|
eb7b450eef54c7c7c43001b03a1a0a6ac27fbbd6
|
/SM/MS/src/org/biz/invoicesystem/ui/list/master/CustomerLV.java
|
575c9ecbb10e658b7d24da4a31688727dc9d1c58
|
[] |
no_license
|
mjawath/jposible
|
e2feb7de7bfa80dc538639ae5ca13480f8dcc2db
|
b6fb1cde08dc531dd3aff1113520d106dd1a732c
|
refs/heads/master
| 2021-01-10T18:55:41.024529
| 2018-05-14T01:25:05
| 2018-05-14T01:25:05
| 32,131,366
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,027
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.biz.invoicesystem.ui.list.master;
import java.util.ArrayList;
import java.util.List;
import org.biz.invoicesystem.entity.master.Customer;
import org.components.parent.controls.PTableColumn;
import org.components.windows.ListViewUI;
/**
*
* @author Jawad
*/
public class CustomerLV extends ListViewUI {
/**
* Creates new form ItemLV
*/
public CustomerLV() {
super();
List<PTableColumn> tblCols = new ArrayList();
tblCols.add(new PTableColumn(String.class, "ID"));
PTableColumn colcode = new PTableColumn(String.class, "Code");
colcode.setMinWidth(80);
tblCols.add(colcode);
PTableColumn colname = new PTableColumn(String.class, "Name");
colname.setWidth(250);
tblCols.add(colname);
getTable().init(Customer.class, tblCols);
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 790, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 494, Short.MAX_VALUE)
);
}// </editor-fold>//GEN-END:initComponents
public Object[] getTableData(Object row) {
Customer item = (Customer) row;
return new Object[]{item, item.getId(), item.getCode()};
}
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
}
|
[
"mjawath@gmail.com"
] |
mjawath@gmail.com
|
0d62c38cae48532882cb3b1b88342b5a42312a7e
|
952789d549bf98b84ffc02cb895f38c95b85e12c
|
/V_2.x/Server/branches/SpagoBIJPaloEngineOld/src/com/tensegrity/palowebviewer/modules/engine/client/ObjectKey.java
|
f669a88f33c3dda42d54a9e794e2f379b48b11c6
|
[] |
no_license
|
emtee40/testingazuan
|
de6342378258fcd4e7cbb3133bb7eed0ebfebeee
|
f3bd91014e1b43f2538194a5eb4e92081d2ac3ae
|
refs/heads/master
| 2020-03-26T08:42:50.873491
| 2015-01-09T16:17:08
| 2015-01-09T16:17:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 562
|
java
|
package com.tensegrity.palowebviewer.modules.engine.client;
public class ObjectKey {
private final Object value;
public ObjectKey(Object value) {
this.value = value;
}
public Object getObject () {
return value;
}
public boolean equals(Object o) {
boolean result = o instanceof ObjectKey;
if(result) {
ObjectKey key = (ObjectKey)o;
result = key.value == value;
}
return result;
}
public int hashCode() {
int result = 0;
if(value != null)
result = value.hashCode();
return result;
}
}
|
[
"gioia@99afaf0d-6903-0410-885a-c66a8bbb5f81"
] |
gioia@99afaf0d-6903-0410-885a-c66a8bbb5f81
|
77863c7cd6c30f9f49d4b7d344fa158f5c6136c0
|
8870fa16fe6f0fe3e791c1463c5ee83c46f86839
|
/mmoarpg/platform-gm/src/main/java/cn/qeng/gm/module/backstage/domain/LoginPlatform.java
|
eb7e08fb6e3bcf33cc39cadac0d58bb36238ec40
|
[] |
no_license
|
daxingyou/yxj
|
94535532ea4722493ac0342c18d575e764da9fbb
|
91fb9a5f8da9e5e772e04b3102fe68fe0db5e280
|
refs/heads/master
| 2022-01-08T10:22:48.477835
| 2018-04-11T03:18:37
| 2018-04-11T03:18:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,493
|
java
|
/*
* Copyright © 2017 qeng.cn All Rights Reserved.
*
* 感谢您加入清源科技,不用多久,您就会升职加薪、当上总经理、出任CEO、迎娶白富美、从此走上人生巅峰
* 除非符合本公司的商业许可协议,否则不得使用或传播此源码,您可以下载许可协议文件:
*
* http://www.noark.xyz/qeng/LICENSE
*
* 1、未经许可,任何公司及个人不得以任何方式或理由来修改、使用或传播此源码;
* 2、禁止在本源码或其他相关源码的基础上发展任何派生版本、修改版本或第三方版本;
* 3、无论你对源代码做出任何修改和优化,版权都归清源科技所有,我们将保留所有权利;
* 4、凡侵犯清源科技相关版权或著作权等知识产权者,必依法追究其法律责任,特此郑重法律声明!
*/
package cn.qeng.gm.module.backstage.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 登录平台.
*
* @author 小流氓(mingkai.zhou@qeng.net)
*/
@Entity
@Table(name = "login_platform")
public class LoginPlatform {
@Id
@Column(name = "id", nullable = false, length = 128)
private String id;
// 平台名称
@Column(name = "name", nullable = false, length = 128)
private String name;
// 平台密钥
@Column(name = "secretkey", nullable = false, length = 128)
private String secretkey;
// 密码登录的标识(不能修改)
@Column(name = "password", nullable = false)
private boolean password;
@Column(name = "create_time", nullable = false)
private Date createTime;
@Column(name = "modify_time", nullable = false)
private Date modifyTime;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSecretkey() {
return secretkey;
}
public void setSecretkey(String secretkey) {
this.secretkey = secretkey;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getModifyTime() {
return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime;
}
public boolean isPassword() {
return password;
}
public void setPassword(boolean password) {
this.password = password;
}
}
|
[
"lkjx3031274@163.com"
] |
lkjx3031274@163.com
|
c4502b964da15ce9cb3f51550724eb86bee00873
|
3e618f316b0ac9a370c5a5daba8d2aaa7c4e68d1
|
/pro-security-core/src/main/java/cn/zyblogs/security/core/validate/code/image/ImageCode.java
|
cae46d3de254e8f91a6ac296d904627f5cd26ae6
|
[] |
no_license
|
zhangyibo1012/pro-security
|
fbb5b1c17b9f9a1e3de908217b9efd85c281b211
|
f8b67c10f2d4f527807fd0ae9378202aed7d3a01
|
refs/heads/master
| 2020-03-29T09:58:45.700943
| 2018-09-24T10:12:40
| 2018-09-24T10:12:45
| 149,783,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 760
|
java
|
package cn.zyblogs.security.core.validate.code.image;
import cn.zyblogs.security.core.validate.code.ValidateCode;
import lombok.Getter;
import lombok.Setter;
import java.awt.image.BufferedImage;
import java.time.LocalDateTime;
/**
* @Title: ImageCode.java
* @Package cn.zyblogs.security.core.validate.code
* @Description: TODO
* @Author ZhangYB
* @Version V1.0
*/
@Getter
@Setter
public class ImageCode extends ValidateCode {
private BufferedImage image;
public ImageCode(BufferedImage image, String code, int expireIn) {
super(code, expireIn);
this.image = image;
}
public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
super(code, expireTime);
this.image = image;
}
}
|
[
"35024391+zhangyibo1012@users.noreply.github.com"
] |
35024391+zhangyibo1012@users.noreply.github.com
|
a518f855be06b3b0caa4f127d0f48d1b66703c25
|
5d715e8e8ff3573bd60f30820c2cec50c4c4c076
|
/ch04/src/ch04/Ch04Ex02_01.java
|
34eab1b18f7f7de1a8d6481bbc212fa9ad96d088
|
[] |
no_license
|
scox1090/work_java
|
e75d203cb5702ac230a3435231fb266b13105fb6
|
89507165c9f5c4293ed5ccb7f1faf96e3fb78794
|
refs/heads/master
| 2020-03-21T02:36:42.885130
| 2018-07-25T12:29:34
| 2018-07-25T12:29:34
| 134,252,683
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 160
|
java
|
package ch04;
public class Ch04Ex02_01 {
public static void main(String[] args) {
int a = 1;
while( a <=15) {
System.out.print(a++ +" ");
}
}
}
|
[
"KOITT@KOITT-PC"
] |
KOITT@KOITT-PC
|
c78b4f3043485cd02b3c4f29bb03e18628faff0d
|
d70ef101b3e083786efc268320f903f4d24b5210
|
/src/main/java/classstructuremethods/NoteMain.java
|
91b28f4193d4b87b166b17778f1b42b7e7fc3c23
|
[] |
no_license
|
fido1969/training-solutions-1
|
b0eaccb9cb03957e9ba208b05883af3cb31a6583
|
714f8f323772e9d606c7e5f2f41427ed9a2e9186
|
refs/heads/master
| 2023-03-06T06:59:24.185623
| 2021-02-17T16:01:07
| 2021-02-17T16:01:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 293
|
java
|
package classstructuremethods;
public class NoteMain {
public static void main(String[] args) {
Note note = new Note ();
note.setName("name");
note.setText("text");
note.setTopic("topic");
System.out.println(note.getNoteText());
}
}
|
[
"gy.cseko@outlook.com"
] |
gy.cseko@outlook.com
|
e37c7163b942ad88063a5c23442a65665806a683
|
b111b77f2729c030ce78096ea2273691b9b63749
|
/db-example-large-multi-project/project86/src/main/java/org/gradle/test/performance/mediumjavamultiproject/project86/p432/Production8646.java
|
aa29cfd6970137f732f249a2a0457e57559a2e2a
|
[] |
no_license
|
WeilerWebServices/Gradle
|
a1a55bdb0dd39240787adf9241289e52f593ccc1
|
6ab6192439f891256a10d9b60f3073cab110b2be
|
refs/heads/master
| 2023-01-19T16:48:09.415529
| 2020-11-28T13:28:40
| 2020-11-28T13:28:40
| 256,249,773
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,896
|
java
|
package org.gradle.test.performance.mediumjavamultiproject.project86.p432;
public class Production8646 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
public String getProperty1() {
return property1;
}
public void setProperty1(String value) {
property1 = value;
}
private String property2;
public String getProperty2() {
return property2;
}
public void setProperty2(String value) {
property2 = value;
}
private String property3;
public String getProperty3() {
return property3;
}
public void setProperty3(String value) {
property3 = value;
}
private String property4;
public String getProperty4() {
return property4;
}
public void setProperty4(String value) {
property4 = value;
}
private String property5;
public String getProperty5() {
return property5;
}
public void setProperty5(String value) {
property5 = value;
}
private String property6;
public String getProperty6() {
return property6;
}
public void setProperty6(String value) {
property6 = value;
}
private String property7;
public String getProperty7() {
return property7;
}
public void setProperty7(String value) {
property7 = value;
}
private String property8;
public String getProperty8() {
return property8;
}
public void setProperty8(String value) {
property8 = value;
}
private String property9;
public String getProperty9() {
return property9;
}
public void setProperty9(String value) {
property9 = value;
}
}
|
[
"nateweiler84@gmail.com"
] |
nateweiler84@gmail.com
|
f811be149b2f7524e57542613591d98c40ceb1ee
|
adfc518a40bae0e7e0ef08700de231869cdc9e07
|
/src/main/java/zes/base/privacy/PrivacyPptxFileFilter.java
|
5461008aa97e169e8f174eda37ccb8a1d2ed21ce
|
[
"Apache-2.0"
] |
permissive
|
tenbirds/OPENWORKS-3.0
|
49d28a2f9f9c9243b8f652de1d6bc97118956053
|
d9ea72589854380d7ad95a1df7e5397ad6d726a6
|
refs/heads/master
| 2020-04-10T02:49:18.841692
| 2018-12-07T03:40:00
| 2018-12-07T03:40:00
| 160,753,369
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,963
|
java
|
/*
* Copyright (c) 2012 ZES Inc. All rights reserved. This software is the
* confidential and proprietary information of ZES Inc. You shall not disclose
* such Confidential Information and shall use it only in accordance with the
* terms of the license agreement you entered into with ZES Inc.
* (http://www.zesinc.co.kr/)
*/
package zes.base.privacy;
import java.io.File;
import java.io.FileInputStream;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.xslf.extractor.XSLFPowerPointExtractor;
/**
* MS 오피스 파일중 Power Point 파일(pptx 확장자)에 대한 개인정보 포함여부를 확인한다.
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 수정내용
* -------------- -------- -------------------------------
*
*
* 2013. 06. 04. 방기배 개인정보 필터링
* </pre>
*/
public class PrivacyPptxFileFilter extends AbstractPrivacyFilter implements PrivacyFilter {
public PrivacyPptxFileFilter(File file) throws Exception {
this.file = file;
}
/*
* Power Point 파일내에서 개인정보를 포함한 값이 있는지 여부를 확인
* @see
* zes.base.privacy.PrivacyFilter#doFilter(java.lang.String)
*/
@Override
public boolean doFilter() {
FileInputStream fileInput = null;
try {
fileInput = new FileInputStream(this.file);
OPCPackage pkg = OPCPackage.open(fileInput);
XSLFPowerPointExtractor pe = new XSLFPowerPointExtractor(pkg);
return doPrivacyCheck(pe.getText());
} catch (Exception e) {
logger.error("MS Excel(.xlsx) File search Failed", e);
return false;
} finally {
if(fileInput != null) {
try {
fileInput.close();
} catch (Exception e) {}
}
}
}
}
|
[
"tenbirds@gmail.com"
] |
tenbirds@gmail.com
|
e1d0016549d70fd2d2ea7ae7d63e4d30d15e7bf0
|
7a21ff93edba001bef328a1e927699104bc046e5
|
/project-parent/module-parent/service-module-parent/tool-service/src/main/java/com/dotop/smartwater/project/module/service/tool/IDeviceParametersService.java
|
41088873ebe8d9316ad6efc700ec98c916aa131b
|
[] |
no_license
|
150719873/zhdt
|
6ea1ca94b83e6db2012080f53060d4abaeaf12f5
|
c755dacdd76b71fd14aba5e475a5862a8d92c1f6
|
refs/heads/master
| 2022-12-16T06:59:28.373153
| 2020-09-14T06:57:16
| 2020-09-14T06:57:16
| 299,157,259
| 1
| 0
| null | 2020-09-28T01:45:10
| 2020-09-28T01:45:10
| null |
UTF-8
|
Java
| false
| false
| 1,241
|
java
|
package com.dotop.smartwater.project.module.service.tool;
import java.util.List;
import com.dotop.smartwater.dependence.core.common.BaseService;
import com.dotop.smartwater.dependence.core.pagination.Pagination;
import com.dotop.smartwater.project.module.core.water.bo.DeviceBatchBo;
import com.dotop.smartwater.project.module.core.water.bo.DeviceParametersBo;
import com.dotop.smartwater.project.module.core.water.vo.DeviceParametersVo;
/**
*
* @date 2019年2月21日
*/
public interface IDeviceParametersService extends BaseService<DeviceParametersBo, DeviceParametersVo> {
@Override
Pagination<DeviceParametersVo> page(DeviceParametersBo deviceParametersBo);
@Override
DeviceParametersVo get(DeviceParametersBo deviceParametersBo);
DeviceParametersVo getParams(DeviceParametersBo deviceParametersBo);
@Override
DeviceParametersVo add(DeviceParametersBo deviceParametersBo);
@Override
List<DeviceParametersVo> list(DeviceParametersBo deviceParametersBo);
List<DeviceParametersVo> noEndList(DeviceBatchBo bo);
@Override
String del(DeviceParametersBo deviceParametersBo);
@Override
boolean isExist(DeviceParametersBo deviceParametersBo);
boolean checkDeviceName(DeviceParametersBo deviceParametersBo);
}
|
[
"2216502193@qq.com"
] |
2216502193@qq.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.