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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93771b05c98a7d1c5e10f564da664d0fc02110e0
|
65019a2bd31beb81ebd9fc6fa93a65377c2b5866
|
/app/src/main/java/com/daydaynote/fragments/BlankFragment.java
|
bd54c4f386b493e946f79a9d02f75f4041d75d66
|
[] |
no_license
|
DevelopTogether/DayDayNote
|
f42cede5aecbb0cafb21ea9b0ec52d2370c3b178
|
43dfb51d87a683d9c6f94645bc0e7a740aa238b4
|
refs/heads/master
| 2021-09-02T00:10:47.619573
| 2017-12-29T10:09:55
| 2017-12-29T10:09:55
| 106,536,744
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 666
|
java
|
package com.daydaynote.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;
import com.daydaynote.R;
public class BlankFragment extends Fragment {
private View view;
private GridView mGridview;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
view = inflater.inflate(R.layout.fragment_blank, container, false);
return view;
}
}
|
[
"three6one@163.com"
] |
three6one@163.com
|
f669662c0122c23c8553e54bfce95c18787fbc9f
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module1183/src/main/java/module1183packageJava0/Foo2339.java
|
8c5bfd3c3a5edcbe4cc92b5fc7e200b99d05d6cc
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 378
|
java
|
package module1183packageJava0;
import java.lang.Integer;
public class Foo2339 {
Integer int0;
public void foo0() {
new module1183packageJava0.Foo2338().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
66ce30f634012e846e6be00f67edf74852851ed5
|
1fa7bc2cdaddc03c0e4a4f2932ef53af695bf7e1
|
/src/main/java/com/ivan/app/l3/solution/Client1.java
|
2e446e3e086af0a062485a9cf08e969b87b1c56e
|
[] |
no_license
|
IvanPostu/SmartHouseManagementSystem
|
3e4dc8093cbd11a9089e773f4274d30f2bf0a495
|
65a876fe5d6931a6f1cc9434336ea3e7d86d7c03
|
refs/heads/main
| 2023-05-11T16:59:11.938745
| 2021-05-16T18:09:02
| 2021-05-16T18:09:02
| 334,755,215
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 721
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ivan.app.l3.solution;
import com.ivan.app.l3.*;
import java.util.Arrays;
import java.util.Map;
/**
*
* @author ivan
*/
public class Client1 {
private IDailyAirHumidityAnalyzer analyzer;
public Client1(IDailyAirHumidityAnalyzer analyzer){
this.analyzer = analyzer;
}
public void executeBusinessLogic(){
Map<String, Integer> dailyAnalysisResult = analyzer.analyze(
Arrays.asList(1, 2, 3)
);
// ...logic
}
}
|
[
"ipostu20000127@gmail.com"
] |
ipostu20000127@gmail.com
|
f4febca33d74c986f9acad6c349de1527a6bd741
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/kotlin/p2235a/Comparisons.java
|
0ae6315bec8edb86e2b1c20dfd1f7268bf65ed7f
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,034
|
java
|
package kotlin.p2235a;
import java.util.Comparator;
import kotlin.Metadata;
import kotlin.TypeCastException;
import kotlin.p2243e.p2244a.AbstractC32522b;
@Metadata
/* renamed from: kotlin.a.b */
/* compiled from: Comparisons.kt */
class Comparisons {
/* renamed from: a */
public static final <T extends Comparable<?>> int m150304a(T t, T t2) {
if (t == t2) {
return 0;
}
if (t == null) {
return -1;
}
if (t2 == null) {
return 1;
}
return t.compareTo(t2);
}
@Metadata
/* renamed from: kotlin.a.b$a */
/* compiled from: Comparisons.kt */
public static final class C32478a<T> implements Comparator<T> {
/* renamed from: a */
final /* synthetic */ AbstractC32522b f111571a;
public C32478a(AbstractC32522b bVar) {
this.f111571a = bVar;
}
@Override // java.util.Comparator
public final int compare(T t, T t2) {
return C32477a.m150304a((Comparable) this.f111571a.invoke(t), (Comparable) this.f111571a.invoke(t2));
}
}
@Metadata
/* renamed from: kotlin.a.b$b */
/* compiled from: Comparisons.kt */
public static final class C32479b<T> implements Comparator<T> {
/* renamed from: a */
final /* synthetic */ AbstractC32522b f111572a;
public C32479b(AbstractC32522b bVar) {
this.f111572a = bVar;
}
@Override // java.util.Comparator
public final int compare(T t, T t2) {
return C32477a.m150304a((Comparable) this.f111572a.invoke(t2), (Comparable) this.f111572a.invoke(t));
}
}
/* renamed from: a */
public static final <T extends Comparable<? super T>> Comparator<T> m150305a() {
C32481f fVar = C32481f.f111574a;
if (fVar != null) {
return fVar;
}
throw new TypeCastException("null cannot be cast to non-null type kotlin.Comparator<T> /* = java.util.Comparator<T> */");
}
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
39fe559de2050eddf4afa3dfb764fae872eb2265
|
0f77c5ec508d6e8b558f726980067d1058e350d7
|
/1_39_120042/org/apache/tools/ant/types/resources/AbstractResourceCollectionWrapper.java
|
8eb9b31b919e5a7164315ac9fb42ff4283d1b943
|
[] |
no_license
|
nightwolf93/Wakxy-Core-Decompiled
|
aa589ebb92197bf48e6576026648956f93b8bf7f
|
2967f8f8fba89018f63b36e3978fc62908aa4d4d
|
refs/heads/master
| 2016-09-05T11:07:45.145928
| 2014-12-30T16:21:30
| 2014-12-30T16:21:30
| 29,250,176
| 5
| 5
| null | 2015-01-14T15:17:02
| 2015-01-14T15:17:02
| null |
UTF-8
|
Java
| false
| false
| 3,828
|
java
|
package org.apache.tools.ant.types.resources;
import org.apache.tools.ant.*;
import org.apache.tools.ant.types.*;
import java.util.*;
import java.io.*;
public abstract class AbstractResourceCollectionWrapper extends DataType implements ResourceCollection, Cloneable
{
private static final String ONE_NESTED_MESSAGE = " expects exactly one nested resource collection.";
private ResourceCollection rc;
private boolean cache;
public AbstractResourceCollectionWrapper() {
super();
this.cache = true;
}
public synchronized void setCache(final boolean b) {
this.cache = b;
}
public synchronized boolean isCache() {
return this.cache;
}
public synchronized void add(final ResourceCollection c) throws BuildException {
if (this.isReference()) {
throw this.noChildrenAllowed();
}
if (c == null) {
return;
}
if (this.rc != null) {
throw this.oneNested();
}
this.rc = c;
if (Project.getProject(this.rc) == null) {
final Project p = this.getProject();
if (p != null) {
p.setProjectReference(this.rc);
}
}
this.setChecked(false);
}
public final synchronized Iterator<Resource> iterator() {
if (this.isReference()) {
return ((AbstractResourceCollectionWrapper)this.getCheckedRef()).iterator();
}
this.dieOnCircularReference();
return new FailFast(this, this.createIterator());
}
protected abstract Iterator<Resource> createIterator();
public synchronized int size() {
if (this.isReference()) {
return ((AbstractResourceCollectionWrapper)this.getCheckedRef()).size();
}
this.dieOnCircularReference();
return this.getSize();
}
protected abstract int getSize();
public synchronized boolean isFilesystemOnly() {
if (this.isReference()) {
return ((BaseResourceCollectionContainer)this.getCheckedRef()).isFilesystemOnly();
}
this.dieOnCircularReference();
if (this.rc == null || this.rc.isFilesystemOnly()) {
return true;
}
for (final Resource r : this) {
if (r.as(FileProvider.class) == null) {
return false;
}
}
return true;
}
protected synchronized void dieOnCircularReference(final Stack<Object> stk, final Project p) throws BuildException {
if (this.isChecked()) {
return;
}
if (this.isReference()) {
super.dieOnCircularReference(stk, p);
}
else {
if (this.rc instanceof DataType) {
DataType.pushAndInvokeCircularReferenceCheck((DataType)this.rc, stk, p);
}
this.setChecked(true);
}
}
protected final synchronized ResourceCollection getResourceCollection() {
this.dieOnCircularReference();
if (this.rc == null) {
throw this.oneNested();
}
return this.rc;
}
public synchronized String toString() {
if (this.isReference()) {
return this.getCheckedRef().toString();
}
if (this.getSize() == 0) {
return "";
}
final StringBuilder sb = new StringBuilder();
for (final Resource resource : this) {
if (sb.length() > 0) {
sb.append(File.pathSeparatorChar);
}
sb.append(resource);
}
return sb.toString();
}
private BuildException oneNested() {
return new BuildException(super.toString() + " expects exactly one nested resource collection.");
}
}
|
[
"totomakers@hotmail.fr"
] |
totomakers@hotmail.fr
|
16db7623c593155e25f6376cf9faeb4620862b5f
|
b5e732724791695f64443057195336e63a437a1c
|
/authrus-database-binder/src/main/java/com/authrus/database/bind/table/statement/DropStatement.java
|
09c5212a4d6e9b04d84703a2597351f900489b0b
|
[] |
no_license
|
authrus/database
|
8c4f51ae26f3225c518a18b0e1fe52092a11b883
|
426f61a691d2d41d43a58dc86fe2c3d0bb25f1d8
|
refs/heads/master
| 2020-04-12T22:00:00.952521
| 2019-04-13T18:53:20
| 2019-04-13T18:53:20
| 162,778,467
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,577
|
java
|
package com.authrus.database.bind.table.statement;
import com.authrus.database.Database;
import com.authrus.database.DatabaseConnection;
import com.authrus.database.Schema;
import com.authrus.database.bind.table.TableContext;
public class DropStatement<T> {
private final TableContext<T> context;
private final Database database;
private final boolean conditional;
public DropStatement(Database database, TableContext<T> context) {
this(database, context, false);
}
public DropStatement(Database database, TableContext<T> context, boolean conditional) {
this.conditional = conditional;
this.database = database;
this.context = context;
}
public String compile() throws Exception {
String table = context.getName();
Schema schema = context.getSchema();
int columnCount = schema.getCount();
if(columnCount <= 0) {
throw new IllegalStateException("Table '" + table + "' has " + columnCount + " columns");
}
StringBuilder builder = new StringBuilder();
builder.append("drop table ");
if(conditional) {
builder.append("if exists ");
}
builder.append(table);
return builder.toString();
}
public String execute() throws Exception {
String statement = compile();
DatabaseConnection connection = database.getConnection();
try {
connection.executeStatement(statement);
} finally {
connection.closeConnection();
}
return statement;
}
}
|
[
"authrus.root@gmail.com"
] |
authrus.root@gmail.com
|
6230a9d21e1242963ffad631999b499b676130d2
|
8d5544208b34f778dc24e6fbac68ae599d4b0f81
|
/src/main/java/com/hdh/lifeup/controller/UploadController.java
|
c5769e375cc0d9c7f44c923afd4ca02e3f4ccc4d
|
[
"Apache-2.0"
] |
permissive
|
YuanBo2016/lifeup
|
35ae3559bce2fc06ebe7cbffcfad6fdef463b161
|
c57a8f50b2120eb74f73edab2d39061553ef8100
|
refs/heads/master
| 2022-11-07T22:50:15.178521
| 2020-06-11T13:08:09
| 2020-06-11T13:08:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,981
|
java
|
package com.hdh.lifeup.controller;
import com.google.common.collect.Lists;
import com.hdh.lifeup.auth.ApiLimiting;
import com.hdh.lifeup.config.QiniuConfig;
import com.hdh.lifeup.util.Result;
import com.hdh.lifeup.util.UploadUtil;
import com.hdh.lifeup.model.vo.ResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
/**
* UploadController class<br/>
*
* @author hdonghong
* @since 2018/10/19
*/
@Api(description = "上传模块")
@RestController
@RequestMapping("/upload")
@Slf4j
public class UploadController {
private QiniuConfig qiniuConfig;
@Autowired
public UploadController(QiniuConfig qiniuConfig) {
this.qiniuConfig = qiniuConfig;
}
@ApiLimiting
@ApiOperation(value = "传图片", notes = "imageCategory中,如果传动态就是activity")
@ApiImplicitParams({
@ApiImplicitParam(name = "authenticity-token", required = true, paramType = "header", dataType = "String"),
})
@PostMapping("/image/{imageCategory}")
public ResultVO<List<String>> uploadImage(
@RequestParam("imageFiles") List<MultipartFile> imageFiles,
@PathVariable("imageCategory") String imageCategory) {
List<String> imagePaths = Lists.newArrayList();
if (imageFiles.size() > 0) {
log.info("开始上传{}张图片", imageFiles.size());
for (MultipartFile image : imageFiles) {
imagePaths.add(UploadUtil.uploadImage(image, QiniuConfig.getImageURI(imageCategory), qiniuConfig));
}
log.info("上传图片成功");
}
return Result.success(imagePaths);
}
}
|
[
"799108252@qq.com"
] |
799108252@qq.com
|
36124cced200fddaf130410778efa137d4c0ad09
|
8af2bc6b53f7e5d3ed906ac842efae9f3ffc2735
|
/core/src/main/java/cn/sinjinsong/eshop/core/enumeration/mail/MailStatus.java
|
4766c75c58e96feadf08efdb16ea3d5342ff7cec
|
[] |
no_license
|
zengchi/EShop-Backend
|
c8202d24b694fba8949534ee8dff76c8cb79225c
|
c0ac596860cd96df58a00696bc187d52af4427f0
|
refs/heads/master
| 2020-05-14T22:46:49.127827
| 2017-12-21T15:58:57
| 2017-12-21T15:58:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 927
|
java
|
package cn.sinjinsong.eshop.core.enumeration.mail;
import java.util.HashMap;
import java.util.Map;
/**
* Created by SinjinSong on 2017/5/4.
*/
public enum MailStatus {
NOT_VIEWED(0, "未查看"), VIEWED(1, "已查看"), ALL(2, "全部");
private int code;
private String desc;
MailStatus(int code, String desc) {
this.code = code;
this.desc = desc;
}
private static Map<Integer, MailStatus> map = new HashMap<>();
static {
for (MailStatus status : values()) {
map.put(status.code, status);
}
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public static MailStatus getByCode(int code) {
return map.get(code);
}
}
|
[
"songxinjianzx@163.com"
] |
songxinjianzx@163.com
|
2a728611922b87a48325edc47d9da07b9cc27ef6
|
95e944448000c08dd3d6915abb468767c9f29d3c
|
/sources/com/p280ss/android/ugc/aweme/poi/experiment/PoiVideoRankExperiment.java
|
65260ad08efa60ac8a0cc4be58b98768b101bac5
|
[] |
no_license
|
xrealm/tiktok-src
|
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
|
90f305b5f981d39cfb313d75ab231326c9fca597
|
refs/heads/master
| 2022-11-12T06:43:07.401661
| 2020-07-04T20:21:12
| 2020-07-04T20:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 593
|
java
|
package com.p280ss.android.ugc.aweme.poi.experiment;
import com.bytedance.ies.abmock.p260a.C6381a;
import com.bytedance.ies.abmock.p260a.C6382b;
@C6381a(mo15284a = "poi_enable_video_rank")
/* renamed from: com.ss.android.ugc.aweme.poi.experiment.PoiVideoRankExperiment */
public final class PoiVideoRankExperiment {
@C6382b(mo15285a = true)
public static final int DEFAULT = 0;
public static final PoiVideoRankExperiment INSTANCE = new PoiVideoRankExperiment();
@C6382b
public static final int STYLE_VIDEO_LEADERBOARD = 1;
private PoiVideoRankExperiment() {
}
}
|
[
"65450641+Xyzdesk@users.noreply.github.com"
] |
65450641+Xyzdesk@users.noreply.github.com
|
2081c1a2c9110397049efbec23d072d65bad2194
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/PMD/rev5929-6296/right-trunk-6296/regress/test/net/sourceforge/pmd/ast/ASTBooleanLiteralTest.java
|
d4b4a08bac14ac72390ca655244706684c8f4cb4
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,227
|
java
|
package test.net.sourceforge.pmd.ast;
import static org.junit.Assert.assertTrue;
import net.sourceforge.pmd.PMD;
import net.sourceforge.pmd.lang.java.ast.ASTBooleanLiteral;
import org.junit.Test;
import test.net.sourceforge.pmd.testframework.ParserTst;
import java.util.Set;
public class ASTBooleanLiteralTest extends ParserTst {
@Test
public void testTrue() throws Throwable {
Set ops = getNodes(ASTBooleanLiteral.class, TEST1);
ASTBooleanLiteral b = (ASTBooleanLiteral) ops.iterator().next();
assertTrue(b.isTrue());
}
@Test
public void testFalse() throws Throwable {
Set ops = getNodes(ASTBooleanLiteral.class, TEST2);
ASTBooleanLiteral b = (ASTBooleanLiteral) ops.iterator().next();
assertTrue(!b.isTrue());
}
private static final String TEST1 =
"class Foo { " + PMD.EOL +
" boolean bar = true; " + PMD.EOL +
"} ";
private static final String TEST2 =
"class Foo { " + PMD.EOL +
" boolean bar = false; " + PMD.EOL +
"} ";
public static junit.framework.Test suite() {
return new junit.framework.JUnit4TestAdapter(ASTBooleanLiteralTest.class);
}
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
f4fb90c52d22d7bedc779e87090d065ad3d004cb
|
21ce9e385b5bcdfa4e44df51cd98a435a89fb7a3
|
/src/main/java/top/kwseeker/emall/service/ICategoryService.java
|
0d30f54079fb500e10e42690cf04844a31b6808f
|
[] |
no_license
|
kwseeker/emall
|
d4cf710773f6853b2bc6a42f645487531106da5a
|
ac10f360376277765f416aa68c08c4e0303aedb7
|
refs/heads/master
| 2020-03-19T17:53:23.600819
| 2018-09-17T17:01:20
| 2018-09-17T17:01:20
| 136,783,005
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 513
|
java
|
package top.kwseeker.emall.service;
import top.kwseeker.emall.common.ServerResponse;
import top.kwseeker.emall.pojo.Category;
import java.util.List;
public interface ICategoryService {
ServerResponse addCategory(String categoryName, Integer parentId);
ServerResponse updateCategoryName(Integer categoryId,String categoryName);
ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);
ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
|
[
"xiaohuileee@gmail.com"
] |
xiaohuileee@gmail.com
|
36a7c0c4585fdfc0f75d9cbe500f18d89a3d464c
|
a941bf098424e3d5cf4ba4bb9091ed806bea15ba
|
/src/main/java/com/aditya/imageservice/application/service/ImageService.java
|
8734edaa51c97ad995b8b386e9162d6834f77fb5
|
[] |
no_license
|
AdityaKshettri/Working-with-DTO-ModelMapper-ExceptionHandling-in-Spring-Boot
|
b5ed9cfef7cc30fbfa9a2cb28303466fb34b583e
|
babef6b7b2dec778d494c7ef71412bed6da726d6
|
refs/heads/master
| 2022-11-21T06:14:13.664785
| 2020-07-26T05:25:31
| 2020-07-26T05:25:31
| 282,581,930
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 362
|
java
|
package com.aditya.imageservice.application.service;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import com.aditya.imageservice.application.entity.Image;
public interface ImageService
{
public List<Image> findAll();
public Image save(Image image);
public void deleteById(UUID id);
public Optional<Image> findById(UUID id);
}
|
[
"adikshettri1623@gmail.com"
] |
adikshettri1623@gmail.com
|
73bc5328824684fccb8416fb6b32ef46a8654b9f
|
9f68540857f4233e06b9a9bdaa2f6a186cf4f583
|
/src/com/android/settings/applications/appinfo/ExternalSourceDetailPreferenceController.java
|
4f88375c4e57565e6f9926ff3c7a122aa8e7a390
|
[
"Apache-2.0"
] |
permissive
|
Ankits-lab/packages_apps_Settings
|
142dc865ff5ba0a5502b36fc4176f096231c3181
|
82cbefb9817e5b244bb50fdaffbe0f90381f269c
|
refs/heads/main
| 2023-01-12T04:07:58.863359
| 2020-11-14T09:36:09
| 2020-11-14T09:36:09
| 312,785,971
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,576
|
java
|
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.applications.appinfo;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.os.UserManager;
import androidx.annotation.VisibleForTesting;
import androidx.preference.Preference;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.applications.AppStateInstallAppsBridge;
public class ExternalSourceDetailPreferenceController extends AppInfoPreferenceControllerBase {
private String mPackageName;
public ExternalSourceDetailPreferenceController(Context context, String key) {
super(context, key);
}
@Override
public int getAvailabilityStatus() {
if (UserManager.get(mContext).isManagedProfile()) {
return DISABLED_FOR_USER;
}
return isPotentialAppSource() ? AVAILABLE : DISABLED_FOR_USER;
}
@Override
public void updateState(Preference preference) {
preference.setSummary(getPreferenceSummary());
}
@Override
protected Class<? extends SettingsPreferenceFragment> getDetailFragmentClass() {
return ExternalSourcesDetails.class;
}
@VisibleForTesting
CharSequence getPreferenceSummary() {
return ExternalSourcesDetails.getPreferenceSummary(mContext, mParent.getAppEntry());
}
@VisibleForTesting
boolean isPotentialAppSource() {
final PackageInfo packageInfo = mParent.getPackageInfo();
if (packageInfo == null) {
return false;
}
AppStateInstallAppsBridge.InstallAppsState appState =
new AppStateInstallAppsBridge(mContext, null, null).createInstallAppsStateFor(
mPackageName, packageInfo.applicationInfo.uid);
return appState.isPotentialAppSource();
}
public void setPackageName(String packageName) {
mPackageName = packageName;
}
}
|
[
"keneankit01@gmail.com"
] |
keneankit01@gmail.com
|
83c51661ad01397b0bea06551f1d3ec6efdffee4
|
144c99466cfb085f2015ec2dc2e67c54f1af1443
|
/guyue-hive-source/src/main/java/org/apache/hadoop/hive/ql/exec/vector/expressions/gen/DoubleColGreaterDoubleScalar.java
|
04d8b5d4b5c92c720027d571da715bac5120526f
|
[] |
no_license
|
guyuetftb/guyue-parents
|
8c999c9ee510c141f4ddf31ee98d74e00d9287c7
|
d15bd256e70c10819f86d018d7a3e7cc5c513005
|
refs/heads/master
| 2023-05-24T08:18:48.921990
| 2023-05-15T03:03:42
| 2023-05-15T03:03:42
| 132,435,187
| 3
| 3
| null | 2022-11-16T08:28:50
| 2018-05-07T09:05:27
|
Java
|
UTF-8
|
Java
| false
| false
| 5,269
|
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.hadoop.hive.ql.exec.vector.expressions.gen;
import org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression;
import org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector;
import org.apache.hadoop.hive.ql.exec.vector.LongColumnVector;
import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch;
import org.apache.hadoop.hive.ql.exec.vector.VectorExpressionDescriptor;
/**
* Generated from template ColumnCompareScalar.txt, which covers binary comparison
* expressions between a column and a scalar. The boolean output is stored in a
* separate boolean column.
*/
public class DoubleColGreaterDoubleScalar extends VectorExpression {
private static final long serialVersionUID = 1L;
private int colNum;
private double value;
private int outputColumn;
public DoubleColGreaterDoubleScalar(int colNum, double value, int outputColumn) {
this.colNum = colNum;
this.value = value;
this.outputColumn = outputColumn;
}
public DoubleColGreaterDoubleScalar() {
}
@Override
public void evaluate(VectorizedRowBatch batch) {
if (childExpressions != null) {
super.evaluateChildren(batch);
}
DoubleColumnVector inputColVector = (DoubleColumnVector) batch.cols[colNum];
LongColumnVector outputColVector = (LongColumnVector) batch.cols[outputColumn];
int[] sel = batch.selected;
boolean[] nullPos = inputColVector.isNull;
boolean[] outNulls = outputColVector.isNull;
int n = batch.size;
double[] vector = inputColVector.vector;
long[] outputVector = outputColVector.vector;
// return immediately if batch is empty
if (n == 0) {
return;
}
outputColVector.isRepeating = false;
outputColVector.noNulls = inputColVector.noNulls;
if (inputColVector.noNulls) {
if (inputColVector.isRepeating) {
//All must be selected otherwise size would be zero
//Repeating property will not change.
outputVector[0] = vector[0] > value ? 1 : 0;
outputColVector.isRepeating = true;
} else if (batch.selectedInUse) {
for(int j=0; j != n; j++) {
int i = sel[j];
outputVector[i] = vector[i] > value ? 1 : 0;
}
} else {
for(int i = 0; i != n; i++) {
outputVector[i] = vector[i] > value ? 1 : 0;
}
}
} else {
if (inputColVector.isRepeating) {
//All must be selected otherwise size would be zero
//Repeating property will not change.
if (!nullPos[0]) {
outputVector[0] = vector[0] > value ? 1 : 0;
outNulls[0] = false;
} else {
outNulls[0] = true;
}
outputColVector.isRepeating = true;
} else if (batch.selectedInUse) {
for(int j=0; j != n; j++) {
int i = sel[j];
if (!nullPos[i]) {
outputVector[i] = vector[i] > value ? 1 : 0;
outNulls[i] = false;
} else {
//comparison with null is null
outNulls[i] = true;
}
}
} else {
System.arraycopy(nullPos, 0, outNulls, 0, n);
for(int i = 0; i != n; i++) {
if (!nullPos[i]) {
outputVector[i] = vector[i] > value ? 1 : 0;
}
}
}
}
}
@Override
public int getOutputColumn() {
return outputColumn;
}
@Override
public String getOutputType() {
return "long";
}
public int getColNum() {
return colNum;
}
public void setColNum(int colNum) {
this.colNum = colNum;
}
public double getValue() {
return value;
}
public void setValue(double value) {
this.value = value;
}
public void setOutputColumn(int outputColumn) {
this.outputColumn = outputColumn;
}
@Override
public String vectorExpressionParameters() {
return "col " + colNum + ", val " + value;
}
@Override
public VectorExpressionDescriptor.Descriptor getDescriptor() {
return (new VectorExpressionDescriptor.Builder())
.setMode(
VectorExpressionDescriptor.Mode.PROJECTION)
.setNumArguments(2)
.setArgumentTypes(
VectorExpressionDescriptor.ArgumentType.getType("double"),
VectorExpressionDescriptor.ArgumentType.getType("double"))
.setInputExpressionTypes(
VectorExpressionDescriptor.InputExpressionType.COLUMN,
VectorExpressionDescriptor.InputExpressionType.SCALAR).build();
}
}
|
[
"lipeng02@missfresh.cn"
] |
lipeng02@missfresh.cn
|
4fc73f7afa50a3a709369c70abfe2d6fdaf13ff6
|
0e06e096a9f95ab094b8078ea2cd310759af008b
|
/classes62-dex2jar/com/google/android/gms/internal/nearby/zzei.java
|
2dd19b8436e3993a89b568a01e5a2f7266fb4333
|
[] |
no_license
|
Manifold0/adcom_decompile
|
4bc2907a057c73703cf141dc0749ed4c014ebe55
|
fce3d59b59480abe91f90ba05b0df4eaadd849f7
|
refs/heads/master
| 2020-05-21T02:01:59.787840
| 2019-05-10T00:36:27
| 2019-05-10T00:36:27
| 185,856,424
| 1
| 2
| null | 2019-05-10T00:36:28
| 2019-05-09T19:04:28
|
Java
|
UTF-8
|
Java
| false
| false
| 295
|
java
|
//
// Decompiled by Procyon v0.5.34
//
package com.google.android.gms.internal.nearby;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import android.os.Parcel;
import android.os.Parcelable$Creator;
public final class zzei implements Parcelable$Creator<zzeh>
{
}
|
[
"querky1231@gmail.com"
] |
querky1231@gmail.com
|
18ae42f9eba8c27616b3982308314e8a9013a1d5
|
82c74967c77c443449a3631a0d59279146eee405
|
/src/main/java/cn/alan/base62/Base62Utils.java
|
ab49c0c220887d987cfc363b39b6ec724d1eda36
|
[] |
no_license
|
ronggh/java-crypt
|
0ca90780e86d7664bb786f2a53c8ca0fed45378e
|
2ea75b5458777498bfcfb6b2cb0ef0d638be2a2e
|
refs/heads/master
| 2023-02-05T07:20:06.798665
| 2020-12-18T00:24:47
| 2020-12-18T00:24:47
| 316,450,789
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,656
|
java
|
package cn.alan.base62;
import java.io.ByteArrayOutputStream;
/**
* @author alan
* @date 2020/12/2
*/
public class Base62Utils {
/**
*
* 特别注意: Base62编码与解码的key中,必须包含有“+/”这两个字符,<br/>
* 否则,会有出现一个数字不能正常解码,实际编码用不到这两个
*/
private static char[] encodes = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray();
private static byte[] decodes = new byte[256];
static {
for (int i = 0; i < encodes.length; i++) {
decodes[encodes[i]] = (byte)i;
}
}
/**
* 字符串进行base62编码
*
* @param input
* 原串
* @return base62编码后的串
*/
public static String encode(String input) {
return encode(input.getBytes());
}
/**
* 字节数组进行base62编码
*
* @param data
* 字节数组
* @return base62编码后的串
*/
public static String encode(byte[] data) {
StringBuilder sb = new StringBuilder(data.length * 2);
int pos = 0, val = 0;
for (int i = 0; i < data.length; i++) {
val = (val << 8) | (data[i] & 0xFF);
pos += 8;
while (pos > 5) {
char c = encodes[val >> (pos -= 6)];
sb.append(c == 'i' ? "ia" : c == '+' ? "ib" : c == '/' ? "ic" : String.valueOf(c));
val &= ((1 << pos) - 1);
}
}
if (pos > 0) {
char c = encodes[val << (6 - pos)];
sb.append(c == 'i' ? "ia" : c == '+' ? "ib" : c == '/' ? "ic" : String.valueOf(c));
}
return sb.toString();
}
/**
* base62 解码
*
* @param encodeData
* 字符串
* @return 字节数组
*/
public static byte[] decode(String encodeData) {
if (encodeData == null) {
return null;
}
char[] data = encodeData.toCharArray();
ByteArrayOutputStream bos = new ByteArrayOutputStream(encodeData.toCharArray().length);
int pos = 0, val = 0;
for (int i = 0; i < data.length; i++) {
char c = data[i];
if (c == 'i') {
c = data[++i];
c = c == 'a' ? 'i' : c == 'b' ? '+' : c == 'c' ? '/' : data[--i];
}
val = (val << 6) | decodes[c];
pos += 6;
while (pos > 7) {
bos.write(val >> (pos -= 8));
val &= ((1 << pos) - 1);
}
}
return bos.toByteArray();
}
}
|
[
"ronggh@sina.cn"
] |
ronggh@sina.cn
|
521d7d0468d59dd4bf79c7e2077323ce8cf59cb3
|
f1cda6eec8846d5b69c32c9afcc64df487b9da5d
|
/starter-admin/starter-admin-controller/src/main/java/com/otoko/starteradmincontroller/log/factory/LogTaskFactory.java
|
a1260aba85dd809f124949b91e892a33d1db6fb2
|
[] |
no_license
|
810797860/starter
|
7951494d25237051a8fad057296088b3eaa2011b
|
94f9a531fe359dd2dc640758a71a8fa22492c809
|
refs/heads/master
| 2022-10-21T05:46:38.631283
| 2020-05-06T11:43:30
| 2020-05-06T11:43:30
| 227,129,682
| 0
| 0
| null | 2022-10-12T20:34:53
| 2019-12-10T13:36:48
|
Java
|
UTF-8
|
Java
| false
| false
| 3,921
|
java
|
package com.otoko.starteradmincontroller.log.factory;
import com.otoko.starteradmincontroller.log.LogManager;
import com.otoko.starteradminentity.entity.admin.business.LoginLog;
import com.otoko.starteradminentity.entity.admin.business.OperationLog;
import com.otoko.starteradminmapper.mapper.admin.business.LoginLogMapper;
import com.otoko.starteradminmapper.mapper.admin.business.OperationLogMapper;
import com.otoko.startercommon.pojo.DataBase;
import com.otoko.startercommon.state.LogSucceed;
import com.otoko.startercommon.state.LogType;
import com.otoko.startercommon.util.ToolUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.TimerTask;
/**
* 日志操作任务创建工厂
*
* @author 81079
*/
public class LogTaskFactory {
private static final Logger logger = LoggerFactory.getLogger(LogManager.class);
private static LoginLogMapper loginLogMapper = DataBase.getMapper(LoginLogMapper.class);
private static OperationLogMapper operationLogMapper = DataBase.getMapper(OperationLogMapper.class);
public static TimerTask loginLog(final Long userId, final String ip) {
return new TimerTask() {
@Override
public void run() {
try {
LoginLog loginLog = LogFactory.createLoginLog(LogType.LOGIN, userId, null, ip);
loginLogMapper.insert(loginLog);
} catch (Exception e) {
logger.error("创建登录日志异常!", e);
}
}
};
}
public static TimerTask loginLog(final String username, final String msg, final String ip) {
return new TimerTask() {
@Override
public void run() {
LoginLog loginLog = LogFactory.createLoginLog(
LogType.LOGIN_FAIL, null, "账号:" + username + "," + msg, ip);
try {
loginLogMapper.insert(loginLog);
} catch (Exception e) {
logger.error("创建登录失败异常!", e);
}
}
};
}
public static TimerTask exitLog(final Long userId, final String ip) {
return new TimerTask() {
@Override
public void run() {
LoginLog loginLog = LogFactory.createLoginLog(LogType.EXIT, userId, null, ip);
try {
loginLogMapper.insert(loginLog);
} catch (Exception e) {
logger.error("创建退出日志异常!", e);
}
}
};
}
public static TimerTask bussinessLog(final Long userId, final String bussinessName, final String clazzName, final String methodName, final String msg) {
return new TimerTask() {
@Override
public void run() {
OperationLog operationLog = LogFactory.createOperationLog(
LogType.BUSSINESS, userId, bussinessName, clazzName, methodName, msg, LogSucceed.SUCCESS);
try {
operationLogMapper.insert(operationLog);
} catch (Exception e) {
logger.error("创建业务日志异常!", e);
}
}
};
}
public static TimerTask exceptionLog(final Long userId, final Exception exception) {
return new TimerTask() {
@Override
public void run() {
String msg = ToolUtil.getExceptionMsg(exception);
OperationLog operationLog = LogFactory.createOperationLog(
LogType.EXCEPTION, userId, "", null, null, msg, LogSucceed.FAIL);
try {
operationLogMapper.insert(operationLog);
} catch (Exception e) {
logger.error("创建异常日志异常!", e);
}
}
};
}
}
|
[
"810797860@qq.com"
] |
810797860@qq.com
|
0d78248a1d31b3598e087593ab0a7b05da50ac3e
|
bdaed53a4fda54f897338e23d39e1e20445664be
|
/benworks-sdk-cache/src/main/java/com/meetup/memcached/ContextObjectInputStream.java
|
d7f921271b77706a35b65b16ddf19c6603a9f41b
|
[] |
no_license
|
aben328/benworks-sdk
|
2dd7083c7da4db2248dc18062364538f4361d2e4
|
c2cc055fa3502352016e6d86876669ba52202712
|
refs/heads/master
| 2021-01-19T18:06:16.448921
| 2013-04-22T02:01:08
| 2013-04-22T02:01:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,278
|
java
|
/**
* Copyright (c) 2008 Greg Whalin All rights reserved. This library is free software; you can redistribute it and/or
* modify it under the terms of the BSD license 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. You
* should have received a copy of the BSD License along with this library. Adds the ability for the MemCached client to
* be initialized with a custom class loader. This will allow for the deserialization of classes that are not visible to
* the system class loader.
* @author Vin Chawla <vin@tivo.com>
*/
package com.meetup.memcached;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
public class ContextObjectInputStream extends ObjectInputStream {
ClassLoader mLoader;
public ContextObjectInputStream(InputStream in, ClassLoader loader) throws IOException, SecurityException {
super(in);
mLoader = loader;
}
protected Class<?> resolveClass(ObjectStreamClass v) throws IOException, ClassNotFoundException {
if (mLoader == null)
return super.resolveClass(v);
else
return Class.forName(v.getName(), true, mLoader);
}
}
|
[
"aben328@gmail.com"
] |
aben328@gmail.com
|
b9b5aaffe92b31efacc5751f0398200f2fe53415
|
0c4e20516b73404bf92cf211de7041fc7e4f9c91
|
/jbhui-h5-shop/src/main/java/com/jbh/service/LotteryRecordService.java
|
83344a23f41c304c423f2a2cf331664d024ad836
|
[] |
no_license
|
javakaka/jbhui
|
302048e34542e4b1492b342ff5c30773048f80c0
|
6dd6c15170551c931804daaba55bdd8c85b51c3c
|
refs/heads/master
| 2021-01-12T01:54:16.406418
| 2017-01-27T05:24:40
| 2017-01-27T05:24:40
| 78,442,445
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,473
|
java
|
/**
*
*/
package com.jbh.service;
import java.util.Random;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert;
import com.ezcloud.framework.page.jdbc.Page;
import com.ezcloud.framework.page.jdbc.Pageable;
import com.ezcloud.framework.service.JdbcService;
import com.ezcloud.framework.util.DateUtil;
import com.ezcloud.framework.vo.DataSet;
import com.ezcloud.framework.vo.Row;
/**
* @author shike001
* E-mail:510836102@qq.com
* @version 创建时间:2014-12-26 下午3:14:51
* 类说明: 中奖记录
*/
@Component("cxhlLotteryRecordService")
public class LotteryRecordService extends JdbcService{
public LotteryRecordService() {
}
/**
* @param id
* @return
*/
@Transactional(value="jdbcTransactionManager",readOnly = true)
public Row find(String id)
{
Row row =null;
String sSql ="select * from cxhl_lottery_record where id='"+id+"' ";
row =queryRow(sSql);
return row;
}
@Transactional(value="jdbcTransactionManager",propagation=Propagation.REQUIRED)
public int insert(Row row)
{
int num =0;
int id =getTableSequence("cxhl_lottery_record", "id", 1);
row.put("id", id);
row.put("create_time", DateUtil.getCurrentDateTime());
num =insert("cxhl_lottery_record", row);
return num;
}
@Transactional(value="jdbcTransactionManager",propagation=Propagation.REQUIRED)
public int update(Row row)
{
int num =0;
String id =row.getString("id",null);
row.put("modify_time", DateUtil.getCurrentDateTime());
Assert.notNull(id);
num =update("cxhl_lottery_record", row, " id='"+id+"'");
return num;
}
/**
* 分页查询
*
* @Title: queryPage
* @return Page
*/
@Transactional(value="jdbcTransactionManager",readOnly = true)
public Page queryPage() {
Page page = null;
Pageable pageable = (Pageable) row.get("pageable");
sql ="select * from "
+" ( "
+" select a.*,b.`name`,c.c_name as shop_name from cxhl_lottery_record a "
+" left join cxhl_gift b on a.gift_id=b.id "
+" left join cxhl_shop c on b.shop_id=c.id "
+" ) as tab where 1=1 ";
String restrictions = addRestrictions(pageable);
String orders = addOrders(pageable);
sql += restrictions;
sql += orders;
String countSql ="select count(*) from "
+" ( "
+" select a.*,b.`name`,c.c_name as shop_name from cxhl_lottery_record a "
+" left join cxhl_gift b on a.gift_id=b.id "
+" left join cxhl_shop c on b.shop_id=c.id "
+" ) as tab where 1=1 ";
countSql += restrictions;
countSql += orders;
long total = count(countSql);
int totalPages = (int) Math.ceil((double) total / (double) pageable.getPageSize());
if (totalPages < pageable.getPageNumber()) {
pageable.setPageNumber(totalPages);
}
int startPos = (pageable.getPageNumber() - 1) * pageable.getPageSize();
sql += " limit " + startPos + " , " + pageable.getPageSize();
dataSet = queryDataSet(sql);
page = new Page(dataSet, total, pageable);
return page;
}
/**
* 用户分页查询
*
* @Title: queryPage
* @return Page
*/
@Transactional(value="jdbcTransactionManager",readOnly = true)
public DataSet queryUserList(String user_id,int page,int page_size)
{
DataSet ds =new DataSet();
int iSatrt =(page -1)*page_size;
sql ="select id, user_id ,lottery_type,is_win,reward_type,reward_id,create_time from cxhl_lottery_record where user_id='"+user_id+"' "
+ "order by create_time desc limit "+iSatrt+", "+page_size;
ds = queryDataSet(sql);
return ds;
}
/**
* 删除
*
* @Title: delete
* @param @param ids
* @return void
*/
@Transactional(value="jdbcTransactionManager",propagation=Propagation.REQUIRED)
public void delete(String... ids) {
String id = "";
if (ids != null) {
for (int i = 0; i < ids.length; i++) {
if (id.length() > 0) {
id += ",";
}
id += "'" + String.valueOf(ids[i]) + "'";
}
sql = "delete from cxhl_lottery_record where id in(" + id + ")";
update(sql);
}
}
//当日中奖次数
public int getCurrentDayRewardNum(String year,String month,String day) {
int total =0;
String sql =" select count(*) from cxhl_lottery_record where year='"+year+"' and month='"+month+"' and day='"+day+"' and is_win='1' ";
total =Integer.parseInt(queryField(sql));
return total;
}
//当月中奖次数
public int getCurrentMonthRewardNum(String year,String month) {
int total =0;
String sql =" select count(*) from cxhl_lottery_record where year='"+year+"' "
+ "and month='"+month+"' and is_win='1' ";
total =Integer.parseInt(queryField(sql));
return total;
}
//当周中奖次数
public int getCurrentWeekRewardNum(String year,String month,String week) {
int total =0;
String sql =" select count(*) from cxhl_lottery_record where year='"+year+"' "
+ "and month='"+month+"' and week='"+week+"' and is_win='1' ";
total =Integer.parseInt(queryField(sql));
return total;
}
public static void main(String[] args) {
String cur_date =DateUtil.getCurrentDateTime();
String year =cur_date.substring(0, 4);
String month =cur_date.substring(5, 7);
String day =cur_date.substring(8, 10);
System.out.println("1:"+year+"2:"+month+"3:"+day);
Random random =null;
random =new Random();
int lottery_result =random.nextInt(2);
System.out.println("lottery_result===========>>"+lottery_result);
}
}
|
[
"510836102@qq.com"
] |
510836102@qq.com
|
004d9c603c29ebb5f56b54e8f72476157f535235
|
aaefc3bb74f657296e1f24a1873ab0c5b5abb59e
|
/app/src/main/java/com/saas/saasuser/view/expendlistview/HeightAnimation.java
|
0f63a993378eb8c2de4e24f2dc011fdd336619c1
|
[] |
no_license
|
Fuge2008/myCode
|
578465e40936468adfc97795fc668f99cc6de6a2
|
3cb97cadf9fe8f4a59def1d852c74e6c3c767e80
|
refs/heads/master
| 2021-08-24T15:46:45.972057
| 2017-12-10T09:07:01
| 2017-12-10T09:07:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,866
|
java
|
package com.saas.saasuser.view.expendlistview;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Interpolator;
import android.view.animation.Transformation;
/**
* Height animation implementation
*/
public class HeightAnimation extends Animation {
private final View mView;
private final int mHeightFrom;
private final int mHeightTo;
public HeightAnimation(View mView, int heightFrom, int heightTo, int duration) {
this.mView = mView;
this.mHeightFrom = heightFrom;
this.mHeightTo = heightTo;
this.setDuration(duration);
}
public HeightAnimation withInterpolator(Interpolator interpolator) {
if (interpolator != null) {
this.setInterpolator(interpolator);
}
return this;
}
@Override
public void initialize(int width, int height, int parentWidth, int parentHeight) {
super.initialize(width, height, parentWidth, parentHeight);
}
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
float newHeight = mHeightFrom + (mHeightTo - mHeightFrom) * interpolatedTime;
if (interpolatedTime == 1) {
mView.getLayoutParams().height = mHeightTo;
} else {
mView.getLayoutParams().height = (int) newHeight;
}
mView.requestLayout();
}
@Override
public boolean willChangeBounds() {
return true;
}
@Override
public boolean isFillEnabled() {
return false;
}
@Override
public String toString() {
return "HeightAnimation{" +
"mHeightFrom=" + mHeightFrom +
", mHeightTo=" + mHeightTo +
", offset =" + getStartOffset() +
", duration =" + getDuration() +
'}';
}
}
|
[
"fzwooo@163.com"
] |
fzwooo@163.com
|
86130b47c745820ad0a1dcb0047ed794fc6f4263
|
f2c4c1a1a8a3b23dde923268a7f99789dc0a116b
|
/src/main/java/SeleniumSessions/ActionsClickAndSendKeys.java
|
a6575d78aa0af0737d75503fd4953f893a4ad5c0
|
[] |
no_license
|
miju256/ruman-with-naven-
|
bf6b22379b727446ec641ec8a9c0e9e79fc82f4a
|
e8ee9f0f824d5f52c05712f2212c701e4f0ea303
|
refs/heads/master
| 2023-02-01T01:53:25.889043
| 2020-12-18T04:27:58
| 2020-12-18T04:27:58
| 322,479,506
| 0
| 0
| null | 2020-12-18T04:27:59
| 2020-12-18T03:35:57
|
Java
|
UTF-8
|
Java
| false
| false
| 1,672
|
java
|
package SeleniumSessions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import io.github.bonigarcia.wdm.WebDriverManager;
public class ActionsClickAndSendKeys {
static WebDriver driver;
public static void main(String[] args) throws InterruptedException {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
driver.get("https://app.hubspot.com/login");
Thread.sleep(5000);
By username = By.id("username");
By pwd = By.id("password");
By loginButton = By.id("loginBtn");
doActionsSendKeys(username, "admin@gmail.com");
doActionsSendKeys(pwd, "admin@123");
doActionsClick(loginButton);
// WebElement emailid = driver.findElement(By.id("username"));
// WebElement pwd = driver.findElement(By.id("password"));
// WebElement loginButton = driver.findElement(By.id("loginBtn"));
// Actions action = new Actions(driver);
//
// action.sendKeys(emailid, "naveen@gmail.com").perform();
// action.sendKeys(pwd, "naveen@123").perform();
// action.click(loginButton).perform();
}
public static WebElement getElement(By locator){
return driver.findElement(locator);
}
public static void doActionsSendKeys(By locator, String value){
WebElement element = getElement(locator);
Actions action = new Actions(driver);
action.sendKeys(element, value).perform();
}
public static void doActionsClick(By locator){
WebElement element = getElement(locator);
Actions action = new Actions(driver);
action.click(element).perform();
}
}
|
[
"naveenautomationlabs@naveenautomationlabss-MacBook-Pro.local"
] |
naveenautomationlabs@naveenautomationlabss-MacBook-Pro.local
|
cd550666701905b60dbf851310ad15e97b29e310
|
9fe49bf7832aba9292ddfcb88fa5e1a53c13a5a4
|
/src/main/java/ec/com/redepronik/negosys/dao/CiudadDaoImpl.java
|
5fcbb510bf773c442d1a22579b37fc225348965c
|
[] |
no_license
|
Idonius/NegosysSpark
|
87c4c5bb560c54f519a8e54b2130557bc091eb63
|
c9ea96d2565500a806749ec4326e2bd3ac649b11
|
refs/heads/master
| 2022-03-07T14:31:01.583523
| 2015-08-27T04:34:55
| 2015-08-27T04:34:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 340
|
java
|
package ec.com.redepronik.negosys.dao;
import java.io.Serializable;
import org.springframework.stereotype.Repository;
import ec.com.redepronik.negosys.entity.Ciudad;
@Repository
public class CiudadDaoImpl extends GenericDaoImpl<Ciudad, Integer> implements
CiudadDao, Serializable {
private static final long serialVersionUID = 1L;
}
|
[
"aguachisaca@redepronik.com.ec"
] |
aguachisaca@redepronik.com.ec
|
aca5cedba0e48b2941768cee34bd81dd25c579a5
|
cc35bbc9bda475fc3809c30b573ee2f0ffaeb06b
|
/Plugins/VarModel/Model/src/de/uni_hildesheim/sse/persistency/StringProvider.java
|
0dfffa593e5121b703e9e213ad3c48b678982f7b
|
[
"Apache-2.0"
] |
permissive
|
ahmedjaved2109/EASyProducer
|
833afd006feb6d2a1f1fcc9eb82b79db2aa51ae7
|
c08f831599a9f5993ed1bd144ccdadab3d1d97ed
|
refs/heads/master
| 2021-01-18T11:09:08.843648
| 2016-03-17T20:29:40
| 2016-03-17T20:29:40
| null | 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 5,195
|
java
|
/*
* Copyright 2009-2013 University of Hildesheim, Software Systems Engineering
*
* 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 de.uni_hildesheim.sse.persistency;
import java.io.StringWriter;
import de.uni_hildesheim.sse.model.cst.ConstraintSyntaxTree;
import de.uni_hildesheim.sse.model.varModel.IModelElement;
import de.uni_hildesheim.sse.model.varModel.IPartialEvaluable;
import de.uni_hildesheim.sse.model.varModel.IvmlDatatypeVisitor;
import de.uni_hildesheim.sse.model.varModel.ModelElement;
import de.uni_hildesheim.sse.model.varModel.Project;
import de.uni_hildesheim.sse.model.varModel.datatypes.IDatatype;
import de.uni_hildesheim.sse.model.varModel.values.Value;
/**
* Turns model (parts) into strings.
*
* @author Holger Eichelberger
* @author Christian Kröher
*/
public class StringProvider {
/**
* Turns a model element into a string containing IVML.
*
* @param element the element to be turned into a string
* @return The resulting string
*/
public static final String toIvmlString(ModelElement element) {
StringWriter writer = new StringWriter();
IVMLWriter visitor = IVMLWriter.getInstance(writer);
element.accept(visitor);
String result = writer.toString();
IVMLWriter.releaseInstance(visitor);
return result;
}
/**
* Turns a syntax tree into a string containing IVML (without context).
*
* @param cst the constraint syntax tree to be turned into a string
* @return The resulting string
*/
public static final String toIvmlString(ConstraintSyntaxTree cst) {
return toIvmlString(cst, null);
}
/**
* Turns a syntax tree into a string containing IVML.
*
* @param cst the constraint syntax tree to be turned into a string
* @param context the context within the <code>cst</code> shall be printed, e.g., to exploit implicitly qualified
* variable names
* @return The resulting string
*/
public static final String toIvmlString(ConstraintSyntaxTree cst, IModelElement context) {
StringWriter writer = new StringWriter();
IVMLWriter visitor = IVMLWriter.getInstance(writer);
int parAdded = 0;
if (null != context) {
visitor.addParent(IVMLWriter.DUMMY_PARENT);
parAdded++;
IModelElement iter = context;
while (null != iter && !(iter instanceof Project)) {
iter = iter.getParent();
}
if (null != iter && iter != context) {
visitor.addParent(iter);
parAdded++;
}
visitor.addParent(context);
parAdded++;
}
cst.accept(visitor);
if (null != context) {
while (parAdded > 0) {
visitor.removeLastParent();
parAdded--;
}
}
String result = writer.toString();
IVMLWriter.releaseInstance(visitor);
return result;
}
/**
* Turns a value into a string containing IVML.
*
* @param value the value to be turned into a string
* @return The resulting string
*/
public static final String toIvmlString(Value value) {
String result;
if (null != value) {
StringWriter writer = new StringWriter();
IVMLWriter visitor = IVMLWriter.getInstance(writer);
value.accept(visitor);
result = writer.toString();
IVMLWriter.releaseInstance(visitor);
} else {
result = "";
}
return result;
}
/**
* Turns a type into a string containing IVML.
*
* @param type the type to be turned into a string
* @return The resulting string as unique string using {@link IvmlDatatypeVisitor}
*/
public static final String toIvmlString(IDatatype type) {
return IvmlDatatypeVisitor.getUniqueType(type);
}
/**
* Turns an evaluable element into a string containing IVML.
*
* @param element the evaluable element to be turned into a string
* @return The resulting string
*/
public static final String toIvmlString(IPartialEvaluable element) {
StringWriter writer = new StringWriter();
IVMLWriter visitor = IVMLWriter.getInstance(writer);
element.accept(visitor);
String result = writer.toString();
IVMLWriter.releaseInstance(visitor);
return result;
}
}
|
[
"elscha@sse.uni-hildesheim.de"
] |
elscha@sse.uni-hildesheim.de
|
ee410fd80931be91dc747f2e13aaaf9d1f925b64
|
5ca3901b424539c2cf0d3dda52d8d7ba2ed91773
|
/src_cfr/com/google/common/cache/RemovalNotification.java
|
e27f8d06ad861c9743c62adcc9d48f4ce9d1683d
|
[] |
no_license
|
fjh658/bindiff
|
c98c9c24b0d904be852182ecbf4f81926ce67fb4
|
2a31859b4638404cdc915d7ed6be19937d762743
|
refs/heads/master
| 2021-01-20T06:43:12.134977
| 2016-06-29T17:09:03
| 2016-06-29T17:09:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,540
|
java
|
/*
* Decompiled with CFR 0_115.
*
* Could not load the following classes:
* javax.annotation.Nullable
*/
package com.google.common.cache;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.cache.RemovalCause;
import java.util.Map;
import javax.annotation.Nullable;
@GwtCompatible
public final class RemovalNotification
implements Map.Entry {
@Nullable
private final Object key;
@Nullable
private final Object value;
private final RemovalCause cause;
private static final long serialVersionUID = 0;
public static RemovalNotification create(@Nullable Object object, @Nullable Object object2, RemovalCause removalCause) {
return new RemovalNotification(object, object2, removalCause);
}
private RemovalNotification(@Nullable Object object, @Nullable Object object2, RemovalCause removalCause) {
this.key = object;
this.value = object2;
this.cause = (RemovalCause)((Object)Preconditions.checkNotNull((Object)removalCause));
}
public RemovalCause getCause() {
return this.cause;
}
public boolean wasEvicted() {
return this.cause.wasEvicted();
}
@Nullable
public Object getKey() {
return this.key;
}
@Nullable
public Object getValue() {
return this.value;
}
public final Object setValue(Object object) {
throw new UnsupportedOperationException();
}
@Override
public boolean equals(@Nullable Object object) {
if (!(object instanceof Map.Entry)) return false;
Map.Entry entry = (Map.Entry)object;
if (!Objects.equal(this.getKey(), entry.getKey())) return false;
if (!Objects.equal(this.getValue(), entry.getValue())) return false;
return true;
}
@Override
public int hashCode() {
int n2;
Object object = this.getKey();
Object object2 = this.getValue();
int n3 = object == null ? 0 : object.hashCode();
if (object2 == null) {
n2 = 0;
return n3 ^ n2;
}
n2 = object2.hashCode();
return n3 ^ n2;
}
public String toString() {
String string = String.valueOf(this.getKey());
String string2 = String.valueOf(this.getValue());
return new StringBuilder(1 + String.valueOf(string).length() + String.valueOf(string2).length()).append(string).append("=").append(string2).toString();
}
}
|
[
"manouchehri@riseup.net"
] |
manouchehri@riseup.net
|
893866f68fd1131fe08d2150655f5421c8a45917
|
0493ffe947dad031c7b19145523eb39209e8059a
|
/OpenJdk8uTest/src/test/java/util/zip/FlaterTest.java
|
0620ee264f56e3b2e132503a03a8f0904cf6d222
|
[] |
no_license
|
thelinh95/Open_Jdk8u_Test
|
7612f1b63b5001d1df85c1df0d70627b123de80f
|
4df362a71e680dbd7dfbb28c8922e8f20373757a
|
refs/heads/master
| 2021-01-16T19:27:30.506632
| 2017-08-13T23:26:05
| 2017-08-13T23:26:05
| 100,169,775
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,885
|
java
|
package test.java.util.zip;
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 6348045
* @summary GZipOutputStream/InputStream goes critical(calls JNI_Get*Critical)
* and causes slowness. This test uses Deflater and Inflater directly.
*/
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.zip.Deflater;
import java.util.zip.Inflater;
import test.java.io.*;
import test.java.nio.*;
import test.java.util.*;
import test.java.util.zip.*;
/**
* This test runs Inflater and Defalter in a number of simultaneous threads,
* validating that the deflated & then inflated data matches the original
* data.
*/
public class FlaterTest extends Thread {
private static final int DATA_LEN = 1024 * 128;
private static byte[] data;
// If true, print extra info.
private static final boolean debug = false;
// Set of Flater threads running.
private static Set flaters =
Collections.synchronizedSet(new HashSet());
/** Fill in {@code data} with random values. */
static void createData() {
ByteBuffer bb = ByteBuffer.allocate(8);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
for (int i = 0; i < DATA_LEN; i++) {
bb.putDouble(0, Math.random());
baos.write(bb.array(), 0, 8);
}
data = baos.toByteArray();
if (debug) System.out.println("data length is " + data.length);
}
/** @return the length of the deflated {@code data}. */
private static int getDeflatedLength() throws Throwable {
int rc = 0;
Deflater deflater = new Deflater();
deflater.setInput(data);
deflater.finish();
byte[] out = new byte[data.length];
rc = deflater.deflate(out);
deflater.end();
if (debug) System.out.println("deflatedLength is " + rc);
return rc;
}
/** Compares given bytes with those in {@code data}.
* @throws Exception if given bytes don't match {@code data}.
*/
private static void validate(byte[] buf, int offset, int len) throws Exception {
for (int i = 0; i < len; i++ ) {
if (buf[i] != data[offset+i]) {
throw new Exception("mismatch at " + (offset + i));
}
}
}
public static void realMain(String[] args) throws Throwable {
createData();
int numThreads = args.length > 0 ? Integer.parseInt(args[0]) : 5;
new FlaterTest().go(numThreads);
}
synchronized private void go(int numThreads) throws Throwable {
int deflatedLength = getDeflatedLength();
long time = System.currentTimeMillis();
for (int i = 0; i < numThreads; i++) {
Flater f = new Flater(deflatedLength);
flaters.add(f);
f.start();
}
while (flaters.size() != 0) {
try {
Thread.currentThread().sleep(10);
} catch (InterruptedException ex) {
unexpected(ex);
}
}
time = System.currentTimeMillis() - time;
System.out.println("Time needed for " + numThreads
+ " threads to deflate/inflate: " + time + " ms.");
}
/** Deflates and inflates data. */
static class Flater extends Thread {
private final int deflatedLength;
private Flater(int length) {
this.deflatedLength = length;
}
/** Deflates and inflates {@code data}. */
public void run() {
if (debug) System.out.println(getName() + " starting run()");
try {
byte[] deflated = DeflateData(deflatedLength);
InflateData(deflated);
} catch (Throwable t) {
t.printStackTrace();
fail(getName() + " failed");
} finally {
flaters.remove(this);
}
}
/** Returns a copy of {@code data} in deflated form. */
private byte[] DeflateData(int length) throws Throwable {
Deflater deflater = new Deflater();
deflater.setInput(data);
deflater.finish();
byte[] out = new byte[length];
deflater.deflate(out);
return out;
}
/** Inflate a byte array, comparing it with {@code data} during
* inflation.
* @throws Exception if inflated bytes don't match {@code data}.
*/
private void InflateData(byte[] bytes) throws Throwable {
Inflater inflater = new Inflater();
inflater.setInput(bytes, 0, bytes.length);
int len = 1024 * 8;
int offset = 0;
while (inflater.getRemaining() > 0) {
byte[] buf = new byte[len];
int inflated = inflater.inflate(buf, 0, len);
validate(buf, offset, inflated);
offset += inflated;
}
}
}
//--------------------- Infrastructure ---------------------------
static volatile int passed = 0, failed = 0;
static void pass() {passed++;}
static void fail() {failed++; Thread.dumpStack();}
static void fail(String msg) {System.out.println(msg); fail();}
static void unexpected(Throwable t) {failed++; t.printStackTrace();}
static void check(boolean cond) {if (cond) pass(); else fail();}
static void equal(Object x, Object y) {
if (x == null ? y == null : x.equals(y)) pass();
else fail(x + " not equal to " + y);}
public static void main(String[] args) throws Throwable {
try {realMain(args);} catch (Throwable t) {unexpected(t);}
System.out.println("\nPassed = " + passed + " failed = " + failed);
if (failed > 0) throw new AssertionError("Some tests failed");}
}
|
[
"truongthelinh95@gmail.com"
] |
truongthelinh95@gmail.com
|
30d3d01c78c72cf91ca59c1def19d75114eb7e39
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/com/sina/weibo/sdk/api/ImageObject.java
|
249da2dfe9208ce248ff73171f70b6557f4e7548
|
[] |
no_license
|
t0HiiBwn/CoolapkRelease
|
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
|
a6a2b03e32cde0e5163016e0078391271a8d33ab
|
refs/heads/main
| 2022-07-29T23:28:35.867734
| 2021-03-26T11:41:18
| 2021-03-26T11:41:18
| 345,290,891
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,358
|
java
|
package com.sina.weibo.sdk.api;
import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;
import com.sina.weibo.sdk.utils.LogUtil;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
public class ImageObject extends BaseMediaObject {
public static final Parcelable.Creator<ImageObject> CREATOR = new Parcelable.Creator<ImageObject>() {
/* class com.sina.weibo.sdk.api.ImageObject.AnonymousClass1 */
@Override // android.os.Parcelable.Creator
public ImageObject createFromParcel(Parcel parcel) {
return new ImageObject(parcel);
}
@Override // android.os.Parcelable.Creator
public ImageObject[] newArray(int i) {
return new ImageObject[i];
}
};
private static final int DATA_SIZE = 2097152;
public byte[] imageData;
public String imagePath;
@Override // com.sina.weibo.sdk.api.BaseMediaObject, android.os.Parcelable
public int describeContents() {
return 0;
}
@Override // com.sina.weibo.sdk.api.BaseMediaObject
public int getObjType() {
return 2;
}
@Override // com.sina.weibo.sdk.api.BaseMediaObject
protected BaseMediaObject toExtraMediaObject(String str) {
return this;
}
@Override // com.sina.weibo.sdk.api.BaseMediaObject
protected String toExtraMediaString() {
return "";
}
public ImageObject() {
}
public ImageObject(Parcel parcel) {
this.imageData = parcel.createByteArray();
this.imagePath = parcel.readString();
}
/* JADX WARNING: Removed duplicated region for block: B:16:0x002c */
/* JADX WARNING: Removed duplicated region for block: B:20:0x0037 A[SYNTHETIC, Splitter:B:20:0x0037] */
/* JADX WARNING: Removed duplicated region for block: B:26:? A[RETURN, SYNTHETIC] */
public final void setImageObject(Bitmap bitmap) {
Throwable th;
Exception e;
ByteArrayOutputStream byteArrayOutputStream = null;
try {
ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream();
try {
bitmap.compress(Bitmap.CompressFormat.JPEG, 85, byteArrayOutputStream2);
this.imageData = byteArrayOutputStream2.toByteArray();
try {
byteArrayOutputStream2.close();
} catch (IOException e2) {
e2.printStackTrace();
}
} catch (Exception e3) {
e = e3;
byteArrayOutputStream = byteArrayOutputStream2;
try {
e.printStackTrace();
LogUtil.e("Weibo.ImageObject", "put thumb failed");
if (byteArrayOutputStream == null) {
}
} catch (Throwable th2) {
th = th2;
if (byteArrayOutputStream != null) {
}
throw th;
}
} catch (Throwable th3) {
th = th3;
byteArrayOutputStream = byteArrayOutputStream2;
if (byteArrayOutputStream != null) {
try {
byteArrayOutputStream.close();
} catch (IOException e4) {
e4.printStackTrace();
}
}
throw th;
}
} catch (Exception e5) {
e = e5;
e.printStackTrace();
LogUtil.e("Weibo.ImageObject", "put thumb failed");
if (byteArrayOutputStream == null) {
byteArrayOutputStream.close();
}
}
}
@Override // com.sina.weibo.sdk.api.BaseMediaObject, android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeByteArray(this.imageData);
parcel.writeString(this.imagePath);
}
@Override // com.sina.weibo.sdk.api.BaseMediaObject
public boolean checkArgs() {
byte[] bArr = this.imageData;
if (bArr == null && this.imagePath == null) {
LogUtil.e("Weibo.ImageObject", "imageData and imagePath are null");
return false;
} else if (bArr == null || bArr.length <= 2097152) {
String str = this.imagePath;
if (str != null && str.length() > 512) {
LogUtil.e("Weibo.ImageObject", "imagePath is too length");
return false;
} else if (this.imagePath == null) {
return true;
} else {
File file = new File(this.imagePath);
try {
if (file.exists() && file.length() != 0 && file.length() <= 10485760) {
return true;
}
LogUtil.e("Weibo.ImageObject", "checkArgs fail, image content is too large or not exists");
return false;
} catch (SecurityException unused) {
LogUtil.e("Weibo.ImageObject", "checkArgs fail, image content is too large or not exists");
return false;
}
}
} else {
LogUtil.e("Weibo.ImageObject", "imageData is too large");
return false;
}
}
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
4c9f43181711009f518e34b731bf91e5ea9cb877
|
c11c132b0a81cb900418ef8da5a2ff5d5ceaa8dd
|
/dao/src/main/java/com/zwl/dao/mapper/AdminUserMapper.java
|
127d9ba62e92bb6303b075f0a1872fbd4c827ba0
|
[] |
no_license
|
weiliangzhou/mall-boot
|
fbe2da33106c7fafe8024d8f26bc5e4130ae5ee5
|
24a0ad057857479d21fa3d17b065200941d544d0
|
refs/heads/master
| 2020-04-18T21:24:55.498828
| 2019-01-27T03:21:49
| 2019-01-27T03:21:49
| 167,764,203
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 340
|
java
|
package com.zwl.dao.mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
public interface AdminUserMapper {
@Select("select count(*) from ss_admin_user where user_name=#{userName} and password=#{pwd}")
Integer checkLogin(@Param("userName") String userName, @Param("pwd") String pwd);
}
|
[
"382308664@qq.com"
] |
382308664@qq.com
|
84074b2b8881befd65793a1208d1f3952531aed4
|
697e8d0a012693876df14ce2440b42d7818149ac
|
/XChange-develop/xchange-huobi/src/main/java/com/xeiam/xchange/huobi/service/polling/GenericTradeService.java
|
5a4701506b6dd0fe1cf0e3e27af40d528a1f884c
|
[
"MIT"
] |
permissive
|
tochkov/coin-eye
|
0bdadf195408d77dda220d6558ebc775330ee75c
|
f04bb141cab3a04d348b04bbf9f00351176bb8d3
|
refs/heads/master
| 2021-01-01T04:26:00.984029
| 2016-04-15T14:22:17
| 2016-04-15T14:22:17
| 56,127,186
| 2
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,614
|
java
|
package com.xeiam.xchange.huobi.service.polling;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.currency.CurrencyPair;
import com.xeiam.xchange.dto.Order;
import com.xeiam.xchange.dto.trade.LimitOrder;
import com.xeiam.xchange.dto.trade.MarketOrder;
import com.xeiam.xchange.dto.trade.OpenOrders;
import com.xeiam.xchange.dto.trade.UserTrades;
import com.xeiam.xchange.exceptions.ExchangeException;
import com.xeiam.xchange.exceptions.NotAvailableFromExchangeException;
import com.xeiam.xchange.exceptions.NotYetImplementedForExchangeException;
import com.xeiam.xchange.huobi.HuobiAdapters;
import com.xeiam.xchange.huobi.dto.trade.HuobiCancelOrderResult;
import com.xeiam.xchange.huobi.dto.trade.HuobiOrder;
import com.xeiam.xchange.huobi.dto.trade.HuobiPlaceOrderResult;
import com.xeiam.xchange.huobi.service.TradeServiceRaw;
import com.xeiam.xchange.service.BaseExchangeService;
import com.xeiam.xchange.service.polling.trade.PollingTradeService;
import com.xeiam.xchange.service.polling.trade.params.TradeHistoryParams;
public class GenericTradeService extends BaseExchangeService implements PollingTradeService {
private final Map<CurrencyPair, Integer> coinTypes;
private static final OpenOrders noOpenOrders = new OpenOrders(Collections.<LimitOrder> emptyList());
private final TradeServiceRaw tradeServiceRaw;
/**
* Constructor
*
* @param tradeServiceRaw
*/
public GenericTradeService(Exchange exchange, TradeServiceRaw tradeServiceRaw) {
super(exchange);
this.tradeServiceRaw = tradeServiceRaw;
coinTypes = new HashMap<CurrencyPair, Integer>(2);
coinTypes.put(CurrencyPair.BTC_CNY, 1);
coinTypes.put(CurrencyPair.LTC_CNY, 2);
}
public TradeServiceRaw getTradeServiceRaw() {
return this.tradeServiceRaw;
}
@Override
public OpenOrders getOpenOrders() throws IOException {
List<LimitOrder> openOrders = new ArrayList<LimitOrder>();
for (CurrencyPair currencyPair : exchange.getMetaData().getMarketMetaDataMap().keySet()) {
HuobiOrder[] orders = tradeServiceRaw.getOrders(coinTypes.get(currencyPair));
for (int i = 0; i < orders.length; i++) {
openOrders.add(HuobiAdapters.adaptOpenOrder(orders[i], currencyPair));
}
}
if (openOrders.size() <= 0) {
return noOpenOrders;
}
return new OpenOrders(openOrders);
}
@Override
public String placeMarketOrder(MarketOrder marketOrder) throws IOException {
HuobiPlaceOrderResult result = tradeServiceRaw.placeMarketOrder(marketOrder.getType(), coinTypes.get(marketOrder.getCurrencyPair()),
marketOrder.getTradableAmount());
return HuobiAdapters.adaptPlaceOrderResult(result);
}
@Override
public String placeLimitOrder(LimitOrder limitOrder) throws IOException {
HuobiPlaceOrderResult result = tradeServiceRaw.placeLimitOrder(limitOrder.getType(), coinTypes.get(limitOrder.getCurrencyPair()),
limitOrder.getLimitPrice(), limitOrder.getTradableAmount());
return HuobiAdapters.adaptPlaceOrderResult(result);
}
@Override
public boolean cancelOrder(String orderId) throws IOException {
final long id = Long.parseLong(orderId);
HuobiCancelOrderResult result = null;
for (CurrencyPair currencyPair : exchange.getMetaData().getMarketMetaDataMap().keySet()) {
result = tradeServiceRaw.cancelOrder(coinTypes.get(currencyPair), id);
if (result.getCode() == 0) {
break;
} else if (result.getCode() == 26) { // Order does not exist
continue;
} else {
break;
}
}
return result != null && "success".equals(result.getResult());
}
@Override
public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException {
throw new NotAvailableFromExchangeException();
}
@Override
public Collection<Order> getOrder(String... orderIds) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException,
IOException {
throw new NotYetImplementedForExchangeException();
}
@Override
public TradeHistoryParams createTradeHistoryParams() {
throw new NotAvailableFromExchangeException();
}
}
|
[
"philip.tochkov@gmail.com"
] |
philip.tochkov@gmail.com
|
0cf8af7bf420b7c72a04bea6ddba33a37cf5aec7
|
95865912566a21c228ba914ba980a76e8a6aded7
|
/src/FindMaxAverage.java
|
f143d49a708fe953b602a09dc3e2a176d25182cc
|
[] |
no_license
|
wangfengye/leetcode
|
3e564579f57765f2e00c26bcf32d6d388a2d34b0
|
79d69ac184a38cd8917a9885c3293e70fb9d5f41
|
refs/heads/master
| 2022-02-15T22:29:39.550616
| 2022-01-23T09:49:18
| 2022-01-23T09:49:18
| 148,587,787
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,073
|
java
|
/**
* @author maple on 2019/6/12 10:32.
* @version v1.0
* @see 1040441325@qq.com
* 643. 子数组最大平均数 I
* 给定 n 个整数,找出平均数最大且长度为 k 的连续子数组,并输出该最大平均数。
* <p>
* 示例 1:
* <p>
* 输入: [1,12,-5,-6,50,3], k = 4
* 输出: 12.75
* 解释: 最大平均数 (12-5-6+50)/4 = 51/4 = 12.75
*
* <p>
* 注意:
* <p>
* 1 <= k <= n <= 30,000。
* 所给数据范围 [-10,000,10,000]。
* <p>
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.com/problems/maximum-average-subarray-i
* 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
*/
public class FindMaxAverage {
public double findMaxAverage(int[] nums, int k) {
int sum = 0;
for (int i = 0; i < k; i++) {
sum += nums[i];
}
int max =sum;
for (int i = k; i < nums.length; i++) {
sum += (nums[i] - nums[i - k]);
if (sum>max)max=sum;
}
return ((double) max) / k;
}
}
|
[
"1040441325@qq.com"
] |
1040441325@qq.com
|
3f69650b486fd951abd631a318c480044bd0fbcf
|
e82563e120f331b87d64b0573a7ef95c6b222f19
|
/WebApplicationTesting/src/com/NewTours/NewTours_Vacations_BackToHome.java
|
64679a670fb3a2db1bd2c7db9c583ad91ce3105a
|
[] |
no_license
|
srinuqatrainer/10AMBatchScripts
|
4c55713b9944012ba960bbf30b671eb1a0bc5a8e
|
e32d44d9c6fdad0abb112a560c776f554b4b48cd
|
refs/heads/master
| 2020-04-17T10:50:30.263615
| 2019-01-19T06:49:40
| 2019-01-19T06:49:40
| 166,516,115
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 993
|
java
|
package com.NewTours;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class NewTours_Vacations_BackToHome {
public static void main(String[] args)
{
FirefoxDriver driver = new FirefoxDriver();
driver.get("http://newtours.demoaut.com");
// <a href="mercuryunderconst.php">Vacations</a>
WebElement vacations=driver.findElementByLinkText("Vacations");
vacations.click();
// <img src="/images/forms/home.gif" width="118" height="23" border="0">
// /html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr[1]/td[2]/table/tbody/tr[4]/td/a/img
// based on relative xpath -- automate "Back To Home" element
driver.findElement(By.xpath("//*[@src='/images/forms/home.gif']")).click();
// absolute xpath
//driver.findElement(By.xpath("/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr[1]/td[2]/table/tbody/tr[4]/td/a/img")).click();
}
}
|
[
"srinu.qatrainer@gmail.com"
] |
srinu.qatrainer@gmail.com
|
7b51dee7e5a88a9d33f46be080d9bed378c6552a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_999a37b95cb54c7223f2e43d8a0acb79a7931321/AccountPage/11_999a37b95cb54c7223f2e43d8a0acb79a7931321_AccountPage_s.java
|
231f6541617555ee603fddd48d67c0916711343f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,169
|
java
|
/*
* Dataverse Network - A web application to distribute, share and analyze quantitative data.
* Copyright (C) 2007
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program; if not, see http://www.gnu.org/licenses
* or write to the Free Software Foundation,Inc., 51 Franklin Street,
* Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* AccountPage.java
*
* Created on October 4, 2006, 1:28 PM
*/
package edu.harvard.iq.dvn.core.web.login;
import edu.harvard.iq.dvn.core.admin.UserServiceLocal;
import edu.harvard.iq.dvn.core.admin.VDCUser;
import edu.harvard.iq.dvn.core.web.common.StatusMessage;
import edu.harvard.iq.dvn.core.web.common.VDCBaseBean;
import javax.ejb.EJB;
import javax.faces.bean.ViewScoped;
import javax.inject.Named;
/**
* <p>Page bean that corresponds to a similarly named JSP page. This
* class contains component definitions (and initialization code) for
* all components that you have defined on this page, as well as
* lifecycle methods and event handlers where you may add behavior
* to respond to incoming events.</p>
*/
@ViewScoped
@Named("AccountPage")
public class AccountPage extends VDCBaseBean implements java.io.Serializable {
@EJB UserServiceLocal userService;
/**
* <p>Construct a new Page bean instance.</p>
*/
public AccountPage() {
}
public void init() {
super.init();
statusMessage = (StatusMessage)getRequestMap().get("statusMessage");
if (userId == null && !(getRequestMap().get("userId") == null)){
userId = new Long((String) getRequestMap().get("userId"));
}
user = userService.find(userId);
System.out.println("userId is "+ userId );
}
/**
* <p>Callback method that is called after the component tree has been
* restored, but before any event processing takes place. This method
* will <strong>only</strong> be called on a postback request that
* is processing a form submit. Customize this method to allocate
* resources that will be required in your event handlers.</p>
*/
public void preprocess() {
}
/**
* <p>Callback method that is called just before rendering takes place.
* This method will <strong>only</strong> be called for the page that
* will actually be rendered (and not, for example, on a page that
* handled a postback and then navigated to a different page). Customize
* this method to allocate resources that will be required for rendering
* this page.</p>
*/
public void prerender() {
}
/**
* <p>Callback method that is called after rendering is completed for
* this request, if <code>init()</code> was called (regardless of whether
* or not this was the page that was actually rendered). Customize this
* method to release resources acquired in the <code>init()</code>,
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
* acquired during execution of an event handler).</p>
*/
public void destroy() {
}
/**
* Holds value of property userId.
*/
private Long userId;
/**
* Getter for property userId.
* @return Value of property userId.
*/
public Long getUserId() {
return this.userId;
}
/**
* Setter for property userId.
* @param userId New value of property userId.
*/
public void setUserId(Long userId) {
this.userId = userId;
}
/**
* Holds value of property user.
*/
private VDCUser user;
/**
* Getter for property user.
* @return Value of property user.
*/
public VDCUser getUser() {
return this.user;
}
/**
* Setter for property user.
* @param user New value of property user.
*/
public void setUser(VDCUser user) {
this.user = user;
}
/**
* Holds value of property statusMessage.
*/
private StatusMessage statusMessage;
/**
* Getter for property statusMessage.
* @return Value of property statusMessage.
*/
public StatusMessage getStatusMessage() {
return this.statusMessage;
}
/**
* Setter for property statusMessage.
* @param statusMessage New value of property statusMessage.
*/
public void setStatusMessage(StatusMessage statusMessage) {
this.statusMessage = statusMessage;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4b6db28753a28a8c2735942ad26197dd12c06582
|
124df74bce796598d224c4380c60c8e95756f761
|
/com.raytheon.uf.common.util/src/com/raytheon/uf/common/util/header/WMOHeaderFinder.java
|
576b79882403209d252eb3c38fc84b9d70641bbe
|
[] |
no_license
|
Mapoet/AWIPS-Test
|
19059bbd401573950995c8cc442ddd45588e6c9f
|
43c5a7cc360b3cbec2ae94cb58594fe247253621
|
refs/heads/master
| 2020-04-17T03:35:57.762513
| 2017-02-06T17:17:58
| 2017-02-06T17:17:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,458
|
java
|
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.util.header;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Utility class for finding a WMO header
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Jul 27, 2012 mschenke Initial creation
* Sep 09, 2013 2327 rjpeter Updated to allow pattern to be used again. Added capture for DTG
* </pre>
*
* @author mschenke
* @version 1.0
*/
public class WMOHeaderFinder {
public static final Pattern WMO_PATTERN = Pattern
.compile("([A-Z]{3}[A-Z0-9](?:\\d{0,2}|[A-Z]{0,2}) [A-Z0-9 ]{4} "
+ "(\\d{6})[^\\r\\n]*)[\\r\\n]*");
/**
* Finds and returns the WMO header on the {@link File}
*
* @param file
* @return
* @throws FileNotFoundException
* @throws IOException
*/
public static String find(File file) throws FileNotFoundException,
IOException {
return find(new FileInputStream(file));
}
/**
* Finds and returns the WMO header on the data
*
* @param data
* @return
* @throws IOException
*/
public static String find(byte[] data) throws IOException {
return find(new ByteArrayInputStream(data));
}
/**
* Finds and returns the WMO header from the {@link InputStream}. Didn't
* expose this function because I wanted to ensure that it was responsible
* for closing the input stream
*
* @param in
* @return
* @throws IOException
*/
private static String find(InputStream in) throws IOException {
try {
byte[] header = new byte[100];
in.read(header);
String sHeader = new String(header, "ISO-8859-1");
Matcher wmoSearch = WMO_PATTERN.matcher(sHeader);
String messageHeader = null;
if (wmoSearch.find()) {
messageHeader = wmoSearch.group();
}
return messageHeader;
} finally {
in.close();
}
}
/**
* Returns the Date Time Group associated with a WMO Header
*
* @param header
* @return
*/
public static String findDtg(String header) {
String dtg = null;
Matcher matcher = WMO_PATTERN.matcher(header);
if (matcher.matches()) {
dtg = matcher.group(2);
}
return dtg;
}
}
|
[
"joshua.t.love@saic.com"
] |
joshua.t.love@saic.com
|
205a6007731f1c4946c2040ecd5751c4f3184988
|
3821b1f318056140e6fc947b45471841a4717e31
|
/src/main/java/org/osgl/inject/annotation/Provided.java
|
8b838a25214dc86b8fed555a481631ddadd25d2c
|
[
"Apache-2.0"
] |
permissive
|
osglworks/java-di
|
bbee451b149b06369586f41c6cbb979eef8a2a12
|
43d0249beb5b726f44393aa4d9eab837525c64bf
|
refs/heads/master
| 2021-07-21T03:58:07.726864
| 2020-06-27T02:56:03
| 2020-06-27T02:56:03
| 63,476,444
| 51
| 15
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,390
|
java
|
package org.osgl.inject.annotation;
/*-
* #%L
* OSGL Genie
* %%
* Copyright (C) 2017 OSGL (Open Source General Library)
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import java.lang.annotation.*;
/**
* Mark a method parameter value should be provided by
* {@link org.osgl.inject.Injector}.
*
* This annotation is created because {@link javax.inject.Inject}
* annotation cannot be applied on method parameters
*
* **Note** Genie does not know how to inject method parameters
* and this annotation is provided to support framework author
* on implementing method parameter injection. For example
* [ActFramework](http://www.actframework.org) favor this annotation
* on controller action handler parameter injection implementation
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface Provided {
}
|
[
"greenlaw110@gmail.com"
] |
greenlaw110@gmail.com
|
203d093cd35e95bb5e4e2beb7d2cb07fb5a73d04
|
a5de97af54055beca26563e0dd1c52d99182d8f6
|
/ig/src/main/java/gov/nist/hit/hl7/igamt/ig/binding/BindingContainer.java
|
0c96267ed95e55ad73bfad573652a92cef3cc07b
|
[] |
no_license
|
usnistgov/hl7-igamt
|
77331007562eeb03aad96d17a4b627165ef4cdc5
|
dcee50821ea1f3cc2ee9a3ea66709661760bd4f6
|
refs/heads/master
| 2023-09-02T15:38:18.271533
| 2021-11-29T17:41:35
| 2021-11-29T17:41:35
| 122,214,311
| 10
| 2
| null | 2023-07-19T16:50:00
| 2018-02-20T15:10:33
|
Java
|
UTF-8
|
Java
| false
| false
| 1,036
|
java
|
package gov.nist.hit.hl7.igamt.ig.binding;
import gov.nist.hit.hl7.igamt.common.base.domain.LocationInfo;
public class BindingContainer<T> {
private String pathId;
private LocationInfo locationInfo;
private T value;
public BindingContainer() {
}
public BindingContainer(String pathId, T value) {
this.pathId = pathId;
this.value = value;
}
public BindingContainer(String pathId, LocationInfo locationInfo, T value) {
this.pathId = pathId;
this.locationInfo = locationInfo;
this.value = value;
}
public String getPathId() {
return pathId;
}
public void setPathId(String pathId) {
this.pathId = pathId;
}
public T getValue() {
return value;
}
public void setValue(T value) {
this.value = value;
}
public LocationInfo getLocationInfo() {
return locationInfo;
}
public void setLocationInfo(LocationInfo locationInfo) {
this.locationInfo = locationInfo;
}
}
|
[
"hossam.tamri@nist.gov"
] |
hossam.tamri@nist.gov
|
3b8b0bf17feab3e2170d8f137044c6c78e4103d6
|
2748ef0824cc14d46bd51fd1f9810b850e40b9fd
|
/sample/src/bvira/components/LoginCommand.java
|
a97a9cbecf02743691fd86bf1f245f7927336242
|
[] |
no_license
|
grahambrooks/bvira
|
39ff5b0891b5055c7df3bfc09f1f15ad208340a2
|
2acd3aaf80a57309b4bfaf6bbc2f434352096d35
|
refs/heads/master
| 2020-04-18T02:10:06.279789
| 2013-12-20T12:41:22
| 2013-12-20T12:41:22
| 364,124
| 0
| 2
| null | 2013-12-20T12:41:23
| 2009-11-07T04:54:04
|
Java
|
UTF-8
|
Java
| false
| false
| 325
|
java
|
package bvira.components;
import bvira.framework.Command;
import bvira.framework.RequestContext;
import bvira.framework.ResponseContext;
public class LoginCommand implements Command {
public void execute(RequestContext requestContext, ResponseContext responseContext) {
responseContext.redirectTo("/");
}
}
|
[
"graham@grahambrooks.com"
] |
graham@grahambrooks.com
|
d043a38d9faf938abb3c4e07deb53210ae0ed017
|
f785661ab43a444c6ffd4a628d848ab1055372be
|
/app/src/main/java/com/elpatika/eventadvisor/ui/activities/DetailEventActivity.java
|
dca39608769f6e0ddfea90271ef2b6ab7ac9f475
|
[] |
no_license
|
KirillMakarov/EventAdvisor
|
8236e44f79a6f8c3e64924b85780e16f394077d0
|
074acbbf014987fa3c666f1e7d4bb4ea56d7d4b4
|
refs/heads/master
| 2021-01-18T13:20:30.500968
| 2017-02-22T07:14:30
| 2017-02-22T07:14:30
| 65,095,819
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 517
|
java
|
package com.elpatika.eventadvisor.ui.activities;
import android.support.v4.app.Fragment;
import com.elpatika.eventadvisor.model.Event;
import com.elpatika.eventadvisor.ui.fragments.DetailEventFragment;
public class DetailEventActivity extends SingleFragmentActivity {
public static final String eventKey = "eventKey";
@Override
protected Fragment createFragment() {
Event event = getIntent().getExtras().getParcelable(eventKey);
return DetailEventFragment.newInstance(event);
}
}
|
[
"kir-maka@yandex.ru"
] |
kir-maka@yandex.ru
|
e72091a0d5bc8ef6900146cab3305a22c2196277
|
9da2a3149b5668c02841191640b8c60e2597a8cf
|
/middleware/src/main/java/com/cn/thinkx/biz/user/model/UserMerchantAcct.java
|
150710fab859ef2f7311904c96d9b8d025f3c710
|
[] |
no_license
|
wang-shun/wecard-maindir
|
e1ff253978d37a54ad2dcc68c7e720678dccc439
|
438070cfb10f8a466d016858ea62c340cf4b2a46
|
refs/heads/master
| 2022-07-17T07:37:11.638365
| 2019-05-04T07:48:05
| 2019-05-04T07:48:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,379
|
java
|
package com.cn.thinkx.biz.user.model;
/**
* VIEW_USER_MERCHANT_ACCT视图
*
*/
public class UserMerchantAcct {
private String userId; // TB_USER_INF.user_id
private String userName;// TB_USER_INF.user_name
private String cardNo; // TB_CARD_INF.card
private String pinStat;
private String nopinTxnAmt;
private String accountNo; // TB_ACCOUNT_INF.account_no 主账户号
private String accBal; // TB_ACCOUNT_INF.acc_bal
private String insId; // TB_INS_INF.ins_id 卡所属机构信息
private String insCode; // TB_INS_INF.ins_code
private String insName; // TB_INS_INF.ins_name
private String mchntId; // TB_MERCHANT_INF.mchnt_id
private String mchntCode;// TB_MERCHANT_INF.mchnt_code
private String mchntName; // TB_MERCHANT_INF.mchnt_name
private String productCode; // TB_PRODUCT.product_code
private String productName; // TB_PRODUCT.product_name
private String channelCode ;//渠道标识
private String externalId ;//外部渠道ID
/**
* 是否为通卡
*/
private String remarks;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getCardNo() {
return cardNo;
}
public void setCardNo(String cardNo) {
this.cardNo = cardNo;
}
public String getAccountNo() {
return accountNo;
}
public void setAccountNo(String accountNo) {
this.accountNo = accountNo;
}
public String getAccBal() {
return accBal;
}
public void setAccBal(String accBal) {
this.accBal = accBal;
}
public String getInsId() {
return insId;
}
public void setInsId(String insId) {
this.insId = insId;
}
public String getInsCode() {
return insCode;
}
public void setInsCode(String insCode) {
this.insCode = insCode;
}
public String getInsName() {
return insName;
}
public void setInsName(String insName) {
this.insName = insName;
}
public String getMchntId() {
return mchntId;
}
public void setMchntId(String mchntId) {
this.mchntId = mchntId;
}
public String getMchntCode() {
return mchntCode;
}
public void setMchntCode(String mchntCode) {
this.mchntCode = mchntCode;
}
public String getMchntName() {
return mchntName;
}
public void setMchntName(String mchntName) {
this.mchntName = mchntName;
}
public String getProductCode() {
return productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getPinStat() {
return pinStat;
}
public void setPinStat(String pinStat) {
this.pinStat = pinStat;
}
public String getNopinTxnAmt() {
return nopinTxnAmt;
}
public void setNopinTxnAmt(String nopinTxnAmt) {
this.nopinTxnAmt = nopinTxnAmt;
}
public String getChannelCode() {
return channelCode;
}
public void setChannelCode(String channelCode) {
this.channelCode = channelCode;
}
public String getExternalId() {
return externalId;
}
public void setExternalId(String externalId) {
this.externalId = externalId;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
}
|
[
"zhu_qiuyou@ebeijia.com"
] |
zhu_qiuyou@ebeijia.com
|
9ab85ad8311714190f2ad19ad7a76bce869a0aba
|
213a04a45fc673c747911471c24c98db90fdbbe6
|
/src/pl/quider/standalone/irc/dbsession/ADatabaseSession.java
|
d6bc3f0615b383ed09804640d2f8f648b4c2c368
|
[] |
no_license
|
ikaiyu/ircbot
|
99d0908f630a55b5ee7a52597cb436aa90e7122d
|
ee13a25bc04333de0777565e4a3e54940b95d7dc
|
refs/heads/master
| 2021-01-12T15:30:38.446576
| 2016-10-23T19:01:23
| 2016-10-23T19:01:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 477
|
java
|
package pl.quider.standalone.irc.dbsession;
import org.hibernate.Session;
import javax.persistence.EntityManager;
/**
* Created by Adrian on 27.09.2016.
*/
public abstract class ADatabaseSession {
protected static ADatabaseSession instance = null;
protected static Session session;
protected ADatabaseSession(){
}
public Session getSession() {
return session;
}
public static ADatabaseSession create(){
return null;
}
}
|
[
"adrian.kozlowski@outlook.com"
] |
adrian.kozlowski@outlook.com
|
3578551f7c0b09f4c339f2bba1baf184e22e85f6
|
10b7c05a76903964e412a55f155544ba29db498f
|
/server/proj/uniapp/app/service/src/main/java/com/vassarlabs/proj/uniapp/app/config/insert/service/AppDataInsertService.java
|
8e00d9069d5f80110a0a37458012f021a052a34b
|
[] |
no_license
|
srikanth-vl/jenkins-flutter-test
|
ba678eee7c3e4dd09915d6a4d1efe5b73ec6d303
|
9835d22d88394c403c3c95955dc890826de03382
|
refs/heads/master
| 2023-01-31T04:32:06.109480
| 2020-02-25T12:09:22
| 2020-02-25T12:09:22
| 242,687,371
| 0
| 0
| null | 2023-01-07T22:18:34
| 2020-02-24T08:50:01
|
Java
|
UTF-8
|
Java
| false
| false
| 4,054
|
java
|
package com.vassarlabs.proj.uniapp.app.config.insert.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.cassandra.CassandraConnectionFailureException;
import org.springframework.data.cassandra.CassandraInternalException;
import org.springframework.data.cassandra.CassandraInvalidQueryException;
import org.springframework.data.cassandra.CassandraQuerySyntaxException;
import org.springframework.data.cassandra.CassandraReadTimeoutException;
import org.springframework.data.cassandra.CassandraTypeMismatchException;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.vassarlabs.prod.common.utils.UUIDUtils;
import com.vassarlabs.proj.uniapp.api.pojo.AppJsonData;
import com.vassarlabs.proj.uniapp.app.api.IAppDataInsertService;
import com.vassarlabs.proj.uniapp.application.dsp.pojo.ApplicationMetaData;
import com.vassarlabs.proj.uniapp.constants.RootConfigurationConstants;
import com.vassarlabs.proj.uniapp.crud.service.ApplicationMetaDataCrudService;
@Component
public class AppDataInsertService
implements IAppDataInsertService {
@Autowired private ApplicationMetaDataCrudService appDataCrudService;
private ObjectMapper mapper = new ObjectMapper();
@Override
public Map<String, Object> insertAppDataConfigService(String superAppId, int noOfApps, List<AppJsonData> appJsonData) throws JsonProcessingException,
CassandraConnectionFailureException, CassandraTypeMismatchException, CassandraReadTimeoutException, CassandraInvalidQueryException,
CassandraQuerySyntaxException, CassandraInternalException {
long insertTs = System.currentTimeMillis();
List<ApplicationMetaData> appMetaDataList = new ArrayList<>();
Map<String, Object> output = new HashMap<>();
for (AppJsonData appData : appJsonData) {
Map<String, Object> configMap = new HashMap<>();
configMap.put(RootConfigurationConstants.APPLICATION_NAME, appData.getAppName());
configMap.put(RootConfigurationConstants.ICON, appData.getIcon());
configMap.put(RootConfigurationConstants.DESCRIPTION, appData.getDesc());
configMap.put(RootConfigurationConstants.ALERT_INTERVAL, appData.getAlertInterval());
configMap.put(RootConfigurationConstants.CLIENT_EXPIRY_INTERVAL, appData.getClientExpiry());
configMap.put(RootConfigurationConstants.FORMATTER, appData.getFormatter());
if(!(appData.getAttributes() == null
|| appData.getAttributes().isEmpty()))
configMap.put(RootConfigurationConstants.ATTRIBUTES, appData.getAttributes());
configMap.put(RootConfigurationConstants.EXTERNAL_API_LIST, appData.getExternalAPIList());
configMap.put(RootConfigurationConstants.SORT_TYPE, appData.getSortType());
configMap.put(RootConfigurationConstants.ORDER, appData.getOrder());
if(appData.getGroupingAttributes() != null && !appData.getGroupingAttributes().isEmpty())
configMap.put(RootConfigurationConstants.GROUPING_ATTRIBUTES, appData.getGroupingAttributes());
if(appData.getFilteringForm() != null) {
configMap.put(RootConfigurationConstants.FILTERING_FORM, appData.getFilteringForm());
}
if(appData.getDisplayProjectIcon() != null) {
configMap.put(RootConfigurationConstants.DISPLAY_PROJECT_ICON, appData.getDisplayProjectIcon());
}
String configFile = mapper.writeValueAsString(configMap);
ApplicationMetaData appMetaData = new ApplicationMetaData();
appMetaData.setAppId(appData.getAppId());
appMetaData.setSuperAppId(UUIDUtils.toUUID(superAppId));
appMetaData.setParentAppId(appData.getParentId());
appMetaData.setInsertTs(insertTs);
appMetaData.setConfigData(configFile);
appMetaData.setVersionNumber(appData.getVersion());
appMetaDataList.add(appMetaData);
}
appDataCrudService.insertApplicationDBData(appMetaDataList);
output.put("object", appMetaDataList);
return output;
}
}
|
[
"kmunshi.97@gmail.com"
] |
kmunshi.97@gmail.com
|
23db191f793876270c10f8d9744cde8a12cdc655
|
6c8cef2fc3bf9a6acb7b8f8e55d627fa4bbafe26
|
/src/lotto/util/CheckBox.java
|
83db8617103d9ebfa48382736707900de64e8c0a
|
[] |
no_license
|
yespickmeup/lo2
|
72ca805fa2a61383f74bdf58a2ab7cd507ed3a28
|
235617d4c6be87b97329ab26cb21bd89dc48c7f7
|
refs/heads/master
| 2020-03-24T21:26:12.357078
| 2018-08-14T14:44:16
| 2018-08-14T14:44:16
| 143,032,280
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,154
|
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 lotto.util;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Guinness
*/
public class CheckBox {
public static class list {
public final boolean selected;
public final String stmt;
public list(boolean selected, String stmt) {
this.selected = selected;
this.stmt = stmt;
}
}
public static List<CheckBox.list> sample() {
List<CheckBox.list> datas = new ArrayList();
CheckBox.list t1 = new CheckBox.list(false, "The");
CheckBox.list t2 = new CheckBox.list(false, "Quick");
CheckBox.list t3 = new CheckBox.list(false, "Brown");
CheckBox.list t4 = new CheckBox.list(false, "Fox");
CheckBox.list t5 = new CheckBox.list(false, "Jump");
datas.add(t1);
datas.add(t2);
datas.add(t3);
datas.add(t4);
datas.add(t5);
return datas;
}
}
|
[
"rpascua.synsoftech@gmail.com"
] |
rpascua.synsoftech@gmail.com
|
28de2033279ddaee44fd202a71e6af4433687ada
|
3180c5a659d5bfdbf42ab07dfcc64667f738f9b3
|
/src/unk/com/zing/zalo/ui/dn.java
|
05593ad615b0ac2e869aab84c9fd89f0c8155c2c
|
[] |
no_license
|
tinyx3k/ZaloRE
|
4b4118c789310baebaa060fc8aa68131e4786ffb
|
fc8d2f7117a95aea98a68ad8d5009d74e977d107
|
refs/heads/master
| 2023-05-03T16:21:53.296959
| 2013-05-18T14:08:34
| 2013-05-18T14:08:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 543
|
java
|
package unk.com.zing.zalo.ui;
import android.media.MediaRecorder;
import android.media.MediaRecorder.OnInfoListener;
import com.zing.zalo.utils.b;
class dn
implements MediaRecorder.OnInfoListener
{
dn(ChatActivity paramChatActivity)
{
}
public void onInfo(MediaRecorder paramMediaRecorder, int paramInt1, int paramInt2)
{
b.eA("Warning: " + paramInt1 + ", " + paramInt2);
}
}
/* Location: /home/danghvu/0day/Zalo/Zalo_1.0.8_dex2jar.jar
* Qualified Name: com.zing.zalo.ui.dn
* JD-Core Version: 0.6.2
*/
|
[
"danghvu@gmail.com"
] |
danghvu@gmail.com
|
869c5df546d31ed93a6f67b4502e3f810cf96df9
|
75c8d4d130bb8588313344d15f9e33b15e813791
|
/java/l2server/gameserver/network/clientpackets/RequestDuelAnswerStart.java
|
d96342387f991817ce3c3eb81bcec6b16c89bdc5
|
[] |
no_license
|
Hl4p3x/L2T_Server
|
2fd6a94f388679100115a4fb5928a8e7630656f7
|
66134d76aa22f90933af9119c7b198c4960283d3
|
refs/heads/master
| 2022-09-11T05:59:46.310447
| 2022-08-17T19:54:58
| 2022-08-17T19:54:58
| 126,422,985
| 2
| 2
| null | 2022-08-17T19:55:00
| 2018-03-23T02:38:43
|
Java
|
UTF-8
|
Java
| false
| false
| 3,605
|
java
|
/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package l2server.gameserver.network.clientpackets;
import l2server.gameserver.instancemanager.DuelManager;
import l2server.gameserver.model.actor.instance.L2PcInstance;
import l2server.gameserver.network.SystemMessageId;
import l2server.gameserver.network.serverpackets.SystemMessage;
/**
* Format:(ch) ddd
*
* @author -Wooden-
*/
public final class RequestDuelAnswerStart extends L2GameClientPacket
{
private int _partyDuel;
@SuppressWarnings("unused")
private int _unk1;
private int _response;
@Override
protected void readImpl()
{
_partyDuel = readD();
_unk1 = readD();
_response = readD();
}
/**
*/
@Override
protected void runImpl()
{
L2PcInstance player = getClient().getActiveChar();
if (player == null)
{
return;
}
L2PcInstance requestor = player.getActiveRequester();
if (requestor == null)
{
return;
}
if (_response == 1)
{
SystemMessage msg1 = null, msg2 = null;
if (requestor.isInDuel())
{
msg1 = SystemMessage
.getSystemMessage(SystemMessageId.C1_CANNOT_DUEL_BECAUSE_C1_IS_ALREADY_ENGAGED_IN_A_DUEL);
msg1.addString(requestor.getName());
player.sendPacket(msg1);
return;
}
else if (player.isInDuel())
{
player.sendPacket(
SystemMessage.getSystemMessage(SystemMessageId.YOU_ARE_UNABLE_TO_REQUEST_A_DUEL_AT_THIS_TIME));
return;
}
if (_partyDuel == 1)
{
msg1 = SystemMessage.getSystemMessage(
SystemMessageId.YOU_HAVE_ACCEPTED_C1_CHALLENGE_TO_A_PARTY_DUEL_THE_DUEL_WILL_BEGIN_IN_A_FEW_MOMENTS);
msg1.addString(requestor.getName());
msg2 = SystemMessage.getSystemMessage(
SystemMessageId.S1_HAS_ACCEPTED_YOUR_CHALLENGE_TO_DUEL_AGAINST_THEIR_PARTY_THE_DUEL_WILL_BEGIN_IN_A_FEW_MOMENTS);
msg2.addString(player.getName());
}
else
{
msg1 = SystemMessage.getSystemMessage(
SystemMessageId.YOU_HAVE_ACCEPTED_C1_CHALLENGE_TO_A_DUEL_THE_DUEL_WILL_BEGIN_IN_A_FEW_MOMENTS);
msg1.addString(requestor.getName());
msg2 = SystemMessage.getSystemMessage(
SystemMessageId.C1_HAS_ACCEPTED_YOUR_CHALLENGE_TO_A_DUEL_THE_DUEL_WILL_BEGIN_IN_A_FEW_MOMENTS);
msg2.addString(player.getName());
}
player.sendPacket(msg1);
requestor.sendPacket(msg2);
DuelManager.getInstance().addDuel(requestor, player, _partyDuel);
}
else if (_response == -1)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_IS_SET_TO_REFUSE_DUEL_REQUEST);
sm.addPcName(player);
requestor.sendPacket(sm);
}
else
{
SystemMessage msg = null;
if (_partyDuel == 1)
{
msg = SystemMessage
.getSystemMessage(SystemMessageId.THE_OPPOSING_PARTY_HAS_DECLINED_YOUR_CHALLENGE_TO_A_DUEL);
}
else
{
msg = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_DECLINED_YOUR_CHALLENGE_TO_A_DUEL);
msg.addPcName(player);
}
requestor.sendPacket(msg);
}
player.setActiveRequester(null);
requestor.onTransactionResponse();
}
}
|
[
"pere@pcasafont.net"
] |
pere@pcasafont.net
|
820f9faf80add3d406efe616b99cd7cfb7c2d7ec
|
350a890374fc3e7b45a52ae71e1d106bc7e3bc43
|
/persistence/src/main/java/org/testinfected/petstore/db/support/Record.java
|
b99ba032385a35a4ce625e21770ebfa54c0164da
|
[] |
no_license
|
PSD-RTS/simple-petstore-avengers
|
070fa65ae7f3f10756c5172d5c7071e2c0f5a128
|
39dee77e003f74feb9ec52dc04993685a2340511
|
refs/heads/master
| 2018-12-29T20:35:05.235280
| 2014-05-07T14:05:36
| 2014-05-07T14:05:36
| 19,356,788
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 362
|
java
|
package org.testinfected.petstore.db.support;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public interface Record<T> {
T hydrate(ResultSet rs) throws SQLException;
void dehydrate(PreparedStatement st, T entity) throws SQLException;
void handleKeys(ResultSet keys, T entity) throws SQLException;
}
|
[
"clapointe@pyxis-tech.com"
] |
clapointe@pyxis-tech.com
|
76bd069a7f34c688909b4df2f264372058b0a0fe
|
f55c7b6e9b0b7904b26bb6dedbfca066e4b69ec9
|
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201502/o/DisplayAdSpec.java
|
bec04c547381d8cfc77b711c47155511aaf24de8
|
[
"Apache-2.0"
] |
permissive
|
startuprockstar/googleads-java-lib
|
774f1672542be3589b4baaba5fc52f266200b36d
|
0c7253507172b7d83fe5ede4ac7ee8183214a3a0
|
refs/heads/master
| 2021-01-21T03:29:23.323814
| 2015-10-28T18:14:08
| 2015-10-28T18:14:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,441
|
java
|
package com.google.api.ads.adwords.jaxws.v201502.o;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Placement request/response object which provides details about display
* ad types, options, and other available configuration variables.
*
*
* <p>Java class for DisplayAdSpec complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="DisplayAdSpec">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="displayTypes" type="{https://adwords.google.com/api/adwords/o/v201502}DisplayType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="activationOptions" type="{https://adwords.google.com/api/adwords/o/v201502}DisplayAdSpec.ActivationOption" maxOccurs="unbounded" minOccurs="0"/>
* <element name="adSizeSpecs" type="{https://adwords.google.com/api/adwords/o/v201502}DisplayAdSpec.AdSizeSpec" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DisplayAdSpec", propOrder = {
"displayTypes",
"activationOptions",
"adSizeSpecs"
})
public class DisplayAdSpec {
protected List<DisplayType> displayTypes;
@XmlSchemaType(name = "string")
protected List<DisplayAdSpecActivationOption> activationOptions;
protected List<DisplayAdSpecAdSizeSpec> adSizeSpecs;
/**
* Gets the value of the displayTypes property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the displayTypes property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDisplayTypes().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DisplayType }
*
*
*/
public List<DisplayType> getDisplayTypes() {
if (displayTypes == null) {
displayTypes = new ArrayList<DisplayType>();
}
return this.displayTypes;
}
/**
* Gets the value of the activationOptions property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the activationOptions property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getActivationOptions().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DisplayAdSpecActivationOption }
*
*
*/
public List<DisplayAdSpecActivationOption> getActivationOptions() {
if (activationOptions == null) {
activationOptions = new ArrayList<DisplayAdSpecActivationOption>();
}
return this.activationOptions;
}
/**
* Gets the value of the adSizeSpecs property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the adSizeSpecs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAdSizeSpecs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DisplayAdSpecAdSizeSpec }
*
*
*/
public List<DisplayAdSpecAdSizeSpec> getAdSizeSpecs() {
if (adSizeSpecs == null) {
adSizeSpecs = new ArrayList<DisplayAdSpecAdSizeSpec>();
}
return this.adSizeSpecs;
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
65fd305bea6ffe072b87d5cd33ae95ef29445750
|
7d8c64f1f09e13043f14a5a235c4e61272a77506
|
/sources/org/jaxen/SimpleVariableContext.java
|
a685d5f2aa54c5e27474f5d1aafc304938fd3be3
|
[] |
no_license
|
AlexKohanim/QuickReturn
|
168530c2ef4035faff817a901f1384ed8a554f73
|
1ce10de7020951d49f80b66615fe3537887cea80
|
refs/heads/master
| 2022-06-25T19:00:59.818761
| 2020-05-08T20:11:14
| 2020-05-08T20:11:14
| 262,418,565
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 985
|
java
|
package org.jaxen;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
public class SimpleVariableContext implements VariableContext, Serializable {
private static final long serialVersionUID = 961322093794516518L;
private Map variables = new HashMap();
public void setVariableValue(String namespaceURI, String localName, Object value) {
this.variables.put(new QualifiedName(namespaceURI, localName), value);
}
public void setVariableValue(String localName, Object value) {
this.variables.put(new QualifiedName(null, localName), value);
}
public Object getVariableValue(String namespaceURI, String prefix, String localName) throws UnresolvableException {
QualifiedName key = new QualifiedName(namespaceURI, localName);
if (this.variables.containsKey(key)) {
return this.variables.get(key);
}
throw new UnresolvableException("Variable " + key.getClarkForm());
}
}
|
[
"akohanim@sfsu.edu"
] |
akohanim@sfsu.edu
|
0fe7de170b26a501de23fd8ece8ce5b34219f145
|
28a4a9562e0b0066fc7fe1714fb58f4a795e4b08
|
/app/src/main/java/com/zzh/mt/mode/UserData.java
|
2e319557e4c64f5648b0e9fbe712071a5575c3ab
|
[] |
no_license
|
DavyJohn/MT
|
a5a29e8b98b8610b94c907d7023e33a02f61fd8a
|
e39a3eec5a451a7f060ac85bf7b19723d5984767
|
refs/heads/master
| 2019-07-10T06:04:20.033531
| 2018-02-06T09:50:54
| 2018-02-06T09:50:54
| 91,071,429
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,555
|
java
|
package com.zzh.mt.mode;
/**
* Created by 腾翔信息 on 2017/5/31.
*/
public class UserData {
private String message;
private String code;
private UserInfo userInfo;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public UserInfo getUserInfo() {
return userInfo;
}
public void setUserInfo(UserInfo userInfo) {
this.userInfo = userInfo;
}
public class UserInfo{
private String id;
private String englishName;
private String chineseName;
private String nickName;
private String sex;
private String initial;
private String birthday;
private String brandName;
private String departmentId;
private String companyEmail;
private String state;
private String headUrl;
private String password;
private String entryYear;
private String creator;
private String createTime;
private String updater;
private String updateTime;
private String haveClassHoursElective;
private String haveClassHoursRequired;
private String validataCode;
private String registerDate;
private DepartmentData department;
public String getChineseName() {
return chineseName;
}
public void setChineseName(String chineseName) {
this.chineseName = chineseName;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getEnglishName() {
return englishName;
}
public void setEnglishName(String englishName) {
this.englishName = englishName;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getInitial() {
return initial;
}
public void setInitial(String initial) {
this.initial = initial;
}
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public String getBrandName() {
return brandName;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
public String getDepartmentId() {
return departmentId;
}
public void setDepartmentId(String departmentId) {
this.departmentId = departmentId;
}
public String getCompanyEmail() {
return companyEmail;
}
public void setCompanyEmail(String companyEmail) {
this.companyEmail = companyEmail;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getHeadUrl() {
return headUrl;
}
public void setHeadUrl(String headUrl) {
this.headUrl = headUrl;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getEntryYear() {
return entryYear;
}
public void setEntryYear(String entryYear) {
this.entryYear = entryYear;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdater() {
return updater;
}
public void setUpdater(String updater) {
this.updater = updater;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getHaveClassHoursElective() {
return haveClassHoursElective;
}
public void setHaveClassHoursElective(String haveClassHoursElective) {
this.haveClassHoursElective = haveClassHoursElective;
}
public String getHaveClassHoursRequired() {
return haveClassHoursRequired;
}
public void setHaveClassHoursRequired(String haveClassHoursRequired) {
this.haveClassHoursRequired = haveClassHoursRequired;
}
public String getValidataCode() {
return validataCode;
}
public void setValidataCode(String validataCode) {
this.validataCode = validataCode;
}
public String getRegisterDate() {
return registerDate;
}
public void setRegisterDate(String registerDate) {
this.registerDate = registerDate;
}
public DepartmentData getDepartment() {
return department;
}
public void setDepartment(DepartmentData department) {
this.department = department;
}
}
public class DepartmentData{
private String id;
private String departmentName;
private String code;
private String isDisabled;
private String creator;
private String updater;
private String create_time;
private String update_time;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getIsDisabled() {
return isDisabled;
}
public void setIsDisabled(String isDisabled) {
this.isDisabled = isDisabled;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getUpdater() {
return updater;
}
public void setUpdater(String updater) {
this.updater = updater;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
}
}
|
[
"1139099003@qq.com"
] |
1139099003@qq.com
|
daf948324ecd23e8645bbb8e143abc0f58449aa9
|
58991a5b4a0529b5c1e64f79130c9975f7690ed8
|
/honghuroad-api/src/main/java/cn/honghuroad/entity/model/GoodsOfferPurchase.java
|
9e3bdba2c6c4046f25a6977532865f731ae0b610
|
[] |
no_license
|
Mr-Hao666/hivemedia
|
03f84bbe765794e122ab1f1cd9f3971c18924b21
|
1adfaa6cc0b63cbe1d606aea38db36d5caa3a49f
|
refs/heads/master
| 2022-07-19T21:20:53.384386
| 2021-06-09T06:16:20
| 2021-06-09T06:16:20
| 207,716,284
| 0
| 0
| null | 2022-07-06T20:49:21
| 2019-09-11T03:36:49
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 440
|
java
|
package cn.honghuroad.entity.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* Created by chenzq
* Date: 2019/1/23 下午9:25
**/
@Data
public class GoodsOfferPurchase implements Serializable {
@ApiModelProperty("最高求购价")
private BigDecimal amountTotal;
@ApiModelProperty("求购订单ID")
private Integer buyOrderId;
}
|
[
"102126854@qq.com"
] |
102126854@qq.com
|
948d2cb973e44f3ed1a744ee4c957abab30ce49e
|
b56ca6c64c3d22a8f77c8a708ca7af991ce98eb5
|
/src/test/java/nl/jqno/equalsverifier/testhelpers/PrefabValuesFactory.java
|
0c083a8948147f346ab27adf8a59da33277ac7c9
|
[
"Apache-2.0"
] |
permissive
|
mudassirshahzad/equalsverifier
|
d9e93e8d2b37bff88614f752cec9040aa702f705
|
a7a4a4975b8f57195ea35e735d345da2444f7b4c
|
refs/heads/master
| 2020-03-26T11:18:24.204291
| 2018-08-05T14:43:29
| 2018-08-05T14:43:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 796
|
java
|
package nl.jqno.equalsverifier.testhelpers;
import nl.jqno.equalsverifier.internal.prefabvalues.PrefabValues;
public final class PrefabValuesFactory {
private PrefabValuesFactory() {}
public static PrefabValues withPrimitiveFactories() {
PrefabValues result = new PrefabValues();
result.addFactory(boolean.class, true, false, true);
result.addFactory(byte.class, (byte)1, (byte)2, (byte)1);
result.addFactory(char.class, 'a', 'b', 'a');
result.addFactory(double.class, 0.5D, 1.0D, 0.5D);
result.addFactory(float.class, 0.5F, 1.0F, 0.5F);
result.addFactory(int.class, 1, 2, 1);
result.addFactory(long.class, 1L, 2L, 1L);
result.addFactory(short.class, (short)1, (short)2, (short)1);
return result;
}
}
|
[
"jan.ouwens@gmail.com"
] |
jan.ouwens@gmail.com
|
e1c235f500d5a0666abd38d6d24aada7f17a645f
|
40fd7eee9b9666e92359f224587db7ff09b3e6af
|
/src/main/java/com/blogspot/ofarukkurt/primeadminbsb/converters/PhonenumbertypeConverter.java
|
228c810bb0f266d3a86efebe3502f58be7cd01c5
|
[] |
no_license
|
kurtomerfaruk/PrimeFacesAdminBSB
|
d7d773b705d7816442d3245e344d946a49bff505
|
cde5519d67d1a9db9e5d90d3e2b3a7035f5c789c
|
refs/heads/master
| 2021-01-09T05:46:21.088183
| 2018-06-12T20:45:57
| 2018-06-12T20:45:57
| 80,828,417
| 2
| 8
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,008
|
java
|
package com.blogspot.ofarukkurt.primeadminbsb.converters;
import com.blogspot.ofarukkurt.primeadminbsb.models.Phonenumbertype;
import com.blogspot.ofarukkurt.primeadminbsb.services.PhonenumbertypeFacade;
import com.blogspot.ofarukkurt.primeadminbsb.controllers.util.JsfUtil;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
@FacesConverter(value = "phonenumbertypeConverter")
public class PhonenumbertypeConverter implements Converter {
@Inject
private PhonenumbertypeFacade ejbFacade;
@Override
public Object getAsObject(FacesContext facesContext, UIComponent component, String value) {
if (value == null || value.length() == 0 || JsfUtil.isDummySelectItem(component, value)) {
return null;
}
return this.ejbFacade.find(getKey(value));
}
java.lang.Integer getKey(String value) {
java.lang.Integer key;
key = Integer.valueOf(value);
return key;
}
String getStringKey(java.lang.Integer value) {
StringBuffer sb = new StringBuffer();
sb.append(value);
return sb.toString();
}
@Override
public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
if (object == null ||
(object instanceof String && ((String) object).length() == 0)) {
return null;
}
if (object instanceof Phonenumbertype) {
Phonenumbertype o = (Phonenumbertype) object;
return getStringKey(o.getPhoneNumberTypeID());
} else {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "object {0} is of type {1}; expected type: {2}", new Object[]{object, object.getClass().getName(), Phonenumbertype.class.getName()});
return null;
}
}
}
|
[
"kurtomerfaruk@gmail.com"
] |
kurtomerfaruk@gmail.com
|
be1a0e8f2ca0e0195258bf70bb2dcc84556227b5
|
de7bf7a09a7b29524e49fa3aa4003baaa72af2a5
|
/app/src/main/java/com/hxd/gobus/utils/ContactUtils.java
|
37e323469dbd33f90a02bb1008be190cc9b34c8b
|
[] |
no_license
|
bryanrady/GoBus
|
558ed078ce0e0c4ff500a9d770664ef8282d88b0
|
39ee5ef2d860d9e32f5bbccf0d9b2a377877e1b0
|
refs/heads/master
| 2022-08-19T05:09:46.998476
| 2020-05-29T08:07:14
| 2020-05-29T08:07:14
| 231,508,521
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,709
|
java
|
package com.hxd.gobus.utils;
import android.os.AsyncTask;
import com.hxd.gobus.BusApp;
import com.hxd.gobus.bean.Contact;
import com.hxd.gobus.bean.list.ContactList;
import com.hxd.gobus.config.BaseConfig;
import com.hxd.gobus.config.Constant;
import com.hxd.gobus.core.http.params.HttpParamsManager;
import com.hxd.gobus.core.http.ObserverImpl;
import com.hxd.gobus.core.http.rx.RxRetrofitClient;
import com.hxd.gobus.greendao.ContactDao;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
/**
* https://www.cnblogs.com/tonycheng93/p/6295724.html
* https://www.jianshu.com/p/8b4fa39cf3b0
* Created by Administrator on 2019/7/3.
*/
public class ContactUtils {
private static final String TAG = "ContactInfoModel";
private PinyinUtil mPinyinUtil;
private CharacterParser mParser;
private OnContactsListListener mListener;
private List<Contact> mList;
private boolean mIsInRequesting = false;
private ContactUtils(){
mPinyinUtil = new PinyinUtil();
mParser = CharacterParser.getInstance();
if (mList == null){
mList = new ArrayList<>();
}
}
public static ContactUtils getInstance(){
return ContactUtils.Holder.instance;
}
private static final class Holder{
private static ContactUtils instance = new ContactUtils();
}
public void loadContactList(){
if(mList != null && mList.size()>0) {
if(mListener != null){
mListener.onContactComplete(mList);
}
}else{
mList = queryContactListFromDatabase();
if(mList != null && mList.size()>0){
if(mListener != null){
mListener.onContactComplete(mList);
}
}else{
queryContactListFromServer();
}
}
long tempTime = System.currentTimeMillis();
if(canRefresh(tempTime) || mList.size() == 0){
queryContactListFromServer();
}
queryContactListFromServer();
}
public Contact queryContactFromDatabase(String workNo){
try {
Contact contact = BusApp.getDaoSession().getContactDao()
.queryBuilder()
.where(ContactDao.Properties.WorkNo.eq(workNo)).build().unique();
return contact;
}catch (Exception e){
LogUtils.d(TAG,"contact query failed!");
}
return null;
}
/**
* 从数据库中查询通讯录列表人员
* @return
*/
private List<Contact> queryContactListFromDatabase(){
try {
List<Contact> contactInfoList = BusApp.getDaoSession().getContactDao().queryBuilder().list();
return contactInfoList;
}catch (Exception e){
LogUtils.d(TAG,"contact list query failed!");
}
return null;
}
/**
* 从网络中查找通讯录列表
* @return
*/
private void queryContactListFromServer(){
if(mIsInRequesting){
return;
}
mIsInRequesting = true;
RxRetrofitClient
.create()
.url(Constant.CONTACTS_URL)
.raw(HttpParamsManager.getBaseParams(new JSONObject()).toString())
.build()
.postRaw()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new ObserverImpl() {
@Override
protected void handleResponse(String response) {
ContactList jsonToObject = GsonUtils.jsonToObject(response, ContactList.class);
List<Contact> contactList = jsonToObject.getJsonArray();
mList = getSortContactList(contactList);
if(mList != null && mListener != null){
mListener.onContactComplete(mList);
}
}
@Override
protected void handleError(String errorMsg) {
if(mListener != null){
mListener.onContactFailure(errorMsg);
}
mIsInRequesting = false;
}
@Override
public void onSubscribe(Disposable d) {
}
@Override
public void onComplete() {
if(mList != null && mList.size()>0){
updateRefreshTime(System.currentTimeMillis());
asyncInsertData(mList);
}
mIsInRequesting = false;
}
});
}
private List<Contact> getSortContactList(List<Contact> list) {
for (int i = 0; i < list.size(); i++) {
String namePinyin = mParser.getSelling(list.get(i).getName());
list.get(i).setNamePinyin(namePinyin);
if(list.get(i).getUnitName() != null){
String deptPinyin = mParser.getSelling(list.get(i).getUnitName());
list.get(i).setDeptPinyin(deptPinyin);
}
String sortNameString = namePinyin.substring(0, 1).toUpperCase();
if (sortNameString.matches("[A-Z]")) {
list.get(i).setFirstLetter(sortNameString.toUpperCase());
} else {
list.get(i).setFirstLetter("#");
}
}
Collections.sort(list, mPinyinUtil);
return list;
}
/**
* 添加进数据库
* @param list
*/
private static void insertContactList(List<Contact> list){
try {
if (list != null && list.size() > 0){
for (Contact contact : list){
BusApp.getDaoSession().getContactDao().insert(contact);
}
}
}catch (Exception e){
LogUtils.d(TAG,"contact insert failed!");
}
}
private static class InsertAsyncTask extends AsyncTask<List<Contact>, Integer, Void> {
@Override
protected Void doInBackground(List<Contact>[] lists) {
if(lists[0] != null){
deleteContactsDatabase();
insertContactList(lists[0]);
}
return null;
}
}
private void asyncInsertData(List<Contact> list){
List<Contact>[] lists = new List[1];
lists[0] = list;
new InsertAsyncTask().execute(lists[0]);
}
private static void deleteContactsDatabase(){
if(BusApp.getDaoSession().getContactDao() != null){
BusApp.getDaoSession().getContactDao().deleteAll();
}
}
private void updateRefreshTime(long time){
SharePreferenceManager.setLastRefreshTime(time);
}
private long queryRefreshTime(){
return SharePreferenceManager.getLastRefreshTime();
}
private boolean canRefresh(long currentTime){
long time = queryRefreshTime();
if((currentTime - time) > BaseConfig.CONTACTS_UPDATE_TIME) {
return true;
}else{
return false;
}
}
public void setOnContactsListListener(OnContactsListListener listener){
mListener = listener;
}
public interface OnContactsListListener{
void onContactComplete(List<Contact> list);
void onContactFailure(String error);
}
}
|
[
"bryanrady@163.com"
] |
bryanrady@163.com
|
ebb3e881bc01585c9861940856cd9044bd191b53
|
58f1cbf49e3b891ff61b05c4247a246cf24e90b3
|
/src/android/app/src/main/java/tw/sspr/seoulsafepublicrestroom/Activity/NFCAuthenticateActivity.java
|
098f745798063d8b2dff765ba927cc37f316cdad
|
[] |
no_license
|
MobileSeoul/2018seoul-35
|
da864c2e98d14e2409a1874360f65df9c6bea115
|
05827f9113ca9467f995bd5f5e95641d3187bf88
|
refs/heads/master
| 2020-04-11T22:07:44.180956
| 2018-12-17T15:06:00
| 2018-12-17T15:06:00
| 162,126,089
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,477
|
java
|
package tw.sspr.seoulsafepublicrestroom.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import tw.sspr.seoulsafepublicrestroom.R;
public class NFCAuthenticateActivity extends AppCompatActivity {
private EditText codeInput;
private Button submit;
private Context mContext;
final static private String SECRET_CODE = "1234";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_nfcauthenticate);
mContext = this;
initView();
}
public void initView(){
codeInput = findViewById(R.id.code_input);
submit = findViewById(R.id.submit);
submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String input = codeInput.getText().toString();
if(input.equals(SECRET_CODE)){
Intent i = new Intent(mContext, NFCTaggingActivity.class);
startActivity(i);
finish();
}else{
Toast.makeText(getApplicationContext(),"잘못된 코드",Toast.LENGTH_SHORT).show();
}
}
});
}
}
|
[
"ianyrchoi@gmail.com"
] |
ianyrchoi@gmail.com
|
381f2bd2c5618ef0f4a9ec8e3e1d23a50e645356
|
b2fa66ec49f50b4bb92fee6494479238c8b46876
|
/src/main/java/fi/riista/feature/permit/application/conflict/HarvestPermitApplicationConflictBatchRepository.java
|
a004dc29b0ac10896daf35a65d03b04e841331df
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
suomenriistakeskus/oma-riista-web
|
f007a9dc663317956ae672ece96581f1704f0e85
|
f3550bce98706dfe636232fb2765a44fa33f78ca
|
refs/heads/master
| 2023-04-27T12:07:50.433720
| 2023-04-25T11:31:05
| 2023-04-25T11:31:05
| 77,215,968
| 16
| 4
|
MIT
| 2023-04-25T11:31:06
| 2016-12-23T09:49:44
|
Java
|
UTF-8
|
Java
| false
| false
| 456
|
java
|
package fi.riista.feature.permit.application.conflict;
import fi.riista.feature.common.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;
public interface HarvestPermitApplicationConflictBatchRepository extends BaseRepository<HarvestPermitApplicationConflictBatch, Long> {
@Query("SELECT MAX(b.id) FROM HarvestPermitApplicationConflictBatch b WHERE b.completedAt IS NOT NULL")
Long findLatestCompletedBatchId();
}
|
[
"kyosti.herrala@vincit.fi"
] |
kyosti.herrala@vincit.fi
|
1e1a82239b0a3d2aaea229d48315604ee288b5b5
|
fa51687f6aa32d57a9f5f4efc6dcfda2806f244d
|
/jdk8-src/src/main/java/com/sun/corba/se/impl/encoding/BufferManagerReadGrow.java
|
e1b9018226566e3b0eaa447d8c8d3a308e424345
|
[] |
no_license
|
yida-lxw/jdk8
|
44bad6ccd2d81099bea11433c8f2a0fc2e589eaa
|
9f69e5f33eb5ab32e385301b210db1e49e919aac
|
refs/heads/master
| 2022-12-29T23:56:32.001512
| 2020-04-27T04:14:10
| 2020-04-27T04:14:10
| 258,988,898
| 0
| 1
| null | 2020-10-13T21:32:05
| 2020-04-26T09:21:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,392
|
java
|
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.encoding;
import com.sun.corba.se.impl.logging.ORBUtilSystemException;
import com.sun.corba.se.impl.protocol.giopmsgheaders.FragmentMessage;
import com.sun.corba.se.impl.protocol.giopmsgheaders.Message;
import com.sun.corba.se.spi.logging.CORBALogDomains;
import com.sun.corba.se.spi.orb.ORB;
import java.nio.ByteBuffer;
public class BufferManagerReadGrow
implements BufferManagerRead, MarkAndResetHandler {
// REVISIT - This should go in an abstract class called
// BufferManagerReadBase which should implement
// BufferManagerRead. Then, this class should extend
// BufferManagerReadBase.
private ORB orb;
private ORBUtilSystemException wrapper;
BufferManagerReadGrow(ORB orb) {
this.orb = orb;
this.wrapper = ORBUtilSystemException.get(orb,
CORBALogDomains.RPC_ENCODING);
}
public void processFragment(ByteBuffer byteBuffer, FragmentMessage header) {
// REVISIT - should we consider throwing an exception similar to what's
// done for underflow()???
}
public void init(Message msg) {
}
public ByteBufferWithInfo underflow(ByteBufferWithInfo bbwi) {
throw wrapper.unexpectedEof();
}
public void cancelProcessing(int requestId) {
}
// Mark and reset handler -------------------------
private Object streamMemento;
private RestorableInputStream inputStream;
private boolean markEngaged = false;
public MarkAndResetHandler getMarkAndResetHandler() {
return this;
}
public void mark(RestorableInputStream is) {
markEngaged = true;
inputStream = is;
streamMemento = inputStream.createStreamMemento();
}
// This will never happen
public void fragmentationOccured(ByteBufferWithInfo newFragment) {
}
public void reset() {
if (!markEngaged)
return;
markEngaged = false;
inputStream.restoreInternalState(streamMemento);
streamMemento = null;
}
// Nothing to close and cleanup.
public void close(ByteBufferWithInfo bbwi) {
}
}
|
[
"yida@caibeike.com"
] |
yida@caibeike.com
|
c0de0eb0a196aae5b5da9f550feb0e4b6e01d138
|
7ce61f8f7175542e4059506351669b048dfe7307
|
/app/src/main/java/com/tenone/gamebox/view/adapter/RecycleCommentsAdapter.java
|
61fc41b7abd33c9b8fb58ba580645837c50d14dd
|
[] |
no_license
|
chanphy/GameBox
|
5f894124c529658ef0b056ac1e179e9f7a9bcc3b
|
81b8b0d234d177fd63b8918e4e70baef205041dd
|
refs/heads/master
| 2020-05-18T04:54:21.242966
| 2018-10-09T03:01:55
| 2018-10-09T03:01:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,909
|
java
|
package com.tenone.gamebox.view.adapter;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.text.Html;
import android.text.Spanned;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.john.superadapter.SuperAdapter;
import com.john.superadapter.SuperViewHolder;
import com.tenone.gamebox.R;
import com.tenone.gamebox.mode.listener.OnDynamicCommentItemClickListener;
import com.tenone.gamebox.mode.mode.DriverModel;
import com.tenone.gamebox.mode.mode.DynamicCommentModel;
import com.tenone.gamebox.view.custom.CircleImageView;
import com.tenone.gamebox.view.utils.SpUtil;
import com.tenone.gamebox.view.utils.image.ImageLoadUtils;
import java.util.List;
public class RecycleCommentsAdapter extends SuperAdapter<DynamicCommentModel> {
private List<DynamicCommentModel> models;
private Context mContext;
private OnDynamicCommentItemClickListener onDynamicCommentItemClickListener;
public RecycleCommentsAdapter(List<DynamicCommentModel> list, Context cxt) {
super( cxt, list, R.layout.item_dynamic_comment );
this.mContext = cxt;
this.models = list;
}
@Override
public void onBind(SuperViewHolder holder, int viewType, int layoutPosition, DynamicCommentModel item) {
if (holder == null){
return;
}
final DynamicCommentModel model = models.get( layoutPosition );
CircleImageView headerView;
ImageView vipIv, topIv;
TextView nameTv, commentIv, contentTv, timeTv, praiseIv, deleteTv;
headerView = holder.findViewById( R.id.id_item_dynamic_comment_header );
vipIv = holder.findViewById( R.id.id_item_dynamic_comment_vipImg );
nameTv = holder.findViewById( R.id.id_item_dynamic_comment_name );
deleteTv = holder.findViewById( R.id.id_item_dynamic_comment_delete );
commentIv = holder.findViewById( R.id.id_item_dynamic_comment_comment );
praiseIv = holder.findViewById( R.id.id_item_dynamic_comment_praise );
contentTv = holder.findViewById( R.id.id_item_dynamic_comment_content );
timeTv = holder.findViewById( R.id.id_item_dynamic_comment_time );
topIv = holder.findViewById( R.id.id_item_dynamic_comment_top );
if (null != model) {
DriverModel driverModel = model.getDriverModel();
if (driverModel != null) {
ImageLoadUtils.loadNormalImg( headerView, mContext, driverModel.getHeader() );
vipIv.setVisibility( driverModel.isVip() ? View.VISIBLE : View.GONE );
nameTv.setText( driverModel.getNick() );
String uid = SpUtil.getUserId();
String id = driverModel.getDriverId();
if (!TextUtils.isEmpty( uid ) && !"0".equals( uid ) && uid.equals( id )) {
deleteTv.setVisibility( View.VISIBLE );
deleteTv.setOnClickListener( v -> {
if (null != onDynamicCommentItemClickListener) {
onDynamicCommentItemClickListener.onDeleteClick( model );
}
} );
commentIv.setVisibility( View.GONE );
} else {
deleteTv.setVisibility( View.GONE );
commentIv.setVisibility( View.VISIBLE );
}
}
if (!TextUtils.isEmpty( model.getToUserId() ) && !"0".equals( model.getToUserId() )) {
contentTv.setText(
getString( R.string.dynamic_comment, model.getToUserNick(), model.getCommentContent() ) );
} else {
contentTv.setText( model.getCommentContent() );
}
timeTv.setText( model.getCommentTime() );
topIv.setVisibility( model.getOrder() == 1 ? View.VISIBLE : View.GONE );
int type = model.getLikeTy();
Drawable drawable = mContext.getResources().getDrawable( R.drawable.selector_good );
drawable.setBounds( 0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight() );
praiseIv.setCompoundDrawables( drawable, null, null, null );
praiseIv.setText( model.getCommentLikes() );
praiseIv.setSelected( 1 == type );
praiseIv.setOnClickListener( v -> {
if (null != onDynamicCommentItemClickListener) {
onDynamicCommentItemClickListener.onPraiseClick( model );
}
} );
commentIv.setOnClickListener( v -> {
if (null != onDynamicCommentItemClickListener) {
onDynamicCommentItemClickListener.onCommentClick( model );
}
} );
headerView.setOnClickListener( v -> {
if (null != onDynamicCommentItemClickListener) {
onDynamicCommentItemClickListener.onHeaderClick( model );
}
} );
}
}
@Override
public int getItemCount() {
return models.size();
}
public void setOnDynamicCommentItemClickListener(OnDynamicCommentItemClickListener
onDynamicCommentItemClickListener) {
this.onDynamicCommentItemClickListener = onDynamicCommentItemClickListener;
}
@SuppressWarnings("deprecation")
private Spanned getString(int id, String str, String str2) {
return Html.fromHtml( mContext.getResources().getString( id,
str, str2 ) );
}
}
|
[
"871878482@qq.com"
] |
871878482@qq.com
|
c7cd0e5f6244a71d9a7d51b6d4e1a89173da0d89
|
1601a19aefd1118b98c878c1e2f1f4ec26fe72dc
|
/app/src/main/java/com/casc/pmtools/MyVars.java
|
059272a896990e9ffa028cba9174ad6ce35c17c0
|
[] |
no_license
|
yanghang8612/PMTools
|
cbdfac2f5d867b9fa4522537f9485dac3d1c5043
|
0289d574779e630ef0bfb2d4861ac0d598c7737a
|
refs/heads/master
| 2020-04-10T04:22:15.282127
| 2018-12-08T06:41:32
| 2018-12-08T06:41:32
| 160,796,367
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 362
|
java
|
package com.casc.pmtools;
import com.casc.pmtools.bean.Config;
import com.casc.pmtools.bean.Task;
import com.casc.pmtools.bean.User;
import java.util.concurrent.ScheduledExecutorService;
public class MyVars {
public static User user;
public static Config config;
public static ScheduledExecutorService executor;
public static Task task;
}
|
[
"yanghang8612@163.com"
] |
yanghang8612@163.com
|
df5d1213619f33847c1ae382d1e724e886e25b62
|
e2d1ad7bfd684f4d49469130e166efd6f47b59af
|
/design_pattern/src/main/java/com/study/book/strategy/example4/CooperateCustomerStrategy.java
|
96f2fd7ac01b55955dde2d139c20e562376d92b6
|
[] |
no_license
|
snowbuffer/jdk-java-basic
|
8545aef243c2d0a2749ea888dbe92bec9b49751c
|
2414167f93569d878b2d802b9c70af906b605c7a
|
refs/heads/master
| 2022-12-22T22:10:11.575240
| 2021-07-06T06:13:38
| 2021-07-06T06:13:38
| 172,832,856
| 0
| 1
| null | 2022-12-16T04:40:12
| 2019-02-27T03:04:57
|
Java
|
GB18030
|
Java
| false
| false
| 344
|
java
|
package com.study.book.strategy.example4;
/**
* 具体算法实现,为战略合作客户客户计算应报的价格
*/
public class CooperateCustomerStrategy implements Strategy {
public double calcPrice(double goodsPrice) {
System.out.println("对于战略合作客户,统一8折");
return goodsPrice * 0.8;
}
}
|
[
"timmydargon@sina.com"
] |
timmydargon@sina.com
|
5195973bdf9b8462d85740f44f48ee685fc4520c
|
c96b0be86c08f639d388498851384706a3c87815
|
/KCX-Mapping-Convert/src/com/kewill/kcx/component/mapping/countries/de/aes/msg/MsgExpErl.java
|
0847e5aa2a56c143f855f88757c750fa927e2a83
|
[] |
no_license
|
joelsousa/KCX-Mapping-Convert
|
cf1b4b785af839f6f369bcdf539bd023d4478f72
|
9da4b25db31f5b1dfbefd279eb76c555f3977c0e
|
refs/heads/master
| 2020-06-07T12:06:43.517765
| 2014-10-03T14:14:51
| 2014-10-03T14:14:51
| null | 0
| 0
| null | null | null | null |
ISO-8859-2
|
Java
| false
| false
| 4,209
|
java
|
/*
* Function : MsgExpErl.java
* Titel :
* Date : 17.09.2008
* Author : Kewill CSF /
* Description : ManualTermination
*
* Changes
* -----------
* Author : EI
* Label : EI20090609
* Description : ContactPerson instead of clerk
*
*
* Changes
* -----------
* Author : CK
* Date : 08.09.2009
* Description : ReferenceNumber in Methode startElement() eingefügt
*
*/
package com.kewill.kcx.component.mapping.countries.de.aes.msg;
import javax.xml.stream.XMLEventReader;
import org.xml.sax.Attributes;
import com.kewill.kcx.component.mapping.countries.common.ContactPerson;
import com.kewill.kcx.component.mapping.countries.common.Seal;
import com.kewill.kcx.component.mapping.countries.de.aes.msg.common.HeaderExtensions;
/**
* Modul : MsgExpErl<br>
* Erstellt : 17.09.2008<br>
* Beschreibung : ManualTermination.
*
* @author ???
* @version 1.0.00
*/
public class MsgExpErl extends KCXMessage {
private String terminationTime = "";
private String annotation = "";
private String referenceNumber = "";
private Seal seal;
//EI20090609: private String clerk;
private ContactPerson contact; //EI20090609
private HeaderExtensions headerExtensions;
private enum EDeclaration {
//KIDS //UIDS
TerminationTime, DateOfTermination,
Annotation, Remark,
ReferenceNumber, //same
Clerk,
ContactPerson, Contact,
Seal, HeaderExtensions;
}
public MsgExpErl() {
}
public MsgExpErl(XMLEventReader parser) {
super(parser);
}
@Override
public void startElement(Enum tag, String value, Attributes attr) {
if (value == null) {
switch ((EDeclaration) tag) {
case Contact:
case ContactPerson:
String clerk = "";
if (contact != null) {
clerk = contact.getClerk(); //EI090609 wohin damit???
}
contact = new ContactPerson(getScanner());
contact.parse(tag.name());
//this.clerk = contact.getClerk();
break;
case Seal:
seal.parse(tag.name());
break;
case HeaderExtensions:
headerExtensions = new HeaderExtensions(getScanner());
headerExtensions.parse(tag.name());
break;
}
} else {
switch ((EDeclaration) tag) {
case TerminationTime:
case DateOfTermination:
terminationTime = value;
break;
case Annotation:
case Remark:
annotation = value;
break;
// CK 08.09.2009 ReferenceNumber hier eingefügt
case ReferenceNumber:
referenceNumber = value;
break;
case Clerk:
//setClerk(value);
if (contact == null) {
contact = new ContactPerson();
contact.setClerk(value);
}
break;
default:
return;
}
}
}
@Override
public void stoppElement(Enum tag) {
}
@Override
public Enum translate(String token) {
try {
return EDeclaration.valueOf(token);
} catch (IllegalArgumentException e) {
return null;
}
}
public String getTerminationTime() {
return terminationTime;
}
public void setTerminationTime(String terminationTime) {
this.terminationTime = terminationTime;
}
public String getAnnotation() {
return annotation;
}
public void setAnnotation(String annotation) {
this.annotation = annotation;
}
public String getReferenceNumber() {
return referenceNumber;
}
public void setReferenceNumber(String referenceNumber) {
this.referenceNumber = referenceNumber;
}
public Seal getSeal() {
if (headerExtensions != null) {
if (seal == null) {
seal = new Seal(getScanner());
seal.setUseOfTydenseals(headerExtensions.getTydenSealsFlag());
seal.setUseOfTydensealStock(headerExtensions.getTydenSealsStockFlag());
}
}
return seal;
}
public void setSeal(Seal seal) {
this.seal = seal;
}
/*
public String getClerk() {
return clerk;
}
public void setClerk(String clerk) {
this.clerk = Utils.checkNull(clerk);
}
*/
public ContactPerson getContact() {
return contact;
}
public void setContact(ContactPerson argument) {
this.contact = argument;
}
}
|
[
"joel@moredata.pt"
] |
joel@moredata.pt
|
1f025a36a2ae20c00b239e6b1035ebafe1b1371c
|
7fdc7740a7b4958e26f4bdd0c67e2f33c9d032ab
|
/Spring/handwritten-spring-orm/src/main/java/com/hand/written/orm/demo/dao/MemberDao.java
|
ca46416d5bdd46168c661eb9ada1a4dd972b2342
|
[] |
no_license
|
lysjava1992/javabase
|
9290464826d89c0415bb7c6084aa649de1496741
|
9d403aae8f20643fe1bf370cabcdd93164ea604b
|
refs/heads/master
| 2023-06-22T02:25:21.573301
| 2021-12-12T03:35:36
| 2021-12-12T03:35:36
| 216,582,761
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,622
|
java
|
package com.hand.written.orm.demo.dao;
import com.hand.written.orm.demo.model.Member;
import com.hand.written.orm.framework.BaseDaoSupport;
import com.hand.written.orm.framework.QueryRule;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import javax.core.common.jdbc.datasource.DynamicDataSource;
import javax.sql.DataSource;
import java.util.List;
/**
* 天行健,君子以自强不息
* 地势坤,君子以厚德载物
*
* @ClassName MemberDao
* @Description TODO
* @Author Mr.Luan
* @Date 2020/2/11 16:52
* @Version 1.0
**/
@Repository
public class MemberDao extends BaseDaoSupport<Member,Long> {
private JdbcTemplate template;
@Override
protected String getPKColumn() {
return "id";
}
/**
* 单一数据源
* @param dataSource
*/
@Override
@Resource(name = "dataSource")
protected void setDataSource(DataSource dataSource) {
super.setDataSourceReadOnly(dataSource);
super.setDataSourceWrite(dataSource);
}
@Override
public boolean insert(Member member) throws Exception {
return super.insert(member);
}
@Override
public boolean update(Member member) throws Exception {
return super.update(member);
}
public Member selectOne(Long id) throws Exception {
return super.get(id);
}
public List<Member> selectByQueryRule(QueryRule queryRule) throws Exception {
return super.select(queryRule);
}
}
|
[
"763644568@qq.com"
] |
763644568@qq.com
|
151e1650a2dcfcc0a04824b96b5f920aff49b990
|
441f146d9bb589a1c47ab0148f2fb4f93b221f9c
|
/JDIHttp/jdi-http/src/main/java/com/epam/http/requests/RestMethods.java
|
7e11b32a6d510b2ef6181e8dd63530ab22194111
|
[
"MIT"
] |
permissive
|
RomanIovlev/jdi-2.0-Develop
|
4bc423033f9325ca2a762473bca15f7886518c43
|
d12d0d6a11ae43929bfb4a626130785d024c44c2
|
refs/heads/master
| 2021-03-30T21:19:04.945292
| 2018-03-08T17:01:08
| 2018-03-08T17:01:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,361
|
java
|
package com.epam.http.requests;
/**
* Created by Roman Iovlev on 14.02.2018
* Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev
*/
import com.epam.http.response.RestResponse;
import static com.epam.http.requests.RestMethodTypes.*;
public class RestMethods {
public static RestResponse GET(RequestData data) {
return new RestMethod(GET, data).call();
}
public static RestResponse GET(String url) {
return new RestMethod(GET, url).call();
}
public static RestResponse POST(RequestData data) {
return new RestMethod(POST, data).call();
}
public static RestResponse POST(String url) {
return new RestMethod(POST, url).call();
}
public static RestResponse PUT(RequestData data) {
return new RestMethod(PUT, data).call();
}
public static RestResponse PUT(String url) {
return new RestMethod(PUT, url).call();
}
public static RestResponse DELETE(RequestData data) {
return new RestMethod(DELETE, data).call();
}
public static RestResponse DELETE(String url) {
return new RestMethod(DELETE, url).call();
}
public static RestResponse PATCH(RequestData data) {
return new RestMethod(PATCH, data).call();
}
public static RestResponse PATCH(String url) {
return new RestMethod(PATCH, url).call();
}
}
|
[
"romanyister@gmail.com"
] |
romanyister@gmail.com
|
daf0900dc56be8359018311de19f1d8fe19fff95
|
fe5bf53fc30879a48ad6f1c494a819edde09b9ba
|
/src/main/java/example/ClockModel.java
|
56629fc8b5619823e7bbc49fd7cd88836078ce51
|
[
"MIT"
] |
permissive
|
StefanLiebenberg/presentation-guice-injection
|
21c3e8b6e1c27ca814f567963d399f6c64ef801f
|
4282ee88280123bc6490fdf59e04d00e20c6c904
|
refs/heads/master
| 2021-01-23T03:13:08.586943
| 2015-01-12T08:55:51
| 2015-01-12T08:55:51
| 29,068,096
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 579
|
java
|
package example;
public class ClockModel {
private final String id;
private final Integer hours, minutes, seconds;
public ClockModel(String id, Integer hours, Integer minutes, Integer seconds) {
this.id = id;
this.hours = hours;
this.minutes = minutes;
this.seconds = seconds;
}
public String getId() {
return id;
}
public Integer getHours() {
return hours;
}
public Integer getMinutes() {
return minutes;
}
public Integer getSeconds() {
return seconds;
}
}
|
[
"siga.fredo@gmail.com"
] |
siga.fredo@gmail.com
|
dd14b46d1f3c74ae639e6315b376492686e5d47d
|
655ee072037b640ffbdf7996b42eb40b50889b0a
|
/src/com/cisco/eManager/common/event/ProcessSequencerEventMessage.java
|
e0089e76bc7f8522f51bf8a8921b46d4749b6b65
|
[] |
no_license
|
mamiles/eManager
|
23b4d97aeceeb6a34e1bee574a1fc2a48cfc9f68
|
74ec6897e36608001ef11b2946d3f48f2fcf9928
|
refs/heads/master
| 2016-08-05T00:34:24.885860
| 2012-02-11T21:43:13
| 2012-02-11T21:43:13
| 3,418,100
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,298
|
java
|
//Source file: /vob/emanager/src/com/cisco/eManager/common/event/ProcessSequencerEventMessage.java
//Source file: D:\\vws\\root\\mjmatch-emanager-main-snapshot\\emanager\\src\\com\\cisco\\eManager\\common\\event\\ProcessSequencerEventMessage.java
package com.cisco.eManager.common.event;
import java.util.Date;
import com.cisco.eManager.common.event.EmanagerEventMessage;
import com.cisco.eManager.common.event.EventSeverity;
import com.cisco.eManager.common.event.EventType;
import com.cisco.eManager.common.event.ProcessSequencerEventId;
import com.cisco.eManager.common.inventory.ManagedObjectId;
public class ProcessSequencerEventMessage extends AbstractEventMessage implements Comparable
{
private ProcessSequencerEventId processSequencerEventId;
private ManagedObjectId managedObjectId;
// fix
// workaround for SOAP
public ProcessSequencerEventMessage()
{
super (EventType.ClearType, new Date(), EventSeverity.Low, new String (""));
}
public ProcessSequencerEventMessage (ProcessSequencerEventMessage object)
{
super (object);
processSequencerEventId = object.processSequencerEventId;
managedObjectId = object.managedObjectId;
}
/**
* @param eventType
* @param eventTime
* @param severity
* @param managedObjectId
* @param processSequencerEventId
* @param displayText
* @roseuid 3F4E5D48002E
*/
public ProcessSequencerEventMessage(EventType eventType,
Date eventTime,
EventSeverity severity,
ManagedObjectId managedObjectId,
ProcessSequencerEventId processSequencerEventId,
String displayText)
{
super (eventType, eventTime, severity, displayText);
this.managedObjectId = managedObjectId;
this.processSequencerEventId = processSequencerEventId;
}
/**
* Access method for the processSequencerEventId property.
*
* @return the current value of the processSequencerEventId property
*/
public ProcessSequencerEventId getProcessSequencerEventId()
{
return processSequencerEventId;
}
/**
* Access method for the managedObject property.
*
* @return the current value of the managedObject property
*/
public ManagedObjectId getManagedObjectId()
{
return managedObjectId;
}
public int compareTo (Object object)
{
int value;
value = super.compareTo (object);
if (value == 0) {
if (object instanceof ProcessSequencerEventMessage) {
return processSequencerEventId.
compareTo ( ( (ProcessSequencerEventMessage) object).getProcessSequencerEventId());
} else if (object instanceof EmanagerEventMessage) {
return 1;
} else {
return -1;
}
}
return value;
}
public boolean equals (Object object)
{
if (object instanceof ProcessSequencerEventMessage) {
if (super.equals(object)) {
ProcessSequencerEventMessage psObject;
psObject = (ProcessSequencerEventMessage) object;
if (processSequencerEventId.equals(psObject.processSequencerEventId) &&
managedObjectId.equals(psObject.managedObjectId)) {
return true;
}
}
}
return false;
}
}
|
[
"mamiles@cisco.com"
] |
mamiles@cisco.com
|
52315de158fdbb7c071c349b28ef7b52ff6e20c2
|
c711ccbab662f6d056aa0d88a24bf32d030b7313
|
/javatests/dagger/functional/builderbinds/BuilderBindsTest.java
|
4cafeac9648c11319709edab2783913b68c41f1c
|
[
"Apache-2.0"
] |
permissive
|
Sathawale27/dagger
|
9e62375ee3b12415e0071cbbd29130d192f56370
|
aaebb36450a424b51f2f29c04eda1f8ec9ede320
|
refs/heads/master
| 2021-04-06T03:58:13.655861
| 2018-03-26T16:17:30
| 2018-03-26T16:17:30
| 124,418,533
| 1
| 0
|
Apache-2.0
| 2018-03-26T16:17:31
| 2018-03-08T16:29:48
|
Java
|
UTF-8
|
Java
| false
| false
| 3,836
|
java
|
/*
* Copyright (C) 2016 The Dagger 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 dagger.functional.builderbinds;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
import dagger.functional.builderbinds.TestComponent.Builder;
import java.util.Arrays;
import java.util.Collections;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public final class BuilderBindsTest {
@Test
public void builderBinds() {
TestComponent.Builder builder =
DaggerTestComponent.builder()
.count(5)
.l(10L)
.input("foo")
.nullableInput("bar")
.listOfString(Arrays.asList("x", "y", "z"));
builder.boundInSubtype(20);
TestComponent component = builder.build();
assertThat(component.count()).isEqualTo(5);
assertThat(component.input()).isEqualTo("foo");
assertThat(component.nullableInput()).isEqualTo("bar");
assertThat(component.listOfString()).containsExactly("x", "y", "z").inOrder();
}
@Test
public void builderBindsNullableWithNull() {
Builder builder =
DaggerTestComponent.builder()
.count(5)
.l(10L)
.input("foo")
.nullableInput(null)
.listOfString(Collections.<String>emptyList());
builder.boundInSubtype(20);
TestComponent component = builder.build();
assertThat(component.count()).isEqualTo(5);
assertThat(component.input()).isEqualTo("foo");
assertThat(component.nullableInput()).isNull();
assertThat(component.listOfString()).isEmpty();
}
@Test
public void builderBindsNonNullableWithNull() {
try {
DaggerTestComponent.builder().count(5).l(10L).input(null);
fail("expected NullPointerException");
} catch (NullPointerException expected) {
}
}
@Test
public void builderBindsPrimitiveNotSet() {
try {
TestComponent.Builder builder =
DaggerTestComponent.builder()
.l(10L)
.input("foo")
.nullableInput("bar")
.listOfString(Collections.<String>emptyList());
builder.boundInSubtype(20);
builder.build();
fail("expected IllegalStateException");
} catch (IllegalStateException expected) {
}
}
@Test
public void builderBindsNonNullableNotSet() {
try {
TestComponent.Builder builder =
DaggerTestComponent.builder()
.count(5)
.l(10L)
.nullableInput("foo")
.listOfString(Collections.<String>emptyList());
builder.boundInSubtype(20);
builder.build();
fail("expected IllegalStateException");
} catch (IllegalStateException expected) {
}
}
@Test
public void builderBindsNullableNotSet() {
Builder builder =
DaggerTestComponent.builder()
.count(5)
.l(10L)
.input("foo")
.listOfString(Collections.<String>emptyList());
builder.boundInSubtype(20);
TestComponent component = builder.build();
assertThat(component.count()).isEqualTo(5);
assertThat(component.input()).isEqualTo("foo");
assertThat(component.nullableInput()).isNull();
assertThat(component.listOfString()).isEmpty();
}
}
|
[
"shapiro.rd@gmail.com"
] |
shapiro.rd@gmail.com
|
f2e1d6320e9f2ec4809a826f8419db3ada135c63
|
02d6ca35251d0aa54f28bd17e72b0920c8483647
|
/cloudsigma2/src/main/java/org/jclouds/cloudsigma2/domain/ServerStatus.java
|
0fd720f16c446fc7819b85d1b3e736e7bc4fbe06
|
[
"Apache-2.0"
] |
permissive
|
udaraliyanage/jclouds-labs
|
02b0f2054587f505d7dc703796615202b682504b
|
c5d6f6b14b6b2f7f710079fbadc1f28e78632d30
|
refs/heads/master
| 2021-01-21T07:13:31.728854
| 2013-10-28T15:24:23
| 2013-11-05T08:12:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,417
|
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.jclouds.cloudsigma2.domain;
import static com.google.common.base.Preconditions.checkNotNull;
/**
*
* @author Adrian Cole
*/
public enum ServerStatus {
RUNNING, STARTING, STOPPING, STOPPED, PAUSED, UNAVAILABLE, UNRECOGNIZED;
public String value() {
return name().toLowerCase();
}
@Override
public String toString() {
return value();
}
public static ServerStatus fromValue(String status) {
try {
return valueOf(checkNotNull(status, "status").toUpperCase());
} catch (IllegalArgumentException e) {
return UNRECOGNIZED;
}
}
}
|
[
"nacx@apache.org"
] |
nacx@apache.org
|
96e1daead50ee25e56b8a0505528d03c2d87cc8a
|
0317baf933c91bb6a157d8a4fcde17ce40ef274c
|
/com/qi7/RunnableInter.java
|
cf9500ea5e925c25bf4ef02b970f4e6cdb9a55f6
|
[] |
no_license
|
qiiii7/qi7
|
f64b0b27039b7f7cd228276d7dcd04d33fcdfea1
|
e43257ab9a5f5c9915beaf442f5c5deba999bdb6
|
refs/heads/master
| 2022-04-09T23:31:33.180209
| 2020-06-29T10:00:08
| 2020-06-29T10:00:08
| 250,162,646
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 205
|
java
|
package com.qi7;
import java.util.List;
public interface RunnableInter {
void addRunnable(List<Runnable> list);
void addRunnable(Runnable[] runnables);
void addRunnable(Runnable runnable);
}
|
[
"l"
] |
l
|
b9df6598e8ad25a6faaea158a5ed338d9cf81498
|
82f360d463e2383e6efa4def1881b8b28e09d396
|
/myCodes/LBDWS/src/main/java/com/lanbao/dws/common/data/dac/handler/DataHandler.java
|
0302286fa6c16aa4af27583f82f661b0f0f6dab2
|
[] |
no_license
|
eseawind/ProjectResource
|
09a0c429acc791ea6dd917c2c04ea163dfe7013e
|
90cd01635241e27ac918afcf3a86a2117c652651
|
refs/heads/master
| 2020-06-13T04:39:23.685213
| 2017-07-18T01:39:05
| 2017-07-18T01:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,325
|
java
|
package com.lanbao.dws.common.data.dac.handler;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.apache.log4j.Logger;
import com.lanbao.dws.common.tools.ApplicationContextUtil;
import com.lanbao.dws.common.tools.DateUtil;
import com.lanbao.dws.common.tools.ThreadManager;
/**
* 实时数据处理实现
* @author Leejean
* @create 2015年1月7日下午1:15:49
*/
import com.lanbao.dws.service.wct.realTimeData.IRealTimeDataService;
import business.MainBussiness;
public class DataHandler{
private static IRealTimeDataService realTimeDataService=null;
private static Logger log = Logger.getLogger(DataHandler.class);
private static DataHandler instance = null;
/**
* 保存辅料计算参数集合
* Key :equipmentCode
* Value : FilterCalcValue or RollerCalcValue or PakcerCalcValue
*/
private static Map<String,Object> calcValues = new HashMap<String, Object>();
/**
* 产出和辅料消耗
*/
private static Map<String,DbOutputOrInputInfos> dbOutputOrInputInfos =new HashMap<String, DbOutputOrInputInfos>();
public static DataHandler getInstance(){
if (instance == null){
instance = new DataHandler();
instance.copyData();
}
return instance;
}
/**
* 实时数据处理
* @author Leejean
* @create 2015年1月7日下午1:40:12
*/
public void copyData(){
//log.info("====启动[实时数据->业务数据]拷贝线程...");
CopyThread copyThread=new CopyThread();
ThreadManager.getInstance().addSchedule(copyThread, 3, 2, TimeUnit.SECONDS);
ThreadManager.getInstance().addSchedule(FaultDataCalc.getInstance(), 3, 2, TimeUnit.SECONDS);
}
/**
* @author 作者 : shisihai
* @version 创建时间:2016年8月1日 上午10:38:19
* 功能说明 :设备产出实绩信息和消耗实绩信息
*/
public static void setDbOutputOrInputInfosIntoMap(String equipmentCode,DbOutputOrInputInfos value){
DataHandler.dbOutputOrInputInfos.put(equipmentCode, value);
}
/**
* @author 作者 : shisihai
* @version 创建时间:2016年8月1日 上午10:38:48
* 功能说明 :获得生产实际产出ID
*/
public static String getDbOutputId(Map<String, DbOutputOrInputInfos> dbOutputOrInputInfos,String equipmentCode) {
DbOutputOrInputInfos dbOutput = dbOutputOrInputInfos.get(equipmentCode);
if(dbOutput!=null){
return dbOutput.getStatOutputId();
}
return null;
}
/**
* @author 作者 : shisihai
* @version 创建时间:2016年8月1日 上午10:39:16
* 功能说明 :获得辅料类别与生产实际消耗数据ID
*/
public static Map<String, String> getType_InputId(Map<String, DbOutputOrInputInfos> dbOutputOrInputInfos,String equipmentCode) {
DbOutputOrInputInfos dbOutput = dbOutputOrInputInfos.get(equipmentCode);
if(dbOutput!=null){
return dbOutput.getType_statInputId();
}
return null;
}
/**
* 根据物料类型获得消耗ID
* @author 作者 : shisihai
* @version 创建时间:2016年8月1日 上午10:39:52
* 功能说明 :
*/
public static String getInputIdByType(Map<String, String> type_InputId,String type) {
String dbOutput = type_InputId.get(type);
if(dbOutput!=null){
return dbOutput;
}
return null;
}
/**
* @author 作者 : shisihai
* @version 创建时间:2016年8月1日 上午10:40:18
* 功能说明 : 实时数据保存
*/
public void saveAllData(){
try {
if(realTimeDataService==null){
realTimeDataService=ApplicationContextUtil.getBean(IRealTimeDataService.class);
}
realTimeDataService.saveAllData(NeedData.getInstance().getEqpData());
} catch (Exception e) {
log.info("w::实时保存数据异常!!");
}
}
/**
* 故障数据保存
* @author luo
* @create 2015年9月18日09:15:46
*/
public void saveAllErrorData(){
if(realTimeDataService==null){
realTimeDataService=ApplicationContextUtil.getBean(IRealTimeDataService.class);
}
realTimeDataService.saveAllErrorData(FaultDataCalc.getInstance().getAllFaultList());
}
/**
* [工能说明]:定时结束上一班次工单,启动当前所有工单
* @author wanchanghuang
* @date 2016年8月4日11:26:40
* */
public void edWorkOrder(){
try {
if(realTimeDataService==null){
realTimeDataService=ApplicationContextUtil.getBean(IRealTimeDataService.class);
}
realTimeDataService.edWorkOrder();
log.info("定时换班任务执行完毕!"+DateUtil.formatDateToString(new Date(), "yyyy-MM-dd HH:mm:ss"));
} catch (Exception e) {
e.printStackTrace();
log.info("定时换班异常!"+DateUtil.formatDateToString(new Date(), "yyyy-MM-dd HH:mm:ss"));
}
}
/**
* 定时任务 : 高频保存产耗数据
* <p>功能描述:每隔3s保存一次机台的实时数据,用于监控分析。只保持一天数据。</p>
*shisihai
*2016上午9:52:43
*/
public void saveRealTimeDataTimer(){
if(realTimeDataService==null){
realTimeDataService=ApplicationContextUtil.getBean(IRealTimeDataService.class);
}
realTimeDataService.saveRealTimeDataTimer();
log.info("高频保存数据执行完毕!");
}
/**
* 定时任务
* <p>功能描述:删除昨天的实时数据</p>
*shisihai
*2016上午9:55:48
*/
public void deleteRealTimeData(){
realTimeDataService.deleteRealTimeData();
}
/**
* <p>功能描述:SqlLite 定时保存任务</p>
*shisihai
*2016上午8:18:05
*/
public void sqlLiteToolsSave(){
MainBussiness.getInstance().saveMemoryData(DataSnapshot.getInstance().getEqpData());
}
public static Map<String, Object> getCalcValues() {
return calcValues;
}
public static void setCalcValues(Map<String, Object> calcValues) {
DataHandler.calcValues = calcValues;
}
public static void setCalcValueIntoMap(String eqpcode, Object calcValue) {
DataHandler.calcValues.put(eqpcode, calcValue);
}
public static Map<String, DbOutputOrInputInfos> getDbOutputOrInputInfos() {
return dbOutputOrInputInfos;
}
public static void setDbOutputOrInputInfos(
Map<String, DbOutputOrInputInfos> dbOutputOrInputInfos) {
DataHandler.dbOutputOrInputInfos = dbOutputOrInputInfos;
}
}
|
[
"htohoot@163.com"
] |
htohoot@163.com
|
72c3a71fba612d5b43c2a548b7ff9f59209cb65c
|
c186dfd092ca810b57f045fa186dccaf54d68f68
|
/java/org/apache/coyote/http2/FrameType.java
|
0f17f6ff3adeca734505a4a685a6c31137a6fe86
|
[
"Zlib",
"LZMA-exception",
"CPL-1.0",
"bzip2-1.0.6",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"EPL-2.0",
"CDDL-1.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
fhanik/tomcat
|
138e0da6b80014c9aa973553db6dc571d0580bba
|
40387a24e7f63771d255639abb2d8639a26a750e
|
refs/heads/master
| 2022-01-22T05:35:59.582430
| 2020-10-02T22:17:35
| 2020-10-05T17:35:48
| 235,397,078
| 1
| 0
|
Apache-2.0
| 2020-01-21T17:11:14
| 2020-01-21T17:11:14
| null |
UTF-8
|
Java
| false
| false
| 3,982
|
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.coyote.http2;
import java.util.function.IntPredicate;
import org.apache.tomcat.util.res.StringManager;
enum FrameType {
DATA (0, false, true, null, false),
HEADERS (1, false, true, null, true),
PRIORITY (2, false, true, (x) -> x == 5, false),
RST (3, false, true, (x) -> x == 4, false),
SETTINGS (4, true, false, (x) -> x % 6 == 0, true),
PUSH_PROMISE (5, false, true, (x) -> x >= 4, true),
PING (6, true, false, (x) -> x == 8, false),
GOAWAY (7, true, false, (x) -> x >= 8, false),
WINDOW_UPDATE (8, true, true, (x) -> x == 4, true),
CONTINUATION (9, false, true, null, true),
UNKNOWN (256, true, true, null, false);
private static final StringManager sm = StringManager.getManager(FrameType.class);
private final int id;
private final boolean streamZero;
private final boolean streamNonZero;
private final IntPredicate payloadSizeValidator;
private final boolean payloadErrorFatal;
private FrameType(int id, boolean streamZero, boolean streamNonZero,
IntPredicate payloadSizeValidator, boolean payloadErrorFatal) {
this.id = id;
this.streamZero = streamZero;
this.streamNonZero = streamNonZero;
this.payloadSizeValidator = payloadSizeValidator;
this.payloadErrorFatal = payloadErrorFatal;
}
byte getIdByte() {
return (byte) id;
}
void check(int streamId, int payloadSize) throws Http2Exception {
// Is FrameType valid for the given stream?
if (streamId == 0 && !streamZero || streamId != 0 && !streamNonZero) {
throw new ConnectionException(sm.getString("frameType.checkStream", this),
Http2Error.PROTOCOL_ERROR);
}
// Is the payload size valid for the given FrameType
if (payloadSizeValidator != null && !payloadSizeValidator.test(payloadSize)) {
if (payloadErrorFatal || streamId == 0) {
throw new ConnectionException(sm.getString("frameType.checkPayloadSize",
Integer.toString(payloadSize), this),
Http2Error.FRAME_SIZE_ERROR);
} else {
throw new StreamException(sm.getString("frameType.checkPayloadSize",
Integer.toString(payloadSize), this),
Http2Error.FRAME_SIZE_ERROR, streamId);
}
}
}
static FrameType valueOf(int i) {
switch(i) {
case 0:
return DATA;
case 1:
return HEADERS;
case 2:
return PRIORITY;
case 3:
return RST;
case 4:
return SETTINGS;
case 5:
return PUSH_PROMISE;
case 6:
return PING;
case 7:
return GOAWAY;
case 8:
return WINDOW_UPDATE;
case 9:
return CONTINUATION;
default:
return UNKNOWN;
}
}
}
|
[
"markt@apache.org"
] |
markt@apache.org
|
acf1eb7f47195bf220eb09f6e049d0c830c60707
|
35348f6624d46a1941ea7e286af37bb794bee5b7
|
/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/stack/DebuggerStackActionContext.java
|
9925d4db43b557a7a8a8f3e9b2774585516087de
|
[
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
StarCrossPortal/ghidracraft
|
7af6257c63a2bb7684e4c2ad763a6ada23297fa3
|
a960e81ff6144ec8834e187f5097dfcf64758e18
|
refs/heads/master
| 2023-08-23T20:17:26.250961
| 2021-10-22T00:53:49
| 2021-10-22T00:53:49
| 359,644,138
| 80
| 19
|
Apache-2.0
| 2021-10-20T03:59:55
| 2021-04-20T01:14:29
|
Java
|
UTF-8
|
Java
| false
| false
| 1,041
|
java
|
/* ###
* IP: GHIDRA
*
* 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 ghidra.app.plugin.core.debug.gui.stack;
import java.awt.Component;
import docking.ActionContext;
public class DebuggerStackActionContext extends ActionContext {
private final StackFrameRow frame;
public DebuggerStackActionContext(DebuggerStackProvider provider, StackFrameRow frame,
Component sourceComponent) {
super(provider, frame, sourceComponent);
this.frame = frame;
}
public StackFrameRow getFrame() {
return frame;
}
}
|
[
"46821332+nsadeveloper789@users.noreply.github.com"
] |
46821332+nsadeveloper789@users.noreply.github.com
|
16349eb2f3b1265fa3ce3329515a96aa84079a9b
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/training/org/hibernate/test/annotations/enumerated/custom_mapkey/MapKeyCustomEnumTypeTest.java
|
bb2dfe7c215daae28e5ddc2fad61f4fd7cee0de6
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 7,031
|
java
|
/**
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.enumerated.custom_mapkey;
import java.io.Serializable;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.test.annotations.enumerated.custom_types.FirstLetterType;
import org.hibernate.test.annotations.enumerated.custom_types.LastNumberType;
import org.hibernate.test.annotations.enumerated.enums.Common;
import org.hibernate.test.annotations.enumerated.enums.FirstLetter;
import org.hibernate.test.annotations.enumerated.enums.LastNumber;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.type.EnumType;
import org.junit.Assert;
import org.junit.Test;
/**
* Test as in EnumeratedTypeTest but with MapKey
*
* @author Janario Oliveira
*/
public class MapKeyCustomEnumTypeTest extends BaseNonConfigCoreFunctionalTestCase {
@Test
public void testTypeDefinition() {
PersistentClass pc = metadata().getEntityBinding(EntityMapEnum.class.getName());
// ordinal default of EnumType
assetTypeDefinition(pc.getProperty("ordinalMap"), Common.class, EnumType.class);
// string defined by Enumerated(STRING)
assetTypeDefinition(pc.getProperty("stringMap"), Common.class, EnumType.class);
// explicit defined by @Type
assetTypeDefinition(pc.getProperty("firstLetterMap"), FirstLetter.class, FirstLetterType.class);
// implicit defined by @TypeDef in somewhere
assetTypeDefinition(pc.getProperty("lastNumberMap"), LastNumber.class, LastNumberType.class);
// implicit defined by @TypeDef in anywhere, but overrided by Enumerated(STRING)
assetTypeDefinition(pc.getProperty("explicitOverridingImplicitMap"), LastNumber.class, EnumType.class);
}
@Test
public void testQuery() {
// ordinal
EntityMapEnum entityMapEnum = new EntityMapEnum();
entityMapEnum.ordinalMap.put(Common.A2, "Common.A2");
Serializable id = save(entityMapEnum);
EntityMapEnum found = assertFindEntityMapEnum(entityMapEnum, "from EntityMapEnum ee where key(ee.ordinalMap)=1", "from EntityMapEnum ee where key(ee.ordinalMap)=:param", Common.A2, "select 1 from EntityMapEnum_ordinalMap where EntityMapEnum_id=:idEntityMapEnum and ordinalMap_KEY=1");
Assert.assertFalse(found.ordinalMap.isEmpty());
delete(id);
// **************
// string
entityMapEnum = new EntityMapEnum();
entityMapEnum.stringMap.put(Common.B1, "Common.B2");
id = save(entityMapEnum);
found = assertFindEntityMapEnum(entityMapEnum, "from EntityMapEnum ee where key(ee.stringMap)='B1'", "from EntityMapEnum ee where key(ee.stringMap)=:param", Common.B1, "select 1 from EntityMapEnum_stringMap where EntityMapEnum_id=:idEntityMapEnum and stringMap_KEY='B1'");
Assert.assertFalse(found.stringMap.isEmpty());
delete(id);
// **************
// custom local type (FirstLetterType)
entityMapEnum = new EntityMapEnum();
entityMapEnum.firstLetterMap.put(FirstLetter.C_LETTER, "FirstLetter.C_LETTER");
id = save(entityMapEnum);
found = assertFindEntityMapEnum(entityMapEnum, "from EntityMapEnum ee where key(ee.firstLetterMap)='C'", "from EntityMapEnum ee where key(ee.firstLetterMap)=:param", FirstLetter.C_LETTER, "select 1 from EntityMapEnum_firstLetterMap where EntityMapEnum_id=:idEntityMapEnum and firstLetterMap_KEY='C'");
Assert.assertFalse(found.firstLetterMap.isEmpty());
delete(id);
// **************
// custom global type(LastNumberType)
entityMapEnum = new EntityMapEnum();
entityMapEnum.lastNumberMap.put(LastNumber.NUMBER_1, "LastNumber.NUMBER_1c");
id = save(entityMapEnum);
found = assertFindEntityMapEnum(entityMapEnum, "from EntityMapEnum ee where key(ee.lastNumberMap)='1'", "from EntityMapEnum ee where key(ee.lastNumberMap)=:param", LastNumber.NUMBER_1, "select 1 from EntityMapEnum_lastNumberMap where EntityMapEnum_id=:idEntityMapEnum and lastNumberMap_KEY='1'");
Assert.assertFalse(found.lastNumberMap.isEmpty());
delete(id);
// **************
// override global type
entityMapEnum = new EntityMapEnum();
entityMapEnum.explicitOverridingImplicitMap.put(LastNumber.NUMBER_2, "LastNumber.NUMBER_2a");
id = save(entityMapEnum);
found = assertFindEntityMapEnum(entityMapEnum, "from EntityMapEnum ee where key(ee.explicitOverridingImplicitMap)='NUMBER_2'", "from EntityMapEnum ee where key(ee.explicitOverridingImplicitMap)=:param", LastNumber.NUMBER_2, "select 1 from overridingMap where EntityMapEnum_id=:idEntityMapEnum and overridingMap_key='NUMBER_2'");
Assert.assertFalse(found.explicitOverridingImplicitMap.isEmpty());
delete(id);
}
@Test
public void testCriteria() {
// ordinal
EntityMapEnum entityMapEnum = new EntityMapEnum();
entityMapEnum.ordinalMap.put(Common.A1, "Common.A1");
Serializable id = save(entityMapEnum);
EntityMapEnum found = assertFindCriteria(entityMapEnum, "ordinalMap", Common.A1);
Assert.assertFalse(found.ordinalMap.isEmpty());
delete(id);
// **************
// string
entityMapEnum = new EntityMapEnum();
entityMapEnum.stringMap.put(Common.B2, "Common.B2");
id = save(entityMapEnum);
found = assertFindCriteria(entityMapEnum, "stringMap", Common.B2);
Assert.assertFalse(found.stringMap.isEmpty());
delete(id);
// **************
// custom local type (FirstLetterType)
entityMapEnum = new EntityMapEnum();
entityMapEnum.firstLetterMap.put(FirstLetter.A_LETTER, "FirstLetter.A_LETTER");
id = save(entityMapEnum);
found = assertFindCriteria(entityMapEnum, "firstLetterMap", FirstLetter.A_LETTER);
Assert.assertFalse(found.firstLetterMap.isEmpty());
delete(id);
// **************
// custom global type(LastNumberType)
entityMapEnum = new EntityMapEnum();
entityMapEnum.lastNumberMap.put(LastNumber.NUMBER_3, "LastNumber.NUMBER_3");
id = save(entityMapEnum);
found = assertFindCriteria(entityMapEnum, "lastNumberMap", LastNumber.NUMBER_3);
Assert.assertFalse(found.lastNumberMap.isEmpty());
delete(id);
// **************
// override global type
entityMapEnum = new EntityMapEnum();
entityMapEnum.explicitOverridingImplicitMap.put(LastNumber.NUMBER_2, "LastNumber.NUMBER_2b");
id = save(entityMapEnum);
found = assertFindCriteria(entityMapEnum, "explicitOverridingImplicitMap", LastNumber.NUMBER_2);
Assert.assertFalse(found.explicitOverridingImplicitMap.isEmpty());
delete(id);
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
8ea1ad1b5d2ed44e640d1a68e48f66ebc6a77bfd
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/playstore_apps/com_idamob_tinkoff_android/source/com/webimapp/android/sdk/impl/backend/WebimService.java
|
ea4eae35df4d5e15e8214aeb2d4264281ed29ce6
|
[
"Apache-2.0"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 6,674
|
java
|
package com.webimapp.android.sdk.impl.backend;
import com.webimapp.android.sdk.impl.items.responses.DefaultResponse;
import com.webimapp.android.sdk.impl.items.responses.DeltaResponse;
import com.webimapp.android.sdk.impl.items.responses.HistoryBeforeResponse;
import com.webimapp.android.sdk.impl.items.responses.HistorySinceResponse;
import com.webimapp.android.sdk.impl.items.responses.UploadResponse;
import okhttp3.ab;
import okhttp3.w.b;
import retrofit2.b;
import retrofit2.b.c;
import retrofit2.b.e;
import retrofit2.b.f;
import retrofit2.b.l;
import retrofit2.b.o;
import retrofit2.b.q;
import retrofit2.b.t;
public abstract interface WebimService
{
public static final String PARAMETER_ACTION = "action";
public static final String PARAMETER_APP_VERSION = "app-version";
public static final String PARAMETER_AUTHORIZATION_TOKEN = "auth-token";
public static final String PARAMETER_CHAT_DEPARTMENT_KEY = "department-key";
public static final String PARAMETER_CHAT_FIRST_QUESTION = "first-question";
public static final String PARAMETER_CHAT_FORCE_ONLINE = "force-online";
public static final String PARAMETER_CHAT_ID = "chat-id";
public static final String PARAMETER_CHAT_MODE = "chat-mode";
public static final String PARAMETER_CLIENT_SIDE_ID = "client-side-id";
public static final String PARAMETER_DATA = "data";
public static final String PARAMETER_DEVICE_ID = "device-id";
public static final String PARAMETER_EVENT = "event";
public static final String PARAMETER_FILE_UPLOAD = "webim_upload_file";
public static final String PARAMETER_LOCATION = "location";
public static final String PARAMETER_MESSAGE = "message";
public static final String PARAMETER_MESSAGE_DRAFT = "message-draft";
public static final String PARAMETER_MESSAGE_DRAFT_DELETE = "del-message-draft";
public static final String PARAMETER_MESSAGE_HINT_QUESTION = "hint_question";
public static final String PARAMETER_OPERATOR_ID = "operator_id";
public static final String PARAMETER_OPERATOR_RATING = "rate";
public static final String PARAMETER_PAGE_ID = "page-id";
public static final String PARAMETER_PLATFORM = "platform";
public static final String PARAMETER_PROVIDED_AUTHORIZATION_TOKEN = "provided_auth_token";
public static final String PARAMETER_PUSH_TOKEN = "push-token";
public static final String PARAMETER_RESPOND_IMMEDIATELY = "respond-immediately";
public static final String PARAMETER_SINCE = "since";
public static final String PARAMETER_TIMESTAMP = "ts";
public static final String PARAMETER_TIMESTAMP_BEFORE = "before-ts";
public static final String PARAMETER_TITLE = "title";
public static final String PARAMETER_VISITOR_EXT = "visitor-ext";
public static final String PARAMETER_VISITOR_FIELDS = "visitor";
public static final String PARAMETER_VISITOR_TYPING = "typing";
public static final String PARAMETER_VISIT_SESSION_ID = "visit-session-id";
public static final String URL_SUFFIX_ACTION = "/l/v/m/action";
public static final String URL_SUFFIX_DELTA = "/l/v/m/delta";
public static final String URL_SUFFIX_FILE_UPLOAD = "/l/v/m/upload";
public static final String URL_SUFFIX_HISTORY = "/l/v/m/history";
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> closeChat(@c(a="action") String paramString1, @c(a="page-id") String paramString2, @c(a="auth-token") String paramString3);
@f(a="/l/v/m/delta")
public abstract b<DeltaResponse> getDelta(@t(a="since") long paramLong1, @t(a="page-id") String paramString1, @t(a="auth-token") String paramString2, @t(a="ts") long paramLong2);
@f(a="/l/v/m/history")
public abstract b<HistoryBeforeResponse> getHistoryBefore(@t(a="page-id") String paramString1, @t(a="auth-token") String paramString2, @t(a="before-ts") long paramLong);
@f(a="/l/v/m/history")
public abstract b<HistorySinceResponse> getHistorySince(@t(a="page-id") String paramString1, @t(a="auth-token") String paramString2, @t(a="since") String paramString3);
@f(a="/l/v/m/delta")
public abstract b<DeltaResponse> getLogin(@t(a="event") String paramString1, @t(a="push-token") String paramString2, @t(a="platform") String paramString3, @t(a="visitor-ext") String paramString4, @t(a="visitor") String paramString5, @t(a="provided_auth_token") String paramString6, @t(a="location") String paramString7, @t(a="app-version") String paramString8, @t(a="visit-session-id") String paramString9, @t(a="page-id") String paramString10, @t(a="auth-token") String paramString11, @t(a="title") String paramString12, @t(a="since") long paramLong, @t(a="respond-immediately") boolean paramBoolean, @t(a="device-id") String paramString13);
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> rateOperator(@c(a="action") String paramString1, @c(a="operator_id") String paramString2, @c(a="rate") int paramInt, @c(a="page-id") String paramString3, @c(a="auth-token") String paramString4);
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> sendMessage(@c(a="action") String paramString1, @c(a="message", b=true) String paramString2, @c(a="client-side-id") String paramString3, @c(a="page-id") String paramString4, @c(a="auth-token") String paramString5, @c(a="hint_question") Boolean paramBoolean, @c(a="data") String paramString6);
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> setChatRead(@c(a="action") String paramString1, @c(a="chat-id") String paramString2, @c(a="page-id") String paramString3, @c(a="auth-token") String paramString4);
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> setVisitorTyping(@c(a="action") String paramString1, @c(a="typing") boolean paramBoolean1, @c(a="message-draft") String paramString2, @c(a="del-message-draft") boolean paramBoolean2, @c(a="page-id") String paramString3, @c(a="auth-token") String paramString4);
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> startChat(@c(a="action") String paramString1, @c(a="force-online") Boolean paramBoolean, @c(a="client-side-id") String paramString2, @c(a="page-id") String paramString3, @c(a="auth-token") String paramString4, @c(a="department-key") String paramString5, @c(a="first-question") String paramString6);
@e
@o(a="/l/v/m/action")
public abstract b<DefaultResponse> updatePushToken(@c(a="action") String paramString1, @c(a="push-token") String paramString2, @c(a="page-id") String paramString3, @c(a="auth-token") String paramString4);
@l
@o(a="/l/v/m/upload")
public abstract b<UploadResponse> uploadFile(@q w.b paramB, @q(a="chat-mode") ab paramAb1, @q(a="client-side-id") ab paramAb2, @q(a="page-id") ab paramAb3, @q(a="auth-token") ab paramAb4);
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
d3a0805b22b99263f7c32b330a49ec9f4b84a053
|
2ea1ca34b31d73d1ca8732cc3ed45668e8cdaab0
|
/snaker/snaker-component/src/main/java/org/snaker/engine/model/DecisionModel.java
|
46e83fbe8f825a8c650a317583cfcc2f4f07bbce
|
[] |
no_license
|
ChiRain/snaker
|
07008c6aa07f10ac79f1787b4969f5e45a9c19e5
|
808945ca4fe5e7b11a969531fd0801a571c21c17
|
refs/heads/master
| 2021-01-18T01:48:44.523645
| 2016-07-26T06:04:15
| 2016-07-26T06:04:15
| 65,979,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,092
|
java
|
/* Copyright 2013-2015 www.snakerflow.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.
*/
package org.snaker.engine.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.snaker.engine.DecisionHandler;
import org.snaker.engine.Expression;
import org.snaker.engine.SnakerException;
import org.snaker.engine.core.Execution;
import org.snaker.engine.core.ServiceContext;
import org.snaker.engine.helper.ClassHelper;
import org.snaker.engine.helper.StringHelper;
/**
* 决策定义decision元素
* @author yuqs
* @since 1.0
*/
public class DecisionModel extends NodeModel {
private static final Logger log = LoggerFactory.getLogger(DecisionModel.class);
/**
*
*/
private static final long serialVersionUID = -806621814645169999L;
/**
* 决策选择表达式串(需要表达式引擎解析)
*/
private String expr;
/**
* 决策处理类,对于复杂的分支条件,可通过handleClass来处理
*/
private String handleClass;
/**
* 决策处理类实例
*/
private DecisionHandler decide;
/**
* 表达式解析器
*/
private transient Expression expression;
public void exec(Execution execution) {
log.info(execution.getOrder().getId() + "->decision execution.getArgs():" + execution.getArgs());
if(expression == null) {
expression = ServiceContext.getContext().find(Expression.class);
}
log.info("expression is " + expression);
if(expression == null) throw new SnakerException("表达式解析器为空,请检查配置.");
String next = null;
if(StringHelper.isNotEmpty(expr)) {
next = expression.eval(String.class, expr, execution.getArgs());
} else if(decide != null) {
next = decide.decide(execution);
}
log.info(execution.getOrder().getId() + "->decision expression[expr=" + expr + "] return result:" + next);
boolean isfound = false;
for(TransitionModel tm : getOutputs()) {
if(StringHelper.isEmpty(next)) {
String expr = tm.getExpr();
if(StringHelper.isNotEmpty(expr) && expression.eval(Boolean.class, expr, execution.getArgs())) {
tm.setEnabled(true);
tm.execute(execution);
isfound = true;
}
} else {
if(tm.getName().equals(next)) {
tm.setEnabled(true);
tm.execute(execution);
isfound = true;
}
}
}
if(!isfound) throw new SnakerException(execution.getOrder().getId() + "->decision节点无法确定下一步执行路线");
}
public String getExpr() {
return expr;
}
public void setExpr(String expr) {
this.expr = expr;
}
public String getHandleClass() {
return handleClass;
}
public void setHandleClass(String handleClass) {
this.handleClass = handleClass;
if(StringHelper.isNotEmpty(handleClass)) {
decide = (DecisionHandler)ClassHelper.newInstance(handleClass);
}
}
@Override
public List<NodeModel> nextNodes(Execution execution) {
log.info(execution.getOrder().getId() + "->decision execution.getArgs():" + execution.getArgs());
if(expression == null) {
expression = ServiceContext.getContext().find(Expression.class);
}
log.info("expression is " + expression);
if(expression == null) throw new SnakerException("表达式解析器为空,请检查配置.");
String next = null;
if(StringHelper.isNotEmpty(expr)) {
next = expression.eval(String.class, expr, execution.getArgs());
} else if(decide != null) {
next = decide.decide(execution);
}
log.info(execution.getOrder().getId() + "->decision expression[expr=" + expr + "] return result:" + next);
boolean isfound = false;
List<NodeModel> list = new ArrayList<NodeModel>();
for(TransitionModel tm : getOutputs()) {
if(StringHelper.isEmpty(next)) {
String expr = tm.getExpr();
if(StringHelper.isNotEmpty(expr) && expression.eval(Boolean.class, expr, execution.getArgs())) {
list.addAll(tm.nextNodes(execution));
isfound = true;
}
} else {
if(tm.getName().equals(next)) {
list.addAll(tm.nextNodes(execution));
isfound = true;
}
}
}
if(isfound){
return list;
}else{
throw new SnakerException(execution.getOrder().getId() + "->decision节点无法确定下一步执行路线");
}
}
}
|
[
"lihuashan@ed19df75-bd51-b445-9863-9e54940520a8"
] |
lihuashan@ed19df75-bd51-b445-9863-9e54940520a8
|
e8159c005108a80b8b4d272cef9a48e5f8114801
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/cdrs-20201101/src/main/java/com/aliyun/cdrs20201101/models/ListPersonResultRequest.java
|
e47edf700af92f55b4a76581c233a9cee0568997
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 2,475
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cdrs20201101.models;
import com.aliyun.tea.*;
public class ListPersonResultRequest extends TeaModel {
@NameInMap("CorpId")
@Validation(required = true)
public String corpId;
@NameInMap("Age")
public String age;
@NameInMap("Gender")
public String gender;
@NameInMap("Profession")
public String profession;
@NameInMap("StartTime")
public String startTime;
@NameInMap("EndTime")
public String endTime;
@NameInMap("PageNumber")
@Validation(required = true)
public Long pageNumber;
@NameInMap("PageSize")
@Validation(required = true)
public Long pageSize;
public static ListPersonResultRequest build(java.util.Map<String, ?> map) throws Exception {
ListPersonResultRequest self = new ListPersonResultRequest();
return TeaModel.build(map, self);
}
public ListPersonResultRequest setCorpId(String corpId) {
this.corpId = corpId;
return this;
}
public String getCorpId() {
return this.corpId;
}
public ListPersonResultRequest setAge(String age) {
this.age = age;
return this;
}
public String getAge() {
return this.age;
}
public ListPersonResultRequest setGender(String gender) {
this.gender = gender;
return this;
}
public String getGender() {
return this.gender;
}
public ListPersonResultRequest setProfession(String profession) {
this.profession = profession;
return this;
}
public String getProfession() {
return this.profession;
}
public ListPersonResultRequest setStartTime(String startTime) {
this.startTime = startTime;
return this;
}
public String getStartTime() {
return this.startTime;
}
public ListPersonResultRequest setEndTime(String endTime) {
this.endTime = endTime;
return this;
}
public String getEndTime() {
return this.endTime;
}
public ListPersonResultRequest setPageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
public Long getPageNumber() {
return this.pageNumber;
}
public ListPersonResultRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
public Long getPageSize() {
return this.pageSize;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
d4306a0faaf8ef8fabe4cfe61efbafe930547194
|
e3d6330b1358fffaef563248fb15722aeb977acc
|
/upa-test/src/test/java/net/vpc/upa/test/importexport/ExportUC2.java
|
627380bda9e2228d08a953cf11ada8f40c41b4bc
|
[] |
no_license
|
nesrinesghaier/upa
|
92fd779838c045e0e3bbe71d33870e5b13d2e3fe
|
2eb005e03477adad5eb127c830bc654ab62f5cc9
|
refs/heads/master
| 2021-04-09T11:33:36.714597
| 2018-02-24T12:04:41
| 2018-02-24T12:04:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,718
|
java
|
package net.vpc.upa.test.importexport;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.logging.Logger;
import net.vpc.upa.*;
import net.vpc.upa.bulk.DataWriter;
import net.vpc.upa.bulk.ImportExportManager;
import net.vpc.upa.bulk.TextCSVFormatter;
import net.vpc.upa.filters.FieldFilters;
import net.vpc.upa.test.util.LogUtils;
import net.vpc.upa.config.Id;
import net.vpc.upa.test.model.SharedClientType;
import net.vpc.upa.test.util.PUUtils;
import net.vpc.upa.types.DateTime;
import net.vpc.upa.types.Month;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* @author Taha BEN SALAH <taha.bensalah@gmail.com>
* @creationdate 9/16/12 10:02 PM
*/
public class ExportUC2 {
private static final Logger log = Logger.getLogger(ExportUC2.class.getName());
private static Business bo;
@BeforeClass
public static void setup() {
PersistenceUnit pu = PUUtils.createTestPersistenceUnit(ExportUC2.class);
pu.addEntity(Client.class);
pu.start();
bo = UPA.makeSessionAware(new Business());
}
@Test
public void process() throws IOException {
bo.process();
}
public static class Business {
public void process() throws IOException {
PersistenceUnit pu = UPA.getPersistenceUnit();
Assert.assertEquals(ExportUC2.class.getName(),pu.getName());
Entity entityManager = pu.getEntity("Client");
Client c = entityManager.createObject();
c.setFirstName("Ahmed");
c.setLastName("Gharbi");
pu.persist(c);
ImportExportManager iem = pu.getImportExportManager();
ByteArrayOutputStream out = new ByteArrayOutputStream();
TextCSVFormatter f = iem.createTextCSVFormatter(out);
f.setDataRowConverter(iem.createEntityConverter("Client", FieldFilters.byName("firstName","lastName")));
f.setWriteHeader(true);
DataWriter w = f.createWriter();
w.writeRow(new Object[]{"hello", "world"});
w.writeObject(c);
w.close();
String result = new String(out.toByteArray());
String expected = "firstName;lastName\n" +
"hello;world\n" +
"Ahmed;Gharbi\n";
System.out.println(result);
Assert.assertEquals(expected.trim(),result.trim());
}
}
@net.vpc.upa.config.Entity(path = "Test Modules/Model")
public static class Client {
@Id
@net.vpc.upa.config.Sequence
private Integer id;
//error if int should correct
// private int id;
private String firstName;
private String lastName;
private java.util.Date birthDate;
private Timestamp timestampValue;
private DateTime dateTimeValue;
private Date dateOnlyValue;
private Month monthValue;
private Integer integerValue;
private Long longValue;
private SharedClientType clientType;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public java.util.Date getBirthDate() {
return birthDate;
}
public void setBirthDate(java.util.Date dateValue) {
this.birthDate = dateValue;
}
public Timestamp getTimestampValue() {
return timestampValue;
}
public void setTimestampValue(Timestamp timestampValue) {
this.timestampValue = timestampValue;
}
public DateTime getDateTimeValue() {
return dateTimeValue;
}
public void setDateTimeValue(DateTime dateTimeValue) {
this.dateTimeValue = dateTimeValue;
}
public Date getDateOnlyValue() {
return dateOnlyValue;
}
public void setDateOnlyValue(Date dateOnlyValue) {
this.dateOnlyValue = dateOnlyValue;
}
public Month getMonthValue() {
return monthValue;
}
public void setMonthValue(Month monthValue) {
this.monthValue = monthValue;
}
public Integer getIntegerValue() {
return integerValue;
}
public void setIntegerValue(Integer integerValue) {
this.integerValue = integerValue;
}
public Long getLongValue() {
return longValue;
}
public void setLongValue(Long longValue) {
this.longValue = longValue;
}
public SharedClientType getClientType() {
return clientType;
}
public void setClientType(SharedClientType clientType) {
this.clientType = clientType;
}
@Override
public String toString() {
return "Client{"
+ "id=" + id
+ ", firstName='" + firstName + '\''
+ ", lastName='" + lastName + '\''
+ '}';
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
* This function is provided only for test purposes the compare expected
* and found values {@inheritDoc}
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Client client = (Client) o;
if (id != null ? !id.equals(client.id) : client.id != null) {
return false;
}
if (firstName != null ? !firstName.equals(client.firstName) : client.firstName != null) {
return false;
}
if (lastName != null ? !lastName.equals(client.lastName) : client.lastName != null) {
return false;
}
return true;
}
/**
* This function is provided only for test purposes the compare expected
* and found values {@inheritDoc}
*/
@Override
public int hashCode() {
int result = id;
result = 31 * result + (firstName != null ? firstName.hashCode() : 0);
return result;
}
}
}
|
[
"vpc@linux-booster"
] |
vpc@linux-booster
|
39a9ffc560f7fbe6cd1b99bd9c3b6f24b57e813e
|
942d78bbcbdd320f57b77076fbfbd0cbe1e7edbe
|
/gateway-route/src/main/java/com/weweibuy/gateway/route/model/po/RoutePredicate.java
|
bf72937b2681e78c8e60476c354fc05dd94777c9
|
[] |
no_license
|
guoguoqiang/gateway
|
708e4bc10d841486d400cd86c14f001692583bdd
|
fcd810e9f2449045e9089ffdbe2ef577bc26daf6
|
refs/heads/master
| 2022-11-06T17:06:36.828185
| 2020-06-17T15:40:35
| 2020-06-17T15:40:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 403
|
java
|
package com.weweibuy.gateway.route.model.po;
import java.time.LocalDateTime;
import lombok.Data;
@Data
public class RoutePredicate {
private Long id;
private String routeId;
private String predicateId;
private String predicateName;
private Integer predicatePriority;
private Boolean isDelete;
private LocalDateTime createTime;
private LocalDateTime updateTime;
}
|
[
"ak514250@126.com"
] |
ak514250@126.com
|
778ac874098e9cb98321436d312115582a766205
|
a90b947e3d817844604ca13aa9b21bad53d34a83
|
/src/main/com/cloudstong/platform/core/xml/BpmFormTableXmlList.java
|
db53adc539e65960ebd6c9b6c176e55584c1271d
|
[] |
no_license
|
duanlp/yunplatform
|
460bcc89a0de67d8221ebf28517f995f8f3cae41
|
f274bd9da90c375b6b8117ef20daf481f0563797
|
refs/heads/master
| 2021-05-07T03:57:15.693668
| 2017-09-11T10:28:21
| 2017-09-11T10:28:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 748
|
java
|
package com.cloudstong.platform.core.xml;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "bpm")
@XmlAccessorType(XmlAccessType.FIELD)
public class BpmFormTableXmlList {
@XmlElements({ @javax.xml.bind.annotation.XmlElement(name = "tables", type = BpmFormTableXml.class) })
private List<BpmFormTableXml> bpmFormTableXmlList;
public List<BpmFormTableXml> getBpmFormTableXmlList() {
return bpmFormTableXmlList;
}
public void setBpmFormTableXmlList(List<BpmFormTableXml> bpmFormTableXmlList) {
this.bpmFormTableXmlList = bpmFormTableXmlList;
}
}
|
[
"wangzhiyun999@163.com"
] |
wangzhiyun999@163.com
|
7a647c6e6f2b3f3133d82eccb3f784a0dc7d7324
|
61928fc99ec5fd73d083cf381617a28f78d832c3
|
/skysail.server.db/src/io/skysail/server/db/DbClassName.java
|
bd9ae538449533b343c0e09d51153c2cf86cc580
|
[
"Apache-2.0"
] |
permissive
|
evandor/skysail
|
399af3c02449930f9082ffb52bd6fd720e3afc04
|
ca26e9b98e802111aa63a5edf719a331c0f6d062
|
refs/heads/master
| 2021-01-23T14:56:04.522658
| 2017-05-30T09:22:16
| 2017-05-30T09:22:16
| 54,588,839
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 283
|
java
|
package io.skysail.server.db;
/**
* the orientdb class name used is derived from the java class name
* by substituting dots with underscores.
*
*/
public class DbClassName {
public static String of(Class<?> cls) {
return cls.getName().replace(".", "_");
}
}
|
[
"evandor@gmail.com"
] |
evandor@gmail.com
|
63771b2beaa211a0996fa48ec9ebefd265ad626e
|
027ea40776f0771b2481cfcd32d8fefeb2d69aad
|
/uikit/src/com/netease/nim/uikit/common/ui/widget/calendar/DefaultWeekView.java
|
3dc6f156e4d56767faf5a67ae39692f94d788d89
|
[
"MIT"
] |
permissive
|
JJOGGER/weiliao
|
4cd040b9705077167adad3c18128f469a2fdb2d8
|
ebfc2c6207210a077b439daa5a727da7379455eb
|
refs/heads/master
| 2022-11-18T03:55:33.735070
| 2020-06-23T14:25:37
| 2020-06-23T14:25:37
| 256,714,248
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,942
|
java
|
/*
* Copyright (C) 2016 huanghaibin_dev <huanghaibin_dev@163.com>
* WebSite https://github.com/MiracleTimes-Dev
* 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.netease.nim.uikit.common.ui.widget.calendar;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
/**
* 默认高仿魅族周视图
* Created by huanghaibin on 2017/11/29.
*/
public final class DefaultWeekView extends WeekView {
private Paint mTextPaint = new Paint();
private Paint mSchemeBasicPaint = new Paint();
private float mRadio;
private int mPadding;
private float mSchemeBaseLine;
public DefaultWeekView(Context context) {
super(context);
mTextPaint.setTextSize(CalendarUtil.dipToPx(context, 8));
mTextPaint.setColor(0xffffffff);
mTextPaint.setAntiAlias(true);
mTextPaint.setFakeBoldText(true);
mSchemeBasicPaint.setAntiAlias(true);
mSchemeBasicPaint.setStyle(Paint.Style.FILL);
mSchemeBasicPaint.setTextAlign(Paint.Align.CENTER);
mSchemeBasicPaint.setColor(0xffed5353);
mSchemeBasicPaint.setFakeBoldText(true);
mRadio = CalendarUtil.dipToPx(getContext(), 7);
mPadding = CalendarUtil.dipToPx(getContext(), 4);
Paint.FontMetrics metrics = mSchemeBasicPaint.getFontMetrics();
mSchemeBaseLine = mRadio - metrics.descent + (metrics.bottom - metrics.top) / 2 + CalendarUtil.dipToPx(getContext(), 1);
}
/**
* 如果需要点击Scheme没有效果,则return true
*
* @param canvas canvas
* @param calendar 日历日历calendar
* @param x 日历Card x起点坐标
* @param hasScheme hasScheme 非标记的日期
* @return true 则绘制onDrawScheme,因为这里背景色不是是互斥的
*/
@Override
protected boolean onDrawSelected(Canvas canvas, Calendar calendar, int x, boolean hasScheme) {
mSelectedPaint.setStyle(Paint.Style.FILL);
mSelectedPaint.setColor(Color.BLUE);
canvas.drawRect(x + mPadding, mPadding, x + mItemWidth - mPadding, mItemHeight - mPadding, mSelectedPaint);
return true;
}
@Override
protected void onDrawScheme(Canvas canvas, Calendar calendar, int x) {
mSchemeBasicPaint.setColor(calendar.getSchemeColor());
mSchemeBasicPaint.setColor(Color.BLUE);
canvas.drawCircle(x + mItemWidth - mPadding - mRadio / 2, mPadding + mRadio, mRadio, mSchemeBasicPaint);
canvas.drawText(calendar.getScheme(),
x + mItemWidth - mPadding - mRadio / 2 - getTextWidth(calendar.getScheme()) / 2,
mPadding + mSchemeBaseLine, mTextPaint);
}
/**
* 获取字体的宽
* @param text text
* @return return
*/
private float getTextWidth(String text) {
return mTextPaint.measureText(text);
}
@Override
protected void onDrawText(Canvas canvas, Calendar calendar, int x, boolean hasScheme, boolean isSelected) {
int cx = x + mItemWidth / 2;
int top = -mItemHeight / 6;
if (isSelected) {
canvas.drawText(String.valueOf(calendar.getDay()), cx, mTextBaseLine + top,
mSelectTextPaint);
canvas.drawText(calendar.getLunar(), cx, mTextBaseLine + mItemHeight / 10, mSelectedLunarTextPaint);
} else if (hasScheme) {
canvas.drawText(String.valueOf(calendar.getDay()), cx, mTextBaseLine + top,
calendar.isCurrentDay() ? mCurDayTextPaint :
calendar.isCurrentMonth() ? mSchemeTextPaint : mOtherMonthTextPaint);
canvas.drawText(calendar.getLunar(), cx, mTextBaseLine + mItemHeight / 10,
calendar.isCurrentDay() ? mCurDayLunarTextPaint :
mSchemeLunarTextPaint);
} else {
canvas.drawText(String.valueOf(calendar.getDay()), cx, mTextBaseLine + top,
calendar.isCurrentDay() ? mCurDayTextPaint :
calendar.isCurrentMonth() ? mCurMonthTextPaint : mOtherMonthTextPaint);
canvas.drawText(calendar.getLunar(), cx, mTextBaseLine + mItemHeight / 10,
calendar.isCurrentDay() ? mCurDayLunarTextPaint :
calendar.isCurrentMonth() ? mCurMonthLunarTextPaint : mOtherMonthLunarTextPaint);
}
}
}
|
[
"980328722@qq.com"
] |
980328722@qq.com
|
7c700b1cbb499b431f6c36a68ec297d6fc72e87c
|
ead5a617b23c541865a6b57cf8cffcc1137352f2
|
/decompiled/sources/com/fasterxml/jackson/databind/ser/std/StdDelegatingSerializer.java
|
1cef4a21c6afeb6affd2dc2631bc6f7599517fdd
|
[] |
no_license
|
erred/uva-ssn
|
73a6392a096b38c092482113e322fdbf9c3c4c0e
|
4fb8ea447766a735289b96e2510f5a8d93345a8c
|
refs/heads/master
| 2022-02-26T20:52:50.515540
| 2019-10-14T12:30:33
| 2019-10-14T12:30:33
| 210,376,140
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,049
|
java
|
package com.fasterxml.jackson.databind.ser.std;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.BeanProperty;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper;
import com.fasterxml.jackson.databind.jsonschema.SchemaAware;
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
import com.fasterxml.jackson.databind.ser.ContextualSerializer;
import com.fasterxml.jackson.databind.ser.ResolvableSerializer;
import com.fasterxml.jackson.databind.util.Converter;
import java.io.IOException;
import java.lang.reflect.Type;
public class StdDelegatingSerializer extends StdSerializer<Object> implements JsonFormatVisitable, SchemaAware, ContextualSerializer, ResolvableSerializer {
protected final Converter<Object, ?> _converter;
protected final JsonSerializer<Object> _delegateSerializer;
protected final JavaType _delegateType;
public StdDelegatingSerializer(Converter<?, ?> converter) {
super(Object.class);
this._converter = converter;
this._delegateType = null;
this._delegateSerializer = null;
}
public <T> StdDelegatingSerializer(Class<T> cls, Converter<T, ?> converter) {
super(cls, false);
this._converter = converter;
this._delegateType = null;
this._delegateSerializer = null;
}
public StdDelegatingSerializer(Converter<Object, ?> converter, JavaType javaType, JsonSerializer<?> jsonSerializer) {
super(javaType);
this._converter = converter;
this._delegateType = javaType;
this._delegateSerializer = jsonSerializer;
}
/* access modifiers changed from: protected */
public StdDelegatingSerializer withDelegate(Converter<Object, ?> converter, JavaType javaType, JsonSerializer<?> jsonSerializer) {
if (getClass() == StdDelegatingSerializer.class) {
return new StdDelegatingSerializer(converter, javaType, jsonSerializer);
}
StringBuilder sb = new StringBuilder();
sb.append("Sub-class ");
sb.append(getClass().getName());
sb.append(" must override 'withDelegate'");
throw new IllegalStateException(sb.toString());
}
public void resolve(SerializerProvider serializerProvider) throws JsonMappingException {
if (this._delegateSerializer != null && (this._delegateSerializer instanceof ResolvableSerializer)) {
((ResolvableSerializer) this._delegateSerializer).resolve(serializerProvider);
}
}
public JsonSerializer<?> createContextual(SerializerProvider serializerProvider, BeanProperty beanProperty) throws JsonMappingException {
JsonSerializer<Object> jsonSerializer = this._delegateSerializer;
JavaType javaType = this._delegateType;
if (jsonSerializer == null) {
if (javaType == null) {
javaType = this._converter.getOutputType(serializerProvider.getTypeFactory());
}
if (!javaType.isJavaLangObject()) {
jsonSerializer = serializerProvider.findValueSerializer(javaType);
}
}
if (jsonSerializer instanceof ContextualSerializer) {
jsonSerializer = serializerProvider.handleSecondaryContextualization(jsonSerializer, beanProperty);
}
if (jsonSerializer == this._delegateSerializer && javaType == this._delegateType) {
return this;
}
return withDelegate(this._converter, javaType, jsonSerializer);
}
/* access modifiers changed from: protected */
public Converter<Object, ?> getConverter() {
return this._converter;
}
public JsonSerializer<?> getDelegatee() {
return this._delegateSerializer;
}
public void serialize(Object obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
Object convertValue = convertValue(obj);
if (convertValue == null) {
serializerProvider.defaultSerializeNull(jsonGenerator);
return;
}
JsonSerializer<Object> jsonSerializer = this._delegateSerializer;
if (jsonSerializer == null) {
jsonSerializer = _findSerializer(convertValue, serializerProvider);
}
jsonSerializer.serialize(convertValue, jsonGenerator, serializerProvider);
}
public void serializeWithType(Object obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider, TypeSerializer typeSerializer) throws IOException {
Object convertValue = convertValue(obj);
JsonSerializer<Object> jsonSerializer = this._delegateSerializer;
if (jsonSerializer == null) {
jsonSerializer = _findSerializer(obj, serializerProvider);
}
jsonSerializer.serializeWithType(convertValue, jsonGenerator, serializerProvider, typeSerializer);
}
@Deprecated
public boolean isEmpty(Object obj) {
return isEmpty(null, obj);
}
public boolean isEmpty(SerializerProvider serializerProvider, Object obj) {
Object convertValue = convertValue(obj);
if (this._delegateSerializer != null) {
return this._delegateSerializer.isEmpty(serializerProvider, convertValue);
}
return obj == null;
}
public JsonNode getSchema(SerializerProvider serializerProvider, Type type) throws JsonMappingException {
if (this._delegateSerializer instanceof SchemaAware) {
return ((SchemaAware) this._delegateSerializer).getSchema(serializerProvider, type);
}
return super.getSchema(serializerProvider, type);
}
public JsonNode getSchema(SerializerProvider serializerProvider, Type type, boolean z) throws JsonMappingException {
if (this._delegateSerializer instanceof SchemaAware) {
return ((SchemaAware) this._delegateSerializer).getSchema(serializerProvider, type, z);
}
return super.getSchema(serializerProvider, type);
}
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper jsonFormatVisitorWrapper, JavaType javaType) throws JsonMappingException {
if (this._delegateSerializer != null) {
this._delegateSerializer.acceptJsonFormatVisitor(jsonFormatVisitorWrapper, javaType);
}
}
/* access modifiers changed from: protected */
public Object convertValue(Object obj) {
return this._converter.convert(obj);
}
/* access modifiers changed from: protected */
public JsonSerializer<Object> _findSerializer(Object obj, SerializerProvider serializerProvider) throws JsonMappingException {
return serializerProvider.findValueSerializer(obj.getClass());
}
}
|
[
"seankhliao@gmail.com"
] |
seankhliao@gmail.com
|
bad5e266eee2af50d3c92c8da2d84a965b099fcc
|
84b3b214f67a72595a58b2d20112b56e5a0c28f5
|
/at.ac.tuwien.big.simplejava/src-gen/at/ac/tuwien/big/simplejava/VariableDeclaration.java
|
e3fc042959aead30d404f89f7919e479b1289cee
|
[] |
no_license
|
rbill/virtualedit
|
383fa512414ba72feb934cb96fb59e1370fc23a4
|
b54e0c7247f2d4e53f488d8ef13df1b962f9bb87
|
refs/heads/master
| 2021-01-21T07:01:01.551062
| 2018-10-29T08:03:00
| 2018-10-29T08:03:00
| 83,294,659
| 1
| 1
| null | 2017-10-31T18:08:13
| 2017-02-27T09:53:05
|
Java
|
UTF-8
|
Java
| false
| false
| 2,680
|
java
|
/**
* generated by Xtext 2.11.0
*/
package at.ac.tuwien.big.simplejava;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Variable Declaration</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link at.ac.tuwien.big.simplejava.VariableDeclaration#getParameter <em>Parameter</em>}</li>
* <li>{@link at.ac.tuwien.big.simplejava.VariableDeclaration#getExpression <em>Expression</em>}</li>
* </ul>
*
* @see at.ac.tuwien.big.simplejava.SimplejavaPackage#getVariableDeclaration()
* @model
* @generated
*/
public interface VariableDeclaration extends Statement, SimpleVariableDeclaration
{
/**
* Returns the value of the '<em><b>Parameter</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parameter</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parameter</em>' containment reference.
* @see #setParameter(SimpleParameter)
* @see at.ac.tuwien.big.simplejava.SimplejavaPackage#getVariableDeclaration_Parameter()
* @model containment="true"
* @generated
*/
SimpleParameter getParameter();
/**
* Sets the value of the '{@link at.ac.tuwien.big.simplejava.VariableDeclaration#getParameter <em>Parameter</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parameter</em>' containment reference.
* @see #getParameter()
* @generated
*/
void setParameter(SimpleParameter value);
/**
* Returns the value of the '<em><b>Expression</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Expression</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Expression</em>' containment reference.
* @see #setExpression(GenericExpression)
* @see at.ac.tuwien.big.simplejava.SimplejavaPackage#getVariableDeclaration_Expression()
* @model containment="true"
* @generated
*/
GenericExpression getExpression();
/**
* Sets the value of the '{@link at.ac.tuwien.big.simplejava.VariableDeclaration#getExpression <em>Expression</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Expression</em>' containment reference.
* @see #getExpression()
* @generated
*/
void setExpression(GenericExpression value);
} // VariableDeclaration
|
[
"bill@big.tuwien.ac.at"
] |
bill@big.tuwien.ac.at
|
1ee5dedcc5aa5c4d3af309e78367361f66868736
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_1674486_0/java/WebCumo/Start.java
|
baddf208173e027c0faf6fa8df8511e8af851cec
|
[] |
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,420
|
java
|
package net.webcumo.codejam.c1.a;
import java.awt.FileDialog;
import java.awt.Frame;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
/**
*
* @author Cumo
*/
public class Start {
public static void main(String... agrs) {
Frame d = null;
FileDialog fd = new FileDialog(d, "Load in file", FileDialog.LOAD);
fd.setVisible(true);
String file = fd.getDirectory() + fd.getFile();
if (file != null) {
File f = new File(file);
File fo = new File ("result.out");
if (!f.exists())
return;
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(fo));
BufferedReader br = new BufferedReader(new FileReader(f));
String t = br.readLine();
int countSamples = Integer.parseInt(t);
for (int i = 0 ; i < countSamples ; i++) {
String result = "Case #" + (i + 1) + ": " + DataLoader.checkSample(br) + "\n";
bw.write(result);
}
bw.close();
br.close();
} catch (NullPointerException npe) {
//ignore at current
} catch (Exception e) {
//ignore at current
}
}
fd.dispose();
}
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
41438fea6e19795a2e4917ba41cc93520e37b9ec
|
d85420b556c249325e2d9b67f658f05e3c43d6fa
|
/src/main/java/com/cxy/favourite/domain/annotation/CurrentUser.java
|
19a04dc42b09eeb3564f118da78af7a1844573fd
|
[] |
no_license
|
currynice/favourite
|
de264236dfb2b6c8544512d9dd2fcaf8ade77324
|
d1664061833e0eaee5b9bd82b006c5eba320955e
|
refs/heads/master
| 2020-05-01T10:07:13.855049
| 2019-04-15T07:49:03
| 2019-04-15T07:49:03
| 177,414,461
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 342
|
java
|
package com.cxy.favourite.domain.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface CurrentUser {
boolean required() default true;
}
|
[
"694975984@qq.com"
] |
694975984@qq.com
|
c7766f2e2c6702e79528998d745dd6de4649fa97
|
831ee3a11c0928777d46d07393a2ef049ca33bc6
|
/src/test/java/io/github/jhipster/application/web/rest/UserJWTControllerIT.java
|
04d6c129b7d30a7f9ffc6d7a9d01859edc455546
|
[] |
no_license
|
balaji-ranga/temple-form-application
|
246a29da9703691045af495e169eba1d8cecc3df
|
59f6a9cf6b2368fc1359e751c831be7ae1a42cff
|
refs/heads/master
| 2022-12-25T10:54:06.451119
| 2019-08-31T13:30:47
| 2019-08-31T13:30:47
| 205,547,618
| 0
| 0
| null | 2022-12-16T05:03:22
| 2019-08-31T13:24:20
|
Java
|
UTF-8
|
Java
| false
| false
| 4,876
|
java
|
package io.github.jhipster.application.web.rest;
import io.github.jhipster.application.TempleHundiFormApp;
import io.github.jhipster.application.domain.User;
import io.github.jhipster.application.repository.UserRepository;
import io.github.jhipster.application.security.jwt.TokenProvider;
import io.github.jhipster.application.web.rest.errors.ExceptionTranslator;
import io.github.jhipster.application.web.rest.vm.LoginVM;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.transaction.annotation.Transactional;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.Matchers.isEmptyString;
import static org.hamcrest.Matchers.not;
/**
* Integration tests for the {@link UserJWTController} REST controller.
*/
@SpringBootTest(classes = TempleHundiFormApp.class)
public class UserJWTControllerIT {
@Autowired
private TokenProvider tokenProvider;
@Autowired
private AuthenticationManagerBuilder authenticationManager;
@Autowired
private UserRepository userRepository;
@Autowired
private PasswordEncoder passwordEncoder;
@Autowired
private ExceptionTranslator exceptionTranslator;
private MockMvc mockMvc;
@BeforeEach
public void setup() {
UserJWTController userJWTController = new UserJWTController(tokenProvider, authenticationManager);
this.mockMvc = MockMvcBuilders.standaloneSetup(userJWTController)
.setControllerAdvice(exceptionTranslator)
.build();
}
@Test
@Transactional
public void testAuthorize() throws Exception {
User user = new User();
user.setLogin("user-jwt-controller");
user.setEmail("user-jwt-controller@example.com");
user.setActivated(true);
user.setPassword(passwordEncoder.encode("test"));
userRepository.saveAndFlush(user);
LoginVM login = new LoginVM();
login.setUsername("user-jwt-controller");
login.setPassword("test");
mockMvc.perform(post("/api/authenticate")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(login)))
.andExpect(status().isOk())
.andExpect(jsonPath("$.id_token").isString())
.andExpect(jsonPath("$.id_token").isNotEmpty())
.andExpect(header().string("Authorization", not(nullValue())))
.andExpect(header().string("Authorization", not(isEmptyString())));
}
@Test
@Transactional
public void testAuthorizeWithRememberMe() throws Exception {
User user = new User();
user.setLogin("user-jwt-controller-remember-me");
user.setEmail("user-jwt-controller-remember-me@example.com");
user.setActivated(true);
user.setPassword(passwordEncoder.encode("test"));
userRepository.saveAndFlush(user);
LoginVM login = new LoginVM();
login.setUsername("user-jwt-controller-remember-me");
login.setPassword("test");
login.setRememberMe(true);
mockMvc.perform(post("/api/authenticate")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(login)))
.andExpect(status().isOk())
.andExpect(jsonPath("$.id_token").isString())
.andExpect(jsonPath("$.id_token").isNotEmpty())
.andExpect(header().string("Authorization", not(nullValue())))
.andExpect(header().string("Authorization", not(isEmptyString())));
}
@Test
public void testAuthorizeFails() throws Exception {
LoginVM login = new LoginVM();
login.setUsername("wrong-user");
login.setPassword("wrong password");
mockMvc.perform(post("/api/authenticate")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(login)))
.andExpect(status().isUnauthorized())
.andExpect(jsonPath("$.id_token").doesNotExist())
.andExpect(header().doesNotExist("Authorization"));
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
5ea94b4bb6abc73ab10068cbe7de8b7e6e1417b9
|
c98567efe635facefb97c2d4f988ca286fbf2a7f
|
/base-module/function-module/imageloader/src/main/java/com/muheda/imageloader/formation/RoundedCornersFitCenterTransformation.java
|
6b1efeeefc3f7c30401b78794b96592c4f8e17cb
|
[] |
no_license
|
laomayuxiaoma/android_digital_city
|
71d71a7a60b78a5c0b51aa5242b26518bf12db96
|
0d581d08ab423b989e424c43c486d713930aba35
|
refs/heads/master
| 2022-11-29T19:35:25.985374
| 2020-07-28T07:42:19
| 2020-07-28T07:42:19
| 283,138,254
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,594
|
java
|
package com.muheda.imageloader.formation;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import androidx.annotation.NonNull;
import com.muheda.imageloader.util.DisplayUtil;
import java.security.MessageDigest;
/**
* 圆角图片(fitCenter)
* Created by zhangming on 2018/6/7.
*/
public class RoundedCornersFitCenterTransformation extends CustomFitCenterTransformation {
private int mRadius;
private static final String ID = "com.muheda.imageloader.formation.RoundedCornersCenterCropTransformation";
private static final byte[] ID_BYTES = ID.getBytes(CHARSET);
public RoundedCornersFitCenterTransformation(Context context, int mRadius) {
super();
this.mRadius = DisplayUtil.dip2px(context, mRadius);
}
@Override
protected void drawMaskLayer(Canvas canvas, int width, int height, Paint paint) {
canvas.drawRoundRect(new RectF(0, 0, width, height), mRadius, mRadius, paint);
}
@Override
public boolean equals(Object o) {
// if (o instanceof RoundedCornersFitCenterTransformation) {
// RoundedCornersFitCenterTransformation other = (RoundedCornersFitCenterTransformation) o;
// return mRadius == other.mRadius;
// }
return o instanceof RoundedCornersFitCenterTransformation;
}
@Override
public int hashCode() {
return ID.hashCode();
}
@Override
public void updateDiskCacheKey(@NonNull MessageDigest messageDigest) {
messageDigest.update(ID_BYTES);
}
}
|
[
"m.zhang@muheda.com"
] |
m.zhang@muheda.com
|
d428c60b65d373dc17043b49a733cbaa586dc455
|
3b91ed788572b6d5ac4db1bee814a74560603578
|
/com/tencent/mm/protocal/c/bpb.java
|
d9a0d01772025dc0c362631d4246b6eac7b21ba8
|
[] |
no_license
|
linsir6/WeChat_java
|
a1deee3035b555fb35a423f367eb5e3e58a17cb0
|
32e52b88c012051100315af6751111bfb6697a29
|
refs/heads/master
| 2020-05-31T05:40:17.161282
| 2018-08-28T02:07:02
| 2018-08-28T02:07:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,217
|
java
|
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
import java.util.LinkedList;
public final class bpb extends a {
public int jRb;
public long rlK;
public bhy sbD;
protected final int a(int i, Object... objArr) {
int S;
if (i == 0) {
f.a.a.c.a aVar = (f.a.a.c.a) objArr[0];
aVar.T(1, this.rlK);
aVar.fT(2, this.jRb);
if (this.sbD != null) {
aVar.fV(3, this.sbD.boi());
this.sbD.a(aVar);
}
return 0;
} else if (i == 1) {
S = (f.a.a.a.S(1, this.rlK) + 0) + f.a.a.a.fQ(2, this.jRb);
if (this.sbD != null) {
return S + f.a.a.a.fS(3, this.sbD.boi());
}
return S;
} else if (i == 2) {
f.a.a.a.a aVar2 = new f.a.a.a.a((byte[]) objArr[0], unknownTagHandler);
for (S = a.a(aVar2); S > 0; S = a.a(aVar2)) {
if (!super.a(aVar2, this, S)) {
aVar2.cJS();
}
}
return 0;
} else if (i != 3) {
return -1;
} else {
f.a.a.a.a aVar3 = (f.a.a.a.a) objArr[0];
bpb bpb = (bpb) objArr[1];
int intValue = ((Integer) objArr[2]).intValue();
switch (intValue) {
case 1:
bpb.rlK = aVar3.vHC.rZ();
return 0;
case 2:
bpb.jRb = aVar3.vHC.rY();
return 0;
case 3:
LinkedList IC = aVar3.IC(intValue);
int size = IC.size();
for (intValue = 0; intValue < size; intValue++) {
byte[] bArr = (byte[]) IC.get(intValue);
bhy bhy = new bhy();
f.a.a.a.a aVar4 = new f.a.a.a.a(bArr, unknownTagHandler);
for (boolean z = true; z; z = bhy.a(aVar4, bhy, a.a(aVar4))) {
}
bpb.sbD = bhy;
}
return 0;
default:
return -1;
}
}
}
}
|
[
"707194831@qq.com"
] |
707194831@qq.com
|
e4ae330e53804a61af58d9cad57bfb901790c69e
|
3f7faa87000832c92213eb065fffe5ffb922dffb
|
/src/test/java/com/ibatis/sqlmap/engine/builder/SqlSourceFactory.java
|
00f27b6a1f4657d39a3543368d0c826e297575e1
|
[
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
allanim/mybatis-3
|
23bdd3d26ed6be3c7255baa5a119c4139784ca74
|
1982c68a5937172e518a3a3689c1eb35f0d0055f
|
refs/heads/master
| 2022-07-22T18:32:13.689568
| 2013-04-25T14:39:43
| 2013-04-25T14:39:43
| 9,728,776
| 0
| 0
|
Apache-2.0
| 2022-06-29T19:34:52
| 2013-04-28T10:38:30
|
Java
|
UTF-8
|
Java
| false
| false
| 2,777
|
java
|
/*
* Copyright 2009-2012 The MyBatis Team
*
* 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.ibatis.sqlmap.engine.builder;
import com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.SqlTagHandler;
import com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.SqlTagHandlerFactory;
import org.apache.ibatis.mapping.SqlSource;
import org.apache.ibatis.parsing.XNode;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class SqlSourceFactory {
private XmlSqlMapParser mapParser;
private XmlSqlMapConfigParser configParser;
private Ibatis2Configuration configuration;
public SqlSourceFactory(XmlSqlMapParser mapParser) {
this.mapParser = mapParser;
this.configParser = mapParser.getConfigParser();
this.configuration = mapParser.getConfigParser().getConfiguration();
}
public SqlSource newSqlSourceIntance(XmlSqlMapParser mapParser, XNode context) {
if (isDynamic(context, false)) {
return new DynamicSqlSource(mapParser, context);
} else {
return new SimpleSqlSource(mapParser, context);
}
}
private boolean isDynamic(XNode node, boolean isDynamic) {
NodeList children = node.getNode().getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
XNode child = node.newXNode(children.item(i));
String nodeName = child.getNode().getNodeName();
if (child.getNode().getNodeType() == Node.CDATA_SECTION_NODE
|| child.getNode().getNodeType() == Node.TEXT_NODE) {
} else if ("include".equals(nodeName)) {
String refid = child.getStringAttribute("refid");
XNode includeNode = configParser.getSqlFragment(refid);
if (includeNode == null) {
String nsrefid = mapParser.applyNamespace(refid);
includeNode = configParser.getSqlFragment(nsrefid);
if (includeNode == null) {
throw new RuntimeException("Could not find SQL statement to include with refid '" + refid + "'");
}
}
isDynamic = isDynamic(includeNode, isDynamic);
} else {
SqlTagHandler handler = SqlTagHandlerFactory.getSqlTagHandler(nodeName);
if (handler != null) {
isDynamic = true;
}
}
}
return isDynamic;
}
}
|
[
"eduardo.macarron@gmail.com"
] |
eduardo.macarron@gmail.com
|
2610501a8263c32a67792662b502bfc5ce0c36d8
|
277bf3a0d3587808141942d0f0d42882e7b3cd8f
|
/ProjectSourceCode /Apache Commons Math v3.5/src/main/java/org/apache/commons/math3/optim/SimpleBounds.java
|
50a05925bcc6d2d7f09a6dd5b228ffb71832e954
|
[
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain",
"Unlicense"
] |
permissive
|
yashgolwala/Software_Measurement_Team_M
|
d1b13389651dacbc8f735dc87a7d0992829c8909
|
3d2aef4c0711b7a02155a42ca6b08bb6c2693d4c
|
refs/heads/master
| 2020-06-11T11:19:32.815146
| 2019-06-26T03:45:15
| 2019-06-26T03:45:15
| 193,592,231
| 0
| 0
|
Unlicense
| 2019-06-25T16:17:29
| 2019-06-24T22:57:31
|
HTML
|
UTF-8
|
Java
| false
| false
| 129
|
java
|
version https://git-lfs.github.com/spec/v1
oid sha256:22db6d2568180ba7cc8935969dbde9a85ebfd5e5fd4557d7dab3749d6a251e79
size 2358
|
[
"golwalayash@gmail.com"
] |
golwalayash@gmail.com
|
4f5badf42c012fea2ea13d5fbc3e24b952bed8a7
|
647eef4da03aaaac9872c8b210e4fc24485e49dc
|
/TestMemory/wandoujia/src/main/java/com/wandoujia/p4/community/c/c.java
|
e8b39622c667b9595247cfb22f5891266fe7ce5b
|
[] |
no_license
|
AlbertSnow/git_workspace
|
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
|
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
|
refs/heads/master
| 2021-01-22T17:57:16.169136
| 2016-12-05T15:59:46
| 2016-12-05T15:59:46
| 28,154,580
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 464
|
java
|
package com.wandoujia.p4.community.c;
import com.wandoujia.p4.community.http.model.CommunityUserModel;
public final class c
{
int a;
CommunityUserModel b;
private c(int paramInt, CommunityUserModel paramCommunityUserModel)
{
this.a = paramInt;
this.b = paramCommunityUserModel;
}
}
/* Location: C:\WorkSpace\WandDouJiaNotificationBar\WanDou1.jar
* Qualified Name: com.wandoujia.p4.community.c.c
* JD-Core Version: 0.6.0
*/
|
[
"zhaojialiang@conew.com"
] |
zhaojialiang@conew.com
|
6f00bf459fd970f419aac0c61fc1b36bf457c607
|
ca5a629be9db27eb65558aa84044e2d26e740fd2
|
/proj1/src/chap14/four/two/UsingLocalVariableExample.java
|
58b1a6de009f0d81a6fabe5435178fd894036af2
|
[] |
no_license
|
yundonghyeock/Java_train_One
|
c061caf1ff920b1d5a5dd1b1c89916f754653f74
|
1479b0edde91d7de2d38ee2dfd1f43febb81deea
|
refs/heads/master
| 2023-06-30T07:54:08.199540
| 2021-08-03T09:05:44
| 2021-08-03T09:05:44
| 384,331,830
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 197
|
java
|
package chap14.four.two;
public class UsingLocalVariableExample {
public static void main(String[] args) {
UsingLocalVariable ulv = new UsingLocalVariable();
ulv.method(20);
}
}
|
[
"504@DESKTOP-B0KVD9C"
] |
504@DESKTOP-B0KVD9C
|
528efc0e1bd29fc5609f58a56ace47ccd74ecd35
|
e82c1473b49df5114f0332c14781d677f88f363f
|
/MED-CLOUD/med-data/src/main/java/nta/med/data/dao/medi/adm/Adm9910Repository.java
|
55ae2e399bc3b3564d1682cbed396f9f3ae169d6
|
[] |
no_license
|
zhiji6/mih
|
fa1d2279388976c901dc90762bc0b5c30a2325fc
|
2714d15853162a492db7ea8b953d5b863c3a8000
|
refs/heads/master
| 2023-08-16T18:35:19.836018
| 2017-12-28T09:33:19
| 2017-12-28T09:33:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 333
|
java
|
package nta.med.data.dao.medi.adm;
import nta.med.core.domain.adm.Adm9910;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* @author dainguyen.
*/
@Repository
public interface Adm9910Repository extends JpaRepository<Adm9910, Long>, Adm9910RepositoryCustom {
}
|
[
"duc_nt@nittsusystem-vn.com"
] |
duc_nt@nittsusystem-vn.com
|
08bb5f3e1476270471c1723741adbb7d4f165018
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project328/src/main/java/org/gradle/test/performance/largejavamultiproject/project328/p1641/Production32820.java
|
72be2bd06828dcfcfc4efd75b1e250bab15ff829
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,245
|
java
|
package org.gradle.test.performance.largejavamultiproject.project328.p1641;
import org.gradle.test.performance.largejavamultiproject.project328.p1640.Production32817;
import org.gradle.test.performance.largejavamultiproject.project328.p1640.Production32818;
import org.gradle.test.performance.largejavamultiproject.project328.p1640.Production32819;
public class Production32820 {
private Production32817 property0;
public Production32817 getProperty0() {
return property0;
}
public void setProperty0(Production32817 value) {
property0 = value;
}
private Production32818 property1;
public Production32818 getProperty1() {
return property1;
}
public void setProperty1(Production32818 value) {
property1 = value;
}
private Production32819 property2;
public Production32819 getProperty2() {
return property2;
}
public void setProperty2(Production32819 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;
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
9b98ba7c0b812a50fea3c1c5239d54318f0af244
|
a20a6d24c5164a55824d9233ea164e69756f22c1
|
/src/main/java/com/javax0/socodot/ObjectBuilder.java
|
fbcc065b5ac5a801ba2cb38f5f784009e504aff7
|
[
"Apache-2.0"
] |
permissive
|
verhas/socodot
|
6fbaffa5ab96e165e3b6e2c2db0b8bd335d270b9
|
4724f65d217c909c88e83aedb6f8cd0a7d78d19e
|
refs/heads/master
| 2021-01-02T09:26:39.674352
| 2014-03-13T11:56:33
| 2014-03-13T11:56:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,214
|
java
|
package com.javax0.socodot;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import org.apache.velocity.VelocityContext;
public class ObjectBuilder {
private final String pluginClassName;
private final VelocityContext context;
final private Map<String, String> pluginParams;
ObjectBuilder(String pluginClassName, VelocityContextBuilder contextBuilder) {
this.pluginClassName = pluginClassName;
this.context = contextBuilder.getContext();
this.pluginParams = contextBuilder.getPluginParams();
}
public void as(String name) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException,
InvocationTargetException {
Object pluginObject;
try {
final Constructor<?> constructor = Class.forName(pluginClassName).getConstructor(Map.class);
pluginObject = constructor.newInstance(pluginParams);
} catch (NoSuchMethodException e) {
pluginObject = Class.forName(pluginClassName).newInstance();
}
context.put(name, pluginObject);
}
}
|
[
"peter@verhas.com"
] |
peter@verhas.com
|
e92c313d2fd39dc7345804a6879fd15348edad7d
|
27f5457d47aaf3491f0d64032247adc08efba867
|
/vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcOverlook.java
|
89982fa0024c9a8afa21ce0f6da86bd795c540f2
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
silentbalanceyh/vertx-zero
|
e73d22f4213263933683e4ebe87982ba68803878
|
1ede4c3596f491d5251eefaaaedc56947ef784cd
|
refs/heads/master
| 2023-06-11T23:10:29.241769
| 2023-06-08T16:15:33
| 2023-06-08T16:15:33
| 108,104,586
| 348
| 71
|
Apache-2.0
| 2020-04-10T02:15:18
| 2017-10-24T09:21:56
|
HTML
|
UTF-8
|
Java
| false
| false
| 2,499
|
java
|
package io.vertx.mod.rbac.authorization.child;
import io.vertx.core.json.JsonObject;
import io.vertx.mod.rbac.authorization.Align;
import io.vertx.mod.rbac.authorization.Amalgam;
import io.vertx.mod.rbac.authorization.Assembler;
import io.vertx.mod.rbac.authorization.ScDetent;
import io.vertx.mod.rbac.logged.ProfileGroup;
import io.vertx.mod.rbac.logged.ProfileRole;
import io.vertx.mod.rbac.logged.ProfileType;
import java.util.List;
public class GcOverlook implements ScDetent {
private transient final List<ProfileGroup> original;
public GcOverlook(final List<ProfileGroup> original) {
this.original = original;
}
private List<ProfileRole> before(final List<ProfileRole> profiles) {
/* Find eager group in Critical */
final ProfileGroup lazy = Align.lazy(this.original);
/* Filter by group key */
final List<ProfileRole> source = Amalgam.children(profiles, lazy);
/* Then filter by priority */
return Amalgam.lazy(source);
}
@Override
public JsonObject proc(final List<ProfileRole> profiles) {
/* Group Search */
final JsonObject group = new JsonObject();
final List<ProfileRole> source = this.before(profiles);
Amalgam.logGroup(this.getClass(), source);
/*
* group = CHILD_OVERLOOK, role = UNION
* No priority of ( group, role )
*
* !!!Finished
*/
Assembler.union(ProfileType.CHILD_OVERLOOK_UNION, source).accept(group);
/*
* group = CHILD_OVERLOOK, role = EAGER
* No priority of ( group ), pickup the highest of each group out
* ( Pick Up the role that group has only one )
*
* !!!Finished
*/
Assembler.eager(ProfileType.CHILD_OVERLOOK_EAGER, source).accept(group);
/*
* group = CHILD_OVERLOOK, role = LAZY
* No priority of ( group ), pickup the lowest of each group out
* ( Exclude the role that group has only one )
*
* !!!Finished
*/
Assembler.lazy(ProfileType.CHILD_OVERLOOK_LAZY, source).accept(group);
/*
* group = CHILD_OVERLOOK, role = INTERSECT
* No priority of ( group ), pickup all the role's intersect
* All group must contain the role or it's no access.
*
* !!!Finished
*/
Assembler.intersect(ProfileType.CHILD_OVERLOOK_INTERSECT, source).accept(group);
return group;
}
}
|
[
"silentbalanceyh@126.com"
] |
silentbalanceyh@126.com
|
1e29fb7e794bf4216aad280b3ea831e9dc6baa49
|
f43504b11e935796128f07ab166e7d47a248f204
|
/Low_level_Design_Problems/SwiggyInterview/src/main/java/com/swiggy/order/stateslamonitor/constants/OrderFinalStates.java
|
d431584c67a259dec8cbac15d595c9d9cad5c33d
|
[] |
no_license
|
vish35/LLD
|
4e3b4b6a22e334e1ab69871e5ded526613bb73f8
|
1d8f209213f74395fc1121a5862ce2a467b09f94
|
refs/heads/main
| 2023-07-30T09:10:39.696754
| 2021-09-15T05:46:45
| 2021-09-15T05:46:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 316
|
java
|
package com.swiggy.order.stateslamonitor.constants;
public enum OrderFinalStates {
CANCELLED, DELIVERED;
public static boolean isOrderStateFinal(String state){
for(OrderFinalStates stateEnum : OrderFinalStates.values()){
if(stateEnum.name().equals(state)){
return true;
}
}
return false;
}
}
|
[
"gowtkum@amazon.com"
] |
gowtkum@amazon.com
|
c44ffb3f81c4cb031562eb396c2901f0691ed16d
|
aae4a246d22af2637f15b2c87c49c07a89dbb556
|
/eclipse-workspace/Day 03 - Inheritance basics/src/com/unisys/model/Employee.java
|
198d5e8b58a83ebfa639297ce9249c92976310f5
|
[] |
no_license
|
kayartaya-vinod/2020-JUNE-UNISYS-CORE-JAVA
|
5d6da9e38023e5b1a41e7330c1ca4e3da54be4e6
|
4c500a0a43a3529f9d6aabe0ac513b69a4062c1d
|
refs/heads/master
| 2022-11-05T07:09:01.437745
| 2020-06-24T04:08:46
| 2020-06-24T04:08:46
| 269,257,431
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,163
|
java
|
package com.unisys.model;
import com.unisys.entity.Person;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
public class Employee extends Person {
private int id;
private double salary = 56000;
static {
// used for initializing static (and usually final) member variables
System.out.println("Employee class loaded into VM");
}
public Employee() {
// super(); // implicitly done.
System.out.println("Employee() called");
}
public Employee(int id, String name, String email, double salary) {
// 1. super constructor call must be the first one here.
// 2. super constructor can be invoked only from a constructor (not from any method)
// 3. If you don't call super class constructor the default no-arg super class constructor is called
super(name, email);
this.id = id;
this.salary = salary;
}
public Employee(int id, String name, String email) {
super(name, email);
this.id = id;
}
@Override
public void print() {
System.out.println("Id = " + id);
super.print();
System.out.println("Salary = Rs." + salary);
System.out.println();
}
}
|
[
"vinod@vinod.co"
] |
vinod@vinod.co
|
79e8c5cc89615943dedbd799aa4665e54e7e4b2c
|
1b71d1d68cd32704ad71c876e34aac79dc68a9a0
|
/src/networking/GreetingServer.java
|
9f6abc10b938cd68409bf00a41d255c26094a6fd
|
[] |
no_license
|
PavloShchur/Java_02
|
7a92877663a949f5f5771d0771931120346299a6
|
613aa510e17b77066601263b777e30e0053418a3
|
refs/heads/master
| 2021-01-21T11:30:54.562586
| 2017-09-01T09:04:40
| 2017-09-01T09:04:40
| 85,980,480
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,412
|
java
|
package networking;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketTimeoutException;
public class GreetingServer extends Thread {
ServerSocket serverSocket;
public GreetingServer(int port) throws IOException {
serverSocket = new ServerSocket(port);
serverSocket.setSoTimeout(10000);
}
public void run() {
while (true) {
try {
System.out.println("Waiting for client on port " + serverSocket.getLocalPort() + "...");
Socket server = serverSocket.accept();
System.out.println("Just connected to " + server.getRemoteSocketAddress());
DataInputStream in = new DataInputStream(server.getInputStream());
System.out.println(in.readUTF());
DataOutputStream out = new DataOutputStream(server.getOutputStream());
out.writeUTF("Thank you for connecting to " + server.getLocalSocketAddress() + "\nGoodbye!");
server.close();
} catch (SocketTimeoutException s) {
System.out.println("Socket timed out!");
break;
} catch (IOException e) {
e.printStackTrace();
break;
}
}
}
public static void main(String[] args) {
int port = Integer.parseInt(args[0]);
try {
Thread t = new GreetingServer(port);
t.start();
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
"pavloshchur@gmail.com"
] |
pavloshchur@gmail.com
|
181a3923bc0032c73c49d40f383c7819c1b74fbc
|
01dfb27f1288a9ed62f83be0e0aeedf121b4623a
|
/Folha/src/java/com/t2tierp/folhapagamento/java/FolhaEventoVO.java
|
9b71462797398265d027d20f2b0beca346e371d8
|
[
"MIT"
] |
permissive
|
FabinhuSilva/T2Ti-ERP-2.0-Java-OpenSwing
|
deb486a13c264268d82e5ea50d84d2270b75772a
|
9531c3b6eaeaf44fa1e31b11baa630dcae67c18e
|
refs/heads/master
| 2022-11-16T00:03:53.426837
| 2020-07-08T00:36:48
| 2020-07-08T00:36:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,606
|
java
|
/*
* The MIT License
*
* Copyright: Copyright (C) 2014 T2Ti.COM
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* The author may be contacted at: t2ti.com@gmail.com
*
* @author Claudio de Barros (T2Ti.com)
* @version 2.0
*/
package com.t2tierp.folhapagamento.java;
import com.t2tierp.cadastros.java.EmpresaVO;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.openswing.swing.message.receive.java.ValueObjectImpl;
@Entity
@Table(name = "FOLHA_EVENTO")
public class FolhaEventoVO extends ValueObjectImpl implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "ID")
private Integer id;
@Column(name = "CODIGO")
private String codigo;
@Column(name = "NOME")
private String nome;
@Column(name = "DESCRICAO")
private String descricao;
@Column(name = "TIPO")
private String tipo;
@Column(name = "UNIDADE")
private String unidade;
@Column(name = "BASE_CALCULO")
private String baseCalculo;
@Column(name = "TAXA")
private BigDecimal taxa;
@Column(name = "RUBRICA_ESOCIAL")
private String rubricaEsocial;
@Column(name = "COD_INCIDENCIA_PREVIDENCIA")
private String codIncidenciaPrevidencia;
@Column(name = "COD_INCIDENCIA_IRRF")
private String codIncidenciaIrrf;
@Column(name = "COD_INCIDENCIA_FGTS")
private String codIncidenciaFgts;
@Column(name = "COD_INCIDENCIA_SINDICATO")
private String codIncidenciaSindicato;
@Column(name = "REPERCUTE_DSR")
private String repercuteDsr;
@Column(name = "REPERCUTE_13")
private String repercute13;
@Column(name = "REPERCUTE_FERIAS")
private String repercuteFerias;
@Column(name = "REPERCUTE_AVISO")
private String repercuteAviso;
@JoinColumn(name = "ID_EMPRESA", referencedColumnName = "ID")
@ManyToOne(optional = false)
private EmpresaVO empresa;
public FolhaEventoVO() {
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCodigo() {
return codigo;
}
public void setCodigo(String codigo) {
this.codigo = codigo;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public String getTipo() {
return tipo;
}
public void setTipo(String tipo) {
this.tipo = tipo;
}
public String getUnidade() {
return unidade;
}
public void setUnidade(String unidade) {
this.unidade = unidade;
}
public String getBaseCalculo() {
return baseCalculo;
}
public void setBaseCalculo(String baseCalculo) {
this.baseCalculo = baseCalculo;
}
public BigDecimal getTaxa() {
return taxa;
}
public void setTaxa(BigDecimal taxa) {
this.taxa = taxa;
}
public String getRubricaEsocial() {
return rubricaEsocial;
}
public void setRubricaEsocial(String rubricaEsocial) {
this.rubricaEsocial = rubricaEsocial;
}
public String getCodIncidenciaPrevidencia() {
return codIncidenciaPrevidencia;
}
public void setCodIncidenciaPrevidencia(String codIncidenciaPrevidencia) {
this.codIncidenciaPrevidencia = codIncidenciaPrevidencia;
}
public String getCodIncidenciaIrrf() {
return codIncidenciaIrrf;
}
public void setCodIncidenciaIrrf(String codIncidenciaIrrf) {
this.codIncidenciaIrrf = codIncidenciaIrrf;
}
public String getCodIncidenciaFgts() {
return codIncidenciaFgts;
}
public void setCodIncidenciaFgts(String codIncidenciaFgts) {
this.codIncidenciaFgts = codIncidenciaFgts;
}
public String getCodIncidenciaSindicato() {
return codIncidenciaSindicato;
}
public void setCodIncidenciaSindicato(String codIncidenciaSindicato) {
this.codIncidenciaSindicato = codIncidenciaSindicato;
}
public String getRepercuteDsr() {
return repercuteDsr;
}
public void setRepercuteDsr(String repercuteDsr) {
this.repercuteDsr = repercuteDsr;
}
public String getRepercute13() {
return repercute13;
}
public void setRepercute13(String repercute13) {
this.repercute13 = repercute13;
}
public String getRepercuteFerias() {
return repercuteFerias;
}
public void setRepercuteFerias(String repercuteFerias) {
this.repercuteFerias = repercuteFerias;
}
public String getRepercuteAviso() {
return repercuteAviso;
}
public void setRepercuteAviso(String repercuteAviso) {
this.repercuteAviso = repercuteAviso;
}
public EmpresaVO getEmpresa() {
return empresa;
}
public void setEmpresa(EmpresaVO empresa) {
this.empresa = empresa;
}
@Override
public String toString() {
return "com.t2tierp.folhapagamento.java.FolhaEventoVO[id=" + id + "]";
}
}
|
[
"claudiobsi@gmail.com"
] |
claudiobsi@gmail.com
|
844da44d9d29cc50419d76ec84ca255bdbbc8b40
|
14f19dc81986c6a2ac92fce6376deffda9163ec5
|
/app/src/main/java/afkt/project/base/app/BaseMVPActivity.java
|
5a3843235cadcd6bc4ea5f12bad7a2f326b81f83
|
[
"Apache-2.0"
] |
permissive
|
fbBob/DevUtils
|
c72deda56128279369b004f49d37c5cb8addea96
|
6cafe2e0bbcb929e4534d74a55f145a86eb21675
|
refs/heads/master
| 2022-11-07T10:52:56.964671
| 2020-07-02T02:51:15
| 2020-07-02T02:51:15
| 276,584,094
| 1
| 0
|
Apache-2.0
| 2020-07-02T07:55:17
| 2020-07-02T07:55:16
| null |
UTF-8
|
Java
| false
| false
| 6,781
|
java
|
package afkt.project.base.app;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.recyclerview.widget.RecyclerView;
import afkt.project.R;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import dev.base.mvp.DevBaseMVPActivity;
import dev.base.mvp.MVP;
import dev.utils.app.ViewUtils;
import dev.utils.app.toast.ToastTintUtils;
import dev.widget.function.StateLayout;
/**
* detail: Base MVP 基类
* @author Ttt
* <pre>
* 代码与 BaseActivity 完全一致, 只是继承 DevBaseMVPActivity
* </pre>
*/
public abstract class BaseMVPActivity<P extends MVP.Presenter> extends DevBaseMVPActivity<P> {
// = View =
// 最外层 View
protected LinearLayout vid_ba_linear;
// Title View
protected LinearLayout vid_ba_title_linear;
// View 容器
protected LinearLayout vid_ba_content_linear;
// 状态布局容器
protected LinearLayout vid_ba_state_linear;
// 状态布局
protected StateLayout stateLayout;
// = Object =
// Unbinder
public Unbinder unbinder;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// 布局初始化
layoutInit();
// 默认调用初始化方法, 按顺序执行
initMethodOrder();
}
@Override
protected void onDestroy() {
super.onDestroy();
// 解绑 View
if (unbinder != null) {
unbinder.unbind();
}
}
// ================
// = Content View =
// ================
@Override
public final int contentId() {
return R.layout.base_activity;
}
@Override
public View contentView() {
return null;
}
// ============
// = 二次封装 =
// ============
/**
* 获取 Layout id
* @return Content Layout Id
*/
public abstract int getLayoutId();
/**
* 布局初始化
* <pre>
* 可以自己添加统一的 Title、StateLayout 等
* </pre>
*/
private void layoutInit() {
// 初始化 View
vid_ba_linear = ViewUtils.findViewById(this, R.id.vid_ba_linear);
vid_ba_title_linear = ViewUtils.findViewById(this, R.id.vid_ba_title_linear);
vid_ba_content_linear = ViewUtils.findViewById(this, R.id.vid_ba_content_linear);
vid_ba_state_linear = ViewUtils.findViewById(this, R.id.vid_ba_state_linear);
// 清空旧的 View
ViewUtils.removeAllViews(vid_ba_content_linear);
// 获取 Layout Id View
View layoutView = ViewUtils.inflate(this, getLayoutId(), null);
// 如果获取 为 null
if (layoutView == null) layoutView = contentView();
if (layoutView != null) {
// 添加 View
LinearLayout.LayoutParams contentViewLP = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
vid_ba_content_linear.addView(layoutView, contentViewLP);
// 插入 StateLayout
insertStateLayout();
// 绑定 View
unbinder = ButterKnife.bind(this, layoutView);
}
}
// ============
// = 状态布局 =
// ============
/**
* 插入 State Layout
*/
public void insertStateLayout() {
if (stateLayout != null) vid_ba_state_linear.removeView(stateLayout);
if (stateLayout == null) stateLayout = new StateLayout(this);
// 添加 View
LinearLayout.LayoutParams contentViewLP = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
vid_ba_state_linear.addView(stateLayout, contentViewLP);
}
// =========
// = Toast =
// =========
/**
* 显示 Toast
* @param success 是否成功样式
* @param text Toast 文本
*/
public void showToast(boolean success, String text) {
if (success) {
ToastTintUtils.success(text);
} else {
ToastTintUtils.error(text);
}
}
/**
* 显示 Toast
* @param success 是否成功样式
*/
public void showToast(boolean success) {
showToast(success, "操作成功", "操作失败");
}
/**
* 显示 Toast
* @param success 是否成功样式
* @param successText 成功 Toast 文本
* @param errorText 错误 Toast 文本
*/
public void showToast(boolean success, String successText, String errorText) {
showToast(success, success ? successText : errorText);
}
// ============
// = 特殊方法 =
// ============
/**
* 注册 Adapter 观察者
* @param recyclerView {@link RecyclerView}
*/
public void registerAdapterDataObserver(RecyclerView recyclerView) {
registerAdapterDataObserver(recyclerView, null, false);
}
/**
* 注册 Adapter 观察者
* @param recyclerView {@link RecyclerView}
* @param isRefAdapter 是否刷新适配器
*/
public void registerAdapterDataObserver(RecyclerView recyclerView, boolean isRefAdapter) {
registerAdapterDataObserver(recyclerView, null, isRefAdapter);
}
/**
* 注册 Adapter 观察者
* @param recyclerView {@link RecyclerView}
* @param adapterDataObserver Adapter 观察者
* @param isRefAdapter 是否刷新适配器
*/
public void registerAdapterDataObserver(RecyclerView recyclerView, RecyclerView.AdapterDataObserver adapterDataObserver, boolean isRefAdapter) {
if (recyclerView != null) {
RecyclerView.Adapter adapter = recyclerView.getAdapter();
if (adapter != null) {
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
@Override
public void onChanged() {
super.onChanged();
// 获取数据总数
int itemCount = adapter.getItemCount();
// 如果为 null 特殊处理
ViewUtils.reverseVisibilitys(itemCount != 0, vid_ba_content_linear, vid_ba_state_linear);
// 判断是否不存在数据
if (itemCount == 0) {
stateLayout.showEmptyData();
}
if (adapterDataObserver != null) {
adapterDataObserver.onChanged();
}
}
});
// 刷新适配器
if (isRefAdapter) adapter.notifyDataSetChanged();
}
}
}
}
|
[
"13798405957@163.com"
] |
13798405957@163.com
|
647123d17c97d7f268d90e9d51a6da9fda3a108a
|
ed58225e220e7860f79a7ddaedfe62c5373e6f9d
|
/GOLauncher1.5_main_screen/GOLauncher1.5_main_screen/src/com/jiubang/ggheart/data/DatabaseException.java
|
933d6da2c757cd02e89b6dbf7c46b039661e7c36
|
[] |
no_license
|
led-os/samplea1
|
f453125996384ef5453c3dca7c42333cc9534853
|
e55e57f9d5c7de0e08c6795851acbc1b1679d3a1
|
refs/heads/master
| 2021-08-30T05:37:00.963358
| 2017-12-03T08:55:00
| 2017-12-03T08:55:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 214
|
java
|
package com.jiubang.ggheart.data;
public class DatabaseException extends Exception {
private static final long serialVersionUID = 1396155837630180169L;
public DatabaseException(Exception e) {
super(e);
}
}
|
[
"clteir28410@chacuo.net"
] |
clteir28410@chacuo.net
|
f989ea07d0cb668aaa7702db679626397e72cc44
|
881c2a64a358223c79b575f7fee22531f2b2857c
|
/rest/src/main/java/org/opennms/correlator/rest/api/MetricAndCoefficientDTO.java
|
3a4f04ef4c9f30116f0622fcd6c5273db0516bdc
|
[] |
no_license
|
j-white/correlator
|
ce341301d982ce5dcd8f62f4cb40c968e90251da
|
c27cfeab2e4171b5120c798259ed421ea42cdff1
|
refs/heads/master
| 2021-01-19T18:35:38.026985
| 2015-06-29T15:09:49
| 2015-06-29T15:09:49
| 37,746,093
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,622
|
java
|
package org.opennms.correlator.rest.api;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;
import com.google.common.base.Objects;
public class MetricAndCoefficientDTO {
private final String m_resource;
private final String m_metric;
private final double m_coefficient;
@JsonCreator
public MetricAndCoefficientDTO(@JsonProperty("resource") String resource,@JsonProperty("metric") String metric,@JsonProperty("coefficient") Double coefficient) {
m_resource = resource;
m_metric = metric;
m_coefficient = coefficient;
}
public String getResource() {
return m_resource;
}
public String getMetric() {
return m_metric;
}
public double getCoefficient() {
return m_coefficient;
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
final MetricAndCoefficientDTO other = (MetricAndCoefficientDTO) obj;
return Objects.equal(m_resource, other.m_resource)
&& Objects.equal(m_metric, other.m_metric)
&& Objects.equal(m_coefficient, other.m_coefficient);
}
@Override
public int hashCode() {
return Objects.hashCode(
m_resource, m_metric, m_coefficient);
}
@Override
public String toString() {
return Objects.toStringHelper(this)
.add("resource", m_resource)
.add("metric", m_metric)
.add("coefficient", m_coefficient)
.toString();
}
}
|
[
"jesse@opennms.org"
] |
jesse@opennms.org
|
3503e30e191ab97f541c1a121afa1627467a7468
|
de2d2b955407d06269115dfb1558793967392f02
|
/bai1_tong_quan_spring_MVC/bai_tap/chuyen_doi_tien_te/src/main/java/vn/codegym/controllers/DoiTien.java
|
b0a712a88d48131b4a66595bc6fb822734db422d
|
[] |
no_license
|
khoa110298/NguyenKhoa_C0920G1_Module4
|
89ff3f29c10e395bee58da68ddde48b26c39fc48
|
cb26b558ed4b89043c1739b3a08669b82b1a0218
|
refs/heads/master
| 2023-02-21T01:02:45.837677
| 2021-01-28T08:06:54
| 2021-01-28T08:06:54
| 325,424,265
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,005
|
java
|
package vn.codegym.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import javax.servlet.http.HttpServletRequest;
@Controller
public class DoiTien {
@RequestMapping(value = "calculate",method = RequestMethod.GET)
public String getMoney(HttpServletRequest request, Model model){
String type = request.getParameter("type");
String money = request.getParameter("money");
try {
if (type.equals("usd")){
model.addAttribute("result",Double.parseDouble(money)*22000);
}else {
model.addAttribute("result",Double.parseDouble(money)/22000);
}
}catch (NumberFormatException e){
model.addAttribute("message","error");
}
return "show";
}
}
|
[
"nguyenkhoa15011998@gmail.com"
] |
nguyenkhoa15011998@gmail.com
|
2a2edadc8680c614b69e972a362f1a30778422cb
|
027cd7112ef70fbcdb2670a009654f360bb7e06e
|
/util/PageRetriever.java
|
edb040e1c20286ae21100b1b33e7754b32ac5d34
|
[] |
no_license
|
code4ghana/courseScheduler
|
1c968ebc249a75661bdc22075408fc60e6d0df19
|
9885df3638c6b287841f8a7b751cfe1523a68fb2
|
refs/heads/master
| 2016-08-03T14:06:38.715664
| 2014-08-03T03:37:36
| 2014-08-03T03:37:36
| 22,566,289
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,224
|
java
|
/* */ package util;
/* */
/* */ import java.io.BufferedReader;
/* */ import java.io.DataOutputStream;
/* */ import java.io.File;
/* */ import java.io.InputStreamReader;
/* */ import java.net.HttpURLConnection;
/* */ import java.net.URL;
/* */ import java.net.URLEncoder;
/* */ import java.util.ArrayList;
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */
/* */ public class PageRetriever
/* */ {
/* 16 */ String SEARCHURL = "http://rabi.phys.virginia.edu/mySIS/CS2/page.php?Semester=1112&Type=Search";
/* */
/* */ public ArrayList<String> getCoursePages(List<String[]> coursesToSearch) {
/* 19 */ ArrayList pages = new ArrayList();
/* */
/* 23 */ for (String[] course : coursesToSearch) {
/* 24 */ String[] adaptedCourse = new String[11];
/* 25 */ for (int i = 0; i < course.length; i++) {
/* 26 */ adaptedCourse[i] = course[i];
/* */ }
/* 28 */ pages.add(search(adaptedCourse));
/* */ }
/* */
/* 34 */ return pages;
/* */ }
/* */
/* */ public String search(String[] values) {
/* 38 */ String[] inputs = { "iMnemonic", "iNumber", "iInstructor", "iBuilding",
/* 39 */ "iRoom", "iDays", "iTime", "iUnits", "iTitle", "iTopic",
/* 40 */ "iDescription" };
/* 41 */ String page = "";
/* 42 */ Map data = new HashMap();
/* 43 */ for (int i = 0; i < inputs.length; i++)
/* 44 */ data.put(inputs[i], values[i] == null ? "" : values[i]);
/* */ try
/* */ {
/* 47 */ URL siteUrl = new URL(this.SEARCHURL);
/* 48 */ HttpURLConnection conn = (HttpURLConnection)siteUrl
/* 49 */ .openConnection();
/* 50 */ conn.setRequestMethod("POST");
/* 51 */ conn.setDoOutput(true);
/* 52 */ conn.setDoInput(true);
/* */
/* 54 */ DataOutputStream out = new DataOutputStream(conn.getOutputStream());
/* */
/* 56 */ String content = "";
/* 57 */ for (int i = 0; i < inputs.length; i++)
/* */ {
/* 59 */ if (i != 0) {
/* 60 */ content = content + "&";
/* */ }
/* 62 */ content = content + inputs[i] +
/* 63 */ "=" +
/* 64 */ URLEncoder.encode(values[i] == null ? "" : values[i],
/* 65 */ "UTF-8");
/* */ }
/* */
/* 68 */ out.writeBytes(content);
/* 69 */ out.flush();
/* 70 */ out.close();
/* 71 */ BufferedReader in = new BufferedReader(new InputStreamReader(
/* 72 */ conn.getInputStream()));
/* */
/* 74 */ File output = new File("out.html");
/* 75 */ if (output.isFile()) {
/* 76 */ output.delete();
/* 77 */ output.createNewFile();
/* */ }
/* 79 */ while (in.ready()) {
/* 80 */ page = page + in.readLine() + "\n";
/* */ }
/* 82 */ in.close();
/* */ }
/* */ catch (Exception localException)
/* */ {
/* */ }
/* */
/* 90 */ return page;
/* */ }
/* */ }
/* Location: /Users/jeff.kusi/Downloads/AutomatedScheduler - Fakhry & Kusi.jar
* Qualified Name: util.PageRetriever
* JD-Core Version: 0.6.2
*/
|
[
"jeff.kusi@willowtreeapps.com"
] |
jeff.kusi@willowtreeapps.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.