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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55ad708a7566a353cf2733d4717d5de09ac6365f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/35/35_d8c4e524d5b1950cb8883e50c9d3e91d9f2ca1f5/CalendarEvent/35_d8c4e524d5b1950cb8883e50c9d3e91d9f2ca1f5_CalendarEvent_t.java
|
0e7102316725839884e5c6cca48caa1eed0ded9d
|
[] |
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,249
|
java
|
package uk.gov.northampton.droid;
import java.io.Serializable;
import android.content.ContentValues;
import android.provider.CalendarContract.Events;
public class CalendarEvent implements Serializable {
private static final long serialVersionUID = 1L;
private long calID;
private long startMillis;
private long endMillis;
private String title;
private String description;
private String timezone;
private String rrule;
private String tag;
private String duration;
private int reminder;
private long eventId;
private boolean isUpdate = false;
private ContentValues content = new ContentValues();
public CalendarEvent(long calID, long startMillis, long endMillis,
String title, String description, String timezone, String duration) {
super();
this.calID = calID;
this.startMillis = startMillis;
this.endMillis = endMillis;
this.title = title;
this.description = description;
this.timezone = timezone;
this.duration = duration;
}
public CalendarEvent() {
// TODO Auto-generated constructor stub
}
public long getCalID() {
return calID;
}
public void setCalID(long calID) {
this.calID = calID;
}
public long getStartMillis() {
return startMillis;
}
public void setStartMillis(long startMillis) {
this.startMillis = startMillis;
}
public long getEndMillis() {
return endMillis;
}
public void setEndMillis(long endMillis) {
this.endMillis = endMillis;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
public ContentValues getContent() {
content.put(Events.TITLE, title);
content.put(Events.DESCRIPTION, description);
content.put(Events.CALENDAR_ID, calID);
content.put(Events.EVENT_TIMEZONE, timezone);
content.put(Events.DTSTART, startMillis);
content.put(Events.DURATION, duration);
//content.put(Events.DTEND, endMillis);
content.put(Events.RRULE, rrule);
return content;
}
public String getRrule() {
return rrule;
}
public void setRrule(String rrule) {
this.rrule = rrule;
}
public void setTag(String tag) {
// TODO Auto-generated method stub
this.tag = tag;
}
public String getTag() {
// TODO Auto-generated method stub
return tag;
}
public void setReminderTime(int reminderMinutes) {
// TODO Auto-generated method stub
this.reminder = reminderMinutes;
}
public int getReminderTime() {
// TODO Auto-generated method stub
return reminder;
}
public long getEventId() {
return eventId;
}
public void setEventId(long eventId) {
if(eventId > 0) {
isUpdate(true);
}
this.eventId = eventId;
}
public boolean isUpdate() {
return isUpdate;
}
private void isUpdate(boolean isUpdate) {
this.isUpdate = isUpdate;
}
public void setDuration(String dur) {
// TODO Auto-generated method stub
this.duration = dur;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
e12c07c5810c263d4445263d175a4e609caa27fb
|
08e5b14cca74e954ad08f4dfe66f40a19a583632
|
/src/com/bridgelab/algorithm/BinarySearch.java
|
85a97b6ca1728b12e1442d49508aff948436aa29
|
[] |
no_license
|
Shriniwaspathak/shriniwas
|
0658a36481e49fb673c1cda520d77d12de5e0053
|
584968ac7793149c9af8cc28d4a74035f0aa6fd0
|
refs/heads/master
| 2020-06-28T23:14:06.679742
| 2019-08-17T13:40:07
| 2019-08-17T13:40:07
| 200,366,742
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 529
|
java
|
package com.bridgelab.algorithm;
public class BinarySearch {
public static void main(String[] args) {
long start=System.currentTimeMillis();
int[] arr = { 85,23,64,97,22,2 };
//arr = Utility.bubbleSort(arr);
int n = 87;
if (Utility.binary(arr, n) == true)
System.out.println(n + " is Present");
else
System.out.println(n + " is Not Present");
long end= System.currentTimeMillis();
long diff= end - start;
System.out.println((float) (diff / 1000) + "second");
}
}
|
[
"you@example.com"
] |
you@example.com
|
f5b3040406bff869cb9a87c1696cd3954c830924
|
06a6841e95e8b0fde5083d72c9e2f9a73e0e3906
|
/easypay/src/main/java/com/acewill/chikenprintlibrary/model/PowerController.java
|
e3bc30dc76c26139c7f364d919563ebd29f8c327
|
[] |
no_license
|
xiezhuolin/easyPay1.1
|
6e50694fd7044546bbcb6cf3e0dcdf496f38c597
|
ead75e0b0b66465984cac89e760f94a1bc89d5cf
|
refs/heads/master
| 2020-04-01T00:55:25.508807
| 2018-10-12T08:28:40
| 2018-10-12T08:28:44
| 152,718,854
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,863
|
java
|
package com.acewill.chikenprintlibrary.model;
import java.util.List;
/**
* Author:Anch
* Date:2017/11/30 12:47
* Desc:
*/
public class PowerController {
// public static final int MEMBER = 1;//会员,允许创建、管理会员并充值
public static final int SELECT_SAME_TABLE = 2;//查看同岗位的桌台,允许此员工查看其他同岗位同事的桌台状况
public static final int RESERVE = 4;//预定.允许此员工进入预定界面,处理客人预定事宜
public static final int TAKE_OUT_SALE = 5;//外卖/外带,允许此员工进入外卖/外带界面处理业务
public static final int QUICK_CASHIER = 6;//快速收银,在快餐模式中、菜没上的时候提前买单,且不会收到预警提示
public static final int SEND_MSG = 7;//发送信息,允许员工编写信息并发送给其他人
public static final int KAOQINJI = 8;//考勤机,此员工只是登记考勤,不能使用POS的任何功能
public static final int SHIFT_REPORT = 9;//交班报表,允许此员工查看自己的交班报表
public static final int REFUND_DISH = 10;//退菜,允许此员工退菜(允许退的产品)并退款
public static final int KIT_WORK = 11;//后厨工作,此员工在报表统计中列为后厨工作人员
// public static final int REPORT = 12;//报表,允许查看餐厅所有报表
public static final int SPECIAL_HANDLE = 13;//特别操作权限,当“ 需要特别的授权密码才能操作” 的功能被启用后,仅拥有此项权限的员工能打开云POS
public static final int DISCOUNT = 14;//打折,不需要上级授权可以对菜品进行打折,而且可以批准其他员工打折的请求
public static final int SERVICE_MONEY = 15;//服务费,不需要上级授权可以在结账时收取服务费,而且可以批准其他员工收取服务费的请求
public static final int FREE_SINGLE = 16;//免单,不需要上级授权可以在进行免单操作,而且可以批准其他员工免单的请求
public static final int ORDER_HANDLE = 17;//订单处理,允许员工对订单进行操作
public static final int PAY_INTERFACE = 18;//支付接口,修改云POS集成的支付方式设置和证书
public static final int SCHEDULING = 19;//排班,可以增加、修改或删除员工的排班
public static final int KICK = 20;//踢人,可以强制其他员工退出云POS
public static final int OPEN_POS_BOX = 21;//打开POS和钱箱,允许此员工查看其他同岗位同事的桌台状况
public static final int STORE_CLOSE_CHECK = 22;//进行“打烊检查”,可以进行下班前的“打烊检查”操作。此操作需要“订单处理”和“踢人”的权限
public static final int RECIVER_SYS_MSG = 23;//接收系统通知,可以接收云POS系统发出的任何通知或警告信息,如菜单中的某款菜品库存告急的预警
public static final int CHECK_OUT_BACK = 24;//反结账,打开已经支付过的订单进行重新处理
public static final int RECEIVABLES = 25;//收款,可以进行收款操作
public static final int PAYMENT = 26;//付款,可以进行付款操作
public static final int MESSAGE = 30;//允许查看信息
public static final int MEMBER = 31;//允许检验会员身份
public static final int HISTORY_ORDER = 32;//允许查看历史订单
public static final int REPORT = 33;//允许查看报表
public static final int STAFF = 34;//允许查看,修改员工信息
public static final int DAILY = 35;//允许进行日结
public static final int UPLOAD_LOG = 36;//允许上传pos日志
public static final int STANDBY_CASH = 37;//允许操作备用金
public static final int ADVANCED_SETUP = 38;//允许操作pos的高级设置
public static final int SHIFT_WORK = 39;//允许交班
public static final int SHIFT_WORK_HISTORY = 103;//交接班历史
public static final int HISTORY_SHIFT_WORK_REPORT = 40;//允许查看历史交班记录
public static final int UNBIND_DEVICE = 98;//允许用户进行解绑
public static final int SELL_OUT = 99;//允许对菜品进行沽清
public static final int NETORDER = 100;//网上订单
public static final int UPDATE = 101;//上传日志
public static final int MODIFY_PW = 102;//修改密码
public static final int ABOUT_CLOUDPOS = 104;//关于云POS
public static final int SUPPORT_CALL_GOODS = 105;//支持门店订货
public static List<Integer> powerIds;
}
|
[
"xzl@acewill.com"
] |
xzl@acewill.com
|
144a35b9769b7dc3e3f6758b16c0af98843b4158
|
1e425d8861c4016eb3e379c76f741ddb1d60ed8b
|
/mobi/mmdt/ott/provider/p174h/C1628a.java
|
97e2e9bd0a50aac679195dbf4af6cfe639d61d32
|
[] |
no_license
|
jayarambaratam/Soroush
|
302ebd5b172e511354969120c89f4e82cdb297bf
|
21e6b9a1ab415262db1f97a9a6e02a8827e01184
|
refs/heads/master
| 2021-01-17T22:50:54.415189
| 2016-02-04T10:57:55
| 2016-02-04T10:57:55
| 52,431,208
| 2
| 1
| null | 2016-02-24T09:42:40
| 2016-02-24T09:42:40
| null |
UTF-8
|
Java
| false
| false
| 399
|
java
|
package mobi.mmdt.ott.provider.p174h;
/* renamed from: mobi.mmdt.ott.provider.h.a */
public class C1628a {
private String f5437a;
private String f5438b;
public C1628a(String str, String str2) {
this.f5437a = str;
this.f5438b = str2;
}
public String m8286a() {
return this.f5437a;
}
public String m8287b() {
return this.f5438b;
}
}
|
[
"grayhat@kimo.com"
] |
grayhat@kimo.com
|
ab17b0ba1a965fecfd71072b1e8dd2f3ec341683
|
33a09b58cb5db325e64579495e5fa7d1a624b8c5
|
/New folder (2)/src/com/hwagain/sp/policy/entity/PoTransport.java
|
9906c392efdd9fe91212421339b4ab337017bb19
|
[] |
no_license
|
ASfirst/hwshare
|
6f51b8eba071341b28002275f48dc478367711f9
|
1d79b2bdce7f1cc18c74c8eb59da9fdaa20c3bc5
|
refs/heads/master
| 2020-05-31T14:49:09.878614
| 2019-07-14T15:07:53
| 2019-07-14T15:07:53
| 190,338,944
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,315
|
java
|
package com.hwagain.sp.policy.entity;
import java.math.BigDecimal;
import java.util.Date;
public class PoTransport {
private Long fdId;
private Long customerId;
private String method;
private BigDecimal price;
private BigDecimal addPrice;
private Date startDate;
private Date endDate;
private String checkedBy;
private Date checkedDate;
private String checkedRemark;
private String remark;
private Integer status;
private String createrId;
private Date createTime;
private String lastAlterId;
private Date lastAlterTime;
public Long getFdId() {
return fdId;
}
public void setFdId(Long fdId) {
this.fdId = fdId;
}
public Long getCustomerId() {
return customerId;
}
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method == null ? null : method.trim();
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public BigDecimal getAddPrice() {
return addPrice;
}
public void setAddPrice(BigDecimal addPrice) {
this.addPrice = addPrice;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public String getCheckedBy() {
return checkedBy;
}
public void setCheckedBy(String checkedBy) {
this.checkedBy = checkedBy == null ? null : checkedBy.trim();
}
public Date getCheckedDate() {
return checkedDate;
}
public void setCheckedDate(Date checkedDate) {
this.checkedDate = checkedDate;
}
public String getCheckedRemark() {
return checkedRemark;
}
public void setCheckedRemark(String checkedRemark) {
this.checkedRemark = checkedRemark == null ? null : checkedRemark.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getCreaterId() {
return createrId;
}
public void setCreaterId(String createrId) {
this.createrId = createrId == null ? null : createrId.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getLastAlterId() {
return lastAlterId;
}
public void setLastAlterId(String lastAlterId) {
this.lastAlterId = lastAlterId == null ? null : lastAlterId.trim();
}
public Date getLastAlterTime() {
return lastAlterTime;
}
public void setLastAlterTime(Date lastAlterTime) {
this.lastAlterTime = lastAlterTime;
}
}
|
[
"1171867004@qq.com"
] |
1171867004@qq.com
|
dddc6d6c40d32a489f84e7d08a55e67fc447f795
|
30f70fd0c1cc022331bfa299f2d56fa3bbe750c3
|
/src/main/java/org/cyberpwn/commune/ChangelogController.java
|
af92e1413bb066eb098315c05b5ef4275ea35f74
|
[] |
no_license
|
cyberpwnn/Commune
|
99008ed241c6b103687f080dbbae837eca86354a
|
65f178a7f6af50eb9e9eb3c795f9292647ca0d35
|
refs/heads/master
| 2021-01-19T10:54:50.254832
| 2017-01-03T00:13:39
| 2017-01-03T00:13:39
| 70,332,955
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,423
|
java
|
package org.cyberpwn.commune;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Collections;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent;
import org.cyberpwn.changelog.LogElement;
import org.cyberpwn.changelog.LogPackage;
import org.phantomapi.async.A;
import org.phantomapi.clust.Comment;
import org.phantomapi.clust.ConfigurableController;
import org.phantomapi.clust.DataCluster;
import org.phantomapi.clust.Keyed;
import org.phantomapi.construct.Controllable;
import org.phantomapi.construct.Ticked;
import org.phantomapi.gui.Element;
import org.phantomapi.gui.Notification;
import org.phantomapi.gui.PhantomElement;
import org.phantomapi.gui.PhantomWindow;
import org.phantomapi.gui.Slot;
import org.phantomapi.gui.Window;
import org.phantomapi.lang.GList;
import org.phantomapi.lang.GMap;
import org.phantomapi.lang.GSound;
import org.phantomapi.lang.Title;
import org.phantomapi.sync.S;
import org.phantomapi.sync.TaskLater;
import org.phantomapi.text.ColoredString;
import org.phantomapi.text.RTEX;
import org.phantomapi.text.RTX;
import org.phantomapi.text.SYM;
import org.phantomapi.text.TagProvider;
import org.phantomapi.util.C;
import org.phantomapi.util.Timer;
@Ticked(300)
public class ChangelogController extends ConfigurableController implements TagProvider
{
@Comment("The file used to pull changelogs")
@Keyed("log-url")
public String url = "https://raw.githubusercontent.com/cyberpwnn/GlacialRealms/master/changelog.yml";
@Comment("The file used to pull changelogs")
@Keyed("issue-url")
public String issue = "https://github.com/cyberpwnn/GlacialRealms/issues/[number]";
private static ChangelogController inst;
private LogPackage log;
private LogPlayerDataController ldc;
private GMap<Player, GList<LogElement>> elemented;
public ChangelogController(Controllable parentController)
{
super(parentController, "changelog-hangler");
inst = this;
ldc = new LogPlayerDataController(this);
elemented = new GMap<Player, GList<LogElement>>();
register(ldc);
}
public static String issue(int id)
{
return inst.issue + id;
}
@Override
public void onStart()
{
loadCluster(this);
}
@Override
public void onStop()
{
}
@Override
public void onTick()
{
checkForUpdates();
}
public void update()
{
try
{
Timer t = new Timer();
URL url = new URL(ChangelogController.this.url);
InputStream is = url.openStream();
InputStreamReader isr = new InputStreamReader(is);
FileConfiguration fc = new YamlConfiguration();
DataCluster cc = new DataCluster();
t.start();
fc.load(isr);
isr.close();
cc.addYaml(fc);
t.stop();
new S()
{
@Override
public void sync()
{
if(log == null || !log.equals(new LogPackage(cc)))
{
log = new LogPackage(cc);
for(Player i : onlinePlayers())
{
notifyPlayer(i);
}
}
}
};
}
catch(Exception e)
{
e.printStackTrace();
}
}
public GList<LogElement> sort(GList<LogElement> e)
{
GList<LogElement> ex = new GList<LogElement>();
if(e == null || e.isEmpty())
{
return ex;
}
GMap<Long, LogElement> elements = new GMap<Long, LogElement>();
GList<Long> order = new GList<Long>();
for(LogElement i : e)
{
elements.put(i.getTime(), i);
order.add(i.getTime());
}
order.sort();
Collections.reverse(order);
for(Long i : order)
{
ex.add(elements.get(i));
}
return ex;
}
public void viewUpdates(Player p)
{
try
{
GList<LogElement> logs = sort(elemented.get(p));
if(!logs.isEmpty())
{
Window w = new PhantomWindow(C.DARK_AQUA + "Latest Updates", p);
int k = 0;
for(LogElement i : logs)
{
if(k > 53)
{
continue;
}
w.addElement(i.buildElement(new Slot(k)));
k++;
}
Element bg = new PhantomElement(Material.STAINED_GLASS_PANE, new Slot(0), " ");
bg.setMetadata((byte) 15);
w.setBackground(bg);
w.setViewport(new Slot(k).getY());
w.open();
ldc.get(p).view(log.getLatest());
}
else
{
p.sendMessage(C.RED + "No logs to view at this time.");
}
}
catch(Exception ee)
{
p.sendMessage(C.RED + "No logs to view at this time.");
}
}
public void checkForUpdates()
{
new A()
{
@Override
public void async()
{
try
{
update();
}
catch(Exception e)
{
}
}
};
}
public void notifyPlayer(Player p)
{
GList<LogElement> elements = new GList<LogElement>();
long last = ldc.get(p).getSeen();
new A()
{
@Override
public void async()
{
try
{
elements.add(log.getLogsFor(last));
new S()
{
@Override
public void sync()
{
try
{
if(!elements.isEmpty())
{
elemented.put(p, elements);
RTX rt = new RTX();
RTEX rte = new RTEX(new ColoredString(C.AQUA, "Click to view this update."));
rt.addText("Glacial Realms updated " + log.lastUpdateFormatted(), C.GRAY);
rt.addTextFireHoverCommand(" View Update Log", rte, "/updates", C.AQUA);
rt.tellRawTo(p);
Notification n = new Notification();
Title t = new Title(C.GOLD + "" + SYM.SYMBOL_VOLTAGE + " " + SYM.SYMBOL_VOLTAGE + " " + SYM.SYMBOL_VOLTAGE, C.AQUA + "Updates added " + log.lastUpdateFormatted(), C.YELLOW + "Use /updates to view them!", 5, 40, 50);
n.setTitle(t);
n.setAudible(new GSound(Sound.LEVEL_UP, 1f, 1.7f));
n.play(p);
}
}
catch(Exception e)
{
}
}
};
}
catch(Exception e)
{
}
}
};
}
@EventHandler
public void on(PlayerJoinEvent e)
{
new TaskLater(30)
{
@Override
public void run()
{
notifyPlayer(e.getPlayer());
}
};
}
@Override
public String getChatTag()
{
return C.DARK_GRAY + "[" + C.AQUA + "Updates" + C.DARK_GRAY + "]: " + C.GRAY + C.ITALIC;
}
@Override
public String getChatTagHover()
{
return C.AQUA + "Recent updates for Glacial Realms";
}
}
|
[
"danielmillst@gmail.com"
] |
danielmillst@gmail.com
|
66c2fb3d220ee7c6ee6cbd672e2344b31bc105e7
|
a3130ed4ac3f10de55417bbe629f37656c7c1456
|
/Spring Security Tutorial/Spring Security Examples/Spring Security form login using database/src/main/java/com/mkyong/config/SecurityConfig.java
|
22b6948e76b0d48a64cc09c3dc4d266d0a0ba2c2
|
[] |
no_license
|
www-mkyoung-com/Mkyoung-Spring-Frameworks
|
ac1255f3830553df556bf4229ffbcb9c7186bffd
|
caefd5fd5df255b16dd939d77ecf1c7a65112938
|
refs/heads/master
| 2021-01-19T11:29:39.550367
| 2017-04-24T12:18:44
| 2017-04-24T12:18:44
| 87,970,878
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,497
|
java
|
package com.mkyong.config;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
DataSource dataSource;
@Autowired
public void configAuthentication(AuthenticationManagerBuilder auth) throws Exception {
auth.jdbcAuthentication().dataSource(dataSource)
.usersByUsernameQuery("select username,password, enabled from users where username=?")
.authoritiesByUsernameQuery("select username, role from user_roles where username=?");
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/admin/**").access("hasRole('ROLE_ADMIN')")
.and()
.formLogin().loginPage("/login").failureUrl("/login?error")
.usernameParameter("username").passwordParameter("password")
.and()
.logout().logoutSuccessUrl("/login?logout")
.and()
.exceptionHandling().accessDeniedPage("/403")
.and()
.csrf();
}
}
|
[
"mohammad.ghasemy@gmail.com"
] |
mohammad.ghasemy@gmail.com
|
1ddc4f1228d6c5f0634d3f4cfbe2ff7649125791
|
f8a07eb1e0ced852d6ff7acf87e895fd8d65d1e8
|
/src/main/java/com/tencentcloudapi/tcb/v20180608/models/DescribeExtensionUploadInfoRequest.java
|
8ea4b4050dcba84a219e9ae069ab598cbc513f1d
|
[
"Apache-2.0"
] |
permissive
|
xiuxiupanna/tencentcloud-sdk-java
|
2506c43a5b5f71224d8bba3cf35a679a4387402e
|
29d5de47f781d0fe4d20c0e4e35f42b28e2a88b7
|
refs/heads/master
| 2023-04-18T04:07:10.777701
| 2021-05-04T03:17:38
| 2021-05-04T03:17:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,725
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.tcb.v20180608.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeExtensionUploadInfoRequest extends AbstractModel{
/**
* 待上传的文件
*/
@SerializedName("ExtensionFiles")
@Expose
private ExtensionFile [] ExtensionFiles;
/**
* Get 待上传的文件
* @return ExtensionFiles 待上传的文件
*/
public ExtensionFile [] getExtensionFiles() {
return this.ExtensionFiles;
}
/**
* Set 待上传的文件
* @param ExtensionFiles 待上传的文件
*/
public void setExtensionFiles(ExtensionFile [] ExtensionFiles) {
this.ExtensionFiles = ExtensionFiles;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamArrayObj(map, prefix + "ExtensionFiles.", this.ExtensionFiles);
}
}
|
[
"tencentcloudapi@tenent.com"
] |
tencentcloudapi@tenent.com
|
3bbf0ce9abddc8ac65f948bd087bad3d4c3f9bf6
|
a0ad04113a695da9d1c551788db9b39bdfb1e7ec
|
/src/com/mainacad/ApplicationRunner.java
|
da65c1bbc1b5ee5a3123f1285ad71158c7370a75
|
[] |
no_license
|
Ignatenko2207/WorkWithObject
|
bc141eb67f709962e4a061b43453a5bc747c5e1a
|
baad8921b85bd2d100da7441da4fedb3a444c2c7
|
refs/heads/master
| 2020-06-14T04:54:57.641163
| 2019-07-04T16:50:26
| 2019-07-04T16:53:01
| 194,908,450
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 657
|
java
|
package com.mainacad;
import com.mainacad.model.*;
import com.mainacad.service.CartService;
import com.mainacad.service.UserGenerationService;
import java.util.Date;
public class ApplicationRunner {
public static void main(String[] args) {
Date birthDay = UserGenerationService.getDate(1982, 7, 22);
User user = new User("ignatenko2207", "123456", "Alex", "Ignatenko", birthDay, Gender.MALE);
Item item = new Item("abcde01", "some name", 15.56);
Order order = new Order(item, 12);
Cart cart = new Cart(user,order, new Date().getTime());
System.out.println(CartService.getTotalSum(cart));
}
}
|
[
"ignatenko2207@gmail.com"
] |
ignatenko2207@gmail.com
|
85ef44709e9813cef7dc97eb2dd5ae2667c2fda7
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/comparison_qark/de.number26.android/classes_dex2jar/com/squareup/b/w.java
|
557ecc478077698a8d7b66ee51c426da8c63cc99
|
[
"Apache-2.0"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 7,212
|
java
|
package com.squareup.b;
import android.graphics.Bitmap.Config;
import android.net.Uri;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;
public final class w
{
private static final long s = TimeUnit.SECONDS.toNanos(5L);
int a;
long b;
int c;
public final Uri d;
public final int e;
public final String f;
public final List<ae> g;
public final int h;
public final int i;
public final boolean j;
public final boolean k;
public final boolean l;
public final float m;
public final float n;
public final float o;
public final boolean p;
public final Bitmap.Config q;
public final t.e r;
private w(Uri paramUri, int paramInt1, String paramString, List<ae> paramList, int paramInt2, int paramInt3, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, float paramFloat1, float paramFloat2, float paramFloat3, boolean paramBoolean4, Bitmap.Config paramConfig, t.e paramE)
{
this.d = paramUri;
this.e = paramInt1;
this.f = paramString;
if (paramList == null) {
this.g = null;
} else {
this.g = Collections.unmodifiableList(paramList);
}
this.h = paramInt2;
this.i = paramInt3;
this.j = paramBoolean1;
this.k = paramBoolean2;
this.l = paramBoolean3;
this.m = paramFloat1;
this.n = paramFloat2;
this.o = paramFloat3;
this.p = paramBoolean4;
this.q = paramConfig;
this.r = paramE;
}
String a()
{
long l1 = System.nanoTime() - this.b;
if (l1 > s)
{
StringBuilder localStringBuilder1 = new StringBuilder();
localStringBuilder1.append(b());
localStringBuilder1.append('+');
localStringBuilder1.append(TimeUnit.NANOSECONDS.toSeconds(l1));
localStringBuilder1.append('s');
return localStringBuilder1.toString();
}
StringBuilder localStringBuilder2 = new StringBuilder();
localStringBuilder2.append(b());
localStringBuilder2.append('+');
localStringBuilder2.append(TimeUnit.NANOSECONDS.toMillis(l1));
localStringBuilder2.append("ms");
return localStringBuilder2.toString();
}
String b()
{
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append("[R");
localStringBuilder.append(this.a);
localStringBuilder.append(']');
return localStringBuilder.toString();
}
String c()
{
if (this.d != null) {
return String.valueOf(this.d.getPath());
}
return Integer.toHexString(this.e);
}
public boolean d()
{
return (this.h != 0) || (this.i != 0);
}
boolean e()
{
return (f()) || (g());
}
boolean f()
{
return (d()) || (this.m != 0.0F);
}
boolean g()
{
return this.g != null;
}
public String toString()
{
StringBuilder localStringBuilder = new StringBuilder("Request{");
if (this.e > 0) {
localStringBuilder.append(this.e);
} else {
localStringBuilder.append(this.d);
}
if ((this.g != null) && (!this.g.isEmpty()))
{
Iterator localIterator = this.g.iterator();
while (localIterator.hasNext())
{
ae localAe = (ae)localIterator.next();
localStringBuilder.append(' ');
localStringBuilder.append(localAe.a());
}
}
if (this.f != null)
{
localStringBuilder.append(" stableKey(");
localStringBuilder.append(this.f);
localStringBuilder.append(')');
}
if (this.h > 0)
{
localStringBuilder.append(" resize(");
localStringBuilder.append(this.h);
localStringBuilder.append(',');
localStringBuilder.append(this.i);
localStringBuilder.append(')');
}
if (this.j) {
localStringBuilder.append(" centerCrop");
}
if (this.k) {
localStringBuilder.append(" centerInside");
}
if (this.m != 0.0F)
{
localStringBuilder.append(" rotation(");
localStringBuilder.append(this.m);
if (this.p)
{
localStringBuilder.append(" @ ");
localStringBuilder.append(this.n);
localStringBuilder.append(',');
localStringBuilder.append(this.o);
}
localStringBuilder.append(')');
}
if (this.q != null)
{
localStringBuilder.append(' ');
localStringBuilder.append(this.q);
}
localStringBuilder.append('}');
return localStringBuilder.toString();
}
public static final class a
{
private Uri a;
private int b;
private String c;
private int d;
private int e;
private boolean f;
private boolean g;
private boolean h;
private float i;
private float j;
private float k;
private boolean l;
private List<ae> m;
private Bitmap.Config n;
private t.e o;
a(Uri paramUri, int paramInt, Bitmap.Config paramConfig)
{
this.a = paramUri;
this.b = paramInt;
this.n = paramConfig;
}
public a a(int paramInt1, int paramInt2)
{
if (paramInt1 < 0) {
throw new IllegalArgumentException("Width must be positive number or 0.");
}
if (paramInt2 < 0) {
throw new IllegalArgumentException("Height must be positive number or 0.");
}
if ((paramInt2 == 0) && (paramInt1 == 0)) {
throw new IllegalArgumentException("At least one dimension has to be positive number.");
}
this.d = paramInt1;
this.e = paramInt2;
return this;
}
public a a(ae paramAe)
{
if (paramAe == null) {
throw new IllegalArgumentException("Transformation must not be null.");
}
if (paramAe.a() == null) {
throw new IllegalArgumentException("Transformation key must not be null.");
}
if (this.m == null) {
this.m = new ArrayList(2);
}
this.m.add(paramAe);
return this;
}
boolean a()
{
return (this.a != null) || (this.b != 0);
}
boolean b()
{
return (this.d != 0) || (this.e != 0);
}
public a c()
{
if (this.g) {
throw new IllegalStateException("Center crop can not be used after calling centerInside");
}
this.f = true;
return this;
}
public a d()
{
if (this.f) {
throw new IllegalStateException("Center inside can not be used after calling centerCrop");
}
this.g = true;
return this;
}
public w e()
{
if ((this.g) && (this.f)) {
throw new IllegalStateException("Center crop and center inside can not be used together.");
}
if ((this.f) && (this.d == 0) && (this.e == 0)) {
throw new IllegalStateException("Center crop requires calling resize with positive width and height.");
}
if ((this.g) && (this.d == 0) && (this.e == 0)) {
throw new IllegalStateException("Center inside requires calling resize with positive width and height.");
}
if (this.o == null) {
this.o = t.e.b;
}
w localW = new w(this.a, this.b, this.c, this.m, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.n, this.o, null);
return localW;
}
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
389b4f0baee83c882ca6c010de6f3e3a8b2e4bc3
|
5a2a8492de88dff120d88d51a6ba2c6b196e329c
|
/retrieval/src/com/sxjun/retrieval/pojo/RDatabaseIndex.java
|
d7acf7dd190c4efad8213d6f7e0f3e2a0b6225e7
|
[] |
no_license
|
alxe1528/retrieval2014
|
116155f2bbeadcad70356cb834f8e637a698898e
|
6f2e9ff1238625acea762b8387f86f2949678e92
|
refs/heads/master
| 2021-01-21T05:36:38.904940
| 2014-04-30T03:03:06
| 2014-04-30T03:03:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,554
|
java
|
/**
* code generation
*/
package com.sxjun.retrieval.pojo;
import java.util.List;
import com.sxjun.system.pojo.BasePojo;
/**
* 索引设置Entity
* @author sxjun
* @version 2014-03-11
*/
public class RDatabaseIndex extends BasePojo{
private static final long serialVersionUID = -8540192254583468758L;
private Database database;//数据源
private String database_id;//数据源id
private String indexPath_id;//索引路径
//private String justSchedule;//任务
//private FiledMapper filedMapper;//字段映射
//private FiledSpecialMapper filedSpecialMapper;//特殊字段映射
private String tableName;//数据表名
private String keyField;//主键字段
private String sql;//Sql查询语句
private String trigSql;//触发器查询sql
private String indexOperatorType;//操作类型 0:插入,1:更新
private String defaultTitleFieldName;//设置数据库字段对应的标题
private String defaultResumeFieldName;//设置数据库字段对应的摘要字段
private String rmDuplicate = "0";//是否要去除重复标题正文字段;默认为true
private String databaseRecordInterceptor;//设置拦截器
private String isOn;//是否启用 0:启动 1:关闭
private String createTimeField;//创建时间字段
private String updateTimeField;//修改时间字段
private String isError;//是否存在错误
private String error;//错误信息
private String condtion;//查询条件
private List<FiledMapper> filedMapperLsit;//字段映射
private List<FiledSpecialMapper> filedSpecialMapperLsit;//特殊字段映射
private List<JustSchedule> justScheduleList;//任务调度
private String style ;//风格 0:rest 1:复合
private String indexTriggerRecord;//触发器表
private String isInit = "0";//是否初始化 0:否,1:是,2:零时
public Database getDatabase() {
return database;
}
public void setDatabase(Database database) {
this.database = database;
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getKeyField() {
return keyField;
}
public void setKeyField(String keyField) {
this.keyField = keyField;
}
public String getSql() {
return sql;
}
public void setSql(String sql) {
this.sql = sql;
}
public String getIndexOperatorType() {
return indexOperatorType;
}
public void setIndexOperatorType(String indexOperatorType) {
this.indexOperatorType = indexOperatorType;
}
public String getDefaultTitleFieldName() {
return defaultTitleFieldName;
}
public void setDefaultTitleFieldName(String defaultTitleFieldName) {
this.defaultTitleFieldName = defaultTitleFieldName;
}
public String getDefaultResumeFieldName() {
return defaultResumeFieldName;
}
public void setDefaultResumeFieldName(String defaultResumeFieldName) {
this.defaultResumeFieldName = defaultResumeFieldName;
}
public String getRmDuplicate() {
return rmDuplicate;
}
public void setRmDuplicate(String rmDuplicate) {
this.rmDuplicate = rmDuplicate;
}
public String getDatabaseRecordInterceptor() {
return databaseRecordInterceptor;
}
public void setDatabaseRecordInterceptor(String databaseRecordInterceptor) {
this.databaseRecordInterceptor = databaseRecordInterceptor;
}
public String getDatabase_id() {
return database_id;
}
public void setDatabase_id(String database_id) {
this.database_id = database_id;
}
public List<FiledMapper> getFiledMapperLsit() {
return filedMapperLsit;
}
public void setFiledMapperLsit(List<FiledMapper> filedMapperLsit) {
this.filedMapperLsit = filedMapperLsit;
}
public String getIsOn() {
return isOn;
}
public void setIsOn(String isOn) {
this.isOn = isOn;
}
public String getCreateTimeField() {
return createTimeField;
}
public void setCreateTimeField(String createTimeField) {
this.createTimeField = createTimeField;
}
public String getUpdateTimeField() {
return updateTimeField;
}
public void setUpdateTimeField(String updateTimeField) {
this.updateTimeField = updateTimeField;
}
public List<FiledSpecialMapper> getFiledSpecialMapperLsit() {
return filedSpecialMapperLsit;
}
public void setFiledSpecialMapperLsit(
List<FiledSpecialMapper> filedSpecialMapperLsit) {
this.filedSpecialMapperLsit = filedSpecialMapperLsit;
}
public String getIsError() {
return isError;
}
public void setIsError(String isError) {
this.isError = isError;
}
public String getError() {
return error;
}
public String getCondtion() {
return condtion;
}
public void setCondtion(String condtion) {
this.condtion = condtion;
}
public void setError(String error) {
this.error = error;
}
public String getStyle() {
return style;
}
public void setStyle(String style) {
this.style = style;
}
public String getIndexTriggerRecord() {
return indexTriggerRecord;
}
public void setIndexTriggerRecord(String indexTriggerRecord) {
this.indexTriggerRecord = indexTriggerRecord;
}
public String getIsInit() {
return isInit;
}
public void setIsInit(String isInit) {
this.isInit = isInit;
}
public List<JustSchedule> getJustScheduleList() {
return justScheduleList;
}
public void setJustScheduleList(List<JustSchedule> justScheduleList) {
this.justScheduleList = justScheduleList;
}
public String getIndexPath_id() {
return indexPath_id;
}
public void setIndexPath_id(String indexPath_id) {
this.indexPath_id = indexPath_id;
}
public String getTrigSql() {
return trigSql;
}
public void setTrigSql(String trigSql) {
this.trigSql = trigSql;
}
}
|
[
"sxjun1904@qq.com"
] |
sxjun1904@qq.com
|
66c15c218dab0cf91c7d7b164b73e40f8f690f2c
|
c2e6f7c40edce79fd498a5bbaba4c2d69cf05e0c
|
/src/main/java/com/google/zxing/oned/Code93Writer.java
|
9a3183c5997bf170fab57c51b2666c1d724a8f11
|
[] |
no_license
|
pengju1218/decompiled-apk
|
7f64ee6b2d7424b027f4f112c77e47cd420b2b8c
|
b60b54342a8e294486c45b2325fb78155c3c37e6
|
refs/heads/master
| 2022-03-23T02:57:09.115704
| 2019-12-28T23:13:07
| 2019-12-28T23:13:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,763
|
java
|
package com.google.zxing.oned;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.common.BitMatrix;
import java.util.Map;
public class Code93Writer extends OneDimensionalCodeWriter {
protected static int a(boolean[] zArr, int i, int[] iArr, boolean z) {
int length = iArr.length;
int i2 = i;
int i3 = 0;
while (i3 < length) {
int i4 = i2 + 1;
zArr[i2] = iArr[i3] != 0;
i3++;
i2 = i4;
}
return 9;
}
private static int computeChecksumIndex(String str, int i) {
int i2 = 0;
int i3 = 1;
for (int length = str.length() - 1; length >= 0; length--) {
i2 += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".indexOf(str.charAt(length)) * i3;
i3++;
if (i3 > i) {
i3 = 1;
}
}
return i2 % 47;
}
private static void toIntArray(int i, int[] iArr) {
for (int i2 = 0; i2 < 9; i2++) {
int i3 = 1;
if (((1 << (8 - i2)) & i) == 0) {
i3 = 0;
}
iArr[i2] = i3;
}
}
public BitMatrix encode(String str, BarcodeFormat barcodeFormat, int i, int i2, Map<EncodeHintType, ?> map) {
if (barcodeFormat == BarcodeFormat.CODE_93) {
return super.encode(str, barcodeFormat, i, i2, map);
}
throw new IllegalArgumentException("Can only encode CODE_93, but got " + barcodeFormat);
}
public boolean[] encode(String str) {
int length = str.length();
if (length <= 80) {
int[] iArr = new int[9];
boolean[] zArr = new boolean[(((str.length() + 2 + 2) * 9) + 1)];
toIntArray(Code93Reader.a[47], iArr);
int a = a(zArr, 0, iArr, true);
for (int i = 0; i < length; i++) {
toIntArray(Code93Reader.a["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".indexOf(str.charAt(i))], iArr);
a += a(zArr, a, iArr, true);
}
int computeChecksumIndex = computeChecksumIndex(str, 20);
toIntArray(Code93Reader.a[computeChecksumIndex], iArr);
int a2 = a + a(zArr, a, iArr, true);
toIntArray(Code93Reader.a[computeChecksumIndex(str + "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".charAt(computeChecksumIndex), 15)], iArr);
int a3 = a2 + a(zArr, a2, iArr, true);
toIntArray(Code93Reader.a[47], iArr);
zArr[a3 + a(zArr, a3, iArr, true)] = true;
return zArr;
}
throw new IllegalArgumentException("Requested contents should be less than 80 digits long, but got " + length);
}
}
|
[
"apoorwaand@gmail.com"
] |
apoorwaand@gmail.com
|
07cfed8a204957151693eb62e6b94f084a4cdf8a
|
1938f671d53acfcc3f7b853f7fc9af348a089b4d
|
/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkDebugReportCallbackEXT.java
|
059462d8a1f9a198d799a4d5f8a88d564207eb36
|
[
"LicenseRef-scancode-khronos",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Alex-----/lwjgl3
|
c51dc2e310c2a32553703c4b9c0d9d6eec123210
|
c56c3043a7b7f8dc1b5a1e5d4e5d1dc093e035e2
|
refs/heads/master
| 2021-06-22T09:56:38.089710
| 2021-04-11T07:23:14
| 2021-04-11T07:23:14
| 194,931,060
| 0
| 0
|
BSD-3-Clause
| 2019-07-02T20:34:17
| 2019-07-02T20:34:16
| null |
UTF-8
|
Java
| false
| false
| 4,625
|
java
|
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Application-defined debug report callback function.
*
* <h5>C Specification</h5>
*
* <p>The prototype for the {@link VkDebugReportCallbackCreateInfoEXT}{@code ::pfnCallback} function implemented by the application is:</p>
*
* <pre><code>
* typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)(
* VkDebugReportFlagsEXT flags,
* VkDebugReportObjectTypeEXT objectType,
* uint64_t object,
* size_t location,
* int32_t messageCode,
* const char* pLayerPrefix,
* const char* pMessage,
* void* pUserData);</code></pre>
*
* <h5>Description</h5>
*
* <p>The callback <b>must</b> not call {@code vkDestroyDebugReportCallbackEXT}.</p>
*
* <p>The callback returns a {@code VkBool32}, which is interpreted in a layer-specified manner. The application <b>should</b> always return {@link VK10#VK_FALSE FALSE}. The {@link VK10#VK_TRUE TRUE} value is reserved for use in layer development.</p>
*
* <p>{@code object} <b>must</b> be a Vulkan object or {@link VK10#VK_NULL_HANDLE NULL_HANDLE}. If {@code objectType} is not {@link EXTDebugReport#VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT} and {@code object} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code object} <b>must</b> be a Vulkan object of the corresponding type associated with {@code objectType} as defined in <a target="_blank" href="https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#debug-report-object-types">{@code VkDebugReportObjectTypeEXT} and Vulkan Handle Relationship</a>.</p>
*
* <h5>See Also</h5>
*
* <p>{@link VkDebugReportCallbackCreateInfoEXT}</p>
*/
public abstract class VkDebugReportCallbackEXT extends Callback implements VkDebugReportCallbackEXTI {
/**
* Creates a {@code VkDebugReportCallbackEXT} instance from the specified function pointer.
*
* @return the new {@code VkDebugReportCallbackEXT}
*/
public static VkDebugReportCallbackEXT create(long functionPointer) {
VkDebugReportCallbackEXTI instance = Callback.get(functionPointer);
return instance instanceof VkDebugReportCallbackEXT
? (VkDebugReportCallbackEXT)instance
: new Container(functionPointer, instance);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */
@Nullable
public static VkDebugReportCallbackEXT createSafe(long functionPointer) {
return functionPointer == NULL ? null : create(functionPointer);
}
/** Creates a {@code VkDebugReportCallbackEXT} instance that delegates to the specified {@code VkDebugReportCallbackEXTI} instance. */
public static VkDebugReportCallbackEXT create(VkDebugReportCallbackEXTI instance) {
return instance instanceof VkDebugReportCallbackEXT
? (VkDebugReportCallbackEXT)instance
: new Container(instance.address(), instance);
}
protected VkDebugReportCallbackEXT() {
super(SIGNATURE);
}
VkDebugReportCallbackEXT(long functionPointer) {
super(functionPointer);
}
/**
* Converts the specified {@link VkDebugReportCallbackEXT} argument to a String.
*
* <p>This method may only be used inside a {@code VkDebugReportCallbackEXT} invocation.</p>
*
* @param string the argument to decode
*
* @return the message as a String
*/
public static String getString(long string) {
return memUTF8(string);
}
private static final class Container extends VkDebugReportCallbackEXT {
private final VkDebugReportCallbackEXTI delegate;
Container(long functionPointer, VkDebugReportCallbackEXTI delegate) {
super(functionPointer);
this.delegate = delegate;
}
@Override
public int invoke(int flags, int objectType, long object, long location, int messageCode, long pLayerPrefix, long pMessage, long pUserData) {
return delegate.invoke(flags, objectType, object, location, messageCode, pLayerPrefix, pMessage, pUserData);
}
}
}
|
[
"iotsakp@gmail.com"
] |
iotsakp@gmail.com
|
a407ef983d674e6e5b448febc177e2b50e597a84
|
90f9d0d74e6da955a34a97b1c688e58df9f627d0
|
/com.ibm.ccl.soa.deploy.core.ui/src/com/ibm/ccl/soa/deploy/core/ui/internal/wizards/AddToPaletteWizardPage.java
|
aa058b16fb2f19c90b8b0ab86115ecb8f8501ef2
|
[] |
no_license
|
kalapriyakannan/UMLONT
|
0431451674d7b3eb744fb436fab3d13e972837a4
|
560d9f5d2ba6a800398a24fd8265e5a946179fd3
|
refs/heads/master
| 2020-03-30T03:16:44.327160
| 2018-09-28T03:28:11
| 2018-09-28T03:28:11
| 150,679,726
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,324
|
java
|
/***************************************************************************************************
* Copyright (c) 2003, 2007 IBM Corporation Licensed Material - Property of IBM. All rights
* reserved.
*
* US Government Users Restricted Rights - Use, duplication or disclosure v1.0 restricted by GSA ADP
* Schedule Contract with IBM Corp.
*
* Contributors: IBM Corporation - initial API and implementation
**************************************************************************************************/
package com.ibm.ccl.soa.deploy.core.ui.internal.wizards;
import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.PlatformUI;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import com.ibm.ccl.soa.deploy.core.Topology;
import com.ibm.ccl.soa.deploy.core.datamodels.AddToPaletteDataModel;
import com.ibm.ccl.soa.deploy.core.datamodels.CreateTopologyDataModel;
import com.ibm.ccl.soa.deploy.core.internal.datamodels.IAddToPaletteDataModelProperties;
import com.ibm.ccl.soa.deploy.core.ui.Messages;
import com.ibm.ccl.soa.deploy.core.ui.composites.IDeployHelpContextIds;
import com.ibm.ccl.soa.deploy.core.ui.wizards.TopologyCreationWizard;
import com.ibm.ccl.soa.infrastructure.ui.internal.epl.DecoratingDataModelWizardPage;
/**
*
* The first page for the {@link TopologyCreationWizard}. This page captures the essentials for
* creating a new {@link Topology}.
*
*/
public class AddToPaletteWizardPage extends DecoratingDataModelWizardPage {
private final AddToPaletteDataModel addtoPaletteDataModel;
private CreateTopologyDataModel creationDataModel;
private final String TEMPLATE = Messages.TopologyCreationWizardPage2_Template_;
/**
*
* @param model -
* An instance of a {@link AddToPaletteDataModel} from the wizard.
* @param pageName -
* The name of this page to uniquely identify it.
*/
public AddToPaletteWizardPage(CreateTopologyDataModel model, String pageName) {
super(model.getUnderlyingDataModel().getNestedModel(
IAddToPaletteDataModelProperties.DATAMODEL), pageName);
IDataModel aModel = model.getUnderlyingDataModel().getNestedModel(
IAddToPaletteDataModelProperties.DATAMODEL);
addtoPaletteDataModel = new AddToPaletteDataModel(aModel);
creationDataModel = model;
setDescription(Messages.TopologyCreationWizardPage2_Please_describe_the_platte_entry_by_);
setTitle(Messages.TopologyCreationWizardPage2_Add_Topology_to_Palett_);
}
/**
*
* @param model -
* An instance of a {@link AddToPaletteDataModel} from the wizard.
* @param pageName -
* The name of this page to uniquely identify it.
*/
public AddToPaletteWizardPage(AddToPaletteDataModel model, String pageName) {
super(model.getUnderlyingDataModel(), pageName);
addtoPaletteDataModel = model;
setDescription(Messages.TopologyCreationWizardPage2_Please_describe_the_platte_entry_by_);
setTitle(Messages.TopologyCreationWizardPage2_Add_Topology_to_Palett_);
}
private void transferDataModelInformation() {
addtoPaletteDataModel.setLabel(creationDataModel.getTopologyName()
+ IAddToPaletteDataModelProperties.UNDERSCORE
+ IAddToPaletteDataModelProperties.PALATTE_ENTRY);
addtoPaletteDataModel.setDescription(getDescription(creationDataModel
.getDefaultTopologyDescription()));
String projectName = getProjectName();
addtoPaletteDataModel.setProjectName(projectName);
}
private String getDescription(String stringProperty) {
return TEMPLATE + " " + stringProperty; //$NON-NLS-1$
}
protected Composite createTopLevelComposite(Composite parent) {
if (addtoPaletteDataModel.getUnderlyingDataModel().isPropertySet(
IAddToPaletteDataModelProperties.TOPOLOGY)) {
addtoPaletteDataModel.setLabel(addtoPaletteDataModel.getTopology().getName()
+ IAddToPaletteDataModelProperties.UNDERSCORE
+ IAddToPaletteDataModelProperties.PALATTE_ENTRY);
addtoPaletteDataModel.setLabel(addtoPaletteDataModel.getDefaultLabel());
}
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IDeployHelpContextIds.TOPOLOGY_EDITOR_ADD_TO_PALETTE_WIZARD);
return new CreateAddtoPaletteComposite(parent, SWT.NONE, synchHelper, addtoPaletteDataModel);
}
protected String[] getValidationPropertyNames() {
return new String[] { IAddToPaletteDataModelProperties.LABEL,
IAddToPaletteDataModelProperties.ICON, IAddToPaletteDataModelProperties.DRAWER,
IAddToPaletteDataModelProperties.ADD_TO_PALETTE,
IAddToPaletteDataModelProperties.STACK, IAddToPaletteDataModelProperties.DESCRIPTION,
IAddToPaletteDataModelProperties.DATAMODEL };
}
@Override
protected void intializeDecorationFields() {
}
@Override
protected void enter() {
if (creationDataModel != null) {
transferDataModelInformation();
}
super.enter();
}
private String getProjectName() {
String projectName = creationDataModel.getSourcePath();
int x = projectName.indexOf("/"); //$NON-NLS-1$
if (x < 0) {
return ""; //$NON-NLS-1$
}
projectName = projectName.substring(0, x);
return ProjectUtilities.getProject(projectName).getName();
}
}
|
[
"kalapriya.kannan@in.ibm.com"
] |
kalapriya.kannan@in.ibm.com
|
08bf591725d21c6880de42ad31cd58cfaa5e175b
|
d2984ba2b5ff607687aac9c65ccefa1bd6e41ede
|
/src/net/datenwerke/rs/core/client/parameters/dto/decorator/ParameterDefinitionDtoDec.java
|
42098f4da7100a75433f71b6590df1c06ff60a5a
|
[] |
no_license
|
bireports/ReportServer
|
da979eaf472b3e199e6fbd52b3031f0e819bff14
|
0f9b9dca75136c2bfc20aa611ebbc7dc24cfde62
|
refs/heads/master
| 2020-04-18T10:18:56.181123
| 2019-01-25T00:45:14
| 2019-01-25T00:45:14
| 167,463,795
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,708
|
java
|
/*
* ReportServer
* Copyright (c) 2018 InfoFabrik GmbH
* http://reportserver.net/
*
*
* This file is part of ReportServer.
*
* ReportServer 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 net.datenwerke.rs.core.client.parameters.dto.decorator;
import javax.persistence.Transient;
import net.datenwerke.gxtdto.client.dtomanager.IdedDto;
import net.datenwerke.rs.core.client.parameters.dto.ParameterDefinitionDto;
import net.datenwerke.rs.core.client.reportmanager.dto.reports.ReportDto;
import net.datenwerke.rs.core.client.reportmanager.interfaces.ReportAware;
/**
* Dto Decorator for {@link ParameterDefinitionDto}
*
*/
abstract public class ParameterDefinitionDtoDec extends ParameterDefinitionDto implements IdedDto, ReportAware {
private static final long serialVersionUID = 1L;
@Transient transient private ReportDto report;
public ParameterDefinitionDtoDec() {
super();
}
public ReportDto getReport() {
return report;
}
public void setReport(ReportDto report) {
this.report = report;
}
}
|
[
"srbala@gmail.com"
] |
srbala@gmail.com
|
214d3ab9ec65a062afcddae9c4e9b1e7062dc628
|
b8411ebb061dd56427b5aa0bb99e2e01a0e69023
|
/pinju-model/src/main/java/com/yuwang/pinju/domain/margin/MarginPinjuOrderDO.java
|
7d701b46e257d41a1c543e272abe08d126357b1d
|
[] |
no_license
|
sgrass/double11_bugfix_asst_acct
|
afce8261bb275474f792e1cb41d9ff4fabad06b0
|
8eea9a16b43600c0c7574db5353c3d3b86cf4694
|
refs/heads/master
| 2021-01-19T04:48:03.445861
| 2017-04-06T06:34:17
| 2017-04-06T06:34:17
| 87,394,668
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,944
|
java
|
package com.yuwang.pinju.domain.margin;
import java.util.Date;
import com.yuwang.pinju.domain.BaseDO;
/**
* @Project: pinju-model
* @Discription: [品聚保证金交易流水DO]
* @author 凌建涛 lingjiantao@zba.com
* @date 2011-8-9 下午04:53:02
* @update 2011-8-9 下午04:53:02
* @version V1.0
*/
public class MarginPinjuOrderDO extends BaseDO{
/**
*
*/
private static final long serialVersionUID = -3106898343461627395L;
private Long id;
private Long invMemberId;//设计会员ID
private String invMemberNick;//涉及会员昵称
private String invMemberPayment;//涉及会员支付帐户
private int operateType;//操作类型:0-充值,1-扣款
private Long amount;//金额
/**
* 支付订单编号
*/
private Long payOrderId;
/**
* 订单号
*/
private Long orderId;
/**
* 外部订单号
*/
private String outOrderId;
private Long rightsId; //维权编号
private Long refundId; //退款编号
private Date gmtCreate;
private Date gmtModified;
public void setId(Long id){
this.id = id;
}
public Long getId(){
return id;
}
public Long getInvMemberId() {
return invMemberId;
}
public void setInvMemberId(Long invMemberId) {
this.invMemberId = invMemberId;
}
public String getInvMemberNick() {
return invMemberNick;
}
public void setInvMemberNick(String invMemberNick) {
this.invMemberNick = invMemberNick;
}
public String getInvMemberPayment() {
return invMemberPayment;
}
public void setInvMemberPayment(String invMemberPayment) {
this.invMemberPayment = invMemberPayment;
}
public void setOperateType(int operateType){
this.operateType = operateType;
}
public int getOperateType(){
return operateType;
}
public void setAmount(Long amount){
this.amount = amount;
}
public Long getAmount(){
return amount;
}
public void setRightsId(Long rightsId){
this.rightsId = rightsId;
}
public Long getRightsId(){
return rightsId;
}
public void setRefundId(Long refundId){
this.refundId = refundId;
}
public Long getRefundId(){
return refundId;
}
public void setGmtCreate(Date gmtCreate){
this.gmtCreate = gmtCreate;
}
public Date getGmtCreate(){
return gmtCreate;
}
public void setGmtModified(Date gmtModified){
this.gmtModified = gmtModified;
}
public Date getGmtModified(){
return gmtModified;
}
public void setPayOrderId(Long payOrderId) {
this.payOrderId = payOrderId;
}
public Long getPayOrderId() {
return payOrderId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public String getOutOrderId() {
return outOrderId;
}
public void setOutOrderId(String outOrderId) {
this.outOrderId = outOrderId;
}
}
|
[
"xgrass@foxmail.com"
] |
xgrass@foxmail.com
|
2d50b37b28b276f4c5418cdf01aefb0abab7abb6
|
bc794d54ef1311d95d0c479962eb506180873375
|
/ventes/vente-core/src/main/java/com/teratech/vente/core/ifaces/base/TierManagerRemote.java
|
ffdacaf72b4e1e23a5e012307755ba9d26a59567
|
[] |
no_license
|
Teratech2018/Teratech
|
d1abb0f71a797181630d581cf5600c50e40c9663
|
612f1baf9636034cfa5d33a91e44bbf3a3f0a0cb
|
refs/heads/master
| 2021-04-28T05:31:38.081955
| 2019-04-01T08:35:34
| 2019-04-01T08:35:34
| 122,177,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 248
|
java
|
package com.teratech.vente.core.ifaces.base;
import javax.ejb.Remote;
/**
* Interface remote du manager
* @since Fri Jan 04 08:13:36 WAT 2019
*
*/
@Remote
public interface TierManagerRemote
extends TierManager
{
}
|
[
"bekondo_dieu@yahoo.fr"
] |
bekondo_dieu@yahoo.fr
|
5b4475ea45570c07879d9377048e73f51abd02fc
|
4423b632a339a0173535b78ee01073e45afba1bf
|
/app/src/main/java/com/raddarapp/data/android/repository/datasource/origin/remote/api/model/FollowDto.java
|
da121afab669a98ac1d1223b817dd3b676f11817
|
[
"Apache-2.0"
] |
permissive
|
jaimegc/raddarapp
|
b62bfe5f5b8d6a279c7eb99a1df62c45d2e9c8c9
|
22977618bf80195d57cb18ec5b5014d6fe1a5d09
|
refs/heads/master
| 2020-05-19T14:36:30.360822
| 2019-07-03T16:19:22
| 2019-07-03T16:19:22
| 185,061,381
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 316
|
java
|
package com.raddarapp.data.android.repository.datasource.origin.remote.api.model;
import com.google.gson.annotations.SerializedName;
public class FollowDto {
@SerializedName("userRelationship")
private int userRelationship;
public int getUserRelationship() {
return userRelationship;
}
}
|
[
"jguerrero@icinetic.com"
] |
jguerrero@icinetic.com
|
0fed08cca3763a943d29084c7bcaab6c419ebcda
|
bce52ef7ea786a38fbb28f21edc5d27813217950
|
/theSacred/src/main/java/theSacred/actions/common/SwitchPilesAction.java
|
c4b34fa4e30ce6778bd24070f0bb61062210edf6
|
[
"MIT"
] |
permissive
|
erasels/TheSacred
|
b638b310f3980032a71531037c4562a4174d1a96
|
b2cc82ed6e2bae0ed3e488282e97e24df9c31d33
|
refs/heads/master
| 2023-02-20T09:51:02.599316
| 2021-01-19T17:14:28
| 2021-01-19T17:14:28
| 214,179,160
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,875
|
java
|
package theSacred.actions.common;
import com.badlogic.gdx.graphics.Color;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardGroup;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.helpers.ImageMaster;
import theSacred.util.UC;
import theSacred.vfx.combat.FlameBurstEffect;
import theSacred.vfx.combat.MoveImageWithSparkleEffect;
import java.util.ArrayList;
public class SwitchPilesAction extends AbstractGameAction {
public SwitchPilesAction() {
super();
}
public void update() {
if (!UC.p().drawPile.isEmpty()) {
AbstractDungeon.effectsQueue.add(new MoveImageWithSparkleEffect(CardGroup.DRAW_PILE_X,
CardGroup.DRAW_PILE_Y,
CardGroup.DISCARD_PILE_X,
CardGroup.DISCARD_PILE_Y,
ImageMaster.DECK_BTN_BASE,
Color.ORANGE.cpy(),
"POWER_TIME_WARP",
new FlameBurstEffect(CardGroup.DISCARD_PILE_X, CardGroup.DISCARD_PILE_Y, 20)
));
}
if (!UC.p().discardPile.isEmpty()) {
AbstractDungeon.effectsQueue.add(new MoveImageWithSparkleEffect(CardGroup.DISCARD_PILE_X,
CardGroup.DISCARD_PILE_Y,
CardGroup.DRAW_PILE_X,
CardGroup.DRAW_PILE_Y,
ImageMaster.DECK_BTN_BASE,
Color.BLUE.cpy(),
"POWER_TIME_WARP",
new FlameBurstEffect(CardGroup.DRAW_PILE_X, CardGroup.DRAW_PILE_Y, 20)
));
}
ArrayList<AbstractCard> tmp = UC.p().discardPile.group;
UC.p().discardPile.group = UC.p().drawPile.group;
UC.p().drawPile.group = tmp;
isDone = true;
}
}
|
[
"emanuelbedburdick@yahoo.de"
] |
emanuelbedburdick@yahoo.de
|
e1d21fb93b531d67a7dd5dca0f3612ff5e4401a3
|
92225460ebca1bb6a594d77b6559b3629b7a94fa
|
/src/com/kingdee/eas/fdc/sellhouse/app/CollectionListUIHandler.java
|
b20c5df834f7903131217fb67e4e94179b343097
|
[] |
no_license
|
yangfan0725/sd
|
45182d34575381be3bbdd55f3f68854a6900a362
|
39ebad6e2eb76286d551a9e21967f3f5dc4880da
|
refs/heads/master
| 2023-04-29T01:56:43.770005
| 2023-04-24T05:41:13
| 2023-04-24T05:41:13
| 512,073,641
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 543
|
java
|
/**
* output package name
*/
package com.kingdee.eas.fdc.sellhouse.app;
import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.eas.framework.batchHandler.RequestContext;
import com.kingdee.eas.framework.batchHandler.ResponseContext;
/**
* output class name
*/
public class CollectionListUIHandler extends AbstractCollectionListUIHandler
{
protected void _handleInit(RequestContext request,ResponseContext response, Context context) throws Exception {
super._handleInit(request,response,context);
}
}
|
[
"yfsmile@qq.com"
] |
yfsmile@qq.com
|
c26012c3088aaf1b6b2cdb75e898a00f229f79e5
|
94ee9a4a3fcbb76e3165cd1e80876b7ff725e3a1
|
/PIM/standalone.gef/src/org/eclipse/gef/handles/NonResizableHandle.java
|
461e61998b4fb768589e8c74c6775c2d54408c82
|
[
"MIT"
] |
permissive
|
coconutpalm/dot.emacs
|
f385bfa9bcc63132055209f2fb51e57f48f5234f
|
6c8f16d06b697141376c1565e3f98a699873da04
|
refs/heads/master
| 2023-06-21T01:39:06.281158
| 2023-06-14T20:27:23
| 2023-06-14T20:27:23
| 13,232,581
| 4
| 2
| null | 2023-05-22T16:45:19
| 2013-10-01T02:05:12
|
Java
|
UTF-8
|
Java
| false
| false
| 2,226
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2010 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.gef.handles;
import org.eclipse.draw2d.Cursors;
import org.eclipse.draw2d.Locator;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.tools.DragEditPartsTracker;
/**
* A MoveHandle for a non-resizable EditPart.
*
* @deprecated this handle type is no longer used
*/
public class NonResizableHandle extends MoveHandle {
/**
* The border
*/
protected CornerTriangleBorder border;
/**
* Creates a NonResizableHandle for the given <code>GraphicalEditPart</code>
* using a default {@link Locator}.
*
* @param owner
* The GraphicalEditPart to be moved by this handle.
*/
public NonResizableHandle(GraphicalEditPart owner) {
this(owner, new MoveHandleLocator(owner.getFigure()));
}
/**
* Creates a NonResizableHandle for the given <code>GraphicalEditPart</code>
* using the given <code>Locator</code>.
*
* @param owner
* The GraphicalEditPart to be moved by this handle.
* @param loc
* The Locator used to place the handle.
*/
public NonResizableHandle(GraphicalEditPart owner, Locator loc) {
super(owner, loc);
}
/**
* Initializes the handle. Sets the {@link org.eclipse.gef.DragTracker} and
* DragCursor.
*/
protected void initialize() {
setOpaque(false);
border = new CornerTriangleBorder(false);
setBorder(border);
setCursor(Cursors.SIZEALL);
setDragTracker(new DragEditPartsTracker(getOwner()));
}
/**
* Updates the handle's color by setting the border's primary attribute.
*/
public void validate() {
border.setPrimary(getOwner().getSelected() == EditPart.SELECTED_PRIMARY);
super.validate();
}
}
|
[
"djo@coconut-palm-software.com"
] |
djo@coconut-palm-software.com
|
31e599138f7f9bc4c3990e3b6d6cb49b05c7a5ad
|
6082f56cd61b615adc36f03ca9ee9afbe63c19c5
|
/reviewing/2009/Qualification Round/Watersheds/Solution.java
|
84a2a0b90f3ac2e1cb952104582972c11d588951
|
[] |
no_license
|
charles-wangkai/codejam
|
3bbddb5d9e8bc7cbc0fa6e4c5c2a1131cf81fb65
|
c7693fce516e4a4955c1691423cde26951b6b4b4
|
refs/heads/master
| 2023-02-02T02:22:46.646309
| 2023-01-28T07:12:51
| 2023-01-28T07:12:51
| 185,376,924
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,269
|
java
|
import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class Solution {
static final int[] R_OFFSETS = {-1, 0, 0, 1};
static final int[] C_OFFSETS = {0, -1, 1, 0};
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int tc = 1; tc <= T; ++tc) {
int H = sc.nextInt();
int W = sc.nextInt();
int[][] altitudes = new int[H][W];
for (int r = 0; r < H; ++r) {
for (int c = 0; c < W; ++c) {
altitudes[r][c] = sc.nextInt();
}
}
System.out.println(String.format("Case #%d:\n%s", tc, solve(altitudes)));
}
sc.close();
}
static String solve(int[][] altitudes) {
int H = altitudes.length;
int W = altitudes[0].length;
char[][] labels = new char[H][W];
char nextLabel = 'a';
for (int r = 0; r < H; ++r) {
for (int c = 0; c < W; ++c) {
nextLabel = (char) Math.max(nextLabel, fill(labels, altitudes, nextLabel, r, c) + 1);
}
}
return Arrays.stream(labels)
.map(
row ->
IntStream.range(0, W)
.mapToObj(i -> String.valueOf(row[i]))
.collect(Collectors.joining(" ")))
.collect(Collectors.joining("\n"));
}
static char fill(char[][] labels, int[][] altitudes, char nextLabel, int r, int c) {
int H = altitudes.length;
int W = altitudes[0].length;
if (labels[r][c] != 0) {
return labels[r][c];
}
int direction = -1;
for (int i = 0; i < R_OFFSETS.length; ++i) {
int adjR = r + R_OFFSETS[i];
int adjC = c + C_OFFSETS[i];
if (adjR >= 0
&& adjR < H
&& adjC >= 0
&& adjC < W
&& altitudes[adjR][adjC] < altitudes[r][c]
&& (direction == -1
|| altitudes[adjR][adjC]
< altitudes[r + R_OFFSETS[direction]][c + C_OFFSETS[direction]])) {
direction = i;
}
}
if (direction == -1) {
labels[r][c] = nextLabel;
} else {
labels[r][c] =
fill(labels, altitudes, nextLabel, r + R_OFFSETS[direction], c + C_OFFSETS[direction]);
}
return labels[r][c];
}
}
|
[
"charles.wangkai@gmail.com"
] |
charles.wangkai@gmail.com
|
b96974f4fd1207dd474986518a9f7ae397643c73
|
0529524c95045b3232f6553d18a7fef5a059545e
|
/app/src/androidTest/java/TestCase_com_newspaperdirect_cng_android__1477012784.java
|
6812681fb53f65bdbcd65467880836b0b7a8d529
|
[] |
no_license
|
sunxiaobiu/BasicUnitAndroidTest
|
432aa3e10f6a1ef5d674f269db50e2f1faad2096
|
fed24f163d21408ef88588b8eaf7ce60d1809931
|
refs/heads/main
| 2023-02-11T21:02:03.784493
| 2021-01-03T10:07:07
| 2021-01-03T10:07:07
| 322,577,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 296
|
java
|
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class TestCase_com_newspaperdirect_cng_android__1477012784 {
@Test
public void testCase() throws Exception {
// $FF: Couldn't be decompiled
}
}
|
[
"sunxiaobiu@gmail.com"
] |
sunxiaobiu@gmail.com
|
124cba386a6d9d970348f018d0b2226abb842a6e
|
11ed2e3e853eaea0b3dc4c95e7cd06c8787e3a48
|
/src/main/java/gov/step/app/repository/InformationCorrectionEditLogRepository.java
|
365067a64425e39049dfc31ac2eb9205b5067bc8
|
[] |
no_license
|
JCN-DEV/master
|
3337a51dac56c61b75e4a31fea440ef36f6698c1
|
f9c456fde8c1f682cff851b3bcd0c9051f53da0d
|
refs/heads/master
| 2021-01-11T15:35:51.197579
| 2017-02-11T06:53:19
| 2017-02-11T06:53:19
| 81,628,866
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 368
|
java
|
package gov.step.app.repository;
import gov.step.app.domain.InformationCorrectionEditLog;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the InformationCorrectionEditLog entity.
*/
public interface InformationCorrectionEditLogRepository extends JpaRepository<InformationCorrectionEditLog,Long> {
}
|
[
"rana@devlead"
] |
rana@devlead
|
a350a02ed5d12f7d9eb9756875ed794ba7ad1de6
|
3d1bc9934ca6aceea49d4f63dd59432eef82c8eb
|
/oa_core/src/main/java/com/hotent/platform/controller/bpm/BpmBusLinkController.java
|
8dde91e4b5641ae3530c9e975f92b9682368dea5
|
[] |
no_license
|
sdzx3783/project2018
|
570c5d878cc0afb5bda93003b5dc66d78e42fb79
|
52e0cae652fbd83b5712636e15a2e14401a5a50a
|
refs/heads/master
| 2020-03-12T04:28:04.856156
| 2018-04-21T06:58:25
| 2018-04-21T06:58:25
| 130,445,510
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,064
|
java
|
package com.hotent.platform.controller.bpm;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.hotent.platform.annotion.Action;
import org.springframework.web.servlet.ModelAndView;
import com.hotent.core.util.UniqueIdUtil;
import com.hotent.core.web.util.RequestUtil;
import com.hotent.core.web.controller.BaseController;
import com.hotent.core.web.query.QueryFilter;
import com.hotent.core.util.StringUtil;
import net.sf.ezmorph.object.DateMorpher;
import net.sf.json.JSONObject;
import net.sf.json.util.JSONUtils;
import com.hotent.platform.model.bpm.BpmBusLink;
import com.hotent.platform.service.bpm.BpmBusLinkService;
import com.hotent.core.web.ResultMessage;
/**
*<pre>
* 对象功能:业务数据关联表 控制器类
* 开发公司:广州宏天软件有限公司
* 开发人员:csx
* 创建时间:2013-08-21 16:51:49
*</pre>
*/
@Controller
@RequestMapping("/platform/bpm/bpmBusLink/")
public class BpmBusLinkController extends BaseController
{
@Resource
private BpmBusLinkService bpmBusLinkService;
/**
* 添加或更新业务数据关联表。
* @param request
* @param response
* @param bpmBusLink 添加或更新的实体
* @param bindResult
* @param viewName
* @return
* @throws Exception
*/
@RequestMapping("save")
@Action(description="添加或更新业务数据关联表")
public void save(HttpServletRequest request, HttpServletResponse response) throws Exception
{
String resultMsg=null;
BpmBusLink bpmBusLink=getFormObject(request);
try{
if(bpmBusLink.getBusId()==null||bpmBusLink.getBusId()==0){
bpmBusLink.setBusId(UniqueIdUtil.genId());
bpmBusLinkService.add(bpmBusLink);
resultMsg="添加业务数据关联表成功";
}else{
bpmBusLinkService.update(bpmBusLink);
resultMsg="更新业务数据关联表成功";
}
writeResultMessage(response.getWriter(),resultMsg,ResultMessage.Success);
}catch(Exception e){
writeResultMessage(response.getWriter(),resultMsg+","+e.getMessage(),ResultMessage.Fail);
}
}
/**
* 取得 BpmBusLink 实体
* @param request
* @return
* @throws Exception
*/
protected BpmBusLink getFormObject(HttpServletRequest request) throws Exception {
JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher((new String[] { "yyyy-MM-dd" })));
String json=RequestUtil.getString(request, "json");
if(StringUtil.isEmpty(json))return null;
JSONObject obj = JSONObject.fromObject(json);
BpmBusLink bpmBusLink = (BpmBusLink)JSONObject.toBean(obj, BpmBusLink.class);
return bpmBusLink;
}
/**
* 取得业务数据关联表分页列表
* @param request
* @param response
* @param page
* @return
* @throws Exception
*/
@RequestMapping("list")
@Action(description="查看业务数据关联表分页列表")
public ModelAndView list(HttpServletRequest request,HttpServletResponse response) throws Exception
{
List<BpmBusLink> list=bpmBusLinkService.getAll(new QueryFilter(request,"bpmBusLinkItem"));
ModelAndView mv=this.getAutoView().addObject("bpmBusLinkList",list);
return mv;
}
/**
* 删除业务数据关联表
* @param request
* @param response
* @throws Exception
*/
@RequestMapping("del")
@Action(description="删除业务数据关联表")
public void del(HttpServletRequest request, HttpServletResponse response) throws Exception
{
String preUrl= RequestUtil.getPrePage(request);
ResultMessage message=null;
try{
Long[] lAryId =RequestUtil.getLongAryByStr(request, "busId");
bpmBusLinkService.delByIds(lAryId);
message=new ResultMessage(ResultMessage.Success, "删除业务数据关联表成功!");
}catch(Exception ex){
message=new ResultMessage(ResultMessage.Fail, "删除失败" + ex.getMessage());
}
addMessage(message, request);
response.sendRedirect(preUrl);
}
/**
* 编辑业务数据关联表
* @param request
* @param response
* @throws Exception
*/
@RequestMapping("edit")
@Action(description="编辑业务数据关联表")
public ModelAndView edit(HttpServletRequest request) throws Exception
{
Long busId=RequestUtil.getLong(request,"busId",0L);
String returnUrl=RequestUtil.getPrePage(request);
BpmBusLink bpmBusLink=bpmBusLinkService.getById(busId);
return getAutoView().addObject("bpmBusLink",bpmBusLink)
.addObject("returnUrl",returnUrl);
}
/**
* 取得业务数据关联表明细
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping("get")
@Action(description="查看业务数据关联表明细")
public ModelAndView get(HttpServletRequest request, HttpServletResponse response) throws Exception
{
long busId=RequestUtil.getLong(request,"busId");
BpmBusLink bpmBusLink = bpmBusLinkService.getById(busId);
return getAutoView().addObject("bpmBusLink", bpmBusLink);
}
}
|
[
"378377084@qq.com"
] |
378377084@qq.com
|
8783d9b9397ed80a474ac4c015271f4e2defc209
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_2/src/j/a/h/Calc_1_2_9074.java
|
73a94d0d47ad0a92b4cb9e153dd01a3a5b780eac
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 131
|
java
|
package j.a.h;
public class Calc_1_2_9074 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
c8b8be45be4f0fa52c55e79c4ae37007828d066b
|
822b6924c83a91b180e9e1740c6d18d424e75cfe
|
/src/main/java/alg4/Huffman.java
|
4a8ae3ec6d1ab83aa4c0d26fc3c4f7f6395705e8
|
[] |
no_license
|
itjun/algorithms-learning
|
501105620e2db6ae1acb0ad81842bd474eac93da
|
873f87c6f4fb53132caf9ed0fdbdda8cf0763c6d
|
refs/heads/main
| 2023-01-18T14:51:13.053583
| 2020-11-23T15:10:00
| 2020-11-23T15:10:00
| 98,192,749
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,793
|
java
|
/******************************************************************************
* Compilation: javac Huffman.java
* Execution: java Huffman - < input.txt (compress)
* Execution: java Huffman + < input.txt (expand)
* Dependencies: BinaryIn.java BinaryOut.java
* Data files: http://algs4.cs.princeton.edu/55compression/abra.txt
* http://algs4.cs.princeton.edu/55compression/tinytinyTale.txt
* http://algs4.cs.princeton.edu/55compression/medTale.txt
* http://algs4.cs.princeton.edu/55compression/tale.txt
*
* Compress or expand a binary input stream using the Huffman algorithm.
*
* % java Huffman - < abra.txt | java BinaryDump 60
* 010100000100101000100010010000110100001101010100101010000100
* 000000000000000000000000000110001111100101101000111110010100
* 120 bits
*
* % java Huffman - < abra.txt | java Huffman +
* ABRACADABRA!
*
******************************************************************************/
package alg4;
/**
* The {@code Huffman} class provides static methods for compressing
* and expanding a binary input using Huffman codes over the 8-bit extended
* ASCII alphabet.
* <p>
* For additional documentation,
* see <a href="http://algs4.cs.princeton.edu/55compress">Section 5.5</a> of
* <i>Algorithms, 4th Edition</i> by Robert Sedgewick and Kevin Wayne.
*
* @author Robert Sedgewick
* @author Kevin Wayne
*/
public class Huffman {
// alphabet size of extended ASCII
private static final int R = 256;
// Do not instantiate.
private Huffman() {
}
/**
* Reads a sequence of 8-bit bytes from standard input; compresses them
* using Huffman codes with an 8-bit alphabet; and writes the results
* to standard output.
*/
public static void compress() {
// read the input
String s = BinaryStdIn.readString();
char[] input = s.toCharArray();
// tabulate frequency counts
int[] freq = new int[R];
for (int i = 0; i < input.length; i++)
freq[input[i]]++;
// build Huffman trie
Node root = buildTrie(freq);
// build code table
String[] st = new String[R];
buildCode(st, root, "");
// print trie for decoder
writeTrie(root);
// print number of bytes in original uncompressed message
BinaryStdOut.write(input.length);
// use Huffman code to encode input
for (int i = 0; i < input.length; i++) {
String code = st[input[i]];
for (int j = 0; j < code.length(); j++) {
if (code.charAt(j) == '0') {
BinaryStdOut.write(false);
} else if (code.charAt(j) == '1') {
BinaryStdOut.write(true);
} else throw new IllegalStateException("Illegal state");
}
}
// close output stream
BinaryStdOut.close();
}
// build the Huffman trie given frequencies
private static Node buildTrie(int[] freq) {
// initialze priority queue with singleton trees
MinPQ<Node> pq = new MinPQ<Node>();
for (char i = 0; i < R; i++)
if (freq[i] > 0)
pq.insert(new Node(i, freq[i], null, null));
// special case in case there is only one character with a nonzero frequency
if (pq.size() == 1) {
if (freq['\0'] == 0) pq.insert(new Node('\0', 0, null, null));
else pq.insert(new Node('\1', 0, null, null));
}
// merge two smallest trees
while (pq.size() > 1) {
Node left = pq.delMin();
Node right = pq.delMin();
Node parent = new Node('\0', left.freq + right.freq, left, right);
pq.insert(parent);
}
return pq.delMin();
}
// write bitstring-encoded trie to standard output
private static void writeTrie(Node x) {
if (x.isLeaf()) {
BinaryStdOut.write(true);
BinaryStdOut.write(x.ch, 8);
return;
}
BinaryStdOut.write(false);
writeTrie(x.left);
writeTrie(x.right);
}
// make a lookup table from symbols and their encodings
private static void buildCode(String[] st, Node x, String s) {
if (!x.isLeaf()) {
buildCode(st, x.left, s + '0');
buildCode(st, x.right, s + '1');
} else {
st[x.ch] = s;
}
}
/**
* Reads a sequence of bits that represents a Huffman-compressed message from
* standard input; expands them; and writes the results to standard output.
*/
public static void expand() {
// read in Huffman trie from input stream
Node root = readTrie();
// number of bytes to write
int length = BinaryStdIn.readInt();
// decode using the Huffman trie
for (int i = 0; i < length; i++) {
Node x = root;
while (!x.isLeaf()) {
boolean bit = BinaryStdIn.readBoolean();
if (bit) x = x.right;
else x = x.left;
}
BinaryStdOut.write(x.ch, 8);
}
BinaryStdOut.close();
}
private static Node readTrie() {
boolean isLeaf = BinaryStdIn.readBoolean();
if (isLeaf) {
return new Node(BinaryStdIn.readChar(), -1, null, null);
} else {
return new Node('\0', -1, readTrie(), readTrie());
}
}
/**
* Sample client that calls {@code compress()} if the command-line
* argument is "-" an {@code expand()} if it is "+".
*
* @param args the command-line arguments
*/
public static void main(String[] args) {
if (args[0].equals("-")) compress();
else if (args[0].equals("+")) expand();
else throw new IllegalArgumentException("Illegal command line argument");
}
// Huffman trie node
private static class Node implements Comparable<Node> {
private final char ch;
private final int freq;
private final Node left, right;
Node(char ch, int freq, Node left, Node right) {
this.ch = ch;
this.freq = freq;
this.left = left;
this.right = right;
}
// is the node a leaf node?
private boolean isLeaf() {
assert ((left == null) && (right == null)) || ((left != null) && (right != null));
return (left == null) && (right == null);
}
// compare, based on frequency
public int compareTo(Node that) {
return this.freq - that.freq;
}
}
}
/******************************************************************************
* Copyright 2002-2016, Robert Sedgewick and Kevin Wayne.
*
* This file is part of algs4.jar, which accompanies the textbook
*
* Algorithms, 4th edition by Robert Sedgewick and Kevin Wayne,
* Addison-Wesley Professional, 2011, ISBN 0-321-57351-X.
* http://algs4.cs.princeton.edu
*
*
* algs4.jar 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.
*
* algs4.jar 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 algs4.jar. If not, see http://www.gnu.org/licenses.
******************************************************************************/
|
[
"l1091462907@gmail.com"
] |
l1091462907@gmail.com
|
7147ab34f40bee4b98b6ea5cb1590af6414f102f
|
e70abc02efbb8a7637eb3655f287b0a409cfa23b
|
/hyjf-api/src/main/java/com/hyjf/activity/mgm10/prizedraw/PrizeListResultBean.java
|
9778f50f09a5837e96cf46da7df58ce15aa7babb
|
[] |
no_license
|
WangYouzheng1994/hyjf
|
ecb221560460e30439f6915574251266c1a49042
|
6cbc76c109675bb1f120737f29a786fea69852fc
|
refs/heads/master
| 2023-05-12T03:29:02.563411
| 2020-05-19T13:49:56
| 2020-05-19T13:49:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,330
|
java
|
package com.hyjf.activity.mgm10.prizedraw;
import java.util.List;
import java.util.Map;
import com.hyjf.base.bean.BaseResultBean;
public class PrizeListResultBean extends BaseResultBean {
/**
* 此处为属性说明
*/
private static final long serialVersionUID = 1L;
/**
* 用户推荐星可用数
*/
private int recommendCount;
/**
* 抽奖消耗推荐星数量
*/
private int needCount;
/**
* 可参与抽奖次数
*/
private int canDrawCount;
private List<Map<String,Object>> prizeWinList;
public int getRecommendCount() {
return recommendCount;
}
public void setRecommendCount(int recommendCount) {
this.recommendCount = recommendCount;
}
public int getCanDrawCount() {
return canDrawCount;
}
public void setCanDrawCount(int canDrawCount) {
this.canDrawCount = canDrawCount;
}
public List<Map<String, Object>> getPrizeWinList() {
return prizeWinList;
}
public void setPrizeWinList(List<Map<String, Object>> prizeWinList) {
this.prizeWinList = prizeWinList;
}
public int getNeedCount() {
return needCount;
}
public void setNeedCount(int needCount) {
this.needCount = needCount;
}
}
|
[
"heshuying@hyjf.com"
] |
heshuying@hyjf.com
|
280039305ea3cf51b563469f7ac82be5986fc777
|
129f58086770fc74c171e9c1edfd63b4257210f3
|
/src/testcases/CWE190_Integer_Overflow/CWE190_Integer_Overflow__int_PropertiesFile_multiply_72b.java
|
24a4e5bd830e623d7d9234506513210bd05a9003
|
[] |
no_license
|
glopezGitHub/Android23
|
1bd0b6a6c7ce3c7439a74f1e4dcef2c4c0fac4ba
|
6215d0684c4fbdc7217ccfbedfccfca69824cc5e
|
refs/heads/master
| 2023-03-07T15:14:59.447795
| 2023-02-06T13:59:49
| 2023-02-06T13:59:49
| 6,856,387
| 0
| 3
| null | 2023-02-06T18:38:17
| 2012-11-25T22:04:23
|
Java
|
UTF-8
|
Java
| false
| false
| 2,422
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_PropertiesFile_multiply_72b.java
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-72b.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: PropertiesFile Read data from a .properties file (in property named data)
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: multiply
* GoodSink: Ensure there will not be an overflow before multiplying data by 2
* BadSink : If data is positive, multiply by 2, which can cause an overflow
* Flow Variant: 72 Data flow: data passed in a Vector from one method to another in different source files in the same package
*
* */
package testcases.CWE190_Integer_Overflow;
import testcasesupport.*;
import java.util.Vector;
import java.sql.*;
import javax.servlet.http.*;
public class CWE190_Integer_Overflow__int_PropertiesFile_multiply_72b
{
public void bad_sink(Vector<Integer> data_vector ) throws Throwable
{
int data = data_vector.remove(2);
if(data > 0) /* ensure we won't have an underflow */
{
/* POTENTIAL FLAW: if (data*2) > Integer.MAX_VALUE, this will overflow */
int result = (int)(data * 2);
IO.writeLine("result: " + result);
}
}
/* goodG2B() - use GoodSource and BadSink */
public void goodG2B_sink(Vector<Integer> data_vector ) throws Throwable
{
int data = data_vector.remove(2);
if(data > 0) /* ensure we won't have an underflow */
{
/* POTENTIAL FLAW: if (data*2) > Integer.MAX_VALUE, this will overflow */
int result = (int)(data * 2);
IO.writeLine("result: " + result);
}
}
/* goodB2G() - use BadSource and GoodSink */
public void goodB2G_sink(Vector<Integer> data_vector ) throws Throwable
{
int data = data_vector.remove(2);
if(data > 0) /* ensure we won't have an underflow */
{
/* FIX: Add a check to prevent an overflow from occurring */
if (data < (Integer.MAX_VALUE/2))
{
int result = (int)(data * 2);
IO.writeLine("result: " + result);
}
else
{
IO.writeLine("data value is too large to perform multiplication.");
}
}
}
}
|
[
"guillermo.pando@gmail.com"
] |
guillermo.pando@gmail.com
|
d7be7a2a18d78df069213281fc58eed2e7c4296e
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_3/src/b/j/h/f/Calc_1_3_19753.java
|
e979e988bf3a065565423ae1c1232ff020a26f47
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package b.j.h.f;
public class Calc_1_3_19753 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
fbf75078811ceac23746d0d02ad2aea5f91c868d
|
821e76df1e35da8c0f68d529066e675bb0a8bcec
|
/src/com/BigHomeWork/SecondHomeWork/Test.java
|
09853e53fa9afa2c02d61bcccdc06b988a9d5f69
|
[] |
no_license
|
StudyBoy007/FirstProject
|
014baccdea37ec7ae0cbbaa66b743bbf0c5146a9
|
4c0c06f436ef5b71e9ff35f6d3ab1db447b619ed
|
refs/heads/master
| 2020-06-09T13:26:32.149524
| 2019-07-02T00:43:30
| 2019-07-02T00:43:30
| 193,444,709
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,785
|
java
|
package com.BigHomeWork.SecondHomeWork;
/**
* Create by czq
* time on 2019/6/9 21:53
*/
import java.util.Scanner;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
StudentAdmin admin = new StudentAdmin();
System.out.println(" 请输入学生的人数: ");
int studentNumber = input.nextInt();
Student[] students = new Student[studentNumber];
while (true) {
System.out.println(" 请选择要执行的功能(输入编号) :");
System.out.println("10 :添加一个学生 ");
System.out.println("11: 查找一个学生 ");
System.out.println("12 :根据学生编号更新学生基本信息 ");
System.out.println("13: 根据学生编号删除学生 ");
System.out.println("14 :根据编号输入学生各门科的成绩 ");
System.out.println("15: 根据某门成绩进行排序 ");
System.out.println("16 :根据总分进行排序 ");
System.out.println("99 :退出系统 ");
int number = input.nextInt();
if (number == 10) {
System.out.println("-- 执行添加学生操作 --");
System.out.println(" 请输入要添加学生的姓名: ");
String name = input.next();
System.out.println(" 请输入要添加学生的年龄: ");
int age = input.nextInt();
admin.addStudent(name, age, students);
admin.print(students);
} else if (number == 11) {
System.out.println("-- 执行查找学生操作 --");
System.out.println(" 请输入要查找学生的编号 :");
admin.selectStudent(input.nextInt(), students);
} else if (number == 12) {
System.out.println(" 执行更新学生信息操作 ");
System.out.println(" 请输入要修改信息学生的编号 ");
int id = input.nextInt();
System.out.println(" 请输入修改后学生的姓名: ");
String name = input.next();
System.out.println(" 请输入修改后学生的年龄: ");
int age = input.nextInt();
admin.updateStudent(id, name, age, students);
admin.print(students);
} else if (number == 13) {
System.out.println("-- 执行删除操作 --");
System.out.println(" 请输入要删除学生的编号: ");
int id = input.nextInt();
admin.deleteStudent(id, students);
} else if (number == 14) {
System.out.println("-- 执行输入学生成绩操作 --");
System.out.println(" 请输入要输入成绩学生的编号 :");
int id = input.nextInt();
admin.inputScore(id, students, input);
} else if (number == 15) {
System.out.println(" 执行成绩排序操作 ");
System.out.println(" 请选择用什么成绩排序: ( 1:java 2:charp 3:html 4:sql )");
int score = input.nextInt();
admin.scoreSort(score, students);
} else if (number == 16) {
System.out.println(" 执行总分排序操作 ");
admin.sumSort(students);
} else if (number == 99) {
System.out.println(" 退出系统成功! !!");
break; //System.exit(0);
} else {
System.out.println(" 输入有误,请重新输入 ");
}
}
}
}
|
[
"1045112166@qq.com"
] |
1045112166@qq.com
|
f65f8f26f57e253f175bd0c6149dd12ca0009f5a
|
64e7dd8dffff0f2d76007760685d6865720babf8
|
/LeetCode/BestTimetoBuyandSellStock.java
|
664229773465a2a9f7503f0268a6cad01a696e39
|
[] |
no_license
|
aranjan1002/code4life
|
96f7781d676e04adad59c38321027ac903f414fe
|
3415d1711f2269ea3965f0ec3b412d93c934b077
|
refs/heads/master
| 2021-01-16T21:24:26.817307
| 2018-03-01T12:54:05
| 2018-03-01T12:54:05
| 40,381,858
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 730
|
java
|
public class BestTimetoBuyandSellStock {
public int maxProfit(int[] prices) {
int max_profit = 0;
for (int i = 0; i < prices.length; i++) {
int curr_max = findMaxProfit(prices, i);
if (curr_max > max_profit) {
max_profit = curr_max;
}
}
return max_profit;
}
public int findMaxProfit(int[] prices, int idx) {
int buy_price = prices[idx];
int curr_max = 0;
int max = 0;
for (int i = idx + 1; i < prices.length; i++) {
curr_max = prices[i] - buy_price;
if (curr_max > max) {
max = curr_max;
}
}
return max;
}
}
|
[
"anshu.ranjan1002@gmail.com"
] |
anshu.ranjan1002@gmail.com
|
6741a3fb909d1f6a6f871b4775f2c7a3169db49a
|
8b0ae134884d6f84217587194a2a0f775866ef55
|
/Vivo_y93/src/main/java/com/vivo/services/cust/database/BrowserAttrDbHelper.java
|
5c2bf41e594cb0db74a29b030b4444349e16b091
|
[] |
no_license
|
wanbing/VivoFramework
|
69032750f376178d27d0d1ac170cf89bba907cc7
|
8d31381ecc788afb023960535bafbfa3b7df7d9b
|
refs/heads/master
| 2023-05-11T16:57:04.582985
| 2019-02-27T04:43:44
| 2019-02-27T04:43:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,246
|
java
|
package com.vivo.services.cust.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import android.util.Log;
import com.vivo.services.cust.data.BrowserAttr;
import java.util.List;
public class BrowserAttrDbHelper extends CustomDataBase<BrowserAttr> {
private final String TAG = "BrowserAttrDbHelper";
public BrowserAttrDbHelper(Context context) {
super(context);
}
public BrowserAttr extractData(SQLiteDatabase sqlDB, Cursor cursor) {
boolean z;
boolean z2 = true;
BrowserAttr browser = new BrowserAttr(cursor.getString(cursor.getColumnIndex("URL")));
if (cursor.getInt(cursor.getColumnIndex("BLACKLIST")) == 1) {
z = true;
} else {
z = false;
}
browser.blackList = z;
if (cursor.getInt(cursor.getColumnIndex("WHITELIST")) != 1) {
z2 = false;
}
browser.whiteList = z2;
browser.custType = cursor.getString(cursor.getColumnIndex("CUSTTYPE"));
return browser;
}
public void save(BrowserAttr browser) {
if (browser != null && (TextUtils.isEmpty(browser.url) ^ 1) != 0) {
Log.d("BrowserAttrDbHelper", "save BrowserAttr url:" + browser.url);
SQLiteDatabase localSQLiteDatabase = this.mDBHelper.getWritableDatabase();
ContentValues localContentValues = new ContentValues();
localContentValues.put("URL", browser.url);
localContentValues.put("BLACKLIST", Boolean.valueOf(browser.blackList));
localContentValues.put("WHITELIST", Boolean.valueOf(browser.whiteList));
localContentValues.put("CUSTTYPE", browser.custType);
localSQLiteDatabase.replace(VivoCustomDbHelper.TABLE_BROWSER, null, localContentValues);
}
}
public void save(List<BrowserAttr> list) {
for (BrowserAttr browser : list) {
save(browser);
}
}
public int delete(BrowserAttr browser) {
return -1;
}
public List<BrowserAttr> getAllBrowsers() {
return find("select * from BROWSER_RESTRICTION");
}
}
|
[
"lygforbs0@gmail.com"
] |
lygforbs0@gmail.com
|
246d9e5b7ed9e7103844247855f0e90f600e3600
|
9539e7142eb7ec92d2a94239070e81283eb5476e
|
/score-http/score-http/src/main/java/org/oagi/score/gateway/http/api/cc_management/data/CcCreateResponse.java
|
5ec4794c3ad646967ff2b6ad8e3ccf4175fce7ec
|
[
"MIT"
] |
permissive
|
OAGi/Score
|
4040b1fe508bc17e853755d72c4f363d5f4cc97b
|
36f9f65bcc51b6764cb5ec5919dbc96cf9f987d9
|
refs/heads/master
| 2023-08-31T03:59:58.456923
| 2023-08-28T02:37:11
| 2023-08-28T02:37:11
| 20,700,485
| 8
| 9
|
MIT
| 2023-08-28T02:37:12
| 2014-06-10T20:27:01
|
Java
|
UTF-8
|
Java
| false
| false
| 189
|
java
|
package org.oagi.score.gateway.http.api.cc_management.data;
import lombok.Data;
import java.math.BigInteger;
@Data
public class CcCreateResponse {
private BigInteger manifestId;
}
|
[
"hakju.oh@gmail.com"
] |
hakju.oh@gmail.com
|
fb6b6a89a2462e97c71785231dcbf0b9987b92dd
|
124b4d2ff25aaeb4469d7ce8db2c106bb92c8eae
|
/gantt/src/net/sourceforge/ganttproject/action/project/OpenURLAction.java
|
91c2fa3c084543dc50a855ccc1a630f4d38348ab
|
[] |
no_license
|
mouna2/gantt
|
b7ab399f9b06ce4548a6587a515de9121f8904bb
|
58d5ab6192b24b6ee9bdc9840e9fa21d43ad8170
|
refs/heads/master
| 2023-01-13T14:13:47.790207
| 2020-11-14T15:53:41
| 2020-11-14T15:53:41
| 311,211,566
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 776
|
java
|
/*
* Created on 07.10.2005
*/
package net.sourceforge.ganttproject.action.project;
import java.awt.event.ActionEvent;
import GanttProject;
import net.sourceforge.ganttproject.action.GPAction;
public class OpenURLAction extends GPAction {
private final GanttProject myMainFrame;
OpenURLAction(GanttProject mainFrame) {
myMainFrame = mainFrame;
}
protected String getIconFilePrefix() {
return null;
}
public void actionPerformed(ActionEvent e) {
if (myMainFrame.checkCurrentProject()) {
myMainFrame.openURL();
}
}
protected String getLocalizedName() {
return getI18n("openFromServer");
}
protected String getTooltipText() {
return getLocalizedName();
}
}
|
[
"mounahammoudi2@gmail.com"
] |
mounahammoudi2@gmail.com
|
069793118bed96dba0fbcdcc18b5517967643d47
|
1250cd3e8f99821f40757610e06e3dc9ee00ee81
|
/indicators-resolver/src/main/java/com/datapath/indicatorsresolver/service/checkIndicators/Risk_1_4_AprilExtractor.java
|
6374e3aea0fb165d630d26d0bf0da423d3fc2293
|
[] |
no_license
|
DataPathAnalytics/UA_Risk_indicators_for_ex-ante_monitoring
|
1a34927795dd29e044a4e864bbcaf35f1af832e1
|
122234f1793fb88bc27dee88971b0e630d2dbe8e
|
refs/heads/master
| 2021-11-24T22:56:14.643789
| 2021-10-22T12:03:06
| 2021-10-22T12:03:06
| 168,529,089
| 3
| 2
| null | 2020-12-17T17:27:15
| 2019-01-31T13:24:35
|
Java
|
UTF-8
|
Java
| false
| false
| 7,086
|
java
|
package com.datapath.indicatorsresolver.service.checkIndicators;
import com.datapath.indicatorsresolver.model.TenderDimensions;
import com.datapath.indicatorsresolver.model.TenderIndicator;
import com.datapath.persistence.entities.Indicator;
import com.datapath.persistence.entities.nbu.ExchangeRate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.sql.Timestamp;
import java.time.Period;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.*;
import static com.datapath.indicatorsresolver.IndicatorConstants.UA_ZONE;
import static com.datapath.persistence.utils.DateUtils.toZonedDateTime;
import static java.util.Objects.isNull;
import static java.util.Objects.nonNull;
@Service
@Slf4j
public class Risk_1_4_AprilExtractor extends BaseExtractor {
private static final String INDICATOR_CODE = "RISK-1-4";
private static final Integer EUR_LIMIT = 133000;
private boolean indicatorsResolverAvailable;
public Risk_1_4_AprilExtractor() {
indicatorsResolverAvailable = true;
}
public void checkIndicator(ZonedDateTime dateTime) {
try {
indicatorsResolverAvailable = false;
Indicator indicator = getIndicator(INDICATOR_CODE);
if (indicator.isActive()) {
checkIndicator(indicator, dateTime);
}
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
} finally {
indicatorsResolverAvailable = true;
}
}
@Async
@Scheduled(cron = "${risk-1-4.cron}")
public void checkIndicator() {
if (!indicatorsResolverAvailable) {
log.info(String.format(INDICATOR_NOT_AVAILABLE_MESSAGE_FORMAT, INDICATOR_CODE));
return;
}
try {
indicatorsResolverAvailable = false;
Indicator indicator = getIndicator(INDICATOR_CODE);
if (indicator.isActive()) {
ZonedDateTime dateTime = isNull(indicator.getLastCheckedDateCreated())
? ZonedDateTime.now(ZoneId.of("UTC")).minus(Period.ofYears(1)).withHour(0)
: indicator.getLastCheckedDateCreated();
checkIndicator(indicator, dateTime);
}
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
} finally {
indicatorsResolverAvailable = true;
}
}
private void checkIndicator(Indicator indicator, ZonedDateTime dateTime) {
log.info("{} indicator started", INDICATOR_CODE);
while (true) {
List<Object[]> tendersInfo = tenderRepository
.getIndicator1_4TenderData(
dateTime,
Arrays.asList(indicator.getProcedureStatuses()),
Arrays.asList(indicator.getProcedureTypes()),
Arrays.asList(indicator.getProcuringEntityKind()));
if (tendersInfo.isEmpty()) {
break;
}
Set<String> tenders = new HashSet<>();
ZonedDateTime maxTenderDateCreated = ZonedDateTime.now();
List<TenderIndicator> tenderIndicators = new ArrayList<>();
for (Object[] tenderData : tendersInfo) {
String tenderId = tenderData[0].toString();
TenderDimensions tenderDimensions = new TenderDimensions(tenderId);
log.info("Process tender {}", tenderId);
Integer indicatorValue;
try {
String currency = tenderData[1].toString();
double amount = Double.parseDouble(tenderData[2].toString());
Timestamp timestampStartDate = (Timestamp) tenderData[3];
maxTenderDateCreated = toZonedDateTime((Timestamp) tenderData[4]);
tenders.add(tenderId);
if (currency.equals(EUR_CURRENCY)) {
indicatorValue = amount > EUR_LIMIT ? RISK : NOT_RISK;
} else {
if (isNull(timestampStartDate)) {
indicatorValue = IMPOSSIBLE_TO_DETECT;
} else {
ZonedDateTime zonedDateTime = toZonedDateTime(timestampStartDate)
.withZoneSameInstant(UA_ZONE)
.withHour(0)
.withMinute(0)
.withSecond(0)
.withNano(0);
if (currency.equals(UAH_CURRENCY)) {
ExchangeRate euroRate = exchangeRateService.getOneByCodeAndDate(EUR_CURRENCY, zonedDateTime);
if (nonNull(euroRate)) {
indicatorValue = amount / euroRate.getRate() > EUR_LIMIT ? RISK : NOT_RISK;
} else {
indicatorValue = IMPOSSIBLE_TO_DETECT;
}
} else {
ExchangeRate currencyRate = exchangeRateService.getOneByCodeAndDate(currency, zonedDateTime);
ExchangeRate euroRate = exchangeRateService.getOneByCodeAndDate(EUR_CURRENCY, zonedDateTime);
if (nonNull(currencyRate) && nonNull(euroRate)) {
amount = amount * currencyRate.getRate() / euroRate.getRate();
indicatorValue = amount > EUR_LIMIT ? RISK : NOT_RISK;
} else {
indicatorValue = IMPOSSIBLE_TO_DETECT;
}
}
}
}
} catch (Exception e) {
logService.tenderIndicatorFailed(INDICATOR_CODE, tenderId, e);
indicatorValue = IMPOSSIBLE_TO_DETECT;
}
tenderIndicators.add(new TenderIndicator(tenderDimensions, indicator, indicatorValue));
}
Map<String, TenderDimensions> dimensionsMap = getTenderDimensionsWithIndicatorLastIteration(tenders, INDICATOR_CODE);
tenderIndicators.forEach(tenderIndicator -> {
tenderIndicator.setTenderDimensions(dimensionsMap.get(tenderIndicator.getTenderDimensions().getId()));
uploadIndicator(tenderIndicator);
});
indicator.setLastCheckedDateCreated(maxTenderDateCreated);
indicatorRepository.save(indicator);
dateTime = maxTenderDateCreated;
}
ZonedDateTime now = ZonedDateTime.now();
indicator.setDateChecked(now);
indicatorRepository.save(indicator);
log.info("{} indicator finished", INDICATOR_CODE);
}
}
|
[
"eduard.david9@gmail.com"
] |
eduard.david9@gmail.com
|
1f89f8f6e4c0c93ad5cb7807212c3a76d0a7b196
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/16/16_a861e30033822bed031f275103f9d7264a2b6ec6/JACSS/16_a861e30033822bed031f275103f9d7264a2b6ec6_JACSS_t.java
|
f3da203e951f0f4534cf2676e98279d4afce3eb1
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,788
|
java
|
package com.wickedspiral.jacss;
import com.wickedspiral.jacss.lexer.Lexer;
import com.wickedspiral.jacss.lexer.UnrecognizedCharacterException;
import com.wickedspiral.jacss.parser.Parser;
import org.kohsuke.args4j.Argument;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.Pattern;
/**
* @author wasche
* @since 2011.08.05
*/
public class JACSS implements Runnable
{
private static class CLI
{
private static final String REGEX_FROM = "-gen.css$";
private static final String REGEX_TO = "-c.css";
private static final int NUM_THREADS = 1;
@SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"})
@Argument(required=true, metaVar="FILE", usage="List of files to compress")
private List<File> files;
@Option(name="-r", aliases = {"--regex-from"}, required=false, metaVar="REGEXFROM",
usage="Regex to replace with REGEXTO in new file names (default: " + REGEX_FROM + ")")
private String regexFrom = REGEX_FROM;
@Option(name="-t", aliases={"--regex-to"}, required=false, metaVar="REGEXTO",
usage="Regex to replace REGEXFROM with, uses Java's Matcher.replace (default: " + REGEX_TO + ")")
private String regexTo = REGEX_TO;
@Option(name="-j", aliases={"--threads"}, required=false, metaVar="THREADS",
usage="Number of threads to use (default: " + NUM_THREADS + ")")
private int numThreads = NUM_THREADS;
@Option(name="-v", aliases={"--verbose"}, required=false, metaVar="VERBOSE",
usage="Print debugging information")
private boolean verbose = false;
@Option(name="-d", aliases={"--debug"}, required=false, metaVar="DEBUG",
usage="Print additional debugging information")
private boolean debug = false;
@Option(name="-f", aliases={"--force"}, required=false, metaVar="FORCE",
usage="Force re-compression")
private boolean force = false;
@Option(name = "-O", aliases = {"--stdout"}, required = false, usage = "Print to stdout instead of to file")
private boolean stdout = false;
@Option(name="--keep-trailing-semicolons", required = false,
usage = "Do not strip commas on last style of a rule")
private boolean keepTailingSemicolons = false;
@Option(name = "--no-collapse-zeroes", required = false,
usage = "Do not drop leading zero in floats less than 1")
private boolean noCollapseZeroes = false;
@Option(name = "--no-collapse-none", required = false,
usage = "Do not collapse none to 0")
private boolean noCollapseNone = false;
public Pattern getFromPattern()
{
return Pattern.compile(regexFrom == null ? REGEX_FROM : regexFrom);
}
}
private static final int EXIT_STATUS_INVALID_ARG = 1;
private static final int EXIT_STATUS_INVALID_FILE = 2;
private static final int EXIT_STATUS_TIMEOUT = 3;
private static final int EXIT_STATUS_COMPRESSION_FAILED = 4;
private static final AtomicInteger numFailures = new AtomicInteger();
private File source;
private File target;
private CLI cli;
public JACSS(File file, Pattern from, CLI cli) throws FileNotFoundException
{
this.cli = cli;
source = file;
if (!source.isFile())
{
throw new FileNotFoundException(source.toString());
}
String filename = from.matcher(source.toString()).replaceAll(cli.regexTo);
target = new File(filename);
}
public void run()
{
if (cli.force || !target.exists() || target.lastModified() < source.lastModified())
{
if (cli.verbose) System.err.println("Compressing " + source + " to " + target);
try(
FileInputStream in = new FileInputStream(source);
OutputStream out = cli.stdout ? System.out : new FileOutputStream(target)
)
{
Parser parser = new Parser(
out,
cli.debug, cli.keepTailingSemicolons, cli.noCollapseZeroes, cli.noCollapseNone
);
Lexer lexer = new Lexer();
lexer.addTokenListener(parser);
lexer.parse(in);
}
catch (Exception e)
{
numFailures.incrementAndGet();
System.err.println("Compression failed for " + source);
e.printStackTrace(System.err);
}
}
else
{
if (cli.verbose) System.err.println("Skipping " + target);
}
}
public static void main(String[] args)
{
CLI cli = new CLI();
CmdLineParser parser = new CmdLineParser(cli);
try
{
parser.parseArgument(args);
}
catch (CmdLineException e)
{
System.err.println(e.getMessage());
parser.printUsage(System.err);
System.exit(EXIT_STATUS_INVALID_ARG);
}
Pattern from = cli.getFromPattern();
if (cli.debug) System.err.println("Debug mode enabled.");
ExecutorService pool = Executors.newFixedThreadPool(cli.numThreads);
for (File file : cli.files)
{
try
{
pool.submit(new JACSS(file, from, cli));
}
catch (FileNotFoundException e)
{
System.err.println("Could not find file: " + e.getMessage());
pool.shutdownNow();
System.exit(EXIT_STATUS_INVALID_FILE);
}
}
pool.shutdown();
try
{
pool.awaitTermination(2, TimeUnit.MINUTES);
}
catch (InterruptedException e)
{
System.err.println("ERROR: Timed out waiting for threads to finish.");
System.exit(EXIT_STATUS_TIMEOUT);
}
System.exit(numFailures.get() == 0 ? 0 : EXIT_STATUS_COMPRESSION_FAILED);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
958037a4ef744c73e10450469ed097bcc0c68c4c
|
1340c26a0ba083d25a8665184c51e4b4ae4ae1c2
|
/test3code/src/test3/q08/q08.java
|
4970c414addda8093b5c2638dd3aac0142e3addf
|
[] |
no_license
|
javaschoolrzn4/test3
|
24d48b0243a420e4fe58043c4067b05baedb9c66
|
773bca04843868269eb3b6cf99e66a8567294cd5
|
refs/heads/master
| 2020-04-29T06:52:50.710589
| 2019-03-17T06:23:36
| 2019-03-17T06:23:36
| 175,933,486
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 639
|
java
|
package test3.q08;
class TaskBase {
int getStatusCode(Object obj) throws NullPointerException {
if(obj != null ) return 1;
else return 0;
}
}
class ParallelTask extends TaskBase {
//override getStatusCode method.
}
/*
Which of the following statements are valid?
Select 2 options:
A. Overriding method can take String as a parameter.
B. Overriding method can return a long instead of int.
!C. Overriding method can throw any RuntimeException.
!D. Overriding method cannot throw any checked exception.
E. Overriding method may declare the return type as byte.
*/
|
[
"you@example.com"
] |
you@example.com
|
d439ed032da2127265576adc980beb5e31284183
|
c6aa94983f3c8f82954463af3972ae06b30396a7
|
/springcloud_spring_cloud2/eureka/eureka-feign-client/src/main/java/com/forezp/eurekafeignclient/service/EurekaClientFeignInf.java
|
224ef9a8ad8c0d1f036987915120fd91b4b402c4
|
[] |
no_license
|
dobulekill/jun_springcloud
|
f01358caacb1b04f57908dccc6432d0a5e17745e
|
33248f65301741ed97a24b978a5c22d5d6c052fb
|
refs/heads/master
| 2023-01-24T13:24:59.282130
| 2020-11-25T17:30:47
| 2020-11-25T17:30:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 580
|
java
|
package com.forezp.eurekafeignclient.service;
import com.forezp.eurekafeignclient.config.FeignConfig;
import com.forezp.eurekafeignclient.config.HiHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "eureka-client",configuration = FeignConfig.class,
fallback = HiHystrix.class)
public interface EurekaClientFeignInf {
@GetMapping("/hi")
String sayHiFromClientEureka(@RequestParam(value = "name") String name);
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
35f6a8d3edf96fe63ce1247833a38a74ce8097d5
|
369270a14e669687b5b506b35895ef385dad11ab
|
/java.xml.bind/com/sun/xml/internal/fastinfoset/stax/events/StAXEventReader.java
|
3436928e86f92983aa8df8368feb55e62c84cf96
|
[] |
no_license
|
zcc888/Java9Source
|
39254262bd6751203c2002d9fc020da533f78731
|
7776908d8053678b0b987101a50d68995c65b431
|
refs/heads/master
| 2021-09-10T05:49:56.469417
| 2018-03-20T06:26:03
| 2018-03-20T06:26:03
| 125,970,208
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,672
|
java
|
/*
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* THIS FILE WAS MODIFIED BY SUN MICROSYSTEMS, INC.
*/
package com.sun.xml.internal.fastinfoset.stax.events;
import com.sun.xml.internal.fastinfoset.stax.*;
import java.util.NoSuchElementException;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.events.XMLEvent;
import javax.xml.stream.util.XMLEventAllocator;
import com.sun.xml.internal.fastinfoset.CommonResourceBundle;
public class StAXEventReader implements javax.xml.stream.XMLEventReader{
protected XMLStreamReader _streamReader ;
protected XMLEventAllocator _eventAllocator;
private XMLEvent _currentEvent; //the current event
private XMLEvent[] events = new XMLEvent[3];
private int size = 3;
private int currentIndex = 0;
private boolean hasEvent = false; //true when current event exists, false initially & at end
//only constructor will do because we delegate everything to underlying XMLStreamReader
public StAXEventReader(XMLStreamReader reader) throws XMLStreamException {
_streamReader = reader ;
_eventAllocator = (XMLEventAllocator)reader.getProperty(XMLInputFactory.ALLOCATOR);
if(_eventAllocator == null){
_eventAllocator = new StAXEventAllocatorBase();
}
//initialize
if (_streamReader.hasNext())
{
_streamReader.next();
_currentEvent =_eventAllocator.allocate(_streamReader);
events[0] = _currentEvent;
hasEvent = true;
} else {
throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.noElement"));
}
}
public boolean hasNext() {
return hasEvent;
}
public XMLEvent nextEvent() throws XMLStreamException {
XMLEvent event = null;
XMLEvent nextEvent = null;
if (hasEvent)
{
event = events[currentIndex];
events[currentIndex] = null;
if (_streamReader.hasNext())
{
//advance and read the next
_streamReader.next();
nextEvent = _eventAllocator.allocate(_streamReader);
if (++currentIndex==size)
currentIndex = 0;
events[currentIndex] = nextEvent;
hasEvent = true;
} else {
_currentEvent = null;
hasEvent = false;
}
return event;
}
else{
throw new NoSuchElementException();
}
}
public void remove(){
//stream reader is read-only.
throw new java.lang.UnsupportedOperationException();
}
public void close() throws XMLStreamException {
_streamReader.close();
}
/** Reads the content of a text-only element. Precondition:
* the current event is START_ELEMENT. Postcondition:
* The current event is the corresponding END_ELEMENT.
* @throws XMLStreamException if the current event is not a START_ELEMENT
* or if a non text element is encountered
*/
public String getElementText() throws XMLStreamException {
if(!hasEvent) {
throw new NoSuchElementException();
}
if(!_currentEvent.isStartElement()) {
StAXDocumentParser parser = (StAXDocumentParser)_streamReader;
return parser.getElementText(true);
} else {
return _streamReader.getElementText();
}
}
/** Get the value of a feature/property from the underlying implementation
* @param name The name of the property
* @return The value of the property
* @throws IllegalArgumentException if the property is not supported
*/
public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException {
return _streamReader.getProperty(name) ;
}
/** Skips any insignificant space events until a START_ELEMENT or
* END_ELEMENT is reached. If anything other than space characters are
* encountered, an exception is thrown. This method should
* be used when processing element-only content because
* the parser is not able to recognize ignorable whitespace if
* the DTD is missing or not interpreted.
* @throws XMLStreamException if anything other than space characters are encountered
*/
public XMLEvent nextTag() throws XMLStreamException {
if(!hasEvent) {
throw new NoSuchElementException();
}
StAXDocumentParser parser = (StAXDocumentParser)_streamReader;
parser.nextTag(true);
return _eventAllocator.allocate(_streamReader);
}
//XMLEventReader extends Iterator;
public Object next() {
try{
return nextEvent();
}catch(XMLStreamException streamException){
return null;
}
}
public XMLEvent peek() throws XMLStreamException{
if (!hasEvent)
throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.noElement"));
_currentEvent = events[currentIndex];
return _currentEvent;
}
public void setAllocator(XMLEventAllocator allocator) {
if (allocator == null)
throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.nullXMLEventAllocator"));
_eventAllocator = allocator;
}
}
|
[
"841617433@qq.com"
] |
841617433@qq.com
|
a1ce7ad4ae0bd424d2e0d184d38adf6856c5597d
|
0ac05e3da06d78292fdfb64141ead86ff6ca038f
|
/OSWE/oswe/openCRX/rtjar/rt.jar.src/javax/xml/xpath/XPathFactory.java
|
da6c5f53ab621de7836f3c599a958dfcf97e428d
|
[] |
no_license
|
qoo7972365/timmy
|
31581cdcbb8858ac19a8bb7b773441a68b6c390a
|
2fc8baba4f53d38dfe9c2b3afd89dcf87cbef578
|
refs/heads/master
| 2023-07-26T12:26:35.266587
| 2023-07-17T12:35:19
| 2023-07-17T12:35:19
| 353,889,195
| 7
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,487
|
java
|
/* */ package javax.xml.xpath;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public abstract class XPathFactory
/* */ {
/* */ public static final String DEFAULT_PROPERTY_NAME = "javax.xml.xpath.XPathFactory";
/* */ public static final String DEFAULT_OBJECT_MODEL_URI = "http://java.sun.com/jaxp/xpath/dom";
/* 66 */ private static SecuritySupport ss = new SecuritySupport();
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static XPathFactory newInstance() {
/* */ try {
/* 96 */ return newInstance("http://java.sun.com/jaxp/xpath/dom");
/* 97 */ } catch (XPathFactoryConfigurationException xpathFactoryConfigurationException) {
/* 98 */ throw new RuntimeException("XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: " + xpathFactoryConfigurationException
/* */
/* */
/* */
/* 102 */ .toString());
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static XPathFactory newInstance(String uri) throws XPathFactoryConfigurationException {
/* 173 */ if (uri == null) {
/* 174 */ throw new NullPointerException("XPathFactory#newInstance(String uri) cannot be called with uri == null");
/* */ }
/* */
/* */
/* 178 */ if (uri.length() == 0) {
/* 179 */ throw new IllegalArgumentException("XPathFactory#newInstance(String uri) cannot be called with uri == \"\"");
/* */ }
/* */
/* */
/* 183 */ ClassLoader classLoader = ss.getContextClassLoader();
/* */
/* 185 */ if (classLoader == null)
/* */ {
/* 187 */ classLoader = XPathFactory.class.getClassLoader();
/* */ }
/* */
/* 190 */ XPathFactory xpathFactory = (new XPathFactoryFinder(classLoader)).newFactory(uri);
/* */
/* 192 */ if (xpathFactory == null) {
/* 193 */ throw new XPathFactoryConfigurationException("No XPathFactory implementation found for the object model: " + uri);
/* */ }
/* */
/* */
/* */
/* 198 */ return xpathFactory;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static XPathFactory newInstance(String uri, String factoryClassName, ClassLoader classLoader) throws XPathFactoryConfigurationException {
/* 249 */ ClassLoader cl = classLoader;
/* */
/* 251 */ if (uri == null) {
/* 252 */ throw new NullPointerException("XPathFactory#newInstance(String uri) cannot be called with uri == null");
/* */ }
/* */
/* */
/* 256 */ if (uri.length() == 0) {
/* 257 */ throw new IllegalArgumentException("XPathFactory#newInstance(String uri) cannot be called with uri == \"\"");
/* */ }
/* */
/* */
/* 261 */ if (cl == null) {
/* 262 */ cl = ss.getContextClassLoader();
/* */ }
/* */
/* 265 */ XPathFactory f = (new XPathFactoryFinder(cl)).createInstance(factoryClassName);
/* */
/* 267 */ if (f == null) {
/* 268 */ throw new XPathFactoryConfigurationException("No XPathFactory implementation found for the object model: " + uri);
/* */ }
/* */
/* */
/* */
/* 273 */ if (f.isObjectModelSupported(uri)) {
/* 274 */ return f;
/* */ }
/* 276 */ throw new XPathFactoryConfigurationException("Factory " + factoryClassName + " doesn't support given " + uri + " object model");
/* */ }
/* */
/* */ public abstract boolean isObjectModelSupported(String paramString);
/* */
/* */ public abstract void setFeature(String paramString, boolean paramBoolean) throws XPathFactoryConfigurationException;
/* */
/* */ public abstract boolean getFeature(String paramString) throws XPathFactoryConfigurationException;
/* */
/* */ public abstract void setXPathVariableResolver(XPathVariableResolver paramXPathVariableResolver);
/* */
/* */ public abstract void setXPathFunctionResolver(XPathFunctionResolver paramXPathFunctionResolver);
/* */
/* */ public abstract XPath newXPath();
/* */ }
/* Location: /Users/timmy/timmy/OSWE/oswe/openCRX/rt.jar!/javax/xml/xpath/XPathFactory.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"t0984456716"
] |
t0984456716
|
a7567342fe6de15d844734821af2fd665beb82a7
|
8dbf821417cbc74ad75be2328255b147abd42c5e
|
/org.mbari.vars.services/src/main/java/org/mbari/vars/services/RequestPager.java
|
1dc5dc6c5b2702c6d7d710d11266509407459d13
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
jerryshano/vars-annotation
|
9d2f34b7f8c7d08a2e621938ea469869e199cddb
|
ea3ca39073c3f97817a3fc18a8b54c6f2f7bbeef
|
refs/heads/master
| 2023-03-16T15:19:14.904988
| 2021-02-27T00:03:49
| 2021-02-27T00:03:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,019
|
java
|
package org.mbari.vars.services;
import io.reactivex.Observable;
import io.reactivex.subjects.PublishSubject;
import io.reactivex.subjects.Subject;
import org.mbari.vcr4j.util.Preconditions;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* This class automates paing requests for you. The usage is:
* <pre>
* // A function that accepts a page (limit, offset) and fetches data using those
* Function<RequestPager.Page, List<Integer> fn = (page) -> //some data list
*
* // Instantiate pager with function, number of retries on a fn fail, and number of fetch threads
* RequestPager<List<Integer>> pager = new RequestPager<>(fn, 2, 2)
*
* int count = 1000; // The expected number of returns
* int pageSize = 50; // The number of items requested per page
* RequestPager.Runner<List<Annotation>> runner = pager.build(count, pageSize);
*
* // Subscribe to the observable to handle page returns
* Observable<List<Integer>> observable = runner.getObservable();
* observable.subscribeOn(Schedulers.io())
* .subscribe(xs -> System.out.println("Got a page of " + xs.size()),
* e -> System.err.println("Got an error"),
* () -> System.out.println("All done"));
*
* // Start the fetch
* runner.run();
*
* </pre>
*
* @author Brian Schlining
* @since 2019-04-24T14:28:00
*/
public class RequestPager<B> {
public static class Page {
private final long limit;
private final long offset;
public Page(long limit, long offset) {
this.limit = limit;
this.offset = offset;
}
public long getLimit() {
return limit;
}
public long getOffset() {
return offset;
}
}
public static class Runner<B> implements Runnable {
private boolean hasRun = false;
private final Subject<B> observable;
private final ExecutorService executor;
private final int numberSimultaneous;
private final BlockingQueue<RequestWithRetry<B>> queue;
private final int expectedCount;
private final AtomicInteger completedCount = new AtomicInteger(0);
public Runner(List<RequestWithRetry<B>> requests,
int numberSimultaneous) {
Preconditions.checkArgument(numberSimultaneous > 0, "Number of threads is less than 1");
Subject<B> obs = PublishSubject.create();
this.observable = obs.toSerialized();
queue = new LinkedBlockingQueue<>(requests);
expectedCount = requests.size();
this.numberSimultaneous = numberSimultaneous;
this.executor = Executors.newFixedThreadPool(numberSimultaneous);
}
@Override
public void run() {
if (!hasRun) {
hasRun = true;
int n = Math.min(numberSimultaneous, queue.size());
for (int i = 0; i < n; i++) {
next();
}
}
}
private void execute(RequestWithRetry<B> request) {
Runnable runnable = () -> request.get()
.subscribe(observable::onNext,
this::doError,
this::doCompleted);
executor.execute(runnable);
}
private void doError(Throwable e) {
List<Runnable> rs = executor.shutdownNow();
int unfinished = rs.size() + queue.size();
LoggerFactory.getLogger(getClass())
.error("Page requests failed. " + unfinished +
" pages were not fetched");
observable.onError(e);
}
private void doCompleted() {
int n = completedCount.incrementAndGet();
if (n == expectedCount) {
observable.onComplete();
}
else {
if (!queue.isEmpty()) {
next();
}
}
}
private void next() {
if (!queue.isEmpty()) {
try {
RequestWithRetry<B> request = queue.poll(100, TimeUnit.MILLISECONDS);
execute(request);
}
catch (InterruptedException e) {
doError(e);
}
}
}
public Observable<B> getObservable() {
return observable;
}
}
private final Function<Page, B> function;
private final int retries;
private final int threadCount;
public RequestPager(Function<Page, B> function) {
this(function, 0);
}
public RequestPager(Function<Page, B> function, int retries) {
this(function, retries, 1);
}
public RequestPager(Function<Page, B> function, int retries, int threadCount) {
Preconditions.checkArgument(threadCount > 0, "The min");
this.function = function;
this.retries = retries;
this.threadCount = threadCount;
}
public Runner<B> build(int totalCount, int pageSize) {
List<RequestWithRetry<B>> requests = buildPageRequests(totalCount, pageSize);
return new Runner<>(requests, threadCount);
}
private List<RequestWithRetry<B>> buildPageRequests(int totalCount, int pageSize) {
int n = (int) Math.ceil(totalCount / (double) pageSize);
long limit = pageSize;
List<RequestWithRetry<B>> requests = new ArrayList<>();
for (int i = 0; i < n; i++) {
long offset = i * pageSize;
Supplier<B> supplier = () -> function.apply(new Page(limit, offset));
RequestWithRetry<B> request = new RequestWithRetry<>(supplier, retries);
requests.add(request);
}
return requests;
}
}
|
[
"bschlining@gmail.com"
] |
bschlining@gmail.com
|
100ca8cddae71bafe940ec33ce2a14c42b8d73d5
|
47119d527d55e9adcb08a3a5834afe9a82dd2254
|
/controllersvc/src/main/java/com/emc/storageos/volumecontroller/impl/smis/srdf/SynchronizedVolumePair.java
|
67254c300f4f73e7d483b197ab2cdbe7b08f6b96
|
[] |
no_license
|
chrisdail/coprhd-controller
|
1c3ddf91bb840c66e4ece3d4b336a6df421b43e4
|
38a063c5620135a49013aae5e078aeb6534a5480
|
refs/heads/master
| 2020-12-03T10:42:22.520837
| 2015-06-08T15:24:36
| 2015-06-08T15:24:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,866
|
java
|
/**
* Copyright 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.volumecontroller.impl.smis.srdf;
import javax.cim.CIMObjectPath;
import com.emc.storageos.plugins.common.Constants;
import static com.emc.storageos.volumecontroller.impl.NativeGUIDGenerator.generateNativeGuidForVolumeOrBlockSnapShot;
/**
* Given a StorageSynchronized CIMObjectPath, this class generates ViPR native GUID's for both the
* source and target volume elements.
*
* Created by bibbyi1 on 4/15/2015.
*/
public class SynchronizedVolumePair {
private static final String SYSTEM_ELEMENT = "SystemElement";
private static final String SYNCED_ELEMENT = "SyncedElement";
private static final String SYSTEM_NAME = "SystemName";
private static final String DEVICE_ID = "DeviceID";
private CIMObjectPath storageSynchronized;
private String sourceGUID;
private String targetGUID;
public SynchronizedVolumePair(CIMObjectPath storageSynchronized) {
this.storageSynchronized = storageSynchronized;
}
public String getSourceGUID() {
if (sourceGUID == null) {
sourceGUID = generateGUID(SYSTEM_ELEMENT);
}
return sourceGUID;
}
public String getTargetGUID() {
if (targetGUID == null) {
targetGUID = generateGUID(SYNCED_ELEMENT);
}
return targetGUID;
}
private String generateGUID(String elementType) {
CIMObjectPath elementPath = (CIMObjectPath) storageSynchronized.getKey(elementType).getValue();
String systemName = ((String) elementPath.getKey(SYSTEM_NAME).getValue())
.replaceAll(Constants.SMIS80_DELIMITER_REGEX, Constants.PLUS);
String deviceID = (String) elementPath.getKey(DEVICE_ID).getValue();
return generateNativeGuidForVolumeOrBlockSnapShot(systemName, deviceID);
}
}
|
[
"review-coprhd@coprhd.org"
] |
review-coprhd@coprhd.org
|
1f3c926c601db64c4fff5c901ac59c7f14dffa12
|
b63223824e95ba80a33ced7077245bfef28f2b04
|
/src/main/java/org/docksidestage/sqlite/dbflute/exentity/ServiceRank.java
|
1af8a909da371a600e56e605fbf873ef16ae8069
|
[
"Apache-2.0"
] |
permissive
|
dbflute-test/dbflute-test-dbms-sqlite
|
e1b7a365d3b40f71c2e002b9ec598ea92ecc52a7
|
23e2fd75f328641f2d69682c2ea6b767d2273fb8
|
refs/heads/master
| 2023-08-08T05:22:56.638637
| 2023-07-19T18:44:18
| 2023-07-19T18:44:18
| 26,388,908
| 0
| 1
|
Apache-2.0
| 2020-10-13T03:13:16
| 2014-11-09T07:32:31
|
Java
|
UTF-8
|
Java
| false
| false
| 459
|
java
|
package org.docksidestage.sqlite.dbflute.exentity;
import org.docksidestage.sqlite.dbflute.bsentity.BsServiceRank;
/**
* The entity of SERVICE_RANK.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class ServiceRank extends BsServiceRank {
/** Serial version UID. (Default) */
private static final long serialVersionUID = 1L;
}
|
[
"dbflute@gmail.com"
] |
dbflute@gmail.com
|
627c9317ee91b8616360d3f1d391ec46321c5589
|
9a52fe3bcdd090a396e59c68c63130f32c54a7a8
|
/sources/com/unity3d/services/analytics/AcquisitionType.java
|
fa987f17c4505f4c30c53ef6b45d754139819ae2
|
[] |
no_license
|
mzkh/LudoKing
|
19d7c76a298ee5bd1454736063bc392e103a8203
|
ee0d0e75ed9fa8894ed9877576d8e5589813b1ba
|
refs/heads/master
| 2022-04-25T06:08:41.916017
| 2020-04-14T17:00:45
| 2020-04-14T17:00:45
| 255,670,636
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,401
|
java
|
package com.unity3d.services.analytics;
public enum AcquisitionType {
SOFT,
PREMIUM;
/* renamed from: com.unity3d.services.analytics.AcquisitionType$1 */
static /* synthetic */ class C34131 {
static final /* synthetic */ int[] $SwitchMap$com$unity3d$services$analytics$AcquisitionType = null;
/* JADX WARNING: Can't wrap try/catch for region: R(6:0|1|2|3|4|6) */
/* JADX WARNING: Code restructure failed: missing block: B:7:?, code lost:
return;
*/
/* JADX WARNING: Failed to process nested try/catch */
/* JADX WARNING: Missing exception handler attribute for start block: B:3:0x0014 */
static {
/*
com.unity3d.services.analytics.AcquisitionType[] r0 = com.unity3d.services.analytics.AcquisitionType.values()
int r0 = r0.length
int[] r0 = new int[r0]
$SwitchMap$com$unity3d$services$analytics$AcquisitionType = r0
int[] r0 = $SwitchMap$com$unity3d$services$analytics$AcquisitionType // Catch:{ NoSuchFieldError -> 0x0014 }
com.unity3d.services.analytics.AcquisitionType r1 = com.unity3d.services.analytics.AcquisitionType.SOFT // Catch:{ NoSuchFieldError -> 0x0014 }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0014 }
r2 = 1
r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0014 }
L_0x0014:
int[] r0 = $SwitchMap$com$unity3d$services$analytics$AcquisitionType // Catch:{ NoSuchFieldError -> 0x001f }
com.unity3d.services.analytics.AcquisitionType r1 = com.unity3d.services.analytics.AcquisitionType.PREMIUM // Catch:{ NoSuchFieldError -> 0x001f }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x001f }
r2 = 2
r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x001f }
L_0x001f:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.services.analytics.AcquisitionType.C34131.<clinit>():void");
}
}
public String toString() {
int i = C34131.$SwitchMap$com$unity3d$services$analytics$AcquisitionType[ordinal()];
if (i != 1) {
return i != 2 ? "" : "premium";
}
return "soft";
}
}
|
[
"mdkhnmm@amazon.com"
] |
mdkhnmm@amazon.com
|
788fbdefeb6b3b0eca3b8582bd81ba0ad88f264b
|
5f74233ade68c110fddc074f5d64cf18ff287d45
|
/easyrec-utils/src/main/java/org/easyrec/utils/io/UnclosedStatementException.java
|
8cb284440a75afec3bf1a647dde63993cbf62a0e
|
[
"Apache-2.0"
] |
permissive
|
feesa/easyrec-parent
|
0f0c187884eb773b40794d7d0ac107c5c410e552
|
a3c6d8911c88abdb4df6662f2d4e0220eda4a16c
|
refs/heads/master
| 2022-12-27T12:37:00.204505
| 2016-12-26T10:47:55
| 2016-12-26T10:47:55
| 75,718,347
| 1
| 1
|
Apache-2.0
| 2022-12-15T23:43:53
| 2016-12-06T09:57:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,686
|
java
|
/**Copyright 2010 Research Studios Austria Forschungsgesellschaft mBH
*
* This file is part of easyrec.
*
* easyrec 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.
*
* easyrec 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 easyrec. If not, see <http://www.gnu.org/licenses/>.
*/
package org.easyrec.utils.io;
/**
* <p>
* Exception indicating that a Statement in an sql script is not closed by ';'.
* </p>
* <p/>
* <p><b>Company: </b>
* SAT, Research Studios Austria</p>
* <p/>
* <p><b>Copyright: </b>
* (c) 2006</p>
* <p/>
* <p><b>last modified:</b><br/>
* $Author: pmarschik $<br/>
* $Date: 2011-02-11 11:04:49 +0100 (Fr, 11 Feb 2011) $<br/>
* $Revision: 17656 $</p>
*
* @author Florian Kleedorfer
*/
public class UnclosedStatementException extends RuntimeException {
private final static long serialVersionUID = 3814519712466410772L;
public UnclosedStatementException() {
super();
}
public UnclosedStatementException(String message) {
super(message);
}
public UnclosedStatementException(String message, Throwable cause) {
super(message, cause);
}
public UnclosedStatementException(Throwable cause) {
super(cause);
}
}
|
[
"244328187@qq.com"
] |
244328187@qq.com
|
da47f23471f7f173ba97370221e4b4286058323c
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MATH-81b-2-24-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/org/apache/commons/math/linear/EigenDecompositionImpl_ESTest_scaffolding.java
|
0ec6fcde6374606e80a577e7c8639defaa1ce9c1
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,945
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun May 17 16:11:21 UTC 2020
*/
package org.apache.commons.math.linear;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class EigenDecompositionImpl_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.linear.EigenDecompositionImpl";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(EigenDecompositionImpl_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.linear.BlockFieldMatrix",
"org.apache.commons.math.MathException",
"org.apache.commons.math.linear.EigenDecompositionImpl",
"org.apache.commons.math.linear.TriDiagonalTransformer",
"org.apache.commons.math.linear.ArrayRealVectorTest$RealVectorTestImpl",
"org.apache.commons.math.ConvergenceException",
"org.apache.commons.math.linear.RealMatrixImplTest$SetVisitor",
"org.apache.commons.math.linear.AbstractRealMatrix$5",
"org.apache.commons.math.linear.AbstractRealMatrix$2",
"org.apache.commons.math.linear.MatrixUtils",
"org.apache.commons.math.linear.RealMatrixImplTest$GetVisitor",
"org.apache.commons.math.linear.AbstractRealMatrix$1",
"org.apache.commons.math.util.OpenIntToDoubleHashMap",
"org.apache.commons.math.linear.RealMatrix",
"org.apache.commons.math.linear.DefaultRealMatrixChangingVisitor",
"org.apache.commons.math.linear.SparseRealVectorTest",
"org.apache.commons.math.linear.ArrayRealVectorTest",
"org.apache.commons.math.util.OpenIntToDoubleHashMap$Iterator",
"org.apache.commons.math.util.CompositeFormat",
"org.apache.commons.math.linear.AbstractFieldMatrix",
"org.apache.commons.math.linear.SparseRealVector",
"org.apache.commons.math.linear.EigenDecompositionImpl$Solver",
"org.apache.commons.math.MathRuntimeException",
"org.apache.commons.math.linear.ArrayRealVector",
"org.apache.commons.math.MathRuntimeException$1",
"org.apache.commons.math.MathRuntimeException$2",
"org.apache.commons.math.MathRuntimeException$3",
"org.apache.commons.math.MathRuntimeException$4",
"org.apache.commons.math.MathRuntimeException$5",
"org.apache.commons.math.MathRuntimeException$6",
"org.apache.commons.math.MathRuntimeException$7",
"org.apache.commons.math.MathRuntimeException$8",
"org.apache.commons.math.MathRuntimeException$10",
"org.apache.commons.math.MathRuntimeException$9",
"org.apache.commons.math.linear.EigenDecompositionImpl$1",
"org.apache.commons.math.linear.Array2DRowRealMatrixTest$SetVisitor",
"org.apache.commons.math.linear.RealMatrixImpl",
"org.apache.commons.math.linear.SparseRealVectorTest$SparseRealVectorTestImpl",
"org.apache.commons.math.linear.DecompositionSolver",
"org.apache.commons.math.linear.RealVectorFormat",
"org.apache.commons.math.linear.SingularMatrixException",
"org.apache.commons.math.linear.AnyMatrix",
"org.apache.commons.math.MaxIterationsExceededException",
"org.apache.commons.math.linear.RealMatrixPreservingVisitor",
"org.apache.commons.math.linear.Array2DRowRealMatrix",
"org.apache.commons.math.linear.EigenDecomposition",
"org.apache.commons.math.linear.SparseRealMatrix",
"org.apache.commons.math.linear.FieldMatrixPreservingVisitor",
"org.apache.commons.math.linear.NonSquareMatrixException",
"org.apache.commons.math.linear.BlockRealMatrixTest$GetVisitor",
"org.apache.commons.math.linear.MatrixVisitorException",
"org.apache.commons.math.linear.MatrixIndexException",
"org.apache.commons.math.linear.AbstractRealMatrix",
"org.apache.commons.math.linear.DefaultRealMatrixPreservingVisitor",
"org.apache.commons.math.linear.BigMatrix",
"org.apache.commons.math.linear.FieldVector",
"org.apache.commons.math.linear.Array2DRowFieldMatrix",
"org.apache.commons.math.linear.BlockRealMatrix",
"org.apache.commons.math.linear.OpenMapRealVector",
"org.apache.commons.math.linear.InvalidMatrixException",
"org.apache.commons.math.linear.RealVector",
"org.apache.commons.math.linear.RealMatrixChangingVisitor",
"org.apache.commons.math.linear.FieldMatrix",
"org.apache.commons.math.linear.Array2DRowRealMatrixTest$GetVisitor",
"org.apache.commons.math.linear.OpenMapRealMatrix",
"org.apache.commons.math.linear.BlockRealMatrixTest$SetVisitor"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
dc174181e770e548da807961fec1413f8a7b6143
|
b6ea417b48402d85b6fe90299c51411b778c07cc
|
/spring-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerContextAware.java
|
4caa0a53527c2e42e782a7e6085b3b6c2d437416
|
[
"Apache-2.0"
] |
permissive
|
DevHui/spring-framework
|
065f24e96eaaed38495b9d87bc322db82b6a046c
|
4a2f291e26c6f78c3875dea13432be21bb1c0ed6
|
refs/heads/master
| 2020-12-04T21:08:18.445815
| 2020-01-15T03:54:42
| 2020-01-15T03:54:42
| 231,526,595
| 1
| 0
|
Apache-2.0
| 2020-01-03T06:28:30
| 2020-01-03T06:28:29
| null |
UTF-8
|
Java
| false
| false
| 1,438
|
java
|
/*
* Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.scheduling.quartz;
import org.quartz.SchedulerContext;
import org.springframework.beans.factory.Aware;
/**
* Callback interface to be implemented by Spring-managed
* Quartz artifacts that need access to the SchedulerContext
* (without having natural access to it).
*
* <p>Currently only supported for custom JobFactory implementations
* that are passed in via Spring's SchedulerFactoryBean.
*
* @author Juergen Hoeller
* @author Chris Beams
* @see org.quartz.spi.JobFactory
* @see SchedulerFactoryBean#setJobFactory
* @since 2.0
*/
public interface SchedulerContextAware extends Aware {
/**
* Set the SchedulerContext of the current Quartz Scheduler.
*
* @see org.quartz.Scheduler#getContext()
*/
void setSchedulerContext(SchedulerContext schedulerContext);
}
|
[
"pengshaohui@markor.com.cn"
] |
pengshaohui@markor.com.cn
|
2a841e5423a9305b18c84a4e40b3c34c4c25773f
|
c82f89b0e6d1547c2829422e7de7664b378c1039
|
/src/com/hongyu/service/PrePaySupplyService.java
|
f6e878acad43315e05a481209763542dc20746c4
|
[] |
no_license
|
chenxiaoyin3/shetuan_backend
|
1bab5327cafd42c8086c25ade7e8ce08fda6a1ac
|
e21a0b14a2427c9ad52ed00f68d5cce2689fdaeb
|
refs/heads/master
| 2022-05-15T14:52:07.137000
| 2022-04-07T03:30:57
| 2022-04-07T03:30:57
| 250,762,749
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 361
|
java
|
package com.hongyu.service;
import javax.servlet.http.HttpSession;
import com.grain.service.BaseService;
import com.hongyu.Json;
import com.hongyu.entity.PrePaySupply;
public interface PrePaySupplyService extends BaseService<PrePaySupply, Long> {
Json insertPrePaySupplyAudit(Long id, String comment, Integer state, HttpSession session) throws Exception;
}
|
[
"925544714@qq.com"
] |
925544714@qq.com
|
c0007b75750c4d015eee7e92efa3ed2deca39685
|
00e1e0709c471385b807b25ae5da0715f069136d
|
/scene/src/com/chuangyou/xianni/campaign/CampaignTempMgr.java
|
7a47f4f4f75f48ec810ce71e133830b8adc4c31e
|
[] |
no_license
|
hw233/app2-java
|
44504896d13a5b63e3d95343c62424495386b7f1
|
f4b5217a4980b0ff81f81577c348a6e71593a185
|
refs/heads/master
| 2020-04-27T11:23:44.089556
| 2016-11-18T01:33:52
| 2016-11-18T01:33:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 866
|
java
|
package com.chuangyou.xianni.campaign;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.chuangyou.xianni.entity.campaign.CampaignTemplateInfo;
import com.chuangyou.xianni.sql.dao.DBManager;
public class CampaignTempMgr {
public static Map<Integer, CampaignTemplateInfo> campaignTemps = new HashMap<>();
public static boolean init() {
reload();
return true;
}
public static boolean reload() {
List<CampaignTemplateInfo> campaignTemplateInfos = DBManager.getCampaignTemplateInfoDao().getAll();
if (campaignTemplateInfos == null || campaignTemplateInfos.size() == 0) {
return false;
}
for (CampaignTemplateInfo info : campaignTemplateInfos) {
campaignTemps.put(info.getTemplateId(), info);
}
return true;
}
public static CampaignTemplateInfo get(int tempId) {
return campaignTemps.get(tempId);
}
}
|
[
"you@example.com"
] |
you@example.com
|
ee3c51b7cffdc19f031727790f1d73809daed848
|
23458bdfb7393433203985569e68bc1935a022d6
|
/ONEOrder/Java SDK/oo-jaxb/OrderSaleInformationNotificationRQ/target/generated-sources/xjc/org/iata/oo/schema/OrderSaleInformationNotificationRQ/SrvcCombineRuleListType.java
|
76ba9d6be13cc7e580d0d8dea2e164554e71dcf0
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
joelmorales/NDC
|
7c6baa333c0285b724e6356bd7ae808f1f74e7ec
|
ebddd30369ec74e078a2c9996da0402f9ac448a1
|
refs/heads/master
| 2021-06-30T02:49:12.522375
| 2019-06-13T14:55:05
| 2019-06-13T14:55:05
| 171,594,242
| 1
| 0
| null | 2020-10-13T12:03:33
| 2019-02-20T03:29:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,399
|
java
|
package org.iata.oo.schema.OrderSaleInformationNotificationRQ;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SrvcCombineRuleListType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="SrvcCombineRuleListType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="NotPermitted"/>
* <enumeration value="Permitted"/>
* <enumeration value="Other"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "SrvcCombineRuleListType")
@XmlEnum
public enum SrvcCombineRuleListType {
@XmlEnumValue("NotPermitted")
NOT_PERMITTED("NotPermitted"),
@XmlEnumValue("Permitted")
PERMITTED("Permitted"),
@XmlEnumValue("Other")
OTHER("Other");
private final String value;
SrvcCombineRuleListType(String v) {
value = v;
}
public String value() {
return value;
}
public static SrvcCombineRuleListType fromValue(String v) {
for (SrvcCombineRuleListType c: SrvcCombineRuleListType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"joel.moralesmorales@hotmail.com"
] |
joel.moralesmorales@hotmail.com
|
b07c2d81f01ac59b7d709d8e27ddb3b8c12dcaac
|
7ce021205687faad6654e04623b3cd49bdad452d
|
/roimeshrepo/roi-framework/src/main/java/com/getusroi/dynastore/config/jaxb/DynastoreInitializer.java
|
2749a0a9b7332a4c65ee674644fc086efcc17f08
|
[] |
no_license
|
venkateshm383/roibackupprojects
|
4ad9094d25dad9fe60da5f557069ecb36f627e4d
|
a78467028950c8eafdd662113870f633e61304d2
|
refs/heads/master
| 2020-04-18T21:52:10.308611
| 2016-09-02T04:32:21
| 2016-09-02T04:32:21
| 67,107,627
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,227
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.08 at 12:39:14 PM IST
//
package com.getusroi.dynastore.config.jaxb;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="CustomBuilder" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="builder" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="SQLBuilder" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SQLQuery">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="mappedClass" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="uniqueColumn" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="InlineBuilder" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="required" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="type" type="{}DynastoreInitializerType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"customBuilder",
"sqlBuilder",
"inlineBuilder"
})
public class DynastoreInitializer
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "CustomBuilder")
protected CustomBuilder customBuilder;
@XmlElement(name = "SQLBuilder")
protected SQLBuilder sqlBuilder;
@XmlElement(name = "InlineBuilder")
protected InlineBuilder inlineBuilder;
@XmlAttribute(name = "required", required = true)
protected boolean required;
@XmlAttribute(name = "type")
protected DynastoreInitializerType type;
/**
* Gets the value of the customBuilder property.
*
* @return
* possible object is
* {@link CustomBuilder }
*
*/
public CustomBuilder getCustomBuilder() {
return customBuilder;
}
/**
* Sets the value of the customBuilder property.
*
* @param value
* allowed object is
* {@link CustomBuilder }
*
*/
public void setCustomBuilder(CustomBuilder value) {
this.customBuilder = value;
}
/**
* Gets the value of the sqlBuilder property.
*
* @return
* possible object is
* {@link SQLBuilder }
*
*/
public SQLBuilder getSQLBuilder() {
return sqlBuilder;
}
/**
* Sets the value of the sqlBuilder property.
*
* @param value
* allowed object is
* {@link SQLBuilder }
*
*/
public void setSQLBuilder(SQLBuilder value) {
this.sqlBuilder = value;
}
/**
* Gets the value of the inlineBuilder property.
*
* @return
* possible object is
* {@link InlineBuilder }
*
*/
public InlineBuilder getInlineBuilder() {
return inlineBuilder;
}
/**
* Sets the value of the inlineBuilder property.
*
* @param value
* allowed object is
* {@link InlineBuilder }
*
*/
public void setInlineBuilder(InlineBuilder value) {
this.inlineBuilder = value;
}
/**
* Gets the value of the required property.
*
*/
public boolean isRequired() {
return required;
}
/**
* Sets the value of the required property.
*
*/
public void setRequired(boolean value) {
this.required = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link DynastoreInitializerType }
*
*/
public DynastoreInitializerType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link DynastoreInitializerType }
*
*/
public void setType(DynastoreInitializerType value) {
this.type = value;
}
}
|
[
"you@example.com"
] |
you@example.com
|
58f222bac62ead0ce599f6551815802398143268
|
1742b6719b988e5519373002305e31d28b8bd691
|
/sdk/java/src/main/java/com/pulumi/aws/autoscaling/inputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs.java
|
60411193748d691f45e8469f1fbb4e077848334e
|
[
"BSD-3-Clause",
"Apache-2.0",
"MPL-2.0"
] |
permissive
|
pulumi/pulumi-aws
|
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
|
42b0a0abdf6c14da248da22f8c4530af06e67b98
|
refs/heads/master
| 2023-08-03T23:08:34.520280
| 2023-08-01T18:09:58
| 2023-08-01T18:09:58
| 97,484,940
| 384
| 171
|
Apache-2.0
| 2023-09-14T14:48:40
| 2017-07-17T14:20:33
|
Java
|
UTF-8
|
Java
| false
| false
| 3,779
|
java
|
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.autoscaling.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs extends com.pulumi.resources.ResourceArgs {
public static final GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs Empty = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs();
/**
* Maximum. Set to `0` to exclude instance types with accelerators.
*
*/
@Import(name="max")
private @Nullable Output<Integer> max;
/**
* @return Maximum. Set to `0` to exclude instance types with accelerators.
*
*/
public Optional<Output<Integer>> max() {
return Optional.ofNullable(this.max);
}
/**
* Minimum.
*
*/
@Import(name="min")
private @Nullable Output<Integer> min;
/**
* @return Minimum.
*
*/
public Optional<Output<Integer>> min() {
return Optional.ofNullable(this.min);
}
private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs() {}
private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs $) {
this.max = $.max;
this.min = $.min;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs $;
public Builder() {
$ = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs();
}
public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs defaults) {
$ = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs(Objects.requireNonNull(defaults));
}
/**
* @param max Maximum. Set to `0` to exclude instance types with accelerators.
*
* @return builder
*
*/
public Builder max(@Nullable Output<Integer> max) {
$.max = max;
return this;
}
/**
* @param max Maximum. Set to `0` to exclude instance types with accelerators.
*
* @return builder
*
*/
public Builder max(Integer max) {
return max(Output.of(max));
}
/**
* @param min Minimum.
*
* @return builder
*
*/
public Builder min(@Nullable Output<Integer> min) {
$.min = min;
return this;
}
/**
* @param min Minimum.
*
* @return builder
*
*/
public Builder min(Integer min) {
return min(Output.of(min));
}
public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs build() {
return $;
}
}
}
|
[
"public@paulstack.co.uk"
] |
public@paulstack.co.uk
|
161366b59f083c994b05d1fd24ed3edd3adf2555
|
37271a875a728ee888ccb1e220e5771474dfd979
|
/storio-sqlite/src/test/java/com/pushtorefresh/storio/sqlite/operations/put/TestItem.java
|
256d146d55bb7b2ab9037bc4676ff3ddd6992a04
|
[
"Apache-2.0"
] |
permissive
|
taimur97/storio
|
e9e74287fd742175663e9794f6e0031985f0319d
|
3dd8c0830ee91bc5c337e25e0d3c88b38697722b
|
refs/heads/master
| 2020-02-26T13:18:03.197639
| 2015-07-01T12:28:27
| 2015-07-01T12:28:27
| 38,390,784
| 1
| 0
| null | 2015-07-01T19:31:18
| 2015-07-01T19:31:18
| null |
UTF-8
|
Java
| false
| false
| 286
|
java
|
package com.pushtorefresh.storio.sqlite.operations.put;
import android.support.annotation.NonNull;
class TestItem {
static final String TABLE = "test_items";
private TestItem() {
}
@NonNull
static TestItem newInstance() {
return new TestItem();
}
}
|
[
"artem.zinnatullin@gmail.com"
] |
artem.zinnatullin@gmail.com
|
d38097f5a1a11f2f33177d3a66e521dc2d99d6e9
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/42/org/apache/commons/math/linear/FieldLUDecomposition_getInverse_442.java
|
7d24718680e0ff71ce075d8b567a7e6afcb04283
|
[] |
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
| 1,580
|
java
|
org apach common math linear
calcul lup decomposit squar matrix
lup decomposit matrix consist matric
satisfi lower triangular
upper triangular permut matrix matric
time
link field element fieldel field element provid order
oper permut matrix comput order avoid
pivot element attempt largest pivot
element
base similar
href http math nist gov javanumer jama jama librari
link getp getp method ad
code det method renam link determin getdetermin
determin getdetermin
code doubl pivot getdoublepivot method remov base
link pivot getpivot pivot getpivot method
code solv code singular isnonsingular method replac
link solver getsolv solver getsolv method equival method
provid return link decomposit solver decompositionsolv
param type field element
href http mathworld wolfram decomposit ludecomposit html math world mathworld
href http wikipedia org wiki decomposit wikipedia
version
chang concret
field decomposit fieldludecomposit field element fieldel
inherit doc inheritdoc
field matrix fieldmatrix invers getinvers
pivot length
field geton
field matrix fieldmatrix ident array2 row field matrix array2drowfieldmatrix field
ident set entri setentri
solv ident
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
34375387e00f45325a38c53415f78a1fc0940fcb
|
9c2b23a2d6da1e762400ae963c1f787c3121eb89
|
/core/com.hundsun.ares.studio.jres.database.core/src/com/hundsun/ares/studio/jres/model/database/impl/TableIndexColumnImpl.java
|
7cc579ee1d183c025c93121ffae69c5d6b98e007
|
[
"MIT"
] |
permissive
|
zhuyf03516/ares-studio
|
5d67757283a52e51100666c9ce35227a63656f0e
|
5648b0f606cb061d06c39ac25b7b206f3307882f
|
refs/heads/master
| 2021-01-11T11:31:51.436304
| 2016-08-11T10:56:31
| 2016-08-11T10:56:31
| 65,444,199
| 0
| 0
| null | 2016-08-11T06:24:33
| 2016-08-11T06:24:32
| null |
UTF-8
|
Java
| false
| false
| 7,263
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package com.hundsun.ares.studio.jres.model.database.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import com.hundsun.ares.studio.core.model.impl.ExtensibleModelImpl;
import com.hundsun.ares.studio.jres.model.database.ColumnType;
import com.hundsun.ares.studio.jres.model.database.DatabasePackage;
import com.hundsun.ares.studio.jres.model.database.TableIndexColumn;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Table Index Column</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link com.hundsun.ares.studio.jres.model.database.impl.TableIndexColumnImpl#getColumnName <em>Column Name</em>}</li>
* <li>{@link com.hundsun.ares.studio.jres.model.database.impl.TableIndexColumnImpl#isAscending <em>Ascending</em>}</li>
* <li>{@link com.hundsun.ares.studio.jres.model.database.impl.TableIndexColumnImpl#getColumnType <em>Column Type</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class TableIndexColumnImpl extends ExtensibleModelImpl implements TableIndexColumn {
/**
* The default value of the '{@link #getColumnName() <em>Column Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getColumnName()
* @generated
* @ordered
*/
protected static final String COLUMN_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getColumnName() <em>Column Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getColumnName()
* @generated
* @ordered
*/
protected String columnName = COLUMN_NAME_EDEFAULT;
/**
* The default value of the '{@link #isAscending() <em>Ascending</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isAscending()
* @generated
* @ordered
*/
protected static final boolean ASCENDING_EDEFAULT = false;
/**
* The cached value of the '{@link #isAscending() <em>Ascending</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isAscending()
* @generated
* @ordered
*/
protected boolean ascending = ASCENDING_EDEFAULT;
/**
* The default value of the '{@link #getColumnType() <em>Column Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getColumnType()
* @generated
* @ordered
*/
protected static final ColumnType COLUMN_TYPE_EDEFAULT = ColumnType.STD_FIELD;
/**
* The cached value of the '{@link #getColumnType() <em>Column Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getColumnType()
* @generated
* @ordered
*/
protected ColumnType columnType = COLUMN_TYPE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TableIndexColumnImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return DatabasePackage.Literals.TABLE_INDEX_COLUMN;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getColumnName() {
return columnName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setColumnName(String newColumnName) {
String oldColumnName = columnName;
columnName = newColumnName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_NAME, oldColumnName, columnName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isAscending() {
return ascending;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAscending(boolean newAscending) {
boolean oldAscending = ascending;
ascending = newAscending;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DatabasePackage.TABLE_INDEX_COLUMN__ASCENDING, oldAscending, ascending));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ColumnType getColumnType() {
return columnType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setColumnType(ColumnType newColumnType) {
ColumnType oldColumnType = columnType;
columnType = newColumnType == null ? COLUMN_TYPE_EDEFAULT : newColumnType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_TYPE, oldColumnType, columnType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_NAME:
return getColumnName();
case DatabasePackage.TABLE_INDEX_COLUMN__ASCENDING:
return isAscending();
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_TYPE:
return getColumnType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_NAME:
setColumnName((String)newValue);
return;
case DatabasePackage.TABLE_INDEX_COLUMN__ASCENDING:
setAscending((Boolean)newValue);
return;
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_TYPE:
setColumnType((ColumnType)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_NAME:
setColumnName(COLUMN_NAME_EDEFAULT);
return;
case DatabasePackage.TABLE_INDEX_COLUMN__ASCENDING:
setAscending(ASCENDING_EDEFAULT);
return;
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_TYPE:
setColumnType(COLUMN_TYPE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_NAME:
return COLUMN_NAME_EDEFAULT == null ? columnName != null : !COLUMN_NAME_EDEFAULT.equals(columnName);
case DatabasePackage.TABLE_INDEX_COLUMN__ASCENDING:
return ascending != ASCENDING_EDEFAULT;
case DatabasePackage.TABLE_INDEX_COLUMN__COLUMN_TYPE:
return columnType != COLUMN_TYPE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (columnName: ");
result.append(columnName);
result.append(", ascending: ");
result.append(ascending);
result.append(", columnType: ");
result.append(columnType);
result.append(')');
return result.toString();
}
} //TableIndexColumnImpl
|
[
"zhuyf@hundsun.com"
] |
zhuyf@hundsun.com
|
7f8a942a86e27dee42dd29fc009b8e720aff36e2
|
10998607afef0228338b78b09be7f40015e9215d
|
/onebusaway-king-county-metro-gtfs/src/main/java/org/onebusaway/king_county_metro_gtfs/model/MetroKCAgency.java
|
dfa47a48aa11a5b24f4eb6fac6c4c39ca9698e55
|
[] |
no_license
|
camsys/onebusaway-king-county-metro
|
02721157eb54cf49c014582344a39ced54c98298
|
fbb69f5f1913d6d4004a464d35962495e5cb07a5
|
refs/heads/master
| 2021-01-21T18:15:02.899781
| 2014-04-07T18:37:40
| 2014-04-07T18:37:40
| 17,286,107
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 621
|
java
|
package org.onebusaway.king_county_metro_gtfs.model;
import org.onebusaway.csv_entities.schema.annotations.CsvFields;
@CsvFields(filename = "agency.csv")
public class MetroKCAgency {
private String name;
private String url;
private String timezone;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
}
|
[
"bdferris@google.com"
] |
bdferris@google.com
|
fe9b85e052c07369560a6d19d3469fd6a7de9587
|
c1eee8122e2251b1a0d46ec1931d1247374bdc8d
|
/jstl/src/com/iot/test/dao/CustomerDAOImpl.java
|
04c76fda74b803f6d03c9e48c067e79d13723698
|
[] |
no_license
|
jiyungg/backup20180118
|
f0b0b30f6802abe7bf06d2f0305ff5f8735860a0
|
de1fb711b7bd15a9ed83b8b47cde7df04627f191
|
refs/heads/master
| 2021-05-11T03:52:36.755596
| 2018-01-18T09:04:50
| 2018-01-18T09:04:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,264
|
java
|
package com.iot.test.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.iot.test.common.DBCon;
import com.iot.test.common.DBUtil;
import com.iot.test.vo.Customer;
public class CustomerDAOImpl implements CustomerDAO {
@Override
public List<Customer> selectCustomerList(String orderStr) {
List<Customer> customerList = new ArrayList<Customer>();
Connection con = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
String sql = "select * from customer ";
con = DBCon.getCon();
ps = con.prepareStatement(sql);
rs = ps.executeQuery();
if(orderStr!=null) {
sql += " order by " + orderStr;
}
while(rs.next()) {
Customer c = new Customer();
c.setCustomerID(rs.getInt("customerid"));
c.setCustomerName(rs.getString("customername"));
c.setCity(rs.getString("city"));
c.setCountry(rs.getString("country"));
customerList.add(c);
//customerList.add(new Customer());
}
}catch(SQLException e) {
e.printStackTrace();
}finally {
DBUtil.closeAll(rs,ps,con);
}
return customerList;
}
}
|
[
"DJA@DJA-PC"
] |
DJA@DJA-PC
|
5d89a3caa63d8ee97215b7a2da2cfa379b7be0b5
|
3f4d50ac6cc4c84b6e5af83ca785d1630f730a07
|
/app/src/main/java/cn/poco/camera/site/CameraPageSite303.java
|
74b81d8a6604b5b07d4bdcb712d8e06ef19d7a04
|
[] |
no_license
|
FranklinNEO/BeautyCamera2016
|
5ceb02047750b54d3be44f07ba08a8d84516bdc2
|
c0aa17fefa283b43187396ba35073fdef2b541f5
|
refs/heads/master
| 2022-09-08T08:37:30.260238
| 2020-06-01T10:12:02
| 2020-06-01T10:12:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 906
|
java
|
package cn.poco.camera.site;
import android.content.Context;
import java.util.HashMap;
import cn.poco.framework.MyFramework;
import cn.poco.framework2.Framework2;
import cn.poco.lightApp06.site.BeautyVideoPageSite303;
/**
* 阿玛尼商业
*/
public class CameraPageSite303 extends CameraPageSite
{
/**
* 动态贴纸视频预览
*
* @param params <br/>
* color_filter_id 滤镜id(int) <br/>
* width 视频宽(int) <br/>
* height 视频高(int) <br/>
* mp4_path mp4文件路径(String) <br/>
* record_obj 视频录制对象(MyRecordVideo) <br/>
*/
public void openVideoPreviewPage(Context context, HashMap<String, Object> params)
{
MyFramework.SITE_Open(context, BeautyVideoPageSite303.class, params, Framework2.ANIM_NONE);
}
}
|
[
"18218125994@163.com"
] |
18218125994@163.com
|
ce13dd12b304f899e26770bf464ad6e959e17967
|
80403ec5838e300c53fcb96aeb84d409bdce1c0c
|
/server/api/src/org/labkey/api/view/ThemeFont.java
|
194cddf4f28e6ea913df5961ca54f5457f828c7c
|
[] |
no_license
|
scchess/LabKey
|
7e073656ea494026b0020ad7f9d9179f03d87b41
|
ce5f7a903c78c0d480002f738bccdbef97d6aeb9
|
refs/heads/master
| 2021-09-17T10:49:48.147439
| 2018-03-22T13:01:41
| 2018-03-22T13:01:41
| 126,447,224
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,742
|
java
|
/*
* Copyright (c) 2006-2016 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.labkey.api.view;
import org.apache.commons.lang3.StringUtils;
import org.labkey.api.data.Container;
import org.labkey.api.settings.LookAndFeelProperties;
import java.util.*;
public class ThemeFont
{
protected final static ThemeFont XSMALL = new ThemeFont("Smallest", "11px", "11px", "16px", "20px", "22px", "13px", "11", "12");
protected final static ThemeFont SMALL = new ThemeFont("Small", "12px", "12px", "18px", "22px", "24px", "14px", "12", "13");
protected final static ThemeFont MEDIUM = new ThemeFont("Medium", "14px", "12px", "20px", "24px", "27px", "16px", "14", "15");
protected final static ThemeFont LARGE = new ThemeFont("Large", "16px", "14px", "22px", "26px", "30px", "18px", "16", "17");
public final static ThemeFont DEFAULT_THEME_FONT = MEDIUM;
private final String _friendlyName;
private final String _sizeNormal;
private final String _sizeTextInput;
private final String _sizePageTitle;
private final String _sizePageHeader;
private final String _sizeButtonHeight;
private final String _sizeHeading_1;
private final String _sizeGraphicButtonTextHeight;
private final String _sizeGraphicTabTextHeight;
private ThemeFont(String friendlyName, String sizeNormal, String sizeTextInput, String sizePageTitle, String sizePageHeader, String sizeButtonHeight,
String sizeHeading_1, String sizeGraphicButtonTextHeight, String sizeGraphicTabTextHeight)
{
_friendlyName = friendlyName;
_sizeNormal = sizeNormal;
_sizeTextInput = sizeTextInput;
_sizePageTitle = sizePageTitle;
_sizePageHeader = sizePageHeader;
_sizeButtonHeight = sizeButtonHeight;
_sizeHeading_1 = sizeHeading_1;
_sizeGraphicButtonTextHeight = sizeGraphicButtonTextHeight;
_sizeGraphicTabTextHeight = sizeGraphicTabTextHeight;
}
public String getNormalSize()
{
return _sizeNormal;
}
public String getTextInputSize()
{
return _sizeTextInput;
}
public String getPageTitleSize()
{
return _sizePageTitle;
}
public String getPageHeaderSize()
{
return _sizePageHeader;
}
public String getButtonHeight()
{
return _sizeButtonHeight;
}
public String getHeader_1Size()
{
return _sizeHeading_1;
}
public String getGraphicButtonTextHeight()
{
return _sizeGraphicButtonTextHeight;
}
public String getGraphicTabTextHeight()
{
return _sizeGraphicTabTextHeight;
}
public String getFriendlyName()
{
return _friendlyName;
}
public String getClassName()
{
return "labkey-theme-font-" + _friendlyName.toLowerCase();
}
public String toString()
{
return _friendlyName;
}
public String getId()
{
return StringUtils.replace(_friendlyName, " ", "-");
}
private static final Map<String, ThemeFont> webThemeFontMap = new LinkedHashMap<>();
static
{
webThemeFontMap.put(XSMALL.getFriendlyName(), XSMALL);
webThemeFontMap.put(SMALL.getFriendlyName(), SMALL);
webThemeFontMap.put(MEDIUM.getFriendlyName(), MEDIUM);
webThemeFontMap.put(LARGE.getFriendlyName(), LARGE);
}
public static ThemeFont getThemeFont(Container c)
{
LookAndFeelProperties laf = LookAndFeelProperties.getInstance(c);
ThemeFont tf = ThemeFont.getThemeFont(laf.getThemeFont());
return null==tf ? DEFAULT_THEME_FONT : tf;
}
public static ThemeFont getThemeFont(String themeFont)
{
return webThemeFontMap.get(themeFont);
}
// Return a copy of the values, to protect callers. Not really necessary right now, since writes occur in a
// static initializer, but this may not always be the case...
public static List<ThemeFont> getThemeFonts()
{
return new LinkedList<>(webThemeFontMap.values());
}
}
|
[
"klum@labkey.com"
] |
klum@labkey.com
|
c951edf6c38d6e709544b75b406fdb511e2eff2e
|
f8a07eb1e0ced852d6ff7acf87e895fd8d65d1e8
|
/src/main/java/com/tencentcloudapi/vpc/v20170312/models/ModifyVpcEndPointServiceWhiteListResponse.java
|
02daec4490943ce93235090e084d72bf341ecf10
|
[
"Apache-2.0"
] |
permissive
|
xiuxiupanna/tencentcloud-sdk-java
|
2506c43a5b5f71224d8bba3cf35a679a4387402e
|
29d5de47f781d0fe4d20c0e4e35f42b28e2a88b7
|
refs/heads/master
| 2023-04-18T04:07:10.777701
| 2021-05-04T03:17:38
| 2021-05-04T03:17:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,049
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyVpcEndPointServiceWhiteListResponse extends AbstractModel{
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @return RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @param RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
|
[
"tencentcloudapi@tenent.com"
] |
tencentcloudapi@tenent.com
|
72cd36b6e7142db72a736446978df6035dec40ca
|
a00326c0e2fc8944112589cd2ad638b278f058b9
|
/src/main/java/000/141/526/CWE606_Unchecked_Loop_Condition__Property_42.java
|
e0d52e00877f39944d1f88d9147d77521a70105e
|
[] |
no_license
|
Lanhbao/Static-Testing-for-Juliet-Test-Suite
|
6fd3f62713be7a084260eafa9ab221b1b9833be6
|
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
|
refs/heads/master
| 2020-08-24T13:34:04.004149
| 2019-10-25T09:26:00
| 2019-10-25T09:26:00
| 216,822,684
| 0
| 1
| null | 2019-11-08T09:51:54
| 2019-10-22T13:37:13
|
Java
|
UTF-8
|
Java
| false
| false
| 3,854
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE606_Unchecked_Loop_Condition__Property_42.java
Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml
Template File: sources-sinks-42.tmpl.java
*/
/*
* @description
* CWE: 606 Unchecked Input for Loop Condition
* BadSource: Property Read data from a system property
* GoodSource: hardcoded int in string form
* Sinks:
* GoodSink: validate loop variable
* BadSink : loop variable not validated
* Flow Variant: 42 Data flow: data returned from one method to another in the same class
*
* */
public class CWE606_Unchecked_Loop_Condition__Property_42 extends AbstractTestCase
{
private String badSource() throws Throwable
{
String data;
/* get system property user.home */
/* POTENTIAL FLAW: Read data from a system property */
data = System.getProperty("user.home");
return data;
}
public void bad() throws Throwable
{
String data = badSource();
int numberOfLoops;
try
{
numberOfLoops = Integer.parseInt(data);
}
catch (NumberFormatException exceptNumberFormat)
{
IO.writeLine("Invalid response. Numeric input expected. Assuming 1.");
numberOfLoops = 1;
}
for (int i=0; i < numberOfLoops; i++)
{
/* POTENTIAL FLAW: user supplied input used for loop counter test */
IO.writeLine("hello world");
}
}
/* goodG2B() - use goodsource and badsink */
private String goodG2BSource() throws Throwable
{
String data;
/* FIX: Use a hardcoded int as a string */
data = "5";
return data;
}
private void goodG2B() throws Throwable
{
String data = goodG2BSource();
int numberOfLoops;
try
{
numberOfLoops = Integer.parseInt(data);
}
catch (NumberFormatException exceptNumberFormat)
{
IO.writeLine("Invalid response. Numeric input expected. Assuming 1.");
numberOfLoops = 1;
}
for (int i=0; i < numberOfLoops; i++)
{
/* POTENTIAL FLAW: user supplied input used for loop counter test */
IO.writeLine("hello world");
}
}
/* goodB2G() - use badsource and goodsink */
private String goodB2GSource() throws Throwable
{
String data;
/* get system property user.home */
/* POTENTIAL FLAW: Read data from a system property */
data = System.getProperty("user.home");
return data;
}
private void goodB2G() throws Throwable
{
String data = goodB2GSource();
int numberOfLoops;
try
{
numberOfLoops = Integer.parseInt(data);
}
catch (NumberFormatException exceptNumberFormat)
{
IO.writeLine("Invalid response. Numeric input expected. Assuming 1.");
numberOfLoops = 1;
}
/* FIX: loop number thresholds validated */
if (numberOfLoops >= 0 && numberOfLoops <= 5)
{
for (int i=0; i < numberOfLoops; i++)
{
IO.writeLine("hello world");
}
}
}
public void good() throws Throwable
{
goodG2B();
goodB2G();
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"anhtluet12@gmail.com"
] |
anhtluet12@gmail.com
|
9a3c412e3251441ded75059c4322c72eb5d6b46b
|
3a0a51add2930bb96b8b6ea2cd76a4fe47cda032
|
/experiments/subjects/xstream/src/java/com/thoughtworks/xstream/io/xml/Xpp3Driver.java
|
83e53547d1eaabb31f98525fae5d7d765318182f
|
[
"MIT"
] |
permissive
|
soneyahossain/hcc-gap-recommender
|
d313efb6b44ade04ef02e668ee06d29ae2fbb002
|
b2c79532d5246c8b52e2234f99dc62a26b3f364b
|
refs/heads/main
| 2023-04-14T08:11:22.986933
| 2023-01-27T00:01:09
| 2023-01-27T00:01:09
| 589,493,747
| 5
| 1
|
MIT
| 2023-03-16T15:41:47
| 2023-01-16T08:53:46
|
Java
|
UTF-8
|
Java
| false
| false
| 1,191
|
java
|
/*
* Copyright (C) 2009, 2011 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 29. April 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
import com.thoughtworks.xstream.io.HierarchicalStreamDriver;
import com.thoughtworks.xstream.io.naming.NameCoder;
import org.xmlpull.mxp1.MXParser;
import org.xmlpull.v1.XmlPullParser;
/**
* A {@link HierarchicalStreamDriver} using the Xpp3 parser.
*
* @author Jörg Schaible
* @since 1.4
*/
public class Xpp3Driver extends AbstractXppDriver {
/**
* Construct an Xpp3Driver.
*
* @since 1.4
*/
public Xpp3Driver() {
super(new XmlFriendlyNameCoder());
}
/**
* Construct an Xpp3Driver.
*
* @param nameCoder the replacer for XML friendly names
* @since 1.4
*/
public Xpp3Driver(NameCoder nameCoder) {
super(nameCoder);
}
/**
* {@inheritDoc}
*/
protected XmlPullParser createParser() {
return new MXParser();
}
}
|
[
"an7s@virginia.edu"
] |
an7s@virginia.edu
|
d8d942b66a519a43cecc47058f6ebfcc244d0f7a
|
eb9f655206c43c12b497c667ba56a0d358b6bc3a
|
/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/copyAbstractMethodImplementation/beforeSkipChildClass.java
|
c1d08f883349f5a7b426da336558e867b1a77c0d
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-community
|
2ed226e200ecc17c037dcddd4a006de56cd43941
|
05dbd4575d01a213f3f4d69aa4968473f2536142
|
refs/heads/master
| 2023-09-03T17:06:37.560889
| 2023-09-03T11:51:00
| 2023-09-03T12:12:27
| 2,489,216
| 16,288
| 6,635
|
Apache-2.0
| 2023-09-12T07:41:58
| 2011-09-30T13:33:05
| null |
UTF-8
|
Java
| false
| false
| 270
|
java
|
// "Use existing implementation of 'm'" "true"
interface I<T> {
void <caret>m(T param);
}
class A implements I<Object> {
public void m(Object param) {
System.out.println(param.toString());
}
}
class B implements I<String> {
}
class C extends B {
}
|
[
"cdr@intellij.com"
] |
cdr@intellij.com
|
61eaa7361479e02c29031f1adb27125ff158b61b
|
86a4f4a2dc3f38c0b3188d994950f4c79f036484
|
/src/android/support/v7/widget/Toolbar$SavedState$1.java
|
8f00224ef6fd46636037e1ae594b812bc85a530d
|
[] |
no_license
|
reverseengineeringer/com.cbs.app
|
8f6f3532f119898bfcb6d7ddfeb465eae44d5cd4
|
7e588f7156f36177b0ff8f7dc13151c451a65051
|
refs/heads/master
| 2021-01-10T05:08:31.000287
| 2016-03-19T20:39:17
| 2016-03-19T20:39:17
| 54,283,808
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 580
|
java
|
package android.support.v7.widget;
import android.os.Parcel;
import android.os.Parcelable.Creator;
final class Toolbar$SavedState$1
implements Parcelable.Creator<Toolbar.SavedState>
{
public final Toolbar.SavedState createFromParcel(Parcel paramParcel)
{
return new Toolbar.SavedState(paramParcel);
}
public final Toolbar.SavedState[] newArray(int paramInt)
{
return new Toolbar.SavedState[paramInt];
}
}
/* Location:
* Qualified Name: android.support.v7.widget.Toolbar.SavedState.1
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
96fc83948918c5be00aed747569a2eea1b2b81e8
|
c7c6b39dc44c35f6f61638670e24aa64f5f2f448
|
/src/server/multusession/Client.java
|
afa1f85120eaddbf6009bd45e6002f544b19cd18
|
[] |
no_license
|
LevinMK23/Chat
|
211e06cea24cae97aa4f5a229889b815088d3b82
|
95faca8742368e2f7848ba4173d273d57a7ec962
|
refs/heads/master
| 2020-04-22T16:48:01.630780
| 2019-02-13T14:20:09
| 2019-02-13T14:20:09
| 170,520,222
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,505
|
java
|
package server.multusession;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;
import java.util.Scanner;
public class Client {
private Socket clientSocket;
private Scanner in;
private BufferedWriter out;
private static int cnt = 0;
private int number;
private Server server;
public int getName() {
return number;
}
public Client() {
cnt++;
number = cnt;
try {
clientSocket = new Socket("localhost", 8080);
} catch (IOException e) {
e.printStackTrace();
}
try {
in = new Scanner(new InputStreamReader(clientSocket.getInputStream()));
} catch (IOException e) {
e.printStackTrace();
}
try {
out = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream()));
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("Client was created, " + cnt);
}
public void close() throws IOException {
clientSocket.close();
in.close();
out.close();
}
public void putMessage(String message){
try {
out.write(message + '\n');
out.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
public void showDialog(){
System.out.println(in.nextLine());
}
}
|
[
"levinmk23@gmail.com"
] |
levinmk23@gmail.com
|
1eb6daf861a14632d88972170563588db3cb7e95
|
f609cb34b3538f6dac07d2d8144ce45b14ca8ac2
|
/src/coding/temp/_0041_First_Missing_Positive.java
|
15d26bcf7ab4a33d454b032965f9d5ab8c537763
|
[] |
no_license
|
sahilmutreja/Algorithms
|
ca8f6f59039b01ea2c0ea7f7f6e51de7e9982141
|
a24f6e73c1ad4c863c67e957fcba781c4953ac80
|
refs/heads/master
| 2023-02-10T08:00:13.729659
| 2021-01-04T08:02:12
| 2021-01-04T08:02:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,666
|
java
|
/**
* @author: Yunxiang He
* @date : 2018-06-27
*/
package coding.temp;
/*
Given an unsorted integer array, find the smallest missing positive integer.
Example 1:
Input: [1,2,0]
Output: 3
Example 2:
Input: [3,4,-1,1]
Output: 2
Example 3:
Input: [7,8,9,11,12]
Output: 1
Note:
Your algorithm should run in O(n) time and uses constant extra space.
*/
public class _0041_First_Missing_Positive {
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public int firstMissingPositive(int[] nums) {
int left = 0;
while (left < nums.length) {
if (nums[left] > 0 && nums[left] < nums.length && nums[left] != left + 1 && nums[left] != nums[nums[left] - 1]) {
swap(nums, left, nums[left] - 1);
continue;
}
left++;
}
for (int i = 0; i < nums.length; i++) {
if (nums[i] != i + 1) {
return i + 1;
}
}
return nums.length + 1;
}
private void swap(int[] nums, int i, int j) {
int temp = nums[i];
nums[i] = nums[j];
nums[j] = temp;
}
public static void main(String[] args) {
_0041_First_Missing_Positive test = new _0041_First_Missing_Positive();
System.out.println(test.firstMissingPositive(new int[] { 2, 1 }));
}
}
|
[
"155028525@qq.com"
] |
155028525@qq.com
|
090c6d36344ba049e2a41755c419b5e446c96159
|
d383eae25299467f33a15d606fdcf91e56fc3967
|
/util/src/main/java/org/tipprunde/factory/xml/community/XmlTippsFactory.java
|
98ed23aaba79a07dc9cab8ef44241291caf05b24
|
[] |
no_license
|
thorsten-k/tipprunde
|
6dc11424064d867c6009b8359d9e862c22a8767c
|
4bbc99784e642f88e46b58ee1ae92b380a2c2c25
|
refs/heads/master
| 2023-04-30T07:31:59.169857
| 2023-04-19T11:52:53
| 2023-04-19T11:52:53
| 71,550,240
| 0
| 0
| null | 2021-08-22T06:12:09
| 2016-10-21T09:20:05
|
Java
|
UTF-8
|
Java
| false
| false
| 185
|
java
|
package org.tipprunde.factory.xml.community;
import org.tipprunde.model.xml.community.Tipps;
public class XmlTippsFactory
{
public static Tipps build()
{
return new Tipps();
}
}
|
[
"t.kisner@web.de"
] |
t.kisner@web.de
|
dfcbd7fe3653289a4dd8177102f2f092deb1d3da
|
f1fe2f477110e35fe051151b3fb885a6c7e95555
|
/src/easy/_278/VersionControl.java
|
39631e7a63463ae00b15dc9e1f1f94ed5615e8b0
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
jsyjst/LeetCode
|
c0170bad7c51e38c652ffcc13ec72b591e0c363f
|
396a1584333eb4c8874898e312bfeb4482c1182b
|
refs/heads/master
| 2022-09-05T09:26:24.074565
| 2022-08-07T11:18:43
| 2022-08-07T11:18:43
| 183,161,774
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 211
|
java
|
package easy._278;
/**
* <pre>
* author : 残渊
* time : 2019/08/30
* desc :
* </pre>
*/
public class VersionControl {
boolean isBadVersion(int version){
return true;
}
}
|
[
"y8588130@163.com"
] |
y8588130@163.com
|
8cb7d89402e6c6da2c942536617e532ac1de1ca3
|
43eba8528580c53478bb86fd44570b47b0f3f6d4
|
/app/src/main/java/synchedapps/tmbazar/Network/my_add_updater.java
|
e8d4e57820e76956e95089d1376c29bd4a0a2db0
|
[] |
no_license
|
tagam24/TmBazar
|
ce2970c878301ba237df2c76786e6fd1ac9c8744
|
3b937de99a0f22eaa07e719c692fea0bf8ff089a
|
refs/heads/master
| 2020-05-02T06:24:02.403496
| 2019-03-26T13:32:15
| 2019-03-26T13:32:15
| 177,794,415
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,273
|
java
|
package synchedapps.tmbazar.Network;
import android.util.Log;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import java.net.URLEncoder;
/**
* Created by User on 06.07.2018.
*/
public class my_add_updater {
Thread updater;
public void updater_add(final String table, final String deleteID,final String satyldy){
updater=new Thread(new Runnable() {
@Override
public void run() {
try{
Log.d(table,satyldy+","+deleteID);
//URL url=new URL("http://ynamly.biz/Reklama3/adds/get_data.php");
URL url=new URL("http://"+network.address+"/Reklama/adds/update_myAdd.php");
HttpURLConnection conn=(HttpURLConnection)url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setRequestProperty("Cookie", "__test=cef9bc49784623b7fc983b799bfb4b89; Friday, January 1, 2038 at 2:55:55 AM; path=/");
conn.setRequestMethod("POST");
conn.connect();
OutputStream outputStream = conn.getOutputStream();
BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
String post_data = URLEncoder.encode("delete", "UTF-8") + "=" + URLEncoder.encode(deleteID, "UTF-8")+"&"+
URLEncoder.encode("satyldy","UTF-8")+"="+URLEncoder.encode(satyldy,"UTF-8")+"&"+
URLEncoder.encode("table","UTF-8")+"="+URLEncoder.encode(table,"UTF-8");
Log.d("namegidyar",post_data);
bufferedWriter.write(post_data);
bufferedWriter.flush();
bufferedWriter.close();
outputStream.close();
InputStream in = conn.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(in));
StringBuilder sb = new StringBuilder();
String row = "";
while ((row = br.readLine()) != null) {
sb.append(row + "\n");}
Log.d("namegelya",sb.toString());
br.close();
in.close();
conn.disconnect();
// if (!sb.toString().equals(""))GetJson(table,sb.toString());//idlar gelyar tazelemeli
Thread.currentThread().interrupt();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ProtocolException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}) ;
updater.start();
}
}
|
[
"you@example.com"
] |
you@example.com
|
fb9903bf5e0f72f640c7bebf002266554424dd43
|
6d109557600329b936efe538957dfd0a707eeafb
|
/src/com/google/api/ads/dfp/v201311/LineItemError.java
|
951b46c8f116a7415077c537178b9085cfad1037
|
[
"Apache-2.0"
] |
permissive
|
google-code-export/google-api-dfp-java
|
51b0142c19a34cd822a90e0350eb15ec4347790a
|
b852c716ef6e5d300363ed61e15cbd6242fbac85
|
refs/heads/master
| 2020-05-20T03:52:00.420915
| 2013-12-19T23:08:40
| 2013-12-19T23:08:40
| 32,133,590
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,291
|
java
|
/**
* LineItemError.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201311;
/**
* A catch-all error that lists all generic errors associated with
* LineItem.
*/
public class LineItemError extends com.google.api.ads.dfp.v201311.ApiError implements java.io.Serializable {
/* The error reason represented by an enum. */
private com.google.api.ads.dfp.v201311.LineItemErrorReason reason;
public LineItemError() {
}
public LineItemError(
java.lang.String fieldPath,
java.lang.String trigger,
java.lang.String errorString,
java.lang.String apiErrorType,
com.google.api.ads.dfp.v201311.LineItemErrorReason reason) {
super(
fieldPath,
trigger,
errorString,
apiErrorType);
this.reason = reason;
}
/**
* Gets the reason value for this LineItemError.
*
* @return reason * The error reason represented by an enum.
*/
public com.google.api.ads.dfp.v201311.LineItemErrorReason getReason() {
return reason;
}
/**
* Sets the reason value for this LineItemError.
*
* @param reason * The error reason represented by an enum.
*/
public void setReason(com.google.api.ads.dfp.v201311.LineItemErrorReason reason) {
this.reason = reason;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof LineItemError)) return false;
LineItemError other = (LineItemError) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.reason==null && other.getReason()==null) ||
(this.reason!=null &&
this.reason.equals(other.getReason())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getReason() != null) {
_hashCode += getReason().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(LineItemError.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201311", "LineItemError"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("reason");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201311", "reason"));
elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201311", "LineItemError.Reason"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"api.arogal@gmail.com@e5600b00-1bfd-11df-acd4-e1cde50d4098"
] |
api.arogal@gmail.com@e5600b00-1bfd-11df-acd4-e1cde50d4098
|
05c1bec521ffc2b7230b365e76e699ff742e8b34
|
d14a2614e33de3bfac1c33ba08b836af947a4257
|
/src/main/java/com/yuntian/smartblog/util/PasswordUtil.java
|
3c18fd581e0997abbe4f065dce73dafb3bf587b9
|
[] |
no_license
|
chuzhonglingyan/smartblog
|
b6642bed606f8e22fd3b12af64f2f0bd6169b7f5
|
f5513feffadffc39f98be472e9328fd84b825b63
|
refs/heads/master
| 2020-03-28T07:44:25.098268
| 2018-09-01T10:00:19
| 2018-09-01T10:00:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,616
|
java
|
package com.yuntian.smartblog.util;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils;
import java.security.MessageDigest;
/**
* @Auther: yuntian
* @Date: 2018/8/29 23:02
* @Description:
*/
public class PasswordUtil {
/**
* 生成含有盐的字符串
*/
public static String md5HexWithSalt(String text, String salt) {
if (StringUtils.isNotBlank(salt)) {
text = md5Hex(text + salt);
char[] cs = new char[48];
for (int i = 0; i < 48; i += 3) {
cs[i] = text.charAt(i / 3 * 2);
char c = salt.charAt(i / 3);
cs[i + 1] = c;
cs[i + 2] = text.charAt(i / 3 * 2 + 1);
}
return new String(cs);
}
return md5Hex(text);
}
/**
* 生成含有随机盐的字符串
*/
public static String md5HexWithSalt(String text) {
String salt = generateSalt();
text = md5Hex(text + salt);
char[] cs = new char[48];
for (int i = 0; i < 48; i += 3) {
cs[i] = text.charAt(i / 3 * 2);
char c = salt.charAt(i / 3);
cs[i + 1] = c;
cs[i + 2] = text.charAt(i / 3 * 2 + 1);
}
return new String(cs);
}
/**
* 功能描述:
*
* @param: 生成随机数的盐
* @return:
* @auther: yuntian
* @date: 2018/8/30 19:08
*/
public static String generateSalt() {
String salt = UUIDUitl.generate16ShortUuid();
return salt;
}
/**
* 校验参数是否正确
*/
public static boolean verify(String text, String md5) {
char[] cs1 = new char[32];
char[] cs2 = new char[16];
for (int i = 0; i < 48; i += 3) {
cs1[i / 3 * 2] = md5.charAt(i);
cs1[i / 3 * 2 + 1] = md5.charAt(i + 2);
cs2[i / 3] = md5.charAt(i + 1);
}
String salt = new String(cs2);
return md5Hex(text + salt).equals(new String(cs1));
}
/**
* 获取十六进制字符串形式的MD5摘要
*/
public static String md5Hex(String src) {
try {
MessageDigest md5 = MessageDigest.getInstance("MD5");
byte[] bs = md5.digest(src.getBytes());
return Hex.encodeHexString(bs);
} catch (Exception e) {
return null;
}
}
public static void main(String[] args) {
String password = md5HexWithSalt("admin");
System.out.println(password);
System.out.println(verify("admin", password));
}
}
|
[
"944610721@qq.com"
] |
944610721@qq.com
|
8b79dd686755764e98f2908b95141764a59d8308
|
f662526b79170f8eeee8a78840dd454b1ea8048c
|
/fi.java
|
afcd78b7f3e12a0f7e84468e9146adae15e03749
|
[] |
no_license
|
jason920612/Minecraft
|
5d3cd1eb90726efda60a61e8ff9e057059f9a484
|
5bd5fb4dac36e23a2c16576118da15c4890a2dff
|
refs/heads/master
| 2023-01-12T17:04:25.208957
| 2020-11-26T08:51:21
| 2020-11-26T08:51:21
| 316,170,984
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,355
|
java
|
/* */ import com.mojang.brigadier.StringReader;
/* */ import com.mojang.brigadier.exceptions.CommandSyntaxException;
/* */ import java.util.Locale;
/* */
/* */
/* */
/* */
/* */ public class fi
/* */ implements fk
/* */ {
/* 11 */ public static final fi a = new fi(1.0F, 0.0F, 0.0F, 1.0F);
/* 12 */ public static final fk.a<fi> b = new fk.a<fi>()
/* */ {
/* */ public fi a(fl<fi> ☃, StringReader stringReader) throws CommandSyntaxException
/* */ {
/* 16 */ stringReader.expect(' ');
/* 17 */ float f1 = (float)stringReader.readDouble();
/* 18 */ stringReader.expect(' ');
/* 19 */ float f2 = (float)stringReader.readDouble();
/* 20 */ stringReader.expect(' ');
/* 21 */ float f3 = (float)stringReader.readDouble();
/* 22 */ stringReader.expect(' ');
/* 23 */ float f4 = (float)stringReader.readDouble();
/* 24 */ return new fi(f1, f2, f3, f4);
/* */ }
/* */
/* */
/* */ public fi a(fl<fi> ☃, hy hy1) {
/* 29 */ return new fi(hy1.readFloat(), hy1.readFloat(), hy1.readFloat(), hy1.readFloat());
/* */ }
/* */ };
/* */
/* */ private final float c;
/* */ private final float d;
/* */ private final float e;
/* */ private final float f;
/* */
/* */ public fi(float ☃, float f1, float f2, float f3) {
/* 39 */ this.c = ☃;
/* 40 */ this.d = f1;
/* 41 */ this.e = f2;
/* */
/* 43 */ this.f = xq.a(f3, 0.01F, 4.0F);
/* */ }
/* */
/* */
/* */ public void a(hy ☃) {
/* 48 */ ☃.writeFloat(this.c);
/* 49 */ ☃.writeFloat(this.d);
/* 50 */ ☃.writeFloat(this.e);
/* 51 */ ☃.writeFloat(this.f);
/* */ }
/* */
/* */
/* */ public String a() {
/* 56 */ return String.format(Locale.ROOT, "%s %.2f %.2f %.2f %.2f", new Object[] { b().d(), Float.valueOf(this.c), Float.valueOf(this.d), Float.valueOf(this.e), Float.valueOf(this.f) });
/* */ }
/* */
/* */
/* */ public fl<fi> b() {
/* 61 */ return fm.m;
/* */ }
/* */ }
/* Location: F:\dw\server.jar!\fi.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"jasonya2206@gmail.com"
] |
jasonya2206@gmail.com
|
6f3b03ea1ef1788dc627d36aae00595ad4178bb5
|
3b7f2ec02509c03624366c1ff0a9a1e8a49d1c6b
|
/src/main/java/com/sleepycat/je/SequenceNotFoundException.java
|
ba0b6bd2a6b09ba5ea57fc70b2b20ef43f04f680
|
[
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
andyglick/berkeley-db-java-edition
|
ae09295a6489ea61d23be346fe1676adc13d2b82
|
5b0b4a653a696ff415a388df3cbb0cbf7e85001f
|
refs/heads/master
| 2023-01-30T16:40:31.198418
| 2020-12-09T03:12:15
| 2020-12-09T03:12:15
| 319,814,512
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,596
|
java
|
/*-
* Copyright (C) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle Berkeley
* DB Java Edition made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle Berkeley DB Java Edition for a copy of the
* license and additional information.
*/
package com.sleepycat.je;
/**
* Thrown by {@link Database#openSequence Database.openSequence} if the
* sequence record does not exist and the {@code SequenceConfig AllowCreate}
* parameter is false.
*
* <p>The {@link Transaction} handle is <em>not</em> invalidated as a result of
* this exception.</p>
*
* @since 4.0
*/
public class SequenceNotFoundException extends OperationFailureException {
private static final long serialVersionUID = 1;
/**
* For internal use only.
* @hidden
*/
public SequenceNotFoundException(String message) {
super(null /*locker*/, false /*abortOnly*/, message, null /*cause*/);
}
/**
* For internal use only.
* @hidden
*/
private SequenceNotFoundException(String message,
SequenceNotFoundException cause) {
super(message, cause);
}
/**
* For internal use only.
* @hidden
*/
@Override
public OperationFailureException wrapSelf(String msg) {
return new SequenceNotFoundException(msg, this);
}
}
|
[
"andyglick@gmail.com"
] |
andyglick@gmail.com
|
341abc377b57065beea8f7e328c672d28b0d9afc
|
95b93c921adf5c09793c41a7f0104374201212ab
|
/ws-Client/src/main/java/demo/spring/service_large/SayHi78.java
|
212ea94f18412c58b1c47d97a303583be803942f
|
[] |
no_license
|
yhjhoo/WS-CXF-AuthTest
|
d6ad62bdf95af7f4832f16ffa242785fc0a93eb8
|
ded10abaefdc2e8b3b32becdc6f5781471acf27f
|
refs/heads/master
| 2020-06-15T02:21:42.204025
| 2015-04-08T00:05:02
| 2015-04-08T00:05:02
| 33,409,007
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,299
|
java
|
package demo.spring.service_large;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for sayHi78 complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="sayHi78">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "sayHi78", propOrder = {
"arg0"
})
public class SayHi78 {
protected String arg0;
/**
* Gets the value of the arg0 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArg0() {
return arg0;
}
/**
* Sets the value of the arg0 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArg0(String value) {
this.arg0 = value;
}
}
|
[
"yhjhoo@163.com"
] |
yhjhoo@163.com
|
9380ed2ba76c04d20f73a074d778f3e726083ac0
|
d5f2ae4eb62470de65239e2b156edb0d193489ea
|
/BaseLibrary/src/main/java/com/example/baselibrary/http/constants/HttpConstants.java
|
9fce5520d763161d7200507b243173b839679795
|
[] |
no_license
|
fengyuehan/Hodgepodge
|
d435c9304f3658b02c207dc4f65e20b1fe616153
|
bcfc9517d58656b7aab0d82eb34cca6ded91ae36
|
refs/heads/master
| 2023-01-03T15:41:32.797615
| 2020-10-28T05:51:56
| 2020-10-28T05:51:56
| 301,952,286
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 606
|
java
|
package com.example.baselibrary.http.constants;
public class HttpConstants {
//查询网络的Cache-Control设置,头部Cache-Control设为max-age=0
//(假如请求了服务器并在a时刻返回响应结果,则在max-age规定的秒数内,浏览器将不会发送对应的请求到服务器,数据由缓存直接返回)时则不会使用缓存而请求服务器
public static final String sCACHE_CONTROL_AGE = "max-age=0";
//设缓存有效期为两天
public static final long sCACHE_STALE_SEC = 60 * 60 * 24 * 2;
//服务器地址
public static String HTTP_URL;
}
|
[
"981831456@qq.com"
] |
981831456@qq.com
|
a2620bb2bf928d18e005c187891043bd9853f770
|
eb7f61811658a0477f72a217e65dcec6756508f1
|
/src/main/java/com/app/model/JwtUserDetails.java
|
61b34094febdf92e5df86c30b834db868ca6fc13
|
[] |
no_license
|
KhanhPham0102/Shopping-Online
|
00fbea6b42fff5aca0f60a46f514d695ff15e89b
|
48ec260dfba22097ead17ebdfed4f6adb8b78215
|
refs/heads/master
| 2020-05-03T01:13:49.659659
| 2019-03-29T04:21:48
| 2019-03-29T04:21:48
| 178,331,608
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,135
|
java
|
package com.app.model;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Collection;
@Data
public class JwtUserDetails implements UserDetails {
private String userName;
private String passWord;
private String token;
public JwtUserDetails(String userName, String passWord, String token) {
this.userName = userName;
this.passWord = passWord;
this.token= token;
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
return null;
}
@Override
public String getPassword() {
return null;
}
@Override
public String getUsername() {
return userName;
}
@Override
public boolean isAccountNonExpired() {
return true;
}
@Override
public boolean isAccountNonLocked() {
return true;
}
@Override
public boolean isCredentialsNonExpired() {
return true;
}
@Override
public boolean isEnabled() {
return true;
}
}
|
[
"="
] |
=
|
152bcf74eb5a93a1ea430d0e2188b3b344d091ee
|
06eb59d91495a2b9568d21019e4dcb61ff236b7a
|
/izpack-src/tags/3.11.0/src/lib/com/izforge/izpack/io/VolumeNotFoundException.java
|
45bdb2c55741470649408924966e94033485e95f
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
jponge/izpack-full-svn-history-copy
|
8fa773fb3f9f4004e762d29f708273533ba0ff1f
|
7a521ccd6ce0dd1a0664eaae12fd5bba5571d231
|
refs/heads/master
| 2016-09-01T18:24:14.656773
| 2010-03-01T07:38:22
| 2010-03-01T07:38:22
| 551,191
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,985
|
java
|
/*
* IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
*
* http://izpack.org/ http://izpack.codehaus.org/
*
* Copyright 2007 Dennis Reil
*
* 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.izforge.izpack.io;
import java.io.IOException;
/**
* Exception, indicating, that a volume was not found.
*
* @author Dennis Reil, <Dennis.Reil@reddot.de>
*/
public class VolumeNotFoundException extends IOException
{
protected String volumename;
protected long alreadyskippedbytes;
private static final long serialVersionUID = 9062182895972373707L;
public VolumeNotFoundException()
{
super();
}
public VolumeNotFoundException(String message, String volumename)
{
super(message);
this.volumename = volumename;
}
/**
* Returns the name of the volume, which couldn't be found
*
* @return the name of the volume
*/
public String getVolumename()
{
return volumename;
}
/**
* Returns the amount of skipped bytes, if a skip-operation was in progress
*
* @return the amount of skipped bytes
*/
public long getAlreadyskippedbytes()
{
return alreadyskippedbytes;
}
/**
* Sets the amount of already skipped bytes.
*
* @param alreadyskippedbytes
*/
public void setAlreadyskippedbytes(long alreadyskippedbytes)
{
this.alreadyskippedbytes = alreadyskippedbytes;
}
}
|
[
"jponge@7d736ef5-cfd4-0310-9c9a-b52d5c14b761"
] |
jponge@7d736ef5-cfd4-0310-9c9a-b52d5c14b761
|
9f742f19bffc14b89230359be9891dee4ed1cd0b
|
7ef841751c77207651aebf81273fcc972396c836
|
/dstream/src/main/java/com/loki/dstream/stubs/SampleClass6396.java
|
7bcdabb54bee60b2d2118ce7effd54546eea33a9
|
[] |
no_license
|
SergiiGrechukha/ModuleApp
|
e28e4dd39505924f0d36b4a0c3acd76a67ed4118
|
00e22d51c8f7100e171217bcc61f440f94ab9c52
|
refs/heads/master
| 2022-05-07T13:27:37.704233
| 2019-11-22T07:11:19
| 2019-11-22T07:11:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 274
|
java
|
package com.loki.dstream.stubs;
public class SampleClass6396 {
private SampleClass6397 sampleClass;
public SampleClass6396(){
sampleClass = new SampleClass6397();
}
public String getClassName() {
return sampleClass.getClassName();
}
}
|
[
"sergey.grechukha@gmail.com"
] |
sergey.grechukha@gmail.com
|
4215fdd17c3c943e5f835f2af8da6a5f199899bc
|
24f9544d72289885a3ab4c429c5ef06fb2c2b4f7
|
/Later/Spring_Later/20_SprintBoot_Basics/File_handling/26/SpringBootDemo/src/main/java/com/ram/controller/FileUploadController.java
|
95fa1f2c76d6ffd7ed73c84035143c06cf839d6f
|
[] |
no_license
|
marciopocebon/Java_Spring_2019
|
c948670a69fd801aa5eb97711248c9f4037e1f40
|
68b94c4a17b98812e56a86e0d2b480dcf6802ca6
|
refs/heads/master
| 2020-06-04T17:55:50.659932
| 2019-06-12T08:14:04
| 2019-06-12T08:14:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,347
|
java
|
package com.ram.controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class FileUploadController
{
@RequestMapping(value = "/download", method = RequestMethod.GET)
public ResponseEntity<Object> downloadFile() throws IOException
{
String filename = "D:/work/tree.jpg";
File file = new File(filename);
InputStreamResource resource = new InputStreamResource(new FileInputStream(file));
HttpHeaders headers = new HttpHeaders();
headers.add("Content-Disposition",
String.format("attachment; filename=\"%s\"", file.getName()));
headers.add("Cache-Control", "no-cache, no-store, must-revalidate");
headers.add("Pragma", "no-cache");
headers.add("Expires", "0");
ResponseEntity<Object> responseEntity = ResponseEntity.ok().headers(headers)
.contentLength(file.length())
.contentType(MediaType.parseMediaType("application/txt")).body(resource);
return responseEntity;
}
}
|
[
"ramram_43210@yahoo.com"
] |
ramram_43210@yahoo.com
|
0c01577b32ec2c8e42e5643d500bf24942eec575
|
732182a102a07211f7c1106a1b8f409323e607e0
|
/serviced/beans/lx/gs/map/msg/MatchTeamInfo.java
|
3471662d2954eba6f30c307f0ae902ae69c33e35
|
[] |
no_license
|
BanyLee/QYZ_Server
|
a67df7e7b4ec021d0aaa41cfc7f3bd8c7f1af3da
|
0eeb0eb70e9e9a1a06306ba4f08267af142957de
|
refs/heads/master
| 2021-09-13T22:32:27.563172
| 2018-05-05T09:20:55
| 2018-05-05T09:20:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,643
|
java
|
package lx.gs.map.msg;
import com.goldhuman.Common.Marshal.Marshal;
import com.goldhuman.Common.Marshal.OctetsStream;
import com.goldhuman.Common.Marshal.MarshalException;
public class MatchTeamInfo implements Marshal {
public java.util.ArrayList<lx.gs.role.msg.RoleShowInfo4> members;
public MatchTeamInfo() {
members = new java.util.ArrayList<lx.gs.role.msg.RoleShowInfo4>();
}
public MatchTeamInfo(java.util.ArrayList<lx.gs.role.msg.RoleShowInfo4> _members_) {
this.members = _members_;
}
public final boolean _validator_() {
for (lx.gs.role.msg.RoleShowInfo4 _v_ : members)
if (!_v_._validator_()) return false;
return true;
}
public OctetsStream marshal(OctetsStream _os_) {
_os_.compact_uint32(members.size());
for (lx.gs.role.msg.RoleShowInfo4 _v_ : members) {
_os_.marshal(_v_);
}
return _os_;
}
public OctetsStream unmarshal(OctetsStream _os_) throws MarshalException {
for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) {
lx.gs.role.msg.RoleShowInfo4 _v_ = new lx.gs.role.msg.RoleShowInfo4();
_v_.unmarshal(_os_);
members.add(_v_);
}
return _os_;
}
public boolean equals(Object _o1_) {
if (_o1_ == this) return true;
if (_o1_ instanceof MatchTeamInfo) {
MatchTeamInfo _o_ = (MatchTeamInfo)_o1_;
if (!members.equals(_o_.members)) return false;
return true;
}
return false;
}
public int hashCode() {
int _h_ = 0;
_h_ += members.hashCode();
return _h_;
}
public String toString() {
StringBuilder _sb_ = new StringBuilder();
_sb_.append("(");
_sb_.append(members).append(",");
_sb_.append(")");
return _sb_.toString();
}
}
|
[
"hadowhadow@gmail.com"
] |
hadowhadow@gmail.com
|
3178c79e6cb2b222da8d09cb1e7721e5fa6adbbb
|
a2df6764e9f4350e0d9184efadb6c92c40d40212
|
/aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/model/v20190815/GetLinkeBahamutPipelinegetcomponentresultResponse.java
|
e5aa9cd74287d0a098b6a5535d245fff7049dc04
|
[
"Apache-2.0"
] |
permissive
|
warriorsZXX/aliyun-openapi-java-sdk
|
567840c4bdd438d43be6bd21edde86585cd6274a
|
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
|
refs/heads/master
| 2022-12-06T15:45:20.418475
| 2020-08-20T08:37:31
| 2020-08-26T06:17:49
| 290,450,773
| 1
| 0
|
NOASSERTION
| 2020-08-26T09:15:48
| 2020-08-26T09:15:47
| null |
UTF-8
|
Java
| false
| false
| 6,792
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.sofa.model.v20190815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.sofa.transform.v20190815.GetLinkeBahamutPipelinegetcomponentresultResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetLinkeBahamutPipelinegetcomponentresultResponse extends AcsResponse {
private String requestId;
private String resultCode;
private String resultMessage;
private String errorMessage;
private String errorMsgParamsMap;
private String message;
private Long responseStatusCode;
private Boolean success;
private Result result;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getResultCode() {
return this.resultCode;
}
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
public String getResultMessage() {
return this.resultMessage;
}
public void setResultMessage(String resultMessage) {
this.resultMessage = resultMessage;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getErrorMsgParamsMap() {
return this.errorMsgParamsMap;
}
public void setErrorMsgParamsMap(String errorMsgParamsMap) {
this.errorMsgParamsMap = errorMsgParamsMap;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public Long getResponseStatusCode() {
return this.responseStatusCode;
}
public void setResponseStatusCode(Long responseStatusCode) {
this.responseStatusCode = responseStatusCode;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Result getResult() {
return this.result;
}
public void setResult(Result result) {
this.result = result;
}
public static class Result {
private String causedBy;
private String componentDisplayName;
private String componentId;
private String componentName;
private String componentType;
private String data;
private String detailStatus;
private String errorMsg;
private String executionResult;
private String executionTaskId;
private String expressionData;
private String expressionDesc;
private String expressionRule;
private String failReason;
private String htmlText;
private String loggerUrl;
private String status;
private Boolean success;
private String tipHtml;
public String getCausedBy() {
return this.causedBy;
}
public void setCausedBy(String causedBy) {
this.causedBy = causedBy;
}
public String getComponentDisplayName() {
return this.componentDisplayName;
}
public void setComponentDisplayName(String componentDisplayName) {
this.componentDisplayName = componentDisplayName;
}
public String getComponentId() {
return this.componentId;
}
public void setComponentId(String componentId) {
this.componentId = componentId;
}
public String getComponentName() {
return this.componentName;
}
public void setComponentName(String componentName) {
this.componentName = componentName;
}
public String getComponentType() {
return this.componentType;
}
public void setComponentType(String componentType) {
this.componentType = componentType;
}
public String getData() {
return this.data;
}
public void setData(String data) {
this.data = data;
}
public String getDetailStatus() {
return this.detailStatus;
}
public void setDetailStatus(String detailStatus) {
this.detailStatus = detailStatus;
}
public String getErrorMsg() {
return this.errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public String getExecutionResult() {
return this.executionResult;
}
public void setExecutionResult(String executionResult) {
this.executionResult = executionResult;
}
public String getExecutionTaskId() {
return this.executionTaskId;
}
public void setExecutionTaskId(String executionTaskId) {
this.executionTaskId = executionTaskId;
}
public String getExpressionData() {
return this.expressionData;
}
public void setExpressionData(String expressionData) {
this.expressionData = expressionData;
}
public String getExpressionDesc() {
return this.expressionDesc;
}
public void setExpressionDesc(String expressionDesc) {
this.expressionDesc = expressionDesc;
}
public String getExpressionRule() {
return this.expressionRule;
}
public void setExpressionRule(String expressionRule) {
this.expressionRule = expressionRule;
}
public String getFailReason() {
return this.failReason;
}
public void setFailReason(String failReason) {
this.failReason = failReason;
}
public String getHtmlText() {
return this.htmlText;
}
public void setHtmlText(String htmlText) {
this.htmlText = htmlText;
}
public String getLoggerUrl() {
return this.loggerUrl;
}
public void setLoggerUrl(String loggerUrl) {
this.loggerUrl = loggerUrl;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getTipHtml() {
return this.tipHtml;
}
public void setTipHtml(String tipHtml) {
this.tipHtml = tipHtml;
}
}
@Override
public GetLinkeBahamutPipelinegetcomponentresultResponse getInstance(UnmarshallerContext context) {
return GetLinkeBahamutPipelinegetcomponentresultResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
974d49374e2c9494f0d04b193e13da5efb4dea07
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-16b-4-6-FEMO-WeightedSum:TestLen:CallDiversity/org/mockito/Mockito_ESTest.java
|
266f39adcfb84d9eedcef6c1af955a8d1db8c82b
|
[] |
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
| 796
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Apr 04 09:43:32 UTC 2020
*/
package org.mockito;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.mockito.internal.verification.api.VerificationMode;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class Mockito_ESTest extends Mockito_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
VerificationMode verificationMode0 = Mockito.atLeast(0);
// Undeclared exception!
Mockito.when((Object) verificationMode0);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
69022c0eb92f6a972e2fcb7bc35074c0456639b0
|
6ba31f1dc2a19a71c6a75c4b85e0fa3be91aa043
|
/src/main/java/org/easyubl/keys/JavaKeystoreKeyProvider.java
|
00862fbc22468d9e63e32386931d03bd8d5a813e
|
[
"Apache-2.0"
] |
permissive
|
sistcoop/easyubl
|
b1b68d5970bb7fa15bf5522a320a7f9f4d4e9c47
|
61131bc1253b7474b8ae21961deda6ae3c7beb68
|
refs/heads/master
| 2021-09-02T13:40:42.119534
| 2018-01-03T00:25:26
| 2018-01-03T00:25:26
| 115,809,554
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,744
|
java
|
package org.easyubl.keys;
import org.jboss.logging.Logger;
import org.keycloak.common.util.CertificateUtils;
import org.keycloak.common.util.KeyUtils;
import org.openfact.component.ComponentModel;
import org.openfact.models.CompanyModel;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.security.*;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
public class JavaKeystoreKeyProvider extends AbstractRsaKeyProvider {
private static final Logger logger = Logger.getLogger(JavaKeystoreKeyProvider.class);
public JavaKeystoreKeyProvider(CompanyModel organization, ComponentModel model) {
super(organization, model);
}
@Override
protected Keys loadKeys(CompanyModel organization, ComponentModel model) {
try {
KeyStore keyStore = KeyStore.getInstance("JKS");
keyStore.load(new FileInputStream(model.get(JavaKeystoreKeyProviderFactory.KEYSTORE_KEY)), model.get(JavaKeystoreKeyProviderFactory.KEYSTORE_PASSWORD_KEY).toCharArray());
PrivateKey privateKey = (PrivateKey) keyStore.getKey(model.get(JavaKeystoreKeyProviderFactory.KEY_ALIAS_KEY), model.get(JavaKeystoreKeyProviderFactory.KEY_PASSWORD_KEY).toCharArray());
PublicKey publicKey = KeyUtils.extractPublicKey(privateKey);
KeyPair keyPair = new KeyPair(publicKey, privateKey);
X509Certificate certificate = (X509Certificate) keyStore.getCertificate(model.get(JavaKeystoreKeyProviderFactory.KEY_ALIAS_KEY));
if (certificate == null) {
certificate = CertificateUtils.generateV1SelfSignedCertificate(keyPair, organization.getName());
}
String kid = KeyUtils.createKeyId(keyPair.getPublic());
return new Keys(kid, keyPair, certificate);
} catch (KeyStoreException kse) {
throw new RuntimeException("KeyStore error on server. " + kse.getMessage(), kse);
} catch (FileNotFoundException fnfe) {
throw new RuntimeException("File not found on server. " + fnfe.getMessage(), fnfe);
} catch (IOException ioe) {
throw new RuntimeException("IO error on server. " + ioe.getMessage(), ioe);
} catch (NoSuchAlgorithmException nsae) {
throw new RuntimeException("Algorithm not available on server. " + nsae.getMessage(), nsae);
} catch (CertificateException ce) {
throw new RuntimeException("Certificate error on server. " + ce.getMessage(), ce);
} catch (UnrecoverableKeyException uke) {
throw new RuntimeException("Keystore on server can not be recovered. " + uke.getMessage(), uke);
}
}
}
|
[
"carlosthe19916@gmail.com"
] |
carlosthe19916@gmail.com
|
4daa5c72f49124d769dfe57b3035b9e2598d6962
|
0fcb9027858713bd977c176c1a3e999aa0ed2310
|
/src/main/java/com/mmall/controller/portal/CartController.java
|
39b6e0de2e21fa9497caad4ba200edc8b0815415
|
[] |
no_license
|
wangh142007/business
|
a806c51a3eb3743512d4b9c2cbd7c60c6af3d2c7
|
3a6433c232d3cfe83022f020835ba5721347a48b
|
refs/heads/master
| 2022-12-22T12:34:04.349128
| 2019-06-11T13:37:13
| 2019-06-11T13:37:13
| 182,286,476
| 0
| 0
| null | 2022-12-16T03:06:14
| 2019-04-19T15:32:43
|
Java
|
UTF-8
|
Java
| false
| false
| 4,777
|
java
|
package com.mmall.controller.portal;
import com.mmall.common.Const;
import com.mmall.common.ResponseCode;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;
import com.mmall.service.ICartService;
import com.mmall.vo.CartVo;
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.ResponseBody;
import javax.servlet.http.HttpSession;
@Controller
@RequestMapping("/cart/")
public class CartController {
@Autowired
private ICartService iCartService;
@RequestMapping("list.do")
@ResponseBody
public ServerResponse<CartVo> list(HttpSession session, Integer count) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.list(user.getId());
}
@RequestMapping("add.do")
@ResponseBody
public ServerResponse<CartVo> add(HttpSession session, Integer count, Integer productId) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.add(user.getId(), productId, count);
}
@RequestMapping("update.do")
@ResponseBody
public ServerResponse<CartVo> update(HttpSession session, Integer count, Integer productId) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.update(user.getId(), productId, count);
}
@RequestMapping("delete_product.do")
@ResponseBody
public ServerResponse<CartVo> deleteProduct(HttpSession session, String productIds) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.deleteProduct(user.getId(), productIds);
}
@RequestMapping("select_all.do")
@ResponseBody
public ServerResponse<CartVo> selectAll(HttpSession session) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.selectOrUnSelect(user.getId(), Const.Cart.CHECKED, null);
}
@RequestMapping("un_select_all.do")
@ResponseBody
public ServerResponse<CartVo> unSelectAll(HttpSession session) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.selectOrUnSelect(user.getId(), Const.Cart.UN_CHECKED, null);
}
@RequestMapping("select.do")
@ResponseBody
public ServerResponse<CartVo> select(HttpSession session, Integer productId) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.selectOrUnSelect(user.getId(), Const.Cart.CHECKED, productId);
}
@RequestMapping("un_select.do")
@ResponseBody
public ServerResponse<CartVo> unSelect(HttpSession session, Integer productId) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEGAL_ARGUMENT.getDesc());
}
return iCartService.selectOrUnSelect(user.getId(), Const.Cart.UN_CHECKED, productId);
}
@RequestMapping("get_cart_product_count.do")
@ResponseBody
public ServerResponse<Integer> getCartProductCount(HttpSession session) {
User user = (User) session.getAttribute(Const.CURRENT_USER);
if (user == null) {
return ServerResponse.createBySuccess(0);
}
return iCartService.getCartProductCount(user.getId());
}
}
|
[
"you@example.com"
] |
you@example.com
|
4f1382f054d09262ae062e3e0b3eec19aa9f6e08
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/results/january-2017/logback/ch/qos/logback/core/pattern/parser/AmplFormatInfoTest.java
|
ef1b4c51bd83e72c1888b9ba7bde95ac6432d6cf
|
[] |
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
| 4,373
|
java
|
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
* under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation.
*/
package ch.qos.logback.core.pattern.parser;
public class AmplFormatInfoTest {
@org.junit.Test
public void testEndingInDot() {
try {
ch.qos.logback.core.pattern.FormatInfo.valueOf("45.");
org.junit.Assert.fail("45. is not a valid format info string");
} catch (java.lang.IllegalArgumentException iae) {
// OK
}
}
@org.junit.Test
public void testBasic() {
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("45");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(45);
org.junit.Assert.assertEquals(witness, fi);
}
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("4.5");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(4);
witness.setMax(5);
org.junit.Assert.assertEquals(witness, fi);
}
}
@org.junit.Test
public void testRightPad() {
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("-40");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(40);
witness.setLeftPad(false);
org.junit.Assert.assertEquals(witness, fi);
}
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("-12.5");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(12);
witness.setMax(5);
witness.setLeftPad(false);
org.junit.Assert.assertEquals(witness, fi);
}
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("-14.-5");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(14);
witness.setMax(5);
witness.setLeftPad(false);
witness.setLeftTruncate(false);
org.junit.Assert.assertEquals(witness, fi);
}
}
@org.junit.Test
public void testMinOnly() {
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("49");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(49);
org.junit.Assert.assertEquals(witness, fi);
}
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf("-587");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMin(587);
witness.setLeftPad(false);
org.junit.Assert.assertEquals(witness, fi);
}
}
@org.junit.Test
public void testMaxOnly() {
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf(".49");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMax(49);
org.junit.Assert.assertEquals(witness, fi);
}
{
ch.qos.logback.core.pattern.FormatInfo fi = ch.qos.logback.core.pattern.FormatInfo.valueOf(".-5");
ch.qos.logback.core.pattern.FormatInfo witness = new ch.qos.logback.core.pattern.FormatInfo();
witness.setMax(5);
witness.setLeftTruncate(false);
org.junit.Assert.assertEquals(witness, fi);
}
}
}
|
[
"bdanglot@gmail.com"
] |
bdanglot@gmail.com
|
35c5f4683c47403ec434387bcfaf81471186677e
|
fc77d406b6f0ec6511ea3ecf5b0364706acebe84
|
/spring-boot-04-web-restfulcrud/src/main/java/com/xubh/springboot/config/MyServerConfig.java
|
33411506a51c1c2a9a029e93b43fe7b96f7143d9
|
[
"Apache-2.0"
] |
permissive
|
786991884/spring-boot-study
|
7066e1a7750001374694b21f9f5276f92c01eff7
|
b74ac43e26d4811f1f4d9f7dbade672c9d40ba87
|
refs/heads/master
| 2023-04-14T00:59:54.726540
| 2019-10-17T08:47:36
| 2019-10-17T08:47:36
| 133,492,819
| 1
| 0
|
Apache-2.0
| 2023-03-23T20:33:19
| 2018-05-15T09:27:30
|
Java
|
UTF-8
|
Java
| false
| false
| 2,002
|
java
|
package com.xubh.springboot.config;
import com.xubh.springboot.filter.MyFilter;
import com.xubh.springboot.listener.MyListener;
import com.xubh.springboot.servlet.MyServlet;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Arrays;
@Configuration
public class MyServerConfig {
//注册三大组件
@Bean
public ServletRegistrationBean myServlet(){
ServletRegistrationBean registrationBean = new ServletRegistrationBean(new MyServlet(),"/myServlet");
registrationBean.setLoadOnStartup(1);
return registrationBean;
}
@Bean
public FilterRegistrationBean myFilter(){
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
registrationBean.setFilter(new MyFilter());
registrationBean.setUrlPatterns(Arrays.asList("/hello","/myServlet"));
return registrationBean;
}
@Bean
public ServletListenerRegistrationBean myListener(){
ServletListenerRegistrationBean<MyListener> registrationBean = new ServletListenerRegistrationBean<>(new MyListener());
return registrationBean;
}
//配置嵌入式的Servlet容器
@Bean
public EmbeddedServletContainerCustomizer embeddedServletContainerCustomizer(){
return new EmbeddedServletContainerCustomizer() {
//定制嵌入式的Servlet容器相关的规则
@Override
public void customize(ConfigurableEmbeddedServletContainer container) {
container.setPort(8083);
}
};
}
}
|
[
"786991884@qq.com"
] |
786991884@qq.com
|
42d60087b1e085f22b52d6657c7d316fd9e5d800
|
716b231c89805b3e1217c6fc0a4ff9fbcdcdb688
|
/train-core/src/main/java/com/kuyou/train/entity/po/SettingPo.java
|
8a417fea78fc2cb044cb11b05267a528ff9f4d4b
|
[] |
no_license
|
d0l1u/train_ticket
|
32b831e441e3df73d55559bc416446276d7580be
|
c385cb36908f0a6e9e4a6ebb9b3ad737edb664d7
|
refs/heads/master
| 2020-06-14T09:00:34.760326
| 2019-07-03T00:30:46
| 2019-07-03T00:30:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 363
|
java
|
package com.kuyou.train.entity.po;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* SettingPo
*
* @author taokai3
* @date 2018/12/26
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SettingPo {
private String id;
private String name;
private String value;
private String status;
}
|
[
"meizs"
] |
meizs
|
114c90887058f2b7152278b6f248d9b2078ac4b0
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-418-41-24-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/container/servlet/filters/internal/SetHTTPHeaderFilter_ESTest.java
|
5fbe07144799adeb5ab1176527b283fbcf401d0a
|
[] |
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
| 589
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Apr 03 02:59:20 UTC 2020
*/
package org.xwiki.container.servlet.filters.internal;
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 SetHTTPHeaderFilter_ESTest extends SetHTTPHeaderFilter_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
cc41d12b9e84a50a5e13153875b90f7477ec4a68
|
2527a1e4b30bee9caf7fc392d1015173706c1be1
|
/app/src/main/java/com/yunwei/frame/function/mainFuncations/mineModule/fragment/MessageSetingFragment.java
|
feaafdaead94af7536c0f4bad56bb8285426f27a
|
[
"Apache-2.0"
] |
permissive
|
yibulaxi/BaseProject-1
|
72dc0cea30b51930994aea30e4341fa9de507fc2
|
58b3e866fdb8e7173063b8e0f7e494e00e211aca
|
refs/heads/master
| 2021-06-09T17:39:12.346946
| 2017-01-13T04:48:46
| 2017-01-13T04:48:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,877
|
java
|
package com.yunwei.frame.function.mainFuncations.mineModule.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import com.yunwei.frame.R;
import com.yunwei.frame.common.Constant;
import com.yunwei.frame.base.BaseFragment;
import com.yunwei.frame.utils.ISpfUtil;
import com.yunwei.frame.utils.IStringUtils;
import com.yunwei.frame.view.SwitchButton;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* @author hezhiWu
* @version V1.0
* @Package com.yunwei.frame.function.mainFuncations.mineFuncation.fragment
* @Description:消息提醒设置界面
* @date 2016/11/28 10:22
*/
public class MessageSetingFragment extends BaseFragment {
public final static String FRAGMENT_FLAG = "MessageFragment";
@BindView(R.id.messageSetingFragment_voice_switchButton)
SwitchButton messageSetingFragmentVoiceSwitchButton;
@BindView(R.id.messageSetingFragment_notice_switchButton)
SwitchButton messageSetingFragmentNoticeSwitchButton;
private static MessageSetingFragment instance;
public static MessageSetingFragment newInstance() {
if (instance == null) {
instance = new MessageSetingFragment();
}
return instance;
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.mine_message_seting_fragment, null);
ButterKnife.bind(this, rootView);
init();
return rootView;
}
private void init() {
initUI();
setListener();
}
/**
* 初始化UI
*/
private void initUI() {
messageSetingFragmentNoticeSwitchButton.setChecked(IStringUtils.toBool(ISpfUtil.getValue(Constant.MESSAGE_NOTICE_SIGN, false).toString()));
messageSetingFragmentVoiceSwitchButton.setChecked(IStringUtils.toBool(ISpfUtil.getValue(Constant.MESSAGE_VOICE_SIGN, false).toString()));
}
/**
* 设置监听器
*/
private void setListener() {
messageSetingFragmentVoiceSwitchButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
ISpfUtil.setValue(Constant.MESSAGE_VOICE_SIGN, isChecked);
}
});
messageSetingFragmentNoticeSwitchButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
ISpfUtil.setValue(Constant.MESSAGE_NOTICE_SIGN, isChecked);
}
});
}
}
|
[
"wuhezhi@wayto.com.cn"
] |
wuhezhi@wayto.com.cn
|
04f8d12f6f1b5d5080a46806aff376b206d1ac67
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-422-3-11-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/listener/chaining/AbstractChainingListener_ESTest.java
|
8e0e181be79fd0514f4383ff5f97f881a49906e7
|
[] |
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
| 592
|
java
|
/*
* This file was automatically generated by EvoSuite
* Thu Apr 02 13:40:03 UTC 2020
*/
package org.xwiki.rendering.listener.chaining;
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 AbstractChainingListener_ESTest extends AbstractChainingListener_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
2e38f1521b500988aa984bd12f6105f8025de8a6
|
e830ac919a3e2abbf8d47ca1a56149db60ecdb74
|
/services/hrdb/src/com/auto_viuzrhgbqg/hrdb/service/EmployeeServiceImpl.java
|
06dbff0e6da8af9498875975d8aafc405f5b043b
|
[] |
no_license
|
wavemakerapps/Auto_vIuzRhGbQg
|
b7f393c3525869de285b1c009c5364880c39c874
|
65e627d195270b7cb663b932c84a8f38c4065a2c
|
refs/heads/master
| 2020-03-27T01:48:54.783827
| 2018-08-22T18:05:08
| 2018-08-22T18:05:08
| 145,744,765
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,745
|
java
|
/*Copyright (c) 2018-2019 wavemaker.com All Rights Reserved.
This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance
with the terms of the source code license agreement you entered into with wavemaker.com*/
package com.auto_viuzrhgbqg.hrdb.service;
/*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Lazy;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import com.wavemaker.commons.MessageResource;
import com.wavemaker.runtime.data.dao.WMGenericDao;
import com.wavemaker.runtime.data.exception.EntityNotFoundException;
import com.wavemaker.runtime.data.export.DataExportOptions;
import com.wavemaker.runtime.data.export.ExportType;
import com.wavemaker.runtime.data.expression.QueryFilter;
import com.wavemaker.runtime.data.model.AggregationInfo;
import com.wavemaker.runtime.file.model.Downloadable;
import com.auto_viuzrhgbqg.hrdb.Employee;
import com.auto_viuzrhgbqg.hrdb.Vacation;
/**
* ServiceImpl object for domain model class Employee.
*
* @see Employee
*/
@Service("hrdb.EmployeeService")
@Validated
public class EmployeeServiceImpl implements EmployeeService {
private static final Logger LOGGER = LoggerFactory.getLogger(EmployeeServiceImpl.class);
@Lazy
@Autowired
@Qualifier("hrdb.VacationService")
private VacationService vacationService;
@Autowired
@Qualifier("hrdb.EmployeeDao")
private WMGenericDao<Employee, Integer> wmGenericDao;
public void setWMGenericDao(WMGenericDao<Employee, Integer> wmGenericDao) {
this.wmGenericDao = wmGenericDao;
}
@Transactional(value = "hrdbTransactionManager")
@Override
public Employee create(Employee employee) {
LOGGER.debug("Creating a new Employee with information: {}", employee);
Employee employeeCreated = this.wmGenericDao.create(employee);
// reloading object from database to get database defined & server defined values.
return this.wmGenericDao.refresh(employeeCreated);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Employee getById(Integer employeeId) {
LOGGER.debug("Finding Employee by id: {}", employeeId);
return this.wmGenericDao.findById(employeeId);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Employee findById(Integer employeeId) {
LOGGER.debug("Finding Employee by id: {}", employeeId);
try {
return this.wmGenericDao.findById(employeeId);
} catch (EntityNotFoundException ex) {
LOGGER.debug("No Employee found with id: {}", employeeId, ex);
return null;
}
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public List<Employee> findByMultipleIds(List<Integer> employeeIds, boolean orderedReturn) {
LOGGER.debug("Finding Employees by ids: {}", employeeIds);
return this.wmGenericDao.findByMultipleIds(employeeIds, orderedReturn);
}
@Transactional(rollbackFor = EntityNotFoundException.class, value = "hrdbTransactionManager")
@Override
public Employee update(Employee employee) {
LOGGER.debug("Updating Employee with information: {}", employee);
this.wmGenericDao.update(employee);
this.wmGenericDao.refresh(employee);
return employee;
}
@Transactional(value = "hrdbTransactionManager")
@Override
public Employee delete(Integer employeeId) {
LOGGER.debug("Deleting Employee with id: {}", employeeId);
Employee deleted = this.wmGenericDao.findById(employeeId);
if (deleted == null) {
LOGGER.debug("No Employee found with id: {}", employeeId);
throw new EntityNotFoundException(MessageResource.create("com.wavemaker.runtime.entity.not.found"), Employee.class.getSimpleName(), employeeId);
}
this.wmGenericDao.delete(deleted);
return deleted;
}
@Transactional(value = "hrdbTransactionManager")
@Override
public void delete(Employee employee) {
LOGGER.debug("Deleting Employee with {}", employee);
this.wmGenericDao.delete(employee);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Employee> findAll(QueryFilter[] queryFilters, Pageable pageable) {
LOGGER.debug("Finding all Employees");
return this.wmGenericDao.search(queryFilters, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Employee> findAll(String query, Pageable pageable) {
LOGGER.debug("Finding all Employees");
return this.wmGenericDao.searchByQuery(query, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager", timeout = 300)
@Override
public Downloadable export(ExportType exportType, String query, Pageable pageable) {
LOGGER.debug("exporting data in the service hrdb for table Employee to {} format", exportType);
return this.wmGenericDao.export(exportType, query, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager", timeout = 300)
@Override
public void export(DataExportOptions options, Pageable pageable, OutputStream outputStream) {
LOGGER.debug("exporting data in the service hrdb for table Employee to {} format", options.getExportType());
this.wmGenericDao.export(options, pageable, outputStream);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public long count(String query) {
return this.wmGenericDao.count(query);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Map<String, Object>> getAggregatedValues(AggregationInfo aggregationInfo, Pageable pageable) {
return this.wmGenericDao.getAggregatedValues(aggregationInfo, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Employee> findAssociatedEmployeesForManagerId(Integer empId, Pageable pageable) {
LOGGER.debug("Fetching all associated employeesForManagerId");
StringBuilder queryBuilder = new StringBuilder();
queryBuilder.append("employeeByManagerId.empId = '" + empId + "'");
return findAll(queryBuilder.toString(), pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Vacation> findAssociatedVacations(Integer empId, Pageable pageable) {
LOGGER.debug("Fetching all associated vacations");
StringBuilder queryBuilder = new StringBuilder();
queryBuilder.append("employee.empId = '" + empId + "'");
return vacationService.findAll(queryBuilder.toString(), pageable);
}
/**
* This setter method should only be used by unit tests
*
* @param service VacationService instance
*/
protected void setVacationService(VacationService service) {
this.vacationService = service;
}
}
|
[
"automate1@wavemaker.com"
] |
automate1@wavemaker.com
|
e82758b507d7ec726ea63681d00b448db4fb2a39
|
0367438f3faf6a167ed6e0d1be8f91c237e1fd0c
|
/support/cas-server-support-aup-webflow/src/test/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurerTests.java
|
2ea9083e5ff7e96953f9242216b0cfaee4b63b0c
|
[
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
wangqc93/cas
|
42556a8e2e8f55481e54ff5701e65d6825b225b5
|
a89039f517ed9f1bb57049ddaaf2b3688ae955fb
|
refs/heads/master
| 2020-11-24T06:52:08.165890
| 2019-12-13T08:29:52
| 2019-12-13T08:29:52
| 227,976,255
| 1
| 0
|
Apache-2.0
| 2019-12-14T06:20:05
| 2019-12-14T06:20:04
| null |
UTF-8
|
Java
| false
| false
| 1,275
|
java
|
package org.apereo.cas.web.flow;
import org.apereo.cas.config.CasAcceptableUsagePolicyWebflowConfiguration;
import lombok.val;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.webflow.engine.Flow;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link AcceptableUsagePolicyWebflowConfigurerTests}.
*
* @author Misagh Moayyed
* @since 6.2.0
*/
@Import({
ThymeleafAutoConfiguration.class,
CasAcceptableUsagePolicyWebflowConfiguration.class,
BaseWebflowConfigurerTests.SharedTestConfiguration.class
})
public class AcceptableUsagePolicyWebflowConfigurerTests extends BaseWebflowConfigurerTests {
@Test
public void verifyOperation() {
assertFalse(casWebflowExecutionPlan.getWebflowConfigurers().isEmpty());
val flow = (Flow) this.loginFlowDefinitionRegistry.getFlowDefinition(CasWebflowConfigurer.FLOW_ID_LOGIN);
assertNotNull(flow);
assertTrue(flow.containsState(AcceptableUsagePolicyWebflowConfigurer.STATE_ID_AUP_CHECK));
assertTrue(flow.containsState(AcceptableUsagePolicyWebflowConfigurer.VIEW_ID_ACCEPTABLE_USAGE_POLICY_VIEW));
}
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
f3a1e2c8bc537d7b8fa26f01e00ec9b3534beefa
|
becfc02168247c141747ef5a52ce10dc581ab0bc
|
/action-root/action-bll/src/main/java/cn/gyyx/action/bll/exchange/IActionExchangeValidateBLL.java
|
509a69292c043d05e7e41f2886ae62a88067250f
|
[] |
no_license
|
wangqingxian/springBoot
|
629d71200f2f62466ac6590924d49bd490601276
|
0efcd6ed29816c31f2843a24d9d6dc5d1c7f98d2
|
refs/heads/master
| 2020-04-22T02:42:01.757523
| 2017-06-08T10:56:51
| 2017-06-08T10:56:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 260
|
java
|
package cn.gyyx.action.bll.exchange;
import cn.gyyx.action.beans.exchange.vo.ActionExchangeVO;
public interface IActionExchangeValidateBLL {
// 校验兑换资格
boolean validate(ActionExchangeVO params);
// 获得提示信息
String getMessage();
}
|
[
"lihu@gyyx.cn"
] |
lihu@gyyx.cn
|
d2f526f0812ff36b9ed7994a3e349800c282c273
|
3fd5ded1b43bea33b87c902ce1b1b232bd98e3e3
|
/redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/proxy/handler/NettySslHandlerFactory.java
|
6a4721e1ab440522346fe14093ed0e7fd2aad1d8
|
[
"Apache-2.0"
] |
permissive
|
ltxz2008/x-pipe
|
011e3ce0d01902d09840e8a5aeabd3c0cb7fa12d
|
10151e6e748fd0580a713a715e4da92cfb602fbf
|
refs/heads/master
| 2020-03-09T17:44:21.265452
| 2018-07-24T01:41:55
| 2018-07-24T01:41:55
| 128,915,161
| 0
| 0
|
Apache-2.0
| 2018-07-24T01:41:55
| 2018-04-10T10:26:21
|
Java
|
UTF-8
|
Java
| false
| false
| 227
|
java
|
package com.ctrip.xpipe.redis.core.proxy.handler;
import io.netty.channel.ChannelHandler;
/**
* @author chen.zhu
* <p>
* May 11, 2018
*/
public interface NettySslHandlerFactory {
ChannelHandler createSslHandler();
}
|
[
"cz739@nyu.edu"
] |
cz739@nyu.edu
|
4aed44fc42080a1eb5f31070e1b72b2b922d08ec
|
dfb3f631ed8c18bd4605739f1ecb6e47d715a236
|
/disconnect-highcharts/src/main/java/js/lang/external/highcharts/modules/DraggablePoints.java
|
378f983cb1cb39cb4197d41da991ed61b6f77434
|
[
"Apache-2.0"
] |
permissive
|
fluorumlabs/disconnect-project
|
ceb788b901d1bf7cfc5ee676592f55f8a584a34e
|
54f4ea5e6f05265ea985e1ee615cc3d59d5842b4
|
refs/heads/master
| 2022-12-26T11:26:46.539891
| 2020-08-20T16:37:19
| 2020-08-20T16:37:19
| 203,577,241
| 6
| 1
|
Apache-2.0
| 2022-12-16T00:41:56
| 2019-08-21T12:14:42
|
Java
|
UTF-8
|
Java
| false
| false
| 1,334
|
java
|
package js.lang.external.highcharts.modules;
import com.github.fluorumlabs.disconnect.core.annotations.Import;
import com.github.fluorumlabs.disconnect.core.annotations.NpmPackage;
import java.lang.UnsupportedOperationException;
import js.lang.Any;
import js.lang.Unknown /* _Highcharts */;
import js.lang.external.highcharts.Highcharts;
import org.teavm.jso.JSBody;
@NpmPackage(
name = "highcharts",
version = "^8.1.2"
)
@Import(
symbols = {"factory as DraggablePoints_factory", "Highcharts as DraggablePoints_Highcharts"},
module = "highcharts/es-modules/masters/modules/draggable-points.src.js"
)
@Import(
module = "highcharts/es-modules/masters/modules/draggable-points.src.js"
)
public interface DraggablePoints extends Any {
/**
* Adds the module to the imported Highcharts namespace.
*
* @param highcharts
* The imported Highcharts namespace to extend.
*
*/
@JSBody(
params = {"highcharts"},
script = "DraggablePoints_factory(highcharts)"
)
static void factory(Highcharts highcharts) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(
script = "return DraggablePoints_Highcharts"
)
static Unknown /* _Highcharts */ Highcharts() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
}
|
[
"fluorumlabs@users.noreply.github.com"
] |
fluorumlabs@users.noreply.github.com
|
7c16bcf45e0617ad625ac5dc64f26c91ea1f0c38
|
91e72ef337a34eb7e547fa96d99fca5a4a6dc89e
|
/subjects/jcodemodel/results/evosuite/1564648959/0107/evosuite-tests/com/helger/jcodemodel/JNullType_ESTest_scaffolding.java
|
120631590a33279597e65174ba11aa4b1b83f220
|
[] |
no_license
|
STAMP-project/descartes-amplification-experiments
|
deda5e2f1a122b9d365f7c76b74fb2d99634aad4
|
a5709fd78bbe8b4a4ae590ec50704dbf7881e882
|
refs/heads/master
| 2021-06-27T04:13:17.035471
| 2020-10-14T08:17:05
| 2020-10-14T08:17:05
| 169,711,716
| 0
| 0
| null | 2020-10-14T08:17:07
| 2019-02-08T09:32:43
|
Java
|
UTF-8
|
Java
| false
| false
| 7,944
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Aug 01 10:39:30 GMT 2019
*/
package com.helger.jcodemodel;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class JNullType_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "com.helger.jcodemodel.JNullType";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("user.dir", "/home/ubuntu/oscar/descartes-evosuite/subjects/jcodemodel/results/evosuite/1564648959/0107");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(JNullType_ESTest_scaffolding.class.getClassLoader() ,
"com.helger.jcodemodel.AbstractJClass",
"com.helger.jcodemodel.JReturn",
"com.helger.jcodemodel.IJOwnedMaybe",
"com.helger.jcodemodel.AbstractJType",
"com.helger.jcodemodel.IJDocCommentable",
"com.helger.jcodemodel.JVar",
"com.helger.jcodemodel.EClassType",
"com.helger.jcodemodel.JDoLoop",
"com.helger.jcodemodel.IJGenerable",
"com.helger.jcodemodel.JTypeVar",
"com.helger.jcodemodel.JDocComment",
"com.helger.jcodemodel.AbstractJAnnotationValue",
"com.helger.jcodemodel.EWildcardBoundMode",
"com.helger.jcodemodel.JWhileLoop",
"com.helger.jcodemodel.JThrow",
"com.helger.jcodemodel.JForEach",
"com.helger.jcodemodel.IJAnnotatable",
"com.helger.jcodemodel.IJStatement",
"com.helger.jcodemodel.IJDeclaration",
"com.helger.jcodemodel.IJClassContainer",
"com.helger.jcodemodel.JAnnotationArrayMember",
"com.helger.jcodemodel.JErrorClass",
"com.helger.jcodemodel.JErrorClassUsedException",
"com.helger.jcodemodel.JInvocation",
"com.helger.jcodemodel.JDirectClass",
"com.helger.jcodemodel.JLambdaMethodRef",
"com.helger.jcodemodel.IJGenerifiable",
"com.helger.jcodemodel.JAnnotationStringValue",
"com.helger.jcodemodel.JPackage",
"com.helger.jcodemodel.AbstractJAnnotationValueOwned",
"com.helger.jcodemodel.IJFormatter",
"com.helger.jcodemodel.JTypeWildcard",
"com.helger.jcodemodel.JForLoop",
"com.helger.jcodemodel.meta.CodeModelBuildingException",
"com.helger.jcodemodel.IJAnnotationWriter",
"com.helger.jcodemodel.JNarrowedClass",
"com.helger.jcodemodel.JEnumConstant",
"com.helger.jcodemodel.writer.FilterCodeWriter",
"com.helger.jcodemodel.writer.JFormatter",
"com.helger.jcodemodel.JAnnotationUse",
"com.helger.jcodemodel.AbstractJClassContainer",
"com.helger.jcodemodel.writer.FileCodeWriter",
"com.helger.jcodemodel.JDefinedClass",
"com.helger.jcodemodel.JCommentPart",
"com.helger.jcodemodel.JArrayCompRef",
"com.helger.jcodemodel.JNullType",
"com.helger.jcodemodel.JArrayClass",
"com.helger.jcodemodel.writer.AbstractCodeWriter",
"com.helger.jcodemodel.JReferencedClass",
"com.helger.jcodemodel.JBlock",
"com.helger.jcodemodel.JSwitch",
"com.helger.jcodemodel.JPrimitiveType",
"com.helger.jcodemodel.JMethod",
"com.helger.jcodemodel.JMods",
"com.helger.jcodemodel.IJObject",
"com.helger.jcodemodel.IJOwned",
"com.helger.jcodemodel.util.JCValueEnforcer",
"com.helger.jcodemodel.JTryBlock",
"com.helger.jcodemodel.writer.ProgressCodeWriter$IProgressTracker",
"com.helger.jcodemodel.writer.ProgressCodeWriter",
"com.helger.jcodemodel.SourcePrintWriter",
"com.helger.jcodemodel.meta.ErrorTypeFound",
"com.helger.jcodemodel.IJExpression",
"com.helger.jcodemodel.JBreak",
"com.helger.jcodemodel.JFieldVar",
"com.helger.jcodemodel.JAssignment",
"com.helger.jcodemodel.writer.JCMWriter",
"com.helger.jcodemodel.JCodeModel",
"com.helger.jcodemodel.util.UnicodeEscapeWriter",
"com.helger.jcodemodel.JLabel",
"com.helger.jcodemodel.JAnonymousClass",
"com.helger.jcodemodel.JClassAlreadyExistsException",
"com.helger.jcodemodel.fmt.AbstractJResourceFile",
"com.helger.jcodemodel.JFieldRef",
"com.helger.jcodemodel.JSynchronizedBlock",
"com.helger.jcodemodel.writer.AbstractCodeWriter$JavaUnicodeEscapeWriter",
"com.helger.jcodemodel.JContinue",
"com.helger.jcodemodel.AbstractJGenerifiableImpl",
"com.helger.jcodemodel.JConditional",
"com.helger.jcodemodel.IJExpressionStatement",
"com.helger.jcodemodel.IJAssignmentTarget",
"com.helger.jcodemodel.util.NullWriter"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(JNullType_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"com.helger.jcodemodel.AbstractJType",
"com.helger.jcodemodel.AbstractJClass",
"com.helger.jcodemodel.JNullType",
"com.helger.jcodemodel.JCodeModel",
"com.helger.jcodemodel.util.JCValueEnforcer",
"com.helger.jcodemodel.JPrimitiveType",
"com.helger.jcodemodel.JReferencedClass",
"com.helger.jcodemodel.writer.JCMWriter"
);
}
}
|
[
"oscarlvp@gmail.com"
] |
oscarlvp@gmail.com
|
cda632266a43315c59d4322cab4edc850d39aed2
|
8b2ab8bb664ba3b9846dadaf7b8cef7e16ab28bd
|
/cgiser-moka-parent/cgiser-moka-biz/src/main/java/com/cgiser/moka/manager/impl/RuneManagerImpl.java
|
85838a24286e328f6a49099ec83ebcc49d66d1f6
|
[] |
no_license
|
cgiser/moka
|
384557f4c33de570a64ed3540484ab8ac2fa5fe2
|
fedb29249b831ac987bdaf0b57855bc03196aab6
|
refs/heads/master
| 2021-03-12T22:36:34.188511
| 2015-10-02T14:37:40
| 2015-10-02T14:37:40
| 27,769,763
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,776
|
java
|
package com.cgiser.moka.manager.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.CollectionUtils;
import com.cgiser.moka.dao.RuneDao;
import com.cgiser.moka.manager.RuneManager;
import com.cgiser.moka.model.Rune;
public class RuneManagerImpl implements RuneManager {
Logger logger = LoggerFactory.getLogger(this.getClass());
private RuneDao runeDao;
List<Rune> runes = new ArrayList<Rune>();
List<Integer> star1 = new ArrayList<Integer>();
List<Integer> star2 = new ArrayList<Integer>();
List<Integer> star3 = new ArrayList<Integer>();
List<Integer> star4 = new ArrayList<Integer>();
List<Integer> star5 = new ArrayList<Integer>();
@Override
public Rune getRuneById(int runeId) {
return MapToRune(runeDao.getRuneById(runeId));
}
@Override
public List<Rune> getRunes() {
if(CollectionUtils.isEmpty(runes)){
List<Map<String,Object>> map = runeDao.getRunes();
runes = MapListToRuneList(map);
}
return runes;
}
@Override
public Integer RandomRune(int star) {
if(CollectionUtils.isEmpty(runes)){
runes = this.getRunes();
}
if(CollectionUtils.isEmpty(star1)){
for(int i=0;i<runes.size();i++){
if(runes.get(i).getColor()==1&&runes.get(i).getThinkGet()==1){
star1.add(runes.get(i).getRuneId());
}
if(runes.get(i).getColor()==2&&runes.get(i).getThinkGet()==1){
star2.add(runes.get(i).getRuneId());
}
if(runes.get(i).getColor()==3&&runes.get(i).getThinkGet()==1){
star3.add(runes.get(i).getRuneId());
}
if(runes.get(i).getColor()==4&&runes.get(i).getThinkGet()==1){
star4.add(runes.get(i).getRuneId());
}
if(runes.get(i).getColor()==5&&runes.get(i).getThinkGet()==1){
star5.add(runes.get(i).getRuneId());
}
}
}
Random rnd = new Random();
if(star==1){
return star1.get(rnd.nextInt(star1.size()));
}
if(star==2){
return star2.get(rnd.nextInt(star2.size()));
}
if(star==3){
return star3.get(rnd.nextInt(star3.size()));
}
if(star==4){
return star4.get(rnd.nextInt(star4.size()));
}
if(star==5){
return star5.get(rnd.nextInt(star5.size()));
}
return 0;
}
private List<Rune> MapListToRuneList(List<Map<String,Object>> list){
if(CollectionUtils.isEmpty(list)){
return null;
}
List<Rune> runeList = new ArrayList<Rune>();
for(int i=0;i<list.size();i++){
runeList.add(MapToRune(list.get(i)));
}
return runeList;
}
private Rune MapToRune(Map<String,Object> map){
if(CollectionUtils.isEmpty(map)){
return null;
}
Rune rune = new Rune();
rune.setBaseExp(Integer.parseInt(map.get("BASEEXP").toString()));
rune.setColor(Integer.parseInt(map.get("COLOR").toString()));
rune.setCondition(map.get("CONDITION").toString());
rune.setExp(0);
String strExp = map.get("EXPARRAY").toString();
List<String> listStrExp = Arrays.asList(strExp.split("_"));
List<Integer> expArray = new ArrayList<Integer>();
for(int i = 0;i<listStrExp.size();i++){
expArray.add(Integer.parseInt(listStrExp.get(i)));
}
rune.setExpArray(expArray);
rune.setFragment(Integer.parseInt(map.get("FRAGMENT").toString()));
// rune.setLevel(Integer.parseInt(map.get("LEVEL").toString()));
rune.setLockSkill1(Integer.parseInt(map.get("LOCKSKILL1").toString()));
rune.setLockSkill2(Integer.parseInt(map.get("LOCKSKILL2").toString()));
rune.setLockSkill3(Integer.parseInt(map.get("LOCKSKILL3").toString()));
rune.setLockSkill4(Integer.parseInt(map.get("LOCKSKILL4").toString()));
rune.setLockSkill5(Integer.parseInt(map.get("LOCKSKILL5").toString()));
rune.setPrice(Integer.parseInt(map.get("PRICE").toString()));
rune.setProperty(Integer.parseInt(map.get("PROPERTY").toString()));
rune.setRuneId(Integer.parseInt(map.get("RUNEID").toString()));
rune.setRuneName(map.get("RUNENAME").toString());
rune.setSkillConditionColor(Integer.parseInt(map.get("SKILLCONDITIONCOLOR").toString()));
rune.setSkillConditionCompare(Integer.parseInt(map.get("SKILLCONDITIONCOMPARE").toString()));
rune.setSkillConditionRace(Integer.parseInt(map.get("SKILLCONDITIONRACE").toString()));
rune.setSkillConditionSlide(Integer.parseInt(map.get("SKILLCONDITIONSLIDE").toString()));
rune.setSkillConditionType(Integer.parseInt(map.get("SKILLCONDITIONTYPE").toString()));
rune.setSkillConditionValue(Integer.parseInt(map.get("SKILLCONDITIONVALUE").toString()));
rune.setSkillTimes(Integer.parseInt(map.get("SKILLTIMES").toString()));
rune.setThinkGet(Integer.parseInt(map.get("THINKGET").toString()));
return rune;
}
public RuneDao getRuneDao() {
return runeDao;
}
public void setRuneDao(RuneDao runeDao) {
this.runeDao = runeDao;
}
}
|
[
"282848081@qq.com"
] |
282848081@qq.com
|
11f6dc0b7cc055fcb6b069e62ec18476e2163493
|
1b13df3f71db708a032952bd969b7935af0f0c42
|
/jigs-server/test/java/com/jigsforjava/util/ClassUtilsTest.java
|
a30f97b1146c69bd6d143c7071b88cb5e26283ce
|
[] |
no_license
|
tfredrich/JigsForJava
|
a94ffe320df0325631b6fa948772348c530056af
|
ff806f1da0806a203066045b507ae0b7f6f9a176
|
refs/heads/master
| 2020-05-20T10:24:43.480692
| 2010-04-21T17:40:55
| 2010-04-21T17:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,717
|
java
|
/*
Copyright 2008, Strategic Gains, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.jigsforjava.util;
import static org.junit.Assert.*;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.List;
import org.junit.Test;
/**
* @author toddf
* @since Aug 18, 2008
*/
public class ClassUtilsTest
{
@Test
public void testGetAllDeclaredFields()
{
List<Field> fields = ClassUtils.getAllDeclaredFields(A.class);
assert(fields.size() == 1);
assertEquals("fromA", fields.get(0).getName());
fields = ClassUtils.getAllDeclaredFields(B.class);
assert(fields.size() == 2);
assertEquals("fromB", fields.get(0).getName());
assertEquals("fromA", fields.get(1).getName());
fields = ClassUtils.getAllDeclaredFields(D.class);
assert(fields.size() == 2);
assertEquals("fromD", fields.get(0).getName());
assertEquals("fromA", fields.get(1).getName());
fields = ClassUtils.getAllDeclaredFields(C.class);
assert(fields.size() == 3);
assertEquals("fromC", fields.get(0).getName());
assertEquals("fromB", fields.get(1).getName());
assertEquals("fromA", fields.get(2).getName());
}
@Test
public void testGetAllDeclaredFieldsByName()
{
HashMap<String, Field> fields = ClassUtils.getAllDeclaredFieldsByName(A.class);
assert(fields.size() == 1);
assertTrue(fields.get("fromA") != null);
fields = ClassUtils.getAllDeclaredFieldsByName(B.class);
assert(fields.size() == 2);
assertTrue(fields.get("fromA") != null);
assertTrue(fields.get("fromB") != null);
fields = ClassUtils.getAllDeclaredFieldsByName(D.class);
assert(fields.size() == 2);
assertTrue(fields.get("fromA") != null);
assertTrue(fields.get("fromD") != null);
fields = ClassUtils.getAllDeclaredFieldsByName(C.class);
assert(fields.size() == 3);
assertTrue(fields.get("fromA") != null);
assertTrue(fields.get("fromB") != null);
assertTrue(fields.get("fromC") != null);
}
// SECTION: INNER CLASSES
private class A
{
private static final String A_CONSTANT = "string";
private int fromA;
}
private class B
extends A
{
private int fromB;
}
private class C
extends B
{
private int fromC;
}
private class D
extends A
{
private int fromD;
}
}
|
[
"tfredrich@gmail.com"
] |
tfredrich@gmail.com
|
a054a7b196e1811bf3c21ecd94e74105d9ddf516
|
8f946bea32e21255f3498dd7af784f4e863aff5b
|
/de.wicketpraxis--pom/webapp/src/main/java/de/wicketpraxis/apps/example/pages/start/MainNav.java
|
7fda0366afc67f0c7227a04f623f1151c4f258ca
|
[] |
no_license
|
michaelmosmann/wicket-praxis
|
eba7fafba87114c17339a520484912d3446278d6
|
e9393c358ac788b0011bee4b0e58a85aebb3b05c
|
refs/heads/master
| 2016-09-06T07:11:27.822050
| 2013-11-12T21:23:41
| 2013-11-12T21:23:41
| 757,761
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,136
|
java
|
/*****************************************
* Quelltexte zum Buch: Praxisbuch Wicket
* (http://www.hanser.de/978-3-446-41909-4)
*
* Autor: Michael Mosmann
* (michael@mosmann.de)
*****************************************/
package de.wicketpraxis.apps.example.pages.start;
import java.util.ArrayList;
import java.util.List;
import org.apache.wicket.Page;
import de.wicketpraxis.apps.example.components.navigation.NavigationCallbackInterface;
import de.wicketpraxis.apps.example.pages.Start;
public class MainNav extends AbstractStartNav {
public String getName() {
return "Start";
}
public boolean isActive(Page page) {
return page.getClass() == Start.class;
}
public List<NavigationCallbackInterface> getChilds() {
List<NavigationCallbackInterface> ret = new ArrayList<NavigationCallbackInterface>();
ret.add(new AbstractSubNav("Unterpunkt 1") {
@Override
public String getID() {
return "Sub1";
}
});
ret.add(new AbstractSubNav("Unterpunkt 2") {
@Override
public String getID() {
return "Sub2";
}
});
return ret;
}
@Override
public String getID() {
return "Main";
}
}
|
[
"michael@mosmann.de"
] |
michael@mosmann.de
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.