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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d34d40e8cb423125e23e715e99d1259593ed8045
|
315af64ea65cc45354e8a393ab2b9aa13337b446
|
/cofpasgers/src/main/java/com/huiketong/cofpasgers/util/weixin/AccessToken.java
|
b0252a02177a9d21b5948b818819e2958315e922
|
[
"Apache-2.0"
] |
permissive
|
ZuofeiGithub/javaweb_huiketong
|
3d7d3777f9081101fa1fc4ac6bdb25ff96010b23
|
0c2e630fd1be9a0ecf02230acf6b82e9b6bc8b2c
|
refs/heads/master
| 2020-04-19T08:01:30.179765
| 2019-05-28T07:58:26
| 2019-05-28T07:58:26
| 168,064,380
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 462
|
java
|
package com.huiketong.cofpasgers.util.weixin;
public class AccessToken {
String access_token;
Long expires_in;
public String getAccess_token() {
return access_token;
}
public void setAccess_token(String access_token) {
this.access_token = access_token;
}
public Long getExpires_in() {
return expires_in;
}
public void setExpires_in(Long expires_in) {
this.expires_in = expires_in;
}
}
|
[
"348068347@qq.com"
] |
348068347@qq.com
|
d93f0afb589549f24d721387d14f87a3708ca28e
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/14/org/jfree/chart/plot/CategoryPlot_setRangeCrosshairStroke_2574.java
|
abc0cb3f23247a61f1007b41ed043d0567eb2bd7
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 4,714
|
java
|
org jfree chart plot
gener plot data link categori dataset categorydataset
render data item link categori item render categoryitemrender
categori plot categoryplot plot axi plot valueaxisplot
set pen style code stroke code draw rang
crosshair visibl send link plot chang event plotchangeev
regist listen
param stroke crosshair stroke code code
permit
rang crosshair stroke getrangecrosshairstrok
set rang crosshair stroke setrangecrosshairstrok stroke stroke
stroke
illeg argument except illegalargumentexcept null 'stroke' argument
rang crosshair stroke rangecrosshairstrok stroke
fire chang event firechangeev
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
a320de3f4166a5fd46c2e1d3a117ece8303a4a3f
|
c8d0f30ecb649a1c68fcd95a2fe04b403bf47d85
|
/application-console/src/main/java/com/open/application/console/controller/TaskShowController.java
|
a4547d1370aaee4afe7a29618f09baeb5246c2e9
|
[] |
no_license
|
Benjamin1901/application
|
1d600060a467236c199cfe4f613307995cd3c8a7
|
5c5e124abb01ce47e86aa17db243f14db4527f02
|
refs/heads/master
| 2020-04-16T18:48:52.081023
| 2019-01-15T11:06:53
| 2019-01-15T11:06:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,789
|
java
|
package com.open.application.console.controller;
import com.alibaba.fastjson.JSONObject;
import com.open.application.common.models.ExceptionModel;
import com.open.application.common.models.Task;
import com.open.application.common.service.ExceptionService;
import com.open.application.common.service.TaskShowService;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
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 org.springframework.web.bind.annotation.RestController;
/**
* 任务显示与插入控制器
* @author HeYuanHao
*
*/
@RestController
@Slf4j
@RequestMapping("/task")
public class TaskShowController {
@Autowired
private TaskShowService taskShowService;
@Autowired
private ExceptionService exceptionService;
@RequestMapping(path = "/showTaskData", method = RequestMethod.GET)
public JSONObject showTaskData(String id, String token,
@RequestParam(value = "limit", defaultValue = "20") Integer limit,
@RequestParam(value = "page", defaultValue = "1") Integer page) {
List<Task> taskList = taskShowService.showTaskDataByUid(id, limit * (page - 1), limit);
taskList = taskList.parallelStream().sorted((task1, task2) -> {
if (task1.getCreateTime().after(task2.getCreateTime())) {
return -1;
} else if (task1.getCreateTime().before(task2.getCreateTime())) {
return 1;
} else {
return 0;
}
}).collect(Collectors.toList());
Integer total = taskShowService.countTaskDataByUid(id);
JSONObject jsonObject = new JSONObject();
jsonObject.put("tasks", taskList);
jsonObject.put("total", total);
return jsonObject;
}
@RequestMapping(path = "/searchTask", method = RequestMethod.GET)
public Map searchTask(String id, String token,
@RequestParam(value = "name", required = false) String name,
@RequestParam(value = "describe", required = false) String describe,
@RequestParam(value = "limit", defaultValue = "20") Integer limit,
@RequestParam("page") Integer page,
@RequestParam(value = "status", required = false) Integer status,
@RequestParam(value = "type", required = false) String type) {
Map<String, Object> result = taskShowService
.searchTaskByNameOrDescribeAndByUid(id, limit * (page - 1), limit, name, describe, status,
type);
return result;
}
@RequestMapping(path = "/newTask", method = RequestMethod.POST)
public JSONObject newTask(@RequestBody Task task) {
task.setCreateTime(new Date());
task.setStatus(0);
task.setTid(UUID.randomUUID().toString().replace("-", ""));
task.setSource(task.getSource().replace(" ", ""));
taskShowService.insertTaskToElasticSearchAndDB(task);
JSONObject jsonObject = new JSONObject();
jsonObject.put("status", 200);
return jsonObject;
}
@RequestMapping(path = "/getTaskIDs", method = RequestMethod.GET)
public List getTaskIDs(String id, String token) {
List<String> taskIDS = taskShowService.getTaskIDs(id);
log.info(taskIDS.toString());
return taskIDS;
}
@RequestMapping(path = "/q", method = RequestMethod.GET)
public List getExceptionType(String id, String token, String tid) {
List<String> types = taskShowService.getExceptionTypeByTidAndUid(tid, id);
return types;
}
@RequestMapping(path = "/s", method = RequestMethod.GET)
public Map searchExceptionType(String tid,
String id, String token, @RequestParam(value = "type", required = false) String type,
@RequestParam(value = "key", required = false) String key,
@RequestParam(value = "offset", defaultValue = "0") Integer offset,
@RequestParam(value = "limit", defaultValue = "10") Integer limit) {
// Map<String, Object> map = exceptionService.searchExceptions(id, tid, type, key, offset, limit);
Map<String, Object> map = new HashMap<>();
map.put("totalHits", 20);
List<ExceptionModel> list = new ArrayList<ExceptionModel>();
map.put("exceptions", list);
for (int i = 0; i < 10; i++) {
try {
int z = 1 / 0;
} catch (Exception e) {
list.add(ExceptionModel.builder().uid(id).type(e.getClass().getTypeName()).tid(tid)
.throwTime(new Date()).detail(e.toString()).pid("b6852c97119c41a8a519eeaae50f10f7")
.eid(UUID.randomUUID().toString().replace("-", "")).build());
}
}
return map;
}
}
|
[
"727869774@qq.com"
] |
727869774@qq.com
|
6c2f54b42829b6b2d033309d6293288ef4aa11ab
|
c8664fc194971e6e39ba8674b20d88ccfa7663b1
|
/com/tencent/mm/plugin/appbrand/p/e/e.java
|
4d98e2d4d07ea39e4a43189d5906356b1e265019
|
[] |
no_license
|
raochuan/wexin1120
|
b926bc8d4143c4b523ed43e265cd20ef0c89ad40
|
1eaa71e1e3e7c9f9b9f96db8de56db3dfc4fb4d3
|
refs/heads/master
| 2020-05-17T23:57:00.000696
| 2017-11-03T02:33:27
| 2017-11-03T02:33:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 956
|
java
|
package com.tencent.mm.plugin.appbrand.p.e;
import com.tencent.gmtrace.GMTrace;
public final class e
extends g
implements i
{
private short jyk;
private String jyl;
public e()
{
GMTrace.i(10189407256576L, 75917);
GMTrace.o(10189407256576L, 75917);
}
public final void a(short paramShort)
{
GMTrace.i(10189809909760L, 75920);
this.jyk = paramShort;
GMTrace.o(10189809909760L, 75920);
}
public final String abq()
{
GMTrace.i(10189541474304L, 75918);
String str = this.jyl;
GMTrace.o(10189541474304L, 75918);
return str;
}
public final void sj(String paramString)
{
GMTrace.i(10189675692032L, 75919);
this.jyl = paramString;
GMTrace.o(10189675692032L, 75919);
}
}
/* Location: /Users/xianghongyan/decompile/dex2jar/classes2-dex2jar.jar!/com/tencent/mm/plugin/appbrand/p/e/e.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"15223790237@139.com"
] |
15223790237@139.com
|
221e363cbbf8a9267633d1f6fe16e186842e8b1f
|
f96fe513bfdf2d1dbd582305e1cbfda14a665bec
|
/net.sf.smbt.osc.ableton/src-model/net/sf/smbt/ezableton/impl/LiveTrackArmImpl.java
|
25ace03e601a9fb24cbb18d78bc2c1b92cfb7268
|
[] |
no_license
|
lucascraft/ubq_wip
|
04fdb727e7b2dc384ba1d2195ad47e895068e1e4
|
eff577040f21be71ea2c76c187d574f1617703ce
|
refs/heads/master
| 2021-01-22T02:28:20.687330
| 2015-06-10T12:38:47
| 2015-06-10T12:38:47
| 37,206,324
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,887
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.sf.smbt.ezableton.impl;
import net.sf.smbt.ezableton.EzabletonPackage;
import net.sf.smbt.ezableton.LiveTrackArm;
import net.sf.smbt.ezableton.TRACK_ARM_STATUS;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Live Track Arm</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link net.sf.smbt.ezableton.impl.LiveTrackArmImpl#getTrackID <em>Track ID</em>}</li>
* <li>{@link net.sf.smbt.ezableton.impl.LiveTrackArmImpl#getState <em>State</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class LiveTrackArmImpl extends AbletonLiveSndCmdImpl implements LiveTrackArm {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LiveTrackArmImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EzabletonPackage.Literals.LIVE_TRACK_ARM;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getTrackID() {
return (Integer)eGet(EzabletonPackage.Literals.LIVE_TRACK_ARM__TRACK_ID, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTrackID(int newTrackID) {
eSet(EzabletonPackage.Literals.LIVE_TRACK_ARM__TRACK_ID, newTrackID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TRACK_ARM_STATUS getState() {
return (TRACK_ARM_STATUS)eGet(EzabletonPackage.Literals.LIVE_TRACK_ARM__STATE, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setState(TRACK_ARM_STATUS newState) {
eSet(EzabletonPackage.Literals.LIVE_TRACK_ARM__STATE, newState);
}
} //LiveTrackArmImpl
|
[
"lucas.bigeardel@gmail.com"
] |
lucas.bigeardel@gmail.com
|
18aaf7e8f46e300a69389b4a9c22e670e72647ef
|
9b9c3236cc1d970ba92e4a2a49f77efcea3a7ea5
|
/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/network/clientpackets/SetPrivateStoreListBuy.java
|
cf530be876fb34b2ab36c48231726ec3bd5baf68
|
[] |
no_license
|
BETAJIb/ikol
|
73018f8b7c3e1262266b6f7d0a7f6bbdf284621d
|
f3709ea10be2d155b0bf1dee487f53c723f570cf
|
refs/heads/master
| 2021-01-05T10:37:17.831153
| 2019-12-24T22:23:02
| 2019-12-24T22:23:02
| 240,993,482
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,993
|
java
|
/*
* This file is part of the L2J Mobius project.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.ArrayList;
import java.util.List;
import org.l2jmobius.gameserver.model.TradeItem;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.network.ClientThread;
import org.l2jmobius.gameserver.network.serverpackets.ChangeWaitType;
import org.l2jmobius.gameserver.network.serverpackets.PrivateStoreMsgBuy;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
import org.l2jmobius.gameserver.network.serverpackets.UserInfo;
public class SetPrivateStoreListBuy extends ClientBasePacket
{
public SetPrivateStoreListBuy(byte[] decrypt, ClientThread client)
{
super(decrypt);
int count = readD();
if (count <= 10)
{
final PlayerInstance player = client.getActiveChar();
// TradeList tradelist = player.getTradeList();
player.setBuyList(new ArrayList<>());
List<TradeItem> listbuy = player.getBuyList();
int cost = 0;
for (int x = 0; x < count; ++x)
{
final TradeItem temp = new TradeItem();
temp.setItemId(readD());
readH();
temp.setCount(readD());
temp.setOwnersPrice(readD());
listbuy.add(temp);
cost += temp.getOwnersPrice() * temp.getCount();
}
if (count == 0)
{
listbuy = null;
}
if (cost > player.getAdena())
{
count = 0;
final SystemMessage msg = new SystemMessage(SystemMessage.THE_PURCHASE_PRICE_IS_HIGHER_THAN_MONEY);
player.sendPacket(msg);
}
if (count != 0)
{
player.setPrivateStoreType(3);
player.sendPacket(new ChangeWaitType(player, 0));
player.broadcastPacket(new ChangeWaitType(player, 0));
player.sendPacket(new UserInfo(player));
player.broadcastPacket(new UserInfo(player));
player.sendPacket(new PrivateStoreMsgBuy(player));
player.broadcastPacket(new PrivateStoreMsgBuy(player));
}
else
{
player.setPrivateStoreType(0);
player.sendPacket(new UserInfo(player));
player.broadcastPacket(new UserInfo(player));
}
}
else
{
final PlayerInstance player = client.getActiveChar();
player.setPrivateStoreType(0);
player.sendPacket(new UserInfo(player));
player.broadcastPacket(new UserInfo(player));
}
}
}
|
[
"mobius@cyber-wizard.com"
] |
mobius@cyber-wizard.com
|
1b13325c711f4ef56679c46cf1094ebd5c268fc1
|
de2e77a2d79fd6599b718f3bc6b5b93b2341d1d7
|
/hfut-fr/src/main/java/edu/hfut/fr/image/processing/face/feature/FisherFaceFeature.java
|
78a84f8c553958c02d7973be50730114ba487886
|
[] |
no_license
|
education-service/hfut-face-plate
|
0100c91c401d7cb72c3cd11f9ae4aa87e1ee172f
|
094d865d060f8a10ba6f162ff35d4ec5d9a012d1
|
refs/heads/master
| 2016-09-11T07:07:15.740260
| 2015-11-29T13:40:51
| 2015-11-29T13:40:51
| 30,165,805
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,738
|
java
|
package edu.hfut.fr.image.processing.face.feature;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.openimaj.citation.annotation.Reference;
import org.openimaj.citation.annotation.ReferenceType;
import org.openimaj.data.dataset.GroupedDataset;
import org.openimaj.data.dataset.ListDataset;
import org.openimaj.feature.DoubleFV;
import org.openimaj.feature.FeatureVectorProvider;
import org.openimaj.image.FImage;
import org.openimaj.image.model.FisherImages;
import org.openimaj.io.IOUtils;
import org.openimaj.ml.training.BatchTrainer;
import org.openimaj.util.pair.IndependentPair;
import edu.hfut.fr.image.processing.face.alignment.FaceAligner;
import edu.hfut.fr.image.processing.face.detection.DetectedFace;
/**
* FisherFace特征
*
* @author wanggang
*/
@Reference(type = ReferenceType.Article, author = { "Belhumeur, Peter N.", "Hespanha, Jo\\~{a}o P.",
"Kriegman, David J." }, title = "Fisherfaces vs. Fisherfaces: Recognition Using Class Specific Linear Projection", year = "1997", journal = "IEEE Trans. Pattern Anal. Mach. Intell.", pages = {
"711", "", "720" }, url = "http://dx.doi.org/10.1109/34.598228", month = "July", number = "7", publisher = "IEEE Computer Society", volume = "19", customData = {
"issn", "0162-8828", "numpages", "10", "doi", "10.1109/34.598228", "acmid", "261512", "address",
"Washington, DC, USA", "keywords",
"Appearance-based vision, face recognition, illumination invariance, Fisher's linear discriminant." })
public class FisherFaceFeature implements FacialFeature, FeatureVectorProvider<DoubleFV> {
public static class Extractor<T extends DetectedFace> implements FacialFeatureExtractor<FisherFaceFeature, T>,
BatchTrainer<IndependentPair<?, T>> {
FisherImages fisher = null;
FaceAligner<T> aligner = null;
public Extractor(int numComponents, FaceAligner<T> aligner) {
this(new FisherImages(numComponents), aligner);
}
public Extractor(FisherImages basis, FaceAligner<T> aligner) {
this.fisher = basis;
this.aligner = aligner;
}
@Override
public FisherFaceFeature extractFeature(T face) {
final FImage patch = aligner.align(face);
final DoubleFV fv = fisher.extractFeature(patch);
return new FisherFaceFeature(fv);
}
@Override
public void readBinary(DataInput in) throws IOException {
fisher.readBinary(in);
final String alignerClass = in.readUTF();
aligner = IOUtils.newInstance(alignerClass);
aligner.readBinary(in);
}
@Override
public byte[] binaryHeader() {
return this.getClass().getName().getBytes();
}
@Override
public void writeBinary(DataOutput out) throws IOException {
fisher.writeBinary(out);
out.writeUTF(aligner.getClass().getName());
aligner.writeBinary(out);
}
@Override
public void train(final List<? extends IndependentPair<?, T>> data) {
final List<IndependentPair<?, FImage>> patches = new AbstractList<IndependentPair<?, FImage>>() {
@Override
public IndependentPair<?, FImage> get(int index) {
return IndependentPair.pair(data.get(index).firstObject(),
aligner.align(data.get(index).secondObject()));
}
@Override
public int size() {
return data.size();
}
};
fisher.train(patches);
}
/**
* 进行训练
*/
public void train(Map<?, ? extends List<T>> data) {
final List<IndependentPair<?, FImage>> list = new ArrayList<IndependentPair<?, FImage>>();
for (final Entry<?, ? extends List<T>> e : data.entrySet()) {
for (final T i : e.getValue()) {
list.add(IndependentPair.pair(e.getKey(), aligner.align(i)));
}
}
fisher.train(list);
}
/**
* 进行训练
*/
public <KEY> void train(GroupedDataset<KEY, ? extends ListDataset<T>, T> data) {
final List<IndependentPair<?, FImage>> list = new ArrayList<IndependentPair<?, FImage>>();
for (final KEY e : data.getGroups()) {
for (final T i : data.getInstances(e)) {
if (i != null)
list.add(IndependentPair.pair(e, aligner.align(i)));
}
}
fisher.train(list);
}
}
private DoubleFV fv;
protected FisherFaceFeature() {
this(null);
}
/**
* 构造函数
*/
public FisherFaceFeature(DoubleFV fv) {
this.fv = fv;
}
@Override
public void readBinary(DataInput in) throws IOException {
fv = new DoubleFV();
fv.readBinary(in);
}
@Override
public byte[] binaryHeader() {
return getClass().getName().getBytes();
}
@Override
public void writeBinary(DataOutput out) throws IOException {
fv.writeBinary(out);
}
@Override
public DoubleFV getFeatureVector() {
return fv;
}
}
|
[
"wanggang@zxisl.com"
] |
wanggang@zxisl.com
|
82e90996c6240753faf1859284583d9e31ea0ea5
|
71071f98d05549b67d4d6741e8202afdf6c87d45
|
/files/Spring_Integration_Extensions/INTEXT-199/src/main/java/org/springframework/integration/aws/s3/core/PaginatedObjectsView.java
|
4876dcec01d4322e1245aca3eea64c95b9f12c59
|
[] |
no_license
|
Sun940201/SpringSpider
|
0adcdff1ccfe9ce37ba27e31b22ca438f08937ad
|
ff2fc7cea41e8707389cb62eae33439ba033282d
|
refs/heads/master
| 2022-12-22T09:01:54.550976
| 2018-06-01T06:31:03
| 2018-06-01T06:31:03
| 128,649,779
| 1
| 0
| null | 2022-12-16T00:51:27
| 2018-04-08T14:30:30
|
Java
|
UTF-8
|
Java
| false
| false
| 1,563
|
java
|
/*
* Copyright 2002-2013 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.integration.aws.s3.core;
import java.util.List;
/**
* Returns the Paginated view of the objects in Amazon S3 for the queries bucket
* See {@link AmazonS3Operations} for more details on various operations on S3
*
* @author Amol Nayak
*
* @since 0.5
*
*/
public interface PaginatedObjectsView {
/**
* Gets the Paginated List of Object names
* @return A {@link List} of paginated object names
*/
List<S3ObjectSummary> getObjectSummary();
/**
* Invoke this method to know if more pages of results is present
* @return true if more results are present in the {@link List} of objects returned
*/
boolean hasMoreResults();
/**
* Contains the marker that can be used to get the next listing of objects from the
* S3. Contains a null value if the listing is complete, the hasMoreResults
* method will return true if this marker contains a non null value.
*/
String getNextMarker();
}
|
[
"527474541@qq.com"
] |
527474541@qq.com
|
5786def593410aee67a04db27c48a78a24339f33
|
3b4e141e428f7a693ed05aa16f90e0079bfc80a3
|
/wangxl/src/main/java/gof/ray/Visitor/A1/Main.java
|
0d9d3a8d0cf274f7fbf0f009e99c0a3f021cc7da
|
[] |
no_license
|
18612131753/wangxl
|
8bda332d4c5c4e04ce3b1eb08cbf2ccdcbd67f51
|
15e8c3a8990151047d9dbe93832047e3a134fb30
|
refs/heads/master
| 2021-01-21T21:05:32.770806
| 2018-05-10T03:27:25
| 2018-05-10T03:27:25
| 94,773,030
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,773
|
java
|
package gof.ray.Visitor.A1;
import java.util.Iterator;
public class Main {
public static void main(String[] args) {
try {
Directory rootdir = new Directory("root");
Directory bindir = new Directory("bin");
Directory tmpdir = new Directory("tmp");
Directory usrdir = new Directory("usr");
rootdir.add(bindir);
rootdir.add(tmpdir);
rootdir.add(usrdir);
bindir.add(new File("vi", 10000));
bindir.add(new File("latex", 20000));
Directory yuki = new Directory("yuki");
Directory hanako = new Directory("hanako");
Directory tomura = new Directory("tomura");
usrdir.add(yuki);
usrdir.add(hanako);
usrdir.add(tomura);
yuki.add(new File("diary.html", 100));
yuki.add(new File("Composite.java", 200));
hanako.add(new File("memo.tex", 300));
hanako.add(new File("index.html", 350));
tomura.add(new File("game.doc", 400));
tomura.add(new File("junk.mail", 500));
FileFindVisitor ffv = new FileFindVisitor(".html");
rootdir.accept(ffv);
System.out.println("HTML files are:");
Iterator<Entry> it = ffv.getFoundFiles();
while (it.hasNext()) {
File file = (File)it.next();
System.out.println(file.toString());
}
} catch ( Exception e) {
e.printStackTrace();
}
}
}
|
[
"32411043@qq.com"
] |
32411043@qq.com
|
ac67fd4a0ea1f724676674b50f2bfc62c19f607b
|
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
|
/google/cloud/orchestration/airflow/service/v1/google-cloud-airflow-service-v1-java/proto-google-cloud-airflow-service-v1-java/src/main/java/com/google/cloud/orchestration/airflow/service/v1/PrivateClusterConfigOrBuilder.java
|
7dcebf7dd4b161d1766020bf0953cf8e98067ce4
|
[
"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
| true
| 2,671
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/orchestration/airflow/service/v1/environments.proto
package com.google.cloud.orchestration.airflow.service.v1;
public interface PrivateClusterConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Optional. If `true`, access to the public endpoint of the GKE cluster is
* denied.
* </pre>
*
* <code>bool enable_private_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return The enablePrivateEndpoint.
*/
boolean getEnablePrivateEndpoint();
/**
* <pre>
* Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
* left blank, the default value of '172.16.0.0/23' is used.
* </pre>
*
* <code>string master_ipv4_cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return The masterIpv4CidrBlock.
*/
java.lang.String getMasterIpv4CidrBlock();
/**
* <pre>
* Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
* left blank, the default value of '172.16.0.0/23' is used.
* </pre>
*
* <code>string master_ipv4_cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return The bytes for masterIpv4CidrBlock.
*/
com.google.protobuf.ByteString
getMasterIpv4CidrBlockBytes();
/**
* <pre>
* Output only. The IP range in CIDR notation to use for the hosted master network. This
* range is used for assigning internal IP addresses to the GKE cluster
* master or set of masters and to the internal load balancer virtual IP.
* This range must not overlap with any other ranges in use
* within the cluster's network.
* </pre>
*
* <code>string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return The masterIpv4ReservedRange.
*/
java.lang.String getMasterIpv4ReservedRange();
/**
* <pre>
* Output only. The IP range in CIDR notation to use for the hosted master network. This
* range is used for assigning internal IP addresses to the GKE cluster
* master or set of masters and to the internal load balancer virtual IP.
* This range must not overlap with any other ranges in use
* within the cluster's network.
* </pre>
*
* <code>string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return The bytes for masterIpv4ReservedRange.
*/
com.google.protobuf.ByteString
getMasterIpv4ReservedRangeBytes();
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
39cdc85afb18d2bbe5794a0768e0a1d223dec18a
|
1489658cccc8c9826ca833f922fcdd0401ad0d1d
|
/Qmyd/src/com/ak/qmyd/service/PushService.java
|
3d3c8af80955ef38f1072f93bb37b807c8598025
|
[] |
no_license
|
paulzeng/qmyd
|
b9386dae0ef277679fba3ebd180d7fa31c93279d
|
16d2183d3ef1d1dbdf0636b575c3794330a62e7f
|
refs/heads/master
| 2021-01-10T05:30:36.952347
| 2015-11-10T12:38:18
| 2015-11-10T12:38:18
| 45,910,835
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 6,920
|
java
|
package com.ak.qmyd.service;
import java.util.List;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;
import com.ak.qmyd.R;
import com.ak.qmyd.activity.MessageCenterActivity;
import com.ak.qmyd.bean.PushInfo;
import com.ak.qmyd.config.Config;
import com.ak.qmyd.config.MyApplication;
import com.ak.qmyd.db.DBManager;
import com.ak.qmyd.tools.DebugUtility;
import com.ak.qmyd.tools.JsonManager;
import com.ak.qmyd.tools.NetManager;
import com.ak.qmyd.tools.PreferenceManager;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
public class PushService extends Service {
private Timer mTimer;
private MyTimerTask mTimerTask;
/**
* 请求推送的时间间隔
*/
public static final int PUSHTIME = 1000 * 60 * 1;
private Map<String, ?> userInfoSp;
String tag;
int page;
int pageSize;
// List<PushInfo> mDate = new ArrayList<PushInfo>();
private RequestQueue mRequestQueue;
@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}
@Override
public void onStart(Intent intent, int startid) {
DebugUtility.showLog("My Service Start");
if (mTimer != null) {
if (mTimerTask != null) {
mTimerTask.cancel(); // 将原任务从队列中移除
}
mTimerTask = new MyTimerTask(); // 新建一个任务
mTimer.schedule(mTimerTask, 1000, PUSHTIME);// 10S后启动任务
}
}
@Override
public void onCreate() {
mTimer = new Timer(true);
}
/**
* 新建通知
*
* @param title
* @param content
* @param id
*/
@SuppressWarnings("deprecation")
void showNotifycation(String title, String content) {
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
int icon = R.drawable.ic_launcher;
long when = System.currentTimeMillis();
Notification notification = new Notification(icon, null, when);// 第一个参数为图标,第二个参数为标题,第三个为通知时间
// 点击notification之后,该notification自动消失
notification.flags = Notification.FLAG_AUTO_CANCEL;
Intent openintent = null;
openintent = new Intent(this, MessageCenterActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
openintent, PendingIntent.FLAG_UPDATE_CURRENT);// 当点击消息时就会向系统发送openintent意图
notification.setLatestEventInfo(this, title, content, contentIntent);
mNotificationManager.notify(0, notification);
}
@Override
public void onDestroy() {
DebugUtility.showLog("My Service Stoped");
mTimer.cancel();
mTimerTask.cancel();
stopSelf();
}
class MyTimerTask extends TimerTask {
@Override
public void run() {
// TODO Auto-generated method stub
// 发送请求
if (!MyApplication.instance.userInfoSp.getAll().isEmpty()) {
httpGetJson();
}
}
}
private void httpGetJson() {
if (PreferenceManager.getString(this, "tag") == null
|| PreferenceManager.getString(this, "tag").trim().equals("")) {
tag = System.currentTimeMillis() + "";
DebugUtility.showLog("时间戳为当前时间:" + tag);
} else {
tag = PreferenceManager.getString(this, "tag").toString();
DebugUtility.showLog("时间戳为上次保存时间:" + tag);
}
page = 1;
pageSize = 10;
userInfoSp = MyApplication.instance.userInfoSp.getAll();
mRequestQueue = Volley.newRequestQueue(this);
String url = Config.MY_MESSAGE_URL + "/"
+ MyApplication.instance.getHardId() + "/"
+ userInfoSp.get("sessionId") + "/" + userInfoSp.get("userId")
+ "/" + tag + "/" + page + "/" + pageSize;
DebugUtility.showLog("请求URL:" + url);
if (NetManager.isNetworkConnected(this)) {
StringRequest request = new StringRequest(Request.Method.GET, url,
new Listener<String>() {
@Override
public void onResponse(String response) {
// TODO Auto-generated method stub
parseRespense(response);
}
}, new ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(PushService.this, "获取数据失败", 1 * 1000).show();
DebugUtility.showLog("获取我的消息失败:"
+ error.getMessage());
}
}) {
@Override
protected Map<String, String> getParams()
throws AuthFailureError {
// TODO Auto-generated method stub
return super.getParams();
}
};
mRequestQueue.add(request);
} else {
Toast.makeText(this, "网络不可用,请检查网络设置", 1 * 1000).show();
}
}
void parseRespense(String response) {
JSONObject jsonObj;
try {
jsonObj = new JSONObject(response);
String resultCode = JsonManager.getJsonItem(jsonObj, "resultCode")
.toString();
String resultInfo = JsonManager.getJsonItem(jsonObj, "resultInfo")
.toString();
if (resultCode.equals("1")) {
DebugUtility.showLog("获取消息:" + response);
String tag = JsonManager.getJsonItem(jsonObj, "tag").toString();
// 有新的数据时,更新tag
PreferenceManager.setString(this, "tag", tag);
String pushinfo = JsonManager.getJsonItem(jsonObj, "pushList")
.toString();
// 消息内容集合
List<PushInfo> pushinfos = JsonManager.getListFromJSON(
pushinfo, PushInfo.class);
if (userInfoSp.get("userId").toString() != null
&& !userInfoSp.get("userId").toString().equals("")) {
// 将消息内容插入数据库
DBManager.getInstance(this).inseartMessageList(
userInfoSp.get("userId").toString(), pushinfos);
// 将数据库和新获得数据组合在一起
if (pushinfos.size() > 0) {
showNotifycation("全民运动", "你好,有" + pushinfos.size()
+ "条新消息.");
}
}
} else if (resultCode.equals("0")) {
DebugUtility.showLog("resultCode=" + resultCode + "获取消息异常");
} else if (resultCode.equals("3")) {
DebugUtility.showLog("resultCode=" + resultCode + resultInfo);
} else if (resultCode.equals("10000")) {
DebugUtility.showLog("resultCode=" + resultCode
+ "未登陆或登陆超时,请重新登陆");
// Intent intent = new Intent();
// intent.setAction("com.ak.qmyd.pushservice");
// stopService(intent);
stopSelf();
}
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|
[
"372781118@qq.com"
] |
372781118@qq.com
|
5e5b5e1e34df680c6a627138bd6777b11943a41e
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/eclipseswt_cluster/14995/src_1.java
|
793c9962d4a6d3b49f5f2557cf717a1cc686b8f2
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,408
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.dnd;
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.internal.gtk.*;
import org.eclipse.swt.widgets.*;
/**
* This class provides default implementations to display a source image
* when a drag is initiated from a <code>Tree</code>.
*
* <p>Classes that wish to provide their own source image for a <code>Tree</code> can
* extend <code>TreeDragSourceEffect</code> class and override the <code>TreeDragSourceEffect.dragStart</code>
* method and set the field <code>DragSourceEvent.image</code> with their own image.</p>
*
* Subclasses that override any methods of this class must call the corresponding
* <code>super</code> method to get the default drag under effect implementation.
*
* @see DragSourceEffect
* @see DragSourceEvent
*
* @since 3.3
*/
public class TreeDragSourceEffect extends DragSourceEffect {
Image dragSourceImage = null;
/**
* Creates a new <code>TreeDragSourceEffect</code> to handle drag effect
* from the specified <code>Tree</code>.
*
* @param tree the <code>Tree</code> that the user clicks on to initiate the drag
*/
public TreeDragSourceEffect(Tree tree) {
super(tree);
}
/**
* This implementation of <code>dragFinished</code> disposes the image
* that was created in <code>TreeDragSourceEffect.dragStart</code>.
*
* Subclasses that override this method should call <code>super.dragFinished(event)</code>
* to dispose the image in the default implementation.
*
* @param event the information associated with the drag finished event
*/
public void dragFinished(DragSourceEvent event) {
if (dragSourceImage != null) dragSourceImage.dispose();
dragSourceImage = null;
}
/**
* This implementation of <code>dragStart</code> will create a default
* image that will be used during the drag. The image should be disposed
* when the drag is completed in the <code>TreeDragSourceEffect.dragFinished</code>
* method.
*
* Subclasses that override this method should call <code>super.dragStart(event)</code>
* to use the image from the default implementation.
*
* @param event the information associated with the drag start event
*/
public void dragStart(DragSourceEvent event) {
event.image = getDragSourceImage(event);
}
Image getDragSourceImage(DragSourceEvent event) {
if (dragSourceImage != null) dragSourceImage.dispose();
dragSourceImage = null;
Tree tree = (Tree) control;
if (OS.GTK_VERSION < OS.VERSION (2, 2, 0)) return null;
/*
* Bug in GTK. gtk_tree_selection_get_selected_rows() segmentation faults
* in versions smaller than 2.2.4 if the model is NULL. The fix is
* to give a valid pointer instead.
*/
int /*long*/ handle = tree.handle;
int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
int /*long*/ [] model = OS.GTK_VERSION < OS.VERSION (2, 2, 4) ? new int /*long*/ [1] : null;
int /*long*/ list = OS.gtk_tree_selection_get_selected_rows (selection, model);
if (list == 0) return null;
int count = Math.min(10, OS.g_list_length (list));
Display display = tree.getDisplay();
if (count == 1) {
int /*long*/ path = OS.g_list_nth_data (list, 0);
int /*long*/ pixmap = OS.gtk_tree_view_create_row_drag_icon(handle, path);
dragSourceImage = Image.gtk_new(display, SWT.ICON, pixmap, 0);
} else {
int width = 0, height = 0;
int[] w = new int[1], h = new int[1];
int[] yy = new int[count], hh = new int[count];
int /*long*/ [] pixmaps = new int /*long*/ [count];
GdkRectangle rect = new GdkRectangle ();
for (int i=0; i<count; i++) {
int /*long*/ path = OS.g_list_nth_data (list, i);
OS.gtk_tree_view_get_cell_area (handle, path, 0, rect);
pixmaps[i] = OS.gtk_tree_view_create_row_drag_icon(handle, path);
OS.gdk_drawable_get_size(pixmaps[i], w, h);
width = Math.max(width, w[0]);
height = rect.y + h[0] - yy[0];
yy[i] = rect.y;
hh[i] = h[0];
}
int /*long*/ source = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, -1);
int /*long*/ gcSource = OS.gdk_gc_new(source);
int /*long*/ mask = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, 1);
int /*long*/ gcMask = OS.gdk_gc_new(mask);
GdkColor color = new GdkColor();
color.pixel = 0;
OS.gdk_gc_set_foreground(gcMask, color);
OS.gdk_draw_rectangle(mask, gcMask, 1, 0, 0, width, height);
color.pixel = 1;
OS.gdk_gc_set_foreground(gcMask, color);
for (int i=0; i<count; i++) {
OS.gdk_draw_drawable(source, gcSource, pixmaps[i], 0, 0, 0, yy[i] - yy[0], -1, -1);
OS.gdk_draw_rectangle(mask, gcMask, 1, 0, yy[i] - yy[0], width, hh[i]);
OS.g_object_unref(pixmaps[i]);
}
OS.g_object_unref(gcSource);
OS.g_object_unref(gcMask);
dragSourceImage = Image.gtk_new(display, SWT.ICON, source, mask);
}
OS.g_list_free (list);
return dragSourceImage;
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
977573b2dd3c4c0bbc70eede5e4ebb76e68a0398
|
5582e15960def1fc8e31f16747f982c7a0ba557d
|
/ekube-plugin/src/main/java-eclipse/de/jcup/ekube/EclipseEKubeConfiguration.java
|
a9c634801a59aedad7357c8cb319394ee93baebc
|
[
"Apache-2.0"
] |
permissive
|
de-jcup/ekube
|
b79ae85cc56638d5a605b1a42c3499754593ce6a
|
195f80ec6606998db92271a11e3d98da3b9f104f
|
refs/heads/master
| 2021-06-15T05:23:16.043566
| 2021-03-22T16:19:01
| 2021-03-22T16:19:01
| 158,644,394
| 4
| 1
|
Apache-2.0
| 2018-11-25T01:33:06
| 2018-11-22T04:59:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,274
|
java
|
/*
* Copyright 2019 Albert Tregnaghi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions
* and limitations under the License.
*
*/
package de.jcup.ekube;
import java.io.File;
import java.util.List;
import de.jcup.ekube.core.AbstractEKubeConfiguration;
import de.jcup.ekube.preferences.EKubePreferences;
public class EclipseEKubeConfiguration extends AbstractEKubeConfiguration {
@Override
public File getKubeConfigFile() {
return EKubePreferences.getInstance().getKubeConfigFile();
}
@Override
public List<String> getFilteredNamespaces() {
return EKubePreferences.getInstance().getFilteredNamespacesAsList();
}
@Override
public boolean isNamespaceFilteringEnabled() {
return EKubePreferences.getInstance().getFilterNamespacesEnabled();
}
}
|
[
"albert.tregnaghi@gmail.com"
] |
albert.tregnaghi@gmail.com
|
e3c2b49ee53901f0b22df2b482b29fc38b6b2059
|
bcd7c93f89adac49a8ddbe699f19e798d3507b63
|
/SYTSB1/src/main/java/com/lsts/equipment2/bean/EquipAttachment.java
|
0b35bbfcc6b9d8979994f462c5197821d51f4f72
|
[] |
no_license
|
gui-gui-maker/MyFrame
|
3b37d7770617fb4438c4f97d79e58421a970000b
|
b03b38a26d591f16dca07cf2b3d24f129c5833ef
|
refs/heads/master
| 2022-12-23T11:53:16.105726
| 2019-10-31T06:23:00
| 2019-10-31T06:23:00
| 218,462,486
| 1
| 0
| null | 2022-12-16T07:18:22
| 2019-10-30T06:56:36
|
Java
|
UTF-8
|
Java
| false
| false
| 5,695
|
java
|
package com.lsts.equipment2.bean;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;
import com.khnt.core.crud.bean.BaseEntity;
@Entity
@Table(name = "TJY2_EQUIPMENT_ATTACHMENT")
@JsonIgnoreProperties(ignoreUnknown=true)
public class EquipAttachment implements BaseEntity{
/**
*
*/
private static final long serialVersionUID = 1L;
private String id;//${columnb.remarks}
private String fkEquipmentId;//设备外键
private String attachmentName;//附件名称
private String attachmentSn;//出厂编号
private String attachmentModel;//规格型号
private String attachmentNum;//数量
private String manufacturers;//制造厂家
private String status;//附件状态
private String configuring;//配置箱号
private String remark;//备注
private java.util.Date createDate;//创建时间
private String createId;//创建人ID
private String createBy;//创建人
private java.util.Date lastModifyDate;//修改时间
private String lastModifyId;//修改人ID
private String lastModifyBy;//修改人
public void setId(String value){
this.id = value;
}
public void setFkEquipmentId(String value){
this.fkEquipmentId = value;
}
public void setAttachmentName(String value){
this.attachmentName = value;
}
public void setAttachmentSn(String value){
this.attachmentSn = value;
}
public void setAttachmentModel(String value){
this.attachmentModel = value;
}
public void setAttachmentNum(String value){
this.attachmentNum = value;
}
public void setManufacturers(String value){
this.manufacturers = value;
}
public void setStatus(String value){
this.status = value;
}
public void setConfiguring(String value){
this.configuring = value;
}
public void setRemark(String value){
this.remark = value;
}
public void setCreateDate(java.util.Date value){
this.createDate = value;
}
public void setCreateId(String value){
this.createId = value;
}
public void setCreateBy(String value){
this.createBy = value;
}
public void setLastModifyDate(java.util.Date value){
this.lastModifyDate = value;
}
public void setLastModifyId(String value){
this.lastModifyId = value;
}
public void setLastModifyBy(String value){
this.lastModifyBy = value;
}
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(name ="ID",unique=true,nullable=false,insertable=true,updatable=true,length=32)
public String getId(){
return this.id;
}
@Column(name ="FK_EQUIPMENT_ID",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getFkEquipmentId(){
return this.fkEquipmentId;
}
@Column(name ="ATTACHMENT_NAME",unique=false,nullable=true,insertable=true,updatable=true,length=100)
public String getAttachmentName(){
return this.attachmentName;
}
@Column(name ="ATTACHMENT_SN",unique=false,nullable=true,insertable=true,updatable=true,length=100)
public String getAttachmentSn(){
return this.attachmentSn;
}
@Column(name ="ATTACHMENT_MODEL",unique=false,nullable=true,insertable=true,updatable=true,length=100)
public String getAttachmentModel(){
return this.attachmentModel;
}
@Column(name ="ATTACHMENT_NUM",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getAttachmentNum(){
return this.attachmentNum;
}
@Column(name ="MANUFACTURERS",unique=false,nullable=true,insertable=true,updatable=true,length=200)
public String getManufacturers(){
return this.manufacturers;
}
@Column(name ="STATUS",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getStatus(){
return this.status;
}
@Column(name ="CONFIGURING",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getConfiguring(){
return this.configuring;
}
@Column(name ="REMARK",unique=false,nullable=true,insertable=true,updatable=true,length=500)
public String getRemark(){
return this.remark;
}
@Column(name ="CREATE_DATE",unique=false,nullable=true,insertable=true,updatable=true,length=7)
public java.util.Date getCreateDate(){
return this.createDate;
}
@Column(name ="CREATE_ID",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getCreateId(){
return this.createId;
}
@Column(name ="CREATE_BY",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getCreateBy(){
return this.createBy;
}
@Column(name ="LAST_MODIFY_DATE",unique=false,nullable=true,insertable=true,updatable=true,length=7)
public java.util.Date getLastModifyDate(){
return this.lastModifyDate;
}
@Column(name ="LAST_MODIFY_ID",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getLastModifyId(){
return this.lastModifyId;
}
@Column(name ="LAST_MODIFY_BY",unique=false,nullable=true,insertable=true,updatable=true,length=32)
public String getLastModifyBy(){
return this.lastModifyBy;
}
}
|
[
"guidoz@163.com"
] |
guidoz@163.com
|
6f3f69abed26ac8bf5dffe399bc9dbc4e599e0c5
|
a17ac5d3c17dc2584b045a924dc3db7a81f29dff
|
/bank-application/src/main/java/com/techlabs/action/LoginAction.java
|
245477e6c7afb2d0fbb3c2bbbd1b0c8837e07948
|
[] |
no_license
|
kannans89/sample-bank-app
|
7e6693cf0716c8fed328e44e1f2f4aeec5ea41fa
|
4a681afbc4d2c282abede386954742a3b65c1af0
|
refs/heads/master
| 2021-01-06T20:41:10.203703
| 2018-03-08T12:33:18
| 2018-03-08T12:33:18
| 123,665,479
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,033
|
java
|
package com.techlabs.action;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.techlabs.service.LoginService;
import com.techlabs.viewmodel.LoginViewModel;
@SuppressWarnings("serial")
public class LoginAction extends ActionSupport implements SessionAware,
ModelDriven<LoginViewModel>
{
@Autowired
private LoginService loginService;
private Map<String, Object> session;
private LoginViewModel loginVM;
public LoginAction() {
System.out.println("Login action constructor");
}
@Override
public LoginViewModel getModel() {
loginVM=new LoginViewModel();
return loginVM;
}
@Override
public void setSession(Map<String, Object> session) {
this.session=session;
}
@Override
public String execute() throws Exception {
System.out.println("Login Action Execute ");
if(!loginVM.isPostBack()) {
if(session.get("register")!=null)
addActionMessage("You are registered successfully...!!! "
+ "Your Login Crediantils sent on your registered email...Please check..!!!");
if(session.get("forgotPassword")!=null)
addActionMessage("Password recovered Successfully...Your Login Crediantils are sent on your email...Please check..!!!");
return Action.NONE;
}
else {
if(loginService.isUserActive(loginVM.getUserId()))
{
if(loginService.validateUser(loginVM.getUserId(), loginVM.getPassword())) {
session.put("account", loginService.getAccount());
ServletActionContext.getRequest().getSession().setAttribute("userName", loginService.getAccount().getFirstName());
if(loginService.isAdmin(loginService.getAccount()))
return "ADMIN";
else return SUCCESS;
}
else {
if(loginService.checkLoginAttempts(loginVM.getUserId())) {
loginService.updateLoginAttempts(loginVM.getUserId());
}
else {
loginService.deactivateUser(loginVM.getUserId());
addActionError("You crossed 4 attempt...Your account has been locked..."
+ "Please co-ordinate with your bank manager..!!!");
}
addActionError("Username and password are incorrect");
return Action.ERROR;
}
}
else {
addActionError("Either Your Account has been blocked or user Id does not exits...!!!"
+ " Please contact to your Branch...!!!");
return Action.ERROR;
}
}
}
public String logout() {
session.clear();
addActionMessage("You are logged out successfully...!!! ");
return Action.SUCCESS;
}
@Override
public void validate() {
if(loginVM.isPostBack()) {
System.out.println("validate here");
if(loginVM.getUserId().equals(""))
addFieldError("userId","User Id should not Blank");
if(loginVM.getPassword().equals(""))
addFieldError("password","Password should not Blank");
}
}
}
|
[
"kannan@swabhavtechlabs.com"
] |
kannan@swabhavtechlabs.com
|
21db8639d759613e346680f6ac6d5545b6732754
|
2daea090c54d11688b7e2f40fbeeda22fe3d01f6
|
/header/src/main/java/org/zstack/header/network/l2/APIDetachL2NetworkFromClusterEvent.java
|
ff4e5d8872e3cc2202664eff755bd058f8013ed2
|
[
"Apache-2.0"
] |
permissive
|
jxg01713/zstack
|
1f0e474daa6ca4647d0481c7e44d86a860ac209c
|
182fb094e9a6ef89cf010583d457a9bf4f033f33
|
refs/heads/1.0.x
| 2021-06-20T12:36:16.609798
| 2016-03-17T08:03:29
| 2016-03-17T08:03:29
| 197,339,567
| 0
| 0
|
Apache-2.0
| 2021-03-19T20:23:19
| 2019-07-17T07:36:39
|
Java
|
UTF-8
|
Java
| false
| false
| 1,222
|
java
|
package org.zstack.header.network.l2;
import org.zstack.header.message.APIEvent;
/**
*@apiResult
* api event for message :ref:`APIDetachL2NetworkFromClusterMsg`
*
*@category l2network
*
*@since 0.1.0
*
*@example
* {
"org.zstack.header.network.l2.APIDetachL2NetworkFromClusterEvent": {
"inventory": {
"uuid": "409bbe05c1714d0a88ed9f4fff5bfe7e",
"name": "TestL2Network",
"description": "Test",
"zoneUuid": "b48555d7cf064dcc9267411c8e275a4b",
"physicalInterface": "eth0",
"type": "L2NoVlanNetwork",
"createDate": "May 4, 2014 12:08:12 AM",
"lastOpDate": "May 4, 2014 12:08:12 AM",
"attachedClusterUuids": []
},
"success": true
}
}
*/
public class APIDetachL2NetworkFromClusterEvent extends APIEvent {
/**
* @desc see :ref:`L2NetworkInventory`
*/
private L2NetworkInventory inventory;
public L2NetworkInventory getInventory() {
return inventory;
}
public void setInventory(L2NetworkInventory inventory) {
this.inventory = inventory;
}
public APIDetachL2NetworkFromClusterEvent(String apiId) {
super(apiId);
}
public APIDetachL2NetworkFromClusterEvent() {
super(null);
}
}
|
[
"xing5820@gmail.com"
] |
xing5820@gmail.com
|
68e54c0b234d795b363285a3cf11836ffbfba948
|
780a4daeeac8b19ff45c8a516b97c96db76f5ff7
|
/src/main/java/org/vuclip/fdownloader/http/HttpResumableDownloader.java
|
831e07ed0211cbf4e81ecfae17de94a1da30393c
|
[] |
no_license
|
gholvesandeep/fdownloader
|
e8710d6db4f572425c865ae36100ea92a2c0e790
|
bb128db9a19817eadfb2d332b49ffcda759e106b
|
refs/heads/master
| 2020-03-22T16:52:39.072240
| 2018-07-25T19:36:10
| 2018-07-25T19:36:10
| 140,357,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,186
|
java
|
package org.vuclip.fdownloader.http;
import org.vuclip.fdownloader.DownloadJob;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpResumableDownloader extends AbstractHttpDownloader {
private final static String RANGE = "Range";
@Override
protected void downloadFromUrl(DownloadJob entry, String url) throws Exception {
HttpURLConnection connection = null;
FileOutputStream outputStream = null;
try {
connection = (HttpURLConnection) new URL(url).openConnection();
long totalBytesRead = entry.getFile().length();
connection.setRequestProperty(RANGE, getRangeHeader(totalBytesRead));
int responseCode = connection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK || responseCode == HttpURLConnection.HTTP_PARTIAL) {
long totalSize = totalBytesRead + connection.getContentLengthLong();
InputStream inputStream = connection.getInputStream();
outputStream = new FileOutputStream(entry.getFile(), true);
byte[] buffer = new byte[BUFFER_SIZE];
int bytesRead = 0;
while ((bytesRead = inputStream.read(buffer)) > -1 && !Thread.currentThread().isInterrupted()) {
outputStream.write(buffer, 0, bytesRead);
outputStream.flush();
totalBytesRead += bytesRead;
this.notifyProgress(entry, totalBytesRead, totalSize);
}
} else {
throw new Exception(responseCode + connection.getHeaderField("Location"));
}
} finally {
if (connection != null) {
connection.disconnect();
}
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
// TODO: ?
}
}
}
}
private String getRangeHeader(long offset) {
return "bytes=" + offset + "-";
}
}
|
[
"you@example.com"
] |
you@example.com
|
fc1a797047502d3dd55dad7a8988ddbb6ea80f74
|
96d8dcbbd1fbb95c63f4b49fd8c66e4b468aa0fa
|
/src/minecraft/net/minecraft/src/Packet38EntityStatus.java
|
f0bf3142de443f0b09e9d3d0ac2891abb5e7d089
|
[] |
no_license
|
moderatorman/Client
|
381132c36a4ee8d955441a56f939f4fc1e56c8d8
|
354d4a2d3801f8fd45818d823dab9e327b361338
|
refs/heads/master
| 2022-04-03T21:14:24.768200
| 2020-02-04T03:17:13
| 2020-02-04T03:17:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,066
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
// Source File Name: SourceFile
package net.minecraft.src;
import java.io.*;
// Referenced classes of package net.minecraft.src:
// Packet, NetHandler
public class Packet38EntityStatus extends Packet
{
public Packet38EntityStatus()
{
}
public void readPacketData(DataInputStream datainputstream)
throws IOException
{
entityId = datainputstream.readInt();
entityStatus = datainputstream.readByte();
}
public void writePacketData(DataOutputStream dataoutputstream)
throws IOException
{
dataoutputstream.writeInt(entityId);
dataoutputstream.writeByte(entityStatus);
}
public void processPacket(NetHandler nethandler)
{
nethandler.handleEntityStatus(this);
}
public int getPacketSize()
{
return 5;
}
public int entityId;
public byte entityStatus;
}
|
[
"coderatorman@gmail.com"
] |
coderatorman@gmail.com
|
9165019b85d5b6897926ec72d203680f58589423
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.horizon-Horizon/sources/X/AnonymousClass1k7.java
|
4033123c11347bcd2f5c5dab2b626ba97fb9f4ab
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 265
|
java
|
package X;
import com.facebook.infer.annotation.Nullsafe;
@Nullsafe(Nullsafe.Mode.STRICT)
/* renamed from: X.1k7 reason: invalid class name */
public final class AnonymousClass1k7 {
public static final int A00 = Runtime.getRuntime().availableProcessors();
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
20d86787ca4b082ecac68a16a740853cc12adba9
|
38da28e4e7ad9e4cbbe29802db344a82e0a83e68
|
/PMDM/Evaluacion2/ListaPersonalizada4/app/src/main/java/com/example/listapersonalizada4/MainActivity.java
|
5eaabcf01deb07e48f37063230cdc8fe75e52859
|
[] |
no_license
|
LDHugeman/DAM_2
|
dce491da5d45a3852b7047a4c34caea75dcc7235
|
b6b0ef528cd33f6aa78afbe974668cd9949b63c9
|
refs/heads/master
| 2022-07-08T22:51:38.283590
| 2020-03-16T20:52:26
| 2020-03-16T20:52:26
| 209,628,083
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,651
|
java
|
package com.example.listapersonalizada4;
import androidx.appcompat.app.AppCompatActivity;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
private String[] arrayAnimales;
private String[] arrayDescripcion;
private TypedArray arrayIdFotos;
private TypedArray arrayIdColores;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
inicializacionDatosAnimales();
ListView listaAnimales = findViewById(R.id.lv);
AdaptadorPersonalizado adapter = new AdaptadorPersonalizado(this,arrayAnimales,arrayDescripcion,arrayIdFotos, arrayIdColores);
listaAnimales.setAdapter(adapter);
listaAnimales.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Toast.makeText(MainActivity.this, "Elección: "+parent.getItemAtPosition(position), Toast.LENGTH_SHORT).show();
}
});
}
private void inicializacionDatosAnimales(){
arrayAnimales = getResources().getStringArray(R.array.animales);
arrayDescripcion = getResources().getStringArray(R.array.descripcion);
arrayIdFotos = getResources().obtainTypedArray(R.array.fotosanimales);
arrayIdColores = getResources().obtainTypedArray(R.array.colores);
}
}
|
[
"luisdavid.vp@gmail.com"
] |
luisdavid.vp@gmail.com
|
c94e7ec24f4ea04b074af9a5c01b1fed9977d8ba
|
2db2a88ea30f33bbb0cec02b97920a6e0bbf3119
|
/src/proxy/example/RemoteConcreteSubject.java
|
37b39f649ff4889807d093aa57bc12fc2181b8f9
|
[] |
no_license
|
gsdcr/DesignPatterns
|
ea42899d922d45d2fe1e56ddc5c0f20ccb2a81fa
|
91ce7b736f6b0faa81c90602eba66a8b0335962b
|
refs/heads/master
| 2023-05-12T11:08:47.473183
| 2021-06-06T15:53:31
| 2021-06-06T15:53:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 523
|
java
|
package proxy.example;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
/**
* @author: guangxush
* @create: 2020/01/09
*/
public class RemoteConcreteSubject extends UnicastRemoteObject implements RemoteSubject {
double width, height;
RemoteConcreteSubject(double width, double height) throws RemoteException {
this.width = width;
this.height = height;
}
@Override
public double getArea() throws RemoteException {
return width * height;
}
}
|
[
"guangxush@163.com"
] |
guangxush@163.com
|
93fb4968379483dab75c00bbd7ec6cbb318150d2
|
14f8e80f05020ae0416122248faf0262a2505b4b
|
/Java/Semester 1 usorteret/Lektion28_Abstrakte_klasser/src/eksempelAnsat/KommissionAnsat.java
|
c9ffad57a2aaf99dfab701707e125a8736639f59
|
[] |
no_license
|
saphyron/randomstuff
|
6befba6ffba0818b8f57683f028b425239cb92a9
|
e21ba06758818ab11c28a19a608b3804bd589e3f
|
refs/heads/main
| 2023-05-19T15:59:31.006362
| 2021-06-09T07:57:13
| 2021-06-09T07:57:13
| 360,878,053
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package eksempelAnsat;
public class KommissionAnsat extends Ansat{
private double salg;
private double kommissionsProcent;
public KommissionAnsat(String fornavn, String efternavn, String cpr, double salg, double kommissionsProcent) {
super(fornavn, efternavn, cpr);
this.salg = salg;
this.kommissionsProcent = kommissionsProcent;
}
public double getSalg() {
return salg;
}
public void setSalg(double salg) {
this.salg = salg;
}
public double getKommissionsProcent() {
return kommissionsProcent;
}
public void setKommissionsProcent(double kommissionsProcent) {
this.kommissionsProcent = kommissionsProcent;
}
@Override
public double udregnLoen() {
return kommissionsProcent*salg;
}
@Override
public String toString() {
return super.toString() + "\nSalg: " + salg + "\nProcent: " + kommissionsProcent;
}
}
|
[
"30288325+saphyron@users.noreply.github.com"
] |
30288325+saphyron@users.noreply.github.com
|
b3d0a56692179566d3dd4ae0720dbd8c486fb2f4
|
ee18fa36c7276d1401ff9c6d3807db4a43c0f7af
|
/sparkzxl-uaa-server/src/main/java/com/github/sparkzxl/oauth/interfaces/dto/resource/AuthResourceUpdateDTO.java
|
994557e727e0e77fa4b1d7e87ea0aaa8c4dad564
|
[
"MIT"
] |
permissive
|
lyc88/sparkzxl-cloud
|
1ebb3603ccee70bc761bf5a0a7d1cfd6eb3c78e0
|
46cb4bfa3d3ad9f8dc55d14817b2238ee76b3941
|
refs/heads/master
| 2022-12-26T02:11:22.551045
| 2020-10-16T01:11:35
| 2020-10-16T01:11:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 906
|
java
|
package com.github.sparkzxl.oauth.interfaces.dto.resource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* description: 资源更新对象
*
* @author zhouxinlei
* @date 2020-06-07 13:24:26
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "资源更新对象", description = "资源更新对象")
public class AuthResourceUpdateDTO {
@ApiModelProperty(value = "id")
private Long id;
@ApiModelProperty(value = "编码规则: 链接: 数据列: 按钮:")
private String code;
@ApiModelProperty(value = "名称")
private String name;
@ApiModelProperty(value = "菜单ID")
private Long menuId;
@ApiModelProperty(value = "描述")
private String describe;
@ApiModelProperty(value = "请求路径")
private String requestUrl;
}
|
[
"zhouxinlei298@163.com"
] |
zhouxinlei298@163.com
|
0d418488e519201a9c6b2c5ae845982ab9740570
|
1d3e99bf342461a0d29c6edc3cbb795bab3c9884
|
/library/branches/library_kg2json/src/org/webpki/asn1/CompositeContextSpecific.java
|
a82deebd34f3441936f1dc7b16eed90ec3b2598f
|
[] |
no_license
|
GitCryptoDevOps/openkeystore
|
2888961b12f93a14663ed5dfa7020c878b344019
|
55f962fff3b9f207d7c341a4cc79dc34225b319d
|
refs/heads/master
| 2022-07-13T15:18:19.476242
| 2015-03-22T13:57:56
| 2015-03-22T13:57:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,913
|
java
|
/*
* Copyright 2006-2013 WebPKI.org (http://webpki.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.webpki.asn1;
import java.io.IOException;
import java.util.Vector;
/**
* This needs to be checked.
*/
public final class CompositeContextSpecific extends Composite
{
public CompositeContextSpecific(int tagNumber, Vector<BaseASN1Object> components)
{
super(CONTEXT, tagNumber, components);
}
public CompositeContextSpecific(int tagNumber, BaseASN1Object[] components)
{
super(CONTEXT, tagNumber, components);
}
public CompositeContextSpecific(int tagNumber, BaseASN1Object value)
{
super(CONTEXT, tagNumber);
components.addElement(value);
}
CompositeContextSpecific(DerDecoder decoder) throws IOException
{
super(decoder);
if(!isContext())
{
throw new IOException("Internal error: Wrong tag class");
}
if(components == null)
{
throw new IOException("Empty CONTEXT_SPECIFIC.");
}
}
public boolean sameType(BaseASN1Object o)
{
return o.getClass().equals(CompositeContextSpecific.class) &&
o.tagNumber == tagNumber;
}
/**
* DIRTY fix to be used ONLY when verifying authenticated attributes of PKCS#7/CMS messages.
*/
public void writeOriginalBlobAs(int tagNumber, java.security.Signature signature)
throws java.security.GeneralSecurityException, IOException
{
if(tagNumber > 30)
{
throw new IOException("tagNumber > 30 not supported");
}
signature.update((byte)(UNIVERSAL | DerDecoder.CONSTRUCTED | tagNumber));
signature.update(blob, blobOffset+1, encodedLength-1);
}
public boolean deepCompare(BaseASN1Object o)
{
if(!sameType(o) ||
o.tagNumber != tagNumber || o.tagEncoding != tagEncoding)
{
return false;
}
CompositeContextSpecific cs = (CompositeContextSpecific)o;
return ASN1Util.deepCompare(cs.components, components);
}
void toString(StringBuffer s, String prefix)
{
s.append (getByteNumber ()).append(prefix).append("[").append(tagNumber).append("]");
compositeString (s, prefix);
}
}
|
[
"andersphone@40de300a-4973-11de-8001-7f2440edb24e"
] |
andersphone@40de300a-4973-11de-8001-7f2440edb24e
|
e8b696f2c2409252beab851a2a764e4844354b67
|
a1b9e1d2573da83022ccca5741af604ffb4cd962
|
/next_film/src/main/java/com/next/jiangzh/film/config/properties/RestProperties.java
|
83dfcb8ae213ef3db64194b640a9cb558099ed10
|
[] |
no_license
|
filmXiangxue/xiangxue_nextfilm
|
1ca16bc1a70e3eeb10a1b598ef36a04eca555bbf
|
6b4d5f2a8091630f9267c81d844d65859e2d3fdf
|
refs/heads/master
| 2022-07-03T14:48:46.240211
| 2019-07-01T23:58:49
| 2019-07-01T23:58:49
| 207,272,702
| 0
| 2
| null | 2022-05-20T21:08:22
| 2019-09-09T09:26:36
|
Java
|
UTF-8
|
Java
| false
| false
| 407
|
java
|
package com.next.jiangzh.film.config.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Data
@Configuration
@ConfigurationProperties(prefix = RestProperties.REST_PREFIX)
public class RestProperties {
public static final String REST_PREFIX="rest";
private boolean authOpen;
}
|
[
"jiangzh@sina.com"
] |
jiangzh@sina.com
|
2696d229efeddc7759a4c2e1c808772b304586ee
|
e1c6ef7778727932ea9ab7979ca1e0993b655327
|
/plugins/caex30/caex.caex30/src-gen/caex/caex30/caex/util/CaexPreprocessor.java
|
748b2e1369c61d775795ac05b38d70771b964a62
|
[] |
no_license
|
kit-sdq/AutomationML-CAEX-Metamodel
|
b8c262b14a39623b2560df99569310de3a9b86f2
|
c2a10acb1f0fc594be1de3ad62b7d1569d16c9b6
|
refs/heads/master
| 2021-04-15T13:31:21.809712
| 2019-11-27T08:40:08
| 2019-11-27T08:40:08
| 126,177,811
| 1
| 1
| null | 2019-02-03T21:08:55
| 2018-03-21T12:49:54
|
Java
|
UTF-8
|
Java
| false
| false
| 1,927
|
java
|
/*******************************************************************************
* Copyright (c) 2015 Business Informatics Group at TU Wien
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Manuel Wimmer and Emanuel Maetzler
*******************************************************************************/
package caex.caex30.caex.util;
import java.io.File;
import java.io.FileInputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class CaexPreprocessor {
public static void removeAdditionalInformation(String filename) throws Exception {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
DocumentBuilder db = dbf.newDocumentBuilder();
//parse file
Document doc = db.parse(new FileInputStream(new File(filename)));
//remove all 'AdditionalInformation' elements
Element element = (Element)doc.getElementsByTagName("AdditionalInformation").item(0);
while(element!=null){
element.getParentNode().removeChild(element);
element = (Element)doc.getElementsByTagName("AdditionalInformation").item(0);
}
//save dom back to file
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
DOMSource source = new DOMSource(doc);
StreamResult streamResult = new StreamResult(new File(filename));
transformer.transform(source, streamResult);
}
}
|
[
"wimmer@big.tuwien.ac.at"
] |
wimmer@big.tuwien.ac.at
|
dbf4514171baf322040063f5843ede5760a7da49
|
ed166738e5dec46078b90f7cca13a3c19a1fd04b
|
/minor/guice-OOM-error-reproduction/src/main/java/gen/A_Gen84.java
|
b1dd5da2a4ea839438d3b09eac240c0ad4544dec
|
[] |
no_license
|
michalradziwon/script
|
39efc1db45237b95288fe580357e81d6f9f84107
|
1fd5f191621d9da3daccb147d247d1323fb92429
|
refs/heads/master
| 2021-01-21T21:47:16.432732
| 2016-03-23T02:41:50
| 2016-03-23T02:41:50
| 22,663,317
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 326
|
java
|
package gen;
public class A_Gen84 {
@com.google.inject.Inject
public A_Gen84(A_Gen85 a_gen85){
System.out.println(this.getClass().getCanonicalName() + " created. " + a_gen85 );
}
@com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :)
}
|
[
"michal.radzi.won@gmail.com"
] |
michal.radzi.won@gmail.com
|
7357f39850ec80a540bccaf1df71a12752d1659a
|
de7b67d4f8aa124f09fc133be5295a0c18d80171
|
/workspace_java-src/java-src-test/src/sun/io/ByteToCharJohab.java
|
fa4ba5889afe26839f3de1be4f992be2890c14d5
|
[] |
no_license
|
lin-lee/eclipse_workspace_test
|
adce936e4ae8df97f7f28965a6728540d63224c7
|
37507f78bc942afb11490c49942cdfc6ef3dfef8
|
refs/heads/master
| 2021-05-09T10:02:55.854906
| 2018-01-31T07:19:02
| 2018-01-31T07:19:02
| 119,460,523
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 708
|
java
|
/*
* %W% %E%
*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package sun.io;
import sun.nio.cs.ext.Johab;
/**
* Tables and data to convert Johab to Unicode
*
* @author ConverterGenerator tool
* @version >= JDK1.1.6
*/
public class ByteToCharJohab extends ByteToCharDoubleByte {
private final static Johab nioCoder = new Johab();
public String getCharacterEncoding() {
return "Johab";
}
public ByteToCharJohab() {
super.index1 = nioCoder.getDecoderIndex1();
super.index2 = nioCoder.getDecoderIndex2();
start = 0x20;
end = 0xFE;
}
}
|
[
"lilin@lvmama.com"
] |
lilin@lvmama.com
|
a63ee6ad3cd64d63194ef68338d39a0255cbda24
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14227-3-17-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/plugin/activitystream/internal/RecordableEventMigrator_ESTest_scaffolding.java
|
e7d2c2a4511841926b84827f70538537b235d617
|
[] |
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
| 472
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Jan 21 19:15:22 UTC 2020
*/
package com.xpn.xwiki.plugin.activitystream.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class RecordableEventMigrator_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
dbffc7d59c0cda66176c5658ae53b9137893c610
|
ef5189095c25be9d7eb2b9de04b8154fdc06f393
|
/src/com/lisz/state/homework/Car.java
|
4ce7b0a3e835e194e3f112d9d24ebf67d64f3062
|
[] |
no_license
|
lisz1012/Design_Patterns
|
3e372d487d018962c0034438e68a5ff7e803c862
|
9ba842edc6eafaa5816c47bfe1124c84fb534482
|
refs/heads/master
| 2020-05-27T12:35:19.127165
| 2019-07-04T23:55:34
| 2019-07-04T23:55:34
| 188,620,555
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 282
|
java
|
package com.lisz.state.homework;
public class Car {
public void open(CarState state) {
state.open();
}
public void close(CarState state) {
state.close();
}
public void run(CarState state) {
state.run();
}
public void stop(CarState state) {
state.stop();
}
}
|
[
"lisz1012@163.com"
] |
lisz1012@163.com
|
3a51bd520580a0bf88a6cf88a4f3cc38ebf2e889
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-3b-7-12-FEMO-WeightedSum:TestLen:CallDiversity/org/mockito/internal/handler/MockHandlerImpl_ESTest.java
|
829a2ed6900dd3644fcde4dd519e9937ed352185
|
[] |
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
| 565
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Apr 03 13:52:23 UTC 2020
*/
package org.mockito.internal.handler;
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 MockHandlerImpl_ESTest extends MockHandlerImpl_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
084b6624f4e77177dcb4644125318e95413df271
|
6d2d4af76f82e154b3aa06531adc248e3201c09b
|
/src/main/java/com/robertx22/mine_and_slash/data_generation/rarities/BaseRarityDatapackManager.java
|
5cc80463cd2df9170f4d24361ee33606e7045072
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
AzureDoom/Mine-and-Slash
|
4bd16494be00bde5a038bcc01dd66fb45209fe7f
|
a772326882824039eee814dcff4af321923a5736
|
refs/heads/AzureBranch
| 2021-07-10T03:32:16.672923
| 2020-08-16T03:59:14
| 2020-08-16T03:59:14
| 188,708,742
| 1
| 3
|
NOASSERTION
| 2020-02-24T09:12:49
| 2019-05-26T16:48:17
|
Java
|
UTF-8
|
Java
| false
| false
| 2,339
|
java
|
package com.robertx22.mine_and_slash.data_generation.rarities;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.robertx22.mine_and_slash.database.rarities.BaseRaritiesContainer;
import com.robertx22.mine_and_slash.onevent.data_gen.providers.RarityProvider;
import com.robertx22.mine_and_slash.saveclasses.gearitem.gear_bases.Rarity;
import net.minecraft.client.resources.JsonReloadListener;
import net.minecraft.data.DataGenerator;
import net.minecraft.profiler.IProfiler;
import net.minecraft.resources.IResourceManager;
import net.minecraft.util.ResourceLocation;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
public abstract class BaseRarityDatapackManager<T extends Rarity> extends JsonReloadListener {
private static final Logger LOGGER = LogManager.getLogger();
private static final Gson GSON = new GsonBuilder().create();
String id;
Function<JsonObject, T> serializer;
BaseRaritiesContainer container;
public BaseRarityDatapackManager(BaseRaritiesContainer container, String id, Function<JsonObject, T> serializer) {
super(GSON, id);
this.id = id;
this.serializer = serializer;
this.container = container;
}
public abstract RarityProvider getProvider(DataGenerator gen);
@Override
protected void apply(Map<ResourceLocation, JsonObject> mapToLoad, IResourceManager manager, IProfiler profilerIn) {
System.out.println("Starting to register rarity datapacks on the server from datapacks");
List<T> list = new ArrayList<>();
mapToLoad.forEach((loc, json) -> {
try {
T object = serializer.apply(json);
list.add(object);
} catch (Exception exception) {
LOGGER.error("Couldn't parse " + id + " {}", loc, exception);
}
});
container.updateFromDatapack(list);
if (container.getAllRarities()
.isEmpty()) {
throw new RuntimeException("Mine and Slash rarities are EMPTY after datapack loading!");
} else {
System.out.println("Rarity loading succeeded.");
}
}
}
|
[
"treborx555@gmail.com"
] |
treborx555@gmail.com
|
3e3c185501bc4b7a51b5d7be1c4543b7ca19d655
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module0223_public/tests/unittests/src/java/module0223_public_tests_unittests/a/IFoo1.java
|
ef82a19b0581363a0076daa5b32442f3070a1405
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 842
|
java
|
package module0223_public_tests_unittests.a;
import java.util.zip.*;
import javax.annotation.processing.*;
import javax.lang.model.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see java.awt.datatransfer.DataFlavor
* @see java.beans.beancontext.BeanContext
* @see java.io.File
*/
@SuppressWarnings("all")
public interface IFoo1<F> extends module0223_public_tests_unittests.a.IFoo0<F> {
java.rmi.Remote f0 = null;
java.nio.file.FileStore f1 = null;
java.sql.Array f2 = null;
String getName();
void setName(String s);
F get();
void set(F e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
4b83d1a8c7319a54705f0f6ca95f93f84946bfb1
|
d68877a15c246749ba7942b14002d96729d91cb0
|
/src/main/java/org/scijava/plugins/platforms/osx/OSXAppEventDispatcher.java
|
2befbb522deebf8f3fc625c13edb8ba261ab96be
|
[
"BSD-2-Clause"
] |
permissive
|
panovr/scijava-plugins-platforms
|
7409f5977614826999753627701a832bb8c96aa5
|
30df47bdef435012f6b936deac543ba1ba016dd7
|
refs/heads/master
| 2021-01-13T14:39:54.676058
| 2016-12-20T21:31:00
| 2016-12-20T21:31:00
| 76,684,167
| 0
| 0
| null | 2016-12-16T20:40:02
| 2016-12-16T20:40:02
| null |
UTF-8
|
Java
| false
| false
| 6,618
|
java
|
/*
* #%L
* Core platform plugins for SciJava applications.
* %%
* Copyright (C) 2010 - 2015 Board of Regents of the University of
* Wisconsin-Madison.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 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 HOLDERS 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.
* #L%
*/
package org.scijava.plugins.platforms.osx;
import com.apple.eawt.AboutHandler;
import com.apple.eawt.AppEvent.AboutEvent;
import com.apple.eawt.AppEvent.AppForegroundEvent;
import com.apple.eawt.AppEvent.AppHiddenEvent;
import com.apple.eawt.AppEvent.AppReOpenedEvent;
import com.apple.eawt.AppEvent.OpenFilesEvent;
import com.apple.eawt.AppEvent.PreferencesEvent;
import com.apple.eawt.AppEvent.PrintFilesEvent;
import com.apple.eawt.AppEvent.QuitEvent;
import com.apple.eawt.AppEvent.ScreenSleepEvent;
import com.apple.eawt.AppEvent.SystemSleepEvent;
import com.apple.eawt.AppEvent.UserSessionEvent;
import com.apple.eawt.AppForegroundListener;
import com.apple.eawt.AppHiddenListener;
import com.apple.eawt.AppReOpenedListener;
import com.apple.eawt.Application;
import com.apple.eawt.OpenFilesHandler;
import com.apple.eawt.PreferencesHandler;
import com.apple.eawt.PrintFilesHandler;
import com.apple.eawt.QuitHandler;
import com.apple.eawt.QuitResponse;
import com.apple.eawt.ScreenSleepListener;
import com.apple.eawt.SystemSleepListener;
import com.apple.eawt.UserSessionListener;
import org.scijava.event.EventService;
import org.scijava.platform.event.AppAboutEvent;
import org.scijava.platform.event.AppFocusEvent;
import org.scijava.platform.event.AppOpenFilesEvent;
import org.scijava.platform.event.AppPreferencesEvent;
import org.scijava.platform.event.AppPrintEvent;
import org.scijava.platform.event.AppQuitEvent;
import org.scijava.platform.event.AppReOpenEvent;
import org.scijava.platform.event.AppScreenSleepEvent;
import org.scijava.platform.event.AppSystemSleepEvent;
import org.scijava.platform.event.AppUserSessionEvent;
import org.scijava.platform.event.AppVisibleEvent;
/**
* Rebroadcasts OS X application events as ImageJ events.
*
* @author Curtis Rueden
*/
public class OSXAppEventDispatcher implements AboutHandler,
AppForegroundListener, AppHiddenListener, AppReOpenedListener,
PreferencesHandler, PrintFilesHandler, QuitHandler, ScreenSleepListener,
SystemSleepListener, UserSessionListener, OpenFilesHandler
{
private final EventService eventService;
public OSXAppEventDispatcher(final EventService eventService) {
this(Application.getApplication(), eventService);
}
public OSXAppEventDispatcher(final Application app,
final EventService eventService)
{
this.eventService = eventService;
app.setAboutHandler(this);
app.setPreferencesHandler(this);
app.setPrintFileHandler(this);
app.setQuitHandler(this);
app.addAppEventListener(this);
app.setOpenFileHandler(this);
}
// -- AboutHandler methods --
@Override
public void handleAbout(final AboutEvent e) {
eventService.publish(new AppAboutEvent());
}
// -- PreferencesHandler methods --
@Override
public void handlePreferences(final PreferencesEvent e) {
eventService.publish(new AppPreferencesEvent());
}
// -- PrintFilesHandler --
@Override
public void printFiles(final PrintFilesEvent e) {
eventService.publish(new AppPrintEvent());
}
// -- QuitHandler methods --
@Override
public void handleQuitRequestWith(final QuitEvent e, final QuitResponse r) {
eventService.publish(new AppQuitEvent());
r.cancelQuit();
}
// -- UserSessionListener methods --
@Override
public void userSessionActivated(final UserSessionEvent e) {
eventService.publish(new AppUserSessionEvent(true));
}
@Override
public void userSessionDeactivated(final UserSessionEvent e) {
eventService.publish(new AppUserSessionEvent(false));
}
// -- SystemSleepListener methods --
@Override
public void systemAboutToSleep(final SystemSleepEvent e) {
eventService.publish(new AppSystemSleepEvent(true));
}
//@Override
public void systemAwoke(final SystemSleepEvent e) {
eventService.publish(new AppSystemSleepEvent(false));
}
public void systemAweoke(final SystemSleepEvent e) {
// HACK: To make com.yuvimasory:orange-extensions:1.3 happy.
// See: https://github.com/ymasory/OrangeExtensions/pull/10
}
// -- ScreenSleepListener methods --
@Override
public void screenAboutToSleep(final ScreenSleepEvent e) {
eventService.publish(new AppScreenSleepEvent(true));
}
@Override
public void screenAwoke(final ScreenSleepEvent e) {
eventService.publish(new AppScreenSleepEvent(false));
}
// -- AppHiddenListener methods --
@Override
public void appHidden(final AppHiddenEvent e) {
eventService.publish(new AppVisibleEvent(false));
}
@Override
public void appUnhidden(final AppHiddenEvent e) {
eventService.publish(new AppVisibleEvent(true));
}
// -- AppForegroundListener methods --
@Override
public void appMovedToBackground(final AppForegroundEvent e) {
eventService.publish(new AppFocusEvent(false));
}
@Override
public void appRaisedToForeground(final AppForegroundEvent e) {
eventService.publish(new AppFocusEvent(true));
}
// -- AppReOpenedListener methods --
@Override
public void appReOpened(final AppReOpenedEvent e) {
eventService.publish(new AppReOpenEvent());
}
// -- OpenFilesHandler methods --
@Override
public void openFiles(final OpenFilesEvent event) {
eventService.publish(new AppOpenFilesEvent(event.getFiles()));
}
}
|
[
"ctrueden@wisc.edu"
] |
ctrueden@wisc.edu
|
9a2347d911752b74e7ff731034f1826cfdfac4cb
|
99afa94f0d0eb3ad3c4868e53e503ae81e85e244
|
/src/main/java/cn/lovingliu/mmall/mbg/mapper/PmsProductCategoryMapper.java
|
f30ba19d476ffc920783efd4e21894c5750c7555
|
[] |
no_license
|
LovingLiuMeMe/mall
|
eb68953c90cc623f443280d6e7d2cbc81c7da061
|
2d4b012fa5605afa591e74fe2f4d6072d265fba6
|
refs/heads/master
| 2022-07-12T13:29:52.496486
| 2019-10-29T04:44:47
| 2019-10-29T04:44:47
| 214,110,050
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,327
|
java
|
package cn.lovingliu.mmall.mbg.mapper;
import cn.lovingliu.mmall.mbg.model.PmsProductCategory;
import cn.lovingliu.mmall.mbg.model.PmsProductCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductCategoryMapper {
long countByExample(PmsProductCategoryExample example);
int deleteByExample(PmsProductCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductCategory record);
int insertSelective(PmsProductCategory record);
List<PmsProductCategory> selectByExampleWithBLOBs(PmsProductCategoryExample example);
List<PmsProductCategory> selectByExample(PmsProductCategoryExample example);
PmsProductCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example);
int updateByExampleWithBLOBs(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example);
int updateByExample(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example);
int updateByPrimaryKeySelective(PmsProductCategory record);
int updateByPrimaryKeyWithBLOBs(PmsProductCategory record);
int updateByPrimaryKey(PmsProductCategory record);
}
|
[
"cmds12345678@163.com"
] |
cmds12345678@163.com
|
f888d52b221a895e55e078fdf2834fb2f0f0e4eb
|
9d9c0d9aba0c3102787a0215621b24dbe7f64b59
|
/jeecms-front/src/main/java/com/jeecms/front/CmsFrontApplication.java
|
949b6c23e6506c0922207d24621f32ba9a0318c5
|
[] |
no_license
|
hd19901110/jeecms1.4.1test
|
b354019c57a06384524d53aa667614c1f4e5a743
|
4e3e0cb31513e53004aa20c108f79741203becb0
|
refs/heads/master
| 2022-12-08T06:10:06.868825
| 2020-08-31T09:59:19
| 2020-08-31T09:59:19
| 285,445,431
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,846
|
java
|
package com.jeecms.front;
import com.jeecms.common.configuration.ContextConfig;
import com.jeecms.common.configuration.ThreadPoolConfiguration;
import com.jeecms.common.configuration.WebConfig;
import com.jeecms.common.configuration.WebSocketConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
/**
* 前台application
*
* @author: tom
* @date: 2019年3月11日 下午1:49:04
* @Copyright: 江西金磊科技发展有限公司 All rights reserved. Notice
* 仅限于授权后使用,禁止非授权传阅以及私自用于商业目的。
*/
@Configuration
@PropertySource({ "classpath:config/spring.jpa.properties" })
@ImportResource({ "classpath:config/context*.xml","classpath:config/**/context*.xml" })
@EnableAutoConfiguration(exclude = { JmxAutoConfiguration.class, ElasticsearchAutoConfiguration.class,
ElasticsearchDataAutoConfiguration.class, FreeMarkerAutoConfiguration.class})
@Import({ ContextConfig.class, WebConfig.class, WebSocketConfig.class, ThreadPoolConfiguration.class })
@EnableTransactionManagement
public class CmsFrontApplication extends SpringBootServletInitializer implements WebApplicationInitializer {
static Logger logger = LoggerFactory.getLogger(CmsFrontApplication.class);
/**
* war方式启动的处理方法
*/
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return configureApplication(builder);
}
/**
* jar方式启动的处理方法
*
* @param args
* String
* @throws Exception
* Exception
*/
public static void main(String[] args) throws Exception {
configureApplication(new SpringApplicationBuilder()).run(args);
}
/**
* war方式启动和jar方式启动共用的配置
*
* @param builder
* SpringApplicationBuilder
*/
private static SpringApplicationBuilder configureApplication(SpringApplicationBuilder builder) {
return builder.sources(CmsFrontApplication.class)
.listeners(new ApplicationListener<ApplicationEnvironmentPreparedEvent>() {
// 在应用环境准备好后执行(Application.properties和PoropertySource已读取),
// 此时BeanFactory还未准备好(Bean还未创建)
@SuppressWarnings("unused")
@Override
public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
ConfigurableEnvironment env = event.getEnvironment();
}
});
}
}
|
[
"2638177992@qq.com"
] |
2638177992@qq.com
|
7c5175bd8d8b62556046c52c6295c1f4cf4762fb
|
21513b4a163ef156412da0d2fe912c38cbbcb66b
|
/src/main/java/ganymedes01/thaumcraftgates/triggers/TriggerProvider.java
|
08e0a7bd3dff5599fed44aaf778fc5aaca9317bf
|
[] |
no_license
|
KryptonCaptain/ThaumcraftGates
|
301942be1e0d30eb56838ade4da3f395fec0144f
|
f6b60651938fd635b8859d6feabfb76ad5eb864d
|
refs/heads/master
| 2020-06-29T16:31:41.414326
| 2015-11-27T03:22:09
| 2015-11-27T03:22:09
| 200,567,317
| 1
| 0
| null | 2019-08-05T02:19:33
| 2019-08-05T02:19:33
| null |
UTF-8
|
Java
| false
| false
| 2,453
|
java
|
package ganymedes01.thaumcraftgates.triggers;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import buildcraft.api.statements.IStatementContainer;
import buildcraft.api.statements.ITriggerExternal;
import buildcraft.api.statements.ITriggerInternal;
import buildcraft.api.statements.ITriggerProvider;
import buildcraft.api.statements.StatementManager;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import thaumcraft.api.aspects.IAspectContainer;
import thaumcraft.common.tiles.TileWandPedestal;
public class TriggerProvider implements ITriggerProvider {
public static ITriggerExternal aspectTrigger64 = new AspectAmountTrigger(64);
public static ITriggerExternal aspectTrigger32 = new AspectAmountTrigger(32);
public static ITriggerExternal aspectTrigger16 = new AspectAmountTrigger(16);
public static ITriggerExternal aspectTrigger08 = new AspectAmountTrigger(8);
public static ITriggerExternal aspectTrigger00 = new AspectAmountTrigger(0);
public static ITriggerExternal aspectTriggerMinus8 = new AspectAmountTrigger(-8);
public static ITriggerExternal fullWandTrigger = new FullWandTrigger();
public static ITriggerExternal emptyWandTrigger = new EmptyWandTrigger();
public TriggerProvider() {
StatementManager.registerStatement(aspectTrigger64);
StatementManager.registerStatement(aspectTrigger32);
StatementManager.registerStatement(aspectTrigger16);
StatementManager.registerStatement(aspectTrigger08);
StatementManager.registerStatement(aspectTrigger00);
StatementManager.registerStatement(aspectTriggerMinus8);
StatementManager.registerStatement(fullWandTrigger);
StatementManager.registerStatement(emptyWandTrigger);
StatementManager.registerTriggerProvider(this);
}
@Override
public Collection<ITriggerInternal> getInternalTriggers(IStatementContainer container) {
return null;
}
@Override
public Collection<ITriggerExternal> getExternalTriggers(ForgeDirection side, TileEntity tile) {
List<ITriggerExternal> list = new ArrayList<ITriggerExternal>();
if (tile instanceof TileWandPedestal) {
list.add(fullWandTrigger);
list.add(emptyWandTrigger);
} else if (tile instanceof IAspectContainer) {
list.add(aspectTriggerMinus8);
list.add(aspectTrigger00);
list.add(aspectTrigger08);
list.add(aspectTrigger16);
list.add(aspectTrigger32);
list.add(aspectTrigger64);
}
return list;
}
}
|
[
"foka_12@hotmail.com"
] |
foka_12@hotmail.com
|
998f4ee66cfc1c6e9688c81786e6429942400764
|
2574e96cefaab303a46bfaea143d2d23b20b6a8b
|
/Mongodb/mongodb.java
|
bd4883a403589f016d35a81d3eac235fb31d1a7d
|
[] |
no_license
|
EndMacbook/notes
|
d558a15b74d22ce6c777df9e2b1a08923a346c9d
|
caef9432144ee326b4d65456bb72f449a06004e8
|
refs/heads/master
| 2020-12-02T15:41:39.261110
| 2019-12-31T06:17:15
| 2019-12-31T06:17:15
| 231,053,313
| 1
| 0
| null | 2019-12-31T08:12:30
| 2019-12-31T08:12:30
| null |
GB18030
|
Java
| false
| false
| 1,478
|
java
|
------------------------------
mongodb |
------------------------------
# 地址
https://mongodb.com/
https://docs.mongodb.com/
https://github.com/mongodb/mongo
------------------------------
mongodb - 目录结构 |
------------------------------
bin
|-mongo.exe
* 一个js的Shell的客户端,可以使用js的语法去执行客户端的操作
* 它还具备了js的标准库,不包含 dom 和 bom
* 可以使用多行命令,它会检测你的js语法是否是完整的,没写完的情况下,你可以通过回车,继续在下一行写
* 连续按三次回车,可以取消没有输入完成的命令
|-mongod.exe
* mongo服务端脚本
log
|-mongod.log
------------------------------
mongodb - 服务启动 |
------------------------------
# 执行 mongod 脚本
# 没有参数,默认会使用 /data/db 为数据目录
* Windows 使用 C:\data\db
* 需要先创建,否则会启动失败
# Mongo启动成功会在 27017 端口提供服务
# 启动参数
--noscripting
* 禁止服务端执行js代码
------------------------------
mongodb - 客户端的使用 |
------------------------------
# 执行 mongo 脚本
# 启动的时候,它会连接到默认的 test 数据库
# 并且把数据库的连接赋值给全局变量: db
db
* 查看当前所在的数据库
user db
* 切换到指定的db,不存在会创建
# 通过这个js shell 可以完成数据库的所有操作
|
[
"747692844@qq.com"
] |
747692844@qq.com
|
bcb2010ecd3817287779da1d9854c1bf44763b6a
|
c660f18af9d169a0362de030745063952c27e962
|
/common/codegen/src/main/java/com/alibaba/citrus/codegen/util/TypeUtil.java
|
995ef742db6ec8c8bc4029e24054e8cfcf7f4b35
|
[
"Apache-2.0"
] |
permissive
|
lpx1989/citrus
|
2395c3c248ead4d0ae7301a5a4763d9b5283007b
|
51fdd768621fe75f666b989e81ee42498f715534
|
refs/heads/master
| 2021-01-18T07:31:10.532149
| 2011-10-27T20:50:17
| 2011-10-27T20:50:17
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 6,720
|
java
|
/*
* Copyright 2010 Alibaba Group Holding Limited.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* 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.alibaba.citrus.codegen.util;
import static com.alibaba.citrus.asm.Type.*;
import static com.alibaba.citrus.util.Assert.*;
import static com.alibaba.citrus.util.CollectionUtil.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.Map;
import com.alibaba.citrus.asm.Type;
import com.alibaba.citrus.util.StringUtil;
/**
* 补充<code>Type</code>中的功能。
*
* @author Michael Zhou
*/
public class TypeUtil {
private static final Map<String, String> PRIMITIVE_DESCRIPTORS = createHashMap();
static {
PRIMITIVE_DESCRIPTORS.put("boolean", "Z");
PRIMITIVE_DESCRIPTORS.put("short", "S");
PRIMITIVE_DESCRIPTORS.put("int", "I");
PRIMITIVE_DESCRIPTORS.put("long", "J");
PRIMITIVE_DESCRIPTORS.put("float", "F");
PRIMITIVE_DESCRIPTORS.put("double", "D");
PRIMITIVE_DESCRIPTORS.put("char", "C");
PRIMITIVE_DESCRIPTORS.put("byte", "B");
PRIMITIVE_DESCRIPTORS.put("void", "V");
}
// ===========================================================
// [region] Class.getName() -> 各种形式
/**
* 取得类名的内部表示。只有普通类和接口可以转换成这种形式,原子类型和数组不支持该方法。
*/
public static String getInternalNameFromClassName(String className) {
assertTrue(!StringUtil.isEmpty(className), "className is empty");
assertTrue(!className.startsWith("["), "%s is an array", className);
assertTrue(!PRIMITIVE_DESCRIPTORS.containsKey(className), "%s is a primitive type", className);
return className.replace('.', '/');
}
/**
* 取得类型名称的descriptor。这里的类型名称为<code>Class.getName()</code>的返回值。 例如:
*
* <pre>
* TypeUtil.getDescriptorFromClassName(int.class.getName()) = "I" // int
* TypeUtil.getDescriptorFromClassName(int[].class.getName()) = "[I" // int[]
* TypeUtil.getDescriptorFromClassName(Integer.class.getName()) = "Ljava/lang/Integer;" // Integer
* TypeUtil.getDescriptorFromClassName(Integer[][].class.getName()) = "[[Ljava/lang/Integer;" // Integer[][]
* </pre>
*/
public static String getDescriptorFromClassName(String className) {
assertTrue(!StringUtil.isEmpty(className), "className is empty");
// 是数组:[I、[Ljava.lang.Object;
if (className.startsWith("[")) {
return className.replace('.', '/');
}
// 是primitive类型
String descriptor = PRIMITIVE_DESCRIPTORS.get(className);
if (descriptor != null) {
return descriptor;
}
// 是普通类型
return "L" + className.replace('.', '/') + ";";
}
// ===========================================================
// [region] 各种形式 -> Type
/**
* 将内部类名转换成<code>Type</code>。
*/
public static Type getTypeFromInternalName(String internalName) {
return getObjectType(internalName);
}
/**
* 将类名转换成<code>Type</code>。
*/
public static Type getTypeFromClassName(String className) {
return getType(getDescriptorFromClassName(className));
}
/**
* 将类型转换成<code>Type</code>。
*/
public static Type getTypeFromClass(Class<?> type) {
assertNotNull(type, "class");
return getType(getDescriptorFromClassName(type.getName()));
}
// ===========================================================
// [region] Type或名称的数组
/**
* 将一组class转换成<code>Type[]</code>。
*/
public static Type[] getTypes(Class<?>[] classes) {
if (classes == null) {
return new Type[0];
}
Type[] types = new Type[classes.length];
for (int i = classes.length - 1; i >= 0; --i) {
types[i] = getTypeFromClass(classes[i]);
}
return types;
}
/**
* 将<code>Type[]</code>转换成内部名称。
*/
public static String[] getInternalNames(Type[] types) {
if (types == null) {
return new String[0];
}
String[] names = new String[types.length];
for (int i = 0; i < types.length; i++) {
Type type = types[i];
assertTrue(type.getSort() == Type.OBJECT, "Type %s does not has internal name", type);
names[i] = type.getInternalName();
}
return names;
}
// ===========================================================
// [region] 各种形式 -> MethodDescriptor
/**
* 取得<code>Method</code>对应的签名。
*/
public static MethodSignature getMethodSignature(Method method) {
return new MethodSignature(method);
}
/**
* 取得<code>Method</code>对应的签名。
*/
public static MethodSignature getMethodSignature(String name, Class<?> returnType, Class<?>[] parameterTypes) {
return new MethodSignature(name, returnType, parameterTypes);
}
/**
* 取得<code>Constructor</code>对应的签名。
*/
public static MethodSignature getConstructorSignature(Constructor<?> constructor) {
return new MethodSignature(constructor);
}
/**
* 取得<code>Constructor</code>对应的签名。
*/
public static MethodSignature getConstructorSignature(Class<?>[] parameterTypes) {
return new MethodSignature(CodegenConstant.CONSTRUCTOR_NAME, void.class, parameterTypes);
}
// ===========================================================
// [region] 其它功能
/**
* 检测标志位是否被设置。
*/
public static boolean testBits(int flags, int bits) {
return (flags & bits) != 0;
}
}
|
[
"yizhi@taobao.com"
] |
yizhi@taobao.com
|
556e9ccc9e546eb0c9d15a03d9c8b77a3c40066e
|
c35894bc2cc7d38d01295d81baee76a7dce10b20
|
/Ch05_Classes/src/p05/polmorph/instaceof/InstanceOfExample.java
|
dde27a8a7291429baed32bef043b812b92a28b4a
|
[] |
no_license
|
jongtix/JAVA_jongtix
|
93e5c289ed3e514cd481373988f18904b8c698cf
|
4f9f29456ac3956a34d05428c9bf7df14bb7b718
|
refs/heads/master
| 2021-08-29T23:14:02.840808
| 2017-12-15T07:43:22
| 2017-12-15T07:43:22
| 107,648,776
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 930
|
java
|
package p05.polmorph.instaceof;
public class InstanceOfExample {
// 메소드
public static void main(String[] args) {
// 객체생성
Parent parentA = new Child(); // 부모 타입으로 선언한 참조변수에 자식 객체 대
method1(parentA);
method2(parentA);
Parent parentB = new Parent();
method1(parentB);
// method2(parentB); // 실행시 오류 발생
// - 생성을 부모객체로 했기 때문에 자식 타입으로 casting 불가.
}
public static void method1(Parent p) {
if (p instanceof Child) { // 값으로 받은 p가 Child 타입으로 Casting 이 가능한지 확인
Child child = (Child) p;
System.out.println("method1 - Child변환 성공");
} else {
System.out.println("method1 - Child로 변환 불가");
}
}
public static void method2(Parent parent) {
Child child = (Child) parent;
System.out.println("method2 - Child로 변환 성공");
}
}
|
[
"jong1145@naver.com"
] |
jong1145@naver.com
|
62459edaf4123c5abd1a7a8675d502dc8854d2f5
|
f35f4008d60bf04e6e3236a60514693cae296d42
|
/app/src/main/java/org/apache/commons/httpclient/Wire.java
|
dd267e110b9d53ce352ff472ca79184bf9e0cebe
|
[] |
no_license
|
alsmwsk/golfmon
|
ef0c8e8c7ecaa13371deed40f7e20468b823b0e9
|
740132d47185bfe9ec9d6774efbde5404ea8cf6d
|
refs/heads/master
| 2020-03-22T11:16:01.438894
| 2018-07-06T09:47:10
| 2018-07-06T09:47:10
| 139,959,669
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,455
|
java
|
package org.apache.commons.httpclient;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
class Wire
{
public static Wire CONTENT_WIRE = new Wire(LogFactory.getLog("httpclient.wire.content"));
public static Wire HEADER_WIRE = new Wire(LogFactory.getLog("httpclient.wire.header"));
private Log log;
private Wire(Log paramLog)
{
this.log = paramLog;
}
private void wire(String paramString, InputStream paramInputStream)
throws IOException
{
StringBuffer localStringBuffer = new StringBuffer();
for (;;)
{
int i = paramInputStream.read();
if (i == -1)
{
if (localStringBuffer.length() > 0)
{
localStringBuffer.append("\"");
localStringBuffer.insert(0, "\"");
localStringBuffer.insert(0, paramString);
this.log.debug(localStringBuffer.toString());
}
return;
}
if (i == 13)
{
localStringBuffer.append("[\\r]");
}
else if (i == 10)
{
localStringBuffer.append("[\\n]\"");
localStringBuffer.insert(0, "\"");
localStringBuffer.insert(0, paramString);
this.log.debug(localStringBuffer.toString());
localStringBuffer.setLength(0);
}
else if ((i < 32) || (i > 127))
{
localStringBuffer.append("[0x");
localStringBuffer.append(Integer.toHexString(i));
localStringBuffer.append("]");
}
else
{
localStringBuffer.append((char)i);
}
}
}
public boolean enabled()
{
return this.log.isDebugEnabled();
}
public void input(int paramInt)
throws IOException
{
byte[] arrayOfByte = new byte[1];
arrayOfByte[0] = ((byte)paramInt);
input(arrayOfByte);
}
public void input(InputStream paramInputStream)
throws IOException
{
if (paramInputStream == null) {
throw new IllegalArgumentException("Input may not be null");
}
wire("<< ", paramInputStream);
}
public void input(String paramString)
throws IOException
{
if (paramString == null) {
throw new IllegalArgumentException("Input may not be null");
}
input(paramString.getBytes());
}
public void input(byte[] paramArrayOfByte)
throws IOException
{
if (paramArrayOfByte == null) {
throw new IllegalArgumentException("Input may not be null");
}
wire("<< ", new ByteArrayInputStream(paramArrayOfByte));
}
public void input(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
throws IOException
{
if (paramArrayOfByte == null) {
throw new IllegalArgumentException("Input may not be null");
}
wire("<< ", new ByteArrayInputStream(paramArrayOfByte, paramInt1, paramInt2));
}
public void output(int paramInt)
throws IOException
{
byte[] arrayOfByte = new byte[1];
arrayOfByte[0] = ((byte)paramInt);
output(arrayOfByte);
}
public void output(InputStream paramInputStream)
throws IOException
{
if (paramInputStream == null) {
throw new IllegalArgumentException("Output may not be null");
}
wire(">> ", paramInputStream);
}
public void output(String paramString)
throws IOException
{
if (paramString == null) {
throw new IllegalArgumentException("Output may not be null");
}
output(paramString.getBytes());
}
public void output(byte[] paramArrayOfByte)
throws IOException
{
if (paramArrayOfByte == null) {
throw new IllegalArgumentException("Output may not be null");
}
wire(">> ", new ByteArrayInputStream(paramArrayOfByte));
}
public void output(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
throws IOException
{
if (paramArrayOfByte == null) {
throw new IllegalArgumentException("Output may not be null");
}
wire(">> ", new ByteArrayInputStream(paramArrayOfByte, paramInt1, paramInt2));
}
}
/* Location: C:\Users\TGKIM\Downloads\작업폴더\리버싱\androidReversetools\jd-gui-0.3.6.windows\com.appg.golfmon-1-dex2jar.jar
* Qualified Name: org.apache.commons.httpclient.Wire
* JD-Core Version: 0.7.0.1
*/
|
[
"alsmwsk@naver.com"
] |
alsmwsk@naver.com
|
c415597cbeffccd22dccbd782e56f219a39bbb87
|
456bcf8cc470290d630cb06b7deeca78a2f940bb
|
/src/hard/SuperPalindromes.java
|
86f659d9b4903c7da853ee04a46d1f3ab277110b
|
[] |
no_license
|
acrush37/leetcode-math
|
984fb9bd5bd8043efc244001b320d80ebd5b08ad
|
09dcfe730f70d0c6533145dc35c766bdb99d9fbf
|
refs/heads/master
| 2022-04-16T22:27:20.766793
| 2020-03-22T06:08:58
| 2020-03-22T06:08:58
| 215,554,278
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,690
|
java
|
package hard;
import java.util.HashSet;
import java.util.Set;
/*
Let's say a positive integer is a superpalindrome if it is a palindrome, and it is also the square of a palindrome.
Now, given two positive integers L and R (represented as strings), return the number of superpalindromes in the inclusive range [L, R].
*/
public class SuperPalindromes {
private Set<Long> t = new HashSet<>();
public static void main(String... args) {
SuperPalindromes superPalindromes = new SuperPalindromes();
System.out.println(superPalindromes.superpalindromesInRange("4", "1000"));
}
private boolean check(String s) {
int n = s.length() -1;
if (n == 0) return true;
int m = n >> 1;
char[] c = s.toCharArray();
for (int i = 0; i <= m; i++)
if (c[i] != c[n-i])
return false;
return true;
}
private void dfs(int k, String s) {
if (k == 0) return;
for (int i = 0; i <= 9; i++)
if (i != 0 || k != 1) {
String x = i + s + i;
long y = Long.parseLong(x);
y = y * y;
if (check(y + "")) t.add(y);
dfs(k-1, x);
}
}
public int superpalindromesInRange(String L, String R) {
t.add(1l);
t.add(4l);
t.add(9l);
for (int i = 1; i <= 4; i++) {
dfs(i, "");
for (int j = 0; j <= 9; j++) dfs(i, j + "");
}
int result = 0;
long x = Long.parseLong(L);
long y = Long.parseLong(R);
for (long z : t) if (x <= z && z <= y) result++;
return result;
}
}
|
[
"acrush37@gmail.com"
] |
acrush37@gmail.com
|
0c9f2f8ff8fecb9cfd6f92f74741fcdaf9280634
|
000c96eb393da2d706deec3df75a9a04ee4fcf91
|
/androidClass/day23/FragmentTabHostDemo/src/com/fragmenttabhostdemo/MainActivity.java
|
c1d6bb149ad016df67deafe4f501e0f804c85d59
|
[] |
no_license
|
sonyi/androidClass
|
08d3899dc8d6a273998b8c5402e05e5f324e1567
|
d443cfba074cfbbccfc7685b20449aec7ac3eb02
|
refs/heads/master
| 2020-05-29T20:01:47.934270
| 2014-09-03T08:19:46
| 2014-09-03T08:19:46
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,814
|
java
|
package com.fragmenttabhostdemo;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTabHost;
import android.view.Menu;
import android.view.View;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;
public class MainActivity extends FragmentActivity {
public static final String KEY_NAME = "name";
private FragmentTabHost tabHost;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initialTabs();
}
private void initialTabs() {
tabHost = (FragmentTabHost) findViewById(R.id.tab_host);
// 设置FragmentTabHost
tabHost.setup(this, getSupportFragmentManager(), R.id.layout_container);
// 构建并添加每个Tab
TabSpec tabChat = tabHost.newTabSpec("chat");
View tabChatView = getIndicatorView("聊天", R.drawable.social_chat);
tabChat.setIndicator(tabChatView);
// 指定传给对应的Fragment的参数
Bundle chatArg = new Bundle();
chatArg.putString(KEY_NAME, "聊天");
// 参数1:标签项,参数2:对应的Fragment的类,参数2:传递给Fragment的Bundle参数
tabHost.addTab(tabChat, TopLevelFragment.class, chatArg);
TabSpec tabFriends = tabHost.newTabSpec("friends");
View tabFriendsView = getIndicatorView("好友", R.drawable.social_bcc);
tabFriends.setIndicator(tabFriendsView);
Bundle friendsArg = new Bundle();
friendsArg.putString(KEY_NAME, "好友");
tabHost.addTab(tabFriends, TopLevelFragment.class, friendsArg);
TabSpec tabMap = tabHost.newTabSpec("map");
View tabMapView = getIndicatorView("地图", R.drawable.location_map);
tabMap.setIndicator(tabMapView);
Bundle mapArg = new Bundle();
mapArg.putString(KEY_NAME, "地图");
tabHost.addTab(tabMap, TopLevelFragment.class, mapArg);
TabSpec tabLocation = tabHost.newTabSpec("location");
View tabLocView = getIndicatorView("定位", R.drawable.location_place);
tabLocation.setIndicator(tabLocView);
Bundle LocationArg = new Bundle();
LocationArg.putString(KEY_NAME, "定位");
tabHost.addTab(tabLocation, TopLevelFragment.class, LocationArg);
}
private View getIndicatorView(String text, int drawableId) {
View view = getLayoutInflater().inflate(R.layout.view_tab_item, null);
TextView tvTabText = (TextView) view.findViewById(R.id.tv_tab_text);
tvTabText.setText(text);
Drawable top = getResources().getDrawable(drawableId);
tvTabText
.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
return view;
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
|
[
"wxy15105957760"
] |
wxy15105957760
|
4b1516ab5d2e9c924f1171ac0b8d5a33c9f5f532
|
3c8f90b0eb0aa091dd285c96669feafeded6cd2c
|
/stack-core/src/main/java/com/digitalpetri/opcua/stack/core/util/NonceUtil.java
|
b14406f1b105b0d6f1e83ffa1c1f03332d508070
|
[
"Apache-2.0"
] |
permissive
|
conghuadan/opc-ua-stack
|
438b1262ca6e1b4f63fac172de78fb1e59cdfbac
|
2a534a1d58dbbdcb88a9d375225f062179f2a6d8
|
refs/heads/master
| 2020-12-25T23:08:49.116039
| 2015-06-13T22:05:55
| 2015-06-13T22:05:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,678
|
java
|
package com.digitalpetri.opcua.stack.core.util;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Random;
import com.digitalpetri.opcua.stack.core.security.SecurityAlgorithm;
import com.digitalpetri.opcua.stack.core.types.builtin.ByteString;
public class NonceUtil {
private static final Random random = new Random();
private static volatile boolean secureRandomEnabled = true;
private static volatile SecureRandom secureRandom;
static {
/*
* The first call to a SecureRandom causes it to seed, which is potentially blocking, so don't make the
* SecureRandom instance available until after its seeded and generated output already.
*/
new Thread(() -> {
SecureRandom sr;
try {
sr = SecureRandom.getInstanceStrong();
} catch (NoSuchAlgorithmException e) {
sr = new SecureRandom();
}
sr.nextBytes(new byte[32]);
secureRandom = sr;
}).start();
}
public static void enableSecureRandom() {
secureRandomEnabled = true;
}
public static void disableSecureRandom() {
secureRandomEnabled = false;
}
public static boolean isSecureRandomEnabled() {
return secureRandomEnabled;
}
/**
* @param length the length of the nonce to generate.
* @return a nonce of the given length.
*/
public static ByteString generateNonce(int length) {
if (length == 0) return ByteString.NULL_VALUE;
byte[] bs = new byte[length];
if (secureRandom != null && secureRandomEnabled) {
secureRandom.nextBytes(bs);
} else {
random.nextBytes(bs);
}
return new ByteString(bs);
}
/**
* Generate a nonce for the given {@link SecurityAlgorithm}. The length is determined by the algorithm.
* @param algorithm the algorithm to use when determined the nonce length.
* @return a nonce of the appropriate length for the given algorithm.
*/
public static ByteString generateNonce(SecurityAlgorithm algorithm) {
return generateNonce(getNonceLength(algorithm));
}
/**
* Get the nonce length for use with {@code algorithm}.
*
* @param algorithm a symmetric encryption algorithm.
* @return the nonce length.
*/
public static int getNonceLength(SecurityAlgorithm algorithm) {
switch (algorithm) {
case Aes128:
return 16;
case Aes256:
return 32;
default:
return 0;
}
}
}
|
[
"kevinherron@gmail.com"
] |
kevinherron@gmail.com
|
81e883c391c3e023be7a580554fecb9c4b2979fe
|
ba96081716b984d1132239db9abc9eae3d60ebad
|
/marathon-core/src/main/java/net/sourceforge/marathon/fx/api/EventListenerList.java
|
ea2f5ff7c2503f8f8094de8214aab75485b4eaa1
|
[
"Apache-2.0"
] |
permissive
|
pranasblk/marathonv5
|
05f0b46b64f07f4b6974b57cbd4904b8c5af6d73
|
0bda018ac14a65bdb2c8fd3c9a530e3de505f2da
|
refs/heads/master
| 2021-01-18T21:53:22.591748
| 2017-03-31T09:04:47
| 2017-03-31T09:04:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,915
|
java
|
/*******************************************************************************
* Copyright 2016 Jalian Systems Pvt. Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package net.sourceforge.marathon.fx.api;
import java.lang.reflect.Array;
import java.util.EventListener;
public class EventListenerList {
/* A null array to be shared by all empty listener lists */
private final static Object[] NULL_ARRAY = new Object[0];
/* The list of ListenerType - Listener pairs */
protected transient Object[] listenerList = NULL_ARRAY;
public synchronized <T extends EventListener> void add(Class<T> t, T l) {
if (l == null) {
// In an ideal world, we would do an assertion here
// to help developers know they are probably doing
// something wrong
return;
}
if (!t.isInstance(l)) {
throw new IllegalArgumentException("Listener " + l + " is not of type " + t);
}
if (listenerList == NULL_ARRAY) {
// if this is the first listener added,
// initialize the lists
listenerList = new Object[] { t, l };
} else {
// Otherwise copy the array and add the new listener
int i = listenerList.length;
Object[] tmp = new Object[i + 2];
System.arraycopy(listenerList, 0, tmp, 0, i);
tmp[i] = t;
tmp[i + 1] = l;
listenerList = tmp;
}
}
@SuppressWarnings("unchecked") public <T extends EventListener> T[] getListeners(Class<T> t) {
Object[] lList = listenerList;
int n = getListenerCount(lList, t);
T[] result = (T[]) Array.newInstance(t, n);
int j = 0;
for (int i = lList.length - 2; i >= 0; i -= 2) {
if (lList[i] == t) {
result[j++] = (T) lList[i + 1];
}
}
return result;
}
public int getListenerCount(Class<?> t) {
Object[] lList = listenerList;
return getListenerCount(lList, t);
}
private int getListenerCount(Object[] list, Class<?> t) {
int count = 0;
for (int i = 0; i < list.length; i += 2) {
if (t == (Class<?>) list[i]) {
count++;
}
}
return count;
}
}
|
[
"dakshinamurthy.karra@jaliansystems.com"
] |
dakshinamurthy.karra@jaliansystems.com
|
0f68a538d0d8cc165b2367a622fc26fa4e597aa0
|
ed865190ed878874174df0493b4268fccb636a29
|
/PuridiomGraphs/src/com/tsa/puridiom/graphs/JavaScriptRfqUrl.java
|
edbe9229ffb0a0eb7ff8cdfa0c1b0f1aa48df22e
|
[] |
no_license
|
zach-hu/srr_java8
|
6841936eda9fdcc2e8185b85b4a524b509ea4b1b
|
9b6096ba76e54da3fe7eba70989978edb5a33d8e
|
refs/heads/master
| 2021-01-10T00:57:42.107554
| 2015-11-06T14:12:56
| 2015-11-06T14:12:56
| 45,641,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,674
|
java
|
/*
* Created on Dec 15, 2004
*/
package com.tsa.puridiom.graphs;
import org.jfree.chart.urls.CategoryURLGenerator;
import org.jfree.data.category.CategoryDataset;
import com.tsa.puridiom.common.documents.DocumentStatus;
/**
* @author renzo
*/
public class JavaScriptRfqUrl implements CategoryURLGenerator
{
/* (non-Javadoc)
* @see org.jfree.chart.urls.CategoryURLGenerator#generateURL(org.jfree.data.category.CategoryDataset, int, int)
*/
public String generateURL(CategoryDataset dataset, int series, int category)
{
String url = "javascript: viewRfqsByStatus(";
String endUrl = "); void(0);";
Comparable seriesKey = dataset.getRowKey(series);
int count = dataset.getColumnCount();
int index =count - category - 1;
Comparable columnKey = dataset.getColumnKey(category);
String status = columnKey.toString();
String statusValue = DocumentStatus.toValue(status, "PURIDIOM");
url += "\\'" + statusValue + "\\'";
url += endUrl;
return url;
}
/*
public String generateURL(CategoryDataset dataset, int series, int category) {
String url = this.prefix;
Comparable seriesKey = dataset.getRowKey(series);
Comparable categoryKey = dataset.getColumnKey(category);
boolean firstParameter = url.indexOf("?") == -1;
url += firstParameter ? "?" : "&";
url += this.seriesParameterName + "="
+ URLEncoder.encode(seriesKey.toString());
url += "&" + this.categoryParameterName + "="
+ URLEncoder.encode(categoryKey.toString());
return url;
}
*/
}
|
[
"brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466"
] |
brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466
|
2309ad95fe48d1a9164bb3ca7b8fec46b84a15c3
|
ea33632bd6353aa94290df2b7a8357e9801626a0
|
/src/main/java/com/avaya/jtapi/tsapi/csta1/AgentState.java
|
a362908d6b84dc05276b576305c86d34d9ca490d
|
[] |
no_license
|
inkyu/TIL_JTAPI
|
b5dc049eda4567f7c290841e2925cadc54944a91
|
43539acfff2b0eec70e688299e3d641152eac028
|
refs/heads/master
| 2020-05-17T05:05:48.468878
| 2019-04-26T06:40:56
| 2019-04-26T06:40:56
| 183,523,767
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 871
|
java
|
package com.avaya.jtapi.tsapi.csta1;
import com.avaya.jtapi.tsapi.asn1.ASNEnumerated;
import java.util.Collection;
public final class AgentState extends ASNEnumerated {
public static final short AG_NOT_READY = 0;
public static final short AG_NULL = 1;
public static final short AG_READY = 2;
public static final short AG_WORK_NOT_READY = 3;
public static final short AG_WORK_READY = 4;
public static final short AG_NOT_INITIALIZED = -1;
static Collection<String> print(short value, String name, String indent) {
String str;
switch (value) {
case 0:
str = "AG_NOT_READY";
break;
case 1:
str = "AG_NULL";
break;
case 2:
str = "AG_READY";
break;
case 3:
str = "AG_WORK_NOT_READY";
break;
case 4:
str = "AG_WORK_READY";
break;
default:
str = "?? " + value + " ??";
}
return print(value, str, name, indent);
}
}
|
[
"inkyu@0566"
] |
inkyu@0566
|
9c4eace549243ad9d7b0bba3e401421fa789327f
|
f3c35ce8ca93ad644f523ca19171478dd0ec95da
|
/ib/src/main/java/com/dwidasa/ib/pages/administration/EmailChangeInput.java
|
2e9055e8dc3242886b57a9bd76cf1a59970567d6
|
[] |
no_license
|
depot-air/internet-banking
|
da049da2f6288a388bd9f2d33a9e8e57f5954269
|
25a5e0038c446536eca748e18f35b7a6a8224604
|
refs/heads/master
| 2022-12-21T03:54:50.227565
| 2020-01-16T11:15:31
| 2020-01-16T11:15:31
| 234,302,680
| 0
| 1
| null | 2022-12-09T22:33:28
| 2020-01-16T11:12:17
|
Java
|
UTF-8
|
Java
| false
| false
| 3,286
|
java
|
package com.dwidasa.ib.pages.administration;
import org.apache.tapestry5.annotations.DiscardAfter;
import org.apache.tapestry5.annotations.InjectComponent;
import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.Form;
import org.apache.tapestry5.ioc.Messages;
import org.apache.tapestry5.ioc.annotations.Inject;
import com.dwidasa.engine.BusinessException;
import com.dwidasa.engine.model.FormConfig;
import com.dwidasa.engine.model.view.CustomerView;
import com.dwidasa.engine.model.view.ResultView;
import com.dwidasa.engine.service.CacheManager;
import com.dwidasa.engine.service.facade.WebAdministrationService;
import com.dwidasa.ib.pages.eula.EulaWelcome;
import com.dwidasa.ib.services.OtpManager;
import com.dwidasa.ib.services.SessionManager;
/**
* Created by IntelliJ IDEA.
* User: wks-001
* Date: 8/3/11
* Time: 11:20 PM
*/
public class EmailChangeInput {
@Property
private CustomerView customerView;
@Property
private ResultView resultView;
@Inject
private SessionManager sessionManager;
@Inject
private WebAdministrationService administrationService;
@Property
private String confirmEmailValue;
@InjectPage
private EmailChangeReceipt emailChangeReceipt;
@InjectComponent
private Form form;
@Inject
private Messages message;
@Inject
private OtpManager otpManager;
public Object onActivate() {
if (sessionManager.isNotActivatedYet()) {
return EulaWelcome.class;
}
return null;
}
void onSelectedFromNext(){
if (customerView.getEmail() == null) {
form.recordError(message.get("errorNewEmailNull"));
} else if (!customerView.getEmail().equalsIgnoreCase(confirmEmailValue)){
form.recordError(message.get("errorEmailChange"));
}
if (form.getHasErrors()) return;
if (confirmEmailValue == null) {
form.recordError(message.get("errorConfEmailNull"));
} else if (!confirmEmailValue.matches("^[\\w-_\\.+]*[\\w-_\\.]\\@([\\w]+\\.)+[\\w]+[\\w]$")) {
form.recordError(message.get("formatConfEmailError"));
}
if (form.getHasErrors()) return;
try {
customerView.setId(sessionManager.getLoggedCustomerView().getId());
resultView = administrationService.changeCustomerInfo(customerView, null, 1);
sessionManager.getLoggedCustomerView().setEmail(customerView.getEmail());
}
catch (BusinessException e) {
form.recordError(e.getFullMessage());
e.printStackTrace();
}
}
void onPrepare() {
if(customerView == null){
customerView = new CustomerView();
}
}
@Inject
private CacheManager cacheManager;
void setTokenType() {
FormConfig formConfig = cacheManager.getFormConfig(this.getClass().getSimpleName());
tokenType = formConfig.getTokenType();
}
void setupRender(){
setTokenType();
if(customerView == null){
customerView = new CustomerView();
}
}
@DiscardAfter
Object onSuccessFromForm(){
emailChangeReceipt.setResultView(resultView);
return emailChangeReceipt;
}
@Property
private int tokenType;
}
|
[
"gunungloli@gmail.com"
] |
gunungloli@gmail.com
|
f07e26a5ed0cbe198b8ecdfe7e52a62f0621503f
|
e2db3e1db1f8ba0be476ddcf21aafc177ceda2bc
|
/itsm-account-api/src/main/java/com/itsm/platform/account/facade/UmUserRestService.java
|
56a7773ed3a3b37e9d14966549f814ff9947424c
|
[
"Apache-2.0"
] |
permissive
|
bqw5189/itsm-account
|
3408f90d96c221b7aca93a9f3b0e101bf2705dc8
|
1b75edd25ffadb3f9e40d3502a56ce661a677b8e
|
refs/heads/master
| 2021-01-17T17:57:14.120560
| 2016-07-13T08:47:23
| 2016-07-13T08:47:23
| 62,980,240
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,789
|
java
|
package com.itsm.platform.account.facade;
import org.dubbo.x.facade.CURDRestService;
import org.dubbo.x.facade.RestResult;
import org.dubbo.x.util.ConstantVariable;
import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.itsm.platform.account.entity.UmUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.util.List;
/**
* 用户 接口
*
* @author baiqw
*/
@Path("umusers")
@Consumes({MediaType.APPLICATION_JSON})
@Produces({ContentType.APPLICATION_JSON_UTF_8})
@Api(value="umusers", description = "用户接口")
public interface UmUserRestService extends CURDRestService<UmUser>{
/**
* 用户
* @return
*/
@GET
@Path("")
@ApiOperation(value = "用户",
notes = "用户列表.")
RestResult<List<UmUser>> list(@HeaderParam(ConstantVariable.HEADER_AUTHORIZATION_KEY) String token);
/**
* 用户 详细信息
*
* @return
*/
@GET
@Path("/{id}")
@ApiOperation(value = "详细信息",
notes = "用户详细信息.")
RestResult<UmUser> detail(@HeaderParam(ConstantVariable.HEADER_AUTHORIZATION_KEY) String token, @ApiParam("id") @PathParam("id") String uuid);
@POST
@Path("")
@ApiOperation(value = "添加/修改用户", notes = "添加/修改用户")
RestResult<UmUser> create(@HeaderParam(ConstantVariable.HEADER_AUTHORIZATION_KEY) String token,UmUser umUser);
@DELETE
@Path("/{id}")
@ApiOperation(value = "删除用户", notes = "删除用户")
RestResult<String> delete(@HeaderParam(ConstantVariable.HEADER_AUTHORIZATION_KEY) String token, @ApiParam("id") @PathParam("id") String uuid);
}
|
[
"tom@daoshenggroup.com"
] |
tom@daoshenggroup.com
|
794f15aacece386002a6bc5defa14dd8d81cea7d
|
926fefb45918a4cb6aef0688084b45d8eac19700
|
/javastone/src/main/java/com/hxr/javatone/concurrency/reactor/Handler.java
|
805c40f6da6b1a860a068e36f9b6adc0c9bc116a
|
[] |
no_license
|
hanxirui/for_java
|
1534d19828b4e30056deb4340d5ce0b9fd819f1a
|
14df7f9cb635da16a0ee283bf016dc77ad3cecec
|
refs/heads/master
| 2022-12-25T02:06:30.568892
| 2019-09-06T06:45:36
| 2019-09-06T06:45:36
| 14,199,294
| 1
| 0
| null | 2022-12-16T06:29:53
| 2013-11-07T09:17:09
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,164
|
java
|
package com.hxr.javatone.concurrency.reactor;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
public class Handler implements Runnable {
final SocketChannel socketChannel;
final SelectionKey selectionKey;
ByteBuffer input = ByteBuffer.allocate(1024);
static final int READING = 0, SENDING = 1;
int state = READING;
String clientName = "";
Handler(final Selector selector, final SocketChannel c) throws IOException {
socketChannel = c;
c.configureBlocking(false);
selectionKey = socketChannel.register(selector, 0);
selectionKey.attach(this);
selectionKey.interestOps(SelectionKey.OP_READ);
selector.wakeup();
}
@Override
public void run() {
try {
if (!socketChannel.isConnected()) {
socketChannel.close();
return;
}
if (state == READING) {
read();
} else if (state == SENDING) {
send();
}
} catch (IOException ex) {
ex.printStackTrace();
try {
socketChannel.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
void read() throws IOException {
int readCount = socketChannel.read(input);
if (readCount > 0) {
readProcess(readCount);
}
state = SENDING;
// Interested in writing
selectionKey.interestOps(SelectionKey.OP_WRITE);
}
/**
* Processing of the read message. This only prints the message to stdOut.
*
* @param readCount
*/
synchronized void readProcess(final int readCount) {
StringBuilder sb = new StringBuilder();
input.flip();
byte[] subStringBytes = new byte[readCount];
byte[] array = input.array();
System.arraycopy(array, 0, subStringBytes, 0, readCount);
// Assuming ASCII (bad assumption but simplifies the example)
sb.append(new String(subStringBytes));
input.clear();
clientName = sb.toString().trim();
}
void send() throws IOException {
System.out.println("Saying hello to " + clientName);
ByteBuffer output = ByteBuffer.wrap(("Hello " + clientName + "\n").getBytes());
socketChannel.write(output);
selectionKey.interestOps(SelectionKey.OP_READ);
state = READING;
}
}
|
[
"han_xirui@163.com"
] |
han_xirui@163.com
|
74420326bc8fdb72d0bb13f22a193fc60c733bd3
|
e12e55cff16f92d507c0dd1135338b70be374f56
|
/src/main/java/net/catchpole/console/TimeTracker.java
|
88d9ee52a1b1a899a90891e20faf3fb989a2bfe2
|
[
"Apache-2.0"
] |
permissive
|
slipperyseal/sealcast
|
285433dc755052f4b585fb328ed0be0e99eb2d2c
|
b88573613ba542339e0584d27e17e450117f0f5a
|
refs/heads/slippery
| 2023-03-04T16:49:57.260667
| 2023-02-26T01:26:00
| 2023-02-26T01:26:00
| 98,632,347
| 3
| 1
|
Apache-2.0
| 2022-04-10T06:03:09
| 2017-07-28T09:16:37
|
Java
|
UTF-8
|
Java
| false
| false
| 980
|
java
|
package net.catchpole.console;
import java.util.Date;
public class TimeTracker {
private long start;
public TimeTracker() {
this.start = System.currentTimeMillis();
}
public String getStartDate() {
return new Date(start).toString();
}
public String getHoursMinsSeconds() {
long milliseconds = getElapsed();
int seconds = (int) (milliseconds / 1000) % 60 ;
int minutes = (int) ((milliseconds / (1000*60)) % 60);
int hours = (int) ((milliseconds / (1000*60*60)) % 24);
return String.format("%d:%02d:%02d",hours,minutes,seconds);
}
public long getElapsed() {
return System.currentTimeMillis() - start;
}
public static void main(String[] args) throws Exception {
TimeTracker timeTracker = new TimeTracker();
Thread.sleep(3000);
System.out.println(timeTracker.getHoursMinsSeconds());
System.out.println(timeTracker.getStartDate());
}
}
|
[
"christian@catchpole.net"
] |
christian@catchpole.net
|
aef1590d9a25461b06c0ab8da4805d91862bdf66
|
4ec91fe5abdd4345524159b9c4a6b66f2941ec2e
|
/gws-crypto-cryptopro/src/main/java/org/apache/xml/security/signature/NodeFilter.java
|
e70497bb2681875565d463ba99b69102ecb30df6
|
[] |
no_license
|
antonschelokov/siu
|
3cbfa40e79a81c087ee62bd7b9d4b79083ecf2c0
|
788d67c0181a10bf34a52417243ec2d4a0603619
|
refs/heads/master
| 2021-06-07T04:45:27.672278
| 2015-09-08T08:40:11
| 2015-09-08T08:40:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,746
|
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.xml.security.signature;
import org.w3c.dom.Node;
/**
* An interface to tell to the c14n if a node is included or not in the output
*/
public interface NodeFilter {
/**
* Tells if a node must be output in c14n.
*
* @param n
* @return 1 if the node should be output.
* 0 if node must not be output,
* -1 if the node and all it's child must not be output.
*/
int isNodeInclude(Node n);
/**
* Tells if a node must be output in a c14n.
* The caller must assured that this method is always call
* in document order. The implementations can use this
* restriction to optimize the transformation.
*
* @param n
* @param level the relative level in the tree
* @return 1 if the node should be output.
* 0 if node must not be output,
* -1 if the node and all it's child must not be output.
*/
int isNodeIncludeDO(Node n, int level);
}
|
[
"maxim.zaytsev@codeinside.ru"
] |
maxim.zaytsev@codeinside.ru
|
c7e5e37d8a26cf838ee2274dd9bf1e98d705d884
|
1c3e6a99ed38c33151eba53d37a998b783df780b
|
/utils-test/test/com/xenoage/utils/collections/CollectionUtilsTest.java
|
25ac6c427d4fb3db9ee015d6c75c68e992036272
|
[
"Zlib"
] |
permissive
|
Xenoage/Utils
|
5ce53ecb38c3f7ce2848755ac99c9529dcdcaf14
|
cd21920419687840b3fba30d102eb7e6be258e03
|
refs/heads/master
| 2021-01-18T22:21:32.570442
| 2017-05-31T09:19:06
| 2017-05-31T09:19:06
| 11,782,298
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 607
|
java
|
package com.xenoage.utils.collections;
import org.junit.Test;
import java.util.LinkedList;
import static org.junit.Assert.*;
/**
* Tests for {@link CollectionUtils}.
*
* @author Andreas Wenger
*/
public class CollectionUtilsTest {
@Test public void getMaxTest() {
assertEquals(8, (int) CollectionUtils.getMax(list()));
}
@Test public void getMinTest() {
assertEquals(1, (int) CollectionUtils.getMin(list()));
}
private LinkedList<Integer> list() {
LinkedList<Integer> ret = new LinkedList<>();
ret.add(2);
ret.add(8);
ret.add(3);
ret.add(1);
ret.add(5);
return ret;
}
}
|
[
"andi@xenoage.com"
] |
andi@xenoage.com
|
9682dda9454a0802a21357a18b8f75dd94fe8e92
|
1baaa53016ac06a291d6ac9c7a4c6e4d4a87c51c
|
/zb-wechat/zb-wechat-rpc-api/src/main/java/pers/zb/wechat/rpc/api/wxinf/send/press/ShopDeliveryTemplateUtil.java
|
5ecea20713236c64a51bbc34dcd5f2eefbb771db
|
[] |
no_license
|
tapate/-
|
7a4e0354a1c56afcb5d6f0c9f23059277e24e54a
|
e9e9d99911d8134794f3d55850a1e1000629389f
|
refs/heads/master
| 2020-04-23T13:31:31.807404
| 2017-08-11T07:39:54
| 2017-08-11T07:39:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,742
|
java
|
package pers.zb.wechat.rpc.api.wxinf.send.press;
import java.util.List;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import pers.zb.wechat.rpc.api.wxinf.send.pojo.shop.DeliveryTemplate.DeliveryTemplate;
import pers.zb.wechat.rpc.api.wxinf.send.pojo.token.Token;
import pers.zb.wechat.rpc.api.wxinf.send.press.core.HttpClientConnectionManager;
import pers.zb.wechat.rpc.api.wxinf.utils.ConfigManager;
import pers.zb.wechat.rpc.api.wxinf.utils.Constants;
import pers.zb.wechat.rpc.api.wxinf.utils.WXConstants;
/**
* 微信小店邮费模版处理工具类
*/
public class ShopDeliveryTemplateUtil {
private static ConfigManager configManager = ConfigManager.getInstance();
/**
* 增加邮费模版
*
* @param DeliveryTemplate 邮费模版对象
* @param token 微信公众账号的Token对象
* @return String 邮费模板ID
* @throws Exception
*/
public static String addDeliveryTemplate(DeliveryTemplate deliveryTemplate, Token token) throws Exception {
String templateId = "";
String requestUrl = configManager.getConfigValue(Constants.WX_POST_ADD_DELIVERY_TEMPLATE_URL).replace("ACCESS_TOKEN", token.getAccessToken());
String jsonDeliveryTemplate = JSONObject.fromObject(deliveryTemplate).toString();
JSONObject jsonObject = HttpClientConnectionManager.httpsRequest(requestUrl, WXConstants.REQ_METHOD_TYPE_POST, jsonDeliveryTemplate);
try {
if (null != jsonObject) {
String errcode = jsonObject.getString("errcode");
String errmsg = jsonObject.getString("errmsg");
if ("0".equals(errcode) && "success".equals(errmsg)) {
templateId = jsonObject.getString("template_id");
}
}
} catch(Exception e) {
e.printStackTrace();
}
return templateId;
}
/**
* 删除邮费模版
*
* @param templateId 邮费模版ID
* @param token 微信公众账号的Token对象
* @return Boolean 操作是否成功标志
* @throws Exception
*/
public static Boolean deleteDeliveryTemplate(String templateId, Token token) throws Exception {
Boolean ifSuccess = false;
String requestUrl = configManager.getConfigValue(Constants.WX_POST_DELETE_DELIVERY_TEMPLATE_URL).replace("ACCESS_TOKEN", token.getAccessToken());
String jsonMsg = "{\"template_id\": %s}";
jsonMsg = String.format(jsonMsg, templateId);
JSONObject jsonObject = HttpClientConnectionManager.httpsRequest(requestUrl, WXConstants.REQ_METHOD_TYPE_POST, jsonMsg);
try {
if (null != jsonObject) {
String errcode = jsonObject.getString("errcode");
String errmsg = jsonObject.getString("errmsg");
if ("0".equals(errcode) && "success".equals(errmsg)) {
ifSuccess = true;
}
}
} catch(Exception e) {
e.printStackTrace();
}
return ifSuccess;
}
/**
* 修改邮费模版
*
* @param DeliveryTemplate 邮费模版对象
* @param token 微信公众账号的Token对象
* @return Boolean 操作是否成功标志
* @throws Exception
*/
public static Boolean updateDeliveryTemplate(DeliveryTemplate deliveryTemplate, Token token) throws Exception {
Boolean ifSuccess = false;
String requestUrl = configManager.getConfigValue(Constants.WX_POST_ADD_DELIVERY_TEMPLATE_URL).replace("ACCESS_TOKEN", token.getAccessToken());
String jsonDeliveryTemplate = JSONObject.fromObject(deliveryTemplate).toString();
JSONObject jsonObject = HttpClientConnectionManager.httpsRequest(requestUrl, WXConstants.REQ_METHOD_TYPE_POST, jsonDeliveryTemplate);
try {
if (null != jsonObject) {
String errcode = jsonObject.getString("errcode");
String errmsg = jsonObject.getString("errmsg");
if ("0".equals(errcode) && "success".equals(errmsg)) {
ifSuccess = true;
}
}
} catch(Exception e) {
e.printStackTrace();
}
return ifSuccess;
}
/**
* 获取制定ID的邮费模版对象
*
* @param templateId 邮费模版ID
* @param token 微信公众账号的Token对象
* @return DeliveryTemplate 邮费模版对象
* @throws Exception
*/
public static DeliveryTemplate getDeliveryTemplate(String templateId, Token token) throws Exception {
DeliveryTemplate deliveryTemplate = null;
String requestUrl = configManager.getConfigValue(Constants.WX_POST_GET_DELIVERY_TEMPLATE_URL).replace("ACCESS_TOKEN", token.getAccessToken());
String jsonMsg = "{\"template_id\": %s}";
jsonMsg = String.format(jsonMsg, templateId);
JSONObject jsonObject = HttpClientConnectionManager.httpsRequest(requestUrl, WXConstants.REQ_METHOD_TYPE_POST, jsonMsg);
try {
if (null != jsonObject) {
String errcode = jsonObject.getString("errcode");
String errmsg = jsonObject.getString("errmsg");
if ("0".equals(errcode) && "success".equals(errmsg)) {
deliveryTemplate = (DeliveryTemplate)JSONObject.toBean(jsonObject.getJSONObject("template_info"), DeliveryTemplate.class);
}
}
} catch(Exception e) {
e.printStackTrace();
}
return deliveryTemplate;
}
/**
* 获取所有邮费模版
*
* @param token 微信公众账号的Token对象
* @return List<DeliveryTemplate> 邮费模版对象集合
* @throws Exception
*/
@SuppressWarnings({ "deprecation", "unchecked" })
public static List<DeliveryTemplate> findDeliveryTemplate(Token token) throws Exception {
List<DeliveryTemplate> listDeliveryTemplate = null;
String requestUrl = configManager.getConfigValue(Constants.WX_POST_FIND_DELIVERY_TEMPLATE_URL).replace("ACCESS_TOKEN", token.getAccessToken());
JSONObject jsonObject = HttpClientConnectionManager.httpsRequest(requestUrl, WXConstants.REQ_METHOD_TYPE_POST, null);
try {
if (null != jsonObject) {
String errcode = jsonObject.getString("errcode");
String errmsg = jsonObject.getString("errmsg");
if ("0".equals(errcode) && "success".equals(errmsg)) {
listDeliveryTemplate = JSONArray.toList(jsonObject.getJSONArray("templates_info"), DeliveryTemplate.class);
}
}
} catch(Exception e) {
e.printStackTrace();
}
return listDeliveryTemplate;
}
}
|
[
"842324724@qq.com"
] |
842324724@qq.com
|
7842d23f4e0ce71d1a9609bc348a539e351a8392
|
9525b441b7be45dce65f118665bbdd4eb36558a6
|
/app/src/main/java/br/com/alura/agenda/database/AgendaMigrations.java
|
2df994e5eae4eb8e198d40584c0111cca1ffeaf3
|
[] |
no_license
|
gabrieldarlan/agenda_alunos
|
a8ec1b06110284626ec15102848342f48b9ba6e1
|
1e5d6209540c8d9cdff3d0af846281df2187f73c
|
refs/heads/master
| 2022-09-03T21:18:38.308848
| 2020-06-01T20:18:31
| 2020-06-01T20:18:31
| 266,197,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,989
|
java
|
package br.com.alura.agenda.database;
import androidx.annotation.NonNull;
import androidx.room.migration.Migration;
import androidx.sqlite.db.SupportSQLiteDatabase;
import br.com.alura.agenda.model.TipoTelefone;
class AgendaMigrations {
private static final Migration MIGRATION_1_2 = new Migration(1, 2) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase database) {
database.execSQL("ALTER TABLE Aluno ADD COLUMN sobrenome TEXT ");
}
};
private static final Migration MIGRATION_2_3 = new Migration(2, 3) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase database) {
// Criar nova tabela com as informações desejadas
database.execSQL("CREATE TABLE IF NOT EXISTS `Aluno_novo` " +
"(`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," +
" `nome` TEXT, " +
"`telefone` TEXT, " +
"`email` TEXT)");
// Copiar dados da tabela antiga para a nova
database.execSQL("INSERT INTO Aluno_novo (id, nome, telefone, email)" +
"SELECT id, nome, telefone, email FROM Aluno");
// Remover tabela antiga
database.execSQL("DROP TABLE Aluno");
// Renomear a tabela nova com o nome da tabela antiga
database.execSQL("ALTER TABLE Aluno_novo RENAME TO Aluno");
}
};
private static final Migration MIGRATION_3_4 = new Migration(3, 4) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase database) {
database.execSQL("ALTER TABLE Aluno ADD COLUMN momentoDeCadastro INTEGER ");
}
};
private static final Migration MIGRATION_4_5 = new Migration(4, 5) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase database) {
database.execSQL("CREATE TABLE IF NOT EXISTS `Aluno_novo` " +
"(`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, " +
"`nome` TEXT, " +
"`telefoneFixo` TEXT, " +
"`telefoneCelular` TEXT, " +
"`email` TEXT, " +
"`momentoDeCadastro` INTEGER)");
database.execSQL("INSERT INTO Aluno_novo (id, nome, telefoneFixo, email, momentoDeCadastro)" +
"SELECT id, nome, telefone, email,momentoDeCadastro FROM Aluno");
database.execSQL("DROP TABLE Aluno");
database.execSQL("ALTER TABLE Aluno_novo RENAME TO Aluno");
}
};
private static final Migration MIGRATION_5_6 = new Migration(5, 6) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase database) {
database.execSQL("CREATE TABLE IF NOT EXISTS `Aluno_novo` (" +
"`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, " +
"`nome` TEXT, " +
"`email` TEXT, " +
"`momentoDeCadastro` INTEGER)");
database.execSQL("INSERT INTO Aluno_novo (id, nome, email, momentoDeCadastro)" +
"SELECT id, nome, email,momentoDeCadastro FROM Aluno");
database.execSQL("CREATE TABLE IF NOT EXISTS `Telefone` (" +
"`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, " +
"`numero` TEXT, " +
"`alunoId` INTEGER NOT NULL, " +
"`tipo` TEXT)");
database.execSQL("INSERT INTO Telefone (numero, alunoId)" +
"SELECT telefoneFixo, id FROM Aluno");
database.execSQL("UPDATE Telefone SET tipo = ?", new TipoTelefone[]{TipoTelefone.CELULAR});
database.execSQL("DROP TABLE Aluno");
database.execSQL("ALTER TABLE Aluno_novo RENAME TO Aluno");
}
};
static final Migration[] TODAS_MIGRATIONS = {MIGRATION_1_2, MIGRATION_2_3,
MIGRATION_3_4, MIGRATION_4_5, MIGRATION_5_6};
}
|
[
"gabriel.darlan88@gmail.com"
] |
gabriel.darlan88@gmail.com
|
303bd52a93208e270039df06108c0869597230b6
|
bb4dcbb9342cbce21a277944b32d6aa543750f19
|
/src/main/java/org/kapott/hbci/sepa/jaxb/pain_002_003_03/OrganisationIdentificationSchemeName1Choice.java
|
d2ec60b0e2e4a2cceee3debff7213d6750f0f613
|
[] |
no_license
|
lithomas/hbci4java
|
a299e1f62b9cb946d71abe0a4d644d28e5528167
|
8500adaa2d0374ba40be13645404055bd2a2c57d
|
refs/heads/master
| 2021-01-15T10:36:05.962046
| 2015-10-14T18:56:04
| 2015-10-14T18:56:04
| 44,268,240
| 0
| 0
| null | 2015-10-14T18:34:03
| 2015-10-14T18:34:01
| null |
UTF-8
|
Java
| false
| false
| 2,337
|
java
|
package org.kapott.hbci.sepa.jaxb.pain_002_003_03;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>
* Java class for OrganisationIdentificationSchemeName1Choice complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="OrganisationIdentificationSchemeName1Choice">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element name="Cd" type="{urn:iso:std:iso:20022:tech:xsd:pain.002.003.03}ExternalOrganisationIdentification1Code"/>
* <element name="Prtry" type="{urn:iso:std:iso:20022:tech:xsd:pain.002.003.03}Max35Text"/>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrganisationIdentificationSchemeName1Choice", namespace = "urn:iso:std:iso:20022:tech:xsd:pain.002.003.03", propOrder = { "cd", "prtry" })
public class OrganisationIdentificationSchemeName1Choice {
@XmlElement(name = "Cd", namespace = "urn:iso:std:iso:20022:tech:xsd:pain.002.003.03")
protected String cd;
@XmlElement(name = "Prtry", namespace = "urn:iso:std:iso:20022:tech:xsd:pain.002.003.03")
protected String prtry;
/**
* Gets the value of the cd property.
*
* @return possible object is {@link String }
*
*/
public String getCd() {
return cd;
}
/**
* Sets the value of the cd property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setCd(String value) {
this.cd = value;
}
/**
* Gets the value of the prtry property.
*
* @return possible object is {@link String }
*
*/
public String getPrtry() {
return prtry;
}
/**
* Sets the value of the prtry property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setPrtry(String value) {
this.prtry = value;
}
}
|
[
"thomas.linowsky@gmx.net"
] |
thomas.linowsky@gmx.net
|
602e243c94ca4862c49df7b9104d8dd97420ca9a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_3110d546241fb253e40bb29ac8b8f619d3910b85/BlockWoodPressurePlate/5_3110d546241fb253e40bb29ac8b8f619d3910b85_BlockWoodPressurePlate_s.java
|
bb74e1c602c77d0bbd941a2fd9fc70666d2eba36
|
[] |
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,462
|
java
|
package net.mcft.copy.vanilladj.block;
import java.util.List;
import net.mcft.copy.vanilladj.misc.WoodUtils;
import net.minecraft.block.BlockPressurePlate;
import net.minecraft.block.BlockWood;
import net.minecraft.block.EnumMobType;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockWoodPressurePlate extends BlockPressurePlate {
private Icon[] icons;
public BlockWoodPressurePlate(int id) {
super(id, null, Material.wood, EnumMobType.everything);
setHardness(0.5F);
setStepSound(soundWoodFootstep);
setUnlocalizedName("pressurePlate");
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
icons = WoodUtils.registerIcons(iconRegister);
}
@Override
@SideOnly(Side.CLIENT)
public Icon getIcon(int side, int meta) {
return icons[Math.min(meta % 8, icons.length - 1)];
}
@Override
@SideOnly(Side.CLIENT)
public void getSubBlocks(int id, CreativeTabs tabs, List list) {
for (int i = 0; i < BlockWood.woodType.length; i++)
list.add(new ItemStack(id, 1, i));
}
@Override
protected void setStateIfMobInteractsWithPlate(World world, int x, int y, int z, int oldPower) {
int newPower = getPlateState(world, x, y, z);
boolean oldPressed = (oldPower > 0);
boolean newPressed = (newPower > 0);
if (oldPower != newPower) {
int meta = world.getBlockMetadata(x, y, z);
world.setBlockMetadataWithNotify(x, y, z, getMetaFromWeight(newPower, meta), 2);
world.markBlockForRenderUpdate(x, y, z);
func_94354_b_(world, x, y, z);
}
if (!newPressed && oldPressed)
world.playSoundEffect(x + 0.5D, y + 0.1D, z + 0.5D, "random.click", 0.3F, 0.5F);
else if (newPressed && !oldPressed)
world.playSoundEffect(x + 0.5D, y + 0.1D, z + 0.5D, "random.click", 0.3F, 0.6F);
if (newPressed)
world.scheduleBlockUpdate(x, y, z, blockID, tickRate(world));
}
@Override
protected int getPowerSupply(int meta) {
return super.getPowerSupply(meta / 8);
}
protected int getMetaFromWeight(int power, int meta) {
return (meta % 8 | super.getMetaFromWeight(power) * 8);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b9b336a78b7fdcb3ed4cf768de53267c41c3bb4c
|
baba7ae4f32f0e680f084effcd658890183e7710
|
/MutationFramework/muJava/muJavaMutantStructure/Persistence/TobiasSamples/Debug3/int_maxElement(int)/ROR_34/Debug2.java
|
1306a77a1fcdc2b44a1f30ddc31e92c2287aae17
|
[
"Apache-2.0"
] |
permissive
|
TUBS-ISF/MutationAnalysisForDBC-FormaliSE21
|
75972c823c3c358494d2a2e9ec12e0a00e26d771
|
de825bc9e743db851f5ec1c5133dca3f04d20bad
|
refs/heads/main
| 2023-04-22T21:29:28.165271
| 2021-05-17T07:43:22
| 2021-05-17T07:43:22
| 368,096,901
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,295
|
java
|
// This is a mutant program.
// Author : ysma
// Author : ysma
public class Debug2
{
/*@
@ normal_behavior
// @ requires (\exists int q; q >= 0 && q < a.length; a[q]==x) && a.length>0;
@ requires true;
@ ensures \result>=0 ==> a[\result]==x;
@*/
public static int linearSearch( int[] a, int x )
{
int i = a.length - 1;
while (i >= 0 && a[i] != x) {
i = i - 1;
}
return i;
}
/*@
@ normal_behavior
@ requires A.length > 0;
@ ensures (\forall int q; q >= 0 & q < A.length; A[\result]>=A[q]);
@*/
public static int maxElement( int[] A )
{
int i = 0;
int j = 1;
while (j != A.length) {
if (A[j] > A[i]) {
i = j;
} else {
if (true) {
;
}
}
j = j + 1;
}
return i;
}
/*@
@ normal_behavior
@ requires n >= 0 && n<6;
@ ensures \result==Helper.factorial(n);
@*/
public static int fac( int n )
{
int f = 0;
if (n == 0) {
f = 1;
} else {
if (n == 1) {
f = 1;
} else {
if (n >= 2) {
int tmp = ~n - 1;
f = n * Helper.factorial( tmp );
}
}
}
return f;
}
/*@
@ normal_behavior
@ requires A.length > 0 && (\forall int i; i>=0 & i<A.length; A[i] == 0 || A[i] == 1 || A[i] == 2);
@ ensures (\forall int q; q >= 1 && q < \result.length; \result[q-1]<=\result[q]);
@*/
public static int[] DutchFlag( int[] A )
{
int wb = 0;
int wt = 0;
int bb = A.length;
while (wt != bb) {
if (A[wt] == 0) {
int t = A[wt];
A[wt] = A[wb];
A[wb] = t;
wt = wt++ * 1;
wb = wb + 1;
} else {
if (A[wt]) {
wt = wt + 1;
} else {
if (A[wt] == 2) {
int t = A[wt];
A[wt] = A[bb - 1];
A[bb - 1] = t;
bb = bb - 1;
}
}
}
}
return A;
}
}
|
[
"a.knueppel@tu-bs.de"
] |
a.knueppel@tu-bs.de
|
777d0f3cc525ae2912b78694e30b7093e1d364fa
|
eeb83e80f006d44d74620b0a7ea8ec20e877578c
|
/godsoft.test20170401/src/main/java/godsoft/test/curd/comtnemplyrinfo/service/ComtnemplyrinfoDefaultVO.java
|
77e72ea946dd586dbfd85407dcfa2df694a34f1a
|
[] |
no_license
|
LeeBaekHaeng/GodTest2016
|
52bd1c867647acd40a00b5ce4035f718201544fb
|
a080fc963eaaf372ec5fab132b954849090a3225
|
refs/heads/master
| 2022-12-24T21:19:46.464098
| 2020-06-21T12:39:28
| 2020-06-21T12:39:28
| 67,454,036
| 3
| 2
| null | 2022-12-16T04:27:05
| 2016-09-05T22:14:42
|
PLSQL
|
UTF-8
|
Java
| false
| false
| 2,791
|
java
|
package godsoft.test.curd.comtnemplyrinfo.service;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* @Class Name : ComtnemplyrinfoDefaultVO.java
* @Description : Comtnemplyrinfo Default VO class
* @Modification Information
*
* @author 이백행<dlqorgod@naver.com>
* @since 2017-04-01
* @version 1.0
* @see
*
* Copyright (C) All right reserved.
*/
public class ComtnemplyrinfoDefaultVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 검색조건 */
private String searchCondition = "";
/** 검색Keyword */
private String searchKeyword = "";
/** 검색사용여부 */
private String searchUseYn = "";
/** 현재페이지 */
private int pageIndex = 1;
/** 페이지갯수 */
private int pageUnit = 10;
/** 페이지사이즈 */
private int pageSize = 10;
/** firstIndex */
private int firstIndex = 1;
/** lastIndex */
private int lastIndex = 1;
/** recordCountPerPage */
private int recordCountPerPage = 10;
public int getFirstIndex() {
return firstIndex;
}
public void setFirstIndex(int firstIndex) {
this.firstIndex = firstIndex;
}
public int getLastIndex() {
return lastIndex;
}
public void setLastIndex(int lastIndex) {
this.lastIndex = lastIndex;
}
public int getRecordCountPerPage() {
return recordCountPerPage;
}
public void setRecordCountPerPage(int recordCountPerPage) {
this.recordCountPerPage = recordCountPerPage;
}
public String getSearchCondition() {
return searchCondition;
}
public void setSearchCondition(String searchCondition) {
this.searchCondition = searchCondition;
}
public String getSearchKeyword() {
return searchKeyword;
}
public void setSearchKeyword(String searchKeyword) {
this.searchKeyword = searchKeyword;
}
public String getSearchUseYn() {
return searchUseYn;
}
public void setSearchUseYn(String searchUseYn) {
this.searchUseYn = searchUseYn;
}
public int getPageIndex() {
return pageIndex;
}
public void setPageIndex(int pageIndex) {
this.pageIndex = pageIndex;
}
public int getPageUnit() {
return pageUnit;
}
public void setPageUnit(int pageUnit) {
this.pageUnit = pageUnit;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
|
[
"dlqorgod@naver.com"
] |
dlqorgod@naver.com
|
b56ea8578cc4720dc62aeaa714135d9ea76f6fbd
|
080963e5c8f2cf5fd69b8cad789886b205485a23
|
/src/main/java/com/fuhao/controller/base/TblShortcutIconController.java
|
b6601eabe4c17c4086ccbb868723419e9dbce34d
|
[] |
no_license
|
aifujiahao/family_service_platform
|
3ad40b85b48ad5040f16758fef5625ef119620ac
|
1eb7c7c407b1bd5d6506e664eed48f522f7491ca
|
refs/heads/master
| 2022-12-16T17:32:52.781394
| 2020-09-23T13:42:10
| 2020-09-23T13:42:10
| 297,979,932
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 345
|
java
|
package com.fuhao.controller.base;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 快捷方式图标 前端控制器
* </p>
*
* @author hao
* @since 2020-09-21
*/
@Controller
@RequestMapping("/tblShortcutIcon")
public class TblShortcutIconController {
}
|
[
"52033327+aifujiahao@users.noreply.github.com"
] |
52033327+aifujiahao@users.noreply.github.com
|
23b0fd0645de7e1adfa0c6f2e44e4e374407877e
|
799cce351010ca320625a651fb2e5334611d2ebf
|
/Data Set/Synthetic/Before/before_3315.java
|
3f663839f9be8a5281f554f1eeefde203776401f
|
[] |
no_license
|
dareenkf/SQLIFIX
|
239be5e32983e5607787297d334e5a036620e8af
|
6e683aa68b5ec2cfe2a496aef7b467933c6de53e
|
refs/heads/main
| 2023-01-29T06:44:46.737157
| 2020-11-09T18:14:24
| 2020-11-09T18:14:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 247
|
java
|
public class Dummy {
void sendRequest(Connection conn) throws SQLException {
String sql = "SELECT DEPARTMENT_ID, LOCATION_ID FROM DEPARTMENTS WHERE LOCATION_ID >=" + var1;
Statement stmt = conn.createStatement();
stmt.executeQuery(sql);
}
}
|
[
"jahin99@gmail.com"
] |
jahin99@gmail.com
|
5f7df6a6faad73dbf64ef53934fd0b68c486ed71
|
c8688db388a2c5ac494447bac90d44b34fa4132c
|
/sources/com/unity3d/services/core/cache/CacheError.java
|
7ef370f4756165a851e95b27a83fa1cb46c82a37
|
[] |
no_license
|
mred312/apk-source
|
98dacfda41848e508a0c9db2c395fec1ae33afa1
|
d3ca7c46cb8bf701703468ddc88f25ba4fb9d975
|
refs/heads/master
| 2023-03-06T05:53:50.863721
| 2021-02-23T13:34:20
| 2021-02-23T13:34:20
| 341,481,669
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 448
|
java
|
package com.unity3d.services.core.cache;
public enum CacheError {
FILE_IO_ERROR,
FILE_NOT_FOUND,
FILE_ALREADY_CACHING,
NOT_CACHING,
JSON_ERROR,
NO_INTERNET,
MALFORMED_URL,
NETWORK_ERROR,
ILLEGAL_STATE,
INVALID_ARGUMENT,
UNSUPPORTED_ENCODING,
FILE_STATE_WRONG,
CACHE_DIRECTORY_NULL,
CACHE_DIRECTORY_TYPE_NULL,
CACHE_DIRECTORY_EXISTS,
CACHE_DIRECTORY_DOESNT_EXIST,
UNKNOWN_ERROR
}
|
[
"mred312@gmail.com"
] |
mred312@gmail.com
|
3ea69a532ebb3422a19cfd111bc86df1d687420a
|
f081da8f16da9cd23d03659e96925a47ac12f068
|
/src/main/java/BP/Sys/FrmImgAth.java
|
cd7b0abf5b4a0eeefa7dd897bf5a2f16182d021d
|
[] |
no_license
|
konglong123/KFlow
|
df671510d601724d1cb5ee1efd52a172c7915dcf
|
01fc4a782791df8e800b26bdd3f3abc6dd83259b
|
refs/heads/master
| 2023-02-02T15:14:12.531378
| 2020-12-24T11:15:10
| 2020-12-24T11:15:10
| 228,565,169
| 1
| 2
| null | 2020-06-15T07:02:17
| 2019-12-17T08:06:36
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 3,548
|
java
|
package BP.Sys;
import BP.DA.*;
import BP.En.*;
/**
图片附件
*/
public class FrmImgAth extends EntityMyPK
{
/**
名称
*/
public final String getName()
{
return this.GetValStringByKey(FrmImgAthAttr.Name);
}
public final void setName(String value)
{
this.SetValByKey(FrmImgAthAttr.Name, value);
}
/**
控件ID
*/
public final String getCtrlID()
{
return this.GetValStringByKey(FrmImgAthAttr.CtrlID);
}
public final void setCtrlID(String value)
{
this.SetValByKey(FrmImgAthAttr.CtrlID, value);
}
/**
Y
*/
public final float getY()
{
return this.GetValFloatByKey(FrmImgAthAttr.Y);
}
public final void setY(float value)
{
this.SetValByKey(FrmImgAthAttr.Y, value);
}
/**
X
*/
public final float getX()
{
return this.GetValFloatByKey(FrmImgAthAttr.X);
}
public final void setX(float value)
{
this.SetValByKey(FrmImgAthAttr.X, value);
}
/**
H
*/
public final float getH()
{
return this.GetValFloatByKey(FrmImgAthAttr.H);
}
public final void setH(float value)
{
this.SetValByKey(FrmImgAthAttr.H, value);
}
/**
W
*/
public final float getW()
{
return this.GetValFloatByKey(FrmImgAthAttr.W);
}
public final void setW(float value)
{
this.SetValByKey(FrmImgAthAttr.W, value);
}
/**
FK_MapData
*/
public final String getFK_MapData()
{
return this.GetValStrByKey(FrmImgAthAttr.FK_MapData);
}
public final void setFK_MapData(String value)
{
this.SetValByKey(FrmImgAthAttr.FK_MapData, value);
}
/**
是否可编辑
*/
public final boolean getIsEdit()
{
return this.GetValBooleanByKey(FrmImgAthAttr.IsEdit);
}
public final void setIsEdit(boolean value)
{
this.SetValByKey(FrmImgAthAttr.IsEdit, value);
}
/**
是否必填,2016-11-1
*/
public final boolean getIsRequired()
{
return this.GetValBooleanByKey(FrmImgAthAttr.IsRequired);
}
public final void setIsRequired(boolean value)
{
this.SetValByKey(FrmImgAthAttr.IsRequired, value);
}
///#endregion
/**
图片附件
*/
public FrmImgAth()
{
}
/**
图片附件
@param mypk
* @throws Exception
*/
public FrmImgAth(String mypk) throws Exception
{
this.setMyPK(mypk);
this.Retrieve();
}
/**
EnMap
*/
@Override
public Map getEnMap()
{
if (this.get_enMap() != null)
{
return this.get_enMap();
}
Map map = new Map("Sys_FrmImgAth", "图片附件");
map.Java_SetDepositaryOfEntity(Depositary.None);
map.Java_SetDepositaryOfMap(Depositary.Application);
map.Java_SetEnType(EnType.Sys);
map.AddMyPK();
map.AddTBString(FrmImgAthAttr.FK_MapData, null, "表单ID", true, false, 1, 100, 20);
map.AddTBString(FrmImgAthAttr.CtrlID, null, "控件ID", true, false, 0, 200, 20);
map.AddTBString(FrmImgAthAttr.Name, null, "中文名称", true, false, 0, 200, 20);
map.AddTBFloat(FrmImgAthAttr.X, 5, "X", true, false);
map.AddTBFloat(FrmImgAthAttr.Y, 5, "Y", false, false);
map.AddTBFloat(FrmImgAthAttr.H, 200, "H", true, false);
map.AddTBFloat(FrmImgAthAttr.W, 160, "W", false, false);
map.AddTBInt(FrmImgAthAttr.IsEdit, 1, "是否可编辑", true, true);
map.AddTBInt(FrmImgAthAttr.IsRequired, 0, "是否必填项", true, true);
map.AddTBString(FrmBtnAttr.GUID, null, "GUID", true, false, 0, 128, 20);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
@Override
protected boolean beforeUpdateInsertAction() throws Exception
{
this.setMyPK(this.getFK_MapData() +"_"+ this.getCtrlID());
return super.beforeUpdateInsertAction();
}
}
|
[
"17888821571@163.com"
] |
17888821571@163.com
|
2d1fec58f01298564a504d42ba64b1783286b615
|
9568042cd8a05697c4175e58dd3c327922000967
|
/model/io/src/main/java/net/untoldwind/moredread/model/io/spi/IModelWriter.java
|
11c5603702ae8b4878ce4509aa773a315ffcb5da
|
[] |
no_license
|
omni360/moredread
|
c6f447dd1b3bd6b96b4868ef98e33957cd218101
|
2b5cafb1eb0f7db80efa2c787263c791eaafef71
|
refs/heads/master
| 2020-12-24T16:41:18.215717
| 2011-10-03T14:19:30
| 2011-10-03T14:19:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 260
|
java
|
package net.untoldwind.moredread.model.io.spi;
import java.io.IOException;
import java.io.OutputStream;
import net.untoldwind.moredread.model.scene.Scene;
public interface IModelWriter {
void writeScene(Scene scene, OutputStream out) throws IOException;
}
|
[
"landru@untoldwind.net"
] |
landru@untoldwind.net
|
4106e6181e21f486a8fc57501c5fa70cc2712a0a
|
9687d6e6fc7a1a59f5a769d0bf1696484d5cd879
|
/car-service-api/account/account-client/src/main/java/com/car/account/client/request/message/MessageReq.java
|
92a52433baa5cc0aad7961aafcbd70047355fe7b
|
[] |
no_license
|
willpyshan13/CarStore2.0
|
15fa662d5a8ca4a76c9e9d205dd1640d42e30e53
|
e8b85b7b3145bcc10cdccdf4779300846bce6026
|
refs/heads/main
| 2023-08-14T14:03:35.196407
| 2021-09-14T06:08:56
| 2021-09-14T06:08:56
| 385,832,432
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,121
|
java
|
package com.car.account.client.request.message;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel
public class MessageReq {
@ApiModelProperty("")
private String uuid ;
@ApiModelProperty("内容")
private String content ;
@ApiModelProperty("推送内容")
private String pushMessageContent ;
@ApiModelProperty("消息类型 1工位通知,2发现消息,3现场支持,4商城消息,5钱包消息,6账户信息,7 共享技师")
private Integer type;
@ApiModelProperty("用户uuid")
private String technicianUuid ;
@ApiModelProperty("客户类型 ")
private Integer clientType ;
@ApiModelProperty("是否已读 1:未读 2:已读")
private Integer status ;
@ApiModelProperty("创建时间")
private Date createdTime ;
@ApiModelProperty("修改时间")
private Date lastUpdatedTime ;
@ApiModelProperty("创建人")
private String createdBy ;
@ApiModelProperty("修改人")
private String lastUpdatedBy ;
}
|
[
"545512533@qq.com"
] |
545512533@qq.com
|
feb03cec021af9fafb33a120b72b07e979291435
|
da05545116159da4de2ff6e7595bb3cae493e68c
|
/SpringCloudProject13/Zuul/src/main/java/com/lei/ZuulApplication.java
|
79f65e2f01b96b68deb4d3db3494abd972cc99df
|
[] |
no_license
|
supergirl1234/Spring-frame
|
ca9c02c30cb1c2871426930c70d7847455d4c3a3
|
821e73bb9a445d010ca44721ab13be748da8bc5c
|
refs/heads/master
| 2022-12-21T03:21:50.776875
| 2020-01-06T12:39:24
| 2020-01-06T12:39:24
| 221,728,957
| 0
| 0
| null | 2022-12-16T05:04:53
| 2019-11-14T15:27:43
|
Java
|
UTF-8
|
Java
| false
| false
| 458
|
java
|
package com.lei;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
@EnableZuulProxy
@EnableAutoConfiguration
public class ZuulApplication {
public static void main(String[] args) {
SpringApplication.run(ZuulApplication.class,args);
}
}
|
[
"2547462712@qq.com"
] |
2547462712@qq.com
|
f080aee33569a1636cb40eacf1ae931e4c481abf
|
a0f87d8b84719f88c7606d693dba669085d5bd78
|
/MadRobot/src/com/madrobot/di/json/annotation/ItemType.java
|
cd9e994fff58d07145c479cce00da09349f5922a
|
[] |
no_license
|
eltonkent/mad-robot
|
82cded6749ab21faed59456e3d3b6fdbd59a5367
|
1865c633bcf8b5630765d9cad90eed06435a3153
|
refs/heads/master
| 2021-01-10T12:36:45.311415
| 2015-11-28T22:08:36
| 2015-11-28T22:08:36
| 46,443,335
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,537
|
java
|
/*******************************************************************************
* Copyright (c) 2012 MadRobot.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* Elton Kent - initial API and implementation
******************************************************************************/
package com.madrobot.di.json.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.madrobot.di.json.JSONDeserializer;
import com.madrobot.di.json.JSONSerializer;
/**
* Annotation to specify the item type when the field is a collection. <br/>
* See {@link JSONDeserializer} {@link JSONSerializer} for usage
*
* @see {@link JSONDeserializer}, {@link JSONSerializer}
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD })
public @interface ItemType {
/**
* Decision to json should hold empty array or not
*
* @see JSONSerializer
*
* @return decision
*/
boolean canEmpty() default true;
/**
*
* Represent the size of the collection
*
* @return size of the collection
*/
int size() default JSONDeserializer.DEFAULT_ITEM_COLLECTION_SIZE;
/**
* Represent the item type
*
* @return item type
*/
Class<?> value();
}
|
[
"eltonkent@gmail.com"
] |
eltonkent@gmail.com
|
5aeea98b601fdc73b4f03739d4159f3e217b4afe
|
f0909dc8235dd36472733dcc28f62ce01892c57e
|
/data-center/src/main/java/com/slzh/service/SysLoginService.java
|
0da46c6f1d17e60dd58cf9d3c5224ace3ce4b162
|
[] |
no_license
|
rrong777/data-center-parent
|
b35503133c5098ecdad9950c460d6dffb4c461a3
|
fb41dda1e8ca505d71ba0bcd643f7fdef441b6a8
|
refs/heads/main
| 2023-07-01T06:55:53.834432
| 2021-08-02T09:18:54
| 2021-08-02T09:18:54
| 390,920,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 615
|
java
|
package com.slzh.service;
import com.slzh.config.security.JwtAuthenticatioToken;
import com.slzh.model.LoginBean;
import com.slzh.model.SysUser;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public interface SysLoginService {
SysUser login(LoginBean loginBean, HttpServletRequest request) throws Exception;
void captcha(HttpServletResponse response, HttpServletRequest request, String uuid) throws IOException;
JwtAuthenticatioToken changeLogin(String userName, HttpServletRequest request);
SysUser refreshToken();
}
|
[
"wql789@qq.com"
] |
wql789@qq.com
|
037860e9cad3f6bfded3729b95e49af8e1ea13cd
|
f72971fbab14458776400d240216442d8a46cbe1
|
/modules/common/src/main/java/wsimport/lib/sabre/passengerdetails/TransformsType.java
|
d2ecbb2e8d46468bc07df15e6bc23da4aaaeb399
|
[] |
no_license
|
hamzzy/Amadeus-Sabre-Java-Multi-GDS-SDK
|
cea5ee9f3be520bfbf509d5207adcc7c0f4ec4b8
|
a21e706c17b85d99e1ef573f66c88efa9e2918fe
|
refs/heads/master
| 2022-11-05T16:49:24.067050
| 2020-06-28T03:59:13
| 2020-06-28T03:59:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,943
|
java
|
package wsimport.lib.sabre.passengerdetails;
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.XmlType;
/**
* <p>Java class for TransformsType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TransformsType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.w3.org/2000/09/xmldsig#}Transform" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = {
"transform"
})
public class TransformsType {
@XmlElement(name = "Transform", required = true)
protected List<TransformType> transform;
/**
* Gets the value of the transform 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 transform property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTransform().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TransformType }
*
*
*/
public List<TransformType> getTransform() {
if (transform == null) {
transform = new ArrayList<TransformType>();
}
return this.transform;
}
}
|
[
"info@brakket.tech"
] |
info@brakket.tech
|
8041a3f693e189e6ae71035f8044961a6b801e8d
|
c43d8f1446e0dd6791b8f35848f987112c4a7d46
|
/src/utility/Digraph.java
|
59ab764713933e494baba7679c789bb0e66aa8dc
|
[] |
no_license
|
khatwaniNikhil/Data-Structures-In-Java
|
4a49718221086097ab8d1c6d60db7b3775469603
|
01b9306c2847d87683d10db796a1eb1e05c98320
|
refs/heads/master
| 2021-01-12T20:05:37.968249
| 2016-05-17T16:11:04
| 2016-05-17T16:11:04
| 58,610,328
| 0
| 0
| null | 2016-05-12T05:25:22
| 2016-05-12T05:25:22
| null |
UTF-8
|
Java
| false
| false
| 2,222
|
java
|
package utility;
/**
* Created by poorvank.b on 09/05/16.
*/
public class Digraph {
private static final String NEWLINE = System.getProperty("line.separator");
private final int vertexCount;
private int edgeCount;
private Bag<Integer>[] adj;
private int[] inDegree;
@SuppressWarnings("unchecked")
public Digraph(int vertexCount) {
if(vertexCount<0) {
throw new IllegalArgumentException("vertex count cannot be negative");
}
this.vertexCount = vertexCount;
this.edgeCount = 0;
inDegree = new int[vertexCount];
adj = (Bag<Integer>[]) new Bag[vertexCount];
for (int v=0;v<vertexCount;v++) {
adj[v] = new Bag<>();
}
}
public int getVertexCount() {
return vertexCount;
}
public int getEdgeCount() {
return edgeCount;
}
public Iterable<Integer> getAdj(int v) {
validate(v);
return adj[v];
}
private void validate(int v) {
if(v<0 || v>vertexCount) {
throw new IndexOutOfBoundsException("vertex " + v + " is not between 0 and " + (vertexCount - 1));
}
}
public void addEdge(int v,int w) {
validate(v);
validate(w);
adj[v].addToBag(w);
inDegree[w]++;
edgeCount++;
}
public int degree(int v) {
validate(v);
return inDegree[v];
}
public int outDegree(int v) {
validate(v);
return adj[v].getSize();
}
public Digraph reverse() {
Digraph reverseDigraph = new Digraph(vertexCount);
for (int i=0;i<vertexCount;i++) {
for (Integer w : adj[i]) {
reverseDigraph.addEdge(w,i);
}
}
return reverseDigraph;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Vertices = " + vertexCount + " edges = " + edgeCount + "\n");
for (int v = 0; v < vertexCount; v++) {
sb.append(v).append(" : ");
for (int adjV : adj[v]) {
sb.append(adjV).append(" ");
}
sb.append(NEWLINE);
}
return sb.toString();
}
}
|
[
"puravbhatia9@gmail.com"
] |
puravbhatia9@gmail.com
|
feea548f228efb7e5d10c6eb9b4e67b4a2f0e762
|
4ee8e881a2f950a5a6e7e3d48ec4c4c815809d4a
|
/NtAj48/LoginWrapperApp/src/com/nt/filter/LoginFilter.java
|
bee8cbc4f65bfe20415cf95eb95facd94709fbde
|
[] |
no_license
|
aakulasaikiran/AdvanceJava_Sathishguptha_MyWorkspace
|
4b2120e279ee87f8223cbfdb489ed836cb0c24ed
|
9ef665848e6cd67c63af3f708227f68741e6bd78
|
refs/heads/master
| 2020-03-23T17:57:51.305123
| 2018-07-22T09:44:55
| 2018-07-22T09:44:55
| 141,883,101
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,220
|
java
|
package com.nt.filter;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.nt.wrappers.MyRequest;
import com.nt.wrappers.MyResponse;
@WebFilter("/loginurl")
public class LoginFilter implements Filter{
@Override
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
throws IOException, ServletException {
MyRequest mreq=null;
MyResponse mres=null;
String output=null;
PrintWriter pw=null;
//create Custom Request obj
mreq=new MyRequest(((HttpServletRequest)req));
mres=new MyResponse(((HttpServletResponse)res));
//delegate request
chain.doFilter(mreq,mres);
//get response content
output=mres.toString();
//modify output
output=output+"<br> Naresh IT,Ameerpet";
//write modified output to orginal response obj to write to browser
pw=res.getWriter();
pw.println(output);
//close stream
pw.close();
}//doFilter(-,-,-)
}
|
[
"aakulasaikiran@gmail.com"
] |
aakulasaikiran@gmail.com
|
05bbfa48dec8f1ad4a53fe56019314b4a760c51f
|
f2f0e98d242baf79fda5778328ae40a583582bdb
|
/400_xowa/xtn/gplx/xowa/Xowa_main.java
|
dfc56db04f2ec5d84f46eaced507687027f35bf8
|
[] |
no_license
|
ATCARES/xowa
|
0ca09f7aa08f400713f9d298bc9843b96e000a0c
|
5957bd0cb0de1dbfafae1aef9055846713a5e521
|
refs/heads/master
| 2021-01-15T14:41:57.565426
| 2014-04-14T03:28:27
| 2014-04-14T03:28:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,306
|
java
|
/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012 gnosygnu@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package gplx.xowa;
import gplx.ByteAry_;
import gplx.Byte_;
import gplx.String_;
public class Xowa_main {
public static void main(String[] args) {
gplx.xowa.Xoa_app_.Run(args);
// String s = gplx.String_.Concat_lines_nl_skipLast
//// ( "function A()"
//// , " return string.len('𐇡')"
//// , "end"
//// , "print(A())"
//// );
// ("print(string.len('𐑓'))");
// org.luaj.vm2.Globals globals = org.luaj.vm2.lib.jse.JsePlatform.standardGlobals();
// org.luaj.vm2.LuaValue chunk = globals.load(s);
// chunk.call();
// System.out.println(d);
}
}
|
[
"gnosygnu@gmail.com"
] |
gnosygnu@gmail.com
|
4d53ab7607c84d5488a8035b21fedf5a66fd7a51
|
a4a51084cfb715c7076c810520542af38a854868
|
/src/main/java/com/google/zxing/f/u.java
|
b5928b081705bc372549e401b5814179d3a24937
|
[] |
no_license
|
BharathPalanivelu/repotest
|
ddaf56a94eb52867408e0e769f35bef2d815da72
|
f78ae38738d2ba6c9b9b4049f3092188fabb5b59
|
refs/heads/master
| 2020-09-30T18:55:04.802341
| 2019-12-02T10:52:08
| 2019-12-02T10:52:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 710
|
java
|
package com.google.zxing.f;
public final class u extends k {
/* renamed from: a reason: collision with root package name */
private final String f14745a;
/* renamed from: b reason: collision with root package name */
private final String f14746b;
/* renamed from: c reason: collision with root package name */
private final String f14747c;
public u(String str, String str2, String str3) {
super(l.TEL);
this.f14745a = str;
this.f14746b = str2;
this.f14747c = str3;
}
public String a() {
StringBuilder sb = new StringBuilder(20);
a(this.f14745a, sb);
a(this.f14747c, sb);
return sb.toString();
}
}
|
[
"noiz354@gmail.com"
] |
noiz354@gmail.com
|
a2043588e3aff630821a763210a29db1f41ce016
|
29980b09a34bba2f53cfbe2101cfd1c67bca9a89
|
/src/main/java/com/yt/app/api/v1/service/impl/CustomerserviceitemsServiceImpl.java
|
5714d5f2c8aaba5674524da92290a914fcb29298
|
[] |
no_license
|
mzjzhaojun/dfgj
|
0abd60d026467a02d942de46f0bbf257d8af7991
|
74fa9632cfddcd2ed6af43a5f16cb1e2b5d59be9
|
refs/heads/master
| 2021-01-19T23:22:14.397805
| 2017-05-27T07:33:21
| 2017-05-27T07:33:21
| 88,966,753
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,702
|
java
|
package com.yt.app.api.v1.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.http.RequestEntity;
import org.springframework.stereotype.Service;
import com.yt.app.api.v1.mapper.CustomerserviceitemsMapper;
import com.yt.app.api.v1.service.CustomerserviceitemsService;
import com.yt.app.common.base.impl.BaseServiceImpl;
import com.yt.app.api.v1.entity.Customerserviceitems;
import com.yt.app.frame.m.IPage;
import com.yt.app.frame.m.PageBean;
import com.yt.app.frame.p.RequestUtil;
import java.util.List;
import java.util.Map;
/**
* @author zj default
*
* @version v1
* @createdate 2017-04-27 19:22:19
*/
@Service
public class CustomerserviceitemsServiceImpl extends BaseServiceImpl<Customerserviceitems, Long> implements CustomerserviceitemsService {
@Autowired
private CustomerserviceitemsMapper mapper;
@Override
@Transactional
public Integer post(Customerserviceitems t) {
Integer i = mapper.post(t);
return i;
}
@SuppressWarnings("unchecked")
@Override
public IPage<Customerserviceitems> list(RequestEntity<Object> requestEntity) {
Map<String, Object> param = RequestUtil.requestEntityToParamMap(requestEntity);
int count = 0;
if (PageBean.isPaging(param)) {
count = mapper.countlist(param);
if (count == 0) {
return PageBean.EMPTY_PAGE;
}
}
List<Customerserviceitems> list = mapper.list(param);
return new PageBean<Customerserviceitems>(param, list, count);
}
@Override
public Customerserviceitems get(Long id) {
Customerserviceitems t = mapper.get(id);
return t;
}
}
|
[
"mzjzhaojun@163.com"
] |
mzjzhaojun@163.com
|
54cc7dcff9bebba9a8cbbe3af794b53c6bf1a8ef
|
0bfd35893ec68c908ed928551ce0839ed36d78ac
|
/work/db/kfs-db/db-impex/impex/src/org/kuali/core/db/torque/KualiDatabase.java
|
38142bd638a936b66769d47d02633c26099a6dcf
|
[] |
no_license
|
dazali/kfs_dataobject_restservice
|
06f8464f65f6c232828f337dc2aabbfe8298f240
|
434272c1f58564802e59f1038e5239324fe14cfa
|
refs/heads/master
| 2020-12-25T10:36:35.663227
| 2014-07-28T19:07:28
| 2014-07-28T19:07:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,777
|
java
|
package org.kuali.core.db.torque;
/*
* 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.
*/
import java.util.ArrayList;
import java.util.List;
import org.apache.torque.engine.database.model.Database;
import org.xml.sax.Attributes;
/**
* A class for holding application data structures.
*
* @author <a href="mailto:leon@opticode.co.za>Leon Messerschmidt</a>
* @author <a href="mailto:jmcnally@collab.net>John McNally</a>
* @author <a href="mailto:mpoeschl@marmot.at>Martin Poeschl</a>
* @author <a href="mailto:dlr@collab.net>Daniel Rall</a>
* @author <a href="mailto:byron_foster@byron_foster@yahoo.com>Byron Foster</a>
* @author <a href="mailto:monroe@dukece.com>Greg Monroe</a>
* @version $Id: KualiDatabase.java,v 1.1 2007-10-21 07:57:26 abyrne Exp $
*/
public class KualiDatabase extends Database
{
/** Logging class from commons.logging */
//private static Log log = LogFactory.getLog(KualiDatabase.class);
private ArrayList<View> views = new ArrayList<View>();
private ArrayList<Sequence> sequences = new ArrayList<Sequence>();
/**
* Creates a new instance for the specified database type.
*
* @param databaseType The default type for this database.
*/
public KualiDatabase(String databaseType) {
super(databaseType);
}
public List<View> getViews() {
return views;
}
public List<Sequence> getSequences() {
return sequences;
}
public View addView( Attributes attrib ) {
View view = new View();
view.setName( attrib.getValue( "name" ) );
view.setDefinition( attrib.getValue( "viewdefinition" ) );
views.add( view );
return view;
}
public Sequence addSequence( Attributes attrib ) {
Sequence sequence = new Sequence();
sequence.setName( attrib.getValue( "name" ) );
sequence.setNextVal( attrib.getValue( "nextval" ) );
sequences.add( sequence );
return sequence;
}
}
|
[
"dazali@8e488046-810e-0410-995a-d32c8891de31"
] |
dazali@8e488046-810e-0410-995a-d32c8891de31
|
9f32bf87b6365c3fb59d7f278c0ea79d8e378cba
|
a6ced35a9665b2788e7616f3305f6c78588196f9
|
/I314C_Design_Patterns/Revision/Seance03_AbstractFactory/src/MagasinDeLivre.java
|
38c33ac15a4e7c9d22b873bf9b4f9c71bbee0f01
|
[] |
no_license
|
imran1007/3BIN
|
b923df95dc528712ae28c8e78bc354f1c5ac1a8f
|
5b686e24ed98778250ae07344f9473f1c35423b1
|
refs/heads/master
| 2020-04-17T04:46:33.824533
| 2018-01-25T15:15:44
| 2018-01-25T15:15:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 300
|
java
|
import java.util.HashMap;
import java.util.Map;
public class MagasinDeLivre {
private Map<String,Livre> etagere= new HashMap<String,Livre>();
public void ajouterLivre(Livre livre){
etagere.put(livre.getName(),livre);
}
public Livre retourneLivre(String name){
return etagere.get(name);
}
}
|
[
"sacre.christopher@hotmail.com"
] |
sacre.christopher@hotmail.com
|
c67d4af678623be6277fc2ccba72912041763ddf
|
4c5315e79e9087adf6bc26196ce1187d9e9791e7
|
/gwt4ext/src/com/ait/ext4j/client/ui/ToolBarText.java
|
33a40a398ac1c0d449c3eb880fc867e9343799d2
|
[] |
no_license
|
thiagoteixeira/ext4j
|
3082fc31ee00a7158c430cd1a616ef228b997cdd
|
ee8b691191454875f9457d376c72fd39a335145a
|
refs/heads/master
| 2021-01-18T11:09:22.759423
| 2014-02-22T21:34:21
| 2014-02-22T21:34:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,204
|
java
|
/**
* Ext4j UI Library Copyright 2014, Alain Ekambi, and individual contributors as
* indicated by the @authors tag. See the copyright.txt in the distribution for
* a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.ait.ext4j.client.ui;
import com.ait.ext4j.client.core.Component;
import com.google.gwt.core.client.JavaScriptObject;
/**
* A simple class that renders text directly into a toolbar.
*/
public class ToolBarText extends Component {
private static JavaScriptObject configPrototype;
private native void init()/*-{
var c = new $wnd.Ext.toolbar.TextItem();
@com.ait.ext4j.client.ui.ToolBarText::configPrototype = c.initialConfig;
}-*/;
protected JavaScriptObject getConfigPrototype() {
return configPrototype;
}
public ToolBarText() {
}
public ToolBarText(JavaScriptObject jsObj) {
super(jsObj);
}
public ToolBarText(String text) {
this();
this.setText(text);
}
public String getXType() {
return "tbtext";
}
@Override
protected native JavaScriptObject create(JavaScriptObject config) /*-{
return new $wnd.Ext.toolbar.TextItem(config);
}-*/;
/**
* Updates this item's text, setting the text to be used as innerHTML.
*/
public native void setText(String value)/*-{
var component = this.@com.ait.ext4j.client.core.Component::getOrCreateJsObj()();
component.setText(value);
}-*/;
public static ToolBarText cast(Component component) {
return new ToolBarText(component.getOrCreateJsObj());
}
}
|
[
"jazzmatadazz@gmail.com"
] |
jazzmatadazz@gmail.com
|
fc3e795c4c7565eaf17cc89cb3531b155e79660e
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/JetBrains--intellij-community/f15c28c244fdb87545ddb92e568c1af219767458/after/TestClassBrowser.java
|
0bae2c95dbb4d9c7d55308f1b0281554a1f15556
|
[] |
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
| 4,000
|
java
|
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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.theoryinpractice.testng.configuration.browser;
import com.intellij.execution.JavaExecutionUtil;
import com.intellij.execution.configuration.BrowseModuleValueActionListener;
import com.intellij.ide.util.ClassFilter;
import com.intellij.ide.util.TreeClassChooser;
import com.intellij.ide.util.TreeClassChooserFactory;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.ex.MessagesEx;
import com.intellij.psi.PsiClass;
import com.intellij.psi.search.GlobalSearchScope;
import com.theoryinpractice.testng.MessageInfoException;
import com.theoryinpractice.testng.configuration.TestNGConfiguration;
import com.theoryinpractice.testng.configuration.TestNGConfigurationEditor;
import com.theoryinpractice.testng.configuration.TestNGConfigurationType;
import com.theoryinpractice.testng.model.TestClassFilter;
/**
* @author Hani Suleiman Date: Jul 20, 2005 Time: 2:02:00 PM
*/
public class TestClassBrowser extends BrowseModuleValueActionListener
{
protected TestNGConfigurationEditor editor;
public TestClassBrowser(Project project, TestNGConfigurationEditor editor) {
super(project);
this.editor = editor;
}
@Override
protected String showDialog() {
ClassFilter.ClassFilterWithScope filter;
try {
filter = getFilter();
}
catch (MessageInfoException e) {
MessagesEx.MessageInfo message = e.getMessageInfo();
message.showNow();
return null;
}
TreeClassChooser chooser = TreeClassChooserFactory.getInstance(getProject()).createWithInnerClassesScopeChooser("Choose Test Class", filter.getScope(), filter, null);
init(chooser);
chooser.showDialog();
PsiClass psiclass = chooser.getSelected();
if (psiclass == null) {
return null;
} else {
onClassChoosen(psiclass);
return JavaExecutionUtil.getRuntimeQualifiedName(psiclass);
}
}
protected void onClassChoosen(PsiClass psiClass) {
}
protected PsiClass findClass(String className) {
return editor.getModuleSelector().findClass(className);
}
protected ClassFilter.ClassFilterWithScope getFilter() throws MessageInfoException {
TestNGConfiguration config = new TestNGConfiguration("<no-name>", getProject(), TestNGConfigurationType.getInstance().getConfigurationFactories()[0]);
editor.applyEditorTo(config);
GlobalSearchScope scope = getSearchScope(config.getModules());
if (scope == null) {
throw new MessageInfoException(new MessagesEx.MessageInfo(getProject(), "No classes found in project", "Can't Browse Tests"));
}
return new TestClassFilter(scope, getProject(), false);
}
protected GlobalSearchScope getSearchScope(Module[] modules) {
if (modules == null || modules.length == 0) return null;
GlobalSearchScope scope = GlobalSearchScope.moduleWithDependenciesScope(modules[0]);
for (int i = 1; i < modules.length; i++) {
scope.uniteWith(GlobalSearchScope.moduleWithDependenciesScope(modules[i]));
}
return scope;
}
private void init(TreeClassChooser chooser) {
String s = getText();
PsiClass psiclass = findClass(s);
if (psiclass == null)
return;
com.intellij.psi.PsiDirectory psidirectory = psiclass.getContainingFile().getContainingDirectory();
if (psidirectory != null)
chooser.selectDirectory(psidirectory);
chooser.select(psiclass);
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
c30f8e2af9a7687e5ad2b5a94c91c87d40c6e70d
|
ded956de6b4201cc1b1ac0e5c3ae660ebe9e4e12
|
/crs-system-master/crs-core/src/main/java/ru/masterdm/crs/util/annotation/Audit.java
|
64c1677e2cc8f0aa896822d2de6419b477f97356
|
[] |
no_license
|
ildar66/java-zk-dataVault-myBatis-crs
|
14cd61a6043192c5b3093aa3e04a84ca8b14d342
|
0f74a6108f56499c5e0a8e1d6b4c168043c984d0
|
refs/heads/master
| 2021-05-02T13:11:12.251039
| 2018-02-08T13:14:04
| 2018-02-08T13:14:04
| 120,754,241
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 527
|
java
|
package ru.masterdm.crs.util.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import ru.masterdm.crs.domain.AuditAction;
/**
* Audit marker annotation.
* @author Kuzmin Mikhail
* @author Alexey Chalov
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Audit {
/**
* Returns audit action.
* @return audit action
*/
AuditAction action();
}
|
[
"ildar66@inbox.ru"
] |
ildar66@inbox.ru
|
8120439af767c925ae87b1814c749266f86857f8
|
361039fc8d2bf1ead569b4daf938870f5f5a833d
|
/src/org/springmvc/controller/StudentAdmissionController.java
|
1ed81111542df57a20bceb737912858dcb65096a
|
[] |
no_license
|
harshamachanapally/SpringMVCProject
|
63d61a1be832625826c93b4c4acf502c827511d9
|
3f66fc1bd88bfb9fa588655374117066de8d24fa
|
refs/heads/master
| 2021-01-19T13:20:29.871067
| 2017-02-18T18:13:23
| 2017-02-18T18:13:23
| 82,406,099
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,764
|
java
|
package org.springmvc.controller;
import java.util.ArrayList;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomCollectionEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springmvc.service.ServiceLayer;
@Controller
public class StudentAdmissionController {
@Autowired
ServiceLayer service;
@InitBinder
public void initBinder(WebDataBinder binder){
binder.registerCustomEditor(ArrayList.class,"studentSkill",new CustomCollectionEditor(ArrayList.class)
{
@Override
public Object convertElement(Object element){
Skill S1 = new Skill();
if (element != null && element instanceof String){
String element1 = element.toString();
S1 = service.getSkill(element1);
}
return S1;
}
});
}
@RequestMapping(value="/admissionForm.html", method = RequestMethod.GET)
public ModelAndView getAdmissionform() throws Exception{
ModelAndView modelandview = new ModelAndView("AdmissionForm");
return modelandview;
}
@ModelAttribute
public void addCommonObjects(Model model){
model.addAttribute("headermessage","ABCD Engg college");
}
@RequestMapping(value="/AdmissionFormSubmission.html", method = RequestMethod.POST)
public ModelAndView submitAdmissionform(@Valid @ModelAttribute("student") Student student,BindingResult result )
{
if(result.hasErrors())
{
ModelAndView modelandview = new ModelAndView("AdmissionForm");
return modelandview;
}
boolean result1 = service.studentcheck(student);
String message = "Student already exit!!";
if(result1){
ArrayList<Address> L = (ArrayList<Address>) service.checkAddress(student.getStudentAddress());
if(L.isEmpty())
service.addAddress(student.getStudentAddress());
else{
student.setStudentAddress(L.get(0));
}
service.addstudent(student);
message = "Student added!!";
}
ModelAndView model = new ModelAndView("AdmissionFormSubmission");
//Student student = new Student();
model.addObject("student",student);
//model.addObject("message", message);
return model;
}
}
|
[
"hrshchaitanya@gmail.com"
] |
hrshchaitanya@gmail.com
|
380a0f28923f9c52a20b8714a06a48333adefedc
|
f08256664e46e5ac1466f5c67dadce9e19b4e173
|
/sources/com/bamtech/sdk4/internal/media/drm/DefaultWidevineDrmProvider$getWidevineProvisioningLink$1.java
|
7d4b85375cfb02a02259f655bc35848028622ccd
|
[] |
no_license
|
IOIIIO/DisneyPlusSource
|
5f981420df36bfbc3313756ffc7872d84246488d
|
658947960bd71c0582324f045a400ae6c3147cc3
|
refs/heads/master
| 2020-09-30T22:33:43.011489
| 2019-12-11T22:27:58
| 2019-12-11T22:27:58
| 227,382,471
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,242
|
java
|
package com.bamtech.sdk4.internal.media.drm;
import com.bamtech.sdk4.internal.configuration.Services;
import com.bamtech.sdk4.internal.configuration.TelemetryServiceConfiguration;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.C12881k;
@Metadata(mo31005bv = {1, 0, 3}, mo31006d1 = {"\u0000\f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n¢\u0006\u0002\b\u0003"}, mo31007d2 = {"<anonymous>", "Lcom/bamtech/sdk4/internal/configuration/TelemetryServiceConfiguration;", "Lcom/bamtech/sdk4/internal/configuration/Services;", "invoke"}, mo31008k = 3, mo31009mv = {1, 1, 15})
/* compiled from: DefaultWidevineDrmProvider.kt */
final class DefaultWidevineDrmProvider$getWidevineProvisioningLink$1 extends C12881k implements Function1<Services, TelemetryServiceConfiguration> {
public static final DefaultWidevineDrmProvider$getWidevineProvisioningLink$1 INSTANCE = new DefaultWidevineDrmProvider$getWidevineProvisioningLink$1();
DefaultWidevineDrmProvider$getWidevineProvisioningLink$1() {
super(1);
}
public final TelemetryServiceConfiguration invoke(Services services) {
return services.getTelemetry();
}
}
|
[
"101110@vivaldi.net"
] |
101110@vivaldi.net
|
802e73c80f657be78d0108036b1bef131fc0c699
|
034416becb36f4a9922053daf5f1175349a2843f
|
/mmall-member/mmall-member-api/src/main/java/com/xyl/mmall/member/dto/RoleDTO.java
|
277371b4846be09065a43424708ccd3a8327ff52
|
[] |
no_license
|
timgle/utilcode
|
40ee8d05e96ac324f452fccb412e07b4465e5345
|
a8c81c90ec1965d45589dd7be8d2c8b0991a6b6a
|
refs/heads/master
| 2021-05-09T22:39:11.417003
| 2016-03-20T14:30:52
| 2016-03-20T14:30:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,232
|
java
|
/**
*
*/
package com.xyl.mmall.member.dto;
import java.util.List;
import com.netease.print.daojar.util.ReflectUtil;
import com.xyl.mmall.member.meta.AgentArea;
import com.xyl.mmall.member.meta.Role;
/**
* @author lihui
*
*/
public class RoleDTO extends Role {
private static final long serialVersionUID = 1L;
private List<PermissionDTO> permissionList;
private List<Long> siteList;
private List<AgentArea> areaList;
public RoleDTO() {
}
public RoleDTO(Role obj) {
ReflectUtil.convertObj(this, obj, false);
}
/**
* @return the permissionList
*/
public List<PermissionDTO> getPermissionList() {
return permissionList;
}
/**
* @param permissionList
* the permissionList to set
*/
public void setPermissionList(List<PermissionDTO> permissionList) {
this.permissionList = permissionList;
}
/**
* @return the siteList
*/
public List<Long> getSiteList() {
return siteList;
}
/**
* @param siteList
* the siteList to set
*/
public void setSiteList(List<Long> siteList) {
this.siteList = siteList;
}
public List<AgentArea> getAreaList() {
return areaList;
}
public void setAreaList(List<AgentArea> areaList) {
this.areaList = areaList;
}
}
|
[
"jack_lhp@163.com"
] |
jack_lhp@163.com
|
57f603314318d58196861f0f64048d6e692b2487
|
a5f0679580448eca94705c8cb06b84cbaeded7d1
|
/app/src/main/java/com/km/transport/module/order/unfinished/ShipMentContract.java
|
b47a8fa43e62f322e324f9c3228ab0ece8784c96
|
[] |
no_license
|
ps130183/Transport
|
4e0df335c1437ba6eb2b37ee8a72d395675f113e
|
a78a94653a63ce8b93c4d48e66cc539cbb7eaf6a
|
refs/heads/master
| 2018-09-18T21:37:10.215349
| 2018-06-06T05:09:11
| 2018-06-06T05:09:11
| 109,779,940
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 553
|
java
|
package com.km.transport.module.order.unfinished;
import com.km.transport.basic.BasePresenter;
import com.km.transport.basic.BaseView;
/**
* Created by PengSong on 17/9/26.
*/
public interface ShipMentContract {
interface View extends BaseView{
void shipMentSuccess();
void uploadSuccess(String resultUrl);
}
interface Presenter extends BasePresenter{
void shipMentGoods(String id,String outTunnage,String sourceImage,String sourceTime);
void uploadPicture(String picturePath,String optionType);
}
}
|
[
"845233601@qq.com"
] |
845233601@qq.com
|
a8ba6c4c5ef17e6b28a825fc95042e2444b1ce1a
|
aea01bdb46ac63f9039a2ad086b7f81baba32ef9
|
/web/src/main/java/com/system/core/service/RoledefineService.java
|
032e523e9e7e1ab31ae08d4b1ba31e8722c3dd79
|
[] |
no_license
|
gaofeng4623/SysArchives
|
a187c6d43cae7d3ef3c4eb35fde2d464e8515e2b
|
3bd582f11bf1e1dfd576c4218a9a4e41577317df
|
refs/heads/master
| 2021-07-12T09:10:42.779501
| 2017-09-01T09:13:49
| 2017-09-01T09:13:52
| 107,104,158
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 598
|
java
|
package com.system.core.service;
import java.util.List;
import com.system.base.pojo.Result;
import com.system.base.pojo.Roledefine;
public interface RoledefineService {
public List<Roledefine> findAllRoledefine();
public Roledefine selectByPrimaryKey(String guid);
public Result insertRoledefine(Roledefine record) throws Exception;
public Result updateRoledefine(Roledefine record) throws Exception;
public Result deleteByPrimaryKey(String guid) throws Exception;
public Result removeRolemembers(String guid) throws Exception;
public Result resetRole(String guid) throws Exception;
}
|
[
"gaofen_888@163.com"
] |
gaofen_888@163.com
|
2a31cfe975128164a87b9ea56a46b67ec144b728
|
85d93664f7756f6e4e66a7deeb1d5d7a1cfa0f9a
|
/Eclipse_Core_Java/Core_Java/src/app11/L.java
|
4e912fa31dac5e53bc2014b441846764af3caac3
|
[] |
no_license
|
Vijay-Ky/Alpha_Java_Morning
|
cc36653b54ba1a50abad158369eddcb45a3f5dc7
|
b4bb44350dc376cf6d0dfdc3c7fb73b2070155b9
|
refs/heads/main
| 2023-07-13T04:49:21.239804
| 2021-08-26T07:21:22
| 2021-08-26T07:21:22
| 383,386,584
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 360
|
java
|
package app11;
class L
{
static
{
System.out.println("SIB-L");
}
public static void main(String[] args)
{
System.out.println("L-main");
}
}
class M
{
static
{
System.out.println("SIB-M");
}
public static void main(String[] args)
{
System.out.println("M-main-begin");
L.main(null);
L.main(args);
System.out.println("M-main-end");
}
}
|
[
"vijayky007@gmail.com"
] |
vijayky007@gmail.com
|
04b411ab6b62a7e6af30a394d0913d91dd0fb270
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/27/27_e4d580d7a3e8217f072ee405d1ad3fa35babf5f8/PropertyValues/27_e4d580d7a3e8217f072ee405d1ad3fa35babf5f8_PropertyValues_s.java
|
05f1473e80f38877e2efcea963eaed43ff3b2490
|
[] |
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,630
|
java
|
package com.versionone.common.sdk;
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import com.versionone.Oid;
public class PropertyValues extends AbstractCollection<ValueId> {
private static final long serialVersionUID = -8979996731417517341L;
private final Map<Oid, ValueId> dictionary = new HashMap<Oid, ValueId>();
private final Map<Oid, Integer> index = new HashMap<Oid, Integer>();
private int currentIndex = 0;
public PropertyValues(Collection<ValueId> valueIds) {
for (ValueId id : valueIds) {
addInternal(id);
}
}
public PropertyValues() {
}
@Override
public Iterator<ValueId> iterator() {
return dictionary.values().iterator();
}
@Override
public int size() {
return dictionary.values().size();
}
@Override
public String toString() {
if (dictionary.isEmpty()) {
return "";
}
StringBuilder res = new StringBuilder();
Iterator<ValueId> i = iterator();
res.append(i.next());
while (i.hasNext()) {
res.append(", ").append(i.next());
}
return res.toString();
}
ValueId find(Oid oid) {
return dictionary.get(oid.getMomentless());
}
boolean containsOid(Oid value) {
return dictionary.containsKey(value.getMomentless());
}
public boolean contains(ValueId valueId) {
return dictionary.containsValue(valueId);
}
public ValueId[] toArray() {
ValueId[] values = new ValueId[size()];
dictionary.values().toArray(values);
return values;
}
public boolean add(ValueId value) {
addInternal(value);
return true;
}
void addInternal(ValueId value) {
dictionary.put(value.oid, value);
index.put(value.oid, currentIndex);
currentIndex++;
}
PropertyValues subset(Object[] oids) {
PropertyValues result = new PropertyValues();
for (Object oid : oids) {
result.add(find((Oid) oid));
}
return result;
}
public String[] toStringArray() {
String[] values = new String[size()];
for (ValueId data : dictionary.values()) {
values[index.get(data.oid)] = data.toString();
}
return values;
}
public int getStringArrayIndex(ValueId value) {
return index.get(value.oid);
}
public ValueId getValueIdByIndex(int value) {
int i = 0;
for (ValueId data : dictionary.values()) {
if (value == index.get(data.oid)) {
return data;
}
i++;
}
return null;
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof PropertyValues)) {
return false;
}
PropertyValues other = (PropertyValues) obj;
if (size() != other.size()){
return false;
}
for (ValueId id : this){
if (!other.contains(id)){
return false;
}
}
return true;
}
@Override
public int hashCode() {
int res = 0;
for (ValueId id : this){
res = res * 31 + id.hashCode();
}
return res;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
2a4a131f2a6dd22d259daa7eda66486c3360a2a8
|
ac5d7b907f60513dd5ddb535fdb7c93a865511dc
|
/src/main/java/org/datanucleus/store/rdbms/scostore/BaseContainerStore.java
|
d16701eaa556ef76c2a0375cbf74848623a55759
|
[
"Apache-2.0"
] |
permissive
|
kaarelk/datanucleus-rdbms
|
1d5df4eed914cb65502af59e34810799e3ea1f34
|
9333dada26c4f22d1601ee6d293df3bd2db1dcc0
|
refs/heads/master
| 2021-01-23T23:39:11.627030
| 2014-08-14T15:34:40
| 2014-08-14T15:34:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,495
|
java
|
/**********************************************************************
Copyright (c) 2005 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
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.
Contributors:
...
**********************************************************************/
package org.datanucleus.store.rdbms.scostore;
import org.datanucleus.ClassLoaderResolver;
import org.datanucleus.ExecutionContext;
import org.datanucleus.metadata.AbstractMemberMetaData;
import org.datanucleus.metadata.RelationType;
import org.datanucleus.state.ObjectProvider;
import org.datanucleus.store.rdbms.adapter.DatastoreAdapter;
import org.datanucleus.store.rdbms.mapping.java.InterfaceMapping;
import org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping;
import org.datanucleus.store.rdbms.mapping.java.DatastoreIdMapping;
import org.datanucleus.store.rdbms.mapping.java.PersistableMapping;
import org.datanucleus.store.rdbms.RDBMSStoreManager;
import org.datanucleus.store.scostore.Store;
/**
* Base class for all mapped container stores (collections, maps, arrays).
* Provides a series of helper methods for handling the store process.
*/
public abstract class BaseContainerStore implements Store
{
/** Manager for the store. */
protected RDBMSStoreManager storeMgr;
/** Datastore adapter in use by this store. */
protected DatastoreAdapter dba;
/** Mapping to the owner of the container. */
protected JavaTypeMapping ownerMapping;
/** MetaData for the field/property in the owner with this container. */
protected AbstractMemberMetaData ownerMemberMetaData;
/** Type of relation (1-N uni, 1-N bi, M-N). */
protected RelationType relationType;
/** Whether the container allows null elements/values. */
protected boolean allowNulls = false;
protected ClassLoaderResolver clr;
/**
* Constructor.
* @param storeMgr Manager for the datastore being used
* @param clr ClassLoader resolver
*/
protected BaseContainerStore(RDBMSStoreManager storeMgr, ClassLoaderResolver clr)
{
this.storeMgr = storeMgr;
this.dba = this.storeMgr.getDatastoreAdapter();
this.clr = clr;
}
/**
* Method to set the owner for this backing store.
* Sets the metadata of the owner field/property, as well as whether nulls are allowed, and the relation type.
* @param mmd MetaData for the member owning this backing store.
*/
protected void setOwner(AbstractMemberMetaData mmd)
{
this.ownerMemberMetaData = mmd;
if (Boolean.TRUE.equals(ownerMemberMetaData.getContainer().allowNulls()))
{
// User has requested allowing nulls in this field/property
allowNulls = true;
}
this.relationType = ownerMemberMetaData.getRelationType(clr);
}
public RDBMSStoreManager getStoreManager()
{
return storeMgr;
}
public JavaTypeMapping getOwnerMapping()
{
return ownerMapping;
}
public RelationType getRelationType()
{
return relationType;
}
public AbstractMemberMetaData getOwnerMemberMetaData()
{
return ownerMemberMetaData;
}
public DatastoreAdapter getDatastoreAdapter()
{
return dba;
}
/**
* Check if the mapping correspond to a non pc object or embedded field
* @param mapping the mapping
* @return true if the field is embedded into one column
*/
protected boolean isEmbeddedMapping(JavaTypeMapping mapping)
{
return !InterfaceMapping.class.isAssignableFrom(mapping.getClass()) &&
!DatastoreIdMapping.class.isAssignableFrom(mapping.getClass()) &&
!PersistableMapping.class.isAssignableFrom(mapping.getClass());
}
/**
* Method to return the ObjectProvider for an embedded PC object (element, key, value).
* It creates one if the element is not currently managed.
* @param op ObjectProvider of the owner
* @param obj The embedded PC object
* @param ownerMmd The meta data for the owner field
* @param pcType Object type for the embedded object (see ObjectProvider EMBEDDED_PC etc)
* @return The ObjectProvider
*/
public ObjectProvider getObjectProviderForEmbeddedPCObject(ObjectProvider op, Object obj,
AbstractMemberMetaData ownerMmd, short pcType)
{
ExecutionContext ec = op.getExecutionContext();
ObjectProvider objOP = ec.findObjectProvider(obj);
if (objOP == null)
{
objOP = ec.getNucleusContext().getObjectProviderFactory().newForEmbedded(ec, obj, false, op, ownerMmd.getAbsoluteFieldNumber());
}
objOP.setPcObjectType(pcType);
return objOP;
}
/**
* Convenience method to return if the datastore supports batching and the user wants batching.
* @return If batching of statements is permissible
*/
protected boolean allowsBatching()
{
return storeMgr.allowsBatching();
}
}
|
[
"andy@datanucleus.org"
] |
andy@datanucleus.org
|
402cc94273140f91aafb45d9fcf8f1711324e4f3
|
173a7e3c1d4b34193aaee905beceee6e34450e35
|
/kmzyc-supplier/kmzyc-supplier-api/src/main/java/com/kmzyc/supplier/enums/ShopAuditStatus.java
|
0817a74f0c43b0d4912bbb1f17f8bac1672335cc
|
[] |
no_license
|
jjmnbv/km_dev
|
d4fc9ee59476248941a2bc99a42d57fe13ca1614
|
f05f4a61326957decc2fc0b8e06e7b106efc96d4
|
refs/heads/master
| 2020-03-31T20:03:47.655507
| 2017-05-26T10:01:56
| 2017-05-26T10:01:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 786
|
java
|
package com.kmzyc.supplier.enums;
/**
* 店铺状态
* @author xkj
*
*/
public enum ShopAuditStatus {
EDIT("0","编辑"),
APPLY("1","申请中,未审核"),
AUDIT("2","审核通过"),
NOTPASS("3","审核未通过"),
CLOSEED("4","永久关闭");
private String status;
private String title = null;
ShopAuditStatus(String status, String title) {
this.status = status;
this.title = title;
}
public String getStatus() {
return status;
}
public String getTitle() {
return title;
}
public String toString() {
StringBuilder strBuilder = new StringBuilder();
strBuilder.append("ShopAuditStatus[status=").append(this.status)
.append(",title=").append(this.title).append("]");
return strBuilder.toString();
}
}
|
[
"luoxinyu@km.com"
] |
luoxinyu@km.com
|
f8ac6416f1225cf2b6753b98fa560f6b001291b1
|
3093141009ab66c7ab3a2121ec17dbb9ec6f9125
|
/src/main/java/com/qfedu/controller/PictureController.java
|
20279ed83e20edea0201fe184286542596a5acb4
|
[] |
no_license
|
wgtLavender/lavender
|
7d257a027ec8ff25d75dc4ded2ba79e675111132
|
92c5c5ec250fb1541ecbecd2a0ff24c149dca2b8
|
refs/heads/master
| 2020-04-08T01:32:12.454365
| 2018-11-24T03:28:07
| 2018-11-24T03:28:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,388
|
java
|
package com.qfedu.controller;
import com.qfedu.pojo.RespouseVo;
import com.qfedu.service.PictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import java.io.File;
import java.io.IOException;
import java.util.SortedMap;
import java.util.UUID;
/**
* @program: IDEA
* @author: Administrator
* @create: 2018-11-19 22:28
**/
@Controller
@RequestMapping("/api/v1/")
public class PictureController {
@Autowired
private PictureService service;
@RequestMapping(path = "pictureInsert",method = RequestMethod.POST)
@ResponseBody
public RespouseVo pictures(MultipartFile[] file) throws IOException {
System.out.println(file);
RespouseVo<String> vo = new RespouseVo();
vo.setCode(1000);
for (MultipartFile multipartFile : file) {
String s = UUID.randomUUID().toString().replace("-", "").substring(0, 8) + multipartFile.getOriginalFilename();
File file1 = new File("D:\\stuupload\\" + s);
multipartFile.transferTo(file1);
vo.setImgurl(s);
}
return vo;
}
}
|
[
"email"
] |
email
|
a30e7a7ac81bc2614cc653c9b1d3939c3b86e892
|
cf1a356101ddb7f8f90bae0954f440722a57c318
|
/riverock-webmill-container/src/main/java/org/riverock/webmill/container/definition/WebAppDefinition_2_4.java
|
014b4e083e8e2cb3a7acbafe0ff3f5f6b915444e
|
[] |
no_license
|
sergmain/webmill
|
59d83c893705303767f235a04a442a2e643b70d5
|
ecb39c2069a0ad9c51c906645af322ad2f294232
|
refs/heads/master
| 2023-03-06T13:57:34.142084
| 2022-05-31T12:24:07
| 2022-05-31T12:24:07
| 217,777,559
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,180
|
java
|
package org.riverock.webmill.container.definition;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.lang.String;
import org.riverock.webmill.container.definition.web_xml_abstract.Servlet;
import org.riverock.webmill.container.definition.web_xml_abstract.Servlet_2_4;
import org.riverock.webmill.container.definition.web_xml_v2_4.*;
import org.riverock.webmill.container.portlet.register.PortletRegisterServlet;
import org.riverock.webmill.container.deployer.WebmillWebApplicationRewriter;
/**
* User: SMaslyukov
* Date: 02.10.2007
* Time: 19:01:50
*/
public class WebAppDefinition_2_4 implements WebAppDefinition {
private WebAppType webApp;
public WebAppDefinition_2_4(WebAppType webXml) {
this.webApp = webXml;
}
public Class getWebAppClass() {
return WebAppType.class;
}
public String getWebAppPackage() {
return ObjectFactory.class.getPackage().getName();
}
public Object getWebAppDefinition() {
return webApp;
}
public List<Servlet> getServlets() {
List<Servlet> servlets = new ArrayList<Servlet>();
for (Object o : webApp.getDescriptionAndDisplayNameAndIcon()) {
if (o instanceof ServletType) {
servlets.add( new Servlet_2_4((ServletType)o) );
}
}
return servlets;
}
public int getCountTaglib(String taglibUri) {
JspConfigType jspConfig = getJspConfig(webApp);
if (jspConfig==null) {
return 0;
}
int count=0;
for (TaglibType taglib : jspConfig.getTaglib()) {
if (taglib.getTaglibUri().equals(taglibUri)) {
count++;
}
}
return count;
}
private static JspConfigType getJspConfig(WebAppType webApp) {
if (webApp==null) {
return null;
}
for (Object o : webApp.getDescriptionAndDisplayNameAndIcon()) {
if (o instanceof JspConfigType) {
return (JspConfigType)o;
}
}
return null;
}
public void initWebmillRegisterServlet() {
initWebmillRegisterServlet( new Servlet_2_4(new ServletType()) );
}
public void initWebmillRegisterServlet(Servlet abstractServlet) {
ServletType servlet = (ServletType)abstractServlet.getServlet();
ServletNameType servletName = new ServletNameType();
servletName.setValue(WebmillWebApplicationRewriter.WEBMILL_PORTLET_REGISTER);
servlet.setServletName(servletName);
DescriptionType description = new DescriptionType();
description.setValue("Webmill servlet for register portlet application archive");
servlet.getDescription().add(description);
DisplayNameType displayName = new DisplayNameType();
displayName.setValue("Webmill portlet register");
servlet.getDisplayName().add(displayName);
FullyQualifiedClassType clazzName = new FullyQualifiedClassType();
clazzName.setValue(PortletRegisterServlet.class.getName());
servlet.setServletClass(clazzName);
XsdIntegerType xsdInteger = new XsdIntegerType();
xsdInteger.setValue(new BigInteger("1"));
servlet.setLoadOnStartup(xsdInteger);
webApp.getDescriptionAndDisplayNameAndIcon().add(servlet);
}
public String prepareTaglib() {
TaglibType portletTaglib = getTaglib(webApp, WebmillWebApplicationRewriter.PORTLET_URI);
JspConfigType jspConfig = DefinitionUtils.getJspConfig(webApp);
if (jspConfig==null) {
jspConfig = new JspConfigType();
webApp.getDescriptionAndDisplayNameAndIcon().add(jspConfig);
}
if (portletTaglib == null) {
TaglibType taglib = new TaglibType();
PathType path= new PathType();
path.setValue(WebmillWebApplicationRewriter.WEB_INF_TLD_PORTLET_TLD);
taglib.setTaglibLocation(path);
org.riverock.webmill.container.definition.web_xml_v2_4.String uri = new org.riverock.webmill.container.definition.web_xml_v2_4.String();
uri.setValue(WebmillWebApplicationRewriter.PORTLET_URI);
taglib.setTaglibUri(uri);
jspConfig.getTaglib().add(taglib);
return WebmillWebApplicationRewriter.WEB_INF_TLD_PORTLET_TLD;
}
else {
if (portletTaglib.getTaglibLocation()==null || portletTaglib.getTaglibLocation().getValue()==null) {
PathType path= new PathType();
path.setValue(WebmillWebApplicationRewriter.WEB_INF_TLD_PORTLET_TLD);
portletTaglib.setTaglibLocation(path);
}
return portletTaglib.getTaglibLocation().getValue();
}
}
private static TaglibType getTaglib(WebAppType webApp, String taglibUri) {
JspConfigType jspConfig = getJspConfig(webApp);
if (jspConfig==null) {
return null;
}
for (TaglibType taglib : jspConfig.getTaglib()) {
if (taglib.getTaglibUri().equals(taglibUri)) {
return taglib;
}
}
return null;
}
}
|
[
"serg_main@yahoo.com"
] |
serg_main@yahoo.com
|
6a1cd87dce41a49a5fd7ef6f1968077ed0d38059
|
f1a5cf469b0512c1fbbcc4ca878eed0f124e3120
|
/rong-parent/rong-console/rong-assembly-api/src/main/java/com/rong/assembly/api/module/response/people/TrManager.java
|
283c90874dfbae25e22300e17ac1c494c83286d4
|
[] |
no_license
|
ShineDreamCatcher/JavaProject
|
aba9737156e9d197cbe1421dab2a0bdac36bbbde
|
4a64939ed77074ba0fb7ce6fb9cd4b310ab85023
|
refs/heads/master
| 2022-12-30T03:19:23.592240
| 2020-04-26T07:06:42
| 2020-04-26T07:06:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,739
|
java
|
package com.rong.assembly.api.module.response.people;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rong.assembly.api.module.response.org.TrRespOrg;
import com.rong.assembly.api.module.response.product.TrFunds;
import com.rong.common.util.DateUtil;
import com.rong.common.util.StringUtil;
import com.rong.common.util.serializer.NeedQualifiedSerializer;
import com.rong.common.util.serializer.NeedQualifiedSerializerOfBd4s;
import com.rong.common.util.serializer.NeedQualifiedSerializerOfBdp;
import com.rong.common.util.serializer.NeedQualifiedSerializerOfDate;
import com.rong.common.util.serializer.NeedQualifiedSerializerOfNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Date;
import java.util.List;
@Data
public class TrManager {
@ApiModelProperty("用户类型:假如绑定了系统用户的话")
private Integer type;
@ApiModelProperty("用户id:假如绑定了系统用户的话")
private Long userId;
@ApiModelProperty("人物id")
private Long personId;
@ApiModelProperty("真实姓名")
private String realName;
@ApiModelProperty("职位")
private String position;
@ApiModelProperty("头像地址")
private String headPortrait;
@ApiModelProperty("昵称")
private String nickName;
@ApiModelProperty("最高学历")
private String education;
@ApiModelProperty("背景、职业背景")
private String backgroundDesc;
@ApiModelProperty("背景、职业背景")
private String backgroundValue;
@ApiModelProperty("基本信息,介绍")
private String profile;
@ApiModelProperty("在线状态(0:未在线,1:在线)")
private Integer onlineState;
@ApiModelProperty("代表产品id")
private Long repSecurityId;
@ApiModelProperty("代表产品全称")
private String repSecurityFullName;
@ApiModelProperty("代表产品简称")
private String repSecurityShortName;
@ApiModelProperty("代表产品累计收益,只有私募基金才有")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal repSecReturnAccum;
@ApiModelProperty("代表产品上市日期")
@JsonSerialize(using = NeedQualifiedSerializerOfDate.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private Date repEstablishDate;
@ApiModelProperty("代表产品运行时长,单位:天")
@JsonSerialize(using = NeedQualifiedSerializer.class)
private Integer repListDays;
@ApiModelProperty("代表产品累计净值")
@JsonSerialize(using = NeedQualifiedSerializerOfBd4s.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal repSecAccumNav;
@ApiModelProperty("最新净值,可排序")
@JsonSerialize(using = NeedQualifiedSerializerOfBd4s.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal nav;
@ApiModelProperty("累计净值,可排序")
@JsonSerialize(using = NeedQualifiedSerializerOfBd4s.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal accumNav;
@ApiModelProperty("累计%,可排序")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal returnAccum;
@ApiModelProperty("年化%,可排序")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal returnA;
@ApiModelProperty("近一年收益%")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal returnOfLatestYear;
@ApiModelProperty("近一年风险%")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal riskOfLatestYear;
@ApiModelProperty("从业年限")
private String workYear;
@ApiModelProperty("旗下基金总数量")
@JsonSerialize(using = NeedQualifiedSerializer.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private int fundCounts;
@ApiModelProperty("旗下私募基金数量")
@JsonSerialize(using = NeedQualifiedSerializer.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private int priFundCounts;
@ApiModelProperty("旗下公募基金数量")
@JsonSerialize(using = NeedQualifiedSerializer.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private int raisedFundCounts;
@ApiModelProperty("今年以来年化%")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal returnOfThisYear;
@ApiModelProperty("今年以来年化%")
@JsonSerialize(using = NeedQualifiedSerializerOfBdp.class,nullsUsing = NeedQualifiedSerializerOfNull.class)
private BigDecimal returnRateYtd;
@ApiModelProperty("服务机构")
private List<TrRespOrg> serviceOrgs;
@ApiModelProperty("管理私募基金")
private List<TrFunds> priFunds;
@ApiModelProperty("管理公募基金")
private List<TrFunds> raisedFunds;
@ApiModelProperty(value = "是否被收藏/关注")
private boolean fav = false;
@JsonIgnore
@ApiModelProperty(value = "私募今年以来收益",hidden = true)
private BigDecimal priReturnOfThisYear;
@JsonIgnore
@ApiModelProperty(value = "公募今年以来收益",hidden = true)
private BigDecimal raisedReturnOfThisYear;
@ApiModelProperty(value = "私募净值",hidden = true)
@JsonIgnore
private BigDecimal priNav;
@ApiModelProperty(value = "公募净值",hidden = true)
@JsonIgnore
private BigDecimal raisedNav;
@ApiModelProperty(value = "私募累计净值",hidden = true)
@JsonIgnore
private BigDecimal priAccumNav;
@ApiModelProperty(value = "公募累计净值",hidden = true)
@JsonIgnore
private BigDecimal raisedAccumNav;
public int getFundCounts() {
return priFundCounts + raisedFundCounts;
}
public BigDecimal getNav() {
if(priNav == null){
return raisedNav;
}else if(raisedNav == null){
return priNav;
}
return priNav.add(raisedNav).divide(new BigDecimal("2"),4, RoundingMode.HALF_UP);
}
public BigDecimal getAccumNav() {
if(priAccumNav == null){
return raisedAccumNav;
}else if(raisedAccumNav == null){
return priAccumNav;
}
return priAccumNav.add(raisedAccumNav).divide(new BigDecimal("2"),4, RoundingMode.HALF_UP);
}
public BigDecimal getReturnOfThisYear() {
if(priReturnOfThisYear == null){
return raisedReturnOfThisYear;
}else if(raisedReturnOfThisYear == null){
return priReturnOfThisYear;
}
return priReturnOfThisYear.add(raisedReturnOfThisYear).divide(new BigDecimal("2"),4, RoundingMode.HALF_UP);
}
public BigDecimal getReturnRateYtd() {
return getReturnOfThisYear();
}
public String getBackgroundDesc() {
if(StringUtil.isNotEmpty(backgroundValue)){
return backgroundValue;
}
return backgroundDesc;
}
public String getBackgroundValue() {
if(StringUtil.isNotEmpty(backgroundValue)){
return backgroundValue;
}
return backgroundDesc;
}
public Integer getRepListDays() {
try {
return DateUtil.difference(repEstablishDate,new Date());
}catch (Exception e){
return null;
}
}
}
|
[
"favor_zlx@163.com"
] |
favor_zlx@163.com
|
49a456fdec428a5ef2353be3a69011c2f0e14656
|
0b6a5e041d224194fa70c317ac8e4be6160e2700
|
/app/src/main/java/com/fortin/carpool/Model/FindHistoryPojo.java
|
2541e58730ada331bf43966cf16b56e9fa2302b1
|
[] |
no_license
|
raghsahu/CarPool
|
f6430a0ed31036aceb7130d1347447affabdd07e
|
e404e8bed7117a158a3a8c6f622340f5630b78c1
|
refs/heads/master
| 2020-06-04T13:35:16.948717
| 2019-06-15T06:24:49
| 2019-06-15T06:24:49
| 192,044,735
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,707
|
java
|
package com.fortin.carpool.Model;
/**
* Created by SWIFT-3 on 16/03/16.
*/
public class FindHistoryPojo {
int id;
String source,source_lat,source_long,destination,dest_lat,dest_long;
public FindHistoryPojo() {
}
public FindHistoryPojo(int id, String source, String source_lat, String source_long, String destination, String dest_lat, String dest_long) {
this.id = id;
this.source = source;
this.source_lat = source_lat;
this.source_long = source_long;
this.destination = destination;
this.dest_lat = dest_lat;
this.dest_long = dest_long;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getSource_lat() {
return source_lat;
}
public void setSource_lat(String source_lat) {
this.source_lat = source_lat;
}
public String getSource_long() {
return source_long;
}
public void setSource_long(String source_long) {
this.source_long = source_long;
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public String getDest_lat() {
return dest_lat;
}
public void setDest_lat(String dest_lat) {
this.dest_lat = dest_lat;
}
public String getDest_long() {
return dest_long;
}
public void setDest_long(String dest_long) {
this.dest_long = dest_long;
}
}
|
[
"raghvendra.19934@gmail.com"
] |
raghvendra.19934@gmail.com
|
e607c5c35fa917b46563a5c718dda12e446e5a84
|
677620a796bef7084e1908902e87173e31820384
|
/java/common/cout970/UltraTech/blocks/models/BlockSteamTurbine.java
|
423d1ab9c13185c66e1d50c29f24a290d63239e6
|
[] |
no_license
|
LousiesModPorts/UltraTech
|
daf526425d938e9bf69d65efacff6180f21e62b0
|
5c39fe261b1d27953e4f8c1d24ec4609e55d1b6a
|
refs/heads/master
| 2021-12-06T01:51:04.357079
| 2015-09-20T19:02:52
| 2015-09-20T19:02:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,995
|
java
|
package common.cout970.UltraTech.blocks.models;
import buildcraft.api.tools.IToolWrench;
import common.cout970.UltraTech.TileEntities.electric.TileEntitySteamTurbine;
import common.cout970.UltraTech.client.textures.Block_Textures;
import common.cout970.UltraTech.managers.UT_Tabs;
import common.cout970.UltraTech.managers.UltraTech;
import common.cout970.UltraTech.proxy.ClientProxy;
import common.cout970.UltraTech.util.power.BlockConductor;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class BlockSteamTurbine extends BlockConductor{
public BlockSteamTurbine(Material par2Material) {
super(par2Material);
setCreativeTab(UT_Tabs.techTab);
setHardness(2.5f);
setStepSound(soundTypeMetal);
setResistance(20);
setBlockName("SteamTurbine");
}
public boolean onBlockActivated(World w, int x, int y, int z, EntityPlayer p, int par6, float par7, float par8, float par9)
{
if(p.isSneaking())return true;
TileEntitySteamTurbine e = (TileEntitySteamTurbine) w.getTileEntity(x, y, z);
if(e != null){
if(p.getCurrentEquippedItem() != null && p.getCurrentEquippedItem().getItem() instanceof IToolWrench){
e.switchOrientation();
return true;
}
p.openGui(UltraTech.instance, 13, w, x, y, z);
}
return true;
}
@Override
public TileEntity createNewTileEntity(World world,int a) {
return new TileEntitySteamTurbine();
}
public void registerBlockIcons(IIconRegister iconRegister){
this.blockIcon = iconRegister.registerIcon(Block_Textures.CHASIS_T2);
}
public boolean isOpaqueCube()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
@SideOnly(Side.CLIENT)
@Override
public int getRenderType() {
return ClientProxy.turbineRenderPass;
}
}
|
[
"thecout970@gmail.com"
] |
thecout970@gmail.com
|
301b23867e885fa337772d54167b293dc7ccd909
|
ee82da46ff6095868051073fc2c79a699de5ad85
|
/src/main/java/be/Balor/Manager/Commands/Player/Played.java
|
4ed18c99a4ac4cf245c20b831fbcd6881241d3d5
|
[] |
no_license
|
boozaa/AdminCmd
|
5842e6962edc7595a4d07c5aaba5cd6ae80768e4
|
799864080eb565bf498481db1cd1cbc5e24319a0
|
refs/heads/master
| 2021-01-21T00:00:56.488262
| 2013-01-10T19:03:32
| 2013-01-10T19:03:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,175
|
java
|
/************************************************************************
* This file is part of AdminCmd.
*
* AdminCmd 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.
*
* AdminCmd 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 AdminCmd. If not, see <http://www.gnu.org/licenses/>.
************************************************************************/
package be.Balor.Manager.Commands.Player;
import org.bukkit.command.CommandSender;
import be.Balor.Manager.Commands.CommandArgs;
import be.Balor.Manager.Exceptions.PlayerNotFound;
import be.Balor.Manager.Permissions.ActionNotPermitedException;
import be.Balor.Player.ACPlayer;
import be.Balor.Tools.Utils;
/**
* @author Balor (aka Antoine Aflalo)
*
*/
public class Played extends PlayerCommand {
/**
*
*/
public Played() {
super("bal_played", "admincmd.player.played");
other = true;
}
/*
* (non-Javadoc)
*
* @see
* be.Balor.Manager.CoreCommand#execute(org.bukkit.command.CommandSender,
* java.lang.String[])
*/
@Override
public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
final ACPlayer target = Utils.getACPlayer(sender, args, permNode);
if (target != null) {
final String playername;
if (target.isOnline()) {
playername = Utils.getPlayerName(target.getHandler(), sender);
} else {
playername = target.getName();
}
Utils.sI18n(sender, "playedTime",
Utils.playedTime(playername, target.getCurrentPlayedTime()));
}
}
/*
* (non-Javadoc)
*
* @see be.Balor.Manager.CoreCommand#argsCheck(java.lang.String[])
*/
@Override
public boolean argsCheck(final String... args) {
return args != null;
}
}
|
[
"antoineaf@gmail.com"
] |
antoineaf@gmail.com
|
6f762d596222dbde92ec8afcaf5a65b09ba867d0
|
e51de484e96efdf743a742de1e91bce67f555f99
|
/Android/triviacrack_src/src/org/b/c/a/s$1.java
|
bc16771e30dca802350b2df9bba0db18919944c9
|
[] |
no_license
|
adumbgreen/TriviaCrap
|
b21e220e875f417c9939f192f763b1dcbb716c69
|
beed6340ec5a1611caeff86918f107ed6807d751
|
refs/heads/master
| 2021-03-27T19:24:22.401241
| 2015-07-12T01:28:39
| 2015-07-12T01:28:39
| 28,071,899
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 270
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.b.c.a;
// Referenced classes of package org.b.c.a:
// s
class ct
{
}
|
[
"klayderpus@chimble.net"
] |
klayderpus@chimble.net
|
7518b776fd9e1461b2f5359654eb18816c0056ee
|
72d7288ddeecbb96bf57be8b3627299af07247ce
|
/RageSpigot/RageSpigot-Server/src/main/java/gg/ragemc/spigot/handler/MovementHandler.java
|
73b2710b41edd444821e8499cb59b28ba9a0beec
|
[
"Apache-2.0",
"LGPL-3.0-only",
"GPL-3.0-only"
] |
permissive
|
yikeskeelan/Udrop-Src-
|
c49c4214529a4c114da9a226bee37cb10c7347b3
|
21f12e6c651d5d4af858e1bd6e07e025deec01d4
|
refs/heads/master
| 2022-04-25T16:18:17.515651
| 2020-04-24T07:45:32
| 2020-04-24T07:45:32
| 258,442,773
| 0
| 0
|
Apache-2.0
| 2020-04-24T07:45:11
| 2020-04-24T07:45:11
| null |
UTF-8
|
Java
| false
| false
| 381
|
java
|
package gg.ragemc.spigot.handler;
import net.minecraft.server.PacketPlayInFlying;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public interface MovementHandler {
void handleUpdateLocation(Player player, Location to, Location from, PacketPlayInFlying packet);
void handleUpdateRotation(Player player, Location to, Location from, PacketPlayInFlying packet);
}
|
[
"realhcfus@gmail.com"
] |
realhcfus@gmail.com
|
f0febc58a23445cfab857c0ec14670c59df408cb
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/training/org/datavec/api/transform/TestTransformProcess.java
|
52044657e07780a6b59e1dfe7664b13b734c8200
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 3,789
|
java
|
/**
* *****************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available 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.
*
* SPDX-License-Identifier: Apache-2.0
* ****************************************************************************
*/
package org.datavec.api.transform;
import MathOp.Add;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.datavec.api.records.reader.RecordReader;
import org.datavec.api.records.reader.impl.collection.ListStringRecordReader;
import org.datavec.api.split.ListStringSplit;
import org.datavec.api.transform.schema.Schema;
import org.datavec.api.transform.transform.nlp.TextToCharacterIndexTransform;
import org.datavec.api.writable.DoubleWritable;
import org.datavec.api.writable.IntWritable;
import org.datavec.api.writable.Text;
import org.datavec.api.writable.Writable;
import org.junit.Assert;
import org.junit.Test;
public class TestTransformProcess {
@Test
public void testExecution() {
Schema schema = new Schema.Builder().addColumnsString("col").addColumnsDouble("col2").build();
Map<Character, Integer> m = TestTransformProcess.defaultCharIndex();
TransformProcess transformProcess = new TransformProcess.Builder(schema).doubleMathOp("col2", Add, 1.0).build();
List<Writable> in = Arrays.<Writable>asList(new Text("Text"), new DoubleWritable(2.0));
List<Writable> exp = Arrays.<Writable>asList(new Text("Text"), new DoubleWritable(3.0));
List<Writable> out = transformProcess.execute(in);
Assert.assertEquals(exp, out);
}
@Test
public void testExecuteToSequence() {
Schema schema = new Schema.Builder().addColumnsString("action").build();
Map<Character, Integer> m = TestTransformProcess.defaultCharIndex();
TransformProcess transformProcess = removeAllColumnsExceptFor("action").convertToSequence().transform(new TextToCharacterIndexTransform("action", "action_sequence", m, true)).build();
String s = "in text";
List<Writable> input = Collections.<Writable>singletonList(new Text(s));
List<List<Writable>> expSeq = new ArrayList<>(s.length());
for (int i = 0; i < (s.length()); i++) {
expSeq.add(Collections.<Writable>singletonList(new IntWritable(m.get(s.charAt(i)))));
}
List<List<Writable>> out = transformProcess.executeToSequence(input);
Assert.assertEquals(expSeq, out);
}
@Test
public void testInferColumns() throws Exception {
List<List<String>> categories = Arrays.asList(Arrays.asList("a", "d"), Arrays.asList("b", "e"), Arrays.asList("c", "f"));
RecordReader listReader = new ListStringRecordReader();
listReader.initialize(new ListStringSplit(categories));
List<String> inferredSingle = TransformProcess.inferCategories(listReader, 0);
Assert.assertEquals(3, inferredSingle.size());
listReader.initialize(new ListStringSplit(categories));
Map<Integer, List<String>> integerListMap = TransformProcess.inferCategories(listReader, new int[]{ 0, 1 });
for (int i = 0; i < 2; i++) {
Assert.assertEquals(3, integerListMap.get(i).size());
}
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
4bde78797bcd198dcef957912145a20554b13f14
|
19688c536e3e23d40ed58d7a5ad25dcacf80358e
|
/src/telas/Visto/Valores/ConsultaValoresVistosTableModel.java
|
38ddbe2b89ffa1981a7518290154e86eed816f5c
|
[] |
no_license
|
julioizidoro/systm
|
0a8e9817dda18d9c33cf1c78d8b120cade55b13f
|
023acf52bdcc2489f9696f4934bbc304ab55f82a
|
refs/heads/master
| 2021-01-17T13:11:40.575259
| 2016-05-17T19:36:36
| 2016-05-17T19:36:36
| 22,035,771
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,606
|
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 telas.Visto.Valores;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import model.Valoresvistos;
import util.Formatacao;
/**
*
* @author Wolverine
*/
public class ConsultaValoresVistosTableModel extends AbstractTableModel{
private List<Valoresvistos> listaValor;
private String[] colunas ={"País", "Categoria", "Valor R$"};
public ConsultaValoresVistosTableModel(List<Valoresvistos> listaValor) {
this.listaValor = listaValor;
}
@Override
public int getRowCount() {
return listaValor.size();
}
@Override
public int getColumnCount() {
return colunas.length;
}
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
if (columnIndex==0){
return listaValor.get(rowIndex).getFornecedorcidade().getCidade().getPais().getNome();
}else if (columnIndex==1){
return listaValor.get(rowIndex).getCategoria();
}else return Formatacao.formatarFloatString(listaValor.get(rowIndex).getValorgross());
}
@Override
public String getColumnName(int column) {
return colunas[column];
}
@Override
public Class<?> getColumnClass(int columnIndex) {
if (columnIndex==0){
return String.class;
}else if (columnIndex==1){
return String.class;
}else return String.class;
}
}
|
[
"jizidoro@globo.com"
] |
jizidoro@globo.com
|
ba559e7d1f581d29031ca91d240fd66d724a69dd
|
4eab0121cd8dfe3f3db13bedcf1f94dd8f0b1d83
|
/pac4j-oauth/src/main/java/org/scribe/builder/api/GoogleApi20.java
|
7614da7111f326423c5b295faf04b91e690e858a
|
[
"Apache-2.0"
] |
permissive
|
htrc/pac4j
|
b3717824193a81ba82e4dc059db41d558210c0e2
|
83c5263051d58e8adfbefff1e6868c7d9c786cf1
|
refs/heads/pac4j-1.5.1-htrc
| 2021-06-10T00:33:53.457953
| 2016-01-08T15:54:12
| 2016-01-08T15:54:12
| 51,448,644
| 0
| 0
|
Apache-2.0
| 2021-03-26T17:11:19
| 2016-02-10T15:11:09
|
Java
|
UTF-8
|
Java
| false
| false
| 1,895
|
java
|
/*
Copyright 2012 - 2014 Jerome Leleu
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.scribe.builder.api;
import org.scribe.builder.api.DefaultApi20;
import org.scribe.extractors.AccessTokenExtractor;
import org.scribe.extractors.Google2JsonExtractor;
import org.scribe.model.OAuthConfig;
import org.scribe.model.Verb;
import org.scribe.utils.OAuthEncoder;
/**
* This class represents the OAuth API implementation for Google using OAuth protocol version 2. It could be part of the Scribe library.
*
* @author Jerome Leleu
* @since 1.2.0
*/
public class GoogleApi20 extends DefaultApi20 {
private static final String AUTHORIZATION_URL = "https://accounts.google.com/o/oauth2/auth?client_id=%s&redirect_uri=%s&scope=%s&response_type=code";
@Override
public String getAuthorizationUrl(final OAuthConfig config) {
return String.format(AUTHORIZATION_URL, config.getApiKey(), OAuthEncoder.encode(config.getCallback()),
OAuthEncoder.encode(config.getScope()));
}
@Override
public String getAccessTokenEndpoint() {
return "https://accounts.google.com/o/oauth2/token";
}
@Override
public Verb getAccessTokenVerb() {
return Verb.POST;
}
@Override
public AccessTokenExtractor getAccessTokenExtractor() {
return new Google2JsonExtractor();
}
}
|
[
"leleuj@gmail.com"
] |
leleuj@gmail.com
|
79b395af2eb875ae3f95f2676de4a05cc59a5b2d
|
95edccc2866413eb0918a5994cd978e6a72f4e96
|
/minecraft/src/minecraft/net/minecraft/world/gen/feature/WorldGenDeadBush.java
|
c50e7e490baa49d5f2d8ffc5fbe9979cb7430ef1
|
[] |
no_license
|
art049/VRCloudGaming
|
cff1398fc58e897c78930c0b78b46842e76d34aa
|
5bb9f95713887afc223843986f3d1b7f9830681f
|
refs/heads/master
| 2021-03-22T01:21:26.038250
| 2016-06-28T19:09:45
| 2016-06-28T19:09:45
| 61,276,959
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,085
|
java
|
package net.minecraft.world.gen.feature;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public class WorldGenDeadBush extends WorldGenerator {
public boolean generate(World worldIn, Random rand, BlockPos position) {
IBlockState iblockstate;
while(((iblockstate = worldIn.getBlockState(position)).getMaterial() == Material.AIR || iblockstate.getMaterial() == Material.LEAVES) && position.getY() > 0) {
position = position.down();
}
for(int i = 0; i < 4; ++i) {
BlockPos blockpos = position.add(rand.nextInt(8) - rand.nextInt(8), rand.nextInt(4) - rand.nextInt(4), rand.nextInt(8) - rand.nextInt(8));
if(worldIn.isAirBlock(blockpos) && Blocks.DEADBUSH.canBlockStay(worldIn, blockpos, Blocks.DEADBUSH.getDefaultState())) {
worldIn.setBlockState(blockpos, Blocks.DEADBUSH.getDefaultState(), 2);
}
}
return true;
}
}
|
[
"arthur.pastel@telecom-paristech.fr"
] |
arthur.pastel@telecom-paristech.fr
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.