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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38cc807c79993dedc5b0fbcdb8f2bd359d2a7d10
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/xixikf-20200730/src/main/java/com/aliyun/xixikf20200730/models/GetAuthInfoResponseBody.java
|
86dc2ba1a8d0543811735d6b8c2007585a7e7f31
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 4,488
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.xixikf20200730.models;
import com.aliyun.tea.*;
public class GetAuthInfoResponseBody extends TeaModel {
@NameInMap("Code")
public String code;
@NameInMap("Data")
public GetAuthInfoResponseBodyData data;
@NameInMap("Message")
public String message;
@NameInMap("RequestId")
public String requestId;
@NameInMap("Success")
public Boolean success;
public static GetAuthInfoResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetAuthInfoResponseBody self = new GetAuthInfoResponseBody();
return TeaModel.build(map, self);
}
public GetAuthInfoResponseBody setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public GetAuthInfoResponseBody setData(GetAuthInfoResponseBodyData data) {
this.data = data;
return this;
}
public GetAuthInfoResponseBodyData getData() {
return this.data;
}
public GetAuthInfoResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetAuthInfoResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public GetAuthInfoResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public static class GetAuthInfoResponseBodyData extends TeaModel {
@NameInMap("App")
public String app;
@NameInMap("AppKey")
public String appKey;
@NameInMap("AppName")
public String appName;
@NameInMap("Code")
public String code;
@NameInMap("SessionId")
public String sessionId;
@NameInMap("TenantId")
public String tenantId;
@NameInMap("Time")
public Long time;
@NameInMap("UserId")
public String userId;
@NameInMap("UserName")
public String userName;
public static GetAuthInfoResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
GetAuthInfoResponseBodyData self = new GetAuthInfoResponseBodyData();
return TeaModel.build(map, self);
}
public GetAuthInfoResponseBodyData setApp(String app) {
this.app = app;
return this;
}
public String getApp() {
return this.app;
}
public GetAuthInfoResponseBodyData setAppKey(String appKey) {
this.appKey = appKey;
return this;
}
public String getAppKey() {
return this.appKey;
}
public GetAuthInfoResponseBodyData setAppName(String appName) {
this.appName = appName;
return this;
}
public String getAppName() {
return this.appName;
}
public GetAuthInfoResponseBodyData setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public GetAuthInfoResponseBodyData setSessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
public String getSessionId() {
return this.sessionId;
}
public GetAuthInfoResponseBodyData setTenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
public String getTenantId() {
return this.tenantId;
}
public GetAuthInfoResponseBodyData setTime(Long time) {
this.time = time;
return this;
}
public Long getTime() {
return this.time;
}
public GetAuthInfoResponseBodyData setUserId(String userId) {
this.userId = userId;
return this;
}
public String getUserId() {
return this.userId;
}
public GetAuthInfoResponseBodyData setUserName(String userName) {
this.userName = userName;
return this;
}
public String getUserName() {
return this.userName;
}
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
b87c1b04397c4d0f1965319774a1f6f5fc159318
|
a1a6c1b700c9cd8cba1fd43fbc83af071dfd2800
|
/kaixin_source/src/com/kaixin001/zxing/result/TextResultHandler.java
|
a6aa824160ec719bbece1726ad6f03196cab2ccd
|
[] |
no_license
|
jingshauizh/kaixin
|
58c315f99dcdde09589471fcaa262e0a1598701c
|
11b8d109862dba00b7a78f9002e47064f26a0175
|
refs/heads/master
| 2021-07-11T00:55:46.997368
| 2021-04-16T09:41:47
| 2021-04-16T09:41:47
| 25,718,738
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 794
|
java
|
package com.kaixin001.zxing.result;
import com.google.zxing.client.result.ParsedResult;
public final class TextResultHandler extends ResultHandler
{
public TextResultHandler(ParsedResult paramParsedResult)
{
super(paramParsedResult);
}
public int getDisplayTitle()
{
return 2131428324;
}
public void handleButtonPress(int paramInt)
{
String str = getResult().getDisplayResult();
switch (paramInt)
{
default:
return;
case 0:
scanAgain(str);
return;
case 1:
}
scanConfirm(str);
}
}
/* Location: C:\9exce\android\pj\kaixin_android_3.9.9_034_kaixin001\classes_dex2jar.jar
* Qualified Name: com.kaixin001.zxing.result.TextResultHandler
* JD-Core Version: 0.6.0
*/
|
[
"jingshuaizh@163.com"
] |
jingshuaizh@163.com
|
653527d07b9b3a530ca9250c496ec0395c27730b
|
9a5de0c82b555880c807d09fbd7662b2f7b035a9
|
/app/src/main/java/com/nongjinsuo/mimijinfu/widget/KeyboardListenRelativeLayout.java
|
1481351ae17e936a33ab50b100f39b55329e6104
|
[] |
no_license
|
LingkaiZhang/mimijinfu
|
2f1cac7ef0ab9e04046dd632dfbc6113a59371cf
|
f59541722ef1c944c0a81a830e2b5b077589b649
|
refs/heads/master
| 2020-06-27T00:20:46.715919
| 2019-07-31T06:51:59
| 2019-07-31T06:51:59
| 199,796,804
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,243
|
java
|
package com.nongjinsuo.mimijinfu.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
public class KeyboardListenRelativeLayout extends RelativeLayout {
private static final String TAG = KeyboardListenRelativeLayout.class.getSimpleName();
public static final byte KEYBOARD_STATE_SHOW = -3;
public static final byte KEYBOARD_STATE_HIDE = -2;
public static final byte KEYBOARD_STATE_INIT = -1;
private boolean mHasInit = false;
private boolean mHasKeyboard = false;
private int mHeight;
private IOnKeyboardStateChangedListener onKeyboardStateChangedListener;
public KeyboardListenRelativeLayout(Context context) {
super(context);
}
public KeyboardListenRelativeLayout(Context context, AttributeSet attrs) {
super(context, attrs);
}
public KeyboardListenRelativeLayout(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
public void setOnKeyboardStateChangedListener(IOnKeyboardStateChangedListener onKeyboardStateChangedListener) {
this.onKeyboardStateChangedListener = onKeyboardStateChangedListener;
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);
System.out.println("***b="+b);
if(!mHasInit) {
mHasInit = true;
mHeight = b;
System.out.println("mHeight= "+b);
if(onKeyboardStateChangedListener != null) {
onKeyboardStateChangedListener.onKeyboardStateChanged(KEYBOARD_STATE_INIT);
}
} else {
mHeight = mHeight < b ? b : mHeight;
}
if(mHasInit && mHeight > b) { //mHeight代表键盘的真实高度 ,b代表在窗口中的高度 mHeight>b 说明键盘隐藏
mHasKeyboard = true;
if(onKeyboardStateChangedListener != null) {
onKeyboardStateChangedListener.onKeyboardStateChanged(KEYBOARD_STATE_SHOW);
}
}
if(mHasInit && mHasKeyboard && mHeight == b) { // mHeight = b 说明已经弹出
mHasKeyboard = false;
if(onKeyboardStateChangedListener != null) {
onKeyboardStateChangedListener.onKeyboardStateChanged(KEYBOARD_STATE_HIDE);
}
}
}
public interface IOnKeyboardStateChangedListener {
public void onKeyboardStateChanged(int state);
}
}
|
[
"lingkai2313@163.com"
] |
lingkai2313@163.com
|
2635bdad0528d4be1cfac278fadf23c2f5a2be22
|
eb5bda214a4c3875fe911eaae3243371b8d3bd1c
|
/app/src/main/java/com/pc/profnavykt/CollegesProfessii/ProfessiiYpk.java
|
c90b5058f00497f01cb1c6183ff594da45b4899a
|
[] |
no_license
|
bokunoheya/Prof_Navigation_Yakutia
|
edc894d7d05473261d36e08bf25a6b771fa6bf13
|
9e691a17676ec49901d02bd158a1db3e47c308ad
|
refs/heads/master
| 2022-12-06T09:01:49.228729
| 2020-08-13T01:18:53
| 2020-08-13T01:18:53
| 261,056,835
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,248
|
java
|
package com.pc.profnavykt.CollegesProfessii;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.pc.profnavykt.R;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
/**
* A simple {@link Fragment} subclass.
* Use the {@link ProfessiiYpk#newInstance} factory method to
* create an instance of this fragment.
*/
public class ProfessiiYpk extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
public ProfessiiYpk() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ProfessiiApt.
*/
// TODO: Rename and change types and number of parameters
public static ProfessiiYpk newInstance(String param1, String param2) {
ProfessiiYpk fragment = new ProfessiiYpk();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View root= inflater.inflate(R.layout.fragment_professii_ypk, container, false);
Button s44_02_01=root.findViewById(R.id.button1);
s44_02_01.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s44_02_01));
Button s44_02_02=root.findViewById(R.id.button2);
s44_02_02.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s44_02_02));
Button s44_02_05=root.findViewById(R.id.button3);
s44_02_05.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s44_02_05));
Button s49_02_02=root.findViewById(R.id.button4);
s49_02_02.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s49_02_02));
Button s49_02_01=root.findViewById(R.id.button5);
s49_02_01.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s49_02_01));
Button s44_02_03=root.findViewById(R.id.button6);
s44_02_03.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s44_02_03));
Button s53_02_01=root.findViewById(R.id.button7);
s53_02_01.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.s53_02_01));
return root;
}
}
|
[
"ikkisuruk@gmail.com"
] |
ikkisuruk@gmail.com
|
e6860c73f585dccc488c1568d013ad44a20e97b1
|
121f775cf082f715665edd0baad91409e5ec587c
|
/src/func/DBright.java
|
17c15686d1af8fa304f5b88e7f6422807613be1b
|
[] |
no_license
|
1anc3r/AirFree-Server
|
87aa7f6be3638dca61195c1a243d7b9ff1aae636
|
d5df5289a6cf882b2d56d8099675e3caf81dc872
|
refs/heads/master
| 2020-02-26T16:14:21.694695
| 2019-03-02T12:45:31
| 2019-03-02T12:45:31
| 59,290,593
| 26
| 7
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 269
|
java
|
package func;
import java.io.IOException;
public class DBright {
public DBright(String parameter) throws IOException {
String[] args = new String[] { ".\\command\\ClickMonitorDDC.exe brightness ", parameter };
Runtime.getRuntime().exec(args[0]+args[1]);
}
}
|
[
"huangfangzhi@icloud.com"
] |
huangfangzhi@icloud.com
|
39d7ed9ba5d8994905dc54e38635c6d55d8777cc
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XRENDERING-481-57-21-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest_scaffolding.java
|
9adceb37de008962aec101df0c855579bd8855be
|
[] |
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
| 453
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 03 15:43:02 UTC 2020
*/
package org.xwiki.velocity.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultVelocityEngine_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
d18f936e53a4adf350301cc9fa54f8b9be73effa
|
5786b8c28f069ae9b9b7f850edf4d4c1b5cf976c
|
/languages/CSharp/source_gen/CSharp/behavior/Statement_1_BehaviorDescriptor.java
|
5c572652ae25e12e7543cbb3694ab40267e3115e
|
[
"Apache-2.0"
] |
permissive
|
vaclav/MPS_CSharp
|
681ea277dae2e7503cd0f2d21cb3bb7084f6dffc
|
deea11bfe3711dd241d9ca3f007b810d574bae76
|
refs/heads/master
| 2021-01-13T14:36:41.949662
| 2019-12-03T15:26:21
| 2019-12-03T15:26:21
| 72,849,927
| 19
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 364
|
java
|
package CSharp.behavior;
/*Generated by MPS */
/**
* Will be removed after 3.4
* Need to support compilation of the legacy behavior descriptors before the language is rebuilt
* This class is not involved in the actual method invocation
*/
@Deprecated
public class Statement_1_BehaviorDescriptor {
public String getConceptFqName() {
return null;
}
}
|
[
"vaclav.pech@gmail.com"
] |
vaclav.pech@gmail.com
|
922de95eb99d4e68cd7faf5d8a586345d2362ee6
|
b61243f12608f0d0e0bf545f4d0e1dc94ccc664f
|
/PushMe/src/com/stinfo/pushme/rest/entity/SchoolTeacherListResp.java
|
0595604f4cc892634e75a7b12bae976b6555f17c
|
[] |
no_license
|
tangzhezhi/pushme
|
e4dbfaf533d879dd5c0866e72fc6809770b813c2
|
bba291a8256d1b37a104345989f854830860daa0
|
refs/heads/master
| 2021-01-21T12:06:58.722006
| 2014-03-27T07:14:53
| 2014-03-27T07:14:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,788
|
java
|
package com.stinfo.pushme.rest.entity;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.stinfo.pushme.entity.TeacherRoster;
public class SchoolTeacherListResp {
private int ack = 0;
private ArrayList<TeacherRoster> teacherList = new ArrayList<TeacherRoster>();
private String schoolId;
public int getAck() {
return ack;
}
public ArrayList<TeacherRoster> getTeacherList() {
return teacherList;
}
public SchoolTeacherListResp(String jsonStr, String schoolId) throws JSONException {
this.schoolId = schoolId;
parseTeacherRoster(jsonStr);
}
private void parseTeacherRoster(String jsonStr) throws JSONException {
JSONObject rootObj = new JSONObject(jsonStr);
this.ack = rootObj.getInt("ack");
if (rootObj.has("response")) {
JSONObject respObj = rootObj.getJSONObject("response");
JSONArray userArray = respObj.getJSONArray("teacherList");
for (int i = 0; i < userArray.length(); i++) {
JSONObject userObj = userArray.getJSONObject(i);
TeacherRoster teacherRoster = new TeacherRoster();
teacherRoster.setUserId(userObj.getString("userId"));
teacherRoster.setUserName(userObj.getString("userName"));
teacherRoster.setTeacherId(userObj.getString("teacherId"));
teacherRoster.setSex(userObj.getInt("sex"));
teacherRoster.setPhone(userObj.getString("phone"));
teacherRoster.setPicUrl(userObj.getString("picUrl"));
teacherRoster.setRole(userObj.getString("role"));
teacherRoster.setClassId(userObj.getString("classId"));
teacherRoster.setClassName(userObj.getString("className"));
teacherRoster.setSchoolId(this.schoolId);
this.teacherList.add(teacherRoster);
}
}
}
}
|
[
"330882908@qq.com"
] |
330882908@qq.com
|
dfbc3066364254e2442d0cc5040ef41d8428bb61
|
55821b09861478c6db214d808f12f493f54ff82a
|
/trunk/java.prj/xmpp/test_jsvapi/src/com/focus/util/ZipUtil.java
|
7030cab193fdaf7c1e296dcda586ef85210df91e
|
[] |
no_license
|
SiteView/ECC8.13
|
ede526a869cf0cb076cd9695dbc16075a1cf9716
|
bced98372138b09140dc108b33bb63f33ef769fe
|
refs/heads/master
| 2016-09-05T13:57:21.282048
| 2012-06-12T08:54:40
| 2012-06-12T08:54:40
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,405
|
java
|
package com.focus.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
public class ZipUtil {
public static String compress(String str) throws IOException {
if (str == null || str.length() == 0) {
return str;
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
GZIPOutputStream gzip = new GZIPOutputStream(out);
gzip.write(str.getBytes("UTF-8"));
gzip.close();
return out.toString("UTF-8");
}
// 解压缩
public static String uncompress(String str) throws IOException {
if (str == null || str.length() == 0) {
return str;
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayInputStream in = new ByteArrayInputStream(str
.getBytes("UTF-8"));
GZIPInputStream gunzip = new GZIPInputStream(in);
byte[] buffer = new byte[256];
int n;
while ((n = gunzip.read(buffer)) >= 0) {
out.write(buffer, 0, n);
}
// toString()使用平台默认编码,也可以显式的指定如toString("GBK")
return out.toString();
}
// 测试方法
public static void main(String[] args) throws IOException {
System.out.println(ZipUtil.uncompress(ZipUtil.compress("中国China")));
}
}
|
[
"136122085@163.com"
] |
136122085@163.com
|
91b250de0afdd3df47ec7ebc5b617be2bf2a16d4
|
ac4ff5b38e62b9f3883ab48a2b9f29403c29fdd5
|
/lsq/src/main/java/com/xpsoft/oa/action/system/SystemLogAction.java
|
66382f3510c71e6b358895c9e5187e86e68d12de
|
[] |
no_license
|
wangscript/lsqoa
|
e571f3a0f7f01fd660730bd34779b9cfcc3c749e
|
9a1587bb7c43c23e4f6b555b582b8df89d9ac7a4
|
refs/heads/master
| 2021-01-22T08:23:12.129364
| 2013-08-05T13:54:54
| 2013-08-05T13:54:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,106
|
java
|
package com.xpsoft.oa.action.system;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.xpsoft.core.command.QueryFilter;
import com.xpsoft.core.web.action.BaseAction;
import com.xpsoft.core.web.paging.PagingBean;
import com.xpsoft.oa.model.system.SystemLog;
import com.xpsoft.oa.service.system.SystemLogService;
import java.lang.reflect.Type;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
public class SystemLogAction extends BaseAction {
@Resource
private SystemLogService systemLogService;
private SystemLog systemLog;
private Long logId;
public Long getLogId() {
return this.logId;
}
public void setLogId(Long logId) {
this.logId = logId;
}
public SystemLog getSystemLog() {
return this.systemLog;
}
public void setSystemLog(SystemLog systemLog) {
this.systemLog = systemLog;
}
public String list() {
QueryFilter filter = new QueryFilter(getRequest());
List<SystemLog> list = this.systemLogService.getAll(filter);
Type type = new TypeToken<List<SystemLog>>() {
}
.getType();
StringBuffer buff = new StringBuffer(
"{success:true,'totalCounts':")
.append(filter.getPagingBean().getTotalItems()).append(
",result:");
Gson gson = new Gson();
buff.append(gson.toJson(list, type));
buff.append("}");
this.jsonString = buff.toString();
return "success";
}
public String multiDel() {
String[] ids = getRequest().getParameterValues("ids");
if (ids != null) {
for (String id : ids) {
this.systemLogService.remove(new Long(id));
}
}
this.jsonString = "{success:true}";
return "success";
}
public String get() {
SystemLog systemLog = (SystemLog) this.systemLogService
.get(this.logId);
Gson gson = new Gson();
StringBuffer sb = new StringBuffer("{success:true,data:");
sb.append(gson.toJson(systemLog));
sb.append("}");
setJsonString(sb.toString());
return "success";
}
public String save() {
this.systemLogService.save(this.systemLog);
setJsonString("{success:true}");
return "success";
}
}
|
[
"loushi135@163.com"
] |
loushi135@163.com
|
253364acbf1e5000edba37265b58906e25591465
|
56e9ecff6dddf36453c0b48a60a1fc8db6f08879
|
/config/src/test/java/org/springframework/security/config/ConfigTestUtils.java
|
92a974013793b42f713d242cb51e89a0dee51bd7
|
[
"Apache-2.0"
] |
permissive
|
Contrast-Security-OSS/spring-security
|
c94248c16d86c7f9157d1d48501cf7167d5868eb
|
bef354fe750f7208b8e4e8a9cfdf9a9d1917e984
|
refs/heads/master
| 2020-02-26T13:11:08.408315
| 2014-11-13T18:47:22
| 2014-11-13T18:47:22
| 25,587,725
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 792
|
java
|
package org.springframework.security.config;
public abstract class ConfigTestUtils {
public static final String AUTH_PROVIDER_XML =
"<authentication-manager alias='authManager'>" +
" <authentication-provider>" +
" <user-service id='us'>" +
" <user name='bob' password='bobspassword' authorities='ROLE_A,ROLE_B' />" +
" <user name='bill' password='billspassword' authorities='ROLE_A,ROLE_B,AUTH_OTHER' />" +
" <user name='admin' password='password' authorities='ROLE_ADMIN,ROLE_USER' />" +
" <user name='user' password='password' authorities='ROLE_USER' />" +
" </user-service>" +
" </authentication-provider>" +
"</authentication-manager>";
}
|
[
"luke.taylor@springsource.com"
] |
luke.taylor@springsource.com
|
b44f8047285979077cc10bbaec076092ac49ba0f
|
3047f4cebdfbd40114c95e94efaedbd651283ba6
|
/src/test/java/io/devfactory/example/designpattern/_02_structural_patterns/_07_bridge/_01_before/ChampionTest.java
|
39fc39a72ec66694f8b8e14549f51df54b41d17f
|
[
"MIT"
] |
permissive
|
mvmaniac/basic-java
|
d40b97cc1db51a16b5b8ff051e6d1effa72d486b
|
5e7614b48c20ea8aa2f36530528e02cb95bc041f
|
refs/heads/master
| 2023-08-04T15:24:27.087103
| 2023-07-18T02:43:51
| 2023-08-01T13:05:59
| 146,252,162
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 490
|
java
|
package io.devfactory.example.designpattern._02_structural_patterns._07_bridge._01_before;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
@SuppressWarnings({"NonAsciiCharacters", "squid:S101", "squid:S2699"})
@Slf4j
class ChampionTest {
@DisplayName("변경 전 브릿지 패턴 테스트")
@Test
void beforeBridge() {
Champion kda아리 = new KDA아리();
kda아리.skillQ();
kda아리.skillR();
}
}
|
[
"mvmaniaz@gmail.com"
] |
mvmaniaz@gmail.com
|
539b43f50737da4425b245c00ba39b8221823aa7
|
507a96543784eedb7aa1802d5900807660b7ddbb
|
/xingguang-loan-system/src/main/java/com/xingguang/system/user/mapper/SysUserMapper.java
|
b847ae8b1bbb1c71f7cc2b4e86321ef931938680
|
[] |
no_license
|
dalianghe/xingguang-loan
|
a60562d112c7369c82a58b89d0b9fc6a0e86f931
|
1bbdef3d405b93c38117c113e310f763bd7a44b7
|
refs/heads/master
| 2021-05-16T12:55:46.139561
| 2017-12-14T15:30:19
| 2017-12-14T15:30:19
| 105,276,134
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 897
|
java
|
package com.xingguang.system.user.mapper;
import com.xingguang.system.role.entity.custom.SysRoleEntityCustom;
import com.xingguang.system.user.entity.SysUserEntity;
import com.xingguang.system.user.entity.custom.SysUserEntityCustom;
import java.util.List;
/**
* Created by admin on 2017/9/22.
*/
public interface SysUserMapper {
SysUserEntityCustom findSysUserById(Long userId) throws Exception;
SysUserEntity findSysUserByLoginId(String loginId) throws Exception;
List<SysUserEntityCustom> findSysUserList(SysUserEntity sysUserEntity) throws Exception;
void updateSysUserById(SysUserEntity sysUserEntity) throws Exception;
void insertSysUser(SysUserEntity sysUserEntity) throws Exception;
List<SysUserEntityCustom> findSysUserRoles(SysUserEntity sysUserEntity) throws Exception;
List<SysRoleEntityCustom> findSysUserHaveRoles(Long id) throws Exception;
}
|
[
"276420284@qq.com"
] |
276420284@qq.com
|
b1070993f6d0e7e10dffd8dd86f3bb79faf2d731
|
419d0b562a0029f0a2b16bd39acb3abdf3fb3641
|
/java/Android开发权威指南源代码/src/ch07/ch07_text_image_dialog/gen/mobile/android/ch07/text/image/dialog/BuildConfig.java
|
9bc339faf0028e06156e93e88e1898e80db7c53f
|
[] |
no_license
|
Livemy/example
|
a77ec106ba3e00b14b1c7cef3b8f7feeaa1ae664
|
3e7f9eff66db97867ae2507d7d99e8387fc5a453
|
refs/heads/master
| 2020-05-16T16:41:27.342782
| 2017-10-06T17:19:55
| 2017-10-06T17:19:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 179
|
java
|
/** Automatically generated file. DO NOT MODIFY */
package mobile.android.ch07.text.image.dialog;
public final class BuildConfig {
public final static boolean DEBUG = true;
}
|
[
"wuguijiadeyu@gmail.com"
] |
wuguijiadeyu@gmail.com
|
35a1756c17ab0e104ed3367e7fca9ec9f1580f66
|
fb71d5e3b8f4521c8f245fcfeb01d8480baab946
|
/src/wyklad/_08_watki/CurrentThreadDemo.java
|
a668249de09ae5c3b0319e4f94135d088ca022e3
|
[] |
no_license
|
beactivera/Java_Wyklad
|
ef0c4e99a525056345a9bfdf535cd04bfead3217
|
2565921495d60234d830728d8b1533d6ab134526
|
refs/heads/master
| 2022-12-23T02:35:06.887562
| 2020-10-11T09:58:54
| 2020-10-11T09:58:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 802
|
java
|
package wyklad._08_watki;
// przyklad wplywu na watek glowny programu
class CurrentThreadDemo {
public static void main(String args[]) {
Thread t = Thread.currentThread();
// metoda toString() watku oddaje:
// nazwe watku, jego priorytet i nazwe grupy watkow, do ktorej nalezy
System.out.println("Biezacy watek : " + t);
// zmieniamy nazwe watku
t.setName("Glowny");
// pobranie nazwy watku metoda getName()
System.out.println("Po zmianie nazwy : " + t);
try {
for (int i = 5; i > 0; i--) {
System.out.println(i);
Thread.sleep(1000); // zatrzymanie wykonania na 1000 milisekund
}
}
// sprawdzanie czy inny watek nie chce przerwac snu
catch (InterruptedException e) {
System.out.println("Watek glowny przerwany");
}
System.out.print("KONIEC");
}
}
|
[
"t.borzyszkowski@gmail.com"
] |
t.borzyszkowski@gmail.com
|
1b7466b7a82a746b1e7292c50c4deca14d984c8a
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.qqlite/classes.jar/com/tencent/mobileqq/transfile/DiskCache$Editor.java
|
62a16f4ac23ec81c13eb9d9e8b6d48f53b644a23
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,536
|
java
|
package com.tencent.mobileqq.transfile;
import java.io.File;
import java.io.IOException;
public class DiskCache$Editor
{
File jdField_a_of_type_JavaIoFile;
private String jdField_a_of_type_JavaLangString;
DiskCache$Editor(DiskCache paramDiskCache, String paramString)
{
if (!paramDiskCache.jdField_a_of_type_JavaIoFile.exists()) {
paramDiskCache.jdField_a_of_type_JavaIoFile.mkdirs();
}
this.jdField_a_of_type_JavaLangString = paramString;
this.jdField_a_of_type_JavaIoFile = new File(paramDiskCache.jdField_a_of_type_JavaIoFile, paramString + ".tmp");
}
File a()
{
File localFile = this.jdField_a_of_type_ComTencentMobileqqTransfileDiskCache.a(this.jdField_a_of_type_JavaLangString);
if (localFile.exists()) {
return localFile;
}
if ((!this.jdField_a_of_type_JavaIoFile.exists()) || (this.jdField_a_of_type_JavaIoFile.length() <= 0L))
{
this.jdField_a_of_type_JavaIoFile.delete();
throw new IOException("write 0 length file or null File");
}
this.jdField_a_of_type_JavaIoFile.renameTo(localFile);
return localFile;
}
void a(boolean paramBoolean)
{
if ((!paramBoolean) || (this.jdField_a_of_type_JavaIoFile.length() <= 0L)) {
this.jdField_a_of_type_JavaIoFile.delete();
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.qqlite\classes.jar
* Qualified Name: com.tencent.mobileqq.transfile.DiskCache.Editor
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
e6b902a0e66e40819a280c6a1894a44d55293b2e
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/ads/AdSourceFetcher.java
|
eb061c0a083c0dc300cd2fcff685232a5030a530
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 1,922
|
java
|
package com.tinder.ads;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
import rx.C2671a;
import rx.Single;
@Metadata(bv = {1, 0, 2}, d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bf\u0018\u0000*\u000e\b\u0000\u0010\u0001 \u0001*\u0006\u0012\u0002\b\u00030\u0002*\u0006\b\u0001\u0010\u0003 \u0000*\n\b\u0002\u0010\u0004 \u0000*\u00020\u00052\u00020\u0006:\u0001\rJ\b\u0010\u0007\u001a\u00020\bH&J\u0014\u0010\t\u001a\u000e\u0012\n\b\u0001\u0012\u0006\u0012\u0002\b\u00030\u00020\nH&J\b\u0010\u000b\u001a\u00020\fH&¨\u0006\u000e"}, d2 = {"Lcom/tinder/ads/AdSourceFetcher;", "AD", "Lcom/tinder/ads/Ad;", "WRAPPED", "SOURCE", "Lcom/tinder/ads/AdSource;", "", "cancel", "", "loadNext", "Lrx/Single;", "scheduler", "Lrx/Scheduler;", "AdFactory", "aggregator_release"}, k = 1, mv = {1, 1, 7})
public interface AdSourceFetcher<AD extends Ad<?>, WRAPPED, SOURCE extends AdSource> {
@Metadata(bv = {1, 0, 2}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0005\bf\u0018\u0000*\u0006\b\u0003\u0010\u0001 \u0001*\u0006\b\u0004\u0010\u0002 \u0000*\u0006\b\u0005\u0010\u0003 \u00002\u00020\u0004J\u001d\u0010\u0005\u001a\u00028\u00032\u0006\u0010\u0006\u001a\u00028\u00052\u0006\u0010\u0007\u001a\u00028\u0004H&¢\u0006\u0002\u0010\b¨\u0006\t"}, d2 = {"Lcom/tinder/ads/AdSourceFetcher$AdFactory;", "AD", "WRAPPED", "SOURCE", "", "createAd", "source", "wrapped", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "aggregator_release"}, k = 1, mv = {1, 1, 7})
public interface AdFactory<AD, WRAPPED, SOURCE> {
AD createAd(SOURCE source, WRAPPED wrapped);
}
void cancel();
@NotNull
Single<? extends Ad<?>> loadNext();
@NotNull
C2671a scheduler();
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
f811026b26b8adfddfe1d05d9c3a55d4cf0faada
|
a99c0313da1e46b8e3749e56eeec2241386d19e9
|
/app/src/main/java/com/prettyyes/user/app/ui/spu/SuitListActivity.java
|
a146cbcbc449fb2bd006bc583f79771f0ae08f78
|
[] |
no_license
|
cglw/how
|
5d06a675393f9b1ef77083afbb2b39b59d167a35
|
c90f7d2130ed2130d7e1cb2aeec9b3c58cc100fd
|
refs/heads/master
| 2020-04-26T23:59:29.571983
| 2019-03-05T09:58:06
| 2019-03-05T09:58:06
| 173,920,703
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,607
|
java
|
package com.prettyyes.user.app.ui.spu;
import com.prettyyes.user.R;
import com.prettyyes.user.api.NetReqCallback;
import com.prettyyes.user.api.netXutils.ApiImpls.SuitApiImpl;
import com.prettyyes.user.app.adapter.detail.KolGoodsListAdapter;
import com.prettyyes.user.app.base.BaseActivity;
import com.prettyyes.user.app.view.lvandgrid.SwipeRecycleView;
import com.prettyyes.user.model.Suit.SuitAnswerList;
import com.weavey.loading.lib.LoadingLayout;
import org.xutils.view.annotation.ViewInject;
import static com.prettyyes.user.AppConfig.MIN_PAGE_SIZE;
public class SuitListActivity extends BaseActivity {
@ViewInject(R.id.swipelist_suitListAct)
private SwipeRecycleView swipeListView;
private KolGoodsListAdapter adapter;
private int seller_id;
@Override
protected void initVariables() {
super.initVariables();
seller_id = getIntent().getIntExtra("seller_id", 0);
}
@Override
protected int bindLayout() {
return R.layout.activity_suit_list;
}
@Override
protected void initViews() {
setActivtytitle("推荐套系");
adapter = new KolGoodsListAdapter(this);
swipeListView.setAdapter(adapter);
}
@Override
protected void setListener() {
super.setListener();
swipeListView.setListener(new SwipeRecycleView.LoadCallback() {
@Override
public void loadList(int page) {
getList(page);
}
});
}
private void getList(int page) {
new SuitApiImpl().userGetSuitListBySellerId(getUUId(), seller_id + "", page, new NetReqCallback<SuitAnswerList>() {
@Override
public void apiRequestFail(String message, String method) {
showToastShort(message);
loadFail();
loadingLayout.setStatus(LoadingLayout.Error);
}
@Override
public void apiRequestSuccess(SuitAnswerList suitList, String method) {
loadSuccess();
if (suitList.getSuits().size() < MIN_PAGE_SIZE) {
swipeListView.loadingEnd();
} else {
swipeListView.loadingSuccessHavedata();
}
adapter.addAll(suitList.getSuits());
}
});
}
@Override
protected void loadData() {
swipeListView.loadPageData();
}
@Override
protected void onDestroy() {
super.onDestroy();
// adapter.clear();
if (swipeListView != null)
swipeListView.clearSelf();
}
}
|
[
"1410488687@qq.com"
] |
1410488687@qq.com
|
a086d986661c5df45c91d21237439054b78e6840
|
7408c09af471bc65c5154b96fb6f94398d63230a
|
/week9-week9_17.FirstPackages/src/mooc/ui/TextUserInterface.java
|
a706a964e3459ca8fc09aa0afbd8fb1cbd170d3f
|
[] |
no_license
|
matthew-luthi/mooc-java-part-2
|
770499226461cc48488c01779a7e029b1e7fe6e7
|
0dc09d9b77b655439f7e308b94e3fe592364f5f9
|
refs/heads/master
| 2022-02-24T11:06:03.263637
| 2019-08-12T07:42:24
| 2019-08-12T07:42:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 190
|
java
|
package mooc.ui;
public class TextUserInterface implements UserInterface {
@Override
public void update() {
System.out.println("Updating the user interface");
}
}
|
[
"mattluthi97@gmail.com"
] |
mattluthi97@gmail.com
|
0de24b3b60ff4dfcea98ac5acc134466fca7b596
|
94bfa4426c10be11c3d77f7a332fbf65325243c1
|
/SpringCloudNacosProvider/src/test/java/com/composite/nacos/provider/NacosProviderApplicationTests.java
|
1c444f9d58325f1b3db3e8d53b45373bc1d0ba30
|
[] |
no_license
|
baihd/SpringCloudLearn
|
472fb138be99b7da4b65905fd87653a26824a8b9
|
afbd706b2c49594c16077f3966b07b4cea7eea72
|
refs/heads/master
| 2023-07-24T13:34:50.361612
| 2019-06-05T08:45:36
| 2019-06-05T08:45:36
| 183,329,007
| 0
| 0
| null | 2023-07-05T20:43:37
| 2019-04-25T00:59:08
|
Java
|
UTF-8
|
Java
| false
| false
| 352
|
java
|
package com.composite.nacos.provider;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class NacosProviderApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"847350737@qq.com"
] |
847350737@qq.com
|
17f72efd9ee238a04b009df6d774ac6a1696ce69
|
1863ee75435d9f0daff33ed61051415a7dcd9189
|
/graphene-parent/graphene-model/src/main/java/graphene/model/sql/FINFLOWQuarterly120.java
|
48d80a97b717107ae2d1484376d130d7d9606d2c
|
[
"Apache-2.0"
] |
permissive
|
FrictionlessCoin/graphene
|
ef7862d3aa06cfce914fa0e09dd60e935ce2c9d0
|
e1cda420e45aa4b8109cee3c73f5c4ba0b9a23f7
|
refs/heads/master
| 2021-01-16T18:54:27.687219
| 2015-02-16T18:07:59
| 2015-02-16T18:07:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,776
|
java
|
package graphene.model.sql;
import java.io.Serializable;
import javax.annotation.Generated;
/**
* FINFLOWQuarterly120 is a Querydsl bean type
*/
@Generated("com.mysema.query.codegen.BeanSerializer")
public class FINFLOWQuarterly120 implements Serializable {
private Double amount;
private String fromEntityId;
private String fromEntityType;
private java.sql.Timestamp periodDate;
private String toEntityId;
private String toEntityType;
public Double getAmount() {
return amount;
}
public void setAmount(Double amount) {
this.amount = amount;
}
public String getFromEntityId() {
return fromEntityId;
}
public void setFromEntityId(String fromEntityId) {
this.fromEntityId = fromEntityId;
}
public String getFromEntityType() {
return fromEntityType;
}
public void setFromEntityType(String fromEntityType) {
this.fromEntityType = fromEntityType;
}
public java.sql.Timestamp getPeriodDate() {
return periodDate;
}
public void setPeriodDate(java.sql.Timestamp periodDate) {
this.periodDate = periodDate;
}
public String getToEntityId() {
return toEntityId;
}
public void setToEntityId(String toEntityId) {
this.toEntityId = toEntityId;
}
public String getToEntityType() {
return toEntityType;
}
public void setToEntityType(String toEntityType) {
this.toEntityType = toEntityType;
}
public String toString() {
return "amount = " + amount + ", fromEntityId = " + fromEntityId + ", fromEntityType = " + fromEntityType + ", periodDate = " + periodDate + ", toEntityId = " + toEntityId + ", toEntityType = " + toEntityType;
}
}
|
[
"djue@phy6.net"
] |
djue@phy6.net
|
acbc827ba515492fbb2df3aeae379e7e417d72c9
|
66caf76d7a0ac2a151905db115a173e0ce13b4b5
|
/base/src/com/google/idea/blaze/base/sync/libraries/LibrarySource.java
|
5d15a8d45df140a74c2285910e220b104d0a2708
|
[
"Apache-2.0"
] |
permissive
|
hakanerp/bazel-intellij
|
ffcadc00a4eb90370d36bc11fc5e42f22f64d9f7
|
e6b919a16092b5463872d26f3d532ead5ddb64e5
|
refs/heads/master
| 2021-01-20T03:06:43.859950
| 2017-05-19T16:37:00
| 2017-05-19T16:37:00
| 89,496,890
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,102
|
java
|
/*
* Copyright 2016 The Bazel Authors. 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.google.idea.blaze.base.sync.libraries;
import com.google.common.collect.ImmutableList;
import com.google.idea.blaze.base.model.BlazeLibrary;
import com.intellij.openapi.roots.libraries.Library;
import java.util.Collection;
import java.util.function.Predicate;
import javax.annotation.Nullable;
/** Interface for contributing libraries to sync. */
public interface LibrarySource {
/** Called during the project structure phase to get libraries. */
Collection<? extends BlazeLibrary> getLibraries();
/**
* Returns a filter on libraries.
*
* <p>Return false from the predicate to filter the library. If any filter returns false the
* library is discarded.
*/
@Nullable
Predicate<BlazeLibrary> getLibraryFilter();
/**
* Returns a filter that allows sources to retain libraries during library garbage collection.
*
* <p>Return true from the predicate to spare a library during garbage collection. If any filter
* returns true the library is spared.
*/
@Nullable
Predicate<Library> getGcRetentionFilter();
/** Adapter class */
abstract class Adapter implements LibrarySource {
@Override
public Collection<? extends BlazeLibrary> getLibraries() {
return ImmutableList.of();
}
@Nullable
@Override
public Predicate<BlazeLibrary> getLibraryFilter() {
return null;
}
@Nullable
@Override
public Predicate<Library> getGcRetentionFilter() {
return null;
}
}
}
|
[
"brendandouglas@google.com"
] |
brendandouglas@google.com
|
7034d47f5e63f143e4774e2775b4502be3b61892
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/appbrand/appstorage/aa.java
|
e6b30717d165536d4bd85db94841b78f7ab9cdf5
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 6,951
|
java
|
package com.tencent.mm.plugin.appbrand.appstorage;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.config.AppBrandGlobalSystemConfig;
import com.tencent.mm.sdk.platformtools.Util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import kotlin.Metadata;
import kotlin.a.k;
import kotlin.ah;
import kotlin.g.a.b;
import kotlin.g.a.m;
import kotlin.g.b.s;
import org.json.JSONArray;
@Metadata(d1={""}, d2={"Lcom/tencent/mm/plugin/appbrand/appstorage/KVStorageUtil;", "", "()V", "INTERNAL_KEY_SEPARATOR", "", "MAX_STORAGE_ID", "", "NORMAL_KEY_SEPARATOR", "RET_GET_NO_SUCH_KEY", "", "[Ljava/lang/Object;", "TOTAL_DATA_SIZE_KEY", "TOTAL_STORAGE_ID_KEY", "addStorageId", "", "appId", "storageId", "getter", "Lkotlin/Function1;", "setter", "Lkotlin/Function2;", "calculateDataSize", "key", "data", "checkStorageIdInvalid", "", "generateInternalRecordKey", "generateRecordKey", "separator", "getAllStorageId", "", "getQuota", "removeStorageId", "removeStorageIdAll", "luggage-wechat-full-sdk_release"}, k=1, mv={1, 5, 1}, xi=48)
public final class aa
{
public static final aa qNn;
public static final Object[] qNo;
static
{
AppMethodBeat.i(147897);
qNn = new aa();
qNo = new Object[] { v.a.qNj };
AppMethodBeat.o(147897);
}
public static final void a(String paramString, int paramInt, b<? super String, String> paramb, m<? super String, ? super String, ah> paramm)
{
AppMethodBeat.i(147893);
s.u(paramString, "appId");
s.u(paramb, "getter");
s.u(paramm, "setter");
paramb = a(paramString, paramb, paramm);
if (k.contains(paramb, paramInt))
{
AppMethodBeat.o(147893);
return;
}
paramb = new JSONArray((Collection)k.Y(paramb));
paramb.put(paramInt);
paramString = dh(paramString, "@@@TOTAL@STORAGE@ID@@@");
paramb = paramb.toString();
s.s(paramb, "json.toString()");
paramm.invoke(paramString, paramb);
AppMethodBeat.o(147893);
}
public static final int[] a(String paramString, b<? super String, String> paramb, m<? super String, ? super String, ah> paramm)
{
AppMethodBeat.i(147892);
s.u(paramString, "appId");
s.u(paramb, "getter");
s.u(paramm, "setter");
paramString = dh(paramString, "@@@TOTAL@STORAGE@ID@@@");
if (Util.isNullOrNil(paramString))
{
AppMethodBeat.o(147892);
return new int[] { 0 };
}
paramString = (String)paramb.invoke(paramString);
if (Util.isNullOrNil(paramString))
{
AppMethodBeat.o(147892);
return new int[] { 0 };
}
paramString = new JSONArray(paramString);
if (paramString.length() <= 0)
{
AppMethodBeat.o(147892);
return new int[] { 0 };
}
int j = paramString.length();
paramb = new ArrayList(j);
int i = 0;
while (i < j)
{
paramb.add(Integer.valueOf(paramString.getInt(i)));
i += 1;
}
paramString = (List)paramb;
if (!paramString.contains(Integer.valueOf(0))) {
paramString.add(Integer.valueOf(0));
}
paramString = kotlin.a.p.I((Collection)paramString);
AppMethodBeat.o(147892);
return paramString;
}
public static final int al(int paramInt, String paramString)
{
AppMethodBeat.i(147896);
s.u(paramString, "appId");
if (s.p("wxGlobal", paramString))
{
paramInt = AppBrandGlobalSystemConfig.ckD().qWO;
AppMethodBeat.o(147896);
return paramInt;
}
if ((paramInt == 0) || (paramInt == 2))
{
paramInt = com.tencent.mm.plugin.appbrand.config.p.Xu(paramString);
AppMethodBeat.o(147896);
return paramInt;
}
paramInt = com.tencent.mm.plugin.appbrand.config.p.Xv(paramString);
AppMethodBeat.o(147896);
return paramInt;
}
public static final void b(String paramString, int paramInt, b<? super String, String> paramb, m<? super String, ? super String, ah> paramm)
{
AppMethodBeat.i(147894);
s.u(paramString, "appId");
s.u(paramb, "getter");
s.u(paramm, "setter");
paramb = k.af(a(paramString, paramb, paramm));
paramb.remove(Integer.valueOf(paramInt));
paramString = dh(paramString, "@@@TOTAL@STORAGE@ID@@@");
paramb = new JSONArray((Collection)paramb).toString();
s.s(paramb, "JSONArray(list).toString()");
paramm.invoke(paramString, paramb);
AppMethodBeat.o(147894);
}
public static final void b(String paramString, b<? super String, String> paramb, m<? super String, ? super String, ah> paramm)
{
AppMethodBeat.i(147895);
s.u(paramString, "appId");
s.u(paramb, "getter");
s.u(paramm, "setter");
paramm.invoke(dh(paramString, "@@@TOTAL@STORAGE@ID@@@"), "");
AppMethodBeat.o(147895);
}
public static final String c(int paramInt, String paramString1, String paramString2, String paramString3)
{
AppMethodBeat.i(147888);
s.u(paramString1, "appId");
s.u(paramString2, "key");
s.u(paramString3, "separator");
StringBuilder localStringBuilder = new StringBuilder();
if (paramInt > 0) {
localStringBuilder.append(paramInt).append(paramString3);
}
localStringBuilder.append(paramString1);
localStringBuilder.append(paramString3);
localStringBuilder.append(paramString2);
paramString1 = localStringBuilder.toString();
s.s(paramString1, "sb.toString()");
AppMethodBeat.o(147888);
return paramString1;
}
public static final int dg(String paramString1, String paramString2)
{
AppMethodBeat.i(147889);
String str = paramString1;
if (paramString1 == null) {
str = "";
}
int i = str.length();
paramString1 = paramString2;
if (paramString2 == null) {
paramString1 = "";
}
int j = paramString1.length();
AppMethodBeat.o(147889);
return i + j;
}
private static String dh(String paramString1, String paramString2)
{
AppMethodBeat.i(147891);
s.u(paramString1, "appId");
s.u(paramString2, "key");
paramString1 = c(0, paramString1, paramString2, "++");
AppMethodBeat.o(147891);
return paramString1;
}
public static final String q(int paramInt, String paramString1, String paramString2)
{
AppMethodBeat.i(147890);
s.u(paramString1, "appId");
s.u(paramString2, "key");
paramString1 = c(paramInt, paramString1, paramString2, "++");
AppMethodBeat.o(147890);
return paramString1;
}
public static final boolean zs(int paramInt)
{
if (paramInt < 0) {}
while (paramInt > 2) {
return true;
}
return false;
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar
* Qualified Name: com.tencent.mm.plugin.appbrand.appstorage.aa
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
691a337cafd21fa726e3cab3b5409217a2e5010a
|
75e4490624eac9ce26bf3845277cdfb7cbaf6201
|
/java/src/java/javac/tools/sjavac/client/PortFileInaccessibleException.java
|
0889f6164a0faedc663a0d5b1cbf8dde367205a3
|
[
"BSD-3-Clause"
] |
permissive
|
scaled/codex
|
0538f2fdf315ea5df4356c30a14542e897cf5c0c
|
c2212571302356ff468163e37c5a936b710bf1e3
|
refs/heads/master
| 2020-04-06T13:25:42.960754
| 2020-03-22T17:50:58
| 2020-03-22T17:50:58
| 20,330,855
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,502
|
java
|
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package javac.tools.sjavac.client;
import java.io.IOException;
public class PortFileInaccessibleException extends IOException {
private static final long serialVersionUID = -4755261881545398973L;
public PortFileInaccessibleException(Throwable cause) {
super(cause);
}
}
|
[
"mdb@samskivert.com"
] |
mdb@samskivert.com
|
f735c7fd2610cbf347117479466760bf5d0284de
|
b3f64289d824a12ce6fa420f4d253e1679016510
|
/src/main/java/net/silentchaos512/gear/crafting/recipe/CombineFragmentsRecipe.java
|
2c0228f82f749d5bce49a6bb47e39fbc8d8cdc83
|
[
"MIT"
] |
permissive
|
SilentChaos512/Silent-Gear
|
ce8ac889d9053d72a554832fa866cb7617affb3c
|
ddd72aa12039daa0add6864974c692dd447d1103
|
refs/heads/1.19.4
| 2023-06-23T09:52:46.334177
| 2023-06-09T22:21:53
| 2023-06-09T22:21:53
| 138,448,195
| 76
| 62
|
MIT
| 2023-08-03T09:24:34
| 2018-06-24T02:43:18
|
Java
|
UTF-8
|
Java
| false
| false
| 3,737
|
java
|
package net.silentchaos512.gear.crafting.recipe;
import net.minecraft.core.RegistryAccess;
import net.minecraft.world.inventory.CraftingContainer;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.CraftingBookCategory;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.CustomRecipe;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.Level;
import net.silentchaos512.gear.api.material.IMaterialInstance;
import net.silentchaos512.gear.init.SgItems;
import net.silentchaos512.gear.init.SgRecipes;
import net.silentchaos512.gear.item.FragmentItem;
import net.silentchaos512.lib.collection.StackList;
import net.silentchaos512.lib.crafting.ingredient.ExclusionIngredient;
import net.silentchaos512.lib.util.InventoryUtils;
public class CombineFragmentsRecipe extends CustomRecipe {
public CombineFragmentsRecipe(ResourceLocation idIn, CraftingBookCategory bookCategory) {
super(idIn, bookCategory);
}
@Override
public RecipeSerializer<?> getSerializer() {
return SgRecipes.COMBINE_FRAGMENTS.get();
}
@Override
public boolean matches(CraftingContainer craftingInventory, Level world) {
// First, count the fragments. We want to fail fast.
int fragmentCount = 0;
for (int i = 0; i < craftingInventory.getContainerSize(); ++i) {
ItemStack stack = craftingInventory.getItem(i);
if (!stack.isEmpty()) {
if (stack.getItem() == SgItems.FRAGMENT.get()) {
++fragmentCount;
} else {
return false;
}
}
}
if (fragmentCount != 8) {
return false;
}
// Now, check that the fragments are all the same material.
IMaterialInstance first = null;
for (ItemStack stack : StackList.from(craftingInventory)) {
IMaterialInstance material = FragmentItem.getMaterial(stack);
if (material == null) {
return false;
}
if (first == null) {
first = material;
} else if (!InventoryUtils.canItemsStack(material.getItem(), first.getItem())) {
return false;
}
}
return first != null;
}
@Override
public ItemStack assemble(CraftingContainer craftingInventory, RegistryAccess registryAccess) {
StackList list = StackList.from(craftingInventory);
ItemStack stack = list.firstOfType(FragmentItem.class);
if (stack.isEmpty()) return ItemStack.EMPTY;
IMaterialInstance material = FragmentItem.getMaterial(stack);
if (material == null) return ItemStack.EMPTY;
// Get the actual item the fragment came from (if present)
if (!material.getItem().isEmpty()) {
return material.getItem();
}
// Try to get an equivalent item from the material's ingredient
ItemStack[] matchingStacks = material.getIngredient().getItems();
if (matchingStacks.length < 1) {
if (material.getIngredient() instanceof ExclusionIngredient) {
// Get excluded ingredients if no others are available
ItemStack[] allMatches = ((ExclusionIngredient) material.getIngredient()).getMatchingStacksWithExclusions();
if (allMatches.length > 0) {
return allMatches[0];
}
}
return ItemStack.EMPTY;
}
return matchingStacks[0].copy();
}
@Override
public boolean canCraftInDimensions(int width, int height) {
return width * height >= 8;
}
}
|
[
"sworkman256@gmail.com"
] |
sworkman256@gmail.com
|
4c4db7cdc0b69a93a2f2011b05477e80e909ed67
|
11b9a30ada6672f428c8292937dec7ce9f35c71b
|
/src/main/java/org/omg/CosNaming/BindingTypeHelper.java
|
2035c31e80fbda389dd9bd9ebfab2825d1290ac0
|
[] |
no_license
|
bogle-zhao/jdk8
|
5b0a3978526723b3952a0c5d7221a3686039910b
|
8a66f021a824acfb48962721a20d27553523350d
|
refs/heads/master
| 2022-12-13T10:44:17.426522
| 2020-09-27T13:37:00
| 2020-09-27T13:37:00
| 299,039,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,821
|
java
|
/***** Lobxxx Translate Finished ******/
package org.omg.CosNaming;
/**
* org/omg/CosNaming/BindingTypeHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u45/3627/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
* Thursday, April 30, 2015 12:42:08 PM PDT
*/
/**
* Specifies whether the given binding is for a object (that is not a
* naming context) or for a naming context.
* <p>
*
*/
abstract public class BindingTypeHelper
{
private static String _id = "IDL:omg.org/CosNaming/BindingType:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.BindingType that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.CosNaming.BindingType extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CosNaming.BindingTypeHelper.id (), "BindingType", new String[] { "nobject", "ncontext"} );
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.CosNaming.BindingType read (org.omg.CORBA.portable.InputStream istream)
{
return org.omg.CosNaming.BindingType.from_int (istream.read_long ());
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.BindingType value)
{
ostream.write_long (value.value ());
}
}
|
[
"zhaobo@MacBook-Pro.local"
] |
zhaobo@MacBook-Pro.local
|
7c34e79fbb5e53d682890b30533eaf9a1b834621
|
319531f0ef01900b83d106d53cb4e9502e33f355
|
/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/SimpleEntity.java
|
71bae58e76a5105f7ada64ccd56280309d2e8d5d
|
[
"Apache-2.0",
"CDDL-1.0",
"LicenseRef-scancode-oracle-openjdk-exception-2.0",
"GPL-2.0-only"
] |
permissive
|
wso2/wso2-openjpa
|
798822ee319590eed5a00ae21b65b6977faf162d
|
9c3801c861d1a0c9d93a9fa5cfa0cbe749114b92
|
refs/heads/master
| 2023-08-14T23:55:26.907881
| 2022-04-05T09:32:59
| 2022-04-05T09:32:59
| 97,706,188
| 35
| 16
|
Apache-2.0
| 2022-04-05T09:33:00
| 2017-07-19T10:56:02
|
Java
|
UTF-8
|
Java
| false
| false
| 3,715
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openjpa.persistence.query;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityResult;
import javax.persistence.FieldResult;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SqlResultSetMapping;
import javax.persistence.Table;
@NamedQuery(name="FindXTwo", query="select s from simple s where s.name = ?1")
@NamedQueries( {
@NamedQuery(name="FindOne",
query="select s from simple s where s.name = ?1"),
@NamedQuery(name="SelectWithPositionalParameter",
query="select a from simple a where a.id=?1 and a.name=?2"),
@NamedQuery(name="SelectWithNamedParameter",
query="select a from simple a where a.id=:id and a.name=:name"),
@NamedQuery(name="FindOne",
query="select s from simple s where s.name = ?1"),
@NamedQuery(name="FindAll", query="select s from simple s"),
@NamedQuery(name="SelectWithPositionalParameterNonOneStart",
query="select a from simple a where a.id=?900 and a.name=?2 and a.value=?54")
})
@NamedNativeQueries( {
@NamedNativeQuery(name = "findSimpleEntitites",
query = "SELECT ID, NAME, VALUE FROM SIMPLE_ENTITY",
resultSetMapping = "simpleEntitiesResult") })
@SqlResultSetMapping(name = "simpleEntitiesResult",
entities = @EntityResult(
entityClass = org.apache.openjpa.persistence.query.SimpleEntity.class,
fields = {@FieldResult(name = "id", column = "ID"),
@FieldResult(name = "name", column = "NAME"),
@FieldResult(name = "value", column = "VALUE") }))
@Entity(name = "simple")
@Table(name = "SIMPLE_ENTITY")
public class SimpleEntity implements Serializable {
public static final String NAMED_QUERY_WITH_POSITIONAL_PARAMS = "SelectWithPositionalParameter";
public static final String NAMED_QUERY_WITH_NAMED_PARAMS = "SelectWithNamedParameter";
@Id
@GeneratedValue
@Column(name = "ID")
private long id;
@Basic
@Column(name = "NAME")
private String name;
@Basic
@Column(name = "VALUE")
private String value;
public SimpleEntity() {
}
public SimpleEntity(String name, String value) {
this();
this.name = name;
this.value = value;
}
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
|
[
"nandika@wso2.com"
] |
nandika@wso2.com
|
780f90e813521ef7bf1f2dee9e47020b660c52fe
|
f71a7ec87f7e90f8025a3079daced5dbf41aca9c
|
/sf-pay/src/main/java/com/shifeng/pay/config/PayReturnUrl.java
|
57a15f674b7c47f70e6755e2fe9585e7ff9e734a
|
[] |
no_license
|
luotianwen/yy
|
5ff456507e9ee3dc1a890c9bead4491d350f393d
|
083a05aac4271689419ee7457cd0727eb10a5847
|
refs/heads/master
| 2021-01-23T10:34:24.402548
| 2017-10-08T05:03:10
| 2017-10-08T05:03:10
| 102,618,007
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,263
|
java
|
package com.shifeng.pay.config;
/**
* 支付回调地址
* @author Win
*
*/
public class PayReturnUrl {
/**
* PC商品订单支付回调
*/
public static String PC_PAY_RETURN_URL = "";
/**
* APP商品订单支付回调
*/
public static String APP_PAY_RETURN_URL = "";
/**
* WAP商品订单支付回调
*/
public static String WAP_PAY_RETURN_URL = "";
/**
* 商家店铺入驻续费订单支付回调
*/
public static String SHOP_RETURN_URL = "";
public static String getPC_PAY_RETURN_URL() {
return PC_PAY_RETURN_URL;
}
public static void setPC_PAY_RETURN_URL(String pC_PAY_RETURN_URL) {
PC_PAY_RETURN_URL = pC_PAY_RETURN_URL;
}
public static String getAPP_PAY_RETURN_URL() {
return APP_PAY_RETURN_URL;
}
public static void setAPP_PAY_RETURN_URL(String aPP_PAY_RETURN_URL) {
APP_PAY_RETURN_URL = aPP_PAY_RETURN_URL;
}
public static String getWAP_PAY_RETURN_URL() {
return WAP_PAY_RETURN_URL;
}
public static void setWAP_PAY_RETURN_URL(String wAP_PAY_RETURN_URL) {
WAP_PAY_RETURN_URL = wAP_PAY_RETURN_URL;
}
public static String getSHOP_RETURN_URL() {
return SHOP_RETURN_URL;
}
public static void setSHOP_RETURN_URL(String sHOP_RETURN_URL) {
SHOP_RETURN_URL = sHOP_RETURN_URL;
}
}
|
[
"tw l"
] |
tw l
|
33c8509105a424cfdbbf6d42a1a365eb975d96bb
|
a2519a680c456132d8e8391e3b8a906472266119
|
/Trovit/src/main/java/org/openestate/io/trovit/xml/Adapter13.java
|
a939a6c0c10dac7345b1e6b9198f8c38edcb5124
|
[
"Apache-2.0"
] |
permissive
|
bizzify/OpenEstate-IO
|
b0538ee11e7d6d416130dbe7b33bb94101366e9a
|
d6ef06092e0cb48d96798e1b31d43781627a5ca8
|
refs/heads/master
| 2021-01-15T10:41:34.197144
| 2015-03-19T16:31:46
| 2015-03-19T16:31:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 401
|
java
|
package org.openestate.io.trovit.xml;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Adapter13
extends XmlAdapter<String, Long>
{
public Long unmarshal(String value) {
return (org.openestate.io.trovit.TrovitUtils.parseLong(value));
}
public String marshal(Long value) {
return (org.openestate.io.trovit.TrovitUtils.printLong(value));
}
}
|
[
"andy@openindex.de"
] |
andy@openindex.de
|
7bd8c95dd47f3521888d17b2b73e3e343aa145d5
|
b66bdee811ed0eaea0b221fea851f59dd41e66ec
|
/src/com/flurry/sdk/gm$11.java
|
3bca392b272d9d1dffeaa8356b9116314c43ffc2
|
[] |
no_license
|
reverseengineeringer/com.grubhub.android
|
3006a82613df5f0183e28c5e599ae5119f99d8da
|
5f035a4c036c9793483d0f2350aec2997989f0bb
|
refs/heads/master
| 2021-01-10T05:08:31.437366
| 2016-03-19T20:41:23
| 2016-03-19T20:41:23
| 54,286,207
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 241
|
java
|
package com.flurry.sdk;
class gm$11
extends jp
{
gm$11(gm paramgm) {}
public void a()
{
gm.b(a);
}
}
/* Location:
* Qualified Name: com.flurry.sdk.gm.11
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
cb4ec59bd24ef29b96fd7841298cb884a9e3cfbb
|
dbb5639ee0a6b9d467edef5c3dc8150523aa483f
|
/2008/OIDGenerator/ejbSource/com/god/oidgen/.svn/text-base/OIDvalueKey.java.svn-base
|
d81f7b00ee63f6b1a92169c7a2b3780050eecff3
|
[] |
no_license
|
ildar66/RAD7_VTB
|
806eac9ac3b1c54e4b4444537f6fcf8cee5741b1
|
4674e5bb772ed72a726e734d733ce8d11d3623b1
|
refs/heads/master
| 2020-11-29T21:59:02.463950
| 2017-07-08T08:38:41
| 2017-07-08T08:38:41
| 96,605,429
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 817
|
package com.god.oidgen;
/**
* Key class for Entity Bean: OIDvalue
*/
public class OIDvalueKey implements java.io.Serializable {
static final long serialVersionUID = 3206093459760846163L;
/**
* Implementation field for persistent attribute: type
*/
public java.lang.String type;
/**
* Returns true if both keys are equal.
*/
public boolean equals(java.lang.Object otherKey) {
if (otherKey instanceof com.god.oidgen.OIDvalueKey) {
com.god.oidgen.OIDvalueKey o = (com.god.oidgen.OIDvalueKey) otherKey;
return ((this.type.equals(o.type)));
}
return false;
}
/**
* Returns the hash code for the key.
*/
public int hashCode() {
return (type.hashCode());
}
/**
* Creates a key for Entity Bean: OIDvalue
*/
public OIDvalueKey(java.lang.String type) {
this.type = type;
}
}
|
[
"ildar66@inbox.ru"
] |
ildar66@inbox.ru
|
|
7610e658c3eaaff71e89d874bea1972c244dd143
|
d63b589621c33478c1996647baf36090d7437474
|
/modeshape-common/src/test/java/org/modeshape/common/text/XmlValueEncoderTest.java
|
5d7c6aba5a65e507c3ec82edffc4ef19c84040e7
|
[] |
no_license
|
sourcesense/modeshape-stone
|
583cef9d7796504325d203e4886c347a08ab2f4f
|
48cb1811da80b21307f8df36f986f8861a80de42
|
refs/heads/master
| 2020-04-06T06:50:37.609140
| 2011-05-04T13:46:45
| 2011-05-04T13:46:45
| 1,644,461
| 7
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,876
|
java
|
/*
* ModeShape (http://www.modeshape.org)
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* ModeShape is free software. Unless otherwise indicated, all code in ModeShape
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* ModeShape is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.modeshape.common.text;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNull.notNullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
public class XmlValueEncoderTest {
private XmlValueEncoder encoder = new XmlValueEncoder();
@Before
public void beforeEach() {
}
protected void checkEncoding( String input,
String expected ) {
String output = this.encoder.encode(input);
assertThat(output, is(notNullValue()));
assertEquals(expected, output);
assertThat(output.length(), is(expected.length()));
assertThat(output, is(expected));
checkDecoding(output, input);
}
protected void checkForNoEncoding( String input ) {
String output = this.encoder.encode(input);
assertThat(output, is(notNullValue()));
assertEquals(input, output);
assertThat(output.length(), is(input.length()));
assertThat(output, is(input));
checkForNoDecoding(input);
}
protected void checkForNoDecoding( String input ) {
String output = this.encoder.decode(input);
assertThat(output, is(notNullValue()));
assertEquals(input, output);
assertThat(output.length(), is(input.length()));
assertThat(output, is(input));
}
protected void checkDecoding( String input,
String output ) {
String decoded = this.encoder.decode(input);
assertEquals(output, decoded);
assertThat(decoded.length(), is(output.length()));
assertThat(decoded, is(output));
}
@Test
public void shouldEncodeStringWithNoSpecialChars() {
checkForNoEncoding("The quick brown fox jumped over the lazy dog.?+=!@#$%^*()_+-[]{}|\\");
}
@Test
public void shouldEncodeStringWithSpecialChars() {
checkEncoding("<>&'\"", "<>&'"");
}
@Test
public void shouldHandleTrivialCase() {
assertNull(encoder.encode(null));
assertNull(encoder.decode(null));
checkEncoding("", "");
}
@Test
public void shouldDecodeStringWithInvalidMappings() {
checkDecoding("&", "&");
checkDecoding(""", """);
checkDecoding(">", ">");
checkDecoding("<", "<");
checkDecoding("amp;", "amp;");
checkDecoding("quot;", "quot;");
checkDecoding("gt;", "gt;");
checkDecoding("lt;", "lt;");
checkDecoding("&;", "&;");
checkDecoding("&&", "&&");
}
}
|
[
"s.tripodi@4640d916-c1fb-4d7c-b558-95081f1cb651"
] |
s.tripodi@4640d916-c1fb-4d7c-b558-95081f1cb651
|
0c4935591f57f79331cc48148d809ef48c4a48f4
|
923b9e93e8d49c830d38a9103774ba39516b679e
|
/src/main/java/de/config/Main.java
|
c302f2b7af9e057a6270bdd400598f801375aa7c
|
[] |
no_license
|
AIRAT1/spring-boot-demo-2
|
1c1298060cdd5b1cb8b7dab0cea1b83b4b1c305f
|
83a2066eb3849312b1a3d5a2c002fa3900b484b2
|
refs/heads/master
| 2022-12-31T21:12:54.693435
| 2020-10-21T17:13:46
| 2020-10-21T17:13:46
| 301,481,773
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 535
|
java
|
package de.config;
import java.time.LocalDate;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] split = scanner.nextLine().split("-");
scanner.close();
int year = Integer.parseInt(split[0]);
int month = Integer.parseInt(split[1]);
int day = Integer.parseInt(split[2]);
LocalDate localDate = LocalDate.of(year, month, day);
System.out.println(localDate.minusDays(10));
}
}
|
[
"ayrat1@mail.ru"
] |
ayrat1@mail.ru
|
9935b3ffd260bc442c64ef109f75ab9b0acc8a5e
|
83d56024094d15f64e07650dd2b606a38d7ec5f1
|
/Construccion/PROYECTO.SICC/COM/MON/src/es/indra/sicc/logicanegocio/com/MONPlantillasCom.java
|
99df15e19d7cd381737639986af1cc389609331f
|
[] |
no_license
|
cdiglesias/SICC
|
bdeba6af8f49e8d038ef30b61fcc6371c1083840
|
72fedb14a03cb4a77f62885bec3226dbbed6a5bb
|
refs/heads/master
| 2021-01-19T19:45:14.788800
| 2016-04-07T16:20:51
| 2016-04-07T16:20:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,540
|
java
|
package es.indra.sicc.logicanegocio.com;
import es.indra.sicc.dtos.com.DTOBusquedaAccesosPlantilla;
import es.indra.sicc.dtos.com.DTOBusquedaPlantillas;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import es.indra.sicc.util.DTOBelcorp;
import es.indra.sicc.util.DTOSalida;
import es.indra.mare.common.exception.MareException;
import es.indra.sicc.util.DTOOID;
import es.indra.sicc.util.DTOOIDs;
import es.indra.sicc.dtos.com.DTOPlantillaDetalle;
import es.indra.sicc.cmn.negocio.auditoria.DTOSiccPaginacion;
public interface MONPlantillasCom extends EJBObject
{
DTOSalida obtenerTipoComision(DTOBelcorp dtoe) throws RemoteException, MareException;
DTOSalida obtenerPlantillasCom(DTOSiccPaginacion dtoe) throws RemoteException, MareException;
DTOSalida obtenerEstadoPlantilla(DTOBelcorp dtoe) throws RemoteException, MareException;
void eliminarPlantillasCom(DTOOIDs dtoe) throws RemoteException, MareException;
Boolean comprobarEstadoComision(Long oid) throws RemoteException, MareException;
DTOPlantillaDetalle obtenerDetallePlantilla(DTOOID dtoe) throws MareException, RemoteException;
void insertarPlantillaCom(DTOPlantillaDetalle dtoe) throws MareException, RemoteException;
DTOSalida obtenerAccesosPlantilla(DTOBusquedaAccesosPlantilla dtoe) throws MareException, RemoteException;
DTOPlantillaDetalle copiarPlantillaCom(DTOOID dtoe) throws MareException, RemoteException;
DTOSalida buscarPlantillasComisiones(DTOBusquedaPlantillas dtoe) throws MareException, RemoteException;
}
|
[
"hp.vega@hotmail.com"
] |
hp.vega@hotmail.com
|
99794dce9398370e32b91f05650b584f79a90c42
|
c69510aac5ca2673dbad643f7cefd3045a29a2ac
|
/Overrides/Entity/EntityLegacyCreeper.java
|
d40f0580aab4cfe15dcef48592579e01f698ed01
|
[] |
no_license
|
Searge-DP/LegacyCraft
|
e3fa4385360a99f0ae118310ee1b157ea9c8872e
|
32718e97cdd8f722e6e35af1bc4551a11f70458b
|
refs/heads/master
| 2021-01-15T08:49:12.253504
| 2016-02-22T23:49:00
| 2016-02-22T23:49:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,448
|
java
|
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2015
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.LegacyCraft.Overrides.Entity;
import java.util.List;
import net.minecraft.entity.monster.EntityCreeper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import Reika.DragonAPI.Libraries.Java.ReikaRandomHelper;
import Reika.DragonAPI.Libraries.Registry.ReikaItemHelper;
import Reika.LegacyCraft.LegacyCraft;
import Reika.LegacyCraft.LegacyOptions;
public class EntityLegacyCreeper extends EntityCreeper {
public EntityLegacyCreeper(World par1World) {
super(par1World);
if (!LegacyOptions.MOBPICKUP.getState())
this.setCanPickUpLoot(false);
}
public EntityLegacyCreeper(EntityCreeper e) {
this(e.worldObj);
this.setPosition(e.posX, e.posY, e.posZ);
motionX = e.motionX;
motionY = e.motionY;
motionZ = e.motionZ;
for (int i = 0; i < 5; i++) {
this.setCurrentItemOrArmor(i, e.getEquipmentInSlot(i));
}
this.setHealth(e.getHealth());
}
@Override
protected void enchantEquipment()
{
if (LegacyOptions.HELDENCHANT.getState()) {
super.enchantEquipment();
}
}
@Override
public boolean isAIEnabled()
{
return LegacyOptions.NEWAI.getState();
}
@Override
protected void fall(float par1)
{
super.fall(par1);
if (!LegacyOptions.CREEPERFALL.getState()) {
timeSinceIgnited = 0;
}
}
@Override
public void onUpdate() {
AxisAlignedBB box = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX, posY+this.getEyeHeight(), posZ).expand(2, 2, 2);
List<EntityPlayer> li = worldObj.getEntitiesWithinAABB(EntityPlayer.class, box);
boolean flag = false;
for (EntityPlayer ep : li) {
if (!ep.isDead && ep.getHealth() > 0 && !ep.capabilities.isCreativeMode)
flag = true;
}
if (flag) {
this.setCreeperState(1);
motionX = motionZ = 0;
}
else
this.setCreeperState(-1);
super.onUpdate();
if (!LegacyOptions.MOBPICKUP.getState()) {
for (int i = 0; i < 5; i++) {
ItemStack is = this.getEquipmentInSlot(i);
this.setCurrentItemOrArmor(i, null);
if (ReikaRandomHelper.doWithChance(equipmentDropChances[i]))
ReikaItemHelper.dropItem(worldObj, posX, posY, posZ, is);
}
}
}
@Override
public float getAIMoveSpeed()
{
return this.isAIEnabled() ? super.getAIMoveSpeed() : LegacyCraft.getNonAIMoveSpeed();
}
@Override
protected void dropEquipment(boolean par1, int par2)
{
for (int j = 0; j < this.getLastActiveItems().length; ++j)
{
ItemStack itemstack = this.getEquipmentInSlot(j);
boolean flag1 = equipmentDropChances[j] > 1.0F;
if (itemstack != null && (par1 || flag1) && rand.nextFloat() - par2 * 0.01F < equipmentDropChances[j])
{
if (!flag1 && itemstack.isItemStackDamageable() && LegacyOptions.DAMAGEDDROPS.getState())
{
int k = Math.max(itemstack.getMaxDamage() - 25, 1);
int l = itemstack.getMaxDamage() - rand.nextInt(rand.nextInt(k) + 1);
if (l > k)
{
l = k;
}
if (l < 1)
{
l = 1;
}
itemstack.setItemDamage(l);
}
this.entityDropItem(itemstack, 0.0F);
}
}
}
}
|
[
"reikasminecraft@gmail.com"
] |
reikasminecraft@gmail.com
|
80d487170d8a7cc84d4e1b4d65d444f68d55ceeb
|
f9852e15cbfc56515d4e156198cc92d8ebe06d60
|
/proj/RavenEditor/src/com/kitfox/raven/editor/view/camera/CameraDisplayViewProvider.java
|
475d40c76090dd76fdc3bbe6dd29258a819fce0e
|
[] |
no_license
|
kansasSamurai/raven
|
0c708ee9fc4224f53d49700834f622b357915bb6
|
d4b4f6dde43c7d801837977dfb087d8913ed71ca
|
refs/heads/master
| 2021-06-09T08:08:14.593699
| 2014-06-10T02:30:48
| 2014-06-10T02:30:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,216
|
java
|
/*
* Copyright 2011 Mark McKay
*
* 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.kitfox.raven.editor.view.camera;
import com.kitfox.raven.editor.RavenEditor;
import com.kitfox.raven.editor.view.ViewProvider;
import com.kitfox.raven.util.service.ServiceInst;
import java.awt.Component;
/**
*
* @author kitfox
*/
@ServiceInst(service=ViewProvider.class)
public class CameraDisplayViewProvider extends ViewProvider
{
public CameraDisplayViewProvider()
{
super("Camera Display", "/icons/view/cameraDisplay.png");
}
@Override
public Component createComponent(RavenEditor editor)
{
return new CameraDisplayPanel(editor);
}
}
|
[
"kitfox@6b8830c1-5349-cced-e2ce-a6a69cd31f76"
] |
kitfox@6b8830c1-5349-cced-e2ce-a6a69cd31f76
|
c4335231740cd26a18b301b80ccdefc2987e6f86
|
f7cedafa9b0c5ec2c4b82d54283c629c2fad9b0c
|
/src/algo/recursion/RecursionSampleApp.java
|
990ae03cf3db7a36572f86abe8aeb70f62f08b3d
|
[] |
no_license
|
ashishkg3004/learn-ds-udemy
|
0456b03895c6b48b61fbfa99dee2244552fb6c93
|
8214fcec42b78aa43b2bda8c4a32a7ccbf3c4ef6
|
refs/heads/master
| 2021-01-11T15:01:00.347938
| 2017-02-24T17:21:28
| 2017-02-24T17:21:28
| 80,279,904
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 319
|
java
|
package algo.recursion;
public class RecursionSampleApp {
public static void main(String[] args) {
reduceByOne(10);
}
public static void reduceByOne(int n) {
if (n >= 0) {
reduceByOne(n - 1);
}
System.out.println("Complete Call Stack : " + n);
}
}
// Refer to recursive-call-stack.png for the output.
|
[
"="
] |
=
|
63c08f81b3469d153532a349d2521f330c221996
|
267a2858bc1823f71ceea66a603d5f880afb9fb8
|
/app/src/main/java/com/example/app3/TitleGridView.java
|
158b8443a4f00dddb2776dd51519829d2f05e263
|
[] |
no_license
|
zsp19931222/LiGongApp
|
ad1d61f352481bb2ebecd059d0674f48e1ab6bef
|
1bc158c6c615afca490edc9ce229e8ad4f3ff35f
|
refs/heads/master
| 2020-03-23T07:21:09.914957
| 2018-08-13T03:05:27
| 2018-08-13T03:05:34
| 141,266,143
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,210
|
java
|
package com.example.app3;
import org.json.JSONArray;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.ViewTreeObserver.OnGlobalFocusChangeListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import android.widget.Toast;
import com.yhkj.cqgyxy.R;
import yh.app.tool.DpPx;
import 云华.智慧校园.工具.JsonTools;
public class TitleGridView
{
private TextView titleView;
private GridView girdView;
private View titleGirdView;
private Context context;
public TitleGridView(final Context context, View titleGirdView)
{
this.context = context;
this.titleGirdView = titleGirdView;
this.girdView = (GridView) titleGirdView.findViewById(R.id.gridview_home_item_gridview);
this.titleView = (TextView) titleGirdView.findViewById(R.id.txt_home_item_titleview);
girdView.getViewTreeObserver().addOnGlobalFocusChangeListener(new OnGlobalFocusChangeListener()
{
@Override
public void onGlobalFocusChanged(View oldFocus, View newFocus)
{
LinearLayout.LayoutParams lp = (LayoutParams) girdView.getLayoutParams();
lp.height = ((View) girdView.getAdapter().getItem(0)).getHeight() * ((girdView.getAdapter().getCount() - 1) / girdView.getNumColumns() + 1) + new DpPx(context).getDpToPx(20);
girdView.setLayoutParams(lp);
}
});
}
public TitleGridView setTitle(String title)
{
titleView.setText(title);
return this;
}
public TitleGridView setAdapter(BaseAdapter adapter)
{
girdView.setAdapter(adapter);
return this;
}
public TitleGridView setOnItemViewClick(OnItemClickListener listener)
{
girdView.setOnItemClickListener(listener);
return this;
}
public TitleGridView setOnItemViewClick(final JSONArray jsa)
{
girdView.setOnItemClickListener(new OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
try
{
Intent intent = new Intent();
String action = JsonTools.getString(JsonTools.getJSONObject(jsa, position), "", new String[]
{
"function_action"
})[0];
if (action.equals(""))
{
Toast.makeText(context, "��������ʧ�ܣ�������", Toast.LENGTH_SHORT).show();
return;
}
intent.setAction(JsonTools.getString(JsonTools.getJSONObject(jsa, position), "", new String[]
{
"function_action"
})[0]);
intent.setPackage(context.getPackageName());
context.startActivity(intent);
} catch (Exception e)
{
Toast.makeText(context, "��������ʧ�ܣ�������", Toast.LENGTH_SHORT).show();
}
}
});
return this;
}
public TitleGridView setNumColumns(int numColumns)
{
getGirdView().setNumColumns(numColumns);
return this;
}
public GridView getGirdView()
{
return girdView;
}
public View getTitleGirdView()
{
return titleGirdView;
}
}
|
[
"872126510@qq.com"
] |
872126510@qq.com
|
3868572cb48177f9c600db6a577cc927ee4fa80a
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/42_asphodel-org.asphodel.FtrConstants-1.0-8/org/asphodel/FtrConstants_ESTest.java
|
eda334b1bb2a1db9028e601b91e96f79a0eb817a
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 642
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Oct 25 23:30:19 GMT 2019
*/
package org.asphodel;
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(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class FtrConstants_ESTest extends FtrConstants_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
14a05bbda2e8322037890677ca65404e5b211819
|
a34eb90d0b1d34a1649e109cdc27457d883c32c8
|
/opendsp-web/src/main/java/mobi/opendsp/web/AdUnitController.java
|
511ce49ab0bbd21e1d9c4f0bb167b10baf3ec9a2
|
[
"Apache-2.0"
] |
permissive
|
sierpys/opendsp
|
5a70991f5a1fcde4810eec7206edcc2c1e024dd0
|
f8d1e7e94de640229d2a64a961bc1cd1c5668f08
|
refs/heads/master
| 2020-03-23T19:16:20.211969
| 2017-09-15T09:37:13
| 2017-09-15T09:37:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 245
|
java
|
/*
* Copyright 2014-2016 f2time.com All right reserved.
*/
package mobi.opendsp.web;
import org.springframework.web.bind.annotation.RestController;
/**
* @author wangwp
*
*/
@RestController
public class AdUnitController {
}
|
[
"javagossip@gmail.com"
] |
javagossip@gmail.com
|
f83b0232ff8a1c27a445d7b1968b1d6d1ba68bb6
|
119505bedd1dfdb82f86fcd7644fd20174fcd452
|
/src/main/java/MovingAverage1.java
|
52b81ea34031a44aff0d18fc830a2f8568635cad
|
[] |
no_license
|
Learn-2021/kotlin-in-action
|
2621e3bce7ef566c4d21e724a734e75780318ee7
|
5c6ad1cf5f3414ea89d58a6d8e5bc113cdaf87aa
|
refs/heads/main
| 2023-06-22T13:14:55.342746
| 2021-07-25T04:04:01
| 2021-07-25T04:04:01
| 365,464,274
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,189
|
java
|
import java.util.ArrayList;
import java.util.List;
public class MovingAverage1 {
public List<Double> solution(double[] a, int m) {
List<Double> ret = new ArrayList<>();
int n = a.length;
for (int i = m-1; i < n; ++i) {
//a[i]까지의 이동 평균 값 구하기
double partialSum = 0;
for (int j = 0; j < m; ++j) {
partialSum += a[i - j];
}
ret.add(partialSum / m);
}
return ret;
}
public List<Double> solution2(double[] a, int m) {
List<Double> ret = new ArrayList<>();
int n = a.length;
double partialSum = 0;
for (int i = 0; i < m-1; ++i) {
partialSum += a[i];
}
for (int i = m-1; i < n; ++i) {
partialSum += a[i];
ret.add(partialSum / m);
partialSum -= a[i-m+1];
}
return ret;
}
public static void main(String[] args) {
MovingAverage1 movingAverage1 = new MovingAverage1();
List<Double> solution = movingAverage1.solution2(new double[]{3.5, 3.5, 3.5, 3.6, 3.5}, 6);
System.out.println(solution);
}
}
|
[
"moradulee@gmail.com"
] |
moradulee@gmail.com
|
e7f17d3631aa630c3aec735baa9c7d980de09db7
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/25/25_fce0071515f35b57aa695152e77c6155885b4fb9/ShapeMaskOpImage/25_fce0071515f35b57aa695152e77c6155885b4fb9_ShapeMaskOpImage_t.java
|
ad96d10573279ccee864837f1ffebd43deebf64f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,176
|
java
|
package org.esa.beam.jai;
import javax.media.jai.PlanarImage;
import javax.media.jai.RasterFactory;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.image.*;
/**
* Creates a mask image for a given {@link org.esa.beam.framework.datamodel.RasterDataNode}.
* The resulting image will have a single-band, interleaved sample model
* with sample values 255 or 0.
*/
public class ShapeMaskOpImage extends SingleBandedOpImage {
private static final byte FALSE = (byte) 0;
private static final byte TRUE = (byte) 255;
private final Shape shape;
private final ColorModel colorModel;
public ShapeMaskOpImage(Shape shape, int width, int height, ResolutionLevel level) {
super(DataBuffer.TYPE_BYTE, width, height, null, null, level);
this.shape = AffineTransform.getScaleInstance(1.0 / getScale(), 1.0 / getScale()).createTransformedShape(shape);
this.colorModel = PlanarImage.createColorModel(getSampleModel());
}
public ShapeMaskOpImage(Shape shape, int width, int height, Dimension tileSize, ResolutionLevel level) {
super(DataBuffer.TYPE_BYTE, width, height, tileSize, null, level);
this.shape = AffineTransform.getScaleInstance(1.0 / getScale(), 1.0 / getScale()).createTransformedShape(shape);
this.colorModel = PlanarImage.createColorModel(getSampleModel());
}
@Override
protected void computeRect(PlanarImage[] sourceImages, WritableRaster tile, Rectangle destRect) {
final BufferedImage image = new BufferedImage(colorModel, RasterFactory.createWritableRaster(tile.getSampleModel(), tile.getDataBuffer(), new Point(0, 0)), false, null);
final Graphics2D graphics2D = image.createGraphics();
graphics2D.translate(-tile.getMinX(), -tile.getMinY());
graphics2D.setColor(Color.WHITE);
graphics2D.fill(shape);
graphics2D.dispose();
final byte[] data = ((DataBufferByte) tile.getDataBuffer()).getData();
for (int i = 0; i < data.length; i++) {
data[i] = (data[i] != 0) ? TRUE : FALSE;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
975138b304d2d2dbe429f19e85320bae0636ee58
|
6252c165657baa6aa605337ebc38dd44b3f694e2
|
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-900-Files/boiler-To-Generate-900-Files/syncregions-900Files/BoilerActuator4165.java
|
76624089e113ccdcecd76d5842c658853d01fc34
|
[] |
no_license
|
soha500/EglSync
|
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
|
55101bc781349bb14fefc178bf3486e2b778aed6
|
refs/heads/master
| 2021-06-23T02:55:13.464889
| 2020-12-11T19:10:01
| 2020-12-11T19:10:01
| 139,832,721
| 0
| 1
| null | 2019-05-31T11:34:02
| 2018-07-05T10:20:00
|
Java
|
UTF-8
|
Java
| false
| false
| 263
|
java
|
package syncregions;
public class BoilerActuator4165 {
public execute(int temperatureDifference4165, boolean boilerStatus4165) {
//sync _bfpnGUbFEeqXnfGWlV4165, behaviour
Half Change - return temperature - targetTemperature;
//endSync
}
}
|
[
"sultanalmutairi@172.20.10.2"
] |
sultanalmutairi@172.20.10.2
|
0064d91989c2ed120b4e9df734f4ed7856b100e0
|
c8d6d8dd97d09dbec8badcfdb3de692ee12db216
|
/src/com/designPattern/factory/Square.java
|
f9d8150b63a551847fb3d5a1df53061fd7b34aca
|
[] |
no_license
|
jimmywang1994/DesignPattern
|
06866f5026d24b3cb4d44c38b4c390d545d117ff
|
ce428e10574c796a6048d91ce750c09400f64078
|
refs/heads/master
| 2020-03-18T17:23:37.714070
| 2019-07-26T13:58:15
| 2019-07-26T13:58:15
| 135,025,761
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 184
|
java
|
package com.designPattern.factory;
public class Square implements Shape {
@Override
public void draw() {
System.out.println("Inside Square::draw() method.");
}
}
|
[
"429744781@qq.com"
] |
429744781@qq.com
|
ab174d1b9822b64913ad99fe0ff0e4ca59b86861
|
21e3d5f861e3bb2b7d64aa9c914f300a542235cb
|
/src/main/java/io/growing/graphql/model/MutationUpdateFunnelAnalysisParametrizedInput.java
|
1dea31c9d660debb075165486a2073f9fe531d0e
|
[
"MIT"
] |
permissive
|
okpiaoxuefeng98/growingio-graphql-javasdk
|
d274378dad69d971fe14207f74d7a3135959460b
|
97a75faf337446fa16536a42a3b744f7fc992fb4
|
refs/heads/master
| 2023-02-04T15:38:13.627500
| 2020-12-24T07:25:32
| 2020-12-24T07:25:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,064
|
java
|
package io.growing.graphql.model;
import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLParametrizedInput;
import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLRequestSerializer;
import java.util.StringJoiner;
/**
* Parametrized input for field updateFunnelAnalysis in type Mutation
*/
@javax.annotation.Generated(
value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
date = "2020-12-22T15:45:57+0800"
)
public class MutationUpdateFunnelAnalysisParametrizedInput implements GraphQLParametrizedInput {
@javax.validation.constraints.NotNull
private String projectId;
@javax.validation.constraints.NotNull
private String id;
@javax.validation.constraints.NotNull
private FunnelAnalysisInputDto funnelAnalysis;
public MutationUpdateFunnelAnalysisParametrizedInput() {
}
public MutationUpdateFunnelAnalysisParametrizedInput(String projectId, String id, FunnelAnalysisInputDto funnelAnalysis) {
this.projectId = projectId;
this.id = id;
this.funnelAnalysis = funnelAnalysis;
}
public MutationUpdateFunnelAnalysisParametrizedInput projectId(String projectId) {
this.projectId = projectId;
return this;
}
public MutationUpdateFunnelAnalysisParametrizedInput id(String id) {
this.id = id;
return this;
}
public MutationUpdateFunnelAnalysisParametrizedInput funnelAnalysis(FunnelAnalysisInputDto funnelAnalysis) {
this.funnelAnalysis = funnelAnalysis;
return this;
}
@Override
public String toString() {
StringJoiner joiner = new StringJoiner(", ", "(", ")");
if (projectId != null) {
joiner.add("projectId: " + GraphQLRequestSerializer.getEntry(projectId));
}
if (id != null) {
joiner.add("id: " + GraphQLRequestSerializer.getEntry(id));
}
if (funnelAnalysis != null) {
joiner.add("funnelAnalysis: " + GraphQLRequestSerializer.getEntry(funnelAnalysis));
}
return joiner.toString();
}
}
|
[
"dreamylost@outlook.com"
] |
dreamylost@outlook.com
|
8040bb25fc0937e203e3dbb4ebb13dc4576d458c
|
322ac84614bd8d011c79b03d96214d4ceabcf086
|
/src/main/java/com/oseasy/pro/modules/promodel/web/front/FrontProStudentExpansionController.java
|
cf9d466a18195f1207a5439a88dc4029379d87f8
|
[] |
no_license
|
SchuckBeta/cxcy
|
f2f953c074be5ab8ab8aeac533ade6600135d759
|
ed4ceee397fae9d470fb93579bbf6af631965eaa
|
refs/heads/master
| 2022-12-25T14:53:58.066476
| 2019-09-20T12:28:55
| 2019-09-20T12:28:55
| 209,783,634
| 1
| 0
| null | 2022-12-16T07:46:52
| 2019-09-20T12:18:07
|
Java
|
UTF-8
|
Java
| false
| false
| 7,495
|
java
|
package com.oseasy.pro.modules.promodel.web.front;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.oseasy.pro.modules.interactive.service.SysViewsService;
import com.oseasy.sys.modules.sys.service.StudentExpansionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.oseasy.com.common.config.ApiTstatus;
import com.oseasy.com.pcore.common.config.CoreSval.Const;
import com.oseasy.com.pcore.common.web.BaseController;
import com.oseasy.com.pcore.modules.sys.entity.Office;
import com.oseasy.com.pcore.modules.sys.entity.User;
import com.oseasy.com.pcore.modules.sys.service.OfficeService;
import com.oseasy.com.pcore.modules.sys.utils.UserUtils;
import com.oseasy.com.rediserver.common.utils.CacheUtils;
import com.oseasy.pro.modules.project.vo.ProjectExpVo;
import com.oseasy.pro.modules.promodel.entity.GContestUndergo;
import com.oseasy.pro.modules.promodel.service.ProStudentExpansionService;
import com.oseasy.sys.common.config.SysSval;
import com.oseasy.sys.common.config.SysSval.SysEmskey;
import com.oseasy.sys.modules.sys.entity.StudentExpansion;
import com.oseasy.sys.modules.team.service.TeamService;
import com.oseasy.util.common.utils.StringUtil;
/**
* 学生信息表Controller
*
* @author zy
* @version 2017-03-27
*/
@Controller
@RequestMapping(value = "${frontPath}/sys/frontStudentExpansion")
public class FrontProStudentExpansionController extends BaseController {
@Autowired
private TeamService teamService;
@Autowired
private OfficeService officeService;
@Autowired
private ProStudentExpansionService proStudentExpansionService;
@Autowired
private StudentExpansionService studentExpansionService;
@ModelAttribute
public StudentExpansion get(@RequestParam(required = false) String id, Model model) {
StudentExpansion entity = null;
if (StringUtil.isNotBlank(id)) {
entity = studentExpansionService.get(id);
}
if (entity == null) {
entity = new StudentExpansion();
}
return entity;
}
@RequestMapping(value = "form")
public String form(StudentExpansion studentExpansion, Model model,HttpServletRequest request) {
// List<ProjectExpVo> projectExpVo = proStudentExpansionService.findProjectByStudentId(studentExpansion.getUser().getId());//查询项目经历
// List<GContestUndergo> gContest = proStudentExpansionService.findGContestByStudentId(studentExpansion.getUser().getId()); //查询大赛经历
// model.addAttribute("projectExpVo", projectExpVo);
// model.addAttribute("gContestExpVo", gContest);
model.addAttribute("cuser", studentExpansion.getUser().getId());
String mobile=studentExpansion.getUser().getMobile();
String email=studentExpansion.getUser().getEmail();
//判断studentExpansion与当前登录人是否在一个团队,如果不在一个团队,则电话号码隐藏中间四位
String studentId = studentExpansion.getUser().getId();
String userId = UserUtils.getUser().getId();
if (!teamService.findTeamByUserId(userId,studentId)) {
if(StringUtil.isNotEmpty(mobile)) {
mobile = mobile.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
}
if(StringUtil.isNotEmpty(email)) {
email = email.replaceAll("(\\w?)(\\w+)(\\w)(@\\w+([.-]?\\w+)*\\.[a-z]+(\\.[a-z]+)?)", "$1****$3$4");
}
}
model.addAttribute("email", email);
model.addAttribute("mobile", mobile);
// if (StringUtil.isEmpty(studentExpansion.getUser().getViews())) {
// studentExpansion.getUser().setViews("0");
// }
// if (StringUtil.isEmpty(studentExpansion.getUser().getLikes())) {
// studentExpansion.getUser().setLikes("0");
// }
/*记录浏览量*/
User user= UserUtils.getUser();
if (user!=null&&StringUtil.isNotEmpty(user.getId())&&!user.getId().equals(studentExpansion.getUser().getId())) {
SysViewsService.updateViews(studentExpansion.getUser().getId(), request,CacheUtils.USER_VIEWS_QUEUE);
}
/*记录浏览量*/
/*查询谁看过它*/
// model.addAttribute("visitors", sysViewsService.getVisitors(studentExpansion.getUser().getId()));
model.addAttribute("currentUser", UserUtils.getUser());
return SysSval.path.vms(SysEmskey.SYS.k()) + "front/frontStudentExpansionForm";
}
/**
* 获取当前登录 学生基本信息.
* @return
*/
@ResponseBody
@RequestMapping(value="ajaxGetUserInfoById")
public ApiTstatus<StudentExpansion> ajaxGetUserInfoById(String userId) {
if(StringUtil.isEmpty(userId)){
userId = UserUtils.getUser().getId();
}
StudentExpansion studentExpansion = proStudentExpansionService.getByUserId(String.valueOf(userId));//查出用户基本信息
if (studentExpansion!=null) {
studentExpansion.setUser(UserUtils.get(studentExpansion.getUser().getId()));
if (studentExpansion.getUser() !=null) {
if (StringUtil.isEmpty(studentExpansion.getUser().getSex())) {
studentExpansion.getUser().setSex(Const.YES);
}
}
if (studentExpansion.getUser()!=null && studentExpansion.getUser().getOffice()!=null&&StringUtil.isNotEmpty(studentExpansion.getUser().getOffice().getId())) {
Office office = officeService.get(studentExpansion.getUser().getOffice().getId());
if(office != null){
studentExpansion.getUser().setOffice(office);
}
}
}
return new ApiTstatus<StudentExpansion>(studentExpansion);
}
/**
* 获取当前登录 学生基本信息,查询大赛经历.
* @return ActYwRstatus
*/
@ResponseBody
@RequestMapping(value="ajaxGetUserProjectById")
public ApiTstatus<List<ProjectExpVo>> ajaxGetUserProjectById(String userId) {
if(StringUtil.isEmpty(userId)){
userId = UserUtils.getUser().getId();
}
List<ProjectExpVo> projectExpVos = proStudentExpansionService.findProjectByStudentId(userId);
if(StringUtil.checkEmpty(projectExpVos)){
return new ApiTstatus<List<ProjectExpVo>>(true, "暂无记录");
}
return new ApiTstatus<List<ProjectExpVo>>(projectExpVos);
}
/**
* 获取当前登录 学生基本信息,查询项目经历.
* @return ActYwRstatus
*/
@ResponseBody
@RequestMapping(value="ajaxGetUserGContestById")
public ApiTstatus<List<GContestUndergo>> ajaxGetUserGContestById(String userId) {
if(StringUtil.isEmpty(userId)){
userId = UserUtils.getUser().getId();
}
List<GContestUndergo> gcontestUndergos = proStudentExpansionService.findGContestByStudentId(userId);
if(StringUtil.checkEmpty(gcontestUndergos)){
return new ApiTstatus<List<GContestUndergo>>(true, "暂无记录");
}
return new ApiTstatus<List<GContestUndergo>>(gcontestUndergos);
}
}
|
[
"chenhao@os-easy.com"
] |
chenhao@os-easy.com
|
19afbc15416fc5e1e034563d18bc342b9fcaa9c2
|
f9cfa81a99eef9ea9a3d5820a5cfc5cc765e8a94
|
/src/main/java/com/arangodb/intellij/aql/grammar/generated/psi/impl/AqlFunLengthImpl.java
|
47e2b4039b7b03357096b908c7ac82c3d817a759
|
[
"Apache-2.0"
] |
permissive
|
vlansco/aql-intellij-plugin
|
5470cbd4b02ca8c8a9fccfb270b2446dbaa650a9
|
17d60a9bc3e3c8cb081688cf728bb657dcbe053b
|
refs/heads/master
| 2020-08-19T02:58:35.441961
| 2019-10-16T13:08:38
| 2019-10-16T13:08:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 2,151
|
java
|
// This is a generated file. Not intended for manual editing.
package com.arangodb.intellij.aql.grammar.generated.psi.impl;
import com.arangodb.intellij.aql.grammar.generated.psi.*;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
import static com.arangodb.intellij.aql.grammar.generated.psi.AqlTypes.*;
public class AqlFunLengthImpl extends ASTWrapperPsiElement implements AqlFunLength {
public AqlFunLengthImpl(@NotNull ASTNode node) {
super(node);
}
public void accept(@NotNull AqlVisitor visitor) {
visitor.visitFunLength(this);
}
public void accept(@NotNull PsiElementVisitor visitor) {
if (visitor instanceof AqlVisitor) accept((AqlVisitor)visitor);
else super.accept(visitor);
}
@Override
@Nullable
public AqlJsonType getJsonType() {
return findChildByClass(AqlJsonType.class);
}
@Override
@Nullable
public AqlNumberType getNumberType() {
return findChildByClass(AqlNumberType.class);
}
@Override
@Nullable
public AqlObjectExpression getObjectExpression() {
return findChildByClass(AqlObjectExpression.class);
}
@Override
@Nullable
public AqlParameterVariable getParameterVariable() {
return findChildByClass(AqlParameterVariable.class);
}
@Override
@Nullable
public AqlPropertyName getPropertyName() {
return findChildByClass(AqlPropertyName.class);
}
@Override
@NotNull
public List<AqlQueryItem> getQueryItemList() {
return PsiTreeUtil.getChildrenOfTypeAsList(this, AqlQueryItem.class);
}
@Override
@Nullable
public AqlStringType getStringType() {
return findChildByClass(AqlStringType.class);
}
@Override
@Nullable
public AqlVariablePlaceHolder getVariablePlaceHolder() {
return findChildByClass(AqlVariablePlaceHolder.class);
}
@Override
@Nullable
public PsiElement getFLength() {
return findChildByType(F_LENGTH);
}
}
|
[
"marijan.milicevic@bloomreach.com"
] |
marijan.milicevic@bloomreach.com
|
0de9ec8c5690963840ee86751de2aeea49afea0f
|
5c8762df69b8b0824eb2e3cf65c294c659ba2e70
|
/src/main/java/com/notronix/etsy/api/model/Shop.java
|
27f91fabda41d88ffe3315d591dadb24250e6b9a
|
[
"Apache-2.0"
] |
permissive
|
cmunden/JEtsy
|
436eb36a871d43c83df150d1b4870a7a20047325
|
2257fa185c42a966050aa6c751d8a116146b2833
|
refs/heads/master
| 2020-06-22T23:54:47.109645
| 2019-07-23T13:28:39
| 2019-07-23T13:28:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,858
|
java
|
package com.notronix.etsy.api.model;
import java.util.List;
public interface Shop
{
Long getShopId();
String getShopName();
Long getUserId();
Float getCreationTsz();
String getTitle();
String getAnnouncement();
String getCurrencyCode();
Boolean getVacation();
String getVacationMessage();
String getSaleMessage();
String getDigitalSaleMessage();
Float getLastUpdatedTsz();
Integer getListingActiveCount();
Integer getDigitalListingCount();
String getLoginName();
Float getLat();
Float getLon();
Boolean getAcceptsCustomRequests();
String getPolicyWelcome();
String getPolicyPayment();
String getPolicyShipping();
String getPolicyRefunds();
String getPolicyAdditional();
String getPolicySellerInfo();
Float getPolicyUpdatedTsz();
Boolean getPolicyHasPrivateReceiptInfo();
String getVacationAutoReply();
String getGaCode();
String getUrl();
String getImageUrl760x100();
Long getNumFavorers();
List<String> getLanguages();
Long getUpcomingLocalEventId();
String getIconUrlFullxFull();
Boolean getUsingStructuredPolicies();
Boolean getHasOnboardedStructuredPolicies();
Boolean getHasUnstructuredPolicies();
String getPolicyPrivacy();
Boolean getUseNewInventoryEndpoints();
Boolean getIncludeDisputeFormLink();
User getUser();
ShopAbout getAbout();
List<? extends ShopSection> getSections();
List<? extends Listing> getListings();
List<? extends Receipt> getReceipts();
List<? extends Transaction> getTransactions();
List<? extends ShopTranslation> getTranslations();
StructuredPolicies getStructuredPolicies();
SellerDetails getSellerDetails();
List<? extends FrequentlyAskedQuestion> getFAQ();
}
|
[
"clint.munden@notronix.com"
] |
clint.munden@notronix.com
|
a37f7031eecf2fe70a141315b309b8ef5d576ee9
|
b52bdef128ecebcc8808ed95f8287bc97a4c4174
|
/core/src/main/java/com/orientechnologies/orient/core/storage/index/sbtree/singlevalue/OCellBTreeSingleValue.java
|
5d35bc8f71fbe8a511db61e6d8f6eb2b8ca63740
|
[
"Apache-2.0",
"CDDL-1.0",
"BSD-3-Clause"
] |
permissive
|
saeedtabrizi/orientdb
|
4736d86e82e713b34d21566ca844db5af177f53a
|
361cf4816b6597ab7d5cd356745ee3f7f475116d
|
refs/heads/develop
| 2021-01-15T14:43:20.379474
| 2019-09-09T12:20:03
| 2019-09-09T12:20:03
| 56,811,541
| 0
| 0
|
Apache-2.0
| 2019-09-09T12:22:10
| 2016-04-21T23:24:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,659
|
java
|
package com.orientechnologies.orient.core.storage.index.sbtree.singlevalue;
import com.orientechnologies.common.serialization.types.OBinarySerializer;
import com.orientechnologies.orient.core.encryption.OEncryption;
import com.orientechnologies.orient.core.id.ORID;
import com.orientechnologies.orient.core.index.engine.OBaseIndexEngine;
import com.orientechnologies.orient.core.metadata.schema.OType;
import java.io.IOException;
import java.util.Map;
public interface OCellBTreeSingleValue<K> {
void create(OBinarySerializer<K> keySerializer, OType[] keyTypes, int keySize, OEncryption encryption) throws IOException;
ORID get(K key);
void put(K key, ORID value) throws IOException;
boolean validatedPut(K key, ORID value, OBaseIndexEngine.Validator<K, ORID> validator)
throws IOException;
void close();
void delete() throws IOException;
void load(String name, int keySize, OType[] keyTypes, OBinarySerializer<K> keySerializer, OEncryption encryption);
long size();
ORID remove(K key) throws IOException;
OCellBTreeCursor<K, ORID> iterateEntriesMinor(K key, boolean inclusive, boolean ascSortOrder);
OCellBTreeCursor<K, ORID> iterateEntriesMajor(K key, boolean inclusive, boolean ascSortOrder);
K firstKey();
K lastKey();
OCellBTreeKeyCursor<K> keyCursor();
OCellBTreeCursor<K, ORID> iterateEntriesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive,
boolean ascSortOrder);
void acquireAtomicExclusiveLock();
interface OCellBTreeCursor<K2, V> {
Map.Entry<K2, V> next(int prefetchSize);
}
interface OCellBTreeKeyCursor<K2> {
K2 next(int prefetchSize);
}
}
|
[
"lomakin.andrey@gmail.com"
] |
lomakin.andrey@gmail.com
|
1e96e0063ee45e6aa63561de16dd18f7e6d0b40d
|
4ebf08f79e11903a14acb8d8a53e9b6f0f0e8994
|
/Pilot/src/com/emitrom/pilot/device/client/handlers/MenuButtonEventHandler.java
|
bc023d2d730d9d49a1a52e683f4fc374621b70b5
|
[] |
no_license
|
sanyaade-mobiledev/Pilot
|
a48247328f58bde119646b93e9d7dff713a3f7ad
|
a385352f241b46f9d273a50a85c8e92e625ee5ba
|
refs/heads/master
| 2021-01-20T21:25:55.533922
| 2013-05-05T00:01:15
| 2013-05-05T00:01:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,099
|
java
|
/**
Copyright (c) 2012 Emitrom LLC. All rights reserved.
For licensing questions, please contact us at licensing@emitrom.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.emitrom.pilot.device.client.handlers;
import com.emitrom.pilot.util.client.core.Function;
/**
* This is an event that fires when the user presses the menu button.
* Not supported in iOS.
*/
public abstract class MenuButtonEventHandler implements Function {
public abstract void onMenuButtonPressed();
@Override
public void execute() {
onMenuButtonPressed();
}
}
|
[
"jazzmatadazz@gmail.com"
] |
jazzmatadazz@gmail.com
|
ecdd21a163f5ece156c85f3a9b5cf83b581742e9
|
f58ec6775d8492b4aca4dd2f3aafd5f0a1521c5b
|
/app/src/main/java/com/withustudy/koudaizikao/entity/req/MajorUpLoad.java
|
2a6d780d0d619b7cd1f363508a303b93ef47b88d
|
[] |
no_license
|
Rachel-hsw/WuMao
|
c852a7e97f0f532821056c39bf3835f4c70cc4b8
|
5a352d8b1688320e3e6327bb08c70545919166fd
|
refs/heads/master
| 2020-07-04T15:57:24.845777
| 2019-08-14T10:44:23
| 2019-08-14T10:44:23
| 202,330,647
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,861
|
java
|
package com.withustudy.koudaizikao.entity.req;
public class MajorUpLoad
{
protected String clientType;
protected String imei;
private String majorId;
private String majorName;
protected String net;
private String provId;
private String provName;
protected String versionName;
public String getClientType()
{
return this.clientType;
}
public String getImei()
{
return this.imei;
}
public String getMajorId()
{
return this.majorId;
}
public String getMajorName()
{
return this.majorName;
}
public String getNet()
{
return this.net;
}
public String getProvId()
{
return this.provId;
}
public String getProvName()
{
return this.provName;
}
public String getVersionName()
{
return this.versionName;
}
public void setClientType(String paramString)
{
this.clientType = paramString;
}
public void setImei(String paramString)
{
this.imei = paramString;
}
public void setMajorId(String paramString)
{
this.majorId = paramString;
}
public void setMajorName(String paramString)
{
this.majorName = paramString;
}
public void setNet(String paramString)
{
this.net = paramString;
}
public void setProvId(String paramString)
{
this.provId = paramString;
}
public void setProvName(String paramString)
{
this.provName = paramString;
}
public void setVersionName(String paramString)
{
this.versionName = paramString;
}
public String toString()
{
return "MajorUpLoad [majorId=" + this.majorId + ", majorName=" + this.majorName + ", provId=" + this.provId + ", provName=" + this.provName + "]";
}
}
/* Location: E:\fanbianyi\zikao1.0\1.0.1.0_classes_dex2jar.jar
* Qualified Name: com.withustudy.koudaizikao.entity.req.MajorUpLoad
* JD-Core Version: 0.6.0
*/
|
[
"1623404291@qq.com"
] |
1623404291@qq.com
|
fe8165c1abbbffd18124e96ec09151054992c6e0
|
f164b56ed542b35b257c947b59ff79c708c72009
|
/DifferentSource/src/patternExample/Pattern_10.java
|
68cb4a7bdc2a9a021f11f49bd5aea451ac2b9086
|
[] |
no_license
|
MAYURIGAURAV/CoreJavaNew
|
f1593b27cb8800e1bd8833aec8ba495d53e21f90
|
e1cd5825acde15c797c6ce9c777758a5db01bcfa
|
refs/heads/master
| 2020-03-24T04:59:17.180787
| 2017-10-30T12:26:30
| 2017-10-30T12:26:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 282
|
java
|
package patternExample;
public class Pattern_10 {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < i; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
|
[
"shamimsjava@gmail.com"
] |
shamimsjava@gmail.com
|
eafa01a5ce4844e1992c819f8b038f5cf09d4ada
|
260ffca605956d7cb9490a8c33e2fe856e5c97bf
|
/src/com/google/android/gms/internal/zzqq$zzb.java
|
9f76758f7d7410af6064aecf1b708613cf62fd4d
|
[] |
no_license
|
yazid2016/com.incorporateapps.fakegps.fre
|
cf7f1802fcc6608ff9a1b82b73a17675d8068beb
|
44856c804cea36982fcc61d039a46761a8103787
|
refs/heads/master
| 2021-06-02T23:32:09.654199
| 2016-07-21T03:28:48
| 2016-07-21T03:28:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 909
|
java
|
package com.google.android.gms.internal;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.zza.zzb;
final class zzqq$zzb
extends zzqo.zza
{
private final zza.zzb zzamC;
public zzqq$zzb(zza.zzb paramzzb)
{
zzamC = paramzzb;
}
public final void zza(int paramInt1, Bundle paramBundle, int paramInt2, Intent paramIntent)
{
if (paramBundle != null) {}
for (paramBundle = (PendingIntent)paramBundle.getParcelable("pendingIntent");; paramBundle = null)
{
paramBundle = new Status(paramInt1, null, paramBundle);
zzamC.zzs(new zzqs(paramBundle, paramIntent));
return;
}
}
}
/* Location:
* Qualified Name: com.google.android.gms.internal.zzqq.zzb
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
ecdb4b9435bf2287613ec91406655a7846bb8dec
|
36c0a0e21f3758284242b8d2e40b60c36bd23468
|
/src/main/java/com/datasphere/engine/core/annotation/MongoFilter.java
|
84d045e88b26ff6e2679c222edc20ee980e59692
|
[
"LicenseRef-scancode-mulanpsl-1.0-en"
] |
permissive
|
neeeekoooo/datasphere-service
|
0185bca5a154164b4bc323deac23a5012e2e6475
|
cb800033ba101098b203dbe0a7e8b7f284319a7b
|
refs/heads/master
| 2022-11-15T01:10:05.530442
| 2020-02-01T13:54:36
| 2020-02-01T13:54:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 782
|
java
|
/*
* Copyright 2019, Huahuidata, Inc.
* DataSphere is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
* http://license.coscl.org.cn/MulanPSL
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
* PURPOSE.
* See the Mulan PSL v1 for more details.
*/
package com.datasphere.engine.core.annotation;
import java.lang.annotation.*;
@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface MongoFilter {
boolean updatable() default true;
boolean queryable() default true;
}
|
[
"jack_r_ge@126.com"
] |
jack_r_ge@126.com
|
5ffd0cac594ea9d35b99df921e58c9d02a4a66c6
|
fac802dc8681db0804598969980a0e6aa16095bd
|
/workspace/java-works/01singleton/com/training/singleton/EagerSingleton.java
|
83da6b1fdeb741a2be7e7014e7c4b29142dd755d
|
[] |
no_license
|
srinivasmyfiles/baxter-fullstack-sep-2020
|
67f48d810665de3bd7f8c43b7113cae16312530a
|
98e02cea7e8bf7cde7012bf66f70f8c78829739e
|
refs/heads/master
| 2022-12-25T07:50:56.357529
| 2020-10-09T14:57:22
| 2020-10-09T14:57:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 657
|
java
|
package com.training.singleton;
import java.io.Serializable;
// eager / lazy
// any class as a singleton then
// its constructor is made private
public class EagerSingleton implements Serializable{
// the reference of this is always there
// either it is used or not used
private static final EagerSingleton instance = new EagerSingleton();
private EagerSingleton() {
System.out.println("Object Created..");
}
public static EagerSingleton getInstance() {
return instance;
}
// to stop creating an object if already existing
// works only with ObjectInputStream
protected Object readResolve() {
return getInstance();
}
}
|
[
"adith.naveen@gmail.com"
] |
adith.naveen@gmail.com
|
85e2576900a4a3274649a8969a204d52a05e21aa
|
819b29d01434ca930f99e8818293cc1f9aa58e18
|
/src/contest/codejam/GCJ_2017_Round_1B_A.java
|
6186f39f71027462297834f1ed967fbd9a833096
|
[
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
ANUJ581/competitive-programming-1
|
9bd5de60163d9a46680043d480455c8373fe26a7
|
d8ca9efe9762d9953bcacbc1ca1fe0da5cbe6ac4
|
refs/heads/master
| 2020-08-06T18:43:09.688000
| 2019-10-06T04:54:47
| 2019-10-06T04:54:47
| 213,110,718
| 0
| 0
|
NOASSERTION
| 2019-10-06T04:54:18
| 2019-10-06T04:54:18
| null |
UTF-8
|
Java
| false
| false
| 1,649
|
java
|
package contest.codejam;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class GCJ_2017_Round_1B_A {
static BufferedReader br;
static PrintWriter out;
static StringTokenizer st;
static int T, D, N;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
out = new PrintWriter(new OutputStreamWriter(System.out));
// br = new BufferedReader(new FileReader("in.txt"));
// out = new PrintWriter(new FileWriter("out.txt"));
T = readInt();
for (int t = 1; t <= T; t++) {
D = readInt();
N = readInt();
double maxTime = 0;
for (int i = 0; i < N; i++) {
int pos = readInt();
int speed = readInt();
maxTime = Math.max(1.0 * (D - pos) / speed, maxTime);
}
out.printf("Case #%d: %f%n", t, D / maxTime);
}
out.close();
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
static long readLong() throws IOException {
return Long.parseLong(next());
}
static int readInt() throws IOException {
return Integer.parseInt(next());
}
static double readDouble() throws IOException {
return Double.parseDouble(next());
}
static char readCharacter() throws IOException {
return next().charAt(0);
}
static String readLine() throws IOException {
return br.readLine().trim();
}
}
|
[
"jeffrey.xiao1998@gmail.com"
] |
jeffrey.xiao1998@gmail.com
|
d0864da56121ca58883b8a46bcaa0d62df80c8f0
|
a4c584dce85dc476162bc3e5ddc4ed5a2052d6e2
|
/lib/impl/stubs/org/apache/fontbox/util/PushbackInputStream.java
|
bccfec61d9846c8c14cd7732eecf16d3a7e0af9a
|
[
"Apache-2.0"
] |
permissive
|
shannah/CN1aChartEngineDemo
|
5f9bc3b8973e57be4cd778e413f70c46a290ee10
|
8b74e95c5f02ea0b2086b9de3a1370939a22b56d
|
refs/heads/master
| 2020-04-05T01:39:50.853304
| 2014-02-03T20:40:27
| 2014-02-03T20:40:27
| 16,154,623
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,910
|
java
|
/**
*
* This package contains utility classes used by various font types.
*/
package org.apache.fontbox.util;
/**
* A <code>PushbackInputStream</code> adds
* functionality to another input stream, namely
* the ability to "push back" or "unread"
* one byte. This is useful in situations where
* it is convenient for a fragment of code
* to read an indefinite number of data bytes
* that are delimited by a particular byte
* value; after reading the terminating byte,
* the code fragment can "unread" it, so that
* the next read operation on the input stream
* will reread the byte that was pushed back.
* For example, bytes representing the characters
* constituting an identifier might be terminated
* by a byte representing an operator character;
* a method whose job is to read just an identifier
* can read until it sees the operator and
* then push the operator back to be re-read.
*
* @version 1.31, 02/02/00
* @since JDK1.0
*/
public class PushbackInputStream extends FilterInputStream {
/**
* The pushback buffer.
* @since JDK1.1
*/
protected byte[] buf;
/**
* The position within the pushback buffer from which the next byte will
* be read. When the buffer is empty, <code>pos</code> is equal to
* <code>buf.length</code>; when the buffer is full, <code>pos</code> is
* equal to zero.
*
* @since JDK1.1
*/
protected int pos;
/**
* Creates a <code>PushbackInputStream</code>
* with a pushback buffer of the specified <code>size</code>,
* and saves its argument, the input stream
* <code>in</code>, for later use. Initially,
* there is no pushed-back byte (the field
* <code>pushBack</code> is initialized to
* <code>-1</code>).
*
* @param in the input stream from which bytes will be read.
* @param size the size of the pushback buffer.
* @exception IllegalArgumentException if size is <= 0
* @since JDK1.1
*/
public PushbackInputStream(java.io.InputStream in, int size) {
}
/**
* Creates a <code>PushbackInputStream</code>
* and saves its argument, the input stream
* <code>in</code>, for later use. Initially,
* there is no pushed-back byte (the field
* <code>pushBack</code> is initialized to
* <code>-1</code>).
*
* @param in the input stream from which bytes will be read.
*/
public PushbackInputStream(java.io.InputStream in) {
}
/**
* Reads the next byte of data from this input stream. The value
* byte is returned as an <code>int</code> in the range
* <code>0</code> to <code>255</code>. If no byte is available
* because the end of the stream has been reached, the value
* <code>-1</code> is returned. This method blocks until input data
* is available, the end of the stream is detected, or an exception
* is thrown.
*
* <p> This method returns the most recently pushed-back byte, if there is
* one, and otherwise calls the <code>read</code> method of its underlying
* input stream and returns whatever value that method returns.
*
* @return the next byte of data, or <code>-1</code> if the end of the
* stream has been reached.
* @exception IOException if an I/O error occurs.
* @see java.io.InputStream#read()
*/
public int read() {
}
/**
* Reads up to <code>len</code> bytes of data from this input stream into
* an array of bytes. This method first reads any pushed-back bytes; after
* that, if fewer than than <code>len</code> bytes have been read then it
* reads from the underlying input stream. This method blocks until at
* least 1 byte of input is available.
*
* @param b the buffer into which the data is read.
* @param off the start offset of the data.
* @param len the maximum number of bytes read.
* @return the total number of bytes read into the buffer, or
* <code>-1</code> if there is no more data because the end of
* the stream has been reached.
* @exception IOException if an I/O error occurs.
* @see java.io.InputStream#read(byte[], int, int)
*/
public int read(byte[] b, int off, int len) {
}
/**
* Pushes back a byte by copying it to the front of the pushback buffer.
* After this method returns, the next byte to be read will have the value
* <code>(byte)b</code>.
*
* @param b the <code>int</code> value whose low-order
* byte is to be pushed back.
* @exception IOException If there is not enough room in the pushback
* buffer for the byte.
*/
public void unread(int b) {
}
/**
* Pushes back a portion of an array of bytes by copying it to the front
* of the pushback buffer. After this method returns, the next byte to be
* read will have the value <code>b[off]</code>, the byte after that will
* have the value <code>b[off+1]</code>, and so forth.
*
* @param b the byte array to push back.
* @param off the start offset of the data.
* @param len the number of bytes to push back.
* @exception IOException If there is not enough room in the pushback
* buffer for the specified number of bytes.
* @since JDK1.1
*/
public void unread(byte[] b, int off, int len) {
}
/**
* Pushes back an array of bytes by copying it to the front of the
* pushback buffer. After this method returns, the next byte to be read
* will have the value <code>b[0]</code>, the byte after that will have the
* value <code>b[1]</code>, and so forth.
*
* @param b the byte array to push back
* @exception IOException If there is not enough room in the pushback
* buffer for the specified number of bytes.
* @since JDK1.1
*/
public void unread(byte[] b) {
}
/**
* Returns the number of bytes that can be read from this input stream
* without blocking. This method calls the <code>available</code> method
* of the underlying input stream; it returns that value plus the number of
* bytes that have been pushed back.
*
* @return the number of bytes that can be read from the input stream
* without blocking.
* @exception IOException if an I/O error occurs.
* @see java.io.FilterInputStream#in
* @see java.io.InputStream#available()
*/
public int available() {
}
/**
* Skips over and discards <code>n</code> bytes of data from this
* input stream. The <code>skip</code> method may, for a variety of
* reasons, end up skipping over some smaller number of bytes,
* possibly zero. If <code>n</code> is negative, no bytes are skipped.
*
* <p> The <code>skip</code> method of <code>PushbackInputStream</code>
* first skips over the bytes in the pushback buffer, if any. It then
* calls the <code>skip</code> method of the underlying input stream if
* more bytes need to be skipped. The actual number of bytes skipped
* is returned.
*
* @param n the number of bytes to be skipped.
* @return the actual number of bytes skipped.
* @exception IOException if an I/O error occurs.
* @see java.io.FilterInputStream#in
* @see java.io.InputStream#skip(long n)
* @since 1.2
*/
public long skip(long n) {
}
/**
* Tests if this input stream supports the <code>mark</code> and
* <code>reset</code> methods, which it does not.
*
* @return <code>false</code>, since this class does not support the
* <code>mark</code> and <code>reset</code> methods.
* @see java.io.InputStream#mark(int)
* @see java.io.InputStream#reset()
*/
public boolean markSupported() {
}
/**
* Closes this input stream and releases any system resources
* associated with the stream.
*
* @exception IOException if an I/O error occurs.
*/
public synchronized void close() {
}
}
|
[
"steve@weblite.ca"
] |
steve@weblite.ca
|
1715deb1e086ffa0f50e5fa1b9b6e3890424c0ff
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/7/7_03becdd52c843da3b1c9309434a51f11b20471a7/Location/7_03becdd52c843da3b1c9309434a51f11b20471a7_Location_s.java
|
b35046807f4b1bb13acb1ec9ba08ddc3f74bfdd9
|
[] |
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
| 159
|
java
|
package edu.rit.edu.sse.rapdevx.api.dataclasses;
/**
* POJO representing an x,y location.
*
* @author Ben Nicholas
*/
public class Location {
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8d9946cec2a9de58c028c2ab4f2bcbab10512d86
|
1851d5e827b3941ad92aba68d45a7f009da53a48
|
/ax-boot-admin/src/test/java/com/chequer/axboot/admin/domain/log/ErrorLogServiceTest.java
|
d96852f7a34a62f082ebab004e22f1e1afa2a310
|
[
"MIT"
] |
permissive
|
neoguru/axboot-emp-dept
|
1d6f6651050968d99f9975c58fe59641846967b0
|
c3bac4e8bdfc0e3473808804b720b4fbd073e392
|
refs/heads/master
| 2020-04-26T02:45:26.745480
| 2019-03-03T06:32:49
| 2019-03-03T06:32:49
| 173,244,389
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 556
|
java
|
package com.chequer.axboot.admin.domain.log;
import com.chequer.axboot.admin.AXBootApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.inject.Inject;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = AXBootApplication.class)
public class ErrorLogServiceTest {
@Inject
private ErrorLogService errorLogService;
@Test
public void test() {
errorLogService.findAll();
}
}
|
[
"dlstj3039@gmail.com"
] |
dlstj3039@gmail.com
|
131490812c46c8777a91eff26d05f809084697e3
|
7200bf3418dc1ea12d27b12589a39c4844d6474a
|
/consul-ribbon-service/src/main/java/com/springcloud/consulribbonservice/ConsulRibbonServiceApplication.java
|
d65f961a2d0ced18f52d83ab7bf86f5c4fad069c
|
[] |
no_license
|
sx19990201/SpringCloudDemo
|
b001e03b9b04c1913285b1486189bef799827026
|
7c3f7b2ea634d2aeef21b5fef8cc9b815c9498d6
|
refs/heads/master
| 2022-11-24T04:23:10.144303
| 2020-08-03T10:03:58
| 2020-08-03T10:03:58
| 284,659,663
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 742
|
java
|
package com.springcloud.consulribbonservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
@SpringBootApplication
@EnableDiscoveryClient
public class ConsulRibbonServiceApplication {
public static void main(String[] args) {
SpringApplication.run(ConsulRibbonServiceApplication.class, args);
}
@Bean
@LoadBalanced
public RestTemplate restTemplate(){
return new RestTemplate();
}
}
|
[
"root"
] |
root
|
8a73183e4a5d197796798305ffd1c17b341fe86a
|
3f169749adceb8a84803c561467e391ef381d7d0
|
/workspace/mail/src/model/visitor/UserExceptionVisitor.java
|
759b2e1f1bd2209d9e431b92e3331c4d5143791f
|
[] |
no_license
|
Cryzas/FHDW2
|
969619012ad05f455d04dce0f3413f53cedd9351
|
8bc31d4072cc9ed7ddf86154cdf08f0f9a55454b
|
refs/heads/master
| 2021-01-23T05:25:00.249669
| 2017-10-11T06:24:17
| 2017-10-11T06:24:17
| 86,296,546
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 324
|
java
|
package model.visitor;
import persistence.*;
public interface UserExceptionVisitor {
public void handleCycleException(model.CycleException cycleException) throws PersistenceException;
public void handleRestrictionException(model.RestrictionException restrictionException) throws PersistenceException;
}
|
[
"jensburczyk96@gmail.com"
] |
jensburczyk96@gmail.com
|
1ee9a5c422428d5101ac431826dd7d218facc166
|
f7751ff5cdf22fb0df1d97065382b473f58da1a0
|
/Code4/ISADemo.java
|
76bdec4dc15807dd1e7b8dce3ab56ab75f4de311
|
[] |
no_license
|
amitsrivastava4all/javabatchdec12to2
|
eb28e203683d5b6952ba9755e83b301ebc4e2b06
|
c264fb2be76f1cdc7e33031c48d564d75628ee32
|
refs/heads/master
| 2021-09-24T04:49:56.361450
| 2018-02-07T11:57:47
| 2018-02-07T11:57:47
| 115,182,668
| 1
| 1
| null | 2018-10-03T11:55:07
| 2017-12-23T08:38:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,959
|
java
|
class Account{
int id;
String name;
double balance;
void deposit(){
System.out.println("Show Pan Card >50K Transaction");
}
void roi() {
System.out.println("2% Generic...");
}
}
class SavingAccount extends Account{
// Save
void withDraw() {
System.out.println("50K Per Day Limit...");
}
@Override
void roi() {
super.roi();
System.out.println("ROI is 4% Rec...");
}
}
class CurrentAccount extends Account{
void withDraw() {
System.out.println("No Limit...");
}
void odLimit() {
System.out.println("OverDraft ...");
}
@Override
void roi() {
super.roi();
System.out.println("ROI MUST BE PAY 6%");
}
}
class AccountCaller{
void caller(Account ac) {
ac.deposit();
ac.roi();
//ac.withDraw();
//ac.odLimit();
System.out.println("*********************");
if(ac instanceof SavingAccount) {
/*SavingAccount sa = (SavingAccount) ac; //Downcasting
sa.withDraw();
sa.roi();*/
((SavingAccount)ac).withDraw();
// ((SavingAccount)ac).roi();
}
else
if(ac instanceof CurrentAccount) {
CurrentAccount ca = (CurrentAccount) ac; //Downcasting
ca.withDraw();
// ca.roi();
ca.odLimit();
}
}
}
public class ISADemo {
public static void main(String[] args) {
AccountCaller accountCaller = new AccountCaller();
accountCaller.caller(new SavingAccount()); //Upcasting
accountCaller.caller(new CurrentAccount());
//SavingAccount sa = new Account();
/*Account ac = new SavingAccount(); //Upcasting
* ac = new CurrentAccount();
ac.roi();
ac.deposit();
*/
//ac.withDraw();
//int x = 100.20;
//SavingAccount sa = new SavingAccount();
// Type refVar = new Type();
// TODO Auto-generated method stub
/*SavingAccount sa = new SavingAccount();
sa.withDraw();
sa.deposit();
sa.roi();
System.out.println("******************************");
CurrentAccount ca = new CurrentAccount();
ca.withDraw();
ca.deposit();
ca.roi();
ca.odLimit();
*/
}
}
|
[
"amit4alljava@gmail.com"
] |
amit4alljava@gmail.com
|
0cc89db34ab8db8f47c297180809f942e483a7e7
|
7dc220d05d421a57ef412c410384cfcc5af2b371
|
/src/ValueTypesSample/ComponentOneSourceNode.java
|
f1a15907d8f9d1905d38e711ed7d741856fcb215
|
[] |
no_license
|
Javonet-io-user/97c41bba-85dc-42fe-89a2-ef8b4bd39eaf
|
ac593e671523c8c21ddd895222f9aa5d522c7a69
|
8a35eba5b91059d84925381490e46fa03f9597bb
|
refs/heads/master
| 2020-04-26T18:23:02.907775
| 2019-03-04T12:45:42
| 2019-03-04T12:45:42
| 173,743,346
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,502
|
java
|
package ValueTypesSample;
import Common.Activation;
import static Common.JavonetHelper.Convert;
import static Common.JavonetHelper.getGetObjectName;
import static Common.JavonetHelper.getReturnObjectName;
import static Common.JavonetHelper.ConvertToConcreteInterfaceImplementation;
import Common.JavonetHelper;
import com.javonet.Javonet;
import com.javonet.JavonetException;
import com.javonet.JavonetFramework;
import com.javonet.api.NObject;
import com.javonet.api.NEnum;
import com.javonet.api.keywords.NRef;
import com.javonet.api.keywords.NOut;
import com.javonet.api.NControlContainer;
import java.util.concurrent.atomic.AtomicReference;
import java.util.Iterator;
import java.lang.*;
import ValueTypesSample.*;
public class ComponentOneSourceNode extends ModuleOneSourceNode {
public NObject javonetHandle;
public ComponentOneSourceNode() {
super((NObject) null);
try {
javonetHandle = Javonet.New("ValueTypesSample.ComponentOneSourceNode");
super.setJavonetHandle(javonetHandle);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
public ComponentOneSourceNode(NObject handle) {
super(handle);
this.javonetHandle = handle;
}
public void setJavonetHandle(NObject handle) {
this.javonetHandle = handle;
}
static {
try {
Activation.initializeJavonet();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
}
|
[
"support@javonet.com"
] |
support@javonet.com
|
20ad8bf50032fe3abb4ff24fcf93f253dfcf35c1
|
16bfe4d91fa6d8c7cd1dce4db0d409e9c3ddc2af
|
/raj/leetcode/google/FindMissingPositive.java
|
8064c7698cdbb76abf8229ce216d7d457b908304
|
[] |
no_license
|
passionatecoderraj/dsa
|
84eb03b524efeb81012c91491fc3dce9aa65aa7a
|
b8a9654fed1183e464915fb4b8481ae10fe266d6
|
refs/heads/master
| 2020-05-21T12:24:38.812925
| 2020-01-21T04:29:58
| 2020-01-21T04:29:58
| 48,559,484
| 8
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,706
|
java
|
/**
*
*/
package com.raj.leetcode.google;
/**
* @author Raj
*
* Given an unsorted integer array, find the first missing positive
* integer.
*
* For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.
*
* Your algorithm should run in O(n) time and uses constant space.
*/
public class FindMissingPositive {
// https://leetcode.com/problems/first-missing-positive/discuss/17083/O(1)-space-Java-Solution
// Time : O(n)
public int findSmallestMissingPositiveNumber(int[] a) {
int i = 0;
while (i < a.length) {
if (a[i] == i + 1 || a[i] <= 0 || a[i] > a.length)
i++;
else if (a[i] != a[a[i] - 1]) {
swap(a, i, a[i] - 1);
} else
i++;
}
i = 0;
while (i < a.length) {
if (a[i] != i + 1)
return i + 1;
i++;
}
return i + 1;
}
public static void swap(int a[], int i, int j) {
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}
// Time : O(n)
public int findSmallestMissingPositiveNumber2(int[] a) {
int l = 0;
for (int i = 0; i < a.length; i++) {
if (a[i] > 0) {
a[l++] = a[i];
}
}
int index;
for (int i = 0; i < l; i++) {
index = Math.abs(a[i]) - 1;
if (index < l && a[index] > 0) {
a[index] = -a[index];
}
}
for (int i = 0; i < l; i++) {
if (a[i] > 0) {
return i + 1;
}
}
return l + 1;
}
public static void main(String[] args) {
FindMissingPositive obj = new FindMissingPositive();
int a[] = { 2, 3, -7, 6, 8, 1, -10, 15 };
int result = -1;
result = obj.findSmallestMissingPositiveNumber(a);
System.out.println(result);
int b[] = { 1, 2, 3 };
result = obj.findSmallestMissingPositiveNumber(b);
System.out.println(result);
}
}
|
[
"passionatecoderraj@gmail.com"
] |
passionatecoderraj@gmail.com
|
fc05af3f536f595dd4b56dd101ad35b44f6ec1cc
|
64a2c72c70dc2615ff8ef809c40041fc960fe811
|
/serv/app/app.conf/src/main/java/at/kc/tugraz/sss/app/conf/SSAppConf.java
|
473036166825b4733f01e84f3e7a7c8ee8b1b6f9
|
[
"Apache-2.0"
] |
permissive
|
xingzhixi/SocialSemanticServer
|
4a588492a83768c86a5e102388703e8dd01684d2
|
478c9b4e2907c3848dc23a3bc216d8dbac082a01
|
refs/heads/master
| 2021-01-16T18:54:04.013089
| 2015-03-16T11:41:36
| 2015-03-16T11:41:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,243
|
java
|
/**
* Code contributed to the Learning Layers project
* http://www.learning-layers.eu
* Development is partly funded by the FP7 Programme of the European Commission under
* Grant Agreement FP7-ICT-318209.
* Copyright (c) 2014, Graz University of Technology - KTI (Knowledge Technologies Institute).
* For a list of contributors see the AUTHORS file at the top-level directory of this distribution.
*
* 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 at.kc.tugraz.sss.app.conf;
import at.kc.tugraz.ss.serv.serv.api.SSServConfA;
public class SSAppConf extends SSServConfA{
public static SSAppConf copy(final SSAppConf orig){
final SSAppConf copy = (SSAppConf) SSServConfA.copy(orig, new SSAppConf());
return copy;
}
}
|
[
"dtheiler@tugraz.at"
] |
dtheiler@tugraz.at
|
b4cf5628b527ccbfe00186ada624d9d6a7cdc17c
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/Honor5C-7.0/src/main/java/java/util/zip/CRC32.java
|
dfd9498b7a7bd9721f2b5d2b0392a7332572a79a
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 878
|
java
|
package java.util.zip;
public class CRC32 implements Checksum {
private int crc;
private static native int update(int i, int i2);
private static native int updateBytes(int i, byte[] bArr, int i2, int i3);
public void update(int b) {
this.crc = update(this.crc, b);
}
public void update(byte[] b, int off, int len) {
if (b == null) {
throw new NullPointerException();
} else if (off < 0 || len < 0 || off > b.length - len) {
throw new ArrayIndexOutOfBoundsException();
} else {
this.crc = updateBytes(this.crc, b, off, len);
}
}
public void update(byte[] b) {
this.crc = updateBytes(this.crc, b, 0, b.length);
}
public void reset() {
this.crc = 0;
}
public long getValue() {
return ((long) this.crc) & 4294967295L;
}
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
8fdf56da167fb36d63bebd26d23b560038dbb1ec
|
96d71f73821cfbf3653f148d8a261eceedeac882
|
/external/decompiled/android/WhatsApp-2.8.4278_dex2jar.src.meta/com/whatsapp/o3.java
|
c419d8d2efa1b9ce02d9b24d4119283d0aa9e7ef
|
[] |
no_license
|
JaapSuter/Niets
|
9a9ec53f448df9b866a8c15162a5690b6bcca818
|
3cc42f8c2cefd9c3193711cbf15b5304566e08cb
|
refs/heads/master
| 2020-04-09T19:09:40.667155
| 2012-09-28T18:11:33
| 2012-09-28T18:11:33
| 5,751,595
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
package com.whatsapp;
import android.content.Intent;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceClickListener;
class o3
implements Preference.OnPreferenceClickListener
{
final Settings a;
o3(Settings paramSettings)
{
}
public boolean onPreferenceClick(Preference paramPreference)
{
this.a.startActivity(new Intent(this.a, BlockList.class));
return true;
}
}
/* Location: C:\Users\Jaap\Downloads\Code\WhatsApp-2.8.4278_dex2jar.jar
* Qualified Name: com.whatsapp.o3
* JD-Core Version: 0.6.1
*/
|
[
"git@jaapsuter.com"
] |
git@jaapsuter.com
|
1e3020ad88d75c7908f825e4898f5bfe0a0f1bb7
|
55bf3cf97644af0bcbec091532fe83c99ba592f6
|
/org/w3c/css/properties/css2/CssTextDecoration.java
|
6cd8955f093d3b5cb3b78d1a5f5a3ab891c6c054
|
[
"W3C-20150513",
"W3C"
] |
permissive
|
w3c/css-validator
|
dda4f191ff839b392440d91f9012ba2d2d63d0c6
|
6874d1990af57d3260fdc2a9420b09077cf2ed06
|
refs/heads/main
| 2023-09-03T12:40:19.427371
| 2023-03-13T13:59:56
| 2023-03-13T13:59:56
| 40,552,697
| 223
| 124
|
NOASSERTION
| 2023-09-13T17:38:37
| 2015-08-11T16:28:14
|
Java
|
UTF-8
|
Java
| false
| false
| 4,983
|
java
|
// $Id$
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css2;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;
import org.w3c.css.values.CssIdent;
import org.w3c.css.values.CssOperator;
import org.w3c.css.values.CssTypes;
import org.w3c.css.values.CssValue;
import org.w3c.css.values.CssValueList;
import java.util.ArrayList;
/**
* @spec http://www.w3.org/TR/2008/REC-CSS2-20080411/text.html#propdef-text-decoration
*/
public class CssTextDecoration extends org.w3c.css.properties.css.CssTextDecoration {
public static final CssIdent underline, overline, line_through, blink;
static {
underline = CssIdent.getIdent("underline");
overline = CssIdent.getIdent("overline");
line_through = CssIdent.getIdent("line-through");
blink = CssIdent.getIdent("blink");
}
/**
* Create a new CssTextDecoration
*/
public CssTextDecoration() {
}
/**
* Creates a new CssTextDecoration
*
* @param expression The expression for this property
* @throws org.w3c.css.util.InvalidParamException
* Expressions are incorrect
*/
public CssTextDecoration(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
if (check && expression.getCount() > 4) {
throw new InvalidParamException("unrecognize", ac);
}
setByUser();
CssValue val;
char op;
CssIdent undValue = null;
CssIdent oveValue = null;
CssIdent linValue = null;
CssIdent bliValue = null;
val = expression.getValue();
op = expression.getOperator();
if (val.getType() != CssTypes.CSS_IDENT) {
throw new InvalidParamException("value",
val.toString(),
getPropertyName(), ac);
}
CssIdent ident = (CssIdent) val;
if (inherit.equals(ident)) {
value = inherit;
if (check && expression.getCount() != 1) {
throw new InvalidParamException("value",
val.toString(),
getPropertyName(), ac);
}
} else if (none.equals(ident)) {
value = none;
if (check && expression.getCount() != 1) {
throw new InvalidParamException("value",
val.toString(),
getPropertyName(), ac);
}
} else {
int nbgot = 0;
do {
if (undValue == null && underline.equals(ident)) {
undValue = underline;
} else if (oveValue == null && overline.equals(ident)) {
oveValue = overline;
} else if (linValue == null && line_through.equals(ident)) {
linValue = line_through;
} else if (bliValue == null && blink.equals(ident)) {
bliValue = blink;
} else {
throw new InvalidParamException("value",
val.toString(),
getPropertyName(), ac);
}
nbgot++;
if (expression.getRemainingCount() == 1 || (!check && nbgot == 4)) {
// if we have both, exit
// (needed only if check == false...
break;
}
if (op != CssOperator.SPACE) {
throw new InvalidParamException("operator",
Character.toString(op), ac);
}
expression.next();
val = expression.getValue();
op = expression.getOperator();
if (val.getType() != CssTypes.CSS_IDENT) {
throw new InvalidParamException("value",
val.toString(),
getPropertyName(), ac);
}
ident = (CssIdent) val;
} while (!expression.end());
// now construct the value
ArrayList<CssValue> v = new ArrayList<CssValue>(nbgot);
if (undValue != null) {
v.add(undValue);
}
if (oveValue != null) {
v.add(oveValue);
}
if (linValue != null) {
v.add(linValue);
}
if (bliValue != null) {
v.add(bliValue);
}
value = (nbgot > 1) ? new CssValueList(v) : v.get(0);
}
expression.next();
}
public CssTextDecoration(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}
}
|
[
"ylafon@w3.org"
] |
ylafon@w3.org
|
d4b901c7327643bcfd3bfaf8877bc05f6466af11
|
0ba1d99f81705d3cd6ae34a957e13cb7bb14c190
|
/spring-boot-grpc-server/src/test/java/com/learn/grpc/SpringBootGrpcServerApplicationTests.java
|
50fbb9728cc862d9e0f285c4e1c11e54ab7269bb
|
[] |
no_license
|
ICEMARK123/springcloud-grpc
|
dbb9d4b309bd6e26163568f8941b19975c31e05e
|
5d61d600eecfc0d69a058948ba48b21c7b7719b3
|
refs/heads/master
| 2021-07-17T11:52:56.030502
| 2017-10-23T08:15:06
| 2017-10-23T08:15:06
| 263,253,929
| 1
| 0
| null | 2020-05-12T06:35:59
| 2020-05-12T06:35:58
| null |
UTF-8
|
Java
| false
| false
| 345
|
java
|
package com.learn.grpc;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringBootGrpcServerApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"admin@example.com"
] |
admin@example.com
|
fd765d8e162c2bc3a7c7be7a9ff65bc8edc2ba7d
|
9ebe6eb4c4f0f59da812a7911ffffe43dab90887
|
/Common/src/test/java/org/voovan/test/tools/ioc/ContainerUnit.java
|
ddb5ea7c60c3e2fbe18b4be0b19a83a8ac09d00c
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
helyho/Voovan
|
b928d4d2632bb331d5ad323c96903573ff31ffb9
|
529b2105e62240845a15e09d5d78900dd58ef241
|
refs/heads/master
| 2023-08-18T20:06:13.602028
| 2023-08-11T05:32:30
| 2023-08-11T05:32:30
| 34,836,584
| 294
| 99
|
Apache-2.0
| 2023-04-09T13:31:34
| 2015-04-30T05:47:26
|
Java
|
UTF-8
|
Java
| false
| false
| 2,945
|
java
|
package org.voovan.test.tools.ioc;
import junit.framework.TestCase;
import org.voovan.tools.ioc.Config;
import org.voovan.tools.ioc.Container;
import org.voovan.tools.ioc.annotation.Value;
import org.voovan.tools.reflect.TReflect;
/**
* Class name
*
* @author helyho
* voovan Framework.
* WebSite: https://github.com/helyho/voovan
* Licence: Apache v2 License
*/
public class ContainerUnit extends TestCase {
public void testAll() throws ReflectiveOperationException {
Container container = new Container("defalut");
//========test========
System.out.println(container.getByAnchor("Filters[0].Name", ""));
System.out.println("============================");
container.addBeanValue("abcd", 123123);
System.out.println(container.getByAnchor("abcd", 123));
System.out.println("============================");
container.getDefinitions().addBeanDefinition("config", Config.class, true, false, false);
Config c = container.getByAnchor("co", null);
System.out.println("Value: " + c);
System.out.println("============================");
container.getDefinitions().addBeanDefinition("parent", Config.class, true, false, false);
container.getDefinitions().addMethodDefinition("tttt1", "parent", TReflect.findMethod(Config.class, "getConfig"), false, false, false);
System.out.println("method1 PathValue: " + container.getByAnchor("tttt1.ServerName", null));
System.out.println("============================");
//静态方法测试
container.getDefinitions().addMethodDefinition("tttt2", null, TReflect.findMethod(ContainerUnit.class, "test1", 1)[0], false, false, false);
System.out.println("static method2 PathValue: " + container.getByAnchor("tttt2.name", null));
System.out.println("============================");
container.getDefinitions().addMethodDefinition("tttt3", null, TReflect.findMethod(ContainerUnit.class, "test2"), false, false, false);
System.out.println("static method3 PathValue: " + container.getByAnchor("tttt3", null));
System.out.println("============================");
container.getDefinitions().addMethodDefinition("tttt4", null, TReflect.findMethod(ContainerUnit.class, "test2"), true, false, false);
System.out.println("static method4 singleton PathValue: " + container.getByAnchor("tttt4", null));
System.out.println("static method4 singleton PathValue: " + container.getByAnchor("tttt4", null));
System.out.println("static method4 singleton PathValue: " + container.getByAnchor("tttt4", null));
System.out.println("static method4 singleton PathValue: " + container.getByAnchor("tttt4", null));
}
public static Config test1(@Value("config1") Config config){
return config;
}
static int i=0;
public static String test2(){
return "aaaa " + ++i;
}
}
|
[
"helyho@gmail.com"
] |
helyho@gmail.com
|
2271f685fbde409ef47e910289603e7d5efaef2d
|
1413e9392224af82d8d889986730a99e4f2e815d
|
/app/src/main/java/net/ajcloud/wansviewplus/support/core/callback/JsonCallback.java
|
28f0e739e3ae32ba40b8396272750edf61557e59
|
[] |
no_license
|
skytylon/WansViewPlus
|
76ae6bf50447d0d214bd69d41b06a1970e0ee345
|
7a08400eb94d6f1e7a05207ac9c7365224dd9921
|
refs/heads/master
| 2022-04-24T16:13:04.222394
| 2018-07-21T06:06:52
| 2018-07-21T06:06:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,297
|
java
|
package net.ajcloud.wansviewplus.support.core.callback;
import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import net.ajcloud.wansviewplus.support.core.bean.ResponseBean;
import net.ajcloud.wansviewplus.support.core.bean.ResponseErrorBean;
import net.ajcloud.wansviewplus.support.core.okgo.callback.AbsCallback;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import okhttp3.ResponseBody;
/**
* Created by mamengchao on 2018/05/21.
*/
public abstract class JsonCallback<T> extends AbsCallback<T> {
@Override
public T convertResponse(okhttp3.Response response) throws Throwable {
Type genType = getClass().getGenericSuperclass();
Type[] params = ((ParameterizedType) genType).getActualTypeArguments();
Type type = params[0];
if (!(type instanceof ParameterizedType)) throw new IllegalStateException("没有填写泛型参数");
//第二层数据类型
Type rawType = ((ParameterizedType) type).getRawType();
//第二层数据的泛型类型
Type typeArgument = ((ParameterizedType) type).getActualTypeArguments()[0];
ResponseBody body = response.body();
if (body == null) {
return null;
}
Gson gson = new Gson();
JsonReader jsonReader = new JsonReader(body.charStream());
if (response.code() == 200) {
if (typeArgument == Object.class) {
ResponseBean bean = gson.fromJson(jsonReader, type);
response.close();
return (T) bean;
} else if (rawType == ResponseBean.class) {
ResponseBean bean = gson.fromJson(jsonReader, type);
response.close();
return (T) bean;
} else {
response.close();
throw new IllegalStateException("基类错误无法解析!");
}
} else {
ResponseErrorBean errorBean = gson.fromJson(jsonReader, ResponseErrorBean.class);
ResponseBean bean = new ResponseBean();
bean.code = String.valueOf(errorBean.statusCode);
bean.status = "error";
bean.message = errorBean.message;
response.close();
return (T) bean;
}
}
}
|
[
"mmc5634@outlook.com"
] |
mmc5634@outlook.com
|
6b764046434b6274e305b794871a6755fbfbc91b
|
4d15c062fe8ed68214bc3ad57f7befea762edf54
|
/backend/src/test/java/org/smartdeveloperhub/harvesters/scm/backend/pojos/CommitsTest.java
|
185c9b1dd84209350b22c96ae0212e159f32ccf6
|
[
"Apache-2.0"
] |
permissive
|
SmartDeveloperHub/sdh-scm-harvester
|
9ec679460980cebdf43de14dfcc63103192bf8c0
|
3a90d57c925b654d02011c2a185aca944a3184ca
|
refs/heads/master
| 2023-04-26T00:28:23.840272
| 2016-07-17T17:21:33
| 2016-07-17T17:21:33
| 35,939,935
| 0
| 1
|
Apache-2.0
| 2020-02-11T15:57:51
| 2015-05-20T09:52:59
|
Java
|
UTF-8
|
Java
| false
| false
| 1,832
|
java
|
/**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the Smart Developer Hub Project:
* http://www.smartdeveloperhub.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* Copyright (C) 2015-2016 Center for Open Middleware.
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* 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.
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* Artifact : org.smartdeveloperhub.harvesters.scm:scm-harvester-backend:0.3.0
* Bundle : scm-harvester-backend-0.3.0.jar
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
*/
package org.smartdeveloperhub.harvesters.scm.backend.pojos;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import org.junit.Test;
import org.ldp4j.commons.testing.Utils;
public class CommitsTest {
@Test
public void verifyHasCustomString() {
final Commits object = Fixture.defaultCommits();
assertThat(object.toString(),not(equalTo(Utils.defaultToString(object))));
}
}
|
[
"m.esteban.gutierrez@gmail.com"
] |
m.esteban.gutierrez@gmail.com
|
fb854a4bb92ef4fa724fe4f79b27096d244e8509
|
2f5cd5ba8a78edcddf99c7e3c9c19829f9dbd214
|
/java/playgrounds/dgrether/src/main/java/playground/dgrether/signalsystems/utils/DgSignalPlanChart.java
|
405910f7140abc488c8eeab3a72a41f16d0fbf80
|
[] |
no_license
|
HTplex/Storage
|
5ff1f23dfe8c05a0a8fe5354bb6bbc57cfcd5789
|
e94faac57b42d6f39c311f84bd4ccb32c52c2d30
|
refs/heads/master
| 2021-01-10T17:43:20.686441
| 2016-04-05T08:56:57
| 2016-04-05T08:56:57
| 55,478,274
| 1
| 1
| null | 2020-10-28T20:35:29
| 2016-04-05T07:43:17
|
Java
|
UTF-8
|
Java
| false
| false
| 5,847
|
java
|
/* *********************************************************************** *
* project: org.matsim.*
* DaSignalPlanChart
* *
* *********************************************************************** *
* *
* copyright : (C) 2011 by the members listed in the COPYING, *
* LICENSE and WARRANTY file. *
* email : info at matsim dot org *
* *
* *********************************************************************** *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* See also COPYING, LICENSE and WARRANTY file *
* *
* *********************************************************************** */
package playground.dgrether.signalsystems.utils;
import java.awt.Color;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.SortedSet;
import org.apache.log4j.Logger;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.AxisLocation;
import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.renderer.category.BarRenderer;
import org.jfree.data.category.DefaultCategoryDataset;
import org.matsim.api.core.v01.Id;
import org.matsim.contrib.signals.events.SignalGroupStateChangedEvent;
import org.matsim.core.mobsim.qsim.qnetsimengine.SignalGroupState;
import playground.dgrether.analysis.charts.DgDefaultAxisBuilder;
/**
* @author dgrether
*
*/
public class DgSignalPlanChart {
private static final Logger log = Logger.getLogger(DgSignalPlanChart.class);
private DefaultCategoryDataset dataset;
private JFreeChart jChart;
private Map<Integer, Color> seriesColor = new HashMap<Integer, Color>();
private double tMin;
private double tMax;
public DgSignalPlanChart(double tMinSec, double tMaxSec) {
this.tMin = tMinSec;
this.tMax = tMaxSec;
}
public void addData(SortedSet<SignalGroupStateChangedEvent> systemEvents) {
this.dataset = new DefaultCategoryDataset();
Integer i = 0;
Map<Id, SignalGroupStateChangedEvent> id2lastStateChangeEventMap = new HashMap<Id, SignalGroupStateChangedEvent>();
for (SignalGroupStateChangedEvent e : systemEvents) {
if (e.getTime() < this.tMin){
continue;
}
else if (e.getTime() > this.tMax){
break;
}
else {
SignalGroupStateChangedEvent lastStateChange = id2lastStateChangeEventMap.get(e.getSignalGroupId());
if (lastStateChange == null){
//process initial state
this.dataset.addValue(e.getTime(), i, e.getSignalGroupId());
log.info("added value: " + e.getTime() + " group id " + e.getSignalGroupId() + " row key: " + i);
setSeriesColor(i, null);
}
else {
//process state
double duration = e.getTime() - lastStateChange.getTime();
this.dataset.addValue(duration, i, lastStateChange.getSignalGroupId());
log.info("added value: " + duration + " group id " + lastStateChange.getSignalGroupId() + " row key: " + i);
this.setSeriesColor(i, lastStateChange.getNewState());
}
i++;
id2lastStateChangeEventMap.put(e.getSignalGroupId(), e);
}
}
}
private void setSeriesColor(Integer i, SignalGroupState state) {
if (state == null){
seriesColor.put(i, new Color(200, 200, 200, 255));
}
else if (state.equals(SignalGroupState.RED)) {
seriesColor.put(i, new Color(163, 0, 0, 255));
}
else if (state.equals(SignalGroupState.GREEN)) {
seriesColor.put(i, new Color(0, 102, 0, 255));
}
else if (state.equals(SignalGroupState.YELLOW)) {
seriesColor.put(i, new Color(255, 204, 0, 255));
}
else if (state.equals(SignalGroupState.REDYELLOW)) {
seriesColor.put(i, new Color(255, 102, 0, 255));
}
}
public JFreeChart createSignalPlanChart(String title, String xAxisTitle, String yAxisTitle) {
JFreeChart chart = ChartFactory.createStackedBarChart(title, xAxisTitle, yAxisTitle, this.dataset,
PlotOrientation.HORIZONTAL, false, false, false);
DgDefaultAxisBuilder axis = new DgDefaultAxisBuilder();
CategoryPlot plot = chart.getCategoryPlot();
plot.setBackgroundPaint(Color.white);
plot.setDomainGridlinePaint(Color.lightGray);
plot.setRangeGridlinePaint(Color.black);
plot.setRangeAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
CategoryAxis xAxis = axis.createCategoryAxis(xAxisTitle);
plot.setDomainAxis(xAxis);
ValueAxis yAxis = axis.createValueAxis(yAxisTitle);
yAxis.setUpperBound(this.tMax);
yAxis.setLowerBound(this.tMin);
plot.setRangeAxis(yAxis);
final BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.findRangeBounds(dataset);
renderer.setShadowVisible(false);
// renderer.setItemMargin(10.005);
renderer.setMaximumBarWidth(0.2);
for (Entry<Integer, Color> ee : seriesColor.entrySet()) {
renderer.setSeriesPaint(ee.getKey(), ee.getValue());
// renderer.setSeriesStroke(ee.getKey(), new BasicStroke(50));
}
plot.setRenderer(renderer);
// chart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, plot, true);
// chart.setBackgroundPaint(ChartColor.WHITE);
// chart.removeLegend();
return chart;
}
}
|
[
"htplex@gmail.com"
] |
htplex@gmail.com
|
dc898da73236e9726108e757e1ad939b6e64ee5c
|
a1de9cd2a3dee055e8baaf58515fbbb0b78776e3
|
/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/principal/WsFederationCredentialsToPrincipalResolver.java
|
35dfa9098fa3f5ebf3d9b6cc75be8393119f30f9
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
bhubert/cas
|
21927acf9a5dd0123314002b7bce78c444bd2823
|
9d417ab06bd0e6c1e0a93c1d0783fb94e0f0e5a9
|
refs/heads/master
| 2023-03-05T09:40:22.302417
| 2021-02-22T18:08:49
| 2021-02-22T18:08:49
| 259,693,459
| 1
| 0
|
Apache-2.0
| 2020-04-28T16:33:37
| 2020-04-28T16:33:36
| null |
UTF-8
|
Java
| false
| false
| 4,257
|
java
|
package org.apereo.cas.support.wsfederation.authentication.principal;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.principal.Principal;
import org.apereo.cas.authentication.principal.resolvers.PersonDirectoryPrincipalResolver;
import org.apereo.cas.authentication.principal.resolvers.PrincipalResolutionContext;
import org.apereo.cas.support.wsfederation.WsFederationConfiguration;
import org.apereo.cas.util.CollectionUtils;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* This class resolves the principal id regarding the WsFederation credentials.
*
* @author John Gasper
* @since 4.2.0
*/
@Slf4j
@ToString(callSuper = true)
public class WsFederationCredentialsToPrincipalResolver extends PersonDirectoryPrincipalResolver {
private final WsFederationConfiguration configuration;
public WsFederationCredentialsToPrincipalResolver(final PrincipalResolutionContext context,
final WsFederationConfiguration configuration) {
super(context);
this.configuration = configuration;
}
/**
* Extracts the principalId.
*
* @param credentials the credentials
* @return the principal id
*/
@Override
protected String extractPrincipalId(final Credential credentials, final Optional<Principal> currentPrincipal) {
val wsFedCredentials = (WsFederationCredential) credentials;
val attributes = wsFedCredentials.getAttributes();
LOGGER.debug("Credential attributes provided are: [{}]", attributes);
val idAttribute = this.configuration.getIdentityAttribute();
if (attributes.containsKey(idAttribute)) {
LOGGER.debug("Extracting principal id from attribute [{}]", this.configuration.getIdentityAttribute());
val idAttributeAsList = CollectionUtils.toCollection(attributes.get(this.configuration.getIdentityAttribute()));
if (idAttributeAsList.size() > 1) {
LOGGER.warn("Found multiple values for id attribute [{}].", idAttribute);
} else {
LOGGER.debug("Found principal id attribute as [{}]", idAttributeAsList);
}
val result = CollectionUtils.firstElement(idAttributeAsList);
if (result.isPresent()) {
val principalId = result.get().toString();
LOGGER.debug("Principal Id extracted from credentials: [{}]", principalId);
return principalId;
}
}
LOGGER.warn("Credential attributes do not include an attribute for [{}]. "
+ "This will prohibit CAS to construct a meaningful authenticated principal. "
+ "Examine the released claims and ensure [{}] is allowed", idAttribute, idAttribute);
return null;
}
@Override
protected Map<String, List<Object>> retrievePersonAttributes(final String principalId, final Credential credential,
final Optional<Principal> currentPrincipal,
final Map<String, List<Object>> queryAttributes) {
val wsFedCredentials = (WsFederationCredential) credential;
if (this.configuration.getAttributesType() == WsFederationConfiguration.WsFedPrincipalResolutionAttributesType.WSFED) {
return wsFedCredentials.getAttributes();
}
if (this.configuration.getAttributesType() == WsFederationConfiguration.WsFedPrincipalResolutionAttributesType.CAS) {
return super.retrievePersonAttributes(principalId, credential, currentPrincipal, new HashMap<>());
}
val mergedAttributes = new HashMap<>(wsFedCredentials.getAttributes());
mergedAttributes.putAll(super.retrievePersonAttributes(principalId, credential, currentPrincipal, new HashMap<>()));
return mergedAttributes;
}
@Override
public boolean supports(final Credential credential) {
return credential != null && WsFederationCredential.class.isAssignableFrom(credential.getClass());
}
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
d5b3dd4c1ac8916eac71edfae60d3d687204737c
|
5c2be9dc311a6ee7964efb10bfaac0c626b2bb8c
|
/sfm-reflect/src/main/java/org/simpleflatmapper/reflect/impl/InjectStaticMethodBiInstantiator.java
|
c9fc79f872a5dcc458bf646ecc6870368f2801b6
|
[
"MIT"
] |
permissive
|
hank-cp/SimpleFlatMapper
|
e205eaa4cea885c894cee40080cd41291e32f952
|
7131e74d5d635f577d602ae4c6f06d807216b1d8
|
refs/heads/master
| 2023-03-04T22:03:21.409617
| 2023-02-23T09:56:16
| 2023-02-23T09:56:16
| 217,269,583
| 0
| 0
|
MIT
| 2019-10-24T10:09:06
| 2019-10-24T10:09:05
| null |
UTF-8
|
Java
| false
| false
| 1,672
|
java
|
package org.simpleflatmapper.reflect.impl;
import org.simpleflatmapper.reflect.BiInstantiator;
import org.simpleflatmapper.reflect.InstantiatorDefinition;
import org.simpleflatmapper.reflect.Parameter;
import org.simpleflatmapper.reflect.instantiator.ExecutableInstantiatorDefinition;
import org.simpleflatmapper.util.BiFunction;
import org.simpleflatmapper.util.ErrorHelper;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
public final class InjectStaticMethodBiInstantiator<S1, S2, T> implements BiInstantiator<S1, S2, T> {
private final Method method;
private final Class<?> declaringClass;
private final BiArgumentBuilder<S1, S2> argBuilder;
private final InstantiatorDefinition instantiatorDefinition;
public InjectStaticMethodBiInstantiator(ExecutableInstantiatorDefinition instantiatorDefinition, Map<Parameter, BiFunction<? super S1, ? super S2, ?>> injections) {
this.argBuilder = new BiArgumentBuilder<S1, S2>(instantiatorDefinition, injections);
this.method = (Method) instantiatorDefinition.getExecutable();
this.declaringClass = method.getDeclaringClass();
this.instantiatorDefinition = instantiatorDefinition;
}
@SuppressWarnings("unchecked")
@Override
public T newInstance(S1 s1, S2 s2) throws Exception {
try {
return (T) method.invoke(declaringClass, argBuilder.build(s1, s2));
} catch(InvocationTargetException e) {
return ErrorHelper.rethrow(e.getCause());
}
}
@Override
public String toString() {
return "InjectStaticMethodBiInstantiator{" +
"instantiatorDefinition=" + instantiatorDefinition +
'}';
}
}
|
[
"arnaud.roger@gmail.com"
] |
arnaud.roger@gmail.com
|
d0e6e023c034bd25e03357ddae463e5678de1286
|
75950d61f2e7517f3fe4c32f0109b203d41466bf
|
/modules/tags/fabric3-modules-parent-pom-0.5/kernel/api/fabric3-spi/src/main/java/org/fabric3/spi/component/InstanceInitializationException.java
|
f5bc9379aba5b4e784bd611d6115f1657e3cda5c
|
[] |
no_license
|
codehaus/fabric3
|
3677d558dca066fb58845db5b0ad73d951acf880
|
491ff9ddaff6cb47cbb4452e4ddbf715314cd340
|
refs/heads/master
| 2023-07-20T00:34:33.992727
| 2012-10-31T16:32:19
| 2012-10-31T16:32:19
| 36,338,853
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,475
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.fabric3.spi.component;
/**
* Denotes an error initializing a component instance.
*
* @version $Rev$ $Date$
*/
public class InstanceInitializationException extends InstanceLifecycleException {
private static final long serialVersionUID = 987684568823134235L;
public InstanceInitializationException(String message, String identifier) {
super(message, identifier);
}
public InstanceInitializationException(String message, String identifier, Throwable cause) {
super(message, identifier, cause);
}
public InstanceInitializationException(String message, Throwable cause) {
super(message, cause);
}
}
|
[
"meerajk@83866bfc-822f-0410-aa35-bd5043b85eaf"
] |
meerajk@83866bfc-822f-0410-aa35-bd5043b85eaf
|
c0baaa85ecaeeaebc9c54fd6a240056a0e31b6f9
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/JetBrains--intellij-community/6044fc7b3f751e15286fb163e69d585783cf2400/after/ReplaceStaticVariableAccess.java
|
41e1178600c804db2b30065e77cbed36862a8e5c
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,340
|
java
|
package com.intellij.refactoring.extractclass;
import com.intellij.psi.PsiReferenceExpression;
import com.intellij.refactoring.psi.MutationUtils;
import com.intellij.refactoring.util.FixableUsageInfo;
import com.intellij.util.IncorrectOperationException;
class ReplaceStaticVariableAccess extends FixableUsageInfo {
private final PsiReferenceExpression expression;
private final String delegateClass;
private final String getterName;
private final boolean isPublic;
ReplaceStaticVariableAccess(PsiReferenceExpression expression,
String delegateClass,
String getterName,
boolean isPublic) {
super(expression);
this.expression = expression;
this.delegateClass = delegateClass;
this.getterName = getterName;
this.isPublic = isPublic;
}
public void fixUsage() throws IncorrectOperationException {
if (isPublic) {
final String newExpression = delegateClass + '.' + expression.getReferenceName();
MutationUtils.replaceExpression(newExpression, expression);
} else {
final String newExpression = delegateClass + '.' + getterName + "()";
MutationUtils.replaceExpression(newExpression, expression);
}
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
5a2f812cd1e9e9ca3e39a4a492f9a7a621c302e2
|
c95c03f659007f347cc02e293faeb339eff85a59
|
/Coverage/Achilles-achilles-6.0.0/achilles-embedded/src/main/java/info/archinnov/achilles/embedded/PortFinder.java
|
6a7eecf5e5341a0ac3c03f880acbf4704e9f4a22
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
dormaayan/TestsReposirotry
|
e2bf6c247d933b278fcc47082afa7282dd916baa
|
75520c8fbbbd5f721f4c216ae7f142ec861e2c67
|
refs/heads/master
| 2020-04-11T21:34:56.287920
| 2019-02-06T13:34:31
| 2019-02-06T13:34:31
| 162,110,352
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,308
|
java
|
/*
* Copyright (C) 2012-2018 DuyHai DOAN
*
* 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 info.archinnov.achilles.embedded;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.ServerSocket;
public class PortFinder {
private static int MAX_TRIES = 100;
public static int randomAvailable() {
return findAvailableBetween(1025, 65534);
}
public static Integer findAvailableBetween(int start, int end) {
int tested = randomBetween(start, end);
for (int i = 0; i < MAX_TRIES; i++) {
if (isAvailable(tested)) {
return tested;
}
tested = randomBetween(start, end);
}
throw new IllegalStateException("no available port found between " + start + " and " + end + " after "
+ MAX_TRIES + "tries");
}
/**
* http://stackoverflow.com/questions/434718/sockets-discover-port-
* availability-using-java
*/
public static boolean isAvailable(int port) {
ServerSocket ss = null;
DatagramSocket ds = null;
try {
ss = new ServerSocket(port);
ss.setReuseAddress(true);
ds = new DatagramSocket(port);
ds.setReuseAddress(true);
return true;
} catch (IOException e) {
} finally {
if (ds != null) {
ds.close();
}
if (ss != null) {
try {
ss.close();
} catch (IOException e) {
/* should not be thrown */
}
}
}
return false;
}
private static int randomBetween(int start, int end) {
return start + (int) (Math.random() * ((end - start) + 1));
}
}
|
[
"dor.d.ma@gmail.com"
] |
dor.d.ma@gmail.com
|
55ac7b6c018ea28ce850cb92573024470cbf0c7e
|
e7ed60bc0ecc8cb89f415abb83dadc95c8da8536
|
/app/src/main/java/com/xuexiang/xuidemo/fragment/expands/calendar/ComplexCalendarFragment.java
|
fa41638efd019b8831a16992b5b15c665f0d2b22
|
[
"Apache-2.0"
] |
permissive
|
LiJianZhuang/XUI
|
bc6ccb254573bc7106d99ce01f7f5f20d42756e5
|
3d67ed0d6497f4123baa794fa43a526e9c16c680
|
refs/heads/master
| 2020-06-29T21:58:10.897683
| 2019-07-14T10:04:36
| 2019-07-14T10:04:36
| 200,635,121
| 1
| 0
|
Apache-2.0
| 2019-08-05T10:35:21
| 2019-08-05T10:35:21
| null |
UTF-8
|
Java
| false
| false
| 7,717
|
java
|
/*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.xuexiang.xuidemo.fragment.expands.calendar;
import android.view.View;
import android.widget.TextView;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.haibin.calendarview.Calendar;
import com.haibin.calendarview.CalendarLayout;
import com.haibin.calendarview.CalendarView;
import com.xuexiang.xaop.annotation.SingleClick;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xui.widget.actionbar.TitleBar;
import com.xuexiang.xuidemo.DemoDataProvider;
import com.xuexiang.xuidemo.R;
import com.xuexiang.xuidemo.adapter.NewsCardViewListAdapter;
import com.xuexiang.xuidemo.adapter.base.BaseRecyclerAdapter;
import com.xuexiang.xuidemo.base.BaseFragment;
import com.xuexiang.xuidemo.utils.Utils;
import java.util.HashMap;
import java.util.Map;
import butterknife.BindView;
import butterknife.OnClick;
/**
* @author xuexiang
* @since 2019-06-28 12:40
*/
@Page(name = "复杂的日历控件\n支持多种表现形式")
public class ComplexCalendarFragment extends BaseFragment implements CalendarView.OnCalendarSelectListener,
CalendarView.OnYearChangeListener {
@BindView(R.id.tv_month_day)
TextView mTextMonthDay;
@BindView(R.id.tv_year)
TextView mTextYear;
@BindView(R.id.tv_lunar)
TextView mTextLunar;
@BindView(R.id.tv_current_day)
TextView mTextCurrentDay;
@BindView(R.id.calendarView)
CalendarView mCalendarView;
@BindView(R.id.calendarLayout)
CalendarLayout mCalendarLayout;
private NewsCardViewListAdapter mAdapter;
@BindView(R.id.recycler_view)
RecyclerView recyclerView;
private int mYear;
@Override
protected int getLayoutId() {
return R.layout.fragment_complex_calendar;
}
@Override
protected TitleBar initTitle() {
TitleBar titleBar = super.initTitle();
titleBar.addAction(new TitleBar.TextAction("Github") {
@Override
public void performAction(View view) {
Utils.goWeb(getContext(), "https://github.com/huanghaibin-dev/CalendarView");
}
});
return titleBar;
}
@Override
protected void initViews() {
mTextYear.setText(String.valueOf(mCalendarView.getCurYear()));
mYear = mCalendarView.getCurYear();
mTextMonthDay.setText(mCalendarView.getCurMonth() + "月" + mCalendarView.getCurDay() + "日");
mTextLunar.setText("今日");
mTextCurrentDay.setText(String.valueOf(mCalendarView.getCurDay()));
mCalendarView.setFixMode();
initCalendarView();
initRecyclerView();
}
private void initRecyclerView() {
recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()));
recyclerView.setItemAnimator(new DefaultItemAnimator());
recyclerView.setAdapter(mAdapter = new NewsCardViewListAdapter());
mAdapter.refresh(DemoDataProvider.getDemoNewInfos());
mAdapter.setOnItemClickListener(new BaseRecyclerAdapter.OnItemClickListener() {
@Override
public void onItemClick(View itemView, int position) {
Utils.goWeb(getContext(), mAdapter.getItem(position).getDetailUrl());
}
});
}
@Override
protected void initListeners() {
mCalendarView.setOnCalendarSelectListener(this);
mCalendarView.setOnYearChangeListener(this);
}
private void initCalendarView() {
int year = mCalendarView.getCurYear();
int month = mCalendarView.getCurMonth();
Map<String, Calendar> map = new HashMap<>();
map.put(getSchemeCalendar(year, month, 3, 0xFF40db25, "假").toString(),
getSchemeCalendar(year, month, 3, 0xFF40db25, "假"));
map.put(getSchemeCalendar(year, month, 6, 0xFFe69138, "事").toString(),
getSchemeCalendar(year, month, 6, 0xFFe69138, "事"));
map.put(getSchemeCalendar(year, month, 9, 0xFFdf1356, "议").toString(),
getSchemeCalendar(year, month, 9, 0xFFdf1356, "议"));
map.put(getSchemeCalendar(year, month, 13, 0xFFedc56d, "记").toString(),
getSchemeCalendar(year, month, 13, 0xFFedc56d, "记"));
map.put(getSchemeCalendar(year, month, 14, 0xFFedc56d, "记").toString(),
getSchemeCalendar(year, month, 14, 0xFFedc56d, "记"));
map.put(getSchemeCalendar(year, month, 15, 0xFFaacc44, "假").toString(),
getSchemeCalendar(year, month, 15, 0xFFaacc44, "假"));
map.put(getSchemeCalendar(year, month, 18, 0xFFbc13f0, "记").toString(),
getSchemeCalendar(year, month, 18, 0xFFbc13f0, "记"));
map.put(getSchemeCalendar(year, month, 25, 0xFF13acf0, "假").toString(),
getSchemeCalendar(year, month, 25, 0xFF13acf0, "假"));
map.put(getSchemeCalendar(year, month, 27, 0xFF13acf0, "多").toString(),
getSchemeCalendar(year, month, 27, 0xFF13acf0, "多"));
//此方法在巨大的数据量上不影响遍历性能,推荐使用
mCalendarView.setSchemeDate(map);
}
private Calendar getSchemeCalendar(int year, int month, int day, int color, String text) {
Calendar calendar = new Calendar();
calendar.setYear(year);
calendar.setMonth(month);
calendar.setDay(day);
calendar.setSchemeColor(color);//如果单独标记颜色、则会使用这个颜色
calendar.setScheme(text);
calendar.addScheme(new Calendar.Scheme());
calendar.addScheme(0xFF008800, "假");
calendar.addScheme(0xFF008800, "节");
return calendar;
}
@Override
public void onCalendarOutOfRange(Calendar calendar) {
}
@Override
public void onCalendarSelect(Calendar calendar, boolean isClick) {
mTextLunar.setVisibility(View.VISIBLE);
mTextYear.setVisibility(View.VISIBLE);
mTextMonthDay.setText(calendar.getMonth() + "月" + calendar.getDay() + "日");
mTextYear.setText(String.valueOf(calendar.getYear()));
mTextLunar.setText(calendar.getLunar());
mYear = calendar.getYear();
}
@Override
public void onYearChange(int year) {
mTextMonthDay.setText(String.valueOf(year));
}
@SingleClick
@OnClick({R.id.tv_month_day, R.id.fl_current})
public void onViewClicked(View view) {
switch(view.getId()) {
case R.id.tv_month_day:
if (!mCalendarLayout.isExpand()) {
mCalendarLayout.expand();
return;
}
mCalendarView.showYearSelectLayout(mYear);
mTextLunar.setVisibility(View.GONE);
mTextYear.setVisibility(View.GONE);
mTextMonthDay.setText(String.valueOf(mYear));
break;
case R.id.fl_current:
mCalendarView.scrollToCurrent();
break;
default:
break;
}
}
}
|
[
"xuexiangjys@163.com"
] |
xuexiangjys@163.com
|
fbdd16757b0f38e5959e18162e7a828e396f9f85
|
a92adf2c39ea3abd0dd8674701435213d096dc37
|
/03-decorator-pattern/src/main/java/szu/vander/decorator1/Mocha.java
|
13dee3b88073c475e07f3228015e4eba48d701cd
|
[] |
no_license
|
Vander1991/head-first-design-pattern
|
a083fd747eb311f501002f49d7ad50a54cb7ecd4
|
e94fc76043bbd51827226a0966cbfc74e53d5c66
|
refs/heads/master
| 2020-03-09T18:53:23.249605
| 2018-10-13T07:44:06
| 2018-10-13T07:44:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 426
|
java
|
package szu.vander.decorator1;
/**
* @author : Vander Choi
* @date : 2018-04-17
* @description :
*/
public class Mocha implements CondimentDecorator {
private Beverage beverage;
public float cost() {
return this.beverage.cost() + 1.0f;
}
public Mocha(Beverage beverage) {
this.beverage = beverage;
}
public String getDesc() {
return this.beverage.getDesc() + " with " + "Mocha";
}
}
|
[
"398284823@qq.com"
] |
398284823@qq.com
|
63be377aadb70eb4b25a728d8be2871b4d8be587
|
f5049214ff99cdd7c37da74619b60ac4a26fc6ba
|
/runtime/db/orm/orm-tests/eu.agno3.runtime.db.orm.test.model2/src/test/java/eu/agno3/runtime/db/orm/test/model2/MapTargetImpl.java
|
307d30194bf004c666205013e980e793feb01add
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
AgNO3/code
|
d17313709ee5db1eac38e5811244cecfdfc23f93
|
b40a4559a10b3e84840994c3fd15d5f53b89168f
|
refs/heads/main
| 2023-07-28T17:27:53.045940
| 2021-09-17T14:25:01
| 2021-09-17T14:31:41
| 407,567,058
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 514
|
java
|
/**
* © 2013 AgNO3 Gmbh & Co. KG
* All right reserved.
*
* Created: 08.08.2013 by mbechler
*/
package eu.agno3.runtime.db.orm.test.model2;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.PersistenceUnit;
import eu.agno3.runtime.db.orm.test.model1.MapTarget;
/**
* @author mbechler
*
*/
@Entity
@PersistenceUnit ( unitName = "test" )
@SuppressWarnings ( "javadoc" )
public class MapTargetImpl extends MapTarget {
@Basic
public String targetName;
}
|
[
"bechler@agno3.eu"
] |
bechler@agno3.eu
|
f5e4a4281a697d75072b4033bbe4b52c9c933ac4
|
813e0e4ec6bdc2211dc3aee6529da53b8b0acdfc
|
/jooby/src/main/java/io/jooby/ValueConverter.java
|
1097b1b80b2753c968d85e1fb5ff9e78fcf2792e
|
[
"Apache-2.0"
] |
permissive
|
lospejos/jooby
|
c4ce56278f6b83fcdd771cce6a19415ccce1ef54
|
421de0e04f1f5f0d9c6b963d094fc3deb3dfb6fb
|
refs/heads/2.x
| 2023-02-07T08:13:24.480023
| 2020-12-28T09:50:40
| 2020-12-28T09:50:40
| 322,334,984
| 0
| 0
|
Apache-2.0
| 2020-12-28T09:50:42
| 2020-12-17T15:25:39
|
Java
|
UTF-8
|
Java
| false
| false
| 825
|
java
|
/**
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby;
import javax.annotation.Nonnull;
/**
* Value converter for simple values that come from query, path, form, etc... parameters into more
* specific type.
*
* It is an extension point for {@link Value#to(Class)} calls.
*/
public interface ValueConverter {
/**
* True if the converter applies for the given type.
*
* @param type Conversion type.
* @return True if the converter applies for the given type.
*/
boolean supports(@Nonnull Class type);
/**
* Convert simple to specific type.
*
* @param value Value value.
* @param type Requested type.
* @return Converted value.
*/
Object convert(@Nonnull Value value, @Nonnull Class type);
}
|
[
"espina.edgar@gmail.com"
] |
espina.edgar@gmail.com
|
8ab36bc1ddde75aae33010e3338716dbeca7e8af
|
b25898993f8646c8517d93662cbe9ae33cf51095
|
/o2xfs-xfs3/src/o2xfs-xfs330/java/at/o2xfs/xfs/cim/v3_30/DepleteInfoResult3_30.java
|
c43ae2d63fe1af7f1698459da5f8790b76533235
|
[
"BSD-2-Clause"
] |
permissive
|
dotfeng/O2Xfs
|
5e4a16cd11305d4476ce28fb15887d6393ca90cd
|
27e9b09fc8f5a8f4b0c6d9a5d1746cadb61b121d
|
refs/heads/master
| 2021-01-24T20:25:10.044447
| 2017-03-08T22:07:02
| 2017-03-08T22:07:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,889
|
java
|
/*
* Copyright (c) 2017, Andreas Fagschlunger. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package at.o2xfs.xfs.cim.v3_30;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import at.o2xfs.win32.Pointer;
import at.o2xfs.win32.Struct;
public class DepleteInfoResult3_30 extends Struct {
protected final Pointer depleteSources = new Pointer();
protected DepleteInfoResult3_30() {
add(depleteSources);
}
public DepleteInfoResult3_30(Pointer p) {
this();
assignBuffer(p);
}
public DepleteInfoResult3_30(DepleteInfoResult3_30 copy) {
this();
allocate();
set(copy);
}
protected void set(DepleteInfoResult3_30 copy) {
depleteSources.pointTo(new DepleteInfoSources(copy.getDepleteSources()));
}
public DepleteInfoSource3_30[] getDepleteSources() {
return new DepleteInfoSources(depleteSources).get();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(getDepleteSources()).toHashCode();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof DepleteInfoResult3_30) {
DepleteInfoResult3_30 depleteInfoResult3_30 = (DepleteInfoResult3_30) obj;
return new EqualsBuilder().append(getDepleteSources(), depleteInfoResult3_30.getDepleteSources()).isEquals();
}
return false;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("depleteSources", getDepleteSources()).toString();
}
}
|
[
"github@fagschlunger.co.at"
] |
github@fagschlunger.co.at
|
f662f066d4ad6ec8d00f803b361c49965468a23d
|
f0e8fe7eab635f2adf766ee9ca7dd4d4977b94f7
|
/main/ar.com.oxen.nibiru.security/ar.com.oxen.nibiru.security.generic/src/main/java/ar/com/oxen/nibiru/security/generic/MessageDigestHashService.java
|
7ce270b428ff84fd7410512f40e41ff40f8a1b28
|
[] |
no_license
|
lbrasseur/nibiru
|
2d2ebdfce9175db7114890c54cb3e1ed1c607563
|
1764153c2f38f3430042132a5b8ff5e0d5572207
|
refs/heads/master
| 2022-07-28T00:08:56.059668
| 2015-09-08T14:25:05
| 2015-09-08T14:25:05
| 32,324,375
| 0
| 0
| null | 2022-07-08T19:06:32
| 2015-03-16T12:49:02
|
Java
|
UTF-8
|
Java
| false
| false
| 649
|
java
|
package ar.com.oxen.nibiru.security.generic;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import ar.com.oxen.nibiru.security.api.HashService;
public class MessageDigestHashService implements HashService {
private MessageDigest messageDigest;
@Override
public String hash(String data) {
return new String(this.messageDigest.digest(data.getBytes()));
}
public void setAlgorithm(String algorithm) {
try {
this.messageDigest = MessageDigest.getInstance(algorithm);
} catch (NoSuchAlgorithmException e) {
throw new IllegalArgumentException("Invalid alfgorithm: "
+ algorithm, e);
}
}
}
|
[
"lbrasseur@gmail.com"
] |
lbrasseur@gmail.com
|
1d93493d0d9a55a9179b24dde5a15b6e1fb9368a
|
0e6906888c4352b656c1ffcdce25faf4963016a8
|
/model/src/main/java/org/renjin/ci/model/TestCase.java
|
6b494450e32a21aaa183daaecd016528e2180d3c
|
[] |
no_license
|
bedatadriven/renjin-packages
|
84472db29464d6df9d8085b2a8807daa6e0d07c5
|
3a69d8354142542cdb2aa63854771ace0d180e64
|
refs/heads/master
| 2023-07-01T06:53:44.537804
| 2021-07-31T13:06:54
| 2021-07-31T13:06:54
| 384,443,609
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 365
|
java
|
package org.renjin.ci.model;
/**
* Defines a test case
*/
public class TestCase {
private String id;
private String source;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
}
|
[
"alex@bedatadriven.com"
] |
alex@bedatadriven.com
|
1323299ccf744770b6ba384fd2a61058f79135aa
|
e3591ef38e2928c69183c1bc0e4d15d7b020751c
|
/sources/APK_Decompiled_to_java/DSAPK/src/main/java/com/philips/lighting/hue/sdk/wrapper/testing/CrashTest.java
|
6fe9ca182801a6b59ed7cda49048d427eb48c438
|
[] |
no_license
|
d8ahazard/DreamscreenDocs
|
ab0695151d501d6f2176b21785eedaa5fc7f6557
|
225fbe6a279885fb6a54487ac4fe6a5a908878d9
|
refs/heads/master
| 2021-06-25T02:49:49.410684
| 2021-06-07T12:51:11
| 2021-06-07T12:51:11
| 225,887,222
| 6
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 443
|
java
|
package com.philips.lighting.hue.sdk.wrapper.testing;
public class CrashTest {
public static native void invokeDirectJavaExceptionOnWrapper();
public static native void invokeIndirectJavaExceptionOnWrapper();
public static native void invokeSigAbrtOnCore();
public static native void invokeSigAbrtOnWrapper();
public static native void invokeSigSegVOnCore();
public static native void invokeSigSegVOnWrapper();
}
|
[
"d8ahazard@gmail.com"
] |
d8ahazard@gmail.com
|
fed2ddced47ccf73d9c0036e750ffde4c748c60b
|
cc5642f13aa6512c73de1bdcce7d65988b6cbc6c
|
/Ecart/src/main/java/com/niit/dao/CartDaoImpl.java
|
7f103d59edb71420cb7e4a0499dec7c439bf4a2d
|
[] |
no_license
|
AbhijitLeonardoPaul/OnlineShoppingCart
|
0f7225302e6129b4d3155b6b54af03cd05f7a812
|
68b6d2323c4d2373670c4b701ffe2b90bd903a72
|
refs/heads/master
| 2021-01-22T20:08:17.697858
| 2017-05-10T18:35:30
| 2017-05-10T18:35:30
| 85,284,090
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 893
|
java
|
package com.niit.dao;
import java.io.Serializable;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.niit.model.Cart;
@Repository("cartDao")
@Transactional
public class CartDaoImpl implements CartDao {
@Autowired
private SessionFactory sessionFactory;
protected Session getSession() {
return sessionFactory.openSession();
}
public void addCart(Cart cart) {
// TODO Auto-generated method stub
Session session = getSession();
int s = cart.getCartID();
session.save(cart);
session.flush();
session.close();
}
public void updateCart(Cart cart) {
Session session = getSession();
session.update(cart);
session.flush();
session.close();
}
}
|
[
"="
] |
=
|
ce301db5d25ab41c142b1e77c3e34c25fa43c56d
|
eab084584e34ec065cd115139c346180e651c1c2
|
/src/main/java/v1/t1700/T1753.java
|
199b87083b2a9758f1934910ec010c385433542e
|
[] |
no_license
|
zhouyuan93/leetcode
|
5396bd3a01ed0f127553e1e175bb1f725d1c7919
|
cc247bc990ad4d5aa802fc7a18a38dd46ed40a7b
|
refs/heads/master
| 2023-05-11T19:11:09.322348
| 2023-05-05T09:12:53
| 2023-05-05T09:12:53
| 197,735,845
| 0
| 0
| null | 2020-04-05T09:17:34
| 2019-07-19T08:38:17
|
Java
|
UTF-8
|
Java
| false
| false
| 926
|
java
|
package v1.t1700;
import java.util.Arrays;
public class T1753 {
public int maximumScore(int a, int b, int c) {
int[] nums = {a, b, c};
Arrays.sort(nums);
return maximumScoreSort(nums[0], nums[1], nums[2]);
}
public int maximumScoreSort(int a, int b, int c) {
if (c >= a + b) {
return a + b;
}
int count = 0;
int x = (a + b - c) / 2;
count += 3*x;
a -= 2*x;
b -= 2*x;
c -= 2*x;
if (c >= a + b) {
return count + a + b;
}
if (a > 1) {
count += 3;
a-=2;
b-=2;
c-=2;
}
if (c >= a + b) {
return count + a + b;
}
if (a == 0) {
count += b;
}
if (a == 1) {
c--;
count += Math.min(b, c) + 1;
}
return count;
}
}
|
[
"492407250@qq.com"
] |
492407250@qq.com
|
a0359d7c9adb16bae0702902eb401386e59e0839
|
3b12549e4397258ba290c43901a6a384db613e5a
|
/siyueli-platform-member-server-service/src/main/java/com/siyueli/platform/service/member/server/util/MapSortUtil.java
|
e0fed8eb8b6e39046c277accd24593691d938229
|
[] |
no_license
|
zhouxhhn/li-member
|
56fc91fa5e089fe3aee9e7519a1b4f4a98c539bd
|
54155482e60a364fd04d07fb39b17a39b4f95a6d
|
refs/heads/master
| 2020-04-05T10:25:31.586349
| 2018-11-09T02:25:07
| 2018-11-09T02:25:07
| 156,798,261
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 793
|
java
|
package com.siyueli.platform.service.member.server.util;
import java.util.Comparator;
import java.util.Map;
import java.util.TreeMap;
public class MapSortUtil {
/**
* 使用 Map按key进行排序
*
* @param map
* @return
*/
public static Map<String, Object> sortMapByKey(Map<String, Object> map) {
if (map == null || map.isEmpty()) {
return null;
}
Map<String, Object> sortMap = new TreeMap<String, Object>(
new MapKeyComparator());
sortMap.putAll(map);
return sortMap;
}
private static class MapKeyComparator implements Comparator<String> {
@Override
public int compare(String str1, String str2) {
return str1.compareTo(str2);
}
}
}
|
[
"joey.zhou@siyue.cn"
] |
joey.zhou@siyue.cn
|
8ec364c9ee14a5755d414f31c16680322a0c7a8a
|
f5a6e41c28f3ce698c82a13968799feb852d8842
|
/projet_B4_FR/src/myerp-consumer/src/main/java/com/dummy/myerp/consumer/dao/impl/DaoProxyImpl.java
|
7afefdee2bb959e8415e691b71a467d35831fcef
|
[] |
no_license
|
Celim-Laverriere/OC-PROJET-9-TESTEZ-VOS-DEVELOPPEMENTS-JAVA
|
392b53b3db06d4e4601095ed95913282111942b7
|
e571bb3db87471c9ef906403f9cf35c2084f93a3
|
refs/heads/master
| 2022-12-22T03:48:34.892785
| 2019-11-27T08:01:28
| 2019-11-27T08:01:28
| 211,508,655
| 0
| 0
| null | 2022-12-16T04:02:38
| 2019-09-28T13:58:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,232
|
java
|
package com.dummy.myerp.consumer.dao.impl;
import com.dummy.myerp.consumer.dao.contrat.ComptabiliteDao;
import com.dummy.myerp.consumer.dao.contrat.DaoProxy;
/**
* <p>Implémentation du Proxy d'accès à la couche DAO.</p>
*/
public final class DaoProxyImpl implements DaoProxy {
// ==================== Attributs ====================
/** {@link ComptabiliteDao} */
private ComptabiliteDao comptabiliteDao;
// ==================== Constructeurs ====================
/** Instance unique de la classe (design pattern Singleton) */
private static final DaoProxyImpl INSTANCE = new DaoProxyImpl();
/**
* Renvoie l'instance unique de la classe (design pattern Singleton).
*
* @return {@link DaoProxyImpl}
*/
protected static DaoProxyImpl getInstance() {
return DaoProxyImpl.INSTANCE;
}
/**
* Constructeur.
*/
public DaoProxyImpl() {
super();
}
// ==================== Getters/Setters ====================
public ComptabiliteDao getComptabiliteDao() {
return this.comptabiliteDao;
}
public void setComptabiliteDao(ComptabiliteDao pComptabiliteDao) {
this.comptabiliteDao = pComptabiliteDao;
}
}
|
[
"laverriere.celim@gmail.com"
] |
laverriere.celim@gmail.com
|
70407f27a7dadc86abc6f4463b05397398bf7d8a
|
ceced64751c092feca544ab3654cf40d4141e012
|
/Ext_API_Idempotence/src/main/java/com/pri/aop/ExtApiAopIdempotent.java
|
7729e917cf9667ad976424be418ad8b800f8ac59
|
[] |
no_license
|
1163646727/pri_play
|
80ec6fc99ca58cf717984db82de7db33ef1e71ca
|
fbd3644ed780c91bfc535444c54082f4414b8071
|
refs/heads/master
| 2022-06-30T05:14:02.082236
| 2021-01-05T08:02:40
| 2021-01-05T08:02:40
| 196,859,419
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,073
|
java
|
package com.pri.aop;
import com.pri.annotation.ExtApiIdempotent;
import com.pri.annotation.ExtApiToken;
import com.pri.utils.ConstantUtils;
import com.pri.utils.RedisToken;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
/**
* className: ExtApiAopIdempotent <BR>
* description: 接口幂等 切面类<BR>
* remark: <BR>
* auther: ChenQi <BR>
* date: 2019/11/1 0:20 <BR>
* version 1.0 jdk1.8 <BR>
*/
@Aspect
@Component
public class ExtApiAopIdempotent {
@Autowired
private RedisToken redisToken;
/**
* methodName: rlAop <BR>
* description: <BR>
* remark: 使用AOP环绕通知拦截所有访问(controller)<BR>
* param: <BR>
* return: void <BR>
* author: ChenQi <BR>
* createDate: 2019-11-01 00:30 <BR>
*/
@Pointcut("execution(public * com.pri.controller.*.*(..))")
public void rlAop() {
}
@Before("rlAop()")
public void before(JoinPoint point){
MethodSignature methodSignature = (MethodSignature) point.getSignature();
ExtApiToken extApiToken = methodSignature.getMethod().getDeclaredAnnotation(ExtApiToken.class);
if (extApiToken != null) {
// 生成令牌,返回给前台 ChenQi;
getRequest().setAttribute("token", redisToken.getToken());
}
}
@Around("rlAop()")
public Object around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
// 判断方法上是否有加ExtApiIdempotent ChenQi;
MethodSignature methodSignature = (MethodSignature) proceedingJoinPoint.getSignature();
ExtApiIdempotent extApiIdempotent = methodSignature.getMethod().getDeclaredAnnotation(ExtApiIdempotent.class);
// 如果方法上存在ExtApiIdempotent注解,验证幂等性 ChenQi;
if (extApiIdempotent != null) {
String token = null;
HttpServletRequest request = getRequest();
// 根据注解的type获取令牌 ChenQi;
String type = extApiIdempotent.type();
if (ConstantUtils.EXTAPIHEAD.equals(type)) {
token = request.getHeader("token");
}else if (ConstantUtils.EXTAPIFROM.equals(type)){
//token = (String) request.getAttribute("token");
token = request.getParameter("token");
}else {
return "令牌错误!";
}
if (token == null) {
System.out.println("未获取令牌!");
response("未获取令牌!");
return "未获取令牌!";
}
// 查询令牌 ChenQi;
boolean isToken = redisToken.findToken(token);
if (!isToken) {
System.out.println("请勿重复提交!");
response("请勿重复提交!");
return null;
}
}
// 放行 ChenQi;
Object proceed = proceedingJoinPoint.proceed();
return proceed;
}
/**
* methodName: getRequest <BR>
* description: 获取HttpServletRequest请求对象<BR>
* remark:HttpServletRequest对象是封装了用户的请求信息,包括请求参数去,请求头等信息 <BR>
* param: <BR>
* return: javax.servlet.http.HttpServletRequest <BR>
* author: ChenQi <BR>
* createDate: 2019-11-01 00:35 <BR>
*/
public HttpServletRequest getRequest() {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
return request;
}
/**
* methodName: response <BR>
* description: 设置HttpServiceResponse响应<BR>
* remark: 返回操作信息<BR>
* param: msg <BR>
* return: void <BR>
* author: ChenQi <BR>
* createDate: 2019-11-01 10:28 <BR>
*/
public void response(String msg) throws IOException {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletResponse httpServletResponse = attributes.getResponse();
httpServletResponse.setHeader("Content-type", "text/html;charset=UTF-8");
PrintWriter printWriter = httpServletResponse.getWriter();
try {
printWriter.println(msg);
} catch (Exception e) {
} finally {
printWriter.close();
}
}
}
|
[
"1163646727@qq.com"
] |
1163646727@qq.com
|
ed20acd41a80b5225c3b7587c1d941bad89b028c
|
958b13739d7da564749737cb848200da5bd476eb
|
/src/main/java/com/alipay/api/request/AlipayOpenMiniMarketMultibundleConsultRequest.java
|
9c8eb1ea4eb285f5fe9b13bd59d032cd3eb0ea2f
|
[
"Apache-2.0"
] |
permissive
|
anywhere/alipay-sdk-java-all
|
0a181c934ca84654d6d2f25f199bf4215c167bd2
|
649e6ff0633ebfca93a071ff575bacad4311cdd4
|
refs/heads/master
| 2023-02-13T02:09:28.859092
| 2021-01-14T03:17:27
| 2021-01-14T03:17:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,209
|
java
|
package com.alipay.api.request;
import com.alipay.api.domain.AlipayOpenMiniMarketMultibundleConsultModel;
import java.util.Map;
import com.alipay.api.AlipayRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.AlipayOpenMiniMarketMultibundleConsultResponse;
import com.alipay.api.AlipayObject;
/**
* ALIPAY API: alipay.open.mini.market.multibundle.consult request
*
* @author auto create
* @since 1.0, 2020-10-16 22:15:12
*/
public class AlipayOpenMiniMarketMultibundleConsultRequest implements AlipayRequest<AlipayOpenMiniMarketMultibundleConsultResponse> {
private AlipayHashMap udfParams; // add user-defined text parameters
private String apiVersion="1.0";
/**
* 全域营销信息查询
*/
private String bizContent;
public void setBizContent(String bizContent) {
this.bizContent = bizContent;
}
public String getBizContent() {
return this.bizContent;
}
private String terminalType;
private String terminalInfo;
private String prodCode;
private String notifyUrl;
private String returnUrl;
private boolean needEncrypt=false;
private AlipayObject bizModel=null;
public String getNotifyUrl() {
return this.notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public String getReturnUrl() {
return this.returnUrl;
}
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
public String getApiVersion() {
return this.apiVersion;
}
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
public void setTerminalType(String terminalType){
this.terminalType=terminalType;
}
public String getTerminalType(){
return this.terminalType;
}
public void setTerminalInfo(String terminalInfo){
this.terminalInfo=terminalInfo;
}
public String getTerminalInfo(){
return this.terminalInfo;
}
public void setProdCode(String prodCode) {
this.prodCode=prodCode;
}
public String getProdCode() {
return this.prodCode;
}
public String getApiMethodName() {
return "alipay.open.mini.market.multibundle.consult";
}
public Map<String, String> getTextParams() {
AlipayHashMap txtParams = new AlipayHashMap();
txtParams.put("biz_content", this.bizContent);
if(udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public void putOtherTextParam(String key, String value) {
if(this.udfParams == null) {
this.udfParams = new AlipayHashMap();
}
this.udfParams.put(key, value);
}
public Class<AlipayOpenMiniMarketMultibundleConsultResponse> getResponseClass() {
return AlipayOpenMiniMarketMultibundleConsultResponse.class;
}
public boolean isNeedEncrypt() {
return this.needEncrypt;
}
public void setNeedEncrypt(boolean needEncrypt) {
this.needEncrypt=needEncrypt;
}
public AlipayObject getBizModel() {
return this.bizModel;
}
public void setBizModel(AlipayObject bizModel) {
this.bizModel=bizModel;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a62addcd379e4ef6db8632e75dbfad9c80d6e9a5
|
49b57339d939ea3f498249d3aacca1dec543163b
|
/jadx-snap-new/sources/com/snap/core/db/record/AutoValue_FeedItemSyncStateRecord.java
|
80f4ae2d307b51674c5623b86c41b8078862ab0f
|
[] |
no_license
|
8secz-johndpope/snapchat-re
|
1655036c41518c3a2aaa0c2543dc49f4acb93eaf
|
04f5c5bb627d21f620088525fffcf5c99abd7ce5
|
refs/heads/master
| 2020-08-24T09:14:38.209745
| 2019-06-14T05:13:44
| 2019-06-14T05:13:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,374
|
java
|
package com.snap.core.db.record;
final class AutoValue_FeedItemSyncStateRecord extends FeedItemSyncStateRecord {
private final long _id;
private final long feedRowId;
AutoValue_FeedItemSyncStateRecord(long j, long j2) {
this._id = j;
this.feedRowId = j2;
}
public final long _id() {
return this._id;
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof FeedItemSyncStateRecord) {
FeedItemSyncStateRecord feedItemSyncStateRecord = (FeedItemSyncStateRecord) obj;
return this._id == feedItemSyncStateRecord._id() && this.feedRowId == feedItemSyncStateRecord.feedRowId();
}
}
public final long feedRowId() {
return this.feedRowId;
}
public final int hashCode() {
long j = this._id;
int i = (((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003;
long j2 = this.feedRowId;
return ((int) (j2 ^ (j2 >>> 32))) ^ i;
}
public final String toString() {
StringBuilder stringBuilder = new StringBuilder("FeedItemSyncStateRecord{_id=");
stringBuilder.append(this._id);
stringBuilder.append(", feedRowId=");
stringBuilder.append(this.feedRowId);
stringBuilder.append("}");
return stringBuilder.toString();
}
}
|
[
"blevy@protonmail.com"
] |
blevy@protonmail.com
|
8112edbb47d949f90b9550e585f3fa3c7b1189a8
|
fa5ccd565d1b5c7b6bcca56ee14354336da04706
|
/cocoon/src/blocks/portal/java/org/apache/cocoon/portal/impl/PortalServiceInfo.java
|
805ea001b66387f13991967e88c6e836d1c45ce5
|
[
"Apache-2.0"
] |
permissive
|
digitalpixies/pdf
|
67abd9401af0e8b4aace2ff673ba6040369f82a9
|
77f82ec78bd8bcd847d32434cfb152845a0a24b1
|
refs/heads/master
| 2016-09-05T11:14:51.768026
| 2013-04-02T18:45:03
| 2013-04-02T18:45:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,194
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cocoon.portal.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Session;
import org.apache.cocoon.portal.Constants;
import org.apache.cocoon.portal.PortalComponentManager;
/**
* The portal information for the current request
*
* @author <a href="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
*
* @version CVS $Id: PortalServiceInfo.java 433543 2006-08-22 06:22:54Z crossley $
*/
public class PortalServiceInfo {
private Map portalComponentManagers;
private Map objectModel;
protected Map temporaryAttributes = new HashMap();
protected String portalName;
protected String attributePrefix;
protected PortalComponentManager portalComponentManager;
public void setup(Map objectModel, Map managers) {
this.objectModel = objectModel;
this.portalComponentManagers = managers;
Map context = (Map)objectModel.get(ObjectModelHelper.PARENT_CONTEXT);
if (context != null) {
String pm = (String)context.get(Constants.PORTAL_NAME_KEY);
if (pm != null) {
this.setPortalName(pm);
}
}
if ( this.portalName == null && this.portalComponentManagers.size() == 1 ) {
// if we only have one portal, just use it
String pm = this.portalComponentManagers.keySet().iterator().next().toString();
this.setPortalName(pm);
}
}
public String getPortalName() {
return this.portalName;
}
public void setPortalName(String value) {
this.portalName = value;
this.attributePrefix = this.getClass().getName() + '/' + this.portalName + '/';
this.portalComponentManager = (PortalComponentManager) this.portalComponentManagers.get(this.portalName);
if ( this.portalComponentManager == null ) {
throw new RuntimeException("Portal '"+this.portalName+"' is not configured.");
}
}
public Object getAttribute(String key) {
final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
if (session == null) {
return null;
}
return session.getAttribute( this.attributePrefix + key);
}
public void setAttribute(String key, Object value) {
final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession();
session.setAttribute( this.attributePrefix + key, value);
}
public void removeAttribute(String key) {
final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
if ( session != null ) {
session.removeAttribute( this.attributePrefix + key);
}
}
public Iterator getAttributeNames() {
final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
if ( session != null ) {
List names = new ArrayList();
Enumeration e = session.getAttributeNames();
final int pos = this.attributePrefix.length() + 1;
if ( e != null ) {
while ( e.hasMoreElements() ) {
final String name = (String)e.nextElement();
if ( name.startsWith( this.attributePrefix )) {
names.add( name.substring( pos ) );
}
}
}
return names.iterator();
}
return Collections.EMPTY_MAP.keySet().iterator();
}
public Object getTemporaryAttribute(String key) {
return this.temporaryAttributes.get( key );
}
public void setTemporaryAttribute(String key, Object value) {
this.temporaryAttributes.put( key, value );
}
public void removeTemporaryAttribute(String key) {
this.temporaryAttributes.remove( key );
}
public Iterator getTemporaryAttributeNames() {
return this.temporaryAttributes.keySet().iterator();
}
/**
* Return the component manager for the current portal
*/
public PortalComponentManager getComponentManager() {
return this.portalComponentManager;
}
}
|
[
"rhuie@cpsbc.ca"
] |
rhuie@cpsbc.ca
|
1e0b73ad2cd8931ff91737a5a23e5737bc74aa4c
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/playstore_apps/com_ubercab/source/uo.java
|
18545ae96054d8a0e5fa456b42355aaa4098a908
|
[
"Apache-2.0",
"GPL-1.0-or-later"
] |
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
| 635
|
java
|
import android.os.Build.VERSION;
import android.view.accessibility.AccessibilityNodeInfo.CollectionInfo;
public class uo
{
final Object a;
uo(Object paramObject)
{
this.a = paramObject;
}
public static uo a(int paramInt1, int paramInt2, boolean paramBoolean, int paramInt3)
{
if (Build.VERSION.SDK_INT >= 21) {
return new uo(AccessibilityNodeInfo.CollectionInfo.obtain(paramInt1, paramInt2, paramBoolean, paramInt3));
}
if (Build.VERSION.SDK_INT >= 19) {
return new uo(AccessibilityNodeInfo.CollectionInfo.obtain(paramInt1, paramInt2, paramBoolean));
}
return new uo(null);
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
32ee9ccac0c53bf89565d7568fd2ddc237a5d924
|
21df19bb95386fd126cfd67c7d3ff503613fb46b
|
/src/test/java/org/sikuli/pptx/PPTXBundleTest.java
|
85c90615d37af6a0df3b50ea56d75cd02c482ea1
|
[
"MIT"
] |
permissive
|
doubleshow/sikuli-pptx
|
987db76fa462d050f788cb0ad973535068201c01
|
e16d5921cab77076eceeabb6a3585c7eec0cff50
|
refs/heads/master
| 2021-01-23T06:55:36.813987
| 2014-01-19T04:48:39
| 2014-01-19T04:48:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,316
|
java
|
package org.sikuli.pptx;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo;
import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.sikuli.pptx.io.PPTXBundle;
public class PPTXBundleTest {
private PPTXBundle bundle;
@Before
public void setUp() throws IOException{
bundle = PPTXBundle.createFrom(R.PPTX.fiveSlides);
}
@Test
public void canGetSlideCount(){
assertThat(bundle.getSlideCount(), equalTo(5));
}
@Test
public void canGetSlideXMLAsFile(){
File f = bundle.getSlideXML(1);
assertThat(f.exists(), equalTo(true));
assertThat(f.getAbsolutePath().endsWith("ppt/slides/slide1.xml"), equalTo(true));
}
@Test
public void canGetSlideXMLRelAsFile(){
File f = bundle.getSlideXMLRel(1);
assertThat(f.exists(), equalTo(true));
assertThat(f.getAbsolutePath(), endsWith((String)"ppt/slides/_rels/slide1.xml.rels"));
}
@Test
public void canCheckValid() throws IOException{
assertThat(bundle.isValid(), equalTo(true));
}
@Test
public void canCheckInvalid() throws IOException{
PPTXBundle badBundle = PPTXBundle.createFrom(R.PPTX.bad);
assertThat(badBundle.isValid(), equalTo(false));
}
}
|
[
"doubleshow@gmail.com"
] |
doubleshow@gmail.com
|
81e821aab6300517353cf9ebbfca0c6085f8f29a
|
bc72ee46488983c11a4ab7ebb3f52aa9637bb988
|
/src/main/java/never_use_switch/MailGenerator.java
|
8f5ec1ef7310e92773bb404a5fe4184ba092015e
|
[] |
no_license
|
mmalyutin/myspring-MINSK-2017-aprel
|
78e56780017466c04f0d94dc58fa77c6140b02b8
|
ab84338b2f4966c2590d118585000ebc281b3f30
|
refs/heads/master
| 2021-06-11T04:59:03.711799
| 2017-04-22T12:07:15
| 2017-04-22T12:07:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 154
|
java
|
package never_use_switch;
/**
* Created by Evegeny on 21/04/2017.
*/
public interface MailGenerator {
String generateHtml();
int mailCode();
}
|
[
"papakita2009"
] |
papakita2009
|
28132706049a8b93e081a41396a13f0dabf5cf27
|
a38c85555760121db4179ed536b5f640f6c5c83e
|
/src/main/java/xyz/phanta/sor/core/log/LogLevel.java
|
6b9a03ed812d76436c912c0ff54ed3220b782ee4
|
[
"JSON"
] |
permissive
|
phantamanta44/sor
|
946af3a91800b695614158947cea56c642acd9e7
|
edf1fc4859e8761217031de02cea31a5c4dd0d86
|
refs/heads/master
| 2020-03-31T02:29:11.997666
| 2019-04-13T08:12:12
| 2019-04-13T08:12:12
| 151,825,990
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 203
|
java
|
package xyz.phanta.sor.core.log;
public enum LogLevel {
DEBUG,
INFO,
WARN,
ERROR;
public boolean canPrintIn(LogLevel level) {
return level.ordinal() <= ordinal();
}
}
|
[
"evandalong@gmail.com"
] |
evandalong@gmail.com
|
bc4858d2a0c9b9b5bd35dea1f4bd2ac2c8d9ecf4
|
20beab5ff4b22f7fc5cc72a35497d679ede65e2c
|
/src/main/java/io/darkcraft/dnd/config/MongoConfig.java
|
c5c57f4486ede20a6f92f13d53e0cb75dc11bfe0
|
[] |
no_license
|
DarkholmeTenk/DarkcraftNDragons
|
09b39f50d01ce5c45aa4e15ab04f1ffc95dc1c66
|
180f187f0bf071e27803e74a5cd1a7ea8852bcae
|
refs/heads/master
| 2020-03-20T20:28:03.847418
| 2018-07-09T23:25:07
| 2018-07-09T23:25:07
| 137,689,096
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,988
|
java
|
package io.darkcraft.dnd.config;
import java.io.IOException;
import java.util.Map;
import org.bson.Document;
import org.bson.conversions.Bson;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.config.AbstractMongoConfiguration;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.data.mongodb.core.convert.DbRefResolver;
import org.springframework.data.mongodb.core.convert.DefaultDbRefResolver;
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.util.StringUtils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mongodb.DBObject;
import com.mongodb.MongoClient;
import com.mongodb.util.JSON;
import io.darkcraft.dnd.store.CharSheetRepository;
@Configuration
@EnableMongoAuditing
@EnableMongoRepositories(basePackageClasses=CharSheetRepository.class)
public class MongoConfig extends AbstractMongoConfiguration
{
@Value("${mongo.endpoint}")
private String mongoEndpoint;
@Value("${mongo.dbName}")
private String dbName;
@Autowired
private ObjectMapper mapper;
@Override
public MappingMongoConverter mappingMongoConverter() throws Exception {
DbRefResolver dbRefResolver = new DefaultDbRefResolver(mongoDbFactory());
return new MappingMongoConverter(dbRefResolver, mongoMappingContext()) {
@Override
public <S> S read(Class<S> clazz, Bson dbo) {
sortID(dbo);
String string = JSON.serialize(dbo);
try {
return mapper.readValue(string, clazz);
} catch (IOException e) {
throw new RuntimeException(string, e);
}
}
@Override
public void write(Object obj, Bson dbo) {
String string = null;
try {
string = mapper.writeValueAsString(obj);
} catch (JsonProcessingException e) {
throw new RuntimeException(string, e);
}
Map<String,Object> map = (Map<String, Object>) JSON.parse(string);
if(map.containsKey("id") && map.get("id") != null)
map.put("_id", new ObjectId((String)map.get("id")));
addAllToMap(dbo, map);
}
};
}
private static String getID(Object o)
{
return o.toString();
}
private static void sortID(Bson bson)
{
if (bson instanceof Document) {
Document d = ((Document) bson);
d.put("id", getID(d.get("_id")));
return;
}
if (bson instanceof DBObject) {
DBObject d = ((DBObject) bson);
d.put("id", getID(d.get("_id")));
return;
}
}
private static void addAllToMap(Bson bson, Map<String, ?> value) {
if (bson instanceof Document) {
((Document) bson).putAll(value);
return;
}
if (bson instanceof DBObject) {
((DBObject) bson).putAll(value);
return;
}
throw new IllegalArgumentException(
String.format("Cannot add all to %s. Given Bson must be a Document or DBObject.", bson.getClass()));
}
@Override
public MongoClient mongoClient()
{
if(StringUtils.isEmpty(dbName))
dbName = "dnd";
if(StringUtils.isEmpty(mongoEndpoint))
mongoEndpoint = "127.0.0.1";
return new MongoClient(mongoEndpoint);
}
@Override
protected String getDatabaseName()
{
return dbName;
}
}
|
[
"shaney.booth@gmail.com"
] |
shaney.booth@gmail.com
|
c215ff08574c61eb939d15249152b6da1147d185
|
4f9a4303fb2c737c4d2734f5669faf8245d741c5
|
/IBM Proactive Technology Online/ProtonJ2SE/src/com/ibm/hrl/proton/metadata/inout/BaseConsumerMetadata.java
|
4af25d792ee3ebca59f2cd972eb98bc4e0cedc6f
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
FIWARE-Archive/context.Proton
|
a86ab23824fa597fbc6c23bb695906f02cb7bbd3
|
6cfee843efcd00e40db6b9854f89970bdaeddd4c
|
refs/heads/master
| 2021-09-22T07:34:50.654315
| 2018-09-06T13:51:04
| 2018-09-06T13:51:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,112
|
java
|
/*******************************************************************************
* Copyright 2014 IBM
*
* 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.ibm.hrl.proton.metadata.inout;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import com.ibm.hrl.proton.metadata.event.IEventType;
import com.ibm.hrl.proton.runtime.epa.interfaces.IExpression;
public abstract class BaseConsumerMetadata implements Serializable{
public enum ConsumerType {FILE,DB,JMS,REST, CUSTOM, TIMED};
private String consumerName;
private ConsumerType consumerType;
private Map<String,Object> consumerProperties;
private Map<IEventType,IExpression> consumerEvents;
public BaseConsumerMetadata(String consumerName, ConsumerType consumerType, Map<String,Object> consumerProperties,Map<IEventType,IExpression> consumerEvents)
{
this.consumerName = consumerName;
this.consumerType = consumerType;
this.consumerProperties = consumerProperties;
this.consumerEvents = consumerEvents;
}
public Map<String, Object> getConsumerProperties() {
return consumerProperties;
}
public String getConsumerName() {
return consumerName;
}
public ConsumerType getConsumerType() {
return consumerType;
}
public Object getConsumerProperty(String propertyName) {
return consumerProperties.get(propertyName);
}
public Map<IEventType,IExpression> getConsumerEvents() {
if (consumerEvents != null) return consumerEvents;
return new HashMap<IEventType,IExpression>();
}
}
|
[
"inna@il.ibm.com"
] |
inna@il.ibm.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.