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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19acc33896ad693f1164474232c6780141f0b5b9
|
6dbae30c806f661bcdcbc5f5f6a366ad702b1eea
|
/Corpus/eclipse.jdt.ui/4407.java
|
e131a9a04056a9af2d115155a9506bac2a13d547
|
[
"MIT"
] |
permissive
|
SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018
|
d3fd21745dfddb2979e8ac262588cfdfe471899f
|
0f8f4affd0ce1ecaa8ff8f487426f8edd6ad02c0
|
refs/heads/master
| 2020-03-31T15:52:01.005505
| 2018-10-01T23:38:50
| 2018-10-01T23:38:50
| 152,354,327
| 1
| 0
|
MIT
| 2018-10-10T02:57:02
| 2018-10-10T02:57:02
| null |
UTF-8
|
Java
| false
| false
| 241
|
java
|
//12, 19, 12, 28
package p;
import java.util.ArrayList;
class A_30_Super {
static final ArrayList<? super Integer> NL = new ArrayList<Integer>();
}
class A extends A_30_Super {
void foo() {
Object o = NL.get(0);
}
}
|
[
"masudcseku@gmail.com"
] |
masudcseku@gmail.com
|
b2a40588b20828f51ab52d42d70522a3f4710156
|
0de0950d06cbae52ed4dd5199f005fbb935aecee
|
/src/edu/nyu/cs/designpatterns/chapter04/pizzafm/Pizza.java
|
c9e50193c756dd49889893f4855de58aec2e795e
|
[] |
no_license
|
elevenlee/HeadFirstDesignPatterns
|
3df6a1c9fe5a273c74d02346bcd36895b8a26aed
|
b57288ba4084a12dc6896ca0b62d6921c7f51550
|
refs/heads/master
| 2021-01-18T16:12:04.147608
| 2015-06-01T02:28:13
| 2015-06-01T02:28:13
| 27,415,277
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 956
|
java
|
package edu.nyu.cs.designpatterns.chapter04.pizzafm;
import java.util.ArrayList;
public abstract class Pizza {
protected String name;
protected String dough;
protected String sauce;
protected ArrayList<String> toppings = new ArrayList<String>();
void prepare() {
System.out.println("Preparing " + name);
System.out.println("Tossing dough...");
System.out.println("Adding sauce...");
System.out.println("Adding toppings: ");
for (int i = 0; i < toppings.size(); i++) {
System.out.println(" " + toppings.get(i));
}
}
void bake() {
System.out.println("Bake for 25 minutes at 350");
}
void cut() {
System.out.println("Cutting the pizza into diagonal slices");
}
void box() {
System.out.println("Place pizza in official PizzaStore box");
}
public String getName() {
return name;
}
}
|
[
"sl3268@nyu.edu"
] |
sl3268@nyu.edu
|
fda8de2dcf81678d99d7ae617db613978b3659d8
|
cf1fecbb47fb2634485bb17995adf796d2b5c04f
|
/workstation-temp/src/main/java/com/turingschool/demo/blockingqueue/linked/TicketConsumer.java
|
2e6d1399cb1158b7c074354769243f17e346db68
|
[] |
no_license
|
alangui/communication
|
c19c1c5a0e99b7cacaab5493d76579a481735f18
|
2a73672400d0f0d8694eec8c390627a039f1c2d2
|
refs/heads/master
| 2022-12-23T00:33:18.747065
| 2021-01-19T03:10:17
| 2021-01-19T03:10:17
| 155,523,863
| 0
| 0
| null | 2022-12-15T23:34:39
| 2018-10-31T08:31:46
|
Java
|
UTF-8
|
Java
| false
| false
| 672
|
java
|
package com.turingschool.demo.blockingqueue.linked;
import java.util.concurrent.LinkedBlockingQueue;
public class TicketConsumer implements Runnable {
private LinkedBlockingQueue queue;
private TicketProducer ticketProducer;
public TicketConsumer(LinkedBlockingQueue queue,
TicketProducer ticketProducer) {
this.queue = queue;
this.ticketProducer = ticketProducer;
}
@Override
public void run() {
while (ticketProducer.isRunning()) {
try {
System.out.println("Removing Ticket: " + queue.take());
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
System.out.println("TicketConsumer completed.");
}
}
|
[
"2516394328@qq.com"
] |
2516394328@qq.com
|
3fa08777461022703aff8dc2983eb1c56a36dc9e
|
b7bc6f1ed07c4912b8cae33e2b8b8ab65940228a
|
/services/xcommon/src/main/java/com/yogu/core/enums/order/ExpressStatus.java
|
c405690ab3910d31d52476b2e34d4a65dc4cae6c
|
[] |
no_license
|
mazingHins/yogu_server
|
a783f0cb5ad1f939fca1dc41f9a4408b7b922eda
|
2ded593ab3e4964d534fb72ca96496c61632e558
|
refs/heads/master
| 2021-09-08T05:22:34.385346
| 2018-03-07T14:34:46
| 2018-03-07T14:34:46
| 59,449,844
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,459
|
java
|
package com.yogu.core.enums.order;
import java.util.Arrays;
import java.util.List;
/**
* 第三方配送状态定义
*
* @date 2016年10月9日 下午6:15:30
* @author hins
*/
public enum ExpressStatus {
/**
* 未付款
*/
NON_PAYMENT((short) 10),
/**
* 已付款 ,等待配送<br>
*/
HAS_PAYMENT((short) 20),
/**
* 跟第三方配送下单成功
*/
CREATE_THIRD_ORDER((short) 30),
/**
* 第三方接单
*/
THIRD_ACCEPT_ORDER((short) 40),
/**
* 第三方已取货
*/
THIRD_PICK_UP((short) 50),
/**
* 配送中
*/
DELIVERY((short) 60),
/**
* 第三方确认送达
*/
THIRD_CONFIRM_RECEIPT((short) 70),
/**
* 取消配送
*/
CANCEL_EXPRESS((short) 80);
private short value;
private ExpressStatus(short value) {
this.value = value;
}
public short getValue() {
return value;
}
/**
* 有效的配送状态集合
*/
public static List<Short> getEffective() {
return Arrays.asList(NON_PAYMENT.getValue(), HAS_PAYMENT.getValue(), CREATE_THIRD_ORDER.getValue(), THIRD_ACCEPT_ORDER.getValue(),
THIRD_PICK_UP.getValue(), DELIVERY.getValue(), THIRD_CONFIRM_RECEIPT.getValue());
}
/**
* 顺丰进行中的状态集合
*/
public static List<Short> getSfGoing(){
return Arrays.asList(CREATE_THIRD_ORDER.getValue(), THIRD_ACCEPT_ORDER.getValue(),THIRD_PICK_UP.getValue(), DELIVERY.getValue());
}
public static List<Short> getSfEffective(){
return Arrays.asList(CREATE_THIRD_ORDER.getValue(), THIRD_ACCEPT_ORDER.getValue(),THIRD_PICK_UP.getValue(), DELIVERY.getValue(), THIRD_CONFIRM_RECEIPT.getValue());
}
/**
* 支付后有效的配送状态集合
*/
public static List<Short> getHasPayEffective(){
return Arrays.asList(HAS_PAYMENT.getValue(), CREATE_THIRD_ORDER.getValue(), THIRD_ACCEPT_ORDER.getValue(),
THIRD_PICK_UP.getValue(), DELIVERY.getValue(), THIRD_CONFIRM_RECEIPT.getValue());
}
public static List<Short> getHasPay(){
return Arrays.asList(HAS_PAYMENT.getValue(), CREATE_THIRD_ORDER.getValue(), THIRD_ACCEPT_ORDER.getValue(),
THIRD_PICK_UP.getValue(), DELIVERY.getValue(), THIRD_CONFIRM_RECEIPT.getValue(), CANCEL_EXPRESS.getValue());
}
public static List<Short> getAll(){
return Arrays.asList(NON_PAYMENT.getValue(), HAS_PAYMENT.getValue(), CREATE_THIRD_ORDER.getValue(), THIRD_ACCEPT_ORDER.getValue(),
THIRD_PICK_UP.getValue(), DELIVERY.getValue(), THIRD_CONFIRM_RECEIPT.getValue(), CANCEL_EXPRESS.getValue());
}
}
|
[
"qiujun@ibeiliao.com"
] |
qiujun@ibeiliao.com
|
31bf702044a35b52d78ced5504093dd952e29b6b
|
7d18bce36c7b0d990985a979ecd1f6f4469a0132
|
/src/main/java/com/insigma/config/Swagger2Config.java
|
889ccccf58f20ae1417bdd848955b23cc8967442
|
[] |
no_license
|
wengweng85/myapi
|
f76fbecdac9f3a5db2d9bc4101faeb2f5b4f7fe9
|
59d7661b7167d7a7df2462e95828cc6b1ea10844
|
refs/heads/master
| 2021-01-21T22:19:15.849162
| 2017-09-13T07:00:32
| 2017-09-13T07:00:32
| 102,149,343
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,869
|
java
|
package com.insigma.config;
import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration //让Spring来加载该类配置
@EnableWebMvc //启用Mvc,非springboot框架需要引入注解@EnableWebMvc
@EnableSwagger2 //启用Swagger2
public class Swagger2Config {
@Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo()).select()
//扫描指定包中的swagger注解
//.apis(RequestHandlerSelectors.basePackage("com.xia.controller"))
//扫描所有有注解的api,用这种方式更灵活
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("基础平台 RESTful APIs")
.description("基础平台 RESTful 风格的接口文档,内容详细,极大的减少了前后端的沟通成本,同时确保代码与文档保持高度一致,极大的减少维护文档的时间。")
.termsOfServiceUrl("http://xiachengwei5.coding.me")
.version("1.0.0")
.build();
}
}
|
[
"whengshaohui@163.com"
] |
whengshaohui@163.com
|
56f689b488f72269c9322b3dda752b334fdd46d9
|
dd80a584130ef1a0333429ba76c1cee0eb40df73
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/WordListInfo.java
|
5ac806a0c026ce37453aa9d2aec058546bc7ac5e
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
karunmatharu/Android-4.4-Pay-by-Data
|
466f4e169ede13c5835424c78e8c30ce58f885c1
|
fcb778e92d4aad525ef7a995660580f948d40bc9
|
refs/heads/master
| 2021-03-24T13:33:01.721868
| 2017-02-18T17:48:49
| 2017-02-18T17:48:49
| 81,847,777
| 0
| 2
|
MIT
| 2020-03-09T00:02:12
| 2017-02-13T16:47:00
| null |
UTF-8
|
Java
| false
| false
| 923
|
java
|
/*
* Copyright (C) 2011 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.inputmethod.latin;
/**
* Information container for a word list.
*/
public final class WordListInfo {
public final String mId;
public final String mLocale;
public WordListInfo(final String id, final String locale) {
mId = id;
mLocale = locale;
}
}
|
[
"karun.matharu@gmail.com"
] |
karun.matharu@gmail.com
|
52fe58e0cf78944df1bd8b9193d405ebcb79f982
|
21c88c20150e1943200e8a9ef829bf6391b5e4ad
|
/quicksale/src/main/java/com/nahuo/live/xiaozhibo/common/TCLiveRoomMgr.java
|
894bb235f83544f501d21e793dce5346a73262a8
|
[] |
no_license
|
JameChen/shopping
|
cd212101372855ad48d0a0d514c3e5ab5ad991e4
|
9f325ffbc1e3ea98ce002464f7e8fecd21c19c7f
|
refs/heads/master
| 2020-07-12T00:13:58.900576
| 2019-08-28T08:49:49
| 2019-08-28T08:49:49
| 204,668,342
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 630
|
java
|
package com.nahuo.live.xiaozhibo.common;
import android.content.Context;
import com.nahuo.live.demo.liveroom.LiveRoom;
/**
* Created by kuenzhang on 12/7/17.
*/
public class TCLiveRoomMgr {
static LiveRoom liveRoom = null;
static public LiveRoom getLiveRoom(Context context) {
if (liveRoom != null) return liveRoom;
synchronized (TCLiveRoomMgr.class) {
if (context != null) {
liveRoom = new LiveRoom(context.getApplicationContext());
}
return liveRoom;
}
}
static public LiveRoom getLiveRoom() {
return liveRoom;
}
}
|
[
"1210686304@qq.com"
] |
1210686304@qq.com
|
b9e24b9d9efe10b146a123c0e0fbe872dbb44591
|
3890a9fc94f8e8fd3b28444745e46fd009f47e92
|
/src/main/java/dk/BrugtMarket/domain/First_Name.java
|
5b7977fc1b07b207696a75f0ebe427418111bd36
|
[
"MIT"
] |
permissive
|
saphyron/BrugtMarket
|
7ee52e84b155926ef573d1135ae8c855afedc1d2
|
fa16e4d9373eea44041b4428b9641f3b3e798680
|
refs/heads/main
| 2023-06-08T20:57:14.853479
| 2021-07-01T12:40:43
| 2021-07-01T12:40:43
| 370,277,952
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 365
|
java
|
package dk.BrugtMarket.domain;
public class First_Name {
private final String name;
public First_Name(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public String toString() {
return "First_Name{" +
"name='" + name + '\'' +
'}';
}
}
|
[
"30288325+saphyron@users.noreply.github.com"
] |
30288325+saphyron@users.noreply.github.com
|
a73187f69a8351c9fc9dffece869e63b0f955110
|
a8279226ec455cd4c7c4ae1779333e1c38da7d33
|
/src/com/nhom8/design/patterns/CreationalPatterns/Builder/BuilderDesignPattern.java
|
f847d5f09b489935e99a2057ce7d81419e615f21
|
[] |
no_license
|
phatnt99/design-parttern-example
|
4d09f50ae1c85eda99021808b52b8386ec71b1ef
|
b65d784557b573eef8a8e8dc6bcded0113165455
|
refs/heads/main
| 2023-02-11T19:20:32.590666
| 2021-01-07T14:18:57
| 2021-01-07T14:18:57
| 327,632,371
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 632
|
java
|
package com.nhom8.design.patterns.CreationalPatterns.Builder;
//Client class
public class BuilderDesignPattern
{
public static void main(String[] args) {
//Builder Instance
VehicleBuilder builder;
//Director
Shop shop = new Shop();
//Create builders
builder = new CarBuilder();
shop.Construct(builder);
builder.getVehicle().show();
builder = new ScooterBuilder();
shop.Construct(builder);
builder.getVehicle().show();
builder = new MotorCycleBuilder();
shop.Construct(builder);
builder.getVehicle().show();
}
}
|
[
"phatnguyen2499@gmail.com"
] |
phatnguyen2499@gmail.com
|
3239e3f1993ac726050cfee0b554321714ae4306
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-ahas-openapi/src/main/java/com/aliyuncs/ahas_openapi/model/v20190901/ListSystemRulesRequest.java
|
8d57ebd9d8b2f465e075e3e9068da012ccd21f8f
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,677
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.ahas_openapi.model.v20190901;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ahas_openapi.Endpoint;
/**
* @author auto create
* @version
*/
public class ListSystemRulesRequest extends RpcAcsRequest<ListSystemRulesResponse> {
private String ahasRegionId;
private String appName;
private String namespace;
private Integer pageSize;
private Integer pageIndex;
public ListSystemRulesRequest() {
super("ahas-openapi", "2019-09-01", "ListSystemRules", "ahas");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getAhasRegionId() {
return this.ahasRegionId;
}
public void setAhasRegionId(String ahasRegionId) {
this.ahasRegionId = ahasRegionId;
if(ahasRegionId != null){
putQueryParameter("AhasRegionId", ahasRegionId);
}
}
public String getAppName() {
return this.appName;
}
public void setAppName(String appName) {
this.appName = appName;
if(appName != null){
putQueryParameter("AppName", appName);
}
}
public String getNamespace() {
return this.namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
if(namespace != null){
putQueryParameter("Namespace", namespace);
}
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putQueryParameter("PageSize", pageSize.toString());
}
}
public Integer getPageIndex() {
return this.pageIndex;
}
public void setPageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
if(pageIndex != null){
putQueryParameter("PageIndex", pageIndex.toString());
}
}
@Override
public Class<ListSystemRulesResponse> getResponseClass() {
return ListSystemRulesResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
4dfc3dbceec1344060a153361ede3bdcd3409e89
|
0ddb18632d6a06fc27580e64a29e70df55aca2a3
|
/library_base/src/main/java/com/yuong/library_base/di/component/FragmentComponent.java
|
b01c629e078d88dc1304c525c64c5b433be32f0c
|
[] |
no_license
|
Yuongzw/MTime
|
ee0f7f780f7281634b377332e32d53eb4f3ae652
|
070fd69dc57badf9b30b707544b96b6541544ac5
|
refs/heads/master
| 2020-06-15T18:23:31.071363
| 2019-07-05T07:42:25
| 2019-07-05T07:42:25
| 195,363,074
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 802
|
java
|
package com.yuong.library_base.di.component;
import android.app.Activity;
import android.content.Context;
import com.yuong.library_base.base.BaseFragment;
import com.yuong.library_base.di.module.FragmentModule;
import com.yuong.library_base.di.scope.ContextLife;
import com.yuong.library_base.di.scope.PerFragment;
import dagger.Component;
/**
* FragmentComponent 提供Fragment注入
* Created by yuong
* 使用的是Dagger2的方法和参数
*/
@PerFragment
@Component(dependencies = ApplicationComponent.class, modules = FragmentModule.class)
public interface FragmentComponent {
@ContextLife("Activity")
Context getActivityContext();
@ContextLife("Application")
Context getApplicationContext();
Activity getActivity();
// void inject(BaseFragment fragment);
}
|
[
"yuongzw@163.com"
] |
yuongzw@163.com
|
390d00588cccc0bc8c5066443eaebf89618b4bad
|
c16c5b4e8d302164cc527951e075d13fe6c94794
|
/app/src/main/java/com/appslelo/eduwiseschoolmanagment/view_model/ResultViewModel.java
|
c36e5c0d9a06f862c081c3ada88ae8ce40be23a3
|
[] |
no_license
|
tsfapps/TsfSchoolManagment
|
e18b3f206929d68792f32ef653ac2a6c3ec60de5
|
f8e4160048b79e114b26f580063a0140f87c6aaf
|
refs/heads/master
| 2022-09-04T14:20:53.464612
| 2020-05-28T12:21:50
| 2020-05-28T12:21:50
| 267,582,538
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,295
|
java
|
package com.appslelo.eduwiseschoolmanagment.view_model;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;
import com.appslelo.eduwiseschoolmanagment.model.result.ModelResult;
import com.appslelo.eduwiseschoolmanagment.repository.RepositoryResult;
import com.google.gson.JsonObject;
import java.util.List;
public class ResultViewModel extends AndroidViewModel {
private RepositoryResult tRepositoryNewCustomer;
public ResultViewModel(@NonNull Application application) {
super(application);
tRepositoryNewCustomer = new RepositoryResult();
}
public MutableLiveData<List<ModelResult>> getResult(String strRegNo){
JsonObject postParam = new JsonObject();
try {
postParam.addProperty("RegistrationNo", strRegNo);
postParam.addProperty("AcademicYearId", 1);
postParam.addProperty("ClassId", 1);
postParam.addProperty("SectionId", 1);
postParam.addProperty("ExaminationDetailsId", 6);
postParam.addProperty("Gender", false);
} catch (Exception e) {
e.printStackTrace();
}
return tRepositoryNewCustomer.getLiveData(postParam);
}
}
|
[
"appslelo.com@gmail.com"
] |
appslelo.com@gmail.com
|
be3787dfc7312a51a69129b92e2416961f77d141
|
df8e54ff5fbd5942280e3230123494a401c57730
|
/code/on-the-way/pre-way/src/main/java/com/vika/way/pre/autumn/leetcode/editor/cn/P102BinaryTreeLevelOrderTraversal.java
|
3aecb7ca02d4f00ab83c905891701a39dcd018e8
|
[] |
no_license
|
kabitonn/cs-note
|
255297a0a0634335eefba79882f7314f7b97308f
|
1235bb56a40bce7e2056f083ba8cda0cd08e39b4
|
refs/heads/master
| 2022-06-09T23:46:02.145680
| 2022-05-13T10:44:53
| 2022-05-13T10:44:53
| 224,864,415
| 0
| 1
| null | 2022-05-13T07:25:09
| 2019-11-29T13:58:19
|
Java
|
UTF-8
|
Java
| false
| false
| 2,073
|
java
|
//给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。
//
//
//
// 示例:
//二叉树:[3,9,20,null,null,15,7],
//
// 3
// / \
// 9 20
// / \
// 15 7
//
//
// 返回其层次遍历结果:
//
// [
// [3],
// [9,20],
// [15,7]
//]
//
// Related Topics 树 广度优先搜索
// 👍 617 👎 0
//Java:二叉树的层序遍历
package com.vika.way.pre.autumn.leetcode.editor.cn;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class P102BinaryTreeLevelOrderTraversal {
public static void main(String[] args) {
Solution solution = new P102BinaryTreeLevelOrderTraversal().new Solution();
// TO TEST
}
/**
* Definition for a binary tree node.
*/
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
//leetcode submit region begin(Prohibit modification and deletion)
class Solution {
public List<List<Integer>> levelOrder(TreeNode root) {
List<List<Integer>> listList = new ArrayList<>();
if (root == null) {
return listList;
}
Queue<TreeNode> queue = new LinkedList<>();
queue.offer(root);
while (!queue.isEmpty()) {
int size = queue.size();
List<Integer> list = new ArrayList<>();
for (int i = 0; i < size; i++) {
TreeNode p = queue.poll();
list.add(p.val);
if (p.left != null) {
queue.offer(p.left);
}
if (p.right != null) {
queue.offer(p.right);
}
}
listList.add(list);
}
return listList;
}
}
//leetcode submit region end(Prohibit modification and deletion)
}
|
[
"chenwei.tjw@alibaba-inc.com"
] |
chenwei.tjw@alibaba-inc.com
|
ba4187977b296f5528452b85092790a61ea2ea0f
|
f3a62c4a1d384905e42d5332d4febde1c1103f02
|
/src/L07SetsAndMaps/Ex06ProductShop.java
|
2815bf56b5e0cfa7fcd09db59f52d4e84ca71894
|
[
"MIT"
] |
permissive
|
VasAtanasov/SoftUni-Java-Advanced-January-2019
|
019f5734e5805134d22fae6fad6f3b764205f6fa
|
a09cafd1e1306ee028985329e5384065248b9b97
|
refs/heads/master
| 2020-04-14T21:26:23.040048
| 2019-03-16T11:04:54
| 2019-03-16T11:04:54
| 164,128,508
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,214
|
java
|
package L07SetsAndMaps;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
public class Ex06ProductShop {
private static final String END_COMMAND = "Revision";
private static Map<String, Shop> shopTreeMap;
private static BufferedReader reader;
static {
shopTreeMap = new TreeMap<>();
reader = new BufferedReader(new InputStreamReader(System.in));
}
public static void main(String[] args) throws IOException {
String input;
while (!END_COMMAND.equals(input = reader.readLine())) {
String[] tokens = input.split(", ");
String shop = tokens[0];
String product = tokens[1];
double price = Double.parseDouble(tokens[2]);
shopTreeMap.putIfAbsent(shop, new Shop(shop));
shopTreeMap.get(shop).add(new Product(product, price));
}
shopTreeMap.values().forEach(System.out::println);
}
private static class Shop {
private String shopName;
private List<Product> products;
Shop(String shopName) {
this.shopName = shopName;
this.products = new ArrayList<>();
}
void add(Product product) {
this.products.add(product);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder(this.shopName + "->");
if (this.products.isEmpty()) {
return sb.toString();
}
sb.append(System.lineSeparator());
products.forEach(product -> sb.append(product).append(System.lineSeparator()));
return sb.toString().trim();
}
}
private static class Product {
private String productName;
private double price;
Product(String productName, double price) {
this.productName = productName;
this.price = price;
}
@Override
public String toString() {
return String.format("Product: %s, Price: %.1f", this.productName, this.price);
}
}
}
|
[
"vas.atanasov@gmail.com"
] |
vas.atanasov@gmail.com
|
ace190b40b7bdaacc846f5a89f40d477dd7f3704
|
38675dfd2fde07f2988813ce77b9624bdbae284f
|
/src/main/java/com/example/demo/tx/TransactionManagerBeanAdvisor.java
|
50bb81045a1b58602332b9364f2c55d7d868efa0
|
[] |
no_license
|
yinbucheng/spring-boot-db
|
2e318e8d7c5e0fee53347088c5af0b3ea85fe6f3
|
067533b30938192e5e6709842c50162ad8c76155
|
refs/heads/master
| 2020-03-27T17:23:15.857948
| 2018-08-31T05:59:37
| 2018-08-31T05:59:37
| 146,848,198
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,843
|
java
|
package com.example.demo.tx;
import com.example.demo.annotation.Transactional2;
import org.springframework.aop.ClassFilter;
import org.springframework.aop.MethodMatcher;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.lang.reflect.Method;
@Component
public class TransactionManagerBeanAdvisor extends AbstractBeanFactoryPointcutAdvisor {
public TransactionManagerBeanAdvisor(){
setAdvice(new TransactionMethodIntercptor());
}
@Override
public Pointcut getPointcut() {
return new Pointcut() {
@Override
public ClassFilter getClassFilter() {
return new ClassFilter() {
@Override
public boolean matches(Class<?> aClass) {
if(aClass.getAnnotation(Service.class)!=null)
return true;
return false;
}
};
}
@Override
public MethodMatcher getMethodMatcher() {
return new MethodMatcher() {
@Override
public boolean matches(Method method, @Nullable Class<?> aClass) {
return canApply(aClass,method);
}
@Override
public boolean isRuntime() {
return true;
}
@Override
public boolean matches(Method method, @Nullable Class<?> aClass, Object... objects) {
return canApply(aClass,method);
}
};
}
};
}
private boolean canApply(Class clazz,Method method){
Transactional2 transactional2 = method.getAnnotation(Transactional2.class);
if(transactional2==null){
Class aClass = clazz.getInterfaces()[0];
try {
if(sourceMethod(method))
return false;
transactional2 = aClass.getMethod(method.getName(), method.getParameterTypes()).getAnnotation(Transactional2.class);
}catch (Exception e){
throw new RuntimeException(e);
}
}
if(transactional2==null)
return false;
return true;
}
private boolean sourceMethod(Method method){
String methodName = method.getName();
Method[] methods = Object.class.getDeclaredMethods();
for(Method method1:methods){
if(method1.getName().equals(methodName))
return true;
}
return false;
}
}
|
[
"yin.chong@intellif.com"
] |
yin.chong@intellif.com
|
3c8ca5f3cdd8a4522b365e95054a0b998085a13b
|
fa938bc306218d623a9ea2f8dda26513f984e887
|
/src/main/java/com/we/weblog/mapper/PostMapper.java
|
088c96ef8754b49fcccccdb10788598c36347776
|
[] |
no_license
|
ailen1002/ssmBlog
|
eeb084142e3a0753a5bb6751187bf94a42a9192f
|
18c352f0b9d592c882ddc01e83c00c02f9678a17
|
refs/heads/master
| 2020-04-09T07:07:47.003485
| 2018-11-13T13:26:04
| 2018-11-13T13:26:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,152
|
java
|
package com.we.weblog.mapper;
import com.we.weblog.domain.Post;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.StatementType;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 处理博客信息的管理mapper
*/
@Repository
@Mapper
public interface PostMapper {
/**
* 分类标签查询 这里 in not null去除空列表
* @return
*/
@Select({"select DISTINCT categories FROM t_context where categories is not null"})
List<String> findAllCategory();
@Select({"select * from t_context where type = 'post' order by uid asc limit 1 "})
Post findLastestPost();
@Select({"select * from t_context where type = 'post' order by uid asc"})
List<Post> findAllPosts();
@Select({"select uid,title,created,article from t_context where title='关于我'"})
Post findAuthor();
/**
* 得到博客的总数量
* @return
*/
@Select({"select count(*) from t_context where type = 'post'"})
int findPostNumber();
/**
* 插入博客 用于增加博客内容吧
* @param post
* @return
*/
@Insert({"insert into t_context " +
"(article,title,created,tags,md,type,slug,publish,categories) " +
"values (#{b.article},#{b.title},#{b.created},#{b.tags},#{b.md}" +
",#{b.type},#{b.slug},#{b.publish},#{b.categories})"})
@SelectKey(before=false,keyProperty="b.uid",resultType=Integer.class,
statementType= StatementType.STATEMENT,statement="SELECT LAST_INSERT_ID() AS id")
int savePost(@Param("b") Post post);
/**
* 删除博客
* @param id
* @return
*/
@Delete({"delete from t_context where uid = #{id}"})
int removeByPostId(@Param("id") int id);
/**
* 批量查询博客 目前10个一次
* @param count
* @return
*/
@Select({"select uid,title,created,tags,article" +
",slug,hits from t_context where type = 'post' limit #{count}"})
List<Post> findRecent10Posts(@Param("count") int count);
@Update({" update t_context " +
" set title = #{b.title}," +
" md = #{b.md}," +
" slug = #{b.slug}," +
" categories = #{b.categories},"+
" tags = #{b.tags},"+
" article=#{b.article} where uid= #{id}"})
void updatePostByUid(@Param("b") Post context, @Param("id") int uid);
@Update({"update t_context set hits=#{c.hits} where uid = #{c.uid}"})
void updateOnePostVisit(@Param("c") Post context);
@Select({"select uid,title,created,tags from t_context " +
"where type = 'post' order by created desc limit #{p},12"})
List<Post> findPostByYearAndMonth(@Param("p") int page);
@Select({"select uid,title,created,tags,categories from t_context " +
"where type = 'post' order by tags desc "})
List<Post> findPostsByCategory();
@Select({"select uid,title,article,created from t_context " +
"where type = 'post' order by created desc limit #{p},20"})
List<Post> findLastPostsByPage(@Param("p") int page);
@Select({"select uid,title,article,md,created,tags,hits from t_context where uid = #{id} "})
Post findPostById(@Param("id") int id);
@Select({"select uid,title,tags,created from t_context " +
"where uid < #{id} and type = 'post' order by uid desc limit 1"})
Post findPreviousPost(@Param("id") int id);
@Select({"select uid,title,article,tags,created " +
"from t_context where uid > #{id} and type = 'post' order by uid asc limit 1"})
Post findNextPost(@Param("id") int id);
@Select("select * from t_context where tags=#{tag}")
List<Post> findPostByTagName(@Param("tag") String tagName);
@Select({"select * from t_context where type= #{type} order by uid desc"})
List<Post> findPostByPageType(@Param("type")String page);
/**
* 标签页面删除相关数据
* @param categoryName
*/
@Delete({"update t_context set categories = null where categories = #{cate}"})
int removePostCategory(@Param("cate") String categoryName);
}
|
[
"466217395@qq.com"
] |
466217395@qq.com
|
7a7409ef830b59ec19b06ec9b56ba5ce9a08e45c
|
4e8d52f594b89fa356e8278265b5c17f22db1210
|
/WebServiceArtifacts/Schenker_x0020_Norway_x0020_Webservices/linjegodswebservices/PriceAndTimeTableV2Response.java
|
8508174749b4a318ecee32a14c1fb2782d3286dd
|
[] |
no_license
|
ouniali/WSantipatterns
|
dc2e5b653d943199872ea0e34bcc3be6ed74c82e
|
d406c67efd0baa95990d5ee6a6a9d48ef93c7d32
|
refs/heads/master
| 2021-01-10T05:22:19.631231
| 2015-05-26T06:27:52
| 2015-05-26T06:27:52
| 36,153,404
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,773
|
java
|
package linjegodswebservices;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PriceAndTimeTableV2Result" type="{LinjegodsWebServices}PriceAndTimeTableResult" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"priceAndTimeTableV2Result"
})
@XmlRootElement(name = "PriceAndTimeTableV2Response")
public class PriceAndTimeTableV2Response {
@XmlElement(name = "PriceAndTimeTableV2Result")
protected PriceAndTimeTableResult priceAndTimeTableV2Result;
/**
* Gets the value of the priceAndTimeTableV2Result property.
*
* @return
* possible object is
* {@link PriceAndTimeTableResult }
*
*/
public PriceAndTimeTableResult getPriceAndTimeTableV2Result() {
return priceAndTimeTableV2Result;
}
/**
* Sets the value of the priceAndTimeTableV2Result property.
*
* @param value
* allowed object is
* {@link PriceAndTimeTableResult }
*
*/
public void setPriceAndTimeTableV2Result(PriceAndTimeTableResult value) {
this.priceAndTimeTableV2Result = value;
}
}
|
[
"ouni_ali@yahoo.fr"
] |
ouni_ali@yahoo.fr
|
0ed235b39e8d924c0a653dce6894be9397c2058f
|
39a9902a511caf32b5c4626a97c610f5b383601f
|
/telegram-ob/src/main/java/ir/adventure/observer/client/core/org/telegram/api/updates/channel/differences/TLUpdatesChannelDifferencesEmpty.java
|
f60ccdea25994deada2b676aedec163263824ae6
|
[] |
no_license
|
rkeshmir/telegramCrawler
|
3ef174efc79d7242ff528f7eacdebd56d94181c3
|
fca7aa5114eb40efb95603d557fe9a325cdf775b
|
refs/heads/master
| 2020-03-31T14:47:18.159838
| 2018-10-12T14:30:04
| 2018-10-12T14:30:04
| 152,309,274
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,710
|
java
|
package ir.adventure.observer.client.core.org.telegram.api.updates.channel.differences;
import ir.adventure.observer.client.core.org.telegram.tl.StreamingUtils;
import ir.adventure.observer.client.core.org.telegram.tl.TLContext;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The type TL updates channel differences empty.
*/
public class TLUpdatesChannelDifferencesEmpty extends TLAbsUpdatesChannelDifferences {
/**
* The constant CLASS_ID.
*/
public static final int CLASS_ID = 0x3e11affb;
private static final int FLAG_FINAL = 0x00000001; // 0
private static final int FLAG_TIMEOUT = 0x00000002; // 1
/**
* Instantiates a new TL updates channel differences empty.
*/
public TLUpdatesChannelDifferencesEmpty() {
super();
}
public int getClassId() {
return CLASS_ID;
}
public boolean isFinal() {
return (flags & FLAG_FINAL) != 0;
}
public void serializeBody(OutputStream stream)
throws IOException {
StreamingUtils.writeInt(this.flags, stream);
StreamingUtils.writeInt(this.pts, stream);
if ((this.flags & FLAG_TIMEOUT) != 0) {
StreamingUtils.writeInt(timeout, stream);
}
}
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.flags = StreamingUtils.readInt(stream);
this.pts = StreamingUtils.readInt(stream);
if ((this.flags & FLAG_TIMEOUT) != 0) {
this.timeout = StreamingUtils.readInt(stream);
}
}
public String toString() {
return "updates.channelDifferenceEmpty#3e11affb";
}
}
|
[
"autumn2014"
] |
autumn2014
|
0a3252d695a1fad10bfc8e7edacb3fc6897bec2a
|
e47d2faa2d5ee992ba5d2da965dcba19deb092e6
|
/downstream-test/src/main/java/react4j/downstream/CollectFluxChallengeBuildStats.java
|
b6e140035511dd7aa27e4aecd041353d5298a1e3
|
[
"Apache-2.0"
] |
permissive
|
react4j/react4j
|
95e13c276126973f67b0e4888c2eb4b7775d9efc
|
dadbc3283943cd2c5bc78420e38f8ac4e6888dfe
|
refs/heads/master
| 2023-02-07T19:26:30.934517
| 2023-01-31T02:16:47
| 2023-01-31T02:16:47
| 104,152,070
| 35
| 0
|
Apache-2.0
| 2023-01-23T05:07:51
| 2017-09-20T01:55:55
|
Java
|
UTF-8
|
Java
| false
| false
| 4,187
|
java
|
package react4j.downstream;
import gir.Gir;
import gir.io.FileUtil;
import gir.ruby.Buildr;
import gir.ruby.Ruby;
import java.nio.file.Path;
import java.util.Collections;
import javax.annotation.Nonnull;
public final class CollectFluxChallengeBuildStats
{
public static void main( final String[] args )
{
try
{
run();
}
catch ( final Exception e )
{
System.err.println( "Failed command." );
e.printStackTrace( System.err );
System.exit( 42 );
}
}
private static void run()
throws Exception
{
Gir.go( () -> {
WorkspaceUtil.forEachBranch( "react4j-flux-challenge",
"https://github.com/react4j/react4j-flux-challenge.git",
Collections.singletonList( "master" ),
context -> buildBranch( context, WorkspaceUtil.getVersion() ) );
WorkspaceUtil.collectStatistics( Collections.singletonList( "sithtracker" ), build -> true, false );
} );
}
private static void buildBranch( @Nonnull final WorkspaceUtil.BuildContext context,
@Nonnull final String version )
{
final boolean initialBuildSuccess = WorkspaceUtil.runBeforeBuild( context, () -> {
final Path archiveDir = WorkspaceUtil.getArchiveDir( context.workingDirectory, "sithtracker.before" );
buildAndRecordStatistics( context.appDirectory, archiveDir );
} );
WorkspaceUtil.runAfterBuild( context, initialBuildSuccess, () -> {
Buildr.patchBuildYmlDependency( context.appDirectory, "org.realityforge.react4j", version );
final Path archiveDir = WorkspaceUtil.getArchiveDir( context.workingDirectory, "sithtracker.after" );
buildAndRecordStatistics( context.appDirectory, archiveDir );
}, () -> {
final Path dir = WorkspaceUtil.getArchiveDir( context.workingDirectory, "sithtracker.after" );
FileUtil.deleteDirIfExists( dir );
} );
}
private static void buildAndRecordStatistics( @Nonnull final Path appDirectory, @Nonnull final Path archiveDir )
{
WorkspaceUtil.customizeBuildr( appDirectory );
if ( !archiveDir.toFile().mkdirs() )
{
final String message = "Error creating archive directory: " + archiveDir;
Gir.messenger().error( message );
}
// Perform the build
Ruby.buildr( "clean", "package", "EXCLUDE_GWT_DEV_MODULE=true", "GWT=react4j-sithtracker" );
archiveBuildrOutput( archiveDir );
archiveStatistics( archiveDir );
}
private static void archiveStatistics( @Nonnull final Path archiveDir )
{
final OrderedProperties properties = new OrderedProperties();
properties.setProperty( "sithtracker.size", String.valueOf( getJsSize( archiveDir ) ) );
properties.setProperty( "sithtracker.gz.size", String.valueOf( getJsGzSize( archiveDir ) ) );
final Path statisticsFile = archiveDir.resolve( "statistics.properties" );
Gir.messenger().info( "Archiving statistics to " + statisticsFile + "." );
WorkspaceUtil.writeProperties( statisticsFile, properties );
}
private static void archiveBuildrOutput( @Nonnull final Path archiveDir )
{
final Path currentDirectory = FileUtil.getCurrentDirectory();
WorkspaceUtil.archiveDirectory( currentDirectory.resolve( "target/assets" ), archiveDir.resolve( "assets" ) );
WorkspaceUtil.archiveDirectory( currentDirectory
.resolve( "target/gwt_compile_reports/react4j.sithtracker.SithTrackerProd" ),
archiveDir.resolve( "compileReports" ) );
}
private static long getJsSize( @Nonnull final Path archiveDir )
{
return WorkspaceUtil.getFileSize( archiveDir.resolve( "assets" )
.resolve( "sithtracker" )
.resolve( "sithtracker.nocache.js" ) );
}
private static long getJsGzSize( @Nonnull final Path archiveDir )
{
return WorkspaceUtil.getFileSize( archiveDir.resolve( "assets" )
.resolve( "sithtracker" )
.resolve( "sithtracker.nocache.js.gz" ) );
}
}
|
[
"peter@realityforge.org"
] |
peter@realityforge.org
|
06a21320b7252c33e302af7c837516d2d0bcff48
|
e87f985fdd9177e92966f8b2e85b6e57662e7cf6
|
/jOOQ-test/src/org/jooq/test/oracle3/generatedclasses/packages/PKG_1358.java
|
e88a0f03589cfe94b08dc4bcdee7427979b7d77b
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
ben-manes/jOOQ
|
5ef43f8ea8c5c942dc0b2e0669cc927dca6f2ff7
|
9f160d5e869de1a9d66408d90718148f76c5e000
|
refs/heads/master
| 2023-09-05T03:27:56.109520
| 2013-08-26T09:48:14
| 2013-08-26T10:05:05
| 12,375,424
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,145
|
java
|
/**
* This class is generated by jOOQ
*/
package org.jooq.test.oracle3.generatedclasses.packages;
/**
* This class is generated by jOOQ.
*
* Convenience access to all stored procedures and functions in PKG_1358
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PKG_1358 extends org.jooq.impl.PackageImpl implements java.lang.Cloneable {
private static final long serialVersionUID = -2085848809;
/**
* The singleton instance of <code>PKG_1358</code>
*/
public static final org.jooq.test.oracle3.generatedclasses.packages.PKG_1358 PKG_1358 = new org.jooq.test.oracle3.generatedclasses.packages.PKG_1358();
/**
* Call <code>PKG_1358.P</code>
*/
public static void call_P______ABC_1(org.jooq.Configuration configuration, java.lang.String I) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P______ABC_1 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P______ABC_1();
p.setI(I);
p.execute(configuration);
}
/**
* Call <code>PKG_1358.P</code>
*/
public static void call_P______ABC_2(org.jooq.Configuration configuration, java.lang.String J) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P______ABC_2 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P______ABC_2();
p.setJ(J);
p.execute(configuration);
}
/**
* Call <code>PKG_1358.P</code>
*/
public static void call_P______ABC_3(org.jooq.Configuration configuration, java.lang.String K) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P______ABC_3 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P______ABC_3();
p.setK(K);
p.execute(configuration);
}
/**
* Call <code>PKG_1358.P2</code>
*/
public static void call_P2______ABC_1(org.jooq.Configuration configuration, java.lang.String I) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P2______ABC_1 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P2______ABC_1();
p.setI(I);
p.execute(configuration);
}
/**
* Call <code>PKG_1358.P2</code>
*/
public static void call_P2______ABC_2(org.jooq.Configuration configuration, java.lang.String J) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P2______ABC_2 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P2______ABC_2();
p.setJ(J);
p.execute(configuration);
}
/**
* Call <code>PKG_1358.P21</code>
*/
public static void call_P21(org.jooq.Configuration configuration, java.lang.String I) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P21 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P21();
p.setI(I);
p.execute(configuration);
}
/**
* Call <code>PKG_1358.P3</code>
*/
public static void call_P3(org.jooq.Configuration configuration, java.lang.String K) {
org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P3 p = new org.jooq.test.oracle3.generatedclasses.packages.pkg_1358.P3();
p.setK(K);
p.execute(configuration);
}
/**
* No further instances allowed
*/
private PKG_1358() {
super("PKG_1358", org.jooq.test.oracle3.generatedclasses.DefaultSchema.DEFAULT_SCHEMA);
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
87e4c544c0c114df9fb85036ecabb86ea339baa1
|
c72af73589c93d3d03becb3bbfc46a59c97cb893
|
/src/main/java/com/armandorv/elasticsdemo/web/rest/dto/LoggerDTO.java
|
77c66e1409aadd9b9b778c4837da2b4acd111021
|
[] |
no_license
|
armandorvila/elasticsdemo
|
9af26cddd5c4764affb61e4e87ce04fef3946897
|
7dba00ee9c271ea63828707210f675d3fc2a1dee
|
refs/heads/master
| 2020-04-05T23:07:31.536887
| 2015-04-07T17:47:30
| 2015-04-07T17:47:30
| 33,552,928
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 869
|
java
|
package com.armandorv.elasticsdemo.web.rest.dto;
import ch.qos.logback.classic.Logger;
import com.fasterxml.jackson.annotation.JsonCreator;
public class LoggerDTO {
private String name;
private String level;
public LoggerDTO(Logger logger) {
this.name = logger.getName();
this.level = logger.getEffectiveLevel().toString();
}
@JsonCreator
public LoggerDTO() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
@Override
public String toString() {
return "LoggerDTO{" +
"name='" + name + '\'' +
", level='" + level + '\'' +
'}';
}
}
|
[
"armando.ramirez.vila@gmail.com"
] |
armando.ramirez.vila@gmail.com
|
10d0820ebbf64cf51cc1ba511895f27cdec2a3ad
|
b66f16394f82b3ce1afbbede99593a374c2519f8
|
/src/main/java/ch/ethz/idsc/demo/jph/TrackVideo.java
|
87a247e816709cacaa88d7eb87c1321f9c59ecd2
|
[] |
no_license
|
btellstrom/retina
|
1ab2f09a58112ee5b405dcd4f410e01aa74ea210
|
0ec80bbc5df72c8e41d18e940cbcd336238d86fd
|
refs/heads/master
| 2020-04-08T12:45:27.049685
| 2018-11-27T15:36:13
| 2018-11-27T15:36:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,497
|
java
|
// code by jph
package ch.ethz.idsc.demo.jph;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.LinkedList;
import java.util.List;
import ch.ethz.idsc.gokart.core.pos.LocalizationConfig;
import ch.ethz.idsc.gokart.offline.api.GokartLogAdapter;
import ch.ethz.idsc.gokart.offline.api.GokartLogInterface;
import ch.ethz.idsc.owl.bot.util.RegionRenders;
import ch.ethz.idsc.owl.bot.util.UserHome;
import ch.ethz.idsc.owl.gui.RenderInterface;
import ch.ethz.idsc.owl.gui.win.GeometricLayer;
import ch.ethz.idsc.owl.math.region.ImageRegion;
import ch.ethz.idsc.retina.util.gui.GraphicsUtil;
import ch.ethz.idsc.retina.util.io.Mp4AnimationWriter;
import ch.ethz.idsc.tensor.Scalar;
import ch.ethz.idsc.tensor.Tensor;
import ch.ethz.idsc.tensor.Tensors;
import ch.ethz.idsc.tensor.io.Import;
import ch.ethz.idsc.tensor.sca.Round;
/* package */ enum TrackVideo {
;
public static void main(String[] args) throws Exception {
/** Read in some option values and their defaults. */
final int snaps = 20; // fps
final String filename = UserHome.file("filename3.mp4").toString();
Dimension dimension = new Dimension(1920, 1080);
// ---
File folder = new File("/media/datahaki/media/ethz/gokart/topic/track_red");
File src = UserHome.file("track_r");
List<TrackDriving> list = new LinkedList<>();
int id = 0;
for (File file : folder.listFiles()) {
GokartLogInterface gokartLogInterface = GokartLogAdapter.of(file);
String title = file.getName();
File csvFile = new File(src, title + ".csv");
if (csvFile.isFile()) {
TrackDriving trackDriving = new TrackDriving(Import.of(csvFile), id++);
trackDriving.setDriver(gokartLogInterface.driver());
System.out.println(trackDriving.row(0));
list.add(trackDriving);
}
}
int max = list.stream().mapToInt(TrackDriving::maxIndex).max().getAsInt();
// max = 500;
BufferedImage bufferedImage = new BufferedImage(dimension.width, dimension.height, BufferedImage.TYPE_3BYTE_BGR);
Graphics2D graphics = bufferedImage.createGraphics();
GraphicsUtil.setQualityHigh(graphics);
ImageRegion imageRegion = LocalizationConfig.getPredefinedMap().getImageRegion();
RenderInterface imageRender = RegionRenders.create(imageRegion);
try (Mp4AnimationWriter mp4 = new Mp4AnimationWriter(filename, dimension, snaps)) {
for (int index = 0; index < max; ++index) {
// System.out.println(index);
Scalar time = list.get(0).timeFor(index);
graphics.setColor(Color.WHITE);
graphics.fillRect(0, 0, dimension.width, dimension.height);
Tensor model2pixel = Tensors.fromString( //
"{{42.82962839003549, 42.01931617686636, -2924.9980200038317}, {42.01931617686636, -42.8296, 575.4392}, {0, 0, 1}}");
GeometricLayer geometricLayer = GeometricLayer.of(model2pixel);
imageRender.render(geometricLayer, graphics);
for (TrackDriving trackDriving : list) {
trackDriving.setRenderIndex(index);
trackDriving.render(geometricLayer, graphics);
}
graphics.setFont(new Font(Font.MONOSPACED, Font.BOLD, 30));
graphics.setColor(Color.LIGHT_GRAY);
graphics.drawString(String.format("time:%7s[s]", time.map(Round._3)), 0, 25);
mp4.append(bufferedImage);
}
}
System.out.println("stopped.");
}
}
|
[
"jan.hakenberg@gmail.com"
] |
jan.hakenberg@gmail.com
|
7c239be1987f06667e37fd1f95e19fe1fff95443
|
fce7ae51d3cc7d24d2e6e488e7cf029e58c59b22
|
/src/com/servers/websocket/framing/FramedataImpl1.java
|
a5b5d6cdee06ded353ed917ec923aa5bd566cbe5
|
[] |
no_license
|
mziernik/fra
|
085ae7bba60ac73b71587f303bc939a5e0ecf4b5
|
10bfccf3272de63fb883615d6f69f80a15e553f7
|
refs/heads/master
| 2021-01-20T17:27:26.599356
| 2017-10-01T20:44:36
| 2017-10-01T20:44:36
| 90,874,102
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,109
|
java
|
package com.servers.websocket.framing;
import java.nio.ByteBuffer;
import java.util.Arrays;
import com.servers.websocket.exceptions.InvalidDataException;
import com.servers.websocket.exceptions.InvalidFrameException;
import com.servers.websocket.util.Charsetfunctions;
public class FramedataImpl1 implements FrameBuilder {
protected static byte[] emptyarray = {};
protected boolean fin;
protected Opcode optcode;
private ByteBuffer unmaskedpayload;
protected boolean transferemasked;
public FramedataImpl1() {
}
public FramedataImpl1(Opcode op) {
this.optcode = op;
unmaskedpayload = ByteBuffer.wrap(emptyarray);
}
/**
* Helper constructor which helps to create "echo" frames. The new object
* will use the same underlying payload data.
*
*/
public FramedataImpl1(Framedata f) {
fin = f.isFin();
optcode = f.getOpcode();
unmaskedpayload = f.getPayloadData();
transferemasked = f.getTransfereMasked();
}
@Override
public boolean isFin() {
return fin;
}
@Override
public Opcode getOpcode() {
return optcode;
}
@Override
public boolean getTransfereMasked() {
return transferemasked;
}
@Override
public ByteBuffer getPayloadData() {
return unmaskedpayload;
}
@Override
public void setFin(boolean fin) {
this.fin = fin;
}
@Override
public void setOptcode(Opcode optcode) {
this.optcode = optcode;
}
@Override
public void setPayload(ByteBuffer payload) throws InvalidDataException {
unmaskedpayload = payload;
}
@Override
public void setTransferemasked(boolean transferemasked) {
this.transferemasked = transferemasked;
}
@Override
public void append(Framedata nextframe) throws InvalidFrameException {
ByteBuffer b = nextframe.getPayloadData();
if (unmaskedpayload == null) {
unmaskedpayload = ByteBuffer.allocate(b.remaining());
b.mark();
unmaskedpayload.put(b);
b.reset();
} else {
b.mark();
unmaskedpayload.position(unmaskedpayload.limit());
unmaskedpayload.limit(unmaskedpayload.capacity());
if (b.remaining() > unmaskedpayload.remaining()) {
ByteBuffer tmp = ByteBuffer.allocate(b.remaining() + unmaskedpayload.capacity());
unmaskedpayload.flip();
tmp.put(unmaskedpayload);
tmp.put(b);
unmaskedpayload = tmp;
} else
unmaskedpayload.put(b);
unmaskedpayload.rewind();
b.reset();
}
fin = nextframe.isFin();
}
@Override
public String toString() {
return "Framedata{ optcode:" + getOpcode() + ", fin:" + isFin() + ", payloadlength:[pos:" + unmaskedpayload.position() + ", len:" + unmaskedpayload.remaining() + "], payload:" + Arrays.toString(Charsetfunctions.utf8Bytes(new String(unmaskedpayload.array()))) + "}";
}
}
|
[
"mziernik@gmail.com"
] |
mziernik@gmail.com
|
2e269f7f8ebe7a0805bd82739446b6faedbf8b39
|
a0d9b302f138b13f6642ab74518d4e48dc2da510
|
/app/src/main/java/com/android2ee/formation/init/firsttoulouseproject/arrayadapter/HumanAdapter.java
|
1e63fde12286bfc2f29cc3da1df2b21dd01d8bba
|
[
"Apache-2.0"
] |
permissive
|
MathiasSeguy-Android2EE/FirstToulouseProject
|
855b7c0d78d413a2aa7aa0bb42afe2e289e7cdf1
|
fcfd0db6b4b226b165c10c2a2f93e96f976890e6
|
refs/heads/master
| 2020-05-31T18:50:01.816223
| 2019-06-05T18:02:49
| 2019-06-05T18:02:49
| 190,444,065
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,390
|
java
|
/**<ul>
* <li>ForecastRestYahooSax</li>
* <li>com.android2ee.formation.restservice.sax.forecastyahoo</li>
* <li>28 mai 2014</li>
*
* <li>======================================================</li>
*
* <li>Projet : Mathias Seguy Project</li>
* <li>Produit par MSE.</li>
*
/**
* <ul>
* Android Tutorial, An <strong>Android2EE</strong>'s project.</br>
* Produced by <strong>Dr. Mathias SEGUY</strong>.</br>
* Delivered by <strong>http://android2ee.com/</strong></br>
* Belongs to <strong>Mathias Seguy</strong></br>
****************************************************************************************************************</br>
* This code is free for any usage but can't be distribute.</br>
* The distribution is reserved to the site <strong>http://android2ee.com</strong>.</br>
* The intelectual property belongs to <strong>Mathias Seguy</strong>.</br>
* <em>http://mathias-seguy.developpez.com/</em></br> </br>
*
* *****************************************************************************************************************</br>
* Ce code est libre de toute utilisation mais n'est pas distribuable.</br>
* Sa distribution est reservée au site <strong>http://android2ee.com</strong>.</br>
* Sa propriété intellectuelle appartient à <strong>Mathias Seguy</strong>.</br>
* <em>http://mathias-seguy.developpez.com/</em></br> </br>
* *****************************************************************************************************************</br>
*/
package com.android2ee.formation.init.firsttoulouseproject.arrayadapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.android2ee.formation.init.firsttoulouseproject.R;
import com.android2ee.formation.init.firsttoulouseproject.model.Human;
import java.util.ArrayList;
/**
* Created by Mathias Seguy - Android2EE on 30/03/2015.
*/
public class HumanAdapter extends ArrayAdapter<Human> {
/**
* The inflter to inflate the xml and create a view
*/
LayoutInflater inflater = null;
/**
* Constructor
*
* @param context The current context.
* @param resource The resource ID for a layout file containing a TextView to use when
*/
public HumanAdapter(Context context, ArrayList<Human> list) {
super(context, R.layout.human_even, list);
inflater = LayoutInflater.from(context);
}
/*******************************************************************/
/*******************************************************************/
/***********Managing The View *****************/
/*****************************************************************/
/**
* The displayed human
*/
private Human humanTemp;
/**
* The View returned to the listView
*/
private View rowView;
/**
* The ViewHolder linked with the view
*/
private ViewHolder vh;
/**
* {@inheritDoc}
*
* @param position
* @param convertView
* @param parent
*/
@Override
public View getView(int position, View convertView, ViewGroup parent) {
humanTemp=getItem(position);
rowView=convertView;
if(rowView==null){
if(getItemViewType(position)==0){
rowView=inflater.inflate(R.layout.human_even, parent, false);
}else{
rowView=inflater.inflate(R.layout.human_odd, parent, false);
}
//create the viewHolder
vh=new ViewHolder(rowView);
rowView.setTag(vh);
}
vh=(ViewHolder)rowView.getTag();
vh.getImvPicture().setBackgroundResource(humanTemp.getPictureId());
vh.getTxvName().setText(humanTemp.getName());
vh.getTxvMessage().setText(humanTemp.getMessage());
return rowView;
}
@Override
public int getItemViewType(int position) {
//my business rule
return position%2;
}
@Override
public int getViewTypeCount() {
return 2;
}
/*******************************************************************/
/*******************************************************************/
/***********ViewHolder Pattern *****************/
/*****************************************************************/
private class ViewHolder{
private View theView;
private TextView txvName=null;
private TextView txvMessage=null;
private ImageView imvPicture=null;
private ViewHolder(View theView) {
this.theView = theView;
}
public TextView getTxvName() {
if(txvName==null){
txvName= (TextView) theView.findViewById(R.id.txvName);
}
return txvName;
}
public TextView getTxvMessage() {
if(txvMessage==null){
txvMessage= (TextView) theView.findViewById(R.id.txvMessage);
}
return txvMessage;
}
public ImageView getImvPicture() {
if(imvPicture==null){
imvPicture= (ImageView) theView.findViewById(R.id.imvHumanPicture);
}
return imvPicture;
}
}
}
|
[
"mathias.seguy@android2ee.com"
] |
mathias.seguy@android2ee.com
|
9abac7be806343d6fc54989381595254f7f10ced
|
314cecbd649c1dbb3d72e180f6fce240e4a10c91
|
/app/src/main/java/com/injor/entity/SkinItem.java
|
0e56244ca58c93d90f89899981c410ba133dbab1
|
[
"MIT"
] |
permissive
|
eity0323/injor
|
eebe2f0bb2637fc0c3274324d59ec8beeca77c94
|
d283e6a9c47a0e121dec506359b2b91e8abf1e21
|
refs/heads/master
| 2021-01-01T05:16:57.069704
| 2016-05-09T03:07:08
| 2016-05-09T03:07:08
| 58,183,091
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 279
|
java
|
package com.injor.entity;
/**
* skin:resName:resType
*
* @author hackware 2015.12.20
*
*/
public class SkinItem {
public String resName;
public String resType;
public SkinItem(String resName, String resType) {
this.resName = resName;
this.resType = resType;
}
}
|
[
"312726446@qq.com"
] |
312726446@qq.com
|
1857d5d74de9e1861e805cc56f90b7e14471b386
|
0f52a2a3cc3e639142849526473a6baab95757a3
|
/app/src/main/java/com/android/nana/bean/CategoryEntity.java
|
b261c8ca62e57ff0c9ca567bfab43c4fda0da615
|
[] |
no_license
|
ruanxuexiong/WebCastApp
|
8ac3b50d64f80fc9776b5342a8cbf71d9c62a9c3
|
ab468b05225aaf0625de4a854a157baf4692cad0
|
refs/heads/master
| 2020-06-12T16:50:17.211203
| 2019-06-29T03:53:32
| 2019-06-29T03:53:32
| 194,361,651
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 734
|
java
|
package com.android.nana.bean;
/**
* Created by Administrator on 2017/3/19 0019.
*/
public class CategoryEntity {
String id;
String name;
boolean isChecked;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isChecked() {
return isChecked;
}
public void setChecked(boolean checked) {
isChecked = checked;
}
public CategoryEntity(String id, String name, boolean isChecked) {
this.id = id;
this.name = name;
this.isChecked = isChecked;
}
}
|
[
"412877174@qq.com"
] |
412877174@qq.com
|
c219c7801bb02ad24938a86704e60e43cb980816
|
52b923ac7775c62f1622976516922cbfd1093d71
|
/aws-java-sdk-codepipeline/src/main/java/com/amazonaws/service/codepipeline/model/transform/ActionTypeIdJsonMarshaller.java
|
28e44f6dd71c32cb1ba05beb9d5376944dd2d091
|
[
"Apache-2.0",
"JSON"
] |
permissive
|
jobinmarygeorge/aws-sdk-java
|
ea46c70ee89e2eb0ea43c5b3d81bf6449e48db6e
|
ca64992cf428932800e086a627e42a32b76095a1
|
refs/heads/master
| 2020-05-29T11:53:45.146416
| 2015-07-09T16:34:29
| 2015-07-09T16:34:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,674
|
java
|
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.service.codepipeline.model.transform;
import static com.amazonaws.util.StringUtils.UTF8;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Map;
import java.util.List;
import com.amazonaws.AmazonClientException;
import com.amazonaws.service.codepipeline.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.BinaryUtils;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.json.*;
/**
* ActionTypeIdMarshaller
*/
public class ActionTypeIdJsonMarshaller {
/**
* Marshall the given parameter object, and output to a JSONWriter
*/
public void marshall(ActionTypeId actionTypeId, JSONWriter jsonWriter) {
if (actionTypeId == null) {
throw new AmazonClientException(
"Invalid argument passed to marshall(...)");
}
try {
jsonWriter.object();
if (actionTypeId.getCategory() != null) {
jsonWriter.key("category").value(actionTypeId.getCategory());
}
if (actionTypeId.getOwner() != null) {
jsonWriter.key("owner").value(actionTypeId.getOwner());
}
if (actionTypeId.getProvider() != null) {
jsonWriter.key("provider").value(actionTypeId.getProvider());
}
if (actionTypeId.getVersion() != null) {
jsonWriter.key("version").value(actionTypeId.getVersion());
}
jsonWriter.endObject();
} catch (Throwable t) {
throw new AmazonClientException(
"Unable to marshall request to JSON: " + t.getMessage(), t);
}
}
private static ActionTypeIdJsonMarshaller instance;
public static ActionTypeIdJsonMarshaller getInstance() {
if (instance == null)
instance = new ActionTypeIdJsonMarshaller();
return instance;
}
}
|
[
"aws@amazon.com"
] |
aws@amazon.com
|
b1b197f790f73d67bb27d1b66a93ef77c97f5d40
|
c1c35ffd34a3d81e612e45054ef007bd0ccbbaff
|
/src/com/netsuite/webservices/lists/accounting_2014_2/types/BillingScheduleYearDow.java
|
cd7e72b7cf6eb3657d38251541022470f24328d8
|
[] |
no_license
|
premnacre/javawithNS
|
4c3ba44c26d6de4e35572ba91aa80928f5a84e9f
|
5c8530a3bad01f4248360d9c58bf488e1ebf9f0d
|
refs/heads/master
| 2021-01-10T04:37:59.455026
| 2015-12-10T12:53:48
| 2015-12-10T12:53:48
| 47,759,601
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,828
|
java
|
/**
* BillingScheduleYearDow.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.netsuite.webservices.lists.accounting_2014_2.types;
public class BillingScheduleYearDow implements java.io.Serializable {
private java.lang.String _value_;
private static java.util.HashMap _table_ = new java.util.HashMap();
// Constructor
protected BillingScheduleYearDow(java.lang.String value) {
_value_ = value;
_table_.put(_value_,this);
}
public static final java.lang.String __sunday = "_sunday";
public static final java.lang.String __monday = "_monday";
public static final java.lang.String __tuesday = "_tuesday";
public static final java.lang.String __wednesday = "_wednesday";
public static final java.lang.String __thursday = "_thursday";
public static final java.lang.String __friday = "_friday";
public static final java.lang.String __saturday = "_saturday";
public static final java.lang.String __day = "_day";
public static final BillingScheduleYearDow _sunday = new BillingScheduleYearDow(__sunday);
public static final BillingScheduleYearDow _monday = new BillingScheduleYearDow(__monday);
public static final BillingScheduleYearDow _tuesday = new BillingScheduleYearDow(__tuesday);
public static final BillingScheduleYearDow _wednesday = new BillingScheduleYearDow(__wednesday);
public static final BillingScheduleYearDow _thursday = new BillingScheduleYearDow(__thursday);
public static final BillingScheduleYearDow _friday = new BillingScheduleYearDow(__friday);
public static final BillingScheduleYearDow _saturday = new BillingScheduleYearDow(__saturday);
public static final BillingScheduleYearDow _day = new BillingScheduleYearDow(__day);
public java.lang.String getValue() { return _value_;}
public static BillingScheduleYearDow fromValue(java.lang.String value)
throws java.lang.IllegalArgumentException {
BillingScheduleYearDow enumeration = (BillingScheduleYearDow)
_table_.get(value);
if (enumeration==null) throw new java.lang.IllegalArgumentException();
return enumeration;
}
public static BillingScheduleYearDow fromString(java.lang.String value)
throws java.lang.IllegalArgumentException {
return fromValue(value);
}
public boolean equals(java.lang.Object obj) {return (obj == this);}
public int hashCode() { return toString().hashCode();}
public java.lang.String toString() { return _value_;}
public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.EnumSerializer(
_javaType, _xmlType);
}
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.EnumDeserializer(
_javaType, _xmlType);
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(BillingScheduleYearDow.class);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:types.accounting_2014_2.lists.webservices.netsuite.com", "BillingScheduleYearDow"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
}
|
[
"bit.prem@gmail.com"
] |
bit.prem@gmail.com
|
5bdb21758d36681deb40cc757034440f56088607
|
c713ab2fa5f771757ac264942fb799a206812382
|
/src/main/java/cn/ncut/java/algorithm/heap/Heap.java
|
b05cf4a8e58a5fe5a30fac373dae5c1e1ce881c4
|
[] |
no_license
|
xrw560/Base-Java
|
933f4999b40b635fc2bc06d09c3fdc74809ea8c7
|
e6b3e4d29396c1fa0f87b1a99243237e4b438698
|
refs/heads/master
| 2021-08-23T07:25:22.875313
| 2017-12-04T03:51:56
| 2017-12-04T03:51:56
| 107,069,601
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,429
|
java
|
package cn.ncut.java.algorithm.heap;
/**
* Created by zhouning on 2017/12/4.
* desc:
*/
public abstract class Heap<T extends Comparable<T>> {
public int left(int i) {
return (i + 1) * 2 - 1;
}
public int right(int i) {
return (i + 1) * 2;
}
public int parent(int i) {
//i为根节点
if (i == 0) {
return -1;
}
return (i - 1) / 2;
}
/**
* @param a 保存堆的数组
* @param i 堆中需要下降的元素
* @param heapLength 堆元素个数
*/
public abstract void heapify(T[] a, int i, int heapLength);
/**
* 建堆
*
* @param a 数组
* @param headLength 堆元素个数
*/
public void buildHeap(T[] a, int headLength) {
//从后向前看,lengthParant处的元素是第一个有孩子节点的节点
int lengthParent = parent(headLength - 1);
//最初,parent(length)之后所有的元素都是叶子节点;
//因为大于Length/2处元素的孩子节点如果存在,那么它们的数组下标值必定大于length,这与事实不符
//在数组中,孩子元素必定在父元素的后面,从后往前对元素调用maxHeapify,保证了元素的孩子都是大根堆或小根堆
for (int i = lengthParent; i >= 0; i--) {
heapify(a, i, headLength);
}
}
}
|
[
"ncutits@163.com"
] |
ncutits@163.com
|
6d7e7fbab8487fc702861ff2c20873c458a86442
|
2f715412efec02b819e6beb344d8104cbf7e55f2
|
/mall-portal-product/product-mbg/src/main/java/com/mtcarpenter/mall/mapper/PmsMemberPriceMapper.java
|
1903e61e98c48628a8e0f56e07b5834ca93e952b
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
dream0708/mall-cloud-alibaba
|
d3b42a10e05069e90d3057a84b04e5c8d5826895
|
a62ce395c7cb20234770fa7f988b3f249865534e
|
refs/heads/master
| 2023-07-09T07:50:15.373660
| 2021-08-11T00:37:17
| 2021-08-11T00:37:17
| 286,628,573
| 0
| 0
|
Apache-2.0
| 2020-08-11T02:43:05
| 2020-08-11T02:43:04
| null |
UTF-8
|
Java
| false
| false
| 969
|
java
|
package com.mtcarpenter.mall.mapper;
import com.mtcarpenter.mall.model.PmsMemberPrice;
import com.mtcarpenter.mall.model.PmsMemberPriceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsMemberPriceMapper {
long countByExample(PmsMemberPriceExample example);
int deleteByExample(PmsMemberPriceExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsMemberPrice record);
int insertSelective(PmsMemberPrice record);
List<PmsMemberPrice> selectByExample(PmsMemberPriceExample example);
PmsMemberPrice selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsMemberPrice record, @Param("example") PmsMemberPriceExample example);
int updateByExample(@Param("record") PmsMemberPrice record, @Param("example") PmsMemberPriceExample example);
int updateByPrimaryKeySelective(PmsMemberPrice record);
int updateByPrimaryKey(PmsMemberPrice record);
}
|
[
"dreamlixc@163.com"
] |
dreamlixc@163.com
|
74b1eb6b6d9f2f507d9d48daacc6b5d2e960cfcc
|
595bab0b419a8bcce6120119a6c632324cb18fb0
|
/src/main/java/org/wildfly/security/auth/client/SetProtocolAuthenticationConfiguration.java
|
8f79fec1c3b3095328edda71a145efc552e996c8
|
[
"Apache-2.0"
] |
permissive
|
jmesnil/wildfly-elytron
|
88078efcb8fe7f71db251d170b6329467fc4bc1c
|
cea4b40395c6eac5f3fbde5fd0b99620c2403d03
|
refs/heads/master
| 2023-05-29T20:30:40.723159
| 2017-01-12T17:48:46
| 2017-01-12T17:48:46
| 78,828,026
| 0
| 0
| null | 2017-01-13T07:57:06
| 2017-01-13T07:57:06
| null |
UTF-8
|
Java
| false
| false
| 1,655
|
java
|
/*
* JBoss, Home of Professional Open Source.
* Copyright 2016 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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.wildfly.security.auth.client;
/**
* An {@link AuthenticationConfiguration} that sets the protocol reported to the authentication mechanisms.
*
* @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
*/
public class SetProtocolAuthenticationConfiguration extends AuthenticationConfiguration {
private final String protocol;
SetProtocolAuthenticationConfiguration(final AuthenticationConfiguration parent, final String protocol) {
super(parent);
this.protocol = protocol;
}
@Override
String getProtocol() {
return protocol;
}
@Override
AuthenticationConfiguration reparent(AuthenticationConfiguration newParent) {
return new SetProtocolAuthenticationConfiguration(newParent, protocol);
}
@Override
StringBuilder asString(StringBuilder sb) {
return parentAsString(sb).append("protocol=").append(protocol).append(',');
}
}
|
[
"darran.lofthouse@jboss.com"
] |
darran.lofthouse@jboss.com
|
af4ad78cbf7b348e156677bc9bc4a3d120c11213
|
d33574802593c6bb49d44c69fc51391f7dc054af
|
/ShipLinx/src/main/java/com/meritconinc/shiplinx/model/Zone.java
|
9427b593345b2433acfd8caa687a4a57df4313be
|
[] |
no_license
|
mouadaarab/solushipalertmanagement
|
96734a0ff238452531be7f4d12abac84b88de214
|
eb4cf67a7fbf54760edd99dc51efa12d74fa058e
|
refs/heads/master
| 2021-12-06T06:09:15.559467
| 2015-10-06T09:00:54
| 2015-10-06T09:00:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,871
|
java
|
package com.meritconinc.shiplinx.model;
public class Zone {
private Long zoneId;
private Long zoneStructureId;
private String zoneName;
private String cityName;
private String provinceCode;
private String countryCode;
private String fromPostalCode;
private String toPostalCode;
public Long getZoneId() {
return zoneId;
}
public void setZoneId(Long zoneId) {
this.zoneId = zoneId;
}
public Long getZoneStructureId() {
return zoneStructureId;
}
public void setZoneStructureId(Long zoneStructureId) {
this.zoneStructureId = zoneStructureId;
}
public String getZoneName() {
return zoneName;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
public String getCityName() {
return cityName;
}
public void setCityName(String cityName) {
this.cityName = cityName;
}
public String getProvinceCode() {
return provinceCode;
}
public void setProvinceCode(String provinceCode) {
this.provinceCode = provinceCode;
}
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public String getFromPostalCode() {
return fromPostalCode;
}
public void setFromPostalCode(String fromPostalCode) {
this.fromPostalCode = fromPostalCode;
}
public String getToPostalCode() {
return toPostalCode;
}
public void setToPostalCode(String toPostalCode) {
this.toPostalCode = toPostalCode;
}
public static Zone getObject(Long zoneStructureId, Address address) {
Zone z = new Zone();
z.setZoneStructureId(zoneStructureId);
z.setCityName(address.getCity());
z.setCountryCode(address.getCountryCode());
z.setProvinceCode(address.getProvinceCode());
z.setZoneName(z.getCityName() + z.getProvinceCode() + z.getCountryCode());
return z;
}
}
|
[
"harikrishnan.r@mitosistech.com"
] |
harikrishnan.r@mitosistech.com
|
3c0b242258299bca4b7dd0e02114824f20e1acab
|
e56046696d18a10fadb689ae63d7507a611d9772
|
/src/test/level15/lesson02/task01/Solution.java
|
7157d3780117241528a4af96cb5a49251140dd10
|
[] |
no_license
|
mogsev/study
|
1e4674cea4f3646626a0fc66b5ed5fc857532d6c
|
6a9deffd0d28f8f6aafca415f66e5e70351a3b65
|
refs/heads/master
| 2016-09-10T23:40:44.675523
| 2015-08-15T19:53:08
| 2015-08-15T19:53:08
| 30,208,631
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 843
|
java
|
package test.level15.lesson02.task01;
/* ООП - Расставить интерфейсы
1. Добавить все возможные интерфейсы из Movable, Sellable, Discountable в класс Clothes.
2. Реализовать их методы.
*/
public class Solution {
public static interface Movable {
boolean getAllowedAction(String name);
}
public static interface Sellable {
Object getAllowedAction(String name);
}
public static interface Discountable {
Object getAllowedAction();
}
public static class Clothes implements Sellable, Discountable {
@Override
public Object getAllowedAction() {
return null;
}
@Override
public Object getAllowedAction(String name) {
return null;
}
}
}
|
[
"mogsev@gmail.com"
] |
mogsev@gmail.com
|
714d4125c27eb65faed18230c497f33fe4976dca
|
ffb3b0954faa3eb15600fad8d276aaf9f6e609dd
|
/src/main/java/cardiller/domein/enteties/dtos/CarImportDto.java
|
939395bc26cdf60dbc863fa7bb9fe03166529cd6
|
[] |
no_license
|
tolip05/XMLexercise
|
82efdfd250906fc5b306203d5a6b12f2b35a84e3
|
0f9afc000ff96918179ed89517d19f91a943028a
|
refs/heads/master
| 2020-04-22T10:38:28.254332
| 2019-02-12T12:09:32
| 2019-02-12T12:09:35
| 170,311,750
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,053
|
java
|
package cardiller.domein.enteties.dtos;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "car")
@XmlAccessorType(XmlAccessType.FIELD)
public class CarImportDto {
@XmlElement(name = "make")
private String make;
@XmlElement(name = "model")
private String model;
@XmlElement(name = "travelled-distance")
private Double travelledDistance;
public CarImportDto() {
}
public String getMake() {
return this.make;
}
public void setMake(String make) {
this.make = make;
}
public String getModel() {
return this.model;
}
public void setModel(String model) {
this.model = model;
}
public Double getTravelledDistance() {
return this.travelledDistance;
}
public void setTravelledDistance(Double travelledDistance) {
this.travelledDistance = travelledDistance;
}
}
|
[
"kosta1980@abv.bg"
] |
kosta1980@abv.bg
|
980b0c0ae394672cf2eb45f7da23b17430fbf784
|
bada32b901ca6907b9b3748e77cde27d66c06cac
|
/user/src/main/java/com/white/user/config/MybatisPlusConfig.java
|
029de910bc434459c1568b7ee03e252ad96b8a4d
|
[] |
no_license
|
white211/microservice
|
47e0534519f699f1eaabff2b3334c58e43307e24
|
a8165e2da6281b938b56814eb72da4e8e82e732b
|
refs/heads/master
| 2023-08-09T17:00:48.441173
| 2019-11-29T17:32:08
| 2019-11-29T17:32:08
| 183,912,521
| 0
| 0
| null | 2023-07-22T04:18:49
| 2019-04-28T13:34:14
|
Java
|
UTF-8
|
Java
| false
| false
| 585
|
java
|
package com.white.user.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Program: MybatisPlusConfig
* @Description:
* @Author: White
* @DateTime: 2019-10-12 11:03:02
**/
@Configuration
@MapperScan("com.white.user.mapper")
public class MybatisPlusConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
return new PaginationInterceptor();
}
}
|
[
"942364283@qq.com"
] |
942364283@qq.com
|
0a9e3ad7fea42b97e87256d0b0c42c145dbf817b
|
a61f8e55d77a98ea5f064af94e15e00dbd0483ad
|
/SafeFoodSpring/src/main/java/com/ssafy/dao/MemRepo.java
|
976e05da1950ea04c469a59c2de1d3b448a829b6
|
[] |
no_license
|
Minnaldo/Spring_work
|
64220187281f6ed4a51d91f768305a5fe62f75fa
|
579fae1129c9994af055a7c388fd5232ab082cb8
|
refs/heads/master
| 2022-12-25T06:53:42.272539
| 2019-11-08T00:16:11
| 2019-11-08T00:16:11
| 215,254,575
| 0
| 0
| null | 2022-12-16T09:58:49
| 2019-10-15T09:06:00
|
Java
|
UTF-8
|
Java
| false
| false
| 312
|
java
|
package com.ssafy.dao;
import java.util.List;
import com.ssafy.vo.MemVO;
public interface MemRepo {
public void insert(MemVO m);
public void update(MemVO m);
public void delete(String id);
public MemVO selectOne(String id);
public List<MemVO> selectList();
public MemVO login(MemVO m);
}
|
[
"minnaldo6602@gmail.com"
] |
minnaldo6602@gmail.com
|
ac38d0ddceded9c96895b6bdfda07378f99f909b
|
b27bfe9db8f0c7e5ca9377397b23ef2ef27d4ddc
|
/morozov/system/gui/space3d/errors/WrongArgumentIsUnknownAlphaAttribute.java
|
8653ad5cd343353989b159bfbaea0ed6d7dc5abb
|
[] |
no_license
|
Morozov2012/actor-prolog-java-library
|
85fe97eb6a37709d742f4ab06b29d0718c7269c3
|
5a7e2011ac2152278b8ebae3dfb2da4d925619a3
|
refs/heads/master
| 2021-01-20T15:39:14.173431
| 2019-12-13T13:09:01
| 2019-12-13T13:09:01
| 7,780,078
| 5
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 285
|
java
|
// (c) 2012 IRE RAS Alexei A. Morozov
package morozov.system.gui.space3d.errors;
import morozov.terms.errors.*;
public class WrongArgumentIsUnknownAlphaAttribute extends WrongArgumentIsUnknownAttribute {
public WrongArgumentIsUnknownAlphaAttribute(long name) {
super(name);
}
}
|
[
"AlexeiMorozov2006@rambler.ru"
] |
AlexeiMorozov2006@rambler.ru
|
f44d4c02c00c24011b6f409526cc34f6f953544a
|
0f06839be9b8a992c5a4c734a510269b67d2a41b
|
/src/main/java/org/jtheque/movies/views/able/IEditMovieView.java
|
1b3149cdaab1fe319705be490f1f8fe73e0ae10e
|
[] |
no_license
|
ficolian/jtheque-movies-module
|
db92bdf3fddbaf38fd26a5797343708d4cb5ffaf
|
90871148030ae74008df1340f49eb65248b9f130
|
refs/heads/master
| 2021-05-26T13:36:47.593723
| 2010-08-22T13:26:32
| 2010-08-22T13:26:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,378
|
java
|
package org.jtheque.movies.views.able;
/*
* Copyright JTheque (Baptiste Wicht)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.jtheque.movies.utils.PreciseDuration;
import org.jtheque.movies.utils.Resolution;
import org.jtheque.ui.View;
/**
* Created by IntelliJ IDEA. User: wichtounet Date: Jul 21, 2010 Time: 12:10:30 PM To change this template use File |
* Settings | File Templates.
*/
public interface IEditMovieView extends View {
/**
* Return the entered file path.
*
* @return The entered file path.
*/
String getFilePath();
/**
* Set the resolution.
*
* @param resolution The resolution to set.
*/
void setResolution(Resolution resolution);
/**
* Set the duration.
*
* @param duration The duration to set.
*/
void setDuration(PreciseDuration duration);
}
|
[
"baptistewicht@gmail.com"
] |
baptistewicht@gmail.com
|
2866cb50d85fe1cef6edb46485dc6aadf3ecec05
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/results/Jsoup-87/org.jsoup.parser.Tag/BBC-F0-opt-90/tests/16/org/jsoup/parser/Tag_ESTest_scaffolding.java
|
ca01599bc1a6731956b58c0fa700481f017b940a
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 4,490
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Oct 20 17:24:43 GMT 2021
*/
package org.jsoup.parser;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class Tag_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.jsoup.parser.Tag";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
/*No java.lang.System property to set*/
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(Tag_ESTest_scaffolding.class.getClassLoader() ,
"org.jsoup.helper.Validate",
"org.jsoup.parser.ParseSettings",
"org.jsoup.parser.Tag",
"org.jsoup.internal.Normalizer"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(Tag_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.jsoup.helper.Validate",
"org.jsoup.parser.Tag",
"org.jsoup.parser.ParseSettings",
"org.jsoup.internal.Normalizer",
"org.jsoup.nodes.Attributes",
"org.jsoup.nodes.Attributes$Dataset",
"org.jsoup.nodes.Attributes$1",
"org.jsoup.nodes.Attribute",
"org.jsoup.internal.StringUtil",
"org.jsoup.nodes.Node",
"org.jsoup.nodes.Element",
"org.jsoup.nodes.Document",
"org.jsoup.nodes.Document$OutputSettings",
"org.jsoup.nodes.Document$OutputSettings$Syntax",
"org.jsoup.nodes.Entities",
"org.jsoup.parser.CharacterReader",
"org.jsoup.nodes.Entities$EscapeMode",
"org.jsoup.nodes.Document$QuirksMode",
"org.jsoup.nodes.Entities$CoreCharset",
"org.jsoup.nodes.Entities$1",
"org.jsoup.parser.Parser",
"org.jsoup.parser.Tokeniser",
"org.jsoup.parser.ParseErrorList",
"org.jsoup.parser.TokeniserState",
"org.jsoup.parser.Token",
"org.jsoup.parser.Token$Tag",
"org.jsoup.parser.Token$StartTag",
"org.jsoup.parser.Token$TokenType",
"org.jsoup.parser.Token$EndTag",
"org.jsoup.parser.Token$Character",
"org.jsoup.parser.Token$Doctype",
"org.jsoup.parser.Token$Comment",
"org.jsoup.nodes.BooleanAttribute"
);
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
2e6fe15712a7db3e424b3ab1fbb816b2184c8960
|
f68885b60953674bd7a0411bf57695603fb9fe65
|
/src/main/java/com/bloxbean/oan/dashboard/staking/activities/model/Transfer.java
|
304054801a7c84a5146dba835ec7f25c991262cf
|
[] |
no_license
|
bloxbean/oan-staking-dashboard-api
|
946e25b737a0f4316cc49709468be86835acd395
|
9f4c43c4b12d2b4e570fd39607d923979e57c9bc
|
refs/heads/master
| 2023-03-03T14:54:16.656878
| 2021-02-14T05:09:32
| 2021-02-14T05:09:32
| 338,730,957
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 215
|
java
|
package com.bloxbean.oan.dashboard.staking.activities.model;
public class Transfer extends Activity {
public static final String IN_ACTION_KEY = "TIN";
public static final String OUT_ACTION_KEY = "TOUT";
}
|
[
"satran004@gmail.com"
] |
satran004@gmail.com
|
4bc64952c67374085f8f5afbfdc97a3c1ba008bb
|
dda538ead3298ee2bcbccb25b30a2fb1fb8bf1a5
|
/src/com/company/_6_Command/_3/Objects/GarageDoor.java
|
e421229014cb0734076901b0ca6b70ea3f09e13e
|
[] |
no_license
|
NikoBolt/Design-Patterns
|
4800a434fac29e8426b05bccb0b72c18c9c31153
|
cc5c701693972fcc3e2371a484c77f93e97d1feb
|
refs/heads/master
| 2023-02-06T02:57:24.477257
| 2020-12-27T19:39:01
| 2020-12-27T19:39:01
| 292,805,079
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 523
|
java
|
package com.company._6_Command._3.Objects;
public class GarageDoor {
public GarageDoor() {}
public void up() {
System.out.println("Garage Door is Open");
}
public void down() {
System.out.println("Garage Door is Closed");
}
public void stop() {
System.out.println("Garage Door is Stopped");
}
public void lightOn() {
System.out.println("Garage light is on");
}
public void lightOff() {
System.out.println("Garage light is off");
}
}
|
[
"docnikbolt@gmail.com"
] |
docnikbolt@gmail.com
|
af453cc535bb34fded6922871e9d741f760abed1
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/25/25_3439ef0c00b34e08011ff6af753b3908d7045e42/FindServiceByNameQuery/25_3439ef0c00b34e08011ff6af753b3908d7045e42_FindServiceByNameQuery_s.java
|
d67cbb9d21b8cb341115887f472bb81bcdb343bf
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,956
|
java
|
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.juddi.datastore.jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Vector;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.juddi.datatype.Name;
import org.apache.juddi.datatype.request.FindQualifiers;
import org.apache.juddi.util.jdbc.DynamicQuery;
/**
* @author Steve Viens (sviens@apache.org)
*/
class FindServiceByNameQuery
{
// private reference to the jUDDI logger
private static Log log = LogFactory.getLog(FindServiceByNameQuery.class);
static String selectSQL;
static
{
// build selectSQL
StringBuffer sql = new StringBuffer(200);
sql.append("SELECT S.SERVICE_KEY,S.LAST_UPDATE,N.NAME ");
sql.append("FROM BUSINESS_SERVICE S,SERVICE_NAME N ");
selectSQL = sql.toString();
}
/**
* Select ...
*
* @param businessKey primary key value
* @param names
* @param keysIn
* @param qualifiers
* @param connection JDBC connection
* @throws java.sql.SQLException
*/
public static Vector select(String businessKey,Vector names,Vector keysIn,FindQualifiers qualifiers,Connection connection)
throws java.sql.SQLException
{
// if there is a keysIn vector but it doesn't contain
// any keys then the previous query has exhausted
// all possibilities of a match so skip this call.
if ((keysIn != null) && (keysIn.size() == 0))
return keysIn;
Vector keysOut = new Vector();
PreparedStatement statement = null;
ResultSet resultSet = null;
// construct the SQL statement
DynamicQuery sql = new DynamicQuery(selectSQL);
appendWhere(sql,businessKey,names,qualifiers);
appendIn(sql,keysIn);
appendOrderBy(sql,qualifiers);
try
{
log.debug(sql.toString());
statement = sql.buildPreparedStatement(connection);
resultSet = statement.executeQuery();
while (resultSet.next())
keysOut.addElement(resultSet.getString(1));//("SERVICE_KEY"));
return keysOut;
}
finally
{
try {
resultSet.close();
}
catch (Exception e)
{
log.warn("An Exception was encountered while attempting to close " +
"the Find BusinessService ResultSet: "+e.getMessage(),e);
}
try {
statement.close();
}
catch (Exception e)
{
log.warn("An Exception was encountered while attempting to close " +
"the Find BusinessService Statement: "+e.getMessage(),e);
}
}
}
/**
*
*/
private static void appendWhere(DynamicQuery sql,String businessKey,Vector names,FindQualifiers qualifiers)
{
sql.append("WHERE N.SERVICE_KEY = S.SERVICE_KEY ");
// per UDDI v2.0 Programmers API Errata (pg. 14), businessKey is
// is no longer a required attribute of the find_service server.
if((businessKey != null) && (businessKey.length() > 0))
{
sql.append("AND S.BUSINESS_KEY = ? ");
sql.addValue(businessKey);
}
if (names != null)
{
int nameSize = names.size();
if (nameSize > 0)
{
sql.append("AND (");
for (int i=0; i<nameSize; i++)
{
Name name = (Name)names.elementAt(i);
String text = name.getValue();
String lang = name.getLanguageCode();
if ((text != null) && (text.length() > 0))
{
if (qualifiers == null) // default
{
sql.append("(UPPER(NAME) LIKE ?");
sql.addValue(text.endsWith("%") ? text.toUpperCase() : text.toUpperCase()+"%");
}
else if ((qualifiers.caseSensitiveMatch) && (qualifiers.exactNameMatch))
{
sql.append("(NAME = ?");
sql.addValue(text);
}
else if ((!qualifiers.caseSensitiveMatch) && (qualifiers.exactNameMatch))
{
sql.append("(UPPER(NAME) = ?");
sql.addValue(text.toUpperCase());
}
else if ((qualifiers.caseSensitiveMatch) && (!qualifiers.exactNameMatch))
{
sql.append("(NAME LIKE ?");
sql.addValue(text.endsWith("%") ? text : text+"%");
}
else if ((!qualifiers.caseSensitiveMatch) && (!qualifiers.exactNameMatch))
{
sql.append("(UPPER(NAME) LIKE ?");
sql.addValue(text.endsWith("%") ? text.toUpperCase() : text.toUpperCase()+"%");
}
// If lang is "en" we'll need to match with "en", "en_US" or "en_UK"
if ((lang != null) && (lang.length() > 0))
{
sql.append(" AND (UPPER(LANG_CODE) LIKE ?)");
sql.addValue(lang.toUpperCase()+"%");
}
sql.append(")");
if (i+1 < nameSize)
sql.append(" OR ");
}
}
}
sql.append(") ");
}
}
/**
* Utility method used to construct SQL "IN" statements such as
* the following SQL example:
*
* SELECT * FROM TABLE WHERE MONTH IN ('jan','feb','mar')
*
* @param sql StringBuffer to append the final results to
* @param keysIn Vector of Strings used to construct the "IN" clause
*/
private static void appendIn(DynamicQuery sql,Vector keysIn)
{
if (keysIn == null)
return;
sql.append("AND S.SERVICE_KEY IN (");
int keyCount = keysIn.size();
for (int i=0; i<keyCount; i++)
{
String key = (String)keysIn.elementAt(i);
sql.append("?");
sql.addValue(key);
if ((i+1) < keyCount)
sql.append(",");
}
sql.append(") ");
}
/**
*
*/
private static void appendOrderBy(DynamicQuery sql,FindQualifiers qualifiers)
{
sql.append("ORDER BY ");
if ((qualifiers == null) ||
((!qualifiers.sortByNameAsc) && (!qualifiers.sortByNameDesc) &&
(!qualifiers.sortByDateAsc) && (!qualifiers.sortByDateDesc)))
{
sql.append("N.NAME ASC,S.LAST_UPDATE DESC");
}
else if (qualifiers.sortByNameAsc || qualifiers.sortByNameDesc)
{
if (qualifiers.sortByDateAsc || qualifiers.sortByDateDesc)
{
if (qualifiers.sortByNameAsc && qualifiers.sortByDateDesc)
sql.append("N.NAME ASC,S.LAST_UPDATE DESC");
else if (qualifiers.sortByNameAsc && qualifiers.sortByDateAsc)
sql.append("N.NAME ASC,S.LAST_UPDATE ASC");
else if (qualifiers.sortByNameDesc && qualifiers.sortByDateDesc)
sql.append("N.NAME DESC,S.LAST_UPDATE DESC");
else
sql.append("N.NAME DESC,S.LAST_UPDATE ASC");
}
else
{
if (qualifiers.sortByNameAsc)
sql.append("N.NAME ASC,S.LAST_UPDATE DESC");
else
sql.append("N.NAME DESC,S.LAST_UPDATE DESC");
}
}
else if (qualifiers.sortByDateAsc || qualifiers.sortByDateDesc)
{
if (qualifiers.sortByDateDesc)
sql.append("S.LAST_UPDATE ASC,N.NAME ASC");
else
sql.append("S.LAST_UPDATE DESC,N.NAME ASC");
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
49fcf963a13a86a1fa08beaa8dfea4a614217fb2
|
25d9895ca2f89d0ed6922837cc84fd45f9f053d6
|
/trunk/src/main/java/com/lwxf/industry4/webapp/domain/dao/evaluate/EvaluateInfoFilesDao.java
|
2f127cb6b7f3ebef6e3927386a8016e02e825f60
|
[] |
no_license
|
sxw5036/worktogit
|
adc251c091d21fd321770555cab7a1f8db74de7d
|
a30b1ef0313d90d3b74c10b88f2bc9aea3f1166d
|
refs/heads/master
| 2023-01-15T07:54:17.722413
| 2020-11-23T10:13:10
| 2020-11-23T10:13:10
| 315,167,385
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 699
|
java
|
package com.lwxf.industry4.webapp.domain.dao.evaluate;
import com.lwxf.industry4.webapp.common.model.PaginatedFilter;
import com.lwxf.industry4.webapp.common.model.PaginatedList;
import com.lwxf.industry4.webapp.domain.dao.base.BaseDao;
import com.lwxf.industry4.webapp.domain.entity.evaluate.EvaluateInfoFiles;
import com.lwxf.mybatis.annotation.IBatisSqlTarget;
/**
* 功能:
*
* @author:lyh
* @created:2019-11-29 16:35:04
* @version:
* @company:老屋新房 Created with IntelliJ IDEA
*/
@IBatisSqlTarget
public interface EvaluateInfoFilesDao extends BaseDao<EvaluateInfoFiles, String> {
PaginatedList<EvaluateInfoFiles> selectByFilter(PaginatedFilter paginatedFilter);
}
|
[
"17838625030@163.com"
] |
17838625030@163.com
|
cca347c2c7cd77aef13a1e435bc06ac048612a4b
|
ee87f6460b839ab98325fd921034c2fd82c7a1d8
|
/camel-knative/camel-knative-api/src/generated/java/org/apache/camel/component/knative/spi/CloudEventTypeConverterLoader.java
|
7e5df28c4daadba0974c3689dd712a3c69043a1e
|
[
"Apache-2.0"
] |
permissive
|
PoojaChandak/camel-k-runtime
|
935d9cb25228903f4b9b8923a02c7d9adfff3054
|
ef658c156b9c8ea55bb282438f57e96f0364eb7b
|
refs/heads/master
| 2022-12-04T11:23:46.219517
| 2020-08-19T12:59:59
| 2020-08-19T12:59:59
| 288,732,380
| 0
| 0
|
Apache-2.0
| 2020-08-19T12:57:49
| 2020-08-19T12:57:48
| null |
UTF-8
|
Java
| false
| false
| 1,507
|
java
|
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.knative.spi;
import org.apache.camel.Exchange;
import org.apache.camel.TypeConversionException;
import org.apache.camel.TypeConverterLoaderException;
import org.apache.camel.spi.TypeConverterLoader;
import org.apache.camel.spi.TypeConverterRegistry;
import org.apache.camel.support.SimpleTypeConverter;
import org.apache.camel.support.TypeConverterSupport;
import org.apache.camel.util.DoubleMap;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public final class CloudEventTypeConverterLoader implements TypeConverterLoader {
public CloudEventTypeConverterLoader() {
}
@Override
public void load(TypeConverterRegistry registry) throws TypeConverterLoaderException {
registerConverters(registry);
}
private void registerConverters(TypeConverterRegistry registry) {
addTypeConverter(registry, org.apache.camel.component.knative.spi.CloudEvent.class, java.lang.String.class, false,
(type, exchange, value) -> org.apache.camel.component.knative.spi.CloudEventTypeConverter.fromSpecVersion((java.lang.String) value));
}
private static void addTypeConverter(TypeConverterRegistry registry, Class<?> toType, Class<?> fromType, boolean allowNull, SimpleTypeConverter.ConversionMethod method) {
registry.addTypeConverter(toType, fromType, new SimpleTypeConverter(allowNull, method));
}
}
|
[
"lburgazzoli@users.noreply.github.com"
] |
lburgazzoli@users.noreply.github.com
|
d9c6cdf7f7b2efb0f3f91361ddf3627c7f01918c
|
2eb5604c0ba311a9a6910576474c747e9ad86313
|
/chado-pg-orm/src/org/irri/iric/chado/so/MinorTssHome.java
|
d462c0ef20b65da13006c5ef12a6920a2f5a7620
|
[] |
no_license
|
iric-irri/portal
|
5385c6a4e4fd3e569f5334e541d4b852edc46bc1
|
b2d3cd64be8d9d80b52d21566f329eeae46d9749
|
refs/heads/master
| 2021-01-16T00:28:30.272064
| 2014-05-26T05:46:30
| 2014-05-26T05:46:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,442
|
java
|
package org.irri.iric.chado.so;
// Generated 05 26, 14 1:32:32 PM by Hibernate Tools 3.4.0.CR1
import java.util.List;
import javax.naming.InitialContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Example;
/**
* Home object for domain model class MinorTss.
* @see org.irri.iric.chado.so.MinorTss
* @author Hibernate Tools
*/
public class MinorTssHome {
private static final Log log = LogFactory.getLog(MinorTssHome.class);
private final SessionFactory sessionFactory = getSessionFactory();
protected SessionFactory getSessionFactory() {
try {
return (SessionFactory) new InitialContext()
.lookup("SessionFactory");
} catch (Exception e) {
log.error("Could not locate SessionFactory in JNDI", e);
throw new IllegalStateException(
"Could not locate SessionFactory in JNDI");
}
}
public void persist(MinorTss transientInstance) {
log.debug("persisting MinorTss instance");
try {
sessionFactory.getCurrentSession().persist(transientInstance);
log.debug("persist successful");
} catch (RuntimeException re) {
log.error("persist failed", re);
throw re;
}
}
public void attachDirty(MinorTss instance) {
log.debug("attaching dirty MinorTss instance");
try {
sessionFactory.getCurrentSession().saveOrUpdate(instance);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(MinorTss instance) {
log.debug("attaching clean MinorTss instance");
try {
sessionFactory.getCurrentSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(MinorTss persistentInstance) {
log.debug("deleting MinorTss instance");
try {
sessionFactory.getCurrentSession().delete(persistentInstance);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public MinorTss merge(MinorTss detachedInstance) {
log.debug("merging MinorTss instance");
try {
MinorTss result = (MinorTss) sessionFactory.getCurrentSession()
.merge(detachedInstance);
log.debug("merge successful");
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public MinorTss findById(org.irri.iric.chado.so.MinorTssId id) {
log.debug("getting MinorTss instance with id: " + id);
try {
MinorTss instance = (MinorTss) sessionFactory.getCurrentSession()
.get("org.irri.iric.chado.so.MinorTss", id);
if (instance == null) {
log.debug("get successful, no instance found");
} else {
log.debug("get successful, instance found");
}
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
}
public List findByExample(MinorTss instance) {
log.debug("finding MinorTss instance by example");
try {
List results = sessionFactory.getCurrentSession()
.createCriteria("org.irri.iric.chado.so.MinorTss")
.add(Example.create(instance)).list();
log.debug("find by example successful, result size: "
+ results.size());
return results;
} catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
}
}
|
[
"locem@berting-debian.ourwebserver.no-ip.biz"
] |
locem@berting-debian.ourwebserver.no-ip.biz
|
4198d0f10ebe553e886308060da4019f4f7079f6
|
2f715412efec02b819e6beb344d8104cbf7e55f2
|
/mall-portal-member/member-server/src/main/java/com/mtcarpenter/mall/portal/service/impl/MemberCollectionServiceImpl.java
|
36a6398d2fa5d682d50ec9d2b64d49ac4fbd3431
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
dream0708/mall-cloud-alibaba
|
d3b42a10e05069e90d3057a84b04e5c8d5826895
|
a62ce395c7cb20234770fa7f988b3f249865534e
|
refs/heads/master
| 2023-07-09T07:50:15.373660
| 2021-08-11T00:37:17
| 2021-08-11T00:37:17
| 286,628,573
| 0
| 0
|
Apache-2.0
| 2020-08-11T02:43:05
| 2020-08-11T02:43:04
| null |
UTF-8
|
Java
| false
| false
| 3,275
|
java
|
package com.mtcarpenter.mall.portal.service.impl;
import com.mtcarpenter.mall.mapper.UmsIntegrationConsumeSettingMapper;
import com.mtcarpenter.mall.model.UmsIntegrationConsumeSetting;
import com.mtcarpenter.mall.model.UmsMember;
import com.mtcarpenter.mall.portal.domain.MemberProductCollection;
import com.mtcarpenter.mall.portal.repository.MemberProductCollectionRepository;
import com.mtcarpenter.mall.portal.service.MemberCollectionService;
import com.mtcarpenter.mall.portal.service.UmsMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import java.util.Date;
/**
* 会员收藏Service实现类
* Created by macro on 2018/8/2.
*/
@Service
public class MemberCollectionServiceImpl implements MemberCollectionService {
@Autowired
private MemberProductCollectionRepository productCollectionRepository;
@Autowired
private UmsMemberService memberService;
@Autowired
private UmsIntegrationConsumeSettingMapper integrationConsumeSettingMapper;
@Override
public int add(MemberProductCollection productCollection) {
int count = 0;
UmsMember member = memberService.getCurrentMember();
productCollection.setMemberId(member.getId());
productCollection.setMemberNickname(member.getNickname());
productCollection.setMemberIcon(member.getIcon());
productCollection.setCreateTime(new Date());
MemberProductCollection findCollection = productCollectionRepository.findByMemberIdAndProductId(productCollection.getMemberId(), productCollection.getProductId());
if (findCollection == null) {
productCollectionRepository.save(productCollection);
count = 1;
}
return count;
}
@Override
public int delete(Long productId) {
UmsMember member = memberService.getCurrentMember();
return productCollectionRepository.deleteByMemberIdAndProductId(member.getId(), productId);
}
@Override
public Page<MemberProductCollection> list(Integer pageNum, Integer pageSize) {
UmsMember member = memberService.getCurrentMember();
Pageable pageable = PageRequest.of(pageNum - 1, pageSize);
return productCollectionRepository.findByMemberId(member.getId(), pageable);
}
/**
* 获取积分规则
*
* @param id
* @return
*/
@Override
public UmsIntegrationConsumeSetting integrationConsumeSetting(Long id) {
return integrationConsumeSettingMapper.selectByPrimaryKey(id);
}
/**
* 显示收藏商品详情
*
* @param productId
* @return
*/
@Override
public MemberProductCollection detail(Long productId) {
UmsMember member = memberService.getCurrentMember();
return productCollectionRepository.findByMemberIdAndProductId(member.getId(), productId);
}
/**
* 清空收藏列表
*/
@Override
public void clear() {
UmsMember member = memberService.getCurrentMember();
productCollectionRepository.deleteAllByMemberId(member.getId());
}
}
|
[
"dreamlixc@163.com"
] |
dreamlixc@163.com
|
04e6b4f6dc200d41891502924388aa3f138387e4
|
97abe314f90c47105d0a5a987c86c8a5eee8ace2
|
/carbidev/com.nokia.tools.variant.editor_1.0.0.v20090225_01-11/src/com/nokia/tools/variant/editor/model/summaryModel/UISummaryModel.java
|
781673a3730e59fb0fa3b3b6f6f7e45777839642
|
[] |
no_license
|
SymbianSource/oss.FCL.sftools.depl.swconfigapps.configtools
|
f668c9cd73dafd83d11beb9f86252674d2776cd2
|
dcab5fbd53cf585e079505ef618936fd8a322b47
|
refs/heads/master
| 2020-12-24T12:00:19.067971
| 2010-06-02T07:50:41
| 2010-06-02T07:50:41
| 73,007,522
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,869
|
java
|
/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - Initial contribution
*
* Contributors:
*
* Description: This file is part of com.nokia.tools.variant.editor component.
*/
package com.nokia.tools.variant.editor.model.summaryModel;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>UI Summary Model</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link com.nokia.tools.variant.editor.model.summaryModel.UISummaryModel#getUiGroups <em>Ui Groups</em>}</li>
* </ul>
* </p>
*
* @see com.nokia.tools.variant.editor.model.summaryModel.SummaryModelPackage#getUISummaryModel()
* @model
* @generated
*/
public interface UISummaryModel extends EObject {
/**
* Returns the value of the '<em><b>Ui Groups</b></em>' reference list.
* The list contents are of type {@link com.nokia.tools.variant.editor.model.summaryModel.UISummaryGroup}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Ui Groups</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Ui Groups</em>' reference list.
* @see com.nokia.tools.variant.editor.model.summaryModel.SummaryModelPackage#getUISummaryModel_UiGroups()
* @model
* @generated
*/
EList<UISummaryGroup> getUiGroups();
} // UISummaryModel
|
[
"none@none"
] |
none@none
|
2dbd2f7dc4b22c31de9e9e8bed42e2ecf86db83f
|
37a30835fcea9664afa873871e479cd28e280378
|
/app/src/main/java/com/duy/pascal/interperter/exceptions/runtime/MethodCallException.java
|
b72a249b5f01ee232dd4f01685e158c5c1f5a77a
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
DereckySany/pascalnide
|
2e2ad859ff91809a52817f2a61dac92f048ece85
|
c7f3f79ecf4cf6a81b32c7d389aad7f4034c8f01
|
refs/heads/master
| 2022-01-03T08:00:37.935504
| 2018-03-18T14:02:17
| 2018-03-18T14:02:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,812
|
java
|
package com.duy.pascal.interperter.exceptions.runtime;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import com.duy.pascal.interperter.declaration.lang.function.AbstractFunction;
import com.duy.pascal.interperter.linenumber.LineNumber;
import com.duy.pascal.ui.R;
import com.duy.pascal.ui.code.ExceptionManager;
import static com.duy.pascal.ui.code.ExceptionManager.formatLine;
public class MethodCallException extends RuntimePascalException {
public Throwable cause;
public AbstractFunction function;
public MethodCallException(LineNumber line, Throwable cause,
AbstractFunction function) {
super(line);
this.cause = cause;
this.function = function;
}
@Override
public String getMessage() {
return "When calling Function or Procedure " + function.getName()
+ ", The following java exception: \"" + cause + "\"\n" +
"Message: " + (cause != null ? cause.getMessage() : "");
}
@Override
public Spanned getFormattedMessage(@NonNull Context context) {
MethodCallException exception = this;
String format = String.format(
context.getString(R.string.PluginCallException),
exception.function.toString(),
exception.cause.getClass().getSimpleName());
String line = formatLine(context, exception.getLineNumber());
SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append(line).append("\n\n");
builder.append(format);
builder.append("\n\n");
builder.append(new ExceptionManager(context).getMessage(exception.cause));
return builder;
}
}
|
[
"tranleduy1233@gmail.com"
] |
tranleduy1233@gmail.com
|
04250a7f6097ad4c682084dd839255899abd76e6
|
9e20645e45cc51e94c345108b7b8a2dd5d33193e
|
/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/Q509_TheClansPrestige.java
|
a6a54dfb143c4957542914af502fdeeed84dc1e0
|
[] |
no_license
|
Enryu99/L2jMobius-01-11
|
2da23f1c04dcf6e88b770f6dcbd25a80d9162461
|
4683916852a03573b2fe590842f6cac4cc8177b8
|
refs/heads/master
| 2023-09-01T22:09:52.702058
| 2021-11-02T17:37:29
| 2021-11-02T17:37:29
| 423,405,362
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,142
|
java
|
/*
* This file is part of the L2J Mobius project.
*
* 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 quests.Q509_TheClansPrestige;
import org.l2jmobius.commons.util.Rnd;
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
import org.l2jmobius.gameserver.util.Util;
public class Q509_TheClansPrestige extends Quest
{
// NPCs
private static final int VALDIS = 31331;
// Items
private static final int DAIMONS_EYES = 8489;
private static final int HESTIAS_FAIRY_STONE = 8490;
private static final int NUCLEUS_OF_LESSER_GOLEM = 8491;
private static final int FALSTON_FANG = 8492;
private static final int SHAIDS_TALON = 8493;
// Raid Bosses
private static final int DAIMON_THE_WHITE_EYED = 25290;
private static final int HESTIA_GUARDIAN_DEITY = 25293;
private static final int PLAGUE_GOLEM = 25523;
private static final int DEMONS_AGENT_FALSTON = 25322;
private static final int QUEEN_SHYEED = 25514;
// Reward list (itemId, minClanPoints, maxClanPoints)
private static final int[][] REWARD_LIST =
{
{
DAIMON_THE_WHITE_EYED,
DAIMONS_EYES,
180,
215
},
{
HESTIA_GUARDIAN_DEITY,
HESTIAS_FAIRY_STONE,
430,
465
},
{
PLAGUE_GOLEM,
NUCLEUS_OF_LESSER_GOLEM,
380,
415
},
{
DEMONS_AGENT_FALSTON,
FALSTON_FANG,
220,
255
},
{
QUEEN_SHYEED,
SHAIDS_TALON,
130,
165
}
};
// Radar
private static final int[][] radar =
{
{
186320,
-43904,
-3175
},
{
134672,
-115600,
-1216
},
{
170000,
-59900,
-3848
},
{
93296,
-75104,
-1824
},
{
79635,
-55612,
-5980
}
};
public Q509_TheClansPrestige()
{
super(509, "The Clan's Prestige");
registerQuestItems(DAIMONS_EYES, HESTIAS_FAIRY_STONE, NUCLEUS_OF_LESSER_GOLEM, FALSTON_FANG, SHAIDS_TALON);
addStartNpc(VALDIS);
addTalkId(VALDIS);
addKillId(DAIMON_THE_WHITE_EYED, HESTIA_GUARDIAN_DEITY, PLAGUE_GOLEM, DEMONS_AGENT_FALSTON, QUEEN_SHYEED);
}
@Override
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
{
String htmltext = event;
final QuestState st = player.getQuestState(getName());
if (st == null)
{
return htmltext;
}
if (Util.isDigit(event))
{
final int evt = Integer.parseInt(event);
st.set("raid", event);
htmltext = "31331-" + event + ".htm";
final int x = radar[evt - 1][0];
final int y = radar[evt - 1][1];
final int z = radar[evt - 1][2];
if ((x + y + z) > 0)
{
st.addRadar(x, y, z);
}
st.set("cond", "1");
st.setState(State.STARTED);
st.playSound(QuestState.SOUND_ACCEPT);
}
else if (event.equalsIgnoreCase("31331-6.htm"))
{
st.playSound(QuestState.SOUND_FINISH);
st.exitQuest(true);
}
return htmltext;
}
@Override
public String onTalk(NpcInstance npc, PlayerInstance player)
{
final QuestState st = player.getQuestState(getName());
String htmltext = getNoQuestMsg();
if (st == null)
{
return htmltext;
}
final Clan clan = player.getClan();
switch (st.getState())
{
case State.CREATED:
if (!player.isClanLeader())
{
st.exitQuest(true);
htmltext = "31331-0a.htm";
}
else if (clan.getLevel() < 6)
{
st.exitQuest(true);
htmltext = "31331-0b.htm";
}
else
{
htmltext = "31331-0c.htm";
}
break;
case State.STARTED:
final int raid = st.getInt("raid");
if (st.getInt("cond") == 1)
{
final int item = REWARD_LIST[raid - 1][1];
final int count = st.getQuestItemsCount(item);
final int reward = Rnd.get(REWARD_LIST[raid - 1][2], REWARD_LIST[raid - 1][3]);
if (count == 0)
{
htmltext = "31331-" + raid + "a.htm";
}
else if (count == 1)
{
htmltext = "31331-" + raid + "b.htm";
st.takeItems(item, 1);
clan.setReputationScore(clan.getReputationScore() + reward, true);
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_S_REPUTATION_SCORE).addNumber(reward));
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
}
}
break;
}
return htmltext;
}
@Override
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
{
// Retrieve the qs of the clan leader.
final QuestState st = getClanLeaderQuestState(player, npc);
if ((st == null) || !st.isStarted())
{
return null;
}
// Reward only if quest is setup on good index.
final int raid = st.getInt("raid");
if (REWARD_LIST[raid - 1][0] == npc.getNpcId())
{
final int item = REWARD_LIST[raid - 1][1];
if (!st.hasQuestItems(item))
{
st.giveItems(item, 1);
st.playSound(QuestState.SOUND_MIDDLE);
}
}
return null;
}
}
|
[
"MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b"
] |
MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b
|
2991308b22aa871e6f96966c4351fe4af3a7968d
|
ca0e9689023cc9998c7f24b9e0532261fd976e0e
|
/src/com/tencent/mm/ui/conversation/e$49.java
|
31f6ec114570f495cb4353e9248bd638f97cff46
|
[] |
no_license
|
honeyflyfish/com.tencent.mm
|
c7e992f51070f6ac5e9c05e9a2babd7b712cf713
|
ce6e605ff98164359a7073ab9a62a3f3101b8c34
|
refs/heads/master
| 2020-03-28T15:42:52.284117
| 2016-07-19T16:33:30
| 2016-07-19T16:33:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 893
|
java
|
package com.tencent.mm.ui.conversation;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import com.tencent.mm.ba.c;
final class e$49
implements AbsListView.OnScrollListener
{
e$49(e parame) {}
public final void onScroll(AbsListView paramAbsListView, int paramInt1, int paramInt2, int paramInt3)
{
if (paramInt1 < 2) {}
while (e.h(lqm)) {
return;
}
e.i(lqm);
}
public final void onScrollStateChanged(AbsListView paramAbsListView, int paramInt)
{
if (paramInt == 2) {
c.aZg().aW(e.class.getName() + ".Listview", 4);
}
if (paramInt == 0)
{
if (e.c(lqm) == null) {
return;
}
e.a(lqm, -1);
return;
}
e.j(lqm);
}
}
/* Location:
* Qualified Name: com.tencent.mm.ui.conversation.e.49
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
9662953144652aae79888b84ea56e70b854c51d0
|
59f9102cbcb7a0ca6ffd6840e717e8648ab2f12a
|
/jdk6/org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java
|
ca3c9caca14e4ee6f0858ffb6bd6ed5a5425e676
|
[] |
no_license
|
yuanhua1/ruling_java
|
77a52b2f9401c5392bf1409fc341ab794c555ee5
|
7f4b47c9f013c5997f138ddc6e4f916cc7763476
|
refs/heads/master
| 2020-08-22T22:50:35.762836
| 2019-06-24T15:39:54
| 2019-06-24T15:39:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,332
|
java
|
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
* Friday, January 20, 2012 10:38:36 AM GMT-08:00
*/
abstract public class AdapterNonExistentHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.AdapterNonExistent that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.AdapterNonExistent extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.AdapterNonExistentHelper.id (), "AdapterNonExistent", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.AdapterNonExistent read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.AdapterNonExistent value = new org.omg.PortableServer.POAPackage.AdapterNonExistent ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.AdapterNonExistent value)
{
// write the repository ID
ostream.write_string (id ());
}
}
|
[
"massimo.paladin@gmail.com"
] |
massimo.paladin@gmail.com
|
e3e8fa32f2513ad170e4ac26a1e320655ca2f020
|
e58dc8f2c20a0bfc51f6144bc81ee0b8d53247df
|
/app/src/main/java/inshow/carl/com/csd/csd/iface/ICheckDeviceComplete.java
|
716a0dcb5036cfad950c4c9753da78e569f967de
|
[] |
no_license
|
ftc300/Ota-tool
|
9a0094bf550afd38fdc0e95ae503bb6df4d2a84e
|
bc17ad7065df11afa8ddffa0ad3dc8848db68beb
|
refs/heads/master
| 2021-05-26T08:14:30.363833
| 2018-09-12T04:17:08
| 2018-09-12T04:17:08
| 128,047,744
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 245
|
java
|
package inshow.carl.com.csd.csd.iface;
import java.util.HashSet;
import inshow.carl.com.csd.entity.MiWatch;
/**
* Created by chendong on 2018/6/28.
*/
public interface ICheckDeviceComplete {
void checkFinished(HashSet<MiWatch> set);
}
|
[
"cd@inshowlife.com"
] |
cd@inshowlife.com
|
af008ff36e49a8f1a93d29d95c77db9b55d26e7e
|
06becbda8621ab76e89880ff1efe890bc5a9bc8e
|
/src/main/java/com/gdi/posbackend/command/core/Command.java
|
4ddfea5e2007836d48b269c5a23ecf006091f978
|
[] |
no_license
|
feryadialoi/pos-v2-backend
|
b1655f3ed4401edaf8399f79748f99db45c17712
|
ac6d1b6ff2b4375c57826d6eaabf350ddc54e3db
|
refs/heads/master
| 2023-08-18T06:39:10.404229
| 2021-10-04T03:57:52
| 2021-10-04T03:57:52
| 393,136,589
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 129
|
java
|
package com.gdi.posbackend.command.core;
/**
* @author Feryadialoi
* @date 7/25/2021 2:45 AM
*/
public interface Command {
}
|
[
"feryadialoi@gmail.com"
] |
feryadialoi@gmail.com
|
e6092effa62792d747b7412b3da4a61245f7b3d5
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-14599-18-23-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage-opt/org/xwiki/job/AbstractJob_ESTest.java
|
eb6d0b93d1547d3b69634b0d35e5659c1982b882
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 542
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Nov 01 18:47:01 UTC 2021
*/
package org.xwiki.job;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class AbstractJob_ESTest extends AbstractJob_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
4f70d8043bed0305020c4136e1e69def333483d6
|
92c6907d4a6916c565922e177d10e4c0b9b5e7a7
|
/Base_System/src/main/java/com/dm/system/mapper/UserRoleMapper.java
|
368957a6e6a929c35e8cce84facb357a1d45f3cb
|
[] |
no_license
|
yangyingan/app_api
|
26850b945f900c47254cb313589bed6154ed08ff
|
b2ccc2cc9df8d39104d5a1b622e549f5ef0a749c
|
refs/heads/master
| 2022-07-23T08:01:35.261189
| 2020-04-11T21:18:07
| 2020-04-11T21:18:07
| 254,935,763
| 0
| 0
| null | 2022-06-17T03:07:13
| 2020-04-11T19:02:33
|
Java
|
UTF-8
|
Java
| false
| false
| 245
|
java
|
package com.dm.system.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dm.system.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {
}
|
[
"you@example.com"
] |
you@example.com
|
49d4d67f0bb7cd3cc8e0a19cee8eff1ff3a05e9e
|
5b9708a4e62f6ec7ce1a36099acf7332603ed361
|
/src/main/java/com/lloyvet/system/vo/MenuVo.java
|
171528372f19c3512fe83c465fc8ca32b4545c21
|
[] |
no_license
|
lloyvet/warehouseManager
|
a7c421383f32e5b302f521a830c575e64ed5ef42
|
4becb2928496b93af0b05e5f61e186e8d262fcea
|
refs/heads/master
| 2022-06-29T21:29:13.513257
| 2020-04-12T13:26:00
| 2020-04-12T13:26:00
| 253,973,978
| 1
| 0
| null | 2022-06-17T03:04:07
| 2020-04-08T03:18:33
|
Java
|
UTF-8
|
Java
| false
| false
| 212
|
java
|
package com.lloyvet.system.vo;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
public class MenuVo extends BaseVo {
Integer hasPermission; //0不要权限
}
|
[
"1924143976@qq.com"
] |
1924143976@qq.com
|
cfd7be8f77c6d3b918f525f898affd2ec11f9a4a
|
3d6c20dc57a8eb1a015c5d2353a515f29525a1d6
|
/JavaApplication5/src/com/coderbd/datatype/newvariables.java
|
650c51252fab92440b0fef85a06fdcde90ffae74
|
[] |
no_license
|
nparvez71/NetbeanSoftware
|
b9e5c93addc2583790c69f53c650c29665e16721
|
1e18ff07914c4c4530bcfd93693d838bea8f9641
|
refs/heads/master
| 2020-03-13T19:14:53.285683
| 2018-04-29T04:34:07
| 2018-04-29T04:34:07
| 131,249,843
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 970
|
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.coderbd.datatype;
/**
*
* @author J2EE-33
*/
public class newvariables {
private static boolean aBoolean;
private static char aChar;
private static byte aByte;
private static short aShort;
private static int aInt;
private static long aLong;
private static float aFloat;
private static double aDouble;
public static void main(String[] args) {
System.out.println("aBlooean:-"+aBoolean);
System.out.println("aChar:-"+aChar);
System.out.println("aByte:-"+aByte);
System.out.println("aShort:-"+aShort);
System.out.println("aInt:-"+aInt);
System.out.println("aLong:-"+aLong);
System.out.println("aFloat:-"+aFloat);
System.out.println("aDouble:-"+aDouble);
}
}
|
[
"nparvez92@gmail.com"
] |
nparvez92@gmail.com
|
a40c3842133615f4c4a07b98de4a4e51e6831818
|
9d3d9353dbaaad62058f38fe2a2772a7fabb4c6b
|
/InnerWebServer/src/main/java/me/study/innerwebserver/InnerWebServerApplication.java
|
acef1ee7830ccf20c5ecd19ccf0d516b892a9b0b
|
[] |
no_license
|
arhrina/toyPrj
|
0504fdf3d637f5889a296621adc26ec026f42c7c
|
ff95098e3443a7c3566e5f0342db24351555ee3b
|
refs/heads/master
| 2022-12-21T15:58:58.931728
| 2021-12-06T08:09:10
| 2021-12-06T08:09:10
| 246,988,233
| 0
| 0
| null | 2022-12-16T15:23:00
| 2020-03-13T04:29:47
|
Java
|
UTF-8
|
Java
| false
| false
| 344
|
java
|
package me.study.innerwebserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class InnerWebServerApplication {
public static void main(String[] args) {
SpringApplication.run(InnerWebServerApplication.class, args);
}
}
|
[
"hyoukim@naver.com"
] |
hyoukim@naver.com
|
c936080c6ad0f7afda8a9cffd8b4618c53b0bec7
|
ec88f347ab9c9514bfcec5820eb1792bf3fa440a
|
/cdr.batch/src/main/java/com/yly/cdr/hl7/dto/LabResults.java
|
7ccb8729be43b6d7fd6c17f663cca52c06e0a2d4
|
[] |
no_license
|
zhiji6/szbj-code
|
67018746538eb0b7b74b15a5a5fd634c5bf83c24
|
56367d000e20b9851d9e8e4b22b7f1091928a651
|
refs/heads/master
| 2023-08-20T06:58:34.625901
| 2017-07-18T07:40:19
| 2017-07-18T07:40:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,628
|
java
|
package com.yly.cdr.hl7.dto;
import java.util.Date;
public class LabResults extends BaseDto
{
/**
* 检验代码
*/
private String labResultCode;
/**
* 检验名称
*/
private String labResultName;
/**
* 检验名称-血型
*/
private String labResultNameBlood;
/**
* 检验单位
*/
private String labResultUnit;
// add by li_shenggen begin 2014/11/12
/**
* 验血日期
*/
private String labResultDate;
// end
public String getLabResultCode()
{
return labResultCode;
}
public String getLabResultName()
{
return labResultName;
}
public String getLabResultUnit()
{
return labResultUnit;
}
public String getLabResultNameBlood()
{
return labResultNameBlood;
}
public String getLabResultDate() {
return labResultDate;
}
public void setLabResultDate(String labResultDate) {
this.labResultDate = labResultDate;
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("LabResults [labResultCode=");
builder.append(labResultCode);
builder.append(", labResultName=");
builder.append(labResultName);
builder.append(", labResultUnit=");
builder.append(labResultUnit);
builder.append(", labResultNameBlood=");
builder.append(labResultNameBlood);
builder.append(", labResultDate=");
builder.append(labResultDate);
builder.append("]");
return builder.toString();
}
}
|
[
"149516374@qq.com"
] |
149516374@qq.com
|
8f4c38ffa67aae808cb4ec07285529ef3eb6b501
|
762e6f19d406fb8818bf6a21e2f88b704861af33
|
/src/main/java/sample project/actions/Index.java
|
588fed43f5281edb7f5c4cbfbda0dd2e7ea121ba
|
[] |
no_license
|
kreddy12345678/sample-project-loan
|
f0827d23d114a29ddad212db68132331c59f7685
|
befab07ff18df06ec3554889eb2be409cd9a2883
|
refs/heads/master
| 2023-08-03T11:14:05.570213
| 2021-09-15T04:50:44
| 2021-09-15T04:50:44
| 406,617,907
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,410
|
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 sample project.actions;
import com.opensymphony.xwork2.ActionSupport;
/* Default action when enter the application */
public class Index extends ActionSupport {
private static final long serialVersionUID = -3243216917801206214L;
private boolean useMinifiedResources = false;
public String execute() throws Exception {
return SUCCESS;
}
public boolean isUseMinifiedResources() {
return useMinifiedResources;
}
public void setUseMinifiedResources(boolean useMinifiedResources) {
this.useMinifiedResources = useMinifiedResources;
}
}
|
[
"you@example.com"
] |
you@example.com
|
d76d553bec0fc5505d289c338f23184787d8f9c7
|
24fae99a278e8022b3944908a4db05b3d3148551
|
/sources/com/google/firebase/components/zza.java
|
182c7a9b3780de5f22ca1d19f77ca742402e038f
|
[] |
no_license
|
bigmanstan/FurniAR-college-Minor-project
|
53cad4bc90d65aadcb76613ba386306672cfd011
|
3ceba7e1fcaf5e847e3a72dd92712c308d484189
|
refs/heads/master
| 2020-05-26T03:04:18.538119
| 2019-05-26T12:33:47
| 2019-05-26T12:33:47
| 188,084,904
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 307
|
java
|
package com.google.firebase.components;
final /* synthetic */ class zza implements ComponentFactory {
private final Object zza;
zza(Object obj) {
this.zza = obj;
}
public final Object create(ComponentContainer componentContainer) {
return Component.zzb(this.zza);
}
}
|
[
"theonlyrealemailid@gmail.com"
] |
theonlyrealemailid@gmail.com
|
3fa2efba4c62669a15281367ccd2fe05eebb3115
|
6b874867e75329325b0baaf1c0f3f6d7ecf004cf
|
/src/test/java/programmers/q12927/SolutionTest.java
|
2f54b73ecc1502ec8d28e9dbeb8ca8cb4477c4c3
|
[] |
no_license
|
kkssry/algorithm
|
e36ef834fea2d2db444b16b58898b9cc76a45383
|
cdd4af227db018d2529e6aedd991d2ef1b596d6f
|
refs/heads/master
| 2020-04-20T14:27:19.293476
| 2020-02-28T13:55:16
| 2020-02-28T13:55:16
| 168,898,908
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,404
|
java
|
package programmers.q12927;
import org.junit.Test;
import java.util.*;
import static org.assertj.core.api.Java6Assertions.assertThat;
public class SolutionTest {
@Test
public void mainTest() {
Solution sol = new Solution();
int[] works = {2,1,2};
assertThat(sol.solution(1,works)).isEqualTo(12);
}
@Test
public void 리스트최대값() {
List<Integer> list = new ArrayList<>(Arrays.asList(5,4,7,9,23,4));
for (Integer integer : list) {
if (integer == 5) {
--integer;
}
}
System.out.println(list);
}
@Test
public void 배열정렬() {
int[] arr = {1,8,4,3,7,9};
callFunction(arr);
System.out.println("호출 하는 함수 : " + Arrays.toString(arr));
}
private void callFunction(int[] arr) {
Arrays.sort(arr);
arr[0] = 3;
System.out.println("호출 받는 함수 : " + Arrays.toString(arr));
}
@Test
public void treeMapTest() {
PriorityQueue<Integer> pr = new PriorityQueue<>();
pr.add(5);pr.add(6);pr.add(3);pr.add(7);pr.add(9);pr.add(10);
System.out.println(pr.poll());
PriorityQueue<Integer> pr2 = new PriorityQueue<>(Comparator.reverseOrder());
pr.add(5);pr.add(6);pr.add(3);pr.add(7);pr.add(9);pr.add(1);
System.out.println(pr2.poll());
}
}
|
[
"kkssry@naver.com"
] |
kkssry@naver.com
|
6289a50bb59c198526603c2e8016a12cd08991bf
|
8ba645b0b43f422a2492261aac6a10cfe7f816cb
|
/custom/kaslyjy/kaslyjycockpits/src/de/platform/kaslyjy/cockpits/cmscockpit/browser/filters/AbstractUiExperienceFilter.java
|
ae10449dee276a5e0b4b0e393ceaf89cd2c81dbb
|
[] |
no_license
|
freddiezhao/kasly-jy
|
15f03a6f427f4f3f3b82bff3dbdfe50709f20c42
|
7cbfdcb7ee2cb196ce23f9280813402b1f199a0f
|
refs/heads/master
| 2020-12-30T21:51:30.483263
| 2015-05-19T07:26:16
| 2015-05-19T07:26:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,960
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2015 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with hybris.
*
*
*/
package de.platform.kaslyjy.cockpits.cmscockpit.browser.filters;
import de.hybris.platform.cockpit.model.meta.PropertyDescriptor;
import de.hybris.platform.cockpit.model.search.Query;
import de.hybris.platform.cockpit.model.search.SearchParameterValue;
import de.hybris.platform.cockpit.services.meta.TypeService;
import de.hybris.platform.cockpit.session.BrowserFilter;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Required;
public abstract class AbstractUiExperienceFilter implements BrowserFilter
{
private static final String ABSTRACT_PAGE_DEFAULT_PROPERTY_DESC = "abstractPage.defaultPage";
public static final String UI_EXPERIENCE_PARAM = "uiExperienceParam";
private TypeService typeService;
public TypeService getTypeService()
{
return typeService;
}
@Required
public void setTypeService(final TypeService typeService)
{
this.typeService = typeService;
}
public void removeDefaultPageFilter(final Query query)
{
//we have to remove a defaultPage = true filter if we are interested in immediate results..
final PropertyDescriptor propertyDescriptor = typeService.getPropertyDescriptor(ABSTRACT_PAGE_DEFAULT_PROPERTY_DESC);
final List<SearchParameterValue> finalSearchParams = new ArrayList<SearchParameterValue>();
for (final SearchParameterValue searchParameter : query.getParameterValues())
{
if (!propertyDescriptor.equals(searchParameter.getParameterDescriptor()))
{
finalSearchParams.add(searchParameter);
}
}
query.setParameterValues(finalSearchParams);
}
}
|
[
"heavendarren@126.com"
] |
heavendarren@126.com
|
4093cae67f29a61e1fa04780b8c3739f7cee3925
|
12a99ab3fe76e5c7c05609c0e76d1855bd051bbb
|
/src/main/java/com/alipay/api/response/AlipayOpenMiniInnerversionGrayOnlineResponse.java
|
a91010ebd00bae60a6a2ebd821513c02568249f5
|
[
"Apache-2.0"
] |
permissive
|
WindLee05-17/alipay-sdk-java-all
|
ce2415cfab2416d2e0ae67c625b6a000231a8cfc
|
19ccb203268316b346ead9c36ff8aa5f1eac6c77
|
refs/heads/master
| 2022-11-30T18:42:42.077288
| 2020-08-17T05:57:47
| 2020-08-17T05:57:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 392
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.mini.innerversion.gray.online response.
*
* @author auto create
* @since 1.0, 2019-05-06 10:38:09
*/
public class AlipayOpenMiniInnerversionGrayOnlineResponse extends AlipayResponse {
private static final long serialVersionUID = 2265769866391812467L;
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
bfff20321503cb08ab4c8151161c4536d5281e1c
|
cde04a54afc670e7fec922e8cba4f14b89126f77
|
/app/src/main/java/com/dabangvr/util/MTimeUtils.java
|
26524692f4048ce5332b0b7afcbfe350461369ae
|
[] |
no_license
|
2803404074/dbproject
|
74c4bec83cce4935ba2616ea990075ea6c4345c2
|
b5f2f8070c99c607069d3cbeabdb59392d0b8685
|
refs/heads/master
| 2020-07-22T13:27:15.713628
| 2019-09-30T09:49:43
| 2019-09-30T09:49:43
| 207,200,574
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 935
|
java
|
package com.dabangvr.util;
/**
* author: zhaoqiang
* date:2017/10/18 / 10:35
* zhaoqiang:zhaoq_hero@163.com
*/
public class MTimeUtils {
//转换 毫秒 为 hh:m 格式 :
public static String formatTime(int currentLong) {
StringBuffer sb = new StringBuffer();
//
int ss = currentLong / 1000;//转换为秒长
int hh = ss / 60 / 60;//获取小时
int mm = (ss - (hh * 60 * 60)) / 60; //获取分钟
int lass = (ss - (hh * 60 * 60) - mm * 60);// 获取 秒数
if (hh >= 1) {
if (mm >= 1) {
sb.append(hh + ":" + mm + ":" + lass);
} else {
sb.append(hh + ":" + "0:" + lass);
}
} else {
if (mm >= 1) {
sb.append(mm + ":" + lass);
} else {
sb.append("0:" + lass);
}
}
return sb.toString();
}
}
|
[
"2803404074@qq.com"
] |
2803404074@qq.com
|
904eb3f4f34cb4bb438569bfc8002c04303875d0
|
da6e646b9303b4be34446927f2f8f3062757aec4
|
/src/net/minecraft/entity/ai/EntityAIHarvestFarmland.java
|
db00ae8277b3f1bf959f2b39db3f58bae2a40f53
|
[] |
no_license
|
RainbowyDev/HawkClientSRC
|
f12fbecb43b7eb502208a1ea91baf55110d1abe7
|
81829724db6ecf9cdf07b3468df14c3d860b3475
|
refs/heads/main
| 2023-04-20T21:31:01.940981
| 2021-04-28T14:39:24
| 2021-04-28T14:39:24
| 362,495,695
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,566
|
java
|
package net.minecraft.entity.ai;
import net.minecraft.entity.passive.*;
import net.minecraft.entity.*;
import net.minecraft.world.*;
import net.minecraft.util.*;
import net.minecraft.block.properties.*;
import net.minecraft.block.*;
import net.minecraft.block.state.*;
import net.minecraft.init.*;
import net.minecraft.item.*;
import net.minecraft.inventory.*;
public class EntityAIHarvestFarmland extends EntityAIMoveToBlock
{
private final /* synthetic */ EntityVillager field_179504_c;
private /* synthetic */ boolean field_179503_e;
private /* synthetic */ int field_179501_f;
private /* synthetic */ boolean field_179502_d;
@Override
public void resetTask() {
super.resetTask();
}
@Override
public boolean continueExecuting() {
return this.field_179501_f >= 0 && super.continueExecuting();
}
@Override
public boolean shouldExecute() {
if (this.field_179496_a <= 0) {
if (!this.field_179504_c.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing")) {
return false;
}
this.field_179501_f = -1;
this.field_179502_d = this.field_179504_c.func_175556_cs();
this.field_179503_e = this.field_179504_c.func_175557_cr();
}
return super.shouldExecute();
}
public EntityAIHarvestFarmland(final EntityVillager llllllllllllllIIlIlIIIIlllIIllIl, final double llllllllllllllIIlIlIIIIlllIIllll) {
super(llllllllllllllIIlIlIIIIlllIIllIl, llllllllllllllIIlIlIIIIlllIIllll, 16);
this.field_179504_c = llllllllllllllIIlIlIIIIlllIIllIl;
}
static {
__OBFID = "CL_00002253";
}
@Override
protected boolean func_179488_a(final World llllllllllllllIIlIlIIIIllIIllIIl, BlockPos llllllllllllllIIlIlIIIIllIIlllIl) {
Block llllllllllllllIIlIlIIIIllIIlllII = llllllllllllllIIlIlIIIIllIIllIIl.getBlockState(llllllllllllllIIlIlIIIIllIIlllIl).getBlock();
if (llllllllllllllIIlIlIIIIllIIlllII == Blocks.farmland) {
llllllllllllllIIlIlIIIIllIIlllIl = llllllllllllllIIlIlIIIIllIIlllIl.offsetUp();
final IBlockState llllllllllllllIIlIlIIIIllIIllIll = llllllllllllllIIlIlIIIIllIIllIIl.getBlockState(llllllllllllllIIlIlIIIIllIIlllIl);
llllllllllllllIIlIlIIIIllIIlllII = llllllllllllllIIlIlIIIIllIIllIll.getBlock();
if (llllllllllllllIIlIlIIIIllIIlllII instanceof BlockCrops && (int)llllllllllllllIIlIlIIIIllIIllIll.getValue(BlockCrops.AGE) == 7 && this.field_179503_e && (this.field_179501_f == 0 || this.field_179501_f < 0)) {
this.field_179501_f = 0;
return true;
}
if (llllllllllllllIIlIlIIIIllIIlllII == Blocks.air && this.field_179502_d && (this.field_179501_f == 1 || this.field_179501_f < 0)) {
this.field_179501_f = 1;
return true;
}
}
return false;
}
@Override
public void startExecuting() {
super.startExecuting();
}
@Override
public void updateTask() {
super.updateTask();
this.field_179504_c.getLookHelper().setLookPosition(this.field_179494_b.getX() + 0.5, this.field_179494_b.getY() + 1, this.field_179494_b.getZ() + 0.5, 10.0f, (float)this.field_179504_c.getVerticalFaceSpeed());
if (this.func_179487_f()) {
final World llllllllllllllIIlIlIIIIllIllIlIl = this.field_179504_c.worldObj;
final BlockPos llllllllllllllIIlIlIIIIllIllIlII = this.field_179494_b.offsetUp();
final IBlockState llllllllllllllIIlIlIIIIllIllIIll = llllllllllllllIIlIlIIIIllIllIlIl.getBlockState(llllllllllllllIIlIlIIIIllIllIlII);
final Block llllllllllllllIIlIlIIIIllIllIIlI = llllllllllllllIIlIlIIIIllIllIIll.getBlock();
if (this.field_179501_f == 0 && llllllllllllllIIlIlIIIIllIllIIlI instanceof BlockCrops && (int)llllllllllllllIIlIlIIIIllIllIIll.getValue(BlockCrops.AGE) == 7) {
llllllllllllllIIlIlIIIIllIllIlIl.destroyBlock(llllllllllllllIIlIlIIIIllIllIlII, true);
}
else if (this.field_179501_f == 1 && llllllllllllllIIlIlIIIIllIllIIlI == Blocks.air) {
final InventoryBasic llllllllllllllIIlIlIIIIllIllIIIl = this.field_179504_c.func_175551_co();
int llllllllllllllIIlIlIIIIllIllIIII = 0;
while (llllllllllllllIIlIlIIIIllIllIIII < llllllllllllllIIlIlIIIIllIllIIIl.getSizeInventory()) {
final ItemStack llllllllllllllIIlIlIIIIllIlIllll = llllllllllllllIIlIlIIIIllIllIIIl.getStackInSlot(llllllllllllllIIlIlIIIIllIllIIII);
boolean llllllllllllllIIlIlIIIIllIlIlllI = false;
if (llllllllllllllIIlIlIIIIllIlIllll != null) {
if (llllllllllllllIIlIlIIIIllIlIllll.getItem() == Items.wheat_seeds) {
llllllllllllllIIlIlIIIIllIllIlIl.setBlockState(llllllllllllllIIlIlIIIIllIllIlII, Blocks.wheat.getDefaultState(), 3);
llllllllllllllIIlIlIIIIllIlIlllI = true;
}
else if (llllllllllllllIIlIlIIIIllIlIllll.getItem() == Items.potato) {
llllllllllllllIIlIlIIIIllIllIlIl.setBlockState(llllllllllllllIIlIlIIIIllIllIlII, Blocks.potatoes.getDefaultState(), 3);
llllllllllllllIIlIlIIIIllIlIlllI = true;
}
else if (llllllllllllllIIlIlIIIIllIlIllll.getItem() == Items.carrot) {
llllllllllllllIIlIlIIIIllIllIlIl.setBlockState(llllllllllllllIIlIlIIIIllIllIlII, Blocks.carrots.getDefaultState(), 3);
llllllllllllllIIlIlIIIIllIlIlllI = true;
}
}
if (llllllllllllllIIlIlIIIIllIlIlllI) {
final ItemStack itemStack = llllllllllllllIIlIlIIIIllIlIllll;
--itemStack.stackSize;
if (llllllllllllllIIlIlIIIIllIlIllll.stackSize <= 0) {
llllllllllllllIIlIlIIIIllIllIIIl.setInventorySlotContents(llllllllllllllIIlIlIIIIllIllIIII, null);
break;
}
break;
}
else {
++llllllllllllllIIlIlIIIIllIllIIII;
}
}
}
this.field_179501_f = -1;
this.field_179496_a = 10;
}
}
}
|
[
"Tecnio@users.noreply.github.com"
] |
Tecnio@users.noreply.github.com
|
39c874a2acd225d49a76f7ee010c2a778e838910
|
ba55269057e8dc503355a26cfab3c969ad7eb278
|
/POSNProcessPaymentService/src/com/nirvanaxp/payment/ProcessPaymentPacket.java
|
1ffe1c468d3fb2e13c248840c2b1176e163202f0
|
[
"Apache-2.0"
] |
permissive
|
apoorva223054/SF3
|
b9db0c86963e549498f38f7e27f65c45438b2a71
|
4dab425963cf35481d2a386782484b769df32986
|
refs/heads/master
| 2022-03-07T17:13:38.709002
| 2020-01-29T05:19:06
| 2020-01-29T05:19:06
| 236,907,773
| 0
| 0
|
Apache-2.0
| 2022-02-09T22:46:01
| 2020-01-29T05:10:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,903
|
java
|
/**
* Copyright (c) 2012 - 2017 by NirvanaXP, LLC. All Rights reserved. Express
* written consent required to use, copy, share, alter, distribute or transmit
* this source code in part or whole through any means physical or electronic.
**/
package com.nirvanaxp.payment;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlRootElement;
import com.nirvanaxp.services.jaxrs.packets.PostPacket;
@XmlRootElement(name = "ProcessPaymentPacket")
public class ProcessPaymentPacket extends PostPacket
{
private String date;
private String userId;
private String currentDate;
private String currentTime;
private String paymentGatewayTypeIdString;
/**
* @return the date
*/
public String getDate()
{
return date;
}
/**
* @param date
* the date to set
*/
public void setDate(String date)
{
this.date = date;
}
public String getUserId()
{
return userId;
}
public void setUserId(String userId)
{
this.userId = userId;
}
/**
* @return the currentDate
*/
public String getCurrentDate()
{
return currentDate;
}
/**
* @param currentDate
* the currentDate to set
*/
public void setCurrentDate(String currentDate)
{
this.currentDate = currentDate;
}
/**
* @return the currentTime
*/
public String getCurrentTime()
{
return currentTime;
}
/**
* @param currentTime
* the currentTime to set
*/
public void setCurrentTime(String currentTime)
{
this.currentTime = currentTime;
}
/**
* @return the paymentGatewayTypeIdString
*/
public String getPaymentGatewayTypeIdString()
{
return paymentGatewayTypeIdString;
}
/**
* @param paymentGatewayTypeIdString
* the paymentGatewayTypeIdString to set
*/
public void setPaymentGatewayTypeIdString(String paymentGatewayTypeIdString)
{
this.paymentGatewayTypeIdString = paymentGatewayTypeIdString;
}
}
|
[
"naman223054@gmail.com"
] |
naman223054@gmail.com
|
72b941dcd2c02dd20af639cfee09667ea5e600b4
|
73f6f24312c3102671b34fa8bb121adc5519c493
|
/trainplatform-portal/src/main/java/com/bossien/framework/limit/RateLimitInterceptor.java
|
e61407c7892186dd211c2bc539fc6a06379f5223
|
[] |
no_license
|
RenMingNeng/trainplatform-parent
|
95941b66ff38ab7fe5a90e4013f4567051e2492e
|
63baaef728b4e7f1e5b9afa2a01b699c2f5ed760
|
refs/heads/master
| 2021-05-12T17:55:08.457201
| 2018-01-11T05:35:58
| 2018-01-11T05:35:58
| 117,054,915
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,941
|
java
|
package com.bossien.framework.limit;
/**
* Created by Administrator on 2017/8/18.
*/
import com.bossien.framework.limit.model.URLLimitMapping;
import com.bossien.train.exception.TooManyRequestsException;
import com.bossien.train.interceptor.LoginInterceptor;
import com.google.common.base.Joiner;
import com.google.common.util.concurrent.RateLimiter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.condition.PatternsRequestCondition;
import org.springframework.web.util.UrlPathHelper;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
/**
* spring请求限流器
* 可对全局请求或url表达式请求进行限流
* 内部使用spring DispatcherServlet的匹配器PatternsRequestCondition
* 进行url的匹配。
*
* @author ValleyChen
* @version 1.0.0
* @time 2017/1/21
*/
public class RateLimitInterceptor implements HandlerInterceptor {
private static Logger logger = LoggerFactory.getLogger(LoginInterceptor.class);
private RateLimiter globalRateLimiter;
private Properties urlProperties;
private Map<PatternsRequestCondition, RateLimiter> urlRateMap;
private UrlPathHelper urlPathHelper;
private int globalRate;
private List<URLLimitMapping> limitMappings;
public RateLimitInterceptor() {
this(0);
}
/**
* @param globalRate 全局请求限制qps
*/
public RateLimitInterceptor(int globalRate) {
urlPathHelper = new UrlPathHelper();
this.globalRate = globalRate;
if (globalRate > 0) {
globalRateLimiter = RateLimiter.create(globalRate);
}
}
/**
* @param globalRate 全局请求限制qps
*/
public void setGlobalRate(int globalRate) {
this.globalRate = globalRate;
if (globalRate > 0) {
globalRateLimiter = RateLimiter.create(globalRate);
}
}
/**
* url限流
*
* @param urlProperties url表达式->qps propertis
*/
public void setUrlProperties(Properties urlProperties) {
if (urlRateMap == null) {
urlRateMap = new ConcurrentHashMap();
}
fillRateMap(urlProperties, urlRateMap);
this.urlProperties = urlProperties;
}
/**
* url限流
*
* @param limitMappings url表达式 array->qps mapping
*/
public void setLimitMappings(List<URLLimitMapping> limitMappings) {
if (urlRateMap == null) {
urlRateMap = new ConcurrentHashMap();
}
fillRateMap(limitMappings, urlRateMap);
this.limitMappings = limitMappings;
}
/**
* 将url表达转换为PatternsRequestCondition,并生成对应RateLimiter
* 保存
*
* @param controllerProperties
* @param map
*/
private void fillRateMap(Properties controllerProperties, Map<PatternsRequestCondition, RateLimiter> map) {
if (controllerProperties != null) {
for (String key : controllerProperties.stringPropertyNames()) {
String value = controllerProperties.getProperty(key);
if (value.matches("[0-9]*[1-9][0-9]*")) {
map.put(new PatternsRequestCondition(key), RateLimiter.create(Double.valueOf(value)));
} else {
logger.info(key + " 的值" + value + " 不是一个合法的限制");
}
}
}
}
/**
* 将url表达转换为PatternsRequestCondition,并生成对应RateLimiter
* 保存
*
* @param limitMappings
* @param map
*/
private void fillRateMap(List<URLLimitMapping> limitMappings, Map<PatternsRequestCondition, RateLimiter> map) {
if (limitMappings != null) {
for (URLLimitMapping mapping : limitMappings) {
map.put(new PatternsRequestCondition(mapping.getUrls()), RateLimiter.create(Double.valueOf(mapping.getRate())));
}
}
}
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
if (urlRateMap != null) {
String lookupPath = urlPathHelper.getLookupPathForRequest(request);
for (PatternsRequestCondition patternsRequestCondition : urlRateMap.keySet()) {
//使用spring DispatcherServlet的匹配器PatternsRequestCondition进行匹配
List<String> matches = patternsRequestCondition.getMatchingPatterns(lookupPath);
if (!matches.isEmpty()) {
if (urlRateMap.get(patternsRequestCondition).tryAcquire()) {
logger.info(lookupPath + " 请求匹配到" + Joiner.on(",").join(patternsRequestCondition.getPatterns()) + "限流器");
} else {
logger.info(lookupPath + " 请求超过" + Joiner.on(",").join(patternsRequestCondition.getPatterns()) + "限流器速率");
throw new TooManyRequestsException();
}
}
}
}
//全局限流
if (globalRateLimiter != null) {
if (!globalRateLimiter.tryAcquire()) {
throw new TooManyRequestsException();
}
}
return true;
}
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
}
}
|
[
"395841246@qq.com"
] |
395841246@qq.com
|
6ace7d6fe4829f93c628dbab129e008c86db6d82
|
a26c21ca703394b54053fd8c52876c7550480194
|
/addOns/cmss/src/main/java/org/zaproxy/zap/extension/cmss/CMSFingerprinter.java
|
9082c17d6d32089a3a61a9c788d6aecc9313d5bd
|
[
"Apache-2.0"
] |
permissive
|
Luiggy/zap-extensions
|
5a360a39b4b81e7f788d73e88a07d5d4120de8cc
|
ae79e2fe44d729d129dfabed5035599e5d870c05
|
refs/heads/master
| 2020-07-20T13:41:47.200916
| 2019-09-05T15:08:50
| 2019-09-05T15:08:50
| 206,651,585
| 1
| 0
|
Apache-2.0
| 2019-09-05T20:27:05
| 2019-09-05T20:27:05
| null |
UTF-8
|
Java
| false
| false
| 2,624
|
java
|
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development 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 org.zaproxy.zap.extension.cmss;
public class CMSFingerprinter {
/**
* Use BlindElephant DB to fingerprint webapp
*
* @throws IOException
* @throws NoSuchAlgorithmException
*/
/*
public static void FingerprintFileBE(URL url) throws IOException, NoSuchAlgorithmException{
try {
SAXBuilder builder = new SAXBuilder();
Document doc = builder.build(new File("joomla.xml"));
Element racine = doc.getRootElement();
System.out.println(racine.getChildren().size());
for (int i=0;i<racine.getChildren().size();i++){
System.out.println(i);
Element file = (Element)racine.getChildren().get(i);
String path = file.getAttributeValue("path");
URL filePath = new URL(url.toString()+path);
int len = url.toString().length();
String urlF = url.toString().substring(0, len-1);
System.out.println("path == "+urlF+path);
URLConnection con = filePath.openConnection();
if (con.getContentLength()!= -1){
String chksum = checkUrlContentChecksums(filePath);
System.out.println(chksum);
for (int j=0;j<file.getChildren().size();j++){
Element hashNode = (Element) file.getChildren().get(j);
String hash = hashNode.getAttributeValue("md5");
System.out.println(hash);
if (hash.compareTo(chksum)==0){
for(int k= 0 ;k<hashNode.getChildren().size();k++){
Element versionNode = (Element)hashNode.getChildren().get(k);
String version= versionNode.getValue();
System.out.println(" version=="+version);
}
break; //<----
}
}
}
//else System.out.println("daznot");
}
}
catch (JDOMException e) {
e.printStackTrace();
}
catch (IOException e) {
e.printStackTrace();
}
}*/
}
|
[
"thc202@gmail.com"
] |
thc202@gmail.com
|
8ef2fec3776618cb8c805fcb1dab3bae0d581402
|
f893f5ca60ac459e01cd0c004409a803b55ffb59
|
/eps-publisher-intvn-soap/src/test/java/org/socraticgrid/hl7/services/eps/clients/pspublicationintervention/PSPublicationInterventionServiceTest.java
|
4cc9cca0b187b6e64e63e980ea5f5f658ffc1b9c
|
[
"Apache-2.0"
] |
permissive
|
SocraticGrid/EPS-Implementation
|
5dda1323f2f55297d7dc56e3c3782bc7579ef1ff
|
0af35c694759ea234c8e1e034b99d2752d21c49a
|
refs/heads/master
| 2021-01-10T15:43:07.031167
| 2015-10-27T14:54:27
| 2015-10-27T14:54:27
| 43,059,619
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,983
|
java
|
/*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedciine.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.socraticgrid.hl7.services.eps.clients.pspublicationintervention;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.annotation.DirtiesContext.ClassMode;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:Test-PublicationIntervention.xml" })
@DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
public class PSPublicationInterventionServiceTest {
@Autowired
private ApplicationContext applicationContext;
@Autowired
@InjectMocks
private PSPublicationInterventionService service;
//@Mock(name = "dlvMgr")
///DeliveryManager deliveryMgr;
//@Mock(name = "msgMgr")
//MessageManager mockMsgMgr;
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
}
@Test
public void test() {
//fail("Not yet implemented");
}
}
|
[
"esteban.aliverti@gmail.com"
] |
esteban.aliverti@gmail.com
|
28ba2f03441df604e9af86061a057e84ceb027a3
|
1f5c9b19b09f0fad775a5bb07473690ae6b0c814
|
/salesettle/src/public/nc/pubitf/so/m33/arap/AccountDateType.java
|
506252ece25a2906904355e36597a0af8189fe38
|
[] |
no_license
|
hdulqs/NC65_SCM_SO
|
8e622a7bb8c2ccd1b48371eedd50591001cd75c0
|
aaf762285b10e7fef525268c2c90458aa4290bf6
|
refs/heads/master
| 2020-05-19T01:23:50.824879
| 2018-07-04T09:41:39
| 2018-07-04T09:41:39
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 637
|
java
|
package nc.pubitf.so.m33.arap;
public enum AccountDateType {
/**
* 出库日期
*/
OUT_STORE_DATE(0),
/**
* 出库签字日期
*/
OUTSTORE_SIGNATURE_DATE(1),
/**
* 销售合同生效日期
*/
SALE_CONTRACT_EFFECTIVE_DATE(12),
/**
* 销售发票审核日期
*/
SALE_INVOICE_APPROVE_DATE(3),
/**
* 销售开票日期
*/
SALE_MAKE_BILL_DATE(2),
/**
* 销售订单日期
*/
SALE_ORDER_DATE(11);
private int code;
private AccountDateType(int code) {
this.code = code;
}
/**
*
* @return 编码
*/
public int getCode() {
return this.code;
}
}
|
[
"944482059@qq.com"
] |
944482059@qq.com
|
081d739298529245490fd5c162d459f158bc8fdf
|
7beb062b1720ca30700c3546139d2d5d0510f54d
|
/aatrox-wechat/src/main/java/com/aatrox/wechat/wxmp/WxmpCacheKey.java
|
d52033454550149b08ab50a73030b202957ec546
|
[] |
no_license
|
beiyuanbing/aatrox-cloud
|
7976024f02200bd12a2e4812cadab42c4ef424e2
|
bfc2ecac7f7f3d1c98b85379f1135ab511fb7535
|
refs/heads/master
| 2023-08-28T20:13:29.701897
| 2021-06-09T07:11:48
| 2021-06-09T07:11:48
| 245,924,093
| 0
| 0
| null | 2021-04-22T19:11:45
| 2020-03-09T02:12:26
|
Java
|
UTF-8
|
Java
| false
| false
| 479
|
java
|
package com.aatrox.wechat.wxmp;
/**
* @author aatrox
* @desc
* @date 2020/1/16
*/
public enum WxmpCacheKey {
WX_MINI_PROGRAM_ACCESS_TOKEN("SESSION_BASE"),
WX_MINI_PROGRAM_ACCESS_TOKEN_ENDTIME("SESSION_BASE");
private String baseType;
private WxmpCacheKey(String baseType) {
this.baseType = baseType;
}
public String getCacheKey() {
return this.name();
}
public String getBaseType() {
return this.baseType;
}
}
|
[
"425210220@qq.com"
] |
425210220@qq.com
|
497f5cf5dea70e305d897e154ff71974e268404b
|
fac5d6126ab147e3197448d283f9a675733f3c34
|
/src/main/java/dji/midware/aoabridge/Utils.java
|
038839dd4eb5909fd19c233d94f0789c7cbee4c5
|
[] |
no_license
|
KnzHz/fpv_live
|
412e1dc8ab511b1a5889c8714352e3a373cdae2f
|
7902f1a4834d581ee6afd0d17d87dc90424d3097
|
refs/heads/master
| 2022-12-18T18:15:39.101486
| 2020-09-24T19:42:03
| 2020-09-24T19:42:03
| 294,176,898
| 0
| 0
| null | 2020-09-09T17:03:58
| 2020-09-09T17:03:57
| null |
UTF-8
|
Java
| false
| false
| 1,499
|
java
|
package dji.midware.aoabridge;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.wifi.WifiManager;
import dji.fieldAnnotation.EXClassNullAway;
@EXClassNullAway
public class Utils {
public static Context getAppContext() {
try {
return (Application) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
public static boolean isAppInstalled(String packageName) {
Context ctx = getAppContext();
if (packageName == null || packageName.isEmpty()) {
return false;
}
try {
if (ctx.getPackageManager().getApplicationInfo(packageName, 8192) != null) {
return true;
}
return false;
} catch (PackageManager.NameNotFoundException e) {
return false;
}
}
public static String getIp() {
WifiManager wifiManager = (WifiManager) getAppContext().getApplicationContext().getSystemService("wifi");
if (!wifiManager.isWifiEnabled()) {
return null;
}
return intToIp(wifiManager.getConnectionInfo().getIpAddress());
}
private static String intToIp(int i) {
return (i & 255) + "." + ((i >> 8) & 255) + "." + ((i >> 16) & 255) + "." + ((i >> 24) & 255);
}
}
|
[
"michael@districtrace.com"
] |
michael@districtrace.com
|
3c7064971b6ab9d67a4a0f9aa29d03996735949d
|
0b967b0a8d3f6f8a0e580e649b9fa29110ace062
|
/minecraft/pixelmon/battles/attacks/specialAttacks/statusAppliers/ApplyImmobilize.java
|
0be2ea89527d1e636e44170d8b706b60589a692e
|
[] |
no_license
|
bazzceeh/Pixelmon
|
ffeadab3f228dc86606723c0e8bdb155a517b994
|
f0848790ef3c4a86fe663a0a0cf24593c6c2ba93
|
refs/heads/master
| 2021-01-17T05:49:01.558384
| 2013-08-01T09:13:22
| 2013-08-01T09:13:22
| 11,812,885
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,336
|
java
|
package pixelmon.battles.attacks.specialAttacks.statusAppliers;
import java.util.ArrayList;
import pixelmon.battles.attacks.Attack;
import pixelmon.battles.attacks.Value;
import pixelmon.battles.status.Immobilize;
import pixelmon.battles.status.StatusBase;
import pixelmon.battles.status.StatusType;
import pixelmon.comm.ChatHandler;
import pixelmon.entities.pixelmon.EntityPixelmon;
public class ApplyImmobilize extends StatusApplierBase {
int value1, value2;
boolean hasRange = false;
public ApplyImmobilize(Value... values) {
if (values != null && values[0] != null && values[0].value != -1) {
hasRange = true;
value1 = values[0].value;
value2 = values[1].value;
}
}
@Override
public void ApplyEffect(Attack attack, double crit, EntityPixelmon user, EntityPixelmon target, ArrayList<String> attackList, ArrayList<String> targetAttackList) throws Exception {
for (StatusBase e : target.status)
if (e.type == StatusType.Immobilize) {
ChatHandler.sendBattleMessage(user.getOwner(), target.getOwner(), target.getNickname() + " already cannot escape!");
return;
}
if (hasRange)
target.status.add(new Immobilize(value1, value2));
else
target.status.add(new Immobilize());
ChatHandler.sendBattleMessage(user.getOwner(), target.getOwner(), target.getNickname() + " cannot escape!");
}
}
|
[
"malc.geddes@gmail.com"
] |
malc.geddes@gmail.com
|
ddb5ae4d5b26517c5592ea9b6ddfeab008c6bdb5
|
f08256664e46e5ac1466f5c67dadce9e19b4e173
|
/sources/com/bamtechmedia/dominguez/dictionaries/C6071f.java
|
6efbf0d22b0c7f2f20f3184d49d55b4198afd640
|
[] |
no_license
|
IOIIIO/DisneyPlusSource
|
5f981420df36bfbc3313756ffc7872d84246488d
|
658947960bd71c0582324f045a400ae6c3147cc3
|
refs/heads/master
| 2020-09-30T22:33:43.011489
| 2019-12-11T22:27:58
| 2019-12-11T22:27:58
| 227,382,471
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 918
|
java
|
package com.bamtechmedia.dominguez.dictionaries;
import com.bamtechmedia.dominguez.core.p214j.C5756a;
import javax.inject.Provider;
import p512h.p515d.C11895c;
/* renamed from: com.bamtechmedia.dominguez.dictionaries.f */
/* compiled from: DictionaryEntriesDataSource_Factory */
public final class C6071f implements C11895c<C6068e> {
/* renamed from: a */
private final Provider<C6082j> f13975a;
/* renamed from: b */
private final Provider<C5756a> f13976b;
public C6071f(Provider<C6082j> provider, Provider<C5756a> provider2) {
this.f13975a = provider;
this.f13976b = provider2;
}
/* renamed from: a */
public static C6071f m19448a(Provider<C6082j> provider, Provider<C5756a> provider2) {
return new C6071f(provider, provider2);
}
public C6068e get() {
return new C6068e((C6082j) this.f13975a.get(), (C5756a) this.f13976b.get());
}
}
|
[
"101110@vivaldi.net"
] |
101110@vivaldi.net
|
ef9e3f1b9e529dd17ab45211370caee88d11940d
|
bf7d9ef02a3ecfe82908cbd082d36efe5736d9b3
|
/lesson08/Critter/ClassyCritter.java
|
9d26efc7ba912db45f0600ebd69405f286e81dc5
|
[] |
no_license
|
23ebolton/java-examples
|
eb08598033ee797561ceaa4b3b2c5a9164b33bfd
|
a88a49a4de1c76db70a04d608134e87700fbbdb2
|
refs/heads/main
| 2023-03-13T07:54:25.019681
| 2021-03-01T19:33:42
| 2021-03-01T19:33:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 853
|
java
|
/*Classy Critter
Demonstrates class attributes and static methods*/
class Critter{
static int total = 0;
public String name;
public static void status(){
System.out.println("\nThe total number of critters is "+Critter.total);
}
public Critter(){
name = "NoName";
}
public Critter(String name){
this.name = name;
Critter.total ++;
System.out.println("A critter has been born!");
}
}
public class ClassyCritter{
public static void main(String[] args){
System.out.println("Accessing the class attribute Critter.total: "+Critter.total);
System.out.println("\nCreating critters.");
Critter crit1 = new Critter("critter 1");
Critter crit2 = new Critter("critter 2");
Critter crit3 = new Critter("critter 3");
Critter.status();
System.out.println("\nAccessing the class attribute through an object: "+crit1.total);
}
}
|
[
"="
] |
=
|
5d175a45baffdb6585e8cbd38e431b5ae1e2b36e
|
3a39faf5dadc9e8b1b548815ab2cbf89b8ae05a2
|
/hasor-dataql/dataql-runtime/src/main/java/net/hasor/dataql/runtime/ThrowRuntimeException.java
|
cf673f7b1acb72ce56c42bda4ef1d9745ff86555
|
[
"Apache-2.0"
] |
permissive
|
cubemoon/hasor
|
c407d44f18e913df480e5230c308d20f6efcee5c
|
e939dd171cc627ceec625fce5e7a2f24d6c88afe
|
refs/heads/master
| 2022-04-25T14:58:34.983729
| 2020-04-30T10:05:08
| 2020-04-30T10:05:08
| 260,658,541
| 0
| 0
|
Apache-2.0
| 2020-05-02T09:58:13
| 2020-05-02T09:58:13
| null |
UTF-8
|
Java
| false
| false
| 1,658
|
java
|
/*
* Copyright 2008-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.hasor.dataql.runtime;
import net.hasor.dataql.domain.DataModel;
/**
* DataQL 运行时异常
* @author 赵永春 (zyc@hasor.net)
* @version : 2017-07-14
*/
public class ThrowRuntimeException extends InstructRuntimeException {
protected int throwCode = 500;
protected long executionTime = -1;
protected DataModel result = null;
public ThrowRuntimeException(String errorMessage) {
super(errorMessage);
}
public ThrowRuntimeException(String errorMessage, Throwable e) {
super(errorMessage, e);
}
public ThrowRuntimeException(String errorMessage, int throwCode, long executionTime, DataModel result) {
this(errorMessage);
this.throwCode = throwCode;
this.executionTime = executionTime;
this.result = result;
}
public int getThrowCode() {
return throwCode;
}
public long getExecutionTime() {
return executionTime;
}
public DataModel getResult() {
return result;
}
}
|
[
"zyc@hasor.net"
] |
zyc@hasor.net
|
117c8b25b2697cbfb817c889182614d71f1f658d
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MATH-38b-4-3-Single_Objective_GGA-WeightedSum-BasicBlockCoverage-opt/org/apache/commons/math/optimization/direct/BOBYQAOptimizer_ESTest_scaffolding.java
|
d876244f67d722a43aa0928a46524e9d8f5e1ec4
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,558
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Oct 25 20:57:55 UTC 2021
*/
package org.apache.commons.math.optimization.direct;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class BOBYQAOptimizer_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.optimization.direct.BOBYQAOptimizer";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(BOBYQAOptimizer_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.exception.MathIllegalStateException",
"org.apache.commons.math.linear.BlockFieldMatrix",
"org.apache.commons.math.exception.NumberIsTooSmallException",
"org.apache.commons.math.util.Incrementor",
"org.apache.commons.math.exception.NullArgumentException",
"org.apache.commons.math.exception.util.ExceptionContext",
"org.apache.commons.math.util.Incrementor$MaxCountExceededCallback",
"org.apache.commons.math.optimization.SimpleScalarValueChecker",
"org.apache.commons.math.optimization.AbstractConvergenceChecker",
"org.apache.commons.math.linear.MatrixUtils",
"org.apache.commons.math.exception.NotStrictlyPositiveException",
"org.apache.commons.math.linear.RealMatrix",
"org.apache.commons.math.optimization.direct.BOBYQAOptimizer$PathIsExploredException",
"org.apache.commons.math.linear.MatrixDimensionMismatchException",
"org.apache.commons.math.linear.RealLinearOperator",
"org.apache.commons.math.exception.MathIllegalArgumentException",
"org.apache.commons.math.util.CompositeFormat",
"org.apache.commons.math.linear.AbstractFieldMatrix",
"org.apache.commons.math.exception.MultiDimensionMismatchException",
"org.apache.commons.math.exception.MathParseException",
"org.apache.commons.math.optimization.direct.BaseAbstractMultivariateOptimizer",
"org.apache.commons.math.exception.DimensionMismatchException",
"org.apache.commons.math.exception.MathIllegalNumberException",
"org.apache.commons.math.linear.ArrayRealVector",
"org.apache.commons.math.optimization.MultivariateOptimizer",
"org.apache.commons.math.analysis.MultivariateFunction",
"org.apache.commons.math.analysis.BivariateRealFunction",
"org.apache.commons.math.analysis.SumSincFunction$1",
"org.apache.commons.math.analysis.SumSincFunction$2",
"org.apache.commons.math.linear.RealVectorFormat",
"org.apache.commons.math.optimization.ConvergenceChecker",
"org.apache.commons.math.analysis.UnivariateFunction",
"org.apache.commons.math.exception.OutOfRangeException",
"org.apache.commons.math.linear.AnyMatrix",
"org.apache.commons.math.exception.NumberIsTooLargeException",
"org.apache.commons.math.exception.NoDataException",
"org.apache.commons.math.linear.RealVector$2",
"org.apache.commons.math.exception.ZeroException",
"org.apache.commons.math.exception.TooManyEvaluationsException",
"org.apache.commons.math.linear.Array2DRowRealMatrix",
"org.apache.commons.math.linear.RealMatrixPreservingVisitor",
"org.apache.commons.math.analysis.SincFunction",
"org.apache.commons.math.optimization.BaseMultivariateOptimizer",
"org.apache.commons.math.optimization.BaseOptimizer",
"org.apache.commons.math.linear.SparseRealMatrix",
"org.apache.commons.math.analysis.SumSincFunction",
"org.apache.commons.math.linear.FieldMatrixPreservingVisitor",
"org.apache.commons.math.exception.util.Localizable",
"org.apache.commons.math.analysis.DifferentiableUnivariateFunction",
"org.apache.commons.math.linear.NonSquareMatrixException",
"org.apache.commons.math.linear.AbstractRealMatrix",
"org.apache.commons.math.util.Incrementor$1",
"org.apache.commons.math.optimization.RealPointValuePair",
"org.apache.commons.math.exception.MaxCountExceededException",
"org.apache.commons.math.linear.FieldVector",
"org.apache.commons.math.exception.MathArithmeticException",
"org.apache.commons.math.analysis.DifferentiableMultivariateFunction",
"org.apache.commons.math.analysis.MultivariateVectorFunction",
"org.apache.commons.math.linear.Array2DRowFieldMatrix",
"org.apache.commons.math.linear.BlockRealMatrix",
"org.apache.commons.math.optimization.BaseMultivariateSimpleBoundsOptimizer",
"org.apache.commons.math.exception.util.LocalizedFormats",
"org.apache.commons.math.analysis.SincFunction$1",
"org.apache.commons.math.linear.RealVector",
"org.apache.commons.math.optimization.direct.BaseAbstractMultivariateSimpleBoundsOptimizer",
"org.apache.commons.math.linear.RealMatrixChangingVisitor",
"org.apache.commons.math.linear.FieldMatrix",
"org.apache.commons.math.optimization.direct.BOBYQAOptimizer",
"org.apache.commons.math.exception.util.ExceptionContextProvider",
"org.apache.commons.math.linear.OpenMapRealMatrix",
"org.apache.commons.math.optimization.GoalType",
"org.apache.commons.math.exception.util.ArgUtils"
);
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
21f72073314a0220563fb85ac89a8a19f37a6609
|
f5198ae90af93874d7934f647c7dbc73820f6743
|
/app/src/main/java/com/shuishou/retailerinventory/ui/SaveServerURLDialog.java
|
d25771722f8d260ec6f85cc24413e28c37886383
|
[] |
no_license
|
lousongtao/xiaofenwu-inventory
|
75343908f39760b333429968629ee19c8c93db1c
|
02b968c51e8be8a2956f47894c1db988e2218ea6
|
refs/heads/master
| 2021-04-25T01:43:28.890542
| 2018-03-07T08:44:36
| 2018-03-07T08:44:36
| 115,687,407
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,622
|
java
|
package com.shuishou.retailerinventory.ui;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.shuishou.retailerinventory.InstantValue;
import com.shuishou.retailerinventory.io.IOOperator;
import com.shuishou.retailerinventory.R;
/**
* Created by Administrator on 2017/7/21.
*/
class SaveServerURLDialog {
private EditText txtServerURL;
private LoginActivity loginActivity;
private AlertDialog dlg;
public SaveServerURLDialog(@NonNull LoginActivity loginActivity) {
this.loginActivity = loginActivity;
initUI();
}
private void initUI(){
View view = LayoutInflater.from(loginActivity).inflate(R.layout.config_serverurl_layout, null);
txtServerURL = (EditText) view.findViewById(R.id.txtServerURL);
loadServerURL();
AlertDialog.Builder builder = new AlertDialog.Builder(loginActivity);
builder.setTitle("Configure Server URL")
.setIcon(R.drawable.info)
.setPositiveButton("Save", null)
.setNegativeButton("Cancel", null)
.setView(view);
dlg = builder.create();
dlg.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public void onShow(DialogInterface dialog) {
//add listener for YES button
((AlertDialog)dialog).getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
doSaveURL();
}
});
}
});
dlg.setCancelable(false);
dlg.setCanceledOnTouchOutside(false);
}
private void loadServerURL(){
String url = IOOperator.loadServerURL(InstantValue.FILE_SERVERURL);
if (url != null)
txtServerURL.setText(url);
}
private void doSaveURL(){
final String url = txtServerURL.getText().toString();
if (url == null || url.length() == 0){
Toast.makeText(loginActivity, "Please input server URL.", Toast.LENGTH_LONG).show();
return;
}
IOOperator.saveServerURL(InstantValue.FILE_SERVERURL, url);
InstantValue.URL_TOMCAT = url;
dlg.dismiss();
}
public void showDialog(){
dlg.show();
}
public void dismiss(){
dlg.dismiss();
}
}
|
[
"lousongtao@gmail.com"
] |
lousongtao@gmail.com
|
19b3a0c0990f2ff837b2350f9d25f55bea6e01a3
|
70d80759c7fe6158fc9f7aa41f335dd91e9b46e7
|
/SimpleGame/ref/flappy/android/support/v4/view/au.java
|
f8fd8299f301b488fd563833611993347e056c66
|
[] |
no_license
|
dazziest/word
|
fe1bc157f0f2cfd57312e5c9099cccd4f0398499
|
54d30f21c921525985a00b86b0fc933421d82ac0
|
refs/heads/master
| 2021-01-01T20:16:52.035457
| 2014-03-12T06:48:53
| 2014-03-12T06:48:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,667
|
java
|
package android.support.v4.view;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewParent;
class au
implements bc
{
public int a(View paramView)
{
return 2;
}
long a()
{
return 10L;
}
public void a(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
paramView.postInvalidateDelayed(a(), paramInt1, paramInt2, paramInt3, paramInt4);
}
public void a(View paramView, int paramInt, Paint paramPaint) {}
public void a(View paramView, Paint paramPaint) {}
public void a(View paramView, a parama) {}
public void a(View paramView, Runnable paramRunnable)
{
paramView.postDelayed(paramRunnable, a());
}
public boolean a(View paramView, int paramInt)
{
return false;
}
public void b(View paramView)
{
paramView.postInvalidateDelayed(a());
}
public void b(View paramView, int paramInt) {}
public int c(View paramView)
{
return 0;
}
public int d(View paramView)
{
return 0;
}
public int e(View paramView)
{
return 0;
}
public ViewParent f(View paramView)
{
return paramView.getParent();
}
public boolean g(View paramView)
{
Drawable localDrawable = paramView.getBackground();
boolean bool = false;
if (localDrawable != null)
{
int i = localDrawable.getOpacity();
bool = false;
if (i == -1) {
bool = true;
}
}
return bool;
}
}
/* Location: P:\Side\classes-dex2jar.jar
* Qualified Name: android.support.v4.view.au
* JD-Core Version: 0.7.0.1
*/
|
[
"dazziest@gmail.com"
] |
dazziest@gmail.com
|
9c184d3eb08aa095a18eb424a5f69b9c26381219
|
6e812f36c5706901f2f01966bf79a49cd64ce131
|
/Github_Settings/app/src/main/java/com/example/a111/github_settings/util/WifiUtil.java
|
179afb034e3e58dc7d7645c87ab4b92e4acd6337
|
[] |
no_license
|
huhaisong/androidStudio-workplace
|
a1b9dc669c287562eb5032324cb6cbc3614c561e
|
a0967dacc5018efcb7b6703160d24059d817c403
|
refs/heads/master
| 2020-04-06T07:02:45.504409
| 2016-09-19T07:36:45
| 2016-09-19T07:36:45
| 60,130,558
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,328
|
java
|
package com.example.a111.github_settings.util;
import android.content.Context;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import java.util.List;
/**
* Created by 111 on 2016/5/6.
*/
public class WifiUtil {
// 定义WifiManager对象
private WifiManager mWifiManager;
// 定义WifiInfo对象
private WifiInfo mWifiInfo;
// 扫描出的网络连接列表
private List<ScanResult> mWifiList;
// 网络连接列表
private List<WifiConfiguration> mWifiConfiguration;
// 定义一个WifiLock
WifiManager.WifiLock mWifiLock;
// 构造器
public WifiUtil(Context context) {
// 取得WifiManager对象
mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
// 取得WifiInfo对象
mWifiInfo = mWifiManager.getConnectionInfo();
}
// 打开WIFI
public void openWifi() {
if (!mWifiManager.isWifiEnabled()) {
mWifiManager.setWifiEnabled(true);
}
}
// 关闭WIFI
public void closeWifi() {
if (mWifiManager.isWifiEnabled()) {
mWifiManager.setWifiEnabled(false);
}
}
// 检查当前WIFI状态
public int checkState() {
return mWifiManager.getWifiState();
}
// 创建一个WifiLock
public void creatWifiLock() {
mWifiLock = mWifiManager.createWifiLock("Test");
}
// 得到配置好的网络
public List<WifiConfiguration> getConfiguration() {
return mWifiConfiguration;
}
// 指定配置好的网络进行连接
public void connectConfiguration(int index) {
// 索引大于配置好的网络索引返回
if (index > mWifiConfiguration.size()) {
return;
}
// 连接配置好的指定ID的网络
mWifiManager.enableNetwork(mWifiConfiguration.get(index).networkId, true);
}
//扫描
public void startScan() {
mWifiManager.startScan();
// 得到扫描结果
mWifiList = mWifiManager.getScanResults();
// 得到配置好的网络连接
mWifiConfiguration = mWifiManager.getConfiguredNetworks();
}
// 得到网络列表
public List<ScanResult> getWifiList() {
return mWifiManager.getScanResults();
}
// 查看扫描结果
public StringBuilder lookUpScan() {
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < mWifiList.size(); i++) {
stringBuilder.append("Index_" + new Integer(i + 1).toString() + ":");
// 将ScanResult信息转换成一个字符串包
// 其中把包括:BSSID、SSID、capabilities、frequency、level
stringBuilder.append((mWifiList.get(i)).toString());
stringBuilder.append("/n");
}
return stringBuilder;
}
// 断开指定ID的网络
public void disconnectWifi(int netId) {
mWifiManager.disableNetwork(netId);
mWifiManager.disconnect();
}
// 得到MAC地址
public String getMacAddress() {
return (mWifiInfo == null) ? "NULL" : mWifiInfo.getMacAddress();
}
// 得到接入点的SSID
public String getSSID() {
mWifiInfo = mWifiManager.getConnectionInfo();
return (mWifiInfo == null) ? "NULL" : mWifiInfo.getSSID();
}
// 得到接入点的BSSID
public String getBSSID() {
return (mWifiInfo == null) ? "NULL" : mWifiInfo.getBSSID();
}
// 得到IP地址
public int getIPAddress() {
return (mWifiInfo == null) ? 0 : mWifiInfo.getIpAddress();
}
// 得到连接的ID
public int getNetworkId() {
return (mWifiInfo == null) ? 0 : mWifiInfo.getNetworkId();
}
// 得到WifiInfo的所有信息包
public String getWifiInfo() {
return (mWifiInfo == null) ? "NULL" : mWifiInfo.toString();
}
// 添加一个网络并连接
public void addNetwork(WifiConfiguration wcg) {
int wcgID = mWifiManager.addNetwork(wcg);
boolean b = mWifiManager.enableNetwork(wcgID, true);
}
//然后是一个实际应用方法,只验证过没有密码的情况:
public WifiConfiguration CreateWifiInfo(String SSID, String Password, int Type) {
WifiConfiguration config = new WifiConfiguration();
config.allowedAuthAlgorithms.clear();
config.allowedGroupCiphers.clear();
config.allowedKeyManagement.clear();
config.allowedPairwiseCiphers.clear();
config.allowedProtocols.clear();
config.SSID = "\"" + SSID + "\"";
WifiConfiguration tempConfig = this.IsExsits(SSID);
if (tempConfig != null) {
mWifiManager.removeNetwork(tempConfig.networkId);
}
if (Type == 1) //WIFICIPHER_NOPASS
{
config.wepKeys[0] = "";
config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);
config.wepTxKeyIndex = 0;
}
if (Type == 2) //WIFICIPHER_WEP
{
config.hiddenSSID = true;
config.wepKeys[0] = "\"" + Password + "\"";
config.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED);
config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP);
config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP);
config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40);
config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104);
config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);
config.wepTxKeyIndex = 0;
}
if (Type == 3) //WIFICIPHER_WPA
{
config.preSharedKey = "\"" + Password + "\"";
config.hiddenSSID = true;
config.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);
config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP);
config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK);
config.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP);
//config.allowedProtocols.set(WifiConfiguration.Protocol.WPA);
config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP);
config.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP);
config.status = WifiConfiguration.Status.ENABLED;
}
return config;
}
private WifiConfiguration IsExsits(String SSID) {
List<WifiConfiguration> existingConfigs = mWifiManager.getConfiguredNetworks();
for (WifiConfiguration existingConfig : existingConfigs) {
if (existingConfig.SSID.equals("\"" + SSID + "\"")) {
return existingConfig;
}
}
return null;
}
public void connectWifi(com.example.a111.github_settings.bean.WifiInfo remove) {
openWifi();
String pass = remove.getPass();
String ssid = remove.getName();
int type;
if (pass.equals("null") || pass.equals("")) {
pass = "";
type = 1;
} else {
type = 3;
}
addNetwork(CreateWifiInfo(ssid, pass, type));
}
}
|
[
"291648890@qq.com"
] |
291648890@qq.com
|
08ce40ce4b63807a6e2e565618bad786a539a910
|
a90f04b19052536f27775cd828f88c04bf03a2fb
|
/src/main/java/com/linle/common/util/agent/Version.java
|
902a8bdf304dba1cabf15b5781459a11f24369aa
|
[] |
no_license
|
biaoa/test
|
3a935b2675f52ac7a4e440f52dc86097928e61a1
|
b4039c2345824fd82c23c8c9ac21db36529ba96e
|
refs/heads/master
| 2021-01-20T07:13:39.415844
| 2017-04-25T08:46:57
| 2017-04-25T08:46:57
| 89,980,300
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,384
|
java
|
/*
* Copyright (c) 2008-2014, Harald Walker (bitwalker.eu) and contributing developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the
* following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer.
*
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* * Neither the name of bitwalker nor the names of its
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.linle.common.util.agent;
/**
* Container for general version information.
* All version information is stored as String as sometimes version information includes alphabetical characters.
* @author harald
*/
public class Version implements Comparable<Version> {
String version;
String majorVersion;
String minorVersion;
public Version(String version, String majorVersion, String minorVersion) {
super();
this.version = version;
this.majorVersion = majorVersion;
this.minorVersion = minorVersion;
}
public String getVersion() {
return version;
}
public String getMajorVersion() {
return majorVersion;
}
public String getMinorVersion() {
return minorVersion;
}
@Override
public String toString() {
return version;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((majorVersion == null) ? 0 : majorVersion.hashCode());
result = prime * result
+ ((minorVersion == null) ? 0 : minorVersion.hashCode());
result = prime * result + ((version == null) ? 0 : version.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Version other = (Version) obj;
if (majorVersion == null) {
if (other.majorVersion != null)
return false;
} else if (!majorVersion.equals(other.majorVersion))
return false;
if (minorVersion == null) {
if (other.minorVersion != null)
return false;
} else if (!minorVersion.equals(other.minorVersion))
return false;
if (version == null) {
if (other.version != null)
return false;
} else if (!version.equals(other.version))
return false;
return true;
}
public int compareTo(Version other) {
if (other == null) {
return 1;
}
String[] versionParts = version.split("\\.");
String[] otherVersionParts = other.version.split("\\.");
for (int i = 0; i < Math.min(versionParts.length, otherVersionParts.length); i++) {
if (versionParts[i].length() == otherVersionParts[i].length()) {
int comparisonResult = versionParts[i].compareTo(otherVersionParts[i]);
if (comparisonResult == 0) {
continue;
} else {
return comparisonResult;
}
} else {
return versionParts[i].length() > otherVersionParts[i].length() ? 1 : -1;
}
}
if (versionParts.length > otherVersionParts.length) {
return 1;
} else if (versionParts.length < otherVersionParts.length) {
return -1;
} else {
return 0;
}
}
}
|
[
"hugo@365hdzs.com"
] |
hugo@365hdzs.com
|
5e2d22cb308599cffa206a6caab1cf43aa7c353f
|
877bf01563acef5374a2bfec708e59473f2f03ac
|
/src/main/java/com/j13/bar/server/facade/resp/DemoResp.java
|
7faab0d56cf20b893b5243d2d6f95adfe0c72fd6
|
[] |
no_license
|
Eric-Sun/jax_old
|
1f5928fa4a7c0a3c6a0496b99c1b2d185e909d82
|
623ca4a3b512b73c8e01dc1d74889c0b45df0a9c
|
refs/heads/master
| 2021-06-14T01:57:58.313223
| 2017-03-30T17:02:50
| 2017-03-30T17:02:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 907
|
java
|
package com.j13.bar.server.facade.resp;
import com.j13.bar.server.poppy.anno.Parameter;
import java.util.List;
public class DemoResp {
@Parameter(desc = "id is this")
private int id;
@Parameter(desc = "name is this")
private String name;
@Parameter(desc="bb")
private DemoInnerResp d;
@Parameter(desc=" aaa")
private List<DemoInnerResp> list;
public DemoInnerResp getD() {
return d;
}
public void setD(DemoInnerResp d) {
this.d = d;
}
public List<DemoInnerResp> getList() {
return list;
}
public void setList(List<DemoInnerResp> list) {
this.list = list;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"you@example.com"
] |
you@example.com
|
a2f4eefaf2582cc5e97895082b87432c8e437032
|
bad08ce4b707f8d479a6f9d6562f90d397042df7
|
/Java/sun/Unsafe.java
|
bc570263f7e9386c275d1c999a2c1e53ffc35680
|
[] |
no_license
|
lengyue1024/notes
|
93bf4ec614cbde69341bc7e4decad169a608ff39
|
549358063da05057654811a352ae408e48498f25
|
refs/heads/master
| 2020-04-29T07:14:45.482919
| 2019-03-16T07:51:26
| 2019-03-16T07:51:26
| 175,945,339
| 2
| 0
| null | 2019-03-16T08:19:53
| 2019-03-16T08:19:52
| null |
GB18030
|
Java
| false
| false
| 233
|
java
|
----------------------------
创建Unsafe类 |
----------------------------
# 反射方法创建
Field field = Unsafe.class.getDeclaredField("theUnsafe");
field.setAccessible(true);
Unsafe unsafe = (Unsafe) field.get(null);
|
[
"747692844@qq.com"
] |
747692844@qq.com
|
8e7fd6cd49d5b6512bcd8dcea9c3ed5fdcfecf13
|
30b86c7a3fe6513a8003b5157dffd1f5dda08b38
|
/core/src/main/java/org/openstack4j/model/storage/block/builder/VolumeBuilder.java
|
9739593b1b041013e031289bce2dba9cebf73ad5
|
[
"Apache-2.0"
] |
permissive
|
tanjin861117/openstack4j
|
c098a25529398855a1391f4d51fc28b687cb8cb6
|
b58da68654fc7570a3aee3f1eabdf9aef499a607
|
refs/heads/master
| 2020-04-06T17:29:04.079837
| 2018-11-13T13:17:20
| 2018-11-13T13:17:20
| 157,660,728
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,668
|
java
|
package org.openstack4j.model.storage.block.builder;
import org.openstack4j.common.Buildable.Builder;
import org.openstack4j.model.storage.block.Volume;
import java.util.Map;
public interface VolumeBuilder extends Builder<VolumeBuilder, Volume> {
/**
* See {@link Volume#getName()}
*
* @param name the name of the volume
* @return VolumeBuilder
*/
VolumeBuilder name(String name);
/**
* See {@link Volume#getDescription()} <b>Optional</b>
*
* @param description the description of the volume
* @return VolumeBuilder
*/
VolumeBuilder description(String description);
/**
* To create a volume from an existing volume, specify the ID of the existing volume. <b>Optional</b>
*
* @param uuid the id of an existing volume
* @return VolumeBuilder
*/
VolumeBuilder source_volid(String uuid);
/**
* To create a volume from an existing snapshot, specify the ID of the existing volume snapshot. <b>Optional</b>
*
* @param snapshotId the id of an existing volume snapshot
* @return VolumeBuilder
*/
VolumeBuilder snapshot(String snapshotId);
/**
* The ID of the image from which you want to create the volume. Required to create a bootable volume. <b>Optional</b>
*
* @param imageRef the id of an existing image
* @return VolumeBuilder
*/
VolumeBuilder imageRef(String imageRef);
/**
* The size of the volume, in GB.
*
* @param size the size in GB
* @return VolumeBuilder
*/
VolumeBuilder size(int size);
/**
* The associated volume type. <b>Optional</b>
*
* @param volumeType The associated volume type.
* @return VolumeBuilder
*/
VolumeBuilder volumeType(String volumeType);
/**
* Enables or disables the bootable attribute. You can boot an instance from a bootable volume. <b>Optional</b>
*
* @param isBootable true to enable the bootable flag
* @return VolumeBuilder
*/
VolumeBuilder bootable(boolean isBootable);
/**
* One or more metadata key and value pairs to associate with the volume. <b>Optional</b>
*
* @param metadata metadata to set
* @return VolumeBuilder
*/
VolumeBuilder metadata(Map<String, String> metadata);
/**
* The associated availability zone. <b>Optional</b>
*
* @param zone The associated availability zone.
* @return VolumeBuilder
*/
VolumeBuilder zone(String zone);
// VolumeBuilder volumeTag(String volumeTag);
}
|
[
"tanjin@szzt.com.cn"
] |
tanjin@szzt.com.cn
|
068dd43201f92a925960c663cc83dd859ca77dc3
|
af8f2d1b600d794aea496f5f8005a20ed016960b
|
/system/trunk/src/java/net/zdsoft/eis/support/service/impl/RecommendSchoolServiceImpl.java
|
f77e7bcf03b263fc9bb92720a6c9addff4f7cbdb
|
[] |
no_license
|
thyjxcf/learn
|
46c033f8434c0b0b0809e2a6b1d5601910b36c0d
|
99b9e04aa9c0e7ee00571dffb8735283cf33b1c1
|
refs/heads/master
| 2021-01-06T20:43:53.071081
| 2017-09-15T10:11:53
| 2017-09-15T10:11:53
| 99,546,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,725
|
java
|
package net.zdsoft.eis.support.service.impl;
import java.io.File;
import java.io.IOException;
import java.util.Enumeration;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import net.zdsoft.eis.support.dao.RecommendSchoolDao;
import net.zdsoft.eis.support.entity.RecommendSchool;
import net.zdsoft.eis.support.service.RecommendSchoolService;
import net.zdsoft.keel.util.Pagination;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper;
/*
* <p>ZDSoft数字校园(support)</p>
*
* @author Cuibz 2007/08/18
*/
public class RecommendSchoolServiceImpl implements RecommendSchoolService {
private static final Logger log = LoggerFactory.getLogger(RecommendSchoolServiceImpl.class);
private RecommendSchoolDao recommendSchoolDao;
private static final int maxImageHeight = 232;
private static final int maxImageWidth = 350;
/*
* 根据学校区域编码获得学校列表
*
* @see net.zdsoft.support.service.RecommendSchoolService#getRecommendSchoolList(java.lang.String)
*/
@SuppressWarnings("unchecked")
public List<RecommendSchool> getRecommendSchoolList(String region) {
List<RecommendSchool> listORecommendSchool = recommendSchoolDao
.getRecommendSchoolList(region);
return listORecommendSchool;
}
/*
* 根据学校区域编码获得学校列表,带有分页功能
*
* @see net.zdsoft.support.service.RecommendSchoolService#getRecommendSchoolList(java.lang.String,
* net.zdsoft.keel.util.Pagination)
*/
public List<RecommendSchool> getRecommendSchoolList(String region,
Pagination page) {
if (region == null || "".equals(region)) {
region = "%";
}
else {
if (region.length() < 6) {
region = region + "%";
}
}
return recommendSchoolDao.getRecommendSchoolList(region, page);
}
/*
* 无条件获得学校列表
*
* @see net.zdsoft.support.service.RecommendSchoolService#getAllRecommendSchoolList()
*/
@SuppressWarnings("unchecked")
public List<RecommendSchool> getAllRecommendSchoolList(int top) {
// if (recommendSchoolCache == null) {
// recommendSchoolCache = new Cache(true, false, false);
// log.debug("初始化推荐学校cache");
// }
List<RecommendSchool> listOfRecommendSchool = null;
try {
// listOfRecommendSchool = (List<RecommendSchool>) recommendSchoolCache
// .getFromCache(RECOMMEND_SCHOOL_CACHE);
if (listOfRecommendSchool == null) {
listOfRecommendSchool = recommendSchoolDao
.getAllRecommendSchoolList(top);
// recommendSchoolCache.putInCache(RECOMMEND_SCHOOL_CACHE,
// listOfRecommendSchool);
// log.debug("cache中没有推荐学校对象,设置cache");
}
// else{
// log.debug("从cache中取得推荐学校信息.");
// }
}
// catch (NeedsRefreshException e) {
// log.debug("cache中推荐学校失效,重新设置.");
// if (listOfRecommendSchool == null)
// listOfRecommendSchool = recommendSchoolDao
// .getAllRecommendSchoolList(top);
// recommendSchoolCache.putInCache(RECOMMEND_SCHOOL_CACHE,
// listOfRecommendSchool);
// }
catch (Exception e) {
log.debug("cache中推荐学校出现异常,重新设置.");
if (listOfRecommendSchool == null)
listOfRecommendSchool = recommendSchoolDao
.getAllRecommendSchoolList(top);
// recommendSchoolCache.putInCache(RECOMMEND_SCHOOL_CACHE,
// listOfRecommendSchool);
}
return listOfRecommendSchool;
}
public void setRecommendSchoolDao(RecommendSchoolDao recommendSchoolDao) {
this.recommendSchoolDao = recommendSchoolDao;
}
/*
* 根据学校Id获得学校的详细信息
*
* @see net.zdsoft.support.service.RecommendSchoolService#getRecommendSchoolInfo(java.lang.String)
*/
public RecommendSchool getRecommendSchoolInfo(String schId) {
return recommendSchoolDao.getRecommendSchoolInfo(schId);
}
/*
* 修改学校的详细信息
*
* @see net.zdsoft.support.service.RecommendSchoolService#updateRecommendSchoolInfo(net.zdsoft.support.entity.RecommendSchool)
*/
public boolean updateRecommendSchoolInfo(Object[] recommendSchool) {
int updateNum = recommendSchoolDao
.updateRecommendSchool(recommendSchool);
if (updateNum == 1) {
return true;
}
return false;
}
/*
* 修改学校的推荐状态
*
* @see net.zdsoft.support.service.RecommendSchoolService#updateSchoolRecommendState(java.lang.String[],
* int)
*/
public boolean updateSchoolRecommendState(String[] schId) {
recommendSchoolDao.updateSchoolRecommendState(schId);
return false;
}
/*
* 获得全部学校
*
* @see net.zdsoft.support.service.RecommendSchoolService#getAllSchool(net.zdsoft.keel.util.Pagination)
*/
public List<RecommendSchool> getAllSchool() {
return recommendSchoolDao.getAllSchool();
}
public List<RecommendSchool> getSchools(String name, Pagination page) {
if (name != null)
name = "%" + name + "%";
else
name = "%";
return recommendSchoolDao.getSchools(name, page);
}
/*
* 添加推荐学校
*
* @see net.zdsoft.support.service.RecommendSchoolService#addRecommendSchool(java.lang.String[])
*/
public int addRecommendSchool(Object[] recommendSchoolInfo) {
return recommendSchoolDao.addRecommendSchool(recommendSchoolInfo);
}
/*
* 上传推荐学校图片
*
* @see net.zdsoft.support.service.RecommendSchoolService#picUpload(java.lang.String)
*/
public boolean picUpload(HttpServletRequest request, String fileName,
String filePath) throws ServletException, IOException {
File uploadedFile = null;
String fileRealname = null;
if (request instanceof MultiPartRequestWrapper) {
MultiPartRequestWrapper requestWrapper = (MultiPartRequestWrapper) request;
Enumeration<String> e = requestWrapper.getFileParameterNames();
if (e.hasMoreElements()) {
String fieldName = String.valueOf(e.nextElement());
uploadedFile = (((File[]) requestWrapper.getFiles(fieldName))[0]);
fileRealname = requestWrapper.getFileNames(fieldName)[0];
}
}
try {
RecommendSchoolPhoto photo = new RecommendSchoolPhoto();
photo.saveRecSchPhoto(filePath, fileName, fileName, uploadedFile,
fileRealname, ServletActionContext.getServletContext(),
maxImageWidth, maxImageHeight);
}
catch (Exception e) {
e.printStackTrace();
}
return false;
}
/*
* 根据学校的名称获得学校的信息
*
* @see net.zdsoft.support.service.RecommendSchoolService#getSchools(java.lang.String)
*/
public List<RecommendSchool> getSchool(String SchName) {
return recommendSchoolDao.getSchool(SchName);
}
}
|
[
"1129820421@qq.com"
] |
1129820421@qq.com
|
fd378e05997afd8598c58342a2ad053d2e7f3c66
|
e270666104d8980ccadba0745559eb31c40c233c
|
/src/main/java/svenhjol/charm/mixin/accessor/BeeEntityAccessor.java
|
78d6217108bb24c95c11104fca8e3697d3d84c0f
|
[
"MIT"
] |
permissive
|
Devan-Kerman/Charm
|
31772d1545cc48c99293298ae4d5e6618f291891
|
8edd701656918f191d93962971edffe6633d32ae
|
refs/heads/master
| 2023-04-18T22:17:59.683279
| 2021-04-17T20:25:32
| 2021-04-17T20:25:32
| 358,965,898
| 0
| 0
|
MIT
| 2021-04-17T19:32:40
| 2021-04-17T19:32:39
| null |
UTF-8
|
Java
| false
| false
| 450
|
java
|
package svenhjol.charm.mixin.accessor;
import net.minecraft.entity.passive.BeeEntity;
import net.minecraft.util.math.BlockPos;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(BeeEntity.class)
public interface BeeEntityAccessor {
@Invoker
void invokeSetHasNectar(boolean hasNectar);
@Invoker
void invokeStartMovingTo(BlockPos pos);
}
|
[
"sven.hjol@protonmail.com"
] |
sven.hjol@protonmail.com
|
5d3f083a1715f0dce4482ad5e984e27ceef10fe6
|
936af1ddb3ff50b5a6584e87a658eed157be8725
|
/sobey-projects/firewall/src/main/java/com/sobey/firewall/webservice/TerminalResultHandle.java
|
4b051426bbd3c408e8adac0b866a8e8df42f498a
|
[] |
no_license
|
rosol/sobey-cmop
|
ab8c58d28a64071fb8d381195014794732fe8045
|
aa5423185adfec89dcc6d26dd0ea4a018f0749a3
|
refs/heads/master
| 2021-01-17T05:43:34.693017
| 2015-01-02T06:56:16
| 2015-01-02T06:56:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,097
|
java
|
package com.sobey.firewall.webservice;
import com.sobey.firewall.constans.MethodEnum;
import com.sobey.firewall.webservice.response.result.WSResult;
/**
* 对终端返回的信息进行处理.
*
* 先将huawei防火墙返回的错误提示进行归纳,将其公共的信息抽象出来,然后将执行脚本返回的信息进行对比. <br>
* 如果包含,说明报错,返回<b>false</b>.
*
* @return
*/
public class TerminalResultHandle {
/**
* vpn账号不存在
*/
public static final String DELETE_ERROR = "delete table entry";
public static WSResult ResultHandle(String info, MethodEnum methodEnum) {
WSResult result = new WSResult();
switch (methodEnum) {
case createEip:
break;
case deleteEip:
if (info.contains(DELETE_ERROR)) {
result.setError(WSResult.SYSTEM_ERROR, "VIP不存在");
}
break;
case createVPN:
break;
case deleteVPN:
if (info.contains(DELETE_ERROR)) {
result.setError(WSResult.SYSTEM_ERROR, "VPN账号不存在");
}
break;
case changeVPN:
break;
default:
break;
}
return result;
}
}
|
[
"kai8406@gmail.com"
] |
kai8406@gmail.com
|
042e45e701a125e835d1e91301303d371abfdf28
|
8bbeb7b5721a9dbf40caa47a96e6961ceabb0128
|
/java/811.Number of Subarrays with Bounded Maximum(区间子数组个数).java
|
916c880a0b204fffaa73ce0c7e94508d97b25464
|
[
"MIT"
] |
permissive
|
lishulongVI/leetcode
|
bb5b75642f69dfaec0c2ee3e06369c715125b1ba
|
6731e128be0fd3c0bdfe885c1a409ac54b929597
|
refs/heads/master
| 2020-03-23T22:17:40.335970
| 2018-07-23T14:46:06
| 2018-07-23T14:46:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,337
|
java
|
/**
<p>We are given an array <code>A</code> of positive integers, and two positive integers <code>L</code> and <code>R</code> (<code>L <= R</code>).</p>
<p>Return the number of (contiguous, non-empty) subarrays such that the value of the maximum array element in that subarray is at least <code>L</code> and at most <code>R</code>.</p>
<pre>
<strong>Example :</strong>
<strong>Input:</strong>
A = [2, 1, 4, 3]
L = 2
R = 3
<strong>Output:</strong> 3
<strong>Explanation:</strong> There are three subarrays that meet the requirements: [2], [2, 1], [3].
</pre>
<p><strong>Note:</strong></p>
<ul>
<li>L, R and <code>A[i]</code> will be an integer in the range <code>[0, 10^9]</code>.</li>
<li>The length of <code>A</code> will be in the range of <code>[1, 50000]</code>.</li>
</ul>
<p>给定一个元素都是正整数的数组<code>A</code> ,正整数 <code>L</code> 以及 <code>R</code> (<code>L <= R</code>)。</p>
<p>求连续、非空且其中最大元素满足大于等于<code>L</code> 小于等于<code>R</code>的子数组个数。</p>
<pre><strong>例如 :</strong>
<strong>输入:</strong>
A = [2, 1, 4, 3]
L = 2
R = 3
<strong>输出:</strong> 3
<strong>解释:</strong> 满足条件的子数组: [2], [2, 1], [3].
</pre>
<p><strong>注意:</strong></p>
<ul>
<li>L, R 和 <code>A[i]</code> 都是整数,范围在 <code>[0, 10^9]</code>。</li>
<li>数组 <code>A</code> 的长度范围在<code>[1, 50000]</code>。</li>
</ul>
<p>给定一个元素都是正整数的数组<code>A</code> ,正整数 <code>L</code> 以及 <code>R</code> (<code>L <= R</code>)。</p>
<p>求连续、非空且其中最大元素满足大于等于<code>L</code> 小于等于<code>R</code>的子数组个数。</p>
<pre><strong>例如 :</strong>
<strong>输入:</strong>
A = [2, 1, 4, 3]
L = 2
R = 3
<strong>输出:</strong> 3
<strong>解释:</strong> 满足条件的子数组: [2], [2, 1], [3].
</pre>
<p><strong>注意:</strong></p>
<ul>
<li>L, R 和 <code>A[i]</code> 都是整数,范围在 <code>[0, 10^9]</code>。</li>
<li>数组 <code>A</code> 的长度范围在<code>[1, 50000]</code>。</li>
</ul>
**/
class Solution {
public int numSubarrayBoundedMax(int[] A, int L, int R) {
}
}
|
[
"lishulong@wecash.net"
] |
lishulong@wecash.net
|
797f6bdc521d1dbc0a0585299091e1e6557e056d
|
b4a2a49b9744329e5e894cef1222be309bfe58b2
|
/src/test/java/org/tugraz/sysds/test/functions/parfor/ForLoopPredicateTest.java
|
19b55aafb31fd011e46e5077155f0aebae00db33
|
[
"Apache-2.0"
] |
permissive
|
tugraz-isds/systemds
|
b1942d8f905ccf8a5da233a376c8bab045688cbf
|
c771440e9d41507a1420a58d316ac82b53923d55
|
refs/heads/master
| 2021-06-26T02:49:55.256823
| 2020-09-01T15:39:21
| 2020-09-01T15:39:21
| 147,829,568
| 42
| 28
|
Apache-2.0
| 2020-10-13T10:59:15
| 2018-09-07T13:48:30
|
Java
|
UTF-8
|
Java
| false
| false
| 5,689
|
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.tugraz.sysds.test.functions.parfor;
import java.util.HashMap;
import org.junit.Assert;
import org.junit.Test;
import org.tugraz.sysds.runtime.matrix.data.MatrixValue.CellIndex;
import org.tugraz.sysds.test.AutomatedTestBase;
import org.tugraz.sysds.test.TestConfiguration;
public class ForLoopPredicateTest extends AutomatedTestBase
{
private final static String TEST_NAME1 = "for_pred1a"; //const
private final static String TEST_NAME2 = "for_pred1b"; //const seq
private final static String TEST_NAME3 = "for_pred2a"; //var
private final static String TEST_NAME4 = "for_pred2b"; //var seq
private final static String TEST_NAME5 = "for_pred3a"; //expression
private final static String TEST_NAME6 = "for_pred3b"; //expression seq
private final static String TEST_NAME7 = "for_pred1a_seq"; //const seq two parameters (this tests is only for parser)
private final static String TEST_DIR = "functions/parfor/";
private final static String TEST_CLASS_DIR = TEST_DIR + ForLoopPredicateTest.class.getSimpleName() + "/";
private final static double from = 1;
private final static double to = 10.2;
private final static int increment = 1;
@Override
public void setUp()
{
addTestConfiguration(TEST_NAME1, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME1, new String[]{"R"}));
addTestConfiguration(TEST_NAME2, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME2, new String[]{"R"}));
addTestConfiguration(TEST_NAME3, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME3, new String[]{"R"}));
addTestConfiguration(TEST_NAME4, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME4, new String[]{"R"}));
addTestConfiguration(TEST_NAME5, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME5, new String[]{"R"}));
addTestConfiguration(TEST_NAME6, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME6, new String[]{"R"}));
addTestConfiguration(TEST_NAME7, new TestConfiguration(TEST_CLASS_DIR, TEST_NAME7, new String[]{"R"}));
}
@Test
public void testForConstIntegerPredicate()
{
runForPredicateTest(1, true);
}
@Test
public void testForConstIntegerSeq2ParametersPredicate()
{
runForPredicateTest(7, true);
}
@Test
public void testForConstIntegerSeqPredicate()
{
runForPredicateTest(2, true);
}
@Test
public void testForVariableIntegerPredicate()
{
runForPredicateTest(3, true);
}
@Test
public void testForVariableIntegerSeqPredicate()
{
runForPredicateTest(4, true);
}
@Test
public void testForExpressionIntegerPredicate()
{
runForPredicateTest(5, true);
}
@Test
public void testForExpressionIntegerSeqPredicate()
{
runForPredicateTest(6, true);
}
@Test
public void testForConstDoublePredicate()
{
runForPredicateTest(1, false);
}
@Test
public void testForConstDoubleSeq2ParametersPredicate()
{
runForPredicateTest(7, false);
}
@Test
public void testForConstDoubleSeqPredicate()
{
runForPredicateTest(2, false);
}
@Test
public void testForVariableDoublePredicate()
{
runForPredicateTest(3, false);
}
@Test
public void testForVariableDoubleSeqPredicate()
{
runForPredicateTest(4, false);
}
@Test
public void testForExpressionDoublePredicate()
{
runForPredicateTest(5, false);
}
@Test
public void testForExpressionDoubleSeqPredicate()
{
runForPredicateTest(6, false);
}
/**
*
* @param testNum
* @param intScalar
*/
private void runForPredicateTest( int testNum, boolean intScalar )
{
String TEST_NAME = null;
switch( testNum )
{
case 1: TEST_NAME = TEST_NAME1; break;
case 2: TEST_NAME = TEST_NAME2; break;
case 3: TEST_NAME = TEST_NAME3; break;
case 4: TEST_NAME = TEST_NAME4; break;
case 5: TEST_NAME = TEST_NAME5; break;
case 6: TEST_NAME = TEST_NAME6; break;
case 7: TEST_NAME = TEST_NAME7; break;
}
getAndLoadTestConfiguration(TEST_NAME);
Object valFrom = null;
Object valTo = null;
Object valIncrement = null;
if( intScalar )
{
valFrom = Integer.valueOf((int)Math.round(from));
valTo = Integer.valueOf((int)Math.round(to));
valIncrement = Integer.valueOf(increment);
}
else
{
valFrom = new Double(from);
valTo = new Double(to);
valIncrement = new Double(increment);
}
/* This is for running the junit test the new way, i.e., construct the arguments directly */
String HOME = SCRIPT_DIR + TEST_DIR;
fullDMLScriptName = HOME + TEST_NAME + ".dml";
programArgs = new String[]{"-args",
String.valueOf(valFrom),
String.valueOf(valTo),
String.valueOf(valIncrement),
output("R") };
fullRScriptName = HOME + TEST_NAME1 + ".R";
rCmd = null;
runTest(true, false, null, -1);
//compare matrices
HashMap<CellIndex, Double> dmlfile = readDMLMatrixFromHDFS("R");
Assert.assertEquals( Double.valueOf(Math.ceil((Math.round(to)-Math.round(from)+1)/increment)),
dmlfile.get(new CellIndex(1,1)));
}
}
|
[
"mboehm7@gmail.com"
] |
mboehm7@gmail.com
|
c9a7f2e31e7055215a162ef4dc9259fc95ad697b
|
20c179f934f7895d3845a538230e1286610723a4
|
/HtProject/src/com/system/server/WmSpServer.java
|
85d1eb0bcf4803a48783541af0d47e36e27de0c6
|
[] |
no_license
|
xiangtone/sp
|
f32c4c90aba1bde405c91c28217b34c96fa5bcfc
|
c9fa0269333b099993a2206759d91168f4a5bbca
|
refs/heads/master
| 2021-03-27T16:00:08.573238
| 2017-06-26T01:56:11
| 2017-06-26T01:56:11
| 55,934,831
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 219
|
java
|
package com.system.server;
import java.util.List;
import com.system.dao.WmSpDao;
import com.system.model.WmSpModel;
public class WmSpServer
{
public List<WmSpModel> loadSp()
{
return new WmSpDao().loadSp();
}
}
|
[
"liushengmz@163.com"
] |
liushengmz@163.com
|
f8145160eadf54ac430e15c9c39b9c55b19ebbba
|
277aa1cf451628ead9a4213a69455b030d3d4ca6
|
/src/test/java/com/automation/utulities/Pract.java
|
047ac3cf594c6c9c1ee375a0045ee83b57cd539d
|
[] |
no_license
|
raksanao/Fall2019Selenium
|
da31419959d85e260c81cc78a41517f949e50c79
|
3b6f19751dc4effe75db60895e2dbf0d070492bf
|
refs/heads/master
| 2023-05-25T18:52:07.421236
| 2020-03-22T01:20:23
| 2020-03-22T01:20:23
| 244,193,862
| 0
| 0
| null | 2023-05-09T18:19:31
| 2020-03-01T17:34:37
|
Java
|
UTF-8
|
Java
| false
| false
| 1,318
|
java
|
package com.automation.utulities;
import io.github.bonigarcia.wdm.WebDriverManager;
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.firefox.FirefoxDriver;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;
public class Pract {
public static void main(String[] args) throws InterruptedException {
WebDriverManager.chromedriver().version("79").setup();
WebDriver driver=new ChromeDriver();
driver.get("http://practice.cybertekschool.com/multiple_buttons");
WebElement butt1= driver.findElement(By.xpath("//*[@onclick='button1()']"));
WebElement but2=driver.findElement(By.xpath("//*[@onclick='button2()']"));
WebElement but3=driver.findElement(By.xpath("//*[@onclick='button3()']"));
WebElement but4=driver.findElement(By.xpath("//*[@onclick='button4()']"));
WebElement but5=driver.findElement(By.xpath("//*[@onclick='button5()']"));
WebElement butt6=driver.findElement(By.xpath("//*[@onclick='button6()']"));
List<WebElement> allButt= Arrays.asList(butt1,but2,but3,but4,but5,butt6);
for(WebElement each:allButt){
Thread.sleep(3000);
each.click();
}
Thread.sleep(300);
driver.close();
}
}
|
[
"rukhshona87@gmail.com"
] |
rukhshona87@gmail.com
|
a563026a73356ce6a01ee127a2edc89ef2181ca2
|
8e8278cfcd01882f48cd13acc57c03bd6472cb7e
|
/snap-dexmaker/src/main/java/org/snapscript/dx/util/Output.java
|
c4282a3a3448bfde69ef9f1e06d640c601b7633c
|
[] |
no_license
|
snapscript/snap-archive
|
e66d9a240f4c2a6e4b21434def7a45a74445f8a7
|
9838eddc5a2cfff5315b1f2f3839fd72f65ed658
|
refs/heads/master
| 2021-01-22T01:12:06.122986
| 2018-10-26T01:41:45
| 2018-10-26T01:41:45
| 102,211,593
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,932
|
java
|
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.snapscript.dx.util;
/**
* Interface for a sink for binary output. This is similar to
* {@code java.util.DataOutput}, but no {@code IOExceptions}
* are declared, and multibyte output is defined to be little-endian.
*/
public interface Output extends ByteOutput {
/**
* Gets the current cursor position. This is the same as the number of
* bytes written to this instance.
*
* @return {@code >= 0;} the cursor position
*/
public int getCursor();
/**
* Asserts that the cursor is the given value.
*
* @param expectedCursor the expected cursor value
* @throws RuntimeException thrown if {@code getCursor() !=
* expectedCursor}
*/
public void assertCursor(int expectedCursor);
/**
* Writes a {@code byte} to this instance.
*
* @param value the value to write; all but the low 8 bits are ignored
*/
public void writeByte(int value);
/**
* Writes a {@code short} to this instance.
*
* @param value the value to write; all but the low 16 bits are ignored
*/
public void writeShort(int value);
/**
* Writes an {@code int} to this instance.
*
* @param value the value to write
*/
public void writeInt(int value);
/**
* Writes a {@code long} to this instance.
*
* @param value the value to write
*/
public void writeLong(long value);
/**
* Writes a DWARFv3-style unsigned LEB128 integer. For details,
* see the "Dalvik Executable Format" document or DWARF v3 section
* 7.6.
*
* @param value value to write, treated as an unsigned value
* @return {@code 1..5;} the number of bytes actually written
*/
public int writeUleb128(int value);
/**
* Writes a DWARFv3-style unsigned LEB128 integer. For details,
* see the "Dalvik Executable Format" document or DWARF v3 section
* 7.6.
*
* @param value value to write
* @return {@code 1..5;} the number of bytes actually written
*/
public int writeSleb128(int value);
/**
* Writes a {@link ByteArray} to this instance.
*
* @param bytes {@code non-null;} the array to write
*/
public void write(ByteArray bytes);
/**
* Writes a portion of a {@code byte[]} to this instance.
*
* @param bytes {@code non-null;} the array to write
* @param offset {@code >= 0;} offset into {@code bytes} for the first
* byte to write
* @param length {@code >= 0;} number of bytes to write
*/
public void write(byte[] bytes, int offset, int length);
/**
* Writes a {@code byte[]} to this instance. This is just
* a convenient shorthand for {@code write(bytes, 0, bytes.length)}.
*
* @param bytes {@code non-null;} the array to write
*/
public void write(byte[] bytes);
/**
* Writes the given number of {@code 0} bytes.
*
* @param count {@code >= 0;} the number of zeroes to write
*/
public void writeZeroes(int count);
/**
* Adds extra bytes if necessary (with value {@code 0}) to
* force alignment of the output cursor as given.
*
* @param alignment {@code > 0;} the alignment; must be a power of two
*/
public void alignTo(int alignment);
}
|
[
"gallagher_niall@yahoo.com"
] |
gallagher_niall@yahoo.com
|
3234274532061176bdcc8244065ffe85ad522042
|
19dc4b795d50f177a74438a0192af69c3849ac5e
|
/goshop-service-goods/src/main/java/org/goshop/goods/mapper/read/ReadGoodsClassStapleMapper.java
|
43c832674198db660edb2bc2a429cada3f900e48
|
[] |
no_license
|
spidermandl/stoneshop
|
6e2d469ce0fe05d66c3bb56e04f160b54dd63ebc
|
ecff96a61d8f2fc3b5cd279e7209da0ae07bc26d
|
refs/heads/master
| 2021-09-09T17:44:14.847907
| 2018-03-18T17:05:03
| 2018-03-18T17:05:03
| 111,582,391
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 711
|
java
|
package org.goshop.goods.mapper.read;
import org.apache.ibatis.annotations.Param;
import org.goshop.goods.pojo.GoodsClassStaple;
import java.util.List;
public interface ReadGoodsClassStapleMapper {
int deleteByPrimaryKey(Integer stapleId);
int insert(GoodsClassStaple record);
int insertSelective(GoodsClassStaple record);
GoodsClassStaple selectByPrimaryKey(Integer stapleId);
int updateByPrimaryKeySelective(GoodsClassStaple record);
int updateByPrimaryKey(GoodsClassStaple record);
List<GoodsClassStaple> findByMemberId(@Param("memberId") Long memberId);
GoodsClassStaple findOneByGcId3AndMemberId(@Param("gcId3") Integer gcId3, @Param("memberId") Long memberId);
}
|
[
"Desmond@Desmonds-MacBook-Pro.local"
] |
Desmond@Desmonds-MacBook-Pro.local
|
f82fb8e2a5b2c509fb64e4e7361d88cda8c2f814
|
39b7e86a2b5a61a1f7befb47653f63f72e9e4092
|
/src/main/java/com/alipay/api/domain/AlipaySocialBaseRelationFriendsQueryModel.java
|
a6c42431d0efd59eada848cc51691a03b562282d
|
[
"Apache-2.0"
] |
permissive
|
slin1972/alipay-sdk-java-all
|
dbec0604c2d0b76d8a1ebf3fd8b64d4dd5d21708
|
63095792e900bbcc0e974fc242d69231ec73689a
|
refs/heads/master
| 2020-08-12T14:18:07.203276
| 2019-10-13T09:00:11
| 2019-10-13T09:00:11
| 214,782,009
| 0
| 0
|
Apache-2.0
| 2019-10-13T07:56:34
| 2019-10-13T07:56:34
| null |
UTF-8
|
Java
| false
| false
| 966
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 获取好友列表信息
*
* @author auto create
* @since 1.0, 2017-08-07 00:10:37
*/
public class AlipaySocialBaseRelationFriendsQueryModel extends AlipayObject {
private static final long serialVersionUID = 8131444689245914912L;
/**
* 获取类型。1=获取双向好友 2=获取双向+单向好友
*/
@ApiField("get_type")
private Long getType;
/**
* 好友列表中是否返回自己, true=返回 false=不返回 默认false
*/
@ApiField("include_self")
private Boolean includeSelf;
public Long getGetType() {
return this.getType;
}
public void setGetType(Long getType) {
this.getType = getType;
}
public Boolean getIncludeSelf() {
return this.includeSelf;
}
public void setIncludeSelf(Boolean includeSelf) {
this.includeSelf = includeSelf;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
0cff28ccde3ebeb3dddb1f36f00b69bcdc84c8b5
|
3ca53c13d2953805c00406476ceda9684887a8ad
|
/src/com/iwxxm/metarSpeci/MeasureListType.java
|
535fb7a7968003b295635dd9a95555c1124a4fb6
|
[] |
no_license
|
yw2017051032/tac2iwxxm
|
ae93c12b08b7316cd59de032d4ae2e8082bc6c0b
|
5a08cb9ecd0833fd4435bf6db81a2b8126380ec1
|
refs/heads/master
| 2020-03-17T03:03:06.671868
| 2018-06-05T16:55:59
| 2018-06-05T17:06:03
| 133,217,637
| 3
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,786
|
java
|
//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2018.04.04 时间 09:34:11 PM CST
//
package com.iwxxm.metarSpeci;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* gml:MeasureListType provides for a list of quantities.
*
* <p>MeasureListType complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* <complexType name="MeasureListType">
* <simpleContent>
* <extension base="<http://www.opengis.net/gml/3.2>doubleList">
* <attribute name="uom" use="required" type="{http://www.opengis.net/gml/3.2}UomIdentifier" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MeasureListType", propOrder = {
"value"
})
public class MeasureListType {
@XmlValue
protected List<Double> value;
@XmlAttribute(name = "uom", required = true)
protected String uom;
/**
* A type for a list of values of the respective simple type.Gets the value of the value 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 value property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getValue().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Double }
*
*
*/
public List<Double> getValue() {
if (value == null) {
value = new ArrayList<Double>();
}
return this.value;
}
/**
* 获取uom属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getUom() {
return uom;
}
/**
* 设置uom属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUom(String value) {
this.uom = value;
}
}
|
[
"852406820@qq.com"
] |
852406820@qq.com
|
bd92d6e82e2425bccfe89ef84ce0ec2ec8e3c26d
|
ae8b2e3a5196a06f9c6f6de3a3baeec11bb8cb08
|
/runtime-parent/runtime-join/src/main/java/com/speedment/runtime/join/package-info.java
|
ca6a42fc8f9d23f6f55cda5f65ca766f0d7a0ac6
|
[
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
pydawan/speedment
|
e4e8169d0c2bf6a6d35046d25d18358c4a7b795e
|
9f42937db96707a92a72371f20054f9098c1fc15
|
refs/heads/master
| 2020-05-09T09:45:26.001364
| 2019-04-05T12:46:39
| 2019-04-05T12:46:39
| 181,015,751
| 0
| 1
| null | 2019-04-12T13:39:59
| 2019-04-12T13:39:58
| null |
UTF-8
|
Java
| false
| false
| 233
|
java
|
/**
* Join exposes interfaces to handle join operations on tables.
* <p>
* This package is part of the API. Modifications to classes here should only
* (if ever) be done in major releases.
*/
package com.speedment.runtime.join;
|
[
"minborg@speedment.com"
] |
minborg@speedment.com
|
d2eddc394e0908109c8a0e24b08e26c1843792f1
|
96c9f686b3ee5e0364eb5e8859c9e7a020f0ea8b
|
/bus-shade/src/main/java/org/aoju/bus/shade/beans/MySQLColumnType.java
|
442e7e800331a658ecb4da5d2962a399a67a1a45
|
[
"MIT"
] |
permissive
|
jiyulongxu/bus
|
083f7702ba06121b652f7bd82ce2bbdeac4e3109
|
1bc7b539fc541f4205ded8a6edd4282e4ad89c59
|
refs/heads/master
| 2023-02-03T07:27:46.277793
| 2020-12-20T01:22:23
| 2020-12-20T01:22:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,909
|
java
|
/*********************************************************************************
* *
* The MIT License (MIT) *
* *
* Copyright (c) 2015-2020 aoju.org and other contributors. *
* *
* 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. *
* *
********************************************************************************/
package org.aoju.bus.shade.beans;
/**
* 表字段类型
*
* @author Kimi Liu
* @version 6.1.6
* @since JDK 1.8+
*/
public enum MySQLColumnType implements ColumnType {
// 基本类型
BASE_BYTE("byte", null),
BASE_SHORT("short", null),
BASE_CHAR("char", null),
BASE_INT("int", null),
BASE_LONG("long", null),
BASE_FLOAT("float", null),
BASE_DOUBLE("double", null),
BASE_BOOLEAN("boolean", null),
// 包装类型
BYTE("Byte", null),
SHORT("Short", null),
CHARACTER("Character", null),
INTEGER("Integer", null),
LONG("Long", null),
FLOAT("Float", null),
DOUBLE("Double", null),
BOOLEAN("Boolean", null),
STRING("String", null),
// sql 包下数据类型
DATE_SQL("Date", "java.sql.Date"),
TIME("Time", "java.sql.Time"),
TIMESTAMP("Timestamp", "java.sql.Timestamp"),
BLOB("Blob", "java.sql.Blob"),
CLOB("Clob", "java.sql.Clob"),
// java8 新时间类型
LOCAL_DATE("LocalDate", "java.time.LocalDate"),
LOCAL_TIME("LocalTime", "java.time.LocalTime"),
YEAR("Year", "java.time.Year"),
YEAR_MONTH("YearMonth", "java.time.YearMonth"),
LOCAL_DATE_TIME("LocalDateTime", "java.time.LocalDateTime"),
// 其他杂类
BYTE_ARRAY("byte[]", null),
OBJECT("Object", null),
DATE("Date", "java.util.Date"),
BIG_INTEGER("BigInteger", "java.math.BigInteger"),
BIG_DECIMAL("BigDecimal", "java.math.BigDecimal");
/**
* 类型
*/
private final String type;
/**
* 包路径
*/
private final String pkg;
MySQLColumnType(final String type, final String pkg) {
this.type = type;
this.pkg = pkg;
}
@Override
public String getType() {
return type;
}
@Override
public String getPkg() {
return pkg;
}
}
|
[
"839536@qq.com"
] |
839536@qq.com
|
508c79d3248291bcd29312dc58ac64dccd375a1a
|
2a5c0c08e934177c35c5438522257ba50539ab6c
|
/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/DelegatingMutableBlobMetadata.java
|
c81b41f3ea88a91a5c295a745f00c841930e352d
|
[] |
no_license
|
kohsuke/jclouds
|
6258d76e94ad31cf51e1bf193e531ad301815b97
|
58f8a7eb1500f9574302b23d6382b379ebf187d9
|
refs/heads/master
| 2023-06-01T17:17:27.598644
| 2010-08-04T01:34:19
| 2010-08-04T01:34:19
| 816,000
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,985
|
java
|
/**
*
* Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.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.jclouds.blobstore.domain.internal;
import java.io.Serializable;
import java.net.URI;
import java.util.Date;
import java.util.Map;
import org.jclouds.blobstore.domain.MutableBlobMetadata;
import org.jclouds.blobstore.domain.StorageType;
import org.jclouds.domain.Location;
import org.jclouds.domain.ResourceMetadata;
/**
*
* @author Adrian Cole
*/
public class DelegatingMutableBlobMetadata implements MutableBlobMetadata, Serializable {
/** The serialVersionUID */
private static final long serialVersionUID = -2739517840958218727L;
protected final MutableBlobMetadata delegate;
public DelegatingMutableBlobMetadata(MutableBlobMetadata delegate) {
this.delegate = delegate;
}
@Override
public void setContentMD5(byte[] md5) {
delegate.setContentMD5(md5);
}
@Override
public void setContentType(String type) {
delegate.setContentType(type);
}
@Override
public byte[] getContentMD5() {
return delegate.getContentMD5();
}
@Override
public String getContentType() {
return delegate.getContentType();
}
@Override
public void setETag(String eTag) {
delegate.setETag(eTag);
}
@Override
public void setLastModified(Date lastModified) {
delegate.setLastModified(lastModified);
}
@Override
public void setSize(Long size) {
delegate.setSize(size);
}
@Override
public String getETag() {
return delegate.getETag();
}
@Override
public Date getLastModified() {
return delegate.getLastModified();
}
@Override
public String getName() {
return delegate.getName();
}
@Override
public String getProviderId() {
return delegate.getProviderId();
}
@Override
public Long getSize() {
return delegate.getSize();
}
@Override
public StorageType getType() {
return delegate.getType();
}
@Override
public URI getUri() {
return delegate.getUri();
}
@Override
public Map<String, String> getUserMetadata() {
return delegate.getUserMetadata();
}
@Override
public void setId(String id) {
delegate.setId(id);
}
@Override
public void setLocation(Location location) {
delegate.setLocation(location);
}
@Override
public void setName(String name) {
delegate.setName(name);
}
@Override
public void setType(StorageType type) {
delegate.setType(type);
}
@Override
public void setUri(URI url) {
delegate.setUri(url);
}
@Override
public void setUserMetadata(Map<String, String> userMetadata) {
delegate.setUserMetadata(userMetadata);
}
@Override
public Location getLocation() {
return delegate.getLocation();
}
@Override
public int compareTo(ResourceMetadata<StorageType> o) {
return delegate.compareTo(o);
}
@Override
public boolean equals(Object obj) {
return delegate.equals(obj);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
@Override
public String toString() {
return delegate.toString();
}
public MutableBlobMetadata getDelegate() {
return delegate;
}
}
|
[
"adrian@jclouds.org"
] |
adrian@jclouds.org
|
2020e9f98ef32a902ef8329e8d64fdae82b74b5e
|
71dd5a62896d88ef3d1a8b383d6964408d7d239f
|
/javastudy/part20-collection-framework/src/Test/Test02.java
|
0b4005c2ff88e39fc5e4caf83b86d4f7ce454f47
|
[] |
no_license
|
hwangseokjin94/java_web_0224
|
42df3f57b3b50598e2ca8b12d27e20a284670ca7
|
6c9ab05ac743763db8264c42c814b79cada95458
|
refs/heads/master
| 2022-11-13T08:23:36.271978
| 2020-07-02T08:26:19
| 2020-07-02T08:26:19
| 250,546,467
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,849
|
java
|
package Test;
import java.util.ArrayList;
import java.util.List;
/*
Test02.java
Container 제네릭 클래스를 정의하시오.
한 가지 타입의 객체를 여러 개 저장할 수 있는 ArrayList 를 이용하시오.
물건만담을수있는 ArrayList 관점.
*/
//제네릭타입(미리타입을지정하면 무엇이든저장할수있는타입
class Container<T> { // T:제네릭타입(다른이름도 상관이없다.
//컨데이너에 물건만 보관하는게아님 private String location;
// private T[] list;
private List<T> list;
public Container() {
list = new ArrayList<>();
}
// method
public void add(T item) {// T타입의 데이터를 받아오겠다. 리스트에 아이템넣기
list.add(item);
}
public T get(int index) {// 뺴오기
return list.get(index);
}
public int size() {// 몇개의 아이템이 들어가있느냐
return list.size();
}
public T remove(int index) { // 인덱스를 받아서 삭제 삭제하는 데이터를 보이기때문에 T타입
return list.remove(index);// 지우는게 끝이아니라 데이터를보여주기때문에 리턴을한다.
}
}
class Gun{
private String model ;
private int bullet;
public Gun(String model, int bullet) {
this.model = model;
this.bullet = bullet;
}
@Override
public String toString() {
return model+" : ("+bullet+")발 ";
}
}
public class Test02 {
public static void main(String[] args) {
Container<Gun> gunLocker = new Container<>(); //총기보관함에 총을 넣겠따.
gunLocker.add(new Gun("베레타",6));
gunLocker.add(new Gun("콜트",6));
gunLocker.add(new Gun("k2",15));
gunLocker.remove(1);
for(int i = 0 ; i <gunLocker.size(); i++) {
System.out.println(gunLocker.get(i)); //베레타(6발) k2(15)발
}
}
}
|
[
"vpdnsldk@gmail.com"
] |
vpdnsldk@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.