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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0c1beef7e23c908a2de0931310b613144d855016
|
fff9c9cbdba1816baf783c81b9eff38e2f43ac3e
|
/Project1/src/unit/KhachHang.java
|
f902be8cd71a10ca9bc23d3ea583e0c26562ad5d
|
[] |
no_license
|
tranvien98/project01
|
674d1f7df20e4b72ac48fb4acdd0fbfb4edfffbd
|
4dc225679e5e98d589fb45830347b766b66e2a80
|
refs/heads/master
| 2020-03-30T07:50:31.573933
| 2018-12-28T05:35:35
| 2018-12-28T05:35:35
| 150,970,107
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,454
|
java
|
package unit;
public class KhachHang {
private String maKH;
private String tenKH;
private String cmnd;
private String diaChi;
private String email;
private String gioiTinh;
private String sdt;
private String maPhong;
public KhachHang(String maKH, String tenKH, String cmnd, String diaChi, String email, String gioiTinh, String sdt, String maPhong) {
this.maKH = maKH;
this.tenKH = tenKH;
this.cmnd = cmnd;
this.diaChi = diaChi;
this.email = email;
this.gioiTinh = gioiTinh;
this.sdt = sdt;
this.maPhong = maPhong;
}
public String getMaKH() {
return maKH;
}
public void setMaKH(String maKH) {
this.maKH = maKH;
}
public String getTenKH() {
return tenKH;
}
public void setTenKH(String tenKH) {
this.tenKH = tenKH;
}
public String getCmnd() {
return cmnd;
}
public void setCmnd(String cmnd) {
this.cmnd = cmnd;
}
public String getDiaChi() {
return diaChi;
}
public void setDiaChi(String diaChi) {
this.diaChi = diaChi;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getGioiTinh() {
return gioiTinh;
}
public void setGioiTinh(String gioiTinh) {
this.gioiTinh = gioiTinh;
}
public String getSdt() {
return sdt;
}
public void setSdt(String sdt) {
this.sdt = sdt;
}
public String getMaPhong() {
return maPhong;
}
public void setMaPhong(String maPhong) {
this.maPhong = maPhong;
}
}
|
[
"="
] |
=
|
57a69fa21c8e82f3cc3643170173d0a674126dc5
|
be0e8535222b601c277a9d29f234e7fa44e13258
|
/output/com/ankamagames/dofus/network/messages/game/inventory/exchanges/ExchangeWeightMessage.java
|
b52382f7646bf3905940e612ef7a0df5820d411f
|
[] |
no_license
|
BotanAtomic/ProtocolBuilder
|
df303b741c701a17b0c61ddbf5253d1bb8e11684
|
ebb594e3da3adfad0c3f036e064395a037d6d337
|
refs/heads/master
| 2021-06-21T00:55:40.479271
| 2017-08-14T23:59:09
| 2017-08-14T23:59:24
| 100,318,625
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,687
|
java
|
package com.ankamagames.dofus.network.messages.game.inventory.exchanges;
import java.lang.Exception;
import com.ankamagames.jerakine.network.NetworkMessage;
import com.ankamagames.jerakine.network.INetworkMessage;
import com.ankamagames.jerakine.network.ICustomDataOutput;
import flash.utils.ByteArray;
import com.ankamagames.jerakine.network.CustomDataWrapper;
import com.ankamagames.jerakine.network.ICustomDataInput;
import com.ankamagames.jerakine.network.utils.FuncTree;
public class ExchangeWeightMessage extends NetworkMessage implements INetworkMessage {
private boolean _isInitialized = false;
public int currentWeight = 0;
public int maxWeight = 0;
public static final int protocolId = 5793;
public void serialize(ICustomDataOutput param1) {
if (this.currentWeight < 0) {
throw new Exception("Forbidden value (" + this.currentWeight + ") on element currentWeight.");
}
param1.writeVarInt(this.currentWeight);
if (this.maxWeight < 0) {
throw new Exception("Forbidden value (" + this.maxWeight + ") on element maxWeight.");
}
param1.writeVarInt(this.maxWeight);
}
public void deserialize(ICustomDataInput param1) {
this.currentWeight = param1.readVarUhInt();
if (this.currentWeight < 0) {
throw new Exception(
"Forbidden value ("
+ this.currentWeight
+ ") on element of ExchangePodsModifiedMessage.currentWeight.");
}
this.maxWeight = param1.readVarUhInt();
if (this.maxWeight < 0) {
throw new Exception(
"Forbidden value ("
+ this.maxWeight
+ ") on element of ExchangePodsModifiedMessage.maxWeight.");
}
}
}
|
[
"ahmed.botan94@gmail.com"
] |
ahmed.botan94@gmail.com
|
280cc5de4bf624f60ae51352aa26f67c412c28be
|
d335fa9791ff567dbcc0c2bb6e62733d3b7c66f5
|
/datatables/datatables-thymeleaf-export/src/main/java/com/github/dandelion/datatables/repository/PersonRepository.java
|
5d66175b0e82c9c7bffe580599755173f383fc3c
|
[] |
no_license
|
dandelion/dandelion-samples
|
43c0a7a722d2c84618f633dd015cf50fc8d8decf
|
40159daf3349d6f4c0e7d15550f0430b8126e83b
|
refs/heads/wip/1.0.0
| 2021-01-17T12:19:37.476748
| 2015-07-01T08:36:07
| 2015-07-01T08:36:07
| 8,334,294
| 15
| 26
| null | 2018-07-28T08:39:57
| 2013-02-21T12:01:03
|
Java
|
UTF-8
|
Java
| false
| false
| 1,376
|
java
|
package com.github.dandelion.datatables.repository;
import java.util.List;
import com.github.dandelion.datatables.core.ajax.DatatablesCriterias;
import com.github.dandelion.datatables.model.Person;
/**
* Repository interface for the <code>Person</code> domain object.
*
* @author Thibault Duchateau
*/
public interface PersonRepository {
/**
* @return the complete list of persons.
*/
public List<Person> findAll();
/**
* @param maxResult
* Max number of persons.
* @return a maxResult limited list of persons.
*/
public List<Person> findLimited(int maxResult);
/**
* <p>
* Query used to populate the DataTables that display the list of persons.
*
* @param criterias
* The DataTables criterias used to filter the persons.
* (maxResult, filtering, paging, ...)
* @return a filtered list of persons.
*/
public List<Person> findPersonWithDatatablesCriterias(DatatablesCriterias criterias);
/**
* <p>
* Query used to return the number of filtered persons.
*
* @param criterias
* The DataTables criterias used to filter the persons.
* (maxResult, filtering, paging, ...)
* @return the number of filtered persons.
*/
public Long getFilteredCount(DatatablesCriterias criterias);
/**
* @return the total count of persons.
*/
public Long getTotalCount();
}
|
[
"thibault.duchateau@gmail.com"
] |
thibault.duchateau@gmail.com
|
af9657cea3776f4935710122ae07e821bd664e0d
|
6a222d73ac0b35d1583cb55da29d0089e1d4fe23
|
/app/src/main/java/com/love_cookies/any_image/presenter/ImagePresenter.java
|
964b29f2f9831b182617c21c97edcacb64ef8604
|
[] |
no_license
|
SagarDep/Any-Image
|
82d04d3880aa99e1a7449aa3bc1eede66647eaf6
|
4b4471e740b323a5ed588ab818b6c65a7dae50bb
|
refs/heads/master
| 2020-03-22T05:14:44.224726
| 2017-02-09T06:57:15
| 2017-02-09T06:57:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,003
|
java
|
package com.love_cookies.any_image.presenter;
import com.love_cookies.any_image.model.bean.ImageBean;
import com.love_cookies.any_image.model.biz.ImageBiz;
import com.love_cookies.any_image.view.interfaces.IImageView;
import com.love_cookies.cookie_library.interfaces.CallBack;
/**
* Created by xiekun on 2016/8/29.
*
* 图片Presenter
*/
public class ImagePresenter {
private ImageBiz imageBiz;
private IImageView iImageView;
public ImagePresenter(IImageView iImageView) {
imageBiz = new ImageBiz();
this.iImageView = iImageView;
}
/**
* 获取图片列表
*/
public void getImageList() {
imageBiz.getImageList(new CallBack() {
@Override
public void onSuccess(Object result) {
iImageView.getImageListSuccess((ImageBean)result);
}
@Override
public void onFailed(Object msg) {
iImageView.getImageListFailed();
}
});
}
}
|
[
"tsubasa-kun@foxmail.com"
] |
tsubasa-kun@foxmail.com
|
473009fcb785399d5a7fa30aba874e1fbb120751
|
3cd75211c29d1a4f7e35d23beb68349f903c7067
|
/java/o2o-system-service/src/main/java/com/yilidi/o2o/system/jms/receiver/PushMessageReceiver.java
|
a2b6a02970352a57668db4b5105a80fbecaa3c07
|
[] |
no_license
|
aszkj/MyProject
|
24f6e5f8febbebf2260fd6f1572921ecec03f643
|
26d4ea640a7ed8d13c900749988ce2ee0ef9cefb
|
refs/heads/master
| 2021-01-20T12:28:00.083434
| 2017-05-06T21:38:07
| 2017-05-06T21:38:07
| 90,360,785
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 781
|
java
|
package com.yilidi.o2o.system.jms.receiver;
import org.springframework.beans.factory.annotation.Autowired;
import com.yilidi.o2o.core.exception.MessageException;
import com.yilidi.o2o.core.model.JmsMessageModel;
import com.yilidi.o2o.core.model.PushMessageModel;
import com.yilidi.o2o.system.message.IPushService;
/**
* 推送消息接收者
*
* @author: chenlian
* @date: 2016年8月8日 下午4:21:53
*/
public class PushMessageReceiver extends AbstractReceiver {
@Autowired
private IPushService pushService;
@Override
public void doReceive(JmsMessageModel jmsMessageModel) throws MessageException {
PushMessageModel push = (PushMessageModel) jmsMessageModel;
pushService.sendPushOrderMessage(push);
}
}
|
[
"mm@mmdeMac-mini.local"
] |
mm@mmdeMac-mini.local
|
1b1dffec45f7a23d0525c04f2ab29dfe42353caf
|
41fe59ea9a363730543d8d9d1b475546e2fd4e08
|
/src/main/java/com/wewebu/ow/server/plug/owbpm/plug/OwBPMProcessorDialog.java
|
481a03456b7b2fd3c85f506f0a2886bb6bbb3f3a
|
[] |
no_license
|
flashboss/workdesk
|
49a8c99e864edf121a31f2b043803ef0e36af633
|
fcf280c918c7d895d55be166e32c7c214045d367
|
refs/heads/master
| 2016-08-11T05:37:44.452860
| 2015-05-22T14:56:27
| 2015-05-22T14:56:27
| 36,077,649
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 755
|
java
|
package com.wewebu.ow.server.plug.owbpm.plug;
import java.util.List;
/**
*<p>
* Interface for processing items dialogs.
*</p>
*
*<p><font size="-2">
* Alfresco Workdesk<br/>
* Copyright (c) Alfresco Software, Inc.<br/>
* All rights reserved.<br/>
* <br/>
* For licensing information read the license.txt file or<br/>
* go to: http://wiki.alfresco.com<br/>
*</font></p>
*@since 3.1.0.0
*/
public interface OwBPMProcessorDialog
{
/**
* Get the list of workitems to be processed.
* @return - the {@link List} object containing the workitems.
*/
List getWorkItems();
/**
* Unlock the processed workitems.
* @throws Exception
*/
void unlock() throws Exception;
}
|
[
"luca.stancapiano@pronetics.it"
] |
luca.stancapiano@pronetics.it
|
9ac44b0235711f1b4b0fea9869871be5113f1428
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_9450ec72dd8620277959fb91375c2c663e7405b1/PerfMonSampleResult/2_9450ec72dd8620277959fb91375c2c663e7405b1_PerfMonSampleResult_t.java
|
25efe4072a9eceaab343a8454a1b4e8d6f66c6a7
|
[] |
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
| 671
|
java
|
package kg.apc.jmeter.perfmon;
import org.apache.jmeter.samplers.SampleResult;
/**
*
* @author APC
*/
public class PerfMonSampleResult
extends SampleResult {
private final long ts;
public PerfMonSampleResult() {
ts = System.currentTimeMillis();
//setTimeStamp(ts);
//setStartTime(ts);
}
// storing as latency, multiply by 1000 to keep floating precision
public void setValue(double value) {
setStampAndTime(ts, (long) (value * 1000));
//setEndTime(ts + (int) (value * 1000));
}
public double getValue() {
return ((double) getTime()) / 1000d;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
ffaca3ed8d50841a836cfba414430608c599a5f7
|
0cfc2851489da4fa21143130e7420307e815d231
|
/clj-cashiercore-service/src/main/java/com/apricot/clj/cashiercore/service/config/SysConfig.java
|
5329bf1f06129b1e9666351539f1b49be93084a9
|
[] |
no_license
|
clj-cashier/clj-cashiercore
|
6c9d86df7b02c8940e5822bd9819b27a29ecf307
|
e6b5f7531cc673d62c40e638d49f7517c42f5e39
|
refs/heads/master
| 2022-12-21T09:10:11.951337
| 2020-01-16T04:15:35
| 2020-01-16T04:15:35
| 233,559,850
| 0
| 0
| null | 2022-12-16T04:38:55
| 2020-01-13T09:35:28
|
FreeMarker
|
UTF-8
|
Java
| false
| false
| 1,177
|
java
|
/**
* fshows.com
* Copyright (C) 2013-2018 All Rights Reserved.
*/
package com.apricot.clj.cashiercore.service.config;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
/**
* @author auto
* @version SysConfig.java, v 0.1 2018-07-20 16:27
*/
@Getter
@Configuration
public class SysConfig {
/********************* 数据源 ******************/
@Value("${jdbc.pool.validationQuery}")
private String jdbcPoolValidationQuery;
@Value("${jdbc.url}")
private String jdbcUrl;
@Value("${jdbc.username}")
private String jdbcUsername;
@Value("${jdbc.password}")
private String jdbcPassword;
/*********************系统当前运行环境********************/
@Value("${application.env}")
private String applicationEnv;
/*********************redis 配置*******************/
@Value("${redis.host}")
private String redisHost;
@Value("${redis.port}")
private int redisPort;
@Value("${redis.password}")
private String redisPassword;
@Value("${redis.connect.timeout}")
private Integer redisConnectTimeout;
}
|
[
"12345678"
] |
12345678
|
32f7211c0e2965911bd31957991e3e5b2b513d99
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/12/12_20cef027e5f8e67286737d77aca64b02d60e4fdb/SquareEnvironment/12_20cef027e5f8e67286737d77aca64b02d60e4fdb_SquareEnvironment_s.java
|
7114261d47cb306ce16285144719e9b395f82f05
|
[] |
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
| 6,537
|
java
|
package chalmers.dax021308.ecosystem.model.environment;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import chalmers.dax021308.ecosystem.model.environment.EcoWorld.OnFinishListener;
import chalmers.dax021308.ecosystem.model.population.IPopulation;
import chalmers.dax021308.ecosystem.model.util.Log;
import chalmers.dax021308.ecosystem.model.util.Position;
/**
* SquareEnvironment Class. Represents a environment in the shape of a square.
* <p>
* Contains workers that execute the updates of the Population in parallel.
* <p>
* The workers is represented as a seperate thread in a {@link ExecutorService}.
*
* @author Henrik, for concurrency: Erik Ramqvist
*
*/
public class SquareEnvironment implements IEnvironment {
// Should maybe use an abstract class Environment where suitable instance
// variables can be declared
private List<IPopulation> populations;
private List<IObstacle> obstacles;
private OnFinishListener mListener;
/* Concurrent variables */
private ExecutorService workPool;
private List<Future<Runnable>> futures;
private PopulationWorker popWorkers[];
private FinilizeIteration finWorkers[];
private PopulationWorker extraPopWorker;
private IPopulation lastSlowestPop;
private long longestExecuteTime;
/**
*
* @param populations
* The populations to be used in the environment
* @param obstacles
* The obstacles to be used in the environment
* @param listener
* The listener to this instance
* @param height
* The height of the environment
* @param width
* The width of the environment
*/
public SquareEnvironment(List<IPopulation> populations,
List<IObstacle> obstacles, OnFinishListener listener, int height,
int width) {
this.populations = populations;
this.obstacles = obstacles;
this.mListener = listener;
//Create one Worker for each population.
this.workPool = Executors.newFixedThreadPool(populations.size() + 1);
//Create the list of executing tasks, for barrier synchronization.
this.futures = new ArrayList<Future<Runnable>>();
//Create the worker objects. (Reusable for memory and performance.)
this.popWorkers = new PopulationWorker[populations.size()];
this.extraPopWorker = new PopulationWorker();
for(int i = 0; i < popWorkers.length ; i++) {
popWorkers[i] = new PopulationWorker();
}
this.finWorkers = new FinilizeIteration[populations.size()];
for(int i = 0; i < finWorkers.length ; i++) {
finWorkers[i] = new FinilizeIteration();
}
}
@Override
/**
* Run method, called for each tick of the timer
* Updates each population and then informs EcoWorld once it's finished
*/
public void run() {
//Assign objects to workers.
longestExecuteTime = 0;
for(int i = 0 ; i < populations.size(); i ++) {
popWorkers[i].p = populations.get(i);
//If this is the slowest population.
if(popWorkers[i].p == lastSlowestPop) {
popWorkers[i].dividePopulation = true;
extraPopWorker.dividePopulation = true;
extraPopWorker.p = lastSlowestPop;
extraPopWorker.executeFirstHalf = false;
popWorkers[i].executeFirstHalf = true;
Future f = workPool.submit(extraPopWorker);
futures.add(f);
}
Future f = workPool.submit(popWorkers[i]);
futures.add(f);
}
//Barrier synchronization here. Thread will wait for workers to finish execution.
for (Future<Runnable> fut : futures)
{
try {
fut.get();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}
futures.clear();
//Assign objects to workers.
for(int i = 0 ; i < populations.size(); i ++) {
finWorkers[i].p = populations.get(i);
Future f = workPool.submit(finWorkers[i]);
futures.add(f);
}
//Log.v("Slowest population: " + lastSlowestPop + " Time in ms: " + (long) (0.000001*longestExecuteTime));
//Barrier synchronization here. Thread will wait for workers to finish execution.
for (Future<Runnable> fut : futures)
{
try {
fut.get();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}
// Callback function called to inform EcoWorld that the current update
// is run
mListener.onFinish(populations, obstacles);
}
private class PopulationWorker implements Runnable {
private IPopulation p;
private boolean dividePopulation;
private boolean executeFirstHalf;
@Override
public void run() {
//Calculate one iteration. But only calculate it!
long start = System.nanoTime();
if(!dividePopulation) {
p.update();
} else {
if(executeFirstHalf) {
//Execute first half.
p.updateFirstHalf();
} else {
//Execute second half.
p.updateSecondHalf();
}
}
long elapsedTime = System.nanoTime() - start;
//Quick fix for double pop size.
if(dividePopulation) {
elapsedTime = elapsedTime * 2;
}
if(elapsedTime > longestExecuteTime) {
longestExecuteTime = elapsedTime;
lastSlowestPop = p;
}
}
}
private class FinilizeIteration implements Runnable {
private IPopulation p;
@Override
public void run() {
//Remove agents that has been marked as remove.
p.removeAgentsFromRemoveList();
//Update all the positions, i.e. position = nextPosition.
p.updatePositions();
}
}
@Override
public boolean isFree(Position p) {
// for each population, check if any agent is currently occupying
// position p
/*
* Needs some kind of lookup method in IPopulation to function easily.
* Or some kind of getPosition for each agent or something similar for
* (int i = 0; i < populations.size(); i++) if
* (populations.get(i).occupies(p)) return false;
*/
// for each obstacle, check if the position p lies inside any obstacle
for (int i = 0; i < obstacles.size(); i++)
if (obstacles.get(i).insideObstacle(p))
return false;
// If there is neither a population nor an obstacle at position p, then
// it is free
return true;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1833d90eab4517348007810f88e8e3cafdcd95fa
|
dfcc3b5e678820356b739098e38a982134aaa2d3
|
/dmn-signavio/src/test/resources/dmn2java/exported/complex/expected/dmn/nulls-with-zip-function/Zip.java
|
37b23722cee1940159f3aaa6baa31537dbb1c6b9
|
[
"Apache-2.0"
] |
permissive
|
freight-trust/jdmn
|
dd071a83ad9e6c86166391cf1be8cd6d8f92b7db
|
95f6309b1e21450cbfd11a2a936f384b7a5b3fd8
|
refs/heads/master
| 2022-11-15T18:13:27.355429
| 2020-07-10T16:35:29
| 2020-07-10T16:35:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,529
|
java
|
import java.util.*;
import java.util.stream.Collectors;
@javax.annotation.Generated(value = {"signavio-decision.ftl", "zip"})
@com.gs.dmn.runtime.annotation.DRGElement(
namespace = "",
name = "zip",
label = "zip",
elementKind = com.gs.dmn.runtime.annotation.DRGElementKind.DECISION,
expressionKind = com.gs.dmn.runtime.annotation.ExpressionKind.LITERAL_EXPRESSION,
hitPolicy = com.gs.dmn.runtime.annotation.HitPolicy.UNKNOWN,
rulesCount = -1
)
public class Zip extends com.gs.dmn.signavio.runtime.DefaultSignavioBaseDecision {
public static final com.gs.dmn.runtime.listener.DRGElement DRG_ELEMENT_METADATA = new com.gs.dmn.runtime.listener.DRGElement(
"",
"zip",
"zip",
com.gs.dmn.runtime.annotation.DRGElementKind.DECISION,
com.gs.dmn.runtime.annotation.ExpressionKind.LITERAL_EXPRESSION,
com.gs.dmn.runtime.annotation.HitPolicy.UNKNOWN,
-1
);
public Zip() {
}
public List<type.Zip> apply(String inputA, String inputB, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_) {
try {
return apply((inputA != null ? com.gs.dmn.serialization.JsonSerializer.OBJECT_MAPPER.readValue(inputA, new com.fasterxml.jackson.core.type.TypeReference<List<String>>() {}) : null), (inputB != null ? com.gs.dmn.serialization.JsonSerializer.OBJECT_MAPPER.readValue(inputB, new com.fasterxml.jackson.core.type.TypeReference<List<java.math.BigDecimal>>() {}) : null), annotationSet_, new com.gs.dmn.runtime.listener.LoggingEventListener(LOGGER), new com.gs.dmn.runtime.external.DefaultExternalFunctionExecutor());
} catch (Exception e) {
logError("Cannot apply decision 'Zip'", e);
return null;
}
}
public List<type.Zip> apply(String inputA, String inputB, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) {
try {
return apply((inputA != null ? com.gs.dmn.serialization.JsonSerializer.OBJECT_MAPPER.readValue(inputA, new com.fasterxml.jackson.core.type.TypeReference<List<String>>() {}) : null), (inputB != null ? com.gs.dmn.serialization.JsonSerializer.OBJECT_MAPPER.readValue(inputB, new com.fasterxml.jackson.core.type.TypeReference<List<java.math.BigDecimal>>() {}) : null), annotationSet_, eventListener_, externalExecutor_);
} catch (Exception e) {
logError("Cannot apply decision 'Zip'", e);
return null;
}
}
public List<type.Zip> apply(List<String> inputA, List<java.math.BigDecimal> inputB, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_) {
return apply(inputA, inputB, annotationSet_, new com.gs.dmn.runtime.listener.LoggingEventListener(LOGGER), new com.gs.dmn.runtime.external.DefaultExternalFunctionExecutor());
}
public List<type.Zip> apply(List<String> inputA, List<java.math.BigDecimal> inputB, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) {
try {
// Start decision 'zip'
long zipStartTime_ = System.currentTimeMillis();
com.gs.dmn.runtime.listener.Arguments zipArguments_ = new com.gs.dmn.runtime.listener.Arguments();
zipArguments_.put("inputA", inputA);
zipArguments_.put("inputB", inputB);
eventListener_.startDRGElement(DRG_ELEMENT_METADATA, zipArguments_);
// Evaluate decision 'zip'
List<type.Zip> output_ = evaluate(inputA, inputB, annotationSet_, eventListener_, externalExecutor_);
// End decision 'zip'
eventListener_.endDRGElement(DRG_ELEMENT_METADATA, zipArguments_, output_, (System.currentTimeMillis() - zipStartTime_));
return output_;
} catch (Exception e) {
logError("Exception caught in 'zip' evaluation", e);
return null;
}
}
protected List<type.Zip> evaluate(List<String> inputA, List<java.math.BigDecimal> inputB, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) {
return zip(asList("inputA", "inputB"), asList(inputA, inputB)).stream().map(x -> type.Zip.toZip(x)).collect(Collectors.toList());
}
}
|
[
"opatrascoiu@yahoo.com"
] |
opatrascoiu@yahoo.com
|
fd9c9c2895d3d99d327273e062a0639e0b9e0f57
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/14/14_b8bac61a8e4c9b9fdb032bda5be16276e0048fb7/MongoUserDao/14_b8bac61a8e4c9b9fdb032bda5be16276e0048fb7_MongoUserDao_s.java
|
bfd83698d3bc36b550523937fe6d879bfb8ca8a4
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,399
|
java
|
package edu.wm.werewolf.dao;
import java.util.ArrayList;
import java.util.List;
import edu.wm.werewolf.domain.Player;
import edu.wm.werewolf.domain.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
//@Document(collection = "users")
public class MongoUserDao implements IUserDAO{
private static final Logger logger = LoggerFactory.getLogger(MongoUserDao.class);
@Autowired DB db;
@Override
public void createUser(User user)
{
DBCollection table = db.getCollection("users");
table.drop();
// DBCollection table = db.getCollection("user");
// BasicDBObject documentDetail = new BasicDBObject();
// documentDetail.put("firstName", user.getFirstName());
// documentDetail.put("lastName", user.getLastName());
// documentDetail.put("password", user.getHashedPassword());
// documentDetail.put("id", user.getId());
// documentDetail.put("score", user.getScore());
// documentDetail.put("image", user.getImageURL());
// documentDetail.put("username", user.getUsername());
// documentDetail.put("isAdmin", user.isAdmin());
// table.insert(documentDetail);
}
@Override
public User getUserbyID (String id) {
DBCollection table = db.getCollection("user");
BasicDBObject query = new BasicDBObject("id", id);
DBCursor cursor = table.find(query);
User user = null;
while (cursor.hasNext())
{
DBObject userObject = cursor.next();
user = new User((String)userObject.get("id"), (String)userObject.get("firstName"),
(String)userObject.get("lastName"), (String)userObject.get("username"), (String)userObject.get("password"),
(String)userObject.get("image"), (boolean)userObject.get("isAdmin"));
}
return user;
}
@Override
public User getUserByName (String name) {
DBCollection table = db.getCollection("user");
BasicDBObject query = new BasicDBObject("firstName", name);
DBCursor cursor = table.find(query);
User user = null;
while (cursor.hasNext())
{
DBObject userObject = cursor.next();
user = new User((String)userObject.get("id"), (String)userObject.get("firstName"),
(String)userObject.get("lastName"), (String)userObject.get("username"), (String)userObject.get("password"),
(String)userObject.get("image"), (boolean)userObject.get("isAdmin"));
}
return user;
}
@Override
public List<User> getAllUsers() {
DBCollection table = db.getCollection("user");
DBCursor cursor = table.find();
List <User> users = new ArrayList<>();
while (cursor.hasNext())
{
DBObject userObject = cursor.next();
User user = new User((String)userObject.get("id"), (String)userObject.get("firstName"),
(String)userObject.get("lastName"), (String)userObject.get("username"), (String)userObject.get("password"),
(String)userObject.get("image"), (boolean)userObject.get("isAdmin"));
users.add(user);
}
return users;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
f694aef31250ded0cea939f0a9b98af5786412df
|
f196412634041f3cce0e224f1a2d797dd2bfd6ff
|
/SubServers.Sync/velocity/src/net/ME1312/SubServers/Velocity/Event/SubAddProxyEvent.java
|
5447df248e1f38b429f8308f385df8a5b1c56594
|
[
"Apache-2.0"
] |
permissive
|
ME1312/SubServers-2
|
ed340375f7aa787d7193a817f361972e46cebc8d
|
ad24b0deb39841db0acf8599f02d47ece51909c6
|
refs/heads/master
| 2023-08-18T18:45:27.482396
| 2023-08-12T04:07:05
| 2023-08-12T04:07:05
| 75,571,521
| 106
| 35
|
Apache-2.0
| 2023-04-24T17:38:56
| 2016-12-04T23:29:37
|
Java
|
UTF-8
|
Java
| false
| false
| 582
|
java
|
package net.ME1312.SubServers.Velocity.Event;
import net.ME1312.Galaxi.Library.Util;
import net.ME1312.SubServers.Velocity.Library.SubEvent;
/**
* Proxy Add Event
*/
public class SubAddProxyEvent implements SubEvent {
private String proxy;
/**
* Proxy Add Event
*
* @param proxy Host Being Added
*/
public SubAddProxyEvent(String proxy) {
Util.nullpo(proxy);
this.proxy = proxy;
}
/**
* Gets the Proxy to be Added
*
* @return The Proxy to be Added
*/
public String getProxy() { return proxy; }
}
|
[
"admin@me1312.net"
] |
admin@me1312.net
|
0239873341979a6315286e3e682f7b27e337741e
|
a744882fb7cf18944bd6719408e5a9f2f0d6c0dd
|
/sourcecode7/src/sun/awt/geom/PathConsumer2D.java
|
c4c01792de24bb96af822fcd326233893a4701c5
|
[
"Apache-2.0"
] |
permissive
|
hanekawasann/learn
|
a39b8d17fd50fa8438baaa5b41fdbe8bd299ab33
|
eef678f1b8e14b7aab966e79a8b5a777cfc7ab14
|
refs/heads/master
| 2022-09-13T02:18:07.127489
| 2020-04-26T07:58:35
| 2020-04-26T07:58:35
| 176,686,231
| 0
| 0
|
Apache-2.0
| 2022-09-01T23:21:38
| 2019-03-20T08:16:05
|
Java
|
UTF-8
|
Java
| false
| false
| 2,777
|
java
|
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.awt.geom;
public interface PathConsumer2D {
/**
* @see java.awt.geom.Path2D.Float.moveTo
*/
public void moveTo(float x, float y);
/**
* @see java.awt.geom.Path2D.Float.lineTo
*/
public void lineTo(float x, float y);
/**
* @see java.awt.geom.Path2D.Float.quadTo
*/
public void quadTo(float x1, float y1, float x2, float y2);
/**
* @see java.awt.geom.Path2D.Float.curveTo
*/
public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3);
/**
* @see java.awt.geom.Path2D.Float.closePath
*/
public void closePath();
/**
* Called after the last segment of the last subpath when the
* iteration of the path segments is completely done. This
* method serves to trigger the end of path processing in the
* consumer that would normally be triggered when a
* {@link java.awt.geom.PathIterator PathIterator}
* returns {@code true} from its {@code done} method.
*/
public void pathDone();
/**
* If a given PathConsumer performs all or most of its work
* natively then it can return a (non-zero) pointer to a
* native function vector that defines C functions for all
* of the above methods.
* The specific pointer it returns is a pointer to a
* PathConsumerVec structure as defined in the include file
* src/share/native/sun/java2d/pipe/PathConsumer2D.h
*
* @return a native pointer to a PathConsumerVec structure.
*/
public long getNativeConsumer();
}
|
[
"763803382@qq.com"
] |
763803382@qq.com
|
22fe0fdde4748bc3335c7db71c50cf0c5fadf83a
|
b3aff5a160b472062443cec69de5005e8d2054ae
|
/src/main/java/com/eshipper/service/dto/ShippingClaimDTO.java
|
c48558bd0bb9e8e9b398981cf8b76f87c9fc3788
|
[] |
no_license
|
vidhaat/eshipper
|
7d4231c29bf55b99b444ae718ce0fcc21d1e9156
|
127ecaad034e0a0469d39914fc10fcee2bb3351f
|
refs/heads/master
| 2022-12-23T15:49:56.746411
| 2020-01-14T07:01:39
| 2020-01-14T07:01:39
| 232,521,304
| 0
| 0
| null | 2022-12-16T04:43:18
| 2020-01-08T08:58:59
|
Java
|
UTF-8
|
Java
| false
| false
| 6,236
|
java
|
package com.eshipper.service.dto;
import java.time.ZonedDateTime;
import java.io.Serializable;
import java.util.Objects;
/**
* A DTO for the {@link com.eshipper.domain.ShippingClaim} entity.
*/
public class ShippingClaimDTO implements Serializable {
private Long id;
private ZonedDateTime receivedDate;
private ZonedDateTime mailedDate;
private ZonedDateTime createdDate;
private ZonedDateTime updatedDate;
private String trackingNumber;
private String subject;
private String description;
private Boolean notifyCustomer;
private Boolean missingDocuments;
private Long claimCarrierRefundId;
private Long claimEshipperRefundId;
private Long shippingOrderId;
private Long ticketReasonId;
private Long claimStatusId;
private Long claimSolutionId;
private Long claimAssigneeId;
private Long claimCommentId;
private Long contactPreferenceId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ZonedDateTime getReceivedDate() {
return receivedDate;
}
public void setReceivedDate(ZonedDateTime receivedDate) {
this.receivedDate = receivedDate;
}
public ZonedDateTime getMailedDate() {
return mailedDate;
}
public void setMailedDate(ZonedDateTime mailedDate) {
this.mailedDate = mailedDate;
}
public ZonedDateTime getCreatedDate() {
return createdDate;
}
public void setCreatedDate(ZonedDateTime createdDate) {
this.createdDate = createdDate;
}
public ZonedDateTime getUpdatedDate() {
return updatedDate;
}
public void setUpdatedDate(ZonedDateTime updatedDate) {
this.updatedDate = updatedDate;
}
public String getTrackingNumber() {
return trackingNumber;
}
public void setTrackingNumber(String trackingNumber) {
this.trackingNumber = trackingNumber;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Boolean isNotifyCustomer() {
return notifyCustomer;
}
public void setNotifyCustomer(Boolean notifyCustomer) {
this.notifyCustomer = notifyCustomer;
}
public Boolean isMissingDocuments() {
return missingDocuments;
}
public void setMissingDocuments(Boolean missingDocuments) {
this.missingDocuments = missingDocuments;
}
public Long getClaimCarrierRefundId() {
return claimCarrierRefundId;
}
public void setClaimCarrierRefundId(Long claimCarrierRefundId) {
this.claimCarrierRefundId = claimCarrierRefundId;
}
public Long getClaimEshipperRefundId() {
return claimEshipperRefundId;
}
public void setClaimEshipperRefundId(Long claimEshipperRefundId) {
this.claimEshipperRefundId = claimEshipperRefundId;
}
public Long getShippingOrderId() {
return shippingOrderId;
}
public void setShippingOrderId(Long shippingOrderId) {
this.shippingOrderId = shippingOrderId;
}
public Long getTicketReasonId() {
return ticketReasonId;
}
public void setTicketReasonId(Long ticketReasonId) {
this.ticketReasonId = ticketReasonId;
}
public Long getClaimStatusId() {
return claimStatusId;
}
public void setClaimStatusId(Long claimStatusId) {
this.claimStatusId = claimStatusId;
}
public Long getClaimSolutionId() {
return claimSolutionId;
}
public void setClaimSolutionId(Long claimSolutionId) {
this.claimSolutionId = claimSolutionId;
}
public Long getClaimAssigneeId() {
return claimAssigneeId;
}
public void setClaimAssigneeId(Long claimAssigneeId) {
this.claimAssigneeId = claimAssigneeId;
}
public Long getClaimCommentId() {
return claimCommentId;
}
public void setClaimCommentId(Long claimCommentId) {
this.claimCommentId = claimCommentId;
}
public Long getContactPreferenceId() {
return contactPreferenceId;
}
public void setContactPreferenceId(Long contactPreferenceId) {
this.contactPreferenceId = contactPreferenceId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ShippingClaimDTO shippingClaimDTO = (ShippingClaimDTO) o;
if (shippingClaimDTO.getId() == null || getId() == null) {
return false;
}
return Objects.equals(getId(), shippingClaimDTO.getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
@Override
public String toString() {
return "ShippingClaimDTO{" +
"id=" + getId() +
", receivedDate='" + getReceivedDate() + "'" +
", mailedDate='" + getMailedDate() + "'" +
", createdDate='" + getCreatedDate() + "'" +
", updatedDate='" + getUpdatedDate() + "'" +
", trackingNumber='" + getTrackingNumber() + "'" +
", subject='" + getSubject() + "'" +
", description='" + getDescription() + "'" +
", notifyCustomer='" + isNotifyCustomer() + "'" +
", missingDocuments='" + isMissingDocuments() + "'" +
", claimCarrierRefundId=" + getClaimCarrierRefundId() +
", claimEshipperRefundId=" + getClaimEshipperRefundId() +
", shippingOrderId=" + getShippingOrderId() +
", ticketReasonId=" + getTicketReasonId() +
", claimStatusId=" + getClaimStatusId() +
", claimSolutionId=" + getClaimSolutionId() +
", claimAssigneeId=" + getClaimAssigneeId() +
", claimCommentId=" + getClaimCommentId() +
", contactPreferenceId=" + getContactPreferenceId() +
"}";
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
53ffc9ba9b7ddab35c233aa63d1651808105c306
|
6ebe48d7fca9467ef02df22cb3a3ddb681f02be5
|
/Open Source Java Projects- Experimental Subjects/18_jsecurity/src/main/java/org/jsecurity/realm/RealmFactory.java
|
8e01afa786fc8145928c3d3f2a0c9492ff09719b
|
[
"Apache-2.0"
] |
permissive
|
mubparekh/MS-Computer-Science-Masters-Project
|
889d3798357a51e8bb72501b74026365e5d8e34f
|
d3d5cd77270e2a3ed4af829430940da18a8d5595
|
refs/heads/master
| 2021-01-22T21:12:38.934221
| 2017-03-20T13:13:28
| 2017-03-20T13:13:28
| 85,402,502
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,376
|
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.jsecurity.realm;
import java.util.Collection;
/**
* Enables JSecurity end-users to configure and initialize one or more {@link Realm Realm} instances
* in any manner desired.
* <p/>
* This interface exists to support environments where end-users may not wish to use JSecurity's default
* text-based configuration to create and configure realms, and instead wish to retrieve a realm configured in a
* proprietary manner. An implementation of this interface can access that proprietary mechanism to retrieve the
* already-created <tt>Realm</tt>s.
*
* <p>The <code>Realm</code> instances returned will used to construct the application's
* {@link org.jsecurity.mgt.SecurityManager SecurityManager} instance.
*
* @since 0.9
*/
public interface RealmFactory {
/**
* Returns a collection of {@link Realm Realm} instances that will be used to construct
* the application's SecurityManager instance.
*
* <p>The order of the collection is important. The {@link org.jsecurity.mgt.SecurityManager SecurityManager}
* implementation will consult the Realms during authentication (log-in) and authorization (access control)
* operations in the collection's <b>iteration order</b>. That is, the resulting collection's
* {@link java.util.Iterator Iterator} determines the order in which Realms are used.
*
* @return the <code>Collection</code> of Realms that the application's <code>SecurityManager</code> will use
* for security data access.
*/
Collection<Realm> getRealms();
}
|
[
"mparekh@uccs.edu"
] |
mparekh@uccs.edu
|
8a8bf21d0bc230fad1d8b5c00481b85639445a54
|
6d8f6588620811c2daf01428f1bb4b12d56aa864
|
/src/main/java/trainings/testng/simple1/sample10/SeleniumSuiteFixture.java
|
239aebaf68a7953473e03b76a83eab3252466e18
|
[] |
no_license
|
presly808/ACQ1
|
b1f68da4f1c3dd70c8a7346e8bd0fd81a6c033a0
|
b6dc90202b1c90a3954225f5c2a7f94b3fb14e57
|
refs/heads/master
| 2021-01-10T04:42:39.280092
| 2015-11-03T19:14:28
| 2015-11-03T19:14:28
| 43,596,837
| 1
| 4
| null | 2015-10-28T09:15:53
| 2015-10-03T11:26:13
|
Java
|
UTF-8
|
Java
| false
| false
| 608
|
java
|
package trainings.testng.simple1.sample10;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;
@Test
public class SeleniumSuiteFixture {
static protected WebDriver driver;
@BeforeSuite
public void setUp() {
System.out.println("Starting a browser");
driver = new FirefoxDriver();
}
@AfterSuite
public void tearDown() {
System.out.println("Stopping the browser");
if (driver != null) {
driver.quit();
}
}
}
|
[
"presly808@gmail.com"
] |
presly808@gmail.com
|
f1bb50db8bfe146f584e5a1eab2a21c191356d4e
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/neo4j--neo4j/ccb84a83b4871da0ca41be3179dd117a8196fab2/before/FailedIndexProxy.java
|
7b19f0f493984a33757c20e746a54f9a713eea2c
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,271
|
java
|
/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 org.neo4j.kernel.impl.api.index;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.Future;
import org.neo4j.graphdb.ResourceIterator;
import org.neo4j.kernel.api.exceptions.index.IndexPopulationFailedKernelException;
import org.neo4j.kernel.api.index.IndexDescriptor;
import org.neo4j.kernel.api.index.IndexPopulator;
import org.neo4j.kernel.api.index.InternalIndexState;
import org.neo4j.kernel.api.index.SchemaIndexProvider;
import static org.neo4j.helpers.FutureAdapter.VOID;
import static org.neo4j.helpers.collection.IteratorUtil.emptyIterator;
public class FailedIndexProxy extends AbstractSwallowingIndexProxy
{
protected final IndexPopulator populator;
private final String indexUserDescription;
private final CountingIndexUpdater.IndexUpdateCountVisitor replacingIndexCountVisitor;
public FailedIndexProxy(IndexDescriptor descriptor,
SchemaIndexProvider.Descriptor providerDescriptor,
String indexUserDescription,
IndexPopulator populator,
IndexPopulationFailure populationFailure,
CountingIndexUpdater.IndexUpdateCountVisitor replacingIndexCountVisitor)
{
super( descriptor, providerDescriptor, populationFailure );
this.populator = populator;
this.indexUserDescription = indexUserDescription;
this.replacingIndexCountVisitor = replacingIndexCountVisitor;
}
@Override
public Future<Void> drop() throws IOException
{
replacingIndexCountVisitor.visitIndexUpdateCount( 0l );
populator.drop();
return VOID;
}
@Override
public InternalIndexState getState()
{
return InternalIndexState.FAILED;
}
@Override
public boolean awaitStoreScanCompleted() throws IndexPopulationFailedKernelException
{
throw getPopulationFailure().asIndexPopulationFailure( getDescriptor(), indexUserDescription );
}
@Override
public void activate()
{
throw new UnsupportedOperationException( "Cannot activate a failed index." );
}
@Override
public void validate() throws IndexPopulationFailedKernelException
{
throw getPopulationFailure().asIndexPopulationFailure( getDescriptor(), indexUserDescription );
}
@Override
public ResourceIterator<File> snapshotFiles()
{
return emptyIterator();
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
4ab4c372ba96397e5ddb277cb1d2ed6003cd8d39
|
c8e9e1cd89a7599a8a559c7d75d792602769c995
|
/DefiningClasses/src/bank/account/BankAccount.java
|
8870074937c8cbeaecf28f3f3b85b2c86507f23f
|
[] |
no_license
|
CrazyMachine2/JavaAdvanced
|
caa27be7117246c715159143f43f11f8ab3b0912
|
2b6aedfb1d6eacef276e9f8ee571beaf6b080a90
|
refs/heads/master
| 2020-08-28T04:39:57.538703
| 2019-10-25T18:37:41
| 2019-10-25T18:37:41
| 217,593,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 930
|
java
|
package bank.account;
public class BankAccount {
private static final double DEFAULT_INTEREST_RATE = 0.02;
private static int accountID = 0;
private static double interestRate = DEFAULT_INTEREST_RATE;
private int id;
private double balance;
public BankAccount() {
this.id = ++accountID;
this.balance = 0.0;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public double getBalance() {
return balance;
}
public void setBalance(double balance) {
this.balance = balance;
}
public static void setInterestRate(double interestRate){
BankAccount.interestRate = interestRate;
}
public double getInterest (int years){
return BankAccount.interestRate * years * this.balance;
}
public void deposit (double amount){
this.balance += amount;
}
}
|
[
"andres03@abv.bg"
] |
andres03@abv.bg
|
771c94fbc4cf777436c753d35c22c04c988403b4
|
b4b411a19f7ca6ca4ed6e5ddd00aa630daea6e2a
|
/src/main/java/com/algorithm/problems/two_sum_iv_input_is_a_bst/Solution3.java
|
462049c8ac9f29b5dcb41e3fa1c7072c1ab4b0ae
|
[] |
no_license
|
unknown-peter/algorithm-problems
|
ca9d4fdf31cb09cbaa0728a09f22e06d4363cc90
|
7185679c671caf567619242417e020a8da624e82
|
refs/heads/master
| 2022-10-24T10:55:22.860449
| 2022-10-23T04:58:40
| 2022-10-23T04:58:40
| 186,918,222
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 890
|
java
|
/**
* Leetcode - two_sum_iv_input_is_a_bst
*/
package com.algorithm.problems.two_sum_iv_input_is_a_bst;
import com.ciaoshen.leetcode.util.TreeNode;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
class Solution3 implements Solution {
@Override
public boolean findTarget(TreeNode root, int k) {
Set<Integer> set = new HashSet<>();
Queue<TreeNode> queue = new LinkedList<>();
queue.add(root);
while (!queue.isEmpty()) {
for (int i = queue.size(); i > 0; i--) {
TreeNode node = queue.poll();
if (set.contains(k - node.val)) return true;
set.add(node.val);
if (node.left != null) queue.add(node.left);
if (node.right != null) queue.add(node.right);
}
}
return false;
}
}
|
[
"unknown-peter@protonmail.com"
] |
unknown-peter@protonmail.com
|
af29b8e9bfe7ddfb5b23b4d030a4cffaacb73b01
|
095d6b787e6b0bf7fcbce7e0ede9a33723641d5e
|
/mall-product/src/main/java/com/grain/mall/product/service/impl/ProductAttrValueServiceImpl.java
|
5670bc6229f678bd4448e7641bf8c08af8678ba6
|
[
"Apache-2.0"
] |
permissive
|
liu13514/GrainMall-2.0
|
c17429156d271d1e428f6115196e98ef6f3e8475
|
49e72f29107731822e1915f73864521d090116cb
|
refs/heads/master
| 2023-04-20T00:07:47.367277
| 2021-03-27T07:26:18
| 2021-03-27T07:26:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,087
|
java
|
package com.grain.mall.product.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.grain.common.utils.PageUtils;
import com.grain.common.utils.Query;
import com.grain.mall.product.dao.ProductAttrValueDao;
import com.grain.mall.product.entity.ProductAttrValueEntity;
import com.grain.mall.product.service.ProductAttrValueService;
import org.springframework.transaction.annotation.Transactional;
@Service("productAttrValueService")
public class ProductAttrValueServiceImpl extends ServiceImpl<ProductAttrValueDao, ProductAttrValueEntity> implements ProductAttrValueService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<ProductAttrValueEntity> page = this.page(
new Query<ProductAttrValueEntity>().getPage(params),
new QueryWrapper<ProductAttrValueEntity>()
);
return new PageUtils(page);
}
@Override
public void saveProductAttr(List<ProductAttrValueEntity> collect) {
this.saveBatch(collect);
}
@Override
public List<ProductAttrValueEntity> baseAttrListforspu(Long spuId) {
List<ProductAttrValueEntity> entities = this.baseMapper.selectList(new QueryWrapper<ProductAttrValueEntity>().eq("spu_id", spuId));
return entities;
}
@Transactional
@Override
public void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> entities) {
// 1、删除这个spuId之前的所有属性
this.baseMapper.delete(new QueryWrapper<ProductAttrValueEntity>().eq("spu_id", spuId));
// 2、保存新属性
List<ProductAttrValueEntity> collect = entities.stream().map(item -> {
item.setSpuId(spuId);
return item;
}).collect(Collectors.toList());
this.saveBatch(collect);
}
}
|
[
"18475536452@163.com"
] |
18475536452@163.com
|
c1940400f1985e3946c317868cad76b79a68337d
|
85bdd78080bec5243ca0da3b6fae6453215bf85a
|
/wms-api/src/main/java/com/zlsrj/wms/api/client/service/TenantAccountClientService.java
|
d6ab3df7518682a369ef74ff34f4c4d393b65f26
|
[] |
no_license
|
myxland/wms-cloud
|
67404ea41e02c3b1507ff89120dacae639bc6b6e
|
10eb69bde00707bd79ed241c8400cbbed1bda378
|
refs/heads/master
| 2021-05-22T16:05:06.048111
| 2020-03-19T13:12:24
| 2020-03-19T13:12:24
| 252,992,797
| 0
| 3
| null | 2020-04-04T12:37:09
| 2020-04-04T12:37:08
| null |
UTF-8
|
Java
| false
| false
| 2,251
|
java
|
package com.zlsrj.wms.api.client.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zlsrj.wms.api.dto.TenantAccountQueryParam;
import com.zlsrj.wms.api.entity.TenantAccount;
import com.zlsrj.wms.api.vo.TenantAccountVo;
import com.zlsrj.wms.common.api.CommonResult;
@FeignClient(value = "WMS-TENANT", contextId = "TenantAccount")
public interface TenantAccountClientService {
@RequestMapping(value = "/tenant-accounts/{id}", method = RequestMethod.GET)
public TenantAccountVo getById(@PathVariable("id") Long id);
@RequestMapping(value = "/tenant-accounts/tenant-id/{tenant-id}", method = RequestMethod.GET)
public TenantAccountVo getByTenantId(@PathVariable("tenant-id") Long tenantId);
@RequestMapping(value = "/tenant-accounts", method = RequestMethod.GET)
public Page<TenantAccountVo> page(@RequestBody TenantAccountQueryParam tenantAccountQueryParam,
@RequestParam(value = "page", defaultValue = "1") int page, //
@RequestParam(value = "rows", defaultValue = "10") int rows, //
@RequestParam(value = "sort") String sort, // 排序列字段名
@RequestParam(value = "order") String order // 可以是 'asc' 或者 'desc',默认值是 'asc'
);
@RequestMapping(value = "/tenant-accounts", method = RequestMethod.POST)
public TenantAccountVo save(@RequestBody TenantAccount tenantAccount);
@RequestMapping(value = "/tenant-accounts/{id}", method = RequestMethod.PUT)
public TenantAccountVo updateById(@PathVariable("id") Long id, @RequestBody TenantAccount tenantAccount);
@RequestMapping(value = "/tenant-accounts/{id}", method = RequestMethod.PATCH)
public TenantAccountVo updatePatchById(@PathVariable("id") Long id, @RequestBody TenantAccount tenantAccount);
@RequestMapping(value = "/tenant-accounts/{id}", method = RequestMethod.DELETE)
public CommonResult<Object> removeById(@PathVariable("id") Long id);
}
|
[
"378297869@qq.com"
] |
378297869@qq.com
|
63c8ad492e482ada6af964743ec5681a8df08cfd
|
57d9528778441ccc4c4cbe37df8a908a9eaf15c5
|
/src/com/book/JPRGerbertShildt/example/patterns/behavioral/chain_of_responsibility/chain_of_responsibility3/FileLogger.java
|
f799e64219dd7cd37937fc95f8356f8ba4a6898d
|
[] |
no_license
|
Sergei-JD/bookExample
|
fa7b566a7551f780df2d0fbebe296a8dfa1fe106
|
33a8c573faf2b9c74b9ffdefc159478812ea447a
|
refs/heads/master
| 2023-08-07T10:19:00.428421
| 2021-10-06T19:40:33
| 2021-10-06T19:40:33
| 410,612,439
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 330
|
java
|
package com.book.JPRGerbertShildt.example.patterns.behavioral.chain_of_responsibility.chain_of_responsibility3;
public class FileLogger extends Logger{
public FileLogger(int priority) {
super(priority);
}
public void write(String message) {
System.out.println("Write to file: " + message);
}
}
|
[
"sergshlyazhko@gmail.com"
] |
sergshlyazhko@gmail.com
|
cd7fa5e4cd1325f954d2aba0778e868a053a4c70
|
329307375d5308bed2311c178b5c245233ac6ff1
|
/src/com/tencent/mm/plugin/accountsync/Plugin.java
|
90a79b4e3dca07641b790f2161a051f71889b2c3
|
[] |
no_license
|
ZoneMo/com.tencent.mm
|
6529ac4c31b14efa84c2877824fa3a1f72185c20
|
dc4f28aadc4afc27be8b099e08a7a06cee1960fe
|
refs/heads/master
| 2021-01-18T12:12:12.843406
| 2015-07-05T03:21:46
| 2015-07-05T03:21:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 654
|
java
|
package com.tencent.mm.plugin.accountsync;
import com.tencent.mm.model.au;
import com.tencent.mm.plugin.a.a;
import com.tencent.mm.plugin.accountsync.a.e;
import com.tencent.mm.pluginsdk.b.b;
import com.tencent.mm.pluginsdk.b.c;
import com.tencent.mm.pluginsdk.k;
public final class Plugin
implements c
{
public final k createApplication()
{
return new a();
}
public final au createSubCore()
{
return new e();
}
public final b getContactWidgetFactory()
{
return null;
}
}
/* Location:
* Qualified Name: com.tencent.mm.plugin.accountsync.Plugin
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
c056c4fd3285e4c8832dd3c2a1e9e53be01daf7b
|
a118b05371d269f557f3519606cb8d67fa5d0ab9
|
/src/main/java/algorithms/_1_arrays_strings/_2_CheckPermutation.java
|
00e944237d85f669d580726397990da6d4e2930f
|
[] |
no_license
|
IlyaZinkovich/algorithms
|
27bb8d0f8f6a320bccceb0a244c46bd635bffe0b
|
6e265399b2033e0d1d71864630b4398bd35e27a4
|
refs/heads/master
| 2020-05-31T02:40:26.722785
| 2019-06-10T20:23:18
| 2019-06-10T20:23:18
| 190,070,274
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,326
|
java
|
package algorithms._1_arrays_strings;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class _2_CheckPermutation {
public static boolean isPermutation(String one, String another) {
int oneLength = one.length();
int anotherLength = another.length();
if (oneLength != anotherLength) {
return false;
}
Map<Character, Integer> charsUsage = new HashMap<>();
for (int i = 0; i < oneLength; i++) {
char oneChar = one.charAt(i);
Integer oneCharUsage = charsUsage.getOrDefault(oneChar, 0);
charsUsage.put(oneChar, oneCharUsage + 1);
char anotherChar = another.charAt(i);
Integer anotherCharUsage = charsUsage.getOrDefault(anotherChar, 0);
charsUsage.put(anotherChar, anotherCharUsage - 1);
}
for (int i : charsUsage.values()) {
if (i != 0) {
return false;
}
}
return true;
}
public static boolean isPermutationSorting(String one, String another) {
int oneLength = one.length();
int anotherLength = another.length();
if (oneLength != anotherLength) {
return false;
}
char[] oneChars = one.toCharArray();
char[] anotherChars = another.toCharArray();
Arrays.sort(oneChars);
Arrays.sort(anotherChars);
return Arrays.equals(oneChars, anotherChars);
}
}
|
[
"ilya.zinkovich@gmail.com"
] |
ilya.zinkovich@gmail.com
|
566191bb8d802f0cdccd0a3b0ca441a356e47ce5
|
fc7d13183712947c10db1b295148afff0086c3a0
|
/BDD/bdd-trash/src/test/java/com/app01/ch05/StepDefinitionsCh05.java
|
54be019e3360c71591f07e3a7642f09210466226
|
[] |
no_license
|
softwareengineerhub/camel
|
ee151f3c56f387103e43a1607f82ae7ebaacd74c
|
20c2fb990fb3a0ea3d01aec1bafc09d183a70839
|
refs/heads/master
| 2022-06-21T18:59:55.277113
| 2020-03-15T20:16:15
| 2020-03-15T20:16:15
| 188,561,707
| 0
| 0
| null | 2022-06-21T02:04:27
| 2019-05-25T12:08:53
|
Java
|
UTF-8
|
Java
| false
| false
| 1,156
|
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.app01.ch05;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
/**
*
* @author DProkopiuk
*/
public class StepDefinitionsCh05 {
@Given("User is on NetBanking landing page")
public void user_is_on_NetBanking_landing_page(){
System.out.println("A) Code is in given test!!!!");
}
@When("^User login into application with username and password$")
public void user_login_into_application_with_username_and_password() throws Throwable {
System.out.println("A) user_login_into_application_with_username_and_password()");
}
@When("^Home page is populated$")
public void home_page_is_populated() throws Throwable {
System.out.println("A) home_page_is_populated()");
}
@And("^Cards are displayed$")
public void cards_are_displayed() throws Throwable {
System.out.println("A) cards_are_displayed()");
}
}
|
[
"denis.prokopiuk@yahoo.com"
] |
denis.prokopiuk@yahoo.com
|
6c97e4708091e876aefaccecaad621dce515859c
|
963212f9ece3f4e13a4f0213e7984dab1df376f5
|
/qardio_source/cfr_dec/okhttp3/internal/http/HttpHeaders.java
|
80812b3eb1283ebadfd36f40aed3ee42541d774b
|
[] |
no_license
|
weitat95/mastersDissertation
|
2648638bee64ea50cc93344708a58800a0f2af14
|
d465bb52b543dea05c799d1972374e877957a80c
|
refs/heads/master
| 2020-06-08T17:31:51.767796
| 2019-12-15T19:09:41
| 2019-12-15T19:09:41
| 193,271,681
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,611
|
java
|
/*
* Decompiled with CFR 0.147.
*/
package okhttp3.internal.http;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.regex.Pattern;
import okhttp3.Cookie;
import okhttp3.CookieJar;
import okhttp3.Headers;
import okhttp3.HttpUrl;
import okhttp3.Request;
import okhttp3.Response;
public final class HttpHeaders {
private static final Pattern PARAMETER = Pattern.compile(" +([^ \"=]*)=(:?\"([^\"]*)\"|([^ \"=]*)) *(:?,|$)");
public static long contentLength(Headers headers) {
return HttpHeaders.stringToLong(headers.get("Content-Length"));
}
public static long contentLength(Response response) {
return HttpHeaders.contentLength(response.headers());
}
/*
* Enabled aggressive block sorting
*/
public static boolean hasBody(Response response) {
block5: {
block4: {
if (response.request().method().equals("HEAD")) break block4;
int n = response.code();
if ((n < 100 || n >= 200) && n != 204 && n != 304) {
return true;
}
if (HttpHeaders.contentLength(response) != -1L || "chunked".equalsIgnoreCase(response.header("Transfer-Encoding"))) break block5;
}
return false;
}
return true;
}
public static int parseSeconds(String string2, int n) {
long l;
block3: {
try {
l = Long.parseLong(string2);
if (l > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
if (l >= 0L) break block3;
return 0;
}
catch (NumberFormatException numberFormatException) {
return n;
}
}
return (int)l;
}
/*
* Enabled aggressive block sorting
*/
public static void receiveHeaders(CookieJar cookieJar, HttpUrl httpUrl, Headers list) {
if (cookieJar == CookieJar.NO_COOKIES || (list = Cookie.parseAll(httpUrl, list)).isEmpty()) {
return;
}
cookieJar.saveFromResponse(httpUrl, list);
}
public static int skipUntil(String string2, int n, String string3) {
while (n < string2.length() && string3.indexOf(string2.charAt(n)) == -1) {
++n;
}
return n;
}
public static int skipWhitespace(String string2, int n) {
char c;
while (n < string2.length() && ((c = string2.charAt(n)) == ' ' || c == '\t')) {
++n;
}
return n;
}
private static long stringToLong(String string2) {
if (string2 == null) {
return -1L;
}
try {
long l = Long.parseLong(string2);
return l;
}
catch (NumberFormatException numberFormatException) {
return -1L;
}
}
/*
* Enabled aggressive block sorting
*/
public static Set<String> varyFields(Headers headers) {
Set<String> set = Collections.emptySet();
int n = 0;
int n2 = headers.size();
while (n < n2) {
if ("Vary".equalsIgnoreCase(headers.name(n))) {
String[] arrstring = headers.value(n);
Set<String> set2 = set;
if (set.isEmpty()) {
set2 = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
}
arrstring = arrstring.split(",");
int n3 = arrstring.length;
int n4 = 0;
do {
set = set2;
if (n4 >= n3) break;
set2.add(arrstring[n4].trim());
++n4;
} while (true);
}
++n;
}
return set;
}
public static Headers varyHeaders(Headers headers, Headers object) {
if ((object = HttpHeaders.varyFields((Headers)object)).isEmpty()) {
return new Headers.Builder().build();
}
Headers.Builder builder = new Headers.Builder();
int n = headers.size();
for (int i = 0; i < n; ++i) {
String string2 = headers.name(i);
if (!object.contains(string2)) continue;
builder.add(string2, headers.value(i));
}
return builder.build();
}
public static Headers varyHeaders(Response response) {
return HttpHeaders.varyHeaders(response.networkResponse().request().headers(), response.headers());
}
}
|
[
"weitat95@live.com"
] |
weitat95@live.com
|
91e3f6a431442a5bb7f2e1df480ba859c2e29185
|
29f78bfb928fb6f191b08624ac81b54878b80ded
|
/sp_files_generated/projects/sync8/src/main/java/sync8/input/InputDataClassName_4_1.java
|
f529a48c8ea0cf85af56fd98792ed68de4888868
|
[] |
no_license
|
MSPL4SOA/MSPL4SOA-tool
|
8a78e73b4ac7123cf1815796a70f26784866f272
|
9f3419e416c600cba13968390ee89110446d80fb
|
refs/heads/master
| 2020-04-17T17:30:27.410359
| 2018-07-27T14:18:55
| 2018-07-27T14:18:55
| 66,304,158
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,285
|
java
|
package sync8.input;
import java.io.Serializable;
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;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "InputDataClassName_4_1")
@XmlType(name = "inputDataClassName_4_1", propOrder = { "InputName_4_1_1",
"InputName_4_1_2", "InputName_4_1_3" })
public class InputDataClassName_4_1 implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(name = "InputName_4_1_1")
protected Integer InputName_4_1_1;
@XmlElement(name = "InputName_4_1_2")
protected String InputName_4_1_2;
@XmlElement(name = "InputName_4_1_3")
protected Float InputName_4_1_3;
public Integer getInputName_4_1_1() {
return InputName_4_1_1;
}
public String getInputName_4_1_2() {
return InputName_4_1_2;
}
public Float getInputName_4_1_3() {
return InputName_4_1_3;
}
public void setInputName_4_1_1(Integer value) {
this.InputName_4_1_1 = value;
}
public void setInputName_4_1_2(String value) {
this.InputName_4_1_2 = value;
}
public void setInputName_4_1_3(Float value) {
this.InputName_4_1_3 = value;
}
}
|
[
"akram.kamoun@gmail.com"
] |
akram.kamoun@gmail.com
|
d43d1b98f872ce7ea5da9dbab9081798e73d2012
|
ae683c187d51dc1b5b2e5e645e1040ae556074c3
|
/training/trainingstorefront/web/commonwebsrc/acceleratorstorefrontcommons/de/hybris/platform/acceleratorstorefrontcommons/variants/impl/DefaultVariantComparator.java
|
f3c62af045ca01279b88e647fb69201848caf930
|
[] |
no_license
|
alekseiyurovsky/hybris_bootcamp_2017
|
e59e93252d21127d10651e1a2b1a6f7bcc299e52
|
d6cf19ca825a4ade9c7dc1c4e34d845367e99d51
|
refs/heads/master
| 2021-01-01T16:54:51.523486
| 2017-07-21T13:53:43
| 2017-07-21T13:53:43
| 97,952,165
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,534
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.acceleratorstorefrontcommons.variants.impl;
import java.util.Comparator;
import org.apache.commons.lang.math.NumberUtils;
/**
* Default comparator for variant values
*/
public class DefaultVariantComparator implements Comparator<Object>
{
@Override
public int compare(final Object variant1, final Object variant2)
{
if (variant1 instanceof Number)
{
final double number1 = ((Number) variant1).doubleValue();
final double number2 = ((Number) variant2).doubleValue();
return NumberUtils.compare(number1, number2);
}
else if (variant1 instanceof String)
{
final String string1 = (String) variant1;
final String string2 = (String) variant2;
return string1.compareTo(string2);
}
else
{
return getResult(variant1, variant2);
}
}
protected int getResult(final Object variant1, final Object variant2)
{
if (variant1 == null && variant2 == null)
{
return 0;
}
else if (variant1 == null)
{
return -1;
}
else if (variant2 == null)
{
return 1;
}
return variant1.toString().compareTo(variant2.toString());
}
}
|
[
"aleksejs.jurovskis@accenture.com"
] |
aleksejs.jurovskis@accenture.com
|
69ef71d74c125cd0f823e98f5c5f9dcfd64017bf
|
5efbe1ce4035df0d4a7aa478ac37fa75aa68025c
|
/reference no run/com.martinstudio.hiddenrecorder/src/com/google/android/gms/tagmanager/bm.java
|
a653f23bf9aff4f712cdf53a57669c68801342e9
|
[] |
no_license
|
dat0106/datkts0106
|
6ec70e6adb90ba36237d4225b5cba80fcbd30343
|
885c9bec5b5cd3c4d677d8d579cd91cf7fd6d2e5
|
refs/heads/master
| 2016-08-05T08:24:11.701355
| 2014-08-01T04:35:12
| 2014-08-01T04:35:59
| 15,329,353
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package com.google.android.gms.tagmanager;
import android.os.Build.VERSION;
class bm
{
public bl lM()
{
Object localObject;
if (le() >= 8) {
localObject = new aw();
} else {
localObject = new av();
}
return localObject;
}
int le()
{
return Build.VERSION.SDK_INT;
}
}
/* Location: E:\android\Androidvn\dex2jar\classes_dex2jar.jar
* Qualified Name: com.google.android.gms.tagmanager.bm
* JD-Core Version: 0.7.0.1
*/
|
[
"datkts0106@gmail.com"
] |
datkts0106@gmail.com
|
09482edc785c46b5bf47c91df0d53d35e14e273e
|
8c26721da3e4d95dbc31a00a115ea7a20811517a
|
/Java_Test01/src/com/lambda/LambdaTest03.java
|
dec0d456df86f79212e88c034ed534a90374d305
|
[] |
no_license
|
LeeMrChang/JavaBasc
|
798448fb364f4b6d14997cbc9410b9c460d01387
|
de8ff00155681d5e52686cee4f939c112477c292
|
refs/heads/master
| 2020-11-26T03:36:05.046455
| 2020-07-14T14:16:09
| 2020-07-14T14:16:09
| 227,290,954
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 772
|
java
|
package com.lambda;
import java.util.Arrays;
import java.util.Comparator;
/**
* @ClassName:LambdaTest03
* @Author:Mr.lee
* @DATE:2019/12/13
* @TIME: 17:38
* @Description: TODO
*/
public class LambdaTest03 {
public static void main(String[] args) {
Person[] arr = {
new Person("啊旭",18),
new Person("啊东",19),
new Person("小伦",20),
new Person("小值",21),
};
//v,i表示参数
Arrays.sort(arr,(Person v,Person i)->{
return i.getAge()-v.getAge();
});
//省略模式
Arrays.sort(arr,(v, i)->i.getAge()-v.getAge());
for (Person person : arr) {
System.out.println(person);
}
}
}
|
[
"840591418@qq.com"
] |
840591418@qq.com
|
e15339748d635099a726e4cbb85f2de14d33abbb
|
0f10d6ef88a2a9373ba74e989a16e9c49d8708e8
|
/src/main/java/com/clj/reptilehouse/system/dao/SysLogDao.java
|
31b358f0b660bd8c23f4a5e7ab92c825a4dfe4a3
|
[] |
no_license
|
cuilinjie/reptile
|
7f95f270096b4cf9cd072a54c85183a021a44780
|
165d10da5b356fb1ddedc258cdd5c10b519e6c59
|
refs/heads/master
| 2021-05-06T21:07:09.708328
| 2017-11-29T09:46:18
| 2017-11-29T09:46:18
| 112,456,070
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 261
|
java
|
package com.clj.reptilehouse.system.dao;
import com.clj.reptilehouse.common.AbstractDao;
import com.clj.reptilehouse.system.entity.SysLog;
public interface SysLogDao extends AbstractDao<SysLog>{
void deleteAll();
void deleteBy(String query);
}
|
[
"Administrator@windows10.microdone.cn"
] |
Administrator@windows10.microdone.cn
|
1ef590cbe9aa93124a133e0280e637e01523403c
|
5eed550b8ca5a599b4bbe39c49b0fd39b9e0e178
|
/src/com/heartiger/challenges/Problem25.java
|
e6f175a2ade054b6530beb70525e87cb8bfa74d9
|
[] |
no_license
|
w280749941/DailyChallenge
|
91306d8485d6f567a8774e8929fa8f1dadfb4c52
|
2370349423284fb97223727e0ce9fb8674e31606
|
refs/heads/master
| 2020-04-08T10:09:48.398021
| 2019-04-30T03:47:49
| 2019-04-30T03:47:49
| 159,257,068
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,272
|
java
|
package com.heartiger.challenges;
import java.util.ArrayList;
import java.util.List;
/*
This problem was asked by Google.
The power set of a set is the set of all its subsets. Write a function that, given a set, generates its power set.
For example, given the set {1, 2, 3}, it should return {{}, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}.
You may also use a list or array to represent a set.
*/
public class Problem25 {
private List<List<Integer>> allSubsets(int[] nums){
if(nums == null || nums.length == 0)
return new ArrayList<>();
List<List<Integer>> result = new ArrayList<>();
helper(nums, new ArrayList<>(), 0, result);
return result;
}
private void helper(int[] nums, List<Integer> lt, int index, List<List<Integer>> result){
result.add(new ArrayList<>(lt));
for(int i=index; i<nums.length; i++){
lt.add(nums[i]);
helper(nums, lt, i+1, result);
lt.remove(lt.size()-1);
}
}
public static void main(String[] args) {
int[] nums = new int[]{1, 2, 3};
Problem25 problem = new Problem25();
problem.allSubsets(nums).forEach(x->{x.forEach(System.out::print);
System.out.println();});
}
}
|
[
"wshaoxiang10@yahoo.com"
] |
wshaoxiang10@yahoo.com
|
d2fb5ff568a1c9d847abf8c86f710ff951899d95
|
b2c71e37f4869006e97e59b51114a168bba22bef
|
/app/src/main/java/com/syl/basicandroid/utils/StringTool.java
|
6aa35aec2cdcd6795a3830ef1c70ede19c439753
|
[] |
no_license
|
Icarours/BasicAndroid
|
02cd6d0fc6113cabad5b3d8ed4ac102073d9e3f8
|
fb0e7717b371a40caf194187ad2ed9cafa87f165
|
refs/heads/master
| 2020-04-11T20:16:32.208374
| 2016-09-21T15:56:44
| 2016-09-21T15:56:44
| 68,157,267
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 742
|
java
|
package com.syl.basicandroid.utils;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by j3767 on 2016/8/28.
*
* @Describe
* @Called
* 字节流转化为字符串
*/
public class StringTool {
public static String decodeString(InputStream inputStream) throws IOException {
//底层字节流转换为字符串
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
int len;
byte[] buf = new byte[1024];
while ((len = inputStream.read(buf)) > 0) {
byteArrayOutputStream.write(buf, 0, len);
}
String responseValue = byteArrayOutputStream.toString();
return responseValue;
}
}
|
[
"j376787348@163.com"
] |
j376787348@163.com
|
88f18f5da1fa9af7b70b28ea962132976a00cd5e
|
e1e0795d53d1b1d4b6d5178825c8bcfbe8c44561
|
/documentation/src/test/java/FirstProgram.java
|
e9590fde47879699ea7ff073a4e74136b994b863
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
geoand/smallrye-mutiny
|
4d6e4c9ec8a8fa77ae1d2a4e106fdcc8c0d32852
|
e4a6e411e5fea4dc54166e31f23ada5adcf680e3
|
refs/heads/master
| 2023-03-10T20:23:46.471279
| 2022-05-10T17:24:00
| 2022-05-10T17:24:00
| 228,791,542
| 0
| 0
|
Apache-2.0
| 2023-03-10T09:02:57
| 2019-12-18T08:18:01
|
Java
|
UTF-8
|
Java
| false
| false
| 319
|
java
|
import io.smallrye.mutiny.Uni;
public class FirstProgram {
public static void main(String[] args) {
Uni.createFrom().item("hello")
.onItem().transform(item -> item + " mutiny")
.onItem().transform(String::toUpperCase)
.subscribe().with(
item -> System.out.println(">> " + item));
}
}
|
[
"clement.escoffier@gmail.com"
] |
clement.escoffier@gmail.com
|
0dc0190c5d2c5532990e6929d901ae83ed19dda8
|
69f431b1b6d8ca42d42ca24213fd4afc5a68e820
|
/_09_aop/excercise/quan_ly_sach/src/main/java/com/baitap/quan_ly_sach/controller/BookExceptionHandle.java
|
89d7d32d2da115de62d604b8885f7124bdb70ef4
|
[] |
no_license
|
thanhtai18021994/C1220G2-modul4
|
145e8127dfe3a23f0bd6aaeb19791b7a89755f74
|
ffe9c0621eac9752679e38903ccf81e935f34a40
|
refs/heads/master
| 2023-06-13T23:31:49.857506
| 2021-07-15T16:27:33
| 2021-07-15T16:27:33
| 361,979,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 407
|
java
|
package com.baitap.quan_ly_sach.controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;
@ControllerAdvice
public class BookExceptionHandle {
@ExceptionHandler(Exception.class)
public ModelAndView showPageError() {
return new ModelAndView("/error");
}
}
|
[
"taibui18021994@gmail.com"
] |
taibui18021994@gmail.com
|
eda4267742ca0fc66c81c99e053bd39fafd639f7
|
a5985c52a2c4df8cb6b2195f05c423034002c52a
|
/Workspace/JavaWorks/src/com/hpe/day5/StringEx01.java
|
f567eef7986f1de677108635819d313109c40ea4
|
[] |
no_license
|
adithnaveen/hpe-online-aug-2019
|
d1311fe6dda812eb180be1fabd68726cc60d6796
|
57c5eacc405ae6b8f9a53eef2ec11e1ec82b1bf2
|
refs/heads/master
| 2022-07-06T06:14:48.946078
| 2019-09-06T04:31:44
| 2019-09-06T04:31:44
| 201,292,138
| 0
| 0
| null | 2022-06-29T17:37:41
| 2019-08-08T16:00:24
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 696
|
java
|
package com.hpe.day5;
public class StringEx01 {
public static void main(String[] args) {
String str = new String("Java Training");
System.out.println(str.substring(0, 4));
System.out.println(str.indexOf("Tra"));
boolean equalsTest = str.equalsIgnoreCase("java Training");
System.out.println(equalsTest);
System.out.println(str.charAt(0));
System.out.println(str.concat(" is Awesome"));
StringBuffer sb = new StringBuffer(str);
sb.insert(0, "Hi all all again ");
System.out.println(sb);
System.out.println(sb.length());
System.out.println(sb.indexOf("all"));
System.out.println(sb.lastIndexOf("all"));
System.out.println(sb.reverse());
}
}
|
[
"adith.naveen@gmail.com"
] |
adith.naveen@gmail.com
|
27100f16c02da60babc583f395543ee301cd7006
|
d244ba116183d9a9052770b4ab1467e336fe1881
|
/skysail.server.security.shiro/src/main/java/de/twenty11/skysail/server/security/shiro/restlet/ShiroDelegationAuthenticator.java
|
58e2feabbdf320f72230c13b7443eab67c3ac9a7
|
[] |
no_license
|
evandor/skysail-server-old
|
310f7e19d5fcee4eeede8f756d4c5e8f9d5853d4
|
54342cbf519d45cd6b9bb01262e0364faa133d10
|
refs/heads/master
| 2021-03-27T12:48:08.205013
| 2013-10-22T05:51:49
| 2013-10-22T05:51:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,374
|
java
|
package de.twenty11.skysail.server.security.shiro.restlet;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.restlet.Context;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.data.CookieSetting;
import org.restlet.ext.crypto.CookieAuthenticator;
import org.restlet.routing.Filter;
public class ShiroDelegationAuthenticator extends CookieAuthenticator {
public ShiroDelegationAuthenticator(Context context, String realm, byte[] encryptSecretKey) {
super(context, realm, encryptSecretKey);
setIdentifierFormName("username");
setSecretFormName("password");
setLoginFormPath("/login");
setOptional(true); // we want anonymous users too
setVerifier(new ShiroDelegatingVerifier());
}
@Override
protected CookieSetting getCredentialsCookie(Request request, Response response) {
CookieSetting credentialsCookie = super.getCredentialsCookie(request, response);
credentialsCookie.setPath("/");
return credentialsCookie;
}
@Override
protected int logout(Request request, Response response) {
int result = super.logout(request, response);
if (Filter.STOP == result) {
Subject subject = SecurityUtils.getSubject();
subject.logout();
}
return result;
}
}
|
[
"evandor@gmail.com"
] |
evandor@gmail.com
|
f0e654f3c2ca734f671589a5decebe166a76d1a4
|
2b04a182afcf4eca196ab0c47de3dbcb4c742cc1
|
/cloud-runtimes-api/src/main/java/group/rxcloud/cloudruntimes/client/CloudRuntimesClientProvider.java
|
80cec4c40d28b391a44fcfdba605fbc9e4c2bd4c
|
[] |
no_license
|
pinxiong/cloud-runtimes-jvm
|
76084ab5fb028f2adb44666c1acfc7c17567f361
|
e9b387c1df47b942a48a0c8eb8da386f601eaad2
|
refs/heads/master
| 2023-08-21T17:36:38.064174
| 2021-10-16T12:10:30
| 2021-10-16T12:10:30
| 417,130,776
| 0
| 0
| null | 2021-10-16T11:36:36
| 2021-10-14T12:57:23
| null |
UTF-8
|
Java
| false
| false
| 275
|
java
|
package group.rxcloud.cloudruntimes.client;
/**
* Cloud Runtimes Client Provider.
*/
public interface CloudRuntimesClientProvider {
/**
* Provide cloud runtimes client.
*
* @return the cloud runtimes client
*/
CloudRuntimesClient provide();
}
|
[
"596823919@qq.com"
] |
596823919@qq.com
|
98866804a7d1b3ee08d298f244dbb3ebaa451565
|
59fbe04d8d0e2bf25316446690dd0e7bc4c988f5
|
/jaxrs/src/main/java/com/proofpoint/jaxrs/TimingFilter.java
|
de60bc3f03e8953d29d759dd70435e78ba391a10
|
[
"Apache-2.0"
] |
permissive
|
jon-strayer/platform
|
2ca897c70bb8953380baba0081c52f0efab23c55
|
503580cfee3a9101258e3d9a0951d48a496ade1b
|
refs/heads/master
| 2020-03-19T02:28:46.810140
| 2018-05-31T20:05:55
| 2018-05-31T20:29:11
| 110,010,345
| 0
| 0
| null | 2017-11-08T17:50:41
| 2017-11-08T17:50:41
| null |
UTF-8
|
Java
| false
| false
| 2,909
|
java
|
/*
* Copyright 2013 Proofpoint, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.proofpoint.jaxrs;
import com.google.common.base.Ticker;
import com.google.common.cache.LoadingCache;
import com.google.common.collect.ImmutableList;
import com.proofpoint.stats.SparseTimeStat;
import com.proofpoint.units.Duration;
import javax.annotation.Priority;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import static java.util.Objects.requireNonNull;
@Priority(100)
class TimingFilter
implements ContainerRequestFilter, ContainerResponseFilter
{
static final String TAGS_KEY = TimingFilter.class.getName() + ".tags";
private static final String START_TIME_KEY = TimingFilter.class.getName() + ".start-time";
private final String methodName;
private final LoadingCache<List<Optional<String>>, SparseTimeStat> loadingCache;
private final Ticker ticker;
TimingFilter(String methodName, LoadingCache<List<Optional<String>>, SparseTimeStat> loadingCache, Ticker ticker)
{
this.methodName = requireNonNull(methodName, "methodName is null");
this.loadingCache = requireNonNull(loadingCache, "loadingCache is null");
this.ticker = requireNonNull(ticker, "ticker is null");
}
@Override
public void filter(ContainerRequestContext request)
{
request.setProperty(START_TIME_KEY, ticker.read());
}
@Override
public void filter(ContainerRequestContext request, ContainerResponseContext response)
{
Long startTime = (Long) request.getProperty(START_TIME_KEY);
ImmutableList.Builder<Optional<String>> builder = ImmutableList.builder();
builder.add(Optional.of(methodName), Optional.of(Integer.toString(response.getStatus())));
Collection<Optional<Object>> tags = (Collection<Optional<Object>>) request.getProperty(TAGS_KEY);
if (tags != null) {
for (Optional<Object> tag : tags) {
builder.add(tag.map(Object::toString));
}
}
loadingCache.getUnchecked(builder.build())
.add(Duration.succinctNanos(ticker.read() - startTime));
}
}
|
[
"jgmyers@proofpoint.com"
] |
jgmyers@proofpoint.com
|
c05e8f0fa52a291663d6b26bcad4d6d6c27816aa
|
453226571c5da1b28f0ee8eacc1d17637672977b
|
/mimosa-orm/src/main/java/org/mimosaframework/orm/platform/JDBCExecutor.java
|
86d80afb7182d1af2d52c3ef23a0853d3191e3b8
|
[
"Apache-2.0"
] |
permissive
|
jianzixing/mimosaframework
|
df333834fe8622e169f6bbab2e80c2c66132eb05
|
8813e39542a52fa39015e80727e45b476a6b3b74
|
refs/heads/master
| 2023-08-03T23:56:33.520368
| 2023-07-31T08:10:09
| 2023-07-31T08:10:09
| 207,211,209
| 1
| 2
|
Apache-2.0
| 2022-12-16T11:35:28
| 2019-09-09T02:53:25
|
Java
|
UTF-8
|
Java
| false
| false
| 667
|
java
|
package org.mimosaframework.orm.platform;
import org.mimosaframework.core.json.ModelObject;
import java.sql.SQLException;
import java.util.List;
public interface JDBCExecutor {
void setDatabaseExecutorCallback(DatabaseExecutorCallback callback);
boolean execute(JDBCTraversing structure) throws SQLException;
int delete(JDBCTraversing structure) throws SQLException;
List<Long> insert(JDBCTraversing structure) throws SQLException;
void inserts(BatchPorterStructure structure) throws SQLException;
List<ModelObject> select(JDBCTraversing structure) throws SQLException;
int update(JDBCTraversing structure) throws SQLException;
}
|
[
"yak1992@foxmail.com"
] |
yak1992@foxmail.com
|
0d7c0df78d3b7cd5d389acc3f90455b8ad07f108
|
fa98b943f13ebbaf4e1b6f0cfdc64c95281b35ca
|
/ha-business/src/main/java/jp/co/ha/business/healthInfo/service/impl/HealthInfoCsvUploadServiceImpl.java
|
0312fad75cf0120f26fc57c4101e7c6969ffd7ca
|
[] |
no_license
|
kohei-okazaki/work-3g
|
e6f68b85443002face236a8b5b917063a7d714c6
|
62e30889f462f3abad0b4f9df186fa70d18aa211
|
refs/heads/master
| 2023-07-24T12:34:05.355446
| 2023-01-08T12:33:35
| 2023-01-08T12:33:35
| 128,875,758
| 23
| 4
| null | 2023-07-11T00:42:52
| 2018-04-10T04:55:59
|
Java
|
UTF-8
|
Java
| false
| false
| 941
|
java
|
package jp.co.ha.business.healthInfo.service.impl;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import jp.co.ha.business.io.file.csv.model.HealthInfoCsvUploadModel;
import jp.co.ha.business.io.file.csv.reader.HealthInfoCsvReader;
import jp.co.ha.common.exception.BaseException;
import jp.co.ha.common.io.file.csv.service.CsvUploadService;
import jp.co.ha.common.type.Charset;
/**
* 健康情報ファイルアップロードサービス実装クラス
*
* @version 1.0.0
*/
@Service("healthInfoUploadCsv")
public class HealthInfoCsvUploadServiceImpl
implements CsvUploadService<HealthInfoCsvUploadModel> {
@Override
public List<HealthInfoCsvUploadModel> upload(MultipartFile uploadFile)
throws BaseException {
return new HealthInfoCsvReader()
.readMultipartFile(uploadFile, Charset.UTF_8);
}
}
|
[
"kou1210hei@gmail.com"
] |
kou1210hei@gmail.com
|
bef9bd064be6c5bebdc37cb142b2fb7682a29a5a
|
1d5d6f298aad8242f0c4c0f86a666b7e2033d196
|
/apache-shardingsphere-incubating-4.0.1-src/shardingsphere-sql-parser/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/core/extractor/ddl/MySQLModifyColumnDefinitionExtractor.java
|
7c09bf214775cd1e3099904fd4b57da5b3afc4d7
|
[
"Apache-2.0"
] |
permissive
|
kongq1983/opensourcecode
|
b0a2c951e24220c22dae3136d1cc5ed7e5230ed9
|
96242fe545e65c41b1a1a3bc9230e49792fa348b
|
refs/heads/master
| 2023-03-06T08:35:13.730272
| 2022-11-15T15:14:57
| 2022-11-15T15:14:57
| 193,943,067
| 0
| 0
|
Apache-2.0
| 2023-02-22T07:31:30
| 2019-06-26T16:42:03
|
Java
|
UTF-8
|
Java
| false
| false
| 2,149
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.core.extractor.ddl;
import com.google.common.base.Optional;
import org.antlr.v4.runtime.ParserRuleContext;
import org.apache.shardingsphere.sql.parser.core.extractor.impl.ddl.column.ModifyColumnDefinitionExtractor;
import org.apache.shardingsphere.sql.parser.sql.segment.ddl.column.alter.ModifyColumnDefinitionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.ddl.column.position.ColumnPositionSegment;
import java.util.Map;
/**
* Modify column definition extractor for MySQL.
*
* @author duhongjun
*/
public final class MySQLModifyColumnDefinitionExtractor extends ModifyColumnDefinitionExtractor {
@Override
protected void postExtractColumnDefinition(final ParserRuleContext modifyColumnNode,
final ModifyColumnDefinitionSegment modifyColumnDefinitionSegment, final Map<ParserRuleContext, Integer> parameterMarkerIndexes) {
Optional<ColumnPositionSegment> columnPositionSegment = new MySQLColumnPositionExtractor(
modifyColumnDefinitionSegment.getColumnDefinition().getColumnName()).extract(modifyColumnNode, parameterMarkerIndexes);
if (columnPositionSegment.isPresent()) {
modifyColumnDefinitionSegment.setColumnPosition(columnPositionSegment.get());
}
}
}
|
[
"king@qq.com"
] |
king@qq.com
|
a2593c50727ee3e6c704f42769934ea21bd6ce0b
|
3bcde87916b8627c70e089007e12450e7e5421e6
|
/app/build/intermediates/classes/debug/cn/mstar/store/activity/ReturnShopExpressActivity$$ViewBinder.java
|
bef0a2226a5efcc59ba123bec7f67ce5f76dd57e
|
[] |
no_license
|
gyymz1993/MstarStoreAppStudio2
|
876bc5727fe6c4e28b7756b0b6ba0e3c2f09658d
|
454d36ee8b8efef88bdbd0922b81f6fc1600ea0e
|
refs/heads/master
| 2020-06-11T09:26:48.027134
| 2017-01-10T07:41:44
| 2017-01-10T07:41:44
| 75,699,549
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,620
|
java
|
// Generated code from Butter Knife. Do not modify!
package cn.mstar.store.activity;
import android.view.View;
import butterknife.ButterKnife.Finder;
import butterknife.ButterKnife.ViewBinder;
public class ReturnShopExpressActivity$$ViewBinder<T extends cn.mstar.store.activity.ReturnShopExpressActivity> implements ViewBinder<T> {
@Override public void bind(final Finder finder, final T target, Object source) {
View view;
view = finder.findRequiredView(source, 2131558731, "field 'titleBack'");
target.titleBack = finder.castView(view, 2131558731, "field 'titleBack'");
view = finder.findRequiredView(source, 2131559402, "field 'titleName'");
target.titleName = finder.castView(view, 2131559402, "field 'titleName'");
view = finder.findRequiredView(source, 2131558514, "field 'idRlSlectExpress'");
target.idRlSlectExpress = finder.castView(view, 2131558514, "field 'idRlSlectExpress'");
view = finder.findRequiredView(source, 2131558517, "field 'tv_express'");
target.tv_express = finder.castView(view, 2131558517, "field 'tv_express'");
view = finder.findRequiredView(source, 2131558522, "field 'bt_confim'");
target.bt_confim = finder.castView(view, 2131558522, "field 'bt_confim'");
view = finder.findRequiredView(source, 2131558521, "field 'ed_Code'");
target.ed_Code = finder.castView(view, 2131558521, "field 'ed_Code'");
}
@Override public void unbind(T target) {
target.titleBack = null;
target.titleName = null;
target.idRlSlectExpress = null;
target.tv_express = null;
target.bt_confim = null;
target.ed_Code = null;
}
}
|
[
"gyymz1993@126.com"
] |
gyymz1993@126.com
|
1e0d4598352a6b9be482162ade66497f34098c8b
|
a666c798a28223f97d74d21786f9a4f4000d5acb
|
/edu.harvard.i2b2.crc/gensrc/edu/harvard/i2b2/crc/datavo/pdo/EventSet.java
|
fbb78f473a50eecf9cccbb83e0dcc652ca9c55d9
|
[] |
no_license
|
gmacdonnell/i2b2-fsu-1704
|
d65239edf95aa3b25844a6ed9af599e06dcaa185
|
12638996fe46a7014ac827e359c40e5b0e8c1d3e
|
refs/heads/master
| 2021-01-23T07:02:31.537241
| 2015-01-27T15:09:33
| 2015-01-27T15:09:33
| 29,916,117
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,223
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-558
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.01.26 at 12:45:17 PM EST
//
package edu.harvard.i2b2.crc.datavo.pdo;
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.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="event" type="{http://www.i2b2.org/xsd/hive/pdo/1.1/}eventType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"event"
})
@XmlRootElement(name = "event_set")
public class EventSet {
@XmlElement(required = true)
protected List<EventType> event;
/**
* Gets the value of the event 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 event property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEvent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link EventType }
*
*
*/
public List<EventType> getEvent() {
if (event == null) {
event = new ArrayList<EventType>();
}
return this.event;
}
}
|
[
"gmacdonnell@fsu.edu"
] |
gmacdonnell@fsu.edu
|
dca7d3ca3f14c0d4cf7a258ceb3187e6911cc7d6
|
9d93eadf80abc6f6e441451bbc1594161eedced6
|
/src/java/hrms/model/payroll/schedule/BankAcountScheduleBean.java
|
f9a7a7efedf586cd472b9a92006a38b209fbe8e3
|
[] |
no_license
|
durgaprasad2882/HRMSOpenSourceFor466anydesk
|
1bac7eb2e231a4fb3389b6b1cb8fb4384a757522
|
e7ef76f77d7ecf98464e9bcccc2246b2091efeb4
|
refs/heads/main
| 2023-06-29T16:26:04.663376
| 2021-08-05T09:19:02
| 2021-08-05T09:19:02
| 392,978,868
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,320
|
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 hrms.model.payroll.schedule;
public class BankAcountScheduleBean extends ScheduleHelper{
private String billdesc=null;
private String ddoDesg=null;
private String offName=null;
private String month=null;
private String year=null;
private String designation=null;
private String accountNo=null;
private String netAmount=null;
private int towardsLoan;
private int totalReleased;
private int otherDeposits;
private String carryForward=null;
private String carryForwardDDO=null;
private String bankName=null;
private String netAmt=null;
private String netAmtNumbers=null;
private String amountInWords=null;
private String pagebreakBS = null;
private String pageHeaderBS = null;
private String netCfTot = null;
public String getBilldesc() {
return billdesc;
}
public void setBilldesc(String billdesc) {
this.billdesc = billdesc;
}
public String getDdoDesg() {
return ddoDesg;
}
public void setDdoDesg(String ddoDesg) {
this.ddoDesg = ddoDesg;
}
public String getOffName() {
return offName;
}
public void setOffName(String offName) {
this.offName = offName;
}
public String getMonth() {
return month;
}
public void setMonth(String month) {
this.month = month;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public String getDesignation() {
return designation;
}
public void setDesignation(String designation) {
this.designation = designation;
}
public String getAccountNo() {
return accountNo;
}
public void setAccountNo(String accountNo) {
this.accountNo = accountNo;
}
public String getNetAmount() {
return netAmount;
}
public void setNetAmount(String netAmount) {
this.netAmount = netAmount;
}
public int getTowardsLoan() {
return towardsLoan;
}
public void setTowardsLoan(int towardsLoan) {
this.towardsLoan = towardsLoan;
}
public int getTotalReleased() {
return totalReleased;
}
public void setTotalReleased(int totalReleased) {
this.totalReleased = totalReleased;
}
public int getOtherDeposits() {
return otherDeposits;
}
public void setOtherDeposits(int otherDeposits) {
this.otherDeposits = otherDeposits;
}
public String getCarryForward() {
return carryForward;
}
public void setCarryForward(String carryForward) {
this.carryForward = carryForward;
}
public String getCarryForwardDDO() {
return carryForwardDDO;
}
public void setCarryForwardDDO(String carryForwardDDO) {
this.carryForwardDDO = carryForwardDDO;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getNetAmt() {
return netAmt;
}
public void setNetAmt(String netAmt) {
this.netAmt = netAmt;
}
public String getNetAmtNumbers() {
return netAmtNumbers;
}
public void setNetAmtNumbers(String netAmtNumbers) {
this.netAmtNumbers = netAmtNumbers;
}
public String getAmountInWords() {
return amountInWords;
}
public void setAmountInWords(String amountInWords) {
this.amountInWords = amountInWords;
}
public String getPagebreakBS() {
return pagebreakBS;
}
public void setPagebreakBS(String pagebreakBS) {
this.pagebreakBS = pagebreakBS;
}
public String getPageHeaderBS() {
return pageHeaderBS;
}
public void setPageHeaderBS(String pageHeaderBS) {
this.pageHeaderBS = pageHeaderBS;
}
public String getNetCfTot() {
return netCfTot;
}
public void setNetCfTot(String netCfTot) {
this.netCfTot = netCfTot;
}
}
|
[
"dm.prasad@hotmail.com"
] |
dm.prasad@hotmail.com
|
e8c88122fda728e4c552948f6daaa95da2f39b40
|
8f362e22b0bd0a3e1294df90e13791c6bceb1bef
|
/src/uk/dangrew/dinosaurs/ui/widgets/WaterWidget.java
|
dd507ec27ac313073f8c8d522f9d2f7dcf2c287c
|
[
"Apache-2.0"
] |
permissive
|
DanGrew/Dinosaurs
|
829d1fd6371b617f3a58356d8aab10fb9e141650
|
e21ff4519ed97ae85bf2c4845150e591525d9d1e
|
refs/heads/main
| 2023-02-24T20:39:23.880864
| 2021-01-25T17:56:07
| 2021-01-25T17:56:07
| 328,762,490
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,390
|
java
|
package uk.dangrew.dinosaurs.ui.widgets;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import javafx.scene.Node;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import uk.dangrew.dinosaurs.game.model.water.Water;
import uk.dangrew.dinosaurs.game.world.WorldLocation;
import uk.dangrew.dinosaurs.ui.configuration.GameState;
import uk.dangrew.dinosaurs.ui.view.WorldViewport;
/**
* Ui representation of {@link Water}.
*/
public class WaterWidget extends Pane implements AssetWidget {
private final GameState gameState;
private final Water water;
private final WorldViewport worldViewport;
public WaterWidget(GameState gameState, Water water, WorldViewport worldViewport) {
this.gameState = gameState;
this.water = water;
this.worldViewport = worldViewport;
gameState.currentWorld().addListener((s, o, n) -> redraw());
worldViewport.topLeftProperty().addListener((s, o, n) -> redraw());
}
@Override
public Node getGraphicalComponent() {
return this;
}
@Override
public void redraw() {
getChildren().clear();
Collection<WorldLocation> locationsInView = worldViewport.getLocationsInView();
water.getCoverage().stream()
.filter(locationsInView::contains)
.map(this::createWidgetAt)
.filter(Objects::nonNull)
.forEach(getChildren()::add);
}
@Override
public void destroy() {
getChildren().clear();
}
private Node createWidgetAt(WorldLocation worldLocation) {
Optional<WorldLocation> worldLocationToDisplayAt = worldViewport.translateToScreen(worldLocation);
if (!worldLocationToDisplayAt.isPresent()) {
return null;
}
int worldCellDimension = gameState.worldCellDimension().get();
int horizontalLocation = worldLocationToDisplayAt.get().getHorizontal() * worldCellDimension;
int verticalLocation = worldLocationToDisplayAt.get().getVertical() * worldCellDimension;
ImageView imageView = water.getLocationPropertiesFor(worldLocation).getTileType().buildImageView();
imageView.setFitWidth(worldCellDimension);
imageView.setFitHeight(worldCellDimension);
imageView.setX(horizontalLocation);
imageView.setY(verticalLocation);
return imageView;
}
}
|
[
"danielanthonygrew@gmail.com"
] |
danielanthonygrew@gmail.com
|
18a3f443108c8009928250a4f94db9b65b0e8192
|
eb4a1bcaf22941f99eafa08422bf29a216fa8d0f
|
/src/main/java/plugins/haesleinhuepf/buttons/GetMinimumOfAllPixels.java
|
bd62d9f4ae90265f3a04558b2f47a7c0a8b75eab
|
[
"BSD-3-Clause"
] |
permissive
|
clij/clicy
|
77d071d2d57413ea180889e2b4489fe0d95bf20c
|
5f423ee2c70b1567cfeec00f936a525ef678f377
|
refs/heads/master
| 2022-07-15T06:51:20.071221
| 2021-10-23T15:30:59
| 2021-10-23T15:30:59
| 202,433,879
| 2
| 4
|
BSD-3-Clause
| 2022-06-29T18:09:55
| 2019-08-14T22:19:40
|
Java
|
UTF-8
|
Java
| false
| false
| 4,960
|
java
|
package plugins.haesleinhuepf.buttons;
import icy.sequence.Sequence;
import net.haesleinhuepf.clicy.CLICY;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
import net.haesleinhuepf.clij.macro.AbstractCLIJPlugin;
import net.haesleinhuepf.clij.macro.documentation.OffersDocumentation;
import plugins.adufour.ezplug.*;
import plugins.adufour.vars.lang.Var;
import plugins.adufour.vars.lang.VarBoolean;
import plugins.adufour.vars.lang.VarDouble;
import plugins.adufour.vars.lang.VarString;
import plugins.haesleinhuepf.AbstractCLIJ2Block;
import plugins.haesleinhuepf.Recorder;
import plugins.haesleinhuepf.VarClearCLBuffer;
import plugins.haesleinhuepf.implementations.generated.CLIJ2_GetMinimumOfAllPixelsBlock;
import java.util.ArrayList;
// this is generated code. See src/test/java/net/haesleinhuepf/clicy/codegenerator for details
public class GetMinimumOfAllPixels extends EzPlug {
AbstractCLIJ2Block plugin = new CLIJ2_GetMinimumOfAllPixelsBlock();
@Override
public void clean() {
// dialog closed
ezVar = null;
}
@Override
public void execute() {
CLICY clij2 = CLICY.getInstance((String) plugin.inputParameters.get("cl_device").getValue());
Recorder.initRecorder();
Recorder.record("\n// " + plugin.getName() + "\n");
ArrayList<ClearCLBuffer> created = new ArrayList<>();
int count = 0;
for (Var var : plugin.inputParameters) {
if (var instanceof VarClearCLBuffer) {
Sequence sequence = (Sequence) ezVar.get(count).getValue();
ClearCLBuffer buffer = clij2.pushSequence(sequence);
String bufferName = Recorder.getBufferNameFromSequenceName(sequence);
if (bufferName == null) {
Recorder.recordPush(sequence, buffer);
} else {
String newBufferName = Recorder.niceName("buffer", buffer);
Recorder.record(newBufferName + " = " + bufferName +";\n");
}
var.setValue(buffer);
created.add(((VarClearCLBuffer) var).getValue());
} else {
var.setValue(ezVar.get(count).getValue());
}
count++;
}
plugin.run();
for (Var var : plugin.outputParameters) {
if (var instanceof VarClearCLBuffer) {
ClearCLBuffer buffer = ((VarClearCLBuffer) var).getValue();
created.add(buffer);
Sequence sequence = clij2.pullSequence(buffer);
Recorder.recordPull(sequence, buffer);
addSequence(sequence);
}
}
for (ClearCLBuffer buffer : created) {
clij2.release(buffer);
}
}
ArrayList<EzVar> ezVar = null;
@Override
public void initialize() {
ezVar = new ArrayList<>();
for (Var var : plugin.inputParameters) {
handleVar(var);
}
for (Var var : plugin.outputParameters) {
handleVar(var);
}
if (plugin != null && plugin.getDescriptor() != null && plugin.getDescriptor().getDescription() != null) {
addEzComponent(new EzLabel(plugin.getDescriptor().getDescription()));
}
}
private void handleVar(Var var) {
AbstractCLIJPlugin clij2Plugin = plugin.getCLIJ2Plugin();
if (var instanceof VarClearCLBuffer) {
EzVarSequence evs = new EzVarSequence(var.getName());
if (clij2Plugin instanceof OffersDocumentation) {
evs.setToolTipText(((OffersDocumentation) clij2Plugin).getDescription());
}
addEzComponent(evs);
ezVar.add(evs);
} else if (var instanceof VarDouble) {
EzVarDouble evs = new EzVarDouble(var.getName());
if (clij2Plugin instanceof OffersDocumentation) {
evs.setToolTipText(((OffersDocumentation) clij2Plugin).getDescription());
}
addEzComponent(evs);
ezVar.add(evs);
} else if (var instanceof VarBoolean) {
EzVarBoolean evs = new EzVarBoolean(var.getName(), ((VarBoolean) var).getDefaultValue());
if (clij2Plugin instanceof OffersDocumentation) {
evs.setToolTipText(((OffersDocumentation) clij2Plugin).getDescription());
}
addEzComponent(evs);
ezVar.add(evs);
} else if (var instanceof VarString) {
EzVarText evs = new EzVarText(var.getName());
if (var.getName().compareTo("cl_device") == 0) {
evs.setToolTipText("Name of the GPU to use. Must be empty or identical in a given workflow.");
} else if (clij2Plugin instanceof OffersDocumentation) {
evs.setToolTipText(((OffersDocumentation) clij2Plugin).getDescription());
}
addEzComponent(evs);
ezVar.add(evs);
}
}
}
|
[
"rhaase@mpi-cbg.de"
] |
rhaase@mpi-cbg.de
|
122562dd3e2808684189b2192366bcd1bfa8ee37
|
846a7668ac964632bdb6db639ab381be11c13b77
|
/android/tools/tradefederation/core/src/com/android/tradefed/profiler/recorder/TraceMetric.java
|
58351bdecf34f07a3033353fc58b1a65eff4fbae
|
[] |
no_license
|
BPI-SINOVOIP/BPI-A64-Android8
|
f2900965e96fd6f2a28ced68af668a858b15ebe1
|
744c72c133b9bf5d2e9efe0ab33e01e6e51d5743
|
refs/heads/master
| 2023-05-21T08:02:23.364495
| 2020-07-15T11:27:51
| 2020-07-15T11:27:51
| 143,945,191
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,168
|
java
|
/*
* Copyright (C) 2016 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.tradefed.profiler.recorder;
/**
* A class representing a metric which {@link TraceMetricsRecorder} can receive.
*
* Instances of TraceMetric should usually be acquired via the {@link #parse} method, which
* constructs them from a string with the following format:
* prefix:funcname:param[=expval]:mtype
* These variables represent the following:
* * prefix: The directory under /d/tracing/events containing the metric name.
* * funcname: The name of the metric, located under /d/tracing/events/[prefix].
* * param: Which column of output from /d/tracing/trace to record.
* * expval (optional): An expected value for this metric. Metrics will only be recorded if they
* match this value.
* * mtype: The {@link MetricType} which describes how this metric should be aggregated.
*/
public class TraceMetric {
private String mPrefix;
private String mFuncName;
private String mParam;
private Double mExpectedVal;
private MetricType mMetricType;
/**
* Constructor with no expected value parameter.
* @param prefix the directory under /d/tracing/events containing the metric
* @param funcName the name of the metric from /d/tracing/events/[prefix]
* @param param the column from /d/tracing/trace containing data to record
* @param metricType the {@link MetricType} describing how to aggregate this metric
*/
public TraceMetric(String prefix, String funcName, String param, MetricType metricType) {
mPrefix = prefix;
mFuncName = funcName;
mParam = param;
mExpectedVal = null;
mMetricType = metricType;
}
/**
* Constructor with expected value parameter.
* @param prefix the directory under /d/tracing/events containing the metric
* @param funcName the name of the metric from /d/tracing/events/[prefix]
* @param param the column from /d/tracing/trace containing data to record
* @param expectedVal the expected value of [param]
* @param metricType the {@link MetricType} describing how to aggregate this metric
*/
public TraceMetric(String prefix, String funcName, String param,
Double expectedVal, MetricType metricType) {
mPrefix = prefix;
mFuncName = funcName;
mParam = param;
mExpectedVal = expectedVal;
mMetricType = metricType;
}
public String getPrefix() {
return mPrefix;
}
public String getFuncName() {
return mFuncName;
}
public String getParam() {
return mParam;
}
public Double getExpectedVal() {
return mExpectedVal;
}
public MetricType getMetricType() {
return mMetricType;
}
@Override
public String toString() {
String base = String.format("%s:%s:%s", getPrefix(), getFuncName(), getParam());
if (getExpectedVal() != null) {
base = base + "=" + getExpectedVal();
}
base += ":" + getMetricType();
return base;
}
/**
* Expected format: prefix:funcname:param[=expval]:mtype
*/
public static TraceMetric parse(String text) {
String[] parts = text.split(":");
if (!(parts.length == 4)) {
throw new IllegalArgumentException(
"bad metric format (should be prefix:funcname:param[=expval]:evtype): " + text);
}
String prefix = parts[0];
String funcname = parts[1];
MetricType mtype = MetricType.valueOf(parts[3]);
if (parts[2].contains("=")) {
String[] paramSplit = parts[2].split("=");
Double exVal;
if (paramSplit[1].contains("x")) {
exVal = Double.valueOf(Integer.parseInt(paramSplit[1].substring(2), 16));
} else {
exVal = Double.parseDouble(paramSplit[1]);
}
return new TraceMetric(prefix, funcname, paramSplit[0], exVal, mtype);
} else {
return new TraceMetric(prefix, funcname, parts[2], mtype);
}
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((mExpectedVal == null) ? 0 : mExpectedVal.hashCode());
result = prime * result + ((mFuncName == null) ? 0 : mFuncName.hashCode());
result = prime * result + ((mMetricType == null) ? 0 : mMetricType.hashCode());
result = prime * result + ((mParam == null) ? 0 : mParam.hashCode());
result = prime * result + ((mPrefix == null) ? 0 : mPrefix.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;
TraceMetric other = (TraceMetric) obj;
if (mExpectedVal == null) {
if (other.mExpectedVal != null) return false;
} else if (!mExpectedVal.equals(other.mExpectedVal)) return false;
if (mFuncName == null) {
if (other.mFuncName != null) return false;
} else if (!mFuncName.equals(other.mFuncName)) return false;
if (mMetricType != other.mMetricType) return false;
if (mParam == null) {
if (other.mParam != null) return false;
} else if (!mParam.equals(other.mParam)) return false;
if (mPrefix == null) {
if (other.mPrefix != null) return false;
} else if (!mPrefix.equals(other.mPrefix)) return false;
return true;
}
}
|
[
"mingxin.android@gmail.com"
] |
mingxin.android@gmail.com
|
326a79d03a5a7b7ba036c67cf3f21205ea46d7d5
|
5e224ff6d555ee74e0fda6dfa9a645fb7de60989
|
/database/src/main/java/adila/db/mf97w_mf97w.java
|
7943f66cc0614213f96224c36f1307b27532ecdd
|
[
"MIT"
] |
permissive
|
karim/adila
|
8b0b6ba56d83f3f29f6354a2964377e6197761c4
|
00f262f6d5352b9d535ae54a2023e4a807449faa
|
refs/heads/master
| 2021-01-18T22:52:51.508129
| 2016-11-13T13:08:04
| 2016-11-13T13:08:04
| 45,054,909
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 197
|
java
|
// This file is automatically generated.
package adila.db;
/*
* ZTE MF97W
*
* DEVICE: MF97W
* MODEL: MF97W
*/
final class mf97w_mf97w {
public static final String DATA = "ZTE|MF97W|";
}
|
[
"keldeeb@gmail.com"
] |
keldeeb@gmail.com
|
d01dfcd4a1f221fcbe212e5aea0ca8b2d4e1c034
|
0800c206efb883e15322f063b5c6668b1b1215ac
|
/ref/newrelic_rewriter/com/newrelic/org/reflections/Store.java
|
0de5fdbfb0e804976f8aa3b59c1b1ca20981a234
|
[] |
no_license
|
PioneerLab/OpenAPM-Android
|
b125af273b53c2996f2f0cc9261bff7cdc6c6013
|
df42726ce7917ddd81135f27c0164a83e47b055c
|
refs/heads/master
| 2021-04-24T22:44:42.934592
| 2017-04-15T09:38:14
| 2017-04-15T09:38:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,175
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package com.newrelic.org.reflections;
import java.lang.annotation.Inherited;
import java.util.regex.Pattern;
import com.newrelic.com.google.common.collect.Collections2;
import com.newrelic.com.google.common.base.Predicate;
import com.newrelic.org.reflections.scanners.ResourcesScanner;
import com.newrelic.org.reflections.scanners.FieldAnnotationsScanner;
import com.newrelic.org.reflections.scanners.MethodAnnotationsScanner;
import com.newrelic.org.reflections.scanners.TypeAnnotationsScanner;
import com.newrelic.org.reflections.scanners.SubTypesScanner;
import java.util.HashSet;
import java.util.Iterator;
import com.newrelic.com.google.common.collect.Sets;
import javax.annotation.Nullable;
import com.newrelic.org.reflections.scanners.Scanner;
import com.newrelic.com.google.common.collect.Multimaps;
import java.util.Collection;
import com.newrelic.com.google.common.collect.SetMultimap;
import java.util.HashMap;
import java.util.Set;
import com.newrelic.com.google.common.base.Supplier;
import com.newrelic.com.google.common.collect.Multimap;
import java.util.Map;
public class Store
{
private final Map<String, Multimap<String, String>> storeMap;
private final transient boolean concurrent;
private static final transient Supplier<Set<String>> setSupplier;
protected Store() {
this(false);
}
protected Store(final boolean concurrent) {
this.concurrent = concurrent;
this.storeMap = new HashMap<String, Multimap<String, String>>();
}
private SetMultimap<String, String> createMultimap() {
return this.concurrent ? Multimaps.synchronizedSetMultimap((SetMultimap<String, String>)Multimaps.newSetMultimap((Map<K, Collection<V>>)new HashMap<Object, Collection<V>>(), (Supplier<? extends Set<V>>)Store.setSupplier)) : Multimaps.newSetMultimap(new HashMap<String, Collection<String>>(), Store.setSupplier);
}
public Multimap<String, String> getOrCreate(String indexName) {
if (indexName.contains(".")) {
indexName = indexName.substring(indexName.lastIndexOf(".") + 1);
}
Multimap<String, String> mmap = this.storeMap.get(indexName);
if (mmap == null) {
this.storeMap.put(indexName, mmap = this.createMultimap());
}
return mmap;
}
@Nullable
public Multimap<String, String> get(final Class<? extends Scanner> scannerClass) {
return this.storeMap.get(scannerClass.getSimpleName());
}
public Set<String> get(final Class<? extends Scanner> scannerClass, final String... keys) {
final Set<String> result = (Set<String>)Sets.newHashSet();
final Multimap<String, String> map = this.get(scannerClass);
if (map != null) {
for (final String key : keys) {
result.addAll(map.get(key));
}
}
return result;
}
public Set<String> get(final Class<? extends Scanner> scannerClass, final Iterable<String> keys) {
final Set<String> result = (Set<String>)Sets.newHashSet();
final Multimap<String, String> map = this.get(scannerClass);
if (map != null) {
for (final String key : keys) {
result.addAll(map.get(key));
}
}
return result;
}
public Map<String, Multimap<String, String>> getStoreMap() {
return this.storeMap;
}
void merge(final Store outer) {
if (outer != null) {
for (final String indexName : outer.storeMap.keySet()) {
this.getOrCreate(indexName).putAll(outer.storeMap.get(indexName));
}
}
}
public Integer getKeysCount() {
Integer keys = 0;
for (final Multimap<String, String> multimap : this.storeMap.values()) {
keys += multimap.keySet().size();
}
return keys;
}
public Integer getValuesCount() {
Integer values = 0;
for (final Multimap<String, String> multimap : this.storeMap.values()) {
values += multimap.size();
}
return values;
}
public Set<String> getSubTypesOf(final String type) {
final Set<String> result = new HashSet<String>();
final Set<String> subTypes = this.get(SubTypesScanner.class, type);
result.addAll(subTypes);
for (final String subType : subTypes) {
result.addAll(this.getSubTypesOf(subType));
}
return result;
}
public Set<String> getTypesAnnotatedWithDirectly(final String annotation) {
return this.get(TypeAnnotationsScanner.class, annotation);
}
public Set<String> getTypesAnnotatedWith(final String annotation) {
return this.getTypesAnnotatedWith(annotation, true);
}
public Set<String> getTypesAnnotatedWith(final String annotation, final boolean honorInherited) {
final Set<String> result = new HashSet<String>();
if (this.isAnnotation(annotation)) {
final Set<String> types = this.getTypesAnnotatedWithDirectly(annotation);
final Set<String> inherited = this.getInheritedSubTypes(types, annotation, honorInherited);
result.addAll(inherited);
}
return result;
}
public Set<String> getInheritedSubTypes(final Iterable<String> types, final String annotation, final boolean honorInherited) {
final Set<String> result = (Set<String>)Sets.newHashSet((Iterable<?>)types);
if (honorInherited && this.isInheritedAnnotation(annotation)) {
for (final String type : types) {
if (this.isClass(type)) {
result.addAll(this.getSubTypesOf(type));
}
}
}
else if (!honorInherited) {
for (final String type : types) {
if (this.isAnnotation(type)) {
result.addAll(this.getTypesAnnotatedWith(type, false));
}
else {
result.addAll(this.getSubTypesOf(type));
}
}
}
return result;
}
public Set<String> getMethodsAnnotatedWith(final String annotation) {
return this.get(MethodAnnotationsScanner.class, annotation);
}
public Set<String> getFieldsAnnotatedWith(final String annotation) {
return this.get(FieldAnnotationsScanner.class, annotation);
}
public Set<String> getResources(final String key) {
return this.get(ResourcesScanner.class, key);
}
public Set<String> getResources(final Predicate<String> namePredicate) {
final Multimap<String, String> mmap = this.get(ResourcesScanner.class);
if (mmap != null) {
return this.get(ResourcesScanner.class, Collections2.filter(mmap.keySet(), namePredicate));
}
return (Set<String>)Sets.newHashSet();
}
public Set<String> getResources(final Pattern pattern) {
return this.getResources(new Predicate<String>() {
public boolean apply(final String input) {
return pattern.matcher(input).matches();
}
});
}
public boolean isClass(final String type) {
return !this.isInterface(type);
}
public boolean isInterface(final String aClass) {
return ReflectionUtils.forName(aClass, new ClassLoader[0]).isInterface();
}
public boolean isAnnotation(final String typeAnnotatedWith) {
final Multimap<String, String> mmap = this.get(TypeAnnotationsScanner.class);
return mmap != null && mmap.keySet().contains(typeAnnotatedWith);
}
public boolean isInheritedAnnotation(final String typeAnnotatedWith) {
final Multimap<String, String> mmap = this.get(TypeAnnotationsScanner.class);
return mmap != null && mmap.get(Inherited.class.getName()).contains(typeAnnotatedWith);
}
static {
setSupplier = new Supplier<Set<String>>() {
public Set<String> get() {
return (Set<String>)Sets.newHashSet();
}
};
}
}
|
[
"maohongbin01@baidu.com"
] |
maohongbin01@baidu.com
|
d30cedb0b313db9060d69b272f47bcba63b08b57
|
bb6f78a899a1a0deada689157668b4cc22d6e8cd
|
/project/SpecialEffectsColletion/app/src/main/java/hong/specialEffects/wight/PlasmaView.java
|
772d7250697b6a09127c0ae754334b3400d2a190
|
[] |
no_license
|
HAIWWH/androidobj
|
1f6c8889c31ef8b69fac90b1283d2a87b34baa6f
|
f77a4993621c188e6bd4efea96fffe87c211b0e0
|
refs/heads/master
| 2021-09-09T22:51:21.718243
| 2018-03-20T03:39:00
| 2018-03-20T03:39:00
| 125,815,460
| 0
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,703
|
java
|
package hong.specialEffects.wight;
import hong.specialEffects.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.view.MotionEvent;
import android.view.View;
public class PlasmaView extends View implements View.OnTouchListener{
private Bitmap mBitmap;
public PlasmaView(Context context) {
super(context);
this.setOnTouchListener(this);
}
@Override
protected void onDraw(Canvas canvas) {
if(mBitmap==null){
Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),R.drawable.mm);
Matrix matrix=new Matrix();
matrix.setScale(this.getWidth()/(float)bmp.getWidth(), this.getHeight()/(float)bmp.getHeight());
//mBitmap = Bitmap.createBitmap(bmp.getWidth(), bmp.getHeight(), Bitmap.Config.RGB_565);\
mBitmap = Bitmap.createBitmap(bmp,0,0,bmp.getWidth(),bmp.getHeight(),matrix,true);
AnimRender.setBitmap(mBitmap);
}
AnimRender.render(mBitmap);
canvas.drawBitmap(mBitmap, 0, 0, null);
postInvalidate();
}
@Override
public boolean onTouch(View v, MotionEvent event) {
//测试了以下height参数,这个参数的名字应该叫做weight,值越大,则水波效果越明显
AnimRender.drop((int)event.getX(), (int)event.getY(), 3600);
return false;
}
}
class AnimRender{
public static native void setBitmap(Bitmap src);
public static native void render(Bitmap dst);
public static native void drop(int x, int y, int height);
static {
System.loadLibrary("plasma");
}
}
|
[
"1455166220@qq.com"
] |
1455166220@qq.com
|
114f076c69a20c3e0e6c9fda170b8faeeb9ab14e
|
320a43287196b09eb160137a33a22312e6677c6a
|
/cf-forgot-arithmetic/src/main/java/org/cf/forgot/arithmetic/按序打印/Foo.java
|
de8f18b793dbede6f93da2111e0204de153a4290
|
[] |
no_license
|
yangzw137/cf-forgot-java
|
050a389069d5da0b294f2511755798e68ebd9a8a
|
7b23eefaa1e58790eef81367779b6eece2f94ecb
|
refs/heads/master
| 2023-05-14T05:44:43.899461
| 2021-06-06T03:05:58
| 2021-06-06T03:05:58
| 287,706,495
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,847
|
java
|
package org.cf.forgot.arithmetic.按序打印;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author 杨志伟
* @date 2020/8/10
*/
class Foo {
private byte[] flag = new byte[3];
private Lock lock = new ReentrantLock();
private Condition condition1 = lock.newCondition();
private Condition condition2 = lock.newCondition();
public Foo() {
}
public void first(Runnable printFirst) throws InterruptedException {
lock.lock();
try {
// printFirst.run() outputs "first". Do not change or remove this line.
printFirst.run();
}finally {
flag[0] = 1;
if(condition1 != null) {
condition1.signal();
}
lock.unlock();
}
}
public void second(Runnable printSecond) throws InterruptedException {
lock.lock();
try {
if(flag[0] == 0) {
condition1 = lock.newCondition();
condition1.await();
}
// printSecond.run() outputs "second". Do not change or remove this line.
printSecond.run();
} finally {
flag[1] = 1;
if(condition2 != null) {
condition2.signal();
}
lock.unlock();
}
}
public void third(Runnable printThird) throws InterruptedException {
lock.lock();
try {
if(flag[1] == 0) {
condition2 = lock.newCondition();
condition2.await();
}
// printThird.run() outputs "third". Do not change or remove this line.
printThird.run();
}finally {
flag[2] = 1;
lock.unlock();
}
}
}
|
[
"yangzhiwei@jd.com"
] |
yangzhiwei@jd.com
|
1f35b77ab8ad0f5997562cc01fbe9ef7b0b0c531
|
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
|
/google/ads/googleads/v6/googleads-java/gapic-googleads-java/src/main/java/com/google/ads/googleads/v6/services/stub/GrpcBillingSetupServiceCallableFactory.java
|
d0b1dd64bcae6d6eb6ecb04b70565fd272548e43
|
[
"Apache-2.0"
] |
permissive
|
oltoco/googleapis-gen
|
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
|
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
|
refs/heads/master
| 2023-07-17T22:11:47.848185
| 2021-08-29T20:39:47
| 2021-08-29T20:39:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,783
|
java
|
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.ads.googleads.v6.services.stub;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcCallableFactory;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.BatchingCallSettings;
import com.google.api.gax.rpc.BidiStreamingCallable;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientStreamingCallable;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.StreamingCallSettings;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* gRPC callable factory implementation for the BillingSetupService service API.
*
* <p>This class is for advanced usage.
*/
@Generated("by gapic-generator-java")
public class GrpcBillingSetupServiceCallableFactory implements GrpcStubCallableFactory {
@Override
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
UnaryCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
}
@Override
public <RequestT, ResponseT, PagedListResponseT>
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
}
@Override
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
BatchingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBatchingCallable(
grpcCallSettings, callSettings, clientContext);
}
@Override
public <RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
ClientContext clientContext,
OperationsStub operationsStub) {
return GrpcCallableFactory.createOperationCallable(
grpcCallSettings, callSettings, clientContext, operationsStub);
}
@Override
public <RequestT, ResponseT>
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
StreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBidiStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}
@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createServerStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}
@Override
public <RequestT, ResponseT>
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
StreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createClientStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
94575ae8c7103996898ba12647f80cabd770ec9f
|
372ef3a753c116908b6494e9b5622a1a95a8c567
|
/src/com/example/specialeffectsandroid/customloading/collect/TriangleSkewSpinIndicator.java
|
e86b631c4769ebf9c5ad6e0495fbd019a78e0b55
|
[] |
no_license
|
xunleji/SpecialEffectsAndroid1
|
1479c0ae5bdec9e18c815d9c641c7143aa698248
|
0d4dfc621c459bfa18efe9e4c9539e2ebe223d6a
|
refs/heads/master
| 2021-01-01T05:28:41.228362
| 2016-05-03T03:09:06
| 2016-05-03T03:09:06
| 57,937,634
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,508
|
java
|
package com.example.specialeffectsandroid.customloading.collect;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.view.animation.LinearInterpolator;
import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.animation.ObjectAnimator;
import com.nineoldandroids.animation.PropertyValuesHolder;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Jack on 2015/10/20.
*/
public class TriangleSkewSpinIndicator extends BaseIndicatorController {
@Override
public void draw(Canvas canvas, Paint paint) {
Path path=new Path();
path.moveTo(getWidth()/5,getHeight()*4/5);
path.lineTo(getWidth()*4/5, getHeight()*4/5);
path.lineTo(getWidth()/2,getHeight()/5);
path.close();
canvas.drawPath(path, paint);
}
@Override
public List<Animator> createAnimation() {
List<Animator> animators=new ArrayList<Animator>();
PropertyValuesHolder rotation5=PropertyValuesHolder.ofFloat("rotationX",0,180,180,0,0);
PropertyValuesHolder rotation6=PropertyValuesHolder.ofFloat("rotationY",0,0,180,180,0);
ObjectAnimator animator=ObjectAnimator.ofPropertyValuesHolder(getTarget(), rotation6,rotation5);
animator.setInterpolator(new LinearInterpolator());
animator.setRepeatCount(-1);
animator.setDuration(2500);
animator.start();
animators.add(animator);
return animators;
}
}
|
[
"you@example.com"
] |
you@example.com
|
81dff6021f5a38aa5dc6164b12ab04ff0242e1a0
|
fcc88521f63a3c22c81a9242ae3b203f2ea888fd
|
/Java/0908-Smallest-Range-I/soln.java
|
a224fc696ab2d1706b1ec7ed1a2b8bc5ab97795e
|
[
"MIT"
] |
permissive
|
wyaadarsh/LeetCode-Solutions
|
b5963e3427aa547d485d3a2cb24e6cedc72804fd
|
3719f5cb059eefd66b83eb8ae990652f4b7fd124
|
refs/heads/master
| 2022-12-06T15:50:37.930987
| 2020-08-30T15:49:27
| 2020-08-30T15:49:27
| 291,811,790
| 0
| 1
|
MIT
| 2020-08-31T19:57:35
| 2020-08-31T19:57:34
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
class Solution {
public int smallestRangeI(int[] A, int K) {
int mn = A[0], mx = A[0];
for(int num : A) {
mn = Math.min(mn, num);
mx = Math.max(mx, num);
}
if (mx - mn > 2 * K) return mx - mn - 2 * K;
else return 0;
}
}
|
[
"zhang623@wisc.edu"
] |
zhang623@wisc.edu
|
bfc6a89ec5a969d444e83f64172cb76a5213da8f
|
5928bc46d350fbb1abd6dfe6be598033b63ea7ed
|
/upay-mpaisa/src/main/java/af/asr/mpaisa/message/billpayment/OnlineBillPaymentResponse.java
|
f2ba2e5ea8f8c55b56329b825c295153aafc2e04
|
[] |
no_license
|
mohbadar/upay
|
3fa4808b298a1e06a62130ace8c97cc230cbb0c1
|
c40c46d305abf0e1b0a1fd5ecd50202864985931
|
refs/heads/master
| 2023-06-22T07:58:23.959294
| 2020-01-06T11:05:54
| 2020-01-06T11:05:54
| 231,886,323
| 1
| 0
| null | 2023-06-14T22:26:05
| 2020-01-05T08:04:01
|
Java
|
UTF-8
|
Java
| false
| false
| 1,352
|
java
|
package af.asr.mpaisa.message.billpayment;
import lombok.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
<?xml version="1.0"?>
<COMMAND>
<TYPE> RCPMBRESP</TYPE>
<TXNID><Transaction ID></TXNID>
<TXNSTATUS><Transaction Status></TXNSTATUS>
<OPT1><Optional Field 1></OPT1>
<OPT2><Optional Field 2></OPT2>
</COMMAND>
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
@XmlRootElement(name = "COMMAND")
@XmlAccessorType(XmlAccessType.FIELD)
public class OnlineBillPaymentResponse {
@XmlElement
private String TYPE;
@XmlElement
private String TXNID;
@XmlElement
private int TXNSTATUS;
@XmlElement
private String OPT1;
@XmlElement
private String OPT2;
/**
* Tag Fields Example Max
* Lengt
* h Optional/
* Mandatory Remarks
* TYPE CPMBRESP RCPMBRESP 10 M Response Type
* TXNID <Transaction ID> BP070608.1512.000001 20 M M-Paisa Transaction ID for
* the Bill Payment Transaction.
* Used for informative purpose.
* TXNSTATUS <Transaction Status> 200 10 M Various transaction status
* Failed, Success etc
* OPT1 Optional Field 1 20 O OPT2 Optional Field 2 20 O
*/
}
|
[
"mohammadbadarhashimi@gmail.com"
] |
mohammadbadarhashimi@gmail.com
|
2d2499d3fe573d468fcdcd658877c98930da3544
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13138-1-25-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/XWikiHibernateStore_ESTest.java
|
6848937b544702180d683964b9f8015a660ca91f
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 564
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Apr 03 05:11:42 UTC 2020
*/
package com.xpn.xwiki.store;
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 XWikiHibernateStore_ESTest extends XWikiHibernateStore_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
c98b9edf53569413c6b882bccf732b351726464d
|
7599aceac99330f4036f6c03074b5a56f4dd4d6d
|
/src/templates/org/lwjgl/opengl/AMD_shader_stencil_export.java
|
c7824fa9da5c8c1cef2f3f20d2b5e2ffd3847afb
|
[] |
no_license
|
Mojang/lwjgl
|
73e50f3fdfe9ce37f62b1c89b9bed488b604ebf7
|
4a8e5bf4f7c24c835bc656a4e2bc12fc502bbfa7
|
refs/heads/master
| 2023-07-17T13:17:38.966415
| 2014-12-14T17:00:49
| 2014-12-14T17:00:49
| 28,223,413
| 17
| 6
| null | 2016-09-05T06:09:57
| 2014-12-19T09:38:21
|
Java
|
UTF-8
|
Java
| false
| false
| 1,677
|
java
|
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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 'LWJGL' 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 org.lwjgl.opengl;
public interface AMD_shader_stencil_export {
}
|
[
"iotsakp@gmail.com"
] |
iotsakp@gmail.com
|
1619ea5df3a04946d4f93d31c6afc8760b0f3f07
|
963212f9ece3f4e13a4f0213e7984dab1df376f5
|
/qardio_source/cfr_dec/com/getqardio/android/googlefit/RxBloodPressureApi$$Lambda$10.java
|
9e4a5a6c06a28739b95957e8609544d258960623
|
[] |
no_license
|
weitat95/mastersDissertation
|
2648638bee64ea50cc93344708a58800a0f2af14
|
d465bb52b543dea05c799d1972374e877957a80c
|
refs/heads/master
| 2020-06-08T17:31:51.767796
| 2019-12-15T19:09:41
| 2019-12-15T19:09:41
| 193,271,681
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,200
|
java
|
/*
* Decompiled with CFR 0.147.
*/
package com.getqardio.android.googlefit;
import com.getqardio.android.googlefit.RxBloodPressureApi;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.fitness.data.DataSource;
import io.reactivex.SingleEmitter;
import java.lang.invoke.LambdaForm;
import java.util.List;
final class RxBloodPressureApi$$Lambda$10
implements ResultCallback {
private final DataSource arg$1;
private final SingleEmitter arg$2;
private final List arg$3;
private RxBloodPressureApi$$Lambda$10(DataSource dataSource, SingleEmitter singleEmitter, List list) {
this.arg$1 = dataSource;
this.arg$2 = singleEmitter;
this.arg$3 = list;
}
public static ResultCallback lambdaFactory$(DataSource dataSource, SingleEmitter singleEmitter, List list) {
return new RxBloodPressureApi$$Lambda$10(dataSource, singleEmitter, list);
}
@LambdaForm.Hidden
public void onResult(Result result) {
RxBloodPressureApi.lambda$null$3(this.arg$1, this.arg$2, this.arg$3, (Status)result);
}
}
|
[
"weitat95@live.com"
] |
weitat95@live.com
|
eea0d708303dd561f30781cd2a534d2a051840d5
|
2e03da8505fba2f5fba0aa96096240cfe1584490
|
/crunchyroll/crunchyroll2-0-3/roboguice/inject/RoboInjector.java
|
2534a68b0a2821c416dccb0bfd54c0e7d4c1a8a8
|
[] |
no_license
|
JairoBm13/crunchywomod
|
c00f8535a76ee7a5e0554d766ddc08b608e57f9b
|
90ad43cdf12e41fc6ff2323ec5d6d94cc45a1c52
|
refs/heads/master
| 2021-01-20T14:48:30.312526
| 2017-05-08T21:37:16
| 2017-05-08T21:37:16
| 90,674,385
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 382
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package roboguice.inject;
import android.support.v4.app.Fragment;
import android.app.Activity;
import com.google.inject.Injector;
public interface RoboInjector extends Injector
{
void injectMembersWithoutViews(final Object p0);
void injectViewMembers(final Activity p0);
void injectViewMembers(final Fragment p0);
}
|
[
"j.bautista.m13@outlook.com"
] |
j.bautista.m13@outlook.com
|
f02875f4264d35708f6e0fe09db0f5ef8f863b4e
|
f10ee1aa5785becdb44a2341a2bc7b4e88131c6f
|
/String/src/StringPermutation.java
|
57a3cf7f35ab6a5e16e5c7a6f1d82c91fc933894
|
[] |
no_license
|
manu310397/dsa-java
|
74441fbb15bd8878e340d10cc804df7f0c479c7e
|
8abb0f5e32158ab55736be557d13b9633962f3e3
|
refs/heads/main
| 2023-08-17T14:54:22.241548
| 2023-08-11T04:08:31
| 2023-08-11T04:08:31
| 264,654,071
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,919
|
java
|
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class StringPermutation {
private static String input = "abc";
private static int[] nums = {1,2,3};
public static void main(String[] args) {
List<List<String>> permutationList = new ArrayList<>();
List<String> tempList = new ArrayList<>();
List<List<Integer>> permutationListInt = new ArrayList<>();
List<Integer> tempListInt = new ArrayList<>();
boolean[] pick = new boolean[input.length()];
Arrays.fill(pick, false);
// recurPermutation(input, permutationList, tempList, pick);
recurPermutationInteger(nums, permutationListInt, tempListInt, pick);
System.out.println(permutationListInt);
}
private static void recurPermutation(String str, List<List<String>> result, List<String> temp, boolean[] pick) {
if(temp.size() == str.length()) {
result.add(new ArrayList<>(temp));
return;
}
char[] s = str.toCharArray();
for(int i=0; i<s.length; i++) {
if(!pick[i]) {
temp.add(String.valueOf(s[i]));
pick[i] = true;
recurPermutation(str, result, temp, pick);
pick[i] = false;
temp.remove(temp.size() - 1);
}
}
}
private static void recurPermutationInteger(int[] nums, List<List<Integer>> result, List<Integer> temp, boolean[] pick) {
if(temp.size() == nums.length) {
result.add(new ArrayList<>(temp));
return;
}
for(int i=0; i<nums.length; i++) {
if(!pick[i]) {
temp.add(nums[i]);
pick[i] = true;
recurPermutationInteger(nums, result, temp, pick);
pick[i] = false;
temp.remove(temp.size() - 1);
}
}
}
}
|
[
"manojb912@gmail.com"
] |
manojb912@gmail.com
|
bd4d2c17aa50bcadb30d149ff6108d41b480eaa8
|
8bf3e420a2856cccef183cc8ec0d045c7521167f
|
/src/main/java/io/jsadaoui/training/web/rest/errors/package-info.java
|
7903f86d50b04e4a910ce6271e2a1d92f3cc4d56
|
[] |
no_license
|
juliensadaoui/accountancy
|
2bfa457ec03417d8e77b8ba3d1aa55b456fe83f4
|
a801fa6ac2f709c1bf1e2b48a81887023c406b97
|
refs/heads/master
| 2020-11-27T11:38:35.333814
| 2020-09-22T11:42:02
| 2020-09-22T11:42:36
| 214,488,785
| 0
| 1
| null | 2019-10-11T17:05:04
| 2019-10-11T17:01:13
|
Java
|
UTF-8
|
Java
| false
| false
| 195
|
java
|
/**
* Specific errors used with Zalando's "problem-spring-web" library.
*
* More information on https://github.com/zalando/problem-spring-web
*/
package io.jsadaoui.training.web.rest.errors;
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
aaeb37b08cee3ac52c8bea995a6f78daf7485481
|
243a31a30a60dbf7521e2e0d780177b5851d3b71
|
/core-java-modules/core-java-lang-syntax/src/main/java/www/tom/com/oop/enumusuage/PizzaDeliverySystemConfiguration.java
|
328cd73bb01fcc8bff31753ca4f524a258739f07
|
[] |
no_license
|
tomlxq/tutorials
|
db6c5524d0324631c4b5d9338ed9e20b9efa87f7
|
3bd7739e89b6d5dff3e4518c0b8fe98425600809
|
refs/heads/master
| 2020-12-19T07:13:42.578910
| 2020-07-19T16:23:10
| 2020-07-19T16:23:10
| 235,655,480
| 0
| 0
| null | 2020-06-13T02:00:22
| 2020-01-22T20:00:48
|
Java
|
UTF-8
|
Java
| false
| false
| 600
|
java
|
package www.tom.com.oop.enumusuage;
/**
* 功能描述
*
* @author TomLuo
* @date 2020/1/19
*/
public enum PizzaDeliverySystemConfiguration {
INSTANCE;
PizzaDeliverySystemConfiguration() {
// Initialization configuration which involves
// overriding defaults like delivery strategy
}
private PizzaDeliveryStrategy deliveryStrategy = PizzaDeliveryStrategy.NORMAL;
public static PizzaDeliverySystemConfiguration getInstance() {
return INSTANCE;
}
public PizzaDeliveryStrategy getDeliveryStrategy() {
return deliveryStrategy;
}
}
|
[
"21429503@qq.com"
] |
21429503@qq.com
|
f36b299963b04d82b9b8e757d754caf19334a74d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_0df799e8427d40382038e52062296cca6fb44169/QueueTest/4_0df799e8427d40382038e52062296cca6fb44169_QueueTest_t.java
|
4e19b682dbbd84fe46e93d19d80e26ef738d649a
|
[] |
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
| 645
|
java
|
import junit.framework.*;
/** A simple test case for Queue */
public class QueueTest extends TestCase {
/** JUnit test classes require this constructor */
public QueueTest(String name) {
super(name);
}
protected Queue q;
public void setUp() {
q = new Queue();
q.q_add("One");
q.q_add("Two");
}
public void testQueue() {
assertEquals(q.q_take(), "One");
assertEquals(q.q_take(), "Two");
q.q_add("Three");
assertEquals(q.q_take(), "Three");
// assert(q.size() == 0);
if (q.size() == 0)
throw new IllegalArgumentException("q.size() returns 0 for 3");
System.out.println("DONE");
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
0f5775e783aa3ca596549980bd5243fb9050a0a7
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/plugin/brandservice/a/c.java
|
9a236ce7837b1ca533b35f1941c33bcaef8f72ea
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,538
|
java
|
package com.tencent.mm.plugin.brandservice.a;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import com.tencent.mm.ad.e;
import com.tencent.mm.ad.k;
import com.tencent.mm.f.a.ag;
import com.tencent.mm.plugin.brandservice.ui.BizSearchDetailPageUI;
import com.tencent.mm.protocal.c.aou;
import com.tencent.mm.protocal.c.jm;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.y.as;
import com.tencent.wcdb.database.SQLiteDatabase;
public final class c {
private static class a implements e {
private Context context;
private String foW;
private long foX;
private boolean foY;
private int fromScene;
private ag kKp;
private int offset;
private String title;
public a(Context context, String str, long j, int i, int i2, String str2, boolean z, ag agVar) {
this.context = context;
this.foW = str;
this.foX = j;
this.offset = i;
this.fromScene = i2;
this.title = str2;
this.foY = z;
this.kKp = agVar;
}
public final void a(int i, int i2, String str, k kVar) {
x.i("MicroMsg.BrandService.BrandServiceLogic", "errType (%d) , errCode (%d) , errMsg (errMsg)", Integer.valueOf(i), Integer.valueOf(i2), str);
if (i != 0 || i2 != 0) {
dZ(false);
} else if (kVar == null) {
x.e("MicroMsg.BrandService.BrandServiceLogic", "scene is null.");
dZ(false);
} else if (kVar.getType() != 1071) {
x.i("MicroMsg.BrandService.BrandServiceLogic", "The NetScene is not a instanceof BizSearchDetailPage.");
} else {
x.i("MicroMsg.BrandService.BrandServiceLogic", "BizSearchDetailPage.");
jm asS = ((h) kVar).asS();
if (asS == null || asS.nmz == null) {
x.e("MicroMsg.BrandService.BrandServiceLogic", "response or BusinessContent or itemList is null.");
dZ(false);
return;
}
x.d("MicroMsg.BrandService.BrandServiceLogic", "searchId : %s.", asS.vWw);
Intent intent = new Intent(this.context, BizSearchDetailPageUI.class);
intent.putExtra("addContactScene", 35);
intent.putExtra("fromScene", this.fromScene);
intent.putExtra("keyword", this.foW);
intent.putExtra("businessType", this.foX);
intent.putExtra("offset", this.offset);
intent.putExtra("title", this.title);
intent.putExtra("showEditText", this.foY);
try {
intent.putExtra("result", asS.toByteArray());
if (!(this.context instanceof Activity)) {
intent.addFlags(SQLiteDatabase.CREATE_IF_NECESSARY);
}
dZ(true);
} catch (Throwable e) {
dZ(false);
x.printErrStackTrace("MicroMsg.BrandService.BrandServiceLogic", e, "", new Object[0]);
}
}
}
private void dZ(boolean z) {
as.CN().b(1071, (e) this);
if (this.kKp != null && this.kKp.foU.foZ != null) {
this.kKp.foV.fpa = z;
this.kKp.foU.foZ.run();
}
}
}
public static aou Jk() {
try {
as.Hm();
String str = (String) com.tencent.mm.y.c.Db().get(67591, null);
if (str != null) {
aou aou = new aou();
String[] split = str.split(",");
aou.wjv = Integer.valueOf(split[0]).intValue();
aou.wjy = Integer.valueOf(split[1]).intValue();
aou.vXy = ((float) Integer.valueOf(split[2]).intValue()) / 1000000.0f;
aou.vXx = ((float) Integer.valueOf(split[3]).intValue()) / 1000000.0f;
x.i("MicroMsg.BrandService.BrandServiceLogic", "lbs location is not null, %f, %f", Float.valueOf(aou.vXy), Float.valueOf(aou.vXx));
return aou;
}
x.i("MicroMsg.BrandService.BrandServiceLogic", "lbs location is null, lbsContent is null!");
return null;
} catch (Exception e) {
x.i("MicroMsg.BrandService.BrandServiceLogic", "lbs location is null, reason %s", e.getMessage());
return null;
}
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
d14117c0aebe33d49439740076c4a1d4848afd75
|
c0b312c7418f22ccbe1b1b3358667838e00b6243
|
/src/com/gridscape/sep/org/zigbee/sep/CreditRegister.java
|
761aa24ecafdc53efd14dd893224f6ce0091195c
|
[] |
no_license
|
rahul-me/e-ope
|
cb8005ad93dfe9b5b2f792379f33b678c1bc76a3
|
3b2e76c3c0109ab10eb2caf013ed541ed54fb260
|
refs/heads/master
| 2022-04-16T18:17:45.953574
| 2020-04-10T17:44:41
| 2020-04-10T17:44:41
| 254,696,703
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,689
|
java
|
package com.gridscape.sep.org.zigbee.sep;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* CreditRegister instances define a credit-modifying transaction. Typically this would be a credit-adding transaction, but may be a subtracting transaction (perhaps in response to an out-of-band debt signal).
*
* <p>Java class for CreditRegister complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CreditRegister">
* <complexContent>
* <extension base="{http://zigbee.org/sep}IdentifiedObject">
* <sequence>
* <element name="creditAmount" type="{http://zigbee.org/sep}AccountingUnit"/>
* <element name="creditType" type="{http://zigbee.org/sep}CreditTypeType" minOccurs="0"/>
* <element name="effectiveTime" type="{http://zigbee.org/sep}TimeType"/>
* <element name="token" type="{http://zigbee.org/sep}String32"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CreditRegister", propOrder = {
"creditAmount",
"creditType",
"effectiveTime",
"token"
})
public class CreditRegister
extends IdentifiedObject
{
@XmlElement(required = true)
protected AccountingUnit creditAmount;
protected CreditTypeType creditType;
@XmlElement(required = true)
protected TimeType effectiveTime;
@XmlElement(required = true)
protected String token;
/**
* Gets the value of the creditAmount property.
*
* @return
* possible object is
* {@link AccountingUnit }
*
*/
public AccountingUnit getCreditAmount() {
return creditAmount;
}
/**
* Sets the value of the creditAmount property.
*
* @param value
* allowed object is
* {@link AccountingUnit }
*
*/
public void setCreditAmount(AccountingUnit value) {
this.creditAmount = value;
}
/**
* Gets the value of the creditType property.
*
* @return
* possible object is
* {@link CreditTypeType }
*
*/
public CreditTypeType getCreditType() {
return creditType;
}
/**
* Sets the value of the creditType property.
*
* @param value
* allowed object is
* {@link CreditTypeType }
*
*/
public void setCreditType(CreditTypeType value) {
this.creditType = value;
}
/**
* Gets the value of the effectiveTime property.
*
* @return
* possible object is
* {@link TimeType }
*
*/
public TimeType getEffectiveTime() {
return effectiveTime;
}
/**
* Sets the value of the effectiveTime property.
*
* @param value
* allowed object is
* {@link TimeType }
*
*/
public void setEffectiveTime(TimeType value) {
this.effectiveTime = value;
}
/**
* Gets the value of the token property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToken() {
return token;
}
/**
* Sets the value of the token property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToken(String value) {
this.token = value;
}
}
|
[
"crahul10101991@gmail.com"
] |
crahul10101991@gmail.com
|
94b3976551434fe0ebdf71a0d13cecba70f59306
|
77ab252244005f80fbfc33f8e931a41e65e83e5a
|
/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/JdbcSessionDatabaseInitializer.java
|
b8c2bc8924cdd0dd3b1a1056e09ed968f96f0a09
|
[
"Apache-2.0"
] |
permissive
|
llsydn/spring-boot
|
d4401969d8ca51937bda7736fabea82944417c39
|
b88906cf98c4aa307952d27696897b2d4384b7e8
|
refs/heads/master
| 2023-01-03T12:14:42.767063
| 2019-09-26T08:53:10
| 2019-09-26T08:53:10
| 171,982,414
| 2
| 1
|
Apache-2.0
| 2022-12-27T14:50:56
| 2019-02-22T02:44:30
|
Java
|
UTF-8
|
Java
| false
| false
| 1,580
|
java
|
/*
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.autoconfigure.session;
import javax.sql.DataSource;
import org.springframework.boot.autoconfigure.AbstractDatabaseInitializer;
import org.springframework.core.io.ResourceLoader;
import org.springframework.util.Assert;
/**
* Initializer for Spring Session schema.
*
* @author Vedran Pavic
* @since 1.4.0
*/
public class JdbcSessionDatabaseInitializer extends AbstractDatabaseInitializer {
private final SessionProperties.Jdbc properties;
public JdbcSessionDatabaseInitializer(DataSource dataSource,
ResourceLoader resourceLoader, SessionProperties properties) {
super(dataSource, resourceLoader);
Assert.notNull(properties, "SessionProperties must not be null");
this.properties = properties.getJdbc();
}
@Override
protected boolean isEnabled() {
return this.properties.getInitializer().isEnabled();
}
@Override
protected String getSchemaLocation() {
return this.properties.getSchema();
}
}
|
[
"1091391667@qq.com"
] |
1091391667@qq.com
|
3002a09c94c34b8e92b25e08b5c3031b8e7748a9
|
5ec06dab1409d790496ce082dacb321392b32fe9
|
/clients/java-pkmst/generated/src/main/java/com/prokarma/pkmst/model/ComDayCqCommonsServletsRootMappingServletInfo.java
|
ed71cf6ae8759200eb76bc5378cc060757536772
|
[
"Apache-2.0"
] |
permissive
|
shinesolutions/swagger-aem-osgi
|
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
|
c2f6e076971d2592c1cbd3f70695c679e807396b
|
refs/heads/master
| 2022-10-29T13:07:40.422092
| 2021-04-09T07:46:03
| 2021-04-09T07:46:03
| 190,217,155
| 3
| 3
|
Apache-2.0
| 2022-10-05T03:26:20
| 2019-06-04T14:23:28
| null |
UTF-8
|
Java
| false
| false
| 5,592
|
java
|
package com.prokarma.pkmst.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.prokarma.pkmst.model.ComDayCqCommonsServletsRootMappingServletProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Response class to be returned by Api
* @author pkmst
*
*/
/**
* ComDayCqCommonsServletsRootMappingServletInfo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaPKMSTServerCodegen", date = "2019-08-05T00:55:06.958Z[GMT]")
public class ComDayCqCommonsServletsRootMappingServletInfo {
@JsonProperty("pid")
private String pid = null;
@JsonProperty("title")
private String title = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("properties")
private ComDayCqCommonsServletsRootMappingServletProperties properties = null;
@JsonProperty("bundle_location")
private String bundleLocation = null;
@JsonProperty("service_location")
private String serviceLocation = null;
public ComDayCqCommonsServletsRootMappingServletInfo pid(String pid) {
this.pid = pid;
return this;
}
/**
* Get pid
* @return pid
**/
@ApiModelProperty(value = "")
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public ComDayCqCommonsServletsRootMappingServletInfo title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@ApiModelProperty(value = "")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public ComDayCqCommonsServletsRootMappingServletInfo description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ComDayCqCommonsServletsRootMappingServletInfo properties(ComDayCqCommonsServletsRootMappingServletProperties properties) {
this.properties = properties;
return this;
}
/**
* Get properties
* @return properties
**/
@ApiModelProperty(value = "")
public ComDayCqCommonsServletsRootMappingServletProperties getProperties() {
return properties;
}
public void setProperties(ComDayCqCommonsServletsRootMappingServletProperties properties) {
this.properties = properties;
}
public ComDayCqCommonsServletsRootMappingServletInfo bundleLocation(String bundleLocation) {
this.bundleLocation = bundleLocation;
return this;
}
/**
* Get bundleLocation
* @return bundleLocation
**/
@ApiModelProperty(value = "")
public String getBundleLocation() {
return bundleLocation;
}
public void setBundleLocation(String bundleLocation) {
this.bundleLocation = bundleLocation;
}
public ComDayCqCommonsServletsRootMappingServletInfo serviceLocation(String serviceLocation) {
this.serviceLocation = serviceLocation;
return this;
}
/**
* Get serviceLocation
* @return serviceLocation
**/
@ApiModelProperty(value = "")
public String getServiceLocation() {
return serviceLocation;
}
public void setServiceLocation(String serviceLocation) {
this.serviceLocation = serviceLocation;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComDayCqCommonsServletsRootMappingServletInfo comDayCqCommonsServletsRootMappingServletInfo = (ComDayCqCommonsServletsRootMappingServletInfo) o;
return Objects.equals(this.pid, comDayCqCommonsServletsRootMappingServletInfo.pid) &&
Objects.equals(this.title, comDayCqCommonsServletsRootMappingServletInfo.title) &&
Objects.equals(this.description, comDayCqCommonsServletsRootMappingServletInfo.description) &&
Objects.equals(this.properties, comDayCqCommonsServletsRootMappingServletInfo.properties) &&
Objects.equals(this.bundleLocation, comDayCqCommonsServletsRootMappingServletInfo.bundleLocation) &&
Objects.equals(this.serviceLocation, comDayCqCommonsServletsRootMappingServletInfo.serviceLocation);
}
@Override
public int hashCode() {
return Objects.hash(pid, title, description, properties, bundleLocation, serviceLocation);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComDayCqCommonsServletsRootMappingServletInfo {\n");
sb.append(" pid: ").append(toIndentedString(pid)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" bundleLocation: ").append(toIndentedString(bundleLocation)).append("\n");
sb.append(" serviceLocation: ").append(toIndentedString(serviceLocation)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"cliffano@gmail.com"
] |
cliffano@gmail.com
|
09c81029f84be529d95fd6ecb5c7e0259ae0d869
|
ab87f80cdfca03a2b7e22706a33dc000fb9a81b1
|
/Ali Asad/DOM_XML_Generator/Main.java
|
2660a0b5d73a4ab3529c07eec244c6e04b199447
|
[] |
no_license
|
raja21068/Java-Programs
|
662610f316c7d474d838240e717143dfb267f91b
|
d9a19e6dd7c1688dd423629cdbeb293d32964aa8
|
refs/heads/master
| 2021-04-27T16:59:56.458867
| 2018-02-22T06:52:28
| 2018-02-22T06:52:28
| 122,307,080
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,102
|
java
|
import java.util.Vector;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
public class Main extends javax.swing.JFrame {
public Main() {
initComponents();
setLocationRelativeTo(null);
}
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
pathText = new javax.swing.JTextField();
browseButton = new javax.swing.JButton();
generateXmlButton = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
destinationPathText = new javax.swing.JTextField();
browseButton2 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setBackground(new java.awt.Color(0, 0, 0));
jLabel1.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("DOM XML Generator - By Ali Asad Khowaja");
jLabel1.setOpaque(true);
jLabel2.setText("Enter .mdb file:");
browseButton.setText("Browse..");
browseButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
browseButtonActionPerformed(evt);
}
});
generateXmlButton.setText("Generate XML");
generateXmlButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
generateXmlButtonActionPerformed(evt);
}
});
jLabel3.setText("Select destination path:");
browseButton2.setText("Browse..");
browseButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
browseButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 578, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(generateXmlButton)
.addComponent(jLabel3))
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(destinationPathText, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(pathText))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(browseButton)
.addComponent(browseButton2))))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(pathText, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(browseButton))
.addGap(18, 18, 18)
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(destinationPathText, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(browseButton2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
.addComponent(generateXmlButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(62, 62, 62)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void browseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseButtonActionPerformed
JFileChooser chooser = new JFileChooser();
FileNameExtensionFilter filter = new FileNameExtensionFilter(".mdb file", "mdb");
chooser.setFileFilter(filter);
int k = chooser.showOpenDialog(this);
if(k==JFileChooser.APPROVE_OPTION){
pathText.setText(chooser.getSelectedFile().getAbsolutePath());
}
}//GEN-LAST:event_browseButtonActionPerformed
private void generateXmlButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_generateXmlButtonActionPerformed
String path = pathText.getText();
if(path.isEmpty())
return;
String destination = destinationPathText.getText();
if(destination.isEmpty())
return;
try{
DatabaseManager db = new DatabaseManager(path);
System.out.println(path.substring(path.lastIndexOf("\\")+1, path.lastIndexOf(".")));
String dbName = path.substring(path.lastIndexOf("\\")+1, path.lastIndexOf("."));
Vector<String> tables = db.getTables();
for(int i=0 ; i<tables.size() ; i++){
String tableName = tables.elementAt(i);
Vector<String> columns = db.getColumns(tableName);
Vector<String> data = db.getData(tableName, columns.size());
WriteXML xml = new WriteXML(destination, dbName, tableName, columns, data);
xml.start();
}
}catch(Exception ex){ex.printStackTrace();}
}//GEN-LAST:event_generateXmlButtonActionPerformed
private void browseButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseButton2ActionPerformed
JFileChooser chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int k = chooser.showSaveDialog(this);
if(k==JFileChooser.APPROVE_OPTION){
destinationPathText.setText(chooser.getSelectedFile().getAbsolutePath());
}
}//GEN-LAST:event_browseButton2ActionPerformed
public static void main(String args[]) {
new Main().setVisible(true);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton browseButton;
private javax.swing.JButton browseButton2;
private javax.swing.JTextField destinationPathText;
private javax.swing.JButton generateXmlButton;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField pathText;
// End of variables declaration//GEN-END:variables
}
|
[
"rajakumarlohano@gmail.com"
] |
rajakumarlohano@gmail.com
|
c4ea33e09b53687a374051a87fa07746dbae79b4
|
97abe314f90c47105d0a5a987c86c8a5eee8ace2
|
/carbidev/com.nokia.tools.variant.carbidev_1.0.0.v20090225_01-11/src/com/nokia/tools/variant/carbidev/CarbideVCLIApplication.java
|
451f11e6568c0d2c8c317a117e507b803017450a
|
[] |
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,715
|
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.carbidev component.
******************************************************************************/
package com.nokia.tools.variant.carbidev;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import com.nokia.tools.vct.cli.GenericApplication;
public class CarbideVCLIApplication extends GenericApplication implements IApplication {
public CarbideVCLIApplication() {
// application id = com.nokia.tools.variant.carbidev.CarbideVCLIApplication
super("com.nokia.tools.variant.carbidev.CarbideVCLIApplication");
}
public Object start(IApplicationContext context) throws Exception {
return super.start(context);
}
public void stop() {
final IWorkbench workbench = PlatformUI.getWorkbench();
if (workbench != null) {
final Display display = workbench.getDisplay();
display.syncExec(new Runnable() {
public void run() {
if (!display.isDisposed())
workbench.close();
}
});
}
super.stop();
}
}
|
[
"none@none"
] |
none@none
|
34aa4e4dcec0b69833a2887b3c64cede1f03152d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/28/28_90e2b527b5aaa57aa7abc8a5e3e2a8e76e7dee34/ChangePasswordActivity/28_90e2b527b5aaa57aa7abc8a5e3e2a8e76e7dee34_ChangePasswordActivity_s.java
|
f232e5a26349307bb357cd15020ed73533c16e62
|
[] |
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
| 2,166
|
java
|
package com.horeca;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class ChangePasswordActivity extends MyActivity {
private Button button = null;
private EditText ancien_mdp = null;
private EditText nouveau_mdp = null;
private EditText confirmation_mdp = null;
private TextView password_error = null;
private TextView password_error2 = null;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_changepassword);
ancien_mdp = (EditText) findViewById(R.id.ancien_mdp);
nouveau_mdp = (EditText) findViewById(R.id.nouveau_mdp);
confirmation_mdp = (EditText) findViewById(R.id.password_confirmation);
password_error=(TextView) findViewById(R.id.password_err);
// password_error2=(TextView) findViewById(R.id.password_err2);
button = (Button) findViewById(R.id.change_pass_button);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
String ancienmdp = ancien_mdp.getText().toString();
String nouveaumdp = nouveau_mdp.getText().toString();
String confirmmdp = confirmation_mdp.getText().toString();
MySqliteHelper sqliteHelper = new MySqliteHelper(ChangePasswordActivity.this);
SQLiteDatabase db = sqliteHelper.getReadableDatabase();
int err = User.getCurrentUser().updatePassword(db, ancienmdp, nouveaumdp, confirmmdp);
if (err == User.INVALID_PASSWORD) {
password_error.setVisibility(View.GONE);
} else if (err == User.PASSWORDS_DONT_MATCH) {
password_error.setVisibility(View.VISIBLE);
password_error2.setVisibility(View.GONE);
} else {
password_error.setVisibility(View.GONE);
password_error2.setVisibility(View.VISIBLE);
finish();
}
db.close();
finish();
}
});
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
002de5fe1df31f588e6fd8991644d86666ae6bda
|
27ceb9728f25f76150e775845c002e901211c7c7
|
/Student Grading System/.history/src/Test/SQATest_20210520145012.java
|
90a1e37d5078c012cbe1ac944a3a04181e57e517
|
[] |
no_license
|
cormacmattimoe/SoftwareQualityAssuranceFinalCa
|
bd1f4f64fef3396e4dfdfac199d1876311841596
|
7d4d9e8b9d36b28e77b319d4e5061da93233a442
|
refs/heads/master
| 2023-05-06T11:50:58.072870
| 2021-05-21T09:04:55
| 2021-05-21T09:04:55
| 368,800,636
| 0
| 0
| null | 2021-05-21T09:04:56
| 2021-05-19T08:40:30
|
Java
|
UTF-8
|
Java
| false
| false
| 7,894
|
java
|
package Test;
import java.util.ArrayList;
import Driver.Controller;
import Entities.Rubric;
import Entities.StudentGrade;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.HashMap;
import java.util.ResourceBundle.Control;
public class SQATest {
// testing first commit to test suite
Controller controller = new Controller();
ArrayList<Rubric> listOfRubrics = new ArrayList<>();
@Test
public void testCreatingRubric()
{
assertTrue(controller.createRubric("Class1"));
assertTrue(controller.createRubric("Class2"));
assertTrue(controller.createRubric("Class3"));
assertTrue(controller.createRubric("D67"));
assertTrue(controller.createRubric("D68"));
}
@Test
public void testViewARubric()
{
assertTrue(controller.createRubric("Class1"));
assertTrue(controller.createRubric("Class2"));
assertTrue(controller.createRubric("Class3"));
assertTrue(controller.createRubric("D67"));
assertTrue(controller.createRubric("D68"));
Rubric r = new Rubric();
r = controller.getARubric("D68");
assertTrue(r.getRubricName().equals("D68"));
}
@Test
public void testCreateDuplicate()
{
assertTrue(controller.createRubric("Paul"));
assertFalse(controller.createRubric("Paul"));
assertFalse(controller.createRubric("Paul"));
}
@Test
public void testCreateCrierion()
{
assertTrue(controller.createRubric("Class1"));
assertTrue(controller.createCriterion("Class1", "C1"));
assertTrue(controller.createCriterion("Class1", "C2"));
assertTrue(controller.createCriterion("Class1", "C3"));
assertTrue(controller.createCriterion("Class1", "C4"));
assertTrue(controller.createCriterion("Class1", "C5"));
assertTrue(controller.createCriterion("Class1", "C6"));
assertTrue(controller.createCriterion("Class1", "C7"));
}
@Test
public void TestDuplicateCriteria()
{
assertTrue(controller.createCriterion("Class1", "C1"));
assertTrue(controller.createCriterion("Class1", "C1"));
}
@Test
public void TestcriterionMoreThan9()
{
assertTrue(controller.createRubric("Class1"));
assertTrue(controller.createCriterion("Class1", "C1"));
assertTrue(controller.createCriterion("Class1", "C2"));
assertTrue(controller.createCriterion("Class1", "C3"));
assertTrue(controller.createCriterion("Class1", "C4"));
assertTrue(controller.createCriterion("Class1", "C5"));
assertTrue(controller.createCriterion("Class1", "C6"));
assertTrue(controller.createCriterion("Class1", "C7"));
assertTrue(controller.createCriterion("Class1", "C8"));
assertTrue(controller.createCriterion("Class1", "C9"));
assertFalse(controller.createCriterion("Class1", "C10"));
}
/*
// 3. Test if Criterion can be added to Rubric
@Test
public void testAddingACriterionToRubric() {
ArrayList<String> criterion = new ArrayList<>();
criterion.add(new String("Design"));
criterion.add(new String("Implementation"));
criterion.add(new String("Testing"));
criterion.add(new String("Documentation"));
Rubric rubric = controller.createRubric("Software Quality Assurance" );
ArrayList<String> criterionList = controller.createCriterion("Extra", "rubric");
assertEquals("Extra", criterionList.get(criterionList.size() - 1));
}
*/
// Test for creating a student grade in a rubric
@Test
public void testCreateStudentGrade() {
Rubric rubric= controller.createNewRubric("DT354");
String sQACriterion="SQA";
String madCrierion="MAD";
controller.addCriterionToRubric(rubric, sQACriterion);
controller.addCriterionToRubric(rubric, madCrierion);
StudentGrade grade=controller.createStudentGrade(rubric,"Cormac",3);
HashMap<String, Integer> criterionMarks=rubric.getGrades().get(0).getMarks();
assertEquals(new Integer(3),criterionMarks.get(sQACriterion));
assertEquals(new Integer(3),criterionMarks.get(madCrierion));
assertEquals("Cormac",grade.getStudentName());
}
//Testing if students grades added successfully
@Test
public void testGetStudentGrades() {
Rubric rubric = controller.createNewRubric("DT354");
String sQACriterion="SQA";
String madCriterion="MAD";
controller.addCriterionToRubric(rubric, sQACriterion);
controller.addCriterionToRubric(rubric, madCriterion);
StudentGrade gStudentGrade = controller.createStudentGrade(rubric,"Tom",2);
StudentGrade stGrade = controller.createStudentGrade(rubric,"Paul",1);
assertEquals(2,rubric.getGrades().size());
assertEquals("Tom",rubric.getGrades().get(2).getStudentName());
assertEquals("Paul",rubric.getGrades().get(1).getStudentName());
}
//Testing if average in rubric is calulated correctly
@Test
public void testAverageOfARubric() {
Rubric rubric=controller.createNewRubric("DT354");
String sQACriterion="SQA";
String madCriterion="MAD";
controller.addCriterionToRubric(rubric, sQACriterion);
controller.addCriterionToRubric(rubric, madCriterion);
StudentGrade grade=controller.createStudentGrade(rubric,"Tom",2);
StudentGrade grade2=controller.createStudentGrade(rubric,"Paul",3);
assertEquals(0.5,controller.getAverageForRubric(rubric),0.002);
}
//Testing if min in rubric is calulated correctly
@Test
public void testMinForARubric() {
Rubric rubric=controller.createNewRubric("DT354");
String designCriterion="Design";
String testingCriterion="Testing";
controller.addCriterionToRubric(rubric, designCriterion);
controller.addCriterionToRubric(rubric, testingCriterion);
StudentGrade grade =controller.createStudentGrade(rubric,"Tom",2);
StudentGrade grade2 =controller.createStudentGrade(rubric,"Paul",3);
StudentGrade grade3 =controller.createStudentGrade(rubric,"Sean",4);
assertEquals(2,controller.getMinForRubric(rubric),0.002);
}
//Testing if max in rubric is calulated correctly
@Test
public void testMaxForARubric() {
Rubric rubric=controller.createNewRubric("DT354");
String sQACriterion="SQA";
String madCriterion="MAD";
controller.addCriterionToRubric(rubric, sQACriterion);
controller.addCriterionToRubric(rubric, madCriterion);
StudentGrade grade =controller.createStudentGrade(rubric,"Tom",2);
StudentGrade grade2 =controller.createStudentGrade(rubric,"Paul",3);
StudentGrade grade3 =controller.createStudentGrade(rubric,"Sean",4);
assertEquals(4,controller.getMaxForRubric(rubric),0.002);
}
//Testing if standardDeviation in rubric is calulated correctly
@Test
public void testStandardDeviationForARubric() {
Rubric rubric=controller.createNewRubric("DT354");
String sQACriterion="SQA";
String madCriterion="MAD";
controller.addCriterionToRubric(rubric, sQACriterion);
controller.addCriterionToRubric(rubric, madCriterion);
StudentGrade grade =controller.createStudentGrade(rubric,"Tom",2);
StudentGrade grade2 =controller.createStudentGrade(rubric,"Paul",3);
StudentGrade grade3 =controller.createStudentGrade(rubric,"Paul",1);
assertEquals(0.816,controller.getStandardDeviationForRubric(rubric),0.002);
}
@Test
public void testGetAllRubrics(){
ArrayList<Rubric> emptyRubricList = new ArrayList<>();
assertEquals(emptyRubricList, controller.getAllRubrics());
}
}
|
[
"cormacmattimoe98@gmail.com"
] |
cormacmattimoe98@gmail.com
|
7e95119169de9295e9ffe7a82d7fab5488243bcc
|
2bd58561d4b4511300fa00e9c0ddfe2d5c18bef1
|
/Service Composition Framework/eu.aniketos.mtm.model/src/eu/aniketos/mtm/model/mtm_bpmn2/ManualTask.java
|
e129d95f5481d9f1ba36ff8f655cabf40568afcd
|
[] |
no_license
|
AniketosEU/Secure-Service-Specification-and-Deployment
|
3166c306ffaa8f4832fddcc54d695b816af039c4
|
447c9267bd03f09b3fe240b5ba00a058af5569df
|
refs/heads/master
| 2021-01-20T06:27:52.464067
| 2014-06-05T09:34:21
| 2014-06-05T09:34:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,084
|
java
|
/*******************************************************************************
* Copyright (c) 2012, Project: FP7-ICT-257930 Aniketos
* 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 institution nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
/**
*/
package eu.aniketos.mtm.model.mtm_bpmn2;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Manual Task</b></em>'.
* <!-- end-user-doc -->
*
*
* @see eu.aniketos.mtm.model.mtm_bpmn2.Bpmn2Package#getManualTask()
* @model extendedMetaData="name='tManualTask' kind='elementOnly'"
* @generated
*/
public interface ManualTask extends Task {
} // ManualTask
|
[
"francesco.malmignati@guests.selex-es.com"
] |
francesco.malmignati@guests.selex-es.com
|
c2c3208ec776a18456f1e4c16f7aa8edbba753c1
|
86a4f4a2dc3f38c0b3188d994950f4c79f036484
|
/src/com/facebook/share/widget/ShareButton$1.java
|
3855c30991a4881cfdfbe68619d00c87f03654b8
|
[] |
no_license
|
reverseengineeringer/com.cbs.app
|
8f6f3532f119898bfcb6d7ddfeb465eae44d5cd4
|
7e588f7156f36177b0ff8f7dc13151c451a65051
|
refs/heads/master
| 2021-01-10T05:08:31.000287
| 2016-03-19T20:39:17
| 2016-03-19T20:39:17
| 54,283,808
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 736
|
java
|
package com.facebook.share.widget;
import android.view.View;
import android.view.View.OnClickListener;
class ShareButton$1
implements View.OnClickListener
{
ShareButton$1(ShareButton paramShareButton) {}
public void onClick(View paramView)
{
ShareButton.access$000(this$0, paramView);
if (this$0.getFragment() != null) {}
for (paramView = new ShareDialog(this$0.getFragment(), this$0.getRequestCode());; paramView = new ShareDialog(ShareButton.access$100(this$0), this$0.getRequestCode()))
{
paramView.show(this$0.getShareContent());
return;
}
}
}
/* Location:
* Qualified Name: com.facebook.share.widget.ShareButton.1
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
6e0b2d2484d1c5f6f43cf0188dfd73596d42331e
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_1480487_1/java/codezilla/Round1BA.java
|
928a8126ffd708add6dfcb280c88937979553c65
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,438
|
java
|
package codejam2012;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Scanner;
public class Round1BA {
static class Item {
int cost1;
int cost2;
int level;
int status;
Item(int l, int c1, int c2){
level = l;
cost1 = c1;
cost2 = c2;
}
}
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(new BufferedReader(new FileReader(
"A-large-practice.in.txt")));
Output out = new Output("A.out");
int T = scanner.nextInt();
for (int t = 1; t <= T; t++) {
int N = scanner.nextInt();
int[] sArr = new int[N];
int ind1 = -1;
int ind2 = -1;
double sum = 0;
for(int i = 0; i < N; i ++){
sArr[i] = scanner.nextInt();
if(ind1 == -1 || sArr[i] < sArr[ind1]){
ind1 = i;
}
sum += sArr[i];
}
for(int i = 0; i < N; i ++){
if(i != ind1 && (ind2 == -1 || sArr[i] < sArr[ind2])){
ind2 = i;
}
}
double[] result = new double[N];
double d = sum * 2 / N;
double collect = 0.0;
int count = N;
for(int i = 0; i < N; i ++){
result[i] = (d - sArr[i]) * 100 / sum;
if(result[i] < 0){
collect += result[i];
count --;
}
}
for(int i = 0; i < N; i ++){
if(result[i] > 0){
result[i] += (collect/count);
} else {
result[i] = 0;
}
}
out.format("Case #%d: %f", t, result[0]);
for(int i = 1; i < N; i ++){
out.format(" %f", result[i]);
}
out.println("");
}
scanner.close();
out.close();
}
static class Output {
PrintWriter pw;
public Output(String filename) throws IOException {
pw = new PrintWriter(new BufferedWriter(new FileWriter(filename)));
}
public void print(String s) {
pw.print(s);
System.out.print(s);
}
public void println(String s) {
pw.println(s);
System.out.println(s);
}
public void format(String format, Object... args) {
pw.format(format, args);
System.out.format(format, args);
}
public void close() {
pw.close();
}
}
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
d4ddf2932c87be3e5ba20d3dfc38e5e2ded9e87b
|
19f7e40c448029530d191a262e5215571382bf9f
|
/decompiled/instagram/sources/p000X/C029404t.java
|
f13d4d4627523851679714614f7d68f3065885be
|
[] |
no_license
|
stanvanrooy/decompiled-instagram
|
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
|
3091a40af7accf6c0a80b9dda608471d503c4d78
|
refs/heads/master
| 2022-12-07T22:31:43.155086
| 2020-08-26T03:42:04
| 2020-08-26T03:42:04
| 283,347,288
| 18
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,265
|
java
|
package p000X;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Writer;
import java.util.Vector;
/* renamed from: X.04t reason: invalid class name and case insensitive filesystem */
public final class C029404t implements C06650Pw {
public static final C11590fD A01 = new AnonymousClass0S0(",");
public static final C11590fD A02 = new AnonymousClass0S0("{\"request_info\":{},\"batches\":[");
public static final C11590fD A03 = new AnonymousClass0S0("]}");
public final File[] A00;
public final boolean Aex() {
return false;
}
public final boolean Agc() {
return true;
}
public final File Aij() {
return null;
}
public final boolean Apj() {
return false;
}
public final int ATZ() {
File[] fileArr = this.A00;
int length = fileArr.length;
int i = 0;
int i2 = 30;
boolean z = false;
while (i < length) {
File file = fileArr[i];
if (z) {
i2++;
}
i2 = (int) (((long) i2) + file.length());
i++;
z = true;
}
return i2 + 2;
}
public final void Aoe() {
for (File delete : this.A00) {
delete.delete();
}
}
public final InputStream BWa() {
Vector vector = new Vector();
vector.add(A02);
File[] fileArr = this.A00;
int length = fileArr.length;
int i = 0;
boolean z = false;
while (i < length) {
File file = fileArr[i];
if (z) {
vector.add(A01);
}
vector.add(new C07160Rz(file));
i++;
z = true;
}
vector.add(A03);
return new AnonymousClass0P0(vector.iterator());
}
public final String BeL() {
return this.A00[0].getName();
}
public C029404t(File[] fileArr) {
AnonymousClass0a4.A09(fileArr.length > 0);
this.A00 = fileArr;
}
/* JADX WARNING: Code restructure failed: missing block: B:15:0x003f, code lost:
r0 = move-exception;
*/
/* JADX WARNING: Code restructure failed: missing block: B:17:?, code lost:
r3.close();
*/
/* JADX WARNING: Code restructure failed: missing block: B:18:0x0043, code lost:
throw r0;
*/
public final void BuZ(Writer writer) {
writer.append("{\"request_info\":{},\"batches\":[");
File[] fileArr = this.A00;
int length = fileArr.length;
int i = 0;
boolean z = false;
while (i < length) {
File file = fileArr[i];
if (z) {
writer.append(",");
}
InputStreamReader inputStreamReader = new InputStreamReader((InputStream) new C07160Rz(file).get());
char[] cArr = new char[1024];
while (true) {
int read = inputStreamReader.read(cArr);
if (read == -1) {
break;
}
writer.write(cArr, 0, read);
}
inputStreamReader.close();
i++;
z = true;
}
writer.append("]}");
}
}
|
[
"stan@rooy.works"
] |
stan@rooy.works
|
845f6069ceaaba5f6d54bd96688e2aec5b8be134
|
4f4ddc396fa1dfc874780895ca9b8ee4f7714222
|
/src/java/tests/com/gensym/jgi/G2JavaStubGeneratorTest.java
|
f3fe3bde5c0652b6041e822161a7c42f61157673
|
[] |
no_license
|
UtsavChokshiCNU/GenSym-Test2
|
3214145186d032a6b5a7486003cef40787786ba0
|
a48c806df56297019cfcb22862dd64609fdd8711
|
refs/heads/master
| 2021-01-23T23:14:03.559378
| 2017-09-09T14:20:09
| 2017-09-09T14:20:09
| 102,960,203
| 3
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,392
|
java
|
package com.gensym.jgi;
import com.gensym.jgi.download.G2StubCreationException;
import com.gensym.util.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static com.gensym.helpers.ObjectsFactory.anyBoolean;
import static org.junit.Assert.assertEquals;
public class G2JavaStubGeneratorTest {
private static final Symbol CLASS_NAME = Symbol.intern("CLASS_NAME");
private static final Symbol BEAN_INFO_STUBS = Symbol.intern("BEANINFO_STUBS");
private static final Symbol CONSTRUCTOR_STUBS = Symbol.intern("CONSTRUCTOR_STUBS");
private static final Symbol BEAN_INFO_PROPERTIES = Symbol.intern("BEANINFO_PROPERTIES");
private static final boolean[] BOOLEAN_TEST_CASES = new boolean[] { false, true };
private boolean recurse;
private boolean forG2BeanWrapper;
private Class classObj;
private G2JavaStubGenerator sut;
private String className;
private Symbol classNameSymbol;
private BeanInfoPropertiesHelper beanInfoPropertiesHelper;
private WrapperStubsHelper wrapperStubsHelper;
@Before
public void init() {
createSut();
initializeFields();
}
@After
public void teardown() {
}
@Test
public void test_findDependentClasses_always_returnsClasses() throws G2StubCreationException, ClassNotFoundException {
// Arrange
Sequence expected = new JavaClassStubGeneratorHierarchy().detailAncestry(this.classObj);
// Act
Sequence result = this.sut.findDependentClasses(this.className, this.classObj, this.recurse);
// Assert
assertEquals(expected.size(), result.size());
}
@Test
public void test_getG2StubDetailsForJavaClass_always_returnsDetails() throws G2StubCreationException, ClassNotFoundException, NtwIllegalArgumentException, NoSuchAttributeException {
// Arrange
for (boolean recursive : BOOLEAN_TEST_CASES) {
for (boolean beanWrapper : BOOLEAN_TEST_CASES) {
this.recurse = recursive;
this.forG2BeanWrapper = beanWrapper;
Structure expectedDetails = expectedStubDetails();
// Act
Structure result = this.sut.getG2StubDetailsForJavaClass(this.className, this.classObj, this.classNameSymbol, this.recurse, this.forG2BeanWrapper);
// Assert
assertEquals(expectedDetails.getAttributeValue(CLASS_NAME), result.getAttributeValue(CLASS_NAME));
assertEquals(expectedDetails.getAttributeValue(BEAN_INFO_STUBS), result.getAttributeValue(BEAN_INFO_STUBS));
assertEquals(expectedDetails.getAttributeValue(CONSTRUCTOR_STUBS), result.getAttributeValue(CONSTRUCTOR_STUBS));
assertEquals(expectedDetails.getAttributeValue(BEAN_INFO_PROPERTIES), result.getAttributeValue(BEAN_INFO_PROPERTIES));
}
}
}
@Test
public void test_getG2StubsForBeanInfo_always_returnsStubs() throws G2StubCreationException, ClassNotFoundException, NtwIllegalArgumentException {
// Arrange
for (boolean recursive : BOOLEAN_TEST_CASES) {
this.recurse = recursive;
Sequence expected = this.beanInfoPropertiesHelper.expectedG2Stubs(this.classObj, this.classNameSymbol, this.recurse);
// Act
Sequence result = this.sut.getG2StubsForBeanInfo(this.classObj, this.classNameSymbol, this.recurse);
// Assert
assertEquals(expected.size(), result.size());
for(int idx = 0; idx < expected.size(); idx++) {
Structure actualStructure = (Structure)result.elementAt(idx);
Structure expectedStructure = (Structure)expected.elementAt(idx);
assertEquals(expectedStructure, actualStructure);
}
}
}
@Test
public void test_getG2StubsForWrapper_always_returnsStubs() throws NtwIllegalArgumentException, G2StubCreationException, ClassNotFoundException {
// Arrange
for (boolean recursive : BOOLEAN_TEST_CASES) {
this.recurse = recursive;
Sequence expected = this.wrapperStubsHelper.expectedStubs(this.classObj, this.classNameSymbol, this.recurse);
// Act
Sequence result = this.sut.getG2StubsForWrapper(this.classObj, this.classNameSymbol, this.recurse);
// Assert
assertEquals(expected.size(), result.size());
for(int idx = 0; idx < expected.size(); idx++) {
Structure actualStructure = (Structure)result.elementAt(idx);
Structure expectedStructure = (Structure)expected.elementAt(idx);
assertEquals(expectedStructure, actualStructure);
}
}
}
private Structure expectedStubDetails() throws NtwIllegalArgumentException, G2StubCreationException, ClassNotFoundException {
Symbol[] keys = new Symbol[4];
Object[] values = new Object[4];
keys[0] = CLASS_NAME;
values[0] = this.classNameSymbol;
keys[1] = BEAN_INFO_STUBS;
values[1] = forG2BeanWrapper
? this.sut.getG2StubsForWrapper(this.classObj, this.classNameSymbol, recurse)
: this.sut.getG2StubsForBeanInfo(this.classObj, this.classNameSymbol, recurse);
keys[2] = CONSTRUCTOR_STUBS;
values[2] = this.sut.getG2StubsForConstructors(this.classObj, this.classNameSymbol);
keys[3] = BEAN_INFO_PROPERTIES;
values[3] = this.sut.getG2BeanInfoProperties(this.classObj, this.classNameSymbol, recurse);
return new Structure(keys, values);
}
protected void createSut() {
this.sut = new G2JavaStubGenerator();
}
protected void initializeFields() {
this.classObj = G2JavaStubGeneratorTestHelperWithLargeNameToVerifyDifferentTestScenariosIncludingOneHundredAndFortyCharactersLongConstructorScenario.class;
this.className = G2JavaStubGeneratorTestHelperWithLargeNameToVerifyDifferentTestScenariosIncludingOneHundredAndFortyCharactersLongConstructorScenario.class.getName();
this.classNameSymbol = Symbol.intern(this.className);
this.forG2BeanWrapper = anyBoolean();
this.recurse = anyBoolean();
this.beanInfoPropertiesHelper = new BeanInfoPropertiesHelper();
this.wrapperStubsHelper = new WrapperStubsHelper();
}
}
|
[
"utsavchokshi@Utsavs-MacBook-Pro.local"
] |
utsavchokshi@Utsavs-MacBook-Pro.local
|
e98b5ae46a1337bded1bc8bb54a525fda1f6d944
|
131becb548bf290a009441e696b87420bee96790
|
/spring-vault-core/src/main/java/org/springframework/vault/repository/configuration/package-info.java
|
8be9217f76de7576d3b580856fa106e69b8bd34a
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
spring-projects/spring-vault
|
73967dca7ee5be7c0524a774ba0fe190e6bae715
|
693f9cd46dd2a532ede253cb46da64d1e323c552
|
refs/heads/main
| 2023-09-04T11:06:33.273201
| 2023-08-24T08:26:32
| 2023-08-25T07:47:28
| 68,180,853
| 286
| 224
|
Apache-2.0
| 2023-09-07T18:01:42
| 2016-09-14T06:48:10
|
Java
|
UTF-8
|
Java
| false
| false
| 185
|
java
|
/**
* Support infrastructure for the configuration of Vault specific repositories.
*/
@org.springframework.lang.NonNullApi
package org.springframework.vault.repository.configuration;
|
[
"mpaluch@pivotal.io"
] |
mpaluch@pivotal.io
|
0bd2eebb34596530953ec4be0f7f3f109d175eac
|
93b5ab4dc571675e23c113ee6c116502e3f9ef72
|
/schema/src/main/java/com/webex/schemas/_2002/_06/service/user/AssignWebACDQueuesResponse.java
|
e25bb12a8458e02d36a093efe9618849efeac714
|
[] |
no_license
|
kumarph/webex-java-sdk
|
813d59ee9d7c0e1627ba8e24990d9b5e54bcd6d4
|
6894314132bfa419af6798b38acb965ee5f2f2e3
|
refs/heads/master
| 2021-01-10T07:57:37.982118
| 2011-04-22T10:01:24
| 2011-04-22T10:01:24
| 44,167,936
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,646
|
java
|
/*
* Copyright 2010-2011 Nabeel Mukhtar
*
* 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.webex.schemas._2002._06.service.user;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.webex.schemas._2002._06.service.BodyContentType;
/**
* <p>Java class for AssignWebACDQueuesResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AssignWebACDQueuesResponse">
* <complexContent>
* <extension base="{http://www.webex.com/schemas/2002/06/service}bodyContentType">
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AssignWebACDQueuesResponse")
public class AssignWebACDQueuesResponse
extends BodyContentType
implements Serializable
{
private final static long serialVersionUID = 2461660169443089969L;
}
|
[
"nabeelmukhtar@yahoo.com"
] |
nabeelmukhtar@yahoo.com
|
b7007e08c5101f185f4991e0760d054bbb900325
|
6de42aa3feddd70eef6607298dc90b420a449e9e
|
/simplified-viewer-epub-readium1/src/main/java/org/nypl/simplified/viewer/epub/readium1/ReaderSimplifiedJavaScriptAPIType.java
|
ace8c08b54766266f572b3e07bfbb078a5db6453
|
[
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
ray-lee/Simplified-Android-Core
|
9dc8a0a252dd5e7d1337b713c37e276d0faf40e4
|
967cd398a9e86789e8fad72ac7f3842a0e1dd2ee
|
refs/heads/develop
| 2023-04-19T05:08:11.961287
| 2021-05-06T20:14:58
| 2021-05-06T20:14:58
| 280,034,324
| 0
| 0
|
NOASSERTION
| 2021-04-01T00:22:34
| 2020-07-16T02:40:47
|
Kotlin
|
UTF-8
|
Java
| false
| false
| 497
|
java
|
package org.nypl.simplified.viewer.epub.readium1;
/**
* The type of the JavaScript API exposed by Simplified.
*/
public interface ReaderSimplifiedJavaScriptAPIType
{
/**
* Get the CFI from the JS Readium SDK.
*/
void getReadiumCFI();
/**
* Set the CFI in the JS Readium SDK.
*/
void setReadiumCFI();
/**
* Notify the Javascript code that the page has changed in some way and
* therefore new event listeners should be registered.
*/
void pageHasChanged();
}
|
[
"code@io7m.com"
] |
code@io7m.com
|
214ebf8b3c414e8e61729c28782d2429138c36a4
|
f2b70e4c2f38ff4a814650df12ee9cecd877c65a
|
/src/main/java/osm5/ns/yang/ietf/network/topology/rev180226/networks/network/node/TerminationPointKey.java
|
b8ed5f39d219a9917347904f3535b4ad1ec21a76
|
[
"Apache-2.0"
] |
permissive
|
5GinFIRE/eu.5ginfire.nbi.osm5java
|
34f17f78930178bdf3b428db7a0e9b24982c7c2a
|
19b6a70cd39e5b0eddd1d0a63069532fa2a1cee0
|
refs/heads/master
| 2021-08-11T15:50:07.182421
| 2019-06-14T12:25:45
| 2019-06-14T12:25:45
| 182,989,539
| 0
| 0
|
Apache-2.0
| 2021-08-02T17:16:53
| 2019-04-23T10:15:57
|
Java
|
UTF-8
|
Java
| false
| false
| 1,793
|
java
|
package osm5.ns.yang.ietf.network.topology.rev180226.networks.network.node;
import com.google.common.base.MoreObjects;
import osm5.ns.yang.ietf.network.topology.rev180226.TpId;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
import org.opendaylight.yangtools.yang.binding.CodeHelpers;
import org.opendaylight.yangtools.yang.binding.Identifier;
public class TerminationPointKey
implements Identifier<TerminationPoint> {
private static final long serialVersionUID = -6070562666740578L;
private final TpId _tpId;
public TerminationPointKey(TpId _tpId) {
this._tpId = _tpId;
}
/**
* Creates a copy from Source Object.
*
* @param source Source object
*/
public TerminationPointKey(TerminationPointKey source) {
this._tpId = source._tpId;
}
public TpId getTpId() {
return _tpId;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + Objects.hashCode(_tpId);
return result;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
TerminationPointKey other = (TerminationPointKey) obj;
if (!Objects.equals(_tpId, other._tpId)) {
return false;
}
return true;
}
@Override
public String toString() {
final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TerminationPointKey.class);
CodeHelpers.appendValue(helper, "_tpId", _tpId);
return helper.toString();
}
}
|
[
"ioannischatzis@gmail.com"
] |
ioannischatzis@gmail.com
|
69596d4bbf010541cfaf32cc2edcbba3e7a2a269
|
7e78adcea1601955621da5d15f2dcb6631a1d13e
|
/multiple-event-demo/src/main/java/demo/event/BlockSaveListener.java
|
c0ae4d80775f62a9cd89de264a5e849789a29f70
|
[] |
no_license
|
zacscoding/java_example
|
fe0a8628fe274e6d150a606941d1e869650796b3
|
482c54f516edeb2d9dee436ce00ba33b3f1c038c
|
refs/heads/master
| 2021-05-14T12:34:34.541865
| 2019-11-28T15:38:41
| 2019-11-28T15:38:41
| 116,410,667
| 1
| 2
| null | 2020-03-04T22:14:20
| 2018-01-05T17:36:30
|
Java
|
UTF-8
|
Java
| false
| false
| 2,069
|
java
|
package demo.event;
import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;
import demo.db.BlockchainStore;
import demo.event.BlockEvent;
import demo.event.BlockPublisher;
import demo.leader.LeaderSelector;
import java.util.concurrent.TimeUnit;
/**
* @GitHub : https://github.com/zacscoding
*/
public class BlockSaveListener {
private BlockchainStore blockchainStore;
private LeaderSelector leaderSelector;
public BlockSaveListener(BlockchainStore blockchainStore, LeaderSelector leaderSelector,
BlockPublisher blockPublisher) {
this.blockchainStore = blockchainStore;
this.leaderSelector = leaderSelector;
blockPublisher.register(this);
}
@Subscribe
@AllowConcurrentEvents
public void onBlock(BlockEvent blockEvent) {
String jobId = blockEvent.getNetworkName() + blockEvent.getBlockNumber();
int order = leaderSelector.getJobOrder(jobId);
try {
if (!leaderSelector.isTakenLeadership(order)) {
int sleepSeconds = Math.min(order, 5);
System.out.printf("[%s] Received block : %s but could not took leadership. so wait %d sec.\n",
getThreadName(), blockEvent, sleepSeconds);
TimeUnit.SECONDS.sleep(sleepSeconds);
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
System.out.println("InterruptedException exception occur");
return;
}
if (blockchainStore.existBlock(blockEvent.getBlockNumber())) {
System.out.printf("## [%s] Skip : %s because already stored\n", getThreadName(), blockEvent);
return;
}
if (blockchainStore.save(blockEvent)) {
System.out.printf("[%s] Success to save %s\n", getThreadName(), blockEvent);
}
}
private String getThreadName() {
Thread currentThread = Thread.currentThread();
return currentThread.getName() + "-" + currentThread.getId();
}
}
|
[
"zaccoding725@gmail.com"
] |
zaccoding725@gmail.com
|
415fe2fe3ad1a451a252dc836c814803861e44c9
|
e63363389e72c0822a171e450a41c094c0c1a49c
|
/Mate20_9_0_0/src/main/java/android/hardware/location/NanoAppState.java
|
23f670503695178035a6ca05842fbb8c79832fc1
|
[] |
no_license
|
solartcc/HwFrameWorkSource
|
fc23ca63bcf17865e99b607cc85d89e16ec1b177
|
5b92ed0f1ccb4bafc0fdb08b6fc4d98447b754ad
|
refs/heads/master
| 2022-12-04T21:14:37.581438
| 2020-08-25T04:30:43
| 2020-08-25T04:30:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,663
|
java
|
package android.hardware.location;
import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
@SystemApi
public final class NanoAppState implements Parcelable {
public static final Creator<NanoAppState> CREATOR = new Creator<NanoAppState>() {
public NanoAppState createFromParcel(Parcel in) {
return new NanoAppState(in, null);
}
public NanoAppState[] newArray(int size) {
return new NanoAppState[size];
}
};
private boolean mIsEnabled;
private long mNanoAppId;
private int mNanoAppVersion;
/* synthetic */ NanoAppState(Parcel x0, AnonymousClass1 x1) {
this(x0);
}
public NanoAppState(long nanoAppId, int appVersion, boolean enabled) {
this.mNanoAppId = nanoAppId;
this.mNanoAppVersion = appVersion;
this.mIsEnabled = enabled;
}
public long getNanoAppId() {
return this.mNanoAppId;
}
public long getNanoAppVersion() {
return (long) this.mNanoAppVersion;
}
public boolean isEnabled() {
return this.mIsEnabled;
}
private NanoAppState(Parcel in) {
this.mNanoAppId = in.readLong();
this.mNanoAppVersion = in.readInt();
boolean z = true;
if (in.readInt() != 1) {
z = false;
}
this.mIsEnabled = z;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel out, int flags) {
out.writeLong(this.mNanoAppId);
out.writeInt(this.mNanoAppVersion);
out.writeInt(this.mIsEnabled);
}
}
|
[
"lygforbs0@gmail.com"
] |
lygforbs0@gmail.com
|
5abc3b7952807a8cfd458e0074f4bc24f5699e00
|
5e6abc6bca67514b4889137d1517ecdefcf9683a
|
/Server/src/main/java/org/gielinor/rs2/pulse/Pulse.java
|
63fa3ebab02dd544c056b3d85446aa7cfaf849a5
|
[] |
no_license
|
dginovker/RS-2009-317
|
88e6d773d6fd6814b28bdb469f6855616c71fc26
|
9d285c186656ace48c2c67cc9e4fb4aeb84411a4
|
refs/heads/master
| 2022-12-22T18:47:47.487468
| 2019-09-20T21:24:34
| 2019-09-20T21:24:34
| 208,949,111
| 2
| 2
| null | 2022-12-15T23:55:43
| 2019-09-17T03:15:17
|
Java
|
UTF-8
|
Java
| false
| false
| 4,487
|
java
|
package org.gielinor.rs2.pulse;
import org.gielinor.game.node.Node;
/**
* Represents a pulse object (a task executed once every 600ms on the MajorUpdateWorker thread).
*
* @author Emperor
*/
public abstract class Pulse {
/**
* If the task is still running.
*/
private boolean running = true;
/**
* The amount of game-ticks to wait before execution.
*/
private int delay;
/**
* The amount of ticks passed.
*/
int ticksPassed;
/**
* The nodes that have to be active for the pulse to continue.
*/
protected Node[] checks;
/**
* Constructs a new {@code Pulse} {@code Object}.
*/
public Pulse() {
this(1);
}
/**
* Constructs a new {@code Pulse} object.
*
* @param delay The delay.
*/
public Pulse(int delay) {
this.delay = delay;
}
/**
* Constructs a new {@code Pulse} object.
*
* @param delay The delay.
* @param checks The nodes that have to be active for the pulse to continue.
*/
public Pulse(int delay, Node... checks) {
this.delay = delay;
this.checks = checks;
}
/**
* Updates this {@code Pulse} task.
*
* @return <code>True</code> if this {@code Pulse} is finished and can be removed, <code>False</code> if not.
*/
public boolean update() {
if (hasInactiveNode()) {
stop();
return true;
}
if (!isRunning()) {
return true;
}
if (++ticksPassed >= delay) {
ticksPassed = 0;
if (pulse()) {
stop();
return true;
}
return !isRunning();
}
return false;
}
/**
* Checks if one of the node checks is inactive.
*
* @return <code>True</code> if so.
*/
public boolean hasInactiveNode() {
if (checks != null) {
for (Node n : checks) {
if (n != null && !n.isActive()) {
return true;
}
}
}
return false;
}
/**
* Called when the world pulses, once every 600ms.
*
* @return <code>True</code> if the pulse has finished and should be removed.
*/
public abstract boolean pulse();
/**
* Checks if this pulse should be terminated so the new pulse (represented in string format) can run.
*
* @param pulse The pulse to run in string format.
* @return <code>True</code> if this pulse should be removed (default).
*/
public boolean removeFor(String pulse) {
return true;
}
/**
* Adds a node check.
*
* @param index The index.
* @param n The node.
*/
public void addNodeCheck(int index, Node n) {
checks[index] = n;
}
/**
* Gets a node check.
*
* @param index The index.
* @return The node.
*/
public Node getNodeCheck(int index) {
return checks[index];
}
/**
* Manually stop the {@code Pulse} task.
*/
public void stop() {
running = false;
}
/**
* Manually start the {@code Pulse} task.
*/
public void start() {
running = true;
}
/**
* Restarts the pulse delay.
*/
public void restart() {
ticksPassed = 0;
}
/**
* Checks if the pulse is still running.
*
* @return <code>True</code> if the pulse is still running.
*/
public boolean isRunning() {
return running;
}
/**
* Gets the delay of this {@code Pulse}.
*
* @return The delay.
*/
public int getDelay() {
return delay;
}
/**
* Sets the delay.
*
* @param delay The delay.
*/
public void setDelay(int delay) {
this.delay = delay;
}
/**
* Sets the amount of ticks passed.
*
* @param ticks The amount of ticks passed in this pulse.
*/
public void setTicksPassed(int ticks) {
this.ticksPassed = ticks;
}
/**
* Gets the amount of ticks passed.
*
* @return The amount of ticks passed so far.
*/
public int getTicksPassed() {
return ticksPassed;
}
}
|
[
"dcress01@uoguelph.ca"
] |
dcress01@uoguelph.ca
|
44a359d7e5cab2e9df0adb836b8e386d0fa9778f
|
bb80d820728ffaaabbf0f1d8b4878b8015a598a5
|
/app/src/main/java/com/skyvn/ten/util/MD5.java
|
627b4ad443b690ec500bff5574c1ed39f246e224
|
[] |
no_license
|
wuliang6661/skyvn_ten1
|
4d7ef9097f3148da6021d29d73c559e70b283267
|
4b92929e804f133409cb41825699c5f53987bb3e
|
refs/heads/master
| 2021-05-18T12:55:41.065976
| 2020-04-15T13:04:25
| 2020-04-15T13:04:25
| 251,250,341
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 817
|
java
|
package com.skyvn.ten.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* 作者 by wuliang 时间 16/11/25.
*/
public class MD5 {
public static String strToMd5Low32(String str) {
StringBuilder builder = new StringBuilder();
try {
MessageDigest md5 = MessageDigest.getInstance("MD5");
md5.update(str.getBytes());
byte[] bytes = md5.digest();
for (byte b : bytes) {
int digital = b & 0xff;
if (digital < 16)
builder.append(0);
builder.append(Integer.toHexString(digital));
}
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
return builder.toString().toLowerCase();
}
}
|
[
"wuliang6661@163.com"
] |
wuliang6661@163.com
|
90e1345a768e4ebac93d0208ce84a2bfaf8ca846
|
2763dae72ab3fed130035a8d7327a44a8afff291
|
/100_distributed_hybrid/00_shared/shared-ui/src/main/java/com/vaadin/flow/i18n/I18NProvider.java
|
1b309715756e22c1631af1de45f20e04e2e3ad83
|
[
"Apache-2.0"
] |
permissive
|
Java-Events/20190828_CloudBurst_Sweden
|
1c4c04dda8f7a6f351eaf2aeeb3ceec4f5e53c26
|
f9bbd328d121628494d10435fea614649accd2d8
|
refs/heads/master
| 2022-07-22T18:42:41.980014
| 2019-09-07T08:21:22
| 2019-09-07T08:21:22
| 201,961,780
| 0
| 1
|
Apache-2.0
| 2022-07-07T22:10:47
| 2019-08-12T15:51:38
|
Java
|
UTF-8
|
Java
| false
| false
| 296
|
java
|
package com.vaadin.flow.i18n;
import java.io.Serializable;
import java.util.List;
import java.util.Locale;
//TODO dirty but goood ;-)
public interface I18NProvider extends Serializable {
List<Locale> getProvidedLocales();
String getTranslation(String var1, Locale var2, Object... var3);
}
|
[
"sven.ruppert@gmail.com"
] |
sven.ruppert@gmail.com
|
55d5c296b979497240d0a3ba07e962287e4beedc
|
ea3648110899f7c34c98fb3650cc2fd3d8a16170
|
/main/java/dqmIII/entity/mobEntity/monsterDay/DqmEntityUzusioking.java
|
cf3b83e9a3aaaf9fc67ed7acaeb958fecf6a6e57
|
[] |
no_license
|
azelDqm/MC1.7.10_DQMIIINext
|
51392175b412bd7fa977b9663060bb169980928e
|
af65ee394fe42103655a3ef8ba052765d2934fd0
|
refs/heads/master
| 2021-01-25T05:22:11.733236
| 2015-03-24T15:23:55
| 2015-03-24T15:23:55
| 29,433,818
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,955
|
java
|
package dqmIII.entity.mobEntity.monsterDay;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.world.World;
import dqmIII.DQM;
import dqmIII.api.Items.DQArmors;
import dqmIII.api.Items.DQMiscs;
import dqmIII.enums.EnumDqmMonster;
public class DqmEntityUzusioking extends DqmMobBaseDay
{
public DqmEntityUzusioking(World world)
{
super(world, EnumDqmMonster.UZUSIOKING );
//this.monsterType = EnumDqmMonster.UZUSIOKING;
/*
this.MobClassName = this.monsterType.getMobClassName();
this.MobName = this.monsterType.getMobName();
this.MobCateg = this.monsterType.getMobCateg();
this.DqmMobEXP = DQM.funcMob.getCalcEXP(this.monsterType.getEXP());
this.DqmMobGOLD = DQM.funcMob.getCalcGOLD(this.monsterType.getGOLD());
this.DqmMobMP = this.monsterType.getMP();
this.DqmMobPW = DQM.funcMob.getCalcPW(this.monsterType.getPW());
this.DqmMobDEF = this.monsterType.getDF();
this.CFIRE = this.monsterType.isCFIRE();
this.CPET = this.monsterType.getCPET();
this.CAI = this.monsterType.isCAI();
this.CTENSEI = this.monsterType.getCTENSEI();
this.CTENSEIsp = DQM.funcMob.getCalcTENSEIsp(this.monsterType.getCTENSEIsp());
this.KougekiPat = this.monsterType.getKougekiPat();
this.TenseiMob = this.monsterType.getTenseiMob();
this.TenseiMin = this.monsterType.getTenseiMin();
this.TenseiMax = this.monsterType.getTenseiMax();
this.MobRoot = this.monsterType.getMobRoot();
this.KakuseiMob = this.monsterType.getKakuseiMob();
this.experienceValue = this.monsterType.getXPS();
*/
}
/*
* AIを使うかどうか.
* 今回は使うのでtrueを返している.
*/
@Override
public boolean isAIEnabled()
{
return EnumDqmMonster.UZUSIOKING.isCAI();
}
/*
* このEntityに性質を付与する.
* 今回は移動速度を変更.
*/
@Override
protected void applyEntityAttributes()
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(DQM.funcMob.getCalcSPEED(EnumDqmMonster.UZUSIOKING.getSPEED()));
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(DQM.funcMob.getCalcHP(EnumDqmMonster.UZUSIOKING.getHP()));
this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(DQM.funcMob.getCalcPW(EnumDqmMonster.UZUSIOKING.getPW()));
}
@Override
public int getTotalArmorValue()
{
return EnumDqmMonster.UZUSIOKING.getDF();
}
@Override
protected void dropFewItems(boolean par1, int par2)
{
if (DQM.funcMob.getCalcDROP(1, 1))
{
this.dropItem(DQMiscs.itemSiroikaigara, 1);
}
if (DQM.funcMob.getCalcDROP(4, 1))
{
this.dropItem(DQMiscs.itemAkaisango, 1);
}
if (DQM.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemLittlemedal, 1);
}
if (DQM.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori0, 1);
}
if (DQM.funcMob.getCalcDROP(60, 1))
{
this.dropItem(DQMiscs.itemTiisaitamasii, 1);
}
if (DQM.funcMob.getCalcDROP(100, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori1, 1);
}
if (DQM.funcMob.getCalcDROP(50, 1))
{
this.dropItem(DQMiscs.itemDouka, 1);
}
if (DQM.funcMob.getCalcDROP(200, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori2, 1);
}
if (DQM.funcMob.getCalcDROP(400, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori3, 1);
}
if (DQM.funcMob.getCalcDROP(800, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori4, 1);
}
if (DQM.funcMob.getCalcDROP(1600, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori5, 1);
}
if (DQM.funcMob.getCalcDROP(3200, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori6, 1);
}
if (DQM.funcMob.getCalcDROP(6400, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori7, 1);
}
if (DQM.funcMob.getCalcDROP(12800, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori8, 1);
}
if (DQM.funcMob.getCalcDROP(25600, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori9, 1);
}
if (DQM.funcMob.getCalcDROP(51200, 1))
{
this.dropItem(DQMiscs.itemMegaminoinori10, 1);
}
if (DQM.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakabuto, 1);
}
if (DQM.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakabuto, 1);
}
if (DQM.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakote, 1);
}
if (DQM.funcMob.getCalcDROP(3000, 1))
{
this.dropItem(DQArmors.itemSabitakutu, 1);
}
}
}
|
[
"azel.trancer@gmail.com"
] |
azel.trancer@gmail.com
|
58624b80d3e0c272dc35dbb488448412f6e837a1
|
f909ec612f17254be491c3ef9cdc1f0b186e8daf
|
/springboot_plugin/springboot_unity23/mongodb/src/main/java/info/xiaomo/mongodb/service/MongoUserService.java
|
612c75da28c5909368ad991d182325a4d8f6d1c3
|
[
"MIT"
] |
permissive
|
kingking888/jun_java_plugin
|
8853f845f242ce51aaf01dc996ed88784395fd83
|
f57e31fa496d488fc96b7e9bab3c245f90db5f21
|
refs/heads/master
| 2023-06-04T19:30:29.554726
| 2021-06-24T17:19:55
| 2021-06-24T17:19:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,140
|
java
|
package info.xiaomo.mongodb.service;
import info.xiaomo.mongodb.model.MongoUser;
import java.util.List;
/**
* 把今天最好的表现当作明天最新的起点..~
* いま 最高の表現 として 明日最新の始発..~
* Today the best performance as tomorrow newest starter!
*
* @author Wujun
* github: https://github.com/houko
* email: xiaomo@xiaomo.info
* <p>
* Date: 2016/11/15 15:45
* Copyright(©) 2015 by xiaomo.
**/
public interface MongoUserService {
/**
* 查所有
*
* @return
*/
List<MongoUser> findAll();
/**
* 根据id查
*
* @param id
* @return
*/
MongoUser findById(Long id);
/**
* 根据名字查
*
* @param userName
* @return
*/
MongoUser findByName(String userName);
/**
* 添加
*
* @param mongoUser
* @return
*/
MongoUser add(MongoUser mongoUser);
/**
* 删除
*
* @param id
*/
void delete(Long id);
/**
* 更新
*
* @param mongoUser
* @return
*/
MongoUser update(MongoUser mongoUser);
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
f2293220e2de9d1e627805df8d689bd54a2dad97
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-ecd/src/main/java/com/aliyuncs/ecd/model/v20200930/RevokeCoordinatePrivilegeRequest.java
|
b948bbdfae63fdf997ced29be0ef691afed031ff
|
[
"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,309
|
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.ecd.model.v20200930;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ecd.Endpoint;
/**
* @author auto create
* @version
*/
public class RevokeCoordinatePrivilegeRequest extends RpcAcsRequest<RevokeCoordinatePrivilegeResponse> {
private String coId;
private String userType;
private String uuid;
private String endUserId;
public RevokeCoordinatePrivilegeRequest() {
super("ecd", "2020-09-30", "RevokeCoordinatePrivilege");
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 getCoId() {
return this.coId;
}
public void setCoId(String coId) {
this.coId = coId;
if(coId != null){
putQueryParameter("CoId", coId);
}
}
public String getUserType() {
return this.userType;
}
public void setUserType(String userType) {
this.userType = userType;
if(userType != null){
putQueryParameter("UserType", userType);
}
}
public String getUuid() {
return this.uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
if(uuid != null){
putQueryParameter("Uuid", uuid);
}
}
public String getEndUserId() {
return this.endUserId;
}
public void setEndUserId(String endUserId) {
this.endUserId = endUserId;
if(endUserId != null){
putQueryParameter("EndUserId", endUserId);
}
}
@Override
public Class<RevokeCoordinatePrivilegeResponse> getResponseClass() {
return RevokeCoordinatePrivilegeResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
f36f3a0e272a207b6562434c66f8ded8729a48d7
|
0a4710d75f8256da50bfb62ac538e7e7baec0651
|
/LeetCode/src/johnny/algorithm/leetcode/Solution433.java
|
d5cc98d6d58bc43bb2bcc2cd217801cbde491c93
|
[] |
no_license
|
tuyen03a128/algorithm-java-jojozhuang
|
4bacbe8ce0497e6b2851b184e0b42ee34c904f95
|
5ca9f4ae711211689b2eb92dfddec482a062d537
|
refs/heads/master
| 2020-04-25T09:05:32.723463
| 2019-02-24T17:32:30
| 2019-02-24T17:32:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,728
|
java
|
package johnny.algorithm.leetcode;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
/**
*433. Minimum Genetic Mutation
*A gene string can be represented by an 8-character long string, with choices from "A", "C", "G", "T".
Suppose we need to investigate about a mutation (mutation from "start" to "end"), where ONE mutation is defined as ONE single character changed in the gene string.
For example, "AACCGGTT" -> "AACCGGTA" is 1 mutation.
Also, there is a given gene "bank", which records all the valid gene mutations. A gene must be in the bank to make it a valid gene string.
Now, given 3 things - start, end, bank, your task is to determine what is the minimum number of mutations needed to mutate from "start" to "end". If there is no such a mutation, return -1.
Note:
Starting point is assumed to be valid, so it might not be included in the bank.
If multiple mutations are needed, all mutations during in the sequence must be valid.
You may assume start and end string is not the same.
Example 1:
start: "AACCGGTT"
end: "AACCGGTA"
bank: ["AACCGGTA"]
return: 1
Example 2:
start: "AACCGGTT"
end: "AAACGGTA"
bank: ["AACCGGTA", "AACCGCTA", "AAACGGTA"]
return: 2
Example 3:
start: "AAAAACCC"
end: "AACCCCCC"
bank: ["AAAACCCC", "AAACCCCC", "AACCCCCC"]
return: 3
* @author Johnny
*/
public class Solution433 {
public int minMutation(String start, String end, String[] bank) {
if(start.equals(end)) return 0;
Set<String> bankSet = new HashSet<>();
for(String b: bank) bankSet.add(b);
char[] charSet = new char[]{'A', 'C', 'G', 'T'};
int level = 0;
Set<String> visited = new HashSet<>();
Queue<String> queue = new LinkedList<>();
queue.offer(start);
visited.add(start);
while(!queue.isEmpty()) {
int size = queue.size();
while(size-- > 0) {
String curr = queue.poll();
if(curr.equals(end)) return level;
char[] currArray = curr.toCharArray();
for(int i = 0; i < currArray.length; i++) {
char old = currArray[i];
for(char c: charSet) {
currArray[i] = c;
String next = new String(currArray);
if(!visited.contains(next) && bankSet.contains(next)) {
visited.add(next);
queue.offer(next);
}
}
currArray[i] = old;
}
}
level++;
}
return -1;
}
}
|
[
"jojozhuang@gmail.com"
] |
jojozhuang@gmail.com
|
73863467bd3cfa2393d293180139a40e9354d1d3
|
15878f5f01d987acffe4168f344e7e8509c4fd64
|
/src/cn/com/thtf/egov/cms/controller/OnLineUserListener.java
|
39b890f1e230829ba37f7b2858c79841fb8ead28
|
[] |
no_license
|
liveqmock/thtf_02_source-Deprecated
|
fb30fecfd84a966d382998c8df5125507e679c9a
|
746f10a5899b1dedceb6a33650f0398ddb19fd75
|
refs/heads/master
| 2020-04-01T23:40:10.823372
| 2014-01-25T10:30:11
| 2014-01-25T10:30:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,086
|
java
|
/**
* ClassName OnLineUserListener
*
* History
* Create User: chen
* Create Date: 2009年12月21日
* Update User:
* Update Date:
*/
package cn.com.thtf.egov.cms.controller;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* OnLineUserListener
*
* @author chen
*
*/
public class OnLineUserListener implements HttpSessionListener {
/** log */
private static Logger log = LoggerFactory
.getLogger(OnLineUserListener.class);
/*
* (non-Javadoc)
*
* @see
* javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http
* .HttpSessionEvent)
*/
@Override
public void sessionCreated(HttpSessionEvent arg0) {
}
/*
* (non-Javadoc)
*
* @see
* javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet
* .http.HttpSessionEvent)
*/
@Override
public void sessionDestroyed(HttpSessionEvent arg0) {
log.debug("session超时,sessionId:" + arg0.getSession().getId());
Controller.doOffline(arg0.getSession());
}
}
|
[
"bis@foxmail.com"
] |
bis@foxmail.com
|
ae6edb16c81ed09e022ca56a15a09b52b8f119f3
|
b2f07f3e27b2162b5ee6896814f96c59c2c17405
|
/org/omg/DynamicAny/DynAnyPackage/TypeMismatch.java
|
8cb40bfee0e7fd2a80e8b72eeed1e0341184f318
|
[] |
no_license
|
weiju-xi/RT-JAR-CODE
|
e33d4ccd9306d9e63029ddb0c145e620921d2dbd
|
d5b2590518ffb83596a3aa3849249cf871ab6d4e
|
refs/heads/master
| 2021-09-08T02:36:06.675911
| 2018-03-06T05:27:49
| 2018-03-06T05:27:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 632
|
java
|
/* */ package org.omg.DynamicAny.DynAnyPackage;
/* */
/* */ import org.omg.CORBA.UserException;
/* */
/* */ public final class TypeMismatch extends UserException
/* */ {
/* */ public TypeMismatch()
/* */ {
/* 16 */ super(TypeMismatchHelper.id());
/* */ }
/* */
/* */ public TypeMismatch(String paramString)
/* */ {
/* 22 */ super(TypeMismatchHelper.id() + " " + paramString);
/* */ }
/* */ }
/* Location: C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar
* Qualified Name: org.omg.DynamicAny.DynAnyPackage.TypeMismatch
* JD-Core Version: 0.6.2
*/
|
[
"yuexiahandao@gmail.com"
] |
yuexiahandao@gmail.com
|
efa3be90326bcdf5232197cdaf8b0dbb2c0bac64
|
7a4d5d89d04ccb36a016cbbdbc25f48b1d668a8e
|
/SpringBootBoard_1130/src/main/java/com/javateam/SpringBootBoard/SpringBootBoardApplication.java
|
f00841ac31f9d1fe019e2998be0001eda74d145f
|
[] |
no_license
|
ev15963/gradle_work
|
5047841be243fb5c113754b8cdfd0eb87727983c
|
32b352e09048248745a19d9a9de9f8104f6b2dfb
|
refs/heads/master
| 2023-01-19T21:01:43.319710
| 2020-11-30T11:58:33
| 2020-11-30T11:58:33
| 312,476,784
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 339
|
java
|
package com.javateam.SpringBootBoard;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootBoardApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootBoardApplication.class, args);
}
}
|
[
"ev15963@hs.ac.kr"
] |
ev15963@hs.ac.kr
|
0f7d667c39c6976ba520c4383d0ab52773bdd90e
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/13/13_7579ef16dbf331a4ed9a83e17ff8c5083be0e282/EmbedderRuleFinder/13_7579ef16dbf331a4ed9a83e17ff8c5083be0e282_EmbedderRuleFinder_t.java
|
151eb827775045b76a80445b9609bb75925ca932
|
[] |
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
| 2,580
|
java
|
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2010-2011 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* Sonar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
package org.sonar.batch.components;
import com.google.common.collect.Maps;
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RuleFinder;
import org.sonar.api.rules.RuleQuery;
import org.sonar.api.rules.RuleRepository;
import org.sonar.api.utils.Logs;
import java.util.Collection;
import java.util.Map;
public class EmbedderRuleFinder implements RuleFinder {
private final Map<String, Map<String, Rule>> rules = Maps.newHashMap();
public EmbedderRuleFinder(RuleRepository[] repositories) {
for (RuleRepository repository : repositories) {
registerRepository(repository);
}
}
private void registerRepository(RuleRepository repository) {
Map<String, Rule> rulesByKey = Maps.newHashMap();
for (Rule rule : repository.createRules()) {
rule.setRepositoryKey(repository.getKey());
rulesByKey.put(rule.getKey(), rule);
}
Logs.INFO.info("Registered repository " + repository.getKey() + "/" + repository.getLanguage()
+ " with " + rulesByKey.size() + " rules");
rules.put(repository.getKey(), rulesByKey);
}
public Rule find(RuleQuery query) {
throw new EmbedderUnsupportedOperationException();
}
public Collection<Rule> findAll(RuleQuery query) {
throw new EmbedderUnsupportedOperationException();
}
public Rule findById(int id) {
throw new EmbedderUnsupportedOperationException("Searching rule by id doesn't make sense without database");
}
public Rule findByKey(String repositoryKey, String key) {
Map<String, Rule> rulesByKey = rules.get(repositoryKey);
if (rulesByKey != null) {
return rulesByKey.get(key);
}
return null;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
05e27b64867ee06946cfbae490d82d3048469c35
|
46786b383a16fff9c5d57b6b197b905e56a40dba
|
/xcloud/xcloud-vijava/src/main/java/com/vmware/vim25/CustomizationIdentification.java
|
fcea12265703f4d3754e9a6363a35928302a0b6e
|
[] |
no_license
|
yiguotang/x-cloud
|
feeb9c6288e01a45fca82648153238ed85d4069e
|
2b255249961efb99d48a0557f7d74ce3586918fe
|
refs/heads/master
| 2020-04-05T06:18:30.750373
| 2016-08-03T06:48:35
| 2016-08-03T06:48:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,691
|
java
|
/*================================================================================
Copyright (c) 2013 Steve Jin. 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 VMware, Inc. 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 VMWARE, INC. 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.vmware.vim25;
/**
* @author Steve Jin (http://www.doublecloud.org)
* @version 5.1
*/
@SuppressWarnings("all")
public class CustomizationIdentification extends DynamicData {
public String joinWorkgroup;
public String joinDomain;
public String domainAdmin;
public CustomizationPassword domainAdminPassword;
public String getJoinWorkgroup() {
return this.joinWorkgroup;
}
public String getJoinDomain() {
return this.joinDomain;
}
public String getDomainAdmin() {
return this.domainAdmin;
}
public CustomizationPassword getDomainAdminPassword() {
return this.domainAdminPassword;
}
public void setJoinWorkgroup(String joinWorkgroup) {
this.joinWorkgroup=joinWorkgroup;
}
public void setJoinDomain(String joinDomain) {
this.joinDomain=joinDomain;
}
public void setDomainAdmin(String domainAdmin) {
this.domainAdmin=domainAdmin;
}
public void setDomainAdminPassword(CustomizationPassword domainAdminPassword) {
this.domainAdminPassword=domainAdminPassword;
}
}
|
[
"waddy87@gmail.com"
] |
waddy87@gmail.com
|
d3e11197f04eebd6283ad92805b62238019dead8
|
28f1dedfa55de3381f0e2124c7c819f582767e2a
|
/core/components/xmpp/src/org/smartfrog/services/xmpp/AbstractXmppPrim.java
|
ff17d3dcc2351de1f3bf768c7766a7ef1b0a1d33
|
[] |
no_license
|
rhusar/smartfrog
|
3bd0032888c03a8a04036945c2d857f72a89dba6
|
0b4db766fb1ec1e1c2e48cbf5f7bf6bfd2df4e89
|
refs/heads/master
| 2021-01-10T05:07:39.218946
| 2014-11-28T08:52:32
| 2014-11-28T08:52:32
| 47,347,494
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,737
|
java
|
/** (C) Copyright 2006 Hewlett-Packard Development Company, LP
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For more information: www.smartfrog.org
*/
package org.smartfrog.services.xmpp;
import org.jivesoftware.smack.Roster;
import org.jivesoftware.smack.SSLXMPPConnection;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.Presence;
import org.smartfrog.sfcore.common.SmartFrogException;
import org.smartfrog.sfcore.common.SmartFrogResolutionException;
import org.smartfrog.sfcore.prim.PrimImpl;
import java.rmi.RemoteException;
/**
*/
public abstract class AbstractXmppPrim extends PrimImpl implements Xmpp {
private String server, login, password, resource, serviceName;
private int port;
private boolean presence, requireEncryption, useTLS;
public static final String ERROR_NO_SECURE_CONNECTION = "Failed to set up a secure connection to ";
private String status;
private int subscriptionMode;
protected AbstractXmppPrim() throws RemoteException {
}
/**
* Can be called to start components. Subclasses should override to provide functionality Do not block in this call,
* but spawn off any main loops!
*
* @throws SmartFrogException failure while starting
* @throws RemoteException In case of network/rmi error
*/
public synchronized void sfStart()
throws SmartFrogException, RemoteException {
super.sfStart();
server = sfResolve(ATTR_SERVER, server, true);
serviceName = sfResolve(ATTR_SERVICE_NAME, server, true);
readLoginAndPassword();
port = sfResolve(ATTR_PORT, port, true);
presence = sfResolve(ATTR_PRESENCE, presence, true);
requireEncryption = sfResolve(ATTR_REQUIRE_ENCRYPTION, requireEncryption, true);
resource = sfResolve(ATTR_RESOURCE, resource, true);
status = sfResolve(ATTR_STATUS, "", true);
subscriptionMode = sfResolve(ATTR_SUBSCRIPTION_MODE, 0, true);
useTLS = sfResolve(ATTR_USE_TLS, useTLS, true);
}
/**
* Some classes may override this
* @throws SmartFrogException resolution problems
* @throws RemoteException network problems
*/
protected void readLoginAndPassword() throws SmartFrogException, RemoteException {
if (login == null) {
login = sfResolve(ATTR_LOGIN, login, true);
}
if (password == null) {
password = sfResolve(ATTR_PASSWORD, password, true);
}
}
public String getServer() {
return server;
}
public void setServer(String server) {
this.server = server;
}
public String getLogin() {
return login;
}
public void setLogin(String login) {
this.login = login;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public boolean isPresence() {
return presence;
}
public void setPresence(boolean presence) {
this.presence = presence;
}
public String getResource() {
return resource;
}
public void setResource(String resource) {
this.resource = resource;
}
/**
* Create a connection to the server with a login, based on our state
*
* @return a logged in connection
* @throws SmartFrogException if something went wrong
*/
public XMPPConnection login() throws SmartFrogException {
XMPPConnection connection = null;
String serverInfo = server + ":" + port + " as " + login;
String connectionInfo = "connecting to " + serverInfo;
sfLog().debug(connectionInfo);
try {
if (useTLS) {
connection = new SSLXMPPConnection(server, port, serviceName);
} else {
connection = new XMPPConnection(server, port, serviceName);
}
connection.login(login, password, resource, presence);
//check the encryption status
if (requireEncryption && !connection.isSecureConnection()) {
throw new SmartFrogException(ERROR_NO_SECURE_CONNECTION + serverInfo);
}
configureRoster(connection);
//set the presence information up
if (presence) {
Presence presenceMessage = new Presence(Presence.Type.AVAILABLE);
presenceMessage.setStatus(status);
connection.sendPacket(presenceMessage);
}
return connection;
} catch (XMPPException e) {
closeConnection(connection);
throw new SmartFrogException(
connectionInfo,
e);
} catch (IllegalStateException e) {
throw new SmartFrogException(
connectionInfo,
e);
}
}
/**
* Override point: configure the roster of this connection. The default implementation rejects all requests
*
* @param connection connection to configure
*/
protected void configureRoster(XMPPConnection connection) {
Roster roster = connection.getRoster();
roster.setSubscriptionMode(getSubscriptionMode());
}
/**
* Shut down a connection. Can take up to 150 mS; the thread sleeps during this time
*
* @param connection connection to close; can be null
*/
protected static void closeConnection(XMPPConnection connection) {
if (connection != null) {
try {
connection.close();
} catch (IllegalStateException ignored) {
//ignored
}
}
}
/**
* get the current subscription mode
* @return the current subscription mode
*/
public int getSubscriptionMode() {
return subscriptionMode;
}
}
|
[
"steve_l@9868f95a-be1e-0410-b3e3-a02e98b909e6"
] |
steve_l@9868f95a-be1e-0410-b3e3-a02e98b909e6
|
8ba127e0027b07580fae3f75548b989f932571a4
|
a49830774c9f80d8675680a46541371384a7a2bb
|
/app/src/main/java/com/findcam/sdk/MainActivity.java
|
11db8afc98f1581e3654bbd5d6dd646aab49d788
|
[] |
no_license
|
wy749814530/FCOpenKit-AndroidX
|
588c12c36b4595c64c38d502eae6c08d889a698e
|
d760419cd1d82f2c2b9a4bea59ae625623b58013
|
refs/heads/master
| 2022-12-24T06:27:34.563810
| 2020-09-30T08:42:32
| 2020-09-30T08:42:32
| 299,844,816
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 452
|
java
|
package com.findcam.sdk;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.zhishi.management.ConnectionManager;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
FCOpenSDK.loadLibrary();
ConnectionManager.getInstance();
}
}
|
[
"wy749814530@163.com"
] |
wy749814530@163.com
|
502bed31aebcaaf092b288f05e963c0c13b54f44
|
de5373a5b728a65f8826904cea37c25d3c3f6200
|
/src/java/com/bds/ws/dto/FichaClienteRefComercialesDTO.java
|
beefabbdcaa1bbc90f04c625a9d1c6538aaef1b5
|
[] |
no_license
|
duna05/ibdsws
|
960fd123a4df66c8fb5f68ee7495d363581fda39
|
abfa12fdadccf171d65b0be835cdd2471004959f
|
refs/heads/master
| 2020-05-22T00:45:15.948298
| 2019-05-11T20:48:47
| 2019-05-11T20:48:47
| 186,178,839
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,834
|
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.bds.ws.dto;
import com.bds.ws.util.BDSUtil;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
/**
*
* @author humberto.rojas
*/
public class FichaClienteRefComercialesDTO extends BDSUtil implements Serializable{
private String casaComercial;
private String telefonos;
private String fechaConcesion;
/*private BigDecimal codigoFinanciera;
private BigDecimal tipoFinanciera;
private String tipoCuentaFinanciera;
private String numeroCuentaReferencia;
private String fechaApertura; */
private RespuestaDTO respuesta;
private List<FichaClienteRefComercialesDTO> ibReferenciaList;
public String getCasaComercial() {
return casaComercial;
}
public void setCasaComercial(String casaComercial) {
this.casaComercial = casaComercial;
}
public String getTelefonos() {
return telefonos;
}
public void setTelefonos(String telefonos) {
this.telefonos = telefonos;
}
public String getFechaConcesion() {
return fechaConcesion;
}
public void setFechaConcesion(String fechaConcesion) {
this.fechaConcesion = fechaConcesion;
}
public RespuestaDTO getRespuesta() {
return respuesta;
}
public void setRespuesta(RespuestaDTO respuesta) {
this.respuesta = respuesta;
}
public List<FichaClienteRefComercialesDTO> getIbReferenciaList() {
return ibReferenciaList;
}
public void setIbReferenciaList(List<FichaClienteRefComercialesDTO> ibReferenciaList) {
this.ibReferenciaList = ibReferenciaList;
}
}
|
[
"audra.zapata@delsur.com.ve"
] |
audra.zapata@delsur.com.ve
|
8a386a1eda4796cbbf2268f7c77341d9eb79309e
|
b3b4f3e0333d057f2e07344f7a6fcf3063c76b01
|
/src/main/java/ampcontrol/model/training/model/MultiLayerModelAdapter.java
|
c3235e67097f96cf6ec57cf9f77aeee0fa3adb29
|
[
"MIT"
] |
permissive
|
DrChainsaw/AmpControl
|
21d20fa2124a16ea67dae2153073c316033bc947
|
c6d3f20f431b4fa767c86c0d665bba710ee078e9
|
refs/heads/master
| 2021-07-13T13:11:52.878132
| 2020-10-16T18:49:20
| 2020-10-16T18:49:20
| 124,961,217
| 6
| 2
|
MIT
| 2021-06-07T17:55:23
| 2018-03-12T22:51:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,153
|
java
|
package ampcontrol.model.training.model;
import org.deeplearning4j.nn.api.Layer;
import org.deeplearning4j.nn.api.Model;
import org.deeplearning4j.nn.multilayer.MultiLayerNetwork;
import org.nd4j.evaluation.IEvaluation;
import org.nd4j.linalg.dataset.api.iterator.DataSetIterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* {@link ModelAdapter} for {@link MultiLayerNetwork MultiLayerNetworks}.
*
* @author Christian Skärby
*/
public class MultiLayerModelAdapter implements ModelAdapter {
private static final Logger log = LoggerFactory.getLogger(MultiLayerModelAdapter.class);
private final MultiLayerNetwork model;
public MultiLayerModelAdapter(MultiLayerNetwork model) {
this.model = model;
for (Layer l: model.getLayers()) {
log.info(l.toString());
}
}
@Override
public void fit(DataSetIterator iter) {
model.fit(iter);
}
@Override
public <T extends IEvaluation> T[] eval(DataSetIterator iter, T... evals) {
return model.doEvaluation(iter, evals);
}
@Override
public Model asModel() {
return model;
}
}
|
[
"Christian.kyril.skarby@gmail.com"
] |
Christian.kyril.skarby@gmail.com
|
19bbf613e054f69f0be7808ff5eb69a9760ee274
|
e82c1473b49df5114f0332c14781d677f88f363f
|
/MBS/src/main/java/nta/mss/info/DoctorInfo.java
|
886de7e9b6d043c9361c594155506d99365ad069
|
[] |
no_license
|
zhiji6/mih
|
fa1d2279388976c901dc90762bc0b5c30a2325fc
|
2714d15853162a492db7ea8b953d5b863c3a8000
|
refs/heads/master
| 2023-08-16T18:35:19.836018
| 2017-12-28T09:33:19
| 2017-12-28T09:33:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,523
|
java
|
package nta.mss.info;
/**
* The Class DoctorInfo.
*
* @author Dev-DuyenNT
* @CrtDate Jul 29, 2014
*/
public class DoctorInfo {
private String hospitalCode;
private String hospitalName;
private String departmentCode;
private String departmentName;
private String departmentType;
private String departmentOrder;
private String doctorName;
private String doctorOrder;
private String juniorFlg;
private String kpi;
// private Integer hospitalId;
// private Integer deptId;
public DoctorInfo() {
}
public String getHospitalCode() {
return hospitalCode;
}
public void setHospitalCode(String hospitalCode) {
this.hospitalCode = hospitalCode;
}
public String getHospitalName() {
return hospitalName;
}
public void setHospitalName(String hospitalName) {
this.hospitalName = hospitalName;
}
public String getDepartmentCode() {
return departmentCode;
}
public void setDepartmentCode(String departmentCode) {
this.departmentCode = departmentCode;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public String getDepartmentType() {
return departmentType;
}
public void setDepartmentType(String departmentType) {
this.departmentType = departmentType;
}
public String getDepartmentOrder() {
return departmentOrder;
}
public void setDepartmentOrder(String departmentOrder) {
this.departmentOrder = departmentOrder;
}
public String getDoctorName() {
return doctorName;
}
public void setDoctorName(String doctorName) {
this.doctorName = doctorName;
}
public String getJuniorFlg() {
return juniorFlg;
}
public void setJuniorFlg(String juniorFlg) {
this.juniorFlg = juniorFlg;
}
public String getKpi() {
return kpi;
}
public void setKpi(String kpi) {
this.kpi = kpi;
}
/**
* @return the doctorOrder
*/
public String getDoctorOrder() {
return doctorOrder;
}
/**
* @param doctorOrder the doctorOrder to set
*/
public void setDoctorOrder(String doctorOrder) {
this.doctorOrder = doctorOrder;
}
@Override
public String toString() {
return "DoctorInfo [hospitalCode=" + hospitalCode + ", hospitalName="
+ hospitalName + ", departmentCode=" + departmentCode
+ ", departmentName=" + departmentName + ", departmentType="
+ departmentType + ", departmentOrder=" + departmentOrder
+ ", doctorName=" + doctorName + ", doctorOrder=" + doctorOrder
+ ", juniorFlg=" + juniorFlg + ", kpi=" + kpi + "]";
}
}
|
[
"duc_nt@nittsusystem-vn.com"
] |
duc_nt@nittsusystem-vn.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.